vendor: 7,499 bytes, line 1
1import{a as e,i as t,n,o as r,r as i,t as a}from"./rolldown-runtime-BM3Ffeng.js";var o=a((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`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`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ee=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},te={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=te,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,ee)}catch(e){ee(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()}
vendor: 6,769 bytes, line 1
1,e.version=`19.2.6`})),s=a(((e,t)=>{t.exports=o()})),c=a((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(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_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`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},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_requestPaint=function(){g=!0},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,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),l=a(((e,t)=>{t.exports=c()})),u=a((e=>{var t=s();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;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.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=c.T,n=i.p;try{if(c.T=null,i.p=2,e)return e()}finally{c.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=l(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()}
1,e.version=`19.2.6`})),d=a(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=u()})),f=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},p=new class extends f{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},m={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},h=new class{#e=m;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function g(e){setTimeout(e,0)}var _=typeof window>`u`||`Deno`in globalThis;function v(){}function y(e,t){return typeof e==`function`?e(t):e}function b(e){return typeof e==`number`&&e>=0&&e!==1/0}function x(e,t){return Math.max(e+(t||0)-Date.now(),0)}function S(e,t){return typeof e==`function`?e(t):e}function C(e,t){return typeof e==`function`?e(t):e}function w(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==E(o,t.options))return!1}else if(!O(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function T(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(D(t.options.mutationKey)!==D(a))return!1}else if(!O(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function E(e,t){return(t?.queryKeyHashFn||D)(e)}function D(e){return JSON.stringify(e,(e,t)=>N(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function O(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!O(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!O(e[r],t[r]))return!1;return!0}return!1}var k=Object.prototype.hasOwnProperty;function A(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=M(e)&&M(t);if(!r&&!(N(e)&&N(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:k.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=A(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function j(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function M(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function N(e){if(!P(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!P(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function P(e){return Object.prototype.toString.call(e)===`[object Object]`}function F(e){return new Promise(t=>{h.setTimeout(t,e)})}function ee(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:A(e,t)}function te(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function ne(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var re=Symbol();function I(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===re?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ie(e,t){return typeof e==`function`?e(...t):!!e}function ae(e,t,n){let r=!1,i;return Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var oe=(()=>{let e=()=>_;return{isServer(){return e()},setIsServer(t){e=t}}})();function se(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var ce=g;function le(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=ce,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>
1{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var ue=le(),de=new class extends f{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function fe(e){return Math.min(1e3*2**e,3e4)}function pe(e){return(e??`online`)===`online`?de.isOnline():!0}var me=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function he(e){let t=!1,n=0,r,i=se(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new me(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>p.isFocused()&&(e.networkMode===`always`||de.isOnline())&&e.canRun(),u=()=>pe(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},m=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),h=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(oe.isServer()?0:3),o=e.retryDelay??fe,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),F(s).then(()=>l()?void 0:m()).then(()=>{t?f(r):h()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?h():m().then(h),i)}}var L=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),b(this.gcTime)&&(this.#e=h.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(oe.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(h.clearTimeout(this.#e),this.#e=void 0)}};function ge(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{ae(e,()=>t.signal,()=>n=!0)},u=I(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?ne:te;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?ve:_e,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:_e(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function _e(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ve(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function ye(e,t){return t?_e(e,t)!=null:!1}function be(e,t){return!t||!e.getPreviousPageParam?!1:ve(e,t)!=null}var xe=class extends L{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=we(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=we(this.options);e.data!==void 0&&(this.setState(Ce(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=ee(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(v).catch(v):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>C(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===re||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdate
vendor: 4,671 bytes, line 1
1Count>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>S(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!x(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=I(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?ge(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=he({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof me&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof me){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Se(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Ce(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),ue.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Se(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:pe(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Ce(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function we(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdate
vendor: 4,615 bytes, line 1
1Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Te=class extends f{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=se(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),De(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Oe(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Oe(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof C(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!j(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&ke(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||C(this.options.enabled,this.#t)!==C(t.enabled,this.#t)||S(this.options.staleTime,this.#t)!==S(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||C(this.options.enabled,this.#t)!==C(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return je(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(v)),t}#g(){this.#b();let e=S(this.options.staleTime,this.#t);if(oe.isServer()||this.#r.isStale||!b(e))return;let t=x(this.#r.dataUpdatedAt,e)+1;this.#d=h.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(oe.isServer()||C(this.options.enabled,this.#t)===!1||!b(this.#p)||this.#p===0)&&(this.#f=h.setInterval(()=>{(this.options.refetchIntervalInBackground||p.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(h.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(h.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&De(e,t),o=i&&ke(e,n,t,r);(a||o)&&(l={...l,...Se(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=ee(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=ee(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdate
1Count:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:Ae(e,t),refetch:this.refetch,promise:this.#o,isEnabled:C(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{i(this.#o=x.promise=se())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!j(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){ue.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function Ee(e,t){return C(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&C(t.retryOnMount,e)===!1)}function De(e,t){return Ee(e,t)||e.state.data!==void 0&&Oe(e,t,t.refetchOnMount)}function Oe(e,t,n){if(C(t.enabled,e)!==!1&&S(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&Ae(e,t)}return!1}function ke(e,t,n,r){return(e!==t||C(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Ae(e,n)}function Ae(e,t){return C(t.enabled,e)!==!1&&e.isStaleByTime(S(t.staleTime,e))}function je(e,t){return!j(e.getCurrentResult(),t)}var Me=class extends Te{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type=`infinite`,super.setOptions(e)}getOptimisticResult(e){return e._type=`infinite`,super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`forward`}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`backward`}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:o,isRefetchError:s}=r,c=n.fetchMeta?.fetchMore?.direction,l=o&&c===`forward`,u=i&&c===`forward`,d=o&&c===`backward`,f=i&&c===`backward`;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:ye(t,n.data),hasPreviousPage:be(t,n.data),isFetchNextPageError:l,isFetchingNextPage:u,isFetchPreviousPageError:d,isFetchingPreviousPage:f,isRefetchError:s&&!l&&!d,isRefetching:a&&!u&&!f}}},Ne=class extends L{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Pe(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=he({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});
vendor: 2,873 bytes, line 1
1let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),ue.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Pe(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Fe=class extends f{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Ne({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Ie(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Ie(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Ie(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=Ie(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>
1t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){ue.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>T(t,e))}findAll(e={}){return this.getAll().filter(t=>T(e,t))}notify(e){ue.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return ue.batch(()=>Promise.all(e.map(e=>e.continue().catch(v))))}};function Ie(e){return e.options.scope?.id}var Le=class extends f{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),j(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&D(t.mutationKey)!==D(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Pe();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){ue.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},Re=class extends f{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??E(r,t),a=this.get(i);return a||(a=new xe({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){ue.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>w(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>w(e,t)):t}notify(e){ue.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){ue.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ue.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},ze=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Re,this.#t=e.mutationCache||new Fe,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=p.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=de.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(S(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=y(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}
1setQueriesData(e,t,n){return ue.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;ue.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return ue.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=ue.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(v).catch(v)}invalidateQueries(e,t={}){return ue.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=ue.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(v)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(v)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(S(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(v).catch(v)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(v).catch(v)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return de.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(D(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{O(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(D(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{O(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=E(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===re&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Be=a((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Ve=a(((e,t)=>{t.exports=Be()})),R=r(s(),1),He=Ve(),Ue=R.createContext(void 0),We=e=>{let t=R.useContext(Ue);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Ge=({client:e,children:t})=>(R.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,He.jsx)(Ue.Provider,{value:e,children:t})),Ke=R.createContext(!1),qe=()=>R.useContext(Ke);Ke.Provider;function Je(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Ye=R.createContext(Je()),Xe=()=>R.useContext(Ye),Ze=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?ie(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Qe=e=>{R.useEffect(()=>{e.clearReset()},[e])},$e=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||ie(n,[e.error,r])),et=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},tt=(e,t)=>e.isLoading&&e.isFetching&&!t,nt=(e,t)=>
1e?.suspense&&t.isPending,rt=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function it(e,t,n){let r=qe(),i=Xe(),a=We(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,et(o),Ze(o,i,s),Qe(i);let l=!a.getQueryCache().get(o.queryHash),[u]=R.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),f=!r&&c;if(R.useSyncExternalStore(R.useCallback(e=>{let t=f?u.subscribe(ue.batchCalls(e)):v;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),R.useEffect(()=>{u.setOptions(o)},[o,u]),nt(o,d))throw rt(o,u,i);if($e({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!oe.isServer()&&tt(d,r)&&(l?rt(o,u,i):s?.promise)?.catch(v).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}function at(e,t){return it(e,Te,t)}function ot(e,t){let n=We(t),[r]=R.useState(()=>new Le(n,e));R.useEffect(()=>{r.setOptions(e)},[r,e]);let i=R.useSyncExternalStore(R.useCallback(e=>r.subscribe(ue.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=R.useCallback((e,t)=>{r.mutate(e,t).catch(v)},[r]);if(i.error&&ie(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function st(e,t){return it(e,Me,t)}var ct=`modulepreload`,lt=function(e){return`https://assets.opencreators.ai/`+e},ut={},dt=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=lt(t,n),t in ut)return;ut[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:ct,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},ft=`popstate`;function pt(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function mt(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return yt(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:bt(t)}return St(t,n,null,e)}function ht(e,t){if(e===!1||e==null)throw Error(t)}function gt(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function _t(){return Math.random().toString(36).substring(2,10)}function vt(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function yt(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?xt(t):t,state:n,key:t&&t.key||r||_t(),mask:i}}function bt({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function xt(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function St(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=pt(e)?e:yt(h.location,e,t);n&&n(r,e),l=u()+1;let d=vt(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=pt(e)?e:yt(h.location,e,t);n&&n(r,e),l=u();let i=vt(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return eee(e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(ft,d),c=e,()=>{i.removeEventListener(ft,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function eee(e,t=!1){let n=`http://localhost`;typeof window<`u`&&(n=window.location.origin===`null`?window.location.href:window.location.origin),ht(n,`No window.location.(origin|href) available to create URL`);let r=typeof e==`string`?e:bt(e);return r=r.replace(/ $/,`%20`),!t&&r.startsWith(`//`)&&(r=n+r),new URL(r,n)}function Ct(e,t,n=`/`){return wt(e,t,n,!1)}function wt(e,t,n,r,i){let a=Pt((typeof t==`string`?xt(t):t).pathname||`/`,n);if(a==null)return null;let o=i??Et(e),s=null,c=Nt(a);for(let e=0;s==null&&e<o.length;++e)s=At(o[e],c,r);return s}function Tt(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],loaderData:t[n.id],handle:n.handle}}function Et(e){let t=Dt(e);return tee(t),t}function Dt(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;ht(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}
1" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Ut([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(ht(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),Dt(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:cee(l,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of Ot(e.path))a(e,t,!0,n)}),t}function Ot(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=Ot(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function tee(e){e.sort((e,t)=>e.score===t.score?lee(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var nee=/^:[\w-]+$/,ree=3,iee=2,aee=1,oee=10,see=-2,kt=e=>e===`*`;function cee(e,t){let n=e.split(`/`),r=n.length;return n.some(kt)&&(r+=see),t&&(r+=iee),n.filter(e=>!kt(e)).reduce((e,t)=>e+(nee.test(t)?ree:t===``?aee:oee),r)}function lee(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function At(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=jt({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=jt({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;
1Object.assign(i,u.params),o.push({params:i,pathname:Ut([a,u.pathname]),pathnameBase:uee(Ut([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=Ut([a,u.pathnameBase]))}return o}function jt(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Mt(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Mt(e,t=!1,n=!0){gt(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Nt(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return gt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Pt(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}var Ft=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function It(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?xt(e):e,a;return n?(n=Ht(n),a=n.startsWith(`/`)?Lt(n.substring(1),`/`):Lt(n,t)):a=t,{pathname:a,search:dee(r),hash:fee(i)}}function Lt(e,t){let n=Wt(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Rt(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function zt(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Bt(e){let t=zt(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Vt(e,t,n,r=!1){let i;typeof e==`string`?i=xt(e):(i={...e},ht(!i.pathname||!i.pathname.includes(`?`),Rt(`?`,`pathname`,`search`,i)),ht(!i.pathname||!i.pathname.includes(`#`),Rt(`#`,`pathname`,`hash`,i)),ht(!i.search||!i.search.includes(`#`),Rt(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=It(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Ht=e=>e.replace(/\/\/+/g,`/`),Ut=e=>Ht(e.join(`/`)),Wt=e=>e.replace(/\/+$/,``),uee=e=>Wt(e).replace(/^\/*/,`/`),dee=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,fee=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,pee=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function mee(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function hee(e){return Ut(e.map(e=>e.route.path).filter(Boolean))||`/`}var Gt=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Kt(e,t){let n=e;if(typeof n!=`string`||!Ft.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Gt)try{let e=new URL(window.location.href),r=n.startsWith(`//`)?new URL(e.protocol+n):new URL(n),a=Pt(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{gt(!1,`<Link to="${n}">
1 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var qt=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(qt);var gee=[`GET`,...qt];new Set(gee);var Jt=R.createContext(null);Jt.displayName=`DataRouter`;var Yt=R.createContext(null);Yt.displayName=`DataRouterState`;var Xt=R.createContext(!1);function _ee(){return R.useContext(Xt)}var Zt=R.createContext({isTransitioning:!1});Zt.displayName=`ViewTransition`;var vee=R.createContext(new Map);vee.displayName=`Fetchers`;var Qt=R.createContext(null);Qt.displayName=`Await`;var $t=R.createContext(null);$t.displayName=`Navigation`;var en=R.createContext(null);en.displayName=`Location`;var tn=R.createContext({outlet:null,matches:[],isDataRoute:!1});tn.displayName=`Route`;var nn=R.createContext(null);nn.displayName=`RouteError`;var rn=`REACT_ROUTER_ERROR`,an=`REDIRECT`,on=`ROUTE_ERROR_RESPONSE`;function sn(e){if(e.startsWith(`${rn}:${an}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function cn(e){if(e.startsWith(`${rn}:${on}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new pee(t.status,t.statusText,t.data)}catch{}}function ln(e,{relative:t}={}){ht(un(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=R.useContext($t),{hash:i,pathname:a,search:o}=yn(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Ut([n,a])),r.createHref({pathname:s,search:o,hash:i})}function un(){return R.useContext(en)!=null}function dn(){return ht(un(),`useLocation() may be used only in the context of a <Router> component.`),R.useContext(en).location}var fn=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function pn(e){R.useContext($t).static||R.useLayoutEffect(e)}function mn(){let{isDataRoute:e}=R.useContext(tn);return e?Oee():hn()}function hn(){ht(un(),`useNavigate() may be used only in the context of a <Router> component.`);let e=R.useContext(Jt),{basename:t,navigator:n}=R.useContext($t),{matches:r}=R.useContext(tn),{pathname:i}=dn(),a=JSON.stringify(Bt(r)),o=R.useRef(!1);return pn(()=>{o.current=!0}),R.useCallback((r,s={})=>{if(gt(o.current,fn),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Vt(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Ut([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var gn=R.createContext(null);function _n(e){let t=R.useContext(tn).outlet;return R.useMemo(()=>t&&R.createElement(gn.Provider,{value:e},t),[t,e])}function vn(){let{matches:e}=R.useContext(tn);return e[e.length-1]?.params??{}}function yn(e,{relative:t}={}){let{matches:n}=R.useContext(tn),{pathname:r}=dn(),i=JSON.stringify(Bt(n));return R.useMemo(()=>Vt(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function bn(e,t){return xn(e,t)}function xn(e,t,n){ht(un(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=R.useContext($t),{matches:i}=R.useContext(tn),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;An(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 2 3Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=dn(),d;if(t){let e=typeof t==`string`?xt(t):t;ht(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):Ct(e,{pathname:p});gt(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),gt(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=See(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Ut([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Ut([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?R.createElement(en.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function Sn(){let e=Dee(),t=mee(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=R.createElement(R.Fragment,null,R.createElement(`p`,null,`ð¿ Hey developer ð`),R.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,R.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,R.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),R.createElement(R.Fragment,null,R.createElement(`h2`,null,`Unexpected Application
3Error!`),R.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?R.createElement(`pre`,{style:i},n):null,o)}var yee=R.createElement(Sn,null),Cn=class extends R.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=cn(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:R.createElement(tn.Provider,{value:this.props.routeContext},R.createElement(nn.Provider,{value:e,children:this.props.component}));return this.context?R.createElement(bee,{error:e},t):t}};Cn.contextType=Xt;var wn=new WeakMap;function bee({children:e,error:t}){let{basename:n}=R.useContext($t);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=sn(t.digest);if(e){let r=wn.get(t);if(r)throw r;let i=Kt(e.location,n);if(Gt&&!wn.get(t))if(i.isExternal||e.reloadDocument)window.location.href=i.absoluteURL||i.to;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw wn.set(t,n),n}return R.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${i.absoluteURL||i.to}`})}}return e}function xee({routeContext:e,match:t,children:n}){let r=R.useContext(Jt);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),R.createElement(tn.Provider,{value:e},n)}function See(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);ht(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:hee(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||yee,o&&(s<0&&c===0?(An(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?R.createElement(n.route.Component,null):n.route.element?n.route.element:e,R.createElement(xee,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?R.createElement(Cn,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Tn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Cee(e){let t=R.useContext(Jt);return ht(t,Tn(e)),t}function En(e){let t=R.useContext(Yt);return ht(t,Tn(e)),t}function wee(e){let t=R.useContext(tn);return ht(t,Tn(e)),t}function Dn(e){let t=wee(e),n=t.matches[t.matches.length-1];return ht(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Tee(){return Dn(`useRouteId`)}function Eee(){return En(`useNavigation`).navigation}function On(){let{matches:e,loaderData:t}=En(`useMatches`);return R.useMemo(()=>e.map(e=>Tt(e,t)),[e,t])}function Dee(){let e=R.useContext(nn),t=En(`useRouteError`),n=Dn(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Oee(){let{router:e}=Cee(`useNavigate`),t=Dn(`useNavigate`),n=R.useRef(!1);return pn(()=>{n.current=!0}),R.useCallback(async(r,i={})=>{gt(n.current,fn),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var kn={};
3function An(e,t,n){!t&&!kn[e]&&(kn[e]=!0,gt(!1,n))}R.memo(kee);function kee({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return xn(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function Aee({to:e,replace:t,state:n,relative:r}){ht(un(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i}=R.useContext($t);gt(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:a}=R.useContext(tn),{pathname:o}=dn(),s=mn(),c=Vt(e,Bt(a),o,r===`path`),l=JSON.stringify(c);return R.useEffect(()=>{s(JSON.parse(l),{replace:t,state:n,relative:r})},[s,l,r,t,n]),null}function jee(e){return _n(e.context)}function jn({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){ht(!un(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=R.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=xt(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=R.useMemo(()=>{let e=Pt(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return gt(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:R.createElement($t.Provider,{value:c},R.createElement(en.Provider,{children:t,value:h}))}R.Component;var Mn=`get`,Nn=`application/x-www-form-urlencoded`;function Pn(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function Mee(e){return Pn(e)&&e.tagName.toLowerCase()===`button`}function Nee(e){return Pn(e)&&e.tagName.toLowerCase()===`form`}function Pee(e){return Pn(e)&&e.tagName.toLowerCase()===`input`}function Fee(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Iee(e,t){return e.button===0&&(!t||t===`_self`)&&!Fee(e)}function Fn(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function Lee(e,t){let n=Fn(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var In=null;function Ree(){if(In===null)try{new FormData(document.createElement(`form`),0),In=!1}catch{In=!0}return In}var zee=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Ln(e){return e!=null&&!zee.has(e)?(gt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Nn}"`),null):e}function Bee(e,t){let n,r,i,a,o;if(Nee(e)){let o=e.getAttribute(`action`);r=o?Pt(o,t):null,n=e.getAttribute(`method`)||Mn,i=Ln(e.getAttribute(`enctype`))||Nn,a=new FormData(e)}else if(Mee(e)||Pee(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Pt(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||Mn,i=Ln(e.getAttribute(`formenctype`))||Ln(o.getAttribute(`enctype`))||Nn,a=new FormData(o,e),!Ree()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(Pn(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=Mn,r=null,i=Nn,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var Vee={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},Hee=/[&><\u2028\u2029]/g;function Rn(e){return e.replace(Hee,e=>Vee[e])}function zn(e,t){if(e===!1||e==null)throw Error(t)}function Bn(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>
3`u`?`server://singlefetch/`:window.location.origin):e;return n?i.pathname.endsWith(`/`)?i.pathname=`${i.pathname}_.${r}`:i.pathname=`${i.pathname}.${r}`:i.pathname===`/`?i.pathname=`_root.${r}`:t&&Pt(i.pathname,t)===`/`?i.pathname=`${Wt(t)}/_root.${r}`:i.pathname=`${Wt(i.pathname)}.${r}`,i}async function Uee(e,t){if(e.id in t)return t[e.id];try{let n=await dt(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Wee(e){return e!=null&&typeof e.page==`string`}function Gee(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Kee(e,t,n){return Wn((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await Uee(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Gee).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Vn(e,t,n,r,i,a){let o=(e,t)=>n[t]?e.route.id!==n[t].route.id:!0,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function qee(e,t,{includeHydrateFallback:n}={}){return Hn(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Hn(e){return[...new Set(e)]}function Un(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Wn(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Wee(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Un(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Gn(){let e=R.useContext(Jt);return zn(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Kn(){let e=R.useContext(Yt);return zn(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var qn=R.createContext(void 0);qn.displayName=`FrameworkContext`;function Jn(){let e=R.useContext(qn);return zn(e,`You must render this element inside a <HydratedRouter> element`),e}function Yn(e,t){let n=R.useContext(qn),[r,i]=R.useState(!1),[a,o]=R.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=R.useRef(null);R.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),R.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Xn(s,p),onBlur:Xn(c,m),onMouseEnter:Xn(l,p),onMouseLeave:Xn(u,m),onTouchStart:Xn(d,p)}]:[a,f,{}]:[!1,f,{}]}function Xn(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Zn({page:e,...t}){let n=_ee(),{router:r}=Gn(),i=R.useMemo(()=>Ct(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?n?R.createElement($n,{page:e,matches:i,...t}):R.createElement(er,{page:e,matches:i,...t}):null}function Qn(e){let{manifest:t,routeModules:n}=Jn(),[r,i]=R.useState([]);return R.useEffect(()=>{let r=!1;return Kee(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function $n({page:e,matches:t,...n}){let r=dn(),{future:i}=Jn(),{basename:a}=Gn(),o=R.useMemo(()=>
3{if(e===r.pathname+r.search+r.hash)return[];let n=Bn(e,a,i.unstable_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.unstable_trailingSlashAwareDataRequests,e,r,t]);return R.createElement(R.Fragment,null,o.map(e=>R.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function er({page:e,matches:t,...n}){let r=dn(),{future:i,manifest:a,routeModules:o}=Jn(),{basename:s}=Gn(),{loaderData:c,matches:l}=Kn(),u=R.useMemo(()=>Vn(e,t,l,a,r,`data`),[e,t,l,a,r]),d=R.useMemo(()=>Vn(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=R.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=Bn(e,s,i.unstable_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.unstable_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=R.useMemo(()=>qee(d,a),[d,a]),m=Qn(d);return R.createElement(R.Fragment,null,f.map(e=>R.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>R.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>R.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function tr(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}R.Component;var nr=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{nr&&(window.__reactRouterVersion=`7.15.0`)}catch{}function rr({basename:e,children:t,useTransitions:n,window:r}){let i=R.useRef();i.current??=mt({window:r,v5Compat:!0});let a=i.current,[o,s]=R.useState({action:a.action,location:a.location}),c=R.useCallback(e=>{n===!1?s(e):R.startTransition(()=>s(e))},[n]);return R.useLayoutEffect(()=>a.listen(c),[a,c]),R.createElement(jn,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function ir({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=R.useState({action:n.action,location:n.location}),o=R.useCallback(e=>{r===!1?a(e):R.startTransition(()=>a(e))},[r]);return R.useLayoutEffect(()=>n.listen(o),[n,o]),R.createElement(jn,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}ir.displayName=`unstable_HistoryRouter`;var ar=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,or=R.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=R.useContext($t),v=typeof l==`string`&&ar.test(l),y=Kt(l,h);l=y.to;let b=ln(l,{relative:r}),x=dn(),S=null;if(o){let e=Vt(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Ut([h,e.pathname])),S=g.createHref(e)}let[C,w,T]=Yn(n,p),E=pr(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function D(t){e&&e(t),t.defaultPrevented||E(t)}let O=!(y.isExternal||i),k=R.createElement(`a`,{...p,...T,href:(O?S:void 0)||y.absoluteURL||b,onClick:O?D:e,ref:tr(m,w),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?R.createElement(R.Fragment,null,k,R.createElement(Zn,{page:b})):k});or.displayName=`Link`;var sr=R.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=yn(a,{relative:c.relative}),d=dn(),f=R.useContext(Yt),{navigator:p,basename:m}=R.useContext($t),h=f!=null&&wr(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=Pt(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,w;w=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(
3Boolean).join(` `);let T=typeof i==`function`?i(S):i;return R.createElement(or,{...c,"aria-current":C,className:w,ref:l,style:T,to:a,viewTransition:o},typeof s==`function`?s(S):s)});sr.displayName=`NavLink`;var cr=R.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Mn,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=R.useContext($t),g=_r(),_=vr(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&ar.test(s);return R.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?R.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});cr.displayName=`Form`;function lr({getKey:e,storageKey:t,...n}){let r=R.useContext(qn),{basename:i}=R.useContext($t),a=dn(),o=On();Sr({getKey:e,storageKey:t});let s=R.useMemo(()=>{if(!r||!e)return null;let t=xr(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];
3typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return R.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${Rn(JSON.stringify(t||yr))}, ${Rn(JSON.stringify(s))})`}})}lr.displayName=`ScrollRestoration`;function ur(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function dr(e){let t=R.useContext(Jt);return ht(t,ur(e)),t}function fr(e){let t=R.useContext(Yt);return ht(t,ur(e)),t}function pr(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=mn(),d=dn(),f=yn(e,{relative:o});return R.useCallback(p=>{if(Iee(p,t)){p.preventDefault();let t=n===void 0?bt(d)===bt(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?R.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function mr(e){gt(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=R.useRef(Fn(e)),n=R.useRef(!1),r=dn(),i=R.useMemo(()=>Lee(r.search,n.current?null:t.current),[r.search]),a=mn();return[i,R.useCallback((e,t)=>{let r=Fn(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var hr=0,gr=()=>`__${String(++hr)}__`;function _r(){let{router:e}=dr(`useSubmit`),{basename:t}=R.useContext($t),n=Tee(),r=e.fetch,i=e.navigate;return R.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Bee(e,t);a.navigate===!1?await r(a.fetcherKey||gr(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function vr(e,{relative:t}={}){let{basename:n}=R.useContext($t),r=R.useContext(tn);ht(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...yn(e||`.`,{relative:t})},o=dn();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Ut([n,a.pathname])),bt(a)}var yr=`react-router-scroll-positions`,br={};function xr(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:Pt(e.pathname,n)||e.pathname},t)),i??=e.key,i}function Sr({getKey:e,storageKey:t}={}){let{router:n}=dr(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=fr(`useScrollRestoration`),{basename:a}=R.useContext($t),o=dn(),s=On(),c=Eee();R.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),Cr(R.useCallback(()=>{if(c.state===`idle`){let t=xr(o,s,a,e);br[t]=window.scrollY}try{sessionStorage.setItem(t||yr,JSON.stringify(br))}catch(e){gt(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(R.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||yr);e&&(br=JSON.parse(e))}catch{}},[t]),R.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(br,()=>window.scrollY,e?(t,n)=>xr(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),R.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{gt(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function Cr(e,t){let{capture:n}=t||{};R.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function wr(e,{relative:t}={}){let n=R.useContext(Zt);ht(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=dr(`useViewTransitionState`),i=yn(e,{relative:t});if(!n.isTransitioning)return!1;let a=Pt(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Pt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return jt(i.pathname,o)!=null||jt(i.pathname,a)!=null}var Tr=a((e=>{var t=s();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,c=t.useDebugValue;function l(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),s=r[0].inst,l=r[1];return o(function(){s.value=n,s.getSnapshot=t,u(s)&&l({inst:s})},[e,n,t]),a(function(){return u(s)&&l({inst:s}),e(function(){u(s)&&l({inst:s})})},[e]),c(n),n}function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function d(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?d:l;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Er=a(((e,t)=>{t.exports=Tr()})),Dr=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({}
3,t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,i,a);return a},Or=(e=>e?Dr(e):Dr),kr=e=>e;function Ar(e,t=kr){let n=R.useSyncExternalStore(e.subscribe,R.useCallback(()=>t(e.getState()),[e,t]),R.useCallback(()=>t(e.getInitialState()),[e,t]));return R.useDebugValue(n),n}var jr=e=>{let t=Or(e),n=e=>Ar(t,e);return Object.assign(n,t),n},Mr=(e=>e?jr(e):jr);function Nr(e,t){let n;try{n=e()}catch{return}return{getItem:e=>{let r=e=>e===null?null:JSON.parse(e,t?.reviver),i=n.getItem(e)??null;return i instanceof Promise?i.then(r):r(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,t?.replacer)),removeItem:e=>n.removeItem(e)}}var Pr=e=>t=>{try{let n=e(t);return n instanceof Promise?n:{then(e){return Pr(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return Pr(t)(e)}}}},Fr=(e,t)=>(n,r,i)=>{let a={storage:Nr(()=>window.localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1,s=0,c=new Set,l=new Set,u=a.storage;if(!u)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${a.name}', the given storage is currently unavailable.`),n(...e)},r,i);let d=()=>{let e=a.partialize({...r()});return u.setItem(a.name,{state:e,version:a.version})},f=i.setState;i.setState=(e,t)=>(f(e,t),d());let p=e((...e)=>(n(...e),d()),r,i);i.getInitialState=()=>p;let m,h=()=>{if(!u)return;let e=++s;o=!1,c.forEach(e=>e(r()??p));let t=a.onRehydrateStorage?.call(a,r()??p)||void 0;return Pr(u.getItem.bind(u))(a.name).then(e=>{if(e)if(typeof e.version==`number`&&e.version!==a.version){if(a.migrate){let t=a.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error(`State loaded from storage couldn't be migrated since no migrate function was provided`)}else return[!1,e.state];return[!1,void 0]}).then(t=>{if(e!==s)return;let[i,o]=t;if(m=a.merge(o,r()??p),n(m,!0),i)return d()}).then(()=>{e===s&&(t?.(r(),void 0),m=r(),o=!0,l.forEach(e=>e(m)))}).catch(n=>{e===s&&t?.(void 0,n)})};return i.persist={setOptions:e=>{a={...a,...e},e.storage&&(u=e.storage)},clearStorage:()=>{u?.removeItem(a.name)},getOptions:()=>a,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},a.skipHydration||h(),m||p};function Ir(e,t){return typeof e==`object`&&e&&`$typeName`in e&&typeof e.$typeName==`string`?t===void 0?!0:t.typeName===e.$typeName:!1}var z;(function(e){e[e.DOUBLE=1]=`DOUBLE`,e[e.FLOAT=2]=`FLOAT`,e[e.INT64=3]=`INT64`,e[e.UINT64=4]=`UINT64`,e[e.INT32=5]=`INT32`,e[e.FIXED64=6]=`FIXED64`,e[e.FIXED32=7]=`FIXED32`,e[e.BOOL=8]=`BOOL`,e[e.STRING=9]=`STRING`,e[e.BYTES=12]=`BYTES`,e[e.UINT32=13]=`UINT32`,e[e.SFIXED32=15]=`SFIXED32`,e[e.SFIXED64=16]=`SFIXED64`,e[e.SINT32=17]=`SINT32`,e[e.SINT64=18]=`SINT64`})(z||={});function Lr(){let e=0,t=0;for(let n=0;n<28;n+=7){let r=this.buf[this.pos++];if(e|=(r&127)<<n,!(r&128))return this.assertBounds(),[e,t]}let n=this.buf[this.pos++];if(e|=(n&15)<<28,t=(n&112)>>4,!(n&128))return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let r=this.buf[this.pos++];if(t|=(r&127)<<n,!(r&128))return this.assertBounds(),[e,t]}throw Error(`invalid varint`)}function Rr(e,t,n){for(let r=0;r<28;r+=7){let i=e>>>r,a=!(!(i>>>7)&&t==0),o=(a?i|128:i)&255;if(n.push(o),!a)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),i){for(let e=3;e<31;e+=7){let r=t>>>e,i=!!(r>>>7),a=(i?r|128:r)&255;if(n.push(a),!i)return}n.push(t>>>31&1)}}var zr=4294967296;function Br(e){let t=e[0]===`-`;t&&(e=e.slice(1));let n=1e6,r=0,i=0;function a(t,a){let o=Number(e.slice(t,a));i*=n,r=r*n+o,r>=zr&&(i+=r/zr|0,r%=zr)}return a(-24,-18),a(-18,-12),a(-12,-6),a(-6),t?Gr(r,i):Wr(r,i)}function Vr(e,t){let n=Wr(e,t),r=n.hi&2147483648;r&&(n=Gr(n.lo,n.hi));let i=Hr(n.lo,n.hi);return r?`-`+i:i}function Hr(e,t){if({lo:e,hi:t}=Ur(e,t),t<=2097151)return String(zr*t+e);let n=e&16777215,r=(e>>>24|t<<8)&16777215,i=t>>16&65535,a=n+r*6777216+i*6710656,o=r+i*8147497,s=i*2,c=1e7;return a>=c&&(o+=Math.floor(a/c),a%=c),o>=c&&(s+=Math.floor(o/c),o%=c),s.toString()+Kr(o)+Kr(a)}function Ur(e,t){return{lo:e>>>0,hi:t>>>0}}function Wr(e,t){return{lo:e|0,hi:t|0}}function Gr(e,t){return t=~t,e?e=~e+1:t+=1,Wr(e,t)}var Kr=e=>{let t=String(e);return`0000000`.slice(t.length)+t};function qr(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e>>>=7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e>>=7;t.push(1)}}function Jee(){let e=this.buf[this.pos++],t=e&127;
3if(!(e&128)||(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128)))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let t=5;e&128&&t<10;t++)e=this.buf[this.pos++];if(e&128)throw Error(`invalid varint`);return this.assertBounds(),t>>>0}var Jr=Yee();function Yee(){let e=new DataView(new ArrayBuffer(8));if(typeof BigInt==`function`&&typeof e.getBigInt64==`function`&&typeof e.getBigUint64==`function`&&typeof e.setBigInt64==`function`&&typeof e.setBigUint64==`function`&&(globalThis.Deno||globalThis.Bun||typeof process!=`object`||{}.BUF_BIGINT_DISABLE!==`1`)){let t=BigInt(`-9223372036854775808`),n=BigInt(`9223372036854775807`),r=BigInt(`0`),i=BigInt(`18446744073709551615`);return{zero:BigInt(0),supported:!0,parse(e){let r=typeof e==`bigint`?e:BigInt(e);if(r>n||r<t)throw Error(`invalid int64: ${e}`);return r},uParse(e){let t=typeof e==`bigint`?e:BigInt(e);if(t>i||t<r)throw Error(`invalid uint64: ${e}`);return t},enc(t){return e.setBigInt64(0,this.parse(t),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(t){return e.setBigInt64(0,this.uParse(t),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec(t,n){return e.setInt32(0,t,!0),e.setInt32(4,n,!0),e.getBigInt64(0,!0)},uDec(t,n){return e.setInt32(0,t,!0),e.setInt32(4,n,!0),e.getBigUint64(0,!0)}}}return{zero:`0`,supported:!1,parse(e){return typeof e!=`string`&&(e=e.toString()),Yr(e),e},uParse(e){return typeof e!=`string`&&(e=e.toString()),Xr(e),e},enc(e){return typeof e!=`string`&&(e=e.toString()),Yr(e),Br(e)},uEnc(e){return typeof e!=`string`&&(e=e.toString()),Xr(e),Br(e)},dec(e,t){return Vr(e,t)},uDec(e,t){return Hr(e,t)}}}function Yr(e){if(!/^-?[0-9]+$/.test(e))throw Error(`invalid int64: `+e)}function Xr(e){if(!/^[0-9]+$/.test(e))throw Error(`invalid uint64: `+e)}function Zr(e,t){switch(e){case z.STRING:return``;case z.BOOL:return!1;case z.DOUBLE:case z.FLOAT:return 0;case z.INT64:case z.UINT64:case z.SFIXED64:case z.FIXED64:case z.SINT64:return t?`0`:Jr.zero;case z.BYTES:return new Uint8Array;default:return 0}}function Xee(e,t){switch(e){case z.BOOL:return t===!1;case z.STRING:return t===``;case z.BYTES:return t instanceof Uint8Array&&!t.byteLength;case z.DOUBLE:case z.FLOAT:return Object.is(t,0);default:return t==0}}var Qr=2,$r=Symbol.for(`reflect unsafe local`);function ei(e,t){let n=e[t.localName].case;return n===void 0?n:t.fields.find(e=>e.localName===n)}function Zee(e,t){let n=t.localName;if(t.oneof)return e[t.oneof.localName].case===n;if(t.presence!=Qr)return e[n]!==void 0&&Object.prototype.hasOwnProperty.call(e,n);switch(t.fieldKind){case`list`:return e[n].length>0;case`map`:return Object.keys(e[n]).length>0;case`scalar`:return!Xee(t.scalar,e[n]);case`enum`:return e[n]!==t.enum.values[0].number}throw Error(`message field with implicit presence`)}function ti(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==void 0}function ni(e,t){if(t.oneof){let n=e[t.oneof.localName];return n.case===t.localName?n.value:void 0}return e[t.localName]}function ri(e,t,n){t.oneof?e[t.oneof.localName]={case:t.localName,value:n}:e[t.localName]=n}function Qee(e,t){let n=t.localName;if(t.oneof){let r=t.oneof.localName;e[r].case===n&&(e[r]={case:void 0})}else if(t.presence!=Qr)delete e[n];
3else switch(t.fieldKind){case`map`:e[n]={};break;case`list`:e[n]=[];break;case`enum`:e[n]=t.enum.values[0].number;break;case`scalar`:e[n]=Zr(t.scalar,t.longAsString);break}}function ii(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ai(e,t){if(ii(e)&&$r in e&&`add`in e&&`field`in e&&typeof e.field==`function`){if(t!==void 0){let n=t,r=e.field();return n.listKind==r.listKind&&n.scalar===r.scalar&&n.message?.typeName===r.message?.typeName&&n.enum?.typeName===r.enum?.typeName}return!0}return!1}function oi(e,t){if(ii(e)&&$r in e&&`has`in e&&`field`in e&&typeof e.field==`function`){if(t!==void 0){let n=t,r=e.field();return n.mapKey===r.mapKey&&n.mapKind==r.mapKind&&n.scalar===r.scalar&&n.message?.typeName===r.message?.typeName&&n.enum?.typeName===r.enum?.typeName}return!0}return!1}function si(e,t){return ii(e)&&$r in e&&`desc`in e&&ii(e.desc)&&e.desc.kind===`message`&&(t===void 0||e.desc.typeName==t.typeName)}function $ee(e){return li(e.$typeName)}function ci(e){let t=e.fields[0];return li(e.typeName)&&t!==void 0&&t.fieldKind==`scalar`&&t.name==`value`&&t.number==1}function li(e){return e.startsWith(`google.protobuf.`)&&[`DoubleValue`,`FloatValue`,`Int64Value`,`UInt64Value`,`Int32Value`,`UInt32Value`,`BoolValue`,`StringValue`,`BytesValue`].includes(e.substring(16))}var ete=999,tte=998,ui=2;function di(e,t){if(Ir(t,e))return t;let n=ote(e);return t!==void 0&&nte(e,n,t),n}function nte(e,t,n){for(let r of e.members){let e=n[r.localName];if(e==null)continue;let i;if(r.kind==`oneof`){let t=ei(n,r);if(!t)continue;i=t,e=ni(n,t)}else i=r;switch(i.fieldKind){case`message`:e=pi(i,e);break;case`scalar`:e=fi(i,e);break;case`list`:e=ite(i,e);break;case`map`:e=rte(i,e);break}ri(t,i,e)}return t}function fi(e,t){return e.scalar==z.BYTES?mi(t):t}function rte(e,t){if(ii(t)){if(e.scalar==z.BYTES)return hi(t,mi);if(e.mapKind==`message`)return hi(t,t=>pi(e,t))}return t}function ite(e,t){if(Array.isArray(t)){if(e.scalar==z.BYTES)return t.map(mi);if(e.listKind==`message`)return t.map(t=>pi(e,t))}return t}function pi(e,t){if(e.fieldKind==`message`&&!e.oneof&&ci(e.message))return fi(e.message.fields[0],t);if(ii(t)){if(e.message.typeName==`google.protobuf.Struct`&&e.parent.typeName!==`google.protobuf.Value`)return t;if(!Ir(t,e.message))return di(e.message,t)}return t}function mi(e){return Array.isArray(e)?new Uint8Array(e):e}function hi(e,t){let n={};for(let r of Object.entries(e))n[r[0]]=t(r[1]);return n}var ate=Symbol(),gi=new WeakMap;function ote(e){let t;if(ste(e)){let n=gi.get(e),r,i;if(n)({prototype:r,members:i}=n);else{r={},i=new Set;for(let t of e.members)t.kind!=`oneof`&&(t.fieldKind!=`scalar`&&t.fieldKind!=`enum`||t.presence!=ui&&(i.add(t),r[t.localName]=_i(t)));gi.set(e,{prototype:r,members:i})}t=Object.create(r),t.$typeName=e.typeName;for(let n of e.members)i.has(n)||n.kind==`field`&&(n.fieldKind==`message`||(n.fieldKind==`scalar`||n.fieldKind==`enum`)&&n.presence!=ui)||(t[n.localName]=_i(n))}else{t={$typeName:e.typeName};for(let n of e.members)(n.kind==`oneof`||n.presence==ui)&&(t[n.localName]=_i(n))}return t}function ste(e){switch(e.file.edition){case ete:return!1;case tte:return!0;default:return e.fields.some(e=>e.presence!=ui&&e.fieldKind!=`message`&&!e.oneof)}}function _i(e){if(e.kind==`oneof`)return{case:void 0};if(e.fieldKind==`list`)return[];if(e.fieldKind==`map`)return{};if(e.fieldKind==`message`)return ate;let t=e.getDefaultValue();return t===void 0?e.fieldKind==`scalar`?Zr(e.scalar,e.longAsString):e.enum.values[0].number:e.fieldKind==`scalar`&&e.longAsString?t.toString():t}var vi=class extends Error{constructor(e,t,n=`FieldValueInvalidError`){super(t),this.name=n,this.field=()=>e}},yi=Symbol.for(`@bufbuild/protobuf/text-encoding`);function bi(){if(globalThis[yi]==null){let e=new globalThis.TextEncoder,t=new globalThis.TextDecoder,n;globalThis[yi]={encodeUtf8(t){return e.encode(t)},decodeUtf8(e,r){return r?(n===void 0&&(n=new globalThis.TextDecoder(`utf-8`,{fatal:!0})),n.decode(e)):t.decode(e)},checkUtf8(e){try{return!0}catch{return!1}}}}return globalThis[yi]}var xi;(function(e){e[e.Varint=0]=`Varint`,e[e.Bit64=1]=`Bit64`,e[e.LengthDelimited=2]=`LengthDelimited`,e[e.StartGroup=3]=`StartGroup`,e[e.EndGroup=4]=`EndGroup`,e[e.Bit32=5]=`Bit32`})(xi||={});var cte=class{constructor(e=bi().encodeUtf8){this.encodeUtf8=e,this.stack=[],this.chunks=[],this.buf=[]}finish(){this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]);let e=0;for(let t=0;t<this.chunks.length;t++)e+=this.chunks[t].length;let t=new Uint8Array(e),n=0;for(let e=0;e<this.chunks.length;e++)t.set(this.chunks[e],n),n+=this.chunks[e].length;return this.chunks=[],t}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let e=this.finish(),t=this.stack.pop();if(!t)throw Error(`invalid state, fork stack empty`);return this.chunks=t.chunks,this.buf=t.buf,this.uint32(e.byteLength),this.raw(e)}tag(e,t){return this.uint32((e<<3|t)>>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(wi(e);e>127;)this.buf.push(e&127|128),e>>>=7;return this.buf.push(e),this}int32(e){return Ci(e),qr(e,this.buf),this}bool(e){return this.buf.push(+!!e),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.encodeUtf8(e);return this.uint32(t.byteLength),this.raw(t)}float(e){lte(e);let t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){wi(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){Ci(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return Ci(e),e=(e<<1^e>>31)>>>0,qr(e,this.buf),this}sfixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),r=Jr.enc(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}fixed64(e){let t=new Uint8Array(8),n=new DataView(t.buffer),r=Jr.uEnc(e);return n.setInt32(0,r.lo,!0),n.setInt32(4,r.hi,!0),this.raw(t)}int64(e){let t=Jr.enc(e);return Rr(t.lo,t.hi,this.buf),this}sint64(e){let t=Jr.enc(e),n=t.hi>>31;return Rr(t.lo<<1^n,(t.hi<<1|t.lo>>>31)^n,this.buf),this}uint64(e){let t=Jr.uEnc(e);return Rr(t.lo,t.hi,this.buf),this}},Si=class{constructor(e,t=bi().decodeUtf8){this.decodeUtf8=t,this.varint64=Lr,this.uint32=Jee,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength)}tag(){let e=this.pos,t=this.uint32(),n=this.pos-e;if(n>5||n==5&&this.buf[this.pos-1]>15)throw Error(`illegal tag: varint overflows uint32`);let r=t>>>3,i=t&7;if(r<=0||i>5)throw Error(`illegal tag: field no `+r+` wire type `+i);return[r,i]}skip(e,t,n=100){let r=this.pos;switch(e){case xi.Varint:for(;this.buf[this.pos++]&128;);break;case xi.Bit64:this.pos+=4;case xi.Bit32:this.pos+=4;break;case xi.LengthDelimited:let r=this.uint32();this.pos+=r;break;case xi.StartGroup:if(n<=0)throw Error(`maximum recursion depth reached`);for(;;){let[e,r]=this.tag();if(r===xi.EndGroup){if(t!==void 0&&e!==t)throw Error(`invalid end group tag`);break}this.skip(r,e,n-1)}break;default:throw Error(`cant skip wire type `+e)}return this.assertBounds(),this.buf.subarray(r,this.pos)}assertBounds(){if(this.pos>this.len)throw RangeError(`premature EOF`)}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return Jr.dec(...this.varint64())}uint64(){return Jr.uDec(...this.varint64())}sint64(){let[e,t]=this.varint64(),n=-(e&1);return e=(e>>>1|(t&1)<<31)^n,t=t>>>1^n,Jr.dec(e,t)}bool(){let[e,t]=this.varint64();return e!==0||t!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return Jr.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Jr.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(e){return this.decodeUtf8(this.bytes(),e)}};function Ci(e){if(typeof e==`string`)e=Number(e);else if(typeof e!=`number`)throw Error(`invalid int32: `+typeof e);if(!Number.isInteger(e)||e>2147483647||e<-2147483648)throw Error(`invalid int32: `+e)}function wi(e){if(typeof e==`string`)e=Number(e);else if(typeof e!=`number`)throw Error(`invalid uint32: `+typeof e);if(!Number.isInteger(e)||e>4294967295||e<0)throw Error(`invalid uint32: `+e)}function lte(e){if(typeof e==`string`){let t=e;if(e=Number(e),Number.isNaN(e)&&t!==`NaN`)throw Error(`invalid float32: `+t)}else if(typeof e!=`number`)throw Error(`invalid float32: `+typeof e);if(Number.isFinite(e)&&(e>34028234663852886e22||e<-34028234663852886e22))throw Error(`invalid float32: `+e)}function ute(e,t){let n=e.fieldKind==`list`?ai(t,e):e.fieldKind==`map`?oi(t,e):Ei(e,t);if(n===!0)return;let r;switch(e.fieldKind){case`list`:r=`expected ${ji(e)}, got ${ki(t)}`;break;case`map`:r=`expected ${Mi(e)}, got ${ki(t)}`;break;
vendor: 9,721 bytes, lines 3-4
3default:r=Oi(e,t,n)}return new vi(e,r)}function Ti(e,t,n){let r=Ei(e,n);if(r!==!0)return new vi(e,`list item #${t+1}: ${Oi(e,n,r)}`)}function dte(e,t,n){let r=Di(t,e.mapKey);if(r!==!0)return new vi(e,`invalid map key: ${Oi({scalar:e.mapKey},t,r)}`);let i=Ei(e,n);if(i!==!0)return new vi(e,`map entry ${ki(t)}: ${Oi(e,n,i)}`)}function Ei(e,t){return e.scalar===void 0?e.enum===void 0?si(t,e.message):e.enum.open?Di(t,z.INT32):e.enum.values.some(e=>e.number===t):Di(t,e.scalar)}function Di(e,t){switch(t){case z.DOUBLE:return typeof e==`number`;case z.FLOAT:return typeof e==`number`?Number.isNaN(e)||!Number.isFinite(e)?!0:e>34028234663852886e22||e<-34028234663852886e22?`${e.toFixed()} out of range`:!0:!1;case z.INT32:case z.SFIXED32:case z.SINT32:return typeof e!=`number`||!Number.isInteger(e)?!1:e>2147483647||e<-2147483648?`${e.toFixed()} out of range`:!0;case z.FIXED32:case z.UINT32:return typeof e!=`number`||!Number.isInteger(e)?!1:e>4294967295||e<0?`${e.toFixed()} out of range`:!0;case z.BOOL:return typeof e==`boolean`;case z.STRING:return typeof e==`string`?bi().checkUtf8(e)||`invalid UTF8`:!1;case z.BYTES:return e instanceof Uint8Array;case z.INT64:case z.SFIXED64:case z.SINT64:if(typeof e==`bigint`||typeof e==`number`||typeof e==`string`&&e.length>0)try{return Jr.parse(e),!0}catch{return`${e} out of range`}return!1;case z.FIXED64:case z.UINT64:if(typeof e==`bigint`||typeof e==`number`||typeof e==`string`&&e.length>0)try{return Jr.uParse(e),!0}catch{return`${e} out of range`}return!1}}function Oi(e,t,n){return n=typeof n==`string`?`: ${n}`:`, got ${ki(t)}`,e.scalar===void 0?e.enum===void 0?`expected ${Ai(e.message)}`+n:`expected ${e.enum.toString()}`+n:`expected ${fte(e.scalar)}`+n}function ki(e){switch(typeof e){case`object`:return e===null?`null`:e instanceof Uint8Array?`Uint8Array(${e.length})`:Array.isArray(e)?`Array(${e.length})`:ai(e)?ji(e.field()):oi(e)?Mi(e.field()):si(e)?Ai(e.desc):Ir(e)?`message ${e.$typeName}`:`object`;case`string`:return e.length>30?`string`:`"${e.split(`"`).join(`\\"`)}"`;case`boolean`:return String(e);case`number`:return String(e);case`bigint`:return String(e)+`n`;default:return typeof e}}function Ai(e){return`ReflectMessage (${e.typeName})`}function ji(e){switch(e.listKind){case`message`:return`ReflectList (${e.message.toString()})`;case`enum`:return`ReflectList (${e.enum.toString()})`;case`scalar`:return`ReflectList (${z[e.scalar]})`}}function Mi(e){switch(e.mapKind){case`message`:return`ReflectMap (${z[e.mapKey]}, ${e.message.toString()})`;case`enum`:return`ReflectMap (${z[e.mapKey]}, ${e.enum.toString()})`;case`scalar`:return`ReflectMap (${z[e.mapKey]}, ${z[e.scalar]})`}}function fte(e){switch(e){case z.STRING:return`string`;case z.BOOL:return`boolean`;case z.INT64:case z.SINT64:case z.SFIXED64:return`bigint (int64)`;case z.UINT64:case z.FIXED64:return`bigint (uint64)`;case z.BYTES:return`Uint8Array`;case z.DOUBLE:return`number (float64)`;case z.FLOAT:return`number (float32)`;case z.FIXED32:case z.UINT32:return`number (uint32)`;case z.INT32:case z.SFIXED32:case z.SINT32:return`number (int32)`}}function Ni(e,t,n=!0){return new Fi(e,t,n)}var Pi=new WeakMap,Fi=class{get sortedFields(){let e=Pi.get(this.desc);if(e)return e;let t=this.desc.fields.concat().sort((e,t)=>e.number-t.number);return Pi.set(this.desc,t),t}constructor(e,t,n=!0){this.lists=new Map,this.maps=new Map,this.check=n,this.desc=e,this.message=this[$r]=t??di(e),this.fields=e.fields,this.oneofs=e.oneofs,this.members=e.members}findNumber(e){return this._fieldsByNumber||=new Map(this.desc.fields.map(e=>[e.number,e])),this._fieldsByNumber.get(e)}oneofCase(e){return Ii(this.message,e),ei(this.message,e)}isSet(e){return Ii(this.message,e),Zee(this.message,e)}clear(e){Ii(this.message,e),Qee(this.message,e)}get(e){Ii(this.message,e);let t=ni(this.message,e);switch(e.fieldKind){case`list`:let n=this.lists.get(e);return(!n||n[$r]!==t)&&this.lists.set(e,n=new pte(e,t,this.check)),n;case`map`:let r=this.maps.get(e);return(!r||r[$r]!==t)&&this.maps.set(e,r=new mte(e,t,this.check)),r;case`message`:return Ri(e,t,this.check);case`scalar`:return t===void 0?Zr(e.scalar,!1):Wi(e,t);case`enum`:return t??e.enum.values[0].number}}set(e,t){if(Ii(this.message,e),this.check){let n=ute(e,t);if(n)throw n}let n;n=e.fieldKind==`message`?Li(e,t):oi(t)||ai(t)?t[$r]:Gi(e,t),ri(this.message,e,n)}getUnknown(){return this.message.$unknown}setUnknown(e){this.message.$unknown=e}};function Ii(e,t){if(t.parent.typeName!==e.$typeName)throw new vi(t,`cannot use ${t.toString()} with message ${e.$typeName}`,`ForeignFieldError`)}var pte=class{field(){return this._field}get size(){return this._arr.length}constructor(e,t,n){this._field=e,this._arr=this[$r]=t,this.check=n}get(e){let t=this._arr[e];return t===void 0?void 0:Bi(this._field,t,this.check)}set(e,t){if(e<0||e>=this._arr.length)throw new vi(this._field,`list item #${e+1}: out of range`);if(this.check){let n=Ti(this._field,e,t);if(n)throw n}this._arr[e]=zi(this._field,t)}add(e){if(this.check){let t=Ti(this._field,this._arr.length,e);if(t)throw t}this._arr.push(zi(this._field,e))}clear(){this._arr.splice(0,this._arr.length)}[Symbol.iterator](){return this.values()}keys(){return this._arr.keys()}*values(){for(let e of this._arr)yield Bi(this._field,e,this.check)}*entries(){for(let e=0;e<this._arr.length;e++)yield[e,Bi(this._field,this._arr[e],this.check)]}},mte=class{constructor(e,t,n=!0){this.obj=this[$r]=t??{},this.check=n,this._field=e}field(){return this._field}set(e,t){if(this.check){let n=dte(this._field,e,t);if(n)throw n}return this.obj[Hi(e)]=hte(this._field,t),this}delete(e){let t=Hi(e),n=Object.prototype.hasOwnProperty.call(this.obj,t);return n&&delete this.obj[t],n}clear(){for(let e of Object.keys(this.obj))delete this.obj[e]}get(e){let t=this.obj[Hi(e)];return t!==void 0&&(t=Vi(this._field,t,this.check)),t}has(e){return Object.prototype.hasOwnProperty.call(this.obj,Hi(e))}*keys(){for(let e of Object.keys(this.obj))yield Ui(e,this._field.mapKey)}*entries(){for(let e of Object.entries(this.obj))yield[Ui(e[0],this._field.mapKey),Vi(this._field,e[1],this.check)]}[Symbol.iterator](){return this.entries()}get size(){return Object.keys(this.obj).length}*values(){for(let e of Object.values(this.obj))yield Vi(this._field,e,this.check)}forEach(e,t){for(let n of this.entries())e.call(t,n[1],n[0],this)}};function Li(e,t){return si(t)?$ee(t.message)&&!e.oneof&&e.fieldKind==`message`?t.message.value:t.desc.typeName==`google.protobuf.Struct`&&e.parent.typeName!=`google.protobuf.Value`?qi(t.message):t.message:t}function Ri(e,t,n){return t!==void 0&&(ci(e.message)&&!e.oneof&&e.fieldKind==`message`?t={$typeName:e.message.typeName,value:Wi(e.message.fields[0],t)}:e.message.typeName==`google.protobuf.Struct`&&e.parent.typeName!=`google.protobuf.Value`&&ii(t)&&(t=Ki(t))),new Fi(e.message,t,n)}function zi(e,t){return e.listKind==`message`?Li(e,t):Gi(e,t)}function Bi(e,t,n){return e.listKind==`message`?Ri(e,t,n):Wi(e,t)}function hte(e,t){return e.mapKind==`message`?Li(e,t):Gi(e,t)}function Vi(e,t,n){return e.mapKind==`message`?Ri(e,t,n):t}function Hi(e){return typeof e==`string`||typeof e==`number`?e:String(e)}function Ui(e,t){switch(t){case z.STRING:return e;case z.INT32:case z.FIXED32:case z.UINT32:case z.SFIXED32:case z.SINT32:{let t=Number.parseInt(e);if(Number.isFinite(t))return t;break}case z.BOOL:switch(e){case`true`:return!0;case`false`:return!1}break;case z.UINT64:case z.FIXED64:try{return Jr.uParse(e)}catch{}break;default:try{return Jr.parse(e)}catch{}break}return e}function Wi(e,t){switch(e.scalar){case z.INT64:case z.SFIXED64:case z.SINT64:`longAsString`in e&&e.longAsString&&typeof t==`string`&&(t=Jr.parse(t));break;case z.FIXED64:case z.UINT64:`longAsString`in e&&e.longAsString&&typeof t==`string`&&(t=Jr.uParse(t));break}return t}function Gi(e,t){switch(e.scalar){case z.INT64:case z.SFIXED64:case z.SINT64:`longAsString`in e&&e.longAsString?t=String(t):(typeof t==`string`||typeof t==`number`)&&(t=Jr.parse(t));break;case z.FIXED64:case z.UINT64:`longAsString`in e&&e.longAsString?t=String(t):(typeof t==`string`||typeof t==`number`)&&(t=Jr.uParse(t));break}return t}function Ki(e){let t={$typeName:`google.protobuf.Struct`,fields:{}};if(ii(e))for(let[n,r]of Object.entries(e))t.fields[n]=Yi(r);return t}function qi(e){let t={};for(let[n,r]of Object.entries(e.fields))t[n]=Ji(r);return t}function Ji(e){switch(e.kind.case){case`structValue`:return qi(e.kind.value);case`listValue`:return e.kind.value.values.map(Ji);case`nullValue`:case void 0:return null;default:return e.kind.value}}function Yi(e){let t={$typeName:`google.protobuf.Value`,kind:{case:void 0}};switch(typeof e){case`number`:t.kind={case:`numberValue`,value:e};break;case`string`:t.kind={case:`stringValue`,value:e};break;case`boolean`:t.kind={case:`boolValue`,value:e};break;case`object`:if(e===null)t.kind={case:`nullValue`,value:0};else if(Array.isArray(e)){let n={$typeName:`google.protobuf.ListValue`,values:[]};if(Array.isArray(e))for(let t of e)n.values.push(Yi(t));t.kind={case:`listValue`,value:n}}else t.kind={case:`structValue`,value:Ki(e)};break}return t}function Xi(e){let t=ta(),n=e.length*3/4;e[e.length-2]==`=`?n-=2:e[e.length-1]==`=`&&--n;let r=new Uint8Array(n),i=0,a=0,o,s=0;for(let n=0;n<e.length;n++){if(o=t[e.charCodeAt(n)],o===void 0)switch(e[n]){case`=`:a=0;case` 4`:case`\r`:case` `:case` `:continue;default:throw Error(`invalid base64 string`)}switch(a){case 0:s=o,a=1;break;case 1:r[i++]=s<<2|(o&48)>>4,s=o,a=2;break;case 2:r[i++]=(s&15)<<4|(o&60)>>2,s=o,a=3;break;case 3:r[i++]=(s&3)<<6|o,a=0;break}}if(a==1)throw Error(`invalid base64 string`);return r.subarray(0,i)}var Zi,Qi,$i;function ea(e){return Zi||(Zi=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
4+/`.split(``),Qi=Zi.slice(0,-2).concat(`-`,`_`)),e==`url`?Qi:Zi}function ta(){if(!$i){$i=[];let e=ea(`std`);for(let t=0;t<e.length;t++)$i[e[t].charCodeAt(0)]=t;$i[45]=e.indexOf(`+`),$i[95]=e.indexOf(`/`)}return $i}function na(e){let t=!1,n=[];for(let r=0;r<e.length;r++){let i=e.charAt(r);switch(i){case`_`:t=!0;break;case`0`:case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:case`8`:case`9`:n.push(i),t=!1;break;default:t&&(t=!1,i=i.toUpperCase()),n.push(i);break}}return n.join(``)}var ra=new Set([`constructor`,`toString`,`toJSON`,`valueOf`]);function ia(e){return ra.has(e)?e+`$`:e}function aa(e){for(let t of e.field)ti(t,`jsonName`)||(t.jsonName=na(t.name));e.nestedType.forEach(aa)}function oa(e,t){let n=e.values.find(e=>e.name===t);if(!n)throw Error(`cannot parse ${e} default value: ${t}`);return n.number}function sa(e,t){switch(e){case z.STRING:return t;case z.BYTES:{let n=ca(t);if(n===!1)throw Error(`cannot parse ${z[e]} default value: ${t}`);return n}case z.INT64:case z.SFIXED64:case z.SINT64:return Jr.parse(t);case z.UINT64:case z.FIXED64:return Jr.uParse(t);case z.DOUBLE:case z.FLOAT:switch(t){case`inf`:return 1/0;case`-inf`:return-1/0;case`nan`:return NaN;default:return parseFloat(t)}case z.BOOL:return t===`true`;case z.INT32:case z.UINT32:case z.SINT32:case z.FIXED32:case z.SFIXED32:return parseInt(t,10)}}function ca(e){let t=[],n={tail:e,c:``,next(){return this.tail.length==0?!1:(this.c=this.tail[0],this.tail=this.tail.substring(1),!0)},take(e){if(this.tail.length>=e){let t=this.tail.substring(0,e);return this.tail=this.tail.substring(e),t}return!1}};for(;n.next();)switch(n.c){case`\\`:if(n.next())switch(n.c){case`\\`:t.push(n.c.charCodeAt(0));break;case`b`:t.push(8);break;case`f`:t.push(12);break;case`n`:t.push(10);break;case`r`:t.push(13);break;case`t`:t.push(9);break;case`v`:t.push(11);break;case`0`:case`1`:case`2`:case`3`:case`4`:case`5`:case`6`:case`7`:{let e=n.c,r=n.take(2);if(r===!1)return!1;let i=parseInt(e+r,8);if(Number.isNaN(i))return!1;t.push(i);break}case`x`:{let e=n.c,r=n.take(2);if(r===!1)return!1;let i=parseInt(e+r,16);if(Number.isNaN(i))return!1;t.push(i);break}case`u`:{let e=n.c,r=n.take(4);if(r===!1)return!1;let i=parseInt(e+r,16);if(Number.isNaN(i))return!1;let a=new Uint8Array(4);new DataView(a.buffer).setInt32(0,i,!0),t.push(a[0],a[1],a[2],a[3]);break}case`U`:{let e=n.c,r=n.take(8);if(r===!1)return!1;let i=Jr.uEnc(e+r),a=new Uint8Array(8),o=new DataView(a.buffer);o.setInt32(0,i.lo,!0),o.setInt32(4,i.hi,!0),t.push(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7]);break}}break;default:t.push(n.c.charCodeAt(0))}return new Uint8Array(t)}function*la(e){switch(e.kind){case`file`:for(let t of e.messages)yield t,yield*la(t);yield*e.enums,yield*e.services,yield*e.extensions;break;case`message`:for(let t of e.nestedMessages)yield t,yield*la(t);yield*e.nestedEnums,yield*e.nestedExtensions;break}}function ua(...e){let t=da();if(!e.length)return t;if(`$typeName`in e[0]&&e[0].$typeName==`google.protobuf.FileDescriptorSet`){for(let n of e[0].file)Na(n,t);return t}if(`$typeName`in e[0]){let n=e[0],r=e[1],i=new Set;function a(e){let n=[];for(let a of e.dependency){if(t.getFile(a)!=null||i.has(a))continue;let o=r(a);if(!o)throw Error(`Unable to resolve ${a}, imported by ${e.name}`);`kind`in o?t.addFile(o,!1,!0):(i.add(o.name),n.push(o))}return n.concat(...n.map(a))}for(let e of[n,...a(n)].reverse())Na(e,t)}else for(let n of e)for(let e of n.files)t.addFile(e);return t}function da(){let e=new Map,t=new Map,n=new Map;return{kind:`registry`,types:e,extendees:t,[Symbol.iterator](){return e.values()},get files(){return n.values()},addFile(e,t,r){if(n.set(e.proto.name,e),!t)for(let t of la(e))this.add(t);if(r)for(let n of e.dependencies)this.addFile(n,t,r)},add(n){if(n.kind==`extension`){let e=t.get(n.extendee.typeName);e||t.set(n.extendee.typeName,e=new Map),e.set(n.number,n)}e.set(n.typeName,n)},get(t){return e.get(t)},getFile(e){return n.get(e)},getMessage(t){let n=e.get(t);return n?.kind==`message`?n:void 0},getEnum(t){let n=e.get(t);return n?.kind==`enum`?n:void 0},getExtension(t){let n=e.get(t);return n?.kind==`extension`?n:void 0},getExtensionFor(e,n){return t.get(e.typeName)?.get(n)},getService(t){let n=e.get(t);return n?.kind==`service`?n:void 0}}}var fa=998,pa=999,ma=9999,ha=9,ga=10,_a=11,va=12,ya=14,ba=3,xa=2,Sa=1,Ca=0,wa=1,Ta=2,Ea=3,Da=1,Oa=2,ka=1,Aa=2,ja=1001,Ma={998:{fieldPresence:1,enumType:2,repeatedFieldEncoding:2,utf8Validation:3,messageEncoding:1,jsonFormat:2,enforceNamingStyle:2,defaultSymbolVisibility:1},999:{fieldPresence:2,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:2,defaultSymbolVisibility:1},1e3:{fieldPresence:1,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:2,defaultSymbolVisibility:1},1001:{fieldPresence:1,enumType:1,repeatedFieldEncoding:1,utf8Validation:2,messageEncoding:1,jsonFormat:1,enforceNamingStyle:1,defaultSymbolVisibility:2}};function Na(e,t){let n={kind:`file`,proto:e,deprecated:e.options?.deprecated??!1,edition:Ha(e),name:e.name.replace(/\.proto$/,``),dependencies:Ua(e,t),enums:[],messages:[],extensions:[],services:[],toString(){return`file ${e.name}`}},r=new Map,i={get(e){return r.get(e)},add(e){no(e.proto.options?.mapEntry===!0),r.set(e.typeName,e)}};for(let r of e.enumType)Ia(r,n,void 0,t);for(let r of e.messageType)La(r,n,void 0,t,i);for(let r of e.service)Ra(r,n,t);Pa(n,t);for(let e of r.values())Fa(e,t,i);for(let e of n.messages)Fa(e,t,i),Pa(e,t);t.addFile(n,!0)}function Pa(e,t){switch(e.kind){case`file`:for(let n of e.proto.extension){let r=Va(n,e,t);e.extensions.push(r),t.add(r)}break;case`message`:for(let n of e.proto.extension){let r=Va(n,e,t);e.nestedExtensions.push(r),t.add(r)}for(let n of e.nestedMessages)Pa(n,t);break}}
4function Fa(e,t,n){let r=e.proto.oneofDecl.map(t=>Ba(t,e)),i=new Set;for(let a of e.proto.field){let o=Ja(a,r),s=Va(a,e,t,o,n);e.fields.push(s),e.field[s.localName]=s,o===void 0?e.members.push(s):(o.fields.push(s),i.has(o)||(i.add(o),e.members.push(o)))}for(let t of r.filter(e=>i.has(e)))e.oneofs.push(t);for(let r of e.nestedMessages)Fa(r,t,n)}function Ia(e,t,n,r){let i=Wa(e.name,e.value),a={kind:`enum`,proto:e,deprecated:e.options?.deprecated??!1,file:t,parent:n,open:!0,name:e.name,typeName:Ka(e,n,t),value:{},values:[],sharedPrefix:i,toString(){return`enum ${this.typeName}`}};a.open=Qa(a),r.add(a);for(let t of e.value){let e=t.name;a.values.push(a.value[t.number]={kind:`enum_value`,proto:t,deprecated:t.options?.deprecated??!1,parent:a,name:e,localName:ia(i==null?e:e.substring(i.length)),number:t.number,toString(){return`enum value ${a.typeName}.${e}`}})}(n?.nestedEnums??t.enums).push(a)}function La(e,t,n,r,i){let a={kind:`message`,proto:e,deprecated:e.options?.deprecated??!1,file:t,parent:n,name:e.name,typeName:Ka(e,n,t),fields:[],field:{},oneofs:[],members:[],nestedEnums:[],nestedMessages:[],nestedExtensions:[],toString(){return`message ${this.typeName}`}};e.options?.mapEntry===!0?i.add(a):((n?.nestedMessages??t.messages).push(a),r.add(a));for(let n of e.enumType)Ia(n,t,a,r);for(let n of e.nestedType)La(n,t,a,r,i)}function Ra(e,t,n){let r={kind:`service`,proto:e,deprecated:e.options?.deprecated??!1,file:t,name:e.name,typeName:Ka(e,void 0,t),methods:[],method:{},toString(){return`service ${this.typeName}`}};t.services.push(r),n.add(r);for(let t of e.method){let e=za(t,r,n);r.methods.push(e),r.method[e.localName]=e}}function za(e,t,n){let r;r=e.clientStreaming&&e.serverStreaming?`bidi_streaming`:e.clientStreaming?`client_streaming`:e.serverStreaming?`server_streaming`:`unary`;let i=n.getMessage(qa(e.inputType)),a=n.getMessage(qa(e.outputType));no(i,`invalid MethodDescriptorProto: input_type ${e.inputType} not found`),no(a,`invalid MethodDescriptorProto: output_type ${e.inputType} not found`);let o=e.name;return{kind:`rpc`,proto:e,deprecated:e.options?.deprecated??!1,parent:t,name:o,localName:ia(o.length?ia(o[0].toLowerCase()+o.substring(1)):o),methodKind:r,input:i,output:a,idempotency:e.options?.idempotencyLevel??Ca,toString(){return`rpc ${t.typeName}.${o}`}}}function Ba(e,t){return{kind:`oneof`,proto:e,deprecated:!1,parent:t,fields:[],name:e.name,localName:ia(na(e.name)),toString(){return`oneof ${t.typeName}.${this.name}`}}}function Va(e,t,n,r,i){let a=i===void 0,o={kind:`field`,proto:e,deprecated:e.options?.deprecated??!1,name:e.name,number:e.number,scalar:void 0,message:void 0,enum:void 0,presence:Ya(e,r,a,t),utf8Validation:eo(e,t),listKind:void 0,mapKind:void 0,mapKey:void 0,delimitedEncoding:void 0,packed:void 0,longAsString:!1,getDefaultValue:void 0};if(a){let r=t.kind==`file`?t:t.file,i=t.kind==`file`?void 0:t,a=Ka(e,i,r);o.kind=`extension`,o.file=r,o.parent=i,o.oneof=void 0,o.typeName=a,o.jsonName=`[${a}]`,o.toString=()=>`extension ${a}`;let s=n.getMessage(qa(e.extendee));no(s,`invalid FieldDescriptorProto: extendee ${e.extendee} not found`),o.extendee=s}else{let n=t;no(n.kind==`message`),o.parent=n,o.oneof=r,o.localName=r?na(e.name):ia(na(e.name)),o.jsonName=e.jsonName,o.toString=()=>`field ${n.typeName}.${e.name}`}let s=e.label,c=e.type,l=e.options?.jstype;if(s===ba){let r=c==_a?i?.get(qa(e.typeName)):void 0;if(r){o.fieldKind=`map`;let{key:e,value:t}=Za(r);return o.mapKey=e.scalar,o.mapKind=t.fieldKind,o.message=t.message,o.delimitedEncoding=!1,o.enum=t.enum,o.scalar=t.scalar,o}switch(o.fieldKind=`list`,c){case _a:case ga:o.listKind=`message`,o.message=n.getMessage(qa(e.typeName)),no(o.message),o.delimitedEncoding=$a(e,t);break;case ya:o.listKind=`enum`,o.enum=n.getEnum(qa(e.typeName)),no(o.enum);break;default:o.listKind=`scalar`,o.scalar=c,o.longAsString=l==Sa;break}return o.packed=Xa(e,t),o}switch(c){case _a:case ga:o.fieldKind=`message`,o.message=n.getMessage(qa(e.typeName)),no(o.message,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),o.delimitedEncoding=$a(e,t),o.getDefaultValue=()=>void 0;break;case ya:{let t=n.getEnum(qa(e.typeName));no(t!==void 0,`invalid FieldDescriptorProto: type_name ${e.typeName} not found`),o.fieldKind=`enum`,o.enum=n.getEnum(qa(e.typeName)),o.getDefaultValue=()=>ti(e,`defaultValue`)?oa(t,e.defaultValue):void 0;break}default:o.fieldKind=`scalar`,o.scalar=c,o.longAsString=l==Sa,o.getDefaultValue=()=>ti(e,`defaultValue`)?sa(c,e.defaultValue):void 0;break}return o}function Ha(e){switch(e.syntax){case``:case`proto2`:return fa;case`proto3`:return pa;
4case`editions`:if(e.edition===ma)return ja;if(e.edition in Ma)return e.edition;throw Error(`${e.name}: unsupported edition`);default:throw Error(`${e.name}: unsupported syntax "${e.syntax}"`)}}function Ua(e,t){return e.dependency.map(n=>{let r=t.getFile(n);if(!r)throw Error(`Cannot find ${n}, imported by ${e.name}`);return r})}function Wa(e,t){let n=Ga(e)+`_`;for(let e of t){if(!e.name.toLowerCase().startsWith(n))return;let t=e.name.substring(n.length);if(t.length==0||/^\d/.test(t))return}return n}function Ga(e){return(e.substring(0,1)+e.substring(1).replace(/[A-Z]/g,e=>`_`+e)).toLowerCase()}function Ka(e,t,n){let r;return r=t?`${t.typeName}.${e.name}`:n.proto.package.length>0?`${n.proto.package}.${e.name}`:`${e.name}`,r}function qa(e){return e.startsWith(`.`)?e.substring(1):e}function Ja(e,t){if(!ti(e,`oneofIndex`)||e.proto3Optional)return;let n=t[e.oneofIndex];return no(n,`invalid FieldDescriptorProto: oneof #${e.oneofIndex} for field #${e.number} not found`),n}function Ya(e,t,n,r){if(e.label==xa)return Ea;if(e.label==ba)return Ta;if(t||e.proto3Optional||n)return wa;let i=to(`fieldPresence`,{proto:e,parent:r});return i==Ta&&(e.type==_a||e.type==ga)?wa:i}function Xa(e,t){if(e.label!=ba)return!1;switch(e.type){case ha:case va:case ga:case _a:return!1}let n=e.options;return n&&ti(n,`packed`)?n.packed:Da==to(`repeatedFieldEncoding`,{proto:e,parent:t})}function Za(e){let t=e.fields.find(e=>e.number===1),n=e.fields.find(e=>e.number===2);return no(t&&t.fieldKind==`scalar`&&t.scalar!=z.BYTES&&t.scalar!=z.FLOAT&&t.scalar!=z.DOUBLE&&n&&n.fieldKind!=`list`&&n.fieldKind!=`map`),{key:t,value:n}}function Qa(e){return ka==to(`enumType`,{proto:e.proto,parent:e.parent??e.file})}function $a(e,t){return e.type==ga?!0:Oa==to(`messageEncoding`,{proto:e,parent:t})}function eo(e,t){return Aa==to(`utf8Validation`,{proto:e,parent:t})}function to(e,t){let n=t.proto.options?.features;if(n){let t=n[e];if(t!=0)return t}if(`kind`in t){if(t.kind==`message`)return to(e,t.parent??t.file);let n=Ma[t.edition];if(!n)throw Error(`feature default for edition ${t.edition} not found`);return n[e]}return to(e,t.parent)}function no(e,t){if(!e)throw Error(t)}function ro(e){let t=io(e);return t.messageType.forEach(aa),ua(t,()=>void 0).getFile(t.name)}function io(e){return Object.assign(Object.create({syntax:``,edition:0}),Object.assign(Object.assign({$typeName:`google.protobuf.FileDescriptorProto`,dependency:[],publicDependency:[],weakDependency:[],optionDependency:[],service:[],extension:[]},e),{messageType:e.messageType.map(ao),enumType:e.enumType.map(co)}))}function ao(e){return Object.assign(Object.create({visibility:0}),{$typeName:`google.protobuf.DescriptorProto`,name:e.name,field:e.field?.map(oo)??[],extension:[],nestedType:e.nestedType?.map(ao)??[],enumType:e.enumType?.map(co)??[],extensionRange:e.extensionRange?.map(e=>Object.assign({$typeName:`google.protobuf.DescriptorProto.ExtensionRange`},e))??[],oneofDecl:[],reservedRange:[],reservedName:[]})}function oo(e){return Object.assign(Object.create({label:1,typeName:``,extendee:``,defaultValue:``,oneofIndex:0,jsonName:``,proto3Optional:!1}),Object.assign(Object.assign({$typeName:`google.protobuf.FieldDescriptorProto`},e),{options:e.options?so(e.options):void 0}))}function so(e){return Object.assign(Object.create({ctype:0,packed:!1,jstype:0,lazy:!1,unverifiedLazy:!1,deprecated:!1,weak:!1,debugRedact:!1,retention:0}),Object.assign(Object.assign({$typeName:`google.protobuf.FieldOptions`},e),{targets:e.targets??[],editionDefaults:e.editionDefaults?.map(e=>Object.assign({$typeName:`google.protobuf.FieldOptions.EditionDefault`},e))??[],uninterpretedOption:[]}))}function co(e){return Object.assign(Object.create({visibility:0}),{$typeName:`google.protobuf.EnumDescriptorProto`,name:e.name,reservedName:[],reservedRange:[],value:e.value.map(e=>Object.assign({$typeName:`google.protobuf.EnumValueDescriptorProto`},e))})}function lo(e,t,...n){return n.reduce((e,t)=>e.nestedMessages[t],e.messages[t])}var uo=lo(ro({name:`google/protobuf/descriptor.proto`,package:`google.protobuf`,messageType:[{name:`FileDescriptorSet`,field:[{name:`file`,number:1,type:11,label:3,typeName:`.google.protobuf.FileDescriptorProto`}],extensionRange:[{start:536e6,end:536000001}]},{name:`FileDescriptorProto`,field:[{name:`name`,number:1,type:9,label:1},{name:`package`,number:2,type:9,label:1},{name:`dependency`,number:3,type:9,label:3},{name:`public_dependency`,number:10,type:5,label:3},{name:`weak_dependency`,number:11,type:5,label:3},{name:`option_dependency`,number:15,type:9,label:3},{name:`message_type`,number:4,type:11,label:3,typeName:`.google.protobuf.DescriptorProto`},{name:`enum_type`,number:5,type:11,label:3,typeName:`.google.protobuf.EnumDescriptorProto`},{name:`service`,number:6,type:11,label:3,typeName:`.google.protobuf.ServiceDescriptorProto`},{name:`extension`,number:7,type:11,label:3,typeName:`.google.protobuf.FieldDescriptorProto`},{name:`options`,number:8,type:11,label:1,typeName:`.google.protobuf.FileOptions`},{name:`source_code_info`,number:9,type:11,label:1,typeName:`.google.protobuf.SourceCodeInfo`},{name:`syntax`,number:12,type:9,label:1},{name:`edition`,number:14,type:14,label:1,typeName:`.google.protobuf.Edition`}]},{name:`DescriptorProto`,field:[{name:`name`,number:1,type:9,label:1},{name:`field`,number:2,type:11,label:3,typeName:`.google.protobuf.FieldDescriptorProto`},{name:`extension`,number:6,type:11,label:3,typeName:`.google.protobuf.FieldDescriptorProto`},{name:`nested_type`,number:3,type:11,label:3,typeName:`.google.protobuf.DescriptorProto`},{name:`enum_type`,number:4,type:11,label:3,typeName:`.google.protobuf.EnumDescriptorProto`},{name:`extension_range`,number:5,type:11,label:3,typeName:`.google.protobuf.DescriptorProto.ExtensionRange`},{name:`oneof_decl`,number:8,type:11,label:3,typeName:`.google.protobuf.OneofDescriptorProto`},{name:`options`,number:7,type:11,label:1,typeName:`.google.protobuf.MessageOptions`},{name:`reserved_range`,number:9,type:11,label:3,typeName:`.google.protobuf.DescriptorProto.ReservedRange`},{name:`reserved_name`,number:10,type:9,label:3},{name:`visibility`,number:11,type:14,label:1,typeName:`.google.protobuf.SymbolVisibility`}],nestedType:[{name:`ExtensionRange`,field:[{name:`start`,number:1,type:5,label:1},{name:`end`,number:2,type:5,label:1},{name:`options`,number:3,type:11,label:1,typeName:`.google.protobuf.ExtensionRangeOptions`}]},{name:`ReservedRange`,field:[{name:`start`,number:1,type:5,label:1},{name:`end`,number:2,type:5,label:1}]}]},{name:`ExtensionRangeOptions`,field:[{name:`uninterpreted_option`,number:999,type:11,label:3,typeName:`.google.protobuf.UninterpretedOption`},{name:`declaration`,number:2,type:11,label:3,typeName:`.google.protobuf.ExtensionRangeOptions.Declaration`,options:{retention:2}},{name:`features`,number:50,type:11,label:1,typeName:`.google.protobuf.FeatureSet`},{name:`verification`,number:3,type:14,label:1,typeName:`.google.protobuf.ExtensionRangeOptions.VerificationState`,defaultValue:`UNVERIFIED`,options:{retention:2}}],nestedType:[{name:`Declaration`,field:[{name:`number`,number:1,type:5,label:1},{name:`full_name`,number:2,type:9,label:1},{name:`type`,number:3,type:9,label:1},{name:`reserved`,number:5,type:8,label:1},{name:`repeated`,number:6,type:8,label:1}]}],enumType:[{name:`VerificationState`,value:[{name:`DECLARATION`,number:0},{name:`UNVERIFIED`,number:1}]}],extensionRange:[{start:1e3,end:536870912}]},{name:`FieldDescriptorProto`,field:[{name:`name`,number:1,type:9,label:1},{name:`number`,number:3,type:5,label:1},{name:`label`,number:4,type:14,label:1,typeName:`.google.protobuf.FieldDescriptorProto.Label`},{name:`type`,number:5,type:14,label:1,typeName:`.google.protobuf.FieldDescriptorProto.Type`},{name:`type_name`,number:6,type:9,label:1},{name:`extendee`,number:2,type:9,label:1},{name:`default_value`,number:7,type:9,label:1},{name:`oneof_index`,number:9,type:5,label:1},{name:`json_name`,number:10,type:9,label:1},{name:`options`,number:8,type:11,label:1,typeName:`.google.protobuf.FieldOptions`},{name:`proto3_optional`,number:17,type:8,label:1}],enumType:[{name:`Type`,value:[{name:`TYPE_DOUBLE`,number:1},{name:`TYPE_FLOAT`,number:2},{name:`TYPE_INT64`,number:3},{name:`TYPE_UINT64`,number:4},{name:`TYPE_INT32`,number:5},{name:`TYPE_FIXED64`,number:6},{name:`TYPE_FIXED32`,number:7},{name:`TYPE_BOOL`,number:8},{name:`TYPE_STRING`,number:9},{name:`TYPE_GROUP`,number:10},{name:`TYPE_MESSAGE`,number:11},{name:`TYPE_BYTES`,number:12},{name:`TYPE_UINT32`,number:13},{name:`TYPE_ENUM`,number:14},{name:`TYPE_SFIXED32`,number:15},{name:`TYPE_SFIXED64`,number:16},{name:`TYPE_SINT32`,number:17},{name:`TYPE_SINT64`,number:18}]},{name:`Label`,value:[{name:`LABEL_OPTIONAL`,number:1},{name:`LABEL_REPEATED`,number:3},{name:`LABEL_REQUIRED`,number:2}]}]},{name:`OneofDescriptorProto`,field:[{name:`name`,number:1,type:9,label:1},{name:`options`,number:2,type:11,label:1,typeName:`.google.protobuf.OneofOptions`}]},{name:`EnumDescriptorProto`,field:[{name:`name`,number:1,type:9,label:1},{name:`value`,number:2,type:11,label:3,typeName:`.google.protobuf.EnumValueDescriptorProto`},{name:`options`,number:3,type:11,label:1,typeName:`.google.protobuf.EnumOptions`},{name:`reserved_range`,number:4,type:11,label:3,typeName:`.google.protobuf.EnumDescriptorProto.EnumReservedRange`},{name:`reserved_name`,number:5,type:9,label:3},{name:`visibility`,number:6,type:14,label:1,typeName:`.google.protobuf.SymbolVisibility`}],nestedType:[{name:`EnumReservedRange`,field:[{name:`start`,number:1,type:5,label:1},{name:`end`,number:2,type:5,label:1}]}]},{name:`EnumValueDescriptorProto`,field:[{name:`name`,number:1,type:9,label:1},{name:`number`,number:2,type:5,label:1},{name:`options`,number:3,type:11,label:1,typeName:`.google.protobuf.EnumValueOptions`}]},{name:`ServiceDescriptorProto`,field:[{name:`name`,number:1,type:9,label:1},{name:`method`,number:2,type:11,label:3,typeName:`.google.protobuf.MethodDescriptorProto`},{name:`options`,number:3,type:11,label:1,typeName:`.google.protobuf.ServiceOptions`}]},{name:`MethodDescriptorProto`,field:[{name:`name`,number:1,type:9,label:1},{name:`input_type`,number:2,type:9,label:1},{name:`output_type`,number:3,type:9,label:1},{name:`options`,number:4,type:11,label:1,typeName:`.google.protobuf.MethodOptions`},{name:`client_streaming`,number:5,type:8,label:1,defaultValue:`false`},{name:`server_streaming`,number:6,type:8,label:1,defaultValue:`false`}]},{name:`FileOptions`,field:[{name:`java_package`,number:1,type:9,label:1},{name:`java_outer_classname`,number:8,type:9,label:1},{name:`java_multiple_files`,number:10,type:8,label:1,defaultValue:`false`,options:{}},{name:`java_generate_equals_and_hash`,number:20,type:8,label:1,options:{deprecated:!0}},{name:`java_string_check_utf8`,number:27,type:8,label:1,defaultValue:`false`},{name:`optimize_for`,number:9,type:14,label:1,typeName:`.google.protobuf.FileOptions.OptimizeMode`,defaultValue:`SPEED`},{name:`go_package`,number:11,type:9,label:1},{name:`cc_generic_services`,number:16,type:8,label:1,defaultValue:`false`},{name:`java_generic_services`,number:17,type:8,label:1,defaultValue:`false`},{name:`py_generic_services`,number:18,type:8,label:1,defaultValue:`false`},{name:`deprecated`,number:23,type:8,label:1,defaultValue:`false`},{name:`cc_enable_arenas`,number:31,type:8,label:1,defaultValue:`true`},{name:`objc_class_prefix`,number:36,type:9,label:1},{name:`csharp_namespace`,number:37,type:9,label:1},{name:`swift_prefix`,number:39,type:9,label:1},{name:`php_class_prefix`,number:40,type:9,label:1},{name:`php_namespace`,number:41,type:9,label:1},{name:`php_metadata_namespace`,number:44,type:9,label:1},{name:`ruby_package`,number:45,type:9,label:1},{name:`features`,number:50,type:11,label:1,typeName:`.google.protobuf.FeatureSet`},{name:`uninterpreted_option`,number:999,type:11,label:3,typeName:`.google.protobuf.UninterpretedOption`}],enumType:[{name:`OptimizeMode`,value:[{name:`SPEED`,number:1},{name:`CODE_SIZE`,number:2},{name:`LITE_RUNTIME`,number:3}]}],extensionRange:[{start:1e3,end:536870912}]},{name:`MessageOptions`,field:[{name:`message_set_wire_format`,number:1,type:8,label:1,defaultValue:`false`},{name:`no_standard_descriptor_accessor`,number:2,type:8,label:1,defaultValue:`false`},{name:`deprecated`,number:3,type:8,label:1,defaultValue:`false`},{name:`map_entry`,number:7,type:8,label:1},{name:`deprecated_legacy_json_field_conflicts`,number:11,type:8,label:1,options:{deprecated:!0}},{name:`features`,number:12,type:11,label:1,typeName:`.google.protobuf.FeatureSet`},{name:`uninterpreted_option`,number:999,type:11,label:3,typeName:`.google.protobuf.UninterpretedOption`}],extensionRange:[{start:1e3,end:536870912}]},{name:`FieldOptions`,field:[{name:`ctype`,number:1,type:14,label:1,typeName:`.google.protobuf.FieldOptions.CType`,defaultValue:`STRING`},{name:`packed`,number:2,type:8,label:1},{name:`jstype`,number:6,type:14,label:1,typeName:`.google.protobuf.FieldOptions.JSType`,defaultValue:`JS_NORMAL`},{name:`lazy`,number:5,type:8,label:1,defaultValue:`false`},{name:`unverified_lazy`,number:15,type:8,label:1,defaultValue:`false`},{name:`deprecated`,number:3,type:8,label:1,defaultValue:`false`},{name:`weak`,number:10,type:8,label:1,defaultValue:`false`,options:{deprecated:!0}},{name:`debug_redact`,number:16,type:8,label:1,defaultValue:`false`},{name:`retention`,number:17,type:14,label:1,typeName:`.google.protobuf.FieldOptions.OptionRetention`},{name:`targets`,number:19,type:14,label:3,typeName:`.google.protobuf.FieldOptions.OptionTargetType`},{name:`edition_defaults`,number:20,type:11,label:3,typeName:`.google.protobuf.FieldOptions.EditionDefault`},{name:`features`,number:21,type:11,label:1,typeName:`.google.protobuf.FeatureSet`},{name:`feature_support`,number:22,type:11,label:1,typeName:`.google.protobuf.FieldOptions.FeatureSupport`},{name:`uninterpreted_option`,number:999,type:11,label:3,typeName:`.google.protobuf.UninterpretedOption`}],nestedType:[{name:`EditionDefault`,field:[{name:`edition`,number:3,type:14,label:1,typeName:`.google.protobuf.Edition`},{name:`value`,number:2,type:9,label:1}]},{name:`FeatureSupport`,field:[{name:`edition_introduced`,number:1,type:14,label:1,typeName:`.google.protobuf.Edition`},{name:`edition_deprecated`,number:2,type:14,label:1,typeName:`.google.protobuf.Edition`},{name:`deprecation_warning`,number:3,type:9,label:1},{name:`edition_removed`,number:4,type:14,label:1,typeName:`.google.protobuf.Edition`},{name:`removal_error`,number:5,type:9,label:1}]}],enumType:[{name:`CType`,value:[{name:`STRING`,number:0},{name:`CORD`,number:1},{name:`STRING_PIECE`,number:2}]},{name:`JSType`,value:[{name:`JS_NORMAL`,number:0},{name:`JS_STRING`,number:1},{name:`JS_NUMBER`,number:2}]},{name:`OptionRetention`,value:[{name:`RETENTION_UNKNOWN`,number:0},{name:`RETENTION_RUNTIME`,number:1},{name:`RETENTION_SOURCE`,number:2}]},{name:`OptionTargetType`,value:[{name:`TARGET_TYPE_UNKNOWN`,number:0},{name:`TARGET_TYPE_FILE`,number:1},{name:`TARGET_TYPE_EXTENSION_RANGE`,number:2},{name:`TARGET_TYPE_MESSAGE`,number:3},{name:`TARGET_TYPE_FIELD`,number:4},{name:`TARGET_TYPE_ONEOF`,number:5},{name:`TARGET_TYPE_ENUM`,number:6},{name:`TARGET_TYPE_ENUM_ENTRY`,number:7},{name:`TARGET_TYPE_SERVICE`,number:8},{name:`TARGET_TYPE_METHOD`,number:9}]}],extensionRange:[{start:1e3,end:536870912}]},{name:`OneofOptions`,field:[{name:`features`,number:1,type:11,label:1,typeName:`.google.protobuf.FeatureSet`},{name:`uninterpreted_option`,number:999,type:11,label:3,typeName:`.google.protobuf.UninterpretedOption`}],extensionRange:[{start:1e3,end:536870912}]},{name:`EnumOptions`,field:[{name:`allow_alias`,number:2,type:8,label:1},{name:`deprecated`,number:3,type:8,label:1,defaultValue:`false`},{name:`deprecated_legacy_json_field_conflicts`,number:6,type:8,label:1,options:{deprecated:!0}},{name:`features`,number:7,type:11,label:1,typeName:`.google.protobuf.FeatureSet`},{name:`uninterpreted_option`,number:999,type:11,label:3,typeName:`.google.protobuf.UninterpretedOption`}],extensionRange:[{start:1e3,end:536870912}]},{name:`EnumValueOptions`,field:[{name:`deprecated`,number:1,type:8,label:1,defaultValue:`false`},{name:`features`,number:2,type:11,label:1,typeName:`.google.protobuf.FeatureSet`},{name:`debug_redact`,number:3,type:8,label:1,defaultValue:`false`},{name:`feature_support`,number:4,type:11,label:1,typeName:`.google.protobuf.FieldOptions.FeatureSupport`},{name:`uninterprete
4d_option`,number:999,type:11,label:3,typeName:`.google.protobuf.UninterpretedOption`}],extensionRange:[{start:1e3,end:536870912}]},{name:`ServiceOptions`,field:[{name:`features`,number:34,type:11,label:1,typeName:`.google.protobuf.FeatureSet`},{name:`deprecated`,number:33,type:8,label:1,defaultValue:`false`},{name:`uninterpreted_option`,number:999,type:11,label:3,typeName:`.google.protobuf.UninterpretedOption`}],extensionRange:[{start:1e3,end:536870912}]},{name:`MethodOptions`,field:[{name:`deprecated`,number:33,type:8,label:1,defaultValue:`false`},{name:`idempotency_level`,number:34,type:14,label:1,typeName:`.google.protobuf.MethodOptions.IdempotencyLevel`,defaultValue:`IDEMPOTENCY_UNKNOWN`},{name:`features`,number:35,type:11,label:1,typeName:`.google.protobuf.FeatureSet`},{name:`uninterpreted_option`,number:999,type:11,label:3,typeName:`.google.protobuf.UninterpretedOption`}],enumType:[{name:`IdempotencyLevel`,value:[{name:`IDEMPOTENCY_UNKNOWN`,number:0},{name:`NO_SIDE_EFFECTS`,number:1},{name:`IDEMPOTENT`,number:2}]}],extensionRange:[{start:1e3,end:536870912}]},{name:`UninterpretedOption`,field:[{name:`name`,number:2,type:11,label:3,typeName:`.google.protobuf.UninterpretedOption.NamePart`},{name:`identifier_value`,number:3,type:9,label:1},{name:`positive_int_value`,number:4,type:4,label:1},{name:`negative_int_value`,number:5,type:3,label:1},{name:`double_value`,number:6,type:1,label:1},{name:`string_value`,number:7,type:12,label:1},{name:`aggregate_value`,number:8,type:9,label:1}],nestedType:[{name:`NamePart`,field:[{name:`name_part`,number:1,type:9,label:2},{name:`is_extension`,number:2,type:8,label:2}]}]},{name:`FeatureSet`,field:[{name:`field_presence`,number:1,type:14,label:1,typeName:`.google.protobuf.FeatureSet.FieldPresence`,options:{retention:1,targets:[4,1],editionDefaults:[{value:`EXPLICIT`,edition:900},{value:`IMPLICIT`,edition:999},{value:`EXPLICIT`,edition:1e3}]}},{name:`enum_type`,number:2,type:14,label:1,typeName:`.google.protobuf.FeatureSet.EnumType`,options:{retention:1,targets:[6,1],editionDefaults:[{value:`CLOSED`,edition:900},{value:`OPEN`,edition:999}]}},{name:`repeated_field_encoding`,number:3,type:14,label:1,typeName:`.google.protobuf.FeatureSet.RepeatedFieldEncoding`,options:{retention:1,targets:[4,1],editionDefaults:[{value:`EXPANDED`,edition:900},{value:`PACKED`,edition:999}]}},{name:`utf8_validation`,number:4,type:14,label:1,typeName:`.google.protobuf.FeatureSet.Utf8Validation`,options:{retention:1,targets:[4,1],editionDefaults:[{value:`NONE`,edition:900},{value:`VERIFY`,edition:999}]}},{name:`message_encoding`,number:5,type:14,label:1,typeName:`.google.protobuf.FeatureSet.MessageEncoding`,options:{retention:1,targets:[4,1],editionDefaults:[{value:`LENGTH_PREFIXED`,edition:900}]}},{name:`json_format`,number:6,type:14,label:1,typeName:`.google.protobuf.FeatureSet.JsonFormat`,options:{retention:1,targets:[3,6,1],editionDefaults:[{value:`LEGACY_BEST_EFFORT`,edition:900},{value:`ALLOW`,edition:999}]}},{name:`enforce_naming_style`,number:7,type:14,label:1,typeName:`.google.protobuf.FeatureSet.EnforceNamingStyle`,options:{retention:2,targets:[1,2,3,4,5,6,7,8,9],editionDefaults:[{value:`STYLE_LEGACY`,edition:900},{value:`STYLE2024`,edition:1001}]}},{name:`default_symbol_visibility`,number:8,type:14,label:1,typeName:`.google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility`,options:{retention:2,targets:[1],editionDefaults:[{value:`EXPORT_ALL`,edition:900},{value:`EXPORT_TOP_LEVEL`,edition:1001}]}}],nestedType:[{name:`VisibilityFeature`,enumType:[{name:`DefaultSymbolVisibility`,value:[{name:`DEFAULT_SYMBOL_VISIBILITY_UNKNOWN`,number:0},{name:`EXPORT_ALL`,number:1},{name:`EXPORT_TOP_LEVEL`,number:2},{name:`LOCAL_ALL`,number:3},{name:`STRICT`,number:4}]}]}],enumType:[{name:`FieldPresence`,value:[{name:`FIELD_PRESENCE_UNKNOWN`,number:0},{name:`EXPLICIT`,number:1},{name:`IMPLICIT`,number:2},{name:`LEGACY_REQUIRED`,number:3}]},{name:`EnumType`,value:[{name:`ENUM_TYPE_UNKNOWN`,number:0},{name:`OPEN`,number:1},{name:`CLOSED`,number:2}]},{name:`RepeatedFieldEncoding`,value:[{name:`REPEATED_FIELD_ENCODING_UNKNOWN`,number:0},{name:`PACKED`,number:1},{name:`EXPANDED`,number:2}]},{name:`Utf8Validation`,value:[{name:`UTF8_VALIDATION_UNKNOWN`,number:0},{name:`VERIFY`,number:2},{name:`NONE`,number:3}]},{name:`MessageEncoding`,value:[{name:`MESSAGE_ENCODING_UNKNOWN`,number:0},{name:`LENGTH_PREFIXED`,number:1},{name:`DELIMITED`,number:2}]},{name:`JsonFormat`,value:[{name:`JSON_FORMAT_UNKNOWN`,number:0},{name:`ALLOW`,number:1},{name:`LEGACY_BEST_EFFORT`,number:2}]},{name:`EnforceNamingStyle`,value:[{name:`ENFORCE_NAMING_STYLE_UNKNOWN`,number:0},{name:`STYLE2024`,number:1},{name:`STYLE_LEGACY`,number:2}]}],extensionRange:[{start:1e3,end:9995},{start:9995,end:1e4},{start:1e4,end:10001}]},{name:`FeatureSetDefaults`,field:[{name:`defaults`,number:1,type:11,label:3,typeName:`.google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault`},{name:`minimum_edition`,number:4,type:14,label:1,typeName:`.google.protobuf.Edition`},{name:`maximum_edition`,number:5,type:14,label:1,typeName:`.google.protobuf.Edition`}],nestedType:[{name:`FeatureSetEditionDefault`,field:[{name:`edition`,number:3,type:14,label:1,typeName:`.google.protobuf.Edition`},{name:`overridable_features`,number:4,type:11,label:1,typeName:`.google.protobuf.FeatureSet`},{name:`fixed_features`,number:5,type:11,label:1,typeName:`.google.protobuf.FeatureSet`}]}]},{name:`SourceCodeInfo`,field:[{name:`location`,number:1,type:11,label:3,typeName:`.google.protobuf.SourceCodeInfo.Location`}],nestedType:[{name:`Location`,field:[{name:`path`,number:1,type:5,label:3,options:{packed:!0}},{name:`span`,number:2,type:5,label:3,options:{packed:!0}},{name:`leading_comments`,number:3,type:9,label:1},{name:`trailing_comments`,number:4,type:9,label:1},{name:`leading_detached_comments`,number:6,type:9,label:3}]}],extensionRange:[{start:536e6,end:536000001}]},{name:`GeneratedCodeInfo`,field:[{name:`annotation`,number:1,type:11,label:3,typeName:`.google.protobuf.GeneratedCodeInfo.Annotation`}],nestedType:[{name:`Annotation`,field:[{name:`path`,number:1,type:5,label:3,options:{packed:!0}},{name:`source_file`,number:2,type:9,label:1},{name:`begin`,number:3,type:5,label:1},{name:`end`,number:4,type:5,label:1},{name:`semantic`,number:5,type:14,label:1,typeName:`.google.protobuf.GeneratedCodeInfo.Annotation.Semantic`}],enumType:[{name:`Semantic`,value:[{name:`NONE`,number:0},{name:`SET`,number:1},{name:`ALIAS`,number:2}]}]}]}],enumType:[{name:`Edition`,value:[{name:`EDITION_UNKNOWN`,number:0},{name:`EDITION_LEGACY`,number:900},{name:`EDITION_PROTO2`,number:998},{name:`EDITION_PROTO3`,number:999},{name:`EDITION_2023`,number:1e3},{name:`EDITION_2024`,number:1001},{name:`EDITION_UNSTABLE`,number:9999},{name:`EDITION_1_TEST_ONLY`,number:1},{name:`EDITION_2_TEST_ONLY`,number:2},{name:`EDITION_99997_TEST_ONLY`,number:99997},{name:`EDITION_99998_TEST_ONLY`,number:99998},{name:`EDITION_99999_TEST_ONLY`,number:99999},{name:`EDITION_MAX`,number:2147483647}]},{name:`SymbolVisibility`,value:[{name:`VISIBILITY_UNSET`,number:0},{name:`VISIBILITY_LOCAL`,number:1},{name:`VISIBILITY_EXPORT`,number:2}]}]}),1),fo;(function(e){e[e.DECLARATION=0]=`DECLARATION`,e[e.UNVERIFIED=1]=`UNVERIFIED`})(fo||={});var po;(function(e){e[e.DOUBLE=1]=`DOUBLE`,e[e.FLOAT=2]=`FLOAT`,e[e.INT64=3]=`INT64`,e[e.UINT64=4]=`UINT64`,e[e.INT32=5]=`INT32`,e[e.FIXED64=6]=`FIXED64`,e[e.FIXED32=7]=`FIXED32`,e[e.BOOL=8]=`BOOL`,e[e.STRING=9]=`STRING`,e[e.GROUP=10]=`GROUP`,e[e.MESSAGE=11]=`MESSAGE`,e[e.BYTES=12]=`BYTES`,e[e.UINT32=13]=`UINT32`,e[e.ENUM=14]=`ENUM`,e[e.SFIXED32=15]=`SFIXED32`,e[e.SFIXED64=16]=`SFIXED64`,e[e.SINT32=17]=`SINT32`,e[e.SINT64=18]=`SINT64`})(po||={});var mo;(function(e){e[e.OPTIONAL=1]=`OPTIONAL`,e[e.REPEATED=3]=`REPEATED`,e[e.REQUIRED=2]=`REQUIRED`})(mo||={});var ho;(function(e){e[e.SPEED=1]=`SPEED`,e[e.CODE_SIZE=2]=`CODE_SIZE`,e[e.LITE_RUNTIME=3]=`LITE_RUNTIME`})(ho||={});var go;(function(e){e[e.STRING=0]=`STRING`,e[e.CORD=1]=`CORD`,e[e.STRING_PIECE=2]=`STRING_PIECE`})(go||={});var _o;(function(e){e[e.JS_NORMAL=0]=`JS_NORMAL`,e[e.JS_STRING=1]=`JS_STRING`,e[e.JS_NUMBER=2]=`JS_NUMBER`})(_o||={});var vo;(function(e){e[e.RETENTION_UNKNOWN=0]=`RETENTION_UNKNOWN`,e[e.RETENTION_RUNTIME=1]=`RETENTION_RUNTIME`,e[e.RETENTION_SOURCE=2]=`RETENTION_SOURCE`})(vo||={});var yo;(function(e){e[e.TARGET_TYPE_UNKNOWN=0]=`TARGET_TYPE_UNKNOWN`,e[e.TARGET_TYPE_FILE=1]=`TARGET_TYPE_FILE`,e[e.TARGET_TYPE_EXTENSION_RANGE=2]=`TARGET_TYPE_EXTENSION_RANGE`,e[e.TARGET_TYPE_MESSAGE=3]=`TARGET_TYPE_MESSAGE`,e[e.TARGET_TYPE_FIELD=4]=`TARGET_TYPE_FIELD`,e[e.TARGET_TYPE_ONEOF=5]=`TARGET_TYPE_ONEOF`,e[e.TARGET_TYPE_ENUM=6]=`TARGET_TYPE_ENUM`,e[e.TARGET_TYPE_ENUM_ENTRY=7]=`TARGET_TYPE_ENUM_ENTRY`,e[e.TARGET_TYPE_SERVICE=8]=`TARGET_TYPE_SERVICE`,e[e.TARGET_TYPE_METHOD=9]=`TARGET_TYPE_METHOD`})(yo||={});var bo;(function(e){e[e.IDEMPOTENCY_UNKNOWN=0]=`IDEMPOTENCY_UNKNOWN`,e[e.NO_SIDE_EFFECTS=1]=`NO_SIDE_EFFECTS`,e[e.IDEMPOTENT=2]=`IDEMPOTENT`})(bo||={});var xo;(function(e){e[e.DEFAULT_SYMBOL_VISIBILITY_UNKNOWN=0]=`DEFAULT_SYMBOL_VISIBILITY_UNKNOWN`,e[e.EXPORT_ALL=1]=`EXPORT_ALL`,e[e.EXPORT_TOP_LEVEL=2]=`EXPORT_TOP_LEVEL`,e[e.LOCAL_ALL=3]=`LOCAL_ALL`,e[e.STRICT=4]=`STRICT`})(xo||={});var So;(function(e){e[e.FIELD_PRESENCE_UNKNOWN=0]=`FIELD_PRESENCE_UNKNOWN`,e[e.EXPL
4ICIT=1]=`EXPLICIT`,e[e.IMPLICIT=2]=`IMPLICIT`,e[e.LEGACY_REQUIRED=3]=`LEGACY_REQUIRED`})(So||={});var Co;(function(e){e[e.ENUM_TYPE_UNKNOWN=0]=`ENUM_TYPE_UNKNOWN`,e[e.OPEN=1]=`OPEN`,e[e.CLOSED=2]=`CLOSED`})(Co||={});var wo;(function(e){e[e.REPEATED_FIELD_ENCODING_UNKNOWN=0]=`REPEATED_FIELD_ENCODING_UNKNOWN`,e[e.PACKED=1]=`PACKED`,e[e.EXPANDED=2]=`EXPANDED`})(wo||={});var To;(function(e){e[e.UTF8_VALIDATION_UNKNOWN=0]=`UTF8_VALIDATION_UNKNOWN`,e[e.VERIFY=2]=`VERIFY`,e[e.NONE=3]=`NONE`})(To||={});var Eo;(function(e){e[e.MESSAGE_ENCODING_UNKNOWN=0]=`MESSAGE_ENCODING_UNKNOWN`,e[e.LENGTH_PREFIXED=1]=`LENGTH_PREFIXED`,e[e.DELIMITED=2]=`DELIMITED`})(Eo||={});var Do;(function(e){e[e.JSON_FORMAT_UNKNOWN=0]=`JSON_FORMAT_UNKNOWN`,e[e.ALLOW=1]=`ALLOW`,e[e.LEGACY_BEST_EFFORT=2]=`LEGACY_BEST_EFFORT`})(Do||={});var Oo;(function(e){e[e.ENFORCE_NAMING_STYLE_UNKNOWN=0]=`ENFORCE_NAMING_STYLE_UNKNOWN`,e[e.STYLE2024=1]=`STYLE2024`,e[e.STYLE_LEGACY=2]=`STYLE_LEGACY`})(Oo||={});var ko;(function(e){e[e.NONE=0]=`NONE`,e[e.SET=1]=`SET`,e[e.ALIAS=2]=`ALIAS`})(ko||={});var Ao;(function(e){e[e.EDITION_UNKNOWN=0]=`EDITION_UNKNOWN`,e[e.EDITION_LEGACY=900]=`EDITION_LEGACY`,e[e.EDITION_PROTO2=998]=`EDITION_PROTO2`,e[e.EDITION_PROTO3=999]=`EDITION_PROTO3`,e[e.EDITION_2023=1e3]=`EDITION_2023`,e[e.EDITION_2024=1001]=`EDITION_2024`,e[e.EDITION_UNSTABLE=9999]=`EDITION_UNSTABLE`,e[e.EDITION_1_TEST_ONLY=1]=`EDITION_1_TEST_ONLY`,e[e.EDITION_2_TEST_ONLY=2]=`EDITION_2_TEST_ONLY`,e[e.EDITION_99997_TEST_ONLY=99997]=`EDITION_99997_TEST_ONLY`,e[e.EDITION_99998_TEST_ONLY=99998]=`EDITION_99998_TEST_ONLY`,e[e.EDITION_99999_TEST_ONLY=99999]=`EDITION_99999_TEST_ONLY`,e[e.EDITION_MAX=2147483647]=`EDITION_MAX`})(Ao||={});var jo;(function(e){e[e.VISIBILITY_UNSET=0]=`VISIBILITY_UNSET`,e[e.VISIBILITY_LOCAL=1]=`VISIBILITY_LOCAL`,e[e.VISIBILITY_EXPORT=2]=`VISIBILITY_EXPORT`})(jo||={});function Mo(e){return Object.assign(Object.assign({readUnknownFields:!0,recursionLimit:100},e),{depth:0})}function No(e,t,n){let r=Ni(e,void 0,!1);return Po(r,new Si(t),Mo(n),!1,t.byteLength),r.message}function Po(e,t,n,r,i){if(++n.depth>n.recursionLimit)throw Error(`cannot decode ${e.desc} from binary: maximum recursion depth of ${n.recursionLimit} reached`);let a=r?t.len:t.pos+i,o,s,c=e.getUnknown()??[];for(;t.pos<a&&([o,s]=t.tag(),!(r&&s==xi.EndGroup));){let r=e.findNumber(o);if(!r){let e=n.recursionLimit-n.depth,r=t.skip(s,o,e);n.readUnknownFields&&c.push({no:o,wireType:s,data:r});continue}Fo(e,t,r,s,n)}if(r&&(s!=xi.EndGroup||o!==i))throw Error(`invalid end group tag`);c.length>0&&e.setUnknown(c),n.depth--}function Fo(e,t,n,r,i){switch(n.fieldKind){case`scalar`:e.set(n,zo(t,n.scalar,n.utf8Validation));break;case`enum`:let a=zo(t,z.INT32);if(n.enum.open)e.set(n,a);else if(n.enum.values.some(e=>e.number===a))e.set(n,a);else if(i.readUnknownFields){let t=[];qr(a,t);let i=e.getUnknown()??[];i.push({no:n.number,wireType:r,data:new Uint8Array(t)}),e.setUnknown(i)}break;case`message`:e.set(n,Ro(t,i,n,e.get(n)));break;case`list`:Lo(t,r,e.get(n),i);break;case`map`:Io(t,e.get(n),i);break}}function Io(e,t,n){let r=t.field(),i,a,o=e.uint32(),s=e.pos+o;for(;e.pos<s;){let[t]=e.tag();switch(t){case 1:i=zo(e,r.mapKey,r.utf8Validation);break;case 2:switch(r.mapKind){case`scalar`:a=zo(e,r.scalar,r.utf8Validation);break;case`enum`:a=e.int32();break;case`message`:a=Ro(e,n,r);break}break}}if(i===void 0&&(i=Zr(r.mapKey,!1)),a===void 0)switch(r.mapKind){case`scalar`:a=Zr(r.scalar,!1);break;case`enum`:a=r.enum.values[0].number;break;case`message`:a=Ni(r.message,void 0,!1);break}t.set(i,a)}function Lo(e,t,n,r){let i=n.field();if(i.listKind===`message`){n.add(Ro(e,r,i));return}let a=i.scalar??z.INT32;if(!(t==xi.LengthDelimited&&a!=z.STRING&&a!=z.BYTES)){n.add(zo(e,a,i.utf8Validation));return}let o=e.uint32()+e.pos;for(;e.pos<o;)n.add(zo(e,a,i.utf8Validation))}function Ro(e,t,n,r){let i=n.delimitedEncoding,a=r??Ni(n.message,void 0,!1);return Po(a,e,t,i,i?n.number:e.uint32()),a}function zo(e,t,n=!1){switch(t){case z.STRING:return e.string(n);case z.BOOL:return e.bool();case z.DOUBLE:return e.double();case z.FLOAT:return e.float();case z.INT32:return e.int32();case z.INT64:return e.int64();case z.UINT64:return e.uint64();case z.FIXED64:return e.fixed64();case z.BYTES:return e.bytes();case z.FIXED32:return e.fixed32();case z.SFIXED32:return e.sfixed32();case z.SFIXED64:return e.sfixed64();case z.SINT64:return e.sint64();case z.UINT32:return e.uint32();case z.SINT32:return e.sint32()}}function Bo(e,t){let n=No(uo,Xi(e));return n.messageType.forEach(aa),n.dependency=t?.map(e=>e.proto.name)??[],ua(n,e=>t?.find(t=>t.proto.name===e)).getFile(n.name)}var Vo=3,Ho={writeUnknownFields:!0};function Uo(e){return e?Object.assign(Object.assign({},Ho),e):Ho}function Wo(e,t,n){return Go(new cte,Uo(n),Ni(e,t)).finish()}function Go(e,t,n){for(let r of n.sortedFields){if(!n.isSet(r)){if(r.presence==Vo)throw Error(`cannot encode ${r} to binary: required field not set`);continue}Ko(e,t,n,r)}if(t.writeUnknownFields)for(let{no:t,wireType:r,data:i}of n.getUnknown()??[])e.tag(t,r).raw(i);return e}function Ko(e,t,n,r){switch(r.fieldKind){case`scalar`:case`enum`:qo(e,n.desc.typeName,r.name,r.scalar??z.INT32,r.number,n.get(r));break;case`list`:Yo(e,t,r,n.get(r));break;case`message`:Jo(e,t,r,n.get(r));break;case`map`:for(let[i,a]of n.get(r))Xo(e,t,r,i,a);break}}function qo(e,t,n,r,i,a){Zo(e.tag(i,Qo(r)),t,n,r,a)}function Jo(e,t,n,r){n.delimitedEncoding?Go(e.tag(n.number,xi.StartGroup),t,r).tag(n.number,xi.EndGroup):Go(e.tag(n.number,xi.LengthDelimited).fork(),t,r).join()}function Yo(e,t,n,r){if(n.listKind==`message`){for(let i of r)Jo(e,t,n,i);return}let i=n.scalar??z.INT32;if(n.packed){if(!r.size)return;e.tag(n.number,xi.LengthDelimited).fork();for(let t of r)Zo(e,n.parent.typeName,n.name,i,t);e.join();return}for(let t of r)qo(e,n.parent.typeName,n.name,i,n.number,t)}function Xo(e,t,n,r,i){switch(e.tag(n.number,xi.LengthDelimited).fork(),qo(e,n.parent.typeName,n.name,n.mapKey,1,r),n.mapKind){case`scalar`:case`enum`:qo(e,n.parent.typeName,n.name,n.scalar??z.INT32,2,i);break;case`message`:Go(e.tag(2,xi.LengthDelimited).fork(),t,i).join();break}e.join()}function Zo(e,t,n,r,i){try{switch(r){case z.STRING:e.string(i);break;case z.BOOL:e.bool(i);break;case z.DOUBLE:e.double(i);break;case z.FLOAT:e.float(i);break;case z.INT32:e.int32(i);break;case z.INT64:e.int64(i);break;case z.UINT64:e.uint64(i);break;case z.FIXED64:e.fixed64(i);break;case z.BYTES:e.bytes(i);break;case z.FIXED32:e.fixed32(i);break;case z.SFIXED32:e.sfixed32(i);break;case z.SFIXED64:e.sfixed64(i);break;case z.SINT64:e.sint64(i);break;case z.UINT32:e.uint32(i);break;case z.SINT32:e.sint32(i);break}}catch(e){throw e instanceof Error?Error(`cannot encode field ${t}.${n} to binary: ${e.message}`):e}}function Qo(e){switch(e){case z.BYTES:case z.STRING:return xi.LengthDelimited;case z.DOUBLE:case z.FIXED64:case z.SFIXED64:return xi.Bit64;case z.FIXED32:case z.SFIXED32:case z.FLOAT:return xi.Bit32;default:return xi.Varint}}var $o=Bo(`ChNpbS9iYXNlL1BUeXBlLnByb3RvEhFsb2EuaW0uYmFzZS5wdHlwZSr8AQoFUFR5cGUSCwoHVU5LTk9XThAAEgkKBUxPR0lOEAESDQoJSEVBUlRCRUFUEAISBwoDQUNLEAMSCgoGTE9HT1VUEAQSCAoES0lDSxAFEgoKBlNJR0
45BTBAGEhkKFUdFVF9DT05WRVJTQVRJT05fTElTVBBkEhQKEE5FV19DT05WRVJTQVRJT04QZRIUChBHRVRfQ09OVkVSU0FUSU9OEGYSFgoSQ09OVkVSU0FUSU9OX1NFVFVQEGcSEQoMQ0hBVF9NRVNTQUdFEMgBEhYKEUNIQVRfTUVTU0FHRV9MSVNUEMkBEhcKEkdST1VQX0NIQVRfTUVTU0FHRRCsAkKOAQoYYWkubGl2ZW9uYWlyLmltLnByb3RvY29sQgpQVHlwZVByb3RvUAGiAgRMSUJQqgIRTG9hLkltLkJhc2UuUHR5cGXKAhFMb2FcSW1cQmFzZVxQdHlwZeICHUxvYVxJbVxCYXNlXFB0eXBlXEdQQk1ldGFkYXRh6gIUTG9hOjpJbTo6QmFzZTo6UHR5cGViBnByb3RvMw`),es=function(e){return e[e.UNKNOWN=0]=`UNKNOWN`,e[e.LOGIN=1]=`LOGIN`,e[e.HEARTBEAT=2]=`HEARTBEAT`,e[e.ACK=3]=`ACK`,e[e.LOGOUT=4]=`LOGOUT`,e[e.KICK=5]=`KICK`,e[e.SIGNAL=6]=`SIGNAL`,e[e.GET_CONVERSATION_LIST=100]=`GET_CONVERSATION_LIST`,e[e.NEW_CONVERSATION=101]=`NEW_CONVERSATION`,e[e.GET_CONVERSATION=102]=`GET_CONVERSATION`,e[e.CONVERSATION_SETUP=103]=`CONVERSATION_SETUP`,e[e.CHAT_MESSAGE=200]=`CHAT_MESSAGE`,e[e.CHAT_MESSAGE_LIST=201]=`CHAT_MESSAGE_LIST`,e[e.GROUP_CHAT_MESSAGE=300]=`GROUP_CHAT_MESSAGE`,e}({}),ts=Bo(`ChZpbS9iYXNlL1Rlcm1pbmFsLnByb3RvEhRsb2EuaW0uYmFzZS50ZXJtaW5hbCpJCghUZXJtaW5hbBILCgdVTktOT1dOEAASBwoDSU9TEAESCwoHQU5EUk9JRBACEgcKA1dFQhADEggKBElQQUQQBBIHCgNDTEkQBUKdAQoYYWkubGl2ZW9uYWlyLmltLnByb3RvY29sQg1UZXJtaW5hbFByb3RvUAGiAgRMSUJUqgIUTG9hLkltLkJhc2UuVGVybWluYWzKAhRMb2FcSW1cQmFzZVxUZXJtaW5hbOICIExvYVxJbVxCYXNlXFRlcm1pbmFsXEdQQk1ldGFkYXRh6gIXTG9hOjpJbTo6QmFzZTo6VGVybWluYWxiBnByb3RvMw`),ns=function(e){return e[e.UNKNOWN=0]=`UNKNOWN`,e[e.IOS=1]=`IOS`,e[e.ANDROID=2]=`ANDROID`,e[e.WEB=3]=`WEB`,e[e.IPAD=4]=`IPAD`,e[e.CLI=5]=`CLI`,e}({}),rs=Bo(`ChRpbS9iYXNlL0hlYWRlci5wcm90bxILbG9hLmltLmJhc2UirgEKBkhlYWRlchILCgN2ZXIYASABKAkSDwoHc2RrX3ZlchgCIAEoCRIwCgh0ZXJtaW5hbBgDIAEoDjIeLmxvYS5pbS5iYXNlLnRlcm1pbmFsLlRlcm1pbmFsEhEKCWRldmljZV9pZBgEIAEoCRIRCgl0ZW5hbnRfaWQYBSABKAkSDgoGYXBwX2lkGAYgASgJEgsKA3NlcRgHIAEoAxIRCgl0aW1lc3RhbXAYCCABKANCdQoYYWkubGl2ZW9uYWlyLmltLnByb3RvY29sQgtIZWFkZXJQcm90b1ABogIDTElCqgILTG9hLkltLkJhc2XKAgtMb2FcSW1cQmFzZeICF0xvYVxJbVxCYXNlXEdQQk1ldGFkYXRh6gINTG9hOjpJbTo6QmFzZWIGcHJvdG8z`,[ts]),is=lo(rs,0),as=Bo(`ChJpbS9iYXNlL1VzZXIucHJvdG8SC2xvYS5pbS5iYXNlIhEKA1VpZBIKCgJpZBgBIAEoCSJeCgtVc2VyUHJvZmlsZRIdCgN1aWQYASABKAsyEC5sb2EuaW0uYmFzZS5VaWQSEAoIbmlja25hbWUYAiABKAkSEwoGYXZhdGFyGAMgASgJSACIAQFCCQoHX2F2YXRhckJzChhhaS5saXZlb25haXIuaW0ucHJvdG9jb2xCCVVzZXJQcm90b1ABogIDTElCqgILTG9hLkltLkJhc2XKAgtMb2FcSW1cQmFzZeICF0xvYVxJbVxCYXNlXEdQQk1ldGFkYXRh6gINTG9hOjpJbTo6QmFzZWIGcHJvdG8z`),ss=lo(as,0),cs=Bo(`ChNpbS9hdXRoL0xvZ2luLnByb3RvEgtsb2EuaW0uYXV0aCJVCgVMb2dpbhIOCgZ0ZW5hbnQYASABKAkSDwoHYWNjb3VudBgCIAEoCRISCghwYXNzd29yZBgDIAEoCUgAEg8KBXRva2VuGAQgASgJSABCBgoEYXV0aEJ0ChhhaS5saXZlb25haXIuaW0ucHJvdG9jb2xCCkxvZ2luUHJvdG9QAaICA0xJQaoCC0xvYS5JbS5BdXRoygILTG9hXEltXEF1dGjiAhdMb2FcSW1cQXV0aFxHUEJNZXRhZGF0YeoCDUxvYTo6SW06OkF1dGhiBnByb3RvMw`),ls=lo(cs,0),us=Bo(`ChRpbS9hdXRoL0xvZ291dC5wcm90bxILbG9hLmltLmF1dGgiGAoGTG9nb3V0Eg4KBnRlbmFudBgBIAEoCUJ1ChhhaS5saXZlb25haXIuaW0ucHJvdG9jb2xCC0xvZ291dFByb3RvUAGiAgNMSUGqAgtMb2EuSW0uQXV0aMoCC0xvYVxJbVxBdXRo4gIXTG9hXEltXEF1dGhcR1BCTWV0YWRhdGHqAg1Mb2E6OkltOjpBdXRoYgZwcm90bzM`),ds=Bo(`ChlpbS9zaWduYWwvSGVhcnRCZWF0LnByb3RvEg1sb2EuaW0uc2lnbmFsIgsKCUhlYXJ0QmVhdEKAAQoYYWkubGl2ZW9uYWlyLmltLnByb3RvY29sQg5IZWFydEJlYXRQcm90b1ABogIDTElTqgINTG9hLkltLlNpZ25hbMoCDUxvYVxJbVxTaWduYWziAhlMb2FcSW1cU2lnbmFsXEdQQk1ldGFkYXRh6gIPTG9hOjpJbTo6U2lnbmFsYgZwcm90bzM`),fs=lo(ds,0),ps=Bo(`ChRpbS9zaWduYWwvS2ljay5wcm90bxINbG9hLmltLnNpZ25hbCJUCgRLaWNrEgwKBGNvZGUYASABKAUSDAoEZGVzYxgCIAEoCRIwCgh0ZXJtaW5hbBgDIAEoDjIeLmxvYS5pbS5iYXNlLnRlcm1pbmFsLlRlcm1pbmFsQnsKGGFpLmxpdmVvbmFpci5pbS5wcm90b2NvbEIJS2lja1Byb3RvUAGiAgNMSVOqAg1Mb2EuSW0uU2lnbmFsygINTG9hXEltXFNpZ25hbOICGUxvYVxJbVxTaWduYWxcR1BCTWV0YWRhdGHqAg9Mb2E6OkltOjpTaWduYWxiBnByb3RvMw`,[ts]),ms=Bo(`Ch9pbS9tZXNzYWdlL01lc3NhZ2VDb250ZW50LnByb3RvEg5sb2EuaW0ubWVzc2FnZSKJAwoOTWVzc2FnZUNvbnRlbnQSJAoEdGV4dBgBIAEoCzIULmxvYS5pbS5tZXNzYWdlLlRleHRIABImCgVpbWFnZRgCIAEoCzIVLmxvYS5pbS5tZXNzYWdlLkltYWdlSAASJAoEZmlsZRgDIAEoCzIULmxvYS5pbS5tZXNzYWdlLkZpbGVIABImCgV2b2ljZRgEIAEoCzIVLmxvYS5pbS5tZXNzYWdlLlZvaWNlSAASJgoFdmlkZW8YBSABKAsyFS5sb2EuaW0ubWVzc2FnZS5WaWRlb0gAEigKBmN1c3RvbRgGIAEoCzIWLmxvYS5pbS5tZXNzYWdlLkN1c3RvbUgAEiwKCGxvY2F0aW9uGAcgASgLMhgubG9hLmltLm1lc3NhZ2UuTG9jYXRpb25IABIqCgdzdGlja2VyGAggASgLMhcubG9hLmltLm1lc3NhZ2Uu
4U3RpY2tlckgAEiQKBGNhcmQYCSABKAsyFC5sb2EuaW0ubWVzc2FnZS5DYXJkSABCCQoHY29udGVudCIXCgRUZXh0Eg8KB2NvbnRlbnQYASABKAkiagoMSW1hZ2VWYXJpYW50Ei4KBHR5cGUYASABKA4yIC5sb2EuaW0ubWVzc2FnZS5JbWFnZVZhcmlhbnRUeXBlEgsKA3VybBgCIAEoCRINCgV3aWR0aBgDIAEoDRIOCgZoZWlnaHQYBCABKA0iuwEKBUltYWdlEgsKA3VybBgBIAEoCRINCgV3aWR0aBgCIAEoDRIOCgZoZWlnaHQYAyABKA0SDAoEc2l6ZRgEIAEoBBIWCgl0aHVtYm5haWwYBSABKAlIAIgBARIOCgZidWNrZXQYBiABKAkSEgoKb2JqZWN0X2tleRgHIAEoCRIuCgh2YXJpYW50cxgIIAMoCzIcLmxvYS5pbS5tZXNzYWdlLkltYWdlVmFyaWFudEIMCgpfdGh1bWJuYWlsImoKBEZpbGUSCwoDdXJsGAEgASgJEhAKCGZpbGVuYW1lGAIgASgJEgwKBHNpemUYAyABKAQSEQoJbWltZV90eXBlGAQgASgJEg4KBmJ1Y2tldBgFIAEoCRISCgpvYmplY3Rfa2V5GAYgASgJIkoKBVZvaWNlEgsKA3VybBgBIAEoCRIQCghkdXJhdGlvbhgCIAEoDRIOCgZidWNrZXQYAyABKAkSEgoKb2JqZWN0X2tleRgEIAEoCSKdAQoFVmlkZW8SCwoDdXJsGAEgASgJEhAKCGR1cmF0aW9uGAIgASgNEhYKCXRodW1ibmFpbBgDIAEoCUgAiAEBEg0KBXdpZHRoGAQgASgNEg4KBmhlaWdodBgFIAEoDRIMCgRzaXplGAYgASgEEg4KBmJ1Y2tldBgHIAEoCRISCgpvYmplY3Rfa2V5GAggASgJQgwKCl90aHVtYm5haWwiPgoHU3RpY2tlchILCgN1cmwYASABKAkSFwoKc3RpY2tlcl9pZBgCIAEoCUgAiAEBQg0KC19zdGlja2VyX2lkItYBCgRDYXJkEhEKCWNhcmRfdHlwZRgBIAEoCRINCgV0aXRsZRgCIAEoCRIPCgdzdW1tYXJ5GAMgASgJEg0KBWNvdmVyGAQgASgJEgsKA3VybBgFIAEoCRIQCghmYWxsYmFjaxgGIAEoCRIPCgd2ZXJzaW9uGAcgASgJEi4KBWV4dHJhGAggAygLMh8ubG9hLmltLm1lc3NhZ2UuQ2FyZC5FeHRyYUVudHJ5GiwKCkV4dHJhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASJfCgZDdXN0b20SKgoCa3YYASADKAsyHi5sb2EuaW0ubWVzc2FnZS5DdXN0b20uS3ZFbnRyeRopCgdLdkVudHJ5EgsKA2tleRgBIAEoCRINCgV2YWx1ZRgCIAEoCToCOAEiQAoITG9jYXRpb24SEAoIbGF0aXR1ZGUYASABKAESEQoJbG9uZ2l0dWRlGAIgASgBEg8KB2FkZHJlc3MYAyABKAkqrwEKEEltYWdlVmFyaWFudFR5cGUSIgoeSU1BR0VfVkFSSUFOVF9UWVBFX1VOU1BFQ0lGSUVEEAASHAoYSU1BR0VfVkFSSUFOVF9UWVBFX1RIVU1CEAESHAoYSU1BR0VfVkFSSUFOVF9UWVBFX1NNQUxMEAISHQoZSU1BR0VfVkFSSUFOVF9UWVBFX01FRElVTRADEhwKGElNQUdFX1ZBUklBTlRfVFlQRV9MQVJHRRAEQokBChhhaS5saXZlb25haXIuaW0ucHJvdG9jb2xCE01lc3NhZ2VDb250ZW50UHJvdG9QAaICA0xJTaoCDkxvYS5JbS5NZXNzYWdlygIOTG9hXEltXE1lc3NhZ2XiAhpMb2FcSW1cTWVzc2FnZVxHUEJNZXRhZGF0YeoCEExvYTo6SW06Ok1lc3NhZ2ViBnByb3RvMw`),hs=lo(ms,0),gs=lo(ms,1),_s=Bo(`ChhpbS9tZXNzYWdlL01lc3NhZ2UucHJvdG8SDmxvYS5pbS5tZXNzYWdlItoBCgdNZXNzYWdlEgsKA2NpZBgBIAEoCRILCgNtaWQYAiABKAkSEQoJdGltZXN0YW1wGAMgASgDEi8KB2NvbnRlbnQYBCADKAsyHi5sb2EuaW0ubWVzc2FnZS5NZXNzYWdlQ29udGVudBIeCgRmcm9tGAUgASgLMhAubG9hLmltLmJhc2UuVWlkEg8KB21zZ19zZXEYBiABKAMSFAoMbGFzdF9tc2dfc2VxGAcgASgDEhkKDHJlcGx5X3RvX21pZBgIIAEoCUgAiAEBQg8KDV9yZXBseV90b19taWQihwEKEk1lc3NhZ2VMaXN0UmVxdWVzdBILCgNjaWQYASABKAkSDAoEc2l6ZRgCIAEoBRIXCgpiZWZvcmVfbWlkGAMgASgJSACIAQESGwoOYmVmb3JlX21zZ19zZXEYBCABKANIAYgBAUINCgtfYmVmb3JlX21pZEIRCg9fYmVmb3JlX21zZ19zZXEiPwoTTWVzc2FnZUxpc3RSZXNwb25zZRIoCgdtZXNzYWdlGAEgAygLMhcubG9hLmltLm1lc3NhZ2UuTWVzc2FnZSpTCg1NZXNzYWdlU3RhdHVzEgsKB1VOS05PV04QABITCg9TRVJWRVJfQUNDRVBURUQQARIRCg1TRVJWRVJfRkFJTEVEEAISDQoJREVMSVZFUkVEEANCggEKGGFpLmxpdmVvbmFpci5pbS5wcm90b2NvbEIMTWVzc2FnZVByb3RvUAGiAgNMSU2qAg5Mb2EuSW0uTWVzc2FnZcoCDkxvYVxJbVxNZXNzYWdl4gIaTG9hXEltXE1lc3NhZ2VcR1BCTWV0YWRhdGHqAhBMb2E6OkltOjpNZXNzYWdlYgZwcm90bzM`,[ms,as]),vs=lo(_s,0),ys=lo(_s,1),bs=Bo(`ChNpbS9zaWduYWwvQWNrLnByb3RvEg1sb2EuaW0uc2lnbmFsItsCCgNBY2sSJwoFcHR5cGUYASABKA4yGC5sb2EuaW0uYmFzZS5wdHlwZS5QVHlwZRILCgNzZXEYAiABKAMSEQoJdGltZXN0YW1wGAMgASgDEhAKA21pZBgEIAEoCUgAiAEBEiQKBGNvZGUYBSABKA4yFi5sb2EuaW0uc2lnbmFsLkFja0NvZGUSEQoEZGVzYxgGIAEoCUgBiAEBEjIKBnN0YXR1cxgHIAEoDjIdLmxvYS5pbS5tZXNzYWdlLk1lc3NhZ2VTdGF0dXNIAogBARIUCgdtc2dfc2VxGAggASgDSAOIAQESGQoMbGFzdF9tc2dfc2VxGAkgASgDSASIAQESFQoIYml6X2NvZGUYCiABKAVIBYgBAUIGCgRfbWlkQgcKBV9kZXNjQgkKB19zdGF0dXNCCgoIX21zZ19zZXFCDwoNX2xhc3RfbXNnX3NlcUILCglfYml6X2NvZGUqywIKB0Fja0NvZGUSGAoUQUNLX0NPREVfVU5TUEVDSUZJRUQQABIGCgJPSxABEhAKC0JBRF9SRVFVRVNUEOgHEhYKEVVOU1VQUE9SVEVEX1BUWVBFEOkHEhgKE1BUWVBFX0JPRFlfTUlTTUFUQ0gQ6gcSGwoWTUlTU0lOR19SRVFVSVJFRF9GSUVMRBDrBxIUCg9VTkFVVEhFTlRJQ0FURUQQ0A8SEgoNVE9LRU5fRVhQSVJFRBDRDxIWChFQRVJNSVNTSU9OX0RFTklFRBDSDxINCghJTV9FUlJPUhC4FxITCg5JTlRFUk5BTF9FUlJPUhCgHxIiCh1JTkNPTVBBVElCTEVfUFJPVE9DT0xfVkVSU0lPThCIJxIfChpVTlNVUFBPUlRFRF9DTElFTlRfVkVSU0lPThCJJxISCg1VTktOT1dOX0VSUk9SEKhGQnoKGGFpLmxpdmVvbmFpci5pbS5wcm90b2NvbEIIQWNrUHJvdG9QAaICA0xJU6oCDUxvYS5JbS5TaWduYWzKAg1Mb2FcSW1cU2lnbmFs4gIZTG9hXEltXFNpZ25hbFxHUEJNZXRhZGF0YeoCD0xvYTo6SW06OlNpZ25hbGIGcHJvdG8z`,[$o,_s]),xs=function(e){return e[e.ACK_CODE_UNSPECIFIED=0]=`ACK_CODE_UNSPECIFIED`,e[e.OK=1]=`OK`,e[e.BAD_REQUEST=1e3]=`BAD_REQUEST`,e[e.UNSUPPORTED_PTYPE=1001]=`UNSUPPORTED_PTYPE`,e[e.PTYPE_BODY_MISMATCH=1002]=`PTYPE_BODY_MISMATCH`,e[e.MISSING_REQUIRED_FIELD=1003]=`MISSING_REQUIRED_FIELD`,e[e.UNAUTHENTICATED=2e3]=`UNAUTHENTICATED`,e[e.TOKEN_EXPIRED=2001]=`TOKEN_EXPIRED`,e[e.PERMISSION_DENIED=2002]=`PERMISSION_DENIED`,e[e.IM_ERROR=3e3]=`IM_ERROR`,e[e.INTERNAL_ERROR=4e3]=`INTERNAL_ERROR`,e[e.INCOMPATIBLE_PROTOCOL_VERSION=5e3]=`INCOMPATIBLE_PROTOCOL_VERSION`,e[e.UNSUPPORTED_CLIENT_VERSION=5001]=`UNSUPPORTED_CLIENT_VERSION`,e[e.UNKNOWN_ERROR=9e3]=`UNKNOWN_ERROR`,e}({}),Ss=Bo(`ChZpbS9zaWduYWwvU2lnbmFsLnByb3RvEg1sb2EuaW0uc2lnbmFsImsKBlNpZ25hbBIRCglzaWduYWxfaWQYASABKAkSDAoEbmFtZRgCIAEoCRIWCg5zY2hlbWFfdmVyc2lvbhgDIAEoDRIUCgxwYXlsb2FkX2pzb24YBCABKAkSEgoKdHRsX21pbGxpcxgFIAEoA0J9ChhhaS5saXZlb25haXIuaW0ucHJvdG9jb2xCC1NpZ25hbFByb3RvUAGiAgNMSVOqAg1Mb2EuSW0uU2lnbmFsygINTG9hXEltXFNpZ25hbOICGUxvYVxJbVxTaWduYWxcR1BCTWV0YWRhdGHqAg9Mb2E6OkltOjpTaWduYWxiBnByb3RvMw`),gte=lo(Ss,0),_te=Bo(`ChtpbS9jb252ZXJzYXRpb24vQ1R5cGUucHJvdG8SGWxvYS5pbS5jb252ZXJzYXRpb24uY3R5cGUqNwoFQ1R5cGUSCwoHVU5LTk9XThAAEgoKBlNJTkdMRRABEgkKBUdST1VQEAISCgoGV0FJVEVSEANCrgEKGGFpLmxpdmVvbmFpci5pbS5wcm90b2NvbEIKQ1R5cGVQcm90b1ABogIETElDQ6oCGUxvYS5JbS5Db252ZXJzYXRpb24uQ3R5cGXKAhlMb2FcSW1cQ29udmVyc2F0aW9uXEN0eXBl4gIlTG9hXEltXENvbnZlcnNhdGlvblxDdHlwZVxHUEJNZXRhZGF0YeoCHExvYTo6SW06OkNvbnZlcnNhdGlvbjo6Q3R5cGViBnByb3RvMw`),Cs=function(e){return e[e.UNKNOWN=0]=`UNKNOWN`,e[e.SINGLE=1]=`SINGLE`,e[e.GROUP=2]=`GROUP`,e[e.WAITER=3]=`WAITER`,e}({}),ws=Bo(`CiJpbS9jb252ZXJzYXRpb24vQ29udmVyc2F0aW9uLnByb3RvEhNsb2EuaW0uY29udmVyc2F0aW9uItEBCgxDb252ZXJzYXRpb24SCwoDY2lkGAEgASgJEi8KBWN0eXBlGAIgASgOMiAubG9hLmltLmNvbnZlcnNhdGlvbi5jdHlwZS5DVHlwZRINCgV0aXRsZRgDIAEoCRIOCgZh
4dmF0YXIYBCABKAkSLQoMbGFzdF9tZXNzYWdlGAUgASgLMhcubG9hLmltLm1lc3NhZ2UuTWVzc2FnZRIOCgZ1bnJlYWQYBiABKAUSEwoLdXBkYXRlX3RpbWUYByABKAMSEAoIcGVlcl91aWQYCCABKAkiTAoXQ29udmVyc2F0aW9uTGlzdFJlcXVlc3QSDAoEc2l6ZRgBIAEoBRIOCgZjdXJzb3IYAiABKAMSEwoLcGFnZV9jdXJzb3IYAyABKAkilAEKGENvbnZlcnNhdGlvbkxpc3RSZXNwb25zZRI3Cgxjb252ZXJzYXRpb24YASADKAsyIS5sb2EuaW0uY29udmVyc2F0aW9uLkNvbnZlcnNhdGlvbhITCgtuZXh0X2N1cnNvchgCIAEoAxIQCghoYXNfbW9yZRgDIAEoCBIYChBuZXh0X3BhZ2VfY3Vyc29yGAQgASgJQpsBChhhaS5saXZlb25haXIuaW0ucHJvdG9jb2xCEUNvbnZlcnNhdGlvblByb3RvUAGiAgNMSUOqAhNMb2EuSW0uQ29udmVyc2F0aW9uygITTG9hXEltXENvbnZlcnNhdGlvbuICH0xvYVxJbVxDb252ZXJzYXRpb25cR1BCTWV0YWRhdGHqAhVMb2E6OkltOjpDb252ZXJzYXRpb25iBnByb3RvMw`,[_te,_s]),Ts=lo(ws,0),vte=lo(ws,1),Es=Bo(`CidpbS9jb252ZXJzYXRpb24vQ29udmVyc2F0aW9uU2V0dXAucHJvdG8SE2xvYS5pbS5jb252ZXJzYXRpb24ivAEKEUNvbnZlcnNhdGlvblNldHVwEgsKA2NpZBgBIAEoCRI9CgZhY3Rpb24YAiABKA4yLS5sb2EuaW0uY29udmVyc2F0aW9uLkNvbnZlcnNhdGlvblNldHVwLkFjdGlvbhIUCgxyZWFkX21zZ19zZXEYAyABKAMiRQoGQWN0aW9uEgsKB1VOS05PV04QABIHCgNQSU4QARIKCgZVTl9QSU4QAhIKCgZERUxFVEUQAxINCglNQVJLX1JFQUQQBEKgAQoYYWkubGl2ZW9uYWlyLmltLnByb3RvY29sQhZDb252ZXJzYXRpb25TZXR1cFByb3RvUAGiAgNMSUOqAhNMb2EuSW0uQ29udmVyc2F0aW9uygITTG9hXEltXENvbnZlcnNhdGlvbuICH0xvYVxJbVxDb252ZXJzYXRpb25cR1BCTWV0YWRhdGHqAhVMb2E6OkltOjpDb252ZXJzYXRpb25iBnByb3RvMw`),Ds=lo(Es,0),Os=function(e){return e[e.UNKNOWN=0]=`UNKNOWN`,e[e.PIN=1]=`PIN`,e[e.UN_PIN=2]=`UN_PIN`,e[e.DELETE=3]=`DELETE`,e[e.MARK_READ=4]=`MARK_READ`,e}({}),ks=lo(Bo(`ChBMb2FNZXNzYWdlLnByb3RvEgZsb2EuaW0i7AYKCkxvYU1lc3NhZ2USJwoFcHR5cGUYASABKA4yGC5sb2EuaW0uYmFzZS5wdHlwZS5QVHlwZRIjCgZoZWFkZXIYAiABKAsyEy5sb2EuaW0uYmFzZS5IZWFkZXISHgoEZnJvbRgDIAEoCzIQLmxvYS5pbS5iYXNlLlVpZBIcCgJ0bxgEIAEoCzIQLmxvYS5pbS5iYXNlLlVpZBIjCgVsb2dpbhgeIAEoCzISLmxvYS5pbS5hdXRoLkxvZ2luSAASLgoKaGVhcnRfYmVhdBgfIAEoCzIYLmxvYS5pbS5zaWduYWwuSGVhcnRCZWF0SAASIwoEa2ljaxggIAEoCzITLmxvYS5pbS5zaWduYWwuS2lja0gAEiEKA2FjaxghIAEoCzISLmxvYS5pbS5zaWduYWwuQWNrSAASJQoGbG9nb3V0GCIgASgLMhMubG9hLmltLmF1dGguTG9nb3V0SAASKgoHbWVzc2FnZRgjIAEoCzIXLmxvYS5pbS5tZXNzYWdlLk1lc3NhZ2VIABJCChRtZXNzYWdlX2xpc3RfcmVxdWVzdBgkIAEoCzIiLmxvYS5pbS5tZXNzYWdlLk1lc3NhZ2VMaXN0UmVxdWVzdEgAEkQKFW1lc3NhZ2VfbGlzdF9yZXNwb25zZRglIAEoCzIjLmxvYS5pbS5tZXNzYWdlLk1lc3NhZ2VMaXN0UmVzcG9uc2VIABInCgZzaWduYWwYJiABKAsyFS5sb2EuaW0uc2lnbmFsLlNpZ25hbEgAEjkKDGNvbnZlcnNhdGlvbhgnIAEoCzIhLmxvYS5pbS5jb252ZXJzYXRpb24uQ29udmVyc2F0aW9uSAASUQoZY29udmVyc2F0aW9uX2xpc3RfcmVxdWVzdBgoIAEoCzIsLmxvYS5pbS5jb252ZXJzYXRpb24uQ29udmVyc2F0aW9uTGlzdFJlcXVlc3RIABJTChpjb252ZXJzYXRpb25fbGlzdF9yZXNwb25zZRgqIAEoCzItLmxvYS5pbS5jb252ZXJzYXRpb24uQ29udmVyc2F0aW9uTGlzdFJlc3BvbnNlSAASRAoSY29udmVyc2F0aW9uX3NldHVwGCsgASgLMiYubG9hLmltLmNvbnZlcnNhdGlvbi5Db252ZXJzYXRpb25TZXR1cEgAQgYKBGJvZHlCZAoYYWkubGl2ZW9uYWlyLmltLnByb3RvY29sQg9Mb2FNZXNzYWdlUHJvdG9QAaICA0xJWKoCBkxvYS5JbcoCBkxvYVxJbeICEkxvYVxJbVxHUEJNZXRhZGF0YeoCB0xvYTo6SW1iBnByb3RvMw`,[$o,rs,as,cs,us,ds,ps,bs,Ss,_s,ws,Es]),0),yte=`0.0.22`,bte=`0.0.22`,xte=`message too large`,Ste=`text content too large`,As=class extends Error{reason;actualBytes;maxBytes;constructor(e,t,n){super(`${e} (${t} > ${n} bytes)`),this.name=`OutgoingMessageTooLargeError`,this.reason=e,this.actualBytes=t,this.maxBytes=n}};function Cte(e,t={}){if(e.body.case===`signal`){let t=e.body.value;Ps(t.name,t.schemaVersion,e.to?.id,t.payloadJson)}let n=t.maxTextBytes??5120;if(n>0&&e.body.case===`message`){for(let t of e.body.value.content)if(t.content.case===`text`){let e=new TextEncoder().encode(t.content.value.content).length;if(e>n)throw new As(Ste,e,n)}}}function wte(e,t={}){Cte(e,t);let n=Wo(ks,e),r=t.maxBytes??65536;if(r>0&&n.length>r)throw new As(xte,n.length,r);return n}var Tte=0n;function js(e){if(e!==void 0)return di(ss,{id:typeof e==`string`?e:e.id})}function Ms(e={}){return di(is,{ver:e.ver??`0.0.22`,sdkVer:e.sdkVer??`0.0.22`,terminal:e.terminal??ns.UNKNOWN,deviceId:e.deviceId,tenantId:e.tenantId,appId:e.appId,seq:e.seq??++Tte,timestamp:e.timestamp??BigInt(Date.now())})}function Ns(e,t,n={}){return di(ks,{ptype:e,header:n.header??Ms(n.headerOptions),from:js(n.from),to:js(n.to),body:t})}function Ete(e){return Dte(e,{case:`token`,value:e.token})}function Dte(e,t){return Ns(es.LOGIN,{case:`login`,value:di(ls,{tenant:e.tenant,account:e.account,auth:t})},e)}function Ote(e={}){return Ns(es.HEARTBEAT,{case:`heartBeat`,value:di(fs,{})},e)}function kte(e={}){return Ns(es.GET_CONVERSATION_LIST,{case:`conversationListRequest`,value:di(vte,{size:e.size,cursor:e.cursor})},e)}function Ate(e){return Ns(es.NEW_CONVERSATION,{case:`conversation`,value:di(Ts,{cid:e.cid,ctype:e.ctype??Cs.SINGLE})},e)}function jte(e){return Ns(es.GET_CONVERSATION,{case:`conversation`,value:di(Ts,{cid:e.cid})},e)}function Mte(e){return Ns(es.CONVERSATION_SETUP,{case:`conversationSetup`,value:di(Ds,{cid:e.cid,action:Os.MARK_READ,readMsgSeq:e.readMsgSeq})},e)}function Nte(e){return di(hs,{content:{case:`text`,value:di(gs,{content:e})}})}function Pte(e){let t=e.content??(e.text===void 0?[]:[Nte(e.text)]);return Ns(es.CHAT_MESSAGE,{case:`message`,value:di(vs,{cid:e.cid,mid:e.mid,replyToMid:e.replyToMid,timestamp:e.timestamp,content:t})},e)}function Fte(e){return Ns(es.CHAT_MESSAGE_LIST,{case:`messageListRequest`,value:di(ys,{cid:e.cid,size:e.size,beforeMid:e.beforeMid,beforeMsgSeq:e.beforeMsgSeq})},e)}function Ite(e){let t=JSON.stringify({cid:e.cid});return Ps(`conversation.entered`,1,`@loa_agent`,t),Ns(es.SIGNAL,{case:`signal`,value:di(gte,{name:`conversation.entered`,schemaVersion:1,payloadJson:t})},{header:e.header,headerOptions:e.headerOptions,to:`@loa_agent`})}function Ps(e,t,n,r){if(e!==`conversation.entered`||t!==1||n!==`@loa_agent`)throw Error(`unsupported client signal`);if(new TextEncoder().encode(r).length>4096)throw Error(`signal payload must not exceed 4096 bytes`);let i=JSON.parse(r);if(typeof i!=`object`||!i||Array.isArray(i)||Object.keys(i).length!==1||!(`cid`in i)||typeof i.cid!=`string`||i.cid.trim().length===0)throw Error(`signal payload must contain only a nonblank cid`)}var Fs=globalThis,Is=Fs.ShadowRoot&&(Fs.ShadyCSS===void 0||Fs.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,Ls=Symbol(),Rs=new WeakMap,zs=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==Ls)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Is&&e===void 0){let n=t!==void 0&&t.length===1;
vendor: 10,657 bytes, lines 4-5
4n&&(e=Rs.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Rs.set(t,e))}return e}toString(){return this.cssText}},Lte=e=>new zs(typeof e==`string`?e:e+``,void 0,Ls),Bs=(e,...t)=>new zs(e.length===1?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if(typeof e==`number`)return e;throw Error(`Value passed to 'css' function must be a 'css' function result: `+e+`. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(n)+e[r+1],e[0]),e,Ls),Rte=(e,t)=>{if(Is)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let n of t){let t=document.createElement(`style`),r=Fs.litNonce;r!==void 0&&t.setAttribute(`nonce`,r),t.textContent=n.cssText,e.appendChild(t)}},Vs=Is?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return Lte(t)})(e):e,{is:zte,defineProperty:Bte,getOwnPropertyDescriptor:Vte,getOwnPropertyNames:Hte,getOwnPropertySymbols:Ute,getPrototypeOf:Wte}=Object,Hs=globalThis,Us=Hs.trustedTypes,Gte=Us?Us.emptyScript:``,Kte=Hs.reactiveElementPolyfillSupport,Ws=(e,t)=>e,Gs={toAttribute(e,t){switch(t){case Boolean:e=e?Gte:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},Ks=(e,t)=>!zte(e,t),qs={attribute:!0,type:String,converter:Gs,reflect:!1,useDefault:!1,hasChanged:Ks};Symbol.metadata??=Symbol(`metadata`),Hs.litPropertyMetadata??=new WeakMap;var Js=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=qs){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&Bte(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:i}=Vte(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let a=r?.call(this);i?.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??qs}static _$Ei(){if(this.hasOwnProperty(Ws(`elementProperties`)))return;let e=Wte(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ws(`finalized`)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ws(`properties`))){let e=this.properties,t=[...Hte(e),...Ute(e)];for(let n of t)this.createProperty(n,e[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let n=this._$Eu(e,t);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let e of n)t.unshift(Vs(e))}else e!==void 0&&t.push(Vs(e));return t}static _$Eu(e,t){let n=t.attribute;return!1===n?void 0:typeof n==`string`?n:typeof e==`string`?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Rte(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(r!==void 0&&!0===n.reflect){let i=(n.converter?.toAttribute===void 0?Gs:n.converter).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,r=n._$Eh.get(e);if(r!==void 0&&this._$Em!==r){let e=n.getPropertyOptions(r),i=typeof e.converter==`function`?{fromAttribute:e.converter}:e.converter?.fromAttribute===void 0?Gs:e.converter;this._$Em=r;let a=i.fromAttribute(t,e.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(e,t,n,r=!1,i){if(e!==void 0){let a=this.constructor;if(!1===r&&(i=this[e]),n??=a.getPropertyOptions(e),!((n.hasChanged??Ks)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:r,wrapped:i},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==i||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,n]of e){let{wrapped:e}=n,r=this[t];!0!==e||this._$AL.has(t)||r===void 0||this.C(t,void 0,n,r)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};Js.elementStyles=[],Js.shadowRootOptions={mode:`open`},Js[Ws(`elementProperties`)]=new Map,Js[Ws(`finalized`)]=new Map,Kte?.({ReactiveElement:Js}),(Hs.reactiveElementVersions??=[]).push(`2.1.2`);var Ys=globalThis,Xs=e=>e,Zs=Ys.trustedTypes,Qs=Zs?Zs.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,$s=`$lit$`,ec=`lit$${Math.random().toFixed(9).slice(2)}$`,tc=`?`+ec,qte=`<${tc}>`,nc=document,rc=()=>nc.createComment(``),ic=e=>e===null||typeof e!=`object`&&typeof e!=`function`,ac=Array.isArray,Jte=e=>ac(e)||typeof e?.[Symbol.iterator]==`function`,oc=`[ 5\f\r]`,sc=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,cc=/-->/g,lc=/>/g,uc=RegExp(`>|${oc}(?:([^\\s"'>=/]+)(${oc}*=${oc}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),dc=/'/g,fc=/"/g,pc=/^(?:script|style|textarea|title)$/i,mc=(e=>(t,...n)=>({_$litType$:e,strings:t,values:n}))(1),hc=Symbol.for(`lit-noChange`),gc=Symbol.for(`lit-nothing`),_c=new WeakMap,vc=nc.createTreeWalker(nc,129);function yc(e,t){if(!ac(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return Qs===void 0?t:Qs.createHTML(t)}var Yte=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=sc;for(let t=0;t<n;t++){let n=e[t],s,c,l=-1,u=0;for(;u<n.length&&(o.lastIndex=u,c=o.exec(n),c!==null);)u=o.lastIndex,o===sc?c[1]===`!--`?o=cc:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=uc):(pc.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=uc):o=lc:o===uc?c[0]===`>`?(o=i??sc,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?uc:c[3]===`"`?fc:dc):o===fc||o===dc?o=uc:o===cc||o===lc?o=sc:(o=uc,i=void 0);let d=o===uc&&e[t+1].startsWith(`/>`)?` `:``;a+=o===sc?n+qte:l>=0?(r.push(s),n.slice(0,l)+$s+n.slice(l)+ec+d):n+ec+(l===-2?t:d)}return[yc(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]},bc=class e{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let a=0,o=0,s=t.length-1,c=this.parts,[l,u]=Yte(t,n);if(this.el=e.createElement(l,r),vc.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=vc.nextNode())!==null&&c.length<s;){if(i.nodeType===1){if(i.hasAttributes())for(let e of i.getAttributeNames())if(e.endsWith($s)){let t=u[o++],n=i.getAttribute(e).split(ec),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?Zte:r[1]===`?`?Qte:r[1]===`@`?$te:Cc}),i.removeAttribute(e)}else e.startsWith(ec)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(pc.test(i.tagName)){let e=i.textContent.split(ec),t=e.length-1;if(t>0){i.textContent=Zs?Zs.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],rc()),vc.nextNode(),c.push({type:2,index:++a});i.append(e[t],rc())}}}else if(i.nodeType===8)if(i.data===tc)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(ec,e+1))!==-1;)c.push({type:7,index:a}),e+=ec.length-1}a++}}static createElement(e,t){let n=nc.createElement(`template`);return n.innerHTML=e,n}};function xc(e,t,n=e,r){if(t===hc)return t;let i=r===void 0?n._$Cl:n._$Co?.[r],a=ic(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(e),i._$AT(e,n,r)),r===void 0?n._$Cl=i:(n._$Co??=[])[r]=i),i!==void 0&&(t=xc(e,i._$AS(e,t.values),i,r)),t}var Xte=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??nc).importNode(t,!0);vc.currentNode=r;let i=vc.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new Sc(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new ene(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=vc.nextNode(),a++)}return vc.currentNode=nc,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},Sc=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=gc,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.
vendor: 2,437 bytes, line 5
5isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=xc(this,e,t),ic(e)?e===gc||e==null||e===``?(this._$AH!==gc&&this._$AR(),this._$AH=gc):e!==this._$AH&&e!==hc&&this._(e):e._$litType$===void 0?e.nodeType===void 0?Jte(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==gc&&ic(this._$AH)?this._$AA.nextSibling.data=e:this.T(nc.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,r=typeof n==`number`?this._$AC(e):(n.el===void 0&&(n.el=bc.createElement(yc(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new Xte(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=_c.get(e.strings);return t===void 0&&_c.set(e.strings,t=new bc(e)),t}k(t){ac(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(rc()),this.O(rc()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=Xs(e).nextSibling;Xs(e).remove(),e=t}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Cc=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=gc,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=gc}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=xc(this,e,t,0),a=!ic(e)||e!==this._$AH&&e!==hc,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=xc(this,r[n+o],t,o),s===hc&&(s=this._$AH[o]),a||=!ic(s)||s!==this._$AH[o],s===gc?e=gc:e!==gc&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===gc?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},Zte=class extends Cc{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===gc?void 0:e}},Qte=class extends Cc{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==gc)}},$te=class extends Cc{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}
vendor: 6,158 bytes, line 5
5_$AI(e,t=this){if((e=xc(this,e,t,0)??gc)===hc)return;let n=this._$AH,r=e===gc&&n!==gc||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==gc&&(n===gc||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH==`function`?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ene=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){xc(this,e)}},tne=Ys.litHtmlPolyfillSupport;tne?.(bc,Sc),(Ys.litHtmlVersions??=[]).push(`3.3.3`);var nne=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(i===void 0){let e=n?.renderBefore??null;r._$litPart$=i=new Sc(t.insertBefore(rc(),e),e,void 0,n??{})}return i._$AI(e),i},wc=globalThis,Tc=class extends Js{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=nne(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return hc}};Tc._$litElement$=!0,Tc.finalized=!0,wc.litElementHydrateSupport?.({LitElement:Tc});var rne=wc.litElementPolyfillSupport;rne?.({LitElement:Tc}),(wc.litElementVersions??=[]).push(`4.2.2`);var ine={attribute:!0,type:String,converter:Gs,reflect:!1,hasChanged:Ks},ane=(e=ine,t,n)=>{let{kind:r,metadata:i}=n,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),r===`setter`&&((e=Object.create(e)).wrapped=!0),a.set(n.name,e),r===`accessor`){let{name:r}=n;return{set(n){let i=t.get.call(this);t.set.call(this,n),this.requestUpdate(r,i,e,!0,n)},init(t){return t!==void 0&&this.C(r,void 0,e,t),t}}}if(r===`setter`){let{name:r}=n;return function(n){let i=this[r];t.call(this,n),this.requestUpdate(r,i,e,!0,n)}}throw Error(`Unsupported decorator location: `+r)};function Ec(e){return(t,n)=>typeof n==`object`?ane(e,t,n):((e,t,n)=>{let r=t.hasOwnProperty(n);return t.constructor.createProperty(n,e),r?Object.getOwnPropertyDescriptor(t,n):void 0})(e,t,n)}function one(e){return Ec({...e,state:!0,attribute:!1})}var Dc={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Oc=e=>(...t)=>({_$litDirective$:e,values:t}),kc=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}},Ac=Oc(class extends kc{constructor(e){if(super(e),e.type!==Dc.ATTRIBUTE||e.name!==`class`||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return` `+Object.keys(e).filter(t=>e[t]).join(` `)+` `}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(` `).split(/\s/).filter(e=>e!==``)));for(let e in t)t[e]&&!this.nt?.has(e)&&this.st.add(e);return this.render(t)}let n=e.element.classList;for(let e of this.st)e in t||(n.remove(e),this.st.delete(e));for(let e in t){let r=!!t[e];r===this.st.has(e)||this.nt?.has(e)||(r?(n.add(e),this.st.add(e)):(n.remove(e),this.st.delete(e)))}return hc}}),jc=`important`,sne=` !`+jc,cne=Oc(class extends kc{constructor(e){if(super(e),e.type!==Dc.ATTRIBUTE||e.name!==`style`||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return r==null?t:t+`${n=n.includes(`-`)?n:n.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,`-$&`).toLowerCase()}:${r};`},``)}update(e,[t]){let{style:n}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let e of this.ft)t[e]??(this.ft.delete(e),e.includes(`-`)?n.removeProperty(e):n[e]=null);for(let e in t){let r=t[e];if(r!=null){this.ft.add(e);let t=typeof r==`string`&&r.endsWith(sne);e.includes(`-`)||t?n.setProperty(e,t?r.slice(0,-11):r,t?jc:``):n[e]=r}}return hc}}),B={d:(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var r=t[n++],i=t[n++];B.o(e,r)?i===0&&n++:Object.defineProperty(e,r,i===0?{enumerable:!0,value:t[n++]}:{enumerable:!0,get:i})}else for(var r in t)B.o(t,r)&&!B.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,`__esModule`,{value:!0})}},Mc={};B.r(Mc),B.d(Mc,{templates:()=>Pl});var Nc={};B.r(Nc),B.d(Nc,{templates:()=>Fl});var Pc={};B.r(Pc),B.d(Pc,{templates:()=>Il});var Fc={};B.r(Fc),B.d(Fc,{templates:()=>Ll});var Ic={};B.r(Ic),B.d(Ic,{templates:()=>Rl});var Lc={};B.r(Lc),B.d(Lc,{templates:()=>zl});var Rc={};B.r(Rc),B.d(Rc,{templates:()=>Bl});var zc={};B.r(zc),B.d(zc,{templates:()=>Vl});var Bc={};B.r(Bc),B.d(Bc,{templates:()=>Hl});var Vc={};B.r(Vc),B.d(Vc,{templates:()=>Ul});var Hc={};B.r(Hc),B.d(Hc,{templates:()=>Wl});var Uc={};B.r(Uc),B.d(Uc,{templates:()=>Gl});var Wc={};B.r(Wc),B.d(Wc,{templates:()=>Kl});var Gc={};B.r(Gc),B.d(Gc,{templates:()=>ql});var Kc={};B.r(Kc),B.d(Kc,{templates:()=>Jl});var qc={};B.r(qc),B.d(qc,{templates:()=>Yl});var Jc={};B.r(Jc),B.d(Jc,{templates:()=>Xl});var Yc={};B.r(Yc),B.d(Yc,{templates:()=>Zl});var Xc={};B.r(Xc),B.d(Xc,{templates:()=>Ql});var Zc={};B.r(Zc),B.d(Zc,{templates:()=>$l});var Qc={};B.r(Qc),B.d(Qc,{templates:()=>eu});var $c={};B.r($c),B.d($c,{templates:()=>tu});var el={};B.r(el),B.d(el,{templates:()=>nu});var tl={};B.r(tl),B.d(tl,{templates:()=>ru});var nl={};B.r(nl),B.d(nl,{templates:()=>iu});var rl={};B.r(rl),B.d(rl,{templates:()=>au});var il={};B.r(il),B.d(il,{templates:()=>ou});var al={};B.r(al),B.d(al,{templates:()=>su});var ol={};B.r(ol),B.d(ol,{templates:()=>cu});var sl={};B.r(sl),B.d(sl,{templates:()=>lu});var cl={};B.r(cl),B.d(cl,{templates:()=>uu});
5var ll=(e,t,n)=>{let r=e[0];for(let i=1;i<e.length;i++)r+=t[n?n[i-1]:i-1],r+=e[i];return r},ul=e=>{return typeof(t=e)!=`string`&&`strTag`in t?ll(e.strings,e.values):e;var t},dl=ul,fl=!1,pl=`lit-localize-status`,ml=class{constructor(e){this.__litLocalizeEventHandler=e=>{e.detail.status===`ready`&&this.host.requestUpdate()},this.host=e}hostConnected(){window.addEventListener(pl,this.__litLocalizeEventHandler)}hostDisconnected(){window.removeEventListener(pl,this.__litLocalizeEventHandler)}},hl=e=>e.addController(new ml(e)),gl=class{constructor(){this.settled=!1,this.promise=new Promise((e,t)=>{this._resolve=e,this._reject=t})}resolve(e){this.settled=!0,this._resolve(e)}reject(e){this.settled=!0,this._reject(e)}},_l=[];for(let e=0;e<256;e++)_l[e]=(e>>4&15).toString(16)+(15&e).toString(16);function vl(e,t){return(t?`h`:`s`)+function(e){let t=0,n=8997,r=0,i=33826,a=0,o=40164,s=0,c=52210;for(let l=0;l<e.length;l++)n^=e.charCodeAt(l),t=435*n,r=435*i,a=435*o,s=435*c,a+=n<<8,s+=i<<8,r+=t>>>16,n=65535&t,a+=r>>>16,i=65535&r,c=s+(a>>>16)&65535,o=65535&a;return _l[c>>8]+_l[255&c]+_l[o>>8]+_l[255&o]+_l[i>>8]+_l[255&i]+_l[n>>8]+_l[255&n]}(typeof e==`string`?e:e.join(`�`))}var yl=new WeakMap,bl=new Map;function xl(e,t,n){if(e){let r=e[n?.id??function(e){let t=typeof e==`string`?e:e.strings,n=bl.get(t);return n===void 0&&(n=vl(t,typeof e!=`string`&&!(`strTag`in e)),bl.set(t,n)),n}(t)];if(r){if(typeof r==`string`)return r;if(`strTag`in r)return ll(r.strings,t.values,r.values);{let e=yl.get(r);return e===void 0&&(e=r.values,yl.set(r,e)),{...r,values:e.map(e=>t.values[e])}}}}return ul(t)}function Sl(e){window.dispatchEvent(new CustomEvent(pl,{detail:e}))}var Cl,wl,Tl,El,Dl,Ol=``,kl=new gl;kl.resolve();var Al=0,jl=()=>Ol,Ml=e=>{if(e===(Cl??Ol))return kl.promise;if(!Tl||!El)throw Error(`Internal error`);if(!Tl.has(e))throw Error(`Invalid locale code`);Al++;let t=Al;return Cl=e,kl.settled&&(kl=new gl),Sl({status:`loading`,loadingLocale:e}),(e===wl?Promise.resolve({templates:void 0}):El(e)).then(n=>{Al===t&&(Ol=e,Cl=void 0,Dl=n.templates,Sl({status:`ready`,readyLocale:e}),kl.resolve())},n=>{Al===t&&(Sl({status:`error`,errorLocale:e,errorMessage:n.toString()}),kl.reject(n))}),kl.promise},Nl=`ar.bg.ca-ES.cs.da.de.el.es.fa.fr.he.hu.it.ja.km.ko.nl.no.pl.pt.ro.ru.sk.sr.sv.tr.uk.vi.zh-CN.zh-HK.zh-TW`.split(`.`),Pl={s182ab2d6c997515f:`AdaugÄ-l pe Ecranul Principal pentru o experienÈÄ extinsÄ Èi acces facil.`,s224cbcec014ef6b5:`ApasÄ Partajare în bara de navigare`,s37a9e8aec5713460:`Mai mult`,s386eca8362ff6155:`ApasÄ Mai mult dacÄ nu existÄ pictograma Partajare`,s4e1e10a6ca408245:`Atinge âAdaugÄ pe ecranul principalâ`,s6196153c4b0c1ea0:`InstalaÈi`,s633502f7cff4f847:`Deschide meniul browserului tÄu`,s681e399d63311fba:`AfiÈeazÄ galeria`,s7f0591f08e318eda:`ApasÄ Mai mult în meniul Partajare`,s8114bd55cae5a22b:`ApasÄ pe âAdaugÄ Ã®n Dockâ`,s922329d6f6213590:`AdaugÄ Ã®n Dock`,s9af56bf005b49c74:`DeruleazÄ Ã®n jos pânÄ la âAdaugÄ pe ecranul principalâ`,sa5ef80b4bb9b39f8:`Mai puÈin`,sba52286c21552a4e:`InstaleazÄ-l pe dispozitivul tÄu pentru o experienÈÄ completÄ Èi acces facil.`,sc16e00a7a8b2fde2:`Ãnapoi`,scdaf4bbff76674c8:`AdaugÄ pe Ecranul Principal`,se0e473adfda8066c:`Deschide în browserul principal`,se740f75b95a51807:`AdaugÄ-l în Dock pentru o experienÈÄ extinsÄ Èi acces facil.`,sfea652f6580ff086:`Acest site are funcÈionalitÄÈi de aplicaÈie.`},Fl={s182ab2d6c997515f:`أضÙ٠إÙÙ Ø´Ø§Ø´ØªÙ Ø§ÙØ±Ø¦ÙØ³ÙØ© ÙÙØØµÙ٠عÙ٠تجربة شاÙ
ÙØ© ÙÙØµÙ٠سÙÙ.`,s224cbcec014ef6b5:`اضغط عÙÙ Ù
Ø´Ø§Ø±ÙØ© ÙÙ Ø§ÙØ´Ø±ÙØ· Ø§ÙØ¹ÙÙÙ`,s37a9e8aec5713460:`اÙÙ
Ø²ÙØ¯`,s386eca8362ff6155:`اضغط عÙ٠اÙÙ
Ø²ÙØ¯ إذا ÙÙ
ÙÙÙ ÙÙØ§Ù رÙ
ز Ù
Ø´Ø§Ø±ÙØ©`,s4e1e10a6ca408245:`اÙÙØ± عÙÙ "Ø¥Ø¶Ø§ÙØ© Ø¥ÙÙ Ø§ÙØ´Ø§Ø´Ø© Ø§ÙØ±Ø¦ÙØ³ÙØ©"`,s6196153c4b0c1ea0:`ØªØ«Ø¨ÙØª`,s633502f7cff4f847:`Ø§ÙØªØ ÙØ§Ø¦Ù
Ø© اÙÙ
ØªØµÙØ`,s681e399d63311fba:`عرض Ø§ÙØµÙر`,s7f0591f08e318eda:`اضغط عÙ٠اÙÙ
Ø²ÙØ¯ ÙÙ ÙØ§Ø¦Ù
Ø© اÙÙ
Ø´Ø§Ø±ÙØ©`,s8114bd55cae5a22b:`اضغط عÙÙ Ø¥Ø¶Ø§ÙØ© Ø¥Ù٠اÙÙÙØ§Ø¦Ù
`,s922329d6f6213590:`Ø¥Ø¶Ø§ÙØ© Ø¥Ù٠اÙÙÙØ§Ø¦Ù
`,s9af56bf005b49c74:`Ø§Ø³ØØ¨ ÙØ£Ø³Ù٠إÙÙ "Ø¥Ø¶Ø§ÙØ© Ø¥ÙÙ Ø§ÙØ´Ø§Ø´Ø© Ø§ÙØ±Ø¦ÙØ³ÙØ©"`,sa5ef80b4bb9b39f8:`Ø£ÙÙ`,sba52286c21552a4e:`Ø«Ø¨ÙØªÙ عÙÙ Ø¬ÙØ§Ø²Ù ÙÙØØµÙ٠عÙ٠تجربة شاÙ
ÙØ© ÙÙØµÙ٠سÙÙ.`,sc16e00a7a8b2fde2:`Ø±Ø¬ÙØ¹`,scdaf4bbff76674c8:`Ø¥Ø¶Ø§ÙØ© Ø¥ÙÙ Ø§ÙØ´Ø§Ø´Ø© Ø§ÙØ±Ø¦ÙØ³ÙØ©`,se0e473adfda8066c:`Ø§ÙØªØ Ù٠اÙÙ
ØªØµÙØ Ø§ÙØ±Ø¦ÙسÙ`,se740f75b95a51807:`أضÙ٠إÙÙ Ø´Ø±ÙØ· اÙÙÙØ§Ø¦Ù
ÙÙØØµÙ٠عÙ٠تجربة شاÙ
ÙØ© ÙÙØµÙ٠سÙÙ.`,sfea652f6580ff086:`ÙØªÙ
تع ÙØ°Ø§ اÙÙ
ÙÙØ¹ Ø¨ÙØ¸Ø§Ø¦Ù Ø§ÙØªØ·Ø¨ÙÙ.`},Il={s182ab2d6c997515f:`ÐобавеÑе го кÑм наÑÐ°Ð»Ð½Ð¸Ñ Ñи екÑан за по-добÑо пÑеживÑване и леÑен доÑÑÑп.`,s224cbcec014ef6b5:`ÐаÑиÑнеÑе âСподелиâ в ленÑаÑа за навигаÑиÑ.`,s37a9e8aec5713460:`РазÑиÑи`,s386eca8362ff6155:`ÐаÑиÑнеÑе âÐÑеâ, ако нÑма икона âСподелиâ`,s4e1e10a6ca408245:`ÐаÑиÑнеÑе âÐобави кÑм наÑÐ°Ð»Ð½Ð¸Ñ ÐµÐºÑанâ`,s6196153c4b0c1ea0:`ÐнÑÑалиÑайÑе`,s633502f7cff4f847:`ÐÑвоÑеÑе менÑÑо на бÑаÑзÑÑа Ñи`,s681e399d63311fba:`Ðокажи галеÑиÑ`,s7f0591f08e318eda:`ÐаÑиÑнеÑе âÐÑеâ в менÑÑо âСподелиâ`,s8114bd55cae5a22b:`ÐаÑиÑнеÑе âÐобави кÑм Dockâ`,s922329d6f6213590:`Ðобави кÑм Dock`,s9af56bf005b49c74:`ÐÑевÑÑÑеÑе Ð½Ð°Ð´Ð¾Ð»Ñ Ð´Ð¾ âÐобави кÑм наÑÐ°Ð»Ð½Ð¸Ñ ÐµÐºÑанâ`,sa5ef80b4bb9b39f8:`Свий`,sba52286c21552a4e:`ÐнÑÑалиÑайÑе го на ваÑеÑо ÑÑÑÑойÑÑво за по-пÑлноÑенно изживÑване и по-леÑен доÑÑÑп.`,sc16e00a7a8b2fde2:`Ðазад`,scdaf4bbff76674c8:`Ðобави кÑм наÑÐ°Ð»Ð½Ð¸Ñ ÐµÐºÑан`,se0e473adfda8066c:`ÐÑвоÑеÑе в оÑÐ½Ð¾Ð²Ð½Ð¸Ñ Ñи бÑаÑзÑÑ`,se740f75b95a51807:`ÐобавеÑе го кÑм Dock за по-пÑлноÑенно пÑеживÑване и по-леÑен доÑÑÑп.`,sfea652f6580ff086:`Този ÑÐ°Ð¹Ñ ÑабоÑи каÑо пÑиложение.`}
5,Ll={s182ab2d6c997515f:`ÐобавÑÑе его на ÑкÑан «Ðомой» â ÑÑо оÑкÑÐ¾ÐµÑ Ð´Ð¾Ð¿Ð¾Ð»Ð½Ð¸ÑелÑнÑе возможноÑÑи и ÑÐ´ÐµÐ»Ð°ÐµÑ Ð¸ÑполÑзование Ñдобнее.`,s224cbcec014ef6b5:`ÐажмиÑе "ÐоделиÑÑÑÑ"`,s37a9e8aec5713460:`ÐодÑобнее`,s386eca8362ff6155:`ÐажмиÑе "ÐÑе", еÑли Ð½ÐµÑ Ð·Ð½Ð°Ñка "ÐоделиÑÑÑÑ"`,s4e1e10a6ca408245:`ÐажмиÑе "ÐобавиÑÑ Ð½Ð° главнÑй ÑкÑан"`,s6196153c4b0c1ea0:`УÑÑановиÑÑ`,s633502f7cff4f847:`ÐÑкÑойÑе Ð¼ÐµÐ½Ñ Ð²Ð°Ñего бÑаÑзеÑа`,s681e399d63311fba:`ÐоказаÑÑ Ð³Ð°Ð»ÐµÑеÑ`,s7f0591f08e318eda:`ÐажмиÑе "ÐÑе" в Ð¼ÐµÐ½Ñ "ÐоделиÑÑÑÑ"`,s8114bd55cae5a22b:`ÐажмиÑе "ÐобавиÑÑ Ð² Dock"`,s922329d6f6213590:`ÐобавиÑÑ Ð² Dock`,s9af56bf005b49c74:`ÐÑокÑÑÑиÑе вниз до "Ðа ÑкÑан «Ðомой»"`,sa5ef80b4bb9b39f8:`СвеÑнÑÑÑ`,sba52286c21552a4e:`УÑÑановиÑе ÑÑо на ваÑе ÑÑÑÑойÑÑво, ÑÑÐ¾Ð±Ñ Ð¿Ð¾Ð»ÑÑиÑÑ Ð´Ð¾Ð¿Ð¾Ð»Ð½Ð¸ÑелÑнÑе возможноÑÑи и ÑдобÑÑво иÑполÑзованиÑ.`,sc16e00a7a8b2fde2:`Ðазад`,scdaf4bbff76674c8:`Ðа ÑкÑан «Ðомой»`,se0e473adfda8066c:`ÐÑкÑойÑе в ваÑем оÑновном бÑаÑзеÑе`,se740f75b95a51807:`ÐобавÑÑе его в Dock â ÑÑо оÑкÑÐ¾ÐµÑ Ð´Ð¾Ð¿Ð¾Ð»Ð½Ð¸ÑелÑнÑе возможноÑÑи и ÑÐ´ÐµÐ»Ð°ÐµÑ Ð¸ÑполÑзование Ñдобнее.`,sfea652f6580ff086:`ÐÑÐ¾Ñ Ð²ÐµÐ±-ÑÐ°Ð¹Ñ Ð¸Ð¼ÐµÐµÑ ÑÑнкÑионал пÑиложениÑ.`},Rl={s182ab2d6c997515f:`Daha iyi bir deneyim ve kolay eriÅim için Ana Ekranınıza ekleyin.`,s224cbcec014ef6b5:`Gezinme çubuÄunda PaylaÅ'a basın`,s37a9e8aec5713460:`Daha Fazla`,s386eca8362ff6155:`PaylaÅ simgesi yoksa Daha Fazla'ya basın`,s4e1e10a6ca408245:`"Ana Ekrana Ekle"ye dokunun`,s6196153c4b0c1ea0:`Yükle`,s633502f7cff4f847:`Tarayıcı menünüzü açın`,s681e399d63311fba:`Galeriyi Göster`,s7f0591f08e318eda:`PaylaÅ menüsünde Daha Fazla'ya basın`,s8114bd55cae5a22b:`Dockâa ekleye basın`,s922329d6f6213590:`Dockâa Ekle`,s9af56bf005b49c74:`"Ana Ekrana Ekle" seçeneÄine kadar aÅaÄı kaydırın`,sa5ef80b4bb9b39f8:`Küçült`,sba52286c21552a4e:`Daha iyi bir deneyim ve kolay eriÅim için cihazınıza yükleyin.`,sc16e00a7a8b2fde2:`Geri`,scdaf4bbff76674c8:`Ana Ekrana Ekle`,se0e473adfda8066c:`Ana tarayıcınızda açın`,se740f75b95a51807:`Daha iyi bir deneyim ve kolay eriÅim için Dockâa ekleyin.`,sfea652f6580ff086:`Bu site uygulama iÅlevselliÄine sahiptir.`},zl={s182ab2d6c997515f:`Fügen Sie es zu Ihrem Startbildschirm hinzu, um eine umfassende Erfahrung und einen leichten Zugriff zu erhalten.`,s224cbcec014ef6b5:`Drücken Sie auf Teilen in der Navigationsleiste`,s37a9e8aec5713460:`Mehr`,s386eca8362ff6155:`Drücken Sie auf Mehr, wenn kein Teilen-Symbol vorhanden ist`,s4e1e10a6ca408245:`Tippen Sie auf "Zum Startbildschirm hinzufügen"`,s6196153c4b0c1ea0:`Installieren`,s633502f7cff4f847:`Ãffnen Sie das Menü Ihres Browsers`,s681e399d63311fba:`Galerie anzeigen`,s7f0591f08e318eda:`Drücken Sie auf Mehr im Teilen-Menü`,s8114bd55cae5a22b:`Drücken Sie auf Zum Dock hinzufügen`,s922329d6f6213590:`Zum Dock hinzufügen`,s9af56bf005b49c74:`Scrollen Sie nach unten zu "Zum Startbildschirm hinzufügen"`,sa5ef80b4bb9b39f8:`Weniger`,sba52286c21552a4e:`Installieren Sie es auf Ihrem Gerät für eine umfassende Erfahrung und einen leichten Zugriff.`,sc16e00a7a8b2fde2:`Zurück`,scdaf4bbff76674c8:`Hinzufügen zum Startbildschirm`,se0e473adfda8066c:`Ãffnen Sie es in Ihrem Hauptbrowser`,se740f75b95a51807:`Fügen Sie es zu Ihrem Dock hinzu, um eine umfassende Erfahrung und einen leichten Zugriff zu erhalten.`,sfea652f6580ff086:`Diese Website verfügt über App-Funktionalität.`},Bl={s182ab2d6c997515f:`Añádelo a tu pantalla de inicio para una experiencia amplia y acceso fácil.`,s224cbcec014ef6b5:`Presionar Compartir en la barra de direcciones`,s37a9e8aec5713460:`Más`,s386eca8362ff6155:`Presiona Más si no hay icono de Compartir`,s4e1e10a6ca408245:`Toca "Añadir a pantalla de inicio"`,s6196153c4b0c1ea0:`Instalar`,s633502f7cff4f847:`Abre el menú de tu navegador`,s681e399d63311fba:`Mostrar galerÃa`,s7f0591f08e318eda:`Presiona Más en el menú de Compartir`,s8114bd55cae5a22b:`Presionar Añ
5adir al Dock`,s922329d6f6213590:`Añadir al Dock`,s9af56bf005b49c74:`Desplázate hacia abajo hasta "Añadir a pantalla de inicio"`,sa5ef80b4bb9b39f8:`Menos`,sba52286c21552a4e:`Instálalo en tu dispositivo para una experiencia amplia y acceso fácil.`,sc16e00a7a8b2fde2:`Atrás`,scdaf4bbff76674c8:`Añadir a pantalla de inicio`,se0e473adfda8066c:`Abre en tu navegador principal`,se740f75b95a51807:`Añádelo a tu Dock para una experiencia amplia y acceso fácil.`,sfea652f6580ff086:`Este sitio tiene funcionalidad de aplicación.`},Vl={s182ab2d6c997515f:`Zet het op je beginscherm voor een uitgebreide ervaring en gemakkelijke toegang.`,s224cbcec014ef6b5:`Druk op delen in de navigatiebalk`,s37a9e8aec5713460:`Meer`,s386eca8362ff6155:`Druk op Meer als er geen Deel-icoon is`,s4e1e10a6ca408245:`Tik op "Zet op beginscherm"`,s6196153c4b0c1ea0:`Installeren`,s633502f7cff4f847:`Open je browsermenu`,s681e399d63311fba:`Galerij tonen`,s7f0591f08e318eda:`Druk op Meer in het Deel-menu`,s8114bd55cae5a22b:`Druk op Toevoegen aan Dock`,s922329d6f6213590:`Toevoegen aan Dock`,s9af56bf005b49c74:`Scrol omlaag en klik op "Zet op beginscherm"`,sa5ef80b4bb9b39f8:`Minder`,sba52286c21552a4e:`Installeer het op je apparaat voor een uitgebreide ervaring en gemakkelijke toegang.`,sc16e00a7a8b2fde2:`Terug`,scdaf4bbff76674c8:`Zet op beginscherm`,se0e473adfda8066c:`Open in je hoofdbrowser`,se740f75b95a51807:`Voeg het toe aan je Dock voor een uitgebreide ervaring en makkelijke toegang.`,sfea652f6580ff086:`Deze site heeft app-functionaliteit.`},Hl={s182ab2d6c997515f:`Î ÏοÏθÎÏÏε Ïο ÏÏην ÎθÏνη ÎÏεÏηÏÎ¯Î±Ï Î³Î¹Î± εκÏεÏαμÎνη εμÏειÏία και εÏκολη ÏÏÏÏβαÏη.`,s224cbcec014ef6b5:`ΠαÏήÏÏε "Îοινή ÏÏήÏη" ÏÏη γÏαμμή ÏλοήγηÏηÏ`,s37a9e8aec5713460:`ΠεÏιÏÏÏÏεÏα`,s386eca8362ff6155:`ΠαÏήÏÏε ΠεÏιÏÏÏÏεÏα αν δεν Ï
ÏάÏÏει εικονίδιο ÎοινοÏοίηÏηÏ`,s4e1e10a6ca408245:`ΠαÏήÏÏε "Î ÏοÏθήκη ÏÏην οθÏνη ÎÏεÏηÏίαÏ"`,s6196153c4b0c1ea0:`ÎγκαÏάÏÏαÏη`,s633502f7cff4f847:`ÎνοίξÏε Ïο Î¼ÎµÎ½Î¿Ï ÏοÏ
ÏεÏιηγηÏή ÏαÏ`,s681e399d63311fba:`ÎμÏάνιÏη ÏÏ
λλογήÏ`,s7f0591f08e318eda:`ΠαÏήÏÏε ΠεÏιÏÏÏÏεÏα ÏÏο Î¼ÎµÎ½Î¿Ï ÎοινοÏοίηÏηÏ`,s8114bd55cae5a22b:`ΠαÏήÏÏε "Î ÏοÏθήκη ÏÏο Dock"`,s922329d6f6213590:`Î ÏοÏθήκη ÏÏο Dock`,s9af56bf005b49c74:`ÎάνÏε κÏλιÏη ÏÏÎ¿Ï Ïα κάÏÏ ÏÏο "Î ÏοÏθήκη ÏÏην οθÏνη ÎÏεÏηÏίαÏ"`,sa5ef80b4bb9b39f8:`ÎιγÏÏεÏα`,sba52286c21552a4e:`ÎγκαÏαÏÏήÏÏε Ïο ÏÏη ÏÏ
ÏκεÏ
ή ÏÎ±Ï Î³Î¹Î± εκÏεÏαμÎνη εμÏειÏία και εÏκολη ÏÏÏÏβαÏη.`,sc16e00a7a8b2fde2:`ΠίÏÏ`,scdaf4bbff76674c8:`Î ÏοÏθήκη ÏÏην οθÏνη ÎÏεÏηÏίαÏ`,se0e473adfda8066c:`ÎνοίξÏε ÏÏον κÏÏιο ÏεÏιηγηÏή ÏαÏ`,se740f75b95a51807:`Î ÏοÏθÎÏÏε Ïο ÏÏο Dock για εκÏεÏαμÎνη εμÏειÏία και εÏκολη ÏÏÏÏβαÏη.`,sfea652f6580ff086:`ÎÏ
ÏÏÏ Î¿ ιÏÏÏÏοÏÎ¿Ï ÎÏει λειÏοÏ
ÏγικÏÏηÏα εÏαÏμογήÏ.`},Ul={s182ab2d6c997515f:`Ajoutez-le à votre écran d'accueil pour une expérience étendue et un accès facile.`,s224cbcec014ef6b5:`Appuyez sur Partager dans la barre de navigation`,s37a9e8aec5713460:`Plus`,s386eca8362ff6155:`Appuyez sur Plus s'il n'y a pas d'icône Partager`,s4e1e10a6ca408245:`Touchez "Ajouter à l'écran d'accueil"`,s6196153c4b0c1ea0:`Installer`,s633502f7cff4f847:`Ouvrez le menu de votre navigateur`,s681e399d63311fba:`Afficher la galerie`,s7f0591f08e318eda:`Appuyez sur Plus dans le menu Partager`,s8114bd55cae5a22b:`Appuyez sur Ajouter au Dock`,s922329d6f6213590:`Ajouter au Dock`,s9af56bf005b49c74:`Faites défiler vers le bas jusqu'à "Ajouter à l'écran d'accueil"`,sa5ef80b4bb9b39f8:`Moins`,sba52286c21552a4e:`Installez-le sur votre appareil pour une expérience complète et un accès facile.`,sc16e00a7a8b2fde2:`Retour`,scdaf4bbff76674c8:`Ajouter à l'écran d'accueil`,se0e473adfda8066c:`Ouvrir dans votre navigateur principal`,se740f75b95a51807:`Ajoutez-le à votre Dock pour une expérience étendue et un accès facile.`,sfea652f6580ff086:`Ce site possède des fonctionnalités d'application.`},Wl={s182ab2d6c997515f:`ÐодаÑÑе га на Home Screen за ÑиÑоке могÑÑноÑÑи и лак пÑиÑÑÑп.`,s224cbcec014ef6b5:`ÐÑиÑиÑниÑе Share Ñ Ð½Ð°Ð²Ð¸Ð³Ð°ÑÐ¸Ð¾Ð½Ð¾Ñ ÑÑаÑи`,s37a9e8aec5713460:`ÐиÑе`,s386eca8362ff6155:`ÐÑиÑиÑниÑе ÐиÑе ако нема иконе за деÑеÑе`,s4e1e10a6ca408245:`ÐодиÑниÑе "Add to Home Screen"`,s6196153c4b0c1ea0:`ÐнÑÑалиÑаÑ`,s633502f7cff4f847:`ÐÑвоÑиÑе мени ваÑег пÑегледаÑа`,s681e399d63311fba:`ÐÑикажи галеÑиÑÑ`,s7f0591f08e318eda:`ÐÑиÑиÑниÑе ÐиÑе Ñ Share мениÑÑ`,s8114bd55cae5a22b:`3) ÐÑиÑиÑниÑе Add to Dock`,s9af56bf005b49c74:`ÐомеÑиÑе Ñе надоле до "Add to Home Screen"`,sa5ef80b4bb9b39f8:`ÐаÑе`,sba52286c21552a4e:`ÐнÑÑалиÑаÑÑе га на ваÑем ÑÑеÑаÑÑ Ð·Ð° ÑиÑоке могÑÑноÑÑи и лак пÑиÑÑÑп.`,sc16e00a7a8b2fde2:`Ðазад`,se0e473adfda8066c:`ÐÑвоÑиÑе Ñ Ð²Ð°Ñем главном пÑегледаÑÑ`,se740f75b95a51807:`ÐодаÑÑе га Ñ Ð²Ð°ÑÑ Dock за ÑиÑоке могÑÑноÑÑи и лак пÑиÑÑÑп.`,sfea652f6580ff086:`ÐÐ²Ð°Ñ ÑаÑÑ Ð¸Ð¼Ð° ÑÑнкÑионалноÑÑ Ð°Ð¿Ð»Ð¸ÐºÐ°ÑиÑе.`,s922329d6f6213590:`Add to Dock`,scdaf4bbff76674c8:`Add to Home Screen`},Gl={s182ab2d6c997515f:`Dodaj do swojego Ekranu GÅównego, aby uzyskaÄ bogate doÅwiadczenie i Åatwy dostÄp.`,s224cbcec014ef6b5:`Wybierz "UdostÄpnij"`,s37a9e8aec5713460:`WiÄcej`,s386eca8362ff6155:`NaciÅnij WiÄcej, jeÅli brak ikony UdostÄpnij`,s4e1e10a6ca408245:`NaciÅnij "Dodaj do Ekranu GÅównego"`,s6196153c4b0c1ea0:`Zainstaluj`,s633502f7cff4f847:`Otwórz menu przeglÄ
darki`,s681e399d63311fba:`Pokaż galeriÄ`,s7f0591f08e318eda:`NaciÅnij WiÄcej w menu UdostÄpnij`,s8114bd55cae5a22b:`Wybierz "Dodaj do Docka"`,
5s922329d6f6213590:`Dodaj do Docka`,s9af56bf005b49c74:`PrzewiÅ w dóŠdo opcji "Dodaj do Ekranu GÅównego"`,sa5ef80b4bb9b39f8:`Mniej`,sba52286c21552a4e:`Zainstaluj na swoim urzÄ
dzeniu, aby uzyskaÄ bogate doÅwiadczenie i Åatwy dostÄp.`,sc16e00a7a8b2fde2:`Wstecz`,scdaf4bbff76674c8:`Dodaj do Ekranu GÅównego`,se0e473adfda8066c:`Otwórz w swojej gÅównej przeglÄ
darce`,se740f75b95a51807:`Dodaj do swojego Docka, aby uzyskaÄ bogate doÅwiadczenie i Åatwy dostÄp.`,sfea652f6580ff086:`Ta strona posiada funkcje aplikacji.`},Kl={s182ab2d6c997515f:`ÐодайÑе на ÐомаÑнÑй екÑан Ð´Ð»Ñ Ð·ÑÑÑного доÑÑÑÐ¿Ñ Ñа ÑиÑÑиÑ
можливоÑÑей.`,s224cbcec014ef6b5:`ÐаÑиÑнÑÑи «ÐодÑлиÑиÑÑ»`,s37a9e8aec5713460:`ÐеÑалÑнÑÑе`,s386eca8362ff6155:`ÐаÑиÑнÑÑÑ Â«ÐÑлÑÑе», ÑкÑо Ð½ÐµÐ¼Ð°Ñ Ð·Ð½Ð°Ñка «ÐодÑлиÑиÑÑ»`,s4e1e10a6ca408245:`ÐаÑиÑнÑÑи «Ðа ÐоÑаÑковий ÑкÑан»`,s6196153c4b0c1ea0:`ÐÑÑановиÑи`,s633502f7cff4f847:`ÐÑдкÑиÑи Ð¼ÐµÐ½Ñ Ð±ÑаÑзеÑа`,s681e399d63311fba:`ÐоказаÑи галеÑеÑ`,s7f0591f08e318eda:`ÐаÑиÑнÑÑÑ Â«ÐÑлÑÑе» в Ð¼ÐµÐ½Ñ Â«ÐодÑлиÑиÑÑ»`,s8114bd55cae5a22b:`ÐаÑиÑнÑÑи «ÐодаÑи на Dock»`,s922329d6f6213590:`ÐодаÑи на Dock`,s9af56bf005b49c74:`ÐÑокÑÑÑÑÑÑ Ð²Ð½Ð¸Ð· до «Ðа ÐоÑаÑковий ÑкÑан»`,sa5ef80b4bb9b39f8:`ÐгоÑнÑÑи`,sba52286c21552a4e:`ÐÑÑановÑÑÑ Ð½Ð° Ð²Ð°Ñ Ð¿ÑиÑÑÑÑй Ð´Ð»Ñ Ð·ÑÑÑного доÑÑÑÐ¿Ñ Ñа ÑиÑÑиÑ
можливоÑÑей.`,sc16e00a7a8b2fde2:`Ðазад`,scdaf4bbff76674c8:`Ðа ÐоÑаÑковий ÑкÑан`,se0e473adfda8066c:`ÐÑдкÑиÑи Ñ Ð²Ð°ÑÐ¾Ð¼Ñ Ð¾ÑÐ½Ð¾Ð²Ð½Ð¾Ð¼Ñ Ð±ÑаÑзеÑÑ`,se740f75b95a51807:`ÐодайÑе на Ð¿Ð°Ð½ÐµÐ»Ñ Dock Ð´Ð»Ñ Ð·ÑÑÑного доÑÑÑÐ¿Ñ Ñа ÑиÑÑиÑ
можливоÑÑей.`,sfea652f6580ff086:`Цей ÑÐ°Ð¹Ñ Ð¼Ð°Ñ ÑÑнкÑÑÑ Ð´Ð¾Ð´Ð°ÑкÑ.`},ql={s182ab2d6c997515f:`å°å
¶å å
¥ä¸»å±å¹ï¼ä»¥ç²å¾æ´è±å¯çé«é©å便æ·è¨ªåã`,s224cbcec014ef6b5:`黿å表ä¸çå享æé`,s37a9e8aec5713460:`詳細è³è¨`,s386eca8362ff6155:`å¦ææ²æåäº«åæ¨ï¼è«é»ææ´å¤`,s4e1e10a6ca408245:`é»æãæ·»å å°ä¸»å±å¹ã`,s6196153c4b0c1ea0:`å®è£`,s633502f7cff4f847:`æéæ¨çç覽å¨èå®`,s681e399d63311fba:`顯示å庫`,s7f0591f08e318eda:`å¨å享èå®ä¸é»ææ´å¤`,s8114bd55cae5a22b:`é»é¸æ·»å å°Dockæ¬`,s922329d6f6213590:`æ·»å å°Dockæ¬`,s9af56bf005b49c74:`å䏿»¾åå°ãæ·»å å°ä¸»å±å¹ã`,sa5ef80b4bb9b39f8:`ç°¡çè³è¨`,sba52286c21552a4e:`卿¨çè£ç½®ä¸å®è£å®ï¼ä»¥ç²å¾æ´è±å¯çé«é©å便æ·è¨ªåã`,sc16e00a7a8b2fde2:`è¿å`,scdaf4bbff76674c8:`å°Appå å
¥ä¸»ç«é¢`,se0e473adfda8066c:`卿¨ç主è¦ç覽å¨ä¸æé`,se740f75b95a51807:`å°å
¶å å
¥ä½ çDockæ¬ï¼ä»¥ç²å¾æ´è±å¯çé«é©å便æ·è¨ªåã`,sfea652f6580ff086:`æ¤ç¶²ç«å
·ææç¨ç¨å¼åè½ã`},Jl={s182ab2d6c997515f:`å°å
¶æ·»å å°ä¸»å±å¹ï¼ä»¥äº«åæ´ä¸°å¯çä½éªå¹¶ä¾¿äºè®¿é®ã`,s224cbcec014ef6b5:`ç¹å»å¯¼èªæ ä¸çâå享âæé®`,s37a9e8aec5713460:`æ´å¤`,s386eca8362ff6155:`å¦ææ²¡æåäº«å¾æ ï¼è¯·ç¹å»æ´å¤`,s4e1e10a6ca408245:`è½»è§¦âæ·»å å°ä¸»å±å¹â`,s6196153c4b0c1ea0:`å®è£
`,s633502f7cff4f847:`æå¼æµè§å¨èå`,s681e399d63311fba:`æ¾ç¤ºå¾åº`,s7f0591f08e318eda:`å¨å享èåä¸ç¹å»æ´å¤`,s8114bd55cae5a22b:`ç¹å»âæ·»å å°ç¨åºåâ`,s922329d6f6213590:`æ·»å å°ç¨åºå`,s9af56bf005b49c74:`å䏿»å¨è³âæ·»å å°ä¸»å±å¹â`,sa5ef80b4bb9b39f8:`æ¶èµ·`,sba52286c21552a4e:`卿¨ç设å¤ä¸å®è£
ï¼ä»¥äº«åæ´ä¸°å¯çä½éªå¹¶ä¾¿äºè®¿é®ã`,sc16e00a7a8b2fde2:`è¿å`,scdaf4bbff76674c8:`æ·»å å°ä¸»å±å¹`,se0e473adfda8066c:`卿¨ç主æµè§å¨ä¸æå¼`,se740f75b95a51807:`å°å
¶æ·»å å°æ¨çç¨åºåï¼ä»¥äº«åæ´å
¨é¢çä½éªå¹¶ä¾¿äºè®¿é®ã`,sfea652f6580ff086:`æ¤ç½ç«å
·å¤ App åè½ç¹æ§ã`},Yl={s182ab2d6c997515f:`å°å
¶å å
¥ä¸»ç«é¢ï¼ä»¥ç²å¾æ´å®æ´çé«é©ä¸¦æ¹ä¾¿ååã`,s224cbcec014ef6b5:`黿å°è¦½åä¸çãå享ãæé`,s37a9e8aec5713460:`æ´å¤`,s386eca8362ff6155:`è¥æªçè¦ãå享ãå示ï¼è«é»æãæ´å¤ã`,s4e1e10a6ca408245:`è¼è§¸ãå å
¥ä¸»ç«é¢ã`,s6196153c4b0c1ea0:`å®è£`,s633502f7cff4f847:`éåç覽å¨é¸å®`,s681e399d63311fba:`顯示ç¸ç°¿`,s7f0591f08e318eda:`å¨å享é¸å®ä¸é»ææ´å¤`,s8114bd55cae5a22b:`黿ãå å
¥ Dockã`,s922329d6f6213590:`å å
¥ Dock`,s9af56bf005b49c74:`å䏿²åè³ãå å
¥ä¸»ç«é¢ã`,sa5ef80b4bb9b39f8:`æ¶èµ·`,sba52286c21552a4e:`卿¨çè£ç½®ä¸å®è£ï¼ä»¥ç²å¾æ´å®æ´çé«é©ä¸¦æ¹ä¾¿ååã`,sc16e00a7a8b2fde2:`è¿å`,scdaf4bbff76674c8:`å å
¥ä¸»ç«é¢`,se0e473adfda8066c:`å¨ä¸»ç覽å¨ä¸éå`,se740f75b95a51807:`å°å
¶å å
¥ Dockï¼ä»¥ç²å¾æ´å®æ´çé«é©ä¸¦æ¹ä¾¿é¨æååã`,sfea652f6580ff086:`æ¤ç¶²ç«å
·åæç¨ç¨å¼åè½ã`},Xl={s182ab2d6c997515f:`Aggiungilo alla schermata principale per un'esperienza più completa e un accesso facile.`,s224cbcec014ef6b5:`Premi Condividi nella barra di navigazione`,s37a9e8aec5713460:`P
5iù`,s386eca8362ff6155:`Premi Altro se non c'è l'icona Condividi`,s4e1e10a6ca408245:`Tocca "Aggiungi alla schermata principale"`,s6196153c4b0c1ea0:`Installa`,s633502f7cff4f847:`Apri il menu del tuo browser`,s681e399d63311fba:`Mostra galleria`,s7f0591f08e318eda:`Premi Altro nel menu Condividi`,s8114bd55cae5a22b:`Premi Aggiungi al Dock`,s922329d6f6213590:`Aggiungi al Dock`,s9af56bf005b49c74:`Scorri verso il basso fino a "Aggiungi alla schermata principale"`,sa5ef80b4bb9b39f8:`Meno`,sba52286c21552a4e:`Installalo sul tuo dispositivo per un'esperienza più completa e un accesso facile.`,sc16e00a7a8b2fde2:`Indietro`,scdaf4bbff76674c8:`Aggiungi alla schermata principale`,se0e473adfda8066c:`Apri nel tuo browser principale`,se740f75b95a51807:`Aggiungilo al Dock per un'esperienza più completa e un accesso facile.`,sfea652f6580ff086:`Questo sito ha funzionalità di app.`},Zl={s182ab2d6c997515f:`PÅidejte jej na plochu pro rozÅ¡ÃÅené využità a snadný pÅÃstup.`,s224cbcec014ef6b5:`StisknÄte tlaÄÃtko SdÃlet na navigaÄnÃm panelu`,s37a9e8aec5713460:`VÃce`,s386eca8362ff6155:`StisknÄte VÃce, pokud nenà ikona SdÃlet`,s4e1e10a6ca408245:`KlepnÄte na "PÅidat na plochu"`,s6196153c4b0c1ea0:`Nainstalovat`,s633502f7cff4f847:`OtevÅete nabÃdku prohlÞeÄe`,s681e399d63311fba:`Zobrazit galerii`,s7f0591f08e318eda:`StisknÄte VÃce v menu SdÃlet`,s8114bd55cae5a22b:`StisknÄte PÅidat do Docku`,s922329d6f6213590:`PÅidat do Docku`,s9af56bf005b49c74:`ProjdÄte dolů k "PÅidat na plochu"`,sa5ef80b4bb9b39f8:`MénÄ`,sba52286c21552a4e:`Nainstalujte si jej na své zaÅÃzenà pro rozÅ¡ÃÅené využità a snadný pÅÃstup.`,sc16e00a7a8b2fde2:`ZpÄt`,scdaf4bbff76674c8:`PÅidat na plochu`,se0e473adfda8066c:`OtevÅete v hlavnÃm prohlÞeÄi`,se740f75b95a51807:`PÅidejte jej do svého Docku pro rozÅ¡ÃÅené využità a snadný pÅÃstup.`,sfea652f6580ff086:`Tento web má funkce aplikace.`},Ql={s182ab2d6c997515f:`Legg den til pÃ¥ Hjem-skjermen din for Ã¥ fÃ¥ en bedre brukeropplevelse og raskere tilgang.`,s224cbcec014ef6b5:`Trykk pÃ¥ Del-knappen i navigasjonslinjen`,s37a9e8aec5713460:`Mer`,s386eca8362ff6155:`Trykk pÃ¥ Mer hvis det ikke er noe delingsikon`,s4e1e10a6ca408245:`Trykk pÃ¥ "Legg til pÃ¥ Hjem-skjerm"`,s6196153c4b0c1ea0:`Installer`,s633502f7cff4f847:`Ã
pne menyen i nettleseren din`,s681e399d63311fba:`Vis galleri`,s7f0591f08e318eda:`Trykk pÃ¥ Mer i delingsmenyen`,s8114bd55cae5a22b:`Velg Legg til i Dock`,s922329d6f6213590:`Legg til i Dock`,s9af56bf005b49c74:`Rull ned til «Legg til pÃ¥ Hjem-skjerm»`,sa5ef80b4bb9b39f8:`Mindre`,sba52286c21552a4e:`Installer den pÃ¥ enheten din for Ã¥ fÃ¥ en bedre brukeropplevelse og raskere tilgang.`,sc16e00a7a8b2fde2:`Tilbake`,scdaf4bbff76674c8:`Legg til pÃ¥ Hjem-skjerm`,se0e473adfda8066c:`Ã
pne i hovednettleseren din`,se740f75b95a51807:`Legg den til i Docken din for Ã¥ fÃ¥ en bedre brukeropplevelse og raskere tilgang.`,sfea652f6580ff086:`Denne siden har app-funksjonalitet.`},$l={s182ab2d6c997515f:`Adicione à Tela de InÃcio para uma melhor experiência e mais fácil acesso.`,s224cbcec014ef6b5:`Pressione Compartilhar na barra de endereço`,s37a9e8aec5713460:`Mais`,s386eca8362ff6155:`Pressione Mais se não houver Ãcone de Compartilhar`,s4e1e10a6ca408245:`Toque em "Adicionar à Tela de InÃcio"`,s6196153c4b0c1ea0:`Instalar`,s633502f7cff4f847:`Abra o menu do seu navegador`,s681e399d63311fba:`Mostrar Galeria`,s7f0591f08e318eda:`Pressione Mais no menu de Compartilhar`,s8114bd55cae5a22b:`Pressione Adicionar ao Dock`,s922329d6f6213590:`Adicionar ao Dock`,s9af56bf005b49c74:`Role para baixo até "Adicionar à Tela de InÃcio"`,sa5ef80b4bb9b39f8:`Menos`,sba52286c21552a4e:`Instale no dispositivo para uma melhor experiência e mais fácil acesso.`,sc16e00a7a8b2fde2:`Voltar`,scdaf4bbff76674c8:`Adicionar à Tela de InÃcio`,se0e473adfda8066c:`Abra no seu navegador principal`,se740f75b95a51807:`Adicione ao Dock para uma melhor experiência e mais fácil acesso.`,sfea652f6580ff086:`Este site possui funcionalidade de aplicativo.`},eu={s182ab2d6c997515f:`ãã¼ã ç»é¢ã«è¿½å ãã¦ãå¹
åºãä½é¨ã¨ç°¡åãªã¢ã¯ã»ã¹ãå®ç¾ãã¦ãã ããã`,s224cbcec014ef6b5:`ããã²ã¼ã·ã§ã³ãã¼ã§å
±æãæ¼ã`,s37a9e8aec5713460:`å±é`,s386eca8362ff6155:`å
±æã¢ã¤ã³ã³ããªãå ´åã¯ã詳細ããæ¼ã`,s4e1e10a6ca408245:`ããã¼ã ç»é¢ã«è¿½å ããã¿ãããã`,s6196153c4b0c1ea0:`ã¤ã³ã¹ãã¼ã«`,s633502f7cff4f847:`ãã©ã¦ã¶ã¡ãã¥ã¼ãéã`,s681e399d63311fba:`ã®ã£ã©ãªã¼ã表示`,s7f0591f08e318eda:`å
±æã¡ãã¥ã¼ã§ã詳細ããæ¼ã`,s8114bd55cae5a22b:`ãDockã«è¿½å ããæ¼ã`,s922329d6f6213590:`Dockã«è¿½å `,s9af56bf005b49c74:`ããã¼ã ç»é¢ã«è¿½å ãã¾ã
5§ã¹ã¯ãã¼ã«ãã`,sa5ef80b4bb9b39f8:`æãããã`,sba52286c21552a4e:`ããã¤ã¹ã«ã¤ã³ã¹ãã¼ã«ãããã¨ã§ãããå
å®ããä½é¨ã¨ç°¡åãªã¢ã¯ã»ã¹ãå®ç¾ã§ãã¾ãã`,sc16e00a7a8b2fde2:`æ»ã`,scdaf4bbff76674c8:`ãã¼ã ç»é¢ã«è¿½å `,se0e473adfda8066c:`ã¡ã¤ã³ãã©ã¦ã¶ã§éã`,se740f75b95a51807:`ããã¯ã«è¿½å ãã¦ãå¹
åºãä½é¨ã¨ç°¡åãªã¢ã¯ã»ã¹ãå®ç¾ãã¦ãã ããã`,sfea652f6580ff086:`ãã®ãµã¤ãã¯ã¢ããªæ©è½ãããã¾ãã`},tu={s182ab2d6c997515f:`Lägg till pÃ¥ hemskärmen för att fÃ¥ en bättre användarupplevelse och enklare Ã¥tkomst.`,s224cbcec014ef6b5:`Tryck pÃ¥ Dela-knappen i verktygsfältet`,s37a9e8aec5713460:`Mer`,s386eca8362ff6155:`Tryck pÃ¥ Mer om det inte finns nÃ¥gon delningsikon`,s4e1e10a6ca408245:`Tryck pÃ¥ "Lägg till pÃ¥ hemskärmen"`,s6196153c4b0c1ea0:`Installera`,s633502f7cff4f847:`Ãppna din webbläsares meny`,s681e399d63311fba:`Visa galleri`,s7f0591f08e318eda:`Tryck pÃ¥ Mer i delningsmenyn`,s8114bd55cae5a22b:`Välj Lägg till i Dock`,s922329d6f6213590:`Lägg till i Dock`,s9af56bf005b49c74:`Scrolla ner till "Lägg till pÃ¥ hemskärmen"`,sa5ef80b4bb9b39f8:`Mindre`,sba52286c21552a4e:`Installera den pÃ¥ din enhet för att fÃ¥ en bättre användarupplevelse och enklare Ã¥tkomst.`,sc16e00a7a8b2fde2:`Tillbaka`,scdaf4bbff76674c8:`Lägg till pÃ¥ hemskärmen`,se0e473adfda8066c:`Ãppna i din huvudsakliga webbläsare`,se740f75b95a51807:`Lägg till i Dock för att fÃ¥ en bättre användarupplevelse och enklare Ã¥tkomst.`,sfea652f6580ff086:`Denna webbsajt har app-funktionalitet.`},nu={s182ab2d6c997515f:`ë ë§ì 기ë¥ê³¼ ì¬ì´ ì ê·¼ì ìí´ í íë©´ì ì¶ê°í´ì£¼ì¸ì.`,s224cbcec014ef6b5:`ë´ë¹ê²ì´ì
ë°ìì ê³µì ë²í¼ ë르기`,s37a9e8aec5713460:`ë보기`,s386eca8362ff6155:`ê³µì ìì´ì½ì´ ìì¼ë©´ ë보기 ë르기`,s4e1e10a6ca408245:`"í íë©´ì ì¶ê°" íí기`,s6196153c4b0c1ea0:`ì¤ì¹`,s633502f7cff4f847:`ë¸ë¼ì°ì ë©ë´ ì´ê¸°`,s681e399d63311fba:`ê°¤ë¬ë¦¬ íì`,s7f0591f08e318eda:`ê³µì ë©ë´ìì ë보기 ë르기`,s8114bd55cae5a22b:`Dockì ì¶ê° ë²í¼ ë르기`,s922329d6f6213590:`Dockì ì¶ê°`,s9af56bf005b49c74:`"í íë©´ì ì¶ê°"ë¡ ì¤í¬ë¡¤í기`,sa5ef80b4bb9b39f8:`ë«ê¸°`,sba52286c21552a4e:`ë ë§ì 기ë¥ê³¼ ì¬ì´ ì ê·¼ì ìí´ ê¸°ê¸°ì ì¤ì¹í´ì£¼ì¸ì.`,sc16e00a7a8b2fde2:`ë¤ë¡`,scdaf4bbff76674c8:`í íë©´ì ì¶ê°`,se0e473adfda8066c:`주 ë¸ë¼ì°ì ìì ì´ê¸°`,se740f75b95a51807:`ë ë§ì 기ë¥ê³¼ ì¬ì´ ì ê·¼ì ìí´ Dockì ì¶ê°í´ì£¼ì¸ì.`,sfea652f6580ff086:`ì´ ì¬ì´í¸ë ì± ê¸°ë¥ì ê°ì§ê³ ììµëë¤.`},ru={s182ab2d6c997515f:`áááááááá¶áá
áá¶áááááá¶ááá¢áááááááá¾ááá¾áááá¸ááá½ááá¶ááá¼ááááá·ááááááá¶ááááááá¢áá·ááá¶ááááá½ááááá¾á`,s224cbcec014ef6b5:`á
á»á
áá¾ ááá¼áá»áá
ááááááá áá
áááá»áááá¶ááá·ááá
`,s37a9e8aec5713460:`áááá á¶ááááááá`,s386eca8362ff6155:`á
á»á
áá¾ áááááá ááááá·ááá¾áááá¶ááá¼áááááá¶ á
ááááááá`,s4e1e10a6ca408245:`á
á»á
áá¾ "áááááááá
áá¶áááááá¶ááá¢áááááááá¾á"`,s6196153c4b0c1ea0:`ááá¡á¾á`,s633502f7cff4f847:`áá¾ááááºáá»ááááááá·áá¸áá»áááááááá¢ááá`,s681e399d63311fba:`áááá á¶ááá·á
á·ááááá¶á`,s7f0591f08e318eda:`á
á»á
áá¾ áááááá áá
áááá»ááááºáá»á á
ááááááá`,s8114bd55cae5a22b:`á
á»á
áá¾ áááááááá
áá¶áá Dock`,s922329d6f6213590:`áááááááá
áá¶áá Dock`,s9af56bf005b49c74:`á¢á¼áá
á»ááá
áá¶áá "áááááááá
áááá¶ááá¢áááááááá¾á"`,sa5ef80b4bb9b39f8:`áááá á¶ááá·á
`,sba52286c21552a4e:`ááá¡á¾ááá¶áá
áá¾á§áááááááááá¢ááááá¾áááá¸ááá½ááá¶ááá¼ááááá·ááááááá¶ááááááá¢áá·ááá¶ááááá½ááááá¾á`,sc16e00a7a8b2fde2:`áááá¡ááááááá`,scdaf4bbff76674c8:`áááááááá
áá¶áááááá¶ááá¢áááááááá¾á`,se0e473adfda8066c:`áá¾ááá
áááá»ááááááá·áá¸áá»ááááááá¶ááááááá¢ááá`,se740f75b95a51807:`áááááááá¶áá
áá¶áá Dock áá¾áááá¸ááá½ááá¶ááá¼ááááá·ááááááá¶ááááááá¢áá·ááá¶ááááá½ááááá¾á`,sfea652f6580ff086:`ááá áááááááááá¶ááá»ááá¶ááá¶áááááá·áá¸á`},iu={s182ab2d6c997515f:`Ø¨Ø±Ø§Û ØªØ¬Ø±Ø¨Ù Ú¯Ø³ØªØ±Ø¯Ù Ù Ø¯Ø³ØªØ±Ø³Û Ø¢Ø³Ø§Ù Ø¢Ù Ø±Ø§ Ø¨Ù ØµÙØÙ Ø§ØµÙÛ Ø®ÙØ¯ اضاÙÙ Ú©ÙÛØ¯.`,s224cbcec014ef6b5:`در ÙÙØ§Ø± پاÛÛ٠دکÙ
Ù (Share) را بزÙÛØ¯`,s37a9e8aec5713460:`Ø¨ÛØ´ØªØ±`,s386eca8362ff6155:`اگر Ø¢ÛÚ©Ù٠اشتراکâÚ¯Ø°Ø§Ø±Û ÙØ¬Ùد ÙØ¯Ø§Ø±Ø¯Ø رÙÛ Ø¨ÛØ´ØªØ± ÙØ´Ø§Ø± دÙÛØ¯`,s4e1e10a6ca408245:`رÙÛ "Add to Home screen" ضرب٠بزÙÛØ¯`,s6196153c4b0c1ea0:`ÙØµØ¨`,s633502f7cff4f847:`Ù
Ø±ÙØ±Ú¯Ø± Ø®ÙØ¯ را باز Ú©ÙÛØ¯`,s681e399d63311fba:`ÙÙ
Ø§ÛØ´ Ú¯Ø§ÙØ±Û`,s7f0591f08e318eda:`در Ù
ÙÙÛ Ø§Ø´ØªØ±Ø§Ú©âÚ¯Ø°Ø§Ø±Û Ø±ÙÛ Ø¨ÛØ´ØªØ± ÙØ´Ø§Ø± دÙÛØ¯`,s8114bd55cae5a22b:`(Add to Dock) را Ø§ÙØªØ®Ø§Ø¨ Ú©ÙÛØ¯ `,s922329d6f6213590:`Ø§ÙØ²Ùد٠ب٠(Dock)`,s9af56bf005b49c74:`ب٠پاÛÛ٠اسکرÙÙ Ú©ÙÛØ¯ تا ب٠"Add to Home Screen" Ø¨Ø±Ø³ÛØ¯`,sa5ef80b4bb9b39f8:`Ú©Ù
تر`,sba52286c21552a4e:`Ø¨Ø±Ø§Û ØªØ¬Ø±Ø¨Ù Ú¯Ø³ØªØ±Ø¯Ù Ù Ø¯Ø³ØªØ±Ø³Û Ø¢Ø³Ø§Ù Ø¢Ù Ø±Ø§ بر رÙÛ Ø¯Ø³ØªÚ¯Ø§Ù Ø®ÙØ¯ ÙØµØ¨ Ú©ÙÛØ¯.`,sc16e00a7a8b2fde2:`بازگشت`,scdaf4bbff76674c8:`Ø§ÙØ²Ùد٠ب٠(Home Screen)`,se0e473adfda8066c:`در Ù
Ø±ÙØ±Ú¯Ø± اصÙÛ Ø®ÙØ¯ باز Ú©ÙÛØ¯`,se740f75b95a51807:`Ø¨Ø±Ø§Û ØªØ¬Ø±Ø¨Ù Ú¯Ø³ØªØ±Ø¯Ù Ù Ø¯Ø³ØªØ±Ø³Û Ø¢Ø³Ø§Ù Ø¢Ù Ø±Ø§ ب٠Dock Ø®ÙØ¯ اضاÙÙ Ú©ÙÛØ¯.`,sfea652f6580ff086:` اÛÙ Ø³Ø§ÛØª Ø¯Ø§Ø±Ø§Û ÙØ§Ø¨ÙÛØª اپÙÛÚ©ÛØ´Ù است. `},au={s182ab2d6c997515f:`Tilføj den til din hjemmeskærm for en bedre oplevelse og nem adgang.`,s224cbcec014ef6b5:`Tryk pÃ¥ Del-knappen i navigationslinjen`,s37a9e8aec5713460:`Mere`,
5s386eca8362ff6155:`Tryk pÃ¥ Mere, hvis der ikke er noget Del-ikon`,s4e1e10a6ca408245:`Tryk pÃ¥ "Tilføj til hjemmeskærm"`,s6196153c4b0c1ea0:`Installer`,s633502f7cff4f847:`Ã
bn din browsermenu`,s681e399d63311fba:`Vis galleri`,s7f0591f08e318eda:`Tryk pÃ¥ Mere i Del-menuen`,s8114bd55cae5a22b:`Vælg Tilføj til Dock`,s922329d6f6213590:`Tilføj til Dock`,s9af56bf005b49c74:`Rul ned til "Tilføj til hjemmeskærm"`,sa5ef80b4bb9b39f8:`Mindre`,sba52286c21552a4e:`Installer den pÃ¥ din enhed for en bedre oplevelse og nem adgang.`,sc16e00a7a8b2fde2:`Tilbage`,scdaf4bbff76674c8:`Tilføj til hjemmeskærm`,se0e473adfda8066c:`Ã
bn i din primære browser`,se740f75b95a51807:`Tilføj den til din Dock for en bedre oplevelse og nem adgang.`,sfea652f6580ff086:`Denne side har app-funktionalitet.`},ou={s182ab2d6c997515f:`Thêm nó và o mà n hình chÃnh cá»§a bạn Äá» có trải nghiá»m phong phú hÆ¡n và truy cáºp dá»
dà ng hÆ¡n.`,s224cbcec014ef6b5:`Nhấp và o nút "Chia sẻ" trên thanh Äiá»u hưá»ng`,s37a9e8aec5713460:`Thêm`,s386eca8362ff6155:`Nhấn Thêm nếu không có biá»u tượng Chia sẻ`,s4e1e10a6ca408245:`Nhấn và o "Thêm và o Mà n hình chÃnh"`,s6196153c4b0c1ea0:`Cà i Äặt`,s633502f7cff4f847:`Má» menu trình duyá»t cá»§a bạn`,s681e399d63311fba:`Hiá»n thá» thư viá»n`,s7f0591f08e318eda:`Nhấn Thêm trong menu Chia sẻ`,s8114bd55cae5a22b:`Nhấp và o "Thêm và o Dock"`,s922329d6f6213590:`Thêm và o Dock`,s9af56bf005b49c74:`Kéo Äến mục "Thêm và o Mà n hình chÃnh"`,sa5ef80b4bb9b39f8:`Thu gá»n`,sba52286c21552a4e:`Cà i Äặt trên thiết bá» cá»§a bạn Äá» có trải nghiá»m phong phú hÆ¡n và truy cáºp dá»
dà ng.`,sc16e00a7a8b2fde2:`Quay lại`,scdaf4bbff76674c8:`Thêm và o mà n hình chÃnh`,se0e473adfda8066c:`Má» trình duyá»t chÃnh cá»§a bạn`,se740f75b95a51807:`Thêm nó và o Dock cá»§a bạn Äá» có trải nghiá»m toà n diá»n hÆ¡n và truy cáºp dá»
dà ng hÆ¡n.`,sfea652f6580ff086:`Trang web nà y có cả chức nÄng Äặc trưng ứng dụng.`},su={s182ab2d6c997515f:`Adja hozzá a kezdÅképernyÅjéhez a teljes élmény és a könnyű hozzáférés érdekében.`,s224cbcec014ef6b5:`Nyomja meg a Megosztás gombot a navigációs sávban`,s37a9e8aec5713460:`Több`,s386eca8362ff6155:`Nyomja meg a Több gombot, ha nincs Megosztás ikon`,s4e1e10a6ca408245:`Koppintson a "Hozzáadás a kezdÅképernyÅhöz" lehetÅségre`,s6196153c4b0c1ea0:`TelepÃtés`,s633502f7cff4f847:`Nyissa meg a böngészÅje menüjét`,s681e399d63311fba:`Galéria megjelenÃtése`,s7f0591f08e318eda:`Nyomja meg a Több gombot a Megosztás menüben`,s8114bd55cae5a22b:`Nyomja meg a Hozzáadás a Dock-hoz gombot`,s922329d6f6213590:`Hozzáadás a Dock-hoz`,s9af56bf005b49c74:`Görgessen le a "Hozzáadás a kezdÅképernyÅhöz" lehetÅséghez`,sa5ef80b4bb9b39f8:`Kevesebb`,sba52286c21552a4e:`TelepÃtse eszközére a teljes élmény és a könnyű hozzáférés érdekében.`,sc16e00a7a8b2fde2:`Vissza`,scdaf4bbff76674c8:`Hozzáadás a kezdÅképernyÅhöz`,se0e473adfda8066c:`Nyissa meg a fÅ böngészÅjében`,se740f75b95a51807:`Adja hozzá a Dock-hoz a teljes élmény és a könnyű hozzáférés érdekében.`,sfea652f6580ff086:`Ez az oldal alkalmazásfunkcióval rendelkezik.`},cu={s182ab2d6c997515f:`Pridajte ju na domovskú obrazovku pre rozÅ¡Ãrené využitie a jednoduchý prÃstup.`,s224cbcec014ef6b5:`StlaÄte ZdieľaÅ¥ na navigaÄnom paneli`,s37a9e8aec5713460:`Viac`,s386eca8362ff6155:`StlaÄte Viac, ak nevidÃte ikonu ZdieľaÅ¥`,s4e1e10a6ca408245:`Klepnite na "PridaÅ¥ na domovskú obrazovku"`,s6196153c4b0c1ea0:`InÅ¡talovaÅ¥`,s633502f7cff4f847:`Otvorte ponuku prehliadaÄa`,s681e399d63311fba:`ZobraziÅ¥ galériu`,s7f0591f08e318eda:`StlaÄte Viac v menu ZdieľaÅ¥`,s8114bd55cae5a22b:`StlaÄte PridaÅ¥ do Docku`,s922329d6f6213590:`PridaÅ¥ do Docku`,s9af56bf005b49c74:`Prejdite nadol k "PridaÅ¥ na domovskú obrazovku"`,sa5ef80b4bb9b39f8:`Menej`,sba52286c21552a4e:`NainÅ¡talujte si ju na svoje zariadenie pre rozÅ¡Ãrené využitie a jednoduchý prÃstup.`,sc16e00a7a8b2fde2:`Späť`,scdaf4bbff76674c8:`PridaÅ¥ na domovskú obrazovku`,se0e473adfda8066c:`Otvorte v hlavnom prehliadaÄi`,se740f75b95a51807:`Pridajte ju do Docku pre rozÅ¡Ãrené využitie a jednoduchý prÃstup.`,sfea652f6580ff086:`Táto stránka má funkcie aplikácie.`},lu={s182ab2d6c997515f:`Afegeix-lo a la teva pantalla d'inici per a una à mplia experiència i fà cil accés.`,s224cbcec014ef6b5:`Premeu comparteix a la barra de navegació`,s37a9e8aec5713460:`Més`,s386eca8362ff6155:`Premeu "Més" si no hi ha icona de Compartir`,s4e1e10a6ca408245:`Toca "Afegeix a la pantalla d'inici"`,s6196153c4b0c1ea0:`Instal·la`,s633502f7cff4f847:`Obre el menú del navegador`,s681e399d63311fba:`Mostra la galer
5ia`,s7f0591f08e318eda:`Premeu "Més" al menú de Compartir`,s8114bd55cae5a22b:`Premeu "Afegeix al Dock"`,s922329d6f6213590:`Afegeix al Dock`,s9af56bf005b49c74:`Desplaça't cap avall fins a "Afegeix a la pantalla d'inici"`,sa5ef80b4bb9b39f8:`Menys`,sba52286c21552a4e:`Instal·la'l al teu dispositiu per a una à mplia experiència i fà cil accés.`,sc16e00a7a8b2fde2:`Enrere`,scdaf4bbff76674c8:`Afegeix a pantalla d'inici`,se0e473adfda8066c:`Obre al navegador principal`,se740f75b95a51807:`Afegeix-lo al teu Dock per a una à mplia experiència i fà cil accés.`,sfea652f6580ff086:`Aquest lloc té funcionalitats d'aplicació.`},uu={s182ab2d6c997515f:`××ס××¤× ×××¡× ×××ת ×××××× ××§××¤× ××××©× ×§××.`,s224cbcec014ef6b5:`×××¦× ×¢× ×©×ת××£ ×סר×× ×× ××××`,s37a9e8aec5713460:`×¢××`,s386eca8362ff6155:`×××¦× ×¢× ×¢×× ×× ××× ×¡×× ×©×ת××£`,s4e1e10a6ca408245:`××§××©× ×¢× "×××¡×¤× ×××¡× ×××ת"`,s6196153c4b0c1ea0:`××ª×§× ×`,s633502f7cff4f847:`פת×× ×ת תפר×× ××פ×פ×`,s681e399d63311fba:`××¦× ××ר××`,s7f0591f08e318eda:`×××¦× ×¢× ×¢×× ×תפר×× ×©×ת××£`,s8114bd55cae5a22b:`×××¦× ×¢× ×××¡×¤× ×-Dock`,s922329d6f6213590:`××ס××¤× ×-Dock`,s9af56bf005b49c74:`×××× ×××× ×¢× "×××¡×¤× ×××¡× ×××ת"`,sa5ef80b4bb9b39f8:`×סתרת ××ר××`,sba52286c21552a4e:`×תק×× × ×××ש×ר×× ×××××× ××§××¤× ××××©× ×§××.`,sc16e00a7a8b2fde2:`××ר×`,scdaf4bbff76674c8:`×××¡×¤× ×××¡× ×××ת`,se0e473adfda8066c:`פת×× ××פ××¤× ×ר××©× ×©×××`,se740f75b95a51807:`××ס××¤× ×-Dock ×××××× ××§××¤× ××××©× ×§××.`,sfea652f6580ff086:`××תר ×× ×ש פ×× ×§×¦××× ×××ת ×©× ×פ××קצ××.`},du=new Map([[`ar`,Nc],[`ro`,Mc],[`bg`,Pc],[`ru`,Fc],[`tr`,Ic],[`de`,Lc],[`es`,Rc],[`nl`,zc],[`el`,Bc],[`fr`,Vc],[`sr`,Hc],[`pl`,Uc],[`uk`,Wc],[`zh-HK`,Gc],[`zh-CN`,Kc],[`zh-TW`,qc],[`it`,Jc],[`cs`,Yc],[`no`,Xc],[`pt`,Zc],[`ja`,Qc],[`sv`,$c],[`ko`,el],[`km`,tl],[`fa`,nl],[`da`,rl],[`vi`,il],[`hu`,al],[`sk`,ol],[`ca-ES`,sl],[`he`,cl]]),{getLocale:fu,setLocale:pu}=(mu={sourceLocale:`en`,targetLocales:Nl,loadLocale:async e=>du.get(e)},function(e){if(fl)throw Error(`lit-localize can only be configured once`);dl=e,fl=!0}((e,t)=>xl(Dl,e,t)),Ol=wl=mu.sourceLocale,Tl=new Set(mu.targetLocales),Tl.add(mu.sourceLocale),El=mu.loadLocale,{getLocale:jl,setLocale:Ml}),mu,hu=class{constructor(){this.icons=[{src:``}],this.screenshots=void 0,this.short_name=`PWA`,this.name=`Progressive web application`,this.description=`Progressive web application`}},gu=Bs`.gallery{position:relative;--scrollbar-background-color:#fff;--scrollbar-thumb-color:rgb(146, 146, 146);--scrollbar-thumb-hover-color:rgb(100, 100, 100);--nav-btn-background-color:#fff;--nav-btn-fill-color:#141414}.gallery .gallery_scroller{scroll-snap-type:x mandatory;overflow-x:auto;overflow-y:hidden;display:flex;align-items:center;padding:10px 13px;padding-bottom:10px;margin:0 10px;-webkit-overflow-scrolling:touch}.gallery .gallery_scroller img{border-radius:6px;max-height:min(45vh,500px);box-shadow:0 3px 10px 0 rgba(0,0,0,.15);scroll-snap-align:center;scroll-snap-stop:always;position:relative}.gallery .gallery_scroller img+img{margin-inline-start:15px}.gallery .gallery_scroller::-webkit-scrollbar{width:4px;height:2px}.gallery .gallery_scroller::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb-color);border-radius:4px}.gallery .gallery_scroller::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover-color)}.gallery .gallery_scroller::-webkit-scrollbar-track{background:var(--scrollbar-background-color);border-radius:4px}.gallery .gallery_scroller .scroller_wrap{display:flex;flex-direction:row;padding-inline-end:13px}.gallery .btn{position:absolute;display:flex;align-items:center;-webkit-user-select:none;user-select:none;top:50%;transform:translateY(-50%);height:30px;width:30px;border-radius:50%;background-color:var(--nav-btn-background-color);box-shadow:rgba(0,0,0,.3) 2px 4px 4px 1px;background-repeat:no-repeat;opacity:.8;z-index:1}.gallery .btn.prev{left:5px}.gallery .btn.prev svg{margin-left:4px}.gallery .btn.next{right:5px}.gallery .btn.next svg{transform:rotate(180deg);margin-left:6px}.gallery .btn:hover{box-shadow:rgba(0,0,0,.5) 2px 4px 4px 1px;cursor:pointer;opacity:1}.gallery .btn svg{width:20px;height:20px;margin:0 auto}
5.gallery .btn svg path{fill:var(--nav-btn-fill-color)}.gallery.apple_desktop{--scrollbar-background-color:rgba(0, 0, 0, 0.1);--scrollbar-thumb-color:rgb(100, 100, 100);--scrollbar-thumb-hover-color:rgba(0, 0, 0, 0.85)}.gallery.apple_desktop .gallery_scroller{margin:0;padding-top:15px}.gallery.apple_desktop .btn{height:26px;width:26px;box-shadow:rgba(0,0,0,.3) 0 2px 2px 1px}.gallery.apple_desktop .btn:hover{box-shadow:rgba(0,0,0,.3) 0 2px 2px 1px}.gallery.apple_desktop .btn:active{filter:brightness(95%)}.gallery.apple_desktop .btn:active .svg{filter:brightness(110%)}.gallery.apple_desktop .btn svg{width:12px;height:auto;opacity:1}.gallery.apple_desktop .btn svg{margin-inline-start:7px}.gallery.apple_mobile .btn.prev svg{margin-inline-start:7px}.gallery.apple_mobile .btn svg{width:16px;height:auto}.gallery.apple_desktop .btn,.gallery.apple_mobile .btn{opacity:1}@media(hover:none)and (pointer:coarse){.gallery .btn.next,.gallery .btn.prev{display:none}.gallery_scroller::-webkit-scrollbar{display:none}}@media(prefers-color-scheme:dark){.gallery{--scrollbar-background-color:#424242;--nav-btn-background-color:#555555;--nav-btn-fill-color:#fff}.gallery.apple_desktop{--scrollbar-thumb-color:var(--nav-btn-fill-color);--scrollbar-background-color:var(--nav-btn-background-color);--scrollbar-thumb-hover-color:var(--nav-btn-fill-color)}.gallery.apple_desktop .btn:active{filter:brightness(110%)}.gallery.apple_desktop .btn:active .svg{filter:brightness(90%)}}`,_u=(e,t,n)=>{let r=new CustomEvent(t,{detail:{message:n}});e.dispatchEvent(r)},vu=class{static isAppleMobile(){return!!(navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2&&`serviceWorker`in navigator)}static isAppleDesktop(){let e=navigator.userAgent.toLowerCase();if(navigator.maxTouchPoints||!e.match(/macintosh/))return!1;let t=/version\/(\d{2})\./.exec(e);if(!(t&&t[1]&&parseInt(t[1])>=17))return!1;let n=!!document.createElement(`audio`).canPlayType(`audio/wav; codecs="1"`),r=!!new OffscreenCanvas(1,1).getContext(`webgl`);return n&&r}static isAppleMobileNonSafari(){return!(!this.isAppleMobile()||!navigator.userAgent.match(/CriOS|EdgiOS/))}static isIPad(){return!(!navigator.userAgent.match(/iPad|Macintosh/)||!this.isAppleMobile())}static isApple26Plus(){return!!CSS.supports(`text-wrap`,`pretty`)}static getPageBackgroundColor(){let e=window.getComputedStyle(document.body).backgroundColor,t=window.getComputedStyle(document.documentElement).backgroundColor;return t===`rgba(0, 0, 0, 0)`?e===`rgba(0, 0, 0, 0)`?null:e:t}static isAndroid(){return!!navigator.userAgent.toLowerCase().match(/android/)}static isAndroidFallback(){return!(!this.isAndroid()||`BeforeInstallPromptEvent`in window)}static deviceFormFactor(){return window.matchMedia(`(orientation: portrait)`).matches?`narrow`:`wide`}static isStandalone(){return!!(window.matchMedia(`(display-mode: standalone)`).matches||`standalone`in navigator&&!0===navigator.standalone)}static async getInstalledRelatedApps(){if(`getInstalledRelatedApps`in navigator)try{return await navigator.getInstalledRelatedApps().then(e=>e)}catch{}return[]}static async isRelatedAppsInstalled(){return!!(await this.getInstalledRelatedApps()).length}static setStorageFlag(e,t,n=!1){try{n?localStorage.setItem(e,t.toString()):sessionStorage.setItem(e,t.toString())}catch{}}static getStorageFlag(e){try{return sessionStorage.getItem(e)===`true`||localStorage.getItem(e)===`true`}catch{return!1}}static eventInstalledSuccess(e){_u(e,`pwa-install-success-event`,`App install success (Chromium/Android only)`)}static eventInstalledFail(e){_u(e,`pwa-install-fail-event`,`App install failed (Chromium/Android only)`)}static eventUserChoiceResult(e,t){_u(e,`pwa-user-choice-result-event`,t)}static eventInstallAvailable(e){_u(e,`pwa-install-available-event`,`App install available`)}static eventInstallHowTo(e){_u(e,`pwa-install-how-to-event`,`App install instruction showed`)}static eventGallery(e){_u(e,`pwa-install-gallery-event`,`App install gallery showed`)}static normalizeManifestAssetUrls(e,t){let n=new URL(t,document.location.href);
5[...e.icons||[],...e.screenshots||[]].forEach(e=>{e.src=new URL(e.src,n).href})}static async fetchAndProcessManifest(e,t,n,r){let i=new hu,a=null;try{let t=await fetch(e);if(a=await t.json(),!t.ok||!a||!Object.keys(a))throw Error(`Manifest not found`);this.normalizeManifestAssetUrls(a,e)}catch{}return t=t||(a?.icons?.length?a?.icons[0].src:i.icons?.[0].src)||``,n=n||(a?a.short_name:i.short_name)||``,r=r||a?.description||i.description||``,i=a||i,{_manifest:i,icon:t,name:n,description:r}}},yu=(e,t,n,r)=>mc` 6 ${e?mc` 7 <div id="paginated_gallery" class="gallery ${t}"> 8 <div class="gallery_scroller"> 9 <div class="scroller_wrap"> 10 ${e.filter(e=>!e.form_factor||e.form_factor===vu.deviceFormFactor()).map(e=>mc`<img draggable="false" src='${e.src}' alt='${e.label||``}'>`)} 11 </div> 12 </div> 13 <span class="btn prev" @click="${r}"> 14 ${t==`default`?mc`<svg id="arrow-left" viewBox="0 0 96 96"><path d="M39.3756,48.0022l30.47-25.39a6.0035,6.0035,0,0,0-7.6878-9.223L26.1563,43.3906a6.0092,6.0092,0,0,0,0,9.2231L62.1578,82.615a6.0035,6.0035,0,0,0,7.6878-9.2231Z" fill="%23999" fill-rule="evenodd"/></svg>`:mc`<svg id="arrow-left" viewBox="0 0 23.023 18.518"><path fill="currentColor" d="M0 9.253c0 .305.134.586.378.818l8.106 8.093c.244.232.5.342.793.342.598 0 1.075-.44 1.075-1.05 0-.293-.11-.586-.306-.769l-2.734-2.783-4.834-4.407-.256.598 3.93.244h15.442c.635 0 1.075-.451 1.075-1.086s-.44-1.087-1.075-1.087H6.152l-3.93.245.256.61 4.834-4.419 2.734-2.783a1.09 1.09 0 0 0 .306-.77C10.352.44 9.875 0 9.277 0c-.293 0-.549.098-.818.366L.38 8.436c-.247.23-.38.511-.38.816Z"/></svg>`} 15 </span> 16 <span class="btn next" @click="${n}"> 17 ${t==`default`?mc` 18 <svg height="15" width="15"> 19 <use href="#arrow-left"></use> 20 </svg> 21 `:mc`<svg height="15" width="15"> 22 <use href="#arrow-left"></use> 23 </svg>`} 24 </span> 25 </div>`:``}`,bu=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},xu=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Su=class extends Tc{constructor(){super(...arguments),this.screenshots=[],this.theme=`default`,this.rtl=!1,this.getScrollElements=()=>{let e=this.shadowRoot?.querySelector(`#paginated_gallery`);if(!e)return;let t=e.querySelector(`.gallery_scroller`);if(!t)return;let n=Array.from(t.querySelectorAll(`img`));return n.length===0?void 0:{scroller:t,items:n}},this.findCurrentItem=(e,t)=>{let n=e.scrollLeft*(this.rtl?-1:1);return t.find(e=>e.offsetWidth+e.offsetLeft*(this.rtl?-1:1)>=n+e.offsetWidth/2.5)||null},this.scrollToPage=e=>{let t=this.getScrollElements();if(!t)return;let{scroller:n,items:r}=t,i=this.findCurrentItem(n,r);if(!i)return;let a=r.indexOf(i)+(e===`next`?1:-1)*(this.rtl?-1:1);a>=0&&a<r.length&&r[a].scrollIntoView({behavior:`smooth`,block:`nearest`,inline:`center`})},this.scrollToNextPage=()=>{this.scrollToPage(`next`)},this.scrollToPrevPage=()=>{this.scrollToPage(`prev`)},this._init=()=>{}}static get styles(){return gu}firstUpdated(){let e=this.getScrollElements();e&&setTimeout(()=>{e.scroller.scrollTo({top:0,left:0})},300)}connectedCallback(){super.connectedCallback(),this._init()}render(){return mc`${yu(this.screenshots,this.theme,this.scrollToNextPage,this.scrollToPrevPage)}`}};bu([Ec({type:Array}),xu(`design:type`,Array)],Su.prototype,`screenshots`,void 0),bu([Ec(),xu(`design:type`,String)],Su.prototype,`theme`,void 0),bu([Ec({type:Boolean}),xu(`design:type`,Boolean)],Su.prototype,`rtl`,void 0),customElements.get(`pwa-gallery`)||customElements.define(`pwa-gallery`,Su);var Cu=Bs`.dialog-body .icon{display:flex;align-items:flex-start}.dialog-body .icon .icon-image{width:48px;height:48px;margin:0 auto;margin-top:10px;border-radius:6px}.dialog-body .about{display:grid;grid-template-rows:30px auto}.dialog-body .about .hostname,.dialog-body .about .name{padding:0 5px;overflow:hidden}.dialog-body .about .name{font-weight:500;font-size:18px;line-height:24px;margin-top:5px;align-items:flex-start;display:flex}.dialog-body .about .name label{text-overflow:ellipsis;word-break:break-all;white-space:nowrap;overflow:hidden}.dialog-body .about .hostname{font-size:13px;font-weight:400;opacity:.7;line-height:14px;overflow-x:hidden;text-overflow:ellipsis;text-align:start;word-break:break-all;white-space:nowrap}.dialog-body .about+hr{margin-top:10px}.dialog-body .description{font-weight:400;line-height:20px;grid-column:1/3;padding:0 6px;margin:10px 5px 5px;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;max-height:115px;overflow:hidden;overflow-y:auto;text-overflow:ellipsis;text-align:start}.dialog-body .app-description{font-size:13px;margin-bottom:10px}.dialog-body .app-description::-webkit-scrollbar{width:4px;height:4px}.dialog-body .app-description::-webkit-scrollbar-thumb{background:#929292;border-radius:4px}.dialog-body .app-description::-webkit-scrollbar-thumb:hover{background:#646464}.dialog-body .app-description::-webkit-scrollbar-track{background:var(--scrollbar-background-color);border-radius:4px}.dialog-body .install-description{font-size:14px}.dialog-body hr{height:1px;width:100%;grid-column:1/3;background-color:var(--border-bottom-color);border:none;margin:0}.dialog-body .action-buttons{display:grid;grid-template-columns:50% auto;grid-column-start:1;grid-column-end:3;gap:10px;padding:10px 10px}.dialog-body .action-buttons .primary{grid-column-start:2}.dialog-body .material-button{--text-color-primary:#eee;--text-color-secondary:#374fc6;--background-color-primary:#374fc6;--background-color-ripple:#eee;position:relative;display:inline-block;box-sizing:border-box;border:none;border-radius:6px;padding:0 16px;min-width:64px;
25height:36px;vertical-align:middle;text-align:center;text-overflow:ellipsis;text-transform:uppercase;box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);font-family:Roboto,"Segoe UI",BlinkMacSystemFont,system-ui,-apple-system;font-size:14px;font-weight:500;line-height:37px;overflow:hidden;outline:0;cursor:pointer;transition:box-shadow .2s}.dialog-body .material-button.primary{color:var(--text-color-primary);background-color:var(--background-color-primary)}.dialog-body .material-button.secondary{background-color:rgba(0,0,0,0);color:var(--text-color-secondary);box-shadow:none}.dialog-body .material-button.secondary::after,.dialog-body .material-button.secondary::before{background-color:var(--background-color-primary)}.dialog-body .material-button.secondary:active,.dialog-body .material-button.secondary:hover{box-shadow:none}.dialog-body .material-button.secondary.close{height:26px;min-width:26px;line-height:0;margin-inline-end:0;margin-inline-start:auto;padding:0;border-radius:50%}.dialog-body .material-button.secondary.close svg{width:16px;fill:var(--text-color-secondary)}.dialog-body .material-button.secondary.close::after{width:25px;height:25px;border-radius:50%}.dialog-body .material-button.secondary.close::before{border-radius:50%}.dialog-body .material-button::before{content:"";position:absolute;top:0;bottom:0;left:0;right:0;background-color:var(--background-color-ripple);opacity:0;transition:opacity .2s}.dialog-body .material-button::after{content:"";position:absolute;left:50%;top:50%;border-radius:50%;padding:50%;width:32px;height:32px;background-color:var(--background-color-ripple);opacity:0;transform:translate(-50%,-50%) scale(1);transition:opacity 1s,transform .5s}.dialog-body .material-button:active{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.dialog-body .material-button:active::after{opacity:.32;transform:translate(-50%,-50%) scale(0);transition:transform 0s}.dialog-body pwa-gallery{grid-column:1/3;max-height:0;opacity:0;transition:opacity ease-in-out .5s,max-height .5s ease-in-out;overflow:hidden}@media(prefers-color-scheme:dark){.dialog-body .material-button{--text-color-primary:#1B222C;--text-color-secondary:#a7c7fa;--background-color-primary:#a7c7fa}}@media(hover:none)and (pointer:coarse){.dialog-body .description::-webkit-scrollbar{display:none}}`,wu=Bs`:host{grid-template-columns:1fr}:host .touch-header{height:30px;width:100%;padding-top:10px;box-sizing:border-box;cursor:grab}:host .touch-header:active{cursor:grabbing}:host .touch-header::before{content:"";width:40px;height:5px;border-radius:3px;background:var(--touch-header-color);margin:0 auto;display:block}:host .body-header{display:grid;grid-template-columns:max-content 1fr max-content;grid-gap:15px;padding:18px 20px;padding-top:0;border-bottom:1px solid var(--border-bottom-color)}:host .body-header .install{text-transform:capitalize;height:40px;min-width:50px;padding:0 23px;align-items:center;display:inline-flex;-webkit-tap-highlight-color:transparent;transition:min-width .2s,color .2s,background-color .2s,border-color .2s}:host .body-header .install .button-text,:host .body-header .install svg{margin:0 auto}:host .body-header .install .check-icon{display:none}:host .body-header .about{grid-template-rows:auto auto;grid-gap:6px}:host .body-header .about .name{padding:0;line-height:20px;font-size:16px}:host .body-header .about .hostname{font-size:14px;font-weight:400;opacity:.7;line-height:14px;overflow-x:hidden;text-overflow:ellipsis;word-break:break-all;white-space:nowrap;padding:0}:host .body-header .icon .icon-image{margin:0;width:45px;height:45px}:host .how-to-body{display:flex;flex-direction:column;gap:15px;max-height:0;overflow:hidden;padding:0 20px;opacity:0}:host .how-to-body .description-step{display:flex;gap:15px;margin-inline-start:2.5px;align-items:center}:host .how-to-body .description-step .svg-wrap{display:flex;flex-shrink:0;align-items:center;width:40px;height:40px;background-color:var(--touch-header-color);border-radius:50%}
25:host .how-to-body .description-step .svg-wrap svg{fill:var(--text-color-normal);margin:0 auto}:host .how-to-body .description-step .svg-wrap.add-icon svg{padding-right:1px}:host .how-to .description,:host .how-to ::slotted(pwa-gallery){max-height:0;padding-top:0;padding-bottom:0;overflow:hidden;opacity:0}:host .how-to .how-to-body{max-height:600px;padding-top:18px;padding-bottom:18px;opacity:1}:host .how-to .install{min-width:40px;padding:0;background:rgba(0,0,0,0);color:var(--text-color-normal);box-shadow:none;border:1px solid}:host .how-to .install .check-icon{display:inline;fill:var(--text-color-normal)}:host .how-to .install .button-text{display:none}:host .description{padding:15px 20px;margin:0;-webkit-line-clamp:6;max-height:150px;opacity:1}:host ::slotted(pwa-gallery){display:block;max-height:600px;padding-bottom:15px;opacity:1;transition:max-height 1.5s,opacity .8s,padding 1.5s}:host .description,:host .how-to-body{transition:max-height .2s,opacity .15s,padding .2s}:host .material-button{border-radius:20px}`,Tu=(e,t,n,r,i,a)=>mc` 26 <div class="dialog-body ${Ac(((e=!1,t=!1)=>({fallback:e,"how-to":t}))(i,a))}"> 27 <div class="touch-header" id="touch-header"></div> 28 <div class="body-header"> 29 <div class="icon"> 30 <img src="${n}" alt="icon" class="icon-image"> 31 </div> 32 <div class="about"> 33 <div class="name"> 34 <label>${e}</label> 35 </div> 36 <div class="hostname">${location.hostname}</div> 37 </div> 38 <button class="material-button primary install" @click='${r}'> 39 <svg class="check-icon" height="24px" viewBox="0 -960 960 960" width="24px" fill=""><path d="M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z"/></svg> 40 <span class="button-text">${dl(`Install`)}</span> 41 </button> 42 </div> 43 <div class="how-to-body"> 44 <div class="description-step"> 45 <div class="svg-wrap"> 46 <svg height="24" viewBox="0 -960 960 960" width="24" fill=""><path d="M480-160q-33 0-56.5-23.5T400-240q0-33 23.5-56.5T480-320q33 0 56.5 23.5T560-240q0 33-23.5 56.5T480-160Zm0-240q-33 0-56.5-23.5T400-480q0-33 23.5-56.5T480-560q33 0 56.5 23.5T560-480q0 33-23.5 56.5T480-400Zm0-240q-33 0-56.5-23.5T400-720q0-33 23.5-56.5T480-800q33 0 56.5 23.5T560-720q0 33-23.5 56.5T480-640Z"/></svg> 47 </div> 48 <div class="step-text">${dl(`Open your browser menu`)}</div> 49 </div> 50 <div class="description-step"> 51 <div class="svg-wrap add-icon"> 52 <svg height="24" viewBox="0 -960 960 960" width="24"><path d="M320-40q-33 0-56.5-23.5T240-120v-160h80v40h400v-480H320v40h-80v-160q0-33 23.5-56.5T320-920h400q33 0 56.5 23.5T800-840v720q0 33-23.5 56.5T720-40H320Zm0-120v40h400v-40H320ZM176-280l-56-56 224-224H200v-80h280v280h-80v-144L176-280Zm144-520h400v-40H320v40Zm0 0v-40 40Zm0 640v40-40Z"/></svg> 53 </div> 54 <div class="step-text">${dl(`Tap "Add to Home screen"`)}</div> 55 </div> 56 </div> 57 ${t?mc`<div class="description">${t}</div>`:``} 58 <slot></slot> 59 </div> 60 `,Eu=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},Du=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Ou=class extends Tc{constructor(){super(...arguments),this.props={name:``,description:``,icon:``},this.install={handleEvent:()=>{}},this.hideDialog=()=>{},this.disableClose=!1,this.fallback=!1,this.howToRequested=!1,this.toggleHowTo={handleEvent:()=>{}},this._callInstall=()=>{if(this.fallback)return this.toggleHowTo.handleEvent(),void setTimeout(()=>this.setupAppearence(!0),210);this.install.handleEvent()},this._callHide=()=>{this.hideDialog(),this.setupAppearence()},this.bindedElement=null,this._saveBodyStyle=document.body.style.overscrollBehaviorY,this.dragMobileSheet=(e,t,n)=>{if(!e||!t||!n)return null;let r=0,i=n.offsetHeight+n.offsetTop,a=e=>e.clientY||(e.changedTouches&&e.changedTouches.length?e.changedTouches[0].clientY:0),o=e=>
vendor: 5,977 bytes, line 60
60{window.addEventListener(`mouseup`,s),window.addEventListener(`mousemove`,c),window.addEventListener(`touchend`,s),window.addEventListener(`touchmove`,c),e.preventDefault(),r=a(e)-t.getBoundingClientRect().top,document.body.style.overscrollBehaviorY=`none`},s=t=>{if(document.body.style.overscrollBehaviorY=this._saveBodyStyle,!this.disableClose&&a(t)>=window.innerHeight-25)l(t,window.innerHeight+50,!0);else if(window.innerHeight-a(t)>e.clientHeight/2.5){l(t,window.innerHeight-e.clientHeight);try{!this.howToRequested&&vu.eventGallery(this.getRootNode().host)}catch{}}else l(t,window.innerHeight-i-35)},c=t=>{let n=a(t);this.disableClose&&window.innerHeight-n<70||n<=window.innerHeight-e.clientHeight+r||(e.style.setProperty(`transition`,`none`),e.style.setProperty(`--translateY`,`translateY(${n-r}px)`))},l=(n,r,l)=>{window.removeEventListener(`mouseup`,s),window.removeEventListener(`mousemove`,c),window.removeEventListener(`touchend`,s),window.removeEventListener(`touchmove`,c),window.innerWidth>=768||(!r&&a(n)>=window.innerHeight-i?e.style.setProperty(`--translateY`,`translateY(calc(100vh - ${i}px))`):e.style.setProperty(`--translateY`,`translateY(${(r||a(n))+35}px)`),e.style.setProperty(`transition`,`transform 500ms cubic-bezier(0.4, 0, 0, 1) 0s`),l&&(t.removeEventListener(`mousedown`,o),t.removeEventListener(`touchstart`,o),setTimeout(this._callHide,250)))};return t.addEventListener(`mousedown`,o),t.addEventListener(`touchstart`,o,{passive:!1}),l(new MouseEvent(`mouseup`),window.innerHeight-i-35),{touchElement:t,listener:o}},this.setupAppearence=e=>{this.bindedElement&&(this.bindedElement.touchElement.removeEventListener(`mousedown`,this.bindedElement.listener),this.bindedElement.touchElement.removeEventListener(`touchstart`,this.bindedElement.listener)),this.bindedElement=this.dragMobileSheet(this.parentElement,this.shadowRoot?.querySelector(`.dialog-body .touch-header`),this.shadowRoot?.querySelector(`.dialog-body `+(e?`.how-to-body`:`.body-header`)))},this._init=()=>{this.setupAppearence(),window.addEventListener(`resize`,()=>this.setupAppearence())}}static get styles(){return[Cu,wu]}firstUpdated(){this._init()}connectedCallback(){super.connectedCallback()}render(){return mc`${Tu(this.props.name,this.props.description,this.props.icon,this._callInstall,this.fallback,this.howToRequested)}`}};Eu([Ec({type:Object}),Du(`design:type`,Object)],Ou.prototype,`props`,void 0),Eu([Ec({type:Object}),Du(`design:type`,Object)],Ou.prototype,`install`,void 0),Eu([Ec(),Du(`design:type`,Object)],Ou.prototype,`hideDialog`,void 0),Eu([Ec({type:Boolean}),Du(`design:type`,Object)],Ou.prototype,`disableClose`,void 0),Eu([Ec({type:Boolean}),Du(`design:type`,Object)],Ou.prototype,`fallback`,void 0),Eu([Ec({type:Boolean}),Du(`design:type`,Object)],Ou.prototype,`howToRequested`,void 0),Eu([Ec({type:Object}),Du(`design:type`,Object)],Ou.prototype,`toggleHowTo`,void 0),customElements.get(`pwa-bottom-sheet`)||customElements.define(`pwa-bottom-sheet`,Ou);var ku=Bs`#pwa-install-element{-webkit-user-select:none;user-select:none}#pwa-install-element .install-dialog{--text-color-normal:#212121;--background-color:#fff;--border-bottom-color:#DBDCDE;--scrollbar-background-color:#fff;font-family:Roboto,"Segoe UI",system-ui;position:fixed;display:inline-block;opacity:0;visibility:hidden;z-index:2147483001}#pwa-install-element .install-dialog.chrome{max-width:380px;width:90%;min-height:90px;margin:0 auto;right:150px;left:auto;background-color:var(--background-color);filter:drop-shadow(0 5px 15px rgba(0, 0, 0, .3));font-size:15px;color:var(--text-color-normal);border-radius:8px;top:-100px;transition:top .5s ease-in-out,opacity .8s ease-in-out,max-height .35s ease-in-out}#pwa-install-element .install-dialog.chrome.available{opacity:1;top:28px;visibility:visible}#pwa-install-element .install-dialog.chrome .dialog-body{display:grid;grid-template-columns:70px 1fr}#pwa-install-element .install-dialog.chrome.gallery pwa-gallery{transition:opacity .3s ease-in-out .2s,max-height .5s ease-in-out;max-height:70vh;opacity:1}#pwa-install-element .install-dialog.mobile{--touch-header-color:#DBDCE0;top:0;max-width:414px;width:100%;bottom:auto;left:0;right:0;transition:none;transform:translateY(100vh);border-radius:0;border-top-left-radius:15px;border-top-right-radius:15px;padding-bottom:35px}#pwa-install-element .install-dialog.mobile.available{--translateY:translateY(calc(100vh - 85px));opacity:1;top:0;visibility:visible;transform:var(--translateY)}@media(prefers-color-scheme:dark){#pwa-install-element .install-dialog{--text-color-normal:#eee;--background-color:#1e1e1e;--border-bottom-color:#404140;--scrollbar-background-color:#424242}#pwa-install-element .install-dialog.mobile{--touch-header-color:#3f403f}}@media(max-width:767px)and (min-height:495px){#pwa-install-element .install-dialog.chrome.mobile{display:inline-block}#pwa-install-element .install-dialog.chrome{display:none}}@media(min-width:768px),(max-height:495px){#pwa-install-element .install-dialog.chrome.mobile{display:none}#pwa-install-element .install-dialog.chrome{display:inline-block}}@media(max-height:420px){#pwa-install-element .install-dialog.chrome .dialog-body .description{-webkit-line-clamp:3;max-height:70px}}`,Au=Bs`#pwa-install-element .install-dialog.apple{--text-color-normal:#333;--text-color-description:#333;--background-color:rgba(255, 255, 255, 0.8);--text-color-button:#fff;--background-color-button:#fff;--background-color-button-active:rgb(181,181,187);--border-bottom-color:rgba(0, 0, 0, 0.1);--icon-how-to-color:#527AFB;font-family:system-ui,-apple-system,HelveticaNeue,BlinkMacSystemFont,Roboto,"Segoe UI";max-width:380px;width:auto;margin:0 auto;right:0;left:0;font-size:15px;color:var(--text-color-normal);bottom:0;transition:transform .4s cubic-bezier(.33,1,.66,1),opacity .5s cubic-bezier(1,0,1,-2),border .35s ease-in-out;overflow:hidden;pointer-events:none;opacity:0;visibility:visible;transform:translateY(100%);will-change:opacity,transform}
60#pwa-install-element .install-dialog.apple.dialog-body{display:grid;grid-template-columns:95px 1fr;grid-template-rows:1fr auto;grid-template-areas:"icon description" "welcome welcome" "how-to how-to" "gallery gallery" "button button";border-radius:10px;border-bottom:1px solid transparent;background-color:var(--background-color);filter:drop-shadow(0 5px 15px rgba(0, 0, 0, .5));-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}#pwa-install-element .install-dialog.apple.dialog-body .icon{display:flex;align-items:center;grid-area:icon;border-bottom:1px solid var(--border-bottom-color)}#pwa-install-element .install-dialog.apple.dialog-body .icon .icon-image{width:64px;height:64px;margin:0 auto;border-radius:6px}#pwa-install-element .install-dialog.apple.dialog-body .close{height:26px;min-width:26px;line-height:0;margin-inline-end:7px;margin-top:7px;margin-inline-start:auto;padding:0;border-radius:50%;opacity:.5;outline:0;color:var(--text-color-normal);border:none;background-color:rgba(0,0,0,0);cursor:pointer;transition:opacity .2s ease-in-out,background-color .2s ease-in-out;grid-area:description}#pwa-install-element .install-dialog.apple.dialog-body .close svg{fill:var(--text-color-normal);width:18px}#pwa-install-element .install-dialog.apple.dialog-body .close:active,#pwa-install-element .install-dialog.apple.dialog-body .close:hover{opacity:1;background-color:var(--background-color-button)}#pwa-install-element .install-dialog.apple.dialog-body .about{display:grid;grid-template-rows:35px 60px;border-bottom:1px solid var(--border-bottom-color);grid-area:description}#pwa-install-element .install-dialog.apple.dialog-body .about .description,#pwa-install-element .install-dialog.apple.dialog-body .about .name{padding-inline-end:15px;overflow:hidden}#pwa-install-element .install-dialog.apple.dialog-body .about .name{font-weight:600;padding-top:10px;padding-inline-end:10px;line-height:22px;align-items:flex-start;display:flex}#pwa-install-element .install-dialog.apple.dialog-body .about .description{font-size:12px;line-height:15px;padding:0;margin-bottom:15px;overflow-y:auto;color:var(--text-color-description)}#pwa-install-element .install-dialog.apple.dialog-body .welcome-to-install{font-size:15px;grid-area:welcome;text-align:start;font-weight:400;padding:15px;width:auto;border-bottom:1px solid var(--border-bottom-color)}#pwa-install-element .install-dialog.apple .action-buttons{grid-area:button;grid-column-start:1;grid-column-end:3;grid-template-columns:unset;gap:unset;padding:15px}#pwa-install-element .install-dialog.apple .action-buttons .button-text{display:flex;flex-direction:row-reverse;align-items:center;gap:15px;justify-content:flex-end}#pwa-install-element .install-dialog.apple .action-buttons .dialog-button{padding:0 20px;text-align:start;font-size:16px}#pwa-install-element .install-dialog.apple .action-buttons .dialog-button.gallery{margin:0}#pwa-install-element .install-dialog.apple .action-buttons{margin:16px;flex-direction:column;border-radius:8px;overflow:hidden;padding:0}#pwa-install-element .install-dialog.apple .action-buttons .dialog-button{border-radius:0;padding:0 20px;text-align:start;font-size:16px}#pwa-install-element .install-dialog.apple .action-buttons .dialog-button.gallery{margin:0}#pwa-install-element .install-dialog.apple .action-buttons #icon-back{width:23px;rotate:90deg}#pwa-install-element .install-dialog.apple .dialog-button{display:grid;height:50px;width:100%;line-height:50px;border-radius:8px;color:var(--text-color-normal)}#pwa-install-element .install-dialog.apple .dialog-button.button{border:none;outline:0;font-family:system-ui,-apple-system,HelveticaNeue,BlinkMacSystemFont;cursor:pointer;-webkit-user-select:none;user-select:none;font-weight:400;font-size:17px;background-color:var(--background-color-button);-webkit-tap-highlight-color:transparent;outline:0}#pwa-install-element .install-dialog.apple .dialog-button.button svg{fill:var(--text-color-normal)}#pwa-install-element .install-dialog.apple .dialog-button.button.install .button-text{opacity:0;display:flex;align-items:center;transition:opacity .4s ease-in-out .1s;overflow:hidden}#pwa-install-element .install-dialog.apple .dialog-button.button.install .button-text>
60span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#pwa-install-element .install-dialog.apple .dialog-button.button.install .button-text>svg{flex-shrink:0;width:22px}#pwa-install-element .install-dialog.apple .dialog-button.button.install .button-text.show{opacity:1;visibility:visible;width:auto;height:auto}#pwa-install-element .install-dialog.apple .dialog-button.button.install .button-text.hide{opacity:0;position:absolute;width:0;height:0;visibility:hidden}#pwa-install-element .install-dialog.apple .dialog-button.button.gallery{display:flex;align-items:center;min-width:50px}#pwa-install-element .install-dialog.apple .dialog-button.button.gallery #pwa-gallery{margin:0 auto;width:23px}#pwa-install-element .install-dialog.apple .dialog-button.button:active{background-color:var(--background-color-button-active)}#pwa-install-element .install-dialog.apple .how-to-body{opacity:0;max-height:0;overflow:hidden;transition:opacity ease-in-out .5s,max-height .5s ease-in-out;grid-area:how-to}#pwa-install-element .install-dialog.apple .how-to-body .how-to-description{display:grid;-webkit-user-select:none;user-select:none;grid-auto-columns:1fr;grid-template-rows:1fr 1fr 1fr;gap:10px;padding:15px;padding-bottom:0}#pwa-install-element .install-dialog.apple .how-to-body .how-to-description .description-step{display:inline-flex;flex-direction:row;gap:15px;align-items:center;font-size:14px}#pwa-install-element .install-dialog.apple .how-to-body .how-to-description .description-step .svg-wrap{position:relative;display:inline-flex;flex-shrink:0;fill:var(--text-color-normal);width:50px;height:50px;align-items:center;border-radius:6px}#pwa-install-element .install-dialog.apple .how-to-body .how-to-description .description-step .svg-wrap #pwa-add,#pwa-install-element .install-dialog.apple .how-to-body .how-to-description .description-step .svg-wrap #pwa-safari,#pwa-install-element .install-dialog.apple .how-to-body .how-to-description .description-step .svg-wrap #pwa-share,#pwa-install-element .install-dialog.apple .how-to-body .how-to-description .description-step .svg-wrap #safari-dots{margin:0 auto}#pwa-install-element .install-dialog.apple .how-to-body .how-to-description .description-step .svg-wrap #pwa-share{margin-bottom:4px;transform:scale(.9)}#pwa-install-element .install-dialog.apple .how-to-body .how-to-description .description-step .svg-wrap #pwa-add{transform:scale(.9)}#pwa-install-element .install-dialog.apple .how-to-body .how-to-description .description-step .svg-wrap #pwa-safari{transform:scale(.92)}#pwa-install-element .install-dialog.apple .how-to-body .how-to-description .description-step .svg-wrap .step-count{position:absolute;line-height:12px;top:3px;left:4px}#pwa-install-element .install-dialog.apple .how-to-body .how-to-description .description-step .step-text{font-weight:600;text-align:start}#pwa-install-element .install-dialog.apple pwa-gallery{grid-column:1/3;max-height:0;opacity:0;transition:opacity ease-in-out .5s,max-height .5s ease-in-out;overflow:hidden}#pwa-install-element .install-dialog.apple pwa-gallery+.action-buttons{display:flex}#pwa-install-element .install-dialog.apple.available{opacity:1;pointer-events:unset;transform:translateY(0);transition:transform .5s cubic-bezier(.33,1,.66,1),border .35s ease-in-out}#pwa-install-element .install-dialog.apple.gallery pwa-gallery{transition:opacity .3s ease-in-out .2s,max-height .5s ease-in-out;max-height:70vh;opacity:1}#pwa-install-element .install-dialog.apple.how-to .dialog-body{border-bottom:1px solid #e0e0e0}#pwa-install-element .install-dialog.apple.how-to .how-to-body{opacity:1;max-height:400px;overflow-y:auto;transition:opacity .3s ease-in-out .2s,max-height .5s ease-in-out}#pwa-install-element .install-dialog.apple.how-to .dialog-button.button.gallery{height:0;opacity:0;min-height:0;padding:0;pointer-events:none}#pwa-install-element .install-dialog.apple.how-to .dialog-button.button.gallery+.install::before{visibility:hidden}#pwa-install-element .install-dialog.apple.gallery .dialog-button.button.install{height:0;opacity:0;min-height:0;padding:0;pointer-events:none}#pwa-install-element .install-dialog.apple.gallery .dialog-button.button.install::before{visibility:hidden}#pwa-install-element .install-dialog.apple.how-to.how-to-manual .action-buttons{margin-top:0;padding-top:0}#pwa-install-element .install-dialog.apple.how-to.how-to-manual .action-buttons .dialog-button{display:none}#pwa-install-element .install-dialog.apple.aqua{--border-bottom-color:rgb(95 95 95 / 30%);--divider-buttons-color:#85858580;--background-color:rgba(255, 255, 255, 0.5);--background-color-button:rgb(211 211 211 / 60%);--text-color-normal:#000;--text-color-description:rgba(75, 75, 75, 0.9);--base-color:255 255 255;--tint-color:rgb(var(--base-color));border:1px solid rgb(var(--base-color)/50%);border-radius:35px;grid-template-columns:100px 1fr;background:color-mix(in srgb,var(--tint-color) 20%,rgb(var(--base-color)/70%) 80%);box-shadow:inset 1px 1px 1px 0 color-mix(in srgb,var(--tint-color) 20%,rgb(var(--base-color)/25%) 80%),inset 0 0 1px 1px color-mix(in srgb,var(--tint-color) 20%,rgb(var(--base-color)/50%) 80%);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}#pwa-install-element .install-dialog.apple.aqua .about{margin-right:26px;grid-template-rows:56px 56px}#pwa-install-element .install-dialog.apple.aqua .about .name{align-items:flex-end}#pwa-install-element .install-dialog.apple.aqua .about .description,#pwa-install-element .install-dialog.apple.aqua .about .name{font-size:14px;margin:0;padding:0}#pwa-install-element .install-dialog.apple.aqua .icon{margin-left:26px}#pwa-install-element .install-dialog.apple.aqua .icon .icon-image{border-radius:14px;width:60px;height:60px;margin-left:0}#pwa-install-element .install-dialog.apple.aqua .dialog-button{transition:height .3s ease-in-out;height:48px}#pwa-install-element .install-dialog.apple.aqua .dialog-button.install{border-radius:18px}#pwa-install-element .install-dialog.apple.aqua .dialog-button.install .button-text>svg{width:22px}#pwa-install-element .install-dialog.apple.aqua .dialog-button.gallery{border-radius:50%}#pwa-install-element .install-dialog.apple.aqua .dialog-button.gallery+.install::before{content:"";display:inline-block;width:100%;height:0;
60border-bottom:1px solid var(--divider-buttons-color)}#pwa-install-element .install-dialog.apple.aqua .welcome-to-install{padding:15px 0;margin:0 26px}#pwa-install-element .install-dialog.apple.aqua .action-buttons{margin:16px;flex-direction:column;border-radius:26px;overflow:hidden;padding:0}#pwa-install-element .install-dialog.apple.aqua .action-buttons .button-text{display:flex;flex-direction:row-reverse;align-items:center;gap:15px;justify-content:flex-end}#pwa-install-element .install-dialog.apple.aqua .action-buttons .dialog-button{border-radius:0;padding:0 20px;text-align:start;font-size:16px}#pwa-install-element .install-dialog.apple.aqua .action-buttons .dialog-button.gallery{margin:0}#pwa-install-element .install-dialog.apple.aqua .action-buttons #icon-back{width:23px;rotate:90deg}#pwa-install-element .install-dialog.apple.aqua .action-buttons svg{fill:var(--text-color-normal)}#pwa-install-element .install-dialog.apple.aqua .close{height:42px;min-width:42px;margin-inline-end:14px;margin-top:14px;background-color:rgb(var(--base-color)/80%);border:1px solid rgb(var(--base-color)/90%)}#pwa-install-element .install-dialog.apple.aqua .close svg{width:28px}#pwa-install-element .install-dialog.apple.aqua.apple-mobile.how-to .dialog-button.button.gallery{height:0;opacity:0;min-height:0;padding:0}#pwa-install-element .install-dialog.apple.aqua.apple-mobile.how-to .dialog-button.button.gallery+.install::before{visibility:hidden}#pwa-install-element .install-dialog.apple.aqua.apple-mobile.how-to .install{border-top-left-radius:26px;border-top-right-radius:26px}#pwa-install-element .install-dialog.apple.aqua.apple-mobile.gallery .dialog-button.button.install{height:0;opacity:0;min-height:0;padding:0}#pwa-install-element .install-dialog.apple.aqua.apple-mobile.gallery .dialog-button.button.install::before{visibility:hidden}#pwa-install-element .install-dialog.apple.aqua.apple-mobile.gallery .dialog-button.button.gallery{border-bottom-left-radius:26px;border-bottom-right-radius:26px}#pwa-install-element .install-dialog.apple.aqua.apple-mobile .how-to-body .how-to-description .description-step .svg-wrap{border-radius:50%;width:60px;height:60px;background-color:color-mix(in srgb,var(--tint-color) 20%,color-mix(in srgb,var(--text-color-normal) 10%,transparent) 50%)}#pwa-install-element .install-dialog.apple.desktop{--text-color-normal:rgba(0, 0, 0, 0.85);--text-color-description:rgba(0, 0, 0, 0.85);--icon-how-to-color:rgba(0, 0, 0, 0.50);--background-color:rgb(246 246 246 / 85%);--background-color-button:#c6c1c6;--background-color-button-active:linear-gradient(0deg, rgba(64,121,250,1) 0%, rgba(84,144,251,1) 100%);--border-bottom-color:rgb(185 185 185);grid-template-columns:65px 1fr;padding:10px;max-width:282px;border:1px solid var(--border-bottom-color)}#pwa-install-element .install-dialog.apple.desktop .icon{margin-left:0;align-items:flex-start;padding-bottom:12px}#pwa-install-element .install-dialog.apple.desktop .icon .icon-image{border-radius:10px;width:52px;height:52px;margin-left:0;filter:drop-shadow(0 1px 1px rgba(0, 0, 0, .15))}#pwa-install-element .install-dialog.apple.desktop .close{background:var(--background-color-button);height:20px;min-width:20px;margin-inline-end:-5px;margin-top:-5px}#pwa-install-element .install-dialog.apple.desktop .close svg{width:14px}#pwa-install-element .install-dialog.apple.desktop .about{display:flex;flex-direction:column;justify-content:center;gap:5px;padding-bottom:8px;padding-right:15px;margin-right:0}#pwa-install-element .install-dialog.apple.desktop .about .name{font-size:13px;line-height:16px;font-weight:700;padding:0;margin:0}#pwa-install-element .install-dialog.apple.desktop .about .description{margin:0;min-width:100%}#pwa-install-element .install-dialog.apple.desktop .about .description,#pwa-install-element .install-dialog.apple.desktop .welcome-to-install{font-size:11px;line-height:14px}#pwa-install-element .install-dialog.apple.desktop .description{border-bottom:none}#pwa-install-element .install-dialog.apple.desktop .welcome-to-install{padding:12px 0;margin:0}
60#pwa-install-element .install-dialog.apple.desktop .action-buttons{padding:0;margin:0;padding-top:8px}#pwa-install-element .install-dialog.apple.desktop .action-buttons .dialog-button{font-size:13px;font-weight:400;padding:6px 10px;border-radius:6px;height:unset;min-height:30px;line-height:18px;background-color:rgba(0,0,0,0)}#pwa-install-element .install-dialog.apple.desktop .action-buttons .dialog-button.install svg{transform:none;width:18px}#pwa-install-element .install-dialog.apple.desktop .action-buttons .dialog-button.gallery #pwa-gallery{width:18px;height:14px}#pwa-install-element .install-dialog.apple.desktop .action-buttons .dialog-button .button-text{gap:10px}#pwa-install-element .install-dialog.apple.desktop .action-buttons .dialog-button #icon-back{width:14px}#pwa-install-element .install-dialog.apple.desktop .close:active,#pwa-install-element .install-dialog.apple.desktop .dialog-button.button:active{background:var(--background-color-button);filter:brightness(105%)}#pwa-install-element .install-dialog.apple.desktop .close:active .button-text,#pwa-install-element .install-dialog.apple.desktop .dialog-button.button:active .button-text{filter:brightness(90%)}#pwa-install-element .install-dialog.apple.desktop .how-to-body .how-to-description{padding:0 3px;padding-top:12px;grid-template-rows:1fr 1fr}#pwa-install-element .install-dialog.apple.desktop .how-to-body .how-to-description .description-step{font-size:12px;gap:16px}#pwa-install-element .install-dialog.apple.desktop .how-to-body .how-to-description .description-step .svg-wrap{width:32px;height:32px;color:var(--icon-how-to-color)}#pwa-install-element .install-dialog.apple.desktop .how-to-body .how-to-description .description-step .svg-wrap #pwa-share{width:16px;margin-bottom:2px;transform:none}#pwa-install-element .install-dialog.apple.desktop .how-to-body .how-to-description .description-step .svg-wrap #pwa-add{width:18px;transform:none}#pwa-install-element .install-dialog.apple.desktop.gallery #pwa-gallery{transform:rotate(180deg)}#pwa-install-element .install-dialog.apple.desktop.aqua{--border-bottom-color:rgb(95 95 95 / 50%);--background-color:rgb(246 246 246 / 50%);padding:16px}#pwa-install-element .install-dialog.apple.desktop.aqua .icon .icon-image{border-radius:14px}#pwa-install-element .install-dialog.apple.desktop.aqua .about{padding-bottom:12px}#pwa-install-element .install-dialog.apple.desktop.aqua .action-buttons{border-radius:unset}#pwa-install-element .install-dialog.apple.desktop.aqua .action-buttons .install::before{content:none}#pwa-install-element .install-dialog.apple.desktop.aqua .action-buttons:last-child{border-bottom-left-radius:14px;border-bottom-right-radius:14px}#pwa-install-element .install-dialog.apple.desktop.aqua .close{margin-inline-end:0;margin-top:0;background:unset;background-color:rgb(var(--base-color)/80%)}#pwa-install-element .install-dialog.apple.desktop.aqua .how-to-body .how-to-description .description-step .svg-wrap{color:unset}@media(min-width:667px){#pwa-install-element .install-dialog.apple{top:0;bottom:unset;transform:translateY(calc(-100% - 40px));right:28px;left:auto}#pwa-install-element .install-dialog.apple.available{top:28px;bottom:auto;max-height:calc(95vh - 28px)}}@media(min-width:667px)and (max-width:1366px){#pwa-install-element .install-dialog.apple{right:max(28px,env(safe-area-inset-right,28px));left:auto}}@media(max-width:666px){#pwa-install-element .install-dialog.apple .description-step .step-text{font-size:13px}#pwa-install-element .install-dialog.apple.available{bottom:20px;max-height:calc(88vh - 20px)}#pwa-install-element .install-dialog.apple.dialog-body{filter:drop-shadow(rgba(0, 0, 0, .5) 0 0 15px)}}@media(max-width:428px){#pwa-install-element .install-dialog.apple.dialog-body:not(.aqua){max-width:100vw;filter:drop-shadow(rgba(0, 0, 0, .5) 0 -5px 10px);border-bottom-left-radius:0;border-bottom-right-radius:0}#pwa-install-element .install-dialog.apple.dialog-body:not(.aqua) .action-buttons{margin-bottom:max(16px,env(safe-area-inset-bottom))}#pwa-install-element .install-dialog.apple.dialog-body:not(.aqua).available{bottom:0;max-height:85vh}#pwa-install-element .install-dialog.apple.dialog-body.aqua{bottom:calc(20px + env(safe-area-inset-bottom));margin:0 max(env(safe-area-inset-left),20px)}}@media(max-height:548px){#pwa-install-element .install-dialog.apple.dialog-body.available{overflow-y:auto;max-height:calc(90vh - 28px - env(safe-area-inset-bottom,0px))}}@media(max-height:600px){#pwa-install-element .install-dialog.apple pwa-gallery{overflow-y:auto}}@media(prefers-color-scheme:dark){#pwa-install-element .install-dialog.apple.dialog-body{--text-color-normal:#fff;--text-color-description:#9E9AA1;--background-color:rgb(25 25 25 / 90%);--background-color-button:#353535;--background-color-button-active:#454545;--border-bottom-color:#353535}#pwa-install-element .install-dialog.apple.dialog-body .close:active,#pwa-install-element .install-dialog.apple.dialog-body .dialog-button.button:active{filter:brightness(105%)}#pwa-install-element .install-dialog.apple.dialog-body .close:active .button-text,#pwa-install-element .install-dialog.apple.dialog-body .dialog-button.button:active .button-text{filter:brightness(90%)}#pwa-install-element .install-dialog.apple.dialog-body.desktop{--text-color-description:var(--text-color-normal);--icon-how-to-color:#bcb8b6;--background-color:rgb(45 45 45 / 90%);--border-bottom-color:#5b5b5b;--background-color-button:#6d6765;--background-color-button-active:linear-gradient(0deg, rgba(59,108,200,1) 0%, rgba(66,123,250,1) 100%);outline:1px solid #1c1c1c;color-scheme:dark}#pwa-install-element .install-dialog.apple.dialog-body.desktop.aqua{outline:0;--border-bottom-color:rgb(142 142 142 / 65%)}#pwa-install-element .install-dialog.apple.dialog-body.aqua{--text-color-normal:#fff;--text-color-description:rgb(189 177 175 / 80%);--background-color-button:rgb(54 56 54 / 60%);--divider-buttons-color:#4e4e51;--border-bottom-color:rgb(84 84 88 / 65%);--base-color:50 50 50;border-color:rgb(var(--base-color)/30%)}#pwa-install-element .install-dialog.apple.dialog-body.aqua .close{background-color:rgba(30,30,30,.8);border:1px solid rgba(60,60,60,.9)}}`,ju=(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g=!1)=>{let _=()=>({available:c,gallery:f}),v=!i&&s.screenshots&&s.screenshots.length;return mc` 61 <div id="pwa-install-element" dir="${g?`rtl`:`ltr`}"> 62 <div class="install-dialog chrome ${Ac(_())}"> 63 <div class="dialog-body"> 64 <div class="icon"> 65 <img src="${o}" alt="icon" class="icon-image" draggable="false"> 66 </div> 67 <div class="about"> 68 <div class="name"> 69 <label>${e}</label> 70 ${a?``:mc`<button class="material-button secondary close" @click='${l}'> 71 <svg viewBox="0 0 24 24">
71<path d="M5.3 18.7c.2.2.4.3.7.3s.5-.1.7-.3l5.3-5.3 5.3 5.3a1.08 1.08 0 0 0 .7.3 1.08 1.08 0 0 0 .7-.3c.4-.4.4-1 0-1.4L13.4 12l5.3-5.3c.4-.4.4-1 0-1.4s-1-.4-1.4 0L12 10.6 6.7 5.3c-.4-.4-1-.4-1.4 0s-.4 1 0 1.4l5.3 5.3-5.3 5.3c-.4.4-.4 1 0 1.4z"/></svg> 72 </button>`} 73 </div> 74 <div class="hostname">${location.hostname}</div> 75 76 </div> 77 ${t?mc`<div class="description app-description">${t}</div>`:``} 78 ${r?``:mc`<hr><div class="description install-description">${n||`${dl(`This site has app functionality.`)} ${dl(`Install it on your device for extensive experience and easy access.`)}`}</div>`} 79 ${v&&c?mc`<pwa-gallery .screenshots=${s.screenshots} .rtl="${g}"></pwa-gallery>`:``} 80 <div class="action-buttons"> 81 ${v?mc`<button class="material-button secondary" @click='${d}'>${dl(f?`Less`:`More`)}</button>`:``} 82 <button class="material-button primary install" @click='${u}'>${dl(`Install`)}</button> 83 </div> 84 </div> 85 </div> 86 <div class="install-dialog chrome mobile ${Ac(_())}"> 87 <pwa-bottom-sheet .props=${{name:e,icon:o,description:t}} .disableClose=${a} .install=${u} .hideDialog=${l} .toggleHowTo=${p} .howToRequested=${m} .fallback=${h}> 88 ${v&&c?mc`<pwa-gallery .screenshots=${s.screenshots} .rtl="${g}"></pwa-gallery>`:``} 89 </pwa-bottom-sheet> 90 </div> 91 </div>`},Mu=(e,t,n,r,i,a,o=!1,s,c,l,u,d,f,p,m,h=!1,g=!1,_=!1,v={})=>{let y=!i&&c.screenshots&&c.screenshots.length,b={"--tint-color":vu.getPageBackgroundColor(),...v};return mc` 92 <aside id="pwa-install-element" dir="${h?`rtl`:`ltr`}"> 93 <article class="install-dialog apple ${Ac({available:l,aqua:g,"how-to":f,"how-to-manual":o,gallery:m,desktop:_,"apple-mobile":!_})} dialog-body" style="${cne(b)}"> 94 <div class="icon"> 95 <img src="${s}" alt="icon" class="icon-image" draggable="false"> 96 </div> 97 <div class="about"> 98 <div class="name"> 99 ${e} 100 </div> 101 <div class="description">${t||location.hostname}</div> 102 </div> 103 ${a?``:mc`<button type="button" title="close" class="close" @click='${u}' ontouchstart=""> 104 <svg viewBox="0 0 24 24"><path d="M5.3 18.7c.2.2.4.3.7.3s.5-.1.7-.3l5.3-5.3 5.3 5.3a1.08 1.08 0 0 0 .7.3 1.08 1.08 0 0 0 .7-.3c.4-.4.4-1 0-1.4L13.4 12l5.3-5.3c.4-.4.4-1 0-1.4s-1-.4-1.4 0L12 10.6 6.7 5.3c-.4-.4-1-.4-1.4 0s-.4 1 0 1.4l5.3 5.3-5.3 5.3c-.4.4-.4 1 0 1.4z"/></svg> 105 </button>`} 106 ${r?``:mc`<div class="welcome-to-install"> 107 ${n||`${dl(`This site has app functionality.`)} ${dl(_?`Add it to your Dock for extensive experience and easy access.`:`Add it to your Home Screen for extensive experience and easy access.`)}`}</div>`} 108 <div class="how-to-body"> 109 <div class="how-to-description"> 110 ${_?``:mc` 111 <div class="description-step"> 112 <div class="svg-wrap"> 113 <svg id="pwa-safari" viewBox="0 0 20.283 19.932" width="24" height="24"> 114 <g fill="currentColor"><path d="M9.96 19.922c5.45 0 9.962-4.522 9.962-9.961C19.922 4.51 15.4 0 9.952 0 4.511 0 0 4.512 0 9.96c0 5.44 4.521 9.962 9.96 9.962Zm0-1.66A8.26 8.26 0 0 1 1.67 9.96c0-4.61 3.672-8.3 8.281-8.3 4.61 0 8.31 3.69 8.31 8.3 0 4.61-3.69 8.3-8.3 8.3Z"/><path d="m5.87 14.883 5.605-2.735a1.47 1.47 0 0 0 .683-.673l2.725-5.596c.312-.664-.166-1.182-.85-.84L8.447 7.764c-.302.136-.508.341-.674.673L5.03
11414.043c-.312.645.196 1.152.84.84Zm4.09-3.72A1.19 1.19 0 0 1 8.77 9.97c0-.664.527-1.201 1.19-1.201a1.2 1.2 0 0 1 1.202 1.2c0 .655-.537 1.192-1.201 1.192Z"/></g> 115 </svg> 116 </div> 117 <div class="step-text">${dl(`Open in your main browser`)}</div> 118 </div>`} 119 ${_||vu.isAppleMobileNonSafari()||vu.isIPad()||!g?``:mc` 120 <div class="description-step"> 121 <div class="svg-wrap"> 122 <svg id="safari-dots" width="22" height="24" viewBox="0 0 24 24"> 123 <circle cx="2" cy="12" r="2" fill="currentColor"/> 124 <circle cx="12" cy="12" r="2" fill="currentColor"/> 125 <circle cx="22" cy="12" r="2" fill="currentColor"/> 126 </svg> 127 </div> 128 <div class="step-text">${dl(`Press More if no Share icon`)}</div> 129 </div>`} 130 <div class="description-step"> 131 <div class="svg-wrap"> 132 <svg id="pwa-share" width="25" height="32" viewBox="0 0 17.695 26.475"> 133 <g fill="currentColor"><path d="M17.334 10.762v9.746c0 2.012-1.025 3.027-3.066 3.027H3.066C1.026 23.535 0 22.52 0 20.508v-9.746C0 8.75 1.025 7.734 3.066 7.734h2.94v1.573h-2.92c-.977 0-1.514.527-1.514 1.543v9.57c0 1.015.537 1.543 1.514 1.543h11.152c.967 0 1.524-.527 1.524-1.543v-9.57c0-1.016-.557-1.543-1.524-1.543h-2.91V7.734h2.94c2.04 0 3.066 1.016 3.066 3.028Z"/><path d="M8.662 15.889c.42 0 .781-.352.781-.762V5.097l-.058-1.464.654.693 1.484 1.582a.698.698 0 0 0 .528.235c.4 0 .713-.293.713-.694 0-.205-.088-.361-.235-.508l-3.3-3.183c-.196-.196-.362-.264-.567-.264-.195 0-.361.069-.566.264L4.795 4.94a.681.681 0 0 0-.225.508c0 .4.293.694.703.694.186 0 .4-.079.538-.235l1.474-1.582.664-.693-.058 1.465v10.029c0 .41.351.762.771.762Z"/></g> 134 </svg> 135 </div> 136 <div class="step-text">${dl(`Press Share in Navigation bar`)}</div> 137 </div> 138 ${!_&&vu.isIPad()?mc` 139 <div class="description-step"> 140 <div class="svg-wrap"> 141 <svg id="safari-dots" width="22" height="24" viewBox="0 0 24 24"> 142 <circle cx="2" cy="12" r="2" fill="currentColor"/> 143 <circle cx="12" cy="12" r="2" fill="currentColor"/> 144 <circle cx="22" cy="12" r="2" fill="currentColor"/> 145 </svg> 146 </div> 147 <div class="step-text">${dl(`Press More in Share menu`)}</div> 148 </div>`:``} 149 <div class="description-step"> 150 <div class="svg-wrap"> 151 ${_?mc`<svg id="pwa-add" viewBox="0 0 23.389 17.979" width="25" height="25"> 152 <g fill="currentColor"><path d="M1.045 3.291v1.377h20.937V3.291Zm2.021 14.688h16.895c2.05 0 3.066-1.006 3.066-3.018V3.027C23.027 1.016 22.012 0 19.961 0H3.066C1.026 0 0 1.016 0 3.027v11.934c0 2.012 1.025 3.018 3.066 3.018Zm.02-1.573c-.977 0-1.514-.517-1.514-1.533V3.115c0-1.015.537-1.543 1.514-1.543H19.94c.967 0 1.514.528 1.514 1.543v11.758c0 1.016-.547 1.533-1.514 1.533Z"/><path d="M4.2 14.014c0 .508.35.85.868.85h12.92c.518 0 .87-.343.87-.85v-1.465c0-.508-.352-.85-.87-.85H5.068c-.517 0-.869.342-.869.85Z"/></g> 153 </svg>`:mc`<svg id="pwa-add" width="25" height="25"> 154 <g><path d="m23.40492,1.60784c-1.32504,-1.32504 -3.19052,-1.56912 -5.59644,-1.56912l-10.65243,0c-2.33622,0 -4.2017,0.24408 -5.5267,1.56912c-1.32504,1.34243 -1.56911,3.17306 -1.56911,5.50924l0,10.5827c0,2.40596 0.22665,4.254 1.55165,5.57902c1.34246,1.32501 3.19052,1.5691 5.59647,1.5691l10.60013,0c2.40592,0 4.2714,-0.24408 5.59644,-1.5691c1.325,-1.34245 1.55166,-3.17306 1.55166,-5.57902l0,-10.51293c0,-2.40596 -0.22666,-4.25401 -1.55166,-5.57901zm-0.38355,5.21289l0,11.24518c0,1.51681 -0.20924,2.94643 -1.02865,3.78327c-0.83683,0.83685 -2.30134,1.0635 -3.81815,1.0635l-11.33234,0c-1.51681,0 -2.96386,-0.22665
154-3.80073,-1.0635c-0.83683,-0.83684 -1.04607,-2.26646 -1.04607,-3.78327l0,-11.19288c0,-1.5517 0.20924,-3.01617 1.02865,-3.85304c0.83687,-0.83683 2.31876,-1.04607 3.87042,-1.04607l11.28007,0c1.51681,0 2.98132,0.22666 3.81815,1.06353c0.81941,0.81941 1.02865,2.26645 1.02865,3.78327zm-10.53039,12.08205c0.64506,0 1.02861,-0.43586 1.02861,-1.13326l0,-4.34117l4.53294,0c0.66252,0 1.13326,-0.36613 1.13326,-0.99376c0,-0.64506 -0.43586,-1.02861 -1.13326,-1.02861l-4.53294,0l0,-4.53294c0,-0.6974 -0.38355,-1.13326 -1.02861,-1.13326c-0.62763,0 -0.99376,0.45332 -0.99376,1.13326l0,4.53294l-4.51552,0c-0.69737,0 -1.15069,0.38355 -1.15069,1.02861c0,0.62763 0.48817,0.99376 1.15069,0.99376l4.51552,0l0,4.34117c0,0.66252 0.36613,1.13326 0.99376,1.13326z" /></g> 155 </svg>`} 156 </div> 157 <div class="step-text">${dl(_?`Press Add to Dock`:`Scroll down to "Add to Home Screen"`)}</div> 158 </div> 159 </div> 160 </div> 161 ${y&&l?mc`<pwa-gallery .screenshots=${c.screenshots} .theme="${_?`apple_desktop`:`apple_mobile`}" .rtl="${h}"></pwa-gallery>`:``} 162 <div class="action-buttons"> 163 ${y?mc`<button class="dialog-button button gallery" @click=${p} ontouchstart=""> 164 <span class="button-text"> 165 ${m?mc`<span>${dl(`Back`)}</span> 166 <svg id="icon-back" viewBox="0 0 10 6"><path d="m1.102 2.21 3.169 3.24c.22.222.462.333.729.333a.94.94 0 0 0 .378-.083 1.19 1.19 0 0 0 .347-.25L8.89 2.21a.8.8 0 0 0 .246-.593.838.838 0 0 0-.118-.44.884.884 0 0 0-.312-.311.84.84 0 0 0-1.063.167L4.854 3.92h.299L2.359 1.033a.868.868 0 0 0-.642-.286.822.822 0 0 0-.43.119.935.935 0 0 0-.312.312.863.863 0 0 0-.115.44c0 .116.02.223.057.32a.898.898 0 0 0 .185.272Z"/>`:mc` 167 <span>${dl(`Show Gallery`)}</span> 168 <svg id="pwa-gallery" width="26" height="26" viewBox="0 0 23.538 18.022"><path d="M2.79 18.022h17.958c1.834 0 2.79-.969 2.79-2.778V2.791C23.538.969 22.582 0 20.748 0H2.791C.956 0 0 .956 0 2.79v12.454c0 1.835.956 2.778 2.79 2.778zM.879 2.83C.878 1.55 1.55.88 2.816.88h17.906c1.228 0 1.938.671 1.938 1.95v12.067L16.756 9.47c-.517-.414-.995-.685-1.615-.685-.607 0-1.085.22-1.576.672L8.927 13.59l-1.938-1.796c-.426-.387-.853-.607-1.382-.607-.504 0-.879.207-1.305.594L.878 14.986zm6.46 6.356a2.39 2.39 0 002.377-2.39c0-1.304-1.072-2.39-2.377-2.39a2.401 2.401 0 00-2.39 2.39 2.393 2.393 0 002.39 2.39z"/> 169 </svg>`} 170 </span> 171 172 </button>`:``} 173 <button class="dialog-button button install" @click=${d} ontouchstart=""> 174 <span class="button-text ${f?`show`:`hide`}"> 175 <span>${dl(`Back`)}</span> 176 <svg id="icon-back" viewBox="0 0 10 6"><path d="m1.102 2.21 3.169 3.24c.22.222.462.333.729.333a.94.94 0 0 0 .378-.083 1.19 1.19 0 0 0 .347-.25L8.89 2.21a.8.8 0 0 0 .246-.593.838.838 0 0 0-.118-.44.884.884 0 0 0-.312-.311.84.84 0 0 0-1.063.167L4.854 3.92h.299L2.359 1.033a.868.868 0 0 0-.642-.286.822.822 0 0 0-.43.119.935.935 0 0 0-.312.312.863.863 0 0 0-.115.44c0 .116.02.223.057.32a.898.898 0 0 0 .185.272Z"/> 177 </span> 178 <span class="button-text ${f?`hide`:`show`}"> 179 <span>${dl(_?`Add to Dock`:`Add to Home Screen`)}</span> 180 <svg viewBox="0 0 25 25"> 181 <use href="#pwa-add"></use> 182 </svg> 183 </span> 184 </button> 185 </div> 186 </article> 187 </aside>`},Nu=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},Pu=function(e,t){if(typeof Reflect==`object`&&typeof Reflect.metadata==`function`)return Reflect.metadata(e,t)},Fu=class extends Tc{constructor(){super(...arguments),this.manifestUrl=`/manifest.json`,this.icon=``,this.name=``,this.description=``,this.installDescription=``,this.disableDescription=!1,this.disableScreenshots=!1,this.disableScreenshotsApple=!1,this.disableScreenshotsChrome=!1,this.manualApple=!1,this.manualChrome=!1,this.manualHowTo=!1,this.disableChrome=!1,this.disableClose=!1,this.disableFallback=!1,this.useLocalStorage=!1,this.styles={},this.externalPromptEvent=null,this.platforms=[],this.userChoiceResult=``,this.isDialogHidden=vu.getStorageFlag(`pwa-hide-install`),this.isInstallAvailable=!1,this.isAppleMobilePlatform=!1,this.isAppleDesktopPlatform=!1,this.isApple26Plus=!1,this.isAndroidFallback=!1,this.isAndroid=!1,this.isUnderStandaloneMode=!1,this.isRelatedAppsInstalled=!1,this._isRTL=!1,this._manifest=new hu,this._howToRequested=!1,this._galleryRequested=!1,this._install={handleEvent:()=>{window.defferedPromptEvent&&(this.hideDialog(),window.defferedPromptEvent.prompt(),window.defferedPromptEvent.userChoice.then(e=>{this.userChoiceResult=e.outcome,vu.eventUserChoiceResult(this,this.userChoiceResult)}).catch(e=>{vu.eventInstalledFail(this)}),window.defferedPromptEvent=null)},passive:!0},this.install=()=>{this.isAppleMobilePlatform||this.isAppleDesktopPlatform?(this._howToRequested=!0,this.requestUpdate()):this._install.handleEvent()},this._hideDialog={handleEvent:()=>{this.isDialogHidden=!0,vu.setStorageFlag(`pwa-hide-install`,!0,this.useLocalStorage),this.requestUpdate()},passive:!0},this._hideDialogUser=()=>{vu.eventUserChoiceResult(this,`dismissed`),this.userChoiceResult=`dismissed`,this.hideDialog()},this.hideDialog=()=>{this._hideDialog.handleEvent()},this.showDialog=(e=!1)=>{this.isDialogHidden=!1,e&&(this.isInstallAvailable=!0),vu.setStorageFlag(`pwa-hide-install`,!1,this.useLocalStorage),this.requestUpdate()},this.getInstalledRelatedApps=async()=>await vu.getInstalledRelatedApps(),this._toggleHowTo={handleEvent:()=>{this._howToRequested=!this._howToRequested,this._howToRequested&&this._galleryRequested&&(this._galleryRequested=!1),this.requestUpdate(),this._howToRequested&&vu.eventInstallHowTo(this)},passive:!0},this._toggleGallery={handleEvent:()=>{this._galleryRequested=!this._galleryRequested,this._howToRequested&&this._galleryRequested&&(this._howToRequested=!1),this._galleryRequested&&vu.eventGallery(this),this.requestUpdate()},passive:!0},this._init=async()=>{window.defferedPromptEvent=null,await this._checkPlatform(),await this._checkInstallAvailable(),`onappinstalled`in window&&window.addEventListener(`appinstalled`,e=>{window.defferedPromptEvent=null,this.isInstallAvailable=!1,this.requestUpdate(),vu.eventInstalledSuccess(this)}),Object.assign(this,await vu.fetchAndProcessManifest(this.manifestUrl,this.icon,this.name,this.description))},this._requestUpdate=()=>{this.requestUpdate()}}static get styles(){return[ku,Cu,Au]}async _checkPlatform(){this.isUnderStandaloneMode=vu.isStandalone(),this.isRelatedAppsInstalled=await vu.isRelatedAppsInstalled(),this.isAppleMobilePlatform=vu.isAppleMobile(),this.isAppleDesktopPlatform=vu.isAppleDesktop(),this.isApple26Plus=vu.isApple26Plus()&&(this.isAppleMobilePlatform||this.isAppleDesktopPlatform),this.isAndroidFallback=vu.isAndroidFallback(),this.isAndroid=vu.isAndroid()}async _triggerAppleDialog(){setTimeout(()=>{this.isInstallAvailable=!0,this.requestUpdate(),vu.eventInstallAvailable(this)},500)}async _checkInstallAvailable(){if(this.isUnderStandaloneMode)return;if(this.isAppleMobilePlatform||this.isAppleDesktopPlatform)return this.manualApple&&this.hideDialog(),void(document.readyState===`complete`?await this._triggerAppleDialog():window.addEventListener(`load`,async()=>{await this._triggerAppleDialog()}));let e=!1;if(!this.disableChrome&&window.BeforeInstallPromptEvent){this.manualChrome&&this.hideDialog();let t=t=>{window.defferedPromptEvent=t,t.preventDefault(),this.platforms=t.platforms,this.isRelatedAppsInstalled?this.isInstallAvailable=!1:(this.isInstallAvailable=!0,vu.eventInstallAvailable(this)),this.userChoiceResult===`accepted`&&(this.isDialogHidden=!0,vu.eventInstalledSuccess(this)),e=!0,this.isAndroidFallback=!1,this.requestUpdate()};this.externalPromptEvent==null?window.addEventListener(`beforeinstallprompt`,t):setTimeout(()=>t(this.externalPromptEvent),300)}if(!this.disableFallback&&this.isAndroid&&!e){if(this.isAndroidFallback)return void setTimeout(()=>{this.isInstallAvailable=!0,this.requestUpdate(),vu.eventInstallAvailable(this)},1e3);if(`userActivation`in navigator&&!this.isRelatedAppsInstalled){let t=navigator.userActivation,n=setInterval(()=>{(t.isActive||t.hasBeenActive)&&(e||(this.isAndroidFallback=!0,this.isInstallAvailable=!0,this.requestUpdate(),vu.eventInstallAvailable(this)),clearInterval(n))},1e3);setTimeout(()=>clearInterval(n),3e4)}}}async connectedCallback(){await(async e=>{e.slice(0,2)===`nb`&&(e=`no`),e===`zh`&&(e=`zh-CN`);try{du.get(e)?await pu(e):await pu(e.slice(0,2))}catch{}})(navigator.language),this._isRTL=(()=>{let e=fu();return[`ar`,`he`,`fa`,`ur`].includes(e)})(),await this._init(),super.connectedCallback()}willUpdate(e){this.externalPromptEvent&&e.has(`externalPromptEvent`)&&typeof this.externalPromptEvent==`object`&&this._init()}render(){return this.isAppleMobilePlatform||this.isAppleDesktopPlatform?mc`${Mu(this.name,this.description,this.installDescription,this.disableDescription,this.disableScreenshots||this.disableScreenshotsApple,this.disableClose,this.manualHowTo,this.icon,this._manifest,this.isInstallAvailable&&!this.isDialogHidden,this._hideDialogUser,this._toggleHowTo,this._howToRequested||this.manualHowTo,this._toggleGallery,this._galleryRequested,this._isRTL,this.isApple26Plus,this.isAppleDesktopPlatform,this.styles)}`:mc`${ju(this.name,this.description,this.installDescription,this.disableDescription,this.disableScreenshots||this.disableScreenshotsChrome,this.disableClose,this.icon,this._manifest,this.isInstallAvailable&&!this.isDialogHidden,this._hideDialogUser,this._install,this._toggleGallery,this._galleryRequested,this._toggleHowTo,this._howToRequested,this.isAndroidFallback,this._isRTL)}`}};Nu([Ec({attribute:`manifest-url`}),Pu(`design:type`,Object)],Fu.prototype,`manifestUrl`,void 0),Nu([Ec(),Pu(`design:type`,Object)],Fu.prototype,`icon`,void 0),Nu([Ec(),Pu(`design:type`,Object)],Fu.prototype,`name`,void 0),Nu([Ec(),Pu(`design:type`,Object)],Fu.prototype,`description`,void 0),Nu([Ec({attribute:`install-description`}),Pu(`design:type`,Object)],Fu.prototype,`installDescription`,void 0),Nu([Ec({attribute:`disable-install-description`,type:Boolean}),Pu(`design:type`,Object)],Fu.prototype,`disableDescription`,void 0),Nu([Ec({attribute:`disable-screenshots`,type:Boolean}),Pu(`design:type`,Object)],Fu.prototype,`disableScreenshots`,void 0),Nu([Ec({attribute:`disable-screenshots-apple`,type:Boolean}),Pu(`design:type`,Object)],Fu.prototype,`disableScreenshotsApple`,void 0),Nu([Ec({attribute:`disable-screenshots-chrome`,type:Boolean}),Pu(`design:type`,Object)],Fu.prototype,`disableScreenshotsChrome`,void 0),Nu([Ec({attribute:`manual-apple`,type:Boolean}),Pu(`design:type`,Object)],Fu.prototype,`manualApple`,void 0),Nu([Ec({attribute:`manual-c
187hrome`,type:Boolean}),Pu(`design:type`,Object)],Fu.prototype,`manualChrome`,void 0),Nu([Ec({attribute:`manual-how-to`,type:Boolean}),Pu(`design:type`,Object)],Fu.prototype,`manualHowTo`,void 0),Nu([Ec({attribute:`disable-chrome`,type:Boolean}),Pu(`design:type`,Object)],Fu.prototype,`disableChrome`,void 0),Nu([Ec({attribute:`disable-close`,type:Boolean}),Pu(`design:type`,Object)],Fu.prototype,`disableClose`,void 0),Nu([Ec({attribute:`disable-android-fallback`,type:Boolean}),Pu(`design:type`,Object)],Fu.prototype,`disableFallback`,void 0),Nu([Ec({attribute:`use-local-storage`,type:Boolean}),Pu(`design:type`,Object)],Fu.prototype,`useLocalStorage`,void 0),Nu([Ec({attribute:`styles`,type:Object}),Pu(`design:type`,Object)],Fu.prototype,`styles`,void 0),Nu([one(),Pu(`design:type`,Object)],Fu.prototype,`externalPromptEvent`,void 0),Fu=Nu([(e,t)=>(e.addInitializer(hl),e)],Fu),customElements.get(`pwa-install`)||customElements.define(`pwa-install`,Fu);function Iu(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Lu=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ru=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zu={};function Bu(e,t){return((t||zu).jsx?Ru:Lu).test(e)}var Vu=/[ \t\n\f\r]/g;function Hu(e){return typeof e==`object`?e.type===`text`?Uu(e.value):!1:Uu(e)}function Uu(e){return e.replace(Vu,``)===``}var Wu=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Wu.prototype.normal={},Wu.prototype.property={},Wu.prototype.space=void 0;function Gu(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Wu(n,r,t)}function Ku(e){return e.toLowerCase()}var qu=class{constructor(e,t){this.attribute=t,this.property=e}};qu.prototype.attribute=``,qu.prototype.booleanish=!1,qu.prototype.boolean=!1,qu.prototype.commaOrSpaceSeparated=!1,qu.prototype.commaSeparated=!1,qu.prototype.defined=!1,qu.prototype.mustUseProperty=!1,qu.prototype.number=!1,qu.prototype.overloadedBoolean=!1,qu.prototype.property=``,qu.prototype.spaceSeparated=!1,qu.prototype.space=void 0;var Ju=i({boolean:()=>Xu,booleanish:()=>Zu,commaOrSpaceSeparated:()=>td,commaSeparated:()=>ed,number:()=>V,overloadedBoolean:()=>Qu,spaceSeparated:()=>$u}),Yu=0,Xu=nd(),Zu=nd(),Qu=nd(),V=nd(),$u=nd(),ed=nd(),td=nd();function nd(){return 2**++Yu}var rd=Object.keys(Ju),id=class extends qu{constructor(e,t,n,r){let i=-1;if(super(e,t),ad(this,`space`,r),typeof n==`number`)for(;++i<rd.length;){let e=rd[i];ad(this,rd[i],(n&Ju[e])===Ju[e])}}};id.prototype.defined=!0;function ad(e,t,n){n&&(e[t]=n)}function od(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new id(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Ku(r)]=r,n[Ku(a.attribute)]=r}return new Wu(t,n,e.space)}var sd=od({properties:{ariaActiveDescendant:null,ariaAtomic:Zu,ariaAutoComplete:null,ariaBusy:Zu,ariaChecked:Zu,ariaColCount:V,ariaColIndex:V,ariaColSpan:V,ariaControls:$u,ariaCurrent:null,ariaDescribedBy:$u,ariaDetails:null,ariaDisabled:Zu,ariaDropEffect:$u,ariaErrorMessage:null,ariaExpanded:Zu,ariaFlowTo:$u,ariaGrabbed:Zu,ariaHasPopup:null,ariaHidden:Zu,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:$u,ariaLevel:V,ariaLive:null,ariaModal:Zu,ariaMultiLine:Zu,ariaMultiSelectable:Zu,ariaOrientation:null,ariaOwns:$u,ariaPlaceholder:null,ariaPosInSet:V,ariaPressed:Zu,ariaReadOnly:Zu,ariaRelevant:null,ariaRequired:Zu,ariaRoleDescription:$u,ariaRowCount:V,ariaRowIndex:V,ariaRowSpan:V,ariaSelected:Zu,ariaSetSize:V,ariaSort:null,ariaValueMax:V,ariaValueMin:V,ariaValueNow:V,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function cd(e,t){return t in e?e[t]:t}function ld(e,t){return cd(e,t.toLowerCase())}var ud=od({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:ed,acceptCharset:$u,accessKey:$u,action:null,allow:null,allowFullScreen:Xu,allowPaymentRequest:Xu,allowUserMedia:Xu,alpha:Xu,alt:null,as:null,async:Xu,autoCapitalize:null,autoComplete:$u,autoFocus:Xu,autoPlay:Xu,blocking:$u,capture:null,charSet:null,checked:Xu,cite:null,className:$u,closedBy:null,colorSpace:null,cols:V,colSpan:V,command:null,commandFor:null,content:null,contentEditable:Zu,controls:Xu,controlsList:$u,coords:V|ed,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Xu,defer:Xu,dir:null,dirName:null,disabled:Xu,download:Qu,draggable:Zu,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Xu,formTarget:null,headers:$u,height:V,hidden:Qu,high:V,href:null,hrefLang:null,htmlFor:$u,httpEquiv:$u,id:null,imageSizes:null,imageSrcSet:null,inert:Xu,inputMode:null,integrity:null,is:null,isMap:Xu,itemId:null,itemProp:$u,itemRef:$u,itemScope:Xu,itemType:$u,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Xu,low:V,manifest:null,max:null,maxLength:V,media:null,method:null,min:null,minLength:V,multiple:Xu,muted:Xu,name:null,nonce:null,noModule:Xu,noValidate:Xu,onAbort:null,onAfterPrint:null,onAuxCl
187ick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Xu,optimum:V,pattern:null,ping:$u,placeholder:null,playsInline:Xu,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Xu,referrerPolicy:null,rel:$u,required:Xu,reversed:Xu,rows:V,rowSpan:V,sandbox:$u,scope:null,scoped:Xu,seamless:Xu,selected:Xu,shadowRootClonable:Xu,shadowRootCustomElementRegistry:Xu,shadowRootDelegatesFocus:Xu,shadowRootMode:null,shadowRootSerializable:Xu,shape:null,size:V,sizes:null,slot:null,span:V,spellCheck:Zu,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V,step:null,style:null,tabIndex:V,target:null,title:null,translate:null,type:null,typeMustMatch:Xu,useMap:null,value:Zu,width:V,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:$u,axis:null,background:null,bgColor:null,border:V,borderColor:null,bottomMargin:V,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Xu,declare:Xu,event:null,face:null,frame:null,frameBorder:null,hSpace:V,leftMargin:V,link:null,longDesc:null,lowSrc:null,marginHeight:V,marginWidth:V,noResize:Xu,noHref:Xu,noShade:Xu,noWrap:Xu,object:null,profile:null,prompt:null,rev:null,rightMargin:V,rules:null,scheme:null,scrolling:Zu,standby:null,summary:null,text:null,topMargin:V,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Xu,disablePictureInPicture:Xu,disableRemotePlayback:Xu,exportParts:ed,part:$u,prefix:null,property:null,results:V,security:null,unselectable:null},space:`html`,transform:ld}),fd=od({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,n
187avDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:td,accentHeight:V,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V,amplitude:V,arabicForm:null,ascent:V,attributeName:null,attributeType:null,azimuth:V,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V,by:null,calcMode:null,capHeight:V,className:$u,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:V,diffuseConstant:V,direction:null,display:null,dur:null,divisor:V,dominantBaseline:null,download:Xu,dx:null,dy:null,edgeMode:null,editable:null,elevation:V,enableBackground:null,end:null,event:null,exponent:V,externalResourcesRequired:null,fill:null,fillOpacity:V,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ed,g2:ed,glyphName:ed,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V,horizOriginX:V,horizOriginY:V,id:null,ideographic:V,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V,k:V,k1:V,k2:V,k3:V,k4:V,kernelMatrix:td,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:V,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
vendor: 18,557 bytes, lines 187-188
187Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:V,overlineThickness:V,paintOrder:null,panose1:null,path:null,pathLength:V,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:$u,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V,pointsAtY:V,pointsAtZ:V,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:td,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:td,rev:td,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:td,requiredFeatures:td,requiredFonts:td,requiredFormats:td,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:V,specularExponent:V,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V,strikethroughThickness:V,string:null,stroke:null,strokeDashArray:td,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V,strokeOpacity:V,strokeWidth:null,style:null,surfaceScale:V,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:td,tabIndex:V,tableValues:null,target:null,targetX:V,targetY:V,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:td,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:V,underlineThickness:V,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V,values:null,vAlphabetic:V,vMathematical:V,vectorEffect:null,vHanging:V,vIdeographic:V,version:null,vertAdvY:V,vertOriginX:V,vertOriginY:V,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:cd}),pd=od({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),md=od({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:ld}),hd=od({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),gd={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},_d=/[A-Z]/g,vd=/-[a-z]/g,yd=/^data[-\w.:]+$/i;function bd(e,t){let n=Ku(t),r=t,i=qu;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&yd.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(vd,Sd);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!vd.test(e)){let n=e.replace(_d,xd);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=id}return new i(r,t)}function xd(e){return`-`+e.toLowerCase()}function Sd(e){return e.charAt(1).toUpperCase()}var Cd=Gu([sd,ud,pd,md,hd],`html`),wd=Gu([sd,fd,pd,md,hd],`svg`);function Td(e){return e.join(` `).trim()}var Ed=a(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=` 188`,d=`/`,f=`*`,p=``,m=`comment`,h=`declaration`;function g(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,g=1;function v(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function y(){var e={line:l,column:g};return function(t){return t.position=new b(e),C(),t}}function b(e){this.start=e,this.end={line:l,column:g},this.source=t.source}b.prototype.content=e;function x(n){var r=Error(t.source+`:`+l+`:`+g+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=g,r.source=e,!t.silent)throw r}function S(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function C(){S(i)}function w(e){var t;for(e||=[];t=T();)t!==!1&&e.push(t);return e}function T(){var t=y();if(!(d!=e.charAt(0)||f!=e.charAt(1))){for(var n=2;p!=e.charAt(n)&&(f!=e.charAt(n)||d!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return x(`End of comment missing`);var r=e.slice(2,n-2);return g+=2,v(r),e=e.slice(n),g+=2,t({type:m,comment:r})}}function E(){var e=y(),t=S(a);if(t){if(T(),!S(o))return x(`property missing ':'`);var r=S(s),i=e({type:h,property:_(t[0].replace(n,p)),value:r?_(r[0].replace(n,p)):p});return S(c),i}}function D(){var e=[];w(e);for(var t;t=E();)t!==!1&&(e.push(t),w(e));return e}return C(),D()}function _(e){return e?e.replace(l,p):p}t.exports=g})),Dd=a((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.default=r;var n=t(Ed());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),Od=a((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),kd=a(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Dd()),r=Od();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),Ad=Md(`end`),jd=Md(`start`);function Md(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Nd(e){let t=jd(e),n=Ad(e);if(t&&n)return{start:t,end:n}}function Pd(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Id(e.position):`start`in e||`end`in e?Id(e):`line`in e||`column`in e?Fd(e):``}function Fd(e){return Ld(e&&e.line)+`:`+Ld(e&&e.column)}function Id(e){return Fd(e&&e.start)+`-`+Fd(e&&e.end)}function Ld(e){return e&&typeof e==`number`?e:1}var Rd=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=Pd(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Rd.prototype.file=``,Rd.prototype.name=``,Rd.prototype.reason=``,Rd.prototype.message=``,Rd.prototype.stack=``,Rd.prototype.column=void 0,Rd.prototype.line=void 0,Rd.prototype.ancestors=void 0,Rd.prototype.cause=void 0,Rd.prototype.fatal=void 0,Rd.prototype.place=void 0,Rd.prototype.ruleId=void 0,Rd.prototype.source=void 0;var zd=r(kd(),1),Bd={}.hasOwnProperty,Vd=new Map,Hd=/[A-Z]/g,Ud=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Wd=new Set([`td`,`th`]),Gd=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function Kd(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=rf(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=nf(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?wd:Cd,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=qd(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function qd(e,t,n){if(t.type===`element`)return Jd(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Yd(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Zd(e,t,n);if(t.type===`mdxjsEsm`)return Xd(e,t);if(t.type===`root`)return Qd(e,t,n);if(t.type===`text`)return $d(e,t)}function Jd(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=wd,e.schema=i),e.ancestors.push(t);let a=uf(e,t.tagName,!1),o=af(e,t),s=sf(e,t);return Ud.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!Hu(e):!0})),ef(e,o,a,t),tf(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Yd(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}df(e,t.position)}function Xd(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);df(e,t.position)}function Zd(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=wd,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:uf(e,t.name,!0),o=of(e,t),s=sf(e,t);return ef(e,o,a,t),tf(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Qd(e,t,n){let r={};return tf(r,sf(e,t)),e.create(t,e.Fragment,r,n)}function $d(e,t){return t.value}function ef(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function tf(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function nf(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function rf(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=jd(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function af(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Bd.call(t.properties,i)){let a=cf(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Wd.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function of(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else df(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else df(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function sf(e,t){let n=[],r=-1,i=e.passKeys?new Map:Vd;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=qd(e,a,o);s!==void 0&&n.push(s)}return n}function cf(e,t,n){let r=bd(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Iu(n):Td(n)),r.property===`style`){let t=typeof n==`object`?n:lf(e,String(n));return e.stylePropertyNameCase===`css`&&(t=ff(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?gd[r.property]||r.property:r.attribute,n]}}function lf(e,t){try{return(0,zd.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new Rd("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=Gd+`#cannot-parse-style-attribute`,r}}function uf(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=Bu(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=Bu(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Bd.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);df(e)}function df(e,t){let n=new Rd("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=Gd+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function ff(e){let t={},n;for(n in e)Bd.call(e,n)&&(t[pf(n)]=e[n]);return t}function pf(e){let t=e.replace(Hd,mf);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function mf(e){return`-`+e.toLowerCase()}var hf={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},gf={};function _f(e,t){let n=t||gf;return vf(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function vf(e,t,n){if(bf(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return yf(e.children,t,n)}return Array.isArray(e)?yf(e,t,n):``}function yf(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=vf(e[i],t,n);return r.join(``)}function bf(e){return!!(e&&typeof e==`object`)}var xf=document.createElement(`i`);function Sf(e){let t=`&`+e+`;`;xf.innerHTML=t;let n=xf.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}function Cf(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function wf(e,t){return e.length>0?(Cf(e,e.length,0,t),e):t}var Tf={}.hasOwnProperty;function Ef(e){let t={},n=-1;for(;++n<e.length;)Df(t,e[n]);return t}function Df(e,t){let n;for(n in t){let r=(Tf.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){Tf.call(r,a)||(r[a]=[]);let e=i[a];Of(r[a],Array.isArray(e)?e:e?[e]:[])}}}function Of(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);Cf(e,0,0,r)}function kf(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function Af(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var jf=Hf(/[A-Za-z]/),Mf=Hf(/[\dA-Za-z]/),Nf=Hf(/[#-'*+\--9=?A-Z^-~]/);function Pf(e){return e!==null&&(e<32||e===127)}var Ff=Hf(/\d/),If=Hf(/[\dA-Fa-f]/),Lf=Hf(/[!-/:-@[-`{-~]/);function H(e){return e!==null&&e<-2}function Rf(e){return e!==null&&(e<0||e===32)}function zf(e){return e===-2||e===-1||e===32}var Bf=Hf(/\p{P}|\p{S}/u),Vf=Hf(/\s/);function Hf(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Uf(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&Mf(e.charCodeAt(n+1))&&Mf(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function Wf(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return zf(r)?(e.enter(n),s(r)):t(r)}function s(r){return zf(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var Gf={tokenize:Kf};function Kf(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Wf(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return H(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var qf={tokenize:Yf},Jf={tokenize:Xf};function Yf(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return Cf(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Jf,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m
vendor: 9,637 bytes, line 188
188(e)}function f(n){return t.containerState={},e.attempt(Jf,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return H(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;Cf(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Xf(e,t,n){return Wf(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function Zf(e){if(e===null||Rf(e)||Vf(e))return 1;if(Bf(e))return 2}function Qf(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var $f={name:`attention`,resolveAll:ep,tokenize:tp};function ep(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};np(d,-c),np(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=wf(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=wf(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=wf(l,Qf(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=wf(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=wf(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,Cf(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function tp(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Zf(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=Zf(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function np(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var rp={name:`autolink`,tokenize:ip};function ip(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return jf(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||Mf(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||Mf(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||Pf(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):Nf(t)?(e.consume(t),l):n(t)}function u(e){return Mf(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||Mf(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var ap={partial:!0,tokenize:op};function op(e,t,n){return r;function r(t){return zf(t)?Wf(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||H(e)?t(e):n(e)}}var sp={continuation:{tokenize:lp},exit:up,name:`blockQuote`,tokenize:cp};function cp(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return zf(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function lp(e,t,n){let r=this;return i;function i(t){return zf(t)?Wf(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(sp,t,n)(r)}}function up(e){e.exit(`blockQuote`)}var dp={name:`characterEscape`,tokenize:fp};function fp(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return Lf(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var pp={name:`characterReference`,tokenize:mp};function mp(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=Mf,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=If,u):(e.enter(`characterReferenceValue`),a=7,o=Ff,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===Mf&&!Sf(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var hp={partial:!0,tokenize:vp},gp={concrete:!0,name:`codeFenced`,tokenize:_p};function _p(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),zf(t)?Wf(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||H(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(hp,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||H(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):zf(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),Wf(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||H(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||H(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&zf(t)?Wf(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||H(t)?e.check(hp,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||H(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),zf(t)?Wf(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),zf(t)?Wf(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||H(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function vp(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var yp={name:`codeIndented`,tokenize:xp},bp={partial:!0,tokenize:Sp};function xp(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),Wf(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):H(t)?e.attempt(bp,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||H(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}
vendor: 4,395 bytes, line 188
188function Sp(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):H(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):Wf(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):H(e)?i(e):n(e)}}var Cp={name:`codeText`,previous:Tp,resolve:wp,tokenize:Ep};function wp(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Tp(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function Ep(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):H(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||H(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var Dp=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&Op(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),Op(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Op(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);Op(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);Op(this.left,t.reverse())}}};function Op(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function kp(e){let t={},n=-1,r,i,a,o,s,c,l,u=new Dp(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,Ap(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return Cf(e,0,1/0,u.slice(0)),!l}function Ap(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSki
vendor: 4,631 bytes, line 188
188p(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var lne={resolve:dne,tokenize:fne},une={partial:!0,tokenize:pne};function dne(e){return kp(e),e}function fne(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):H(t)?e.check(une,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function pne(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Wf(e,a,`linePrefix`)}function a(i){if(i===null||H(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function jp(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||Pf(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||H(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||Rf(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||Pf(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function Mp(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):H(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||H(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!zf(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function Np(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):H(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Wf(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||H(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function Pp(e,t){let n;return r;function r(i){return H(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):zf(i)?Wf(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var mne={name:`definition`,tokenize:gne},hne={partial:!0,tokenize:_ne};function gne(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return Mp.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=Af(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return Rf(t)?Pp(e,l)(t):l(t)}function l(t){return jp(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(hne,d,d)(t)}function d(t){return zf(t)?Wf(e,f,`whitespace`)(t):f(t)}
vendor: 7,169 bytes, line 188
188function f(a){return a===null||H(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function _ne(e,t,n){return r;function r(t){return Rf(t)?Pp(e,i)(t):n(t)}function i(t){return Np(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return zf(t)?Wf(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||H(e)?t(e):n(e)}}var vne={name:`hardBreakEscape`,tokenize:yne};function yne(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return H(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var bne={name:`headingAtx`,resolve:xne,tokenize:Sne};function xne(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},Cf(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Sne(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||Rf(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||H(n)?(e.exit(`atxHeading`),t(n)):zf(n)?Wf(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||Rf(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Cne=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),Fp=[`pre`,`script`,`style`,`textarea`],wne={concrete:!0,name:`htmlFlow`,resolveTo:Dne,tokenize:One},Tne={partial:!0,tokenize:Ane},Ene={partial:!0,tokenize:kne};function Dne(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function One(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:ee):jf(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):jf(a)?(e.consume(a),i=4,r.interrupt?t:ee):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:ee):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return jf(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||Rf(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Fp.includes(l)?(i=1,r.interrupt?t(s):O(s)):Cne.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||Mf(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return zf(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||jf(t)?(e.consume(t),b):zf(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||Mf(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):zf(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):zf(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||H(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||Rf(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||zf(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||H(t)?O(t):zf(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),te):t===63&&i===3?(e.consume(t),ee):t===93&&i===5?(e.consume(t),F):H(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Tne,ne,k)(t)):t===null||H(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(Ene,A,ne)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||H(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),ee):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return Fp.includes(n)?(e.consume(t),te):O(t)}return jf(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),ee):O(t)}function ee(t){return t===62?(e.consume(t),te):t===45&&i===2?(e.consume(t),ee):O(t)}function te(t){return t===null||H(t)?(e.exit(`htmlFlowData`),ne(t)):(e.consume(t),te)}function ne(n){return e.exit(`htmlFlow`),t(n)}}function kne(e,t,n){let r=this;return i;function i(t){return H(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function Ane(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(ap,t,n)}}var jne={name:`htmlText`,tokenize:Mne};function Mne(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):jf(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):jf(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):H(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):H(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):H(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):H(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return jf(t)?(e.consume(t),S):n(t)}function S(t){return t===45||Mf(t)?(e.consume(t),S):C(t)}function C(t){return H(t)?(o=C,N(t)):zf(t)?(e.consume(t),C):M(t)}function w(t){return t===45||Mf(t)?(e.consume(t),w):t===47||t===62||Rf(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||jf(t)?(e.consume(t),E):H(t)?(o=T,
vendor: 15,985 bytes, lines 188-190
188N(t)):zf(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||Mf(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):H(t)?(o=D,N(t)):zf(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):H(t)?(o=O,N(t)):zf(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):H(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||Rf(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||Rf(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return zf(t)?Wf(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var Ip={name:`labelEnd`,resolveAll:Ine,resolveTo:Lne,tokenize:Rne},Nne={tokenize:zne},Pne={tokenize:Bne},Fne={tokenize:Vne};function Ine(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&Cf(e,0,e.length,n),e}function Lne(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=wf(s,e.slice(a+1,a+r+3)),s=wf(s,[[`enter`,u,t]]),s=wf(s,Qf(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=wf(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=wf(s,e.slice(o+1)),s=wf(s,[[`exit`,c,t]]),Cf(e,a,e.length,s),e}function Rne(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(Af(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(Nne,u,o?u:d)(t):t===91?e.attempt(Pne,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(Fne,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function zne(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return Rf(t)?Pp(e,a)(t):a(t)}function a(t){return t===41?u(t):jp(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return Rf(t)?Pp(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?Np(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return Rf(t)?Pp(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function Bne(e,t,n){let r=this;return i;function i(t){return Mp.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(Af(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function Vne(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var Hne={name:`labelStartImage`,resolveAll:Ip.resolveAll,tokenize:Une};function Une(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Wne={name:`labelStartLink`,resolveAll:Ip.resolveAll,tokenize:Gne};function Gne(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var Lp={name:`lineEnding`,tokenize:Kne};function Kne(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Wf(e,t,`linePrefix`)}}var Rp={name:`thematicBreak`,tokenize:qne};function qne(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||H(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),zf(t)?Wf(e,s,`whitespace`)(t):s(t))}}var zp={continuation:{tokenize:Zne},exit:$ne,name:`list`,tokenize:Xne},Jne={partial:!0,tokenize:ere},Yne={partial:!0,tokenize:Qne};function Xne(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:Ff(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(Rp,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return Ff(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(ap,r.interrupt?n:u,e.attempt(Jne,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return zf(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function Zne(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(ap,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Wf(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!zf(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Yne,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Wf(e,e.attempt(zp,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function Qne(e,t,n){let r=this;return Wf(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function $ne(e){e.exit(this.containerState.type)}function ere(e,t,n){let r=this;return Wf(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!zf(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var Bp={name:`setextUnderline`,resolveTo:tre,tokenize:nre};function tre(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function nre(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),zf(t)?Wf(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||H(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var rre={tokenize:ire};function ire(e){let t=this,n=e.attempt(ap,r,e.attempt(this.parser.constructs.flowInitial,i,Wf(e,e.attempt(this.parser.constructs.flow,i,e.attempt(lne,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var are={resolveAll:Hp()},ore=Vp(`string`),sre=Vp(`text`);function Vp(e){return{resolveAll:Hp(e===`text`?cre:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function Hp(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function cre(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var lre=i({attentionMarkers:()=>_re,contentInitial:()=>dre,disable:()=>vre,document:()=>ure,flow:()=>pre,flowInitial:()=>fre,insideSpan:()=>gre,string:()=>mre,text:()=>hre}),ure={42:zp,43:zp,45:zp,48:zp,49:zp,50:zp,51:zp,52:zp,53:zp,54:zp,55:zp,56:zp,57:zp,62:sp},dre={91:mne},fre={[-2]:yp,[-1]:yp,32:yp},pre={35:bne,42:Rp,45:[Bp,Rp],60:wne,61:Bp,95:Rp,96:gp,126:gp},mre={38:pp,92:dp},hre={[-5]:Lp,[-4]:Lp,[-3]:Lp,33:Hne,38:pp,42:$f,60:[rp,jne],91:Wne,92:[vne,dp],93:Ip,95:$f,96:Cp},gre={null:[$f,are]},_re={null:[42,95]},vre={null:[]};function yre(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=wf(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=Qf(a,l.events,l),l.events):[]}function f(e,t){return xre(p(e),t)}function p(e){return bre(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){H(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&Cf(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function bre(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function xre(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=` 189`;break;case-3:o=`\r 190`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function Sre(e){let t={constructs:Ef([lre,...(e||{}).extensions||[]]),content:n(Gf),defined:[],document:n(qf),flow:n(rre),lazy:{},string:n(ore),text:n(sre)};return t;function n(e){return n;function n(n){return yre(t,e,n)}}}function Cre(e){for(;!kp(e););return e}var Up=/[\0\t\n\r]/g;function wre(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(Up.lastIndex=u,c=Up.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var Tre=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ere(e){return e.replace(Tre,Dre)}function Dre(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;
vendor: 11,232 bytes, lines 190-192
190return kf(n.slice(t?2:1),t?16:10)}return Sf(n)||e}var Wp={}.hasOwnProperty;function Ore(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),kre(n)(Cre(Sre(n).document().write(wre()(e,t,!0))))}function kre(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(_e),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(me),blockQuote:a(le),characterEscape:T,characterReference:T,codeFenced:a(ue),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(ue,o),codeText:a(de,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(fe),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(pe),hardBreakEscape:a(he),hardBreakTrailing:a(he),htmlFlow:a(L,o),htmlFlowData:T,htmlText:a(L,o),htmlTextData:T,image:a(ge),label:o,link:a(_e),listItem:a(ye),listItemValue:f,listOrdered:a(ve,d),listUnordered:a(ve),paragraph:a(be),reference:re,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(me),strong:a(xe),thematicBreak:a(Ce)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:ce,autolinkProtocol:se,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:ie,characterReferenceMarkerNumeric:ie,characterReferenceValue:ae,characterReference:oe,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(j),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(k),htmlFlowData:E,htmlText:c(A),htmlTextData:E,image:c(N),label:F,labelText:P,lineEnding:D,link:c(M),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:I,resourceDestinationString:ee,resourceTitleString:te,resource:ne,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};Kp(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];Wp.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||qp).call(a,void 0,e[0])}for(r.position={start:Gp(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Gp(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Gp(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||qp).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+Pd({start:e.start,end:e.end})+`): itâs not open`);n.position.end=Gp(e.end)}function u(){return _f(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Af(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=Se(),n.position={start:Gp(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Gp(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=Gp(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Ere(t),n.identifier=Af(t).toLowerCase()}function F(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function ee(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function te(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function ne(){this.data.inReference=void 0}function re(){this.data.referenceType=`collapsed`}function I(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Af(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function ie(e){this.data.characterReferenceType=e.type}function ae(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=kf(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=Sf(t);let i=this.stack[this.stack.length-1];i.value+=r}function oe(e){let t=this.stack.pop();t.position.end=Gp(e.end)}function se(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ce(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function le(){return{type:`blockquote`,children:[]}}function ue(){return{type:`code`,lang:null,meta:null,value:``}}function de(){return{type:`inlineCode`,value:``}}function fe(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function pe(){return{type:`emphasis`,children:[]}}function me(){return{type:`heading`,depth:0,children:[]}}function he(){return{type:`break`}}function L(){return{type:`html`,value:``}}function ge(){return{type:`image`,title:null,url:``,alt:null}}function _e(){return{type:`link`,title:null,url:``,children:[]}}function ve(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function ye(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function be(){return{type:`paragraph`,children:[]}}function xe(){return{type:`strong`,children:[]}}function Se(){return{type:`text`,value:``}}function Ce(){return{type:`thematicBreak`}}}function Gp(e){return{line:e.line,column:e.column,offset:e.offset}}function Kp(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?Kp(e,r):Are(e,r)}}function Are(e,t){let n;for(n in t)if(Wp.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function qp(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+Pd({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Pd({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+Pd({start:t.start,end:t.end})+`) is still open`)}function jre(e){let t=this;t.parser=n;function n(n){return Ore(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function Mre(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Nre(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:` 191`}]}function Pre(e,t){let n=t.value?t.value+` 192`:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function Fre(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ire(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}
vendor: 4,668 bytes, lines 192-194
192function Lre(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=Uf(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function Rre(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function zre(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Jp(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function Bre(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Jp(e,t);let i={src:Uf(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Vre(e,t){let n={src:Uf(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Hre(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Ure(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Jp(e,t);let i={href:Uf(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Wre(e,t){let n={href:Uf(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Gre(e,t,n){let r=e.all(t),i=n?Kre(n):Yp(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:` 193`}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:` 194`});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function Kre(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=Yp(n[r])}return t}function Yp(e){return e.spread??e.children.length>1}function qre(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function Jre(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Yre(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Xre(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Zre(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=jd(t.children[1]),o=Ad(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{}
vendor: 4,286 bytes, line 194
194,children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Qre(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function $re(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var Xp=9,Zp=32;function eie(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(Qp(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Qp(t.slice(i),i>0,!1)),a.join(``)}function Qp(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===Xp||t===Zp;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===Xp||t===Zp;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function tie(e,t){let n={type:`text`,value:eie(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function nie(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var rie={blockquote:Mre,break:Nre,code:Pre,delete:Fre,emphasis:Ire,footnoteReference:Lre,heading:Rre,html:zre,imageReference:Bre,image:Vre,inlineCode:Hre,linkReference:Ure,link:Wre,listItem:Gre,list:qre,paragraph:Jre,root:Yre,strong:Xre,table:Zre,tableCell:$re,tableRow:Qre,text:tie,thematicBreak:nie,toml:$p,yaml:$p,definition:$p,footnoteDefinition:$p};function $p(){}var{defineProperty:iie}=Object,em=typeof self==`object`?self:globalThis,tm=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new em[e](t)},aie=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o){let i=r(t),a=r(n);i===`__proto__`?iie(e,i,{value:a,configurable:!0,enumerable:!0,writable:!0}):e[i]=a}return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(typeof em[e]==`function`?tm(e,t):Error(t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}case`-0`:return-0}return n(tm(a,o),i)};return r},nm=e=>aie(new Map,e)(0),rm=``,{toString:oie}={},{keys:sie,is:cie}=Object,im=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=oie.call(e).slice(8,-1);switch(n){case`Array`:return[1,rm];case`Object`:return[2,rm];case`Date`:return[3,rm];case`RegExp`:return[4,rm];case`Map`:return[5,rm];case`Set`:return[6,rm];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:e instanceof Error?[7,e.name||`Error`]:[2,n]},am=([e,t])=>e===0&&(t===`function`||t===`symbol`),lie=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=o=>{if(n.has(o))return n.get(o);let[s,c]=im(o);switch(s){case 0:{let t=o;switch(c){case`bigint`:s=8,t=o.toString();break;case`number`:if(!o&&cie(o,-0))return r.push([`-0`])-1;break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+c);t=null;break;case`undefined`:return i([-1],o)}return i([s,t],o)}case 1:{if(c){let e=o;return c===`DataView`?e=new Uint8Array(o.buffer):c===`ArrayBuffer`&&(e=new Uint8Array(o)),i([c,[...e]],o)}let e=[],t=i([s,e],o);for(let t of o)e.push(a(t));return t}case 2:{if(c)switch(c){case`BigInt`:return i([c,o.toString()],o);case`Boolean`:case`Number`:case`String`:return i([c,o.valueOf()],o)}if(t&&`toJSON`in o)return a(o.toJSON());let n=[],r=i([s,n],o);for(let t of sie(o))(e||!am(im(o[t])))&&n.push([a(t),a(o[t])]);return r}case 3:return i([s,isNaN(o.getTime())?rm:o.toISOString()],o);case 4:{let{source:e,flags:t}=o;return i([s,{source:e,flags:t}],o)}case 5:{let t=[],n=i([s,t],o);
vendor: 2,798 bytes, lines 194-196
194for(let[n,r]of o)(e||!(am(im(n))||am(im(r))))&&t.push([a(n),a(r)]);return n}case 6:{let t=[],n=i([s,t],o);for(let n of o)(e||!am(im(n)))&&t.push(a(n));return n}}let{message:l}=o;return i([s,{name:c,message:l}],o)};return a},om=(e,{json:t,lossy:n}={})=>{let r=[];return lie(!(t||n),!!t,new Map,r)(e),r},sm=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?nm(om(e,t)):structuredClone(e):(e,t)=>nm(om(e,t));function uie(e,t){let n=[{type:`text`,value:`â©`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function die(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function fie(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||uie,r=e.options.footnoteBackLabel||die,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=Uf(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...sm(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:` 195`},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:` 196`}]}}var cm=(function(e){if(e==null)return gie;if(typeof e==`function`)return lm(e);if(typeof e==`object`)return Array.isArray(e)?pie(e):mie(e);if(typeof e==`string`)return hie(e);throw Error(`Expected function, string, or object as test`)});function pie(e){let t=[],n=-1;for(;++n<e.length;)t[n]=cm(e[n]);return lm(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function mie(e){let t=e;return lm(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function hie(e){return lm(t);function t(t){return t&&t.type===e}}function lm(e){return t;
vendor: 9,191 bytes, lines 196-200
196function t(t,n,r){return!!(_ie(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function gie(){return!0}function _ie(e){return typeof e==`object`&&!!e&&`type`in e}function vie(e){return e}var um=[];function dm(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=cm(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,`name`,{value:`node (`+vie(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=um,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=yie(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function yie(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?um:[e]}function fm(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),dm(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var pm={}.hasOwnProperty,bie={};function xie(e,t){let n=t||bie,r=new Map,i=new Map,a={all:s,applyData:Cie,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...rie,...n.handlers},one:o,options:n,patch:Sie,wrap:Tie};return fm(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(pm.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=sm(n);return r.children=a.all(e),r}return sm(e)}return(a.options.unknownHandler||wie)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=mm(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=mm(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function Sie(e,t){e.position&&(t.position=Nd(e))}function Cie(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,sm(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function wie(e,t){let n=t.data||{},r=`value`in t&&!(pm.call(n,`hProperties`)||pm.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Tie(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:` 197`});++r<e.length;)r&&n.push({type:`text`,value:` 198`}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:` 199`}),n}function mm(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function hm(e,t){let n=xie(e,t),r=n.one(e,void 0),i=fie(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:` 200`},i)),a}function Eie(e,t){return e&&`run`in e?async function(n,r){let i=hm(n,{file:r,...t});await e.run(i,r)}:function(n,r){return hm(n,{file:r,...e||t})}}function gm(e){if(e)throw e}var _m=r(a(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}))(),1);function vm(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Die(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a){r(a);return}for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?Oie(s,i)(...o):r(null,...o)}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function Oie(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var ym={basename:kie,dirname:Aie,extname:jie,join:Mie,sep:`/`};function kie(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);bm(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Aie(e){if(bm(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function jie(e){bm(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function Mie(...e){let t=-1,n;for(;++t<e.length;)bm(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:Nie(n)}function Nie(e){bm(e);let t=e.codePointAt(0)===47,n=Pie(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function Pie(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function bm(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var Fie={cwd:Iie};function Iie(){return`/`}function xm(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function Lie(e){if(typeof e==`string`)e=new URL(e);else if(!xm(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return Rie(e)}function Rie(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var Sm=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],Cm=class{constructor(e){let t;t=e?xm(e)?{path:e}:typeof e==`string`||zie(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:Fie.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Sm.length;){let e=Sm[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)Sm.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?ym.basename(this.path):void 0}
vendor: 5,022 bytes, line 200
200set basename(e){Tm(e,`basename`),wm(e,`basename`),this.path=ym.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?ym.dirname(this.path):void 0}set dirname(e){Em(this.basename,`dirname`),this.path=ym.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?ym.extname(this.path):void 0}set extname(e){if(wm(e,`extname`),Em(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=ym.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){xm(e)&&(e=Lie(e)),Tm(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?ym.basename(this.path,this.extname):void 0}set stem(e){Tm(e,`stem`),wm(e,`stem`),this.path=ym.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new Rd(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function wm(e,t){if(e&&e.includes(ym.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+ym.sep+"`")}function Tm(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function Em(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function zie(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var Bie=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),Vie={}.hasOwnProperty,Hie=new class e extends Bie{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Die()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,_m.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(km(`data`,this.frozen),this.namespace[e]=t,this):Vie.call(this.namespace,e)&&this.namespace[e]||void 0:e?(km(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=Mm(e),n=this.parser||this.Parser;return Dm(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),Dm(`process`,this.parser||this.Parser),Om(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=Mm(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);Wie(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),Dm(`processSync`,this.parser||this.Parser),Om(`processSync`,this.compiler||this.Compiler),this.process(e,r),jm(`processSync`,`process`,t),n;function r(e,r){t=!0,gm(e),n=r}}run(e,t,n){Am(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=Mm(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),jm(`runSync`,`run`,n),r;function i(e,t){gm(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=Mm(t),r=this.compiler||this.Compiler;return Om(`stringify`,r),Am(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(km(`use`,this.frozen),e!=null)if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,_m.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null)if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];vm(o)&&vm(r)&&(r=(0,_m.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function Dm(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}
vendor: 9,611 bytes, lines 200-201
200function Om(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function km(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Am(e){if(!vm(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function jm(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function Mm(e){return Uie(e)?e:new Cm(e)}function Uie(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function Wie(e){return typeof e==`string`||Gie(e)}function Gie(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var Nm=[],Pm={allowDangerousHtml:!0},Kie=/^(https?|ircs?|mailto|xmpp)$/i,qie=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function Jie(e){let t=Yie(e),n=Xie(e);return Zie(t.runSync(t.parse(n),n),e)}function Yie(e){let t=e.rehypePlugins||Nm,n=e.remarkPlugins||Nm,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Pm}:Pm;return Hie().use(jre).use(n).use(Eie,r).use(t)}function Xie(e){let t=e.children||``,n=new Cm;return typeof t==`string`?n.value=t:``+t,n}function Zie(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||Qie;for(let e of qie)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return fm(e,l),Kd(e,{Fragment:He.Fragment,components:i,ignoreInvalidStyle:!0,jsx:He.jsx,jsxs:He.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in hf)if(Object.hasOwn(hf,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=hf[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function Qie(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Kie.test(e.slice(0,t))?e:``}function Fm(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function $ie(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function eae(e,t,n){let r=cm((n||{}).ignore||[]),i=tae(t),a=-1;for(;++a<i.length;)dm(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&u.push({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}}function tae(e){let t=[];if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([nae(e[0]),rae(e[1])])}return t}function nae(e){return typeof e==`string`?new RegExp($ie(e),`g`):e}function rae(e){return typeof e==`function`?e:function(){return e}}var Im=`phrasing`,Lm=[`autolink`,`link`,`image`,`label`];function iae(){return{transforms:[dae],enter:{literalAutolink:oae,literalAutolinkEmail:Rm,literalAutolinkHttp:Rm,literalAutolinkWww:Rm},exit:{literalAutolink:uae,literalAutolinkEmail:lae,literalAutolinkHttp:sae,literalAutolinkWww:cae}}}function aae(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:Im,notInConstruct:Lm},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:Im,notInConstruct:Lm},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:Im,notInConstruct:Lm}]}}function oae(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function Rm(e){this.config.enter.autolinkProtocol.call(this,e)}function sae(e){this.config.exit.autolinkProtocol.call(this,e)}function cae(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function lae(e){this.config.exit.autolinkEmail.call(this,e)}function uae(e){this.exit(e)}function dae(e){eae(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,fae],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,pae]],{ignore:[`link`,`linkReference`]})}function fae(e,t,n,r,i){let a=``;if(!zm(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!mae(n)))return!1;let o=hae(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function pae(e,t,n,r){return!zm(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function mae(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function hae(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=Fm(e,`(`),a=Fm(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function zm(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||Vf(n)||Bf(n))&&(!t||n!==47)}Bm.peek=wae;function gae(){this.buffer()}function _ae(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function vae(){this.buffer()}function yae(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function bae(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Af(this.sliceSerialize(e)).toLowerCase(),n.label=t}function xae(e){this.exit(e)}function Sae(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Af(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Cae(e){this.exit(e)}function wae(){return`[`}function Bm(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function Tae(){return{enter:{gfmFootnoteCallString:gae,gfmFootnoteCall:_ae,gfmFootnoteDefinitionLabelString:vae,gfmFootnoteDefinition:yae},exit:{gfmFootnoteCallString:bae,gfmFootnoteCall:xae,gfmFootnoteDefinitionLabelString:Sae,gfmFootnoteDefinition:Cae}}}function Eae(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Bm},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?` 201`:` `)+r.indentLines(r.containerFlow(e,a.current()),t?Vm:Dae))),s(),o}}function Dae(e,t,n){return t===0?e:Vm(e,t,n)}function Vm(e,t,n){return(n?``:` `)+e}var Oae=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];Hm.peek=Nae;function kae(){return{canContainEols:[`delete`],enter:{strikethrough:jae},exit:{strikethrough:Mae}}}function Aae(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:Oae}],handlers:{delete:Hm}}}function jae(e){this.enter({type:`delete`,children:[]},e)}function Mae(e){this.exit(e)}function Hm(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function Nae(){return`~`}function Pae(e){return e.length}function Fae(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Pae,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=Iae(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}
vendor: 8,275 bytes, lines 201-213
201o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=Um(r[d]);else{let e=Um(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding!==!1&&!(n.alignDelimiters===!1&&i===``)&&(n.delimiterStart!==!1||d)&&r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(` 202`)}function Iae(e){return e==null?``:String(e)}function Um(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Lae(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),Rae);return i(),o}function Rae(e,t,n){return`>`+(n?``:` `)+e}function zae(e,t){return Wm(e,t.inConstruct,!0)&&!Wm(e,t.notInConstruct,!1)}function Wm(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Gm(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===` 203`&&zae(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?``:` `;return`\\ 204`}function Bae(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function Vae(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Hae(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Uae(e,t,n,r){let i=Hae(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(Vae(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,Wae);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(Bae(a,i)+1,3)),l=n.enter(`codeFenced`),u=s.move(c);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(` `),u+=s.move(n.safe(e.meta,{before:u,after:` 205`,encode:["`"],...s.current()})),t()}return u+=s.move(` 206`),a&&(u+=s.move(a+` 207`)),u+=s.move(c),l(),u}function Wae(e,t,n){return(n?``:` `)+e}function Km(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Gae(e,t,n,r){let i=Km(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:` 208`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function Kae(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function qm(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function Jm(e,t,n){let r=Zf(e),i=Zf(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Ym.peek=qae;function Ym(e,t,n,r){let i=Kae(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=Jm(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=qm(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=Jm(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+qm(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function qae(e,t,n){return n.options.emphasis||`*`}function Jae(e,t){let n=!1;return fm(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&_f(e)&&(t.options.setext||n))}function Yae(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(Jae(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:` 209`,after:` 210`});return r(),t(),o+` 211`+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(` 212`))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:` 213`,...a.current()});return/^[\t ]/.test(l)&&(l=qm(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}Xm.peek=Xae;function Xm(e){return e.value||``}function Xae(){return`<`}Zm.peek=Zae;function Zm(e,t,n,r){let i=Km(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function Zae(){return`!`}Qm.peek=Qae;function Qm(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function Qae(){return`!`}$m.peek=$ae;function $m(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e),i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function $ae(){return"`"}function eh(e,t){let n=_f(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type===`text`&&(n===e.url||`mailto:`+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}th.peek=eoe;function th(e,t,n,r){let i=Km(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(eh(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}
vendor: 12,700 bytes, lines 213-215
213))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function eoe(e,t,n){return eh(e,n)?`<`:`[`}nh.peek=toe;function nh(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function toe(){return`[`}function rh(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function noe(e){let t=rh(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function roe(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function ih(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function ioe(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?roe(n):rh(n),s=e.ordered?o===`.`?`)`:`.`:noe(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),ih(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function aoe(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function ooe(e,t,n,r){let i=aoe(n),a=n.bulletCurrent||rh(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function soe(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var coe=cm([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function loe(e,t,n,r){return(e.children.some(function(e){return coe(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function uoe(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}ah.peek=doe;function ah(e,t,n,r){let i=uoe(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=Jm(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=qm(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=Jm(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+qm(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function doe(e,t,n){return n.options.strong||`*`}function foe(e,t,n,r){return n.safe(e.value,r)}function poe(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function moe(e,t,n){let r=(ih(n)+(n.options.ruleSpaces?` `:``)).repeat(poe(n));return n.options.ruleSpaces?r.slice(0,-1):r}var oh={blockquote:Lae,break:Gm,code:Uae,definition:Gae,emphasis:Ym,hardBreak:Gm,heading:Yae,html:Xm,image:Zm,imageReference:Qm,inlineCode:$m,link:th,linkReference:nh,list:ioe,listItem:ooe,paragraph:soe,root:loe,strong:ah,text:foe,thematicBreak:moe};function hoe(){return{enter:{table:goe,tableData:ch,tableHeader:ch,tableRow:voe},exit:{codeText:yoe,table:_oe,tableData:sh,tableHeader:sh,tableRow:sh}}}function goe(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function _oe(e){this.exit(e),this.data.inTable=void 0}function voe(e){this.enter({type:`tableRow`,children:[]},e)}function sh(e){this.exit(e)}function ch(e){this.enter({type:`tableCell`,children:[]},e)}function yoe(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,boe));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function boe(e,t){return t===`|`?t:e}function xoe(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:` 214`,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(` 215`))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return Fae(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=oh.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function Soe(){return{exit:{taskListCheckValueChecked:lh,taskListCheckValueUnchecked:lh,paragraph:woe}}}function Coe(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:Toe}}}function lh(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function woe(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Toe(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=oh.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function Eoe(){return[iae(),Tae(),kae(),hoe(),Soe()]}function Doe(e){return{extensions:[aae(),Eae(e),Aae(),xoe(e),Coe()]}}var Ooe={tokenize:Poe,partial:!0},uh={tokenize:Foe,partial:!0},dh={tokenize:Ioe,partial:!0},fh={tokenize:Loe,partial:!0},koe={tokenize:Roe,partial:!0},ph={name:`wwwAutolink`,tokenize:Moe,previous:vh},mh={name:`protocolAutolink`,tokenize:Noe,previous:yh},hh={name:`emailAutolink`,tokenize:joe,previous:bh},gh={};function Aoe(){return{text:gh}}for(var _h=48;_h<123;)gh[_h]=hh,_h++,_h===58?_h=65:_h===91&&(_h=97);gh[43]=hh,gh[45]=hh,gh[46]=hh,gh[95]=hh,gh[72]=[hh,mh],gh[104]=[hh,mh],gh[87]=[hh,ph],gh[119]=[hh,ph];function joe(e,t,n){let r=this,i,a;return o;function o(t){return!xh(t)||!bh.call(r,r.previous)||Sh(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return xh(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(koe,u,l)(t):t===45||t===95||Mf(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&jf(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function Moe(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!vh.call(r,r.previous)||Sh(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(Ooe,e.attempt(uh,e.attempt(dh,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function Noe(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&yh.call(r,r.previous)&&!Sh(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(jf(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||Pf(t)||Rf(t)||Vf(t)||Bf(t)?n(t):e.attempt(uh,e.attempt(dh,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function Poe(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function Foe(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(fh,c,s)(t):t===null||Rf(t)||Vf(t)||t!==45&&Bf(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function Ioe(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(fh,t,a)(o):o===null||Rf(o)||Vf(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function Loe(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||Rf(o)||Vf(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||Rf(e)||Vf(e)?t(e):r(e)}function a(e){return jf(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):jf(t)?(e.consume(t),o):n(t)}}function Roe(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return Mf(e)?n(e):t(e)}}function vh(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Rf(e)}function yh(e){return!jf(e)}function bh(e){return!(e===47||xh(e))}function xh(e){return e===43||e===45||e===46||e===95||Mf(e)}function Sh(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var zoe={tokenize:qoe,partial:!0};function Boe(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:Woe,continuation:{tokenize:Goe},exit:Koe}},text:{91:{name:`gfmFootnoteCall`,tokenize:Uoe},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:Voe,resolveTo:Hoe}}}}function Voe(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=Af(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function Hoe(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;
vendor: 5,668 bytes, line 215
215let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function Uoe(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||Rf(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(Af(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return Rf(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function Woe(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||Rf(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=Af(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return Rf(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),Wf(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function Goe(e,t,n){return e.check(ap,t,e.attempt(zoe,t,n))}function Koe(e){e.exit(`gfmFootnoteDefinition`)}function qoe(e,t,n){let r=this;return Wf(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function Joe(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&Cf(o,o.length,0,Qf(s,e.slice(r+1,n),t)),Cf(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),Cf(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=Zf(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=Zf(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var Yoe=class{constructor(){this.map=[]}add(e,t,n){Xoe(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function Xoe(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Zoe(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function Qoe(){return{flow:{null:{name:`table`,tokenize:$oe,resolveAll:ese}}
vendor: 5,661 bytes, line 215
215}}function $oe(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):H(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):zf(t)?Wf(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||Rf(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,zf(t)?Wf(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return zf(t)?Wf(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||H(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return zf(t)?Wf(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||H(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||H(n)?(e.exit(`tableRow`),t(n)):zf(n)?Wf(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||Rf(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function ese(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new Yoe;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(wh(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=Ch(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=Ch(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=Ch(f,t,o,i,n,d)):(o[0]=o[1],d=Ch(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&wh(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=Zoe(t.events,n))}return e}function Ch(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},Th(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=Th(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=Th(t.events,n[2]),a=Th(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},Th(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function wh(e,t,n,r,i){let a=[],o=Th(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function Th(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var tse={name:`tasklistCheck`,tokenize:rse};function nse(){return{text:{91:tse}}}function rse(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return Rf(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return H(r)?t(r):zf(r)?e.check({tokenize:ise},t,n)(r):n(r)}}function ise(e,t,n){return Wf(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function ase(e){return Ef([Aoe(),Boe(),Joe(e),Qoe(),nse()])}var ose={};function sse(e){let t=this,n=e||ose,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(ase(n)),a.push(Eoe()),o.push(Doe(n))}
215function Eh(e,t,n){return e+(t-e)*n}function Dh(e){return e-Math.floor(e)}function Oh(e,t){let n=Math.floor(e),r=Math.floor(t),i=e-n,a=t-r;i=i*i*(3-2*i),a=a*a*(3-2*a);let o=kh(n,r),s=kh(n+1,r),c=kh(n,r+1),l=kh(n+1,r+1);return o+(s-o)*i+(c-o)*a+(o-s-c+l)*i*a}function kh(e,t){let n=Math.sin(e*12.9898+t*78.233)*43758.5453;return n-Math.floor(n)}function Ah(e,t){let n=Math.PI*(3-Math.sqrt(5)),r=1-2*(e+.5)/t,i=Math.sqrt(1-r*r),a=e*n;return[i*Math.cos(a),r,i*Math.sin(a)]}function cse(e,t){return Math.atan2(Math.sin(e-t),Math.cos(e-t))}function jh(e,t,n,r,i){let a=Math.sin(t),o=Math.cos(t),s=Math.sin(e),c=Math.cos(e);return(e,t,l)=>{let u=e*c+l*s,d=-e*s+l*c,f=t*o-d*a,p=t*a+d*o;return[n+u*i,r-f*i,p]}}function lse(e,t,n,r=.3){for(let r of t){let t=r.a??1,i=Math.min(1,Math.max(0,r.white)),a=Math.round((n?1-i:i)*255);e.fillStyle=`rgba(${a},${a},${a},${t})`,e.beginPath(),e.arc(r.x,r.y,r.r,0,Math.PI*2),e.fill()}}function use(e,t,n){for(let r of t){let t=r.a??1,i=Math.min(1,Math.max(0,r.white)),a=Math.round((n?1-i:i)*255);e.strokeStyle=`rgba(${a},${a},${a},${t})`,e.lineWidth=r.w,e.beginPath(),e.moveTo(r.x1,r.y1),e.lineTo(r.x2,r.y2),e.stroke()}}function Mh(e,t,n=.3){let r=[];for(let t of e)(t.a??1)<.02||(t.r=Math.max(n,t.r),r.push(t));return r.sort((e,t)=>e.z-t.z),{dots:r,lines:t.filter(e=>(e.a??1)>=.02)}}function dse(e,t,n){t.lines.length&&use(e,t.lines,n),lse(e,t.dots,n)}function Nh(e,t){return(e/300)**t}var fse=(e,t,n)=>{let r=e/2,i=e/2,a=e/2*.76,o=jh(t*.4,.3,r,i,1),s=Nh(e,n.rsPow??.6),c=[],l=n.ghostN??150;for(let e=0;e<l;e++){let t=Ah(e,l),[n,r,i]=o(t[0]*a,t[1]*a,t[2]*a),u=(i/a+1)/2;c.push({x:n,y:r,z:i,r:.8*s,white:.78,a:.1+.22*u})}let u=n.strandN??52,d=n.turns??3;for(let e=0;e<3;e++){let r=e/3*2*Math.PI;for(let e=0;e<u;e++){let i=(Dh(e/u+t*.045)*2-1)*.96,l=Math.sqrt(Math.max(0,1-i*i)),f=Math.min(1,(1-Math.abs(i))/.1),p=i*Math.PI*d+r,m=1+.075*Math.sin(i*Math.PI*d*2+r*2+t*.8),h=l*a*m,[g,_,v]=o(Math.cos(p)*h,i*a*m,Math.sin(p)*h),y=(v/a+1)/2;c.push({x:g,y:_,z:v,r:((n.rBase??1.2)+(n.rDepth??1.8)*y)*s,white:.55-.45*y,a:f*(.45+.55*y)})}}return Mh(c,[],n.rMin)};function pse(e,t,n,r){let i=e%(2*t*n+r),a=Array(t).fill(0),o=-1;if(i<2*t*n){let e=Math.floor(i/n),r=(i-e*n)/n,s=1-(1-Math.min(1,r/.7))**3;if(e<t){for(let t=0;t<e;t++)a[t]=1;a[e]=s,o=e}else{let n=2*t-1-e;for(let e=0;e<n;e++)a[e]=1;a[n]=1-s,o=n}}return{amount:a,active:o}}function mse(e,t,n){let[r,i,a]=e,o=!1;for(let e=0;e<t.length;e++){if(n.amount[e]<=0)continue;let s=t[e],c=s.axis===0?r:s.axis===1?i:a;if(c<s.lo||c>=s.hi)continue;e===n.active&&(o=!0);let l=s.ang*n.amount[e],u=Math.cos(l),d=Math.sin(l);if(s.axis===0){let e=i*u-a*d;a=i*d+a*u,i=e}else if(s.axis===1){let e=r*u+a*d;a=-r*d+a*u,r=e}else{let e=r*u-i*d;i=r*d+i*u,r=e}}return[r,i,a,o]}function hse(e){let t=[];for(let n=0;n<e;n++){let e=Math.min(2,Math.floor(kh(n,2.3)*3)),r=-1+.5*Math.min(3,Math.floor(kh(n,5.9)*4)),i=kh(n,7.7)<.5?1:-1;t.push({axis:e,lo:r,hi:r+.5,ang:i*Math.PI/2})}return t}var gse=(e,t,n)=>{let r=e/2,i=e/2,a=e/2*.82,o=.4+.06*Math.sin(t*.35),s=jh(t*.5,o,r,i,a),c=t*(.5+1.2*(n.scanMul??1)),l=Nh(e,n.rsPow??.6),u=n.dimBase??1,d=[],f=n.latRings??17,p=n.lonDensity??44;for(let e=0;e<=f;e++){let r=-Math.PI/2+e/f*Math.PI,i=Math.cos(r),a=Math.sin(r),o=Math.max(1,Math.round(Math.abs(i)*p));for(let e=0;e<o;e++){let r=e/o*2*Math.PI,[f,p,m]=s(i*Math.cos(r),a,i*Math.sin(r)),h=(m+1)/2,g=cse(r+t*.5,c),_=Math.exp(-(g*g)/.18)*Math.max(0,m);d.push({x:f,y:p,z:m,r:((n.rBase??.6)+(n.rDepth??1.7)*h+(n.rBoost??1)*_)*l,white:(n.inkFar??.62)-(n.inkSpan??.54)*h,a:u+(1-u)*Math.min(1,_)})}}return Mh(d,[],n.rMin)},_se=(e,t,n)=>{let r=e/2,i=e/2,a=e/2*.82,o=jh(t*.55,.35+.1*Math.sin(t*.9),r,i,a),s=Nh(e,n.rsPow??.6),c=n.moveCount??14,l=hse(c),u=pse(t,c,.42,1.2),d=[],f=n.latRings??15,p=n.lonDensity??40;for(let e=0;e<=f;e++){let t=-Math.PI/2+e/f*Math.PI,r=Math.cos(t),i=Math.sin(t),a=Math.max(1,Math.round(Math.abs(r)*p));for(let e=0;e<a;e++){let t=e/a*2*Math.PI,[c,f,p,m]=mse([r*Math.cos(t),i,r*Math.sin(t)],l,u),[h,g,_]=o(c,f,p),v=(_+1)/2;d.push({x:h,y:g,z:_,r:((n.rBase??.6)+(n.rDepth??1.7)*v+(m?n.rActive??.3:0))*s,white:(n.inkFar??.62)-(n.inkSpan??.54)*v-(m?.14:0)})}}return Mh(d,[],n.rMin)},vse=(e,t,n)=>{let r=e/2,i=e/2,a=e/2*.874,o=jh(t*.18,.38,r,i,1),s=Nh(e,n.rsPow??.6),c=[],l=n.rings??15,u=n.lonDensity??40;for(let e=0;e<=l;e++){let r=-Math.PI/2+e/l*Math.PI,i=Math.cos(r),d=Math.sin(r),f=.62*Math.sin(t*2.1-e*.52)+.38*Math.sin(t*1.27+e*.83),p=a*(.88+.105*f),m=Math.max(1,Math.round(Math.abs(i)*u));for(let e=0;e<m;e++){let t=e/m*2*Math.PI,[r,l,u]=o(i*Math.cos(t)*p,d*p,i*Math.sin(t)*p),h=(u/a+1)/2,g=Math.max(0,f);c.push({x:r,y:l,z:u,r:((n.rBase??.6)+(n.rDepth??1.7)*h)*(1+.4*g)*s,white:.66-.56*h-.1*g})}}return Mh(c,[],n.rMin)};function yse(e){return e*e*(3-2*e)}function Ph(e){let t=e.length,n=[],r=0;for(let i=0;i<t;i++){let a=e[i],o=e[(i+1)%t],s=Math.hypot(o[0]-a[0],o[1]-a[1]);n.push(s),r+=s}return i=>{let a=i*r,o=0;for(;a>n[o]&&o<t-1;)a-=n[o],o++;let s=e[o],c=e[(o+1)%t],l=n[o]?Math.min(1,a/n[o]):0;return[s[0]+(c[0]-s[0])*l,s[1]+(c[1]-s[1])*l]}}var Fh=[e=>{let t=-Math.PI/2+e*2*Math.PI;return[Math.cos(t)*.24,Math.sin(t)*.24]},Ph([[0,-.26],[.24,.16],[-.24,.16]]),Ph([[0,-.2],[.2,-.2],[.2,.2],[-.2,.2],[-.2,-.2]])];function bse(e){return Math.max(6,Math.round(34*e))}var Ih=1.4,Lh=.9,Rh=Ih+Lh,xse=(e,t,n)=>{let r=Fh.length,i=t%(Rh*r),a=Math.floor(i/Rh),o=i-a*Rh,s=o>Ih?yse((o-Ih)/Lh):0,c=n.spread??1,l=Fh[a],u=Fh[(a+1)%r],d=[];for(let e=0;e<160;e++){let t=e/160,n=l(t),r=u(t);d.push([(n[0]+(r[0]-n[0])*s)*c,(n[1]+(r[1]-n[1])*s)*c])}let f=[],p=0;for(let e=0;e<160;e++){let t=d[e],n=d[(e+1)%160],r=Math.hypot(n[0]-t[0],n[1]-t[1]);f.push(r),p+=r}let m=bse(n.iconD??1),h=(n.rDot??.021)*1.35*c,g=1+.02*Math.sin(o*3.1),_=[],v=e/2,y=0,b=0;for(let t=0;t<m;t++){let n=t/m*p;for(;b+f[y]<n&&y<159;)b+=f[y],y++;let r=d[y],i=d[(y+1)%160],a=f[y]?Math.min(1,(n-b)/f[y]):0,o=(r[0]+(i[0]-r[0])*a)*g,s=(r[1]+(i[1]-r[1])*a)*g;_.push({x:v+o*e,y:v+s*e,z:0,r:Math.max(.35,h*e),white:.1})}return Mh(_,[],n.rMin)},Sse=(e,t,n)=>{let r=e/2,i=e/2,a=e/2*.82,o=jh(t*.12,.3,r,i,1),s=Nh(e,n.rsPow??.6),c=[],l=n.orbitN??12,u=n.ghostN??40,d=n.particles??3;for(let e=0;e<l;e++){let r=kh(e,1.7),i=kh(e,5.2),l=kh(e,8.9),f=a*(.45+.52*r),p=r*2*Math.PI,m=Math.acos(2*i-1),h=Math.sin(m)*Math.cos(p),g=Math.cos(m),_=Math.sin(m)*Math.sin(p),v=-g,y=h,b=Math.max(1e-6,Math.sqrt(v*v+y*y));v/=b,y/=b;let x=g*0-_*y,S=_*v-h*0,C=h*y-g*v,w=(.25+.55*l)*(l>.5?1:-1);for(let e=0;e<u;e++){let t=e/u*2*Math.PI,[r,i,a]=o((v*Math.cos(t)+x*Math.sin(t))*f,(y*Math.cos(t)+S*Math.sin(t))*f,(0*Math.cos(t)+C*Math.sin(t))*f),l=(a/f+1)/2;c.push({x:r,y:i,z:a,r:(n.ghostR??.9)*s,white:.72,a:(n.ghostA??.5)*(.4+.6*l)})}for(let e=0;e<d;e++){let r=t*w+e/d*2*Math.PI+i*6,[a,l,u]=o((v*Math.cos(r)+x*Math.sin(r))*f,(y*Math.cos(r)+S*Math.sin(r))*f,(0*Math.cos(r)+C*Math.sin(r))*f),p=(u/f+1)/2;c.push({x:a,y:l,z:u,r:((n.partR??1.2)+(n.partRDepth??1.6)*p)*s,white:.3-.22*p})}}return Mh(c,[],n.rMin)},zh=(e,t,n)=>{let r=e/2,i=e/2,a=e/2*.78,o=n.spin??1,s=.3,c=jh(t*.1*o,s,r,i,1),l=Nh(e,n.rsPow??.6),u=[],d=n.ghostN??150;for(let e=0;e<d;e++){let t=Ah(e,d),[n,r,i]=c(t[0]*a,t[1]*a,t[2]*a),o=(i/a+1)/2;u.push({x:n,y:r,z:i,r:.8*l,white:.78,a:.1+.22*o})}let f=t*.24*o,p=n.faceOn?-s:.55+.3*Math.sin(t*.18)*o,m=Math.cos(f),h=Math.sin(f),g=-h*Math.sin(p),_=Math.cos(p),v=m*Math.sin(p),y=0*v-h*_,b=h*g-m*v,x=m*_-0*g,S=.23*(n.wobMul??1),C=n.faceOn?a/(1+.85*S):a,w=n.lanes??5,T=n.segs??88,E=Math.max(1,Math.round(w*(n.bandMul??1)));for(let e=0;e<E;e++){let r=(e-(E-1)/2)*.075,i=Math.abs(e-(E-1)/2)/Math.max(1,(E-1)/2);for(let o=0;o<T;
215o++){let s=o/T*2*Math.PI,d=(.16*Math.sin(s*3-t*1.7+e*.22)+.07*Math.sin(s*5+t*1.1))*(n.wobMul??1),f=n.faceOn?1+d:1,p=n.faceOn?r:r+d,S=m*Math.cos(s)+g*Math.sin(s)+y*p,w=0*Math.cos(s)+_*Math.sin(s)+b*p,E=h*Math.cos(s)+v*Math.sin(s)+x*p,D=Math.sqrt(S*S+w*w+E*E),O=C*f,[k,A,j]=c(S/D*O,w/D*O,E/D*O),M=(j/a+1)/2;u.push({x:k,y:A,z:j,r:((n.rBase??1.1)+(n.rDepth??1.7)*M)*(1-.25*i)*l,white:.52-.44*M+.18*i,a:.4+.6*M})}}return Mh(u,[],n.rMin)},Cse=Object.fromEntries(Object.entries({orbits:Sse,globe:gse,rubik:_se,wave:vse,web:(e,t,n)=>{let r=e/2,i=e/2,a=e/2*.8*(n.spread??1),o=jh(t*.12,.32,r,i,a),s=Nh(e,n.rsPow??.6),c=n.nodeN??30,l=n.thr??.72,u=n.nodeR??1.4,d=n.nodeRDepth??1.8,f=[];for(let e=0;e<c;e++){let n=Ah(e,c),r=n[0]+.3*(Oh(e*.31+9,t*.24)-.5)*2,i=n[1]+.3*(Oh(e*.53+27,t*.21)-.5)*2,a=n[2]+.3*(Oh(e*.77+55,t*.27)-.5)*2,o=Math.sqrt(r*r+i*i+a*a);f.push([r/o,i/o,a/o])}let p=[],m=[];for(let e=0;e<c;e++)for(let t=e+1;t<c;t++){let r=f[e][0]-f[t][0],i=f[e][1]-f[t][1],a=f[e][2]-f[t][2],c=Math.sqrt(r*r+i*i+a*a);if(c>=l)continue;let[u,d,m]=o(f[e][0],f[e][1],f[e][2]),[h,g,_]=o(f[t][0],f[t][1],f[t][2]),v=((m+_)/2+1)/2;p.push({x1:u,y1:d,x2:h,y2:g,white:.42,a:(1-c/l)*(.3+.55*v),w:Math.max(.6,(n.lineW??.8)*s)})}for(let e=0;e<c;e++){let[n,r,i]=o(f[e][0],f[e][1],f[e][2]),a=(i+1)/2,c=1+.25*Math.sin(t*1.4+e*2.7);m.push({x:n,y:r,z:i,r:(u+d*a)*c*s,white:.55-.45*a})}let h=n.signals??5;for(let e=0;e<h;e++){let n=Math.floor(t*.55+e*7.31),r=Math.floor(kh(n,e*3.1+1.7)*c),i=Math.floor(kh(n,e*5.7+4.2)*c);if(r===i)continue;let a=Dh(t*.55+e*7.31),l=Eh(f[r][0],f[i][0],a),p=Eh(f[r][1],f[i][1],a),h=Eh(f[r][2],f[i][2],a),g=Math.max(1e-6,Math.sqrt(l*l+p*p+h*h)),[_,v,y]=o(l/g,p/g,h/g),b=(y+1)/2;m.push({x:_,y:v,z:y,r:(u*1.5+d*b)*s,white:.05,a:.5+.5*b})}return Mh(m,p,n.rMin)},braid:fse,ribbon:zh,ring:zh,morph:xse}).map(([e,t])=>[e,(e,n,r,i,a)=>dse(e,t(n,r,a),i)])),Bh=[[`latRings`,`lonDensity`],[`rings`,`lonDensity`],[`lanes`,`segs`]],Vh=[`orbitN`,`ghostN`,`nodeN`,`strandN`,`signals`],Hh=[`iconD`],Uh=[`rBase`,`rDepth`,`rActive`,`rDot`,`ghostR`,`partR`,`partRDepth`,`nodeR`,`nodeRDepth`];function Wh(e,t){let n={...e},r=new Set,i=Math.sqrt(t);for(let[e,t]of Bh){let a=n[e],o=n[t];a!=null&&o!=null&&!r.has(e)&&!r.has(t)&&(n[e]=Math.max(2,Math.round(a*i)),n[t]=Math.max(2,Math.round(o*i)),r.add(e),r.add(t))}for(let e of Vh){let i=n[e];i!=null&&i!==0&&!r.has(e)&&(n[e]=Math.max(1,Math.round(i*t)))}for(let e of Hh){let r=n[e];r!=null&&(n[e]=Math.max(.02,r*t))}return n}function Gh(e,t){let n={...e};for(let e of Uh){let r=n[e];r!=null&&(n[e]=r*t)}return n.rSizeMul=(n.rSizeMul??1)*t,n}var Kh={globe:{latRings:17,lonDensity:44,rBase:.6,rDepth:1.7,rBoost:1,inkFar:.62,inkSpan:.54,rsPow:.6,rMin:.3},orbits:{orbitN:12,ghostN:40,ghostR:.9,ghostA:.5,particles:3,partR:1.2,partRDepth:1.6,rsPow:.6,rMin:.3},rubik:{latRings:15,lonDensity:40,moveCount:14,rBase:.6,rDepth:1.7,rActive:.3,inkFar:.62,inkSpan:.54,rsPow:.6,rMin:.3},wave:{rings:15,lonDensity:40,rBase:.6,rDepth:1.7,rsPow:.6,rMin:.3},web:{nodeN:30,thr:.72,signals:5,nodeR:1.4,nodeRDepth:1.8,lineW:.8,rsPow:.6,rMin:.3},braid:{strandN:52,turns:3,ghostN:150,rBase:1.2,rDepth:1.8,rsPow:.6,rMin:.3},ribbon:{lanes:5,segs:88,ghostN:150,rBase:1.1,rDepth:1.7,rsPow:.6,rMin:.3},ring:{lanes:5,segs:88,ghostN:0,faceOn:1,rBase:1.1,rDepth:1.7,rsPow:.6,rMin:.3},morph:{rDot:.021,iconD:1,rMin:.25}},qh={working:`orbits`,searching:`globe`,solving:`rubik`,listening:`wave`,connecting:`web`,weaving:`braid`,composing:`ribbon`,breathing:`ring`,shaping:`morph`},Jh={orbits:{64:{speed:1.885,count:1,size:1},20:{speed:3.9,count:.238,size:2.4}},globe:{64:{speed:2.015,count:.42,size:1.15,extra:{scanMul:4.08,dimBase:.45}},20:{speed:2.665,count:.105,size:1.75,extra:{scanMul:4.335,dimBase:.45}}},rubik:{64:{speed:1.82,count:.35,size:1.05},20:{speed:1.95,count:.088,size:1.9}},wave:{64:{speed:4.388,count:.341,size:1},20:{speed:3.998,count:.105,size:1.6}},web:{64:{speed:3.315,count:1.35,size:.95},20:{speed:6.63,count:.25,size:1.52}},braid:{64:{speed:1.625,count:.5,size:1},20:{speed:2.75,count:.1125,size:1.36}},ribbon:{64:{speed:2.34,count:.25,size:.85,extra:{spin:0,bandMul:3.9,wobMul:1}},20:{speed:3.12,count:.051,size:1.073,extra:{spin:0,bandMul:4.94,wobMul:1}}},ring:{64:{speed:3.24,count:.25,size:.956,extra:{spin:0,bandMul:3.627,wobMul:.368}},20:{speed:3.78,count:.028,size:1.622,extra:{spin:0,bandMul:3.968,wobMul:.565}}},morph:{64:{speed:2.405,count:.702,size:.395,extra:{spread:1.45}},20:{speed:2.08,count:.53,size:1.011,extra:{spread:1.45}}}},Yh=new Map;function Xh(e,t){let n=`${e}-${t}`,r=Yh.get(n);if(r)return r;let i=qh[e],a=Jh[i][t],o={...Kh[i]};a.count!==1&&(o=Wh(o,a.count)),a.size!==1&&(o=Gh(o,a.size)),a.extra&&(o={...o,...a.extra});let s={mode:i,speed:a.speed,opts:o};return Yh.set(n,s),s}function Zh(e){let t=e;for(;t;){let e=t.getAttribute(`data-theme`);if(e===`dark`)return!0;
215if(e===`light`)return!1;if(t.classList.contains(`dark`))return!0;if(t.classList.contains(`light`))return!1;t=t.parentElement}return null}function Qh(){return typeof matchMedia>`u`||matchMedia(`(prefers-color-scheme: dark)`).matches}function $h(e,t){let[n,r]=(0,R.useState)(!0);return(0,R.useEffect)(()=>{if(e===`dark`){r(!0);return}if(e===`light`){r(!1);return}let n=()=>{r(Zh(t.current)??Qh())};n();let i=typeof matchMedia<`u`?matchMedia(`(prefers-color-scheme: dark)`):null,a=()=>n();i?.addEventListener(`change`,a);let o=null;return typeof MutationObserver<`u`&&t.current&&(o=new MutationObserver(n),o.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`,`data-theme`],subtree:!0})),()=>{i?.removeEventListener(`change`,a),o?.disconnect()}},[e,t]),n}function eg(){let[e,t]=(0,R.useState)(!1);return(0,R.useEffect)(()=>{if(typeof matchMedia>`u`)return;let e=matchMedia(`(prefers-reduced-motion: reduce)`);t(e.matches);let n=e=>t(e.matches);return e.addEventListener(`change`,n),()=>e.removeEventListener(`change`,n)},[]),e}var tg={working:`Workingâ¦`,searching:`Searchingâ¦`,solving:`Solvingâ¦`,listening:`Listeningâ¦`,connecting:`Connectingâ¦`,weaving:`Weavingâ¦`,composing:`Composingâ¦`,breathing:`Thinkingâ¦`,shaping:`Shapingâ¦`};function ng({state:e=`working`,size:t=64,theme:n=`auto`,speed:r=1,paused:i=!1,style:a,"aria-label":o,...s}){let c=(0,R.useRef)(null),l=$h(n,c),u=eg();return(0,R.useEffect)(()=>{let n=c.current;if(!n)return;let a=Math.min(2,typeof devicePixelRatio<`u`&&devicePixelRatio||1);n.width=Math.round(t*a),n.height=Math.round(t*a);let o=n.getContext(`2d`);if(!o)return;let{mode:s,speed:d,opts:f}=Xh(e,t),p=Cse[s],m=d*r,h=e=>{o.setTransform(a,0,0,a,0,0),o.clearRect(0,0,t,t),p(o,t,e,l,f)};if(u){h(.6);return}let g=0,_=!1,v=()=>{h(performance.now()/1e3*m),_&&(g=requestAnimationFrame(v))},y=()=>{_||i||(_=!0,g=requestAnimationFrame(v))},b=()=>{_=!1,cancelAnimationFrame(g)};h(performance.now()/1e3*m);let x=!0,S=typeof IntersectionObserver<`u`?new IntersectionObserver(([e])=>{x=e.isIntersecting,x&&document.visibilityState!==`hidden`?y():b()}):null;S?.observe(n);let C=()=>{document.visibilityState===`hidden`?b():x&&y()};return document.addEventListener(`visibilitychange`,C),S||y(),()=>{b(),S?.disconnect(),document.removeEventListener(`visibilitychange`,C)}},[e,t,l,r,i,u]),(0,He.jsx)(`canvas`,{ref:c,role:`img`,"aria-label":o??tg[e],style:{width:t,height:t,display:`block`,...a},...s})}function rg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ig(e){if(Array.isArray(e))return e}function ag(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function og(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 216In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sg(e,t){return ig(e)||ag(e,t)||cg(e,t)||og()}function cg(e,t){if(e){if(typeof e==`string`)return rg(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rg(e,t):void 0}}var lg=Object.entries,ug=Object.setPrototypeOf,dg=Object.isFrozen,fg=Object.getPrototypeOf,pg=Object.getOwnPropertyDescriptor,mg=Object.freeze,hg=Object.seal,gg=Object.create,_g=typeof Reflect<`u`&&Reflect,vg=_g.apply,yg=_g.construct;mg||=function(e){return e},hg||=function(e){return e},vg||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},yg||=function(e){return new e(...[...arguments].slice(1))};var bg=Bg(Array.prototype.forEach),xg=Bg(Array.prototype.lastIndexOf),Sg=Bg(Array.prototype.pop),Cg=Bg(Array.prototype.push),wg=Bg(Array.prototype.splice),Tg=Array.isArray,Eg=Bg(String.prototype.toLowerCase),Dg=Bg(String.prototype.toString),Og=Bg(String.prototype.match),kg=Bg(String.prototype.replace),Ag=Bg(String.prototype.indexOf),jg=Bg(String.prototype.trim),Mg=Bg(Number.prototype.toString),Ng=Bg(Boolean.prototype.toString),Pg=typeof BigInt>`u`?null:Bg(BigInt.prototype.toString),Fg=typeof Symbol>`u`?null:Bg(Symbol.prototype.toString),Ig=Bg(Object.prototype.hasOwnProperty),Lg=Bg(Object.prototype.toString),Rg=Bg(RegExp.prototype.test),zg=Vg(TypeError);function Bg(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return vg(e,t,n)}}function Vg(e){return function(){return yg(e,[...arguments])}}function Hg(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Eg;if(ug&&ug(e,null),!Tg(t))return e;let r=t.length;for(;r--;){let i=t[r];
vendor: 6,613 bytes, line 216
216if(typeof i==`string`){let e=n(i);e!==i&&(dg(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Ug(e){for(let t=0;t<e.length;t++)Ig(e,t)||(e[t]=null);return e}function Wg(e){let t=gg(null);for(let r of lg(e)){var n=sg(r,2);let i=n[0],a=n[1];Ig(e,i)&&(Tg(a)?t[i]=Ug(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=Wg(a):t[i]=a)}return t}function Gg(e){switch(typeof e){case`string`:return e;case`number`:return Mg(e);case`boolean`:return Ng(e);case`bigint`:return Pg?Pg(e):`0`;case`symbol`:return Fg?Fg(e):`Symbol()`;case`undefined`:return Lg(e);case`function`:case`object`:{if(e===null)return Lg(e);let t=e,n=Kg(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:Lg(e)}return Lg(e)}default:return Lg(e)}}function Kg(e,t){for(;e!==null;){let n=pg(e,t);if(n){if(n.get)return Bg(n.get);if(typeof n.value==`function`)return Bg(n.value)}e=fg(e)}function n(){return null}return n}function qg(e){try{return Rg(e,``),!0}catch{return!1}}var Jg=mg(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),Yg=mg(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Xg=mg([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Zg=mg([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Qg=mg(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),$g=mg([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),e_=mg([`#text`]),t_=mg(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),n_=mg(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),r_=mg(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),i_=mg([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),a_=hg(/{{[\w\W]*|^[\w\W]*}}/g),o_=hg(/<%[\w\W]*|^[\w\W]*%>/g),s_=hg(/\${[\w\W]*/g),c_=hg(/^data-[\-\w.\u00B7-\uFFFF]+$/),l_=hg(/^aria-[\-\w]+$/),u_=hg(/^(?:(?:(?
vendor: 12,162 bytes, line 216
216:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),d_=hg(/^(?:\w+script|data):/i),f_=hg(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),p_=hg(/^html$/i),m_=hg(/^[a-z][.\w]*(-[.\w]+)+$/i),h_={element:1,text:3,progressingInstruction:7,comment:8,document:9},g_=function(){return typeof window>`u`?null:window},__=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},v_=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function y_(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:g_(),t=e=>y_(e);if(t.version=`3.4.5`,t.removed=[],!e||!e.document||e.document.nodeType!==h_.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript,a=e.DocumentFragment,o=e.HTMLTemplateElement,s=e.Node,c=e.Element,l=e.NodeFilter,u=e.NamedNodeMap,d=u===void 0?e.NamedNodeMap||e.MozNamedAttrMap:u,f=e.HTMLFormElement,p=e.DOMParser,m=e.trustedTypes,h=c.prototype,g=Kg(h,`cloneNode`),_=Kg(h,`remove`),v=Kg(h,`nextSibling`),y=Kg(h,`childNodes`),b=Kg(h,`parentNode`),x=s&&s.prototype?Kg(s.prototype,`nodeType`):null;if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let S,C=``,w=n,T=w.implementation,E=w.createNodeIterator,D=w.createDocumentFragment,O=w.getElementsByTagName,k=r.importNode,A=v_();t.isSupported=typeof lg==`function`&&typeof b==`function`&&T&&T.createHTMLDocument!==void 0;let j=a_,M=o_,N=s_,P=c_,F=l_,ee=d_,te=f_,ne=m_,re=u_,I=null,ie=Hg({},[...Jg,...Yg,...Xg,...Qg,...e_]),ae=null,oe=Hg({},[...t_,...n_,...r_,...i_]),se=Object.seal(gg(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ce=null,le=null,ue=Object.seal(gg(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),de=!0,fe=!0,pe=!1,me=!0,he=!1,L=!0,ge=!1,_e=!1,ve=!1,ye=!1,be=!1,xe=!1,Se=!0,Ce=!1,we=`user-content-`,Te=!0,Ee=!1,De={},Oe=null,ke=Hg({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),Ae=null,je=Hg({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Me=null,Ne=Hg({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Pe=`http://www.w3.org/1998/Math/MathML`,Fe=`http://www.w3.org/2000/svg`,Ie=`http://www.w3.org/1999/xhtml`,Le=Ie,Re=!1,ze=null,Be=Hg({},[Pe,Fe,Ie],Dg),Ve=Hg({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),R=Hg({},[`annotation-xml`]),He=Hg({},[`title`,`style`,`font`,`a`,`script`]),Ue=null,We=[`application/xhtml+xml`,`text/html`],Ge=null,Ke=null,qe=n.createElement(`form`),Je=function(e){return e instanceof RegExp||e instanceof Function},Ye=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Ke&&Ke===e)return;(!e||typeof e!=`object`)&&(e={}),e=Wg(e),Ue=We.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,Ge=Ue===`application/xhtml+xml`?Dg:Eg,I=Ig(e,`ALLOWED_TAGS`)&&Tg(e.ALLOWED_TAGS)?Hg({},e.ALLOWED_TAGS,Ge):ie,ae=Ig(e,`ALLOWED_ATTR`)&&Tg(e.ALLOWED_ATTR)?Hg({},e.ALLOWED_ATTR,Ge):oe,ze=Ig(e,`ALLOWED_NAMESPACES`)&&Tg(e.ALLOWED_NAMESPACES)?Hg({},e.ALLOWED_NAMESPACES,Dg):Be,Me=Ig(e,`ADD_URI_SAFE_ATTR`)&&Tg(e.ADD_URI_SAFE_ATTR)?Hg(Wg(Ne),e.ADD_URI_SAFE_ATTR,Ge):Ne,Ae=Ig(e,`ADD_DATA_URI_TAGS`)&&Tg(e.ADD_DATA_URI_TAGS)?Hg(Wg(je),e.ADD_DATA_URI_TAGS,Ge):je,Oe=Ig(e,`FORBID_CONTENTS`)&&Tg(e.FORBID_CONTENTS)?Hg({},e.FORBID_CONTENTS,Ge):ke,ce=Ig(e,`FORBID_TAGS`)&&Tg(e.FORBID_TAGS)?Hg({},e.FORBID_TAGS,Ge):Wg({}),le=Ig(e,`FORBID_ATTR`)&&Tg(e.FORBID_ATTR)?Hg({},e.FORBID_ATTR,Ge):Wg({}),De=Ig(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?Wg(e.USE_PROFILES):e.USE_PROFILES:!1,de=e.ALLOW_ARIA_ATTR!==!1,fe=e.ALLOW_DATA_ATTR!==!1,pe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,me=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,he=e.SAFE_FOR_TEMPLATES||!1,L=e.SAFE_FOR_XML!==!1,ge=e.WHOLE_DOCUMENT||!1,ye=e.RETURN_DOM||!1,be=e.RETURN_DOM_FRAGMENT||!1,xe=e.RETURN_TRUSTED_TYPE||!1,ve=e.FORCE_BODY||!1,Se=e.SANITIZE_DOM!==!1,Ce=e.SANITIZE_NAMED_PROPS||!1,Te=e.KEEP_CONTENT!==!1,Ee=e.IN_PLACE||!1,re=qg(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:u_,Le=typeof e.NAMESPACE==`string`?e.NAMESPACE:Ie,Ve=Ig(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?Wg(e.MATHML_TEXT_INTEGRATION_POINTS):Hg({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),R=Ig(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?Wg(e.HTML_INTEGRATION_POINTS):Hg({},[`annotation-xml`]);let t=Ig(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?Wg(e.CUSTOM_ELEMENT_HANDLING):gg(null);if(se=gg(null),Ig(t,`tagNameCheck`)&&Je(t.tagNameCheck)&&(se.tagNameCheck=t.tagNameCheck),Ig(t,`attributeNameCheck`)&&Je(t.attributeNameCheck)&&(se.attributeNameCheck=t.attributeNameCheck),Ig(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(se.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),he&&(fe=!1),be&&(ye=!0),De&&(I=Hg({},e_),ae=gg(null),De.html===!0&&(Hg(I,Jg),Hg(ae,t_)),De.svg===!0&&(Hg(I,Yg),Hg(ae,n_),Hg(ae,i_)),De.svgFilters===!0&&(Hg(I,Xg),Hg(ae,n_),Hg(ae,i_)),De.mathMl===!0&&(Hg(I,Qg),Hg(ae,r_),Hg(ae,i_))),ue.tagCheck=null,ue.attributeCheck=null,Ig(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?ue.tagCheck=e.ADD_TAGS:Tg(e.ADD_TAGS)&&(I===ie&&(I=Wg(I)),Hg(I,e.ADD_TAGS,Ge))),Ig(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?ue.attributeCheck=e.ADD_ATTR:Tg(e.ADD_ATTR)&&(ae===oe&&(ae=Wg(ae)),Hg(ae,e.ADD_ATTR,Ge))),Ig(e,`ADD_URI_SAFE_ATTR`)&&Tg(e.ADD_URI_SAFE_ATTR)&&Hg(Me,e.ADD_URI_SAFE_ATTR,Ge),Ig(e,`FORBID_CONTENTS`)&&Tg(e.FORBID_CONTENTS)&&(Oe===ke&&(Oe=Wg(Oe)),Hg(Oe,e.FORBID_CONTENTS,Ge)),Ig(e,`ADD_FORBID_CONTENTS`)&&Tg(e.ADD_FORBID_CONTENTS)&&(Oe===ke&&(Oe=Wg(Oe)),Hg(Oe,e.ADD_FORBID_CONTENTS,Ge)),Te&&(I[`#text`]=!0),ge&&Hg(I,[`html`,`head`,`body`]),I.table&&(Hg(I,[`tbody`]),delete ce.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw zg(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw zg(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);S=e.TRUSTED_TYPES_POLICY,C=S.createHTML(``)}else S===void 0&&(S=__(m,i)),S!==null&&typeof C==`string`&&(C=S.createHTML(``));mg&&mg(e),Ke=e},Xe=Hg({},[...Yg,...Xg,...Zg]),Ze=Hg({},[...Qg,...$g]),Qe=function(e){let t=b(e);(!t||!t.tagName)&&(t={namespaceURI:Le,tagName:`template`});let n=Eg(e.tagName),r=Eg(t.tagName);return ze[e.namespaceURI]?e.namespaceURI===Fe?t.namespaceURI===Ie?n===`svg`:t.namespaceURI===Pe?n===`svg`&&(r===`annotation-xml`||Ve[r]):!!Xe[n]:e.namespaceURI===Pe?t.namespaceURI===Ie?n===`math`:t.namespaceURI===Fe?n===`math`&&R[r]:!!Ze[n]:e.namespaceURI===Ie?t.namespaceURI===Fe&&!R[r]||t.namespaceURI===Pe&&!Ve[r]?!1:!Ze[n]&&(He[n]||!Xe[n]):!!(Ue===`application/xhtml+xml`&&ze[e.namespaceURI]):!1},$e=function(e){Cg(t.removed,{element:e});try{b(e).removeChild(e)}catch{_(e)}},et=function(e,n){try{Cg(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{Cg(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(ye||be)try{$e(n)}catch{}else try{n.setAttribute(e,``)}catch{}},tt=function(e){let t=null,r=null;if(ve)e=`<remove></remove>`+e;else{let t=Og(e,/^[\r\n\t ]+/);r=t&&t[0]}Ue===`application/xhtml+xml`&&Le===Ie&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=S?S.createHTML(e):e;if(Le===Ie)try{t=new p().parseFromString(i,Ue)}catch{}if(!t||!t.documentElement){t=T.createDocument(Le,`template`,null);try{t.documentElement.innerHTML=Re?C:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Le===Ie?O.call(t,ge?`html`:`body`)[0]:ge?t.documentElement:a},nt=function(e){return E.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},rt=function(e){e.normalize();let t=E.call(e.ownerDocument||e,e,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),n=t.nextNode();for(;n;){let e=n.data;bg([j,M,N],t=>{e=kg(e,t,` `)}),n.data=e,n=t.nextNode()}},it=function(e){return e instanceof f&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof d)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},at=function(e){if(!x||typeof e!=`object`||!e)return!1;try{return typeof x(e)==`number`}catch{return!1}};function ot(e,n,r){bg(e,e=>{e.call(t,n,r,Ke)})}let st=function(e){let n=null;if(ot(A.beforeSanitizeElements,e,null),it(e))return $e(e),!0;let r=Ge(e.nodeName);if(ot(A.uponSanitizeElement,e,{tagName:r,allowedTags:I}),L&&e.hasChildNodes()&&!at(e.firstElementChild)&&Rg(/<[/\w!]/g,e.innerHTML)&&Rg(/<[/\w!]/g,e.textContent)||L&&e.namespaceURI===Ie&&r===`style`&&at(e.firstElementChild)||e.nodeType===h_.progressingInstruction||L&&e.nodeType===h_.comment&&Rg(/<[/\w]/g,e.data))return $e(e),!0;if(ce[r]||!(ue.tagCheck instanceof Function&&ue.tagCheck(r))&&!I[r]){if(!ce[r]&&ut(r)&&(se.tagNameCheck instanceof RegExp&&Rg(se.tagNameCheck,r)||se.tagNameCheck instanceof Function&&se.tagNameCheck(r)))return!1;if(Te&&!Oe[r]){let t=b(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=g(n[i],!0);t.insertBefore(r,v(e))}}}return $e(e),!0}return e instanceof c&&!Qe(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Rg(/<\/no(script|embed|frames)/i,e.innerHTML)?($e(e),!0):(he&&e.nodeType===h_.text&&(n=e.textContent,bg([j,M,N],e=>{n=kg(n,e,` `)}),e.textContent!==n&&(Cg(t.removed,{element:e.cloneNode()}),e.textContent=n)),ot(A.afterSanitizeElements,e,null),!1)},ct=function(e,t,r){if(le[t]||Se&&(t===`id`||t===`name`)&&(r in n||r in qe))return!1;let i=ae[t]||ue.attributeCheck instanceof Function&&ue.attributeCheck(t,e);if(!(fe&&!le[t]&&Rg(P,t))&&!(de&&Rg(F,t))){if(!i||le[t]){if(!(ut(e)&&(se.tagNameCheck instanceof RegExp&&Rg(se.tagNameCheck,e)||se.tagNameCheck instanceof Function&&se.tagNameCheck(e))&&(se.attributeNameCheck instanceof RegExp&&Rg(se.attributeNameCheck,t)||se.attributeNameCheck instanceof Function&&se.attributeNameCheck(t,e))||t===`is`&&se.allowCustomizedBuiltInElements&&(se.tagNameCheck instanceof RegExp&&Rg(se.tagNameCheck,r)||se.tagNameCheck instanceof Function&&se.tagNameCheck(r))))return!1}else if(!Me[t]&&!Rg(re,kg(r,te,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Ag(r,`data:`)===0&&Ae[e])&&!(pe&&!Rg(ee,kg(r,te,``)))&&r)return!1}return!0},lt=Hg({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),ut=function(e){return!lt[Eg(e)]&&Rg(ne,e)},dt=function(e){ot(A.beforeSanitizeAttributes,e,null);let n=e.attributes;if(!n||it(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:ae,forceKeepAttr:void 0},i=n.length;for(;i--;){let a=n[i],o=a.name,s=a.namespaceURI,c=a.value,l=Ge(o),u=c,d=o===`value`?u:jg(u);if(r.attrName=l,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,ot(A.uponSanitizeAttribute,e,r),d=r.attrValue,Ce&&(l===`id`||l===`
216name`)&&Ag(d,we)!==0&&(et(o,e),d=we+d),L&&Rg(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){et(o,e);continue}if(l===`attributename`&&Og(d,`href`)){et(o,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){et(o,e);continue}if(!me&&Rg(/\/>/i,d)){et(o,e);continue}he&&bg([j,M,N],e=>{d=kg(d,e,` `)});let f=Ge(e.nodeName);if(!ct(f,l,d)){et(o,e);continue}if(S&&typeof m==`object`&&typeof m.getAttributeType==`function`&&!s)switch(m.getAttributeType(f,l)){case`TrustedHTML`:d=S.createHTML(d);break;case`TrustedScriptURL`:d=S.createScriptURL(d);break}if(d!==u)try{s?e.setAttributeNS(s,o,d):e.setAttribute(o,d),it(e)?$e(e):Sg(t.removed)}catch{et(o,e)}}ot(A.afterSanitizeAttributes,e,null)},ft=function(e){let t=null,n=nt(e);for(ot(A.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)ot(A.uponSanitizeShadowNode,t,null),st(t),dt(t),t.content instanceof a&&ft(t.content);ot(A.afterSanitizeShadowDOM,e,null)},pt=function(e){if(e.nodeType===h_.element&&e.shadowRoot instanceof a){let t=e.shadowRoot;pt(t),ft(t)}let t=e.childNodes;if(!t)return;let n=[];bg(t,e=>{Cg(n,e)});for(let e of n)pt(e)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,s=null,c=null;if(Re=!e,Re&&(e=`<!-->`),typeof e!=`string`&&!at(e)&&(e=Gg(e),typeof e!=`string`))throw zg(`dirty is not a string, aborting`);if(!t.isSupported)return e;if(_e||Ye(n),t.removed=[],typeof e==`string`&&(Ee=!1),Ee){let t=e.nodeName;if(typeof t==`string`){let e=Ge(t);if(!I[e]||ce[e])throw zg(`root node is forbidden and cannot be sanitized in-place`)}pt(e)}else if(at(e))i=tt(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===h_.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o),pt(o);else{if(!ye&&!he&&!ge&&e.indexOf(`<`)===-1)return S&&xe?S.createHTML(e):e;if(i=tt(e),!i)return ye?null:xe?C:``}i&&ve&&$e(i.firstChild);let l=nt(Ee?e:i);for(;s=l.nextNode();)st(s),dt(s),s.content instanceof a&&ft(s.content);if(Ee)return he&&rt(e),e;if(ye){if(he&&rt(i),be)for(c=D.call(i.ownerDocument);i.firstChild;)c.appendChild(i.firstChild);else c=i;return(ae.shadowroot||ae.shadowrootmode)&&(c=k.call(r,c,!0)),c}let u=ge?i.outerHTML:i.innerHTML;return ge&&I[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Rg(p_,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`> 217`+u),he&&bg([j,M,N],e=>{u=kg(u,e,` `)}),S&&xe?S.createHTML(u):u},t.setConfig=function(){Ye(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),_e=!0},t.clearConfig=function(){Ke=null,_e=!1},t.isValidAttribute=function(e,t,n){return Ke||Ye({}),ct(Ge(e),Ge(t),n)},t.addHook=function(e,t){typeof t==`function`&&Cg(A[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=xg(A[e],t);
vendor: 18,931 bytes, line 217
217return n===-1?void 0:wg(A[e],n,1)[0]}return Sg(A[e])},t.removeHooks=function(e){A[e]=[]},t.removeAllHooks=function(){A=v_()},t}var b_=y_(),x_=Object.defineProperty,S_=(e,t)=>{let n={};for(var r in e)x_(n,r,{get:e[r],enumerable:!0});return t||x_(n,Symbol.toStringTag,{value:`Module`}),n};function C_(e){this.content=e}C_.prototype={constructor:C_,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new C_(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new C_(n)},addToStart:function(e,t){return new C_([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new C_(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new C_(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=C_.from(e),e.size?new C_(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=C_.from(e),e.size?new C_(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=C_.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},C_.from=function(e){if(e instanceof C_)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new C_(t)};function w_(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&D_(e.charCodeAt(r-1))&&E_(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=w_(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}function T_(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s){n-=c,r-=c;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=o.text,t=s.text,i=e.length,a=t.length;for(;i>0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i<e.length&&D_(e.charCodeAt(i-1))&&E_(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=T_(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}function E_(e){return e>=56320&&e<57344}function D_(e){return e>=55296&&e<56320}var U=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return w_(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return T_(this,e,t,n)}findIndex(e){if(e==0)return k_(0,e);if(e==this.size)return k_(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?k_(t+1,i):k_(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};U.empty=new U([],0);var O_={index:0,offset:0};function k_(e,t){return O_.index=e,O_.offset=t,O_}function A_(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!A_(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!A_(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var j_=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else !n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&A_(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};j_.none=[];var M_=class extends Error{},W=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=P_(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(N_(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(U.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};W.empty=new W(U.empty,0,0);function N_(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(N_(a.content,t-i-1,n-i-1)))}function P_(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=P_(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function F_(e,t,n){if(n.openStart>e.depth)throw new M_(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new M_(`Inconsistent open depths`);return I_(e,t,n,0)}function I_(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=I_(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}else if(!n.content.size)return V_(a,U_(e,t,r));else if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return V_(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}else{let{start:i,end:o}=W_(n,e);return V_(a,H_(e,i,o,t,r))}}function L_(e,t){if(!t.type.compatibleContent(e.type))throw new M_(`Cannot join `+t.type.name+` onto `+e.type.name)}function R_(e,t,n){let r=e.node(n);return L_(r,t.node(n)),r}function z_(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function B_(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(z_(e.nodeAfter,r),a++));for(let e=a;e<o;e++)z_(i.child(e),r);t&&t.depth==n&&t.textOffset&&z_(t.nodeBefore,r)}function V_(e,t){if(!e.type.validContent(t))throw new M_(`Invalid content for node `+e.type.name);return e.copy(t)}function H_(e,t,n,r,i){let a=e.depth>i&&R_(e,t,i+1),o=r.depth>i&&R_(n,r,i+1),s=[];return B_(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(L_(a,o),z_(V_(a,H_(e,t,n,r,i+1)),s)):(a&&z_(V_(a,U_(e,t,i+1)),s),B_(t,n,i,s),o&&z_(V_(o,U_(n,r,i+1)),s)),B_(r,null,i,s),new U(s)}function U_(e,t,n){let r=[];return B_(null,e,n,r),e.depth>n&&z_(V_(R_(e,t,n+1),U_(e,t,n+1)),r),B_(t,null,n,r),new U(r)}function W_(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(U.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var G_=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return j_.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!r||!i[a].isInSet(r.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new Y_(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=J_.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else J_.set(t,r=new K_);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%q_,i}},K_=class{constructor(){this.elts=[],this.i=0}},q_=12,J_=new WeakMap,Y_=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},X_=Object.create(null),Z_=class e{constructor(e,t,n,r=j_.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||U.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&A_(this.attrs,t||e.defaultAttrs||X_)&&j_.sameSet(this.marks,n||j_.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return W.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new W(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return F_(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return G_.resolveCached(this,e)}resolveNoCache(e){return G_.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),$_(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=U.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=j_.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!j_.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>
217e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=U.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};Z_.prototype.text=void 0;var Q_=class e extends Z_{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):$_(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function $_(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var ev=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new tv(t,n);if(r.next==null)return e.empty;let i=nv(r);r.next&&r.err(`Unexpected trailing text`);let a=fv(lv(i));return pv(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return U.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!r.type||o.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(` 218`)}};ev.empty=new ev(!0);var tv=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function nv(e){let t=[];do t.push(rv(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function rv(e){let t=[];do t.push(iv(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function iv(e){let t=cv(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=ov(e,t);else break;return t}function av(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function ov(e,t){let n=av(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:av(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function sv(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function cv(e){if(e.eat(`(`)){let t=nv(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}else if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=sv(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function lv(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}
vendor: 54,635 bytes, lines 218-221
218function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t<e.min;t++){let t=n();i(a(e.expr,o),t),o=t}if(e.max==-1)i(a(e.expr,o),o);else for(let t=e.min;t<e.max;t++){let t=n();r(o,t),i(a(e.expr,o),t),o=t}return[r(o)]}else if(e.type==`name`)return[r(t,void 0,e.value)];else throw Error(`Unknown expr type`)}}function uv(e,t){return t-e}function dv(e,t){let n=[];return r(t),n.sort(uv);function r(t){let i=e[t];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(t);for(let e=0;e<i.length;e++){let{term:t,to:a}=i[e];!t&&n.indexOf(a)==-1&&r(a)}}}function fv(e){let t=Object.create(null);return n(dv(e,0));function n(r){let i=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);dv(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new ev(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(uv);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function pv(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:n,next:o}=e.next[t];a.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),r.indexOf(o)==-1&&r.push(o)}i&&t.err(`Only non-generatable nodes (`+a.join(`, `)+`) in a required position (see https://prosemirror.net/docs/guide/#generatable)`)}}function mv(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function hv(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(i===void 0){let t=e[r];if(t.hasDefault)i=t.default;else throw RangeError(`No value supplied for attribute `+r)}n[r]=i}return n}function gv(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}function _v(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new bv(e,r,t[r]);return n}var vv=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(` `):[],this.attrs=_v(e,n.attrs),this.defaultAttrs=mv(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e==`text`),this.isText=e==`text`}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==ev.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?`pre`:`normal`)}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:hv(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new Z_(this,this.computeAttrs(e),U.from(t),j_.setFrom(n))}createChecked(e=null,t,n){return t=U.from(t),this.checkContent(t),new Z_(this,this.computeAttrs(e),t,j_.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=U.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(U.empty,!0);return i?new Z_(this,e,t.append(i),j_.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){gv(this.attrs,e,`node`,this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||=e.slice(0,n);return t?t.length?t:j_.none:e}static compile(t,n){let r=Object.create(null);t.forEach((t,i)=>r[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function yv(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var bv=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?yv(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},xv=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=_v(e,r.attrs),this.excluded=null;let i=mv(this.attrs);this.instance=i?new j_(this,i):null}create(e=null){return!e&&this.instance?this.instance:new j_(this,hv(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){gv(this.attrs,e,`mark`,this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},Sv=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=C_.from(e.nodes),t.marks=C_.from(e.marks||{}),this.nodes=vv.compile(this.spec.nodes,this),this.marks=xv.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=ev.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?Cv(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:Cv(this,n.split(` `))}this.nodeFromJSON=e=>Z_.fromJSON(this,e),this.markFromJSON=e=>j_.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(!(e instanceof vv))throw RangeError(`Invalid node type: `+e);else if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new Q_(n,n.defaultAttrs,e,j_.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function Cv(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],o=a;if(a)n.push(a);else for(let t in e.marks){let r=e.marks[t];(i==`_`||r.spec.group&&r.spec.group.split(` `).indexOf(i)>-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}function wv(e){return e.tag!=null}function Tv(e){return e.style!=null}var Ev=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(wv(e))this.tags.push(e);else if(Tv(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new Fv(this,t,!1);return n.addAll(e,j_.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new Fv(this,t,!0);return n.addAll(e,j_.none,t.from,t.to),W.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(Lv(e,n.tag)&&(n.namespace===void 0||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(t===!1)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],a=r.style;if(!(a.indexOf(e)!=0||r.context&&!n.matchesContext(r.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(e===!1)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=e.priority==null?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((e.priority==null?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=Rv(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=Rv(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new e(t,e.schemaRules(t)))}},Dv={address:!0,article:!0,aside:!0,blockquote:!0,body:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Ov={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},kv={ol:!0,ul:!0},Av=1,jv=2,Mv=4;function Nv(e,t,n){return t==null?e&&e.whitespace==`pre`?Av|jv:n&~Mv:(t?Av:0)|(t===`full`?jv:0)}var Pv=class{constructor(e,t,n,r,i,a){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=a,this.content=[],this.activeMarks=j_.none,this.match=i||(a&Mv?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(U.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Av)){let e=this.content[this.content.length-1],t;if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let t=U.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(U.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Dv.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},Fv=class{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,a=Nv(null,t.preserveWhitespace,0)|(n?Mv:0);i=r?new Pv(r.type,r.attrs,j_.none,!0,t.topMatch||r.type.contentMatch,a):n?new Pv(null,null,j_.none,!0,null,a):new Pv(e.schema.topNodeType,null,j_.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=r.options&jv?`full`:this.localPreserveWS||(r.options&Av)>0,{schema:a}=this.parser;if(i===`full`||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(!i){if(n=n.replace(/[ \t\r\n\u000c]+/g,` `),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&i.nodeName==`BR`||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}}else if(i===`full`)n=n.replace(/\r\n?/g,` 219`);else if(a.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(a.linebreakReplacement.create())){let e=n.split(/\r?\n|\r/);for(let n=0;n<e.length;n++)n&&this.insertNode(a.linebreakReplacement.create(),t,!0),e[n]&&this.insertNode(a.text(e[n]),t,!/\S/.test(e[n]));n=``}else n=n.replace(/\r?\n|\r/g,` `);n&&this.insertNode(a.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,i=this.top;(e.tagName==`PRE`||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a=e.nodeName.toLowerCase(),o;kv.hasOwnProperty(a)&&this.parser.normalizeLists&&Iv(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));out:if(s?s.ignore:Ov.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let n,r=this.needsBlock;if(Dv.hasOwnProperty(a))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break out}let o=s&&s.skip?t:this.readStyles(e,t);o&&this.addAll(e,o),n&&this.sync(i),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,s,n,s.consuming===!1?o:void 0)}this.localPreserveWS=r}leafFallback(e,t){e.nodeName==`BR`&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(` 220`),t)}ignoreFallback(e,t){e.nodeName==`BR`&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text(`-`),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],i=n.getPropertyValue(r);if(i)for(let e;;){let n=this.parser.matchStyle(r,i,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),n.consuming===!1)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,a;if(t.node)if(a=this.parser.schema.nodes[t.node],a.isLeaf)this.insertNode(a.create(t.attrs),n,e.nodeName==`BR`)||this.leafFallback(e,n);else{let e=this.enter(a,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;typeof t.contentElement==`string`?r=e.querySelector(t.contentElement):typeof t.contentElement==`function`?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(o)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let a=n?e.childNodes[n]:e.firstChild,o=r==null?null:e.childNodes[r];a!=o;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,a=0;t>=0;t--){let o=this.nodes[t],s=o.findWrapping(e);if(s&&(!r||r.length>s.length+a)&&(r=s,i=o,!s.length))break;if(o.solid){if(n)break;a+=2}}if(!r)return null;this.sync(i);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&=t.match.matchType(e.type);let n=j_.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):zv(i.type,e.type))&&(n=i.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let i=this.findPlace(e.create(t),n,!1);return i&&=this.enterInner(e,t,n,!0,r),i}enterInner(e,t,n,r=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let o=Nv(e,i,a.options);a.options&Mv&&a.content.length==0&&(o|=Mv);let s=j_.none;return n=n.filter(t=>(a.type?a.type.allowsMarkType(t.type):zv(t.type,e))?(s=t.addToSet(s),!1):!0),this.nodes.push(new Pv(e,t,s,r,null,o)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=Av);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf(`|`)>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split(`/`),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+ +!r,a=(e,o)=>{for(;e>=0;e--){let s=t[e];if(s==``){if(e==t.length-1||e==0)continue;for(;o>=i;o--)if(a(e-1,o))return!0;return!1}else{let e=o>0||o==0&&r?this.nodes[o].type:n&&o>=i?n.node(o-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;o--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}};function Iv(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&kv.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function Lv(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Rv(e){let t={};for(let n in e)t[n]=e[n];return t}function zv(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],o=e=>{a.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t||a.indexOf(i)<0&&o(i))return!0}};if(o(i.contentMatch))return!0}}var Bv=class e{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||=Hv(t).createDocumentFragment();let r=n,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let n=0,a=0;for(;n<i.length&&a<e.marks.length;){let t=e.marks[a];if(!this.marks[t.type.name]){a++;continue}if(!t.eq(i[n][0])||t.type.spec.spanning===!1)break;n++,a++}for(;n<i.length;)r=i.pop()[1];for(;a<e.marks.length;){let n=e.marks[a++],o=this.serializeMark(n,e.isInline,t);o&&(i.push([n,r]),r.appendChild(o.dom),r=o.contentDOM||o.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){if(e.isText)return Hv(t).createTextNode(e.text);let{dom:n,contentDOM:r}=Kv(Hv(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw RangeError(`Content hole not allowed in a leaf node spec`);this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&Kv(Hv(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return typeof t==`string`?{dom:e.createTextNode(t)}:Kv(e,t,n,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(e){let t=Vv(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return Vv(e.marks)}};function Vv(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function Hv(e){return e.document||window.document}var Uv=new WeakMap;function Wv(e){let t=Uv.get(e);return t===void 0&&Uv.set(e,t=Gv(e)),t}function Gv(e){let t=null;function n(e){if(e&&typeof e==`object`)if(Array.isArray(e))if(typeof e[0]==`string`)t||=[],t.push(e);else for(let t=0;t<e.length;t++)n(e[t]);else for(let t in e)n(e[t])}return n(e),t}function Kv(e,t,n,r){if(t.nodeType==1)return{dom:t};if(t.dom&&t.dom.nodeType==1)return t;let i=t[0],a;if(typeof i!=`string`)throw RangeError(`Invalid array passed to renderSpec`);if(r&&(a=Wv(r))&&a.indexOf(t)>-1)throw RangeError(`Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.`);let o=i.indexOf(` `);o>0&&(n=i.slice(0,o),i=i.slice(o+1));let s,c=n?e.createElementNS(n,i):e.createElement(i),l=t[1],u=1;if(l&&typeof l==`object`&&l.nodeType==null&&!Array.isArray(l)){u=2;for(let e in l)if(l[e]!=null){let t=e.indexOf(` `);t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),l[e]):e==`style`&&c.style?c.style.cssText=l[e]:c.setAttribute(e,l[e])}}for(let i=u;i<t.length;i++){let a=t[i];if(a===0){if(i<t.length-1||i>u)throw RangeError(`Content hole must be the only child of its parent node`);return{dom:c,contentDOM:c}}else if(typeof a==`string`)c.appendChild(e.createTextNode(a));else{let{dom:t,contentDOM:i}=Kv(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var qv=65535,Jv=2**16;function Yv(e,t){return e+t*Jv}function Xv(e){return e&qv}function Zv(e){return(e-(e&qv))/Jv}var Qv=1,$v=2,ey=4,ty=8,ny=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&ty)>0}get deletedBefore(){return(this.delInfo&(Qv|ey))>0}get deletedAfter(){return(this.delInfo&($v|ey))>0}get deletedAcross(){return(this.delInfo&ey)>0}},ry=class e{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}recover(e){let t=0,n=Xv(e);if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[e*3+2]-this.ranges[e*3+1];return this.ranges[n*3]+t+Zv(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let s=this.ranges[o]-(this.inverted?r:0);if(s>e)break;let c=this.ranges[o+i],l=this.ranges[o+a],u=s+c;if(e<=u){let i=c?e==s?-1:e==u?1:t:t,a=s+r+(i<0?0:l);if(n)return a;let d=e==(t<0?s:u)?null:Yv(o/3,e-s),f=e==s?$v:e==u?Qv:ey;return(t<0?e!=s:e!=u)&&(f|=ty),new ny(a,f,d)}r+=l-c}return n?e+r:new ny(e+r,0,null)}touches(e,t){let n=0,r=Xv(t),i=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?n:0);if(o>e)break;let s=this.ranges[t+i];if(e<=o+s&&t==r*3)return!0;n+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let a=this.ranges[r],o=a-(this.inverted?i:0),s=a+(this.inverted?0:i),c=this.ranges[r+t],l=this.ranges[r+n];e(o,o+c,s,s+l),i+=l-c}}invert(){return new e(this.ranges,!this.inverted)}toString(){return(this.inverted?`-`:``)+JSON.stringify(this.ranges)}static offset(t){return t==0?e.empty:new e(t<0?[0,-t,0]:[0,0,t])}};ry.empty=new ry([]);var iy=class e{constructor(e,t,n=0,r=e?e.length:0){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(t=0,n=this.maps.length){return new e(this._maps,this.mirror,t,n)}appendMap(e,t){this.ownData||=(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],r!=null&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||=[],this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),r!=null&&r>t?n-r-1:void 0)}}invert(){let t=new e;return t.appendMappingInverted(this),t}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let i=this._maps[n].mapResult(e,t);if(i.recover!=null){let t=this.getMirror(n);if(t!=null&&t>n&&t<this.to){n=t,e=this._maps[t].recover(i.recover);continue}}r|=i.delInfo,e=i.pos}return n?e:new ny(e,r,null)}},ay=Object.create(null),oy=class{getMap(){return ry.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError(`Invalid input for Step.fromJSON`);let n=ay[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in ay)throw RangeError(`Duplicate use of step JSON ID `+e);return ay[e]=t,t.prototype.jsonID=e,t}},sy=class e{constructor(e,t){this.doc=e,this.failed=t}static ok(t){return new e(t,null)}static fail(t){return new e(null,t)}static fromReplace(t,n,r,i){try{return e.ok(t.replace(n,r,i))}catch(t){if(t instanceof M_)return e.fail(t.message);throw t}}};function cy(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(cy(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return U.fromArray(r)}var ly=class e extends oy{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new W(cy(t.content,(e,t)=>!e.isAtom||!t.type.allowsMarkType(this.mark.type)?e:e.mark(this.mark.addToSet(e.marks)),r),t.openStart,t.openEnd);return sy.fromReplace(e,this.from,this.to,i)}invert(){return new uy(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`addMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for AddMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};oy.jsonID(`addMark`,ly);var uy=class e extends oy{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new W(cy(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return sy.fromReplace(e,this.from,this.to,n)}invert(){return new ly(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`removeMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for RemoveMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};oy.jsonID(`removeMark`,uy);var dy=class e extends oy{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return sy.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return sy.fromReplace(e,this.pos,this.pos+1,new W(U.from(n),0,+!t.isLeaf))}invert(t){let n=t.nodeAt(this.pos);if(n){let t=this.mark.addToSet(n.marks);if(t.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(t))return new e(this.pos,n.marks[r]);return new e(this.pos,this.mark)}}return new fy(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`addNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for AddNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};oy.jsonID(`addNodeMark`,dy);var fy=class e extends oy{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return sy.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return sy.fromReplace(e,this.pos,this.pos+1,new W(U.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new dy(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`removeNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for RemoveNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};oy.jsonID(`removeNodeMark`,fy);var py=class e extends oy{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&gy(e,this.from,this.to)?sy.fail(`Structure replace would overwrite content`):sy.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new ry([this.from,this.to-this.from,this.slice.size])}invert(t){return new e(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.to,-1),r=this.from==this.to&&e.MAP_BIAS<0?n:t.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new e(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof e)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?W.empty:new W(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new e(this.from,this.to+(t.to-t.from),n,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?W.empty:new W(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new e(t.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:`replace`,from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for ReplaceStep.fromJSON`);return new e(n.from,n.to,W.fromJSON(t,n.slice),!!n.structure)}};py.MAP_BIAS=1,oy.jsonID(`replace`,py);var hy=class e extends oy{constructor(e,t,n,r,i,a,o=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=a,this.structure=o}apply(e){if(this.structure&&(gy(e,this.from,this.gapFrom)||gy(e,this.gapTo,this.to)))return sy.fail(`Structure gap-replace would overwrite content`);let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return sy.fail(`Gap is not a flat range`);let n=this.slice.insertAt(this.insert,t.content);return n?sy.fromReplace(e,this.from,this.to,n):sy.fail(`Content does not fit in gap`)}getMap(){return new ry([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new e(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),a=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||a>r.pos?null:new e(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:`replaceAround`,from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`||typeof n.gapFrom!=`number`||typeof n.gapTo!=`number`||typeof n.insert!=`number`)throw RangeError(`Invalid input for ReplaceAroundStep.fromJSON`);return new e(n.from,n.to,n.gapFrom,n.gapTo,W.fromJSON(t,n.slice),n.insert,!!n.structure)}};oy.jsonID(`replaceAround`,hy);function gy(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let e=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function _y(e,t,n,r){let i=[],a=[],o,s;e.doc.nodesBetween(t,n,(e,c,l)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&l.type.allowsMarkType(r.type)){let l=Math.max(c,t),d=Math.min(c+e.nodeSize,n),f=r.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(f)||(o&&o.to==l&&o.mark.eq(u[e])?o.to=d:i.push(o=new uy(l,d,u[e])));s&&s.to==l?s.to=d:a.push(s=new ly(l,d,r))}}),i.forEach(t=>e.step(t)),a.forEach(t=>e.step(t))}function vy(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(e,o)=>{if(!e.isInline)return;a++;let s=null;if(r instanceof xv){let t=e.marks,n;for(;n=r.isInSet(t);)(s||=[]).push(n),t=n.removeFromSet(t)}else r?r.isInSet(e.marks)&&(s=[r]):s=e.marks;if(s&&s.length){let r=Math.min(o+e.nodeSize,n);for(let e=0;e<s.length;e++){let n=s[e],c;for(let e=0;e<i.length;e++){let t=i[e];t.step==a-1&&n.eq(i[e].style)&&(c=t)}c?(c.to=r,c.step=a):i.push({style:n,from:Math.max(o,t),to:r,step:a})}}}),i.forEach(t=>e.step(new uy(t.from,t.to,t.style)))}function yy(e,t,n,r=n.contentMatch,i=!0){let a=e.doc.nodeAt(t),o=[],s=t+1;for(let t=0;t<a.childCount;t++){let c=a.child(t),l=s+c.nodeSize,u=r.matchType(c.type);if(!u)o.push(new py(s,l,W.empty));else{r=u;for(let t=0;t<c.marks.length;t++)n.allowsMarkType(c.marks[t].type)||e.step(new uy(s,l,c.marks[t]));if(i&&c.isText&&n.whitespace!=`pre`){let e,t=/\r?\n|\r/g,r;for(;e=t.exec(c.text);)r||=new W(U.from(n.schema.text(` `,n.allowedMarks(c.marks))),0,0),o.push(new py(s+e.index,s+e.index+e[0].length,r))}}s=l}if(!r.validEnd){let t=r.fillBefore(U.empty,!0);e.replace(s,s,new W(t,0,0))}for(let t=o.length-1;t>=0;t--)e.step(o[t])}function by(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function xy(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,i=0;;--n){let a=e.$from.node(n),o=e.$from.index(n)+r,s=e.$to.indexAfter(n)-i;if(n<e.depth&&a.canReplace(o,s,t))return n;if(n==0||a.type.spec.isolating||!by(a,o,s))break;o&&(r=1),s<a.childCount&&(i=1)}return null}function Sy(e,t,n){let{$from:r,$to:i,depth:a}=t,o=r.before(a+1),s=i.after(a+1),c=o,l=s,u=U.empty,d=0;for(let e=a,t=!1;e>n;e--)t||r.index(e)>0?(t=!0,u=U.from(r.node(e).copy(u)),d++):c--;let f=U.empty,p=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,f=U.from(i.node(e).copy(f)),p++):l++;e.step(new hy(c,l,o,s,new W(u.append(f),d,p),u.size-d,!0))}function Cy(e,t,n=null,r=e){let i=Ty(e,t),a=i&&Ey(r,t);return a?i.map(wy).concat({type:t,attrs:n}).concat(a.map(wy)):null}function wy(e){return{type:e,attrs:null}}function Ty(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.contentMatchAt(r).findWrapping(t);if(!a)return null;let o=a.length?a[0]:t;return n.canReplaceWith(r,i,o)?a:null}function Ey(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.child(r),o=t.contentMatch.findWrapping(a.type);if(!o)return null;let s=(o.length?o[o.length-1]:t).contentMatch;for(let e=r;s&&e<i;e++)s=s.matchType(n.child(e).type);return!s||!s.validEnd?null:o}function Dy(e,t,n){let r=U.empty;for(let e=n.length-1;e>=0;e--){if(r.size){let t=n[e].type.contentMatch.matchFragment(r);if(!t||!t.validEnd)throw RangeError(`Wrapper type given to Transform.wrap does not form valid content of its parent wrapper`)}r=U.from(n[e].type.create(n[e].attrs,r))}let i=t.start,a=t.end;e.step(new hy(i,a,i,a,new W(r,0,0),n.length,!0))}function Oy(e,t,n,r,i){if(!r.isTextblock)throw RangeError(`Type given to setBlockType should be a textblock`);let a=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{let o=typeof i==`function`?i(t):i;if(t.isTextblock&&!t.hasMarkup(r,o)&&jy(e.doc,e.mapping.slice(a).map(n),r)){let i=null;if(r.schema.linebreakReplacement){let e=r.whitespace==`pre`,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}i===!1&&Ay(e,t,n,a),yy(e,e.mapping.slice(a).map(n,1),r,void 0,i===null);let s=e.mapping.slice(a),c=s.map(n,1),l=s.map(n+t.nodeSize,1);return e.step(new hy(c,l,c+1,l-1,new W(U.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&ky(e,t,n,a),!1}})}function ky(e,t,n,r){t.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let i=e.mapping.slice(r).map(n+1+a+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function Ay(e,t,n,r){t.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+a);e.replaceWith(i,i+1,t.type.schema.text(` 221`))}})}function jy(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function My(e,t,n,r,i){let a=e.doc.nodeAt(t);if(!a)throw RangeError(`No node at given position`);n||=a.type;let o=n.create(r,null,i||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,o);if(!n.validContent(a.content))throw RangeError(`Invalid content for node type `+n.name);e.step(new hy(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new W(U.from(o),0,0),1,!0))}function Ny(e,t,n=1,r){let i=e.resolve(t),a=i.depth-n,o=r&&r[r.length-1]||i.parent;if(a<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=n-2;e>a;e--,t--){let n=i.node(e),a=i.index(e);if(n.type.spec.isolating)return!1;let o=n.content.cutByIndex(a,n.childCount),s=r&&r[t+1];s&&(o=o.replaceChild(0,s.type.create(s.attrs)));let c=r&&r[t]||n;if(!n.canReplace(a+1,n.childCount)||!c.type.validContent(o))return!1}let s=i.indexAfter(a),c=r&&r[0];return i.node(a).canReplaceWith(s,s,c?c.type:i.node(a+1).type)}function Py(e,t,n=1,r){let i=e.doc.resolve(t),a=U.empty,o=U.empty;for(let e=i.depth,t=i.depth-n,s=n-1;e>t;e--,s--){a=U.from(i.node(e).copy(a));let t=r&&r[s];o=U.from(t?t.type.create(t.attrs,o):i.node(e).copy(o))}e.step(new py(t,t,new W(a.append(o),n,n),!0))}function Fy(e,t){let n=e.resolve(t),r=n.index();return Ly(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function Iy(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let i=0;i<t.childCount;i++){let a=t.child(i),o=a.type==r?e.type.schema.nodes.text:a.type;if(n=n.matchType(o),!n||!e.type.allowsMarks(a.marks))return!1}return n.validEnd}function Ly(e,t){return!!(e&&t&&!e.isLeaf&&Iy(e,t))}function Ry(e,t,n=-1){let r=e.resolve(t);for(let e=r.depth;;e--){let i,a,o=r.index(e);if(e==r.depth?(i=r.nodeBefore,a=r.nodeAfter):n>0?(i=r.node(e+1),o++,a=r.node(e).maybeChild(o)):(i=r.node(e).maybeChild(o-1),a=r.node(e+1)),i&&!i.isTextblock&&Ly(i,a)&&r.node(e).canReplace(o,o+1))return t;if(e==0)break;t=n<0?r.before(e):r.after(e)}}function zy(e,t,n){let r=null,{linebreakReplacement:i}=e.doc.type.schema,a=e.doc.resolve(t-n),o=a.node().type;if(i&&o.inlineContent){let e=o.whitespace==`pre`,t=!!o.contentMatch.matchType(i);e&&!t?r=!1:!e&&t&&(r=!0)}let s=e.steps.length;if(r===!1){let r=e.doc.resolve(t+n);Ay(e,r.node(),r.before(),s)}o.inlineContent&&yy(e,t+n-1,o,a.node().contentMatchAt(a.index()),r==null);let c=e.mapping.slice(s),l=c.map(t-n);if(e.step(new py(l,c.map(t+n,-1),W.empty,!0)),r===!0){let t=e.doc.resolve(l);ky(e,t.node(),t.before(),e.steps.length)}return e}function By(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let e=r.depth-1;e>=0;e--){let t=r.index(e);if(r.node(e).canReplaceWith(t,t,n))return r.before(e+1);if(t>0)return null}if(r.parentOffset==r.parent.content.size)for(let e=r.depth-1;e>=0;e--){let t=r.indexAfter(e);if(r.node(e).canReplaceWith(t,t,n))return r.after(e+1);if(t<r.node(e).childCount)return null}return null}function Vy(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let i=n.content;for(let e=0;e<n.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(n.openStart==0&&n.size?2:1);e++)for(let t=r.depth;t>=0;t--){let n=t==r.depth?0:r.pos<=(r.start(t+1)+r.end(t+1))/2?-1:1,a=r.index(t)+ +(n>0),o=r.node(t),s=!1;if(e==1)s=o.canReplace(a,a,i);else{let e=o.contentMatchAt(a).findWrapping(i.firstChild.type);s=e&&o.canReplaceWith(a,a,e[0])}if(s)return n==0?r.pos:n<0?r.before(t+1):r.after(t+1)}return null}function Hy(e,t,n=t,r=W.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),a=e.resolve(n);return Uy(i,a,r)?new py(t,n,r):new Wy(i,a,r).fit()}function Uy(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}var Wy=class{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=U.empty;for(let t=0;t<=e.depth;t++){let n=e.node(t);this.frontier.push({type:n.type,match:n.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=U.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(e<0?this.$to:n.doc.resolve(e));if(!r)return null;let i=this.placed,a=n.depth,o=r.depth;for(;a&&o&&i.childCount==1;)i=i.firstChild.content,a--,o--;let s=new W(i,a,o);return e>-1?new hy(n.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||n.pos!=this.$to.pos?new py(n.pos,r.pos,s):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let i=t.firstChild;if(t.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}t=i.content}for(let t=1;t<=2;t++)for(let n=t==1?e:this.unplaced.openStart;n>=0;n--){let e,r=null;n?(r=qy(this.unplaced.content,n-1).firstChild,e=r.content):e=this.unplaced.content;let i=e.firstChild;for(let e=this.depth;e>=0;e--){let{type:a,match:o}=this.frontier[e],s,c=null;if(t==1&&(i?o.matchType(i.type)||(c=o.fillBefore(U.from(i),!1)):r&&a.compatibleContent(r.type)))return{sliceDepth:n,frontierDepth:e,parent:r,inject:c};if(t==2&&i&&(s=o.findWrapping(i.type)))return{sliceDepth:n,frontierDepth:e,parent:r,wrap:s};if(r&&o.matchType(r.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced;return Qy(e,-1)<=t?!1:(this.unplaced.size>1&&Qy(e,1)>n&&n++,this.unplaced=new W(e,t+1,n),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=qy(e,t);if(r.childCount<=1&&t>0){let i=e.size-t<=t+r.size;this.unplaced=new W(Gy(e,t-1,1),t-1,i?t-1:n)}else this.unplaced=new W(Gy(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:r,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let e=0;e<i.length;e++)this.openFrontierNode(i[e]);let a=this.unplaced,o=n?n.content:a.content,s=a.openStart-e,c=0,l=[],{match:u,type:d}=this.frontier[t];if(r){for(let e=0;e<r.childCount;e++)l.push(r.child(e));u=u.matchFragment(r)}let f=o.size+e-(a.content.size-a.openEnd);for(;c<o.childCount;){let e=o.child(c),t=u.matchType(e.type);if(!t)break;c++,(c>1||s==0||e.content.size)&&(u=t,l.push(Jy(e.mark(d.allowedMarks(e.marks)),c==1?s:0,c==o.childCount?f:-1)))}let p=c==o.childCount;p||(f=-1),this.placed=Ky(this.placed,t,U.from(l)),this.frontier[t].match=u,p&&f<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=o;e<f;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=p?e==0?W.empty:new W(Gy(a.content,e-1,1),e-1,f<0?a.openEnd:e-1):new W(Gy(a.content,e,c),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!Yy(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){scan:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),a=Yy(e,t,r,n,i);if(a){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],i=Yy(e,n,r,t,!0);if(!i||i.childCount)continue scan}return{depth:t,fit:a,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=Ky(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=Ky(this.placed,this.depth,U.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(U.empty,!0);e.childCount&&(this.placed=Ky(this.placed,this.frontier.length,e))}};function Gy(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(Gy(e.firstChild.content,t-1,n)))}function Ky(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(Ky(e.lastChild.content,t-1,n)))}function qy(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function Jy(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,Jy(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(U.empty,!0)))),e.copy(r)}function Yy(e,t,n,r,i){let a=e.node(t),o=i?e.indexAfter(t):e.index(t);if(o==a.childCount&&!n.compatibleContent(a.type))return null;let s=r.fillBefore(a.content,!0,o);return s&&!Xy(n,a.content,o)?s:null}function Xy(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function Zy(e){return e.spec.defining||e.spec.definingForContent}function Qy(e,t){for(let n=0;;n++){let r=t<0?e.firstChild:e.lastChild;if(!r||r.isAtom)return n;e=r.content}}function $y(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),a=e.doc.resolve(n);if(Uy(i,a,r))return e.step(new py(t,n,r));let o=rb(i,a);o[o.length-1]==0&&o.pop();let s=-(i.depth+1);o.unshift(s);for(let e=i.depth,t=i.pos-1;e>0;e--,t--){let n=i.node(e).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;o.indexOf(e)>-1?s=e:i.before(e)==t&&o.splice(1,0,-e)}let c=o.indexOf(s),l=[],u=r.openStart;for(let e=r.content,t=0;;t++){let n=e.firstChild;if(l.push(n),t==r.openStart)break;e=n.content}for(let e=u-1;e>=0;e--){let t=l[e],n=Zy(t.type);if(n&&!t.sameMarkup(i.node(Math.abs(s)-1)))u=e;else if(n||!t.type.isTextblock)break}for(let t=r.openStart;t>=0;t--){let s=(t+u+1)%(r.openStart+1),d=l[s];if(d)for(let t=0;t<o.length;t++){let l=o[(t+c)%o.length],u=!0;l<0&&(u=!1,l=-l);let f=i.node(l-1),p=i.index(l-1);if(f.canReplaceWith(p,p,d.type,d.marks))return e.replace(i.before(l),u?a.after(l):n,new W(eb(r.content,0,r.openStart,s),s,r.openEnd))}}let d=e.steps.length;for(let s=o.length-1;s>=0&&(e.replace(t,n,r),!(e.steps.length>d));s--){let e=o[s];e<0||(t=i.before(e),n=a.after(e))}}function eb(e,t,n,r,i){if(t<n){let i=e.firstChild;e=e.replaceChild(0,i.copy(eb(i.content,t+1,n,r,i)))}if(t>r){let t=i.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(U.empty,!0))}return e}function tb(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=By(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new W(U.from(r),0,0))}function nb(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n);if(r.parent.isTextblock&&i.parent.isTextblock&&r.start()!=i.start()&&r.parentOffset==0&&i.parentOffset==0){let a=r.sharedDepth(n),o=!1;for(let e=r.depth;e>a;e--)r.node(e).type.spec.isolating&&(o=!0);for(let e=i.depth;e>a;e--)i.node(e).type.spec.isolating&&(o=!0);if(!o){for(let e=r.depth;e>0&&t==r.start(e);e--)t=r.before(e);for(let e=i.depth;e>0&&n==i.start(e);e--)n=i.before(e);r=e.doc.resolve(t),i=e.doc.resolve(n)}}let a=rb(r,i);for(let t=0;t<a.length;t++){let n=a[t],o=t==a.length-1;if(o&&n==0||r.node(n).type.contentMatch.validEnd)return e.delete(r.start(n),i.end(n));if(n>0&&(o||r.node(n-1).canReplace(r.index(n-1),i.indexAfter(n-1))))return e.delete(r.before(n),i.after(n))}for(let a=1;a<=r.depth&&a<=i.depth;a++)if(t-r.start(a)==r.depth-a&&n>r.end(a)&&i.end(a)-n!=i.depth-a&&r.start(a-1)==i.start(a-1)&&r.node(a-1).canReplace(r.index(a-1),i.index(a-1)))return e.delete(r.before(a),n);e.delete(t,n)}function rb(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let r=e.start(i);if(r<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(r==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==r-1)&&n.push(i)}return n}var ib=class e extends oy{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return sy.fail(`No node at attribute step's position`);let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let r=t.type.create(n,null,t.marks);return sy.fromReplace(e,this.pos,this.pos+1,new W(U.from(r),0,+!t.isLeaf))}getMap(){return ry.empty}invert(t){return new e(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.attr,this.value)}toJSON(){return{stepType:`attr`,pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!=`number`||typeof n.attr!=`string`)throw RangeError(`Invalid input for AttrStep.fromJSON`);return new e(n.pos,n.attr,n.value)}};oy.jsonID(`attr`,ib);var ab=class e extends oy{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return sy.ok(n)}getMap(){return ry.empty}invert(t){return new e(this.attr,t.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:`docAttr`,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!=`string`)throw RangeError(`Invalid input for DocAttrStep.fromJSON`);return new e(n.attr,n.value)}};oy.jsonID(`docAttr`,ab);var ob=class extends Error{};ob=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},ob.prototype=Object.create(Error.prototype),ob.prototype.constructor=ob,ob.prototype.name=`TransformError`;var sb=class{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new iy}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new ob(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let n=0;n<this.mapping.maps.length;n++){let r=this.mapping.maps[n];n&&(e=r.map(e,1),t=r.map(t,-1)),r.forEach((n,r,i,a)=>{e=Math.min(e,i),t=Math.max(t,a)})}return e==1e9?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=W.empty){let r=Hy(this.doc,e,t,n);return r&&this.step(r),this}replaceWith(e,t,n){return this.replace(e,t,new W(U.from(n),0,0))}delete(e,t){return this.replace(e,t,W.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return $y(this,e,t,n),this}replaceRangeWith(e,t,n){return tb(this,e,t,n),this}deleteRange(e,t){return nb(this,e,t),this}lift(e,t){return Sy(this,e,t),this}join(e,t=1){return zy(this,e,t),this}wrap(e,t){return Dy(this,e,t),this}setBlockType(e,t=e,n,r=null){return Oy(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r){return My(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new ib(e,t,n)),this}setDocAttribute(e,t){return this.step(new ab(e,t)),this}addNodeMark(e,t){return this.step(new dy(e,t)),this}removeNodeMark(e,t){let n=this.doc.nodeAt(e);if(!n)throw RangeError(`No node at position `+e);if(t instanceof j_)t.isInSet(n.marks)&&this.step(new fy(e,t));else{let r=n.marks,i,a=[];for(;i=t.isInSet(r);)a.push(new fy(e,i)),r=i.removeFromSet(r);for(let e=a.length-1;e>=0;e--)this.step(a[e])}return this}split(e,t=1,n){return Py(this,e,t,n),this}addMark(e,t,n){return _y(this,e,t,n),this}removeMark(e,t,n){return vy(this,e,t,n),this}clearIncompatible(e,t,n){return yy(this,e,t,n),this}},cb=Object.create(null),lb=class{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new ub(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=W.empty){let n=t.content.lastChild,r=null;for(let e=0;e<t.openEnd;e++)r=n,n=n.lastChild;let i=e.steps.length,a=this.ranges;for(let o=0;o<a.length;o++){let{$from:s,$to:c}=a[o],l=e.mapping.slice(i);e.replaceRange(l.map(s.pos),l.map(c.pos),o?W.empty:t),o==0&&vb(e,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:a,$to:o}=r[i],s=e.mapping.slice(n),c=s.map(a.pos),l=s.map(o.pos);i?e.deleteRange(c,l):(e.replaceRangeWith(c,l,t),vb(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new G(e):_b(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let r=e.depth-1;r>=0;r--){let i=t<0?_b(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):_b(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(i)return i}return null}
vendor: 6,542 bytes, line 221
221static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new hb(e.node(0))}static atStart(e){return _b(e,e,0,0,1)||new hb(e)}static atEnd(e){return _b(e,e,e.content.size,e.childCount,-1)||new hb(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError(`Invalid input for Selection.fromJSON`);let n=cb[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in cb)throw RangeError(`Duplicate use of selection JSON ID `+e);return cb[e]=t,t.prototype.jsonID=e,t}getBookmark(){return G.between(this.$anchor,this.$head).getBookmark()}};lb.prototype.visible=!0;var ub=class{constructor(e,t){this.$from=e,this.$to=t}},db=!1;function fb(e){!db&&!e.parent.inlineContent&&(db=!0,console.warn(`TextSelection endpoint not pointing into a node with inline content (`+e.parent.type.name+`)`))}var G=class e extends lb{constructor(e,t=e){fb(e),fb(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return lb.near(r);let i=t.resolve(n.map(this.anchor));return new e(i.parent.inlineContent?i:r,r)}replace(e,t=W.empty){if(super.replace(e,t),t==W.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(t){return t instanceof e&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new pb(this.anchor,this.head)}toJSON(){return{type:`text`,anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!=`number`||typeof n.head!=`number`)throw RangeError(`Invalid input for TextSelection.fromJSON`);return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(t,n,r){let i=t.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let e=lb.findFrom(n,r,!0)||lb.findFrom(n,-r,!0);if(e)n=e.$head;else return lb.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(lb.findFrom(t,-r,!0)||lb.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=i<0&&(t=n))),new e(t,n)}};lb.jsonID(`text`,G);var pb=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){return G.between(e.resolve(this.anchor),e.resolve(this.head))}},K=class e extends lb{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(t,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),a=t.resolve(i);return r?lb.near(a):new e(a)}content(){return new W(U.from(this.node),0,0)}eq(t){return t instanceof e&&t.anchor==this.anchor}toJSON(){return{type:`node`,anchor:this.anchor}}getBookmark(){return new mb(this.anchor)}static fromJSON(t,n){if(typeof n.anchor!=`number`)throw RangeError(`Invalid input for NodeSelection.fromJSON`);return new e(t.resolve(n.anchor))}static create(t,n){return new e(t.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}};K.prototype.visible=!1,lb.jsonID(`node`,K);var mb=class e{constructor(e){this.anchor=e}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new pb(r,r):new e(r)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&K.isSelectable(n)?new K(t):lb.near(t)}},hb=class e extends lb{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=W.empty){if(t==W.empty){e.delete(0,e.doc.content.size);let t=lb.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:`all`}}static fromJSON(t){return new e(t)}map(t){return new e(t)}eq(t){return t instanceof e}getBookmark(){return gb}};lb.jsonID(`all`,hb);var gb={map(){return this},resolve(e){return new hb(e)}};function _b(e,t,n,r,i,a=!1){if(t.inlineContent)return G.create(e,n);for(let o=r-(i>0?0:1);i>0?o<t.childCount:o>=0;o+=i){let r=t.child(o);if(!r.isAtom){let t=_b(e,r,n+i,i<0?r.childCount:0,i,a);if(t)return t}else if(!a&&K.isSelectable(r))return K.create(e,n-(i<0?r.nodeSize:0));n+=r.nodeSize*i}return null}function vb(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof py||i instanceof hy))return;let a=e.mapping.maps[r],o;a.forEach((e,t,n,r)=>{o??=r}),e.setSelection(lb.near(e.doc.resolve(o),n))}var yb=1,bb=2,xb=4,Sb=class extends sb{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw RangeError(`Selection passed to setSelection must point at the current document`);return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|yb)&~bb,this.storedMarks=null,this}get selectionSet(){return(this.updated&yb)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=bb,this}ensureMarks(e){return j_.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&bb)>0}addStep(e,t){super.addStep(e,t),this.updated&=~bb,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||j_.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(t==null)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(n??=t,!e)return this.deleteRange(t,n);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),!this.selection.empty&&this.selection.to==t+e.length&&this.setSelection(lb.near(this.selection.$to)),this}}setMeta(e,t){return this.meta[typeof e==`string`?e:e.key]=t,this}getMeta(e){return this.meta[typeof e==`string`?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=xb,this}get scrolledIntoView(){return(this.updated&xb)>0}};function Cb(e,t){return!t||!e?e:e.bind(t)}var wb=class{constructor(e,t,n){this.name=e,this.init=Cb(t.init,
vendor: 4,122 bytes, line 221
221n),this.apply=Cb(t.apply,n)}},Tb=[new wb(`doc`,{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new wb(`selection`,{init(e,t){return e.selection||lb.atStart(t.doc)},apply(e){return e.selection}}),new wb(`storedMarks`,{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new wb(`scrollToSelection`,{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})],Eb=class{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Tb.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError(`Adding different instances of a keyed plugin (`+e.key+`)`);this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new wb(e.key,e.spec.state,e))})}},Db=class e{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let i=!1;for(let a=0;a<this.config.plugins.length;a++){let o=this.config.plugins[a];if(o.spec.appendTransaction){let s=r?r[a].n:0,c=r?r[a].state:this,l=s<t.length&&o.spec.appendTransaction.call(o,s?t.slice(s):t,c,n);if(l&&n.filterTransaction(l,a)){if(l.setMeta(`appendedTransaction`,e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<a?{state:n,n:t.length}:{state:this,n:0})}t.push(l),n=n.applyInner(l),i=!0}r&&(r[a]={state:n,n:t.length})}}if(!i)return{state:n,transactions:t}}}applyInner(t){if(!t.before.eq(this.doc))throw RangeError(`Applying a mismatched transaction`);let n=new e(this.config),r=this.config.fields;for(let e=0;e<r.length;e++){let i=r[e];n[i.name]=i.apply(t,this[i.name],this,n)}return n}get tr(){return new Sb(this)}static create(t){let n=new Eb(t.doc?t.doc.type.schema:t.schema,t.plugins),r=new e(n);for(let e=0;e<n.fields.length;e++)r[n.fields[e].name]=n.fields[e].init(t,r);return r}reconfigure(t){let n=new Eb(this.schema,t.plugins),r=n.fields,i=new e(n);for(let e=0;e<r.length;e++){let n=r[e].name;i[n]=this.hasOwnProperty(n)?this[n]:r[e].init(t,i)}return i}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&typeof e==`object`)for(let n in e){if(n==`doc`||n==`selection`)throw RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(t[n]=i.toJSON.call(r,this[r.key]))}return t}static fromJSON(t,n,r){if(!n)throw RangeError(`Invalid input for EditorState.fromJSON`);if(!t.schema)throw RangeError(`Required config field 'schema' missing`);let i=new Eb(t.schema,t.plugins),a=new e(i);return i.fields.forEach(e=>{if(e.name==`doc`)a.doc=Z_.fromJSON(t.schema,n.doc);else if(e.name==`selection`)a.selection=lb.fromJSON(a.doc,n.selection);else if(e.name==`storedMarks`)n.storedMarks&&(a.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(let i in r){let o=r[i],s=o.spec.state;if(o.key==e.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(n,i)){a[e.name]=s.fromJSON.call(o,t,n[i],a);return}}a[e.name]=e.init(t,a)}}),a}};function Ob(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r==`handleDOMEvents`&&(i=Ob(i,t,{})),n[r]=i}return n}var kb=class{constructor(e){this.spec=e,this.props={},e.props&&Ob(e.props,this,this.props),this.key=e.key?e.key.key:jb(`plugin`)}getState(e){return e[this.key]}},Ab=Object.create(null);function jb(e){return e in Ab?e+`$`+ ++Ab[e]:(Ab[e]=0,e+`$`)}var Mb=class{constructor(e=`key`){this.key=jb(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}},Nb=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function Pb(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`backward`,e):n.parentOffset>0)?null:n}
vendor: 9,070 bytes, lines 221-222
221var Fb=(e,t,n)=>{let r=Pb(e,n);if(!r)return!1;let i=Vb(r);if(!i){let n=r.blockRange(),i=n&&xy(n);return i==null?!1:(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let a=i.nodeBefore;if(ax(e,i,t,-1))return!0;if(r.parent.content.size==0&&(zb(a,`end`)||K.isSelectable(a)))for(let n=r.depth;;n--){let o=Hy(e.doc,r.before(n),r.after(n),W.empty);if(o&&o.slice.size<o.to-o.from){if(t){let n=e.tr.step(o);n.setSelection(zb(a,`end`)?lb.findFrom(n.doc.resolve(n.mapping.map(i.pos,-1)),-1):K.create(n.doc,i.pos-a.nodeSize)),t(n.scrollIntoView())}return!0}if(n==1||r.node(n-1).childCount>1)break}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos-a.nodeSize,i.pos).scrollIntoView()),!0):!1},Ib=(e,t,n)=>{let r=Pb(e,n);if(!r)return!1;let i=Vb(r);return i?Rb(e,i,t):!1},Lb=(e,t,n)=>{let r=Hb(e,n);if(!r)return!1;let i=Gb(r);return i?Rb(e,i,t):!1};function Rb(e,t,n){let r=t.nodeBefore,i=t.pos-1;for(;!r.isTextblock;i--){if(r.type.spec.isolating)return!1;let e=r.lastChild;if(!e)return!1;r=e}let a=t.nodeAfter,o=t.pos+1;for(;!a.isTextblock;o++){if(a.type.spec.isolating)return!1;let e=a.firstChild;if(!e)return!1;a=e}let s=Hy(e.doc,i,o,W.empty);if(!s||s.from!=i||s instanceof py&&s.slice.size>=o-i)return!1;if(n){let t=e.tr.step(s);t.setSelection(G.create(t.doc,i)),n(t.scrollIntoView())}return!0}function zb(e,t,n=!1){for(let r=e;r;r=t==`start`?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}var Bb=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock(`backward`,e):r.parentOffset>0)return!1;a=Vb(r)}let o=a&&a.nodeBefore;return!o||!K.isSelectable(o)?!1:(t&&t(e.tr.setSelection(K.create(e.doc,a.pos-o.nodeSize)).scrollIntoView()),!0)};function Vb(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function Hb(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`forward`,e):n.parentOffset<n.parent.content.size)?null:n}var Ub=(e,t,n)=>{let r=Hb(e,n);if(!r)return!1;let i=Gb(r);if(!i)return!1;let a=i.nodeAfter;if(ax(e,i,t,1))return!0;if(r.parent.content.size==0&&(zb(a,`start`)||K.isSelectable(a))){let n=Hy(e.doc,r.before(),r.after(),W.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(zb(a,`start`)?lb.findFrom(r.doc.resolve(r.mapping.map(i.pos)),1):K.create(r.doc,r.mapping.map(i.pos))),t(r.scrollIntoView())}return!0}}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos,i.pos+a.nodeSize).scrollIntoView()),!0):!1},Wb=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock(`forward`,e):r.parentOffset<r.parent.content.size)return!1;a=Gb(r)}let o=a&&a.nodeAfter;return!o||!K.isSelectable(o)?!1:(t&&t(e.tr.setSelection(K.create(e.doc,a.pos)).scrollIntoView()),!0)};function Gb(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}var Kb=(e,t)=>{let n=e.selection,r=n instanceof K,i;if(r){if(n.node.isTextblock||!Fy(e.doc,n.from))return!1;i=n.from}else if(i=Ry(e.doc,n.from,-1),i==null)return!1;if(t){let n=e.tr.join(i);r&&n.setSelection(K.create(n.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(n.scrollIntoView())}return!0},qb=(e,t)=>{let n=e.selection,r;if(n instanceof K){if(n.node.isTextblock||!Fy(e.doc,n.to))return!1;r=n.to}else if(r=Ry(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},Jb=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),a=i&&xy(i);return a==null?!1:(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},Yb=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(` 222`).scrollIntoView()),!0)};function Xb(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var Zb=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),o=Xb(i.contentMatchAt(a));if(!o||!i.canReplaceWith(a,a,o))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,o.createAndFill());i.setSelection(lb.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},Qb=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof hb||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=Xb(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,o=e.tr.insert(n,a.createAndFill());o.setSelection(G.create(o.doc,n+1)),t(o.scrollIntoView())}return!0},$b=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(Ny(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),i=r&&xy(r);return i==null?!1:(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)};function ex(e){return(t,n)=>{if(t.selection instanceof K&&t.selection.node.isBlock){let{$from:e}=t.selection;return!e.parentOffset||!Ny(t.doc,e.pos)?!1:(n&&n(t.tr.split(e.pos).scrollIntoView()),!0)}if(!t.selection.$from.depth)return!1;let r=t.tr;!t.selection.empty&&(t.selection instanceof G||t.selection instanceof hb)&&r.deleteSelection();let{$from:i}=r.selection,a=r.steps.length,o=[],s,c,l=!1,u=!1;for(let t=i.depth;;t--)if(i.node(t).isBlock){l=i.end(t)==i.pos+(i.depth-t),u=i.start(t)==i.pos-(i.depth-t),c=Xb(i.node(t-1).contentMatchAt(i.indexAfter(t-1)));let n=e&&e(i.parent,l,i);o.unshift(n||(l&&c?{type:c}:null)),s=t;break}else{if(t==1)return!1;o.unshift(null)}let d=i.pos,f=Ny(r.doc,d,o.length,o);if(f||=(o[0]=c?{type:c}:null,Ny(r.doc,d,o.length,o)),!f)return!1;if(r.split(d,o.length,o),!l&&u&&i.node(s).type!=c){let e=r.mapping.slice(a),t=e.map(i.before(s)),n=r.doc.resolve(t);c&&i.node(s-1).canReplaceWith(n.index(),n.index()+1,c)&&r.setNodeMarkup(e.map(i.before(s)),c)}return n&&n(r.scrollIntoView()),!0}}var tx=ex(),nx=(e,t)=>{let{$from:n,to:r}=e.selection,i,a=n.sharedDepth(r);return a==0?!1:(i=n.before(a),t&&t(e.tr.setSelection(K.create(e.doc,i))),!0)},rx=(e,t)=>(t&&t(e.tr.setSelection(new hb(e.doc))),!0);function ix(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,a=t.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(a,a+1)||!(i.isTextblock||Fy(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function ax(e,t,n,r){let i=t.nodeBefore,a=t.nodeAfter,o,s,c=i.type.spec.isolating||a.type.spec.isolating;if(!c&&ix(e,t,n))return!0;let l=!c&&t.parent.canReplace(t.index(),t.index()+1);if(l&&(o=(s=i.contentMatchAt(i.childCount)).findWrapping(a.type))&&s.matchType(o[0]||a.type).validEnd){if(n){let r=t.pos+a.nodeSize,s=U.empty;for(let e=o.length-1;e>=0;e--)s=U.from(o[e].create(null,s));s=U.from(i.copy(s));let c=e.tr.step(new hy(t.pos-1,r,t.pos,r,new W(s,1,0),o.length,!0)),l=c.doc.resolve(r+2*o.length);l.nodeAfter&&l.nodeAfter.type==i.type&&Fy(c.doc,l.pos)&&c.join(l.pos),n(c.scrollIntoView())}return!0}let u=a.type.spec.isolating||r>0&&c?null:lb.findFrom(t,1),d=u&&u.$from.blockRange(u.$to),f=d&&xy(d);if(f!=null&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(l&&zb(a,`start`,!0)&&zb(i,`end`)){let r=i,o=[];for(;o.push(r),!r.isTextblock;)r=r.lastChild;let s=a,c=1;for(;!s.isTextblock;s=s.firstChild)c++;if(r.canReplace(r.childCount,r.childCount,s.content)){if(n){let r=U.empty;for(let e=o.length-1;e>=0;e--)r=U.from(o[e].copy(r));n(e.tr.step(new hy(t.pos-o.length,t.pos+a.nodeSize,t.pos+c,t.pos+a.nodeSize-c,new W(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function ox(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return i.node(a).isTextblock?(n&&n(t.tr.setSelection(G.create(t.doc,e<0?i.start(a):i.end(a)))),!0):!1}}var sx=ox(-1),cx=ox(1);function lx(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a),s=o&&Cy(o,e,t);return s?(r&&r(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function ux(e,t=null){return function(n,r){let i=!1;for(let r=0;r<n.selection.ranges.length&&!i;r++){let{$from:{pos:a},$to:{pos:o}}=n.selection.ranges[r];n.doc.nodesBetween(a,o,(r,a)=>{if(i)return!1;if(!(!r.isTextblock||r.hasMarkup(e,t)))if(r.type==e)i=!0;else{let t=n.doc.resolve(a),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:a},$to:{pos:o}}=n.selection.ranges[r];i.setBlockType(a,o,e,t)}r(i.scrollIntoView())}return!0}}function dx(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}var fx=dx(Nb,Fb,Bb),px=dx(Nb,Ub,Wb),mx={Enter:dx(Yb,Qb,$b,tx),"Mod-Enter":Zb,Backspace:fx,"Mod-Backspace":fx,"Shift-Backspace":fx,Delete:px,"Mod-Delete":px,"Mod-a":rx},hx={"Ctrl-h":mx.Backspace,"Alt-Backspace":mx[`Mod-Backspace`],"Ctrl-d":mx.Delete,"Ctrl-Alt-Backspace":mx[`Mod-Delete`],"Alt
222-Delete":mx[`Mod-Delete`],"Alt-d":mx[`Mod-Delete`],"Ctrl-a":sx,"Ctrl-e":cx};for(let e in mx)hx[e]=mx[e];typeof navigator<`u`?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<`u`&&os.platform&&os.platform();function gx(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a);if(!o)return!1;let s=r?n.tr:null;return _x(s,o,e,t)?(r&&r(s.scrollIntoView()),!0):!1}}function _x(e,t,n,r=null){let i=!1,a=t,o=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let e=o.resolve(t.start-2);a=new Y_(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new Y_(t.$from,o.resolve(t.$to.end(t.depth)),t.depth)),i=!0}let s=Cy(a,n,r,t);return s?(e&&vx(e,t,s,i,n),!0):!1}function vx(e,t,n,r,i){let a=U.empty;for(let e=n.length-1;e>=0;e--)a=U.from(n[e].type.create(n[e].attrs,a));e.step(new hy(t.start-(r?2:0),t.end,t.start,t.end,new W(a,0,0),n.length,!0));let o=0;for(let e=0;e<n.length;e++)n[e].type==i&&(o=e+1);let s=n.length-o,c=t.start+n.length-(r?2:0),l=t.parent;for(let n=t.startIndex,r=t.endIndex,i=!0;n<r;n++,i=!1)!i&&Ny(e.doc,c,s)&&(e.split(c,s),c+=2*s),c+=l.child(n).nodeSize;return e}function yx(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);return a?n?r.node(a.depth-1).type==e?bx(t,n,e,a):xx(t,n,a):!0:!1}}function bx(e,t,n,r){let i=e.tr,a=r.end,o=r.$to.end(r.depth);a<o&&(i.step(new hy(a-1,o,a,o,new W(U.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new Y_(i.doc.resolve(r.$from.pos),i.doc.resolve(o),r.depth));let s=xy(r);if(s==null)return!1;i.lift(r,s);let c=i.doc.resolve(i.mapping.map(a,-1)-1);return Fy(i.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&i.join(c.pos),t(i.scrollIntoView()),!0}function xx(e,t,n){let r=e.tr,i=n.parent;for(let e=n.end,t=n.endIndex-1,a=n.startIndex;t>a;t--)e-=i.child(t).nodeSize,r.delete(e-1,e+1);let a=r.doc.resolve(n.start),o=a.nodeAfter;if(r.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,c=n.endIndex==i.childCount,l=a.node(-1),u=a.index(-1);if(!l.canReplace(u+ +!s,u+1,o.content.append(c?U.empty:U.from(i))))return!1;let d=a.pos,f=d+o.nodeSize;return r.step(new hy(d-+!!s,f+ +!!c,d+1,f-1,new W((s?U.empty:U.from(i.copy(U.empty))).append(c?U.empty:U.from(i.copy(U.empty))),+!s,+!c),+!s)),t(r.scrollIntoView()),!0}function Sx(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);if(!a)return!1;let o=a.startIndex;if(o==0)return!1;let s=a.parent,c=s.child(o-1);if(c.type!=e)return!1;if(n){let r=c.lastChild&&c.lastChild.type==s.type,i=U.from(r?e.create():null),o=new W(U.from(e.create(null,U.from(s.type.create(null,i)))),r?3:1,0),l=a.start,u=a.end;n(t.tr.step(new hy(l-(r?3:1),u,l,u,o,1,!0)).scrollIntoView())}return!0}}var Cx=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},Tx=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t},Ex=null,Dx=function(e,t,n){let r=Ex||=document.createRange();return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},Ox=function(){Ex=null},kx=function(e,t,n,r){return n&&(jx(e,t,n,r,-1)||jx(e,t,n,r,1))},Ax=/^(img|br|input|textarea|hr)$/i;function jx(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:Mx(e))){let n=e.parentNode;if(!n||n.nodeType!=1||Ix(e)||Ax.test(e.nodeName)||e.contentEditable==`false`)return!1;t=Cx(e)+(i<0?0:1),e=n}else if(e.nodeType==1){let n=e.childNodes[t+(i<0?-1:0)];if(n.nodeType==1&&n.contentEditable==`false`)if(n.pmViewDesc?.ignoreForSelection)t+=i;else return!1;else e=n,t=i<0?Mx(e):0}else return!1}}function Mx(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Nx(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable==`false`)return null;e=e.childNodes[t-1],t=Mx(e)}else if(e.parentNode&&!Ix(e))t=Cx(e),e=e.parentNode;else return null}}function Px(e,t){for(;;){if(e.nodeType==3&&t<e.nodeValue.length)return e;if(e.nodeType==1&&t<e.childNodes.length){if(e.contentEditable==`false`)return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!Ix(e))t=Cx(e)+1,e=e.parentNode;else return null}}
vendor: 26,982 bytes, lines 222-223
222function Fx(e,t,n){for(let r=t==0,i=t==Mx(e);r||i;){if(e==n)return!0;let t=Cx(e);if(e=e.parentNode,!e)return!1;r&&=t==0,i&&=t==Mx(e)}}function Ix(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}var Lx=function(e){return e.focusNode&&kx(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function Rx(e,t){let n=document.createEvent(`Event`);return n.initEvent(`keydown`,!0,!0),n.keyCode=e,n.key=n.code=t,n}function zx(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function Bx(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(Mx(r.offsetNode),r.offset)}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(Mx(r.startContainer),r.startOffset)}}}var Vx=typeof navigator<`u`?navigator:null,Hx=typeof document<`u`?document:null,Ux=Vx&&Vx.userAgent||``,Wx=/Edge\/(\d+)/.exec(Ux),Gx=/MSIE \d/.exec(Ux),Kx=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ux),qx=!!(Gx||Kx||Wx),Jx=Gx?document.documentMode:Kx?+Kx[1]:Wx?+Wx[1]:0,Yx=!qx&&/gecko\/(\d+)/i.test(Ux);Yx&&+(/Firefox\/(\d+)/.exec(Ux)||[0,0])[1];var Xx=!qx&&/Chrome\/(\d+)/.exec(Ux),Zx=!!Xx,Qx=Xx?+Xx[1]:0,$x=!qx&&!!Vx&&/Apple Computer/.test(Vx.vendor),eS=$x&&(/Mobile\/\w+/.test(Ux)||!!Vx&&Vx.maxTouchPoints>2),tS=eS||(Vx?/Mac/.test(Vx.platform):!1),nS=Vx?/Win/.test(Vx.platform):!1,rS=/Android \d/.test(Ux),iS=!!Hx&&`webkitFontSmoothing`in Hx.documentElement.style,aS=iS?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function oS(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function sS(e,t){return typeof e==`number`?e:e[t]}function cS(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function lS(e,t,n){if(!wS(t)&&t.left==0)return;let r=e.someProp(`scrollThreshold`)||0,i=e.someProp(`scrollMargin`)||5,a=e.dom.ownerDocument;for(let o=n||e.dom;o;){if(o.nodeType!=1){o=Tx(o);continue}let e=o,n=e==a.body,s=n?oS(a):cS(e),c=0,l=0;if(t.top<s.top+sS(r,`top`)?l=-(s.top-t.top+sS(i,`top`)):t.bottom>s.bottom-sS(r,`bottom`)&&(l=t.bottom-t.top>s.bottom-s.top?t.top+sS(i,`top`)-s.top:t.bottom-s.bottom+sS(i,`bottom`)),t.left<s.left+sS(r,`left`)?c=-(s.left-t.left+sS(i,`left`)):t.right>s.right-sS(r,`right`)&&(c=t.right-s.right+sS(i,`right`)),c||l)if(n)a.defaultView.scrollBy(c,l);else{let n=e.scrollLeft,r=e.scrollTop;l&&(e.scrollTop+=l),c&&(e.scrollLeft+=c);let i=e.scrollLeft-n,a=e.scrollTop-r;t={left:t.left-i,top:t.top-a,right:t.right-i,bottom:t.bottom-a}}let u=n?`fixed`:getComputedStyle(o).position;if(/^(fixed|sticky)$/.test(u))break;o=u==`absolute`?o.offsetParent:Tx(o)}}function uS(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let a=(t.left+t.right)/2,o=n+1;o<Math.min(innerHeight,t.bottom);o+=5){let t=e.root.elementFromPoint(a,o);if(!t||t==e.dom||!e.dom.contains(t))continue;let s=t.getBoundingClientRect();if(s.top>=n-20){r=t,i=s.top;break}}return{refDOM:r,refTop:i,stack:dS(e.dom)}}function dS(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=Tx(r));return t}function fS({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;pS(n,r==0?0:r-t)}function pS(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:i,left:a}=e[n];r.scrollTop!=i+t&&(r.scrollTop=i+t),r.scrollLeft!=a&&(r.scrollLeft=a)}}var mS=null;function hS(e){if(e.setActive)return e.setActive();if(mS)return e.focus(mS);let t=dS(e);e.focus(mS==null?{get preventScroll(){return mS={preventScroll:!0},!0}}:void 0),mS||(mS=!1,pS(t,0))}function gS(e,t){let n,r=2e8,i,a=0,o=t.top,s=t.top,c,l;for(let u=e.firstChild,d=0;u;u=u.nextSibling,d++){let e;if(u.nodeType==1)e=u.getClientRects();else if(u.nodeType==3)e=Dx(u).getClientRects();else continue;for(let f=0;f<e.length;f++){let p=e[f];if(p.top<=o&&p.bottom>=s){o=Math.max(p.bottom,o),s=Math.min(p.top,s);let e=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(e<r){n=u,r=e,i=e&&n.nodeType==3?{left:p.right<t.left?p.right:p.left,top:t.top}:t,u.nodeType==1&&e&&(a=d+ +(t.left>=(p.left+p.right)/2));continue}}else p.top>t.top&&!c&&p.left<=t.left&&p.right>=t.left&&(c=u,l={left:Math.max(p.left,Math.min(p.right,t.left)),top:p.top});!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(a=d+1)}}return!n&&c&&(n=c,i=l,r=0),n&&n.nodeType==3?_S(n,i):!n||r&&n.nodeType==1?{node:e,offset:a}:gS(n,i)}function _S(e,t){let n=e.nodeValue.length,r=document.createRange(),i;for(let a=0;a<n;a++){r.setEnd(e,a+1),r.setStart(e,a);let n=TS(r,1);if(n.top!=n.bottom&&vS(t,n)){i={node:e,offset:a+ +(t.left>=(n.left+n.right)/2)};break}}return r.detach(),i||{node:e,offset:0}}function vS(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function yS(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function bS(e,t,n){let{node:r,offset:i}=gS(t,n),a=-1;if(r.nodeType==1&&!r.firstChild){let e=r.getBoundingClientRect();a=e.left!=e.right&&n.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,i,a)}function xS(e,t,n,r){let i=-1;for(let n=t,a=!1;n!=e.dom;){let t=e.docView.nearestDesc(n,!0),o;if(!t)return null;if(t.dom.nodeType==1&&(t.node.isBlock&&t.parent||!t.contentDOM)&&((o=t.dom.getBoundingClientRect()).width||o.height)&&(t.node.isBlock&&t.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(t.dom.nodeName)&&(!a&&o.left>r.left||o.top>r.top?i=t.posBefore:(!a&&o.right<r.left||o.bottom<r.top)&&(i=t.posAfter),a=!0),!t.contentDOM&&i<0&&!t.node.isText))return(t.node.isBlock?r.top<(o.top+o.bottom)/2:r.left<(o.left+o.right)/2)?t.posBefore:t.posAfter;n=t.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,n,-1)}function SS(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),a=i;;){let n=e.childNodes[a];if(n.nodeType==1){let e=n.getClientRects();for(let r=0;r<e.length;r++){let i=e[r];if(vS(t,i))return SS(n,t,i)}}if((a=(a+1)%r)==i)break}return e}function CS(e,t){let n=e.dom.ownerDocument,r,i=0,a=Bx(n,t.left,t.top);a&&({node:r,offset:i}=a);let o=(e.root.elementFromPoint?e.root:n).elementFromPoint(t.left,t.top),s;if(!o||!e.dom.contains(o.nodeType==1?o:o.parentNode)){let n=e.dom.getBoundingClientRect();if(!vS(t,n)||(o=SS(e.dom,t,n),!o))return null}if($x)for(let e=o;r&&e;e=Tx(e))e.draggable&&(r=void 0);if(o=yS(o,t),r){if(Yx&&r.nodeType==1&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let e=r.childNodes[i],n;e.nodeName==`IMG`&&(n=e.getBoundingClientRect()).right<=t.left&&n.bottom>t.top&&i++}let n;iS&&i&&r.nodeType==1&&(n=r.childNodes[i-1]).nodeType==1&&n.contentEditable==`false`&&n.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!=`BR`)&&(s=xS(e,r,i,t))}s??=bS(e,o,t);let c=e.docView.nearestDesc(o,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function wS(e){return e.top<e.bottom||e.left<e.right}function TS(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(wS(e))return e}return Array.prototype.find.call(n,wS)||e.getBoundingClientRect()}var ES=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function DS(e,t,n){let{node:r,offset:i,atom:a}=e.docView.domFromPos(t,n<0?-1:1),o=iS||Yx;if(r.nodeType==3)if(o&&(ES.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let e=TS(Dx(r,i,i),n);if(Yx&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let t=TS(Dx(r,i-1,i-1),-1);if(t.top==e.top){let n=TS(Dx(r,i,i+1),-1);if(n.top!=e.top)return OS(n,n.left<t.left)}}return e}else{let e=i,t=i,a=n<0?1:-1;return n<0&&!i?(t++,a=-1):n>=0&&i==r.nodeValue.length?(e--,a=1):n<0?e--:t++,OS(TS(Dx(r,e,t),a),a<0)}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(a==null&&i&&(n<0||i==Mx(r))){let e=r.childNodes[i-1];if(e.nodeType==1)return kS(e.getBoundingClientRect(),!1)}if(a==null&&i<Mx(r)){let e=r.childNodes[i];if(e.nodeType==1)return kS(e.getBoundingClientRect(),!0)}return kS(r.getBoundingClientRect(),n>=0)}if(a==null&&i&&(n<0||i==Mx(r))){let e=r.childNodes[i-1],t=e.nodeType==3?Dx(e,Mx(e)-+!o):e.nodeType==1&&(e.nodeName!=`BR`||!e.nextSibling)?e:null;if(t)return OS(TS(t,1),!1)}if(a==null&&i<Mx(r)){let e=r.childNodes[i];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?e.nodeType==3?Dx(e,0,+!o):e.nodeType==1?e:null:null;if(t)return OS(TS(t,-1),!0)}return OS(TS(r.nodeType==3?Dx(r):r,-n),n>=0)}function OS(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function kS(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function AS(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function jS(e,t,n){let r=t.selection,i=n==`up`?r.$from:r.$to;return AS(e,t,()=>{let{node:t}=e.docView.domFromPos(i.pos,n==`up`?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.contentDOM||n.dom;break}t=n.dom.parentNode}let r=DS(e,i.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(e.nodeType==1)t=e.getClientRects();else if(e.nodeType==3)t=Dx(e,0,e.nodeValue.length).getClientRects();else continue;for(let e=0;e<t.length;e++){let i=t[e];if(i.bottom>i.top+1&&(n==`up`?r.top-i.top>(i.bottom-r.top)*2:i.bottom-r.bottom>(r.bottom-i.top)*2))return!1}}return!0})}var MS=/[\u0590-\u08ac]/;function NS(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,a=!i,o=i==r.parent.content.size,s=e.domSelection();return s?!MS.test(r.parent.textContent)||!s.modify?n==`left`||n==`backward`?a:o:AS(e,t,()=>{let{focusNode:t,focusOffset:i,anchorNode:a,anchorOffset:o}=e.domSelectionRange(),c=s.caretBidiLevel;s.modify(`move`,n,`character`);let l=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:u,focusOffset:d}=e.domSelectionRange(),f=u&&!l.contains(u.nodeType==1?u:u.parentNode)||t==u&&i==d;try{s.collapse(a,o),t&&(t!=a||i!=o)&&s.extend&&s.extend(t,i)}catch{}return c!=null&&(s.caretBidiLevel=c),f}):r.pos==r.start()||r.pos==r.end()}var PS=null,FS=null,IS=!1;function LS(e,t,n){return PS==t&&FS==n?IS:(PS=t,FS=n,IS=n==`up`||n==`down`?jS(e,t,n):NS(e,t,n))}var RS=0,zS=1,BS=2,VS=3,HS=class{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=RS,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(e){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,n=this.posAtStart;;t++){let r=this.children[t];if(r==e)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,n){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(n<0){let n,r;if(e==this.contentDOM)n=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.previousSibling}for(;n&&!((r=n.pmViewDesc)&&r.parent==this);)n=n.previousSibling;return n?this.posBeforeChild(r)+r.size:this.posAtStart}else{let n,r;if(e==this.contentDOM)n=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.nextSibling}for(;n&&!((r=n.pmViewDesc)&&r.parent==this);)n=n.nextSibling;return n?this.posBeforeChild(r):this.posAtEnd}let r;if(e==this.dom&&this.contentDOM)r=t>Cx(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(t==0)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.previousSibling)break}if(r==null&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return r??n>0?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,r=e;r;r=r.parentNode){let i=this.getDesc(r),a;if(i&&(!t||i.node))if(n&&(a=i.nodeDOM)&&!(a.nodeType==1?a.contains(e.nodeType==1?e:e.parentNode):a==e))n=!1;else return i}}getDesc(e){let t=e.pmViewDesc;for(let e=t;e;e=e.parent)if(e==this)return t}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let t=0,n=0;t<this.children.length;t++){let r=this.children[t],i=n+r.size;if(n==e&&i!=n){for(;!r.border&&r.children.length;)for(let e=0;e<r.children.length;e++){let t=r.children[e];if(t.size){r=t;break}}return r}if(e<i)return r.descAt(e-n-r.border);n=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,r=0;for(let t=0;n<this.children.length;n++){let i=this.children[n],a=t+i.size;if(a>e||i instanceof YS){r=e-t;break}t=a}if(r)return this.children[n].domFromPos(r-this.children[n].border,t);for(let e;n&&!(e=this.children[n-1]).size&&e instanceof US&&e.side>=0;n--);if(t<=0){let e,r=!0;for(;e=n?this.children[n-1]:null,!(!e||e.dom.parentNode==this.contentDOM);n--,r=!1);return e&&t&&r&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?Cx(e.dom)+1:0}}else{let e,r=!0;for(;e=n<this.children.length?this.children[n]:null,!(!e||e.dom.parentNode==this.contentDOM);n++,r=!1);return e&&r&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?Cx(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,n=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let a=n,o=0;;o++){let n=this.children[o],s=a+n.size;if(r==-1&&e<=s){let i=a+n.border;if(e>=i&&t<=s-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,i);e=a;for(let t=o;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=Cx(n.dom)+1;break}e-=n.size}r==-1&&(r=0)}if(r>-1&&(s>t||o==this.children.length-1)){t=s;for(let e=o+1;e<this.children.length;e++){let n=this.children[e];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){i=Cx(n.dom);break}t+=n.size}i==-1&&(i=this.contentDOM.childNodes.length);break}a=s}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return t.size==0||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:n}=this.domFromPos(e,0);if(t.nodeType!=1||n==t.childNodes.length)throw RangeError(`No node after pos `+e);return t.childNodes[n]}setSelection(e,t,n,r=!1){let i=Math.min(e,t),a=Math.max(e,t);for(let o=0,s=0;o<this.children.length;o++){let c=this.children[o],l=s+c.size;if(i>s&&a<l)return c.setSelection(e-s-c.border,t-s-c.border,n,r);s=l}let o=this.domFromPos(e,e?-1:1),s=t==e?o:this.domFromPos(t,t?-1:1),c=n.root.getSelection(),l=n.domSelectionRange(),u=!1;if((Yx||$x)&&e==t){let{node:e,offset:t}=o;if(e.nodeType==3){if(u=!!(t&&e.nodeValue[t-1]==` 223`),u&&t==e.nodeValue.length)for(let t=e,n;t;t=t.parentNode){if(n=t.nextSibling){n.nodeName==`BR`&&(o=s={node:n.parentNode,offset:Cx(n)+1});break}let e=t.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let n=e.childNodes[t-1];u=n&&(n.nodeName==`BR`||n.contentEditable==`false`)}}if(Yx&&l.focusNode&&l.focusNode!=s.node&&l.focusNode.nodeType==1){let e=l.focusNode.childNodes[l.focusOffset];e&&e.contentEditable==`false`&&(r=!0)}if(!(r||u&&$x)&&kx(o.node,o.offset,l.anchorNode,l.anchorOffset)&&kx(s.node,s.offset,l.focusNode,l.focusOffset))return;let d=!1;if((c.extend||e==t)&&!(u&&Yx)){c.collapse(o.node,o.offset);try{e!=t&&c.extend(s.node,s.offset),d=!0}catch{}}if(!d){if(e>t){let e=o;o=s,s=e}let n=document.createRange();n.setEnd(s.node,s.offset),n.setStart(o.node,o.offset),c.removeAllRanges(),c.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&e.type!=`selection`}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r<this.children.length;r++){let i=this.children[r],a=n+i.size;if(n==a?e<=a&&t>=n:e<a&&t>n){let r=n+i.border,o=a-i.border;if(e>=r&&t<=o){this.dirty=e==n||t==a?BS:zS,e==r&&t==o&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=VS:i.markDirty(e-r,t-r);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?BS:VS}n=a}this.dirty=BS}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=e==1?BS:zS;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}},US=class extends HS{constructor(e,t,n,r){let i,a=t.type.toDOM;if(typeof a==`function`&&(a=a(n,()=>{if(!i)return r;if(i.parent)return i.parent.posBeforeChild(i)})),!t.type.spec.raw){if(a.nodeType!=1){let e=document.createElement(`span`);e.appendChild(a),a=e}a.hasAttribute(`contenteditable`)||(a.contentEditable=`false`),a.classList.add(`ProseMirror-widget`)}super(e,[],a,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return this.dirty==RS&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return t?t(e):!1}ignoreMutation(e){return e.type!=`selection`||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}},WS=class extends HS{constructor(e,t,n,r){super(e,[],t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e==this.textDOM?this.posAtStart+t:this.posAtStart+(t?this.size:0)}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type===`characterData`&&e.target.nodeValue==e.oldValue}},GS=class e extends HS{constructor(e,t,n,r,i){super(e,[],n,r),this.mark=t,this.spec=i}static create(t,n,r,i){let a=i.nodeViews[n.type.name],o=a&&a(n,i,r);return(!o||!o.dom)&&(o=Bv.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new e(t,n,o.dom,o.contentDOM||o.dom,o)}parseRule(){return this.dirty&VS||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=VS&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=RS){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=RS}}slice(t,n,r){let i=e.create(this.parent,this.mark,!0,r),a=this.children,o=this.size;n<o&&(a=fC(a,n,o,r)),t>0&&(a=fC(a,0,t,r));for(let e=0;e<a.length;e++)a[e].parent=i;return i.children=a,i}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}},KS=class e extends HS{constructor(e,t,n,r,i,a,o){super(e,[],i,a),this.node=t,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=o}static create(t,n,r,i,a,o){let s=a.nodeViews[n.type.name],c,l=s&&s(n,a,()=>{if(!c)return o;if(c.parent)return c.parent.posBeforeChild(c)},r,i),u=l&&l.dom,d=l&&l.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw RangeError(`Text must be rendered as a DOM text node`)}else if(!u){let e=Bv.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs);({dom:u,contentDOM:d}=e)}!d&&!n.isText&&u.nodeName!=`BR`&&(u.hasAttribute(`contenteditable`)||(u.contentEditable=`false`),n.type.spec.draggable&&(u.draggable=!0));let f=u;return u=rC(u,r,n),l?c=new XS(t,n,r,i,u,d||null,f,l):n.isText?new JS(t,n,r,i,u,f):new e(t,n,r,i,u,d||null,f)}parseRule(e){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace==`pre`&&(t.preserveWhitespace=`full`),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let e=this.children.length-1;e>=0;e--){let n=this.children[e];if(this.dom.contains(n.dom.parentNode)){t.contentElement=n.dom.parentNode;break}}if(!t.contentElement){let n=e&&e.find(t=>t.nodeType==1&&e.indexOf(t.parentNode)<0&&this.dom.contains(t));n?t.contentElement=n:t.getContent=()=>U.empty}}return t}matchesNode(e,t,n){return this.dirty==RS&&e.eq(this.node)&&iC(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return+!this.node.isLeaf}updateChildren(e,t){let n=this.node.inlineContent,r=t,i=e.composing?this.localCompositionInfo(e,t):null,a=i&&i.pos>-1?i:null,o=i&&i.pos<0,s=new oC(this,a&&a.node,e);lC(this.node,this.innerDeco,(t,i,a)=>{t.spec.marks?s.syncToMarks(t.spec.marks,n,e,i):t.type.side>=0&&!a&&s.syncToMarks(i==this.node.childCount?j_.none:this.node.child(i).marks,n,e,i),s.placeWidget(t,e,r)},(t,a,c,l)=>{s.syncToMarks(t.marks,n,e,l);let u;s.findNodeMatch(t,a,c,l)||o&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(u=s.findIndexWithChild(i.node))>-1&&s.updateNodeAt(t,a,c,u,e)||s.updateNextNode(t,a,c,e,l,r)||s.addNode(t,a,c,e,r),r+=t.nodeSize}),s.syncToMarks([],n,e,0),this.node.isTextblock&&s.addTextblockHacks(),s.destroyRest(),(s.changed||this.dirty==BS)&&(a&&this.protectLocalComposition(e,a),ZS(this.contentDOM,this.children,e),eS&&uC(this.dom))}localCompositionInfo(e,t){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof G)||n<t||r>t+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let e=i.nodeValue,a=dC(this.node.content,e,n-t,r-t);return a<0?null:{node:i,pos:a,text:e}}else return{node:i,pos:-1,text:``}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let i=t;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&=void 0}let a=new WS(this,i,t,r);e.input.compositionNodes.push(a),this.children=fC(this.children,n,n+r.length,e,a)}update(e,t,n,r){return this.dirty==VS||!e.sameMarkup(this.node)?!1:(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=RS}updateOuterDeco(e){if(iC(e,this.outerDeco))return;let t=this.nodeDOM.nodeType!=1,n=this.dom;this.dom=tC(this.dom,this.nodeDOM,eC(this.outerDeco,this.node,t),eC(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add(`ProseMirror-selectednode`),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove(`ProseMirror-selectednode`),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute(`draggable`))}get domAtom(){return this.node.isAtom}};function qS(e,t,n,r,i){rC(r,t,e);let a=new KS(void 0,e,t,n,r,r,r);return a.contentDOM&&a.updateChildren(i,0),a}var JS=class e extends KS{constructor(e,t,n,r,i,a){super(e,t,n,r,i,null,a)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,n,r){return this.dirty==VS||this.dirty!=RS&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=RS||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=RS,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return e.type!=`characterData`&&e.type!=`selection`}slice(t,n,r){let i=this.node.cut(t,n),a=document.createTextNode(i.text);return new e(this.parent,i,this.outerDeco,this.innerDeco,a,a)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(e==0||t==this.nodeDOM.nodeValue.length)&&(this.dirty=VS)}get domAtom(){return!1}isText(e){return this.node.text==e}},YS=class extends HS{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==RS&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName==`IMG`}},XS=class extends KS{constructor(e,t,n,r,i,a,o,s){super(e,t,n,r,i,a,o),this.spec=s}update(e,t,n,r){if(this.dirty==VS)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,t,n);return i&&this.updateInner(e,t,n,r),i}else if(!this.contentDOM&&!e.isLeaf)return!1;else return super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n.root):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}};function ZS(e,t,n){let r=e.firstChild,i=!1;for(let a=0;a<t.length;a++){let o=t[a],s=o.dom;if(s.parentNode==e){for(;s!=r;)r=aC(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(s,r);if(o instanceof GS){let t=r?r.previousSibling:e.lastChild;ZS(o.contentDOM,o.children,n),r=t?t.nextSibling:e.firstChild}}for(;r;)r=aC(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}var QS=function(e){e&&(this.nodeName=e)};QS.prototype=Object.create(null);var $S=[new QS];function eC(e,t,n){if(e.length==0)return $S;let r=n?$S[0]:new QS,i=[r];for(let a=0;a<e.length;a++){let o=e[a].type.attrs;if(o){o.nodeName&&i.push(r=new QS(o.nodeName));for(let e in o){let a=o[e];a!=null&&(n&&i.length==1&&i.push(r=new QS(t.isInline?`span`:`div`)),e==`class`?r.class=(r.class?r.class+` `:``)+a:e==`style`?r.style=(r.style?r.style+`;`:``)+a:e!=`nodeName`&&(r[e]=a))}}}return i}function tC(e,t,n,r){if(n==$S&&r==$S)return t;let i=t;for(let t=0;t<r.length;t++){let a=r[t],o=n[t];if(t){let t;o&&o.nodeName==a.nodeName&&i!=e&&(t=i.parentNode)&&t.nodeName.toLowerCase()==a.nodeName?i=t:(t=document.createElement(a.nodeName),t.pmIsDeco=!0,t.appendChild(i),o=$S[0],i=t)}
vendor: 7,162 bytes, line 223
223nC(i,o||$S[0],a)}return i}function nC(e,t,n){for(let r in t)r!=`class`&&r!=`style`&&r!=`nodeName`&&!(r in n)&&e.removeAttribute(r);for(let r in n)r!=`class`&&r!=`style`&&r!=`nodeName`&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(` `).filter(Boolean):[],i=n.class?n.class.split(` `).filter(Boolean):[];for(let t=0;t<r.length;t++)i.indexOf(r[t])==-1&&e.classList.remove(r[t]);for(let t=0;t<i.length;t++)r.indexOf(i[t])==-1&&e.classList.add(i[t]);e.classList.length==0&&e.removeAttribute(`class`)}if(t.style!=n.style){if(t.style){let n=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=n.exec(t.style);)e.style.removeProperty(r[1])}n.style&&(e.style.cssText+=n.style)}}function rC(e,t,n){return tC(e,e,$S,eC(t,n,e.nodeType!=1))}function iC(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function aC(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}var oC=class{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=sC(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,n,r){let i=0,a=this.stack.length>>1,o=Math.min(a,e.length);for(;i<o&&(i==a-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&e[i].type.spec.spanning!==!1;)i++;for(;i<a;)this.destroyRest(),this.top.dirty=RS,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;for(;a<e.length;){this.stack.push(this.top,this.index+1);let i=-1,o=this.top.children.length;r<this.preMatch.index&&(o=Math.min(this.index+3,o));for(let t=this.index;t<o;t++){let n=this.top.children[t];if(n.matchesMark(e[a])&&!this.isLocked(n.dom)){i=t;break}}if(i<0&&this.index<this.top.children.length){let t=this.top.children[this.index];t instanceof GS&&t.dirty!=VS&&t.mark.type==e[a].type&&t.spec.update&&!this.isLocked(t.dom)&&t.spec.update(e[a])&&(t.mark=e[a],i=this.index,this.changed=!0)}if(i>-1)i>this.index&&(this.changed=!0,this.destroyBetween(this.index,i)),this.top=this.top.children[this.index];else{let r=GS.create(this.top,e[a],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,a++}}findNodeMatch(e,t,n,r){let i=-1,a;if(r>=this.preMatch.index&&(a=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&a.matchesNode(e,t,n))i=this.top.children.indexOf(a,this.index);else for(let r=this.index,a=Math.min(this.top.children.length,r+5);r<a;r++){let a=this.top.children[r];if(a.matchesNode(e,t,n)&&!this.preMatch.matched.has(a)){i=r;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,n,r,i){let a=this.top.children[r];return a.dirty==VS&&a.dom==a.contentDOM&&(a.dirty=BS),a.update(e,t,n,i)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t){for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e}return-1}e=t}}updateNextNode(e,t,n,r,i,a){for(let o=this.index;o<this.top.children.length;o++){let s=this.top.children[o];if(s instanceof KS){let c=this.preMatch.matched.get(s);if(c!=null&&c!=i)return!1;let l=s.dom,u,d=this.isLocked(l)&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&s.dirty!=VS&&iC(t,s.outerDeco));if(!d&&s.update(e,t,n,r))return this.destroyBetween(this.index,o),s.dom!=l&&(this.changed=!0),this.index++,!0;if(!d&&(u=this.recreateWrapper(s,e,t,n,r,a)))return this.destroyBetween(this.index,o),this.top.children[this.index]=u,u.contentDOM&&(u.dirty=BS,u.updateChildren(r,a+1),u.dirty=RS),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,n,r,i,a){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!iC(n,e.outerDeco)||!r.eq(e.innerDeco))return null;let o=KS.create(this.top,t,n,r,i,a);if(o.contentDOM){o.children=e.children,e.children=[];for(let e of o.children)e.parent=o}return e.destroy(),o}addNode(e,t,n,r,i){let a=KS.create(this.top,e,t,n,r,i);a.contentDOM&&a.updateChildren(r,i+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(e,t,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(e)&&(e==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let r=new US(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof GS;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof JS)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&(($x||Zx)&&e&&e.dom.contentEditable==`false`&&this.addHackNode(`IMG`,t),this.addHackNode(`BR`,this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);e==`IMG`&&(n.className=`ProseMirror-separator`,n.alt=``),e==`BR`&&(n.className=`ProseMirror-trailingBreak`);let r=new YS(this.top,[],n,null);t==this.top?t.children.splice(this.index++,0,r):t.children.push(r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}};function sC(e,t){let n=t,r=n.children.length,i=e.childCount,a=new Map,o=[];outer:for(;i>0;){let s;for(;;)if(r){let e=n.children[r-1];if(e instanceof GS)n=e,r=e.children.length;else{s=e,r--;break}}else if(n==t)break outer;else r=n.parent.children.indexOf(n),n=n.parent;let c=s.node;if(c){if(c!=e.child(i-1))break;--i,a.set(s,i),o.push(s)}}return{index:i,matched:a,matches:o.reverse()}}function cC(e,t){return e.type.side-t.type.side}function lC(e,t,n,r){let i=t.locals(e),a=0;if(i.length==0){for(let n=0;n<e.childCount;n++){let o=e.child(n);r(o,i,t.forChild(a,o),n),a+=o.nodeSize}return}let o=0,s=[],c=null;for(let l=0;;){let u,d;for(;o<i.length&&i[o].to==a;){let e=i[o++];e.widget&&(u?(d||=[u]).push(e):u=e)}if(u)if(d){d.sort(cC);for(let e=0;e<d.length;e++)n(d[e],l,!!c)}else n(u,l,!!c);let f,p;if(c)p=-1,f=c,c=null;else if(l<e.childCount)p=l,f=e.child(l++);else break;for(let e=0;e<s.length;e++)s[e].to<=a&&s.splice(e--,1);for(;o<i.length&&i[o].from<=a&&i[o].to>a;)s.push(i[o++]);let m=a+f.nodeSize;if(f.isText){let e=m;o<i.length&&i[o].from<e&&(e=i[o].from);for(let t=0;t<s.length;t++)s[t].to<e&&(e=s[t].to);e<m&&(c=f.cut(e-a),f=f.cut(0,e-a),m=e,p=-1)}else for(;o<i.length&&i[o].to<m;)o++;let h=f.isInline&&!f.isLeaf?s.filter(e=>!e.inline):s.slice();r(f,h,t.forChild(a,f),p),a=m}}function uC(e){if(e.nodeName==`UL`||e.nodeName==`OL`){let t=e.style.cssText;e.style.cssText=t+`; list-style: square !important`,window.getComputedStyle(e).listStyle,e.style.cssText=t}}function dC(e,t,n,r){for(let i=0,a=0;i<e.childCount&&a<=r;){let o=e.child(i++),s=a;if(a+=o.nodeSize,!o.isText)continue;let c=o.text;for(;i<e.childCount;){let t=e.child(i++);if(a+=t.nodeSize,!t.isText)break;c+=t.text}if(a>=n){if(a>=r&&c.slice(r-t.length-s,r-s)==t)return r-t.length;let e=s<r?c.lastIndexOf(t,r-s-1):-1;
vendor: 10,952 bytes, lines 223-226
223if(e>=0&&e+t.length+s>=n)return s+e;if(n==r&&c.length>=r+t.length-s&&c.slice(r-s,r-s+t.length)==t)return r}}return-1}function fC(e,t,n,r,i){let a=[];for(let o=0,s=0;o<e.length;o++){let c=e[o],l=s,u=s+=c.size;l>=n||u<=t?a.push(c):(l<t&&a.push(c.slice(0,t-l,r)),i&&=(a.push(i),void 0),u>n&&a.push(c.slice(n-l,c.size,r)))}return a}function pC(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),a=i&&i.size==0,o=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(o<0)return null;let s=r.resolve(o),c,l;if(Lx(n)){for(c=o;i&&!i.node;)i=i.parent;let e=i.node;if(i&&e.isAtom&&K.isSelectable(e)&&i.parent&&!(e.isInline&&Fx(n.focusNode,n.focusOffset,i.dom))){let e=i.posBefore;l=new K(o==e?s:r.resolve(e))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let t=o,i=o;for(let r=0;r<n.rangeCount;r++){let a=n.getRangeAt(r);t=Math.min(t,e.docView.posFromDOM(a.startContainer,a.startOffset,1)),i=Math.max(i,e.docView.posFromDOM(a.endContainer,a.endOffset,-1))}if(t<0)return null;[c,o]=i==e.state.selection.anchor?[i,t]:[t,i],s=r.resolve(o)}else c=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(c<0)return null}let u=r.resolve(c);if(!l){let n=t==`pointer`||e.state.selection.head<s.pos&&!a?1:-1;l=wC(e,u,s,n)}return l}function mC(e){return e.editable?e.hasFocus():EC(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function hC(e,t=!1){let n=e.state.selection;if(SC(e,n),!mC(e))return;let r=e.input.mouseDown;if(!t&&Zx&&r){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&kx(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset)&&r.delaySelUpdate()){e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)xC(e);else{let{anchor:r,head:i}=n,a,o;gC&&!(n instanceof G)&&(n.$from.parent.inlineContent||(a=_C(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(o=_C(e,n.to))),e.docView.setSelection(r,i,e,t),gC&&(a&&yC(a),o&&yC(o)),n.visible?e.dom.classList.remove(`ProseMirror-hideselection`):(e.dom.classList.add(`ProseMirror-hideselection`),`onselectionchange`in document&&bC(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}var gC=$x||Zx&&Qx<63;function _C(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),i=r<n.childNodes.length?n.childNodes[r]:null,a=r?n.childNodes[r-1]:null;if($x&&i&&i.contentEditable==`false`)return vC(i);if((!i||i.contentEditable==`false`)&&(!a||a.contentEditable==`false`)){if(i)return vC(i);if(a)return vC(a)}}function vC(e){return e.contentEditable=`true`,$x&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function yC(e){e.contentEditable=`false`,e.wasDraggable&&=(e.draggable=!0,null)}function bC(e){let t=e.dom.ownerDocument;t.removeEventListener(`selectionchange`,e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;t.addEventListener(`selectionchange`,e.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=i)&&(t.removeEventListener(`selectionchange`,e.input.hideSelectionGuard),setTimeout(()=>{(!mC(e)||e.state.selection.visible)&&e.dom.classList.remove(`ProseMirror-hideselection`)},20))})}function xC(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r=n.nodeName==`IMG`;r?t.collapse(n.parentNode,Cx(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&qx&&Jx<=11&&(n.disabled=!0,n.disabled=!1)}function SC(e,t){if(t instanceof K){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(CC(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else CC(e)}function CC(e){e.lastSelectedViewDesc&&=(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),void 0)}function wC(e,t,n,r){return e.someProp(`createSelectionBetween`,r=>r(e,t,n))||G.between(t,n,r)}function TC(e){return e.editable&&!e.hasFocus()?!1:EC(e)}function EC(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function wse(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return kx(t.node,t.offset,n.anchorNode,n.anchorOffset)}function DC(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),a=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return a&&lb.findFrom(a,t)}function OC(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function kC(e,t,n){let r=e.state.selection;if(r instanceof G){if(n.indexOf(`s`)>-1){let{$head:n}=r,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let a=e.state.doc.resolve(n.pos+i.nodeSize*(t<0?-1:1));return OC(e,new G(r.$anchor,a))}else if(!r.empty)return!1;else if(e.endOfTextblock(t>0?`forward`:`backward`)){let n=DC(e.state,t);return n&&n instanceof K?OC(e,n):!1}else if(!(tS&&n.indexOf(`m`)>-1)){let n=r.$head,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter,a;if(!i||i.isText)return!1;let o=t<0?n.pos-i.nodeSize:n.pos;return i.isAtom||(a=e.docView.descAt(o))&&!a.contentDOM?K.isSelectable(i)?OC(e,new K(t<0?e.state.doc.resolve(n.pos-i.nodeSize):n)):iS?OC(e,new G(e.state.doc.resolve(t<0?o:o+i.nodeSize))):!1:!1}}else if(r instanceof K&&r.node.isInline)return OC(e,new G(t>0?r.$to:r.$from));else{let n=DC(e.state,t);return n?OC(e,n):!1}}function AC(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function jC(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!=`BR`)}function MC(e,t){return t<0?Tse(e):Ese(e)}function Tse(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,a,o=!1;for(Yx&&n.nodeType==1&&r<AC(n)&&jC(n.childNodes[r],-1)&&(o=!0);;)if(r>0){if(n.nodeType!=1)break;{let e=n.childNodes[r-1];if(jC(e,-1))i=n,a=--r;else if(e.nodeType==3)n=e,r=n.nodeValue.length;else break}}else if(NC(n))break;else{let t=n.previousSibling;for(;t&&jC(t,-1);)i=n.parentNode,a=Cx(t),t=t.previousSibling;if(t)n=t,r=AC(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}o?PC(e,n,r):i&&PC(e,i,a)}function Ese(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=AC(n),a,o;for(;;)if(r<i){if(n.nodeType!=1)break;let e=n.childNodes[r];if(jC(e,1))a=n,o=++r;else break}else if(NC(n))break;else{let t=n.nextSibling;for(;t&&jC(t,1);)a=t.parentNode,o=Cx(t)+1,t=t.nextSibling;if(t)n=t,r=0,i=AC(n);else{if(n=n.parentNode,n==e.dom)break;r=i=0}}a&&PC(e,a,o)}function NC(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Dse(e,t){for(;e&&t==e.childNodes.length&&!Ix(e);)t=Cx(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable==`false`)break;e=n,t=0}}function Ose(e,t){for(;e&&!t&&!Ix(e);)t=Cx(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable==`false`)break;e=n,t=e.childNodes.length}}function PC(e,t,n){if(t.nodeType!=3){let e,r;(r=Dse(t,n))?(t=r,n=0):(e=Ose(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection();if(!r)return;if(Lx(r)){let e=document.createRange();e.setEnd(t,n),e.setStart(t,n),r.removeAllRanges(),r.addRange(e)}else r.extend&&r.extend(t,n);e.domObserver.setCurSelection();let{state:i}=e;setTimeout(()=>{e.state==i&&hC(e)},50)}function FC(e,t){let n=e.state.doc.resolve(t);if(!(Zx||nS)&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let n=e.coordsAtPos(t-1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left<r.left?`ltr`:`rtl`}if(t<n.end()){let n=e.coordsAtPos(t+1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left>r.left?`ltr`:`rtl`}}return getComputedStyle(e.dom).direction==`rtl`?`rtl`:`ltr`}function IC(e,t,n){let r=e.state.selection;if(r instanceof G&&!r.empty||n.indexOf(`s`)>-1||tS&&n.indexOf(`m`)>-1)return!1;let{$from:i,$to:a}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?`up`:`down`)){let n=DC(e.state,t);if(n&&n instanceof K)return OC(e,n)}if(!i.parent.inlineContent){let n=t<0?i:a,o=r instanceof hb?lb.near(n,t):lb.findFrom(n,t);return o?OC(e,o):!1}return!1}function LC(e,t){if(!(e.state.selection instanceof G))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?`forward`:`backward`))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let r=e.state.tr;return t<0?r.delete(n.pos-a.nodeSize,n.pos):r.delete(n.pos,n.pos+a.nodeSize),e.dispatch(r),!0}return!1}function RC(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function kse(e){if(!$x||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable==`false`){let n=t.firstChild;RC(e,n,`true`),setTimeout(()=>RC(e,n,`false`),20)}return!1}function Ase(e){let t=``;return e.ctrlKey&&(t+=`c`),e.metaKey&&(t+=`m`),e.altKey&&(t+=`a`),e.shiftKey&&(t+=`s`),t}function jse(e,t){let n=t.keyCode,r=Ase(t);if(n==8||tS&&n==72&&r==`c`)return LC(e,-1)||MC(e,-1);if(n==46&&!t.shiftKey||tS&&n==68&&r==`c`)return LC(e,1)||MC(e,1);if(n==13||n==27)return!0;if(n==37||tS&&n==66&&r==`c`){let t=n==37?FC(e,e.state.selection.from)==`ltr`?-1:1:-1;return kC(e,t,r)||MC(e,t)}else if(n==39||tS&&n==70&&r==`c`){let t=n==39?FC(e,e.state.selection.from)==`ltr`?1:-1:1;return kC(e,t,r)||MC(e,t)}else if(n==38||tS&&n==80&&r==`c`)return IC(e,-1,r)||MC(e,-1);else if(n==40||tS&&n==78&&r==`c`)return kse(e)||IC(e,1,r)||MC(e,1);else if(r==(tS?`m`:`c`)&&(n==66||n==73||n==89||n==90))return!0;return!1}function zC(e,t){e.someProp(`transformCopied`,n=>{t=n(t,e)});let n=[],{content:r,openStart:i,openEnd:a}=t;for(;i>1&&a>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,a--;let e=r.firstChild;n.push(e.type.name,e.attrs==e.type.defaultAttrs?null:e.attrs),r=e.content}let o=e.someProp(`clipboardSerializer`)||Bv.fromSchema(e.state.schema),s=qC(),c=s.createElement(`div`);c.appendChild(o.serializeFragment(r,{document:s}));let l=c.firstChild,u,d=0;for(;l&&l.nodeType==1&&(u=KC[l.nodeName.toLowerCase()]);){for(let e=u.length-1;e>=0;e--){let t=s.createElement(u[e]);for(;c.firstChild;)t.appendChild(c.firstChild);c.appendChild(t),d++}l=c.firstChild}return l&&l.nodeType==1&&l.setAttribute(`data-pm-slice`,`${i} ${a}${d?` -${d}`:``} ${JSON.stringify(n)}`),{dom:c,text:e.someProp(`clipboardTextSerializer`,n=>n(t,e))||t.content.textBetween(0,t.content.size,` 224 225`),slice:t}}function BC(e,t,n,r,i){let a=i.parent.type.spec.code,o,s;if(!n&&!t)return null;let c=!!t&&(r||a||!n);if(c){if(e.someProp(`transformPastedText`,n=>{t=n(t,a||r,e)}),a)return s=new W(U.from(e.state.schema.text(t.replace(/\r\n?/g,` 226`))),0,0),e.someProp(`transformPasted`,t=>{s=t(s,e,!0)}),s;let n=e.someProp(`clipboardTextParser`,n=>n(t,i,r,e));if(n)s=n;else{let n=i.marks(),{schema:r}=e.state,a=Bv.fromSchema(r);
vendor: 13,883 bytes, line 226
226o=document.createElement(`div`),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=o.appendChild(document.createElement(`p`));e&&t.appendChild(a.serializeNode(r.text(e,n)))})}}else e.someProp(`transformPastedHTML`,t=>{n=t(n,e)}),o=Fse(n),iS&&Ise(o);let l=o&&o.querySelector(`[data-pm-slice]`),u=l&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(l.getAttribute(`data-pm-slice`)||``);if(u&&u[3])for(let e=+u[3];e>0;e--){let e=o.firstChild;for(;e&&e.nodeType!=1;)e=e.nextSibling;if(!e)break;o=e}if(s||=(e.someProp(`clipboardParser`)||e.someProp(`domParser`)||Ev.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(c||u),context:i,ruleFromNode(e){return e.nodeName==`BR`&&!e.nextSibling&&e.parentNode&&!Mse.test(e.parentNode.nodeName)?{ignore:!0}:null}}),u)s=Lse(GC(s,+u[1],+u[2]),u[4]);else if(s=W.maxOpen(Nse(s.content,i),!0),s.openStart||s.openEnd){let e=0,t=0;for(let t=s.content.firstChild;e<s.openStart&&!t.type.spec.isolating;e++,t=t.firstChild);for(let e=s.content.lastChild;t<s.openEnd&&!e.type.spec.isolating;t++,e=e.lastChild);s=GC(s,e,t)}return e.someProp(`transformPasted`,t=>{s=t(s,e,c)}),s}var Mse=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Nse(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.index(n)),i,a=[];if(e.forEach(e=>{if(!a)return;let t=r.findWrapping(e.type),n;if(!t)return a=null;if(n=a.length&&i.length&&HC(t,i,e,a[a.length-1],0))a[a.length-1]=n;else{a.length&&(a[a.length-1]=UC(a[a.length-1],i.length));let n=VC(e,t);a.push(n),r=r.matchType(n.type),i=t}}),a)return U.from(a)}return e}function VC(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,U.from(e));return e}function HC(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let a=HC(e,t,n,r.lastChild,i+1);if(a)return r.copy(r.content.replaceChild(r.childCount-1,a));if(r.contentMatchAt(r.childCount).matchType(i==e.length-1?n.type:e[i+1]))return r.copy(r.content.append(U.from(VC(n,e,i+1))))}}function UC(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,UC(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(U.empty,!0);return e.copy(n.append(r))}function WC(e,t,n,r,i,a){let o=t<0?e.firstChild:e.lastChild,s=o.content;return e.childCount>1&&(a=0),i<r-1&&(s=WC(s,t,n,r,i+1,a)),i>=n&&(s=t<0?o.contentMatchAt(0).fillBefore(s,a<=i).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(U.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}function GC(e,t,n){return t<e.openStart&&(e=new W(WC(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new W(WC(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var KC={thead:[`table`],tbody:[`table`],tfoot:[`table`],caption:[`table`],colgroup:[`table`],col:[`table`,`colgroup`],tr:[`table`,`tbody`],td:[`table`,`tbody`,`tr`],th:[`table`,`tbody`,`tr`]};function qC(){return document.implementation.createHTMLDocument(`title`)}var JC=null;function Pse(e){let t=window.trustedTypes;if(!t)return e;if(!JC){if(JC=t.defaultPolicy)try{return JC.createHTML(e)}catch{}JC=t.createPolicy(`ProseMirrorClipboard`,{createHTML:e=>e})}return JC.createHTML(e)}function Fse(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=qC(),r=n.body,i=/<([a-z][^>\s]+)/i.exec(e),a;if((a=i&&KC[i[1].toLowerCase()])&&(e=a.map(e=>`<`+e+`>`).join(``)+e+a.map(e=>`</`+e+`>`).reverse().join(``)),r.innerHTML=Pse(e),a)for(let e=0;e<a.length;e++)r=r.querySelector(a[e])||r;for(let e=0;e<n.styleSheets.length;e++){let t=n.styleSheets[e];for(let e=0;e<t.rules.length;e++){let n=t.rules[e];if(n instanceof CSSStyleRule){let e=r.querySelectorAll(n.selectorText);for(let t=0;t<e.length;t++)e[t].style.cssText+=n.style.cssText}}}return r}function Ise(e){let t=e.querySelectorAll(Zx?`span:not([class]):not([style])`:`span.Apple-converted-space`);for(let n=0;n<t.length;n++){let r=t[n];r.childNodes.length==1&&r.textContent==`\xA0`&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(` `),r)}}function Lse(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,r;try{r=JSON.parse(t)}catch{return e}let{content:i,openStart:a,openEnd:o}=e;for(let e=r.length-2;e>=0;e-=2){let t=n.nodes[r[e]];if(!t||t.hasRequiredAttrs())break;try{t.checkAttrs(r[e+1])}catch{break}i=U.from(t.create(r[e+1],i)),a++,o++}return new W(i,a,o)}var YC={},XC={},Rse={touchstart:!0,touchmove:!0},zse=class{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:``,button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}};function Bse(e){for(let t in YC){let n=YC[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{Hse(e,t)&&!$C(e,t)&&(e.editable||!(t.type in XC))&&n(e,t)},Rse[t]?{passive:!0}:void 0)}$x&&e.dom.addEventListener(`input`,()=>null),QC(e)}function ZC(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function Vse(e){e.input.mouseDown&&e.input.mouseDown.done(),e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function QC(e){e.someProp(`handleDOMEvents`,t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>$C(e,t))})}function $C(e,t){return e.someProp(`handleDOMEvents`,n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function Hse(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function Use(e,t){!$C(e,t)&&YC[t.type]&&(e.editable||!(t.type in XC))&&YC[t.type](e,t)}XC.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!sw(e)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(rS&&Zx&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),eS&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp(`handleKeyDown`,t=>t(e,Rx(13,`Enter`))),e.input.lastIOSEnter=0)},200)}else e.someProp(`handleKeyDown`,t=>t(e,n))||jse(e,n)?n.preventDefault():ZC(e,`key`)},XC.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)},XC.keypress=(e,t)=>{let n=t;if(sw(e)||!n.charCode||n.ctrlKey&&!n.altKey||tS&&n.metaKey)return;if(e.someProp(`handleKeyPress`,t=>t(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof G)||!r.$from.sameParent(r.$to)){let t=String.fromCharCode(n.charCode),i=()=>e.state.tr.insertText(t).scrollIntoView();!/[\r\n]/.test(t)&&!e.someProp(`handleTextInput`,n=>n(e,r.$from.pos,r.$to.pos,t,i))&&e.dispatch(i()),n.preventDefault()}};function ew(e){return{left:e.clientX,top:e.clientY}}function Wse(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function tw(e,t,n,r,i){if(r==-1)return!1;let a=e.state.doc.resolve(r);for(let r=a.depth+1;r>0;r--)if(e.someProp(t,t=>r>a.depth?t(e,n,a.nodeAfter,a.before(r),i,!0):t(e,n,a.node(r),a.before(r),i,!1)))return!0;return!1}function nw(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);n==`pointer`&&r.setMeta(`pointer`,!0),e.dispatch(r)}function Gse(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&K.isSelectable(r)?(nw(e,new K(n),`pointer`),!0):!1}function Kse(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof K&&(r=n.node);let a=e.state.doc.resolve(t);for(let e=a.depth+1;e>0;e--){let t=e>a.depth?a.nodeAfter:a.node(e);if(K.isSelectable(t)){i=r&&n.$from.depth>0&&e>=n.$from.depth&&a.before(n.$from.depth+1)==n.$from.pos?a.before(n.$from.depth):a.before(e);break}}return i==null?!1:(nw(e,K.create(e.state.doc,i),`pointer`),!0)}function qse(e,t,n,r,i){return tw(e,`handleClickOn`,t,n,r)||e.someProp(`handleClick`,n=>n(e,t,r))||(i?Kse(e,n):Gse(e,n))}function Jse(e,t,n,r){return tw(e,`handleDoubleClickOn`,t,n,r)||e.someProp(`handleDoubleClick`,n=>n(e,t,r))}function Yse(e,t,n,r){return tw(e,`handleTripleClickOn`,t,n,r)||e.someProp(`handleTripleClick`,n=>n(e,t,r))||Xse(e,n,r)}function Xse(e,t,n){if(n.button!=0)return!1;let r=rw(e,t,!0),i=e.state.doc;return r?(nw(e,r,`pointer`),r instanceof G&&i.eq(e.state.doc)&&(e.input.mouseDown=new Qse(e,r)),!0):!1}function rw(e,t,n){let r=e.state.doc;if(t==-1)return r.inlineContent?G.create(r,0,r.content.size):null;let i=r.resolve(t);for(let e=i.depth+1;e>0;e--){let t=e>i.depth?i.nodeAfter:i.node(e),a=i.before(e);if(t.inlineContent)return G.create(r,a+1,a+1+t.content.size);if(n&&K.isSelectable(t))return K.create(r,a)}return null}function iw(e){return uw(e)}var aw=tS?`metaKey`:`ctrlKey`;YC.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=iw(e),i=Date.now(),a=`singleClick`;i-e.input.lastClick.time<500&&Wse(n,e.input.lastClick)&&!n[aw]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type==`singleClick`?a=`doubleClick`:e.input.lastClick.type==`doubleClick`&&(a=`tripleClick`)),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:a,button:n.button},e.input.mouseDown&&e.input.mouseDown.done();let o=e.posAtCoords(ew(n));o&&(a==`singleClick`?e.input.mouseDown=new Zse(e,o,n,!!r):(a==`doubleClick`?Jse:Yse)(e,o.pos,o.inside,n)?n.preventDefault():ZC(e,`pointer`))};var ow=class{constructor(e){this.view=e,this.mightDrag=null,e.root.addEventListener(`mouseup`,this.up=this.up.bind(this)),e.root.addEventListener(`mousemove`,this.move=this.move.bind(this))}up(e){this.done()}move(e){e.buttons==0&&this.done()}done(){this.view.root.removeEventListener(`mouseup`,this.up),this.view.root.removeEventListener(`mousemove`,this.move),this.view.input.mouseDown==this&&(this.view.input.mouseDown=null)}delaySelUpdate(){return!1}},Zse=class extends ow{constructor(e,t,n,r){super(e),this.pos=t,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.startDoc=e.state.doc,this.selectNode=!!n[aw],this.allowDefault=n.shiftKey;let i,a;if(t.inside>-1)i=e.state.doc.nodeAt(t.inside),a=t.inside;else{let n=e.state.doc.resolve(t.pos);i=n.parent,a=n.depth?n.before():0}let o=r?null:n.target,s=o?e.docView.nearestDesc(o,!0):null;this.target=s&&s.nodeDOM.nodeType==1?s.nodeDOM:null;let{selection:c}=e.state;n.button==0&&(i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof K&&c.from<=a&&c.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Yx&&!this.target.hasAttribute(`contentEditable`))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute(`contentEditable`,`false`)},20),this.view.domObserver.start()),ZC(e,`pointer`)}done(){super.done(),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute(`draggable`),this.mightDrag.setUneditable&&this.target.removeAttribute(`contentEditable`),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>{this.view.isDestroyed||hC(this.view)})}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(ew(e))),this.updateAllowDefault(e),this.allowDefault||!t?ZC(this.view,`pointer`):qse(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||$x&&this.mightDrag&&!this.mightDrag.node.isAtom||Zx&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(nw(this.view,lb.near(this.view.state.doc.resolve(t.pos)),`pointer`),e.preventDefault()):ZC(this.view,`pointer`)}move(e){this.updateAllowDefault(e),ZC(this.view,`pointer`),super.move(e)}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}delaySelUpdate(){return this.allowDefault?(this.delayedSelectionSync=!0,!0):!1}},Qse=class extends ow{constructor(e,t){super(e),this.startSelection=t,this.startDoc=e.state.doc}move(e){if(e.buttons==0||this.view.isDestroyed||!this.view.state.doc.eq(this.startDoc)){this.done();return}e.preventDefault(),ZC(this.view,`pointer`);let t=this.view.posAtCoords(ew(e)),n=t&&rw(this.view,t.inside,!1);if(!n)return;let{doc:r}=this.view.state,i=this.startSelection,[a,o]=n.from<i.from?[i.to,n.from]:[i.from,n.to];nw(this.view,G.create(r,a,o),`pointer`)}};YC.touchstart=e=>{e.input.lastTouch=Date.now(),iw(e),ZC(e,`pointer`)},YC.touchmove=e=>{e.input.lastTouch=Date.now(),ZC(e,`pointer`)},YC.contextmenu=e=>iw(e);function sw(e,t){return e.composing?!0:$x&&Math.abs(Date.now()-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}var $se=rS?5e3:-1;XC.compositionstart=XC.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof G&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>e.type.spec.inclusive===!1)||Zx&&nS&&ece(e)))e.markCursor=e.state.storedMarks||n.marks(),uw(e,!0),e.markCursor=null;else if(uw(e,!t.selection.empty),Yx&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&n.nodeType==1&&r!=0;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;
vendor: 23,781 bytes, line 226
226if(t.nodeType==3){let n=e.domSelection();n&&n.collapse(t,t.nodeValue.length);break}else n=t,r=-1}}e.input.composing=!0}cw(e,$se)};function ece(e){let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(!t||t.nodeType!=1||n>=t.childNodes.length)return!1;let r=t.childNodes[n];return r.nodeType==1&&r.contentEditable==`false`}XC.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now(),e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,cw(e,20))};function cw(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>uw(e),t))}function lw(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function tce(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=Nx(t.focusNode,t.focusOffset),r=Px(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let t=r.pmViewDesc,i=e.domObserver.lastChangedTextNode;if(n==i||r==i)return i;if(!t||!t.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let e=n.pmViewDesc;if(!(!e||!e.isText(n.nodeValue)))return r}}return n||r}function uw(e,t=!1){if(!(rS&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),lw(e),t||e.docView&&e.docView.dirty){let n=pC(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function nce(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement(`div`));n.appendChild(t),n.style.cssText=`position: fixed; left: -10000px; top: 10px`;let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}var dw=qx&&Jx<15||eS&&aS<604;YC.copy=XC.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type==`cut`;if(r.empty)return;let a=dw?null:n.clipboardData,{dom:o,text:s}=zC(e,r.content());a?(n.preventDefault(),a.clearData(),a.setData(`text/html`,o.innerHTML),a.setData(`text/plain`,s)):nce(e,o),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta(`uiEvent`,`cut`))};function rce(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function ice(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?`textarea`:`div`));n||(r.contentEditable=`true`),r.style.cssText=`position: fixed; left: -10000px; top: 10px`,r.focus();let i=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?fw(e,r.value,null,i,t):fw(e,r.textContent,r.innerHTML,i,t)},50)}function fw(e,t,n,r,i){let a=BC(e,t,n,r,e.state.selection.$from);if(e.someProp(`handlePaste`,t=>t(e,i,a||W.empty)))return!0;if(!a)return!1;let o=rce(a),s=o?e.state.tr.replaceSelectionWith(o,r):e.state.tr.replaceSelection(a);return e.dispatch(s.scrollIntoView().setMeta(`paste`,!0).setMeta(`uiEvent`,`paste`)),!0}function pw(e){let t=e.getData(`text/plain`)||e.getData(`Text`);if(t)return t;let n=e.getData(`text/uri-list`);return n?n.replace(/\r?\n/g,` `):``}XC.paste=(e,t)=>{let n=t;if(e.composing&&!rS)return;let r=dw?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&fw(e,pw(r),r.getData(`text/html`),i,n)?n.preventDefault():ice(e,n)};var mw=class{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}},ace=tS?`altKey`:`ctrlKey`;function hw(e,t){let n;return e.someProp(`dragCopies`,e=>{n||=e(t)}),n==null?!t[ace]:!n}YC.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,a=i.empty?null:e.posAtCoords(ew(n)),o;if(!(a&&a.pos>=i.from&&a.pos<=(i instanceof K?i.to-1:i.to))){if(r&&r.mightDrag)o=K.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&(o=K.create(e.state.doc,t.posBefore))}}let{dom:s,text:c,slice:l}=zC(e,(o||e.state.selection).content());(!n.dataTransfer.files.length||!Zx||Qx>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(dw?`Text`:`text/html`,s.innerHTML),n.dataTransfer.effectAllowed=`copyMove`,dw||n.dataTransfer.setData(`text/plain`,c),e.dragging=new mw(l,hw(e,n),o)},YC.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},XC.dragover=XC.dragenter=(e,t)=>t.preventDefault(),XC.drop=(e,t)=>{try{oce(e,t,e.dragging)}finally{e.dragging=null}};function oce(e,t,n){if(!t.dataTransfer)return;let r=e.posAtCoords(ew(t));if(!r)return;let i=e.state.doc.resolve(r.pos),a=n&&n.slice;a?e.someProp(`transformPasted`,t=>{a=t(a,e,!1)}):a=BC(e,pw(t.dataTransfer),dw?null:t.dataTransfer.getData(`text/html`),!1,i);let o=!!(n&&hw(e,t));if(e.someProp(`handleDrop`,n=>n(e,t,a||W.empty,o))){t.preventDefault();return}if(!a)return;t.preventDefault();let s=a?Vy(e.state.doc,i.pos,a):i.pos;s??=i.pos;let c=e.state.tr;if(o){let{node:e}=n;e?e.replace(c):c.deleteSelection()}let l=c.mapping.map(s),u=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,d=c.doc;if(u?c.replaceRangeWith(l,l,a.content.firstChild):c.replaceRange(l,l,a),c.doc.eq(d))return;let f=c.doc.resolve(l);if(u&&K.isSelectable(a.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new K(f));else{let t=c.mapping.map(s);c.mapping.maps[c.mapping.maps.length-1].forEach((e,n,r,i)=>t=i),c.setSelection(wC(e,f,c.doc.resolve(t)))}e.focus(),e.dispatch(c.setMeta(`uiEvent`,`drop`))}YC.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add(`ProseMirror-focused`),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&hC(e)},20))},YC.blur=(e,t)=>{let n=t;e.focused&&=(e.domObserver.stop(),e.dom.classList.remove(`ProseMirror-focused`),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),!1)},YC.beforeinput=(e,t)=>{if(rS&&t.inputType==`deleteContentBackward`){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t||(e.dom.blur(),e.focus(),e.someProp(`handleKeyDown`,t=>t(e,Rx(8,`Backspace`)))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let e in XC)YC[e]=XC[e];function gw(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}var _w=class e{constructor(e,t){this.toDOM=e,this.spec=t||xw,this.side=this.spec.side||0}map(e,t,n,r){let{pos:i,deleted:a}=e.mapResult(t.from+r,this.side<0?-1:1);return a?null:new yw(i-n,i-n,this)}valid(){return!0}eq(t){return this==t||t instanceof e&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&gw(this.spec,t.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}},vw=class e{constructor(e,t){this.attrs=e,this.spec=t||xw}map(e,t,n,r){let i=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,a=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=a?null:new yw(i,a,this)}valid(e,t){return t.from<t.to}eq(t){return this==t||t instanceof e&&gw(this.attrs,t.attrs)&&gw(this.spec,t.spec)}static is(t){return t.type instanceof e}destroy(){}},sce=class e{constructor(e,t){this.attrs=e,this.spec=t||xw}map(e,t,n,r){let i=e.mapResult(t.from+r,1);if(i.deleted)return null;let a=e.mapResult(t.to+r,-1);return a.deleted||a.pos<=i.pos?null:new yw(i.pos-n,a.pos-n,this)}valid(e,t){let{index:n,offset:r}=e.content.findIndex(t.from),i;return r==t.from&&!(i=e.child(n)).isText&&r+i.nodeSize==t.to}eq(t){return this==t||t instanceof e&&gw(this.attrs,t.attrs)&&gw(this.spec,t.spec)}destroy(){}},yw=class e{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(t,n){return new e(t,n,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(t,n,r){return new e(t,t,new _w(n,r))}static inline(t,n,r,i){return new e(t,n,new vw(r,i))}static node(t,n,r,i){return new e(t,n,new sce(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof vw}get widget(){return this.type instanceof _w}},bw=[],xw={},Sw=class e{constructor(e,t){this.local=e.length?e:bw,this.children=t.length?t:bw}static create(e,t){return t.length?Ow(t,e,0,xw):Cw}find(e,t,n){let r=[];return this.findInner(e??0,t??1e9,r,0,n),r}findInner(e,t,n,r,i){for(let a=0;a<this.local.length;a++){let o=this.local[a];o.from<=t&&o.to>=e&&(!i||i(o.spec))&&n.push(o.copy(o.from+r,o.to+r))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<t&&this.children[a+1]>e){let o=this.children[a]+1;this.children[a+2].findInner(e-o,t-o,n,r+o,i)}}map(e,t,n){return this==Cw||e.maps.length==0?this:this.mapInner(e,t,0,0,n||xw)}mapInner(t,n,r,i,a){let o;for(let e=0;e<this.local.length;e++){let s=this.local[e].map(t,r,i);s&&s.type.valid(n,s)?(o||=[]).push(s):a.onRemove&&a.onRemove(this.local[e].spec)}return this.children.length?cce(this.children,o||[],t,n,r,i,a):o?new e(o.sort(kw),bw):Cw}add(t,n){return n.length?this==Cw?e.create(t,n):this.addInner(t,n,0):this}addInner(t,n,r){let i,a=0;t.forEach((e,t)=>{let o=t+r,s;if(s=Ew(n,e,o)){for(i||=this.children.slice();a<i.length&&i[a]<t;)a+=3;i[a]==t?i[a+2]=i[a+2].addInner(e,s,o+1):i.splice(a,0,t,t+e.nodeSize,Ow(s,e,o+1,xw)),a+=3}});let o=Tw(a?Dw(n):n,-r);for(let e=0;e<o.length;e++)o[e].type.valid(t,o[e])||o.splice(e--,1);return new e(o.length?this.local.concat(o).sort(kw):this.local,i||this.children)}remove(e){return e.length==0||this==Cw?this:this.removeInner(e,0)}removeInner(t,n){let r=this.children,i=this.local;for(let e=0;e<r.length;e+=3){let i,a=r[e]+n,o=r[e+1]+n;for(let e=0,n;e<t.length;e++)(n=t[e])&&n.from>a&&n.to<o&&(t[e]=null,(i||=[]).push(n));if(!i)continue;r==this.children&&(r=this.children.slice());let s=r[e+2].removeInner(i,a+1);s==Cw?(r.splice(e,3),e-=3):r[e+2]=s}if(i.length){for(let e=0,r;e<t.length;e++)if(r=t[e])for(let e=0;e<i.length;e++)i[e].eq(r,n)&&(i==this.local&&(i=this.local.slice()),i.splice(e--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new e(i,r):Cw}forChild(t,n){if(this==Cw)return this;if(n.isLeaf)return e.empty;let r,i;for(let e=0;e<this.children.length;e+=3)if(this.children[e]>=t){this.children[e]==t&&(r=this.children[e+2]);break}let a=t+1,o=a+n.content.size;for(let e=0;e<this.local.length;e++){let t=this.local[e];if(t.from<o&&t.to>a&&t.type instanceof vw){let e=Math.max(a,t.from)-a,n=Math.min(o,t.to)-a;e<n&&(i||=[]).push(t.copy(e,n))}}if(i){let t=new e(i.sort(kw),bw);return r?new ww([t,r]):t}return r||Cw}eq(t){if(this==t)return!0;if(!(t instanceof e)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let e=0;e<this.local.length;e++)if(!this.local[e].eq(t.local[e]))return!1;for(let e=0;e<this.children.length;e+=3)if(this.children[e]!=t.children[e]||this.children[e+1]!=t.children[e+1]||!this.children[e+2].eq(t.children[e+2]))return!1;return!0}locals(e){return Aw(this.localsInner(e))}localsInner(e){if(this==Cw)return bw;if(e.inlineContent||!this.local.some(vw.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof vw||t.push(this.local[e]);return t}forEachSet(e){e(this)}};Sw.empty=new Sw([],[]),Sw.removeOverlap=Aw;var Cw=Sw.empty,ww=class e{constructor(e){this.members=e}map(t,n){let r=this.members.map(e=>e.map(t,n,xw));return e.from(r)}forChild(t,n){if(n.isLeaf)return Sw.empty;let r=[];for(let i=0;i<this.members.length;i++){let a=this.members[i].forChild(t,n);a!=Cw&&(a instanceof e?r=r.concat(a.members):r.push(a))}return e.from(r)}eq(t){if(!(t instanceof e)||t.members.length!=this.members.length)return!1;for(let e=0;e<this.members.length;e++)if(!this.members[e].eq(t.members[e]))return!1;return!0}locals(e){let t,n=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(e);if(i.length)if(!t)t=i;else{n&&=(t=t.slice(),!1);for(let e=0;e<i.length;e++)t.push(i[e])}}return t?Aw(n?t:t.sort(kw)):bw}static from(t){switch(t.length){case 0:return Cw;case 1:return t[0];default:return new e(t.every(e=>e instanceof Sw)?t:t.reduce((e,t)=>e.concat(t instanceof Sw?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}};function cce(e,t,n,r,i,a,o){let s=e.slice();for(let e=0,t=a;e<n.maps.length;e++){let r=0;n.maps[e].forEach((e,n,i,a)=>{let o=a-i-(n-e);for(let i=0;i<s.length;i+=3){let a=s[i+1];if(a<0||e>a+t-r)continue;let c=s[i]+t-r;n>=c?s[i+1]=e<=c?-2:-1:e>=t&&o&&(s[i]+=o,s[i+1]+=o)}r+=o}),t=n.maps[e].map(t,-1)}let c=!1;for(let t=0;t<s.length;t+=3)if(s[t+1]<0){if(s[t+1]==-2){c=!0,s[t+1]=-1;continue}let l=n.map(e[t]+a),u=l-i;if(u<0||u>=r.content.size){c=!0;continue}let d=n.map(e[t+1]+a,-1)-i,{index:f,offset:p}=r.content.findIndex(u),m=r.maybeChild(f);if(m&&p==u&&p+m.nodeSize==d){let r=s[t+2].mapInner(n,m,l+1,e[t]+a+1,o);r==Cw?(s[t+1]=-2,c=!0):(s[t]=u,s[t+1]=d,s[t+2]=r)}else c=!0}if(c){let c=Ow(lce(s,e,t,n,i,a,o),r,0,o);t=c.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,t=0;e<c.children.length;e+=3){let n=c.children[e];for(;t<s.length&&s[t]<n;)t+=3;s.splice(t,0,c.children[e],c.children[e+1],c.children[e+2])}}return new Sw(t.sort(kw),s)}function Tw(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let i=e[r];n.push(new yw(i.from+t,i.to+t,i.type))}return n}function lce(e,t,n,r,i,a,o){function s(e,t){for(let a=0;a<e.local.length;a++){let s=e.local[a].map(r,i,t);s?n.push(s):o.onRemove&&o.onRemove(e.local[a].spec)}for(let n=0;n<e.children.length;n+=3)s(e.children[n+2],e.children[n]+t+1)}for(let n=0;n<e.length;n+=3)e[n+1]==-1&&s(e[n+2],t[n]+a+1);return n}function Ew(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,i=null;for(let t=0,a;t<e.length;t++)(a=e[t])&&a.from>n&&a.to<r&&((i||=[]).push(a),e[t]=null);return i}function Dw(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function Ow(e,t,n,r){let i=[],a=!1;t.forEach((t,o)=>{let s=Ew(e,t,o+n);if(s){a=!0;let e=Ow(s,t,n+o+1,r);e!=Cw&&i.push(o,o+t.nodeSize,e)}});let o=Tw(a?Dw(e):e,-n).sort(kw);for(let e=0;e<o.length;e++)o[e].type.valid(t,o[e])||(r.onRemove&&r.onRemove(o[e].spec),o.splice(e--,1));return o.length||i.length?new Sw(o,i):Cw}function kw(e,t){return e.from-t.from||e.to-t.to}function Aw(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let i=n+1;i<t.length;i++){let a=t[i];if(a.from==r.from){a.to!=r.to&&(t==e&&(t=e.slice()),t[i]=a.copy(a.from,r.to),jw(t,i+1,a.copy(r.to,a.to)));continue}else{a.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,a.from),jw(t,i,r.copy(a.from,r.to)));break}}}return t}function jw(e,t,n){for(;t<e.length&&kw(n,e[t])>0;)t++;e.splice(t,0,n)}function Mw(e){let t=[];return e.someProp(`decorations`,n=>{let r=n(e.state);r&&r!=Cw&&t.push(r)}),e.cursorWrapper&&t.push(Sw.create(e.state.doc,[e.cursorWrapper.deco])),ww.from(t)}var uce={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},dce=qx&&Jx<=11,fce=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}},pce=class{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new fce,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(t=>{for(let e=0;e<t.length;e++)this.queue.push(t[e]);qx&&Jx<=11&&t.some(e=>e.type==`childList`&&e.removedNodes.length||e.type==`characterData`&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():$x&&e.composing&&t.some(e=>e.type==`childList`&&e.target.nodeName==`TR`)?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),dce&&(this.onCharData=e=>{this.queue.push({target:e.target,type:`characterData`,oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,uce)),this.onCharData&&this.view.dom.addEventListener(`DOMCharacterDataModified`,this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener(`DOMCharacterDataModified`,this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener(`selectionchange`,this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener(`selectionchange`,this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(TC(this.view)){if(this.suppressingSelectionUpdates)return hC(this.view);if(qx&&Jx<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&kx(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,n;for(let n=e.focusNode;n;n=Tx(n))t.add(n);for(let r=e.anchorNode;r;r=Tx(r))if(t.has(r)){n=r;break}let r=n&&this.view.docView.nearestDesc(n);if(r&&r.ignoreMutation({type:`selection`,target:n.nodeType==3?n.parentNode:n}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let n=e.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&TC(e)&&!this.ignoreSelectionChange(n),i=-1,a=-1,o=!1,s=[];if(e.editable)for(let e=0;e<t.length;e++){let n=this.registerMutation(t[e],s);n&&(i=i<0?n.from:Math.min(n.from,i),a=a<0?n.to:Math.max(n.to,a),n.typeOver&&(o=!0))}if(s.some(e=>e.nodeName==`BR`)&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46||Zx&&(e.composing||e.input.compositionEndedAt>Date.now()-50)&&t.some(e=>e.type==`childList`&&e.removedNodes.length))){for(let e of s)if(e.nodeName==`BR`&&e.parentNode){let t=e.nextSibling;for(;t&&t.nodeType==1;){if(t.contentEditable==`false`){e.parentNode.removeChild(e);break}t=t.firstChild}}}else if(Yx&&s.length){let t=s.filter(e=>e.nodeName==`BR`);if(t.length==2){let[e,n]=t;e.parentNode&&e.parentNode.parentNode==n.parentNode?n.remove():e.remove()}else{let{focusNode:n}=this.currentSelection;for(let r of t){let t=r.parentNode;t&&t.nodeName==`LI`&&(!n||gce(e,n)!=t)&&r.remove()}}}let c=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Lx(n)&&(c=pC(e))&&c.eq(lb.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,hC(e),this.currentSelection.set(n),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,a),mce(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,_ce(e,s)),this.handleDOMChange(i,a,o,s),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||hC(e),this.currentSelection.set(n))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if(e.type==`attributes`&&(n==this.view.docView||e.attributeName==`contenteditable`||e.attributeName==`style`&&!e.oldValue&&!e.target.getAttribute(`style`))||!n||n.ignoreMutation(e))return null;if(e.type==`childList`){for(let n=0;n<e.addedNodes.length;n++){let r=e.addedNodes[n];t.push(r),r.nodeType==3&&(this.lastChangedTextNode=r)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,i=e.nextSibling;if(qx&&Jx<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:n,nextSibling:a}=e.addedNodes[t];(!n||Array.prototype.indexOf.call(e.addedNodes,n)<0)&&(r=n),(!a||Array.prototype.indexOf.call(e.addedNodes,a)<0)&&(i=a)}let a=r&&r.parentNode==e.target?Cx(r)+1:0,o=n.localPosFromDOM(e.target,a,-1),s=i&&i.parentNode==e.target?Cx(i):e.target.childNodes.length;return{from:o,to:n.localPosFromDOM(e.target,s,1)}}else if(e.type==`attributes`)return{from:n.posAtStart-n.border,to:n.posAtEnd+n.border};else return this.lastChangedTextNode=e.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}},Nw=new WeakMap,Pw=!1;function mce(e){if(!Nw.has(e)&&(Nw.set(e,null),[`normal`,`nowrap`,`pre-line`].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=Yx,Pw)return;console.warn(`ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package.`),Pw=!0}}function Fw(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,o=e.domAtPos(e.state.selection.anchor);return kx(o.node,o.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function hce(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return Fw(e,n)}let n;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.dom.addEventListener(`beforeinput`,r,!0),document.execCommand(`indent`),e.dom.removeEventListener(`beforeinput`,r,!0),n?Fw(e,n):null}function gce(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let t=e.docView.nearestDesc(n,!0);if(t&&t.node.isBlock)return n}return null}function _ce(e,t){let{focusNode:n,focusOffset:r}=e.domSelectionRange();for(let i of t)if(i.parentNode?.nodeName==`TR`){let t=i.nextSibling;for(;t&&t.nodeName!=`TD`&&t.nodeName!=`TH`;)t=t.nextSibling;if(t){let a=t;for(;;){let e=a.firstChild;if(!e||e.nodeType!=1||e.contentEditable==`false`||/^(BR|IMG)$/.test(e.nodeName))break;a=e}a.insertBefore(i,a.firstChild),n==i&&e.domSelection().collapse(i,r)}else i.parentNode.removeChild(i)}}function vce(e,t,n,r){let{node:i,fromOffset:a,toOffset:o,from:s,to:c}=e.docView.parseRange(t,n),l=e.domSelectionRange(),u,d=l.anchorNode;if(d&&e.dom.contains(d.nodeType==1?d:d.parentNode)&&(u=[{node:d,offset:l.anchorOffset}],Lx(l)||u.push({node:l.focusNode,offset:l.focusOffset})),Zx&&e.input.lastKeyCode===8)for(let e=o;e>a;e--){let t=i.childNodes[e-1],n=t.pmViewDesc;if(t.nodeName==`BR`&&!n){o=e;break}if(!n||n.size)break}let f=e.state.doc,p=e.someProp(`domParser`)||Ev.fromSchema(e.state.schema),m=f.resolve(s),h=null,g=p.parse(i,{topNode:m.parent,topMatch:m.parent.contentMatchAt(m.index()),topOpen:!0,from:a,to:o,preserveWhitespace:m.parent.type.whitespace==`pre`?`full`:!0,findPositions:u,ruleFromNode:yce(r),context:m});if(u&&u[0].pos!=null){let e=u[0].pos,t=u[1]&&u[1].pos;t??=e,h={anchor:e+s,head:t+s}}return{doc:g,sel:h,from:s,to:c}}var yce=e=>t=>
vendor: 9,197 bytes, line 226
226{let n=t.pmViewDesc;if(n)return n.parseRule(e);if(t.nodeName==`BR`&&t.parentNode){if($x&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let e=document.createElement(`div`);return e.appendChild(document.createElement(`li`)),{skip:e}}else if(t.parentNode.lastChild==t||$x&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName==`IMG`&&t.getAttribute(`mark-placeholder`))return{ignore:!0};return null},bce=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function xce(e,t,n,r,i){let a=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,n=pC(e,t);if(n&&!e.state.selection.eq(n)){if(Zx&&rS&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp(`handleKeyDown`,t=>t(e,Rx(13,`Enter`))))return;let r=e.state.tr.setSelection(n);t==`pointer`?r.setMeta(`pointer`,!0):t==`key`&&r.scrollIntoView(),a&&r.setMeta(`composition`,a),e.dispatch(r)}return}let o=e.state.doc.resolve(t),s=o.sharedDepth(n);t=o.before(s+1),n=e.state.doc.resolve(n).after(s+1);let c=e.state.selection,l=vce(e,t,n,i),u=e.state.doc,d=u.slice(l.from,l.to),f,p;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(f=e.state.selection.to,p=`end`):(f=e.state.selection.from,p=`start`),e.input.lastKeyCode=null;let m=wce(d.content,l.doc.content,l.from,f,p);if(m&&e.input.domChangeCount++,(eS&&e.input.lastIOSEnter>Date.now()-225||rS)&&i.some(e=>e.nodeType==1&&!bce.test(e.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp(`handleKeyDown`,t=>t(e,Rx(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(!m)if(r&&c instanceof G&&!c.empty&&c.$head.sameParent(c.$anchor)&&!e.composing&&!(l.sel&&l.sel.anchor!=l.sel.head))m={start:c.from,endA:c.to,endB:c.to};else{if(l.sel){let t=Iw(e,e.state.doc,l.sel);if(t&&!t.eq(e.state.selection)){let n=e.state.tr.setSelection(t);a&&n.setMeta(`composition`,a),e.dispatch(n)}}return}e.state.selection.from<e.state.selection.to&&m.start==m.endB&&e.state.selection instanceof G&&(m.start>e.state.selection.from&&m.start<=e.state.selection.from+2&&e.state.selection.from>=l.from?m.start=e.state.selection.from:m.endA<e.state.selection.to&&m.endA>=e.state.selection.to-2&&e.state.selection.to<=l.to&&(m.endB+=e.state.selection.to-m.endA,m.endA=e.state.selection.to)),qx&&Jx<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>l.from&&l.doc.textBetween(m.start-l.from-1,m.start-l.from+1)==` \xA0`&&(m.start--,m.endA--,m.endB--);let h=l.doc.resolveNoCache(m.start-l.from),g=l.doc.resolveNoCache(m.endB-l.from),_=u.resolve(m.start),v=h.sameParent(g)&&h.parent.inlineContent&&_.end()>=m.endA;if((eS&&e.input.lastIOSEnter>Date.now()-225&&(!v||i.some(e=>e.nodeName==`DIV`||e.nodeName==`P`))||!v&&h.pos<l.doc.content.size&&(!h.sameParent(g)||!h.parent.inlineContent)&&h.pos<g.pos&&!/\S/.test(l.doc.textBetween(h.pos,g.pos,``,``)))&&e.someProp(`handleKeyDown`,t=>t(e,Rx(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>m.start&&Cce(u,m.start,m.endA,h,g)&&e.someProp(`handleKeyDown`,t=>t(e,Rx(8,`Backspace`)))){rS&&Zx&&e.domObserver.suppressSelectionUpdates();return}Zx&&m.endB==m.start&&(e.input.lastChromeDelete=Date.now()),rS&&!v&&h.start()!=g.start()&&g.parentOffset==0&&h.depth==g.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==m.endA&&(m.endB-=2,g=l.doc.resolveNoCache(m.endB-l.from),setTimeout(()=>{e.someProp(`handleKeyDown`,function(t){return t(e,Rx(13,`Enter`))})},20));let y=m.start,b=m.endA,x=t=>{let n=t||e.state.tr.replace(y,b,l.doc.slice(m.start-l.from,m.endB-l.from));if(l.sel){let t=Iw(e,n.doc,l.sel);t&&!(Zx&&e.composing&&t.empty&&(m.start!=m.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==y||t.head==n.mapping.map(b)-1)||qx&&t.empty&&t.head==y)&&n.setSelection(t)}return a&&n.setMeta(`composition`,a),n.scrollIntoView()},S;if(v)if(h.pos==g.pos){qx&&Jx<=11&&h.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>hC(e),20));let t=x(e.state.tr.delete(y,b)),n=u.resolve(m.start).marksAcross(u.resolve(m.endA));n&&t.ensureMarks(n),e.dispatch(t)}else if(m.endA==m.endB&&(S=Sce(h.parent.content.cut(h.parentOffset,g.parentOffset),_.parent.content.cut(_.parentOffset,m.endA-_.start())))){let t=x(e.state.tr);S.type==`add`?t.addMark(y,b,S.mark):t.removeMark(y,b,S.mark),e.dispatch(t)}else if(h.parent.child(h.index()).isText&&h.index()==g.index()-+!g.textOffset){let t=h.parent.textBetween(h.parentOffset,g.parentOffset),n=()=>x(e.state.tr.insertText(t,y,b));e.someProp(`handleTextInput`,r=>r(e,y,b,t,n))||e.dispatch(n())}else e.dispatch(x());else e.dispatch(x())}function Iw(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:wC(e,t.resolve(n.anchor),t.resolve(n.head))}function Sce(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,a=r,o,s,c;for(let e=0;e<r.length;e++)i=r[e].removeFromSet(i);for(let e=0;e<n.length;e++)a=n[e].removeFromSet(a);if(i.length==1&&a.length==0)s=i[0],o=`add`,c=e=>e.mark(s.addToSet(e.marks));else if(i.length==0&&a.length==1)s=a[0],o=`remove`,c=e=>e.mark(s.removeFromSet(e.marks));else return null;let l=[];for(let e=0;e<t.childCount;e++)l.push(c(t.child(e)));if(U.from(l).eq(e))return{mark:s,type:o}}function Cce(e,t,n,r,i){if(n-t<=i.pos-r.pos||Lw(r,!0,!1)<i.pos)return!1;let a=e.resolve(t);if(!r.parent.isTextblock){let e=a.nodeAfter;return e!=null&&n==t+e.nodeSize}if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;let o=e.resolve(Lw(a,!0,!0));return!o.parent.isTextblock||o.pos>n||Lw(o,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(o.parent.content)}function Lw(e,t,n){let r=e.depth,i=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));for(;t&&!t.isLeaf;)t=t.firstChild,i++}return i}function wce(e,t,n,r,i){let a=e.findDiffStart(t,n),o=n+e.size,s=n+t.size;if(a==null)return null;let{a:c,b:l}=e.findDiffEnd(t,o,s);if(i==`end`){let e=Math.max(0,a-Math.min(c,l));r-=c+e-a}if(c<a&&o<s){let e=r<=a&&r>=c?a-r:0;a-=e,l=a+(l-c),c=a}else if(l<a){let e=r<=a&&r>=l?a-r:0;a-=e,c=a+(c-l),l=a}return{start:a,endA:c,endB:l}}var Rw=class{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new zse,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(Uw),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement(`div`),e&&(e.appendChild?e.appendChild(this.dom):typeof e==`function`?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=Vw(this),Bw(this),this.nodeViews=Hw(this),this.docView=qS(this.state.doc,zw(this),Mw(this),this.dom,this),this.domObserver=new pce(this,(e,t,n,r)=>xce(this,e,t,n,r)),this.domObserver.start(),Bse(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&QC(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Uw),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let e in this._props)t[e]=this._props[e];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){let n=this.state,r=!1,i=!1;e.storedMarks&&this.composing&&(lw(this),i=!0),this.state=e;let a=n.plugins!=e.plugins||this._props.plugins!=t.plugins;if(a||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=Hw(this);Ece(e,this.nodeViews)&&(this.nodeViews=e,r=!0)}(a||t.handleDOMEvents!=this._props.handleDOMEvents)&&QC(this),this.editable=Vw(this),Bw(this);let o=Mw(this),s=zw(this),c=n.plugins!=e.plugins&&!n.doc.eq(e.doc)?`reset`:e.scrollToSelection>n.scrollToSelection?`to selection`:`preserve`,l=r||!this.docView.matchesNode(e.doc,s,o);(l||!e.selection.eq(n.selection))&&(i=!0);let u=c==`preserve`&&i&&this.dom.style.overflowAnchor==null&&uS(this);if(i){this.domObserver.stop();let t=l&&(qx||Zx)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&Tce(n.selection,e.selection);if(l){let n=Zx?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=tce(this)),(r||!this.docView.update(e.doc,s,o,this))&&(this.docView.updateOuterDeco(s),this.docView.destroy(),this.docView=qS(e.doc,s,o,this.dom,this)),n&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(t=!0)}let i=this.input.mouseDown;t||!(i&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&wse(this)&&i.delaySelUpdate())?hC(this,t):(SC(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),this.dragging?.node&&!n.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,n),c==`reset`?this.dom.scrollTop=0:c==`to selection`?this.scrollToSelection():u&&f
vendor: 41,138 bytes, lines 226-228
226S(u)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))&&!this.someProp(`handleScrollToSelection`,e=>e(this)))if(this.state.selection instanceof K){let t=this.docView.domAfterPos(this.state.selection.from);t.nodeType==1&&lS(this,t.getBoundingClientRect(),e)}else lS(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}else for(let t=0;t<this.pluginViews.length;t++){let n=this.pluginViews[t];n.update&&n.update(this,e)}}updateDraggedNode(e,t){let n=e.node,r=-1;if(n.from<this.state.doc.content.size&&this.state.doc.nodeAt(n.from)==n.node)r=n.from;else{let e=n.from+(this.state.doc.content.size-t.doc.content.size);(e>0&&e<this.state.doc.content.size&&this.state.doc.nodeAt(e))==n.node&&(r=e)}this.dragging=new mw(e.slice,e.move,r<0?void 0:K.create(this.state.doc,r))}someProp(e,t){let n=this._props&&this._props[e],r;if(n!=null&&(r=t?t(n):n))return r;for(let n=0;n<this.directPlugins.length;n++){let i=this.directPlugins[n].props[e];if(i!=null&&(r=t?t(i):i))return r}let i=this.state.plugins;if(i)for(let n=0;n<i.length;n++){let a=i[n].props[e];if(a!=null&&(r=t?t(a):a))return r}}hasFocus(){if(qx){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable==`false`)return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&hS(this.dom),hC(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let e=this.dom.parentNode;e;e=e.parentNode)if(e.nodeType==9||e.nodeType==11&&e.host)return e.getSelection||(Object.getPrototypeOf(e).getSelection=()=>e.ownerDocument.getSelection()),this._root=e}return e||document}updateRoot(){this._root=null}posAtCoords(e){return CS(this,e)}coordsAtPos(e,t=1){return DS(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(r==null)throw RangeError(`DOM position not inside the editor`);return r}endOfTextblock(e,t){return LS(this,t||this.state,e)}pasteHTML(e,t){return fw(this,``,e,!1,t||new ClipboardEvent(`paste`))}pasteText(e,t){return fw(this,e,null,!0,t||new ClipboardEvent(`paste`))}serializeForClipboard(e){return zC(this,e)}destroy(){this.docView&&(Vse(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Mw(this),this),this.dom.textContent=``):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,Ox())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return Use(this,e)}domSelectionRange(){let e=this.domSelection();return e?$x&&this.root.nodeType===11&&zx(this.dom.ownerDocument)==this.dom&&hce(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}};Rw.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function zw(e){let t=Object.create(null);return t.class=`ProseMirror`,t.contenteditable=String(e.editable),e.someProp(`attributes`,n=>{if(typeof n==`function`&&(n=n(e.state)),n)for(let e in n)e==`class`?t.class+=` `+n[e]:e==`style`?t.style=(t.style?t.style+`;`:``)+n[e]:!t[e]&&e!=`contenteditable`&&e!=`nodeName`&&(t[e]=String(n[e]))}),t.translate||=`no`,[yw.node(0,e.state.doc.content.size,t)]}function Bw(e){if(e.markCursor){let t=document.createElement(`img`);t.className=`ProseMirror-separator`,t.setAttribute(`mark-placeholder`,`true`),t.setAttribute(`alt`,``),e.cursorWrapper={dom:t,deco:yw.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function Vw(e){return!e.someProp(`editable`,t=>t(e.state)===!1)}function Tce(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function Hw(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp(`nodeViews`,n),e.someProp(`markViews`,n),t}function Ece(e,t){let n=0,r=0;for(let r in e){if(e[r]!=t[r])return!0;n++}for(let e in t)r++;return n!=r}function Uw(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw RangeError(`Plugins passed directly to the view must not have a state component`)}for(var Ww={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:`'`},Gw={48:`)`,49:`!`,50:`@`,51:`#`,52:`$`,53:`%`,54:`^`,55:`&`,56:`*`,57:`(`,59:`:`,61:`+`,173:`_`,186:`:`,187:`+`,188:`<`,189:`_`,190:`>`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},Dce=typeof navigator<`u`&&/Mac/.test(navigator.platform),Oce=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Kw=0;Kw<10;Kw++)Ww[48+Kw]=Ww[96+Kw]=String(Kw);for(var Kw=1;Kw<=24;Kw++)Ww[Kw+111]=`F`+Kw;for(var Kw=65;Kw<=90;Kw++)Ww[Kw]=String.fromCharCode(Kw+32),Gw[Kw]=String.fromCharCode(Kw);for(var qw in Ww)Gw.hasOwnProperty(qw)||(Gw[qw]=Ww[qw]);function kce(e){var t=!(Dce&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||Oce&&e.shiftKey&&e.key&&e.key.length==1||e.key==`Unidentified`)&&e.key||(e.shiftKey?Gw:Ww)[e.keyCode]||e.key||`Unidentified`;return t==`Esc`&&(t=`Escape`),t==`Del`&&(t=`Delete`),t==`Left`&&(t=`ArrowLeft`),t==`Up`&&(t=`ArrowUp`),t==`Right`&&(t=`ArrowRight`),t==`Down`&&(t=`ArrowDown`),t}var Ace=typeof navigator<`u`&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),jce=typeof navigator<`u`&&/Win/.test(navigator.platform);function Mce(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n==`Space`&&(n=` `);let r,i,a,o;for(let e=0;e<t.length-1;e++){let n=t[e];if(/^(cmd|meta|m)$/i.test(n))o=!0;else if(/^a(lt)?$/i.test(n))r=!0;else if(/^(c|ctrl|control)$/i.test(n))i=!0;else if(/^s(hift)?$/i.test(n))a=!0;else if(/^mod$/i.test(n))Ace?o=!0:i=!0;else throw Error(`Unrecognized modifier name: `+n)}return r&&(n=`Alt-`+n),i&&(n=`Ctrl-`+n),o&&(n=`Meta-`+n),a&&(n=`Shift-`+n),n}function Nce(e){let t=Object.create(null);for(let n in e)t[Mce(n)]=e[n];return t}function Jw(e,t,n=!0){return t.altKey&&(e=`Alt-`+e),t.ctrlKey&&(e=`Ctrl-`+e),t.metaKey&&(e=`Meta-`+e),n&&t.shiftKey&&(e=`Shift-`+e),e}function Pce(e){return new kb({props:{handleKeyDown:Yw(e)}})}function Yw(e){let t=Nce(e);return function(e,n){let r=kce(n),i,a=t[Jw(r,n)];if(a&&a(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=` `){if(n.shiftKey){let i=t[Jw(r,n,!1)];if(i&&i(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(jce&&n.ctrlKey&&n.altKey)&&(i=Ww[n.keyCode])&&i!=r){let r=t[Jw(i,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}function Xw(e){let{state:t,transaction:n}=e,{selection:r}=n,{doc:i}=n,{storedMarks:a}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return a},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,a=n.storedMarks,n}}}var Zw=class e{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){let{rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:i}=n,a=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,(...e)=>{let n=t(...e)(a);return!i.getMeta(`preventDispatch`)&&!this.hasCustomState&&r.dispatch(i),n}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o=[],s=!!e,c=e||i.tr,l=()=>(!s&&t&&!c.getMeta(`preventDispatch`)&&!this.hasCustomState&&a.dispatch(c),o.every(e=>e===!0)),u={...Object.fromEntries(Object.entries(n).map(([e,n])=>[e,(...e)=>{let r=this.buildProps(c,t),i=n(...e)(r);return o.push(i),u}])),run:l};return u}static createFakeChain(){let e=new Proxy({},{get:(t,n)=>{if(n!==`then`)return n===`run`?()=>!1:()=>e}});return e}createCan(e){let{rawCommands:t,state:n}=this,r=e||n.tr,i=this.buildProps(r,!1);return{...Object.fromEntries(Object.entries(t).map(([e,t])=>[e,(...e)=>t(...e)({...i,dispatch:void 0})])),chain:()=>this.createChain(r,!1)}}static createFallbackCan(){let t=e.createFakeChain();return new Proxy({chain:()=>t},{get:(e,t)=>{if(t!==`then`)return t===`chain`?e.chain:()=>!1}})}buildProps(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o={tr:e,editor:r,view:a,state:Xw({state:i,transaction:e}),dispatch:t?()=>void 0:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([e,t])=>[e,(...e)=>t(...e)(o)]))}};return o}},Fce=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{if(!e.isDestroyed){var n;t.dom.blur(),(n=window)==null||(n=n.getSelection())==null||n.removeAllRanges()}}),!0),Ice=(e=!0)=>({commands:t})=>t.setContent(``,{emitUpdate:e}),Lce=()=>({state:e,tr:t,dispatch:n})=>{let{selection:r}=t,{ranges:i}=r;return n&&i.forEach(({$from:n,$to:r})=>{e.doc.nodesBetween(n.pos,r.pos,(e,n)=>{if(e.type.isText)return;let{doc:r,mapping:i}=t,a=r.resolve(i.map(n)),o=r.resolve(i.map(n+e.nodeSize)),s=a.blockRange(o);if(!s)return;let c=xy(s);if(e.type.isTextblock){let{defaultType:e}=a.parent.contentMatchAt(a.index());t.setNodeMarkup(s.start,e)}(c||c===0)&&t.lift(s,c)})}),!0},Rce=e=>t=>e(t),zce=()=>({state:e,dispatch:t})=>Qb(e,t),Bce=(e,t)=>({editor:n,tr:r})=>{let{state:i}=n,a=i.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);let o=r.mapping.map(t);return r.insert(o,a.content),r.setSelection(new G(r.doc.resolve(Math.max(o-1,0)))),!0},Vce=()=>({tr:e,dispatch:t})=>{let{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;let i=e.selection.$anchor;for(let n=i.depth;n>0;--n)if(i.node(n).type===r.type){if(t){let t=i.before(n),r=i.after(n);e.delete(t,r).scrollIntoView()}return!0}return!1};function Qw(e,t){if(typeof e==`string`){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}var Hce=e=>({tr:t,state:n,dispatch:r})=>{let i=Qw(e,n.schema),a=t.selection.$anchor;for(let e=a.depth;e>0;--e)if(a.node(e).type===i){if(r){let n=a.before(e),r=a.after(e);t.delete(n,r).scrollIntoView()}return!0}return!1},Uce=e=>({tr:t,dispatch:n})=>{let{from:r,to:i}=e;return n&&t.delete(r,i),!0},Wce=e=>e.content?/^text(\*|\+)/.test(e.content):!1,$w=(e,t,n)=>{if(!e.parent.isInline||n===`left`&&e.pos>e.start()||n===`right`&&e.pos<e.end())return e.pos;let r=t.nodes[e.parent.type.name].spec;return Wce(r)?n===`left`?e.start()-1:e.end()+1:e.pos},Gce=(e,t,n)=>({from:$w(e,n,`left`),to:$w(t,n,`right`)}),Kce=()=>({state:e,dispatch:t})=>{if(e.selection.empty)return!1;if(t){let n=e.tr,{ranges:r}=e.selection,i=n.steps.length;r.forEach(t=>{let r=n.mapping.slice(i),{from:a,to:o}=Gce(n.doc.resolve(r.map(t.$from.pos)),n.doc.resolve(r.map(t.$to.pos)),e.schema);n.deleteRange(a,o)}),n.selection.empty||n.setSelection(G.near(n.doc.resolve(n.selection.from))),n.scrollIntoView(),t(n)}return!0},qce=()=>({commands:e})=>e.keyboardShortcut(`Enter`),Jce=()=>({state:e,dispatch:t})=>Zb(e,t);function eT(e){return Object.prototype.toString.call(e)===`[object RegExp]`}function tT(e,t,n={strict:!0}){let r=Object.keys(t);return r.length?r.every(r=>n.strict?t[r]===e[r]:eT(t[r])?t[r].test(e[r]):t[r]===e[r]):!0}function nT(e,t,n={}){return e.find(e=>e.type===t&&tT(Object.fromEntries(Object.keys(n).map(t=>[t,e.attrs[t]])),n))}function rT(e,t,n={}){return!!nT(e,t,n)}function iT(e,t,n){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if((!r.node||!r.node.marks.some(e=>e.type===t))&&(r=e.parent.childBefore(e.parentOffset)),!r.node||!r.node.marks.some(e=>e.type===t))return;if(!n){let e=r.node.marks.find(e=>e.type===t);e&&(n=e.attrs)}if(!nT([...r.node.marks],t,n))return;let i=r.index,a=e.start()+r.offset,o=i+1,s=a+r.node.nodeSize;for(;i>0&&rT([...e.parent.child(i-1).marks],t,n);)--i,a-=e.parent.child(i).nodeSize;for(;o<e.parent.childCount&&rT([...e.parent.child(o).marks],t,n);)s+=e.parent.child(o).nodeSize,o+=1;return{from:a,to:s}}function aT(e,t){if(typeof e==`string`){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}var Yce=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=aT(e,r.schema),{doc:o,selection:s}=n,{$from:c,from:l,to:u}=s;if(i){let e=iT(c,a,t);if(e&&e.from<=l&&e.to>=u){let t=G.create(o,e.from,e.to);n.setSelection(t)}}return!0},Xce=e=>t=>{let n=typeof e==`function`?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1};function oT(e){return e instanceof G}function sT(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function cT(e,t=null){if(!t)return null;let n=lb.atStart(e),r=lb.atEnd(e);if(t===`start`||t===!0)return n;if(t===`end`)return r;let i=n.from,a=r.to;return t===`all`?G.create(e,sT(0,i,a),sT(e.content.size,i,a)):G.create(e,sT(t,i,a),sT(t,i,a))}function lT(){return[`Android`].includes(navigator.platform)||/android/i.test(navigator.userAgent)}function uT(){return[`iPad Simulator`,`iPhone Simulator`,`iPod Simulator`,`iPad`,`iPhone`,`iPod`].includes(navigator.platform)||navigator.userAgent.includes(`Mac`)&&`ontouchend`in document}function Zce(){return typeof navigator<`u`?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}var Qce=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:a})=>{t={scrollIntoView:!0,...t};let o=()=>{(uT()||lT())&&r.dom.focus(),Zce()&&!uT()&&!lT()&&r.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),t?.scrollIntoView&&n.commands.scrollIntoView())})};try{if(r.hasFocus()&&e===null||e===!1)return!0}catch{return!1}if(a&&e===null&&!oT(n.state.selection))return o(),!0;let s=cT(i.doc,e)||n.state.selection,c=n.state.selection.eq(s);return a&&(c||i.setSelection(s),c&&i.storedMarks&&i.setStoredMarks(i.storedMarks),o()),!0},$ce=(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),ele=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),dT=e=>{let t=e.childNodes;for(let n=t.length-1;n>=0;--n){let r=t[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):r.nodeType===1&&dT(r)}return e};function fT(e){if(typeof window>`u`)throw Error(`[tiptap error]: there is no window object available, so this function cannot be used`);let t=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(t,`text/html`).body;return dT(n)}function pT(e){return typeof e?.nodesBetween==`function`}function mT(e,t,n){if(pT(e))return e;let r=typeof e==`object`&&!!e;n={slice:!0,parseOptions:{},...n};let i=typeof e==`string`;if(r)try{if(Array.isArray(e)&&e.length>0)return U.fromArray(e.map(e=>t.nodeFromJSON(e)));let r=t.nodeFromJSON(e);return n.errorOnInvalidContent&&r.check(),r}catch(r){if(n.errorOnInvalidContent)throw Error(`[tiptap error]: Invalid JSON content`,{cause:r});return console.warn(`[tiptap warn]: Invalid content.`,`Passed value:`,e,`Error:`,r),mT(``,t,n)}if(i){if(n.errorOnInvalidContent){let r=!1,i=``,a=new Sv({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:`inline*`,group:`block`,parseDOM:[{tag:`*`,getAttrs:e=>(r=!0,i=typeof e==`string`?e:e.outerHTML,null)}]}})});if(n.slice?Ev.fromSchema(a).parseSlice(fT(e),n.parseOptions):Ev.fromSchema(a).parse(fT(e),n.parseOptions),n.errorOnInvalidContent&&r)throw Error(`[tiptap error]: Invalid HTML content`,{cause:Error(`Invalid element found: ${i}`)})}let r=Ev.fromSchema(t);return n.slice?r.parseSlice(fT(e),n.parseOptions).content:r.parse(fT(e),n.parseOptions)}return mT(``,t,n)}function hT(e){return!(`type`in e)}function gT(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof py||i instanceof hy))return;let a=e.mapping.maps[r],o=0;a.forEach((e,t,n,r)=>{o===0&&(o=r)}),e.setSelection(lb.near(e.doc.resolve(o),n))}var tle=(e,t,n)=>({tr:r,dispatch:i,editor:a})=>{if(i){n={parseOptions:a.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let i,o=e=>{a.emit(`contentError`,{editor:a,error:e,disableCollaboration:()=>{`collaboration`in a.storage&&typeof a.storage.collaboration==`object`&&a.storage.collaboration&&(a.storage.collaboration.isDisabled=!0)}})},s={preserveWhitespace:`full`,...n.parseOptions};if(!n.errorOnInvalidContent&&!a.options.enableContentCheck&&a.options.emitContentError)try{mT(t,a.schema,{parseOptions:s,errorOnInvalidContent:!0})}catch(e){o(e)}try{i=mT(t,a.schema,{parseOptions:s,errorOnInvalidContent:n.errorOnInvalidContent??a.options.enableContentCheck})}catch(e){return o(e),!1}let{from:c,to:l}=typeof e==`number`?{from:e,to:e}:{from:e.from,to:e.to},u=!0,d=!0,f=hT(i)?i.content:[i];if(f.forEach(e=>{e.check(),u=u?e.isText&&e.marks.length===0:!1,d=d?e.isBlock:!1}),c===l&&d){let{parent:e}=r.doc.resolve(c);e.isTextblock&&!e.type.spec.code&&!e.childCount&&(--c,l+=1)}let p;if(u)p=Array.isArray(t)?t.map(e=>e.text||``).join(``):pT(t)?f.map(e=>e.text??``).join(``):typeof t==`object`&&t&&t.text?t.text:t,r.insertText(p,c,l);else{p=U.from(f);let e=r.doc.resolve(c),t=e.node(),n=e.parentOffset===0,i=t.isText||t.isTextblock,a=t.content.size>0;n&&i&&a&&d&&(c=Math.max(0,c-1)),r.replaceWith(c,l,f)}n.updateSelection&&gT(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta(`applyInputRules`,{from:c,text:p}),n.applyPasteRules&&r.setMeta(`applyPasteRules`,{from:c,text:p})}return!0};function _T(e){for(let t=0;t<e.edgeCount;t+=1){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var nle=(e={})=>({tr:t,dispatch:n,editor:r})=>{let{pos:i,attrs:a,content:o,updateSelection:s=!0}=e,c;c=typeof i==`number`?t.doc.resolve(i):i||t.selection.$from;let l=_T(c.parent.contentMatchAt(c.index()));if(!l)return!1;let u=Object.keys(l.spec.attrs||{}),d=a?Object.fromEntries(Object.entries(a).filter(([e])=>u.includes(e))):{},f;if(o){let e=mT(o,r.schema);f=l.createAndFill(d,e)}else f=l.createAndFill(d);return f?(n&&(t.insert(c.pos,f),s&&gT(t,t.steps.length-1,-1)),!0):!1},rle=()=>({state:e,dispatch:t})=>Kb(e,t),ile=()=>({state:e,dispatch:t})=>qb(e,t),ale=()=>({state:e,dispatch:t})=>Fb(e,t),ole=()=>({state:e,dispatch:t})=>Ub(e,t),sle=()=>({state:e,dispatch:t,tr:n})=>{try{let r=Ry(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},cle=()=>({state:e,dispatch:t,tr:n})=>{try{let r=Ry(e.doc,e.selection.$from.pos,1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},lle=()=>({state:e,dispatch:t})=>Ib(e,t),ule=()=>({state:e,dispatch:t})=>Lb(e,t);function vT(){return typeof navigator<`u`?/Mac/.test(navigator.platform):!1}function dle(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n===`Space`&&(n=` `);let r,i,a,o;for(let e=0;e<t.length-1;e+=1){let n=t[e];if(/^(cmd|meta|m)$/i.test(n))o=!0;else if(/^a(lt)?$/i.test(n))r=!0;else if(/^(c|ctrl|control)$/i.test(n))i=!0;else if(/^s(hift)?$/i.test(n))a=!0;else if(/^mod$/i.test(n))uT()||vT()?o=!0:i=!0;else throw Error(`Unrecognized modifier name: ${n}`)}return r&&(n=`Alt-${n}`),i&&(n=`Ctrl-${n}`),o&&(n=`Meta-${n}`),a&&(n=`Shift-${n}`),n}var fle=e=>({editor:t,view:n,tr:r,dispatch:i})=>{let a=dle(e).split(/-(?!$)/),o=a.find(e=>![`Alt`,`Ctrl`,`Meta`,`Shift`].includes(e)),s=new KeyboardEvent(`keydown`,{key:o===`Space`?` `:o,altKey:a.includes(`Alt`),ctrlKey:a.includes(`Ctrl`),metaKey:a.includes(`Meta`),shiftKey:a.includes(`Shift`),bubbles:!0,cancelable:!0});return t.captureTransaction(()=>{n.someProp(`handleKeyDown`,e=>e(n,s))})?.steps.forEach(e=>{let t=e.map(r.mapping);t&&i&&r.maybeStep(t)}),!0};function yT(e,t,n={}){let{from:r,to:i,empty:a}=e.selection,o=t?Qw(t,e.schema):null,s=[];e.doc.nodesBetween(r,i,(e,t)=>{if(e.isText)return;let n=Math.max(r,t),a=Math.min(i,t+e.nodeSize);s.push({node:e,from:n,to:a})});let c=i-r,l=s.filter(e=>o?o.name===e.node.type.name:!0).filter(e=>tT(e.node.attrs,n,{strict:!1}));return a?!!l.length:l.reduce((e,t)=>e+t.to-t.from,0)>=c}var ple=(e,t={})=>({state:n,dispatch:r})=>yT(n,Qw(e,n.schema),t)?Jb(n,r):!1,mle=()=>({state:e,dispatch:t})=>$b(e,t),hle=e=>({state:t,dispatch:n})=>yx(Qw(e,t.schema))(t,n),gle=()=>({state:e,dispatch:t})=>Yb(e,t);function bT(e,t){return t.nodes[e]?`node`:t.marks[e]?`mark`:null}function xT(e,t){let n=typeof t==`string`?[t]:t;return Object.keys(e).reduce((t,r)=>(n.includes(r)||(t[r]=e[r]),t),{})}var _le=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=bT(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=Qw(e,r.schema)),s===`mark`&&(o=aT(e,r.schema));let c=!1;return n.selection.ranges.forEach(e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,(e,r)=>{a&&a===e.type&&(c=!0,i&&n.setNodeMarkup(r,void 0,xT(e.attrs,t))),o&&e.marks.length&&e.marks.forEach(a=>{o===a.type&&(c=!0,i&&n.addMark(r,r+e.nodeSize,o.create(xT(a.attrs,t))))})})}),c},vle=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),yle=()=>({tr:e,dispatch:t})=>{if(t){let t=new hb(e.doc);e.setSelection(t)}return!0},ble=()=>({state:e,dispatch:t})=>Bb(e,t),xle=()=>({state:e,dispatch:t})=>Wb(e,t),Sle=()=>({state:e,dispatch:t})=>nx(e,t),Cle=()=>({state:e,dispatch:t})=>cx(e,t),wle=()=>({state:e,dispatch:t})=>sx(e,t);function ST(e,t,n={},r={}){return mT(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var Tle=(e,{errorOnInvalidContent:t,emitUpdate:n=!0,parseOptions:r={}}={})=>({editor:i,tr:a,dispatch:o,commands:s})=>{let{doc:c}=a;if(r.preserveWhitespace!==`full`){let s=ST(e,i.schema,r,{errorOnInvalidContent:t??i.options.enableContentCheck});if(o){let e=hT(s)?s.content:[s];a.replaceWith(0,c.content.size,e).setMeta(`preventUpdate`,!n)}return!0}return o&&a.setMeta(`preventUpdate`,!n),s.insertContentAt({from:0,to:c.content.size},e,{parseOptions:r,errorOnInvalidContent:t??i.options.enableContentCheck})};function CT(e,t){let n=aT(t,e.schema),{from:r,to:i,empty:a}=e.selection,o=[];a?(e.storedMarks&&o.push(...e.storedMarks),o.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,i,e=>{o.push(...e.marks)});let s=o.find(e=>e.type.name===n.name);return s?{...s.attrs}:{}}function wT(e,t){let n=new sb(e);return t.forEach(e=>{e.steps.forEach(e=>{n.step(e)})}),n}function Ele(e,t,n){let r=[];return e.nodesBetween(t.from,t.to,(e,t)=>{n(e)&&r.push({node:e,pos:t})}),r}function Dle(e,t){for(let n=e.depth;n>0;--n){let r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function TT(e){return t=>Dle(t.$from,e)}function q(e,t,n){return e.config[t]===void 0&&e.parent?q(e.parent,t,n):typeof e.config[t]==`function`?e.config[t].bind({...n,parent:e.parent?q(e.parent,t,n):null}):e.config[t]}function ET(e){return e.map(e=>{let t=q(e,`addExtensions`,{name:e.name,options:e.options,storage:e.storage});return t?[e,...ET(t())]:e}).flat(10)}function DT(e,t){let n=Bv.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement(`div`);return r.appendChild(n),r.innerHTML}function OT(e){return typeof e==`function`}function kT(e,t=void 0,...n){return OT(e)?t?e.bind(t)(...n):e(...n):e}function Ole(e={}){return Object.keys(e).length===0&&e.constructor===Object}function AT(e){return{baseExtensions:e.filter(e=>e.type===`extension`),nodeExtensions:e.filter(e=>e.type===`node`),markExtensions:e.filter(e=>e.type===`mark`)}}function jT(e){let t=[],{nodeExtensions:n,markExtensions:r}=AT(e),i=[...n,...r],a={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},o=n.filter(e=>e.name!==`text`).map(e=>e.name),s=r.map(e=>e.name),c=[...o,...s];return e.forEach(e=>{let n=q(e,`addGlobalAttributes`,{name:e.name,options:e.options,storage:e.storage,extensions:i});n&&n().forEach(e=>{let n;n=Array.isArray(e.types)?e.types:e.types===`*`?c:e.types===`nodes`?o:e.types===`marks`?s:[],n.forEach(n=>{Object.entries(e.attributes).forEach(([e,r])=>{t.push({type:n,name:e,attribute:{...a,...r}})})})})}),i.forEach(e=>{let n=q(e,`addAttributes`,{name:e.name,options:e.options,storage:e.storage});if(!n)return;let r=n();Object.entries(r).forEach(([n,r])=>{let i={...a,...r};typeof i?.default==`function`&&(i.default=i.default()),i?.isRequired&&i?.default===void 0&&delete i.default,t.push({type:e.name,name:n,attribute:i})})}),t}function kle(e){let t=[],n=``,r=!1,i=!1,a=0,o=e.length;for(let s=0;s<o;s+=1){let o=e[s];if(o===`'`&&!i){r=!r,n+=o;continue}if(o===`"`&&!r){i=!i,n+=o;continue}if(!r&&!i){if(o===`(`){a+=1,n+=o;continue}if(o===`)`&&a>0){--a,n+=o;continue}if(o===`;`&&a===0){t.push(n),n=``;continue}}n+=o}return n&&t.push(n),t}function MT(e){let t=[],n=kle(e||``),r=n.length;for(let e=0;e<r;e+=1){let r=n[e],i=r.indexOf(`:`);if(i===-1)continue;let a=r.slice(0,i).trim(),o=r.slice(i+1).trim();a&&o&&t.push([a,o])}return t}function NT(...e){return e.filter(e=>!!e).reduce((e,t)=>{let n={...e};return Object.entries(t).forEach(([e,t])=>{if(e===`__proto__`){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:t,writable:!0});return}if(!n[e]){n[e]=t;return}if(e===`class`){let r=t?String(t).split(` `):[],i=n[e]?n[e].split(` `):[],a=r.filter(e=>!i.includes(e));n[e]=[...i,...a].join(` `)}else if(e===`style`){let r=new Map([...MT(n[e]),...MT(t)]);n[e]=Array.from(r.entries()).map(([e,t])=>`${e}: ${t}`).join(`; `)}else n[e]=t}),n},{})}function PT(e,t){return t.filter(t=>t.type===e.type.name).filter(e=>e.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]}).reduce((e,t)=>NT(e,t),{})}function Ale(e){return typeof e==`string`?e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e===`true`?!0:e===`false`?!1:e:e}function FT(e,t){return`style`in e?e:{...e,getAttrs:n=>{let r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;let i=t.reduce((e,t)=>{let r=t.attribute.parseHTML?t.attribute.parseHTML(n):Ale(n.getAttribute(t.name));return r==null?e:{...e,[t.name]:r}},{});return{...r,...i}}}}function IT(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>e===`attrs`&&Ole(t)?!1:t!=null))}function LT(e){var t,n;let r={};return!(!(e==null||(t=e.attribute)==null)&&t.isRequired)&&`default`in(e?.attribute||{})&&(r.default=e.attribute.default),(e==null||(n=e.attribute)==null?void 0:n.validate)!==void 0&&(r.validate=e.attribute.validate),[e.name,r]}function jle(e,t){let n=jT(e),{nodeExtensions:r,markExtensions:i}=AT(e);return new Sv({topNode:r.find(e=>q(e,`topNode`))?.name,nodes:Object.fromEntries(r.map(r=>{let i=n.filter(e=>e.type===r.name),a={name:r.name,options:r.options,storage:r.storage,editor:t},o=IT({...e.reduce((e,t)=>{let n=q(t,`extendNodeSchema`,a);return{...e,...n?n(r):{}}},{}),content:kT(q(r,`content`,a)),marks:kT(q(r,`marks`,a)),group:kT(q(r,`group`,a)),inline:kT(q(r,`inline`,a)),atom:kT(q(r,`atom`,a)),selectable:kT(q(r,`selectable`,a)),draggable:kT(q(r,`draggable`,a)),code:kT(q(r,`code`,a)),whitespace:kT(q(r,`whitespace`,a)),linebreakReplacement:kT(q(r,`linebreakReplacement`,a)),defining:kT(q(r,`defining`,a)),isolating:kT(q(r,`isolating`,a)),attrs:Object.fromEntries(i.map(LT))}),s=kT(q(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>FT(e,i)));let c=q(r,`renderHTML`,a);c&&(o.toDOM=e=>c({node:e,HTMLAttributes:PT(e,i)}));let l=q(r,`renderText`,a);return l&&(o.toText=l),[r.name,o]})),marks:Object.fromEntries(i.map(r=>{let i=n.filter(e=>e.type===r.name),a={name:r.name,options:r.options,storage:r.storage,editor:t},o=IT({...e.reduce((e,t)=>{let n=q(t,`extendMarkSchema`,a);return{...e,...n?n(r):{}}},{}),inclusive:kT(q(r,`inclusive`,a)),excludes:kT(q(r,`excludes`,a)),group:kT(q(r,`group`,a)),spanning:kT(q(r,`spanning`,a)),code:kT(q(r,`code`,a)),attrs:Object.fromEntries(i.map(LT))}),s=kT(q(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>FT(e,i)));let c=q(r,`renderHTML`,a);return c&&(o.toDOM=e=>c({mark:e,HTMLAttributes:PT(e,i)})),[r.name,o]}))})}function Mle(e){let t=e.filter((t,n)=>e.indexOf(t)!==n);return Array.from(new Set(t))}function RT(e){return e.sort((e,t)=>{let n=q(e,`priority`)||100,r=q(t,`priority`)||100;return n>r?-1:+(n<r)})}function zT(e){let t=RT(ET(e)),n=Mle(t.map(e=>e.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(e=>`'${e}'`).join(`, `)}]. This can lead to issues.`),t}function BT(e,t,n){let{from:r,to:i}=t,{blockSeparator:a=` 227 228`,textSerializers:o={}}=n||{},s=``;return e.nodesBetween(r,i,(e,n,c,l)=>{e.isBlock&&n>r&&(s+=a);let u=o?.[e.type.name];if(u)return c&&(s+=u({node:e,pos:n,parent:c,index:l,range:t})),!1;if(e.isText){var d;s+=e==null||(d=e.text)==null?void 0:d.slice(Math.max(r,n)-n,i-n)}}),s}function Nle(e,t){return BT(e,{from:0,to:e.content.size},t)}function VT(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}function Ple(e,t){let n=Qw(t,e.schema),{from:r,to:i}=e.selection,a=[];e.doc.nodesBetween(r,i,e=>{a.push(e)});let o=a.reverse().find(e=>e.type.name===n.name);return o?{...o.attrs}:{}}function HT(e,t){let n=bT(typeof t==`string`?t:t.name,e.schema);return n===`node`?Ple(e,t):n===`mark`?CT(e,t):{}}function Fle(e,t=JSON.stringify){let n={};return e.filter(e=>{let r=t(e);return Object.prototype.hasOwnProperty.call(n,r)?!1:n[r]=!0})}function Ile(e){let t=Fle(e);return t.length===1?t:t.filter((e,n)=>!t.filter((e,t)=>t!==n).some(t=>e.oldRange.from>=t.oldRange.from&&e.oldRange.to<=t.oldRange.to&&e.newRange.from>=t.newRange.from&&e.newRange.to<=t.newRange.to))}function UT(e){let{mapping:t,steps:n}=e,r=[];return t.maps.forEach((e,i)=>{let a=[];if(e.ranges.length)e.forEach((e,t)=>{a.push({from:e,to:t})});else{let{from:e,to:t}=n[i];if(e===void 0||t===void 0)return;a.push({from:e,to:t})}a.forEach(({from:e,to:n})=>{let a=t.slice(i).map(e,-1),o=t.slice(i).map(n),s=t.invert().map(a,-1),c=t.invert().map(o);r.push({oldRange:{from:s,to:c},newRange:{from:a,to:o}})})}),Ile(r)}function WT(e,t,n){let r=[];return e===t?n.resolve(e).marks().forEach(t=>{let i=iT(n.resolve(e),t.type);i&&r.push({mark:t,...i})}):n.nodesBetween(e,t,(e,t)=>{!e||e?.nodeSize===void 0||r.push(...e.marks.map(n=>({from:t,to:t+e.nodeSize,mark:n})))}),r}var Lle=(e,t,n,r=20)=>{let i=e.doc.resolve(n),a=r,o=null;for(;a>0&&o===null;){let e=i.node(a);e?.type.name===t?o=e:--a}return[o,a]},Rle=e=>{let t=e.depth-1;if(t<0)return null;let n=e.index(t);return n===0?null:e.node(t).child(n-1)};function GT(e,t){return t.nodes[e]||t.marks[e]||null}function KT(e,t,n){return Object.fromEntries(Object.entries(n).filter(([n])=>{let r=e.find(e=>e.type===t&&e.name===n);return r?r.attribute.keepOnSplit:!1}))}var zle=(e,t=500)=>{let n=``,r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(e,t,i,a)=>{var o;let s=(o=e.type.spec).toText?.call(o,{node:e,pos:t,parent:i,index:a})||e.textContent||`%leaf%`;n+=e.isAtom&&!e.isText?s:s.slice(0,Math.max(0,r-t))}),n};function qT(e,t,n={}){let{empty:r,ranges:i}=e.selection,a=t?aT(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>a?a.name===e.type.name:!0).find(e=>tT(e.attrs,n,{strict:!1}));let o=0,s=[];if(i.forEach(({$from:t,$to:n})=>{let r=t.pos,i=n.pos;e.doc.nodesBetween(r,i,(e,t)=>{if(a&&e.inlineContent&&!e.type.allowsMarkType(a))return!1;if(!e.isText&&!e.marks.length)return;let n=Math.max(r,t),c=Math.min(i,t+e.nodeSize),l=c-n;o+=l,s.push(...e.marks.map(e=>({mark:e,from:n,to:c})))})}),o===0)return!1;let c=s.filter(e=>a?a.name===e.mark.type.name:!0).filter(e=>tT(e.mark.attrs,n,{strict:!1})).reduce((e,t)=>e+t.to-t.from,0),l=s.filter(e=>a?e.mark.type!==a&&e.mark.type.excludes(a):!0).reduce((e,t)=>e+t.to-t.from,0);return(c>0?c+l:c)>=o}function Ble(e,t,n={}){if(!t)return yT(e,null,n)||qT(e,null,n);let r=bT(t,e.schema);return r===`node`?yT(e,t,n):r===`mark`?qT(e,t,n):!1}var Vle=(e,t)=>{let{$from:n,$to:r,$anchor:i}=e.selection;if(t){let n=TT(e=>e.type.name===t)(e.selection);if(!n)return!1;let r=e.doc.resolve(n.pos+1);return i.pos+1===r.end()}return!(r.parentOffset<r.parent.nodeSize-2||n.pos!==r.pos)},Hle=e=>{let{$from:t,$to:n}=e.selection;return!(t.parentOffset>0||t.pos!==n.pos)};function JT(e,t){return Array.isArray(t)?t.some(t=>(typeof t==`string`?t:t.name)===e.name):t}function YT(e,t){let{nodeExtensions:n}=AT(t),r=n.find(t=>t.name===e);if(!r)return!1;let i=kT(q(r,`group`,{name:r.name,options:r.options,storage:r.storage}));return typeof i==`string`?i.split(` `).includes(`list`):!1}function XT(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){if(n){if(e.type.name===`hardBreak`)return!0;if(e.isText)return!/\S/.test(e.text??``)}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let r=!0;return e.content.forEach(e=>{r!==!1&&(XT(e,{ignoreWhitespace:n,checkChildren:t})||(r=!1))}),r}return!1}function ZT(e){return e instanceof K}var QT=class e{constructor(e){this.position=e}static fromJSON(t){return new e(t.position)}toJSON(){return{position:this.position}}};function Ule(e,t){let n=t.mapping.mapResult(e.position);return{position:new QT(n.pos),mapResult:n}}function Wle(e){return new QT(e)}function Gle(e,t,n){let{selection:r}=t,i=null;if(oT(r)&&(i=r.$cursor),i){let t=e.storedMarks??i.marks();return i.parent.type.allowsMarkType(n)&&(!!n.isInSet(t)||!t.some(e=>e.type.excludes(n)))}let{ranges:a}=r;return a.some(({$from:t,$to:r})=>{let i=t.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(n):!1;return e.doc.nodesBetween(t.pos,r.pos,(e,t,r)=>{if(i)return!1;if(e.isInline){let t=!r||r.type.allowsMarkType(n),a=!!n.isInSet(e.marks)||!e.marks.some(e=>e.type.excludes(n));i=t&&a}return!i}),i})}var Kle=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=n,{empty:o,ranges:s}=a,c=aT(e,r.schema);if(i)if(o){let e=CT(r,c);n.addStoredMark(c.create({...e,...t}))}else s.forEach(e=>{let i=e.$from.pos,a=e.$to.pos;r.doc.nodesBetween(i,a,(e,r)=>{let o=Math.max(r,i),s=Math.min(r+e.nodeSize,a);e.marks.find(e=>e.type===c)?e.marks.forEach(e=>{c===e.type&&n.addMark(o,s,c.create({...e.attrs,...t}))}):n.addMark(o,s,c.create(t))})});return Gle(r,n,c)},qle=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),Jle=(e,t={})=>({state:n,dispatch:r,chain:i})=>{let a=Qw(e,n.schema),o;return n.selection.$anchor.sameParent(n.selection.$head)&&(o=n.selection.$anchor.parent.attrs),a.isTextblock?i().command(({commands:e})=>ux(a,{...o,...t})(n)?!0:e.clearNodes()).command(({state:e})=>ux(a,{...o,...t})(e,r)).run():(console.warn(`[tiptap warn]: Currently "setNode()" only supports text block nodes.`),!1)},Yle=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,r=sT(e,0,n.content.size),i=K.create(n,r);t.setSelection(i)}return!0},Xle=(e,t)=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=r,o,s;return typeof t==`number`?(o=t,s=t):t&&`from`in t&&`to`in t?(o=t.from,s=t.to):(o=a.from,s=a.to),i&&n.doc.nodesBetween(o,s,(t,r)=>{t.isText||n.setNodeMarkup(r,void 0,{...t.attrs,dir:e})}),!0},Zle=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,{from:r,to:i}=typeof e==`number`?{from:e,to:e}:e,a=G.atStart(n).from,o=G.atEnd(n).to,s=sT(r,a,o),c=sT(i,a,o),l=G.create(n,s,c);t.setSelection(l)}return!0},Qle=e=>({state:t,dispatch:n})=>Sx(Qw(e,t.schema))(t,n);function $T(e,t){let n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){let r=n.filter(e=>t?.includes(e.type.name));e.tr.ensureMarks(r)}}var $le=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:i})=>{let{selection:a,doc:o}=t,{$from:s,$to:c}=a,l=i.extensionManager.attributes,u=KT(l,s.node().type.name,s.node().attrs);if(a instanceof K&&a.node.isBlock)return!s.parentOffset||!Ny(o,s.pos)?!1:(r&&(e&&$T(n,i.extensionManager.splittableMarks),t.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;let d=c.parentOffset===c.parent.content.size,f=s.depth===0?void 0:_T(s.node(-1).contentMatchAt(s.indexAfter(-1))),p=d&&f?[{type:f,attrs:u}]:void 0,m=Ny(t.doc,t.mapping.map(s.pos),1,p);if(!p&&!m&&Ny(t.doc,t.mapping.map(s.pos),1,f?[{type:f}]:void 0)&&(m=!0,p=f?[{type:f,attrs:u}]:void 0),r){if(m&&(a instanceof G&&t.deleteSelection(),t.split(t.mapping.map(s.pos),1,p),f&&!d&&!s.parentOffset&&s.parent.type!==f)){let e=t.mapping.map(s.before()),n=t.doc.resolve(e);s.node(-1).canReplaceWith(n.index(),n.index()+1,f)&&t.setNodeMarkup(t.mapping.map(s.before()),f)}e&&$T(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return m},eue=(e,t={})=>({tr:n,state:r,dispatch:i,editor:a})=>{let o=Qw(e,r.schema),{$from:s,$to:c}=r.selection,l=r.selection.node;if(l&&l.isBlock||s.depth<2||!s.sameParent(c))return!1;let u=s.node(-1);if(u.type!==o)return!1;let d=a.extensionManager.attributes;if(s.parent.content.size===0&&s.node(-1).childCount===s.indexAfter(-1)){if(s.depth===2||s.node(-3).type!==o||s.index(-2)!==s.node(-2).childCount-1)return!1;if(i){let e=U.empty,r=s.index(-1)?1:s.index(-2)?2:3;for(let t=s.depth-r;t>=s.depth-3;--t)e=U.from(s.node(t).copy(e));let i=s.indexAfter(-1)<s.node(-2).childCount?1:s.indexAfter(-2)<s.node(-3).childCount?2:3,a={...KT(d,s.node().type.name,s.node().attrs),...t},c=o.contentMatch.defaultType?.createAndFill(a)||void 0;e=e.append(U.from(o.createAndFill(null,c)||void 0));let l=s.before(s.depth-(r-1));n.replace(l,s.after(-i),new W(e,4-r,0));let u=-1;n.doc.nodesBetween(l,n.doc.content.size,(e,t)=>{if(u>-1)return!1;e.isTextblock&&e.content.size===0&&(u=t+1)}),u>-1&&n.setSelection(G.near(n.doc.resolve(u))),n.scrollIntoView()}return!0}let f=c.pos===s.end()?u.contentMatchAt(0).defaultType:null,p={...KT(d,u.type.name,u.attrs),...t},m={...KT(d,s.node().type.name,s.node().attrs),...t};n.delete(s.pos,c.pos);let h=f?[{type:o,attrs:p},{type:f,attrs:m}]:[{type:o,attrs:p}];if(!Ny(n.doc,s.pos,2))return!1;if(i){let{selection:e,storedMarks:t}=r,{splittableMarks:o}=a.extensionManager,c=t||e.$to.parentOffset&&e.$from.marks();if(n.split(s.pos,2,h).scrollIntoView(),!c||!i)return!0;let l=c.filter(e=>o.includes(e.type.name));n.ensureMarks(l)}return!0};function eE(e){return!e||e===`1`?null:e}function tE(e,t){return eE(e)===eE(t)}var nE=(e,t)=>{let n=TT(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;let i=e.doc.nodeAt(r);return!(n.node.type===i?.type&&Fy(e.doc,n.pos))||!tE(n.node.attrs.type,i?.attrs.type)||e.join(n.pos),!0},rE=(e,t)=>{let n=TT(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;let i=e.doc.nodeAt(r);return!(n.node.type===i?.type&&Fy(e.doc,r))||!tE(n.node.attrs.type,i?.attrs.type)||e.join(r),!0};function tue(e){let t=e.doc,n=t.firstChild;if(!n)return null;let r=t.resolve(1),i=t.resolve(n.nodeSize-1);return G.between(r,i)}var nue=(e,t,n,r={})=>({editor:i,tr:a,state:o,dispatch:s,chain:c,commands:l,can:u})=>{let{extensions:d,splittableMarks:f}=i.extensionManager,p=Qw(e,o.schema),m=Qw(t,o.schema),{selection:h,storedMarks:g}=o,{$from:_,$to:v}=h,y=_.blockRange(v),b=g||h.$to.parentOffset&&h.$from.marks();if(!y)return!1;let x=TT(e=>YT(e.type.name,d))(h),S=h.from===0&&h.to===o.doc.content.size,C=o.doc.content.content,w=C.length===1?C[0]:null,T=S&&w&&YT(w.type.name,d)?{node:w,pos:0,depth:0}:null,E=x??T,D=!!x&&y.depth>=1&&y.depth-x.depth<=1,O=!!T;if((D||O)&&E){if(E.node.type===p)return S&&O?c().command(({tr:e,dispatch:t})=>{let n=tue(e);return n?(e.setSelection(n),t&&t(e),!0):!1}).liftListItem(m).run():l.liftListItem(m);if(YT(E.node.type.name,d)&&p.validContent(E.node.content))return c().command(()=>(a.setNodeMarkup(E.pos,p),!0)).command(()=>nE(a,p)).command(()=>rE(a,p)).run()}return!n||!b||!s?c().command(()=>u().wrapInList(p,r)?!0:l.clearNodes()).wrapInList(p,r).command(()=>nE(a,p)).command(()=>rE(a,p)).run():c().command(()=>{let e=u().wrapInList(p,r),t=b.filter(e=>f.includes(e.type.name));return a.ensureMarks(t),e?!0:l.clearNodes()}).wrapInList(p,r).command(()=>nE(a,p)).command(()=>rE(a,p)).run()},rue=(e,t={},n={})=>({state:r,commands:i})=>{let{extendEmptyMarkRange:a=!1}=n,o=aT(e,r.schema);return qT(r,o,t)?i.unsetMark(o,{extendEmptyMarkRange:a}):i.setMark(o,t)},iue=(e,t,n={})=>({state:r,commands:i})=>{let a=Qw(e,r.schema),o=Qw(t,r.schema),s=yT(r,a,n),c;return r.selection.$anchor.sameParent(r.selection.$head)&&(c=r.selection.$anchor.parent.attrs),s?i.setNode(o,c):i.setNode(a,{...c,...n})},aue=(e,t={})=>({state:n,commands:r})=>{let i=Qw(e,n.schema);return yT(n,i,t)?r.lift(i):r.wrapIn(i,t)},oue=()=>({state:e,dispatch:t})=>{let n=e.plugins;for(let r=0;r<n.length;r+=1){let i=n[r],a;if(i.spec.isInputRules&&(a=i.getState(e))){if(t){let t=e.tr,n=a.transform;
228for(let e=n.steps.length-1;e>=0;--e)t.step(n.steps[e].invert(n.docs[e]));if(a.text){let n=t.doc.resolve(a.from).marks();t.replaceWith(a.from,a.to,e.schema.text(a.text,n))}else t.delete(a.from,a.to)}return!0}}return!1},sue=(e={})=>({tr:t,dispatch:n,editor:r})=>{let{ignoreClearable:i=!1}=e,{selection:a}=t,{empty:o,ranges:s}=a;if(o)return!0;let{nonClearableMarks:c}=r.extensionManager;if(n){let e=Object.values(r.schema.marks).filter(e=>i||!c.includes(e.name));s.forEach(n=>{for(let r of e)t.removeMark(n.$from.pos,n.$to.pos,r)})}return!0},cue=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{extendEmptyMarkRange:a=!1}=t,{selection:o}=n,s=aT(e,r.schema),{$from:c,empty:l,ranges:u}=o;if(!i)return!0;if(l&&a){let{from:e,to:t}=o,r=iT(c,s,c.marks().find(e=>e.type===s)?.attrs);r&&(e=r.from,t=r.to),n.removeMark(e,t,s)}else u.forEach(e=>{n.removeMark(e.$from.pos,e.$to.pos,s)});return n.removeStoredMark(s),!0},lue=e=>({tr:t,state:n,dispatch:r})=>{let{selection:i}=n,a,o;return typeof e==`number`?(a=e,o=e):e&&`from`in e&&`to`in e?(a=e.from,o=e.to):(a=i.from,o=i.to),r&&t.doc.nodesBetween(a,o,(e,n)=>{if(e.isText)return;let r={...e.attrs};delete r.dir,t.setNodeMarkup(n,void 0,r)}),!0},uue=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=bT(typeof e==`string`?e:e.name,r.schema);if(!s)return!1;s===`node`&&(a=Qw(e,r.schema)),s===`mark`&&(o=aT(e,r.schema));let c=!1;return n.selection.ranges.forEach(e=>{let s=e.$from.pos,l=e.$to.pos,u,d,f,p;n.selection.empty?r.doc.nodesBetween(s,l,(e,t)=>{a&&a===e.type&&(c=!0,f=Math.max(t,s),p=Math.min(t+e.nodeSize,l),u=t,d=e)}):r.doc.nodesBetween(s,l,(e,r)=>{r<s&&a&&a===e.type&&(c=!0,f=Math.max(r,s),p=Math.min(r+e.nodeSize,l),u=r,d=e),r>=s&&r<=l&&(a&&a===e.type&&(c=!0,i&&n.setNodeMarkup(r,void 0,{...e.attrs,...t})),o&&e.marks.length&&e.marks.forEach(a=>{if(o===a.type&&(c=!0,i)){let i=Math.max(r,s),c=Math.min(r+e.nodeSize,l);n.addMark(i,c,o.create({...a.attrs,...t}))}}))}),d&&(u!==void 0&&i&&n.setNodeMarkup(u,void 0,{...d.attrs,...t}),o&&d.marks.length&&d.marks.forEach(e=>{o===e.type&&i&&n.addMark(f,p,o.create({...e.attrs,...t}))}))}),c},iE=new Mb(`__tiptap_decorations__`),due=e=>({tr:t,dispatch:n})=>(n&&t.setMeta(iE,{type:`force`,name:e}),!0),fue=(e,t={})=>({state:n,dispatch:r})=>lx(Qw(e,n.schema),t)(n,r),pue=(e,t={})=>({state:n,dispatch:r})=>gx(Qw(e,n.schema),t)(n,r),mue=S_({blur:()=>Fce,clearContent:()=>Ice,clearNodes:()=>Lce,command:()=>Rce,createParagraphNear:()=>zce,cut:()=>Bce,deleteCurrentNode:()=>Vce,deleteNode:()=>Hce,deleteRange:()=>Uce,deleteSelection:()=>Kce,enter:()=>qce,exitCode:()=>Jce,extendMarkRange:()=>Yce,first:()=>Xce,focus:()=>Qce,forEach:()=>$ce,insertContent:()=>ele,insertContentAt:()=>tle,insertDefaultBlock:()=>nle,joinBackward:()=>ale,joinDown:()=>ile,joinForward:()=>ole,joinItemBackward:()=>sle,joinItemForward:()=>cle,joinTextblockBackward:()=>lle,joinTextblockForward:()=>ule,joinUp:()=>rle,keyboardShortcut:()=>fle,lift:()=>ple,liftEmptyBlock:()=>mle,liftListItem:()=>hle,newlineInCode:()=>gle,resetAttributes:()=>_le,scrollIntoView:()=>vle,selectAll:()=>yle,selectNodeBackward:()=>ble,selectNodeForward:()=>xle,selectParentNode:()=>Sle,selectTextblockEnd:()=>Cle,selectTextblockStart:()=>wle,setContent:()=>Tle,setMark:()=>Kle,setMeta:()=>qle,setNode:()=>Jle,setNodeSelection:()=>Yle,setTextDirection:()=>Xle,setTextSelection:()=>Zle,sinkListItem:()=>Qle,splitBlock:()=>$le,splitListItem:()=>eue,toggleList:()=>nue,toggleMark:()=>rue,toggleNode:()=>iue,toggleWrap:()=>aue,undoInputRule:()=>oue,unsetAllMarks:()=>sue,unsetMark:()=>cue,unsetTextDirection:()=>lue,updateAttributes:()=>uue,updateDecorations:()=>due,wrapIn:()=>fue,wrapInList:()=>pue}),aE=new WeakMap;function hue(e,t){aE.set(e,(aE.get(e)??0)+1);try{return t()}finally{let t=(aE.get(e)??1)-1;t>0?aE.set(e,t):aE.delete(e)}}function gue(e){return aE.has(e)}var _ue=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){let n=this.callbacks[e];return n&&n.forEach(e=>e.apply(this,t)),this}off(e,t){let n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(e=>e!==t):delete this.callbacks[e]),this}once(e,t){let n=(...r)=>{this.off(e,n),t.apply(this,r)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}},oE=typeof process<`u`&&!1;function vue(e){return e.kind===`widget`}function sE(e,t){let n=[],r=new Set;for(let i of e)i.kind===`widget`&&vue(i)&&r.add(i.key),n.push(i.toPMDecoration(t));return{decorations:n,widgetKeys:r}}
228function yue(e,t,n){let{decorations:r,widgetKeys:i}=sE(t,n);return{set:Sw.create(e,r),widgetKeys:i}}function cE({position:e,from:t,to:n,docSize:r}){return e<t?!1:e<n?!0:e===n&&n===r}function bue({decorations:e,from:t,to:n,docSize:r,extensionName:i,warnedExtensions:a}){return e.filter(e=>cE({position:e.anchor,from:t,to:n,docSize:r})?!0:(e.anchor===n||a.has(i)||(a.add(i),console.warn(`[tiptap warn]: Extension "${i}" returned a decoration outside the requested range [${t}, ${n}). It was ignored.`)),!1))}function lE(e){let t=e.spec?.key;return typeof t==`string`?t:void 0}function xue(e){let t=new Map,n=new Map;for(let r of e.find()){let e=lE(r);if(!e)continue;let i=r.spec.extensionName??`unknown`,a=t.get(e)??new Set;a.add(i),t.set(e,a),n.set(e,(n.get(e)??0)+1)}return Array.from(t,([e,t])=>({key:e,extensions:t})).filter(({key:e})=>(n.get(e)??0)>1)}function uE(e){return e.jsonID===`attr`}function Sue(e){let t=!1;if(e.getMap().forEach(()=>{t=!0}),t||uE(e))return!0;let n=e;return typeof n.from==`number`&&typeof n.to==`number`}function Cue(e,t){let n=null,r=0,i=0;for(let a=0;a<e.childCount&&!(i>t.to);a+=1){let o=i+e.child(a).nodeSize;o>=t.from&&(n===null&&(n=i),r=o),i=o}return n===null?null:{from:n,to:r}}function wue(e,t){if(e.steps.some(e=>!Sue(e)))return{type:`full`};let n=UT(e).map(({newRange:e})=>e);e.steps.forEach((t,r)=>{if(!uE(t))return;let i=e.mapping.slice(r);n.push({from:i.map(t.pos,-1),to:i.map(t.pos+1)})});let r=[];for(let e of n){let n=Cue(t,e);n&&r.push(n)}r.sort((e,t)=>e.from-t.from);let i=[];for(let e of r){let t=i[i.length-1];t&&e.from<=t.to?t.to=Math.max(t.to,e.to):i.push({...e})}return{type:`ranges`,ranges:i}}function dE(e,t,n,r){return e.map(t,n,{onRemove:e=>{let t=e?.key;typeof t==`string`&&r.delete(t)}})}function Tue(e,t,n){let r=t.decorationSetsByExtension[e]??Sw.empty,i=new Set(t.widgetKeysByExtension[e]??[]);return{set:dE(r,n.mapping,n.doc,i),widgetKeys:i}}function fE(e,t){let n=Object.values(t).flatMap(e=>e.find());return Sw.create(e,n)}function pE(e){let t=new Set;for(let n of Object.values(e))for(let e of n)t.add(e);return t}function Eue(e,t){switch(t.update??`document`){case`document`:if(t.createInRange)throw Error(`[tiptap error]: Extension "${e}" provides createInRange() but does not use the "changedRanges" decoration update strategy.`);return;case`changedRanges`:if(!t.createInRange)throw Error(`[tiptap error]: Extension "${e}" uses the "changedRanges" decoration update strategy but does not provide createInRange().`);return;case`manual`:if(t.createInRange)throw Error(`[tiptap error]: Extension "${e}" uses the "manual" decoration update strategy, which is not compatible with createInRange(). createInRange() requires the "changedRanges" strategy.`);if(t.shouldUpdate)throw Error(`[tiptap error]: Extension "${e}" cannot combine the "manual" decoration update strategy with shouldUpdate().`);return;default:throw Error(`[tiptap error]: Extension "${e}" uses an unknown decoration update strategy. Expected "document", "changedRanges", or "manual".`)}}function Due(e,t,n){return n?!0:e.update===`manual`?!1:e.shouldUpdate?e.shouldUpdate(t):t.tr.docChanged}var Oue=new Set,kue=class{constructor(e){this.warnedWidgetKeys=new Set,this.warnedOutOfRangeExtensions=new Set,this.handleBeforeTransaction=({nextState:e})=>{let t=iE.getState(e);t&&this.warnDuplicateWidgetKeys(t)},this.editor=e.editor,this.entries=this.resolveEntries(e.entries),this.entries.forEach(({name:e,spec:t})=>Eue(e,t)),this.plugin=this.entries.length>0?this.createPlugin():null,this.editor.on(`beforeTransaction`,this.handleBeforeTransaction)}destroy(){this.editor.off(`beforeTransaction`,this.handleBeforeTransaction)}liveWidgetKeys(){return iE.getState(this.editor.state)?.widgetKeys??Oue}get mountedView(){return this.editor.isDestroyed?null:this.editor.view}resolveEntries(e){let t=[];for(let{name:n,addDecorations:r}of e){let e=r();e&&t.push({name:n,spec:e})}return t}createPlugin(){let{editor:e,entries:t}=this;return new kb({key:iE,state:{init:(e,n)=>{let r={},i={};for(let{name:e,spec:a}of t){let{set:t,widgetKeys:o}=this.buildFullSet(e,a,n);r[e]=t,i[e]=o}let a={decorationSetsByExtension:r,widgetKeysByExtension:i,mergedDecorationSet:this.buildMergedSet(n.doc,r),widgetKeys:pE(i)};return this.warnDuplicateWidgetKeys(a),a},apply:(n,r,i,a)=>{let o=n.getMeta(iE),s=o?.type===`force`&&!o.name,c=o?.type===`force`?o.name:void 0,l={},u={},d=new Set;return hue(e,()=>{for(let{name:o,spec:f}
228of t){let t=s||c===o;if(!Due(f,{editor:e,tr:n,oldState:i,newState:a},t)){let e=Tue(o,r,n);l[o]=e.set,u[o]=e.widgetKeys}else if(f.update===`changedRanges`&&n.docChanged&&!t){let e=this.applyChangedRangesRecompute(o,f,r,n,a);l[o]=e.set,u[o]=e.widgetKeys,d.add(o)}else{let{set:e,widgetKeys:t}=this.buildFullSet(o,f,a);l[o]=e,u[o]=t,d.add(o)}}}),d.size===0&&!n.docChanged?r:{decorationSetsByExtension:l,widgetKeysByExtension:u,mergedDecorationSet:this.mergeAfterApply({entries:t,previous:r,tr:n,decorationSetsByExtension:l,recomputedNames:d}),widgetKeys:pE(u)}}},props:{decorations(e){return iE.getState(e)?.mergedDecorationSet??Sw.empty}}})}applyChangedRangesRecompute(e,t,n,r,i){let a=wue(r,i.doc);return a.type===`full`?this.buildFullSet(e,t,i):this.rebuildRanges(e,t,n,r,i,a.ranges)}rebuildRanges(e,t,n,r,i,a){let o=n.decorationSetsByExtension[e]??Sw.empty,s=new Set(n.widgetKeysByExtension[e]??[]),c=dE(o,r.mapping,r.doc,s),l=i.doc.content.size;for(let{from:n,to:r}of a){let a=c.find(n,r).filter(e=>cE({position:e.from,from:n,to:r,docSize:l}));for(let e of a){let t=lE(e);t&&s.delete(t)}c=c.remove(a);let{decorations:o,widgetKeys:u}=sE(bue({decorations:this.runCreate(e,`createInRange`,()=>t.createInRange({editor:this.editor,state:i,view:this.mountedView,from:n,to:r})),from:n,to:r,docSize:l,extensionName:e,warnedExtensions:this.warnedOutOfRangeExtensions}),e);c=c.add(i.doc,o);for(let e of u)s.add(e)}return{set:c,widgetKeys:s}}buildFullSet(e,t,n){let r=this.runCreate(e,`create`,()=>t.create({editor:this.editor,state:n,view:this.mountedView}));return yue(n.doc,r,e)}runCreate(e,t,n){try{return n()}catch(n){return console.error(`[tiptap error]: Extension "${e}" threw in \`addDecorations().${t}()\`. Its decorations were dropped for this update.`,n),[]}}warnDuplicateWidgetKeys(e){if(!oE)return;if(e.widgetKeys.size===0){this.warnedWidgetKeys.clear();return}let t=xue(e.mergedDecorationSet),n=new Set(t.map(({key:e})=>e));for(let{key:e,extensions:n}of t){if(this.warnedWidgetKeys.has(e))continue;let t=Array.from(n).map(e=>`"${e}"`).join(`, `);console.warn(`[tiptap warn]: Duplicate widget decoration key "${e}" in extension${n.size===1?``:`s`} ${t}. Widget decoration keys must be globally unique, otherwise ProseMirror misplaces the widget DOM. Use a stable, unique key (e.g. \`comment-\${id}\`).`)}this.warnedWidgetKeys=n}buildMergedSet(e,t){let n=Object.keys(t);return n.length===1?t[n[0]]:fE(e,t)}mergeAfterApply({entries:e,previous:t,tr:n,decorationSetsByExtension:r,recomputedNames:i}){return e.length===1?r[e[0].name]:i.size===0?t.mergedDecorationSet.map(n.mapping,n.doc):fE(n.doc,r)}};function Aue(e,t){let{selection:n}=e,{$from:r}=n;if(n instanceof K){let e=r.index();return r.parent.canReplaceWith(e,e+1,t)}let i=r.depth;for(;i>=0;){let e=r.index(i);if(r.node(i).contentMatchAt(e).matchType(t))return!0;--i}return!1}function jue(e,t,n){let r=document.querySelector(`style[data-tiptap-style${n?`-${n}`:``}]`);if(r!==null)return r;let i=document.createElement(`style`);return t&&i.setAttribute(`nonce`,t),i.setAttribute(`data-tiptap-style${n?`-${n}`:``}`,``),i.innerHTML=e,document.getElementsByTagName(`head`)[0].appendChild(i),i}function Mue(e){return typeof e==`number`}function Nue(e){return Object.prototype.toString.call(e).slice(8,-1)}function mE(e){return Nue(e)===`Object`?e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype:!1}function hE(e,t,n){let r=e.split(` 229`),i=[],a=``,o=0,s=t.baseIndentSize||2;for(;o<r.length;){let e=r[o],u=e.match(t.itemPattern);if(!u){if(i.length>0)break;if(e.trim()===``){o+=1,a=`${a}${e}\n`;continue}else return}let d=t.extractItemData(u),{indentLevel:f,mainContent:p}=d;a=`${a}${e}\n`;let m=[p];for(o+=1;o<r.length;){var c;let e=r[o];if(e.trim()===``){var l;let t=r.slice(o+1).findIndex(e=>e.trim()!==``);if(t===-1)break;if((((l=r[o+1+t].match(/^(\s*)/))==null||(l=l[1])==null?void 0:l.length)||0)>f){m.push(e),a=`${a}${e}\n`,o+=1;continue}else break}if((((c=e.match(/^(\s*)/))==null||(c=c[1])==null?void 0:c.length)||0)>f)m.push(e),a=`${a}${e}\n`,o+=1;else break}let h,g=m.slice(1);if(g.length>0){let e=g.map(e=>e.slice(f+s)).join(` 230`);e.trim()&&(h=t.customNestedParser?t.customNestedParser(e):n.blockTokens(e))}let _=t.createToken(d,h);i.push(_)}if(i.length!==0)return{items:i,raw:a}}var gE=4;function _E(e){let t=0;for(let n of e)t=n===` `?t+gE-t%gE:t+1;return t}function vE(e,t,n,r,i){if(!e||!Array.isArray(e.content))return``;let a=typeof n==`function`?n(r):n,[o,...s]=e.content,c=`${a}${t.renderChildren([o])}`;return s&&s.length>
vendor: 15,834 bytes, lines 230-235
2300&&s.forEach((e,n)=>{let r=t.renderChild?.call(t,e,n+1)??t.renderChildren([e]);if(r!=null){let n=e=>{if(!i?.alignNestedToPrefix)return t.indent(e);let n=t.indent(``),r=_E(a);return(_E(n)>=r?n:` `.repeat(r))+e},o=r.split(` 231`).map(e=>n(e||``)).join(` 232`);c+=e.type===`paragraph`?`\n\n${o}`:`\n${o}`}}),c}function yE(e,t){let n={...e};return mE(e)&&mE(t)&&Object.keys(t).forEach(r=>{mE(t[r])&&mE(e[r])?n[r]=yE(e[r],t[r]):n[r]=t[r]}),n}function Pue(e,t,n={}){let{state:r}=t,{doc:i,tr:a}=r,o=e;i.descendants((t,r)=>{let i=a.mapping.map(r),s=a.mapping.map(r)+t.nodeSize,c=null;if(t.marks.forEach(e=>{if(e!==o)return!1;c=e}),!c)return;let l=!1;if(Object.keys(n).forEach(e=>{n[e]!==c.attrs[e]&&(l=!0)}),l){let t=e.type.create({...e.attrs,...n});a.removeMark(i,s,e.type),a.addMark(i,s,t)}}),a.docChanged&&t.view.dispatch(a)}var bE=class{constructor(e){this.find=e.find,this.handler=e.handler,this.undoable=e.undoable??!0}},Fue=(e,t)=>{if(eT(t))return t.exec(e);let n=t(e);if(!n)return null;let r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn(`[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".`),r.push(n.replaceWith)),r};function xE(e){let{editor:t,from:n,to:r,text:i,rules:a,plugin:o}=e,{view:s}=t;if(s.composing)return!1;let c=s.state.doc.resolve(n);if(c.parent.type.spec.code||(c.nodeBefore||c.nodeAfter)?.marks.find(e=>e.type.spec.code))return!1;let l=!1,u=zle(c)+i;return a.forEach(e=>{if(l)return;let a=Fue(u,e.find);if(!a)return;let d=a[0].length-i.length;if(d>0){let e=c.parentOffset-d;if(e<0||c.parent.textBetween(e,c.parentOffset)!==a[0].slice(0,d))return}let f=s.state.tr,p=Xw({state:s.state,transaction:f}),m={from:n-(a[0].length-i.length),to:r},{commands:h,chain:g,can:_}=new Zw({editor:t,state:p});e.handler({state:p,range:m,match:a,commands:h,chain:g,can:_})===null||!f.steps.length||(e.undoable&&f.setMeta(o,{transform:f,from:n,to:r,text:i}),s.dispatch(f),l=!0)}),l}function Iue(e){let{editor:t,rules:n}=e,r=new kb({state:{init(){return null},apply(e,i,a){let o=e.getMeta(r);if(o)return o;let s=e.getMeta(`applyInputRules`);return s&&setTimeout(()=>{let{text:e}=s;e=typeof e==`string`?e:DT(U.from(e),a.schema);let{from:i}=s;xE({editor:t,from:i,to:i+e.length,text:e,rules:n,plugin:r})}),e.selectionSet||e.docChanged?null:i}},props:{handleTextInput(e,i,a,o){return xE({editor:t,from:i,to:a,text:o,rules:n,plugin:r})},handleDOMEvents:{compositionend:e=>(setTimeout(()=>{let{$cursor:i}=e.state.selection;i&&xE({editor:t,from:i.pos,to:i.pos,text:``,rules:n,plugin:r})}),!1)},handleKeyDown(e,i){if(i.key!==`Enter`)return!1;let{$cursor:a}=e.state.selection;return a?xE({editor:t,from:a.pos,to:a.pos,text:` 233`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}var SE=class{constructor(e={}){this.type=`extendable`,this.parent=null,this.child=null,this.name=``,this.config={name:this.name},this.config={...this.config,...e},this.name=this.config.name}get options(){return{...kT(q(this,`addOptions`,{name:this.name}))}}get storage(){return{...kT(q(this,`addStorage`,{name:this.name,options:this.options}))}}configure(e={}){let t=this.extend({...this.config,addOptions:()=>yE(this.options,e)});return t.name=this.name,t.parent=this.parent,this.child=null,t}extend(e={}){let t=new this.constructor({...this.config,...e});return t.parent=this,this.child=t,t.name=`name`in e?e.name:t.parent.name,t}},CE=class e extends SE{constructor(...e){super(...e),this.type=`mark`}static create(t={}){return new e(typeof t==`function`?t():t)}static handleExit({editor:e,mark:t}){let{tr:n}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){let i=r.marks();if(!i.find(e=>e?.type.name===t.name))return!1;let a=i.find(e=>e?.type.name===t.name);return a&&n.removeStoredMark(a),n.insertText(` `,r.pos),e.view.dispatch(n),!0}return!1}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}},wE=class{constructor(e){this.find=e.find,this.handler=e.handler}},Lue=(e,t,n)=>{if(eT(t))return[...e.matchAll(t)];let r=t(e,n);return r?r.map(t=>{let n=[t.text];return n.index=t.index,n.input=e,n.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn(`[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".`),n.push(t.replaceWith)),n}):[]};function Rue(e){let{editor:t,state:n,from:r,to:i,rule:a,pasteEvent:o,dropEvent:s}=e,{commands:c,chain:l,can:u}=new Zw({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,i,(e,t)=>{var f;if(!((f=e.type)==null||(f=f.spec)==null)&&f.code||!(e.isText||e.isTextblock||e.isInline))return;let p=e.content?.size??e.nodeSize??0,m=Math.max(r,t),h=Math.min(i,t+p);m>=h||Lue(e.isText?e.text||``:e.textBetween(m-t,h-t,void 0,``),a.find,o).forEach(e=>{if(e.index===void 0)return;let t=m+e.index+1,r=t+e[0].length,i={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},f=a.handler({state:n,range:i,match:e,commands:c,chain:l,can:u,pasteEvent:o,dropEvent:s});d.push(f)})}),d.every(e=>e!==null)}var TE=null,zue=e=>{var t;let n=new ClipboardEvent(`paste`,{clipboardData:new DataTransfer});return(t=n.clipboardData)==null||t.setData(`text/html`,e),n};function Bue(e){let{editor:t,rules:n}=e,r=null,i=!1,a=!1,o=typeof ClipboardEvent<`u`?new ClipboardEvent(`paste`):null,s;try{s=typeof DragEvent<`u`?new DragEvent(`drop`):null}catch{s=null}let c=({state:e,from:n,to:r,rule:i,pasteEvt:a})=>{let c=e.tr;if(!(!Rue({editor:t,state:Xw({state:e,transaction:c}),from:Math.max(n-1,0),to:r.b-1,rule:i,pasteEvent:a,dropEvent:s})||!c.steps.length)){try{s=typeof DragEvent<`u`?new DragEvent(`drop`):null}catch{s=null}return o=typeof ClipboardEvent<`u`?new ClipboardEvent(`paste`):null,c}};return n.map(e=>new kb({view(e){let n=n=>{r=e.dom.parentElement?.contains(n.target)?e.dom.parentElement:null,r&&(TE=t)},i=()=>{TE&&=null};return window.addEventListener(`dragstart`,n),window.addEventListener(`dragend`,i),{destroy(){window.removeEventListener(`dragstart`,n),window.removeEventListener(`dragend`,i)}}},props:{handleDOMEvents:{drop:(e,t)=>{if(a=r===e.dom.parentElement,s=t,!a){let e=TE;e?.isEditable&&setTimeout(()=>{let t=e.state.selection;t&&e.commands.deleteRange({from:t.from,to:t.to})},10)}return!1},paste:(e,t)=>{let n=t.clipboardData?.getData(`text/html`);return o=t,i=!!n?.includes(`data-pm-slice`),!1}}},appendTransaction:(t,n,r)=>{let s=t[0],l=s.getMeta(`uiEvent`)===`paste`&&!i,u=s.getMeta(`uiEvent`)===`drop`&&!a,d=s.getMeta(`applyPasteRules`),f=!!d;if(!l&&!u&&!f)return;if(f){let{text:t}=d;t=typeof t==`string`?t:DT(U.from(t),r.schema);let{from:n}=d,i=n+t.length,a=zue(t);return c({rule:e,state:r,from:n,to:{b:i},pasteEvt:a})}let p=n.doc.content.findDiffStart(r.doc.content),m=n.doc.content.findDiffEnd(r.doc.content);if(!(!Mue(p)||!m||p===m.b))return c({rule:e,state:r,from:p,to:m,pasteEvt:o})}}))}var EE=class{constructor(e,t){this.splittableMarks=[],this.nonClearableMarks=[],this.decorationManager=null,this.editor=t,this.baseExtensions=e,this.extensions=zT(e),this.schema=jle(this.extensions,t),this.setupExtensions()}get commands(){return this.extensions.reduce((e,t)=>{let n=q(t,`addCommands`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:this.editor,type:GT(t.name,this.schema)});return n?{...e,...n()}:e},{})}get plugins(){let{editor:e}=this,t=RT([...this.extensions].reverse()).flatMap(t=>{let n={name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:GT(t.name,this.schema)},r=[],i=q(t,`addKeyboardShortcuts`,n),a={};if(t.type===`mark`&&q(t,`exitable`,n)&&(a.ArrowRight=()=>CE.handleExit({editor:e,mark:t})),i){let t=Object.fromEntries(Object.entries(i()).map(([t,n])=>[t,()=>n({editor:e})]));a={...a,...t}}let o=Pce(a);r.push(o);let s=q(t,`addInputRules`,n);if(JT(t,e.options.enableInputRules)&&s){let t=s();if(t&&t.length){let n=Iue({editor:e,rules:t}),i=Array.isArray(n)?n:[n];r.push(...i)}}let c=q(t,`addPasteRules`,n);if(JT(t,e.options.enablePasteRules)&&c){let t=c();if(t&&t.length){let n=Bue({editor:e,rules:t});r.push(...n)}}let l=q(t,`addProseMirrorPlugins`,n);if(l){let e=l();r.push(...e)}return r}),n=this.createDecorationPlugin();return n&&t.push(n),t}createDecorationPlugin(){var e;let{editor:t}=this;(e=this.decorationManager)==null||e.destroy();let n=[];return this.extensions.forEach(e=>{let r=q(e,`addDecorations`,{name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:t,type:GT(e.name,this.schema)});r&&n.push({name:e.name,addDecorations:r})}),this.decorationManager=new kue({editor:t,entries:n}),this.decorationManager.plugin}get attributes(){return jT(this.extensions)}get nodeViews(){let{editor:e}=this,{nodeExtensions:t}=AT(this.extensions);return Object.fromEntries(t.filter(e=>!!q(e,`addNodeView`)).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r=q(t,`addNodeView`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:Qw(t.name,this.schema)});if(!r)return[];let i=r();return i?[t.name,(r,a,o,s,c)=>i({node:r,view:a,getPos:o,decorations:s,innerDecorations:c,editor:e,extension:t,HTMLAttributes:PT(r,n)})]:[]}))}dispatchTransaction(e){let{editor:t}=this;return RT([...this.extensions].reverse()).reduceRight((e,n)=>{let r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:GT(n.name,this.schema)},i=q(n,`dispatchTransaction`,r);return i?t=>{i.call(r,{transaction:t,next:e})}:e},e)}transformPastedHTML(e){let{editor:t}=this;return RT([...this.extensions]).reduce((e,n)=>{let r={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:GT(n.name,this.schema)},i=q(n,`transformPastedHTML`,r);return i?(t,n)=>{let a=e(t,n);return i.call(r,a)}:e},e||(e=>e))}get markViews(){let{editor:e}=this,{markExtensions:t}=AT(this.extensions);return Object.fromEntries(t.filter(e=>!!q(e,`addMarkView`)).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r=q(t,`addMarkView`,{name:t.name,options:t.options,storage:this.editor.extensionStorage[t.name],editor:e,type:aT(t.name,this.schema)});return r?[t.name,(i,a,o)=>{let s=PT(i,n);return r()({mark:i,view:a,inline:o,editor:e,extension:t,HTMLAttributes:s,updateAttributes:t=>{Pue(i,e,t)}})}]:[]}))}destroy(){var e;(e=this.decorationManager)==null||e.destroy(),this.extensions.forEach(e=>{let t=e;for(;t.parent;){let e=t.parent;e.child===t&&(e.child=null),t=e}}),this.extensions=[],this.baseExtensions=[],this.decorationManager=null,this.schema=null,this.editor=null}setupExtensions(){let e=this.extensions;this.editor.extensionStorage=Object.fromEntries(e.map(e=>[e.name,e.storage])),e.forEach(e=>{let t={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:GT(e.name,this.schema)};e.type===`mark`&&((kT(q(e,`keepOnSplit`,t))??!0)&&this.splittableMarks.push(e.name),(kT(q(e,`clearable`,t))??!0)||this.nonClearableMarks.push(e.name));let n=q(e,`onBeforeCreate`,t),r=q(e,`onCreate`,t),i=q(e,`onUpdate`,t),a=q(e,`onSelectionUpdate`,t),o=q(e,`onTransaction`,t),s=q(e,`onFocus`,t),c=q(e,`onBlur`,t),l=q(e,`onDestroy`,t);n&&this.editor.on(`beforeCreate`,n),r&&this.editor.on(`create`,r),i&&this.editor.on(`update`,i),a&&this.editor.on(`selectionUpdate`,a),o&&this.editor.on(`transaction`,o),s&&this.editor.on(`focus`,s),c&&this.editor.on(`blur`,c),l&&this.editor.on(`destroy`,l)})}};EE.resolve=zT,EE.sort=RT,EE.flatten=ET;var DE=class e extends SE{constructor(...e){super(...e),this.type=`extension`}static create(t={}){return new e(typeof t==`function`?t():t)}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}},Vue=DE.create({name:`clipboardTextSerializer`,addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new kb({key:new Mb(`clipboardTextSerializer`),props:{clipboardTextSerializer:()=>{let{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,a=VT(n),{blockSeparator:o}=this.options,s={...o===void 0?{}:{blockSeparator:o},textSerializers:a};return[...i.ranges].sort((e,t)=>e.$from.pos-t.$from.pos).map(({$from:e,$to:t})=>BT(r,{from:e.pos,to:t.pos},s)).join(o??` 234 235`)}}})]}}),Hue=DE.create({name:`commands`,addCommands(){return{...mue}}}),Uue=DE.create({name:`delete`,onUpdate({transaction:e,appendedTransactions:t}){var n;let r=()=>{var n,r;if(((n=this.editor.options.coreExtensionOptions)==null||(n=n.delete)==null||(r=n.filterTransaction)==null?void 0:r.call(n,e))??e.getMeta(`y-sync$`))return;let i=wT(e.before,[e,...t]);UT(i).forEach(t=>{i.mapping.mapResult(t.oldRange.from).deletedAfter&&i.mapping.mapResult(t.oldRange.to).deletedBefore&&i.before.nodesBetween(t.oldRange.from,t.oldRange.to,(n,r)=>{let a=r+n.nodeSize-2,o=t.oldRange.from<=r&&a<=t.oldRange.to;this.editor.emit(`delete`,{type:`node`,node:n,from:r,to:a,newFrom:i.mapping.map(r),newTo:i.mapping.map(a),deletedRange:t.oldRange,newRange:t.newRange,partial:!o,editor:this.editor,transaction:e,combinedTransform:i})})});let a=i.mapping;i.steps.forEach((t,n)=>{if(t instanceof uy){let r=a.slice(n).map(t.from,-1),o=a.slice(n).map(t.to),s=a.invert().map(r,-1),c=a.invert().map(o),l=r>0?i.doc.nodeAt(r-1)?.marks.some(e=>e.eq(t.mark)):!1,u=i.doc.nodeAt(o)?.marks.some(e=>e.eq(t.mark));this.editor.emit(`delete`,{type:`mark`,mark:t.mark,from:t.from,to:t.to,deletedRange:{from:s,to:c},newRange:{from:r,to:o},partial:!!(u||l),editor:this.editor,transaction:e,combinedTransform:i})}})};((n=this.editor.options.coreExtensionOptions)==null||(n=n.delete)==null?void 0:n.async)??!0?setTimeout(r,0):r()}}),Wue=DE.create({name:`drop`,addProseMirrorPlugins(){return[new kb({key:new Mb(`tiptapDrop`),props:{handleDrop:(e,t,n,r)=>{this.editor.emit(`drop`,{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),Gue=DE.create({name:`editable`,addProseMirrorPlugins(){return[new kb({key:new Mb(`editable`),props:{editable:()=>this.editor.options.editable}})]}}),Kue=new Mb(`focusEvents`),que=DE.create({name:`focusEvents`,addProseMirrorPlugins(){let{editor:e}=this;return[new kb({key:Kue,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;let r=e.state.tr.setMeta(`focus`,{event:n}).setMeta(`addToHistory`,!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;let r=e.state.tr.setMeta(`blur`,{event:n}).setMeta(`addToHistory`,!1);return t.dispatch(r),!1}}}})]}}),Jue=DE.create({name:`keymap`,addKeyboardShortcuts(){let e=()=>this.editor.commands.first(({commands:e})=>[()=>e.undoInputRule(),()=>e.command(({tr:t})=>{let{selection:n,doc:r}=t,{empty:i,$anchor:a}=n,{pos:o,parent:s}=a,c=a.parent.isTextblock&&o>0?t.doc.resolve(o-1):a,l=c.parent.type.spec.isolating,u=a.pos-a.parentOffset,d=l&&c.parent.childCount===1?u===a.pos:lb.atStart(r).from===o;return!i||!s.type.isTextblock||s.textContent.length||!d||d&&a.parent.type.name===`paragraph`?!1:e.clearNodes()}),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},i={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return uT()||vT()?i:r},addProseMirrorPlugins(){return[new kb({key:new Mb(`clearDocument`),appendTransaction:(e,t,n)=>{if(e.some(e=>e.getMeta(`composition`)))return;let r=e.some(e=>e.docChanged)&&!t.doc.eq(n.doc),i=e.some(e=>e.getMeta(`preventClearDocument`));if(!r||i)return;let{empty:a,from:o,to:s}=t.selection,c=lb.atStart(t.doc).from,l=lb.atEnd(t.doc).to;
235if(a||!(o===c&&s===l)||!XT(n.doc))return;let u=n.tr,d=Xw({state:n,transaction:u}),{commands:f}=new Zw({editor:this.editor,state:d});if(f.clearNodes(),u.steps.length)return u}})]}}),Yue=DE.create({name:`paste`,addProseMirrorPlugins(){return[new kb({key:new Mb(`tiptapPaste`),props:{handlePaste:(e,t,n)=>{this.editor.emit(`paste`,{editor:this.editor,event:t,slice:n})}}})]}}),Xue=DE.create({name:`tabindex`,addOptions(){return{value:void 0}},addProseMirrorPlugins(){return[new kb({key:new Mb(`tabindex`),props:{attributes:()=>!this.editor.isEditable&&this.options.value===void 0?{}:{tabindex:this.options.value??`0`}}})]}}),Zue=DE.create({name:`textDirection`,addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];let{nodeExtensions:e}=AT(this.extensions);return[{types:e.filter(e=>e.name!==`text`).map(e=>e.name),attributes:{dir:{default:this.options.direction,parseHTML:e=>{let t=e.getAttribute(`dir`);return t&&(t===`ltr`||t===`rtl`||t===`auto`)?t:this.options.direction},renderHTML:e=>e.dir?{dir:e.dir}:{}}}}]},addProseMirrorPlugins(){return[new kb({key:new Mb(`textDirection`),props:{attributes:()=>{let e=this.options.direction;return e?{dir:e}:{}}}})]}}),OE=!1;function Que(e){if(OE)return;OE=!0;let t;try{t=py.fromJSON(e,{from:0,to:0}).slice.content}catch{return}t instanceof U||console.warn(`[tiptap warn]: prosemirror-model is loaded more than once. Wrapping and splitting nodes will fail. Deduplicate it in your lock file, or alias it to a single copy in your bundler.`)}var $ue=class e{get name(){return this.node.type.name}constructor(e,t,n=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=e,this.editor=t,this.currentNode=r}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){return this.actualDepth??this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let t=this.from,n=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You canât set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}t=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:t,to:n},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+ +!this.node.isText}get parent(){if(this.depth===0)return null;let t=this.resolvedPos.start(this.resolvedPos.depth-1);return new e(this.resolvedPos.doc.resolve(t),this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new e(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new e(t,this.editor)}get children(){let t=[];return this.node.content.forEach((n,r)=>{let i=n.isBlock&&!n.isTextblock,a=n.isAtom&&!n.isText,o=n.isInline,s=this.pos+r+ +!a;if(s<0||s>this.resolvedPos.doc.nodeSize-2)return;let c=this.resolvedPos.doc.resolve(s);if(!i&&!o&&c.depth<=this.depth)return;let l=new e(c,this.editor,i,i||o?n:null);i&&(l.actualDepth=this.depth+1),t.push(l)}),t}get firstChild(){return this.children[0]||null}get lastChild(){let e=this.children;return e[e.length-1]||null}closest(e,t={}){let n=null,r=this.parent;for(;r&&!n;){if(r.node.type.name===e)if(Object.keys(t).length>0){let e=r.node.attrs,n=Object.keys(t);for(let r=0;r<n.length;r+=1){let i=n[r];if(e[i]!==t[i])break}}else n=r;r=r.parent}return n}querySelector(e,t={}){return this.querySelectorAll(e,t,!0)[0]||null}querySelectorAll(e,t={},n=!1){let r=[];if(!this.children||this.children.length===0)return r;let i=Object.keys(t);return this.children.forEach(a=>{n&&r.length>0||(a.node.type.name===e&&i.every(e=>t[e]===a.node.attrs[e])&&r.push(a),!(n&&r.length>0)&&(r=r.concat(a.querySelectorAll(e,t,n))))}),r}setAttribute(e){let{tr:t}=this.editor.state;t.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(t)}},ede=`.ProseMirror { 236 position: relative; 237} 238 239.ProseMirror { 240 word-wrap: break-word; 241 white-space: pre-wrap; 242 white-space: break-spaces; 243 -webkit-font-variant-ligatures: none; 244 font-variant-ligatures: none; 245 font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */ 246} 247 248.ProseMirror [contenteditable="false"] { 249 white-space: normal; 250} 251 252.ProseMirror [contenteditable="false"] [contenteditable="true"] { 253 white-space: pre-wrap; 254} 255 256.ProseMirror pre { 257 white-space: pre-wrap; 258} 259 260img.ProseMirror-separator { 261 display: inline !important; 262 border: none !important; 263 margin: 0 !important; 264 width: 0 !important; 265 height: 0 !important; 266} 267 268.ProseMirror-gapcursor { 269 display: none; 270 pointer-events: none; 271 position: absolute; 272 margin: 0; 273} 274 275.ProseMirror-gapcursor:after {
276 content: ""; 277 display: block; 278 position: absolute; 279 top: -2px; 280 width: 20px; 281 border-top: 1px solid black; 282 animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite; 283} 284 285@keyframes ProseMirror-cursor-blink { 286 to { 287 visibility: hidden; 288 } 289} 290 291.ProseMirror-hideselection *::selection { 292 background: transparent; 293} 294 295.ProseMirror-hideselection *::-moz-selection { 296 background: transparent; 297} 298 299.ProseMirror-hideselection * { 300 caret-color: transparent; 301} 302 303.ProseMirror-focused .ProseMirror-gapcursor { 304 display: block; 305}`,tde=class extends _ue{constructor(e={}){super(),this.css=null,this.className=`tiptap`,this.editorView=null,this.isFocused=!1,this.destroyed=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.hasWarnedStaleDecorationRead=!1,this.options={element:typeof document<`u`?document.createElement(`div`):null,content:``,injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:e})=>{throw e},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null,enableExtensionDispatchTransaction:!0},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:Ule,createMappablePosition:Wle},this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on(`beforeCreate`,this.options.onBeforeCreate),this.emit(`beforeCreate`,{editor:this}),this.on(`mount`,this.options.onMount),this.on(`unmount`,this.options.onUnmount),this.on(`contentError`,this.options.onContentError),this.on(`create`,this.options.onCreate),this.on(`update`,this.options.onUpdate),this.on(`selectionUpdate`,this.options.onSelectionUpdate),this.on(`transaction`,this.options.onTransaction),this.on(`focus`,this.options.onFocus),this.on(`blur`,this.options.onBlur),this.on(`destroy`,this.options.onDestroy),this.on(`drop`,({event:e,slice:t,moved:n})=>this.options.onDrop(e,t,n)),this.on(`paste`,({event:e,slice:t})=>this.options.onPaste(e,t)),this.on(`delete`,this.options.onDelete);let t=this.createDoc();if(!this.editorState){let e=cT(t,this.options.autofocus);this.editorState=Db.create({doc:t,schema:this.schema,selection:e||void 0})}Que(this.schema),this.options.element&&this.mount(this.options.element)}mount(e){if(typeof document>`u`)throw Error(`[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.`);this.createView(e),this.emit(`mount`,{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(this.options.autofocus!==!1&&this.options.autofocus!==null&&this.commands.focus(this.options.autofocus),this.emit(`create`,{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){this.editorState=this.editorView.state;let e=this.editorView.dom;e?.editor&&delete e.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{typeof this.css.remove==`function`?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(e){console.warn(`Failed to remove CSS element:`,e)}this.css=null,this.emit(`unmount`,{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager?this.commandManager.chain():Zw.createFakeChain()}can(){return this.commandManager?this.commandManager.can():Zw.createFallbackCan()}injectCSS(){this.options.injectCSS&&typeof document<`u`&&(this.css=jue(ede,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.editorView||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}
305),t&&this.emit(`update`,{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:e=>{this.editorState=e},dispatch:e=>{this.dispatchTransaction(e)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(e,t)=>{if(this.editorView)return this.editorView[t];if(t===`state`)return this.editorState;if(t in e)return Reflect.get(e,t);throw Error(`[tiptap error]: The editor view is not available. Cannot access view['${t}']. The editor may not be mounted yet.`)}})}get state(){return oE&&!this.hasWarnedStaleDecorationRead&&gue(this)&&(this.hasWarnedStaleDecorationRead=!0,console.warn("[tiptap warn]: `editor.state` was read while decoration `create()` was running. It returns the pre-transaction document. Use the `state` argument passed to `create()` instead. Helpers like `editor.isActive()` read `editor.state` too, so pass `state` to their standalone versions instead of calling them on the editor.")),this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(e,t){let n=OT(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;let t=this.state.plugins,n=t;if([].concat(e).forEach(e=>{let t=typeof e==`string`?`${e}$`:e.key;n=n.filter(e=>!e.key.startsWith(t))}),t.length===n.length)return;let r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var e,t;let n=[...this.options.enableCoreExtensions?[Gue,Vue.configure({blockSeparator:(e=this.options.coreExtensionOptions)==null||(e=e.clipboardTextSerializer)==null?void 0:e.blockSeparator}),Hue,que,Jue,Xue.configure({value:(t=this.options.coreExtensionOptions)==null||(t=t.tabindex)==null?void 0:t.value}),Wue,Yue,Uue,Zue.configure({direction:this.options.textDirection})].filter(e=>typeof this.options.enableCoreExtensions==`object`?this.options.enableCoreExtensions[e.name]!==!1:!0):[],...this.options.extensions].filter(e=>[`extension`,`node`,`mark`].includes(e?.type));this.extensionManager=new EE(n,this)}createCommandManager(){this.commandManager=new Zw({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let e;try{e=ST(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(e){if(!(e instanceof Error)||![`[tiptap error]: Invalid JSON content`,`[tiptap error]: Invalid HTML content`].includes(e.message))throw e;let t=ST(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1});return this.editorState=Db.create({doc:t,schema:this.schema,selection:cT(t,this.options.autofocus)||void 0}),this.emit(`contentError`,{editor:this,error:e,disableCollaboration:()=>{`collaboration`in this.storage&&typeof this.storage.collaboration==`object`&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(e=>e.name!==`collaboration`),this.createExtensionManager()}}),this.editorState.doc}return e}createView(e){let{editorProps:t,enableExtensionDispatchTransaction:n}=this.options,r=t.dispatchTransaction||this.dispatchTransaction.bind(this),i=n?this.extensionManager.dispatchTransaction(r):r,a=t.transformPastedHTML,o=this.extensionManager.transformPastedHTML(a);this.editorView=new Rw(e,{...t,attributes:{role:`textbox`,...t?.attributes},dispatchTransaction:i,transformPastedHTML:o,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});let s=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(s),this.prependClass(),this.injectCSS();let c=this.view.dom;c.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;let t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}
305e.steps.forEach(e=>this.capturedTransaction?.step(e));return}let{state:t,transactions:n}=this.state.applyTransaction(e),r=!this.state.selection.eq(t.selection),i=n.includes(e),a=this.state;if(this.emit(`beforeTransaction`,{editor:this,transaction:e,nextState:t}),!i)return;this.view.updateState(t),this.emit(`transaction`,{editor:this,transaction:e,appendedTransactions:n.slice(1)}),r&&this.emit(`selectionUpdate`,{editor:this,transaction:e});let o=n.findLast(e=>e.getMeta(`focus`)||e.getMeta(`blur`)),s=o?.getMeta(`focus`),c=o?.getMeta(`blur`);s&&this.emit(`focus`,{editor:this,event:s.event,transaction:o}),c&&this.emit(`blur`,{editor:this,event:c.event,transaction:o}),!(e.getMeta(`preventUpdate`)||!n.some(e=>e.docChanged)||a.doc.eq(t.doc))&&this.emit(`update`,{editor:this,transaction:e,appendedTransactions:n.slice(1)})}getAttributes(e){return HT(this.state,e)}isActive(e,t){let n=typeof e==`string`?e:null,r=typeof e==`string`?t:e;return Ble(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return DT(this.state.doc.content,this.schema)}getText(e){let{blockSeparator:t=` 306 307`,textSerializers:n={}}=e||{};return Nle(this.state.doc,{blockSeparator:t,textSerializers:{...VT(this.schema),...n}})}get isEmpty(){return XT(this.state.doc)}destroy(){this.destroyed||(this.destroyed=!0,this.emit(`destroy`),this.unmount(),this.removeAllListeners(),this.extensionManager.destroy(),this.extensionManager=null,this.schema=null,this.commandManager=null,this.extensionStorage={})}get isDestroyed(){return this.editorView?.isDestroyed??!0}$node(e,t){return this.$doc?.querySelector(e,t)||null}$nodes(e,t){return this.$doc?.querySelectorAll(e,t)||null}$pos(e){let t=this.state.doc.resolve(e),n=e>0&&t.nodeAfter&&!t.nodeAfter.isText&&t.nodeAfter.isAtom?t.nodeAfter:null;return new $ue(t,this,!1,n)}get $doc(){return this.$pos(0)}};function kE(e){return new bE({find:e.find,handler:({state:t,range:n,match:r})=>{let i=kT(e.getAttributes,void 0,r);if(i===!1||i===null)return null;let{tr:a}=t,o=r[r.length-1],s=r[0];if(o){let r=s.search(/\S/),c=n.from+s.indexOf(o),l=c+o.length;if(WT(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>c).length)return null;l<n.to&&a.delete(l,n.to),c>n.from&&a.delete(n.from+r,c);let u=n.from+r+o.length;a.addMark(n.from+r,u,e.type.create(i||{})),a.removeStoredMark(e.type)}},undoable:e.undoable})}function nde(e){return new bE({find:e.find,handler:({state:t,range:n,match:r})=>{let i=kT(e.getAttributes,void 0,r)||{},{tr:a}=t,o=n.from,s=n.to,c=e.type.create(i);if(r[1]){let e=o+r[0].lastIndexOf(r[1]);e>s?e=s:s=e+r[1].length;let t=r[0][r[0].length-1];a.insertText(t,o+r[0].length-1),a.replaceWith(e,s,c)}else if(r[0]){let t=e.type.isInline?o:o-1;a.insert(t,e.type.create(i)).delete(a.mapping.map(o),a.mapping.map(s))}a.scrollIntoView()},undoable:e.undoable})}function AE(e){return new bE({find:e.find,handler:({state:t,range:n,match:r})=>{let i=t.doc.resolve(n.from),a=kT(e.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),e.type))return null;t.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,a)},undoable:e.undoable})}function jE(e){return new bE({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{let a=kT(e.getAttributes,void 0,r)||{},o=t.tr.delete(n.from,n.to),s=o.doc.resolve(n.from).blockRange(),c=s&&Cy(s,e.type,a);if(!c)return null;if(o.wrap(s,c),e.keepMarks&&e.editor){let{selection:n,storedMarks:r}=t,{splittableMarks:i}=e.editor.extensionManager,a=r||n.$to.parentOffset&&n.$from.marks();if(a){let e=a.filter(e=>i.includes(e.type.name));o.ensureMarks(e)}}if(e.keepAttributes){let t=e.type.name===`bulletList`||e.type.name===`orderedList`?`listItem`:`taskList`;i().updateAttributes(t,a).run()}let l=o.doc.resolve(n.from-1).nodeBefore;l&&l.type===e.type&&Fy(o.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,l))&&o.join(n.from-1)},undoable:e.undoable})}var ME=class e extends SE{constructor(...e){super(...e),this.type=`node`}static create(t={}){return new e(typeof t==`function`?t():t)}configure(e){return super.configure(e)}extend(e){let t=typeof e==`function`?e():e;return super.extend(t)}};function NE(e){return new wE({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{let a=kT(e.getAttributes,void 0,r,i);if(a===!1||a===null)return null;let{tr:o}=t,s=r[r.length-1],c=r[0],l=n.to;if(s){let i=c.search(/\S/),u=n.from+c.indexOf(s),d=u+s.length;if(WT(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>u).length)return null;
vendor: 25,217 bytes, line 307
307d<n.to&&o.delete(d,n.to),u>n.from&&o.delete(n.from+i,u),l=n.from+i+s.length,o.addMark(n.from+i,l,e.type.create(a||{})),r.index!==void 0&&r.input!==void 0&&r.index+r[0].length>=r.input.length||o.removeStoredMark(e.type)}}})}function rde(e={}){return new kb({view(t){return new ide(t,e)}})}var ide=class{constructor(e,t){this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.lastDragEvent=null,this.width=t.width??1,this.color=t.color===!1?void 0:t.color||`black`,this.class=t.class,this.handlers=[`dragover`,`dragend`,`drop`,`dragleave`].map(t=>{let n=e=>{this[t](e)};return e.dom.addEventListener(t,n),{name:t,handler:n}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){if(this.cursorPos!=null&&t.doc!=e.state.doc)if(this.lastDragEvent){let e=this.computeTarget(this.lastDragEvent);e==this.cursorPos?this.updateOverlay():this.setCursor(e)}else this.updateOverlay()}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),t=!e.parent.inlineContent,n,r=this.editorView.dom,i=r.getBoundingClientRect(),a=i.width/r.offsetWidth,o=i.height/r.offsetHeight;if(t){let t=e.nodeBefore,r=e.nodeAfter;if(t||r){let e=this.editorView.nodeDOM(this.cursorPos-(t?t.nodeSize:0));if(e){let i=e.getBoundingClientRect(),a=t?i.bottom:i.top;t&&r&&(a=(a+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let s=this.width/2*o;n={left:i.left,right:i.right,top:a-s,bottom:a+s}}}}if(!n){let e=this.editorView.coordsAtPos(this.cursorPos),t=this.width/2*a;n={left:e.left-t,right:e.left+t,top:e.top,bottom:e.bottom}}let s=this.editorView.dom.offsetParent;this.element||(this.element=s.appendChild(document.createElement(`div`)),this.class&&(this.element.className=this.class),this.element.style.cssText=`position: absolute; z-index: 50; pointer-events: none;`,this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle(`prosemirror-dropcursor-block`,t),this.element.classList.toggle(`prosemirror-dropcursor-inline`,!t);let c,l;if(!s||s==document.body&&getComputedStyle(s).position==`static`)c=-pageXOffset,l=-pageYOffset;else{let e=s.getBoundingClientRect(),t=e.width/s.offsetWidth,n=e.height/s.offsetHeight;c=e.left-s.scrollLeft*t,l=e.top-s.scrollTop*n}this.element.style.left=(n.left-c)/a+`px`,this.element.style.top=(n.top-l)/o+`px`,this.element.style.width=(n.right-n.left)/a+`px`,this.element.style.height=(n.bottom-n.top)/o+`px`}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}computeTarget(e){let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),n=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),r=n&&n.type.spec.disableDropCursor,i=typeof r==`function`?r(this.editorView,t,e):r;if(!t||i)return null;let a=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let e=Vy(this.editorView.state.doc,a,this.editorView.dragging.slice);e!=null&&(a=e)}return a}dragover(e){if(!this.editorView.editable)return;this.lastDragEvent=e;let t=this.computeTarget(e);t!=null&&(this.setCursor(t),this.scheduleRemoval(5e3))}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}},PE=class e extends lb{constructor(e){super(e,e)}map(t,n){let r=t.resolve(n.map(this.head));return e.valid(r)?new e(r):lb.near(r)}content(){return W.empty}eq(t){return t instanceof e&&t.head==this.head}toJSON(){return{type:`gapcursor`,pos:this.head}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for GapCursor.fromJSON`);return new e(t.resolve(n.pos))}getBookmark(){return new ade(this.anchor)}static valid(e){let t=e.parent;if(t.inlineContent||!ode(e)||!sde(e))return!1;let n=t.type.spec.allowGapCursor;if(n!=null)return n;let r=t.contentMatchAt(e.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(t,n,r=!1){search:for(;;){if(!r&&e.valid(t))return t;let i=t.pos,a=null;for(let r=t.depth;;r--){let o=t.node(r);if(n>0?t.indexAfter(r)<o.childCount:t.index(r)>0){a=o.child(n>0?t.indexAfter(r):t.index(r)-1);break}else if(r==0)return null;i+=n;let s=t.doc.resolve(i);if(e.valid(s))return s}for(;;){let o=n>0?a.firstChild:a.lastChild;if(!o){if(a.isAtom&&!a.isText&&!K.isSelectable(a)){t=t.doc.resolve(i+a.nodeSize*n),r=!1;continue search}break}a=o,i+=n;let s=t.doc.resolve(i);if(e.valid(s))return s}return null}}};PE.prototype.visible=!1,PE.findFrom=PE.findGapCursorFrom,lb.jsonID(`gapcursor`,PE);var ade=class e{constructor(e){this.pos=e}map(t){return new e(t.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return PE.valid(t)?new PE(t):lb.near(t)}};function FE(e){return e.isAtom||e.spec.isolating||e.spec.createGapCursor}function ode(e){for(let t=e.depth;t>=0;t--){let n=e.index(t),r=e.node(t);if(n==0){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n-1);;e=e.lastChild){if(e.childCount==0&&!e.inlineContent||FE(e.type))return!0;if(e.inlineContent)return!1}}return!0}function sde(e){for(let t=e.depth;t>=0;t--){let n=e.indexAfter(t),r=e.node(t);if(n==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let e=r.child(n);;e=e.firstChild){if(e.childCount==0&&!e.inlineContent||FE(e.type))return!0;if(e.inlineContent)return!1}}return!0}function cde(){return new kb({props:{decorations:fde,createSelectionBetween(e,t,n){return t.pos==n.pos&&PE.valid(n)?new PE(n):null},handleClick:ude,handleKeyDown:lde,handleDOMEvents:{beforeinput:dde}}})}var lde=Yw({ArrowLeft:IE(`horiz`,-1),ArrowRight:IE(`horiz`,1),ArrowUp:IE(`vert`,-1),ArrowDown:IE(`vert`,1)});function IE(e,t){let n=e==`vert`?t>0?`down`:`up`:t>0?`right`:`left`;return function(e,r,i){let a=e.selection,o=t>0?a.$to:a.$from,s=a.empty;if(a instanceof G){if(!i.endOfTextblock(n)||o.depth==0)return!1;s=!1,o=e.doc.resolve(t>0?o.after():o.before())}let c=PE.findGapCursorFrom(o,t,s);return c?(r&&r(e.tr.setSelection(new PE(c))),!0):!1}}function ude(e,t,n){if(!e||!e.editable)return!1;let r=e.state.doc.resolve(t);if(!PE.valid(r))return!1;let i=e.posAtCoords({left:n.clientX,top:n.clientY});return i&&i.inside>-1&&K.isSelectable(e.state.doc.nodeAt(i.inside))?!1:(e.dispatch(e.state.tr.setSelection(new PE(r))),!0)}function dde(e,t){if(t.inputType!=`insertCompositionText`||!(e.state.selection instanceof PE))return!1;let{$from:n}=e.state.selection,r=n.parent.contentMatchAt(n.index()).findWrapping(e.state.schema.nodes.text);if(!r)return!1;let i=U.empty;for(let e=r.length-1;e>=0;e--)i=U.from(r[e].createAndFill(null,i));let a=e.state.tr.replace(n.pos,n.pos,new W(i,0,0));return a.setSelection(G.near(a.doc.resolve(n.pos+1))),e.dispatch(a),!1}function fde(e){if(!(e.selection instanceof PE))return null;let t=document.createElement(`div`);return t.className=`ProseMirror-gapcursor`,Sw.create(e.doc,[yw.widget(e.selection.head,t,{key:`gapcursor`})])}var LE=200,RE=function(){};RE.prototype.append=function(e){return e.length?(e=RE.from(e),!this.length&&e||e.length<LE&&this.leafAppend(e)||this.length<LE&&e.leafPrepend(this)||this.appendInner(e)):this},RE.prototype.prepend=function(e){return e.length?RE.from(e).append(this):this},RE.prototype.appendInner=function(e){return new pde(this,e)},RE.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?RE.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},RE.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},RE.prototype.forEach=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length),t<=n?this.forEachInner(e,t,n,0):this.forEachInvertedInner(e,t,n,0)},RE.prototype.map=function(e,t,n){t===void 0&&(t=0),n===void 0&&(n=this.length);var r=[];return this.forEach(function(t,n){return r.push(e(t,n))},t,n),r},RE.from=function(e){return e instanceof RE?e:e&&e.length?new zE(e):RE.empty};var zE=function(e){function t(t){e.call(this),this.values=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(e,n){return e==0&&n==this.length?this:new t(this.values.slice(e,n))},t.prototype.getInner=function(e){return this.values[e]},t.prototype.forEachInner=function(e,t,n,r){for(var i=t;i<n;i++)if(e(this.values[i],r+i)===!1)return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){for(var i=t-1;i>=n;i--)if(e(this.values[i],r+i)===!1)return!1},t.prototype.leafAppend=function(e){if(this.length+e.length<=LE)return new t(this.values.concat(e.flatten()))},t.prototype.leafPrepend=function(e){if(this.length+e.length<=LE)return new t(e.flatten().concat(this.values))},n.length.get=function(){return this.values.length},n.depth.get=function(){return 0},Object.defineProperties(t.prototype,n),t}(RE);RE.empty=new zE([]);var pde=function(e){function t(t,n){e.call(this),this.left=t,this.right=n,this.length=t.length+n.length,this.depth=Math.max(t.depth,n.depth)+1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(e){return e<this.left.length?this.left.get(e):this.right.get(e-this.left.length)},t.prototype.forEachInner=function(e,t,n,r){var i=this.left.length;if(t<i&&this.left.forEachInner(e,t,Math.min(n,i),r)===!1||n>i&&this.right.forEachInner(e,Math.max(t-i,0),Math.min(this.length,n)-i,r+i)===!1)return!1},t.prototype.forEachInvertedInner=function(e,t,n,r){var i=this.left.length;if(t>i&&this.right.forEachInvertedInner(e,t-i,Math.max(n,i)-i,r+i)===!1||n<i&&this.left.forEachInvertedInner(e,Math.min(t,i),n,r)===!1)return!1},t.prototype.sliceInner=function(e,t){if(e==0&&t==this.length)return this;var n=this.left.length;return t<=n?this.left.slice(e,t):e>=n?this.right.slice(e-n,t-n):this.left.slice(e,n).append(this.right.slice(0,t-n))},t.prototype.leafAppend=function(e){var n=this.right.leafAppend(e);if(n)return new t(this.left,n)},t.prototype.leafPrepend=function(e){var n=this.left.leafPrepend(e);if(n)return new t(n,this.right)},t.prototype.appendInner=function(e){return this.left.depth>=Math.max(this.right.depth,e.depth)+1?new t(this.left,new t(this.right,e)):new t(this,e)},t}(RE),mde=500,BE=class e{constructor(e,t){this.items=e,this.eventCount=t}popEvent(t,n){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,a;n&&(i=this.remapping(r,this.items.length),a=i.maps.length);let o=t.tr,s,c,l=[],u=[];return this.items.forEach((t,n)=>{if(!t.step){i||(i=this.remapping(r,n+1),a=i.maps.length),a--,u.push(t);return}if(i){u.push(new VE(t.map));let e=t.step.map(i.slice(a)),n;e&&o.maybeStep(e).doc&&(n=o.mapping.maps[o.mapping.maps.length-1],l.push(new VE(n,void 0,void 0,l.length+u.length))),a--,n&&i.appendMap(n,a)}else o.maybeStep(t.step);if(t.selection)return s=i?t.selection.map(i.slice(a)):t.selection,c=new e(this.items.slice(0,r).append(u.reverse().concat(l)),this.eventCount-1),!1},this.items.length,0),{remaining:c,transform:o,selection:s}}addTransform(t,n,r,i){let a=[],o=this.eventCount,s=this.items,c=!i&&s.length?s.get(s.length-1):null;for(let e=0;e<t.steps.length;e++){let r=t.steps[e].invert(t.docs[e]),l=new VE(t.mapping.maps[e],r,n),u;(u=c&&c.merge(l))&&(l=u,e?a.pop():s=s.slice(0,s.length-1)),a.push(l),n&&=(o++,void 0),i||(c=l)}let l=o-r.depth;return l>gde&&(s=hde(s,l),o-=l),new e(s.append(a),o)}remapping(e,t){let n=new iy;return this.items.forEach((t,r)=>{let i=t.mirrorOffset!=null&&r-t.mirrorOffset>=e?n.maps.length-t.mirrorOffset:void 0;n.appendMap(t.map,i)},e,t),n}addMaps(t){return this.eventCount==0?this:new e(this.items.append(t.map(e=>new VE(e))),this.eventCount)}rebased(t,n){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-n),a=t.mapping,o=t.steps.length,s=this.eventCount;this.items.forEach(e=>{e.selection&&s--},i);let c=n;this.items.forEach(e=>{let n=a.getMirror(--c);if(n==null)return;o=Math.min(o,n);let i=a.maps[n];if(e.step){let o=t.steps[n].invert(t.docs[n]),l=e.selection&&e.selection.map(a.slice(c+1,n));l&&s++,r.push(new VE(i,o,l))}else r.push(new VE(i))},i);let l=[];for(let e=n;e<o;e++)l.push(new VE(a.maps[e]));let u=new e(this.items.slice(0,i).append(l).append(r),s);return u.emptyItemCount()>mde&&(u=u.compress(this.items.length-r.length)),u}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(t=this.items.length){let n=this.remapping(0,t),r=n.maps.length,i=[],a=0;return this.items.forEach((e,o)=>{if(o>=t)i.push(e),e.selection&&a++;else if(e.step){let t=e.step.map(n.slice(r)),o=t&&t.getMap();if(r--,o&&n.appendMap(o,r),t){let s=e.selection&&e.selection.map(n.slice(r));s&&a++;let c=new VE(o.invert(),t,s),l,u=i.length-1;(l=i.length&&i[u].merge(c))?i[u]=l:i.push(c)}}else e.map&&r--},this.items.length,0),new e(RE.from(i.reverse()),a)}};BE.empty=new BE(RE.empty,0);function hde(e,t){let n;return e.forEach((e,r)=>{if(e.selection&&t--==0)return n=r,!1}),e.slice(n)}var VE=class e{constructor(e,t,n,r){this.map=e,this.step=t,this.selection=n,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let n=t.step.merge(this.step);if(n)return new e(n.getMap().invert(),n,this.selection)}}},HE=class{constructor(e,t,n,r,i){this.done=e,this.undone=t,this.prevRanges=n,this.prevTime=r,this.prevComposition=i}},gde=20;function _de(e,t,n,r){let i=n.getMeta(JE),a;if(i)return i.historyState;n.getMeta(bde)&&(e=new HE(e.done,e.undone,null,0,-1));let o=n.getMeta(`appendedTransaction`);if(n.steps.length==0)return e;if(o&&o.getMeta(JE))return o.getMeta(JE).redo?new HE(e.done.addTransform(n,void 0,r,qE(t)),e.undone,UE(n.mapping.maps),e.prevTime,e.prevComposition):new HE(e.done,e.undone.addTransform(n,void 0,r,qE(t)),null,e.prevTime,e.prevComposition);if(n.getMeta(`addToHistory`)!==!1&&!(o&&o.getMeta(`addToHistory`)===!1)){let i=n.getMeta(`composition`),a=e.prevTime==0||!o&&e.prevComposition!=i&&(e.prevTime<(n.time||0)-r.newGroupDelay||!vde(n,e.prevRanges)),s=o?WE(e.prevRanges,n.mapping):UE(n.mapping.maps);return new HE(e.done.addTransform(n,a?t.selection.getBookmark():void 0,r,qE(t)),BE.empty,s,n.time,i??e.prevComposition)}else if(a=n.getMeta(`rebased`))return new HE(e.done.rebased(n,a),e.undone.rebased(n,a),WE(e.prevRanges,n.mapping),e.prevTime,e.prevComposition);else return new HE(e.done.addMaps(n.mapping.maps),e.undone.addMaps(n.mapping.maps),WE(e.prevRanges,n.mapping),e.prevTime,e.prevComposition)}function vde(e,t){if(!t)return!1;if(!e.docChanged)return!0;let n=!1;return e.mapping.maps[0].forEach((e,r)=>{for(let i=0;i<t.length;i+=2)e<=t[i+1]&&r>=t[i]&&(n=!0)}),n}function UE(e){let t=[];for(let n=e.length-1;n>=0&&t.length==0;n--)e[n].forEach((e,n,r,i)=>t.push(r,i));return t}function WE(e,t){if(!e)return null;let n=[];for(let r=0;r<e.length;r+=2){let i=t.map(e[r],1),a=t.map(e[r+1],-1);i<=a&&n.push(i,a)}return n}function yde(e,t,n){let r=qE(t),i=JE.get(t).spec.config,a=(n?e.undone:e.done).popEvent(t,r);if(!a)return null;let o=a.selection.resolve(a.transform.doc),s=(n?e.done:e.undone).addTransform(a.transform,t.selection.getBookmark(),i,r),c=new HE(n?s:a.remaining,n?a.remaining:s,null,0,-1);return a.transform.setSelection(o).setMeta(JE,{redo:n,historyState:c})}var GE=!1,KE=null;function qE(e){let t=e.plugins;if(KE!=t){GE=!1,KE=t;for(let e=0;e<t.length;e++)if(t[e].spec.historyPreserveItems){GE=!0;break}}return GE}var JE=new Mb(`history`),bde=new Mb(`closeHistory`);function xde(e={}){return e={depth:e.depth||100,newGroupDelay:e.newGroupDelay||500},new kb({key:JE,state:{init(){return new HE(BE.empty,BE.empty,null,0,-1)},apply(t,n,r){return _de(n,r,t,e)}},config:e,props:{handleDOMEvents:{beforeinput(e,t){let n=t.inputType,r=n==`historyUndo`?XE:n==`historyRedo`?ZE:null;return!r||!e.editable?!1:(t.preventDefault(),r(e.state,e.dispatch))}}}})}function YE(e,t){return(n,r)=>{let i=JE.getState(n);if(!i||(e?i.undone:i.done).eventCount==0)return!1;if(r){let a=yde(i,n,e);a&&r(t?a.scrollIntoView():a)}return!0}}var XE=YE(!1,!0),ZE=YE(!0,!0),Sde=DE.create({name:`characterCount`,addOptions(){return{limit:null,autoTrim:!0,mode:`textSize`,textCounter:e=>e.length,wordCounter:e=>e.split(` `).filter(e=>e!==``).length}},addStorage(){return{characters:()=>0,words:()=>0}},onBeforeCreate(){this.storage.characters=e=>{let t=e?.node||this.editor.state.doc;if((e?.mode||this.options.mode)===`textSize`){let e=t.textBetween(0,t.content.size,void 0,` `);return this.options.textCounter(e)}return t.nodeSize},this.storage.words=e=>{let t=e?.node||this.editor.state.doc,n=t.textBetween(0,t.content.size,` `,` `);return this.options.wordCounter(n)}},addProseMirrorPlugins(){let e=!1;return[new kb({key:new Mb(`characterCount`),appendTransaction:(t,n,r)=>{if(e)return;let i=this.options.limit,a=this.options.autoTrim;if(i==null||i===0||a===!1){e=!0;return}let o=this.storage.characters({node:r.doc});if(o>i){let t=o-i;console.warn(`[CharacterCount] Initial content exceeded limit of ${i} characters. Content was automatically trimmed.`);let n=r.tr.deleteRange(0,t);return e=!0,n}e=!0},filterTransaction:(e,t)=>{let n=this.options.limit;if(!e.docChanged||n===0||n==null)return!0;let r=this.storage.characters({node:t.doc}),i=this.storage.characters({node:e.doc});if(i<=n||r>n&&i>n&&i<=r)return!0;if(r>n&&i>n&&i>r||!e.getMeta(`paste`))return!1;let a=e.selection.$head.pos,o=a-(i-n),s=a;return e.deleteRange(o,s),!(this.storage.characters({node:e.doc})>n)}})]}}),Cde=DE.create({name:`dropCursor`,addOptions(){return{color:`currentColor`,width:1,class:void 0}},addProseMirrorPlugins(){return[rde(this.options)]}});DE.create({name:`focus`,addOptions(){return{className:`has-focus`,mode:`all`}},addProseMirrorPlugins(){return[new kb({key:new Mb(`focus`),props:{decorations:({doc:e,selection:t})=>{let{isEditable:n,isFocused:r}=this.editor,{anchor:i}=t,a=[];if(!n||!r)return Sw.create(e,[]);let o=0;this.options.mode===`deepest`&&e.descendants((e,t)=>{if(!e.isText){if(!(i>=t&&i<=t+e.nodeSize-1))return!1;o+=1}});let s=0;return e.descendants((e,t)=>{if(e.isText||!(i>=t&&i<=t+e.nodeSize-1))return!1;if(s+=1,this.options.mode===`deepest`&&o-s>0||this.options.mode===`shallowest`&&s>1)return this.options.mode===`deepest`;a.push(yw.node(t,t+e.nodeSize,{class:this.options.className}))}),Sw.create(e,a)}}})]}});var wde=DE.create({name:`gapCursor`,addProseMirrorPlugins(){return[cde()]},extendNodeSchema(e){return{allowGapCursor:kT(q(e,`allowGapCursor`,{name:e.name,options:e.options,storage:e.storage}))??null}}}),QE=`placeholder`,$E=new Mb(`tiptap__placeholder`);function eD(e){let{editor:t,placeholder:n,dataAttribute:r,pos:i,node:a,isEmptyDoc:o,hasAnchor:s,classes:{emptyNode:c,emptyEditor:l}}=e,u=[c];return o&&u.push(l),yw.node(i,i+a.nodeSize,{class:u.join(` `),[r]:typeof n==`function`?n({editor:t,node:a,pos:i,hasAnchor:s}):n})}function tD(e,t){return typeof e==`function`?e(t):e}function nD({editor:e,options:t,dataAttribute:n,doc:r,selection:i,from:a,to:o}){let{anchor:s}=i,c=[],l=e.isEmpty;return r.nodesBetween(a,o,(r,i)=>{let a=s>=i&&s<=i+r.nodeSize,o=!r.isLeaf&&XT(r);return r.type.isTextblock&&(a||!t.showOnlyCurrent)&&o&&c.push(eD({editor:e,isEmptyDoc:l,dataAttribute:n,hasAnchor:a,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:tD(t.emptyNodeClass,{editor:e,node:r,pos:i,hasAnchor:a})},node:r,pos:i})),t.includeChildren}),c}function rD({editor:e,options:t,dataAttribute:n,doc:r,selection:i}){if(!(e.isEditable||!t.showOnlyWhenEditable))return null;let{anchor:a}=i,o=[],s=e.isEmpty;if(t.showOnlyCurrent&&!t.includeChildren){let i=r.resolve(a),c=i.depth>0?i.node(1):i.nodeAfter,l=i.depth>0?i.before(1):a;if(c&&c.type.isTextblock&&XT(c)){let r=a>=l&&a<=l+c.nodeSize;o.push(eD({editor:e,isEmptyDoc:s,dataAttribute:n,hasAnchor:r,placeholder:t.placeholder,classes:{emptyEditor:t.emptyEditorClass,emptyNode:tD(t.emptyNodeClass,{editor:e,node:c,pos:l,hasAnchor:r})},node:c,pos:l}))}}else o.push(...nD({editor:e,options:t,dataAttribute:n,doc:r,selection:i,from:0,to:r.content.size}));return Sw.create(r,o)}function iD(e,t){let n=e.resolve(t);if(n.depth===0){let e=n.nodeAfter??n.nodeBefore;if(!e)return{from:t,to:t};let r=n.nodeAfter?t:t-e.nodeSize;return{from:r,to:r+e.nodeSize}}let r=n.before(1);return{from:r,to:r+n.node(1).nodeSize}}function aD(e,t){return{from:Math.max(0,t.from-1),to:Math.min(e.content.size,t.to-1)}}function Tde(e,t,n){let r=[];return e.forEach((e,i)=>{let a=i,o=a+e.nodeSize,s=a+1,c=o+1;s<n&&c>t&&r.push({from:a,to:o})}),r}function Ede(e){if(e.length===0)return[];let t=[...e].sort((e,t)=>e.from-t.from),n=[{...t[0]}];for(let e=1;e<t.length;e+=1){let r=n[n.length-1],i=t[e];i.from<=r.to?r.to=Math.max(r.to,i.to):n.push({...i})}return n}function Dde(e,t){let n=Tde(e,t.from,t.to);return n.push(aD(e,iD(e,t.from))),t.to>t.from?n.push(aD(e,iD(e,Math.min(t.to,e.content.size+1)-1))):t.from<e.content.size+1&&n.push(aD(e,iD(e,Math.min(t.from+1,e.content.size)))),n}function Ode(e,t,n){let r=[];if(e.docChanged){let t=UT(e);for(let e of t)r.push(...Dde(n.doc,e.newRange))}return e.selectionSet&&(r.push(aD(n.doc,iD(n.doc,e.mapping.map(t.selection.anchor)))),r.push(aD(n.doc,iD(n.doc,n.selection.anchor)))),Ede(r)}function kde(e,t,n){let r=Math.max(0,Math.min(e,n.content.size));return{from:r,to:Math.max(r,Math.min(t,n.content.size))}}function Ade({decorations:e,ranges:t,editor:n,options:r,dataAttribute:i,doc:a,selection:o}){let s=e;for(let e of t){let{from:t,to:c}=kde(e.from,e.to,a),l=s.find(t,c).filter(e=>e.from>=t&&e.to<=c);l.length&&(s=s.remove(l));let u=nD({editor:n,options:r,dataAttribute:i,doc:a,selection:o,from:t,to:c});u.length&&(s=s.add(a,u))}return s}function jde({editor:e,options:t,dataAttribute:n}){return{init(r,i){return rD({editor:e,options:t,dataAttribute:n,doc:i.doc,selection:i.selection})??Sw.empty},apply(r,i,a,o){return!r.docChanged&&!r.selectionSet?i:Ade({decorations:i.map(r.mapping,r.doc),ranges:Ode(r,a,o),editor:e,options:t,dataAttribute:n,doc:o.doc,selection:o.selection})}}}function Mde(e){return e.replace(/\s+/g,`-`).replace(/[^a-zA-Z0-9-]/g,``).replace(/^[0-9-]+/,``).replace(/^-+/,``).toLowerCase()}function Nde({editor:e,options:t}){let n=t.dataAttribute?`data-${Mde(t.dataAttribute)}`:`data-${QE}`,r=t.showOnlyCurrent&&!t.includeChildren;return new kb({key:$E,...r?{}:{state:jde({editor:e,options:t,dataAttribute:n})},props:{decorations:r?({doc:r,selection:i})=>rD({editor:e,options:t,dataAttribute:n,doc:r,selection:i}):n=>t.showOnlyWhenEditable&&!e.isEditable?Sw.empty:$E.getState(n)??Sw.empty}})}var Pde=DE.create({name:`placeholder`,addOptions(){return{emptyEditorClass:`is-editor-empty`,emptyNodeClass:`is-empty`,dataAttribute:QE,placeholder:`Write something â¦`,showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[Nde({editor:this.editor,options:this.options})]}});function oD(e,t){return!e.selection.empty&&!ZT(e.selection)&&t.isEditable}function Fde(e,t){return oD(e,t)&&!t.isFocused&&!t.view.dragging}function Ide(){var e;(e=window.getSelection())==null||e.removeAllRanges()}function Lde(e){e.focus()}DE.create({name:`selection`,addOptions(){return{className:`selection`}},addProseMirrorPlugins(){let{editor:e,options:t}=this;return[new kb({key:new Mb(`selection`),props:{decorations(n){return Fde(n,e)?Sw.create(n.doc,[yw.inline(n.selection.from,n.selection.to,{class:t.className})]):null},handleDOMEvents:{blur(t){return oD(t.state,e)&&Ide(),!1},focus(t){return oD(t.state,e)&&requestAnimationFrame(()=>{!e.isDestroyed&&t.hasFocus()&&Lde(t)}),!1}}}})]}});function sD({types:e,node:t}){return t&&Array.isArray(e)&&e.includes(t.type)||t?.type===e}var Rde=DE.create({name:`trailingNode`,addOptions(){return{node:void 0,notAfter:[]}},addProseMirrorPlugins(){let e=new Mb(this.name),t=this.options.node||this.editor.schema.topNodeType.contentMatch.defaultType?.name||`paragraph`,n=Object.entries(this.editor.schema.nodes).map(([,e])=>e).filter(e=>(this.options.notAfter||[]).concat(t).includes(e.name));return[new kb({key:e,appendTransaction:(n,r,i)=>{let{doc:a,tr:o,schema:s}=i,c=e.getState(i),l=a.content.size,u=s.nodes[t];if(!n.some(e=>e.getMeta(`skipTrailingNode`))&&c)return o.insert(l,u.create())},state:{init:(e,t)=>{let r=t.tr.doc.lastChild;return!sD({node:r,types:n})},apply:(e,t)=>{if(!e.docChanged||e.getMeta(`__uniqueIDTransaction`))return t;let r=e.doc.lastChild;return!sD({node:r,types:n})}}})]}}),zde=DE.create({name:`undoRedo`,addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:e,dispatch:t})=>XE(e,t),redo:()=>({state:e,dispatch:t})=>ZE(e,t)}},addProseMirrorPlugins(){return[xde(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Ñ":()=>this.editor.commands.undo(),"Shift-Mod-Ñ":()=>this.editor.commands.redo()}}}),{getOwnPropertyNames:Bde,getOwnPropertySymbols:Vde}=Object,{hasOwnProperty:Hde}=Object.prototype;function cD(e,t){return function(n,r,i){return e(n,r,i)&&t(n,r,i)}}function lD(e){return function(t,n,r){if(!t||!n||typeof t!=`object`||typeof n!=`object`)return e(t,n,r);let{cache:i}
307=r,a=i.get(t),o=i.get(n);if(a&&o)return a===n&&o===t;i.set(t,n),i.set(n,t);let s=e(t,n,r);return i.delete(t),i.delete(n),s}}function Ude(e){return e?.[Symbol.toStringTag]}function uD(e){return Bde(e).concat(Vde(e))}var Wde=Object.hasOwn||((e,t)=>Hde.call(e,t));function dD(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var Gde=`__v`,Kde=`__o`,qde=`_owner`,Jde=typeof Float16Array<`u`,{getOwnPropertyDescriptor:fD,keys:pD}=Object;function Yde(e,t){return e.byteLength===t.byteLength&&yD(new Uint8Array(e),new Uint8Array(t))}function Xde(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Zde(e,t){return e.byteLength===t.byteLength&&yD(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Qde(e,t){return dD(e.getTime(),t.getTime())}function mD(e,t,n){return e.name===t.name&&e.message===t.message&&e.stack===t.stack&&n.equals(e.cause,t.cause,`cause`,`cause`,e,t,n)}function $de(e,t){return e===t}function hD(e,t,n){let r=e.size;if(r!==t.size)return!1;if(!r)return!0;let i=Array(r),a=e.entries(),o,s,c=0;for(;(o=a.next())&&!o.done;){let r=t.entries(),a=!1,l=0;for(;(s=r.next())&&!s.done;){if(i[l]){l++;continue}let r=o.value,u=s.value;if(n.equals(r[0],u[0],c,l,e,t,n)&&n.equals(r[1],u[1],r[0],u[0],e,t,n)){a=i[l]=!0;break}l++}if(!a)return!1;c++}return!0}var efe=dD;function gD(e,t,n){let r=pD(e),i=r.length;if(pD(t).length!==i)return!1;for(;i-- >0;)if(!xD(e,t,n,r[i]))return!1;return!0}function _D(e,t,n){let r=uD(e),i=r.length;if(uD(t).length!==i)return!1;let a,o,s;for(;i-- >0;)if(a=r[i],!xD(e,t,n,a)||(o=fD(e,a),s=fD(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function tfe(e,t){return dD(e.valueOf(),t.valueOf())}function nfe(e,t){return e.source===t.source&&e.flags===t.flags}function vD(e,t,n){let r=e.size;if(r!==t.size)return!1;if(!r)return!0;let i=Array(r),a=e.values(),o,s;for(;(o=a.next())&&!o.done;){let r=t.values(),a=!1,c=0;for(;(s=r.next())&&!s.done;){if(!i[c]&&n.equals(o.value,s.value,o.value,s.value,e,t,n)){a=i[c]=!0;break}c++}if(!a)return!1}return!0}function yD(e,t){let n=e.length;if(t.length!==n||e.byteOffset!==t.byteOffset)return!1;if(e instanceof Float64Array||e instanceof Float32Array||Jde&&e instanceof Float16Array){for(;n-- >0;)if(e[n]!==t[n]&&(e[n]===e[n]||t[n]===t[n]))return!1;return!0}for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function rfe(e,t){return e.href===t.href?!0:e.protocol===t.protocol&&e.username===t.username&&e.password===t.password&&e.host===t.host&&e.pathname===t.pathname&&e.hash===t.hash&&ife(e.searchParams,t.searchParams)}function ife(e,t){let n=e.toString(),r=t.toString();return n===r||bD(n)===bD(r)}function bD(e){return e.split(`&`).sort().join(`&`)}function xD(e,t,n,r){return(r===qde||r===Kde||r===Gde)&&(e.$$typeof||t.$$typeof)?!0:Wde(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var afe=`[object ArrayBuffer]`,ofe=`[object Arguments]`,sfe=`[object Boolean]`,cfe=`[object DataView]`,lfe=`[object Date]`,ufe=`[object Error]`,dfe=`[object Map]`,ffe=`[object Number]`,pfe=`[object Object]`,mfe=`[object RegExp]`,hfe=`[object Set]`,gfe=`[object String]`,_fe={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},vfe=`[object URL]`,yfe=Object.prototype.toString;function bfe({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:c,arePrimitiveWrappersEqual:l,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:f,areUrlsEqual:p,unknownTagComparators:m}){return function(h,g,_){if(h===g)return!0;if(h==null||g==null)return!1;let v=typeof h;if(v!==typeof g)return!1;if(v!==`object`)return v===`number`?s(h,g,_):v===`function`?a(h,g,_):!1;let y=h.constructor;if(y!==g.constructor)return!1;if(y===Object)return c(h,g,_);if(Array.isArray(h))return t(h,g,_);if(y===Date)return r(h,g,_);if(y===RegExp)return u(h,g,_);if(y===Map)return o(h,g,_);if(y===Set)return d(h,g,_);let b=yfe.call(h);if(b===lfe)return r(h,g,_);if(b===mfe)return u(h,g,_);if(b===dfe)return o(h,g,_);if(b===hfe)return d(h,g,_);if(b===pfe)return typeof h.then!=`function`&&typeof g.then!=`function`&&c(h,g,_);if(b===vfe)return p(h,g,_);if(b===ufe)return i(h,g,_);if(b===ofe)return c(h,g,_);if(_fe[b])return f(h,g,_);if(b===afe)return e(h,g,_);if(b===cfe)return n(h,g,_);if(b===sfe||b===ffe||b===gfe)return l(h,g,_);if(m){let e=m[b];if(!e){let t=Ude(h);t&&(e=m[t])}if(e)return e(h,g,_)}return!1}}function xfe({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:Yde,areArraysEqual:n?_D:Xde,areDataViewsEqual:Zde,areDatesEqual:Qde,areErrorsEqual:n?cD(mD,_D):cD(mD,gD),areFunctionsEqual:$de,areMapsEqual:n?cD(hD,_D):hD,areNumbersEqual:efe,areObjectsEqual:n?_D:gD,arePrimitiveWrappersEqual:tfe,areRegExpsEqual:nfe,areSetsEqual:n?cD(vD,_D):vD,areTypedArraysEqual:n?cD(yD,_D):yD,areUrlsEqual:rfe,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){let e=lD(r.areArraysEqual),t=lD(r.areErrorsEqual),n=lD(r.areMapsEqual),i=lD(r.areObjectsEqual),a=lD(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areErrorsEqual:t,areMapsEqual:n,areObjectsEqual:i,areSetsEqual:a})}return r}function Sfe(e){return function(t,n,r,i,a,o,s){return e(t,n,s)}}function Cfe({circular:e,comparator:t,createState:n,equals:r,strict:i}){if(n)return function(a,o){let{cache:s=e?new WeakMap:void 0,meta:c}=n();return t(a,o,{cache:s,equals:r,meta:c,strict:i})};
307if(e)return function(e,n){return t(e,n,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};let a={cache:void 0,equals:r,meta:void 0,strict:i};return function(e,n){return t(e,n,a)}}var wfe=SD();SD({strict:!0}),SD({circular:!0}),SD({circular:!0,strict:!0}),SD({createInternalComparator:()=>dD}),SD({strict:!0,createInternalComparator:()=>dD}),SD({circular:!0,createInternalComparator:()=>dD}),SD({circular:!0,createInternalComparator:()=>dD,strict:!0});function SD(e={}){let{circular:t=!1,createInternalComparator:n,createState:r,strict:i=!1}=e,a=bfe(xfe(e));return Cfe({circular:t,comparator:a,createState:r,equals:n?n(a):Sfe(a),strict:i})}var Tfe=a((e=>{var t=s(),n=Er();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,c=t.useEffect,l=t.useMemo,u=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,s){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),s!==void 0&&f.hasValue){var t=f.value;if(s(t,e))return c=t}return c=e}if(t=c,i(o,e))return t;var n=r(e);return s!==void 0&&s(t,n)?(o=e,t):(o=e,c=n)}var a=!1,o,c,l=n===void 0?null:n;return[function(){return e(t())},l===null?void 0:function(){return e(l())}]},[t,n,r,s]);var p=a(e,d[0],d[1]);return c(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}})),CD=a(((e,t)=>{t.exports=Tfe()})),wD=new WeakSet,TD=new WeakSet;function ED(e){let t=e;return wD.add(t),t}function DD(e){return Array.isArray(e)&&wD.has(e)}function OD(e){return e.flatMap(e=>e==null?[]:Array.isArray(e)&&TD.has(e)&&!DD(e)?OD(e):[e])}function Efe(e,t){if(e===`slot`)return 0;if(e instanceof Function){let n=e(t);return Array.isArray(n)&&!DD(n)&&!TD.has(n)?ED(n):n}let{children:n,...r}=t??{};if(e===`svg`)throw Error(`SVG elements are not supported in the JSX syntax, use the array syntax instead`);if(Array.isArray(n)){if(DD(n))return ED([e,r,n]);if(n.length===0)return ED([e,r]);let t=OD(n);return t.length===0?ED([e,r]):ED([e,r,...t])}return ED(n==null?[e,r]:[e,r,n])}var kD=(e,t)=>Efe(e,t),Dfe=(e,t)=>{let{state:n}=e,{selection:r}=n;if(!r.empty)return!1;let{$from:i}=r;if(i.parentOffset!==0)return!1;let a=i.depth-1;if(a<0)return!1;let o=i.node(a),s=i.index(a);if(s===0)return!1;if(o.type===t)return e.commands.lift(t.name);let c=o.child(s-1);if(c.type!==t||!c.lastChild?.isTextblock)return!1;let l=i.before()-1-1;return e.commands.command(({tr:e,dispatch:t})=>{if(!t)return!0;let n=i.parent.content,r=new W(n,0,0);return e.replace(l,i.after(),r),e.setSelection(G.create(e.doc,l+n.size)),e.scrollIntoView(),t(e),!0})},Ofe=/^\s*>\s$/,kfe=ME.create({name:`blockquote`,addOptions(){return{HTMLAttributes:{}}},content:`block+`,group:`block`,defining:!0,parseHTML(){return[{tag:`blockquote`}]},renderHTML({HTMLAttributes:e}){return kD(`blockquote`,{...NT(this.options.HTMLAttributes,e),children:kD(`slot`,{})})},parseMarkdown:(e,t)=>{let n=t.parseBlockChildren??t.parseChildren;return t.createNode(`blockquote`,void 0,n(e.tokens||[]))},renderMarkdown:(e,t)=>{if(!e.content)return``;let n=[];return e.content.forEach((e,r)=>{let i=(t.renderChild?.call(t,e,r)??t.renderChildren([e])).split(` 308`).map(e=>e.trim()===``?`>`:`> ${e}`);n.push(i.join(` 309`))}),n.join(` 310> 311`)},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote(),Backspace:()=>Dfe(this.editor,this.type)}},addInputRules(){return[jE({find:Ofe,type:this.type})]}}),Afe=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,jfe=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,Mfe=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,Nfe=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,Pfe=CE.create({name:`bold`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`strong`},{tag:`b`,getAttrs:e=>e.style.fontWeight!==`normal`&&null},{style:`font-weight=400`,clearMark:e=>
vendor: 8,791 bytes, lines 311-330
311e.type.name===this.name},{style:`font-weight`,getAttrs:e=>/^(bold(er)?|[5-9]\d{2,})$/.test(e)&&null}]},renderHTML({HTMLAttributes:e}){return kD(`strong`,{...NT(this.options.HTMLAttributes,e),children:kD(`slot`,{})})},markdownTokenName:`strong`,parseMarkdown:(e,t)=>t.applyMark(`bold`,t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:`<strong>`,close:`</strong>`}},renderMarkdown:(e,t)=>`**${t.renderChildren(e)}**`,addCommands(){return{setBold:()=>({commands:e})=>e.setMark(this.name),toggleBold:()=>({commands:e})=>e.toggleMark(this.name),unsetBold:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[kE({find:Afe,type:this.type}),kE({find:Mfe,type:this.type})]},addPasteRules(){return[NE({find:jfe,type:this.type}),NE({find:Nfe,type:this.type})]}}),Ffe=e=>{let t=/`([^`]+)`(?!`)$/.exec(e);return!t||t.index>0&&e[t.index-1]==="`"?null:{index:t.index,text:t[0],replaceWith:t[1]}},Ife=e=>{let t=/`([^`]+)`(?!`)/g,n=[],r;for(;(r=t.exec(e))!==null;)r.index>0&&e[r.index-1]==="`"||n.push({index:r.index,text:r[0],replaceWith:r[1]});return n},Lfe=CE.create({name:`code`,addOptions(){return{HTMLAttributes:{}}},excludes:`_`,code:!0,exitable:!0,parseHTML(){return[{tag:`code`}]},renderHTML({HTMLAttributes:e}){return[`code`,NT(this.options.HTMLAttributes,e),0]},markdownTokenName:`codespan`,parseMarkdown:(e,t)=>t.applyMark(`code`,[{type:`text`,text:e.text||``}]),renderMarkdown:(e,t)=>e.content?`\`${t.renderChildren(e.content)}\``:``,addCommands(){return{setCode:()=>({commands:e})=>e.setMark(this.name),toggleCode:()=>({commands:e})=>e.toggleMark(this.name),unsetCode:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[kE({find:Ffe,type:this.type})]},addPasteRules(){return[NE({find:Ife,type:this.type})]}}),AD=4,Rfe=/^```([a-z]+)?[\s\n]$/,zfe=/^~~~([a-z]+)?[\s\n]$/,Bfe=ME.create({name:`codeBlock`,addOptions(){return{languageClassPrefix:`language-`,exitOnTripleEnter:!0,exitOnArrowDown:!0,exitOnArrowUp:!0,defaultLanguage:null,enableTabIndentation:!1,tabSize:AD,HTMLAttributes:{}}},content:`text*`,marks:``,group:`block`,code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:e=>{let{languageClassPrefix:t}=this.options;return t&&[...e.firstElementChild?.classList||[]].filter(e=>e.startsWith(t)).map(e=>e.replace(t,``))[0]||null},rendered:!1}}},parseHTML(){return[{tag:`pre`,preserveWhitespace:`full`}]},renderHTML({node:e,HTMLAttributes:t}){return[`pre`,NT(this.options.HTMLAttributes,t),[`code`,{class:e.attrs.language?this.options.languageClassPrefix+e.attrs.language:null},0]]},markdownTokenName:`code`,parseMarkdown:(e,t)=>e.raw?.startsWith("```")===!1&&e.raw?.startsWith(`~~~`)===!1&&e.codeBlockStyle!==`indented`?[]:t.createNode(`codeBlock`,{language:e.lang||null},e.text?[t.createTextNode(e.text)]:[]),renderMarkdown:(e,t)=>{let n=``,r=e.attrs?.language||``;return n=e.content?[`\`\`\`${r}`,t.renderChildren(e.content),"```"].join(` 312`):`\`\`\`${r}\n\n\`\`\``,n},addCommands(){return{setCodeBlock:e=>({commands:t})=>t.setNode(this.name,e),toggleCodeBlock:e=>({commands:t})=>t.toggleNode(this.name,`paragraph`,e)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{let{empty:e,$anchor:t}=this.editor.state.selection,n=t.pos===1;return!e||t.parent.type.name!==this.name?!1:n||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Tab:({editor:e})=>{if(!this.options.enableTabIndentation)return!1;let t=this.options.tabSize??AD,{state:n}=e,{selection:r}=n,{$from:i,empty:a}=r;if(i.parent.type!==this.type)return!1;let o=` `.repeat(t);return a?e.commands.insertContent(o):e.commands.command(({tr:e})=>{let{from:t,to:i}=r,a=n.doc.textBetween(t,i,` 313`,` 314`).split(` 315`).map(e=>o+e).join(` 316`);return e.replaceWith(t,i,n.schema.text(a)),!0})},"Shift-Tab":({editor:e})=>{if(!this.options.enableTabIndentation)return!1;let t=this.options.tabSize??AD,{state:n}=e,{selection:r}=n,{$from:i,empty:a}=r;return i.parent.type===this.type?a?e.commands.command(({tr:e})=>{let{pos:r}=i,a=i.start(),o=i.end(),s=n.doc.textBetween(a,o,` 317`,` 318`).split(` 319`),c=0,l=0,u=r-a;for(let e=0;e<s.length;e+=1){if(l+s[e].length>=u){c=e;break}l+=s[e].length+1}let d=s[c].match(/^ */)?.[0]||``,f=Math.min(d.length,t);if(f===0)return!0;let p=a;for(let e=0;e<c;e+=1)p+=s[e].length+1;return e.delete(p,p+f),r-p<=f&&e.setSelection(G.create(e.doc,p)),!0}):e.commands.command(({tr:e})=>{let{from:i,to:a}=r,o=n.doc.textBetween(i,a,` 320`,` 321`).split(` 322`).map(e=>{let n=e.match(/^ */)?.[0]||``,r=Math.min(n.length,t);return e.slice(r)}).join(` 323`);return e.replaceWith(i,a,n.schema.text(o)),!0}):!1},Enter:({editor:e})=>{if(!this.options.exitOnTripleEnter)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type)return!1;let a=r.parentOffset===r.parent.nodeSize-2,o=r.parent.textContent.endsWith(` 324 325`);return!a||!o?!1:e.chain().command(({tr:e})=>(e.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowUp:({editor:e})=>{if(!this.options.exitOnArrowUp)return!1;let{state:t}=e,{selection:n}=t,{$from:r,empty:i}=n;if(!i||r.parent.type!==this.type||r.parentOffset!==0)return!1;let a=r.before();return a>0?!1:e.commands.insertDefaultBlock({pos:a})},ArrowDown:({editor:e})=>{if(!this.options.exitOnArrowDown)return!1;let{state:t}=e,{selection:n,doc:r}=t,{$from:i,empty:a}=n;if(!a||i.parent.type!==this.type||i.parentOffset!==i.parent.nodeSize-2)return!1;let o=i.after();return o===void 0?!1:r.nodeAt(o)?e.commands.command(({tr:e})=>(e.setSelection(lb.near(r.resolve(o))),!0)):e.commands.exitCode()}}},addInputRules(){return[AE({find:Rfe,type:this.type,getAttributes:e=>({language:e[1]})}),AE({find:zfe,type:this.type,getAttributes:e=>({language:e[1]})})]},addProseMirrorPlugins(){return[new kb({key:new Mb(`codeBlockVSCodeHandler`),props:{handlePaste:(e,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;let n=t.clipboardData.getData(`text/plain`),r=t.clipboardData.getData(`vscode-editor-data`),i=(r?JSON.parse(r):void 0)?.mode;if(!n||!i)return!1;let{tr:a,schema:o}=e.state,s=o.text(n.replace(/\r\n?/g,` 326`));return a.replaceSelectionWith(this.type.create({language:i},s)),a.selection.$from.parent.type!==this.type&&a.setSelection(G.near(a.doc.resolve(Math.max(0,a.selection.from-2)))),a.setMeta(`paste`,!0),e.dispatch(a),!0}}})]}}),Vfe=ME.create({name:`doc`,topNode:!0,content:`block+`,renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,` 327 328`):``}),Hfe=ME.create({name:`hardBreak`,markdownTokenName:`br`,addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:`inline`,selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:`br`}]},renderHTML({HTMLAttributes:e}){return[`br`,NT(this.options.HTMLAttributes,e)]},renderText(){return` 329`},renderMarkdown:()=>` 330`,parseMarkdown:()=>({type:`hardBreak`}),addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=n;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:a}=this.options,{splittableMarks:o}=r.extensionManager,s=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&s&&a){let t=s.filter(e=>o.includes(e.type.name));e.ensureMarks(t)}return!0}).scrollIntoView().run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Ufe=ME.create({name:`heading`,addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:`inline*`,group:`block`,defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(e=>({tag:`h${e}`,attrs:{level:e}}))},renderHTML({node:e,HTMLAttributes:t}){return[`h${this.options.levels.includes(e.attrs.level)?e.attrs.level:this.options.levels[0]}`,NT(this.options.HTMLAttributes,t),0]},parseMarkdown:(e,t)=>t.createNode(`heading`,{level:e.depth||1},t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>{let n=e.attrs?.level?parseInt(e.attrs.level,10):1,r=`#`.repeat(n);return e.content?`${r} ${t.renderChildren(e.content)}`:``},addCommands(){return{setHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.setNode(this.name,e):!1,toggleHeading:e=>({commands:t})=>this.options.levels.includes(e.level)?t.toggleNode(this.name,`paragraph`,e):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((e,t)=>({...e,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(e=>AE({find:RegExp(`^(#{${Math.min(...this.options.levels)},${e}}
330)\\s$`),type:this.type,getAttributes:{level:e}}))}}),Wfe=ME.create({name:`horizontalRule`,addOptions(){return{HTMLAttributes:{},nextNodeType:`paragraph`}},group:`block`,parseHTML(){return[{tag:`hr`}]},renderHTML({HTMLAttributes:e}){return[`hr`,NT(this.options.HTMLAttributes,e)]},markdownTokenName:`hr`,parseMarkdown:(e,t)=>t.createNode(`horizontalRule`),renderMarkdown:()=>`---`,addCommands(){return{setHorizontalRule:()=>({chain:e,state:t})=>{if(!Aue(t,t.schema.nodes[this.name]))return!1;let{selection:n}=t,{$to:r}=n,i=e();return ZT(n)?i.insertContentAt(r.pos,{type:this.name}):i.insertContent({type:this.name}),i.command(({state:e,tr:t,dispatch:n})=>{if(n){let{$to:n}=t.selection,r=n.end();if(n.nodeAfter)n.nodeAfter.isTextblock?t.setSelection(G.create(t.doc,n.pos+1)):n.nodeAfter.isBlock?t.setSelection(K.create(t.doc,n.pos)):t.setSelection(G.create(t.doc,n.pos));else{let i=(e.schema.nodes[this.options.nextNodeType]||n.parent.type.contentMatch.defaultType)?.create();i&&(t.insert(r,i),t.setSelection(G.create(t.doc,r+1)))}t.scrollIntoView()}return!0}).run()}}},addInputRules(){return[nde({find:/^(?:---|â-|___\s|\*\*\*\s)$/,type:this.t
vendor: 4,509 bytes, line 330
330ype})]}}),Gfe=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,Kfe=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,qfe=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,Jfe=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,Yfe=CE.create({name:`italic`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`em`},{tag:`i`,getAttrs:e=>e.style.fontStyle!==`normal`&&null},{style:`font-style=normal`,clearMark:e=>e.type.name===this.name},{style:`font-style=italic`}]},renderHTML({HTMLAttributes:e}){return[`em`,NT(this.options.HTMLAttributes,e),0]},addCommands(){return{setItalic:()=>({commands:e})=>e.setMark(this.name),toggleItalic:()=>({commands:e})=>e.toggleMark(this.name),unsetItalic:()=>({commands:e})=>e.unsetMark(this.name)}},markdownTokenName:`em`,parseMarkdown:(e,t)=>t.applyMark(`italic`,t.parseInline(e.tokens||[])),markdownOptions:{htmlReopen:{open:`<em>`,close:`</em>`}},renderMarkdown:(e,t)=>`*${t.renderChildren(e)}*`,addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[kE({find:Gfe,type:this.type}),kE({find:qfe,type:this.type})]},addPasteRules(){return[NE({find:Kfe,type:this.type}),NE({find:Jfe,type:this.type})]}}),Xfe=`aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
330ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2`,Zfe=`ελ1Ï
2бг1ел3деÑи4еÑ2каÑолик6ом3мÐ
330ºÐ´2он1Ñква6онлайн5Ñг3ÑÑÑ2Ñ2ÑайÑ3Ñб3ÑкÑ3Òаз3Õ°Õ¡Õµ3×שר××5×§××3Ø§Ø¨ÙØ¸Ø¨Ù5راÙ
ÙÙ5ÙØ§Ø±Ø¯Ù4Ø¨ØØ±ÙÙ5جزائر5Ø³Ø¹ÙØ¯ÙØ©6عÙÙØ§Ù5Ù
غرب5Ù
ارات5ÛØ±Ø§Ù5بارت2زار4ÙØªÙ3ھارت5تÙÙØ³4Ø³ÙØ¯Ø§Ù3Ø±ÙØ©5Ø´Ø¨ÙØ©4عراÙ2ب2Ù
اÙ4ÙÙØ³Ø·ÙÙ6ÙØ·Ø±3ÙØ§Ø«ÙÙÙÙ6ÙÙ
3Ù
صر2ÙÙØ³Ùا5ÙØ±ÙتاÙÙØ§7ÙØ¹4ÙÙ
راÙ5پاکستاÙ7ÚØ§Ø±Øª4à¤à¥à¤®3नà¥à¤3à¤à¤¾à¤°à¤¤0मà¥3à¥à¤¤5सà¤à¤à¤ न5বাà¦à¦²à¦¾5à¦à¦¾à¦°à¦¤2ৰত4à¨à¨¾à¨°à¨¤4àªàª¾àª°àª¤4à¬à¬¾à¬°à¬¤4à®à®¨à¯à®¤à®¿à®¯à®¾6லà®à¯à®à¯6à®à®¿à®à¯à®à®ªà¯à®ªà¯à®°à¯11à°à°¾à°°à°¤à±5à²à²¾à²°à²¤4à´à´¾à´°à´¤à´5à¶½à¶à¶à·4à¸à¸à¸¡3à¹à¸à¸¢3ລາວ3áá2ã¿ããª3ã¢ãã¾ã³4ã¯ã©ã¦ã4ã°ã¼ã°ã«4ã³ã 2ã¹ãã¢3ã»ã¼ã«3ãã¡ãã·ã§ã³6ãã¤ã³ã4ä¸ç2ä¸ä¿¡1å½1å1æç½3äºé©¬é3ä¼ä¸2ä½å±±2ä¿¡æ¯2å¥åº·2å
«å¦2å
¬å¸1ç2å°æ¹¾1ç£2åå1åº1æ 2åé0大é
åº5å¨çº¿2大æ¿2天主æ3娱ä¹2å®¶é»2广ä¸2å¾®å2æ
å2æç±ä½ 3ææº2æè2æ¿å¡1åº2æ°å å¡2é»2æ¶å°2æ¸ç±2æºæ2淡马é¡3游æ2æ¾³é2ç¹ç2ç§»å¨2ç»ç»æºæ4ç½å1åº1ç«1ç»2èé2è°·æ2è´ç©2é販2éå¢2é»è¨çç§4é£å©æµ¦3é£å2é¤å
2馿 ¼éæ3港2ë·ë·1ì»´2ì¼ì±2íêµ2`,jD=`numeric`,MD=`ascii`,ND=`alpha`,PD=`asciinumeric`,FD=`alphanumeric`,ID=`domain`,LD=`emoji`,Qfe=`scheme`,$fe=`slashscheme`,RD=`whitespace`;function epe(e,t){return e in t||(t[e]=[]),t[e]}function zD(e,t,n){t[jD]&&(t[PD]=!0,t[FD]=!0),t[MD]&&(t[PD]=!0,t[ND]=!0),t[PD]&&(t[FD]=!0),t[ND]&&(t[FD]=!0),t[FD]&&(t[ID]=!0),t[LD]&&(t[ID]=!0);for(let r in t){let t=epe(r,n);t.indexOf(e)<0&&t.push(e)}}function tpe(e,t){let n={};for(let r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function BD(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}BD.groups={},BD.prototype={accepts(){return!!this.t},go(e){let t=this,n=t.j[e];if(n)return n;for(let n=0;n<t.jr.length;n++){let r=t.jr[n][0],i=t.jr[n][1];if(i&&r.test(e))return i}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr(e,t,n,r){r||=BD.groups;let i;return t&&t.j?i=t:(i=new BD(t),n&&r&&zD(t,n,r)),this.jr.push([e,i]),i},ts(e,t,n,r){let i=this,a=e.length;if(!a)return i;for(let t=0;t<a-1;t++)i=i.tt(e[t]);return i.tt(e[a-1],t,n,r)},tt(e,t,n,r){r||=BD.groups;let i=this;if(t&&t.j)return i.j[e]=t,t;let a=t,o,s=i.go(e);return s?(o=new BD,Object.assign(o.j,s.j),o.jr.push.apply(o.jr,s.jr),o.jd=s.jd,o.t=s.t):o=new BD,a&&(r&&(o.t&&typeof o.t==`string`?zD(a,Object.assign(tpe(o.t,r),n),r):n&&zD(a,n,r)),o.t=a),i.j[e]=o,o}};var VD=(e,t,n,r,i)=>e.ta(t,n,r,i),HD=(e,t,n,r,i)=>e.tr(t,n,r,i),UD=(e,t,n,r,i)=>e.ts(t,n,r,i),J=(e,t,n,r,i)=>e.tt(t,n,r,i),WD=`WORD`,GD=`UWORD`,KD=`ASCIINUMERICAL`,qD=`ALPHANUMERICAL`,JD=`LOCALHOST`,YD=`TLD`,XD=`UTLD`,ZD=`SCHEME`,QD=`SLASH_SCHEME`,$D=`NUM`,eO=`WS`,tO=`NL`,nO=`OPENBRACE`,rO=`CLOSEBRACE`,iO=`OPENBRACKET`,aO=`CLOSEBRACKET`,oO=`OPENPAREN`,sO=`CLOSEPAREN`,cO=`OPENANGLEBRACKET`,lO=`CLOSEANGLEBRACKET`,uO=`FULLWIDTHLEFTPAREN`,dO=`FULLWIDTHRIGHTPAREN`,fO=`LEFTCORNERBRACKET`,pO=`RIGHTCORNERBRACKET`,mO=`LEFTWHITECORNERBRACKET`,hO=`RIGHTWHITECORNERBRACKET`,gO=`FULLWIDTHLESSTHAN`,_O=`FULLWIDTHGREATERTHAN`,vO=`AMPERSAND`,yO=`APOSTROPHE`,bO=`ASTERISK`,xO=`AT`,SO=`BACKSLASH`,CO=`BACKTICK`,wO=`CARET`,TO=`COLON`,EO=`COMMA`,DO=`DOLLAR`,OO=`DOT`,kO=`EQUALS`,AO=`EXCLAMATION`,jO=`HYPHEN`,MO=`PERCENT`,NO=`PIPE`,PO=`PLUS`,FO=`POUND`,IO=`QUERY`,LO=`QUOTE`,RO=`FULLWIDTHMIDDLEDOT`,zO=`SEMI`,BO=`SLASH`,VO=`TILDE`,HO=`UNDERSCORE`,UO=`EMOJI`,WO=`SYM`,GO=Object.freeze({__proto__:null,ALPHANUMERICAL:qD,AMPERSAND:vO,APOSTROPHE:yO,ASCIINUMERICAL:KD,ASTERISK:bO,AT:xO,BACKSLASH:SO,BACKTICK:CO,CARET:wO,CLOSEANGLEBRACKET:lO,CLOSEBRACE:rO,CLOSEBRACKET:aO,CLOSEPAREN:sO,COLON:TO,COMMA:EO,DOLLAR:DO,DOT:OO,EMOJI:UO,EQUALS:kO,EXCLAMATION:AO,FULLWIDTHGREATERTHAN:_O,FULLWIDTHLEFTPAREN:uO,FULLWIDTHLESSTHAN:gO,FULLWIDTHMIDDLEDOT:RO,FULLWIDTHRIGHTPAREN:dO,HYPHEN:jO,LEFTCORNERBRACKET:fO,LEFTWHITECORNERBRACKET:mO,LOCALHOST:JD,NL:tO,NUM:$D,OPENANGLEBRACKET:cO,OPENBRACE:nO,OPENBRACKET:iO,OPENPAREN:oO,PERCENT:MO,PIPE:NO,PLUS:PO,POUND:FO,QUERY:IO,QUOTE:LO,RIGHTCORNERBRACKET:pO,RIGHTWHITECORNERBRACKET:hO,SCHEME:ZD,SEMI:zO,SLASH:BO,SLASH_SCHEME:QD,SYM:WO,TILDE:VO,TLD:YD,UNDERSCORE:HO,UTLD:XD,UWORD:GD,WORD:WD,WS:eO}),KO=/[a-z]/,qO=/\p{L}/u,JO=/\p{Emoji}
vendor: 9,129 bytes, lines 330-334
330/u,YO=/\d/,XO=/\s/,ZO=`\r`,QO=` 331`,npe=`ï¸`,rpe=`â`,$O=``,ek=null,tk=null;function ipe(e=[]){let t={};BD.groups=t;let n=new BD;ek??=ik(Xfe),tk??=ik(Zfe),J(n,`'`,yO),J(n,`{`,nO),J(n,`}`,rO),J(n,`[`,iO),J(n,`]`,aO),J(n,`(`,oO),J(n,`)`,sO),J(n,`<`,cO),J(n,`>`,lO),J(n,`ï¼`,uO),J(n,`ï¼`,dO),J(n,`ã`,fO),J(n,`ã`,pO),J(n,`ã`,mO),J(n,`ã`,hO),J(n,`ï¼`,gO),J(n,`ï¼`,_O),J(n,`&`,vO),J(n,`*`,bO),J(n,`@`,xO),J(n,"`",CO),J(n,`^`,wO),J(n,`:`,TO),J(n,`,`,EO),J(n,`$`,DO),J(n,`.`,OO),J(n,`=`,kO),J(n,`!`,AO),J(n,`-`,jO),J(n,`%`,MO),J(n,`|`,NO),J(n,`+`,PO),J(n,`#`,FO),J(n,`?`,IO),J(n,`"`,LO),J(n,`/`,BO),J(n,`;`,zO),J(n,`~`,VO),J(n,`_`,HO),J(n,`\\`,SO),J(n,`ã»`,RO);let r=HD(n,YO,$D,{[jD]:!0});HD(r,YO,r);let i=HD(r,KO,KD,{[PD]:!0}),a=HD(r,qO,qD,{[FD]:!0}),o=HD(n,KO,WD,{[MD]:!0});HD(o,YO,i),HD(o,KO,o),HD(i,YO,i),HD(i,KO,i);let s=HD(n,qO,GD,{[ND]:!0});HD(s,KO),HD(s,YO,a),HD(s,qO,s),HD(a,YO,a),HD(a,KO),HD(a,qO,a);let c=J(n,QO,tO,{[RD]:!0}),l=J(n,ZO,eO,{[RD]:!0}),u=HD(n,XO,eO,{[RD]:!0});J(n,$O,u),J(l,QO,c),J(l,$O,u),HD(l,XO,u),J(u,ZO),J(u,QO),HD(u,XO,u),J(u,$O,u);let d=HD(n,JO,UO,{[LD]:!0});J(d,`#`),HD(d,JO,d),J(d,npe,d);let f=J(d,rpe);J(f,`#`),HD(f,JO,d);let p=[[KO,o],[YO,i]],m=[[KO,null],[qO,s],[YO,a]];for(let e=0;e<ek.length;e++)rk(n,ek[e],YD,WD,p);for(let e=0;e<tk.length;e++)rk(n,tk[e],XD,GD,m);zD(YD,{tld:!0,ascii:!0},t),zD(XD,{utld:!0,alpha:!0},t),rk(n,`file`,ZD,WD,p),rk(n,`mailto`,ZD,WD,p),rk(n,`http`,QD,WD,p),rk(n,`https`,QD,WD,p),rk(n,`ftp`,QD,WD,p),rk(n,`ftps`,QD,WD,p),zD(ZD,{scheme:!0,ascii:!0},t),zD(QD,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let r=e[t][0],i=e[t][1]?{[Qfe]:!0}:{[$fe]:!0};r.indexOf(`-`)>=0?i[ID]=!0:KO.test(r)?YO.test(r)?i[PD]=!0:i[MD]=!0:i[jD]=!0,UD(n,r,r,i)}return UD(n,`localhost`,JD,{ascii:!0}),n.jd=new BD(WO),{start:n,tokens:Object.assign({groups:t},GO)}}function nk(e,t){let n=ape(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,i=[],a=0,o=0;for(;o<r;){let s=e,c=null,l=0,u=null,d=-1,f=-1;for(;o<r&&(c=s.go(n[o]));)s=c,s.accepts()?(d=0,f=0,u=s):d>=0&&(d+=n[o].length,f++),l+=n[o].length,a+=n[o].length,o++;a-=d,o-=f,l-=d,i.push({t:u.t,v:t.slice(a-l,a),s:a-l,e:a})}return i}function ape(e){let t=[],n=e.length,r=0;for(;r<n;){let i=e.charCodeAt(r),a,o=i<55296||i>56319||r+1===n||(a=e.charCodeAt(r+1))<56320||a>57343?e[r]:e.slice(r,r+2);t.push(o),r+=o.length}return t}function rk(e,t,n,r,i){let a,o=t.length;for(let n=0;n<o-1;n++){let o=t[n];e.j[o]?a=e.j[o]:(a=new BD(r),a.jr=i.slice(),e.j[o]=a),e=a}return a=new BD(n),a.jr=i.slice(),e.j[t[o-1]]=a,a}function ik(e){let t=[],n=[],r=0;for(;r<e.length;){let i=0;for(;`0123456789`.indexOf(e[r+i])>=0;)i++;if(i>0){t.push(n.join(``));for(let t=parseInt(e.substring(r,r+i),10);t>0;t--)n.pop();r+=i}else n.push(e[r]),r++}return t}var ak={defaultProtocol:`http`,events:null,format:sk,formatHref:sk,nl2br:!1,tagName:`a`,target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function ok(e,t=null){let n=Object.assign({},ak);e&&(n=Object.assign(n,e instanceof ok?e.o:e));let r=n.ignoreTags,i=[];for(let e=0;e<r.length;e++)i.push(r[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i}ok.prototype={o:ak,ignoreTags:[],defaultRender(e){return e},check(e){return this.get(`validate`,e.toString(),e)},get(e,t,n){let r=t!=null,i=this.o[e];return i&&(typeof i==`object`?(i=n.t in i?i[n.t]:ak[e],typeof i==`function`&&r&&(i=i(t,n))):typeof i==`function`&&r&&(i=i(t,n.t,n)),i)},getObj(e,t,n){let r=this.o[e];return typeof r==`function`&&t!=null&&(r=r(t,n.t,n)),r},render(e){let t=e.render(this);return(this.get(`render`,null,e)||this.defaultRender)(t,e.t,e)}};function sk(e){return e}function ck(e,t){this.t=`token`,this.v=e,this.tk=t}ck.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),n=e.get(`truncate`,t,this),r=e.get(`format`,t,this);return n&&r.length>n?r.substring(0,n)+`â¦`:r},toFormattedHref(e){return e.get(`formatHref`,this.toHref(e.get(`defaultProtocol`)),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=ak.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get(`validate`,this.toString(),this)},render(e){let t=this,n=this.toHref(e.get(`defaultProtocol`)),r=e.get(`formatHref`,n,this),i=e.get(`tagName`,n,t),a=this.toFormattedString(e),o={},s=e.get(`className`,n,t),c=e.get(`target`,n,t),l=e.get(`rel`,n,t),u=e.getObj(`attributes`,n,t),d=e.getObj(`events`,n,t);return o.href=r,s&&(o.class=s),c&&(o.target=c),l&&(o.rel=l),u&&Object.assign(o,u),{tagName:i,attributes:o,content:a,eventListeners:d}}};function lk(e,t){class n extends ck{constructor(t,n){super(t,n),this.t=e}}for(let e in t)n.prototype[e]=t[e];return n.t=e,n}var ope=lk(`email`,{isLink:!0,toHref(){return`mailto:`+this.toString()}}),uk=lk(`text`),spe=lk(`nl`),dk=lk(`url`,{isLink:!0,toHref(e=ak.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==JD&&e[1].t===TO}}),fk=e=>new BD(e);function cpe({groups:e}){let t=e.domain.concat([vO,bO,xO,SO,CO,wO,DO,kO,jO,$D,MO,NO,PO,FO,BO,WO,VO,HO]),n=[yO,TO,EO,OO,AO,MO,IO,LO,zO,cO,lO,nO,rO,aO,iO,oO,sO,uO,dO,fO,pO,mO,hO,gO,_O],r=[vO,yO,bO,SO,CO,wO,DO,kO,jO,nO,rO,MO,NO,PO,FO,IO,BO,WO,VO,HO],i=fk(),a=J(i,VO);VD(a,r,a),VD(a,e.domain,a);let o=fk(),s=fk(),c=fk();VD(i,e.domain,o),VD(i,e.scheme,s),VD(i,e.slashscheme,c),VD(o,r,a),VD(o,e.domain,o);let l=J(o,xO);J(a,xO,l),J(s,xO,l),J(c,xO,l);let u=J(a,OO);VD(u,r,a),VD(u,e.domain,a);let d=fk();VD(l,e.domain,d),VD(d,e.domain,d);let f=J(d,OO);VD(f,e.domain,d);let p=fk(ope);VD(f,e.tld,p),VD(f,e.utld,p),J(l,JD,p);let m=J(d,jO);J(m,jO,m),VD(m,e.domain,d),VD(p,e.domain,d),J(p,OO,f),J(p,jO,m);let h=J(o,jO),g=J(o,OO);J(h,jO,h),VD(h,e.domain,o),VD(g,r,a),VD(g,e.domain,o);let _=fk(dk);VD(g,e.tld,_),VD(g,e.utld,_),VD(_,e.domain,o),VD(_,r,a),J(_,OO,g),J(_,jO,h),J(_,xO,l);let v=J(_,TO),y=fk(dk);VD(v,e.numeric,y);let b=fk(dk),x=fk();VD(b,t,b),VD(b,n,x),VD(x,t,b),VD(x,n,x),J(_,BO,b),J(y,BO,b);let S=J(s,TO),C=J(J(J(c,TO),BO),BO);VD(s,e.domain,o),J(s,OO,g),J(s,jO,h),VD(c,e.domain,o),J(c,OO,g),J(c,jO,h),VD(S,e.domain,b),J(S,BO,b),J(S,IO,b),VD(C,e.domain,b),VD(C,t,b),J(C,BO,b);let w=[[nO,rO],[iO,aO],[oO,sO],[cO,lO],[uO,dO],[fO,pO],[mO,hO],[gO,_O]];for(let e=0;e<w.length;e++){let[r,i]=w[e],a=J(b,r);J(x,r,a);let o=fk(dk);VD(a,t,o);let s=fk();VD(a,n,s),J(a,i,b),VD(o,t,o),VD(o,n,s),VD(s,t,o),VD(s,n,s),J(o,i,b),J(s,i,b)}return J(i,JD,_),J(i,tO,spe),{start:i,tokens:GO}}function lpe(e,t,n){let r=n.length,i=0,a=[],o=[];for(;i<r;){let s=e,c=null,l=null,u=0,d=null,f=-1;for(;i<r&&!(c=s.go(n[i].t));)o.push(n[i++]);for(;i<r&&(l=c||s.go(n[i].t));)c=null,s=l,s.accepts()?(f=0,d=s):f>=0&&f++,i++,u++;if(f<0)i-=u,i<r&&(o.push(n[i]),i++);else{o.length>0&&(a.push(pk(uk,t,o)),o=[]),i-=f,u-=f;let e=d.t,r=n.slice(i-u,i);a.push(pk(e,t,r))}}return o.length>0&&a.push(pk(uk,t,o)),a}function pk(e,t,n){let r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}var upe=typeof console<`u`&&console&&console.warn||(()=>{}),dpe=`until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`,mk={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function fpe(){return BD.groups={},mk.scanner=null,mk.parser=null,mk.tokenQueue=[],mk.pluginQueue=[],mk.customSchemes=[],mk.initialized=!1,mk}function hk(e,t=!1){if(mk.initialized&&upe(`linkifyjs: already initialized - will not register custom scheme "${e}" ${dpe}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format. 3321. Must only contain digits, lowercase ASCII letters or "-" 3332. Cannot start or end with "-" 3343. "-" cannot repeat`);mk.customSchemes.push([e,t])}function ppe(){mk.scanner=ipe(mk.customSchemes);for(let e=0;e<mk.tokenQueue.length;e++)mk.tokenQueue[e][1]({scanner:mk.scanner});mk.parser=cpe(mk.scanner.tokens);for(let e=0;e<mk.pluginQueue.length;e++)mk.pluginQueue[e][1]({scanner:mk.scanner,parser:mk.parser});return mk.initialized=!0,mk}function gk(e){return mk.initialized||ppe(),lpe(mk.parser.start,e,nk(mk.scanner.start,e))}gk.scan=nk;function _k(e,t=null,n=null){if(t&&typeof t==`object`){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}let r=new ok(n),i=gk(e),a=[];for(let e=0;e<i.length;e++){let n=i[e];n.isLink&&(!t||n.t===t)&&r.check(n)&&a.push(n.toFormattedObject(r))}return a}var vk=`[\0- \xA0áá â-\u2029âã]`,mpe=new RegExp(vk),hpe=RegExp(`${vk}$`),gpe=new RegExp(vk,`g`);function _pe(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?[`()`,`[]`].includes(e[0].value+e[2].value):!1}function vpe(e){return new kb({key:new Mb(`autolink`),appendTransaction:(t,n,r)=>{let i=t.some(e=>e.docChanged)&&!n.doc.eq(r.doc),a=t.some(e=>e.getMeta(`preventAutolink`));if(!i||a)return;
334let{tr:o}=r;if(UT(wT(n.doc,[...t])).forEach(({newRange:t})=>{let n=Ele(r.doc,t,e=>e.isTextblock),i,a;if(n.length>1)i=n[0],a=r.doc.textBetween(i.pos,i.pos+i.node.nodeSize,void 0,` `);else if(n.length){let e=r.doc.textBetween(t.from,t.to,` `,` `);if(!hpe.test(e))return;i=n[0],a=r.doc.textBetween(i.pos,t.to,void 0,` `)}if(i&&a){let t=a.split(mpe).filter(Boolean);if(t.length<=0)return!1;let n=t[t.length-1],s=i.pos+a.lastIndexOf(n);if(!n)return!1;let c=gk(n).map(t=>t.toObject(e.defaultProtocol));if(!_pe(c))return!1;c.filter(e=>e.isLink).map(e=>({...e,from:s+e.start+1,to:s+e.end+1})).filter(e=>r.schema.marks.code?!r.doc.rangeHasMark(e.from,e.to,r.schema.marks.code):!0).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{WT(t.from,t.to,r.doc).some(t=>t.mark.type===e.type)||o.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),o.steps.length)return o}})}function ype(e){return new kb({key:new Mb(`handleClickLink`),props:{handleClick:(t,n,r)=>{if(r.button!==0||!t.editable)return!1;let i=null;if(r.target instanceof HTMLAnchorElement)i=r.target;else{let t=r.target;if(!t)return!1;let n=e.editor.view.dom;i=t.closest(`a`),i&&!n.contains(i)&&(i=null)}if(!i)return!1;let a=!1;if(e.enableClickSelection&&(a=e.editor.commands.extendMarkRange(e.type.name)),e.openOnClick){let n=HT(t.state,e.type.name),r=i.href??n.href,o=i.target??n.target;r&&(window.open(r,o),a=!0)}return a}}})}var bpe=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|â(.*?)â|â(.*?)â))?\)$/,xpe=/\[([^[\]]+)\]\(((?:[^\s()]|\([^\s()]*\))+)(?:\s+(?:(["'])(.*?)\3|â(.*?)â|â(.*?)â))?\)/g;function yk(e,t){let n=0;for(let r=t-1;r>=0&&e[r]===`\\`;--r)n+=1;return n%2==1}function Spe(e,t){let n=0,r=0;for(;r<t;){if(e[r]!=="`"){r+=1;continue}if(n===0&&yk(e,r)){r+=1;continue}let i=0;for(;r<t&&e[r]==="`";)i+=1,r+=1;n===0?n=i:i===n&&(n=0)}return n>0}function bk(e,t,n){let[,r,i]=t;return(t.index?e[t.index-1]:void 0)===`!`||yk(e,t.index??0)||Spe(e,t.index??0)?!1:!!r.trim()&&n(i)}function xk(e){let[t,n,r,,i,a,o]=e,s=i??a??o;return{index:e.index??0,text:t,replaceWith:n,data:{href:r,title:s||null,markdown:!0}}}function Cpe(e,t){return e.index<t.index+t.text.length&&t.index<e.index+e.text.length}function Sk(e){return{href:e.data?.href,title:e.data?.title??null}}function wpe(e){let t=kE({find:t=>{let n=bpe.exec(t);return!n||!bk(t,n,e.isAllowedHref)?null:xk(n)},type:e.type,getAttributes:Sk});return new bE({find:t.find,handler:e=>{let n=t.handler(e);return n!==null&&e.state.tr.steps.length&&e.state.tr.setMeta(`preventAutolink`,!0),n}})}function Tpe(e){let t=NE({find:t=>{let n=[];for(let r of t.matchAll(xpe))bk(t,r,e.isAllowedHref)&&n.push(xk(r));let r=(e.findPlainUrls?.call(e,t)??[]).filter(e=>!n.some(t=>Cpe(t,e)));return[...n,...r]},type:e.type,getAttributes:Sk});return new wE({find:t.find,handler:e=>{let n=t.handler(e);return n!==null&&e.state.tr.steps.length&&e.match.data?.markdown&&e.state.tr.setMeta(`preventAutolink`,!0),n}})}function Epe(e){return new kb({key:new Mb(`handlePasteLink`),props:{handlePaste:(t,n,r)=>{let{shouldAutoLink:i}=e,{state:a}=t,{selection:o}=a,{empty:s}=o;if(s)return!1;let c=``;r.content.forEach(e=>{c+=e.textContent});let l=_k(c,{defaultProtocol:e.defaultProtocol}).find(e=>e.isLink&&e.value===c);return!c||!l||i!==void 0&&!i(l.value)?!1:e.editor.commands.setMark(e.type,{href:l.href})}}})}function Ck(e,t){let n=[`http`,`https`,`ftp`,`ftps`,`mailto`,`tel`,`callto`,`sms`,`cid`,`xmpp`];return t&&t.forEach(e=>{let t=typeof e==`string`?e:e.scheme;t&&n.push(t)}),!e||e.replace(gpe,``).match(RegExp(`^(?:(?:${n.map(e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,`\\$&`)).join(`|`)}):|[^a-z]|[a-z0-9+.\\-]+(?:[^a-z+.\\-:]|$))`,`i`))}var Dpe=CE.create({name:`link`,priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{if(typeof e==`string`){hk(e);return}hk(e.scheme,e.optionalSlashes)})},onDestroy(){fpe()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,enableClickSelection:!1,linkOnPaste:!0,markdownLinks:!1,autolink:!0,protocols:[],defaultProtocol:`http`,HTMLAttributes:{target:`_blank`,rel:`noopener noreferrer nofollow`,class:null},isAllowedUri:(e,t)=>
vendor: 22,069 bytes, lines 334-344
334!!Ck(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>{let t=/^[a-z][a-z0-9+.-]*:\/\//i.test(e),n=/^[a-z][a-z0-9+.-]*:/i.test(e);if(t||n&&!e.includes(`@`))return!0;let r=(e.includes(`@`)?e.split(`@`).pop():e).split(/[/?#:]/)[0];return!(/^\d{1,3}(\.\d{1,3}){3}$/.test(r)||!/\./.test(r))}}},addAttributes(){return{href:{default:null,parseHTML(e){return e.getAttribute(`href`)}},target:{default:this.options.HTMLAttributes.target??null},rel:{default:this.options.HTMLAttributes.rel??null},class:{default:this.options.HTMLAttributes.class??null},title:{default:null}}},parseHTML(){return[{tag:`a[href]`,getAttrs:e=>{let t=e.getAttribute(`href`);return!t||!this.options.isAllowedUri(t,{defaultValidate:e=>!!Ck(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:e=>!!Ck(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?[`a`,NT(this.options.HTMLAttributes,e),0]:[`a`,NT(this.options.HTMLAttributes,{...e,href:``}),0]},markdownTokenName:`link`,parseMarkdown:(e,t)=>t.applyMark(`link`,t.parseInline(e.tokens||[]),{href:e.href,title:e.title||null}),renderMarkdown:(e,t)=>{let n=e.attrs?.href??``,r=e.attrs?.title??``,i=t.renderChildren(e);return r?`[${i}](${n} "${r}")`:`[${i}](${n})`},addCommands(){return{setLink:e=>({chain:t})=>{let{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:e=>!!Ck(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().setMark(this.name,e).setMeta(`preventAutolink`,!0).run():!1},toggleLink:e=>({chain:t})=>{let{href:n}=e||{};return n&&!this.options.isAllowedUri(n,{defaultValidate:e=>!!Ck(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta(`preventAutolink`,!0).run()},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta(`preventAutolink`,!0).run()}},addInputRules(){return this.options.markdownLinks?[wpe({type:this.type,isAllowedHref:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!Ck(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})})]:[]},addPasteRules(){let e=e=>{let t=[];if(e){let{protocols:n,defaultProtocol:r}=this.options;_k(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!Ck(e,n),protocols:n,defaultProtocol:r})).forEach(e=>{this.options.shouldAutoLink(e.value)&&t.push({text:e.value,data:{href:e.href},index:e.start})})}return t};return this.options.markdownLinks?[Tpe({type:this.type,isAllowedHref:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!Ck(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol}),findPlainUrls:e})]:[NE({find:e,type:this.type,getAttributes:e=>({href:e.data?.href})})]},addProseMirrorPlugins(){let e=[],{protocols:t,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(vpe({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!Ck(e,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),e.push(ype({type:this.type,editor:this.editor,openOnClick:this.options.openOnClick===`whenNotEditable`?!0:this.options.openOnClick,enableClickSelection:this.options.enableClickSelection})),this.options.linkOnPaste&&e.push(Epe({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type,shouldAutoLink:this.options.shouldAutoLink})),e}}),Ope=`listItem`,wk=`textStyle`,Tk=/^\s*([-+*])\s$/,Ek=ME.create({name:`bulletList`,addOptions(){return{itemTypeName:`listItem`,HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:`block list`,content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul`}]},renderHTML({HTMLAttributes:e}){return[`ul`,NT(this.options.HTMLAttributes,e),0]},markdownTokenName:`list`,parseMarkdown:(e,t)=>e.type!==`list`||e.ordered?[]:{type:`bulletList`,content:e.items?t.parseChildren(e.items):[]},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,` 335`):``,markdownOptions:{indentsContent:!0},addCommands(){return{toggleBulletList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Ope,this.editor.getAttributes(wk)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let e=jE({find:Tk,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(e=jE({find:Tk,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(wk),editor:this.editor})),[e]}}),kpe=(e,t,n)=>{let{selection:r}=e;if(!r.empty)return null;let{$from:i}=r;if(!i.parent.isTextblock||i.parentOffset!==i.parent.content.size)return null;let a=-1;for(let e=i.depth;e>0;--e)if(i.node(e).type.name===t){a=e;break}if(a<0)return null;let o=i.node(a),s=i.index(a);if(s+1>=o.childCount)return null;let c=o.child(s+1);if(!n.includes(c.type.name))return null;let l=e.schema.nodes[t],u=!1;if(c.forEach(e=>{e.type===l&&e.childCount>1&&(u=!0)}),!u)return null;let d=e.doc.resolve(i.after()).nodeAfter;if(!d||!n.includes(d.type.name))return null;let f=[];return d.forEach(e=>{f.push(e)}),f.length===0?null:{listItemDepth:a,nestedList:d,nestedListPos:i.after(),insertPos:i.after(a),items:f}},Ape=(e,t,n,r)=>{let i=kpe(e,n,r);if(!i)return!1;let{selection:a}=e,{nestedList:o,nestedListPos:s,insertPos:c,items:l}=i,u=e.tr;u.delete(s,s+o.nodeSize);let d=u.mapping.map(c);return u.insert(d,U.from(l)),u.setSelection(a.map(u.doc,u.mapping)),t&&t(u),!0},jpe=(e,t,n)=>Ape(e.state,e.view.dispatch,t,n),Dk=(e,t)=>DE.create({name:`${e}BranchingDeleteKeymap`,priority:101,addKeyboardShortcuts(){let n=()=>jpe(this.editor,e,t);return{Delete:n,"Mod-Delete":n}}}),Ok=[[1e3,`m`],[900,`cm`],[500,`d`],[400,`cd`],[100,`c`],[90,`xc`],[50,`l`],[40,`xl`],[10,`x`],[9,`ix`],[5,`v`],[4,`iv`],[1,`i`]],kk=`abcdefghijklmnopqrstuvwxyz`,Ak=String.raw`\d+|[ivxlcdmIVXLCDM]+|${`[a-zA-Z]{1,2}`}`;function jk(e){let t=e,n=``;for(let[e,r]of Ok)for(;t>=e;)n+=r,t-=e;return n}function Mk(e){return jk(e).toUpperCase()}function Nk(e){let t=e.toLowerCase(),n=0,r=0;for(;n<t.length;){let e=!1;for(let[i,a]of Ok)if(t.startsWith(a,n)){r+=i,n+=a.length,e=!0;break}if(!e)return 0}return r}function Mpe(e){if(!/^[ivxlcdmIVXLCDM]+$/.test(e))return!1;let t=Nk(e);return t<=0?!1:(e===e.toLowerCase()?jk(t):Mk(t))===e}function Npe(e){let t=e.toLowerCase();if(t.length===1)return t.charCodeAt(0)-97+1;if(t.length===2){let e=t.charCodeAt(0)-97,n=t.charCodeAt(1)-97;return(e+1)*26+n+1}return 0}function Pk(e){if(e<=26)return kk[e-1];let t=Math.floor((e-1)/26)-1,n=(e-1)%26;return t<0?kk[n]:kk[t]+kk[n]}function Fk(e){if(!(!e||/^\d+$/.test(e))){if(Mpe(e))return e===e.toLowerCase()?`i`:`I`;if(/^[a-z]{1,2}$/.test(e))return`a`;if(/^[A-Z]{1,2}$/.test(e))return`A`}}function Ik(e){if(/^\d+$/.test(e))return parseInt(e,10);let t=Fk(e);if(t===`i`||t===`I`)return Nk(e);if(t===`a`||t===`A`){let t=Npe(e);return t>0?t:1}let n=parseInt(e,10);return Number.isNaN(n)?1:n}function Ppe(e,t){if(e===`numeric`)return String(t);switch(e){case`a`:return Pk(t);case`A`:return Pk(t).toUpperCase();case`i`:return jk(t);case`I`:return Mk(t);default:return String(t)}}function Fpe(e){if(e.length===0)return!1;let t=Fk(e[0])??`numeric`,n=Ik(e[0]);if(n<1)return!1;for(let r=0;r<e.length;r++){let i=Ppe(t,n+r);if(e[r]!==i)return!1}return!0}function Ipe(e){return{type:Fk(e),start:Ik(e)}}function Lpe(e){let{type:t,start:n}=Ipe(e),r={};return t&&(r.type=t),n!==1&&(r.start=n),r}function Rpe(e,t,n=`. `){let r=t+1;if(!e||e===`1`)return`${r}${n}`;switch(e){case`a`:return`${Pk(r)}${n}`;case`A`:return`${Pk(r).toUpperCase()}${n}`;case`i`:return`${jk(r)}${n}`;case`I`:return`${Mk(r)}${n}`;default:return`${r}${n}`}}function zpe(e){let t=e.tokens?.[0];return!!(e.text&&e.tokens?.length===1&&t?.type===`list`&&t.ordered&&t.raw===e.text)}function Bpe(e,t){return t.tokenizeInline?t.parseInline(t.tokenizeInline(e)):t.parseInline([{type:`text`,raw:e,text:e}])}var Lk=ME.create({name:`listItem`,addOptions(){return{HTMLAttributes:{},bulletListTypeName:`bulletList`,orderedListTypeName:`orderedList`}},content:`paragraph block*`,defining:!0,parseHTML(){return[{tag:`li`}]},renderHTML({HTMLAttributes:e}){return[`li`,NT(this.options.HTMLAttributes,e),0]},markdownTokenName:`list_item`,parseMarkdown:(e,t)=>{if(e.type!==`list_item`)return[];let n=t.parseBlockChildren??t.parseChildren,r=[];if(e.tokens&&e.tokens.length>0){if(zpe(e))return{type:`listItem`,content:[{type:`paragraph`,content:Bpe(e.text||``,t)}]};if(e.tokens.some(e=>e.type===`paragraph`))r=n(e.tokens);else{let i=e.tokens[0];if(i&&i.type===`text`&&i.tokens&&i.tokens.length>0){if(r=[{type:`paragraph`,content:t.parseInline(i.tokens)}],e.tokens.length>1){let t=n(e.tokens.slice(1));r.push(...t)}}else r=n(e.tokens)}}return r.length===0&&(r=[{type:`paragraph`,content:[]}]),{type:`listItem`,content:r}},renderMarkdown:(e,t,n)=>vE(e,t,e=>{if(e.parentType===`bulletList`)return`- `;if(e.parentType===`orderedList`){var t,n;let r=((t=e.meta)==null||(t=t.parentAttrs)==null?void 0:t.start)||1;return Rpe((n=e.meta)==null||(n=n.parentAttrs)==null?void 0:n.type,r-1+(e.index||0),`. `)}return`- `},n,{alignNestedToPrefix:n?.parentType===`orderedList`}),addExtensions(){return[Dk(this.name,[this.options.bulletListTypeName,this.options.orderedListTypeName])]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Rk=(e,t)=>{let{$from:n}=t.selection,r=Qw(e,t.schema),i=null,a=n.depth,o=n.pos,s=null;for(;a>0&&s===null;)i=n.node(a),i.type===r?s=a:(--a,--o);return s===null?null:{$pos:t.doc.resolve(o),depth:s}},zk=(e,t)=>{let n=Rk(e,t);if(!n)return!1;let[,r]=Lle(t,e,n.$pos.pos+4);return r},Vpe=(e,t,n)=>{let{$anchor:r}=e.selection,i=Math.max(0,r.pos-2),a=e.doc.resolve(i).node();return!(!a||!n.includes(a.type.name))},Bk=(e,t,n)=>{if(e.commands.undoInputRule())return!0;if(e.state.selection.from!==e.state.selection.to)return!1;if(!yT(e.state,t)&&Vpe(e.state,t,n)){let{$anchor:n}=e.state.selection,r=e.state.doc.resolve(n.before()-1),i=[];r.node().descendants((e,n)=>{e.type.name===t&&i.push({node:e,pos:n})});let a=i.at(-1);if(!a)return!1;let o=e.state.doc.resolve(r.start()+a.pos+1);return e.chain().cut({from:n.start()-1,to:n.end()+1},o.end()).joinForward().run()}if(!yT(e.state,t)||!Hle(e.state))return!1;let{$from:r}=e.state.selection,i=r.depth-1;return r.node(i).type!==e.schema.nodes[t]||r.index(i)!==0?!1:e.chain().liftListItem(t).run()},Hpe=(e,t)=>{let n=zk(e,t),r=Rk(e,t);return!r||!n?!1:n>r.depth},Upe=(e,t)=>{let n=zk(e,t),r=Rk(e,t);return!r||!n?!1:n<r.depth},Vk=(e,t)=>{if(!yT(e.state,t)||!Vle(e.state,t))return!1;let{selection:n}=e.state,{$from:r,$to:i}=n;return!n.empty&&r.sameParent(i)?!1:Hpe(t,e.state)?e.chain().focus(e.state.selection.from+4).lift(t).joinBackward().run():Upe(t,e.state)?e.chain().joinForward().joinBackward().run():e.commands.joinItemForward()},Wpe=(e,t,n)=>{let{state:r}=e,{selection:i}=r;if(!i.empty)return!1;let{$from:a}=i;if(a.parentOffset!==0||!a.parent.isTextblock||yT(r,t))return!1;let o=Rle(a);if(!o||!n.includes(o.type.name))return!1;let s=o.lastChild;if(!s||s.type.name!==t)return!1;let c=a.parent;if(!s.canReplace(s.childCount,s.childCount,U.from(c)))return!1;let l=a.before(),u=a.after(),d=l-2;return e.commands.command(({tr:e,dispatch:t})=>(t&&(e.delete(l,u).insert(d,U.from(c)),e.setSelection(G.create(e.doc,d+1)),e.scrollIntoView()),!0))},Hk=DE.create({name:`listKeymap`,addOptions(){return{listTypes:[{itemName:`listItem`,wrapperNames:[`bulletList`,`orderedList`]},{itemName:`taskItem`,wrapperNames:[`taskList`]}]}},addKeyboardShortcuts(){return{Delete:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&Vk(e,n)&&(t=!0)}),t},"Mod-Delete":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n})=>{e.state.schema.nodes[n]!==void 0&&Vk(e,n)&&(t=!0)}),t},Backspace:({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&Bk(e,n,r)&&(t=!0)}),t},"Mod-Backspace":({editor:e})=>{let t=!1;return this.options.listTypes.forEach(({itemName:n,wrapperNames:r})=>{e.state.schema.nodes[n]!==void 0&&Bk(e,n,r)&&(t=!0)}),t},Tab:({editor:e})=>{for(let{itemName:t,wrapperNames:n}of this.options.listTypes)if(e.state.schema.nodes[t]!==void 0&&Wpe(e,t,n))return!0;return!1}}}}),Uk=RegExp(`^(\\s*)(${Ak})([.)])\\s+(.*)$`),Gpe=/^\s/,Wk={heading:/^#{1,6}(?:\s|$)/,bulletItem:/^[-+*]\s+/,codeFence:/^(?:```|~~~)/,blockMath:/^\$\$/,thematicBreak:/^(?:(?:-[ \t]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})$/};function Kpe(e){return Uk.test(e.trimStart())}function qpe(e){let t=e.trimStart();return Wk.bulletItem.test(t)||Kpe(t)||Wk.heading.test(t)||Wk.thematicBreak.test(t)&&!t.startsWith(`-`)||/^>\s?/.test(t)||Wk.codeFence.test(t)||Wk.blockMath.test(t)}function Jpe(e){return Object.values(Wk).some(t=>t.test(e))}function Ype(e){let t=[],n=[],r=!1;return e.forEach(e=>{if(r){n.push(e);return}if(e.trim()===``){r=!0,n.push(e);return}if(t.length>0&&qpe(e)){r=!0,n.push(e);return}t.push(e)}),{paragraphLines:t,blockLines:n}}function Xpe(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e[n],a=i.match(Uk);if(!a)break;let[,o,s,c,l]=a,u=o.length,d=parseInt(s,10),f=isNaN(d)?Fk(s):void 0,p=isNaN(d)?Ik(s):d,m=[l],h=n+1,g=[i],_=!1;for(;h<e.length;){let t=e[h];if(t.match(Uk))break;if(t.trim()===``)g.push(t),m.push(``),_=!0,h+=1;else if(t.match(Gpe)){let e=t.length-t.trimStart().length,n=u+s.length+1;g.push(t),m.push(t.slice(Math.min(e,n))),h+=1}else{if(_||Jpe(t))break;g.push(t),m.push(t),h+=1}}t.push({indent:u,number:p,type:f,content:m.join(` 336`).trim(),contentLines:m,raw:g.join(` 337`)}),r=h,n=h}return[t,r]}var Zpe=RegExp(`^(${Ak})([.)])\\s+(.+)$`);function Qpe(e){let t=e.split(` 338`).filter(e=>e.trim().length>0);if(t.length===0)return null;let n=[];for(let e of t){let t=e.trim().match(Zpe);if(!t)return null;n.push({marker:t[1],content:t[3]})}return Fpe(n.map(e=>e.marker))?{type:`orderedList`,attrs:Lpe(n[0].marker),content:n.map(e=>({type:`listItem`,content:[{type:`paragraph`,content:[{type:`text`,text:e.content}]}]}))}:null}function Gk(e,t,n){let r=[],i=0;for(;i<e.length;){let a=e[i];if(a.indent===t){let{paragraphLines:o,blockLines:s}=Ype(a.contentLines),c=o.join(` 339`).trim(),l=[];c&&l.push({type:`paragraph`,raw:c,tokens:n.inlineTokens(c)});let u=s.join(` 340`).trim();if(u){let e=n.blockTokens(u);l.push(...e)}let d=i+1,f=[];for(;d<e.length&&e[d].indent>t;)f.push(e[d]),d+=1;if(f.length>0){let e=Gk(f,Math.min(...f.map(e=>e.indent)),n);l.push({type:`list`,ordered:!0,start:f[0].number,typeMarker:f[0].type,items:e,raw:f.map(e=>e.raw).join(` 341`)})}r.push({type:`list_item`,raw:a.raw,tokens:l}),i=d}else i+=1}return r}function $pe(e,t){return e.map(e=>{if(e.type!==`list_item`)return t.parseChildren([e])[0];let n=[];return e.tokens&&e.tokens.length>0&&e.tokens.forEach(e=>{if(e.type===`paragraph`||e.type===`list`||e.type===`blockquote`||e.type===`code`)n.push(...t.parseChildren([e]));else if(e.type===`text`&&e.tokens){let r=t.parseChildren([e]);n.push({type:`paragraph`,content:r})}else{let r=t.parseChildren([e]);r.length>0&&n.push(...r)}}),{type:`listItem`,content:n}})}var eme=`listItem`,Kk=`textStyle`,qk=/^(\d+)\.\s$/;function Jk(e){let t=e.match(/list-style-type\s*:\s*([^;]+)/i);if(!t)return null;switch(t[1].trim().toLowerCase()){case`upper-roman`:return`I`;case`lower-roman`:return`i`;case`upper-alpha`:case`upper-latin`:return`A`;case`lower-alpha`:case`lower-latin`:return`a`;default:return null}}var Yk=ME.create({name:`orderedList`,addOptions(){return{itemTypeName:`listItem`,HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:`block list`,content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:e=>e.hasAttribute(`start`)?parseInt(e.getAttribute(`start`)||``,10):1},type:{default:null,parseHTML:e=>{let t=e.getAttribute(`type`);if(t)return t;let n=e.getAttribute(`style`);if(n){let e=Jk(n);if(e)return e}let r=e.querySelector(`li`);if(r){let e=r.getAttribute(`style`);if(e){let t=Jk(e);if(t)return t}}return null}}}},parseHTML(){return[{tag:`ol`}]},renderHTML({HTMLAttributes:e}){let{start:t,type:n,...r}=e,i=NT(this.options.HTMLAttributes,r);return t!==1&&(i.start=t),n&&n!==`1`&&(i.type=n),[`ol`,i,0]},markdownTokenName:`list`,parseMarkdown:(e,t)=>{if(e.type!==`list`||!e.ordered)return[];let n=e.start||1,r=e.typeMarker,i=e.items?$pe(e.items,t):[],a={};return n!==1&&(a.start=n),r&&(a.type=r),Object.keys(a).length>0?{type:`orderedList`,attrs:a,content:i}:{type:`orderedList`,content:i}},renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,` 342`):``,markdownTokenizer:{name:`orderedList`,level:`block`,start:()=>-1,tokenize:(e,t,n)=>{let r=e.split(` 343`),[i,a]=Xpe(r);if(i.length===0)return;let o=Gk(i,i[0].indent,n);if(o.length!==0)return{type:`list`,ordered:!0,start:i[0]?.number||1,typeMarker:i[0]?.type,items:o,raw:r.slice(0,a).join(` 344`)}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleOrderedList:()=>({commands:e,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(eme,this.editor.getAttributes(Kk)).run():e.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addProseMirrorPlugins(){return[new kb({props:{handlePaste:(e,t)=>{if((t.clipboardData?.getData(`text/html`))?.trim())return!1;let n=t.clipboardData?.getData(`text/plain`);if(!n)return!1;let r=Qpe(n);if(!r)return!1;try{let t=e.state.schema.nodeFromJSON(r),n=e.state.tr.replaceSelectionWith(t);return e.dispatch(n),!0}catch{return!1}}}})]},addInputRules(){let e=(e,t)=>(!t.attrs.type||t.attrs.type===`1`)&&t.childCount+t.attrs.start===+e[1],t=jE({find:qk,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:e});return(this.options.keepMarks||this.options.keepAttributes)&&(t=jE({find:qk,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(Kk)}),joinPredicate:e,editor:this.editor})),[t]}}),tme=/^\s*(\[([( |x])?\])\s$/,nme=`position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0`,rme=(e,t,n)=>{var r;return(n==null||(r=n.checkboxLabel)==null?void 0:r.call(n,e,t))||`Task item checkbox for ${e.textContent||`empty task item`}`},ime=ME.create({name:`taskItem`,addOptions(){return{nested:!1,HTMLAttributes:{},taskListTypeName:`taskList`,a11y:void 0}},content(){return this.options.nested?`paragraph block*`:`paragraph+`},defining:!0,addAttributes(){return{checked:{default:!1,keepOnSplit:!1,parseHTML:e=>{let t=e.getAttribute(`data-checked`);return t===``||t===`true`},renderHTML:e=>({"data-checked":e.checked})}}},parseHTML(){return[{tag:`li[data-type="${this.name}"]`,priority:51,contentElement:e=>e.querySelector(`div`)??e}]},renderHTML({node:e,HTMLAttributes:t}){return[`li`,NT(this.options.HTMLAttributes,t,{"data-type":this.name}),[`label`,[`input`,{type:`checkbox`,checked:e.attrs.checked?`checked`:null}],[`span`]],[`div`,0]]},parseMarkdown:(e,t)=>{let n=[];if(e.tokens&&e.tokens.length>0?n.push(t.createNode(`paragraph`,{},t.parseInline(e.tokens))):e.text?n.push(t.createNode(`paragraph`,{},[t.createNode(`text`,{text:e.text})])):n.push(t.createNode(`paragraph`,{},[])),e.nestedTokens&&e.nestedTokens.length>0){let r=t.parseChildren(e.nestedTokens);n.push(...r)}return t.createNode(`taskItem`,{checked:e.checked||!1},n)},renderMarkdown:(e,t)=>vE(e,t,`- [${e.attrs?.checked?`x`:` `}] `),addExtensions(){return this.options.nested?[Dk(this.name,[this.options.taskListTypeName])]:[]},addKeyboardShortcuts(){let e={Enter:()=>this.editor.commands.splitListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)};return this.options.nested?{...e,Tab:()=>this.editor.commands.sinkListItem(this.name)}:e},addNodeView(){return({node:e,HTMLAttributes:t,getPos:n,editor:r})=>{let i=document.createElement(`li`),a=document.createElement(`label`),o=document.createElement(`span`),s=document.createElement(`input`),c=document.createElement(`div`);o.style.cssText=nme;let l=e=>{let t=rme(e,e.attrs.checked,this.options.a11y);s.setAttribute(`aria-label`,t),o.textContent=t};l(e),a.contentEditable=`false`,s.type=`checkbox`,s.addEventListener(`mousedown`,e=>e.preventDefault()),s.addEventListener(`change`,t=>{if(!r.isEditable&&!this.options.onReadOnlyChecked){s.checked=!s.checked;return}let{checked:i}=t.target;r.isEditable&&typeof n==`function`&&r.chain().focus(void 0,{scrollIntoView:!1}).command(({tr:e})=>{let t=n();if(typeof t!=`number`)return!1;let r=e.doc.nodeAt(t);return e.setNodeMarkup(t,void 0,{...r?.attrs,checked:i}),!0}).run(),!r.isEditable&&this.options.onReadOnlyChecked&&(this.options.onReadOnlyChecked(e,i)||(s.checked=!s.checked))}),Object.entries(this.options.HTMLAttributes).forEach(([e,t])=>{i.setAttribute(e,t)}),i.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,a.append(s,o),i.append(a,c),Object.entries(t).forEach(([e,t])=>{i.setAttribute(e,t)});let u=new Set(Object.keys(t));return{dom:i,contentDOM:c,update:e=>{if(e.type!==this.type)return!1;i.dataset.checked=e.attrs.checked,s.checked=e.attrs.checked,l(e);let t=r.extensionManager.attributes,n=PT(e,t),a=new Set(Object.keys(n)),o=this.options.HTMLAttributes;return u.forEach(e=>{a.has(e)||(e in o?i.setAttribute(e,o[e]):i.removeAttribute(e))}),Object.entries(n).forEach(([e,t])=>{t==null?e in o?i.setAttribute(e,o[e]):i.removeAttribute(e):i.setAttribute(e,t)}),u=a,!0}}}}
vendor: 4,276 bytes, lines 344-345
344,addInputRules(){return[jE({find:tme,type:this.type,getAttributes:e=>({checked:e[e.length-1]===`x`})})]}}),ame=ME.create({name:`taskList`,addOptions(){return{itemTypeName:`taskItem`,HTMLAttributes:{}}},group:`block list`,content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:`ul[data-type="${this.name}"]`,priority:51}]},renderHTML({HTMLAttributes:e}){return[`ul`,NT(this.options.HTMLAttributes,e,{"data-type":this.name}),0]},parseMarkdown:(e,t)=>t.createNode(`taskList`,{},t.parseChildren(e.items||[])),renderMarkdown:(e,t)=>e.content?t.renderChildren(e.content,` 345`):``,markdownTokenizer:{name:`taskList`,level:`block`,start(e){let t=e.match(/^\s*[-+*]\s+\[([ xX])\]\s+/)?.index;return t===void 0?-1:t},tokenize(e,t,n){let r=e=>{let t=hE(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);if(t){let r={type:`taskList`,raw:t.raw,items:t.items},i=e.slice(t.raw.length);return i.trim()?[r,...n.blockTokens(i)]:[r]}return n.blockTokens(e)},i=hE(e,{itemPattern:/^(\s*)([-+*])\s+\[([ xX])\]\s+(.*)$/,extractItemData:e=>({indentLevel:e[1].length,mainContent:e[4],checked:e[3].toLowerCase()===`x`}),createToken:(e,t)=>({type:`taskItem`,raw:``,mainContent:e.mainContent,indentLevel:e.indentLevel,checked:e.checked,text:e.mainContent,tokens:n.inlineTokens(e.mainContent),nestedTokens:t}),customNestedParser:r},n);if(i)return{type:`taskList`,raw:i.raw,items:i.items}}},markdownOptions:{indentsContent:!0},addCommands(){return{toggleTaskList:()=>({commands:e})=>e.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.toggleTaskList()}}});DE.create({name:`listKit`,addExtensions(){let e=[];return this.options.bulletList!==!1&&e.push(Ek.configure(this.options.bulletList)),this.options.listItem!==!1&&e.push(Lk.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(Hk.configure(this.options.listKeymap)),this.options.orderedList!==!1&&e.push(Yk.configure(this.options.orderedList)),this.options.taskItem!==!1&&e.push(ime.configure(this.options.taskItem)),this.options.taskList!==!1&&e.push(ame.configure(this.options.taskList)),e}});var Xk=` `,Zk=`\xA0`,ome=ME.create({name:`paragraph`,priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:`block`,content:`inline*`,parseHTML(){return[{tag:`p`}]},renderHTML({HTMLAttributes:e}){return[`p`,NT(this.options.HTMLAttributes,e),0]},parseMarkdown:(e,t)=>{let n=e.tokens||[];if(n.length===1&&n[0].type===`image`)return t.parseChildren([n[0]]);let r=t.parseInline(n);return n.length===1&&n[0].type===`text`&&(n[0].raw===Xk||n[0].text===Xk||n[0].raw===Zk||n[0].text===Zk)&&r.length===1&&r[0].type===`text`&&(r[0].text===Xk||r[0].text===Zk)?t.createNode(`paragraph`,void 0,[]):t.createNode(`paragraph`,void 0,r)},renderMarkdown:(e,t,n)=>{if(!e)return``;let r=Array.isArray(e.content)?e.content:[];if(r.length===0){var i,a;let e=Array.isArray(n==null||(i=n.previousNode)==null?void 0:i.content)?n.previousNode.content:[];return(n==null||(a=n.previousNode)==null?void 0:a.type)===`paragraph`&&e.length===0?Xk:``}return t.renderChildren(r)},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),sme=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,cme=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,lme=CE.create({name:`strike`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`s`},{tag:`del`},{tag:`strike`},{style:`text-decoration`,consuming:!1,getAttrs:e=>e.includes(`line-through`)?{}:!1}]},renderHTML({HTMLAttributes:e}){return[`s`,NT(this.options.HTMLAttributes,e),0]},markdownTokenName:`del`,parseMarkdown:(e,t)=>t.applyMark(`strike`,t.parseInline(e.tokens||[])),renderMarkdown:(e,t)=>`~~${t.renderChildren(e)}~~`,addCommands(){return{setStrike:()=>({commands:e})=>e.setMark(this.name),toggleStrike:()=>({commands:e})=>e.toggleMark(this.name),unsetStrike:()=>({commands:e})=>e.unsetMark(this.name)}}
345,addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[kE({find:sme,type:this.type})]},addPasteRules(){return[NE({find:cme,type:this.type})]}}),ume=ME.create({name:`text`,group:`inline`,parseMarkdown:e=>({type:`text`,text:e.text||``}),renderMarkdown:e=>e.text||``}),dme=CE.create({name:`underline`,addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:`u`},{style:`text-decoration`,consuming:!1,getAttrs:e=>e.includes(`underline`)?{}:!1}]},renderHTML({HTMLAttributes:e}){return[`u`,NT(this.options.HTMLAttributes,e),0]},parseMarkdown(e,t){return t.applyMark(this.name||`underline`,t.parseInline(e.tokens||[]))},renderMarkdown(e,t){return`++${t.renderChildren(e)}++`},markdownTokenizer:{name:`underline`,level:`inline`,start(e){return e.indexOf(`++`)},tokenize(e,t,n){let r=/^(\+\+)([\s\S]+?)(\+\+)/.exec(e);if(!r)return;let i=r[2].trim();return{type:`underline`,raw:r[0],text:i,tokens:n.inlineTokens(i)}}},addCommands(){return{setUnderline:()=>({commands:e})=>e.setMark(this.name),toggleUnderline:()=>({commands:e})=>e.toggleMark(this.name),unsetUnderline:()=>({commands:e})=>e.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),fme=DE.create({name:`starterKit`,addExtensions(){let e=[];return this.options.bold!==!1&&e.push(Pfe.configure(this.options.bold)),this.options.blockquote!==!1&&e.push(kfe.configure(this.options.blockquote)),this.options.bulletList!==!1&&e.push(Ek.configure(this.options.bulletList)),this.options.code!==!1&&e.push(Lfe.configure(this.options.code)),this.options.codeBlock!==!1&&e.push(Bfe.configure(this.options.codeBlock)),this.options.document!==!1&&e.push(Vfe.configure(this.options.document)),this.options.dropcursor!==!1&&e.push(Cde.configure(this.options.dropcursor)),this.options.gapcursor!==!1&&e.push(wde.configure(this.options.gapcursor)),this.options.hardBreak!==!1&&e.push(Hfe.configure(this.options.hardBreak)),this.options.heading!==!1&&e.push(Ufe.configure(this.options.heading)),this.options.undoRedo!==!1&&e.push(zde.configure(this.options.undoRedo)),this.options.horizontalRule!==!1&&e.push(Wfe.configure(this.options.horizontalRule)),this.options.italic!==!1&&e.push(Yfe.configure(this.options.italic)),this.options.listItem!==!1&&e.push(Lk.configure(this.options.listItem)),this.options.listKeymap!==!1&&e.push(Hk.configure(this.options?.listKeymap)),this.options.link!==!1&&e.push(Dpe.configure(this.options?.link)),this.options.orderedList!==!1&&e.push(Yk.configure(this.options.orderedList)),this.options.paragraph!==!1&&e.push(ome.configure(this.options.paragraph)),this.options.strike!==!1&&e.push(lme.configure(this.options.strike)),this.options.text!==!1&&e.push(ume.configure(this.options.text)),this.options.underline!==!1&&e.push(dme.configure(this.options?.underline)),this.options.trailingNode!==!1&&e.push(Rde.configure(this.options?.trailingNode)),e}}),Qk=a(((e,t)=>{t.exports=function(e,t){return function(){for(var n=Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}})),$k=a(((e,t)=>{var n=Qk(),r=Object.prototype.toString;function i(e){return r.call(e)===`[object Array]`}function a(e){return e===void 0}function o(e){return e!==null&&!a(e)&&e.constructor!==null&&!a(e.constructor)&&typeof e.constructor.isBuffer==`function`&&e.constructor.isBuffer(e)}function s(e){return r.call(e)===`[object ArrayBuffer]`}function c(e){return typeof FormData<`u`&&e instanceof FormData}function l(e){return typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function u(e){return typeof e==`string`}function d(e){return typeof e==`number`}function f(e){return typeof e==`object`&&!!e}function p(e){if(r.call(e)!==`[object Object]`)return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function m(e){return r.call(e)===`[object Date]`}function h(e){return r.call(e)===`[object File]`}function g(e){return r.call(e)===`[object Blob]`}function _(e){return r.call(e)===`[object Function]`}function v(e){return f(e)&&_(e.pipe)}function y(e){return typeof URLSearchParams<`u`&&e instanceof URLSearchParams}function b(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,``)}function x(){return typeof navigator<`u`&&(navigator.product===`ReactNative`||navigator.product===`NativeScript`||navigator.product===`NS`)?!1:typeof window<`u`&&typeof document<`u`}function S(e,t){if(e!=null)if(typeof e!=`object`&&(e=[e]),i(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.call(null,e[a],a,e)}function C(){var e={};function t(t,n){p(e[n])&&p(t)?e[n]=C(e[n],t):p(t)?e[n]=C({},t):i(t)?e[n]=t.slice():e[n]=t}for(var n=0,r=arguments.length;n<r;n++)S(arguments[n],t);return e}function w(e,t,r){return S(t,function(t,i){r&&typeof t==`function`?e[i]=n(t,r):e[i]=t}),e}function T(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}t.exports={isArray:i,isArrayBuffer:s,isBuffer:o,isFormData:c,isArrayBufferView:l,isString:u,isNumber:d,isObject:f,isPlainObject:p,isUndefined:a,isDate:m,isFile:h,isBlob:g,isFunction:_,isStream:v,isURLSearchParams:y,isStandardBrowserEnv:x,forEac
345h:S,merge:C,extend:w,trim:b,stripBOM:T}})),eA=a(((e,t)=>{var n=$k();function r(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`).replace(/%5B/gi,`[`).replace(/%5D/gi,`]`)}t.exports=function(e,t,i){if(!t)return e;var a;if(i)a=i(t);else if(n.isURLSearchParams(t))a=t.toString();else{var o=[];n.forEach(t,function(e,t){e!=null&&(n.isArray(e)?t+=`[]`:e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),o.push(r(t)+`=`+r(e))}))}),a=o.join(`&`)}if(a){var s=e.indexOf(`#`);s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+a}return e}})),pme=a(((e,t)=>{var n=$k();function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){n.forEach(this.handlers,function(t){t!==null&&e(t)})},t.exports=r})),mme=a(((e,t)=>{var n=$k();t.exports=function(e,t){n.forEach(e,function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])})}})),tA=a(((e,t)=>{t.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}})),nA=a(((e,t)=>{var n=tA();t.exports=function(e,t,r,i,a){return n(Error(e),t,r,i,a)}})),rA=a(((e,t)=>{var n=nA();t.exports=function(e,t,r){var i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(n(`Request failed with status code `+r.status,r.config,null,r.request,r))}})),hme=a(((e,t)=>{var n=$k();t.exports=n.isStandardBrowserEnv()?(function(){return{write:function(e,t,r,i,a,o){var s=[];s.push(e+`=`+encodeURIComponent(t)),n.isNumber(r)&&s.push(`expires=`+new Date(r).toGMTString()),n.isString(i)&&s.push(`path=`+i),n.isString(a)&&s.push(`domain=`+a),o===!0&&s.push(`secure`),document.cookie=s.join(`; `)},read:function(e){var t=document.cookie.match(RegExp(`(^|;\\s*)(`+e+`)=([^;]*)`));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,``,Date.now()-864e5)}}})():(function(){return{write:function(){},read:function(){return null},remove:function(){}}})()})),gme=a(((e,t)=>{t.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}})),_me=a(((e,t)=>{t.exports=function(e,t){return t?e.replace(/\/+$/,``)+`/`+t.replace(/^\/+/,``):e}})),iA=a(((e,t)=>{var n=gme(),r=_me();t.exports=function(e,t){return e&&!n(t)?r(e,t):t}})),vme=a(((e,t)=>{var n=$k(),r=[`age`,`authorization`,`content-length`,`content-type`,`etag`,`expires`,`from`,`host`,`if-modified-since`,`if-unmodified-since`,`last-modified`,`location`,`max-forwards`,`proxy-authorization`,`referer`,`retry-after`,`user-agent`];t.exports=function(e){var t={},i,a,o;return e&&n.forEach(e.split(` 346`),function(e){if(o=e.indexOf(`:`),i=n.trim(e.substr(0,o)).toLowerCase(),a=n.trim(e.substr(o+1)),i){if(t[i]&&r.indexOf(i)>=0)return;i===`set-cookie`?t[i]=(t[i]?t[i]:[]).concat([a]):t[i]=t[i]?t[i]+`, `+a:a}}),t}})),yme=a(((e,t)=>{var n=$k();t.exports=n.isStandardBrowserEnv()?(function(){var e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement(`a`),r;function i(n){var r=n;return e&&(t.setAttribute(`href`,r),r=t.href),t.setAttribute(`href`,r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,``):``,host:t.host,search:t.search?t.search.replace(/^\?/,``):``,hash:t.hash?t.hash.replace(/^#/,``):``,hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)===`/`?t.pathname:`/`+t.pathname}}return r=i(window.location.href),function(e){var t=n.isString(e)?i(e):e;return t.protocol===r.protocol&&t.host===r.host}})():(function(){return function(){return!0}})()})),bme=a(((e,t)=>{var n=$k(),r=rA(),i=hme(),a=eA(),o=iA(),s=vme(),c=yme(),l=nA();t.exports=function(e){return new Promise(function(t,u){var d=e.data,f=e.headers,p=e.responseType;n.isFormData(d)&&delete f[`Content-Type`];var m=new XMLHttpRequest;if(e.auth){var h=e.auth.username||``,g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):``;
346f.Authorization=`Basic `+btoa(h+`:`+g)}var _=o(e.baseURL,e.url);m.open(e.method.toUpperCase(),a(_,e.params,e.paramsSerializer),!0),m.timeout=e.timeout;function v(){if(m){var n=`getAllResponseHeaders`in m?s(m.getAllResponseHeaders()):null;r(t,u,{data:!p||p===`text`||p===`json`?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}}if(`onloadend`in m?m.onloadend=v:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf(`file:`)===0)||setTimeout(v)},m.onabort=function(){m&&=(u(l(`Request aborted`,e,`ECONNABORTED`,m)),null)},m.onerror=function(){u(l(`Network Error`,e,null,m)),m=null},m.ontimeout=function(){var t=`timeout of `+e.timeout+`ms exceeded`;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),u(l(t,e,e.transitional&&e.transitional.clarifyTimeoutError?`ETIMEDOUT`:`ECONNABORTED`,m)),m=null},n.isStandardBrowserEnv()){var y=(e.withCredentials||c(_))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;y&&(f[e.xsrfHeaderName]=y)}`setRequestHeader`in m&&n.forEach(f,function(e,t){d===void 0&&t.toLowerCase()===`content-type`?delete f[t]:m.setRequestHeader(t,e)}),n.isUndefined(e.withCredentials)||(m.withCredentials=!!e.withCredentials),p&&p!==`json`&&(m.responseType=e.responseType),typeof e.onDownloadProgress==`function`&&m.addEventListener(`progress`,e.onDownloadProgress),typeof e.onUploadProgress==`function`&&m.upload&&m.upload.addEventListener(`progress`,e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){m&&=(m.abort(),u(e),null)}),d||=null,m.send(d)})}})),aA=a(((e,t)=>{var n=$k(),r=mme(),i=tA(),a={"Content-Type":`application/x-www-form-urlencoded`};function o(e,t){!n.isUndefined(e)&&n.isUndefined(e[`Content-Type`])&&(e[`Content-Type`]=t)}function s(){var e;return(typeof XMLHttpRequest<`u`||typeof process<`u`&&Object.prototype.toString.call(process)===`[object process]`)&&(e=bme()),e}function c(e,t,r){if(n.isString(e))try{return(t||JSON.parse)(e),n.trim(e)}catch(e){if(e.name!==`SyntaxError`)throw e}return(r||JSON.stringify)(e)}var l={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:s(),transformRequest:[function(e,t){return r(t,`Accept`),r(t,`Content-Type`),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(o(t,`application/x-www-form-urlencoded;charset=utf-8`),e.toString()):n.isObject(e)||t&&t[`Content-Type`]===`application/json`?(o(t,`application/json`),c(e)):e}],transformResponse:[function(e){var t=this.transitional,r=t&&t.silentJSONParsing,a=t&&t.forcedJSONParsing,o=!r&&this.responseType===`json`;if(o||a&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o)throw e.name===`SyntaxError`?i(e,this,`E_JSON_PARSE`):e}return e}],timeout:0,xsrfCookieName:`XSRF-TOKEN`,xsrfHeaderName:`X-XSRF-TOKEN`,maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};l.headers={common:{Accept:`application/json, text/plain, */*`}},n.forEach([`delete`,`get`,`head`],function(e){l.headers[e]={}}),n.forEach([`post`,`put`,`patch`],function(e){l.headers[e]=n.merge(a)}),t.exports=l})),xme=a(((e,t)=>{var n=$k(),r=aA();t.exports=function(e,t,i){var a=this||r;return n.forEach(i,function(n){e=n.call(a,e,t)}),e}})),oA=a(((e,t)=>{t.exports=function(e){return!!(e&&e.__CANCEL__)}})),Sme=a(((e,t)=>{var n=$k(),r=xme(),i=oA(),a=aA();function o(e){e.cancelToken&&e.cancelToken.throwIfRequested()}t.exports=function(e){return o(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach([`delete`,`get`,`head`,`post`,`put`,`patch`,`common`],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return o(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(o(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}})),sA=a(((e,t)=>{var n=$k();t.exports=function(e,t){t||={};var r={},i=[`url`,`method`,`data`],a=[`headers`,`auth`,`proxy`,`params`],o=[`baseURL`,`transformRequest`,`transformResponse`,`paramsSerializer`,`timeout`,`timeoutMessage`,`withCredentials`,`adapter`,`responseType`,`xsrfCookieName`,`xsrfHeaderName`,`onUploadProgress`,`onDownloadProgress`,`decompress`,`maxContentLength`,`maxBodyLength`,`maxRedirects`,`transport`,`httpAgent`,`httpsAgent`,`cancelToken`,`socketPath`,`responseEncoding`],s=[`validateStatus`];function c(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function l(i){n.isUndefined(t[i])?n.isUndefined(e[i])||(r[i]=c(void 0,e[i])):r[i]=c(e[i],t[i])}n.forEach(i,function(e){n.isUndefined(t[e])||(r[e]=c(void 0,t[e]))}
346),n.forEach(a,l),n.forEach(o,function(i){n.isUndefined(t[i])?n.isUndefined(e[i])||(r[i]=c(void 0,e[i])):r[i]=c(void 0,t[i])}),n.forEach(s,function(n){n in t?r[n]=c(e[n],t[n]):n in e&&(r[n]=c(void 0,e[n]))});var u=i.concat(a).concat(o).concat(s),d=Object.keys(e).concat(Object.keys(t)).filter(function(e){return u.indexOf(e)===-1});return n.forEach(d,l),r}})),Cme=i({author:()=>hA,browser:()=>yA,bugs:()=>gA,bundlesize:()=>wA,default:()=>TA,dependencies:()=>CA,description:()=>uA,devDependencies:()=>vA,homepage:()=>_A,jsdelivr:()=>bA,keywords:()=>mA,license:()=>`MIT`,main:()=>dA,name:()=>cA,repository:()=>pA,scripts:()=>fA,typings:()=>SA,unpkg:()=>xA,version:()=>lA}),cA,lA,uA,dA,fA,pA,mA,hA,gA,_A,vA,yA,bA,xA,SA,CA,wA,TA,wme=n((()=>{cA=`axios`,lA=`0.21.4`,uA=`Promise based HTTP client for the browser and node.js`,dA=`index.js`,fA={test:`grunt test`,start:`node ./sandbox/server.js`,build:`NODE_ENV=production grunt build`,preversion:`npm test`,version:`npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json`,postversion:`git push && git push --tags`,examples:`node ./examples/server.js`,coveralls:`cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js`,fix:`eslint --fix lib/**/*.js`},pA={type:`git`,url:`https://github.com/axios/axios.git`},mA=[`xhr`,`http`,`ajax`,`promise`,`node`],hA=`Matt Zabriskie`,gA={url:`https://github.com/axios/axios/issues`},_A=`https://axios-http.com`,vA={coveralls:`^3.0.0`,"es6-promise":`^4.2.4`,grunt:`^1.3.0`,"grunt-banner":`^0.6.0`,"grunt-cli":`^1.2.0`,"grunt-contrib-clean":`^1.1.0`,"grunt-contrib-watch":`^1.0.0`,"grunt-eslint":`^23.0.0`,"grunt-karma":`^4.0.0`,"grunt-mocha-test":`^0.13.3`,"grunt-ts":`^6.0.0-beta.19`,"grunt-webpack":`^4.0.2`,"istanbul-instrumenter-loader":`^1.0.0`,"jasmine-core":`^2.4.1`,karma:`^6.3.2`,"karma-chrome-launcher":`^3.1.0`,"karma-firefox-launcher":`^2.1.0`,"karma-jasmine":`^1.1.1`,"karma-jasmine-ajax":`^0.1.13`,"karma-safari-launcher":`^1.0.0`,"karma-sauce-launcher":`^4.3.6`,"karma-sinon":`^1.0.5`,"karma-sourcemap-loader":`^0.3.8`,"karma-webpack":`^4.0.2`,"load-grunt-tasks":`^3.5.2`,minimist:`^1.2.0`,mocha:`^8.2.1`,sinon:`^4.5.0`,"terser-webpack-plugin":`^4.2.3`,typescript:`^4.0.5`,"url-search-params":`^0.10.0`,webpack:`^4.44.2`,"webpack-dev-server":`^3.11.0`},yA={"./lib/adapters/http.js":`./lib/adapters/xhr.js`},bA=`dist/axios.min.js`,xA=`dist/axios.min.js`,SA=`./index.d.ts`,CA={"follow-redirects":`^1.14.0`},wA=[{path:`./dist/axios.min.js`,threshold:`5kB`}],TA={name:cA,version:lA,description:uA,main:dA,scripts:fA,repository:pA,keywords:mA,author:hA,license:`MIT`,bugs:gA,homepage:_A,devDependencies:vA,browser:yA,jsdelivr:bA,unpkg:xA,typings:SA,dependencies:CA,bundlesize:wA}})),Tme=a(((t,n)=>{var r=(wme(),e(Cme).default),i={};[`object`,`boolean`,`number`,`function`,`string`,`symbol`].forEach(function(e,t){i[e]=function(n){return typeof n===e||`a`+(t<1?`n `:` `)+e}});var a={},o=r.version.split(`.`);function s(e,t){for(var n=t?t.split(`.`):o,r=e.split(`.`),i=0;i<3;i++)if(n[i]>r[i])return!0;else if(n[i]<r[i])return!1;return!1}i.transitional=function(e,t,n){var i=t&&s(t);function o(e,t){return`[Axios v`+r.version+`] Transitional option '`+e+`'`+t+(n?`. `+n:``)}return function(n,r,s){if(e===!1)throw Error(o(r,` has been removed in `+t));return i&&!a[r]&&(a[r]=!0,console.warn(o(r,` has been deprecated since v`+t+` and will be removed in the near future`))),e?e(n,r,s):!0}};function c(e,t,n){if(typeof e!=`object`)throw TypeError(`options must be an object`);for(var r=Object.keys(e),i=r.length;i-- >0;){var a=r[i],o=t[a];if(o){var s=e[a],c=s===void 0||o(s,a,e);if(c!==!0)throw TypeError(`option `+a+` must be `+c);continue}if(n!==!0)throw Error(`Unknown option `+a)}}n.exports={isOlderVersion:s,assertOptions:c,validators:i}})),Eme=a(((e,t)=>{var n=$k(),r=eA(),i=pme(),a=Sme(),o=sA(),s=Tme(),c=s.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e){typeof e==`string`?(e=arguments[1]||{},e.url=arguments[0]):e||={},e=o(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method=`get`;var t=e.transitional;t!==void 0&&s.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean,`1.0.0`),forcedJSONParsing:c.transitional(c.boolean,`1.0.0`),clarifyTimeoutError:c.transitional(c.boolean,`1.0.0`)},!1);var n=[],r=!0;this.interceptors.request.forEach(function(t){typeof t.runWhen==`function`&&t.runWhen(e)===!1||(r&&=t.synchronous,n.unshift(t.fulfilled,t.rejected))});var i=[];this.interceptors.response.forEach(function(e){i.push(e.fulfilled,e.rejected)});var l;if(!r){var u=[a,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(i),l=Promise.resolve(e);u.length;)l=l.then(u.shift(),u.shift());return l}for(var d=e;n.length;){var f=n.shift(),p=n.shift();try{d=f(d)}catch(e){p(e);break}}try{l=a(d)}catch(e){return Promise.reject(e)}for(;i.length;)l=l.then(i.shift(),i.shift());return l},l.prototype.getUri=function(e){return e=o(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,``)}
346,n.forEach([`delete`,`get`,`head`,`options`],function(e){l.prototype[e]=function(t,n){return this.request(o(n||{},{method:e,url:t,data:(n||{}).data}))}}),n.forEach([`post`,`put`,`patch`],function(e){l.prototype[e]=function(t,n,r){return this.request(o(r||{},{method:e,url:t,data:n}))}}),t.exports=l})),EA=a(((e,t)=>{function n(e){this.message=e}n.prototype.toString=function(){return`Cancel`+(this.message?`: `+this.message:``)},n.prototype.__CANCEL__=!0,t.exports=n})),Dme=a(((e,t)=>{var n=EA();function r(e){if(typeof e!=`function`)throw TypeError(`executor must be a function.`);var t;this.promise=new Promise(function(e){t=e});var r=this;e(function(e){r.reason||(r.reason=new n(e),t(r.reason))})}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r(function(t){e=t}),cancel:e}},t.exports=r})),Ome=a(((e,t)=>{t.exports=function(e){return function(t){return e.apply(null,t)}}})),kme=a(((e,t)=>{t.exports=function(e){return typeof e==`object`&&e.isAxiosError===!0}})),Ame=a(((e,t)=>{var n=$k(),r=Qk(),i=Eme(),a=sA(),o=aA();function s(e){var t=new i(e),a=r(i.prototype.request,t);return n.extend(a,i.prototype,t),n.extend(a,t),a}var c=s(o);c.Axios=i,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=EA(),c.CancelToken=Dme(),c.isCancel=oA(),c.all=function(e){return Promise.all(e)}
vendor: 5,561 bytes, line 346
346,c.spread=Ome(),c.isAxiosError=kme(),t.exports=c,t.exports.default=c})),jme=a(((e,t)=>{t.exports=Ame()})),DA=a(((e,t)=>{t.exports=Array.isArray})),OA=a(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),kA=a(((e,t)=>{var n=OA(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),AA=a(((e,t)=>{t.exports=kA().Symbol})),Mme=a(((e,t)=>{var n=AA(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),Nme=a(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),jA=a(((e,t)=>{var n=AA(),r=Mme(),i=Nme(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),MA=a(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),NA=a(((e,t)=>{var n=jA(),r=MA(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),Pme=a(((e,t)=>{var n=DA(),r=NA(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),PA=a(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),FA=a(((e,t)=>{var n=jA(),r=PA(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),Fme=a(((e,t)=>{t.exports=kA()[`__core-js_shared__`]})),Ime=a(((e,t)=>{var n=Fme(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),IA=a(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),Lme=a(((e,t)=>{var n=FA(),r=Ime(),i=PA(),a=IA(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),Rme=a(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),LA=a(((e,t)=>{var n=Lme(),r=Rme();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),RA=a(((e,t)=>{t.exports=LA()(Object,`create`)})),zme=a(((e,t)=>{var n=RA();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),Bme=a(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),Vme=a(((e,t)=>{var n=RA(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),Hme=a(((e,t)=>{var n=RA(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),Ume=a(((e,t)=>{var n=RA(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),Wme=a(((e,t)=>{var n=zme(),r=Bme(),i=Vme(),a=Hme(),o=Ume();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Gme=a(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),zA=a(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),BA=a(((e,t)=>{var n=zA();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),Kme=a(((e,t)=>{var n=BA(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),qme=a(((e,t)=>{var n=BA();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),Jme=a(((e,t)=>{var n=BA();function r(e){return n(this.__data__,e)>-1}t.exports=r})),Yme=a(((e,t)=>{var n=BA();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),VA=a(((e,t)=>{var n=Gme(),r=Kme(),i=qme(),a=Jme(),o=Yme();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),HA=a(((e,t)=>{t.exports=LA()(kA(),`Map`)})),Xme=a(((e,t)=>{var n=Wme(),r=VA(),i=HA();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),Zme=a(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),UA=a(((e,t)=>{var n=Zme();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),Qme=a(((e,t)=>{var n=UA();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),WA=a(((e,t)=>{var n=UA();function r(e){return n(this,e).get(e)}t.exports=r})),GA=a(((e,t)=>{var n=UA();function r(e){return n(this,e).has(e)}t.exports=r})),KA=a(((e,t)=>{var n=UA();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),qA=a(((e,t)=>
346{var n=Xme(),r=Qme(),i=WA(),a=GA(),o=KA();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),JA=a(((e,t)=>{var n=qA(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i})),YA=a(((e,t)=>{var n=JA(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),XA=a(((e,t)=>{var n=YA(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),ZA=a(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),QA=a(((e,t)=>{var n=AA(),r=ZA(),i=DA(),a=NA(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),$A=a(((e,t)=>{var n=QA();function r(e){return e==null?``:n(e)}t.exports=r})),ej=a(((e,t)=>{var n=DA(),r=Pme(),i=XA(),a=$A();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),tj=a(((e,t)=>{var n=NA(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),nj=a(((e,t)=>{var n=ej(),r=tj();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),rj=a(((e,t)=>{var n=nj();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r})),ij=a(((e,t)=>{var n=LA();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),aj=a(((e,t)=>{var n=ij();function r(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=r})),oj=a(((e,t)=>{var n=aj(),r=zA(),i=Object.prototype.hasOwnProperty;function a(e,t,a){var o=e[t];(!(i.call(e,t)&&r(o,a))||a===void 0&&!(t in e))&&n(e,t,a)}t.exports=a})),sj=a(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e<t}t.exports=i})),cj=a(((e,t)=>{var n=oj(),r=ej(),i=sj(),a=PA(),o=tj();function s(e,t,s,c){if(!a(e))return e;t=r(t,e);for(var l=-1,u=t.length,d=u-1,f=e;f!=null&&++l<u;){var p=o(t[l]),m=s;if(p===`__proto__`||p===`constructor`||p===`prototype`)return e;if(l!=d){var h=f[p];m=c?c(h,p,f):void 0,m===void 0&&(m=a(h)?h:i(t[l+1])?[]:{})}n(f,p,m),f=f[p]}return e}t.exports=s})),lj=a(((e,t)=>{var n=cj();function r(e,t,r){return e==null?e:n(e,t,r)}t.exports=r})),uj=a(((e,t)=>{t.exports=TypeError})),dj=a(((e,t)=>{t.exports={}})),fj=a(((e,t)=>{var n=typeof Map==`function`&&Map.prototype,r=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,`size`):null,i=n&&r&&typeof r.get==`function`?r.get:null,a=n&&Map.prototype.forEach,o=typeof Set==`function`&&Set.prototype,s=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,`size`):null,c=o&&s&&typeof s.get==`function`?s.get:null,l=o&&Set.prototype.forEach,u=typeof WeakMap==`function`&&WeakMap.prototype?WeakMap.prototype.has:null,d=typeof WeakSet==`function`&&WeakSet.prototype?WeakSet.prototype.has:null,f=typeof WeakRef==`function`&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,h=Function.prototype.toString,g=String.prototype.match,_=String.prototype.slice,v=String.prototype.replace,y=String.prototype.toUpperCase,b=String.prototype.toLowerCase,x=RegExp.prototype.test,S=Array.prototype.concat,C=Array.prototype.join,w=Array.prototype.slice,T=Math.floor,E=typeof BigInt==`function`?BigInt.prototype.valueOf:null,D=Object.getOwnPropertySymbols,O=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?Symbol.prototype.toString:null,k=typeof Symbol==`function`&&typeof Symbol.iterator==`object`,A=typeof Symbol==`function`&&Symbol.toStringTag?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,M=(typeof Reflect==`function`?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||x.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e==`number`){var r=e<0?-T(-e):T(e);if(r!==e){var i=String(r),a=_.call(t,i.length+1);return v.call(i,n,`$&_`)+`.`+v.call(v.call(a,/([0-9]{3})/g,`$&_`),/_$/,``)}}return v.call(t,n,`$&_`)}var P=dj(),F=P.custom,ee=fe(F)?F:null,te={__proto__:null,double:`"`,single:`'`},ne={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t.exports=function e(t,n,r,o){var s=n||{};if(he(s,`quoteStyle`)&&!he(te,s.quoteStyle))throw TypeError(`option "quoteStyle" must be "single" or "double"`);if(he(s,`maxStringLength`)&&(typeof s.maxStringLength==`number`?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=he(s,`customInspect`)?s.customInspect:!0;if(typeof u!=`boolean`&&u!==`symbol`)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
vendor: 9,680 bytes, lines 346-349
346if(he(s,`indent`)&&s.indent!==null&&s.indent!==` `&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(he(s,`numericSeparator`)&&typeof s.numericSeparator!=`boolean`)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=s.numericSeparator;if(t===void 0)return`undefined`;if(t===null)return`null`;if(typeof t==`boolean`)return t?`true`:`false`;if(typeof t==`string`)return we(t,s);if(typeof t==`number`){if(t===0)return 1/0/t>0?`0`:`-0`;var f=String(t);return d?N(t,f):f}if(typeof t==`bigint`){var m=String(t)+`n`;return d?N(t,m):m}var h=s.depth===void 0?5:s.depth;if(r===void 0&&(r=0),r>=h&&h>0&&typeof t==`object`)return ae(t)?`[Array]`:`[Object]`;var g=Ae(s,r);if(o===void 0)o=[];else if(_e(o,t)>=0)return`[Circular]`;function y(t,n,i){if(n&&(o=w.call(o),o.push(n)),i){var a={depth:s.depth};return he(s,`quoteStyle`)&&(a.quoteStyle=s.quoteStyle),e(t,a,r+1,o)}return e(t,s,r+1,o)}if(typeof t==`function`&&!se(t)){var x=ge(t),T=Me(t,y);return`[Function`+(x?`: `+x:` (anonymous)`)+`]`+(T.length>0?` { `+C.call(T,`, `)+` }`:``)}if(fe(t)){var D=k?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,`$1`):O.call(t);return typeof t==`object`&&!k?Ee(D):D}if(Ce(t)){for(var F=`<`+b.call(String(t.nodeName)),ne=t.attributes||[],ie=0;ie<ne.length;ie++)F+=` `+ne[ie].name+`=`+re(I(ne[ie].value),`double`,s);return F+=`>`,t.childNodes&&t.childNodes.length&&(F+=`...`),F+=`</`+b.call(String(t.nodeName))+`>`,F}if(ae(t)){if(t.length===0)return`[]`;var me=Me(t,y);return g&&!ke(me)?`[`+je(me,g)+`]`:`[ `+C.call(me,`, `)+` ]`}if(ce(t)){var Te=Me(t,y);return!(`cause`in Error.prototype)&&`cause`in t&&!j.call(t,`cause`)?`{ [`+String(t)+`] `+C.call(S.call(`[cause]: `+y(t.cause),Te),`, `)+` }`:Te.length===0?`[`+String(t)+`]`:`{ [`+String(t)+`] `+C.call(Te,`, `)+` }`}if(typeof t==`object`&&u){if(ee&&typeof t[ee]==`function`&&P)return P(t,{depth:h-r});if(u!==`symbol`&&typeof t.inspect==`function`)return t.inspect()}if(ve(t)){var Ne=[];return a&&a.call(t,function(e,n){Ne.push(y(n,t,!0)+` => `+y(e,t))}),Oe(`Map`,i.call(t),Ne,g)}if(xe(t)){var Pe=[];return l&&l.call(t,function(e){Pe.push(y(e,t))}),Oe(`Set`,c.call(t),Pe,g)}if(ye(t))return De(`WeakMap`);if(Se(t))return De(`WeakSet`);if(be(t))return De(`WeakRef`);if(ue(t))return Ee(y(Number(t)));if(pe(t))return Ee(y(E.call(t)));if(de(t))return Ee(p.call(t));if(le(t))return Ee(y(String(t)));if(typeof window<`u`&&t===window)return`{ [object Window] }`;if(typeof globalThis<`u`&&t===globalThis||typeof global<`u`&&t===global)return`{ [object globalThis] }`;if(!oe(t)&&!se(t)){var Fe=Me(t,y),Ie=M?M(t)===Object.prototype:t instanceof Object||t.constructor===Object,Le=t instanceof Object?``:`null prototype`,Re=!Ie&&A&&Object(t)===t&&A in t?_.call(L(t),8,-1):Le?`Object`:``,ze=(Ie||typeof t.constructor!=`function`?``:t.constructor.name?t.constructor.name+` `:``)+(Re||Le?`[`+C.call(S.call([],Re||[],Le||[]),`: `)+`] `:``);return Fe.length===0?ze+`{}`:g?ze+`{`+je(Fe,g)+`}`:ze+`{ `+C.call(Fe,`, `)+` }`}return String(t)};function re(e,t,n){var r=te[n.quoteStyle||t];return r+e+r}function I(e){return v.call(String(e),/"/g,`"`)}function ie(e){return!A||!(typeof e==`object`&&(A in e||e[A]!==void 0))}function ae(e){return L(e)===`[object Array]`&&ie(e)}function oe(e){return L(e)===`[object Date]`&&ie(e)}function se(e){return L(e)===`[object RegExp]`&&ie(e)}function ce(e){return L(e)===`[object Error]`&&ie(e)}function le(e){return L(e)===`[object String]`&&ie(e)}function ue(e){return L(e)===`[object Number]`&&ie(e)}function de(e){return L(e)===`[object Boolean]`&&ie(e)}function fe(e){if(k)return e&&typeof e==`object`&&e instanceof Symbol;if(typeof e==`symbol`)return!0;if(!e||typeof e!=`object`||!O)return!1;try{return O.call(e),!0}catch{}return!1}function pe(e){if(!e||typeof e!=`object`||!E)return!1;try{return E.call(e),!0}catch{}return!1}var me=Object.prototype.hasOwnProperty||function(e){return e in this};function he(e,t){return me.call(e,t)}function L(e){return m.call(e)}function ge(e){if(e.name)return e.name;var t=g.call(h.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function _e(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function ve(e){if(!i||!e||typeof e!=`object`)return!1;try{i.call(e);try{c.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function ye(e){if(!u||!e||typeof e!=`object`)return!1;try{u.call(e,u);try{d.call(e,d)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function be(e){if(!f||!e||typeof e!=`object`)return!1;try{return f.call(e),!0}catch{}return!1}function xe(e){if(!c||!e||typeof e!=`object`)return!1;try{c.call(e);try{i.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Se(e){if(!d||!e||typeof e!=`object`)return!1;try{d.call(e,d);try{u.call(e,u)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Ce(e){return!e||typeof e!=`object`?!1:typeof HTMLElement<`u`&&e instanceof HTMLElement?!0:typeof e.nodeName==`string`&&typeof e.getAttribute==`function`}function we(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r=`... `+n+` more character`+(n>1?`s`:``);return we(_.call(e,0,t.maxStringLength),t)+r}var i=ne[t.quoteStyle||`single`];return i.lastIndex=0,re(v.call(v.call(e,i,`\\$1`),/[\x00-\x1f]/g,Te),`single`,t)}function Te(e){var t=e.charCodeAt(0),n={8:`b`,9:`t`,10:`n`,12:`f`,13:`r`}[t];return n?`\\`+n:`\\x`+(t<16?`0`:``)+y.call(t.toString(16))}function Ee(e){return`Object(`+e+`)`}function De(e){return e+` { ? }`}function Oe(e,t,n,r){var i=r?je(n,r):C.call(n,`, `);return e+` (`+t+`) {`+i+`}`}function ke(e){for(var t=0;t<e.length;t++)if(_e(e[t],` 347`)>=0)return!1;return!0}function Ae(e,t){var n;if(e.indent===` `)n=` `;else if(typeof e.indent==`number`&&e.indent>0)n=C.call(Array(e.indent+1),` `);else return null;return{base:n,prev:C.call(Array(t+1),n)}}function je(e,t){if(e.length===0)return``;var n=` 348`+t.prev+t.base;return n+C.call(e,`,`+n)+` 349`+t.prev}function Me(e,t){var n=ae(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=he(e,i)?t(e[i],e):``}var a=typeof D==`function`?D(e):[],o;if(k){o={};for(var s=0;s<a.length;s++)o[`$`+a[s]]=a[s]}for(var c in e)he(e,c)&&(n&&String(Number(c))===c&&c<e.length||k&&o[`$`+c]instanceof Symbol||(x.call(/[^\w$]/,c)?r.push(t(c,e)+`: `+t(e[c],e)):r.push(c+`: `+t(e[c],e))));if(typeof D==`function`)for(var l=0;l<a.length;l++)j.call(e,a[l])&&r.push(`[`+t(a[l])+`]: `+t(e[a[l]],e));return r}})),pj=a(((e,t)=>{var n=fj(),r=uj(),i=function(e,t,n){for(var r=e,i;(i=r.next)!=null;r=i)if(i.key===t)return r.next=i.next,n||(i.next=e.next,e.next=i),i},a=function(e,t){if(e){var n=i(e,t);return n&&n.value}},o=function(e,t,n){var r=i(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},s=function(e,t){return e?!!i(e,t):!1},c=function(e,t){if(e)return i(e,t,!0)};t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new r(`Side channel does not contain `+n(e))},delete:function(t){var n=c(e,t);return n&&e&&!e.next&&(e=void 0),!!n},get:function(t){return a(e,t)},has:function(t){return s(e,t)},set:function(t,n){e||={next:void 0},o(e,t,n)}};return t}})),mj=a(((e,t)=>{t.exports=Object})),hj=a(((e,t)=>{t.exports=Error})),gj=a(((e,t)=>{t.exports=EvalError})),_j=a(((e,t)=>{t.exports=RangeError})),vj=a(((e,t)=>{t.exports=ReferenceError})),yj=a(((e,t)=>{t.exports=SyntaxError})),bj=a(((e,t)=>{t.exports=URIError})),xj=a(((e,t)=>{t.exports=Math.abs})),Sj=a(((e,t)=>{t.exports=Math.floor})),Cj=a(((e,t)=>{t.exports=Math.max})),wj=a(((e,t)=>{t.exports=Math.min})),Tj=a(((e,t)=>{t.exports=Math.pow})),Ej=a(((e,t)=>{t.exports=Math.round})),Dj=a(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),Oj=a(((e,t)=>{var n=Dj();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),kj=a(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),Aj=a(((e,t)=>{var n=kj();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),jj=a(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),Mj=a(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),Nj=a(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=Mj();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),Pj=a(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),Fj=a(((e,t)=>{t.exports=mj().getPrototypeOf||null})),Ij=a(((e,t)=>{var n=`Function.prototype.bind called on incompatible `,r=Object.prototype.toString,i=Math.max,a=`[object Function]`,o=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},s=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},c=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||r.apply(t)!==a)throw TypeError(n+t);
349for(var l=s(arguments,1),u,d=function(){if(this instanceof u){var n=t.apply(this,o(l,arguments));return Object(n)===n?n:this}return t.apply(e,o(l,arguments))},f=i(0,t.length-l.length),p=[],m=0;m<f;m++)p[m]=`$`+m;if(u=Function(`binder`,`return function (`+c(p,`,`)+`){ return binder.apply(this,arguments); }`)(d),t.prototype){var h=function(){};h.prototype=t.prototype,u.prototype=new h,h.prototype=null}return u}})),Lj=a(((e,t)=>{var n=Ij();t.exports=Function.prototype.bind||n})),Rj=a(((e,t)=>{t.exports=Function.prototype.call})),zj=a(((e,t)=>{t.exports=Function.prototype.apply})),Bj=a(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),Vj=a(((e,t)=>{var n=Lj(),r=zj(),i=Rj();t.exports=Bj()||n.call(i,r)})),Hj=a(((e,t)=>{var n=Lj(),r=uj(),i=Rj(),a=Vj();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}})),Uj=a(((e,t)=>{var n=Hj(),r=Aj(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`?function(e){return s(e==null?e:o(e))}:!1})),Wj=a(((e,t)=>{var n=Pj(),r=Fj(),i=Uj();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),Gj=a(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=Lj().call(n,r)})),Kj=a(((e,t)=>{var n,r=mj(),i=hj(),a=gj(),o=_j(),s=vj(),c=yj(),l=uj(),u=bj(),d=xj(),f=Sj(),p=Cj(),m=wj(),h=Tj(),g=Ej(),_=Oj(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=Aj(),x=jj(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=Nj()(),T=Wj(),E=Fj(),D=Pj(),O=zj(),k=Rj(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>
vendor: 8,289 bytes, line 349
349`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){M[`%Error.prototype%`]=T(T(e))}var N=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},P={__proto__:null,"%ArrayBufferPrototype%":[`ArrayBuffer`,`prototype`],"%ArrayPrototype%":[`Array`,`prototype`],"%ArrayProto_entries%":[`Array`,`prototype`,`entries`],"%ArrayProto_forEach%":[`Array`,`prototype`,`forEach`],"%ArrayProto_keys%":[`Array`,`prototype`,`keys`],"%ArrayProto_values%":[`Array`,`prototype`,`values`],"%AsyncFunctionPrototype%":[`AsyncFunction`,`prototype`],"%AsyncGenerator%":[`AsyncGeneratorFunction`,`prototype`],"%AsyncGeneratorPrototype%":[`AsyncGeneratorFunction`,`prototype`,`prototype`],"%BooleanPrototype%":[`Boolean`,`prototype`],"%DataViewPrototype%":[`DataView`,`prototype`],"%DatePrototype%":[`Date`,`prototype`],"%ErrorPrototype%":[`Error`,`prototype`],"%EvalErrorPrototype%":[`EvalError`,`prototype`],"%Float32ArrayPrototype%":[`Float32Array`,`prototype`],"%Float64ArrayPrototype%":[`Float64Array`,`prototype`],"%FunctionPrototype%":[`Function`,`prototype`],"%Generator%":[`GeneratorFunction`,`prototype`],"%GeneratorPrototype%":[`GeneratorFunction`,`prototype`,`prototype`],"%Int8ArrayPrototype%":[`Int8Array`,`prototype`],"%Int16ArrayPrototype%":[`Int16Array`,`prototype`],"%Int32ArrayPrototype%":[`Int32Array`,`prototype`],"%JSONParse%":[`JSON`,`parse`],"%JSONStringify%":[`JSON`,`stringify`],"%MapPrototype%":[`Map`,`prototype`],"%NumberPrototype%":[`Number`,`prototype`],"%ObjectPrototype%":[`Object`,`prototype`],"%ObjProto_toString%":[`Object`,`prototype`,`toString`],"%ObjProto_valueOf%":[`Object`,`prototype`,`valueOf`],"%PromisePrototype%":[`Promise`,`prototype`],"%PromiseProto_then%":[`Promise`,`prototype`,`then`],"%Promise_all%":[`Promise`,`all`],"%Promise_reject%":[`Promise`,`reject`],"%Promise_resolve%":[`Promise`,`resolve`],"%RangeErrorPrototype%":[`RangeError`,`prototype`],"%ReferenceErrorPrototype%":[`ReferenceError`,`prototype`],"%RegExpPrototype%":[`RegExp`,`prototype`],"%SetPrototype%":[`Set`,`prototype`],"%SharedArrayBufferPrototype%":[`SharedArrayBuffer`,`prototype`],"%StringPrototype%":[`String`,`prototype`],"%SymbolPrototype%":[`Symbol`,`prototype`],"%SyntaxErrorPrototype%":[`SyntaxError`,`prototype`],"%TypedArrayPrototype%":[`TypedArray`,`prototype`],"%TypeErrorPrototype%":[`TypeError`,`prototype`],"%Uint8ArrayPrototype%":[`Uint8Array`,`prototype`],"%Uint8ClampedArrayPrototype%":[`Uint8ClampedArray`,`prototype`],"%Uint16ArrayPrototype%":[`Uint16Array`,`prototype`],"%Uint32ArrayPrototype%":[`Uint32Array`,`prototype`],"%URIErrorPrototype%":[`URIError`,`prototype`],"%WeakMapPrototype%":[`WeakMap`,`prototype`],"%WeakSetPrototype%":[`WeakSet`,`prototype`]},F=Lj(),ee=Gj(),te=F.call(k,Array.prototype.concat),ne=F.call(O,Array.prototype.splice),re=F.call(k,String.prototype.replace),I=F.call(k,String.prototype.slice),ie=F.call(k,RegExp.prototype.exec),ae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,oe=/\\(\\)?/g,se=function(e){var t=I(e,0,1),n=I(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return re(e,ae,function(e,t,n,i){r[r.length]=n?re(i,oe,`$1`):t||e}),r},ce=function(e,t){var n=e,r;if(ee(P,n)&&(r=P[n],n=`%`+r[0]+`%`),ee(M,n)){var i=M[n];if(i===A&&(i=N(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(ie(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=se(e),r=n.length>0?n[0]:``,i=ce(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],ne(n,te([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=I(p,0,1),h=I(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,ee(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=ee(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}})),qj=a(((e,t)=>{var n=Kj(),r=Hj(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}})),Jj=a(((e,t)=>{var n=Kj(),r=qj(),i=fj(),a=uj(),o=n(`%Map%`,!0),s=r(`Map.prototype.get`,!0),c=r(`Map.prototype.set`,!0),l=r(`Map.prototype.has`,!0),u=r(`Map.prototype.delete`,!0),d=r(`Map.prototype.size`,!0);t.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new a(`Side channel does not contain `+i(e))},delete:function(t){if(e){var n=u(e,t);return d(e)===0&&(e=void 0),n}return!1},get:function(t){if(e)return s(e,t)},has:function(t){return e?l(e,t):!1},set:function(t,n){e||=new o,c(e,t,n)}};return t}})),Yj=a(((e,t)=>{var n=Kj(),r=qj(),i=fj(),a=Jj(),o=uj(),s=n(`%WeakMap%`,!0),c=r(`WeakMap.prototype.get`,!0),l=r(`WeakMap.prototype.set`,!0),u=r(`WeakMap.prototype.has`,!0),d=r(`WeakMap.prototype.delete`,!0);t.exports=s?function(){var e,t,n={assert:function(e){if(!n.has(e))throw new o(`Side channel does not contain `+i(e))},delete:function(n){if(s&&n&&(typeof n==`object`||typeof n==`function`)){if(e)return d(e,n)}else if(a&&t)return t.delete(n);return!1},get:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?c(e,n):t&&t.get(n)},has:function(n){return s&&n&&(typeof n==`object`||typeof n==`function`)&&e?u(e,n):!!t&&t.has(n)},set:function(n,r){s&&n&&(typeof n==`object`||typeof n==`function`)?(e||=new s,l(e,n,r)):a&&(t||=a(),t.set(n,r))}};return n}:a})),Xj=a(((e,t)=>{var n=uj(),r=fj(),i=pj(),a=Jj(),o=Yj()||a||i;t.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n(`Side channel does not contain `+(e&&Object(e)===e?`the given object key`:r(e)))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,n){e||=o(),e.set(t,n)}};return t}})),Zj=a(((e,t)=>
349{var n=String.prototype.replace,r=/%20/g,i={RFC1738:`RFC1738`,RFC3986:`RFC3986`};t.exports={default:i.RFC3986,formatters:{RFC1738:function(e){return n.call(e,r,`+`)},RFC3986:function(e){return String(e)}},RFC1738:i.RFC1738,RFC3986:i.RFC3986}})),Qj=a(((e,t)=>{var n=Zj(),r=Xj(),i=jj(),a=Object.prototype.hasOwnProperty,o=Array.isArray,s=r(),c=function(e,t){return s.set(e,t),e},l=function(e){return s.has(e)},u=function(e){return s.get(e)},d=function(e,t){s.set(e,t)},f=function(){for(var e=[],t=0;t<256;++t)e[e.length]=`%`+((t<16?`0`:``)+t.toString(16)).toUpperCase();return e}(),p=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)n[i]!==void 0&&(r[r.length]=n[i]);t.obj[t.prop]=r}}},m=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)e[r]!==void 0&&(n[r]=e[r]);return n},h=function(e,t,n){t===`__proto__`&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},g=function e(t,n,r){if(!n)return t;if(typeof n!=`object`&&typeof n!=`function`){if(o(t)){var i=t.length;if(r&&typeof r.arrayLimit==`number`&&i>=r.arrayLimit){if(r.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+r.arrayLimit+` element`+(r.arrayLimit===1?``:`s`)+` allowed in an array.`);return c(m(t.concat(n),r),i)}t[i]=n}else if(t&&typeof t==`object`)if(l(t)){var s=u(t)+1;t[s]=n,d(t,s)}else if(r&&r.strictMerge)return[t,n];else (r&&(r.plainObjects||r.allowPrototypes)||!a.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!=`object`){if(l(n)){for(var f=Object.keys(n),p=r&&r.plainObjects?{__proto__:null,0:t}:{0:t},g=0;g<f.length;g++){var _=parseInt(f[g],10);p[_+1]=n[f[g]]}return c(p,u(n)+1)}var v=[t].concat(n);if(r&&typeof r.arrayLimit==`number`&&v.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+r.arrayLimit+` element`+(r.arrayLimit===1?``:`s`)+` allowed in an array.`);return c(m(v,r),v.length-1)}return v}var y=t;if(o(t)&&!o(n)&&(y=m(t,r)),o(t)&&o(n)){if(n.forEach(function(n,i){if(a.call(t,i)){var o=t[i];o&&typeof o==`object`&&n&&typeof n==`object`?t[i]=e(o,n,r):t[t.length]=n}else t[i]=n}),r&&typeof r.arrayLimit==`number`&&t.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+r.arrayLimit+` element`+(r.arrayLimit===1?``:`s`)+` allowed in an array.`);return c(m(t,r),t.length-1)}return t}return Object.keys(n).reduce(function(t,i){var o=n[i];if(a.call(t,i)?h(t,i,e(t[i],o,r)):h(t,i,o),l(n)&&!l(t)&&c(t,u(n)),l(t)){var s=parseInt(i,10);String(s)===i&&s>=0&&s>u(t)&&d(t,s)}return t},y)},_=function(e,t){return Object.keys(t).reduce(function(e,n){return h(e,n,t[n]),e},e)},v=function(e,t,n){var r=e.replace(/\+/g,` `);if(n===`iso-8859-1`)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},y=1024;t.exports={arrayToObject:m,assign:_,combine:function(e,t,n,r,i){if(l(e)){if(i)throw RangeError(`Array limit exceeded. Only `+n+` element`+(n===1?``:`s`)+` allowed in an array.`);var a=u(e)+1;return e[a]=t,d(e,a),e}var o=[].concat(e,t);if(o.length>n){if(i)throw RangeError(`Array limit exceeded. Only `+n+` element`+(n===1?``:`s`)+` allowed in an array.`);return c(m(o,{plainObjects:r}),o.length-1)}return o},compact:function(e){for(var t=[{obj:{o:e},prop:`o`}],n=r(),i=0;i<t.length;++i)for(var a=t[i],o=a.obj[a.prop],s=Object.keys(o),c=0;c<s.length;++c){var l=s[c],u=o[l];typeof u==`object`&&u&&!n.has(u)&&(t[t.length]={obj:o,prop:l},n.set(u,!0))}return p(t),e},decode:v,encode:function(e,t,r,i,a){if(e.length===0)return e;var o=e;if(typeof e==`symbol`?o=Symbol.prototype.toString.call(e):typeof e!=`string`&&(o=String(e)),r===`iso-8859-1`)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return`%26%23`+parseInt(e.slice(2),16)+`%3B`});for(var s=``,c=0;c<o.length;c+=y){var l=o.length>=y?o.slice(c,c+y):o;if(c+y<o.length){var u=l.charCodeAt(l.length-1);u>=55296&&u<=56319&&(l=l.slice(0,-1),--c)}for(var d=[],p=0;p<l.length;++p){var m=l.charCodeAt(p);if(m===45||m===46||m===95||m===126||m>=48&&m<=57||m>=65&&m<=90||m>=97&&m<=122||a===n.RFC1738&&(m===40||m===41)){d[d.length]=l.charAt(p);continue}if(m<128){d[d.length]=f[m];continue}if(m<2048){d[d.length]=f[192|m>>6]+f[128|m&63];continue}if(m<55296||m>=57344){d[d.length]=f[224|m>>12]+f[128|m>>6&63]+f[128|m&63];continue}p+=1,m=65536+((m&1023)<<10|l.charCodeAt(p)&1023),d[d.length]=f[240|m>>18]+f[128|m>>12&63]+f[128|m>>6&63]+f[128|m&63]}s+=d.join(``)}return s},isBuffer:function(e){return!e||typeof e!=`object`?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:l,isRegExp:function(e){return Object.prototype.toString.call(e)===`[object RegExp]`},markOverflow:c,maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n[n.length]=t(e[r]);return n}return t(e)},merge:g}})),$j=a(((e,t)=>{var n=Xj(),r=Qj(),i=Zj(),a=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+`[]`},comma:`comma`,indices:function(e,t){return e+`[`+t+`]`},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,l=function(e,t){c.apply(e,s(t)?t:[t])},u=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:`indices`,charset
vendor: 8,809 bytes, line 349
349:`utf-8`,charsetSentinel:!1,commaRoundTrip:!1,delimiter:`&`,encode:!0,encodeDotInKeys:!1,encoder:r.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return u.call(e)},skipNulls:!1,strictNullHandling:!1},p=function(e){return typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`symbol`||typeof e==`bigint`},m={},h=function e(t,i,a,o,c,u,d,h,g,_,v,y,b,x,S,C,w,T){for(var E=t,D=T,O=0,k=!1;(D=D.get(m))!==void 0&&!k;){var A=D.get(t);if(O+=1,A!==void 0){if(A===O)throw RangeError(`Cyclic object value`);k=!0}D.get(m)===void 0&&(O=0)}if(typeof _==`function`?E=_(i,E):E instanceof Date?E=b(E):a===`comma`&&s(E)&&(E=r.maybeMap(E,function(e){return e instanceof Date?b(e):e})),E===null){if(u)return S(g&&!C?g(i,f.encoder,w,`key`,x):i);E=``}if(p(E)||r.isBuffer(E))return g?[S(C?i:g(i,f.encoder,w,`key`,x))+`=`+S(g(E,f.encoder,w,`value`,x))]:[S(i)+`=`+S(String(E))];var j=[];if(E===void 0)return j;var M;if(a===`comma`&&s(E))C&&g&&(E=r.maybeMap(E,function(e){return e==null?e:g(e)})),M=[{value:E.length>0?E.join(`,`)||null:void 0}];else if(s(_))M=_;else{var N=Object.keys(E);M=v?N.sort(v):N}var P=h?String(i).replace(/\./g,`%2E`):String(i),F=o&&s(E)&&E.length===1?P+`[]`:P;if(c&&s(E)&&E.length===0)return F+`[]`;for(var ee=0;ee<M.length;++ee){var te=M[ee],ne=typeof te==`object`&&te&&te.value!==void 0?te.value:E[te];if(!(d&&ne===null)){var re=y&&h?String(te).replace(/\./g,`%2E`):String(te),I=s(E)?typeof a==`function`?a(F,re):F:F+(y?`.`+re:`[`+re+`]`);T.set(t,O);var ie=n();ie.set(m,T),l(j,e(ne,I,a,o,c,u,d,h,a===`comma`&&C&&s(E)?null:g,_,v,y,b,x,S,C,w,ie))}}return j},g=function(e){if(!e)return f;if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.encodeDotInKeys!==void 0&&typeof e.encodeDotInKeys!=`boolean`)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&e.encoder!==void 0&&typeof e.encoder!=`function`)throw TypeError(`Encoder has to be a function.`);var t=e.charset||f.charset;if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);var n=i.default;if(e.format!==void 0){if(!a.call(i.formatters,e.format))throw TypeError(`Unknown format option provided.`);n=e.format}var r=i.formatters[n],c=f.filter;(typeof e.filter==`function`||s(e.filter))&&(c=e.filter);var l=e.arrayFormat in o?e.arrayFormat:`indices`in e?e.indices?`indices`:`repeat`:f.arrayFormat;if(`commaRoundTrip`in e&&typeof e.commaRoundTrip!=`boolean`)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var u=e.allowDots===void 0?e.encodeDotInKeys===!0?!0:f.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix==`boolean`?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:l,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:f.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:e.delimiter===void 0?f.delimiter:e.delimiter,encode:typeof e.encode==`boolean`?e.encode:f.encode,encodeDotInKeys:typeof e.encodeDotInKeys==`boolean`?e.encodeDotInKeys:f.encodeDotInKeys,encoder:typeof e.encoder==`function`?e.encoder:f.encoder,encodeValuesOnly:typeof e.encodeValuesOnly==`boolean`?e.encodeValuesOnly:f.encodeValuesOnly,filter:c,format:n,formatter:r,serializeDate:typeof e.serializeDate==`function`?e.serializeDate:f.serializeDate,skipNulls:typeof e.skipNulls==`boolean`?e.skipNulls:f.skipNulls,sort:typeof e.sort==`function`?e.sort:null,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:f.strictNullHandling}};t.exports=function(e,t){var r=e,i=g(t),a,c;typeof i.filter==`function`?(c=i.filter,r=c(``,r)):s(i.filter)&&(c=i.filter,a=c);var u=[];if(typeof r!=`object`||!r)return``;var d=o[i.arrayFormat],f=d===`comma`&&i.commaRoundTrip;a||=Object.keys(r),i.sort&&a.sort(i.sort);for(var p=n(),m=0;m<a.length;++m){var _=a[m];if(_!=null){var v=r[_];i.skipNulls&&v===null||l(u,h(v,_,d,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,p))}}var y=u.join(i.delimiter),b=i.addQueryPrefix===!0?`?`:``;return i.charsetSentinel&&(i.charset===`iso-8859-1`?b+=`utf8=%26%2310003%3B`+i.delimiter:b+=`utf8=%E2%9C%93`+i.delimiter),y.length>0?b+y:``}})),eM=a(((e,t)=>{var n=Qj(),r=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:`utf-8`,charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:`&`,depth:5,duplicates:`combine`,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},s=function(e,t,n,r){if(e&&typeof e==`string`&&t.comma&&e.indexOf(`,`)>-1){if(r&&t.throwOnLimitExceeded)for(var i=0,a=e.indexOf(`,`);a>-1;){if(i+=1,i>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);a=e.indexOf(`,`,a+1)}return e.split(`,`)}if(t.throwOnLimitExceeded&&n>=t.arrayLimit)throw RangeError(`Array limit exceeded. Only `+t.arrayLimit+` element`+(t.arrayLimit===1?``:`s`)+` allowed in an array.`);return e},c=`utf8=%26%2310003%3B`,l=`utf8=%E2%9C%93`,u=function(e,t){var u={__proto__:null},d=t.ignoreQueryPrefix?e.replace(/^\?/,``):e;d=d.replace(/%5B/gi,`[`).replace(/%5D/gi,`]`);var f=t.parameterLimit===1/0?void 0:t.parameterLimit,p=d.split(t.delimiter,t.throwOnLimitExceeded&&f!==void 0?f+1:f);if(t.throwOnLimitExceeded&&f!==void 0&&p.length>f)throw RangeError(`Parameter limit exceeded. Only `+f+` parameter`+(f===1?``:`s`)+` allowed.`);var m=-1,h,g=t.charset;if(t.charsetSentinel)for(h=0;h<p.length;++h)p[h].indexOf(`utf8=`)===0&&(p[h]===l?g=`utf-8`:p[h]===c&&(g=`iso-8859-1`),m=h,h=p.length);for(h=0;h<p.length;++h)if(h!==m){var _=p[h],v=_.indexOf(`]=`),y=v===-1?_.indexOf(`=`):v+1,b,x;if(y===-1?(b=t.decoder(_,a.decoder,g,`key`),x=t.strictNullHandling?null:``):(b=t.decoder(_.slice(0,y),a.decoder,g,`key`),b!==null&&(x=n.maybeMap(s(_.slice(y+1),t,i(u[b])?u[b].length:0,_.indexOf(`[]=`)===-1),function(e){return t.decoder(e,a.decoder,g,`value`)}))),x&&t.interpretNumericEntities&&g===`iso-8859-1`&&(x=o(String(x))),_.indexOf(`[]=`)>-1&&(x=i(x)?[x]:x),t.comma&&i(x)&&x.length>t.arrayLimit&&(x=n.combine([],x,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded)),b!==null){var S=r.call(u,b);S&&(t.duplicates===`combine`||_.indexOf(`[]=`)>-1)?u[b]=n.combine(u[b],x,t.arrayLimit,t.plainObjects,t.throwOnLimitExceeded):(!S||t.duplicates===`last`)&&(u[b]=x)}}return u},d=function(e,t,r,i){var a=0;if(e.length>0&&e[e.length-1]===`[]`){var o=e.slice(0,-1).join(``);a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),l=e.length-1;l>=0;--l){var u,d=e[l];if(d===`[]`&&r.parseArrays)u=n.isOverflow(c)?c:r.allowEmptyArrays&&(c===``||r.strictNullHandling&&c===null)?[]:n.combine([],c,r.arrayLimit,r.plainObjects,r.throwOnLimitExceeded);else{u=r.plainObjects?{__proto__:null}:{};var f=d.charAt(0)===`[`&&d.charAt(d.length-1)===`]`?d.slice(1,-1):d,p=r.decodeDotInKeys?f.replace(/%2E/g,`.`):f,m=parseInt(p,10),h=!isNaN(m)&&d!==p&&String(m)===p&&m>=0&&r.parseArrays;if(!r.parseArrays&&p===``)u={0:c};else if(h&&m<r.arrayLimit)u=[],u[m]=c;else if(h&&r.throwOnLimitExceeded)throw RangeError(`Array limit exceeded. Only `+r.arrayLimit+` element`+(r.arrayLimit===1?``:`s`)+` allowed in an array.`);else h?(u[m]=c,n.markOverflow(u,m)):p!==`__proto__`&&(u[p]=c)}c=u}return c},f=function(e,t){var n=t.allowDots?e.replace(/\.([^.[]+)/g,`[$1]`):e;if(t.depth<=0)return!t.plainObjects&&r.call(Object.prototype,n)&&!t.allowPrototypes?void 0:[n];var i=[],a=n.indexOf(`[`),o=a>=0?n.slice(0,a):n;if(o){if(!t.plainObjects&&r.call(Object.prototype,o)&&!t.allowPrototypes)return;i[i.length]=o}for(var s=n.length,c=a,l=0;c>=0&&l<t.depth;){for(var u=1,d=c+1,f=-1;d<s&&f<0;){var p=n.charCodeAt(d);p===91?u+=1:p===93&&(--u,u===0&&(f=d)),d+=1}if(f<0)return i[i.length]=`[`+n.slice(c)+`]`,i;var m=n.slice(c,f+1),h=m.slice(1,-1);if(!t.plainObjects&&r.call(Object.prototype,h)&&!t.allowPrototypes)return;i[i.length]=m,l+=1,c=n.indexOf(`[`,f+1)}if(c>=0){if(t.strictDepth===!0)throw RangeError(`Input depth exceeded depth option of `+t.depth+` and strictDepth is true`);i[i.length]=`[`+n.slice(c)+`]`}return i},p=function(e,t,n,r){if(e){var i=f(e,n);if(i)return d(i,t,n,r)}},m=function(e){if(!e)return a;
349if(e.allowEmptyArrays!==void 0&&typeof e.allowEmptyArrays!=`boolean`)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(e.decodeDotInKeys!==void 0&&typeof e.decodeDotInKeys!=`boolean`)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!=`function`)throw TypeError(`Decoder has to be a function.`);if(e.charset!==void 0&&e.charset!==`utf-8`&&e.charset!==`iso-8859-1`)throw TypeError(`The charset option must be either utf-8, iso-8859-1, or undefined`);if(e.throwOnLimitExceeded!==void 0&&typeof e.throwOnLimitExceeded!=`boolean`)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=e.charset===void 0?a.charset:e.charset,r=e.duplicates===void 0?a.duplicates:e.duplicates;if(r!==`combine`&&r!==`first`&&r!==`last`)throw TypeError(`The duplicates option must be either combine, first, or last`);return{allowDots:e.allowDots===void 0?e.decodeDotInKeys===!0?!0:a.allowDots:!!e.allowDots,allowEmptyArrays:typeof e.allowEmptyArrays==`boolean`?!!e.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes==`boolean`?e.allowPrototypes:a.allowPrototypes,allowSparse:typeof e.allowSparse==`boolean`?e.allowSparse:a.allowSparse,arrayLimit:typeof e.arrayLimit==`number`?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel==`boolean`?e.charsetSentinel:a.charsetSentinel,comma:typeof e.comma==`boolean`?e.comma:a.comma,decodeDotInKeys:typeof e.decodeDotInKeys==`boolean`?e.decodeDotInKeys:a.decodeDotInKeys,decoder:typeof e.decoder==`function`?e.decoder:a.decoder,delimiter:typeof e.delimiter==`string`||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:typeof e.depth==`number`||e.depth===!1?+e.depth:a.depth,duplicates:r,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities==`boolean`?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:typeof e.parameterLimit==`number`?e.parameterLimit:a.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects==`boolean`?e.plainObjects:a.plainObjects,strictDepth:typeof e.strictDepth==`boolean`?!!e.strictDepth:a.strictDepth,strictMerge:typeof e.strictMerge==`boolean`?!!e.strictMerge:a.strictMerge,strictNullHandling:typeof e.strictNullHandling==`boolean`?e.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded==`boolean`?e.throwOnLimitExceeded:!1}};t.exports=function(e,t){var r=m(t);if(e===``||e==null)return r.plainObjects?{__proto__:null}:{};for(var i=typeof e==`string`?u(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var c=o[s],l=p(c,i[c],r,typeof e==`string`);a=n.merge(a,l,r)}return r.allowSparse===!0?a:n.compact(a)}})),tM=a(((e,t)=>{var n=$j(),r=eM();t.exports={formats:Zj(),parse:r,stringify:n}})),nM=a(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),rM=a(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=nM(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){let t,i=null,a,o;function s(...e){if(!s.enabled)return;let r=s,i=Number(new Date);r.diff=i-(t||i),r.prev=t,r.curr=i,t=i,e[0]=n.coerce(e[0]),typeof e[0]!=`string`&&e.unshift(`%O`);let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,i)=>{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,`enabled`,{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(
349Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||t[r]===`*`))t[r]===`*`?(i=r,a=n,r++):(n++,r++);else if(i!==-1)r=i+1,a++,n=a;else return!1;for(;r<t.length&&t[r]===`*`;)r++;return r===t.length}function o(){let e=[...n.names,...n.skips.map(e=>`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),iM=a(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=`#0000CC.#0000FF.#0033CC.#0033FF.#0066CC.#0066FF.#0099CC.#0099FF.#00CC00.#00CC33.#00CC66.#00CC99.#00CCCC.#00CCFF.#3300CC.#3300FF.#3333CC.#3333FF.#3366CC.#3366FF.#3399CC.#3399FF.#33CC00.#33CC33.#33CC66.#33CC99.#33CCCC.#33CCFF.#6600CC.#6600FF.#6633CC.#6633FF.#66CC00.#66CC33.#9900CC.#9900FF.#9933CC.#9933FF.#99CC00.#99CC33.#CC0000.#CC0033.#CC0066.#CC0099.#CC00CC.#CC00FF.#CC3300.#CC3333.#CC3366.#CC3399.#CC33CC.#CC33FF.#CC6600.#CC6633.#CC9900.#CC9933.#CCCC00.#CCCC33.#FF0000.#FF0033.#FF0066.#FF0099.#FF00CC.#FF00FF.#FF3300.#FF3333.#FF3366.#FF3399.#FF33CC.#FF33FF.#FF6600.#FF6633.#FF9900.#FF9933.#FFCC00.#FFCC33`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t={}.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=rM()(e);var{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),aM=a(((e,n)=>{(function(t,r){typeof e==`object`?n.exports=e=r():typeof define==`function`&&define.amd?define([],r):t.CryptoJS=r()})(e,function(){var e=e||function(e,n){var r;if(typeof window<`u`&&window.crypto&&(r=window.crypto),typeof self<`u`&&self.crypto&&(r=self.crypto),typeof globalThis<`u`&&globalThis.crypto&&(r=globalThis.crypto),!r&&typeof window<`u`&&window.msCrypto&&(r=window.msCrypto),!r&&typeof global<`u`&&global.crypto&&(r=global.crypto),!r&&typeof t==`function`)try{r=dj()}catch{}var i=function(){if(r){if(typeof r.getRandomValues==`function`)try{return r.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof r.randomBytes==`function`)try{return r.randomBytes(4).readInt32LE()}catch{}}throw Error(`Native crypto module could not be used to get secure random number.`)},a=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},s=o.lib={},c=s.Base=function(){return{extend:function(e){var t=a(this);return e&&t.mixIn(e),(!t.hasOwnProperty(`init`)||this.init===t.init)&&(t.init=function(){t.$super.init.a
vendor: 8,618 bytes, line 349
349pply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty(`toString`)&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=s.WordArray=c.extend({init:function(e,t){e=this.words=e||[],t==n?this.sigBytes=e.length*4:this.sigBytes=t},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a<i;a++){var o=n[a>>>2]>>>24-a%4*8&255;t[r+a>>>2]|=o<<24-(r+a)%4*8}else for(var s=0;s<i;s+=4)t[r+s>>>2]=n[s>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(i());return new l.init(t,e)}}),u=o.enc={},d=u.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((a&15).toString(16))}return r.join(``)},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new l.init(n,t/2)}},f=u.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var a=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}return r.join(``)},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(e.charCodeAt(r)&255)<<24-r%4*8;return new l.init(n,t)}},p=u.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch{throw Error(`Malformed UTF-8 data`)}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},m=s.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){typeof e==`string`&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,a=r.sigBytes,o=this.blockSize,s=a/(o*4);s=t?e.ceil(s):e.max((s|0)-this._minBufferSize,0);var c=s*o,u=e.min(c*4,a);if(c){for(var d=0;d<c;d+=o)this._doProcessBlock(i,d);n=i.splice(0,c),r.sigBytes-=u}return new l.init(n,u)},clone:function(){var e=c.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});s.Hasher=m.extend({cfg:c.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:512/32,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}});var h=o.algo={};return o}(Math);return e})})),oM=a(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(aM()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(e,function(e){return(function(t){var n=e,r=n.lib,i=r.WordArray,a=r.Hasher,o=n.algo,s=[],c=[];(function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return(e-(e|0))*4294967296|0}for(var r=2,i=0;i<64;)e(r)&&(i<8&&(s[i]=n(t.pow(r,1/2))),c[i]=n(t.pow(r,1/3)),i++),r++})();var l=[],u=o.SHA256=a.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],u=n[5],d=n[6],f=n[7],p=0;p<64;p++){if(p<16)l[p]=e[t+p]|0;else{var m=l[p-15],h=(m<<25|m>>>7)^(m<<14|m>>>18)^m>>>3,g=l[p-2],_=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;l[p]=h+l[p-7]+_+l[p-16]}var v=s&u^~s&d,y=r&i^r&a^i&a,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),x=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),S=f+x+v+c[p]+l[p],C=b+y;f=d,d=u,u=s,s=o+S|0,o=a,a=i,i=r,r=S+C|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+f|0},_doFinalize:function(){var e=this._data,n=e.words,r=this._nDataBytes*8,i=e.sigBytes*8;return n[i>>>5]|=128<<24-i%32,n[(i+64>>>9<<4)+14]=t.floor(r/4294967296),n[(i+64>>>9<<4)+15]=r,e.sigBytes=n.length*4,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=a._createHelper(u),n.HmacSHA256=a._createHmacHelper(u)})(Math),e.SHA256})})),sM=a(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(aM()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(e,function(e){(function(){var t=e,n=t.lib.Base,r=t.enc.Utf8,i=t.algo;i.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,typeof t==`string`&&(t=r.parse(t));var n=e.blockSize,i=n*4;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),o=this._iKey=t.clone(),s=a.words,c=o.words,l=0;l<n;l++)s[l]^=1549556828,c[l]^=909522486;a.sigBytes=o.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})})()})})),cM=a(((e,t)=>{(function(n,r,i){typeof e==`object`?t.exports=e=r(aM(),oM(),sM()):typeof define==`function`&&define.amd?define([`./core`,`./sha256`,`./hmac`],r):r(n.CryptoJS)})(e,function(e){return e.HmacSHA256})})),lM=a(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(aM()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(e,function(e){return(function(t){var n=e,r=n.lib,i=r.WordArray,a=r.Hasher,o=n.algo,s=[];(function(){for(var e=0;e<64;e++)s[e]=t.abs(t.sin(e+1))*4294967296|0})();var c=o.MD5=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=(i<<8|i>>>24)&16711935|(i<<24|i>>>8)&4278255360}var a=this._hash.words,o=e[t+0],c=e[t+1],p=e[t+2],m=e[t+3],h=e[t+4],g=e[t+5],_=e[t+6],v=e[t+7],y=e[t+8],b=e[t+9],x=e[t+10],S=e[t+11],C=e[t+12],w=e[t+13],T=e[t+14],E=e[t+15],D=a[0],O=a[1],k=a[2],A=a[3];D=l(D,O,k,A,o,7,s[0]),A=l(A,D,O,k,c,12,s[1]),k=l(k,A,D,O,p,17,s[2]),O=l(O,k,A,D,m,22,s[3]),D=l(D,O,k,A,h,7,s[4]),A=l(A,D,O,k,g,12,s[5]),k=l(k,A,D,O,_,17,s[6]),O=l(O,k,A,D,v,22,s[7]),D=l(D,O,k,A,y,7,s[8]),A=l(A,D,O,k,b,12,s[9]),k=l(k,A,D,O,x,17,s[10]),O=l(O,k,A,D,S,22,s[11]),D=l(D,O,k,A,C,7,s[12]),A=l(A,D,O,k,w,12,s[13]),k=l(k,A,D,O,T,17,s[14]),O=l(O,k,A,D,E,22,s[15]),D=u(D,O,k,A,c,5,s[16]),A=u(A,D,O,k,_,9,s[17]),k=u(k,A,D,O,S,14,s[18]),O=u(O,k,A,D,o,20,s[19]),D=u(D,O,k,A,g,5,s[20]),A=u(A,D,O,k,x,9,s[21]),k=u(k,A,D,O,E,14,s[22]),O=u(O,k,A,D,h,20,s[23]),D=u(D,O,k,A,b,5,s[24]),A=u(A,D,O,k,T,9,s[25]),k=u(k,A,D,O,m,14,s[26]),O=u(O,k,A,D,y,20,s[27]),D=u(D,O,k,A,w,5,s[28]),A=u(A,D,O,k,p,9,s[29]),k=u(k,A,D,O,v,14,s[30]),O=u(O,k,A,D,C,20,s[31]),D=d(D,O,k,A,g,4,s[32]),A=d(A,D,O,k,y,11,s[33]),k=d(k,A,D,O,S,16,s[34]),O=d(O,k,A,D,T,23,s[35]),D=d(D,O,k,A,c,4,s[36]),A=d(A,D,O,k,h,11,s[37]),k=d(k,A,D,O,v,16,s[38]),O=d(O,k,A,D,x,23,s[39]),D=d(D,O,k,A,w,4,s[40]),A=d(A,D,O,k,o,11,s[41]),k=d(k,A,D,O,m,16,s[42]),O=d(O,k,A,D,_,23,s[43]),D=d(D,O,k,A,b,4,s[44]),A=d(A,D,O,k,C,11,s[45]),k=d(k,A,D,O,E,16,s[46]),O=d(O,k,A,D,p,23,s[47]),D=f(D,O,k,A,o,6,s[48]),A=f(A,D,O,k,v,10,s[49]),k=f(k,A,D,O,T,15,s[50]),O=f(O,k,A,D,g,21,s[51]),D=f(D,O,k,A,C,6,s[52]),A=f(A,D,O,k,m,10,s[53]),k=f(k,A,D,O,x,15,s[54]),O=f(O,k,A,D,c,21,s[55]),D=f(D,O,k,A,y,6,s[56]),A=f(A,D,O,k,E,10,s[57]),k=f(k,A,D,O,_,15,s[58]),O=f(O,k,A,D,w,21,s[59]),D=f(D,O,k,A,h,6,s[60]),A=f(A,D,O,k,S,10,s[61]),k=f(k,A,D,O,p,15,s[62]),O=f(O,k,A,D,b,21,s[63]),a[0]=a[0]+D|0,a[1]=a[1]+O|0,a[2]=a[2]+k|0,a[3]=a[3]+A|0},_doFinalize:function(){var e=this._data,n=e.words,r=this._nDataBytes*8,i=e.sigBytes*8;n[i>>>5]|=128<<24-i%32;var a=t.floor(r/4294967296),o=r;n[(i+64>>>9<<4)+15]=(a<<8|a>>>24)&16711935|(a<<24|a>>>8)&4278255360,n[(i+64>>>9<<4)+14]=(o<<8|o>>>24)&16711935|(o<<24|o>>>8)&4278255360,e.sigBytes=(n.length+1)*4,this._process();for(var s=this._hash,c=s.words,l=0;l<4;l++){var u=c[l];c[l]=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+i+o;return(s<<a|s>>>32-a)+t}function u(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+i+o;return(s<<a|s>>>32-a)+t}function d(e,t,n,r,i,a,o){var s=e+(t^n^r)+i+o;return(s<<a|s>>>32-a)+t}function f(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+i+o;return(s<<a|s>>>32-a)+t}n.MD5=a._createHelper(c),n.HmacMD5=a._createHmacHelper(c)})(Math),e.MD5})})),uM=a(((e,t)=>
349{(function(n,r){typeof e==`object`?t.exports=e=r(aM()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(e,function(e){return(function(){var t=e,n=t.lib.WordArray,r=t.enc;r.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],a=0;a<n;a+=3)for(var o=t[a>>>2]>>>24-a%4*8&255,s=t[a+1>>>2]>>>24-(a+1)%4*8&255,c=t[a+2>>>2]>>>24-(a+2)%4*8&255,l=o<<16|s<<8|c,u=0;u<4&&a+u*.75<n;u++)i.push(r.charAt(l>>>6*(3-u)&63));var d=r.charAt(64);if(d)for(;i.length%4;)i.push(d);return i.join(``)},parse:function(e){var t=e.length,n=this._map,r=this._reverseMap;if(!r){r=this._reverseMap=[];for(var a=0;a<n.length;a++)r[n.charCodeAt(a)]=a}var o=n.charAt(64);if(o){var s=e.indexOf(o);s!==-1&&(t=s)}return i(e,t,r)},_map:`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`};function i(e,t,r){for(var i=[],a=0,o=0;o<t;o++)if(o%4){var s=r[e.charCodeAt(o-1)]<<o%4*2|r[e.charCodeAt(o)]>>>6-o%4*2;i[a>>>2]|=s<<24-a%4*8,a++}return n.create(i,a)}})(),e.enc.Base64})})),dM=a(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(aM()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(e,function(e){return e.enc.Hex})})),fM=a(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=e=r(aM()):typeof define==`function`&&define.amd?define([`./core`],r):r(n.CryptoJS)})(e,function(e){return e.enc.Utf8})})),pM=a(((e,t)=>{var n=VA();function r(){this.__data__=new n,this.size=0}t.exports=r})),mM=a(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),hM=a(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),gM=a(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),_M=a(((e,t)=>{var n=VA(),r=HA(),i=qA(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o})),vM=a(((e,t)=>{var n=VA(),r=pM(),i=mM(),a=hM(),o=gM(),s=_M();function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c})),yM=a(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}t.exports=n})),bM=a(((e,t)=>{var n=oj(),r=aj();function i(e,t,i,a){var o=!i;i||={};for(var s=-1,c=t.length;++s<c;){var l=t[s],u=a?a(i[l],e[l],l,i,e):void 0;u===void 0&&(u=e[l]),o?r(i,l,u):n(i,l,u)}return i}t.exports=i})),xM=a(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n})),SM=a(((e,t)=>{var n=jA(),r=MA(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),CM=a(((e,t)=>{var n=SM(),r=MA(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),wM=a(((e,t)=>{function n(){return!1}t.exports=n})),TM=a(((e,t)=>{var n=kA(),r=wM(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),EM=a(((e,t)=>{var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r})),DM=a(((e,t)=>{var n=jA(),r=EM(),i=MA(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k={};k[b]=k[x]=k[S]=k[C]=k[w]=k[T]=k[E]=k[D]=k[O]=!0,k[a]=k[o]=k[v]=k[s]=k[y]=k[c]=k[l]=k[u]=k[d]=k[f]=k[p]=k[m]=k[h]=k[g]=k[_]=!1;function A(e){return i(e)&&r(e.length)&&!!k[n(e)]}t.exports=A})),OM=a(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),kM=a(((e,t)=>{var n=OA(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),AM=a(((e,t)=>{var n=DM(),r=OM(),i=kM(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),jM=a(((e,t)=>{var n=xM(),r=CM(),i=DA(),a=TM(),o=sj(),s=AM(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),MM=a(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),NM=a(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),PM=a(((e,t)=>{t.exports=NM()(Object.keys,Object)})),FM=a(((e,t)=>{var n=MM(),r=PM(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),IM=a(((e,t)=>
vendor: 4,203 bytes, line 349
349{var n=FA(),r=EM();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),LM=a(((e,t)=>{var n=jM(),r=FM(),i=IM();function a(e){return i(e)?n(e):r(e)}t.exports=a})),RM=a(((e,t)=>{var n=bM(),r=LM();function i(e,t){return e&&n(t,r(t),e)}t.exports=i})),zM=a(((e,t)=>{function n(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}t.exports=n})),BM=a(((e,t)=>{var n=PA(),r=MM(),i=zM(),a=Object.prototype.hasOwnProperty;function o(e){if(!n(e))return i(e);var t=r(e),o=[];for(var s in e)s==`constructor`&&(t||!a.call(e,s))||o.push(s);return o}t.exports=o})),VM=a(((e,t)=>{var n=jM(),r=BM(),i=IM();function a(e){return i(e)?n(e,!0):r(e)}t.exports=a})),HM=a(((e,t)=>{var n=bM(),r=VM();function i(e,t){return e&&n(t,r(t),e)}t.exports=i})),UM=a(((e,t)=>{var n=kA(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r?n.Buffer:void 0,o=a?a.allocUnsafe:void 0;function s(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}t.exports=s})),WM=a(((e,t)=>{function n(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}t.exports=n})),GM=a(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}t.exports=n})),KM=a(((e,t)=>{function n(){return[]}t.exports=n})),qM=a(((e,t)=>{var n=GM(),r=KM(),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(e){return e==null?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:r})),JM=a(((e,t)=>{var n=bM(),r=qM();function i(e,t){return n(e,r(e),t)}t.exports=i})),YM=a(((e,t)=>{function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}t.exports=n})),XM=a(((e,t)=>{t.exports=NM()(Object.getPrototypeOf,Object)})),ZM=a(((e,t)=>{var n=YM(),r=XM(),i=qM(),a=KM();t.exports=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=r(e);return t}:a})),QM=a(((e,t)=>{var n=bM(),r=ZM();function i(e,t){return n(e,r(e),t)}t.exports=i})),$M=a(((e,t)=>{var n=YM(),r=DA();function i(e,t,i){var a=t(e);return r(e)?a:n(a,i(e))}t.exports=i})),eN=a(((e,t)=>{var n=$M(),r=qM(),i=LM();function a(e){return n(e,i,r)}t.exports=a})),tN=a(((e,t)=>{var n=$M(),r=ZM(),i=VM();function a(e){return n(e,i,r)}t.exports=a})),nN=a(((e,t)=>{t.exports=LA()(kA(),`DataView`)})),rN=a(((e,t)=>{t.exports=LA()(kA(),`Promise`)})),iN=a(((e,t)=>{t.exports=LA()(kA(),`Set`)})),aN=a(((e,t)=>{t.exports=LA()(kA(),`WeakMap`)})),oN=a(((e,t)=>{var n=nN(),r=HA(),i=rN(),a=iN(),o=aN(),s=jA(),c=IA(),l=`[object Map]`,u=`[object Object]`,d=`[object Promise]`,f=`[object Set]`,p=`[object WeakMap]`,m=`[object DataView]`,h=c(n),g=c(r),_=c(i),v=c(a),y=c(o),b=s;(n&&b(new n(new ArrayBuffer(1)))!=m||r&&b(new r)!=l||i&&b(i.resolve())!=d||a&&b(new a)!=f||o&&b(new o)!=p)&&(b=function(e){var t=s(e),n=t==u?e.constructor:void 0,r=n?c(n):``;if(r)switch(r){case h:return m;case g:return l;case _:return d;case v:return f;case y:return p}return t}),t.exports=b})),sN=a(((e,t)=>{var n=Object.prototype.hasOwnProperty;function r(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]==`string`&&n.call(e,`index`)&&(r.index=e.index,r.input=e.input),r}t.exports=r})),cN=a(((e,t)=>{t.exports=kA().Uint8Array})),lN=a(((e,t)=>{var n=cN();function r(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}t.exports=r})),uN=a(((e,t)=>{var n=lN();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}t.exports=r})),dN=a(((e,t)=>{var n=/\w*$/;function r(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}t.exports=r})),fN=a(((e,t)=>{var n=AA(),r=n?n.prototype:void 0,i=r?r.valueOf:void 0;function a(e){return i?Object(i.call(e)):{}}t.exports=a})),pN=a(((e,t)=>{var n=lN();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}t.exports=r})),mN=a(((e,t)=>{var n=lN(),r=uN(),i=dN(),a=fN(),o=pN(),s=`[object Boolean]`,c=`[object Date]`,l=`[object Map]`,u=`[object Number]`,d=`[object RegExp]`,f=`[object Set]`,p=`[object String]`,m=`[object Symbol]`,h=`[object ArrayBuffer]`,g=`[object DataView]`,_=`[object Float32Array]`,v=`[object Float64Array
349]`,y=`[object Int8Array]`,b=`[object Int16Array]`,x=`[object Int32Array]`,S=`[object Uint8Array]`,C=`[object Uint8ClampedArray]`,w=`[object Uint16Array]`,T=`[object Uint32Array]`;function E(e,t,E){var D=e.constructor;switch(t){case h:return n(e);case s:case c:return new D(+e);case g:return r(e,E);case _:case v:case y:case b:case x:case S:case C:case w:case T:return o(e,E);case l:return new D;case u:case p:return new D(e);case d:return i(e);case f:return new D;case m:return a(e)}}t.exports=E})),hN=a(((e,t)=>{var n=PA(),r=Object.create;t.exports=function(){function e(){}return function(t){if(!n(t))return{};if(r)return r(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}()})),gN=a(((e,t)=>{var n=hN(),r=XM(),i=MM();function a(e){return typeof e.constructor==`function`&&!i(e)?n(r(e)):{}}t.exports=a})),_N=a(((e,t)=>{var n=oN(),r=MA(),i=`[object Map]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),vN=a(((e,t)=>{var n=_N(),r=OM(),i=kM(),a=i&&i.isMap;t.exports=a?r(a):n})),yN=a(((e,t)=>{var n=oN(),r=MA(),i=`[object Set]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),bN=a(((e,t)=>{var n=yN(),r=OM(),i=kM(),a=i&&i.isSet;t.exports=a?r(a):n})),xN=a(((e,t)=>{var n=vM(),r=yM(),i=oj(),a=RM(),o=HM(),s=UM(),c=WM(),l=JM(),u=QM(),d=eN(),f=tN(),p=oN(),m=sN(),h=mN(),g=gN(),_=DA(),v=TM(),y=vN(),b=PA(),x=bN(),S=LM(),C=VM(),w=1,T=2,E=4,D=`[object Arguments]`,O=`[object Array]`,k=`[object Boolean]`,A=`[object Date]`,j=`[object Error]`,M=`[object Function]`,N=`[object GeneratorFunction]`,P=`[object Map]`,F=`[object Number]`,ee=`[object Object]`,te=`[object RegExp]`,ne=`[object Set]`,re=`[object String]`,I=`[object Symbol]`,ie=`[object WeakMap]`,ae=`[object ArrayBuffer]`,oe=`[object DataView]`,se=`[object Float32Array]`,ce=`[object Float64Array]`,le=`[object Int8Array]`,ue=`[object Int16Array]`,de=`[object Int32Array]`,fe=`[object Uint8Array]`,pe=`[object Uint8ClampedArray]`,me=`[object Uint16Array]`,he=`[object Uint32Array]`,L={};L[D]=L[O]=L[ae]=L[oe]=L[k]=L[A]=L[se]=L[ce]=L[le]=L[ue]=L[de]=L[P]=L[F]=L[ee]=L[te]=L[ne]=L[re]=L[I]=L[fe]=L[pe]=L[me]=L[he]=!0,L[j]=L[M]=L[ie]=!1;function ge(e,t,O,k,A,j){var P,F=t&w,te=t&T,ne=t&E;if(O&&(P=A?O(e,k,A,j):O(e)),P!==void 0)return P;if(!b(e))return e;var re=_(e);if(re){if(P=m(e),!F)return c(e,P)}else{var I=p(e),ie=I==M||I==N;if(v(e))return s(e,F);if(I==ee||I==D||ie&&!A){if(P=te||ie?{}:g(e),!F)return te?u(e,o(P,e)):l(e,a(P,e))}else{if(!L[I])return A?e:{};P=h(e,I,F)}}j||=new n;var ae=j.get(e);if(ae)return ae;j.set(e,P),x(e)?e.forEach(function(n){P.add(ge(n,t,O,n,e,j))}):y(e)&&e.forEach(function(n,r){P.set(r,ge(n,t,O,r,e,j))});var oe=re?void 0:(ne?te?f:d:te?C:S)(e);return r(oe||e,function(n,r){oe&&(r=n,n=e[r]),i(P,r,ge(n,t,O,r,e,j))}),P}t.exports=ge})),SN=a(((e,t)=>{var n=xN(),r=1,i=4;function a(e){return n(e,r|i)}t.exports=a})),CN=a(((e,t)=>{t.exports=function(e){return Array.isArray(e.files)&&e.files.length>0}})),wN=a(((e,t)=>{var n=CN();t.exports=function(e){return!!(e.method===`post`&&(e.filePath&&e.name||n(e)))}})),TN=a(((e,t)=>{t.exports=function(e,t){return function(){for(var n=Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}})),EN=a(((e,t)=>{var n=TN(),r=Object.prototype.toString,i=(function(e){return function(t){var n=r.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}})(Object.create(null));function a(e){return e=e.toLowerCase(),function(t){return i(t)===e}}function o(e){return Array.isArray(e)}function s(e){return e===void 0}function c(e){return e!==null&&!s(e)&&e.constructor!==null&&!s(e.constructor)&&typeof e.constructor.isBuffer==`function`&&e.constructor.isBuffer(e)}var l=a(`ArrayBuffer`);function u(e){return typeof ArrayBuffer<`u`&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&l(e.buffer)}function d(e){return typeof e==`string`}function f(e){return typeof e==`number`}function p(e){return typeof e==`object`&&!!e}function m(e){if(i(e)!==`object`)return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var h=a(`Date`),g=a(`File`),_=a(`Blob`),v=a(`FileList`);function y(e){return r.call(e)===`[object Function]`}function b(e){return p(e)&&y(e.pipe)}function x(e){var t=`[object FormData]`;return e&&(typeof FormData==`function`&&e instanceof FormData||r.call(e)===t||y(e.toString)&&e.toString()===t)}var S=a(`URLSearchParams`);function C(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,``)}function w(){return typeof navigator<`u`&&(navigator.product===`ReactNative`||navigator.product===`NativeScript`||navigator.product===`NS`)?!1:typeof window<`u`&&typeof document<`u`}function T(e,t){if(e!=null)if(typeof e!=`object`&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function E(){var e={};function t(t,n){m(e[n])&&m(t)?e[n]=E(e[n],t):m(t)?e[n]=E({},t):o(t)?e[n]=t.slice():e[n]=t}for(var n=0,r=arguments.length;n<r;n++)T(arguments[n],t);return e}function D(e,t,r){return T(t,function(t,i){r&&typeof t==`function`?e[i]=n(t,r):e[i]=t}),e}function O(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function k(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)}function A(e,t,n){var r,i,a,o={};t||={};do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)a=r[i],o[a]||(t[a]=e[a],o[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function j(e,t,n){e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return r!==-1&&r===n}function M(e){if(!e)return null;var t=e.length;if(s(t))return null;for(var n=Array(t);t-- >0;)n[t]=e[t];return n}t.exports={isArray:o,isArrayBuffer:l,isBuffer:c,isFormData:x,isArrayBufferView:u,isString:d,isNumber:f,isObject:p,isPlainObject:m,isUndefined:s,isDate:h,isFile:g,isBlob:_,isFunction:y,isStream:b,
349isURLSearchParams:S,isStandardBrowserEnv:w,forEach:T,merge:E,extend:D,trim:C,stripBOM:O,inherits:k,toFlatObject:A,kindOf:i,kindOfTest:a,endsWith:j,toArray:M,isTypedArray:(function(e){return function(t){return e&&t instanceof e}})(typeof Uint8Array<`u`&&Object.getPrototypeOf(Uint8Array)),isFileList:v}})),DN=a(((e,t)=>{var n=EN();function r(e,t,n,r,i){Error.call(this),this.message=e,this.name=`AxiosError`,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}n.inherits(r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=r.prototype,a={};[`ERR_BAD_OPTION_VALUE`,`ERR_BAD_OPTION`,`ECONNABORTED`,`ETIMEDOUT`,`ERR_NETWORK`,`ERR_FR_TOO_MANY_REDIRECTS`,`ERR_DEPRECATED`,`ERR_BAD_RESPONSE`,`ERR_BAD_REQUEST`,`ERR_CANCELED`].forEach(function(e){a[e]={value:e}}),Object.defineProperties(r,a),Object.defineProperty(i,`isAxiosError`,{value:!0}),r.from=function(e,t,a,o,s,c){var l=Object.create(i);return n.toFlatObject(e,l,function(e){return e!==Error.prototype}),r.call(l,e.message,t,a,o,s),l.name=e.name,c&&Object.assign(l,c),l},t.exports=r})),ON=a(((e,t)=>{var n=DN();t.exports=function(e,t,r){var i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(new n(`Request failed with status code `+r.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}})),kN=a(((e,t)=>{var n=EN();function r(e){return encodeURIComponent(e).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`).replace(/%20/g,`+`).replace(/%5B/gi,`[`).replace(/%5D/gi,`]`)}t.exports=function(e,t,i){if(!t)return e;var a;if(i)a=i(t);else if(n.isURLSearchParams(t))a=t.toString();else{var o=[];n.forEach(t,function(e,t){e!=null&&(n.isArray(e)?t+=`[]`:e=[e],n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),o.push(r(t)+`=`+r(e))}))}),a=o.join(`&`)}if(a){var s=e.indexOf(`#`);s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf(`?`)===-1?`?`:`&`)+a}return e}})),AN=a(((e,t)=>{t.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}})),jN=a(((e,t)=>{t.exports=function(e,t){return t?e.replace(/\/+$/,``)+`/`+t.replace(/^\/+/,``):e}})),MN=a(((e,t)=>{var n=AN(),r=jN();t.exports=function(e,t){return e&&!n(t)?r(e,t):t}})),NN=a(((e,t)=>{var n=ON(),r=kN(),i=MN(),a=wN();t.exports=function(e,t,o){let s=i(e.baseURL,e.url),c=e.headers,l={...e,url:r(s,e.params,e.paramsSerializer),header:c};if(a(e)?(delete c[`Content-Type`],e.formData?l.formData=e.formData:typeof e.data==`string`?l.formData=JSON.parse(e.data):l.formData=e.data):e.method===`get`?l.data=e.data?e.data:e.params:l.data=e.data,e.auth){var u=e.auth.username||``,d=unescape(encodeURIComponent(e.auth.password))||``;c.Authorization=`Basic `+btoa(u+`:`+d)}return l.complete=function(r){n(t,o,{data:r.data,status:r.statusCode,statusText:r.errMsg,header:r.header,config:e})},l}})),PN=a(((e,t)=>{var n=wN(),r=NN();function i(e={}){return new Promise(function(t,i){let a=r(e,t,i),o=null;e.cancelToken&&e.cancelToken.promise.then(function(e){o&&=(o.abort(),i(e),null)}),o=n(e)?uni.uploadFile(a):uni.request(a)})}t.exports=i,t.exports.default=i})),FN=r(jme()),IN=r(rj()),LN=r(lj()),RN=r(tM()),zN=r(iM()),BN=r(cM()),VN=r(oM()),HN=r(lM()),UN=r(uM()),WN=r(dM()),GN=r(fM()),KN=r(SN()),qN=r($k()),JN=r(rA()),YN=r(eA()),XN=r(iA()),ZN=r(nA()),QN=r(PN()),$N=class e extends Error{constructor(t){let{data:n}=t;super(n.Message),this.code=void 0,this.data=void 0,this.statusCode=void 0,this.headers=void 0,this.requestId=void 0,this.id2=void 0,this.ec=void 0,Object.setPrototypeOf(this,e.prototype),this.data=n,this.code=n.Code,this.statusCode=t.status,this.headers=t.headers,this.requestId=t.headers[`x-tos-request-id`]||t.data.RequestId,this.id2=t.headers[`x-tos-id-2`],this.ec=t.headers[`x-tos-ec`]||t.data.EC}},eP;(function(e){e.NoSuchBucket=`NoSuchBucket`,e.NoSuchKey=`NoSuchKey`,e.AccessDenied=`AccessDenied`,e.MalformedAcl=`MalformedAclError`,e.UnexpectedContent=`UnexpectedContent`,e.InvalidRequest=`InvalidRequest`,e.MissingSecurityHeader=`MissingSecurityHeader`,e.InvalidArgument=`InvalidArgument`,e.EntityTooSmall=`EntityTooSmall`,e.InvalidBucketName=`InvalidBucketName`,e.BucketNotEmpty=`BucketNotEmpty`,e.TooManyBuckets=`TooManyBuckets`,e.BucketAlreadyExists=`BucketAlreadyExists`,e.MalformedBody=`MalformedBody`,e.N
349oSuchLifecycleConfiguration=`NoSuchLifecycleConfiguration`,e.ReplicationConfigurationNotFound=`ReplicationConfigurationNotFoundError`,e.InvalidLocationConstraint=`InvalidLocationConstraint`,e.AuthorizationQueryParametersError=`AuthorizationQueryParametersError`,e.RequestTimeTooSkewed=`RequestTimeTooSkewed`,e.SignatureDoesNotMatch=`SignatureDoesNotMatch`,e.RequestedRangeNotSatisfiable=`Requested Range Not Satisfiable`,e.PreconditionFailed=`PreconditionFailed`,e.BadDigest=`BadDigest`,e.InvalidDigest=`InvalidDigest`,e.EntityTooLarge=`EntityTooLarge`,e.UnImplemented=`UnImplemented`,e.MethodNotAllowed=`MethodNotAllowed`,e.InvalidAccessKeyId=`InvalidAccessKeyId`,e.InvalidSecurityToken=`InvalidSecurityToken`,e.ContentSHA256Mismatch=`ContentSHA256Mismatch`,e.ExceedQPSLimit=`ExceedQPSLimit`,e.ExceedRateLimit=`ExceedRateLimit`,e.NoSuchCORSConfiguration=`NoSuchCORSConfiguration`,e.NoSuchMirrorConfiguration=`NoSuchMirrorConfiguration`,e.NoSuchWebsiteConfiguration=`NoSuchWebsiteConfiguration`,e.MissingRequestBody=`MissingRequestBodyError`,e.BucketAlreadyOwnedByYou=`BucketAlreadyOwnedByYou`,e.NoSuchBucketPolicy=`NoSuchBucketPolicy`,e.PolicyTooLarge=`PolicyTooLarge`,e.MalformedPolicy=`MalformedPolicy`,e.InvalidKey=`InvalidKey`,e.MirrorFailed=`MirrorFailed`,e.Timeout=`Timeout`,e.OffsetNotMatched=`OffsetNotMatched`,e.NotAppendable=`NotAppendable`,e.ContextCanceled=`ContextCanceled`,e.InternalError=`InternalError`,e.TooManyRequests=`TooManyRequests`,e.TimeOut=`TimeOut`,e.ConcurrencyUpdateObjectLimit=`ConcurrencyUpdateObjectLimit`,e.DuplicateUpload=`DuplicateUpload`,e.DuplicateObject=`DuplicateObject`,e.InvalidVersionId=`InvalidVersionId`,e.StorageClassNotMatch=`StorageClassNotMatch`,e.UploadStatusNotUploading=`UploadStatusNotUploading`,e.PartSizeNotMatch=`PartSizeNotMatch`,e.NoUploadPart=`NoUploadPart`,e.PartsLenInvalid=`PartsLenInvalid`,e.PartsIdxSmall=`PartsIdxSmall`,e.PartSizeSmall=`PartSizeSmall`,e.PrefixNotNextKeyPrefix=`PrefixNotNextKeyPrefix`,e.InvalidPart=`InvalidPart`,e.InvalidPartOffset=`InvalidPartOffset`,e.MismatchObject=`MismatchObject`,e.UploadStatusMismatch=`UploadStatusMismatch`,e.CompletingStatusNoExpiration=`CompletingStatusNoExpiration`,e.Found=`Found`,e.InvalidRedirectLocation=`InvalidRedirectLocation`})(eP||={});var Y=class e extends Error{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},tP=class e extends Error{constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},nP=(0,zN.default)(`TOS`),rP=e=>t=>{if(typeof e!=`object`||!e)return;let n=(0,IN.default)(e,t);Array.isArray(n)||(0,LN.default)(e,t,n==null?[]:[n])},iP=e=>{let t=n=>Array.isArray(n)?n.map(e=>t(e)):typeof n==`string`?e(n):typeof n==`object`&&n?Object.keys(n).reduce((e,r)=>{let i=t(r);return e[i]=n[r],e},{}):n;return t},aP=iP(e=>e.replace(/[A-Z]/g,`-$&`).toLowerCase()),oP=iP(e=>e[0].toUpperCase()+e.slice(1)),sP=e=>{let t=[];return Object.keys(e).sort().forEach(n=>{t.push(`${encodeURIComponent(n)}=${encodeURIComponent(e[n])}`)}),t.join(`&`)},cP=e=>{let t=e||{},n={};Object.keys(t).forEach(e=>{t[e]!=null&&(n[e]=t[e])});let r={};return Object.keys(n).forEach(e=>{let t=e.toLowerCase();r[t]=n[e]}),r},lP=e=>{let t={};return Object.entries(e).forEach(([e,n])=>{t[e]=`${n}`.match(/./gu).map(e=>e.length>1||e.charCodeAt(0)>=128?encodeURIComponent(e):e).join(``)}),t},uP=e=>`tos-${e}.volces.com`,dP=e=>(typeof e==`string`&&(e={url:e}),e&&e?.needProxyParams==null&&(e.needProxyParams=!0),e);async function fP(e){try{return[null,await e]}catch(e){return[e,null]}}function pP(e){try{return[null,e()]}catch(e){return[e,null]}}function mP(e){return typeof Blob<`u`&&e instanceof Blob}function hP(e){return typeof Buffer<`u`&&e instanceof Buffer}function gP(e){return e?Object.keys(e).map(t=>{let n=`${e[t]}`;return`${encodeURIComponent(t)}=${encodeURIComponent(n)}`}).join(`&`):``}function _P(e){return e instanceof tP}var vP=20*1024*1024,yP=e=>e.toUTCString(),bP=e=>typeof e==`string`?e:e.toUTCString(),xP={projectName:`x-tos-project-name`,encodingType:`encoding-type`,cacheControl:`cache-control`,contentDisposition:`content-disposition`,contentLength:`content-length`,contentMD5:`content-md5`,contentSHA256:`x-tos-content-sha256`,contentEncoding:`content-encoding`,contentLanguage:`content-language`,contentType:`content-type`,expires:[`expires`,yP],range:`range`,ifMatch:`if-match`,ifModifiedSince:[`if-modified-since`,bP],ifNoneMatch:`if-none-match`,ifUnmodifiedSince:[`if-unmodified-since`,bP],acl:`x-tos-acl`,grantFullControl:`x-tos-grant-full-control`,grantRead:`x-tos-grant-read`,grantReadAcp:`x-tos-grant-read-acp`,grantWrite:`x-tos-grant-write`,grantWriteAcp:`x-tos-grant-write-acp`,serverSideEncryption:`x-tos-server-side-encryption`,serverSideDataEncryption:`x-tos-server-side-data-encryption`,ssecAlgorithm:`x-tos-server-side-encryption-customer-algorithm`,ssecKey:`x-tos-server-side-encryption-customer-key`,ssecKeyMD5:`x-tos-server-side-encryption-customer-key-md5`,copySourceRange:`x-tos-copy-source-range`,copySourceIfMatch:`x-tos-copy-source-if-match`,copySourceIfModifiedSince:[`x-tos-copy-source-if-modified-since`,bP],copySourceIfNoneMatch:`x-tos-copy-source-if-none-match`,copySourceIfUnmodifiedSince:`x-tos-copy-source-if-unmodified-since`,copySourceSSECAlgorithm:`x-tos-copy-source-server-side-encryption-customer-algorithm`,copySourceSSECKey:`x-tos-copy-source-server-side-encryption-customer-key`,copySourceSSECKeyMD5:`x-tos-copy-source-server-side-encryption-customer-key-MD5`,metadataDirective:`x-tos-metadata-directive`,meta:e=>Object.keys(e).reduce((t,n)=>(t[`x-tos-meta-${n}`]=`${e[n]}`,t),{}),websiteRedirectLocation:`x-tos-website-redirect-location`,storageClass:`x-tos-storage-class`,azRedundancy:`x-tos-az-redundancy`,trafficLim
349it:`x-tos-traffic-limit`,callback:`x-tos-callback`,callbackVar:`x-tos-callback-var`,allowSameActionOverlap:[`x-tos-allow-same-action-overlap`,e=>String(e)],symLinkTargetKey:`x-tos-symlink-target`,symLinkTargetBucket:`x-tos-symlink-bucket`,forbidOverwrite:`x-tos-forbid-overwrite`,bucketType:`x-tos-bucket-type`,recursiveMkdir:`x-tos-recursive-mkdir`,tagging:`x-tos-tagging`},SP={versionId:`versionId`,process:`x-tos-process`,saveBucket:`x-tos-save-bucket`,saveObject:`x-tos-save-object`,responseCacheControl:`response-cache-control`,responseContentDisposition:`response-content-disposition`,responseContentEncoding:`response-content-encoding`,responseContentLanguage:`response-content-language`,responseContentType:`response-content-type`,responseExpires:[`response-expires`,e=>e.toUTCString()]};function CP(e,t){if(!t.length)return;let n=e.headers||{};e.headers=n;function r(e,t){n[e]??(n[e]=t)}t.forEach(t=>{let n=xP[t];if(!n)throw new Y(`\`${t}\` isn't in keys of \`requestHeadersMap\``);let i=e[t];if(i==null)return;let a=`${i}`;if(typeof n==`string`)return r(n,a);if(Array.isArray(n)){let e=n[0];return r(e,n[1](i))}let o=n(i);Object.entries(o).forEach(([e,t])=>{r(e,t)})})}function wP(e,t,n){if(!n.length)return;function r(e,n){t[e]??(t[e]=n)}n.forEach(t=>{let n=SP[t];if(!n)throw new Y(`\`${t}\` isn't in keys of \`requestQueryMap\``);let i=e[t];if(i==null)return;let a=`${i}`;if(typeof n==`string`)return r(n,a);if(Array.isArray(n)){let e=n[0];return r(e,n[1](i))}let o=n(i);Object.entries(o).forEach(([e,t])=>{r(e,t)})})}var TP=e=>RN.default.stringify(e);function EP(e,t){return{data:e,statusCode:t.statusCode,headers:t.headers,requestId:t.requestId,id2:t.id2}}function DP(e,t){let n=t[`x-tos-hash-crc64ecma`];if(n==null){console.warn("No x-tos-hash-crc64ecma in response's headers, please see https://www.volcengine.com/docs/6349/127737 to add `x-tos-hash-crc64ecma` to Expose-Headers field.");return}let r=typeof e==`string`?e:e.getCrc64();if(r!==n)throw new Y(`validate file crc64 failed. Expect crc64 ${n}, actual crc64 ${r}. Please try again.`)}var OP;(function(e){e.LastModified=`last-modified`,e.ContentLength=`content-length`,e.AcceptEncoding=`accept-encoding`,e.ContentEncoding=`content-encoding`,e.ContentMD5=`content-md5`,e.TosRawContentLength=`x-tos-raw-content-length`,e.TosTrailer=`x-tos-trailer`,e.TosHashCrc64ecma=`x-tos-hash-crc64ecma`,e.TosContentSha256=`x-tos-content-sha256`,e.TosDecodedContentLength=`x-tos-decoded-content-length`,e.TosEc=`x-tos-ec`,e.TosRequestId=`x-tos-request-id`})(OP||={});var kP=e=>{let t=Promise.resolve();return async()=>(t=t.then(()=>e()),t)},AP=(e,t)=>{e&&`destroy`in e&&typeof e.destroy==`function`&&`destroyed`in e&&!e.destroyed&&e.destroy(t)},jP=(e,t)=>{if(!t&&e){if(e.length<3||e.length>63)throw new Y(`invalid bucket name, the length must be [3, 63]`);if(!/^([a-z]|-|\d)+$/.test(e))throw new Y(`invalid bucket name, the character set is illegal`);if(/^-/.test(e)||/-$/.test(e))throw new Y(`invalid bucket name, the bucket name can be neither starting with '-' nor ending with '-'`)}};async function MP(e){e=this.normalizeObjectInput(e);let t=cP(e.headers);return e.headers=t,CP(e,[`encodingType`,`cacheControl`,`contentDisposition`,`contentEncoding`,`contentLanguage`,`contentType`,`expires`,`acl`,`grantFullControl`,`grantRead`,`grantReadAcp`,`grantWriteAcp`,`ssecAlgorithm`,`ssecKey`,`ssecKeyMD5`,`serverSideEncryption`,`serverSideDataEncryption`,`meta`,`websiteRedirectLocation`,`storageClass`,`forbidOverwrite`]),this.setObjectContentTypeHeader(e,t),this._fetchObject(e,`POST`,{uploads:``},t,``)}var NP=5*1024*1024,PP=1e4,FP=(e,t,n=!1)=>{let r=t;t<NP&&(r=NP,n&&console.warn(`partSize has been set to ${r}, because the partSize you provided is less than the minimal size of multipart`));let i=Math.ceil(e/PP);return t<i&&(r=i,n&&console.warn(`partSize has been set to ${r}, because the partSize you provided causes the number of part excesses 10,000`)),r};async function IP(e){let{bucket:t,key:n,uploadId:r,...i}=e,a=await this._fetchObject(e,`GET`,{uploadId:r,...aP(i)},{});return rP(a.data)(`Parts`),a}var LP={"3gp":`video/3gpp`,"7z":`application/x-7z-compressed`,abw:`application/x-abiword`,ai:`application/postscript`,aif:`audio/x-aiff`,aifc:`audio/x-aiff`,aiff:`audio/x-aiff`,alc:`chemical/x-alchemy`,amr:`audio/amr`,anx:`application/annodex`,apk:`application/vnd.android.package-archive`,appcache:`text/cache-manifest`,art:`image/x-jg`,asc:`text/plain`,asf:`video/x-ms-asf`,aso:`chemical/x-ncbi-asn1-binary`,asx:`video/x-ms-asf`,atom:`application/atom+xml`,atomcat:`application/atomcat+xml`,atomsrv:`application/atomserv+xml`,au:`audio/basic`,avi:`video/x-msvideo`,awb:`audio/amr-wb`,axa:`audio/annodex`,axv:`video/annodex`,b:`chemical/x-molconn-Z`,bak:`application/x-trash`,bat:`application/x-msdos-program`,bcpio:`a
349pplication/x-bcpio`,bib:`text/x-bibtex`,bin:`application/octet-stream`,bmp:`image/x-ms-bmp`,boo:`text/x-boo`,book:`application/x-maker`,brf:`text/plain`,bsd:`chemical/x-crossfire`,c:`text/x-csrc`,"c++":`text/x-c++src`,c3d:`chemical/x-chem3d`,cab:`application/x-cab`,cac:`chemical/x-cache`,cache:`chemical/x-cache`,cap:`application/vnd.tcpdump.pcap`,cascii:`chemical/x-cactvs-binary`,cat:`application/vnd.ms-pki.seccat`,cbin:`chemical/x-cactvs-binary`,cbr:`application/x-cbr`,cbz:`application/x-cbz`,cc:`text/x-c++src`,cda:`application/x-cdf`,cdf:`application/x-cdf`,cdr:`image/x-coreldraw`,cdt:`image/x-coreldrawtemplate`,cdx:`chemical/x-cdx`,cdy:`application/vnd.cinderella`,cef:`chemical/x-cxf`,cer:`chemical/x-cerius`,chm:`chemical/x-chemdraw`,chrt:`application/x-kchart`,cif:`chemical/x-cif`,class:`application/java-vm`,cls:`text/x-tex`,cmdf:`chemical/x-cmdf`,cml:`chemical/x-cml`,cod:`application/vnd.rim.cod`,com:`application/x-msdos-program`,cpa:`chemical/x-compass`,cpio:`application/x-cpio`,cpp:`text/x-c++src`,cpt:`application/mac-compactpro`,cr2:`image/x-canon-cr2`,crl:`application/x-pkcs7-crl`,crt:`application/x-x509-ca-cert`,crw:`image/x-canon-crw`,csd:`audio/csound`,csf:`chemical/x-cache-csf`,csh:`application/x-csh`,csm:`chemical/x-csml`,csml:`chemical/x-csml`,css:`text/css`,csv:`text/csv`,ctab:`chemical/x-cactvs-binary`,ctx:`chemical/x-ctx`,cu:`application/cu-seeme`,cub:`chemical/x-gaussian-cube`,cxf:`chemical/x-cxf`,cxx:`text/x-c++src`,d:`text/x-dsrc`,davmount:`application/davmount+xml`,dcm:`application/dicom`,dcr:`application/x-director`,ddeb:`application/vnd.debian.binary-package`,dif:`video/dv`,diff:`text/x-diff`,dir:`application/x-director`,djv:`image/vnd.djvu`,djvu:`image/vnd.djvu`,dl:`video/dl`,dll:`application/x-msdos-program`,dmg:`application/x-apple-diskimage`,dms:`application/x-dms`,doc:`application/msword`,docm:`application/vnd.ms-word.document.macroEnabled.12`,docx:`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,dot:`application/msword`,dotm:`application/vnd.ms-word.template.macroEnabled.12`,dotx:`application/vnd.openxmlformats-officedocument.wordprocessingml.template`,dv:`video/dv`,dvi:`application/x-dvi`,dx:`chemical/x-jcamp-dx`,dxr:`application/x-director`,emb:`chemical/x-embl-dl-nucleotide`,embl:`chemical/x-embl-dl-nucleotide`,eml:`message/rfc822`,eot:`application/vnd.ms-fontobject`,eps:`application/postscript`,eps2:`application/postscript`,eps3:`application/postscript`,epsf:`application/postscript`,epsi:`application/postscript`,erf:`image/x-epson-erf`,es:`application/ecmascript`,etx:`text/x-setext`,exe:`application/x-msdos-program`,ez:`application/andrew-inset`,fb:`application/x-maker`,fbdoc:`application/x-maker`,fch:`chemical/x-gaussian-checkpoint`,fchk:`chemical/x-gaussian-checkpoint`,fig:`application/x-xfig`,flac:`audio/flac`,fli:`video/fli`,flv:`video/x-flv`,fm:`application/x-maker`,frame:`application/x-maker`,frm:`application/x-maker`,gal:`chemical/x-gaussian-log`,gam:`chemical/x-gamess-input`,gamin:`chemical/x-gamess-input`,gan:`application/x-ganttproject`,gau:`chemical/x-gaussian-input`,gcd:`text/x-pcs-gcd`,gcf:`application/x-graphing-calculator`,gcg:`chemical/x-gcg8-sequence`,gen:`chemical/x-genbank`,gf:`application/x-tex-gf`,gif:`image/gif`,gjc:`chemical/x-gaussian-input`,gjf:`chemical/x-gaussian-input`,gl:`video/gl`,gnumeric:`application/x-gnumeric`,gpt:`chemical/x-mopac-graph`,gsf:`application/x-font`,gsm:`audio/x-gsm`,gtar:`application/x-gtar`,gz:`application/gzip`,h:`text/x-chdr`,"h++":`text/x-c++hdr`,hdf:`application/x-hdf`,hh:`text/x-c++hdr`,hin:`chemical/x-hin`,hpp:`text/x-c++hdr`,hqx:`application/mac-binhex40`,hs:`text/x-haskell`,hta:`application/hta`,htc:`text/x-component`,htm:`text/html`,html:`text/html`,hwp:`application/x-hwp`,hxx:`text/x-c++hdr`,ica:`application/x-ica`,ice:`x-conference/x-cooltalk`,ico:`image/vnd.microsoft.icon`,ics:`text/calendar`,icz:`text/calendar`,ief:`image/ief`,iges:`model/iges`,igs:`model/iges`,iii:`application/x-iphone`,info:`application/x-info`,inp:`chemical/x-gamess-input`,ins:`application/x-internet-signup`,iso:`application/x-iso9660-image`,isp:`application/x-internet-signup`,ist:`chemical/x-isostar`,istr:`chemical/x-isostar`,jad:`text/vnd.sun.j2me.app-descriptor`,jam:`application/x-jam`,jar:`application/java-archive`,java:`text/x-java`,jdx:`chemical/x-jcamp-dx`,jmz:`application/x-jmol`,jng:`image/x-jng`,jnlp:`application/x-java-jnlp-file`,jp2:`image/jp2`,jpe:`image/jpeg`,jpeg:`image/jpeg`,jpf:`image/jpx`,jpg:`image/jpeg`,jpg2:`image/jp2`,jpm:`image/jpm`,jpx:`image/jpx`,js:`application/javascript`,json:`application/json`,kar:`audio/midi`,key:`application/pgp-keys`,kil:`application/x-killustrator`,kin:`chemical/x-kinemage`,kml:`application/vnd.google-earth.kml+xml`,kmz:`application/vnd.google-earth.kmz`,kpr:`application/x-kpresenter`,kpt:`application/x-kpresenter`,ksp:`application/x-kspread`,kwd:`application/x-kword`,kwt:`application/x-kword`,latex:`application/x-latex`,lha:`application/x-lha`,lhs:`text/x-literate-haskell`,lin:`application/bbolin`,lsf:`video/x-la-asf`,lsx:`video/x-la-asf`,ltx:`text/x-tex`,ly:`text/x-lilypond`,lyx:`application/x-lyx`,lzh:`application/x-lzh`,lzx:`application/x-lzx`,m3g:`application/m3g`,m3u:`audio/x-mpegurl`,m3u8:`application/x-mpegURL`,m4a:`audio/mpeg`,maker:`application/x-maker`,man:`application/x-troff-man`,mbox:`application/mbox`,mcif:`chemical/x-mmcif`,mcm:`chemical/x-macmolecule`,mdb:`application/msaccess`,me:`application/x-troff-me`,mesh:`model/mesh`,mid:`audio/midi`,midi:`audio/midi`,mif:`application/x-mif`,mkv:`video/x-matroska`,mm:`application/x-freemind`,mmd:`chemical/x-macromodel-input`,mmf:`application/vnd.smaf`,mml:`text/mathml`,mmod:`chemical/x-macromodel-input`,mng:`video/x-mng`,moc:`text/x-moc`,mol:`chemical/x-mdl-molfile`,mol2:`chemical/x-mol2`,moo:`chemical/x-mopac-out`,mop:`chemical/x-mopac-input`,mopcrt:`chemical/x-mopac-input`,mov:`video/quicktime`,movie:`video/x-sgi-movie`,mp2:`audio/mpeg`,mp3:`audio/mpeg`,mp4:`video/mp4`,mpc:`chemical/x-mopac-input`,mpe:`video/mpeg`,mpeg:`video/mpeg`,mpega:`audio/mpeg`,mpg:`video/mpeg`,mpga:`audio/mpeg`,mph:`application/x-comsol`,mpv:`video/x-matroska`,ms:`a
349pplication/x-troff-ms`,msh:`model/mesh`,msi:`application/x-msi`,mvb:`chemical/x-mopac-vib`,mxf:`application/mxf`,mxu:`video/vnd.mpegurl`,nb:`application/mathematica`,nbp:`application/mathematica`,nc:`application/x-netcdf`,nef:`image/x-nikon-nef`,nwc:`application/x-nwc`,o:`application/x-object`,oda:`application/oda`,odb:`application/vnd.oasis.opendocument.database`,odc:`application/vnd.oasis.opendocument.chart`,odf:`application/vnd.oasis.opendocument.formula`,odg:`application/vnd.oasis.opendocument.graphics`,odi:`application/vnd.oasis.opendocument.image`,odm:`application/vnd.oasis.opendocument.text-master`,odp:`application/vnd.oasis.opendocument.presentation`,ods:`application/vnd.oasis.opendocument.spreadsheet`,odt:`application/vnd.oasis.opendocument.text`,oga:`audio/ogg`,ogg:`audio/ogg`,ogv:`video/ogg`,ogx:`application/ogg`,old:`application/x-trash`,one:`application/onenote`,onepkg:`application/onenote`,onetmp:`application/onenote`,onetoc2:`application/onenote`,opf:`application/oebps-package+xml`,opus:`audio/ogg`,orc:`audio/csound`,orf:`image/x-olympus-orf`,otf:`application/font-sfnt`,otg:`application/vnd.oasis.opendocument.graphics-template`,oth:`application/vnd.oasis.opendocument.text-web`,otp:`application/vnd.oasis.opendocument.presentation-template`,ots:`application/vnd.oasis.opendocument.spreadsheet-template`,ott:`application/vnd.oasis.opendocument.text-template`,oza:`application/x-oz-application`,p:`text/x-pascal`,p7r:`application/x-pkcs7-certreqresp`,pac:`application/x-ns-proxy-autoconfig`,pas:`text/x-pascal`,pat:`image/x-coreldrawpattern`,patch:`text/x-diff`,pbm:`image/x-portable-bitmap`,pcap:`application/vnd.tcpdump.pcap`,pcf:`application/x-font-pcf`,"pcf.Z":`application/x-font-pcf`,pcx:`image/pcx`,pdb:`chemical/x-pdb`,pdf:`application/pdf`,pfa:`application/x-font`,pfb:`application/x-font`,pfr:`application/font-tdpfr`,pgm:`image/x-portable-graymap`,pgn:`application/x-chess-pgn`,pgp:`application/pgp-encrypted`,php:`#application/x-httpd-php`,php3:`#application/x-httpd-php3`,php3p:`#application/x-httpd-php3-preprocessed`,php4:`#application/x-httpd-php4`,php5:`#application/x-httpd-php5`,phps:`#application/x-httpd-php-source`,pht:`#application/x-httpd-php`,phtml:`#application/x-httpd-php`,pk:`application/x-tex-pk`,pl:`text/x-perl`,pls:`audio/x-scpls`,pm:`text/x-perl`,png:`image/png`,pnm:`image/x-portable-anymap`,pot:`text/plain`,potm:`application/vnd.ms-powerpoint.template.macroEnabled.12`,potx:`application/vnd.openxmlformats-officedocument.presentationml.template`,ppam:`application/vnd.ms-powerpoint.addin.macroEnabled.12`,ppm:`image/x-portable-pixmap`,pps:`application/vnd.ms-powerpoint`,ppsm:`application/vnd.ms-powerpoint.slideshow.macroEnabled.12`,ppsx:`application/vnd.openxmlformats-officedocument.presentationml.slideshow`,ppt:`application/vnd.ms-powerpoint`,pptm:`application/vnd.ms-powerpoint.presentation.macroEnabled.12`,pptx:`application/vnd.openxmlformats-officedocument.presentationml.presentation`,prf:`application/pics-rules`,prt:`chemical/x-ncbi-asn1-ascii`,ps:`application/postscript`,psd:`image/x-photoshop`,py:`text/x-python`,pyc:`application/x-python-code`,pyo:`application/x-python-code`,qgs:`application/x-qgis`,qt:`video/quicktime`,qtl:`application/x-quicktimeplayer`,ra:`audio/x-pn-realaudio`,ram:`audio/x-pn-realaudio`,rar:`application/rar`,ras:`image/x-cmu-raster`,rb:`application/x-ruby`,rd:`chemical/x-mdl-rdfile`,rdf:`application/rdf+xml`,rdp:`application/x-rdp`,rgb:`image/x-rgb`,rhtml:`#application/x-httpd-eruby`,rm:`audio/x-pn-realaudio`,roff:`application/x-troff`,ros:`chemical/x-rosdal`,rpm:`application/x-redhat-package-manager`,rss:`application/x-rss+xml`,rtf:`application/rtf`,rtx:`text/richtext`,rxn:`chemical/x-mdl-rxnfile`,scala:`text/x-scala`,sce:`application/x-scilab`,sci:`application/x-scilab`,sco:`audio/csound`,scr:`application/x-silverlight`,sct:`text/scriptlet`,sd:`chemical/x-mdl-sdfile`,sd2:`audio/x-sd2`,sda:`application/vnd.stardivision.draw`,sdc:`application/vnd.stardivision.calc`,sdd:`application/vnd.stardivision.impress`,sds:`application/vnd.stardivision.chart`,sdw:`application/vnd.stardivision.writer`,ser:`application/java-serialized-object`,sfd:`application/vnd.font-fontforge-sfd`,sfv:`text/x-sfv`,sgf:`application/x-go-sgf`,sgl:`application/vnd.stardivision.writer-global`,sh:`a
349pplication/x-sh`,shar:`application/x-shar`,shp:`application/x-qgis`,shtml:`text/html`,shx:`application/x-qgis`,sid:`audio/prs.sid`,sig:`application/pgp-signature`,sik:`application/x-trash`,silo:`model/mesh`,sis:`application/vnd.symbian.install`,sisx:`x-epoc/x-sisx-app`,sit:`application/x-stuffit`,sitx:`application/x-stuffit`,skd:`application/x-koan`,skm:`application/x-koan`,skp:`application/x-koan`,skt:`application/x-koan`,sldm:`application/vnd.ms-powerpoint.slide.macroEnabled.12`,sldx:`application/vnd.openxmlformats-officedocument.presentationml.slide`,smi:`application/smil+xml`,smil:`application/smil+xml`,snd:`audio/basic`,spc:`chemical/x-galactic-spc`,spl:`application/x-futuresplash`,spx:`audio/ogg`,sql:`application/x-sql`,src:`application/x-wais-source`,srt:`text/plain`,stc:`application/vnd.sun.xml.calc.template`,std:`application/vnd.sun.xml.draw.template`,sti:`application/vnd.sun.xml.impress.template`,stw:`application/vnd.sun.xml.writer.template`,sty:`text/x-tex`,sv4cpio:`application/x-sv4cpio`,sv4crc:`application/x-sv4crc`,svg:`image/svg+xml`,svgz:`image/svg+xml`,sw:`chemical/x-swissprot`,swf:`application/x-shockwave-flash`,swfl:`application/x-shockwave-flash`,sxc:`application/vnd.sun.xml.calc`,sxd:`application/vnd.sun.xml.draw`,sxg:`application/vnd.sun.xml.writer.global`,sxi:`application/vnd.sun.xml.impress`,sxm:`application/vnd.sun.xml.math`,sxw:`application/vnd.sun.xml.writer`,t:`application/x-troff`,tar:`application/x-tar`,taz:`application/x-gtar-compressed`,tcl:`application/x-tcl`,tex:`text/x-tex`,texi:`application/x-texinfo`,texinfo:`application/x-texinfo`,text:`text/plain`,tgf:`chemical/x-mdl-tgf`,tgz:`application/x-gtar-compressed`,thmx:`application/vnd.ms-officetheme`,tif:`image/tiff`,tiff:`image/tiff`,tk:`text/x-tcl`,tm:`text/texmacs`,torrent:`application/x-bittorrent`,tr:`application/x-troff`,ts:`video/MP2T`,tsp:`application/dsptype`,tsv:`text/tab-separated-values`,ttf:`application/font-sfnt`,ttl:`text/turtle`,txt:`text/plain`,uls:`text/iuls`,ustar:`application/x-ustar`,val:`chemical/x-ncbi-asn1-binary`,vcard:`text/vcard`,vcd:`application/x-cdlink`,vcf:`text/vcard`,vcs:`text/x-vcalendar`,vmd:`chemical/x-vmd`,vms:`chemical/x-vamas-iso14976`,vrm:`x-world/x-vrml`,vrml:`model/vrml`,vsd:`application/vnd.visio`,vss:`application/vnd.visio`,vst:`application/vnd.visio`,vsw:`application/vnd.visio`,wad:`application/x-doom`,wasm:`application/wasm`,wav:`audio/wav`,wax:`audio/x-ms-wax`,wbmp:`image/vnd.wap.wbmp`,wbxml:`application/vnd.wap.wbxml`,webm:`video/webm`,wk:`application/x-123`,wm:`video/x-ms-wm`,wma:`audio/x-ms-wma`,wmd:`application/x-ms-wmd`,wml:`text/vnd.wap.wml`,wmlc:`application/vnd.wap.wmlc`,wmls:`text/vnd.wap.wmlscript`,wmlsc:`application/vnd.wap.wmlscriptc`,wmv:`video/x-ms-wmv`,wmx:`video/x-ms-wmx`,wmz:`application/x-ms-wmz`,woff:`application/font-woff`,wp5:`application/vnd.wordperfect5.1`,wpd:`application/vnd.wordperfect`,wrl:`model/vrml`,wsc:`text/scriptlet`,wvx:`video/x-ms-wvx`,wz:`application/x-wingz`,x3d:`model/x3d+xml`,x3db:`model/x3d+binary`,x3dv:`model/x3d+vrml`,xbm:`image/x-xbitmap`,xcf:`application/x-xcf`,xcos:`application/x-scilab-xcos`,xht:`application/xhtml+xml`,xhtml:`application/xhtml+xml`,xlam:`application/vnd.ms-excel.addin.macroEnabled.12`,xlb:`application/vnd.ms-excel`,xls:`application/vnd.ms-excel`,xlsb:`application/vnd.ms-excel.sheet.binary.macroEnabled.12`,xlsm:`application/vnd.ms-excel.sheet.macroEnabled.12`,xlsx:`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`,xlt:`application/vnd.ms-excel`,xltm:`application/vnd.ms-excel.template.macroEnabled.12`,xltx:`application/vnd.openxmlformats-officedocument.spreadsheetml.template`,xml:`application/xml`,xpi:`application/x-xpinstall`,xpm:`image/x-xpixmap`,xsd:`application/xml`,xsl
349:`application/xslt+xml`,xslt:`application/xslt+xml`,xspf:`application/xspf+xml`,xtel:`chemical/x-xtel`,xul:`application/vnd.mozilla.xul+xml`,xwd:`image/x-xwindowdump`,xyz:`chemical/x-xyz`,xz:`application/x-xz`,zip:`application/zip`,webp:`image/webp`},RP={__proto__:null,CRC:class{reset(){}async updateBlob(){throw new Y(`Not implemented.(CRC may cause browser lag.)`)}update(e){throw new Y(`Not implemented.(CRC may cause browser lag.)`)}}},zP=null;zP=RP;var{CRC:$me,combineCrc64:BP}=zP;function VP(e,t){throw Error(`no implemention in browser environment`)}function HP(e){throw Error(`no implemention in browser environment`)}var UP={__proto__:null,createDefaultRateLimiter:VP,createRateLimiterStream:HP},WP=null;WP=UP;var{createDefaultRateLimiter:GP,createRateLimiterStream:ehe}=WP,KP;(function(e){e.HeaderRestore=`x-tos-restore`,e.HeaderRestoreExpiryDays=`x-tos-restore-expiry-days`,e.HeaderRestoreRequestDate=`x-tos-restore-request-date`,e.HeaderRestoreTier=`x-tos-restore-tier`,e.HeaderProjectName=`x-tos-project-name`,e.HeaderReplicationStatus=`x-tos-replication-status`})(KP||={});var qP=`ongoing-request="true"`,JP=e=>typeof e==`string`?e:e.key,YP=`application/octet-stream`;function XP(e){let t=e.lastIndexOf(`.`);if(!(t<=0))return LP[e.slice(t+1).toLowerCase()]}function ZP(e){if((typeof e==`string`?e:e.key).length<1)throw new Y(`invalid object name, the length must be greater than 1`)}function QP(e,t){if(hP(e))return e.length;if(mP(e))return e.size;if(t&&t[`content-length`]){let e=+t[`content-length`];if(e>=0)return e}return null}function $P({body:e,dataTransferCallback:t,makeRetryStream:n,rateLimiter:r}){return{body:e,makeRetryStream:void 0}}async function eF({body:e,beforeRetry:t,makeRetryStream:n,enableCRC:r}){return{body:e,beforeRetry:t,makeRetryStream:n}}async function tF(e){let t=$P(e);return e={...e,...t},eF(e)}function nF(e,t){return`/${e}/${encodeURIComponent(t)}`}var rF=e=>{if(!e)return;let t=e?.[KP.HeaderRestore];if(t){var n;let r=((n=(t??``).split(`",`)[1])==null||n.split==null?void 0:n.split(`=`)?.[1])??``,i=t?.trim()===qP,a={RestoreStatus:{OngoingRequest:i,ExpiryDate:r}};return i&&(a.RestoreParam={ExpiryDays:e[KP.HeaderRestoreExpiryDays]?Number(e[KP.HeaderRestoreExpiryDays]):0,RequestDate:e[KP.HeaderRestoreRequestDate]??``,Tier:e[KP.HeaderRestoreTier]}),a}},iF;(function(e){e[e.Started=1]=`Started`,e[e.Rw=2]=`Rw`,e[e.Succeed=3]=`Succeed`,e[e.Failed=4]=`Failed`})(iF||={});var aF=`__retryConfig__`,oF=`__retrySignature__`;function sF(e){var t;return!e.response&&!!e.code||e.response&&!((t=e.response.headers)!=null&&t[`x-tos-request-id`])}function cF(e){if(!e.response)return!1;let{status:t}=e.response;return t===429||t===408||t>=500}var lF=[`content-length`,`user-agent`,`host`],uF=e=>{let t=FN.default.create();t.defaults.auth=void 0,t.defaults.responseType=`json`,t.defaults.params=void 0,t.defaults.headers={},t.defaults.withCredentials=!1,t.defaults.maxContentLength=-1,t.defaults.maxBodyLength=-1,t.defaults.maxRedirects=0,t.defaults.validateStatus=function(e){return e>=200&&e<300},t.defaults.decompress=!1,t.defaults.transitional={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},t.interceptors.request.use(e=>(e.headers&&Object.keys(e.headers).forEach(t=>{lF.includes(t.toLowerCase())&&delete e.headers[t]}),e));let n=e=>(e.headers=e.headers||e.header||e?.response?.headers||{},e);t.interceptors.response.use(n,e=>(n(e),Promise.reject(e)));function r(e){Object.entries(e).forEach(([t,n])=>{let[r,i]=pP(()=>decodeURI(n));if(r||i==null||i===n)return;let a=[],o=`${n}`.match(/./gu),s=i.match(/./gu);for(let e=0,t=0;e<s.length;){let n=s[e];if(n===o[t]){a.push(n),++e,++t;continue}let r=encodeURIComponent(n);n.length>1||n.charCodeAt(0)>=128?a.push(n):a.push(r),++e,t+=r.length}e[t]=a.join(``)})}return t.interceptors.response.use(e=>(e.headers&&r(e.headers),e),async e=>{if(!FN.default.isAxiosError(e))return Promise.reject(e);let t=e.response?.headers;return t&&r(t),Promise.reject(e)}),t.interceptors.response.use(void 0,async n=>{let{config:r}=n;if(!r)return Promise.reject(n);r[aF]||(r[aF]={});let i=r[aF],a=i.retryCount??0,o=r.data;if(!((sF(n)||cF(n))&&a<e))return Promise.reject(n);let s=r[oF];if(s){let{signOpt:e,sigInst:t}=s;t.signatureHeader(e).forEach((e,t)=>{r.headers[t]=e})}nP(`retryConfig: `,r);let c={...r,data:o,[aF]:{...i,retryCount:a+1}};return i.beforeRetry==null||i.beforeRetry(),t(c)}),t};function dF(e){switch(e){case`utf-8`:return GN.default;case`base64`:return UN.default;case`hex`:return WN.default;default:throw new Y(`The coding is not supported`)}}function fF(e,t){return t?e.toString(dF(t)):e}var pF=function(e,t,n){return fF((0,BN.default)(t,e),n)},mF=function(e,t){return fF((0,VN.default)(e),t)},hF=function(e,t){if(hP(e))throw new Y(`not support buffer in browser environment`);return fF((0,HN.default)(e),t)},gF={__proto__:null,hmacSha256:pF,hashSha256:mF,hashMd5:hF,parse:function(e,t){return dF(t).parse(e)},stringify:function(e,t){return dF(t).stringify(e)}},_F=null;_F=gF;var{hmacSha256:vF,hashSha256:yF,hashMd5:bF,parse:xF,stringify:SF}=_F;async function CF(e){let{uploadId:t,partNumber:n,body:r,enableContentMD5:i=!1}=e,a=cP(e.headers);
349e.headers=a,CP(e,[`trafficLimit`,`ssecAlgorithm`,`ssecKey`,`ssecKeyMD5`]);let o=QP(r);o&&a[`content-length`]==null&&(a[`content-length`]=o.toFixed(0)),i&&a[`content-md5`]==null&&console.warn(`current not support enableMD5Checksum`);let s=QP(e.body,a),c=s!=null;!c&&(e.dataTransferStatusChange||e.progress)&&console.warn("Don't get totalSize of uploadPart's body, the `dataTransferStatusChange` callback will not trigger. You can use `uploadPartFromFile` instead");let l=0,{dataTransferStatusChange:u,progress:d}=e,f=(e,t=0)=>{if(!c||t<0||!u&&!d)return;l+=t,u?.({type:e,rwOnceBytes:t,consumedBytes:l,totalBytes:s});let n=s===0?+(e===iF.Succeed):l/s;n===1?e===iF.Succeed&&d?.(n):d?.(n)},p=await tF({body:e.body,dataTransferCallback:e=>f(iF.Rw,e),beforeRetry:e.beforeRetry,makeRetryStream:e.makeRetryStream,enableCRC:this.opts.enableCRC,rateLimiter:e.rateLimiter});f(iF.Started);let[m,h]=await fP((async()=>{let r=await this._fetchObject(e,`PUT`,{partNumber:n,uploadId:t},a,p.body,{handleResponse:e=>({partNumber:n,ETag:e.headers.etag,serverSideEncryption:e.headers[`x-tos-server-side-encryption`],serverSideDataEncryption:e.headers[`x-tos-server-side-data-encryption`],serverSideEncryptionKeyId:e.headers[`x-tos-server-side-encryption-kms-key-id`],ssecAlgorithm:e.headers[`x-tos-server-side-encryption-customer-algorithm`],ssecKeyMD5:e.headers[`x-tos-server-side-encryption-customer-key-MD5`],hashCrc64ecma:e.headers[`x-tos-hash-crc64ecma`]}),axiosOpts:{[aF]:{beforeRetry:()=>{l=0,p.beforeRetry==null||p.beforeRetry()},makeRetryStream:p.makeRetryStream},onUploadProgress:e=>{f(iF.Rw,e.loaded-l)}}});return this.opts.enableCRC&&p.crc&&DP(p.crc,r.headers),r})());if(h&&!h.data.ETag)throw new Y(`No ETag in uploadPart's response headers, please see https://www.volcengine.com/docs/6349/127737 to fix CORS problem`);if(m||!h)throw f(iF.Failed),m;return f(iF.Succeed),h}async function wF(e){return CF.call(this,e)}async function TF(e){throw new Y(`uploadPartFromFile doesn't support in browser environment`)}async function EF(e){e.headers=e.headers??{},CP(e,[`callback`,`callbackVar`,`forbidOverwrite`]);let t=t=>{let n=e.bucket||this.opts.bucket||``,r=t.headers,i={VersionID:r[`x-tos-version-id`],ETag:r.etag,Bucket:n,Location:r.location,HashCrc64ecma:r[`x-tos-hash-crc64ecma`],Key:e.key,...t.data};return e.callback&&(i.CallbackResult=`${JSON.stringify(t.data)}`),i};if(e.completeAll){if(e.parts?.length>0)throw new Y(`Should not specify both 'completeAll' and 'parts' params.`);return this._fetchObject(e,`POST`,{uploadId:e.uploadId},{...e.headers,"x-tos-complete-all":`yes`},void 0,{handleResponse:t})}return this._fetchObject(e,`POST`,{uploadId:e.uploadId},{...e.headers},{Parts:e.parts.map(e=>({ETag:e.eTag,PartNumber:e.partNumber}))},{handleResponse:t})}var DF;(function(e){e[e.CreateMultipartUploadSucceed=1]=`CreateMultipartUploadSucceed`,e[e.CreateMultipartUploadFailed=2]=`CreateMultipartUploadFailed`,e[e.UploadPartSucceed=3]=`UploadPartSucceed`,e[e.UploadPartFailed=4]=`UploadPartFailed`,e[e.UploadPartAborted=5]=`UploadPartAborted`,e[e.CompleteMultipartUploadSucceed=6]=`CompleteMultipartUploadSucceed`,e[e.CompleteMultipartUploadFailed=7]=`CompleteMultipartUploadFailed`})(DF||={});var OF=`@@checkpoint-file-placeholder@@`,kF="`file` must be string, Buffer, File or Blob",AF=[403,404,405];async function jF(e){let{cancelToken:t,enableContentMD5:n=!1}=e,r=cP(e.headers);e.headers=r,CP(e,[`encodingType`,`cacheControl`,`contentDisposition`,`contentEncoding`,`contentLanguage`,`contentType`,`expires`,`acl`,`grantFullControl`,`grantRead`,`grantReadAcp`,`grantWriteAcp`,`ssecAlgorithm`,`ssecKey`,`ssecKeyMD5`,`serverSideEncryption`,`serverSideDataEncryption`,`meta`,`websiteRedirectLocation`,`storageClass`]);let i=()=>t&&!!t.reason,a=await(async()=>null)(),o=await(async()=>{let{file:t}=e;if(a)return a.size;if(hP(t))return t.length;if(mP(t))return t.size;throw new Y(kF)})(),s=await(async()=>typeof e.checkpoint==`object`?{record:e.checkpoint}:{})();await(async()=>{var e;if(a&&(e=s.record)!=null&&e.file_info){let{last_modified:e,file_size:t}=s.record?.file_info;(a.mtimeMs!==e||a.size!==t)&&(console.warn(`The file has been modified since ${new Date(e)}
349, so the checkpoint file is invalid, and specified file will be uploaded again.`),delete s.record)}})();let c=FP(o,e.partSize||s.record?.part_size||vP,!0);s.record&&s.record.part_size!==c&&(console.warn(`The partSize param does not equal the partSize in checkpoint file, so the checkpoint file is invalid, and specified file will be uploaded again.`),delete s.record);let l=e.bucket||this.opts.bucket||``,u=e.key,d=``,f=[],p=MF(o,c),m=(s.record?.parts_info||[]).filter(e=>e.is_completed).reduce((e,t)=>e+t.part_size,0),h=m,g=s.record?.parts_info||[],_=new Map;g.forEach(e=>_.set(e.part_number,e));let v=()=>{let e={bucket:l,key:u,part_size:c,upload_id:d,parts_info:g};return a&&(e.file_info={last_modified:a.mtimeMs,file_size:a.size}),e},y=t=>{if(!e.uploadEventChange)return;let n={bucket:l,uploadId:d,key:u,...t};s.filePath&&(n.checkpointFile=s.filePath),e.uploadEventChange(n)},b;(function(e){e[e.start=1]=`start`,e[e.uploadPartSucceed=2]=`uploadPartSucceed`,e[e.completeMultipartUploadSucceed=3]=`completeMultipartUploadSucceed`})(b||={});let x=t=>{if(!e.progress)return;let n=t===b.start&&o===0?0:o?h/o:1;h===o&&t===b.uploadPartSucceed||e.progress(n,v())},S=m,{dataTransferStatusChange:C}=e,w=(e,t=0)=>{C&&(S+=t,C?.({type:e,rwOnceBytes:t,consumedBytes:S,totalBytes:o}))},T=kP(async()=>{}),E=async()=>{},D=async(e,t)=>{let n=_.get(e.partNumber);n||(n={part_number:e.partNumber,offset:e.offset,part_size:e.partSize,is_completed:!1,etag:``,hash_crc64ecma:``},g.push(n),_.set(n.part_number,n)),t.err||(n.is_completed=!0,n.etag=t.res.ETag,n.hash_crc64ecma=t.res.hashCrc64ecma),await T();let r={partNumber:n.part_number,partSize:n.part_size,offset:n.offset};if(t.err){let e=t.err,n=DF.UploadPartFailed;e instanceof $N&&AF.includes(e.statusCode)&&(n=DF.UploadPartAborted),y({type:n,err:e,uploadPartInfo:r});return}r.etag=t.res.ETag,h+=r.partSize,y({type:DF.UploadPartSucceed,uploadPartInfo:r}),x(b.uploadPartSucceed)};if(s.record){l=s.record.bucket,d=s.record.upload_id;let e=new Set((s.record.parts_info||[]).filter(e=>e.is_completed).map(e=>e.part_number));f=p.filter(t=>!e.has(t.partNumber))}else{try{let{data:t}=await MP.call(this,e);if(i())throw new tP(`cancel uploadFile`);l=t.Bucket,d=t.UploadId,s.filePathIsPlaceholder&&(s.filePath=s.filePath?.replace(`${OF}`,NF(l,u))),y({type:DF.CreateMultipartUploadSucceed})}catch(e){let t=e;throw y({type:DF.CreateMultipartUploadFailed,err:t}),t}f=p}x(b.start);let O=async()=>{let t=null,a=()=>i()||!!t,o=0;if(await Promise.all(Array.from({length:e.taskNum||1}).map(async()=>{let s,c=0,p=null,m=null;try{for(;;){let m=o++;if(m>=f.length)return;p=f[m],s=(e.file,void 0);function h(e,t){let{offset:n,partSize:r}=t,i=n+r;if(s)return s.make();if(mP(e)||hP(e))return e.slice(n,i);throw new Y(kF)}let{data:g}=await CF.call(this,{bucket:l,key:u,uploadId:d,body:h(e.file,p),enableContentMD5:n,makeRetryStream:s?.make,beforeRetry:()=>{S-=c,c=0},partNumber:p.partNumber,headers:{"content-length":`${p.partSize}`,"x-tos-server-side-encryption-customer-algorithm":r[`x-tos-server-side-encryption-customer-algorithm`],"x-tos-server-side-encryption-customer-key":r[`x-tos-server-side-encryption-customer-key`],"x-tos-server-side-encryption-customer-key-md5":r[`x-tos-server-side-encryption-customer-key-md5`]},dataTransferStatusChange(e){e.type===iF.Rw&&(a()||(c+=e.rwOnceBytes,w(e.type,e.rwOnceBytes)))},trafficLimit:e.trafficLimit,rateLimiter:e.rateLimiter});if(i())throw new tP(`cancel uploadFile`);if(t)throw new tP("cancel uploadFile by internal error(`firstErr`)");await D(p,{res:g})}}catch(e){m=e,t||=m}try{m?p&&await D(p,{err:m}):(AP(s?.getLastStream(),m),S-=c,c=0)}catch(e){nP("error while clearing resources of `uploadFile` task, err:",e)}})),t)throw t;let s=(v().parts_info||[]).map(e=>({eTag:e.etag,partNumber:e.part_number}
349)),[c,p]=await fP(EF.call(this,{bucket:l,key:u,uploadId:d,parts:s}));if(c||!p)throw y({type:DF.CompleteMultipartUploadFailed}),c;if(y({type:DF.CompleteMultipartUploadSucceed}),x(b.completeMultipartUploadSucceed),await E(),this.opts.enableCRC&&p.data.HashCrc64ecma&&PF(v())!==p.data.HashCrc64ecma)throw new Y(`crc of entire file mismatch.`);return p};w(iF.Started);let[k,A]=await fP(O());if(k||!A)throw w(iF.Failed),k;return w(iF.Succeed),A}function MF(e,t){let n=[];for(let r=0;;++r){let i=r*t,a=Math.min(t,e-i);if(n.push({offset:i,partSize:a,partNumber:r+1}),(r+1)*t>=e)break}return n}function NF(e,t){return`${t}.${bF(`${e}.${t}`,`hex`)}.upload`.replace(/[\\/]/g,``)}function PF(e){var t;let n=e.file_info?.file_size||0,r=`0`,i=((t=e.parts_info)==null||t.sort==null?void 0:t.sort((e,t)=>e.part_number-t.part_number))??[];for(let e of i)r=BP(r,e.hash_crc64ecma,Math.min(e.part_size,n-e.offset));return r}var FF;(function(e){e.ACLPrivate=`private`,e.ACLPublicRead=`public-read`,e.ACLPublicReadWrite=`public-read-write`,e.ACLAuthenticatedRead=`authenticated-read`,e.ACLBucketOwnerRead=`bucket-owner-read`,e.ACLBucketOwnerFullControl=`bucket-owner-full-control`,e.ACLBucketOwnerEntrusted=`bucket-owner-entrusted`,e.ACLDefault=`default`})(FF||={});var IF;(function(e){e.StorageClassStandard=`STANDARD`,e.StorageClassIa=`IA`,e.StorageClassArchiveFr=`ARCHIVE_FR`,e.StorageClassColdArchive=`COLD_ARCHIVE`,e.StorageClassIntelligentTiering=`INTELLIGENT_TIERING`,e.StorageClassArchive=`ARCHIVE`,e.StorageClassDeepColdArchive=`DEEP_COLD_ARCHIVE`})(IF||={});var LF;(function(e){e.MetadataDirectiveCopy=`COPY`,e.MetadataDirectiveReplace=`REPLACE`})(LF||={});var RF;(function(e){e.AzRedundancySingleAz=`single-az`,e.AzRedundancyMultiAz=`multi-az`})(RF||={});var zF;(function(e){e.PermissionRead=`READ`,e.PermissionWrite=`WRITE`,e.PermissionReadAcp=`READ_ACP`,e.PermissionWriteAcp=`WRITE_ACP`,e.PermissionFullControl=`FULL_CONTROL`,e.PermissionReadNONLIST=`READ_NON_LIST`})(zF||={});var BF;(function(e){e.GranteeGroup=`Group`,e.GranteeUser=`CanonicalUser`})(BF||={});var VF;(function(e){e.CannedAllUsers=`AllUsers`,e.CannedAuthenticatedUsers=`AuthenticatedUsers`})(VF||={});var HF;(function(e){e.HttpMethodGet=`GET`,e.HttpMethodPut=`PUT`,e.HttpMethodPost=`POST`,e.HttpMethodDelete=`DELETE`,e.HttpMethodHead=`HEAD`})(HF||={});var UF;(function(e){e.StorageClassInheritDirectiveDestinationBucket=`DESTINATION_BUCKET`,e.StorageClassInheritDirectiveSourceObject=`SOURCE_OBJECT`})(UF||={});var WF;(function(e){e.Complete=`COMPLETE`,e.Pending=`PENDING`,e.Failed=`FAILED`,e.Replica=`REPLICA`})(WF||={});var GF;(function(e){e.Enabled=`Enabled`,e.Disabled=`Disabled`})(GF||={});var KF;(function(e){e.Mirror=`Mirror`,e.Async=`Async`})(KF||={});var qF;(function(e){e.Enabled=`Enabled`,e.Disabled=`Disabled`})(qF||={});var JF;(function(e){e.TierStandard=`Standard`,e.TierExpedited=`Expedited`,e.TierBulk=`Bulk`})(JF||={});var YF;(function(e){e.Enabled=`Enabled`,e.Suspended=`Suspended`,e.NotSet=``,e.Enable=`Enabled`,e.Disable=``})(YF||={});var XF;(function(e){e.Ready=`READY`,e.Creating=`CREATING`,e.Created=`CREATED`,e.Deleting=`DELETING`})(XF||={});var ZF;(function(e){e.Activating=`AccelerationActivating`,e.Activated=`AccelerationActivated`,e.Terminated=`AccelerationTerminated`})(ZF||={});var QF;(function(e){e.ClosestFirst=`Closest-First`,e.LatestFirst=`Latest-First`})(QF||={});var $F;(function(e){e.Success=`Success`,e.Running=`Running`,e.Submitted=`Submitted`,e.Failed=`Failed`})($F||={});var eI;(function(e){e[e.KeepStructure=0]=`KeepStructure`,e[e.FlattenAll=1]=`FlattenAll`,e[e.PrefixAsDirectory=2]=`PrefixAsDirectory`,e[e.PrefixContentsOnly=3]=`PrefixContentsOnly`})(eI||={});var tI;(function(e){e[e.NoExtraPrefix=0]=`NoExtraPrefix`,e[e.WithArchiveName=1]=`WithArchiveName`,e[e.FullArchivePath=2]=`FullArchivePath`})(tI||={});var nI;(function(e){e.Enable=`enable`,e.Disable=`disable`,e.Creating=`creating`,e.Deleting=`deleting`})(nI||={});var rI;(function(e){e.Null=`NULL`,e.Idle=`IDLE`,e.Running=`RUNNING`,e.Stopping=`STOPPING`,e.Complete=`COMPLETE`})(rI||={});var iI;(function(e){e.Submitted=`Submitted`,e.Running=`Running`,e.Success=`Success`,e.Failed=`Failed`,e.Paused=`Paused`,e.Canceled=`Canceled`})(iI||={});var aI;(function(e){e.Manifest=`Manifest`,e.Scan=`Scan`})(aI||={});var oI;(function(e){e.Image=`image`,e.Video=`video`,e.Audio=`audio`})(oI||={});var sI;(function(e){e.Freeze=`freeze`,e.Sensitive=`sensitive`,e.Failure=`failure`})(sI||={});var cI;(function(e){e.Archive=`archive`,e.Private=`private`})(cI||={});var lI;(function(e){e.AudioConvert=`AudioConvert`,e.Transcode=`Transcode`})(lI||={});var uI;
349(function(e){e.Wav=`wav`,e.Mp3=`mp3`,e.Aac=`aac`,e.Flac=`flac`,e.Oga=`oga`,e.Ac3=`ac3`,e.Opus=`opus`})(uI||={});var dI;(function(e){e.Mp4=`mp4`,e.Ts=`ts`})(dI||={});var fI;(function(e){e.Fltp=`fltp`,e.S16p=`s16p`,e.S32p=`s32p`,e.S16=`s16`,e.S32=`s32`})(fI||={});var pI;(function(e){e.DataTypeFloat32=`float32`})(pI||={});var mI;(function(e){e.DistanceMetricEuclidean=`euclidean`,e.DistanceMetricCosine=`cosine`})(mI||={});async function hI(e){let t=typeof e==`string`?{key:e}:e;t.headers=cP(t.headers);let n={};return t.versionId&&(n.versionId=t.versionId),CP(t,[`ifMatch`,`ifModifiedSince`,`ifNoneMatch`,`ifUnmodifiedSince`,`ssecAlgorithm`,`ssecKey`,`ssecKeyMD5`]),this._fetchObject(e,`HEAD`,n,t?.headers||{},void 0,{handleResponse:e=>{let t={...e.headers,ReplicationStatus:e.headers[KP.HeaderReplicationStatus]},n=rF(e.headers);return n&&(t.RestoreInfo=n),t}})}async function gI(e){let{uploadId:t,partNumber:n}=e,r=cP(e.headers);if(e.headers=r,CP(e,[`copySourceRange`,`copySourceSSECAlgorithm`,`copySourceSSECKey`,`copySourceSSECKeyMD5`,`ssecAlgorithm`,`ssecKey`,`ssecKeyMD5`,`trafficLimit`]),e.srcBucket&&e.srcKey){let t=nF(e.srcBucket,e.srcKey);e.srcVersionID&&(t+=`?versionId=${e.srcVersionID}`),r[`x-tos-copy-source`]=r[`x-tos-copy-source`]??t}if(e.copySourceRange==null&&(e.copySourceRangeStart!=null||e.copySourceRangeEnd!=null)){let t=`bytes=${e.copySourceRangeStart==null?``:`${e.copySourceRangeStart}`}-${e.copySourceRangeEnd==null?``:`${e.copySourceRangeEnd}`}`;r[`x-tos-copy-source-range`]=r[`x-tos-copy-source-range`]??t}let[i,a]=await fP(this._fetchObject(e,`PUT`,{partNumber:n,uploadId:t},r,void 0,{handleResponse(e){return{...e.data,SSECAlgorithm:e.headers[xP.ssecAlgorithm],SSECKeyMD5:e.headers[xP.ssecKeyMD5]}}}));if(i||!a||!a.data.ETag)throw i;return a}async function _I(e){let t=cP(e.headers);if(e.headers=t,CP(e,`cacheControl.contentDisposition.contentEncoding.contentLanguage.contentType.expires.copySourceIfMatch.copySourceIfModifiedSince.copySourceIfNoneMatch.copySourceIfUnmodifiedSince.copySourceSSECAlgorithm.copySourceSSECKey.copySourceSSECKeyMD5.acl.grantFullControl.grantRead.grantReadAcp.grantWriteAcp.ssecAlgorithm.ssecKey.ssecKeyMD5.serverSideEncryption.metadataDirective.meta.websiteRedirectLocation.storageClass.trafficLimit.forbidOverwrite.ifMatch`.split(`.`)),e.srcBucket&&e.srcKey){let n=nF(e.srcBucket,e.srcKey);e.srcVersionID&&(n+=`?versionId=${e.srcVersionID}`),t[`x-tos-copy-source`]=t[`x-tos-copy-source`]??n}let[n,r]=await fP(this._fetchObject(e,`PUT`,{},t));if(n||!r||!r.data.ETag)throw n;return r}var vI;(function(e){e[e.CreateMultipartUploadSucceed=1]=`CreateMultipartUploadSucceed`,e[e.CreateMultipartUploadFailed=2]=`CreateMultipartUploadFailed`,e[e.UploadPartCopySucceed=3]=`UploadPartCopySucceed`,e[e.UploadPartCopyFailed=4]=`UploadPartCopyFailed`,e[e.UploadPartCopyAborted=5]=`UploadPartCopyAborted`,e[e.CompleteMultipartUploadSucceed=6]=`CompleteMultipartUploadSucceed`,e[e.CompleteMultipartUploadFailed=7]=`CompleteMultipartUploadFailed`})(vI||={});var yI=`@@checkpoint-file-placeholder@@`,bI=[403,404,405],xI=20*1024*1024;async function SI(e){let{cancelToken:t}=e,n=()=>t&&!!t.reason,{data:r}=await hI.call(this,{bucket:e.srcBucket,key:e.srcKey,versionId:e.srcVersionId}),i=r.etag,a=+r[`content-length`],o=await(async()=>typeof e.checkpoint==`object`?{record:e.checkpoint}:{})();await(async()=>{var e;if((e=o.record)!=null&&e.copy_source_object_info){let{last_modified:e,object_size:t}=o.record?.copy_source_object_info;(r[`last-modified`]!==e||+r[`content-length`]!==t)&&(console.warn(`The file has been modified since ${new Date(e)}, so the checkpoint file is invalid, and specified file will be uploaded again.`),delete o.record)}})();let s=FP(a,e.partSize||o.record?.part_size||xI,!0);o.record&&o.record.part_size!==s&&(console.warn(`The partSize param does not equal the partSize in checkpoint file, so the checkpoint file is invalid, and specified file will be uploaded again.`),delete o.record);let c=e.bucket||this.opts.bucket||``,l=e.key,u=``,d=[],f=wI(a,s),p=(o.record?.parts_info||[]).filter(e=>e.is_completed).reduce((e,t)=>e+t.copy_source_range_end-t.copy_source_range_start+1,0),m=o.record?.parts_info||[],h=new Map;
349m.forEach(e=>h.set(e.part_number,e));let g=()=>({bucket:c,key:l,part_size:s,upload_id:u,parts_info:m,copy_source_object_info:{last_modified:r[`last-modified`],etag:r.etag,hash_crc64ecma:r[`x-tos-hash-crc64ecma`]||``,object_size:+r[`content-length`]}}),_=t=>{if(!e.copyEventListener)return;let n={bucket:c,uploadId:u,key:l,...t};o.filePath&&(n.checkpointFile=o.filePath),e.copyEventListener(n)},v;(function(e){e[e.start=1]=`start`,e[e.uploadPartSucceed=2]=`uploadPartSucceed`,e[e.completeMultipartUploadSucceed=3]=`completeMultipartUploadSucceed`})(v||={});let y=t=>{if(!e.progress)return;let n=t===v.start&&a===0?0:a?p/a:1;p===a&&t===v.uploadPartSucceed||e.progress(n,g())},b=kP(async()=>{}),x=async()=>{},S=async(e,t)=>{let n=h.get(e.partNumber),r=e.offset,i=Math.min(e.offset+s-1,a-1);n||(n={part_number:e.partNumber,copy_source_range_start:r,copy_source_range_end:i,is_completed:!1,etag:``},m.push(n),h.set(n.part_number,n)),t.err||(n.is_completed=!0,n.etag=t.res.ETag),await b();let o={partNumber:n.part_number,copySourceRangeEnd:n.copy_source_range_end,copySourceRangeStart:n.copy_source_range_start};if(t.err){let e=t.err,n=vI.UploadPartCopyFailed;e instanceof $N&&bI.includes(e.statusCode)&&(n=vI.UploadPartCopyAborted),_({type:n,err:e,copyPartInfo:o});return}o.etag=t.res.ETag,p+=o.copySourceRangeEnd-o.copySourceRangeStart+1,_({type:vI.UploadPartCopySucceed,copyPartInfo:o}),y(v.uploadPartSucceed)};if(o.record){c=o.record.bucket,u=o.record.upload_id;let e=new Set((o.record.parts_info||[]).filter(e=>e.is_completed).map(e=>e.part_number));d=f.filter(t=>!e.has(t.partNumber))}else{try{let{data:t}=await MP.call(this,(0,KN.default)(e));if(n())throw new tP(`cancel uploadFile`);c=t.Bucket,u=t.UploadId,o.filePathIsPlaceholder&&(o.filePath=o.filePath?.replace(`${yI}`,TI({...e,bucket:c}))),_({type:vI.CreateMultipartUploadSucceed})}catch(e){let t=e;throw _({type:vI.CreateMultipartUploadFailed,err:t}),t}d=f}return y(v.start),a===0?(async()=>{let t=nF(e.srcBucket,e.srcKey);e.srcVersionId&&(t+=`?versionId=${e.srcVersionId}`);let n={...e.headers,"x-tos-copy-source":t,"x-tos-copy-source-if-match":i},[r,a]=await fP(_I.call(this,{bucket:e.bucket,key:e.key,headers:n,trafficLimit:e.trafficLimit}));if(r||!a)throw _({type:vI.UploadPartCopyFailed}),r;return y(v.completeMultipartUploadSucceed),_({type:vI.UploadPartCopySucceed,copyPartInfo:{partNumber:0,copySourceRangeStart:0,copySourceRangeEnd:0}}),_({type:vI.CompleteMultipartUploadSucceed}),{...a,data:{ETag:a.headers.etag||``,Bucket:c,Key:l,Location:`http${this.opts.secure?`s`:``}://${c}.${this.opts.endpoint}/${l}`,VersionID:a.headers[`x-tos-version-id`],HashCrc64ecma:a.headers[`x-tos-hash-crc64ecma`]}}})():(async()=>{let t=null,r=0;if(await Promise.all(Array.from({length:e.taskNum||1}).map(async()=>{for(;;){let a=r++;if(a>=d.length)return;let o=d[a];try{let t=nF(e.srcBucket,e.srcKey);e.srcVersionId&&(t+=`?versionId=${e.srcVersionId}`);let r=`bytes=${o.offset}-${o.offset+o.partSize-1}`,a={...e.headers,"x-tos-copy-source":t,"x-tos-copy-source-if-match":i,"x-tos-copy-source-range":r};o.partSize||delete a[`x-tos-copy-source-range`];let{data:s}=await gI.call(this,{bucket:c,key:l,uploadId:u,partNumber:o.partNumber,headers:a,trafficLimit:e.trafficLimit});if(n())throw new tP(`cancel resumableCopyObject`);await S(o,{res:s})}catch(e){let r=e;if(CI(r))throw r;if(n())throw new tP(`cancel resumableCopyObject`);t||=r,await S(o,{err:r})}}})),t)throw t;let a=(g().parts_info||[]).map(e=>({eTag:e.etag,partNumber:e.part_number}
349)),[o,s]=await fP(EF.call(this,{bucket:c,key:l,uploadId:u,parts:a}));if(o||!s)throw _({type:vI.CompleteMultipartUploadFailed}),o;_({type:vI.CompleteMultipartUploadSucceed}),y(v.completeMultipartUploadSucceed);let f=g().copy_source_object_info.hash_crc64ecma,p=s.data.HashCrc64ecma;if(this.opts.enableCRC&&f&&p&&f!==p)throw new Y(`validate file crc64 failed. Expect crc64 ${f}, actual crc64 ${p}. Please try again.`);return await x(),s})()}function CI(e){return e instanceof tP}function wI(e,t){let n=[];for(let r=0;;++r){let i=r*t,a=Math.min(t,e-i);if(n.push({offset:i,partSize:a,partNumber:r+1}),(r+1)*t>=e)break}return n}function TI(e){return[e.srcBucket,e.srcKey,e.srcVersionId,e.bucket,e.key,`copy`].filter(Boolean).join(`.`).replace(/[\\/]/g,``)}async function EI(e){let t=typeof e==`string`?{key:e}:e,n={};t.versionId&&(n.versionId=t.versionId);let r=cP(t?.headers),i=t?.response||{};return Object.keys(i).forEach(e=>{let t=i[e];t!=null&&(n[`response-${e}`]=t)}),this._fetchObject(e,`GET`,n,r,void 0,{axiosOpts:{responseType:`arraybuffer`}})}var DI=[`blob`];function OI(e){let t=`node`,n=[];if(t=`browser`,n=DI,!n.includes(e))throw new Y(`The value of \`dataType\` only supports \`${n.join(` | `)}\` in ${t} environment`)}async function kI(e){let t=typeof e==`string`?{key:e}:e,n=cP(t.headers);t.headers=n;let r=t.dataType||`stream`;t.dataType=r,OI(r);let i={},a=t?.response||{};if(Object.keys(a).forEach(e=>{let t=a[e];t!=null&&(i[`response-${e}`]=t)}),wP(t,i,[`versionId`,`process`,`saveBucket`,`saveObject`,`responseCacheControl`,`responseContentDisposition`,`responseContentEncoding`,`responseContentLanguage`,`responseContentType`,`responseExpires`]),CP(t,[`ifMatch`,`ifModifiedSince`,`ifNoneMatch`,`ifUnmodifiedSince`,`ssecAlgorithm`,`ssecKey`,`ssecKeyMD5`,`range`,`trafficLimit`]),t.range==null&&(t.rangeStart!=null||t.rangeEnd!=null)){let e=`bytes=${t.rangeStart==null?``:`${t.rangeStart}`}-${t.rangeEnd==null?``:`${t.rangeEnd}`}`;n.range=n.range??e}let o=0,s=-1,{dataTransferStatusChange:c,progress:l}=t,u=(e,t=0)=>{if(t<0||!c&&!l)return;o+=t,c?.({type:e,rwOnceBytes:t,consumedBytes:o,totalBytes:s});let n=s<0?0:s===0?+(e===iF.Succeed):o/s;n===1?e===iF.Succeed&&l?.(n):l?.(n)};u(iF.Started);let[d,f]=await fP(this._fetchObject(e,`GET`,i,n,void 0,{axiosOpts:{responseType:`arraybuffer`,onDownloadProgress:e=>{s=e.total,u(iF.Rw,e.loaded-o)}}}));if(d||!f)throw u(iF.Failed),d;let p=f.headers,m=f.data;s=+(p[`content-length`]||0),r===`blob`&&(m=new Blob([f.data],{type:p[`content-type`]})),u(iF.Succeed);let h={...f,data:{content:m,etag:p.etag||``,lastModified:p[`last-modified`]||``,hashCrc64ecma:p[`x-tos-hash-crc64ecma`]||``,ReplicationStatus:p[KP.HeaderReplicationStatus]}},g=rF(p);return g&&(h.data.RestoreInfo=g),h}async function AI(e){throw new Y(`getObjectToFile doesn't support in browser environment`)}var jI;(function(e){e[e.CreateTempFileSucceed=1]=`CreateTempFileSucceed`,e[e.CreateTempFileFailed=2]=`CreateTempFileFailed`,e[e.DownloadPartSucceed=3]=`DownloadPartSucceed`,e[e.DownloadPartFailed=4]=`DownloadPartFailed`,e[e.DownloadPartAborted=5]=`DownloadPartAborted`,e[e.RenameTempFileSucceed=6]=`RenameTempFileSucceed`,e[e.RenameTempFileFailed=7]=`RenameTempFileFailed`})(jI||={});async function MI(e){throw new Y("`downloadFile` is not supported in browser environment")}var NI={algorithm:`tos-algorithm`,expiration:`tos-expiration`,signame:`tos-signame`,signature:`tos-signature`,v4_algorithm:`X-Tos-Algorithm`,v4_credential:`X-Tos-Credential`,v4_date:`X-Tos-Date`,v4_expires:`X-Tos-Expires`,v4_signedHeaders:`X-Tos-SignedHeaders`,v4_security_token:`X-Tos-Security-Token`,v4_signature:`X-Tos-Signature`,v4_content_sha:`X-Tos-Content-Sha256`,v4_policy:`X-Tos-Policy`};function PI(e){return!(e&&e!==80&&e!==443)}var FI=`request`,II=class{constructor(e,t){this.options=void 0,this.credentials=void 0,this.signature=(e,t,n)=>{n||=this.credentials;let r=[],i=e.datetime,a=this.credentialString(i);return r.push(this.options.algorithm+` Credential=`+n.GetAccessKey()+`/`+a),r.push(`SignedHeaders=`+this.signedHeaders(e)),r.push(`Signature=`+this.authorization(e,n,0)),r.join(`, `)},this.signatureHeader=(e,t,n)=>{e.datetime=this.getDateTime();let r=new Map;e.headers||={},e.headers.host=`${e.host}`,PI(e.port)||(e.headers.host+=`:`+e.port),e.endpoints&&(e.headers.host=`${this.options.bucket}.${e.endpoints}`),r.set(`host`,e.headers.host),r.set(`x-tos-date`,e.datetime),r.set(`x-tos-content-sha256`,this.hexEncodedBodyHash()),this.options.securityToken&&r.set(`x-tos-security-token`,this.options.securityToken),r.forEach((t,n)=>{n.startsWith(`x-tos`)&&(e.headers[n]=t)}),e.path=this.getEncodePath(e.path);let i=this.signature(e,0,n);return r.set(`authorization`,i),r},this.gnrCopySig=(e,t)=>
349({key:``,value:``}),this.getSignature=(e,t)=>({key:``,value:``}),this.getSignatureQuery=(e,t)=>{e.datetime=this.getDateTime(),e.headers||={},e.headers.host=`${e.host}`,PI(e.port)||(e.headers.host+=`:`+e.port),e.path=this.getEncodePath(e.path),e.endpoints&&(e.headers.host=`${this.options.bucket}.${e.endpoints}`),e.headers[NI.v4_date]=e.datetime;let n=this.credentialString(e.datetime),r={...e.query||{},[NI.v4_algorithm]:this.options.algorithm,[NI.v4_content_sha]:this.hexEncodedBodyHash(),[NI.v4_credential]:this.credentials.GetAccessKey()+`/`+n,[NI.v4_date]:e.datetime,[NI.v4_expires]:``+t,[NI.v4_signedHeaders]:this.signedHeaders(e)};return this.options.securityToken&&(r[NI.v4_security_token]=this.options.securityToken),e.query=sP(r),r[NI.v4_signature]=this.authorization(e,this.credentials,t),r},this.getSignaturePolicyQuery=(e,t)=>{e.datetime=this.getDateTime();let n=this.credentialString(e.datetime),r={[NI.v4_algorithm]:this.options.algorithm,[NI.v4_credential]:this.credentials.GetAccessKey()+`/`+n,[NI.v4_date]:e.datetime,[NI.v4_expires]:``+t,[NI.v4_policy]:SF(xF(JSON.stringify(e.policy),`utf-8`),`base64`)};return this.options.securityToken&&(r[NI.v4_security_token]=this.options.securityToken),e.query=sP(r),r[NI.v4_signature]=this.authorization(e,this.credentials,t),r},this.hexEncodedBodyHash=()=>`UNSIGNED-PAYLOAD`,this.authorization=(e,t,n)=>e.datetime?vF(this.getSigningKey(t,e.datetime.substr(0,8)),this.stringToSign(e.datetime,e),`hex`):``,this.getDateTime=()=>new Date(new Date().toUTCString()).toISOString().replace(/\..+/,``).replace(/-/g,``).replace(/:/g,``)+`Z`,this.credentialString=e=>this.createScope(e.substr(0,8),this.options.region,this.options.serviceName),this.createScope=(e,t,n)=>[e.substr(0,8),t,n,FI].join(`/`),this.getSigningKey=(e,t)=>vF(vF(vF(vF(e.GetSecretKey(),t),this.options.region),this.options.serviceName),FI),this.stringToSign=(e,t)=>{if(!this.options.algorithm)return``;let n=[];n.push(this.options.algorithm),n.push(e),n.push(this.credentialString(e));let r=`policy`in t?this.canonicalStringPolicy(t):this.canonicalString(t);return n.push(this.hexEncodedHash(r)),n.join(` 350`)},this.hexEncodedHash=e=>yF(e,`hex`),this.canonicalString=e=>{let t=[];return t.push(e.method),t.push(e.path),t.push(this.getEncodePath(e.query,!1)),t.push(this.canonicalHeaders(e)+` 351`),t.push(this.signedHeaders(e)),t.push(this.hexEncodedBodyHash()),t.join(` 352`)},this.canonicalStringPolicy=e=>{let t=[];return t.push(this.getEncodePath(e.query,!1)),t.push(this.hexEncodedBodyHash()),t.join(` 353`)},this.canonicalHeaders=e=>{let t=[],n=RI(e.headers);for(let r of n){let n=e.headers[r];r=r.toLowerCase(),t.push(r+`:`+this.canonicalHeaderValues(n.toString()))}return t.join(` 354`)},this.canonicalHeaderValues=e=>e.replace(/\s+/g,` `).replace(/^\s+|\s+$/g,``),this.signedHeaders=e=>{let t=[],n=RI(e.headers);for(let e of n)e=e.toLowerCase(),t.push(e);return t.sort().join(`;`)},this.options=e,this.credentials=t}getEncodePath(e,t=!0){if(!e)return``;let n=e;return t&&(n=e.replace(/%2F/g,`/`)),n=n.replace(/\(/g,`%28`),n=n.replace(/\)/g,`%29`),n=n.replace(/!/g,`%21`),n=n.replace(/\*/g,`%2A`),n=n.replace(/\'/g,`%27`),n}},LI=class{constructor(e,t,n){this.securityToken=void 0,this.secretAccessKey=void 0,this.accessKeyId=void 0,this.accessKeyId=n,this.secretAccessKey=t,this.securityToken=e}GetAccessKey(){return this.accessKeyId}GetSecretKey(){return this.secretAccessKey}};function RI(e){let t=[];return Object.keys(e||{}).forEach(n=>{(n===`host`||n.startsWith(`x-tos-`))&&e[n]!=null&&t.push(n)}),t.sort()}var zI=`2.9.1`,BI=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=`;function VI(e){let t=String(e),n,r,i=0,a=BI,o=``;for(;t.charAt(i|0)||(a=`=`,i%1);o+=a.charAt(63&n>>8-i%1*8)){if(r=t.charCodeAt(i+=3/4),r>255)throw Error(`'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.`);n=n<<8|r}return o}var HI=`wexin`;function UI(){switch(!0){case typeof wx==`object`:return HI=`wexin`,wx.request.bind(wx);case typeof swan==`object`:return HI=`baidu`,swan.request.bind(swan);case typeof dd==`object`:return HI=`dd`,dd.httpRequest.bind(dd);case typeof my==`object`:return HI=`alipay`,(my.request||my.httpRequest).bind(my);default:return wx.request.bind(wx)}}function WI(e,t,n){let r=e.header||e.headers,i=e.statusCode||e.status,a=``;return i===200?a=`OK`:i===400&&(a=`Bad Request`),{data:e.data,status:i,statusText:a,headers:r,config:t,request:n}}function GI(e,t,n){switch(HI){case`wexin`:e.errMsg.indexOf(`request:fail abort`)===-1?e.errMsg.indexOf(`timeout`)===-1?t((0,ZN.default)(`Network Error`,n,null,``)):t((0,ZN.default)(`timeout of `+n.timeout+`ms exceeded`,n,`ECONNABORTED`,``)):t((0,ZN.default)(`Request aborted`,n,`ECONNABORTED`,``));break;case`dd`:case`alipay`:[14,19].includes(e.error)?t((0,ZN.default)(`Request aborted`,n,`ECONNABORTED`,``,e)):[13].includes(e.error)?t((0,ZN.default)(`timeout of `+n.timeout+`ms exceeded`,n,`ECONNABORTED`,``,e)):t((0,ZN.default)(`Network Error`,n,null,``,e));break;case`baidu`:t((0,ZN.default)(`Network Error`,n,null,``));break}}function KI(e){return[`alipay`,`dd`].includes(HI)&&(e.headers=e.header,delete e.header,HI===`dd`&&e.method!==`GET`&&e.headers?.[`Content-Type`]===`application/json`&&Object.prototype.toString.call(e.data)===`[object Object]`&&(e.data=JSON.stringify(e.data))),e}var qI=e=>{try{return typeof e==`string`&&e.length&&(e=JSON.parse(e))&&Object.prototype.toString.call(e)===`[object Object]`}catch{return!1}};function JI(e,{transformRequestOption:t=e=>e}={}){let n=UI();return new Promise((r,i)=>{let a,o=e.data,s=e.headers,c={method:e.method&&e.method.toUpperCase()||`GET`,url:(0,YN.default)((0,XN.default)(e.baseURL,e.url),e.params,e.paramsSerializer),timeout:e.timeout,success:t=>{(0,JN.default)(r,i,WI(t,e,c))},fail:t=>{GI(t,i,e)},complete(){a=void 0}};if(e.auth){let[t,n]=[e.auth.username||``,e.auth.password||``];s.Authorization=`Basic `+VI(t+`:`+n)}qN.default.forEach(s,function(e,t){let n=t.toLowerCase();(o===void 0&&n===`content-type`||n===`referer`)&&delete s[t]}),c.header=s,e.responseType&&(c.responseType=e.responseType),e.cancelToken&&e.cancelToken.promise.then(function(e){a&&=(a.abort(),i(e),void 0)}),qI(o)&&(o=JSON.parse(o)),o!==void 0&&(c.data=o),a=n(t(KI(c)))})}var YI=class{constructor(e){this.opts=void 0,this.axiosInst=void 0,this.userAgent=void 0,this.httpAgent=void 0,this.httpsAgent=void 0,this.getObjectPath=e=>{let t=typeof e!=`string`&&e.bucket||this.opts.bucket,n=typeof e==`string`?e:e.key;if(!t)throw new Y(`Must provide bucket param`);return`/${t}/${encodeURIComponent(n)}`},this.setObjectContentTypeHeader=(e,t)=>{if(t[`content-type`]!=null)return;let n=YP,r=JP(e);this.opts.autoRecognizeContentType&&(n=XP(r)||n),n&&(t[`content-type`]=n)},this.getNormalDataFromError=EP,this.opts=this.normalizeOpts(e),this.userAgent=this.getUserAgent(),this.axiosInst=uF(this.opts.maxRetryCount)}normalizeOpts(e){[`accessKeyId`,`accessKeySecret`,`stsToken`,`region`,`endpoint`].forEach(t=>{let n=e[t];typeof n==`string`&&(e[t]=n.trim())});let t=[`accessKeyId`,`accessKeySecret`,`region`].filter(t=>!e[t]).join(`, `);if(t)throw new Y(`lack params: ${t}.`);let n=e.endpoint||uP(e.region);
354if(!n)throw new Y(`the value of param region is invalid, correct values are cn-beijing, cn-nantong etc.`);if([`tos-s3-cn-beijing.volces.com`,`tos-s3-cn-guangzhou.volces.com`,`tos-s3-cn-shanghai.volces.com`,`tos-s3-ap-southeast-1.volces.com`].includes(n))throw new Y(`do not support s3 endpoint, please use tos endpoint.`);let r=e.secure==null?!0:!!e.secure,i=(e,t)=>e??t;if(e.enableCRC??!1)throw new Y(`not support crc in browser environment`);return{...e,endpoint:n,secure:r,enableVerifySSL:i(e.enableVerifySSL,!0),autoRecognizeContentType:i(e.autoRecognizeContentType,!0),requestTimeout:i(e.requestTimeout,12e4),connectionTimeout:i(e.connectionTimeout,1e4),maxConnections:i(e.maxConnections,1024),idleConnectionTime:i(e.idleConnectionTime,3e4),maxRetryCount:i(e.maxRetryCount,3),enableCRC:e.enableCRC??!1,requestAdapter:XI()}}getUserAgent(){return`ve-tos-browserjs-sdk/v${zI}`}async fetch(e,t,n,r,i,a){let o=a?.handleResponse||(e=>e.data),s=a?.needMd5||!1;if(i&&s){let e=bF(JSON.stringify(i),`base64`);r[`content-md5`]=e}let[c,l]=a!=null&&a.subdomainBucket&&this.opts.forcePathStyle?[this.opts.endpoint,`/${a.subdomainBucket}${t}`]:a!=null&&a.subdomainBucket&&!this.opts.isCustomDomain?/^(\d|:)/.test(this.opts.endpoint)?[this.opts.endpoint,`/${a.subdomainBucket}${t}`]:[`${a?.subdomainBucket}.${this.opts.endpoint}`,t]:[this.opts.endpoint,t];t=l,r=lP(r);let u={endpoints:void 0,bucket:``,method:e,headers:{...r},path:t,query:sP(n),host:c},d=new LI(this.opts.stsToken,this.opts.accessKeySecret,this.opts.accessKeyId),f=new II({algorithm:`TOS4-HMAC-SHA256`,region:this.opts.region,serviceName:a?.serviceName||`tos`,bucket:``,securityToken:this.opts.stsToken},d),p=f.signatureHeader(u),m={...r},h={method:e,baseURL:`http${this.opts.secure?`s`:``}://${c}`,url:t,params:n,headers:m,data:i||``};p.forEach((e,t)=>{h.headers[t]=e});let g=dP(this.opts.proxy);if(g!=null&&g.url&&!this.opts.proxyHost)h.baseURL=g.url,g!=null&&g.needProxyParams&&(h.params[`x-proxy-tos-host`]=c,delete m.host);else if(this.opts.proxyHost){if(!this.opts.proxyPort)throw new Y("The `proxyPort` is required if `proxyHost` is truly.");h.proxy={host:this.opts.proxyHost,port:this.opts.proxyPort,protocol:`http`}}m[`user-agent`]=this.userAgent,this.opts.requestTimeout>0&&this.opts.requestTimeout!==1/0&&(h.timeout=this.opts.requestTimeout);try{let e={...h};delete e.httpAgent,delete e.httpsAgent,nP(`reqOpts: `,e);let t=await this.axiosInst({maxBodyLength:1/0,maxContentLength:1/0,adapter:this.opts.requestAdapter,...h,...a?.axiosOpts||{},[oF]:{signOpt:u,sigInst:f}});return{data:o(t),statusCode:t.status,headers:t.headers,requestId:t.headers[`x-tos-request-id`],id2:t.headers[`x-tos-id-2`]}}catch(e){var _,v,y,b;if(FN.default.isAxiosError(e)&&((_=e.response)!=null&&(v=_.headers)!=null&&v[`x-tos-request-id`]||(y=e.response)!=null&&(b=y.data)!=null&&b.requestId)){let t=e.response;throw nP(`TosServerError response: `,t),new $N(t)}throw nP(`err: `,e),e}}async fetchBucket(e,t,n,r,i,a){let o=e||this.opts.bucket;if(!o)throw new Y(`Must provide bucket param`);return jP(o,this.opts.isCustomDomain),this.fetch(t,`/`,n,r,i,{...a,subdomainBucket:o})}async _fetchObject(e,t,n,r,i,a){let o=typeof e!=`string`&&e.bucket||this.opts.bucket,s=typeof e==`string`?e:e.key;if(!o)throw new Y(`Must provide bucket param`);return jP(o,this.opts.isCustomDomain),ZP(s),this.fetch(t,`/${encodeURIComponent(s)}`,n,r,i,{...a,subdomainBucket:o})}getSignatureQuery(e){let t=new LI(this.opts.stsToken,this.opts.accessKeySecret,this.opts.accessKeyId),n=new II({algorithm:`TOS4-HMAC-SHA256`,region:this.opts.endpoint,serviceName:`tos`,bucket:e.bucket,securityToken:this.opts.stsToken},t);return`policy`in e?n.getSignaturePolicyQuery({policy:e.policy},e.expires):n.getSignatureQuery({method:e.method,path:e.path,endpoints:e.subdomain?e.endpoint:void 0,host:e.endpoint,query:e.query},e.expires)}normalizeBucketInput(e){return typeof e==`string`?{bucket:e}:e}normalizeObjectInput(e){return typeof e==`string`?{key:e}:e}};function XI(){if(!(typeof window<`u`&&window.location!==void 0))switch(!0){case typeof wx<`u`:case typeof swan<`u`:case typeof dd<`u`:case typeof my<`u`:return JI;case typeof uni<`u`:return QN.default;default:return}}async function ZI(e={}){let{bucket:t,...n}=e,r=await this.fetchBucket(e.bucket,`GET`,aP(n),{}),i=rP(r.data);return i(`CommonPrefixes`),i(`Contents`),i(`Versions`),i(`DeleteMarkers`),r}async function QI(e={}){let{bucket:t,...n}=e,r=await this.fetchBucket(e.bucket,`GET`,aP({versions:``,...n}),{}),i=rP(r.data);return i(`CommonPrefixes`),i(`Versions`),i(`DeleteMarkers`),r}var $I=1e3;async function eL(e={}){let{listOnlyOnce:t=!1}=e,n;if(e.maxKeys||=$I,t)n=await tL.call(this,e);else{let t=e.maxKeys,r={...e,maxKeys:t};for(;;){let e=await tL.call(this,r);if(n==null?n=e:(n={...e,data:n.data}
354,n.data.KeyCount+=e.data.KeyCount,n.data.IsTruncated=e.data.IsTruncated,n.data.NextContinuationToken=e.data.NextContinuationToken,n.data.Contents=n.data.Contents.concat(e.data.Contents),n.data.CommonPrefixes=n.data.CommonPrefixes.concat(e.data.CommonPrefixes)),!e.data.IsTruncated||n.data.KeyCount>=t)break;r.continuationToken=e.data.NextContinuationToken,r.maxKeys-=e.data.KeyCount}}return n}async function tL(e){let{bucket:t,...n}=e,r=await this.fetchBucket(e.bucket,`GET`,{"list-type":2,...aP(n)},{}),i=rP(r.data);return i(`CommonPrefixes`),i(`Contents`),r}var nL=class extends YI{modifyAxiosInst(){this.axiosInst.interceptors.request.use(e=>{let t=e.headers||{};return delete t.authorization,t.host=this.parsedPolicyUrlVal.host,e.baseURL=this.parsedPolicyUrlVal.origin,e.paramsSerializer=e=>{let t=TP(e);return[this.parsedPolicyUrlVal.search,t].filter(e=>e.trim()).join(`&`)},e})}constructor(e){super({...e,bucket:`fake-bucket`,region:`fake-region`,accessKeyId:`fake-accessKeyId`,accessKeySecret:`fake-accessKeySecret`,endpoint:`fake-endpoint.com`}),this.shareLinkClientOpts=void 0,this.parsedPolicyUrlVal=void 0,this.headObject=hI,this.getObjectV2=kI,this.listObjects=ZI,this.listObjectsType2=eL,this.listObjectVersions=QI,this.downloadFile=MI,this.shareLinkClientOpts=e,this.parsedPolicyUrlVal=this.initParsedPolicyUrlVal(),this.modifyAxiosInst()}initParsedPolicyUrlVal(){let e=this.shareLinkClientOpts.policyUrl.match(/(https?:\/\/(?:[^@]+@)?([^/?]+))[^?]*\?(.+)/);if(!e)throw new Y("the `policyUrl` param is invalid");return{origin:e[1],host:e[2],search:e[3]}}};async function rL(e={}){let t={};e!=null&&e.projectName&&CP({...e,headers:t},[`projectName`]);let n=await this.fetch(`GET`,`/`,{},t);return rP(n.data)(`Buckets`),n}async function iL(e){let t=e.bucket||this.opts.bucket;if(t){if(t.length<3||t.length>63)throw new Y(`invalid bucket name, the length must be [3, 63]`);if(!/^([a-z]|-|\d)+$/.test(t))throw new Y(`invalid bucket name, the character set is illegal`);if(/^-/.test(t)||/-$/.test(t))throw new Y(`invalid bucket name, the bucket name can be neither starting with '-' nor ending with '-'`)}let n=e.headers=cP(e.headers);return CP(e,[`acl`,`grantFullControl`,`grantRead`,`grantReadAcp`,`grantWrite`,`grantWriteAcp`,`storageClass`,`azRedundancy`,`bucketType`,`tagging`]),e!=null&&e.projectName&&CP(e,[`projectName`]),await this.fetchBucket(e.bucket,`PUT`,{},n)}async function aL(e){return this.fetchBucket(e,`DELETE`,{},{})}async function oL(e){return this.fetchBucket(e,`HEAD`,{},{},void 0,{handleResponse:e=>({...e.headers,ProjectName:e.headers[KP.HeaderProjectName]})})}async function sL(e){if(!e)throw new Y(`input is required`);let{bucket:t}=e;jP(t,this.opts.isCustomDomain);try{return(await oL.call(this,t)).statusCode===200}catch(e){if(e instanceof $N&&e.ec===`0006-00000001`)return!1;throw e}}async function cL(e){let{bucket:t,storageClass:n}=e;return this.fetchBucket(t,`PUT`,{storageClass:``},{"x-tos-storage-class":n})}async function lL(e){let{bucket:t}=e;return this.fetchBucket(t,`GET`,{bucketInfo:``},{})}async function uL(e){let t={};return e.acl&&(t[`x-tos-acl`]=e.acl),await this.fetchBucket(e.bucket,`PUT`,{acl:``},t,e.aclBody,{needMd5:!0})}async function dL(e){let t=await this.fetchBucket(e,`GET`,{acl:``},{});return rP(t.data)(`Grants`),t}async function fL(e){let{bucket:t,TLS:n}=e;return await this.fetchBucket(t,`PUT`,{httpsConfig:``},{},{TLS:n})}async function pL(e){return await this.fetchBucket(e,`GET`,{httpsConfig:``},{})}async function mL(e){return hL.call(this,e)}async function hL(e){e=this.normalizeObjectInput(e);let t=e.headers=cP(e.headers);CP(e,`contentLength.contentMD5.contentSHA256.cacheControl.contentDisposition.contentEncoding.contentLanguage.contentType.expires.acl.grantFullControl.grantRead.grantReadAcp.grantWrite.grantWriteAcp.ssecAlgorithm.ssecKey.ssecKeyMD5.serverSideEncryption.serverSideDataEncryption.meta.websiteRedirectLocation.storageClass.trafficLimit.callback.callbackVar.forbidOverwrite.ifMatch`.split(`.`)),this.setObjectContentTypeHeader(e,t);let n=QP(e.body,t),r=n!=null;!r&&(e.dataTransferStatusChange||e.progress)&&console.warn("Don't get totalSize of putObject's body, the `dataTransferStatusChange` and `progress` callback will not trigger. You can use `putObjectFromFile` instead");let i=0,{dataTransferStatusChange:a,progress:o}=e,s=(e,t=0)=>{if(!r||t<0||!a&&!o)return;i+=t,a?.({type:e,rwOnceBytes:t,consumedBytes:i,totalBytes:n});let s=n===0?+(e===iF.Succeed):i/n;s===1?e===iF.Succeed&&o?.(s):o?.(s)},c=await tF({body:e.body,dataTransferCallback:e=>s(iF.Rw,e),makeRetryStream:e.makeRetryStream,enableCRC:this.opts.enableCRC,rateLimiter:e.rateLimiter});s(iF.Started);let[l,u]=await fP((async()=>{let n=await this._fetchObject(e,`PUT`,{},t,c.body||``,{handleResponse:t=>{var n;let r={...t.headers};return(n=e)!=null&&n.callback&&t.data&&(r.CallbackResult=`${JSON.stringify(t.data)}`),r},axiosOpts:{[aF]:{beforeRetry:()=>{i=0,c.beforeRetry==null||c.beforeRetry()},makeRetryStream:c.makeRetryStream},onUploadProgress:e=>{s(iF.Rw,e.loaded-i)}}});return this.opts.enableCRC&&c.crc&&DP(c.crc,n.headers),n})());if(l||!u)throw s(iF.Failed),l;return s(iF.Succeed),u}async function gL(e){throw cP(e.headers),new Y(`putObjectFromFile doesn't support in browser environment`)}async function _L(e){let t=e.headers=cP(e.headers);return CP(e,[`acl`,`grantFullControl`,`grantRead`,`grantReadAcp`,`grantWriteAcp`,`ssecAlgorithm`,`ssecKey`,`ssecKeyMD5`,`meta`,`storageClass`]),await this._fetchObject(e,`POST`,{fetch:``},t,{URL:e.url,IgnoreSameKey:e.ignoreSameKey,ContentMD5:e.contentMD5},{needMd5:!0})}async function vL(e){let t=e.headers=cP(e.headers);return CP(e,[`acl`,`grantFullControl`,`grantRead`,`grantReadAcp`,`grantWriteAcp`,`ssecAlgorithm`,`ssecKey`,`ssecKeyMD5`,`meta`,`storageClass`]),await this._fetchObject(e,`POST`,{fetchTask:``},t,{URL:e.url,IgnoreSameKey:e.ignoreSameKey,ContentMD5:e.contentMD5,Object:e.key},{needMd5:!0})}async function yL(e){let t=await this.fetchBucket(e.bucket,`GET`,{fetchTask:``,taskId:e.taskId},{},{},{needMd5:!0});return t.data.Task&&(t.data.Task.Meta=t.data.Task.UserMeta),t}function bL(e){ZP(e),typeof e!=`string`&&e.bucket&&jP(e.bucket,e.isCustomDomain);let t=typeof e==`string`?{key:e}:e,n=t.alternativeEndpoint||this.opts.endpoint,r=!(t.alternativeEndpoint||t.isCustomDomain),i=t.bucket||this.opts.bucket||``;if(r&&!i)throw new Y(`Must provide bucket param`);let[a,o,s]=(()=>{let e=encodeURIComponent(t.key),a=t.key.split(`/`).map(e=>encodeURIComponent(e)).join(`/`);return r?[`${i}.${n}`,`/${a}`,`/${e}`]:[n,`/${a}`,`/${e}`]})(),c=t.query||{},l=(e,t)=>
354{c[e]==null&&t!=null&&(c[e]=t)},u=t.response||{};Object.keys(u).forEach(e=>{let t=e;l(`response-${aP(t)}`,u[t])}),t.versionId&&l(`versionId`,t.versionId);let d=this.getSignatureQuery({bucket:i,method:t.method||`GET`,path:s,endpoint:n,subdomain:r,expires:t.expires||1800,query:c}),f=dP(this.opts.proxy),p=`http${this.opts.secure?`s`:``}://${a}`;f!=null&&f.url&&(p=f.url.replace(/\/+$/g,``),f!=null&&f.needProxyParams&&(d[`x-proxy-tos-host`]=a));let m=Object.keys(d).map(e=>`${encodeURIComponent(e)}=${encodeURIComponent(d[e])}`).join(`&`);return`${p}${o}?${m}`}async function xL(e){if(!e)throw new Y(`input is required`);try{return(await hI.call(this,{bucket:e.bucket,key:e.key,versionId:e.versionId})).statusCode===200}catch(e){if(e instanceof $N&&e.statusCode===404)return!1;throw e}}async function SL(e){let t=typeof e==`string`?{key:e}:e,n={};return t.versionId&&(n.versionId=t.versionId),t.skipTrash&&(n.skipTrash=t.skipTrash),t.recursive&&(n.recursive=t.recursive),await this._fetchObject(e,`DELETE`,n,{},{},{handleResponse:e=>e.headers})}async function CL(e){return e.headers=e.headers||{},CP(e,[`recursiveMkdir`,`forbidOverwrite`]),this._fetchObject(e,`PUT`,{rename:``,name:e.newKey},e.headers,``)}async function wL(e){let t={Quiet:e.quiet,Objects:e.objects.map(e=>({Key:e.key,VersionId:e.versionId}))},n={delete:``};e.skipTrash&&(n.skipTrash=e.skipTrash),e.recursive&&(n.recursive=e.recursive);let r=await this.fetchBucket(e.bucket,`POST`,n,{},t),i=rP(r.data);return i(`Deleted`),i(`Error`),r}async function TL(e){let t=typeof e==`string`?{key:e}:e,n={acl:``};t.versionId&&(n.versionId=t.versionId);let r=await this._fetchObject(e,`GET`,n,{});return rP(r.data)(`Grants`),r}async function EL(e){let t=e.headers=cP(e.headers),n={acl:``};return e.versionId&&(n.versionId=e.versionId),CP(e,[`acl`]),this._fetchObject(e,`PUT`,n,t,e.aclBody)}async function DL(e){return this._fetchObject(e,`DELETE`,{uploadId:e.uploadId},{})}async function OL(e={}){let{bucket:t,...n}=e,r=await this.fetchBucket(e.bucket,`GET`,{uploads:``,...aP(n)},{}),i=rP(r.data);return i(`Uploads`),i(`CommonPrefixes`),r}async function kL(e){let t=e=this.normalizeObjectInput(e),n=e.headers=cP(e.headers);CP(e,[`contentLength`,`cacheControl`,`contentDisposition`,`contentEncoding`,`contentLanguage`,`contentType`,`expires`,`acl`,`grantFullControl`,`grantRead`,`grantReadAcp`,`grantWriteAcp`,`meta`,`websiteRedirectLocation`,`storageClass`,`trafficLimit`]),this.setObjectContentTypeHeader(e,n);let r=QP(e.body,n),i=r!=null;if(!i)throw new Y(`appendObject needs to know the content length in advance`);if(n[`content-length`]=n[`content-length`]||`${r}`,this.opts.enableCRC&&e.offset!==0&&!e.preHashCrc64ecma)throw new Y(`must provide preHashCrc64ecma if enableCRC is true and offset is non-zero`);let a=0,{dataTransferStatusChange:o,progress:s}=e,c=(e,t=0)=>{if(!i||t<0||!o&&!s)return;a+=t,o?.({type:e,rwOnceBytes:t,consumedBytes:a,totalBytes:r});let n=r===0?+(e===iF.Succeed):a/r;n===1?e===iF.Succeed&&s?.(n):s?.(n)},l=await tF({body:e.body,dataTransferCallback:e=>c(iF.Rw,e),makeRetryStream:void 0,enableCRC:this.opts.enableCRC,rateLimiter:e.rateLimiter});c(iF.Started);let[u,d]=await fP((async()=>{let i=await this._fetchObject(e,`POST`,{append:``,offset:t.offset},n,l.body||``,{handleResponse:e=>({...e.headers,nextAppendOffset:+e.headers[`x-tos-next-append-offset`],hashCrc64ecma:e.headers[`x-tos-hash-crc64ecma`]}),axiosOpts:{[aF]:{beforeRetry:()=>{a=0,l.beforeRetry==null||l.beforeRetry()},makeRetryStream:l.makeRetryStream},onUploadProgress:e=>{c(iF.Rw,e.loaded-a)}}});return this.opts.enableCRC&&l.crc&&DP(BP(t.preHashCrc64ecma||`0`,l.crc.getCrc64(),r),i.headers),i})());if(u||!d)throw c(iF.Failed),u;return c(iF.Succeed),d}async function AL(e){let t=typeof e==`string`?{key:e}:e,n=t.headers=cP(t.headers);CP(t,[`cacheControl`,`contentDisposition`,`contentEncoding`,`contentLanguage`,`contentType`,`expires`,`meta`]);let r={metadata:``};return t.versionId&&(r.versionId=t.versionId),this._fetchObject(e,`POST`,r,n)}async function jL(e){ZP(e),e=this.normalizeObjectInput(e);let{expiresIn:t=3600,key:n}=e,r=e.bucket||this.opts.bucket,i={...e.fields},a=[...e.conditions||[]];if(!r)throw new Y(`Must provide bucket param`);let o=this.opts.accessKeySecret,s=ML({date:new Date(new Date().valueOf()+t*1e3),type:`ISO`}),c=ML(),l=c.substring(0,8),u=`request`,d=vF(vF(vF(vF(o,l),this.opts.region),`tos`),u),f={key:n,"x-tos-algorithm":`TOS4-HMAC-SHA256`,"x-tos-date":c,"x-tos-credential":[this.opts.accessKeyId,l,this.opts.region,`tos`,u].join(`/`)};this.opts.stsToken&&(f[`x-tos-security-token`]=this.opts.stsToken),a.push({bucket:r}),Object.entries(f).forEach(([e,t])=>{i[e]=t}
354),Object.entries(i).forEach(([e,t])=>{a.push({[e]:`${t}`})});let p=SF(xF(JSON.stringify({expiration:s,conditions:a}),`utf-8`),`base64`),m=vF(d,p,`hex`);return i.policy=p,i[`x-tos-signature`]=m,i}function ML(e){let{date:t=new Date,type:n=`Z`}=e||{};return n===`ISO`?t.toISOString():t.toISOString().replace(/\..+/,``).replace(/-/g,``).replace(/:/g,``)+`Z`}var NL={getBucketCustomDomain:!0,getBucketIntelligenttiering:!0,getBucketInventory:!0,listBucketInventory:!0,getBucketMirrorBack:!0,getBucketNotification:!0,getBucketPolicy:!0,getBucketRealTimeLog:!0,getBucketReplication:!0,getBucketTagging:!0,getBucketWebsite:!0};function PL(e,t){let{enableCatchEmptyServerError:n,methodKey:r,defaultResponse:i}=t;if(e instanceof $N){if(n){if(e.statusCode===404)return EP(i,e)}else if(n===void 0&&e.statusCode===404&&NL[r])return EP(i,e)}throw e}async function FL(e){return(this.opts.enableOptimizeMethodBehavior||this.opts.enableOptimizeMethodBehavior===void 0)&&!e.policy.Statement.length?LL.call(this,e.bucket):await this.fetchBucket(e.bucket,`PUT`,{policy:``},{},e.policy,{needMd5:!0})}async function IL(e){try{let t=await this.fetchBucket(e,`GET`,{policy:``},{});return t.data.Statement.forEach(e=>{let t=rP(e);Object.keys(e.Condition||{}).forEach(n=>{Object.keys(e.Condition[n]).forEach(e=>{t(`Condition["${n}"]["${e}"]`)})})}),t}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketPolicy`,defaultResponse:{Statement:[],Version:`2012-10-17`}})}}async function LL(e){return this.fetchBucket(e,`DELETE`,{policy:``},{})}async function RL(e){return this.fetchBucket(e,`GET`,{versioning:``},{})}async function zL(e){return this.fetchBucket(e.bucket,`PUT`,{versioning:``},{},{Status:e.status})}function BL(e){let t=VL.call(this,e);HL(e.conditions);let n=e.alternativeEndpoint||(e.isCustomDomain?this.opts.endpoint:`${t.bucket}.${this.opts.endpoint}`),r=`http${this.opts.secure?`s`:``}://${n}`,i=gP(this.getSignatureQuery({bucket:t.bucket,expires:t.expires,policy:{conditions:t.conditions}}));return{getSignedURLForList:e=>`${r}?${[i,gP(e)].filter(Boolean).join(`&`)}`,getSignedURLForGetOrHead:(e,t)=>{let n=[i,gP(t)].filter(Boolean).join(`&`);return`${r}/${e.split(`/`).map(e=>encodeURIComponent(e)).join(`/`)}?${n}`},signedQuery:i}}function VL(e){let t=e.bucket||this.opts.bucket;if(!t)throw new Y(`Must provide bucket param`);HL(e.conditions);let n=e.conditions.map(e=>[e.operator||`eq`,`$key`,e.value]);return n.push([`eq`,`$bucket`,t]),{bucket:t,expires:e.expires||3600,conditions:n}}function HL(e){if(e.length<1)throw new Y("The `conditions` field of `PreSignedPolicyURLInput` must has one item at least");for(let t of e){if(t.key!==`key`)throw new Y("The `key` field of `PolicySignatureCondition` must be `'key'`");if(t.operator&&t.operator!==`eq`&&t.operator!==`starts-with`)throw new Y("The `operator` field of `PolicySignatureCondition` must be `'eq'` or `'starts-with'`")}}async function UL(e){let{bucket:t}=e;return this.fetchBucket(t,`GET`,{location:``},{})}async function WL(e){try{let{bucket:t}=e;return await this.fetchBucket(t,`GET`,{cors:``},{})}catch(e){return PL(e,{defaultResponse:{CORSRules:[]},enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketCORS`})}}async function GL(e){let{bucket:t,CORSRules:n}=e;return this.opts.enableOptimizeMethodBehavior&&!n.length?KL.call(this,{bucket:t}):this.fetchBucket(t,`PUT`,{cors:``},{},{CORSRules:n})}async function KL(e){let{bucket:t}=e;return this.fetchBucket(t,`DELETE`,{cors:``},{})}async function qL(e){let{bucket:t,rules:n}=e;if(this.opts.enableOptimizeMethodBehavior&&!n.length)return YL.call(this,{bucket:t});let r={};return CP({...e,headers:r},[`allowSameActionOverlap`]),this.fetchBucket(t,`PUT`,{lifecycle:``},r,{Rules:n})}async function JL(e){try{let{bucket:t}=e;return await this.fetchBucket(t,`GET`,{lifecycle:``},{},{},{handleResponse:e=>({AllowSameActionOverlap:e.headers[`x-tos-allow-same-action-overlap`],Rules:e.data.Rules})})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketLifecycle`,defaultResponse:{Rules:[]}})}}async function YL(e){let{bucket:t}=e;return this.fetchBucket(t,`DELETE`,{lifecycle:``},{})}async function XL(e){let{bucket:t,rule:n}=e;return this.fetchBucket(t,`PUT`,{encryption:``},{"Content-MD5":hF(JSON.stringify({Rule:n}),`base64`)},{Rule:n})}async function ZL(e){let{bucket:t}=e;return this.fetchBucket(t,`GET`,{encryption:``},{})}async function QL(e){let{bucket:t}=e;return this.fetchBucket(t,`DELETE`,{encryption:``},{})}var $L=`mirror`;async function eR(e){let{bucket:t,rules:n}=e;return this.opts.enableOptimizeMethodBehavior&&!n.length?nR.call(this,{bucket:t}):this.fetchBucket(t,`PUT`,{[$L]:``},{},{Rules:n})}async function tR(e){let{bucket:t}=e;try{return await this.fetchBucket(t,`GET`,{[$L]:``},{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketMirrorBack`,defaultResponse:{Rules:[]}})}}async function nR(e){let{bucket:t}=e;return this.fetchBucket(t,`DELETE`,{[$L]:``},{})}var rR=`tagging`;async function iR(e){let{tagSet:t,versionId:n}=e,r=cP({versionId:n});return this._fetchObject(e,`PUT`,{[rR]:``,...r},{},{TagSet:t})}async function aR(e){let{versionId:t}=e,n=cP({versionId:t}),r=await this._fetchObject(e,`GET`,{[rR]:``,...n},{});return rP(r.data.TagSet)(`Tags`),r}async function oR(e){let{versionId:t}=e,n=cP({versionId:t});return this._fetchObject(e,`DELETE`,{[rR]:``,...n},{})}var sR=`replication`;async function cR(e){let{bucket:t,rules:n,role:r}=e;return this.opts.enableOptimizeMethodBehavior&&!n.length?uR.call(this,{bucket:t}):this.fetchBucket(t,`PUT`,{[sR]:``},{},{Role:r,Rules:n})}async function lR(e){let{bucket:t,progress:n,ruleId:r}=e,i={[sR]:``,progress:n||``};r!=null&&(i[`rule-id`]=`${r}`);try{return await this.fetchBucket(t,`GET`,i,{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketReplication`,defaultResponse:{Rules:[],Role:``}})}}async function uR(e){let{bucket:t}=e;return this.fetchBucket(t,`DELETE`,{[sR]:``},{})}var dR=`website`;async function fR(e){let{bucket:t,...n}=e,r=oP(n);return this.fetchBucket(t,`PUT`,{[dR]:``},{},{...r})}async function pR(e){let{bucket:t}=e;try{return this.fetchBucket(t,`GET`,{[dR]:``},{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketWebsite`,defaultResponse:{RoutingRules:[]}})}}async function mR(e){let{bucket:t}=e;return this.fetchBucket(t,`DELETE`,{[dR]:``},{})}var hR=`notification`;async function gR(e){let{bucket:t,...n}=e,r=oP(n);return this.fetchBucket(t,`PUT`,{[hR]:``},{},{...r})}async function _R(e){let{bucket:t}=e;try{return await this.fetchBucket(t,`GET`,{[hR]:``},{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketNotification`,defaultResponse:{CloudFunctionConfigurations:[],RocketMQConfigurations:[]}})}}var vR=`customdomain`;async function yR(e){let{bucket:t,...n}=e,r=oP(n);return this.fetchBucket(t,`PUT`,{[vR]:``},{},{...r})}async function bR(e){try{let{bucket:t}=e;return await this.fetchBucket(t,`GET`,{[vR]:``},{})}catch(e){return PL(e,{defaultResponse:{CustomDomainRules:[]},enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketCustomDomain`})}}async function xR(e){let{bucket:t,customDomain:n}=e;return this.fetchBucket(t,`DELETE`,{customdomain:n},{})}var SR=`realtimeLog`;async function CR(e){let{bucket:t,...n}=e,r=oP(n);return this.fetchBucket(t,`PUT`,{[SR]:``},{},{...r})}async function wR(e){let{bucket:t}=e;try{return await this.fetchBucket(t,`GET`,{[SR]:``},{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketRealTimeLog`,defaultResponse:{}})}}async function TR(e){let{bucket:t}=e;return this.fetchBucket(t,`DELETE`,{[SR]:``},{})}var ER;(function(e){e.Daily=`Daily`,e.Weekly=`Weekly`,e.Once=`Once`})(ER||={});var DR;(function(e){e.All=`All`,e.Current=`Current`})(DR||={});var OR;(function(e){e.Size=`Size`,e.LastModifiedDat=`LastModifiedDate`,e.ETag=`ETag`,e.StorageClass=`StorageClass`,e.IsMultipartUploaded=`IsMultipartUploaded`,e.EncryptionStatus=`EncryptionStatus`,e.CRC64=`CRC64`,e.ReplicationStatus=`ReplicationStatus`,e.RetentionMode=`RetentionMode`,e.RetainUntilTimestamp=`RetainUntilTimestamp`,e.IntelligentTieringAccessTier=`IntelligentTieringAccessTier`})(OR||={});async function kR(e){try{return await this.fetchBucket(e.bucket,`GET`,{inventory:``,id:e.id},{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketInventory`,defaultResponse:void 0})}}async function AR(e){let t={inventory:``,...e.continuationToken?{"continuation-token":e.continuationToken}:null};try{return await this.fetchBucket(e.bucket,`GET`,t,{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`listBucketInventory`,defaultResponse:{InventoryConfigurations:[]}})}}async function jR(e){return this.fetchBucket(e.bucket,`DELETE`,{inventory:``,id:e.id},{})}function MR(e){return this.fetchBucket(e.bucket,`PUT`,{inventory:``,id:e.inventoryConfiguration.Id},{},e.inventoryConfiguration)}async function NR(e){let{accountId:t,...n}=e,r=oP(n);return await this.fetch(`POST`,`/jobs`,{},{"x-tos-account-id":t},{...r})}async function PR(e){let{accountId:t,maxResults:n=1e3,...r}=e;return await this.fetch(`GET`,`/jobs`,{maxResults:n,...r},{"x-tos-account-id":t},{},{axiosOpts:{paramsSerializer:TP}})}async function FR(e){let{accountId:t,jobId:n,priority:r}=e;return await this.fetch(`POST`,`/jobs/${n}/priority`,{priority:r},{"x-tos-account-id":t},{},{needMd5:!0})}async function IR(e){let{accountId:t,jobId:n,requestedJobStatus:r,statusUpdateReason:i}=e;return await this.fetch(`POST`,`/jobs/${n}/status`,{requestedJobStatus:r,statusUpdateReason:i},{"x-tos-account-id":t},{},{needMd5:!0})}async function LR(e){let{accountId:t,JobId:n}=e;return await this.fetch(`DELETE`,`/jobs/${n}`,{},{"x-tos-account-id":t},{})}async function RR(e){let{accountId:t,JobId:n}=e;return await this.fetch(`GET`,`/jobs/${n}`,{},{"x-tos-account-id":t},{})}async function zR(e){return await this.fetchBucket(e.bucket,`PUT`,{tagging:``},{},e.tagging,{needMd5:!0})}async function BR({bucket:e}){try{return await this.fetchBucket(e,`GET`,{tagging:``},{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketTagging`,defaultResponse:{TagSet:{Tags:[]}}})}}async function VR({bucket:e}){return this.fetchBucket(e,`DELETE`,{tagging:``},{})}async function HR(e){return await this.fetchBucket(e.bucket,`PUT`,{payByTraffic:``},{},e.payByTraffic)}async function UR({bucket:e}){return await this.fetchBucket(e,`GET`,{payByTraffic:``},{})}async function WR(e){let{bucket:t}=e;try{return await this.fetchBucket(t,`GET`,{imageStyleBriefInfo:``},{})}catch(e){if(e instanceof $N&&e.statusCode===404)return this.getNormalDataFromError({BucketName:t,ImageStyleBriefInfo:[]},e);throw e}}async function GR(e){try{return await this.fetchBucket(e,`GET`,{imageStyle:``},{})}catch(e){if(e instanceof $N&&e.statusCode===404)return this.getNormalDataFromError({ImageStyles:[]},e);throw e}}async function KR(e){try{let{bucket:t,styleName:n}=e;return await this.fetchBucket(t,`GET`,{imageStyleContent:``,styleName:n},{})}catch(e){if(e instanceof $N&&e.statusCode===404)return this.getNormalDataFromError({ImageStyles:[]},e);throw e}}async function qR(e,t){try{return await this.fetchBucket(e,`GET`,{imageStyle:``,styleName:t},{})}catch(e){if(e instanceof $N&&e.statusCode===404)return this.getNormalDataFromError(null,e);throw e}}async function JR(e){let{bucket:t,styleName:n,content:r,styleObjectPrefix:i}=e;try{return await this.fetchBucket(t,`PUT`,{imageStyle:``,styleName:n,styleObjectPrefix:i},{},{Content:r})}catch(e){if(e instanceof $N&&e.statusCode===404)return this.getNormalDataFromError(null,e);throw e}}async function YR(e){let{styleName:t,styleObjectPrefix:n,bucket:r}=e;try{return await this.fetchBucket(r,`DELETE`,{imageStyle:``,styleName:t,styleObjectPrefix:n},{})}catch(e){if(e instanceof $N&&e.statusCode===404)return this.getNormalDataFromError(null,e);throw e}}async function XR(e,t){try{return await this.fetchBucket(e,`PUT`,{originalImageProtect:``},{},t)}catch(e){if(e instanceof $N&&e.statusCode===404)return this.getNormalDataFromError(null,e);throw e}}async function ZR(e){try{return await this.fetchBucket(e,`GET`,{originalImageProtect:``},{})}catch(e){if(e instanceof $N&&e.statusCode===404)return this.getNormalDataFromError(null,e);throw e}}async function QR(e){let{bucket:t,Separator:n,SeparatorSuffix:r}=e;try{return await this.fetchBucket(t,`PUT`,{imageStyleSeparator:``},{},{Separator:n,SeparatorSuffix:r})}catch(e){if(e instanceof $N&&e.statusCode===404)return this.getNormalDataFromError(null,e);throw e}}async function $R(e){try{return await this.fetchBucket(e,`GET`,{imageStyleSeparator:``},{})}catch(e){if(e instanceof $N&&e.statusCode===404)return this.getNormalDataFromError(null,e);throw e}}async function ez(e){try{return await this.fetchBucket(e,`GET`,{intelligenttiering:``},{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketIntelligenttiering`,defaultResponse:{}})}}var tz=`rename`;async function nz(e){let{bucket:t,...n}=e,r=oP(n);return this.fetchBucket(t,`PUT`,{[tz]:``},{},{...r})}async function rz(e){let{bucket:t}=e;return await this.fetchBucket(t,`GET`,{[tz]:``},{})}async function iz(e){let{bucket:t}=e;return this.fetchBucket(t,`DELETE`,{[tz]:``},{})}async function az(e){let{bucket:t,key:n,versionId:r,...i}=e,a={restore:``};r&&(a.versionId=r);let o=oP(i);return this._fetchObject(e,`POST`,a,{},o)}async function oz(e){let{accountId:t}=e;return await this.fetch(`GET`,`/storagelens`,{},{"x-tos-account-id":t},{},{axiosOpts:{paramsSerializer:TP}})}async function sz(e){let{accountId:t,Id:n}=e;return await this.fetch(`DELETE`,`/storagelens`,{id:n},{"x-tos-account-id":t},{},{needMd5:!0})}async function cz(e){let{accountId:t,Id:n}=e;return await this.fetch(`GET`,`/storagelens`,{id:n},{"x-tos-account-id":t},{},{needMd5:!0})}async function lz(e){let{accountId:t,Id:n,...r}=e;return await this.fetch(`PUT`,`/storagelens`,{id:n},{"x-tos-account-id":t},{...r,Id:n},{needMd5:!0})}var uz=`notification_v2`;async function dz(e){let{bucket:t,...n}=e,r=oP(n);return this.fetchBucket(t,`PUT`,{[uz]:``},{},{...r})}async function fz(e){let{bucket:t}=e;try{return await this.fetchBucket(t,`GET`,{[uz]:``},{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketNotificationType2`,defaultResponse:{Rules:[]}})}}async function pz(e){return mz.call(this,e)}async function mz(e){let t=e.headers=cP(e.headers);return CP(e,[`symLinkTargetKey`,`symLinkTargetBucket`,`forbidOverwrite`,`acl`,`storageClass`,`meta`]),this._fetchObject(e,`PUT`,{symlink:``},t,void 0,{handleResponse(e){let{headers:t}=e;return{VersionID:t[`x-tos-version-id`]}}})}async function hz(e){return gz.call(this,e)}async function gz(e){let t={symlink:``};return e.versionId&&(t.versionId=e.versionId),this._fetchObject(e,`GET`,t,{},void 0,{handleResponse:e=>{let{headers:t}=e;return{VersionID:t[`x-tos-version-id`],SymlinkTargetKey:t[`x-tos-symlink-target`],SymlinkTargetBucket:t[`x-tos-symlink-bucket`],LastModified:t[`last-modified`]}}})}var _z=`transferAcceleration`;async function vz(e){let{bucket:t,...n}=e,r=oP(n);return this.fetchBucket(t,`PUT`,{[_z]:``},{},{...r})}async function yz(e){try{let{bucket:t}=e,n={};return e.getStatus&&(n[`x-tos-get-bucket-acceleration-status`]=`true`),await this.fetchBucket(t,`GET`,{[_z]:``},n)}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketTransferAcceleration`,defaultResponse:{TransferAccelerationConfiguration:{Enabled:`fal
354se`,Status:ZF.Terminated}}})}}async function bz(e){let{bucket:t,status:n}=e;return this.fetchBucket(t,`PUT`,{accessmonitor:``},{},{Status:n})}async function xz(e){try{let{bucket:t}=e;return await this.fetchBucket(t,`GET`,{accessmonitor:``},{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketAccessMonitor`,defaultResponse:{}})}}var Sz;(function(e){e.StringEquals=`StringEquals`,e.StringNotEquals=`StringNotEquals`,e.StringEqualsIgnoreCase=`StringEqualsIgnoreCase`,e.StringNotEqualsIgnoreCase=`StringNotEqualsIgnoreCase`,e.StringLike=`StringLike`,e.StringNotLike=`StringNotLike`})(Sz||={});var Cz;(function(e){e.DateEquals=`DateEquals`,e.DateNotEquals=`DateNotEquals`,e.DateLessThan=`DateLessThan`,e.DateLessThanEquals=`DateLessThanEquals`,e.DateGreaterThan=`DateGreaterThan`,e.DateGreaterThanEquals=`DateGreaterThanEquals`})(Cz||={});var wz;(function(e){e.IpAddress=`IpAddress`,e.NotIpAddress=`NotIpAddress`})(wz||={});var Tz;(function(e){e.WritesQps=`WritesQps`,e.ReadsQps=`ReadsQps`,e.ListQps=`ListQps`,e.WritesRate=`WritesRate`,e.ReadsRate=`ReadsRate`})(Tz||={});async function Ez(e){let{accountId:t}=e;return await this.fetch(`GET`,`/qospolicy`,{},{"x-tos-account-id":t},{},{})}async function Dz(e){let{accountId:t,...n}=e;return await this.fetch(`PUT`,`/qospolicy`,{},{"x-tos-account-id":t},{...n},{})}async function Oz(e){let{accountId:t}=e;return await this.fetch(`DELETE`,`/qospolicy`,{},{"x-tos-account-id":t},{},{})}async function kz(e){let{accountId:t,name:n,regions:r}=e;return await this.fetch(`POST`,`/mrap`,{name:n},{"x-tos-account-id":t},{Name:n,Regions:r},{})}async function Az(e){let{name:t,accountId:n}=e;return await this.fetch(`GET`,`/mrap`,{name:t},{"x-tos-account-id":n},{},{})}async function jz(e){let{accountId:t,...n}=e;return await this.fetch(`GET`,`/mrap`,{...n},{"x-tos-account-id":t},{},{})}async function Mz(e){let{accountId:t,alias:n}=e;return await this.fetch(`GET`,`/mrap/routes`,{alias:n},{"x-tos-account-id":t})}async function Nz(e){let{name:t,accountId:n}=e;return await this.fetch(`DELETE`,`/mrap`,{name:t},{"x-tos-account-id":n})}async function Pz(e){let{routes:t,accountId:n,alias:r}=e;return await this.fetch(`PATCH`,`/mrap/routes`,{alias:r},{"x-tos-account-id":n},{Routes:t})}async function Fz(e){let{AccountId:t,MultiRegionAccessPointAlias:n,AcceleratorId:r}=e;return await this.fetch(`PUT`,`/accelerator/${r}/mrap/${n}`,{},{"x-tos-account-id":t},{},{})}async function Iz(e){let{AccountId:t,MultiRegionAccessPointAlias:n,AcceleratorId:r}=e;return await this.fetch(`DELETE`,`/accelerator/${r}/mrap/${n}`,{},{"x-tos-account-id":t},{},{})}async function Lz(e){let{AccountId:t,AcceleratorId:n}=e;return await this.fetch(`GET`,`/accelerator/${n}/mrap`,{},{"x-tos-account-id":t},{},{})}async function Rz(e){let{BucketAccountId:t,Name:n,AccountId:r,Bucket:i,NetworkOrigin:a,VpcId:o}=e;return await this.fetch(`PUT`,`/accesspoint/${n}`,{name:``},{"x-tos-account-id":r},{BucketAccountId:t,Bucket:i,NetworkOrigin:a,VpcId:o},{})}async function zz(e){let{Name:t,AccountId:n}=e;return await this.fetch(`GET`,`/accesspoint/${t}`,{},{"x-tos-account-id":n},{},{})}async function Bz(e){let{AccountId:t,...n}=e;return await this.fetch(`GET`,`/accesspoint`,{...n},{"x-tos-account-id":t},{},{})}async function Vz(e){let{Name:t,AccountId:n}=e;return await this.fetch(`DELETE`,`/accesspoint/${t}`,{},{"x-tos-account-id":n})}async function Hz(e){let{AccountId:t,AcceleratorAccountId:n,AccessPointName:r,AcceleratorId:i}=e;return await this.fetch(`PUT`,`/accesspoint/${r}/accelerator/${i}`,{},{"x-tos-account-id":t},{AcceleratorAccountId:n},{})}async function Uz(e){let{AccountId:t,AccessPointName:n,AcceleratorId:r}=e;return await this.fetch(`DELETE`,`/accesspoint/${n}/accelerator/${r}`,{},{"x-tos-account-id":t},{},{})}async function Wz(e){let{AccountId:t,AcceleratorId:n,...r}=e;return await this.fetch(`GET`,`/accelerator/${n}/accesspoint`,{...r},{"x-tos-account-id":t},{},{})}async function Gz(e){let{AccountId:t,...n}=e;return await this.fetch(`POST`,`/accelerator`,{name:``},{"x-tos-account-id":t},{...n},{})}async function Kz(e){let{Id:t,AccountId:n}=e;return await this.fetch(`GET`,`/accelerator`,{id:t},{"x-tos-account-id":n},{},{})}async function qz(e){let{AccountId:t,...n}=e;return await this.fetch(`GET`,`/accelerator`,{...n},{"x-tos-account-id":t},{},{})}async function Jz(e){let{Id:t,AccountId:n}=e;return await this.fetch(`DELETE`,`/accelerator`,{id:t},{"x-tos-account-id":n})}async function Yz(e){let{AccountId:t,...n}=e;return await this.fetch(`GET`,`/accelerator/az`,{...n},{"x-tos-account-id":t},{},{})}async function Xz(e){let{AccountId:t,...n}=e;return await this.fetch(`POST`,`/accelerator/prefetchJob`,{acceleratorId:n.AcceleratorId},{"x-tos-account-id":t},{...n},{})}async function Zz(e){let{AccountId:t,JobId:n}=e;return await this.fetch(`GET`,`/accelerator/prefetchJob`,{jobId:n},{"x-tos-account-id":t},{},{})}async function Qz(e){let{JobId:t,AccountId:n}=e;return await this.fetch(`DELETE`,`/accelerator/prefetchJob`,{jobId:t},{"x-tos-account-id":n})}async function $z(e){let{AccountId:t,AcceleratorId:n,...r}=e;return await this.fetch(`GET`,`/accelerator/prefetchJob`,{acceleratorId:n,...r},{"x-tos-account-id":t},{},{})}async function eB(e){let{AccountId:t,JobId:n,...r}=e;return await this.fetch(`GET`,`/accelerator/prefetchRecord`,{jobId:n,...r},{"x-tos-account-id":t},{},{})}async function tB(e){let{AccountId:t,Az:n}=e;return await this.fetch(`GET`,`/accelerator/capacity`,{az:n},{"x-tos-account-id":t},{},{})}async function nB(e){let{AccountId:t,AccessPointName:n}=e;return await this.fetch(`GET`,`/accesspoint/${n}/accelerator`,{},{"x-tos-account-id":t},{},{})}var rB=async function(e){let{accountId:t,alias:n,rules:r}=e;return this.opts.enableOptimizeMethodBehavior&&!r.length?aB.call(this,{accountId:t,alias:n}):await this.fetch(`PUT`,`/mrap/mirror`,{alias:n},{"x-tos-account-id":t},{Rules:r},{handleResponse(){return{}}})},iB=async function(e){let{accountId:t,alias:n}=e;try{let e=await this.fetch(`GET`,`/mrap/mirror`,{alias:n},{"x-tos-account-id":t},{},{});return rP(e.data)(`Rules`),e}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getMultiRegionAccessPointMirrorBack`,defaultResponse:{Rules:[]}})}},aB=async function(e){let{accountId:t,alias:n}=e;return await this.fetch(`DELETE`,`/mrap/mirror`,{alias:n},{"x-tos-account-id":t},{},{handleResponse(){return{}}})};async function oB(e){let{bucket:t,enable:n}=e;return await this.fetchBucket(t,`PUT`,{privateM3U8:``},{},{Enable:n})}async function sB(e){let{bucket:t}=e;try{return await this.fetchBucket(t,`GET`,{privateM3U8:``},{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketPrivateM3U8`,defaultResponse:{Enable:!1}})}}async function cB(e){let{bucket:t,enable:n}=e;return await this.fetchBucket(t,`PUT`,{blindWatermark:``},{},{Enable:n})}async function lB(e){let{bucket:t}=e;try{return await this.fetchBucket(t,`GET`,{blindWatermark:``},{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketBlindWatermark`,defaultResponse:{Enable:!1}})}}var uB=`trash`;async function dB(e){let{bucket:t,...n}=e,r=oP(n);return this.fetchBucket(t,`PUT`,{[uB]:``},{},{...r})}async function fB(e){let{bucket:t}=e;return await this.fetchBucket(t,`GET`,{[uB]:``},{})}async function pB(e){let{bucket:t,objectLockEnabled:n,rule:r}=e;return this.fetchBucket(t,`PUT`,{"object-lock":``},{},{ObjectLockEnabled:n,Rule:r})}async function mB(e){let{bucket:t}=e;try{return await this.fetchBucket(t,`GET`,{"object-lock":``},{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketObjectLockConfiguration`,defaultResponse:{}})}}async function hB(e){let{versionId:t,mode:n,retainUntilDate:r}=e,i={retention:``};return t&&(i.versionId=t),this._fetchObject(e,`PUT`,i,{},{Mode:n,RetainUntilDate:r})}async function gB(e){let{versionId:t}=e,n={retention:``};t&&(n.versionId=t);try{return await this._fetchObject(e,`GET`,n,{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getObjectRetention`,defaultResponse:{}})}}async function _B(e){let{bucket:t,role:n,rules:r}=e;return this.opts.enableOptimizeMethodBehavior&&!r.length?yB.call(this,{bucket:t}):this.fetchBucket(t,`PUT`,{cdn_notification:``},{},{Role:n,Rules:r})}async function vB(e){let{bucket:t}=e;try{return await this.fetchBucket(t,`GET`,{cdn_notification:``},{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketCdnNotification`,defaultResponse:{Rules:[],Role:``}})}}async function yB(e){let{bucket:t}=e;return await this.fetchBucket(t,`DELETE`,{cdn_notification:``},{})}async function bB(e){let{bucket:t,role:n,rules:r}=e;return this.opts.enableOptimizeMethodBehavior&&!r.length?SB.call(this,{bucket:t}):this.fetchBucket(t,`PUT`,{workflow:``},{},{Role:n,Rules:r})}async function xB(e){let{bucket:t}=e;try{return await this.fetchBucket(t,`GET`,{workflow:``},{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketWorkflow`,defaultResponse:{Rules:[]}})}}async function SB(e){let{bucket:t}=e,n=await this.fetchBucket(t,`DELETE`,{workflow:``},{});return n.data||={},n}async function CB(e){let{bucket:t,executionId:n}=e;try{return await this.fetchBucket(t,`GET`,{workflow_execution:``,id:n},{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketWorkflowExecution`,defaultResponse:null})}}async function wB(e){let{bucket:t,workflowId:n,startTime:r,endTime:i,states:a,orderByTime:o,pageSize:s,pageToken:c}=e;try{let e={workflow_execution:``};return n&&(e.workflow_id=n),r!==void 0&&(e.start_time=r.toString()),i!==void 0&&(e.end_time=i.toString()),a&&(e.states=a),o&&(e.order_by_time=o),s!==void 0&&(e.page_size=s.toString()),c&&(e.page_token=c),await this.fetchBucket(t,`GET`,e,{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`listBucketWorkflowExecution`,defaultResponse:{Items:[]}})}}async function TB(e){let{bucket:t,Input:n,FileCompressConfig:r,Output:i}=e;return await this.fetchBucket(t,`POST`,{file_jobs:``,job_type:`FileCompress`},{},{Input:n,FileCompressConfig:r,Output:i})}async function EB(e){let{bucket:t,Input:n,FileUncompressConfig:r,Output:i}=e;return await this.fetchBucket(t,`POST`,{file_jobs:``,job_type:`FileUncompress`},{},{Input:n,FileUncompressConfig:r,Output:i})}async function DB(e){try{return await this.fetchBucket(e.bucket,`GET`,{logging:``},{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketLogging`,defaultResponse:void 0})}}function OB(e){return this.fetchBucket(e.bucket,`PUT`,{logging:``},{},{LoggingEnabled:{TargetBucket:e.data.targetBucket,TargetPrefix:e.data.targetPrefix,Role:e.data.role}})}function kB(e){return this.fetchBucket(e.bucket,`PUT`,{logging:``},{},{})}async function AB(e){var t;let{accountId:n,name:r,policy:i}=e;return this.opts.enableOptimizeMethodBehavior&&!((t=i.Statement)!=null&&t.length)?MB.call(this,{accountId:n,name:r}):this.fetch(`PUT`,`/accesspoint/${r}/policy`,{},{"x-tos-account-id":n},i)}async function jB(e){let{accountId:t,name:n}=e;try{return await this.fetch(`GET`,`/accesspoint/${n}/policy`,{},{"x-tos-account-id":t},void 0,{handleResponse(e){return{Policy:e.data}}})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getAccessPointPolicy`,defaultResponse:{Policy:{Version:`2012-10-17`,Statement:[]}}})}}async function MB(e){let{accountId:t,name:n}=e;return this.fetch(`DELETE`,`/accesspoint/${n}/policy`,{},{"x-tos-account-id":t})}async function NB(e){var t;let{accountId:n,name:r,policy:i}=e;return this.opts.enableOptimizeMethodBehavior&&!((t=i.Statement)!=null&&t.length)?FB.call(this,{accountId:n,name:r}):await this.fetch(`PUT`,`/mrap/${r}/policy`,{},{"x-tos-account-id":n},i,{})}async function PB(e){let{accountId:t,name:n}=e;try{return await this.fetch(`GET`,`/mrap/${n}/policy`,{},{"x-tos-account-id":t},void 0,{handleResponse(e){return{Policy:e.data}}})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getMultiRegionAccessPointMirrorBack`,defaultResponse:{Policy:{Version:`2012-10-17`,Statement:[]}}})}}async function FB(e){let{accountId:t,name:n}=e;return await this.fetch(`DELETE`,`/mrap/${n}/policy`,{},{"x-tos-account-id":t},{},{handleResponse(){return{}}})}async function IB(e){let{bucket:t}=e;try{return await this.fetchBucket(t,`GET`,{audit:``},{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketAudit`,defaultResponse:null})}}async function LB(e){let{bucket:t,action:n}=e;return await this.fetchBucket(t,`PUT`,{action:n,audit:``},{})}async function RB(e){let{bucket:t,startTime:n,endTime:r,pageSize:i,pageToken:a}=e,o={job_type:`AuditStock`};return n!==void 0&&(o.start_time=n.toString()),r!==void 0&&(o.end_time=r.toString()),i!==void 0&&(o.page_size=i.toString()),a!==void 0&&(o.page_token=a),await this.fetchBucket(t,`GET`,o,{})}async function zB(e){let{bucket:t,jobId:n}=e;try{return await this.fetchBucket(t,`GET`,{job_type:`AuditStock`,job_id:n},{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketAuditJob`,defaultResponse:null})}}async function BB(e){let{bucket:t,job:n}=e;return await this.fetchBucket(t,`POST`,{job_type:`AuditStock`,audit_jobs:``},{},n)}async function VB(e){let{bucket:t,audit_type:n}=e;return this.fetchBucket(t,`GET`,{type:n,audits:``},{})}async function HB(e){let{bucket:t,job:n}=e;return await this.fetchBucket(t,`POST`,{increment_audit:``},{},{AuditConfiguration:n})}async function UB(e){let{bucket:t,pageSize:n,pageToken:r,audiType:i}=e,a={increment_audits:``,audit_type:i};return n!==void 0&&(a.page_size=n.toString()),r!==void 0&&(a.page_token=r),await this.fetchBucket(t,`GET`,a,{})}async function WB(e){let{bucket:t,ruleId:n}=e;try{return await this.fetchBucket(t,`GET`,{increment_audit:``,rule_id:n},{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketIncrementAudits`,defaultResponse:null})}}async function GB(e){let{bucket:t,ruleId:n}=e;return this.fetchBucket(t,`DELETE`,{increment_audit:``,rule_id:n},{})}async function KB(e){let{bucket:t,jobType:n,startTime:r,endTime:i,pageSize:a,pageToken:o}=e,s={job_type:n};return r!==void 0&&(s.start_time=r.toString()),i!==void 0&&(s.end_time=i.toString()),a!==void 0&&(s.page_size=a.toString()),o!==void 0&&(s.page_token=o),await this.fetchBucket(t,`GET`,s,{})}async function qB(e){let{bucket:t,jobType:n,jobId:r}=e;try{return await this.fetchBucket(t,`GET`,{job_type:n,job_id:r},{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,methodKey:`getBucketJob`,defaultResponse:null})}}async function JB(e){let{bucket:t,Input:n,Output:r,AudioConvertConfig:i}=e,a=await this.fetchBucket(t,`POST`,{job_type:`AudioConvert`,media_jobs:``},{},{Input:n,AudioConvertConfig:i,Output:r});return a.data||={},a}async function YB(e){let{versionId:t}=e,n=cP({versionId:t});return await this._fetchObject(e,`GET`,{"x-tos-process":`image/aitag`,...n},{})}var XB=`requestPayment`;async function ZB(e){let{bucket:t,...n}=e,r=oP(n);return this.fetchBucket(t,`PUT`,{[XB]:``},{},{...r})}async function QB(e){let{bucket:t}=e;return await this.fetchBucket(t,`GET`,{[XB]:``},{})}var $B=e=>Object.fromEntries(Object.entries(e).filter(([e,t])=>t!==void 0)),eV;(function(e){e.BasicInfoTemplate=`basic_info_template`,e.ImageSemanticTemplate=`image_semantic_template`})(eV||={});async function tV(e){let{accountId:t,...n}=e;return await this.fetch(`POST`,`/dataset`,{},{"x-tos-account-id":t},$B(n),{})}async function nV(e){let{datasetname:t,accountId:n}=e;return await this.fetch(`GET`,`/dataset`,{datasetname:t},{"x-tos-account-id":n})}async function rV(e){let{accountId:t,datasetname:n}=e;return await this.fetch(`DELETE`,`/dataset`,{datasetname:n},{"x-tos-account-id":t})}async function iV(e){let{accountId:t,...n}=e;return await this.fetch(`GET`,`/datasets`,$B(n),{"x-tos-account-id":t})}var aV;(function(e){e.INDEXING=`Indexing`,e.DONE=`Done`,e.
354FAILED=`Failed`})(aV||={});async function oV(e){let{accountId:t,...n}=e;return await this.fetch(`POST`,`/datasetbinding`,{},{"x-tos-account-id":t},$B(n))}async function sV(e){let{accountId:t,...n}=e;return await this.fetch(`DELETE`,`/datasetbinding`,{},{"x-tos-account-id":t},$B(n),{})}async function cV(e){let{accountId:t,...n}=e;return await this.fetch(`GET`,`/datasetbinding`,$B(n),{"x-tos-account-id":t})}async function lV(e){let{accountId:t,...n}=e;return await this.fetch(`GET`,`/datasetbindings`,$B(n),{"x-tos-account-id":t})}var uV;(function(e){e.NOT=`not`,e.OR=`or`,e.AND=`and`,e.LT=`lt`,e.LTE=`lte`,e.GT=`gt`,e.GTE=`gte`,e.EQ=`eq`,e.EXIST=`exist`,e.PREFIX=`prefix`,e.MATCH_PHRASE=`match-phrase`})(uV||={});var dV;(function(e){e.MIN=`min`,e.MAX=`max`,e.AVERAGE=`average`,e.SUM=`sum`,e.COUNT=`count`,e.DISTINCT=`distinct`,e.GROUP=`group`})(dV||={});async function fV(e){let{accountId:t,...n}=e;return await this.fetch(`POST`,`/datasetquery`,{mode:`SimpleQuery`},{"x-tos-account-id":t},$B(n))}var pV;(function(e){e.TEXT=`text`,e.IMAGE=`image`})(pV||={});async function mV(e){let{accountId:t,...n}=e;return await this.fetch(`POST`,`/datasetquery`,{mode:`SemanticQuery`},{"x-tos-account-id":t},$B(n))}async function hV(e){let{bucket:t,tag:n,name:r,audioConvertConfig:i}=e,a=await this.fetchBucket(t,`PUT`,{process_template:``,tag:n},{},{Tag:n,Name:r,AudioConvertConfig:i});return a.data={},a}async function gV(e){let{bucket:t,tag:n,prefix:r}=e,i={process_template:``,tag:n};return r&&(i.prefix=r),await this.fetchBucket(t,`GET`,i,{})}async function _V(e){let{bucket:t,id:n,tag:r}=e,i={process_template:``,tag:r,id:n};try{return await this.fetchBucket(t,`GET`,i,{})}catch(e){return PL(e,{enableCatchEmptyServerError:this.opts.enableOptimizeMethodBehavior,defaultResponse:null,methodKey:`getBucketDataProcessTemplate`})}}async function vV(e){let{bucket:t,id:n}=e,r=await this.fetchBucket(t,`DELETE`,{process_template:``,id:n},{},``);return r.data={},r}async function yV(e){let{bucket:t,name:n,audioConvertConfig:r}=e,i={process_template:``,tag:`AudioConvert`},a={"Content-Type":`application/json`},o={Tag:`AudioConvert`,Name:n,AudioConvertConfig:r},s=await this.fetchBucket(t,`PUT`,i,a,o);return s.data={ID:s.data},s}async function bV(e){let{bucket:t,id:n}=e,r={process_template:``,tag:`AudioConvert`,id:n};return await this.fetchBucket(t,`GET`,r,{})}async function xV(e){let{bucket:t,id:n}=e,r={process_template:``,tag:`AudioConvert`};n&&(r.id=n);let i=await this.fetchBucket(t,`GET`,r,{});return i.data={AudioConvertTemplates:i.data||[]},i}async function SV(e){let{bucket:t,id:n}=e,r={process_template:``,id:n},i=await this.fetchBucket(t,`DELETE`,r,{},``);return i.data={},i}async function CV(e){let{bucket:t,name:n,transcodeConfig:r}=e,i={process_template:``,tag:`Transcode`},a={},o={Tag:`Transcode`,Name:n,TranscodeConfig:r},s=await this.fetchBucket(t,`PUT`,i,a,o);return{...s,data:{ID:s.data}}}async function wV(e){let{bucket:t,id:n}=e,r={process_template:``,tag:`Transcode`,id:n};return await this.fetchBucket(t,`GET`,r,{})}async function TV(e){let{bucket:t,id:n}=e,r={process_template:``,id:n},i=await this.fetchBucket(t,`DELETE`,r,{},``);return i.data={},i}async function EV(e){let{bucket:t}=e,n=await this.fetchBucket(t,`GET`,{process_template:``,tag:`Transcode`},{});return n.data={VideoConvertTemplates:n.data||[]},n}async function DV(e){let{bucket:t,input:n,transcodeConfig:r,output:i}=e,a={job_type:`Transcode`,media_jobs:``},o={},s={Tag:`Transcode`,Input:n,TranscodeConfig:r,Output:i};return await this.fetchBucket(t,`POST`,a,o,s)}async function OV(e){let{bucket:t,jobId:n}=e,r={job_type:`Transcode`,job_id:n,media_jobs:``};return await this.fetchBucket(t,`GET`,r,{})}async function kV(e){let{bucket:t,input:n,audioConvertConfig:r,output:i}=e,a={job_type:`AudioConvert`,media_jobs:``},o={},s={Tag:`AudioConvert`,Input:n,AudioConvertConfig:r,Output:i};return await this.fetchBucket(t,`POST`,a,o,s)}async function AV(e){let{bucket:t,jobId:n}=e,r={job_type:`AudioConvert`,job_id:n};return await this.fetchBucket(t,`GET`,r,{})}async function jV(e){let{accountId:t}=e;return await this.fetch(`GET`,`/templates`,{},{"x-tos-account-id":t},{})}var MV=`redundancyTransition`;async function NV(e){let{bucket:t,targetRedundancyType:n}=e;return this.fetchBucket(t,`POST`,{[MV]:``,"x-tos-target-redundancy-type":n},{},{})}async function PV(e){let{bucket:t,redundancyTransitionTaskId:n}=e;return await this.fetchBucket(t,`GET`,{[MV]:``,"x-tos-redundancy-transition-taskid":n},{})}async function FV(e){let{bucket:t,redundancyTransitionTaskId:n}=e;return this.fetchBucket(t,`DELETE`,{[MV]:``,"x-tos-redundancy-transition-taskid":n},{})}async function IV(e){let{bucket:t,maxKeys:n,continuationToken:r}=e;return this.fetchBucket(t,`GET`,{[MV]:``,"max-keys":n,"continuation-token":r},{})}async function LV(e){let{bucket:t}=e;return this.fetchBucket(t,`GET`,{estimatedRemainingTime:``},{})}
354async function RV(e){let{continuationToken:t,maxKeys:n}=e;return this.fetch(`GET`,`/`,{[MV]:``,"max-keys":n,"continuation-token":t},{})}async function zV(e){let{bucket:t,rules:n}=e;return this.fetchBucket(t,`PUT`,{workflow:``},{},{Rules:n})}async function BV(e){let{bucket:t}=e;return this.fetchBucket(t,`GET`,{workflow:``},{})}async function VV(e){let{bucket:t}=e,n=await this.fetchBucket(t,`DELETE`,{workflow:``},{});return n.data||={},n}async function HV(e){let{Name:t,AccountId:n,VpcId:r,Subnets:i,SecurityGroupId:a}=e;return await this.fetch(`PUT`,`/apap`,{name:t},{"x-tos-account-id":n},$B({Name:t,VpcId:r,Subnets:i,SecurityGroupId:a}))}async function UV(e){let{AccountId:t,...n}=e;return await this.fetch(`GET`,`/apap`,$B(n),{"x-tos-account-id":t})}async function WV(e){let{AccountId:t}=e;return await this.fetch(`GET`,`/apap/az`,{},{"x-tos-account-id":t})}async function GV(e){let{AccountId:t}=e;return await this.fetch(`GET`,`/apap/endpoint`,{},{"x-tos-account-id":t})}var KV=class extends YI{constructor(...e){super(...e),this.createBucket=iL,this.headBucket=oL,this.doesBucketExist=sL,this.deleteBucket=aL,this.listBuckets=rL,this.getBucketLocation=UL,this.getBucketInfo=lL,this.putBucketStorageClass=cL,this.getBucketAcl=dL,this.putBucketAcl=uL,this.putBucketHttpsConfig=fL,this.getBucketHttpsConfig=pL,this.getBucketPolicy=IL,this.putBucketPolicy=FL,this.deleteBucketPolicy=LL,this.getBucketVersioning=RL,this.putBucketVersioning=zL,this.getBucketCORS=WL,this.putBucketCORS=GL,this.deleteBucketCORS=KL,this.putBucketLifecycle=qL,this.getBucketLifecycle=JL,this.deleteBucketLifecycle=YL,this.putBucketEncryption=XL,this.getBucketEncryption=ZL,this.deleteBucketEncryption=QL,this.putBucketMirrorBack=eR,this.getBucketMirrorBack=tR,this.deleteBucketMirrorBack=nR,this.putBucketReplication=cR,this.getBucketReplication=lR,this.deleteBucketReplication=uR,this.putBucketWebsite=fR,this.getBucketWebsite=pR,this.deleteBucketWebsite=mR,this.putBucketNotification=gR,this.getBucketNotification=_R,this.putBucketCustomDomain=yR,this.getBucketCustomDomain=bR,this.deleteBucketCustomDomain=xR,this.putBucketRealTimeLog=CR,this.getBucketRealTimeLog=wR,this.deleteBucketRealTimeLog=TR,this.getBucketInventory=kR,this.listBucketInventory=AR,this.putBucketInventory=MR,this.deleteBucketInventory=jR,this.putBucketTagging=zR,this.getBucketTagging=BR,this.deleteBucketTagging=VR,this.putBucketPayByTraffic=HR,this.getBucketPayByTraffic=UR,this.getBucketImageStyle=qR,this.getBucketImageStyleList=GR,this.getBucketImageStyleListByName=KR,this.getImageStyleBriefInfo=WR,this.deleteBucketImageStyle=YR,this.putBucketImageStyle=JR,this.putBucketImageStyleSeparator=QR,this.putBucketImageProtect=XR,this.getBucketImageProtect=ZR,this.getBucketImageStyleSeparator=$R,this.putBucketRename=nz,this.getBucketRename=rz,this.deleteBucketRename=iz,this.putBucketTransferAcceleration=vz,this.getBucketTransferAcceleration=yz,this.copyObject=_I,this.resumableCopyObject=SI,this.deleteObject=SL,this.deleteMultiObjects=wL,this.getObject=EI,this.getObjectV2=kI,this.getObjectToFile=AI,this.getObjectAcl=TL,this.headObject=hI,this.doesObjectExist=xL,this.appendObject=kL,this.listObjects=ZI,this.renameObject=CL,this.fetchObject=_L,this.putFetchTask=vL,this.getFetchTask=yL,this.listObjectsType2=eL,this.listObjectVersions=QI,this.putObject=mL,this.putObjectFromFile=gL,this.putObjectAcl=EL,this.setObjectMeta=AL,this.createMultipartUpload=MP,this.uploadPart=wF,this.uploadPartFromFile=TF,this.completeMultipartUpload=EF,this.abortMultipartUpload=DL,this.uploadPartCopy=gI,this.listMultipartUploads=OL,this.listParts=IP,this.downloadFile=MI,this.putObjectTagging=iR,this.getObjectTagging=aR,this.deleteObjectTagging=oR,this.listJobs=PR,this.createJob=NR,this.deleteJob=LR,this.describeJob=RR,this.updateJobStatus=IR,this.updateJobPriority=FR,this.restoreObject=az,this.uploadFile=jF,this.getPreSignedUrl=bL,this.calculatePostSignature=jL,this.preSignedPostSignature=jL,this.preSignedPolicyURL=BL,this.getBucketIntelligenttiering=ez,this.listStorageLens=oz,this.deleteStorageLens=sz,this.getStorageLens=cz,this.putStorageLens=lz,this.putBucketNotificationType2=dz,this.getBucketNotificationType2=fz,this.putSymlink=pz,this.get
354Symlink=hz,this.putBucketAccessMonitor=bz,this.getBucketAccessMonitor=xz,this.putQosPolicy=Dz,this.getQosPolicy=Ez,this.deleteQosPolicy=Oz,this.createMultiRegionAccessPoint=kz,this.getMultiRegionAccessPoint=Az,this.listMultiRegionAccessPoints=jz,this.getMultiRegionAccessPointRoutes=Mz,this.deleteMultiRegionAccessPoint=Nz,this.submitMultiRegionAccessPointRoutes=Pz,this.bindAcceleratorWithMultiRegionAccessPoint=Fz,this.unbindAcceleratorWithMultiRegionAccessPoint=Iz,this.listBindAccessPointForMultiRegionAccelerator=Lz,this.putMultiRegionAccessPointMirrorBack=rB,this.getMultiRegionAccessPointMirrorBack=iB,this.deleteMultiRegionAccessPointMirrorBack=aB,this.putMultiRegionAccessPointPolicy=NB,this.getMultiRegionAccessPointPolicy=PB,this.deleteMultiRegionAccessPointPolicy=FB,this.putAccessPointPolicy=AB,this.getAccessPointPolicy=jB,this.deleteAccessPointPolicy=MB,this.createAccessPoint=Rz,this.getAccessPoint=zz,this.listAccessPoints=Bz,this.deleteAccessPoint=Vz,this.bindAcceleratorWithAccessPoint=Hz,this.unbindAcceleratorWithAccessPoint=Uz,this.listBindAccessPointForAccelerator=Wz,this.listAcceleratorAzs=Yz,this.putAccelerator=Gz,this.getAccelerator=Kz,this.listAccelerators=qz,this.deleteAccelerator=Jz,this.listBindAcceleratorForAccessPoint=nB,this.putAcceleratorPrefetchJob=Xz,this.getAcceleratorPrefetchJob=Zz,this.deleteAcceleratorPrefetchJob=Qz,this.listAcceleratorPrefetchJobs=$z,this.listAcceleratorPrefetchJobRecords=eB,this.getAcceleratorCapacityQuota=tB,this.putBucketPrivateM3U8=oB,this.getBucketPrivateM3U8=sB,this.putBucketBlindWatermark=cB,this.getBucketBlindWatermark=lB,this.putBucketTrash=dB,this.getBucketTrash=fB,this.putBucketObjectLockConfiguration=pB,this.getBucketObjectLockConfiguration=mB,this.putObjectRetention=hB,this.getObjectRetention=gB,this.putBucketCdnNotification=_B,this.getBucketCdnNotification=vB,this.deleteBucketCdnNotification=yB,this.putBucketWorkflow=bB,this.getBucketWorkflow=xB,this.deleteBucketWorkflow=SB,this.getBucketWorkflowExecution=CB,this.listBucketWorkflowExecution=wB,this.putConvertWorkflow=zV,this.getConvertWorkflow=BV,this.deleteConvertWorkflow=VV,this.putBucketAudit=LB,this.getBucketAudit=IB,this.listBucketAuditJob=RB,this.getBucketAuditJob=zB,this.postBucketAuditJob=BB,this.listBucketAuditBizType=VB,this.postBucketIncrementAudit=HB,this.listBucketIncrementAudits=UB,this.getBucketIncrementAudit=WB,this.deleteBucketIncrementAudit=GB,this.createFileCompress=TB,this.createFileUncompress=EB,this.createBucketAudioConvert=JB,this.getAudioConvertJob=AV,this.createAudioConvertJob=kV,this.listBucketJob=KB,this.getBucketJob=qB,this.putBucketLogging=OB,this.getBucketLogging=DB,this.deleteBucketLogging=kB,this.getObjectAITag=YB,this.putBucketRequestPayment=ZB,this.getBucketRequestPayment=QB,this.createDataset=tV,this.deleteDataset=rV,this.listDataset=iV,this.getDataset=nV,this.createDatasetBinding=oV,this.deleteDatasetBinding=sV,this.listDatasetBindings=lV,this.getDatasetBinding=cV,this.datasetSimpleQuery=fV,this.listTemplates=jV,this.datasetSemanticQuery=mV,this.putBucketDataProcessTemplate=hV,this.putAudioConvertTemplate=yV,this.getBucketDataProcessTemplate=_V,this.deleteBucketDataProcessTemplate=vV,this.listBucketDataProcessTemplates=gV,this.getAudioConvertTemplate=bV,this.deleteAudioConvertTemplate=SV,this.listAudioConvertTemplates=xV,this.putVideoConvertTemplate=CV,this.getVideoConvertTemplate=wV,this.deleteVideoConvertTemplate=TV,this.listVideoConvertTemplates=EV,this.createVideoConvertJob=DV,this.getVideoConvertJob=OV,this.createBucketDataRedundancyTransition=NV,this.getBucketDataRedundancyTransition=PV,this.listBucketDataRedundancyTransition=IV,this.deleteBucketDataRedundancyTransition=FV,this.listUserDataRedundancyTransition=RV,this.getBucketTransitionEstimatedRemainingTime=LV,this.putAnyPrivateAccessPoint=HV,this.listAnyPrivateAccessPoints=UV,this.listAnyPrivateAccessPointSupportAz=WV,this.listAnyPrivateAccessPointEndpoints=GV}},qV=FN.default.CancelToken,JV=class extends KV{};JV.TosServerError=$N,JV.isCancel=_P,JV.CancelError=tP,JV.TosServerCode=eP,JV.TosClientError=Y,JV.CancelToken=qV,JV.ACLType=FF,JV.StorageClassType=IF,JV.MetadataDirectiveType=LF,JV.AzRedundancyType=RF,JV.PermissionType=zF,JV.GranteeType=BF,JV.CannedType=VF,JV.HttpMethodType=HF,JV.LifecycleStatusType=GF,JV.StatusType=qF,JV.RedirectType=KF,JV.StorageClassInheritDirectiveType=UF,JV.TierType=JF,JV.FileUncompressPrefixReplaced=tI,JV.FileCompressFlatten=eI,JV.VersioningStatusType=YF,JV.createDefaultRateLimiter=GP,JV.DataTransferType=iF,JV.UploadEventType=DF,JV.DownloadEventType=jI,JV.ResumableCopyEventType=vI,JV.ReplicationStatusType=WF,JV.AccessPointStatusType=XF,JV.AccessPointStatus=nI,JV.AcceleratorPrefetchJobStatus=rI,JV.TransferAccelerationStatusType=ZF,JV.MRAPMirrorBackRedirectPolicyType=QF,JV.WorkflowExecutionStateType=$F,JV.ShareLinkClient=nL,JV.AuditJobStateType=iI,JV.AuditScanType=aI,JV.AuditType=oI,JV.CallbackTriggerModeType=sI,JV.FreezeModeType=cI,JV.TemplateTagType=lI,JV.AudioContainerFormatType=uI,JV.SampleFormatType=fI;function YV(e){return Object.prototype.toString.call(e)===`[object Object]`}function XV(e){return YV(e)||Array.isArray(e)}function ZV(){return!!(typeof window<`u`&&window.document&&window.document.createElement)}function QV(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||JSON.stringify(Object.keys(e.breakpoints||{}))!==JSON.stringify(Object.keys(t.breakpoints||{}))?!1:n.every(n=>{let r=e[n],i=t[n];return typeof r==`function`?`${r}`==`${i}`:!XV(r)||!XV(i)?r===i:QV(r,i)})}function $V(e){return e.concat().sort((e,t)=>
vendor: 5,673 bytes, line 354
354e.name>t.name?1:-1).map(e=>e.options)}function eH(e,t){if(e.length!==t.length)return!1;let n=$V(e),r=$V(t);return n.every((e,t)=>{let n=r[t];return QV(e,n)})}function tH(e){return typeof e==`number`}function nH(e){return typeof e==`string`}function rH(e){return typeof e==`boolean`}function iH(e){return Object.prototype.toString.call(e)===`[object Object]`}function aH(e){return Math.abs(e)}function oH(e){return Math.sign(e)}function sH(e,t){return aH(e-t)}function cH(e,t){return e===0||t===0||aH(e)<=aH(t)?0:aH(sH(aH(e),aH(t))/e)}function lH(e){return Math.round(e*100)/100}function uH(e){return hH(e).map(Number)}function dH(e){return e[fH(e)]}function fH(e){return Math.max(0,e.length-1)}function pH(e,t){return t===fH(e)}function mH(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function hH(e){return Object.keys(e)}function gH(e,t){return[e,t].reduce((e,t)=>(hH(t).forEach(n=>{let r=e[n],i=t[n];e[n]=iH(r)&&iH(i)?gH(r,i):i}),e),{})}function _H(e,t){return t.MouseEvent!==void 0&&e instanceof t.MouseEvent}function vH(e,t){let n={start:r,center:i,end:a};function r(){return 0}function i(e){return a(e)/2}function a(e){return t-e}function o(r,i){return nH(e)?n[e](r):e(t,r,i)}return{measure:o}}function yH(){let e=[];function t(t,n,i,a={passive:!0}){let o;if(`addEventListener`in t)t.addEventListener(n,i,a),o=()=>t.removeEventListener(n,i,a);else{let e=t;e.addListener(i),o=()=>e.removeListener(i)}return e.push(o),r}function n(){e=e.filter(e=>e())}let r={add:t,clear:n};return r}function bH(e,t,n,r){let i=yH(),a=1e3/60,o=null,s=0,c=0;function l(){i.add(e,`visibilitychange`,()=>{e.hidden&&m()})}function u(){p(),i.clear()}function d(e){if(!c)return;o||(o=e,n(),n());let i=e-o;for(o=e,s+=i;s>=a;)n(),s-=a;r(s/a),c&&=t.requestAnimationFrame(d)}function f(){c||=t.requestAnimationFrame(d)}function p(){t.cancelAnimationFrame(c),o=null,s=0,c=0}function m(){o=null,s=0}return{init:l,destroy:u,start:f,stop:p,update:n,render:r}}function xH(e,t){let n=t===`rtl`,r=e===`y`,i=r?`y`:`x`,a=r?`x`:`y`,o=!r&&n?-1:1,s=u(),c=d();function l(e){let{height:t,width:n}=e;return r?t:n}function u(){return r?`top`:n?`right`:`left`}function d(){return r?`bottom`:n?`left`:`right`}function f(e){return e*o}return{scroll:i,cross:a,startEdge:s,endEdge:c,measureSize:l,direction:f}}function SH(e=0,t=0){let n=aH(e-t);function r(t){return t<e}function i(e){return e>t}function a(e){return r(e)||i(e)}function o(n){return a(n)?r(n)?e:t:n}function s(e){return n?e-n*Math.ceil((e-t)/n):e}return{length:n,max:t,min:e,constrain:o,reachedAny:a,reachedMax:i,reachedMin:r,removeOffset:s}}function CH(e,t,n){let{constrain:r}=SH(0,e),i=e+1,a=o(t);function o(e){return n?aH((i+e)%i):r(e)}function s(){return a}function c(e){return a=o(e),d}function l(e){return u().set(s()+e)}function u(){return CH(e,s(),n)}let d={get:s,set:c,add:l,clone:u};return d}function wH(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v){let{cross:y,direction:b}=e,x=[`INPUT`,`SELECT`,`TEXTAREA`],S={passive:!1},C=yH(),w=yH(),T=SH(50,225).constrain(p.measure(20)),E={mouse:300,touch:400},D={mouse:500,touch:600},O=m?43:25,k=!1,A=0,j=0,M=!1,N=!1,P=!1,F=!1;function ee(e){if(!v)return;function n(t){(rH(v)||v(e,t))&&ae(t)}let r=t;C.add(r,`dragstart`,e=>e.preventDefault(),S).add(r,`touchmove`,()=>void 0,S).add(r,`touchend`,()=>void 0).add(r,`touchstart`,n).add(r,`mousedown`,n).add(r,`touchcancel`,se).add(r,`contextmenu`,se).add(r,`click`,ce,!0)}function te(){C.clear(),w.clear()}function ne(){let e=F?n:t;w.add(e,`touchmove`,oe,S).add(e,`touchend`,se).add(e,`mousemove`,oe,S).add(e,`mouseup`,se)}function re(e){let t=e.nodeName||``;return x.includes(t)}function I(){return(m?D:E)[F?`mouse`:`touch`]}function ie(e,t){let n=d.add(oH(e)*-1),r=u.byDistance(e,!m).distance;return m||aH(e)<T?r:g&&t?r*.5:u.byIndex(n.get(),0).distance}function ae(e){let t=_H(e,r);F=t,P=m&&t&&!e.buttons&&k,k=sH(i.get(),o.get())>=2,!(t&&e.button!==0)&&(re(e.target)||(M=!0,a.pointerDown(e),l.useFriction(0).useDuration(0),i.set(o),ne(),A=a.readPoint(e),j=a.readPoint(e,y),f.emit(`pointerDown`)))}function oe(e){if(!_H(e,r)&&e.touches.length>=2)return se(e);let t=a.readPoint(e),n=a.readPoint(e,y),o=sH(t,A),c=sH(n,j);if(!N&&!F&&(!e.cancelable||(N=o>c,!N)))return se(e);let u=a.pointerMove(e);o>h&&(P=!0),l.useFriction(.3).useDuration(.75),s.start(),i.add(b(u)),e.preventDefault()}function se(e){let t=u.byDistance(0,!1).index!==d.get(),n=a.pointerUp(e)*I(),r=ie(b(n),t),i=cH(n,r),o=O-10*i,s=_+i/50;N=!1,M=!1,w.clear(),l.useDuration(o).useFriction(s),c.distance(r,!m),F=!1,f.emit(`pointerUp`)}function ce(e){P&&=(e.stopPropagation(),e.preventDefault(),!1)}function le(){return M}return{init:ee,destroy:te,pointerDown:le}}function TH(e,t){let n,r;function i(e){return e.timeStamp}function a(n,r){let i=`client${(r||e.scroll)===`x`?`X`:`Y`}`;return(_H(n,t)?n:n.touches[0])[i]}function o(e){return n=e,r=e,a(e)}function s(e){let t=a(e)-a(r),o=i(e)-i(n)>170;return r=e,o&&(n=e),t}function c(e){if(!n||!r)return 0;let t=a(r)-a(n),o=i(e)-i(n),s=i(e)-i(r)>170,c=t/o;return o&&!s&&aH(c)>.1?c:0}return{pointerDown:o,pointerMove:s,pointerUp:c,readPoint:a}}function EH(){function e(e){let{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;return{top:t,right:n+r,bottom:t+i,left:n,width:r,height:i}}return{measure:e}}function DH(e){function t(t){return t/100*e}return{measure:t}}function OH(e,t,n,r,i,a,o){let s=[e].concat(r),c,l,u=[],d=!1;function f(e){return i.measureSize(o.measure(e))}function p(i){if(!a)return;l=f(e),u=r.map(f);function o(n){for(let a of n){if(d)return;let n=a.target===e,o=r.indexOf(a.target),s=n?l:u[o];if(aH(f(n?e:r[o])-s)>=.5){i.reInit(),t.emit(`resize`);break}}}c=new ResizeObserver(e=>{(rH(a)||a(i,e))&&o(e)}),n.requestAnimationFrame(()=>
354{s.forEach(e=>c.observe(e))})}function m(){d=!0,c&&c.disconnect()}return{init:p,destroy:m}}function kH(e,t,n,r,i,a){let o=0,s=0,c=i,l=a,u=e.get(),d=0;function f(){let t=r.get()-e.get(),i=!c,a=0;return i?(o=0,n.set(r),e.set(r),a=t):(n.set(e),o+=t/c,o*=l,u+=o,e.add(o),a=u-d),s=oH(a),d=u,x}function p(){return aH(r.get()-t.get())<.001}function m(){return c}function h(){return s}function g(){return o}function _(){return y(i)}function v(){return b(a)}function y(e){return c=e,x}function b(e){return l=e,x}let x={direction:h,duration:m,velocity:g,seek:f,settled:p,useBaseFriction:v,useBaseDuration:_,useFriction:b,useDuration:y};return x}function AH(e,t,n,r,i){let a=i.measure(10),o=i.measure(50),s=SH(.1,.99),c=!1;function l(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(i){if(!l())return;let c=aH(e[e.reachedMin(t.get())?`min`:`max`]-t.get()),u=n.get()-t.get(),d=s.constrain(c/o);n.subtract(u*d),!i&&aH(u)<a&&(n.set(e.constrain(n.get())),r.useDuration(25).useBaseFriction())}function d(e){c=!e}return{shouldConstrain:l,constrain:u,toggleActive:d}}function jH(e,t,n,r,i){let a=SH(-t+e,0),o=d(),s=u(),c=f();function l(e,t){return sH(e,t)<=1}function u(){let e=o[0],t=dH(o);return SH(o.lastIndexOf(e),o.indexOf(t)+1)}function d(){return n.map((e,t)=>{let{min:r,max:i}=a,o=a.constrain(e),s=!t,c=pH(n,t);return s?i:c||l(r,o)?r:l(i,o)?i:o}).map(e=>parseFloat(e.toFixed(3)))}function f(){if(t<=e+i)return[a.max];if(r===`keepSnaps`)return o;let{min:n,max:c}=s;return o.slice(n,c)}return{snapsContained:c,scrollContainLimit:s}}function MH(e,t,n){let r=t[0];return{limit:SH(n?r-e:dH(t),r)}}function NH(e,t,n,r){let i=.1,{reachedMin:a,reachedMax:o}=SH(t.min+i,t.max+i);function s(e){return e===1?o(n.get()):e===-1?a(n.get()):!1}function c(t){if(!s(t))return;let n=t*-1*e;r.forEach(e=>e.add(n))}return{loop:c}}function PH(e){let{max:t,length:n}=e;function r(e){let r=e-t;return n?r/-n:0}return{get:r}}function FH(e,t,n,r,i){let{startEdge:a,endEdge:o}=e,{groupSlides:s}=i,c=d().map(t.measure),l=f(),u=p();function d(){return s(r).map(e=>dH(e)[o]-e[0][a]).map(aH)}function f(){return r.map(e=>n[a]-e[a]).map(e=>-aH(e))}function p(){return s(l).map(e=>e[0]).map((e,t)=>e+c[t])}return{snaps:l,snapsAligned:u}}function IH(e,t,n,r,i,a){let{groupSlides:o}=i,{min:s,max:c}=r,l=u();function u(){let r=o(a),i=!e||t===`keepSnaps`;return n.length===1?[a]:i?r:r.slice(s,c).map((e,t,n)=>{let r=!t,i=pH(n,t);return r?mH(dH(n[0])+1):i?mH(fH(a)-dH(n)[0]+1,dH(n)[0]):e})}return{slideRegistry:l}}function LH(e,t,n,r,i){let{reachedAny:a,removeOffset:o,constrain:s}=r;function c(e){return e.concat().sort((e,t)=>aH(e)-aH(t))[0]}function l(n){let r=e?o(n):s(n),{index:i}=t.map((e,t)=>({diff:u(e-r,0),index:t})).sort((e,t)=>aH(e.diff)-aH(t.diff))[0];return{index:i,distance:r}}function u(t,r){let i=[t,t+n,t-n];if(!e)return t;if(!r)return c(i);let a=i.filter(e=>oH(e)===r);return a.length?c(a):dH(i)-n}function d(e,n){return{index:e,distance:u(t[e]-i.get(),n)}}function f(n,r){let o=i.get()+n,{index:s,distance:c}=l(o),d=!e&&a(o);return!r||d?{index:s,distance:n}:{index:s,distance:n+u(t[s]-c,0)}}return{byDistance:f,byIndex:d,shortcut:u}}function RH(e,t,n,r,i,a,o){function s(i){let s=i.distance,c=i.index!==t.get();
vendor: 6,996 bytes, line 354
354a.add(s),s&&(r.duration()?e.start():(e.update(),e.render(1),e.update())),c&&(n.set(t.get()),t.set(i.index),o.emit(`select`))}function c(e,t){s(i.byDistance(e,t))}function l(e,n){let r=t.clone().set(e);s(i.byIndex(r.get(),n))}return{distance:c,index:l}}function zH(e,t,n,r,i,a,o,s){let c={passive:!0,capture:!0},l=0;function u(u){if(!s)return;function f(t){if(new Date().getTime()-l>10)return;o.emit(`slideFocusStart`),e.scrollLeft=0;let a=n.findIndex(e=>e.includes(t));tH(a)&&(i.useDuration(0),r.index(a,0),o.emit(`slideFocus`))}a.add(document,`keydown`,d,!1),t.forEach((e,t)=>{a.add(e,`focus`,e=>{(rH(s)||s(u,e))&&f(t)},c)})}function d(e){e.code===`Tab`&&(l=new Date().getTime())}return{init:u}}function BH(e){let t=e;function n(){return t}function r(e){t=o(e)}function i(e){t+=o(e)}function a(e){t-=o(e)}function o(e){return tH(e)?e:e.get()}return{get:n,set:r,add:i,subtract:a}}function VH(e,t){let n=e.scroll===`x`?o:s,r=t.style,i=null,a=!1;function o(e){return`translate3d(${e}px,0px,0px)`}function s(e){return`translate3d(0px,${e}px,0px)`}function c(t){if(a)return;let o=lH(e.direction(t));o!==i&&(r.transform=n(o),i=o)}function l(e){a=!e}function u(){a||(r.transform=``,t.getAttribute(`style`)||t.removeAttribute(`style`))}return{clear:u,to:c,toggleActive:l}}function HH(e,t,n,r,i,a,o,s,c){let l=.5,u=uH(i),d=uH(i).reverse(),f=_().concat(v());function p(e,t){return e.reduce((e,t)=>e-i[t],t)}function m(e,t){return e.reduce((e,n)=>p(e,t)>0?e.concat([n]):e,[])}function h(e){return a.map((n,i)=>({start:n-r[i]+l+e,end:n+t-l+e}))}function g(t,r,i){let a=h(r);return t.map(t=>{let r=i?0:-n,o=i?n:0,l=i?`end`:`start`,u=a[t][l];return{index:t,loopPoint:u,slideLocation:BH(-1),translate:VH(e,c[t]),target:()=>s.get()>u?r:o}})}function _(){let e=o[0];return g(m(d,e),n,!1)}function v(){return g(m(u,t-o[0]-1),-n,!0)}function y(){return f.every(({index:e})=>p(u.filter(t=>t!==e),t)<=.1)}function b(){f.forEach(e=>{let{target:t,translate:n,slideLocation:r}=e,i=t();i!==r.get()&&(n.to(i),r.set(i))})}function x(){f.forEach(e=>e.translate.clear())}return{canLoop:y,clear:x,loop:b,loopPoints:f}}function UH(e,t,n){let r,i=!1;function a(a){if(!n)return;function o(e){for(let n of e)if(n.type===`childList`){a.reInit(),t.emit(`slidesChanged`);break}}r=new MutationObserver(e=>{i||(rH(n)||n(a,e))&&o(e)}),r.observe(e,{childList:!0})}function o(){r&&r.disconnect(),i=!0}return{init:a,destroy:o}}function WH(e,t,n,r){let i={},a=null,o=null,s,c=!1;function l(){s=new IntersectionObserver(e=>{c||(e.forEach(e=>{let n=t.indexOf(e.target);i[n]=e}),a=null,o=null,n.emit(`slidesInView`))},{root:e.parentElement,threshold:r}),t.forEach(e=>s.observe(e))}function u(){s&&s.disconnect(),c=!0}function d(e){return hH(i).reduce((t,n)=>{let r=parseInt(n),{isIntersecting:a}=i[r];return(e&&a||!e&&!a)&&t.push(r),t},[])}function f(e=!0){if(e&&a)return a;if(!e&&o)return o;let t=d(e);return e&&(a=t),e||(o=t),t}return{init:l,destroy:u,get:f}}function GH(e,t,n,r,i,a){let{measureSize:o,startEdge:s,endEdge:c}=e,l=n[0]&&i,u=m(),d=h(),f=n.map(o),p=g();function m(){if(!l)return 0;let e=n[0];return aH(t[s]-e[s])}function h(){if(!l)return 0;let e=a.getComputedStyle(dH(r));return parseFloat(e.getPropertyValue(`margin-${c}`))}function g(){return n.map((e,t,n)=>{let r=!t,i=pH(n,t);return r?f[t]+u:i?f[t]+d:n[t+1][s]-e[s]}).map(aH)}return{slideSizes:f,slideSizesWithGaps:p,startGap:u,endGap:d}}function KH(e,t,n,r,i,a,o,s,c){let{startEdge:l,endEdge:u,direction:d}=e,f=tH(n);function p(e,t){return uH(e).filter(e=>e%t===0).map(n=>e.slice(n,n+t))}function m(e){return e.length?uH(e).reduce((n,f,p)=>{let m=dH(n)||0,h=m===0,g=f===fH(e),_=i[l]-a[m][l],v=i[l]-a[f][u],y=!r&&h?d(o):0,b=aH(v-(!r&&g?d(s):0)-(_+y));return p&&b>t+c&&n.push(f),g&&n.push(e.length),n},[]).map((t,n,r)=>{let i=Math.max(r[n-1]||0);return e.slice(i,t)}):[]}function h(e){return f?p(e,n):m(e)}return{groupSlides:h}}function qH(e,t,n,r,i,a,o){let{align:s,axis:c,direction:l,startIndex:u,loop:d,duration:f,dragFree:p,dragThreshold:m,inViewThreshold:h,slidesToScroll:g,skipSnaps:_,containScroll:v,watchResize:y,watchSlides:b,watchDrag:x,watchFocus:S}=a,C=EH(),w=C.measure(t),T=n.map(C.measure),E=xH(c,l),D=E.measureSize(w),O=DH(D),k=vH(s,D),A=!d&&!!v,{slideSizes:j,slideSizesWithGaps:M,startGap:N,endGap:P}=GH(E,w,T,n,d||!!v,i),F=KH(E,D,g,d,w,T,N,P,2),{snaps:ee,snapsAligned:te}=FH(E,k,w,T,F),ne=-dH(ee)+dH(M),{snapsContained:re,scrollContainLimit:I}=jH(D,ne,te,v,2),ie=A?re:te,{limit:ae}=MH(ne,ie,d),oe=CH(fH(ie),u,d),se=oe.clone(),ce=uH(n),le=({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:r}})=>{r||n.constrain(e.pointerDown()),t.seek()},ue=({scrollBody:e,translate:t,location:n,offsetLocation:r,previousLocation:i,scrollLooper:a,slideLooper:o,dragHandler:s,animation:c,eventHandler:l,scrollBounds:u,options:{loop:d}},f)=>{let p=e.settled(),m=!u.shouldConstrain(),h=d?p:p&&m,g=h&&!s.pointerDown();g&&c.stop();let _=n.get()*f+i.get()*(1-f);r.set(_),d&&(a.loop(e.direction()),o.loop()),t.to(r.get()),g&&l.emit(`settle`),h||l.emit(`scroll`)},de=bH(r,i,()=>le(Te),e=>ue(Te,e)),fe=.68,pe=ie[oe.get()],me=BH(pe),he=BH(pe),L=BH(pe),ge=BH(pe),_e=kH(me,L,he,ge,f,fe),ve=LH(d,ie,ne,ae,ge),ye=RH(de,oe,se,_e,ve,ge,o),be=PH(ae),xe=yH(),Se=WH(t,n,o,h),{slideRegistry:Ce}=IH(A,v,ie,I,F,ce),we=zH(e,n,Ce,ye,_e,xe,o,S),Te={ownerDocument:r,ownerWindow:i,eventHandler:o,containerRect:w,slideRects:T,animation:de,axis:E,dragHandler:wH(E,e,r,i,ge,TH(E,i),me,de,ye,_e,ve,oe,o,O,p,m,_,fe,x),eventStore:xe,percentOfView:O,index:oe,indexPrevious:se,limit:ae,location:me,offsetLocation:L,previousLocation:he,options:a,resizeHandler:OH(t,o,i,n,E,y,C),scrollBody:_e,scrollBounds:AH(ae,L,ge,_e,O),scrollLooper:NH(ne,ae,L,[me,L,he,ge]),scrollProgress:be,scrollSnapList:ie.map(be.get),scrollSnaps:ie,scrollTarget:ve,scrollTo:ye,slideLooper:HH(E,D,ne,j,M,ee,ie,L,n),slideFocus:we,slidesHandler:UH(t,o,b),slidesInView:Se,slideIndexes:ce,slideRegistry:Ce,slidesToScroll:F,target:ge,translate:VH(E,t)};return Te}function JH(){let e={},t;function n(e){t=e}function r(t){return e[t]||[]}function i(e){return r(e).forEach(n=>n(t,e)),c}function a(t,n){return e[t]=r(t).concat([n]),c}function o(t,n){return e[t]=r(t).filter(e=>e!==n),c}function s(){e={}}let c={init:n,emit:i,off:o,on:a,clear:s};return c}var YH={align:`center`,axis:`x`,container:null,slides:null,containScroll:`trimSnaps`,direction:`ltr`,slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function XH(e){function t(e,t){return gH(e,t||{})}function n(n){let r=n.breakpoints||{};return t(n,hH(r).filter(t=>e.matchMedia(t).matches).map(e=>r[e]).reduce((e,n)=>t(e,n),{}))}function r(t){return t.map(e=>hH(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:r}}function ZH(e){let t=[];function n(n,r){return t=r.filter(({options:t})=>e.optionsAtMedia(t).active!==!1),t.forEach(t=>t.init(n,e)),r.reduce((e,t)=>
354Object.assign(e,{[t.name]:t}),{})}function r(){t=t.filter(e=>e.destroy())}return{init:n,destroy:r}}function QH(e,t,n){let r=e.ownerDocument,i=r.defaultView,a=XH(i),o=ZH(a),s=yH(),c=JH(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=a,{on:f,off:p,emit:m}=c,h=D,g=!1,_,v=l(YH,QH.globalOptions),y=l(v),b=[],x,S,C;function w(){let{container:t,slides:n}=y;S=(nH(t)?e.querySelector(t):t)||e.children[0];let r=nH(n)?S.querySelectorAll(n):n;C=[].slice.call(r||S.children)}function T(t){let n=qH(e,S,C,r,i,t,c);return t.loop&&!n.slideLooper.canLoop()?T(Object.assign({},t,{loop:!1})):n}function E(e,t){g||(v=l(v,e),y=u(v),b=t||b,w(),_=T(y),d([v,...b.map(({options:e})=>e)]).forEach(e=>s.add(e,`change`,D)),y.active&&(_.translate.to(_.location.get()),_.animation.init(),_.slidesInView.init(),_.slideFocus.init(le),_.eventHandler.init(le),_.resizeHandler.init(le),_.slidesHandler.init(le),_.options.loop&&_.slideLooper.loop(),S.offsetParent&&C.length&&_.dragHandler.init(le),x=o.init(le,b)))}function D(e,t){let n=te();O(),E(l({startIndex:n},e),t),c.emit(`reInit`)}function O(){_.dragHandler.destroy(),_.eventStore.clear(),_.translate.clear(),_.slideLooper.clear(),_.resizeHandler.destroy(),_.slidesHandler.destroy(),_.slidesInView.destroy(),_.animation.destroy(),o.destroy(),s.clear()}function k(){g||(g=!0,s.clear(),O(),c.emit(`destroy`),c.clear())}function A(e,t,n){!y.active||g||(_.scrollBody.useBaseFriction().useDuration(t===!0?0:y.duration),_.scrollTo.index(e,n||0))}function j(e){A(_.index.add(1).get(),e,-1)}function M(e){A(_.index.add(-1).get(),e,1)}function N(){return _.index.add(1).get()!==te()}function P(){return _.index.add(-1).get()!==te()}function F(){return _.scrollSnapList}function ee(){return _.scrollProgress.get(_.offsetLocation.get())}function te(){return _.index.get()}function ne(){return _.indexPrevious.get()}function re(){return _.slidesInView.get()}function I(){return _.slidesInView.get(!1)}function ie(){return x}function ae(){return _}function oe(){return e}function se(){return S}function ce(){return C}let le={canScrollNext:N,canScrollPrev:P,containerNode:se,internalEngine:ae,destroy:k,off:p,on:f,emit:m,plugins:ie,previousScrollSnap:ne,reInit:h,rootNode:oe,scrollNext:j,scrollPrev:M,scrollProgress:ee,scrollSnapList:F,scrollTo:A,selectedScrollSnap:te,slideNodes:ce,slidesInView:re,slidesNotInView:I};return E(t,n),setTimeout(()=>c.emit(`init`),0),le}QH.globalOptions=void 0;function $H(e={},t=[]){let n=(0,R.useRef)(e),r=(0,R.useRef)(t),[i,a]=(0,R.useState)(),[o,s]=(0,R.useState)(),c=(0,R.useCallback)(()=>{i&&i.reInit(n.current,r.current)},[i]);return(0,R.useEffect)(()=>{QV(n.current,e)||(n.current=e,c())},[e,c]),(0,R.useEffect)(()=>{eH(r.current,t)||(r.current=t,c())},[t,c]),(0,R.useEffect)(()=>{if(ZV()&&o){QH.globalOptions=$H.globalOptions;let e=QH(o,n.current,r.current);return a(e),()=>e.destroy()}else a(void 0)},[o,a]),[s,i]}$H.globalOptions=void 0;var eU=r(d());function tU(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=tU(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function nU(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=tU(e))&&(r&&(r+=` `),r+=t);return r}var rU=CD(),iU=`dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdate
354Capture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture`.split(`.`);function aU(e){return typeof e==`string`?iU.includes(e):!1}var oU=new Set(`aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.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.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.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.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle`.split(`.`));function sU(e){return typeof e==`string`?oU.has(e):!1}function cU(e){return typeof e==`string`&&e.startsWith(`data-`)}function lU(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(sU(n)||cU(n))&&(t[n]=e[n]);return t}function uU(e){if(e==null)return null;if((0,R.isValidElement)(e)&&typeof e.props==`object`&&e.props!==null){var t=e.props;return lU(t)}return typeof e==`object`&&!Array.isArray(e)?lU(e):null}function dU(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(sU(n)||cU(n)||aU(n))&&(t[n]=e[n]);return t}function fU(e){return e==null?null:(0,R.isValidElement)(e)?dU(e.props):typeof e==`object`&&!Array.isArray(e)?dU(e):null}var pU=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function mU(){return mU=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},mU.apply(null,arguments)}function hU(e,t){if(e==null)return{};var n,r,i=gU(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function gU(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var _U=(0,R.forwardRef)((e,t)=>
354{var n=e.children,r=e.width,i=e.height,a=e.viewBox,o=e.className,s=e.style,c=e.title,l=e.desc,u=hU(e,pU),d=a||{width:r,height:i,x:0,y:0},f=nU(`recharts-surface`,o);return R.createElement(`svg`,mU({},dU(u),{className:f,width:r,height:i,style:s,viewBox:`${d.x} ${d.y} ${d.width} ${d.height}`,ref:t}),R.createElement(`title`,null,c),R.createElement(`desc`,null,l),n)}),vU=[`children`,`className`];function yU(){return yU=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},yU.apply(null,arguments)}function bU(e,t){if(e==null)return{};var n,r,i=xU(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xU(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var SU=R.forwardRef((e,t)=>{var n=e.children,r=e.className,i=bU(e,vU),a=nU(`recharts-layer`,r);return R.createElement(`g`,yU({className:a},dU(i),{ref:t}),n)});function CU(e){return e===`__proto__`}var wU=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function TU(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e===``||e.startsWith(`.`)||e.endsWith(`.`)?!1:wU.test(e);default:return!1}}function EU(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function DU(e){return typeof e==`symbol`||e instanceof Symbol}function OU(e){return e==null?``:kU(e)}function kU(e){if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(kU).join(`,`);if(DU(e))return e.toString();let t=e+``;return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function AU(e){if(Array.isArray(e))return e.map(EU);if(typeof e==`symbol`)return[e];e=OU(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1,s=!1,c=/^-?\d+(?:\.\d+)?$/;
354for(e.charCodeAt(0)===46&&t.push(``);r<n;){let l=e[r];if(a)l===`\\`&&r+1<n?(r++,i+=e[r]):l===a?a=``:i+=l;else if(o)if(l===`"`||l===`'`)a=l,s=!0;else if(l===`]`){if(o=!1,!s&&i.includes(`.`)&&!c.test(i)){let e=i.split(`.`);for(let n=0;n<e.length;n++)e[n]!==``&&t.push(e[n])}else t.push(i);i=``}else i+=l;else if(l===`[`)o=!0,s=!1,i&&=(t.push(i),``);else if(l===`.`){i&&=(t.push(i),``);let n=e[r+1];(n===void 0||n===`.`)&&t.push(``)}else i+=l;r++}return i&&t.push(i),t}function jU(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(CU(t))return n;let r=e[t];return r===void 0?TU(t)&&!Object.hasOwn(e,t)?jU(e,AU(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=EU(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return MU(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),CU(t))return n;let r=e[t];return r===void 0?n:r}}}function MU(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||CU(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}var NU=4;function PU(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:NU),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function FU(e){var t=[...arguments].slice(1);return e.reduce((e,n,r)=>{var i=t[r-1];return typeof i==`string`?e+i+n:i===void 0?e+n:e+PU(i)+n},``)}var IU=e=>e===0?0:e>0?1:-1,LU=e=>typeof e==`number`&&e!=+e,RU=e=>typeof e==`string`&&e.length>1&&e.indexOf(`%`)===e.length-1,X=e=>(typeof e==`number`||e instanceof Number)&&!LU(e),zU=e=>X(e)||typeof e==`string`,BU=0,VU=e=>{var t=++BU;return`${e||``}${t}`},HU=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!X(e)&&typeof e!=`string`)return n;var i;if(RU(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return LU(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},UU=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function WU(e,t,n){return X(e)&&X(t)?PU(e+n*(t-e)):t}function GU(e,t,n){if(!(!e||!e.length))return e.find(e=>e&&(typeof t==`function`?t(e):jU(e,t))===n)}var KU=e=>e==null,qU=e=>KU(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function JU(e){return e!=null}function YU(){}function XU(e){if(e)return{x:e.x,y:e.y,upperWidth:`upperWidth`in e?e.upperWidth:e.width,lowerWidth:`lowerWidth`in e?e.lowerWidth:e.width,width:e.width,height:e.height}}function ZU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function QU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ZU(Object(n),!0).forEach(function(t){$U(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $U(e,t,n){return(t=eW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eW(e){var t=tW(e,`string`);return typeof t==`symbol`?t:t+``}function tW(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var nW=e=>{var t=e.viewBox,n=e.position,r=e.offset,i=r===void 0?0:r,a=e.parentViewBox,o=e.clamp,s=XU(t),c=s.x,l=s.y,u=s.height,d=s.upperWidth,f=s.lowerWidth,p=c,m=c+(d-f)/2,h=(p+m)/2,g=(d+f)/2,_=p+d/2,v=u>=0?1:-1,y=v*i,b=v>0?`end`:`start`,x=v>0?`start`:`end`,S=d>=0?1:-1,C=S*i,w=S>0?`end`:`start`,T=S>0?`start`:`end`,E=a;if(n===`top`){var D={x:p+d/2,y:l-y,horizontalAnchor:`middle`,verticalAnchor:b};return o&&E&&(D.height=Math.max(l-E.y,0),D.width=d),D}if(n===`bottom`){var O={x:m+f/2,y:l+u+y,horizontalAnchor:`middle`,verticalAnchor:x};return o&&E&&(O.height=Math.max(E.y+E.height-(l+u),0),O.width=f),O}if(n===`left`){var k={x:h-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`};return o&&E&&(k.width=Math.max(k.x-E.x,0),k.height=u),k}if(n===`right`){var A={x:h+g+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`};return o&&E&&(A.width=Math.max(E.x+E.width-A.x,0),A.height=u),A}var j=o&&E?{width:g,height:u}:{};return n===`insideLeft`?QU({x:h+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`},j):n===`insideRight`?QU({x:h+g-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`},j):n===`insideTop`?QU({x:p+d/2,y:l+y,horizontalAnchor:`middle`,verticalAnchor:x},j):n===`insideBottom`?QU({x:m+f/2,y:l+u-y,horizontalAnchor:`middle`,verticalAnchor:b},j):n===`insideTopLeft`?QU({x:p+C,y:l+y,horizontalAnchor:T,verticalAnchor:x},j):n===`insideTopRight`?QU({x:p+d-C,y:l+y,horizontalAnchor:w,verticalAnchor:x}
vendor: 14,641 bytes, line 354
354,j):n===`insideBottomLeft`?QU({x:m+C,y:l+u-y,horizontalAnchor:T,verticalAnchor:b},j):n===`insideBottomRight`?QU({x:m+f-C,y:l+u-y,horizontalAnchor:w,verticalAnchor:b},j):n&&typeof n==`object`&&(X(n.x)||RU(n.x))&&(X(n.y)||RU(n.y))?QU({x:c+HU(n.x,g),y:l+HU(n.y,u),horizontalAnchor:`end`,verticalAnchor:`end`},j):QU({x:_,y:l+u/2,horizontalAnchor:`middle`,verticalAnchor:`middle`},j)},rW=[`top`,`left`,`right`,`bottom`];function iW(e){return e==null?!1:typeof e==`object`?!0:rW.includes(e)}var aW=(0,R.createContext)(null);function oW(e){return function(){return e}}var sW=Math.PI,cW=2*sW,lW=1e-6,uW=cW-lW;function dW(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function fW(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return dW;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var pW=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?dW:fW(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>lW)if(!(Math.abs(u*s-c*l)>lW)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((sW-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>lW&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>lW||Math.abs(this._y1-l)>lW)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%cW+cW),d>uW?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>lW&&this._append`A${n},${n},0,${+(d>=sW)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function mW(){return new pW}mW.prototype=pW.prototype;function hW(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new pW(t)}Array.prototype.slice;function gW(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function _W(e){this._context=e}_W.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function vW(e){return new _W(e)}function yW(e){return e[0]}function bW(e){return e[1]}function xW(e,t){var n=oW(!0),r=null,i=vW,a=null,o=hW(s);e=typeof e==`function`?e:e===void 0?yW:oW(e),t=typeof t==`function`?t:t===void 0?bW:oW(t);function s(s){var c,l=(s=gW(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:oW(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:oW(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:oW(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function SW(e,t,n){var r=null,i=oW(!0),a=null,o=vW,s=null,c=hW(l);e=typeof e==`function`?e:e===void 0?yW:oW(+e),t=typeof t==`function`?t:oW(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?bW:oW(+n);function l(l){var u,d,f,p=(l=gW(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h)if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return xW().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:oW(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:oW(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:oW(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:oW(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:oW(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:oW(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:oW(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var CW=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function wW(e){return new CW(e,!0)}function TW(e){return new CW(e,!1)}function EW(){}function DW(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function OW(e){this._context=e}OW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:DW(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:DW(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function kW(e){return new OW(e)}function AW(e){this._context=e}AW.prototype={areaStart:EW,areaEnd:EW,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:DW(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jW(e){return new AW(e)}function MW(e){this._context=e}MW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:DW(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function NW(e){return new MW(e)}function PW(e){this._context=e}PW.prototype={areaStart:EW,areaEnd:EW,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function FW(e){return new PW(e)}function IW(e){return e<0?-1:1}function LW(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(IW(a)+IW(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function RW(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function zW(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function BW(e){this._context=e}BW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:zW(this,this._t0,RW(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,zW(this,RW(this,n=LW(this,e,t)),n);break;default:zW(this,this._t0,n=LW(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function VW(e){this._context=new HW(e)}(VW.prototype=Object.create(BW.prototype)).point=function(e,t){BW.prototype.point.call(this,t,e)};function HW(e){this._context=e}HW.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function UW(e){return new BW(e)}function WW(e){return new VW(e)}function GW(e){this._context=e}GW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=KW(e),i=KW(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function KW(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function qW(e){return new GW(e)}function JW(e,t){this._context=e,this._t=t}JW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function YW(e){return new JW(e,.5)}function XW(e){return new JW(e,0)}function ZW(e){return new JW(e,1)}function QW(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function $W(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function eG(e,t){return e[t]}function tG(e){let t=[];return t.key=e,t}function nG(){var e=oW([]),t=$W,n=QW,r=eG;function i(i){var a=Array.from(e.apply(this,arguments),tG),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=gW(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:oW(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:oW(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?$W:typeof e==`function`?e:oW(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??QW,i):n},i}function rG(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}QW(e,t)}}function iG(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}QW(e,t)}}function aG(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],d=u[r][1]||0,f=(d-(u[r-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]],h=m[r][1]||0,g=m[r-1][1]||0;f+=h-g}c+=d,l+=f*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,QW(e,t)}}var oG=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,sG=(e,t)=>
354{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,R.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{aU(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},cG=(e,t,n)=>r=>(e(t,n,r),null),lG=(e,t,n)=>{if(e===null||typeof e!=`object`&&typeof e!=`function`)return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];aU(i)&&typeof a==`function`&&(r||={},r[i]=cG(a,t,n))}),r};function uG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uG(Object(n),!0).forEach(function(t){fG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fG(e,t,n){return(t=pG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pG(e){var t=mG(e,`string`);return typeof t==`symbol`?t:t+``}function mG(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function hG(e,t){var n=dG({},e),r=t;return Object.keys(t).reduce((e,t)=>(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function gG(e,t){let n=new Map;for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r,e);n.has(a)||n.set(a,i)}return Array.from(n.values())}function _G(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function vG(e){return e}function yG(e){return Number.isSafeInteger(e)&&e>=0}function bG(e){return e!=null&&typeof e!=`function`&&yG(e.length)}function xG(e){return function(t){return jU(t,e)}}function SG(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function CG(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function wG(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function TG(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var EG=`[object RegExp]`,DG=`[object String]`,OG=`[object Number]`,kG=`[object Boolean]`,AG=`[object Arguments]`,jG=`[object Symbol]`,MG=`[object Date]`,NG=`[object Map]`,PG=`[object Set]`,FG=`[object Array]`,IG=`[object Function]`,LG=`[object ArrayBuffer]`,RG=`[object Object]`,zG=`[object Error]`,BG=`[object DataView]`,VG=`[object Uint8Array]`,HG=`[object Uint8ClampedArray]`,UG=`[object Uint16Array]`,WG=`[object Uint32Array]`,GG=`[object BigUint64Array]`,KG=`[object Int8Array]`,qG=`[object Int16Array]`,JG=`[object Int32Array]`,YG=`[object BigInt64Array]`,XG=`[object Float32Array]`,ZG=`[object Float64Array]`,QG=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function $G(e){return QG.Buffer!==void 0&&QG.Buffer.isBuffer(e)}function eK(e,t){return tK(e,void 0,e,new Map,t)}function tK(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(SG(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=tK(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,tK(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(tK(a,void 0,n,r,i));return t}if($G(e))return e.subarray();if(CG(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=tK(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),nK(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),nK(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),nK(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,nK(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),nK(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),nK(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),nK(t,e,n,r,i),t}if(typeof e==`object`&&rK(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),nK(t,e,n,r,i),t}return e}function nK(e,t,n=e,r,i){let a=[...Object.keys(t),...wG(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=tK(t[s],s,n,r,i))}}function rK(e){switch(TG(e)){case AG:case FG:case LG:case BG:case kG:case MG:case XG:case ZG:case KG:case qG:case JG:case NG:case OG:case RG:case EG:case PG:case DG:case jG:case VG:case HG:case UG:case WG:return!0;default:return!1}}function iK(e){return tK(e,void 0,e,new Map,void 0)}function aK(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function oK(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function sK(e,t,n){return typeof n==`function`?cK(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?cK(t,r,e,s,!1):!!c},new Map,!0):sK(e,t,()=>void 0)}function cK(e,t,n,r,i=!1){if(t===e)return!0;switch(typeof t){case`object`:return lK(e,t,n,r,i);case`function`:return Object.keys(t).length>0?cK(e,{...t},n,r,i):aK(e,t);default:return oK(e)&&i?typeof t==`string`?t===``:!0:aK(e,t)}}function lK(e,t,n,r,i=!1){if(t==null)return!0;
354if(Array.isArray(t))return dK(e,t,n,r);if(t instanceof Map)return uK(e,t,n,r);if(t instanceof Set)return fK(e,t,n,r);let a=Object.keys(t);if(e==null)return i&&a.length===0;if(i)SG(e)&&(e=Object(e));else{let t=TG(e);if(t!==`[object Object]`&&t!==`[object Arguments]`)return!1}if(a.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let i=0;i<a.length;i++){let o=a[i];if(!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r?.delete(t)}}function uK(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function dK(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function fK(e,t,n,r){return t.size===0?!0:e instanceof Set?dK([...e],[...t],n,r):!1}function pK(e,t){return sK(e,t,()=>void 0)}function mK(e){return e=iK(e),t=>pK(t,e)}function hK(e,t){return eK(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(TG(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),nK(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case OG:case DG:case kG:{let t=new e.constructor(e?.valueOf());return nK(t,e),t}case AG:{let t={};return nK(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function gK(e){return hK(e)}var _K=/^(?:0|[1-9]\d*)$/;function vK(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return _K.test(e)}}function yK(e){return typeof e==`object`&&!!e&&TG(e)===`[object Arguments]`}function bK(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&TU(t)&&!(t in Object(e))?AU(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=EU(n[e]);if((r==null||!Object.hasOwn(r,t))&&!((Array.isArray(r)||yK(r))&&vK(t)&&Number(t)<r.length))return!1;r=r[t]}return!0}function xK(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=EU(e);break}return t=gK(t),function(n){let r=jU(n,e);return r===void 0?bK(n,e):t===void 0?r===void 0:pK(r,t)}}function SK(e){if(e==null)return vG;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?xK(e[0],e[1]):mK(e);default:return xG(e)}}function CK(e){return e===0?0:e}function wK(e,t=vG){return bG(e)?gG(Array.from(e),_G(SK(t),1)).map(CK):[]}function TK(e,t,n){return t===!0?wK(e,n):typeof t==`function`?wK(e,t):e}var EK=(0,R.createContext)(null),DK=e=>e,OK=()=>{var e=(0,R.useContext)(EK);return e?e.store.dispatch:DK},kK=()=>{},AK=()=>kK,jK=(e,t)=>e===t;function Z(e){var t=(0,R.useContext)(EK),n=(0,R.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:kK,[t,e]);return(0,rU.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:AK,t?t.store.getState:kK,t?t.store.getState:kK,n,jK)}function MK(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function NK(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var PK=e=>Array.isArray(e)?e:[e];function FK(e){let t=Array.isArray(e[0])?e[0]:e;return NK(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function IK(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var LK=class{constructor(e){this.value=e}deref(){return this.value}},RK=typeof WeakRef>`u`?LK:WeakRef,zK=0,BK=1;function VK(){return{s:zK,v:void 0,o:null,p:null}}function HK(e){return e instanceof RK?e.deref():e}function UK(e,t={}){let n=VK(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=VK(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=VK(),e.set(n,t)):t=r}}let s=t,c;if(t.s===BK)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=HK(i);e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new RK(c):c}return s.s=BK,s.v=c,c}return o.clearCache=()=>{n=VK(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function WK(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),MK(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=UK,argsMemoizeOptions:u=[]}={...n,...a},d=PK(c),f=PK(u),p=FK(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=IK(p,arguments);return i=m.apply(null,e),i},...f);
354return Object.assign(h,{resultFunc:o,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var Q=WK(UK);function GK(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a<e.length;a++){let o=e[a];Array.isArray(o)&&t<r?i(o,t+1):n.push(o)}};return i(e,0),n}function KK(e,t,n){return oK(n)&&(typeof t==`number`&&bG(n)&&vK(t)&&t<n.length||typeof t==`string`&&t in n)?aK(n[t],e):!1}function qK(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}var JK=(e,t,n)=>{if(e!==t){let r=qK(e),i=qK(t);if(r===i&&r===0){if(e<t)return n===`desc`?1:-1;if(e>t)return n===`desc`?-1:1}return n===`desc`?i-r:r-i}return 0},YK=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,XK=/^\w*$/;function ZK(e,t){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||DU(e)?!0:typeof e==`string`&&(XK.test(e)||!YK.test(e))||t!=null&&Object.hasOwn(t,e)}function QK(e,t,n,r){if(e==null)return[];n=r?void 0:n,Array.isArray(e)||(e=bG(e)?Array.from(e):Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(e=>String(e));let i=(e,t)=>{let n=e,r=0;for(;r<t.length&&n!=null;++r)n=n[t[r]];return r>0&&r===t.length?n:void 0},a=(e,t)=>{if(e==null)return t;if(t!=null)return typeof e==`object`&&`key`in e?Object.hasOwn(t,e.key)?t[e.key]:i(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?i(t,e):t[e]},o=t.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||ZK(e)?e:{key:e,path:AU(e)}));return e.map(e=>({original:e,criteria:o.map(t=>a(t,e))})).slice().sort((e,t)=>{for(let r=0;r<o.length;r++){let i=JK(e.criteria[r],t.criteria[r],n[r]);if(i!==0)return i}return 0}).map(e=>e.original)}function $K(e,...t){let n=t.length;return n>1&&KK(e,t[0],t[1])?t=[]:n>2&&KK(t[0],t[1],t[2])&&(t=[t[0]]),QK(e,GK(t),[`asc`])}var eq=e=>e.legend.settings,tq=e=>e.legend.size;Q([e=>e.legend.payload,eq],(e,t)=>{var n=t.itemSorter,r=e.flat(1);return n?$K(r,n):r});function nq(e,t){return sq(e)||oq(e,t)||iq(e,t)||rq()}function rq(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 355In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iq(e,t){if(e){if(typeof e==`string`)return aq(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?aq(e,t):void 0}}function aq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function oq(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function sq(e){if(Array.isArray(e))return e}var cq=1;function lq(e,t){return Math.abs(e.height-t.height)>cq||Math.abs(e.left-t.left)>cq||Math.abs(e.top-t.top)>cq||Math.abs(e.width-t.width)>cq}function uq(e){var t=e.getBoundingClientRect();return{height:t.height,left:t.left,top:t.top,width:t.width}}function dq(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=nq((0,R.useState)({height:0,left:0,top:0,width:0}),2),n=t[0],r=t[1],i=(0,R.useRef)(null),a=(0,R.useRef)(n);a.current=n;var o=(0,R.useCallback)(e=>{if(i.current!=null&&(i.current.disconnect(),i.current=null),e!=null){var t=uq(e);if(lq(t,a.current)&&r(t),typeof ResizeObserver<`u`){var n=new ResizeObserver(()=>{var t=uq(e);lq(t,a.current)&&r(t)});n.observe(e),i.current=n}}},[...e]);return(0,R.useEffect)(()=>()=>{var e;(e=i.current)==null||e.disconnect()},[]),[n,o]}function fq(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var pq=typeof Symbol==`function`&&Symbol.observable||`@@observable`,mq=()=>Math.random().toString(36).substring(7).split(``).join(`.`),hq={INIT:`@@redux/INIT${mq()}`,REPLACE:`@@redux/REPLACE${mq()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${mq()}`};function gq(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function _q(e,t,n){if(typeof e!=`function`)throw Error(fq(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(fq(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(fq(1));return n(_q)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,c=!1;function l(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(fq(3));return i}function d(e){if(typeof e!=`function`)throw Error(fq(4));if(c)throw Error(fq(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(fq(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!gq(e))throw Error(fq(7));if(e.type===void 0)throw Error(fq(8));if(typeof e.type!=`string`)throw Error(fq(17));if(c)throw Error(fq(9));try{c=!0,i=r(i,e)}finally{c=!1}
vendor: 3,602 bytes, line 355
355return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(fq(10));r=e,f({type:hq.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(fq(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[pq](){return this}}}return f({type:hq.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[pq]:m}}function vq(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:hq.INIT})===void 0)throw Error(fq(12));if(n(void 0,{type:hq.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(fq(13))})}function yq(e){let t=Object.keys(e),n={};for(let r=0;r<t.length;r++){let i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}let r=Object.keys(n),i;try{vq(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1,o={};for(let i=0;i<r.length;i++){let s=r[i],c=n[s],l=e[s],u=c(l,t);if(u===void 0)throw t&&t.type,Error(fq(14));o[s]=u,a||=u!==l}return a||=r.length!==Object.keys(e).length,a?o:e}}function bq(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function xq(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(fq(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=bq(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function Sq(e){return gq(e)&&`type`in e&&typeof e.type==`string`}var Cq=Symbol.for(`immer-nothing`),wq=Symbol.for(`immer-draftable`),Tq=Symbol.for(`immer-state`);function Eq(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Dq=Object,Oq=Dq.getPrototypeOf,kq=`constructor`,Aq=`prototype`,jq=`configurable`,Mq=`enumerable`,Nq=`writable`,Pq=`value`,Fq=e=>!!e&&!!e[Tq];function Iq(e){return e?zq(e)||Kq(e)||!!e[wq]||!!e[kq]?.[wq]||qq(e)||Jq(e):!1}var Lq=Dq[Aq][kq].toString(),Rq=new WeakMap;function zq(e){if(!e||!Yq(e))return!1;let t=Oq(e);if(t===null||t===Dq[Aq])return!0;let n=Dq.hasOwnProperty.call(t,kq)&&t[kq];if(n===Object)return!0;if(!Xq(n))return!1;let r=Rq.get(n);return r===void 0&&(r=Function.toString.call(n),Rq.set(n,r)),r===Lq}function Bq(e,t,n=!0){Vq(e)===0?(n?Reflect.ownKeys(e):Dq.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Vq(e){let t=e[Tq];return t?t.type_:Kq(e)?1:qq(e)?2:Jq(e)?3:0}var Hq=(e,t,n=Vq(e))=>n===2?e.has(t):Dq[Aq].hasOwnProperty.call(e,t),Uq=(e,t,n=Vq(e))=>n===2?e.get(t):e[t],Wq=(e,t,n,r=Vq(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Gq(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Kq=Array.isArray,qq=e=>e instanceof Map,Jq=e=>e instanceof Set,Yq=e=>typeof e==`object`,Xq=e=>typeof e==`function`,Zq=e=>typeof e==`boolean`;function Qq(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var $q=e=>e.copy_||e.base_,eJ=e=>e.modified_?e.copy_:e.base_;function tJ(e,t){if(qq(e))return new Map(e);if(Jq(e))return new Set(e);if(Kq(e))return Array[Aq].slice.call(e);let n=zq(e);if(t===!0||t===`class_only`&&!n){let t=Dq.getOwnPropertyDescriptors(e);delete t[Tq];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Nq]===!1&&(a[Nq]=!0,a[jq]=!0),(a.get||a.set)&&(t[i]={[jq]:!0,[Nq]:!0,[Mq]:a[Mq],[Pq]:e[i]})}return Dq.create(Oq(e),t)}else{let t=Oq(e);if(t!==null&&n)return{...e};let r=Dq.create(t);return Dq.assign(r,e)}}function nJ(e,t=!1){return aJ(e)||Fq(e)||!Iq(e)?e:(Vq(e)>1&&Dq.defineProperties(e,{set:iJ,add:iJ,clear:iJ,delete:iJ}),Dq.freeze(e),t&&Bq(e,(e,t)=>{nJ(t,!0)},!1),e)}function rJ(){Eq(2)}var iJ={[Pq]:rJ};function aJ(e){return e===null||!Yq(e)?!0:Dq.isFrozen(e)}var oJ=`MapSet`,sJ=`Patches`,cJ=`ArrayMethods`,lJ={};function uJ(e){let t=lJ[e];return t||Eq(0,e),t}var dJ=e=>!!lJ[e],fJ,pJ=()=>fJ,mJ=(e,t)=>
vendor: 4,844 bytes, line 355
355({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:dJ(oJ)?uJ(oJ):void 0,arrayMethodsPlugin_:dJ(cJ)?uJ(cJ):void 0});function hJ(e,t){t&&(e.patchPlugin_=uJ(sJ),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function gJ(e){_J(e),e.drafts_.forEach(yJ),e.drafts_=null}function _J(e){e===fJ&&(fJ=e.parent_)}var vJ=e=>fJ=mJ(fJ,e);function yJ(e){let t=e[Tq];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function bJ(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[Tq].modified_&&(gJ(t),Eq(4)),Iq(e)&&(e=xJ(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[Tq].base_,e,t)}else e=xJ(t,n);return SJ(t,e,!0),gJ(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===Cq?void 0:e}function xJ(e,t){if(aJ(t))return t;let n=t[Tq];if(!n)return AJ(t,e.handledSet_,e);if(!wJ(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);OJ(n,e)}return n.copy_}function SJ(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&nJ(t,n)}function CJ(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var wJ=(e,t)=>e.scope_===t,TJ=[];function EJ(e,t,n,r){let i=$q(e),a=e.type_;if(r!==void 0&&Uq(i,r,a)===t){Wq(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Bq(i,(e,n)=>{if(Fq(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??TJ;for(let e of o)Wq(i,e,n,a)}function DJ(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!wJ(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=eJ(i);EJ(e,i.draft_??i,a,n),OJ(i,r)})}function OJ(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}CJ(e)}}function kJ(e,t,n){let{scope_:r}=e;if(Fq(n)){let i=n[Tq];wJ(i,r)&&i.callbacks_.push(function(){zJ(e),EJ(e,n,eJ(i),t)})}else Iq(n)&&e.callbacks_.push(function(){let i=$q(e);e.type_===3?i.has(n)&&AJ(n,r.handledSet_,r):Uq(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&AJ(Uq(e.copy_,t,e.type_),r.handledSet_,r)})}function AJ(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Fq(e)||t.has(e)||!Iq(e)||aJ(e)?e:(t.add(e),Bq(e,(r,i)=>{if(Fq(i)){let t=i[Tq];wJ(t,n)&&(Wq(e,r,eJ(t),e.type_),CJ(t))}else Iq(i)&&AJ(i,t,n)}),e)}function jJ(e,t){let n=Kq(e),r={type_:+!!n,scope_:t?t.scope_:pJ(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=MJ;n&&(i=[r],a=NJ);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var MJ={get(e,t){if(t===Tq)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=$q(e);if(!Hq(i,t,e.type_))return IJ(e,i,t);let a=i[t];if(e.finalized_||!Iq(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Qq(t))return a;if(a===PJ(e.base_,t)||FJ(e,t,a)){zJ(e);let n=e.type_===1?+t:t,r=VJ(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in $q(e)},ownKeys(e){return Reflect.ownKeys($q(e))},set(e,t,n){let r=LJ($q(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=PJ($q(e),t),i=r?.[Tq];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Gq(n,r)&&(n!==void 0||Hq(e.base_,t,e.type_)))return!0;zJ(e),RJ(e)}return e.copy_[t]===n&&(n!==void 0||Hq(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),kJ(e,t,n),!0)},deleteProperty(e,t){return zJ(e),PJ(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),RJ(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=$q(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Nq]:!0,[jq]:e.type_!==1||t!==`length`,[Mq]:r[Mq],[Pq]:n[t]}},defineProperty(){Eq(11)},getPrototypeOf(e){return Oq(e.base_)},setPrototypeOf(){Eq(12)}},NJ={};for(let e in MJ){let t=MJ[e];NJ[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}NJ.deleteProperty=function(e,t){return NJ.set.call(this,e,t,void 0)},NJ.set=function(e,t,n){return MJ.set.call(this,e[0],t,n,e[0])};function PJ(e,t){let n=e[Tq];return(n?$q(n):e)[t]}function FJ(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||e.assigned_?.get(t)||!Iq(n)||n[Tq]?!1:e.baseRefs_.has(n)}function IJ(e,t,n){let r=LJ(t,n);return r?Pq in r?r[Pq]:r.get?.call(e.draft_):void 0}function LJ(e,t){if(!(t in e))return;let n=Oq(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Oq(n)}}function RJ(e){e.modified_||(e.modified_=!0,e.parent_&&RJ(e.parent_))}function zJ(e){e.copy_||=(e.assigned_=new Map,tJ(e.base_,e.scope_.immer_.useStrictShallowCopy_))}
vendor: 4,091 bytes, line 355
355var BJ=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Xq(e)&&!Xq(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Xq(t)||Eq(6),n!==void 0&&!Xq(n)&&Eq(7);let r;if(Iq(e)){let i=vJ(this),a=VJ(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?gJ(i):_J(i)}return hJ(i,n),bJ(r,i)}else if(!e||!Yq(e)){if(r=t(e),r===void 0&&(r=e),r===Cq&&(r=void 0),this.autoFreeze_&&nJ(r,!0),n){let t=[],i=[];uJ(sJ).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else Eq(1,e)},this.produceWithPatches=(e,t)=>{if(Xq(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Zq(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Zq(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Zq(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Iq(e)||Eq(8),Fq(e)&&(e=HJ(e));let t=vJ(this),n=VJ(t,e,void 0);return n[Tq].isManual_=!0,_J(t),n}finishDraft(e,t){let n=e&&e[Tq];(!n||!n.isManual_)&&Eq(9);let{scope_:r}=n;return hJ(r,t),bJ(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=uJ(sJ).applyPatches_;return Fq(e)?r(e,t):this.produce(e,e=>r(e,t))}};function VJ(e,t,n,r){let[i,a]=qq(t)?uJ(oJ).proxyMap_(t,n):Jq(t)?uJ(oJ).proxySet_(t,n):jJ(t,n);return(n?.scope_??pJ()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?DJ(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function HJ(e){return Fq(e)||Eq(10,e),UJ(e)}function UJ(e){if(!Iq(e)||aJ(e))return e;let t=e[Tq],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=tJ(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=tJ(e,!0);return Bq(n,(e,t)=>{Wq(n,e,UJ(t))},r),t&&(t.finalized_=!1),n}globalThis.Iterator?.from;var WJ=new BJ().produce,GJ=e=>e;function KJ(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var qJ=KJ(),JJ=KJ,YJ=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?bq:bq.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function XJ(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(NY(0));return{type:e,payload:r.payload,...`meta`in r&&{meta:r.meta},...`error`in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>Sq(t)&&t.type===e,n}var ZJ=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function QJ(e){return Iq(e)?WJ(e,()=>{}):e}function $J(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function eY(e){return typeof e==`boolean`}var tY=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new ZJ;return t&&(eY(t)?a.push(qJ):a.push(JJ(t.extraArgument))),a},nY=`RTK_autoBatch`,rY=()=>e=>({payload:e,meta:{[nY]:!0}}),iY=e=>t=>{setTimeout(t,e)},the=(e,t)=>n=>{let r=!1,i=()=>{r||(r=!0,cancelAnimationFrame(a),clearTimeout(o),n())},a=e(i),o=setTimeout(i,t)},aY=(e={type:`raf`})=>t=>(...n)=>{let r=t(...n),i=!0,a=!1,o=!1,s=new Set,c=e.type===`tick`?queueMicrotask:e.type===`raf`?typeof window<`u`&&window.requestAnimationFrame?the(window.requestAnimationFrame,100):iY(10):e.type===`callback`?e.queueNotification:iY(e.timeout),l=()=>
vendor: 3,900 bytes, line 355
355{o=!1,a&&(a=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){let t=r.subscribe(()=>i&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.[nY],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},nhe=e=>function(t){let{autoBatch:n=!0}=t??{},r=new ZJ(e);return n&&r.push(aY(typeof n==`object`?n:void 0)),r};function rhe(e){let t=tY(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{},c;if(typeof n==`function`)c=n;else if(gq(n))c=yq(n);else throw Error(NY(1));let l;l=typeof r==`function`?r(t):t();let u=bq;i&&(u=YJ({trace:!1,...typeof i==`object`&&i}));let d=nhe(xq(...l)),f=typeof s==`function`?s(d):d(),p=u(...f);return _q(c,o,p)}function oY(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error(NY(28));if(r in t)throw Error(NY(29));return t[r]=n,i},addAsyncThunk(e,r){return r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),i},addMatcher(e,t){return n.push({matcher:e,reducer:t}),i},addDefaultCase(e){return r=e,i}};return e(i),[t,n,r]}function ihe(e){return typeof e==`function`}function ahe(e,t){let[n,r,i]=oY(t),a;if(ihe(e))a=()=>QJ(e());else{let t=QJ(e);a=()=>t}function o(e=a(),t){let o=[n[t.type],...r.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return o.filter(e=>!!e).length===0&&(o=[i]),o.reduce((e,n)=>{if(n)if(Fq(e)){let r=n(e,t);return r===void 0?e:r}else if(Iq(e))return WJ(e,e=>n(e,t));else{let r=n(e,t);if(r===void 0){if(e===null)return e;throw Error(`A case reducer on a non-draftable value must not return undefined`)}return r}return e},e)}return o.getInitialState=a,o}var ohe=`ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`,she=(e=21)=>{let t=``,n=e;for(;n--;)t+=ohe[Math.random()*64|0];return t},che=Symbol.for(`rtk-slice-createasyncthunk`);function lhe(e,t){return`${e}/${t}`}function uhe({creators:e}={}){let t=e?.asyncThunk?.[che];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(NY(11));let i=(typeof e.reducers==`function`?e.reducers(fhe()):e.reducers)||{},a=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){let n=typeof e==`string`?e:e.type;if(!n)throw Error(NY(12));if(n in o.sliceCaseReducersByType)throw Error(NY(13));return o.sliceCaseReducersByType[n]=t,s},addMatcher(e,t){return o.sliceMatchers.push({matcher:e,reducer:t}),s},exposeAction(e,t){return o.actionCreators[e]=t,s},exposeCaseReducer(e,t){return o.sliceCaseReducersByName[e]=t,s}};a.forEach(r=>{let a=i[r],o={reducerName:r,type:lhe(n,r),createNotation:typeof e.reducers==`function`};mhe(a)?ghe(o,a,s,t):phe(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?oY(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return ahe(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}let l=e=>e,u=new Map,d=new WeakMap,f;function p(e,t){return f||=c(),f(e,t)}function m(){return f||=c(),f.getInitialState()}function h(t,n=!1){function r(e){let i=e[t];return i===void 0&&n&&(i=$J(d,r,m)),i}function i(t=l){return $J($J(u,n,()=>new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=dhe(a,t,()=>$J(d,t,m),n);return r})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}let g={name:n,reducer:p,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:m,...h(r),injectInto(e,{reducerPath:t,...n}={}){let i=t??r;return e.inject({reducerPath:i,reducer:p},n),{...g,...h(i,!0)}}};return g}}function dhe(e,t,n,r){function i(i,...a){let o=t(i);
vendor: 4,283 bytes, line 355
355return o===void 0&&r&&(o=n()),e(o,...a)}return i.unwrapped=e,i}var sY=uhe();function fhe(){function e(e,t){return{_reducerDefinitionType:`asyncThunk`,payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer(e){return Object.assign({[e.name](...t){return e(...t)}}[e.name],{_reducerDefinitionType:`reducer`})},preparedReducer(e,t){return{_reducerDefinitionType:`reducerWithPrepare`,prepare:e,reducer:t}},asyncThunk:e}}function phe({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!hhe(r))throw Error(NY(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?XJ(e,o):XJ(e))}function mhe(e){return e._reducerDefinitionType===`asyncThunk`}function hhe(e){return e._reducerDefinitionType===`reducerWithPrepare`}function ghe({type:e,reducerName:t},n,r,i){if(!i)throw Error(NY(18));let{payloadCreator:a,fulfilled:o,pending:s,rejected:c,settled:l,options:u}=n,d=i(e,a,u);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),s&&r.addCase(d.pending,s),c&&r.addCase(d.rejected,c),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:o||cY,pending:s||cY,rejected:c||cY,settled:l||cY})}function cY(){}var _he=`task`,lY=`listener`,uY=`completed`,dY=`cancelled`,vhe=`task-${dY}`,yhe=`task-${uY}`,fY=`${lY}-${dY}`,bhe=`${lY}-${uY}`,pY=class{constructor(e){this.code=e,this.message=`${_he} ${dY} (reason: ${e})`}code;name=`TaskAbortError`;message},mY=(e,t)=>{if(typeof e!=`function`)throw TypeError(NY(32))},hY=()=>{},gY=(e,t=hY)=>(e.catch(t),e),_Y=(e,t)=>(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)),vY=e=>{if(e.aborted)throw new pY(e.reason)};function yY(e,t){let n=hY;return new Promise((r,i)=>{let a=()=>i(new pY(e.reason));if(e.aborted){a();return}n=_Y(e,a),t.finally(()=>n()).then(r,i)}).finally(()=>{n=hY})}var xhe=async(e,t)=>{try{return await Promise.resolve(),{status:`ok`,value:await e()}}catch(e){return{status:e instanceof pY?`cancelled`:`rejected`,error:e}}finally{t?.()}},bY=e=>t=>gY(yY(e,t).then(t=>(vY(e),t))),xY=e=>{let t=bY(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:SY}=Object,CY={},wY=`listenerMiddleware`,She=(e,t)=>{let n=t=>_Y(e,()=>t.abort(e.reason));return(r,i)=>{mY(r,`taskExecutor`);let a=new AbortController;n(a);let o=xhe(async()=>{vY(e),vY(a.signal);let t=await r({pause:bY(a.signal),delay:xY(a.signal),signal:a.signal});return vY(a.signal),t},()=>a.abort(yhe));return i?.autoJoin&&t.push(o.catch(hY)),{result:bY(e)(o),cancel(){a.abort(vhe)}}}},Che=(e,t)=>{let n=async(n,r)=>{vY(t);let i=()=>{},a=[new Promise((t,r)=>{let a=e({predicate:n,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});i=()=>{a(),r()}})];r!=null&&a.push(new Promise(e=>setTimeout(e,r,null)));try{let e=await yY(t,Promise.race(a));return vY(t),e}finally{i()}};return((e,t)=>gY(n(e,t)))},TY=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=XJ(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw Error(NY(21));return mY(a,`options.listener`),{predicate:i,type:t,effect:a}},EY=SY(e=>{let{type:t,predicate:n,effect:r}=TY(e);return{id:she(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw Error(NY(22))}}},{withTypes:()=>EY}),DY=(e,t)=>{let{type:n,effect:r,predicate:i}=TY(t);return Array.from(e.values()).find(e=>(typeof n==`string`?e.type===n:e.predicate===i)&&e.effect===r)},OY=e=>{e.pending.forEach(e=>{e.abort(fY)})},whe=(e,t)=>()=>{for(let e of t.keys())OY(e);e.clear()},kY=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout(()=>{throw e},0)}},AY=SY(XJ(`${wY}/add`),{withTypes:()=>AY}),The=XJ(`${wY}/removeAll`),jY=SY(XJ(`${wY}/remove`),{withTypes:()=>jY}),Ehe=(...e)=>{console.error(`${wY}/error`,...e)},MY=(e={})=>{let t=new Map,n=new Map,r=e=>{let t=n.get(e)??0;n.set(e,t+1)},i=e=>{let t=n.get(e)??1;t===1?n.delete(e):n.set(e,t-1)},{extra:a,onError:o=Ehe}=e;mY(o,`onError`);let s=e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&OY(e)}),c=(e=>s(DY(t,e)??EY(e)));SY(c,{withTypes:()=>c});let l=e=>{let n=DY(t,e);return n&&(n.unsubscribe(),e.cancelActive&&OY(n)),!!n};SY(l,{withTypes:()=>l});let u=async(e,n,s,l)=>{let u=new AbortController,d=Che(c,u.signal),f=[];try{e.pending.add(u),r(e),await Promise.resolve(e.effect(n,SY({},s,{getOriginalState:l,condition:(e,t)=>
355d(e,t).then(Boolean),take:d,delay:xY(u.signal),pause:bY(u.signal),extra:a,signal:u.signal,fork:She(u.signal,f),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==u&&(e.abort(fY),n.delete(e))})},cancel:()=>{u.abort(fY),e.pending.delete(u)},throwIfCancelled:()=>{vY(u.signal)}})))}catch(e){e instanceof pY||kY(o,e,{raisedBy:`effect`})}finally{await Promise.all(f),u.abort(bhe),i(e),e.pending.delete(u)}},d=whe(t,n);return{middleware:e=>n=>r=>{if(!Sq(r))return n(r);if(AY.match(r))return c(r.payload);if(The.match(r)){d();return}if(jY.match(r))return l(r.payload);let i=e.getState(),a=()=>{if(i===CY)throw Error(NY(23));return i},s;try{if(s=n(r),t.size>0){let n=e.getState(),s=Array.from(t.values());for(let t of s){let s=!1;try{s=t.predicate(r,n,i)}catch(e){s=!1,kY(o,e,{raisedBy:`predicate`})}s&&u(t,r,e,a)}}}finally{i=CY}return s},startListening:c,stopListening:l,clearListeners:d}};function NY(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var PY=sY({name:`chartLayout`,initialState:{layoutType:`horizontal`,width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){e.margin.top=t.payload.top??0,e.margin.right=t.payload.right??0,e.margin.bottom=t.payload.bottom??0,e.margin.left=t.payload.left??0},setScale(e,t){e.scale=t.payload}}}),FY=PY.actions,Dhe=FY.setMargin,Ohe=FY.setLayout,khe=FY.setChartSize,Ahe=FY.setScale,jhe=PY.reducer;function IY(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function LY(e){return Number.isFinite(e)}function RY(e){return typeof e==`number`&&e>0&&Number.isFinite(e)}function zY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function BY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zY(Object(n),!0).forEach(function(t){Mhe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mhe(e,t,n){return(t=Nhe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nhe(e){var t=Phe(e,`string`);return typeof t==`symbol`?t:t+``}function Phe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function VY(e,t,n){return KU(e)||KU(t)?n:zU(t)?jU(e,t,n):typeof t==`function`?t(e):n}var Fhe=(e,t,n)=>{if(t&&n){var r=n.width,i=n.height,a=t.align,o=t.verticalAlign,s=t.layout,c=t.position,l=t.offset,u=l===void 0?0:l;if(c!=null){if(iW(c)){if(c===`top`&&X(e.top))return BY(BY({},e),{},{top:e.top+(i||0)+u});if(c===`bottom`&&X(e.bottom))return BY(BY({},e),{},{bottom:e.bottom+(i||0)+u});if(c===`left`&&X(e.left))return BY(BY({},e),{},{left:e.left+(r||0)+u});if(c===`right`&&X(e.right))return BY(BY({},e),{},{right:e.right+(r||0)+u})}return e}if((s===`vertical`||s===`horizontal`&&o===`middle`)&&a!==`center`&&X(e[a]))return BY(BY({},e),{},{[a]:e[a]+(r||0)});if((s===`horizontal`||s===`vertical`&&a===`center`)&&o!==`middle`&&X(e[o]))return BY(BY({},e),{},{[o]:e[o]+(i||0)})}return e},HY=(e,t)=>e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`,UY=(e,t,n,r)=>{if(r)return e.map(e=>e.coordinate);var i,a,o=e.map(e=>(e.coordinate===t&&(i=!0),e.coordinate===n&&(a=!0),e.coordinate));return i||o.push(t),a||o.push(n),o},WY=(e,t,n)=>{if(!e)return null;var r=e.duplicateDomain,i=e.type,a=e.range,o=e.scale,s=e.realScaleType,c=e.isCategorical,l=e.categoricalDomain,u=e.tickCount,d=e.ticks,f=e.niceTicks,p=e.axisType;if(!o)return null;var m=s===`scaleBand`&&o.bandwidth?o.bandwidth()/2:2,h=(t||n)&&i===`category`&&o.bandwidth?o.bandwidth()/m:0;return h=p===`angleAxis`&&a&&a.length>=2?IU(a[0]-a[1])*2*h:h,t&&(d||f)?(d||f||[]).map((e,t)=>{var n=r?r.indexOf(e):e,i=o.map(n);return LY(i)?{coordinate:i+h,value:e,offset:h,index:t}:null}).filter(JU):c&&l?l.map((e,t)=>{var n=o.map(e);return LY(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(JU):o.ticks&&!n&&u!=null?o.ticks(u).map((e,t)=>{var n=o.map(e);return LY(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(JU):o.domain().map((e,t)=>{var n=o.map(e);return LY(n)?{coordinate:n+h,value:r?r[e]:e,index:t,offset:h}:null}).filter(JU)},Ihe={sign:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0,o=0;o<t;++o){var s=e[o]?.[r];if(s!=null){var c=s[1],l=s[0],u=LU(c)?l:c;u>=0?(s[0]=i,i+=u,s[1]=i):(s[0]=a,a+=u,s[1]=a)}}}},expand:rG,none:QW,silhouette:iG,wiggle:aG,positive:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0;a<t;
355++a){var o=e[a]?.[r];if(o!=null){var s=LU(o[1])?o[0]:o[1];s>=0?(o[0]=i,i+=s,o[1]=i):(o[0]=0,o[1]=0)}}}}},Lhe=(e,t,n)=>{var r=Ihe[n]??QW,i=nG().keys(t).value((e,t)=>Number(VY(e,t,0))).order($W).offset(r)(e);return i.forEach((n,r)=>{n.forEach((n,i)=>{var a=VY(e[i],t[r],0);Array.isArray(a)&&a.length===2&&X(a[0])&&X(a[1])&&(n[0]=a[0],n[1]=a[1])})}),i};function Rhe(e){return e==null?void 0:String(e)}function GY(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type===`category`){if(!t.allowDuplicatedCategory&&t.dataKey&&!KU(i[t.dataKey])){var s=GU(n,`value`,i[t.dataKey]);if(s)return s.coordinate+r/2}return n!=null&&n[a]?n[a].coordinate+r/2:null}var c=VY(i,KU(o)?t.dataKey:o),l=t.scale.map(c);return X(l)?l:null}var zhe=e=>{var t=e.flat(2).filter(X);return[Math.min(...t),Math.max(...t)]},Bhe=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],Vhe=(e,t,n)=>{if(!(e==null||Object.keys(e).length===0))return Bhe(Object.keys(e).reduce((r,i)=>{var a=e[i];if(!a)return r;var o=a.stackedData.reduce((e,r)=>{var i=zhe(IY(r,t,n));return!LY(i[0])||!LY(i[1])?e:[Math.min(e[0],i[0]),Math.max(e[1],i[1])]},[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]},[1/0,-1/0]))},KY=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,qY=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1}
355)$/,JY=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=$K(t,e=>e.coordinate),a=[],o=0,s=1,c=i.length;s<c;s++){var l=(i[s]?.coordinate||0)-(i[s-1]?.coordinate||0);a.push(l),o=Math.max(l,o)}var u=o*1e-4,d=1/0;for(var f of a)f>u&&(d=Math.min(f,d));return d===1/0?0:d}return n?void 0:0};function YY(e){var t=e.tooltipEntrySettings,n=e.dataKey,r=e.payload,i=e.value,a=e.name;return BY(BY({},t),{},{dataKey:n,payload:r,value:i,name:a})}function XY(e,t){if(e!=null)return String(e);if(typeof t==`string`)return t}var Hhe=(e,t)=>{if(t===`horizontal`)return e.relativeX;if(t===`vertical`)return e.relativeY},Uhe=(e,t)=>t===`centric`?e.angle:e.radius,ZY=e=>e.layout.width,QY=e=>e.layout.height,Whe=e=>e.layout.scale,$Y=e=>e.layout.margin,eX=Q(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),tX=Q(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Ghe=`data-recharts-item-index`;function nX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?nX(Object(n),!0).forEach(function(t){Khe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Khe(e,t,n){return(t=qhe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qhe(e){var t=Jhe(e,`string`);return typeof t==`symbol`?t:t+``}function Jhe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Yhe=e=>e.brush.height;function Xhe(e){return tX(e).reduce((e,t)=>t.orientation===`left`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function Zhe(e){return tX(e).reduce((e,t)=>t.orientation===`right`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function Qhe(e){return eX(e).reduce((e,t)=>t.orientation===`top`&&!t.mirror&&!t.hide?e+(typeof t.height==`number`?t.height:30):e,0)}function $he(e){return eX(e).reduce((e,t)=>t.orientation===`bottom`&&!t.mirror&&!t.hide?e+(typeof t.height==`number`?t.height:30):e,0)}var iX=Q([ZY,QY,$Y,Yhe,Xhe,Zhe,Qhe,$he,eq,tq],(e,t,n,r,i,a,o,s,c,l)=>{var u={left:(n.left||0)+i,right:(n.right||0)+a},d=rX(rX({},{top:(n.top||0)+o,bottom:(n.bottom||0)+s}),u),f=d.bottom;d.bottom+=r,d=Fhe(d,c,l);var p=e-d.left-d.right,m=t-d.top-d.bottom;return rX(rX({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),ege=Q(iX,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),aX=Q(ZY,QY,(e,t)=>({x:0,y:0,width:e,height:t})),tge=(0,R.createContext)(null),oX=()=>(0,R.useContext)(tge)!=null,sX=e=>e.brush,cX=Q([sX,iX,$Y],(e,t,n)=>({height:e.height,x:X(e.x)?e.x:t.left,y:X(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:X(e.width)?e.width:t.width}));function nge(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}function rge(e,t=0,n={}){typeof n!=`object`&&(n={});let{leading:r=!1,trailing:i=!0,maxWait:a}=n,o=[,,];r&&(o[0]=`leading`),i&&(o[1]=`trailing`);let s,c=null,l=nge(function(...t){s=e.apply(this,t),c=null},t,{edges:o}),u=function(...t){return a!=null&&(c===null&&(c=Date.now()),Date.now()-c>=a)?((r||i)&&(s=e.apply(this,t)),c=Date.now(),l.cancel(),l.schedule(),s):(l.apply(this,t),s)};return u.cancel=l.cancel,u.flush=()=>(l.flush(),s),u}function ige(e,t=0,n={}){let{leading:r=!0,trailing:i=!0}=n;return rge(e,t,{leading:r,maxWait:t,trailing:i})}var age=!0,lX=function(e,t){var n=[...arguments].slice(2);if(age&&typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e))if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var r=0;console.warn(t.replace(/%s/g,()=>n[r++]))}},uX={width:`100%`,height:`100%`,debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},dX=(e,t,n)=>{var r=n.width,i=r===void 0?uX.width:r,a=n.height,o=a===void 0?uX.height:a,s=n.aspect,c=n.maxHeight,l=RU(i)?e:Number(i),u=RU(o)?t:Number(o);return s&&s>0&&(l?u=l/s:u&&(l=u*s),c&&u!=null&&u>c&&(u=c)),{calculatedWidth:l,calculatedHeight:u}},oge={width:0,height:0,overflow:`visible`},sge={width:0,overflowX:`visible`},cge={height:0,overflowY:`visible`},lge={},uge=e=>
355{var t=e.width,n=e.height,r=RU(t),i=RU(n);return r&&i?oge:r?sge:i?cge:lge};function dge(e){var t=e.width,n=e.height,r=e.aspect,i=t,a=n;return i===void 0&&a===void 0?(i=uX.width,a=uX.height):i===void 0?i=r&&r>0?void 0:uX.width:a===void 0&&(a=r&&r>0?void 0:uX.height),{width:i,height:a}}var fge=[`aspect`,`initialDimension`,`width`,`height`,`minWidth`,`minHeight`,`maxHeight`,`children`,`debounce`,`id`,`className`,`onResize`,`style`];function fX(){return fX=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},fX.apply(null,arguments)}function pX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?pX(Object(n),!0).forEach(function(t){pge(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pge(e,t,n){return(t=mge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mge(e){var t=hge(e,`string`);return typeof t==`symbol`?t:t+``}function hge(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function gge(e,t){return bge(e)||yge(e,t)||vge(e,t)||_ge()}function _ge(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 356In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vge(e,t){if(e){if(typeof e==`string`)return hX(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hX(e,t):void 0}}function hX(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function yge(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function bge(e){if(Array.isArray(e))return e}function xge(e,t){if(e==null)return{};var n,r,i=Sge(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Sge(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var gX=(0,R.createContext)(uX.initialDimension);function Cge(e){return RY(e.width)&&RY(e.height)}function _X(e){var t=e.children,n=e.width,r=e.height,i=(0,R.useMemo)(()=>({width:n,height:r}),[n,r]);return Cge(i)?R.createElement(gX.Provider,{value:i},t):null}var vX=()=>(0,R.useContext)(gX),wge=(0,R.forwardRef)((e,t)=>{var n=e.aspect,r=e.initialDimension,i=r===void 0?uX.initialDimension:r,a=e.width,o=e.height,s=e.minWidth,c=s===void 0?uX.minWidth:s,l=e.minHeight,u=e.maxHeight,d=e.children,f=e.debounce,p=f===void 0?uX.debounce:f,m=e.id,h=e.className,g=e.onResize,_=e.style,v=_===void 0?{}:_,y=xge(e,fge),b=(0,R.useRef)(null),x=(0,R.useRef)();x.current=g,(0,R.useImperativeHandle)(t,()=>b.current);var S=gge((0,R.useState)({containerWidth:i.width,containerHeight:i.height}),2),C=S[0],w=S[1],T=(0,R.useCallback)((e,t)=>{w(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]);(0,R.useEffect)(()=>{if(b.current==null||typeof ResizeObserver>`u`)return YU;var e=e=>{var t,n=e[0];if(n!=null){var r=n.contentRect,i=r.width,a=r.height;T(i,a),(t=x.current)==null||t.call(x,i,a)}};p>0&&(e=ige(e,p,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=b.current.getBoundingClientRect(),r=n.width,i=n.height;return T(r,i),t.observe(b.current),()=>{t.disconnect()}},[T,p]);var E=C.containerWidth,D=C.containerHeight;lX(!n||n>0,`The aspect(%s) must be greater than zero.`,n);var O=dX(E,D,{width:a,height:o,aspect:n,maxHeight:u}),k=O.calculatedWidth,A=O.calculatedHeight;return lX(E<0||D<0||k!=null&&k>0||A!=null&&A>0,`The width(%s) and height(%s) of chart should be greater than 0, 357 please check the style of container, or the props width(%s) and height(%s), 358 or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the 359 height and width.`,k,A,a,o,c,l,n),R.createElement(`div`,fX({id:m?`${m}`:void 0,className:nU(`recharts-responsive-container`,h),style:mX(mX({},v),{},{width:a,height:o,minWidth:c,minHeight:l,maxHeight:u}),ref:b},y),R.createElement(`div`,{style:uge({width:a,height:o})},R.createElement(_X,{width:k,height:A},d)))}),Tge=(0,R.forwardRef)((e,t)=>{var n=vX();if(RY(n.width)&&RY(n.height))return e.children;var r=dge({width:e.width,height:e.height,aspect:e.aspect}),i=r.width,a=r.height,o=dX(void 0,void 0,{width:i,height:a,aspect:e.aspect,maxHeight:e.maxHeight}),s=o.calculatedWidth,c=o.calculatedHeight;return X(s)&&X(c)?R.createElement(_X,{width:s,height:c},e.children):R.createElement(wge,fX({},e,{width:i,height:a,ref:t}))}),yX=()=>{var e=oX(),t=Z(ege),n=Z(cX),r=Z(sX)?.padding;return!e||!n||!r?t:{width:n.width-r.left-r.right,height:n.height-r.top-r.bottom,x:r.left,y:r.top}},Ege={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},bX=()=>Z(iX)??Ege,xX=()=>Z(ZY),SX=()=>
359Z(QY),CX=e=>e.layout.layoutType,wX=()=>Z(CX),TX=()=>{var e=wX();if(e===`horizontal`||e===`vertical`)return e},EX=e=>{var t=e.layout.layoutType;if(t===`centric`||t===`radial`)return t},Dge=()=>wX()!==void 0,DX=e=>{var t=OK(),n=oX(),r=e.width,i=e.height,a=vX(),o=r,s=i;return a&&(o=a.width>0?a.width:r,s=a.height>0?a.height:i),(0,R.useEffect)(()=>{!n&&RY(o)&&RY(s)&&t(khe({width:o,height:s}))},[t,n,o,s]),null},OX=sY({name:`legend`,initialState:{settings:{layout:`horizontal`,align:`center`,verticalAlign:`bottom`,itemSorter:`value`,position:void 0,offset:0},size:{width:0,height:0},payload:[]},reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter,e.settings.position=t.payload.position,e.settings.offset=t.payload.offset},addLegendPayload:{reducer(e,t){e.payload.push(GJ(t.payload))},prepare:rY()},replaceLegendPayload:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next,a=HJ(e).payload.indexOf(GJ(r));a>-1&&(e.payload[a]=GJ(i))},prepare:rY()},removeLegendPayload:{reducer(e,t){var n=HJ(e).payload.indexOf(GJ(t.payload));n>-1&&e.payload.splice(n,1)},prepare:rY()}}}),kX=OX.actions;kX.setLegendSize,kX.setLegendSettings;var Oge=kX.addLegendPayload,kge=kX.replaceLegendPayload,Age=kX.removeLegendPayload,jge=OX.reducer,Mge=a((e=>{var t=s();t.useSyncExternalStore,t.useRef,t.useEffect,t.useMemo,t.useDebugValue}));a(((e,t)=>{t.exports=Mge()}))();function Nge(e){e()}function Pge(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Nge(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var AX={notify(){},get:()=>[]};function Fge(e,t){let n,r=AX,i=0,a=!1;function o(e){u();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),d())}}function s(){r.notify()}function c(){m.onStateChange&&m.onStateChange()}function l(){return a}function u(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=Pge())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=AX)}function f(){a||(a=!0,u())}function p(){a&&(a=!1,d())}let m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:l,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}var Ige=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Lge=typeof navigator<`u`&&navigator.product===`ReactNative`,Rge=Ige||Lge?R.useLayoutEffect:R.useEffect;function jX(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function zge(e,t){if(jX(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!jX(e[n[r]],t[n[r]]))return!1;return!0}var Bge=Symbol.for(`react-redux-context`),Vge=typeof globalThis<`u`?globalThis:{};function Hge(){if(!R.createContext)return{};let e=Vge[Bge]??=new Map,t=e.get(R.createContext);return t||(t=R.createContext(null),e.set(R.createContext,t)),t}var Uge=Hge();function Wge(e){let{children:t,context:n,serverState:r,store:i}=e,a=R.useMemo(()=>({store:i,subscription:Fge(i),getServerState:r?()=>r:void 0}),[i,r]),o=R.useMemo(()=>i.getState(),[i]);Rge(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,o]);let s=n||Uge;return R.createElement(s.Provider,{value:a},t)}var Gge=Wge,Kge=new Set([`axisLine`,`tickLine`,`activeBar`,`activeDot`,`activeLabel`,`activeShape`,`allowEscapeViewBox`,`background`,`cursor`,`dot`,`label`,`line`,`margin`,`padding`,`position`,`shape`,`style`,`tick`,`wrapperStyle`,`radius`,`throttledEvents`]);function qge(e,t){return e==null&&t==null?!0:typeof e==`number`&&typeof t==`number`?e===t||e!==e&&t!==t:e===t}function MX(e,t){for(var n of new Set([...Object.keys(e),...Object.keys(t)]))if(Kge.has(n)){if(e[n]==null&&t[n]==null)continue;if(!zge(e[n],t[n]))return!1}else if(!qge(e[n],t[n]))return!1;return!0}function NX(){return NX=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},NX.apply(null,arguments)}function PX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function FX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
359t%2?PX(Object(n),!0).forEach(function(t){Jge(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jge(e,t,n){return(t=Yge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yge(e){var t=Xge(e,`string`);return typeof t==`symbol`?t:t+``}function Xge(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Zge(e,t){return t_e(e)||e_e(e,t)||$ge(e,t)||Qge()}function Qge(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 360In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $ge(e,t){if(e){if(typeof e==`string`)return IX(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?IX(e,t):void 0}}function IX(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function e_e(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function t_e(e){if(Array.isArray(e))return e}function n_e(e){return Array.isArray(e)&&zU(e[0])&&zU(e[1])?e.join(` ~ `):e}var LX={separator:` : `,contentStyle:{margin:0,padding:10,backgroundColor:`#fff`,border:`1px solid #ccc`,whiteSpace:`nowrap`},itemStyle:{display:`block`,paddingTop:4,paddingBottom:4,color:`#000`},labelStyle:{},accessibilityLayer:!1};function r_e(e,t){return t==null?e:$K(e,t)}var i_e=e=>{var t=e.separator,n=t===void 0?LX.separator:t,r=e.contentStyle,i=e.itemStyle,a=e.labelStyle,o=a===void 0?LX.labelStyle:a,s=e.payload,c=e.formatter,l=e.itemSorter,u=e.wrapperClassName,d=e.labelClassName,f=e.label,p=e.labelFormatter,m=e.accessibilityLayer,h=m===void 0?LX.accessibilityLayer:m,g=()=>{if(s&&s.length){var e={padding:0,margin:0},t=r_e(s,l).map((e,t)=>{if(!e||e.type===`none`)return null;var r=e.formatter||c||n_e,a=e.value,o=e.name,l=a,u=o;if(r){var d=r(a,o,e,t,s);if(Array.isArray(d)){var f=Zge(d,2);l=f[0],u=f[1]}else if(d!=null)l=d;else return null}var p=FX(FX({},LX.itemStyle),{},{color:e.color||LX.itemStyle.color},i);return R.createElement(`li`,{className:`recharts-tooltip-item`,key:`tooltip-item-${t}`,style:p},zU(u)?R.createElement(`span`,{className:`recharts-tooltip-item-name`},u):null,zU(u)?R.createElement(`span`,{className:`recharts-tooltip-item-separator`},n):null,R.createElement(`span`,{className:`recharts-tooltip-item-value`},l),R.createElement(`span`,{className:`recharts-tooltip-item-unit`},e.unit||``))});return R.createElement(`ul`,{className:`recharts-tooltip-item-list`,style:e},t)}return null},_=FX(FX({},LX.contentStyle),r),v=FX({margin:0},o),y=!KU(f),b=y?f:``,x=nU(`recharts-default-tooltip`,u),S=nU(`recharts-tooltip-label`,d);y&&p&&s!=null&&(b=p(f,s));var C=h?{role:`status`,"aria-live":`assertive`}:{};return R.createElement(`div`,NX({className:x,style:_},C),R.createElement(`p`,{className:S,style:v},R.isValidElement(b)?b:`${b}`),g())},RX=`recharts-tooltip-wrapper`,a_e={visibility:`hidden`};function o_e(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return nU(RX,{[`${RX}-right`]:X(n)&&t&&X(t.x)&&n>=t.x,[`${RX}-left`]:X(n)&&t&&X(t.x)&&n<t.x,[`${RX}-bottom`]:X(r)&&t&&X(t.y)&&r>=t.y,[`${RX}-top`]:X(r)&&t&&X(t.y)&&r<t.y})}function zX(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offset,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,c=e.viewBox,l=e.viewBoxDimension;if(a&&X(a[r]))return a[r];var u=n[r]-s-(i>0?i:0),d=n[r]+i;if(t[r])return o[r]?u:d;var f=c[r];return f==null?0:o[r]?Math.max(u<f?d:u,f):l==null?0:d+s>f+l?Math.max(u,f):Math.max(d,f)}function s_e(e){var t=e.translateX,n=e.translateY;return{transform:e.useTranslate3d?`translate3d(${t}px, ${n}px, 0)`:`translate(${t}px, ${n}px)`}}function c_e(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTop,i=e.offsetLeft,a=e.position,o=e.reverseDirection,s=e.tooltipBox,c=e.useTranslate3d,l=e.viewBox,u,d,f;return s&&s.height>0&&s.width>0&&n?(d=zX({allowEscapeViewBox:t,coordinate:n,key:`x`,offset:i,position:a,reverseDirection:o,tooltipDimension:s.width,viewBox:l,viewBoxDimension:l.width}),f=zX({allowEscapeViewBox:t,coordinate:n,key:`y`,offset:r,position:a,reverseDirection:o,tooltipDimension:s.height,viewBox:l,viewBoxDimension:l.height}),u=s_e({translateX:d,translateY:f,useTranslate3d:c}
360)):u=a_e,{cssProperties:u,cssClasses:o_e({translateX:d,translateY:f,coordinate:n})}}var BX={devToolsEnabled:!0,isSsr:!(typeof window<`u`&&window.document&&window.document.createElement&&window.setTimeout)};function l_e(e,t){return p_e(e)||f_e(e,t)||d_e(e,t)||u_e()}function u_e(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 361In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d_e(e,t){if(e){if(typeof e==`string`)return VX(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?VX(e,t):void 0}}function VX(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f_e(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function p_e(e){if(Array.isArray(e))return e}function HX(){var e=l_e((0,R.useState)(()=>BX.isSsr||!window.matchMedia?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches),2),t=e[0],n=e[1];return(0,R.useEffect)(()=>{if(window.matchMedia){var e=window.matchMedia(`(prefers-reduced-motion: reduce)`),t=()=>{n(e.matches)};return e.addEventListener(`change`,t),()=>{e.removeEventListener(`change`,t)}}},[]),t}function UX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function WX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?UX(Object(n),!0).forEach(function(t){m_e(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function m_e(e,t,n){return(t=h_e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h_e(e){var t=g_e(e,`string`);return typeof t==`symbol`?t:t+``}function g_e(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function __e(e,t){return x_e(e)||b_e(e,t)||y_e(e,t)||v_e()}function v_e(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 362In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y_e(e,t){if(e){if(typeof e==`string`)return GX(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?GX(e,t):void 0}}function GX(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function b_e(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function x_e(e){if(Array.isArray(e))return e}function S_e(e){if(!(e.prefersReducedMotion&&e.isAnimationActive===`auto`)&&e.isAnimationActive&&e.active){var t=typeof e.animationEasing==`string`?e.animationEasing:`ease`;return`transform ${e.animationDuration}ms ${t}`}}function C_e(e){var t=HX(),n=__e(R.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}})),2),r=n[0],i=n[1];R.useEffect(()=>{var t=t=>{t.key===`Escape`&&i({dismissed:!0,dismissedAtCoordinate:{x:e.coordinate?.x??0,y:e.coordinate?.y??0}})};
362return document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`keydown`,t)}},[e.coordinate?.x,e.coordinate?.y]),r.dismissed&&((e.coordinate?.x??0)!==r.dismissedAtCoordinate.x||(e.coordinate?.y??0)!==r.dismissedAtCoordinate.y)&&i(WX(WX({},r),{},{dismissed:!1}));var a=c_e({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset==`number`?e.offset:e.offset.x,offsetTop:typeof e.offset==`number`?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:e.lastBoundingBox,useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),o=a.cssClasses,s=a.cssProperties,c=WX(WX({},e.hasPortalFromProps?{}:WX(WX({transition:S_e({prefersReducedMotion:t,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},s),{},{pointerEvents:`none`,position:`absolute`,top:0,left:0})),{},{visibility:!r.dismissed&&e.active&&e.hasPayload?`visible`:`hidden`},e.wrapperStyle);return R.createElement(`div`,{xmlns:`http://www.w3.org/1999/xhtml`,tabIndex:-1,className:o,style:c,ref:e.innerRef},e.children)}var w_e=R.memo(C_e),KX=()=>Z(e=>e.rootProps.accessibilityLayer)??!0;function qX(){return qX=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},qX.apply(null,arguments)}function JX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function YX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?JX(Object(n),!0).forEach(function(t){T_e(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function T_e(e,t,n){return(t=E_e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E_e(e){var t=D_e(e,`string`);return typeof t==`symbol`?t:t+``}function D_e(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var XX={curveBasisClosed:jW,curveBasisOpen:NW,curveBasis:kW,curveBumpX:wW,curveBumpY:TW,curveLinearClosed:FW,curveLinear:vW,curveMonotoneX:UW,curveMonotoneY:WW,curveNatural:qW,curveStep:YW,curveStepAfter:ZW,curveStepBefore:XW},ZX=e=>LY(e.x)&&LY(e.y),QX=e=>e.base!=null&&ZX(e.base)&&ZX(e),$X=e=>e.x,eZ=e=>e.y,O_e=(e,t)=>{if(typeof e==`function`)return e;var n=`curve${qU(e)}`;if((n===`curveMonotone`||n===`curveBump`)&&t){var r=XX[`${n}${t===`vertical`?`Y`:`X`}`];if(r)return r}return XX[n]||vW},tZ={connectNulls:!1,type:`linear`},k_e=e=>{var t=e.type,n=t===void 0?tZ.type:t,r=e.points,i=r===void 0?[]:r,a=e.baseLine,o=e.layout,s=e.connectNulls,c=s===void 0?tZ.connectNulls:s,l=O_e(n,o),u=c?i.filter(ZX):i;if(Array.isArray(a)){var d,f=i.map((e,t)=>YX(YX({},e),{},{base:a[t]}));return d=o===`vertical`?SW().y(eZ).x1($X).x0(e=>e.base.x):SW().x($X).y1(eZ).y0(e=>e.base.y),d.defined(QX).curve(l)(c?f.filter(QX):f)}return(o===`vertical`&&X(a)?SW().y(eZ).x1($X).x0(a):X(a)?SW().x($X).y1(eZ).y0(a):xW().x($X).y(eZ)).defined(ZX).curve(l)(u)},nZ=e=>{var t=e.className,n=e.points,r=e.path,i=e.pathRef,a=wX();if((!n||!n.length)&&!r)return null;var o={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||a,connectNulls:e.connectNulls},s=n&&n.length?k_e(o):r;return R.createElement(`path`,qX({},lU(e),sG(e),{className:nU(`recharts-curve`,t),d:s===null?void 0:s,ref:i}))},A_e=[`x`,`y`,`top`,`left`,`width`,`height`,`className`];function rZ(){return rZ=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},rZ.apply(null,arguments)}function iZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function j_e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
362t%2?iZ(Object(n),!0).forEach(function(t){M_e(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function M_e(e,t,n){return(t=N_e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N_e(e){var t=P_e(e,`string`);return typeof t==`symbol`?t:t+``}function P_e(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function F_e(e,t){if(e==null)return{};var n,r,i=I_e(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function I_e(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var L_e=(e,t,n,r,i,a)=>`M${e},${i}v${r}M${a},${t}h${n}`,R_e=e=>{var t=e.x,n=t===void 0?0:t,r=e.y,i=r===void 0?0:r,a=e.top,o=a===void 0?0:a,s=e.left,c=s===void 0?0:s,l=e.width,u=l===void 0?0:l,d=e.height,f=d===void 0?0:d,p=e.className,m=F_e(e,A_e),h=j_e({x:n,y:i,top:o,left:c,width:u,height:f},m);return!X(n)||!X(i)||!X(u)||!X(f)||!X(o)||!X(c)?null:R.createElement(`path`,rZ({},dU(h),{className:nU(`recharts-cross`,p),d:L_e(n,i,u,f,o,c)}))};function z_e(e,t,n,r){var i=r/2;return{stroke:`none`,fill:`#ccc`,x:e===`horizontal`?t.x-i:n.left+.5,y:e===`horizontal`?n.top+.5:t.y-i,width:e===`horizontal`?r:n.width-1,height:e===`horizontal`?n.height-1:r}}var aZ=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],oZ=(e,t)=>e.map((e,n)=>e*t**n).reduce((e,t)=>e+t),sZ=(e,t)=>n=>oZ(aZ(e,t),n),B_e=(e,t)=>n=>oZ([...aZ(e,t).map((e,t)=>e*t).slice(1),0],n),V_e=e=>{var t,n=e.split(`(`);if(n.length!==2||n[0]!==`cubic-bezier`)return null;var r=(t=n[1])==null||(t=t.split(`)`)[0])==null?void 0:t.split(`,`);if(r==null||r.length!==4)return null;var i=r.map(e=>parseFloat(e));return[i[0],i[1],i[2],i[3]]},H_e=function(){var e=[...arguments];if(e.length===1)switch(e[0]){case`linear`:return[0,0,1,1];case`ease`:return[.25,.1,.25,1];case`ease-in`:return[.42,0,1,1];case`ease-out`:return[.42,0,.58,1];case`ease-in-out`:return[0,0,.58,1];default:var t=V_e(e[0]);if(t)return t}return e.length===4?e:[0,0,1,1]},U_e=(e,t,n,r)=>{var i=sZ(e,n),a=sZ(t,r),o=B_e(e,n),s=e=>e>1?1:e<0?0:e,c=e=>{for(var t=e>1?1:e,n=t,r=0;r<8;++r){var c=i(n)-t,l=o(n);if(Math.abs(c-t)<1e-4||l<1e-4)return a(n);n=s(n-c/l)}return a(n)};return c.isStepper=!1,c},cZ=function(){return U_e(...H_e(...arguments))},W_e=function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.stiff,n=t===void 0?100:t,r=e.damping,i=r===void 0?8:r,a=e.dt,o=a===void 0?16.67:a,s=1,c=[0],l=0,u=0,d=1e4,f=0;f<d;){var p=-(l-s)*n,m=u*i;if(u+=(p-m)*o/1e3,l+=u*o/1e3,c.push(l),Math.abs(l-s)<1e-4&&Math.abs(u)<1e-4)break;f++}c[c.length-1]=s;var h=c.length-1;return e=>{if(e<=0)return 0;if(e>=1)return s;var t=e*h,n=Math.floor(t),r=t-n;return(c[n]??0)+((c[n+1]??0)-(c[n]??0))*r}},G_e=e=>{if(typeof e==`string`)switch(e){case`ease`:case`ease-in-out`:case`ease-out`:case`ease-in`:case`linear`:return cZ(e);case`spring`:return W_e();default:if(e.split(`(`)[0]===`cubic-bezier`)return cZ(e)}return typeof e==`function`?e:null},lZ=(0,R.createContext)((e,t,n)=>{var r,i=a=>{var o=t.tick(a);if(t.getState()===`active`){if(n(t.getInterpolated()),t.getProgress()===1){t.complete(),r=void 0;return}r=e.setTimeout(i,o);return}r=e.setTimeout(i,o)};return r=e.setTimeout(i,0),()=>r?.()});lZ.Provider;function K_e(e){var t=(0,R.useContext)(lZ);return(0,R.useMemo)(()=>e??t,[e,t])}function q_e(e,t,n){return(t=J_e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J_e(e){var t=Y_e(e,`string`);return typeof t==`symbol`?t:t+``}function Y_e(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var uZ=`init`,dZ=`pending`,fZ=`active`,X_e=`completed`;function pZ(e){return Math.max(0,e)}var Z_e=class{getAnimationStartedTime(){return this.animationStartedTime}getBeginStartedTime(){return this.beginStartedTime}constructor(e){var t;q_e(this,`state`,uZ),this.animationId=e.animationId,this.onAnimationEnd=e.onAnimationEnd,this.animationDuration=pZ(e.animationDuration),this.animationBegin=pZ(e.animationBegin),this.progress=0,this.from=e.from,this.to=e.to,this.easing=e.easing,(t=e.onAnimationStart)==null||t.call(e)}getState(){return this.state}getEasing(){return this.easing}getAnimationDuration(){return this.animationDuration}tick(e){if(this.getState()===uZ)return this.state=dZ,this.beginStartedTime=e,this.animationBegin;if(this.getState()===dZ){if(this.beginStartedTime==null)throw Error();var t=e-this.beginStartedTime;return t>=this.animationBegin?(this.state=fZ,this.animationStartedTime=e,this.nextAnimationUpdate(0)):pZ(this.animationBegin-t)}if(this.getState()===fZ){if(this.animationStartedTime==null)throw Error();var n=e-this.animationStartedTime;return this.setProgress(n/this.animationDuration),this.nextAnimationUpdate(n)}return 0}setProgress(e){this.progress=Math.min(1,Math.max(0,e))}getProgress(){return this.progress}complete(){if(this.progress=1,this.state===`active`){var e;(e=this.onAnimationEnd)==null||e.call(this)}this.state=X_e}getFrom(){return this.from}getTo(){return this.to}getAnimationId(){return this.animationId}getAnimationBegin(){return this.animationBegin}},Q_e=class extends Z_e{nextAnimationUpdate(){return 0}getInterpolated(){return this.easing(WU(this.getFrom(),this.getTo(),this.getProgress()))}},$_e=class{setTimeout(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),r=null,i=a=>{a-n>=t?e(a):r=requestAnimationFrame(i)};return r=requestAnimationFrame(i),()=>{r!=null&&cancelAnimationFrame(r)}}};
362function eve(e,t){return ive(e)||rve(e,t)||nve(e,t)||tve()}function tve(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 363In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nve(e,t){if(e){if(typeof e==`string`)return mZ(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mZ(e,t):void 0}}function mZ(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function rve(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function ive(e){if(Array.isArray(e))return e}var ave={begin:0,duration:1e3,easing:`ease`,isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},hZ=0,gZ=1;function _Z(e){var t=hG(e,ave),n=t.animationId,r=t.isActive,i=t.canBegin,a=t.duration,o=t.easing,s=t.begin,c=t.onAnimationEnd,l=t.onAnimationStart,u=t.children,d=HX(),f=r===`auto`?!BX.isSsr&&!d:r,p=K_e(t.animationController),m=eve((0,R.useState)(f?hZ:gZ),2),h=m[0],g=m[1];return(0,R.useEffect)(()=>{f||g(gZ)},[f]),(0,R.useEffect)(()=>{var e=G_e(o);return!f||!i||e==null?YU:p(new $_e,new Q_e({animationId:n,easing:e,animationDuration:a,animationBegin:s,onAnimationStart:l,onAnimationEnd:c,from:hZ,to:gZ}),g)},[p,n,f,i,a,o,s,l,c]),u(Number(h))}function vZ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`animation-`,n=(0,R.useRef)(VU(t)),r=(0,R.useRef)(e);return r.current!==e&&(n.current=VU(t),r.current=e),n.current}var ove=e=>e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`),sve=(e,t,n)=>e.map(e=>`${ove(e)} ${t}ms ${n}`).join(`,`),cve=[`radius`],lve=[`radius`],uve,dve,fve,pve,mve,hve,gve,_ve,vve,yve;function yZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yZ(Object(n),!0).forEach(function(t){bve(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bve(e,t,n){return(t=xve(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xve(e){var t=Sve(e,`string`);return typeof t==`symbol`?t:t+``}function Sve(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function xZ(){return xZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xZ.apply(null,arguments)}function SZ(e,t){if(e==null)return{};var n,r,i=Cve(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Cve(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function wve(e,t){return Ove(e)||Dve(e,t)||Eve(e,t)||Tve()}function Tve(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 364In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eve(e,t){if(e){if(typeof e==`string`)return CZ(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?CZ(e,t):void 0}}function CZ(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Dve(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}
364finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Ove(e){if(Array.isArray(e))return e}function wZ(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var TZ=(e,t,n,r,i)=>{var a=PU(n),o=PU(r),s=Math.min(Math.abs(a)/2,Math.abs(o)/2),c=o>=0?1:-1,l=a>=0?1:-1,u=+(o>=0&&a>=0||o<0&&a<0),d;if(s>0&&Array.isArray(i)){for(var f=[0,0,0,0],p=0,m=4;p<m;p++){var h=i[p]??0;f[p]=h>s?s:h}d=FU(uve||=wZ([`M`,`,`,``]),e,t+c*f[0]),f[0]>0&&(d+=FU(dve||=wZ([`A `,`,`,`,0,0,`,`,`,`,`,``]),f[0],f[0],u,e+l*f[0],t)),d+=FU(fve||=wZ([`L `,`,`,``]),e+n-l*f[1],t),f[1]>0&&(d+=FU(pve||=wZ([`A `,`,`,`,0,0,`,`, 365 `,`,`,``]),f[1],f[1],u,e+n,t+c*f[1])),d+=FU(mve||=wZ([`L `,`,`,``]),e+n,t+r-c*f[2]),f[2]>0&&(d+=FU(hve||=wZ([`A `,`,`,`,0,0,`,`, 366 `,`,`,``]),f[2],f[2],u,e+n-l*f[2],t+r)),d+=FU(gve||=wZ([`L `,`,`,``]),e+l*f[3],t+r),f[3]>0&&(d+=FU(_ve||=wZ([`A `,`,`,`,0,0,`,`, 367 `,`,`,``]),f[3],f[3],u,e,t+r-c*f[3])),d+=`Z`}else if(s>0&&i===+i&&i>0){var g=Math.min(s,i);d=FU(vve||=wZ(`M .,. 368 A .,.,0,0,.,.,. 369 L .,. 370 A .,.,0,0,.,.,. 371 L .,. 372 A .,.,0,0,.,.,. 373 L .,. 374 A .,.,0,0,.,.,. Z`.split(`.`)),e,t+c*g,g,g,u,e+l*g,t,e+n-l*g,t,g,g,u,e+n,t+c*g,e+n,t+r-c*g,g,g,u,e+n-l*g,t+r,e+l*g,t+r,g,g,u,e,t+r-c*g)}else d=FU(yve||=wZ([`M `,`,`,` h `,` v `,` h `,` Z`]),e,t,n,r,-n);return d},EZ={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},kve=e=>{var t=hG(e,EZ),n=(0,R.useRef)(null),r=wve((0,R.useState)(-1),2),i=r[0],a=r[1];(0,R.useEffect)(()=>{if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&a(e)}catch{}},[]);var o=t.x,s=t.y,c=t.width,l=t.height,u=t.radius,d=t.className,f=t.animationEasing,p=t.animationDuration,m=t.animationBegin,h=t.isAnimationActive,g=t.isUpdateAnimationActive,_=(0,R.useRef)(c),v=(0,R.useRef)(l),y=(0,R.useRef)(o),b=(0,R.useRef)(s),x=vZ((0,R.useMemo)(()=>({x:o,y:s,width:c,height:l,radius:u}),[o,s,c,l,u]),`rectangle-`);if(o!==+o||s!==+s||c!==+c||l!==+l||c===0||l===0)return null;var S=nU(`recharts-rectangle`,d);if(!g){var C=dU(t);C.radius;var w=SZ(C,cve);return R.createElement(`path`,xZ({},w,{x:PU(o),y:PU(s),width:PU(c),height:PU(l),radius:typeof u==`number`?u:void 0,className:S,d:TZ(o,s,c,l,u)}))}var T=_.current,E=v.current,D=y.current,O=b.current,k=`0px ${i===-1?1:i}px`,A=`${i}px ${i}px`,j=sve([`strokeDasharray`],p,typeof f==`string`?f:EZ.animationEasing);return R.createElement(_Z,{animationId:x,key:x,canBegin:i>0,duration:p,easing:f,isActive:g,begin:m},e=>{var r=WU(T,c,e),i=WU(E,l,e),a=WU(D,o,e),d=WU(O,s,e);n.current&&(_.current=r,v.current=i,y.current=a,b.current=d);var f=h?e>0?{transition:j,strokeDasharray:A}:{strokeDasharray:k}:{strokeDasharray:A},p=dU(t);p.radius;var m=SZ(p,lve);return R.createElement(`path`,xZ({},m,{radius:typeof u==`number`?u:void 0,className:S,d:TZ(a,d,r,i,u),ref:n,style:bZ(bZ({},f),t.style)}))})};function DZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function OZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?DZ(Object(n),!0).forEach(function(t){Ave(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ave(e,t,n){return(t=jve(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jve(e){var t=Mve(e,`string`);return typeof t==`symbol`?t:t+``}function Mve(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var kZ=Math.PI/180,Nve=e=>e*180/Math.PI,AZ=(e,t,n,r)=>({x:e+Math.cos(-kZ*r)*n,y:t+Math.sin(-kZ*r)*n}),Pve=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},Fve=(e,t)=>
374{var n=e.x,r=e.y,i=t.x,a=t.y;return Math.sqrt((n-i)**2+(r-a)**2)},Ive=(e,t)=>{var n=e.x,r=e.y,i=t.cx,a=t.cy,o=Fve({x:n,y:r},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var s=(n-i)/o,c=Math.acos(s);return r>a&&(c=2*Math.PI-c),{radius:o,angle:Nve(c),angleInRadian:c}},Lve=e=>{var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),a=Math.min(r,i);return{startAngle:t-a*360,endAngle:n-a*360}},Rve=(e,t)=>{var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),a=Math.floor(r/360);return e+Math.min(i,a)*360},zve=(e,t)=>{var n=e.relativeX,r=e.relativeY,i=Ive({x:n,y:r},t),a=i.radius,o=i.angle,s=t.innerRadius,c=t.outerRadius;if(a<s||a>c||a===0)return null;var l=Lve(t),u=l.startAngle,d=l.endAngle,f=o,p;if(u<=d){for(;f>d;)f-=360;for(;f<u;)f+=360;p=f>=u&&f<=d}else{for(;f>u;)f-=360;for(;f<d;)f+=360;p=f>=d&&f<=u}return p?OZ(OZ({},t),{},{radius:a,angle:Rve(f,t)}):null};function jZ(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,a=e.endAngle;return{points:[AZ(t,n,r,i),AZ(t,n,r,a)],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}var Bve,Vve,Hve,Uve,Wve,Gve,Kve;function MZ(){return MZ=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},MZ.apply(null,arguments)}function NZ(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var qve=(e,t)=>IU(t-e)*Math.min(Math.abs(t-e),359.999),PZ=e=>{var t=e.cx,n=e.cy,r=e.radius,i=e.angle,a=e.sign,o=e.isExternal,s=e.cornerRadius,c=e.cornerIsExternal,l=s*(o?1:-1)+r,u=Math.asin(s/l)/kZ,d=c?i:i+a*u,f=AZ(t,n,l,d),p=AZ(t,n,r,d),m=c?i-a*u:i;return{center:f,circleTangency:p,lineTangency:AZ(t,n,l*Math.cos(u*kZ),m),theta:u}},FZ=e=>{var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,a=e.startAngle,o=e.endAngle,s=qve(a,o),c=a+s,l=AZ(t,n,i,a),u=AZ(t,n,i,c),d=FU(Bve||=NZ([`M `,`,`,` 375 A `,`,`,`,0, 376 `,`,`,`, 377 `,`,`,` 378 `]),l.x,l.y,i,i,+(Math.abs(s)>180),+(a>c),u.x,u.y);if(r>0){var f=AZ(t,n,r,a),p=AZ(t,n,r,c);d+=FU(Vve||=NZ([`L `,`,`,` 379 A `,`,`,`,0, 380 `,`,`,`, 381 `,`,`,` Z`]),p.x,p.y,r,r,+(Math.abs(s)>180),+(a<=c),f.x,f.y)}else d+=FU(Hve||=NZ([`L `,`,`,` Z`]),t,n);return d},Jve=e=>{var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,o=e.forceCornerRadius,s=e.cornerIsExternal,c=e.startAngle,l=e.endAngle,u=IU(l-c),d=PZ({cx:t,cy:n,radius:i,angle:c,sign:u,cornerRadius:a,cornerIsExternal:s}),f=d.circleTangency,p=d.lineTangency,m=d.theta,h=PZ({cx:t,cy:n,radius:i,angle:l,sign:-u,cornerRadius:a,cornerIsExternal:s}),g=h.circleTangency,_=h.lineTangency,v=h.theta,y=s?Math.abs(c-l):Math.abs(c-l)-m-v;if(y<0)return o?FU(Uve||=NZ([`M `,`,`,` 382 a`,`,`,`,0,0,1,`,`,0 383 a`,`,`,`,0,0,1,`,`,0 384 `]),p.x,p.y,a,a,a*2,a,a,-a*2):FZ({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:c,endAngle:l});var b=FU(Wve||=NZ([`M `,`,`,` 385 A`,`,`,`,0,0,`,`,`,`,`,` 386 A`,`,`,`,0,`,`,`,`,`,`,`,` 387 A`,`,`,`,0,0,`,`,`,`,`,` 388 `]),p.x,p.y,a,a,+(u<0),f.x,f.y,i,i,+(y>180),+(u<0),g.x,g.y,a,a,+(u<0),_.x,_.y);if(r>0){var x=PZ({cx:t,cy:n,radius:r,angle:c,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),S=x.circleTangency,C=x.lineTangency,w=x.theta,T=PZ({cx:t,cy:n,radius:r,angle:l,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),E=T.circleTangency,D=T.lineTangency,O=T.theta,k=s?Math.abs(c-l):Math.abs(c-l)-w-O;if(k<0&&a===0)return`${b}L${t},${n}Z`;b+=FU(Gve||=NZ([`L`,`,`,` 389 A`,`,`,`,0,0,`,`,`,`,`,` 390 A`,`,`,`,0,`,`,`,`,`,`,`,` 391 A`,`,`,`,0,0,`,`,`,`,`,`Z`]),D.x,D.y,a,a,+(u<0),E.x,E.y,r,r,+(k>180),+(u>0),S.x,S.y,a,a,+(u<0),C.x,C.y)}else b+=FU(Kve||=NZ([`L`,`,`,`Z`]),t,n);return b},Yve={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Xve=e=>{var t=hG(e,Yve),n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,c=t.cornerIsExternal,l=t.startAngle,u=t.endAngle,d=t.className;if(a<i||l===u)return null;var f=nU(`recharts-sector`,d),p=a-i,m=HU(o,p,0,!0),h=m>0&&Math.abs(l-u)<360?Jve({cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:Math.min(m,p/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:l,endAngle:u}):FZ({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:l,endAngle:u});return R.createElement(`path`,MZ({},dU(t),{className:f,d:h}))};function Zve(e,t,n){if(e===`horizontal`)return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e===`vertical`)return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(oG(t)){if(e===`centric`){var r=t.cx,i=t.cy,a=t.innerRadius,o=t.outerRadius,s=t.angle,c=AZ(r,i,a,s),l=AZ(r,i,o,s);return[{x:c.x,y:c.y},{x:l.x,y:l.y}]}return jZ(t)}}function Qve(e){return DU(e)?NaN:Number(e)}function IZ(e){return e?(e=Qve(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}
391function LZ(e,t,n){n&&typeof n!=`number`&&KK(e,t,n)&&(t=n=void 0),e=IZ(e),t===void 0?(t=e,e=0):t=IZ(t),n=n===void 0?e<t?1:-1:IZ(n);let r=Math.max(Math.ceil((t-e)/(n||1)),0),i=Array(r);for(let t=0;t<r;t++)i[t]=e,e+=n;return i}var RZ=e=>e.chartData,zZ=Q([RZ],e=>{var t=e.chartData==null?0:e.chartData.length-1;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),BZ=(e,t,n,r)=>r?zZ(e):RZ(e),$ve=(e,t,n)=>n?zZ(e):RZ(e),eye=Q([BZ],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t==null?[]:t.slice(n,r+1)});Q([zZ],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t==null?[]:t.slice(n,r+1)});var tye=Q([RZ],e=>{var t=e.chartData,n=e.dataStartIndex,r=e.dataEndIndex;return t==null?[]:t.slice(n,r+1)});function VZ(e,t){return aye(e)||iye(e,t)||rye(e,t)||nye()}function nye(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 392In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rye(e,t){if(e){if(typeof e==`string`)return HZ(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?HZ(e,t):void 0}}function HZ(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function iye(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function aye(e){if(Array.isArray(e))return e}function UZ(e){if(Array.isArray(e)&&e.length===2){var t=VZ(e,2),n=t[0],r=t[1];if(LY(n)&&LY(r))return!0}return!1}function WZ(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function GZ(e,t){if(t&&typeof e!=`function`&&Array.isArray(e)&&e.length===2){var n=VZ(e,2),r=n[0],i=n[1],a,o;if(LY(r))a=r;else if(typeof r==`function`)return;if(LY(i))o=i;else if(typeof i==`function`)return;var s=[a,o];if(UZ(s))return s}}function oye(e,t,n){if(!(!n&&t==null)){if(typeof e==`function`&&t!=null)try{var r=e(t,n);if(UZ(r))return WZ(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var i=VZ(e,2),a=i[0],o=i[1],s,c;if(a===`auto`)t!=null&&(s=Math.min(...t));else if(X(a))s=a;else if(typeof a==`function`)try{t!=null&&(s=a(t?.[0]))}catch{}else if(typeof a==`string`&&KY.test(a)){var l=KY.exec(a);if(l==null||l[1]==null||t==null)s=void 0;else{var u=+l[1];s=t[0]-u}}else s=t?.[0];if(o===`auto`)t!=null&&(c=Math.max(...t));else if(X(o))c=o;else if(typeof o==`function`)try{t!=null&&(c=o(t?.[1]))}catch{}else if(typeof o==`string`&&qY.test(o)){var d=qY.exec(o);if(d==null||d[1]==null||t==null)c=void 0;else{var f=+d[1];c=t[1]+f}}else c=t?.[1];var p=[s,c];if(UZ(p))return t==null?p:WZ(p,t,n)}}}var KZ=r(a(((e,t)=>{(function(e){var n=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:`2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286`},i=!0,a=`[DecimalError] `,o=a+`Invalid argument: `,s=a+`Exponent out of range: `,c=Math.floor,l=Math.pow,u=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d,f=1e7,p=7,m=9007199254740991,h=c(m/p),g={};g.absoluteValue=g.abs=function(){var e=new this.constructor(this);return e.s&&=1,e},g.comparedTo=g.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*p;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n},g.dividedBy=g.div=function(e){return b(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this,n=t.constructor;return D(b(t,new n(e),0,1),n.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return S(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return this.s===0},g.lessThan=g.lt=function(e){return this.cmp(e)<0}
vendor: 9,335 bytes, line 392
392,g.lessThanOrEqualTo=g.lte=function(e){return this.cmp(e)<1},g.logarithm=g.log=function(e){var t,n=this,r=n.constructor,o=r.precision,s=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(d))throw Error(a+`NaN`);if(n.s<1)throw Error(a+(n.s?`NaN`:`-Infinity`));return n.eq(d)?new r(0):(i=!1,t=b(T(n,s),T(e,s),s),i=!0,D(t,o))},g.minus=g.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?O(t,e):_(t,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(a+`NaN`);return n.s?(i=!1,t=b(n,e,0,1).times(e),i=!0,n.minus(t)):D(new r(n),o)},g.naturalExponential=g.exp=function(){return x(this)},g.naturalLogarithm=g.ln=function(){return T(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?_(t,e):O(t,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(o+e);if(t=S(i)+1,r=i.d.length-1,n=r*p+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},g.squareRoot=g.sqrt=function(){var e,t,n,r,o,s,l,u=this,d=u.constructor;if(u.s<1){if(!u.s)return new d(0);throw Error(a+`NaN`)}for(e=S(u),i=!1,o=Math.sqrt(+u),o==0||o==1/0?(t=y(u.d),(t.length+e)%2==0&&(t+=`0`),o=Math.sqrt(t),e=c((e+1)/2)-(e<0||e%2),o==1/0?t=`5e`+e:(t=o.toExponential(),t=t.slice(0,t.indexOf(`e`)+1)+e),r=new d(t)):r=new d(o.toString()),n=d.precision,o=l=n+3;;)if(s=r,r=s.plus(b(u,s,l+2)).times(.5),y(s.d).slice(0,l)===(t=y(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),o==l&&t==`4999`){if(D(s,n+1,0),s.times(s).eq(u)){r=s;break}}else if(t!=`9999`)break;l+=4}return i=!0,D(r,n)},g.times=g.mul=function(e){var t,n,r,a,o,s,c,l,u,d=this,p=d.constructor,m=d.d,h=(e=new p(e)).d;if(!d.s||!e.s)return new p(0);for(e.s*=d.s,n=d.e+e.e,l=m.length,u=h.length,l<u&&(o=m,m=h,h=o,s=l,l=u,u=s),o=[],s=l+u,r=s;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,a=l+r;a>r;)c=o[a]+h[r]*m[a-r-1]+t,o[a--]=c%f|0,t=c/f|0;o[a]=(o[a]+t)%f|0}for(;!o[--s];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,i?D(e,p.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var r=this,i=r.constructor;return r=new i(r),e===void 0?r:(v(e,0,n),t===void 0?t=i.rounding:v(t,0,8),D(r,e+S(r)+1,t))},g.toExponential=function(e,t){var r,i=this,a=i.constructor;return e===void 0?r=k(i,!0):(v(e,0,n),t===void 0?t=a.rounding:v(t,0,8),i=D(new a(i),e+1,t),r=k(i,!0,e+1)),r},g.toFixed=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?k(a):(v(e,0,n),t===void 0?t=o.rounding:v(t,0,8),i=D(new o(a),e+S(a)+1,t),r=k(i.abs(),!1,e+S(i)+1),a.isneg()&&!a.isZero()?`-`+r:r)},g.toInteger=g.toint=function(){var e=this,t=e.constructor;return D(new t(e),S(e)+1,t.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,n,r,o,s,l,u=this,f=u.constructor,h=12,g=+(e=new f(e));if(!e.s)return new f(d);if(u=new f(u),!u.s){if(e.s<1)throw Error(a+`Infinity`);return u}if(u.eq(d))return u;if(r=f.precision,e.eq(d))return D(u,r);if(t=e.e,n=e.d.length-1,l=t>=n,s=u.s,!l){if(s<0)throw Error(a+`NaN`)}else if((n=g<0?-g:g)<=m){for(o=new f(d),t=Math.ceil(r/p+4),i=!1;n%2&&(o=o.times(u),A(o.d,t)),n=c(n/2),n!==0;)u=u.times(u),A(u.d,t);return i=!0,e.s<0?new f(d).div(o):D(o,r)}return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,i=!1,o=e.times(T(u,r+h)),i=!0,o=x(o),o.s=s,o},g.toPrecision=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?(r=S(a),i=k(a,r<=o.toExpNeg||r>=o.toExpPos)):(v(e,1,n),t===void 0?t=o.rounding:v(t,0,8),a=D(new o(a),e,t),r=S(a),i=k(a,e<=r||r<=o.toExpNeg,e)),i},g.toSignificantDigits=g.tosd=function(e,t){var r=this,i=r.constructor;return e===void 0?(e=i.precision,t=i.rounding):(v(e,1,n),t===void 0?t=i.rounding:v(t,0,8)),D(new i(r),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=this,t=S(e),n=e.constructor;return k(e,t<=n.toExpNeg||t>=n.toExpPos)};function _(e,t){var n,r,a,o,s,c,l,u,d=e.constructor,m=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),i?D(t,m):t;if(l=e.d,u=t.d,s=e.e,a=t.e,l=l.slice(),o=s-a,o){for(o<0?(r=l,o=-o,c=u.length):(r=u,a=s,c=l.length),s=Math.ceil(m/p),c=s>c?s+1:c+1,o>c&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(c=l.length,o=u.length,c-o<0&&(o=c,r=u,u=l,l=r),n=0;o;)n=(l[--o]=l[o]+u[o]+n)/f|0,l[o]%=f;for(n&&(l.unshift(n),++a),c=l.length;l[--c]==0;)l.pop();return t.d=l,t.e=a,i?D(t,m):t}function v(e,t,n){if(e!==~~e||e<t||e>n)throw Error(o+e)}function y(e){var t,n,r,i=e.length-1,a=``,o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+``,n=p-r.length,n&&(a+=w(n)),a+=r;o=e[t],r=o+``,n=p-r.length,n&&(a+=w(n))}else if(o===0)return`0`;for(;o%10==0;)o/=10;return a+o}var b=(function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%f|0,r=n/f|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=+(e[n]<t[n]),e[n]=r*f+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,s){var c,l,u,d,m,h,g,_,v,y,b,x,C,w,T,E,O,k,A=r.constructor,j=r.s==i.s?1:-1,M=r.d,N=i.d;if(!r.s)return new A(r);if(!i.s)throw Error(a+`Division by zero`);for(l=r.e-i.e,O=N.length,T=M.length,g=new A(j),_=g.d=[],u=0;N[u]==(M[u]||0);)++u;if(N[u]>(M[u]||0)&&--l,x=o==null?o=A.precision:s?o+(S(r)-S(i))+1:o,x<0)return new A(0);if(x=x/p+2|0,u=0,O==1)for(d=0,N=N[0],x++;(u<T||d)&&x--;u++)C=d*f+(M[u]||0),_[u]=C/N|0,d=C%N|0;else{for(d=f/(N[0]+1)|0,d>1&&(N=e(N,d),M=e(M,d),O=N.length,T=M.length),w=O,v=M.slice(0,O),y=v.length;y<O;)v[y++]=0;k=N.slice(),k.unshift(0),E=N[0],N[1]>=f/2&&++E;do d=0,c=t(N,v,O,y),c<0?(b=v[0],O!=y&&(b=b*f+(v[1]||0)),d=b/E|0,d>1?(d>=f&&(d=f-1),m=e(N,d),h=m.length,y=v.length,c=t(m,v,h,y),c==1&&(d--,n(m,O<h?k:N,h))):(d==0&&(c=d=1),m=N.slice()),h=m.length,h<y&&m.unshift(0),n(v,m,y),c==-1&&(y=v.length,c=t(N,v,O,y),c<1&&(d++,n(v,O<y?k:N,y))),y=v.length):c===0&&(d++,v=[0]),_[u++]=d,c&&v[0]?v[y++]=M[w]||0:(v=[M[w]],y=1);while((w++<T||v[0]!==void 0)&&x--)}return _[0]||_.shift(),g.e=l,D(g,s?o+S(g)+1:o)}})();function x(e,t){var n,r,a,o,c,u,f=0,p=0,m=e.constructor,h=m.precision;if(S(e)>16)throw Error(s+S(e));if(!e.s)return new m(d);for(t==null?(i=!1,u=h):u=t,c=new m(.03125);e.abs().gte(.1);)e=e.times(c),p+=5;for(r=Math.log(l(2,p))/Math.LN10*2+5|0,u+=r,n=a=o=new m(d),m.precision=u;;){if(a=D(a.times(e),u),n=n.times(++f),c=o.plus(b(a,n,u)),y(c.d).slice(0,u)===y(o.d).slice(0,u)){for(;p--;)o=D(o.times(o),u);return m.precision=h,t==null?(i=!0,D(o,h)):o}o=c}}function S(e){for(var t=e.e*p,n=e.d[0];n>=10;n/=10)t++;return t}function C(e,t,n){if(t>e.LN10.sd())throw i=!0,n&&(e.precision=n),Error(a+`LN10 precision limit exceeded`);return D(new e(e.LN10),t)}function w(e){for(var t=``;e--;)t+=`0`;return t}function T(e,t){var n,r,o,s,c,l,u,f,p,m=1,h=10,g=e,_=g.d,v=g.constructor,x=v.precision;if(g.s<1)throw Error(a+(g.s?`NaN`:`-Infinity`));if(g.eq(d))return new v(0);if(t==null?(i=!1,f=x):f=t,g.eq(10))return t??(i=!0),C(v,f);if(f+=h,v.precision=f,n=y(_),r=n.charAt(0),s=S(g),Math.abs(s)<0x5543df729c000){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)g=g.times(e),n=y(g.d),r=n.charAt(0),m++;s=S(g),r>1?(g=new v(`0.`+n),s++):g=new v(r+`.`+n.slice(1))}else return u=C(v,f+2,x).times(s+``),g=T(new v(r+`.`+n.slice(1)),f-h).plus(u),v.precision=x,t==null?(i=!0,D(g,x)):g;for(l=c=g=b(g.minus(d),g.plus(d),f),p=D(g.times(g),f),o=3;;){if(c=D(c.times(p),f),u=l.plus(b(c,new v(o),f)),y(u.d).slice(0,f)===y(l.d).slice(0,f))return l=l.times(2),s!==0&&(l=l.plus(C(v,f+2,x).times(s+``))),l=b(l,new v(m),f),v.precision=x,t==null?(i=!0,D(l,x)):l;l=u,o+=2}}function E(e,t){var n,r,a;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=c(n/p),e.d=[],r=(n+1)%p,n<0&&(r+=p),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=p;r<a;)e.d.push(+t.slice(r,r+=p));t=t.slice(r),r=p-t.length}else r-=a;for(;r--;)t+=`0`;if(e.d.push(+t),i&&(e.e>h||e.e<-h))throw Error(s+n)}else e.s=0,e.e=0,e.d=[0];return e}function D(e,t,n){var r,a,o,u,d,m,g,_,v=e.d;for(u=1,o=v[0];o>=10;o/=10)u++;if(r=t-u,r<0)r+=p,a=t,g=v[_=0];else{if(_=Math.ceil((r+1)/p),o=v.length,_>=o)return e;for(g=o=v[_],u=1;o>=10;o/=10)u++;r%=p,a=r-p+u}if(n!==void 0&&(o=l(10,u-a-1),d=g/o%10|0,m=t<0||v[_+1]!==void 0||g%o,m=n<4?(d||m)&&(n==0||n==(e.s<0?3:2)):d>5||d==5&&(n==4||m||n==6&&(r>0?a>0?g/l(10,u-a):0:v[_-1])%10&1||n==(e.s<0?8:7))),t<1||!v[0])return m?(o=S(e),v.length=1,t=t-o-1,v[0]=l(10,(p-t%p)%p),e.e=c(-t/p)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(r==0?(v.length=_,o=1,_--):(v.length=_+1,o=l(10,p-r),v[_]=a>0?(g/l(10,u-a)%l(10,a)|0)*o:0),m)for(;;)if(_==0){(v[0]+=o)==f&&(v[0]=1,++e.e);break}else{if(v[_]+=o,v[_]!=f)break;v[_--]=0,o=1}for(r=v.length;v[--r]===0;)v.pop();if(i&&(e.e>h||e.e<-h))throw Error(s+S(e));return e}function O(e,t){var n,r,a,o,s,c,l,u,d,m,h=e.constructor,g=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),i?D(t,g):t;if(l=e.d,m=t.d,r=t.e,u=e.e,l=l.slice(),s=u-r,s){for(d=s<0,d?(n=l,s=-s,c=m.length):(n=m,r=u,c=l.length),a=Math.max(Math.ceil(g/p),c)+2,s>a&&(s=a,n.length=1),n.reverse(),a=s;a--;)n.push(0);n.reverse()}else{for(a=l.length,c=m.length,d=a<c,d&&(c=a),a=0;a<c;a++)if(l[a]!=m[a]){d=l[a]<m[a];break}s=0}for(d&&(n=l,l=m,m=n,t.s=-t.s),c=l.length,a=m.length-c;a>
3920;--a)l[c++]=0;for(a=m.length;a>s;){if(l[--a]<m[a]){for(o=a;o&&l[--o]===0;)l[o]=f-1;--l[o],l[a]+=f}l[a]-=m[a]}for(;l[--c]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,i?D(t,g):t):new h(0)}function k(e,t,n){var r,i=S(e),a=y(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+`.`+a.slice(1)+w(r):o>1&&(a=a.charAt(0)+`.`+a.slice(1)),a=a+(i<0?`e`:`e+`)+i):i<0?(a=`0.`+w(-i-1)+a,n&&(r=n-o)>0&&(a+=w(r))):i>=o?(a+=w(i+1-o),n&&(r=n-i-1)>0&&(a=a+`.`+w(r))):((r=i+1)<o&&(a=a.slice(0,r)+`.`+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+=`.`),a+=w(r))),e.s<0?`-`+a:a}function A(e,t){if(e.length>t)return e.length=t,!0}function j(e){var t,n,r;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i){t.s=e.s,t.e=e.e,t.d=(e=e.d)?e.slice():e;return}if(typeof e==`number`){if(e*0!=0)throw Error(o+e);if(e>0)t.s=1;else if(e<0)e=-e,t.s=-1;else{t.s=0,t.e=0,t.d=[0];return}if(e===~~e&&e<1e7){t.e=0,t.d=[e];return}return E(t,e.toString())}else if(typeof e!=`string`)throw Error(o+e);if(e.charCodeAt(0)===45?(e=e.slice(1),t.s=-1):t.s=1,u.test(e))E(t,e);else throw Error(o+e)}if(i.prototype=g,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=j,i.config=i.set=M,e===void 0&&(e={}),e)for(r=[`precision`,`rounding`,`toExpNeg`,`toExpPos`,`LN10`],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function M(e){if(!e||typeof e!=`object`)throw Error(a+`Object expected`);var t,r,i,s=[`precision`,1,n,`rounding`,0,8,`toExpNeg`,-1/0,0,`toExpPos`,0,1/0];for(t=0;t<s.length;t+=3)if((i=e[r=s[t]])!==void 0)if(c(i)===i&&i>=s[t+1]&&i<=s[t+2])this[r]=i;else throw Error(o+r+`: `+i);if((i=e[r=`LN10`])!==void 0)if(i==Math.LN10)this[r]=new this(i);else throw Error(o+r+`: `+i);return this}r=j(r),r.default=r.Decimal=r,d=new r(1),typeof define==`function`&&define.amd?define(function(){return r}):t!==void 0&&t.exports?t.exports=r:(e||=typeof self<`u`&&self&&self.self==self?self:Function(`return this`)(),e.Decimal=r)})(e)}))());function qZ(e){return e===0?1:Math.floor(new KZ.default(e).abs().log(10).toNumber())+1}function JZ(e,t,n){for(var r=new KZ.default(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}function YZ(e,t){return uye(e)||lye(e,t)||cye(e,t)||sye()}function sye(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 393In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cye(e,t){if(e){if(typeof e==`string`)return XZ(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?XZ(e,t):void 0}}function XZ(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function lye(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function uye(e){if(Array.isArray(e))return e}var ZZ=e=>{var t=YZ(e,2),n=t[0],r=t[1],i=n,a=r;return n>r&&(i=r,a=n),[i,a]},QZ=(e,t,n)=>{if(e.lte(0))return new KZ.default(0);var r=qZ(e.toNumber()),i=new KZ.default(10).pow(r),a=e.div(i),o=r===1?.1:.05,s=new KZ.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);return t?new KZ.default(s.toNumber()):new KZ.default(Math.ceil(s.toNumber()))},$Z=(e,t,n)=>{if(e.lte(0))return new KZ.default(0);var r=[1,2,2.5,5],i=e.toNumber(),a=Math.floor(new KZ.default(i).abs().log(10).toNumber()),o=new KZ.default(10).pow(a),s=e.div(o).toNumber(),c=r.findIndex(e=>e>=s-1e-10);if(c===-1&&(o=o.mul(10),c=0),c+=n,c>=r.length){var l=Math.floor(c/r.length);c%=r.length,o=o.mul(new KZ.default(10).pow(l))}var u=new KZ.default(r[c]??1).mul(o);return t?u:new KZ.default(Math.ceil(u.toNumber()))},dye=(e,t,n)=>{var r=new KZ.default(1),i=new KZ.default(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new KZ.default(10).pow(qZ(e)-1),i=new KZ.default(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new KZ.default(Math.floor(e)))}
393else e===0?i=new KZ.default(Math.floor((t-1)/2)):n||(i=new KZ.default(Math.floor(e)));for(var o=Math.floor((t-1)/2),s=[],c=0;c<t;c++)s.push(i.add(new KZ.default(c-o).mul(r)).toNumber());return s},eQ=function(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:QZ;if(!Number.isFinite((t-e)/(n-1)))return{step:new KZ.default(0),tickMin:new KZ.default(0),tickMax:new KZ.default(0)};var o=a(new KZ.default(t).sub(e).div(n-1),r,i),s;e<=0&&t>=0?s=new KZ.default(0):(s=new KZ.default(e).add(t).div(2),s=s.sub(new KZ.default(s).mod(o)));var c=Math.ceil(s.sub(e).div(o).toNumber()),l=Math.ceil(new KZ.default(t).sub(s).div(o).toNumber()),u=c+l+1;return u>n?eQ(e,t,n,r,i+1,a):(u<n&&(l=t>0?l+(n-u):l,c=t>0?c:c+(n-u)),{step:o,tickMin:s.sub(new KZ.default(c).mul(o)),tickMax:s.add(new KZ.default(l).mul(o))})},tQ=function(e){var t=YZ(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`auto`,s=Math.max(i,2),c=YZ(ZZ([n,r]),2),l=c[0],u=c[1];if(l===-1/0||u===1/0){var d=u===1/0?[l,...Array(i-1).fill(1/0)]:[...Array(i-1).fill(-1/0),u];return n>r?d.reverse():d}if(l===u)return dye(l,i,a);var f=eQ(l,u,s,a,0,o===`snap125`?$Z:QZ),p=f.step,m=f.tickMin,h=f.tickMax,g=JZ(m,h.add(new KZ.default(.1).mul(p)),p);return n>r?g.reverse():g},nQ=function(e,t){var n=YZ(e,2),r=n[0],i=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`auto`,s=YZ(ZZ([r,i]),2),c=s[0],l=s[1];if(c===-1/0||l===1/0)return[r,i];if(c===l)return[c];var u=o===`snap125`?$Z:QZ,d=Math.max(t,2),f=u(new KZ.default(l).sub(c).div(d-1),a,0),p=[...JZ(new KZ.default(c),new KZ.default(l),f),l];if(a===!1){p=p.map(e=>Math.round(e));var m=p.length-1;m>0&&p[m]===p[m-1]&&(p=p.slice(0,m))}return r>i?p.reverse():p},fye=e=>e.rootProps.barCategoryGap,rQ=e=>e.rootProps.stackOffset,iQ=e=>e.rootProps.reverseStackOrder,aQ=e=>e.options.chartName,oQ=e=>e.rootProps.syncId,sQ=e=>e.rootProps.syncMethod,cQ=e=>e.options.eventEmitter,pye=e=>e.rootProps.baseValue,lQ={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},uQ={allowDecimals:!1,allowDuplicatedCategory:!0,allowDataOverflow:!1,angle:0,angleAxisId:0,axisLine:!0,axisLineType:`polygon`,cx:0,cy:0,hide:!1,includeHidden:!1,label:!1,niceTicks:`auto`,orientation:`outer`,reversed:!1,scale:`auto`,tick:!0,tickLine:!0,tickSize:8,type:`auto`,zIndex:lQ.axis},dQ={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,niceTicks:`auto`,label:!1,orientation:`right`,radiusAxisId:0,reversed:!1,scale:`auto`,stroke:`#ccc`,tick:!0,tickCount:5,tickLine:!0,type:`auto`,zIndex:lQ.axis},fQ=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function pQ(e,t,n){if(n!==`auto`)return n;if(e!=null)return HY(e,t)?`category`:`number`}function mQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?mQ(Object(n),!0).forEach(function(t){mye(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mye(e,t,n){return(t=hye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hye(e){var t=gye(e,`string`);return typeof t==`symbol`?t:t+``}function gye(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var gQ={allowDataOverflow:uQ.allowDataOverflow,allowDecimals:uQ.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:uQ.angleAxisId,includeHidden:!1,name:void 0,reversed:uQ.reversed,scale:uQ.scale,tick:uQ.tick,tickCount:void 0,ticks:void 0,type:uQ.type,unit:void 0,niceTicks:`auto`},_Q={allowDataOverflow:dQ.allowDataOverflow,allowDecimals:dQ.allowDecimals,allowDuplicatedCategory:dQ.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:dQ.radiusAxisId,includeHidden:dQ.includeHidden,name:void 0,reversed:dQ.reversed,scale:dQ.scale,tick:dQ.tick,tickCount:dQ.tickCount,ticks:void 0,type:dQ.type,unit:void 0,niceTicks:`auto`},vQ=Q([(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},EX],(e,t)=>{if(e!=null)return e;var n=pQ(t,`angleAxis`,gQ.type)??`category`;return hQ(hQ({},gQ),{},{type:n})}),yQ=Q([(e,t)=>e.polarAxis.radiusAxis[t],EX],(e,t)=>{if(e!=null)return e;var n=pQ(t,`radiusAxis`,_Q.type)??`category`;return hQ(hQ({},_Q),{},{type:n})}),bQ=e=>e.polarOptions,xQ=Q([ZY,QY,iX],Pve),SQ=Q([bQ,xQ],(e,t)=>{if(e!=null)return HU(e.innerRadius,t,0)}),CQ=Q([bQ,xQ],(e,t)=>{if(e!=null)return HU(e.outerRadius,t,t*.8)}),wQ=Q([bQ],e=>e==null?[0,0]:[e.startAngle,e.endAngle]);Q([vQ,wQ],fQ);var TQ=Q([xQ,SQ,CQ],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});Q([yQ,TQ],fQ);var EQ=Q([CX,bQ,SQ,CQ,ZY,QY],(e,t,n,r,i,a)=>
393{if(!(e!==`centric`&&e!==`radial`||t==null||n==null||r==null)){var o=t.cx,s=t.cy,c=t.startAngle,l=t.endAngle;return{cx:HU(o,i,i/2),cy:HU(s,a,a/2),innerRadius:n,outerRadius:r,startAngle:c,endAngle:l,clockWise:!1}}}),DQ=(e,t)=>t,OQ=(e,t,n)=>n;function kQ(e){return e?.id}function AQ(e,t,n){var r=t.chartData,i=r===void 0?[]:r,a=n.allowDuplicatedCategory,o=n.dataKey,s=new Map;return e.forEach(e=>{var t=e.data??i;if(!(t==null||t.length===0)){var n=kQ(e);t.forEach((t,r)=>{var i=o==null||a?r:String(VY(t,o,null)),c=VY(t,e.dataKey,0),l=s.has(i)?s.get(i):{};Object.assign(l,{[n]:c}),s.set(i,l)})}}),Array.from(s.values())}function jQ(e){return`stackId`in e&&e.stackId!=null&&e.dataKey!=null}var MQ=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function NQ(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function _ye(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}var PQ=e=>{var t=CX(e);return t===`horizontal`?`xAxis`:t===`vertical`?`yAxis`:t===`centric`?`angleAxis`:`radiusAxis`},FQ=e=>e.tooltip.settings.axisId;function IQ(e){if(e!=null){var t=e.ticks,n=e.bandwidth,r=e.range(),i=[Math.min(...r),Math.max(...r)];return{domain:()=>e.domain(),range:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(e){var t=i[0],n=i[1];return t<=n?e>=t&&e<=n:e>=n&&e<=t},bandwidth:n?()=>n.call(e):void 0,ticks:t?n=>t.call(e,n):void 0,map:(t,n)=>{var r=e(t);if(r!=null){if(e.bandwidth&&n!=null&&n.position){var i=e.bandwidth();switch(n.position){case`middle`:r+=i/2;break;case`end`:r+=i;break;default:break}}return r}}}}}var vye=(e,t)=>{if(t!=null)switch(e){case`linear`:if(!UZ(t)){for(var n,r,i=0;i<t.length;i++){var a=t[i];LY(a)&&((n===void 0||a<n)&&(n=a),(r===void 0||a>r)&&(r=a))}return n!==void 0&&r!==void 0?[n,r]:void 0}return t;default:return t}};function LQ(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function yye(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function RQ(e){let t,n,r;e.length===2?(t=e===LQ||e===yye?e:bye,n=e,r=e):(t=LQ,n=(t,n)=>LQ(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function bye(){return 0}function zQ(e){return e===null?NaN:+e}function*xye(e,t){if(t===void 0)for(let t of e)t!=null&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}var BQ=RQ(LQ),VQ=BQ.right;BQ.left,RQ(zQ).center;var HQ=class extends Map{constructor(e,t=wye){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(UQ(this,e))}has(e){return super.has(UQ(this,e))}set(e,t){return super.set(Sye(this,e),t)}delete(e){return super.delete(Cye(this,e))}};function UQ({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function Sye({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Cye({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function wye(e){return typeof e==`object`&&e?e.valueOf():e}function Tye(e=LQ){if(e===LQ)return WQ;if(typeof e!=`function`)throw TypeError(`compare is not a function`);return(t,n)=>{let r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function WQ(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:+(e>t))}var Eye=Math.sqrt(50),Dye=Math.sqrt(10),Oye=Math.sqrt(2);function GQ(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=Eye?10:a>=Dye?5:a>=Oye?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?GQ(e,t,n*2):[s,c,l]}
393function KQ(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?GQ(t,e,n):GQ(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r)if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o;else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function qQ(e,t,n){return t=+t,e=+e,n=+n,GQ(e,t,n)[2]}function JQ(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?qQ(t,e,n):qQ(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function YQ(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function XQ(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function ZQ(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?WQ:Tye(i);r>n;){if(r-n>600){let a=r-n+1,o=t-n+1,s=Math.log(a),c=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*c*(a-c)/a)*(o-a/2<0?-1:1),u=Math.max(n,Math.floor(t-o*c/a+l)),d=Math.min(r,Math.floor(t+(a-o)*c/a+l));ZQ(e,t,u,d,i)}let a=e[t],o=n,s=r;for(QQ(e,n,t),i(e[r],a)>0&&QQ(e,n,r);o<s;){for(QQ(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[n],a)===0?QQ(e,n,s):(++s,QQ(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function QQ(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function kye(e,t,n){if(e=Float64Array.from(xye(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return XQ(e);if(t>=1)return YQ(e);var r,i=(r-1)*t,a=Math.floor(i),o=YQ(ZQ(e,a).subarray(0,a+1));return o+(XQ(e.subarray(a+1))-o)*(i-a)}}function Aye(e,t,n=zQ){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e);return o+(+n(e[a+1],a+1,e)-o)*(i-a)}}function jye(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}function $Q(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function e$(e,t){switch(arguments.length){case 0:break;case 1:typeof e==`function`?this.interpolator(e):this.range(e);break;default:this.domain(e),typeof t==`function`?this.interpolator(t):this.range(t);break}return this}var t$=Symbol(`implicit`);function n$(){var e=new HQ,t=[],n=[],r=t$;function i(i){let a=e.get(i);if(a===void 0){if(r!==t$)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new HQ;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return n$(t,n).unknown(r)},$Q.apply(i,arguments),i}function r$(){var e=n$().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=jye(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()}
vendor: 20,110 bytes, line 393
393,e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return r$(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},$Q.apply(d(),arguments)}function i$(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return i$(t())},e}function Mye(){return i$(r$.apply(null,arguments).paddingInner(1))}function a$(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function o$(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function s$(){}var c$=.7,l$=1/c$,u$=`\\s*([+-]?\\d+)\\s*`,d$=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,f$=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Nye=/^#([0-9a-f]{3,8})$/,Pye=RegExp(`^rgb\\(${u$},${u$},${u$}\\)$`),Fye=RegExp(`^rgb\\(${f$},${f$},${f$}\\)$`),Iye=RegExp(`^rgba\\(${u$},${u$},${u$},${d$}\\)$`),Lye=RegExp(`^rgba\\(${f$},${f$},${f$},${d$}\\)$`),Rye=RegExp(`^hsl\\(${d$},${f$},${f$}\\)$`),zye=RegExp(`^hsla\\(${d$},${f$},${f$},${d$}\\)$`),p$={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};a$(s$,g$,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:m$,formatHex:m$,formatHex8:Bye,formatHsl:Vye,formatRgb:h$,toString:h$});function m$(){return this.rgb().formatHex()}function Bye(){return this.rgb().formatHex8()}function Vye(){return D$(this).formatHsl()}function h$(){return this.rgb().formatRgb()}function g$(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Nye.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?_$(t):n===3?new b$(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?v$(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?v$(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Pye.exec(e))?new b$(t[1],t[2],t[3],1):(t=Fye.exec(e))?new b$(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Iye.exec(e))?v$(t[1],t[2],t[3],t[4]):(t=Lye.exec(e))?v$(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Rye.exec(e))?E$(t[1],t[2]/100,t[3]/100,1):(t=zye.exec(e))?E$(t[1],t[2]/100,t[3]/100,t[4]):p$.hasOwnProperty(e)?_$(p$[e]):e===`transparent`?new b$(NaN,NaN,NaN,0):null}function _$(e){return new b$(e>>16&255,e>>8&255,e&255,1)}function v$(e,t,n,r){return r<=0&&(e=t=n=NaN),new b$(e,t,n,r)}function Hye(e){return e instanceof s$||(e=g$(e)),e?(e=e.rgb(),new b$(e.r,e.g,e.b,e.opacity)):new b$}function y$(e,t,n,r){return arguments.length===1?Hye(e):new b$(e,t,n,r??1)}function b$(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}a$(b$,y$,o$(s$,{brighter(e){return e=e==null?l$:l$**+e,new b$(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?c$:c$**+e,new b$(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new b$(w$(this.r),w$(this.g),w$(this.b),C$(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:x$,formatHex:x$,formatHex8:Uye,formatRgb:S$,toString:S$}));function x$(){return`#${T$(this.r)}${T$(this.g)}${T$(this.b)}`}function Uye(){return`#${T$(this.r)}${T$(this.g)}${T$(this.b)}${T$((isNaN(this.opacity)?1:this.opacity)*255)}`}function S$(){let e=C$(this.opacity);return`${e===1?`rgb(`:`rgba(`}${w$(this.r)}, ${w$(this.g)}, ${w$(this.b)}${e===1?`)`:`, ${e})`}`}function C$(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function w$(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function T$(e){return e=w$(e),(e<16?`0`:``)+e.toString(16)}function E$(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new O$(e,t,n,r)}function D$(e){if(e instanceof O$)return new O$(e.h,e.s,e.l,e.opacity);if(e instanceof s$||(e=g$(e)),!e)return new O$;if(e instanceof O$)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new O$(o,s,c,e.opacity)}function Wye(e,t,n,r){return arguments.length===1?D$(e):new O$(e,t,n,r??1)}function O$(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}a$(O$,Wye,o$(s$,{brighter(e){return e=e==null?l$:l$**+e,new O$(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?c$:c$**+e,new O$(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new b$(j$(e>=240?e-240:e+120,i,r),j$(e,i,r),j$(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new O$(k$(this.h),A$(this.s),A$(this.l),C$(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=C$(this.opacity);return`${e===1?`hsl(`:`hsla(`}${k$(this.h)}, ${A$(this.s)*100}%, ${A$(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function k$(e){return e=(e||0)%360,e<0?e+360:e}function A$(e){return Math.max(0,Math.min(1,e||0))}function j$(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var M$=e=>()=>e;function Gye(e,t){return function(n){return e+n*t}}function Kye(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function qye(e){return(e=+e)==1?N$:function(t,n){return n-t?Kye(t,n,e):M$(isNaN(t)?n:t)}}function N$(e,t){var n=t-e;return n?Gye(e,n):M$(isNaN(e)?t:e)}var P$=(function e(t){var n=qye(t);function r(e,t){var r=n((e=y$(e)).r,(t=y$(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=N$(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function Jye(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function Yye(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Xye(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=R$(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function Zye(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function F$(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Qye(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=R$(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var I$=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,L$=new RegExp(I$.source,`g`);function $ye(e){return function(){return e}}function ebe(e){return function(t){return e(t)+``}}function tbe(e,t){var n=I$.lastIndex=L$.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=I$.exec(e))&&(i=L$.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:F$(r,i)})),n=L$.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?ebe(c[0].x):$ye(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function R$(e,t){var n=typeof t,r;return t==null||n===`boolean`?M$(t):(n===`number`?F$:n===`string`?(r=g$(t))?(t=r,P$):tbe:t instanceof g$?P$:t instanceof Date?Zye:Yye(t)?Jye:Array.isArray(t)?Xye:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?Qye:F$)(e,t)}function z$(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function nbe(e,t){t===void 0&&(t=e,e=R$);for(var n=0,r=t.length-1,i=t[0],a=Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return a[t](e-t)}}function rbe(e){return function(){return e}}function B$(e){return+e}var V$=[0,1];function H$(e){return e}function U$(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:rbe(isNaN(t)?NaN:.5)}function ibe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function abe(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=U$(i,r),a=n(o,a)):(r=U$(r,i),a=n(a,o)),function(e){return a(r(e))}}function obe(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=U$(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=VQ(e,t,1,r)-1;return a[n](i[n](t))}}function W$(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function G$(){var e=V$,t=V$,n=R$,r,i,a,o=H$,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==H$&&(o=ibe(e[0],e[n-1])),s=n>2?obe:abe,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),F$))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,B$),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=z$,u()},d.clamp=function(e){return arguments.length?(o=e?!0:H$,u()):o!==H$},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function K$(){return G$()(H$,H$)}function sbe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function q$(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function J$(e){return e=q$(Math.abs(e)),e?e[1]:NaN}function cbe(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function lbe(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var ube=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Y$(e){if(!(t=ube.exec(e)))throw Error(`invalid format: `+e);var t;return new X$({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Y$.prototype=X$.prototype;function X$(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}X$.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function dbe(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Z$;function fbe(e,t){var n=q$(e,t);if(!n)return Z$=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(Z$=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+q$(e,Math.max(0,t+a-1))[0]}function Q$(e,t){var n=q$(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var $$={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:sbe,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Q$(e*100,t),r:Q$,s:fbe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function e1(e){return e}var t1=Array.prototype.map,n1=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function pbe(e){var t=e.grouping===void 0||e.thousands===void 0?e1:cbe(t1.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?e1:lbe(t1.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`â`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=Y$(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):$$[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=$$[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=dbe(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&Z$!==void 0?n1[8+Z$/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r;break}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(J$(t)/3)))*3,r=10**-n,i=l((e=Y$(e),e.type=`f`,e),{suffix:n1[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var r1,i1,a1;mbe({thousands:`,`,grouping:[3],currency:[`$`,``]});function mbe(e){return r1=pbe(e),i1=r1.format,a1=r1.formatPrefix,r1}function hbe(e){return Math.max(0,-J$(Math.abs(e)))}function gbe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(J$(t)/3)))*3-J$(Math.abs(e)))}function _be(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,J$(t)-J$(e))+1}function o1(e,t,n,r){var i=JQ(e,t,n),a;switch(r=Y$(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=gbe(i,o))&&(r.precision=a),a1(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=_be(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=hbe(i))&&(r.precision=a-(r.type===`%`)*2);break}return i1(r)}function s1(e){var t=e.domain;return e.ticks=function(e){var n=t();return KQ(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return o1(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-- >0;){if(l=qQ(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function c1(){var e=K$();return e.copy=function(){return W$(e,c1())},$Q.apply(e,arguments),s1(e)}function l1(e){var t;function n(e){return e==null||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,B$),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return l1(e).unknown(t)},e=arguments.length?Array.from(e,B$):[0,1],s1(n)}function u1(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function d1(e){return Math.log(e)}function f1(e){return Math.exp(e)}function vbe(e){return-Math.log(-e)}function ybe(e){return-Math.exp(-e)}function bbe(e){return isFinite(e)?+(`1e`+e):e<0?0:e}function xbe(e){return e===10?bbe:e===Math.E?Math.exp:t=>e**+t}function Sbe(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function p1(e){return(t,n)=>-e(-t,n)}function m1(e){let t=e(d1,f1),n=t.domain,r=10,i,a;function o(){return i=Sbe(r),a=xbe(r),n()[0]<0?(i=p1(i),a=p1(a),e(vbe,ybe)):e(d1,f1),t}return t.base=function(e){return arguments.length?(r=+e,o()):r},t.domain=function(e){return arguments.length?(n(e),o()):n()},t.ticks=e=>{let t=n(),o=t[0],s=t[t.length-1],c=s<o;c&&([o,s]=[s,o]);let l=i(o),u=i(s),d,f,p=e==null?10:+e,m=[];if(!(r%1)&&u-l<p){if(l=Math.floor(l),u=Math.ceil(u),o>0){for(;l<=u;++l)for(d=1;d<r;++d)if(f=l<0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}}else for(;l<=u;++l)for(d=r-1;d>=1;--d)if(f=l>0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}m.length*2<p&&(m=KQ(o,s,p))}else m=KQ(l,u,Math.min(u-l,p)).map(a);return c?m.reverse():m},t.tickFormat=(e,n)=>{if(e??=10,n??=r===10?`s`:`,`,typeof n!=`function`&&(!(r%1)&&(n=Y$(n)).precision==null&&(n.trim=!0),n=i1(n)),e===1/0)return n;let o=Math.max(1,r*e/t.ticks().length);return e=>{let t=e/a(Math.round(i(e)));return t*r<r-.5&&(t*=r),t<=o?n(e):``}},t.nice=()=>n(u1(n(),{floor:e=>a(Math.floor(i(e))),ceil:e=>a(Math.ceil(i(e)))})),t}function h1(){let e=m1(G$()).domain([1,10]);return e.copy=()=>W$(e,h1()).base(e.base()),$Q.apply(e,arguments),e}
393function g1(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function _1(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function v1(e){var t=1,n=e(g1(t),_1(t));return n.constant=function(n){return arguments.length?e(g1(t=+n),_1(t)):t},s1(n)}function y1(){var e=v1(G$());return e.copy=function(){return W$(e,y1()).constant(e.constant())},$Q.apply(e,arguments)}function b1(e){return function(t){return t<0?-((-t)**+e):t**+e}}function Cbe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function wbe(e){return e<0?-e*e:e*e}function x1(e){var t=e(H$,H$),n=1;function r(){return n===1?e(H$,H$):n===.5?e(Cbe,wbe):e(b1(n),b1(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},s1(t)}function S1(){var e=x1(G$());return e.copy=function(){return W$(e,S1()).exponent(e.exponent())},$Q.apply(e,arguments),e}function Tbe(){return S1.apply(null,arguments).exponent(.5)}function C1(e){return Math.sign(e)*e*e}function Ebe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function w1(){var e=K$(),t=[0,1],n=!1,r;function i(t){var i=Ebe(e(t));return isNaN(i)?r:n?Math.round(i):i}return i.invert=function(t){return e.invert(C1(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(n){return arguments.length?(e.range((t=Array.from(n,B$)).map(C1)),i):t.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(n=!!e,i):n},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return w1(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},$Q.apply(i,arguments),s1(i)}function T1(){var e=[],t=[],n=[],r;function i(){var r=0,i=Math.max(1,t.length);for(n=Array(i-1);++r<i;)n[r-1]=Aye(e,r/i);return a}function a(e){return e==null||isNaN(e=+e)?r:t[VQ(n,e)]}return a.invertExtent=function(r){var i=t.indexOf(r);return i<0?[NaN,NaN]:[i>0?n[i-1]:e[0],i<n.length?n[i]:e[e.length-1]]},a.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(LQ),i()},a.range=function(e){return arguments.length?(t=Array.from(e),i()):t.slice()},a.unknown=function(e){return arguments.length?(r=e,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return T1().domain(e).range(t).unknown(r)},$Q.apply(a,arguments)}function E1(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(e){return e!=null&&e<=e?i[VQ(r,e,0,n)]:a}function s(){var i=-1;for(r=Array(n);++i<n;)r[i]=((i+1)*t-(i-n)*e)/(n+1);return o}return o.domain=function(n){return arguments.length?([e,t]=n,e=+e,t=+t,s()):[e,t]},o.range=function(e){return arguments.length?(n=(i=Array.from(e)).length-1,s()):i.slice()},o.invertExtent=function(a){var o=i.indexOf(a);return o<0?[NaN,NaN]:o<1?[e,r[0]]:o>=n?[r[n-1],t]:[r[o-1],r[o]]},o.unknown=function(e){return arguments.length&&(a=e),o},o.thresholds=function(){return r.slice()},o.copy=function(){return E1().domain([e,t]).range(i).unknown(a)},$Q.apply(s1(o),arguments)}function D1(){var e=[.5],t=[0,1],n,r=1;function i(i){return i!=null&&i<=i?t[VQ(e,i,0,r)]:n}return i.domain=function(n){return arguments.length?(e=Array.from(n),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(n){return arguments.length?(t=Array.from(n),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return D1().domain(e).range(t).unknown(n)},$Q.apply(i,arguments)}var O1=new Date,k1=new Date;function A1(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>A1(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>
vendor: 5,170 bytes, line 393
393(O1.setTime(+t),k1.setTime(+r),e(O1),e(k1),Math.floor(n(O1,k1))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var j1=A1(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);j1.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?A1(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):j1),j1.range;var M1=1e3,N1=M1*60,P1=N1*60,F1=P1*24,I1=F1*7,L1=F1*30,R1=F1*365,z1=A1(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*M1)},(e,t)=>(t-e)/M1,e=>e.getUTCSeconds());z1.range;var B1=A1(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*M1)},(e,t)=>{e.setTime(+e+t*N1)},(e,t)=>(t-e)/N1,e=>e.getMinutes());B1.range;var V1=A1(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*N1)},(e,t)=>(t-e)/N1,e=>e.getUTCMinutes());V1.range;var H1=A1(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*M1-e.getMinutes()*N1)},(e,t)=>{e.setTime(+e+t*P1)},(e,t)=>(t-e)/P1,e=>e.getHours());H1.range;var U1=A1(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*P1)},(e,t)=>(t-e)/P1,e=>e.getUTCHours());U1.range;var W1=A1(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*N1)/F1,e=>e.getDate()-1);W1.range;var G1=A1(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/F1,e=>e.getUTCDate()-1);G1.range;var K1=A1(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/F1,e=>Math.floor(e/F1));K1.range;function q1(e){return A1(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*N1)/I1)}var J1=q1(0),Y1=q1(1),Dbe=q1(2),Obe=q1(3),X1=q1(4),kbe=q1(5),Abe=q1(6);J1.range,Y1.range,Dbe.range,Obe.range,X1.range,kbe.range,Abe.range;function Z1(e){return A1(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/I1)}var Q1=Z1(0),$1=Z1(1),jbe=Z1(2),Mbe=Z1(3),e0=Z1(4),Nbe=Z1(5),Pbe=Z1(6);Q1.range,$1.range,jbe.range,Mbe.range,e0.range,Nbe.range,Pbe.range;var t0=A1(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());t0.range;var n0=A1(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());n0.range;var r0=A1(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());r0.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:A1(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),r0.range;var i0=A1(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());i0.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:A1(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),i0.range;function a0(e,t,n,r,i,a){let o=[[z1,1,M1],[z1,5,5*M1],[z1,15,15*M1],[z1,30,30*M1],[a,1,N1],[a,5,5*N1],[a,15,15*N1],[a,30,30*N1],[i,1,P1],[i,3,3*P1],[i,6,6*P1],[i,12,12*P1],[r,1,F1],[r,2,2*F1],[n,1,I1],[t,1,L1],[t,3,3*L1],[e,1,R1]];function s(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:c(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function c(t,n,r){let i=Math.abs(n-t)/r,a=RQ(([,,e])=>e).right(o,i);if(a===o.length)return e.every(JQ(t/R1,n/R1,r));if(a===0)return j1.every(Math.max(JQ(t,n,r),1));let[s,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(c)}return[s,c]}var[Fbe,Ibe]=a0(i0,n0,Q1,K1,U1,V1),[Lbe,Rbe]=a0(r0,t0,J1,W1,H1,B1);function o0(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function s0(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function c0(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function zbe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=f0(i),u=p0(i),d=f0(a),f=p0(a),p=f0(o),m=p0(o),h=f0(s),g=p0(s),_=f0(c),v=p0(c),y={a:N,A:P,b:F,B:ee,c:null,d:v0,e:v0,f:cxe,g:vxe,G:bxe,H:axe,I:oxe,j:sxe,L:y0,m:lxe,M:uxe,p:te,q:ne,Q:T0,s:E0,S:dxe,u:fxe,U:pxe,V:mxe,w:hxe,W:gxe,x:null,X:null,y:_xe,Y:yxe,Z:xxe,"%":w0},b={a:re,A:I,b:ie,B:ae,c:null,d:x0,e:x0,f:Txe,g:Fxe,G:Lxe,H:Sxe,I:Cxe,j:wxe,L:S0,m:Exe,M:Dxe,p:oe,q:se,Q:T0,s:E0,S:Oxe,u:kxe,U:Axe,V:jxe,w:Mxe,W:Nxe,x:null,X:null,y:Pxe,Y:Ixe,Z:Rxe,"%":w0},x={a:E,A:D,b:O,B:k,c:A,d:g0,e:g0,f:txe,g:h0,G:m0,H:_0,I:_0,j:Zbe,L:exe,m:Xbe,M:Qbe,p:T,q:Ybe,Q:rxe,s:ixe,S:$be,u:Wbe,U:Gbe,V:Kbe,w:Ube,W:qbe,x:j,X:M,y:h0,Y:m0,Z:Jbe,"%":nxe};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;
vendor: 4,102 bytes, line 393
393for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=l0[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=c0(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=s0(c0(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?$1.ceil(a):$1(a),a=G1.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=o0(c0(r.y,0,1)),o=a.getDay(),a=o>4||o===0?Y1.ceil(a):Y1(a),a=W1.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else (`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?s0(c0(r.y,0,1)).getUTCDay():o0(c0(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,s0(r)):o0(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in l0?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,n,r){return w(e,t,n,r)}function j(e,t,r){return w(e,n,t,r)}function M(e,t,n){return w(e,r,t,n)}function N(e){return o[e.getDay()]}function P(e){return a[e.getDay()]}function F(e){return c[e.getMonth()]}function ee(e){return s[e.getMonth()]}function te(e){return i[+(e.getHours()>=12)]}function ne(e){return 1+~~(e.getMonth()/3)}function re(e){return o[e.getUTCDay()]}function I(e){return a[e.getUTCDay()]}function ie(e){return c[e.getUTCMonth()]}function ae(e){return s[e.getUTCMonth()]}function oe(e){return i[+(e.getUTCHours()>=12)]}function se(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var l0={"-":``,_:` `,0:`0`},u0=/^\s*\d+/,Bbe=/^%/,Vbe=/[\\^$*+?|[\]().{}]/g;function d0(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function Hbe(e){return e.replace(Vbe,`\\$&`)}function f0(e){return RegExp(`^(?:`+e.map(Hbe).join(`|`)+`)`,`i`)}function p0(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function Ube(e,t,n){var r=u0.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Wbe(e,t,n){var r=u0.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Gbe(e,t,n){var r=u0.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Kbe(e,t,n){var r=u0.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function qbe(e,t,n){var r=u0.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function m0(e,t,n){var r=u0.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function h0(e,t,n){var r=u0.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Jbe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function Ybe(e,t,n){var r=u0.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Xbe(e,t,n){var r=u0.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}
vendor: 6,039 bytes, line 393
393function g0(e,t,n){var r=u0.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Zbe(e,t,n){var r=u0.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function _0(e,t,n){var r=u0.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Qbe(e,t,n){var r=u0.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function $be(e,t,n){var r=u0.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function exe(e,t,n){var r=u0.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function txe(e,t,n){var r=u0.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function nxe(e,t,n){var r=Bbe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function rxe(e,t,n){var r=u0.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ixe(e,t,n){var r=u0.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function v0(e,t){return d0(e.getDate(),t,2)}function axe(e,t){return d0(e.getHours(),t,2)}function oxe(e,t){return d0(e.getHours()%12||12,t,2)}function sxe(e,t){return d0(1+W1.count(r0(e),e),t,3)}function y0(e,t){return d0(e.getMilliseconds(),t,3)}function cxe(e,t){return y0(e,t)+`000`}function lxe(e,t){return d0(e.getMonth()+1,t,2)}function uxe(e,t){return d0(e.getMinutes(),t,2)}function dxe(e,t){return d0(e.getSeconds(),t,2)}function fxe(e){var t=e.getDay();return t===0?7:t}function pxe(e,t){return d0(J1.count(r0(e)-1,e),t,2)}function b0(e){var t=e.getDay();return t>=4||t===0?X1(e):X1.ceil(e)}function mxe(e,t){return e=b0(e),d0(X1.count(r0(e),e)+(r0(e).getDay()===4),t,2)}function hxe(e){return e.getDay()}function gxe(e,t){return d0(Y1.count(r0(e)-1,e),t,2)}function _xe(e,t){return d0(e.getFullYear()%100,t,2)}function vxe(e,t){return e=b0(e),d0(e.getFullYear()%100,t,2)}function yxe(e,t){return d0(e.getFullYear()%1e4,t,4)}function bxe(e,t){var n=e.getDay();return e=n>=4||n===0?X1(e):X1.ceil(e),d0(e.getFullYear()%1e4,t,4)}function xxe(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+d0(t/60|0,`0`,2)+d0(t%60,`0`,2)}function x0(e,t){return d0(e.getUTCDate(),t,2)}function Sxe(e,t){return d0(e.getUTCHours(),t,2)}function Cxe(e,t){return d0(e.getUTCHours()%12||12,t,2)}function wxe(e,t){return d0(1+G1.count(i0(e),e),t,3)}function S0(e,t){return d0(e.getUTCMilliseconds(),t,3)}function Txe(e,t){return S0(e,t)+`000`}function Exe(e,t){return d0(e.getUTCMonth()+1,t,2)}function Dxe(e,t){return d0(e.getUTCMinutes(),t,2)}function Oxe(e,t){return d0(e.getUTCSeconds(),t,2)}function kxe(e){var t=e.getUTCDay();return t===0?7:t}function Axe(e,t){return d0(Q1.count(i0(e)-1,e),t,2)}function C0(e){var t=e.getUTCDay();return t>=4||t===0?e0(e):e0.ceil(e)}function jxe(e,t){return e=C0(e),d0(e0.count(i0(e),e)+(i0(e).getUTCDay()===4),t,2)}function Mxe(e){return e.getUTCDay()}function Nxe(e,t){return d0($1.count(i0(e)-1,e),t,2)}function Pxe(e,t){return d0(e.getUTCFullYear()%100,t,2)}function Fxe(e,t){return e=C0(e),d0(e.getUTCFullYear()%100,t,2)}function Ixe(e,t){return d0(e.getUTCFullYear()%1e4,t,4)}function Lxe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?e0(e):e0.ceil(e),d0(e.getUTCFullYear()%1e4,t,4)}function Rxe(){return`+0000`}function w0(){return`%`}function T0(e){return+e}function E0(e){return Math.floor(e/1e3)}var D0,O0,k0;zxe({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function zxe(e){return D0=zbe(e),O0=D0.format,D0.parse,k0=D0.utcFormat,D0.utcParse,D0}function Bxe(e){return new Date(e)}function Vxe(e){return e instanceof Date?+e:+new Date(+e)}function A0(e,t,n,r,i,a,o,s,c,l){var u=K$(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,Vxe)):f().map(Bxe)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?f(u1(n,e)):u},u.copy=function(){return W$(u,A0(e,t,n,r,i,a,o,s,c,l))},u}function Hxe(){return $Q.apply(A0(Lbe,Rbe,r0,t0,J1,W1,H1,B1,z1,O0).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Uxe(){return $Q.apply(A0(Fbe,Ibe,i0,n0,Q1,G1,U1,V1,z1,k0).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function j0(){var e=0,t=1,n,r,i,a,o=H$,s=!1,c;function l(e){return e==null||isNaN(e=+e)?c:o(i===0?.5:(e=(a(e)-n)*i,s?Math.max(0,Math.min(1,e)):e))}l.domain=function(o){return arguments.length?([e,t]=o,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),l):[e,t]},l.clamp=function(e){return arguments.length?(s=!!e,l):s},l.interpolator=function(e){return arguments.length?(o=e,l):o};function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,o=e(n,r),l):[o(0),o(1)]}}return l.range=u(R$),l.rangeRound=u(z$),l.unknown=function(e){return arguments.length?(c=e,l):c},function(o){return a=o,n=o(e),r=o(t),i=n===r?0:1/(r-n),l}}function M0(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function N0(){var e=s1(j0()(H$));return e.copy=function(){return M0(e,N0())},e$.apply(e,arguments)}function P0(){var e=m1(j0()).domain([1,10]);return e.copy=function(){return M0(e,P0()).base(e.base())},e$.apply(e,arguments)}function F0(){var e=v1(j0());return e.copy=function(){return M0(e,F0()).constant(e.constant())},e$.apply(e,arguments)}function I0(){var e=x1(j0());return e.copy=function(){return M0(e,I0()).exponent(e.exponent())},e$.apply(e,arguments)}function Wxe(){return I0.apply(null,arguments).exponent(.5)}function L0(){var e=[],t=H$;
393function n(n){if(n!=null&&!isNaN(n=+n))return t((VQ(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(LQ),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((n,r)=>t(r/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(n,r)=>kye(e,r/t))},n.copy=function(){return L0(t).domain(e)},e$.apply(n,arguments)}function R0(){var e=0,t=.5,n=1,r=1,i,a,o,s,c,l=H$,u,d=!1,f;function p(e){return isNaN(e=+e)?f:(e=.5+((e=+u(e))-a)*(r*e<r*a?s:c),l(d?Math.max(0,Math.min(1,e)):e))}p.domain=function(l){return arguments.length?([e,t,n]=l,i=u(e=+e),a=u(t=+t),o=u(n=+n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p):[e,t,n]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(l=e,p):l};function m(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,l=nbe(e,[n,r,i]),p):[l(0),l(.5),l(1)]}}return p.range=m(R$),p.rangeRound=m(z$),p.unknown=function(e){return arguments.length?(f=e,p):f},function(l){return u=l,i=l(e),a=l(t),o=l(n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p}}function z0(){var e=s1(R0()(H$));return e.copy=function(){return M0(e,z0())},e$.apply(e,arguments)}function B0(){var e=m1(R0()).domain([.1,1,10]);return e.copy=function(){return M0(e,B0()).base(e.base())},e$.apply(e,arguments)}function V0(){var e=v1(R0());return e.copy=function(){return M0(e,V0()).constant(e.constant())},e$.apply(e,arguments)}function H0(){var e=x1(R0());return e.copy=function(){return M0(e,H0()).exponent(e.exponent())},e$.apply(e,arguments)}function Gxe(){return H0.apply(null,arguments).exponent(.5)}var U0=i({scaleBand:()=>r$,scaleDiverging:()=>z0,scaleDivergingLog:()=>B0,scaleDivergingPow:()=>H0,scaleDivergingSqrt:()=>Gxe,scaleDivergingSymlog:()=>V0,scaleIdentity:()=>l1,scaleImplicit:()=>t$,scaleLinear:()=>c1,scaleLog:()=>h1,scaleOrdinal:()=>n$,scalePoint:()=>Mye,scalePow:()=>S1,scaleQuantile:()=>T1,scaleQuantize:()=>E1,scaleRadial:()=>w1,scaleSequential:()=>N0,scaleSequentialLog:()=>P0,scaleSequentialPow:()=>I0,scaleSequentialQuantile:()=>L0,scaleSequentialSqrt:()=>Wxe,scaleSequentialSymlog:()=>F0,scaleSqrt:()=>Tbe,scaleSymlog:()=>y1,scaleThreshold:()=>D1,scaleTime:()=>Hxe,scaleUtc:()=>Uxe,tickFormat:()=>o1});function Kxe(e){var t=U0;if(e in t&&typeof t[e]==`function`)return t[e]();var n=`scale${qU(e)}`;if(n in t&&typeof t[n]==`function`)return t[n]()}function W0(e,t,n){if(typeof e==`function`)return e.copy().domain(t).range(n);if(e!=null){var r=Kxe(e);if(r!=null)return r.domain(t).range(n),r}}function G0(e,t,n,r){if(!(n==null||r==null))return typeof e.scale==`function`?W0(e.scale,n,r):W0(t,n,r)}function qxe(e){return`scale${qU(e)}`}function Jxe(e){return qxe(e)in U0}var K0=(e,t,n)=>{if(e!=null){var r=e.scale,i=e.type;if(r===`auto`)return i===`category`&&n&&(n.indexOf(`LineChart`)>=0||n.indexOf(`AreaChart`)>=0||n.indexOf(`ComposedChart`)>=0&&!t)?`point`:i===`category`?`band`:`linear`;if(typeof r==`string`)return Jxe(r)?r:`point`}};function Yxe(e,t){for(var n=0,r=e.length,i=e[0]<e[e.length-1];n<r;){var a=Math.floor((n+r)/2);(i?e[a]<t:e[a]>t)?n=a+1:r=a}return n}function q0(e,t){if(e){var n=t??e.domain(),r=n.map(t=>e(t)??0),i=e.range();if(!(n.length===0||i.length<2))return e=>{var t=Yxe(r,e);if(t<=0)return n[0];if(t>=n.length)return n[n.length-1];var i=r[t-1]??0,a=r[t]??0;return Math.abs(e-i)<=Math.abs(e-a)?n[t-1]:n[t]}}}function Xxe(e){if(e!=null)return`invert`in e&&typeof e.invert==`function`?e.invert.bind(e):q0(e,void 0)}function J0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Y0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?J0(Object(n),!0).forEach(function(t){Zxe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zxe(e,t,n){return(t=Qxe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qxe(e){var t=$xe(e,`string`);return typeof t==`symbol`?t:t+``}function $xe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function X0(e,t){return rSe(e)||nSe(e,t)||tSe(e,t)||eSe()}
393function eSe(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 394In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tSe(e,t){if(e){if(typeof e==`string`)return Z0(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z0(e,t):void 0}}function Z0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function nSe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function rSe(e){if(Array.isArray(e))return e}var Q0=[0,`auto`],$0={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:`preserveEnd`,minTickGap:5,mirror:!1,name:void 0,orientation:`bottom`,padding:{left:0,right:0},reversed:!1,scale:`auto`,tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:`category`,unit:void 0,niceTicks:`auto`},e2=(e,t)=>e.cartesianAxis.xAxis[t],t2=(e,t)=>e2(e,t)??$0,n2={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:Q0,hide:!0,id:0,includeHidden:!1,interval:`preserveEnd`,minTickGap:5,mirror:!1,name:void 0,orientation:`left`,padding:{top:0,bottom:0},reversed:!1,scale:`auto`,tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:`number`,unit:void 0,niceTicks:`auto`,width:60},r2=(e,t)=>e.cartesianAxis.yAxis[t],i2=(e,t)=>r2(e,t)??n2,iSe={domain:[0,`auto`],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:``,range:[64,64],scale:`auto`,type:`number`,unit:``},a2=(e,t)=>e.cartesianAxis.zAxis[t]??iSe,o2=(e,t,n)=>{switch(t){case`xAxis`:return t2(e,n);case`yAxis`:return i2(e,n);case`zAxis`:return a2(e,n);case`angleAxis`:return vQ(e,n);case`radiusAxis`:return yQ(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},aSe=(e,t,n)=>{switch(t){case`xAxis`:return t2(e,n);case`yAxis`:return i2(e,n);default:throw Error(`Unexpected axis type: ${t}`)}}
394,s2=(e,t,n)=>{switch(t){case`xAxis`:return t2(e,n);case`yAxis`:return i2(e,n);case`angleAxis`:return vQ(e,n);case`radiusAxis`:return yQ(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},c2=e=>e.graphicalItems.cartesianItems.some(e=>e.type===`bar`)||e.graphicalItems.polarItems.some(e=>e.type===`radialBar`);function l2(e,t){return n=>{switch(e){case`xAxis`:return`xAxisId`in n&&n.xAxisId===t;case`yAxis`:return`yAxisId`in n&&n.yAxisId===t;case`zAxis`:return`zAxisId`in n&&n.zAxisId===t;case`angleAxis`:return`angleAxisId`in n&&n.angleAxisId===t;case`radiusAxis`:return`radiusAxisId`in n&&n.radiusAxisId===t;default:return!1}}}var u2=e=>e.graphicalItems.cartesianItems,oSe=Q([DQ,OQ],l2),d2=(e,t,n)=>e.filter(n).filter(e=>t?.includeHidden===!0?!0:!e.hide),f2=Q([u2,o2,oSe],d2,{memoizeOptions:{resultEqualityCheck:NQ}}),p2=Q([f2],e=>e.filter(e=>e.type===`area`||e.type===`bar`).filter(jQ)),m2=e=>e.filter(e=>!(`stackId`in e)||e.stackId===void 0),sSe=Q([f2],m2),h2=e=>e.map(e=>e.data).filter(Boolean).flat(1),cSe=Q([f2],e=>e.some(e=>!e.data)),g2=Q([f2],h2,{memoizeOptions:{resultEqualityCheck:NQ}}),_2=(e,t)=>{var n=t.chartData,r=n===void 0?[]:n,i=t.dataStartIndex,a=t.dataEndIndex;return e.length>0?e:r.slice(i,a+1)},v2=Q([g2,BZ],_2),lSe=(e,t,n)=>t?.dataKey==null?n.length>0?n.map(e=>e.dataKey).flatMap(t=>e.map(e=>({value:VY(e,t)}))):e.map(e=>({value:e})):e.map(e=>({value:VY(e,t.dataKey)})),y2=(e,t,n,r,i,a)=>{var o=r.chartData,s=o===void 0?[]:o,c=r.dataStartIndex,l=r.dataEndIndex,u=lSe(e,t,n);return i&&t?.dataKey!=null&&a.length>0?[...s.slice(c,l+1).map(e=>({value:VY(e,t.dataKey)})).filter(e=>e.value!=null),...u]:u},b2=Q([v2,o2,f2,BZ,cSe,g2],y2);function x2(e){if(zU(e)||e instanceof Date){var t=Number(e);if(LY(t))return t}}function S2(e){if(Array.isArray(e)){var t=[x2(e[0]),x2(e[1])];return UZ(t)?t:void 0}var n=x2(e);
394if(n!=null)return[n,n]}function C2(e){return e.map(x2).filter(JU)}function uSe(e,t){var n=x2(e),r=x2(t);return n==null&&r==null?0:n==null?-1:r==null?1:n-r}var dSe=Q([b2],e=>e?.map(e=>e.value).sort(uSe));function w2(e,t){switch(e){case`xAxis`:return t.direction===`x`;case`yAxis`:return t.direction===`y`;default:return!1}}function fSe(e,t,n){if(!n||!n.length)return[];var r;if(typeof t==`number`&&!LU(t))r=t;else if(Array.isArray(t)){var i=C2(t);i.length>0&&(r=Math.max(...i))}return r==null?[]:C2(n.flatMap(t=>{var n=VY(e,t.dataKey),i,a;if(Array.isArray(n)){var o=X0(n,2);i=o[0],a=o[1]}else i=a=n;if(!(!LY(i)||!LY(a)))return[r-i,r+a]}))}var T2=e=>s2(e,PQ(e),FQ(e)),E2=Q([T2],e=>e?.dataKey),pSe=Q([p2,BZ,T2],AQ),D2=(e,t,n,r)=>{var i=t.reduce((e,t)=>{if(t.stackId==null)return e;var n=e[t.stackId];return n??=[],n.push(t),e[t.stackId]=n,e},{});return Object.fromEntries(Object.entries(i).map(t=>{var i=X0(t,2),a=i[0],o=i[1],s=r?[...o].reverse():o;return[a,{stackedData:Lhe(e,s.map(kQ),n),graphicalItems:s}]}))},O2=Q([pSe,p2,rQ,iQ],D2),k2=(e,t,n,r)=>{var i=t.dataStartIndex,a=t.dataEndIndex;if(r==null&&n!==`zAxis`)return Vhe(e,i,a)},mSe=Q([o2],e=>e.allowDataOverflow),A2=e=>{if(e==null||!(`domain`in e))return Q0;if(e.domain!=null)return e.domain;if(`ticks`in e&&e.ticks!=null){if(e.type===`number`){var t=C2(e.ticks);return[Math.min(...t),Math.max(...t)]}if(e.type===`category`)return e.ticks.map(String)}return e?.domain??Q0},j2=Q([o2],A2),M2=Q([j2,mSe],GZ),hSe=Q([O2,RZ,DQ,M2],k2,{memoizeOptions:{resultEqualityCheck:MQ}}),N2=e=>e.errorBars,gSe=(e,t,n)=>e.flatMap(e=>t[e.id]).filter(Boolean).filter(e=>w2(n,e)),P2=function(){var e=[...arguments].filter(Boolean);if(e.length!==0){var t=e.flat();return[Math.min(...t),Math.max(...t)]}},F2=function(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],o,s;if(n.length>0&&n.forEach(e=>{var n=e.data==null?a:[...e.data],c=r[e.id]?.filter(e=>w2(i,e));n.forEach(n=>{var r=VY(n,t.dataKey??e.dataKey),i=fSe(n,r,c);if(i.length>=2){var a=Math.min(...i),l=Math.max(...i);(o==null||a<o)&&(o=a),(s==null||l>s)&&(s=l)}var u=S2(r);u!=null&&(o=o==null?u[0]:Math.min(o,u[0]),s=s==null?u[1]:Math.max(s,u[1]))})}),t?.dataKey!=null&&n.length===0&&e.forEach(e=>{var n=S2(VY(e,t.dataKey));n!=null&&(o=o==null?n[0]:Math.min(o,n[0]),s=s==null?n[1]:Math.max(s,n[1]))}),LY(o)&&LY(s))return[o,s]},_Se=Q([v2,o2,sSe,N2,DQ,eye],F2,{memoizeOptions:{resultEqualityCheck:MQ}});function vSe(e){var t=e.value;if(zU(t)||t instanceof Date)return t}var ySe=(e,t,n)=>{var r=e.map(vSe).filter(e=>e!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&UU(r))?LZ(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},I2=e=>
394e.referenceElements.dots,L2=(e,t,n)=>e.filter(e=>e.ifOverflow===`extendDomain`).filter(e=>t===`xAxis`?e.xAxisId===n:e.yAxisId===n),bSe=Q([I2,DQ,OQ],L2),R2=e=>e.referenceElements.areas,xSe=Q([R2,DQ,OQ],L2),z2=e=>e.referenceElements.lines,SSe=Q([z2,DQ,OQ],L2),B2=(e,t)=>{if(e!=null){var n=C2(e.map(e=>t===`xAxis`?e.x:e.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},CSe=Q(bSe,DQ,B2),V2=(e,t)=>{if(e!=null){var n=C2(e.flatMap(e=>[t===`xAxis`?e.x1:e.y1,t===`xAxis`?e.x2:e.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},wSe=Q([xSe,DQ],V2);function TSe(e){if(e.x!=null)return C2([e.x]);var t=e.segment?.map(e=>e.x);return t==null||t.length===0?[]:C2(t)}function ESe(e){if(e.y!=null)return C2([e.y]);var t=e.segment?.map(e=>e.y);return t==null||t.length===0?[]:C2(t)}var H2=(e,t)=>{if(e!=null){var n=e.flatMap(e=>t===`xAxis`?TSe(e):ESe(e));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},DSe=Q(CSe,Q([SSe,DQ],H2),wSe,(e,t,n)=>P2(e,n,t)),U2=(e,t,n,r,i,a,o,s,c)=>{if(n!=null)return n;var l=o===`vertical`&&s===`xAxis`||o===`horizontal`&&s===`yAxis`?P2(r,a,i):P2(a,i),u=oye(t,l,e.allowDataOverflow);return u==null&&e.allowDataOverflow&&l==null&&c!=null?c:u},OSe=Q([o2,j2,M2,hSe,_Se,DSe,CX,DQ,Q([o2],e=>{if(!(e==null||e.type!==`number`||!(`ticks`in e)||e.ticks==null)){var t=C2(e.ticks);if(t.length!==0)return[Math.min(...t),Math.max(...t)]}},{memoizeOptions:{resultEqualityCheck:MQ}})],U2,{memoizeOptions:{resultEqualityCheck:MQ}}),kSe=[0,1],W2=(e,t,n,r,i,a,o)=>{if(!((e==null||n==null||n.length===0)&&o===void 0)){var s=e.dataKey,c=e.type,l=HY(t,a);return l&&s==null?LZ(0,n?.length??0):c===`category`?ySe(r,e,l):i===`expand`&&!l?kSe:o}},G2=Q([o2,CX,v2,b2,rQ,DQ,OSe],W2),K2=Q([o2,c2,aQ],K0),q2=(e,t,n)=>{var r=t.niceTicks;if(r!==`none`){var i=A2(t),a=Array.isArray(i)&&(i[0]===`auto`||i[1]===`auto`);if((r===`snap125`||r===`adaptive`)&&t!=null&&t.tickCount&&UZ(e)){if(a)return tQ(e,t.tickCount,t.allowDecimals,r);if(t.type===`number`)return nQ(e,t.tickCount,t.allowDecimals,r)}if(r===`auto`&&n===`linear`&&t!=null&&t.tickCount){if(a&&UZ(e))return tQ(e,t.tickCount,t.allowDecimals,`adaptive`);if(t.type===`number`&&UZ(e))return nQ(e,t.tickCount,t.allowDecimals,`adaptive`)}}},J2=Q([G2,s2,K2],q2),Y2=(e,t,n,r)=>{if(r!==`angleAxis`&&e?.type===`number`&&UZ(t)&&Array.isArray(n)&&n.length>
3940){var i=t[0],a=n[0]??0,o=t[1],s=n[n.length-1]??0;return[Math.min(i,a),Math.max(o,s)]}return t},ASe=Q([o2,G2,J2,DQ],Y2),X2=Q(Q(b2,o2,(e,t)=>{if(!(!t||t.type!==`number`)){var n=1/0,r=Array.from(C2(e.map(e=>e.value))).sort((e,t)=>e-t),i=r[0],a=r[r.length-1];if(i==null||a==null)return 1/0;var o=a-i;if(o===0)return 1/0;for(var s=0;s<r.length-1;s++){var c=r[s],l=r[s+1];if(!(c==null||l==null)){var u=l-c;n=Math.min(n,u)}}return n/o}}),CX,fye,iX,(e,t,n,r,i)=>i,(e,t,n,r,i)=>{if(!LY(e))return 0;var a=t===`vertical`?r.height:r.width;if(i===`gap`)return e*a/2;if(i===`no-gap`){var o=HU(n,e*a),s=e*a/2;return s-o-(s-o)/a*o}return 0}),jSe=(e,t,n)=>{var r=t2(e,t);return r==null||typeof r.padding!=`string`?0:X2(e,`xAxis`,t,n,r.padding)},MSe=(e,t,n)=>{var r=i2(e,t);return r==null||typeof r.padding!=`string`?0:X2(e,`yAxis`,t,n,r.padding)},NSe=Q(t2,jSe,(e,t)=>{if(e==null)return{left:0,right:0};var n=e.padding;return typeof n==`string`?{left:t,right:t}:{left:(n.left??0)+t,right:(n.right??0)+t}}),PSe=Q(i2,MSe,(e,t)=>{if(e==null)return{top:0,bottom:0};var n=e.padding;return typeof n==`string`?{top:t,bottom:t}:{top:(n.top??0)+t,bottom:(n.bottom??0)+t}}),Z2=Q([iX,NSe,cX,sX,(e,t,n)=>n],(e,t,n,r,i)=>{var a=r.padding;return i?[a.left,n.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),Q2=Q([iX,CX,PSe,cX,sX,(e,t,n)=>n],(e,t,n,r,i,a)=>{var o=i.padding;return a?[r.height-o.bottom,o.top]:t===`horizontal`?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),$2=(e,t,n,r)=>{switch(t){case`xAxis`:return Z2(e,n,r);case`yAxis`:return Q2(e,n,r);case`zAxis`:return a2(e,n)?.range;case`angleAxis`:return wQ(e);case`radiusAxis`:return TQ(e,n);default:return}},e4=Q([o2,$2],fQ),t4=Q([o2,K2,Q([K2,ASe],vye),e4],G0),n4=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var i=n.type,a=n.scale;if(HY(e,r)&&(i===`number`||a!==`auto`))return t.map(e=>e.value)}},r4=Q([CX,b2,s2,DQ],n4),i4=Q([t4],IQ);Q([t4],Xxe),Q([t4,dSe],q0),Q([f2,N2,DQ],gSe);function a4(e,t){return e.id<t.id?-1:+(e.id>t.id)}var o4=(e,t)=>t,s4=(e,t,n)=>n,FSe=Q(eX,o4,s4,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(a4)),ISe=Q(tX,o4,s4,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(a4)),c4=(e,t)=>{var n=typeof t.height==`number`?t.height:30;return{width:e.width,height:n}},LSe=(e,t)=>({width:typeof t.width==`number`?t.width:60,height:e.height}),RSe=Q(iX,t2,c4),zSe=(e,t,n)=>{switch(t){case`top`:return e.top;case`bottom`:return n-e.bottom;default:return 0}},BSe=(e,t,n)=>{switch(t){case`left`:return e.left;case`right`:return n-e.right;default:return 0}},VSe=Q(QY,iX,FSe,o4,s4,(e,t,n,r,i)=>{var a={},o;return n.forEach(n=>{var s=c4(t,n);o??=zSe(t,r,e);var c=r===`top`&&!i||r===`bottom`&&i;a[n.id]=o-Number(c)*s.height,o+=(c?-1:1)*s.height}),a}),HSe=Q(ZY,iX,ISe,o4,s4,(e,t,n,r,i)=>{var a={},o;return n.forEach(n=>{var s=LSe(t,n);o??=BSe(t,r,e);var c=r===`left`&&!i||r===`right`&&i;a[n.id]=o-Number(c)*s.width,o+=(c?-1:1)*s.width}),a}),USe=Q([iX,t2,(e,t)=>{var n=t2(e,t);if(n!=null)return VSe(e,n.orientation,n.mirror)},(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),WSe=Q([iX,i2,(e,t)=>{var n=i2(e,t);if(n!=null)return HSe(e,n.orientation,n.mirror)},(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),GSe=Q(iX,i2,(e,t)=>({width:typeof t.width==`number`?t.width:60,height:e.height})),l4=(e,t,n,r)=>{if(n!=null){var i=n.allowDuplicatedCategory,a=n.type,o=n.dataKey,s=HY(e,r),c=t.map(e=>e.value),l=c.filter(e=>e!=null);if(o&&s&&a===`category`&&i&&UU(l))return c}},u4=Q([CX,b2,o2,DQ],l4),d4=Q([CX,aSe,K2,i4,u4,r4,$2,J2,DQ],(e,t,n,r,i,a,o,s,c)=>{if(t!=null){var l=HY(e,c);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:c,categoricalDomain:a,duplicateDomain:i,isCategorical:l,niceTicks:s,range:o,realScaleType:n,scale:r}}}),f4=Q([CX,s2,K2,i4,J2,$2,u4,r4,DQ],(e,t,n,r,i,a,o,s,c)=>{if(!(t==null||r==null)){var l=HY(e,c),u=t.type,d=t.ticks,f=t.tickCount,p=n===`scaleBand`&&typeof r.bandwidth==`function`?r.bandwidth()/2:2,m=u===`category`&&r.bandwidth?r.bandwidth()/p:0;m=c===`angleAxis`&&a!=null&&a.length>=2?IU(a[0]-a[1])*2*m:m;var h=d||i;return h?h.map((e,t)=>{var n=o?o.indexOf(e):e,i=r.map(n);return LY(i)?{index:t,coordinate:i+m,value:e,offset:m}:null}).filter(JU):l&&s?s.map((e,t)=>{var n=r.map(e);return LY(n)?{coordinate:n+m,value:e,index:t,offset:m}:null}).filter(JU):r.ticks?r.ticks(f).map((e,t)=>{var n=r.map(e);return LY(n)?{coordinate:n+m,value:e,index:t,offset:m}:null}).filter(JU):r.domain().map((e,t)=>{var n=r.map(e);return LY(n)?{coordinate:n+m,value:o?o[e]:e,index:t,offset:m}:null}).filter(JU)}}
394),p4=Q([CX,s2,i4,$2,u4,r4,DQ],(e,t,n,r,i,a,o)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var s=HY(e,o),c=t.tickCount,l=0;return l=o===`angleAxis`&&r?.length>=2?IU(r[0]-r[1])*2*l:l,s&&a?a.map((e,t)=>{var r=n.map(e);return LY(r)?{coordinate:r+l,value:e,index:t,offset:l}:null}).filter(JU):n.ticks?n.ticks(c).map((e,t)=>{var r=n.map(e);return LY(r)?{coordinate:r+l,value:e,index:t,offset:l}:null}).filter(JU):n.domain().map((e,t)=>{var r=n.map(e);return LY(r)?{coordinate:r+l,value:i?i[e]:e,index:t,offset:l}:null}).filter(JU)}}),m4=Q(o2,i4,(e,t)=>{if(!(e==null||t==null))return Y0(Y0({},e),{},{scale:t})});Q((e,t,n)=>a2(e,n),Q([Q([o2,K2,G2,e4],G0)],IQ),(e,t)=>{if(!(e==null||t==null))return Y0(Y0({},e),{},{scale:t})});var KSe=Q([CX,eX,tX],(e,t,n)=>{switch(e){case`horizontal`:return t.some(e=>e.reversed)?`right-to-left`:`left-to-right`;case`vertical`:return n.some(e=>e.reversed)?`bottom-to-top`:`top-to-bottom`;case`centric`:case`radial`:return`left-to-right`;default:return}});Q([(e,t,n)=>e.renderedTicks[t]?.[n]],e=>{if(!(!e||e.length===0))return t=>{var n=1/0,r=e[0];for(var i of e){var a=Math.abs(i.coordinate-t);a<n&&(n=a,r=i)}return r?.value}});var h4=e=>e.options.defaultTooltipEventType,g4=e=>e.options.validateTooltipEventTypes;function _4(e,t,n){if(e==null)return t;var r=e?`axis`:`item`;return n==null?t:n.includes(r)?r:t}function v4(e,t){return _4(t,h4(e),g4(e))}function qSe(e){return Z(t=>v4(t,e))}var y4=(e,t)=>{var n,r=Number(t);if(!(LU(r)||t==null))return r>=0?e==null||(n=e[r])==null?void 0:n.value:void 0},JSe=e=>e.tooltip.settings,b4={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},x4=sY({name:`tooltip`,initialState:{itemInteraction:{click:b4,hover:b4},axisInteraction:{click:b4,hover:b4},keyboardInteraction:b4,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:`hover`,axisId:0,active:!1,defaultIndex:void 0}},reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(GJ(t.payload))},prepare:rY()},replaceTooltipEntrySettings:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next,a=HJ(e).tooltipItemPayloads.indexOf(GJ(r));a>-1&&(e.tooltipItemPayloads[a]=GJ(i))},prepare:rY()},removeTooltipEntrySettings:{reducer(e,t){var n=HJ(e).tooltipItemPayloads.indexOf(GJ(t.payload));n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:rY()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),S4=x4.actions,YSe=S4.addTooltipEntrySettings,XSe=S4.replaceTooltipEntrySettings,ZSe=S4.removeTooltipEntrySettings,QSe=S4.setTooltipSettingsState,$Se=S4.setActiveMouseOverItemIndex;S4.mouseLeaveItem;var C4=S4.mouseLeaveChart;S4.setActiveClickItemIndex;var w4=S4.setMouseOverAxisIndex,eCe=S4.setMouseClickAxisIndex,T4=S4.setSyncInteraction,E4=S4.setKeyboardInteraction,tCe=x4.reducer;function D4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function O4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
394t%2?D4(Object(n),!0).forEach(function(t){nCe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D4(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nCe(e,t,n){return(t=rCe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rCe(e){var t=iCe(e,`string`);return typeof t==`symbol`?t:t+``}function iCe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function aCe(e,t,n){return t===`axis`?n===`click`?e.axisInteraction.click:e.axisInteraction.hover:n===`click`?e.itemInteraction.click:e.itemInteraction.hover}function oCe(e){return e.index!=null}var k4=(e,t,n,r)=>{if(t==null)return b4;var i=aCe(e,t,n);if(i==null)return b4;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(oCe(i)){if(a)return O4(O4({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return O4(O4({},b4),{},{coordinate:i.coordinate})};function sCe(e){if(typeof e==`number`)return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}function cCe(e,t){var n=sCe(e),r=t[0],i=t[1];return n===void 0?!1:n>=Math.min(r,i)&&n<=Math.max(r,i)}function lCe(e,t,n){if(n==null||t==null)return!0;var r=VY(e,t);return r==null||!UZ(n)?!0:cCe(r,n)}var A4=(e,t,n,r)=>{var i=e?.index;if(i==null)return null;var a=Number(i);if(!LY(a))return i;var o=0,s=1/0;t.length>0&&(s=t.length-1);var c=Math.max(o,Math.min(a,s)),l=t[c];return l==null||lCe(l,n,r)?String(c):null},j4=(e,t,n,r,i,a,o)=>{if(a!=null){var s=o[0]?.getPosition(a);if(s!=null)return s;var c=i?.[Number(a)];if(c)switch(n){case`horizontal`:return{x:c.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:c.coordinate}}}},M4=(e,t,n,r)=>{if(t===`axis`)return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i=n===`hover`?e.itemInteraction.hover.graphicalItemId:e.itemInteraction.click.graphicalItemId;if(e.syncInteraction.active&&i==null)return e.tooltipItemPayloads;if(i==null&&(r!=null||e.keyboardInteraction.active)){var a=e.tooltipItemPayloads[0];return a==null?[]:[a]}return e.tooltipItemPayloads.filter(e=>e.settings?.graphicalItemId===i)},N4=e=>e.options.tooltipPayloadSearcher,P4=e=>e.tooltip;function F4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function I4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?F4(Object(n),!0).forEach(function(t){uCe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F4(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function uCe(e,t,n){return(t=dCe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dCe(e){var t=fCe(e,`string`);return typeof t==`symbol`?t:t+``}function fCe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function pCe(e){if(typeof e==`string`||typeof e==`number`)return e}function mCe(e){if(typeof e==`string`||typeof e==`number`||typeof e==`boolean`)return e}function hCe(e){if(typeof e==`string`||typeof e==`number`)return e;if(typeof e==`function`)return t=>e(t)}function L4(e){if(typeof e==`string`)return e}function gCe(e){if(!(typeof e!=`object`||!e))return{name:`name`in e?pCe(e.name):void 0,unit:`unit`in e?mCe(e.unit):void 0,dataKey:`dataKey`in e?hCe(e.dataKey):void 0,payload:`payload`in e?e.payload:void 0,color:`color`in e?L4(e.color):void 0,fill:`fill`in e?L4(e.fill):void 0}}function _Ce(e,t){return e??t}var R4=(e,t,n,r,i,a,o)=>
394{if(!(t==null||a==null)){var s=n.chartData,c=n.computedData,l=n.dataStartIndex,u=n.dataEndIndex;return e.reduce((e,n)=>{var d=n.dataDefinedOnItem,f=n.settings,p=_Ce(d,s),m=Array.isArray(p)?IY(p,l,u):p,h=f?.dataKey??r,g=f?.nameKey,_;return r&&Array.isArray(m)&&!Array.isArray(m[0])&&o===`axis`?(_=GU(m,r,i),_??=a(m,t,c,g)):_=a(m,t,c,g),Array.isArray(_)?_.forEach(t=>{var n=gCe(t),r=n?.name,i=n?.dataKey,a=n?.payload,o=I4(I4({},f),{},{name:r,unit:n?.unit,color:n?.color??f?.color,fill:n?.fill??f?.fill});e.push(YY({tooltipEntrySettings:o,dataKey:i,payload:a,value:VY(a,i),name:r==null?void 0:String(r)}))}):e.push(YY({tooltipEntrySettings:f,dataKey:h,payload:_,value:VY(_,h),name:VY(_,g)??f?.name})),e},[])}},z4=Q([T2,c2,aQ],K0),B4=Q([Q([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),T2,Q([PQ,FQ],l2)],d2,{memoizeOptions:{resultEqualityCheck:NQ}}),vCe=Q([B4],e=>e.filter(jQ)),V4=Q([B4],h2,{memoizeOptions:{resultEqualityCheck:NQ}}),yCe=Q([B4],e=>e.some(e=>!e.data)),H4=Q([V4,RZ],_2),bCe=Q([vCe,RZ,T2],AQ),U4=Q([H4,T2,B4,RZ,yCe,V4],y2),W4=Q([T2],A2),G4=Q([W4,Q([T2],e=>e.allowDataOverflow)],GZ),xCe=Q([Q([bCe,Q([B4],e=>e.filter(jQ)),rQ,iQ],D2),RZ,PQ,G4],k2),SCe=Q([H4,T2,Q([B4],m2),N2,PQ,tye],F2,{memoizeOptions:{resultEqualityCheck:MQ}}),CCe=Q([Q([I2,PQ,FQ],L2),PQ],B2),wCe=Q([Q([R2,PQ,FQ],L2),PQ],V2),K4=Q([T2,CX,H4,U4,rQ,PQ,Q([T2,W4,G4,xCe,SCe,Q([CCe,Q([Q([z2,PQ,FQ],L2),PQ],H2),wCe],P2),CX,PQ],U2)],W2),TCe=Q([T2,K4,Q([K4,T2,z4],q2),PQ],Y2),q4=e=>$2(e,PQ(e),FQ(e),!1),J4=Q([T2,q4],fQ),Y4=Q([Q([T2,z4,TCe,J4],G0)],IQ),X4=Q([CX,T2,z4,Y4,q4,Q([CX,U4,T2,PQ],l4),Q([CX,U4,T2,PQ],n4),PQ],(e,t,n,r,i,a,o,s)=>{if(t){var c=t.type,l=HY(e,s);if(r){var u=n===`scaleBand`&&r.bandwidth?r.bandwidth()/2:2,d=c===`category`&&r.bandwidth?r.bandwidth()/u:0;return d=s===`angleAxis`&&i!=null&&i?.length>=2?IU(i[0]-i[1])*2*d:d,l&&o?o.map((e,t)=>{var n=r.map(e);return LY(n)?{coordinate:n+d,value:e,index:t,offset:d}:null}).filter(JU):r.domain().map((e,t)=>{var n=r.map(e);return LY(n)?{coordinate:n+d,value:a?a[e]:e,index:t,offset:d}:null}).filter(JU)}}}),Z4=Q([h4,g4,JSe],(e,t,n)=>_4(n.shared,e,t)),Q4=e=>e.tooltip.settings.trigger,$4=e=>e.tooltip.settings.defaultIndex,e3=Q([P4,Z4,Q4,$4],k4),t3=Q([e3,H4,E2,K4],A4),n3=Q([X4,t3],y4),ECe=Q([e3],e=>{if(e)return e.dataKey}),DCe=Q([e3],e=>{if(e)return e.graphicalItemId}),r3=Q([P4,Z4,Q4,$4],M4),OCe=Q([e3,Q([ZY,QY,CX,iX,X4,$4,r3],j4)],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),kCe=Q([e3],e=>e?.active??!1),ACe=Q([Q([r3,t3,RZ,E2,n3,N4,Z4],R4)],e=>{if(e!=null){var t=e.map(e=>e.payload).filter(e=>e!=null);return Array.from(new Set(t))}});function i3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?i3(Object(n),!0).forEach(function(t){jCe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jCe(e,t,n){return(t=MCe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MCe(e){var t=NCe(e,`string`);return typeof t==`symbol`?t:t+``}function NCe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var PCe=()=>Z(T2),FCe=()=>{var e=PCe(),t=Z(X4),n=Z(Y4);return JY(!e||!n?void 0:a3(a3({},e),{},{scale:n}),t)};function o3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?o3(Object(n),!0).forEach(function(t){ICe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o3(Object(n)).forEac
394h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ICe(e,t,n){return(t=LCe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LCe(e){var t=RCe(e,`string`);return typeof t==`symbol`?t:t+``}function RCe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var zCe=(e,t,n,r)=>{var i=t.find(e=>e&&e.index===n);if(i){if(e===`horizontal`)return{x:i.coordinate,y:r.relativeY};if(e===`vertical`)return{x:r.relativeX,y:i.coordinate}}return{x:0,y:0}},BCe=(e,t,n,r)=>{var i=t.find(e=>e&&e.index===n);if(i){if(e===`centric`){var a=i.coordinate,o=r.radius;return s3(s3(s3({},r),AZ(r.cx,r.cy,o,a)),{},{angle:a,radius:o})}var s=i.coordinate,c=r.angle;return s3(s3(s3({},r),AZ(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function VCe(e,t){var n=e.relativeX,r=e.relativeY;return n>=t.left&&n<=t.left+t.width&&r>=t.top&&r<=t.top+t.height}var c3=(e,t,n,r,i)=>{var a=t?.length??0;if(a<=1||e==null)return 0;if(r===`angleAxis`&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var o=i[1]-i[0],s=(t,n,r)=>[e,e+o,e-o].some(e=>(r?e>=t:e>t)&&e<=n),c=0;c<a;c++){var l=c>0?n[c-1]?.coordinate:n[a-1]?.coordinate,u=n[c]?.coordinate,d=c>
394=a-1?n[0]?.coordinate:n[c+1]?.coordinate,f=void 0;if(!(l==null||u==null||d==null))if(IU(u-l)!==IU(d-u)){var p=[];if(IU(d-u)===IU(i[1]-i[0])){f=d;var m=u+i[1]-i[0];p[0]=Math.min(m,(m+l)/2),p[1]=Math.max(m,(m+l)/2)}else{f=l;var h=d+i[1]-i[0];p[0]=Math.min(u,(h+u)/2),p[1]=Math.max(u,(h+u)/2)}var g=[Math.min(u,(f+u)/2),Math.max(u,(f+u)/2)];if(s(g[0],g[1],!1)||s(p[0],p[1],!0))return n[c]?.index}else{var _=Math.min(l,d),v=Math.max(l,d);if(s((_+u)/2,(v+u)/2,!1))return n[c]?.index}}else if(t)for(var y=0;y<a;y++){var b=t[y];if(b!=null){var x=t[y+1],S=t[y-1];if(y===0&&x!=null&&e<=(b.coordinate+x.coordinate)/2||y===a-1&&S!=null&&e>(b.coordinate+S.coordinate)/2||y>0&&y<a-1&&S!=null&&x!=null&&e>(b.coordinate+S.coordinate)/2&&e<=(b.coordinate+x.coordinate)/2)return b.index}}return-1},l3=()=>Z(aQ),u3=(e,t)=>t,d3=(e,t,n)=>n,f3=(e,t,n,r)=>r,HCe=Q(X4,e=>$K(e,e=>e.coordinate)),p3=Q([P4,u3,d3,f3],k4),m3=Q([p3,H4,E2,K4],A4),UCe=(e,t,n)=>{if(t!=null){var r=P4(e);return t===`axis`?n===`hover`?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n===`hover`?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},h3=Q([P4,u3,d3,f3],M4),g3=Q([ZY,QY,CX,iX,X4,f3,h3],j4),WCe=Q([p3,g3],(e,t)=>e.coordinate??t),_3=Q([X4,m3],y4),GCe=Q([h3,m3,RZ,E2,_3,N4,u3],R4),KCe=Q([p3,m3],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),qCe=(e,t,n,r,i,a,o)=>{if(!(!e||!n||!r||!i)&&VCe(e,o)){var s=c3(Hhe(e,t),a,i,n,r),c=zCe(t,i,s,e);return{activeIndex:String(s),activeCoordinate:c}}},JCe=(e,t,n,r,i,a,o)=>{if(!(!e||!r||!i||!a||!n)){var s=zve(e,n);if(s){var c=c3(Uhe(s,t),o,a,r,i),l=BCe(t,a,c,s);return{activeIndex:String(c),activeCoordinate:l}}}},YCe=(e,t,n,r,i,a,o,s)=>{if(!(!e||!t||!r||!i||!a))return t===`horizontal`||t===`vertical`?qCe(e,t,r,i,a,o,s):JCe(e,t,n,r,i,a,o)},XCe=Q(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(t!=null){var r=e[t];if(r!=null)return n?r.panoramaElement:r.element}}),ZCe=Q(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(e=>parseInt(e,10)).concat(Object.values(lQ));return Array.from(new Set(t)).sort((e,t)=>e-t)},{memoizeOptions:{resultEqualityCheck:_ye}});function v3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function y3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?v3(Object(n),!0).forEach(function(t){QCe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function QCe(e,t,n){return(t=$Ce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Ce(e){var t=ewe(e,`string`);return typeof t==`symbol`?t:t+``}function ewe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var twe={zIndexMap:Object.values(lQ).reduce((e,t)=>y3(y3({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),{})},nwe=new Set(Object.values(lQ));function rwe(e){return nwe.has(e)}var b3=sY({name:`zIndex`,initialState:twe,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:rY()},unregisterZIndexPortal:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]&&(--e.zIndexMap[n].consumers,e.zIndexMap[n].consumers<=0&&!rwe(n)&&delete e.zIndexMap[n])},prepare:rY()},registerZIndexPortalElement:{reducer:(e,t)=>{var n=t.payload,r=n.zIndex,i=n.element,a=n.isPanorama;e.zIndexMap[r]?a?e.zIndexMap[r].panoramaElement=GJ(i):e.zIndexMap[r].element=GJ(i):e.zIndexMap[r]={consumers:0,element:a?void 0:GJ(i),panoramaElement:a?GJ(i):void 0}},prepare:rY()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:rY()}}}),x3=b3.actions,iwe=x3.registerZIndexPortal,S3=x3.unregisterZIndexPortal,awe
394=x3.registerZIndexPortalElement,owe=x3.unregisterZIndexPortalElement,swe=b3.reducer;function C3(e){var t=e.zIndex,n=e.children,r=Dge()&&t!==void 0&&t!==0,i=oX(),a=(0,R.useRef)(void 0),o=(0,R.useRef)(new Set),s=OK(),c=Z(e=>XCe(e,t,i));if((0,R.useLayoutEffect)(()=>{if(!r){var e=o.current;e.forEach(e=>{s(S3({zIndex:e}))}),e.clear(),a.current=void 0;return}if(o.current.has(t)||(s(iwe({zIndex:t})),o.current.add(t)),c){a.current=c;var n=o.current;n.forEach(e=>{e!==t&&(s(S3({zIndex:e})),n.delete(e))})}},[s,t,r,c]),(0,R.useLayoutEffect)(()=>{var e=o.current;return()=>{e.forEach(e=>{s(S3({zIndex:e}))}),e.clear()}},[s]),!r)return n;var l=c??a.current;return l?(0,eU.createPortal)(n,l):null}function w3(){return w3=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},w3.apply(null,arguments)}function T3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function E3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?T3(Object(n),!0).forEach(function(t){cwe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cwe(e,t,n){return(t=lwe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lwe(e){var t=uwe(e,`string`);return typeof t==`symbol`?t:t+``}function uwe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function dwe(e){var t=e.cursor,n=e.cursorComp,r=e.cursorProps;return(0,R.isValidElement)(t)?(0,R.cloneElement)(t,r):(0,R.createElement)(n,r)}function fwe(e){var t=e.coordinate,n=e.payload,r=e.index,i=e.offset,a=e.tooltipAxisBandSize,o=e.layout,s=e.cursor,c=e.tooltipEventType,l=e.chartName,u=t,d=n,f=r;if(!s||!u||l!==`ScatterChart`&&c!==`axis`)return null;var p,m,h;if(l===`ScatterChart`)p=u,m=R_e,h=lQ.cursorLine;else if(l===`BarChart`)p=z_e(o,u,i,a),m=kve,h=lQ.cursorRectangle;else if(o===`radial`&&oG(u)){var g=jZ(u),_=g.cx,v=g.cy,y=g.radius;p={cx:_,cy:v,startAngle:g.startAngle,endAngle:g.endAngle,innerRadius:y,outerRadius:y},m=Xve,h=lQ.cursorLine}else p={points:Zve(o,u,i)},m=nZ,h=lQ.cursorLine;var b=typeof s==`object`&&`className`in s?s.className:void 0,x=E3(E3(E3(E3({stroke:`#ccc`,pointerEvents:`none`},i),p),uU(s)),{},{payload:d,payloadIndex:f,className:nU(`recharts-tooltip-cursor`,b)});return R.createElement(C3,{zIndex:e.zIndex??h},R.createElement(dwe,{cursor:s,cursorComp:m,cursorProps:x}))}function pwe(e){var t=FCe(),n=bX(),r=wX(),i=l3();return t==null||n==null||r==null||i==null?null:R.createElement(fwe,w3({}
394,e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:i}))}var D3=(0,R.createContext)(null),mwe=()=>(0,R.useContext)(D3),hwe=r(a(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn===t&&(!i||o.once)&&(!n||o.context===n)&&s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)}))(),1).default,O3=new hwe,k3=`recharts.syncEvent.tooltip`,A3=`recharts.syncEvent.brush`,gwe=(e,t)=>{if(t&&Array.isArray(e)){var n=Number.parseInt(t,10);if(!LU(n))return e[n]}},j3=sY({name:`options`,initialState:{chartName:``,tooltipPayloadSearcher:()=>void 0,eventEmitter:void 0,defaultTooltipEventType:`axis`},reducers:{createEventEmitter:e=>{e.eventEmitter??=Symbol(`rechartsEventEmitter`)}}}),_we=j3.reducer,vwe=j3.actions.createEventEmitter;function ywe(e){return e.tooltip.syncInteraction}var M3=sY({name:`chartData`,initialState:{chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},reducers:{setChartData(e,t){if(e.chartData=GJ(t.payload),t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var n=t.payload,r=n.startIndex,i=n.endIndex;r!=null&&(e.dataStartIndex=r),i!=null&&(e.dataEndIndex=i)}}}),N3=M3.actions,P3=N3.setChartData,bwe=N3.setDataStartEndIndexes;N3.setComputedData;var xwe=M3.reducer,Swe=[`x`,`y`];function F3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function I3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
394t%2?F3(Object(n),!0).forEach(function(t){Cwe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cwe(e,t,n){return(t=wwe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wwe(e){var t=Twe(e,`string`);return typeof t==`symbol`?t:t+``}function Twe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ewe(e,t){if(e==null)return{};var n,r,i=Dwe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Dwe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Owe(){var e=Z(oQ),t=Z(cQ),n=OK(),r=Z(sQ),i=Z(X4),a=wX(),o=yX();(0,R.useEffect)(()=>{if(e==null)return YU;var s=(s,c,l)=>{if(t!==l&&e===s){if(c.payload.active===!1){n(T4({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(r===`index`){var u;if(o&&c!=null&&(u=c.payload)!=null&&u.coordinate&&c.payload.sourceViewBox){var d=c.payload.coordinate,f=d.x,p=d.y,m=Ewe(d,Swe),h=c.payload.sourceViewBox,g=h.x,_=h.y,v=h.width,y=h.height,b=I3(I3({},m),{},{x:o.x+(v?(f-g)/v:0)*o.width,y:o.y+(y?(p-_)/y:0)*o.height});n(I3(I3({},c),{},{payload:I3(I3({},c.payload),{},{coordinate:b})}))}else n(c);return}if(i!=null){var x;typeof r==`function`?x=i[r(i,{activeTooltipIndex:c.payload.index==null?void 0:Number(c.payload.index),isTooltipActive:c.payload.active,activeIndex:c.payload.index==null?void 0:Number(c.payload.index),activeLabel:c.payload.label,activeDataKey:c.payload.dataKey,activeCoordinate:c.payload.coordinate})]:r===`value`&&(x=i.find(e=>String(e.value)===c.payload.label));var S=c.payload.coordinate;if(S==null||o==null){n(T4({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(x==null){n(T4({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:void 0}));return}var C=S.x,w=S.y,T=Math.min(C,o.x+o.width),E=Math.min(w,o.y+o.height),D={x:a===`horizontal`?x.coordinate:T,y:a===`horizontal`?E:x.coordinate};n(T4({active:c.payload.active,coordinate:D,dataKey:c.payload.dataKey,index:String(x.index),label:c.payload.label,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:c.payload.graphicalItemId}))}}};return O3.on(k3,s),()=>{O3.off(k3,s)}},[Z(e=>e.rootProps.className),n,t,e,r,i,a,o])}function kwe(){var e=Z(oQ),t=Z(cQ),n=OK();(0,R.useEffect)(()=>{if(e==null)return YU;var r=(r,i,a)=>{t!==a&&e===r&&n(bwe(i))};return O3.on(A3,r),()=>{O3.off(A3,r)}},[n,t,e])}function Awe(){var e=OK();(0,R.useEffect)(()=>{e(vwe())},[e]),Owe(),kwe()}function jwe(e,t,n,r,i,a){var o=Z(n=>UCe(n,e,t)),s=Z(DCe),c=Z(cQ),l=Z(oQ),u=Z(sQ),d=Z(ywe)?.sourceViewBox!=null,f=yX();(0,R.useEffect)(()=>{if(!d&&l!=null&&c!=null){var e=T4({active:a,coordinate:n,dataKey:o,index:i,label:typeof r==`number`?String(r):r,sourceViewBox:f,graphicalItemId:s});O3.emit(k3,l,e,c)}},[d,n,o,s,i,r,c,l,u,a,f])}function L3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function R3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?L3(Object(n),!0).forEach(function(t){Mwe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mwe(e,t,n){return(t=Nwe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nwe(e){var t=Pwe(e,`string`);return typeof t==`symbol`?t:t+``}function Pwe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Fwe(e,t){return zwe(e)||Rwe(e,t)||Lwe(e,t)||Iwe()}
394function Iwe(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 395In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lwe(e,t){if(e){if(typeof e==`string`)return z3(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?z3(e,t):void 0}}function z3(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Rwe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function zwe(e){if(Array.isArray(e))return e}function Bwe(e){return e.dataKey}function Vwe(e,t){return R.isValidElement(e)?R.cloneElement(e,t):typeof e==`function`?R.createElement(e,t):R.createElement(i_e,t)}var B3=[],Hwe={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:`ease`,axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:`auto`,itemSorter:`name`,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:` : `,trigger:`hover`,useTranslate3d:!1,wrapperStyle:{}};function Uwe(e){var t=hG(e,Hwe),n=t.active,r=t.allowEscapeViewBox,i=t.animationDuration,a=t.animationEasing,o=t.content,s=t.filterNull,c=t.isAnimationActive,l=t.offset,u=t.payloadUniqBy,d=t.position,f=t.reverseDirection,p=t.useTranslate3d,m=t.wrapperStyle,h=t.cursor,g=t.shared,_=t.trigger,v=t.defaultIndex,y=t.portal,b=t.axisId,x=OK(),S=typeof v==`number`?String(v):v;(0,R.useEffect)(()=>{x(QSe({shared:g,trigger:_,axisId:b,active:n,defaultIndex:S}))},[x,g,_,b,n,S]);var C=yX(),w=KX(),T=qSe(g),E=Z(e=>KCe(e,T,_,S))??{},D=E.activeIndex,O=E.isActive,k=Z(e=>GCe(e,T,_,S)),A=Z(e=>_3(e,T,_,S)),j=Z(e=>WCe(e,T,_,S)),M=k,N=mwe(),P=n??O??!1,F=Fwe(dq([M,P]),2),ee=F[0],te=F[1],ne=T===`axis`?A:void 0;jwe(T,_,j,ne,D,P);var re=y??N;if(re==null||C==null||T==null)return null;var I=M??B3;P||(I=B3),s&&I.length&&(I=TK(I.filter(e=>e.value!=null&&(e.hide!==!0||t.includeHidden)),u,Bwe));var ie=I.length>0,ae=R3(R3({},t),{},{payload:I,label:ne,active:P,activeIndex:D,coordinate:j,accessibilityLayer:w}),oe=R.createElement(w_e,{allowEscapeViewBox:r,animationDuration:i,animationEasing:a,isAnimationActive:c,active:P,coordinate:j,hasPayload:ie,offset:l,position:d,reverseDirection:f,useTranslate3d:p,viewBox:C,wrapperStyle:m,lastBoundingBox:ee,innerRef:te,hasPortalFromProps:!!y},Vwe(o,ae));return R.createElement(R.Fragment,null,(0,eU.createPortal)(oe,re),P&&R.createElement(pwe,{cursor:h,tooltipEventType:T,coordinate:j,payload:I,index:D}))}function Wwe(e,t,n){return(t=Gwe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gwe(e){var t=Kwe(e,`string`);return typeof t==`symbol`?t:t+``}function Kwe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var qwe=class{constructor(e){Wwe(this,`cache`,new Map),this.maxSize=e}get(e){var t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}};function V3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jwe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
395t%2?V3(Object(n),!0).forEach(function(t){Ywe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ywe(e,t,n){return(t=Xwe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xwe(e){var t=Zwe(e,`string`);return typeof t==`symbol`?t:t+``}function Zwe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var H3=Jwe({},{cacheSize:2e3,enableCache:!0}),U3=new qwe(H3.cacheSize),Qwe={position:`absolute`,top:`-20000px`,left:0,padding:0,margin:0,border:`none`,whiteSpace:`pre`},W3=`recharts_measurement_span`;function $we(e,t){return`${e}|${t.fontSize||``}|${t.fontFamily||``}|${t.fontWeight||``}|${t.fontStyle||``}|${t.letterSpacing||``}|${t.textTransform||``}`}var G3=(e,t)=>{try{var n=document.getElementById(W3);n||(n=document.createElement(`span`),n.setAttribute(`id`,W3),n.setAttribute(`aria-hidden`,`true`),document.body.appendChild(n)),Object.assign(n.style,Qwe,t),n.textContent=`${e}`;var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},K3=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||BX.isSsr)return{width:0,height:0};if(!H3.enableCache)return G3(e,t);var n=$we(e,t),r=U3.get(n);if(r)return r;var i=G3(e,t);return U3.set(n,i),i},q3;function J3(e,t){return rTe(e)||nTe(e,t)||tTe(e,t)||eTe()}function eTe(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 396In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tTe(e,t){if(e){if(typeof e==`string`)return Y3(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y3(e,t):void 0}}function Y3(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function nTe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function rTe(e){if(Array.isArray(e))return e}function iTe(e,t,n){return(t=aTe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aTe(e){var t=oTe(e,`string`);return typeof t==`symbol`?t:t+``}function oTe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var X3=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Z3=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,sTe=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,cTe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,lTe={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},uTe=[`cm`,`mm`,`pt`,`pc`,`in`,`Q`,`px`];function dTe(e){return uTe.includes(e)}var Q3=`NaN`;function fTe(e,t){return e*lTe[t]}var $3=class e{static parse(t){var n=J3(cTe.exec(t)??[],3),r=n[1],i=n[2];return r==null?e.NaN:new e(parseFloat(r),i??``)}constructor(e,t){this.num=e,this.unit=t,this.num=e,this.unit=t,LU(e)&&(this.unit=``),t!==``&&!sTe.test(t)&&(this.num=NaN,this.unit=``),dTe(t)&&(this.num=fTe(e,t),this.unit=`px`)}add(t){return this.unit===t.unit?new e(this.num+t.num,this.unit):new e(NaN,``)}subtract(t){return this.unit===t.unit?new e(this.num-t.num,this.unit):new e(NaN,``)}multiply(t){return this.unit!==``&&t.unit!==``&&this.unit!==t.unit?new e(NaN,``):new e(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==``&&t.unit!==``&&this.unit!==t.unit?new e(NaN,``):new e(this.num/t.num,this.unit||t.unit)}toString(){return`${this.num}${this.unit}`}isNaN(){return LU(this.num)}};q3=$3,iTe($3,`NaN`,new q3(NaN,``));function e6(e){if(e==null||e.includes(Q3))return Q3;for(var t=e;t.includes(`*`)||t.includes(`/`);){var n=J3(X3.exec(t)??[],4),r=n[1],i=n[2],a=n[3],o=$3.parse(r??``),s=$3.parse(a??``),c=i===`*`?o.multiply(s):o.divide(s);if(c.isNaN())return Q3;t=t.replace(X3,c.toString())}for(;t.includes(`+`)||/.-\d+(?:\.\d+)?/.test(t);){var l=J3(Z3.exec(t)??[],4),u=l[1],d=l[2],f=l[3],p=$3.parse(u??``),m=$3.parse(f??``),h=d===`+`?p.add(m):
396p.subtract(m);if(h.isNaN())return Q3;t=t.replace(Z3,h.toString())}return t}var t6=/\(([^()]*)\)/;function pTe(e){for(var t=e,n;(n=t6.exec(t))!=null;){var r=J3(n,2)[1];t=t.replace(t6,e6(r))}return t}function mTe(e){var t=e.replace(/\s+/g,``);return t=pTe(t),t=e6(t),t}function hTe(e){try{return mTe(e)}catch{return Q3}}function n6(e){var t=hTe(e.slice(5,-1));return t===Q3?``:t}var gTe=[`x`,`y`,`lineHeight`,`capHeight`,`fill`,`scaleToFit`,`textAnchor`,`verticalAnchor`],_Te=[`dx`,`dy`,`angle`,`className`,`breakAll`];function r6(){return r6=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},r6.apply(null,arguments)}function i6(e,t){if(e==null)return{};var n,r,i=vTe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function vTe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function a6(e,t){return STe(e)||xTe(e,t)||bTe(e,t)||yTe()}function yTe(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 397In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bTe(e,t){if(e){if(typeof e==`string`)return o6(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o6(e,t):void 0}}function o6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xTe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function STe(e){if(Array.isArray(e))return e}var s6=/[ \f\n\r\t\v\u2028\u2029]+/,c6=e=>{var t=e.children,n=e.breakAll,r=e.style;try{var i=[];return KU(t)||(i=n?t.toString().split(``):t.toString().split(s6)),{wordsWithComputedWidth:i.map(e=>({word:e,width:K3(e,r).width})),spaceWidth:n?0:K3(`\xA0`,r).width}}catch{return null}};function l6(e){return e===`start`||e===`middle`||e===`end`||e===`inherit`}function CTe(e){return KU(e)||typeof e==`string`||typeof e==`number`||typeof e==`boolean`}var u6=(e,t,n,r)=>e.reduce((e,i)=>{var a=i.word,o=i.width,s=e[e.length-1];if(s&&o!=null&&(t==null||r||s.width+o+n<Number(t)))s.words.push(a),s.width+=o+n;else{var c={words:[a],width:o};e.push(c)}return e},[]),d6=e=>e.reduce((e,t)=>e.width>t.width?e:t),wTe=`â¦`,f6=(e,t,n,r,i,a,o,s)=>{var c=c6({breakAll:n,style:r,children:e.slice(0,t)+wTe});if(!c)return[!1,[]];var l=u6(c.wordsWithComputedWidth,a,o,s);return[l.length>i||d6(l).width>Number(a),l]},TTe=(e,t,n,r,i)=>{var a=e.maxLines,o=e.children,s=e.style,c=e.breakAll,l=X(a),u=String(o),d=u6(t,r,n,i);if(!l||i||!(d.length>a||d6(d).width>Number(r)))return d;for(var f=0,p=u.length-1,m=0,h;f<=p&&m<=u.length-1;){var g=Math.floor((f+p)/2),_=a6(f6(u,g-1,c,s,a,r,n,i),2),v=_[0],y=_[1],b=a6(f6(u,g,c,s,a,r,n,i),1)[0];if(!v&&!b&&(f=g+1),v&&b&&(p=g-1),!v&&b){h=y;break}m++}return h||d},p6=e=>[{words:KU(e)?[]:e.toString().split(s6),width:void 0}],ETe=e=>{var t=e.width,n=e.scaleToFit,r=e.children,i=e.style,a=e.breakAll,o=e.maxLines;if((t||n)&&!BX.isSsr){var s,c,l=c6({breakAll:a,children:r,style:i});if(l){var u=l.wordsWithComputedWidth,d=l.spaceWidth;s=u,c=d}else return p6(r);return TTe({breakAll:a,children:r,maxLines:o,style:i},s,c,t,!!n)}return p6(r)},m6=`#808080`,DTe={angle:0,breakAll:!1,capHeight:`0.71em`,fill:m6,lineHeight:`1em`,scaleToFit:!1,textAnchor:`start`,verticalAnchor:`end`,x:0,y:0},h6=(0,R.forwardRef)((e,t)=>{var n=hG(e,DTe),r=n.x,i=n.y,a=n.lineHeight,o=n.capHeight,s=n.fill,c=n.scaleToFit,l=n.textAnchor,u=n.verticalAnchor,d=i6(n,gTe),f=(0,R.useMemo)(()=>ETe({breakAll:d.breakAll,children:d.children,maxLines:d.maxLines,scaleToFit:c,style:d.style,width:d.width}),[d.breakAll,d.children,d.maxLines,c,d.style,d.width]),p=d.dx,m=d.dy,h=d.angle,g=d.className,_=d.breakAll,v=i6(d,_Te);
397if(!zU(r)||!zU(i)||f.length===0)return null;var y=Number(r)+(X(p)?p:0),b=Number(i)+(X(m)?m:0);if(!LY(y)||!LY(b))return null;var x;switch(u){case`start`:x=n6(`calc(${o})`);break;case`middle`:x=n6(`calc(${(f.length-1)/2} * -${a} + (${o} / 2))`);break;default:x=n6(`calc(${f.length-1} * -${a})`);break}var S=[],C=f[0];if(c&&C!=null){var w=C.width,T=d.width;S.push(`scale(${X(T)&&X(w)?T/w:1})`)}return h&&S.push(`rotate(${h}, ${y}, ${b})`),S.length&&(v.transform=S.join(` `)),R.createElement(`text`,r6({},dU(v),{ref:t,x:y,y:b,className:nU(`recharts-text`,g),textAnchor:l,fill:s.includes(`url`)?m6:s}),f.map((e,t)=>{var n=e.words.join(_?``:` `);return R.createElement(`tspan`,{x:y,dy:t===0?x:a,key:`${n}-${t}`},n)}))});h6.displayName=`Text`;var OTe=[`labelRef`],kTe=[`content`];function g6(e,t){if(e==null)return{};var n,r,i=ATe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ATe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function _6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function v6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_6(Object(n),!0).forEach(function(t){jTe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_6(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jTe(e,t,n){return(t=MTe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MTe(e){var t=NTe(e,`string`);return typeof t==`symbol`?t:t+``}function NTe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function y6(){return y6=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},y6.apply(null,arguments)}var b6=(0,R.createContext)(null),PTe=e=>{var t=e.x,n=e.y,r=e.upperWidth,i=e.lowerWidth,a=e.width,o=e.height,s=e.children,c=(0,R.useMemo)(()=>({x:t,y:n,upperWidth:r,lowerWidth:i,width:a,height:o}),[t,n,r,i,a,o]);return R.createElement(b6.Provider,{value:c},s)},x6=()=>{var e=(0,R.useContext)(b6),t=yX();return e||(t?XU(t):void 0)},FTe=(0,R.createContext)(null),ITe=()=>{var e=(0,R.useContext)(FTe),t=Z(EQ);return e||t},LTe=e=>{var t=e.value,n=e.formatter,r=KU(e.children)?t:e.children;return typeof n==`function`?n(r):r},S6=e=>e!=null&&typeof e==`function`,RTe=(e,t)=>IU(t-e)*Math.min(Math.abs(t-e),360),zTe=(e,t,n,r,i)=>{var a=e.offset,o=e.className,s=i.cx,c=i.cy,l=i.innerRadius,u=i.outerRadius,d=i.startAngle,f=i.endAngle,p=i.clockWise,m=(l+u)/2,h=RTe(d,f),g=h>=0?1:-1,_,v;switch(t){case`insideStart`:_=d+g*a,v=p;break;case`insideEnd`:_=f-g*a,v=!p;break;case`end`:_=f+g*a,v=p;break;default:throw Error(`Unsupported position ${t}`)}v=h<=0?v:!v;var y=AZ(s,c,m,_),b=AZ(s,c,m,_+(v?1:-1)*359),x=`M${y.x},${y.y} 398 A${m},${m},0,1,${+!v}, 399 ${b.x},${b.y}`,S=KU(e.id)?VU(`recharts-radial-line-`):e.id;return R.createElement(`text`,y6({},r,{dominantBaseline:`central`,className:nU(`recharts-radial-bar-label`,o)}),R.createElement(`defs`,null,R.createElement(`path`,{id:S,d:x})),R.createElement(`textPath`,{xlinkHref:`#${S}`},n))},BTe=(e,t,n)=>{var r=e.cx,i=e.cy,a=e.innerRadius,o=e.outerRadius,s=(e.startAngle+e.endAngle)/2;if(n===`outside`){var c=AZ(r,i,o+t,s),l=c.x;return{x:l,y:c.y,textAnchor:l>=r?`start`:`end`,verticalAnchor:`middle`}}if(n===`center`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`middle`};if(n===`centerTop`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`start`};if(n===`centerBottom`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`end`};var u=AZ(r,i,(a+o)/2,s);return{x:u.x,y:u.y,textAnchor:`middle`,verticalAnchor:`middle`}},C6=e=>e!=null&&`cx`in e&&X(e.cx),VTe={angle:0,offset:5,zIndex:lQ.label,position:`middle`,textBreakAll:!1};function HTe(e){if(!C6(e))return e;var t=e.cx,n=e.cy,r=e.outerRadius,i=r*2;return{x:t-r,y:n-r,width:i,upperWidth:i,lowerWidth:i,height:i}}function w6(e){var t=hG(e,VTe),n=t.viewBox,r=t.parentViewBox,i=t.position,a=t.value,o=t.children,s=t.content,c=t.className,l=c===void 0?``:c,u=t.textBreakAll,d=t.labelRef,f=ITe(),p=x6(),m=n==null?i===`center`?p:f??p:C6(n)?n:XU(n),h,g,_=HTe(m);if(!m||KU(a)&&KU(o)&&!(0,R.isValidElement)(s)&&typeof s!=`function`)return null;var v=C6(m)&&(i===`insideStart`||i===`insideEnd`||i===`end`);
399if(C6(m))v||(g=BTe(m,t.offset,t.position));else if(_){var y=nW({viewBox:_,position:i,offset:t.offset,parentViewBox:C6(r)?void 0:r,clamp:!0});g=v6(v6({x:y.x,y:y.y,textAnchor:y.horizontalAnchor,verticalAnchor:y.verticalAnchor},y.width===void 0?{}:{width:y.width}),y.height===void 0?{}:{height:y.height})}var b=v6(v6(v6(v6({},g?.x===void 0?{}:{x:g.x}),g?.y===void 0?{}:{y:g.y}),t),{},{viewBox:m});if((0,R.isValidElement)(s))return b.labelRef,(0,R.cloneElement)(s,g6(b,OTe));if(typeof s==`function`){if(b.content,h=(0,R.createElement)(s,g6(b,kTe)),(0,R.isValidElement)(h))return h}else h=LTe(t);var x=dU(t);return v&&C6(m)?zTe(t,i,h,x,m):g==null?null:R.createElement(C3,{zIndex:t.zIndex},R.createElement(h6,y6({ref:d,className:nU(`recharts-label`,l)},x,g,{textAnchor:l6(x.textAnchor)?x.textAnchor:g.textAnchor,breakAll:u}),h))}w6.displayName=`Label`;var UTe=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?R.createElement(w6,y6({key:`label-implicit`},r)):zU(e)?R.createElement(w6,y6({key:`label-implicit`,value:e},r)):(0,R.isValidElement)(e)?e.type===w6?(0,R.cloneElement)(e,v6({key:`label-implicit`},r)):R.createElement(w6,y6({key:`label-implicit`,content:e},r)):S6(e)?R.createElement(w6,y6({key:`label-implicit`,content:e},r)):e&&typeof e==`object`?R.createElement(w6,y6({},e,{key:`label-implicit`},r)):null};function WTe(e){var t=e.label,n=e.labelRef;return UTe(t,x6(),n)||null}var GTe=[`valueAccessor`],KTe=[`dataKey`,`clockWise`,`id`,`textBreakAll`,`zIndex`];function T6(){return T6=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},T6.apply(null,arguments)}function E6(e,t){if(e==null)return{};var n,r,i=qTe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function qTe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var JTe=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(CTe(t))return t},D6=(0,R.createContext)(void 0),YTe=D6.Provider,O6=(0,R.createContext)(void 0);O6.Provider;function XTe(){return(0,R.useContext)(D6)}function ZTe(){return(0,R.useContext)(O6)}function k6(e){var t=e.valueAccessor,n=t===void 0?JTe:t,r=E6(e,GTe),i=r.dataKey;r.clockWise;var a=r.id,o=r.textBreakAll,s=r.zIndex,c=E6(r,KTe),l=XTe(),u=ZTe(),d=l||u;return!d||!d.length?null:R.createElement(C3,{zIndex:s??lQ.label},R.createElement(SU,{className:`recharts-label-list`},d.map((e,t)=>{var s=KU(i)?n(e,t):VY(e.payload,i),l=KU(a)?{}:{id:`${a}-${t}`};return R.createElement(w6,T6({key:`label-${t}`},dU(e),c,l,{fill:r.fill??e.fill,parentViewBox:e.parentViewBox,value:s,textBreakAll:o,viewBox:e.viewBox,index:t,zIndex:0}))})))}k6.displayName=`LabelList`;function QTe(e){var t=e.label;return t?t===!0?R.createElement(k6,{key:`labelList-implicit`}):R.isValidElement(t)||S6(t)?R.createElement(k6,{key:`labelList-implicit`,content:t}):typeof t==`object`?R.createElement(k6,T6({key:`labelList-implicit`},t,{type:String(t.type)})):null:null}function A6(){return A6=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},A6.apply(null,arguments)}var j6=e=>{var t=e.cx,n=e.cy,r=e.r,i=e.className,a=nU(`recharts-dot`,i);return X(t)&&X(n)&&X(r)?R.createElement(`circle`,A6({},lU(e),sG(e),{className:a,cx:t,cy:n,r})):null},M6=sY({name:`polarAxis`,initialState:{radiusAxis:{},angleAxis:{}},reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=GJ(t.payload)},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=GJ(t.payload)},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),N6=M6.actions;N6.addRadiusAxis,N6.removeRadiusAxis,N6.addAngleAxis,N6.removeAngleAxis;var $Te=M6.reducer;function eEe(e){return e&&typeof e==`object`&&`className`in e&&typeof e.className==`string`?e.className:``}var tEe=a((e=>{if(typeof Symbol==`function`&&Symbol.for){var t=Symbol.for;t(`react.element`),t(`react.portal`),t(`react.fragment`),t(`react.strict_mode`),t(`react.profiler`),t(`react.provider`),t(`react.context`),t(`react.forward_ref`),t(`react.suspense`),t(`react.suspense_list`),t(`react.memo`),t(`react.lazy`),t(`react.block`),t(`react.server.block`),t(`react.fundamental`),t(`react.debug_trace_mode`),t(`react.legacy_hidden`)}}));a(((e,t)=>{t.exports=tEe()}))();var P6=e=>e&&typeof e==`object`&&`clipDot`in e?!!e.clipDot:!0;function F6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function I6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
399t%2?F6(Object(n),!0).forEach(function(t){nEe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F6(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nEe(e,t,n){return(t=rEe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rEe(e){var t=iEe(e,`string`);return typeof t==`symbol`?t:t+``}function iEe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function L6(e,t){return I6(I6({},t),e)}function aEe(e){return(0,R.isValidElement)(e)?e.props:e}function oEe(e,t){return(0,R.cloneElement)(e,L6(aEe(e),t))}function sEe(e){if(`index`in e){var t=e.index;return typeof t==`number`||typeof t==`string`?t:void 0}}function cEe(e){return`isActive`in e&&e.isActive===!0}function lEe(e){var t=e.option,n=e.DefaultShape,r=e.shapeProps,i=e.activeClassName,a=i===void 0?`recharts-active-shape`:i,o=e.inActiveClassName,s=o===void 0?`recharts-shape`:o,c=sEe(r),l=(0,R.isValidElement)(t)?oEe(t,r):t===n?R.createElement(n,r):typeof t==`function`?t(r,c):typeof t==`object`?R.createElement(n,L6(t,r)):R.createElement(n,r);return cEe(r)?R.createElement(SU,{className:a},l):R.createElement(SU,{className:s},l)}function uEe(e){var t=e.tooltipEntrySettings,n=OK(),r=oX(),i=(0,R.useRef)(null);return(0,R.useLayoutEffect)(()=>{r||(i.current===null?n(YSe(t)):i.current!==t&&n(XSe({prev:i.current,next:t})),i.current=t)},[t,n,r]),(0,R.useLayoutEffect)(()=>()=>{i.current&&=(n(ZSe(i.current)),null)},[n]),null}function dEe(e){var t=e.legendPayload,n=OK(),r=oX(),i=(0,R.useRef)(null);return(0,R.useLayoutEffect)(()=>{r||(i.current===null?n(Oge(t)):i.current!==t&&n(kge({prev:i.current,next:t})),i.current=t)},[n,r,t]),(0,R.useLayoutEffect)(()=>()=>{i.current&&=(n(Age(i.current)),null)},[n]),null}function fEe(e,t){return gEe(e)||hEe(e,t)||mEe(e,t)||pEe()}function pEe(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 400In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mEe(e,t){if(e){if(typeof e==`string`)return R6(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R6(e,t):void 0}}function R6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function hEe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function gEe(e){if(Array.isArray(e))return e}var z6=`index`;function B6(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=[];for(var i of n)r.push({status:`removed`,prev:i});for(var a=0;a<t.length;a++){var o=e[a],s=t[a];o==null?r.push({status:`added`,next:s}):r.push({status:`matched`,prev:o,next:s})}return r}function _Ee(e,t){var n=e.length/t.length;return B6(t.map((t,r)=>e[Math.floor(r*n)]),t)}function vEe(e,t){return B6(t.map((t,n)=>e[n]),t)}function yEe(e,t){for(var n=new Map,r=0;r<e.length;r++){var i=e[r];if(i!=null){var a=t(i,r);a!=null&&!n.has(a)&&n.set(a,i)}}return n}function bEe(e,t,n){var r=yEe(e,n),i=new Set,a=t.map((e,t)=>{var a=n(e,t);if(a!=null){var o=r.get(a);if(o!==void 0)return i.add(a),o}}),o=[];for(var s of r){var c=fEe(s,2),l=c[0],u=c[1];i.has(l)||o.push(u)}return B6(a,t,o)}function V6(e,t,n){return t==null?null:e==null?t.map(e=>({status:`added`,next:e})):n===`index`?_Ee(e,t):n===`append`?vEe(e,t):bEe(e,t,n)}function H6(e,t){var n=(0,R.useRef)(e),r=(0,R.useRef)(t.current),i=(0,R.useRef)(!0);n.current!==e&&(n.current=e,r.current=t.current,i.current=!1);var a=(0,R.useCallback)(function(e,n){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(n===0){i.current=!0;return}n===1&&(r.current=e),n>0&&i.current&&a&&(t.current=e)},[t]);return{startValue:r.current,syncStepValue:a}}function xEe(e,t){return TEe(e)||wEe(e,t)||CEe(e,t)||SEe()}
400function SEe(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 401In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CEe(e,t){if(e){if(typeof e==`string`)return U6(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U6(e,t):void 0}}function U6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wEe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function TEe(e){if(Array.isArray(e))return e}function EEe(e,t){var n=xEe((0,R.useState)(!1),2),r=n[0],i=n[1];return{isAnimating:r,handleAnimationStart:(0,R.useCallback)(()=>{typeof e==`function`&&e(),i(!0)},[e]),handleAnimationEnd:(0,R.useCallback)(()=>{typeof t==`function`&&t(),i(!1)},[t])}}function DEe(e){var t=e.animationInput,n=e.animationIdPrefix,r=e.items,i=e.previousItemsRef,a=e.isAnimationActive,o=e.animationBegin,s=e.animationDuration,c=e.animationEasing,l=e.onAnimationStart,u=e.onAnimationEnd,d=e.animationInterpolateFn,f=e.animationMatchBy,p=e.shouldUpdatePreviousRef,m=e.children,h=e.layout,g=vZ(t,n),_=H6(g,i),v=_.startValue??null,y=V6(v,r,f??z6);return R.createElement(_Z,{animationId:g,begin:o,duration:s,isActive:a,easing:c,onAnimationEnd:u,onAnimationStart:l,key:g},e=>{var t=v==null,n=r==null?r:d(y,e,h),i=p?p(e):e>0;return _.syncStepValue(n,e,i),n==null?null:m(n,e,t)})}function OEe(e,t){return MEe(e)||jEe(e,t)||AEe(e,t)||kEe()}function kEe(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 402In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AEe(e,t){if(e){if(typeof e==`string`)return W6(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?W6(e,t):void 0}}function W6(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function jEe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function MEe(e){if(Array.isArray(e))return e}var G6=R.useId??(()=>OEe(R.useState(()=>VU(`uid-`)),1)[0]);function NEe(e,t){var n=G6();return t||(e?`${e}-${n}`:n)}var PEe=(0,R.createContext)(void 0),FEe=e=>{var t=e.id,n=e.type,r=e.children,i=NEe(`recharts-${n}`,t);return R.createElement(PEe.Provider,{value:i},r(i))},K6=sY({name:`graphicalItems`,initialState:{cartesianItems:[],polarItems:[]},reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(GJ(t.payload))},prepare:rY()},replaceCartesianGraphicalItem:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next,a=HJ(e).cartesianItems.indexOf(GJ(r));a>-1&&(e.cartesianItems[a]=GJ(i))},prepare:rY()},removeCartesianGraphicalItem:{reducer(e,t){var n=HJ(e).cartesianItems.indexOf(GJ(t.payload));n>-1&&e.cartesianItems.splice(n,1)},prepare:rY()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(GJ(t.payload))},prepare:rY()},removePolarGraphicalItem:{reducer(e,t){var n=HJ(e).polarItems.indexOf(GJ(t.payload));n>-1&&e.polarItems.splice(n,1)},prepare:rY()},replacePolarGraphicalItem:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next,a=HJ(e).polarItems.indexOf(GJ(r));a>-1&&(e.polarItems[a]=GJ(i))},prepare:rY()}}}),q6=K6.actions,IEe=q6.addCartesianGraphicalItem,LEe=q6.replaceCartesianGraphicalItem,REe=q6.removeCartesianGraphicalItem;q6.addPolarGraphicalItem,q6.removePolarGraphicalItem,q6.replacePolarGraphicalItem;var zEe=K6.reducer,BEe=(0,R.memo)(e=>{var t=OK(),n=(0,R.useRef)(null);return(0,R.useLayoutEffect)(()=>{n.current===null?t(IEe(e)):n.current!==e&&t(LEe({prev:n.current,next:e})),n.current=e},[t,e]),(0,R.useLayoutEffect)(()=>()=>{n.current&&=(t(REe(n.current)),null)},[t]),null}),VEe=[`points`];function J6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Y6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
402t%2?J6(Object(n),!0).forEach(function(t){HEe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J6(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function HEe(e,t,n){return(t=UEe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UEe(e){var t=WEe(e,`string`);return typeof t==`symbol`?t:t+``}function WEe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function X6(){return X6=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},X6.apply(null,arguments)}function GEe(e,t){if(e==null)return{};var n,r,i=KEe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function KEe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function qEe(e){var t=e.option,n=e.dotProps,r=e.className;if((0,R.isValidElement)(t))return(0,R.cloneElement)(t,n);if(typeof t==`function`)return t(n);var i=nU(r,typeof t==`boolean`?``:t.className),a=n??{};a.points;var o=GEe(a,VEe);return R.createElement(j6,X6({},o,{className:i}))}function JEe(e,t){return e==null?!1:t?!0:e.length===1}function YEe(e){var t=e.points,n=e.dot,r=e.className,i=e.dotClassName,a=e.dataKey,o=e.baseProps,s=e.needClip,c=e.clipPathId,l=e.zIndex,u=l===void 0?lQ.scatter:l;if(!JEe(t,n))return null;var d=P6(n),f=fU(n),p=t.map((e,r)=>{var s=Y6(Y6(Y6({r:3},o),f),{},{index:r,cx:e.x??void 0,cy:e.y??void 0,dataKey:a,value:e.value,payload:e.payload,points:t});return R.createElement(qEe,{key:`dot-${r}`,option:n,dotProps:s,className:i})}),m={};return s&&c!=null&&(m.clipPath=`url(#clipPath-${d?``:`dots-`}${c})`),R.createElement(C3,{zIndex:u},R.createElement(SU,X6({className:r},m),p))}function Z6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Q6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Z6(Object(n),!0).forEach(function(t){XEe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z6(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function XEe(e,t,n){return(t=ZEe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZEe(e){var t=QEe(e,`string`);return typeof t==`symbol`?t:t+``}function QEe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var $6=sY({name:`cartesianAxis`,initialState:{xAxis:{},yAxis:{},zAxis:{}},reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=GJ(t.payload)},prepare:rY()},replaceXAxis:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next;e.xAxis[r.id]!==void 0&&(r.id!==i.id&&delete e.xAxis[r.id],e.xAxis[i.id]=GJ(i))},prepare:rY()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:rY()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=GJ(t.payload)},prepare:rY()},replaceYAxis:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next;e.yAxis[r.id]!==void 0&&(r.id!==i.id&&delete e.yAxis[r.id],e.yAxis[i.id]=GJ(i))},prepare:rY()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:rY()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=GJ(t.payload)},prepare:rY()},replaceZAxis:{reducer(e,t){var n=t.payload,r=n.prev,i=n.next;e.zAxis[r.id]!==void 0&&(r.id!==i.id&&delete e.zAxis[r.id],e.zAxis[i.id]=GJ(i))},prepare:rY()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:rY()},updateYAxisWidth(e,t){var n=t.payload,r=n.id,i=n.width,a=e.yAxis[r];if(a){var o=a.widthHistory||[];if(o.length===3&&o[0]===o[2]&&i===o[1]&&i!==a.width&&Math.abs(i-(o[0]??0))<=1)return;var s=[...o,i].slice(-3);e.yAxis[r]=Q6(Q6({},a),{},{width:i,widthHistory:s})}},updateXAxisHeight(e,t){var n=t.payload,r=n.id,i=n.height,a=e.xAxis[r];if(a){var o=a.heightHistory||[];if(o.length===3&&o[0]===o[2]&&i===o[1]&&i!==a.height&&Math.abs(i-(o[0]??0))<=1)return;var s=[...o,i].slice(-3);e.xAxis[r]=Q6(Q6({},a),{},{height:i,heightHistory:s})}}}}),e8=$6.actions,$Ee=e8.addXAxis,eDe=e8.replaceXAxis,tDe=e8.removeXAxis,nDe=e8.addYAxis,rDe=e8.replaceYAxis,iDe=e8.removeYAxis;e8.addZAxis,e8.replaceZAxis,e8.removeZAxis;var aDe=e8.updateYAxisWidth,oDe=e8.updateXAxisHeight,sDe=$6.reducer,cDe=Q([Q([iX],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),ZY,QY],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),t8=()=>Z(cDe),lDe=()=>Z(ACe);function n8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function r8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
402t%2?n8(Object(n),!0).forEach(function(t){uDe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function uDe(e,t,n){return(t=dDe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dDe(e){var t=fDe(e,`string`);return typeof t==`symbol`?t:t+``}function fDe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var pDe=e=>{var t=e.point,n=e.childIndex,r=e.mainColor,i=e.activeDot,a=e.dataKey,o=e.clipPath;if(i===!1||t.x==null||t.y==null)return null;var s=r8(r8(r8({},{index:n,dataKey:a,cx:t.x,cy:t.y,r:4,fill:r??`none`,strokeWidth:2,stroke:`#fff`,payload:t.payload,value:t.value}),uU(i)),sG(i)),c=(0,R.isValidElement)(i)?(0,R.cloneElement)(i,s):typeof i==`function`?i(s):R.createElement(j6,s);return R.createElement(SU,{className:`recharts-active-dot`,clipPath:o},c)};function i8(e){var t=e.points,n=e.mainColor,r=e.activeDot,i=e.itemDataKey,a=e.clipPath,o=e.zIndex,s=o===void 0?lQ.activeDot:o,c=Z(t3),l=lDe();if(t==null||l==null)return null;var u=t.find(e=>l.includes(e.payload));
402return KU(u)?null:R.createElement(C3,{zIndex:s},R.createElement(pDe,{point:u,childIndex:Number(c),mainColor:n,dataKey:i,activeDot:r,clipPath:a}))}var mDe=e=>{var t=e.chartData,n=OK(),r=oX();return(0,R.useEffect)(()=>r?()=>{}:(n(P3(t)),()=>{n(P3(void 0))}),[t,n,r]),null},a8={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},o8=sY({name:`brush`,initialState:a8,reducers:{setBrushSettings(e,t){return t.payload==null?a8:t.payload}}});o8.actions.setBrushSettings;var hDe=o8.reducer;function gDe(e){return(e%180+180)%180}var _De=function(e){var t=e.width,n=e.height,r=gDe(arguments.length>1&&arguments[1]!==void 0?arguments[1]:0)*Math.PI/180,i=Math.atan(n/t),a=r>i&&r<Math.PI-i?n/Math.sin(r):t/Math.cos(r);return Math.abs(a)},s8=sY({name:`referenceElements`,initialState:{dots:[],areas:[],lines:[]},reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=HJ(e).dots.findIndex(e=>e===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=HJ(e).areas.findIndex(e=>e===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(GJ(t.payload))},removeLine:(e,t)=>{var n=HJ(e).lines.findIndex(e=>e===t.payload);n!==-1&&e.lines.splice(n,1)}}}),c8=s8.actions;c8.addDot,c8.removeDot,c8.addArea,c8.removeArea,c8.addLine,c8.removeLine;var vDe=s8.reducer;function yDe(e,t){return CDe(e)||SDe(e,t)||xDe(e,t)||bDe()}function bDe(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 403In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xDe(e,t){if(e){if(typeof e==`string`)return l8(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l8(e,t):void 0}}function l8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function SDe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function CDe(e){if(Array.isArray(e))return e}var wDe=(0,R.createContext)(void 0),TDe=e=>{var t=e.children,n=yDe((0,R.useState)(`${VU(`recharts`)}-clip`),1)[0],r=t8();if(r==null)return null;var i=r.x,a=r.y,o=r.width,s=r.height;return R.createElement(wDe.Provider,{value:n},R.createElement(`defs`,null,R.createElement(`clipPath`,{id:n},R.createElement(`rect`,{x:i,y:a,height:s,width:o}))),t)};function EDe(){}function u8(e){if(!e||typeof e!=`object`)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype||Object.getPrototypeOf(t)===null?Object.prototype.toString.call(e)===`[object Object]`:!1}function DDe(e,t,n){return d8(e,t,void 0,void 0,void 0,void 0,n)}function d8(e,t,n,r,i,a,o){let s=o(e,t,n,r,i,a);if(s!==void 0)return s;if(typeof e==typeof t)switch(typeof e){case`bigint`:case`string`:case`boolean`:case`symbol`:case`undefined`:return e===t;case`number`:return e===t||Object.is(e,t);case`function`:return e===t;case`object`:return f8(e,t,a,o)}return f8(e,t,a,o)}function f8(e,t,n,r){if(Object.is(e,t))return!0;let i=TG(e),a=TG(t);if(i===`[object Arguments]`&&(i=RG),a===`[object Arguments]`&&(a=RG),i!==a)return!1;switch(i){case DG:return e.toString()===t.toString();case OG:return aK(e.valueOf(),t.valueOf());case kG:case MG:case jG:return Object.is(e.valueOf(),t.valueOf());case EG:return e.source===t.source&&e.flags===t.flags;case IG:return e===t}n??=new Map;let o=n.get(e),s=n.get(t);if(o!=null&&s!=null)return o===t;n.set(e,t),n.set(t,e);try{switch(i){case NG:if(e.size!==t.size)return!1;for(let[i,a]of e.entries())if(!t.has(i)||!d8(a,t.get(i),i,e,t,n,r))return!1;return!0;case PG:{if(e.size!==t.size)return!1;let i=Array.from(e.values()),a=Array.from(t.values());for(let o=0;o<i.length;o++){let s=i[o],c=a.findIndex(i=>d8(s,i,void 0,e,t,n,r));if(c===-1)return!1;a.splice(c,1)}return!0}case FG:case VG:case HG:case UG:case WG:case GG:case KG:case qG:case JG:case YG:case XG:case ZG:if($G(e)!==$G(t)||e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!d8(e[i],t[i],i,e,t,n,r))return!1;return!0;case LG:return e.byteLength===t.byteLength?f8(new Uint8Array(e),new Uint8Array(t),n,r):!1;case BG:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:f8(new Uint8Array(e),new Uint8Array(t),n,r);case zG:return e.name===t.name&&e.message===t.message;case RG:{if(!(f8(e.constructor,t.constructor,n,r)||u8(e)&&u8(t)))return!1;let i=[...Object.keys(e),...wG(e)],a=[...Object.keys(t),...wG(t)];if(i.length!==a.length)return!1;for(let a=0;a<i.length;a++){let o=i[a],s=e[o];if(!Object.hasOwn(t,o))return!1;let c=t[o];if(!d8(s,c,o,e,t,n,r))return!1}return!0}default:return!1}}finally{n.delete(e),n.delete(t)}}function ODe(e,t){return DDe(e,t,EDe)}function p8(e,t){if(t<1)return[];if(t===1)return e;for(var n=[],r=0;r<e.length;r+=t){var i=e[r];i!==void 0&&n.push(i)}return n}function kDe(e,t,n){return _De({width:e.width+t.width,height:e.height+t.height},n)}
403function ADe(e,t,n){var r=n===`width`,i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:r?i:a,end:r?i+o:a+s}:{start:r?i+o:a+s,end:r?i:a}}function m8(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function jDe(e,t){return p8(e,t+1)}function MDe(e,t,n,r,i){for(var a=(r||[]).slice(),o=t.start,s=t.end,c=0,l=1,u=o,d=function(){var t=r?.[c];if(t===void 0)return{v:p8(r,l)};var a=c,d,f=()=>(d===void 0&&(d=n(t,a)),d),p=t.coordinate,m=c===0||m8(e,p,f,u,s);m||(c=0,u=o,l+=1),m&&(u=p+e*(f()/2+i),c+=l)},f;l<=a.length;)if(f=d(),f)return f.v;return[]}function NDe(e,t,n,r,i){var a=(r||[]).slice().length;if(a===0)return[];for(var o=t.start,s=t.end,c=1;c<=a;c++){for(var l=(a-1)%c,u=o,d=!0,f=function(){var t=r[m];if(t==null)return 0;var a=m,o,c=()=>(o===void 0&&(o=n(t,a)),o),f=t.coordinate,p=m===l||m8(e,f,c,u,s);if(!p)return d=!1,1;p&&(u=f+e*(c()/2+i))},p,m=l;m<a&&(p=f(),!(p!==0&&p===1));m+=c);if(d){for(var h=[],g=l;g<a;g+=c){var _=r[g];_!=null&&h.push(_)}return h}}return[]}function h8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?h8(Object(n),!0).forEach(function(t){PDe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function PDe(e,t,n){return(t=FDe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FDe(e){var t=IDe(e,`string`);return typeof t==`symbol`?t:t+``}function IDe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function LDe(e,t,n,r,i){for(var a=(r||[]).slice(),o=a.length,s=t.start,c=t.end,l=function(t){var r=a[t];if(r==null)return 1;var l=r,u,d=()=>(u===void 0&&(u=n(r,t)),u);if(t===o-1){var f=e*(l.coordinate+e*d()/2-c);a[t]=l=g8(g8({},l),{},{tickCoord:f>0?l.coordinate-f*e:l.coordinate})}else a[t]=l=g8(g8({},l),{},{tickCoord:l.coordinate});l.tickCoord!=null&&m8(e,l.tickCoord,d,s,c)&&(c=l.tickCoord-e*(d()/2+i),a[t]=g8(g8({},l),{},{isShow:!0}))},u=o-1;u>=0;u--)if(l(u))continue;return a}function RDe(e,t,n,r,i,a){var o=(r||[]).slice(),s=o.length,c=t.start,l=t.end;if(a){var u=r[s-1];if(u!=null){var d=n(u,s-1),f=e*(u.coordinate+e*d/2-l);o[s-1]=u=g8(g8({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate}),u.tickCoord!=null&&m8(e,u.tickCoord,()=>d,c,l)&&(l=u.tickCoord-e*(d/2+i),o[s-1]=g8(g8({},u),{},{isShow:!0}))}}for(var p=a?s-1:s,m=function(t){var r=o[t];if(r==null)return 1;var a=r,s,u=()=>(s===void 0&&(s=n(r,t)),s);if(t===0){var d=e*(a.coordinate-e*u()/2-c);o[t]=a=g8(g8({},a),{},{tickCoord:d<0?a.coordinate-d*e:a.coordinate})}else o[t]=a=g8(g8({},a),{},{tickCoord:a.coordinate});a.tickCoord!=null&&m8(e,a.tickCoord,u,c,l)&&(c=a.tickCoord+e*(u()/2+i),o[t]=g8(g8({},a),{},{isShow:!0}))},h=0;h<p;h++)if(m(h))continue;return o}function _8(e,t,n){var r=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,c=e.interval,l=e.tickFormatter,u=e.unit,d=e.angle;if(!i||!i.length||!r)return[];if(X(c)||BX.isSsr)return jDe(i,X(c)?c:0)??[];var f=[],p=s===`top`||s===`bottom`?`width`:`height`,m=u&&p===`width`?K3(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},h=(e,r)=>{var i=typeof l==`function`?l(e.value,r):e.value;return p===`width`?kDe(K3(i,{fontSize:t,letterSpacing:n}),m,d):K3(i,{fontSize:t,letterSpacing:n})[p]},g=i[0],_=i[1],v=i.length>=2&&g!=null&&_!=null?IU(_.coordinate-g.coordinate):1,y=ADe(a,v,p);return c===`equidistantPreserveStart`?MDe(v,y,h,i,o):c===`equidistantPreserveEnd`?NDe(v,y,h,i,o):(f=c===`preserveStart`||c===`preserveStartEnd`?RDe(v,y,h,i,o,c===`preserveStartEnd`):LDe(v,y,h,i,o),f.filter(e=>e.isShow))}var zDe=e=>{var t=e.ticks,n=e.label,r=e.labelGapWithTick,i=r===void 0?5:r,a=e.tickSize,o=a===void 0?0:a,s=e.tickMargin,c=s===void 0?0:s,l=0;
403if(t){Array.from(t).forEach(e=>{if(e){var t=e.getBoundingClientRect();t.width>l&&(l=t.width)}});var u=n?n.getBoundingClientRect().width:0,d=o+c,f=l+d+u+(n?i:0);return Math.round(f)}return 0},BDe=e=>{var t=e.ticks,n=e.label,r=e.labelGapWithTick,i=r===void 0?5:r,a=e.tickSize,o=a===void 0?0:a,s=e.tickMargin,c=s===void 0?0:s,l=0;if(t){Array.from(t).forEach(e=>{if(e){var t=e.getBoundingClientRect();t.height>l&&(l=t.height)}});var u=n?n.getBoundingClientRect().height:0,d=o+c,f=l+d+u+(n?i:0);return Math.round(f)}return 0},v8=sY({name:`renderedTicks`,initialState:{xAxis:{},yAxis:{}},reducers:{setRenderedTicks:(e,t)=>{var n=t.payload,r=n.axisType,i=n.axisId,a=n.ticks;e[r][i]=GJ(a)},removeRenderedTicks:(e,t)=>{var n=t.payload,r=n.axisType,i=n.axisId;delete e[r][i]}}}),y8=v8.actions,VDe=y8.setRenderedTicks,HDe=y8.removeRenderedTicks,UDe=v8.reducer,WDe=[`axisLine`,`width`,`height`,`className`,`hide`,`ticks`,`axisType`,`axisId`];function b8(e,t){return JDe(e)||qDe(e,t)||KDe(e,t)||GDe()}function GDe(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 404In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KDe(e,t){if(e){if(typeof e==`string`)return x8(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x8(e,t):void 0}}function x8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qDe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function JDe(e){if(Array.isArray(e))return e}function YDe(e,t){if(e==null)return{};var n,r,i=XDe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function XDe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function S8(){return S8=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},S8.apply(null,arguments)}function C8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function w8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?C8(Object(n),!0).forEach(function(t){ZDe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ZDe(e,t,n){return(t=QDe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QDe(e){var t=$De(e,`string`);return typeof t==`symbol`?t:t+``}function $De(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var T8={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:`bottom`,ticks:[],stroke:`#666`,tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:`preserveEnd`,zIndex:lQ.axis};function eOe(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=e.orientation,o=e.mirror,s=e.axisLine,c=e.otherSvgProps;if(!s)return null;var l=w8(w8(w8({},c),lU(s)),{},{fill:`none`});if(a===`top`||a===`bottom`){var u=+(a===`top`&&!o||a===`bottom`&&o);l=w8(w8({},l),{},{x1:t,y1:n+u*i,x2:t+r,y2:n+u*i})}else{var d=+(a===`left`&&!o||a===`right`&&o);l=w8(w8({},l),{},{x1:t+d*r,y1:n,x2:t+d*r,y2:n+i})}return R.createElement(`line`,S8({},l,{className:nU(`recharts-cartesian-axis-line`,jU(s,`className`))}))}function tOe(e,t,n,r,i,a,o,s,c){var l,u,d,f,p,m,h=s?-1:1,g=e.tickSize||o,_=X(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case`top`:l=u=e.coordinate,f=n+ +!s*i,d=f-h*g,m=d-h*c,p=_;break;case`left`:d=f=e.coordinate,u=t+ +!s*r,l=u-h*g,p=l-h*c,m=_;break;case`right`:d=f=e.coordinate,u=t+ +s*r,l=u+h*g,p=l+h*c,m=_;break;default:l=u=e.coordinate,f=n+ +s*i,d=f+h*g,m=d+h*c,p=_;break}return{line:{x1:l,y1:d,x2:u,y2:f},tick:{x:p,y:m}}}function nOe(e,t){switch(e){case`left`:return t?`start`:`end`;
404case`right`:return t?`end`:`start`;default:return`middle`}}function rOe(e,t){switch(e){case`left`:case`right`:return`middle`;case`top`:return t?`start`:`end`;default:return t?`end`:`start`}}function iOe(e){var t=e.option,n=e.tickProps,r=e.value,i,a=nU(n.className,`recharts-cartesian-axis-tick-value`);if(R.isValidElement(t))i=R.cloneElement(t,w8(w8({},n),{},{className:a}));else if(typeof t==`function`)i=t(w8(w8({},n),{},{className:a}));else{var o=`recharts-cartesian-axis-tick-value`;typeof t!=`boolean`&&(o=nU(o,eEe(t))),i=R.createElement(h6,S8({},n,{className:o}),r)}return i}function aOe(e){var t=e.ticks,n=e.axisType,r=e.axisId,i=OK(),a=(0,R.useRef)(null);return(0,R.useEffect)(()=>{if(!(r==null||n==null)){var e=t.map(e=>({value:e.value,coordinate:e.coordinate,offset:e.offset,index:e.index})),o=a.current;o!=null&&o.axisId===r&&o.axisType===n&&ODe(o.ticks,e)||(a.current={ticks:e,axisId:r,axisType:n},i(VDe({ticks:e,axisId:r,axisType:n})))}},[i,t,r,n]),(0,R.useEffect)(()=>r==null||n==null?YU:()=>{i(HDe({axisId:r,axisType:n}))},[i,r,n]),null}var oOe=(0,R.forwardRef)((e,t)=>{var n=e.ticks,r=n===void 0?[]:n,i=e.tick,a=e.tickLine,o=e.stroke,s=e.tickFormatter,c=e.unit,l=e.padding,u=e.tickTextProps,d=e.orientation,f=e.mirror,p=e.x,m=e.y,h=e.width,g=e.height,_=e.tickSize,v=e.tickMargin,y=e.fontSize,b=e.letterSpacing,x=e.getTicksConfig,S=e.events,C=e.axisType,w=e.axisId,T=_8(w8(w8({},x),{},{ticks:r}),y,b),E=lU(x),D=uU(i),O=l6(E.textAnchor)?E.textAnchor:nOe(d,f),k=rOe(d,f),A={};typeof a==`object`&&(A=a);var j=w8(w8({},E),{},{fill:`none`},A),M=T.map(e=>w8({entry:e},tOe(e,p,m,h,g,d,_,f,v))),N=M.map(e=>{var t=e.entry,n=e.line;return R.createElement(SU,{className:`recharts-cartesian-axis-tick`,key:`tick-${t.value}-${t.coordinate}-${t.tickCoord}`},a&&R.createElement(`line`,S8({},j,n,{className:nU(`recharts-cartesian-axis-tick-line`,jU(a,`className`))})))}),P=M.map((e,t)=>{var n=e.entry,r=e.tick,a=w8(w8({},w8(w8(w8(w8({verticalAnchor:k},E),{},{textAnchor:O,stroke:`none`,fill:o},r),{},{index:t,payload:n,visibleTicksCount:T.length,tickFormatter:s,padding:l},u),{},{angle:u?.angle??E.angle??0})),D);return R.createElement(SU,S8({className:`recharts-cartesian-axis-tick-label`,key:`tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`},lG(S,n,t)),i&&R.createElement(iOe,{option:i,tickProps:a,value:`${typeof s==`function`?s(n.value,t):n.value}${c||``}`}))});return R.createElement(`g`,{className:`recharts-cartesian-axis-ticks recharts-${C}-ticks`},R.createElement(aOe,{ticks:T,axisId:w,axisType:C}),P.length>0&&R.createElement(C3,{zIndex:lQ.label},R.createElement(`g`,{className:`recharts-cartesian-axis-tick-labels recharts-${C}-tick-labels`,ref:t},P)),N.length>0&&R.createElement(`g`,{className:`recharts-cartesian-axis-tick-lines recharts-${C}-tick-lines`},N))}),sOe=(0,R.forwardRef)((e,t)=>{var n=e.axisLine,r=e.width,i=e.height,a=e.className,o=e.hide,s=e.ticks,c=e.axisType,l=e.axisId,u=YDe(e,WDe),d=b8((0,R.useState)(``),2),f=d[0],p=d[1],m=b8((0,R.useState)(``),2),h=m[0],g=m[1],_=(0,R.useRef)(null);(0,R.useImperativeHandle)(t,()=>({getCalculatedWidth:()=>zDe({ticks:_.current,label:e.labelRef?.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin}),getCalculatedHeight:()=>BDe({ticks:_.current,label:e.labelRef?.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}));var v=(0,R.useCallback)(e=>{if(e){var t=e.getElementsByClassName(`recharts-cartesian-axis-tick-value`);_.current=t;var n=t[0];if(n){var r=window.getComputedStyle(n),i=r.fontSize,a=r.letterSpacing;(i!==f||a!==h)&&(p(i),g(a))}}},[f,h]);return o||r!=null&&r<=0||i!=null&&i<=0?null:R.createElement(C3,{zIndex:e.zIndex},R.createElement(SU,{className:nU(`recharts-cartesian-axis`,a)},R.createElement(eOe,{x:e.x,y:e.y,width:r,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:lU(e)}),R.createElement(oOe,{ref:v,axisType:c,events:u,fontSize:f,getTicksConfig:e,height:e.height,letterSpacing:h,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:s,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:l}),R.createElement(PTe,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},R.createElement(WTe,{label:e.label,labelRef:e.labelRef}),e.children)))}),E8=R.forwardRef((e,t)=>
404{var n=hG(e,T8);return R.createElement(sOe,S8({},n,{ref:t}))});E8.displayName=`CartesianAxis`;var D8=(0,R.createContext)({grid:{stroke:`#ccc`,fill:`none`}});D8.Provider;var cOe=()=>(0,R.useContext)(D8),lOe=[`x1`,`y1`,`x2`,`y2`,`key`],uOe=[`offset`],dOe=[`xAxisId`,`yAxisId`],fOe=[`xAxisId`,`yAxisId`];function O8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function k8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?O8(Object(n),!0).forEach(function(t){pOe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pOe(e,t,n){return(t=mOe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mOe(e){var t=hOe(e,`string`);return typeof t==`symbol`?t:t+``}function hOe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function A8(){return A8=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},A8.apply(null,arguments)}function j8(e,t){if(e==null)return{};var n,r,i=gOe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function gOe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var _Oe=e=>{var t=e.fill;if(!t||t===`none`)return null;var n=e.fillOpacity,r=e.x,i=e.y,a=e.width,o=e.height,s=e.ry;return R.createElement(`rect`,{x:r,y:i,ry:s,width:a,height:o,stroke:`none`,fill:t,fillOpacity:n,className:`recharts-cartesian-grid-bg`})};function M8(e){var t=e.option,n=e.lineItemProps,r;if(R.isValidElement(t))r=R.cloneElement(t,n);else if(typeof t==`function`)r=t(n);else{var i=n.x1,a=n.y1,o=n.x2,s=n.y2,c=n.key,l=lU(j8(n,lOe))??{};l.offset;var u=j8(l,uOe),d=Array.isArray(u.strokeDasharray)?u.strokeDasharray.join(`,`):u.strokeDasharray;r=R.createElement(`line`,A8({},u,{strokeDasharray:d,x1:i,y1:a,x2:o,y2:s,fill:`none`,key:c}))}return r}function vOe(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,a=e.horizontalPoints;if(!i||!a||!a.length)return null;e.xAxisId,e.yAxisId;var o=j8(e,dOe),s=a.map((e,r)=>{var a=k8(k8({},o),{},{x1:t,y1:e,x2:t+n,y2:e,key:`line-${r}`,index:r});return R.createElement(M8,{key:`line-${r}`,option:i,lineItemProps:a})});return R.createElement(`g`,{className:`recharts-cartesian-grid-horizontal`},s)}function yOe(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,a=e.verticalPoints;if(!i||!a||!a.length)return null;e.xAxisId,e.yAxisId;var o=j8(e,fOe),s=a.map((e,r)=>{var a=k8(k8({},o),{},{x1:e,y1:t,x2:e,y2:t+n,key:`line-${r}`,index:r});return R.createElement(M8,{option:i,lineItemProps:a,key:`line-${r}`})});return R.createElement(`g`,{className:`recharts-cartesian-grid-vertical`},s)}function bOe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,c=e.horizontal;if(!(c===void 0||c)||!t||!t.length||s==null)return null;var l=s.map(e=>Math.round(e+i-i)).sort((e,t)=>e-t);i!==l[0]&&l.unshift(0);var u=l.map((e,s)=>{var c=l[s+1],u=c==null?i+o-e:c-e;if(u<=0)return null;var d=s%t.length;return R.createElement(`rect`,{key:`react-${s}`,y:e,x:r,height:u,width:a,stroke:`none`,fill:t[d],fillOpacity:n,className:`recharts-cartesian-grid-bg`})});return R.createElement(`g`,{className:`recharts-cartesian-gridstripes-horizontal`},u)}function xOe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,c=e.height,l=e.verticalPoints;if(!n||!r||!r.length)return null;var u=l.map(e=>Math.round(e+a-a)).sort((e,t)=>
404e-t);a!==u[0]&&u.unshift(0);var d=u.map((e,t)=>{var n=u[t+1],l=n==null?a+s-e:n-e;if(l<=0)return null;var d=t%r.length;return R.createElement(`rect`,{key:`react-${t}`,x:e,y:o,width:l,height:c,stroke:`none`,fill:r[d],fillOpacity:i,className:`recharts-cartesian-grid-bg`})});return R.createElement(`g`,{className:`recharts-cartesian-gridstripes-vertical`},d)}var SOe=(e,t)=>{var n=e.xAxis,r=e.width,i=e.height,a=e.offset;return UY(_8(k8(k8(k8({},T8),n),{},{ticks:WY(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),a.left,a.left+a.width,t)},COe=(e,t)=>{var n=e.yAxis,r=e.width,i=e.height,a=e.offset;return UY(_8(k8(k8(k8({},T8),n),{},{ticks:WY(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),a.top,a.top+a.height,t)},wOe={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:lQ.grid};function N8(e){var t=xX(),n=SX(),r=bX(),i=k8(k8({},hG(e,wOe)),{},{x:X(e.x)?e.x:r.left,y:X(e.y)?e.y:r.top,width:X(e.width)?e.width:r.width,height:X(e.height)?e.height:r.height}),a=i.xAxisId,o=i.yAxisId,s=i.x,c=i.y,l=i.width,u=i.height,d=i.syncWithTicks,f=i.horizontalValues,p=i.verticalValues,m=oX(),h=Z(e=>d4(e,`xAxis`,a,m)),g=Z(e=>d4(e,`yAxis`,o,m)),_=cOe(),v={stroke:i.stroke??_.grid.stroke,strokeWidth:i.strokeWidth??_.grid.strokeWidth,strokeOpacity:i.strokeOpacity??_.grid.strokeOpacity,strokeDasharray:i.strokeDasharray??_.grid.strokeDasharray};if(!RY(l)||!RY(u)||!X(s)||!X(c))return null;var y=i.verticalCoordinatesGenerator||SOe,b=i.horizontalCoordinatesGenerator||COe,x=i.horizontalPoints,S=i.verticalPoints;if((!x||!x.length)&&typeof b==`function`){var C=f&&f.length,w=b({yAxis:g?k8(k8({},g),{},{ticks:C?f:g.ticks}):void 0,width:t??l,height:n??u,offset:r},C?!0:d);lX(Array.isArray(w),`horizontalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`),Array.isArray(w)&&(x=w)}if((!S||!S.length)&&typeof y==`function`){var T=p&&p.length,E=y({xAxis:h?k8(k8({},h),{},{ticks:T?p:h.ticks}):void 0,width:t??l,height:n??u,offset:r},T?!0:d);lX(Array.isArray(E),`verticalCoordinatesGenerator should return Array but instead it returned [${typeof E}]`),Array.isArray(E)&&(S=E)}return R.createElement(C3,{zIndex:i.zIndex},R.createElement(`g`,{className:`recharts-cartesian-grid`},R.createElement(_Oe,{fill:i.fill??_.grid.fill,fillOpacity:i.fillOpacity??_.grid.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),R.createElement(bOe,A8({},i,{horizontalPoints:x})),R.createElement(xOe,A8({},i,{verticalPoints:S})),R.createElement(vOe,A8({},i,v,{offset:r,horizontalPoints:x,xAxis:h,yAxis:g})),R.createElement(yOe,A8({},i,v,{offset:r,verticalPoints:S,xAxis:h,yAxis:g}))))}N8.displayName=`CartesianGrid`;var P8=sY({name:`errorBars`,initialState:{},reducers:{addErrorBar:(e,t)=>{var n=t.payload,r=n.itemId,i=n.errorBar;e[r]||(e[r]=[]),e[r].push(i)},replaceErrorBar:(e,t)=>{var n=t.payload,r=n.itemId,i=n.prev,a=n.next;e[r]&&(e[r]=e[r].map(e=>e.dataKey===i.dataKey&&e.direction===i.direction?a:e))},removeErrorBar:(e,t)=>{var n=t.payload,r=n.itemId,i=n.errorBar;e[r]&&(e[r]=e[r].filter(e=>e.dataKey!==i.dataKey||e.direction!==i.direction))}}}),F8=P8.actions;F8.addErrorBar,F8.replaceErrorBar,F8.removeErrorBar;var TOe=P8.reducer;function I8(e,t){var n=Z(t=>t2(t,e)),r=Z(e=>i2(e,t)),i=n?.allowDataOverflow??$0.allowDataOverflow,a=r?.allowDataOverflow??n2.allowDataOverflow;return{needClip:i||a,needClipX:i,needClipY:a}}function EOe(e){var t=e.xAxisId,n=e.yAxisId,r=e.clipPathId,i=t8(),a=I8(t,n),o=a.needClipX,s=a.needClipY,c=a.needClip,l=Z(e=>Z2(e,t,!1)),u=Z(e=>Q2(e,n,!1));if(!c||!i)return null;var d=i.x,f=i.y,p=i.width,m=i.height,h=o&&l?Math.min(l[0],l[1]):d-p/2,g=s&&u?Math.min(u[0],u[1]):f-m/2,_=o&&l?Math.abs(l[1]-l[0]):p*2,v=s&&u?Math.abs(u[1]-u[0]):m*2;return R.createElement(`clipPath`,{id:`clipPath-${r}`},R.createElement(`rect`,{x:h,y:g,width:_,height:v}))}function DOe(e){var t=uU(e),n=3,r=2;if(t!=null){var i=t.r,a=t.strokeWidth,o=Number(i),s=Number(a);return(Number.isNaN(o)||o<0)&&(o=n),(Number.isNaN(s)||s<0)&&(s=r),{r:o,strokeWidth:s}}return{r:n,strokeWidth:r}}function L8(e,t){return e.graphicalItems.cartesianItems.find(e=>e.id===t)?.xAxisId??0}function R8(e,t){return e.graphicalItems.cartesianItems.find(e=>e.id===t)?.yAxisId??0}
404var z8=(e,t,n)=>m4(e,`xAxis`,L8(e,t),n),B8=(e,t,n)=>p4(e,`xAxis`,L8(e,t),n),V8=(e,t,n)=>m4(e,`yAxis`,R8(e,t),n),H8=(e,t,n)=>p4(e,`yAxis`,R8(e,t),n),OOe=Q([CX,z8,V8,B8,H8],(e,t,n,r,i)=>HY(e,`xAxis`)?JY(t,r,!1):JY(n,i,!1)),U8=Q([u2,(e,t)=>t],(e,t)=>e.filter(e=>e.type===`area`).find(e=>e.id===t)),W8=e=>HY(CX(e),`xAxis`)?`yAxis`:`xAxis`,kOe=(e,t)=>W8(e)===`yAxis`?R8(e,t):L8(e,t),G8=(e,t,n)=>O2(e,W8(e),kOe(e,t),n),AOe=Q([CX,z8,V8,B8,H8,Q([U8,G8],(e,t)=>{if(!(e==null||t==null)){var n=e.stackId,r=kQ(e);if(!(n==null||r==null)){var i=(t[n]?.stackedData)?.find(e=>e.key===r);if(i!=null)return i.map(e=>[e[0],e[1]])}}}),$ve,OOe,U8,pye,Q([U8,G8],(e,t)=>{if(!(e==null||e.stackId==null||t==null)){var n=t[e.stackId];if(n!=null)return n.graphicalItems.map(e=>e.dataKey).filter(JU)}})],(e,t,n,r,i,a,o,s,c,l,u)=>{var d=o.chartData,f=o.dataStartIndex,p=o.dataEndIndex;if(!(c==null||e!==`horizontal`&&e!==`vertical`||t==null||n==null||r==null||i==null||r.length===0||i.length===0||s==null)){var m=c.data,h=m&&m.length>0?m:d?.slice(f,p+1);if(h!=null)return tke({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataStartIndex:f,areaSettings:c,stackedData:a,displayedData:h,chartBaseValue:l,bandSize:s,stackDataKeys:u})}}),jOe=[`animationElapsedTime`,`isAnimating`,`isEntrance`,`layout`,`isRange`,`stroke`,`connectNulls`],MOe=[`id`,`baseLine`];function K8(){return K8=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},K8.apply(null,arguments)}function q8(e,t){if(e==null)return{};var n,r,i=NOe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function NOe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function POe(e){var t=e.alpha,n=e.baseLine,r=e.points,i=e.strokeWidth,a=r[0]?.x,o=r[r.length-1]?.x;if(!LY(a)||!LY(o))return null;var s=t*Math.abs(a-o),c=Math.max(...r.map(e=>e.y||0));return X(n)?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max(...n.map(e=>e.y||0),c)),X(c)?R.createElement(`rect`,{x:a<o?a:a-s,y:0,width:s,height:Math.floor(c+(i?parseInt(`${i}`,10):1))}):null}function FOe(e){var t=e.alpha,n=e.baseLine,r=e.points,i=e.strokeWidth,a=r[0]?.y,o=r[r.length-1]?.y;if(!LY(a)||!LY(o))return null;var s=t*Math.abs(a-o),c=Math.max(...r.map(e=>e.x||0));return X(n)?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max(...n.map(e=>e.x||0),c)),X(c)?R.createElement(`rect`,{x:0,y:a<o?a:a-s,width:c+(i?parseInt(`${i}`,10):1),height:Math.floor(s)}):null}function IOe(e){var t=e.alpha,n=e.layout,r=e.points,i=e.baseLine,a=e.strokeWidth;return n===`vertical`?R.createElement(FOe,{alpha:t,points:r,baseLine:i,strokeWidth:a}):R.createElement(POe,{alpha:t,points:r,baseLine:i,strokeWidth:a})}function LOe(e){var t=e.animationElapsedTime,n=t===void 0?1:t,r=e.isAnimating,i=r===void 0?!1:r,a=e.isEntrance,o=a===void 0?!1:a,s=e.layout,c=e.isRange,l=e.stroke,u=e.connectNulls,d=q8(e,jOe),f=s===`vertical`?`vertical`:`horizontal`,p=u??!1,m=G6(),h=d.id,g=d.baseLine,_=lU(q8(d,MOe)),v=R.createElement(nZ,K8({},d,{id:h,baseLine:g,connectNulls:p,stroke:`none`,className:`recharts-area-area`,layout:f})),y=l!==`none`&&R.createElement(nZ,K8({},_,{className:`recharts-area-curve`,layout:f,type:d.type,connectNulls:p,fill:`none`,stroke:l,points:d.points})),b=l!==`none`&&c&&Array.isArray(g)&&R.createElement(nZ,K8({},_,{className:`recharts-area-curve`,layout:f,type:d.type,connectNulls:p,fill:`none`,stroke:l,points:g}));return o&&(i||n<1)?R.createElement(SU,null,R.createElement(`defs`,null,R.createElement(`clipPath`,{id:m},R.createElement(IOe,{alpha:n,points:d.points??[],baseLine:g,layout:f,strokeWidth:d.strokeWidth}))),R.createElement(SU,{clipPath:`url(#${m})`},v,y,b)):R.createElement(R.Fragment,null,v,y,b)}var ROe=[`id`],zOe=[`activeDot`,`animationBegin`,`animationDuration`,`animationEasing`,`connectNulls`,`dot`,`fill`,`fillOpacity`,`hide`,`isAnimationActive`,`legendT
404ype`,`stroke`,`xAxisId`,`yAxisId`];function J8(){return J8=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},J8.apply(null,arguments)}function Y8(e,t){if(e==null)return{};var n,r,i=BOe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function BOe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function X8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?X8(Object(n),!0).forEach(function(t){VOe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function VOe(e,t,n){return(t=HOe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HOe(e){var t=UOe(e,`string`);return typeof t==`symbol`?t:t+``}function UOe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Q8={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:`ease`,animationMatchBy:z6,animationInterpolateFn:(e,t)=>e==null?[]:t===1?e.flatMap(e=>e.status===`removed`?[]:[e.next]):e.flatMap(e=>e.status===`matched`?[Z8(Z8({},e.next),{},{x:WU(e.prev.x,e.next.x,t),y:WU(e.prev.y,e.next.y,t)})]:e.status===`added`?[e.next]:[]),connectNulls:!1,dot:!1,fill:`#3182bd`,fillOpacity:.6,hide:!1,isAnimationActive:`auto`,legendType:`line`,stroke:`#3182bd`,strokeWidth:1,type:`linear`,label:!1,shape:LOe,xAxisId:0,yAxisId:0,zIndex:lQ.area};function $8(e,t){return e&&e!==`none`?e:t}var WOe=e=>{var t=e.dataKey,n=e.name,r=e.stroke,i=e.fill,a=e.legendType;return[{inactive:e.hide,dataKey:t,type:a,color:$8(r,i),value:XY(n,t),payload:e}]},GOe=R.memo(e=>{var t=e.dataKey,n=e.data,r=e.stroke,i=e.strokeWidth,a=e.fill,o=e.name,s=e.hide,c=e.unit,l=e.formatter,u=e.tooltipType,d=e.id,f={dataDefinedOnItem:n,getPosition:YU,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:XY(o,t),hide:s,type:u,color:$8(r,a),unit:c,formatter:l,graphicalItemId:d}};return R.createElement(uEe,{tooltipEntrySettings:f})});function KOe(e){var t=e.clipPathId,n=e.points,r=e.props,i=r.needClip,a=r.dot,o=r.dataKey,s=lU(r);return R.createElement(YEe,{points:n,dot:a,className:`recharts-area-dots`,dotClassName:`recharts-area-dot`,dataKey:o,baseProps:s,needClip:i,clipPathId:t})}function qOe(e){var t=e.showLabels,n=e.children,r=e.points.map(e=>{var t={x:e.x??0,y:e.y??0,width:0,lowerWidth:0,upperWidth:0,height:0};return Z8(Z8({},t),{},{value:e.value,payload:e.payload,parentViewBox:void 0,viewBox:t,fill:void 0})});return R.createElement(YTe,{value:t?r:void 0},n)}function JOe(e){var t=e.points,n=e.baseLine,r=e.needClip,i=e.clipPathId,a=e.props,o=e.animationElapsedTime,s=e.isAnimating,c=e.isEntrance,l=a.layout,u=a.type,d=a.stroke,f=a.connectNulls,p=a.isRange,m=a.shape,h=a.id,g=Y8(a,ROe),_=Z8(Z8({},dU(g)),{},{id:h,points:t,connectNulls:f,type:u,baseLine:n,layout:l,stroke:d,isRange:p,animationElapsedTime:o,isAnimating:s,isEntrance:c});return R.createElement(R.Fragment,null,t?.length>1&&R.createElement(SU,{clipPath:r?`url(#clipPath-${i})`:void 0},R.createElement(lEe,{option:m,DefaultShape:Q8.shape,shapeProps:_})),R.createElement(KOe,{points:t,props:g,clipPathId:i}))}function YOe(e,t,n){return X(e)?WU(X(t)?t:void 0,e,n):KU(e)||LU(e)?WU(X(t)?t:void 0,0,n):e}function XOe(e){var t=e.needClip,n=e.clipPathId,r=e.props,i=e.previousPointsRef,a=e.previousBaselineRef,o=r.points,s=r.baseLine,c=r.isAnimationActive,l=r.animationBegin,u=r.animationDuration,d=r.animationEasing,f=r.animationMatchBy,p=r.animationInterpolateFn,m=(0,R.useMemo)(()=>({points:o,baseLine:s}),[o,s]),h=H6(m,a),g=TX(),_=EEe(r.onAnimationStart,r.onAnimationEnd),v=_.isAnimating,y=_.handleAnimationStart,b=_.handleAnimationEnd,x=h.startValue;if(g==null)return null;var S=Array.isArray(s)&&Array.isArray(x)?V6(x,s,f):Array.isArray(s)?V6(null,s,f):null;return R.createElement(DEe,{animationInput:m,animationIdPrefix:`recharts-area-`,items:o,previousItemsRef:i,isAnimationActive:c,animationBegin:l,animationDuration:u,animationEasing:d,onAnimationStart:y,onAnimationEnd:b,animationInterpolateFn:p,animationMatchBy:f,layout:g},(e,i,a)=>{var c=i===1?s:Array.isArray(s)?p(S,i,g):a?s:YOe(s,x,i);return h.syncStepValue(c,i),R.createElement(qOe,{showLabels:!v,points:o},r.children,R.createElement(JOe,{points:e,baseLine:c,needClip:t,clipPathId:n,props:r,animationElapsedTime:i,isAnimating:v||i<1,isEntrance:a}),R.createElement(QTe,{label:r.label}))})}function ZOe(e){var t=e.needClip,n=e.clipPathId,r=e.props,i=(0,R.useRef)(null),a=(0,R.useRef)();return R.createElement(XOe,{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:a})}var QOe=class extends R.PureComponent{render(){var e=this.props,t=e.hide,n=e.dot,r=e.points,i=e.className,a=e.top,o=e.left,s=e.needClip,c=e.xAxisId,l=e.yAxisId,u=e.width,d=e.height,f=e.id,p=e.baseLine,m=e.zIndex;if(t)return null;var h=nU(`recharts-area`,i),g=f,_=DOe(n),v=_.r,y=_.strokeWidth,b=P6(n),x=v*2+y,S=s?`url(#clipPath-${b?``:`dots-`}${g})`:void 0;return R.createElement(C3,{zIndex:m},R.createElement(SU,{className:h},s&&R.createElement(`defs`,null,R.createElement(EOe,{clipPathId:g,xAxisId:c,yAxisId:l}),!b&&R.createElement(`clipPath`,{id:`clipPath-dots-${g}`},R.createElement(`rect`,{x:o-x/2,y:a-x/2,width:u+x,height:d+x}))),R.createElement(ZOe,{needClip:s,clipPathId:g,props:this.props})),R.createElement(i8,{points:r,mainColor:$8(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:S}),this.props.isRange&&Array.isArray(p)&&R.createElement(i8,{points:p,mainColor:$8(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:S}))}};function $Oe(e){var t=e.activeDot,n=e.animationBegin,r=e.animationDuration,i=e.animationEasing,a=e.connectNulls,o=e.dot,s=e.fill,c=e.fillOpacity,l=e.hide,u=e.isAnimationActive,d=e.legendType,f=e.stroke,p=e.xAxisId,m=e.yAxisId,h=Y8(e,zOe),g=wX(),_=l3(),v=I8(p,m).needClip,y=oX(),b=Z(t=>AOe(t,e.id,y))??{},x=b.points,S=b.isRange,C=b.baseLine,w=t8();if(g!==`horizontal`&&g!==`vertical`||w==null||_!==`AreaChart`&&_!==`ComposedCh
404art`)return null;var T=w.height,E=w.width,D=w.x,O=w.y;return!x||!x.length?null:R.createElement(QOe,J8({},h,{activeDot:t,animationBegin:n,animationDuration:r,animationEasing:i,baseLine:C,connectNulls:a,dot:o,fill:s,fillOpacity:c,height:T,hide:l,layout:g,isAnimationActive:u,isRange:S,legendType:d,needClip:v,points:x,stroke:f,width:E,left:D,top:O,xAxisId:p,yAxisId:m}))}var eke=(e,t,n,r,i)=>{var a=n??t;if(X(a))return a;var o=e===`horizontal`?i:r,s=o.scale.domain();if(o.type===`number`){var c=Math.max(s[0],s[1]),l=Math.min(s[0],s[1]);return a===`dataMin`?l:a===`dataMax`||c<0?c:Math.max(Math.min(s[0],s[1]),0)}return a===`dataMin`?s[0]:a===`dataMax`?s[1]:s[0]};function tke(e){var t=e.areaSettings,n=t.connectNulls,r=t.baseValue,i=t.dataKey,a=e.stackedData,o=e.layout,s=e.chartBaseValue,c=e.xAxis,l=e.yAxis,u=e.displayedData,d=e.dataStartIndex,f=e.xAxisTicks,p=e.yAxisTicks,m=e.bandSize,h=e.stackDataKeys,g=a&&a.length,_=eke(o,s,r,c,l),v=o===`horizontal`,y=!1,b=u.map((e,t)=>{var r;if(g)r=a[d+t];else{var o=VY(e,i);Array.isArray(o)?(r=o,y=!0):r=[_,o]}var s=r?.[1]??null,u=VY(e,i),b=g&&u==null&&h!=null&&h.length>0&&h.every(t=>VY(e,t)==null),x=s==null||g&&!n&&u==null||b;return v?{x:GY({axis:c,ticks:f,bandSize:m,entry:e,index:t}),y:x?null:l.scale.map(s)??null,value:r,payload:e}:{x:x?null:c.scale.map(s)??null,y:GY({axis:l,ticks:p,bandSize:m,entry:e,index:t}),value:r,payload:e}});return{points:b,baseLine:(g||y?b.map(e=>{var t=Array.isArray(e.value)?e.value[0]:null;return v?{x:e.x,y:t!=null&&e.y!=null?l.scale.map(t)??null:null,payload:e.payload}:{x:t==null?null:c.scale.map(t)??null,y:e.y,payload:e.payload}}):v?l.scale.map(_):c.scale.map(_))??0,isRange:y}}function nke(e){var t=hG(e,Q8),n=oX();return R.createElement(FEe,{id:t.id,type:`area`},e=>R.createElement(R.Fragment,null,R.createElement(dEe,{legendPayload:WOe(t)}),R.createElement(GOe,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,formatter:t.formatter,tooltipType:t.tooltipType,id:e}),R.createElement(BEe,{type:`area`,id:e,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:Rhe(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),R.createElement($Oe,J8({},t,{id:e}))))}var e5=R.memo(nke,MX);e5.displayName=`Area`;var rke=[`domain`,`range`],ike=[`domain`,`range`];function t5(e,t){if(e==null)return{};var n,r,i=ake(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ake(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function n5(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function r5(e,t){if(e===t)return!0;var n=e.domain,r=e.range,i=t5(e,rke),a=t.domain,o=t.range,s=t5(t,ike);return!n5(n,a)||!n5(r,o)?!1:MX(i,s)}var oke=[`type`],ske=[`dangerouslySetInnerHTML`,`ticks`,`scale`],cke=[`id`,`scale`];function i5(){return i5=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},i5.apply(null,arguments)}function a5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?a5(Object(n),!0).forEach(function(t){lke(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a5(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lke(e,t,n){return(t=uke(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uke(e){var t=dke(e,`string`);return typeof t==`symbol`?t:t+``}function dke(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function s5(e,t){if(e==null)return{};var n,r,i=fke(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function fke(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function pke(e){var t=OK(),n=(0,R.useRef)(null),r=TX(),i=e.type,a=s5(e,oke),o=pQ(r,`xAxis`,i),s=(0,R.useMemo)(()=>
404{if(o!=null)return o5(o5({},a),{},{type:o})},[a,o]);return(0,R.useLayoutEffect)(()=>{s!=null&&(n.current===null?t($Ee(s)):n.current!==s&&t(eDe({prev:n.current,next:s})),n.current=s)},[s,t]),(0,R.useLayoutEffect)(()=>()=>{n.current&&=(t(tDe(n.current)),null)},[t]),null}var mke=e=>{var t=e.xAxisId,n=e.className,r=e.height,i=e.label,a=(0,R.useRef)(null),o=(0,R.useRef)(null),s=Z(aX),c=oX(),l=OK(),u=`xAxis`,d=Z(e=>f4(e,u,t,c)),f=Z(e=>RSe(e,t)),p=Z(e=>USe(e,t)),m=Z(e=>e2(e,t));if((0,R.useLayoutEffect)(()=>{if(!(r!==`auto`||!f||S6(i)||(0,R.isValidElement)(i)||m==null)){var e=a.current;if(e){var n=e.getCalculatedHeight();Math.round(f.height)!==Math.round(n)&&l(oDe({id:t,height:n}))}}},[d,f,l,i,t,r,m]),f==null||p==null||m==null)return null;e.dangerouslySetInnerHTML,e.ticks,e.scale;var h=s5(e,ske);m.id,m.scale;var g=s5(m,cke);return R.createElement(E8,i5({},h,g,{ref:a,labelRef:o,x:p.x,y:p.y,width:f.width,height:f.height,className:nU(`recharts-${u} ${u}`,n),viewBox:s,ticks:d,axisType:u,axisId:t}))},hke={allowDataOverflow:$0.allowDataOverflow,allowDecimals:$0.allowDecimals,allowDuplicatedCategory:$0.allowDuplicatedCategory,angle:$0.angle,axisLine:T8.axisLine,height:$0.height,hide:!1,includeHidden:$0.includeHidden,interval:$0.interval,label:!1,minTickGap:$0.minTickGap,mirror:$0.mirror,orientation:$0.orientation,padding:$0.padding,reversed:$0.reversed,scale:$0.scale,tick:$0.tick,tickCount:$0.tickCount,tickLine:T8.tickLine,tickSize:T8.tickSize,type:$0.type,niceTicks:$0.niceTicks,xAxisId:0},c5=R.memo(e=>{var t=hG(e,hke);return R.createElement(R.Fragment,null,R.createElement(pke,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),R.createElement(mke,t))},r5);c5.displayName=`XAxis`;var gke=[`type`],_ke=[`dangerouslySetInnerHTML`,`ticks`,`scale`],vke=[`id`,`scale`];function l5(){return l5=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},l5.apply(null,arguments)}function u5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?u5(Object(n),!0).forEach(function(t){yke(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u5(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yke(e,t,n){return(t=bke(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bke(e){var t=xke(e,`string`);return typeof t==`symbol`?t:t+``}function xke(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function f5(e,t){if(e==null)return{};var n,r,i=Ske(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ske(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Cke(e){var t=OK(),n=(0,R.useRef)(null),r=TX(),i=e.type,a=f5(e,gke),o=pQ(r,`yAxis`,i),s=(0,R.useMemo)(()=>{if(o!=null)return d5(d5({},a),{},{type:o})},[o,a]);return(0,R.useLayoutEffect)(()=>{s!=null&&(n.current===null?t(nDe(s)):n.current!==s&&t(rDe({prev:n.current,next:s})),n.current=s)},[s,t]),(0,R.useLayoutEffect)(()=>()=>{n.current&&=(t(iDe(n.current)),null)},[t]),null}function wke(e){var t=e.yAxisId,n=e.className,r=e.width,i=e.label,a=(0,R.useRef)(null),o=(0,R.useRef)(null),s=Z(aX),c=oX(),l=OK(),u=`yAxis`,d=Z(e=>GSe(e,t)),f=Z(e=>WSe(e,t)),p=Z(e=>f4(e,u,t,c)),m=Z(e=>r2(e,t));if((0,R.useLayoutEffect)(()=>
404{if(!(r!==`auto`||!d||S6(i)||(0,R.isValidElement)(i)||m==null)){var e=a.current;if(e){var n=e.getCalculatedWidth();Math.round(d.width)!==Math.round(n)&&l(aDe({id:t,width:n}))}}},[p,d,l,i,t,r,m]),d==null||f==null||m==null)return null;e.dangerouslySetInnerHTML,e.ticks,e.scale;var h=f5(e,_ke);m.id,m.scale;var g=f5(m,vke);return R.createElement(E8,l5({},h,g,{ref:a,labelRef:o,x:f.x,y:f.y,tickTextProps:r===`auto`?{width:void 0}:{width:r},width:d.width,height:d.height,className:nU(`recharts-${u} ${u}`,n),viewBox:s,ticks:p,axisType:u,axisId:t}))}var Tke={allowDataOverflow:n2.allowDataOverflow,allowDecimals:n2.allowDecimals,allowDuplicatedCategory:n2.allowDuplicatedCategory,angle:n2.angle,axisLine:T8.axisLine,hide:!1,includeHidden:n2.includeHidden,interval:n2.interval,label:!1,minTickGap:n2.minTickGap,mirror:n2.mirror,orientation:n2.orientation,padding:n2.padding,reversed:n2.reversed,scale:n2.scale,tick:n2.tick,tickCount:n2.tickCount,tickLine:T8.tickLine,tickSize:T8.tickSize,type:n2.type,niceTicks:n2.niceTicks,width:n2.width,yAxisId:0},p5=R.memo(e=>{var t=hG(e,Tke);return R.createElement(R.Fragment,null,R.createElement(Cke,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter,niceTicks:t.niceTicks}),R.createElement(wke,t))},r5);p5.displayName=`YAxis`;var m5=Q([(e,t)=>t,CX,EQ,PQ,J4,X4,HCe,iX],YCe);function Eke(e){return`getBBox`in e.currentTarget&&typeof e.currentTarget.getBBox==`function`}function h5(e){var t=e.currentTarget.getBoundingClientRect(),n,r;if(Eke(e)){var i=e.currentTarget.getBBox();n=i.width>0?t.width/i.width:1,r=i.height>0?t.height/i.height:1}else{var a=e.currentTarget;n=a.offsetWidth>0?t.width/a.offsetWidth:1,r=a.offsetHeight>0?t.height/a.offsetHeight:1}var o=(e,i)=>({relativeX:Math.round((e-t.left)/n),relativeY:Math.round((i-t.top)/r)});return`touches`in e?Array.from(e.touches).map(e=>o(e.clientX,e.clientY)):o(e.clientX,e.clientY)}var g5=XJ(`mouseClick`),_5=MY();_5.startListening({actionCreator:g5,effect:(e,t)=>{var n=e.payload,r=m5(t.getState(),h5(n));r?.activeIndex!=null&&t.dispatch(eCe({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var v5=XJ(`mouseMove`),y5=MY(),b5=null,x5=null,S5=null;y5.startListening({actionCreator:v5,effect:(e,t)=>{var n=e.payload,r=t.getState().eventSettings,i=r.throttleDelay,a=r.throttledEvents,o=a===`all`||a?.includes(`mousemove`);b5!==null&&(cancelAnimationFrame(b5),b5=null),x5!==null&&(typeof i!=`number`||!o)&&(clearTimeout(x5),x5=null),S5=h5(n);var s=()=>{var e=t.getState(),n=v4(e,e.tooltip.settings.shared);if(!S5){b5=null,x5=null;return}if(n===`axis`){var r=m5(e,S5);r?.activeIndex==null?t.dispatch(C4()):t.dispatch(w4({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}b5=null,x5=null};if(!o){s();return}i===`raf`?b5=requestAnimationFrame(s):typeof i==`number`&&x5===null&&(x5=setTimeout(s,i))}});function Dke(e,t){return t instanceof HTMLElement?`HTMLElement <${t.tagName} class="${t.className}">`:t===window?`global.window`:e===`children`&&typeof t==`object`&&t?`<<CHILDREN>>`:t}var C5={accessibilityLayer:!0,barCategoryGap:`10%`,barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:`none`,syncId:void 0,syncMethod:`index`,baseValue:void 0,reverseStackOrder:!1},w5=sY({name:`rootProps`,initialState:C5,reducers:{updateOptions:(e,t)=>{e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=t.payload.barGap??C5.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),Oke=w5.reducer,kke=w5.actions.updateOptions,T5=sY({name:`polarOptions`,initialState:null,reducers:{updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)}});T5.actions.updatePolarOptions;
404var Ake=T5.reducer,E5=XJ(`keyDown`),D5=XJ(`focus`),O5=XJ(`blur`),k5=MY(),A5=null,j5=null,M5=null;k5.startListening({actionCreator:E5,effect:(e,t)=>{M5=e.payload,A5!==null&&(cancelAnimationFrame(A5),A5=null);var n=t.getState().eventSettings,r=n.throttleDelay,i=n.throttledEvents,a=i===`all`||i.includes(`keydown`);j5!==null&&(typeof r!=`number`||!a)&&(clearTimeout(j5),j5=null);var o=()=>{try{var e=t.getState();if(e.rootProps.accessibilityLayer===!1)return;var n=e.tooltip.keyboardInteraction,r=M5;if(r!==`ArrowRight`&&r!==`ArrowLeft`&&r!==`Enter`)return;var i=A4(n,H4(e),E2(e),K4(e)),a=i==null?-1:Number(i),o=!Number.isFinite(a)||a<0,s=X4(e),c=H4(e),l=v4(e,e.tooltip.settings.shared);if(r===`Enter`){if(o)return;var u=g3(e,l,`hover`,String(n.index));t.dispatch(E4({active:!n.active,activeIndex:n.index,activeCoordinate:u}));return}var d=KSe(e)===`left-to-right`?1:-1,f=r===`ArrowRight`?1:-1,p;if(o){var m=E2(e),h=K4(e),g=f*d,_=e=>({active:!1,index:String(e),dataKey:void 0,graphicalItemId:void 0,coordinate:void 0});if(p=-1,g>0){for(var v=0;v<c.length;v++)if(A4(_(v),c,m,h)!=null){p=v;break}}else for(var y=c.length-1;y>=0;y--)if(A4(_(y),c,m,h)!=null){p=y;break}if(p<0)return}else{p=a+f*d;var b=s?.length||c.length;if(b===0||p>=b||p<0)return}var x=g3(e,l,`hover`,String(p));t.dispatch(E4({active:!0,activeIndex:p.toString(),activeCoordinate:x}))}finally{A5=null,j5=null}};if(!a){o();return}r===`raf`?A5=requestAnimationFrame(o):typeof r==`number`&&j5===null&&(o(),M5=null,j5=setTimeout(()=>{M5?o():(j5=null,A5=null)},r))}}),k5.startListening({actionCreator:D5,effect:(e,t)=>{var n=t.getState();if(n.rootProps.accessibilityLayer!==!1){var r=n.tooltip.keyboardInteraction;if(!r.active&&r.index==null){var i=`0`,a=g3(n,v4(n,n.tooltip.settings.shared),`hover`,String(i));t.dispatch(E4({active:!0,activeIndex:i,activeCoordinate:a}))}}}}),k5.startListening({actionCreator:O5,effect:(e,t)=>{var n=t.getState();if(n.rootProps.accessibilityLayer!==!1){var r=n.tooltip.keyboardInteraction;r.active&&t.dispatch(E4({active:!1,activeIndex:r.index,activeCoordinate:r.coordinate}))}}});function N5(e){e.persist();var t=e.currentTarget;return new Proxy(e,{get:(e,n)=>{if(n===`currentTarget`)return t;var r=Reflect.get(e,n);return typeof r==`function`?r.bind(e):r}})}var P5=XJ(`externalEvent`),F5=MY(),I5=new Map,L5=new Map,R5=new Map;F5.startListening({actionCreator:P5,effect:(e,t)=>{var n=e.payload,r=n.handler,i=n.reactEvent;if(r!=null){var a=i.type,o=N5(i);R5.set(a,{handler:r,reactEvent:o});var s=I5.get(a);s!==void 0&&(cancelAnimationFrame(s),I5.delete(a));var c=t.getState().eventSettings,l=c.throttleDelay,u=c.throttledEvents,d=u===`all`||u?.includes(a),f=L5.get(a);f!==void 0&&(typeof l!=`number`||!d)&&(clearTimeout(f),L5.delete(a));var p=()=>{var e=R5.get(a);try{if(!e)return;var n=e.handler,r=e.reactEvent,i=t.getState(),o={activeCoordinate:OCe(i),activeDataKey:ECe(i),activeIndex:t3(i),activeLabel:n3(i),activeTooltipIndex:t3(i),isTooltipActive:kCe(i)};n&&n(o,r)}finally{I5.delete(a),L5.delete(a),R5.delete(a)}};if(!d){p();return}if(l===`raf`){var m=requestAnimationFrame(p);I5.set(a,m)}else if(typeof l==`number`){if(!L5.has(a)){p();var h=setTimeout(p,l);L5.set(a,h)}}else p()}}});var jke=Q([Q([P4],e=>e.tooltipItemPayloads),(e,t)=>t,(e,t,n)=>n],(e,t,n)=>{if(t!=null){var r=e.find(e=>e.settings.graphicalItemId===n);if(r!=null){var i=r.getPosition;if(i!=null)return i(t)}}}),z5=XJ(`touchMove`),B5=MY(),V5=null,H5=null,U5=null,W5=null;B5.startListening({actionCreator:z5,effect:(e,t)=>{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){W5=N5(n);var r=t.getState().eventSettings,i=r.throttleDelay,a=r.throttledEvents,o=a===`all`||a.includes(`touchmove`);V5!==null&&(cancelAnimationFrame(V5),V5=null),H5!==null&&(typeof i!=`number`||!o)&&(clearTimeout(H5),H5=null),U5=Array.from(n.touches).map(e=>h5({clientX:e.clientX,clientY:e.clientY,currentTarget:n.currentTarget}));var s=()=>{if(W5!=null){var e=t.getState(),n=v4(e,e.tooltip.settings.shared);if(n===`axis`){var r=U5?.[0];if(r==null){V5=null,H5=null;return}var i=m5(e,r);i?.activeIndex!=null&&t.dispatch(w4({activeIndex:i.activeIndex,activeDataKey:void 0,activeCoordinate:i.activeCoordinate}))}else if(n===`item`){var a=W5.touches[0];if(document.elementFromPoint==null||a==null)return;var o=document.elementFromPoint(a.clientX,a.clientY);if(!o||!o.getAttribute)return;var s=o.getAttribute(Ghe),c=o.getAttribute(`data-recharts-item-id`)??void 0,l=B4(e).find(e=>e.id===c);if(s==null||l==null||c==null)return;var u=l.dataKey,d=jke(e,s,c);t.dispatch($Se({activeDataKey:u,activeIndex:s,activeCoordinate:d,activeGraphicalItemId:c}))}V5=null,H5=null}};if(!o){s();return}i===`raf`?V5=requestAnimationFrame(s):typeof i==`number`&&H5===null&&(s(),W5=null,H5=setTimeout(()=>{W5?s():(H5=null,V5=null)},i))}}});var G5={throttleDelay:`raf`,throttledEvents:[`mousemove`,`touchmove`,`pointermove`,`scroll`,`wheel`]},K5=sY({name:`eventSettings`,initialState:G5,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=GJ(t.payload.throttledEvents))}}}),Mke=K5.actions.setEventSettings,Nke=K5.reducer,Pke=yq({brush:hDe,cartesianAxis:sDe,chartData:xwe,errorBars:TOe,eventSettings:Nke,graphicalItems:zEe,layout:jhe,legend:jge,options:_we,polarAxis:$Te,polarOptions:Ake,referenceElements:vDe,renderedTicks:UDe,rootProps:Oke,tooltip:tCe,zIndex:swe}),Fke=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`Chart`;return rhe({reducer:Pke,preloadedState:e,middleware:e=>e({serializableCheck:!1,immutableCheck:![`commonjs`,`es6`,`production`].includes(`es6`)}).concat([_5.middleware,y5.middleware,k5.middleware,F5.middleware,B5.middleware]),enhancers:e=>{var t=e;return typeof e==`function`&&(t=e()),t.concat(aY({type:`raf`}))},devTools:BX.devToolsEnabled&&{serialize:{replacer:Dke},name:`recharts-${t}`}})};function Ike(e){var t=e.preloadedState,n=e.children,r=e.reduxStoreName,i=oX(),a=(0,R.useRef)(null);if(i)return n;a.current??=Fke(t,r);var o=EK;return R.createElement(Gge,{context:o,store:a.current},n)}function Lke(e){var t=e.layout,n=e.margin,r=OK(),i=oX();return(0,R.useEffect)(()=>{i||(r(Ohe(t)),r(Dhe(n)))},[r,i,t,n]),null}var Rke=(0,R.memo)(Lke,MX);function zke(e){var t=OK();return(0,R.useEffect)(()=>{t(kke(e))},[t,e]),null}var Bke=(0,R.memo)(e=>{var t=OK();return(0,R.useEffect)(()=>{t(Mke(e))},[t,e]),null},MX);function q5(e){var t=e.zIndex,n=e.isPanorama,r=(0,R.useRef)(null),i=OK();return(0,R.useLayoutEffect)(()=>(r.current&&i(awe({zIndex:t,element:r.current,isPanorama:n})),()=>{i(owe({zIndex:t,isPanorama:n}))}),[i,t,n]),R.createElement(`g`,{tabIndex:-1,ref:r,className:`recharts-zIndex-layer_${t}`})}function J5(e){var t=e.children,n=e.isPanorama,r=Z(ZCe);if(!r||r.length===0)return t;var i=r.filter(e=>e<0),a=r.filter(e=>e>0);return R.createElement(R.Fragment,null,i.map(e=>R.createElement(q5,{key:e,zIndex:e,isPanorama:n})),t,a.map(e=>R.createElement(q5,{key:e,zIndex:e,isPanorama:n})))}var Vke=[`children`];function Hke(e,t){if(e==null)return{};var n,r,i=Uke(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Uke(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Y5(){return Y5=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},Y5.apply(null,arguments)}
404var Wke={width:`100%`,height:`100%`,display:`block`},Gke=(0,R.forwardRef)((e,t)=>{var n=xX(),r=SX(),i=KX();if(!RY(n)||!RY(r))return null;var a=e.children,o=e.otherAttributes,s=e.title,c=e.desc,l,u;return o!=null&&(l=typeof o.tabIndex==`number`?o.tabIndex:i?0:void 0,u=typeof o.role==`string`?o.role:i?`application`:void 0),R.createElement(_U,Y5({},o,{title:s,desc:c,role:u,tabIndex:l,width:n,height:r,style:Wke,ref:t}),a)}),Kke=e=>{var t=e.children,n=Z(cX);if(!n)return null;var r=n.width,i=n.height,a=n.y,o=n.x;return R.createElement(_U,{width:r,height:i,x:o,y:a},t)},X5=(0,R.forwardRef)((e,t)=>{var n=e.children,r=Hke(e,Vke);return oX()?R.createElement(Kke,null,R.createElement(J5,{isPanorama:!0},n)):R.createElement(Gke,Y5({ref:t},r),R.createElement(J5,{isPanorama:!1},n))});function qke(e,t){return Zke(e)||Xke(e,t)||Yke(e,t)||Jke()}function Jke(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 405In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yke(e,t){if(e){if(typeof e==`string`)return Z5(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Z5(e,t):void 0}}function Z5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Xke(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Zke(e){if(Array.isArray(e))return e}function Qke(){var e=OK(),t=qke((0,R.useState)(null),2),n=t[0],r=t[1],i=Z(Whe);return(0,R.useEffect)(()=>{if(n!=null){var t=n.getBoundingClientRect().width/n.offsetWidth;LY(t)&&t!==i&&e(Ahe(t))}},[n,e,i]),r}function Q5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $ke(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Q5(Object(n),!0).forEach(function(t){eAe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q5(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eAe(e,t,n){return(t=tAe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tAe(e){var t=nAe(e,`string`);return typeof t==`symbol`?t:t+``}function nAe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function $5(){return $5=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},$5.apply(null,arguments)}function e7(e,t){return oAe(e)||aAe(e,t)||iAe(e,t)||rAe()}function rAe(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 406In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iAe(e,t){if(e){if(typeof e==`string`)return t7(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t7(e,t):void 0}}function t7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function aAe(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}
406finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function oAe(e){if(Array.isArray(e))return e}var sAe=()=>(Awe(),null);function n7(e){if(typeof e==`number`)return e;if(typeof e==`string`){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var cAe=(0,R.forwardRef)((e,t)=>{var n=(0,R.useRef)(null),r=e7((0,R.useState)({containerWidth:n7(e.style?.width),containerHeight:n7(e.style?.height)}),2),i=r[0],a=r[1],o=(0,R.useCallback)((e,t)=>{a(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]),s=(0,R.useCallback)(e=>{if(typeof t==`function`&&t(e),n.current!=null&&(n.current.disconnect(),n.current=null),e!=null&&typeof ResizeObserver<`u`){var r=e.getBoundingClientRect(),i=r.width,a=r.height;o(i,a);var s=new ResizeObserver(e=>{var t=e[0];if(t!=null){var n=t.contentRect,r=n.width,i=n.height;o(r,i)}});s.observe(e),n.current=s}},[t,o]);return(0,R.useEffect)(()=>()=>{n.current?.disconnect()},[o]),R.createElement(R.Fragment,null,R.createElement(DX,{width:i.containerWidth,height:i.containerHeight}),R.createElement(`div`,$5({ref:s},e)))}),lAe=(0,R.forwardRef)((e,t)=>{var n=e.width,r=e.height,i=e7((0,R.useState)({containerWidth:n7(n),containerHeight:n7(r)}),2),a=i[0],o=i[1],s=(0,R.useCallback)((e,t)=>{o(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]),c=(0,R.useCallback)(e=>{if(typeof t==`function`&&t(e),e!=null){var n=e.getBoundingClientRect(),r=n.width,i=n.height;s(r,i)}},[t,s]);return R.createElement(R.Fragment,null,R.createElement(DX,{width:a.containerWidth,height:a.containerHeight}),R.createElement(`div`,$5({ref:c},e)))}),uAe=(0,R.forwardRef)((e,t)=>{var n=e.width,r=e.height;return R.createElement(R.Fragment,null,R.createElement(DX,{width:n,height:r}),R.createElement(`div`,$5({ref:t},e)))}),dAe=(0,R.forwardRef)((e,t)=>{var n=e.width,r=e.height;return typeof n==`string`||typeof r==`string`?R.createElement(lAe,$5({},e,{ref:t})):typeof n==`number`&&typeof r==`number`?R.createElement(uAe,$5({},e,{width:n,height:r,ref:t})):R.createElement(R.Fragment,null,R.createElement(DX,{width:n,height:r}),R.createElement(`div`,$5({ref:t},e)))});function fAe(e){return e?cAe:dAe}var pAe=(0,R.forwardRef)((e,t)=>{var n=e.children,r=e.className,i=e.height,a=e.onClick,o=e.onContextMenu,s=e.onDoubleClick,c=e.onMouseDown,l=e.onMouseEnter,u=e.onMouseLeave,d=e.onMouseMove,f=e.onMouseUp,p=e.onTouchEnd,m=e.onTouchMove,h=e.onTouchStart,g=e.style,_=e.width,v=e.responsive,y=e.dispatchTouchEvents,b=y===void 0?!0:y,x=(0,R.useRef)(null),S=OK(),C=e7((0,R.useState)(null),2),w=C[0],T=C[1],E=e7((0,R.useState)(null),2),D=E[0],O=E[1],k=Qke(),A=vX(),j=A?.width>0?A.width:_,M=A?.height>0?A.height:i,N=(0,R.useCallback)(e=>{k(e),typeof t==`function`&&t(e),T(e),O(e),e!=null&&(x.current=e)},[k,t,T,O]),P=(0,R.useCallback)(e=>{S(g5(e)),S(P5({handler:a,reactEvent:e}))},[S,a]),F=(0,R.useCallback)(e=>{S(v5(e)),S(P5({handler:l,reactEvent:e}))},[S,l]),ee=(0,R.useCallback)(e=>{S(C4()),S(P5({handler:u,reactEvent:e}))},[S,u]),te=(0,R.useCallback)(e=>{S(v5(e)),S(P5({handler:d,reactEvent:e}))},[S,d]),ne=(0,R.useCallback)(()=>{S(D5())},[S]),re=(0,R.useCallback)(()=>{S(O5())},[S]),I=(0,R.useCallback)(e=>{S(E5(e.key))},[S]),ie=(0,R.useCallback)(e=>{S(P5({handler:o,reactEvent:e}))},[S,o]),ae=(0,R.useCallback)(e=>{S(P5({handler:s,reactEvent:e}))},[S,s]),oe=(0,R.useCallback)(e=>{S(P5({handler:c,reactEvent:e}))},[S,c]),se=(0,R.useCallback)(e=>{S(P5({handler:f,reactEvent:e}))},[S,f]),ce=(0,R.useCallback)(e=>{S(P5({handler:h,reactEvent:e}))},[S,h]),le=(0,R.useCallback)(e=>{b&&S(z5(e)),S(P5({handler:m,reactEvent:e}))},[S,b,m]),ue=(0,R.useCallback)(e=>{S(P5({handler:p,reactEvent:e}))},[S,p]),de=fAe(v);return R.createElement(D3.Provider,{value:w},R.createElement(aW.Provider,{value:D},R.createElement(de,{width:j??g?.width,height:M??g?.height,className:nU(`recharts-wrapper`,r),style:$ke({position:`relative`,cursor:`default`,width:j,height:M},g),onClick:P,onContextMenu:ie,onDoubleClick:ae,onFocus:ne,onBlur:re,onKeyDown:I,onMouseDown:oe,onMouseEnter:F,onMouseLeave:ee,onMouseMove:te,onMouseUp:se,onTouchEnd:ue,onTouchMove:le,onTouchStart:ce,ref:N},R.createElement(sAe,null),n)))}),mAe=[`width`,`height`,`responsive`,`children`,`className`,`style`,`compact`,`title`,`desc`];function hAe(e,t){if(e==null)return{};var n,r,i=gAe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function gAe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var _Ae=(0,R.forwardRef)((e,t)=>{var n=e.width,r=e.height,i=e.responsive,a=e.children,o=e.className,s=e.style,c=e.compact,l=e.title,u=e.desc,d=lU(hAe(e,mAe));return c?R.createElement(R.Fragment,null,R.createElement(DX,{width:n,height:r}),R.createElement(X5,{otherAttributes:d,title:l,desc:u},a)):R.createElement(pAe,{className:o,style:s,width:n,height:r,responsive:i??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},R.createElement(X5,{otherAttributes:d,title:l,desc:u,ref:t},R.createElement(TDe,null,a)))});function r7(){return r7=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},r7.apply(null,arguments)}function i7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vAe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
vendor: 5,959 bytes, line 406
406t%2?i7(Object(n),!0).forEach(function(t){a7(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a7(e,t,n){return(t=yAe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yAe(e){var t=bAe(e,`string`);return typeof t==`symbol`?t:t+``}function bAe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var xAe=vAe({accessibilityLayer:!0,barCategoryGap:`10%`,barGap:4,layout:`horizontal`,margin:{top:5,right:5,bottom:5,left:5},responsive:!1,reverseStackOrder:!1,stackOffset:`none`,syncMethod:`index`},G5),SAe=(0,R.forwardRef)(function(e,t){var n=hG(e.categoricalChartProps,xAe),r=e.chartName,i=e.defaultTooltipEventType,a=e.validateTooltipEventTypes,o=e.tooltipPayloadSearcher,s=e.categoricalChartProps,c={chartName:r,defaultTooltipEventType:i,validateTooltipEventTypes:a,tooltipPayloadSearcher:o,eventEmitter:void 0};return R.createElement(Ike,{preloadedState:{options:c},reduxStoreName:s.id??r},R.createElement(mDe,{chartData:s.data}),R.createElement(Rke,{layout:n.layout,margin:n.margin}),R.createElement(Bke,{throttleDelay:n.throttleDelay,throttledEvents:n.throttledEvents}),R.createElement(zke,{baseValue:n.baseValue,accessibilityLayer:n.accessibilityLayer,barCategoryGap:n.barCategoryGap,maxBarSize:n.maxBarSize,stackOffset:n.stackOffset,barGap:n.barGap,barSize:n.barSize,syncId:n.syncId,syncMethod:n.syncMethod,className:n.className,reverseStackOrder:n.reverseStackOrder}),R.createElement(_Ae,r7({},n,{ref:t})))}),CAe=[`axis`],wAe=(0,R.forwardRef)((e,t)=>R.createElement(SAe,{chartName:`AreaChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:CAe,tooltipPayloadSearcher:gwe,categoricalChartProps:e,ref:t}));function TAe(e,t,n=`long`){return new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(` `)}var EAe={},o7={};function s7(e,t){try{let n=(EAe[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format)(t).split(`GMT`)[1];return n in o7?o7[n]:c7(n,n.split(`:`))}catch{if(e in o7)return o7[e];let t=e?.match(DAe);return t?c7(e,t.slice(1)):NaN}}var DAe=/([+-]\d\d):?(\d\d)?/;function c7(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return o7[e]=n*60+r>0?n*60+r+i:n*60-r-i}var l7=class e extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]==`string`&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(s7(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]==`number`&&(e.length===1||e.length===2&&typeof e[1]!=`number`)?this.setTime(e[0]):typeof e[0]==`string`?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),f7(this,e)):this.setTime(Date.now())}static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let e=-s7(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),d7(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},u7=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!u7.test(e))return;let t=e.replace(u7,`$1UTC`);l7.prototype[t]&&(e.startsWith(`get`)?l7.prototype[e]=function(){return this.internal[t]()}:(l7.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),OAe(this),+this},l7.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),d7(this),+this}))});function d7(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-s7(e.timeZone,e)*60))}function OAe(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),f7(e)}function f7(e,t){let n=Array.isArray(t)?kAe(t):+e.internal,r=s7(e.timeZone,e),i=r>0?Math.floor(r):Math.ceil(r),a=new Date(+e);a.setUTCHours(a.getUTCHours()-1);let o=-new Date(+e).getTimezoneOffset(),s=-new Date(+a).getTimezoneOffset(),c=o-s,l=o;if(c&&o!==i&&Date.prototype.getHours.apply(e)!==(Array.isArray(t)?t[3]||0:e.internal.getUTCHours())){let t=new Date(+e),n=o-i;n&&t.setUTCMinutes(t.getUTCMinutes()+n);let r=s7(e.timeZone,t);(r>0?Math.floor(r):Math.ceil(r))===i&&(l=s)}let u=l-i;u&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+u);let d=new Date(+e);d.setUTCSeconds(0);let f=o>0?d.getSeconds():(d.getSeconds()-60)%60,p=Math.round(-(s7(e.timeZone,e)*60))%60;(p||f)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+p+f);let m=s7(e.timeZone,e),h=m>0?Math.floor(m):Math.ceil(m),g=-new Date(+e).getTimezoneOffset()-h,_=h!==i,v=g-u,y=h-i,b=n-h*60*1e3,x=y>0&&p7(e)-n===y*60*1e3&&p7(e,b)!==n;if(_&&v&&!x){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+v);let t=s7(e.timeZone,e),n=h-(t>0?Math.floor(t):Math.ceil(t));n&&v<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n)}d7(e);let S=(t?n:n+p*1e3)-+e.internal;S&&Math.abs(S)<1800*1e3&&(Date.prototype.setTime.call(e,+e+S),d7(e))}function kAe(e){return Date.UTC(e[0],e.length>1?e[1]:0,e.length>2?e[2]:1,...e.slice(3))}function p7(e,t){let n=new Date(t??+e);return n.setUTCSeconds(n.getUTCSeconds()-Math.round(-s7(e.timeZone,n)*60)),+n}var m7=class e extends l7{static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}toISOString(){let[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()}
406 ${this.toTimeString()}`}toDateString(){let[e,t,n,r]=this.internal.toUTCString().split(` `);return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){let e=this.internal.toUTCString().split(` `)[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${TAe(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset();return[e>0?`-`:`+`,String(Math.floor(Math.abs(e)/60)).padStart(2,`0`),String(Math.abs(e)%60).padStart(2,`0`)]}withTimeZone(t){return new e(+this,t)}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},AAe=365.2425,h7=6048e5,jAe=864e5,g7=3600*24;g7*7,g7*AAe/12*3;var _7=Symbol.for(`constructDateFrom`);function v7(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&_7 in e?e[_7](t):e instanceof Date?new e.constructor(t):new Date(t)}function y7(e,t){return v7(t||e,e)}function b7(e,t,n){let r=y7(e,n?.in);return isNaN(t)?v7(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function x7(e,t,n){let r=y7(e,n?.in);if(isNaN(t))return v7(n?.in||e,NaN);if(!t)return r;let i=r.getDate(),a=v7(n?.in||e,r.getTime());return a.setMonth(r.getMonth()+t+1,0),i>=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}var MAe={};function S7(){return MAe}function C7(e,t){let n=S7(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=y7(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function w7(e,t){return C7(e,{...t,weekStartsOn:1})}function T7(e,t){let n=y7(e,t?.in),r=n.getFullYear(),i=v7(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let a=w7(i),o=v7(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let s=w7(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function E7(e){let t=y7(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-+n}function D7(e,...t){let n=v7.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function O7(e,t){let n=y7(e,t?.in);return n.setHours(0,0,0,0),n}function k7(e,t,n){let[r,i]=D7(n?.in,e,t),a=O7(r),o=O7(i),s=+a-E7(a),c=+o-E7(o);return Math.round((s-c)/jAe)}function NAe(e,t){let n=T7(e,t),r=v7(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),w7(r)}function PAe(e,t,n){return b7(e,t*7,n)}function FAe(e,t,n){return x7(e,t*12,n)}function IAe(e,t){let n,r=t?.in;return e.forEach(e=>{!r&&typeof e==`object`&&(r=v7.bind(null,e));let t=y7(e,r);(!n||n<t||isNaN(+t))&&(n=t)}),v7(r,n||NaN)}function LAe(e,t){let n,r=t?.in;return e.forEach(e=>{!r&&typeof e==`object`&&(r=v7.bind(null,e));let t=y7(e,r);(!n||n>t||isNaN(+t))&&(n=t)}),v7(r,n||NaN)}function RAe(e,t,n){let[r,i]=D7(n?.in,e,t);return+O7(r)==+O7(i)}function A7(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function zAe(e){return!(!A7(e)&&typeof e!=`number`||isNaN(+y7(e)))}
vendor: 25,862 bytes, line 406
406function j7(e,t,n){let[r,i]=D7(n?.in,e,t),a=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return a*12+o}function BAe(e,t){let n=y7(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function M7(e,t){let[n,r]=D7(e,t.start,t.end);return{start:n,end:r}}function VAe(e,t){let{start:n,end:r}=M7(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setDate(1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(v7(n,o)),o.setMonth(o.getMonth()+s);return i?c.reverse():c}function HAe(e,t){let n=y7(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function UAe(e,t){let n=y7(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function N7(e,t){let n=y7(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function WAe(e,t){let{start:n,end:r}=M7(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setMonth(0,1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(v7(n,o)),o.setFullYear(o.getFullYear()+s);return i?c.reverse():c}function P7(e,t){let n=S7(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=y7(e,t?.in),a=i.getDay(),o=(a<r?-7:0)+6-(a-r);return i.setDate(i.getDate()+o),i.setHours(23,59,59,999),i}function GAe(e,t){return P7(e,{...t,weekStartsOn:1})}var KAe={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},qAe=(e,t,n)=>{let r,i=KAe[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function F7(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var JAe={date:F7({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:F7({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:F7({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},YAe={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},XAe=(e,t,n,r)=>YAe[e];function I7(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}var ZAe={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:I7({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:I7({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:I7({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:I7({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:I7({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function L7(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?$Ae(s,e=>e.test(o)):QAe(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function QAe(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function $Ae(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function R7(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var z7={code:`en-US`,formatDistance:qAe,formatLong:JAe,formatRelative:XAe,localize:ZAe,match:{ordinalNumber:R7({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:L7({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:L7({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:L7({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:L7({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:L7({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function eje(e,t){let n=y7(e,t?.in);return k7(n,N7(n))+1}function B7(e,t){let n=y7(e,t?.in),r=w7(n)-+NAe(n);return Math.round(r/h7)+1}function V7(e,t){let n=y7(e,t?.in),r=n.getFullYear(),i=S7(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=v7(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=C7(o,t),c=v7(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=C7(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function tje(e,t){let n=S7(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=V7(e,t),a=v7(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),C7(a,t)}function H7(e,t){let n=y7(e,t?.in),r=C7(n,t)-+tje(n,t);return Math.round(r/h7)+1}function U7(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var W7={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return U7(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):U7(n+1,2)},d(e,t){return U7(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return U7(e.getHours()%12||12,t.length)},H(e,t){return U7(e.getHours(),t.length)},m(e,t){return U7(e.getMinutes(),t.length)},s(e,t){return U7(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return U7(Math.trunc(r*10**(n-3)),t.length)}},G7={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},K7={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return W7.y(e,t)},Y:function(e,t,n,r){let i=V7(e,r),a=i>0?i:1-i;return t===`YY`?U7(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):U7(a,t.length)},R:function(e,t){return U7(T7(e),t.length)},u:function(e,t){return U7(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return U7(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return U7(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return W7.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return U7(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=H7(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):U7(i,t.length)},I:function(e,t,n){let r=B7(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):U7(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):W7.d(e,t)},D:function(e,t,n){let r=eje(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):U7(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return U7(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return U7(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return U7(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?G7.noon:r===0?G7.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?G7.evening:r>=12?G7.afternoon:r>=4?G7.morning:G7.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return W7.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):W7.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):U7(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):U7(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):W7.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):W7.s(e,t)},S:function(e,t){return W7.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return J7(r);case`XXXX`:case`XX`:return Y7(r);default:return Y7(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return J7(r);case`xxxx`:case`xx`:return Y7(r);default:return Y7(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+q7(r,`:`);default:return`GMT`+Y7(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+q7(r,`:`);default:return`GMT`+Y7(r,`:`)}},t:function(e,t,n){return U7(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return U7(+e,t.length)}};function q7(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+U7(a,2)}function J7(e,t){return e%60==0?(e>0?`-`:`+`)+U7(Math.abs(e)/60,2):Y7(e,t)}function Y7(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=U7(Math.trunc(r/60),2),a=U7(r%60,2);return n+i+t+a}var X7=(e,t)=>{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},Z7=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},nje={p:Z7,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return X7(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`});break}return a.replace(`{{date}}`,X7(r,t)).replace(`{{time}}`,Z7(i,t))}},rje=/^D+$/,ije=/^Y+$/,aje=[`D`,`DD`,`YY`,`YYYY`];function oje(e){return rje.test(e)}function sje(e){return ije.test(e)}function cje(e,t,n){let r=lje(e,t,n);if(console.warn(r),aje.includes(e))throw RangeError(r)}function lje(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var uje=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dje=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fje=/^'([^]*?)'?$/,pje=/''/g,mje=/[a-zA-Z]/;function Q7(e,t,n){let r=S7(),i=n?.locale??r.locale??z7,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=y7(e,n?.in);if(!zAe(s))throw RangeError(`Invalid time value`);let c=t.match(dje).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=nje[t];return n(e,i.formatLong)}return e}).join(``).match(uje).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:hje(e)};if(K7[t])return{isToken:!0,value:e};if(t.match(mje))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&sje(a)||!n?.useAdditionalDayOfYearTokens&&oje(a))&&cje(a,t,String(e));let o=K7[a[0]];return o(s,a,i.localize,l)}).join(``)}function hje(e){let t=e.match(fje);return t?t[1].replace(pje,`'`):e}function gje(e,t){let n=y7(e,t?.in),r=n.getFullYear(),i=n.getMonth(),a=v7(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}function _je(e,t){return y7(e,t?.in).getMonth()}function vje(e,t){return y7(e,t?.in).getFullYear()}function yje(e,t){return+y7(e)>+y7(t)}function bje(e,t){return+y7(e)<+y7(t)}function xje(e,t,n){let[r,i]=D7(n?.in,e,t);return+C7(r,n)==+C7(i,n)}function Sje(e,t,n){let[r,i]=D7(n?.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function Cje(e,t,n){let[r,i]=D7(n?.in,e,t);return r.getFullYear()===i.getFullYear()}function wje(e,t,n){let r=y7(e,n?.in),i=r.getFullYear(),a=r.getDate(),o=v7(n?.in||e,0);o.setFullYear(i,t,15),o.setHours(0,0,0,0);let s=gje(o);return r.setMonth(t,Math.min(a,s)),r}function Tje(e,t,n){let r=y7(e,n?.in);return isNaN(+r)?v7(n?.in||e,NaN):(r.setFullYear(t),r)}var $7=5,Eje=4;function Dje(e,t){let n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,i=t.addDays(e,-r+1),a=t.addDays(i,$7*7-1);return t.getMonth(e)===t.getMonth(a)?$7:Eje}function e9(e,t){let n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function Oje(e,t){let n=e9(e,t),r=Dje(e,t);return t.addDays(n,r*7-1)}var kje={lessThanXSeconds:{one:`Ø£ÙÙ Ù
٠ثاÙÙØ© ÙØ§ØØ¯Ø©`,two:`Ø£ÙÙ Ù
Ù Ø«Ø§ÙØªÙÙ`,threeToTen:`Ø£ÙÙ Ù
Ù {{count}} Ø«ÙØ§ÙÙ`,other:`Ø£ÙÙ Ù
Ù {{count}} ثاÙÙØ©`},xSeconds:{one:`ثاÙÙØ© ÙØ§ØØ¯Ø©`,two:`Ø«Ø§ÙØªÙÙ`,threeToTen:`{{count}} Ø«ÙØ§ÙÙ`,other:`{{count}} ثاÙÙØ©`},halfAMinute:`ÙØµÙ دÙÙÙØ©`,lessThanXMinutes:{one:`Ø£ÙÙ Ù
٠دÙÙÙØ©`,two:`Ø£ÙÙ Ù
٠دÙÙÙØªÙÙ`,threeToTen:`Ø£ÙÙ Ù
Ù {{count}} Ø¯ÙØ§Ø¦Ù`,other:`Ø£ÙÙ Ù
Ù {{count}} دÙÙÙØ©`},xMinutes:{one:`دÙÙÙØ© ÙØ§ØØ¯Ø©`,two:`دÙÙÙØªÙÙ`,threeToTen:`{{count}} Ø¯ÙØ§Ø¦Ù`,other:`{{count}} دÙÙÙØ©`},aboutXHours:{one:`ساعة ÙØ§ØØ¯Ø© ØªÙØ±ÙباÙ`,two:`ساعتÙÙ ØªÙØ±ÙباÙ`,threeToTen:`{{count}} ساعات ØªÙØ±ÙباÙ`,other:`{{count}} ساعة ØªÙØ±ÙباÙ`},xHours:{one:`ساعة ÙØ§ØØ¯Ø©`,two:`ساعتÙÙ`,threeToTen:`{{count}} ساعات`,other:`{{count}} ساعة`},xDays:{one:`ÙÙÙ
ÙØ§ØØ¯`,two:`ÙÙÙ
ÙÙ`,threeToTen:`{{count}} Ø£ÙØ§Ù
`,other:`{{count}} ÙÙÙ
`},aboutXWeeks:{one:`Ø£Ø³Ø¨ÙØ¹ ÙØ§ØØ¯ ØªÙØ±ÙباÙ`,two:`Ø£Ø³Ø¨ÙØ¹ÙÙ ØªÙØ±ÙباÙ`,threeToTen:`{{count}} Ø£Ø³Ø§Ø¨ÙØ¹ ØªÙØ±ÙباÙ`,other:`{{count}} Ø£Ø³Ø¨ÙØ¹ ØªÙØ±ÙباÙ`},xWeeks:{one:`Ø£Ø³Ø¨ÙØ¹ ÙØ§ØØ¯`,two:`Ø£Ø³Ø¨ÙØ¹ÙÙ`,threeToTen:`{{count}} Ø£Ø³Ø§Ø¨ÙØ¹`,other:`{{count}} Ø£Ø³Ø¨ÙØ¹`},aboutXMonths:{one:`Ø´ÙØ± ÙØ§ØØ¯ ØªÙØ±ÙباÙ`,two:`Ø´ÙØ±ÙÙ ØªÙØ±ÙباÙ`,threeToTen:`{{count}} Ø£Ø´ÙØ± ØªÙØ±ÙباÙ`,other:`{{count}} Ø´ÙØ± ØªÙØ±ÙباÙ`},xMonths:{one:`Ø´ÙØ± ÙØ§ØØ¯`,two:`Ø´ÙØ±ÙÙ`,threeToTen:`{{count}} Ø£Ø´ÙØ±`,other:`{{count}} Ø´ÙØ±`},aboutXYears:{one:`عاÙ
ÙØ§ØØ¯ ØªÙØ±ÙباÙ`,two:`عاÙ
ÙÙ ØªÙØ±ÙباÙ`,threeToTen:`{{count}} Ø£Ø¹ÙØ§Ù
ØªÙØ±ÙباÙ`,other:`{{count}} عاÙ
ØªÙØ±ÙباÙ`},xYears:{one:`عاÙ
ÙØ§ØØ¯`,two:`عاÙ
ÙÙ`,threeToTen:`{{count}} Ø£Ø¹ÙØ§Ù
`,other:`{{count}} عاÙ
`},overXYears:{one:`Ø£ÙØ«Ø± Ù
٠عاÙ
`,two:`Ø£ÙØ«Ø± Ù
٠عاÙ
ÙÙ`,threeToTen:`Ø£ÙØ«Ø± Ù
Ù {{count}} Ø£Ø¹ÙØ§Ù
`,other:`Ø£ÙØ«Ø± Ù
Ù {{count}} عاÙ
`},almostXYears:{one:`عاÙ
ÙØ§ØØ¯ ØªÙØ±ÙباÙ`,two:`عاÙ
ÙÙ ØªÙØ±ÙباÙ`,threeToTen:`{{count}} Ø£Ø¹ÙØ§Ù
ØªÙØ±ÙباÙ`,other:`{{count}} عاÙ
ØªÙØ±ÙباÙ`}},Aje=(e,t,n)=>{let r,i=kje[e];return r=typeof i==`string`?i:t===1?i.one:t===2?i.two:t<=10?i.threeToTen.replace(`{{count}}`,String(t)):i.other.replace(`{{count}}`,String(t)),n?.addSuffix?n.comparison&&n.comparison>0?`ÙÙ Ø®ÙØ§Ù `+r:`Ù
ÙØ° `+r:r},jje={date:F7({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:F7({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:F7({formats:{full:`{{date}} 'Ø¹ÙØ¯' {{time}}`,long:`{{date}} 'Ø¹ÙØ¯' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Mje={lastWeek:`'أخر' eeee 'Ø¹ÙØ¯' p`,yesterday:`'Ø£Ù
س Ø¹ÙØ¯' p`,today:`'اÙÙÙÙ
Ø¹ÙØ¯' p`,tomorrow:`'ØºØ¯Ø§Ù Ø¹ÙØ¯' p`,nextWeek:`eeee 'Ø¹ÙØ¯' p`,other:`P`},Nje={code:`ar-SA`,formatDistance:Aje,formatLong:jje,formatRelative:(e,t,n,r)=>Mje[e],localize:{ordinalNumber:e=>String(e),era:I7({values:{narrow:[`Ù`,`ب`],abbreviated:[`Ù.Ù
.`,`ب.Ù
.`],wide:[`ÙØ¨Ù اÙÙ
ÙÙØ§Ø¯`,`بعد اÙÙ
ÙÙØ§Ø¯`]},defaultWidth:`wide`}),quarter:I7({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`ر1`,`ر2`,`ر3`,`ر4`],wide:[`Ø§ÙØ±Ø¨Ø¹ Ø§ÙØ£ÙÙ`,`Ø§ÙØ±Ø¨Ø¹ Ø§ÙØ«Ø§ÙÙ`,`Ø§ÙØ±Ø¨Ø¹ Ø§ÙØ«Ø§ÙØ«`,`Ø§ÙØ±Ø¨Ø¹ Ø§ÙØ±Ø§Ø¨Ø¹`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:I7({values:{narrow:[`Ù`,`Ù`,`Ù
`,`Ø£`,`Ù
`,`Ù`,`Ù`,`Ø£`,`س`,`Ø£`,`Ù`,`د`],abbreviated:[`ÙÙØ§`,`ÙØ¨Ø±`,`Ù
ارس`,`أبرÙÙ`,`Ù
اÙÙ`,`ÙÙÙÙ`,`ÙÙÙÙ`,`أغسÙ`,`سبتÙ`,`Ø£ÙØªÙ`,`ÙÙÙÙ`,`Ø¯ÙØ³Ù`],wide:[`ÙÙØ§Ùر`,`ÙØ¨Ø±Ø§Ùر`,`Ù
ارس`,`أبرÙÙ`,`Ù
اÙÙ`,`ÙÙÙÙÙ`,`ÙÙÙÙÙ`,`أغسطس`,`سبتÙ
بر`,`Ø£ÙØªÙبر`,`ÙÙÙÙ
بر`,`Ø¯ÙØ³Ù
بر`]},defaultWidth:`wide`}),day:I7({values:{narrow:[`Ø`,`Ù`,`Ø«`,`ر`,`Ø®`,`ج`,`س`],short:[`Ø£ØØ¯`,`اثÙÙÙ`,`Ø«ÙØ§Ø«Ø§Ø¡`,`أربعاء`,`Ø®Ù
ÙØ³`,`جÙ
عة`,`سبت`],abbreviated:[`Ø£ØØ¯`,`اثÙÙ`,`Ø«ÙØ§`,`أربÙ`,`Ø®Ù
ÙÙ`,`جÙ
عة`,`سبت`],wide:[`Ø§ÙØ£ØØ¯`,`Ø§ÙØ§Ø«ÙÙÙ`,`Ø§ÙØ«Ùاثاء`,`Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡`,`Ø§ÙØ®Ù
ÙØ³`,`Ø§ÙØ¬Ù
عة`,`Ø§ÙØ³Ø¨Øª`]},defaultWidth:`wide`}),dayPeriod:I7({values:{narrow:{am:`ص`,pm:`Ù
`,midnight:`Ù`,noon:`ظ`,morning:`ØµØ¨Ø§ØØ§Ù`,afternoon:`بعد Ø§ÙØ¸Ùر`,evening:`Ù
ساءاÙ`,night:`ÙÙÙØ§Ù`},abbreviated:{am:`ص`,pm:`Ù
`,midnight:`ÙØµÙ اÙÙÙÙ`,noon:`Ø¸ÙØ±`,morning:`ØµØ¨Ø§ØØ§Ù`,afternoon:`بعد Ø§ÙØ¸Ùر`,evening:`Ù
ساءاÙ`,night:`ÙÙÙØ§Ù`},wide:{am:`ص`,pm:`Ù
`,midnight:`ÙØµÙ اÙÙÙÙ`,noon:`Ø¸ÙØ±`,morning:`ØµØ¨Ø§ØØ§Ù`,afternoon:`بعد Ø§ÙØ¸Ùر`,evening:`Ù
ساءاÙ`,night:`ÙÙÙØ§Ù`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ص`,pm:`Ù
`,midnight:`Ù`,noon:`ظ`,morning:`ÙÙ Ø§ÙØµØ¨Ø§Ø`,afternoon:`بعد Ø§ÙØ¸ÙÙØ±`,evening:`Ù٠اÙÙ
ساء`,night:`Ù٠اÙÙÙÙ`},abbreviated:{am:`ص`,pm:`Ù
`,midnight:`ÙØµÙ اÙÙÙÙ`,noon:`Ø¸ÙØ±`,morning:`ÙÙ Ø§ÙØµØ¨Ø§Ø`,afternoon:`بعد Ø§ÙØ¸Ùر`,evening:`Ù٠اÙÙ
ساء`,night:`Ù٠اÙÙÙÙ`},wide:{am:`ص`,pm:`Ù
`,midnight:`ÙØµÙ اÙÙÙÙ`,noon:`Ø¸ÙØ±`,morning:`ØµØ¨Ø§ØØ§Ù`,afternoon:`بعد Ø§ÙØ¸ÙÙØ±`,evening:`Ù٠اÙÙ
ساء`,night:`Ù٠اÙÙÙÙ`}},defaultFormattingWidth:`wide`})}
vendor: 38,679 bytes, line 406
406,match:{ordinalNumber:R7({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:L7({matchPatterns:{narrow:/^(Ù|ب)/i,abbreviated:/^(Ù\.?\s?Ù
\.?|Ù\.?\s?Ù
\.?\s?|a\.?\s?d\.?|c\.?\s?)/i,wide:/^(ÙØ¨Ù اÙÙ
ÙÙØ§Ø¯|ÙØ¨Ù اÙÙ
ÙÙØ§Ø¯|بعد اÙÙ
ÙÙØ§Ø¯|بعد اÙÙ
ÙÙØ§Ø¯)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ÙØ¨Ù/i,/^بعد/i]},defaultParseWidth:`any`}),quarter:L7({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^ر[1234]/i,wide:/^Ø§ÙØ±Ø¨Ø¹ [1234]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:L7({matchPatterns:{narrow:/^[ÙÙÙ
Ø£Ù
Ø³ÙØ¯]/i,abbreviated:/^(ÙÙ|Ù|Ù
ار|أب|Ù
اÙ|ÙÙÙ|ÙÙÙ|أغ|س|Ø£Ù|Ù|د)/i,wide:/^(ÙÙ|Ù|Ù
ار|أب|Ù
اÙ|ÙÙÙ|ÙÙÙ|أغ|س|Ø£Ù|Ù|د)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^Ù/i,/^Ù/i,/^Ù
/i,/^Ø£/i,/^Ù
/i,/^Ù/i,/^Ù/i,/^Ø£/i,/^س/i,/^Ø£/i,/^Ù/i,/^د/i],any:[/^ÙÙ/i,/^Ù/i,/^Ù
ار/i,/^أب/i,/^Ù
اÙ/i,/^ÙÙÙ/i,/^ÙÙÙ/i,/^أغ/i,/^س/i,/^Ø£Ù/i,/^Ù/i,/^د/i]},defaultParseWidth:`any`}),day:L7({matchPatterns:{narrow:/^[ØÙثرخجس]/i,short:/^(Ø£ØØ¯|اثÙÙÙ|Ø«ÙØ§Ø«Ø§Ø¡|أربعاء|Ø®Ù
ÙØ³|جÙ
عة|سبت)/i,abbreviated:/^(Ø£ØØ¯|اثÙ|Ø«ÙØ§|أرب|Ø®Ù
Ù|جÙ
عة|سبت)/i,wide:/^(Ø§ÙØ£ØØ¯|Ø§ÙØ§Ø«ÙÙÙ|Ø§ÙØ«Ùاثاء|Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡|Ø§ÙØ®Ù
ÙØ³|Ø§ÙØ¬Ù
عة|Ø§ÙØ³Ø¨Øª)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^Ø/i,/^Ù/i,/^Ø«/i,/^ر/i,/^Ø®/i,/^ج/i,/^س/i],wide:[/^Ø§ÙØ£ØØ¯/i,/^Ø§ÙØ§Ø«ÙÙÙ/i,/^Ø§ÙØ«Ùاثاء/i,/^Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡/i,/^Ø§ÙØ®Ù
ÙØ³/i,/^Ø§ÙØ¬Ù
عة/i,/^Ø§ÙØ³Ø¨Øª/i],any:[/^Ø£Ø/i,/^اث/i,/^Ø«/i,/^أر/i,/^Ø®/i,/^ج/i,/^س/i]},defaultParseWidth:`any`}),dayPeriod:L7({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},t9={lessThanXSeconds:{standalone:{one:`weniger als 1 Sekunde`,other:`weniger als {{count}} Sekunden`},withPreposition:{one:`weniger als 1 Sekunde`,other:`weniger als {{count}} Sekunden`}},xSeconds:{standalone:{one:`1 Sekunde`,other:`{{count}} Sekunden`},withPreposition:{one:`1 Sekunde`,other:`{{count}} Sekunden`}},halfAMinute:{standalone:`eine halbe Minute`,withPreposition:`einer halben Minute`},lessThanXMinutes:{standalone:{one:`weniger als 1 Minute`,other:`weniger als {{count}} Minuten`},withPreposition:{one:`weniger als 1 Minute`,other:`weniger als {{count}} Minuten`}},xMinutes:{standalone:{one:`1 Minute`,other:`{{count}} Minuten`},withPreposition:{one:`1 Minute`,other:`{{count}} Minuten`}},aboutXHours:{standalone:{one:`etwa 1 Stunde`,other:`etwa {{count}} Stunden`},withPreposition:{one:`etwa 1 Stunde`,other:`etwa {{count}} Stunden`}},xHours:{standalone:{one:`1 Stunde`,other:`{{count}} Stunden`},withPreposition:{one:`1 Stunde`,other:`{{count}} Stunden`}},xDays:{standalone:{one:`1 Tag`,other:`{{count}} Tage`},withPreposition:{one:`1 Tag`,other:`{{count}} Tagen`}},aboutXWeeks:{standalone:{one:`etwa 1 Woche`,other:`etwa {{count}} Wochen`},withPreposition:{one:`etwa 1 Woche`,other:`etwa {{count}} Wochen`}},xWeeks:{standalone:{one:`1 Woche`,other:`{{count}} Wochen`},withPreposition:{one:`1 Woche`,other:`{{count}} Wochen`}},aboutXMonths:{standalone:{one:`etwa 1 Monat`,other:`etwa {{count}} Monate`},withPreposition:{one:`etwa 1 Monat`,other:`etwa {{count}} Monaten`}},xMonths:{standalone:{one:`1 Monat`,other:`{{count}} Monate`},withPreposition:{one:`1 Monat`,other:`{{count}} Monaten`}},aboutXYears:{standalone:{one:`etwa 1 Jahr`,other:`etwa {{count}} Jahre`},withPreposition:{one:`etwa 1 Jahr`,other:`etwa {{count}} Jahren`}},xYears:{standalone:{one:`1 Jahr`,other:`{{count}} Jahre`},withPreposition:{one:`1 Jahr`,other:`{{count}} Jahren`}},overXYears:{standalone:{one:`mehr als 1 Jahr`,other:`mehr als {{count}} Jahre`},withPreposition:{one:`mehr als 1 Jahr`,other:`mehr als {{count}} Jahren`}},almostXYears:{standalone:{one:`fast 1 Jahr`,other:`fast {{count}} Jahre`},withPreposition:{one:`fast 1 Jahr`,other:`fast {{count}} Jahren`}}},Pje=(e,t,n)=>{let r,i=n?.addSuffix?t9[e].withPreposition:t9[e].standalone;return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:`vor `+r:r},Fje={date:F7({formats:{full:`EEEE, do MMMM y`,long:`do MMMM y`,medium:`do MMM y`,short:`dd.MM.y`},defaultWidth:`full`}),time:F7({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:F7({formats:{full:`{{date}} 'um' {{time}}`,long:`{{date}} 'um' {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},Ije={lastWeek:`'letzten' eeee 'um' p`,yesterday:`'gestern um' p`,today:`'heute um' p`,tomorrow:`'morgen um' p`,nextWeek:`eeee 'um' p`,other:`P`},Lje=(e,t,n,r)=>Ije[e],Rje={narrow:[`v.Chr.`,`n.Chr.`],abbreviated:[`v.Chr.`,`n.Chr.`],wide:[`vor Christus`,`nach Christus`]},zje={narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1. Quartal`,`2. Quartal`,`3. Quartal`,`4. Quartal`]},n9={narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mär`,`Apr`,`Mai`,`Jun`,`Jul`,`Aug`,`Sep`,`Okt`,`Nov`,`Dez`],wide:[`Januar`,`Februar`,`März`,`April`,`Mai`,`Juni`,`Juli`,`August`,`September`,`Oktober`,`November`,`Dezember`]},Bje={narrow:n9.narrow,abbreviated:[`Jan.`,`Feb.`,`März`,`Apr.`,`Mai`,`Juni`,`Juli`,`Aug.`,`Sep.`,`Okt.`,`Nov.`,`Dez.`],wide:n9.wide},Vje={code:`de`,formatDistance:Pje,formatLong:Fje,formatRelative:Lje,localize:{ordinalNumber:e=>Number(e)+`.`,era:I7({values:Rje,defaultWidth:`wide`}),quarter:I7({values:zje,defaultWidth:`wide`,argumentCallback:e=>e-1}),month:I7({values:n9,formattingValues:Bje,defaultWidth:`wide`}),day:I7({values:{narrow:[`S`,`M`,`D`,`M`,`D`,`F`,`S`],short:[`So`,`Mo`,`Di`,`Mi`,`Do`,`Fr`,`Sa`],abbreviated:[`So.`,`Mo.`,`Di.`,`Mi.`,`Do.`,`Fr.`,`Sa.`],wide:[`Sonntag`,`Montag`,`Dienstag`,`Mittwoch`,`Donnerstag`,`Freitag`,`Samstag`]},defaultWidth:`wide`}),dayPeriod:I7({values:{narrow:{am:`vm.`,pm:`nm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachm.`,evening:`Abend`,night:`Nacht`},abbreviated:{am:`vorm.`,pm:`nachm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachmittag`,evening:`Abend`,night:`Nacht`},wide:{am:`vormittags`,pm:`nachmittags`,midnight:`Mitternacht`,noon:`Mittag`,morning:`Morgen`,afternoon:`Nachmittag`,evening:`Abend`,night:`Nacht`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`vm.`,pm:`nm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachm.`,evening:`abends`,night:`nachts`},abbreviated:{am:`vorm.`,pm:`nachm.`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachmittags`,evening:`abends`,night:`nachts`},wide:{am:`vormittags`,pm:`nachmittags`,midnight:`Mitternacht`,noon:`Mittag`,morning:`morgens`,afternoon:`nachmittags`,evening:`abends`,night:`nachts`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:R7({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e)}),era:L7({matchPatterns:{narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^v/i,/^n/i]},defaultParseWidth:`any`}),quarter:L7({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:L7({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(jänner|januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:L7({matchPatterns:{narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:L7({matchPatterns:{narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Hje={lessThanXSeconds:{one:`menos de un segundo`,other:`menos de {{count}} segundos`},xSeconds:{one:`1 segundo`,other:`{{count}} segundos`},halfAMinute:`medio minuto`,lessThanXMinutes:{one:`menos de un minuto`,other:`menos de {{count}} minutos`},xMinutes:{one:`1 minuto`,other:`{{count}} minutos`},aboutXHours:{one:`alrededor de 1 hora`,other:`alrededor de {{count}} horas`},xHours:{one:`1 hora`,other:`{{count}} horas`},xDays:{one:`1 dÃa`,other:`{{count}} dÃas`},aboutXWeeks:{one:`alrededor de 1 semana`,other:`alrededor de {{count}} semanas`},xWeeks:{one:`1 semana`,other:`{{count}} semanas`},aboutXMonths:{one:`alrededor de 1 mes`,other:`alrededor de {{count}} meses`},xMonths:{one:`1 mes`,other:`{{count}} meses`},aboutXYears:{one:`alrededor de 1 año`,other:`alrededor de {{count}} años`},xYears:{one:`1 año`,other:`{{count}} años`},overXYears:{one:`más de 1 año`,other:`más de {{count}} años`},almostXYears:{one:`casi 1 año`,other:`casi {{count}} años`}},Uje=(e,t,n)=>{let r,i=Hje[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`en `+r:`hace `+r:r},Wje={date:F7({formats:{full:`EEEE, d 'de' MMMM 'de' y`,long:`d 'de' MMMM 'de' y`,medium:`d MMM y`,short:`dd/MM/y`},defaultWidth:`full`}),time:F7({formats:{full:`HH:mm:ss zzzz`,long:`HH:mm:ss z`,medium:`HH:mm:ss`,short:`HH:mm`},defaultWidth:`full`}),dateTime:F7({formats:{full:`{{date}} 'a las' {{time}}`,long:`{{date}} 'a las' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Gje={lastWeek:`'el' eeee 'pasado a la' p`,yesterday:`'ayer a la' p`,today:`'hoy a la' p`,tomorrow:`'mañana a la' p`,nextWeek:`eeee 'a la' p`,other:`P`},Kje={lastWeek:`'el' eeee 'pasado a las' p`,yesterday:`'ayer a las' p`,today:`'hoy a las' p`,tomorrow:`'mañana a las' p`,nextWeek:`eeee 'a las' p`,other:`P`},qje={code:`es`,formatDistance:Uje,formatLong:Wje,formatRelative:(e,t,n,r)=>t.getHours()===1?Gje[e]:Kje[e],localize:{ordinalNumber:(e,t)=>Number(e)+`º`,era:I7({values:{narrow:[`AC`,`DC`],abbreviated:[`AC`,`DC`],wide:[`antes de cristo`,`después de cristo`]},defaultWidth:`wide`}),quarter:I7({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`T1`,`T2`,`T3`,`T4`],wide:[`1º trimestre`,`2º trimestre`,`3º trimestre`,`4º trimestre`]},defaultWidth:`wide`,argumentCallback:e=>Number(e)-1}),month:I7({values:{narrow:[`e`,`f`,`m`,`a`,`m`,`j`,`j`,`a`,`s`,`o`,`n`,`d`],abbreviated:[`ene`,`feb`,`mar`,`abr`,`may`,`jun`,`jul`,`ago`,`sep`,`oct`,`nov`,`dic`],wide:[`enero`,`febrero`,`marzo`,`abril`,`mayo`,`junio`,`julio`,`agosto`,`septiembre`,`octubre`,`noviembre`,`diciembre`]},defaultWidth:`wide`}),day:I7({values:{narrow:[`d`,`l`,`m`,`m`,`j`,`v`,`s`],short:[`do`,`lu`,`ma`,`mi`,`ju`,`vi`,`sá`],abbreviated:[`dom`,`lun`,`mar`,`mié`,`jue`,`vie`,`sáb`],wide:[`domingo`,`lunes`,`martes`,`miércoles`,`jueves`,`viernes`,`sábado`]},defaultWidth:`wide`}),dayPeriod:I7({values:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`mañana`,afternoon:`tarde`,evening:`tarde`,night:`noche`},abbreviated:{am:`AM`,pm:`PM`,midnight:`medianoche`,noon:`mediodia`,morning:`mañana`,afternoon:`tarde`,evening:`tarde`,night:`noche`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`medianoche`,noon:`mediodia`,morning:`mañana`,afternoon:`tarde`,evening:`tarde`,night:`noche`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mn`,noon:`md`,morning:`de la mañana`,afternoon:`de la tarde`,evening:`de la tarde`,night:`de la noche`},abbreviated:{am:`AM`,pm:`PM`,midnight:`medianoche`,noon:`mediodia`,morning:`de la mañana`,afternoon:`de la tarde`,evening:`de la tarde`,night:`de la noche`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`medianoche`,noon:`mediodia`,morning:`de la mañana`,afternoon:`de la tarde`,evening:`de la tarde`,night:`de la noche`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:R7({matchPattern:/^(\d+)(º)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:L7({matchPatterns:{narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},defaultParseWidth:`any`}),quarter:L7({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:L7({matchPatterns:{narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},defaultParseWidth:`any`}),day:L7({matchPatterns:{narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:L7({matchPatterns:{narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},Jje={lessThanXSeconds:{one:`kurang dari 1 detik`,other:`kurang dari {{count}} detik`},xSeconds:{one:`1 detik`,other:`{{count}} detik`},halfAMinute:`setengah menit`,lessThanXMinutes:{one:`kurang dari 1 menit`,other:`kurang dari {{count}} menit`},xMinutes:{one:`1 menit`,other:`{{count}} menit`},aboutXHours:{one:`sekitar 1 jam`,other:`sekitar {{count}} jam`},xHours:{one:`1 jam`,other:`{{count}} jam`},xDays:{one:`1 hari`,other:`{{count}} hari`},aboutXWeeks:{one:`sekitar 1 minggu`,other:`sekitar {{count}} minggu`},xWeeks:{one:`1 minggu`,other:`{{count}} minggu`},aboutXMonths:{one:`sekitar 1 bulan`,other:`sekitar {{count}} bulan`},xMonths:{one:`1 bulan`,other:`{{count}} bulan`},aboutXYears:{one:`sekitar 1 tahun`,other:`sekitar {{count}} tahun`},xYears:{one:`1 tahun`,other:`{{count}} tahun`},overXYears:{one:`lebih dari 1 tahun`,other:`lebih dari {{count}} tahun`},almostXYears:{one:`hampir 1 tahun`,other:`hampir {{count}} tahun`}},Yje=(e,t,n)=>{let r,i=Jje[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`dalam waktu `+r:r+` yang lalu`:r},Xje={date:F7({formats:{full:`EEEE, d MMMM yyyy`,long:`d MMMM yyyy`,medium:`d MMM yyyy`,short:`d/M/yyyy`},defaultWidth:`full`}),time:F7({formats:{full:`HH.mm.ss`,long:`HH.mm.ss`,medium:`HH.mm`,short:`HH.mm`},defaultWidth:`full`}),dateTime:F7({formats:{full:`{{date}} 'pukul' {{time}}`,long:`{{date}} 'pukul' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},Zje={lastWeek:`eeee 'lalu pukul' p`,yesterday:`'Kemarin pukul' p`,today:`'Hari ini pukul' p`,tomorrow:`'Besok pukul' p`,nextWeek:`eeee 'pukul' p`,other:`P`},Qje={code:`id`,formatDistance:Yje,formatLong:Xje,formatRelative:(e,t,n,r)=>Zje[e],localize:{ordinalNumber:(e,t)=>`ke-`+Number(e),era:I7({values:{narrow:[`SM`,`M`],abbreviated:[`SM`,`M`],wide:[`Sebelum Masehi`,`Masehi`]},defaultWidth:`wide`}),quarter:I7({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`K1`,`K2`,`K3`,`K4`],wide:[`Kuartal ke-1`,`Kuartal ke-2`,`Kuartal ke-3`,`Kuartal ke-4`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:I7({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`Mei`,`Jun`,`Jul`,`Agt`,`Sep`,`Okt`,`Nov`,`Des`],wide:[`Januari`,`Februari`,`Maret`,`April`,`Mei`,`Juni`,`Juli`,`Agustus`,`September`,`Oktober`,`November`,`Desember`]},defaultWidth:`wide`}),day:I7({values:{narrow:[`M`,`S`,`S`,`R`,`K`,`J`,`S`],short:[`Min`,`Sen`,`Sel`,`Rab`,`Kam`,`Jum`,`Sab`],abbreviated:[`Min`,`Sen`,`Sel`,`Rab`,`Kam`,`Jum`,`Sab`],wide:[`Minggu`,`Senin`,`Selasa`,`Rabu`,`Kamis`,`Jumat`,`Sabtu`]},defaultWidth:`wide`}),dayPeriod:I7({values:{narrow:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`},abbreviated:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`},wide:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`},abbreviated:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`},wide:{am:`AM`,pm:`PM`,midnight:`tengah malam`,noon:`tengah hari`,morning:`pagi`,afternoon:`siang`,evening:`sore`,night:`malam`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:R7({matchPattern:/^ke-(\d+)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:L7({matchPatterns:{narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^s/i,/^(m|e)/i]},defaultParseWidth:`any`}),quarter:L7({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:L7({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:L7({matchPatterns:{narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:L7({matchPatterns:{narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}},$je={lessThanXSeconds:{one:`à¸à¹à¸à¸¢à¸à¸§à¹à¸² 1 วิà¸à¸²à¸à¸µ`,other:`à¸à¹à¸à¸¢à¸à¸§à¹à¸² {{count}} วิà¸à¸²à¸à¸µ`},xSeconds:{one:`1 วิà¸à¸²à¸à¸µ`,other:`{{count}} วิà¸à¸²à¸à¸µ`},halfAMinute:`à¸à¸£à¸¶à¹à¸à¸à¸²à¸à¸µ`,lessThanXMinutes:{one:`à¸à¹à¸à¸¢à¸à¸§à¹à¸² 1 à¸à¸²à¸à¸µ`,other:`à¸à¹à¸à¸¢à¸à¸§à¹à¸² {{count}} à¸à¸²à¸à¸µ`},xMinutes:{one:`1 à¸à¸²à¸à¸µ`,other:`{{count}} à¸à¸²à¸à¸µ`},aboutXHours:{one:`à¸à¸£à¸°à¸¡à¸²à¸ 1 à¸à¸±à¹à¸§à¹à¸¡à¸`,other:`à¸à¸£à¸°à¸¡à¸²à¸ {{count}} à¸à¸±à¹à¸§à¹à¸¡à¸`},xHours:{one:`1 à¸à¸±à¹à¸§à¹à¸¡à¸`,other:`{{count}} à¸à¸±à¹à¸§à¹à¸¡à¸`},xDays:{one:`1 วัà¸`,other:`{{count}} วัà¸`},aboutXWeeks:{one:`à¸à¸£à¸°à¸¡à¸²à¸ 1 สัà¸à¸à¸²à¸«à¹`,other:`à¸à¸£à¸°à¸¡à¸²à¸ {{count}} สัà¸à¸à¸²à¸«à¹`},xWeeks:{one:`1 สัà¸à¸à¸²à¸«à¹`,other:`{{count}} สัà¸à¸à¸²à¸«à¹`},aboutXMonths:{one:`à¸à¸£à¸°à¸¡à¸²à¸ 1 à¹à¸à¸·à¸à¸`,other:`à¸à¸£à¸°à¸¡à¸²à¸ {{count}} à¹à¸à¸·à¸à¸`},xMonths:{one:`1 à¹à¸à¸·à¸à¸`,other:`{{count}} à¹à¸à¸·à¸à¸`},aboutXYears:{one:`à¸à¸£à¸°à¸¡à¸²à¸ 1 à¸à¸µ`,other:`à¸à¸£à¸°à¸¡à¸²à¸ {{count}} à¸à¸µ`},xYears:{one:`1 à¸à¸µ`,other:`{{count}} à¸à¸µ`},overXYears:{one:`มาà¸à¸à¸§à¹à¸² 1 à¸à¸µ`,other:`มาà¸à¸à¸§à¹à¸² {{count}} à¸à¸µ`},almostXYears:{one:`à¹à¸à¸·à¸à¸ 1 à¸à¸µ`,other:`à¹à¸à¸·à¸à¸ {{count}} à¸à¸µ`}},eMe=(e,t,n)=>{let r,i=$je[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n?.addSuffix?n.comparison&&n.comparison>0?e===`halfAMinute`?`à¹à¸`+r:`à¹à¸ `+r:r+`à¸à¸µà¹à¸à¹à¸²à¸à¸¡à¸²`:r},tMe={date:F7({formats:{full:`วัà¸EEEEà¸à¸µà¹ do MMMM y`,long:`do MMMM y`,medium:`d MMM y`,short:`dd/MM/yyyy`},defaultWidth:`full`}),time:F7({formats:{full:`H:mm:ss à¸. zzzz`,long:`H:mm:ss à¸. z`,medium:`H:mm:ss à¸.`,short:`H:mm à¸.`},defaultWidth:`medium`}),dateTime:F7({formats:{full:`{{date}} 'à¹à¸§à¸¥à¸²' {{time}}`,long:`{{date}} 'à¹à¸§à¸¥à¸²' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},nMe={lastWeek:`eeee'à¸à¸µà¹à¹à¸¥à¹à¸§à¹à¸§à¸¥à¸²' p`,yesterday:`'à¹à¸¡à¸·à¹à¸à¸§à¸²à¸à¸à¸µà¹à¹à¸§à¸¥à¸²' p`,today:`'วัà¸à¸à¸µà¹à¹à¸§à¸¥à¸²' p`,tomorrow:`'à¸à¸£à¸¸à¹à¸à¸à¸µà¹à¹à¸§à¸¥à¸²' p`,nextWeek:`eeee 'à¹à¸§à¸¥à¸²' p`,other:`P`},rMe={code:`th`,formatDistance:eMe,formatLong:tMe,formatRelative:(e,t,n,r)=>nMe[e],localize:{ordinalNumber:(e,t)=>String(e),era:I7({values:{narrow:[`B`,`à¸à¸¨`],abbreviated:[`BC`,`à¸.ศ.`],wide:[`à¸à¸µà¸à¹à¸à¸à¸à¸£à¸´à¸ªà¸à¸à¸²à¸¥`,`à¸à¸£à¸´à¸ªà¸à¹à¸¨à¸±à¸à¸£à¸²à¸`]},defaultWidth:`wide`}),quarter:I7({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`à¹à¸à¸£à¸¡à¸²à¸ªà¹à¸£à¸`,`à¹à¸à¸£à¸¡à¸²à¸ªà¸à¸µà¹à¸ªà¸à¸`,`à¹à¸à¸£à¸¡à¸²à¸ªà¸à¸µà¹à¸ªà¸²à¸¡`,`à¹à¸à¸£à¸¡à¸²à¸ªà¸à¸µà¹à¸ªà¸µà¹`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:I7({values:{narrow:[`ม.à¸.`,`à¸.à¸.`,`มี.à¸.`,`à¹à¸¡.ย.`,`à¸.à¸.`,`มิ.ย.`,`à¸.à¸.`,`ส.à¸.`,`à¸.ย.`,`à¸.à¸.`,`à¸.ย.`,`à¸.à¸.`],abbreviated:[`ม.à¸.`,`à¸.à¸.`,`มี.à¸.`,`à¹à¸¡.ย.`,`à¸.à¸.`,`มิ.ย.`,`à¸.à¸.`,`ส.à¸.`,`à¸.ย.`,`à¸.à¸.`,`à¸.ย.`,`à¸.à¸.`],wide:[`มà¸à¸£à¸²à¸à¸¡`,`à¸à¸¸à¸¡à¸ าà¸à¸±à¸à¸à¹`,`มีà¸à¸²à¸à¸¡`,`à¹à¸¡à¸©à¸²à¸¢à¸`,`à¸à¸¤à¸©à¸ าà¸à¸¡`,`มิà¸à¸¸à¸à¸²à¸¢à¸`,`à¸à¸£à¸à¸à¸²à¸à¸¡`,`สิà¸à¸«à¸²à¸à¸¡`,`à¸à¸±à¸à¸¢à¸²à¸¢à¸`,`à¸à¸¸à¸¥à¸²à¸à¸¡`,`à¸à¸¤à¸¨à¸à¸´à¸à¸²à¸¢à¸`,`à¸à¸±à¸à¸§à¸²à¸à¸¡`]},defaultWidth:`wide`}),day:I7({values:{narrow:[`à¸à¸².`,`à¸.`,`à¸.`,`à¸.`,`à¸à¸¤.`,`ศ.`,`ส.`],short:[`à¸à¸².`,`à¸.`,`à¸.`,`à¸.`,`à¸à¸¤.`,`ศ.`,`ส.`],abbreviated:[`à¸à¸².`,`à¸.`,`à¸.`,`à¸.`,`à¸à¸¤.`,`ศ.`,`ส.`],wide:[`à¸à¸²à¸à¸´à¸à¸¢à¹`,`à¸à¸±à¸à¸à¸£à¹`,`à¸à¸±à¸à¸à¸²à¸£`,`à¸à¸¸à¸`,`à¸à¸¤à¸«à¸±à¸ªà¸à¸à¸µ`,`ศุà¸à¸£à¹`,`à¹à¸ªà¸²à¸£à¹`]},defaultWidth:`wide`}),dayPeriod:I7({values:{narrow:{am:`à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸`,pm:`หลัà¸à¹à¸à¸µà¹à¸¢à¸`,midnight:`à¹à¸à¸µà¹à¸¢à¸à¸à¸·à¸`,noon:`à¹à¸à¸µà¹à¸¢à¸`,morning:`à¹à¸à¹à¸²`,afternoon:`à¸à¹à¸²à¸¢`,evening:`à¹à¸¢à¹à¸`,night:`à¸à¸¥à¸²à¸à¸à¸·à¸`},abbreviated:{am:`à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸`,pm:`หลัà¸à¹à¸à¸µà¹à¸¢à¸`,midnight:`à¹à¸à¸µà¹à¸¢à¸à¸à¸·à¸`,noon:`à¹à¸à¸µà¹à¸¢à¸`,morning:`à¹à¸à¹à¸²`,afternoon:`à¸à¹à¸²à¸¢`,evening:`à¹à¸¢à¹à¸`,night:`à¸à¸¥à¸²à¸à¸à¸·à¸`},wide:{am:`à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸`,pm:`หลัà¸à¹à¸à¸µà¹à¸¢à¸`,midnight:`à¹à¸à¸µà¹à¸¢à¸à¸à¸·à¸`,noon:`à¹à¸à¸µà¹à¸¢à¸`,morning:`à¹à¸à¹à¸²`,afternoon:`à¸à¹à¸²à¸¢`,evening:`à¹à¸¢à¹à¸`,night:`à¸à¸¥à¸²à¸à¸à¸·à¸`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸`,pm:`หลัà¸à¹à¸à¸µà¹à¸¢à¸`,midnight:`à¹à¸à¸µà¹à¸¢à¸à¸à¸·à¸`,noon:`à¹à¸à¸µà¹à¸¢à¸`,morning:`à¸à¸à¸à¹à¸à¹à¸²`,afternoon:`à¸à¸à¸à¸à¸¥à¸²à¸à¸§à¸±à¸`,evening:`à¸à¸à¸à¹à¸¢à¹à¸`,night:`à¸à¸à¸à¸à¸¥à¸²à¸à¸à¸·à¸`},abbreviated:{am:`à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸`,pm:`หลัà¸à¹à¸à¸µà¹à¸¢à¸`,midnight:`à¹à¸à¸µà¹à¸¢à¸à¸à¸·à¸`,noon:`à¹à¸à¸µà¹à¸¢à¸`,morning:`à¸à¸à¸à¹à¸à¹à¸²`,afternoon:`à¸à¸à¸à¸à¸¥à¸²à¸à¸§à¸±à¸`,evening:`à¸à¸à¸à¹à¸¢à¹à¸`,night:`à¸à¸à¸à¸à¸¥à¸²à¸à¸à¸·à¸`},wide:{am:`à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸`,pm:`หลัà¸à¹à¸à¸µà¹à¸¢à¸`,midnight:`à¹à¸à¸µà¹à¸¢à¸à¸à¸·à¸`,noon:`à¹à¸à¸µà¹à¸¢à¸`,morning:`à¸à¸à¸à¹à¸à¹à¸²`,afternoon:`à¸à¸à¸à¸à¸¥à¸²à¸à¸§à¸±à¸`,evening:`à¸à¸à¸à¹à¸¢à¹à¸`,night:`à¸à¸à¸à¸à¸¥à¸²à¸à¸à¸·à¸`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:R7({matchPattern:/^\d+/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:L7({matchPatterns:{narrow:/^([bB]|[aA]|à¸à¸¨)/i,abbreviated:/^([bB]\.?\s?[cC]\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?|à¸\.?ศ\.?)/i,wide:/^(à¸à¹à¸à¸à¸à¸£à¸´à¸ªà¸à¸à¸²à¸¥|à¸à¸£à¸´à¸ªà¸à¹à¸¨à¸±à¸à¸£à¸²à¸|à¸à¸£à¸´à¸ªà¸à¸à¸²à¸¥)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^[bB]/i,/^(^[aA]|à¸\.?ศ\.?|à¸à¸£à¸´à¸ªà¸à¸à¸²à¸¥|à¸à¸£à¸´à¸ªà¸à¹à¸¨à¸±à¸à¸£à¸²à¸|)/i]},defaultParseWidth:`any`}),quarter:L7({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^à¹à¸à¸£à¸¡à¸²à¸ª(à¸à¸µà¹)? ?[1234]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|à¹à¸£à¸|หà¸à¸¶à¹à¸)/i,/(2|สà¸à¸)/i,/(3|สาม)/i,/(4|สีà¹)/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:L7({matchPatterns:{narrow:/^(ม\.?à¸\.?|à¸\.?à¸\.?|มี\.?à¸\.?|à¹à¸¡\.?ย\.?|à¸\.?à¸\.?|มิ\.?ย\.?|à¸\.?à¸\.?|ส\.?à¸\.?|à¸\.?ย\.?|à¸\.?à¸\.?|à¸\.?ย\.?|à¸\.?à¸\.?)/i,abbreviated:/^(ม\.?à¸\.?|à¸\.?à¸\.?|มี\.?à¸\.?|à¹à¸¡\.?ย\.?|à¸\.?à¸\.?|มิ\.?ย\.?|à¸\.?à¸\.?|ส\.?à¸\.?|à¸\.?ย\.?|à¸\.?à¸\.?|à¸\.?ย\.?|à¸\.?à¸\.?')/i,wide:/^(มà¸à¸£à¸²à¸à¸¡|à¸à¸¸à¸¡à¸ าà¸à¸±à¸à¸à¹|มีà¸à¸²à¸à¸¡|à¹à¸¡à¸©à¸²à¸¢à¸|à¸à¸¤à¸©à¸ าà¸à¸¡|มิà¸à¸¸à¸à¸²à¸¢à¸|à¸à¸£à¸à¸à¸²à¸à¸¡|สิà¸à¸«à¸²à¸à¸¡|à¸à¸±à¸à¸¢à¸²à¸¢à¸|à¸à¸¸à¸¥à¸²à¸à¸¡|à¸à¸¤à¸¨à¸à¸´à¸à¸²à¸¢à¸|à¸à¸±à¸à¸§à¸²à¸à¸¡)/i},defaultMatchWidth:`wide`,parsePatterns:{wide:[/^มà¸/i,/^à¸à¸¸à¸¡/i,/^มี/i,/^à¹à¸¡/i,/^à¸à¸¤à¸©/i,/^มิ/i,/^à¸à¸£à¸/i,/^ส/i,/^à¸à¸±à¸/i,/^à¸/i,/^à¸à¸¤à¸¨/i,/^à¸/i],any:[/^ม\.?à¸\.?/i,/^à¸\.?à¸\.?/i,/^มี\.?à¸\.?/i,/^à¹à¸¡\.?ย\.?/i,/^à¸\.?à¸\.?/i,/^มิ\.?ย\.?/i,/^à¸\.?à¸\.?/i,/^ส\.?à¸\.?/i,/^à¸\.?ย\.?/i,/^à¸\.?à¸\.?/i,/^à¸\.?ย\.?/i,/^à¸\.?à¸\.?/i]},defaultParseWidth:`any`}),day:L7({matchPatterns:{narrow:/^(à¸à¸²\.?|à¸\.?|à¸\.?|à¸à¸¤\.?|à¸\.?|ศ\.?|ส\.?)/i,short:/^(à¸à¸²\.?|à¸\.?|à¸\.?|à¸à¸¤\.?|à¸\.?|ศ\.?|ส\.?)/i,abbreviated:/^(à¸à¸²\.?|à¸\.?|à¸\.?|à¸à¸¤\.?|à¸\.?|ศ\.?|ส\.?)/i,wide:/^(à¸à¸²à¸à¸´à¸à¸¢à¹|à¸à¸±à¸à¸à¸£à¹|à¸à¸±à¸à¸à¸²à¸£|à¸à¸¸à¸|à¸à¸¤à¸«à¸±à¸ªà¸à¸à¸µ|ศุà¸à¸£à¹|à¹à¸ªà¸²à¸£à¹)/i},defaultMatchWidth:`wide`,parsePatterns:{wide:[/^à¸à¸²/i,/^à¸à¸±/i,/^à¸à¸±/i,/^à¸à¸¸à¸/i,/^à¸à¸¤/i,/^ศ/i,/^à¹à¸ª/i],any:[/^à¸à¸²/i,/^à¸/i,/^à¸/i,/^à¸(?!ฤ)/i,/^à¸à¸¤/i,/^ศ/i,/^ส/i]},defaultParseWidth:`any`}),dayPeriod:L7({matchPatterns:{any:/^(à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸|หลัà¸à¹à¸à¸µà¹à¸¢à¸|à¹à¸à¸µà¹à¸¢à¸à¸à¸·à¸|à¹à¸à¸µà¹à¸¢à¸|(à¸à¸à¸.*?)?.*(à¹à¸à¸µà¹à¸¢à¸|à¹à¸à¹à¸²|à¸à¹à¸²à¸¢|à¹à¸¢à¹à¸|à¸à¸¥à¸²à¸à¸à¸·à¸))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^à¸à¹à¸à¸à¹à¸à¸µà¹à¸¢à¸/i,pm:/^หลัà¸à¹à¸à¸µà¹à¸¢à¸/i,midnight:/^à¹à¸à¸µà¹à¸¢à¸à¸à¸·à¸/i,noon:/^à¹à¸à¸µà¹à¸¢à¸/i,morning:/à¹à¸à¹à¸²/i,afternoon:/à¸à¹à¸²à¸¢/i,evening:/à¹à¸¢à¹à¸/i,night:/à¸à¸¥à¸²à¸à¸à¸·à¸/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}},iMe={lessThanXSeconds:{one:`ä¸å° 1 ç§`,other:`ä¸å° {{count}} ç§`},xSeconds:{one:`1 ç§`,other:`{{count}} ç§`},halfAMinute:`ååé`,lessThanXMinutes:{one:`ä¸å° 1 åé`,other:`ä¸å° {{count}} åé`},xMinutes:{one:`1 åé`,other:`{{count}} åé`},xHours:{one:`1 å°æ¶`,other:`{{count}} å°æ¶`},aboutXHours:{one:`大约 1 å°æ¶`,other:`大约 {{count}} å°æ¶`},xDays:{one:`1 天`,other:`{{count}} 天`},aboutXWeeks:{one:`大约 1 个ææ`,other:`大约 {{count}} 个ææ`},xWeeks:{one:`1 个ææ`,other:`{{count}} 个ææ`},aboutXMonths:{one:`大约 1 个æ`,other:`大约 {{count}} 个æ`},xMonths:{one:`1 个æ`,other:`{{count}} 个æ`},aboutXYears:{one:`大约 1 å¹´`,other:`大约 {{count}} å¹´`},xYears:{one:`1 å¹´`,other:`{{count}} å¹´`},overXYears:{one:`è¶
è¿ 1 å¹´`,other:`è¶
è¿ {{count}} å¹´`},almostXYears:{one:`å°è¿ 1 å¹´`,other:`å°è¿ {{count}} å¹´`}},aMe=(e,t,n)=>{let r,i=iMe[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+`å
`:r+`å`:r},oMe={date:F7({formats:{full:`y'å¹´'M'æ'd'æ¥' EEEE`,long:`y'å¹´'M'æ'd'æ¥'`,medium:`yyyy-MM-dd`,short:`yy-MM-dd`},defaultWidth:`full`}),time:F7({formats:{full:`zzzz a h:mm:ss`,long:`z a h:mm:ss`,medium:`a h:mm:ss`,short:`a h:mm`},defaultWidth:`full`}),dateTime:F7({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})};function r9(e,t,n){let r=`eeee p`;return xje(e,t,n)?r:e.getTime()>t.getTime()?`'ä¸ä¸ª'`+r:`'ä¸ä¸ª'`+r}var sMe={lastWeek:r9,yesterday:`'æ¨å¤©' p`,today:`'ä»å¤©' p`,tomorrow:`'æå¤©' p`,nextWeek:r9,other:`PP p`},cMe={code:`zh-CN`,formatDistance:aMe,formatLong:oMe,formatRelative:(e,t,n,r)=>{let i=sMe[e];return typeof i==`function`?i(t,n,r):i},localize:{ordinalNumber:(e,t)=>{let n=Number(e);switch(t?.unit){case`date`:return n.toString()+`æ¥`;case`hour`:return n.toString()+`æ¶`;case`minute`:return n.toString()+`å`;case`second`:return n.toString()+`ç§`;default:return`第 `+n.toString()}},era:I7({values:{narrow:[`å`,`å
Œ
`],abbreviated:[`å`,`å
Œ
`],wide:[`å
Œ
å`,`å
Œ
`]},defaultWidth:`wide`}),quarter:I7({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`第ä¸å£`,`第äºå£`,`第ä¸å£`,`第åå£`],wide:[`第ä¸å£åº¦`,`第äºå£åº¦`,`第ä¸å£åº¦`,`第åå£åº¦`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:I7({values:{narrow:[`ä¸`,`äº`,`ä¸`,`å`,`äº`,`å
`,`ä¸`,`å
«`,`ä¹`,`å`,`åä¸`,`åäº`],abbreviated:[`1æ`,`2æ`,`3æ`,`4æ`,`5æ`,`6æ`,`7æ`,`8æ`,`9æ`,`10æ`,`11æ`,`12æ`],wide:[`䏿`,`äºæ`,`䏿`,`åæ`,`äºæ`,`å
æ`,`䏿`,`å
«æ`,`乿`,`åæ`,`å䏿`,`åäºæ`]},defaultWidth:`wide`}),day:I7({values:{narrow:[`æ¥`,`ä¸`,`äº`,`ä¸`,`å`,`äº`,`å
`],short:[`æ¥`,`ä¸`,`äº`,`ä¸`,`å`,`äº`,`å
`],abbreviated:[`卿¥`,`å¨ä¸`,`å¨äº`,`å¨ä¸`,`å¨å`,`å¨äº`,`å¨å
`],wide:[`æææ¥`,`ææä¸`,`ææäº`,`ææä¸`,`ææå`,`ææäº`,`ææå
`]},defaultWidth:`wide`}),dayPeriod:I7({values:{narrow:{am:`ä¸`,pm:`ä¸`,midnight:`忍`,noon:`å`,morning:`æ©`,afternoon:`ä¸å`,evening:`æ`,night:`å¤`},abbreviated:{am:`ä¸å`,pm:`ä¸å`,midnight:`忍`,noon:`ä¸å`,morning:`æ©æ¨`,afternoon:`ä¸å`,evening:`æä¸`,night:`å¤é´`},wide:{am:`ä¸å`,pm:`ä¸å`,midnight:`忍`,noon:`ä¸å`,morning:`æ©æ¨`,afternoon:`ä¸å`,evening:`æä¸`,night:`å¤é´`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ä¸`,pm:`ä¸`,midnight:`忍`,noon:`å`,morning:`æ©`,afternoon:`ä¸å`,evening:`æ`,night:`å¤`},abbreviated:{am:`ä¸å`,pm:`ä¸å`,midnight:`忍`,noon:`ä¸å`,morning:`æ©æ¨`,afternoon:`ä¸å`,evening:`æä¸`,night:`å¤é´`},wide:{am:`ä¸å`,pm:`ä¸å`,midnight:`忍`,noon:`ä¸å`,morning:`æ©æ¨`,afternoon:`ä¸å`,evening:`æä¸`,night:`å¤é´`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:R7({matchPattern:/^(第\s*)?\d+(æ¥|æ¶|å|ç§)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:L7({matchPatterns:{narrow:/^(å)/i,abbreviated:/^(å)/i,wide:/^(å
Œ
å|å
Œ
)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(å)/i,/^(å
Œ
)/i]},defaultParseWidth:`any`}),quarter:L7({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[ä¸äºä¸å]å»/i,wide:/^第[ä¸äºä¸å]å»é/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|ä¸)/i,/(2|äº)/i,/(3|ä¸)/i,/(4|å)/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:L7({matchPatterns:{narrow:/^(ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹|å[äºä¸]?)/i,abbreviated:/^(ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹|å[äºä¸]?|\d|1[0-2])æ/i,wide:/^(ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹|å[äºä¸]?)æ/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ä¸/i,/^äº/i,/^ä¸/i,/^å/i,/^äº/i,/^å
/i,/^ä¸/i,/^å
«/i,/^ä¹/i,/^å(?!(ä¸|äº))/i,/^åä¸/i,/^åäº/i],any:[/^(ä¸|1(?!\d))/i,/^(äº|2)/i,/^(ä¸|3)/i,/^(å|4)/i,/^(äº|5)/i,/^(å
|6)/i,/^(ä¸|7)/i,/^(å
«|8)/i,/^(ä¹|9)/i,/^(å(?!(ä¸|äº))|10)/i,/^(åä¸|11)/i,/^(åäº|12)/i]},defaultParseWidth:`any`}),day:L7({matchPatterns:{narrow:/^[ä¸äºä¸åäºå
æ¥]/i,short:/^[ä¸äºä¸åäºå
æ¥]/i,abbreviated:/^å¨[ä¸äºä¸åäºå
æ¥]/i,wide:/^ææ[ä¸äºä¸åäºå
æ¥]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/æ¥/i,/ä¸/i,/äº/i,/ä¸/i,/å/i,/äº/i,/å
/i]},defaultParseWidth:`any`}),dayPeriod:L7({matchPatterns:{any:/^(ä¸å?|ä¸å?|åå¤|[䏿£]å|æ©ä¸?|ä¸å|æä¸?|忍|)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^ä¸å?/i,pm:/^ä¸å?/i,midnight:/^åå¤/i,noon:/^[䏿£]å/i,morning:/^æ©ä¸/i,afternoon:/^ä¸å/i,evening:/^æä¸?/i,night:/^忍/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},lMe={lessThanXSeconds:{one:`å°æ¼ 1 ç§`,other:`å°æ¼ {{count}} ç§`},xSeconds:{one:`1 ç§`,other:`{{count}} ç§`},halfAMinute:`ååé`,lessThanXMinutes:{one:`å°æ¼ 1 åé`,other:`å°æ¼ {{count}} åé`},xMinutes:{one:`1 åé`,other:`{{count}} åé`},xHours:{one:`1 å°æ`,other:`{{count}} å°æ`},aboutXHours:{one:`å¤§ç´ 1 å°æ`,other:`å¤§ç´ {{count}} å°æ`},xDays:{one:`1 天`,other:`{{count}} 天`},aboutXWeeks:{one:`å¤§ç´ 1 åææ`,other:`å¤§ç´ {{count}} åææ`},xWeeks:{one:`1 åææ`,other:`{{count}} åææ`},aboutXMonths:{one:`å¤§ç´ 1 åæ`,other:`å¤§ç´ {{count}} åæ`},xMonths:{one:`1 åæ`,other:`{{count}} åæ`},aboutXYears:{one:`å¤§ç´ 1 å¹´`,other:`å¤§ç´ {{count}} å¹´`},xYears:{one:`1 å¹´`,other:`{{count}} å¹´`},overXYears:{one:`è¶
é 1 å¹´`,other:`è¶
é {{count}} å¹´`},almostXYears:{one:`å°è¿ 1 å¹´`,other:`å°è¿ {{count}} å¹´`}},uMe=(e,t,n)=>{let r,i=lMe[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,String(t)),n?.addSuffix?n.comparison&&n.comparison>0?r+`å
§`:r+`å`:r},dMe={date:F7({formats:{full:`y'å¹´'M'æ'd'æ¥' EEEE`,long:`y'å¹´'M'æ'd'æ¥'`,medium:`yyyy-MM-dd`,short:`yy-MM-dd`},defaultWidth:`full`}),time:F7({formats:{full:`zzzz a h:mm:ss`,long:`z a h:mm:ss`,medium:`a h:mm:ss`,short:`a h:mm`},defaultWidth:`full`}),dateTime:F7({formats:{full:`{{date}} {{time}}`,long:`{{date}} {{time}}`,medium:`{{date}} {{time}}`,short:`{{date}} {{time}}`},defaultWidth:`full`})},fMe={lastWeek:`'ä¸å'eeee p`,yesterday:`'æ¨å¤©' p`,today:`'ä»å¤©' p`,tomorrow:`'æå¤©' p`,nextWeek:`'ä¸å'eeee p`,other:`P`},pMe={code:`zh-TW`,formatDistance:uMe,formatLong:dMe,formatRelative:(e,t,n,r)=>fMe[e],localize:{ordinalNumber:(e,t)=>{let n=Number(e);switch(t?.unit){case`date`:return n+`æ¥`;case`hour`:return n+`æ`;case`minute`:return n+`å`;case`second`:return n+`ç§`;default:return`第 `+n}},era:I7({values:{narrow:[`å`,`å
Œ
`],abbreviated:[`å`,`å
Œ
`],wide:[`å
Œ
å`,`å
Œ
`]},defaultWidth:`wide`}),quarter:I7({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`第ä¸å»`,`第äºå»`,`第ä¸å»`,`第åå»`],wide:[`第ä¸å»é`,`第äºå»é`,`第ä¸å»é`,`第åå»é`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:I7({values:{narrow:[`ä¸`,`äº`,`ä¸`,`å`,`äº`,`å
`,`ä¸`,`å
«`,`ä¹`,`å`,`åä¸`,`åäº`],abbreviated:[`1æ`,`2æ`,`3æ`,`4æ`,`5æ`,`6æ`,`7æ`,`8æ`,`9æ`,`10æ`,`11æ`,`12æ`],wide:[`䏿`,`äºæ`,`䏿`,`åæ`,`äºæ`,`å
æ`,`䏿`,`å
«æ`,`乿`,`åæ`,`å䏿`,`åäºæ`]},defaultWidth:`wide`}),day:I7({values:{narrow:[`æ¥`,`ä¸`,`äº`,`ä¸`,`å`,`äº`,`å
`],short:[`æ¥`,`ä¸`,`äº`,`ä¸`,`å`,`äº`,`å
`],abbreviated:[`鱿¥`,`é±ä¸`,`é±äº`,`é±ä¸`,`é±å`,`é±äº`,`é±å
`],wide:[`æææ¥`,`ææä¸`,`ææäº`,`ææä¸`,`ææå`,`ææäº`,`ææå
`]},defaultWidth:`wide`}),dayPeriod:I7({values:{narrow:{am:`ä¸`,pm:`ä¸`,midnight:`忍`,noon:`å`,morning:`æ©`,afternoon:`ä¸å`,evening:`æ`,night:`å¤`},abbreviated:{am:`ä¸å`,pm:`ä¸å`,midnight:`忍`,noon:`ä¸å`,morning:`æ©æ¨`,afternoon:`ä¸å`,evening:`æä¸`,night:`å¤é`},wide:{am:`ä¸å`,pm:`ä¸å`,midnight:`忍`,noon:`ä¸å`,morning:`æ©æ¨`,afternoon:`ä¸å`,evening:`æä¸`,night:`å¤é`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`ä¸`,pm:`ä¸`,midnight:`忍`,noon:`å`,morning:`æ©`,afternoon:`ä¸å`,evening:`æ`,night:`å¤`},abbreviated:{am:`ä¸å`,pm:`ä¸å`,midnight:`忍`,noon:`ä¸å`,morning:`æ©æ¨`,afternoon:`ä¸å`,evening:`æä¸`,night:`å¤é`},wide:{am:`ä¸å`,pm:`ä¸å`,midnight:`忍`,noon:`ä¸å`,morning:`æ©æ¨`,afternoon:`ä¸å`,evening:`æä¸`,night:`å¤é`}},defaultFormattingWidth:`wide`})}
vendor: 41,606 bytes, line 406
406,match:{ordinalNumber:R7({matchPattern:/^(第\s*)?\d+(æ¥|æ|å|ç§)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:L7({matchPatterns:{narrow:/^(å)/i,abbreviated:/^(å)/i,wide:/^(å
Œ
å|å
Œ
)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^(å)/i,/^(å
Œ
)/i]},defaultParseWidth:`any`}),quarter:L7({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^第[ä¸äºä¸å]å»/i,wide:/^第[ä¸äºä¸å]å»é/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/(1|ä¸)/i,/(2|äº)/i,/(3|ä¸)/i,/(4|å)/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:L7({matchPatterns:{narrow:/^(ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹|å[äºä¸]?)/i,abbreviated:/^(ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹|å[äºä¸]?|\d|1[0-2])æ/i,wide:/^(ä¸|äº|ä¸|å|äº|å
|ä¸|å
«|ä¹|å[äºä¸]?)æ/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^ä¸/i,/^äº/i,/^ä¸/i,/^å/i,/^äº/i,/^å
/i,/^ä¸/i,/^å
«/i,/^ä¹/i,/^å(?!(ä¸|äº))/i,/^åä¸/i,/^åäº/i],any:[/^(ä¸|1(?!\d))/i,/^(äº|2)/i,/^(ä¸|3)/i,/^(å|4)/i,/^(äº|5)/i,/^(å
|6)/i,/^(ä¸|7)/i,/^(å
«|8)/i,/^(ä¹|9)/i,/^(å(?!(ä¸|äº))|10)/i,/^(åä¸|11)/i,/^(åäº|12)/i]},defaultParseWidth:`any`}),day:L7({matchPatterns:{narrow:/^[ä¸äºä¸åäºå
æ¥]/i,short:/^[ä¸äºä¸åäºå
æ¥]/i,abbreviated:/^é±[ä¸äºä¸åäºå
æ¥]/i,wide:/^ææ[ä¸äºä¸åäºå
æ¥]/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/æ¥/i,/ä¸/i,/äº/i,/ä¸/i,/å/i,/äº/i,/å
/i]},defaultParseWidth:`any`}),dayPeriod:L7({matchPatterns:{any:/^(ä¸å?|ä¸å?|åå¤|[䏿£]å|æ©ä¸?|ä¸å|æä¸?|忍)/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^ä¸å?/i,pm:/^ä¸å?/i,midnight:/^åå¤/i,noon:/^[䏿£]å/i,morning:/^æ©ä¸/i,afternoon:/^ä¸å/i,evening:/^æä¸?/i,night:/^忍/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:4}},i9={...z7,labels:{labelDayButton:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>Q7(e,t,{locale:z7,...n});let a=i(e,`PPPP`);return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a},labelMonthDropdown:`Choose the Month`,labelNext:`Go to the Next Month`,labelPrevious:`Go to the Previous Month`,labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:`Choose the Year`,labelGrid:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>Q7(e,n,{locale:z7,...t}),r(e,`LLLL yyyy`)},labelGridcell:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>Q7(e,t,{locale:z7,...n});let a=i(e,`PPPP`);return t?.today&&(a=`Today, ${a}`),a},labelNav:`Navigation bar`,labelWeekNumberHeader:`Week Number`,labelWeekday:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>Q7(e,n,{locale:z7,...t}),r(e,`cccc`)}}},a9=class e{constructor(e,t){this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?m7.tz(this.options.timeZone):new(this.options.Date??Date),this.newDate=(e,t,n)=>this.overrides?.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new m7(e,t,n,this.options.timeZone):new Date(e,t,n),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):b7(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):x7(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):PAe(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):FAe(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):k7(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):j7(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):VAe(e),this.eachYearOfInterval=e=>{let t=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(e):WAe(e),n=new Set(t.map(e=>this.getYear(e)));if(n.size===t.length)return t;let r=[];return n.forEach(e=>{r.push(new Date(e,0,1))}),r},this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e):Oje(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):GAe(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):BAe(e),this.endOfWeek=(e,t)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,t):P7(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):UAe(e),this.format=(e,t,n)=>{let r=this.overrides?.format?this.overrides.format(e,t,this.options):Q7(e,t,this.options);return this.options.numerals&&this.options.numerals!==`latn`?this.replaceDigits(r):r},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):B7(e),this.getMonth=(e,t)=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):_je(e,this.options),this.getYear=(e,t)=>this.overrides?.getYear?this.overrides.getYear(e,this.options):vje(e,this.options),this.getWeek=(e,t)=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):H7(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):yje(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):bje(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):A7(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):RAe(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):Sje(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):Cje(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):IAe(e),this.min=e=>this.overrides?.min?this.overrides.min(e):LAe(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):wje(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):Tje(e,t),this.startOfBroadcastWeek=(e,t)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):e9(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):O7(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):w7(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):HAe(e),this.startOfWeek=(e,t)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):C7(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):N7(e),this.options={locale:i9,...e},this.overrides=t}getDigitMap(){let{numerals:e=`latn`}=this.options,t=new Intl.NumberFormat(`en-US`,{numberingSystem:e}),n={};for(let e=0;e<10;e++)n[e.toString()]=t.format(e);return n}replaceDigits(e){let t=this.getDigitMap();return e.replace(/\d/g,e=>t[e]||e)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){let t=this.options.locale?.code;return t&&e.yearFirstLocales.has(t)?`year-first`:`month-first`}formatMonthYear(t){let{locale:n,timeZone:r,numerals:i}=this.options,a=n?.code;if(a&&e.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:`long`,year:`numeric`,timeZone:r,numberingSystem:i}).format(t)}catch{}let o=this.getMonthYearOrder()===`year-first`?`y LLLL`:`LLLL y`;return this.format(t,o)}};a9.yearFirstLocales=new Set([`eu`,`hu`,`ja`,`ja-Hira`,`ja-JP`,`ko`,`ko-KR`,`lt`,`lt-LT`,`lv`,`lv-LV`,`mn`,`mn-MN`,`zh`,`zh-CN`,`zh-HK`,`zh-TW`]);var o9=new a9,s9=class{constructor(e,t,n=o9){this.date=e,this.displayMonth=t,this.outside=!!(t&&!n.isSameMonth(e,t)),this.dateLib=n,this.isoDate=n.format(e,`yyyy-MM-dd`),this.displayMonthId=n.format(t,`yyyy-MM`),this.dateMonthId=n.format(e,`yyyy-MM`)}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}},mMe=class{constructor(e,t){this.date=e,this.weeks=t}},hMe=class{constructor(e,t){this.days=t,this.weekNumber=e}};function gMe(e){return R.createElement(`span`,{...e})}function _Me(e){let{size:t=24,orientation:n=`left`,className:r,style:i}=e;return R.createElement(`svg`,{className:r,style:i,width:t,height:t,viewBox:`0 0 24 24`},n===`up`&&R.createElement(`polygon`,{points:`6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28`}),n===`down`&&R.createElement(`polygon`,{points:`6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72`}),n===`left`&&R.createElement(`polygon`,{points:`16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20`}),n===`right`&&R.createElement(`polygon`,{points:`8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20`}))}function vMe(e){let{day:t,modifiers:n,...r}=e;return R.createElement(`td`,{...r})}function yMe(e){let{day:t,modifiers:n,...r}=e,i=R.useRef(null);return R.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),R.createElement(`button`,{ref:i,...r})}var $;(function(e){e.Root=`root`,e.Chevron=`chevron`,e.Day=`day`,e.DayButton=`day_button`,e.CaptionLabel=`caption_label`,e.Dropdowns=`dropdowns`,e.Dropdown=`dropdown`,e.DropdownRoot=`dropdown_root`,e.Footer=`footer`,e.MonthGrid=`month_grid`,e.MonthCaption=`month_caption`,e.MonthsDropdown=`months_dropdown`,e.Month=`month`,e.Months=`months`,e.Nav=`nav`,e.NextMonthButton=`button_next`,e.PreviousMonthButton=`button_previous`,e.Week=`week`,e.Weeks=`weeks`,e.Weekday=`weekday`,e.Weekdays=`weekdays`,e.WeekNumber=`week_number`,e.WeekNumberHeader=`week_number_header`,e.YearsDropdown=`years_dropdown`})($||={});var c9;(function(e){e.disabled=`disabled`,e.hidden=`hidden`,e.outside=`outside`,e.focused=`focused`,e.today=`today`})(c9||={});var l9;(function(e){e.range_end=`range_end`,e.range_middle=`range_middle`,e.range_start=`range_start`,e.selected=`selected`})(l9||={});var u9;(function(e){e.weeks_before_enter=`weeks_before_enter`,e.weeks_before_exit=`weeks_before_exit`,e.weeks_after_enter=`weeks_after_enter`,e.weeks_after_exit=`weeks_after_exit`,e.caption_after_enter=`caption_after_enter`,e.caption_after_exit=`caption_after_exit`,e.caption_before_enter=`caption_before_enter`,e.caption_before_exit=`caption_before_exit`})(u9||={});var d9=(0,R.createContext)(void 0);function f9(){let e=(0,R.useContext)(d9);if(e===void 0)throw Error(`useDayPicker() must be used within a custom component.`);return e}function bMe(e){let{options:t,className:n,...r}=e,{classNames:i,components:a,styles:o}=f9(),s=[i[$.Dropdown],n].join(` `),c=t?.find(({value:e})=>e===r.value);return R.createElement(`span`,{"data-disabled":r.disabled,className:i[$.DropdownRoot],style:o?.[$.DropdownRoot]},R.createElement(a.Select,{className:s,...r},t?.map(({value:e,label:t,disabled:n})=>R.createElement(a.Option,{key:e,value:e,disabled:n},t))),R.createElement(`span`,{className:i[$.CaptionLabel],style:o?.[$.CaptionLabel],"aria-hidden":!0},c?.label,R.createElement(a.Chevron,{orientation:`down`,size:18,className:i[$.Chevron],style:o?.[$.Chevron]})))}function xMe(e){return R.createElement(`div`,{...e})}function SMe(e){return R.createElement(`div`,{...e})}function CMe(e){let{calendarMonth:t,displayIndex:n,...r}=e;return R.createElement(`div`,{...r},e.children)}function wMe(e){let{calendarMonth:t,displayIndex:n,...r}=e;return R.createElement(`div`,{...r})}function TMe(e){return R.createElement(`table`,{...e})}function EMe(e){return R.createElement(`div`,{...e})}function DMe(e){let{components:t}=f9();return R.createElement(t.Dropdown,{...e})}function OMe(e){let{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:i,...a}=e,{components:o,classNames:s,styles:c,labels:{labelPrevious:l,labelNext:u}}=f9(),d=(0,R.useCallback)(e=>{i&&n?.(e)},[i,n]),f=(0,R.useCallback)(e=>{r&&t?.(e)},[r,t]);return R.createElement(`nav`,{...a},R.createElement(o.PreviousMonthButton,{type:`button`,className:s[$.PreviousMonthButton],style:c?.[$.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":r?void 0:!0,"aria-label":l(r),onClick:f},R.createElement(o.Chevron,{disabled:r?void 0:!0,className:s[$.Chevron],style:c?.[$.Chevron],orientation:`left`})),R.createElement(o.NextMonthButton,{type:`button`,className:s[$.NextMonthButton],style:c?.[$.NextMonthButton],tabIndex:i?void 0:-1,"aria-disabled":i?void 0:!0,"aria-label":u(i),onClick:d},R.createElement(o.Chevron,{disabled:i?void 0:!0,orientation:`right`,className:s[$.Chevron],style:c?.[$.Chevron]})))}function kMe(e){return R.createElement(`button`,{...e})}function AMe(e){return R.createElement(`option`,{...e})}function jMe(e){return R.createElement(`button`,{...e})}function MMe(e){let{rootRef:t,...n}=e;return R.createElement(`div`,{...n,ref:t})}function NMe(e){return R.createElement(`select`,{...e})}function PMe(e){let{week:t,...n}=e;return R.createElement(`tr`,{...n})}function FMe(e){return R.createElement(`th`,{...e})}function IMe(e){return R.createElement(`thead`,{"aria-hidden":!0},R.createElement(`tr`,{...e}))}function LMe(e){let{week:t,...n}=e;return R.createElement(`th`,{...n})}function RMe(e){return R.createElement(`th`,{...e})}function zMe(e){return R.createElement(`tbody`,{...e})}function BMe(e){let{components:t}=f9();return R.createElement(t.Dropdown,{...e})}var VMe=i({CaptionLabel:()=>gMe,Chevron:()=>_Me,Day:()=>vMe,DayButton:()=>yMe,Dropdown:()=>bMe,DropdownNav:()=>xMe,Footer:()=>SMe,Month:()=>CMe,MonthCaption:()=>wMe,MonthGrid:()=>TMe,Months:()=>EMe,MonthsDropdown:()=>DMe,Nav:()=>OMe,NextMonthButton:()=>kMe,Option:()=>AMe,PreviousMonthButton:()=>jMe,Root:()=>MMe,Select:()=>NMe,Week:()=>PMe,WeekNumber:()=>LMe,WeekNumberHeader:()=>RMe,Weekday:()=>FMe,Weekdays:()=>IMe,Weeks:()=>zMe,YearsDropdown:()=>BMe});function p9(e,t,n=!1,r=o9){let{from:i,to:a}=e,{differenceInCalendarDays:o,isSameDay:s}=r;return i&&a?(o(a,i)<0&&([i,a]=[a,i]),o(t,i)>=+!!n&&o(a,t)>=+!!n):!n&&a?s(a,t):!n&&i?s(i,t):!1}function m9(e){return!!(e&&typeof e==`object`&&`before`in e&&`after`in e)}function h9(e){return!!(e&&typeof e==`object`&&`from`in e)}function g9(e){return!!(e&&typeof e==`object`&&`after`in e)}function _9(e){return!!(e&&typeof e==`object`&&`before`in e)}function v9(e){return!!(e&&typeof e==`object`&&`dayOfWeek`in e)}function y9(e,t){return Array.isArray(e)&&e.every(t.isDate)}function b9(e,t,n=o9){let r=Array.isArray(t)?t:[t],{isSameDay:i,differenceInCalendarDays:a,isAfter:o}=n;return r.some(t=>{if(typeof t==`boolean`)return t;if(n.isDate(t))return i(e,t);if(y9(t,n))return t.some(t=>i(e,t));if(h9(t))return p9(t,e,!1,n);if(v9(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(m9(t)){let n=a(t.before,e),r=a(t.after,e),i=n>0,s=r<0;return o(t.before,t.after)?s&&i:i||s}return g9(t)?a(e,t.after)>0:_9(t)?a(t.before,e)>0:typeof t==`function`?t(e):!1})}function HMe(e,t,n,r,i){let{disabled:a,hidden:o,modifiers:s,showOutsideDays:c,broadcastCalendar:l,today:u=i.today()}=t,{isSameDay:d,isSameMonth:f,startOfMonth:p,isBefore:m,endOfMonth:h,isAfter:g}=i,_=n&&p(n),v=r&&h(r),y={[c9.focused]:[],[c9.outside]:[],[c9.disabled]:[],[c9.hidden]:[],[c9.today]:[]},b={};for(let t of e){let{date:e,displayMonth:n}=t,r=!!(n&&!f(e,n)),p=!!(_&&m(e,_)),h=!!(v&&g(e,v)),x=!!(a&&b9(e,a,i)),S=!!(o&&b9(e,o,i))||p||h||!l&&!c&&r||l&&c===!1&&r,C=d(e,u);r&&y.outside.push(t),x&&y.disabled.push(t),S&&y.hidden.push(t),C&&y.today.push(t),s&&Object.keys(s).forEach(n=>{let r=s?.[n];r&&b9(e,r,i)&&(b[n]?b[n].push(t):b[n]=[t])})}return e=>{let t={[c9.focused]:!1,[c9.disabled]:!1,[c9.hidden]:!1,[c9.outside]:!1,[c9.today]:!1},n={};for(let n in y)t[n]=y[n].some(t=>t===e);for(let t in b)n[t]=b[t].some(t=>t===e);return{...t,...n}}}function UMe(e,t,n={}){return Object.entries(e).filter(([,e])=>e===!0).reduce((e,[r])=>(n[r]?e.push(n[r]):t[c9[r]]?e.push(t[c9[r]]):t[l9[r]]&&e.push(t[l9[r]]),e),[t[$.Day]])}function WMe(e){return{...VMe,...e}}function GMe(e){let t={"data-mode":e.mode??void 0,"data-required":`required`in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([e,n])=>{e.startsWith(`data-`)&&(t[e]=n)}),t}function KMe(){let e={};for(let t in $)e[$[t]]=`rdp-${$[t]}`;for(let t in c9)e[c9[t]]=`rdp-${c9[t]}`;for(let t in l9)e[l9[t]]=`rdp-${l9[t]}`;for(let t in u9)e[u9[t]]=`rdp-${u9[t]}`;return e}function qMe(e,t,n){return(n??new a9(t)).formatMonthYear(e)}function JMe(e,t,n){return(n??new a9(t)).format(e,`d`)}function YMe(e,t=o9){return t.format(e,`LLLL`)}function XMe(e,t,n){return(n??new a9(t)).format(e,`cccccc`)}function ZMe(e,t=o9){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function QMe(){return``}function $Me(e,t=o9){return t.format(e,`yyyy`)}var eNe=i({formatCaption:()=>qMe,formatDay:()=>JMe,formatMonthDropdown:()=>YMe,formatWeekNumber:()=>ZMe,formatWeekNumberHeader:()=>QMe,formatWeekdayName:()=>XMe,formatYearDropdown:()=>$Me});function tNe(e){return{...eNe,...e}}function x9(e,t,n,r){let i=(r??new a9(n)).format(e,`PPPP`);return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i}function S9(e,t,n){return(n??new a9(t)).formatMonthYear(e)}function C9(e,t,n,r){let i=(r??new a9(n)).format(e,`PPPP`);return t?.today&&(i=`Today, ${i}`),i}function w9(e){return`Choose the Month`}function T9(){return``}var nNe=`Go to the Next Month`;function E9(e,t){return nNe}function D9(e){return`Go to the Previous Month`}function O9(e,t,n){return(n??new a9(t)).format(e,`cccc`)}function k9(e,t){return`Week ${e}`}function A9(e){return`Week Number`}function j9(e){return`Choose the Year`}var rNe=i({labelDayButton:()=>x9,labelGrid:()=>S9,labelGridcell:()=>C9,labelMonthDropdown:()=>w9,labelNav:()=>T9,labelNext:()=>E9,labelPrevious:()=>D9,labelWeekNumber:()=>k9,labelWeekNumberHeader:()=>A9,labelWeekday:()=>O9,labelYearDropdown:()=>j9}),M9=(e,t,n)=>t||(n?typeof n==`function`?n:(...e)=>n:e);function iNe(e,t){let n=t.locale?.labels??{};return{...rNe,...e??{},labelDayButton:M9(x9,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:M9(w9,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:M9(E9,e?.labelNext,n.labelNext),labelPrevious:M9(D9,e?.labelPrevious,n.labelPrevious),labelWeekNumber:M9(k9,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:M9(j9,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:M9(S9,e?.labelGrid,n.labelGrid),labelGridcell:M9(C9,e?.labelGridcell,n.labelGridcell),labelNav:M9(T9,e?.labelNav,n.labelNav),labelWeekNumberHeader:M9(A9,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:M9(O9,e?.labelWeekday,n.labelWeekday)}}function aNe(e,t,n,r,i){let{startOfMonth:a,startOfYear:o,endOfYear:s,eachMonthOfInterval:c,getMonth:l}=i;return c({start:o(e),end:s(e)}).map(e=>{let o=r.formatMonthDropdown(e,i);return{value:l(e),label:o,disabled:t&&e<a(t)||n&&e>a(n)||!1}})}function oNe(e,t={},n={}){let r={...t?.[$.Day]};return Object.entries(e).filter(([,e])=>e===!0).forEach(([e])=>{r={...r,...n?.[e]}}),r}function sNe(e,t,n,r){let i=r??e.today(),a=n?e.startOfBroadcastWeek(i,e):t?e.startOfISOWeek(i):e.startOfWeek(i),o=[];for(let t=0;t<7;t++){let n=e.addDays(a,t);o.push(n)}return o}function cNe(e,t,n,r,i=!1){if(!e||!t)return;let{startOfYear:a,endOfYear:o,eachYearOfInterval:s,getYear:c}=r,l=s({start:a(e),end:o(t)});return i&&l.reverse(),l.map(e=>{let t=n.formatYearDropdown(e,r);return{value:c(e),label:t,disabled:!1}})}function lNe(e,t={}){let{weekStartsOn:n,locale:r}=t,i=n??r?.options?.weekStartsOn??0,a=t=>{let n=typeof t==`number`||typeof t==`string`?new Date(t):t;return new m7(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0,e)},o=e=>{let t=a(e);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)};return{today:()=>a(m7.tz(e)),newDate:(t,n,r)=>new m7(t,n,r,12,0,0,e),startOfDay:e=>a(e),startOfWeek:(e,t)=>{let n=a(e),r=t?.weekStartsOn??i,o=(n.getDay()-r+7)%7;return n.setDate(n.getDate()-o),n},startOfISOWeek:e=>{let t=a(e),n=(t.getDay()-1+7)%7;return t.setDate(t.getDate()-n),t},startOfMonth:e=>{let t=a(e);return t.setDate(1),t},startOfYear:e=>{let t=a(e);return t.setMonth(0,1),t},endOfWeek:(e,t)=>{let n=a(e),r=(((t?.weekStartsOn??i)+6)%7-n.getDay()+7)%7;return n.setDate(n.getDate()+r),n},endOfISOWeek:e=>{let t=a(e),n=(7-t.getDay())%7;return t.setDate(t.getDate()+n),t},endOfMonth:e=>{let t=a(e);return t.setMonth(t.getMonth()+1,0),t},endOfYear:e=>{let t=a(e);return t.setMonth(11,31),t},eachMonthOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new m7(n.getFullYear(),n.getMonth(),1,12,0,0,e),s=r.getFullYear()*12+r.getMonth();for(;o.getFullYear()*12+o.getMonth()<=s;)i.push(new m7(o,e)),o.setMonth(o.getMonth()+1,1);return i},addDays:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t),n},addWeeks:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t*7),n},addMonths:(e,t)=>{let n=a(e);return n.setMonth(n.getMonth()+t),n},addYears:(e,t)=>{let n=a(e);return n.setFullYear(n.getFullYear()+t),n},eachYearOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new m7(n.getFullYear(),0,1,12,0,0,e);for(;o.getFullYear()<=r.getFullYear();)i.push(new m7(o,e)),o.setFullYear(o.getFullYear()+1,0,1);return i},getWeek:(e,t)=>H7(o(e),{weekStartsOn:t?.weekStartsOn??i,firstWeekContainsDate:t?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1}),getISOWeek:e=>B7(o(e)),differenceInCalendarDays:(e,t)=>k7(o(e),o(t)),differenceInCalendarMonths:(e,t)=>j7(o(e),o(t))}}var N9=e=>e instanceof HTMLElement?e:null,P9=e=>[...e.querySelectorAll(`[data-animated-month]`)??[]],uNe=e=>N9(e.querySelector(`[data-animated-month]`)),F9=e=>N9(e.querySelector(`[data-animated-caption]`)),I9=e=>N9(e.querySelector(`[data-animated-weeks]`)),dNe=e=>N9(e.querySelector(`[data-animated-nav]`)),fNe=e=>N9(e.querySelector(`[data-animated-weekdays]`));function pNe(e,t,{classNames:n,months:r,focused:i,dateLib:a}){let o=(0,R.useRef)(null),s=(0,R.useRef)(r),c=(0,R.useRef)(!1);(0,R.useLayoutEffect)(()=>{let l=s.current;if(s.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||l.length===0||r.length!==l.length)return;let u=a.isSameMonth(r[0].date,l[0].date),d=a.isAfter(r[0].date,l[0].date),f=d?n[u9.caption_after_enter]:n[u9.caption_before_enter],p=d?n[u9.weeks_after_enter]:n[u9.weeks_before_enter],m=o.current,h=e.current.cloneNode(!0);if(h instanceof HTMLElement?(P9(h).forEach(e=>{if(!(e instanceof HTMLElement))return;let t=uNe(e);t&&e.contains(t)&&e.removeChild(t);let n=F9(e);n&&n.classList.remove(f);let r=I9(e);r&&r.classList.remove(p)}),o.current=h):o.current=null,c.current||u||i)return;let g=m instanceof HTMLElement?P9(m):[],_=P9(e.current);if(_?.every(e=>e instanceof HTMLElement)&&g?.every(e=>e instanceof HTMLElement)){c.current=!0;let t=[];e.current.style.isolation=`isolate`;let r=dNe(e.current);r&&(r.style.zIndex=`1`),_.forEach((i,a)=>{let o=g[a];if(!o)return;i.style.position=`relative`,i.style.overflow=`hidden`;let s=F9(i);s&&s.classList.add(f);let l=I9(i);l&&l.classList.add(p);let u=()=>{c.current=!1,e.current&&(e.current.style.isolation=``),r&&(r.style.zIndex=``),s&&s.classList.remove(f),l&&l.classList.remove(p),i.style.position=``,i.style.overflow=``,i.contains(o)&&i.removeChild(o)};t.push(u),o.style.pointerEvents=`none`,o.style.position=`absolute`,o.style.overflow=`hidden`,o.setAttribute(`aria-hidden`,`true`);let m=fNe(o);m&&(m.style.opacity=`0`);let h=F9(o);h&&(h.classList.add(d?n[u9.caption_before_exit]:n[u9.caption_after_exit]),h.addEventListener(`animationend`,u));let _=I9(o);_&&_.classList.add(d?n[u9.weeks_before_exit]:n[u9.weeks_after_exit]),i.insertBefore(o,i.firstChild)})}})}function mNe(e,t,n,r){let i=e[0],a=e[e.length-1],{ISOWeek:o,fixedWeeks:s,broadcastCalendar:c}=n??{},{addDays:l,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:f,endOfISOWeek:p,endOfMonth:m,endOfWeek:h,isAfter:g,startOfBroadcastWeek:_,startOfISOWeek:v,startOfWeek:y}=r,b=c?_(i,r):o?v(i):y(i),x=c?f(a):o?p(m(a)):h(m(a)),S=t&&(c?f(t):o?p(t):h(t)),C=u(S&&g(x,S)?S:x,b),w=d(a,i)+1,T=[];for(let e=0;e<=C;e++){let t=l(b,e);T.push(t)}let E=(c?35:42)*w;if(s&&T.length<E){let e=E-T.length;for(let t=0;t<e;t++){let e=l(T[T.length-1],1);T.push(e)}}return T}function hNe(e){let t=[];return e.reduce((e,n)=>{let r=n.weeks.reduce((e,t)=>e.concat(t.days.slice()),t.slice());return e.concat(r.slice())},t.slice())}function gNe(e,t,n,r){let{numberOfMonths:i=1}=n,a=[];for(let n=0;n<i;n++){let i=r.addMonths(e,n);if(t&&i>t)break;a.push(i)}return a}function L9(e,t,n,r){let{month:i,defaultMonth:a,today:o=r.today(),numberOfMonths:s=1}=e,c=i||a||o,{differenceInCalendarMonths:l,addMonths:u,startOfMonth:d}=r;return n&&l(n,c)<s-1&&(c=u(n,-1*(s-1))),t&&l(c,t)<0&&(c=t),d(c)}function _Ne(e,t,n,r){let{addDays:i,endOfBroadcastWeek:a,endOfISOWeek:o,endOfMonth:s,endOfWeek:c,getISOWeek:l,getWeek:u,startOfBroadcastWeek:d,startOfISOWeek:f,startOfWeek:p}=r,m=e.reduce((e,m)=>{let h=n.broadcastCalendar?d(m,r):n.ISOWeek?f(m):p(m),g=n.broadcastCalendar?a(m):n.ISOWeek?o(s(m)):c(s(m)),_=t.filter(e=>e>=h&&e<=g),v=n.broadcastCalendar?35:42;if(n.fixedWeeks&&_.length<v){let e=t.filter(e=>{let t=v-_.length;return e>g&&e<=i(g,t)});_.push(...e)}let y=new mMe(m,_.reduce((e,t)=>{let i=n.ISOWeek?l(t):u(t),a=e.find(e=>e.weekNumber===i),o=new s9(t,m,r);return a?a.days.push(o):e.push(new hMe(i,[o])),e},[]));return e.push(y),e},[]);return n.reverseMonths?m.reverse():m}function vNe(e,t){let{startMonth:n,endMonth:r}=e,{startOfYear:i,startOfDay:a,startOfMonth:o,endOfMonth:s,addYears:c,endOfYear:l,today:u}=t,d=e.captionLayout===`dropdown`||e.captionLayout===`dropdown-years`;return n?n=o(n):!n&&d&&(n=i(c(e.today??u(),-100))),r?r=s(r):!r&&d&&(r=l(e.today??u())),[n&&a(n),r&&a(r)]}function yNe(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a=1}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:c}=r,l=i?a:1,u=o(e);if(!t||!(c(t,e)<a))return s(u,l)}function bNe(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:c}=r,l=i?a??1:1,u=o(e);if(!t||!(c(u,t)<=0))return s(u,-l)}function xNe(e){return e.reduce((e,t)=>e.concat(t.weeks.slice()),[].slice())}function R9(e,t){let[n,r]=(0,R.useState)(e);return[t===void 0?n:t,r]}function SNe(e,t){let[n,r]=vNe(e,t),{startOfMonth:i,endOfMonth:a}=t,o=L9(e,n,r,t),[s,c]=R9(o,e.month?o:void 0);(0,R.useEffect)(()=>{c(L9(e,n,r,t))},[e.timeZone]);let{months:l,weeks:u,days:d,previousMonth:f,nextMonth:p}=(0,R.useMemo)(()=>{let i=gNe(s,r,{numberOfMonths:e.numberOfMonths},t),o=_Ne(i,mNe(i,e.endMonth?a(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t);return{months:o,weeks:xNe(o),days:hNe(o),previousMonth:bNe(s,n,e,t),nextMonth:yNe(s,r,e,t)}},[t,s.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:m,onMonthChange:h}=e,g=e=>u.some(t=>t.days.some(t=>t.isEqualTo(e))),_=e=>{if(m)return;let t=i(e);n&&t<i(n)&&(t=i(n)),r&&t>i(r)&&(t=i(r)),c(t),h?.(t)};return{months:l,weeks:u,days:d,navStart:n,navEnd:r,previousMonth:f,nextMonth:p,goToMonth:_,goToDay:e=>{g(e)||_(e.date)}}}var z9;(function(e){e[e.Today=0]=`Today`,e[e.Selected=1]=`Selected`,e[e.LastFocused=2]=`LastFocused`,e[e.FocusedModifier=3]=`FocusedModifier`})(z9||={});function B9(e){return!e[c9.disabled]&&!e[c9.hidden]&&!e[c9.outside]}function CNe(e,t,n,r){let i,a=-1;for(let o of e){let e=t(o);B9(e)&&(e[c9.focused]&&a<z9.FocusedModifier?(i=o,a=z9.FocusedModifier):r?.isEqualTo(o)&&a<z9.LastFocused?(i=o,a=z9.LastFocused):n(o.date)&&a<z9.Selected?(i=o,a=z9.Selected):e[c9.today]&&a<z9.Today&&(i=o,a=z9.Today))}return i||=e.find(e=>B9(t(e))),i}function wNe(e,t,n,r,i,a,o){let{ISOWeek:s,broadcastCalendar:c}=a,{addDays:l,addMonths:u,addWeeks:d,addYears:f,endOfBroadcastWeek:p,endOfISOWeek:m,endOfWeek:h,max:g,min:_,startOfBroadcastWeek:v,startOfISOWeek:y,startOfWeek:b}=o,x={day:l,week:d,month:u,year:f,startOfWeek:e=>c?v(e,o):s?y(e):b(e),endOfWeek:e=>c?p(e):s?m(e):h(e)}[e](n,t===`after`?1:-1);return t===`before`&&r?x=g([r,x]):t===`after`&&i&&(x=_([i,x])),x}function V9(e,t,n,r,i,a,o,s=0){if(s>365)return;let c=wNe(e,t,n.date,r,i,a,o),l=!!(a.disabled&&b9(c,a.disabled,o)),u=!!(a.hidden&&b9(c,a.hidden,o)),d=new s9(c,c,o);return!l&&!u?d:V9(e,t,d,r,i,a,o,s+1)}function TNe(e,t,n,r,i){let{autoFocus:a}=e,[o,s]=(0,R.useState)(),c=CNe(t.days,n,r||(()=>!1),o),[l,u]=(0,R.useState)(a?c:void 0);return{isFocusTarget:e=>!!c?.isEqualTo(e),setFocused:u,focused:l,blur:()=>{s(l),u(void 0)},moveFocus:(n,r)=>{if(!l)return;let a=V9(n,r,l,t.navStart,t.navEnd,e,i);a&&(e.disableNavigation&&!t.days.some(e=>e.isEqualTo(a))||(t.goToDay(a),u(a)))}}}function ENe(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=R9(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t,l=e=>s?.some(t=>c(t,e))??!1,{min:u,max:d}=e;return{selected:s,select:(e,t,n)=>{let a=[...s??[]];if(l(e)){if(s?.length===u||r&&s?.length===1)return;a=s?.filter(t=>!c(t,e))}else a=s?.length===d?[e]:[...a,e];return i||o(a),i?.(a,e,t,n),a},isSelected:l}}function DNe(e,t,n=0,r=0,i=!1,a=o9){let{from:o,to:s}=t||{},{isSameDay:c,isAfter:l,isBefore:u}=a,d;if(!o&&!s)d={from:e,to:n>0?void 0:e};else if(o&&!s)d=c(o,e)?n===0?{from:o,to:e}:i?{from:o,to:void 0}:void 0:u(e,o)?{from:e,to:o}:{from:o,to:e};else if(o&&s)if(c(o,e)&&c(s,e))d=i?{from:o,to:s}:void 0;else if(c(o,e))d={from:o,to:n>0?void 0:e};else if(c(s,e))d={from:e,to:n>0?void 0:e};else if(u(e,o))d={from:e,to:s};else if(l(e,o))d={from:o,to:e};else if(l(e,s))d={from:o,to:e};else throw Error(`Invalid range`);if(d?.from&&d?.to){let t=a.differenceInCalendarDays(d.to,d.from);(r>0&&t>r||n>1&&t<n)&&(d={from:e,to:void 0})}return d}function ONe(e,t,n=o9){let r=Array.isArray(t)?t:[t],i=e.from,a=n.differenceInCalendarDays(e.to,e.from),o=Math.min(a,6);for(let e=0;e<=o;e++){if(r.includes(i.getDay()))return!0;i=n.addDays(i,1)}return!1}function H9(e,t,n=o9){return p9(e,t.from,!1,n)||p9(e,t.to,!1,n)||p9(t,e.from,!1,n)||p9(t,e.to,!1,n)}function kNe(e,t,n=o9){let r=Array.isArray(t)?t:[t];if(r.filter(e=>typeof e!=`function`).some(t=>typeof t==`boolean`?t:n.isDate(t)?p9(e,t,!1,n):y9(t,n)?t.some(t=>p9(e,t,!1,n)):h9(t)?t.from&&t.to?H9(e,{from:t.from,to:t.to},n):!1:v9(t)?ONe(e,t.dayOfWeek,n):m9(t)?n.isAfter(t.before,t.after)?H9(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):b9(e.from,t,n)||b9(e.to,t,n):g9(t)||_9(t)?b9(e.from,t,n)||b9(e.to,t,n):!1))return!0;let i=r.filter(e=>typeof e==`function`);if(i.length){let t=e.from,r=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=r;e++){if(i.some(e=>e(t)))return!0;t=n.addDays(t,1)}}return!1}function ANe(e,t){let{disabled:n,excludeDisabled:r,resetOnSelect:i,selected:a,required:o,onSelect:s}=e,[c,l]=R9(a,s?a:void 0),u=s?a:c;return{selected:u,select:(a,c,d)=>{let{min:f,max:p}=e,m;if(a){let e=u?.from,n=u?.to,r=!!e&&!!n,s=!!e&&!!n&&t.isSameDay(e,n)&&t.isSameDay(a,e);m=i&&(r||!u?.from)?!o&&s?void 0:{from:a,to:void 0}:DNe(a,u,f,p,o,t)}return r&&n&&m?.from&&m.to&&kNe({from:m.from,to:m.to},n,t)&&(m.from=a,m.to=void 0),s||l(m),s?.(m,a,c,d),m},isSelected:e=>u&&p9(u,e,!1,t)}}function jNe(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=R9(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t;return{selected:s,select:(e,t,n)=>{let a=e;return!r&&s&&s&&c(e,s)&&(a=void 0),i||o(a),i?.(a,e,t,n),a},isSelected:e=>s?c(s,e):!1}}function MNe(e,t){let n=jNe(e,t),r=ENe(e,t),i=ANe(e,t);switch(e.mode){case`single`:return n;case`multiple`:return r;case`range`:return i;default:return}}function U9(e,t){return e instanceof m7&&e.timeZone===t?e:new m7(e,t)}function W9(e,t,n){if(!n)return U9(e,t);let r=U9(e,t),i=new m7(r.getFullYear(),r.getMonth(),r.getDate(),12,0,0,t);return new Date(i.getTime())}function G9(e,t,n){return typeof e==`boolean`||typeof e==`function`?e:e instanceof Date?W9(e,t,n):Array.isArray(e)?e.map(e=>e instanceof Date?W9(e,t,n):e):h9(e)?{...e,from:e.from?U9(e.from,t):e.from,to:e.to?U9(e.to,t):e.to}:m9(e)?{before:W9(e.before,t,n),after:W9(e.after,t,n)}:g9(e)?{after:W9(e.after,t,n)}:_9(e)?{before:W9(e.before,t,n)}:e}function K9(e,t,n){return e&&(Array.isArray(e)?e.map(e=>G9(e,t,n)):G9(e,t,n))}function NNe(e){let t=e,n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&=U9(t.today,n),t.month&&=U9(t.month,n),t.defaultMonth&&=U9(t.defaultMonth,n),t.startMonth&&=U9(t.startMonth,n),t.endMonth&&=U9(t.endMonth,n),t.mode===`single`&&t.selected?t.selected=U9(t.selected,n):t.mode===`multiple`&&t.selected?t.selected=t.selected?.map(e=>U9(e,n)):t.mode===`range`&&t.selected&&(t.selected={from:t.selected.from?U9(t.selected.from,n):t.selected.from,to:t.selected.to?U9(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=K9(t.disabled,n)),t.hidden!==void 0&&(t.hidden=K9(t.hidden,n)),t.modifiers)){let e={};Object.keys(t.modifiers).forEach(r=>{e[r]=K9(t.modifiers?.[r],n)}),t.modifiers=e}let{components:r,formatters:i,labels:a,dateLib:o,locale:s,classNames:c}=(0,R.useMemo)(()=>{let e={...i9,...t.locale},n=t.broadcastCalendar?1:t.weekStartsOn,r=t.noonSafe&&t.timeZone?lNe(t.timeZone,{weekStartsOn:n,locale:e}):void 0,i=t.dateLib&&r?{...r,...t.dateLib}:t.dateLib??r,a=new a9({locale:e,weekStartsOn:n,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},i);return{dateLib:a,components:WMe(t.components),formatters:tNe(t.formatters),labels:iNe(t.labels,a.options),locale:e,classNames:{...KMe(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:o.today()});let{captionLayout:l,mode:u,navLayout:d,numberOfMonths:f=1,onDayBlur:p,onDayClick:m,onDayFocus:h,onDayKeyDown:g,onDayMouseEnter:_,onDayMouseLeave:v,onNextClick:y,onPrevClick:b,showWeekNumber:x,styles:S}=t,{formatCaption:C,formatDay:w,formatMonthDropdown:T,formatWeekNumber:E,formatWeekNumberHeader:D,formatWeekdayName:O,formatYearDropdown:k}=i,A=SNe(t,o),{days:j,months:M,navStart:N,navEnd:P,previousMonth:F,nextMonth:ee,goToMonth:te}=A,ne=HMe(j,t,N,P,o),{isSelected:re,select:I,selected:ie}=MNe(t,o)??{},{blur:ae,focused:oe,isFocusTarget:se,moveFocus:ce,setFocused:le}=TNe(t,A,ne,re??(()=>!1),o),{labelDayButton:ue,labelGridcell:de,labelGrid:fe,labelMonthDropdown:pe,labelNav:me,labelPrevious:he,labelNext:L,labelWeekday:ge,labelWeekNumber:_e,labelWeekNumberHeader:ve,labelYearDropdown:ye}=a,be=(0,R.useMemo)(()=>sNe(o,t.ISOWeek,t.broadcastCalendar,t.today),[o,t.ISOWeek,t.broadcastCalendar,t.today]),xe=u!==void 0||m!==void 0,Se=(0,R.useCallback)(()=>{F&&(te(F),b?.(F))},[F,te,b]),Ce=(0,R.useCallback)(()=>{ee&&(te(ee),y?.(ee))},[te,ee,y]),we=(0,R.useCallback)((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),le(e),!t.disabled&&(I?.(e.date,t,n),m?.(e.date,t,n))},[I,m,le]),Te=(0,R.useCallback)((e,t)=>n=>{le(e),h?.(e.date,t,n)},[h,le]),Ee=(0,R.useCallback)((e,t)=>n=>{ae(),p?.(e.date,t,n)},[ae,p]),De=(0,R.useCallback)((e,n)=>r=>{let i={ArrowLeft:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`after`:`before`],ArrowRight:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`before`:`after`],ArrowDown:[r.shiftKey?`year`:`week`,`after`],ArrowUp:[r.shiftKey?`year`:`week`,`before`],PageUp:[r.shiftKey?`year`:`month`,`before`],PageDown:[r.shiftKey?`year`:`month`,`after`],Home:[`startOfWeek`,`before`],End:[`endOfWeek`,`after`]};if(i[r.key]){r.preventDefault(),r.stopPropagation();let[e,t]=i[r.key];ce(e,t)}g?.(e.date,n,r)},[ce,g,t.dir]),Oe=(0,R.useCallback)((e,t)=>n=>{_?.(e.date,t,n)},[_]),ke=(0,R.useCallback)((e,t)=>n=>{v?.(e.date,t,n)},[v]),Ae=(0,R.useCallback)((e,t)=>n=>{let r=Number(n.target.value),i=o.setMonth(o.startOfMonth(e),r);te(o.addMonths(i,-t))},[o,te]),je=(0,R.useCallback)((e,t)=>n=>{let r=Number(n.target.value),i=o.setYear(o.startOfMonth(e),r);te(o.addMonths(i,-t))},[o,te]),{className:Me,style:Ne}=(0,R.useMemo)(()=>({className:[c[$.Root],t.className].filter(Boolean).join(` `),style:{...S?.[$.Root],...t.style}}),[c,t.className,t.style,S]),Pe=GMe(t),Fe=e=>{let t=S?.[$.Dropdown],n=S?.[e];if(!(!t&&!n))return{...t,...n}},Ie=(0,R.useRef)(null);pNe(Ie,!!t.animate,{classNames:c,months:M,focused:oe,dateLib:o});let Le={dayPickerProps:t,selected:ie,select:I,isSelected:re,months:M,nextMonth:ee,previousMonth:F,goToMonth:te,getModifiers:ne,components:r,classNames:c,styles:S,labels:a,formatters:i};return R.createElement(d9.Provider,{value:Le},R.createElement(r.Root,{rootRef:t.animate?Ie:void 0,className:Me,style:Ne,dir:t.dir,id:t.id,lang:t.lang??s.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t[`aria-label`],"aria-labelledby":t[`aria-labelledby`],...Pe},R.createElement(r.Months,{className:c[$.Months],style:S?.[$.Months]},!t.hideNavigation&&!d&&R.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[$.Nav],style:S?.[$.Nav],"aria-label":me(),onPreviousClick:Se,onNextClick:Ce,previousMonth:F,nextMonth:ee}),M.map((e,n)=>{let a=t.reverseMonths?M.length-1-n:n;return R.createElement(r.Month,{"data-animated-month":t.animate?`true`:void 0,className:c[$.Month],style:S?.[$.Month],key:n,displayIndex:n,calendarMonth:e},d===`around`&&!t.hideNavigation&&n===0&&R.createElement(r.PreviousMonthButton,{type:`button`,className:c[$.PreviousMonthButton],style:S?.[$.PreviousMonthButton],tabIndex:F?void 0:-1,"aria-disabled":F?void 0:!0,"aria-label":he(F),onClick:Se,"data-animated-button":t.animate?`true`:void 0},R.createElement(r.Chevron,{disabled:F?void 0:!0,className:c[$.Chevron],style:S?.[$.Chevron],orientation:t.dir===`rtl`?`right`:`left`})),R.createElement(r.MonthCaption,{"data-animated-caption":t.animate?`true`:void 0,className:c[$.MonthCaption],style:S?.[$.MonthCaption],calendarMonth:e,displayIndex:n},l?.startsWith(`dropdown`)?R.createElement(r.DropdownNav,{className:c[$.Dropdowns],style:S?.[$.Dropdowns]},(()=>{let n=l===`dropdown`||l===`dropdown-months`?R.createElement(r.MonthsDropdown,{key:`month`,className:c[$.MonthsDropdown],"aria-label":pe(),disabled:!!t.disableNavigation,onChange:Ae(e.date,a),options:aNe(e.date,N,P,i,o),style:Fe($.MonthsDropdown),value:o.getMonth(e.date)}):R.createElement(`span`,{key:`month`},T(e.date,o)),s=l===`dropdown`||l===`dropdown-years`?R.createElement(r.YearsDropdown,{key:`year`,className:c[$.YearsDropdown],"aria-label":ye(o.options),disabled:!!t.disableNavigation,onChange:je(e.date,a),options:cNe(N,P,i,o,!!t.reverseYears),style:Fe($.YearsDropdown),value:o.getYear(e.date)}):R.createElement(`span`,{key:`year`},k(e.date,o));return o.getMonthYearOrder()===`year-first`?[s,n]:[n,s]})(),R.createElement(`span`,{role:`status`,"aria-live":`polite`,style:{border:0,clip:`rect(0 0 0 0)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`,wordWrap:`normal`}},C(e.date,o.options,o))):R.createElement(r.CaptionLabel,{className:c[$.CaptionLabel],style:S?.[$.CaptionLabel],role:`status`,"aria-live":`polite`},C(e.date,o.options,o))),d===`around`&&!t.hideNavigation&&n===f-1&&R.createElement(r.NextMonthButton,{type:`button`,className:c[$.NextMonthButton],style:S?.[$.NextMonthButton],tabIndex:ee?void 0:-1,"aria-disabled":ee?void 0:!0,"aria-label":L(ee),onClick:Ce,"data-animated-button":t.animate?`true`:void 0},R.createElement(r.Chevron,{disabled:ee?void 0:!0,className:c[$.Chevron],style:S?.[$.Chevron],orientation:t.dir===`rtl`?`left`:`right`})),n===f-1&&d===`after`&&!t.hideNavigation&&R.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[$.Nav],style:S?.[$.Nav],"aria-label":me(),onPreviousClick:Se,onNextClick:Ce,previousMonth:F,nextMonth:ee}),R.createElement(r.MonthGrid,{role:`grid`,"aria-multiselectable":u===`multiple`||u===`range`,"aria-label":fe(e.date,o.options,o)||void 0,className:c[$.MonthGrid],style:S?.[$.MonthGrid]},!t.hideWeekdays&&R.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?`true`:void 0,className:c[$.Weekdays],style:S?.[$.Weekdays]},x&&R.createElement(r.WeekNumberHeader,{"aria-label":ve(o.options),className:c[$.WeekNumberHeader],style:S?.[$.WeekNumberHeader],scope:`col`},D()),be.map(e=>R.createElement(r.Weekday,{"aria-label":ge(e,o.options,o),className:c[$.Weekday],key:String(e),style:S?.[$.Weekday],scope:`col`},O(e,o.options,o)))),R.createElement(r.Weeks,{"data-animated-weeks":t.animate?`true`:void 0,className:c[$.Weeks],style:S?.[$.Weeks]},e.weeks.map(e=>R.createElement(r.Week,{className:c[$.Week],key:e.weekNumber,style:S?.[$.Week],week:e},x&&R.createElement(r.WeekNumber,{week:e,style:S?.[$.WeekNumber],"aria-label":_e(e.weekNumber,{locale:s}),className:c[$.WeekNumber],scope:`row`,role:`rowheader`},E(e.weekNumber,o)),e.days.map(e=>{let{date:n}=e,i=ne(e);if(i[c9.focused]=!i.hidden&&!!oe?.isEqualTo(e),i[l9.selected]=re?.(n)||i.selected,h9(ie)){let{from:e,to:t}=ie;i[l9.range_start]=!!(e&&t&&o.isSameDay(n,e)),i[l9.range_end]=!!(e&&t&&o.isSameDay(n,t)),i[l9.range_middle]=p9(ie,n,!0,o)}let a=oNe(i,S,t.modifiersStyles),s=UMe(i,c,t.modifiersClassNames),l=!xe&&!i.hidden?de(n,i,o.options,o):void 0;return R.createElement(r.Day,{key:`${e.isoDate}_${e.displayMonthId}`,day:e,modifiers:i,className:s.join(` `),style:a,role:`gridcell`,"aria-selected":i.selected||void 0,"aria-label":l,"data-day":e.isoDate,"data-month":e.outside?e.dateMonthId:void 0,"data-selected":i.selected||void 0,"data-disabled":i.disabled||void 0,"data-hidden":i.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":i.focused||void 0,"data-today":i.today||void 0},!i.hidden&&xe?R.createElement(r.DayButton,{className:c[$.DayButton],style:S?.[$.DayButton],type:`button`,day:e,modifiers:i,disabled:!i.focused&&i.disabled||void 0,"aria-disabled":i.focused&&i.disabled||void 0,tabIndex:se(e)?0:-1,"aria-label":ue(n,i,o.options,o),onClick:we(e,i),onBlur:Ee(e,i
406),onFocus:Te(e,i),onKeyDown:De(e,i),onMouseEnter:Oe(e,i),onMouseLeave:ke(e,i)},w(n,o.options,o)):!i.hidden&&w(e.date,o.options,o))}))))))})),t.footer&&R.createElement(r.Footer,{className:c[$.Footer],style:S?.[$.Footer],role:`status`,"aria-live":`polite`},t.footer)))}var PNe={...Nje,labels:{labelDayButton:(e,t,n,r)=>{let i=(r??new a9(n)).format(e,`PPPP`);return t.today&&(i=`اÙÙÙÙ
Ø ${i}`),t.selected&&(i=`${i}Ø Ù
ØØ¯Ø¯`),i},labelMonthDropdown:`اختر Ø§ÙØ´Ùر`,labelNext:`Ø§Ø°ÙØ¨ Ø¥ÙÙ Ø§ÙØ´Ùر Ø§ÙØªØ§ÙÙ`,labelPrevious:`Ø§Ø°ÙØ¨ Ø¥ÙÙ Ø§ÙØ´Ùر Ø§ÙØ³Ø§Ø¨Ù`,labelWeekNumber:e=>`Ø§ÙØ£Ø³Ø¨Ùع ${e}`,labelYearDropdown:`اختر Ø§ÙØ³ÙØ©`,labelGrid:(e,t,n)=>(n??new a9(t)).formatMonthYear(e),labelGridcell:(e,t,n,r)=>{let i=(r??new a9(n)).format(e,`PPPP`);return t?.today&&(i=`اÙÙÙÙ
Ø ${i}`),i},labelNav:`Ø´Ø±ÙØ· Ø§ÙØªÙÙÙ`,labelWeekNumberHeader:`رÙÙ
Ø§ÙØ£Ø³Ø¨Ùع`,labelWeekday:(e,t,n)=>(n??new a9(t)).format(e,`cccc`)}},FNe={...Vje,labels:{labelDayButton:(e,t,n,r)=>{let i=(r??new a9(n)).format(e,`PPPP`);return t.today&&(i=`Heute, ${i}`),t.selected&&(i=`${i}, ausgewählt`),i},labelMonthDropdown:`Monat auswählen`,labelNext:`Zum nächsten Monat`,labelPrevious:`Zum vorherigen Monat`,labelWeekNumber:e=>`Woche ${e}`,labelYearDropdown:`Jahr auswählen`,labelGrid:(e,t,n)=>(n??new a9(t)).formatMonthYear(e),labelGridcell:(e,t,n,r)=>{let i=(r??new a9(n)).format(e,`PPPP`);return t?.today&&(i=`Heute, ${i}`),i},labelNav:`Navigationsleiste`,labelWeekNumberHeader:`Wochennummer`,labelWeekday:(e,t,n)=>(n??new a9(t)).format(e,`cccc`)}},INe={...qje,labels:{labelDayButton:(e,t,n,r)=>{let i=(r??new a9(n)).format(e,`PPPP`);return t.today&&(i=`Hoy, ${i}`),t.selected&&(i=`${i}, seleccionado`),i},labelMonthDropdown:`Elegir el mes`,labelNext:`Ir al mes siguiente`,labelPrevious:`Ir al mes anterior`,labelWeekNumber:e=>`Semana ${e}`,labelYearDropdown:`Elegir el año`,labelGrid:(e,t,n)=>(n??new a9(t)).formatMonthYear(e),labelGridcell:(e,t,n,r)=>{let i=(r??new a9(n)).format(e,`PPPP`);return t?.today&&(i=`Hoy, ${i}`),i},labelNav:`Barra de navegación`,labelWeekNumberHeader:`Número de semana`,labelWeekday:(e,t,n)=>(n??new a9(t)).format(e,`cccc`)}},LNe={...Qje,labels:{labelDayButton:(e,t,n,r)=>{let i=(r??new a9(n)).format(e,`PPPP`);return t.today&&(i=`Hari ini, ${i}`),t.selected&&(i=`${i}, dipilih`),i},labelMonthDropdown:`Pilih bulan`,labelNext:`Ke bulan berikutnya`,labelPrevious:`Ke bulan sebelumnya`,labelWeekNumber:e=>`Minggu ${e}`,labelYearDropdown:`Pilih tahun`,labelGrid:(e,t,n)=>(n??new a9(t)).formatMonthYear(e),labelGridcell:(e,t,n,r)=>{let i=(r??new a9(n)).format(e,`PPPP`);return t?.today&&(i=`Hari ini, ${i}`),i},labelNav:`Bilah navigasi`,labelWeekNumberHeader:`Nomor minggu`,labelWeekday:(e,t,n)=>(n??new a9(t)).format(e,`cccc`)}},RNe={...rMe,labels:{labelDayButton:(e,t,n,r)=>{let i=(r??new a9(n)).format(e,`PPPP`);return t.today&&(i=`วัà¸à¸à¸µà¹, ${i}`),t.selected&&(i=`${i}, à¹à¸¥à¸·à¸à¸à¹à¸¥à¹à¸§`),i},labelMonthDropdown:`à¹à¸¥à¸·à¸à¸à¹à¸à¸·à¸à¸`,labelNext:`à¹à¸à¹à¸à¸·à¸à¸à¸à¸±à¸à¹à¸`,labelPrevious:`à¹à¸à¹à¸à¸·à¸à¸à¸à¹à¸à¸à¸«à¸à¹à¸²`,labelWeekNumber:e=>`สัà¸à¸à¸²à¸«à¹ ${e}`,labelYearDropdown:`à¹à¸¥à¸·à¸à¸à¸à¸µ`,labelGrid:(e,t,n)=>(n??new a9(t)).formatMonthYear(e),labelGridcell:(e,t,n,r)=>{let i=(r??new a9(n)).format(e,`PPPP`);return t?.today&&(i=`วัà¸à¸à¸µà¹, ${i}`),i},labelNav:`à¹à¸à¸à¸à¸³à¸à¸²à¸`,labelWeekNumberHeader:`หมายà¹à¸¥à¸à¸ªà¸±à¸à¸à¸²à¸«à¹`,labelWeekday:(e,t,n)=>(n??new a9(t)).format(e,`cccc`)}},zNe={...cMe,labels:{labelDayButton:(e,t,n,r)=>{let i=(r??new a9(n)).format(e,`PPPP`);return t.today&&(i=`ä»å¤©ï¼${i}`),t.selected&&(i=`${i}ï¼å·²éæ©`),i},labelMonthDropdown:`éæ©æä»½`,labelNext:`åå¾ä¸ä¸ªæ`,labelPrevious:`åå¾ä¸ä¸ªæ`,labelWeekNumber:e=>`第 ${e} å¨`,labelYearDropdown:`鿩年份`,labelGrid:(e,t,n)=>(n??new a9(t)).formatMonthYear(e),labelGridcell:(e,t,n,r)=>{let i=(r??new a9(n)).format(e,`PPPP`);return t?.today&&(i=`ä»å¤©ï¼${i}`),i},labelNav:`å¯¼èªæ `,labelWeekNumberHeader:`卿°`,labelWeekday:(e,t,n)=>(n??new a9(t)).format(e,`cccc`)}},BNe={...pMe,labels:{labelDayButton:(e,t,n,r)=>{let i=(r??new a9(n)).format(e,`PPPP`);return t.today&&(i=`ä»å¤©ï¼${i}`),t.selected&&(i=`${i}ï¼å·²é¸å`),i},labelMonthDropdown:`鏿æä»½`,labelNext:`åå¾ä¸åæ`,labelPrevious:`åå¾ä¸åæ`,labelWeekNumber:e=>`第 ${e} é±`,labelYearDropdown:`鏿年份`,labelGrid:(e,t,n)=>(n??new a9(t)).formatMonthYear(e),labelGridcell:(e,t,n,r)=>{let i=(r??new a9(n)).format(e,`PPPP`);return t?.today&&(i=`ä»å¤©ï¼${i}`),i},labelNav:`å°è¦½å`,labelWeekNumberHeader:`鱿¸`,labelWeekday:(e,t,n)=>(n??new a9(t)).format(e,`cccc`)}},VNe=216,HNe=36,UNe=`off`,q9=(0,R.createContext)(null);q9.displayName=`PickerDataContext`;function J9(e){let t=(0,R.useContext)(q9);if(t===null){let t=Error(`<${e} /> is missing a parent <Picker /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,J9),t}return t}var Y9=(0,R.createContext)(null);Y9.displayName=`PickerActionsContext`;function X9(e){let t=(0,R.useContext)(Y9);if(t===null){let t=Error(`<${e} /> is missing a parent <Picker /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,X9),t}return t}function WNe(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),i=t(n);if(r===null||i===null)return 0;let a=r.compareDocumentPosition(i);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function GNe(e,t){switch(t.type){case`REGISTER_OPTION`:{let{key:n,option:r}=t,i=[...e[n]||[],r];return i=WNe(i,e=>e.element.current),{...e,[n]:i}}case`UNREGISTER_OPTION`:{let{key:n,option:r}=t;return{...e,[n]:(e[n]||[]).filter(e=>e!==r)}}default:throw Error(`Unknown action: ${t.type}`)}}function KNe(e){let{style:t,children:n,value:r,onChange:i,height:a=VNe,itemHeight:o=HNe,wheelMode:s=UNe,...c}=e,l=(0,R.useMemo)(()=>({height:o,marginTop:-(o/2),position:`absolute`,top:`50%`,left:0,width:`100%`,pointerEvents:`none`}),[o]),u=(0,R.useMemo)(()=>({height:`${a}px`,position:`relative`,display:`flex`,justifyContent:`center`,overflow:`hidden`,maskImage:`linear-gradient(to top, transparent, transparent 5%, white 20%, white 80%, transparent 95%, transparent)`,WebkitMaskImage:`linear-gradient(to top, transparent, transparent 5%, white 20%, white 80%, transparent 95%, transparent)`}),[a]),[d,f]=(0,R.useReducer)(GNe,{}),p=(0,R.useMemo)(()=>({height:a,itemHeight:o,wheelMode:s,value:r,optionGroups:d}),[a,o,r,d,s]),m=(0,R.useCallback)((e,t)=>r[e]===t?!1:(i({...r,[e]:t},e),!0),[i,r]),h=(0,R.useCallback)((e,t)=>(f({type:`REGISTER_OPTION`,key:e,option:t}),()=>f({type:`UNREGISTER_OPTION`,key:e,option:t})),[]),g=(0,R.useMemo)(()=>({registerOption:h,change:m}),[h,m]);return(0,He.jsxs)(`div`,{style:{...u,...t},...c,children:[(0,He.jsx)(Y9.Provider,{value:g,children:(0,He.jsx)(q9.Provider,{value:p,children:n})}),(0,He.jsxs)(`div`,{style:l,children:[(0,He.jsx)(`div`,{style:{position:`absolute`,top:0,bottom:`auto`,left:0,right:`auto`,width:`100%`,height:`1px`,background:`#d9d9d9`,transform:`scaleY(0.5)`}}),(0,He.jsx)(`div`,{style:{position:`absolute`,top:`auto`,bottom:0,left:0,right:`auto`,width:`100%`,height:`1px`,background:`#d9d9d9`,transform:`scaleY(0.5)`}})]})]})}var Z9=(0,R.createContext)(null);Z9.displayName=`PickerColumnDataContext`;function Q9(e){let t=(0,R.useContext)(Z9);if(t===null){let t=Error(`<${e} /> is missing a parent <Picker.Column /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Q9),t}return t}function qNe({style:e,children:t,name:n,...r}){let{height:i,itemHeight:a,wheelMode:o,value:s,optionGroups:c}=J9(`Picker.Column`),l=(0,R.useMemo)(()=>s[n],[s,n]),u=(0,R.useMemo)(()=>c[n]||[],[n,c]),d=(0,R.useMemo)(()=>{let e=u.findIndex(e=>e.value===l);return e<0&&(e=0),e},[u,l]),f=(0,R.useMemo)(()=>i/2-a*u.length+a/2,[i,a,u]),p=(0,R.useMemo)(()=>i/2-a/2,[i,a]),[m,h]=(0,R.useState)(0);(0,R.useEffect)(()=>{h(i/2-a/2-d*a)},[i,a,d]);let g=X9(`Picker.Column`),_=(0,R.useRef)(m);_.current=m;let v=(0,R.useCallback)(()=>{let e=0,t=_.current;e=t>=p?0:t<=f?u.length-1:-Math.round((t-p)/a),g.change(n,u[e].value)||h(i/2-a/2-e*a)},[g,i,a,n,p,f,u]),[y,b]=(0,R.useState)(0),[x,S]=(0,R.useState)(!1),[C,w]=(0,R.useState)(0),T=(0,R.useCallback)(e=>{e<f?e=f-(f-e)**.8:e>p&&(e=p+(e-p)**.8),h(e)},[p,f]),E=(0,R.useCallback)(e=>{w(e.targetTouches[0].pageY),b(m)},[m]),D=(0,R.useCallback)(e=>{e.cancelable&&e.preventDefault(),x||S(!0),T(y+e.targetTouches[0].pageY-C)},[x,y,C,T]),O=(0,R.useCallback)(()=>{x&&(S(!1),w(0),b(0),v())},[v,x]),k=(0,R.useCallback)(()=>{x&&(S(!1),w(0),h(y),b(0))},[x,y]),A=(0,R.useRef)(null),j=(0,R.useCallback)(e=>{if(e.deltaY===0)return;let t=e.deltaY*.1;Math.abs(t)<a&&(t=a*Math.sign(t)),o===`normal`&&(t=-t),T(m+t)},[a,m,T,o]),M=(0,R.useCallback)(()=>{v()},[v]),N=(0,R.useCallback)(e=>{o!==`off`&&(e.cancelable&&e.preventDefault(),j(e),A.current&&clearTimeout(A.current),A.current=setTimeout(()=>{M()},200))},[M,j,A,o]),P=(0,R.useRef)(null);(0,R.useEffect)(()=>{let e=P.current;return e&&(e.addEventListener(`touchmove`,D,{passive:!1}),e.addEventListener(`wheel`,N,{passive:!1})),()=>{e&&(e.removeEventListener(`touchmove`,D),e.removeEventListener(`wheel`,N))}},[D,N]);let F=(0,R.useMemo)(()=>({flex:`1 1 0%`,maxHeight:`100%`,transitionProperty:`transform`,transitionTimingFunction:`cubic-bezier(0, 0, 0.2, 1)`,transitionDuration:x?`0ms`:`300ms`,transform:`translate3d(0, ${m}px, 0)`}),[m,x]),ee=(0,R.useMemo)(()=>({key:n}),[n]);return(0,He.jsx)(`div`,{style:{...F,...e},ref:P,onTouchStart:E,onTouchEnd:O,onTouchCancel:k,...r,children:(0,He.jsx)(Z9.Provider,{value:ee,children:t})})}function JNe(e){return typeof e==`function`}function YNe({style:e,children:t,value:n,...r}){let i=(0,R.useRef)(null),{itemHeight:a,value:o}=J9(`Picker.Item`),s=X9(`Picker.Item`),{key:c}=Q9(`Picker.Item`);(0,R.useEffect)(()=>s.registerOption(c,{value:n,element:i}),[c,s,n]);let l=(0,R.useMemo)(()=>({height:`${a}px`,display:`flex`,justifyContent:`center`,alignItems:`center`}),[a]),u=(0,R.useCallback)(()=>{s.change(c,n)},[s,c,n]);return(0,He.jsx)(`div`,{style:{...l,...e},ref:i,onClick:u,...r,children:JNe(t)?t({selected:o[c]===n}):t})}var $9=KNe;$9.Column=qNe,$9.Item=YNe;export{xi as $,Pte as A,Ate as B,Sde as C,l as Ct,ng as D,b_ as E,Ms as F,Os as G,bte as H,Ote as I,ss as J,Cs as K,Ete as L,kte as M,wte as N,sse as O,jte as P,Si as Q,Mte as R,wfe as S,d as St,tde as T,ks as U,yte as V,Ds as W,es as X,ns as Y,No as Z,Tge as _,at as _t,LNe as a,or as at,fme as b,Ve as bt,PNe as c,jt as ct,wAe as d,vn as dt,di as et,p5 as f,bn as ft,Uwe as g,ot as gt,N8 as h,st as ht,RNe as i,rr as it,Ite as j,Jie as k,NNe as l,dn as lt,e5 as m,dt as mt,BNe as n,Mr as nt,INe as o,Aee as ot,c5 as p,mr as pt,xs as q,zNe as r,Er as rt,FNe as s,jee as st,$9 as t,Fr as tt,i9 as u,mn as ut,$H as v,Ge as vt,Pde as w,s as wt,CD as x,ze as xt,JV as y,We as yt,Fte as z};
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.