@tryghost/comments-ui 1.6.217 → 1.6.219

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
- (function(e){typeof define==`function`&&define.amd?define([],e):e()})(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),u=o(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),d=o((e=>{var t=u(),n=60103,r=60106;e.Fragment=60107,e.StrictMode=60108,e.Profiler=60114;var i=60109,a=60110,o=60112;e.Suspense=60113;var s=60115,c=60116;if(typeof Symbol==`function`&&Symbol.for){var l=Symbol.for;n=l(`react.element`),r=l(`react.portal`),e.Fragment=l(`react.fragment`),e.StrictMode=l(`react.strict_mode`),e.Profiler=l(`react.profiler`),i=l(`react.provider`),a=l(`react.context`),o=l(`react.forward_ref`),e.Suspense=l(`react.suspense`),s=l(`react.memo`),c=l(`react.lazy`)}var d=typeof Symbol==`function`&&Symbol.iterator;function f(e){return typeof e!=`object`||!e?null:(e=d&&e[d]||e[`@@iterator`],typeof e==`function`?e:null)}function p(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h={};function g(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(p(85));this.updater.enqueueSetState(this,e,t,`setState`)},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function _(){}_.prototype=g.prototype;function v(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}var y=v.prototype=new _;y.constructor=v,t(y,g.prototype),y.isPureReactComponent=!0;var b={current:null},x=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var i,a={},o=null,s=null;if(t!=null)for(i in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=``+t.key),t)x.call(t,i)&&!S.hasOwnProperty(i)&&(a[i]=t[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:n,type:e,key:o,ref:s,props:a,_owner:b.current}}function w(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function T(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function ee(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var te=/\/+/g;function E(e,t){return typeof e==`object`&&e&&e.key!=null?ee(``+e.key):t.toString(36)}function D(e,t,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`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case n:case r:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+E(c,0):a,Array.isArray(o)?(i=``,e!=null&&(i=e.replace(te,`$&/`)+`/`),D(o,t,i,``,function(e){return e})):o!=null&&(T(o)&&(o=w(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(te,`$&/`)+`/`)+e)),t.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,Array.isArray(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+E(s,l);c+=D(s,t,i,u,o)}else if(u=f(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+E(s,l++),c+=D(s,t,i,u,o);else if(s===`object`)throw t=``+e,Error(p(31,t===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:t));return c}function ne(e,t,n){if(e==null)return e;var r=[],i=0;return D(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function re(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(t){e._status===0&&(t=t.default,e._status=1,e._result=t)},function(t){e._status===0&&(e._status=2,e._result=t)})}if(e._status===1)return e._result;throw e._result}var ie={current:null};function O(){var e=ie.current;if(e===null)throw Error(p(321));return e}var ae={ReactCurrentDispatcher:ie,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:b,IsSomeRendererActing:{current:!1},assign:t};e.Children={map:ne,forEach:function(e,t,n){ne(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ne(e,function(){t++}),t},toArray:function(e){return ne(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error(p(143));return e}},e.Component=g,e.PureComponent=v,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ae,e.cloneElement=function(e,r,i){if(e==null)throw Error(p(267,e));var a=t({},e.props),o=e.key,s=e.ref,c=e._owner;if(r!=null){if(r.ref!==void 0&&(s=r.ref,c=b.current),r.key!==void 0&&(o=``+r.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in r)x.call(r,u)&&!S.hasOwnProperty(u)&&(a[u]=r[u]===void 0&&l!==void 0?l[u]:r[u])}var u=arguments.length-2;if(u===1)a.children=i;else if(1<u){l=Array(u);for(var d=0;d<u;d++)l[d]=arguments[d+2];a.children=l}return{$$typeof:n,type:e.type,key:o,ref:s,props:a,_owner:c}},e.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:a,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:i,_context:e},e.Consumer=e},e.createElement=C,e.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:o,render:e}},e.isValidElement=T,e.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:re}},e.memo=function(e,t){return{$$typeof:s,type:e,compare:t===void 0?null:t}},e.useCallback=function(e,t){return O().useCallback(e,t)},e.useContext=function(e,t){return O().useContext(e,t)},e.useDebugValue=function(){},e.useEffect=function(e,t){return O().useEffect(e,t)},e.useImperativeHandle=function(e,t,n){return O().useImperativeHandle(e,t,n)},e.useLayoutEffect=function(e,t){return O().useLayoutEffect(e,t)},e.useMemo=function(e,t){return O().useMemo(e,t)},e.useReducer=function(e,t,n){return O().useReducer(e,t,n)},e.useRef=function(e){return O().useRef(e)},e.useState=function(e){return O().useState(e)},e.version=`17.0.2`})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{u();var t=f(),n=60103;if(e.Fragment=60107,typeof Symbol==`function`&&Symbol.for){var r=Symbol.for;n=r(`react.element`),e.Fragment=r(`react.fragment`)}var i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)a.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:i.current}}e.jsx=s,e.jsxs=s})),m=o(((e,t)=>{t.exports=p()}))(),h=({adminUrl:e,onLoad:t})=>(0,m.jsx)(`iframe`,{"data-frame":`admin-auth`,src:e+`auth-frame/`,style:{display:`none`},title:`auth-frame`,onLoad:t}),g=l(o(((e,t)=>{var n=function(e){return e instanceof RegExp},r=function(e){var t=/[\\^$.*+?()[\]{}|]/g,n=RegExp(t.source);return e&&n.test(e)?e.replace(t,`\\$&`):e},i=function(e){return typeof e==`string`},a=function(e){var t=[];return e.forEach(function(e){Array.isArray(e)?t=t.concat(e):t.push(e)}),t};function o(e,t,a,o=null){var s=0,c=0;if(e===``)return e;if(!e||!i(e))throw TypeError(`First argument to react-string-replace#replaceString must be a string`);var l=t;n(l)||(l=RegExp(`(`+r(l)+`)`,`gi`));for(var u=e.split(l),d=1,f=u.length;d<f&&!(Number.isInteger(o)&&(o*2<d||o<1));d+=2){if(u[d]===void 0||u[d-1]===void 0){console.warn(`reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.`);continue}c=u[d].length,s+=u[d-1].length,u[d]=a(u[d],(d-1)/2,s),s+=c}return u}t.exports=function(e,t,s,c=null){return Array.isArray(e)||(e=[e]),a(e.map(function(e){var a;if(i(e))if(Number.isInteger(c)&&c>0){a=o(e,t,s,c);var l=n(t)?t:RegExp(`(`+r(t)+`)`,`gi`);c-=(e.match(l)||[]).length}else a=o(e,t,s,c);else a=e;return a}))}}))(),1),_=`ghost-comments-`;function v(e){return`#${_}${e}`}function y(){return`#ghost-comments`}function b(e){let t=RegExp(`^#${_}([a-f0-9]+)$`,`i`),n=e.match(t);return n?n[1]:null}function x(e){return e!==0&&!e?``:e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,`,`)}function S(e,t){let n=new Date(e),r=new Date;if(isNaN(n.getTime()))return t(`Just now`);let i=Math.round((r.getTime()-n.getTime())/1e3);if(i<60)return t(`Just now`);let a=Math.round(i/60);if(a===1)return t(`One min ago`);if(a<60)return t(`{amount} mins ago`,{amount:a});let o=Math.round(a/60);if(o===1)return t(`One hour ago`);let s=new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate())),c=new Date(Date.UTC(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate())),l=Math.floor((c.getTime()-s.getTime())/(1e3*60*60*24));if(l===1)return t(`Yesterday`);if(l>1){let e=n.getDate(),t=n.toLocaleString(`en-us`,{month:`short`});return n.getFullYear()===r.getFullYear()?`${e} ${t}`:`${e} ${t} ${n.getFullYear()}`}return t(`{amount} hrs ago`,{amount:o})}function C(e){let t=new Date(e);return`${t.toLocaleDateString(`en-us`,{day:`2-digit`})} ${t.toLocaleString(`en-us`,{month:`short`})} ${t.getFullYear()} ${(t.getHours()<10?`0`:``)+t.getHours()}:${(t.getMinutes()<10?`0`:``)+t.getMinutes()}`}function w(e){if(!e)return``;let t=e.split(` `);return t.length===0?``:t.length===1?t[0].substring(0,1).toLocaleUpperCase():t[0].substring(0,1).toLocaleUpperCase()+t[t.length-1].substring(0,1).toLocaleUpperCase()}function T(e,t){return e?e.name?e.name:t(`Anonymous`):t(`Deleted member`)}function ee(e,t){return T(e.member,t)}function te(){return Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<480}var E=e=>{let t=0,n=e.ownerDocument.defaultView;for(;n&&n!==window;){let e=n.parent;for(let r=0;r<e.frames.length;r++)if(e.frames[r]===n){for(let r of e.document.getElementsByTagName(`iframe`))if(r.contentWindow===n){let e=r.getBoundingClientRect();t+=e.top+n.pageYOffset}n=e;break}}return e.getBoundingClientRect().top+window.pageYOffset+t},D=e=>{let t=E(e);return(t+(t+e.offsetHeight))/2-window.innerHeight/2},ne=e=>{let t=e.offsetHeight,n=E(e),r=n+t,i=window.innerHeight,a=window.scrollY,o=a+i;(n-64<a||r+64>o)&&window.scrollTo({top:D(e),left:0,behavior:`smooth`})},re=e=>{window.scrollTo({top:D(e),left:0,behavior:`auto`})};function ie(e){let t=e.html??``,n=document.createElement(`div`);n.innerHTML=t,n.querySelectorAll(`script, style, link, meta, noscript, title`).forEach(e=>e.remove()),n.querySelectorAll(`blockquote`).forEach(e=>e.remove());let r=n.textContent||``;return r=r.replace(`
2
- `,` `),r=r.replace(/\s+/g,` `),r=r.trim(),r.substring(0,100)}var O=l(f(),1),ae=O.createContext({});ae.Provider;var k=()=>(0,O.useContext)(ae),oe=()=>{let e=k().dispatchAction;return t=>{e(`setOrder`,{order:t})}},se=()=>{try{return k().labs||{}}catch{return{}}},ce=({isFirst:e,isPaid:t,commentId:n})=>{let{accentColor:r,publication:i,member:a,t:o,commentCount:s}=k(),c={backgroundColor:r},l={color:r},u=o(s===0?`Start the conversation`:`Join the discussion`),d=()=>{window.location.href=t&&a?`#/portal/account/plans`:`#/portal/signup`},f=()=>{if(n){let e=new URL(window.location.href);e.hash=v(n),window.location.href=`#/portal/signin?redirect=${encodeURIComponent(e.toString())}`;return}window.location.href=`#/portal/signin`},p=(0,g.default)(o(t?`Become a paid member of {publication} to start commenting.`:`Become a member of {publication} to start commenting.`),`{publication}`,()=>(0,m.jsx)(`span`,{className:`font-semibold`,children:i}));return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`h1`,{className:`mb-[8px] text-center font-sans text-2xl tracking-tight text-black dark:text-[rgba(255,255,255,0.85)] ${e?`font-semibold`:`font-bold`}`,children:u}),(0,m.jsx)(`p`,{className:`sm:max-w-screen-sm mb-[28px] w-full px-0 text-center font-sans text-lg leading-normal text-neutral-600 dark:text-[rgba(255,255,255,0.85)] sm:px-8`,children:p}),(0,m.jsx)(`button`,{className:`mb-[12px] inline-block rounded px-5 py-[14px] font-sans text-md font-medium leading-none text-white transition-all hover:opacity-90`,"data-testid":`signup-button`,style:c,type:`button`,onClick:d,children:o(t&&a?`Upgrade now`:`Sign up now`)}),!a&&(0,m.jsxs)(`p`,{className:`text-center font-sans text-md text-[rgba(0,0,0,0.4)] dark:text-[rgba(255,255,255,0.5)]`,children:[(0,m.jsx)(`span`,{className:`mr-1 inline-block text-[15px]`,children:o(`Already a member?`)}),(0,m.jsx)(`button`,{className:`rounded-md text-sm font-semibold transition-all hover:opacity-90`,"data-testid":`signin-button`,style:l,type:`button`,onClick:f,children:o(`Sign in`)})]})]})},le=e=>(0,m.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,width:24,viewBox:`0 0 24 24`,...e,children:(0,m.jsx)(`g`,{strokeLinecap:`round`,strokeWidth:2,fill:`none`,strokeLinejoin:`round`,className:`nc-icon-wrapper`,children:(0,m.jsx)(`polygon`,{points:`7 21 2 22 3 17 18 2 22 6 7 21`})})}),ue=e=>(0,m.jsx)(`svg`,{id:`loader-1`,xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,x:`0px`,y:`0px`,width:`40px`,height:`40px`,viewBox:`0 0 50 50`,style:{enableBackground:`new 0 0 50 50`},xmlSpace:`preserve`,...e,children:(0,m.jsx)(`path`,{d:`M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z`,children:(0,m.jsx)(`animateTransform`,{attributeType:`xml`,attributeName:`transform`,type:`rotate`,from:`0 25 25`,to:`360 25 25`,dur:`0.6s`,repeatCount:`indefinite`})})}),de=e=>(0,m.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,m.jsx)(`path`,{d:`M11.55 4C13.483 4 15.05 5.567 15.05 7.5C15.05 9.433 13.483 11 11.55 11C9.617 11 8.05 9.433 8.05 7.5C8.05 5.567 9.617 4 11.55 4ZM11.55 20C9.044 20 6.757 19.067 5 17.538C5.997 14.888 8.551 13 11.55 13C14.549 13 17.103 14.888 18.1 17.538C16.343 19.066 14.056 20 11.55 20Z`,fill:`currentColor`})});function fe(){return`w-8 h-8`}var pe=()=>{let e=fe();return(0,m.jsx)(`figure`,{className:`relative ${e}`,"data-testid":`blank-avatar`,children:(0,m.jsx)(`div`,{className:`flex items-center justify-center rounded-full bg-black/5 text-neutral-900/25 dark:bg-white/15 dark:text-white/30 ${e}`,children:(0,m.jsx)(de,{className:`size-7 opacity-80`})})})},me=({member:e})=>{let{avatarSaturation:t,t:n}=k(),r=fe(),i=T(e,n),a=e=>{let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);return t=Math.abs(t),t},o=(e,t,n)=>Math.floor(e%(n-t)+t),s=()=>{if(!i)return[0,0,10];let e=t===void 0||isNaN(t)?50:t,n=[0,360],r=Math.round(e/(100/30))+30,s=[r-20,r],c=a(i);return[o(c,n[0],n[1]),e,o(c,s[0],s[1])]},c=e=>`hsl(${e[0]}, ${e[1]}%, ${e[2]}%)`,l=w(i),u={background:c(s())},d=(0,m.jsxs)(m.Fragment,{children:[i?(0,m.jsx)(`div`,{className:`flex items-center justify-center rounded-full ${r}`,"data-testid":`avatar-background`,style:u,children:(0,m.jsx)(`p`,{className:`font-sans text-base font-semibold text-white`,children:l})}):(0,m.jsx)(`div`,{className:`flex items-center justify-center rounded-full bg-neutral-900 dark:bg-white/70 ${r}`,"data-testid":`avatar-background`,children:(0,m.jsx)(de,{className:`stroke-white dark:stroke-black/60`})}),e?.avatar_image&&(0,m.jsx)(`img`,{alt:`Avatar`,className:`absolute left-0 top-0 rounded-full ${r}`,"data-testid":`avatar-image`,src:e.avatar_image})]});return e?(0,m.jsx)(`figure`,{className:`relative ${r}`,"data-testid":`avatar`,children:d}):(0,m.jsx)(pe,{})};function he(e){this.content=e}he.prototype={constructor:he,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 he(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 he(n)},addToStart:function(e,t){return new he([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new he(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 he(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=he.from(e),e.size?new he(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=he.from(e),e.size?new he(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=he.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}},he.from=function(e){if(e instanceof he)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new he(t)};function ge(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&&ye(e.charCodeAt(r-1))&&ve(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=ge(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}function _e(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&&ye(e.charCodeAt(i-1))&&ve(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=_e(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}function ve(e){return e>=56320&&e<57344}function ye(e){return e>=55296&&e<56320}var A=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 ge(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return _e(this,e,t,n)}findIndex(e){if(e==0)return xe(0,e);if(e==this.size)return xe(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?xe(t+1,i):xe(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)`:``))}};A.empty=new A([],0);var be={index:0,offset:0};function xe(e,t){return be.index=e,be.offset=t,be}function Se(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(!Se(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!Se(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&&Se(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 Ce=class extends Error{},M=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=Te(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(we(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(A.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)}};M.empty=new M(A.empty,0,0);function we(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(we(a.content,t-i-1,n-i-1)))}function Te(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=Te(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 Ee(e,t,n){if(n.openStart>e.depth)throw new Ce(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Ce(`Inconsistent open depths`);return De(e,t,n,0)}function De(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=De(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}else if(!n.content.size)return Me(a,Pe(e,t,r));else if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return Me(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}else{let{start:i,end:o}=Fe(n,e);return Me(a,Ne(e,i,o,t,r))}}function Oe(e,t){if(!t.type.compatibleContent(e.type))throw new Ce(`Cannot join `+t.type.name+` onto `+e.type.name)}function ke(e,t,n){let r=e.node(n);return Oe(r,t.node(n)),r}function Ae(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 je(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&&(Ae(e.nodeAfter,r),a++));for(let e=a;e<o;e++)Ae(i.child(e),r);t&&t.depth==n&&t.textOffset&&Ae(t.nodeBefore,r)}function Me(e,t){if(!e.type.validContent(t))throw new Ce(`Invalid content for node `+e.type.name);return e.copy(t)}function Ne(e,t,n,r,i){let a=e.depth>i&&ke(e,t,i+1),o=r.depth>i&&ke(n,r,i+1),s=[];return je(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(Oe(a,o),Ae(Me(a,Ne(e,t,n,r,i+1)),s)):(a&&Ae(Me(a,Pe(e,t,i+1)),s),je(t,n,i,s),o&&Ae(Me(o,Pe(n,r,i+1)),s)),je(r,null,i,s),new A(s)}function Pe(e,t,n){let r=[];return je(null,e,n,r),e.depth>n&&Ae(Me(ke(e,t,n+1),Pe(e,t,n+1)),r),je(t,null,n,r),new A(r)}function Fe(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(A.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var Ie=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 Be(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=ze.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 ze.set(t,r=new Le);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%Re,i}},Le=class{constructor(){this.elts=[],this.i=0}},Re=12,ze=new WeakMap,Be=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)}},Ve=Object.create(null),He=class e{constructor(e,t,n,r=j.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||A.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&&Se(this.attrs,t||e.defaultAttrs||Ve)&&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 M.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new M(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return Ee(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 Ie.resolveCached(this,e)}resolveNoCache(e){return Ie.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()+`)`),We(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=A.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=>e.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=A.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};He.prototype.text=void 0;var Ue=class e extends He{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):We(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 We(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var Ge=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Ke(t,n);if(r.next==null)return e.empty;let i=qe(r);r.next&&r.err(`Unexpected trailing text`);let a=rt(et(i));return it(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 A.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(`
3
- `)}};Ge.empty=new Ge(!0);var Ke=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 qe(e){let t=[];do t.push(Je(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function Je(e){let t=[];do t.push(Ye(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function Ye(e){let t=$e(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=Ze(e,t);else break;return t}function Xe(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function Ze(e,t){let n=Xe(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:Xe(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function Qe(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 $e(e){if(e.eat(`(`)){let t=qe(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=Qe(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 et(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}function 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 tt(e,t){return t-e}function nt(e,t){let n=[];return r(t),n.sort(tt);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 rt(e){let t=Object.create(null);return n(nt(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]);nt(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new Ge(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(tt);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function it(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 at(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 ot(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 st(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 ct(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new dt(e,r,t[r]);return n}var lt=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=ct(e,n.attrs),this.defaultAttrs=at(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==Ge.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:ot(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new He(this,this.computeAttrs(e),A.from(t),j.setFrom(n))}createChecked(e=null,t,n){return t=A.from(t),this.checkContent(t),new He(this,this.computeAttrs(e),t,j.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=A.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(A.empty,!0);return i?new He(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){st(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 ut(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 dt=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?ut(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},ft=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=ct(e,r.attrs),this.excluded=null;let i=at(this.attrs);this.instance=i?new j(this,i):null}create(e=null){return!e&&this.instance?this.instance:new j(this,ot(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){st(this.attrs,e,`mark`,this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},pt=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=he.from(e.nodes),t.marks=he.from(e.marks||{}),this.nodes=lt.compile(this.spec.nodes,this),this.marks=ft.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]=Ge.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?mt(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==``?[]:mt(this,n.split(` `))}this.nodeFromJSON=e=>He.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 lt))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 Ue(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 mt(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 ht(e){return e.tag!=null}function gt(e){return e.style!=null}var _t=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(ht(e))this.tags.push(e);else if(gt(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 Et(this,t,!1);return n.addAll(e,j.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new Et(this,t,!0);return n.addAll(e,j.none,t.from,t.to),M.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(Ot(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=kt(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=kt(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)))}},vt={address:!0,article:!0,aside:!0,blockquote:!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},yt={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},bt={ol:!0,ul:!0},xt=1,St=2,Ct=4;function wt(e,t,n){return t==null?e&&e.whitespace==`pre`?3:n&-5:(t?xt:0)|(t===`full`?St:0)}var Tt=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&Ct?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(A.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&xt)){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=A.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(A.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&&!vt.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},Et=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=wt(null,t.preserveWhitespace,0)|(n?Ct:0);i=r?new Tt(r.type,r.attrs,j.none,!0,t.topMatch||r.type.contentMatch,a):n?new Tt(null,null,j.none,!0,null,a):new Tt(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&St?`full`:this.localPreserveWS||(r.options&xt)>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,`
4
- `);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;bt.hasOwnProperty(a)&&this.parser.normalizeLists&&Dt(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));out:if(s?s.ignore:yt.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(vt.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(`
5
- `),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):At(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=wt(e,i,a.options);a.options&Ct&&a.content.length==0&&(o|=Ct);let s=j.none;return n=n.filter(t=>(a.type?a.type.allowsMarkType(t.type):At(t.type,e))?(s=t.addToSet(s),!1):!0),this.nodes.push(new Tt(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|=xt);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 Dt(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&bt.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function Ot(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function kt(e){let t={};for(let n in e)t[n]=e[n];return t}function At(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 jt=class e{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||=Nt(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 Nt(t).createTextNode(e.text);let{dom:n,contentDOM:r}=Lt(Nt(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&&Lt(Nt(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return typeof t==`string`?{dom:e.createTextNode(t)}:Lt(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=Mt(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return Mt(e.marks)}};function Mt(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function Nt(e){return e.document||window.document}var Pt=new WeakMap;function Ft(e){let t=Pt.get(e);return t===void 0&&Pt.set(e,t=It(e)),t}function It(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 Lt(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=Ft(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}=Lt(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var Rt=65535,zt=2**16;function Bt(e,t){return e+t*zt}function Vt(e){return e&Rt}function Ht(e){return(e-(e&Rt))/zt}var Ut=1,Wt=2,Gt=4,Kt=8,qt=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&Kt)>0}get deletedBefore(){return(this.delInfo&5)>0}get deletedAfter(){return(this.delInfo&6)>0}get deletedAcross(){return(this.delInfo&Gt)>0}},Jt=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=Vt(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+Ht(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:Bt(o/3,e-s),f=e==s?Wt:e==u?Ut:Gt;return(t<0?e!=s:e!=u)&&(f|=Kt),new qt(a,f,d)}r+=l-c}return n?e+r:new qt(e+r,0,null)}touches(e,t){let n=0,r=Vt(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])}};Jt.empty=new Jt([]);var Yt=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 qt(e,r,null)}},Xt=Object.create(null),Zt=class{getMap(){return Jt.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError(`Invalid input for Step.fromJSON`);let n=Xt[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Xt)throw RangeError(`Duplicate use of step JSON ID `+e);return Xt[e]=t,t.prototype.jsonID=e,t}},Qt=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 Ce)return e.fail(t.message);throw t}}};function $t(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy($t(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return A.fromArray(r)}var en=class e extends Zt{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 M($t(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 Qt.fromReplace(e,this.from,this.to,i)}invert(){return new tn(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))}};Zt.jsonID(`addMark`,en);var tn=class e extends Zt{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 M($t(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return Qt.fromReplace(e,this.from,this.to,n)}invert(){return new en(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))}};Zt.jsonID(`removeMark`,tn);var nn=class e extends Zt{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Qt.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return Qt.fromReplace(e,this.pos,this.pos+1,new M(A.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 rn(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))}};Zt.jsonID(`addNodeMark`,nn);var rn=class e extends Zt{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Qt.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return Qt.fromReplace(e,this.pos,this.pos+1,new M(A.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new nn(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))}};Zt.jsonID(`removeNodeMark`,rn);var an=class e extends Zt{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&sn(e,this.from,this.to)?Qt.fail(`Structure replace would overwrite content`):Qt.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Jt([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?M.empty:new M(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?M.empty:new M(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,M.fromJSON(t,n.slice),!!n.structure)}};an.MAP_BIAS=1,Zt.jsonID(`replace`,an);var on=class e extends Zt{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&&(sn(e,this.from,this.gapFrom)||sn(e,this.gapTo,this.to)))return Qt.fail(`Structure gap-replace would overwrite content`);let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Qt.fail(`Gap is not a flat range`);let n=this.slice.insertAt(this.insert,t.content);return n?Qt.fromReplace(e,this.from,this.to,n):Qt.fail(`Content does not fit in gap`)}getMap(){return new Jt([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,M.fromJSON(t,n.slice),n.insert,!!n.structure)}};Zt.jsonID(`replaceAround`,on);function sn(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 cn(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 tn(l,d,u[e])));s&&s.to==l?s.to=d:a.push(s=new en(l,d,r))}}),i.forEach(t=>e.step(t)),a.forEach(t=>e.step(t))}function ln(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 ft){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 tn(t.from,t.to,t.style)))}function un(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 an(s,l,M.empty));else{r=u;for(let t=0;t<c.marks.length;t++)n.allowsMarkType(c.marks[t].type)||e.step(new tn(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 M(A.from(n.schema.text(` `,n.allowedMarks(c.marks))),0,0),o.push(new an(s+e.index,s+e.index+e[0].length,r))}}s=l}if(!r.validEnd){let t=r.fillBefore(A.empty,!0);e.replace(s,s,new M(t,0,0))}for(let t=o.length-1;t>=0;t--)e.step(o[t])}function dn(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function N(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||!dn(a,o,s))break;o&&(r=1),s<a.childCount&&(i=1)}return null}function fn(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=A.empty,d=0;for(let e=a,t=!1;e>n;e--)t||r.index(e)>0?(t=!0,u=A.from(r.node(e).copy(u)),d++):c--;let f=A.empty,p=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,f=A.from(i.node(e).copy(f)),p++):l++;e.step(new on(c,l,o,s,new M(u.append(f),d,p),u.size-d,!0))}function pn(e,t,n=null,r=e){let i=hn(e,t),a=i&&gn(r,t);return a?i.map(mn).concat({type:t,attrs:n}).concat(a.map(mn)):null}function mn(e){return{type:e,attrs:null}}function hn(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 gn(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 _n(e,t,n){let r=A.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=A.from(n[e].type.create(n[e].attrs,r))}let i=t.start,a=t.end;e.step(new on(i,a,i,a,new M(r,0,0),n.length,!0))}function vn(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)&&xn(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&&bn(e,t,n,a),un(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 on(c,l,c+1,l-1,new M(A.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&yn(e,t,n,a),!1}})}function yn(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 bn(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(`
6
- `))}})}function xn(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function Sn(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 on(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new M(A.from(o),0,0),1,!0))}function Cn(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 wn(e,t,n=1,r){let i=e.doc.resolve(t),a=A.empty,o=A.empty;for(let e=i.depth,t=i.depth-n,s=n-1;e>t;e--,s--){a=A.from(i.node(e).copy(a));let t=r&&r[s];o=A.from(t?t.type.create(t.attrs,o):i.node(e).copy(o))}e.step(new an(t,t,new M(a.append(o),n,n),!0))}function Tn(e,t){let n=e.resolve(t),r=n.index();return Dn(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function En(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 Dn(e,t){return!!(e&&t&&!e.isLeaf&&En(e,t))}function On(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&&Dn(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 kn(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);bn(e,r.node(),r.before(),s)}o.inlineContent&&un(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 an(l,c.map(t+n,-1),M.empty,!0)),r===!0){let t=e.doc.resolve(l);yn(e,t.node(),t.before(),e.steps.length)}return e}function An(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 jn(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 Mn(e,t,n=t,r=M.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),a=e.resolve(n);return Nn(i,a,r)?new an(t,n,r):new Pn(i,a,r).fit()}function Nn(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}var Pn=class{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=A.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=A.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 M(i,a,o);return e>-1?new on(n.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||n.pos!=this.$to.pos?new an(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=Ln(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(A.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,r=Ln(e,t);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new M(e,t+1,Math.max(n,r.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=Ln(e,t);if(r.childCount<=1&&t>0){let i=e.size-t<=t+r.size;this.unplaced=new M(Fn(e,t-1,1),t-1,i?t-1:n)}else this.unplaced=new M(Fn(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(Rn(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=In(this.placed,t,A.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?M.empty:new M(Fn(a.content,e-1,1),e-1,f<0?a.openEnd:e-1):new M(Fn(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||!zn(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=zn(e,t,r,n,i);if(a){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],i=zn(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=In(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=In(this.placed,this.depth,A.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(A.empty,!0);e.childCount&&(this.placed=In(this.placed,this.frontier.length,e))}};function Fn(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(Fn(e.firstChild.content,t-1,n)))}function In(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(In(e.lastChild.content,t-1,n)))}function Ln(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function Rn(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,Rn(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(A.empty,!0)))),e.copy(r)}function zn(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&&!Bn(n,a.content,o)?s:null}function Bn(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function Vn(e){return e.spec.defining||e.spec.definingForContent}function Hn(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),a=e.doc.resolve(n);if(Nn(i,a,r))return e.step(new an(t,n,r));let o=Kn(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=Vn(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 M(Un(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 Un(e,t,n,r,i){if(t<n){let i=e.firstChild;e=e.replaceChild(0,i.copy(Un(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(A.empty,!0))}return e}function Wn(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=An(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new M(A.from(r),0,0))}function Gn(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=Kn(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 Kn(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 qn=class e extends Zt{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 Qt.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 Qt.fromReplace(e,this.pos,this.pos+1,new M(A.from(r),0,+!t.isLeaf))}getMap(){return Jt.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)}};Zt.jsonID(`attr`,qn);var Jn=class e extends Zt{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 Qt.ok(n)}getMap(){return Jt.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)}};Zt.jsonID(`docAttr`,Jn);var Yn=class extends Error{};Yn=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},Yn.prototype=Object.create(Error.prototype),Yn.prototype.constructor=Yn,Yn.prototype.name=`TransformError`;var Xn=class{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Yt}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new Yn(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=M.empty){let r=Mn(this.doc,e,t,n);return r&&this.step(r),this}replaceWith(e,t,n){return this.replace(e,t,new M(A.from(n),0,0))}delete(e,t){return this.replace(e,t,M.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return Hn(this,e,t,n),this}replaceRangeWith(e,t,n){return Wn(this,e,t,n),this}deleteRange(e,t){return Gn(this,e,t),this}lift(e,t){return fn(this,e,t),this}join(e,t=1){return kn(this,e,t),this}wrap(e,t){return _n(this,e,t),this}setBlockType(e,t=e,n,r=null){return vn(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r){return Sn(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new qn(e,t,n)),this}setDocAttribute(e,t){return this.step(new Jn(e,t)),this}addNodeMark(e,t){return this.step(new nn(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 rn(e,t));else{let r=n.marks,i,a=[];for(;i=t.isInSet(r);)a.push(new rn(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 wn(this,e,t,n),this}addMark(e,t,n){return cn(this,e,t,n),this}removeMark(e,t,n){return ln(this,e,t,n),this}clearIncompatible(e,t,n){return un(this,e,t,n),this}},Zn=Object.create(null),P=class{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new Qn(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=M.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?M.empty:t),o==0&&or(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),or(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new F(e):ar(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?ar(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):ar(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(i)return i}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new rr(e.node(0))}static atStart(e){return ar(e,e,0,0,1)||new rr(e)}static atEnd(e){return ar(e,e,e.content.size,e.childCount,-1)||new rr(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError(`Invalid input for Selection.fromJSON`);let n=Zn[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Zn)throw RangeError(`Duplicate use of selection JSON ID `+e);return Zn[e]=t,t.prototype.jsonID=e,t}getBookmark(){return F.between(this.$anchor,this.$head).getBookmark()}};P.prototype.visible=!0;var Qn=class{constructor(e,t){this.$from=e,this.$to=t}},$n=!1;function er(e){!$n&&!e.parent.inlineContent&&($n=!0,console.warn(`TextSelection endpoint not pointing into a node with inline content (`+e.parent.type.name+`)`))}var F=class e extends P{constructor(e,t=e){er(e),er(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 P.near(r);let i=t.resolve(n.map(this.anchor));return new e(i.parent.inlineContent?i:r,r)}replace(e,t=M.empty){if(super.replace(e,t),t==M.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 tr(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=P.findFrom(n,r,!0)||P.findFrom(n,-r,!0);if(e)n=e.$head;else return P.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(P.findFrom(t,-r,!0)||P.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=i<0&&(t=n))),new e(t,n)}};P.jsonID(`text`,F);var tr=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 F.between(e.resolve(this.anchor),e.resolve(this.head))}},I=class e extends P{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?P.near(a):new e(a)}content(){return new M(A.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 nr(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}};I.prototype.visible=!1,P.jsonID(`node`,I);var nr=class e{constructor(e){this.anchor=e}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new tr(r,r):new e(r)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&I.isSelectable(n)?new I(t):P.near(t)}},rr=class e extends P{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=M.empty){if(t==M.empty){e.delete(0,e.doc.content.size);let t=P.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 ir}};P.jsonID(`all`,rr);var ir={map(){return this},resolve(e){return new rr(e)}};function ar(e,t,n,r,i,a=!1){if(t.inlineContent)return F.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=ar(e,r,n+i,i<0?r.childCount:0,i,a);if(t)return t}else if(!a&&I.isSelectable(r))return I.create(e,n-(i<0?r.nodeSize:0));n+=r.nodeSize*i}return null}function or(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof an||i instanceof on))return;let a=e.mapping.maps[r],o;a.forEach((e,t,n,r)=>{o??=r}),e.setSelection(P.near(e.doc.resolve(o),n))}var sr=1,cr=2,lr=4,ur=class extends Xn{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|sr)&-3,this.storedMarks=null,this}get selectionSet(){return(this.updated&sr)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=cr,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&cr)>0}addStep(e,t){super.addStep(e,t),this.updated&=-3,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(P.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|=lr,this}get scrolledIntoView(){return(this.updated&lr)>0}};function dr(e,t){return!t||!e?e:e.bind(t)}var fr=class{constructor(e,t,n){this.name=e,this.init=dr(t.init,n),this.apply=dr(t.apply,n)}},pr=[new fr(`doc`,{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new fr(`selection`,{init(e,t){return e.selection||P.atStart(t.doc)},apply(e){return e.selection}}),new fr(`storedMarks`,{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new fr(`scrollToSelection`,{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})],mr=class{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=pr.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 fr(e.key,e.spec.state,e))})}},hr=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 ur(this)}static create(t){let n=new mr(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 mr(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 mr(t.schema,t.plugins),a=new e(i);return i.fields.forEach(e=>{if(e.name==`doc`)a.doc=He.fromJSON(t.schema,n.doc);else if(e.name==`selection`)a.selection=P.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 gr(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r==`handleDOMEvents`&&(i=gr(i,t,{})),n[r]=i}return n}var _r=class{constructor(e){this.spec=e,this.props={},e.props&&gr(e.props,this,this.props),this.key=e.key?e.key.key:yr(`plugin`)}getState(e){return e[this.key]}},vr=Object.create(null);function yr(e){return e in vr?e+`$`+ ++vr[e]:(vr[e]=0,e+`$`)}var br=class{constructor(e=`key`){this.key=yr(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}},xr=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},Sr=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t},Cr=null,wr=function(e,t,n){let r=Cr||=document.createRange();return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},Tr=function(){Cr=null},Er=function(e,t,n,r){return n&&(Or(e,t,n,r,-1)||Or(e,t,n,r,1))},Dr=/^(img|br|input|textarea|hr)$/i;function Or(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:kr(e))){let n=e.parentNode;if(!n||n.nodeType!=1||Nr(e)||Dr.test(e.nodeName)||e.contentEditable==`false`)return!1;t=xr(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?kr(e):0}else return!1}}function kr(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Ar(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=kr(e)}else if(e.parentNode&&!Nr(e))t=xr(e),e=e.parentNode;else return null}}function jr(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&&!Nr(e))t=xr(e)+1,e=e.parentNode;else return null}}function Mr(e,t,n){for(let r=t==0,i=t==kr(e);r||i;){if(e==n)return!0;let t=xr(e);if(e=e.parentNode,!e)return!1;r&&=t==0,i&&=t==kr(e)}}function Nr(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 Pr=function(e){return e.focusNode&&Er(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function Fr(e,t){let n=document.createEvent(`Event`);return n.initEvent(`keydown`,!0,!0),n.keyCode=e,n.key=n.code=t,n}function Ir(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function Lr(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(kr(r.offsetNode),r.offset)}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(kr(r.startContainer),r.startOffset)}}}var Rr=typeof navigator<`u`?navigator:null,zr=typeof document<`u`?document:null,Br=Rr&&Rr.userAgent||``,Vr=/Edge\/(\d+)/.exec(Br),Hr=/MSIE \d/.exec(Br),Ur=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Br),Wr=!!(Hr||Ur||Vr),Gr=Hr?document.documentMode:Ur?+Ur[1]:Vr?+Vr[1]:0,Kr=!Wr&&/gecko\/(\d+)/i.test(Br);Kr&&+(/Firefox\/(\d+)/.exec(Br)||[0,0])[1];var qr=!Wr&&/Chrome\/(\d+)/.exec(Br),L=!!qr,Jr=qr?+qr[1]:0,Yr=!Wr&&!!Rr&&/Safari\//.test(Br)&&!/Chrome\//.test(Br)&&!/Chromium\//.test(Br),Xr=Yr&&/Mobile\/\w+/.test(Br),Zr=Xr||/Macintosh/.test(Br),Qr=/Windows/.test(Br),$r=/Android \d/.test(Br),ei=!!zr&&`webkitFontSmoothing`in zr.documentElement.style,ti=ei?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function ni(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 R(e,t){return typeof e==`number`?e:e[t]}function ri(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 ii(e,t,n){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=Sr(o);continue}let e=o,n=e==a.body,s=n?ni(a):ri(e),c=0,l=0;if(t.top<s.top+R(r,`top`)?l=-(s.top-t.top+R(i,`top`)):t.bottom>s.bottom-R(r,`bottom`)&&(l=t.bottom-t.top>s.bottom-s.top?t.top+R(i,`top`)-s.top:t.bottom-s.bottom+R(i,`bottom`)),t.left<s.left+R(r,`left`)?c=-(s.left-t.left+R(i,`left`)):t.right>s.right-R(r,`right`)&&(c=t.right-s.right+R(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:Sr(o)}}function ai(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:oi(e.dom)}}function oi(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=Sr(r));return t}function si({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;ci(n,r==0?0:r-t)}function ci(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 li=null;function ui(e){if(e.setActive)return e.setActive();if(li)return e.focus(li);let t=oi(e);e.focus(li==null?{get preventScroll(){return li={preventScroll:!0},!0}}:void 0),li||(li=!1,ci(t,0))}function di(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=wr(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?fi(n,i):!n||r&&n.nodeType==1?{node:e,offset:a}:di(n,i)}function fi(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=bi(r,1);if(n.top!=n.bottom&&pi(t,n)){i={node:e,offset:a+ +(t.left>=(n.left+n.right)/2)};break}}return r.detach(),i||{node:e,offset:0}}function pi(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function mi(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function hi(e,t,n){let{node:r,offset:i}=di(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 gi(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 _i(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(pi(t,i))return _i(n,t,i)}}if((a=(a+1)%r)==i)break}return e}function vi(e,t){let n=e.dom.ownerDocument,r,i=0,a=Lr(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(!pi(t,n)||(o=_i(e.dom,t,n),!o))return null}if(Yr)for(let e=o;r&&e;e=Sr(e))e.draggable&&(r=void 0);if(o=mi(o,t),r){if(Kr&&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;ei&&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=gi(e,r,i,t))}s??=hi(e,o,t);let c=e.docView.nearestDesc(o,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function yi(e){return e.top<e.bottom||e.left<e.right}function bi(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(yi(e))return e}return Array.prototype.find.call(n,yi)||e.getBoundingClientRect()}var xi=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Si(e,t,n){let{node:r,offset:i,atom:a}=e.docView.domFromPos(t,n<0?-1:1),o=ei||Kr;if(r.nodeType==3)if(o&&(xi.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let e=bi(wr(r,i,i),n);if(Kr&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let t=bi(wr(r,i-1,i-1),-1);if(t.top==e.top){let n=bi(wr(r,i,i+1),-1);if(n.top!=e.top)return Ci(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++,Ci(bi(wr(r,e,t),a),a<0)}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(a==null&&i&&(n<0||i==kr(r))){let e=r.childNodes[i-1];if(e.nodeType==1)return wi(e.getBoundingClientRect(),!1)}if(a==null&&i<kr(r)){let e=r.childNodes[i];if(e.nodeType==1)return wi(e.getBoundingClientRect(),!0)}return wi(r.getBoundingClientRect(),n>=0)}if(a==null&&i&&(n<0||i==kr(r))){let e=r.childNodes[i-1],t=e.nodeType==3?wr(e,kr(e)-+!o):e.nodeType==1&&(e.nodeName!=`BR`||!e.nextSibling)?e:null;if(t)return Ci(bi(t,1),!1)}if(a==null&&i<kr(r)){let e=r.childNodes[i];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?e.nodeType==3?wr(e,0,+!o):e.nodeType==1?e:null:null;if(t)return Ci(bi(t,-1),!0)}return Ci(bi(r.nodeType==3?wr(r):r,-n),n>=0)}function Ci(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 wi(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 Ti(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 Ei(e,t,n){let r=t.selection,i=n==`up`?r.$from:r.$to;return Ti(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=Si(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=wr(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 Di=/[\u0590-\u08ac]/;function Oi(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?!Di.test(r.parent.textContent)||!s.modify?n==`left`||n==`backward`?a:o:Ti(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 ki=null,Ai=null,ji=!1;function Mi(e,t,n){return ki==t&&Ai==n?ji:(ki=t,Ai=n,ji=n==`up`||n==`down`?Ei(e,t,n):Oi(e,t,n))}var Ni=0,Pi=1,Fi=2,Ii=3,z=class{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=Ni,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(){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>xr(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 Hi){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 B&&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?xr(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?xr(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=xr(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=xr(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((Kr||Yr)&&e==t){let{node:e,offset:t}=o;if(e.nodeType==3){if(u=!!(t&&e.nodeValue[t-1]==`
7
- `),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:xr(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(Kr&&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&&Yr)&&Er(o.node,o.offset,l.anchorNode,l.anchorOffset)&&Er(s.node,s.offset,l.focusNode,l.focusOffset))return;let d=!1;if((c.extend||e==t)&&!(u&&Kr)){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?Fi:Pi,e==r&&t==o&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=Ii:i.markDirty(e-r,t-r);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?Fi:Ii}n=a}this.dirty=Fi}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=e==1?Fi:Pi;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}},B=class extends z{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.contentEditable=`false`,a.classList.add(`ProseMirror-widget`)}super(e,[],a,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return this.dirty==Ni&&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}},Li=class extends z{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}},Ri=class e extends z{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=jt.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&Ii||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Ii&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=Ni){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=Ni}}slice(t,n,r){let i=e.create(this.parent,this.mark,!0,r),a=this.children,o=this.size;n<o&&(a=aa(a,n,o,r)),t>0&&(a=aa(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()}},zi=class e extends z{constructor(e,t,n,r,i,a,o,s,c){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=jt.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=Xi(u,r,n),l?c=new Ui(t,n,r,i,u,d||null,f,l,a,o+1):n.isText?new Vi(t,n,r,i,u,f,a):new e(t,n,r,i,u,d||null,f,a,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace==`pre`&&(e.preserveWhitespace=`full`),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let t=this.children.length-1;t>=0;t--){let n=this.children[t];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>A.empty)}return e}matchesNode(e,t,n){return this.dirty==Ni&&e.eq(this.node)&&Zi(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 $i(this,a&&a.node,e);na(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==Fi)&&(a&&this.protectLocalComposition(e,a),Wi(this.contentDOM,this.children,e),Xr&&ra(this.dom))}localCompositionInfo(e,t){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof F)||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=ia(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 Li(this,i,t,r);e.input.compositionNodes.push(a),this.children=aa(this.children,n,n+r.length,e,a)}update(e,t,n,r){return this.dirty==Ii||!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=Ni}updateOuterDeco(e){if(Zi(e,this.outerDeco))return;let t=this.nodeDOM.nodeType!=1,n=this.dom;this.dom=Ji(this.dom,this.nodeDOM,qi(this.outerDeco,this.node,t),qi(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 Bi(e,t,n,r,i){Xi(r,t,e);let a=new zi(void 0,e,t,n,r,r,r,i,0);return a.contentDOM&&a.updateChildren(i,0),a}var Vi=class e extends zi{constructor(e,t,n,r,i,a,o){super(e,t,n,r,i,null,a,o,0)}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==Ii||this.dirty!=Ni&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=Ni||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=Ni,!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,r)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(e==0||t==this.nodeDOM.nodeValue.length)&&(this.dirty=Ii)}get domAtom(){return!1}isText(e){return this.node.text==e}},Hi=class extends z{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Ni&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName==`IMG`}},Ui=class extends zi{constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r,i,a,o,c,l),this.spec=s}update(e,t,n,r){if(this.dirty==Ii)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 Wi(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=Qi(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(s,r);if(o instanceof Ri){let t=r?r.previousSibling:e.lastChild;Wi(o.contentDOM,o.children,n),r=t?t.nextSibling:e.firstChild}}for(;r;)r=Qi(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}var Gi=function(e){e&&(this.nodeName=e)};Gi.prototype=Object.create(null);var Ki=[new Gi];function qi(e,t,n){if(e.length==0)return Ki;let r=n?Ki[0]:new Gi,i=[r];for(let a=0;a<e.length;a++){let o=e[a].type.attrs;if(o){o.nodeName&&i.push(r=new Gi(o.nodeName));for(let e in o){let a=o[e];a!=null&&(n&&i.length==1&&i.push(r=new Gi(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 Ji(e,t,n,r){if(n==Ki&&r==Ki)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=Ki[0],i=t)}Yi(i,o||Ki[0],a)}return i}function Yi(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 Xi(e,t,n){return Ji(e,e,Ki,qi(t,n,e.nodeType!=1))}function Zi(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 Qi(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}var $i=class{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=ea(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=Ni,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>-1)i>this.index&&(this.changed=!0,this.destroyBetween(this.index,i)),this.top=this.top.children[this.index];else{let r=Ri.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==Ii&&a.dom==a.contentDOM&&(a.dirty=Fi),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 zi){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!=Ii&&Zi(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=Fi,u.updateChildren(r,a+1),u.dirty=Ni),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)||!Zi(n,e.outerDeco)||!r.eq(e.innerDeco))return null;let o=zi.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=zi.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 B(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 Ri;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof Vi)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Yr||L)&&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 Hi(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 ea(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 Ri)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 ta(e,t){return e.type.side-t.type.side}function na(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(ta);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 ra(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 ia(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;if(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 aa(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 oa(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(Pr(n)){for(c=o;i&&!i.node;)i=i.parent;let e=i.node;if(i&&e.isAtom&&I.isSelectable(e)&&i.parent&&!(e.isInline&&Mr(n.focusNode,n.focusOffset,i.dom))){let e=i.posBefore;l=new I(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=_a(e,u,s,n)}return l}function sa(e){return e.editable?e.hasFocus():ya(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function ca(e,t=!1){let n=e.state.selection;if(ha(e,n),!sa(e))return;let r=e.input.mouseDown;if(!t&&L&&r){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&Er(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset)&&r.delaySelUpdate()){e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)ma(e);else{let{anchor:r,head:i}=n,a,o;la&&!(n instanceof F)&&(n.$from.parent.inlineContent||(a=ua(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(o=ua(e,n.to))),e.docView.setSelection(r,i,e,t),la&&(a&&fa(a),o&&fa(o)),n.visible?e.dom.classList.remove(`ProseMirror-hideselection`):(e.dom.classList.add(`ProseMirror-hideselection`),`onselectionchange`in document&&pa(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}var la=Yr||L&&Jr<63;function ua(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(Yr&&i&&i.contentEditable==`false`)return da(i);if((!i||i.contentEditable==`false`)&&(!a||a.contentEditable==`false`)){if(i)return da(i);if(a)return da(a)}}function da(e){return e.contentEditable=`true`,Yr&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function fa(e){e.contentEditable=`false`,e.wasDraggable&&=(e.draggable=!0,null)}function pa(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(()=>{(!sa(e)||e.state.selection.visible)&&e.dom.classList.remove(`ProseMirror-hideselection`)},20))})}function ma(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r=n.nodeName==`IMG`;r?t.collapse(n.parentNode,xr(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&Wr&&Gr<=11&&(n.disabled=!0,n.disabled=!1)}function ha(e,t){if(t instanceof I){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(ga(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else ga(e)}function ga(e){e.lastSelectedViewDesc&&=(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),void 0)}function _a(e,t,n,r){return e.someProp(`createSelectionBetween`,r=>r(e,t,n))||F.between(t,n,r)}function va(e){return e.editable&&!e.hasFocus()?!1:ya(e)}function ya(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 ba(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return Er(t.node,t.offset,n.anchorNode,n.anchorOffset)}function xa(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&&P.findFrom(a,t)}function Sa(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Ca(e,t,n){let r=e.state.selection;if(r instanceof F){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 Sa(e,new F(r.$anchor,a))}else if(!r.empty)return!1;else if(e.endOfTextblock(t>0?`forward`:`backward`)){let n=xa(e.state,t);return n&&n instanceof I?Sa(e,n):!1}else if(!(Zr&&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?I.isSelectable(i)?Sa(e,new I(t<0?e.state.doc.resolve(n.pos-i.nodeSize):n)):ei?Sa(e,new F(e.state.doc.resolve(t<0?o:o+i.nodeSize))):!1:!1}}else if(r instanceof I&&r.node.isInline)return Sa(e,new F(t>0?r.$to:r.$from));else{let n=xa(e.state,t);return n?Sa(e,n):!1}}function wa(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Ta(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!=`BR`)}function Ea(e,t){return t<0?Da(e):Oa(e)}function Da(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,a,o=!1;for(Kr&&n.nodeType==1&&r<wa(n)&&Ta(n.childNodes[r],-1)&&(o=!0);;)if(r>0){if(n.nodeType!=1)break;{let e=n.childNodes[r-1];if(Ta(e,-1))i=n,a=--r;else if(e.nodeType==3)n=e,r=n.nodeValue.length;else break}}else if(ka(n))break;else{let t=n.previousSibling;for(;t&&Ta(t,-1);)i=n.parentNode,a=xr(t),t=t.previousSibling;if(t)n=t,r=wa(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}o?Ma(e,n,r):i&&Ma(e,i,a)}function Oa(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=wa(n),a,o;for(;;)if(r<i){if(n.nodeType!=1)break;let e=n.childNodes[r];if(Ta(e,1))a=n,o=++r;else break}else if(ka(n))break;else{let t=n.nextSibling;for(;t&&Ta(t,1);)a=t.parentNode,o=xr(t)+1,t=t.nextSibling;if(t)n=t,r=0,i=wa(n);else{if(n=n.parentNode,n==e.dom)break;r=i=0}}a&&Ma(e,a,o)}function ka(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Aa(e,t){for(;e&&t==e.childNodes.length&&!Nr(e);)t=xr(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 ja(e,t){for(;e&&!t&&!Nr(e);)t=xr(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 Ma(e,t,n){if(t.nodeType!=3){let e,r;(r=Aa(t,n))?(t=r,n=0):(e=ja(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection();if(!r)return;if(Pr(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&&ca(e)},50)}function Na(e,t){let n=e.state.doc.resolve(t);if(!(L||Qr)&&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 Pa(e,t,n){let r=e.state.selection;if(r instanceof F&&!r.empty||n.indexOf(`s`)>-1||Zr&&n.indexOf(`m`)>-1)return!1;let{$from:i,$to:a}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?`up`:`down`)){let n=xa(e.state,t);if(n&&n instanceof I)return Sa(e,n)}if(!i.parent.inlineContent){let n=t<0?i:a,o=r instanceof rr?P.near(n,t):P.findFrom(n,t);return o?Sa(e,o):!1}return!1}function Fa(e,t){if(!(e.state.selection instanceof F))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 Ia(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function La(e){if(!Yr||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;Ia(e,n,`true`),setTimeout(()=>Ia(e,n,`false`),20)}return!1}function Ra(e){let t=``;return e.ctrlKey&&(t+=`c`),e.metaKey&&(t+=`m`),e.altKey&&(t+=`a`),e.shiftKey&&(t+=`s`),t}function za(e,t){let n=t.keyCode,r=Ra(t);if(n==8||Zr&&n==72&&r==`c`)return Fa(e,-1)||Ea(e,-1);if(n==46&&!t.shiftKey||Zr&&n==68&&r==`c`)return Fa(e,1)||Ea(e,1);if(n==13||n==27)return!0;if(n==37||Zr&&n==66&&r==`c`){let t=n==37?Na(e,e.state.selection.from)==`ltr`?-1:1:-1;return Ca(e,t,r)||Ea(e,t)}else if(n==39||Zr&&n==70&&r==`c`){let t=n==39?Na(e,e.state.selection.from)==`ltr`?1:-1:1;return Ca(e,t,r)||Ea(e,t)}else if(n==38||Zr&&n==80&&r==`c`)return Pa(e,-1,r)||Ea(e,-1);else if(n==40||Zr&&n==78&&r==`c`)return La(e)||Pa(e,1,r)||Ea(e,1);else if(r==(Zr?`m`:`c`)&&(n==66||n==73||n==89||n==90))return!0;return!1}function Ba(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`)||jt.fromSchema(e.state.schema),s=Za(),c=s.createElement(`div`);c.appendChild(o.serializeFragment(r,{document:s}));let l=c.firstChild,u,d=0;for(;l&&l.nodeType==1&&(u=Ya[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,`
8
-
9
- `),slice:t}}function Va(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 M(A.from(e.state.schema.text(t.replace(/\r\n?/g,`
10
- `))),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=jt.fromSchema(r);o=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=eo(n),ei&&to(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`)||_t.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(c||u),context:i,ruleFromNode(e){return e.nodeName==`BR`&&!e.nextSibling&&e.parentNode&&!Ha.test(e.parentNode.nodeName)?{ignore:!0}:null}}),u)s=no(Ja(s,+u[1],+u[2]),u[4]);else if(s=M.maxOpen(Ua(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=Ja(s,e,t)}return e.someProp(`transformPasted`,t=>{s=t(s,e,c)}),s}var Ha=/^(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 Ua(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&&Ga(t,i,e,a[a.length-1],0))a[a.length-1]=n;else{a.length&&(a[a.length-1]=Ka(a[a.length-1],i.length));let n=Wa(e,t);a.push(n),r=r.matchType(n.type),i=t}}),a)return A.from(a)}return e}function Wa(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,A.from(e));return e}function Ga(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let a=Ga(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(A.from(Wa(n,e,i+1))))}}function Ka(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,Ka(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(A.empty,!0);return e.copy(n.append(r))}function qa(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=qa(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(A.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}function Ja(e,t,n){return t<e.openStart&&(e=new M(qa(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new M(qa(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var Ya={thead:[`table`],tbody:[`table`],tfoot:[`table`],caption:[`table`],colgroup:[`table`],col:[`table`,`colgroup`],tr:[`table`,`tbody`],td:[`table`,`tbody`,`tr`],th:[`table`,`tbody`,`tr`]},Xa=null;function Za(){return Xa||=document.implementation.createHTMLDocument(`title`)}var Qa=null;function $a(e){let t=window.trustedTypes;return t?(Qa||=t.defaultPolicy||t.createPolicy(`ProseMirrorClipboard`,{createHTML:e=>e}),Qa.createHTML(e)):e}function eo(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=Za().createElement(`div`),r=/<([a-z][^>\s]+)/i.exec(e),i;if((i=r&&Ya[r[1].toLowerCase()])&&(e=i.map(e=>`<`+e+`>`).join(``)+e+i.map(e=>`</`+e+`>`).reverse().join(``)),n.innerHTML=$a(e),i)for(let e=0;e<i.length;e++)n=n.querySelector(i[e])||n;return n}function to(e){let t=e.querySelectorAll(L?`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 no(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;i=A.from(t.create(r[e+1],i)),a++,o++}return new M(i,a,o)}var V={},ro={},io={touchstart:!0,touchmove:!0},ao=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 oo(e){for(let t in V){let n=V[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{uo(e,t)&&!lo(e,t)&&(e.editable||!(t.type in ro))&&n(e,t)},io[t]?{passive:!0}:void 0)}Yr&&e.dom.addEventListener(`input`,()=>null),co(e)}function H(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function so(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 co(e){e.someProp(`handleDOMEvents`,t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>lo(e,t))})}function lo(e,t){return e.someProp(`handleDOMEvents`,n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function uo(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 fo(e,t){!lo(e,t)&&V[t.type]&&(e.editable||!(t.type in ro))&&V[t.type](e,t)}ro.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!Oo(e)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!($r&&L&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),Xr&&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,Fr(13,`Enter`))),e.input.lastIOSEnter=0)},200)}else e.someProp(`handleKeyDown`,t=>t(e,n))||za(e,n)?n.preventDefault():H(e,`key`)},ro.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)},ro.keypress=(e,t)=>{let n=t;if(Oo(e)||!n.charCode||n.ctrlKey&&!n.altKey||Zr&&n.metaKey)return;if(e.someProp(`handleKeyPress`,t=>t(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof F)||!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 po(e){return{left:e.clientX,top:e.clientY}}function mo(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function ho(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 go(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 _o(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&I.isSelectable(r)?(go(e,new I(n),`pointer`),!0):!1}function vo(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof I&&(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(I.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:(go(e,I.create(e.state.doc,i),`pointer`),!0)}function yo(e,t,n,r,i){return ho(e,`handleClickOn`,t,n,r)||e.someProp(`handleClick`,n=>n(e,t,r))||(i?vo(e,n):_o(e,n))}function bo(e,t,n,r){return ho(e,`handleDoubleClickOn`,t,n,r)||e.someProp(`handleDoubleClick`,n=>n(e,t,r))}function xo(e,t,n,r){return ho(e,`handleTripleClickOn`,t,n,r)||e.someProp(`handleTripleClick`,n=>n(e,t,r))||So(e,n,r)}function So(e,t,n){if(n.button!=0)return!1;let r=U(e,t,!0),i=e.state.doc;return r?(go(e,r,`pointer`),r instanceof F&&i.eq(e.state.doc)&&(e.input.mouseDown=new Do(e,r)),!0):!1}function U(e,t,n){let r=e.state.doc;if(t==-1)return r.inlineContent?F.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 F.create(r,a+1,a+1+t.content.size);if(n&&I.isSelectable(t))return I.create(r,a)}return null}function Co(e){return Po(e)}var wo=Zr?`metaKey`:`ctrlKey`;V.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=Co(e),i=Date.now(),a=`singleClick`;i-e.input.lastClick.time<500&&mo(n,e.input.lastClick)&&!n[wo]&&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(po(n));o&&(a==`singleClick`?e.input.mouseDown=new Eo(e,o,n,!!r):(a==`doubleClick`?bo:xo)(e,o.pos,o.inside,n)?n.preventDefault():H(e,`pointer`))};var To=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}},Eo=class extends To{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[wo],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 I&&c.from<=a&&c.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Kr&&!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()),H(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||ca(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(po(e))),this.updateAllowDefault(e),this.allowDefault||!t?H(this.view,`pointer`):yo(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Yr&&this.mightDrag&&!this.mightDrag.node.isAtom||L&&!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)?(go(this.view,P.near(this.view.state.doc.resolve(t.pos)),`pointer`),e.preventDefault()):H(this.view,`pointer`)}move(e){this.updateAllowDefault(e),H(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}},Do=class extends To{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(),H(this.view,`pointer`);let t=this.view.posAtCoords(po(e)),n=t&&U(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];go(this.view,F.create(r,a,o),`pointer`)}};V.touchstart=e=>{e.input.lastTouch=Date.now(),Co(e),H(e,`pointer`)},V.touchmove=e=>{e.input.lastTouch=Date.now(),H(e,`pointer`)},V.contextmenu=e=>Co(e);function Oo(e,t){return e.composing?!0:Yr&&Math.abs(Date.now()-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}var ko=$r?5e3:-1;ro.compositionstart=ro.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof F&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>e.type.spec.inclusive===!1)||L&&Qr&&Ao(e)))e.markCursor=e.state.storedMarks||n.marks(),Po(e,!0),e.markCursor=null;else if(Po(e,!t.selection.empty),Kr&&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;if(t.nodeType==3){let n=e.domSelection();n&&n.collapse(t,t.nodeValue.length);break}else n=t,r=-1}}e.input.composing=!0}jo(e,ko)};function Ao(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`}ro.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++,jo(e,20))};function jo(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>Po(e),t))}function Mo(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function No(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=Ar(t.focusNode,t.focusOffset),r=jr(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 Po(e,t=!1){if(!($r&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),Mo(e),t||e.docView&&e.docView.dirty){let n=oa(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 Fo(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 Io=Wr&&Gr<15||Xr&&ti<604;V.copy=ro.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type==`cut`;if(r.empty)return;let a=Io?null:n.clipboardData,{dom:o,text:s}=Ba(e,r.content());a?(n.preventDefault(),a.clearData(),a.setData(`text/html`,o.innerHTML),a.setData(`text/plain`,s)):Fo(e,o),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta(`uiEvent`,`cut`))};function Lo(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function Ro(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?zo(e,r.value,null,i,t):zo(e,r.textContent,r.innerHTML,i,t)},50)}function zo(e,t,n,r,i){let a=Va(e,t,n,r,e.state.selection.$from);if(e.someProp(`handlePaste`,t=>t(e,i,a||M.empty)))return!0;if(!a)return!1;let o=Lo(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 Bo(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,` `):``}ro.paste=(e,t)=>{let n=t;if(e.composing&&!$r)return;let r=Io?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&zo(e,Bo(r),r.getData(`text/html`),i,n)?n.preventDefault():Ro(e,n)};var Vo=class{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}},Ho=Zr?`altKey`:`ctrlKey`;function Uo(e,t){let n;return e.someProp(`dragCopies`,e=>{n||=e(t)}),n==null?!t[Ho]:!n}V.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(po(n)),o;if(!(a&&a.pos>=i.from&&a.pos<=(i instanceof I?i.to-1:i.to))){if(r&&r.mightDrag)o=I.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=I.create(e.state.doc,t.posBefore))}}let{dom:s,text:c,slice:l}=Ba(e,(o||e.state.selection).content());(!n.dataTransfer.files.length||!L||Jr>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Io?`Text`:`text/html`,s.innerHTML),n.dataTransfer.effectAllowed=`copyMove`,Io||n.dataTransfer.setData(`text/plain`,c),e.dragging=new Vo(l,Uo(e,n),o)},V.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},ro.dragover=ro.dragenter=(e,t)=>t.preventDefault(),ro.drop=(e,t)=>{try{Wo(e,t,e.dragging)}finally{e.dragging=null}};function Wo(e,t,n){if(!t.dataTransfer)return;let r=e.posAtCoords(po(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=Va(e,Bo(t.dataTransfer),Io?null:t.dataTransfer.getData(`text/html`),!1,i);let o=!!(n&&Uo(e,t));if(e.someProp(`handleDrop`,n=>n(e,t,a||M.empty,o))){t.preventDefault();return}if(!a)return;t.preventDefault();let s=a?jn(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&&I.isSelectable(a.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new I(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(_a(e,f,c.doc.resolve(t)))}e.focus(),e.dispatch(c.setMeta(`uiEvent`,`drop`))}V.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())&&ca(e)},20))},V.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)},V.beforeinput=(e,t)=>{if(L&&$r&&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,Fr(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 ro)V[e]=ro[e];function Go(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 Ko=class e{constructor(e,t){this.toDOM=e,this.spec=t||Zo,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 Yo(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&&Go(this.spec,t.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}},qo=class e{constructor(e,t){this.attrs=e,this.spec=t||Zo}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 Yo(i,a,this)}valid(e,t){return t.from<t.to}eq(t){return this==t||t instanceof e&&Go(this.attrs,t.attrs)&&Go(this.spec,t.spec)}static is(t){return t.type instanceof e}destroy(){}},Jo=class e{constructor(e,t){this.attrs=e,this.spec=t||Zo}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 Yo(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&&Go(this.attrs,t.attrs)&&Go(this.spec,t.spec)}destroy(){}},Yo=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 Ko(n,r))}static inline(t,n,r,i){return new e(t,n,new qo(r,i))}static node(t,n,r,i){return new e(t,n,new Jo(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof qo}get widget(){return this.type instanceof Ko}},Xo=[],Zo={},Qo=class e{constructor(e,t){this.local=e.length?e:Xo,this.children=t.length?t:Xo}static create(e,t){return t.length?ss(t,e,0,Zo):$o}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==$o||e.maps.length==0?this:this.mapInner(e,t,0,0,n||Zo)}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?ts(this.children,o||[],t,n,r,i,a):o?new e(o.sort(cs),Xo):$o}add(t,n){return n.length?this==$o?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=is(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,ss(s,e,o+1,Zo)),a+=3}});let o=ns(a?as(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(cs):this.local,i||this.children)}remove(e){return e.length==0||this==$o?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==$o?(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):$o}forChild(t,n){if(this==$o)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 qo){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(cs),Xo);return r?new es([t,r]):t}return r||$o}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 ls(this.localsInner(e))}localsInner(e){if(this==$o)return Xo;if(e.inlineContent||!this.local.some(qo.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof qo||t.push(this.local[e]);return t}forEachSet(e){e(this)}};Qo.empty=new Qo([],[]),Qo.removeOverlap=ls;var $o=Qo.empty,es=class e{constructor(e){this.members=e}map(t,n){let r=this.members.map(e=>e.map(t,n,Zo));return e.from(r)}forChild(t,n){if(n.isLeaf)return Qo.empty;let r=[];for(let i=0;i<this.members.length;i++){let a=this.members[i].forChild(t,n);a!=$o&&(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?ls(n?t:t.sort(cs)):Xo}static from(t){switch(t.length){case 0:return $o;case 1:return t[0];default:return new e(t.every(e=>e instanceof Qo)?t:t.reduce((e,t)=>e.concat(t instanceof Qo?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}};function ts(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==$o?(s[t+1]=-2,c=!0):(s[t]=u,s[t+1]=d,s[t+2]=r)}else c=!0}if(c){let c=ss(rs(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 Qo(t.sort(cs),s)}function ns(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 Yo(i.from+t,i.to+t,i.type))}return n}function rs(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 is(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 as(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function ss(e,t,n,r){let i=[],a=!1;t.forEach((t,o)=>{let s=is(e,t,o+n);if(s){a=!0;let e=ss(s,t,n+o+1,r);e!=$o&&i.push(o,o+t.nodeSize,e)}});let o=ns(a?as(e):e,-n).sort(cs);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 Qo(o,i):$o}function cs(e,t){return e.from-t.from||e.to-t.to}function ls(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),us(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),us(t,i,r.copy(a.from,r.to)));break}}}return t}function us(e,t,n){for(;t<e.length&&cs(n,e[t])>0;)t++;e.splice(t,0,n)}function ds(e){let t=[];return e.someProp(`decorations`,n=>{let r=n(e.state);r&&r!=$o&&t.push(r)}),e.cursorWrapper&&t.push(Qo.create(e.state.doc,[e.cursorWrapper.deco])),es.from(t)}var fs={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},ps=Wr&&Gr<=11,ms=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}},hs=class{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new ms,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]);Wr&&Gr<=11&&t.some(e=>e.type==`childList`&&e.removedNodes.length||e.type==`characterData`&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():Yr&&e.composing&&t.some(e=>e.type==`childList`&&e.target.nodeName==`TR`)?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),ps&&(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,fs)),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(va(this.view)){if(this.suppressingSelectionUpdates)return ca(this.view);if(Wr&&Gr<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Er(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=Sr(n))t.add(n);for(let r=e.anchorNode;r;r=Sr(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)&&va(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||L&&(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(Kr&&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||xs(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&&Pr(n)&&(c=oa(e))&&c.eq(P.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,ca(e),this.currentSelection.set(n),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,a),vs(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,Ss(e,s)),this.handleDOMChange(i,a,o,s),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||ca(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(Wr&&Gr<=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?xr(r)+1:0,o=n.localPosFromDOM(e.target,a,-1),s=i&&i.parentNode==e.target?xr(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}}},gs=new WeakMap,_s=!1;function vs(e){if(!gs.has(e)&&(gs.set(e,null),[`normal`,`nowrap`,`pre-line`].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=Kr,_s)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.`),_s=!0}}function ys(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,o=e.domAtPos(e.state.selection.anchor);return Er(o.node,o.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function bs(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return ys(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?ys(e,n):null}function xs(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 Ss(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 Cs(e,t,n){let{node:r,fromOffset:i,toOffset:a,from:o,to:s}=e.docView.parseRange(t,n),c=e.domSelectionRange(),l,u=c.anchorNode;if(u&&e.dom.contains(u.nodeType==1?u:u.parentNode)&&(l=[{node:u,offset:c.anchorOffset}],Pr(c)||l.push({node:c.focusNode,offset:c.focusOffset})),L&&e.input.lastKeyCode===8)for(let e=a;e>i;e--){let t=r.childNodes[e-1],n=t.pmViewDesc;if(t.nodeName==`BR`&&!n){a=e;break}if(!n||n.size)break}let d=e.state.doc,f=e.someProp(`domParser`)||_t.fromSchema(e.state.schema),p=d.resolve(o),m=null,h=f.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:i,to:a,preserveWhitespace:p.parent.type.whitespace==`pre`?`full`:!0,findPositions:l,ruleFromNode:ws,context:p});if(l&&l[0].pos!=null){let e=l[0].pos,t=l[1]&&l[1].pos;t??=e,m={anchor:e+o,head:t+o}}return{doc:h,sel:m,from:o,to:s}}function ws(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName==`BR`&&e.parentNode){if(Yr&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement(`div`);return e.appendChild(document.createElement(`li`)),{skip:e}}else if(e.parentNode.lastChild==e||Yr&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName==`IMG`&&e.getAttribute(`mark-placeholder`))return{ignore:!0};return null}var Ts=/^(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 Es(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=oa(e,t);if(n&&!e.state.selection.eq(n)){if(L&&$r&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp(`handleKeyDown`,t=>t(e,Fr(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=Cs(e,t,n),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=js(d.content,l.doc.content,l.from,f,p);if(m&&e.input.domChangeCount++,(Xr&&e.input.lastIOSEnter>Date.now()-225||$r)&&i.some(e=>e.nodeType==1&&!Ts.test(e.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp(`handleKeyDown`,t=>t(e,Fr(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(!m)if(r&&c instanceof F&&!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=Ds(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 F&&(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)),Wr&&Gr<=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((Xr&&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,Fr(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>m.start&&ks(u,m.start,m.endA,h,g)&&e.someProp(`handleKeyDown`,t=>t(e,Fr(8,`Backspace`)))){$r&&L&&e.domObserver.suppressSelectionUpdates();return}L&&m.endB==m.start&&(e.input.lastChromeDelete=Date.now()),$r&&!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,Fr(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=Ds(e,n.doc,l.sel);t&&!(L&&e.composing&&t.empty&&(m.start!=m.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==y||t.head==n.mapping.map(b)-1)||Wr&&t.empty&&t.head==y)&&n.setSelection(t)}return a&&n.setMeta(`composition`,a),n.scrollIntoView()},S;if(v)if(h.pos==g.pos){Wr&&Gr<=11&&h.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>ca(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=Os(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 Ds(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:_a(e,t.resolve(n.anchor),t.resolve(n.head))}function Os(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(A.from(l).eq(e))return{mark:s,type:o}}function ks(e,t,n,r,i){if(n-t<=i.pos-r.pos||As(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(As(a,!0,!0));return!o.parent.isTextblock||o.pos>n||As(o,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(o.parent.content)}function As(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 js(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 Ms=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 ao,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(zs),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=Fs(this),Ps(this),this.nodeViews=Ls(this),this.docView=Bi(this.state.doc,Ns(this),ds(this),this.dom,this),this.domObserver=new hs(this,(e,t,n,r)=>Es(this,e,t,n,r)),this.domObserver.start(),oo(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&&co(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(zs),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&&(Mo(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=Ls(this);Rs(e,this.nodeViews)&&(this.nodeViews=e,r=!0)}(a||t.handleDOMEvents!=this._props.handleDOMEvents)&&co(this),this.editable=Fs(this),Ps(this);let o=ds(this),s=Ns(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&&ai(this);if(i){this.domObserver.stop();let t=l&&(Wr||L)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&Is(n.selection,e.selection);if(l){let n=L?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=No(this)),(r||!this.docView.update(e.doc,s,o,this))&&(this.docView.updateOuterDeco(s),this.docView.destroy(),this.docView=Bi(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())&&ba(this)&&i.delaySelUpdate())?ca(this,t):(ha(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&&si(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 I){let t=this.docView.domAfterPos(this.state.selection.from);t.nodeType==1&&ii(this,t.getBoundingClientRect(),e)}else ii(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 Vo(e.slice,e.move,r<0?void 0:I.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(Wr){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&&ui(this.dom),ca(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 vi(this,e)}coordsAtPos(e,t=1){return Si(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 Mi(this,t||this.state,e)}pasteHTML(e,t){return zo(this,``,e,!1,t||new ClipboardEvent(`paste`))}pasteText(e,t){return zo(this,e,null,!0,t||new ClipboardEvent(`paste`))}serializeForClipboard(e){return Ba(this,e)}destroy(){this.docView&&(so(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],ds(this),this),this.dom.textContent=``):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,Tr())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return fo(this,e)}domSelectionRange(){let e=this.domSelection();return e?Yr&&this.root.nodeType===11&&Ir(this.dom.ownerDocument)==this.dom&&bs(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}};Ms.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function Ns(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`,[Yo.node(0,e.state.doc.content.size,t)]}function Ps(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:Yo.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function Fs(e){return!e.someProp(`editable`,t=>t(e.state)===!1)}function Is(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 Ls(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 Rs(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 zs(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 Bs={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:`'`},Vs={48:`)`,49:`!`,50:`@`,51:`#`,52:`$`,53:`%`,54:`^`,55:`&`,56:`*`,57:`(`,59:`:`,61:`+`,173:`_`,186:`:`,187:`+`,188:`<`,189:`_`,190:`>`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},Hs=typeof navigator<`u`&&/Macintosh/.test(navigator.userAgent),Us=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Ws=0;Ws<10;Ws++)Bs[48+Ws]=Bs[96+Ws]=String(Ws);for(var Ws=1;Ws<=24;Ws++)Bs[Ws+111]=`F`+Ws;for(var Ws=65;Ws<=90;Ws++)Bs[Ws]=String.fromCharCode(Ws+32),Vs[Ws]=String.fromCharCode(Ws);for(var Gs in Bs)Vs.hasOwnProperty(Gs)||(Vs[Gs]=Bs[Gs]);function Ks(e){var t=!(Hs&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||Us&&e.shiftKey&&e.key&&e.key.length==1||e.key==`Unidentified`)&&e.key||(e.shiftKey?Vs:Bs)[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 qs=typeof navigator<`u`&&/Macintosh|iPhone|iPad|iPod/.test(navigator.userAgent),Js=typeof navigator<`u`&&/Win/.test(navigator.platform);function Ys(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))qs?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 Xs(e){let t=Object.create(null);for(let n in e)t[Ys(n)]=e[n];return t}function Zs(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 Qs(e){return new _r({props:{handleKeyDown:$s(e)}})}function $s(e){let t=Xs(e);return function(e,n){let r=Ks(n),i,a=t[Zs(r,n)];if(a&&a(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=` `){if(n.shiftKey){let i=t[Zs(r,n,!1)];if(i&&i(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(Js&&n.ctrlKey&&n.altKey)&&(i=Bs[n.keyCode])&&i!=r){let r=t[Zs(i,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}var ec=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function W(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`backward`,e):n.parentOffset>0)?null:n}var tc=(e,t,n)=>{let r=W(e,n);if(!r)return!1;let i=sc(r);if(!i){let n=r.blockRange(),i=n&&N(n);return i==null?!1:(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let a=i.nodeBefore;if(wc(e,i,t,-1))return!0;if(r.parent.content.size==0&&(ac(a,`end`)||I.isSelectable(a)))for(let n=r.depth;;n--){let o=Mn(e.doc,r.before(n),r.after(n),M.empty);if(o&&o.slice.size<o.to-o.from){if(t){let n=e.tr.step(o);n.setSelection(ac(a,`end`)?P.findFrom(n.doc.resolve(n.mapping.map(i.pos,-1)),-1):I.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},nc=(e,t,n)=>{let r=W(e,n);if(!r)return!1;let i=sc(r);return i?ic(e,i,t):!1},rc=(e,t,n)=>{let r=cc(e,n);if(!r)return!1;let i=dc(r);return i?ic(e,i,t):!1};function ic(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=Mn(e.doc,i,o,M.empty);if(!s||s.from!=i||s instanceof an&&s.slice.size>=o-i)return!1;if(n){let t=e.tr.step(s);t.setSelection(F.create(t.doc,i)),n(t.scrollIntoView())}return!0}function ac(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 oc=(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=sc(r)}let o=a&&a.nodeBefore;return!o||!I.isSelectable(o)?!1:(t&&t(e.tr.setSelection(I.create(e.doc,a.pos-o.nodeSize)).scrollIntoView()),!0)};function sc(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 cc(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`forward`,e):n.parentOffset<n.parent.content.size)?null:n}var lc=(e,t,n)=>{let r=cc(e,n);if(!r)return!1;let i=dc(r);if(!i)return!1;let a=i.nodeAfter;if(wc(e,i,t,1))return!0;if(r.parent.content.size==0&&(ac(a,`start`)||I.isSelectable(a))){let n=Mn(e.doc,r.before(),r.after(),M.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(ac(a,`start`)?P.findFrom(r.doc.resolve(r.mapping.map(i.pos)),1):I.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},uc=(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=dc(r)}let o=a&&a.nodeAfter;return!o||!I.isSelectable(o)?!1:(t&&t(e.tr.setSelection(I.create(e.doc,a.pos)).scrollIntoView()),!0)};function dc(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 fc=(e,t)=>{let n=e.selection,r=n instanceof I,i;if(r){if(n.node.isTextblock||!Tn(e.doc,n.from))return!1;i=n.from}else if(i=On(e.doc,n.from,-1),i==null)return!1;if(t){let n=e.tr.join(i);r&&n.setSelection(I.create(n.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(n.scrollIntoView())}return!0},pc=(e,t)=>{let n=e.selection,r;if(n instanceof I){if(n.node.isTextblock||!Tn(e.doc,n.to))return!1;r=n.to}else if(r=On(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},mc=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),a=i&&N(i);return a==null?!1:(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},hc=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(`
11
- `).scrollIntoView()),!0)};function G(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 gc=(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=G(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(P.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},_c=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof rr||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=G(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(F.create(o.doc,n+1)),t(o.scrollIntoView())}return!0},vc=(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(Cn(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),i=r&&N(r);return i==null?!1:(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)};function yc(e){return(t,n)=>{let{$from:r,$to:i}=t.selection;if(t.selection instanceof I&&t.selection.node.isBlock)return!r.parentOffset||!Cn(t.doc,r.pos)?!1:(n&&n(t.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let a=[],o,s,c=!1,l=!1;for(let t=r.depth;;t--)if(r.node(t).isBlock){c=r.end(t)==r.pos+(r.depth-t),l=r.start(t)==r.pos-(r.depth-t),s=G(r.node(t-1).contentMatchAt(r.indexAfter(t-1)));let n=e&&e(i.parent,c,r);a.unshift(n||(c&&s?{type:s}:null)),o=t;break}else{if(t==1)return!1;a.unshift(null)}let u=t.tr;(t.selection instanceof F||t.selection instanceof rr)&&u.deleteSelection();let d=u.mapping.map(r.pos),f=Cn(u.doc,d,a.length,a);if(f||=(a[0]=s?{type:s}:null,Cn(u.doc,d,a.length,a)),!f)return!1;if(u.split(d,a.length,a),!c&&l&&r.node(o).type!=s){let e=u.mapping.map(r.before(o)),t=u.doc.resolve(e);s&&r.node(o-1).canReplaceWith(t.index(),t.index()+1,s)&&u.setNodeMarkup(u.mapping.map(r.before(o)),s)}return n&&n(u.scrollIntoView()),!0}}var bc=yc(),xc=(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(I.create(e.doc,i))),!0)},Sc=(e,t)=>(t&&t(e.tr.setSelection(new rr(e.doc))),!0);function Cc(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||Tn(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function wc(e,t,n,r){let i=t.nodeBefore,a=t.nodeAfter,o,s,c=i.type.spec.isolating||a.type.spec.isolating;if(!c&&Cc(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=A.empty;for(let e=o.length-1;e>=0;e--)s=A.from(o[e].create(null,s));s=A.from(i.copy(s));let c=e.tr.step(new on(t.pos-1,r,t.pos,r,new M(s,1,0),o.length,!0)),l=c.doc.resolve(r+2*o.length);l.nodeAfter&&l.nodeAfter.type==i.type&&Tn(c.doc,l.pos)&&c.join(l.pos),n(c.scrollIntoView())}return!0}let u=a.type.spec.isolating||r>0&&c?null:P.findFrom(t,1),d=u&&u.$from.blockRange(u.$to),f=d&&N(d);if(f!=null&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(l&&ac(a,`start`,!0)&&ac(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=A.empty;for(let e=o.length-1;e>=0;e--)r=A.from(o[e].copy(r));n(e.tr.step(new on(t.pos-o.length,t.pos+a.nodeSize,t.pos+c,t.pos+a.nodeSize-c,new M(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function Tc(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(F.create(t.doc,e<0?i.start(a):i.end(a)))),!0):!1}}var Ec=Tc(-1),Dc=Tc(1);function Oc(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a),s=o&&pn(o,e,t);return s?(r&&r(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function kc(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 Ac(...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 jc=Ac(ec,tc,oc),Mc=Ac(ec,lc,uc),Nc={Enter:Ac(hc,_c,vc,bc),"Mod-Enter":gc,Backspace:jc,"Mod-Backspace":jc,"Shift-Backspace":jc,Delete:Mc,"Mod-Delete":Mc,"Mod-a":Sc},Pc={"Ctrl-h":Nc.Backspace,"Alt-Backspace":Nc[`Mod-Backspace`],"Ctrl-d":Nc.Delete,"Ctrl-Alt-Backspace":Nc[`Mod-Delete`],"Alt-Delete":Nc[`Mod-Delete`],"Alt-d":Nc[`Mod-Delete`],"Ctrl-a":Ec,"Ctrl-e":Dc};for(let e in Nc)Pc[e]=Nc[e];typeof navigator<`u`?/Macintosh|iPhone|iPad|iPod/.test(navigator.userAgent):typeof os<`u`&&os.platform&&os.platform();function Fc(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 Ic(s,o,e,t)?(r&&r(s.scrollIntoView()),!0):!1}}function Ic(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 Be(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new Be(t.$from,o.resolve(t.$to.end(t.depth)),t.depth)),i=!0}let s=pn(a,n,r,t);return s?(e&&Lc(e,t,s,i,n),!0):!1}function Lc(e,t,n,r,i){let a=A.empty;for(let e=n.length-1;e>=0;e--)a=A.from(n[e].type.create(n[e].attrs,a));e.step(new on(t.start-(r?2:0),t.end,t.start,t.end,new M(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&&Cn(e.doc,c,s)&&(e.split(c,s),c+=2*s),c+=l.child(n).nodeSize;return e}function Rc(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?zc(t,n,e,a):Bc(t,n,a):!0:!1}}function zc(e,t,n,r){let i=e.tr,a=r.end,o=r.$to.end(r.depth);a<o&&(i.step(new on(a-1,o,a,o,new M(A.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new Be(i.doc.resolve(r.$from.pos),i.doc.resolve(o),r.depth));let s=N(r);if(s==null)return!1;i.lift(r,s);let c=i.doc.resolve(i.mapping.map(a,-1)-1);return Tn(i.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&i.join(c.pos),t(i.scrollIntoView()),!0}function Bc(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?A.empty:A.from(i))))return!1;let d=a.pos,f=d+o.nodeSize;return r.step(new on(d-+!!s,f+ +!!c,d+1,f-1,new M((s?A.empty:A.from(i.copy(A.empty))).append(c?A.empty:A.from(i.copy(A.empty))),+!s,+!c),+!s)),t(r.scrollIntoView()),!0}function Vc(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=A.from(r?e.create():null),o=new M(A.from(e.create(null,A.from(s.type.create(null,i)))),r?3:1,0),l=a.start,u=a.end;n(t.tr.step(new on(l-(r?3:1),u,l,u,o,1,!0)).scrollIntoView())}return!0}}function Hc(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 Uc=class{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}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)}}buildProps(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o={tr:e,editor:r,view:a,state:Hc({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}},Wc=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={}}};function K(e,t,n){return e.config[t]===void 0&&e.parent?K(e.parent,t,n):typeof e.config[t]==`function`?e.config[t].bind({...n,parent:e.parent?K(e.parent,t,n):null}):e.config[t]}function Gc(e){return{baseExtensions:e.filter(e=>e.type===`extension`),nodeExtensions:e.filter(e=>e.type===`node`),markExtensions:e.filter(e=>e.type===`mark`)}}function Kc(e){let t=[],{nodeExtensions:n,markExtensions:r}=Gc(e),i=[...n,...r],a={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(e=>{let n=K(e,`addGlobalAttributes`,{name:e.name,options:e.options,storage:e.storage,extensions:i});n&&n().forEach(e=>{e.types.forEach(n=>{Object.entries(e.attributes).forEach(([e,r])=>{t.push({type:n,name:e,attribute:{...a,...r}})})})})}),i.forEach(e=>{let n=K(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 q(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}function qc(...e){return e.filter(e=>!!e).reduce((e,t)=>{let n={...e};return Object.entries(t).forEach(([e,t])=>{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=t?t.split(`;`).map(e=>e.trim()).filter(Boolean):[],i=n[e]?n[e].split(`;`).map(e=>e.trim()).filter(Boolean):[],a=new Map;i.forEach(e=>{let[t,n]=e.split(`:`).map(e=>e.trim());a.set(t,n)}),r.forEach(e=>{let[t,n]=e.split(`:`).map(e=>e.trim());a.set(t,n)}),n[e]=Array.from(a.entries()).map(([e,t])=>`${e}: ${t}`).join(`; `)}else n[e]=t}),n},{})}function Jc(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)=>qc(e,t),{})}function Yc(e){return typeof e==`function`}function J(e,t=void 0,...n){return Yc(e)?t?e.bind(t)(...n):e(...n):e}function Xc(e={}){return Object.keys(e).length===0&&e.constructor===Object}function Zc(e){return typeof e==`string`?e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e===`true`?!0:e===`false`?!1:e:e}function Qc(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):Zc(n.getAttribute(t.name));return r==null?e:{...e,[t.name]:r}},{});return{...r,...i}}}}function $c(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>e===`attrs`&&Xc(t)?!1:t!=null))}function el(e,t){let n=Kc(e),{nodeExtensions:r,markExtensions:i}=Gc(e);return new pt({topNode:r.find(e=>K(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=$c({...e.reduce((e,t)=>{let n=K(t,`extendNodeSchema`,a);return{...e,...n?n(r):{}}},{}),content:J(K(r,`content`,a)),marks:J(K(r,`marks`,a)),group:J(K(r,`group`,a)),inline:J(K(r,`inline`,a)),atom:J(K(r,`atom`,a)),selectable:J(K(r,`selectable`,a)),draggable:J(K(r,`draggable`,a)),code:J(K(r,`code`,a)),whitespace:J(K(r,`whitespace`,a)),linebreakReplacement:J(K(r,`linebreakReplacement`,a)),defining:J(K(r,`defining`,a)),isolating:J(K(r,`isolating`,a)),attrs:Object.fromEntries(i.map(e=>[e.name,{default:e?.attribute?.default}]))}),s=J(K(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>Qc(e,i)));let c=K(r,`renderHTML`,a);c&&(o.toDOM=e=>c({node:e,HTMLAttributes:Jc(e,i)}));let l=K(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=$c({...e.reduce((e,t)=>{let n=K(t,`extendMarkSchema`,a);return{...e,...n?n(r):{}}},{}),inclusive:J(K(r,`inclusive`,a)),excludes:J(K(r,`excludes`,a)),group:J(K(r,`group`,a)),spanning:J(K(r,`spanning`,a)),code:J(K(r,`code`,a)),attrs:Object.fromEntries(i.map(e=>[e.name,{default:e?.attribute?.default}]))}),s=J(K(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>Qc(e,i)));let c=K(r,`renderHTML`,a);return c&&(o.toDOM=e=>c({mark:e,HTMLAttributes:Jc(e,i)})),[r.name,o]}))})}function tl(e,t){return t.nodes[e]||t.marks[e]||null}function nl(e,t){return Array.isArray(t)?t.some(t=>(typeof t==`string`?t:t.name)===e.name):t}function rl(e,t){let n=jt.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement(`div`);return r.appendChild(n),r.innerHTML}var il=(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 al(e){return Object.prototype.toString.call(e)===`[object RegExp]`}var ol=class{constructor(e){this.find=e.find,this.handler=e.handler}},sl=(e,t)=>{if(al(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 cl(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=il(c)+i;return a.forEach(e=>{if(l)return;let a=sl(u,e.find);if(!a)return;let c=s.state.tr,d=Hc({state:s.state,transaction:c}),f={from:n-(a[0].length-i.length),to:r},{commands:p,chain:m,can:h}=new Uc({editor:t,state:d});e.handler({state:d,range:f,match:a,commands:p,chain:m,can:h})===null||!c.steps.length||(c.setMeta(o,{transform:c,from:n,to:r,text:i}),s.dispatch(c),l=!0)}),l}function ll(e){let{editor:t,rules:n}=e,r=new _r({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:rl(A.from(e),a.schema);let{from:i}=s,o=i+e.length;cl({editor:t,from:i,to:o,text:e,rules:n,plugin:r})}),e.selectionSet||e.docChanged?null:i}},props:{handleTextInput(e,i,a,o){return cl({editor:t,from:i,to:a,text:o,rules:n,plugin:r})},handleDOMEvents:{compositionend:e=>(setTimeout(()=>{let{$cursor:i}=e.state.selection;i&&cl({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?cl({editor:t,from:a.pos,to:a.pos,text:`
12
- `,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function ul(e){return Object.prototype.toString.call(e).slice(8,-1)}function dl(e){return ul(e)===`Object`?e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype:!1}function fl(e,t){let n={...e};return dl(e)&&dl(t)&&Object.keys(t).forEach(r=>{dl(t[r])&&dl(e[r])?n[r]=fl(e[r],t[r]):n[r]=t[r]}),n}var pl=class e{constructor(e={}){this.type=`mark`,this.name=`mark`,this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=J(K(this,`addOptions`,{name:this.name}))),this.storage=J(K(this,`addStorage`,{name:this.name,options:this.options}))||{}}static create(t={}){return new e(t)}configure(e={}){let t=this.extend({...this.config,addOptions:()=>fl(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(t={}){let n=new e(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=J(K(n,`addOptions`,{name:n.name})),n.storage=J(K(n,`addStorage`,{name:n.name,options:n.options})),n}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}};function ml(e){return typeof e==`number`}var hl=class{constructor(e){this.find=e.find,this.handler=e.handler}},gl=(e,t,n)=>{if(al(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 _l(e){let{editor:t,state:n,from:r,to:i,rule:a,pasteEvent:o,dropEvent:s}=e,{commands:c,chain:l,can:u}=new Uc({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,i,(e,t)=>{if(!e.isTextblock||e.type.spec.code)return;let f=Math.max(r,t),p=Math.min(i,t+e.content.size);gl(e.textBetween(f-t,p-t,void 0,``),a.find,o).forEach(e=>{if(e.index===void 0)return;let t=f+e.index+1,r=t+e[0].length,i={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},p=a.handler({state:n,range:i,match:e,commands:c,chain:l,can:u,pasteEvent:o,dropEvent:s});d.push(p)})}),d.every(e=>e!==null)}var vl=null,yl=e=>{var t;let n=new ClipboardEvent(`paste`,{clipboardData:new DataTransfer});return(t=n.clipboardData)==null||t.setData(`text/html`,e),n};function bl(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,l=Hc({state:e,transaction:c});if(!(!_l({editor:t,state:l,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 _r({view(e){let n=n=>{r=e.dom.parentElement?.contains(n.target)?e.dom.parentElement:null,r&&(vl=t)},i=()=>{vl&&=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=vl;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:rl(A.from(t),r.schema);let{from:n}=d,i=n+t.length,a=yl(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(!(!ml(p)||!m||p===m.b))return c({rule:e,state:r,from:p,to:m,pasteEvt:o})}}))}function xl(e){let t=e.filter((t,n)=>e.indexOf(t)!==n);return Array.from(new Set(t))}var Sl=class e{constructor(t,n){this.splittableMarks=[],this.editor=n,this.extensions=e.resolve(t),this.schema=el(this.extensions,n),this.setupExtensions()}static resolve(t){let n=e.sort(e.flatten(t)),r=xl(n.map(e=>e.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(e=>`'${e}'`).join(`, `)}]. This can lead to issues.`),n}static flatten(e){return e.map(e=>{let t=K(e,`addExtensions`,{name:e.name,options:e.options,storage:e.storage});return t?[e,...this.flatten(t())]:e}).flat(10)}static sort(e){return e.sort((e,t)=>{let n=K(e,`priority`)||100,r=K(t,`priority`)||100;return n>r?-1:+(n<r)})}get commands(){return this.extensions.reduce((e,t)=>{let n=K(t,`addCommands`,{name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:tl(t.name,this.schema)});return n?{...e,...n()}:e},{})}get plugins(){let{editor:t}=this,n=e.sort([...this.extensions].reverse()),r=[],i=[],a=n.map(e=>{let n={name:e.name,options:e.options,storage:e.storage,editor:t,type:tl(e.name,this.schema)},a=[],o=K(e,`addKeyboardShortcuts`,n),s={};if(e.type===`mark`&&K(e,`exitable`,n)&&(s.ArrowRight=()=>pl.handleExit({editor:t,mark:e})),o){let e=Object.fromEntries(Object.entries(o()).map(([e,n])=>[e,()=>n({editor:t})]));s={...s,...e}}let c=Qs(s);a.push(c);let l=K(e,`addInputRules`,n);nl(e,t.options.enableInputRules)&&l&&r.push(...l());let u=K(e,`addPasteRules`,n);nl(e,t.options.enablePasteRules)&&u&&i.push(...u());let d=K(e,`addProseMirrorPlugins`,n);if(d){let e=d();a.push(...e)}return a}).flat();return[ll({editor:t,rules:r}),...bl({editor:t,rules:i}),...a]}get attributes(){return Kc(this.extensions)}get nodeViews(){let{editor:e}=this,{nodeExtensions:t}=Gc(this.extensions);return Object.fromEntries(t.filter(e=>!!K(e,`addNodeView`)).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r=K(t,`addNodeView`,{name:t.name,options:t.options,storage:t.storage,editor:e,type:q(t.name,this.schema)});return r?[t.name,(i,a,o,s,c)=>{let l=Jc(i,n);return r()({node:i,view:a,getPos:o,decorations:s,innerDecorations:c,editor:e,extension:t,HTMLAttributes:l})}]:[]}))}setupExtensions(){this.extensions.forEach(e=>{this.editor.extensionStorage[e.name]=e.storage;let t={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:tl(e.name,this.schema)};e.type===`mark`&&(J(K(e,`keepOnSplit`,t))??!0)&&this.splittableMarks.push(e.name);let n=K(e,`onBeforeCreate`,t),r=K(e,`onCreate`,t),i=K(e,`onUpdate`,t),a=K(e,`onSelectionUpdate`,t),o=K(e,`onTransaction`,t),s=K(e,`onFocus`,t),c=K(e,`onBlur`,t),l=K(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)})}},Cl=class e{constructor(e={}){this.type=`extension`,this.name=`extension`,this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=J(K(this,`addOptions`,{name:this.name}))),this.storage=J(K(this,`addStorage`,{name:this.name,options:this.options}))||{}}static create(t={}){return new e(t)}configure(e={}){let t=this.extend({...this.config,addOptions:()=>fl(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(t={}){let n=new e({...this.config,...t});return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=J(K(n,`addOptions`,{name:n.name})),n.storage=J(K(n,`addStorage`,{name:n.name,options:n.options})),n}};function wl(e,t,n){let{from:r,to:i}=t,{blockSeparator:a=`
13
-
14
- `,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;e.isText&&(s+=(e?.text)?.slice(Math.max(r,n)-n,i-n))}),s}function Tl(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}var El=Cl.create({name:`clipboardTextSerializer`,addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new _r({key:new br(`clipboardTextSerializer`),props:{clipboardTextSerializer:()=>{let{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,{ranges:a}=i,o=Math.min(...a.map(e=>e.$from.pos)),s=Math.max(...a.map(e=>e.$to.pos)),c=Tl(n);return wl(r,{from:o,to:s},{...this.options.blockSeparator===void 0?{}:{blockSeparator:this.options.blockSeparator},textSerializers:c})}}})]}}),Dl=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),(n=window==null?void 0:window.getSelection())==null||n.removeAllRanges())}),!0),Ol=(e=!1)=>({commands:t})=>t.setContent(``,e),kl=()=>({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=N(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},Al=e=>t=>e(t),jl=()=>({state:e,dispatch:t})=>_c(e,t),Ml=(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 F(r.doc.resolve(Math.max(o-1,0)))),!0},Nl=()=>({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},Pl=e=>({tr:t,state:n,dispatch:r})=>{let i=q(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},Fl=e=>({tr:t,dispatch:n})=>{let{from:r,to:i}=e;return n&&t.delete(r,i),!0},Il=()=>({state:e,dispatch:t})=>ec(e,t),Ll=()=>({commands:e})=>e.keyboardShortcut(`Enter`),Rl=()=>({state:e,dispatch:t})=>gc(e,t);function zl(e,t,n={strict:!0}){let r=Object.keys(t);return r.length?r.every(r=>n.strict?t[r]===e[r]:al(t[r])?t[r].test(e[r]):t[r]===e[r]):!0}function Bl(e,t,n={}){return e.find(e=>e.type===t&&zl(Object.fromEntries(Object.keys(n).map(t=>[t,e.attrs[t]])),n))}function Vl(e,t,n={}){return!!Bl(e,t,n)}function Hl(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)||(n||=r.node.marks[0]?.attrs,!Bl([...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&&Vl([...e.parent.child(i-1).marks],t,n);)--i,a-=e.parent.child(i).nodeSize;for(;o<e.parent.childCount&&Vl([...e.parent.child(o).marks],t,n);)s+=e.parent.child(o).nodeSize,o+=1;return{from:a,to:s}}function Ul(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 Wl=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let a=Ul(e,r.schema),{doc:o,selection:s}=n,{$from:c,from:l,to:u}=s;if(i){let e=Hl(c,a,t);if(e&&e.from<=l&&e.to>=u){let t=F.create(o,e.from,e.to);n.setSelection(t)}}return!0},Gl=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 Kl(e){return e instanceof F}function ql(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function Jl(e,t=null){if(!t)return null;let n=P.atStart(e),r=P.atEnd(e);if(t===`start`||t===!0)return n;if(t===`end`)return r;let i=n.from,a=r.to;return t===`all`?F.create(e,ql(0,i,a),ql(e.content.size,i,a)):F.create(e,ql(t,i,a),ql(t,i,a))}function Yl(){return/android/i.test(navigator.userAgent)}function Xl(){return/iPhone|iPod/.test(navigator.userAgent)||navigator.userAgent.includes(`Mac`)&&`ontouchend`in document}function Zl(){return typeof navigator<`u`?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}var Ql=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:a})=>{t={scrollIntoView:!0,...t};let o=()=>{(Xl()||Yl())&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),Zl()&&!Xl()&&!Yl()&&r.dom.focus({preventScroll:!0}))})};if(r.hasFocus()&&e===null||e===!1)return!0;if(a&&e===null&&!Kl(n.state.selection))return o(),!0;let s=Jl(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},$l=(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),eu=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),tu=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&&tu(r)}return e};function nu(e){let t=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(t,`text/html`).body;return tu(n)}function ru(e,t,n){if(e instanceof He||e instanceof A)return e;n={slice:!0,parseOptions:{},...n};let r=typeof e==`object`&&!!e,i=typeof e==`string`;if(r)try{if(Array.isArray(e)&&e.length>0)return A.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),ru(``,t,n)}if(i){if(n.errorOnInvalidContent){let r=!1,i=``,a=new pt({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?_t.fromSchema(a).parseSlice(nu(e),n.parseOptions):_t.fromSchema(a).parse(nu(e),n.parseOptions),n.errorOnInvalidContent&&r)throw Error(`[tiptap error]: Invalid HTML content`,{cause:Error(`Invalid element found: ${i}`)})}let r=_t.fromSchema(t);return n.slice?r.parseSlice(nu(e),n.parseOptions).content:r.parse(nu(e),n.parseOptions)}return ru(``,t,n)}function iu(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof an||i instanceof on))return;let a=e.mapping.maps[r],o=0;a.forEach((e,t,n,r)=>{o===0&&(o=r)}),e.setSelection(P.near(e.doc.resolve(o),n))}var au=e=>!(`type`in e),ou=(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:()=>{a.storage.collaboration&&(a.storage.collaboration.isDisabled=!0)}})},s={preserveWhitespace:`full`,...n.parseOptions};if(!n.errorOnInvalidContent&&!a.options.enableContentCheck&&a.options.emitContentError)try{ru(t,a.schema,{parseOptions:s,errorOnInvalidContent:!0})}catch(e){o(e)}try{i=ru(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;if((au(i)?i:[i]).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 f;if(u){if(Array.isArray(t))f=t.map(e=>e.text||``).join(``);else if(t instanceof A){let e=``;t.forEach(t=>{t.text&&(e+=t.text)}),f=e}else f=typeof t==`object`&&t&&t.text?t.text:t;r.insertText(f,c,l)}else f=i,r.replaceWith(c,l,f);n.updateSelection&&iu(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta(`applyInputRules`,{from:c,text:f}),n.applyPasteRules&&r.setMeta(`applyPasteRules`,{from:c,text:f})}return!0},su=()=>({state:e,dispatch:t})=>fc(e,t),cu=()=>({state:e,dispatch:t})=>pc(e,t),lu=()=>({state:e,dispatch:t})=>tc(e,t),uu=()=>({state:e,dispatch:t})=>lc(e,t),du=()=>({state:e,dispatch:t,tr:n})=>{try{let r=On(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},fu=()=>({state:e,dispatch:t,tr:n})=>{try{let r=On(e.doc,e.selection.$from.pos,1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},pu=()=>({state:e,dispatch:t})=>nc(e,t),mu=()=>({state:e,dispatch:t})=>rc(e,t);function hu(){return typeof navigator<`u`?/Macintosh/.test(navigator.userAgent):!1}function gu(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))Xl()||hu()?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 _u=e=>({editor:t,view:n,tr:r,dispatch:i})=>{let a=gu(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 vu(e,t,n={}){let{from:r,to:i,empty:a}=e.selection,o=t?q(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=>zl(e.node.attrs,n,{strict:!1}));return a?!!l.length:l.reduce((e,t)=>e+t.to-t.from,0)>=c}var yu=(e,t={})=>({state:n,dispatch:r})=>vu(n,q(e,n.schema),t)?mc(n,r):!1,bu=()=>({state:e,dispatch:t})=>vc(e,t),xu=e=>({state:t,dispatch:n})=>Rc(q(e,t.schema))(t,n),Su=()=>({state:e,dispatch:t})=>hc(e,t);function Cu(e,t){return t.nodes[e]?`node`:t.marks[e]?`mark`:null}function wu(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 Tu=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=Cu(typeof e==`string`?e:e.name,r.schema);return s?(s===`node`&&(a=q(e,r.schema)),s===`mark`&&(o=Ul(e,r.schema)),i&&n.selection.ranges.forEach(e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,(e,r)=>{a&&a===e.type&&n.setNodeMarkup(r,void 0,wu(e.attrs,t)),o&&e.marks.length&&e.marks.forEach(i=>{o===i.type&&n.addMark(r,r+e.nodeSize,o.create(wu(i.attrs,t)))})})}),!0):!1},Eu=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),Du=()=>({tr:e,dispatch:t})=>{if(t){let t=new rr(e.doc);e.setSelection(t)}return!0},Ou=()=>({state:e,dispatch:t})=>oc(e,t),ku=()=>({state:e,dispatch:t})=>uc(e,t),Au=()=>({state:e,dispatch:t})=>xc(e,t),ju=()=>({state:e,dispatch:t})=>Dc(e,t),Mu=()=>({state:e,dispatch:t})=>Ec(e,t);function Nu(e,t,n={},r={}){return ru(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var Pu=(e,t=!1,n={},r={})=>({editor:i,tr:a,dispatch:o,commands:s})=>{let{doc:c}=a;if(n.preserveWhitespace!==`full`){let s=Nu(e,i.schema,n,{errorOnInvalidContent:r.errorOnInvalidContent??i.options.enableContentCheck});return o&&a.replaceWith(0,c.content.size,s).setMeta(`preventUpdate`,!t),!0}return o&&a.setMeta(`preventUpdate`,!t),s.insertContentAt({from:0,to:c.content.size},e,{parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent??i.options.enableContentCheck})};function Fu(e,t){let n=Ul(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 Iu(e,t){let n=new Xn(e);return t.forEach(e=>{e.steps.forEach(e=>{n.step(e)})}),n}function Lu(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}function Ru(e,t,n){let r=[];return e.nodesBetween(t.from,t.to,(e,t)=>{n(e)&&r.push({node:e,pos:t})}),r}function zu(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 Bu(e){return t=>zu(t.$from,e)}function Vu(e,t){return wl(e,{from:0,to:e.content.size},t)}function Hu(e,t){let n=q(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 Uu(e,t){let n=Cu(typeof t==`string`?t:t.name,e.schema);return n===`node`?Hu(e,t):n===`mark`?Fu(e,t):{}}function Wu(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 Gu(e){let t=Wu(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 Ku(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}})})}),Gu(r)}function qu(e,t,n){let r=[];return e===t?n.resolve(e).marks().forEach(t=>{let i=Hl(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}function Ju(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}))}function Yu(e,t,n={}){let{empty:r,ranges:i}=e.selection,a=t?Ul(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>a?a.name===e.type.name:!0).find(e=>zl(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(!e.isText&&!e.marks.length)return;let n=Math.max(r,t),a=Math.min(i,t+e.nodeSize),c=a-n;o+=c,s.push(...e.marks.map(e=>({mark:e,from:n,to:a})))})}),o===0)return!1;let c=s.filter(e=>a?a.name===e.mark.type.name:!0).filter(e=>zl(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 Xu(e,t,n={}){if(!t)return vu(e,null,n)||Yu(e,null,n);let r=Cu(t,e.schema);return r===`node`?vu(e,t,n):r===`mark`?Yu(e,t,n):!1}function Zu(e,t){let{nodeExtensions:n}=Gc(t),r=n.find(t=>t.name===e);if(!r)return!1;let i=J(K(r,`group`,{name:r.name,options:r.options,storage:r.storage}));return typeof i==`string`?i.split(` `).includes(`list`):!1}function Qu(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){if(n){if(e.type.name===`hardBreak`)return!0;if(e.isText)return/^\s*$/m.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&&(Qu(e,{ignoreWhitespace:n,checkChildren:t})||(r=!1))}),r}return!1}function $u(e,t,n){let{selection:r}=t,i=null;if(Kl(r)&&(i=r.$cursor),i){let t=e.storedMarks??i.marks();return!!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 ed=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=n,{empty:o,ranges:s}=a,c=Ul(e,r.schema);if(i)if(o){let e=Fu(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 $u(r,n,c)},td=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),nd=(e,t={})=>({state:n,dispatch:r,chain:i})=>{let a=q(e,n.schema),o;return n.selection.$anchor.sameParent(n.selection.$head)&&(o=n.selection.$anchor.parent.attrs),a.isTextblock?i().command(({commands:e})=>kc(a,{...o,...t})(n)?!0:e.clearNodes()).command(({state:e})=>kc(a,{...o,...t})(e,r)).run():(console.warn(`[tiptap warn]: Currently "setNode()" only supports text block nodes.`),!1)},rd=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,r=ql(e,0,n.content.size),i=I.create(n,r);t.setSelection(i)}return!0},id=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,{from:r,to:i}=typeof e==`number`?{from:e,to:e}:e,a=F.atStart(n).from,o=F.atEnd(n).to,s=ql(r,a,o),c=ql(i,a,o),l=F.create(n,s,c);t.setSelection(l)}return!0},ad=e=>({state:t,dispatch:n})=>Vc(q(e,t.schema))(t,n);function od(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 sd=({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=Ju(l,s.node().type.name,s.node().attrs);if(a instanceof I&&a.node.isBlock)return!s.parentOffset||!Cn(o,s.pos)?!1:(r&&(e&&od(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:Lu(s.node(-1).contentMatchAt(s.indexAfter(-1))),p=d&&f?[{type:f,attrs:u}]:void 0,m=Cn(t.doc,t.mapping.map(s.pos),1,p);if(!p&&!m&&Cn(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 F&&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&&od(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return m},cd=(e,t={})=>({tr:n,state:r,dispatch:i,editor:a})=>{let o=q(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=A.empty,r=s.index(-1)?1:s.index(-2)?2:3;for(let t=s.depth-r;t>=s.depth-3;--t)e=A.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={...Ju(d,s.node().type.name,s.node().attrs),...t},c=o.contentMatch.defaultType?.createAndFill(a)||void 0;e=e.append(A.from(o.createAndFill(null,c)||void 0));let l=s.before(s.depth-(r-1));n.replace(l,s.after(-i),new M(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(F.near(n.doc.resolve(u))),n.scrollIntoView()}return!0}let f=c.pos===s.end()?u.contentMatchAt(0).defaultType:null,p={...Ju(d,u.type.name,u.attrs),...t},m={...Ju(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(!Cn(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},ld=(e,t)=>{let n=Bu(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&&Tn(e.doc,n.pos)&&e.join(n.pos),!0},ud=(e,t)=>{let n=Bu(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&&Tn(e.doc,r)&&e.join(r),!0},dd=Object.freeze({__proto__:null,blur:Dl,clearContent:Ol,clearNodes:kl,command:Al,createParagraphNear:jl,cut:Ml,deleteCurrentNode:Nl,deleteNode:Pl,deleteRange:Fl,deleteSelection:Il,enter:Ll,exitCode:Rl,extendMarkRange:Wl,first:Gl,focus:Ql,forEach:$l,insertContent:eu,insertContentAt:ou,joinBackward:lu,joinDown:cu,joinForward:uu,joinItemBackward:du,joinItemForward:fu,joinTextblockBackward:pu,joinTextblockForward:mu,joinUp:su,keyboardShortcut:_u,lift:yu,liftEmptyBlock:bu,liftListItem:xu,newlineInCode:Su,resetAttributes:Tu,scrollIntoView:Eu,selectAll:Du,selectNodeBackward:Ou,selectNodeForward:ku,selectParentNode:Au,selectTextblockEnd:ju,selectTextblockStart:Mu,setContent:Pu,setMark:ed,setMeta:td,setNode:nd,setNodeSelection:rd,setTextSelection:id,sinkListItem:ad,splitBlock:sd,splitListItem:cd,toggleList:(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=q(e,o.schema),m=q(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=Bu(e=>Zu(e.type.name,d))(h);if(y.depth>=1&&x&&y.depth-x.depth<=1){if(x.node.type===p)return l.liftListItem(m);if(Zu(x.node.type.name,d)&&p.validContent(x.node.content)&&s)return c().command(()=>(a.setNodeMarkup(x.pos,p),!0)).command(()=>ld(a,p)).command(()=>ud(a,p)).run()}return!n||!b||!s?c().command(()=>u().wrapInList(p,r)?!0:l.clearNodes()).wrapInList(p,r).command(()=>ld(a,p)).command(()=>ud(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(()=>ld(a,p)).command(()=>ud(a,p)).run()},toggleMark:(e,t={},n={})=>({state:r,commands:i})=>{let{extendEmptyMarkRange:a=!1}=n,o=Ul(e,r.schema);return Yu(r,o,t)?i.unsetMark(o,{extendEmptyMarkRange:a}):i.setMark(o,t)},toggleNode:(e,t,n={})=>({state:r,commands:i})=>{let a=q(e,r.schema),o=q(t,r.schema),s=vu(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})},toggleWrap:(e,t={})=>({state:n,commands:r})=>{let i=q(e,n.schema);return vu(n,i,t)?r.lift(i):r.wrapIn(i,t)},undoInputRule:()=>({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;for(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},unsetAllMarks:()=>({tr:e,dispatch:t})=>{let{selection:n}=e,{empty:r,ranges:i}=n;return r||t&&i.forEach(t=>{e.removeMark(t.$from.pos,t.$to.pos)}),!0},unsetMark:(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{extendEmptyMarkRange:a=!1}=t,{selection:o}=n,s=Ul(e,r.schema),{$from:c,empty:l,ranges:u}=o;if(!i)return!0;if(l&&a){let{from:e,to:t}=o,r=Hl(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},updateAttributes:(e,t={})=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=Cu(typeof e==`string`?e:e.name,r.schema);return s?(s===`node`&&(a=q(e,r.schema)),s===`mark`&&(o=Ul(e,r.schema)),i&&n.selection.ranges.forEach(e=>{let i=e.$from.pos,s=e.$to.pos,c,l,u,d;n.selection.empty?r.doc.nodesBetween(i,s,(e,t)=>{a&&a===e.type&&(u=Math.max(t,i),d=Math.min(t+e.nodeSize,s),c=t,l=e)}):r.doc.nodesBetween(i,s,(e,r)=>{r<i&&a&&a===e.type&&(u=Math.max(r,i),d=Math.min(r+e.nodeSize,s),c=r,l=e),r>=i&&r<=s&&(a&&a===e.type&&n.setNodeMarkup(r,void 0,{...e.attrs,...t}),o&&e.marks.length&&e.marks.forEach(a=>{if(o===a.type){let c=Math.max(r,i),l=Math.min(r+e.nodeSize,s);n.addMark(c,l,o.create({...a.attrs,...t}))}}))}),l&&(c!==void 0&&n.setNodeMarkup(c,void 0,{...l.attrs,...t}),o&&l.marks.length&&l.marks.forEach(e=>{o===e.type&&n.addMark(u,d,o.create({...e.attrs,...t}))}))}),!0):!1},wrapIn:(e,t={})=>({state:n,dispatch:r})=>Oc(q(e,n.schema),t)(n,r),wrapInList:(e,t={})=>({state:n,dispatch:r})=>Fc(q(e,n.schema),t)(n,r)}),fd=Cl.create({name:`commands`,addCommands(){return{...dd}}}),pd=Cl.create({name:`drop`,addProseMirrorPlugins(){return[new _r({key:new br(`tiptapDrop`),props:{handleDrop:(e,t,n,r)=>{this.editor.emit(`drop`,{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),md=Cl.create({name:`editable`,addProseMirrorPlugins(){return[new _r({key:new br(`editable`),props:{editable:()=>this.editor.options.editable}})]}}),hd=new br(`focusEvents`),gd=Cl.create({name:`focusEvents`,addProseMirrorPlugins(){let{editor:e}=this;return[new _r({key:hd,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}}}})]}}),_d=Cl.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:P.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 Xl()||hu()?i:r},addProseMirrorPlugins(){return[new _r({key:new br(`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=P.atStart(t.doc).from,l=P.atEnd(t.doc).to;if(a||!(o===c&&s===l)||!Qu(n.doc))return;let u=n.tr,d=Hc({state:n,transaction:u}),{commands:f}=new Uc({editor:this.editor,state:d});if(f.clearNodes(),u.steps.length)return u}})]}}),vd=Cl.create({name:`paste`,addProseMirrorPlugins(){return[new _r({key:new br(`tiptapPaste`),props:{handlePaste:(e,t,n)=>{this.editor.emit(`paste`,{editor:this.editor,event:t,slice:n})}}})]}}),yd=Cl.create({name:`tabindex`,addProseMirrorPlugins(){return[new _r({key:new br(`tabindex`),props:{attributes:()=>this.editor.isEditable?{tabindex:`0`}:{}}})]}}),bd=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),n=this.resolvedPos.doc.resolve(t);return new e(n,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=this.pos+r+ +!a;if(o<0||o>this.resolvedPos.doc.nodeSize-2)return;let s=this.resolvedPos.doc.resolve(o);if(!i&&s.depth<=this.depth)return;let c=new e(s,this.editor,i,i?n:null);i&&(c.actualDepth=this.depth+1),t.push(new e(s,this.editor,i,i?n:null))}),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)}},xd=`.ProseMirror {
1
+ (function(e){typeof define==`function`&&define.amd?define([],e):e()})(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),l=o(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),u=o((e=>{var t=l(),n=60103,r=60106;e.Fragment=60107,e.StrictMode=60108,e.Profiler=60114;var i=60109,a=60110,o=60112;e.Suspense=60113;var s=60115,c=60116;if(typeof Symbol==`function`&&Symbol.for){var u=Symbol.for;n=u(`react.element`),r=u(`react.portal`),e.Fragment=u(`react.fragment`),e.StrictMode=u(`react.strict_mode`),e.Profiler=u(`react.profiler`),i=u(`react.provider`),a=u(`react.context`),o=u(`react.forward_ref`),e.Suspense=u(`react.suspense`),s=u(`react.memo`),c=u(`react.lazy`)}var d=typeof Symbol==`function`&&Symbol.iterator;function f(e){return typeof e!=`object`||!e?null:(e=d&&e[d]||e[`@@iterator`],typeof e==`function`?e:null)}function p(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h={};function g(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(p(85));this.updater.enqueueSetState(this,e,t,`setState`)},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function _(){}_.prototype=g.prototype;function v(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}var y=v.prototype=new _;y.constructor=v,t(y,g.prototype),y.isPureReactComponent=!0;var b={current:null},x=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var i,a={},o=null,s=null;if(t!=null)for(i in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=``+t.key),t)x.call(t,i)&&!S.hasOwnProperty(i)&&(a[i]=t[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:n,type:e,key:o,ref:s,props:a,_owner:b.current}}function w(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function T(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function E(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ee=/\/+/g;function D(e,t){return typeof e==`object`&&e&&e.key!=null?E(``+e.key):t.toString(36)}function O(e,t,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`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case n:case r:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+D(c,0):a,Array.isArray(o)?(i=``,e!=null&&(i=e.replace(ee,`$&/`)+`/`),O(o,t,i,``,function(e){return e})):o!=null&&(T(o)&&(o=w(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(ee,`$&/`)+`/`)+e)),t.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,Array.isArray(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+D(s,l);c+=O(s,t,i,u,o)}else if(u=f(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+D(s,l++),c+=O(s,t,i,u,o);else if(s===`object`)throw t=``+e,Error(p(31,t===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:t));return c}function te(e,t,n){if(e==null)return e;var r=[],i=0;return O(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ne(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(t){e._status===0&&(t=t.default,e._status=1,e._result=t)},function(t){e._status===0&&(e._status=2,e._result=t)})}if(e._status===1)return e._result;throw e._result}var k={current:null};function A(){var e=k.current;if(e===null)throw Error(p(321));return e}var j={ReactCurrentDispatcher:k,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:b,IsSomeRendererActing:{current:!1},assign:t};e.Children={map:te,forEach:function(e,t,n){te(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return te(e,function(){t++}),t},toArray:function(e){return te(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error(p(143));return e}},e.Component=g,e.PureComponent=v,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,e.cloneElement=function(e,r,i){if(e==null)throw Error(p(267,e));var a=t({},e.props),o=e.key,s=e.ref,c=e._owner;if(r!=null){if(r.ref!==void 0&&(s=r.ref,c=b.current),r.key!==void 0&&(o=``+r.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in r)x.call(r,u)&&!S.hasOwnProperty(u)&&(a[u]=r[u]===void 0&&l!==void 0?l[u]:r[u])}var u=arguments.length-2;if(u===1)a.children=i;else if(1<u){l=Array(u);for(var d=0;d<u;d++)l[d]=arguments[d+2];a.children=l}return{$$typeof:n,type:e.type,key:o,ref:s,props:a,_owner:c}},e.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:a,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:i,_context:e},e.Consumer=e},e.createElement=C,e.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:o,render:e}},e.isValidElement=T,e.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:ne}},e.memo=function(e,t){return{$$typeof:s,type:e,compare:t===void 0?null:t}},e.useCallback=function(e,t){return A().useCallback(e,t)},e.useContext=function(e,t){return A().useContext(e,t)},e.useDebugValue=function(){},e.useEffect=function(e,t){return A().useEffect(e,t)},e.useImperativeHandle=function(e,t,n){return A().useImperativeHandle(e,t,n)},e.useLayoutEffect=function(e,t){return A().useLayoutEffect(e,t)},e.useMemo=function(e,t){return A().useMemo(e,t)},e.useReducer=function(e,t,n){return A().useReducer(e,t,n)},e.useRef=function(e){return A().useRef(e)},e.useState=function(e){return A().useState(e)},e.version=`17.0.2`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{l();var t=d(),n=60103;if(e.Fragment=60107,typeof Symbol==`function`&&Symbol.for){var r=Symbol.for;n=r(`react.element`),e.Fragment=r(`react.fragment`)}var i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)a.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:i.current}}e.jsx=s,e.jsxs=s})),p=o(((e,t)=>{t.exports=f()}))(),m=({adminUrl:e,onLoad:t})=>(0,p.jsx)(`iframe`,{"data-frame":`admin-auth`,src:e+`auth-frame/`,style:{display:`none`},title:`auth-frame`,onLoad:t}),h=c(o(((e,t)=>{var n=function(e){return e instanceof RegExp},r=function(e){var t=/[\\^$.*+?()[\]{}|]/g,n=RegExp(t.source);return e&&n.test(e)?e.replace(t,`\\$&`):e},i=function(e){return typeof e==`string`},a=function(e){var t=[];return e.forEach(function(e){Array.isArray(e)?t=t.concat(e):t.push(e)}),t};function o(e,t,a,o=null){var s=0,c=0;if(e===``)return e;if(!e||!i(e))throw TypeError(`First argument to react-string-replace#replaceString must be a string`);var l=t;n(l)||(l=RegExp(`(`+r(l)+`)`,`gi`));for(var u=e.split(l),d=1,f=u.length;d<f&&!(Number.isInteger(o)&&(o*2<d||o<1));d+=2){if(u[d]===void 0||u[d-1]===void 0){console.warn(`reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.`);continue}c=u[d].length,s+=u[d-1].length,u[d]=a(u[d],(d-1)/2,s),s+=c}return u}t.exports=function(e,t,s,c=null){return Array.isArray(e)||(e=[e]),a(e.map(function(e){var a;if(i(e))if(Number.isInteger(c)&&c>0){a=o(e,t,s,c);var l=n(t)?t:RegExp(`(`+r(t)+`)`,`gi`);c-=(e.match(l)||[]).length}else a=o(e,t,s,c);else a=e;return a}))}}))(),1),g=`ghost-comments-`;function _(e){return`#${g}${e}`}function v(){return`#ghost-comments`}function y(e){let t=RegExp(`^#${g}([a-f0-9]+)$`,`i`),n=e.match(t);return n?n[1]:null}function b(e){return e!==0&&!e?``:e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,`,`)}function x(e,t){let n=new Date(e),r=new Date;if(isNaN(n.getTime()))return t(`Just now`);let i=Math.round((r.getTime()-n.getTime())/1e3);if(i<60)return t(`Just now`);let a=Math.round(i/60);if(a===1)return t(`One min ago`);if(a<60)return t(`{amount} mins ago`,{amount:a});let o=Math.round(a/60);if(o===1)return t(`One hour ago`);let s=new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate())),c=new Date(Date.UTC(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate())),l=Math.floor((c.getTime()-s.getTime())/(1e3*60*60*24));if(l===1)return t(`Yesterday`);if(l>1){let e=n.getDate(),t=n.toLocaleString(`en-us`,{month:`short`});return n.getFullYear()===r.getFullYear()?`${e} ${t}`:`${e} ${t} ${n.getFullYear()}`}return t(`{amount} hrs ago`,{amount:o})}function S(e){let t=new Date(e);return`${t.toLocaleDateString(`en-us`,{day:`2-digit`})} ${t.toLocaleString(`en-us`,{month:`short`})} ${t.getFullYear()} ${(t.getHours()<10?`0`:``)+t.getHours()}:${(t.getMinutes()<10?`0`:``)+t.getMinutes()}`}function C(e){if(!e)return``;let t=e.split(` `);return t.length===0?``:t.length===1?t[0].substring(0,1).toLocaleUpperCase():t[0].substring(0,1).toLocaleUpperCase()+t[t.length-1].substring(0,1).toLocaleUpperCase()}function w(e,t){return e?e.name?e.name:t(`Anonymous`):t(`Deleted member`)}function T(e,t){return w(e.member,t)}function E(){return Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<480}var ee=e=>{let t=0,n=e.ownerDocument.defaultView;for(;n&&n!==window;){let e=n.parent;for(let r=0;r<e.frames.length;r++)if(e.frames[r]===n){for(let r of e.document.getElementsByTagName(`iframe`))if(r.contentWindow===n){let e=r.getBoundingClientRect();t+=e.top+n.pageYOffset}n=e;break}}return e.getBoundingClientRect().top+window.pageYOffset+t},D=e=>{let t=ee(e);return(t+(t+e.offsetHeight))/2-window.innerHeight/2},O=e=>{let t=e.offsetHeight,n=ee(e),r=n+t,i=window.innerHeight,a=window.scrollY,o=a+i;(n-64<a||r+64>o)&&window.scrollTo({top:D(e),left:0,behavior:`smooth`})},te=e=>{window.scrollTo({top:D(e),left:0,behavior:`auto`})};function ne(e){let t=e.html??``,n=document.createElement(`div`);n.innerHTML=t,n.querySelectorAll(`script, style, link, meta, noscript, title`).forEach(e=>e.remove()),n.querySelectorAll(`blockquote`).forEach(e=>e.remove());let r=n.textContent||``;return r=r.replace(`
2
+ `,` `),r=r.replace(/\s+/g,` `),r=r.trim(),r.substring(0,100)}var k=c(d(),1),A=k.createContext({});A.Provider;var j=()=>(0,k.useContext)(A),re=()=>{let e=j().dispatchAction;return t=>{e(`setOrder`,{order:t})}},ie=()=>{try{return j().labs||{}}catch{return{}}},ae=({isFirst:e,isPaid:t,commentId:n})=>{let{accentColor:r,publication:i,member:a,t:o,commentCount:s}=j(),c={backgroundColor:r},l={color:r},u=o(s===0?`Start the conversation`:`Join the discussion`),d=()=>{window.location.href=t&&a?`#/portal/account/plans`:`#/portal/signup`},f=()=>{if(n){let e=new URL(window.location.href);e.hash=_(n),window.location.href=`#/portal/signin?redirect=${encodeURIComponent(e.toString())}`;return}window.location.href=`#/portal/signin`},m=(0,h.default)(o(t?`Become a paid member of {publication} to start commenting.`:`Become a member of {publication} to start commenting.`),`{publication}`,()=>(0,p.jsx)(`span`,{className:`font-semibold`,children:i}));return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`h1`,{className:`mb-[8px] text-center font-sans text-2xl tracking-tight text-black dark:text-[rgba(255,255,255,0.85)] ${e?`font-semibold`:`font-bold`}`,children:u}),(0,p.jsx)(`p`,{className:`sm:max-w-screen-sm mb-[28px] w-full px-0 text-center font-sans text-lg leading-normal text-neutral-600 dark:text-[rgba(255,255,255,0.85)] sm:px-8`,children:m}),(0,p.jsx)(`button`,{className:`mb-[12px] inline-block rounded px-5 py-[14px] font-sans text-md font-medium leading-none text-white transition-all hover:opacity-90`,"data-testid":`signup-button`,style:c,type:`button`,onClick:d,children:o(t&&a?`Upgrade now`:`Sign up now`)}),!a&&(0,p.jsxs)(`p`,{className:`text-center font-sans text-md text-[rgba(0,0,0,0.4)] dark:text-[rgba(255,255,255,0.5)]`,children:[(0,p.jsx)(`span`,{className:`mr-1 inline-block text-[15px]`,children:o(`Already a member?`)}),(0,p.jsx)(`button`,{className:`rounded-md text-sm font-semibold transition-all hover:opacity-90`,"data-testid":`signin-button`,style:l,type:`button`,onClick:f,children:o(`Sign in`)})]})]})},oe=e=>(0,p.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,width:24,viewBox:`0 0 24 24`,...e,children:(0,p.jsx)(`g`,{strokeLinecap:`round`,strokeWidth:2,fill:`none`,strokeLinejoin:`round`,className:`nc-icon-wrapper`,children:(0,p.jsx)(`polygon`,{points:`7 21 2 22 3 17 18 2 22 6 7 21`})})}),se=e=>(0,p.jsx)(`svg`,{id:`loader-1`,xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,x:`0px`,y:`0px`,width:`40px`,height:`40px`,viewBox:`0 0 50 50`,style:{enableBackground:`new 0 0 50 50`},xmlSpace:`preserve`,...e,children:(0,p.jsx)(`path`,{d:`M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z`,children:(0,p.jsx)(`animateTransform`,{attributeType:`xml`,attributeName:`transform`,type:`rotate`,from:`0 25 25`,to:`360 25 25`,dur:`0.6s`,repeatCount:`indefinite`})})}),ce=e=>(0,p.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,p.jsx)(`path`,{d:`M11.55 4C13.483 4 15.05 5.567 15.05 7.5C15.05 9.433 13.483 11 11.55 11C9.617 11 8.05 9.433 8.05 7.5C8.05 5.567 9.617 4 11.55 4ZM11.55 20C9.044 20 6.757 19.067 5 17.538C5.997 14.888 8.551 13 11.55 13C14.549 13 17.103 14.888 18.1 17.538C16.343 19.066 14.056 20 11.55 20Z`,fill:`currentColor`})});function le(){return`w-8 h-8`}var ue=()=>{let e=le();return(0,p.jsx)(`figure`,{className:`relative ${e}`,"data-testid":`blank-avatar`,children:(0,p.jsx)(`div`,{className:`flex items-center justify-center rounded-full bg-black/5 text-neutral-900/25 dark:bg-white/15 dark:text-white/30 ${e}`,children:(0,p.jsx)(ce,{className:`size-7 opacity-80`})})})},de=({member:e})=>{let{avatarSaturation:t,t:n}=j(),r=le(),i=w(e,n),a=e=>{let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);return t=Math.abs(t),t},o=(e,t,n)=>Math.floor(e%(n-t)+t),s=()=>{if(!i)return[0,0,10];let e=t===void 0||isNaN(t)?50:t,n=[0,360],r=Math.round(e/(100/30))+30,s=[r-20,r],c=a(i);return[o(c,n[0],n[1]),e,o(c,s[0],s[1])]},c=e=>`hsl(${e[0]}, ${e[1]}%, ${e[2]}%)`,l=C(i),u={background:c(s())},d=(0,p.jsxs)(p.Fragment,{children:[i?(0,p.jsx)(`div`,{className:`flex items-center justify-center rounded-full ${r}`,"data-testid":`avatar-background`,style:u,children:(0,p.jsx)(`p`,{className:`font-sans text-base font-semibold text-white`,children:l})}):(0,p.jsx)(`div`,{className:`flex items-center justify-center rounded-full bg-neutral-900 dark:bg-white/70 ${r}`,"data-testid":`avatar-background`,children:(0,p.jsx)(ce,{className:`stroke-white dark:stroke-black/60`})}),e?.avatar_image&&(0,p.jsx)(`img`,{alt:`Avatar`,className:`absolute left-0 top-0 rounded-full ${r}`,"data-testid":`avatar-image`,src:e.avatar_image})]});return e?(0,p.jsx)(`figure`,{className:`relative ${r}`,"data-testid":`avatar`,children:d}):(0,p.jsx)(ue,{})};function M(e){this.content=e}M.prototype={constructor:M,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 M(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 M(n)},addToStart:function(e,t){return new M([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new M(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 M(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=M.from(e),e.size?new M(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=M.from(e),e.size?new M(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=M.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}},M.from=function(e){if(e instanceof M)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new M(t)};function fe(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&&he(e.charCodeAt(r-1))&&me(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=fe(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}function pe(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&&he(e.charCodeAt(i-1))&&me(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=pe(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}function me(e){return e>=56320&&e<57344}function he(e){return e>=55296&&e<56320}var N=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 fe(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return pe(this,e,t,n)}findIndex(e){if(e==0)return _e(0,e);if(e==this.size)return _e(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?_e(t+1,i):_e(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)`:``))}};N.empty=new N([],0);var ge={index:0,offset:0};function _e(e,t){return ge.index=e,ge.offset=t,ge}function ve(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(!ve(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!ve(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var P=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&&ve(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}};P.none=[];var ye=class extends Error{},F=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=xe(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(be(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(N.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)}};F.empty=new F(N.empty,0,0);function be(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(be(a.content,t-i-1,n-i-1)))}function xe(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=xe(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 Se(e,t,n){if(n.openStart>e.depth)throw new ye(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new ye(`Inconsistent open depths`);return Ce(e,t,n,0)}function Ce(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=Ce(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}else if(!n.content.size)return Oe(a,Ae(e,t,r));else if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return Oe(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}else{let{start:i,end:o}=je(n,e);return Oe(a,ke(e,i,o,t,r))}}function we(e,t){if(!t.type.compatibleContent(e.type))throw new ye(`Cannot join `+t.type.name+` onto `+e.type.name)}function Te(e,t,n){let r=e.node(n);return we(r,t.node(n)),r}function Ee(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 De(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&&(Ee(e.nodeAfter,r),a++));for(let e=a;e<o;e++)Ee(i.child(e),r);t&&t.depth==n&&t.textOffset&&Ee(t.nodeBefore,r)}function Oe(e,t){if(!e.type.validContent(t))throw new ye(`Invalid content for node `+e.type.name);return e.copy(t)}function ke(e,t,n,r,i){let a=e.depth>i&&Te(e,t,i+1),o=r.depth>i&&Te(n,r,i+1),s=[];return De(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(we(a,o),Ee(Oe(a,ke(e,t,n,r,i+1)),s)):(a&&Ee(Oe(a,Ae(e,t,i+1)),s),De(t,n,i,s),o&&Ee(Oe(o,Ae(n,r,i+1)),s)),De(r,null,i,s),new N(s)}function Ae(e,t,n){let r=[];return De(null,e,n,r),e.depth>n&&Ee(Oe(Te(e,t,n+1),Ae(e,t,n+1)),r),De(t,null,n,r),new N(r)}function je(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(N.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var Me=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 P.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 Ie(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=Fe.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 Fe.set(t,r=new Ne);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%Pe,i}},Ne=class{constructor(){this.elts=[],this.i=0}},Pe=12,Fe=new WeakMap,Ie=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)}},Le=Object.create(null),Re=class e{constructor(e,t,n,r=P.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||N.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&&ve(this.attrs,t||e.defaultAttrs||Le)&&P.sameSet(this.marks,n||P.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 F.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new F(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return Se(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 Me.resolveCached(this,e)}resolveNoCache(e){return Me.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()+`)`),Be(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=N.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=P.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(!P.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.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=N.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};Re.prototype.text=void 0;var ze=class e extends Re{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):Be(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 Be(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var Ve=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new He(t,n);if(r.next==null)return e.empty;let i=Ue(r);r.next&&r.err(`Unexpected trailing text`);let a=$e(Xe(i));return et(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 N.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(`
3
+ `)}};Ve.empty=new Ve(!0);var He=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 Ue(e){let t=[];do t.push(We(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function We(e){let t=[];do t.push(Ge(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function Ge(e){let t=Ye(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=qe(e,t);else break;return t}function Ke(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function qe(e,t){let n=Ke(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:Ke(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function Je(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 Ye(e){if(e.eat(`(`)){let t=Ue(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=Je(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 Xe(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}function 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 Ze(e,t){return t-e}function Qe(e,t){let n=[];return r(t),n.sort(Ze);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 $e(e){let t=Object.create(null);return n(Qe(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]);Qe(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new Ve(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(Ze);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function et(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 tt(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 nt(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 rt(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 it(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new st(e,r,t[r]);return n}var at=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=it(e,n.attrs),this.defaultAttrs=tt(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==Ve.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:nt(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new Re(this,this.computeAttrs(e),N.from(t),P.setFrom(n))}createChecked(e=null,t,n){return t=N.from(t),this.checkContent(t),new Re(this,this.computeAttrs(e),t,P.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=N.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(N.empty,!0);return i?new Re(this,e,t.append(i),P.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){rt(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:P.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 ot(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 st=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?ot(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},ct=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=it(e,r.attrs),this.excluded=null;let i=tt(this.attrs);this.instance=i?new P(this,i):null}create(e=null){return!e&&this.instance?this.instance:new P(this,nt(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){rt(this.attrs,e,`mark`,this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},lt=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=M.from(e.nodes),t.marks=M.from(e.marks||{}),this.nodes=at.compile(this.spec.nodes,this),this.marks=ct.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]=Ve.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?ut(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==``?[]:ut(this,n.split(` `))}this.nodeFromJSON=e=>Re.fromJSON(this,e),this.markFromJSON=e=>P.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 at))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 ze(n,n.defaultAttrs,e,P.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 ut(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 dt(e){return e.tag!=null}function ft(e){return e.style!=null}var pt=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(dt(e))this.tags.push(e);else if(ft(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 St(this,t,!1);return n.addAll(e,P.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new St(this,t,!0);return n.addAll(e,P.none,t.from,t.to),F.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(wt(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=Tt(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=Tt(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)))}},mt={address:!0,article:!0,aside:!0,blockquote:!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},ht={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},gt={ol:!0,ul:!0},_t=1,vt=2,yt=4;function bt(e,t,n){return t==null?e&&e.whitespace==`pre`?3:n&-5:(t?_t:0)|(t===`full`?vt:0)}var xt=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=P.none,this.match=i||(a&yt?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(N.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&_t)){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=N.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(N.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&&!mt.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},St=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=bt(null,t.preserveWhitespace,0)|(n?yt:0);i=r?new xt(r.type,r.attrs,P.none,!0,t.topMatch||r.type.contentMatch,a):n?new xt(null,null,P.none,!0,null,a):new xt(e.schema.topNodeType,null,P.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&vt?`full`:this.localPreserveWS||(r.options&_t)>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,`
4
+ `);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;gt.hasOwnProperty(a)&&this.parser.normalizeLists&&Ct(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));out:if(s?s.ignore:ht.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(mt.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(`
5
+ `),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=P.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):Et(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=bt(e,i,a.options);a.options&yt&&a.content.length==0&&(o|=yt);let s=P.none;return n=n.filter(t=>(a.type?a.type.allowsMarkType(t.type):Et(t.type,e))?(s=t.addToSet(s),!1):!0),this.nodes.push(new xt(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|=_t);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 Ct(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&gt.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function wt(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function Tt(e){let t={};for(let n in e)t[n]=e[n];return t}function Et(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 Dt=class e{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||=kt(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 kt(t).createTextNode(e.text);let{dom:n,contentDOM:r}=Nt(kt(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&&Nt(kt(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return typeof t==`string`?{dom:e.createTextNode(t)}:Nt(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=Ot(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return Ot(e.marks)}};function Ot(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function kt(e){return e.document||window.document}var At=new WeakMap;function jt(e){let t=At.get(e);return t===void 0&&At.set(e,t=Mt(e)),t}function Mt(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 Nt(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=jt(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}=Nt(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var Pt=65535,Ft=2**16;function It(e,t){return e+t*Ft}function Lt(e){return e&Pt}function Rt(e){return(e-(e&Pt))/Ft}var zt=1,Bt=2,Vt=4,Ht=8,Ut=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&Ht)>0}get deletedBefore(){return(this.delInfo&5)>0}get deletedAfter(){return(this.delInfo&6)>0}get deletedAcross(){return(this.delInfo&Vt)>0}},Wt=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=Lt(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+Rt(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:It(o/3,e-s),f=e==s?Bt:e==u?zt:Vt;return(t<0?e!=s:e!=u)&&(f|=Ht),new Ut(a,f,d)}r+=l-c}return n?e+r:new Ut(e+r,0,null)}touches(e,t){let n=0,r=Lt(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])}};Wt.empty=new Wt([]);var Gt=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 Ut(e,r,null)}},Kt=Object.create(null),qt=class{getMap(){return Wt.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError(`Invalid input for Step.fromJSON`);let n=Kt[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Kt)throw RangeError(`Duplicate use of step JSON ID `+e);return Kt[e]=t,t.prototype.jsonID=e,t}},Jt=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 ye)return e.fail(t.message);throw t}}};function Yt(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(Yt(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return N.fromArray(r)}var Xt=class e extends qt{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 F(Yt(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 Jt.fromReplace(e,this.from,this.to,i)}invert(){return new Zt(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))}};qt.jsonID(`addMark`,Xt);var Zt=class e extends qt{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 F(Yt(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return Jt.fromReplace(e,this.from,this.to,n)}invert(){return new Xt(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))}};qt.jsonID(`removeMark`,Zt);var Qt=class e extends qt{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Jt.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return Jt.fromReplace(e,this.pos,this.pos+1,new F(N.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 $t(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))}};qt.jsonID(`addNodeMark`,Qt);var $t=class e extends qt{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Jt.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return Jt.fromReplace(e,this.pos,this.pos+1,new F(N.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new Qt(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))}};qt.jsonID(`removeNodeMark`,$t);var en=class e extends qt{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&nn(e,this.from,this.to)?Jt.fail(`Structure replace would overwrite content`):Jt.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Wt([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?F.empty:new F(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?F.empty:new F(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,F.fromJSON(t,n.slice),!!n.structure)}};en.MAP_BIAS=1,qt.jsonID(`replace`,en);var tn=class e extends qt{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&&(nn(e,this.from,this.gapFrom)||nn(e,this.gapTo,this.to)))return Jt.fail(`Structure gap-replace would overwrite content`);let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Jt.fail(`Gap is not a flat range`);let n=this.slice.insertAt(this.insert,t.content);return n?Jt.fromReplace(e,this.from,this.to,n):Jt.fail(`Content does not fit in gap`)}getMap(){return new Wt([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,F.fromJSON(t,n.slice),n.insert,!!n.structure)}};qt.jsonID(`replaceAround`,tn);function nn(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 rn(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 Zt(l,d,u[e])));s&&s.to==l?s.to=d:a.push(s=new Xt(l,d,r))}}),i.forEach(t=>e.step(t)),a.forEach(t=>e.step(t))}function an(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 ct){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 Zt(t.from,t.to,t.style)))}function on(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 en(s,l,F.empty));else{r=u;for(let t=0;t<c.marks.length;t++)n.allowsMarkType(c.marks[t].type)||e.step(new Zt(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 F(N.from(n.schema.text(` `,n.allowedMarks(c.marks))),0,0),o.push(new en(s+e.index,s+e.index+e[0].length,r))}}s=l}if(!r.validEnd){let t=r.fillBefore(N.empty,!0);e.replace(s,s,new F(t,0,0))}for(let t=o.length-1;t>=0;t--)e.step(o[t])}function sn(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function cn(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||!sn(a,o,s))break;o&&(r=1),s<a.childCount&&(i=1)}return null}function I(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=N.empty,d=0;for(let e=a,t=!1;e>n;e--)t||r.index(e)>0?(t=!0,u=N.from(r.node(e).copy(u)),d++):c--;let f=N.empty,p=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,f=N.from(i.node(e).copy(f)),p++):l++;e.step(new tn(c,l,o,s,new F(u.append(f),d,p),u.size-d,!0))}function ln(e,t,n=null,r=e){let i=dn(e,t),a=i&&fn(r,t);return a?i.map(un).concat({type:t,attrs:n}).concat(a.map(un)):null}function un(e){return{type:e,attrs:null}}function dn(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 fn(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 pn(e,t,n){let r=N.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=N.from(n[e].type.create(n[e].attrs,r))}let i=t.start,a=t.end;e.step(new tn(i,a,i,a,new F(r,0,0),n.length,!0))}function mn(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)&&_n(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&&gn(e,t,n,a),on(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 tn(c,l,c+1,l-1,new F(N.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&hn(e,t,n,a),!1}})}function hn(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 gn(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(`
6
+ `))}})}function _n(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function vn(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 tn(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new F(N.from(o),0,0),1,!0))}function yn(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 bn(e,t,n=1,r){let i=e.doc.resolve(t),a=N.empty,o=N.empty;for(let e=i.depth,t=i.depth-n,s=n-1;e>t;e--,s--){a=N.from(i.node(e).copy(a));let t=r&&r[s];o=N.from(t?t.type.create(t.attrs,o):i.node(e).copy(o))}e.step(new en(t,t,new F(a.append(o),n,n),!0))}function xn(e,t){let n=e.resolve(t),r=n.index();return Cn(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function Sn(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 Cn(e,t){return!!(e&&t&&!e.isLeaf&&Sn(e,t))}function wn(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&&Cn(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 Tn(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);gn(e,r.node(),r.before(),s)}o.inlineContent&&on(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 en(l,c.map(t+n,-1),F.empty,!0)),r===!0){let t=e.doc.resolve(l);hn(e,t.node(),t.before(),e.steps.length)}return e}function En(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 Dn(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 On(e,t,n=t,r=F.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),a=e.resolve(n);return kn(i,a,r)?new en(t,n,r):new An(i,a,r).fit()}function kn(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}var An=class{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=N.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=N.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 F(i,a,o);return e>-1?new tn(n.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||n.pos!=this.$to.pos?new en(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=Nn(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(N.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,r=Nn(e,t);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new F(e,t+1,Math.max(n,r.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=Nn(e,t);if(r.childCount<=1&&t>0){let i=e.size-t<=t+r.size;this.unplaced=new F(jn(e,t-1,1),t-1,i?t-1:n)}else this.unplaced=new F(jn(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(Pn(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=Mn(this.placed,t,N.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?F.empty:new F(jn(a.content,e-1,1),e-1,f<0?a.openEnd:e-1):new F(jn(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||!Fn(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=Fn(e,t,r,n,i);if(a){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],i=Fn(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=Mn(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=Mn(this.placed,this.depth,N.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(N.empty,!0);e.childCount&&(this.placed=Mn(this.placed,this.frontier.length,e))}};function jn(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(jn(e.firstChild.content,t-1,n)))}function Mn(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(Mn(e.lastChild.content,t-1,n)))}function Nn(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function Pn(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,Pn(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(N.empty,!0)))),e.copy(r)}function Fn(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&&!In(n,a.content,o)?s:null}function In(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function Ln(e){return e.spec.defining||e.spec.definingForContent}function Rn(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),a=e.doc.resolve(n);if(kn(i,a,r))return e.step(new en(t,n,r));let o=Hn(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=Ln(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 F(zn(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 zn(e,t,n,r,i){if(t<n){let i=e.firstChild;e=e.replaceChild(0,i.copy(zn(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(N.empty,!0))}return e}function Bn(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=En(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new F(N.from(r),0,0))}function Vn(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=Hn(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 Hn(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 Un=class e extends qt{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 Jt.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 Jt.fromReplace(e,this.pos,this.pos+1,new F(N.from(r),0,+!t.isLeaf))}getMap(){return Wt.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)}};qt.jsonID(`attr`,Un);var Wn=class e extends qt{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 Jt.ok(n)}getMap(){return Wt.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)}};qt.jsonID(`docAttr`,Wn);var Gn=class extends Error{};Gn=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},Gn.prototype=Object.create(Error.prototype),Gn.prototype.constructor=Gn,Gn.prototype.name=`TransformError`;var Kn=class{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Gt}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new Gn(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=F.empty){let r=On(this.doc,e,t,n);return r&&this.step(r),this}replaceWith(e,t,n){return this.replace(e,t,new F(N.from(n),0,0))}delete(e,t){return this.replace(e,t,F.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return Rn(this,e,t,n),this}replaceRangeWith(e,t,n){return Bn(this,e,t,n),this}deleteRange(e,t){return Vn(this,e,t),this}lift(e,t){return I(this,e,t),this}join(e,t=1){return Tn(this,e,t),this}wrap(e,t){return pn(this,e,t),this}setBlockType(e,t=e,n,r=null){return mn(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r){return vn(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new Un(e,t,n)),this}setDocAttribute(e,t){return this.step(new Wn(e,t)),this}addNodeMark(e,t){return this.step(new Qt(e,t)),this}removeNodeMark(e,t){let n=this.doc.nodeAt(e);if(!n)throw RangeError(`No node at position `+e);if(t instanceof P)t.isInSet(n.marks)&&this.step(new $t(e,t));else{let r=n.marks,i,a=[];for(;i=t.isInSet(r);)a.push(new $t(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 bn(this,e,t,n),this}addMark(e,t,n){return rn(this,e,t,n),this}removeMark(e,t,n){return an(this,e,t,n),this}clearIncompatible(e,t,n){return on(this,e,t,n),this}},qn=Object.create(null),L=class{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new Jn(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=F.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?F.empty:t),o==0&&nr(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),nr(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new R(e):tr(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?tr(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):tr(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(i)return i}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new $n(e.node(0))}static atStart(e){return tr(e,e,0,0,1)||new $n(e)}static atEnd(e){return tr(e,e,e.content.size,e.childCount,-1)||new $n(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError(`Invalid input for Selection.fromJSON`);let n=qn[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in qn)throw RangeError(`Duplicate use of selection JSON ID `+e);return qn[e]=t,t.prototype.jsonID=e,t}getBookmark(){return R.between(this.$anchor,this.$head).getBookmark()}};L.prototype.visible=!0;var Jn=class{constructor(e,t){this.$from=e,this.$to=t}},Yn=!1;function Xn(e){!Yn&&!e.parent.inlineContent&&(Yn=!0,console.warn(`TextSelection endpoint not pointing into a node with inline content (`+e.parent.type.name+`)`))}var R=class e extends L{constructor(e,t=e){Xn(e),Xn(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 L.near(r);let i=t.resolve(n.map(this.anchor));return new e(i.parent.inlineContent?i:r,r)}replace(e,t=F.empty){if(super.replace(e,t),t==F.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 Zn(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=L.findFrom(n,r,!0)||L.findFrom(n,-r,!0);if(e)n=e.$head;else return L.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(L.findFrom(t,-r,!0)||L.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=i<0&&(t=n))),new e(t,n)}};L.jsonID(`text`,R);var Zn=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 R.between(e.resolve(this.anchor),e.resolve(this.head))}},z=class e extends L{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?L.near(a):new e(a)}content(){return new F(N.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 Qn(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}};z.prototype.visible=!1,L.jsonID(`node`,z);var Qn=class e{constructor(e){this.anchor=e}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new Zn(r,r):new e(r)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&z.isSelectable(n)?new z(t):L.near(t)}},$n=class e extends L{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=F.empty){if(t==F.empty){e.delete(0,e.doc.content.size);let t=L.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 er}};L.jsonID(`all`,$n);var er={map(){return this},resolve(e){return new $n(e)}};function tr(e,t,n,r,i,a=!1){if(t.inlineContent)return R.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=tr(e,r,n+i,i<0?r.childCount:0,i,a);if(t)return t}else if(!a&&z.isSelectable(r))return z.create(e,n-(i<0?r.nodeSize:0));n+=r.nodeSize*i}return null}function nr(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof en||i instanceof tn))return;let a=e.mapping.maps[r],o;a.forEach((e,t,n,r)=>{o??=r}),e.setSelection(L.near(e.doc.resolve(o),n))}var rr=1,ir=2,ar=4,or=class extends Kn{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|rr)&-3,this.storedMarks=null,this}get selectionSet(){return(this.updated&rr)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=ir,this}ensureMarks(e){return P.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&ir)>0}addStep(e,t){super.addStep(e,t),this.updated&=-3,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)||P.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(L.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|=ar,this}get scrolledIntoView(){return(this.updated&ar)>0}};function sr(e,t){return!t||!e?e:e.bind(t)}var cr=class{constructor(e,t,n){this.name=e,this.init=sr(t.init,n),this.apply=sr(t.apply,n)}},lr=[new cr(`doc`,{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new cr(`selection`,{init(e,t){return e.selection||L.atStart(t.doc)},apply(e){return e.selection}}),new cr(`storedMarks`,{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new cr(`scrollToSelection`,{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})],ur=class{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=lr.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 cr(e.key,e.spec.state,e))})}},dr=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 or(this)}static create(t){let n=new ur(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 ur(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 ur(t.schema,t.plugins),a=new e(i);return i.fields.forEach(e=>{if(e.name==`doc`)a.doc=Re.fromJSON(t.schema,n.doc);else if(e.name==`selection`)a.selection=L.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 fr(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r==`handleDOMEvents`&&(i=fr(i,t,{})),n[r]=i}return n}var pr=class{constructor(e){this.spec=e,this.props={},e.props&&fr(e.props,this,this.props),this.key=e.key?e.key.key:hr(`plugin`)}getState(e){return e[this.key]}},mr=Object.create(null);function hr(e){return e in mr?e+`$`+ ++mr[e]:(mr[e]=0,e+`$`)}var gr=class{constructor(e=`key`){this.key=hr(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}},_r=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},vr=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t},yr=null,br=function(e,t,n){let r=yr||=document.createRange();return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},xr=function(){yr=null},Sr=function(e,t,n,r){return n&&(wr(e,t,n,r,-1)||wr(e,t,n,r,1))},Cr=/^(img|br|input|textarea|hr)$/i;function wr(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:Tr(e))){let n=e.parentNode;if(!n||n.nodeType!=1||kr(e)||Cr.test(e.nodeName)||e.contentEditable==`false`)return!1;t=_r(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?Tr(e):0}else return!1}}function Tr(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Er(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=Tr(e)}else if(e.parentNode&&!kr(e))t=_r(e),e=e.parentNode;else return null}}function Dr(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&&!kr(e))t=_r(e)+1,e=e.parentNode;else return null}}function Or(e,t,n){for(let r=t==0,i=t==Tr(e);r||i;){if(e==n)return!0;let t=_r(e);if(e=e.parentNode,!e)return!1;r&&=t==0,i&&=t==Tr(e)}}function kr(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 Ar=function(e){return e.focusNode&&Sr(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function jr(e,t){let n=document.createEvent(`Event`);return n.initEvent(`keydown`,!0,!0),n.keyCode=e,n.key=n.code=t,n}function Mr(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function Nr(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(Tr(r.offsetNode),r.offset)}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(Tr(r.startContainer),r.startOffset)}}}var Pr=typeof navigator<`u`?navigator:null,Fr=typeof document<`u`?document:null,Ir=Pr&&Pr.userAgent||``,Lr=/Edge\/(\d+)/.exec(Ir),Rr=/MSIE \d/.exec(Ir),zr=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ir),Br=!!(Rr||zr||Lr),Vr=Rr?document.documentMode:zr?+zr[1]:Lr?+Lr[1]:0,Hr=!Br&&/gecko\/(\d+)/i.test(Ir);Hr&&+(/Firefox\/(\d+)/.exec(Ir)||[0,0])[1];var Ur=!Br&&/Chrome\/(\d+)/.exec(Ir),B=!!Ur,Wr=Ur?+Ur[1]:0,Gr=!Br&&!!Pr&&/Safari\//.test(Ir)&&!/Chrome\//.test(Ir)&&!/Chromium\//.test(Ir),Kr=Gr&&/Mobile\/\w+/.test(Ir),qr=Kr||/Macintosh/.test(Ir),Jr=/Windows/.test(Ir),Yr=/Android \d/.test(Ir),Xr=!!Fr&&`webkitFontSmoothing`in Fr.documentElement.style,Zr=Xr?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Qr(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 $r(e,t){return typeof e==`number`?e:e[t]}function V(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 ei(e,t,n){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=vr(o);continue}let e=o,n=e==a.body,s=n?Qr(a):V(e),c=0,l=0;if(t.top<s.top+$r(r,`top`)?l=-(s.top-t.top+$r(i,`top`)):t.bottom>s.bottom-$r(r,`bottom`)&&(l=t.bottom-t.top>s.bottom-s.top?t.top+$r(i,`top`)-s.top:t.bottom-s.bottom+$r(i,`bottom`)),t.left<s.left+$r(r,`left`)?c=-(s.left-t.left+$r(i,`left`)):t.right>s.right-$r(r,`right`)&&(c=t.right-s.right+$r(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:vr(o)}}function ti(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:ni(e.dom)}}function ni(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=vr(r));return t}function ri({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;ii(n,r==0?0:r-t)}function ii(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 ai=null;function oi(e){if(e.setActive)return e.setActive();if(ai)return e.focus(ai);let t=ni(e);e.focus(ai==null?{get preventScroll(){return ai={preventScroll:!0},!0}}:void 0),ai||(ai=!1,ii(t,0))}function si(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=br(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?ci(n,i):!n||r&&n.nodeType==1?{node:e,offset:a}:si(n,i)}function ci(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=gi(r,1);if(n.top!=n.bottom&&li(t,n)){i={node:e,offset:a+ +(t.left>=(n.left+n.right)/2)};break}}return r.detach(),i||{node:e,offset:0}}function li(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function ui(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function di(e,t,n){let{node:r,offset:i}=si(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 fi(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 pi(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(li(t,i))return pi(n,t,i)}}if((a=(a+1)%r)==i)break}return e}function mi(e,t){let n=e.dom.ownerDocument,r,i=0,a=Nr(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(!li(t,n)||(o=pi(e.dom,t,n),!o))return null}if(Gr)for(let e=o;r&&e;e=vr(e))e.draggable&&(r=void 0);if(o=ui(o,t),r){if(Hr&&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;Xr&&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=fi(e,r,i,t))}s??=di(e,o,t);let c=e.docView.nearestDesc(o,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function hi(e){return e.top<e.bottom||e.left<e.right}function gi(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(hi(e))return e}return Array.prototype.find.call(n,hi)||e.getBoundingClientRect()}var _i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function vi(e,t,n){let{node:r,offset:i,atom:a}=e.docView.domFromPos(t,n<0?-1:1),o=Xr||Hr;if(r.nodeType==3)if(o&&(_i.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let e=gi(br(r,i,i),n);if(Hr&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let t=gi(br(r,i-1,i-1),-1);if(t.top==e.top){let n=gi(br(r,i,i+1),-1);if(n.top!=e.top)return yi(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++,yi(gi(br(r,e,t),a),a<0)}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(a==null&&i&&(n<0||i==Tr(r))){let e=r.childNodes[i-1];if(e.nodeType==1)return bi(e.getBoundingClientRect(),!1)}if(a==null&&i<Tr(r)){let e=r.childNodes[i];if(e.nodeType==1)return bi(e.getBoundingClientRect(),!0)}return bi(r.getBoundingClientRect(),n>=0)}if(a==null&&i&&(n<0||i==Tr(r))){let e=r.childNodes[i-1],t=e.nodeType==3?br(e,Tr(e)-+!o):e.nodeType==1&&(e.nodeName!=`BR`||!e.nextSibling)?e:null;if(t)return yi(gi(t,1),!1)}if(a==null&&i<Tr(r)){let e=r.childNodes[i];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?e.nodeType==3?br(e,0,+!o):e.nodeType==1?e:null:null;if(t)return yi(gi(t,-1),!0)}return yi(gi(r.nodeType==3?br(r):r,-n),n>=0)}function yi(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 bi(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 xi(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 Si(e,t,n){let r=t.selection,i=n==`up`?r.$from:r.$to;return xi(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=vi(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=br(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 Ci=/[\u0590-\u08ac]/;function wi(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?!Ci.test(r.parent.textContent)||!s.modify?n==`left`||n==`backward`?a:o:xi(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 Ti=null,Ei=null,Di=!1;function Oi(e,t,n){return Ti==t&&Ei==n?Di:(Ti=t,Ei=n,Di=n==`up`||n==`down`?Si(e,t,n):wi(e,t,n))}var ki=0,Ai=1,ji=2,Mi=3,Ni=class{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=ki,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(){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>_r(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 Ri){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 H&&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?_r(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?_r(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=_r(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=_r(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((Hr||Gr)&&e==t){let{node:e,offset:t}=o;if(e.nodeType==3){if(u=!!(t&&e.nodeValue[t-1]==`
7
+ `),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:_r(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(Hr&&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&&Gr)&&Sr(o.node,o.offset,l.anchorNode,l.anchorOffset)&&Sr(s.node,s.offset,l.focusNode,l.focusOffset))return;let d=!1;if((c.extend||e==t)&&!(u&&Hr)){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?ji:Ai,e==r&&t==o&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=Mi:i.markDirty(e-r,t-r);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?ji:Mi}n=a}this.dirty=ji}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=e==1?ji:Ai;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}},H=class extends Ni{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.contentEditable=`false`,a.classList.add(`ProseMirror-widget`)}super(e,[],a,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return this.dirty==ki&&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}},U=class extends Ni{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}},Pi=class e extends Ni{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=Dt.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&Mi||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Mi&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=ki){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=ki}}slice(t,n,r){let i=e.create(this.parent,this.mark,!0,r),a=this.children,o=this.size;n<o&&(a=ta(a,n,o,r)),t>0&&(a=ta(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()}},Fi=class e extends Ni{constructor(e,t,n,r,i,a,o,s,c){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=Dt.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=Ki(u,r,n),l?c=new zi(t,n,r,i,u,d||null,f,l,a,o+1):n.isText?new Li(t,n,r,i,u,f,a):new e(t,n,r,i,u,d||null,f,a,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace==`pre`&&(e.preserveWhitespace=`full`),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let t=this.children.length-1;t>=0;t--){let n=this.children[t];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>N.empty)}return e}matchesNode(e,t,n){return this.dirty==ki&&e.eq(this.node)&&qi(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 Yi(this,a&&a.node,e);Qi(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?P.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==ji)&&(a&&this.protectLocalComposition(e,a),Bi(this.contentDOM,this.children,e),Kr&&$i(this.dom))}localCompositionInfo(e,t){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof R)||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=ea(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 U(this,i,t,r);e.input.compositionNodes.push(a),this.children=ta(this.children,n,n+r.length,e,a)}update(e,t,n,r){return this.dirty==Mi||!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=ki}updateOuterDeco(e){if(qi(e,this.outerDeco))return;let t=this.nodeDOM.nodeType!=1,n=this.dom;this.dom=Wi(this.dom,this.nodeDOM,Ui(this.outerDeco,this.node,t),Ui(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 Ii(e,t,n,r,i){Ki(r,t,e);let a=new Fi(void 0,e,t,n,r,r,r,i,0);return a.contentDOM&&a.updateChildren(i,0),a}var Li=class e extends Fi{constructor(e,t,n,r,i,a,o){super(e,t,n,r,i,null,a,o,0)}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==Mi||this.dirty!=ki&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=ki||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=ki,!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,r)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(e==0||t==this.nodeDOM.nodeValue.length)&&(this.dirty=Mi)}get domAtom(){return!1}isText(e){return this.node.text==e}},Ri=class extends Ni{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==ki&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName==`IMG`}},zi=class extends Fi{constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r,i,a,o,c,l),this.spec=s}update(e,t,n,r){if(this.dirty==Mi)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 Bi(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=Ji(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(s,r);if(o instanceof Pi){let t=r?r.previousSibling:e.lastChild;Bi(o.contentDOM,o.children,n),r=t?t.nextSibling:e.firstChild}}for(;r;)r=Ji(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}var Vi=function(e){e&&(this.nodeName=e)};Vi.prototype=Object.create(null);var Hi=[new Vi];function Ui(e,t,n){if(e.length==0)return Hi;let r=n?Hi[0]:new Vi,i=[r];for(let a=0;a<e.length;a++){let o=e[a].type.attrs;if(o){o.nodeName&&i.push(r=new Vi(o.nodeName));for(let e in o){let a=o[e];a!=null&&(n&&i.length==1&&i.push(r=new Vi(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 Wi(e,t,n,r){if(n==Hi&&r==Hi)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=Hi[0],i=t)}Gi(i,o||Hi[0],a)}return i}function Gi(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 Ki(e,t,n){return Wi(e,e,Hi,Ui(t,n,e.nodeType!=1))}function qi(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 Ji(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}var Yi=class{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=Xi(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=ki,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>-1)i>this.index&&(this.changed=!0,this.destroyBetween(this.index,i)),this.top=this.top.children[this.index];else{let r=Pi.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==Mi&&a.dom==a.contentDOM&&(a.dirty=ji),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 Fi){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!=Mi&&qi(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=ji,u.updateChildren(r,a+1),u.dirty=ki),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)||!qi(n,e.outerDeco)||!r.eq(e.innerDeco))return null;let o=Fi.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=Fi.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 H(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 Pi;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof Li)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Gr||B)&&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 Ri(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 Xi(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 Pi)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 Zi(e,t){return e.type.side-t.type.side}function Qi(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(Zi);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 $i(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 ea(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;if(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 ta(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 na(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(Ar(n)){for(c=o;i&&!i.node;)i=i.parent;let e=i.node;if(i&&e.isAtom&&z.isSelectable(e)&&i.parent&&!(e.isInline&&Or(n.focusNode,n.focusOffset,i.dom))){let e=i.posBefore;l=new z(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=pa(e,u,s,n)}return l}function ra(e){return e.editable?e.hasFocus():ha(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function ia(e,t=!1){let n=e.state.selection;if(da(e,n),!ra(e))return;let r=e.input.mouseDown;if(!t&&B&&r){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&Sr(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset)&&r.delaySelUpdate()){e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)ua(e);else{let{anchor:r,head:i}=n,a,o;aa&&!(n instanceof R)&&(n.$from.parent.inlineContent||(a=oa(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(o=oa(e,n.to))),e.docView.setSelection(r,i,e,t),aa&&(a&&ca(a),o&&ca(o)),n.visible?e.dom.classList.remove(`ProseMirror-hideselection`):(e.dom.classList.add(`ProseMirror-hideselection`),`onselectionchange`in document&&la(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}var aa=Gr||B&&Wr<63;function oa(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(Gr&&i&&i.contentEditable==`false`)return sa(i);if((!i||i.contentEditable==`false`)&&(!a||a.contentEditable==`false`)){if(i)return sa(i);if(a)return sa(a)}}function sa(e){return e.contentEditable=`true`,Gr&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function ca(e){e.contentEditable=`false`,e.wasDraggable&&=(e.draggable=!0,null)}function la(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(()=>{(!ra(e)||e.state.selection.visible)&&e.dom.classList.remove(`ProseMirror-hideselection`)},20))})}function ua(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r=n.nodeName==`IMG`;r?t.collapse(n.parentNode,_r(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&Br&&Vr<=11&&(n.disabled=!0,n.disabled=!1)}function da(e,t){if(t instanceof z){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(fa(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else fa(e)}function fa(e){e.lastSelectedViewDesc&&=(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),void 0)}function pa(e,t,n,r){return e.someProp(`createSelectionBetween`,r=>r(e,t,n))||R.between(t,n,r)}function ma(e){return e.editable&&!e.hasFocus()?!1:ha(e)}function ha(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 ga(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return Sr(t.node,t.offset,n.anchorNode,n.anchorOffset)}function _a(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&&L.findFrom(a,t)}function va(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function ya(e,t,n){let r=e.state.selection;if(r instanceof R){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 va(e,new R(r.$anchor,a))}else if(!r.empty)return!1;else if(e.endOfTextblock(t>0?`forward`:`backward`)){let n=_a(e.state,t);return n&&n instanceof z?va(e,n):!1}else if(!(qr&&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?z.isSelectable(i)?va(e,new z(t<0?e.state.doc.resolve(n.pos-i.nodeSize):n)):Xr?va(e,new R(e.state.doc.resolve(t<0?o:o+i.nodeSize))):!1:!1}}else if(r instanceof z&&r.node.isInline)return va(e,new R(t>0?r.$to:r.$from));else{let n=_a(e.state,t);return n?va(e,n):!1}}function ba(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function xa(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!=`BR`)}function Sa(e,t){return t<0?Ca(e):wa(e)}function Ca(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,a,o=!1;for(Hr&&n.nodeType==1&&r<ba(n)&&xa(n.childNodes[r],-1)&&(o=!0);;)if(r>0){if(n.nodeType!=1)break;{let e=n.childNodes[r-1];if(xa(e,-1))i=n,a=--r;else if(e.nodeType==3)n=e,r=n.nodeValue.length;else break}}else if(Ta(n))break;else{let t=n.previousSibling;for(;t&&xa(t,-1);)i=n.parentNode,a=_r(t),t=t.previousSibling;if(t)n=t,r=ba(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}o?Oa(e,n,r):i&&Oa(e,i,a)}function wa(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=ba(n),a,o;for(;;)if(r<i){if(n.nodeType!=1)break;let e=n.childNodes[r];if(xa(e,1))a=n,o=++r;else break}else if(Ta(n))break;else{let t=n.nextSibling;for(;t&&xa(t,1);)a=t.parentNode,o=_r(t)+1,t=t.nextSibling;if(t)n=t,r=0,i=ba(n);else{if(n=n.parentNode,n==e.dom)break;r=i=0}}a&&Oa(e,a,o)}function Ta(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Ea(e,t){for(;e&&t==e.childNodes.length&&!kr(e);)t=_r(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 Da(e,t){for(;e&&!t&&!kr(e);)t=_r(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 Oa(e,t,n){if(t.nodeType!=3){let e,r;(r=Ea(t,n))?(t=r,n=0):(e=Da(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection();if(!r)return;if(Ar(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&&ia(e)},50)}function ka(e,t){let n=e.state.doc.resolve(t);if(!(B||Jr)&&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 Aa(e,t,n){let r=e.state.selection;if(r instanceof R&&!r.empty||n.indexOf(`s`)>-1||qr&&n.indexOf(`m`)>-1)return!1;let{$from:i,$to:a}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?`up`:`down`)){let n=_a(e.state,t);if(n&&n instanceof z)return va(e,n)}if(!i.parent.inlineContent){let n=t<0?i:a,o=r instanceof $n?L.near(n,t):L.findFrom(n,t);return o?va(e,o):!1}return!1}function ja(e,t){if(!(e.state.selection instanceof R))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 Ma(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function Na(e){if(!Gr||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;Ma(e,n,`true`),setTimeout(()=>Ma(e,n,`false`),20)}return!1}function Pa(e){let t=``;return e.ctrlKey&&(t+=`c`),e.metaKey&&(t+=`m`),e.altKey&&(t+=`a`),e.shiftKey&&(t+=`s`),t}function Fa(e,t){let n=t.keyCode,r=Pa(t);if(n==8||qr&&n==72&&r==`c`)return ja(e,-1)||Sa(e,-1);if(n==46&&!t.shiftKey||qr&&n==68&&r==`c`)return ja(e,1)||Sa(e,1);if(n==13||n==27)return!0;if(n==37||qr&&n==66&&r==`c`){let t=n==37?ka(e,e.state.selection.from)==`ltr`?-1:1:-1;return ya(e,t,r)||Sa(e,t)}else if(n==39||qr&&n==70&&r==`c`){let t=n==39?ka(e,e.state.selection.from)==`ltr`?1:-1:1;return ya(e,t,r)||Sa(e,t)}else if(n==38||qr&&n==80&&r==`c`)return Aa(e,-1,r)||Sa(e,-1);else if(n==40||qr&&n==78&&r==`c`)return Na(e)||Aa(e,1,r)||Sa(e,1);else if(r==(qr?`m`:`c`)&&(n==66||n==73||n==89||n==90))return!0;return!1}function Ia(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`)||Dt.fromSchema(e.state.schema),s=qa(),c=s.createElement(`div`);c.appendChild(o.serializeFragment(r,{document:s}));let l=c.firstChild,u,d=0;for(;l&&l.nodeType==1&&(u=Ga[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,`
8
+
9
+ `),slice:t}}function La(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 F(N.from(e.state.schema.text(t.replace(/\r\n?/g,`
10
+ `))),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=Dt.fromSchema(r);o=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=Xa(n),Xr&&Za(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`)||pt.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(c||u),context:i,ruleFromNode(e){return e.nodeName==`BR`&&!e.nextSibling&&e.parentNode&&!Ra.test(e.parentNode.nodeName)?{ignore:!0}:null}}),u)s=Qa(Wa(s,+u[1],+u[2]),u[4]);else if(s=F.maxOpen(za(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=Wa(s,e,t)}return e.someProp(`transformPasted`,t=>{s=t(s,e,c)}),s}var Ra=/^(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 za(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&&Va(t,i,e,a[a.length-1],0))a[a.length-1]=n;else{a.length&&(a[a.length-1]=Ha(a[a.length-1],i.length));let n=Ba(e,t);a.push(n),r=r.matchType(n.type),i=t}}),a)return N.from(a)}return e}function Ba(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,N.from(e));return e}function Va(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let a=Va(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(N.from(Ba(n,e,i+1))))}}function Ha(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,Ha(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(N.empty,!0);return e.copy(n.append(r))}function Ua(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=Ua(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(N.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}function Wa(e,t,n){return t<e.openStart&&(e=new F(Ua(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new F(Ua(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var Ga={thead:[`table`],tbody:[`table`],tfoot:[`table`],caption:[`table`],colgroup:[`table`],col:[`table`,`colgroup`],tr:[`table`,`tbody`],td:[`table`,`tbody`,`tr`],th:[`table`,`tbody`,`tr`]},Ka=null;function qa(){return Ka||=document.implementation.createHTMLDocument(`title`)}var Ja=null;function Ya(e){let t=window.trustedTypes;return t?(Ja||=t.defaultPolicy||t.createPolicy(`ProseMirrorClipboard`,{createHTML:e=>e}),Ja.createHTML(e)):e}function Xa(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=qa().createElement(`div`),r=/<([a-z][^>\s]+)/i.exec(e),i;if((i=r&&Ga[r[1].toLowerCase()])&&(e=i.map(e=>`<`+e+`>`).join(``)+e+i.map(e=>`</`+e+`>`).reverse().join(``)),n.innerHTML=Ya(e),i)for(let e=0;e<i.length;e++)n=n.querySelector(i[e])||n;return n}function Za(e){let t=e.querySelectorAll(B?`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 Qa(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;i=N.from(t.create(r[e+1],i)),a++,o++}return new F(i,a,o)}var $a={},eo={},to={touchstart:!0,touchmove:!0},no=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 ro(e){for(let t in $a){let n=$a[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{so(e,t)&&!oo(e,t)&&(e.editable||!(t.type in eo))&&n(e,t)},to[t]?{passive:!0}:void 0)}Gr&&e.dom.addEventListener(`input`,()=>null),ao(e)}function io(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function W(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 ao(e){e.someProp(`handleDOMEvents`,t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>oo(e,t))})}function oo(e,t){return e.someProp(`handleDOMEvents`,n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function so(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 co(e,t){!oo(e,t)&&$a[t.type]&&(e.editable||!(t.type in eo))&&$a[t.type](e,t)}eo.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!To(e)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(Yr&&B&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),Kr&&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,jr(13,`Enter`))),e.input.lastIOSEnter=0)},200)}else e.someProp(`handleKeyDown`,t=>t(e,n))||Fa(e,n)?n.preventDefault():io(e,`key`)},eo.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)},eo.keypress=(e,t)=>{let n=t;if(To(e)||!n.charCode||n.ctrlKey&&!n.altKey||qr&&n.metaKey)return;if(e.someProp(`handleKeyPress`,t=>t(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof R)||!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 lo(e){return{left:e.clientX,top:e.clientY}}function uo(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function fo(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 po(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 mo(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&z.isSelectable(r)?(po(e,new z(n),`pointer`),!0):!1}function ho(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof z&&(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(z.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:(po(e,z.create(e.state.doc,i),`pointer`),!0)}function go(e,t,n,r,i){return fo(e,`handleClickOn`,t,n,r)||e.someProp(`handleClick`,n=>n(e,t,r))||(i?ho(e,n):mo(e,n))}function _o(e,t,n,r){return fo(e,`handleDoubleClickOn`,t,n,r)||e.someProp(`handleDoubleClick`,n=>n(e,t,r))}function vo(e,t,n,r){return fo(e,`handleTripleClickOn`,t,n,r)||e.someProp(`handleTripleClick`,n=>n(e,t,r))||yo(e,n,r)}function yo(e,t,n){if(n.button!=0)return!1;let r=bo(e,t,!0),i=e.state.doc;return r?(po(e,r,`pointer`),r instanceof R&&i.eq(e.state.doc)&&(e.input.mouseDown=new wo(e,r)),!0):!1}function bo(e,t,n){let r=e.state.doc;if(t==-1)return r.inlineContent?R.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 R.create(r,a+1,a+1+t.content.size);if(n&&z.isSelectable(t))return z.create(r,a)}return null}function G(e){return jo(e)}var xo=qr?`metaKey`:`ctrlKey`;$a.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=G(e),i=Date.now(),a=`singleClick`;i-e.input.lastClick.time<500&&uo(n,e.input.lastClick)&&!n[xo]&&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(lo(n));o&&(a==`singleClick`?e.input.mouseDown=new Co(e,o,n,!!r):(a==`doubleClick`?_o:vo)(e,o.pos,o.inside,n)?n.preventDefault():io(e,`pointer`))};var So=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}},Co=class extends So{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[xo],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 z&&c.from<=a&&c.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Hr&&!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()),io(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||ia(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(lo(e))),this.updateAllowDefault(e),this.allowDefault||!t?io(this.view,`pointer`):go(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Gr&&this.mightDrag&&!this.mightDrag.node.isAtom||B&&!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)?(po(this.view,L.near(this.view.state.doc.resolve(t.pos)),`pointer`),e.preventDefault()):io(this.view,`pointer`)}move(e){this.updateAllowDefault(e),io(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}},wo=class extends So{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(),io(this.view,`pointer`);let t=this.view.posAtCoords(lo(e)),n=t&&bo(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];po(this.view,R.create(r,a,o),`pointer`)}};$a.touchstart=e=>{e.input.lastTouch=Date.now(),G(e),io(e,`pointer`)},$a.touchmove=e=>{e.input.lastTouch=Date.now(),io(e,`pointer`)},$a.contextmenu=e=>G(e);function To(e,t){return e.composing?!0:Gr&&Math.abs(Date.now()-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}var Eo=Yr?5e3:-1;eo.compositionstart=eo.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof R&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>e.type.spec.inclusive===!1)||B&&Jr&&Do(e)))e.markCursor=e.state.storedMarks||n.marks(),jo(e,!0),e.markCursor=null;else if(jo(e,!t.selection.empty),Hr&&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;if(t.nodeType==3){let n=e.domSelection();n&&n.collapse(t,t.nodeValue.length);break}else n=t,r=-1}}e.input.composing=!0}Oo(e,Eo)};function Do(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`}eo.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++,Oo(e,20))};function Oo(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>jo(e),t))}function ko(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function Ao(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=Er(t.focusNode,t.focusOffset),r=Dr(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 jo(e,t=!1){if(!(Yr&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),ko(e),t||e.docView&&e.docView.dirty){let n=na(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 Mo(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 No=Br&&Vr<15||Kr&&Zr<604;$a.copy=eo.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type==`cut`;if(r.empty)return;let a=No?null:n.clipboardData,{dom:o,text:s}=Ia(e,r.content());a?(n.preventDefault(),a.clearData(),a.setData(`text/html`,o.innerHTML),a.setData(`text/plain`,s)):Mo(e,o),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta(`uiEvent`,`cut`))};function Po(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function Fo(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?Io(e,r.value,null,i,t):Io(e,r.textContent,r.innerHTML,i,t)},50)}function Io(e,t,n,r,i){let a=La(e,t,n,r,e.state.selection.$from);if(e.someProp(`handlePaste`,t=>t(e,i,a||F.empty)))return!0;if(!a)return!1;let o=Po(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 Lo(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,` `):``}eo.paste=(e,t)=>{let n=t;if(e.composing&&!Yr)return;let r=No?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&Io(e,Lo(r),r.getData(`text/html`),i,n)?n.preventDefault():Fo(e,n)};var Ro=class{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}},zo=qr?`altKey`:`ctrlKey`;function Bo(e,t){let n;return e.someProp(`dragCopies`,e=>{n||=e(t)}),n==null?!t[zo]:!n}$a.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(lo(n)),o;if(!(a&&a.pos>=i.from&&a.pos<=(i instanceof z?i.to-1:i.to))){if(r&&r.mightDrag)o=z.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=z.create(e.state.doc,t.posBefore))}}let{dom:s,text:c,slice:l}=Ia(e,(o||e.state.selection).content());(!n.dataTransfer.files.length||!B||Wr>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(No?`Text`:`text/html`,s.innerHTML),n.dataTransfer.effectAllowed=`copyMove`,No||n.dataTransfer.setData(`text/plain`,c),e.dragging=new Ro(l,Bo(e,n),o)},$a.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},eo.dragover=eo.dragenter=(e,t)=>t.preventDefault(),eo.drop=(e,t)=>{try{Vo(e,t,e.dragging)}finally{e.dragging=null}};function Vo(e,t,n){if(!t.dataTransfer)return;let r=e.posAtCoords(lo(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=La(e,Lo(t.dataTransfer),No?null:t.dataTransfer.getData(`text/html`),!1,i);let o=!!(n&&Bo(e,t));if(e.someProp(`handleDrop`,n=>n(e,t,a||F.empty,o))){t.preventDefault();return}if(!a)return;t.preventDefault();let s=a?Dn(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&&z.isSelectable(a.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new z(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(pa(e,f,c.doc.resolve(t)))}e.focus(),e.dispatch(c.setMeta(`uiEvent`,`drop`))}$a.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())&&ia(e)},20))},$a.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)},$a.beforeinput=(e,t)=>{if(B&&Yr&&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,jr(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 eo)$a[e]=eo[e];function Ho(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 Uo=class e{constructor(e,t){this.toDOM=e,this.spec=t||Jo,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 Ko(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&&Ho(this.spec,t.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}},Wo=class e{constructor(e,t){this.attrs=e,this.spec=t||Jo}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 Ko(i,a,this)}valid(e,t){return t.from<t.to}eq(t){return this==t||t instanceof e&&Ho(this.attrs,t.attrs)&&Ho(this.spec,t.spec)}static is(t){return t.type instanceof e}destroy(){}},Go=class e{constructor(e,t){this.attrs=e,this.spec=t||Jo}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 Ko(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&&Ho(this.attrs,t.attrs)&&Ho(this.spec,t.spec)}destroy(){}},Ko=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 Uo(n,r))}static inline(t,n,r,i){return new e(t,n,new Wo(r,i))}static node(t,n,r,i){return new e(t,n,new Go(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof Wo}get widget(){return this.type instanceof Uo}},qo=[],Jo={},Yo=class e{constructor(e,t){this.local=e.length?e:qo,this.children=t.length?t:qo}static create(e,t){return t.length?rs(t,e,0,Jo):Xo}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==Xo||e.maps.length==0?this:this.mapInner(e,t,0,0,n||Jo)}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?Qo(this.children,o||[],t,n,r,i,a):o?new e(o.sort(is),qo):Xo}add(t,n){return n.length?this==Xo?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=ts(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,rs(s,e,o+1,Jo)),a+=3}});let o=$o(a?ns(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(is):this.local,i||this.children)}remove(e){return e.length==0||this==Xo?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==Xo?(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):Xo}forChild(t,n){if(this==Xo)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 Wo){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(is),qo);return r?new Zo([t,r]):t}return r||Xo}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 as(this.localsInner(e))}localsInner(e){if(this==Xo)return qo;if(e.inlineContent||!this.local.some(Wo.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof Wo||t.push(this.local[e]);return t}forEachSet(e){e(this)}};Yo.empty=new Yo([],[]),Yo.removeOverlap=as;var Xo=Yo.empty,Zo=class e{constructor(e){this.members=e}map(t,n){let r=this.members.map(e=>e.map(t,n,Jo));return e.from(r)}forChild(t,n){if(n.isLeaf)return Yo.empty;let r=[];for(let i=0;i<this.members.length;i++){let a=this.members[i].forChild(t,n);a!=Xo&&(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?as(n?t:t.sort(is)):qo}static from(t){switch(t.length){case 0:return Xo;case 1:return t[0];default:return new e(t.every(e=>e instanceof Yo)?t:t.reduce((e,t)=>e.concat(t instanceof Yo?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}};function Qo(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==Xo?(s[t+1]=-2,c=!0):(s[t]=u,s[t+1]=d,s[t+2]=r)}else c=!0}if(c){let c=rs(es(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 Yo(t.sort(is),s)}function $o(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 Ko(i.from+t,i.to+t,i.type))}return n}function es(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 ts(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 ns(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function rs(e,t,n,r){let i=[],a=!1;t.forEach((t,o)=>{let s=ts(e,t,o+n);if(s){a=!0;let e=rs(s,t,n+o+1,r);e!=Xo&&i.push(o,o+t.nodeSize,e)}});let o=$o(a?ns(e):e,-n).sort(is);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 Yo(o,i):Xo}function is(e,t){return e.from-t.from||e.to-t.to}function as(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),ss(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),ss(t,i,r.copy(a.from,r.to)));break}}}return t}function ss(e,t,n){for(;t<e.length&&is(n,e[t])>0;)t++;e.splice(t,0,n)}function cs(e){let t=[];return e.someProp(`decorations`,n=>{let r=n(e.state);r&&r!=Xo&&t.push(r)}),e.cursorWrapper&&t.push(Yo.create(e.state.doc,[e.cursorWrapper.deco])),Zo.from(t)}var ls={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},us=Br&&Vr<=11,ds=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}},fs=class{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new ds,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]);Br&&Vr<=11&&t.some(e=>e.type==`childList`&&e.removedNodes.length||e.type==`characterData`&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():Gr&&e.composing&&t.some(e=>e.type==`childList`&&e.target.nodeName==`TR`)?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),us&&(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,ls)),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(ma(this.view)){if(this.suppressingSelectionUpdates)return ia(this.view);if(Br&&Vr<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Sr(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=vr(n))t.add(n);for(let r=e.anchorNode;r;r=vr(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)&&ma(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||B&&(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(Hr&&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||vs(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&&Ar(n)&&(c=na(e))&&c.eq(L.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,ia(e),this.currentSelection.set(n),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,a),hs(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,ys(e,s)),this.handleDOMChange(i,a,o,s),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||ia(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(Br&&Vr<=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?_r(r)+1:0,o=n.localPosFromDOM(e.target,a,-1),s=i&&i.parentNode==e.target?_r(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}}},ps=new WeakMap,ms=!1;function hs(e){if(!ps.has(e)&&(ps.set(e,null),[`normal`,`nowrap`,`pre-line`].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=Hr,ms)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.`),ms=!0}}function gs(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,o=e.domAtPos(e.state.selection.anchor);return Sr(o.node,o.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function _s(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return gs(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?gs(e,n):null}function vs(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 ys(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 bs(e,t,n){let{node:r,fromOffset:i,toOffset:a,from:o,to:s}=e.docView.parseRange(t,n),c=e.domSelectionRange(),l,u=c.anchorNode;if(u&&e.dom.contains(u.nodeType==1?u:u.parentNode)&&(l=[{node:u,offset:c.anchorOffset}],Ar(c)||l.push({node:c.focusNode,offset:c.focusOffset})),B&&e.input.lastKeyCode===8)for(let e=a;e>i;e--){let t=r.childNodes[e-1],n=t.pmViewDesc;if(t.nodeName==`BR`&&!n){a=e;break}if(!n||n.size)break}let d=e.state.doc,f=e.someProp(`domParser`)||pt.fromSchema(e.state.schema),p=d.resolve(o),m=null,h=f.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:i,to:a,preserveWhitespace:p.parent.type.whitespace==`pre`?`full`:!0,findPositions:l,ruleFromNode:xs,context:p});if(l&&l[0].pos!=null){let e=l[0].pos,t=l[1]&&l[1].pos;t??=e,m={anchor:e+o,head:t+o}}return{doc:h,sel:m,from:o,to:s}}function xs(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName==`BR`&&e.parentNode){if(Gr&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement(`div`);return e.appendChild(document.createElement(`li`)),{skip:e}}else if(e.parentNode.lastChild==e||Gr&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName==`IMG`&&e.getAttribute(`mark-placeholder`))return{ignore:!0};return null}var Ss=/^(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 Cs(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=na(e,t);if(n&&!e.state.selection.eq(n)){if(B&&Yr&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp(`handleKeyDown`,t=>t(e,jr(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=bs(e,t,n),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=Os(d.content,l.doc.content,l.from,f,p);if(m&&e.input.domChangeCount++,(Kr&&e.input.lastIOSEnter>Date.now()-225||Yr)&&i.some(e=>e.nodeType==1&&!Ss.test(e.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp(`handleKeyDown`,t=>t(e,jr(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(!m)if(r&&c instanceof R&&!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=ws(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 R&&(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)),Br&&Vr<=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((Kr&&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,jr(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>m.start&&Es(u,m.start,m.endA,h,g)&&e.someProp(`handleKeyDown`,t=>t(e,jr(8,`Backspace`)))){Yr&&B&&e.domObserver.suppressSelectionUpdates();return}B&&m.endB==m.start&&(e.input.lastChromeDelete=Date.now()),Yr&&!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,jr(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=ws(e,n.doc,l.sel);t&&!(B&&e.composing&&t.empty&&(m.start!=m.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==y||t.head==n.mapping.map(b)-1)||Br&&t.empty&&t.head==y)&&n.setSelection(t)}return a&&n.setMeta(`composition`,a),n.scrollIntoView()},S;if(v)if(h.pos==g.pos){Br&&Vr<=11&&h.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>ia(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=Ts(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 ws(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:pa(e,t.resolve(n.anchor),t.resolve(n.head))}function Ts(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(N.from(l).eq(e))return{mark:s,type:o}}function Es(e,t,n,r,i){if(n-t<=i.pos-r.pos||Ds(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(Ds(a,!0,!0));return!o.parent.isTextblock||o.pos>n||Ds(o,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(o.parent.content)}function Ds(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 Os(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 ks=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 no,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(Is),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=Ms(this),js(this),this.nodeViews=Ps(this),this.docView=Ii(this.state.doc,As(this),cs(this),this.dom,this),this.domObserver=new fs(this,(e,t,n,r)=>Cs(this,e,t,n,r)),this.domObserver.start(),ro(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&&ao(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Is),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&&(ko(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=Ps(this);Fs(e,this.nodeViews)&&(this.nodeViews=e,r=!0)}(a||t.handleDOMEvents!=this._props.handleDOMEvents)&&ao(this),this.editable=Ms(this),js(this);let o=cs(this),s=As(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&&ti(this);if(i){this.domObserver.stop();let t=l&&(Br||B)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&Ns(n.selection,e.selection);if(l){let n=B?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Ao(this)),(r||!this.docView.update(e.doc,s,o,this))&&(this.docView.updateOuterDeco(s),this.docView.destroy(),this.docView=Ii(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())&&ga(this)&&i.delaySelUpdate())?ia(this,t):(da(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&&ri(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 z){let t=this.docView.domAfterPos(this.state.selection.from);t.nodeType==1&&ei(this,t.getBoundingClientRect(),e)}else ei(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 Ro(e.slice,e.move,r<0?void 0:z.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(Br){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&&oi(this.dom),ia(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 mi(this,e)}coordsAtPos(e,t=1){return vi(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 Oi(this,t||this.state,e)}pasteHTML(e,t){return Io(this,``,e,!1,t||new ClipboardEvent(`paste`))}pasteText(e,t){return Io(this,e,null,!0,t||new ClipboardEvent(`paste`))}serializeForClipboard(e){return Ia(this,e)}destroy(){this.docView&&(W(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],cs(this),this),this.dom.textContent=``):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,xr())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return co(this,e)}domSelectionRange(){let e=this.domSelection();return e?Gr&&this.root.nodeType===11&&Mr(this.dom.ownerDocument)==this.dom&&_s(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}};ks.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function As(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`,[Ko.node(0,e.state.doc.content.size,t)]}function js(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:Ko.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function Ms(e){return!e.someProp(`editable`,t=>t(e.state)===!1)}function Ns(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 Ps(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 Fs(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 Is(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 Ls={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:`'`},Rs={48:`)`,49:`!`,50:`@`,51:`#`,52:`$`,53:`%`,54:`^`,55:`&`,56:`*`,57:`(`,59:`:`,61:`+`,173:`_`,186:`:`,187:`+`,188:`<`,189:`_`,190:`>`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},zs=typeof navigator<`u`&&/Macintosh/.test(navigator.userAgent),Bs=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Vs=0;Vs<10;Vs++)Ls[48+Vs]=Ls[96+Vs]=String(Vs);for(var Vs=1;Vs<=24;Vs++)Ls[Vs+111]=`F`+Vs;for(var Vs=65;Vs<=90;Vs++)Ls[Vs]=String.fromCharCode(Vs+32),Rs[Vs]=String.fromCharCode(Vs);for(var Hs in Ls)Rs.hasOwnProperty(Hs)||(Rs[Hs]=Ls[Hs]);function Us(e){var t=!(zs&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||Bs&&e.shiftKey&&e.key&&e.key.length==1||e.key==`Unidentified`)&&e.key||(e.shiftKey?Rs:Ls)[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 Ws=typeof navigator<`u`&&/Macintosh|iPhone|iPad|iPod/.test(navigator.userAgent),Gs=typeof navigator<`u`&&/Win/.test(navigator.platform);function Ks(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))Ws?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 qs(e){let t=Object.create(null);for(let n in e)t[Ks(n)]=e[n];return t}function Js(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 Ys(e){return new pr({props:{handleKeyDown:Xs(e)}})}function Xs(e){let t=qs(e);return function(e,n){let r=Us(n),i,a=t[Js(r,n)];if(a&&a(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=` `){if(n.shiftKey){let i=t[Js(r,n,!1)];if(i&&i(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(Gs&&n.ctrlKey&&n.altKey)&&(i=Ls[n.keyCode])&&i!=r){let r=t[Js(i,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}var Zs=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function Qs(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`backward`,e):n.parentOffset>0)?null:n}var K=(e,t,n)=>{let r=Qs(e,n);if(!r)return!1;let i=ic(r);if(!i){let n=r.blockRange(),i=n&&cn(n);return i==null?!1:(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let a=i.nodeBefore;if(xc(e,i,t,-1))return!0;if(r.parent.content.size==0&&(nc(a,`end`)||z.isSelectable(a)))for(let n=r.depth;;n--){let o=On(e.doc,r.before(n),r.after(n),F.empty);if(o&&o.slice.size<o.to-o.from){if(t){let n=e.tr.step(o);n.setSelection(nc(a,`end`)?L.findFrom(n.doc.resolve(n.mapping.map(i.pos,-1)),-1):z.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},$s=(e,t,n)=>{let r=Qs(e,n);if(!r)return!1;let i=ic(r);return i?tc(e,i,t):!1},ec=(e,t,n)=>{let r=ac(e,n);if(!r)return!1;let i=cc(r);return i?tc(e,i,t):!1};function tc(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=On(e.doc,i,o,F.empty);if(!s||s.from!=i||s instanceof en&&s.slice.size>=o-i)return!1;if(n){let t=e.tr.step(s);t.setSelection(R.create(t.doc,i)),n(t.scrollIntoView())}return!0}function nc(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 rc=(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=ic(r)}let o=a&&a.nodeBefore;return!o||!z.isSelectable(o)?!1:(t&&t(e.tr.setSelection(z.create(e.doc,a.pos-o.nodeSize)).scrollIntoView()),!0)};function ic(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 ac(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`forward`,e):n.parentOffset<n.parent.content.size)?null:n}var oc=(e,t,n)=>{let r=ac(e,n);if(!r)return!1;let i=cc(r);if(!i)return!1;let a=i.nodeAfter;if(xc(e,i,t,1))return!0;if(r.parent.content.size==0&&(nc(a,`start`)||z.isSelectable(a))){let n=On(e.doc,r.before(),r.after(),F.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(nc(a,`start`)?L.findFrom(r.doc.resolve(r.mapping.map(i.pos)),1):z.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},sc=(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=cc(r)}let o=a&&a.nodeAfter;return!o||!z.isSelectable(o)?!1:(t&&t(e.tr.setSelection(z.create(e.doc,a.pos)).scrollIntoView()),!0)};function cc(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 lc=(e,t)=>{let n=e.selection,r=n instanceof z,i;if(r){if(n.node.isTextblock||!xn(e.doc,n.from))return!1;i=n.from}else if(i=wn(e.doc,n.from,-1),i==null)return!1;if(t){let n=e.tr.join(i);r&&n.setSelection(z.create(n.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(n.scrollIntoView())}return!0},uc=(e,t)=>{let n=e.selection,r;if(n instanceof z){if(n.node.isTextblock||!xn(e.doc,n.to))return!1;r=n.to}else if(r=wn(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},dc=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),a=i&&cn(i);return a==null?!1:(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},fc=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(`
11
+ `).scrollIntoView()),!0)};function pc(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 q=(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=pc(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(L.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},mc=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof $n||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=pc(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(R.create(o.doc,n+1)),t(o.scrollIntoView())}return!0},hc=(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(yn(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),i=r&&cn(r);return i==null?!1:(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)};function gc(e){return(t,n)=>{let{$from:r,$to:i}=t.selection;if(t.selection instanceof z&&t.selection.node.isBlock)return!r.parentOffset||!yn(t.doc,r.pos)?!1:(n&&n(t.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let a=[],o,s,c=!1,l=!1;for(let t=r.depth;;t--)if(r.node(t).isBlock){c=r.end(t)==r.pos+(r.depth-t),l=r.start(t)==r.pos-(r.depth-t),s=pc(r.node(t-1).contentMatchAt(r.indexAfter(t-1)));let n=e&&e(i.parent,c,r);a.unshift(n||(c&&s?{type:s}:null)),o=t;break}else{if(t==1)return!1;a.unshift(null)}let u=t.tr;(t.selection instanceof R||t.selection instanceof $n)&&u.deleteSelection();let d=u.mapping.map(r.pos),f=yn(u.doc,d,a.length,a);if(f||=(a[0]=s?{type:s}:null,yn(u.doc,d,a.length,a)),!f)return!1;if(u.split(d,a.length,a),!c&&l&&r.node(o).type!=s){let e=u.mapping.map(r.before(o)),t=u.doc.resolve(e);s&&r.node(o-1).canReplaceWith(t.index(),t.index()+1,s)&&u.setNodeMarkup(u.mapping.map(r.before(o)),s)}return n&&n(u.scrollIntoView()),!0}}var _c=gc(),vc=(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(z.create(e.doc,i))),!0)},yc=(e,t)=>(t&&t(e.tr.setSelection(new $n(e.doc))),!0);function bc(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||xn(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function xc(e,t,n,r){let i=t.nodeBefore,a=t.nodeAfter,o,s,c=i.type.spec.isolating||a.type.spec.isolating;if(!c&&bc(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=N.empty;for(let e=o.length-1;e>=0;e--)s=N.from(o[e].create(null,s));s=N.from(i.copy(s));let c=e.tr.step(new tn(t.pos-1,r,t.pos,r,new F(s,1,0),o.length,!0)),l=c.doc.resolve(r+2*o.length);l.nodeAfter&&l.nodeAfter.type==i.type&&xn(c.doc,l.pos)&&c.join(l.pos),n(c.scrollIntoView())}return!0}let u=a.type.spec.isolating||r>0&&c?null:L.findFrom(t,1),d=u&&u.$from.blockRange(u.$to),f=d&&cn(d);if(f!=null&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(l&&nc(a,`start`,!0)&&nc(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=N.empty;for(let e=o.length-1;e>=0;e--)r=N.from(o[e].copy(r));n(e.tr.step(new tn(t.pos-o.length,t.pos+a.nodeSize,t.pos+c,t.pos+a.nodeSize-c,new F(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function Sc(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(R.create(t.doc,e<0?i.start(a):i.end(a)))),!0):!1}}var Cc=Sc(-1),wc=Sc(1);function Tc(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a),s=o&&ln(o,e,t);return s?(r&&r(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function Ec(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 Dc(...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 Oc=Dc(Zs,K,rc),kc=Dc(Zs,oc,sc),Ac={Enter:Dc(fc,mc,hc,_c),"Mod-Enter":q,Backspace:Oc,"Mod-Backspace":Oc,"Shift-Backspace":Oc,Delete:kc,"Mod-Delete":kc,"Mod-a":yc},jc={"Ctrl-h":Ac.Backspace,"Alt-Backspace":Ac[`Mod-Backspace`],"Ctrl-d":Ac.Delete,"Ctrl-Alt-Backspace":Ac[`Mod-Delete`],"Alt-Delete":Ac[`Mod-Delete`],"Alt-d":Ac[`Mod-Delete`],"Ctrl-a":Cc,"Ctrl-e":wc};for(let e in Ac)jc[e]=Ac[e];typeof navigator<`u`?/Macintosh|iPhone|iPad|iPod/.test(navigator.userAgent):typeof os<`u`&&os.platform&&os.platform();function Mc(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 Nc(s,o,e,t)?(r&&r(s.scrollIntoView()),!0):!1}}function Nc(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 Ie(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new Ie(t.$from,o.resolve(t.$to.end(t.depth)),t.depth)),i=!0}let s=ln(a,n,r,t);return s?(e&&Pc(e,t,s,i,n),!0):!1}function Pc(e,t,n,r,i){let a=N.empty;for(let e=n.length-1;e>=0;e--)a=N.from(n[e].type.create(n[e].attrs,a));e.step(new tn(t.start-(r?2:0),t.end,t.start,t.end,new F(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&&yn(e.doc,c,s)&&(e.split(c,s),c+=2*s),c+=l.child(n).nodeSize;return e}function Fc(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?Ic(t,n,e,a):Lc(t,n,a):!0:!1}}function Ic(e,t,n,r){let i=e.tr,a=r.end,o=r.$to.end(r.depth);a<o&&(i.step(new tn(a-1,o,a,o,new F(N.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new Ie(i.doc.resolve(r.$from.pos),i.doc.resolve(o),r.depth));let s=cn(r);if(s==null)return!1;i.lift(r,s);let c=i.doc.resolve(i.mapping.map(a,-1)-1);return xn(i.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&i.join(c.pos),t(i.scrollIntoView()),!0}function Lc(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?N.empty:N.from(i))))return!1;let d=a.pos,f=d+o.nodeSize;return r.step(new tn(d-+!!s,f+ +!!c,d+1,f-1,new F((s?N.empty:N.from(i.copy(N.empty))).append(c?N.empty:N.from(i.copy(N.empty))),+!s,+!c),+!s)),t(r.scrollIntoView()),!0}function Rc(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=N.from(r?e.create():null),o=new F(N.from(e.create(null,N.from(s.type.create(null,i)))),r?3:1,0),l=a.start,u=a.end;n(t.tr.step(new tn(l-(r?3:1),u,l,u,o,1,!0)).scrollIntoView())}return!0}}function zc(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 Bc=class{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}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)}}buildProps(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o={tr:e,editor:r,view:a,state:zc({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}},Vc=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={}}};function J(e,t,n){return e.config[t]===void 0&&e.parent?J(e.parent,t,n):typeof e.config[t]==`function`?e.config[t].bind({...n,parent:e.parent?J(e.parent,t,n):null}):e.config[t]}function Hc(e){return{baseExtensions:e.filter(e=>e.type===`extension`),nodeExtensions:e.filter(e=>e.type===`node`),markExtensions:e.filter(e=>e.type===`mark`)}}function Uc(e){let t=[],{nodeExtensions:n,markExtensions:r}=Hc(e),i=[...n,...r],a={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(e=>{let n=J(e,`addGlobalAttributes`,{name:e.name,options:e.options,storage:e.storage,extensions:i});n&&n().forEach(e=>{e.types.forEach(n=>{Object.entries(e.attributes).forEach(([e,r])=>{t.push({type:n,name:e,attribute:{...a,...r}})})})})}),i.forEach(e=>{let n=J(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 Wc(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}function Gc(...e){return e.filter(e=>!!e).reduce((e,t)=>{let n={...e};return Object.entries(t).forEach(([e,t])=>{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=t?t.split(`;`).map(e=>e.trim()).filter(Boolean):[],i=n[e]?n[e].split(`;`).map(e=>e.trim()).filter(Boolean):[],a=new Map;i.forEach(e=>{let[t,n]=e.split(`:`).map(e=>e.trim());a.set(t,n)}),r.forEach(e=>{let[t,n]=e.split(`:`).map(e=>e.trim());a.set(t,n)}),n[e]=Array.from(a.entries()).map(([e,t])=>`${e}: ${t}`).join(`; `)}else n[e]=t}),n},{})}function Kc(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)=>Gc(e,t),{})}function qc(e){return typeof e==`function`}function Y(e,t=void 0,...n){return qc(e)?t?e.bind(t)(...n):e(...n):e}function Jc(e={}){return Object.keys(e).length===0&&e.constructor===Object}function Yc(e){return typeof e==`string`?e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e===`true`?!0:e===`false`?!1:e:e}function Xc(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):Yc(n.getAttribute(t.name));return r==null?e:{...e,[t.name]:r}},{});return{...r,...i}}}}function Zc(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>e===`attrs`&&Jc(t)?!1:t!=null))}function Qc(e,t){let n=Uc(e),{nodeExtensions:r,markExtensions:i}=Hc(e);return new lt({topNode:r.find(e=>J(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=Zc({...e.reduce((e,t)=>{let n=J(t,`extendNodeSchema`,a);return{...e,...n?n(r):{}}},{}),content:Y(J(r,`content`,a)),marks:Y(J(r,`marks`,a)),group:Y(J(r,`group`,a)),inline:Y(J(r,`inline`,a)),atom:Y(J(r,`atom`,a)),selectable:Y(J(r,`selectable`,a)),draggable:Y(J(r,`draggable`,a)),code:Y(J(r,`code`,a)),whitespace:Y(J(r,`whitespace`,a)),linebreakReplacement:Y(J(r,`linebreakReplacement`,a)),defining:Y(J(r,`defining`,a)),isolating:Y(J(r,`isolating`,a)),attrs:Object.fromEntries(i.map(e=>[e.name,{default:e?.attribute?.default}]))}),s=Y(J(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>Xc(e,i)));let c=J(r,`renderHTML`,a);c&&(o.toDOM=e=>c({node:e,HTMLAttributes:Kc(e,i)}));let l=J(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=Zc({...e.reduce((e,t)=>{let n=J(t,`extendMarkSchema`,a);return{...e,...n?n(r):{}}},{}),inclusive:Y(J(r,`inclusive`,a)),excludes:Y(J(r,`excludes`,a)),group:Y(J(r,`group`,a)),spanning:Y(J(r,`spanning`,a)),code:Y(J(r,`code`,a)),attrs:Object.fromEntries(i.map(e=>[e.name,{default:e?.attribute?.default}]))}),s=Y(J(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>Xc(e,i)));let c=J(r,`renderHTML`,a);return c&&(o.toDOM=e=>c({mark:e,HTMLAttributes:Kc(e,i)})),[r.name,o]}))})}function $c(e,t){return t.nodes[e]||t.marks[e]||null}function el(e,t){return Array.isArray(t)?t.some(t=>(typeof t==`string`?t:t.name)===e.name):t}function tl(e,t){let n=Dt.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement(`div`);return r.appendChild(n),r.innerHTML}var nl=(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 rl(e){return Object.prototype.toString.call(e)===`[object RegExp]`}var il=class{constructor(e){this.find=e.find,this.handler=e.handler}},al=(e,t)=>{if(rl(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 ol(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=nl(c)+i;return a.forEach(e=>{if(l)return;let a=al(u,e.find);if(!a)return;let c=s.state.tr,d=zc({state:s.state,transaction:c}),f={from:n-(a[0].length-i.length),to:r},{commands:p,chain:m,can:h}=new Bc({editor:t,state:d});e.handler({state:d,range:f,match:a,commands:p,chain:m,can:h})===null||!c.steps.length||(c.setMeta(o,{transform:c,from:n,to:r,text:i}),s.dispatch(c),l=!0)}),l}function sl(e){let{editor:t,rules:n}=e,r=new pr({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:tl(N.from(e),a.schema);let{from:i}=s,o=i+e.length;ol({editor:t,from:i,to:o,text:e,rules:n,plugin:r})}),e.selectionSet||e.docChanged?null:i}},props:{handleTextInput(e,i,a,o){return ol({editor:t,from:i,to:a,text:o,rules:n,plugin:r})},handleDOMEvents:{compositionend:e=>(setTimeout(()=>{let{$cursor:i}=e.state.selection;i&&ol({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?ol({editor:t,from:a.pos,to:a.pos,text:`
12
+ `,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function cl(e){return Object.prototype.toString.call(e).slice(8,-1)}function ll(e){return cl(e)===`Object`?e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype:!1}function ul(e,t){let n={...e};return ll(e)&&ll(t)&&Object.keys(t).forEach(r=>{ll(t[r])&&ll(e[r])?n[r]=ul(e[r],t[r]):n[r]=t[r]}),n}var dl=class e{constructor(e={}){this.type=`mark`,this.name=`mark`,this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Y(J(this,`addOptions`,{name:this.name}))),this.storage=Y(J(this,`addStorage`,{name:this.name,options:this.options}))||{}}static create(t={}){return new e(t)}configure(e={}){let t=this.extend({...this.config,addOptions:()=>ul(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(t={}){let n=new e(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Y(J(n,`addOptions`,{name:n.name})),n.storage=Y(J(n,`addStorage`,{name:n.name,options:n.options})),n}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}};function fl(e){return typeof e==`number`}var pl=class{constructor(e){this.find=e.find,this.handler=e.handler}},ml=(e,t,n)=>{if(rl(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 hl(e){let{editor:t,state:n,from:r,to:i,rule:a,pasteEvent:o,dropEvent:s}=e,{commands:c,chain:l,can:u}=new Bc({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,i,(e,t)=>{if(!e.isTextblock||e.type.spec.code)return;let f=Math.max(r,t),p=Math.min(i,t+e.content.size);ml(e.textBetween(f-t,p-t,void 0,``),a.find,o).forEach(e=>{if(e.index===void 0)return;let t=f+e.index+1,r=t+e[0].length,i={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},p=a.handler({state:n,range:i,match:e,commands:c,chain:l,can:u,pasteEvent:o,dropEvent:s});d.push(p)})}),d.every(e=>e!==null)}var gl=null,_l=e=>{var t;let n=new ClipboardEvent(`paste`,{clipboardData:new DataTransfer});return(t=n.clipboardData)==null||t.setData(`text/html`,e),n};function vl(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,l=zc({state:e,transaction:c});if(!(!hl({editor:t,state:l,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 pr({view(e){let n=n=>{r=e.dom.parentElement?.contains(n.target)?e.dom.parentElement:null,r&&(gl=t)},i=()=>{gl&&=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=gl;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:tl(N.from(t),r.schema);let{from:n}=d,i=n+t.length,a=_l(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(!(!fl(p)||!m||p===m.b))return c({rule:e,state:r,from:p,to:m,pasteEvt:o})}}))}function yl(e){let t=e.filter((t,n)=>e.indexOf(t)!==n);return Array.from(new Set(t))}var bl=class e{constructor(t,n){this.splittableMarks=[],this.editor=n,this.extensions=e.resolve(t),this.schema=Qc(this.extensions,n),this.setupExtensions()}static resolve(t){let n=e.sort(e.flatten(t)),r=yl(n.map(e=>e.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(e=>`'${e}'`).join(`, `)}]. This can lead to issues.`),n}static flatten(e){return e.map(e=>{let t=J(e,`addExtensions`,{name:e.name,options:e.options,storage:e.storage});return t?[e,...this.flatten(t())]:e}).flat(10)}static sort(e){return e.sort((e,t)=>{let n=J(e,`priority`)||100,r=J(t,`priority`)||100;return n>r?-1:+(n<r)})}get commands(){return this.extensions.reduce((e,t)=>{let n=J(t,`addCommands`,{name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:$c(t.name,this.schema)});return n?{...e,...n()}:e},{})}get plugins(){let{editor:t}=this,n=e.sort([...this.extensions].reverse()),r=[],i=[],a=n.map(e=>{let n={name:e.name,options:e.options,storage:e.storage,editor:t,type:$c(e.name,this.schema)},a=[],o=J(e,`addKeyboardShortcuts`,n),s={};if(e.type===`mark`&&J(e,`exitable`,n)&&(s.ArrowRight=()=>dl.handleExit({editor:t,mark:e})),o){let e=Object.fromEntries(Object.entries(o()).map(([e,n])=>[e,()=>n({editor:t})]));s={...s,...e}}let c=Ys(s);a.push(c);let l=J(e,`addInputRules`,n);el(e,t.options.enableInputRules)&&l&&r.push(...l());let u=J(e,`addPasteRules`,n);el(e,t.options.enablePasteRules)&&u&&i.push(...u());let d=J(e,`addProseMirrorPlugins`,n);if(d){let e=d();a.push(...e)}return a}).flat();return[sl({editor:t,rules:r}),...vl({editor:t,rules:i}),...a]}get attributes(){return Uc(this.extensions)}get nodeViews(){let{editor:e}=this,{nodeExtensions:t}=Hc(this.extensions);return Object.fromEntries(t.filter(e=>!!J(e,`addNodeView`)).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r=J(t,`addNodeView`,{name:t.name,options:t.options,storage:t.storage,editor:e,type:Wc(t.name,this.schema)});return r?[t.name,(i,a,o,s,c)=>{let l=Kc(i,n);return r()({node:i,view:a,getPos:o,decorations:s,innerDecorations:c,editor:e,extension:t,HTMLAttributes:l})}]:[]}))}setupExtensions(){this.extensions.forEach(e=>{this.editor.extensionStorage[e.name]=e.storage;let t={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:$c(e.name,this.schema)};e.type===`mark`&&(Y(J(e,`keepOnSplit`,t))??!0)&&this.splittableMarks.push(e.name);let n=J(e,`onBeforeCreate`,t),r=J(e,`onCreate`,t),i=J(e,`onUpdate`,t),a=J(e,`onSelectionUpdate`,t),o=J(e,`onTransaction`,t),s=J(e,`onFocus`,t),c=J(e,`onBlur`,t),l=J(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)})}},xl=class e{constructor(e={}){this.type=`extension`,this.name=`extension`,this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Y(J(this,`addOptions`,{name:this.name}))),this.storage=Y(J(this,`addStorage`,{name:this.name,options:this.options}))||{}}static create(t={}){return new e(t)}configure(e={}){let t=this.extend({...this.config,addOptions:()=>ul(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(t={}){let n=new e({...this.config,...t});return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Y(J(n,`addOptions`,{name:n.name})),n.storage=Y(J(n,`addStorage`,{name:n.name,options:n.options})),n}};function Sl(e,t,n){let{from:r,to:i}=t,{blockSeparator:a=`
13
+
14
+ `,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;e.isText&&(s+=(e?.text)?.slice(Math.max(r,n)-n,i-n))}),s}function Cl(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}var wl=xl.create({name:`clipboardTextSerializer`,addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new pr({key:new gr(`clipboardTextSerializer`),props:{clipboardTextSerializer:()=>{let{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,{ranges:a}=i,o=Math.min(...a.map(e=>e.$from.pos)),s=Math.max(...a.map(e=>e.$to.pos)),c=Cl(n);return Sl(r,{from:o,to:s},{...this.options.blockSeparator===void 0?{}:{blockSeparator:this.options.blockSeparator},textSerializers:c})}}})]}}),Tl=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),(n=window==null?void 0:window.getSelection())==null||n.removeAllRanges())}),!0),El=(e=!1)=>({commands:t})=>t.setContent(``,e),Dl=()=>({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=cn(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},Ol=e=>t=>e(t),kl=()=>({state:e,dispatch:t})=>mc(e,t),Al=(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 R(r.doc.resolve(Math.max(o-1,0)))),!0},jl=()=>({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},Ml=e=>({tr:t,state:n,dispatch:r})=>{let i=Wc(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},Nl=e=>({tr:t,dispatch:n})=>{let{from:r,to:i}=e;return n&&t.delete(r,i),!0},Pl=()=>({state:e,dispatch:t})=>Zs(e,t),Fl=()=>({commands:e})=>e.keyboardShortcut(`Enter`),Il=()=>({state:e,dispatch:t})=>q(e,t);function Ll(e,t,n={strict:!0}){let r=Object.keys(t);return r.length?r.every(r=>n.strict?t[r]===e[r]:rl(t[r])?t[r].test(e[r]):t[r]===e[r]):!0}function Rl(e,t,n={}){return e.find(e=>e.type===t&&Ll(Object.fromEntries(Object.keys(n).map(t=>[t,e.attrs[t]])),n))}function zl(e,t,n={}){return!!Rl(e,t,n)}function Bl(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)||(n||=r.node.marks[0]?.attrs,!Rl([...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&&zl([...e.parent.child(i-1).marks],t,n);)--i,a-=e.parent.child(i).nodeSize;for(;o<e.parent.childCount&&zl([...e.parent.child(o).marks],t,n);)s+=e.parent.child(o).nodeSize,o+=1;return{from:a,to:s}}function Vl(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 Hl=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let a=Vl(e,r.schema),{doc:o,selection:s}=n,{$from:c,from:l,to:u}=s;if(i){let e=Bl(c,a,t);if(e&&e.from<=l&&e.to>=u){let t=R.create(o,e.from,e.to);n.setSelection(t)}}return!0},Ul=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 Wl(e){return e instanceof R}function Gl(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function Kl(e,t=null){if(!t)return null;let n=L.atStart(e),r=L.atEnd(e);if(t===`start`||t===!0)return n;if(t===`end`)return r;let i=n.from,a=r.to;return t===`all`?R.create(e,Gl(0,i,a),Gl(e.content.size,i,a)):R.create(e,Gl(t,i,a),Gl(t,i,a))}function ql(){return/android/i.test(navigator.userAgent)}function Jl(){return/iPhone|iPod/.test(navigator.userAgent)||navigator.userAgent.includes(`Mac`)&&`ontouchend`in document}function Yl(){return typeof navigator<`u`?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}var Xl=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:a})=>{t={scrollIntoView:!0,...t};let o=()=>{(Jl()||ql())&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),Yl()&&!Jl()&&!ql()&&r.dom.focus({preventScroll:!0}))})};if(r.hasFocus()&&e===null||e===!1)return!0;if(a&&e===null&&!Wl(n.state.selection))return o(),!0;let s=Kl(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},Zl=(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),Ql=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),$l=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&&$l(r)}return e};function eu(e){let t=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(t,`text/html`).body;return $l(n)}function tu(e,t,n){if(e instanceof Re||e instanceof N)return e;n={slice:!0,parseOptions:{},...n};let r=typeof e==`object`&&!!e,i=typeof e==`string`;if(r)try{if(Array.isArray(e)&&e.length>0)return N.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),tu(``,t,n)}if(i){if(n.errorOnInvalidContent){let r=!1,i=``,a=new lt({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?pt.fromSchema(a).parseSlice(eu(e),n.parseOptions):pt.fromSchema(a).parse(eu(e),n.parseOptions),n.errorOnInvalidContent&&r)throw Error(`[tiptap error]: Invalid HTML content`,{cause:Error(`Invalid element found: ${i}`)})}let r=pt.fromSchema(t);return n.slice?r.parseSlice(eu(e),n.parseOptions).content:r.parse(eu(e),n.parseOptions)}return tu(``,t,n)}function nu(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof en||i instanceof tn))return;let a=e.mapping.maps[r],o=0;a.forEach((e,t,n,r)=>{o===0&&(o=r)}),e.setSelection(L.near(e.doc.resolve(o),n))}var ru=e=>!(`type`in e),iu=(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:()=>{a.storage.collaboration&&(a.storage.collaboration.isDisabled=!0)}})},s={preserveWhitespace:`full`,...n.parseOptions};if(!n.errorOnInvalidContent&&!a.options.enableContentCheck&&a.options.emitContentError)try{tu(t,a.schema,{parseOptions:s,errorOnInvalidContent:!0})}catch(e){o(e)}try{i=tu(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;if((ru(i)?i:[i]).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 f;if(u){if(Array.isArray(t))f=t.map(e=>e.text||``).join(``);else if(t instanceof N){let e=``;t.forEach(t=>{t.text&&(e+=t.text)}),f=e}else f=typeof t==`object`&&t&&t.text?t.text:t;r.insertText(f,c,l)}else f=i,r.replaceWith(c,l,f);n.updateSelection&&nu(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta(`applyInputRules`,{from:c,text:f}),n.applyPasteRules&&r.setMeta(`applyPasteRules`,{from:c,text:f})}return!0},au=()=>({state:e,dispatch:t})=>lc(e,t),ou=()=>({state:e,dispatch:t})=>uc(e,t),su=()=>({state:e,dispatch:t})=>K(e,t),cu=()=>({state:e,dispatch:t})=>oc(e,t),lu=()=>({state:e,dispatch:t,tr:n})=>{try{let r=wn(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},uu=()=>({state:e,dispatch:t,tr:n})=>{try{let r=wn(e.doc,e.selection.$from.pos,1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},du=()=>({state:e,dispatch:t})=>$s(e,t),fu=()=>({state:e,dispatch:t})=>ec(e,t);function pu(){return typeof navigator<`u`?/Macintosh/.test(navigator.userAgent):!1}function mu(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))Jl()||pu()?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 hu=e=>({editor:t,view:n,tr:r,dispatch:i})=>{let a=mu(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 gu(e,t,n={}){let{from:r,to:i,empty:a}=e.selection,o=t?Wc(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=>Ll(e.node.attrs,n,{strict:!1}));return a?!!l.length:l.reduce((e,t)=>e+t.to-t.from,0)>=c}var _u=(e,t={})=>({state:n,dispatch:r})=>gu(n,Wc(e,n.schema),t)?dc(n,r):!1,vu=()=>({state:e,dispatch:t})=>hc(e,t),yu=e=>({state:t,dispatch:n})=>Fc(Wc(e,t.schema))(t,n),bu=()=>({state:e,dispatch:t})=>fc(e,t);function xu(e,t){return t.nodes[e]?`node`:t.marks[e]?`mark`:null}function Su(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 Cu=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=xu(typeof e==`string`?e:e.name,r.schema);return s?(s===`node`&&(a=Wc(e,r.schema)),s===`mark`&&(o=Vl(e,r.schema)),i&&n.selection.ranges.forEach(e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,(e,r)=>{a&&a===e.type&&n.setNodeMarkup(r,void 0,Su(e.attrs,t)),o&&e.marks.length&&e.marks.forEach(i=>{o===i.type&&n.addMark(r,r+e.nodeSize,o.create(Su(i.attrs,t)))})})}),!0):!1},wu=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),Tu=()=>({tr:e,dispatch:t})=>{if(t){let t=new $n(e.doc);e.setSelection(t)}return!0},Eu=()=>({state:e,dispatch:t})=>rc(e,t),Du=()=>({state:e,dispatch:t})=>sc(e,t),Ou=()=>({state:e,dispatch:t})=>vc(e,t),ku=()=>({state:e,dispatch:t})=>wc(e,t),Au=()=>({state:e,dispatch:t})=>Cc(e,t);function ju(e,t,n={},r={}){return tu(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var Mu=(e,t=!1,n={},r={})=>({editor:i,tr:a,dispatch:o,commands:s})=>{let{doc:c}=a;if(n.preserveWhitespace!==`full`){let s=ju(e,i.schema,n,{errorOnInvalidContent:r.errorOnInvalidContent??i.options.enableContentCheck});return o&&a.replaceWith(0,c.content.size,s).setMeta(`preventUpdate`,!t),!0}return o&&a.setMeta(`preventUpdate`,!t),s.insertContentAt({from:0,to:c.content.size},e,{parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent??i.options.enableContentCheck})};function Nu(e,t){let n=Vl(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 Pu(e,t){let n=new Kn(e);return t.forEach(e=>{e.steps.forEach(e=>{n.step(e)})}),n}function Fu(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}function Iu(e,t,n){let r=[];return e.nodesBetween(t.from,t.to,(e,t)=>{n(e)&&r.push({node:e,pos:t})}),r}function Lu(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 Ru(e){return t=>Lu(t.$from,e)}function zu(e,t){return Sl(e,{from:0,to:e.content.size},t)}function Bu(e,t){let n=Wc(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 Vu(e,t){let n=xu(typeof t==`string`?t:t.name,e.schema);return n===`node`?Bu(e,t):n===`mark`?Nu(e,t):{}}function Hu(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 Uu(e){let t=Hu(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 Wu(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}})})}),Uu(r)}function Gu(e,t,n){let r=[];return e===t?n.resolve(e).marks().forEach(t=>{let i=Bl(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}function Ku(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}))}function qu(e,t,n={}){let{empty:r,ranges:i}=e.selection,a=t?Vl(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>a?a.name===e.type.name:!0).find(e=>Ll(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(!e.isText&&!e.marks.length)return;let n=Math.max(r,t),a=Math.min(i,t+e.nodeSize),c=a-n;o+=c,s.push(...e.marks.map(e=>({mark:e,from:n,to:a})))})}),o===0)return!1;let c=s.filter(e=>a?a.name===e.mark.type.name:!0).filter(e=>Ll(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 Ju(e,t,n={}){if(!t)return gu(e,null,n)||qu(e,null,n);let r=xu(t,e.schema);return r===`node`?gu(e,t,n):r===`mark`?qu(e,t,n):!1}function Yu(e,t){let{nodeExtensions:n}=Hc(t),r=n.find(t=>t.name===e);if(!r)return!1;let i=Y(J(r,`group`,{name:r.name,options:r.options,storage:r.storage}));return typeof i==`string`?i.split(` `).includes(`list`):!1}function Xu(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){if(n){if(e.type.name===`hardBreak`)return!0;if(e.isText)return/^\s*$/m.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&&(Xu(e,{ignoreWhitespace:n,checkChildren:t})||(r=!1))}),r}return!1}function Zu(e,t,n){let{selection:r}=t,i=null;if(Wl(r)&&(i=r.$cursor),i){let t=e.storedMarks??i.marks();return!!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 Qu=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=n,{empty:o,ranges:s}=a,c=Vl(e,r.schema);if(i)if(o){let e=Nu(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 Zu(r,n,c)},$u=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),ed=(e,t={})=>({state:n,dispatch:r,chain:i})=>{let a=Wc(e,n.schema),o;return n.selection.$anchor.sameParent(n.selection.$head)&&(o=n.selection.$anchor.parent.attrs),a.isTextblock?i().command(({commands:e})=>Ec(a,{...o,...t})(n)?!0:e.clearNodes()).command(({state:e})=>Ec(a,{...o,...t})(e,r)).run():(console.warn(`[tiptap warn]: Currently "setNode()" only supports text block nodes.`),!1)},td=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,r=Gl(e,0,n.content.size),i=z.create(n,r);t.setSelection(i)}return!0},nd=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,{from:r,to:i}=typeof e==`number`?{from:e,to:e}:e,a=R.atStart(n).from,o=R.atEnd(n).to,s=Gl(r,a,o),c=Gl(i,a,o),l=R.create(n,s,c);t.setSelection(l)}return!0},rd=e=>({state:t,dispatch:n})=>Rc(Wc(e,t.schema))(t,n);function id(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 ad=({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=Ku(l,s.node().type.name,s.node().attrs);if(a instanceof z&&a.node.isBlock)return!s.parentOffset||!yn(o,s.pos)?!1:(r&&(e&&id(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:Fu(s.node(-1).contentMatchAt(s.indexAfter(-1))),p=d&&f?[{type:f,attrs:u}]:void 0,m=yn(t.doc,t.mapping.map(s.pos),1,p);if(!p&&!m&&yn(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 R&&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&&id(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return m},od=(e,t={})=>({tr:n,state:r,dispatch:i,editor:a})=>{let o=Wc(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=N.empty,r=s.index(-1)?1:s.index(-2)?2:3;for(let t=s.depth-r;t>=s.depth-3;--t)e=N.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={...Ku(d,s.node().type.name,s.node().attrs),...t},c=o.contentMatch.defaultType?.createAndFill(a)||void 0;e=e.append(N.from(o.createAndFill(null,c)||void 0));let l=s.before(s.depth-(r-1));n.replace(l,s.after(-i),new F(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(R.near(n.doc.resolve(u))),n.scrollIntoView()}return!0}let f=c.pos===s.end()?u.contentMatchAt(0).defaultType:null,p={...Ku(d,u.type.name,u.attrs),...t},m={...Ku(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(!yn(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},sd=(e,t)=>{let n=Ru(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&&xn(e.doc,n.pos)&&e.join(n.pos),!0},cd=(e,t)=>{let n=Ru(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&&xn(e.doc,r)&&e.join(r),!0},ld=Object.freeze({__proto__:null,blur:Tl,clearContent:El,clearNodes:Dl,command:Ol,createParagraphNear:kl,cut:Al,deleteCurrentNode:jl,deleteNode:Ml,deleteRange:Nl,deleteSelection:Pl,enter:Fl,exitCode:Il,extendMarkRange:Hl,first:Ul,focus:Xl,forEach:Zl,insertContent:Ql,insertContentAt:iu,joinBackward:su,joinDown:ou,joinForward:cu,joinItemBackward:lu,joinItemForward:uu,joinTextblockBackward:du,joinTextblockForward:fu,joinUp:au,keyboardShortcut:hu,lift:_u,liftEmptyBlock:vu,liftListItem:yu,newlineInCode:bu,resetAttributes:Cu,scrollIntoView:wu,selectAll:Tu,selectNodeBackward:Eu,selectNodeForward:Du,selectParentNode:Ou,selectTextblockEnd:ku,selectTextblockStart:Au,setContent:Mu,setMark:Qu,setMeta:$u,setNode:ed,setNodeSelection:td,setTextSelection:nd,sinkListItem:rd,splitBlock:ad,splitListItem:od,toggleList:(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=Wc(e,o.schema),m=Wc(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=Ru(e=>Yu(e.type.name,d))(h);if(y.depth>=1&&x&&y.depth-x.depth<=1){if(x.node.type===p)return l.liftListItem(m);if(Yu(x.node.type.name,d)&&p.validContent(x.node.content)&&s)return c().command(()=>(a.setNodeMarkup(x.pos,p),!0)).command(()=>sd(a,p)).command(()=>cd(a,p)).run()}return!n||!b||!s?c().command(()=>u().wrapInList(p,r)?!0:l.clearNodes()).wrapInList(p,r).command(()=>sd(a,p)).command(()=>cd(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(()=>sd(a,p)).command(()=>cd(a,p)).run()},toggleMark:(e,t={},n={})=>({state:r,commands:i})=>{let{extendEmptyMarkRange:a=!1}=n,o=Vl(e,r.schema);return qu(r,o,t)?i.unsetMark(o,{extendEmptyMarkRange:a}):i.setMark(o,t)},toggleNode:(e,t,n={})=>({state:r,commands:i})=>{let a=Wc(e,r.schema),o=Wc(t,r.schema),s=gu(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})},toggleWrap:(e,t={})=>({state:n,commands:r})=>{let i=Wc(e,n.schema);return gu(n,i,t)?r.lift(i):r.wrapIn(i,t)},undoInputRule:()=>({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;for(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},unsetAllMarks:()=>({tr:e,dispatch:t})=>{let{selection:n}=e,{empty:r,ranges:i}=n;return r||t&&i.forEach(t=>{e.removeMark(t.$from.pos,t.$to.pos)}),!0},unsetMark:(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{extendEmptyMarkRange:a=!1}=t,{selection:o}=n,s=Vl(e,r.schema),{$from:c,empty:l,ranges:u}=o;if(!i)return!0;if(l&&a){let{from:e,to:t}=o,r=Bl(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},updateAttributes:(e,t={})=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=xu(typeof e==`string`?e:e.name,r.schema);return s?(s===`node`&&(a=Wc(e,r.schema)),s===`mark`&&(o=Vl(e,r.schema)),i&&n.selection.ranges.forEach(e=>{let i=e.$from.pos,s=e.$to.pos,c,l,u,d;n.selection.empty?r.doc.nodesBetween(i,s,(e,t)=>{a&&a===e.type&&(u=Math.max(t,i),d=Math.min(t+e.nodeSize,s),c=t,l=e)}):r.doc.nodesBetween(i,s,(e,r)=>{r<i&&a&&a===e.type&&(u=Math.max(r,i),d=Math.min(r+e.nodeSize,s),c=r,l=e),r>=i&&r<=s&&(a&&a===e.type&&n.setNodeMarkup(r,void 0,{...e.attrs,...t}),o&&e.marks.length&&e.marks.forEach(a=>{if(o===a.type){let c=Math.max(r,i),l=Math.min(r+e.nodeSize,s);n.addMark(c,l,o.create({...a.attrs,...t}))}}))}),l&&(c!==void 0&&n.setNodeMarkup(c,void 0,{...l.attrs,...t}),o&&l.marks.length&&l.marks.forEach(e=>{o===e.type&&n.addMark(u,d,o.create({...e.attrs,...t}))}))}),!0):!1},wrapIn:(e,t={})=>({state:n,dispatch:r})=>Tc(Wc(e,n.schema),t)(n,r),wrapInList:(e,t={})=>({state:n,dispatch:r})=>Mc(Wc(e,n.schema),t)(n,r)}),ud=xl.create({name:`commands`,addCommands(){return{...ld}}}),dd=xl.create({name:`drop`,addProseMirrorPlugins(){return[new pr({key:new gr(`tiptapDrop`),props:{handleDrop:(e,t,n,r)=>{this.editor.emit(`drop`,{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),fd=xl.create({name:`editable`,addProseMirrorPlugins(){return[new pr({key:new gr(`editable`),props:{editable:()=>this.editor.options.editable}})]}}),pd=new gr(`focusEvents`),md=xl.create({name:`focusEvents`,addProseMirrorPlugins(){let{editor:e}=this;return[new pr({key:pd,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}}}})]}}),hd=xl.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:L.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 Jl()||pu()?i:r},addProseMirrorPlugins(){return[new pr({key:new gr(`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=L.atStart(t.doc).from,l=L.atEnd(t.doc).to;if(a||!(o===c&&s===l)||!Xu(n.doc))return;let u=n.tr,d=zc({state:n,transaction:u}),{commands:f}=new Bc({editor:this.editor,state:d});if(f.clearNodes(),u.steps.length)return u}})]}}),gd=xl.create({name:`paste`,addProseMirrorPlugins(){return[new pr({key:new gr(`tiptapPaste`),props:{handlePaste:(e,t,n)=>{this.editor.emit(`paste`,{editor:this.editor,event:t,slice:n})}}})]}}),_d=xl.create({name:`tabindex`,addProseMirrorPlugins(){return[new pr({key:new gr(`tabindex`),props:{attributes:()=>this.editor.isEditable?{tabindex:`0`}:{}}})]}}),vd=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),n=this.resolvedPos.doc.resolve(t);return new e(n,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=this.pos+r+ +!a;if(o<0||o>this.resolvedPos.doc.nodeSize-2)return;let s=this.resolvedPos.doc.resolve(o);if(!i&&s.depth<=this.depth)return;let c=new e(s,this.editor,i,i?n:null);i&&(c.actualDepth=this.depth+1),t.push(new e(s,this.editor,i,i?n:null))}),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)}},yd=`.ProseMirror {
15
15
  position: relative;
16
16
  }
17
17
 
@@ -85,23 +85,23 @@ img.ProseMirror-separator {
85
85
 
86
86
  .tippy-box[data-animation=fade][data-state=hidden] {
87
87
  opacity: 0
88
- }`;function Sd(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}var Cd=class extends Wc{constructor(e={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement(`div`),content:``,injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:e})=>{throw e},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on(`beforeCreate`,this.options.onBeforeCreate),this.emit(`beforeCreate`,{editor:this}),this.on(`contentError`,this.options.onContentError),this.createView(),this.injectCSS(),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)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit(`create`,{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=Sd(xd,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!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}),t&&this.emit(`update`,{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){let n=Yc(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(){let e=[...this.options.enableCoreExtensions?[md,El.configure({blockSeparator:this.options.coreExtensionOptions?.clipboardTextSerializer?.blockSeparator}),fd,gd,_d,yd,pd,vd].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 Sl(e,this)}createCommandManager(){this.commandManager=new Uc({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){let e;try{e=Nu(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(t){if(!(t instanceof Error)||![`[tiptap error]: Invalid JSON content`,`[tiptap error]: Invalid HTML content`].includes(t.message))throw t;this.emit(`contentError`,{editor:this,error:t,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(e=>e.name!==`collaboration`),this.createExtensionManager()}}),e=Nu(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}let t=Jl(e,this.options.autofocus);this.view=new Ms(this.options.element,{...this.options.editorProps,attributes:{role:`textbox`,...this.options.editorProps?.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:hr.create({doc:e,selection:t||void 0})});let n=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(n),this.createNodeViews(),this.prependClass();let r=this.view.dom;r.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${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}e.steps.forEach(e=>this.capturedTransaction?.step(e));return}let t=this.state.apply(e),n=!this.state.selection.eq(t.selection);this.emit(`beforeTransaction`,{editor:this,transaction:e,nextState:t}),this.view.updateState(t),this.emit(`transaction`,{editor:this,transaction:e}),n&&this.emit(`selectionUpdate`,{editor:this,transaction:e});let r=e.getMeta(`focus`),i=e.getMeta(`blur`);r&&this.emit(`focus`,{editor:this,event:r.event,transaction:e}),i&&this.emit(`blur`,{editor:this,event:i.event,transaction:e}),!(!e.docChanged||e.getMeta(`preventUpdate`))&&this.emit(`update`,{editor:this,transaction:e})}getAttributes(e){return Uu(this.state,e)}isActive(e,t){let n=typeof e==`string`?e:null,r=typeof e==`string`?t:e;return Xu(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return rl(this.state.doc.content,this.schema)}getText(e){let{blockSeparator:t=`
88
+ }`;function bd(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}var xd=class extends Vc{constructor(e={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement(`div`),content:``,injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:e})=>{throw e},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on(`beforeCreate`,this.options.onBeforeCreate),this.emit(`beforeCreate`,{editor:this}),this.on(`contentError`,this.options.onContentError),this.createView(),this.injectCSS(),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)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit(`create`,{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=bd(yd,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!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}),t&&this.emit(`update`,{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){let n=qc(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(){let e=[...this.options.enableCoreExtensions?[fd,wl.configure({blockSeparator:this.options.coreExtensionOptions?.clipboardTextSerializer?.blockSeparator}),ud,md,hd,_d,dd,gd].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 bl(e,this)}createCommandManager(){this.commandManager=new Bc({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){let e;try{e=ju(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(t){if(!(t instanceof Error)||![`[tiptap error]: Invalid JSON content`,`[tiptap error]: Invalid HTML content`].includes(t.message))throw t;this.emit(`contentError`,{editor:this,error:t,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(e=>e.name!==`collaboration`),this.createExtensionManager()}}),e=ju(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}let t=Kl(e,this.options.autofocus);this.view=new ks(this.options.element,{...this.options.editorProps,attributes:{role:`textbox`,...this.options.editorProps?.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:dr.create({doc:e,selection:t||void 0})});let n=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(n),this.createNodeViews(),this.prependClass();let r=this.view.dom;r.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${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}e.steps.forEach(e=>this.capturedTransaction?.step(e));return}let t=this.state.apply(e),n=!this.state.selection.eq(t.selection);this.emit(`beforeTransaction`,{editor:this,transaction:e,nextState:t}),this.view.updateState(t),this.emit(`transaction`,{editor:this,transaction:e}),n&&this.emit(`selectionUpdate`,{editor:this,transaction:e});let r=e.getMeta(`focus`),i=e.getMeta(`blur`);r&&this.emit(`focus`,{editor:this,event:r.event,transaction:e}),i&&this.emit(`blur`,{editor:this,event:i.event,transaction:e}),!(!e.docChanged||e.getMeta(`preventUpdate`))&&this.emit(`update`,{editor:this,transaction:e})}getAttributes(e){return Vu(this.state,e)}isActive(e,t){let n=typeof e==`string`?e:null,r=typeof e==`string`?t:e;return Ju(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return tl(this.state.doc.content,this.schema)}getText(e){let{blockSeparator:t=`
89
89
 
90
- `,textSerializers:n={}}=e||{};return Vu(this.state.doc,{blockSeparator:t,textSerializers:{...Tl(this.schema),...n}})}get isEmpty(){return Qu(this.state.doc)}getCharacterCount(){return console.warn(`[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.`),this.state.doc.content.size-2}destroy(){if(this.emit(`destroy`),this.view){let e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){return!this.view?.docView}$node(e,t){return this.$doc?.querySelector(e,t)||null}$nodes(e,t){return this.$doc?.querySelectorAll(e,t)||null}$pos(e){return new bd(this.state.doc.resolve(e),this)}get $doc(){return this.$pos(0)}};function wd(e){return new ol({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{let a=J(e.getAttributes,void 0,r)||{},o=t.tr.delete(n.from,n.to),s=o.doc.resolve(n.from).blockRange(),c=s&&pn(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&&Tn(o.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,l))&&o.join(n.from-1)}})}var Td=class e{constructor(e={}){this.type=`node`,this.name=`node`,this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=J(K(this,`addOptions`,{name:this.name}))),this.storage=J(K(this,`addStorage`,{name:this.name,options:this.options}))||{}}static create(t={}){return new e(t)}configure(e={}){let t=this.extend({...this.config,addOptions:()=>fl(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(t={}){let n=new e(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=J(K(n,`addOptions`,{name:n.name})),n.storage=J(K(n,`addStorage`,{name:n.name,options:n.options})),n}};function Ed(e){return new hl({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{let a=J(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 r=c.search(/\S/),i=n.from+c.indexOf(s),u=i+s.length;if(qu(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>i).length)return null;u<n.to&&o.delete(u,n.to),i>n.from&&o.delete(n.from+r,i),l=n.from+r+s.length,o.addMark(n.from+r,l,e.type.create(a||{})),o.removeStoredMark(e.type)}}})}var Dd=o((e=>{var t,n,r,i;if(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}}if(typeof window>`u`||typeof MessageChannel!=`function`){var c=null,l=null,u=function(){if(c!==null)try{var t=e.unstable_now();c(!0,t),c=null}catch(e){throw setTimeout(u,0),e}};t=function(e){c===null?(c=e,setTimeout(u,0)):setTimeout(t,0,e)},n=function(e,t){l=setTimeout(e,t)},r=function(){clearTimeout(l)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,f=window.clearTimeout;if(typeof console<`u`){var p=window.cancelAnimationFrame;typeof window.requestAnimationFrame!=`function`&&console.error(`This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills`),typeof p!=`function`&&console.error(`This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills`)}var m=!1,h=null,g=-1,_=5,v=0;e.unstable_shouldYield=function(){return e.unstable_now()>=v},i=function(){},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):_=0<e?Math.floor(1e3/e):5};var y=new MessageChannel,b=y.port2;y.port1.onmessage=function(){if(h!==null){var t=e.unstable_now();v=t+_;try{h(!0,t)?b.postMessage(null):(m=!1,h=null)}catch(e){throw b.postMessage(null),e}}else m=!1},t=function(e){h=e,m||(m=!0,b.postMessage(null))},n=function(t,n){g=d(function(){t(e.unstable_now())},n)},r=function(){f(g),g=-1}}function x(e,t){var n=e.length;e.push(t);a:for(;;){var r=n-1>>>1,i=e[r];if(i!==void 0&&0<w(i,t))e[r]=t,e[n]=i,n=r;else break a}}function S(e){return e=e[0],e===void 0?null:e}function C(e){var t=e[0];if(t!==void 0){var n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,c=e[s];if(o!==void 0&&0>w(o,n))c!==void 0&&0>w(c,o)?(e[r]=c,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else if(c!==void 0&&0>w(c,n))e[r]=c,e[s]=n,r=s;else break a}}return t}return null}function w(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}var T=[],ee=[],te=1,E=null,D=3,ne=!1,re=!1,ie=!1;function O(e){for(var t=S(ee);t!==null;){if(t.callback===null)C(ee);else if(t.startTime<=e)C(ee),t.sortIndex=t.expirationTime,x(T,t);else break;t=S(ee)}}function ae(e){if(ie=!1,O(e),!re)if(S(T)!==null)re=!0,t(k);else{var r=S(ee);r!==null&&n(ae,r.startTime-e)}}function k(t,i){re=!1,ie&&(ie=!1,r()),ne=!0;var a=D;try{for(O(i),E=S(T);E!==null&&(!(E.expirationTime>i)||t&&!e.unstable_shouldYield());){var o=E.callback;if(typeof o==`function`){E.callback=null,D=E.priorityLevel;var s=o(E.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?E.callback=s:E===S(T)&&C(T),O(i)}else C(T);E=S(T)}if(E!==null)var c=!0;else{var l=S(ee);l!==null&&n(ae,l.startTime-i),c=!1}return c}finally{E=null,D=a,ne=!1}}var oe=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){re||ne||(re=!0,t(k))},e.unstable_getCurrentPriorityLevel=function(){return D},e.unstable_getFirstCallbackNode=function(){return S(T)},e.unstable_next=function(e){switch(D){case 1:case 2:case 3:var t=3;break;default:t=D}var n=D;D=t;try{return e()}finally{D=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=oe,e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=D;D=e;try{return t()}finally{D=n}},e.unstable_scheduleCallback=function(i,a,o){var s=e.unstable_now();switch(typeof o==`object`&&o?(o=o.delay,o=typeof o==`number`&&0<o?s+o:s):o=s,i){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return c=o+c,i={id:te++,callback:a,priorityLevel:i,startTime:o,expirationTime:c,sortIndex:-1},o>s?(i.sortIndex=o,x(ee,i),S(T)===null&&i===S(ee)&&(ie?r():ie=!0,n(ae,o-s))):(i.sortIndex=c,x(T,i),re||ne||(re=!0,t(k))),i},e.unstable_wrapCallback=function(e){var t=D;return function(){var n=D;D=t;try{return e.apply(this,arguments)}finally{D=n}}}})),Od=o(((e,t)=>{t.exports=Dd()})),kd=o((e=>{var t=f(),n=u(),r=Od();function i(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}if(!t)throw Error(i(227));var a=new Set,o={};function s(e,t){c(e,t),c(e+`Capture`,t)}function c(e,t){for(o[e]=t,e=0;e<t.length;e++)a.add(t[e])}var l=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,m={},h={};function g(e){return p.call(h,e)?!0:p.call(m,e)?!1:d.test(e)?h[e]=!0:(m[e]=!0,!1)}function _(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:return r?!1:n===null?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function v(e,t,n,r){if(t==null||_(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function y(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var b={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){b[e]=new y(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];b[t]=new y(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){b[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){b[e]=new y(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){b[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){b[e]=new y(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){b[e]=new y(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){b[e]=new y(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){b[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)});var x=/[\-:]([a-z])/g;function S(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(x,S);b[t]=new y(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(x,S);b[t]=new y(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(x,S);b[t]=new y(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){b[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)}),b.xlinkHref=new y(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){b[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)});function C(e,t,n,r){var i=b.hasOwnProperty(t)?b[t]:null;(i===null?!r&&!(!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`):i.type===0)||(v(t,n,i,r)&&(n=null),r||i===null?g(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=60103,ee=60106,te=60107,E=60108,D=60114,ne=60109,re=60110,ie=60112,O=60113,ae=60120,k=60115,oe=60116,se=60121,ce=60128,le=60129,ue=60130,de=60131;if(typeof Symbol==`function`&&Symbol.for){var fe=Symbol.for;T=fe(`react.element`),ee=fe(`react.portal`),te=fe(`react.fragment`),E=fe(`react.strict_mode`),D=fe(`react.profiler`),ne=fe(`react.provider`),re=fe(`react.context`),ie=fe(`react.forward_ref`),O=fe(`react.suspense`),ae=fe(`react.suspense_list`),k=fe(`react.memo`),oe=fe(`react.lazy`),se=fe(`react.block`),fe(`react.scope`),ce=fe(`react.opaque.id`),le=fe(`react.debug_trace_mode`),ue=fe(`react.offscreen`),de=fe(`react.legacy_hidden`)}var pe=typeof Symbol==`function`&&Symbol.iterator;function me(e){return typeof e!=`object`||!e?null:(e=pe&&e[pe]||e[`@@iterator`],typeof e==`function`?e:null)}var he;function ge(e){if(he===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);he=t&&t[1]||``}return`
91
- `+he+e}var _e=!1;function ve(e,t){if(!e||_e)return``;_e=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&typeof e.stack==`string`){for(var i=e.stack.split(`
90
+ `,textSerializers:n={}}=e||{};return zu(this.state.doc,{blockSeparator:t,textSerializers:{...Cl(this.schema),...n}})}get isEmpty(){return Xu(this.state.doc)}getCharacterCount(){return console.warn(`[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.`),this.state.doc.content.size-2}destroy(){if(this.emit(`destroy`),this.view){let e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){return!this.view?.docView}$node(e,t){return this.$doc?.querySelector(e,t)||null}$nodes(e,t){return this.$doc?.querySelectorAll(e,t)||null}$pos(e){return new vd(this.state.doc.resolve(e),this)}get $doc(){return this.$pos(0)}};function Sd(e){return new il({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{let a=Y(e.getAttributes,void 0,r)||{},o=t.tr.delete(n.from,n.to),s=o.doc.resolve(n.from).blockRange(),c=s&&ln(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&&xn(o.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,l))&&o.join(n.from-1)}})}var Cd=class e{constructor(e={}){this.type=`node`,this.name=`node`,this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Y(J(this,`addOptions`,{name:this.name}))),this.storage=Y(J(this,`addStorage`,{name:this.name,options:this.options}))||{}}static create(t={}){return new e(t)}configure(e={}){let t=this.extend({...this.config,addOptions:()=>ul(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(t={}){let n=new e(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=Y(J(n,`addOptions`,{name:n.name})),n.storage=Y(J(n,`addStorage`,{name:n.name,options:n.options})),n}};function wd(e){return new pl({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{let a=Y(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 r=c.search(/\S/),i=n.from+c.indexOf(s),u=i+s.length;if(Gu(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>i).length)return null;u<n.to&&o.delete(u,n.to),i>n.from&&o.delete(n.from+r,i),l=n.from+r+s.length,o.addMark(n.from+r,l,e.type.create(a||{})),o.removeStoredMark(e.type)}}})}var Td=o((e=>{var t,n,r,i;if(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}}if(typeof window>`u`||typeof MessageChannel!=`function`){var c=null,l=null,u=function(){if(c!==null)try{var t=e.unstable_now();c(!0,t),c=null}catch(e){throw setTimeout(u,0),e}};t=function(e){c===null?(c=e,setTimeout(u,0)):setTimeout(t,0,e)},n=function(e,t){l=setTimeout(e,t)},r=function(){clearTimeout(l)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,f=window.clearTimeout;if(typeof console<`u`){var p=window.cancelAnimationFrame;typeof window.requestAnimationFrame!=`function`&&console.error(`This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills`),typeof p!=`function`&&console.error(`This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills`)}var m=!1,h=null,g=-1,_=5,v=0;e.unstable_shouldYield=function(){return e.unstable_now()>=v},i=function(){},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):_=0<e?Math.floor(1e3/e):5};var y=new MessageChannel,b=y.port2;y.port1.onmessage=function(){if(h!==null){var t=e.unstable_now();v=t+_;try{h(!0,t)?b.postMessage(null):(m=!1,h=null)}catch(e){throw b.postMessage(null),e}}else m=!1},t=function(e){h=e,m||(m=!0,b.postMessage(null))},n=function(t,n){g=d(function(){t(e.unstable_now())},n)},r=function(){f(g),g=-1}}function x(e,t){var n=e.length;e.push(t);a:for(;;){var r=n-1>>>1,i=e[r];if(i!==void 0&&0<w(i,t))e[r]=t,e[n]=i,n=r;else break a}}function S(e){return e=e[0],e===void 0?null:e}function C(e){var t=e[0];if(t!==void 0){var n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,c=e[s];if(o!==void 0&&0>w(o,n))c!==void 0&&0>w(c,o)?(e[r]=c,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else if(c!==void 0&&0>w(c,n))e[r]=c,e[s]=n,r=s;else break a}}return t}return null}function w(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}var T=[],E=[],ee=1,D=null,O=3,te=!1,ne=!1,k=!1;function A(e){for(var t=S(E);t!==null;){if(t.callback===null)C(E);else if(t.startTime<=e)C(E),t.sortIndex=t.expirationTime,x(T,t);else break;t=S(E)}}function j(e){if(k=!1,A(e),!ne)if(S(T)!==null)ne=!0,t(re);else{var r=S(E);r!==null&&n(j,r.startTime-e)}}function re(t,i){ne=!1,k&&(k=!1,r()),te=!0;var a=O;try{for(A(i),D=S(T);D!==null&&(!(D.expirationTime>i)||t&&!e.unstable_shouldYield());){var o=D.callback;if(typeof o==`function`){D.callback=null,O=D.priorityLevel;var s=o(D.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?D.callback=s:D===S(T)&&C(T),A(i)}else C(T);D=S(T)}if(D!==null)var c=!0;else{var l=S(E);l!==null&&n(j,l.startTime-i),c=!1}return c}finally{D=null,O=a,te=!1}}var ie=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){ne||te||(ne=!0,t(re))},e.unstable_getCurrentPriorityLevel=function(){return O},e.unstable_getFirstCallbackNode=function(){return S(T)},e.unstable_next=function(e){switch(O){case 1:case 2:case 3:var t=3;break;default:t=O}var n=O;O=t;try{return e()}finally{O=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=ie,e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=O;O=e;try{return t()}finally{O=n}},e.unstable_scheduleCallback=function(i,a,o){var s=e.unstable_now();switch(typeof o==`object`&&o?(o=o.delay,o=typeof o==`number`&&0<o?s+o:s):o=s,i){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return c=o+c,i={id:ee++,callback:a,priorityLevel:i,startTime:o,expirationTime:c,sortIndex:-1},o>s?(i.sortIndex=o,x(E,i),S(T)===null&&i===S(E)&&(k?r():k=!0,n(j,o-s))):(i.sortIndex=c,x(T,i),ne||te||(ne=!0,t(re))),i},e.unstable_wrapCallback=function(e){var t=O;return function(){var n=O;O=t;try{return e.apply(this,arguments)}finally{O=n}}}})),Ed=o(((e,t)=>{t.exports=Td()})),Dd=o((e=>{var t=d(),n=l(),r=Ed();function i(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}if(!t)throw Error(i(227));var a=new Set,o={};function s(e,t){c(e,t),c(e+`Capture`,t)}function c(e,t){for(o[e]=t,e=0;e<t.length;e++)a.add(t[e])}var u=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,m={},h={};function g(e){return p.call(h,e)?!0:p.call(m,e)?!1:f.test(e)?h[e]=!0:(m[e]=!0,!1)}function _(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:return r?!1:n===null?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function v(e,t,n,r){if(t==null||_(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function y(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var b={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){b[e]=new y(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];b[t]=new y(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){b[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){b[e]=new y(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){b[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){b[e]=new y(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){b[e]=new y(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){b[e]=new y(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){b[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)});var x=/[\-:]([a-z])/g;function S(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(x,S);b[t]=new y(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(x,S);b[t]=new y(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(x,S);b[t]=new y(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){b[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)}),b.xlinkHref=new y(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){b[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)});function C(e,t,n,r){var i=b.hasOwnProperty(t)?b[t]:null;(i===null?!r&&!(!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`):i.type===0)||(v(t,n,i,r)&&(n=null),r||i===null?g(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=60103,E=60106,ee=60107,D=60108,O=60114,te=60109,ne=60110,k=60112,A=60113,j=60120,re=60115,ie=60116,ae=60121,oe=60128,se=60129,ce=60130,le=60131;if(typeof Symbol==`function`&&Symbol.for){var ue=Symbol.for;T=ue(`react.element`),E=ue(`react.portal`),ee=ue(`react.fragment`),D=ue(`react.strict_mode`),O=ue(`react.profiler`),te=ue(`react.provider`),ne=ue(`react.context`),k=ue(`react.forward_ref`),A=ue(`react.suspense`),j=ue(`react.suspense_list`),re=ue(`react.memo`),ie=ue(`react.lazy`),ae=ue(`react.block`),ue(`react.scope`),oe=ue(`react.opaque.id`),se=ue(`react.debug_trace_mode`),ce=ue(`react.offscreen`),le=ue(`react.legacy_hidden`)}var de=typeof Symbol==`function`&&Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=de&&e[de]||e[`@@iterator`],typeof e==`function`?e:null)}var fe;function pe(e){if(fe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);fe=t&&t[1]||``}return`
91
+ `+fe+e}var me=!1;function he(e,t){if(!e||me)return``;me=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&typeof e.stack==`string`){for(var i=e.stack.split(`
92
92
  `),a=r.stack.split(`
93
93
  `),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s])return`
94
- `+i[o].replace(` at new `,` at `);while(1<=o&&0<=s);break}}}finally{_e=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?ge(e):``}function ye(e){switch(e.tag){case 5:return ge(e.type);case 16:return ge(`Lazy`);case 13:return ge(`Suspense`);case 19:return ge(`SuspenseList`);case 0:case 2:case 15:return e=ve(e.type,!1),e;case 11:return e=ve(e.type.render,!1),e;case 22:return e=ve(e.type._render,!1),e;case 1:return e=ve(e.type,!0),e;default:return``}}function A(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case te:return`Fragment`;case ee:return`Portal`;case D:return`Profiler`;case E:return`StrictMode`;case O:return`Suspense`;case ae:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case re:return(e.displayName||`Context`)+`.Consumer`;case ne:return(e._context.displayName||`Context`)+`.Provider`;case ie:var t=e.render;return t=t.displayName||t.name||``,e.displayName||(t===``?`ForwardRef`:`ForwardRef(`+t+`)`);case k:return A(e.type);case se:return A(e._render);case oe:t=e._payload,e=e._init;try{return A(e(t))}catch{}}return null}function be(e){switch(typeof e){case`boolean`:case`number`:case`object`:case`string`:case`undefined`:return e;default:return``}}function xe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Se(e){var t=xe(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function j(e){e._valueTracker||=Se(e)}function Ce(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=xe(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function M(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function we(e,t){var r=t.checked;return n({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Te(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=be(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function Ee(e,t){t=t.checked,t!=null&&C(e,`checked`,t,!1)}function De(e,t){Ee(e,t);var n=be(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?ke(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&ke(e,t.type,be(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Oe(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function ke(e,t,n){(t!==`number`||M(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}function Ae(e){var n=``;return t.Children.forEach(e,function(e){e!=null&&(n+=e)}),n}function je(e,t){return e=n({children:void 0},t),(t=Ae(t.children))&&(e.children=t),e}function Me(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+be(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ne(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return n({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function Pe(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(i(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(i(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:be(n)}}function Fe(e,t){var n=be(t.value),r=be(t.defaultValue);n!=null&&(n=``+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=``+r)}function Ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}var Le={html:`http://www.w3.org/1999/xhtml`,mathml:`http://www.w3.org/1998/Math/MathML`,svg:`http://www.w3.org/2000/svg`};function Re(e){switch(e){case`svg`:return`http://www.w3.org/2000/svg`;case`math`:return`http://www.w3.org/1998/Math/MathML`;default:return`http://www.w3.org/1999/xhtml`}}function ze(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?Re(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var Be,Ve=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==Le.svg||`innerHTML`in e)e.innerHTML=t;else{for(Be||=document.createElement(`div`),Be.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=Be.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function He(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ue={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},We=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Ue).forEach(function(e){We.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ue[t]=Ue[e]})});function Ge(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Ue.hasOwnProperty(e)&&Ue[e]?(``+t).trim():t+`px`}function Ke(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=Ge(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var qe=n({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Je(e,t){if(t){if(qe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(!(typeof t.dangerouslySetInnerHTML==`object`&&`__html`in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(i(62))}}function Ye(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}function Xe(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ze=null,Qe=null,$e=null;function et(e){if(e=Ai(e)){if(typeof Ze!=`function`)throw Error(i(280));var t=e.stateNode;t&&(t=Mi(t),Ze(e.stateNode,e.type,t))}}function tt(e){Qe?$e?$e.push(e):$e=[e]:Qe=e}function nt(){if(Qe){var e=Qe,t=$e;if($e=Qe=null,et(e),t)for(e=0;e<t.length;e++)et(t[e])}}function rt(e,t){return e(t)}function it(e,t,n,r,i){return e(t,n,r,i)}function at(){}var ot=rt,st=!1,ct=!1;function lt(){(Qe!==null||$e!==null)&&(at(),nt())}function ut(e,t,n){if(ct)return e(t,n);ct=!0;try{return ot(e,t,n)}finally{ct=!1,lt()}}function dt(e,t){var n=e.stateNode;if(n===null)return null;var r=Mi(n);if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var ft=!1;if(l)try{var pt={};Object.defineProperty(pt,"passive",{get:function(){ft=!0}}),window.addEventListener(`test`,pt,pt),window.removeEventListener(`test`,pt,pt)}catch{ft=!1}function mt(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var ht=!1,gt=null,_t=!1,vt=null,yt={onError:function(e){ht=!0,gt=e}};function bt(e,t,n,r,i,a,o,s,c){ht=!1,gt=null,mt.apply(yt,arguments)}function xt(e,t,n,r,a,o,s,c,l){if(bt.apply(this,arguments),ht){if(ht){var u=gt;ht=!1,gt=null}else throw Error(i(198));_t||(_t=!0,vt=u)}}function St(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Ct(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function wt(e){if(St(e)!==e)throw Error(i(188))}function Tt(e){var t=e.alternate;if(!t){if(t=St(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return wt(a),e;if(o===r)return wt(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,r=o;break}if(c===r){s=!0,r=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,r=a;break}if(c===r){s=!0,r=o,n=a;break}c=c.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function Et(e){if(e=Tt(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Dt(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var Ot,kt,At,jt,Mt=!1,Nt=[],Pt=null,Ft=null,It=null,Lt=new Map,Rt=new Map,zt=[],Bt=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit`.split(` `);function Vt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:i,targetContainers:[r]}}function Ht(e,t){switch(e){case`focusin`:case`focusout`:Pt=null;break;case`dragenter`:case`dragleave`:Ft=null;break;case`mouseover`:case`mouseout`:It=null;break;case`pointerover`:case`pointerout`:Lt.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Rt.delete(t.pointerId)}}function Ut(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e=Vt(t,n,r,i,a),t!==null&&(t=Ai(t),t!==null&&kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Wt(e,t,n,r,i){switch(t){case`focusin`:return Pt=Ut(Pt,e,t,n,r,i),!0;case`dragenter`:return Ft=Ut(Ft,e,t,n,r,i),!0;case`mouseover`:return It=Ut(It,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Lt.set(a,Ut(Lt.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Rt.set(a,Ut(Rt.get(a)||null,e,t,n,r,i)),!0}return!1}function Gt(e){var t=ki(e.target);if(t!==null){var n=St(t);if(n!==null){if(t=n.tag,t===13){if(t=Ct(n),t!==null){e.blockedOn=t,jt(e.lanePriority,function(){r.unstable_runWithPriority(e.priority,function(){At(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Kt(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=jn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=Ai(n),t!==null&&kt(t),e.blockedOn=n,!1;t.shift()}return!0}function qt(e,t,n){Kt(e)&&n.delete(t)}function Jt(){for(Mt=!1;0<Nt.length;){var e=Nt[0];if(e.blockedOn!==null){e=Ai(e.blockedOn),e!==null&&Ot(e);break}for(var t=e.targetContainers;0<t.length;){var n=jn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&Nt.shift()}Pt!==null&&Kt(Pt)&&(Pt=null),Ft!==null&&Kt(Ft)&&(Ft=null),It!==null&&Kt(It)&&(It=null),Lt.forEach(qt),Rt.forEach(qt)}function Yt(e,t){e.blockedOn===t&&(e.blockedOn=null,Mt||(Mt=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Jt)))}function Xt(e){function t(t){return Yt(t,e)}if(0<Nt.length){Yt(Nt[0],e);for(var n=1;n<Nt.length;n++){var r=Nt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Pt!==null&&Yt(Pt,e),Ft!==null&&Yt(Ft,e),It!==null&&Yt(It,e),Lt.forEach(t),Rt.forEach(t),n=0;n<zt.length;n++)r=zt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<zt.length&&(n=zt[0],n.blockedOn===null);)Gt(n),n.blockedOn===null&&zt.shift()}function Zt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Qt={animationend:Zt(`Animation`,`AnimationEnd`),animationiteration:Zt(`Animation`,`AnimationIteration`),animationstart:Zt(`Animation`,`AnimationStart`),transitionend:Zt(`Transition`,`TransitionEnd`)},$t={},en={};l&&(en=document.createElement(`div`).style,`AnimationEvent`in window||(delete Qt.animationend.animation,delete Qt.animationiteration.animation,delete Qt.animationstart.animation),`TransitionEvent`in window||delete Qt.transitionend.transition);function tn(e){if($t[e])return $t[e];if(!Qt[e])return e;var t=Qt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in en)return $t[e]=t[n];return e}var nn=tn(`animationend`),rn=tn(`animationiteration`),an=tn(`animationstart`),on=tn(`transitionend`),sn=new Map,cn=new Map,ln=[`abort`,`abort`,nn,`animationEnd`,rn,`animationIteration`,an,`animationStart`,`canplay`,`canPlay`,`canplaythrough`,`canPlayThrough`,`durationchange`,`durationChange`,`emptied`,`emptied`,`encrypted`,`encrypted`,`ended`,`ended`,`error`,`error`,`gotpointercapture`,`gotPointerCapture`,`load`,`load`,`loadeddata`,`loadedData`,`loadedmetadata`,`loadedMetadata`,`loadstart`,`loadStart`,`lostpointercapture`,`lostPointerCapture`,`playing`,`playing`,`progress`,`progress`,`seeking`,`seeking`,`stalled`,`stalled`,`suspend`,`suspend`,`timeupdate`,`timeUpdate`,on,`transitionEnd`,`waiting`,`waiting`];function un(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i=`on`+(i[0].toUpperCase()+i.slice(1)),cn.set(r,t),sn.set(r,i),s(i,[r])}}var dn=r.unstable_now;dn();var N=8;function fn(e){if(1&e)return N=15,1;if(2&e)return N=14,2;if(4&e)return N=13,4;var t=24&e;return t===0?e&32?(N=11,32):(t=192&e,t===0?e&256?(N=9,256):(t=3584&e,t===0?e&4096?(N=7,4096):(t=4186112&e,t===0?(t=62914560&e,t===0?e&67108864?(N=4,67108864):e&134217728?(N=3,134217728):(t=805306368&e,t===0?1073741824&e?(N=1,1073741824):(N=8,e):(N=2,t)):(N=5,t)):(N=6,t)):(N=8,t)):(N=10,t)):(N=12,t)}function pn(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function mn(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(i(358,e))}}function hn(e,t){var n=e.pendingLanes;if(n===0)return N=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(a!==0)r=a,i=N=15;else if(a=n&134217727,a!==0){var c=a&~o;c===0?(s&=a,s!==0&&(r=fn(s),i=N)):(r=fn(c),i=N)}else a=n&~o,a===0?s!==0&&(r=fn(s),i=N):(r=fn(a),i=N);if(r===0)return 0;if(r=31-xn(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&(t&o)===0){if(fn(t),i<=N)return t;N=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-xn(t),i=1<<n,r|=e[n],t&=~i;return r}function gn(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function _n(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=vn(24&~t),e===0?_n(10,t):e;case 10:return e=vn(192&~t),e===0?_n(8,t):e;case 8:return e=vn(3584&~t),e===0&&(e=vn(4186112&~t),e===0&&(e=512)),e;case 2:return t=vn(805306368&~t),t===0&&(t=268435456),t}throw Error(i(358,e))}function vn(e){return e&-e}function yn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bn(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-xn(t),e[t]=n}var xn=Math.clz32?Math.clz32:wn,Sn=Math.log,Cn=Math.LN2;function wn(e){return e===0?32:31-(Sn(e)/Cn|0)|0}var Tn=r.unstable_UserBlockingPriority,En=r.unstable_runWithPriority,Dn=!0;function On(e,t,n,r){st||at();var i=An,a=st;st=!0;try{it(i,e,t,n,r)}finally{(st=a)||lt()}}function kn(e,t,n,r){En(Tn,An.bind(null,e,t,n,r))}function An(e,t,n,r){if(Dn){var i;if((i=(t&4)==0)&&0<Nt.length&&-1<Bt.indexOf(e))e=Vt(null,e,t,n,r),Nt.push(e);else{var a=jn(e,t,n,r);if(a===null)i&&Ht(e,r);else{if(i){if(-1<Bt.indexOf(e)){e=Vt(a,e,t,n,r),Nt.push(e);return}if(Wt(a,e,t,n,r))return;Ht(e,r)}si(e,t,r,null,n)}}}}function jn(e,t,n,r){var i=Xe(r);if(i=ki(i),i!==null){var a=St(i);if(a===null)i=null;else{var o=a.tag;if(o===13){if(i=Ct(a),i!==null)return i;i=null}else if(o===3){if(a.stateNode.hydrate)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return si(e,t,r,i,n),null}var Mn=null,Nn=null,Pn=null;function Fn(){if(Pn)return Pn;var e,t=Nn,n=t.length,r,i=`value`in Mn?Mn.value:Mn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Pn=i.slice(e,1<r?1-r:void 0)}function In(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ln(){return!0}function Rn(){return!1}function zn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Ln:Rn,this.isPropagationStopped=Rn,this}return n(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Ln)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Ln)},persist:function(){},isPersistent:Ln}),t}var Bn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Vn=zn(Bn),Hn=n({},Bn,{view:0,detail:0}),Un=zn(Hn),Wn,Gn,Kn,qn=n({},Hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:I,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Kn&&(Kn&&e.type===`mousemove`?(Wn=e.screenX-Kn.screenX,Gn=e.screenY-Kn.screenY):Gn=Wn=0,Kn=e),Wn)},movementY:function(e){return`movementY`in e?e.movementY:Gn}}),Jn=zn(qn),Yn=zn(n({},qn,{dataTransfer:0})),Xn=zn(n({},Hn,{relatedTarget:0})),Zn=zn(n({},Bn,{animationName:0,elapsedTime:0,pseudoElement:0})),P=zn(n({},Bn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Qn=zn(n({},Bn,{data:0})),$n={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},er={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},F={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function tr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=F[e])?!!t[e]:!1}function I(){return tr}var nr=zn(n({},Hn,{key:function(e){if(e.key){var t=$n[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=In(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?er[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:I,charCode:function(e){return e.type===`keypress`?In(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?In(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),rr=zn(n({},qn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),ir=zn(n({},Hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:I})),ar=zn(n({},Bn,{propertyName:0,elapsedTime:0,pseudoElement:0})),or=zn(n({},qn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),sr=[9,13,27,32],cr=l&&`CompositionEvent`in window,lr=null;l&&`documentMode`in document&&(lr=document.documentMode);var ur=l&&`TextEvent`in window&&!lr,dr=l&&(!cr||lr&&8<lr&&11>=lr),fr=` `,pr=!1;function mr(e,t){switch(e){case`keyup`:return sr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function hr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var gr=!1;function _r(e,t){switch(e){case`compositionend`:return hr(t);case`keypress`:return t.which===32?(pr=!0,fr):null;case`textInput`:return e=t.data,e===fr&&pr?null:e;default:return null}}function vr(e,t){if(gr)return e===`compositionend`||!cr&&mr(e,t)?(e=Fn(),Pn=Nn=Mn=null,gr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return dr&&t.locale!==`ko`?null:t.data;default:return null}}var yr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!yr[e.type]:t===`textarea`}function xr(e,t,n,r){tt(r),t=li(t,`onChange`),0<t.length&&(n=new Vn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Sr=null,Cr=null;function wr(e){ni(e,0)}function Tr(e){if(Ce(ji(e)))return e}function Er(e,t){if(e===`change`)return t}var Dr=!1;if(l){var Or;if(l){var kr=`oninput`in document;if(!kr){var Ar=document.createElement(`div`);Ar.setAttribute(`oninput`,`return;`),kr=typeof Ar.oninput==`function`}Or=kr}else Or=!1;Dr=Or&&(!document.documentMode||9<document.documentMode)}function jr(){Sr&&(Sr.detachEvent(`onpropertychange`,Mr),Cr=Sr=null)}function Mr(e){if(e.propertyName===`value`&&Tr(Cr)){var t=[];if(xr(t,Cr,e,Xe(e)),e=wr,st)e(t);else{st=!0;try{rt(e,t)}finally{st=!1,lt()}}}}function Nr(e,t,n){e===`focusin`?(jr(),Sr=t,Cr=n,Sr.attachEvent(`onpropertychange`,Mr)):e===`focusout`&&jr()}function Pr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Tr(Cr)}function Fr(e,t){if(e===`click`)return Tr(t)}function Ir(e,t){if(e===`input`||e===`change`)return Tr(t)}function Lr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Rr=typeof Object.is==`function`?Object.is:Lr,zr=Object.prototype.hasOwnProperty;function Br(e,t){if(Rr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!zr.call(t,n[r])||!Rr(e[n[r]],t[n[r]]))return!1;return!0}function Vr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hr(e,t){var n=Vr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Vr(n)}}function Ur(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ur(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wr(){for(var e=window,t=M();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=M(e.document)}return t}function Gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Kr=l&&`documentMode`in document&&11>=document.documentMode,qr=null,L=null,Jr=null,Yr=!1;function Xr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Yr||qr==null||qr!==M(r)||(r=qr,`selectionStart`in r&&Gr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Jr&&Br(Jr,r)||(Jr=r,r=li(L,`onSelect`),0<r.length&&(t=new Vn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=qr)))}un(`cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange`.split(` `),0),un(`drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel`.split(` `),1),un(ln,2);for(var Zr=`change selectionchange textInput compositionstart compositionend compositionupdate`.split(` `),Qr=0;Qr<Zr.length;Qr++)cn.set(Zr[Qr],0);c(`onMouseEnter`,[`mouseout`,`mouseover`]),c(`onMouseLeave`,[`mouseout`,`mouseover`]),c(`onPointerEnter`,[`pointerout`,`pointerover`]),c(`onPointerLeave`,[`pointerout`,`pointerover`]),s(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),s(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),s(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),s(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),s(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),s(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var $r=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),ei=new Set(`cancel close invalid load scroll toggle`.split(` `).concat($r));function ti(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,xt(r,t,void 0,e),e.currentTarget=null}function ni(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;ti(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;ti(i,s,l),a=c}}}if(_t)throw e=vt,_t=!1,vt=null,e}function R(e,t){var n=Ni(t),r=e+`__bubble`;n.has(r)||(oi(t,e,2,!1),n.add(r))}var ri=`_reactListening`+Math.random().toString(36).slice(2);function ii(e){e[ri]||(e[ri]=!0,a.forEach(function(t){ei.has(t)||ai(t,!1,e,null),ai(t,!0,e,null)}))}function ai(e,t,n,r){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,a=n;if(e===`selectionchange`&&n.nodeType!==9&&(a=n.ownerDocument),r!==null&&!t&&ei.has(e)){if(e!==`scroll`)return;i|=2,a=r}var o=Ni(a),s=e+`__`+(t?`capture`:`bubble`);o.has(s)||(t&&(i|=4),oi(a,e,i,t),o.add(s))}function oi(e,t,n,r){var i=cn.get(t);switch(i===void 0?2:i){case 0:i=On;break;case 1:i=kn;break;default:i=An}n=i.bind(null,t,n,e),i=void 0,!ft||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function si(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=ki(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}ut(function(){var r=a,i=Xe(n),o=[];a:{var s=sn.get(e);if(s!==void 0){var c=Vn,l=e;switch(e){case`keypress`:if(In(n)===0)break a;case`keydown`:case`keyup`:c=nr;break;case`focusin`:l=`focus`,c=Xn;break;case`focusout`:l=`blur`,c=Xn;break;case`beforeblur`:case`afterblur`:c=Xn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=Jn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Yn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=ir;break;case nn:case rn:case an:c=Zn;break;case on:c=ar;break;case`scroll`:c=Un;break;case`wheel`:c=or;break;case`copy`:case`cut`:case`paste`:c=P;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=rr}var u=(t&4)!=0,d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=dt(p,f),h!=null&&u.push(ci(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&!(t&16)&&(l=n.relatedTarget||n.fromElement)&&(ki(l)||l[Di]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?ki(l):null,l!==null&&(d=St(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=Jn,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=rr,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:ji(c),m=l==null?s:ji(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,ki(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=ui(m))p++;for(m=0,h=f;h;h=ui(h))m++;for(;0<p-m;)u=ui(u),p--;for(;0<m-p;)f=ui(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=ui(u),f=ui(f)}u=null}else u=null;c!==null&&di(o,s,c,u,!1),l!==null&&d!==null&&di(o,d,l,u,!0)}}a:{if(s=r?ji(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=Er;else if(br(s))if(Dr)g=Ir;else{g=Pr;var _=Nr}else(c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=Fr);if(g&&=g(e,r)){xr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&ke(s,`number`,s.value)}switch(_=r?ji(r):window,e){case`focusin`:(br(_)||_.contentEditable===`true`)&&(qr=_,L=r,Jr=null);break;case`focusout`:Jr=L=qr=null;break;case`mousedown`:Yr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Yr=!1,Xr(o,n,i);break;case`selectionchange`:if(Kr)break;case`keydown`:case`keyup`:Xr(o,n,i)}var v;if(cr)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else gr?mr(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(dr&&n.locale!==`ko`&&(gr||y!==`onCompositionStart`?y===`onCompositionEnd`&&gr&&(v=Fn()):(Mn=i,Nn=`value`in Mn?Mn.value:Mn.textContent,gr=!0)),_=li(r,y),0<_.length&&(y=new Qn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=hr(n),v!==null&&(y.data=v)))),(v=ur?_r(e,n):vr(e,n))&&(r=li(r,`onBeforeInput`),0<r.length&&(i=new Qn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}ni(o,t)})}function ci(e,t,n){return{instance:e,listener:t,currentTarget:n}}function li(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=dt(e,n),a!=null&&r.unshift(ci(e,a,i)),a=dt(e,t),a!=null&&r.push(ci(e,a,i))),e=e.return}return r}function ui(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function di(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=dt(n,a),c!=null&&o.unshift(ci(n,c,s))):i||(c=dt(n,a),c!=null&&o.push(ci(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}function fi(){}var pi=null,mi=null;function hi(e,t){switch(e){case`button`:case`input`:case`select`:case`textarea`:return!!t.autoFocus}return!1}function gi(e,t){return e===`textarea`||e===`option`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var _i=typeof setTimeout==`function`?setTimeout:void 0,vi=typeof clearTimeout==`function`?clearTimeout:void 0;function yi(e){e.nodeType===1?e.textContent=``:e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=``))}function bi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function xi(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var Si=0;function Ci(e){return{$$typeof:ce,toString:e,valueOf:e}}var wi=Math.random().toString(36).slice(2),Ti=`__reactFiber$`+wi,Ei=`__reactProps$`+wi,Di=`__reactContainer$`+wi,Oi=`__reactEvents$`+wi;function ki(e){var t=e[Ti];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Di]||n[Ti]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xi(e);e!==null;){if(n=e[Ti])return n;e=xi(e)}return t}e=n,n=e.parentNode}return null}function Ai(e){return e=e[Ti]||e[Di],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ji(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function Mi(e){return e[Ei]||null}function Ni(e){var t=e[Oi];return t===void 0&&(t=e[Oi]=new Set),t}var Pi=[],Fi=-1;function Ii(e){return{current:e}}function z(e){0>Fi||(e.current=Pi[Fi],Pi[Fi]=null,Fi--)}function B(e,t){Fi++,Pi[Fi]=e.current,e.current=t}var Li={},Ri=Ii(Li),zi=Ii(!1),Bi=Li;function Vi(e,t){var n=e.type.contextTypes;if(!n)return Li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Hi(e){return e=e.childContextTypes,e!=null}function Ui(){z(zi),z(Ri)}function Wi(e,t,n){if(Ri.current!==Li)throw Error(i(168));B(Ri,t),B(zi,n)}function Gi(e,t,r){var a=e.stateNode;if(e=t.childContextTypes,typeof a.getChildContext!=`function`)return r;for(var o in a=a.getChildContext(),a)if(!(o in e))throw Error(i(108,A(t)||`Unknown`,o));return n({},r,a)}function Ki(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Li,Bi=Ri.current,B(Ri,e),B(zi,zi.current),!0}function qi(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Gi(e,t,Bi),r.__reactInternalMemoizedMergedChildContext=e,z(zi),z(Ri),B(Ri,e)):z(zi),B(zi,n)}var Ji=null,Yi=null,Xi=r.unstable_runWithPriority,Zi=r.unstable_scheduleCallback,Qi=r.unstable_cancelCallback,$i=r.unstable_shouldYield,ea=r.unstable_requestPaint,ta=r.unstable_now,na=r.unstable_getCurrentPriorityLevel,ra=r.unstable_ImmediatePriority,ia=r.unstable_UserBlockingPriority,aa=r.unstable_NormalPriority,oa=r.unstable_LowPriority,sa=r.unstable_IdlePriority,ca={},la=ea===void 0?function(){}:ea,ua=null,da=null,fa=!1,pa=ta(),ma=1e4>pa?ta:function(){return ta()-pa};function ha(){switch(na()){case ra:return 99;case ia:return 98;case aa:return 97;case oa:return 96;case sa:return 95;default:throw Error(i(332))}}function ga(e){switch(e){case 99:return ra;case 98:return ia;case 97:return aa;case 96:return oa;case 95:return sa;default:throw Error(i(332))}}function _a(e,t){return e=ga(e),Xi(e,t)}function va(e,t,n){return e=ga(e),Zi(e,t,n)}function ya(){if(da!==null){var e=da;da=null,Qi(e)}ba()}function ba(){if(!fa&&ua!==null){fa=!0;var e=0;try{var t=ua;_a(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),ua=null}catch(t){throw ua!==null&&(ua=ua.slice(e+1)),Zi(ra,ya),t}finally{fa=!1}}}var xa=w.ReactCurrentBatchConfig;function Sa(e,t){if(e&&e.defaultProps){for(var r in t=n({},t),e=e.defaultProps,e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var Ca=Ii(null),wa=null,Ta=null,Ea=null;function Da(){Ea=Ta=wa=null}function Oa(e){var t=Ca.current;z(Ca),e.type._context._currentValue=t}function ka(e,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)===t){if(n===null||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,n!==null&&(n.childLanes|=t);e=e.return}}function Aa(e,t){wa=e,Ea=Ta=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(as=!0),e.firstContext=null)}function ja(e,t){if(Ea!==e&&!1!==t&&t!==0)if((typeof t!=`number`||t===1073741823)&&(Ea=e,t=1073741823),t={context:e,observedBits:t,next:null},Ta===null){if(wa===null)throw Error(i(308));Ta=t,wa.dependencies={lanes:0,firstContext:t,responders:null}}else Ta=Ta.next=t;return e._currentValue}var Ma=!1;function Na(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Pa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ia(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function La(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ra(e,t,r,i){var a=e.updateQueue;Ma=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var l=c,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var d=e.alternate;if(d!==null){d=d.updateQueue;var f=d.lastBaseUpdate;f!==s&&(f===null?d.firstBaseUpdate=u:f.next=u,d.lastBaseUpdate=l)}}if(o!==null){f=a.baseState,s=0,d=u=l=null;do{c=o.lane;var p=o.eventTime;if((i&c)===c){d!==null&&(d=d.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});a:{var m=e,h=o;switch(c=t,p=r,h.tag){case 1:if(m=h.payload,typeof m==`function`){f=m.call(p,f,c);break a}f=m;break a;case 3:m.flags=m.flags&-4097|64;case 0:if(m=h.payload,c=typeof m==`function`?m.call(p,f,c):m,c==null)break a;f=n({},f,c);break a;case 2:Ma=!0}}o.callback!==null&&(e.flags|=32,c=a.effects,c===null?a.effects=[o]:c.push(o))}else p={eventTime:p,lane:c,tag:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(u=d=p,l=f):d=d.next=p,s|=c;if(o=o.next,o===null){if(c=a.shared.pending,c===null)break;o=c.next,c.next=null,a.lastBaseUpdate=c,a.shared.pending=null}}while(1);d===null&&(l=f),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=d,lc|=s,e.lanes=s,e.memoizedState=f}}function za(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(a!==null){if(r.callback=null,r=n,typeof a!=`function`)throw Error(i(191,a));a.call(r)}}}var Ba=new t.Component().refs;function Va(e,t,r,i){t=e.memoizedState,r=r(i,t),r=r==null?t:n({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Ha={isMounted:function(e){return(e=e._reactInternals)?St(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Mc(),i=Nc(e),a=Fa(r,i);a.payload=t,n!=null&&(a.callback=n),Ia(e,a),Pc(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Mc(),i=Nc(e),a=Fa(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),Ia(e,a),Pc(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Mc(),r=Nc(e),i=Fa(n,r);i.tag=2,t!=null&&(i.callback=t),Ia(e,i),Pc(e,r,n)}};function Ua(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Br(n,r)||!Br(i,a):!0}function Wa(e,t,n){var r=!1,i=Li,a=t.contextType;return typeof a==`object`&&a?a=ja(a):(i=Hi(t)?Bi:Ri.current,r=t.contextTypes,a=(r=r!=null)?Vi(e,i):Li),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ha,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ga(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ha.enqueueReplaceState(t,t.state,null)}function Ka(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Ba,Na(e);var a=t.contextType;typeof a==`object`&&a?i.context=ja(a):(a=Hi(t)?Bi:Ri.current,i.context=Vi(e,a)),Ra(e,n,i,r),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(Va(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&Ha.enqueueReplaceState(i,i.state,null),Ra(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4)}var qa=Array.isArray;function Ja(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var a=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===a?t.ref:(t=function(e){var t=r.refs;t===Ba&&(t=r.refs={}),e===null?delete t[a]:t[a]=e},t._stringRef=a,t)}if(typeof e!=`string`)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Ya(e,t){if(e.type!==`textarea`)throw Error(i(31,Object.prototype.toString.call(t)===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:t))}function Xa(e){function t(t,n){if(e){var r=t.lastEffect;r===null?t.firstEffect=t.lastEffect=n:(r.nextEffect=n,t.lastEffect=n),n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=fl(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags=2,n):(r=r.index,r<n?(t.flags=2,n):r)):n}function s(t){return e&&t.alternate===null&&(t.flags=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=gl(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){return t!==null&&t.elementType===n.type?(r=a(t,n.props),r.ref=Ja(e,t,n),r.return=e,r):(r=pl(n.type,n.key,n.props,null,e.mode,r),r.ref=Ja(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=_l(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ml(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`||typeof t==`number`)return t=gl(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case T:return n=pl(t.type,t.key,t.props,null,e.mode,n),n.ref=Ja(e,null,t),n.return=e,n;case ee:return t=_l(t,e.mode,n),t.return=e,t}if(qa(t)||me(t))return t=ml(t,e.mode,n,null),t.return=e,t;Ya(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case T:return n.key===i?n.type===te?d(e,t,n.props.children,r,i):l(e,t,n,r):null;case ee:return n.key===i?u(e,t,n,r):null}if(qa(n)||me(n))return i===null?d(e,t,n,r,null):null;Ya(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case T:return e=e.get(r.key===null?n:r.key)||null,r.type===te?d(t,e,r.props.children,i,r.key):l(t,e,r,i);case ee:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i)}if(qa(r)||me(r))return e=e.get(n)||null,d(t,e,r,i,null);Ya(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return l}for(d=r(i,d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),l}function g(a,s,c,l){var u=me(c);if(typeof u!=`function`)throw Error(i(150));if(c=u.call(c),c==null)throw Error(i(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return u}for(h=r(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),u}return function(e,r,o,c){var l=typeof o==`object`&&!!o&&o.type===te&&o.key===null;l&&(o=o.props.children);var u=typeof o==`object`&&!!o;if(u)switch(o.$$typeof){case T:a:{for(u=o.key,l=r;l!==null;){if(l.key===u){switch(l.tag){case 7:if(o.type===te){n(e,l.sibling),r=a(l,o.props.children),r.return=e,e=r;break a}break;default:if(l.elementType===o.type){n(e,l.sibling),r=a(l,o.props),r.ref=Ja(e,l,o),r.return=e,e=r;break a}}n(e,l);break}else t(e,l);l=l.sibling}o.type===te?(r=ml(o.props.children,e.mode,c,o.key),r.return=e,e=r):(c=pl(o.type,o.key,o.props,null,e.mode,c),c.ref=Ja(e,r,o),c.return=e,e=c)}return s(e);case ee:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),r=a(r,o.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=_l(o,e.mode,c),r.return=e,e=r}return s(e)}if(typeof o==`string`||typeof o==`number`)return o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,o),r.return=e,e=r):(n(e,r),r=gl(o,e.mode,c),r.return=e,e=r),s(e);if(qa(o))return h(e,r,o,c);if(me(o))return g(e,r,o,c);if(u&&Ya(e,o),o===void 0&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(i(152,A(e.type)||`Component`))}return n(e,r)}}var Za=Xa(!0),Qa=Xa(!1),$a={},eo=Ii($a),to=Ii($a),no=Ii($a);function V(e){if(e===$a)throw Error(i(174));return e}function ro(e,t){switch(B(no,t),B(to,e),B(eo,$a),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ze(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ze(t,e)}z(eo),B(eo,t)}function io(){z(eo),z(to),z(no)}function ao(e){V(no.current);var t=V(eo.current),n=ze(t,e.type);t!==n&&(B(to,e),B(eo,n))}function oo(e){to.current===e&&(z(eo),z(to))}var H=Ii(0);function so(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var co=null,lo=null,uo=!1;function fo(e,t){var n=ll(5,null,null,0);n.elementType=`DELETED`,n.type=`DELETED`,n.stateNode=t,n.return=e,n.flags=8,e.lastEffect===null?e.firstEffect=e.lastEffect=n:(e.lastEffect.nextEffect=n,e.lastEffect=n)}function po(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t===null?!1:(e.stateNode=t,!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,!0);case 13:return!1;default:return!1}}function mo(e){if(uo){var t=lo;if(t){var n=t;if(!po(e,t)){if(t=bi(n.nextSibling),!t||!po(e,t)){e.flags=e.flags&-1025|2,uo=!1,co=e;return}fo(co,n)}co=e,lo=bi(t.firstChild)}else e.flags=e.flags&-1025|2,uo=!1,co=e}}function ho(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;co=e}function go(e){if(e!==co)return!1;if(!uo)return ho(e),uo=!0,!1;var t=e.type;if(e.tag!==5||t!==`head`&&t!==`body`&&!gi(t,e.memoizedProps))for(t=lo;t;)fo(e,t),t=bi(t.nextSibling);if(ho(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){lo=bi(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}lo=null}}else lo=co?bi(e.stateNode.nextSibling):null;return!0}function _o(){lo=co=null,uo=!1}var vo=[];function yo(){for(var e=0;e<vo.length;e++)vo[e]._workInProgressVersionPrimary=null;vo.length=0}var bo=w.ReactCurrentDispatcher,xo=w.ReactCurrentBatchConfig,So=0,U=null,Co=null,wo=null,To=!1,Eo=!1;function Do(){throw Error(i(321))}function Oo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Rr(e[n],t[n]))return!1;return!0}function ko(e,t,n,r,a,o){if(So=o,U=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,bo.current=e===null||e.memoizedState===null?ts:ns,e=n(r,a),Eo){o=0;do{if(Eo=!1,!(25>o))throw Error(i(301));o+=1,wo=Co=null,t.updateQueue=null,bo.current=rs,e=n(r,a)}while(Eo)}if(bo.current=es,t=Co!==null&&Co.next!==null,So=0,wo=Co=U=null,To=!1,t)throw Error(i(300));return e}function Ao(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wo===null?U.memoizedState=wo=e:wo=wo.next=e,wo}function jo(){if(Co===null){var e=U.alternate;e=e===null?null:e.memoizedState}else e=Co.next;var t=wo===null?U.memoizedState:wo.next;if(t!==null)wo=t,Co=e;else{if(e===null)throw Error(i(310));Co=e,e={memoizedState:Co.memoizedState,baseState:Co.baseState,baseQueue:Co.baseQueue,queue:Co.queue,next:null},wo===null?U.memoizedState=wo=e:wo=wo.next=e}return wo}function Mo(e,t){return typeof t==`function`?t(e):t}function No(e){var t=jo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=Co,a=r.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}r.baseQueue=a=o,n.pending=null}if(a!==null){a=a.next,r=r.baseState;var c=s=o=null,l=a;do{var u=l.lane;if((So&u)===u)c!==null&&(c=c.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var d={lane:u,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};c===null?(s=c=d,o=r):c=c.next=d,U.lanes|=u,lc|=u}l=l.next}while(l!==null&&l!==a);c===null?o=r:c.next=s,Rr(r,t.memoizedState)||(as=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Po(e){var t=jo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Rr(o,t.memoizedState)||(as=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Fo(e,t,n){var r=t._getVersion;r=r(t._source);var a=t._workInProgressVersionPrimary;if(a===null?(e=e.mutableReadLanes,(e=(So&e)===e)&&(t._workInProgressVersionPrimary=r,vo.push(t))):e=a===r,e)return n(t._source);throw vo.push(t),Error(i(350))}function Io(e,t,n,r){var a=tc;if(a===null)throw Error(i(349));var o=t._getVersion,s=o(t._source),c=bo.current,l=c.useState(function(){return Fo(a,t,n)}),u=l[1],d=l[0];l=wo;var f=e.memoizedState,p=f.refs,m=p.getSnapshot,h=f.source;f=f.subscribe;var g=U;return e.memoizedState={refs:p,source:t,subscribe:r},c.useEffect(function(){p.getSnapshot=n,p.setSnapshot=u;var e=o(t._source);if(!Rr(s,e)){e=n(t._source),Rr(d,e)||(u(e),e=Nc(g),a.mutableReadLanes|=e&a.pendingLanes),e=a.mutableReadLanes,a.entangledLanes|=e;for(var r=a.entanglements,i=e;0<i;){var c=31-xn(i),l=1<<c;r[c]|=e,i&=~l}}},[n,t,r]),c.useEffect(function(){return r(t._source,function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=Nc(g);a.mutableReadLanes|=r&a.pendingLanes}catch(e){n(function(){throw e})}})},[t,r]),Rr(m,n)&&Rr(h,t)&&Rr(f,r)||(e={pending:null,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:d},e.dispatch=u=$o.bind(null,U,e),l.queue=e,l.baseQueue=null,d=Fo(a,t,n),l.memoizedState=l.baseState=d),d}function Lo(e,t,n){return Io(jo(),e,t,n)}function Ro(e){var t=Ao();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:e},e=e.dispatch=$o.bind(null,U,e),[t.memoizedState,e]}function zo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=U.updateQueue,t===null?(t={lastEffect:null},U.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Bo(e){var t=Ao();return e={current:e},t.memoizedState=e}function Vo(){return jo().memoizedState}function Ho(e,t,n,r){var i=Ao();U.flags|=e,i.memoizedState=zo(1|t,n,void 0,r===void 0?null:r)}function Uo(e,t,n,r){var i=jo();r=r===void 0?null:r;var a=void 0;if(Co!==null){var o=Co.memoizedState;if(a=o.destroy,r!==null&&Oo(r,o.deps)){zo(t,n,a,r);return}}U.flags|=e,i.memoizedState=zo(1|t,n,a,r)}function Wo(e,t){return Ho(516,4,e,t)}function Go(e,t){return Uo(516,4,e,t)}function Ko(e,t){return Uo(4,2,e,t)}function qo(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Jo(e,t,n){return n=n==null?null:n.concat([e]),Uo(4,2,qo.bind(null,t,e),n)}function Yo(){}function Xo(e,t){var n=jo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Oo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Zo(e,t){var n=jo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Oo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qo(e,t){var n=ha();_a(98>n?98:n,function(){e(!0)}),_a(97<n?97:n,function(){var n=xo.transition;xo.transition=1;try{e(!1),t()}finally{xo.transition=n}})}function $o(e,t,n){var r=Mc(),i=Nc(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(o===null?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===U||o!==null&&o===U)Eo=To=!0;else{if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,c=o(s,n);if(a.eagerReducer=o,a.eagerState=c,Rr(c,s))return}catch{}Pc(e,i,r)}}var es={readContext:ja,useCallback:Do,useContext:Do,useEffect:Do,useImperativeHandle:Do,useLayoutEffect:Do,useMemo:Do,useReducer:Do,useRef:Do,useState:Do,useDebugValue:Do,useDeferredValue:Do,useTransition:Do,useMutableSource:Do,useOpaqueIdentifier:Do,unstable_isNewReconciler:!1},ts={readContext:ja,useCallback:function(e,t){return Ao().memoizedState=[e,t===void 0?null:t],e},useContext:ja,useEffect:Wo,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),Ho(4,2,qo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ho(4,2,e,t)},useMemo:function(e,t){var n=Ao();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ao();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=$o.bind(null,U,e),[r.memoizedState,e]},useRef:Bo,useState:Ro,useDebugValue:Yo,useDeferredValue:function(e){var t=Ro(e),n=t[0],r=t[1];return Wo(function(){var t=xo.transition;xo.transition=1;try{r(e)}finally{xo.transition=t}},[e]),n},useTransition:function(){var e=Ro(!1),t=e[0];return e=Qo.bind(null,e[1]),Bo(e),[e,t]},useMutableSource:function(e,t,n){var r=Ao();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Io(r,e,t,n)},useOpaqueIdentifier:function(){if(uo){var e=!1,t=Ci(function(){throw e||(e=!0,n(`r:`+(Si++).toString(36))),Error(i(355))}),n=Ro(t)[1];return!(U.mode&2)&&(U.flags|=516,zo(5,function(){n(`r:`+(Si++).toString(36))},void 0,null)),t}return t=`r:`+(Si++).toString(36),Ro(t),t},unstable_isNewReconciler:!1},ns={readContext:ja,useCallback:Xo,useContext:ja,useEffect:Go,useImperativeHandle:Jo,useLayoutEffect:Ko,useMemo:Zo,useReducer:No,useRef:Vo,useState:function(){return No(Mo)},useDebugValue:Yo,useDeferredValue:function(e){var t=No(Mo),n=t[0],r=t[1];return Go(function(){var t=xo.transition;xo.transition=1;try{r(e)}finally{xo.transition=t}},[e]),n},useTransition:function(){var e=No(Mo)[0];return[Vo().current,e]},useMutableSource:Lo,useOpaqueIdentifier:function(){return No(Mo)[0]},unstable_isNewReconciler:!1},rs={readContext:ja,useCallback:Xo,useContext:ja,useEffect:Go,useImperativeHandle:Jo,useLayoutEffect:Ko,useMemo:Zo,useReducer:Po,useRef:Vo,useState:function(){return Po(Mo)},useDebugValue:Yo,useDeferredValue:function(e){var t=Po(Mo),n=t[0],r=t[1];return Go(function(){var t=xo.transition;xo.transition=1;try{r(e)}finally{xo.transition=t}},[e]),n},useTransition:function(){var e=Po(Mo)[0];return[Vo().current,e]},useMutableSource:Lo,useOpaqueIdentifier:function(){return Po(Mo)[0]},unstable_isNewReconciler:!1},is=w.ReactCurrentOwner,as=!1;function ss(e,t,n,r){t.child=e===null?Qa(t,null,n,r):Za(t,e.child,n,r)}function cs(e,t,n,r,i){n=n.render;var a=t.ref;return Aa(t,i),r=ko(e,t,n,r,a,i),e!==null&&!as?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Ts(e,t,i)):(t.flags|=1,ss(e,t,r,i),t.child)}function ls(e,t,n,r,i,a){if(e===null){var o=n.type;return typeof o==`function`&&!ul(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,us(e,t,o,r,i,a)):(e=pl(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}return o=e.child,(i&a)===0&&(i=o.memoizedProps,n=n.compare,n=n===null?Br:n,n(i,r)&&e.ref===t.ref)?Ts(e,t,a):(t.flags|=1,e=fl(o,r),e.ref=t.ref,e.return=t,t.child=e)}function us(e,t,n,r,i,a){if(e!==null&&Br(e.memoizedProps,r)&&e.ref===t.ref)if(as=!1,(a&i)!==0)e.flags&16384&&(as=!0);else return t.lanes=e.lanes,Ts(e,t,a);return ps(e,t,n,r,a)}function ds(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`||r.mode===`unstable-defer-without-hiding`)if(!(t.mode&4))t.memoizedState={baseLanes:0},Uc(t,n);else if(n&1073741824)t.memoizedState={baseLanes:0},Uc(t,a===null?n:a.baseLanes);else return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Uc(t,e),null;else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),Uc(t,r);return ss(e,t,i,n),t.child}function fs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function ps(e,t,n,r,i){var a=Hi(n)?Bi:Ri.current;return a=Vi(t,a),Aa(t,i),n=ko(e,t,n,r,a,i),e!==null&&!as?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Ts(e,t,i)):(t.flags|=1,ss(e,t,n,i),t.child)}function ms(e,t,n,r,i){if(Hi(n)){var a=!0;Ki(t)}else a=!1;if(Aa(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Wa(t,n,r),Ka(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=ja(l):(l=Hi(n)?Bi:Ri.current,l=Vi(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&Ga(t,o,r,l),Ma=!1;var f=t.memoizedState;o.state=f,Ra(t,r,o,i),c=t.memoizedState,s!==r||f!==c||zi.current||Ma?(typeof u==`function`&&(Va(t,n,u,r),c=t.memoizedState),(s=Ma||Ua(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4)):(typeof o.componentDidMount==`function`&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4),r=!1)}else{o=t.stateNode,Pa(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Sa(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=ja(c):(c=Hi(n)?Bi:Ri.current,c=Vi(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&Ga(t,o,r,c),Ma=!1,f=t.memoizedState,o.state=f,Ra(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||zi.current||Ma?(typeof p==`function`&&(Va(t,n,p,r),m=t.memoizedState),(l=Ma||Ua(t,n,l,r,f,m,c))?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=256)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return hs(e,t,n,r,a,i)}function hs(e,t,n,r,i,a){fs(e,t);var o=(t.flags&64)!=0;if(!r&&!o)return i&&qi(t,n,!1),Ts(e,t,a);r=t.stateNode,is.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Za(t,e.child,null,a),t.child=Za(t,null,s,a)):ss(e,t,s,a),t.memoizedState=r.state,i&&qi(t,n,!0),t.child}function gs(e){var t=e.stateNode;t.pendingContext?Wi(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Wi(e,t.context,!1),ro(e,t.containerInfo)}var _s={dehydrated:null,retryLane:0};function vs(e,t,n){var r=t.pendingProps,i=H.current,a=!1,o;return(o=(t.flags&64)!=0)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!=0),o?(a=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||!0===r.unstable_avoidThisFallback||(i|=1),B(H,i&1),e===null?(r.fallback!==void 0&&mo(t),e=r.children,i=r.fallback,a?(e=ys(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=_s,e):typeof r.unstable_expectedLoadTime==`number`?(e=ys(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=_s,t.lanes=33554432,e):(n=hl({mode:`visible`,children:e},t.mode,n,null),n.return=t,t.child=n)):(e.memoizedState,a?(r=xs(e,t,r.children,r.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=i===null?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=_s,r):(n=bs(e,t,r.children,n),t.memoizedState=null,n))}function ys(e,t,n,r){var i=e.mode,a=e.child;return t={mode:`hidden`,children:t},!(i&2)&&a!==null?(a.childLanes=0,a.pendingProps=t):a=hl(t,i,0,null),n=ml(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function bs(e,t,n,r){var i=e.child;return e=i.sibling,n=fl(i,{mode:`visible`,children:n}),!(t.mode&2)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function xs(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var s={mode:`hidden`,children:n};return!(a&2)&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=s,o=n.lastEffect,o===null?t.firstEffect=t.lastEffect=null:(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null)):n=fl(o,s),e===null?(r=ml(r,a,i,null),r.flags|=2):r=fl(e,r),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Ss(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),ka(e.return,t)}function Cs(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function ws(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(ss(e,t,r.children,n),r=H.current,r&2)r=r&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ss(e,n);else if(e.tag===19)Ss(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(B(H,r),!(t.mode&2))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&so(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Cs(t,!1,i,n,a,t.lastEffect);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&so(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Cs(t,!0,n,null,a,t.lastEffect);break;case`together`:Cs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ts(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),lc|=t.lanes,(n&t.childLanes)!==0){if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=fl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=fl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var Es=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ds=function(e,t,r,i){var a=e.memoizedProps;if(a!==i){e=t.stateNode,V(eo.current);var s=null;switch(r){case`input`:a=we(e,a),i=we(e,i),s=[];break;case`option`:a=je(e,a),i=je(e,i),s=[];break;case`select`:a=n({},a,{value:void 0}),i=n({},i,{value:void 0}),s=[];break;case`textarea`:a=Ne(e,a),i=Ne(e,i),s=[];break;default:typeof a.onClick!=`function`&&typeof i.onClick==`function`&&(e.onclick=fi)}Je(r,i);var c;for(d in r=null,a)if(!i.hasOwnProperty(d)&&a.hasOwnProperty(d)&&a[d]!=null)if(d===`style`){var l=a[d];for(c in l)l.hasOwnProperty(c)&&(r||={},r[c]=``)}else d!==`dangerouslySetInnerHTML`&&d!==`children`&&d!==`suppressContentEditableWarning`&&d!==`suppressHydrationWarning`&&d!==`autoFocus`&&(o.hasOwnProperty(d)?s||=[]:(s||=[]).push(d,null));for(d in i){var u=i[d];if(l=a?.[d],i.hasOwnProperty(d)&&u!==l&&(u!=null||l!=null))if(d===`style`)if(l){for(c in l)!l.hasOwnProperty(c)||u&&u.hasOwnProperty(c)||(r||={},r[c]=``);for(c in u)u.hasOwnProperty(c)&&l[c]!==u[c]&&(r||={},r[c]=u[c])}else r||(s||=[],s.push(d,r)),r=u;else d===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(s||=[]).push(d,u)):d===`children`?typeof u!=`string`&&typeof u!=`number`||(s||=[]).push(d,``+u):d!==`suppressContentEditableWarning`&&d!==`suppressHydrationWarning`&&(o.hasOwnProperty(d)?(u!=null&&d===`onScroll`&&R(`scroll`,e),s||l===u||(s=[])):typeof u==`object`&&u&&u.$$typeof===ce?u.toString():(s||=[]).push(d,u))}r&&(s||=[]).push(`style`,r);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Os=function(e,t,n,r){n!==r&&(t.flags|=4)};function ks(e,t){if(!uo)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function As(e,t,r){var a=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Hi(t.type)&&Ui(),null;case 3:return io(),z(zi),z(Ri),yo(),a=t.stateNode,a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(go(t)?t.flags|=4:a.hydrate||(t.flags|=256)),null;case 5:oo(t);var s=V(no.current);if(r=t.type,e!==null&&t.stateNode!=null)Ds(e,t,r,a,s),e.ref!==t.ref&&(t.flags|=128);else{if(!a){if(t.stateNode===null)throw Error(i(166));return null}if(e=V(eo.current),go(t)){a=t.stateNode,r=t.type;var c=t.memoizedProps;switch(a[Ti]=t,a[Ei]=c,r){case`dialog`:R(`cancel`,a),R(`close`,a);break;case`iframe`:case`object`:case`embed`:R(`load`,a);break;case`video`:case`audio`:for(e=0;e<$r.length;e++)R($r[e],a);break;case`source`:R(`error`,a);break;case`img`:case`image`:case`link`:R(`error`,a),R(`load`,a);break;case`details`:R(`toggle`,a);break;case`input`:Te(a,c),R(`invalid`,a);break;case`select`:a._wrapperState={wasMultiple:!!c.multiple},R(`invalid`,a);break;case`textarea`:Pe(a,c),R(`invalid`,a)}for(var l in Je(r,c),e=null,c)c.hasOwnProperty(l)&&(s=c[l],l===`children`?typeof s==`string`?a.textContent!==s&&(e=[`children`,s]):typeof s==`number`&&a.textContent!==``+s&&(e=[`children`,``+s]):o.hasOwnProperty(l)&&s!=null&&l===`onScroll`&&R(`scroll`,a));switch(r){case`input`:j(a),Oe(a,c,!0);break;case`textarea`:j(a),Ie(a);break;case`select`:case`option`:break;default:typeof c.onClick==`function`&&(a.onclick=fi)}a=e,t.updateQueue=a,a!==null&&(t.flags|=4)}else{switch(l=s.nodeType===9?s:s.ownerDocument,e===Le.html&&(e=Re(r)),e===Le.html?r===`script`?(e=l.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof a.is==`string`?e=l.createElement(r,{is:a.is}):(e=l.createElement(r),r===`select`&&(l=e,a.multiple?l.multiple=!0:a.size&&(l.size=a.size))):e=l.createElementNS(e,r),e[Ti]=t,e[Ei]=a,Es(e,t,!1,!1),t.stateNode=e,l=Ye(r,a),r){case`dialog`:R(`cancel`,e),R(`close`,e),s=a;break;case`iframe`:case`object`:case`embed`:R(`load`,e),s=a;break;case`video`:case`audio`:for(s=0;s<$r.length;s++)R($r[s],e);s=a;break;case`source`:R(`error`,e),s=a;break;case`img`:case`image`:case`link`:R(`error`,e),R(`load`,e),s=a;break;case`details`:R(`toggle`,e),s=a;break;case`input`:Te(e,a),s=we(e,a),R(`invalid`,e);break;case`option`:s=je(e,a);break;case`select`:e._wrapperState={wasMultiple:!!a.multiple},s=n({},a,{value:void 0}),R(`invalid`,e);break;case`textarea`:Pe(e,a),s=Ne(e,a),R(`invalid`,e);break;default:s=a}Je(r,s);var u=s;for(c in u)if(u.hasOwnProperty(c)){var d=u[c];c===`style`?Ke(e,d):c===`dangerouslySetInnerHTML`?(d=d?d.__html:void 0,d!=null&&Ve(e,d)):c===`children`?typeof d==`string`?(r!==`textarea`||d!==``)&&He(e,d):typeof d==`number`&&He(e,``+d):c!==`suppressContentEditableWarning`&&c!==`suppressHydrationWarning`&&c!==`autoFocus`&&(o.hasOwnProperty(c)?d!=null&&c===`onScroll`&&R(`scroll`,e):d!=null&&C(e,c,d,l))}switch(r){case`input`:j(e),Oe(e,a,!1);break;case`textarea`:j(e),Ie(e);break;case`option`:a.value!=null&&e.setAttribute(`value`,``+be(a.value));break;case`select`:e.multiple=!!a.multiple,c=a.value,c==null?a.defaultValue!=null&&Me(e,!!a.multiple,a.defaultValue,!0):Me(e,!!a.multiple,c,!1);break;default:typeof s.onClick==`function`&&(e.onclick=fi)}hi(r,a)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)Os(e,t,e.memoizedProps,a);else{if(typeof a!=`string`&&t.stateNode===null)throw Error(i(166));r=V(no.current),V(eo.current),go(t)?(a=t.stateNode,r=t.memoizedProps,a[Ti]=t,a.nodeValue!==r&&(t.flags|=4)):(a=(r.nodeType===9?r:r.ownerDocument).createTextNode(a),a[Ti]=t,t.stateNode=a)}return null;case 13:return z(H),a=t.memoizedState,t.flags&64?(t.lanes=r,t):(a=a!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&go(t):r=e.memoizedState!==null,a&&!r&&t.mode&2&&(e===null&&!0!==t.memoizedProps.unstable_avoidThisFallback||H.current&1?oc===0&&(oc=3):((oc===0||oc===3)&&(oc=4),tc===null||!(lc&134217727)&&!(uc&134217727)||Rc(tc,rc))),(a||r)&&(t.flags|=4),null);case 4:return io(),e===null&&ii(t.stateNode.containerInfo),null;case 10:return Oa(t),null;case 17:return Hi(t.type)&&Ui(),null;case 19:if(z(H),a=t.memoizedState,a===null)return null;if(c=(t.flags&64)!=0,l=a.rendering,l===null)if(c)ks(a,!1);else{if(oc!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(l=so(e),l!==null){for(t.flags|=64,ks(a,!1),c=l.updateQueue,c!==null&&(t.updateQueue=c,t.flags|=4),a.lastEffect===null&&(t.firstEffect=null),t.lastEffect=a.lastEffect,a=r,r=t.child;r!==null;)c=r,e=a,c.flags&=2,c.nextEffect=null,c.firstEffect=null,c.lastEffect=null,l=c.alternate,l===null?(c.childLanes=0,c.lanes=e,c.child=null,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=l.childLanes,c.lanes=l.lanes,c.child=l.child,c.memoizedProps=l.memoizedProps,c.memoizedState=l.memoizedState,c.updateQueue=l.updateQueue,c.type=l.type,e=l.dependencies,c.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return B(H,H.current&1|2),t.child}e=e.sibling}a.tail!==null&&ma()>mc&&(t.flags|=64,c=!0,ks(a,!1),t.lanes=33554432)}else{if(!c)if(e=so(l),e!==null){if(t.flags|=64,c=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ks(a,!0),a.tail===null&&a.tailMode===`hidden`&&!l.alternate&&!uo)return t=t.lastEffect=a.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*ma()-a.renderingStartTime>mc&&r!==1073741824&&(t.flags|=64,c=!0,ks(a,!1),t.lanes=33554432);a.isBackwards?(l.sibling=t.child,t.child=l):(r=a.last,r===null?t.child=l:r.sibling=l,a.last=l)}return a.tail===null?null:(r=a.tail,a.rendering=r,a.tail=r.sibling,a.lastEffect=t.lastEffect,a.renderingStartTime=ma(),r.sibling=null,t=H.current,B(H,c?t&1|2:t&1),r);case 23:case 24:return Wc(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&a.mode!==`unstable-defer-without-hiding`&&(t.flags|=4),null}throw Error(i(156,t.tag))}function js(e){switch(e.tag){case 1:Hi(e.type)&&Ui();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(io(),z(zi),z(Ri),yo(),t=e.flags,t&64)throw Error(i(285));return e.flags=t&-4097|64,e;case 5:return oo(e),null;case 13:return z(H),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return z(H),null;case 4:return io(),null;case 10:return Oa(e),null;case 23:case 24:return Wc(),null;default:return null}}function Ms(e,t){try{var n=``,r=t;do n+=ye(r),r=r.return;while(r);var i=n}catch(e){i=`
94
+ `+i[o].replace(` at new `,` at `);while(1<=o&&0<=s);break}}}finally{me=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?pe(e):``}function N(e){switch(e.tag){case 5:return pe(e.type);case 16:return pe(`Lazy`);case 13:return pe(`Suspense`);case 19:return pe(`SuspenseList`);case 0:case 2:case 15:return e=he(e.type,!1),e;case 11:return e=he(e.type.render,!1),e;case 22:return e=he(e.type._render,!1),e;case 1:return e=he(e.type,!0),e;default:return``}}function ge(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ee:return`Fragment`;case E:return`Portal`;case O:return`Profiler`;case D:return`StrictMode`;case A:return`Suspense`;case j:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case ne:return(e.displayName||`Context`)+`.Consumer`;case te:return(e._context.displayName||`Context`)+`.Provider`;case k:var t=e.render;return t=t.displayName||t.name||``,e.displayName||(t===``?`ForwardRef`:`ForwardRef(`+t+`)`);case re:return ge(e.type);case ae:return ge(e._render);case ie:t=e._payload,e=e._init;try{return ge(e(t))}catch{}}return null}function _e(e){switch(typeof e){case`boolean`:case`number`:case`object`:case`string`:case`undefined`:return e;default:return``}}function ve(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function P(e){var t=ve(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ye(e){e._valueTracker||=P(e)}function F(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=ve(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function be(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function xe(e,t){var r=t.checked;return n({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Se(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=_e(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function Ce(e,t){t=t.checked,t!=null&&C(e,`checked`,t,!1)}function we(e,t){Ce(e,t);var n=_e(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?Ee(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&Ee(e,t.type,_e(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Te(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function Ee(e,t,n){(t!==`number`||be(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}function De(e){var n=``;return t.Children.forEach(e,function(e){e!=null&&(n+=e)}),n}function Oe(e,t){return e=n({children:void 0},t),(t=De(t.children))&&(e.children=t),e}function ke(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+_e(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ae(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return n({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function je(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(i(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(i(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:_e(n)}}function Me(e,t){var n=_e(t.value),r=_e(t.defaultValue);n!=null&&(n=``+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=``+r)}function Ne(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}var Pe={html:`http://www.w3.org/1999/xhtml`,mathml:`http://www.w3.org/1998/Math/MathML`,svg:`http://www.w3.org/2000/svg`};function Fe(e){switch(e){case`svg`:return`http://www.w3.org/2000/svg`;case`math`:return`http://www.w3.org/1998/Math/MathML`;default:return`http://www.w3.org/1999/xhtml`}}function Ie(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?Fe(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var Le,Re=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==Pe.svg||`innerHTML`in e)e.innerHTML=t;else{for(Le||=document.createElement(`div`),Le.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=Le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function ze(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ve=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Be).forEach(function(e){Ve.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Be[t]=Be[e]})});function He(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Be.hasOwnProperty(e)&&Be[e]?(``+t).trim():t+`px`}function Ue(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=He(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var We=n({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ge(e,t){if(t){if(We[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(!(typeof t.dangerouslySetInnerHTML==`object`&&`__html`in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(i(62))}}function Ke(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}function qe(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Je=null,Ye=null,Xe=null;function Ze(e){if(e=Di(e)){if(typeof Je!=`function`)throw Error(i(280));var t=e.stateNode;t&&(t=ki(t),Je(e.stateNode,e.type,t))}}function Qe(e){Ye?Xe?Xe.push(e):Xe=[e]:Ye=e}function $e(){if(Ye){var e=Ye,t=Xe;if(Xe=Ye=null,Ze(e),t)for(e=0;e<t.length;e++)Ze(t[e])}}function et(e,t){return e(t)}function tt(e,t,n,r,i){return e(t,n,r,i)}function nt(){}var rt=et,it=!1,at=!1;function ot(){(Ye!==null||Xe!==null)&&(nt(),$e())}function st(e,t,n){if(at)return e(t,n);at=!0;try{return rt(e,t,n)}finally{at=!1,ot()}}function ct(e,t){var n=e.stateNode;if(n===null)return null;var r=ki(n);if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var lt=!1;if(u)try{var ut={};Object.defineProperty(ut,"passive",{get:function(){lt=!0}}),window.addEventListener(`test`,ut,ut),window.removeEventListener(`test`,ut,ut)}catch{lt=!1}function dt(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var ft=!1,pt=null,mt=!1,ht=null,gt={onError:function(e){ft=!0,pt=e}};function _t(e,t,n,r,i,a,o,s,c){ft=!1,pt=null,dt.apply(gt,arguments)}function vt(e,t,n,r,a,o,s,c,l){if(_t.apply(this,arguments),ft){if(ft){var u=pt;ft=!1,pt=null}else throw Error(i(198));mt||(mt=!0,ht=u)}}function yt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function bt(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function xt(e){if(yt(e)!==e)throw Error(i(188))}function St(e){var t=e.alternate;if(!t){if(t=yt(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return xt(a),e;if(o===r)return xt(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,r=o;break}if(c===r){s=!0,r=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,r=a;break}if(c===r){s=!0,r=o,n=a;break}c=c.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function Ct(e){if(e=St(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function wt(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var Tt,Et,Dt,Ot,kt=!1,At=[],jt=null,Mt=null,Nt=null,Pt=new Map,Ft=new Map,It=[],Lt=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit`.split(` `);function Rt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:i,targetContainers:[r]}}function zt(e,t){switch(e){case`focusin`:case`focusout`:jt=null;break;case`dragenter`:case`dragleave`:Mt=null;break;case`mouseover`:case`mouseout`:Nt=null;break;case`pointerover`:case`pointerout`:Pt.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Ft.delete(t.pointerId)}}function Bt(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e=Rt(t,n,r,i,a),t!==null&&(t=Di(t),t!==null&&Et(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Vt(e,t,n,r,i){switch(t){case`focusin`:return jt=Bt(jt,e,t,n,r,i),!0;case`dragenter`:return Mt=Bt(Mt,e,t,n,r,i),!0;case`mouseover`:return Nt=Bt(Nt,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Pt.set(a,Bt(Pt.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Ft.set(a,Bt(Ft.get(a)||null,e,t,n,r,i)),!0}return!1}function Ht(e){var t=Ei(e.target);if(t!==null){var n=yt(t);if(n!==null){if(t=n.tag,t===13){if(t=bt(n),t!==null){e.blockedOn=t,Ot(e.lanePriority,function(){r.unstable_runWithPriority(e.priority,function(){Dt(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ut(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=On(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=Di(n),t!==null&&Et(t),e.blockedOn=n,!1;t.shift()}return!0}function Wt(e,t,n){Ut(e)&&n.delete(t)}function Gt(){for(kt=!1;0<At.length;){var e=At[0];if(e.blockedOn!==null){e=Di(e.blockedOn),e!==null&&Tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=On(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&At.shift()}jt!==null&&Ut(jt)&&(jt=null),Mt!==null&&Ut(Mt)&&(Mt=null),Nt!==null&&Ut(Nt)&&(Nt=null),Pt.forEach(Wt),Ft.forEach(Wt)}function Kt(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Gt)))}function qt(e){function t(t){return Kt(t,e)}if(0<At.length){Kt(At[0],e);for(var n=1;n<At.length;n++){var r=At[n];r.blockedOn===e&&(r.blockedOn=null)}}for(jt!==null&&Kt(jt,e),Mt!==null&&Kt(Mt,e),Nt!==null&&Kt(Nt,e),Pt.forEach(t),Ft.forEach(t),n=0;n<It.length;n++)r=It[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<It.length&&(n=It[0],n.blockedOn===null);)Ht(n),n.blockedOn===null&&It.shift()}function Jt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Yt={animationend:Jt(`Animation`,`AnimationEnd`),animationiteration:Jt(`Animation`,`AnimationIteration`),animationstart:Jt(`Animation`,`AnimationStart`),transitionend:Jt(`Transition`,`TransitionEnd`)},Xt={},Zt={};u&&(Zt=document.createElement(`div`).style,`AnimationEvent`in window||(delete Yt.animationend.animation,delete Yt.animationiteration.animation,delete Yt.animationstart.animation),`TransitionEvent`in window||delete Yt.transitionend.transition);function Qt(e){if(Xt[e])return Xt[e];if(!Yt[e])return e;var t=Yt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Zt)return Xt[e]=t[n];return e}var $t=Qt(`animationend`),en=Qt(`animationiteration`),tn=Qt(`animationstart`),nn=Qt(`transitionend`),rn=new Map,an=new Map,on=[`abort`,`abort`,$t,`animationEnd`,en,`animationIteration`,tn,`animationStart`,`canplay`,`canPlay`,`canplaythrough`,`canPlayThrough`,`durationchange`,`durationChange`,`emptied`,`emptied`,`encrypted`,`encrypted`,`ended`,`ended`,`error`,`error`,`gotpointercapture`,`gotPointerCapture`,`load`,`load`,`loadeddata`,`loadedData`,`loadedmetadata`,`loadedMetadata`,`loadstart`,`loadStart`,`lostpointercapture`,`lostPointerCapture`,`playing`,`playing`,`progress`,`progress`,`seeking`,`seeking`,`stalled`,`stalled`,`suspend`,`suspend`,`timeupdate`,`timeUpdate`,nn,`transitionEnd`,`waiting`,`waiting`];function sn(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i=`on`+(i[0].toUpperCase()+i.slice(1)),an.set(r,t),rn.set(r,i),s(i,[r])}}var cn=r.unstable_now;cn();var I=8;function ln(e){if(1&e)return I=15,1;if(2&e)return I=14,2;if(4&e)return I=13,4;var t=24&e;return t===0?e&32?(I=11,32):(t=192&e,t===0?e&256?(I=9,256):(t=3584&e,t===0?e&4096?(I=7,4096):(t=4186112&e,t===0?(t=62914560&e,t===0?e&67108864?(I=4,67108864):e&134217728?(I=3,134217728):(t=805306368&e,t===0?1073741824&e?(I=1,1073741824):(I=8,e):(I=2,t)):(I=5,t)):(I=6,t)):(I=8,t)):(I=10,t)):(I=12,t)}function un(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function dn(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(i(358,e))}}function fn(e,t){var n=e.pendingLanes;if(n===0)return I=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(a!==0)r=a,i=I=15;else if(a=n&134217727,a!==0){var c=a&~o;c===0?(s&=a,s!==0&&(r=ln(s),i=I)):(r=ln(c),i=I)}else a=n&~o,a===0?s!==0&&(r=ln(s),i=I):(r=ln(a),i=I);if(r===0)return 0;if(r=31-vn(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&(t&o)===0){if(ln(t),i<=I)return t;I=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-vn(t),i=1<<n,r|=e[n],t&=~i;return r}function pn(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function mn(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=hn(24&~t),e===0?mn(10,t):e;case 10:return e=hn(192&~t),e===0?mn(8,t):e;case 8:return e=hn(3584&~t),e===0&&(e=hn(4186112&~t),e===0&&(e=512)),e;case 2:return t=hn(805306368&~t),t===0&&(t=268435456),t}throw Error(i(358,e))}function hn(e){return e&-e}function gn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function _n(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-vn(t),e[t]=n}var vn=Math.clz32?Math.clz32:xn,yn=Math.log,bn=Math.LN2;function xn(e){return e===0?32:31-(yn(e)/bn|0)|0}var Sn=r.unstable_UserBlockingPriority,Cn=r.unstable_runWithPriority,wn=!0;function Tn(e,t,n,r){it||nt();var i=Dn,a=it;it=!0;try{tt(i,e,t,n,r)}finally{(it=a)||ot()}}function En(e,t,n,r){Cn(Sn,Dn.bind(null,e,t,n,r))}function Dn(e,t,n,r){if(wn){var i;if((i=(t&4)==0)&&0<At.length&&-1<Lt.indexOf(e))e=Rt(null,e,t,n,r),At.push(e);else{var a=On(e,t,n,r);if(a===null)i&&zt(e,r);else{if(i){if(-1<Lt.indexOf(e)){e=Rt(a,e,t,n,r),At.push(e);return}if(Vt(a,e,t,n,r))return;zt(e,r)}ii(e,t,r,null,n)}}}}function On(e,t,n,r){var i=qe(r);if(i=Ei(i),i!==null){var a=yt(i);if(a===null)i=null;else{var o=a.tag;if(o===13){if(i=bt(a),i!==null)return i;i=null}else if(o===3){if(a.stateNode.hydrate)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return ii(e,t,r,i,n),null}var kn=null,An=null,jn=null;function Mn(){if(jn)return jn;var e,t=An,n=t.length,r,i=`value`in kn?kn.value:kn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return jn=i.slice(e,1<r?1-r:void 0)}function Nn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Pn(){return!0}function Fn(){return!1}function In(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Pn:Fn,this.isPropagationStopped=Fn,this}return n(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Pn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Pn)},persist:function(){},isPersistent:Pn}),t}var Ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rn=In(Ln),zn=n({},Ln,{view:0,detail:0}),Bn=In(zn),Vn,Hn,Un,Wn=n({},zn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Un&&(Un&&e.type===`mousemove`?(Vn=e.screenX-Un.screenX,Hn=e.screenY-Un.screenY):Hn=Vn=0,Un=e),Vn)},movementY:function(e){return`movementY`in e?e.movementY:Hn}}),Gn=In(Wn),Kn=In(n({},Wn,{dataTransfer:0})),qn=In(n({},zn,{relatedTarget:0})),L=In(n({},Ln,{animationName:0,elapsedTime:0,pseudoElement:0})),Jn=In(n({},Ln,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Yn=In(n({},Ln,{data:0})),Xn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},R={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Zn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function z(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Zn[e])?!!t[e]:!1}function Qn(){return z}var $n=In(n({},zn,{key:function(e){if(e.key){var t=Xn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Nn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?R[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qn,charCode:function(e){return e.type===`keypress`?Nn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Nn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),er=In(n({},Wn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),tr=In(n({},zn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qn})),nr=In(n({},Ln,{propertyName:0,elapsedTime:0,pseudoElement:0})),rr=In(n({},Wn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),ir=[9,13,27,32],ar=u&&`CompositionEvent`in window,or=null;u&&`documentMode`in document&&(or=document.documentMode);var sr=u&&`TextEvent`in window&&!or,cr=u&&(!ar||or&&8<or&&11>=or),lr=` `,ur=!1;function dr(e,t){switch(e){case`keyup`:return ir.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function fr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var pr=!1;function mr(e,t){switch(e){case`compositionend`:return fr(t);case`keypress`:return t.which===32?(ur=!0,lr):null;case`textInput`:return e=t.data,e===lr&&ur?null:e;default:return null}}function hr(e,t){if(pr)return e===`compositionend`||!ar&&dr(e,t)?(e=Mn(),jn=An=kn=null,pr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return cr&&t.locale!==`ko`?null:t.data;default:return null}}var gr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function _r(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!gr[e.type]:t===`textarea`}function vr(e,t,n,r){Qe(r),t=oi(t,`onChange`),0<t.length&&(n=new Rn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var yr=null,br=null;function xr(e){$r(e,0)}function Sr(e){if(F(Oi(e)))return e}function Cr(e,t){if(e===`change`)return t}var wr=!1;if(u){var Tr;if(u){var Er=`oninput`in document;if(!Er){var Dr=document.createElement(`div`);Dr.setAttribute(`oninput`,`return;`),Er=typeof Dr.oninput==`function`}Tr=Er}else Tr=!1;wr=Tr&&(!document.documentMode||9<document.documentMode)}function Or(){yr&&(yr.detachEvent(`onpropertychange`,kr),br=yr=null)}function kr(e){if(e.propertyName===`value`&&Sr(br)){var t=[];if(vr(t,br,e,qe(e)),e=xr,it)e(t);else{it=!0;try{et(e,t)}finally{it=!1,ot()}}}}function Ar(e,t,n){e===`focusin`?(Or(),yr=t,br=n,yr.attachEvent(`onpropertychange`,kr)):e===`focusout`&&Or()}function jr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Sr(br)}function Mr(e,t){if(e===`click`)return Sr(t)}function Nr(e,t){if(e===`input`||e===`change`)return Sr(t)}function Pr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Fr=typeof Object.is==`function`?Object.is:Pr,Ir=Object.prototype.hasOwnProperty;function Lr(e,t){if(Fr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Ir.call(t,n[r])||!Fr(e[n[r]],t[n[r]]))return!1;return!0}function Rr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zr(e,t){var n=Rr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Rr(n)}}function Br(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Br(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vr(){for(var e=window,t=be();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=be(e.document)}return t}function Hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Ur=u&&`documentMode`in document&&11>=document.documentMode,B=null,Wr=null,Gr=null,Kr=!1;function qr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Kr||B==null||B!==be(r)||(r=B,`selectionStart`in r&&Hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Gr&&Lr(Gr,r)||(Gr=r,r=oi(Wr,`onSelect`),0<r.length&&(t=new Rn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=B)))}sn(`cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange`.split(` `),0),sn(`drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel`.split(` `),1),sn(on,2);for(var Jr=`change selectionchange textInput compositionstart compositionend compositionupdate`.split(` `),Yr=0;Yr<Jr.length;Yr++)an.set(Jr[Yr],0);c(`onMouseEnter`,[`mouseout`,`mouseover`]),c(`onMouseLeave`,[`mouseout`,`mouseover`]),c(`onPointerEnter`,[`pointerout`,`pointerover`]),c(`onPointerLeave`,[`pointerout`,`pointerover`]),s(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),s(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),s(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),s(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),s(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),s(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Xr=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Zr=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(Xr));function Qr(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,vt(r,t,void 0,e),e.currentTarget=null}function $r(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;Qr(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;Qr(i,s,l),a=c}}}if(mt)throw e=ht,mt=!1,ht=null,e}function V(e,t){var n=Ai(t),r=e+`__bubble`;n.has(r)||(ri(t,e,2,!1),n.add(r))}var ei=`_reactListening`+Math.random().toString(36).slice(2);function ti(e){e[ei]||(e[ei]=!0,a.forEach(function(t){Zr.has(t)||ni(t,!1,e,null),ni(t,!0,e,null)}))}function ni(e,t,n,r){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,a=n;if(e===`selectionchange`&&n.nodeType!==9&&(a=n.ownerDocument),r!==null&&!t&&Zr.has(e)){if(e!==`scroll`)return;i|=2,a=r}var o=Ai(a),s=e+`__`+(t?`capture`:`bubble`);o.has(s)||(t&&(i|=4),ri(a,e,i,t),o.add(s))}function ri(e,t,n,r){var i=an.get(t);switch(i===void 0?2:i){case 0:i=Tn;break;case 1:i=En;break;default:i=Dn}n=i.bind(null,t,n,e),i=void 0,!lt||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function ii(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Ei(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}st(function(){var r=a,i=qe(n),o=[];a:{var s=rn.get(e);if(s!==void 0){var c=Rn,l=e;switch(e){case`keypress`:if(Nn(n)===0)break a;case`keydown`:case`keyup`:c=$n;break;case`focusin`:l=`focus`,c=qn;break;case`focusout`:l=`blur`,c=qn;break;case`beforeblur`:case`afterblur`:c=qn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=Gn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Kn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=tr;break;case $t:case en:case tn:c=L;break;case nn:c=nr;break;case`scroll`:c=Bn;break;case`wheel`:c=rr;break;case`copy`:case`cut`:case`paste`:c=Jn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=er}var u=(t&4)!=0,d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=ct(p,f),h!=null&&u.push(ai(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&!(t&16)&&(l=n.relatedTarget||n.fromElement)&&(Ei(l)||l[wi]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Ei(l):null,l!==null&&(d=yt(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=Gn,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=er,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Oi(c),m=l==null?s:Oi(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Ei(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=si(m))p++;for(m=0,h=f;h;h=si(h))m++;for(;0<p-m;)u=si(u),p--;for(;0<m-p;)f=si(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=si(u),f=si(f)}u=null}else u=null;c!==null&&ci(o,s,c,u,!1),l!==null&&d!==null&&ci(o,d,l,u,!0)}}a:{if(s=r?Oi(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=Cr;else if(_r(s))if(wr)g=Nr;else{g=jr;var _=Ar}else(c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=Mr);if(g&&=g(e,r)){vr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&Ee(s,`number`,s.value)}switch(_=r?Oi(r):window,e){case`focusin`:(_r(_)||_.contentEditable===`true`)&&(B=_,Wr=r,Gr=null);break;case`focusout`:Gr=Wr=B=null;break;case`mousedown`:Kr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Kr=!1,qr(o,n,i);break;case`selectionchange`:if(Ur)break;case`keydown`:case`keyup`:qr(o,n,i)}var v;if(ar)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else pr?dr(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(cr&&n.locale!==`ko`&&(pr||y!==`onCompositionStart`?y===`onCompositionEnd`&&pr&&(v=Mn()):(kn=i,An=`value`in kn?kn.value:kn.textContent,pr=!0)),_=oi(r,y),0<_.length&&(y=new Yn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=fr(n),v!==null&&(y.data=v)))),(v=sr?mr(e,n):hr(e,n))&&(r=oi(r,`onBeforeInput`),0<r.length&&(i=new Yn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}$r(o,t)})}function ai(e,t,n){return{instance:e,listener:t,currentTarget:n}}function oi(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=ct(e,n),a!=null&&r.unshift(ai(e,a,i)),a=ct(e,t),a!=null&&r.push(ai(e,a,i))),e=e.return}return r}function si(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ci(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=ct(n,a),c!=null&&o.unshift(ai(n,c,s))):i||(c=ct(n,a),c!=null&&o.push(ai(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}function li(){}var ui=null,di=null;function fi(e,t){switch(e){case`button`:case`input`:case`select`:case`textarea`:return!!t.autoFocus}return!1}function pi(e,t){return e===`textarea`||e===`option`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var mi=typeof setTimeout==`function`?setTimeout:void 0,hi=typeof clearTimeout==`function`?clearTimeout:void 0;function gi(e){e.nodeType===1?e.textContent=``:e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=``))}function _i(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function vi(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var yi=0;function bi(e){return{$$typeof:oe,toString:e,valueOf:e}}var xi=Math.random().toString(36).slice(2),Si=`__reactFiber$`+xi,Ci=`__reactProps$`+xi,wi=`__reactContainer$`+xi,Ti=`__reactEvents$`+xi;function Ei(e){var t=e[Si];if(t)return t;for(var n=e.parentNode;n;){if(t=n[wi]||n[Si]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vi(e);e!==null;){if(n=e[Si])return n;e=vi(e)}return t}e=n,n=e.parentNode}return null}function Di(e){return e=e[Si]||e[wi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Oi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function ki(e){return e[Ci]||null}function Ai(e){var t=e[Ti];return t===void 0&&(t=e[Ti]=new Set),t}var ji=[],Mi=-1;function Ni(e){return{current:e}}function H(e){0>Mi||(e.current=ji[Mi],ji[Mi]=null,Mi--)}function U(e,t){Mi++,ji[Mi]=e.current,e.current=t}var Pi={},Fi=Ni(Pi),Ii=Ni(!1),Li=Pi;function Ri(e,t){var n=e.type.contextTypes;if(!n)return Pi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function zi(e){return e=e.childContextTypes,e!=null}function Bi(){H(Ii),H(Fi)}function Vi(e,t,n){if(Fi.current!==Pi)throw Error(i(168));U(Fi,t),U(Ii,n)}function Hi(e,t,r){var a=e.stateNode;if(e=t.childContextTypes,typeof a.getChildContext!=`function`)return r;for(var o in a=a.getChildContext(),a)if(!(o in e))throw Error(i(108,ge(t)||`Unknown`,o));return n({},r,a)}function Ui(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pi,Li=Fi.current,U(Fi,e),U(Ii,Ii.current),!0}function Wi(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Hi(e,t,Li),r.__reactInternalMemoizedMergedChildContext=e,H(Ii),H(Fi),U(Fi,e)):H(Ii),U(Ii,n)}var Gi=null,Ki=null,qi=r.unstable_runWithPriority,Ji=r.unstable_scheduleCallback,Yi=r.unstable_cancelCallback,Xi=r.unstable_shouldYield,Zi=r.unstable_requestPaint,Qi=r.unstable_now,$i=r.unstable_getCurrentPriorityLevel,ea=r.unstable_ImmediatePriority,ta=r.unstable_UserBlockingPriority,na=r.unstable_NormalPriority,ra=r.unstable_LowPriority,ia=r.unstable_IdlePriority,aa={},oa=Zi===void 0?function(){}:Zi,sa=null,ca=null,la=!1,ua=Qi(),da=1e4>ua?Qi:function(){return Qi()-ua};function fa(){switch($i()){case ea:return 99;case ta:return 98;case na:return 97;case ra:return 96;case ia:return 95;default:throw Error(i(332))}}function pa(e){switch(e){case 99:return ea;case 98:return ta;case 97:return na;case 96:return ra;case 95:return ia;default:throw Error(i(332))}}function ma(e,t){return e=pa(e),qi(e,t)}function ha(e,t,n){return e=pa(e),Ji(e,t,n)}function ga(){if(ca!==null){var e=ca;ca=null,Yi(e)}_a()}function _a(){if(!la&&sa!==null){la=!0;var e=0;try{var t=sa;ma(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),sa=null}catch(t){throw sa!==null&&(sa=sa.slice(e+1)),Ji(ea,ga),t}finally{la=!1}}}var va=w.ReactCurrentBatchConfig;function ya(e,t){if(e&&e.defaultProps){for(var r in t=n({},t),e=e.defaultProps,e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var ba=Ni(null),xa=null,Sa=null,Ca=null;function wa(){Ca=Sa=xa=null}function Ta(e){var t=ba.current;H(ba),e.type._context._currentValue=t}function Ea(e,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)===t){if(n===null||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,n!==null&&(n.childLanes|=t);e=e.return}}function Da(e,t){xa=e,Ca=Sa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(rs=!0),e.firstContext=null)}function Oa(e,t){if(Ca!==e&&!1!==t&&t!==0)if((typeof t!=`number`||t===1073741823)&&(Ca=e,t=1073741823),t={context:e,observedBits:t,next:null},Sa===null){if(xa===null)throw Error(i(308));Sa=t,xa.dependencies={lanes:0,firstContext:t,responders:null}}else Sa=Sa.next=t;return e._currentValue}var ka=!1;function Aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ja(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ma(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Na(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function Pa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fa(e,t,r,i){var a=e.updateQueue;ka=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var l=c,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var d=e.alternate;if(d!==null){d=d.updateQueue;var f=d.lastBaseUpdate;f!==s&&(f===null?d.firstBaseUpdate=u:f.next=u,d.lastBaseUpdate=l)}}if(o!==null){f=a.baseState,s=0,d=u=l=null;do{c=o.lane;var p=o.eventTime;if((i&c)===c){d!==null&&(d=d.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});a:{var m=e,h=o;switch(c=t,p=r,h.tag){case 1:if(m=h.payload,typeof m==`function`){f=m.call(p,f,c);break a}f=m;break a;case 3:m.flags=m.flags&-4097|64;case 0:if(m=h.payload,c=typeof m==`function`?m.call(p,f,c):m,c==null)break a;f=n({},f,c);break a;case 2:ka=!0}}o.callback!==null&&(e.flags|=32,c=a.effects,c===null?a.effects=[o]:c.push(o))}else p={eventTime:p,lane:c,tag:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(u=d=p,l=f):d=d.next=p,s|=c;if(o=o.next,o===null){if(c=a.shared.pending,c===null)break;o=c.next,c.next=null,a.lastBaseUpdate=c,a.shared.pending=null}}while(1);d===null&&(l=f),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=d,sc|=s,e.lanes=s,e.memoizedState=f}}function Ia(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(a!==null){if(r.callback=null,r=n,typeof a!=`function`)throw Error(i(191,a));a.call(r)}}}var La=new t.Component().refs;function Ra(e,t,r,i){t=e.memoizedState,r=r(i,t),r=r==null?t:n({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var za={isMounted:function(e){return(e=e._reactInternals)?yt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ac(),i=jc(e),a=Ma(r,i);a.payload=t,n!=null&&(a.callback=n),Na(e,a),Mc(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ac(),i=jc(e),a=Ma(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),Na(e,a),Mc(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ac(),r=jc(e),i=Ma(n,r);i.tag=2,t!=null&&(i.callback=t),Na(e,i),Mc(e,r,n)}};function Ba(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Lr(n,r)||!Lr(i,a):!0}function Va(e,t,n){var r=!1,i=Pi,a=t.contextType;return typeof a==`object`&&a?a=Oa(a):(i=zi(t)?Li:Fi.current,r=t.contextTypes,a=(r=r!=null)?Ri(e,i):Pi),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=za,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ha(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&za.enqueueReplaceState(t,t.state,null)}function Ua(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=La,Aa(e);var a=t.contextType;typeof a==`object`&&a?i.context=Oa(a):(a=zi(t)?Li:Fi.current,i.context=Ri(e,a)),Fa(e,n,i,r),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(Ra(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&za.enqueueReplaceState(i,i.state,null),Fa(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4)}var Wa=Array.isArray;function Ga(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var a=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===a?t.ref:(t=function(e){var t=r.refs;t===La&&(t=r.refs={}),e===null?delete t[a]:t[a]=e},t._stringRef=a,t)}if(typeof e!=`string`)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Ka(e,t){if(e.type!==`textarea`)throw Error(i(31,Object.prototype.toString.call(t)===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:t))}function qa(e){function t(t,n){if(e){var r=t.lastEffect;r===null?t.firstEffect=t.lastEffect=n:(r.nextEffect=n,t.lastEffect=n),n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=dl(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags=2,n):(r=r.index,r<n?(t.flags=2,n):r)):n}function s(t){return e&&t.alternate===null&&(t.flags=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=hl(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){return t!==null&&t.elementType===n.type?(r=a(t,n.props),r.ref=Ga(e,t,n),r.return=e,r):(r=fl(n.type,n.key,n.props,null,e.mode,r),r.ref=Ga(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=gl(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=pl(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`||typeof t==`number`)return t=hl(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case T:return n=fl(t.type,t.key,t.props,null,e.mode,n),n.ref=Ga(e,null,t),n.return=e,n;case E:return t=gl(t,e.mode,n),t.return=e,t}if(Wa(t)||M(t))return t=pl(t,e.mode,n,null),t.return=e,t;Ka(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case T:return n.key===i?n.type===ee?d(e,t,n.props.children,r,i):l(e,t,n,r):null;case E:return n.key===i?u(e,t,n,r):null}if(Wa(n)||M(n))return i===null?d(e,t,n,r,null):null;Ka(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case T:return e=e.get(r.key===null?n:r.key)||null,r.type===ee?d(t,e,r.props.children,i,r.key):l(t,e,r,i);case E:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i)}if(Wa(r)||M(r))return e=e.get(n)||null,d(t,e,r,i,null);Ka(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return l}for(d=r(i,d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),l}function g(a,s,c,l){var u=M(c);if(typeof u!=`function`)throw Error(i(150));if(c=u.call(c),c==null)throw Error(i(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return u}for(h=r(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),u}return function(e,r,o,c){var l=typeof o==`object`&&!!o&&o.type===ee&&o.key===null;l&&(o=o.props.children);var u=typeof o==`object`&&!!o;if(u)switch(o.$$typeof){case T:a:{for(u=o.key,l=r;l!==null;){if(l.key===u){switch(l.tag){case 7:if(o.type===ee){n(e,l.sibling),r=a(l,o.props.children),r.return=e,e=r;break a}break;default:if(l.elementType===o.type){n(e,l.sibling),r=a(l,o.props),r.ref=Ga(e,l,o),r.return=e,e=r;break a}}n(e,l);break}else t(e,l);l=l.sibling}o.type===ee?(r=pl(o.props.children,e.mode,c,o.key),r.return=e,e=r):(c=fl(o.type,o.key,o.props,null,e.mode,c),c.ref=Ga(e,r,o),c.return=e,e=c)}return s(e);case E:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),r=a(r,o.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=gl(o,e.mode,c),r.return=e,e=r}return s(e)}if(typeof o==`string`||typeof o==`number`)return o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,o),r.return=e,e=r):(n(e,r),r=hl(o,e.mode,c),r.return=e,e=r),s(e);if(Wa(o))return h(e,r,o,c);if(M(o))return g(e,r,o,c);if(u&&Ka(e,o),o===void 0&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(i(152,ge(e.type)||`Component`))}return n(e,r)}}var Ja=qa(!0),Ya=qa(!1),Xa={},Za=Ni(Xa),Qa=Ni(Xa),$a=Ni(Xa);function eo(e){if(e===Xa)throw Error(i(174));return e}function to(e,t){switch(U($a,t),U(Qa,e),U(Za,Xa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ie(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ie(t,e)}H(Za),U(Za,t)}function no(){H(Za),H(Qa),H($a)}function ro(e){eo($a.current);var t=eo(Za.current),n=Ie(t,e.type);t!==n&&(U(Qa,e),U(Za,n))}function io(e){Qa.current===e&&(H(Za),H(Qa))}var W=Ni(0);function ao(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var oo=null,so=null,co=!1;function lo(e,t){var n=cl(5,null,null,0);n.elementType=`DELETED`,n.type=`DELETED`,n.stateNode=t,n.return=e,n.flags=8,e.lastEffect===null?e.firstEffect=e.lastEffect=n:(e.lastEffect.nextEffect=n,e.lastEffect=n)}function uo(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t===null?!1:(e.stateNode=t,!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,!0);case 13:return!1;default:return!1}}function fo(e){if(co){var t=so;if(t){var n=t;if(!uo(e,t)){if(t=_i(n.nextSibling),!t||!uo(e,t)){e.flags=e.flags&-1025|2,co=!1,oo=e;return}lo(oo,n)}oo=e,so=_i(t.firstChild)}else e.flags=e.flags&-1025|2,co=!1,oo=e}}function po(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;oo=e}function mo(e){if(e!==oo)return!1;if(!co)return po(e),co=!0,!1;var t=e.type;if(e.tag!==5||t!==`head`&&t!==`body`&&!pi(t,e.memoizedProps))for(t=so;t;)lo(e,t),t=_i(t.nextSibling);if(po(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){so=_i(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}so=null}}else so=oo?_i(e.stateNode.nextSibling):null;return!0}function ho(){so=oo=null,co=!1}var go=[];function _o(){for(var e=0;e<go.length;e++)go[e]._workInProgressVersionPrimary=null;go.length=0}var vo=w.ReactCurrentDispatcher,yo=w.ReactCurrentBatchConfig,bo=0,G=null,xo=null,So=null,Co=!1,wo=!1;function To(){throw Error(i(321))}function Eo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Fr(e[n],t[n]))return!1;return!0}function Do(e,t,n,r,a,o){if(bo=o,G=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,vo.current=e===null||e.memoizedState===null?$o:es,e=n(r,a),wo){o=0;do{if(wo=!1,!(25>o))throw Error(i(301));o+=1,So=xo=null,t.updateQueue=null,vo.current=ts,e=n(r,a)}while(wo)}if(vo.current=Qo,t=xo!==null&&xo.next!==null,bo=0,So=xo=G=null,Co=!1,t)throw Error(i(300));return e}function Oo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return So===null?G.memoizedState=So=e:So=So.next=e,So}function ko(){if(xo===null){var e=G.alternate;e=e===null?null:e.memoizedState}else e=xo.next;var t=So===null?G.memoizedState:So.next;if(t!==null)So=t,xo=e;else{if(e===null)throw Error(i(310));xo=e,e={memoizedState:xo.memoizedState,baseState:xo.baseState,baseQueue:xo.baseQueue,queue:xo.queue,next:null},So===null?G.memoizedState=So=e:So=So.next=e}return So}function Ao(e,t){return typeof t==`function`?t(e):t}function jo(e){var t=ko(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=xo,a=r.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}r.baseQueue=a=o,n.pending=null}if(a!==null){a=a.next,r=r.baseState;var c=s=o=null,l=a;do{var u=l.lane;if((bo&u)===u)c!==null&&(c=c.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var d={lane:u,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};c===null?(s=c=d,o=r):c=c.next=d,G.lanes|=u,sc|=u}l=l.next}while(l!==null&&l!==a);c===null?o=r:c.next=s,Fr(r,t.memoizedState)||(rs=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Mo(e){var t=ko(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Fr(o,t.memoizedState)||(rs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function No(e,t,n){var r=t._getVersion;r=r(t._source);var a=t._workInProgressVersionPrimary;if(a===null?(e=e.mutableReadLanes,(e=(bo&e)===e)&&(t._workInProgressVersionPrimary=r,go.push(t))):e=a===r,e)return n(t._source);throw go.push(t),Error(i(350))}function Po(e,t,n,r){var a=$s;if(a===null)throw Error(i(349));var o=t._getVersion,s=o(t._source),c=vo.current,l=c.useState(function(){return No(a,t,n)}),u=l[1],d=l[0];l=So;var f=e.memoizedState,p=f.refs,m=p.getSnapshot,h=f.source;f=f.subscribe;var g=G;return e.memoizedState={refs:p,source:t,subscribe:r},c.useEffect(function(){p.getSnapshot=n,p.setSnapshot=u;var e=o(t._source);if(!Fr(s,e)){e=n(t._source),Fr(d,e)||(u(e),e=jc(g),a.mutableReadLanes|=e&a.pendingLanes),e=a.mutableReadLanes,a.entangledLanes|=e;for(var r=a.entanglements,i=e;0<i;){var c=31-vn(i),l=1<<c;r[c]|=e,i&=~l}}},[n,t,r]),c.useEffect(function(){return r(t._source,function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=jc(g);a.mutableReadLanes|=r&a.pendingLanes}catch(e){n(function(){throw e})}})},[t,r]),Fr(m,n)&&Fr(h,t)&&Fr(f,r)||(e={pending:null,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:d},e.dispatch=u=Zo.bind(null,G,e),l.queue=e,l.baseQueue=null,d=No(a,t,n),l.memoizedState=l.baseState=d),d}function Fo(e,t,n){return Po(ko(),e,t,n)}function Io(e){var t=Oo();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Ao,lastRenderedState:e},e=e.dispatch=Zo.bind(null,G,e),[t.memoizedState,e]}function Lo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=G.updateQueue,t===null?(t={lastEffect:null},G.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Ro(e){var t=Oo();return e={current:e},t.memoizedState=e}function zo(){return ko().memoizedState}function Bo(e,t,n,r){var i=Oo();G.flags|=e,i.memoizedState=Lo(1|t,n,void 0,r===void 0?null:r)}function Vo(e,t,n,r){var i=ko();r=r===void 0?null:r;var a=void 0;if(xo!==null){var o=xo.memoizedState;if(a=o.destroy,r!==null&&Eo(r,o.deps)){Lo(t,n,a,r);return}}G.flags|=e,i.memoizedState=Lo(1|t,n,a,r)}function Ho(e,t){return Bo(516,4,e,t)}function Uo(e,t){return Vo(516,4,e,t)}function Wo(e,t){return Vo(4,2,e,t)}function Go(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ko(e,t,n){return n=n==null?null:n.concat([e]),Vo(4,2,Go.bind(null,t,e),n)}function qo(){}function Jo(e,t){var n=ko();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Eo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Yo(e,t){var n=ko();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Eo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Xo(e,t){var n=fa();ma(98>n?98:n,function(){e(!0)}),ma(97<n?97:n,function(){var n=yo.transition;yo.transition=1;try{e(!1),t()}finally{yo.transition=n}})}function Zo(e,t,n){var r=Ac(),i=jc(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(o===null?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===G||o!==null&&o===G)wo=Co=!0;else{if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,c=o(s,n);if(a.eagerReducer=o,a.eagerState=c,Fr(c,s))return}catch{}Mc(e,i,r)}}var Qo={readContext:Oa,useCallback:To,useContext:To,useEffect:To,useImperativeHandle:To,useLayoutEffect:To,useMemo:To,useReducer:To,useRef:To,useState:To,useDebugValue:To,useDeferredValue:To,useTransition:To,useMutableSource:To,useOpaqueIdentifier:To,unstable_isNewReconciler:!1},$o={readContext:Oa,useCallback:function(e,t){return Oo().memoizedState=[e,t===void 0?null:t],e},useContext:Oa,useEffect:Ho,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),Bo(4,2,Go.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bo(4,2,e,t)},useMemo:function(e,t){var n=Oo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Oo();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Zo.bind(null,G,e),[r.memoizedState,e]},useRef:Ro,useState:Io,useDebugValue:qo,useDeferredValue:function(e){var t=Io(e),n=t[0],r=t[1];return Ho(function(){var t=yo.transition;yo.transition=1;try{r(e)}finally{yo.transition=t}},[e]),n},useTransition:function(){var e=Io(!1),t=e[0];return e=Xo.bind(null,e[1]),Ro(e),[e,t]},useMutableSource:function(e,t,n){var r=Oo();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Po(r,e,t,n)},useOpaqueIdentifier:function(){if(co){var e=!1,t=bi(function(){throw e||(e=!0,n(`r:`+(yi++).toString(36))),Error(i(355))}),n=Io(t)[1];return!(G.mode&2)&&(G.flags|=516,Lo(5,function(){n(`r:`+(yi++).toString(36))},void 0,null)),t}return t=`r:`+(yi++).toString(36),Io(t),t},unstable_isNewReconciler:!1},es={readContext:Oa,useCallback:Jo,useContext:Oa,useEffect:Uo,useImperativeHandle:Ko,useLayoutEffect:Wo,useMemo:Yo,useReducer:jo,useRef:zo,useState:function(){return jo(Ao)},useDebugValue:qo,useDeferredValue:function(e){var t=jo(Ao),n=t[0],r=t[1];return Uo(function(){var t=yo.transition;yo.transition=1;try{r(e)}finally{yo.transition=t}},[e]),n},useTransition:function(){var e=jo(Ao)[0];return[zo().current,e]},useMutableSource:Fo,useOpaqueIdentifier:function(){return jo(Ao)[0]},unstable_isNewReconciler:!1},ts={readContext:Oa,useCallback:Jo,useContext:Oa,useEffect:Uo,useImperativeHandle:Ko,useLayoutEffect:Wo,useMemo:Yo,useReducer:Mo,useRef:zo,useState:function(){return Mo(Ao)},useDebugValue:qo,useDeferredValue:function(e){var t=Mo(Ao),n=t[0],r=t[1];return Uo(function(){var t=yo.transition;yo.transition=1;try{r(e)}finally{yo.transition=t}},[e]),n},useTransition:function(){var e=Mo(Ao)[0];return[zo().current,e]},useMutableSource:Fo,useOpaqueIdentifier:function(){return Mo(Ao)[0]},unstable_isNewReconciler:!1},ns=w.ReactCurrentOwner,rs=!1;function is(e,t,n,r){t.child=e===null?Ya(t,null,n,r):Ja(t,e.child,n,r)}function as(e,t,n,r,i){n=n.render;var a=t.ref;return Da(t,i),r=Do(e,t,n,r,a,i),e!==null&&!rs?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Cs(e,t,i)):(t.flags|=1,is(e,t,r,i),t.child)}function ss(e,t,n,r,i,a){if(e===null){var o=n.type;return typeof o==`function`&&!ll(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,cs(e,t,o,r,i,a)):(e=fl(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}return o=e.child,(i&a)===0&&(i=o.memoizedProps,n=n.compare,n=n===null?Lr:n,n(i,r)&&e.ref===t.ref)?Cs(e,t,a):(t.flags|=1,e=dl(o,r),e.ref=t.ref,e.return=t,t.child=e)}function cs(e,t,n,r,i,a){if(e!==null&&Lr(e.memoizedProps,r)&&e.ref===t.ref)if(rs=!1,(a&i)!==0)e.flags&16384&&(rs=!0);else return t.lanes=e.lanes,Cs(e,t,a);return ds(e,t,n,r,a)}function ls(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`||r.mode===`unstable-defer-without-hiding`)if(!(t.mode&4))t.memoizedState={baseLanes:0},Vc(t,n);else if(n&1073741824)t.memoizedState={baseLanes:0},Vc(t,a===null?n:a.baseLanes);else return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Vc(t,e),null;else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),Vc(t,r);return is(e,t,i,n),t.child}function us(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function ds(e,t,n,r,i){var a=zi(n)?Li:Fi.current;return a=Ri(t,a),Da(t,i),n=Do(e,t,n,r,a,i),e!==null&&!rs?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Cs(e,t,i)):(t.flags|=1,is(e,t,n,i),t.child)}function fs(e,t,n,r,i){if(zi(n)){var a=!0;Ui(t)}else a=!1;if(Da(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Va(t,n,r),Ua(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=Oa(l):(l=zi(n)?Li:Fi.current,l=Ri(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&Ha(t,o,r,l),ka=!1;var f=t.memoizedState;o.state=f,Fa(t,r,o,i),c=t.memoizedState,s!==r||f!==c||Ii.current||ka?(typeof u==`function`&&(Ra(t,n,u,r),c=t.memoizedState),(s=ka||Ba(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4)):(typeof o.componentDidMount==`function`&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4),r=!1)}else{o=t.stateNode,ja(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:ya(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=Oa(c):(c=zi(n)?Li:Fi.current,c=Ri(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&Ha(t,o,r,c),ka=!1,f=t.memoizedState,o.state=f,Fa(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||Ii.current||ka?(typeof p==`function`&&(Ra(t,n,p,r),m=t.memoizedState),(l=ka||Ba(t,n,l,r,f,m,c))?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=256)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return ps(e,t,n,r,a,i)}function ps(e,t,n,r,i,a){us(e,t);var o=(t.flags&64)!=0;if(!r&&!o)return i&&Wi(t,n,!1),Cs(e,t,a);r=t.stateNode,ns.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ja(t,e.child,null,a),t.child=Ja(t,null,s,a)):is(e,t,s,a),t.memoizedState=r.state,i&&Wi(t,n,!0),t.child}function ms(e){var t=e.stateNode;t.pendingContext?Vi(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Vi(e,t.context,!1),to(e,t.containerInfo)}var hs={dehydrated:null,retryLane:0};function gs(e,t,n){var r=t.pendingProps,i=W.current,a=!1,o;return(o=(t.flags&64)!=0)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!=0),o?(a=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||!0===r.unstable_avoidThisFallback||(i|=1),U(W,i&1),e===null?(r.fallback!==void 0&&fo(t),e=r.children,i=r.fallback,a?(e=_s(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=hs,e):typeof r.unstable_expectedLoadTime==`number`?(e=_s(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=hs,t.lanes=33554432,e):(n=ml({mode:`visible`,children:e},t.mode,n,null),n.return=t,t.child=n)):(e.memoizedState,a?(r=ys(e,t,r.children,r.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=i===null?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=hs,r):(n=vs(e,t,r.children,n),t.memoizedState=null,n))}function _s(e,t,n,r){var i=e.mode,a=e.child;return t={mode:`hidden`,children:t},!(i&2)&&a!==null?(a.childLanes=0,a.pendingProps=t):a=ml(t,i,0,null),n=pl(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function vs(e,t,n,r){var i=e.child;return e=i.sibling,n=dl(i,{mode:`visible`,children:n}),!(t.mode&2)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function ys(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var s={mode:`hidden`,children:n};return!(a&2)&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=s,o=n.lastEffect,o===null?t.firstEffect=t.lastEffect=null:(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null)):n=dl(o,s),e===null?(r=pl(r,a,i,null),r.flags|=2):r=dl(e,r),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function bs(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Ea(e.return,t)}function xs(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function Ss(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(is(e,t,r.children,n),r=W.current,r&2)r=r&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bs(e,n);else if(e.tag===19)bs(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(U(W,r),!(t.mode&2))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ao(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),xs(t,!1,i,n,a,t.lastEffect);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ao(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}xs(t,!0,n,null,a,t.lastEffect);break;case`together`:xs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Cs(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),sc|=t.lanes,(n&t.childLanes)!==0){if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=dl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=dl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var ws=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ts=function(e,t,r,i){var a=e.memoizedProps;if(a!==i){e=t.stateNode,eo(Za.current);var s=null;switch(r){case`input`:a=xe(e,a),i=xe(e,i),s=[];break;case`option`:a=Oe(e,a),i=Oe(e,i),s=[];break;case`select`:a=n({},a,{value:void 0}),i=n({},i,{value:void 0}),s=[];break;case`textarea`:a=Ae(e,a),i=Ae(e,i),s=[];break;default:typeof a.onClick!=`function`&&typeof i.onClick==`function`&&(e.onclick=li)}Ge(r,i);var c;for(d in r=null,a)if(!i.hasOwnProperty(d)&&a.hasOwnProperty(d)&&a[d]!=null)if(d===`style`){var l=a[d];for(c in l)l.hasOwnProperty(c)&&(r||={},r[c]=``)}else d!==`dangerouslySetInnerHTML`&&d!==`children`&&d!==`suppressContentEditableWarning`&&d!==`suppressHydrationWarning`&&d!==`autoFocus`&&(o.hasOwnProperty(d)?s||=[]:(s||=[]).push(d,null));for(d in i){var u=i[d];if(l=a?.[d],i.hasOwnProperty(d)&&u!==l&&(u!=null||l!=null))if(d===`style`)if(l){for(c in l)!l.hasOwnProperty(c)||u&&u.hasOwnProperty(c)||(r||={},r[c]=``);for(c in u)u.hasOwnProperty(c)&&l[c]!==u[c]&&(r||={},r[c]=u[c])}else r||(s||=[],s.push(d,r)),r=u;else d===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(s||=[]).push(d,u)):d===`children`?typeof u!=`string`&&typeof u!=`number`||(s||=[]).push(d,``+u):d!==`suppressContentEditableWarning`&&d!==`suppressHydrationWarning`&&(o.hasOwnProperty(d)?(u!=null&&d===`onScroll`&&V(`scroll`,e),s||l===u||(s=[])):typeof u==`object`&&u&&u.$$typeof===oe?u.toString():(s||=[]).push(d,u))}r&&(s||=[]).push(`style`,r);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Es=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ds(e,t){if(!co)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Os(e,t,r){var a=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return zi(t.type)&&Bi(),null;case 3:return no(),H(Ii),H(Fi),_o(),a=t.stateNode,a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(mo(t)?t.flags|=4:a.hydrate||(t.flags|=256)),null;case 5:io(t);var s=eo($a.current);if(r=t.type,e!==null&&t.stateNode!=null)Ts(e,t,r,a,s),e.ref!==t.ref&&(t.flags|=128);else{if(!a){if(t.stateNode===null)throw Error(i(166));return null}if(e=eo(Za.current),mo(t)){a=t.stateNode,r=t.type;var c=t.memoizedProps;switch(a[Si]=t,a[Ci]=c,r){case`dialog`:V(`cancel`,a),V(`close`,a);break;case`iframe`:case`object`:case`embed`:V(`load`,a);break;case`video`:case`audio`:for(e=0;e<Xr.length;e++)V(Xr[e],a);break;case`source`:V(`error`,a);break;case`img`:case`image`:case`link`:V(`error`,a),V(`load`,a);break;case`details`:V(`toggle`,a);break;case`input`:Se(a,c),V(`invalid`,a);break;case`select`:a._wrapperState={wasMultiple:!!c.multiple},V(`invalid`,a);break;case`textarea`:je(a,c),V(`invalid`,a)}for(var l in Ge(r,c),e=null,c)c.hasOwnProperty(l)&&(s=c[l],l===`children`?typeof s==`string`?a.textContent!==s&&(e=[`children`,s]):typeof s==`number`&&a.textContent!==``+s&&(e=[`children`,``+s]):o.hasOwnProperty(l)&&s!=null&&l===`onScroll`&&V(`scroll`,a));switch(r){case`input`:ye(a),Te(a,c,!0);break;case`textarea`:ye(a),Ne(a);break;case`select`:case`option`:break;default:typeof c.onClick==`function`&&(a.onclick=li)}a=e,t.updateQueue=a,a!==null&&(t.flags|=4)}else{switch(l=s.nodeType===9?s:s.ownerDocument,e===Pe.html&&(e=Fe(r)),e===Pe.html?r===`script`?(e=l.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof a.is==`string`?e=l.createElement(r,{is:a.is}):(e=l.createElement(r),r===`select`&&(l=e,a.multiple?l.multiple=!0:a.size&&(l.size=a.size))):e=l.createElementNS(e,r),e[Si]=t,e[Ci]=a,ws(e,t,!1,!1),t.stateNode=e,l=Ke(r,a),r){case`dialog`:V(`cancel`,e),V(`close`,e),s=a;break;case`iframe`:case`object`:case`embed`:V(`load`,e),s=a;break;case`video`:case`audio`:for(s=0;s<Xr.length;s++)V(Xr[s],e);s=a;break;case`source`:V(`error`,e),s=a;break;case`img`:case`image`:case`link`:V(`error`,e),V(`load`,e),s=a;break;case`details`:V(`toggle`,e),s=a;break;case`input`:Se(e,a),s=xe(e,a),V(`invalid`,e);break;case`option`:s=Oe(e,a);break;case`select`:e._wrapperState={wasMultiple:!!a.multiple},s=n({},a,{value:void 0}),V(`invalid`,e);break;case`textarea`:je(e,a),s=Ae(e,a),V(`invalid`,e);break;default:s=a}Ge(r,s);var u=s;for(c in u)if(u.hasOwnProperty(c)){var d=u[c];c===`style`?Ue(e,d):c===`dangerouslySetInnerHTML`?(d=d?d.__html:void 0,d!=null&&Re(e,d)):c===`children`?typeof d==`string`?(r!==`textarea`||d!==``)&&ze(e,d):typeof d==`number`&&ze(e,``+d):c!==`suppressContentEditableWarning`&&c!==`suppressHydrationWarning`&&c!==`autoFocus`&&(o.hasOwnProperty(c)?d!=null&&c===`onScroll`&&V(`scroll`,e):d!=null&&C(e,c,d,l))}switch(r){case`input`:ye(e),Te(e,a,!1);break;case`textarea`:ye(e),Ne(e);break;case`option`:a.value!=null&&e.setAttribute(`value`,``+_e(a.value));break;case`select`:e.multiple=!!a.multiple,c=a.value,c==null?a.defaultValue!=null&&ke(e,!!a.multiple,a.defaultValue,!0):ke(e,!!a.multiple,c,!1);break;default:typeof s.onClick==`function`&&(e.onclick=li)}fi(r,a)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)Es(e,t,e.memoizedProps,a);else{if(typeof a!=`string`&&t.stateNode===null)throw Error(i(166));r=eo($a.current),eo(Za.current),mo(t)?(a=t.stateNode,r=t.memoizedProps,a[Si]=t,a.nodeValue!==r&&(t.flags|=4)):(a=(r.nodeType===9?r:r.ownerDocument).createTextNode(a),a[Si]=t,t.stateNode=a)}return null;case 13:return H(W),a=t.memoizedState,t.flags&64?(t.lanes=r,t):(a=a!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&mo(t):r=e.memoizedState!==null,a&&!r&&t.mode&2&&(e===null&&!0!==t.memoizedProps.unstable_avoidThisFallback||W.current&1?ic===0&&(ic=3):((ic===0||ic===3)&&(ic=4),$s===null||!(sc&134217727)&&!(cc&134217727)||Ic($s,tc))),(a||r)&&(t.flags|=4),null);case 4:return no(),e===null&&ti(t.stateNode.containerInfo),null;case 10:return Ta(t),null;case 17:return zi(t.type)&&Bi(),null;case 19:if(H(W),a=t.memoizedState,a===null)return null;if(c=(t.flags&64)!=0,l=a.rendering,l===null)if(c)Ds(a,!1);else{if(ic!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(l=ao(e),l!==null){for(t.flags|=64,Ds(a,!1),c=l.updateQueue,c!==null&&(t.updateQueue=c,t.flags|=4),a.lastEffect===null&&(t.firstEffect=null),t.lastEffect=a.lastEffect,a=r,r=t.child;r!==null;)c=r,e=a,c.flags&=2,c.nextEffect=null,c.firstEffect=null,c.lastEffect=null,l=c.alternate,l===null?(c.childLanes=0,c.lanes=e,c.child=null,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=l.childLanes,c.lanes=l.lanes,c.child=l.child,c.memoizedProps=l.memoizedProps,c.memoizedState=l.memoizedState,c.updateQueue=l.updateQueue,c.type=l.type,e=l.dependencies,c.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return U(W,W.current&1|2),t.child}e=e.sibling}a.tail!==null&&da()>fc&&(t.flags|=64,c=!0,Ds(a,!1),t.lanes=33554432)}else{if(!c)if(e=ao(l),e!==null){if(t.flags|=64,c=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Ds(a,!0),a.tail===null&&a.tailMode===`hidden`&&!l.alternate&&!co)return t=t.lastEffect=a.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*da()-a.renderingStartTime>fc&&r!==1073741824&&(t.flags|=64,c=!0,Ds(a,!1),t.lanes=33554432);a.isBackwards?(l.sibling=t.child,t.child=l):(r=a.last,r===null?t.child=l:r.sibling=l,a.last=l)}return a.tail===null?null:(r=a.tail,a.rendering=r,a.tail=r.sibling,a.lastEffect=t.lastEffect,a.renderingStartTime=da(),r.sibling=null,t=W.current,U(W,c?t&1|2:t&1),r);case 23:case 24:return J(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&a.mode!==`unstable-defer-without-hiding`&&(t.flags|=4),null}throw Error(i(156,t.tag))}function ks(e){switch(e.tag){case 1:zi(e.type)&&Bi();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(no(),H(Ii),H(Fi),_o(),t=e.flags,t&64)throw Error(i(285));return e.flags=t&-4097|64,e;case 5:return io(e),null;case 13:return H(W),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return H(W),null;case 4:return no(),null;case 10:return Ta(e),null;case 23:case 24:return J(),null;default:return null}}function As(e,t){try{var n=``,r=t;do n+=N(r),r=r.return;while(r);var i=n}catch(e){i=`
95
95
  Error generating stack: `+e.message+`
96
- `+e.stack}return{value:e,source:t,stack:i}}function Ns(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Ps=typeof WeakMap==`function`?WeakMap:Map;function Fs(e,t,n){n=Fa(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){gc||(gc=!0,_c=r),Ns(e,t)},n}function Is(e,t,n){n=Fa(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return Ns(e,t),r(i)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){typeof r!=`function`&&(vc===null?vc=new Set([this]):vc.add(this),Ns(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}var Ls=typeof WeakSet==`function`?WeakSet:Set;function Rs(e){var t=e.ref;if(t!==null)if(typeof t==`function`)try{t(null)}catch(t){il(e,t)}else t.current=null}function zs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:Sa(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&yi(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(i(163))}function Bs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t===null?null:t.lastEffect,t!==null){e=t=t.next;do{if((e.tag&3)==3){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t===null?null:t.lastEffect,t!==null){e=t=t.next;do{var a=e;r=a.next,a=a.tag,a&4&&a&1&&(tl(n,e),el(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Sa(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&za(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}za(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&hi(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&Xt(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(i(163))}function Vs(e,t){for(var n=e;;){if(n.tag===5){var r=n.stateNode;if(t)r=r.style,typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`;else{r=n.stateNode;var i=n.memoizedProps.style;i=i!=null&&i.hasOwnProperty(`display`)?i.display:null,r.style.display=Ge(`display`,i)}}else if(n.tag===6)n.stateNode.nodeValue=t?``:n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Hs(e,t){if(Yi&&typeof Yi.onCommitFiberUnmount==`function`)try{Yi.onCommitFiberUnmount(Ji,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,i!==void 0)if(r&4)tl(t,n);else{r=t;try{i()}catch(e){il(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Rs(t),e=t.stateNode,typeof e.componentWillUnmount==`function`)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){il(t,e)}break;case 5:Rs(t);break;case 4:Js(e,t)}}function Us(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Ws(e){return e.tag===5||e.tag===3||e.tag===4}function Gs(e){a:{for(var t=e.return;t!==null;){if(Ws(t))break a;t=t.return}throw Error(i(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(i(161))}n.flags&16&&(He(t,``),n.flags&=-17);a:b:for(n=e;;){for(;n.sibling===null;){if(n.return===null||Ws(n.return)){n=null;break a}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue b;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break a}}r?Ks(e,n,t):qs(e,n,t)}function Ks(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=fi));else if(r!==4&&(e=e.child,e!==null))for(Ks(e,t,n),e=e.sibling;e!==null;)Ks(e,t,n),e=e.sibling}function qs(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(qs(e,t,n),e=e.sibling;e!==null;)qs(e,t,n),e=e.sibling}function Js(e,t){for(var n=t,r=!1,a,o;;){if(!r){r=n.return;a:for(;;){if(r===null)throw Error(i(160));switch(a=r.stateNode,r.tag){case 5:o=!1;break a;case 3:a=a.containerInfo,o=!0;break a;case 4:a=a.containerInfo,o=!0;break a}r=r.return}r=!0}if(n.tag===5||n.tag===6){a:for(var s=e,c=n,l=c;;)if(Hs(s,l),l.child!==null&&l.tag!==4)l.child.return=l,l=l.child;else{if(l===c)break a;for(;l.sibling===null;){if(l.return===null||l.return===c)break a;l=l.return}l.sibling.return=l.return,l=l.sibling}o?(s=a,c=n.stateNode,s.nodeType===8?s.parentNode.removeChild(c):s.removeChild(c)):a.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){a=n.stateNode.containerInfo,o=!0,n.child.return=n,n=n.child;continue}}else if(Hs(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function Ys(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n===null?null:n.lastEffect,n!==null){var r=n=n.next;do(r.tag&3)==3&&(e=r.destroy,r.destroy=void 0,e!==void 0&&e()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){r=t.memoizedProps;var a=e===null?r:e.memoizedProps;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(n[Ei]=r,e===`input`&&r.type===`radio`&&r.name!=null&&Ee(n,r),Ye(e,a),t=Ye(e,r),a=0;a<o.length;a+=2){var s=o[a],c=o[a+1];s===`style`?Ke(n,c):s===`dangerouslySetInnerHTML`?Ve(n,c):s===`children`?He(n,c):C(n,s,c,t)}switch(e){case`input`:De(n,r);break;case`textarea`:Fe(n,r);break;case`select`:e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,o=r.value,o==null?e!==!!r.multiple&&(r.defaultValue==null?Me(n,!!r.multiple,r.multiple?[]:``,!1):Me(n,!!r.multiple,r.defaultValue,!0)):Me(n,!!r.multiple,o,!1)}}}return;case 6:if(t.stateNode===null)throw Error(i(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,Xt(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(pc=ma(),Vs(t.child,!0)),Xs(t);return;case 19:Xs(t);return;case 17:return;case 23:case 24:Vs(t,t.memoizedState!==null);return}throw Error(i(163))}function Xs(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ls),t.forEach(function(t){var r=ol.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Zs(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var Qs=Math.ceil,$s=w.ReactCurrentDispatcher,ec=w.ReactCurrentOwner,W=0,tc=null,nc=null,rc=0,ic=0,ac=Ii(0),oc=0,sc=null,cc=0,lc=0,uc=0,dc=0,fc=null,pc=0,mc=1/0;function hc(){mc=ma()+500}var G=null,gc=!1,_c=null,vc=null,yc=!1,bc=null,xc=90,Sc=[],Cc=[],wc=null,Tc=0,Ec=null,Dc=-1,Oc=0,kc=0,Ac=null,jc=!1;function Mc(){return W&48?ma():Dc===-1?Dc=ma():Dc}function Nc(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return ha()===99?1:2;if(Oc===0&&(Oc=cc),xa.transition!==0){kc!==0&&(kc=fc===null?0:fc.pendingLanes),e=Oc;var t=4186112&~kc;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=ha(),W&4&&e===98?e=_n(12,Oc):(e=pn(e),e=_n(e,Oc)),e}function Pc(e,t,n){if(50<Tc)throw Tc=0,Ec=null,Error(i(185));if(e=Fc(e,t),e===null)return null;bn(e,t,n),e===tc&&(uc|=t,oc===4&&Rc(e,rc));var r=ha();t===1?W&8&&!(W&48)?zc(e):(Ic(e,n),W===0&&(hc(),ya())):(!(W&4)||r!==98&&r!==99||(wc===null?wc=new Set([e]):wc.add(e)),Ic(e,n)),fc=e}function Fc(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function Ic(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-xn(o),c=1<<s,l=a[s];if(l===-1){if((c&r)===0||(c&i)!==0){l=t,fn(c);var u=N;a[s]=10<=u?l+250:6<=u?l+5e3:-1}}else l<=t&&(e.expiredLanes|=c);o&=~c}if(r=hn(e,e===tc?rc:0),t=N,r===0)n!==null&&(n!==ca&&Qi(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==ca&&Qi(n)}t===15?(n=zc.bind(null,e),ua===null?(ua=[n],da=Zi(ra,ba)):ua.push(n),n=ca):t===14?n=va(99,zc.bind(null,e)):(n=mn(t),n=va(n,Lc.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Lc(e){if(Dc=-1,kc=Oc=0,W&48)throw Error(i(327));var t=e.callbackNode;if($c()&&e.callbackNode!==t)return null;var n=hn(e,e===tc?rc:0);if(n===0)return null;var r=n,a=W;W|=16;var o=Kc();(tc!==e||rc!==r)&&(hc(),K(e,r));do try{Jc();break}catch(t){Gc(e,t)}while(1);if(Da(),$s.current=o,W=a,nc===null?(tc=null,rc=0,r=oc):r=0,(cc&uc)!==0)K(e,0);else if(r!==0){if(r===2&&(W|=64,e.hydrate&&(e.hydrate=!1,yi(e.containerInfo)),n=gn(e),n!==0&&(r=q(e,n))),r===1)throw t=sc,K(e,0),Rc(e,n),Ic(e,ma()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(i(345));case 2:Xc(e);break;case 3:if(Rc(e,n),(n&62914560)===n&&(r=pc+500-ma(),10<r)){if(hn(e,0)!==0)break;if(a=e.suspendedLanes,(a&n)!==n){Mc(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=_i(Xc.bind(null,e),r);break}Xc(e);break;case 4:if(Rc(e,n),(n&4186112)===n)break;for(r=e.eventTimes,a=-1;0<n;){var s=31-xn(n);o=1<<s,s=r[s],s>a&&(a=s),n&=~o}if(n=a,n=ma()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Qs(n/1960))-n,10<n){e.timeoutHandle=_i(Xc.bind(null,e),n);break}Xc(e);break;case 5:Xc(e);break;default:throw Error(i(329))}}return Ic(e,ma()),e.callbackNode===t?Lc.bind(null,e):null}function Rc(e,t){for(t&=~dc,t&=~uc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-xn(t),r=1<<n;e[n]=-1,t&=~r}}function zc(e){if(W&48)throw Error(i(327));if($c(),e===tc&&(e.expiredLanes&rc)!==0){var t=rc,n=q(e,t);(cc&uc)!==0&&(t=hn(e,t),n=q(e,t))}else t=hn(e,0),n=q(e,t);if(e.tag!==0&&n===2&&(W|=64,e.hydrate&&(e.hydrate=!1,yi(e.containerInfo)),t=gn(e),t!==0&&(n=q(e,t))),n===1)throw n=sc,K(e,0),Rc(e,t),Ic(e,ma()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Xc(e),Ic(e,ma()),null}function Bc(){if(wc!==null){var e=wc;wc=null,e.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,Ic(e,ma())})}ya()}function Vc(e,t){var n=W;W|=1;try{return e(t)}finally{W=n,W===0&&(hc(),ya())}}function Hc(e,t){var n=W;W&=-2,W|=8;try{return e(t)}finally{W=n,W===0&&(hc(),ya())}}function Uc(e,t){B(ac,ic),ic|=t,cc|=t}function Wc(){ic=ac.current,z(ac)}function K(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,vi(n)),nc!==null)for(n=nc.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ui();break;case 3:io(),z(zi),z(Ri),yo();break;case 5:oo(r);break;case 4:io();break;case 13:z(H);break;case 19:z(H);break;case 10:Oa(r);break;case 23:case 24:Wc()}n=n.return}tc=e,nc=fl(e.current,null),rc=ic=cc=t,oc=0,sc=null,dc=uc=lc=0}function Gc(e,t){do{var n=nc;try{if(Da(),bo.current=es,To){for(var r=U.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}To=!1}if(So=0,wo=Co=U=null,Eo=!1,ec.current=null,n===null||n.return===null){oc=1,sc=t,nc=null;break}a:{var a=e,o=n.return,s=n,c=t;if(t=rc,s.flags|=2048,s.firstEffect=s.lastEffect=null,typeof c==`object`&&c&&typeof c.then==`function`){var l=c;if(!(s.mode&2)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=(H.current&1)!=0,f=o;do{var p;if(p=f.tag===13){var m=f.memoizedState;if(m!==null)p=m.dehydrated!==null;else{var h=f.memoizedProps;p=h.fallback===void 0?!1:!0===h.unstable_avoidThisFallback?!d:!0}}if(p){var g=f.updateQueue;if(g===null){var _=new Set;_.add(l),f.updateQueue=_}else g.add(l);if(!(f.mode&2)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,s.tag===1)if(s.alternate===null)s.tag=17;else{var v=Fa(-1,1);v.tag=2,Ia(s,v)}s.lanes|=1;break a}c=void 0,s=t;var y=a.pingCache;if(y===null?(y=a.pingCache=new Ps,c=new Set,y.set(l,c)):(c=y.get(l),c===void 0&&(c=new Set,y.set(l,c))),!c.has(s)){c.add(s);var b=al.bind(null,a,l,s);l.then(b,b)}f.flags|=4096,f.lanes=t;break a}f=f.return}while(f!==null);c=Error((A(s.type)||`A React component`)+` suspended while rendering, but no fallback UI was specified.
96
+ `+e.stack}return{value:e,source:t,stack:i}}function js(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Ms=typeof WeakMap==`function`?WeakMap:Map;function Ns(e,t,n){n=Ma(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){mc||(mc=!0,hc=r),js(e,t)},n}function Ps(e,t,n){n=Ma(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return js(e,t),r(i)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){typeof r!=`function`&&(gc===null?gc=new Set([this]):gc.add(this),js(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}var Fs=typeof WeakSet==`function`?WeakSet:Set;function Is(e){var t=e.ref;if(t!==null)if(typeof t==`function`)try{t(null)}catch(t){rl(e,t)}else t.current=null}function Ls(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:ya(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&gi(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(i(163))}function Rs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t===null?null:t.lastEffect,t!==null){e=t=t.next;do{if((e.tag&3)==3){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t===null?null:t.lastEffect,t!==null){e=t=t.next;do{var a=e;r=a.next,a=a.tag,a&4&&a&1&&(el(n,e),$c(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:ya(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Ia(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}Ia(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&fi(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&qt(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(i(163))}function zs(e,t){for(var n=e;;){if(n.tag===5){var r=n.stateNode;if(t)r=r.style,typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`;else{r=n.stateNode;var i=n.memoizedProps.style;i=i!=null&&i.hasOwnProperty(`display`)?i.display:null,r.style.display=He(`display`,i)}}else if(n.tag===6)n.stateNode.nodeValue=t?``:n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Bs(e,t){if(Ki&&typeof Ki.onCommitFiberUnmount==`function`)try{Ki.onCommitFiberUnmount(Gi,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,i!==void 0)if(r&4)el(t,n);else{r=t;try{i()}catch(e){rl(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Is(t),e=t.stateNode,typeof e.componentWillUnmount==`function`)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){rl(t,e)}break;case 5:Is(t);break;case 4:Ks(e,t)}}function Vs(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Hs(e){return e.tag===5||e.tag===3||e.tag===4}function Us(e){a:{for(var t=e.return;t!==null;){if(Hs(t))break a;t=t.return}throw Error(i(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(i(161))}n.flags&16&&(ze(t,``),n.flags&=-17);a:b:for(n=e;;){for(;n.sibling===null;){if(n.return===null||Hs(n.return)){n=null;break a}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue b;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break a}}r?Ws(e,n,t):Gs(e,n,t)}function Ws(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=li));else if(r!==4&&(e=e.child,e!==null))for(Ws(e,t,n),e=e.sibling;e!==null;)Ws(e,t,n),e=e.sibling}function Gs(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Gs(e,t,n),e=e.sibling;e!==null;)Gs(e,t,n),e=e.sibling}function Ks(e,t){for(var n=t,r=!1,a,o;;){if(!r){r=n.return;a:for(;;){if(r===null)throw Error(i(160));switch(a=r.stateNode,r.tag){case 5:o=!1;break a;case 3:a=a.containerInfo,o=!0;break a;case 4:a=a.containerInfo,o=!0;break a}r=r.return}r=!0}if(n.tag===5||n.tag===6){a:for(var s=e,c=n,l=c;;)if(Bs(s,l),l.child!==null&&l.tag!==4)l.child.return=l,l=l.child;else{if(l===c)break a;for(;l.sibling===null;){if(l.return===null||l.return===c)break a;l=l.return}l.sibling.return=l.return,l=l.sibling}o?(s=a,c=n.stateNode,s.nodeType===8?s.parentNode.removeChild(c):s.removeChild(c)):a.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){a=n.stateNode.containerInfo,o=!0,n.child.return=n,n=n.child;continue}}else if(Bs(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function qs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n===null?null:n.lastEffect,n!==null){var r=n=n.next;do(r.tag&3)==3&&(e=r.destroy,r.destroy=void 0,e!==void 0&&e()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){r=t.memoizedProps;var a=e===null?r:e.memoizedProps;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(n[Ci]=r,e===`input`&&r.type===`radio`&&r.name!=null&&Ce(n,r),Ke(e,a),t=Ke(e,r),a=0;a<o.length;a+=2){var s=o[a],c=o[a+1];s===`style`?Ue(n,c):s===`dangerouslySetInnerHTML`?Re(n,c):s===`children`?ze(n,c):C(n,s,c,t)}switch(e){case`input`:we(n,r);break;case`textarea`:Me(n,r);break;case`select`:e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,o=r.value,o==null?e!==!!r.multiple&&(r.defaultValue==null?ke(n,!!r.multiple,r.multiple?[]:``,!1):ke(n,!!r.multiple,r.defaultValue,!0)):ke(n,!!r.multiple,o,!1)}}}return;case 6:if(t.stateNode===null)throw Error(i(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,qt(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(dc=da(),zs(t.child,!0)),Js(t);return;case 19:Js(t);return;case 17:return;case 23:case 24:zs(t,t.memoizedState!==null);return}throw Error(i(163))}function Js(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Fs),t.forEach(function(t){var r=al.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Ys(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var Xs=Math.ceil,Zs=w.ReactCurrentDispatcher,Qs=w.ReactCurrentOwner,K=0,$s=null,ec=null,tc=0,nc=0,rc=Ni(0),ic=0,ac=null,oc=0,sc=0,cc=0,lc=0,uc=null,dc=0,fc=1/0;function pc(){fc=da()+500}var q=null,mc=!1,hc=null,gc=null,_c=!1,vc=null,yc=90,bc=[],xc=[],Sc=null,Cc=0,wc=null,Tc=-1,Ec=0,Dc=0,Oc=null,kc=!1;function Ac(){return K&48?da():Tc===-1?Tc=da():Tc}function jc(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return fa()===99?1:2;if(Ec===0&&(Ec=oc),va.transition!==0){Dc!==0&&(Dc=uc===null?0:uc.pendingLanes),e=Ec;var t=4186112&~Dc;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=fa(),K&4&&e===98?e=mn(12,Ec):(e=un(e),e=mn(e,Ec)),e}function Mc(e,t,n){if(50<Cc)throw Cc=0,wc=null,Error(i(185));if(e=Nc(e,t),e===null)return null;_n(e,t,n),e===$s&&(cc|=t,ic===4&&Ic(e,tc));var r=fa();t===1?K&8&&!(K&48)?Lc(e):(Pc(e,n),K===0&&(pc(),ga())):(!(K&4)||r!==98&&r!==99||(Sc===null?Sc=new Set([e]):Sc.add(e)),Pc(e,n)),uc=e}function Nc(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function Pc(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-vn(o),c=1<<s,l=a[s];if(l===-1){if((c&r)===0||(c&i)!==0){l=t,ln(c);var u=I;a[s]=10<=u?l+250:6<=u?l+5e3:-1}}else l<=t&&(e.expiredLanes|=c);o&=~c}if(r=fn(e,e===$s?tc:0),t=I,r===0)n!==null&&(n!==aa&&Yi(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==aa&&Yi(n)}t===15?(n=Lc.bind(null,e),sa===null?(sa=[n],ca=Ji(ea,_a)):sa.push(n),n=aa):t===14?n=ha(99,Lc.bind(null,e)):(n=dn(t),n=ha(n,Fc.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Fc(e){if(Tc=-1,Dc=Ec=0,K&48)throw Error(i(327));var t=e.callbackNode;if(Qc()&&e.callbackNode!==t)return null;var n=fn(e,e===$s?tc:0);if(n===0)return null;var r=n,a=K;K|=16;var o=Wc();($s!==e||tc!==r)&&(pc(),Hc(e,r));do try{qc();break}catch(t){Uc(e,t)}while(1);if(wa(),Zs.current=o,K=a,ec===null?($s=null,tc=0,r=ic):r=0,(oc&cc)!==0)Hc(e,0);else if(r!==0){if(r===2&&(K|=64,e.hydrate&&(e.hydrate=!1,gi(e.containerInfo)),n=pn(e),n!==0&&(r=Gc(e,n))),r===1)throw t=ac,Hc(e,0),Ic(e,n),Pc(e,da()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(i(345));case 2:Yc(e);break;case 3:if(Ic(e,n),(n&62914560)===n&&(r=dc+500-da(),10<r)){if(fn(e,0)!==0)break;if(a=e.suspendedLanes,(a&n)!==n){Ac(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=mi(Yc.bind(null,e),r);break}Yc(e);break;case 4:if(Ic(e,n),(n&4186112)===n)break;for(r=e.eventTimes,a=-1;0<n;){var s=31-vn(n);o=1<<s,s=r[s],s>a&&(a=s),n&=~o}if(n=a,n=da()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Xs(n/1960))-n,10<n){e.timeoutHandle=mi(Yc.bind(null,e),n);break}Yc(e);break;case 5:Yc(e);break;default:throw Error(i(329))}}return Pc(e,da()),e.callbackNode===t?Fc.bind(null,e):null}function Ic(e,t){for(t&=~lc,t&=~cc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-vn(t),r=1<<n;e[n]=-1,t&=~r}}function Lc(e){if(K&48)throw Error(i(327));if(Qc(),e===$s&&(e.expiredLanes&tc)!==0){var t=tc,n=Gc(e,t);(oc&cc)!==0&&(t=fn(e,t),n=Gc(e,t))}else t=fn(e,0),n=Gc(e,t);if(e.tag!==0&&n===2&&(K|=64,e.hydrate&&(e.hydrate=!1,gi(e.containerInfo)),t=pn(e),t!==0&&(n=Gc(e,t))),n===1)throw n=ac,Hc(e,0),Ic(e,t),Pc(e,da()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Yc(e),Pc(e,da()),null}function Rc(){if(Sc!==null){var e=Sc;Sc=null,e.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,Pc(e,da())})}ga()}function zc(e,t){var n=K;K|=1;try{return e(t)}finally{K=n,K===0&&(pc(),ga())}}function Bc(e,t){var n=K;K&=-2,K|=8;try{return e(t)}finally{K=n,K===0&&(pc(),ga())}}function Vc(e,t){U(rc,nc),nc|=t,oc|=t}function J(){nc=rc.current,H(rc)}function Hc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,hi(n)),ec!==null)for(n=ec.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&Bi();break;case 3:no(),H(Ii),H(Fi),_o();break;case 5:io(r);break;case 4:no();break;case 13:H(W);break;case 19:H(W);break;case 10:Ta(r);break;case 23:case 24:J()}n=n.return}$s=e,ec=dl(e.current,null),tc=nc=oc=t,ic=0,ac=null,lc=cc=sc=0}function Uc(e,t){do{var n=ec;try{if(wa(),vo.current=Qo,Co){for(var r=G.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Co=!1}if(bo=0,So=xo=G=null,wo=!1,Qs.current=null,n===null||n.return===null){ic=1,ac=t,ec=null;break}a:{var a=e,o=n.return,s=n,c=t;if(t=tc,s.flags|=2048,s.firstEffect=s.lastEffect=null,typeof c==`object`&&c&&typeof c.then==`function`){var l=c;if(!(s.mode&2)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=(W.current&1)!=0,f=o;do{var p;if(p=f.tag===13){var m=f.memoizedState;if(m!==null)p=m.dehydrated!==null;else{var h=f.memoizedProps;p=h.fallback===void 0?!1:!0===h.unstable_avoidThisFallback?!d:!0}}if(p){var g=f.updateQueue;if(g===null){var _=new Set;_.add(l),f.updateQueue=_}else g.add(l);if(!(f.mode&2)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,s.tag===1)if(s.alternate===null)s.tag=17;else{var v=Ma(-1,1);v.tag=2,Na(s,v)}s.lanes|=1;break a}c=void 0,s=t;var y=a.pingCache;if(y===null?(y=a.pingCache=new Ms,c=new Set,y.set(l,c)):(c=y.get(l),c===void 0&&(c=new Set,y.set(l,c))),!c.has(s)){c.add(s);var b=il.bind(null,a,l,s);l.then(b,b)}f.flags|=4096,f.lanes=t;break a}f=f.return}while(f!==null);c=Error((ge(s.type)||`A React component`)+` suspended while rendering, but no fallback UI was specified.
97
97
 
98
- Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}oc!==5&&(oc=2),c=Ms(c,s),f=o;do{switch(f.tag){case 3:a=c,f.flags|=4096,t&=-t,f.lanes|=t;var x=Fs(f,a,t);La(f,x);break a;case 1:a=c;var S=f.type,C=f.stateNode;if(!(f.flags&64)&&(typeof S.getDerivedStateFromError==`function`||C!==null&&typeof C.componentDidCatch==`function`&&(vc===null||!vc.has(C)))){f.flags|=4096,t&=-t,f.lanes|=t;var w=Is(f,a,t);La(f,w);break a}}f=f.return}while(f!==null)}J(n)}catch(e){t=e,nc===n&&n!==null&&(nc=n=n.return);continue}break}while(1)}function Kc(){var e=$s.current;return $s.current=es,e===null?es:e}function q(e,t){var n=W;W|=16;var r=Kc();tc===e&&rc===t||K(e,t);do try{qc();break}catch(t){Gc(e,t)}while(1);if(Da(),W=n,$s.current=r,nc!==null)throw Error(i(261));return tc=null,rc=0,oc}function qc(){for(;nc!==null;)Yc(nc)}function Jc(){for(;nc!==null&&!$i();)Yc(nc)}function Yc(e){var t=sl(e.alternate,e,ic);e.memoizedProps=e.pendingProps,t===null?J(e):nc=t,ec.current=null}function J(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=js(t),n!==null){n.flags&=2047,nc=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=As(n,t,ic),n!==null){nc=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||ic&1073741824||!(n.mode&4)){for(var r=0,i=n.child;i!==null;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect===null?e.firstEffect=t:e.lastEffect.nextEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){nc=t;return}nc=t=e}while(t!==null);oc===0&&(oc=5)}function Xc(e){var t=ha();return _a(99,Zc.bind(null,e,t)),null}function Zc(e,t){do $c();while(bc!==null);if(W&48)throw Error(i(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null;var r=n.lanes|n.childLanes,a=r,o=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;for(var s=e.eventTimes,c=e.expirationTimes;0<o;){var l=31-xn(o),u=1<<l;a[l]=0,s[l]=-1,c[l]=-1,o&=~u}if(wc!==null&&!(r&24)&&wc.has(e)&&wc.delete(e),e===tc&&(nc=tc=null,rc=0),1<n.flags?n.lastEffect===null?r=n:(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n.firstEffect,r!==null){if(a=W,W|=32,ec.current=null,pi=Dn,s=Wr(),Gr(s)){if(`selectionStart`in s)c={start:s.selectionStart,end:s.selectionEnd};else a:if(c=(c=s.ownerDocument)&&c.defaultView||window,(u=c.getSelection&&c.getSelection())&&u.rangeCount!==0){c=u.anchorNode,o=u.anchorOffset,l=u.focusNode,u=u.focusOffset;try{c.nodeType,l.nodeType}catch{c=null;break a}var d=0,f=-1,p=-1,m=0,h=0,g=s,_=null;b:for(;;){for(var v;g!==c||o!==0&&g.nodeType!==3||(f=d+o),g!==l||u!==0&&g.nodeType!==3||(p=d+u),g.nodeType===3&&(d+=g.nodeValue.length),(v=g.firstChild)!==null;)_=g,g=v;for(;;){if(g===s)break b;if(_===c&&++m===o&&(f=d),_===l&&++h===u&&(p=d),(v=g.nextSibling)!==null)break;g=_,_=g.parentNode}g=v}c=f===-1||p===-1?null:{start:f,end:p}}else c=null;c||={start:0,end:0}}else c=null;mi={focusedElem:s,selectionRange:c},Dn=!1,Ac=null,jc=!1,G=r;do try{Qc()}catch(e){if(G===null)throw Error(i(330));il(G,e),G=G.nextEffect}while(G!==null);Ac=null,G=r;do try{for(s=e;G!==null;){var y=G.flags;if(y&16&&He(G.stateNode,``),y&128){var b=G.alternate;if(b!==null){var x=b.ref;x!==null&&(typeof x==`function`?x(null):x.current=null)}}switch(y&1038){case 2:Gs(G),G.flags&=-3;break;case 6:Gs(G),G.flags&=-3,Ys(G.alternate,G);break;case 1024:G.flags&=-1025;break;case 1028:G.flags&=-1025,Ys(G.alternate,G);break;case 4:Ys(G.alternate,G);break;case 8:c=G,Js(s,c);var S=c.alternate;Us(c),S!==null&&Us(S)}G=G.nextEffect}}catch(e){if(G===null)throw Error(i(330));il(G,e),G=G.nextEffect}while(G!==null);if(x=mi,b=Wr(),y=x.focusedElem,s=x.selectionRange,b!==y&&y&&y.ownerDocument&&Ur(y.ownerDocument.documentElement,y)){for(s!==null&&Gr(y)&&(b=s.start,x=s.end,x===void 0&&(x=b),(`selectionStart`in y)?(y.selectionStart=b,y.selectionEnd=Math.min(x,y.value.length)):(x=(b=y.ownerDocument||document)&&b.defaultView||window,x.getSelection&&(x=x.getSelection(),c=y.textContent.length,S=Math.min(s.start,c),s=s.end===void 0?S:Math.min(s.end,c),!x.extend&&S>s&&(c=s,s=S,S=c),c=Hr(y,S),o=Hr(y,s),c&&o&&(x.rangeCount!==1||x.anchorNode!==c.node||x.anchorOffset!==c.offset||x.focusNode!==o.node||x.focusOffset!==o.offset)&&(b=b.createRange(),b.setStart(c.node,c.offset),x.removeAllRanges(),S>s?(x.addRange(b),x.extend(o.node,o.offset)):(b.setEnd(o.node,o.offset),x.addRange(b)))))),b=[],x=y;x=x.parentNode;)x.nodeType===1&&b.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof y.focus==`function`&&y.focus(),y=0;y<b.length;y++)x=b[y],x.element.scrollLeft=x.left,x.element.scrollTop=x.top}Dn=!!pi,mi=pi=null,e.current=n,G=r;do try{for(y=e;G!==null;){var C=G.flags;if(C&36&&Bs(y,G.alternate,G),C&128){b=void 0;var w=G.ref;if(w!==null){var T=G.stateNode;switch(G.tag){case 5:b=T;break;default:b=T}typeof w==`function`?w(b):w.current=b}}G=G.nextEffect}}catch(e){if(G===null)throw Error(i(330));il(G,e),G=G.nextEffect}while(G!==null);G=null,la(),W=a}else e.current=n;if(yc)yc=!1,bc=e,xc=t;else for(G=r;G!==null;)t=G.nextEffect,G.nextEffect=null,G.flags&8&&(C=G,C.sibling=null,C.stateNode=null),G=t;if(r=e.pendingLanes,r===0&&(vc=null),r===1?e===Ec?Tc++:(Tc=0,Ec=e):Tc=0,n=n.stateNode,Yi&&typeof Yi.onCommitFiberRoot==`function`)try{Yi.onCommitFiberRoot(Ji,n,void 0,(n.current.flags&64)==64)}catch{}if(Ic(e,ma()),gc)throw gc=!1,e=_c,_c=null,e;return W&8||ya(),null}function Qc(){for(;G!==null;){var e=G.alternate;jc||Ac===null||(G.flags&8?Dt(G,Ac)&&(jc=!0):G.tag===13&&Zs(e,G)&&Dt(G,Ac)&&(jc=!0));var t=G.flags;t&256&&zs(e,G),!(t&512)||yc||(yc=!0,va(97,function(){return $c(),null})),G=G.nextEffect}}function $c(){if(xc!==90){var e=97<xc?97:xc;return xc=90,_a(e,nl)}return!1}function el(e,t){Sc.push(t,e),yc||(yc=!0,va(97,function(){return $c(),null}))}function tl(e,t){Cc.push(t,e),yc||(yc=!0,va(97,function(){return $c(),null}))}function nl(){if(bc===null)return!1;var e=bc;if(bc=null,W&48)throw Error(i(331));var t=W;W|=32;var n=Cc;Cc=[];for(var r=0;r<n.length;r+=2){var a=n[r],o=n[r+1],s=a.destroy;if(a.destroy=void 0,typeof s==`function`)try{s()}catch(e){if(o===null)throw Error(i(330));il(o,e)}}for(n=Sc,Sc=[],r=0;r<n.length;r+=2){a=n[r],o=n[r+1];try{var c=a.create;a.destroy=c()}catch(e){if(o===null)throw Error(i(330));il(o,e)}}for(c=e.current.firstEffect;c!==null;)e=c.nextEffect,c.nextEffect=null,c.flags&8&&(c.sibling=null,c.stateNode=null),c=e;return W=t,ya(),!0}function rl(e,t,n){t=Ms(n,t),t=Fs(e,t,1),Ia(e,t),t=Mc(),e=Fc(e,1),e!==null&&(bn(e,1,t),Ic(e,t))}function il(e,t){if(e.tag===3)rl(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){rl(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(vc===null||!vc.has(r))){e=Ms(t,e);var i=Is(n,e,1);if(Ia(n,i),i=Mc(),n=Fc(n,1),n!==null)bn(n,1,i),Ic(n,i);else if(typeof r.componentDidCatch==`function`&&(vc===null||!vc.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function al(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Mc(),e.pingedLanes|=e.suspendedLanes&n,tc===e&&(rc&n)===n&&(oc===4||oc===3&&(rc&62914560)===rc&&500>ma()-pc?K(e,0):dc|=n),Ic(e,t)}function ol(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(Oc===0&&(Oc=cc),t=vn(62914560&~Oc),t===0&&(t=4194304)):t=ha()===99?1:2:t=1),n=Mc(),e=Fc(e,t),e!==null&&(bn(e,t,n),Ic(e,n))}var sl=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||zi.current)as=!0;else if((n&r)!==0)as=!!(e.flags&16384);else{switch(as=!1,t.tag){case 3:gs(t),_o();break;case 5:ao(t);break;case 1:Hi(t.type)&&Ki(t);break;case 4:ro(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var a=t.type._context;B(Ca,a._currentValue),a._currentValue=r;break;case 13:if(t.memoizedState!==null)return(n&t.child.childLanes)===0?(B(H,H.current&1),t=Ts(e,t,n),t===null?null:t.sibling):vs(e,t,n);B(H,H.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&64){if(r)return ws(e,t,n);t.flags|=64}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),B(H,H.current),r)break;return null;case 23:case 24:return t.lanes=0,ds(e,t,n)}return Ts(e,t,n)}else as=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=Vi(t,Ri.current),Aa(t,n),a=ko(null,t,r,e,a,n),t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Hi(r)){var o=!0;Ki(t)}else o=!1;t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Na(t);var s=r.getDerivedStateFromProps;typeof s==`function`&&Va(t,r,s,e),a.updater=Ha,t.stateNode=a,a._reactInternals=t,Ka(t,r,e,n),t=hs(null,t,r,!0,o,n)}else t.tag=0,ss(null,t,a,n),t=t.child;return t;case 16:a=t.elementType;a:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=a._init,a=o(a._payload),t.type=a,o=t.tag=dl(a),e=Sa(a,e),o){case 0:t=ps(null,t,a,e,n);break a;case 1:t=ms(null,t,a,e,n);break a;case 11:t=cs(null,t,a,e,n);break a;case 14:t=ls(null,t,a,Sa(a.type,e),r,n);break a}throw Error(i(306,a,``))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Sa(r,a),ps(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Sa(r,a),ms(e,t,r,a,n);case 3:if(gs(t),r=t.updateQueue,e===null||r===null)throw Error(i(282));if(r=t.pendingProps,a=t.memoizedState,a=a===null?null:a.element,Pa(e,t),Ra(t,r,null,n),r=t.memoizedState.element,r===a)_o(),t=Ts(e,t,n);else{if(a=t.stateNode,(o=a.hydrate)&&(lo=bi(t.stateNode.containerInfo.firstChild),co=t,o=uo=!0),o){if(e=a.mutableSourceEagerHydrationData,e!=null)for(a=0;a<e.length;a+=2)o=e[a],o._workInProgressVersionPrimary=e[a+1],vo.push(o);for(n=Qa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else ss(e,t,r,n),_o();t=t.child}return t;case 5:return ao(t),e===null&&mo(t),r=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,gi(r,a)?s=null:o!==null&&gi(r,o)&&(t.flags|=16),fs(e,t),ss(e,t,s,n),t.child;case 6:return e===null&&mo(t),null;case 13:return vs(e,t,n);case 4:return ro(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Za(t,null,r,n):ss(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Sa(r,a),cs(e,t,r,a,n);case 7:return ss(e,t,t.pendingProps,n),t.child;case 8:return ss(e,t,t.pendingProps.children,n),t.child;case 12:return ss(e,t,t.pendingProps.children,n),t.child;case 10:a:{r=t.type._context,a=t.pendingProps,s=t.memoizedProps,o=a.value;var c=t.type._context;if(B(Ca,c._currentValue),c._currentValue=o,s!==null)if(c=s.value,o=Rr(c,o)?0:(typeof r._calculateChangedBits==`function`?r._calculateChangedBits(c,o):1073741823)|0,o===0){if(s.children===a.children&&!zi.current){t=Ts(e,t,n);break a}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var l=c.dependencies;if(l!==null){s=c.child;for(var u=l.firstContext;u!==null;){if(u.context===r&&(u.observedBits&o)!==0){c.tag===1&&(u=Fa(-1,n&-n),u.tag=2,Ia(c,u)),c.lanes|=n,u=c.alternate,u!==null&&(u.lanes|=n),ka(c.return,n),l.lanes|=n;break}u=u.next}}else s=c.tag===10&&c.type===t.type?null:c.child;if(s!==null)s.return=c;else for(s=c;s!==null;){if(s===t){s=null;break}if(c=s.sibling,c!==null){c.return=s.return,s=c;break}s=s.return}c=s}ss(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,o=t.pendingProps,r=o.children,Aa(t,n),a=ja(a,o.unstable_observedBits),r=r(a),t.flags|=1,ss(e,t,r,n),t.child;case 14:return a=t.type,o=Sa(a,t.pendingProps),o=Sa(a.type,o),ls(e,t,a,o,r,n);case 15:return us(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:Sa(r,a),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Hi(r)?(e=!0,Ki(t)):e=!1,Aa(t,n),Wa(t,r,a),Ka(t,r,a,n),hs(null,t,r,!0,e,n);case 19:return ws(e,t,n);case 23:return ds(e,t,n);case 24:return ds(e,t,n)}throw Error(i(156,t.tag))};function cl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function ll(e,t,n,r){return new cl(e,t,n,r)}function ul(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dl(e){if(typeof e==`function`)return+!!ul(e);if(e!=null){if(e=e.$$typeof,e===ie)return 11;if(e===k)return 14}return 2}function fl(e,t){var n=e.alternate;return n===null?(n=ll(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function pl(e,t,n,r,a,o){var s=2;if(r=e,typeof e==`function`)ul(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case te:return ml(n.children,a,o,t);case le:s=8,a|=16;break;case E:s=8,a|=1;break;case D:return e=ll(12,n,t,a|8),e.elementType=D,e.type=D,e.lanes=o,e;case O:return e=ll(13,n,t,a),e.type=O,e.elementType=O,e.lanes=o,e;case ae:return e=ll(19,n,t,a),e.elementType=ae,e.lanes=o,e;case ue:return hl(n,a,o,t);case de:return e=ll(24,n,t,a),e.elementType=de,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case ne:s=10;break a;case re:s=9;break a;case ie:s=11;break a;case k:s=14;break a;case oe:s=16,r=null;break a;case se:s=22;break a}throw Error(i(130,e==null?e:typeof e,``))}return t=ll(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ml(e,t,n,r){return e=ll(7,e,r,t),e.lanes=n,e}function hl(e,t,n,r){return e=ll(23,e,r,t),e.elementType=ue,e.lanes=n,e}function gl(e,t,n){return e=ll(6,e,null,t),e.lanes=n,e}function _l(e,t,n){return t=ll(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=yn(0),this.expirationTimes=yn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yn(0),this.mutableSourceEagerHydrationData=null}function yl(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ee,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function bl(e,t,n,r){var a=t.current,o=Mc(),s=Nc(a);a:if(n){n=n._reactInternals;b:{if(St(n)!==n||n.tag!==1)throw Error(i(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break b;case 1:if(Hi(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break b}}c=c.return}while(c!==null);throw Error(i(171))}if(n.tag===1){var l=n.type;if(Hi(l)){n=Gi(n,l,c);break a}}n=c}else n=Li;return t.context===null?t.context=n:t.pendingContext=n,t=Fa(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),Ia(a,t),Pc(a,s,o),s}function xl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Sl(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Cl(e,t){Sl(e,t),(e=e.alternate)&&Sl(e,t)}function wl(){return null}function Tl(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new vl(e,t,n!=null&&!0===n.hydrate),t=ll(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,Na(t),e[Di]=n.current,ii(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var i=t._getVersion;i=i(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}Tl.prototype.render=function(e){bl(e,this._internalRoot,null,null)},Tl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;bl(null,e,null,function(){t[Di]=null})};function El(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function Dl(e,t){if(t||=(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,!(!t||t.nodeType!==1||!t.hasAttribute(`data-reactroot`))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Tl(e,0,t?{hydrate:!0}:void 0)}function Ol(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if(typeof i==`function`){var s=i;i=function(){var e=xl(o);s.call(e)}}bl(t,o,e,i)}else{if(a=n._reactRootContainer=Dl(n,r),o=a._internalRoot,typeof i==`function`){var c=i;i=function(){var e=xl(o);c.call(e)}}Hc(function(){bl(t,o,e,i)})}return xl(o)}Ot=function(e){e.tag===13&&(Pc(e,4,Mc()),Cl(e,4))},kt=function(e){e.tag===13&&(Pc(e,67108864,Mc()),Cl(e,67108864))},At=function(e){if(e.tag===13){var t=Mc(),n=Nc(e);Pc(e,n,t),Cl(e,n)}},jt=function(e,t){return t()},Ze=function(e,t,n){switch(t){case`input`:if(De(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=Mi(r);if(!a)throw Error(i(90));Ce(r),De(r,a)}}}break;case`textarea`:Fe(e,n);break;case`select`:t=n.value,t!=null&&Me(e,!!n.multiple,t,!1)}},rt=Vc,it=function(e,t,n,r,i){var a=W;W|=4;try{return _a(98,e.bind(null,t,n,r,i))}finally{W=a,W===0&&(hc(),ya())}},at=function(){!(W&49)&&(Bc(),$c())},ot=function(e,t){var n=W;W|=2;try{return e(t)}finally{W=n,W===0&&(hc(),ya())}};function kl(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!El(t))throw Error(i(200));return yl(e,t,null,n)}var Al={findFiberByHostInstance:ki,bundleType:0,version:`17.0.2`,rendererPackageName:`react-dom`},jl={bundleType:Al.bundleType,version:Al.version,rendererPackageName:Al.rendererPackageName,rendererConfig:Al.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Et(e),e===null?null:e.stateNode},findFiberByHostInstance:Al.findFiberByHostInstance||wl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Ml=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ml.isDisabled&&Ml.supportsFiber)try{Ji=Ml.inject(jl),Yi=Ml}catch{}}e.createPortal=kl,e.render=function(e,t,n){if(!El(t))throw Error(i(200));return Ol(null,e,t,!1,n)}})),Ad=l(o(((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=kd()}))(),1);function jd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var Md={exports:{}},Nd={},Pd;function Fd(){if(Pd)return Nd;Pd=1;var e=O.default;function t(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var n=typeof Object.is==`function`?Object.is:t,r=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function s(e,t){var n=t(),s=r({inst:{value:n,getSnapshot:t}}),l=s[0].inst,u=s[1];return a(function(){l.value=n,l.getSnapshot=t,c(l)&&u({inst:l})},[e,n,t]),i(function(){return c(l)&&u({inst:l}),e(function(){c(l)&&u({inst:l})})},[e]),o(n),n}function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch{return!0}}function l(e,t){return t()}var u=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?l:s;return Nd.useSyncExternalStore=e.useSyncExternalStore===void 0?u:e.useSyncExternalStore,Nd}Md.exports=Fd();var Id=Md.exports,Ld=(...e)=>t=>{e.forEach(e=>{typeof e==`function`?e(t):e&&(e.current=t)})},Rd=({contentComponent:e})=>{let t=Id.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getServerSnapshot);return O.createElement(O.default.Fragment,null,Object.values(t))};function zd(){let e=new Set,t={};return{subscribe(t){return e.add(t),()=>{e.delete(t)}},getSnapshot(){return t},getServerSnapshot(){return t},setRenderer(n,r){t={...t,[n]:Ad.createPortal(r.reactElement,r.element,n)},e.forEach(e=>e())},removeRenderer(n){let r={...t};delete r[n],t=r,e.forEach(e=>e())}}}var Bd=class extends O.Component{constructor(e){super(e),this.editorContentRef=O.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!e.editor?.contentComponent}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){let e=this.props.editor;if(e&&!e.isDestroyed&&e.options.element){if(e.contentComponent)return;let t=this.editorContentRef.current;t.append(...e.options.element.childNodes),e.setOptions({element:t}),e.contentComponent=zd(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=e.contentComponent.subscribe(()=>{this.setState(e=>e.hasContentComponentInitialized?e:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),e.createNodeViews(),this.initialized=!0}}componentWillUnmount(){let e=this.props.editor;if(!e||(this.initialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),e.contentComponent=null,!e.options.element.firstChild))return;let t=document.createElement(`div`);t.append(...e.options.element.childNodes),e.setOptions({element:t})}render(){let{editor:e,innerRef:t,...n}=this.props;return O.createElement(O.default.Fragment,null,O.createElement(`div`,{ref:Ld(t,this.editorContentRef),...n}),e?.contentComponent&&O.createElement(Rd,{contentComponent:e.contentComponent}))}},Vd=(0,O.forwardRef)((e,t)=>{let n=O.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[e.editor]);return O.createElement(Bd,{key:n,innerRef:t,...e})}),Hd=O.memo(Vd),Ud=jd(function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],n.get(i[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(t[i]!==n[i])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!(o===`_owner`&&t.$$typeof)&&!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}),Wd={exports:{}},Gd={},Kd;function qd(){if(Kd)return Gd;Kd=1;var e=O.default,t=Id;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.useSyncExternalStore,a=e.useRef,o=e.useEffect,s=e.useMemo,c=e.useDebugValue;return Gd.useSyncExternalStoreWithSelector=function(e,t,n,l,u){var d=a(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s(function(){function e(e){if(!i){if(i=!0,a=e,e=l(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return o=t}return o=e}if(t=o,r(a,e))return t;var n=l(e);return u!==void 0&&u(t,n)?t:(a=e,o=n)}var i=!1,a,o,s=n===void 0?null:n;return[function(){return e(t())},s===null?void 0:function(){return e(s())}]},[t,n,l,u]);var p=i(e,d[0],d[1]);return o(function(){f.hasValue=!0,f.value=p},[p]),c(p),p},Gd}Wd.exports=qd();var Jd=Wd.exports,Yd=typeof window<`u`?O.useLayoutEffect:O.useEffect,Xd=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},t=this.editor;return t.on(`transaction`,e),()=>{t.off(`transaction`,e)}}}};function Zd(e){let[t]=(0,O.useState)(()=>new Xd(e.editor)),n=Jd.useSyncExternalStoreWithSelector(t.subscribe,t.getSnapshot,t.getServerSnapshot,e.selector,e.equalityFn??Ud);return Yd(()=>t.watch(e.editor),[e.editor,t]),(0,O.useDebugValue)(n),n}var Qd=typeof window>`u`,$d=Qd||!!(typeof window<`u`&&window.next),ef=class e{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId=``,this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){return this.options.current.immediatelyRender===void 0?Qd||$d?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){return new Cd({...this.options.current,onBeforeCreate:(...e)=>{var t;return(t=this.options.current).onBeforeCreate?.call(t,...e)},onBlur:(...e)=>{var t;return(t=this.options.current).onBlur?.call(t,...e)},onCreate:(...e)=>{var t;return(t=this.options.current).onCreate?.call(t,...e)},onDestroy:(...e)=>{var t;return(t=this.options.current).onDestroy?.call(t,...e)},onFocus:(...e)=>{var t;return(t=this.options.current).onFocus?.call(t,...e)},onSelectionUpdate:(...e)=>{var t;return(t=this.options.current).onSelectionUpdate?.call(t,...e)},onTransaction:(...e)=>{var t;return(t=this.options.current).onTransaction?.call(t,...e)},onUpdate:(...e)=>{var t;return(t=this.options.current).onUpdate?.call(t,...e)},onContentError:(...e)=>{var t;return(t=this.options.current).onContentError?.call(t,...e)},onDrop:(...e)=>{var t;return(t=this.options.current).onDrop?.call(t,...e)},onPaste:(...e)=>{var t;return(t=this.options.current).onPaste?.call(t,...e)}})}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(n=>[`onCreate`,`onBeforeCreate`,`onDestroy`,`onUpdate`,`onTransaction`,`onFocus`,`onBlur`,`onSelectionUpdate`,`onContentError`,`onDrop`,`onPaste`].includes(n)?!0:n===`extensions`&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length?e.extensions.every((e,n)=>e===t.extensions?.[n]):!1:e[n]===t[n])}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&t.length===0?e.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,n)=>t===e[n]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){t&&t.setOptions(this.options.current);return}t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function tf(e={},t=[]){let n=(0,O.useRef)(e);n.current=e;let[r]=(0,O.useState)(()=>new ef(n)),i=Id.useSyncExternalStore(r.subscribe,r.getEditor,r.getServerSnapshot);return(0,O.useDebugValue)(i),(0,O.useEffect)(r.onRender(t)),Zd({editor:i,selector:({transactionNumber:t})=>e.shouldRerenderOnTransaction===!1?null:e.immediatelyRender&&t===0?0:t+1}),i}(0,O.createContext)({editor:null}).Consumer;var nf=(0,O.createContext)({onDragStart:void 0}),rf=()=>(0,O.useContext)(nf);O.forwardRef((e,t)=>{let{onDragStart:n}=rf(),r=e.as||`div`;return O.createElement(r,{...e,ref:t,"data-node-view-wrapper":``,onDragStart:n,style:{whiteSpace:`normal`,...e.style}})});var af=Object.defineProperty,of=(e,t,n)=>t in e?af(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sf=(e,t,n)=>(of(e,typeof t==`symbol`?t:t+``,n),n),cf=new class{constructor(){sf(this,`current`,this.detect()),sf(this,`handoffState`,`pending`),sf(this,`currentId`,0)}set(e){this.current!==e&&(this.handoffState=`pending`,this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current===`server`}get isClient(){return this.current===`client`}detect(){return typeof window>`u`||typeof document>`u`?`server`:`client`}handoff(){this.handoffState===`pending`&&(this.handoffState=`complete`)}get isHandoffComplete(){return this.handoffState===`complete`}},lf=(e,t)=>{cf.isServer?(0,O.useEffect)(e,t):(0,O.useLayoutEffect)(e,t)};function uf(e){let t=(0,O.useRef)(e);return lf(()=>{t.current=e},[e]),t}var df=function(e){let t=uf(e);return O.useCallback((...e)=>t.current(...e),[t])};function ff(e){typeof queueMicrotask==`function`?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function pf(){let e=[],t={addEventListener(e,n,r,i){return e.addEventListener(n,r,i),t.add(()=>e.removeEventListener(n,r,i))},requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...e){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...e))},setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return ff(()=>{n.current&&e[0]()}),t.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=pf();return e(t),this.add(()=>t.dispose())},add(t){return e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}},dispose(){for(let t of e.splice(0))t()}};return t}function mf(){let[e]=(0,O.useState)(pf);return(0,O.useEffect)(()=>()=>e.dispose(),[e]),e}function hf(){let e=typeof document>`u`;return`useSyncExternalStore`in O?(e=>e.useSyncExternalStore)(O)(()=>()=>{},()=>!1,()=>!e):!1}function gf(){let e=hf(),[t,n]=O.useState(cf.isHandoffComplete);return t&&cf.isHandoffComplete===!1&&n(!1),O.useEffect(()=>{t!==!0&&n(!0)},[t]),O.useEffect(()=>cf.handoff(),[]),e?!1:t}function _f(e,t,...n){if(e in t){let r=t[e];return typeof r==`function`?r(...n):r}let r=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(`, `)}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,_f),r}var vf=Symbol();function yf(...e){let t=(0,O.useRef)(e);(0,O.useEffect)(()=>{t.current=e},[e]);let n=df(e=>{for(let n of t.current)n!=null&&(typeof n==`function`?n(e):n.current=e)});return e.every(e=>e==null||e?.[vf])?void 0:n}function bf(...e){return Array.from(new Set(e.flatMap(e=>typeof e==`string`?e.split(` `):[]))).filter(Boolean).join(` `)}var xf=(e=>(e[e.None=0]=`None`,e[e.RenderStrategy=1]=`RenderStrategy`,e[e.Static=2]=`Static`,e))(xf||{}),Sf=(e=>(e[e.Unmount=0]=`Unmount`,e[e.Hidden=1]=`Hidden`,e))(Sf||{});function Cf({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o,mergeRefs:s}){s??=Tf;let c=Ef(t,e);if(a)return wf(c,n,r,o,s);let l=i??0;if(l&2){let{static:e=!1,...t}=c;if(e)return wf(t,n,r,o,s)}if(l&1){let{unmount:e=!0,...t}=c;return _f(+!e,{0(){return null},1(){return wf({...t,hidden:!0,style:{display:`none`}},n,r,o,s)}})}return wf(c,n,r,o,s)}function wf(e,t={},n,r,i){let{as:a=n,children:o,refName:s=`ref`,...c}=kf(e,[`unmount`,`static`]),l=e.ref===void 0?{}:{[s]:e.ref},u=typeof o==`function`?o(t):o;`className`in c&&c.className&&typeof c.className==`function`&&(c.className=c.className(t));let d={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))typeof i==`boolean`&&(e=!0),i===!0&&n.push(r);e&&(d[`data-headlessui-state`]=n.join(` `))}if(a===O.Fragment&&Object.keys(Of(c)).length>0){if(!(0,O.isValidElement)(u)||Array.isArray(u)&&u.length>1)throw Error([`Passing props on "Fragment"!`,``,`The current component <${r} /> is rendering a "Fragment".`,`However we need to passthrough the following props:`,Object.keys(c).map(e=>` - ${e}`).join(`
98
+ Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}ic!==5&&(ic=2),c=As(c,s),f=o;do{switch(f.tag){case 3:a=c,f.flags|=4096,t&=-t,f.lanes|=t;var x=Ns(f,a,t);Pa(f,x);break a;case 1:a=c;var S=f.type,C=f.stateNode;if(!(f.flags&64)&&(typeof S.getDerivedStateFromError==`function`||C!==null&&typeof C.componentDidCatch==`function`&&(gc===null||!gc.has(C)))){f.flags|=4096,t&=-t,f.lanes|=t;var w=Ps(f,a,t);Pa(f,w);break a}}f=f.return}while(f!==null)}Jc(n)}catch(e){t=e,ec===n&&n!==null&&(ec=n=n.return);continue}break}while(1)}function Wc(){var e=Zs.current;return Zs.current=Qo,e===null?Qo:e}function Gc(e,t){var n=K;K|=16;var r=Wc();$s===e&&tc===t||Hc(e,t);do try{Kc();break}catch(t){Uc(e,t)}while(1);if(wa(),K=n,Zs.current=r,ec!==null)throw Error(i(261));return $s=null,tc=0,ic}function Kc(){for(;ec!==null;)Y(ec)}function qc(){for(;ec!==null&&!Xi();)Y(ec)}function Y(e){var t=ol(e.alternate,e,nc);e.memoizedProps=e.pendingProps,t===null?Jc(e):ec=t,Qs.current=null}function Jc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=ks(t),n!==null){n.flags&=2047,ec=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=Os(n,t,nc),n!==null){ec=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||nc&1073741824||!(n.mode&4)){for(var r=0,i=n.child;i!==null;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect===null?e.firstEffect=t:e.lastEffect.nextEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){ec=t;return}ec=t=e}while(t!==null);ic===0&&(ic=5)}function Yc(e){var t=fa();return ma(99,Xc.bind(null,e,t)),null}function Xc(e,t){do Qc();while(vc!==null);if(K&48)throw Error(i(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null;var r=n.lanes|n.childLanes,a=r,o=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;for(var s=e.eventTimes,c=e.expirationTimes;0<o;){var l=31-vn(o),u=1<<l;a[l]=0,s[l]=-1,c[l]=-1,o&=~u}if(Sc!==null&&!(r&24)&&Sc.has(e)&&Sc.delete(e),e===$s&&(ec=$s=null,tc=0),1<n.flags?n.lastEffect===null?r=n:(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n.firstEffect,r!==null){if(a=K,K|=32,Qs.current=null,ui=wn,s=Vr(),Hr(s)){if(`selectionStart`in s)c={start:s.selectionStart,end:s.selectionEnd};else a:if(c=(c=s.ownerDocument)&&c.defaultView||window,(u=c.getSelection&&c.getSelection())&&u.rangeCount!==0){c=u.anchorNode,o=u.anchorOffset,l=u.focusNode,u=u.focusOffset;try{c.nodeType,l.nodeType}catch{c=null;break a}var d=0,f=-1,p=-1,m=0,h=0,g=s,_=null;b:for(;;){for(var v;g!==c||o!==0&&g.nodeType!==3||(f=d+o),g!==l||u!==0&&g.nodeType!==3||(p=d+u),g.nodeType===3&&(d+=g.nodeValue.length),(v=g.firstChild)!==null;)_=g,g=v;for(;;){if(g===s)break b;if(_===c&&++m===o&&(f=d),_===l&&++h===u&&(p=d),(v=g.nextSibling)!==null)break;g=_,_=g.parentNode}g=v}c=f===-1||p===-1?null:{start:f,end:p}}else c=null;c||={start:0,end:0}}else c=null;di={focusedElem:s,selectionRange:c},wn=!1,Oc=null,kc=!1,q=r;do try{Zc()}catch(e){if(q===null)throw Error(i(330));rl(q,e),q=q.nextEffect}while(q!==null);Oc=null,q=r;do try{for(s=e;q!==null;){var y=q.flags;if(y&16&&ze(q.stateNode,``),y&128){var b=q.alternate;if(b!==null){var x=b.ref;x!==null&&(typeof x==`function`?x(null):x.current=null)}}switch(y&1038){case 2:Us(q),q.flags&=-3;break;case 6:Us(q),q.flags&=-3,qs(q.alternate,q);break;case 1024:q.flags&=-1025;break;case 1028:q.flags&=-1025,qs(q.alternate,q);break;case 4:qs(q.alternate,q);break;case 8:c=q,Ks(s,c);var S=c.alternate;Vs(c),S!==null&&Vs(S)}q=q.nextEffect}}catch(e){if(q===null)throw Error(i(330));rl(q,e),q=q.nextEffect}while(q!==null);if(x=di,b=Vr(),y=x.focusedElem,s=x.selectionRange,b!==y&&y&&y.ownerDocument&&Br(y.ownerDocument.documentElement,y)){for(s!==null&&Hr(y)&&(b=s.start,x=s.end,x===void 0&&(x=b),(`selectionStart`in y)?(y.selectionStart=b,y.selectionEnd=Math.min(x,y.value.length)):(x=(b=y.ownerDocument||document)&&b.defaultView||window,x.getSelection&&(x=x.getSelection(),c=y.textContent.length,S=Math.min(s.start,c),s=s.end===void 0?S:Math.min(s.end,c),!x.extend&&S>s&&(c=s,s=S,S=c),c=zr(y,S),o=zr(y,s),c&&o&&(x.rangeCount!==1||x.anchorNode!==c.node||x.anchorOffset!==c.offset||x.focusNode!==o.node||x.focusOffset!==o.offset)&&(b=b.createRange(),b.setStart(c.node,c.offset),x.removeAllRanges(),S>s?(x.addRange(b),x.extend(o.node,o.offset)):(b.setEnd(o.node,o.offset),x.addRange(b)))))),b=[],x=y;x=x.parentNode;)x.nodeType===1&&b.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof y.focus==`function`&&y.focus(),y=0;y<b.length;y++)x=b[y],x.element.scrollLeft=x.left,x.element.scrollTop=x.top}wn=!!ui,di=ui=null,e.current=n,q=r;do try{for(y=e;q!==null;){var C=q.flags;if(C&36&&Rs(y,q.alternate,q),C&128){b=void 0;var w=q.ref;if(w!==null){var T=q.stateNode;switch(q.tag){case 5:b=T;break;default:b=T}typeof w==`function`?w(b):w.current=b}}q=q.nextEffect}}catch(e){if(q===null)throw Error(i(330));rl(q,e),q=q.nextEffect}while(q!==null);q=null,oa(),K=a}else e.current=n;if(_c)_c=!1,vc=e,yc=t;else for(q=r;q!==null;)t=q.nextEffect,q.nextEffect=null,q.flags&8&&(C=q,C.sibling=null,C.stateNode=null),q=t;if(r=e.pendingLanes,r===0&&(gc=null),r===1?e===wc?Cc++:(Cc=0,wc=e):Cc=0,n=n.stateNode,Ki&&typeof Ki.onCommitFiberRoot==`function`)try{Ki.onCommitFiberRoot(Gi,n,void 0,(n.current.flags&64)==64)}catch{}if(Pc(e,da()),mc)throw mc=!1,e=hc,hc=null,e;return K&8||ga(),null}function Zc(){for(;q!==null;){var e=q.alternate;kc||Oc===null||(q.flags&8?wt(q,Oc)&&(kc=!0):q.tag===13&&Ys(e,q)&&wt(q,Oc)&&(kc=!0));var t=q.flags;t&256&&Ls(e,q),!(t&512)||_c||(_c=!0,ha(97,function(){return Qc(),null})),q=q.nextEffect}}function Qc(){if(yc!==90){var e=97<yc?97:yc;return yc=90,ma(e,tl)}return!1}function $c(e,t){bc.push(t,e),_c||(_c=!0,ha(97,function(){return Qc(),null}))}function el(e,t){xc.push(t,e),_c||(_c=!0,ha(97,function(){return Qc(),null}))}function tl(){if(vc===null)return!1;var e=vc;if(vc=null,K&48)throw Error(i(331));var t=K;K|=32;var n=xc;xc=[];for(var r=0;r<n.length;r+=2){var a=n[r],o=n[r+1],s=a.destroy;if(a.destroy=void 0,typeof s==`function`)try{s()}catch(e){if(o===null)throw Error(i(330));rl(o,e)}}for(n=bc,bc=[],r=0;r<n.length;r+=2){a=n[r],o=n[r+1];try{var c=a.create;a.destroy=c()}catch(e){if(o===null)throw Error(i(330));rl(o,e)}}for(c=e.current.firstEffect;c!==null;)e=c.nextEffect,c.nextEffect=null,c.flags&8&&(c.sibling=null,c.stateNode=null),c=e;return K=t,ga(),!0}function nl(e,t,n){t=As(n,t),t=Ns(e,t,1),Na(e,t),t=Ac(),e=Nc(e,1),e!==null&&(_n(e,1,t),Pc(e,t))}function rl(e,t){if(e.tag===3)nl(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){nl(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(gc===null||!gc.has(r))){e=As(t,e);var i=Ps(n,e,1);if(Na(n,i),i=Ac(),n=Nc(n,1),n!==null)_n(n,1,i),Pc(n,i);else if(typeof r.componentDidCatch==`function`&&(gc===null||!gc.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function il(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ac(),e.pingedLanes|=e.suspendedLanes&n,$s===e&&(tc&n)===n&&(ic===4||ic===3&&(tc&62914560)===tc&&500>da()-dc?Hc(e,0):lc|=n),Pc(e,t)}function al(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(Ec===0&&(Ec=oc),t=hn(62914560&~Ec),t===0&&(t=4194304)):t=fa()===99?1:2:t=1),n=Ac(),e=Nc(e,t),e!==null&&(_n(e,t,n),Pc(e,n))}var ol=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Ii.current)rs=!0;else if((n&r)!==0)rs=!!(e.flags&16384);else{switch(rs=!1,t.tag){case 3:ms(t),ho();break;case 5:ro(t);break;case 1:zi(t.type)&&Ui(t);break;case 4:to(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var a=t.type._context;U(ba,a._currentValue),a._currentValue=r;break;case 13:if(t.memoizedState!==null)return(n&t.child.childLanes)===0?(U(W,W.current&1),t=Cs(e,t,n),t===null?null:t.sibling):gs(e,t,n);U(W,W.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&64){if(r)return Ss(e,t,n);t.flags|=64}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),U(W,W.current),r)break;return null;case 23:case 24:return t.lanes=0,ls(e,t,n)}return Cs(e,t,n)}else rs=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=Ri(t,Fi.current),Da(t,n),a=Do(null,t,r,e,a,n),t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,zi(r)){var o=!0;Ui(t)}else o=!1;t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Aa(t);var s=r.getDerivedStateFromProps;typeof s==`function`&&Ra(t,r,s,e),a.updater=za,t.stateNode=a,a._reactInternals=t,Ua(t,r,e,n),t=ps(null,t,r,!0,o,n)}else t.tag=0,is(null,t,a,n),t=t.child;return t;case 16:a=t.elementType;a:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=a._init,a=o(a._payload),t.type=a,o=t.tag=ul(a),e=ya(a,e),o){case 0:t=ds(null,t,a,e,n);break a;case 1:t=fs(null,t,a,e,n);break a;case 11:t=as(null,t,a,e,n);break a;case 14:t=ss(null,t,a,ya(a.type,e),r,n);break a}throw Error(i(306,a,``))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ya(r,a),ds(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ya(r,a),fs(e,t,r,a,n);case 3:if(ms(t),r=t.updateQueue,e===null||r===null)throw Error(i(282));if(r=t.pendingProps,a=t.memoizedState,a=a===null?null:a.element,ja(e,t),Fa(t,r,null,n),r=t.memoizedState.element,r===a)ho(),t=Cs(e,t,n);else{if(a=t.stateNode,(o=a.hydrate)&&(so=_i(t.stateNode.containerInfo.firstChild),oo=t,o=co=!0),o){if(e=a.mutableSourceEagerHydrationData,e!=null)for(a=0;a<e.length;a+=2)o=e[a],o._workInProgressVersionPrimary=e[a+1],go.push(o);for(n=Ya(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else is(e,t,r,n),ho();t=t.child}return t;case 5:return ro(t),e===null&&fo(t),r=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,pi(r,a)?s=null:o!==null&&pi(r,o)&&(t.flags|=16),us(e,t),is(e,t,s,n),t.child;case 6:return e===null&&fo(t),null;case 13:return gs(e,t,n);case 4:return to(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ja(t,null,r,n):is(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ya(r,a),as(e,t,r,a,n);case 7:return is(e,t,t.pendingProps,n),t.child;case 8:return is(e,t,t.pendingProps.children,n),t.child;case 12:return is(e,t,t.pendingProps.children,n),t.child;case 10:a:{r=t.type._context,a=t.pendingProps,s=t.memoizedProps,o=a.value;var c=t.type._context;if(U(ba,c._currentValue),c._currentValue=o,s!==null)if(c=s.value,o=Fr(c,o)?0:(typeof r._calculateChangedBits==`function`?r._calculateChangedBits(c,o):1073741823)|0,o===0){if(s.children===a.children&&!Ii.current){t=Cs(e,t,n);break a}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var l=c.dependencies;if(l!==null){s=c.child;for(var u=l.firstContext;u!==null;){if(u.context===r&&(u.observedBits&o)!==0){c.tag===1&&(u=Ma(-1,n&-n),u.tag=2,Na(c,u)),c.lanes|=n,u=c.alternate,u!==null&&(u.lanes|=n),Ea(c.return,n),l.lanes|=n;break}u=u.next}}else s=c.tag===10&&c.type===t.type?null:c.child;if(s!==null)s.return=c;else for(s=c;s!==null;){if(s===t){s=null;break}if(c=s.sibling,c!==null){c.return=s.return,s=c;break}s=s.return}c=s}is(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,o=t.pendingProps,r=o.children,Da(t,n),a=Oa(a,o.unstable_observedBits),r=r(a),t.flags|=1,is(e,t,r,n),t.child;case 14:return a=t.type,o=ya(a,t.pendingProps),o=ya(a.type,o),ss(e,t,a,o,r,n);case 15:return cs(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ya(r,a),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,zi(r)?(e=!0,Ui(t)):e=!1,Da(t,n),Va(t,r,a),Ua(t,r,a,n),ps(null,t,r,!0,e,n);case 19:return Ss(e,t,n);case 23:return ls(e,t,n);case 24:return ls(e,t,n)}throw Error(i(156,t.tag))};function sl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function cl(e,t,n,r){return new sl(e,t,n,r)}function ll(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ul(e){if(typeof e==`function`)return+!!ll(e);if(e!=null){if(e=e.$$typeof,e===k)return 11;if(e===re)return 14}return 2}function dl(e,t){var n=e.alternate;return n===null?(n=cl(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function fl(e,t,n,r,a,o){var s=2;if(r=e,typeof e==`function`)ll(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case ee:return pl(n.children,a,o,t);case se:s=8,a|=16;break;case D:s=8,a|=1;break;case O:return e=cl(12,n,t,a|8),e.elementType=O,e.type=O,e.lanes=o,e;case A:return e=cl(13,n,t,a),e.type=A,e.elementType=A,e.lanes=o,e;case j:return e=cl(19,n,t,a),e.elementType=j,e.lanes=o,e;case ce:return ml(n,a,o,t);case le:return e=cl(24,n,t,a),e.elementType=le,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case te:s=10;break a;case ne:s=9;break a;case k:s=11;break a;case re:s=14;break a;case ie:s=16,r=null;break a;case ae:s=22;break a}throw Error(i(130,e==null?e:typeof e,``))}return t=cl(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function pl(e,t,n,r){return e=cl(7,e,r,t),e.lanes=n,e}function ml(e,t,n,r){return e=cl(23,e,r,t),e.elementType=ce,e.lanes=n,e}function hl(e,t,n){return e=cl(6,e,null,t),e.lanes=n,e}function gl(e,t,n){return t=cl(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _l(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=gn(0),this.expirationTimes=gn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gn(0),this.mutableSourceEagerHydrationData=null}function vl(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:E,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function yl(e,t,n,r){var a=t.current,o=Ac(),s=jc(a);a:if(n){n=n._reactInternals;b:{if(yt(n)!==n||n.tag!==1)throw Error(i(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break b;case 1:if(zi(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break b}}c=c.return}while(c!==null);throw Error(i(171))}if(n.tag===1){var l=n.type;if(zi(l)){n=Hi(n,l,c);break a}}n=c}else n=Pi;return t.context===null?t.context=n:t.pendingContext=n,t=Ma(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),Na(a,t),Mc(a,s,o),s}function bl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function xl(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Sl(e,t){xl(e,t),(e=e.alternate)&&xl(e,t)}function Cl(){return null}function wl(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new _l(e,t,n!=null&&!0===n.hydrate),t=cl(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,Aa(t),e[wi]=n.current,ti(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var i=t._getVersion;i=i(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}wl.prototype.render=function(e){yl(e,this._internalRoot,null,null)},wl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;yl(null,e,null,function(){t[wi]=null})};function Tl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function El(e,t){if(t||=(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,!(!t||t.nodeType!==1||!t.hasAttribute(`data-reactroot`))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new wl(e,0,t?{hydrate:!0}:void 0)}function Dl(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if(typeof i==`function`){var s=i;i=function(){var e=bl(o);s.call(e)}}yl(t,o,e,i)}else{if(a=n._reactRootContainer=El(n,r),o=a._internalRoot,typeof i==`function`){var c=i;i=function(){var e=bl(o);c.call(e)}}Bc(function(){yl(t,o,e,i)})}return bl(o)}Tt=function(e){e.tag===13&&(Mc(e,4,Ac()),Sl(e,4))},Et=function(e){e.tag===13&&(Mc(e,67108864,Ac()),Sl(e,67108864))},Dt=function(e){if(e.tag===13){var t=Ac(),n=jc(e);Mc(e,n,t),Sl(e,n)}},Ot=function(e,t){return t()},Je=function(e,t,n){switch(t){case`input`:if(we(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=ki(r);if(!a)throw Error(i(90));F(r),we(r,a)}}}break;case`textarea`:Me(e,n);break;case`select`:t=n.value,t!=null&&ke(e,!!n.multiple,t,!1)}},et=zc,tt=function(e,t,n,r,i){var a=K;K|=4;try{return ma(98,e.bind(null,t,n,r,i))}finally{K=a,K===0&&(pc(),ga())}},nt=function(){!(K&49)&&(Rc(),Qc())},rt=function(e,t){var n=K;K|=2;try{return e(t)}finally{K=n,K===0&&(pc(),ga())}};function Ol(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Tl(t))throw Error(i(200));return vl(e,t,null,n)}var kl={findFiberByHostInstance:Ei,bundleType:0,version:`17.0.2`,rendererPackageName:`react-dom`},Al={bundleType:kl.bundleType,version:kl.version,rendererPackageName:kl.rendererPackageName,rendererConfig:kl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ct(e),e===null?null:e.stateNode},findFiberByHostInstance:kl.findFiberByHostInstance||Cl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var jl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!jl.isDisabled&&jl.supportsFiber)try{Gi=jl.inject(Al),Ki=jl}catch{}}e.createPortal=Ol,e.render=function(e,t,n){if(!Tl(t))throw Error(i(200));return Dl(null,e,t,!1,n)}})),Od=c(o(((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=Dd()}))(),1);function kd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var Ad={exports:{}},jd={},Md;function Nd(){if(Md)return jd;Md=1;var e=k.default;function t(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var n=typeof Object.is==`function`?Object.is:t,r=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function s(e,t){var n=t(),s=r({inst:{value:n,getSnapshot:t}}),l=s[0].inst,u=s[1];return a(function(){l.value=n,l.getSnapshot=t,c(l)&&u({inst:l})},[e,n,t]),i(function(){return c(l)&&u({inst:l}),e(function(){c(l)&&u({inst:l})})},[e]),o(n),n}function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch{return!0}}function l(e,t){return t()}var u=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?l:s;return jd.useSyncExternalStore=e.useSyncExternalStore===void 0?u:e.useSyncExternalStore,jd}Ad.exports=Nd();var Pd=Ad.exports,Fd=(...e)=>t=>{e.forEach(e=>{typeof e==`function`?e(t):e&&(e.current=t)})},Id=({contentComponent:e})=>{let t=Pd.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getServerSnapshot);return k.createElement(k.default.Fragment,null,Object.values(t))};function Ld(){let e=new Set,t={};return{subscribe(t){return e.add(t),()=>{e.delete(t)}},getSnapshot(){return t},getServerSnapshot(){return t},setRenderer(n,r){t={...t,[n]:Od.createPortal(r.reactElement,r.element,n)},e.forEach(e=>e())},removeRenderer(n){let r={...t};delete r[n],t=r,e.forEach(e=>e())}}}var Rd=class extends k.Component{constructor(e){super(e),this.editorContentRef=k.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!e.editor?.contentComponent}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){let e=this.props.editor;if(e&&!e.isDestroyed&&e.options.element){if(e.contentComponent)return;let t=this.editorContentRef.current;t.append(...e.options.element.childNodes),e.setOptions({element:t}),e.contentComponent=Ld(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=e.contentComponent.subscribe(()=>{this.setState(e=>e.hasContentComponentInitialized?e:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),e.createNodeViews(),this.initialized=!0}}componentWillUnmount(){let e=this.props.editor;if(!e||(this.initialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),e.contentComponent=null,!e.options.element.firstChild))return;let t=document.createElement(`div`);t.append(...e.options.element.childNodes),e.setOptions({element:t})}render(){let{editor:e,innerRef:t,...n}=this.props;return k.createElement(k.default.Fragment,null,k.createElement(`div`,{ref:Fd(t,this.editorContentRef),...n}),e?.contentComponent&&k.createElement(Id,{contentComponent:e.contentComponent}))}},zd=(0,k.forwardRef)((e,t)=>{let n=k.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[e.editor]);return k.createElement(Rd,{key:n,innerRef:t,...e})}),Bd=k.memo(zd),Vd=kd(function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],n.get(i[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(t[i]!==n[i])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!(o===`_owner`&&t.$$typeof)&&!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}),Hd={exports:{}},Ud={},Wd;function Gd(){if(Wd)return Ud;Wd=1;var e=k.default,t=Pd;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.useSyncExternalStore,a=e.useRef,o=e.useEffect,s=e.useMemo,c=e.useDebugValue;return Ud.useSyncExternalStoreWithSelector=function(e,t,n,l,u){var d=a(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s(function(){function e(e){if(!i){if(i=!0,a=e,e=l(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return o=t}return o=e}if(t=o,r(a,e))return t;var n=l(e);return u!==void 0&&u(t,n)?t:(a=e,o=n)}var i=!1,a,o,s=n===void 0?null:n;return[function(){return e(t())},s===null?void 0:function(){return e(s())}]},[t,n,l,u]);var p=i(e,d[0],d[1]);return o(function(){f.hasValue=!0,f.value=p},[p]),c(p),p},Ud}Hd.exports=Gd();var Kd=Hd.exports,qd=typeof window<`u`?k.useLayoutEffect:k.useEffect,Jd=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},t=this.editor;return t.on(`transaction`,e),()=>{t.off(`transaction`,e)}}}};function Yd(e){let[t]=(0,k.useState)(()=>new Jd(e.editor)),n=Kd.useSyncExternalStoreWithSelector(t.subscribe,t.getSnapshot,t.getServerSnapshot,e.selector,e.equalityFn??Vd);return qd(()=>t.watch(e.editor),[e.editor,t]),(0,k.useDebugValue)(n),n}var Xd=typeof window>`u`,Zd=Xd||!!(typeof window<`u`&&window.next),Qd=class e{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId=``,this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){return this.options.current.immediatelyRender===void 0?Xd||Zd?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){return new xd({...this.options.current,onBeforeCreate:(...e)=>{var t;return(t=this.options.current).onBeforeCreate?.call(t,...e)},onBlur:(...e)=>{var t;return(t=this.options.current).onBlur?.call(t,...e)},onCreate:(...e)=>{var t;return(t=this.options.current).onCreate?.call(t,...e)},onDestroy:(...e)=>{var t;return(t=this.options.current).onDestroy?.call(t,...e)},onFocus:(...e)=>{var t;return(t=this.options.current).onFocus?.call(t,...e)},onSelectionUpdate:(...e)=>{var t;return(t=this.options.current).onSelectionUpdate?.call(t,...e)},onTransaction:(...e)=>{var t;return(t=this.options.current).onTransaction?.call(t,...e)},onUpdate:(...e)=>{var t;return(t=this.options.current).onUpdate?.call(t,...e)},onContentError:(...e)=>{var t;return(t=this.options.current).onContentError?.call(t,...e)},onDrop:(...e)=>{var t;return(t=this.options.current).onDrop?.call(t,...e)},onPaste:(...e)=>{var t;return(t=this.options.current).onPaste?.call(t,...e)}})}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(n=>[`onCreate`,`onBeforeCreate`,`onDestroy`,`onUpdate`,`onTransaction`,`onFocus`,`onBlur`,`onSelectionUpdate`,`onContentError`,`onDrop`,`onPaste`].includes(n)?!0:n===`extensions`&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length?e.extensions.every((e,n)=>e===t.extensions?.[n]):!1:e[n]===t[n])}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&t.length===0?e.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,n)=>t===e[n]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){t&&t.setOptions(this.options.current);return}t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function $d(e={},t=[]){let n=(0,k.useRef)(e);n.current=e;let[r]=(0,k.useState)(()=>new Qd(n)),i=Pd.useSyncExternalStore(r.subscribe,r.getEditor,r.getServerSnapshot);return(0,k.useDebugValue)(i),(0,k.useEffect)(r.onRender(t)),Yd({editor:i,selector:({transactionNumber:t})=>e.shouldRerenderOnTransaction===!1?null:e.immediatelyRender&&t===0?0:t+1}),i}(0,k.createContext)({editor:null}).Consumer;var ef=(0,k.createContext)({onDragStart:void 0}),tf=()=>(0,k.useContext)(ef);k.forwardRef((e,t)=>{let{onDragStart:n}=tf(),r=e.as||`div`;return k.createElement(r,{...e,ref:t,"data-node-view-wrapper":``,onDragStart:n,style:{whiteSpace:`normal`,...e.style}})});var nf=Object.defineProperty,rf=(e,t,n)=>t in e?nf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,af=(e,t,n)=>(rf(e,typeof t==`symbol`?t:t+``,n),n),of=new class{constructor(){af(this,`current`,this.detect()),af(this,`handoffState`,`pending`),af(this,`currentId`,0)}set(e){this.current!==e&&(this.handoffState=`pending`,this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current===`server`}get isClient(){return this.current===`client`}detect(){return typeof window>`u`||typeof document>`u`?`server`:`client`}handoff(){this.handoffState===`pending`&&(this.handoffState=`complete`)}get isHandoffComplete(){return this.handoffState===`complete`}},sf=(e,t)=>{of.isServer?(0,k.useEffect)(e,t):(0,k.useLayoutEffect)(e,t)};function cf(e){let t=(0,k.useRef)(e);return sf(()=>{t.current=e},[e]),t}var lf=function(e){let t=cf(e);return k.useCallback((...e)=>t.current(...e),[t])};function uf(e){typeof queueMicrotask==`function`?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function df(){let e=[],t={addEventListener(e,n,r,i){return e.addEventListener(n,r,i),t.add(()=>e.removeEventListener(n,r,i))},requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...e){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...e))},setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return uf(()=>{n.current&&e[0]()}),t.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=df();return e(t),this.add(()=>t.dispose())},add(t){return e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}},dispose(){for(let t of e.splice(0))t()}};return t}function ff(){let[e]=(0,k.useState)(df);return(0,k.useEffect)(()=>()=>e.dispose(),[e]),e}function pf(){let e=typeof document>`u`;return`useSyncExternalStore`in k?(e=>e.useSyncExternalStore)(k)(()=>()=>{},()=>!1,()=>!e):!1}function mf(){let e=pf(),[t,n]=k.useState(of.isHandoffComplete);return t&&of.isHandoffComplete===!1&&n(!1),k.useEffect(()=>{t!==!0&&n(!0)},[t]),k.useEffect(()=>of.handoff(),[]),e?!1:t}function hf(e,t,...n){if(e in t){let r=t[e];return typeof r==`function`?r(...n):r}let r=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(`, `)}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,hf),r}var gf=Symbol();function _f(...e){let t=(0,k.useRef)(e);(0,k.useEffect)(()=>{t.current=e},[e]);let n=lf(e=>{for(let n of t.current)n!=null&&(typeof n==`function`?n(e):n.current=e)});return e.every(e=>e==null||e?.[gf])?void 0:n}function vf(...e){return Array.from(new Set(e.flatMap(e=>typeof e==`string`?e.split(` `):[]))).filter(Boolean).join(` `)}var yf=(e=>(e[e.None=0]=`None`,e[e.RenderStrategy=1]=`RenderStrategy`,e[e.Static=2]=`Static`,e))(yf||{}),bf=(e=>(e[e.Unmount=0]=`Unmount`,e[e.Hidden=1]=`Hidden`,e))(bf||{});function xf({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o,mergeRefs:s}){s??=Cf;let c=wf(t,e);if(a)return Sf(c,n,r,o,s);let l=i??0;if(l&2){let{static:e=!1,...t}=c;if(e)return Sf(t,n,r,o,s)}if(l&1){let{unmount:e=!0,...t}=c;return hf(+!e,{0(){return null},1(){return Sf({...t,hidden:!0,style:{display:`none`}},n,r,o,s)}})}return Sf(c,n,r,o,s)}function Sf(e,t={},n,r,i){let{as:a=n,children:o,refName:s=`ref`,...c}=Df(e,[`unmount`,`static`]),l=e.ref===void 0?{}:{[s]:e.ref},u=typeof o==`function`?o(t):o;`className`in c&&c.className&&typeof c.className==`function`&&(c.className=c.className(t));let d={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))typeof i==`boolean`&&(e=!0),i===!0&&n.push(r);e&&(d[`data-headlessui-state`]=n.join(` `))}if(a===k.Fragment&&Object.keys(Ef(c)).length>0){if(!(0,k.isValidElement)(u)||Array.isArray(u)&&u.length>1)throw Error([`Passing props on "Fragment"!`,``,`The current component <${r} /> is rendering a "Fragment".`,`However we need to passthrough the following props:`,Object.keys(c).map(e=>` - ${e}`).join(`
99
99
  `),``,`You can apply a few solutions:`,['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',`Render a single element as the child so that we can forward the props onto that element.`].map(e=>` - ${e}`).join(`
100
100
  `)].join(`
101
- `));let e=u.props,t=typeof e?.className==`function`?(...t)=>bf(e?.className(...t),c.className):bf(e?.className,c.className),n=t?{className:t}:{};return(0,O.cloneElement)(u,Object.assign({},Ef(u.props,Of(kf(c,[`ref`]))),d,l,{ref:i(u.ref,l.ref)},n))}return(0,O.createElement)(a,Object.assign({},kf(c,[`ref`]),a!==O.Fragment&&l,a!==O.Fragment&&d),u)}function Tf(...e){return e.every(e=>e==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n==`function`?n(t):n.current=t)}}function Ef(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith(`on`)&&typeof r[e]==`function`?(n[e]??(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t[`aria-disabled`])return Object.assign(t,Object.fromEntries(Object.keys(n).map(e=>[e,void 0])));for(let e in n)Object.assign(t,{[e](t,...r){let i=n[e];for(let e of i){if((t instanceof Event||t?.nativeEvent instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function Df(e){return Object.assign((0,O.forwardRef)(e),{displayName:e.displayName??e.name})}function Of(e){let t=Object.assign({},e);for(let e in t)t[e]===void 0&&delete t[e];return t}function kf(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}var Af=(0,O.createContext)(null);Af.displayName=`OpenClosedContext`;var jf=(e=>(e[e.Open=1]=`Open`,e[e.Closed=2]=`Closed`,e[e.Closing=4]=`Closing`,e[e.Opening=8]=`Opening`,e))(jf||{});function Mf(){return(0,O.useContext)(Af)}function Nf({value:e,children:t}){return O.createElement(Af.Provider,{value:e},t)}function Pf(){let e=(0,O.useRef)(!1);return lf(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Ff(e=0){let[t,n]=(0,O.useState)(e),r=Pf();return{flags:t,addFlag:(0,O.useCallback)(e=>{r.current&&n(t=>t|e)},[t,r]),hasFlag:(0,O.useCallback)(e=>!!(t&e),[t]),removeFlag:(0,O.useCallback)(e=>{r.current&&n(t=>t&~e)},[n,r]),toggleFlag:(0,O.useCallback)(e=>{r.current&&n(t=>t^e)},[n])}}function If(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Lf(e,...t){e&&t.length>0&&e.classList.add(...t)}function Rf(e,...t){e&&t.length>0&&e.classList.remove(...t)}function zf(e,t){let n=pf();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[a,o]=[r,i].map(e=>{let[t=0]=e.split(`,`).filter(Boolean).map(e=>e.includes(`ms`)?parseFloat(e):parseFloat(e)*1e3).sort((e,t)=>t-e);return t}),s=a+o;if(s!==0){n.group(n=>{n.setTimeout(()=>{t(),n.dispose()},s),n.addEventListener(e,`transitionrun`,e=>{e.target===e.currentTarget&&n.dispose()})});let r=n.addEventListener(e,`transitionend`,e=>{e.target===e.currentTarget&&(t(),r())})}else t();return n.add(()=>t()),n.dispose}function Bf(e,t,n,r){let i=n?`enter`:`leave`,a=pf(),o=r===void 0?()=>{}:If(r);i===`enter`&&(e.removeAttribute(`hidden`),e.style.display=``);let s=_f(i,{enter:()=>t.enter,leave:()=>t.leave}),c=_f(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),l=_f(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Rf(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Lf(e,...t.base,...s,...l),a.nextFrame(()=>{Rf(e,...t.base,...s,...l),Lf(e,...t.base,...s,...c),zf(e,()=>(Rf(e,...t.base,...s),Lf(e,...t.base,...t.entered),o()))}),a.dispose}function Vf({immediate:e,container:t,direction:n,classes:r,onStart:i,onStop:a}){let o=Pf(),s=mf(),c=uf(n);lf(()=>{e&&(c.current=`enter`)},[e]),lf(()=>{let e=pf();s.add(e.dispose);let n=t.current;if(n&&c.current!==`idle`&&o.current)return e.dispose(),i.current(c.current),e.add(Bf(n,r.current,c.current===`enter`,()=>{e.dispose(),a.current(c.current)})),e.dispose},[n])}function Hf(e=``){return e.split(/\s+/).filter(e=>e.length>1)}var Uf=(0,O.createContext)(null);Uf.displayName=`TransitionContext`;var Wf=(e=>(e.Visible=`visible`,e.Hidden=`hidden`,e))(Wf||{});function Gf(){let e=(0,O.useContext)(Uf);if(e===null)throw Error(`A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.`);return e}function Kf(){let e=(0,O.useContext)(qf);if(e===null)throw Error(`A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.`);return e}var qf=(0,O.createContext)(null);qf.displayName=`NestingContext`;function Jf(e){return`children`in e?Jf(e.children):e.current.filter(({el:e})=>e.current!==null).filter(({state:e})=>e===`visible`).length>0}function Yf(e,t){let n=uf(e),r=(0,O.useRef)([]),i=Pf(),a=mf(),o=df((e,t=Sf.Hidden)=>{let o=r.current.findIndex(({el:t})=>t===e);o!==-1&&(_f(t,{[Sf.Unmount](){r.current.splice(o,1)},[Sf.Hidden](){r.current[o].state=`hidden`}}),a.microTask(()=>{var e;!Jf(r)&&i.current&&((e=n.current)==null||e.call(n))}))}),s=df(e=>{let t=r.current.find(({el:t})=>t===e);return t?t.state!==`visible`&&(t.state=`visible`):r.current.push({el:e,state:`visible`}),()=>o(e,Sf.Unmount)}),c=(0,O.useRef)([]),l=(0,O.useRef)(Promise.resolve()),u=(0,O.useRef)({enter:[],leave:[],idle:[]}),d=df((e,n,r)=>{c.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(([t])=>t!==e)),t?.chains.current[n].push([e,new Promise(e=>{c.current.push(e)})]),t?.chains.current[n].push([e,new Promise(e=>{Promise.all(u.current[n].map(([e,t])=>t)).then(()=>e())})]),n===`enter`?l.current=l.current.then(()=>t?.wait.current).then(()=>r(n)):r(n)}),f=df((e,t,n)=>{Promise.all(u.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;(e=c.current.shift())==null||e()}).then(()=>n(t))});return(0,O.useMemo)(()=>({children:r,register:s,unregister:o,onStart:d,onStop:f,wait:l,chains:u}),[s,o,r,d,f,u,l])}function Xf(){}var Zf=[`beforeEnter`,`afterEnter`,`beforeLeave`,`afterLeave`];function Qf(e){let t={};for(let n of Zf)t[n]=e[n]??Xf;return t}function $f(e){let t=(0,O.useRef)(Qf(e));return(0,O.useEffect)(()=>{t.current=Qf(e)},[e]),t}var ep=`div`,tp=xf.RenderStrategy;function np(e,t){var n;let{beforeEnter:r,afterEnter:i,beforeLeave:a,afterLeave:o,enter:s,enterFrom:c,enterTo:l,entered:u,leave:d,leaveFrom:f,leaveTo:p,...m}=e,h=(0,O.useRef)(null),g=yf(h,t),_=(n=m.unmount)==null||n?Sf.Unmount:Sf.Hidden,{show:v,appear:y,initial:b}=Gf(),[x,S]=(0,O.useState)(v?`visible`:`hidden`),C=Kf(),{register:w,unregister:T}=C;(0,O.useEffect)(()=>w(h),[w,h]),(0,O.useEffect)(()=>{if(_===Sf.Hidden&&h.current){if(v&&x!==`visible`){S(`visible`);return}return _f(x,{hidden:()=>T(h),visible:()=>w(h)})}},[x,h,w,T,v,_]);let ee=uf({base:Hf(m.className),enter:Hf(s),enterFrom:Hf(c),enterTo:Hf(l),entered:Hf(u),leave:Hf(d),leaveFrom:Hf(f),leaveTo:Hf(p)}),te=$f({beforeEnter:r,afterEnter:i,beforeLeave:a,afterLeave:o}),E=gf();(0,O.useEffect)(()=>{if(E&&x===`visible`&&h.current===null)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,x,E]);let D=b&&!y,ne=y&&v&&b,re=!E||D?`idle`:v?`enter`:`leave`,ie=Ff(0),ae=df(e=>_f(e,{enter:()=>{ie.addFlag(jf.Opening),te.current.beforeEnter()},leave:()=>{ie.addFlag(jf.Closing),te.current.beforeLeave()},idle:()=>{}})),k=df(e=>_f(e,{enter:()=>{ie.removeFlag(jf.Opening),te.current.afterEnter()},leave:()=>{ie.removeFlag(jf.Closing),te.current.afterLeave()},idle:()=>{}})),oe=Yf(()=>{S(`hidden`),T(h)},C),se=(0,O.useRef)(!1);Vf({immediate:ne,container:h,classes:ee,direction:re,onStart:uf(e=>{se.current=!0,oe.onStart(h,e,ae)}),onStop:uf(e=>{se.current=!1,oe.onStop(h,e,k),e===`leave`&&!Jf(oe)&&(S(`hidden`),T(h))})});let ce=m,le={ref:g};return ne?ce={...ce,className:bf(m.className,...ee.current.enter,...ee.current.enterFrom)}:se.current&&(ce.className=bf(m.className,h.current?.className),ce.className===``&&delete ce.className),O.createElement(qf.Provider,{value:oe},O.createElement(Nf,{value:_f(x,{visible:jf.Open,hidden:jf.Closed})|ie.flags},Cf({ourProps:le,theirProps:ce,defaultTag:ep,features:tp,visible:x===`visible`,name:`Transition.Child`})))}function rp(e,t){let{show:n,appear:r=!1,unmount:i=!0,...a}=e,o=(0,O.useRef)(null),s=yf(o,t);gf();let c=Mf();if(n===void 0&&c!==null&&(n=(c&jf.Open)===jf.Open),![!0,!1].includes(n))throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[l,u]=(0,O.useState)(n?`visible`:`hidden`),d=Yf(()=>{u(`hidden`)}),[f,p]=(0,O.useState)(!0),m=(0,O.useRef)([n]);lf(()=>{f!==!1&&m.current[m.current.length-1]!==n&&(m.current.push(n),p(!1))},[m,n]);let h=(0,O.useMemo)(()=>({show:n,appear:r,initial:f}),[n,r,f]);(0,O.useEffect)(()=>{if(n)u(`visible`);else if(!Jf(d))u(`hidden`);else{let e=o.current;if(!e)return;let t=e.getBoundingClientRect();t.x===0&&t.y===0&&t.width===0&&t.height===0&&u(`hidden`)}},[n,d]);let g={unmount:i},_=df(()=>{var t;f&&p(!1),(t=e.beforeEnter)==null||t.call(e)}),v=df(()=>{var t;f&&p(!1),(t=e.beforeLeave)==null||t.call(e)});return O.createElement(qf.Provider,{value:d},O.createElement(Uf.Provider,{value:h},Cf({ourProps:{...g,as:O.Fragment,children:O.createElement(op,{ref:s,...g,...a,beforeEnter:_,beforeLeave:v})},theirProps:{},defaultTag:O.Fragment,features:tp,visible:l===`visible`,name:`Transition`})))}function ip(e,t){let n=(0,O.useContext)(Uf)!==null,r=Mf()!==null;return O.createElement(O.default.Fragment,null,!n&&r?O.createElement(ap,{ref:t,...e}):O.createElement(op,{ref:t,...e}))}var ap=Df(rp),op=Df(np),sp=Df(ip),cp=Object.assign(ap,{Child:sp,Root:ap}),lp=/^\s*>\s$/,up=Td.create({name:`blockquote`,addOptions(){return{HTMLAttributes:{}}},content:`block+`,group:`block`,defining:!0,parseHTML(){return[{tag:`blockquote`}]},renderHTML({HTMLAttributes:e}){return[`blockquote`,qc(this.options.HTMLAttributes,e),0]},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()}},addInputRules(){return[wd({find:lp,type:this.type})]}}),dp=Td.create({name:`doc`,topNode:!0,content:`block+`}),fp=Td.create({name:`hardBreak`,addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:`inline`,selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:`br`}]},renderHTML({HTMLAttributes:e}){return[`br`,qc(this.options.HTMLAttributes,e)]},renderText(){return`
102
- `},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}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),pp=`aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2`,mp=`ελ1υ2бг1ел3дети4ею2католик6ом3мкд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`,hp=`numeric`,gp=`ascii`,_p=`alpha`,vp=`asciinumeric`,yp=`alphanumeric`,bp=`domain`,xp=`emoji`,Sp=`scheme`,Cp=`slashscheme`,wp=`whitespace`;function Tp(e,t){return e in t||(t[e]=[]),t[e]}function Ep(e,t,n){t[hp]&&(t[vp]=!0,t[yp]=!0),t[gp]&&(t[vp]=!0,t[_p]=!0),t[vp]&&(t[yp]=!0),t[_p]&&(t[yp]=!0),t[yp]&&(t[bp]=!0),t[xp]&&(t[bp]=!0);for(let r in t){let t=Tp(r,n);t.indexOf(e)<0&&t.push(e)}}function Dp(e,t){let n={};for(let r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function Op(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}Op.groups={},Op.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||=Op.groups;let i;return t&&t.j?i=t:(i=new Op(t),n&&r&&Ep(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||=Op.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 Op,Object.assign(o.j,s.j),o.jr.push.apply(o.jr,s.jr),o.jd=s.jd,o.t=s.t):o=new Op,a&&(r&&(o.t&&typeof o.t==`string`?Ep(a,Object.assign(Dp(o.t,r),n),r):n&&Ep(a,n,r)),o.t=a),i.j[e]=o,o}};var Y=(e,t,n,r,i)=>e.ta(t,n,r,i),X=(e,t,n,r,i)=>e.tr(t,n,r,i),kp=(e,t,n,r,i)=>e.ts(t,n,r,i),Z=(e,t,n,r,i)=>e.tt(t,n,r,i),Ap=`WORD`,jp=`UWORD`,Mp=`ASCIINUMERICAL`,Np=`ALPHANUMERICAL`,Pp=`LOCALHOST`,Fp=`TLD`,Ip=`UTLD`,Lp=`SCHEME`,Rp=`SLASH_SCHEME`,zp=`NUM`,Bp=`WS`,Vp=`NL`,Hp=`OPENBRACE`,Up=`CLOSEBRACE`,Wp=`OPENBRACKET`,Gp=`CLOSEBRACKET`,Kp=`OPENPAREN`,qp=`CLOSEPAREN`,Jp=`OPENANGLEBRACKET`,Yp=`CLOSEANGLEBRACKET`,Xp=`FULLWIDTHLEFTPAREN`,Zp=`FULLWIDTHRIGHTPAREN`,Qp=`LEFTCORNERBRACKET`,$p=`RIGHTCORNERBRACKET`,em=`LEFTWHITECORNERBRACKET`,tm=`RIGHTWHITECORNERBRACKET`,nm=`FULLWIDTHLESSTHAN`,rm=`FULLWIDTHGREATERTHAN`,im=`AMPERSAND`,am=`APOSTROPHE`,om=`ASTERISK`,sm=`AT`,cm=`BACKSLASH`,lm=`BACKTICK`,um=`CARET`,dm=`COLON`,fm=`COMMA`,pm=`DOLLAR`,mm=`DOT`,hm=`EQUALS`,gm=`EXCLAMATION`,_m=`HYPHEN`,vm=`PERCENT`,ym=`PIPE`,bm=`PLUS`,xm=`POUND`,Sm=`QUERY`,Cm=`QUOTE`,wm=`FULLWIDTHMIDDLEDOT`,Tm=`SEMI`,Em=`SLASH`,Dm=`TILDE`,Om=`UNDERSCORE`,km=`EMOJI`,Am=`SYM`,jm=Object.freeze({__proto__:null,ALPHANUMERICAL:Np,AMPERSAND:im,APOSTROPHE:am,ASCIINUMERICAL:Mp,ASTERISK:om,AT:sm,BACKSLASH:cm,BACKTICK:lm,CARET:um,CLOSEANGLEBRACKET:Yp,CLOSEBRACE:Up,CLOSEBRACKET:Gp,CLOSEPAREN:qp,COLON:dm,COMMA:fm,DOLLAR:pm,DOT:mm,EMOJI:km,EQUALS:hm,EXCLAMATION:gm,FULLWIDTHGREATERTHAN:rm,FULLWIDTHLEFTPAREN:Xp,FULLWIDTHLESSTHAN:nm,FULLWIDTHMIDDLEDOT:wm,FULLWIDTHRIGHTPAREN:Zp,HYPHEN:_m,LEFTCORNERBRACKET:Qp,LEFTWHITECORNERBRACKET:em,LOCALHOST:Pp,NL:Vp,NUM:zp,OPENANGLEBRACKET:Jp,OPENBRACE:Hp,OPENBRACKET:Wp,OPENPAREN:Kp,PERCENT:vm,PIPE:ym,PLUS:bm,POUND:xm,QUERY:Sm,QUOTE:Cm,RIGHTCORNERBRACKET:$p,RIGHTWHITECORNERBRACKET:tm,SCHEME:Lp,SEMI:Tm,SLASH:Em,SLASH_SCHEME:Rp,SYM:Am,TILDE:Dm,TLD:Fp,UNDERSCORE:Om,UTLD:Ip,UWORD:jp,WORD:Ap,WS:Bp}),Mm=/[a-z]/,Nm=/\p{L}/u,Pm=/\p{Emoji}/u,Fm=/\d/,Im=/\s/,Lm=`\r`,Rm=`
103
- `,zm=`️`,Bm=`‍`,Vm=``,Hm=null,Um=null;function Wm(e=[]){let t={};Op.groups=t;let n=new Op;Hm??=Jm(pp),Um??=Jm(mp),Z(n,`'`,am),Z(n,`{`,Hp),Z(n,`}`,Up),Z(n,`[`,Wp),Z(n,`]`,Gp),Z(n,`(`,Kp),Z(n,`)`,qp),Z(n,`<`,Jp),Z(n,`>`,Yp),Z(n,`(`,Xp),Z(n,`)`,Zp),Z(n,`「`,Qp),Z(n,`」`,$p),Z(n,`『`,em),Z(n,`』`,tm),Z(n,`<`,nm),Z(n,`>`,rm),Z(n,`&`,im),Z(n,`*`,om),Z(n,`@`,sm),Z(n,"`",lm),Z(n,`^`,um),Z(n,`:`,dm),Z(n,`,`,fm),Z(n,`$`,pm),Z(n,`.`,mm),Z(n,`=`,hm),Z(n,`!`,gm),Z(n,`-`,_m),Z(n,`%`,vm),Z(n,`|`,ym),Z(n,`+`,bm),Z(n,`#`,xm),Z(n,`?`,Sm),Z(n,`"`,Cm),Z(n,`/`,Em),Z(n,`;`,Tm),Z(n,`~`,Dm),Z(n,`_`,Om),Z(n,`\\`,cm),Z(n,`・`,wm);let r=X(n,Fm,zp,{[hp]:!0});X(r,Fm,r);let i=X(r,Mm,Mp,{[vp]:!0}),a=X(r,Nm,Np,{[yp]:!0}),o=X(n,Mm,Ap,{[gp]:!0});X(o,Fm,i),X(o,Mm,o),X(i,Fm,i),X(i,Mm,i);let s=X(n,Nm,jp,{[_p]:!0});X(s,Mm),X(s,Fm,a),X(s,Nm,s),X(a,Fm,a),X(a,Mm),X(a,Nm,a);let c=Z(n,Rm,Vp,{[wp]:!0}),l=Z(n,Lm,Bp,{[wp]:!0}),u=X(n,Im,Bp,{[wp]:!0});Z(n,Vm,u),Z(l,Rm,c),Z(l,Vm,u),X(l,Im,u),Z(u,Lm),Z(u,Rm),X(u,Im,u),Z(u,Vm,u);let d=X(n,Pm,km,{[xp]:!0});Z(d,`#`),X(d,Pm,d),Z(d,zm,d);let f=Z(d,Bm);Z(f,`#`),X(f,Pm,d);let p=[[Mm,o],[Fm,i]],m=[[Mm,null],[Nm,s],[Fm,a]];for(let e=0;e<Hm.length;e++)qm(n,Hm[e],Fp,Ap,p);for(let e=0;e<Um.length;e++)qm(n,Um[e],Ip,jp,m);Ep(Fp,{tld:!0,ascii:!0},t),Ep(Ip,{utld:!0,alpha:!0},t),qm(n,`file`,Lp,Ap,p),qm(n,`mailto`,Lp,Ap,p),qm(n,`http`,Rp,Ap,p),qm(n,`https`,Rp,Ap,p),qm(n,`ftp`,Rp,Ap,p),qm(n,`ftps`,Rp,Ap,p),Ep(Lp,{scheme:!0,ascii:!0},t),Ep(Rp,{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]?{[Sp]:!0}:{[Cp]:!0};r.indexOf(`-`)>=0?i[bp]=!0:Mm.test(r)?Fm.test(r)?i[vp]=!0:i[gp]=!0:i[hp]=!0,kp(n,r,r,i)}return kp(n,`localhost`,Pp,{ascii:!0}),n.jd=new Op(Am),{start:n,tokens:Object.assign({groups:t},jm)}}function Gm(e,t){let n=Km(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 Km(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 qm(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 Op(r),a.jr=i.slice(),e.j[o]=a),e=a}return a=new Op(n),a.jr=i.slice(),e.j[t[o-1]]=a,a}function Jm(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 Ym={defaultProtocol:`http`,events:null,format:Zm,formatHref:Zm,nl2br:!1,tagName:`a`,target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Xm(e,t=null){let n=Object.assign({},Ym);e&&(n=Object.assign(n,e instanceof Xm?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}Xm.prototype={o:Ym,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]:Ym[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 Zm(e){return e}function Qm(e,t){this.t=`token`,this.v=e,this.tk=t}Qm.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=Ym.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 $m(e,t){class n extends Qm{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 eh=$m(`email`,{isLink:!0,toHref(){return`mailto:`+this.toString()}}),th=$m(`text`),nh=$m(`nl`),rh=$m(`url`,{isLink:!0,toHref(e=Ym.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==Pp&&e[1].t===dm}}),ih=e=>new Op(e);function ah({groups:e}){let t=e.domain.concat([im,om,sm,cm,lm,um,pm,hm,_m,zp,vm,ym,bm,xm,Em,Am,Dm,Om]),n=[am,dm,fm,mm,gm,vm,Sm,Cm,Tm,Jp,Yp,Hp,Up,Gp,Wp,Kp,qp,Xp,Zp,Qp,$p,em,tm,nm,rm],r=[im,am,om,cm,lm,um,pm,hm,_m,Hp,Up,vm,ym,bm,xm,Sm,Em,Am,Dm,Om],i=ih(),a=Z(i,Dm);Y(a,r,a),Y(a,e.domain,a);let o=ih(),s=ih(),c=ih();Y(i,e.domain,o),Y(i,e.scheme,s),Y(i,e.slashscheme,c),Y(o,r,a),Y(o,e.domain,o);let l=Z(o,sm);Z(a,sm,l),Z(s,sm,l),Z(c,sm,l);let u=Z(a,mm);Y(u,r,a),Y(u,e.domain,a);let d=ih();Y(l,e.domain,d),Y(d,e.domain,d);let f=Z(d,mm);Y(f,e.domain,d);let p=ih(eh);Y(f,e.tld,p),Y(f,e.utld,p),Z(l,Pp,p);let m=Z(d,_m);Z(m,_m,m),Y(m,e.domain,d),Y(p,e.domain,d),Z(p,mm,f),Z(p,_m,m);let h=Z(o,_m),g=Z(o,mm);Z(h,_m,h),Y(h,e.domain,o),Y(g,r,a),Y(g,e.domain,o);let _=ih(rh);Y(g,e.tld,_),Y(g,e.utld,_),Y(_,e.domain,o),Y(_,r,a),Z(_,mm,g),Z(_,_m,h),Z(_,sm,l);let v=Z(_,dm),y=ih(rh);Y(v,e.numeric,y);let b=ih(rh),x=ih();Y(b,t,b),Y(b,n,x),Y(x,t,b),Y(x,n,x),Z(_,Em,b),Z(y,Em,b);let S=Z(s,dm),C=Z(Z(Z(c,dm),Em),Em);Y(s,e.domain,o),Z(s,mm,g),Z(s,_m,h),Y(c,e.domain,o),Z(c,mm,g),Z(c,_m,h),Y(S,e.domain,b),Z(S,Em,b),Z(S,Sm,b),Y(C,e.domain,b),Y(C,t,b),Z(C,Em,b);let w=[[Hp,Up],[Wp,Gp],[Kp,qp],[Jp,Yp],[Xp,Zp],[Qp,$p],[em,tm],[nm,rm]];for(let e=0;e<w.length;e++){let[r,i]=w[e],a=Z(b,r);Z(x,r,a);let o=ih(rh);Y(a,t,o);let s=ih();Y(a,n,s),Z(a,i,b),Y(o,t,o),Y(o,n,s),Y(s,t,o),Y(s,n,s),Z(o,i,b),Z(s,i,b)}return Z(i,Pp,_),Z(i,Vp,nh),{start:i,tokens:jm}}function oh(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(sh(th,t,o)),o=[]),i-=f,u-=f;let e=d.t,r=n.slice(i-u,i);a.push(sh(e,t,r))}}return o.length>0&&a.push(sh(th,t,o)),a}function sh(e,t,n){let r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}var ch=typeof console<`u`&&console&&console.warn||(()=>{}),lh=`until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`,Q={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function uh(){return Op.groups={},Q.scanner=null,Q.parser=null,Q.tokenQueue=[],Q.pluginQueue=[],Q.customSchemes=[],Q.initialized=!1,Q}function dh(e,t=!1){if(Q.initialized&&ch(`linkifyjs: already initialized - will not register custom scheme "${e}" ${lh}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format.
101
+ `));let e=u.props,t=typeof e?.className==`function`?(...t)=>vf(e?.className(...t),c.className):vf(e?.className,c.className),n=t?{className:t}:{};return(0,k.cloneElement)(u,Object.assign({},wf(u.props,Ef(Df(c,[`ref`]))),d,l,{ref:i(u.ref,l.ref)},n))}return(0,k.createElement)(a,Object.assign({},Df(c,[`ref`]),a!==k.Fragment&&l,a!==k.Fragment&&d),u)}function Cf(...e){return e.every(e=>e==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n==`function`?n(t):n.current=t)}}function wf(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith(`on`)&&typeof r[e]==`function`?(n[e]??(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t[`aria-disabled`])return Object.assign(t,Object.fromEntries(Object.keys(n).map(e=>[e,void 0])));for(let e in n)Object.assign(t,{[e](t,...r){let i=n[e];for(let e of i){if((t instanceof Event||t?.nativeEvent instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function Tf(e){return Object.assign((0,k.forwardRef)(e),{displayName:e.displayName??e.name})}function Ef(e){let t=Object.assign({},e);for(let e in t)t[e]===void 0&&delete t[e];return t}function Df(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}var Of=(0,k.createContext)(null);Of.displayName=`OpenClosedContext`;var kf=(e=>(e[e.Open=1]=`Open`,e[e.Closed=2]=`Closed`,e[e.Closing=4]=`Closing`,e[e.Opening=8]=`Opening`,e))(kf||{});function Af(){return(0,k.useContext)(Of)}function jf({value:e,children:t}){return k.createElement(Of.Provider,{value:e},t)}function Mf(){let e=(0,k.useRef)(!1);return sf(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Nf(e=0){let[t,n]=(0,k.useState)(e),r=Mf();return{flags:t,addFlag:(0,k.useCallback)(e=>{r.current&&n(t=>t|e)},[t,r]),hasFlag:(0,k.useCallback)(e=>!!(t&e),[t]),removeFlag:(0,k.useCallback)(e=>{r.current&&n(t=>t&~e)},[n,r]),toggleFlag:(0,k.useCallback)(e=>{r.current&&n(t=>t^e)},[n])}}function Pf(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Ff(e,...t){e&&t.length>0&&e.classList.add(...t)}function If(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Lf(e,t){let n=df();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[a,o]=[r,i].map(e=>{let[t=0]=e.split(`,`).filter(Boolean).map(e=>e.includes(`ms`)?parseFloat(e):parseFloat(e)*1e3).sort((e,t)=>t-e);return t}),s=a+o;if(s!==0){n.group(n=>{n.setTimeout(()=>{t(),n.dispose()},s),n.addEventListener(e,`transitionrun`,e=>{e.target===e.currentTarget&&n.dispose()})});let r=n.addEventListener(e,`transitionend`,e=>{e.target===e.currentTarget&&(t(),r())})}else t();return n.add(()=>t()),n.dispose}function Rf(e,t,n,r){let i=n?`enter`:`leave`,a=df(),o=r===void 0?()=>{}:Pf(r);i===`enter`&&(e.removeAttribute(`hidden`),e.style.display=``);let s=hf(i,{enter:()=>t.enter,leave:()=>t.leave}),c=hf(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),l=hf(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return If(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Ff(e,...t.base,...s,...l),a.nextFrame(()=>{If(e,...t.base,...s,...l),Ff(e,...t.base,...s,...c),Lf(e,()=>(If(e,...t.base,...s),Ff(e,...t.base,...t.entered),o()))}),a.dispose}function zf({immediate:e,container:t,direction:n,classes:r,onStart:i,onStop:a}){let o=Mf(),s=ff(),c=cf(n);sf(()=>{e&&(c.current=`enter`)},[e]),sf(()=>{let e=df();s.add(e.dispose);let n=t.current;if(n&&c.current!==`idle`&&o.current)return e.dispose(),i.current(c.current),e.add(Rf(n,r.current,c.current===`enter`,()=>{e.dispose(),a.current(c.current)})),e.dispose},[n])}function Bf(e=``){return e.split(/\s+/).filter(e=>e.length>1)}var Vf=(0,k.createContext)(null);Vf.displayName=`TransitionContext`;var Hf=(e=>(e.Visible=`visible`,e.Hidden=`hidden`,e))(Hf||{});function Uf(){let e=(0,k.useContext)(Vf);if(e===null)throw Error(`A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.`);return e}function Wf(){let e=(0,k.useContext)(Gf);if(e===null)throw Error(`A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.`);return e}var Gf=(0,k.createContext)(null);Gf.displayName=`NestingContext`;function Kf(e){return`children`in e?Kf(e.children):e.current.filter(({el:e})=>e.current!==null).filter(({state:e})=>e===`visible`).length>0}function qf(e,t){let n=cf(e),r=(0,k.useRef)([]),i=Mf(),a=ff(),o=lf((e,t=bf.Hidden)=>{let o=r.current.findIndex(({el:t})=>t===e);o!==-1&&(hf(t,{[bf.Unmount](){r.current.splice(o,1)},[bf.Hidden](){r.current[o].state=`hidden`}}),a.microTask(()=>{var e;!Kf(r)&&i.current&&((e=n.current)==null||e.call(n))}))}),s=lf(e=>{let t=r.current.find(({el:t})=>t===e);return t?t.state!==`visible`&&(t.state=`visible`):r.current.push({el:e,state:`visible`}),()=>o(e,bf.Unmount)}),c=(0,k.useRef)([]),l=(0,k.useRef)(Promise.resolve()),u=(0,k.useRef)({enter:[],leave:[],idle:[]}),d=lf((e,n,r)=>{c.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(([t])=>t!==e)),t?.chains.current[n].push([e,new Promise(e=>{c.current.push(e)})]),t?.chains.current[n].push([e,new Promise(e=>{Promise.all(u.current[n].map(([e,t])=>t)).then(()=>e())})]),n===`enter`?l.current=l.current.then(()=>t?.wait.current).then(()=>r(n)):r(n)}),f=lf((e,t,n)=>{Promise.all(u.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;(e=c.current.shift())==null||e()}).then(()=>n(t))});return(0,k.useMemo)(()=>({children:r,register:s,unregister:o,onStart:d,onStop:f,wait:l,chains:u}),[s,o,r,d,f,u,l])}function Jf(){}var Yf=[`beforeEnter`,`afterEnter`,`beforeLeave`,`afterLeave`];function Xf(e){let t={};for(let n of Yf)t[n]=e[n]??Jf;return t}function Zf(e){let t=(0,k.useRef)(Xf(e));return(0,k.useEffect)(()=>{t.current=Xf(e)},[e]),t}var Qf=`div`,$f=yf.RenderStrategy;function ep(e,t){var n;let{beforeEnter:r,afterEnter:i,beforeLeave:a,afterLeave:o,enter:s,enterFrom:c,enterTo:l,entered:u,leave:d,leaveFrom:f,leaveTo:p,...m}=e,h=(0,k.useRef)(null),g=_f(h,t),_=(n=m.unmount)==null||n?bf.Unmount:bf.Hidden,{show:v,appear:y,initial:b}=Uf(),[x,S]=(0,k.useState)(v?`visible`:`hidden`),C=Wf(),{register:w,unregister:T}=C;(0,k.useEffect)(()=>w(h),[w,h]),(0,k.useEffect)(()=>{if(_===bf.Hidden&&h.current){if(v&&x!==`visible`){S(`visible`);return}return hf(x,{hidden:()=>T(h),visible:()=>w(h)})}},[x,h,w,T,v,_]);let E=cf({base:Bf(m.className),enter:Bf(s),enterFrom:Bf(c),enterTo:Bf(l),entered:Bf(u),leave:Bf(d),leaveFrom:Bf(f),leaveTo:Bf(p)}),ee=Zf({beforeEnter:r,afterEnter:i,beforeLeave:a,afterLeave:o}),D=mf();(0,k.useEffect)(()=>{if(D&&x===`visible`&&h.current===null)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,x,D]);let O=b&&!y,te=y&&v&&b,ne=!D||O?`idle`:v?`enter`:`leave`,A=Nf(0),j=lf(e=>hf(e,{enter:()=>{A.addFlag(kf.Opening),ee.current.beforeEnter()},leave:()=>{A.addFlag(kf.Closing),ee.current.beforeLeave()},idle:()=>{}})),re=lf(e=>hf(e,{enter:()=>{A.removeFlag(kf.Opening),ee.current.afterEnter()},leave:()=>{A.removeFlag(kf.Closing),ee.current.afterLeave()},idle:()=>{}})),ie=qf(()=>{S(`hidden`),T(h)},C),ae=(0,k.useRef)(!1);zf({immediate:te,container:h,classes:E,direction:ne,onStart:cf(e=>{ae.current=!0,ie.onStart(h,e,j)}),onStop:cf(e=>{ae.current=!1,ie.onStop(h,e,re),e===`leave`&&!Kf(ie)&&(S(`hidden`),T(h))})});let oe=m,se={ref:g};return te?oe={...oe,className:vf(m.className,...E.current.enter,...E.current.enterFrom)}:ae.current&&(oe.className=vf(m.className,h.current?.className),oe.className===``&&delete oe.className),k.createElement(Gf.Provider,{value:ie},k.createElement(jf,{value:hf(x,{visible:kf.Open,hidden:kf.Closed})|A.flags},xf({ourProps:se,theirProps:oe,defaultTag:Qf,features:$f,visible:x===`visible`,name:`Transition.Child`})))}function tp(e,t){let{show:n,appear:r=!1,unmount:i=!0,...a}=e,o=(0,k.useRef)(null),s=_f(o,t);mf();let c=Af();if(n===void 0&&c!==null&&(n=(c&kf.Open)===kf.Open),![!0,!1].includes(n))throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[l,u]=(0,k.useState)(n?`visible`:`hidden`),d=qf(()=>{u(`hidden`)}),[f,p]=(0,k.useState)(!0),m=(0,k.useRef)([n]);sf(()=>{f!==!1&&m.current[m.current.length-1]!==n&&(m.current.push(n),p(!1))},[m,n]);let h=(0,k.useMemo)(()=>({show:n,appear:r,initial:f}),[n,r,f]);(0,k.useEffect)(()=>{if(n)u(`visible`);else if(!Kf(d))u(`hidden`);else{let e=o.current;if(!e)return;let t=e.getBoundingClientRect();t.x===0&&t.y===0&&t.width===0&&t.height===0&&u(`hidden`)}},[n,d]);let g={unmount:i},_=lf(()=>{var t;f&&p(!1),(t=e.beforeEnter)==null||t.call(e)}),v=lf(()=>{var t;f&&p(!1),(t=e.beforeLeave)==null||t.call(e)});return k.createElement(Gf.Provider,{value:d},k.createElement(Vf.Provider,{value:h},xf({ourProps:{...g,as:k.Fragment,children:k.createElement(ip,{ref:s,...g,...a,beforeEnter:_,beforeLeave:v})},theirProps:{},defaultTag:k.Fragment,features:$f,visible:l===`visible`,name:`Transition`})))}function np(e,t){let n=(0,k.useContext)(Vf)!==null,r=Af()!==null;return k.createElement(k.default.Fragment,null,!n&&r?k.createElement(rp,{ref:t,...e}):k.createElement(ip,{ref:t,...e}))}var rp=Tf(tp),ip=Tf(ep),ap=Tf(np),op=Object.assign(rp,{Child:ap,Root:rp}),sp=/^\s*>\s$/,cp=Cd.create({name:`blockquote`,addOptions(){return{HTMLAttributes:{}}},content:`block+`,group:`block`,defining:!0,parseHTML(){return[{tag:`blockquote`}]},renderHTML({HTMLAttributes:e}){return[`blockquote`,Gc(this.options.HTMLAttributes,e),0]},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()}},addInputRules(){return[Sd({find:sp,type:this.type})]}}),lp=Cd.create({name:`doc`,topNode:!0,content:`block+`}),up=Cd.create({name:`hardBreak`,addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:`inline`,selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:`br`}]},renderHTML({HTMLAttributes:e}){return[`br`,Gc(this.options.HTMLAttributes,e)]},renderText(){return`
102
+ `},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}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),dp=`aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2`,fp=`ελ1υ2бг1ел3дети4ею2католик6ом3мкд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`,pp=`numeric`,mp=`ascii`,hp=`alpha`,gp=`asciinumeric`,_p=`alphanumeric`,vp=`domain`,yp=`emoji`,bp=`scheme`,xp=`slashscheme`,Sp=`whitespace`;function Cp(e,t){return e in t||(t[e]=[]),t[e]}function wp(e,t,n){t[pp]&&(t[gp]=!0,t[_p]=!0),t[mp]&&(t[gp]=!0,t[hp]=!0),t[gp]&&(t[_p]=!0),t[hp]&&(t[_p]=!0),t[_p]&&(t[vp]=!0),t[yp]&&(t[vp]=!0);for(let r in t){let t=Cp(r,n);t.indexOf(e)<0&&t.push(e)}}function Tp(e,t){let n={};for(let r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function Ep(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}Ep.groups={},Ep.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||=Ep.groups;let i;return t&&t.j?i=t:(i=new Ep(t),n&&r&&wp(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||=Ep.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 Ep,Object.assign(o.j,s.j),o.jr.push.apply(o.jr,s.jr),o.jd=s.jd,o.t=s.t):o=new Ep,a&&(r&&(o.t&&typeof o.t==`string`?wp(a,Object.assign(Tp(o.t,r),n),r):n&&wp(a,n,r)),o.t=a),i.j[e]=o,o}};var X=(e,t,n,r,i)=>e.ta(t,n,r,i),Dp=(e,t,n,r,i)=>e.tr(t,n,r,i),Op=(e,t,n,r,i)=>e.ts(t,n,r,i),Z=(e,t,n,r,i)=>e.tt(t,n,r,i),kp=`WORD`,Ap=`UWORD`,jp=`ASCIINUMERICAL`,Mp=`ALPHANUMERICAL`,Np=`LOCALHOST`,Pp=`TLD`,Fp=`UTLD`,Ip=`SCHEME`,Lp=`SLASH_SCHEME`,Rp=`NUM`,zp=`WS`,Bp=`NL`,Vp=`OPENBRACE`,Hp=`CLOSEBRACE`,Up=`OPENBRACKET`,Wp=`CLOSEBRACKET`,Gp=`OPENPAREN`,Kp=`CLOSEPAREN`,qp=`OPENANGLEBRACKET`,Jp=`CLOSEANGLEBRACKET`,Yp=`FULLWIDTHLEFTPAREN`,Xp=`FULLWIDTHRIGHTPAREN`,Zp=`LEFTCORNERBRACKET`,Qp=`RIGHTCORNERBRACKET`,$p=`LEFTWHITECORNERBRACKET`,em=`RIGHTWHITECORNERBRACKET`,tm=`FULLWIDTHLESSTHAN`,nm=`FULLWIDTHGREATERTHAN`,rm=`AMPERSAND`,im=`APOSTROPHE`,am=`ASTERISK`,om=`AT`,sm=`BACKSLASH`,cm=`BACKTICK`,lm=`CARET`,um=`COLON`,dm=`COMMA`,fm=`DOLLAR`,pm=`DOT`,mm=`EQUALS`,hm=`EXCLAMATION`,gm=`HYPHEN`,_m=`PERCENT`,vm=`PIPE`,ym=`PLUS`,bm=`POUND`,xm=`QUERY`,Sm=`QUOTE`,Cm=`FULLWIDTHMIDDLEDOT`,wm=`SEMI`,Tm=`SLASH`,Em=`TILDE`,Dm=`UNDERSCORE`,Om=`EMOJI`,km=`SYM`,Am=Object.freeze({__proto__:null,ALPHANUMERICAL:Mp,AMPERSAND:rm,APOSTROPHE:im,ASCIINUMERICAL:jp,ASTERISK:am,AT:om,BACKSLASH:sm,BACKTICK:cm,CARET:lm,CLOSEANGLEBRACKET:Jp,CLOSEBRACE:Hp,CLOSEBRACKET:Wp,CLOSEPAREN:Kp,COLON:um,COMMA:dm,DOLLAR:fm,DOT:pm,EMOJI:Om,EQUALS:mm,EXCLAMATION:hm,FULLWIDTHGREATERTHAN:nm,FULLWIDTHLEFTPAREN:Yp,FULLWIDTHLESSTHAN:tm,FULLWIDTHMIDDLEDOT:Cm,FULLWIDTHRIGHTPAREN:Xp,HYPHEN:gm,LEFTCORNERBRACKET:Zp,LEFTWHITECORNERBRACKET:$p,LOCALHOST:Np,NL:Bp,NUM:Rp,OPENANGLEBRACKET:qp,OPENBRACE:Vp,OPENBRACKET:Up,OPENPAREN:Gp,PERCENT:_m,PIPE:vm,PLUS:ym,POUND:bm,QUERY:xm,QUOTE:Sm,RIGHTCORNERBRACKET:Qp,RIGHTWHITECORNERBRACKET:em,SCHEME:Ip,SEMI:wm,SLASH:Tm,SLASH_SCHEME:Lp,SYM:km,TILDE:Em,TLD:Pp,UNDERSCORE:Dm,UTLD:Fp,UWORD:Ap,WORD:kp,WS:zp}),jm=/[a-z]/,Mm=/\p{L}/u,Nm=/\p{Emoji}/u,Pm=/\d/,Fm=/\s/,Im=`\r`,Lm=`
103
+ `,Rm=`️`,zm=`‍`,Bm=``,Vm=null,Hm=null;function Um(e=[]){let t={};Ep.groups=t;let n=new Ep;Vm??=qm(dp),Hm??=qm(fp),Z(n,`'`,im),Z(n,`{`,Vp),Z(n,`}`,Hp),Z(n,`[`,Up),Z(n,`]`,Wp),Z(n,`(`,Gp),Z(n,`)`,Kp),Z(n,`<`,qp),Z(n,`>`,Jp),Z(n,`(`,Yp),Z(n,`)`,Xp),Z(n,`「`,Zp),Z(n,`」`,Qp),Z(n,`『`,$p),Z(n,`』`,em),Z(n,`<`,tm),Z(n,`>`,nm),Z(n,`&`,rm),Z(n,`*`,am),Z(n,`@`,om),Z(n,"`",cm),Z(n,`^`,lm),Z(n,`:`,um),Z(n,`,`,dm),Z(n,`$`,fm),Z(n,`.`,pm),Z(n,`=`,mm),Z(n,`!`,hm),Z(n,`-`,gm),Z(n,`%`,_m),Z(n,`|`,vm),Z(n,`+`,ym),Z(n,`#`,bm),Z(n,`?`,xm),Z(n,`"`,Sm),Z(n,`/`,Tm),Z(n,`;`,wm),Z(n,`~`,Em),Z(n,`_`,Dm),Z(n,`\\`,sm),Z(n,`・`,Cm);let r=Dp(n,Pm,Rp,{[pp]:!0});Dp(r,Pm,r);let i=Dp(r,jm,jp,{[gp]:!0}),a=Dp(r,Mm,Mp,{[_p]:!0}),o=Dp(n,jm,kp,{[mp]:!0});Dp(o,Pm,i),Dp(o,jm,o),Dp(i,Pm,i),Dp(i,jm,i);let s=Dp(n,Mm,Ap,{[hp]:!0});Dp(s,jm),Dp(s,Pm,a),Dp(s,Mm,s),Dp(a,Pm,a),Dp(a,jm),Dp(a,Mm,a);let c=Z(n,Lm,Bp,{[Sp]:!0}),l=Z(n,Im,zp,{[Sp]:!0}),u=Dp(n,Fm,zp,{[Sp]:!0});Z(n,Bm,u),Z(l,Lm,c),Z(l,Bm,u),Dp(l,Fm,u),Z(u,Im),Z(u,Lm),Dp(u,Fm,u),Z(u,Bm,u);let d=Dp(n,Nm,Om,{[yp]:!0});Z(d,`#`),Dp(d,Nm,d),Z(d,Rm,d);let f=Z(d,zm);Z(f,`#`),Dp(f,Nm,d);let p=[[jm,o],[Pm,i]],m=[[jm,null],[Mm,s],[Pm,a]];for(let e=0;e<Vm.length;e++)Km(n,Vm[e],Pp,kp,p);for(let e=0;e<Hm.length;e++)Km(n,Hm[e],Fp,Ap,m);wp(Pp,{tld:!0,ascii:!0},t),wp(Fp,{utld:!0,alpha:!0},t),Km(n,`file`,Ip,kp,p),Km(n,`mailto`,Ip,kp,p),Km(n,`http`,Lp,kp,p),Km(n,`https`,Lp,kp,p),Km(n,`ftp`,Lp,kp,p),Km(n,`ftps`,Lp,kp,p),wp(Ip,{scheme:!0,ascii:!0},t),wp(Lp,{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]?{[bp]:!0}:{[xp]:!0};r.indexOf(`-`)>=0?i[vp]=!0:jm.test(r)?Pm.test(r)?i[gp]=!0:i[mp]=!0:i[pp]=!0,Op(n,r,r,i)}return Op(n,`localhost`,Np,{ascii:!0}),n.jd=new Ep(km),{start:n,tokens:Object.assign({groups:t},Am)}}function Wm(e,t){let n=Gm(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 Gm(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 Km(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 Ep(r),a.jr=i.slice(),e.j[o]=a),e=a}return a=new Ep(n),a.jr=i.slice(),e.j[t[o-1]]=a,a}function qm(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 Jm={defaultProtocol:`http`,events:null,format:Xm,formatHref:Xm,nl2br:!1,tagName:`a`,target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Ym(e,t=null){let n=Object.assign({},Jm);e&&(n=Object.assign(n,e instanceof Ym?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}Ym.prototype={o:Jm,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]:Jm[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 Xm(e){return e}function Zm(e,t){this.t=`token`,this.v=e,this.tk=t}Zm.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=Jm.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 Qm(e,t){class n extends Zm{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 $m=Qm(`email`,{isLink:!0,toHref(){return`mailto:`+this.toString()}}),eh=Qm(`text`),th=Qm(`nl`),nh=Qm(`url`,{isLink:!0,toHref(e=Jm.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==Np&&e[1].t===um}}),rh=e=>new Ep(e);function ih({groups:e}){let t=e.domain.concat([rm,am,om,sm,cm,lm,fm,mm,gm,Rp,_m,vm,ym,bm,Tm,km,Em,Dm]),n=[im,um,dm,pm,hm,_m,xm,Sm,wm,qp,Jp,Vp,Hp,Wp,Up,Gp,Kp,Yp,Xp,Zp,Qp,$p,em,tm,nm],r=[rm,im,am,sm,cm,lm,fm,mm,gm,Vp,Hp,_m,vm,ym,bm,xm,Tm,km,Em,Dm],i=rh(),a=Z(i,Em);X(a,r,a),X(a,e.domain,a);let o=rh(),s=rh(),c=rh();X(i,e.domain,o),X(i,e.scheme,s),X(i,e.slashscheme,c),X(o,r,a),X(o,e.domain,o);let l=Z(o,om);Z(a,om,l),Z(s,om,l),Z(c,om,l);let u=Z(a,pm);X(u,r,a),X(u,e.domain,a);let d=rh();X(l,e.domain,d),X(d,e.domain,d);let f=Z(d,pm);X(f,e.domain,d);let p=rh($m);X(f,e.tld,p),X(f,e.utld,p),Z(l,Np,p);let m=Z(d,gm);Z(m,gm,m),X(m,e.domain,d),X(p,e.domain,d),Z(p,pm,f),Z(p,gm,m);let h=Z(o,gm),g=Z(o,pm);Z(h,gm,h),X(h,e.domain,o),X(g,r,a),X(g,e.domain,o);let _=rh(nh);X(g,e.tld,_),X(g,e.utld,_),X(_,e.domain,o),X(_,r,a),Z(_,pm,g),Z(_,gm,h),Z(_,om,l);let v=Z(_,um),y=rh(nh);X(v,e.numeric,y);let b=rh(nh),x=rh();X(b,t,b),X(b,n,x),X(x,t,b),X(x,n,x),Z(_,Tm,b),Z(y,Tm,b);let S=Z(s,um),C=Z(Z(Z(c,um),Tm),Tm);X(s,e.domain,o),Z(s,pm,g),Z(s,gm,h),X(c,e.domain,o),Z(c,pm,g),Z(c,gm,h),X(S,e.domain,b),Z(S,Tm,b),Z(S,xm,b),X(C,e.domain,b),X(C,t,b),Z(C,Tm,b);let w=[[Vp,Hp],[Up,Wp],[Gp,Kp],[qp,Jp],[Yp,Xp],[Zp,Qp],[$p,em],[tm,nm]];for(let e=0;e<w.length;e++){let[r,i]=w[e],a=Z(b,r);Z(x,r,a);let o=rh(nh);X(a,t,o);let s=rh();X(a,n,s),Z(a,i,b),X(o,t,o),X(o,n,s),X(s,t,o),X(s,n,s),Z(o,i,b),Z(s,i,b)}return Z(i,Np,_),Z(i,Bp,th),{start:i,tokens:Am}}function ah(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(oh(eh,t,o)),o=[]),i-=f,u-=f;let e=d.t,r=n.slice(i-u,i);a.push(oh(e,t,r))}}return o.length>0&&a.push(oh(eh,t,o)),a}function oh(e,t,n){let r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}var sh=typeof console<`u`&&console&&console.warn||(()=>{}),ch=`until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`,Q={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function lh(){return Ep.groups={},Q.scanner=null,Q.parser=null,Q.tokenQueue=[],Q.pluginQueue=[],Q.customSchemes=[],Q.initialized=!1,Q}function uh(e,t=!1){if(Q.initialized&&sh(`linkifyjs: already initialized - will not register custom scheme "${e}" ${ch}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format.
104
104
  1. Must only contain digits, lowercase ASCII letters or "-"
105
105
  2. Cannot start or end with "-"
106
- 3. "-" cannot repeat`);Q.customSchemes.push([e,t])}function fh(){Q.scanner=Wm(Q.customSchemes);for(let e=0;e<Q.tokenQueue.length;e++)Q.tokenQueue[e][1]({scanner:Q.scanner});Q.parser=ah(Q.scanner.tokens);for(let e=0;e<Q.pluginQueue.length;e++)Q.pluginQueue[e][1]({scanner:Q.scanner,parser:Q.parser});return Q.initialized=!0,Q}function ph(e){return Q.initialized||fh(),oh(Q.parser.start,e,Gm(Q.scanner.start,e))}ph.scan=Gm;function mh(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 Xm(n),i=ph(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 hh=`[\0- \xA0 ᠎ -\u2029  ]`,gh=new RegExp(hh),_h=RegExp(`${hh}$`),vh=new RegExp(hh,`g`);function yh(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?[`()`,`[]`].includes(e[0].value+e[2].value):!1}function bh(e){return new _r({key:new br(`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;let{tr:o}=r;if(Ku(Iu(n.doc,[...t])).forEach(({newRange:t})=>{let n=Ru(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(!_h.test(e))return;i=n[0],a=r.doc.textBetween(i.pos,t.to,void 0,` `)}if(i&&a){let t=a.split(gh).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=ph(n).map(t=>t.toObject(e.defaultProtocol));if(!yh(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=>{qu(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 xh(e){return new _r({key:new br(`handleClickLink`),props:{handleClick:(t,n,r)=>{if(r.button!==0||!t.editable)return!1;let i=r.target,a=[];for(;i.nodeName!==`DIV`;)a.push(i),i=i.parentNode;if(!a.find(e=>e.nodeName===`A`))return!1;let o=Uu(t.state,e.type.name),s=r.target,c=s?.href??o.href,l=s?.target??o.target;return s&&c?(window.open(c,l),!0):!1}}})}function Sh(e){return new _r({key:new br(`handlePasteLink`),props:{handlePaste:(t,n,r)=>{let{state:i}=t,{selection:a}=i,{empty:o}=a;if(o)return!1;let s=``;r.content.forEach(e=>{s+=e.textContent});let c=mh(s,{defaultProtocol:e.defaultProtocol}).find(e=>e.isLink&&e.value===s);return!s||!c?!1:e.editor.commands.setMark(e.type,{href:c.href})}}})}function Ch(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(vh,``).match(RegExp(`^(?:(?:${n.join(`|`)}):|[^a-z]|[a-z0-9+.\-]+(?:[^a-z+.\-:]|$))`,`i`))}var wh=pl.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`){dh(e);return}dh(e.scheme,e.optionalSlashes)})},onDestroy(){uh()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:`http`,HTMLAttributes:{target:`_blank`,rel:`noopener noreferrer nofollow`,class:null},isAllowedUri:(e,t)=>!!Ch(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>!!e}},addAttributes(){return{href:{default:null,parseHTML(e){return e.getAttribute(`href`)}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:`a[href]`,getAttrs:e=>{let t=e.getAttribute(`href`);return!t||!this.options.isAllowedUri(t,{defaultValidate:e=>!!Ch(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=>!!Ch(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?[`a`,qc(this.options.HTMLAttributes,e),0]:[`a`,qc(this.options.HTMLAttributes,{...e,href:``}),0]},addCommands(){return{setLink:e=>({chain:t})=>{let{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:e=>!!Ch(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 this.options.isAllowedUri(n,{defaultValidate:e=>!!Ch(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta(`preventAutolink`,!0).run():!1},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta(`preventAutolink`,!0).run()}},addPasteRules(){return[Ed({find:e=>{let t=[];if(e){let{protocols:n,defaultProtocol:r}=this.options,i=mh(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!Ch(e,n),protocols:n,defaultProtocol:r}));i.length&&i.forEach(e=>t.push({text:e.value,data:{href:e.href},index:e.start}))}return t},type:this.type,getAttributes:e=>({href:e.data?.href})})]},addProseMirrorPlugins(){let e=[],{protocols:t,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(bh({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!Ch(e,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&e.push(xh({type:this.type})),this.options.linkOnPaste&&e.push(Sh({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),e}}),Th=Td.create({name:`paragraph`,priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:`block`,content:`inline*`,parseHTML(){return[{tag:`p`}]},renderHTML({HTMLAttributes:e}){return[`p`,qc(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),Eh=Cl.create({name:`placeholder`,addOptions(){return{emptyEditorClass:`is-editor-empty`,emptyNodeClass:`is-empty`,placeholder:`Write something …`,showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new _r({key:new br(`placeholder`),props:{decorations:({doc:e,selection:t})=>{let n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=t,i=[];if(!n)return null;let a=this.editor.isEmpty;return e.descendants((e,t)=>{let n=r>=t&&r<=t+e.nodeSize,o=!e.isLeaf&&Qu(e);if((n||!this.options.showOnlyCurrent)&&o){let r=[this.options.emptyNodeClass];a&&r.push(this.options.emptyEditorClass);let o=Yo.node(t,t+e.nodeSize,{class:r.join(` `),"data-placeholder":typeof this.options.placeholder==`function`?this.options.placeholder({editor:this.editor,node:e,pos:t,hasAnchor:n}):this.options.placeholder});i.push(o)}return this.options.includeChildren}),Qo.create(e,i)}}})]}}),Dh=Td.create({name:`text`,group:`inline`});function Oh({placeholder:e,autofocus:t=!1,content:n=``}){return{extensions:[dp,Dh,Th,wh.configure({openOnClick:!1}),Eh.configure({placeholder:e,showOnlyWhenEditable:!1}),up.configure({}),fp.configure({})],content:n,autofocus:t,editorProps:{attributes:{class:`gh-comment-content focus:outline-0`,"data-testid":`editor`}},parseOptions:{preserveWhitespace:`full`}}}function kh(e,t){let n=(0,O.useRef)(null);return[n,(0,O.useCallback)(r=>{n.current&&t&&t(n.current),r&&e&&e(r),n.current=r},[e,t])]}function Ah(e){let{popup:t}=k();return t?.type===e}function jh(e){let{t}=k();return(0,O.useMemo)(()=>S(e,t),[e])}function Mh(e,t=!1){let[n,r]=(0,O.useState)(t),i=(0,O.useMemo)(()=>({...Oh(e)}),[e]),a=tf(i,[i]);return(0,O.useEffect)(()=>{if(a){let e=()=>{let e=!a.isEmpty;r(e)};return a.on(`update`,e),a.on(`transaction`,e),e(),()=>{a.off(`update`,e),a.off(`transaction`,e)}}},[a]),{editor:a,hasContent:n}}function Nh(e,t){let n=(0,O.useCallback)(()=>{if(e.current)for(let n of Object.values(t))e.current.classList.add(...n.default.split(` `)),e.current.classList.remove(...n.outOfViewport.split(` `))},[e,t]),r=(0,O.useCallback)(n=>{if(e.current)for(let[r,i]of Object.entries(t))n[r]?(e.current.classList.add(...i.outOfViewport.split(` `)),e.current.classList.remove(...i.default.split(` `))):(e.current.classList.add(...i.default.split(` `)),e.current.classList.remove(...i.outOfViewport.split(` `)))},[e,t]),i=(0,O.useCallback)(()=>{if(e.current){let t=e.current.ownerDocument,i=t.defaultView||window;n();let a=e.current.getBoundingClientRect(),o={top:a.top<0,bottom:a.bottom>(i.innerHeight||t.documentElement.clientHeight),left:a.left<0,right:a.right>(i.innerWidth||t.documentElement.clientWidth)};r(o)}},[e]);(0,O.useLayoutEffect)(()=>{i()},[e]),(0,O.useEffect)(()=>(window.addEventListener(`resize`,i),()=>{window.removeEventListener(`resize`,i)}),[])}var Ph=({comment:e,submit:t,progress:n,setProgress:r,close:i,isOpen:a,editor:o,submitText:s,submitSize:c,openForm:l})=>{let{dispatchAction:u,t:d}=k(),f=null;(0,O.useEffect)(()=>{if(o&&l){let t=()=>{let t=e&&l.type===`edit`?o.getHTML()!==e.html:!o.isEmpty;l.hasUnsavedChanges!==t&&u(`setCommentFormHasUnsavedChanges`,{id:l.id,hasUnsavedChanges:t})};return o.on(`update`,t),o.on(`transaction`,t),t(),()=>{o.off(`update`,t),o.off(`transaction`,t)}}},[o,e,l,u]),n===`sending`&&(f=(0,m.jsx)(ue,{className:`size-[24px] fill-white`,"data-testid":`button-spinner`}));let p=(0,O.useCallback)(e=>{if(o?.isFocused){e.stopPropagation();return}},[o]),h=(0,O.useCallback)(async()=>{if(!(!o||o.isEmpty)){r(`sending`);try{await t({html:o.getHTML()})}catch{r(`error`);return}return i?i():(r(`sent`),o.chain().clearContent().blur().run()),!1}},[r,o,t,i]);return(0,O.useEffect)(()=>{let e=e=>{if(e.metaKey||e.ctrlKey){e.key===`Enter`&&o?.isFocused&&(h(),o?.commands.blur());return}if(e.key===`Escape`){o?.isFocused&&(i?i():o?.commands.blur());return}};return window.addEventListener(`keydown`,e,{passive:!0}),()=>{window.removeEventListener(`keydown`,e)}},[o,i,h]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`div`,{className:`min-h-[120px] w-full rounded-lg border border-black/10 bg-white/75 p-2 pb-[68px] font-sans text-md leading-normal transition-all delay-100 duration-150 focus:outline-0 dark:bg-white/10 dark:text-neutral-300 sm:px-3 sm:text-lg ${a?`cursor-text`:`cursor-pointer`}`,"data-testid":`form-editor`,children:(0,m.jsx)(Hd,{editor:o,onMouseDown:p,onTouchStart:p})}),(0,m.jsxs)(`div`,{className:`absolute bottom-1 right-1 flex space-x-4 transition-[opacity] duration-150 sm:bottom-2 sm:right-2`,children:[i&&(0,m.jsx)(`button`,{className:`ml-2.5 font-sans text-sm font-medium text-neutral-900/50 outline-0 transition-all hover:text-neutral-900/70 dark:text-white/60 dark:hover:text-white/75`,type:`button`,onClick:i,children:d(`Cancel`)}),(0,m.jsxs)(`button`,{className:`flex w-auto items-center justify-center ${c===`medium`&&`sm:min-w-[100px]`} ${c===`small`&&`sm:min-w-[64px]`} h-[40px] rounded-md bg-[var(--gh-accent-color)] px-3 py-2 text-center font-sans text-base font-medium text-white outline-0 transition-colors duration-200 hover:brightness-105 disabled:bg-black/5 disabled:text-neutral-900/30 dark:disabled:bg-white/15 dark:disabled:text-white/35 sm:text-sm`,"data-testid":`submit-form-button`,disabled:!o||o.isEmpty,type:`button`,onClick:h,children:[f&&(0,m.jsx)(`span`,{className:`mr-1`,children:f}),s&&(0,m.jsx)(`span`,{children:s})]})]})]})},Fh=({show:e,name:t,expertise:n,replyingToText:r,editName:i,editExpertise:a})=>{let{t:o}=k(),s=!!r;return(0,m.jsxs)(cp,{"data-testid":`form-header`,enter:`transition duration-500 delay-100 ease-in-out`,enterFrom:`opacity-0 -translate-x-2`,enterTo:`opacity-100 translate-x-0`,leave:`transition-none duration-0`,leaveFrom:`opacity-100`,leaveTo:`opacity-0`,show:e,children:[(0,m.jsxs)(`div`,{className:`flex flex-wrap`,children:[(0,m.jsx)(`div`,{className:`w-full font-sans text-base font-bold leading-snug text-neutral-900 dark:text-white/85 sm:w-auto sm:text-sm`,"data-testid":`member-name`,onMouseDown:i,children:t||`Anonymous`}),(0,m.jsx)(`div`,{className:`flex items-baseline justify-start`,children:(0,m.jsxs)(`button`,{className:`group flex items-center justify-start whitespace-nowrap text-left font-sans text-base leading-snug text-neutral-900/50 transition duration-150 hover:text-black/75 dark:text-white/60 dark:hover:text-white/75 sm:text-sm ${!n&&`text-black/30 hover:text-black/50 dark:text-white/30 dark:hover:text-white/50`}`,"data-testid":`expertise-button`,type:`button`,onMouseDown:a,children:[(0,m.jsxs)(`span`,{children:[(0,m.jsx)(`span`,{className:`mx-[0.3em] hidden sm:inline`,children:`·`}),n||o(`Add your expertise`)]}),n&&(0,m.jsx)(le,{className:`ml-1 size-[12px] translate-x-[-6px] stroke-black/50 opacity-0 transition-all duration-100 ease-out group-hover:translate-x-0 group-hover:stroke-black/75 group-hover:opacity-100 dark:stroke-white/60 dark:group-hover:stroke-white/75`})]})})]}),s&&(0,m.jsxs)(`div`,{className:`mt-0.5 line-clamp-1 font-sans text-base leading-snug text-neutral-900/50 dark:text-white/60 sm:text-sm`,"data-testid":`replying-to`,children:[(0,m.jsxs)(`span`,{children:[o(`Reply to`),`:`]}),`\xA0`,(0,m.jsx)(`span`,{className:`font-semibold text-neutral-900/60 dark:text-white/70`,children:r})]})]})},Ih=({comment:e,submit:t,submitText:n,submitSize:r,close:i,editor:a,reduced:o,isOpen:s,openForm:c})=>{let{member:l}=k(),u=Ah(`addDetailsPopup`),[d,f]=(0,O.useState)(`default`),p=(0,O.useRef)(null),h=l?.name;(d===`sending`||h&&u)&&(s=!0);let g=e=>{if(a?.isFocused){e.preventDefault();return}};return(0,O.useEffect)(()=>{a&&a.setEditable(!!h&&d!==`sending`)},[a,h,d]),(0,m.jsx)(`form`,{ref:p,"data-testid":`form`,onMouseDown:g,onTouchStart:g,children:(0,m.jsx)(Ph,{close:i,comment:e,editor:a,isOpen:s,openForm:c,progress:d,reduced:o,setProgress:f,submit:t,submitSize:r,submitText:n})})},Lh=({editor:e,isOpen:t,reduced:n,openForm:r,layoutVariant:i=`main`,children:a})=>{let o=i===`reply`,{member:s,dispatchAction:c}=k(),l=s?.name,u=s?.expertise,d=``;t&&(d=r?.in_reply_to_snippet?`pl-[1px] pt-[68px] sm:pl-[44px] sm:pt-[56px]`:`pl-[1px] pt-[48px] sm:pl-[44px] sm:pt-[40px]`);let f=(0,O.useCallback)(t=>{e?.commands?.blur(),c(`openPopup`,{type:`addDetailsPopup`,expertiseAutofocus:t.expertiseAutofocus??!1,callback:function(t){e&&t&&(e.setEditable(!0),e.commands.focus())}})},[e,c]),p=(0,O.useCallback)(()=>{f({expertiseAutofocus:!1})},[f]),h=(0,O.useCallback)(()=>{f({expertiseAutofocus:!0})},[f]),g=(0,O.useCallback)(()=>{if(e&&!e.isFocused){if(!l){p();return}e.commands.focus()}},[e,p,l]);return(0,m.jsx)(`div`,{className:`${o?``:`-mx-2 mt-[-10px]`} rounded-md transition duration-200 ${t?`cursor-default`:`cursor-pointer`}`,children:(0,m.jsxs)(`div`,{className:`relative w-full`,onClick:g,children:[(0,m.jsx)(`div`,{className:`pr-[1px] font-sans leading-normal dark:text-neutral-300`,children:(0,m.jsx)(`div`,{className:`relative mb-7 w-full pl-[40px] transition-[padding] delay-100 duration-150 sm:pl-[44px] ${n&&`pl-0`} ${d}`,children:a})}),(0,m.jsxs)(`div`,{className:`absolute left-0 flex h-11 w-full items-start justify-start sm:h-12 ${o?`top-0`:`top-1`}`,children:[(0,m.jsx)(`div`,{className:`pointer-events-none mr-2 grow-0 sm:mr-3`,children:(0,m.jsx)(me,{member:s})}),(0,m.jsx)(`div`,{className:`grow-1 mt-0.5 w-full`,children:(0,m.jsx)(Fh,{editExpertise:h,editName:p,expertise:u,name:l,replyingToId:r?.in_reply_to_id,replyingToText:r?.in_reply_to_snippet,show:t})})]})]})})},Rh=({comment:e,openForm:t,parent:n})=>{let{dispatchAction:r,t:i}=k(),{editor:a}=Mh((0,O.useMemo)(()=>({placeholder:i(`Edit this comment`),autofocus:!1,content:e.html??void 0}),[e]));(0,O.useEffect)(()=>{a&&a.chain().focus().command(({tr:e,commands:t})=>t.setTextSelection({from:e.doc.content.size,to:e.doc.content.size})).run()},[a]);let o=(0,O.useCallback)(async({html:t})=>{await r(`editComment`,{comment:{id:e.id,html:t},parent:n})},[n,e,r]);return(0,m.jsx)(`div`,{className:`relative w-full`,children:(0,m.jsx)(Ih,{close:(0,O.useCallback)(()=>{r(`closeCommentForm`,t.id)},[r,t]),comment:e,editor:a,isOpen:!0,openForm:t,reduced:te(),submit:o,submitSize:`small`,submitText:i(`Save`)})})},zh=e=>(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,m.jsx)(`path`,{d:`M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z`}),(0,m.jsx)(`path`,{d:`M17 14V2`})]}),Bh=e=>(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,m.jsx)(`path`,{d:`M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z`}),(0,m.jsx)(`path`,{d:`M7 10v12`})]}),Vh=({comment:e,disabled:t,setDisabled:n})=>{let{dispatchAction:r,isMember:i,hasRequiredTier:a,t:o}=k(),[s,c]=(0,O.useState)(``),[l,u]=(0,O.useState)(!1),d=i&&a,f=e.count.likes,p=t??l,h=n??u,g=()=>{r(`openPopup`,{type:`ctaPopup`,commentId:e.id})};return(0,m.jsxs)(`button`,{"aria-label":e.liked?o(`Remove like`):o(`Like`),className:`duration-50 group flex cursor-pointer items-center gap-1.5 font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${e.liked?`text-black/90 dark:text-white/90`:`text-black/50 hover:text-black/75 dark:text-white/60 dark:hover:text-white/75`}`,"data-testid":`like-button`,disabled:p,type:`button`,onClick:async()=>{if(!d){g();return}h(!0);try{e.liked?await r(`unlikeComment`,e):(await r(`likeComment`,e),c(`animate-heartbeat`),setTimeout(()=>{c(``)},400))}finally{h(!1)}},children:[(0,m.jsx)(Bh,{className:s+` h-4 w-4 ${e.liked?`fill-black dark:fill-white stroke-black dark:stroke-white`:`stroke-black/50 group-hover:stroke-black/75 dark:stroke-white/60 dark:group-hover:stroke-white/75`} ${!e.liked&&d&&`group-hover:stroke-black/75 dark:group-hover:stroke-white/75`} transition duration-50 ease-linear`}),(0,m.jsx)(`span`,{className:`tabular-nums`,children:f})]})},Hh=({comment:e,disabled:t,setDisabled:n})=>{let{dispatchAction:r,isMember:i,hasRequiredTier:a,t:o}=k(),[s,c]=(0,O.useState)(``),[l,u]=(0,O.useState)(!1),d=i&&a,f=t??l,p=n??u,h=()=>{r(`openPopup`,{type:`ctaPopup`,commentId:e.id})};return(0,m.jsx)(`button`,{"aria-label":e.disliked?o(`Remove dislike`):o(`Dislike`),className:`duration-50 group flex cursor-pointer items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${e.disliked?`text-black/90 dark:text-white/90`:`text-black/50 hover:text-black/75 dark:text-white/60 dark:hover:text-white/75`}`,"data-testid":`dislike-button`,disabled:f,type:`button`,onClick:async()=>{if(!d){h();return}p(!0);try{e.disliked?await r(`undislikeComment`,e):(await r(`dislikeComment`,e),c(`animate-heartbeat`),setTimeout(()=>{c(``)},400))}finally{p(!1)}},children:(0,m.jsx)(zh,{className:s+` h-4 w-4 ${e.disliked?`fill-black dark:fill-white stroke-black dark:stroke-white`:`stroke-black/50 group-hover:stroke-black/75 dark:stroke-white/60 dark:group-hover:stroke-white/75`} ${!e.disliked&&d&&`group-hover:stroke-black/75 dark:group-hover:stroke-white/75`} transition duration-50 ease-linear`})})},Uh=({count:e,liked:t})=>(0,m.jsxs)(`div`,{className:`flex items-center gap-1.5`,"data-testid":`like-count`,children:[(0,m.jsx)(Bh,{className:`size-4 ${t?`fill-black stroke-black dark:fill-white dark:stroke-white`:`stroke-black/50 dark:stroke-white/60`}`}),(0,m.jsx)(`span`,{className:`font-sans text-base tabular-nums sm:text-sm ${t?`text-black/90 dark:text-white/90`:`text-black/50 dark:text-white/60`}`,children:e})]}),Wh=e=>(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,m.jsx)(`path`,{d:`M15 3h6v6`}),(0,m.jsx)(`path`,{d:`M10 14 21 3`}),(0,m.jsx)(`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`})]}),Gh=e=>(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,m.jsx)(`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`}),(0,m.jsx)(`circle`,{cx:12,cy:12,r:3})]}),Kh=e=>(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,m.jsx)(`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`}),(0,m.jsx)(`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`}),(0,m.jsx)(`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`}),(0,m.jsx)(`path`,{d:`m2 2 20 20`})]}),qh=e=>(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,m.jsx)(`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`}),(0,m.jsx)(`path`,{d:`m15 5 4 4`})]}),Jh=e=>(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,m.jsx)(`path`,{d:`M12 17v5`}),(0,m.jsx)(`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`})]}),Yh=e=>(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,m.jsx)(`path`,{d:`M12 17v5`}),(0,m.jsx)(`path`,{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`}),(0,m.jsx)(`path`,{d:`m2 2 20 20`}),(0,m.jsx)(`path`,{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`})]}),Xh=e=>(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,m.jsx)(`path`,{d:`M10 11v6`}),(0,m.jsx)(`path`,{d:`M14 11v6`}),(0,m.jsx)(`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`}),(0,m.jsx)(`path`,{d:`M3 6h18`}),(0,m.jsx)(`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`})]}),Zh=({comment:e,close:t,showAuthorActions:n=!1,toggleEdit:r})=>{let{dispatchAction:i,t:a,adminUrl:o}=k(),s=e=>()=>{e(),t()},c=r&&s(r),l=s(()=>{i(`openPopup`,{type:`deletePopup`,comment:e})}),u=s(()=>i(`hideComment`,e)),d=s(()=>i(`showComment`,e)),f=s(()=>i(`pinComment`,e)),p=s(()=>i(`unpinComment`,e)),h=e.status!==`published`,g=!e.parent_id&&e.status!==`deleted`,_=o?`${o}#/comments/?id=is:${e.id}`:null,v=`flex w-full items-center gap-3 rounded px-3 py-2 text-left text-[14px] leading-5 transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700`,y=`${v} text-neutral-900 dark:text-white`,b=`${v} text-red-600 dark:text-red-500`,x=`size-4 shrink-0`;return(0,m.jsxs)(`div`,{className:`flex w-full flex-col gap-0.5`,children:[_&&(0,m.jsxs)(`a`,{className:y,"data-testid":`view-in-admin-button`,href:_,rel:`noopener noreferrer`,target:`_blank`,onClick:t,children:[(0,m.jsx)(Wh,{"aria-hidden":`true`,className:x}),(0,m.jsx)(`span`,{children:a(`View in admin`)})]}),g&&(e.pinned?(0,m.jsxs)(`button`,{className:y,"data-testid":`unpin-button`,type:`button`,onClick:p,children:[(0,m.jsx)(Yh,{"aria-hidden":`true`,className:x}),(0,m.jsx)(`span`,{children:a(`Unpin comment`)})]}):(0,m.jsxs)(`button`,{className:y,"data-testid":`pin-button`,type:`button`,onClick:f,children:[(0,m.jsx)(Jh,{"aria-hidden":`true`,className:x}),(0,m.jsx)(`span`,{children:a(`Pin comment`)})]})),h?(0,m.jsxs)(`button`,{className:y,"data-testid":`show-button`,type:`button`,onClick:d,children:[(0,m.jsx)(Gh,{"aria-hidden":`true`,className:x}),(0,m.jsx)(`span`,{children:a(`Show comment`)})]}):(0,m.jsxs)(`button`,{className:y,"data-testid":`hide-button`,type:`button`,onClick:u,children:[(0,m.jsx)(Kh,{"aria-hidden":`true`,className:x}),(0,m.jsx)(`span`,{children:a(`Hide comment`)})]}),n&&(0,m.jsx)(`div`,{className:`my-1 border-t border-neutral-200 dark:border-neutral-700`}),n&&c&&(0,m.jsxs)(`button`,{className:y,"data-testid":`edit`,type:`button`,onClick:c,children:[(0,m.jsx)(qh,{"aria-hidden":`true`,className:x}),(0,m.jsx)(`span`,{children:a(`Edit`)})]}),n&&(0,m.jsxs)(`button`,{className:b,"data-testid":`delete`,type:`button`,onClick:l,children:[(0,m.jsx)(Xh,{"aria-hidden":`true`,className:x}),(0,m.jsx)(`span`,{children:a(`Delete`)})]})]})},Qh=({comment:e,close:t,toggleEdit:n})=>{let{dispatchAction:r,t:i}=k(),a=()=>{r(`openPopup`,{type:`deletePopup`,comment:e}),t()},o=`flex w-full items-center gap-3 rounded px-3 py-2 text-left text-[14px] leading-5 transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700`,s=`${o} text-neutral-900 dark:text-white`,c=`${o} text-red-600 dark:text-red-500`,l=`size-4 shrink-0`;return(0,m.jsxs)(`div`,{className:`flex w-full flex-col gap-0.5`,children:[(0,m.jsxs)(`button`,{className:s,"data-testid":`edit`,type:`button`,onClick:n,children:[(0,m.jsx)(qh,{"aria-hidden":`true`,className:l}),(0,m.jsx)(`span`,{children:i(`Edit`)})]}),(0,m.jsxs)(`button`,{className:c,"data-testid":`delete`,type:`button`,onClick:a,children:[(0,m.jsx)(Xh,{"aria-hidden":`true`,className:l}),(0,m.jsx)(`span`,{children:i(`Delete`)})]})]})},$h=e=>(0,m.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:(0,m.jsx)(`path`,{d:`M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`})}),eg=({comment:e,close:t})=>{let{dispatchAction:n,t:r}=k();return(0,m.jsx)(`div`,{className:`flex w-full flex-col gap-0.5`,children:(0,m.jsxs)(`button`,{className:`flex w-full items-center gap-3 rounded px-3 py-2 text-left text-[14px] leading-5 text-neutral-900 transition-colors hover:bg-neutral-100 dark:text-white dark:hover:bg-neutral-700`,type:`button`,onClick:()=>{n(`openPopup`,{type:`reportPopup`,comment:e}),t()},children:[(0,m.jsx)($h,{"aria-hidden":`true`,className:`size-4 shrink-0`}),(0,m.jsx)(`span`,{className:`hidden sm:inline`,children:r(`Report comment`)}),(0,m.jsx)(`span`,{className:`sm:hidden`,children:r(`Report`)})]})})},tg=({comment:e,close:t,toggleEdit:n})=>{let{member:r,isAdmin:i}=k(),a=r&&e.member?.uuid===r?.uuid,o=(0,O.useRef)(null),s=(0,O.useRef)(null);Nh(s,{bottom:{default:`top-0`,outOfViewport:`bottom-full mb-6`}}),(0,O.useEffect)(()=>{let e=()=>{t()};window.addEventListener(`click`,e,{passive:!0});let n=o.current?.ownerDocument?.defaultView;return n&&n!==window&&n.addEventListener(`click`,e,{passive:!0}),()=>{window.removeEventListener(`click`,e),n&&n!==window&&n.removeEventListener(`click`,e)}},[t]),(0,O.useEffect)(()=>{let e=e=>{e.key===`Escape`&&t()};return window.addEventListener(`keydown`,e,{passive:!0}),()=>{window.removeEventListener(`keydown`,e)}},[t]);let c=e=>{e.stopPropagation()},l=null;if(e.status===`published`)l=i?(0,m.jsx)(Zh,{close:t,comment:e,showAuthorActions:!!a,toggleEdit:n}):a?(0,m.jsx)(Qh,{close:t,comment:e,toggleEdit:n}):(0,m.jsx)(eg,{close:t,comment:e});else if(i)l=(0,m.jsx)(Zh,{close:t,comment:e});else return null;return(0,m.jsx)(`div`,{ref:o,className:`relative`,"data-testid":`comment-context-menu`,onClick:c,children:(0,m.jsx)(`div`,{ref:s,className:`absolute z-10 w-52 rounded-lg bg-white p-1 font-sans text-sm shadow-lg outline-0 dark:bg-neutral-800 dark:text-white`,"data-testid":`comment-context-menu-inner`,children:l})})},ng=e=>(0,m.jsxs)(`svg`,{width:16,height:16,viewBox:`0 0 16 16`,fill:`black`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,m.jsx)(`path`,{d:`M3 12C3.82843 12 4.5 11.3284 4.5 10.5C4.5 9.67157 3.82843 9 3 9C2.17157 9 1.5 9.67157 1.5 10.5C1.5 11.3284 2.17157 12 3 12Z`}),(0,m.jsx)(`path`,{d:`M8 12C8.82843 12 9.5 11.3284 9.5 10.5C9.5 9.67157 8.82843 9 8 9C7.17157 9 6.5 9.67157 6.5 10.5C6.5 11.3284 7.17157 12 8 12Z`}),(0,m.jsx)(`path`,{d:`M13 12C13.8284 12 14.5 11.3284 14.5 10.5C14.5 9.67157 13.8284 9 13 9C12.1716 9 11.5 9.67157 11.5 10.5C11.5 11.3284 12.1716 12 13 12Z`})]}),rg=({comment:e,toggleEdit:t})=>{let[n,r]=(0,O.useState)(!1);return(0,m.jsxs)(`div`,{"data-testid":`more-button`,children:[(0,m.jsx)(`button`,{className:`outline-0`,type:`button`,onClick:()=>{r(e=>!e)},children:(0,m.jsx)(ng,{className:`duration-50 gh-comments-icon gh-comments-icon-more outline-0 transition ease-linear hover:fill-black/75 dark:hover:fill-white/75 ${n?`fill-black/75 dark:fill-white/75`:`fill-black/50 dark:fill-white/60`}`})}),n?(0,m.jsx)(tg,{close:()=>{r(!1)},comment:e,toggleEdit:t}):null]})},ig=({comment:e})=>{let{dispatchAction:t,isAdmin:n,t:r}=k();if(!e.pinned)return null;let i=`inline-flex items-center gap-1 rounded-full border border-amber-300/70 bg-amber-50 px-2 py-0.5 font-sans text-xs font-medium leading-none text-amber-800 dark:border-amber-400/30 dark:bg-amber-400/10 dark:text-amber-100`;return n?(0,m.jsxs)(`button`,{"aria-label":r(`Unpin comment`),className:`${i} group hover:border-amber-400 hover:bg-amber-100 dark:hover:border-amber-400/50 dark:hover:bg-amber-400/20`,"data-testid":`pinned-comment-label`,type:`button`,onClick:n=>{n.stopPropagation(),t(`unpinComment`,e)},children:[(0,m.jsxs)(`span`,{className:`grid size-3 shrink-0`,children:[(0,m.jsx)(Jh,{"aria-hidden":`true`,className:`col-start-1 row-start-1 size-3 group-hover:opacity-0 group-focus-visible:opacity-0`}),(0,m.jsx)(Yh,{"aria-hidden":`true`,className:`col-start-1 row-start-1 size-3 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100`})]}),(0,m.jsxs)(`span`,{className:`grid justify-items-start text-left`,children:[(0,m.jsx)(`span`,{className:`col-start-1 row-start-1 group-hover:opacity-0 group-focus-visible:opacity-0`,children:r(`Pinned`)}),(0,m.jsx)(`span`,{className:`col-start-1 row-start-1 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100`,children:r(`Unpin`)})]})]}):(0,m.jsxs)(`span`,{className:i,"data-testid":`pinned-comment-label`,children:[(0,m.jsx)(Jh,{"aria-hidden":`true`,className:`size-3`}),r(`Pinned`)]})},ag=({loadMore:e,count:t})=>{let{t:n}=k(),r=t===1?n(`Show 1 more reply`):n(`Show {amount} more replies`,{amount:x(t)}),i=n(`{amount} more`,{amount:x(t)});return(0,m.jsx)(`div`,{className:`flex w-full items-center justify-start`,"data-testid":`replies-pagination`,children:(0,m.jsx)(`button`,{className:`group mb-10 ml-[48px] flex w-auto items-center px-0 pb-2 pt-0 text-left font-sans text-md font-semibold text-neutral-700 dark:text-white sm:mb-12 `,"data-testid":`reply-pagination-button`,type:`button`,onClick:e,children:(0,m.jsxs)(`span`,{className:`flex h-[40px] w-auto items-center justify-center whitespace-nowrap rounded-[6px] bg-black/5 px-4 py-2 text-center font-sans text-sm font-semibold text-neutral-700 outline-0 transition-all duration-150 hover:bg-black/10 dark:bg-white/15 dark:text-neutral-300 dark:hover:bg-white/20 dark:hover:text-neutral-100`,children:[`↓ `,(0,m.jsx)(`span`,{className:`ml-1 hidden sm:inline`,children:r}),(0,m.jsx)(`span`,{className:`ml-1 inline sm:hidden`,children:i}),` `]})})})},og=3,sg=({comment:e})=>{let{commentIdToScrollTo:t}=k(),n=(0,O.useRef)(new Set(e.replies.map(e=>e.id))),[r,i]=(0,O.useState)(()=>!!t&&e.replies.slice(og).some(e=>e.id===t)),a=e.replies.some(e=>!n.current.has(e.id)),o=r||a?e.replies:e.replies.slice(0,og),s=e.replies.length-o.length;return(0,m.jsxs)(`div`,{children:[o.map((t,n)=>(0,m.jsx)(xg,{comment:t,isLastSibling:n===o.length-1,layoutVariant:`reply`,parent:e},t.id)),s>0&&(0,m.jsx)(ag,{count:s,loadMore:()=>{i(!0)}})]})},cg=e=>(0,m.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,stroke:`black`,width:16,height:16,viewBox:`0 0 16 16`,...e,children:(0,m.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:1.3,d:`M1.333 7.206 6.539 2v3.254c3.645 0 8.461 1.432 8.461 7.81-1.757-2.994-3.58-3.905-8.46-3.905v3.254L1.332 7.206Z`})}),lg=({comment:e,disabled:t,isReplying:n,openReplyForm:r})=>{let{t:i,dispatchAction:a,isMember:o,hasRequiredTier:s}=k(),c=o&&s;return(0,m.jsxs)(`button`,{className:`duration-50 group flex items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${n?`text-black/90 dark:text-white/90`:`text-black/50 hover:text-black/75 dark:text-white/60 dark:hover:text-white/75`}`,"data-testid":`reply-button`,disabled:!!t,type:`button`,onClick:()=>{if(!c){a(`openPopup`,{type:`ctaPopup`,commentId:e.id});return}r()},children:[(0,m.jsx)(cg,{className:`mr-[6px] ${n?`fill-black dark:fill-white`:`stroke-black/50 group-hover:stroke-black/75 dark:stroke-white/60 dark:group-hover:stroke-white/75`} duration-50 transition ease-linear`}),i(`Reply`)]})},ug=({openForm:e,parent:t})=>{let{postId:n,dispatchAction:r,t:i}=k(),[,a]=kh(ne),{editor:o}=Mh((0,O.useMemo)(()=>({placeholder:i(`Reply to comment`),autofocus:!0}),[])),s=(0,O.useCallback)(async({html:i})=>{await r(`addReply`,{parent:t,reply:{post_id:n,in_reply_to_id:e.in_reply_to_id,status:`published`,html:i}})},[t,n,e,r]),c=(0,O.useCallback)(()=>{r(`closeCommentForm`,e.id)},[r,e]),l=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`span`,{className:`hidden sm:inline`,children:i(`Add reply`)}),(0,m.jsx)(`span`,{className:`sm:hidden`,children:i(`Reply`)})]});return(0,m.jsx)(`div`,{ref:a,"data-testid":`reply-form`,children:(0,m.jsx)(`div`,{className:`pr-2`,children:(0,m.jsx)(Lh,{editor:o,isOpen:!0,layoutVariant:`reply`,openForm:e,reduced:te(),children:(0,m.jsx)(Ih,{close:c,editor:o,isOpen:!0,openForm:e,reduced:te(),submit:s,submitSize:`medium`,submitText:l})})})})},dg=(0,O.createContext)({requestFocusedThreadView:()=>{},requestInstantScroll:()=>{},navigateBackToParent:()=>{}});function fg(){return(0,O.useContext)(dg)}var pg=(0,O.createContext)({maxThreadDepth:4});function mg(){return(0,O.useContext)(pg)}var hg=({reply:e,threadParentComment:t,depth:n})=>{let{t:r}=k(),{requestFocusedThreadView:i}=fg(),{maxThreadDepth:a}=mg(),o=e.nestedReplies.length>0,s=n>=a,c=e.siblingIndex===e.siblingCount-1,l=e.nestedReplies[0],u=null;return o&&!s?u=e.nestedReplies.map(e=>(0,m.jsx)(hg,{depth:n+1,reply:e,threadParentComment:t},e.id)):o&&s&&(u=(0,m.jsxs)(`a`,{className:`relative mb-4 flex min-h-10 items-center gap-1.5 px-0 pl-1 font-sans text-[1.3rem] font-semibold text-neutral-900/55 transition-colors hover:text-neutral-900/80 dark:text-white/45 dark:hover:text-white/70`,"data-testid":`continue-thread-button`,href:v(l.id),target:`_parent`,onClick:()=>i(l.id),children:[(0,m.jsx)(`span`,{className:`pointer-events-none absolute -left-4 top-0 h-5 w-3 border-b border-l border-neutral-300 [border-bottom-left-radius:12px_16px] dark:border-neutral-700 sm:-left-5 sm:w-4 sm:[border-bottom-left-radius:16px_16px]`,"aria-hidden":!0}),(0,m.jsxs)(`span`,{children:[r(`Read more replies`),` ›`]})]})),(0,m.jsx)(xg,{comment:e,isLastSibling:c,layoutVariant:`reply`,parent:t,children:u})},gg=({replies:e,threadParentComment:t,startDepth:n=1})=>(0,m.jsx)(m.Fragment,{children:e.map(e=>(0,m.jsx)(hg,{depth:n,reply:e,threadParentComment:t},e.id))});function _g(e){let t=e.replies||[],n=new Map,r=new Map,i=new Map;t.forEach(e=>{n.set(e.id,{...e,depth:1,nestedReplies:[],siblingIndex:0,siblingCount:0})});let a=[];t.forEach(e=>{let t=n.get(e.id);if(!t)return;let i=e.in_reply_to_id?n.get(e.in_reply_to_id):null;i&&i.id!==t.id?(r.set(t.id,i.id),i.nestedReplies.push(t)):(r.set(t.id,null),a.push(t))});let o=(e,t)=>{e.forEach((n,r)=>{n.depth=t,n.siblingIndex=r,n.siblingCount=e.length,i.set(n.id,t),o(n.nestedReplies,t+1)})};o(a,1);let s=e=>n.get(e),c=(e,t)=>{let i=e;for(;i.depth>t;){let e=r.get(i.id),t=e?n.get(e):null;if(!t)return i;i=t}return i};return{rootComment:e,roots:a,getWindowForComment:(t,n)=>{let r=s(t);if(!r||r.depth<=n)return null;let i=Math.floor((r.depth-1)/n)*n,a=c(r,i);return{topLevelComment:e,focusedComment:a,backComment:a}}}}function vg(e){return _g(e).roots}function yg(e,t,n){if(!t)return null;for(let r of e){if(r.id===t)return null;if(r.replies?.some(e=>e.id===t))return _g(r).getWindowForComment(t,n)}return null}var bg=({comment:e})=>(0,m.jsx)(`div`,{children:(0,m.jsx)(gg,{replies:(0,O.useMemo)(()=>vg(e),[e]),threadParentComment:e})}),xg=({children:e,comment:t,parent:n,layoutVariant:r,isLastSibling:i})=>{let{commentsIsLoading:a}=k();return(0,m.jsx)(cp,{className:`${a?`animate-pulse`:``}`,"data-testid":`animated-comment`,enter:`transition-opacity duration-300 ease-out`,enterFrom:`opacity-0`,enterTo:`opacity-100`,leave:`transition-opacity duration-100`,leaveFrom:`opacity-100`,leaveTo:`opacity-0`,show:!0,appear:!0,children:(0,m.jsx)(Sg,{comment:t,isLastSibling:i,layoutVariant:r,parent:n,children:e})})},Sg=({children:e,comment:t,parent:n,layoutVariant:r=`root`,isLastSibling:i=!1})=>{let{dispatchAction:a,isAdmin:o}=k(),{showDeletedMessage:s,showHiddenMessage:c,showCommentContent:l}=wg(t,o,O.Children.count(e)>0),u=(0,O.useCallback)(()=>{let e={id:t.id,type:`edit`,hasUnsavedChanges:!1,in_reply_to_id:t.in_reply_to_id,in_reply_to_snippet:t.in_reply_to_snippet};a(`openCommentForm`,e)},[t.id,a]);return s||c?(0,m.jsx)(Eg,{comment:t,isLastSibling:i,layoutVariant:r,openEditMode:u,parent:n,children:e}):l&&!c?(0,m.jsx)(Tg,{comment:t,isLastSibling:i,layoutVariant:r,openEditMode:u,parent:n,children:e}):null},Cg=(e,t)=>t.find(t=>t.id===e.id&&t.type===`reply`),wg=(e,t,n)=>{let r=n||e.replies&&e.replies.length>0,i=e.status===`deleted`,a=e.status===`hidden`;return{showDeletedMessage:i&&r,showHiddenMessage:r&&a&&!t,showCommentContent:!i&&(t||e.status===`published`)}},Tg=({children:e,comment:t,parent:n,openEditMode:r,layoutVariant:i=`root`,isLastSibling:a=!1})=>{let{dispatchAction:o,openCommentForms:s,isAdmin:c,commentIdToHighlight:l,commentIdFromHash:u}=k(),d=O.Children.count(e)>0,f=c&&t.status===`hidden`?`opacity-30`:``,p=s.find(e=>e.id===t.id&&e.type===`edit`),h=!!p,g=Cg(t,s),_=!!(g&&g.id===t.id),v=(0,O.useCallback)(async()=>{if(g&&g.id===t.id)o(`closeCommentForm`,g.id);else{let e={};n&&(e.in_reply_to_id=t.id,e.in_reply_to_snippet=ie(t));let r={id:t.id,parent_id:n?.id,type:`reply`,hasUnsavedChanges:!1,...e};await o(`openCommentForm`,r)}},[t,n,g,o]),y=d||t.replies&&t.replies.length>0,b=!!g||y,x=(0,m.jsx)(me,{member:t.member}),S=n||t,C=u?t.id===u&&l===u:t.id===l;return(0,m.jsx)(Ig,{avatar:x,className:f,hasReplies:b,isLastSibling:a,layoutVariant:i,memberUuid:t.member?.uuid,replies:(0,m.jsx)(kg,{comment:t,parent:n,children:e}),replyForm:g?(0,m.jsx)(Ag,{continueLine:y,openForm:g,parent:S}):null,children:(0,m.jsx)(`div`,{id:t.id,children:h?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(Mg,{className:f,comment:t}),(0,m.jsx)(Rh,{comment:t,openForm:p,parent:n})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(Mg,{className:f,comment:t}),(0,m.jsx)(Ng,{className:f,html:t.html,isHighlighted:C}),(0,m.jsx)(Pg,{comment:t,highlightReplyButton:_,openEditMode:r,openReplyForm:v})]})})})},Eg=({children:e,comment:t,openEditMode:n,parent:r,layoutVariant:i=`root`,isLastSibling:a=!1})=>{let{isAdmin:o,openCommentForms:s,t:c}=k(),l=O.Children.count(e)>0,u=o&&t.status!==`deleted`?(0,m.jsx)(me,{member:t.member}):(0,m.jsx)(pe,{}),d=t.status===`hidden`?c(`This comment has been hidden.`):t.status===`deleted`?c(`This comment has been removed.`):``,f=Cg(t,s),p=l||t.replies&&t.replies.length>0,h=!!f||p,g=o&&t.status===`hidden`;return(0,m.jsx)(Ig,{avatar:u,hasReplies:h,isLastSibling:a,layoutVariant:i,replies:(0,m.jsx)(kg,{comment:t,parent:r,children:e}),replyForm:f?(0,m.jsx)(Ag,{continueLine:p,openForm:f,parent:r||t}):null,children:(0,m.jsx)(`div`,{className:`mt-[-3px] flex items-start`,id:t.id,children:(0,m.jsxs)(`div`,{className:`flex h-10 flex-row items-center gap-4 pb-[8px] pr-4`,children:[(0,m.jsx)(ig,{comment:t}),(0,m.jsx)(`p`,{className:`mt-[4px] font-sans text-md leading-normal text-neutral-900/40 dark:text-white/60 sm:text-lg`,children:d}),g&&(0,m.jsx)(`div`,{className:`mt-[4px]`,children:(0,m.jsx)(rg,{comment:t,toggleEdit:n})})]})})})},Dg=({comment:e})=>{let{member:t}=k(),n=t&&e.member&&e.member.uuid===t.uuid?t.expertise:e?.member?.expertise;return n?(0,m.jsxs)(`span`,{className:`[overflow-wrap:anywhere]`,children:[(0,m.jsx)(`span`,{className:`mx-[0.3em] hidden sm:inline-block`,children:`·`}),n]}):null},Og=({comment:e})=>{let{t}=k();return e.edited_at?(0,m.jsxs)(`span`,{children:[`\xA0(`,t(`edited`),`)`]}):null},kg=({children:e,comment:t,className:n=``,parent:r})=>{let i=O.Children.count(e)>0;return i||t.replies&&t.replies.length>0?(0,m.jsx)(`div`,{className:`ml-8 flow-root sm:ml-9 ${n}`,children:i?e:r?(0,m.jsx)(sg,{comment:t}):(0,m.jsx)(bg,{comment:t})}):null},Ag=({openForm:e,parent:t,continueLine:n=!1})=>(0,m.jsxs)(`div`,{className:`relative ml-8 sm:ml-9 ${n?`pb-8 sm:pb-10`:`mb-8 sm:mb-10`}`,children:[n&&(0,m.jsx)(`div`,{className:`pointer-events-none absolute inset-y-0 -left-4 border-l border-neutral-300 dark:border-neutral-700 sm:-left-5`,"data-testid":`reply-form-continuation-line`,"aria-hidden":!0}),(0,m.jsx)(`div`,{className:`pointer-events-none absolute -left-4 top-0 h-4 w-3 border-b border-l border-neutral-300 [border-bottom-left-radius:12px_16px] dark:border-neutral-700 sm:-left-5 sm:w-4 sm:[border-bottom-left-radius:16px_16px]`,"data-testid":`reply-form-elbow`,"aria-hidden":!0}),(0,m.jsx)(ug,{openForm:e,parent:t})]}),jg=({comment:e})=>{let{t}=k();return(0,m.jsx)(`h4`,{className:`font-sans text-base font-bold leading-snug text-neutral-900 dark:text-white/85 sm:text-sm`,children:ee(e,t)})},Mg=({comment:e,className:t=``})=>{let{member:n}=k(),r=jh(e.created_at),i=n&&e.member&&e.member.uuid===n.uuid?n.expertise:e?.member?.expertise,a=(0,m.jsxs)(`a`,{className:`hover:underline`,href:v(e.id),target:`_parent`,title:C(e.created_at),children:[(0,m.jsx)(`span`,{className:`mx-[0.3em]`,children:`·`}),r]});return(0,m.jsxs)(`div`,{className:`mb-2 mt-0.5 flex flex-wrap items-start sm:flex-row ${i?`flex-col`:`flex-row`} ${t}`,children:[(0,m.jsx)(jg,{comment:e}),(0,m.jsx)(`div`,{className:`flex items-baseline pr-4 font-sans text-base leading-snug text-neutral-900/50 dark:text-white/60 sm:text-sm`,children:(0,m.jsxs)(`span`,{children:[(0,m.jsx)(Dg,{comment:e}),a,e.pinned&&(0,m.jsx)(`span`,{className:`ml-2 inline-flex align-middle`,children:(0,m.jsx)(ig,{comment:e})}),(0,m.jsx)(Og,{comment:e})]})})]})},Ng=({html:e,className:t=``,isHighlighted:n})=>{if(!e)return null;let r=e;if(n){let t=new DOMParser().parseFromString(e,`text/html`);t.querySelectorAll(`p`).forEach(e=>{let n=t.createElement(`mark`);for(n.className=`animate-[highlight_2.5s_ease-out] [animation-delay:1s] bg-yellow-300/40 -my-0.5 py-0.5 dark:text-white/85 dark:bg-yellow-500/40`;e.firstChild;)n.appendChild(e.firstChild);e.appendChild(n)}),r=t.body.innerHTML}let i={__html:r};return(0,m.jsx)(`div`,{className:`mt mb-2 flex flex-row items-center gap-4 pr-4 ${t}`,children:(0,m.jsx)(`div`,{dangerouslySetInnerHTML:i,className:`gh-comment-content -mx-1 text-pretty rounded-md px-1 font-sans text-md leading-normal text-neutral-900 [overflow-wrap:anywhere] dark:text-white/85 sm:text-lg`,"data-testid":`comment-content`})})},Pg=({comment:e,openReplyForm:t,highlightReplyButton:n,openEditMode:r,className:i=``})=>{let{member:a,t:o,isMember:s,isAdmin:c,isCommentingDisabled:l}=k(),[u,d]=O.useState(!1),f=e.status===`published`,p=a&&e.member?.uuid===a?.uuid,h=!l,g=h,_=!l,v=(c||s&&f)&&!(l&&p);return c&&e.status===`hidden`?(0,m.jsxs)(`div`,{className:`flex items-center gap-4 ${i}`,children:[(0,m.jsx)(`span`,{className:`font-sans text-base leading-snug text-red-600 sm:text-sm`,children:o(`Hidden for members`)}),(0,m.jsx)(rg,{comment:e,toggleEdit:r})]}):(0,m.jsxs)(`div`,{className:`flex items-center gap-4 ${i}`,children:[h?(0,m.jsx)(Vh,{comment:e,disabled:u,setDisabled:d}):(0,m.jsx)(Uh,{count:e.count.likes,liked:e.liked}),g&&(0,m.jsx)(Hh,{comment:e,disabled:u,setDisabled:d}),_&&(0,m.jsx)(lg,{comment:e,isReplying:n,openReplyForm:t}),v&&(0,m.jsx)(rg,{comment:e,toggleEdit:r})]})},Fg=({hasReplies:e})=>e?(0,m.jsx)(`div`,{className:`ml-4 h-full grow self-start border-l border-neutral-300 dark:border-neutral-700`,"data-testid":`replies-line`}):null,Ig=({children:e,avatar:t,hasReplies:n,className:r=``,memberUuid:i=``,isLastSibling:a=!1,layoutVariant:o=`root`,replies:s,replyForm:c})=>{let l=o===`reply`;return(0,m.jsxs)(`div`,{className:`relative flow-root ${n?`pb-4 sm:pb-0`:`pb-7`}`,children:[l&&!a&&(0,m.jsx)(`div`,{className:`pointer-events-none absolute inset-y-0 -left-4 border-l border-neutral-300 dark:border-neutral-700 sm:-left-5`,"aria-hidden":!0}),l&&(0,m.jsx)(`div`,{className:`pointer-events-none absolute -left-4 top-0 h-4 w-3 border-b border-l border-neutral-300 [border-bottom-left-radius:12px_16px] dark:border-neutral-700 sm:-left-5 sm:w-4 sm:[border-bottom-left-radius:16px_16px]`,"aria-hidden":!0}),(0,m.jsxs)(`div`,{className:`flex w-full flex-row`,"data-member-uuid":i,"data-testid":`comment-component`,children:[(0,m.jsxs)(`div`,{className:`mr-2 flex flex-col items-center justify-start sm:mr-3`,children:[(0,m.jsx)(`div`,{className:`flex-0 mb-1 ${r}`,children:t}),(0,m.jsx)(Fg,{hasReplies:n})]}),(0,m.jsx)(`div`,{className:`grow ${n?`pb-7 sm:pb-8`:``}`,children:e})]}),c,n&&s]})},Lg=o(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Rg=o(((e,t)=>{var n=Lg();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),zg=l(o(((e,t)=>{t.exports=Rg()()}))(),1);function Bg(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Vg(e){"@babel/helpers - typeof";return Vg=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Vg(e)}function Hg(e,t){if(Vg(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Vg(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ug(e){var t=Hg(e,`string`);return Vg(t)==`symbol`?t:t+``}function Wg(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Ug(r.key),r)}}function Gg(e,t,n){return t&&Wg(e.prototype,t),n&&Wg(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kg(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 qg(e,t){if(e==null)return{};var n,r,i=Kg(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}var Jg=`TOKEN_PLACEHOLDER`,Yg=`TOKEN_OPEN_TAG`,Xg=`TOKEN_CLOSE_TAG`,Zg=`TOKEN_SELF_TAG`,Qg=`TOKEN_TEXT`,$g=`NODE_FRAGMENT`,e_=`NODE_TAG_ELEMENT`,t_=`NODE_VOID_ELEMENT`,n_=`NODE_PLACEHOLDER`,r_=`NODE_TEXT`,i_=[`type`,`children`],a_=function(){function e(t){var n=t.type,r=t.children,i=qg(t,i_);for(var a in Bg(this,e),this.type=n,this.children=r||[],i)this[a]=i[a];i.token&&(this.string=i.token.string)}return Gg(e,[{key:`appendChild`,value:function(e){this.children.push(e)}},{key:`isLeaf`,get:function(){return this.children.length===0}}]),e}();a_.createTagNode=function(e,t){return new a_({type:e_,children:t,name:e.name,token:e})},a_.createFragmentNode=function(e){return new a_({type:$g,children:e})},a_.createVoidNode=function(e){return new a_({type:t_,name:e.name,token:e})},a_.createTextNode=function(e){return new a_({type:r_,text:e.string,token:e})},a_.createPlaceholderNode=function(e){return new a_({type:n_,name:e.name,token:e})};var o_=[{type:Jg,regex:/{\s*(\w+)\s*}/g},{type:Yg,regex:/<(\w+)>/g},{type:Xg,regex:/<\/(\w+)>/g},{type:Zg,regex:/<(\w+)\s*\/>/g}];function s_(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=c_(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
107
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){o=!0,s=e},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(o)throw s}}}}function c_(e,t){if(e){if(typeof e==`string`)return l_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l_(e,t)}}function l_(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 u_(e,t){var n=[],r=s_(t),i;try{for(r.s();!(i=r.n()).done;)for(var a=i.value,o=a.type,s=a.regex,c;(c=s.exec(e))!==null;)n.push({type:o,string:c[0],name:c[1],start:c.index,end:c.index+c[0].length})}catch(e){r.e(e)}finally{r.f()}n.sort(function(e,t){return e.start-t.start});var l=[],u=0;n.forEach(function(t){if(t.start===u){u=t.end;return}var n=t.start,r=e.substring(u,n);l.push({type:Qg,string:r,text:r,start:u,end:n}),u=t.end});var d=e.substring(u);return d!==``&&l.push({type:Qg,string:d,start:u,end:e.length}),[].concat(l,n).sort(function(e,t){return e.start-t.start})}function d_(e,t){return t||=o_,new m_(u_(e,t)).parse()}var f_=`Syntax error. Please check if each open tag is closed correctly`,p_={type:`EPSILON`},m_=function(){function e(t){Bg(this,e),this.tokens=[].concat(t),this.tags=[]}return Gg(e,[{key:`parse`,value:function(){var e=this.document();if(!this.predict(p_.type))throw Error(f_);return e}},{key:`document`,value:function(){var e=this.elementOrData();return a_.createFragmentNode(e)}},{key:`element`,value:function(){var e=this.openTag(),t=this.elementOrData();return this.endTag(),a_.createTagNode(e,t)}},{key:`openTag`,value:function(){if(!this.predict(`TOKEN_OPEN_TAG`))throw Error(f_);return this.pushTag(this.lookahead),this.match(Yg)}},{key:`elementOrData`,value:function(){var e=[];if(this.predict(`TOKEN_OPEN_TAG`)&&(e.push(this.element()),e=e.concat(this.elementOrData())),this.predict(`TOKEN_SELF_TAG`,Qg,`TOKEN_PLACEHOLDER`)){var t=this.match(this.lookahead.type),n;switch(t.type){case Zg:n=a_.createVoidNode(t);break;case Qg:n=a_.createTextNode(t);break;case Jg:n=a_.createPlaceholderNode(t);break}e.push(n),e=e.concat(this.elementOrData())}return e}},{key:`endTag`,value:function(){if(!this.predict(`TOKEN_CLOSE_TAG`)||this.tags.pop().name!==this.lookahead.name)throw Error(f_);this.match(Xg)}},{key:`lookahead`,get:function(){return this.tokens.length===0?p_:this.tokens[0]}},{key:`predict`,value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.includes(this.lookahead.type)}},{key:`match`,value:function(e){if(!this.predict(e))throw Error(f_);return this.tokens.shift()}},{key:`pushTag`,value:function(e){this.tags.push(e)}}]),e}(),h_=function e(t,n,r){var i=t.children.map(function(t,i){return O.createElement(O.default.Fragment,{key:r+i},e(t,n,r))});switch(t.type){case r_:return t.text;case $g:return O.createElement(O.default.Fragment,null,i);case t_:var a=n[t.name];return typeof a==`function`?a():a||O.createElement(t.name,null);case e_:var o=n[t.name];if(o===void 0)return O.createElement(t.name,null,i);if(typeof o==`function`)return o(i);if(O.isValidElement(o)){if(O.Children.count(o.props.children)!==0)throw Error(`when passing an element as value, the element should not contains children`);return O.cloneElement(o,{children:i})}throw Error(`Invalid mapping value for "${t.name}". Only element or render function are accepted`);case n_:var s=n[t.name];return s===void 0?(console.warn(`missing "${t.name}" in mapping`),t.string):typeof s==`function`?s():s;default:return}};function g_(e){var t=e.string,n=e.syntax,r=e.mapping,i=r===void 0?{}:r,a=e.graceful,o=a===void 0?!0:a;try{return h_(d_(t,n),i,t)}catch(e){if(o)return console.error(e),t;throw e}}g_.propTypes={string:zg.default.string.isRequired,mapping:zg.default.object,graceful:zg.default.bool};var __=()=>{let{accentColor:e,supportEmail:t,t:n}=k(),r={color:e};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`h1`,{className:`mb-2 text-center font-sans text-2xl font-semibold tracking-tight text-neutral-900 dark:text-white/85`,children:n(`Commenting disabled`)}),(0,m.jsx)(`p`,{className:`w-full text-balance text-center text-lg leading-normal text-neutral-900 dark:text-white/85 sm:px-8`,children:t?(0,m.jsx)(g_,{mapping:{a:(0,m.jsx)(`a`,{className:`font-semibold hover:opacity-90`,href:`mailto:${t}`,style:r})},string:n(`You can't post comments in this publication. <a>Contact support</a> for more information.`)}):n(`You can't post comments in this publication.`)})]})},v_=({showCount:e,count:t})=>{let{t:n}=k();return e?t===1?(0,m.jsx)(`div`,{className:`text-md text-neutral-900/50 dark:text-white/50 sm:text-lg`,"data-testid":`count`,children:n(`1 comment`)}):(0,m.jsx)(`div`,{className:`text-md text-neutral-900/50 dark:text-white/50 sm:text-lg`,"data-testid":`count`,children:n(`{amount} comments`,{amount:x(t)})}):null},y_=({title:e})=>{let{t}=k();return e===null?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`span`,{className:`sm:hidden`,children:t(`Discussion`)}),(0,m.jsx)(`span`,{className:`hidden sm:inline`,children:t(`Member discussion`)})]}):(0,m.jsx)(m.Fragment,{children:e})},b_=({title:e,showCount:t,count:n})=>!e&&!t&&e!==null?null:(0,m.jsxs)(`div`,{className:`mb-7 flex w-full items-baseline justify-between font-sans`,children:[(0,m.jsx)(`h2`,{className:`text-[2.2rem] font-bold tracking-tight text-neutral-900 dark:text-white sm:text-2xl`,"data-testid":`title`,children:(0,m.jsx)(y_,{title:e})}),(0,m.jsx)(v_,{count:n,showCount:t})]}),x_=({focusedThread:e})=>{let{t}=k(),{navigateBackToParent:n}=fg(),{backComment:r,focusedComment:i,topLevelComment:a}=e,o=v(r.id);return(0,m.jsxs)(`div`,{children:[(0,m.jsxs)(`div`,{className:`mb-6 flex items-center justify-between`,children:[(0,m.jsxs)(`a`,{className:`font-sans text-[1.3rem] font-medium text-neutral-900/55 transition-colors hover:text-neutral-900/80 dark:text-white/45 dark:hover:text-white/70`,"data-testid":`back-to-parent`,href:o,target:`_parent`,onClick:(0,O.useCallback)(e=>{e.preventDefault(),n(r.id,o)},[r.id,o,n]),children:[`← `,t(`Back`)]}),(0,m.jsx)(`a`,{className:`font-sans text-[1.3rem] font-medium text-neutral-900/55 transition-colors hover:text-neutral-900/80 dark:text-white/45 dark:hover:text-white/70`,"data-testid":`see-full-discussion`,href:y(),target:`_parent`,children:t(`See full discussion`)})]}),(0,m.jsx)(xg,{comment:i,parent:a,children:(0,m.jsx)(gg,{replies:i.nestedReplies,threadParentComment:a})})]})},S_=({commentsCount:e})=>{let{postId:t,dispatchAction:n,t:r}=k(),{editor:i,hasContent:a}=Mh((0,O.useMemo)(()=>({placeholder:r(e===0?`Start the conversation`:`Join the discussion`),autofocus:!1}),[e])),o=(0,O.useCallback)(async({html:e})=>{await n(`addComment`,{post_id:t,status:`published`,html:e}),i?.commands.clearContent()},[t,n,i]),s=(0,O.useRef)(null),[c,l]=(0,O.useState)(!1);(0,O.useEffect)(()=>{if(!i)return;let e=e=>{if(!i||e.metaKey||e.ctrlKey)return;let t=document.activeElement;for(;t&&t.tagName===`IFRAME`&&t.contentDocument;)t=t.contentDocument?.activeElement??null;let n=t&&(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.tagName===`IFRAME`||t.contentEditable===`true`);if(e.key===`c`&&!i?.isFocused&&!n){i?.commands.focus(),s.current&&ne(s.current);return}};return window.addEventListener(`keydown`,e,{passive:!0}),()=>{window.removeEventListener(`keydown`,e)}},[i]);let u={submitText:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(`span`,{className:`hidden sm:inline`,children:[r(`Add comment`),` `]}),(0,m.jsx)(`span`,{className:`sm:hidden`,children:r(`Comment`)})]}),submitSize:`large`,submit:o},d=i?.isFocused||a||c;return(0,m.jsx)(`div`,{ref:s,className:`px-3 pb-2 pt-3`,"data-testid":`main-form`,onBlurCapture:(0,O.useCallback)(e=>{e.currentTarget.contains(e.relatedTarget)||l(!1)},[]),onFocusCapture:()=>l(!0),children:(0,m.jsx)(Lh,{editor:i,isOpen:d,reduced:!1,children:(0,m.jsx)(Ih,{editor:i,isOpen:d,reduced:!1,...u})})})},C_=()=>{let{pagination:e,dispatchAction:t,t:n}=k(),r=()=>{t(`loadMoreComments`,{})};if(!e)return null;let i=e.total-e.page*e.limit;return i<=0?null:(0,m.jsx)(`button`,{className:`group mb-10 flex items-center px-0 pb-2 pt-0 text-left font-sans text-md font-semibold text-neutral-700 dark:text-white`,"data-testid":`pagination-component`,type:`button`,onClick:r,children:(0,m.jsx)(`span`,{className:`flex h-[40px] items-center justify-center whitespace-nowrap rounded-[6px] bg-black/5 px-4 py-2 text-center font-sans text-sm font-semibold text-neutral-700 outline-0 transition-all duration-150 hover:bg-black/10 dark:bg-white/15 dark:text-neutral-300 dark:hover:bg-white/20 dark:hover:text-neutral-100`,children:n(`Load more ({amount})`,{amount:x(i)})})})},w_=e=>(0,m.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,...e,children:(0,m.jsx)(`path`,{d:`M23.25,7.311,12.53,18.03a.749.749,0,0,1-1.06,0L.75,7.311`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,fillRule:`evenodd`})}),T_=()=>{let{order:e,t}=k(),n=oe(),[r,i]=(0,O.useState)(!1),[a,o]=(0,O.useState)(e),s=(0,O.useRef)(null),c=`count__net_score desc, created_at desc`;(0,O.useEffect)(()=>{o(e===`count__likes desc, created_at desc`||e===`count__net_score desc, created_at desc`?c:e)},[e]);let l=[{value:c,label:t(`Best`)},{value:`created_at desc`,label:t(`Newest`)},{value:`created_at asc`,label:t(`Oldest`)}],u=e=>{o(e),n(e),i(!1)};return(0,O.useEffect)(()=>{let e=()=>{i(!1)};window.addEventListener(`click`,e,{passive:!0});let t=s.current?.ownerDocument?.defaultView;return t&&t!==window&&t.addEventListener(`click`,e,{passive:!0}),()=>{window.removeEventListener(`click`,e),t&&t!==window&&t.removeEventListener(`click`,e)}},[]),(0,m.jsxs)(`div`,{ref:s,className:`relative z-20`,"data-testid":`comments-sorting-form`,onClick:e=>{e.stopPropagation()},children:[(0,m.jsxs)(`button`,{className:`flex w-full items-center justify-between gap-2 text-sm font-medium text-neutral-900 focus-visible:outline-none dark:text-neutral-100`,type:`button`,onClick:()=>i(!r),children:[l.find(e=>e.value===a)?.label,(0,m.jsx)(`span`,{className:`size-2 stroke-[3px]`,children:(0,m.jsx)(w_,{})})]}),r&&(0,m.jsx)(`div`,{className:`absolute -left-4 mt-1.5 w-36 origin-top-right rounded-md bg-white shadow-lg dark:bg-neutral-800`,children:(0,m.jsx)(`div`,{"aria-labelledby":`options-menu`,"aria-orientation":`vertical`,className:`py-1`,"data-testid":`comments-sorting-form-dropdown`,role:`menu`,children:l.map(e=>(0,m.jsx)(`button`,{className:`block w-full px-4 py-1.5 text-left text-sm text-neutral-600 transition-all hover:text-neutral-900 dark:text-neutral-200 dark:hover:text-white`,role:`menuitem`,type:`button`,onClick:()=>u(e.value),children:e.label},e.value))})})]})},E_=`ghost-comments-root`;function D_(e){let t=e.defaultView;if(!t?.parent||t.parent===t)return null;try{let e=t.parent.document.getElementsByTagName(`iframe`);for(let n of e)if(n.contentWindow===t)return n}catch{}return null}var O_=500;function k_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}function A_(e,t){let n=e.clientHeight,r=!1,i=()=>{r||(r=!0,a.disconnect(),t())},a=new ResizeObserver(()=>{e.clientHeight!==n&&i()});a.observe(e);let o=setTimeout(i,O_);return()=>{clearTimeout(o),a.disconnect()}}function j_(e){return e.current?.ownerDocument.getElementById(`ghost-comments-root`)||document.getElementById(`ghost-comments-root`)}function M_(e){let t=e.current?.ownerDocument.defaultView||window;return t.parent||t}function N_(e){let{dispatchAction:t}=k(),n=(0,O.useCallback)((t=`auto`)=>{let n=j_(e);n&&k_(()=>{n.scrollIntoView({behavior:t,block:`start`})})},[e]);return{scrollToComment:(0,O.useCallback)((e,n,r={})=>{e.scrollIntoView({behavior:`smooth`,block:`center`}),t(`highlightComment`,{commentId:n}),r.preserveScrollTarget||t(`setScrollTarget`,null)},[t]),scrollToCommentInstantly:(0,O.useCallback)(t=>{k_(()=>{let n=e.current?.ownerDocument.getElementById(t);if(n){let e=D_(n.ownerDocument);if(e){A_(e,()=>{re(n)});return}re(n)}})},[e]),scrollToCommentsTop:n}}function P_(e){(0,O.useEffect)(()=>{let t=j_(e),n=M_(e);t&&n?.location.hash===`#ghost-comments`&&n.scrollY===0&&k_(()=>{t.scrollIntoView()})},[e])}function F_(e,t,n,r){let{dispatchAction:i}=k(),{scrollToComment:a,scrollToCommentInstantly:o,scrollToCommentsTop:s}=r;(0,O.useEffect)(()=>{let r=M_(e);if(!r)return;let c=()=>{let c=r.location.hash,l=b(c);if(l&&e.current){let r=t.current===l,c=n.current===l;if(t.current=null,n.current=null,i(`setHashCommentId`,l),r){i(`setScrollTarget`,null),i(`setHighlightComment`,null),s();return}if(c){i(`setScrollTarget`,null),i(`setHighlightComment`,null),o(l);return}i(`setScrollTarget`,l);let u=e.current.ownerDocument.getElementById(l);u&&a(u,l,{preserveScrollTarget:!0})}else t.current=null,n.current=null,i(`setHashCommentId`,null),i(`setScrollTarget`,null),i(`setHighlightComment`,null),c===`#ghost-comments`&&s(`smooth`)};return r.addEventListener(`hashchange`,c),()=>r.removeEventListener(`hashchange`,c)},[e,i,a,o,s])}function I_(e,t){let{comments:n,commentsIsLoading:r,commentIdFromHash:i,commentIdToScrollTo:a,dispatchAction:o}=k(),{scrollToComment:s}=t,c=(0,O.useRef)(null);(0,O.useEffect)(()=>{if(!a||r||!e.current){a||(c.current=null);return}if(c.current===a)return;if(b(M_(e)?.location.hash||``)===a&&i!==a){o(`setHashCommentId`,a);return}let t=e.current.ownerDocument,n=t.getElementById(a);if(!n)return;let l=D_(t);if(l)return c.current=a,A_(l,()=>{s(n,a,{preserveScrollTarget:a===i})});c.current=a,s(n,a,{preserveScrollTarget:a===i})},[a,i,r,n,e,o,s])}function L_(e){let{commentsIsLoading:t,showMissingCommentNotice:n}=k();(0,O.useEffect)(()=>{if(!n||t)return;let r=j_(e);if(!r)return;let i=D_(r.ownerDocument);if(i)return A_(i,()=>{ne(r)});ne(r)},[e,n,t])}function R_(e,t,n){let{commentIdFromHash:r}=k(),{scrollToCommentInstantly:i}=n;(0,O.useEffect)(()=>{!r||e||t.current!==r||(t.current=null,i(r))},[r,e,i])}function z_({containerRef:e,focusedThread:t}){let{dispatchAction:n}=k(),r=(0,O.useRef)(null),i=(0,O.useRef)(null),a=N_(e);return P_(e),F_(e,r,i,a),I_(e,a),L_(e),R_(t,i,a),(0,O.useMemo)(()=>({requestFocusedThreadView:e=>{r.current=e},requestInstantScroll:e=>{i.current=e},navigateBackToParent:(t,r)=>{i.current=t,M_(e)?.history.pushState(null,``,r),n(`setHashCommentId`,t),n(`setScrollTarget`,null),n(`setHighlightComment`,null)}}),[e,n])}var B_=`(max-width: 479px)`;function V_(){return typeof window>`u`||!window.matchMedia?4:window.matchMedia(B_).matches?3:4}var H_=()=>{let e=se(),{pagination:t,comments:n,commentCount:r,title:i,showCount:a,commentsIsLoading:o,t:s,commentIdFromHash:c,showMissingCommentNotice:l,isMember:u,isPaidOnly:d,hasRequiredTier:f,isCommentingDisabled:p}=k(),h=(0,O.useRef)(null),[g,_]=(0,O.useState)(()=>V_());(0,O.useEffect)(()=>{if(typeof window>`u`||!window.matchMedia)return;let e=window.matchMedia(B_),t=()=>{_(e.matches?3:4)};return t(),e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]);let v=(0,O.useMemo)(()=>({maxThreadDepth:g}),[g]),y=t?.total===0,b=u&&f&&!p,x=b,S=!b&&p,C=!b&&!p,w=(0,O.useMemo)(()=>yg(n,c,g),[n,c,g]),T=z_({containerRef:h,focusedThread:w}),ee=n.map(e=>(0,m.jsx)(xg,{comment:e},e.id)),te=w?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(b_,{count:r,showCount:a,title:i}),(0,m.jsx)(`div`,{ref:h,className:`z-10 transition-opacity duration-100 ${o?`opacity-50`:``}`,"data-testid":`comment-elements`,children:(0,m.jsx)(x_,{focusedThread:w})})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(b_,{count:r,showCount:a,title:i}),l&&(0,m.jsx)(`div`,{className:`mb-6 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 font-sans text-sm text-amber-900 dark:border-amber-500/40 dark:bg-amber-500/15 dark:text-amber-100`,"data-testid":`missing-comment-notice`,children:s(`The linked comment is no longer available.`)}),(0,m.jsxs)(`div`,{children:[x&&(0,m.jsx)(S_,{commentsCount:n.length}),S&&(0,m.jsx)(`section`,{className:`flex flex-col items-center py-6 sm:px-8 sm:py-10`,"data-testid":`commenting-disabled-box`,children:(0,m.jsx)(__,{})}),C&&(0,m.jsx)(`section`,{className:`flex flex-col items-center py-6 sm:px-8 sm:py-10`,"data-testid":`cta-box`,children:(0,m.jsx)(ce,{isFirst:y,isPaid:d})})]}),r>1&&(0,m.jsx)(`div`,{className:`z-20 mb-7 mt-3`,children:(0,m.jsxs)(`span`,{className:`flex items-center gap-1.5 text-sm font-medium text-neutral-900 dark:text-neutral-100`,children:[s(`Sort by`),`: `,(0,m.jsx)(T_,{})]})}),(0,m.jsx)(`div`,{ref:h,className:`z-10 transition-opacity duration-100 ${o?`opacity-50`:``}`,"data-testid":`comment-elements`,children:ee}),(0,m.jsx)(C_,{}),e?.testFlag?(0,m.jsx)(`div`,{"data-testid":`this-comes-from-a-flag`,style:{display:`none`}}):null]});return(0,m.jsx)(dg.Provider,{value:T,children:(0,m.jsx)(pg.Provider,{value:v,children:te})})};function U_(){return(0,m.jsx)(`div`,{className:`flex h-32 w-full items-center justify-center`,"data-testid":`loading`,children:(0,m.jsx)(ue,{className:`mb-6 size-12 fill-neutral-300/80 dark:fill-white/60`})})}var W_=({done:e})=>{let t=(e,t,n)=>{let r=[e,t,n].map(function(e){return e/=255,e<=.03928?e/12.92:((e+.055)/1.055)**2.4});return r[0]*.2126+r[1]*.7152+r[2]*.0722},n=(e,n)=>{let r=t(e[0],e[1],e[2]),i=t(n[0],n[1],n[2]),a=Math.max(r,i),o=Math.min(r,i);return(a+.05)/(o+.05)},{accentColor:r,colorScheme:i}=k(),a=(0,O.useCallback)(()=>{if(i===`light`)return!1;if(i===`dark`)return!0;{let e=document.getElementById(E_);if(!e||!e.parentElement)return!1;let t=getComputedStyle(e.parentElement).getPropertyValue(`color`),r=t.substring(t.indexOf(`(`)+1,t.lastIndexOf(`)`)).split(/,\s*/),i=parseInt(r[0]),a=parseInt(r[1]),o=parseInt(r[2]);return n([255,255,255],[i,a,o])<5}},[i,n]),[o,s]=(0,O.useState)(a()?`dark`:``);(0,O.useEffect)(()=>{s(a()?`dark`:``)},[i,a]),(0,O.useEffect)(()=>{let e=document.getElementById(E_);if(e?.parentElement){let t=new MutationObserver(()=>{s(a()?`dark`:``)});return t.observe(e.parentElement,{attributes:!0,attributeFilter:[`style`,`class`]}),()=>{t.disconnect()}}},[a]);let c={"--gh-accent-color":r??`black`,paddingTop:0,paddingBottom:24};return(0,m.jsx)(`section`,{className:`ghost-display `+o,"data-loaded":e,"data-testid":`content-box`,style:c,children:e?(0,m.jsx)(H_,{}):(0,m.jsx)(U_,{})})},G_=class extends O.Component{node;iframeHtml;iframeHead;iframeRoot;constructor(e){super(e),this.setNode=this.setNode.bind(this),this.node=null}componentDidMount(){this.node.addEventListener(`load`,this.handleLoad)}handleLoad=()=>{this.setupFrameBaseStyle()};componentWillUnmount(){this.node.removeEventListener(`load`,this.handleLoad)}setupFrameBaseStyle(){this.node.contentDocument&&(this.iframeHtml=this.node.contentDocument.documentElement,this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate(),this.props.onResize&&new ResizeObserver(e=>{window.requestAnimationFrame(()=>{this.props.onResize(this.iframeRoot)})})?.observe?.(this.iframeRoot),this.node.contentWindow.addEventListener(`keydown`,e=>{window.dispatchEvent(new KeyboardEvent(`keydown`,e))}))}setNode(e){this.node=e,this.props.innerRef&&(this.props.innerRef.current=e)}render(){let{children:e,head:t,title:n=``,style:r={},...i}=this.props;return(0,m.jsxs)(`iframe`,{srcDoc:`<!DOCTYPE html>`,...i,ref:this.setNode,frameBorder:`0`,style:r,title:n,children:[this.iframeHead&&(0,Ad.createPortal)(t,this.iframeHead),this.iframeRoot&&(0,Ad.createPortal)(e,this.iframeRoot)]})}},K_=(0,O.forwardRef)(function(e,t){return(0,m.jsx)(G_,{...e,innerRef:t})}),q_=`*,:before,:after,::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}:before,:after{--tw-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (width>=481px){.container{max-width:481px}}@media (width>=768px){.container{max-width:768px}}@media (width>=1024px){.container{max-width:1024px}}@media (width>=1280px){.container{max-width:1280px}}@media (width>=1400px){.container{max-width:1400px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-y-0{top:0;bottom:0}.-left-4{left:-1.6rem}.bottom-1{bottom:.4rem}.bottom-full{bottom:100%}.left-0{left:0}.right-1{right:.4rem}.right-6{right:2.4rem}.top-0{top:0}.top-1{top:.4rem}.top-5{top:2rem}.z-10{z-index:10}.z-20{z-index:20}.col-start-1{grid-column-start:1}.row-start-1{grid-row-start:1}.-mx-1{margin-left:-.4rem;margin-right:-.4rem}.-mx-2{margin-left:-.8rem;margin-right:-.8rem}.-my-0\\.5{margin-top:-.2rem;margin-bottom:-.2rem}.mx-\\[0\\.3em\\]{margin-left:.3em;margin-right:.3em}.my-1{margin-top:.4rem;margin-bottom:.4rem}.mb-1{margin-bottom:.4rem}.mb-1\\.5{margin-bottom:.6rem}.mb-10{margin-bottom:4rem}.mb-2{margin-bottom:.8rem}.mb-4{margin-bottom:1.6rem}.mb-6{margin-bottom:2.4rem}.mb-7{margin-bottom:2.8rem}.mb-8{margin-bottom:3.2rem}.mb-\\[12px\\]{margin-bottom:12px}.mb-\\[28px\\]{margin-bottom:28px}.mb-\\[8px\\]{margin-bottom:8px}.ml-1{margin-left:.4rem}.ml-2{margin-left:.8rem}.ml-2\\.5{margin-left:1rem}.ml-4{margin-left:1.6rem}.ml-8{margin-left:3.2rem}.ml-\\[48px\\]{margin-left:48px}.mr-1{margin-right:.4rem}.mr-2{margin-right:.8rem}.mr-\\[6px\\]{margin-right:6px}.mt-0\\.5{margin-top:.2rem}.mt-1\\.5{margin-top:.6rem}.mt-10{margin-top:4rem}.mt-3{margin-top:1.2rem}.mt-6{margin-top:2.4rem}.mt-8{margin-top:3.2rem}.mt-\\[-10px\\]{margin-top:-10px}.mt-\\[-1px\\]{margin-top:-1px}.mt-\\[-3px\\]{margin-top:-3px}.mt-\\[4px\\]{margin-top:4px}.mt-auto{margin-top:auto}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.flow-root{display:flow-root}.grid{display:grid}.contents{display:contents}.hidden{display:none}.size-10{width:4rem;height:4rem}.size-12{width:4.8rem;height:4.8rem}.size-2{width:.8rem;height:.8rem}.size-3{width:1.2rem;height:1.2rem}.size-4{width:1.6rem;height:1.6rem}.size-5{width:2rem;height:2rem}.size-7{width:2.8rem;height:2.8rem}.size-\\[12px\\]{width:12px;height:12px}.size-\\[16px\\]{width:16px;height:16px}.size-\\[24px\\]{width:24px;height:24px}.h-10{height:4rem}.h-11{height:4.4rem}.h-32{height:12.8rem}.h-4{height:1.6rem}.h-5{height:2rem}.h-8{height:3.2rem}.h-\\[40px\\]{height:40px}.h-\\[42px\\]{height:42px}.h-\\[44px\\]{height:44px}.h-full{height:100%}.h-screen{height:100vh}.min-h-10{min-height:4rem}.min-h-\\[120px\\]{min-height:120px}.w-3{width:1.2rem}.w-36{width:14.4rem}.w-4{width:1.6rem}.w-52{width:20.8rem}.w-8{width:3.2rem}.w-\\[50\\%\\]{width:50%}.w-auto{width:auto}.w-full{width:100%}.w-screen{width:100vw}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.origin-top-right{transform-origin:100% 0}.-translate-x-2{--tw-translate-x:-.8rem;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x:0px;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[-6px\\]{--tw-translate-x:-6px;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2{--tw-translate-y:.8rem;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y:1.6rem;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes highlight{to{background-color:#0000}}.animate-\\[highlight_2\\.5s_ease-out\\]{animation:2.5s ease-out highlight}@keyframes heartbeat{0%,to{transform:scale(1)}50%{transform:scale(1.3)}}.animate-heartbeat{animation:.35s ease-in-out forwards heartbeat}.animate-pulse{animation:1.5s cubic-bezier(.4,0,.6,1) infinite pulse}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-items-start{justify-items:start}.gap-0\\.5{gap:.2rem}.gap-1{gap:.4rem}.gap-1\\.5{gap:.6rem}.gap-2{gap:.8rem}.gap-3{gap:1.2rem}.gap-4{gap:1.6rem}.gap-9{gap:3.6rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1.6rem * var(--tw-space-x-reverse));margin-left:calc(1.6rem * calc(1 - var(--tw-space-x-reverse)))}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.text-balance{text-wrap:balance}.text-pretty{text-wrap:pretty}.rounded{border-radius:.4rem}.rounded-\\[6px\\]{border-radius:6px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.8rem}.rounded-md{border-radius:.6rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-amber-200{--tw-border-opacity:1;border-color:rgb(253 230 138/var(--tw-border-opacity,1))}.border-amber-300\\/70{border-color:#fcd34db3}.border-black\\/10{border-color:#0000001a}.border-neutral-200{--tw-border-opacity:1;border-color:rgb(229 229 229/var(--tw-border-opacity,1))}.border-neutral-300{--tw-border-opacity:1;border-color:rgb(212 212 212/var(--tw-border-opacity,1))}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity,1))}.bg-\\[var\\(--gh-accent-color\\)\\]{background-color:var(--gh-accent-color)}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 251 235/var(--tw-bg-opacity,1))}.bg-black\\/5{background-color:#0000000d}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity,1))}.bg-neutral-800{--tw-bg-opacity:1;background-color:rgb(38 38 38/var(--tw-bg-opacity,1))}.bg-neutral-900{--tw-bg-opacity:1;background-color:rgb(23 23 23/var(--tw-bg-opacity,1))}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white\\/75{background-color:#ffffffbf}.bg-yellow-300\\/40{background-color:#fde04766}.bg-gradient-to-b{background-image:linear-gradient(to bottom, var(--tw-gradient-stops))}.from-\\[rgba\\(0\\,0\\,0\\,0\\.2\\)\\]{--tw-gradient-from:#0003 var(--tw-gradient-from-position);--tw-gradient-to:#0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)}.bg-cover{background-size:cover}.bg-no-repeat{background-repeat:no-repeat}.fill-black{fill:#000}.fill-black\\/50{fill:#00000080}.fill-black\\/75{fill:#000000bf}.fill-neutral-300\\/80{fill:#d4d4d4cc}.fill-white{fill:#fff}.stroke-black{stroke:#000}.stroke-black\\/50{stroke:#00000080}.stroke-white{stroke:#fff}.stroke-\\[3px\\]{stroke-width:3px}.p-0{padding:0}.p-1{padding:.4rem}.p-2{padding:.8rem}.p-\\[28px\\]{padding:28px}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.4rem;padding-right:.4rem}.px-2{padding-left:.8rem;padding-right:.8rem}.px-3{padding-left:1.2rem;padding-right:1.2rem}.px-4{padding-left:1.6rem;padding-right:1.6rem}.px-5{padding-left:2rem;padding-right:2rem}.px-8{padding-left:3.2rem;padding-right:3.2rem}.py-0\\.5{padding-top:.2rem;padding-bottom:.2rem}.py-1{padding-top:.4rem;padding-bottom:.4rem}.py-1\\.5{padding-top:.6rem;padding-bottom:.6rem}.py-2{padding-top:.8rem;padding-bottom:.8rem}.py-3{padding-top:1.2rem;padding-bottom:1.2rem}.py-6{padding-top:2.4rem;padding-bottom:2.4rem}.py-\\[14px\\]{padding-top:14px;padding-bottom:14px}.pb-2{padding-bottom:.8rem}.pb-3{padding-bottom:1.2rem}.pb-4{padding-bottom:1.6rem}.pb-7{padding-bottom:2.8rem}.pb-8{padding-bottom:3.2rem}.pb-\\[68px\\]{padding-bottom:68px}.pb-\\[8px\\]{padding-bottom:8px}.pl-0{padding-left:0}.pl-1{padding-left:.4rem}.pl-\\[1px\\]{padding-left:1px}.pl-\\[40px\\]{padding-left:40px}.pr-0{padding-right:0}.pr-2{padding-right:.8rem}.pr-4{padding-right:1.6rem}.pr-\\[1px\\]{padding-right:1px}.pt-0{padding-top:0}.pt-10{padding-top:4rem}.pt-3{padding-top:1.2rem}.pt-6{padding-top:2.4rem}.pt-\\[48px\\]{padding-top:48px}.pt-\\[68px\\]{padding-top:68px}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:2.4rem}.text-\\[1\\.3rem\\]{font-size:1.3rem}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-\\[16px\\]{font-size:16px}.text-\\[2\\.2rem\\]{font-size:2.2rem}.text-base{font-size:1.3rem}.text-lg{font-size:1.65rem}.text-md{font-size:1.5rem}.text-sm{font-size:1.4rem}.text-xs{font-size:1.2rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-5{line-height:1.25rem}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-snug{line-height:1.375}.tracking-tight{letter-spacing:-.018em}.text-\\[rgba\\(0\\,0\\,0\\,0\\.4\\)\\]{color:#0006}.text-amber-800{--tw-text-opacity:1;color:rgb(146 64 14/var(--tw-text-opacity,1))}.text-amber-900{--tw-text-opacity:1;color:rgb(120 53 15/var(--tw-text-opacity,1))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.text-black\\/30{color:#0000004d}.text-black\\/50{color:#00000080}.text-black\\/90{color:#000000e6}.text-neutral-400{--tw-text-opacity:1;color:rgb(163 163 163/var(--tw-text-opacity,1))}.text-neutral-500{--tw-text-opacity:1;color:rgb(115 115 115/var(--tw-text-opacity,1))}.text-neutral-600{--tw-text-opacity:1;color:rgb(82 82 82/var(--tw-text-opacity,1))}.text-neutral-700{--tw-text-opacity:1;color:rgb(64 64 64/var(--tw-text-opacity,1))}.text-neutral-900{--tw-text-opacity:1;color:rgb(23 23 23/var(--tw-text-opacity,1))}.text-neutral-900\\/25{color:#17171740}.text-neutral-900\\/40{color:#17171766}.text-neutral-900\\/50{color:#17171780}.text-neutral-900\\/55{color:#1717178c}.text-neutral-900\\/60{color:#17171799}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-80{opacity:.8}.shadow-lg{--tw-shadow:#0000000f 0px 0px 0px 1px, #0000000a 0px 2px 2px -1px, #0000000a 0px 3px 3px -1px, #00000008 0px 5px 5px -2px, #00000008 0px 10px 10px -3px, #00000008 0px 24px 24px -8px;--tw-shadow-colored:0px 0px 0px 1px var(--tw-shadow-color), 0px 2px 2px -1px var(--tw-shadow-color), 0px 3px 3px -1px var(--tw-shadow-color), 0px 5px 5px -2px var(--tw-shadow-color), 0px 10px 10px -3px var(--tw-shadow-color), 0px 24px 24px -8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.shadow-modal{--tw-shadow:0 3.8px 2.2px #00000007, 0 9.2px 5.3px #0000000a, 0 17.3px 10px #0000000d, 0 30.8px 17.9px #0000000f, 0 57.7px 33.4px #00000012, 0 138px 80px #0000001a;--tw-shadow-colored:0 3.8px 2.2px var(--tw-shadow-color), 0 9.2px 5.3px var(--tw-shadow-color), 0 17.3px 10px var(--tw-shadow-color), 0 30.8px 17.9px var(--tw-shadow-color), 0 57.7px 33.4px var(--tw-shadow-color), 0 138px 80px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.outline-0{outline-width:0}.blur{--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-\\[2px\\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-\\[border-color\\]{transition-property:border-color;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-\\[opacity\\]{transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-\\[padding\\]{transition-property:padding;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-none{transition-property:none}.transition-opacity{transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.delay-100{transition-delay:.1s}.delay-150{transition-delay:.15s}.delay-\\[400ms\\]{transition-delay:.4s}.duration-0{transition-duration:0s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:1s\\]{animation-delay:1s}.\\[border-bottom-left-radius\\:12px_16px\\]{border-bottom-left-radius:12px 16px}.\\[overflow-wrap\\:anywhere\\]{overflow-wrap:anywhere}body,html{overflow:hidden}:host{all:initial!important}html{font-size:62.5%}body{font-size:1.5rem}.gh-comment-content p:empty:after{content:"\xA0"}.gh-comment-content a{word-break:break-word;color:var(--gh-accent-color);text-decoration:underline}.gh-comment-content blockquote{border-left:3px solid var(--gh-accent-color);margin:0 0 1.2rem;padding-left:1rem}.gh-comment-content p{margin:0 0 1.2rem}.gh-comment-content p:last-child,.gh-comment-content blockquote:last-child{margin:0}.gh-comment-content p.is-editor-empty:first-child:before{color:#0000004d!important}.dark .gh-comment-content p.is-editor-empty:first-child:before{color:#fff6!important}.ProseMirror p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;pointer-events:none;--tw-text-opacity:1;height:0;color:rgb(212 212 212/var(--tw-text-opacity))}.ProseMirror *{white-space:pre-wrap;word-wrap:break-word}[contenteditable]:focus{outline:0 solid #0000}.ghost-display{display:block!important}.hover\\:border-amber-400:hover{--tw-border-opacity:1;border-color:rgb(251 191 36/var(--tw-border-opacity,1))}.hover\\:bg-amber-100:hover{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity,1))}.hover\\:bg-black\\/10:hover{background-color:#0000001a}.hover\\:bg-neutral-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 245/var(--tw-bg-opacity,1))}.hover\\:fill-black\\/75:hover{fill:#000000bf}.hover\\:text-black\\/50:hover{color:#00000080}.hover\\:text-black\\/75:hover{color:#000000bf}.hover\\:text-neutral-900:hover{--tw-text-opacity:1;color:rgb(23 23 23/var(--tw-text-opacity,1))}.hover\\:text-neutral-900\\/70:hover{color:#171717b3}.hover\\:text-neutral-900\\/80:hover{color:#171717cc}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-40:hover{opacity:.4}.hover\\:opacity-90:hover{opacity:.9}.hover\\:brightness-105:hover{--tw-brightness:brightness(1.05);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:border-neutral-300:focus{--tw-border-opacity:1;border-color:rgb(212 212 212/var(--tw-border-opacity,1))}.focus\\:border-red-500:focus{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.focus\\:outline-0:focus{outline-width:0}.focus-visible\\:outline-none:focus-visible{outline-offset:2px;outline:2px solid #0000}.disabled\\:bg-black\\/5:disabled{background-color:#0000000d}.disabled\\:text-neutral-900\\/30:disabled{color:#1717174d}.group:hover .group-hover\\:translate-x-0{--tw-translate-x:0px;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\\:stroke-black\\/75{stroke:#000000bf}.group:hover .group-hover\\:opacity-0{opacity:0}.group:hover .group-hover\\:opacity-100{opacity:1}.group:focus-visible .group-focus-visible\\:opacity-0{opacity:0}.group:focus-visible .group-focus-visible\\:opacity-100{opacity:1}.dark\\:border-amber-400\\/30:is(.dark *){border-color:#fbbf244d}.dark\\:border-amber-500\\/40:is(.dark *){border-color:#f59e0b66}.dark\\:border-neutral-700:is(.dark *){--tw-border-opacity:1;border-color:rgb(64 64 64/var(--tw-border-opacity,1))}.dark\\:bg-amber-400\\/10:is(.dark *){background-color:#fbbf241a}.dark\\:bg-amber-500\\/15:is(.dark *){background-color:#f59e0b26}.dark\\:bg-neutral-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(38 38 38/var(--tw-bg-opacity,1))}.dark\\:bg-white\\/10:is(.dark *){background-color:#ffffff1a}.dark\\:bg-white\\/15:is(.dark *){background-color:#ffffff26}.dark\\:bg-white\\/70:is(.dark *){background-color:#ffffffb3}.dark\\:bg-yellow-500\\/40:is(.dark *){background-color:#eab30866}.dark\\:fill-white:is(.dark *){fill:#fff}.dark\\:fill-white\\/60:is(.dark *){fill:#fff9}.dark\\:fill-white\\/75:is(.dark *){fill:#ffffffbf}.dark\\:stroke-black\\/60:is(.dark *){stroke:#0009}.dark\\:stroke-white:is(.dark *){stroke:#fff}.dark\\:stroke-white\\/60:is(.dark *){stroke:#fff9}.dark\\:text-\\[rgba\\(255\\,255\\,255\\,0\\.5\\)\\]:is(.dark *){color:#ffffff80}.dark\\:text-\\[rgba\\(255\\,255\\,255\\,0\\.85\\)\\]:is(.dark *){color:#ffffffd9}.dark\\:text-amber-100:is(.dark *){--tw-text-opacity:1;color:rgb(254 243 199/var(--tw-text-opacity,1))}.dark\\:text-neutral-100:is(.dark *){--tw-text-opacity:1;color:rgb(245 245 245/var(--tw-text-opacity,1))}.dark\\:text-neutral-200:is(.dark *){--tw-text-opacity:1;color:rgb(229 229 229/var(--tw-text-opacity,1))}.dark\\:text-neutral-300:is(.dark *){--tw-text-opacity:1;color:rgb(212 212 212/var(--tw-text-opacity,1))}.dark\\:text-neutral-400:is(.dark *){--tw-text-opacity:1;color:rgb(163 163 163/var(--tw-text-opacity,1))}.dark\\:text-red-500:is(.dark *){--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.dark\\:text-white:is(.dark *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-white\\/30:is(.dark *){color:#ffffff4d}.dark\\:text-white\\/45:is(.dark *){color:#ffffff73}.dark\\:text-white\\/50:is(.dark *){color:#ffffff80}.dark\\:text-white\\/60:is(.dark *){color:#fff9}.dark\\:text-white\\/70:is(.dark *){color:#ffffffb3}.dark\\:text-white\\/85:is(.dark *){color:#ffffffd9}.dark\\:text-white\\/90:is(.dark *){color:#ffffffe6}.dark\\:hover\\:border-amber-400\\/50:hover:is(.dark *){border-color:#fbbf2480}.dark\\:hover\\:bg-amber-400\\/20:hover:is(.dark *){background-color:#fbbf2433}.dark\\:hover\\:bg-neutral-700:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(64 64 64/var(--tw-bg-opacity,1))}.dark\\:hover\\:bg-white\\/20:hover:is(.dark *){background-color:#fff3}.dark\\:hover\\:fill-white\\/75:hover:is(.dark *){fill:#ffffffbf}.dark\\:hover\\:text-neutral-100:hover:is(.dark *){--tw-text-opacity:1;color:rgb(245 245 245/var(--tw-text-opacity,1))}.dark\\:hover\\:text-white:hover:is(.dark *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:text-white\\/50:hover:is(.dark *){color:#ffffff80}.dark\\:hover\\:text-white\\/70:hover:is(.dark *){color:#ffffffb3}.dark\\:hover\\:text-white\\/75:hover:is(.dark *){color:#ffffffbf}.dark\\:disabled\\:bg-white\\/15:disabled:is(.dark *){background-color:#ffffff26}.dark\\:disabled\\:text-white\\/35:disabled:is(.dark *){color:#ffffff59}.group:hover .dark\\:group-hover\\:stroke-white\\/75:is(.dark *){stroke:#ffffffbf}@media (width>=481px){.sm\\:-left-5{left:-2rem}.sm\\:bottom-2{bottom:.8rem}.sm\\:right-2{right:.8rem}.sm\\:right-8{right:3.2rem}.sm\\:top-9{top:3.6rem}.sm\\:mb-10{margin-bottom:4rem}.sm\\:mb-12{margin-bottom:4.8rem}.sm\\:ml-9{margin-left:3.6rem}.sm\\:mr-3{margin-right:1.2rem}.sm\\:mt-8{margin-top:3.2rem}.sm\\:block{display:block}.sm\\:inline-block{display:inline-block}.sm\\:inline{display:inline}.sm\\:hidden{display:none}.sm\\:h-12{height:4.8rem}.sm\\:h-auto{height:auto}.sm\\:w-4{width:1.6rem}.sm\\:w-\\[500px\\]{width:500px}.sm\\:w-\\[720px\\]{width:720px}.sm\\:w-auto{width:auto}.sm\\:w-fit{width:fit-content}.sm\\:min-w-\\[100px\\]{min-width:100px}.sm\\:min-w-\\[64px\\]{min-width:64px}.sm\\:flex-row{flex-direction:row}.sm\\:justify-normal{justify-content:normal}.sm\\:rounded-xl{border-radius:1.2rem}.sm\\:p-0{padding:0}.sm\\:p-8{padding:3.2rem}.sm\\:px-3{padding-left:1.2rem;padding-right:1.2rem}.sm\\:px-8{padding-left:3.2rem;padding-right:3.2rem}.sm\\:py-10{padding-top:4rem;padding-bottom:4rem}.sm\\:pb-0{padding-bottom:0}.sm\\:pb-10{padding-bottom:4rem}.sm\\:pb-8{padding-bottom:3.2rem}.sm\\:pl-0{padding-left:0}.sm\\:pl-\\[44px\\]{padding-left:44px}.sm\\:pr-10{padding-right:4rem}.sm\\:pr-4{padding-right:1.6rem}.sm\\:pt-0{padding-top:0}.sm\\:pt-\\[40px\\]{padding-top:40px}.sm\\:pt-\\[4vmin\\]{padding-top:4vmin}.sm\\:pt-\\[56px\\]{padding-top:56px}.sm\\:text-left{text-align:left}.sm\\:text-2xl{font-size:2.4rem}.sm\\:text-lg{font-size:1.65rem}.sm\\:text-sm{font-size:1.4rem}.sm\\:\\[border-bottom-left-radius\\:16px_16px\\]{border-bottom-left-radius:16px}}`,J_=O.forwardRef(function({children:e,onResize:t,style:n,title:r},i){return(0,m.jsx)(K_,{ref:i,head:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`style`,{dangerouslySetInnerHTML:{__html:q_}}),(0,m.jsx)(`meta`,{content:`width=device-width, initial-scale=1.0, maximum-scale=1.0`,name:`viewport`})]}),style:n,title:r,onResize:t,children:e})}),Y_=O.forwardRef(function({children:e,style:t,title:n},r){let[i,a]=(0,O.useState)(t),o=(0,O.useCallback)(e=>{a(t=>({...t,height:`${e.scrollHeight}px`}))},[]);return(0,m.jsx)(J_,{ref:r,style:i,title:n,onResize:o,children:e})}),X_=O.forwardRef(function({children:e},t){return(0,m.jsx)(Y_,{ref:t,style:{width:`100%`,height:`400px`},title:`comments-frame`,children:e})}),Z_=({children:e,title:t})=>(0,m.jsx)(J_,{style:{zIndex:`3999999`,position:`fixed`,left:`0`,top:`0`,width:`100%`,height:`100%`,overflow:`hidden`},title:t,children:e}),Q_=({show:e,children:t,title:n,callback:r})=>{let{dispatchAction:i}=k(),a=()=>{i(`closePopup`,{}),r&&r(!1)};return(0,O.useEffect)(()=>{let e=e=>{e.key===`Escape`&&a()};return window.addEventListener(`keydown`,e,{passive:!0}),()=>{window.removeEventListener(`keydown`,e)}}),(0,m.jsx)(cp,{appear:!0,show:e,children:(0,m.jsx)(Z_,{title:n,children:(0,m.jsx)(`div`,{children:(0,m.jsx)(cp.Child,{enter:`transition duration-200 linear`,enterFrom:`opacity-0`,enterTo:`opacity-100`,leave:`transition duration-200 linear`,leaveFrom:`opacity-100`,leaveTo:`opacity-0`,children:(0,m.jsx)(`div`,{className:`to-rgba(0,0,0,0.1) fixed left-0 top-0 flex h-screen w-screen justify-center overflow-hidden bg-gradient-to-b from-[rgba(0,0,0,0.2)] pt-0 backdrop-blur-[2px] sm:pt-[4vmin]`,onMouseDown:a,children:(0,m.jsx)(cp.Child,{enter:`transition duration-200 delay-150 linear`,enterFrom:`translate-y-4 opacity-0`,enterTo:`translate-y-0 opacity-100`,leave:`transition duration-200 linear`,leaveFrom:`translate-y-0 opacity-100`,leaveTo:`translate-y-4 opacity-0`,children:t})})})})})})},$_=e=>(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`gh-portal-closeicon`,alt:`Close`,...e,children:[(0,m.jsx)(`defs`,{children:(0,m.jsx)(`style`,{children:`.a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px !important;}`})}),(0,m.jsx)(`path`,{className:`a`,d:`M.75 23.249l22.5-22.5M23.25 23.249L.75.749`})]}),ev=({close:e})=>(0,m.jsx)(`button`,{className:`absolute right-6 top-5 opacity-30 transition-opacity duration-100 ease-out hover:opacity-40 sm:right-8 sm:top-9`,type:`button`,onClick:e,children:(0,m.jsx)($_,{className:`size-5 p-1 pr-0`})}),tv=e=>{let t=(0,O.useRef)(null),n=(0,O.useRef)(null),{dispatchAction:r,member:i,accentColor:a,t:o}=k(),[s,c]=(0,O.useState)(i.name??``),[l,u]=(0,O.useState)(i.expertise??``),d=50;i.expertise&&(d-=i.expertise.length);let[f,p]=(0,O.useState)(d),[h,_]=(0,O.useState)({name:``,expertise:``}),v=t=>{r(`closePopup`,{}),e.callback(t)},y=async()=>{s.trim()===``?(_({name:o(`Enter your name`),expertise:``}),c(``),t.current?.focus()):(await r(`updateMember`,{name:s,expertise:l}),v(!0))};(0,O.useEffect)(()=>{if(!te()){let r=setTimeout(()=>{e.expertiseAutofocus?n.current?.focus():t.current?.focus()},200);return()=>{clearTimeout(r)}}},[t,n,e.expertiseAutofocus]);let b=()=>{let e=e=>(0,m.jsx)(cp,{enter:`transition duration-200 delay-[400ms] ease-out`,enterFrom:`opacity-0 translate-y-2`,enterTo:`opacity-100 translate-y-0`,leave:`transition duration-200 ease-in`,leaveFrom:`opacity-100 translate-y-0`,leaveTo:`opacity-0 translate-y-2`,appear:!0,children:(0,m.jsxs)(`div`,{className:`flex flex-row items-center justify-start gap-3 pr-4`,children:[(0,m.jsx)(`div`,{className:`size-10 shrink-0 rounded-full border-2 border-white bg-cover bg-no-repeat`,style:{backgroundImage:`url(${e.avatar})`}}),(0,m.jsxs)(`div`,{className:`flex flex-col items-start justify-center`,children:[(0,m.jsx)(`div`,{className:`font-sans text-base font-semibold tracking-tight text-white`,children:e.name}),(0,m.jsx)(`div`,{className:`font-sans text-sm tracking-tight text-neutral-400`,children:e.expertise})]})]})},e.name),t=[],n=[{avatar:`https://randomuser.me/api/portraits/men/32.jpg`,name:`James Fletcher`,expertise:o(`Full-time parent`)},{avatar:`https://randomuser.me/api/portraits/women/30.jpg`,name:`Naomi Schiff`,expertise:o(`Founder @ Acme Inc`)},{avatar:`https://randomuser.me/api/portraits/men/4.jpg`,name:`Franz Tost`,expertise:o(`Neurosurgeon`)},{avatar:`https://randomuser.me/api/portraits/women/51.jpg`,name:`Katrina Klosp`,expertise:o(`Local resident`)}];for(let r=0;r<n.length;r++)t.push(e(n[r]));return t},x=(0,g.default)(o(`{amount} characters left`),`{amount}`,()=>(0,m.jsx)(`b`,{children:f}));return(0,m.jsx)(`div`,{className:`rounded-none relative h-screen w-screen overflow-hidden bg-white p-[28px] text-center shadow-modal sm:h-auto sm:w-[720px] sm:rounded-xl sm:p-0`,"data-testid":`profile-modal`,onMouseDown:e=>e.stopPropagation(),children:(0,m.jsxs)(`div`,{className:`flex`,children:[(0,m.jsx)(`div`,{className:`hidden w-[50%] flex-col items-center justify-center bg-neutral-800 sm:block sm:p-8`,children:(0,m.jsx)(`div`,{className:`mt-[-1px] flex flex-col gap-9 text-left`,children:b()})}),(0,m.jsxs)(`div`,{className:`p-0 sm:p-8`,children:[(0,m.jsxs)(`h1`,{className:`mb-1 text-center font-sans text-2xl font-bold tracking-tight text-black sm:text-left`,children:[o(`Complete your profile`),(0,m.jsx)(`span`,{className:`hidden sm:inline`,children:`.`})]}),(0,m.jsx)(`p`,{className:`pr-0 text-center font-sans text-md leading-snug text-neutral-500 sm:pr-10 sm:text-left`,children:o(`Add context to your comment, share your name and expertise to foster a healthy discussion.`)}),(0,m.jsxs)(`section`,{className:`mt-8 text-left`,children:[(0,m.jsxs)(`div`,{className:`mb-2 flex flex-row justify-between`,children:[(0,m.jsx)(`label`,{className:`font-sans text-base font-semibold`,htmlFor:`comments-name`,children:o(`Name`)}),(0,m.jsx)(cp,{enter:`transition duration-300 ease-out`,enterFrom:`opacity-0`,enterTo:`opacity-100`,leave:`transition duration-100 ease-out`,leaveFrom:`opacity-100`,leaveTo:`opacity-0`,show:!!h.name,children:(0,m.jsx)(`div`,{className:`font-sans text-sm text-red-500`,children:h.name})})]}),(0,m.jsx)(`input`,{ref:t,className:`flex h-[42px] w-full items-center rounded border border-neutral-200 px-3 font-sans text-[16px] outline-0 transition-[border-color] duration-200 focus:border-neutral-300 ${h.name&&`border-red-500 focus:border-red-500`}`,"data-testid":`name-input`,id:`comments-name`,maxLength:64,name:`name`,placeholder:o(`Jamie Larson`),type:`text`,value:s,onChange:e=>{c(e.currentTarget.value)},onKeyDown:e=>{e.key===`Enter`&&(c(e.currentTarget.value),y().catch(console.error))}}),(0,m.jsxs)(`div`,{className:`mb-2 mt-6 flex flex-row justify-between`,children:[(0,m.jsx)(`label`,{className:`font-sans text-base font-semibold`,htmlFor:`comments-name`,children:o(`Expertise`)}),(0,m.jsx)(`div`,{className:`font-sans text-base text-neutral-400 ${f===0&&`text-red-500`}`,children:x})]}),(0,m.jsx)(`input`,{ref:n,className:`flex h-[42px] w-full items-center rounded border border-neutral-200 px-3 font-sans text-[16px] outline-0 transition-[border-color] duration-200 focus:border-neutral-300 ${f===0&&`border-red-500 focus:border-red-500`}`,"data-testid":`expertise-input`,id:`comments-expertise`,maxLength:50,name:`expertise`,placeholder:o(`Head of Marketing at Acme, Inc`),type:`text`,value:l,onChange:e=>{let t=e.currentTarget.value;p(50-t.length),u(t)},onKeyDown:e=>{e.key===`Enter`&&(u(e.currentTarget.value),y().catch(console.error))}}),(0,m.jsx)(`button`,{className:`mt-10 flex h-[42px] w-full items-center justify-center rounded-md px-8 font-sans text-md font-semibold text-white opacity-100 transition-opacity duration-200 ease-linear hover:opacity-90`,"data-testid":`save-button`,style:{backgroundColor:a??`#000000`},type:`button`,onClick:()=>{y().catch(console.error)},children:o(`Save`)})]})]}),(0,m.jsx)(ev,{close:()=>v(!1)})]})})},nv=({commentId:e})=>{let{dispatchAction:t,isMember:n,isPaidOnly:r}=k(),i=e=>{e.stopPropagation()},a=()=>{t(`closePopup`,{})};return(0,m.jsx)(`div`,{className:`rounded-none relative h-screen w-screen bg-white p-[28px] text-center shadow-modal sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left`,onClick:a,onMouseDown:i,children:(0,m.jsxs)(`div`,{className:`flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0`,children:[(0,m.jsx)(`div`,{className:`flex flex-col items-center pb-3 pt-6`,"data-testid":`cta-box`,children:(0,m.jsx)(ce,{commentId:e,isFirst:!n,isPaid:r})}),(0,m.jsx)(ev,{close:a})]})})},rv=e=>(0,m.jsx)(`svg`,{width:`26px`,height:`26px`,viewBox:`-1 -1 26 26`,xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,...e,children:(0,m.jsx)(`g`,{id:`check-circle`,stroke:`none`,strokeWidth:1,fill:`none`,fillRule:`evenodd`,children:(0,m.jsx)(`path`,{className:`animated-check-circle`,d:`M19.6004116,2.71490714 C17.5353801,1.0196018 14.8927356,0 12,0 C5.38938053,0 0,5.38938053 0,12 C0,18.6106195 5.38938053,24 12,24 C18.6106195,24 24,18.6106195 24,12 C24,9.71681416 23.3628319,7.59292035 22.2743363,5.78761062 L11.0442478,17.0442478 L5.49557522,11.4955752`,id:`Shape`,stroke:`#FFFFFF`,strokeWidth:2})})}),iv={addDetailsPopup:tv,reportPopup:({comment:e})=>{let{dispatchAction:t,t:n}=k(),[r,i]=(0,O.useState)(`default`),a=`bg-red-600`;r===`sent`&&(a=`bg-green-600`);let o=n(`Report`),s=o;r===`sending`?o=n(`Sending`):r===`sent`&&(o=n(`Sent`));let c=(0,m.jsx)(ue,{className:`mr-2 size-[24px] fill-white`}),l=(0,m.jsx)(rv,{className:`mr-2 size-[16px]`}),u=null;r===`sending`?u=c:r===`sent`&&(u=l);let d=e=>{e.stopPropagation()},f=()=>{t(`closePopup`,{})};return(0,m.jsx)(`div`,{className:`rounded-none relative h-screen w-screen bg-white p-[28px] text-center shadow-modal sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left`,onMouseDown:d,children:(0,m.jsxs)(`div`,{className:`flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0`,children:[(0,m.jsx)(`h1`,{className:`mb-1.5 font-sans text-[2.2rem] font-bold tracking-tight text-black`,children:(0,m.jsx)(`span`,{children:n(`Report this comment?`)})}),(0,m.jsx)(`p`,{className:`px-4 font-sans text-md leading-9 text-black sm:pl-0 sm:pr-4`,children:n(`Your request will be sent to the owner of this site.`)}),(0,m.jsxs)(`div`,{className:`mt-auto flex flex-col items-center justify-start gap-4 sm:mt-8 sm:flex-row`,children:[(0,m.jsxs)(`button`,{className:`flex h-[44px] w-full items-center justify-center rounded-md px-4 font-sans text-md font-medium text-white transition duration-200 ease-linear sm:w-fit ${a} opacity-100 hover:opacity-90`,style:{backgroundColor:a??`#000000`},type:`button`,onClick:n=>{n.stopPropagation(),i(`sending`),setTimeout(()=>{i(`sent`),t(`reportComment`,e),setTimeout(()=>{f()},750)},1e3)},children:[(0,m.jsxs)(`span`,{className:`invisible whitespace-nowrap`,children:[s,(0,m.jsx)(`br`,{}),(0,m.jsxs)(`span`,{className:`flex h-[44px] items-center justify-center whitespace-nowrap`,children:[c,n(`Sending`)]}),(0,m.jsx)(`br`,{}),(0,m.jsxs)(`span`,{className:`flex h-[44px] items-center justify-center whitespace-nowrap`,children:[l,n(`Sent`)]})]}),(0,m.jsxs)(`span`,{className:`absolute flex h-[44px] items-center justify-center whitespace-nowrap`,children:[u,o]})]}),(0,m.jsx)(`button`,{className:`h-[44px] w-full px-2 font-sans text-md font-medium text-neutral-500 dark:text-neutral-400 sm:w-fit`,type:`button`,onClick:f,children:n(`Cancel`)})]}),(0,m.jsx)(ev,{close:f})]})})},ctaPopup:nv,deletePopup:({comment:e})=>{let{dispatchAction:t,t:n}=k(),[r,i]=(0,O.useState)(`default`),[a,o]=(0,O.useState)(!1),s=`bg-red-600`;r===`sent`&&(s=`bg-green-600`);let c=n(`Delete`),l=c;r===`sending`?c=n(`Deleting`):r===`sent`&&(c=n(`Deleted`));let u=(0,m.jsx)(ue,{className:`mr-2 size-[24px] fill-white`}),d=(0,m.jsx)(rv,{className:`mr-2 size-[16px]`}),f=null;r===`sending`?f=u:r===`sent`&&(f=d);let p=e=>{e.stopPropagation()},h=()=>{t(`closePopup`,{})};return(0,m.jsx)(`div`,{className:`rounded-none relative h-screen w-screen bg-white p-[28px] text-center shadow-modal sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left`,"data-testid":`delete-popup`,onMouseDown:p,children:(0,m.jsxs)(`div`,{className:`flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0`,children:[(0,m.jsx)(`h1`,{className:`mb-1.5 font-sans text-[2.2rem] font-bold tracking-tight text-black`,children:(0,m.jsx)(`span`,{children:n(`Are you sure?`)})}),(0,m.jsx)(`p`,{className:`px-4 font-sans text-md leading-9 text-black sm:pl-0 sm:pr-4`,children:n(`Once deleted, this comment can’t be recovered.`)}),(0,m.jsxs)(`div`,{className:`mt-auto flex flex-col items-center justify-start gap-4 sm:mt-8 sm:flex-row`,children:[(0,m.jsxs)(`button`,{className:`flex h-[44px] w-full items-center justify-center rounded-md px-4 font-sans text-md font-medium text-white transition duration-200 ease-linear sm:w-fit ${s} opacity-100 hover:opacity-90`,"data-testid":`delete-popup-confirm`,disabled:a,type:`button`,onClick:n=>{n.stopPropagation(),!a&&(o(!0),i(`sending`),setTimeout(()=>{i(`sent`),t(`deleteComment`,e),setTimeout(()=>{h()},750)},1e3))},children:[(0,m.jsxs)(`span`,{className:`invisible whitespace-nowrap`,children:[l,(0,m.jsx)(`br`,{}),(0,m.jsxs)(`span`,{className:`flex h-[44px] items-center justify-center whitespace-nowrap`,children:[u,n(`Deleting`)]}),(0,m.jsx)(`br`,{}),(0,m.jsxs)(`span`,{className:`flex h-[44px] items-center justify-center whitespace-nowrap`,children:[d,n(`Deleted`)]})]}),(0,m.jsxs)(`span`,{className:`absolute flex h-[44px] items-center justify-center whitespace-nowrap`,children:[f,c]})]}),(0,m.jsx)(`button`,{className:`h-[44px] w-full px-2 font-sans text-md font-medium text-neutral-500 dark:text-neutral-400 sm:w-fit`,type:`button`,onClick:h,children:n(`Cancel`)})]}),(0,m.jsx)(ev,{close:h})]})})}},av=()=>{let{popup:e}=k(),[t,n]=(0,O.useState)(e);if((0,O.useEffect)(()=>{if(e!==null&&n(e),e===null){let e=setTimeout(()=>{n(null)},250);return()=>{clearTimeout(e)}}},[e,n]),!t||!t.type)return null;let{type:r,...i}=e??t,a=iv[r];if(!a)return console.warn(`Unknown popup of type `,r),null;let o=e===t;return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(Q_,{callback:i.callback,show:o,title:r,children:(0,m.jsx)(a,{...i})})})},ov={"{amount} characters left":`{amount} karakters oor`,"{amount} comments":`{amount} kommentaar`,"{amount} hrs ago":`{amount} ure gelede`,"{amount} mins ago":`{amount} minute gelede`,"{amount} more":`{amount} meer`,"1 comment":`1 kommentaar`,"Add comment":`Voeg kommentaar by`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Voeg konteks by jou kommentaar, deel jou naam en kundigheid om 'n gesonde bespreking te bevorder.`,"Add reply":`Voeg antwoord by`,"Add your expertise":``,"Already a member?":`Reeds 'n lid?`,Anonymous:`Anoniem`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Word 'n lid van {publication} om kommentaar te lewer.`,"Become a paid member of {publication} to start commenting.":`Word 'n betaalde lid van {publication} om kommentaar te lewer.`,Best:``,Cancel:`Kanselleer`,Comment:`Kommentaar`,"Commenting disabled":``,"Complete your profile":`Voltooi jou profiel`,Delete:`Skrap`,Deleted:``,"Deleted member":`Geskrapte lid`,Deleting:``,Discussion:`Bespreking`,Dislike:``,Edit:`Redigeer`,"Edit this comment":`Redigeer hierdie kommentaar`,edited:`geredigeer`,"Enter your name":`Voer jou naam in`,Expertise:`Kundigheid`,"Founder @ Acme Inc":`Stigter @ Acme Inc`,"Full-time parent":`Voltydse ouer`,"Head of Marketing at Acme, Inc":`Hoof van Bemarking by Acme, Inc`,"Hidden for members":``,"Hide comment":`Versteek kommentaar`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Sluit aan by die bespreking`,"Just now":`Sopas`,Like:``,"Load more ({amount})":``,"Local resident":`Plaaslike inwoner`,"Member discussion":`Lidmaat bespreking`,Name:`Naam`,Neurosurgeon:`Neurochirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Een uur gelede`,"One min ago":`Een minuut gelede`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Antwoord`,"Reply to":``,"Reply to comment":`Antwoord op kommentaar`,Report:`Rapporteer`,"Report comment":`Rapporteer kommentaar`,"Report this comment?":`Rapporteer hierdie kommentaar?`,Save:`Stoor`,"See full discussion":``,Sending:`Besig om te stuur`,Sent:`Gestuur`,"Show {amount} more replies":`Wys {amount} meer antwoorde`,"Show 1 more reply":`Wys nog 1 antwoord`,"Show comment":`Wys kommentaar`,"Sign in":`Teken in`,"Sign up now":`Sluit nou aan`,"Sort by":``,"Start the conversation":`Begin die gesprek`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Hierdie kommentaar is weggesteek.`,"This comment has been removed.":`Hierdie kommentaar is verwyder.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Gradeer nou op`,"View in admin":``,Yesterday:`Gister`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Jou versoek sal aan die eienaar van hierdie webwerf gestuur word.`},sv={"{amount} characters left":`الحروف المتبقية : {amount}`,"{amount} comments":`{amount} تعليق/ات`,"{amount} hrs ago":`منذ {amount} ساعات`,"{amount} mins ago":`منذ {amount} دقيقة`,"{amount} more":`{amount} المزيد`,"1 comment":`تعليق واحد`,"Add comment":`اضف تعليق`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`قم بإضافة سياق لتعليقك، شارك اسمك و مجال خبرتك لكي نرعى محادثة مثمرة`,"Add reply":`ردّ`,"Add your expertise":``,"Already a member?":`هل انت مسجل بالفعل؟`,Anonymous:`مجهول`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`يجب أن تصبح عضوًا فى {publication} لتستطيع التعليق`,"Become a paid member of {publication} to start commenting.":`يجب ان تكون عضويتك مدفوعة فى {publication} لكي تستطيع التعليق`,Best:``,Cancel:`إلغاء`,Comment:`تعليق`,"Commenting disabled":``,"Complete your profile":`إكمال ملفك الشخصى`,Delete:`حذف`,Deleted:``,"Deleted member":`الاعضاء المحذوفين`,Deleting:``,Discussion:`النقاش`,Dislike:``,Edit:`تعديل`,"Edit this comment":`عدّل هذا التعليق`,edited:`تم التعديل`,"Enter your name":`اكتب اسمك`,Expertise:`مجال تخصصك`,"Founder @ Acme Inc":`مؤسس لدى شركة أكمي`,"Full-time parent":`أب بدوام كامل`,"Head of Marketing at Acme, Inc":`رئيس وحدة التسويق لدى شركة أكمى`,"Hidden for members":``,"Hide comment":`اخف التعليق`,"Jamie Larson":`فلان الفلانى`,"Join the discussion":`انضم للمحادثة`,"Just now":`الآن`,Like:``,"Load more ({amount})":``,"Local resident":`مقيم محلى`,"Member discussion":`مناقشة الاعضاء`,Name:`الاسم`,Neurosurgeon:`جراح المخ و الاعصاب`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`منذ ساعة واحدة`,"One min ago":` منذ دقيقة واحدة`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`رد`,"Reply to":``,"Reply to comment":`رد على هذا التعليق`,Report:`الإبلاغ`,"Report comment":`ابلغ عن هذا التعليق`,"Report this comment?":`الإبلاغ عن التعليق؟`,Save:`حفظ`,"See full discussion":``,Sending:`جارى الارسال`,Sent:`تم الارسال`,"Show {amount} more replies":`اظهر {amount} ردود`,"Show 1 more reply":`اظهر تعليق وحيد`,"Show comment":`اظهر التعليق`,"Sign in":`تسجيل الدخول`,"Sign up now":`قم بالتسجيل الآن`,"Sort by":`ترتيب بحسب`,"Start the conversation":`ابدأ النقاش`,"The linked comment is no longer available.":``,"This comment has been hidden.":`تم اخفاء هذا التعليق`,"This comment has been removed.":`تم حذف هذا التعليق`,Unpin:``,"Unpin comment":``,"Upgrade now":`قم بالترقية الآن`,"View in admin":``,Yesterday:`أمس`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`سيتم ارسال طلبك لصاحب الموقع`},cv={"{amount} characters left":`Остават {amount} знака`,"{amount} comments":`{amount} коментара`,"{amount} hrs ago":`Преди {amount} часа`,"{amount} mins ago":`Преди {amount} минути`,"{amount} more":`Още {amount}`,"1 comment":`1 коментар`,"Add comment":`Нов коментар`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Добавете контекст към коментара си, споделете името си и опита си, за да насърчите полезна дискусия.`,"Add reply":`Отговор`,"Add your expertise":`Добавете компетенции`,"Already a member?":`Вече сте абонат?`,Anonymous:`Анонимен`,"Are you sure?":`Убедени ли сте?`,Back:`Назад`,"Become a member of {publication} to start commenting.":`Абонирайте се за {publication}, за да коментирате.`,"Become a paid member of {publication} to start commenting.":`Станете плащащ абонат на {publication}, за да коментирате.`,Best:`Най-добрите`,Cancel:`Отказ`,Comment:`Коментар`,"Commenting disabled":`Коментирането е изключено`,"Complete your profile":`Попълнете профила си`,Delete:`Изтриване`,Deleted:`Изтрито`,"Deleted member":`Изтрит абонат`,Deleting:`Изтриване`,Discussion:`Дискусия`,Dislike:`Не ми харесва`,Edit:`Редактиране`,"Edit this comment":`Редактиране на коментара`,edited:`редактиран`,"Enter your name":`Попълнете името си`,Expertise:`Компетенции`,"Founder @ Acme Inc":`Основател на Компания ООД`,"Full-time parent":`Родител на пълно работно време`,"Head of Marketing at Acme, Inc":`Директор маркетинг в Компания ООД`,"Hidden for members":`Скрит за абонати`,"Hide comment":`Скриване на коментара`,"Jamie Larson":`Иван Иванов`,"Join the discussion":`Участвайте в дискусията`,"Just now":`Току-що`,Like:`Харесва ми`,"Load more ({amount})":`Още ({amount})`,"Local resident":`Местен жител`,"Member discussion":`Дискусия за абонатите`,Name:`Име`,Neurosurgeon:`Неврохирург`,Newest:`Най-нови`,Oldest:`Най-стари`,"Once deleted, this comment can’t be recovered.":`Веднъж изтрит, коментарът не може да бъде възстановен.`,"One hour ago":`Преди час`,"One min ago":`Преди минута`,"Pin comment":`Залепи коментара`,Pinned:`Залепен`,"Read more replies":`Още отговори`,"Remove dislike":`Отмени нехаресването`,"Remove like":`Отмени харесването`,Reply:`Отговор`,"Reply to":`Отговор на`,"Reply to comment":`Отговор на коментара`,Report:`Докладване`,"Report comment":`Докладване на коментара`,"Report this comment?":`Ще докладвате ли коментара?`,Save:`Запис`,"See full discussion":`Вижте цялата дискусия`,Sending:`Изпращане`,Sent:`Изпратен`,"Show {amount} more replies":`Покажи още {amount} отговора`,"Show 1 more reply":`Покажи още един отговор`,"Show comment":`Покажи коментар`,"Sign in":`Вход`,"Sign up now":`Регистрация`,"Sort by":`Сортиране по`,"Start the conversation":`Започнете дискусия`,"The linked comment is no longer available.":`Посоченият коментар вече не е наличен.`,"This comment has been hidden.":`Този коментар е скрит.`,"This comment has been removed.":`Този коментар е премахнат.`,Unpin:`Отлепи`,"Unpin comment":`Отлепи коментара`,"Upgrade now":`Надградете сега`,"View in admin":`Преглед в админ панела`,Yesterday:`Вчера`,"You can't post comments in this publication.":`Не може да коментирате под тази публикация.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Не може да коментирате под тази публикация. <a>Връзка с поддръжката</a> за повече информация.`,"Your request will be sent to the owner of this site.":`Искането ще бъде изпратено до собственика на сайта.`},lv={"{amount} characters left":`{amount} অক্ষর বাকি`,"{amount} comments":`{amount} মন্তব্য`,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":`{amount}টি আরও`,"1 comment":`১টি মন্তব্য`,"Add comment":`মন্তব্য যোগ করুন`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`আপনার মন্তব্যে প্রসঙ্গ যোগ করুন, একটি সুস্থ আলোচনা করতে আপনার নাম ও অভিজ্ঞতা শেয়ার করুন।`,"Add reply":`উত্তর যোগ করুন`,"Add your expertise":``,"Already a member?":`ইত:পূর্বে সদস্য?`,Anonymous:`অজ্ঞাতনামা`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`{publication} এর সদস্য হন মন্তব্য করার জন্য।`,"Become a paid member of {publication} to start commenting.":`{publication} এর পেইড সদস্য হন মন্তব্য করার জন্য।`,Best:``,Cancel:`বাতিল করুন`,Comment:`মন্তব্য`,"Commenting disabled":``,"Complete your profile":`আপনার প্রোফাইল সম্পূর্ণ করুন`,Delete:`মুছে ফেলুন`,Deleted:``,"Deleted member":`মুছে ফেলা সদস্য`,Deleting:``,Discussion:`আলোচনা`,Dislike:``,Edit:`সম্পাদনা`,"Edit this comment":`এই মন্তব্য সম্পাদনা করুন`,edited:``,"Enter your name":`আপনার নাম লিখুন`,Expertise:`বিশেষজ্ঞতা`,"Founder @ Acme Inc":`প্রতিষ্ঠাতা @ বাংলাদেশ ট্রেড হাব`,"Full-time parent":`পূর্ণকালীন অভিভাবক`,"Head of Marketing at Acme, Inc":`মার্কেটিং প্রধান @ বাংলাদেশ ট্রেড হাব`,"Hidden for members":``,"Hide comment":`মন্তব্য লুকান`,"Jamie Larson":`শাহ নেওয়াজ`,"Join the discussion":`আলোচনায় যোগ দিন`,"Just now":`এখনই`,Like:``,"Load more ({amount})":``,"Local resident":`স্থানীয় বাসিন্দা`,"Member discussion":`সদস্য আলোচনা`,Name:`নাম`,Neurosurgeon:`নিউরোসার্জন`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`এক ঘণ্টা পূর্বে`,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`উত্তর`,"Reply to":``,"Reply to comment":`মন্তব্যের উত্তর দিন`,Report:`প্রতিবেদন`,"Report comment":`মন্তব্য প্রতিবেদন করুন`,"Report this comment?":`এই মন্তব্য প্রতিবেদন করবেন?`,Save:`সংরক্ষণ করুন`,"See full discussion":``,Sending:`পাঠানো হচ্ছে`,Sent:`পাঠানো হয়েছে`,"Show {amount} more replies":` আরো {amount}টি উত্তর দেখান`,"Show 1 more reply":`১টি আরো উত্তর দেখান`,"Show comment":`মন্তব্য দেখান`,"Sign in":`সাইন ইন করুন`,"Sign up now":`এখনই সাইন আপ করুন`,"Sort by":``,"Start the conversation":`আলোচনা শুরু করুন`,"The linked comment is no longer available.":``,"This comment has been hidden.":`এই মন্তব্য লুকানো হয়েছে।`,"This comment has been removed.":`এই মন্তব্য মুছে ফেলা হয়েছে।`,Unpin:``,"Unpin comment":``,"Upgrade now":`এখনই আপগ্রেড করুন`,"View in admin":``,Yesterday:`গতকাল`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`আপনার অনুরোধ সাইটের মালিকের কাছে পাঠানো হবে।`},uv={"{amount} characters left":`Preostalo {amount} karaktera`,"{amount} comments":`{amount} komentara`,"{amount} hrs ago":`Prije {amount} sati`,"{amount} mins ago":`Prije {amount} minuta`,"{amount} more":`Još {amount}`,"1 comment":`1 komentar`,"Add comment":`Dodaj komentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Dodaj kontekst svom komentaru, podijeli svoje ime i stručnost u svrhu kvalitetnije diskusije.`,"Add reply":`Objavi komentar`,"Add your expertise":``,"Already a member?":`Već si član?`,Anonymous:`Anoniman`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Postani član portala {publication} za pristup diskusiji.`,"Become a paid member of {publication} to start commenting.":`Postani plaćeni član portala {publication} za pristup diskusiji.`,Best:``,Cancel:`Otkaži`,Comment:`Komentar`,"Commenting disabled":``,"Complete your profile":`Dovrši svoj profil`,Delete:`Obriši`,Deleted:``,"Deleted member":`Obrisan član`,Deleting:``,Discussion:`Diskusija`,Dislike:``,Edit:`Uredi`,"Edit this comment":`Uredi komentar`,edited:`uređeno`,"Enter your name":`Unesi ime`,Expertise:`Stručnost`,"Founder @ Acme Inc":`Acme Inc osnivač`,"Full-time parent":`Full time roditelj`,"Head of Marketing at Acme, Inc":`Šef marketinga u kompaniji Acme d.o.o`,"Hidden for members":``,"Hide comment":`Sakrij komentar`,"Jamie Larson":`Vanja Larsić`,"Join the discussion":`Pridruži se diskusiji`,"Just now":`Upravo sada`,Like:``,"Load more ({amount})":``,"Local resident":`Lokalni stanovnik`,"Member discussion":`Diskusija članova`,Name:`Ime`,Neurosurgeon:`Neurohirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Prije jedan sat`,"One min ago":`Prije jedan minut`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Odgovori`,"Reply to":``,"Reply to comment":`Odgovori na komentar`,Report:`Prijavi`,"Report comment":`Prijavi komentar`,"Report this comment?":`Prijavi ovaj komentar?`,Save:`Sačuvaj`,"See full discussion":``,Sending:`Šaljem`,Sent:`Poslano`,"Show {amount} more replies":`Prikaži još {amount} odgovora`,"Show 1 more reply":`Prikaži još jedan odgovor`,"Show comment":`Prikaži komentar`,"Sign in":`Prijavi se`,"Sign up now":`Postani član`,"Sort by":``,"Start the conversation":`Započni diskusiju`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Ovaj komentar je sakriven.`,"This comment has been removed.":`Ovaj komentar je uklonjen.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Nadogradi račun sada`,"View in admin":``,Yesterday:`Jučer`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Tvoj zahtjev je poslan vlasniku stranice.`},dv={"{amount} characters left":`{amount} caràcters restants`,"{amount} comments":`{amount} comentaris`,"{amount} hrs ago":`Fa {amount} hores`,"{amount} mins ago":`Fa {amount} minuts`,"{amount} more":`{amount} més`,"1 comment":`Un comentari`,"Add comment":`Afegeix un comentari`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Afegeix context al teu comentari, comparteix el teu nom i experiència per fomentar una discussió sana.`,"Add reply":`Afegeix una resposta`,"Add your expertise":``,"Already a member?":`Ja n'ets membre?`,Anonymous:`Anònim`,"Are you sure?":`N'estàs segur?`,Back:``,"Become a member of {publication} to start commenting.":`Fes-te membre de {publication} per començar a comentar.`,"Become a paid member of {publication} to start commenting.":`Fes-te membre de pagament de {publication} per començar a comentar`,Best:``,Cancel:`Cancel·la`,Comment:`Comentari`,"Commenting disabled":``,"Complete your profile":`Completa el teu perfil`,Delete:`Esborra`,Deleted:`Esborrat`,"Deleted member":`Membre esborrat`,Deleting:`Esborrant`,Discussion:`Debat`,Dislike:``,Edit:`Edita`,"Edit this comment":`Edita aquest comentari`,edited:`editat`,"Enter your name":`Escriu el teu nom`,Expertise:`Expertesa`,"Founder @ Acme Inc":`Fundador @ Acme Inc`,"Full-time parent":`Pare a temps complet`,"Head of Marketing at Acme, Inc":`Cap de màrqueting a Acme, Inc`,"Hidden for members":`Ocult pels membres`,"Hide comment":`Oculta el comentari`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Uneix-te al debat`,"Just now":`Just ara`,Like:``,"Load more ({amount})":``,"Local resident":`Resident local`,"Member discussion":`Debat de membres`,Name:`Nom`,Neurosurgeon:`Neurocirurgià`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Un cop esborrat, aquest comentari no es pot recuperar`,"One hour ago":`Fa una hora`,"One min ago":`Fa un minut`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Respon`,"Reply to":`Respon a`,"Reply to comment":`Respon al comentari`,Report:`Reporta`,"Report comment":`Reporta comentari`,"Report this comment?":`Reporta aquest comentari?`,Save:`Desa`,"See full discussion":``,Sending:`Enviant`,Sent:`Enviat`,"Show {amount} more replies":`Mostra {amount} respostes més`,"Show 1 more reply":`Mostra 1 resposta més`,"Show comment":`Mostra comentari`,"Sign in":`Inicia sessió`,"Sign up now":`Registra't ara`,"Sort by":`Ordena per`,"Start the conversation":`Comença la conversa`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Aquest comentari s'ha ocultat.`,"This comment has been removed.":`Aquest comentari s'ha esborrat.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Actualitza ara`,"View in admin":``,Yesterday:`Ahir`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`La teva sol·licitud s'enviarà al propietari d'aquest lloc.`},fv={"{amount} characters left":`Zbývá {amount} znaků`,"{amount} comments":`{amount} komentářů`,"{amount} hrs ago":`Před {amount} hodinami`,"{amount} mins ago":`Před {amount} minutami`,"{amount} more":`Dalších {amount}`,"1 comment":`1 komentář`,"Add comment":`Přidat komentář`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Pro podporu zdravé diskuse přidejte ke svému komentáři kontext, své jméno a odbornost.`,"Add reply":`Přidat odpověď`,"Add your expertise":``,"Already a member?":`Už jste členem?`,Anonymous:`Anonymní`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Staňte se členem {publication}, abyste mohli začít komentovat.`,"Become a paid member of {publication} to start commenting.":`Staňte se placeným členem {publication}, abyste mohli začít komentovat.`,Best:``,Cancel:`Zrušit`,Comment:`Komentář`,"Commenting disabled":``,"Complete your profile":`Dokončete svůj profil`,Delete:`Smazat`,Deleted:``,"Deleted member":`Smazaný člen`,Deleting:``,Discussion:`Diskuse`,Dislike:``,Edit:`Upravit`,"Edit this comment":`Upravit tento komentář`,edited:`upraveno`,"Enter your name":`Zadejte své jméno`,Expertise:`Odbornost`,"Founder @ Acme Inc":`Zakladatel @ Acme Inc`,"Full-time parent":`Rodič na plný úvazek`,"Head of Marketing at Acme, Inc":`Vedoucí marketingu v Acme, Inc`,"Hidden for members":``,"Hide comment":`Skrýt komentář`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Připojte se k diskusi`,"Just now":`Právě teď`,Like:``,"Load more ({amount})":``,"Local resident":`Místní obyvatel`,"Member discussion":`Diskuse členů`,Name:`Jméno`,Neurosurgeon:`Neurochirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Před jednou hodinou`,"One min ago":`Před jednou minutou`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Odpovědět`,"Reply to":``,"Reply to comment":`Odpovědět na komentář`,Report:`Nahlásit`,"Report comment":`Nahlásit komentář`,"Report this comment?":`Nahlásit tento komentář?`,Save:`Uložit`,"See full discussion":``,Sending:`Odesílání`,Sent:`Odesláno`,"Show {amount} more replies":`Zobrazit {amount} dalších odpovědí`,"Show 1 more reply":`Zobrazit 1 další odpověď`,"Show comment":`Zobrazit komentář`,"Sign in":`Přihlásit se`,"Sign up now":`Zaregistrujte se nyní`,"Sort by":``,"Start the conversation":`Začněte konverzaci`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Tento komentář byl skryt.`,"This comment has been removed.":`Tento komentář byl odstraněn.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Upgradovat`,"View in admin":``,Yesterday:`Včera`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Vaše žádost bude odeslána vlastníkovi tohoto webu.`},pv={"{amount} characters left":`{amount} tegn tilbage`,"{amount} comments":`{amount} kommentarer`,"{amount} hrs ago":`{amount} timer siden`,"{amount} mins ago":`{amount} minutter siden`,"{amount} more":`{amount} mere`,"1 comment":`1 kommentar`,"Add comment":`Tilføj kommentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Tilføj kontekst til din kommentar, del dit navn og ekspertise for at fremme en sund diskussion.`,"Add reply":`Tilføj svar`,"Add your expertise":``,"Already a member?":`Allerede medlem?`,Anonymous:`Anonym`,"Are you sure?":`Er du sikker?`,Back:``,"Become a member of {publication} to start commenting.":`Bliv medlem af {publication} for at kunne skrive kommentarer.`,"Become a paid member of {publication} to start commenting.":`Bliv betalende medlem af {publication} for at kunne skrive kommentarer.`,Best:``,Cancel:`Annuller`,Comment:`Kommentér`,"Commenting disabled":``,"Complete your profile":`Færdiggør din profil`,Delete:`Slet`,Deleted:`Slettet`,"Deleted member":`Slettet medlem`,Deleting:`Sletter`,Discussion:`Diskussion`,Dislike:``,Edit:`Rediger`,"Edit this comment":`Rediger denne kommentar`,edited:`redigeret`,"Enter your name":`Indtast dit navn`,Expertise:`Ekspertise`,"Founder @ Acme Inc":`Grundlægger @ Acme Inc`,"Full-time parent":`Forældre på fuld tid`,"Head of Marketing at Acme, Inc":`Chef for marking hos Acme, Inc`,"Hidden for members":`Skjult for medlemmer`,"Hide comment":`Skjul kommentar`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Bliv en del af diskussionen`,"Just now":`Lige nu`,Like:``,"Load more ({amount})":`Indlæs mere ({amount})`,"Local resident":`Lokal borger`,"Member discussion":`Medlemsdiskussion`,Name:`Navn`,Neurosurgeon:`Neurokirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Når den først er slettet, kan denne kommentar ikke gendannes.`,"One hour ago":`En time siden`,"One min ago":`Et minut siden`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Svar`,"Reply to":`Svar`,"Reply to comment":`Svar på kommentar`,Report:`Rapportér`,"Report comment":`Rapportér kommentar`,"Report this comment?":`Rapportér denne kommentar?`,Save:`Gem`,"See full discussion":``,Sending:`Sender`,Sent:`Sendt`,"Show {amount} more replies":`Vis {amount} flere svar`,"Show 1 more reply":`Vis 1 mere svar`,"Show comment":`Vis kommentar`,"Sign in":`Log ind`,"Sign up now":`Tilmed dig nu`,"Sort by":`Sorter efter`,"Start the conversation":`Start samtalen`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Denne kommentar er blevet skjult.`,"This comment has been removed.":`Denne kommentar er blevet fjernet.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Opgrader nu`,"View in admin":``,Yesterday:`I går`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Din anmodning vil blive sendt til ejeren af dette site.`},mv={"{amount} characters left":`{amount} Zeichen übrig`,"{amount} comments":`{amount} Kommentare`,"{amount} hrs ago":`Vor {amount} Stunden`,"{amount} mins ago":`Vor {amount} Minuten`,"{amount} more":`{amount} weitere`,"1 comment":`1 Kommentar`,"Add comment":`Kommentar hinzufügen`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Füge deinem Kommentar Kontext hinzu, teile deinen Namen und deine Expertise, um eine gesunde Diskussion zu fördern.`,"Add reply":`Antwort hinzufügen`,"Add your expertise":`Ergänze deine Expertise`,"Already a member?":`Bist du bereits Mitglied?`,Anonymous:`Anonym`,"Are you sure?":`Bist du sicher?`,Back:``,"Become a member of {publication} to start commenting.":`Werde Mitglied bei {publication}, um Kommentare zu schreiben.`,"Become a paid member of {publication} to start commenting.":`Werde zahlendes Mitglied bei {publication}, um Kommentare zu schreiben.`,Best:`Beste`,Cancel:`Abbrechen`,Comment:`Kommentar`,"Commenting disabled":``,"Complete your profile":`Vervollständige dein Profil`,Delete:`Löschen`,Deleted:`Gelöscht`,"Deleted member":`Gelöschtes Mitglied`,Deleting:`Wird gelöscht`,Discussion:`Diskussion`,Dislike:``,Edit:`Bearbeiten`,"Edit this comment":`Diesen Kommentar bearbeiten`,edited:`bearbeitet`,"Enter your name":`Gib deinen Namen ein`,Expertise:`Expertise`,"Founder @ Acme Inc":`Gründer bei Acme Inc`,"Full-time parent":`Vollzeit-Elternteil`,"Head of Marketing at Acme, Inc":`Leiter Marketing bei Acme, Inc`,"Hidden for members":`Für Mitglieder verborgen`,"Hide comment":`Kommentar verbergen`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Nimm an der Diskussion teil`,"Just now":`Gerade eben`,Like:``,"Load more ({amount})":`Weitere laden ({amount})`,"Local resident":`Ortsansässiger`,"Member discussion":`Mitgliederdiskussion`,Name:`Name`,Neurosurgeon:`Neurochirurg`,Newest:`Neuste`,Oldest:`Älteste`,"Once deleted, this comment can’t be recovered.":`Der Kommentar kann nicht wiederhergestellt werden, sobald er gelöscht wurde.`,"One hour ago":`Vor einer Stunde`,"One min ago":`Vor einer Minute`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Antworten`,"Reply to":`Antwort auf`,"Reply to comment":`Auf Kommentar antworten`,Report:`Melden`,"Report comment":`Kommentar melden`,"Report this comment?":`Diesen Kommentar melden?`,Save:`Speichern`,"See full discussion":``,Sending:`Senden`,Sent:`Gesendet`,"Show {amount} more replies":`{amount} weitere Antworten anzeigen`,"Show 1 more reply":`1 weitere Antwort anzeigen`,"Show comment":`Kommentar anzeigen`,"Sign in":`Einloggen`,"Sign up now":`Jetzt registrieren`,"Sort by":`Sortiere nach`,"Start the conversation":`Beginne das Gespräch`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Dieser Kommentar wurde ausgeblendet.`,"This comment has been removed.":`Dieser Kommentar wurde entfernt.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Jetzt upgraden`,"View in admin":``,Yesterday:`Gestern`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Deine Anfrage wird an den Besitzer dieser Website gesendet.`},hv={"{amount} characters left":`{amount} Zeichen übrig`,"{amount} comments":`{amount} Kommentare`,"{amount} hrs ago":`Vor {amount} Stunden`,"{amount} mins ago":`Vor {amount} Minuten`,"{amount} more":`{amount} mehr`,"1 comment":`1 Kommentar`,"Add comment":`Kommentar hinzufügen`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Fügen Sie Kontext zu Ihrem Kommentar hinzu, teilen Sie Ihren Namen und Ihre Expertise, um eine gesunde Diskussion zu fördern.`,"Add reply":`Antwort hinzufügen`,"Add your expertise":`Teilen Sie Ihr Fachwissen`,"Already a member?":`Bereits ein Mitglied?`,Anonymous:`Anonym`,"Are you sure?":`Sind Sie sicher?`,Back:``,"Become a member of {publication} to start commenting.":`Werden Sie ein Mitglied bei {publication}, um Kommentare zu schreiben.`,"Become a paid member of {publication} to start commenting.":`Werden Sie ein zahlendes Mitglied bei {publication}, um Kommentare zu schreiben.`,Best:`Beste`,Cancel:`Abbrechen`,Comment:`Kommentar`,"Commenting disabled":``,"Complete your profile":`Vervollständigen Sie Ihr Profil`,Delete:`Löschen`,Deleted:`Gelöscht`,"Deleted member":`Gelöschtes Mitglied`,Deleting:`Löschen`,Discussion:`Diskussion`,Dislike:``,Edit:`Bearbeiten`,"Edit this comment":`Kommentar bearbeiten`,edited:`bearbeitet`,"Enter your name":`Geben Sie Ihren Namen ein`,Expertise:`Expertise`,"Founder @ Acme Inc":`Gründer bei Acme Inc`,"Full-time parent":`Vollzeit-Elternteil`,"Head of Marketing at Acme, Inc":`Leiter Marketing bei Acme, Inc`,"Hidden for members":`Verborgen für Mitglieder`,"Hide comment":`Kommentar verbergen`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`An der Diskussion teilnehmen`,"Just now":`Gerade eben`,Like:``,"Load more ({amount})":`Mehr laden ({amount})`,"Local resident":`Anwohner`,"Member discussion":`Mitgliederdiskussion`,Name:`Name`,Neurosurgeon:`Neurochirurg`,Newest:`Neueste`,Oldest:`Älteste`,"Once deleted, this comment can’t be recovered.":`Der Kommentar kann nicht wiederhergestellt werden, wenn er gelöscht wurde.`,"One hour ago":`Vor einer Stunde`,"One min ago":`Vor einer Minute`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Antworten`,"Reply to":`Antwort auf`,"Reply to comment":`Auf Kommentar antworten`,Report:`Melden`,"Report comment":`Kommentar melden`,"Report this comment?":`Diesen Kommentar melden?`,Save:`Speichern`,"See full discussion":``,Sending:`Senden`,Sent:`Gesendet`,"Show {amount} more replies":`{amount} weitere Antworten anzeigen`,"Show 1 more reply":`1 weitere Antwort anzeigen`,"Show comment":`Kommentar anzeigen`,"Sign in":`Anmelden`,"Sign up now":`Jetzt registrieren`,"Sort by":`Sortiere nach`,"Start the conversation":`Beginnen Sie das Gespräch`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Dieser Kommentar wurde ausgeblendet.`,"This comment has been removed.":`Dieser Kommentar wurde entfernt.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Jetzt upgraden`,"View in admin":``,Yesterday:`Gestern`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Ihre Anfrage wird an den Seitenbesitzer gesendet.`},gv={"{amount} characters left":`Απομένουν {amount} χαρακτήρες`,"{amount} comments":`{amount} σχόλια`,"{amount} hrs ago":`πριν από {amount} ώρες`,"{amount} mins ago":`πριν από {amount} λεπτά`,"{amount} more":`{amount} περισσότερα`,"1 comment":`1 σχόλιο`,"Add comment":`Προσθήκη σχολίου`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Προσθέστε περιεχόμενο στο σχόλιό σας, μοιραστείτε το όνομα και την εξειδίκευσή σας για να προωθήσετε μια υγιή συζήτηση.`,"Add reply":`Προσθήκη απάντησης`,"Add your expertise":`Προσθήκη εξειδίκευσης`,"Already a member?":`Ήδη μέλος;`,Anonymous:`Ανώνυμος`,"Are you sure?":`Σίγουρα;`,Back:`Επιστροφή`,"Become a member of {publication} to start commenting.":`Γίνετε μέλος του {publication} για να ξεκινήσετε να σχολιάζετε.`,"Become a paid member of {publication} to start commenting.":`Γίνετε συνδρομητικό μέλος του {publication} για να ξεκινήσετε να σχολιάζετε.`,Best:`Καλύτερο`,Cancel:`Ακύρωση`,Comment:`Σχόλιο`,"Commenting disabled":`Τα σχόλια έχουν απενεργοποιηθεί`,"Complete your profile":`Ολοκληρώστε το προφίλ σας`,Delete:`Διαγραφή`,Deleted:`Διαγράφηκε`,"Deleted member":`Διαγραμμένο μέλος`,Deleting:`Διαγράφεται…`,Discussion:`Συζήτηση`,Dislike:`Δεν μου αρέσει`,Edit:`Επεξεργασία`,"Edit this comment":`Επεξεργασία αυτού του σχολίου`,edited:`Επεξεργασμένο`,"Enter your name":`Εισάγετε το όνομά σας`,Expertise:`Εξειδίκευση`,"Founder @ Acme Inc":`Ιδρύτρια, Κύκλος ΙΚΕ`,"Full-time parent":`Γονέας πλήρους απασχόλησης`,"Head of Marketing at Acme, Inc":`Επικεφαλής Μάρκετινγκ, Κύκλος ΙΚΕ`,"Hidden for members":`Απόκρυφο από τα μέλη`,"Hide comment":`Απόκρυψη σχολίου`,"Jamie Larson":`Μαρία Βασιλείου`,"Join the discussion":`Συμμετέχετε στη συζήτηση`,"Just now":`Μόλις τώρα`,Like:`Μου αρέσει`,"Load more ({amount})":`Φόρτωση περισσότερων ({amount})`,"Local resident":`Τοπικός κάτοικος`,"Member discussion":`Συζήτηση μελών`,Name:`Όνομα`,Neurosurgeon:`Νευροχειρουργός`,Newest:`Νεότερο`,Oldest:`Παλαιότερο`,"Once deleted, this comment can’t be recovered.":`Μόλις διαγραφεί, αυτό το σχόλιο δεν μπορεί να ανακτηθεί.`,"One hour ago":`Πριν από μία ώρα`,"One min ago":`Πριν από ένα λεπτό`,"Pin comment":`Καρφίτσωμα σχολίου`,Pinned:`Καρφιτσωμένο`,"Read more replies":`Περισσότερες απαντήσεις`,"Remove dislike":`Αφαίρεση "Δεν μου αρέσει"`,"Remove like":`Αφαίρεση "Μου αρέσει"`,Reply:`Απάντηση`,"Reply to":`Σε απάντηση προς`,"Reply to comment":`Απάντηση στο σχόλιο`,Report:`Αναφορά`,"Report comment":`Αναφορά σχολίου`,"Report this comment?":`Αναφορά αυτού του σχολίου;`,Save:`Αποθήκευση`,"See full discussion":`Προβολή όλης της συζήτησης`,Sending:`Αποστέλλεται…`,Sent:`Απεστάλη`,"Show {amount} more replies":`Εμφάνιση {amount} περισσότερων απαντήσεων`,"Show 1 more reply":`Εμφάνιση 1 ακόμα απάντησης`,"Show comment":`Εμφάνιση σχολίου`,"Sign in":`Σύνδεση`,"Sign up now":`Εγγραφείτε τώρα`,"Sort by":`Ταξινόμηση κατά`,"Start the conversation":`Ξεκινήστε τη συζήτηση`,"The linked comment is no longer available.":`Το σχόλιο στο οποίο παραπέμπει ο σύνδεσμος δεν είναι πλέον διαθέσιμο.`,"This comment has been hidden.":`Αυτό το σχόλιο έχει αποκρυφθεί.`,"This comment has been removed.":`Αυτό το σχόλιο έχει αφαιρεθεί.`,Unpin:`Ξεκαρφίτσωμα`,"Unpin comment":`Ξεκαρφίτσωμα σχολίου`,"Upgrade now":`Αναβάθμιση τώρα`,"View in admin":`Προβολή στο διαχειριστικό`,Yesterday:`Χθες`,"You can't post comments in this publication.":`Δεν μπορείτε να σχολιάσετε σε αυτόν τον ιστότοπο.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Δεν μπορείτε να σχολιάσετε σε αυτόν τον ιστότοπο. <a>Επικοινωνήστε με την υποστήριξη</a> για περισσότερες πληροφορίες.`,"Your request will be sent to the owner of this site.":`Το αίτημά σας θα σταλεί στον ιδιοκτήτη αυτού του ιστότοπου.`},_v={"{amount} characters left":``,"{amount} comments":``,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":``,"1 comment":``,"Add comment":``,"Add context to your comment, share your name and expertise to foster a healthy discussion.":``,"Add reply":``,"Add your expertise":``,"Already a member?":``,Anonymous:``,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":``,"Become a paid member of {publication} to start commenting.":``,Best:``,Cancel:``,Comment:``,"Commenting disabled":``,"Complete your profile":``,Delete:``,Deleted:``,"Deleted member":``,Deleting:``,Discussion:``,Dislike:``,Edit:``,"Edit this comment":``,edited:``,"Enter your name":``,Expertise:``,"Founder @ Acme Inc":``,"Full-time parent":``,"Head of Marketing at Acme, Inc":``,"Hidden for members":``,"Hide comment":``,"Jamie Larson":``,"Join the discussion":``,"Just now":``,Like:``,"Load more ({amount})":``,"Local resident":``,"Member discussion":``,Name:``,Neurosurgeon:``,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":``,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:``,"Reply to":``,"Reply to comment":``,Report:``,"Report comment":``,"Report this comment?":``,Save:``,"See full discussion":``,Sending:``,Sent:``,"Show {amount} more replies":``,"Show 1 more reply":``,"Show comment":``,"Sign in":``,"Sign up now":``,"Sort by":``,"Start the conversation":``,"The linked comment is no longer available.":``,"This comment has been hidden.":``,"This comment has been removed.":``,Unpin:``,"Unpin comment":``,"Upgrade now":``,"View in admin":``,Yesterday:``,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":``},vv={"{amount} characters left":``,"{amount} comments":``,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":``,"1 comment":``,"Add comment":``,"Add context to your comment, share your name and expertise to foster a healthy discussion.":``,"Add reply":``,"Add your expertise":``,"Already a member?":``,Anonymous:``,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":``,"Become a paid member of {publication} to start commenting.":``,Best:``,Cancel:``,Comment:``,"Commenting disabled":``,"Complete your profile":``,Delete:``,Deleted:``,"Deleted member":``,Deleting:``,Discussion:``,Dislike:``,Edit:``,"Edit this comment":``,edited:``,"Enter your name":``,Expertise:``,"Founder @ Acme Inc":``,"Full-time parent":``,"Head of Marketing at Acme, Inc":``,"Hidden for members":``,"Hide comment":``,"Jamie Larson":``,"Join the discussion":``,"Just now":``,Like:``,"Load more ({amount})":``,"Local resident":``,"Member discussion":``,Name:``,Neurosurgeon:``,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":``,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:``,"Reply to":``,"Reply to comment":``,Report:``,"Report comment":``,"Report this comment?":``,Save:``,"See full discussion":``,Sending:``,Sent:``,"Show {amount} more replies":``,"Show 1 more reply":``,"Show comment":``,"Sign in":``,"Sign up now":``,"Sort by":``,"Start the conversation":``,"The linked comment is no longer available.":``,"This comment has been hidden.":``,"This comment has been removed.":``,Unpin:``,"Unpin comment":``,"Upgrade now":``,"View in admin":``,Yesterday:``,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":``},yv={"{amount} characters left":`{amount} caracteres restantes`,"{amount} comments":`{amount} comentarios`,"{amount} hrs ago":`Hace {amount} horas`,"{amount} mins ago":`Hace {amount} minutos`,"{amount} more":`{amount} más`,"1 comment":`1 comentario`,"Add comment":`Añadir comentario`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Añade contexto a tu comentario, comparte tu nombre y experiencia para fomentar un debate sano.`,"Add reply":`Añadir respuesta`,"Add your expertise":`Añadir tu experiencia`,"Already a member?":`¿Ya eres miembro?`,Anonymous:`Anónimo`,"Are you sure?":`¿Estás seguro?`,Back:`Atrás`,"Become a member of {publication} to start commenting.":`Hazte miembro de {publication} para poder comentar.`,"Become a paid member of {publication} to start commenting.":`Hazte miembro de pago para poder comentar en {publication}.`,Best:`Mejores`,Cancel:`Cancelar`,Comment:`Comentar`,"Commenting disabled":`Comentarios desactivados`,"Complete your profile":`Completa tu perfil`,Delete:`Eliminar`,Deleted:`Eliminado`,"Deleted member":`Eliminar miembro`,Deleting:`Eliminando`,Discussion:`Discusión`,Dislike:`No me gusta`,Edit:`Editar`,"Edit this comment":`Editar este comentario`,edited:`editado`,"Enter your name":`Introduce tu nombre`,Expertise:`Experiencia`,"Founder @ Acme Inc":`Fundador @ Acme Inc`,"Full-time parent":`Padre a tiempo completo`,"Head of Marketing at Acme, Inc":`Jefe de Marketing en Acme, Inc`,"Hidden for members":`Oculto para miembros`,"Hide comment":`Ocultar comentario`,"Jamie Larson":`Carlos Rodriguez`,"Join the discussion":`Únete a la discusión`,"Just now":`Justo ahora`,Like:`Me gusta`,"Load more ({amount})":`Cargar más ({amount})`,"Local resident":`Residente local`,"Member discussion":`Discusión de los miembros`,Name:`Nombre`,Neurosurgeon:`Neurocirujano`,Newest:`Más nuevos`,Oldest:`Más antiguos`,"Once deleted, this comment can’t be recovered.":`Este comentario no se puede recuperar una vez eliminado.`,"One hour ago":`Hace una hora`,"One min ago":`Hace un minuto`,"Pin comment":`Fijar comentario`,Pinned:`Fijado`,"Read more replies":`Ver más respuestas`,"Remove dislike":``,"Remove like":``,Reply:`Responder`,"Reply to":`Responder a`,"Reply to comment":`Responder al comentario`,Report:`Reportar`,"Report comment":`Reportar comentario`,"Report this comment?":`¿Reportar este comentario?`,Save:`Guardar`,"See full discussion":``,Sending:`Enviando`,Sent:`Enviado`,"Show {amount} more replies":`Mostrar {amount} respuestas más`,"Show 1 more reply":`Mostrar 1 respuesta más`,"Show comment":`Mostrar comentario`,"Sign in":`Inicia sesión`,"Sign up now":`Regístrate ahora`,"Sort by":`Ordenar por`,"Start the conversation":`Comienza la conversación`,"The linked comment is no longer available.":`El comentario enlazado ya no está disponible.`,"This comment has been hidden.":`Este comentario ha sido ocultado.`,"This comment has been removed.":`Este comentario ha sido borrado.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Actualiza tu cuenta ahora`,"View in admin":`Ver en la zona admin`,Yesterday:`Ayer`,"You can't post comments in this publication.":`No puedes publicar comentarios en esta publicación.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`No puedes publicar comentarios en esta publicación. <a>Contacta con soporte</a> para más información.`,"Your request will be sent to the owner of this site.":`Tu petición será enviada al dueño de este sitio web.`},bv={"{amount} characters left":`{amount} tähemärki jäänud`,"{amount} comments":`{amount} kommentaari`,"{amount} hrs ago":`{amount} tundi tagasi`,"{amount} mins ago":`{amount} minutit tagasi`,"{amount} more":`{amount} veel`,"1 comment":`1 kommentaar`,"Add comment":`Lisa kommentaar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Lisa oma kommentaarile konteksti, jaga oma nime ja kogemusi, et soodustada tervislikku arutelu.`,"Add reply":`Lisa vastus`,"Add your expertise":``,"Already a member?":`Juba liige?`,Anonymous:`Anonüümne`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Kommenteerimise alustamiseks saage {publication} liikmeks.`,"Become a paid member of {publication} to start commenting.":`Kommenteerimise alustamiseks saage {publication} tasuliseks liikmeks.`,Best:``,Cancel:`Tühista`,Comment:`Kommentaar`,"Commenting disabled":``,"Complete your profile":`Täida oma profiil`,Delete:`Kustuta`,Deleted:``,"Deleted member":`Kustutatud liige`,Deleting:``,Discussion:`Arutelu`,Dislike:``,Edit:`Muuda`,"Edit this comment":`Muuda seda kommentaari`,edited:`muudetud`,"Enter your name":`Sisesta oma nimi`,Expertise:`Oskused`,"Founder @ Acme Inc":`Asutaja @ Acme Inc`,"Full-time parent":`Täiskohaga lapsevanem`,"Head of Marketing at Acme, Inc":`Turundusjuht Acme, Inc-s`,"Hidden for members":``,"Hide comment":`Peida kommentaar`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Liitu aruteluga`,"Just now":`Just praegu`,Like:``,"Load more ({amount})":``,"Local resident":`Kohalik elanik`,"Member discussion":`Liikmete arutelu`,Name:`Nimi`,Neurosurgeon:`Neurokirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Üks tund tagasi`,"One min ago":`Üks minut tagasi`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Vasta`,"Reply to":``,"Reply to comment":`Vasta kommentaarile`,Report:`Teata`,"Report comment":`Teata kommentaarist`,"Report this comment?":`Teatada sellest kommentaarist?`,Save:`Salvesta`,"See full discussion":``,Sending:`Saatmine`,Sent:`Saadetud`,"Show {amount} more replies":`Näita {amount} vastust veel`,"Show 1 more reply":`Näita 1 vastus veel`,"Show comment":`Näita kommentaari`,"Sign in":`Logi sisse`,"Sign up now":`Registreeru nüüd`,"Sort by":``,"Start the conversation":`Alusta vestlust`,"The linked comment is no longer available.":``,"This comment has been hidden.":`See kommentaar on peidetud.`,"This comment has been removed.":`See kommentaar on eemaldatud.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Uuenda nüüd`,"View in admin":``,Yesterday:`Eile`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Teie taotlus saadetakse selle saidi omanikule.`},xv={"{amount} characters left":`{amount} geratzen dira`,"{amount} comments":`{amount} iruzkin`,"{amount} hrs ago":`Duela {amount} ordu`,"{amount} mins ago":`Duela {amount} minutu`,"{amount} more":`{amount} gehiago`,"1 comment":`Iruzkin 1`,"Add comment":`Egin iruzkina`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Gehitu testuingurua zure iruzkinari, partekatu zure izena eta ezagutza eztabaida sanoa sustatzeko.`,"Add reply":`Erantzun`,"Add your expertise":`Gehitu zure ezagutza`,"Already a member?":`Kidea al zara?`,Anonymous:`Anonimoa`,"Are you sure?":`Ziur al zaude?`,Back:``,"Become a member of {publication} to start commenting.":`Egin zaitez {publication}(e)ko kide iruzkinak egiteko.`,"Become a paid member of {publication} to start commenting.":`Egin zaitez {publication}(e)ko ordainpeko kide iruzkinak egiteko.`,Best:`Onena`,Cancel:`Utzi`,Comment:`Egin iruzkina`,"Commenting disabled":``,"Complete your profile":`Bete zure profila`,Delete:`Ezabatu`,Deleted:`Ezabatuta`,"Deleted member":`Ezabatutako kidea`,Deleting:`Ezabatzen`,Discussion:`Eztabaida`,Dislike:``,Edit:`Editatu`,"Edit this comment":`Editatu iruzkina`,edited:`editatua`,"Enter your name":`Sartu zure izena`,Expertise:`Ezagutza`,"Founder @ Acme Inc":`FAGOR kooperatibaren fundatzailea`,"Full-time parent":`Lanaldi osoko gurasoa`,"Head of Marketing at Acme, Inc":`FAGOR kooperatibako marketin-zuzendaria`,"Hidden for members":`Ezkutatuta kideentzat`,"Hide comment":`Ezkutatu iruzkina`,"Jamie Larson":`Lur Axpe`,"Join the discussion":`Batu eztabaidara`,"Just now":`Oraintxe bertan`,Like:``,"Load more ({amount})":`Kargatu gehiago ({amount})`,"Local resident":`Bertoko bizilaguna`,"Member discussion":`Kideen eztabaida`,Name:`Izena`,Neurosurgeon:`Neurozirujaua`,Newest:`Berriena`,Oldest:`Zaharrena`,"Once deleted, this comment can’t be recovered.":`Ezabatuz gero, ezingo da berreskuratu.`,"One hour ago":`Duela ordubete`,"One min ago":`Duela minutu bat`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Erantzun`,"Reply to":`Erantzun honi`,"Reply to comment":`Erantzun iruzkin honi`,Report:`Salatu`,"Report comment":`Salatu iruzkina`,"Report this comment?":`Iruzkin hau salatu nahi al duzu?`,Save:`Gorde`,"See full discussion":``,Sending:`Bidaltzen`,Sent:`Bidalita`,"Show {amount} more replies":`Erakutsi {amount} erantzun gehiago`,"Show 1 more reply":`Erakutsi erantzun bat gehiago`,"Show comment":`Erakutsi iruzkina`,"Sign in":`Hasi saioa`,"Sign up now":`Eman izena orain`,"Sort by":`Antolatu honen arabera`,"Start the conversation":`Hasi eztabaida`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Iruzkin hau ezkutatu da.`,"This comment has been removed.":`Iruzkin hau kendu da.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Ordaindu orain`,"View in admin":``,Yesterday:`Atzo`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Eskaera gune honetako arduradunari bidaliko zaio.`},Sv={"{amount} characters left":`{amount} حرف باقی مانده است`,"{amount} comments":`{amount} دیدگاه`,"{amount} hrs ago":`{amount} ساعت پیش`,"{amount} mins ago":`{amount} دقیقه پیش`,"{amount} more":`{amount} مورد دیگر`,"1 comment":`۱ دیدگاه`,"Add comment":`افزودن دیدگاه`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`به دیدگاه خود زمینه بدهید و با به‌اشتراک‌گذاری نام و تخصص خود، گفت‌وگوی سالمی ایجاد کنید.`,"Add reply":`افزودن پاسخ`,"Add your expertise":`افزودن تخصص شما`,"Already a member?":`عضو هستید؟`,Anonymous:`ناشناس`,"Are you sure?":`مطمئن هستید؟`,Back:`بازگشت`,"Become a member of {publication} to start commenting.":`برای شروع دیدگاه‌گذاری، عضو {publication} شوید.`,"Become a paid member of {publication} to start commenting.":`برای شروع دیدگاه‌گذاری، عضو ویژه {publication} شوید.`,Best:`بهترین`,Cancel:`لغو`,Comment:`دیدگاه`,"Commenting disabled":`دیدگاه‌گذاری غیرفعال است`,"Complete your profile":`نمایه خود را کامل کنید`,Delete:`حذف`,Deleted:`حذف شد`,"Deleted member":`عضو حذف‌شده`,Deleting:`در حال حذف`,Discussion:`گفت‌وگو`,Dislike:`نپسندیدن`,Edit:`ویرایش`,"Edit this comment":`ویرایش این دیدگاه`,edited:`ویرایش‌شده`,"Enter your name":`نام خود را وارد کنید`,Expertise:`تخصص`,"Founder @ Acme Inc":`بنیان‌گذار @ Acme Inc`,"Full-time parent":`خانه‌دار تمام‌وقت`,"Head of Marketing at Acme, Inc":`مدیر بازاریابی Acme, Inc`,"Hidden for members":`برای اعضا پنهان است`,"Hide comment":`پنهان‌سازی دیدگاه`,"Jamie Larson":`جیمی لارسن`,"Join the discussion":`به گفت‌وگو بپیوندید`,"Just now":`همین الان`,Like:`پسندیدن`,"Load more ({amount})":`بارگذاری ({amount}) مورد دیگر`,"Local resident":`ساکن محلی`,"Member discussion":`گفت‌وگوی اعضا`,Name:`نام`,Neurosurgeon:`جراح مغز و اعصاب`,Newest:`جدیدترین`,Oldest:`قدیمی‌ترین`,"Once deleted, this comment can’t be recovered.":`پس از حذف، این دیدگاه قابل بازیابی نخواهد بود.`,"One hour ago":`۱ ساعت پیش`,"One min ago":`۱ دقیقه پیش`,"Pin comment":`سنجاق کردن دیدگاه`,Pinned:`سنجاق‌شده`,"Read more replies":`خواندن پاسخ‌های بیشتر`,"Remove dislike":`برگرداندن نپسندیدن`,"Remove like":`برگرداندن پسندیدن`,Reply:`پاسخ`,"Reply to":`پاسخ به`,"Reply to comment":`پاسخ به دیدگاه`,Report:`گزارش`,"Report comment":`گزارش دیدگاه`,"Report this comment?":`این دیدگاه گزارش شود؟`,Save:`ذخیره`,"See full discussion":`مشاهده گفت‌وگوی کامل`,Sending:`در حال ارسال`,Sent:`ارسال شد`,"Show {amount} more replies":`نمایش {amount} پاسخ دیگر`,"Show 1 more reply":`نمایش ۱ پاسخ دیگر`,"Show comment":`نمایش دیدگاه`,"Sign in":`ورود`,"Sign up now":`همین حالا ثبت‌ نام کنید`,"Sort by":`مرتب‌سازی بر اساس`,"Start the conversation":`گفت‌وگو را شروع کنید`,"The linked comment is no longer available.":`دیدگاه پیوندشده دیگر در دسترس نیست.`,"This comment has been hidden.":`این دیدگاه پنهان شده است.`,"This comment has been removed.":`این دیدگاه حذف شده است.`,Unpin:`برداشتن سنجاق`,"Unpin comment":`برداشتن سنجاق دیدگاه`,"Upgrade now":`همین حالا ارتقا دهید`,"View in admin":`مشاهده در مدیریت`,Yesterday:`دیروز`,"You can't post comments in this publication.":`شما نمی‌توانید در این نشریه دیدگاه بگذارید.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`شما نمی‌توانید در این نشریه دیدگاه بگذارید. برای اطلاعات بیشتر <a>با پشتیبانی تماس بگیرید</a>.`,"Your request will be sent to the owner of this site.":`درخواست شما برای مالک این سایت ارسال خواهد شد.`},Cv={"{amount} characters left":`{amount} merkkiä jäljellä`,"{amount} comments":`{amount} kommenttia`,"{amount} hrs ago":`{amount} tuntia sitten`,"{amount} mins ago":`{amount} minuuttia sitten`,"{amount} more":`{amount} vielä lisää`,"1 comment":`1 kommentti`,"Add comment":`Lisää kommentti`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Lisää sisältöä kommenttiisi, jaa nimesi ja osaamisesi saadaksesi aikaan tervettä keskustelua.`,"Add reply":`Lisää vastaus`,"Add your expertise":`Lisää osaamisesi`,"Already a member?":`Oletko jo jäsen?`,Anonymous:`Anonyymi`,"Are you sure?":`Oletko varma?`,Back:``,"Become a member of {publication} to start commenting.":`Liity sivun {publication} jäseneksi pystyäksesi kommentoimaan.`,"Become a paid member of {publication} to start commenting.":`Ota maksullinen jäsenyys sivulle {publication}, jotta pystyt kommentoimaan.`,Best:`Parhaat`,Cancel:`Peruuta`,Comment:`Kommentti`,"Commenting disabled":``,"Complete your profile":`Täydennä profiilisi`,Delete:`Poista`,Deleted:`Poistettu`,"Deleted member":`Poista jäsen`,Deleting:`Poistetaan`,Discussion:`Keskustelu`,Dislike:``,Edit:`Editoi`,"Edit this comment":`Editoi tätä kommenttia`,edited:`editoitu`,"Enter your name":`Syötä nimesi`,Expertise:`Osaaminen`,"Founder @ Acme Inc":`Perustaja`,"Full-time parent":`Kokoaikainen vanhempi`,"Head of Marketing at Acme, Inc":`Markkinointijohtaja`,"Hidden for members":`Piilotettu jäseniltä`,"Hide comment":`Piilota kommentti`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Liity keskusteluun`,"Just now":`Juuri nyt`,Like:``,"Load more ({amount})":`Lataa lisää ({amount})`,"Local resident":`Paikallinen`,"Member discussion":`Jäsenten keskustelu`,Name:`Nimi`,Neurosurgeon:`Neurokirurgi`,Newest:`Uusin`,Oldest:`Vanhin`,"Once deleted, this comment can’t be recovered.":`Jos poistat kommentin, sitä ei voi enää palauttaa.`,"One hour ago":`Tunti sitten`,"One min ago":`Minuutti sitten`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Vastaa`,"Reply to":`Vastaa:`,"Reply to comment":`Vastaa kommenttiin`,Report:`Ilmianna`,"Report comment":`Ilmianna kommentti`,"Report this comment?":`Haluatko ilmiantaa tämän kommentin?`,Save:`Tallenna`,"See full discussion":``,Sending:`Lähetetään`,Sent:`Lähetetty`,"Show {amount} more replies":`Näytä {amount} vastausta lisää `,"Show 1 more reply":`Näytä 1 vastaus lisää`,"Show comment":`Näytä kommentti`,"Sign in":`Kirjaudu sisään`,"Sign up now":`Rekisteröidy nyt`,"Sort by":`Lajitteluperuste`,"Start the conversation":`Aloita keskustelu`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Tämä kommentti on piilotettu.`,"This comment has been removed.":`Tämä kommentti on poistettu.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Korota nyt`,"View in admin":``,Yesterday:`Eilen`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Sinun pyyntösi lähetetään sivun omistajalle.`},wv={"{amount} characters left":`{amount} caractères restants`,"{amount} comments":`{amount} commentaires`,"{amount} hrs ago":`Il y a {amount} heures`,"{amount} mins ago":`Il y a {amount} minutes`,"{amount} more":`{amount} supplémentaire(s)`,"1 comment":`1 commentaire`,"Add comment":`Ajouter un commentaire`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Ajoutez un contexte à votre commentaire. Partagez votre nom et vos compétences pour favoriser une discussion saine.`,"Add reply":`Ajouter une réponse`,"Add your expertise":`Ajoutez vos compétences`,"Already a member?":`Déjà abonné(e) ?`,Anonymous:`Anonyme`,"Are you sure?":`Êtes-vous certain(e) ?`,Back:`Retour`,"Become a member of {publication} to start commenting.":`Abonnez-vous gratuitement à {publication} pour commencer à commenter.`,"Become a paid member of {publication} to start commenting.":`Choisissez un abonnement payant à {publication} pour commencer à commenter.`,Best:`Meilleur`,Cancel:`Annuler`,Comment:`Commentaire`,"Commenting disabled":`Commentaires désactivés`,"Complete your profile":`Complétez votre profil`,Delete:`Supprimer`,Deleted:`Supprimé`,"Deleted member":`Abonné(e) supprimé(e)`,Deleting:`Suppression en cours`,Discussion:`Discussion`,Dislike:`Je n’aime pas`,Edit:`Modifier`,"Edit this comment":`Modifier ce commentaire`,edited:`modifié`,"Enter your name":`Entrez votre nom`,Expertise:`Compétences`,"Founder @ Acme Inc":`Fondateur @ Acme Inc`,"Full-time parent":`Parent à plein temps`,"Head of Marketing at Acme, Inc":`Responsable du marketing chez Acme, Inc`,"Hidden for members":`Masqué pour les abonnés`,"Hide comment":`Masquer le commentaire`,"Jamie Larson":`Jean Martin`,"Join the discussion":`Rejoindre la discussion`,"Just now":`À l'instant`,Like:`J’aime`,"Load more ({amount})":`Afficher plus ({amount})`,"Local resident":`Résident local`,"Member discussion":`Discussion entre abonnés`,Name:`Nom`,Neurosurgeon:`Neurochirurgien`,Newest:`Plus récent`,Oldest:`Plus ancien`,"Once deleted, this comment can’t be recovered.":`Une fois supprimé, ce commentaire ne pourra pas être restauré.`,"One hour ago":`Il y a une heure`,"One min ago":`Il y a une minute`,"Pin comment":`Épingler le commentaire`,Pinned:`Épinglé`,"Read more replies":`Voir plus de réponses`,"Remove dislike":`Annuler le « Je n’aime pas »`,"Remove like":`Annuler le « J’aime »`,Reply:`Répondre`,"Reply to":`Répondre à`,"Reply to comment":`Répondre au commentaire`,Report:`Signaler`,"Report comment":`Signaler le commentaire`,"Report this comment?":`Signaler ce commentaire ?`,Save:`Enregistrer`,"See full discussion":`Voir la discussion complète`,Sending:`Envoi en cours`,Sent:`Envoyé`,"Show {amount} more replies":`Afficher {amount} réponses supplémentaires`,"Show 1 more reply":`Afficher 1 réponse supplémentaire`,"Show comment":`Afficher le commentaire`,"Sign in":`Se connecter`,"Sign up now":`S'inscrire maintenant`,"Sort by":`Trier par`,"Start the conversation":`Commencer la conversation`,"The linked comment is no longer available.":`Le commentaire lié n’est plus disponible.`,"This comment has been hidden.":`Ce commentaire a été masqué.`,"This comment has been removed.":`Ce commentaire a été supprimé.`,Unpin:`Désépingler`,"Unpin comment":`Désépingler le commentaire`,"Upgrade now":`Passer à l’abonnement payant`,"View in admin":`Voir dans l’administration`,Yesterday:`Hier`,"You can't post comments in this publication.":`Vous ne pouvez pas commenter cette publication.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Vous ne pouvez pas commenter cette publication. <a>Contactez le support</a> pour plus d’informations.`,"Your request will be sent to the owner of this site.":`Votre demande sera transférée au propriétaire de ce site.`},Tv={"{amount} characters left":`caractaran air fhàgail: {amount}`,"{amount} comments":`beachdan: {amount}`,"{amount} hrs ago":`o chionn {amount}u`,"{amount} mins ago":`o chionn {amount}m`,"{amount} more":`{amount} a bharrachd`,"1 comment":`1 bheachd`,"Add comment":`Fàg beachd air`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Cuir co-theacsa ris a' bheachd agad, cuir d' ainm is sàr-eòlas ris gus deasbad fallain a brosnachadh.`,"Add reply":`Cuir freagairt ris`,"Add your expertise":``,"Already a member?":`’Eil thu nad bhall mar-thà?`,Anonymous:`Gun ainm`,"Are you sure?":`A bheil thu cinnteach?`,Back:``,"Become a member of {publication} to start commenting.":`Clàraich nad bhall an làrach-lìn, {publication}, gus beachd fhàgail air.`,"Become a paid member of {publication} to start commenting.":`Clàraich nad bhall phrìomhach an làrach-lìn, {publication}, gus beachd fhàgail air.`,Best:``,Cancel:`Sguir dheth`,Comment:`Beachd`,"Commenting disabled":``,"Complete your profile":`Lìon a-steach a' phròifil agad`,Delete:`Sguab às`,Deleted:`Air a sguabadh às`,"Deleted member":`Ball air a sguabadh às`,Deleting:`'Ga sguabadh às`,Discussion:`Deasbad`,Dislike:``,Edit:`Deasaich`,"Edit this comment":`Deasaich am beachd seo`,edited:`Air a dheasachadh`,"Enter your name":`Cuir a-steach d’ ainm`,Expertise:`Sàr-eòlas`,"Founder @ Acme Inc":`Neach-stèidheachaidh @ Acme Inc`,"Full-time parent":`Pàrant làn-ùine`,"Head of Marketing at Acme, Inc":`Àrd-cheann Margaidheachd aig Acme, Inc`,"Hidden for members":`Air am falach bho bhuill`,"Hide comment":`Cuir am beachd am falach`,"Jamie Larson":`Seamaidh Larson`,"Join the discussion":`Gabh pàirt san deasbad`,"Just now":`An-dràsta`,Like:``,"Load more ({amount})":`Lùchdaich barrachd {amount}`,"Local resident":`Neach-còmhnaidh ionadail`,"Member discussion":`Deasbad`,Name:`Ainm`,Neurosurgeon:`Niùro-làmh-lèigh`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Cha ghabh a aiseag an dèidh sguabadh às`,"One hour ago":`O chionn uair a thìde`,"One min ago":`O chionn mionaid`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Cuir freagairt`,"Reply to":`Cuir freagairt gu`,"Reply to comment":`Cuir freagairt ri beachd`,Report:`Dèan aithris air`,"Report comment":`Dèan aithris air beachd`,"Report this comment?":`’Eil thu airson aithris a dhèanamh air a’ bheachd seo?`,Save:`Sabhail`,"See full discussion":``,Sending:`’Ga chur`,Sent:`Air a chur`,"Show {amount} more replies":`An àireamh de bheachdan a bharrachd a chìthear: {amount}`,"Show 1 more reply":`Seall beachd a bharrachd`,"Show comment":`Seall am beachd`,"Sign in":`Clàraich a-steach`,"Sign up now":`Clàraich a-nis`,"Sort by":`Seòrsaich a-rèir`,"Start the conversation":`Tòisich an deasbad`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Chaidh am beachd seo a chur am falach.`,"This comment has been removed.":`Chaidh am beachd seo a sguabadh às.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Àrdaich a-nis`,"View in admin":``,Yesterday:`An-dè`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Thèid an iarrtas agad a chur gu neach-seilbh an làrach-lìn seo.`},Ev={"{amount} characters left":`נותרו עוד {amount} תווים`,"{amount} comments":`{amount} תגובות`,"{amount} hrs ago":`לפני {amount} שעות`,"{amount} mins ago":`לפני {amount} דקות`,"{amount} more":`עוד {amount}`,"1 comment":`תגובה אחת`,"Add comment":`הוסיפו תגובה`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`הוסיפו תוכן לתגובה שלכם, שתפו את שמכם ואת התמחותכם כדי לקדם דיון בריא.`,"Add reply":`הוסיפו תגובה`,"Add your expertise":``,"Already a member?":`כבר רשומים?`,Anonymous:`אנונימי`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`הירשמו כחברי {publication} כדי להתחיל להגיב.`,"Become a paid member of {publication} to start commenting.":`הירשמו כחברי משלמים של {publication} כדי להתחיל להגיב.`,Best:``,Cancel:`ביטול`,Comment:`תגובה`,"Commenting disabled":``,"Complete your profile":`השלימו את הפרופיל שלכם`,Delete:`מחיקה`,Deleted:``,"Deleted member":`חבר שנמחק`,Deleting:``,Discussion:`דיון`,Dislike:``,Edit:`עריכה`,"Edit this comment":`ערכו תגובה זו`,edited:`נערך`,"Enter your name":`כתבו את שמכם`,Expertise:`ניסיון`,"Founder @ Acme Inc":`מייסד @ Acme Inc`,"Full-time parent":`הורה במשרה מלאה`,"Head of Marketing at Acme, Inc":`ראש אגף שיווק ב- Acme, Inc`,"Hidden for members":``,"Hide comment":`הסתר תגובה`,"Jamie Larson":`ג׳יימי לרסון`,"Join the discussion":`הצטרפו לדיון`,"Just now":`ממש עכשיו`,Like:``,"Load more ({amount})":``,"Local resident":`תושב מקומי`,"Member discussion":`דיון חברים רשומים`,Name:`שם`,Neurosurgeon:`נוֹיְרוֹכִירוּרְג`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`לפני שעה`,"One min ago":`לפני דקה`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`תגובה`,"Reply to":``,"Reply to comment":`הגיבו לתגובה`,Report:`דיווח`,"Report comment":`דווחו על תגובה`,"Report this comment?":`האם לדווח על תגובה זו?`,Save:`שמירה`,"See full discussion":``,Sending:`שליחה`,Sent:`שלחנו`,"Show {amount} more replies":`להציג עוד {amount} תגובות`,"Show 1 more reply":`להציג תגובה נוספת`,"Show comment":`להציג תגובה`,"Sign in":`היכנסו`,"Sign up now":`הירשמו עכשיו`,"Sort by":`למיין לפי`,"Start the conversation":`התחילו את השיחה`,"The linked comment is no longer available.":``,"This comment has been hidden.":`התגובה הזו הוסתרה.`,"This comment has been removed.":`התגובה הזו הוסרה.`,Unpin:``,"Unpin comment":``,"Upgrade now":`שדרגו עכשיו`,"View in admin":``,Yesterday:`אתמול`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`בקשתך תישלח לבעלים של האתר הזה.`},Dv={"{amount} characters left":`{amount} अक्षर बाकी`,"{amount} comments":`{amount} टिप्पणियाँ`,"{amount} hrs ago":`{amount} घंटे पहले`,"{amount} mins ago":`{amount} मिनट पहले`,"{amount} more":`{amount} और`,"1 comment":`1 टिप्पणी`,"Add comment":`टिप्पणी जोड़ें`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`अपनी टिप्पणी में संदर्भ जोड़ें, स्वस्थ चर्चा के लिए अपना नाम और विशेषज्ञता साझा करें।`,"Add reply":`जवाब जोड़ें`,"Add your expertise":`अपनी विशेषज्ञता जोड़ें`,"Already a member?":`पहले से सदस्य हैं?`,Anonymous:`अनाम`,"Are you sure?":`क्या आप सुनिश्चित हैं?`,Back:``,"Become a member of {publication} to start commenting.":`टिप्पणी शुरू करने के लिए {publication} का सदस्य बनें।`,"Become a paid member of {publication} to start commenting.":`टिप्पणी शुरू करने के लिए {publication} के भुगतान सदस्य बनें।`,Best:`सर्वश्रेष्ठ`,Cancel:`रद्द करें`,Comment:`टिप्पणी`,"Commenting disabled":``,"Complete your profile":`अपनी प्रोफ़ाइल पूरी करें`,Delete:`हटाएं`,Deleted:`हटा दिया गया`,"Deleted member":`हटाए गए सदस्य`,Deleting:`हटाया जा रहा है`,Discussion:`चर्चा`,Dislike:``,Edit:`संपादित करें`,"Edit this comment":`इस टिप्पणी को संपादित करें`,edited:`संपादित किया गया`,"Enter your name":`अपना नाम दर्ज करें`,Expertise:`विशेषज्ञता`,"Founder @ Acme Inc":`संस्थापक @ Acme Inc`,"Full-time parent":`पूर्णकालिक माता-पिता`,"Head of Marketing at Acme, Inc":`Acme, Inc में विपणन प्रमुख`,"Hidden for members":`सदस्यों के लिए छिपाया गया`,"Hide comment":`टिप्पणी छिपाएं`,"Jamie Larson":`राहुल शर्मा`,"Join the discussion":`चर्चा में शामिल हों`,"Just now":`अभी`,Like:``,"Load more ({amount})":`और लोड करें ({amount})`,"Local resident":`स्थानीय निवासी`,"Member discussion":`सदस्य चर्चा`,Name:`नाम`,Neurosurgeon:`न्यूरोसर्जन`,Newest:`नवीनतम`,Oldest:`सबसे पुराना`,"Once deleted, this comment can’t be recovered.":`एक बार हटाए जाने के बाद, इस टिप्पणी को पुनः प्राप्त नहीं किया जा सकता।`,"One hour ago":`एक घंटा पहले`,"One min ago":`एक मिनट पहले`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`जवाब दें`,"Reply to":`को जवाब दें`,"Reply to comment":`टिप्पणी का जवाब दें`,Report:`रिपोर्ट`,"Report comment":`टिप्पणी की रिपोर्ट करें`,"Report this comment?":`क्या आप इस टिप्पणी की रिपोर्ट करना चाहते हैं?`,Save:`सहेजें`,"See full discussion":``,Sending:`भेजा जा रहा है`,Sent:`भेजा गया`,"Show {amount} more replies":`{amount} और जवाब दिखाएं`,"Show 1 more reply":`1 और जवाब दिखाएं`,"Show comment":`टिप्पणी दिखाएं`,"Sign in":`साइन इन करें`,"Sign up now":`अभी साइनअप करें`,"Sort by":`क्रमबद्ध करें`,"Start the conversation":`बातचीत शुरू करें`,"The linked comment is no longer available.":``,"This comment has been hidden.":`इस टिप्पणी को छिपा दिया गया है।`,"This comment has been removed.":`इस टिप्पणी को हटा दिया गया है।`,Unpin:``,"Unpin comment":``,"Upgrade now":`अब उन्नत करें`,"View in admin":``,Yesterday:`कल`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`आपका अनुरोध इस साइट के मालिक को भेजा जाएगा।`},Ov={"{amount} characters left":`{amount} znakova preostalo`,"{amount} comments":`{amount} komentara`,"{amount} hrs ago":`Prije {amount} sati`,"{amount} mins ago":`Prije {amount} minuta`,"{amount} more":`{amount} više`,"1 comment":`1 komentar`,"Add comment":`Dodaj komentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Dajte kontekts vašem komentaru, podijelite vaše ime i znanje za unaprijeđenje svake rasprave.`,"Add reply":`Dodaj odgovor`,"Add your expertise":``,"Already a member?":`Već si član?`,Anonymous:`Anonimus`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Postani član {publication} za mogućnost komentiranja.`,"Become a paid member of {publication} to start commenting.":`Plati pretplatu na {publication} za mogućnost komentiranja.`,Best:``,Cancel:`Prekini`,Comment:`Komentar`,"Commenting disabled":``,"Complete your profile":`Dovrši svoj profil`,Delete:`Obriši`,Deleted:``,"Deleted member":`Obrisan član`,Deleting:``,Discussion:`Rasprava`,Dislike:``,Edit:`Uredi`,"Edit this comment":`Uredi ovaj komentar`,edited:`uređen`,"Enter your name":`Unesite vaše ime`,Expertise:`Stručnost`,"Founder @ Acme Inc":`Osnivač Acme Inc`,"Full-time parent":`Full-time Roditelj`,"Head of Marketing at Acme, Inc":`Voditelj marketinga Acme, Inc`,"Hidden for members":``,"Hide comment":`Sakrij komentar`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Pridruži se raspravi`,"Just now":`Upravo sada`,Like:``,"Load more ({amount})":``,"Local resident":`Lokalni stanovnik`,"Member discussion":`Rasprava članova`,Name:`Ime`,Neurosurgeon:`Neurokirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Prije jednog sata`,"One min ago":`Prije jedne minute`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Odgovori`,"Reply to":``,"Reply to comment":`Odgovori na komentar`,Report:`Prijavi`,"Report comment":`Prijavi komentar`,"Report this comment?":`Prijaviti ovaj komentar?`,Save:`Spremi`,"See full discussion":``,Sending:`Slanje`,Sent:`Poslano`,"Show {amount} more replies":`Prikaži još {amount} odgovora`,"Show 1 more reply":`Prikaži još jedan odgovor`,"Show comment":`Prikaži komentar`,"Sign in":`Prijava`,"Sign up now":`Registriraj se sada`,"Sort by":``,"Start the conversation":`Pokreni razgovor`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Ovaj komentar je skriven`,"This comment has been removed.":`Ovaj komentar je maknut`,Unpin:``,"Unpin comment":``,"Upgrade now":`Nadogradite sada`,"View in admin":``,Yesterday:`Jučer`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Vaš zahtjev će se poslati vasniku ovih web stranica.`},kv={"{amount} characters left":`{amount} karakter maradt`,"{amount} comments":`{amount} hozzászólás`,"{amount} hrs ago":`{amount} órája`,"{amount} mins ago":`{amount} perce`,"{amount} more":`{amount} még`,"1 comment":`1 hozzászólás`,"Add comment":`Hozzászólás`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Segítsd a beszélgetést azzal, hogy megadod a nevedet és azt, hogy mihez értesz.`,"Add reply":`Válasz`,"Add your expertise":`Add meg a szakterületedet`,"Already a member?":`Van már fiókod?`,Anonymous:`Anonim`,"Are you sure?":`Biztos vagy benne?`,Back:``,"Become a member of {publication} to start commenting.":`Csatlakozz a támogató {publication} közösséghez, hogy hozzászólhass a tartalmakhoz.`,"Become a paid member of {publication} to start commenting.":`Csatlakozz a fizető {publication} közösséghez, hogy hozzászólhass a tartalmakhoz.`,Best:`Legjobb`,Cancel:`Mégse`,Comment:`Hozzászólás`,"Commenting disabled":``,"Complete your profile":`Profil befejezése`,Delete:`Törlés`,Deleted:`Törölt`,"Deleted member":`Törölt tag`,Deleting:`Törölni`,Discussion:`Hozzászólások`,Dislike:``,Edit:`Szerkesztés`,"Edit this comment":`Hozzászólás szerkesztése`,edited:`szerkesztve`,"Enter your name":`Add meg a nevedet`,Expertise:`Foglalkozás`,"Founder @ Acme Inc":`A(z) @ Sirály Kft. alapítója`,"Full-time parent":`Főállású szülő`,"Head of Marketing at Acme, Inc":`Marketingvezető —\xA0Sirály Kft.`,"Hidden for members":`A tagok számára elrejtve`,"Hide comment":`Hozzászólás elrejtése`,"Jamie Larson":`Kiss Sára`,"Join the discussion":`Csatlakozz a beszélgetéshez`,"Just now":`Épp most`,Like:``,"Load more ({amount})":`Továbbiak betöltése ({amount})`,"Local resident":`Helyi lakos`,"Member discussion":`Tagok beszélgetése`,Name:`Név`,Neurosurgeon:`Idegsebész`,Newest:`Legújabb`,Oldest:`Legrégebbi`,"Once deleted, this comment can’t be recovered.":`A törlés után ez a hozzászólás nem állítható vissza.`,"One hour ago":`Egy órája`,"One min ago":`Egy perce`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Válasz`,"Reply to":`Válasz`,"Reply to comment":`Válasz a hozzászólásra`,Report:`Jelentés`,"Report comment":`Hozzászólás jelentése`,"Report this comment?":`Szeretnéd jelenteni ezt a hozzászólást?`,Save:`Mentés`,"See full discussion":``,Sending:`Küldés`,Sent:`Elküldve`,"Show {amount} more replies":`Mutass még {amount} választ`,"Show 1 more reply":`Mutass még egy választ`,"Show comment":`Hozzászólás mutatása`,"Sign in":`Bejelentkezés`,"Sign up now":`Regisztrálj most`,"Sort by":`Rendezés`,"Start the conversation":`Kezdd el a beszélgetést`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Ezt a hozzászólást elrejtettük.`,"This comment has been removed.":`Ezt a hozzászólást töröltük.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Előfizetéssel te is hozzászólhatsz`,"View in admin":``,Yesterday:`Tegnap`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`A kérésedet továbbítjuk a weboldal tulajdonosának.`},Av={"{amount} characters left":`{amount} karakter tersisa`,"{amount} comments":`{amount} komentar`,"{amount} hrs ago":`{amount} jam yang lalu`,"{amount} mins ago":`{amount} menit yang lalu`,"{amount} more":`{amount} lagi`,"1 comment":`1 komentar`,"Add comment":`Tambahkan komentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Tambahkan konteks pada komentar Anda, bagikan nama dan keahlian Anda untuk mendorong diskusi yang sehat.`,"Add reply":`Tambahkan balasan`,"Add your expertise":`Tambahkan keahlian Anda`,"Already a member?":`Sudah menjadi anggota?`,Anonymous:`Anonim`,"Are you sure?":`Apakah Anda yakin?`,Back:``,"Become a member of {publication} to start commenting.":`Jadilah anggota di {publication} untuk mulai berkomentar.`,"Become a paid member of {publication} to start commenting.":`Jadilah anggota berbayar di {publication} untuk mulai berkomentar.`,Best:`Terbaik`,Cancel:`Batal`,Comment:`Komentar`,"Commenting disabled":``,"Complete your profile":`Lengkapi profil Anda`,Delete:`Hapus`,Deleted:`Terhapus`,"Deleted member":`Anggota dihapus`,Deleting:`Menghapus...`,Discussion:`Diskusi`,Dislike:``,Edit:`Edit`,"Edit this comment":`Edit komentar ini`,edited:`diedit`,"Enter your name":`Masukkan nama Anda`,Expertise:`Keahlian`,"Founder @ Acme Inc":`Founder @ Acme Inc`,"Full-time parent":`Orang tua penuh waktu`,"Head of Marketing at Acme, Inc":`Direktur Pemasaran di Acme, Inc`,"Hidden for members":`Tersembunyi bagi anggota`,"Hide comment":`Sembunyikan komentar`,"Jamie Larson":`Sutan T. Alisjahbana`,"Join the discussion":`Bergabung dalam diskusi`,"Just now":`Baru saja`,Like:``,"Load more ({amount})":`Tampilkan {amount} lagi`,"Local resident":`Penduduk lokal`,"Member discussion":`Diskusi anggota`,Name:`Nama`,Neurosurgeon:`Ahli Bedah Saraf`,Newest:`Paling baru`,Oldest:`Paling lama`,"Once deleted, this comment can’t be recovered.":`Setelah dihapus, komentar ini tidak dapat dipulihkan.`,"One hour ago":`Satu jam yang lalu`,"One min ago":`Satu menit yang lalu`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Balas`,"Reply to":``,"Reply to comment":`Balas komentar`,Report:`Laporkan`,"Report comment":`Laporkan komentar`,"Report this comment?":`Laporkan komentar ini?`,Save:`Simpan`,"See full discussion":``,Sending:`Mengirim`,Sent:`Terkirim`,"Show {amount} more replies":`Tampilkan {amount} balasan lainnya`,"Show 1 more reply":`Tampilkan 1 balasan lainnya`,"Show comment":`Tampilkan komentar`,"Sign in":`Masuk`,"Sign up now":`Daftar sekarang`,"Sort by":`Urutkan berdasarkan`,"Start the conversation":`Mulai percakapan`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Komentar ini telah disembunyikan.`,"This comment has been removed.":`Komentar ini telah dihapus.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Daftar sekarang`,"View in admin":``,Yesterday:`Kemarin`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Permintaan Anda akan dikirim kepada pemilik situs ini.`},jv={"{amount} characters left":``,"{amount} comments":``,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":``,"1 comment":``,"Add comment":``,"Add context to your comment, share your name and expertise to foster a healthy discussion.":``,"Add reply":``,"Add your expertise":``,"Already a member?":``,Anonymous:``,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":``,"Become a paid member of {publication} to start commenting.":``,Best:``,Cancel:``,Comment:``,"Commenting disabled":``,"Complete your profile":``,Delete:``,Deleted:``,"Deleted member":``,Deleting:``,Discussion:``,Dislike:``,Edit:``,"Edit this comment":``,edited:``,"Enter your name":``,Expertise:``,"Founder @ Acme Inc":``,"Full-time parent":``,"Head of Marketing at Acme, Inc":``,"Hidden for members":``,"Hide comment":``,"Jamie Larson":``,"Join the discussion":``,"Just now":``,Like:``,"Load more ({amount})":``,"Local resident":``,"Member discussion":``,Name:``,Neurosurgeon:``,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":``,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:``,"Reply to":``,"Reply to comment":``,Report:``,"Report comment":``,"Report this comment?":``,Save:``,"See full discussion":``,Sending:``,Sent:``,"Show {amount} more replies":``,"Show 1 more reply":``,"Show comment":``,"Sign in":``,"Sign up now":``,"Sort by":``,"Start the conversation":``,"The linked comment is no longer available.":``,"This comment has been hidden.":``,"This comment has been removed.":``,Unpin:``,"Unpin comment":``,"Upgrade now":``,"View in admin":``,Yesterday:``,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":``},Mv={"{amount} characters left":`{amount} caratteri rimanenti`,"{amount} comments":`{amount} commenti`,"{amount} hrs ago":`{amount} ore fa`,"{amount} mins ago":`{amount} minuti fa`,"{amount} more":`{amount} in più`,"1 comment":`1 commento`,"Add comment":`Aggiungi commento`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Aggiungi dettagli al tuo commento, condividi il tuo nome e le tue competenze per incoraggiare una conversazione sana.`,"Add reply":`Aggiungi risposta`,"Add your expertise":`Aggiungi le tue competenze`,"Already a member?":`Sei già iscritto?`,Anonymous:`Anonimo`,"Are you sure?":`Sei sicuro?`,Back:`Indietro`,"Become a member of {publication} to start commenting.":`Iscriviti a {publication} per poter commentare.`,"Become a paid member of {publication} to start commenting.":`Abbonati a {publication} per poter commentare.`,Best:`Migliori`,Cancel:`Annulla`,Comment:`Commenta`,"Commenting disabled":`Commenti disabilitati`,"Complete your profile":`Completa il tuo profilo`,Delete:`Elimina`,Deleted:`Eliminato`,"Deleted member":`Utente eliminato`,Deleting:`Eliminazione in corso`,Discussion:`Discussione`,Dislike:`Non mi piace`,Edit:`Modifica`,"Edit this comment":`Modifica questo commento`,edited:`modificato`,"Enter your name":`Inserisci il tuo nome`,Expertise:`Competenze`,"Founder @ Acme Inc":`Megadirettore Galattico`,"Full-time parent":`Genitore a tempo pieno`,"Head of Marketing at Acme, Inc":`Ragioniere presso Megaditta`,"Hidden for members":`Nascosto per gli abbonati`,"Hide comment":`Nascondi commento`,"Jamie Larson":`Andrea Rossi`,"Join the discussion":`Partecipa alla discussione`,"Just now":`Adesso`,Like:`Mi piace`,"Load more ({amount})":`Caricane altri {amount}`,"Local resident":`Paesano`,"Member discussion":`Commenti`,Name:`Nome`,Neurosurgeon:`Neurochirurgo`,Newest:`Più recenti`,Oldest:`Più vecchi`,"Once deleted, this comment can’t be recovered.":`Una volta cancellato, non potrai più recuperare questo commento`,"One hour ago":`Un'ora fa`,"One min ago":`Un minuto fa`,"Pin comment":`Fissa commento`,Pinned:`Fissato`,"Read more replies":`Leggi più risposte`,"Remove dislike":`Rimuovi Non mi piace`,"Remove like":`Rimuovi Mi piace`,Reply:`Rispondi`,"Reply to":`Rispondi a`,"Reply to comment":`Rispondi al commento`,Report:`Segnala`,"Report comment":`Segnala commento`,"Report this comment?":`Segnalare questo commento?`,Save:`Salva`,"See full discussion":`Vedi la discussione completa`,Sending:`Invio`,Sent:`Inviato`,"Show {amount} more replies":`Mostra altre {amount} risposte`,"Show 1 more reply":`Mostra un'altra risposta`,"Show comment":`Mostra commento`,"Sign in":`Accedi`,"Sign up now":`Iscriviti ora`,"Sort by":`Ordina per`,"Start the conversation":`Commenta per primo`,"The linked comment is no longer available.":`Il commento collegato non è più disponibile.`,"This comment has been hidden.":`Questo commento è stato nascosto.`,"This comment has been removed.":`Questo commento è stato rimosso.`,Unpin:`Stacca`,"Unpin comment":`Stacca commento`,"Upgrade now":`Abbonati ora`,"View in admin":`Visualizza nell'area admin`,Yesterday:`Ieri`,"You can't post comments in this publication.":`Non puoi postare commenti in questa pubblicazione.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Non puoi postare commenti in questa pubblicazione. <a>Contatta il supporto</a> per maggiori informazioni.`,"Your request will be sent to the owner of this site.":`La tua richiesta sarà inviata al proprietario del sito.`},Nv={"{amount} characters left":`残り{amount}文字`,"{amount} comments":`{amount}のコメント`,"{amount} hrs ago":`{amount}時間前`,"{amount} mins ago":`{amount}分前`,"{amount} more":`さらに{amount}個`,"1 comment":`1のコメント`,"Add comment":`コメントする`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`コメントはよく説明し、名前と専門分野を共有することで健全な議論をすすめましょう。`,"Add reply":`返信する`,"Add your expertise":``,"Already a member?":`メンバーですか?`,Anonymous:`匿名`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`{publication}のメンバーになってコメントを始めましょう。`,"Become a paid member of {publication} to start commenting.":`{publication}の有料メンバーになってコメントを始めましょう。`,Best:``,Cancel:`キャンセル`,Comment:`コメント`,"Commenting disabled":``,"Complete your profile":`プロフィールを完成させる`,Delete:`削除`,Deleted:``,"Deleted member":`削除されたメンバー`,Deleting:``,Discussion:`議論`,Dislike:``,Edit:`編集`,"Edit this comment":`このコメントを編集する`,edited:`編集済み`,"Enter your name":`名前を記入`,Expertise:`専門分野`,"Founder @ Acme Inc":`創業者 @ Acme Inc`,"Full-time parent":`専業主婦・主夫`,"Head of Marketing at Acme, Inc":`マーケティング責任者 @ Acme, Inc`,"Hidden for members":``,"Hide comment":`コメントを非表示にする`,"Jamie Larson":`ジェイミー・ラーソン`,"Join the discussion":`議論に参加する`,"Just now":`今すぐ参加する`,Like:``,"Load more ({amount})":``,"Local resident":`地元住民`,"Member discussion":`メンバーによる議論`,Name:`名前`,Neurosurgeon:`脳神経外科医`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`1時間前`,"One min ago":`1分前`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`返信する`,"Reply to":``,"Reply to comment":`コメントに返信する`,Report:`通報する`,"Report comment":`コメントを通報する`,"Report this comment?":`このコメントを通報しますか?`,Save:`保存`,"See full discussion":``,Sending:`送信中`,Sent:`送信完了`,"Show {amount} more replies":`{amount}個の返信を表示する`,"Show 1 more reply":`返信をもう1つ表示する`,"Show comment":`コメントを表示する`,"Sign in":`ログイン`,"Sign up now":`今すぐ新規登録する`,"Sort by":``,"Start the conversation":`会話を始める`,"The linked comment is no longer available.":``,"This comment has been hidden.":`このコメントは非表示にされました。`,"This comment has been removed.":`このコメントは削除されました。`,Unpin:``,"Unpin comment":``,"Upgrade now":`今すぐアップデートする`,"View in admin":``,Yesterday:`昨日`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`あなたのリクエストはこのサイトの管理者に送信されます。`},Pv={"{amount} characters left":`{amount}글자 남음`,"{amount} comments":`{amount}개의 댓글`,"{amount} hrs ago":`{amount}시간 전`,"{amount} mins ago":`{amount}분 전`,"{amount} more":`{amount}개 더보기`,"1 comment":`1개의 댓글`,"Add comment":`댓글 추가`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`건설적인 토론을 위해 댓글에 맥락을 추가하고, 이름과 전문 분야를 공유해 주세요.`,"Add reply":`답글 작성`,"Add your expertise":`전문 분야를 추가해 주세요`,"Already a member?":`이미 회원이신가요?`,Anonymous:`익명`,"Are you sure?":`정말 하시겠어요?`,Back:`뒤로`,"Become a member of {publication} to start commenting.":`{publication}의 회원이 되어 댓글을 작성해 주세요.`,"Become a paid member of {publication} to start commenting.":`{publication}의 유료 회원이 되어 댓글을 작성해 주세요.`,Best:`추천순`,Cancel:`취소`,Comment:`댓글`,"Commenting disabled":`댓글 작성 비활성화됨`,"Complete your profile":`프로필을 완성해 주세요`,Delete:`삭제`,Deleted:`삭제됨`,"Deleted member":`삭제된 회원`,Deleting:`삭제 중`,Discussion:`댓글`,Dislike:`싫어요`,Edit:`수정`,"Edit this comment":`댓글 수정`,edited:`수정됨`,"Enter your name":`이름을 입력해 주세요`,Expertise:`전문분야`,"Founder @ Acme Inc":`Acme Inc 창업자`,"Full-time parent":`전업 부모`,"Head of Marketing at Acme, Inc":`Acme Inc 마케팅 책임자`,"Hidden for members":`회원에게 숨김 처리됨`,"Hide comment":`댓글 숨기기`,"Jamie Larson":`홍길동`,"Join the discussion":`댓글에 참여해 주세요`,"Just now":`방금 전`,Like:`좋아요`,"Load more ({amount})":`{amount}개 더 불러오기`,"Local resident":`지역 주민`,"Member discussion":`회원들의 댓글`,Name:`이름`,Neurosurgeon:`신경외과 의사`,Newest:`최신순`,Oldest:`오래된순`,"Once deleted, this comment can’t be recovered.":`삭제하면 이 댓글은 복구할 수 없어요.`,"One hour ago":`1시간 전`,"One min ago":`1분 전`,"Pin comment":`댓글 고정`,Pinned:`고정됨`,"Read more replies":`답글 더 보기`,"Remove dislike":`싫어요 취소`,"Remove like":`좋아요 취소`,Reply:`답글`,"Reply to":`답글 달기`,"Reply to comment":`댓글에 답글`,Report:`신고`,"Report comment":`댓글 신고`,"Report this comment?":`이 댓글을 신고하시겠어요?`,Save:`저장`,"See full discussion":`전체 댓글 보기`,Sending:`전송중`,Sent:`전송됨`,"Show {amount} more replies":`답글 {amount}개 더 보기`,"Show 1 more reply":`답글 1개 더 보기`,"Show comment":`댓글 보기`,"Sign in":`로그인`,"Sign up now":`회원가입`,"Sort by":`정렬 기준`,"Start the conversation":`댓글을 작성해 주세요`,"The linked comment is no longer available.":`연결된 댓글은 더 이상 이용할 수 없어요.`,"This comment has been hidden.":`숨김처리 된 댓글이에요.`,"This comment has been removed.":`삭제 된 댓글이에요.`,Unpin:`고정 해제`,"Unpin comment":`댓글 고정 해제`,"Upgrade now":`업그레이드`,"View in admin":`관리자 페이지에서 보기`,Yesterday:`어제`,"You can't post comments in this publication.":`이 사이트에서는 댓글을 작성할 수 없어요.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`이 사이트에서는 댓글을 작성할 수 없어요. 자세한 내용은 <a>고객지원에 문의</a>해 주세요.`,"Your request will be sent to the owner of this site.":`회원님의 요청이 사이트 운영자에게 전달돼요.`},Fv={"{amount} characters left":`{amount} таңба қалды`,"{amount} comments":`{amount} пікір`,"{amount} hrs ago":`{amount} сағат бұрын`,"{amount} mins ago":`{amount} минут бұрын`,"{amount} more":`тағы {amount}`,"1 comment":`1 пікір`,"Add comment":`Пікір қосу`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Талқы қызық болуы үшін өзіңіз туралы мәліметтерді қосыңыз.`,"Add reply":`Жауап қосу`,"Add your expertise":``,"Already a member?":`Әлдеқашан қосылдыңыз ба?`,Anonymous:`Аноним`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Пікір қалдыру үшін {publication} сайтына аккаунт қажет.`,"Become a paid member of {publication} to start commenting.":`Пікір қалдыру үшін {publication} сайтына ақылы аккаунт қажет.`,Best:``,Cancel:`Бас тарту`,Comment:`Пікір`,"Commenting disabled":``,"Complete your profile":`Профиліңізді толтырыңыз`,Delete:`Жою`,Deleted:``,"Deleted member":`Жойылған аккаунт`,Deleting:``,Discussion:`Талқы`,Dislike:``,Edit:`Өңдеу`,"Edit this comment":`Бұл пікірді өңдеу`,edited:`Өңделді`,"Enter your name":`Есіміңізді жазыңыз`,Expertise:`Қызмет`,"Founder @ Acme Inc":`@ Acme Inc құрылтайшысы`,"Full-time parent":`Толық күн жұмыс істейтін ата-ана`,"Head of Marketing at Acme, Inc":`@ Acme маркетинг жетекшісі `,"Hidden for members":``,"Hide comment":`Пікірді жасыру`,"Jamie Larson":`Пәленше Түгеншиев`,"Join the discussion":`Талқыға қосылу`,"Just now":`Дәл қазір`,Like:``,"Load more ({amount})":``,"Local resident":`Жергілікті тұрғын`,"Member discussion":`Мүшелер талқысы`,Name:`Есімі`,Neurosurgeon:`Нейрохирург`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Бір сағат бұрын`,"One min ago":`Бір минут бұрын`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Жауап беру`,"Reply to":``,"Reply to comment":`Пікірге жауап беру`,Report:`Шағымдану`,"Report comment":`Пікірге шағымдану`,"Report this comment?":`Осы пікірге шағым жіберілсін бе?`,Save:`Сақтау`,"See full discussion":``,Sending:`Жіберілуде`,Sent:`Жіберілді`,"Show {amount} more replies":`Тағы {amount} жауапты көрсету`,"Show 1 more reply":`Тағы 1 жауап көрсету`,"Show comment":`Пікірді көрсету`,"Sign in":`Кіру`,"Sign up now":`Қазір тіркелу`,"Sort by":``,"Start the conversation":`Талқыны бастау`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Бұл пікір жасырылды.`,"This comment has been removed.":`Бұл пікір өшірілді.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Жаңарту `,"View in admin":``,Yesterday:`Кеше`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Өтінішіңіз сайт иесіне жіберіледі.`},Iv={"{amount} characters left":`{amount} likę simboliai`,"{amount} comments":`{amount} komentarai`,"{amount} hrs ago":`Prieš {amount} val.`,"{amount} mins ago":`Prieš {amount} min.`,"{amount} more":`{amount} daugiau`,"1 comment":`1 komentaras`,"Add comment":`Rašyti komentarą`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Papildykite savo komentarą, prisistatykite ir pasidalinkite savo turimomis žiniomis, kad paskatintumėte prasmingą diskusiją.`,"Add reply":`Atsakyti`,"Add your expertise":``,"Already a member?":`Jau turite paskyrą?`,Anonymous:`Anoniminis`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Užsiregistruokite {publication}, kad galėtumėte komentuoti.`,"Become a paid member of {publication} to start commenting.":`Tapkite {publication} prenumeratoriumi, kad galėtumėte komentuoti.`,Best:``,Cancel:`Atšaukti`,Comment:`Komentuoti`,"Commenting disabled":``,"Complete your profile":`Pabaikite kurti savo profilį!`,Delete:`Ištrinti`,Deleted:``,"Deleted member":`Pašalintas narys`,Deleting:``,Discussion:`Diskusija`,Dislike:``,Edit:`Redaguoti`,"Edit this comment":`Redaguoti šį komentarą`,edited:`redaguotas`,"Enter your name":`Įrašykite savo vardą`,Expertise:`Specializacija`,"Founder @ Acme Inc":`Istorikas`,"Full-time parent":`Vaiką prižiūrintis tėvas`,"Head of Marketing at Acme, Inc":`Tyrinėtojas`,"Hidden for members":``,"Hide comment":`Paslėpti komentarą`,"Jamie Larson":`Vardenis Pavardenis`,"Join the discussion":`Prisijunkite prie diskusijos`,"Just now":`Ką tik`,Like:``,"Load more ({amount})":``,"Local resident":`Vietinis gyventojas`,"Member discussion":`Komentarai`,Name:`Vardas`,Neurosurgeon:`Neurochirurgas`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Prieš valandą`,"One min ago":`Prieš minutę`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Atsakyti`,"Reply to":``,"Reply to comment":`Atsakyti į komentarą`,Report:`Pranešti`,"Report comment":`Pranešti apie komentarą`,"Report this comment?":`Pranešti apie šį komentarą?`,Save:`Išsaugoti`,"See full discussion":``,Sending:`Siunčiama`,Sent:`Išsiųsta`,"Show {amount} more replies":`Rodyti daugiau atsakymų ({amount})`,"Show 1 more reply":`Rodyti dar 1 atsakymą`,"Show comment":`Rodyti komentarą`,"Sign in":`Prisijungti`,"Sign up now":`Registruotis`,"Sort by":``,"Start the conversation":`Parašykite pirmąjį komentarą`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Šis komentaras buvo paslėptas.`,"This comment has been removed.":`Šis komentaras buvo pašalintas.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Prenumeruokite`,"View in admin":``,Yesterday:`Vakar`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Jūsų pranešimas bus išsiųstas svetainės savininkui.`},Lv={"{amount} characters left":`Atlikušas {amount}\xA0rakstzīmes`,"{amount} comments":`{amount} komentāri`,"{amount} hrs ago":`pirms {amount}\xA0stundām`,"{amount} mins ago":`Pirms {amount}\xA0minūtēm`,"{amount} more":`Vēl {amount}`,"1 comment":`1 komentārs`,"Add comment":`Pievienot komentāru`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Pievienojiet savam komentāram kontekstu, kopīgojiet savu vārdu un zināšanas, lai veicinātu veselīgu diskusiju.`,"Add reply":`Pievienot atbildi`,"Add your expertise":``,"Already a member?":`Vai jau esat dalībnieks?`,Anonymous:`Anonīms`,"Are you sure?":`Vai esat pārliecināts?`,Back:``,"Become a member of {publication} to start commenting.":`Kļūstiet par {publication} dalībnieku, lai sāktu komentēt.`,"Become a paid member of {publication} to start commenting.":`Kļūstiet par apmaksātu {publication} dalībnieku, lai sāktu komentēt.`,Best:``,Cancel:`Atcelt`,Comment:`Komentēt`,"Commenting disabled":``,"Complete your profile":`Pabeidziet savu profilu`,Delete:`Dzēst`,Deleted:`Izdzēsts`,"Deleted member":`Dzēsts dalībnieks`,Deleting:`Dzēšana`,Discussion:`Diskusija`,Dislike:``,Edit:`Rediģēt`,"Edit this comment":`Rediģēt šo komentāru`,edited:`rediģēts`,"Enter your name":`Ievadiet savu vārdu`,Expertise:`Ekspertīze`,"Founder @ Acme Inc":`Dibinātājs @ Acme Inc`,"Full-time parent":`Pilnas slodzes vecāks`,"Head of Marketing at Acme, Inc":`Mārketinga vadītājs uzņēmumā Acme, Inc`,"Hidden for members":`Paslēpts dalībniekiem`,"Hide comment":`Slēpt komentāru`,"Jamie Larson":`Jānis Reikulis`,"Join the discussion":`Pievienojieties diskusijai`,"Just now":`Tikai tagad`,Like:``,"Load more ({amount})":``,"Local resident":`Vietējais iedzīvotājs`,"Member discussion":`Biedru diskusija`,Name:`Vārds`,Neurosurgeon:`Neiroķirurgs`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Pēc dzēšanas šo komentāru nevar atgūt.`,"One hour ago":`Pirms stundas`,"One min ago":`Pirms minūtes`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Atbildēt`,"Reply to":`Atbildēt uz`,"Reply to comment":`Atbildēt uz komentāru`,Report:`Ziņojums`,"Report comment":`Ziņot par komentāru`,"Report this comment?":`Vai ziņot par šo komentāru?`,Save:`Saglabāt`,"See full discussion":``,Sending:`Notiek nosūtīšana`,Sent:`Nosūtīts`,"Show {amount} more replies":`Rādīt vēl {amount} atbildes`,"Show 1 more reply":`Rādīt vēl 1 atbildi`,"Show comment":`Rādīt komentāru`,"Sign in":`Pierakstīties`,"Sign up now":`Reģistrējieties tūlīt`,"Sort by":`Kārtot pēc`,"Start the conversation":`Sāciet sarunu`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Šis komentārs ir paslēpts.`,"This comment has been removed.":`Šis komentārs ir noņemts.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Jauniniet tūlīt`,"View in admin":``,Yesterday:`Vakar`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Jūsu pieprasījums tiks nosūtīts šīs vietnes īpašniekam.`},Rv={"{amount} characters left":`Преостануваат {amount} знаци.`,"{amount} comments":`{amount} коментари`,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":`Уште {amount}`,"1 comment":`1 коментар`,"Add comment":`Додајте коментар`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Додајте контекст за вашиот коментар, споделете го вашето име и експертиза за да одржите пристојна дискусија.`,"Add reply":`Одговорете`,"Add your expertise":``,"Already a member?":`Веќе сте член?`,Anonymous:`Анонимен`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Станете член на {publication} за да можете да коментирате.`,"Become a paid member of {publication} to start commenting.":`Станете претплатен член на {publication} за да можеш да коментирате.`,Best:``,Cancel:`Откажете`,Comment:`Коментирајте`,"Commenting disabled":``,"Complete your profile":`Комплетирајте го вашиот профил`,Delete:`Избришете`,Deleted:``,"Deleted member":`Избришан член`,Deleting:``,Discussion:`Разговор`,Dislike:``,Edit:`Изменете`,"Edit this comment":`Изменете го овој коментар`,edited:``,"Enter your name":`Внесете го вашето име`,Expertise:`Експертиза`,"Founder @ Acme Inc":`Основач @ Примерна Компанија`,"Full-time parent":`Родител`,"Head of Marketing at Acme, Inc":`Раководител на Маркетинг во Примерна Компанија`,"Hidden for members":``,"Hide comment":`Скријте го коментарот`,"Jamie Larson":`Петар Петровски`,"Join the discussion":`Приклучете се во разговорот`,"Just now":`Штотуку`,Like:``,"Load more ({amount})":``,"Local resident":`Локал жител`,"Member discussion":`Разговор на членовите`,Name:`Име`,Neurosurgeon:`Неврохирург`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Пред еден час`,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Одговорете`,"Reply to":``,"Reply to comment":`Одговор на коментарот`,Report:`Пријавете`,"Report comment":`Пријавете коментар`,"Report this comment?":`Пријавете го овој коментар?`,Save:`Зачувајте`,"See full discussion":``,Sending:`Се испраќа`,Sent:`Испратено`,"Show {amount} more replies":`Покажи уште {amount} одговори`,"Show 1 more reply":`Покажи уште 1 одговор`,"Show comment":`Покажи коментар`,"Sign in":`Најавете се`,"Sign up now":`Регистрирајте се`,"Sort by":``,"Start the conversation":`Започнете го разговорот`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Овој коментар беше скриен.`,"This comment has been removed.":`Овој коментар беше отстранет.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Надградете`,"View in admin":``,Yesterday:`Вчера`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Вашето барање ќе биде испратено на сопственикот на оваа страница.`},zv={"{amount} characters left":`{amount} тэмдэгт үлдсэн`,"{amount} comments":`{amount} сэтгэгдэл`,"{amount} hrs ago":`{amount} цагийн өмнө`,"{amount} mins ago":`{amount} минутын өмнө`,"{amount} more":`{amount} илүү`,"1 comment":`1 сэтгэгдэл`,"Add comment":`Сэтгэгдэл нэмэх`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Сэтгэгдэлдээ илүү мэдээлэл оруулан, нэр болон мэргэжлээ хуваалцаж, үр бүтээлтэй хэлэлцүүлэг өрнүүлнэ үү.`,"Add reply":`Хариу нэмэх`,"Add your expertise":``,"Already a member?":`Бүртгэлтэй юу?`,Anonymous:`Нууц`,"Are you sure?":`Та итгэлтэй байна уу?`,Back:``,"Become a member of {publication} to start commenting.":`Сэтгэгдэл бичихийн тулд {publication}-н гишүүн болно уу.`,"Become a paid member of {publication} to start commenting.":`Сэтгэгдэл бичихийн тулд {publication}-н төлбөртэй гишүүн болно уу.`,Best:``,Cancel:`Цуцлах`,Comment:`Сэтгэгдэл`,"Commenting disabled":``,"Complete your profile":`Профайлаа бүрэн бөглөнө үү`,Delete:`Устгах`,Deleted:`Устгагдсан`,"Deleted member":`Устгагдсан гишүүн`,Deleting:`Устгаж байна`,Discussion:`Хэлэлцүүлэг`,Dislike:``,Edit:`Засах`,"Edit this comment":`Энэхүү сэтгэгдлийг засах`,edited:`засагдсан`,"Enter your name":`Нэрээ оруулна уу`,Expertise:`Мэргэжил`,"Founder @ Acme Inc":`Acme Inc-н үүсгэн байгуулагч`,"Full-time parent":`Бүтэн цагийн эцэг/эх`,"Head of Marketing at Acme, Inc":`Acme, Inc-н маркетингийн удирдлага`,"Hidden for members":`Гишүүдээс нуугдсан`,"Hide comment":`Сэтгэгдлийг нуух`,"Jamie Larson":`Доржийн Бат`,"Join the discussion":`Хэлэлцүүлэгт нэгдэх`,"Just now":`Дөнгөж сая`,Like:``,"Load more ({amount})":`Дахин харах ({amount})`,"Local resident":`Орон нутгийн оршин суугч`,"Member discussion":`Гишүүдийн хэлэлцүүлэг`,Name:`Нэр`,Neurosurgeon:`Мэдрэлийн мэс засалч`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Устгасны дараа энэ сэтгэгдлийг сэргээх боломжгүй.`,"One hour ago":`Нэг цагийн өмнө`,"One min ago":`Нэг минутын өмнө`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Хариулах`,"Reply to":`Хариулах`,"Reply to comment":`Сэтгэгдэлд хариулах`,Report:`Мэдэгдэх`,"Report comment":`Сэтгэгдлийг мэдэгдэх`,"Report this comment?":`Энэ сэтгэгдлийг мэдэгдэх үү?`,Save:`Хадгалах`,"See full discussion":``,Sending:`Илгээж байна`,Sent:`Илгээгдсэн`,"Show {amount} more replies":`{amount} хариултыг харуулах`,"Show 1 more reply":`1 хариултыг харуулах`,"Show comment":`Сэтгэгдлийг харуулах`,"Sign in":`Нэвтрэх`,"Sign up now":`Одоо бүртгүүлэх`,"Sort by":`Эрэмбэлэх`,"Start the conversation":`Яриаг эхлүүлэх`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Энэ сэтгэгдэл нуугдсан.`,"This comment has been removed.":`Энэ сэтгэгдэл хасагдсан.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Одоо шинэчлэх`,"View in admin":``,Yesterday:`Өчигдөр`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Таны хүсэлт энэ сайтын эзэмшигч рүү илгээгдэнэ.`},Bv={"{amount} characters left":``,"{amount} comments":``,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":``,"1 comment":``,"Add comment":``,"Add context to your comment, share your name and expertise to foster a healthy discussion.":``,"Add reply":``,"Add your expertise":``,"Already a member?":``,Anonymous:``,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":``,"Become a paid member of {publication} to start commenting.":``,Best:``,Cancel:``,Comment:``,"Commenting disabled":``,"Complete your profile":``,Delete:``,Deleted:``,"Deleted member":``,Deleting:``,Discussion:``,Dislike:``,Edit:``,"Edit this comment":``,edited:``,"Enter your name":``,Expertise:``,"Founder @ Acme Inc":``,"Full-time parent":``,"Head of Marketing at Acme, Inc":``,"Hidden for members":``,"Hide comment":``,"Jamie Larson":``,"Join the discussion":``,"Just now":``,Like:``,"Load more ({amount})":``,"Local resident":``,"Member discussion":``,Name:``,Neurosurgeon:``,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":``,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:``,"Reply to":``,"Reply to comment":``,Report:``,"Report comment":``,"Report this comment?":``,Save:``,"See full discussion":``,Sending:``,Sent:``,"Show {amount} more replies":``,"Show 1 more reply":``,"Show comment":``,"Sign in":``,"Sign up now":``,"Sort by":``,"Start the conversation":``,"The linked comment is no longer available.":``,"This comment has been hidden.":``,"This comment has been removed.":``,Unpin:``,"Unpin comment":``,"Upgrade now":``,"View in admin":``,Yesterday:``,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":``},Vv={"{amount} characters left":`{amount} tegn igjen`,"{amount} comments":`{amount} kommentarer`,"{amount} hrs ago":`{amount} timer siden`,"{amount} mins ago":`{amount} minutter siden`,"{amount} more":`{amount} mer`,"1 comment":`1 kommentar`,"Add comment":`Legg til kommentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Legg til kontekst i kommentaren din, del navnet ditt og ekspertisen din for å fremme en god diskusjon.`,"Add reply":`Legg til svar`,"Add your expertise":``,"Already a member?":`Allerede medlem?`,Anonymous:`Anonym`,"Are you sure?":`Er du sikker?`,Back:``,"Become a member of {publication} to start commenting.":`Bli medlem av {publication} for å begynne å kommentere.`,"Become a paid member of {publication} to start commenting.":`Bli et betalende medlem av {publication} for å begynne å kommentere.`,Best:``,Cancel:`Avbryt`,Comment:`Kommentar`,"Commenting disabled":``,"Complete your profile":`Fullfør profilen din`,Delete:`Slett`,Deleted:`Slettet`,"Deleted member":`Slettet medlem`,Deleting:`Sletter`,Discussion:`Diskusjon`,Dislike:``,Edit:`Rediger`,"Edit this comment":`Rediger denne kommentaren`,edited:`redigert`,"Enter your name":`Skriv inn navnet ditt`,Expertise:`Ekspertise`,"Founder @ Acme Inc":`Grunnlegger @ Acme Inc`,"Full-time parent":`Forelder på heltid`,"Head of Marketing at Acme, Inc":`Markedsføringsleder hos Acme Inc`,"Hidden for members":`Skjult for medlemmer`,"Hide comment":`Skjul kommentar`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Delta i diskusjonen`,"Just now":`Akkurat nå`,Like:``,"Load more ({amount})":`Last inn flere ({amount})`,"Local resident":`Lokal innbygger`,"Member discussion":`Medlemsdiskusjon`,Name:`Navn`,Neurosurgeon:`Nevrokirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`En time siden`,"One min ago":`Ett minutt siden`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Svar`,"Reply to":`Svar på`,"Reply to comment":`Svar på kommentar`,Report:`Rapporter`,"Report comment":`Rapporter kommentar`,"Report this comment?":`Rapportere denne kommentaren?`,Save:`Lagre`,"See full discussion":``,Sending:`Sender`,Sent:`Sendt`,"Show {amount} more replies":`Vis {amount} flere svar`,"Show 1 more reply":`Vis ett svar til`,"Show comment":`Vis kommentar`,"Sign in":`Logg inn`,"Sign up now":`Registrer deg nå`,"Sort by":`Sorter etter`,"Start the conversation":`Start samtalen`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Denne kommentaren er skjult.`,"This comment has been removed.":`Denne kommentaren er fjernet.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Oppgrader nå`,"View in admin":``,Yesterday:`I går`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Din forespørsel vil bli sendt til eieren av dette nettstedet.`},Hv={"{amount} characters left":`{amount} अक्षर बाँकी`,"{amount} comments":`{amount} प्रतिक्रियाहरू`,"{amount} hrs ago":`{amount} घण्टा अघि`,"{amount} mins ago":`{amount} मिनेट अघि`,"{amount} more":`{amount} थप`,"1 comment":`१ प्रतिक्रिया`,"Add comment":`प्रतिक्रिया थप्नुहोस्`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`आफ्नो प्रतिक्रियालाई सन्दर्भ दिनुहोस्, स्वस्थ छलफलको लागि आफ्नो नाम र विशेषज्ञता साझा गर्नुहोस्।`,"Add reply":`प्रत्युत्तर थप्नुहोस्`,"Add your expertise":`आफ्नो विशेषज्ञता थप्नुहोस्`,"Already a member?":`पहिले नै सदस्य हुनुहुन्छ?`,Anonymous:`अज्ञात`,"Are you sure?":`के तपाईं निश्चित हुनुहुन्छ?`,Back:``,"Become a member of {publication} to start commenting.":`प्रतिक्रिया सुरु गर्न {publication} को सदस्य बन्नुहोस्।`,"Become a paid member of {publication} to start commenting.":`प्रतिक्रिया सुरु गर्न {publication} को सशुल्क सदस्य बन्नुहोस्।`,Best:`उत्तम`,Cancel:`रद्द गर्नुहोस्`,Comment:`प्रतिक्रिया`,"Commenting disabled":``,"Complete your profile":`आफ्नो प्रोफाइल पूरा गर्नुहोस्`,Delete:`मेटाउनुहोस्`,Deleted:`मेटाइयो`,"Deleted member":`मेटाइएको सदस्य`,Deleting:`मेटाइँदैछ`,Discussion:`छलफल`,Dislike:``,Edit:`सम्पादन`,"Edit this comment":`यो प्रतिक्रिया सम्पादन गर्नुहोस्`,edited:`सम्पादित`,"Enter your name":`आफ्नो नाम प्रविष्ट गर्नुहोस्`,Expertise:`विशेषज्ञता`,"Founder @ Acme Inc":`संस्थापक @ Acme Inc`,"Full-time parent":`पूर्ण-कालीन अभिभावक`,"Head of Marketing at Acme, Inc":`Acme, Inc मा मार्केटिङ प्रमुख`,"Hidden for members":`सदस्यहरूका लागि लुकाइएको`,"Hide comment":`प्रतिक्रिया लुकाउनुहोस्`,"Jamie Larson":`जेमी लार्सन`,"Join the discussion":`छलफलमा सामेल हुनुहोस्`,"Just now":`भर्खरै`,Like:``,"Load more ({amount})":`थप लोड गर्नुहोस् ({amount})`,"Local resident":`स्थानीय बासिन्दा`,"Member discussion":`सदस्य छलफल`,Name:`नाम`,Neurosurgeon:`न्यूरोसर्जन`,Newest:`सबैभन्दा नयाँ`,Oldest:`सबैभन्दा पुरानो`,"Once deleted, this comment can’t be recovered.":`एक पटक मेटाइएपछि, यो प्रतिक्रिया पुन: प्राप्त गर्न सकिँदैन।`,"One hour ago":`एक घण्टा अघि`,"One min ago":`एक मिनेट अघि`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`प्रत्युत्तर दिनुहोस्`,"Reply to":`प्रत्युत्तर दिनुहोस्`,"Reply to comment":`प्रतिक्रियाको प्रत्युत्तर दिनुहोस्`,Report:`रिपोर्ट गर्नुहोस्`,"Report comment":`प्रतिक्रिया रिपोर्ट गर्नुहोस्`,"Report this comment?":`यो प्रतिक्रिया रिपोर्ट गर्नुहुन्छ?`,Save:`बचत गर्नुहोस्`,"See full discussion":``,Sending:`पठाइँदैछ`,Sent:`पठाइयो`,"Show {amount} more replies":`थप {amount} प्रत्युत्तरहरू देखाउनुहोस्`,"Show 1 more reply":`थप १ प्रत्युत्तर देखाउनुहोस्`,"Show comment":`प्रतिक्रिया देखाउनुहोस्`,"Sign in":`साइन इन गर्नुहोस्`,"Sign up now":`अहिले दर्ता गर्नुहोस्`,"Sort by":`क्रमबद्ध गर्नुहोस्`,"Start the conversation":`कुराकानी सुरु गर्नुहोस्`,"The linked comment is no longer available.":``,"This comment has been hidden.":`यो प्रतिक्रिया लुकाइएको छ।`,"This comment has been removed.":`यो प्रतिक्रिया हटाइएको छ।`,Unpin:``,"Unpin comment":``,"Upgrade now":`अहिले अपग्रेड गर्नुहोस्`,"View in admin":``,Yesterday:`हिजो`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`तपाईंको अनुरोध यस साइटको मालिकलाई पठाइनेछ।`},Uv={"{amount} characters left":`Nog {amount} tekens over`,"{amount} comments":`{amount} reacties`,"{amount} hrs ago":`{amount} uur geleden`,"{amount} mins ago":`{amount} min geleden`,"{amount} more":`Nog {amount}`,"1 comment":`Eén reactie`,"Add comment":`Versturen`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Voeg context toe aan je reactie, deel je naam en expertise om een gezonde discussie te bevorderen.`,"Add reply":`Beantwoorden`,"Add your expertise":``,"Already a member?":`Al lid?`,Anonymous:`Anoniem`,"Are you sure?":`Weet je het zeker?`,Back:``,"Become a member of {publication} to start commenting.":`Word lid van {publication} om te kunnen reageren.`,"Become a paid member of {publication} to start commenting.":`Word betalend lid van {publication} om te kunnen reageren.`,Best:``,Cancel:`Annuleren`,Comment:`Verstuur`,"Commenting disabled":``,"Complete your profile":`Vervolledig jouw profiel`,Delete:`Verwijderen`,Deleted:`Verwijderd`,"Deleted member":`Verwijderd lid`,Deleting:`Wordt verwijderd`,Discussion:`Gesprek`,Dislike:``,Edit:`Bewerken`,"Edit this comment":`Bewerk deze reactie`,edited:`bewerkt`,"Enter your name":`Vul je naam in`,Expertise:`Expertise`,"Founder @ Acme Inc":`Oprichter, Acme BV`,"Full-time parent":`Full-time ouder`,"Head of Marketing at Acme, Inc":`Acme BV, Hoofd Marketing`,"Hidden for members":`Verborgen voor leden`,"Hide comment":`Verberg reactie`,"Jamie Larson":`Jan Jansen`,"Join the discussion":`Doe mee aan het gesprek`,"Just now":`Zojuist`,Like:``,"Load more ({amount})":`Laad meer ({amount})`,"Local resident":`Lokale bewoner`,"Member discussion":`Gesprek`,Name:`Naam`,Neurosurgeon:`Neurochirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Eenmaal verwijderd, kan deze reactie niet meer worden hersteld.`,"One hour ago":`Eén uur geleden`,"One min ago":`Eén min geleden`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Beantwoorden`,"Reply to":`Antwoord op`,"Reply to comment":`Beantwoord deze reactie`,Report:`Melden`,"Report comment":`Meld reactie`,"Report this comment?":`Meld deze reactie?`,Save:`Opslaan`,"See full discussion":``,Sending:`Verzenden`,Sent:`Verzonden`,"Show {amount} more replies":`Toon {amount} extra antwoorden`,"Show 1 more reply":`Toon nog 1 antwoord`,"Show comment":`Toon reactie`,"Sign in":`Inloggen`,"Sign up now":`Registreren`,"Sort by":`Sorteren op`,"Start the conversation":`Begin het gesprek`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Deze reactie is verborgen.`,"This comment has been removed.":`Deze reactie is verwijderd.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Upgrade nu`,"View in admin":``,Yesterday:`Gisteren`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Jouw melding zal worden verzonden naar de eigenaar van deze site.`},Wv={"{amount} characters left":``,"{amount} comments":``,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":``,"1 comment":``,"Add comment":``,"Add context to your comment, share your name and expertise to foster a healthy discussion.":``,"Add reply":``,"Add your expertise":``,"Already a member?":``,Anonymous:``,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":``,"Become a paid member of {publication} to start commenting.":``,Best:``,Cancel:``,Comment:``,"Commenting disabled":``,"Complete your profile":``,Delete:``,Deleted:``,"Deleted member":``,Deleting:``,Discussion:``,Dislike:``,Edit:``,"Edit this comment":``,edited:``,"Enter your name":``,Expertise:``,"Founder @ Acme Inc":``,"Full-time parent":``,"Head of Marketing at Acme, Inc":``,"Hidden for members":``,"Hide comment":``,"Jamie Larson":``,"Join the discussion":``,"Just now":``,Like:``,"Load more ({amount})":``,"Local resident":``,"Member discussion":``,Name:``,Neurosurgeon:``,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":``,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:``,"Reply to":``,"Reply to comment":``,Report:``,"Report comment":``,"Report this comment?":``,Save:``,"See full discussion":``,Sending:``,Sent:``,"Show {amount} more replies":``,"Show 1 more reply":``,"Show comment":``,"Sign in":``,"Sign up now":``,"Sort by":``,"Start the conversation":``,"The linked comment is no longer available.":``,"This comment has been hidden.":``,"This comment has been removed.":``,Unpin:``,"Unpin comment":``,"Upgrade now":``,"View in admin":``,Yesterday:``,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":``},Gv={"{amount} characters left":`{amount} ਅੱਖਰ ਬਾਕੀ`,"{amount} comments":`{amount} ਟਿੱਪਣੀਆਂ`,"{amount} hrs ago":`{amount} ਘੰਟੇ ਪਹਿਲਾਂ`,"{amount} mins ago":`{amount} ਮਿੰਟ ਪਹਿਲਾਂ`,"{amount} more":`{amount} ਹੋਰ`,"1 comment":`1 ਟਿੱਪਣੀ`,"Add comment":`ਟਿੱਪਣੀ ਸ਼ਾਮਲ ਕਰੋ`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`ਆਪਣੀ ਟਿੱਪਣੀ ਵਿੱਚ ਸੰਦਰਭ ਸ਼ਾਮਲ ਕਰੋ, ਸਿਹਤਮੰਦ ਵਿਚਾਰ-ਵਟਾਂਦਰੇ ਨੂੰ ਉਤਸ਼ਾਹਿਤ ਕਰਨ ਲਈ ਆਪਣਾ ਨਾਮ ਅਤੇ ਮੁਹਾਰਤ ਸਾਂਝੀ ਕਰੋ।`,"Add reply":`ਜਵਾਬ ਸ਼ਾਮਲ ਕਰੋ`,"Add your expertise":`ਆਪਣੀ ਮੁਹਾਰਤ ਸ਼ਾਮਲ ਕਰੋ`,"Already a member?":`ਪਹਿਲਾਂ ਤੋਂ ਹੀ ਮੈਂਬਰ ਹੋ?`,Anonymous:`ਗੁਮਨਾਮ`,"Are you sure?":`ਕੀ ਤੁਹਾਨੂੰ ਯਕੀਨ ਹੈ?`,Back:``,"Become a member of {publication} to start commenting.":`{publication} ਦੇ ਮੈਂਬਰ ਬਣੋ ਅਤੇ ਟਿੱਪਣੀ ਕਰਨਾ ਸ਼ੁਰੂ ਕਰੋ।`,"Become a paid member of {publication} to start commenting.":`{publication} ਦੇ ਸਹਿਯੋਗੀ ਮੈਂਬਰ ਬਣੋ ਅਤੇ ਟਿੱਪਣੀ ਕਰਨਾ ਸ਼ੁਰੂ ਕਰੋ।`,Best:`ਸਭ ਤੋਂ ਵਧੀਆ`,Cancel:`ਰੱਦ ਕਰੋ`,Comment:`ਟਿੱਪਣੀ`,"Commenting disabled":``,"Complete your profile":`ਆਪਣਾ ਨਿੱਜੀ ਪੰਨਾ ਪੂਰਾ ਕਰੋ`,Delete:`ਮਿਟਾਓ`,Deleted:`ਮਿਟਾਇਆ ਗਿਆ`,"Deleted member":`ਮਿਟਾਇਆ ਗਿਆ ਮੈਂਬਰ`,Deleting:`ਮਿਟਾਇਆ ਜਾ ਰਿਹਾ ਹੈ`,Discussion:`ਵਿਚਾਰ-ਵਟਾਂਦਰਾ`,Dislike:``,Edit:`ਸੰਪਾਦਿਤ ਕਰੋ`,"Edit this comment":`ਇਸ ਟਿੱਪਣੀ ਨੂੰ ਸੰਪਾਦਿਤ ਕਰੋ`,edited:`ਸੰਪਾਦਿਤ`,"Enter your name":`ਆਪਣਾ ਨਾਮ ਦਰਜ ਕਰੋ`,Expertise:`ਮੁਹਾਰਤ`,"Founder @ Acme Inc":`ਸੰਸਥਾਪਕ @ ਫਲਾਣੀ ਕੰਪਨੀ`,"Full-time parent":`ਘਰੇਲੂ ਮਾਪਾ`,"Head of Marketing at Acme, Inc":`ਮਾਰਕੀਟਿੰਗ ਮੁਖੀ, ਫਲਾਣੀ ਕੰਪਨੀ ਵਿਖੇ`,"Hidden for members":`ਮੈਂਬਰਾਂ ਲਈ ਛੁਪਾਇਆ ਗਿਆ`,"Hide comment":`ਟਿੱਪਣੀ ਛੁਪਾਓ`,"Jamie Larson":`ਫਲਾਣਾ ਫਲਾਣੀ`,"Join the discussion":`ਵਿਚਾਰ-ਵਟਾਂਦਰੇ ਵਿੱਚ ਸ਼ਾਮਲ ਹੋਵੋ`,"Just now":`ਹੁਣੇ ਹੁਣੇ`,Like:``,"Load more ({amount})":`ਹੋਰ ਲੋਡ ਕਰੋ ({amount})`,"Local resident":`ਸਥਾਨਕ ਨਿਵਾਸੀ`,"Member discussion":`ਮੈਂਬਰ ਵਿਚਾਰ-ਵਟਾਂਦਰਾ`,Name:`ਨਾਮ`,Neurosurgeon:`ਨਿਊਰੋਸਰਜਨ`,Newest:`ਸਭ ਤੋਂ ਨਵਾਂ`,Oldest:`ਸਭ ਤੋਂ ਪੁਰਾਣਾ`,"Once deleted, this comment can’t be recovered.":`ਇੱਕ ਵਾਰ ਮਿਟਾਉਣ ਤੋਂ ਬਾਅਦ, ਇਹ ਟਿੱਪਣੀ ਮੁੜ ਪ੍ਰਾਪਤ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕਦੀ।`,"One hour ago":`ਇੱਕ ਘੰਟਾ ਪਹਿਲਾਂ`,"One min ago":`ਇੱਕ ਮਿੰਟ ਪਹਿਲਾਂ`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`ਜਵਾਬ`,"Reply to":`ਨੂੰ ਜਵਾਬ ਦਿਓ`,"Reply to comment":`ਟਿੱਪਣੀ ਦਾ ਜਵਾਬ ਦਿਓ`,Report:`ਰਿਪੋਰਟ ਕਰੋ`,"Report comment":`ਟਿੱਪਣੀ ਦੀ ਰਿਪੋਰਟ ਕਰੋ`,"Report this comment?":`ਕੀ ਇਸ ਟਿੱਪਣੀ ਦੀ ਰਿਪੋਰਟ ਕਰਨੀ ਹੈ?`,Save:`ਸੁਰੱਖਿਅਤ ਕਰੋ`,"See full discussion":``,Sending:`ਭੇਜਿਆ ਜਾ ਰਿਹਾ ਹੈ`,Sent:`ਭੇਜ ਦਿੱਤਾ ਗਿਆ`,"Show {amount} more replies":`{amount} ਹੋਰ ਜਵਾਬ ਦਿਖਾਓ`,"Show 1 more reply":`1 ਹੋਰ ਜਵਾਬ ਦਿਖਾਓ`,"Show comment":`ਟਿੱਪਣੀ ਦਿਖਾਓ`,"Sign in":`ਸਾਈਨ ਇਨ ਕਰੋ`,"Sign up now":`ਹੁਣੇ ਸਾਈਨ ਅੱਪ ਕਰੋ`,"Sort by":`ਇਸ ਅਨੁਸਾਰ ਕ੍ਰਮਬੱਧ ਕਰੋ`,"Start the conversation":`ਗੱਲਬਾਤ ਸ਼ੁਰੂ ਕਰੋ`,"The linked comment is no longer available.":``,"This comment has been hidden.":`ਇਹ ਟਿੱਪਣੀ ਛੁਪਾ ਦਿੱਤੀ ਗਈ ਹੈ।`,"This comment has been removed.":`ਇਹ ਟਿੱਪਣੀ ਹਟਾ ਦਿੱਤੀ ਗਈ ਹੈ।`,Unpin:``,"Unpin comment":``,"Upgrade now":`ਹੁਣੇ ਅੱਪਗਰੇਡ ਕਰੋ`,"View in admin":``,Yesterday:`ਕੱਲ੍ਹ`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`ਤੁਹਾਡੀ ਬੇਨਤੀ ਇਸ ਸਾਈਟ ਦੇ ਸੰਚਾਲਕ ਨੂੰ ਭੇਜੀ ਜਾਵੇਗੀ।`},Kv={"{amount} characters left":`Pozostało {amount} znaków`,"{amount} comments":`{amount} komentarzy`,"{amount} hrs ago":`{amount} godzin temu`,"{amount} mins ago":`{amount} minut temu`,"{amount} more":`{amount} więcej`,"1 comment":`1 komentarz`,"Add comment":`Dodaj komentarz`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Dodaj więcej informacji do Twojego komentarza, następnie udostępnij proszę Twoje imię i doświadczenie w celu wzbogacenia jakości dyskusji.`,"Add reply":`Dodaj odpowiedź`,"Add your expertise":``,"Already a member?":`Posiadasz już konto?`,Anonymous:`Anonimowy`,"Are you sure?":`Czy jesteś pewien?`,Back:``,"Become a member of {publication} to start commenting.":`Dołącz do społeczności {publication}, by zacząć komentować.`,"Become a paid member of {publication} to start commenting.":`Dołącz do społeczności płatnych subskrybentów {publication}, by zacząć komentować.`,Best:``,Cancel:`Anuluj`,Comment:`Skomentuj`,"Commenting disabled":``,"Complete your profile":`Skompletuj Twój profil`,Delete:`Usuń`,Deleted:`Usunięto`,"Deleted member":`Usunięte konto`,Deleting:`Usuwanie`,Discussion:`Dyskusja`,Dislike:``,Edit:`Edytuj`,"Edit this comment":`Edytuj komentarz`,edited:`edytowano`,"Enter your name":`Podaj Twoje imię`,Expertise:`Doświadczenie`,"Founder @ Acme Inc":`Founder @ Acme Inc`,"Full-time parent":`Pełnoetatowy rodzic`,"Head of Marketing at Acme, Inc":`Head of Marketing at Acme, Inc`,"Hidden for members":`Ukryte dla członków`,"Hide comment":`Ukryj komentarz`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Dołącz do dyskusji`,"Just now":`Przed chwilą`,Like:``,"Load more ({amount})":`Załaduj więcej ({amount})`,"Local resident":`Lokalny rezydent`,"Member discussion":`Członek dyskusji`,Name:`Imię`,Neurosurgeon:`Neurochirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Po usunięciu, nie będzie możliwe przywrócenie tego komentarza`,"One hour ago":`Godzinę temu`,"One min ago":`Minutę temu`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Odpowiedz`,"Reply to":`Odpowiedz na`,"Reply to comment":`Napisz odpowiedź do komentarza`,Report:`Zgłoś`,"Report comment":`Zgłoś komentarz`,"Report this comment?":`Czy chcesz zgłosić ten komentarz?`,Save:`Zapisz`,"See full discussion":``,Sending:`Wysyłanie`,Sent:`Wysłano`,"Show {amount} more replies":`Pokaż {amount} kolejnych odpowiedzi`,"Show 1 more reply":`Pokaż następną odpowiedź`,"Show comment":`Pokaż komentarz`,"Sign in":`Zaloguj się`,"Sign up now":`Zarejestruj się`,"Sort by":`Sortuj według`,"Start the conversation":`Rozpocznij dyskusję`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Komentarz został ukryty.`,"This comment has been removed.":`Komentarz został usunięty.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Ulepsz teraz`,"View in admin":``,Yesterday:`Wczoraj`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Twoje zgłoszenie zostało przesłane do administratora strony.`},qv={"{amount} characters left":`Faltam {amount} caracteres `,"{amount} comments":`{amount} comentários`,"{amount} hrs ago":`{amount} horas atrás`,"{amount} mins ago":`{amount} minutos atrás`,"{amount} more":`mais`,"1 comment":`Um comentário`,"Add comment":`Adicionar comentário`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Adicione o seu comentário, partilhe o seu nome e expriência de modo a promover uma discussão saudável.`,"Add reply":`Adicionar resposta`,"Add your expertise":``,"Already a member?":`Já é membro?`,Anonymous:`Anónimo`,"Are you sure?":`Tem a certeza?`,Back:``,"Become a member of {publication} to start commenting.":`Torne-se um membro do {publication} para comentar.`,"Become a paid member of {publication} to start commenting.":`Torne-se um membro pago do {publication} para comentar. `,Best:`Melhores`,Cancel:`Cancelar`,Comment:`Comentar`,"Commenting disabled":``,"Complete your profile":`Complete o seu perfil`,Delete:`Eliminar`,Deleted:`Eliminado`,"Deleted member":`Membro eliminado`,Deleting:`Eliminando`,Discussion:`Discussão`,Dislike:``,Edit:`Editar`,"Edit this comment":`Editar este comentário`,edited:`editado`,"Enter your name":`Insira o seu nome`,Expertise:`Perícia`,"Founder @ Acme Inc":`Fundador @ Amce Inc`,"Full-time parent":`Pai a tempo inteiro`,"Head of Marketing at Acme, Inc":`Responsável do Marketing @ Amce, Inc`,"Hidden for members":`Oculto para membros`,"Hide comment":`Esconder comentário`,"Jamie Larson":`Jane Doe`,"Join the discussion":`Junte-se à discussão`,"Just now":`Agora`,Like:``,"Load more ({amount})":``,"Local resident":`Residente local`,"Member discussion":`Discussão para membros`,Name:`Nome`,Neurosurgeon:`neurocirurgião`,Newest:`Mais recentes`,Oldest:`Mais antigos`,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`uma hora atrás`,"One min ago":`um minuto atrás`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Responder`,"Reply to":`Responder a`,"Reply to comment":`Responder ao comentário`,Report:`Reportar`,"Report comment":`Reportar comentário`,"Report this comment?":`Reportar este comentário?`,Save:`Guardar`,"See full discussion":``,Sending:`Enviar`,Sent:`Enviado`,"Show {amount} more replies":`Mostrar mais {amount} respostas`,"Show 1 more reply":`Mostrar mais uma resposta`,"Show comment":`Mostrar comentário`,"Sign in":`Registar`,"Sign up now":`Registar agora`,"Sort by":`Organizar por`,"Start the conversation":`Comece a conversa`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Este comentário foi ocultado`,"This comment has been removed.":`Este comentário foi removido`,Unpin:``,"Unpin comment":``,"Upgrade now":`Atualize agora`,"View in admin":``,Yesterday:`Ontem`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`O seu pedido será enviado para o dono deste site.`},Jv={"{amount} characters left":`{amount} caracteres restantes`,"{amount} comments":`{amount} comentários`,"{amount} hrs ago":`{amount} horas atrás`,"{amount} mins ago":`{amount} minutos atrás`,"{amount} more":`{amount} mais`,"1 comment":`1 comentário`,"Add comment":`Adicionar comentário`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Adicione contexto ao seu comentário, compartilhe seu nome e sua especialidade para promover uma discussão saudável.`,"Add reply":`Adicionar resposta`,"Add your expertise":`Adicione sua especialidade`,"Already a member?":`Já é um membro?`,Anonymous:`Anônimo`,"Are you sure?":`Você tem certeza?`,Back:`Voltar`,"Become a member of {publication} to start commenting.":`Torne-se um membro de {publication} para começar a comentar.`,"Become a paid member of {publication} to start commenting.":`Torne-se um membro pago de {publication} para começar a comentar.`,Best:`Melhores`,Cancel:`Cancelar`,Comment:`Comentar`,"Commenting disabled":`Comentários desativados`,"Complete your profile":`Complete seu perfil`,Delete:`Excluir`,Deleted:`Excluído`,"Deleted member":`Membro excluído`,Deleting:`Excluindo`,Discussion:`Discussão`,Dislike:`Não gostei`,Edit:`Editar`,"Edit this comment":`Editar este comentário`,edited:`editado`,"Enter your name":`Digite seu nome`,Expertise:`Especialidade`,"Founder @ Acme Inc":`Fundador @ Acme Inc`,"Full-time parent":`Pai/Mãe em tempo integral`,"Head of Marketing at Acme, Inc":`Chefe de Marketing na Acme, Inc`,"Hidden for members":`Oculto para membros`,"Hide comment":`Ocultar comentário`,"Jamie Larson":`Cris Silva`,"Join the discussion":`Participe da discussão`,"Just now":`Agora mesmo`,Like:`Gostei`,"Load more ({amount})":`Carregar mais ({amount})`,"Local resident":`Residente local`,"Member discussion":`Discussão entre membros`,Name:`Nome`,Neurosurgeon:`Neurocirurgião`,Newest:`Mais Recentes`,Oldest:`Mais Antigos`,"Once deleted, this comment can’t be recovered.":`Após ser excluído, esse comentário não poderá ser recuperado.`,"One hour ago":`Uma hora atrás`,"One min ago":`Um minuto atrás`,"Pin comment":`Fixar comentário`,Pinned:`Fixado`,"Read more replies":`Ler mais respostas`,"Remove dislike":`Remover não gostei`,"Remove like":`Remover gostei`,Reply:`Responder`,"Reply to":`Responder a`,"Reply to comment":`Responder ao comentário`,Report:`Denunciar`,"Report comment":`Denunciar comentário`,"Report this comment?":`Denunciar este comentário?`,Save:`Salvar`,"See full discussion":`Ver discussão completa`,Sending:`Enviando`,Sent:`Enviado`,"Show {amount} more replies":`Exibir mais {amount} respostas`,"Show 1 more reply":`Exibir 1 resposta adicional`,"Show comment":`Exibir comentário`,"Sign in":`Entrar`,"Sign up now":`Inscreva-se agora`,"Sort by":`Ordenar por`,"Start the conversation":`Iniciar a conversa`,"The linked comment is no longer available.":`O comentário vinculado não está mais disponível.`,"This comment has been hidden.":`Este comentário foi ocultado.`,"This comment has been removed.":`Este comentário foi removido.`,Unpin:`Desafixar`,"Unpin comment":`Desafixar comentário`,"Upgrade now":`Atualize agora`,"View in admin":`Ver no admin`,Yesterday:`Ontem`,"You can't post comments in this publication.":`Você não pode comentar nesta publicação.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Você não pode comentar nesta publicação. <a>Contate o suporte</a> para mais informações.`,"Your request will be sent to the owner of this site.":`Sua solicitação será enviada ao proprietário deste site.`},Yv={"{amount} characters left":`{amount} caractere rămase`,"{amount} comments":`{amount} comentarii`,"{amount} hrs ago":`acum {amount} ore`,"{amount} mins ago":`acum {amount} minute`,"{amount} more":`încă {amount}`,"1 comment":`1 comentariu`,"Add comment":`Adaugă comentariu`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Adăugați context comentariului dumneavoastră, împărtășiți-vă numele și expertiza pentru a favoriza o discuție sănătoasă.`,"Add reply":`Adaugă răspuns`,"Add your expertise":``,"Already a member?":`Deja membru?`,Anonymous:`Anonim`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Deveniți membru al {publication} pentru a începe să comentați.`,"Become a paid member of {publication} to start commenting.":`Deveniți membru plătit al {publication} pentru a începe să comentați.`,Best:``,Cancel:`Anulează`,Comment:`Comentează`,"Commenting disabled":``,"Complete your profile":`Completează-ți profilul`,Delete:`Șterge`,Deleted:``,"Deleted member":`Membru șters`,Deleting:``,Discussion:`Discuție`,Dislike:``,Edit:`Editează`,"Edit this comment":`Editează acest comentariu`,edited:`editat`,"Enter your name":`Introduceți numele dumneavoastră`,Expertise:`Expertiză`,"Founder @ Acme Inc":`Fondator @ Acme Inc`,"Full-time parent":`Părinte cu normă întreagă`,"Head of Marketing at Acme, Inc":`Șef de Marketing la Acme, Inc`,"Hidden for members":``,"Hide comment":`Ascunde comentariul`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Alătură-te discuției`,"Just now":`Chiar acum`,Like:``,"Load more ({amount})":``,"Local resident":`Rezident local`,"Member discussion":`Discuție membrii`,Name:`Nume`,Neurosurgeon:`Neurochirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Acum o oră`,"One min ago":`Acum un minut`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Răspunde`,"Reply to":``,"Reply to comment":`Răspunde la comentariu`,Report:`Raportează`,"Report comment":`Raportează comentariul`,"Report this comment?":`Raportezi acest comentariu?`,Save:`Salvează`,"See full discussion":``,Sending:`Se trimite`,Sent:`Trimis`,"Show {amount} more replies":`Arată încă {amount} răspunsuri`,"Show 1 more reply":`Arată încă un răspuns`,"Show comment":`Arată comentariul`,"Sign in":`Autentificare`,"Sign up now":`Înregistrează-te acum`,"Sort by":`Ordonează după`,"Start the conversation":`Începe conversația`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Acest comentariu a fost ascuns.`,"This comment has been removed.":`Acest comentariu a fost eliminat.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Actualizează acum`,"View in admin":``,Yesterday:`Ieri`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Cererea dumneavoastră va fi trimisă proprietarului acestui site.`},Xv={"{amount} characters left":`{amount} символа(ов) осталось`,"{amount} comments":`{amount} комментария(ев)`,"{amount} hrs ago":`{amount} ч. назад`,"{amount} mins ago":`{amount} мин. назад`,"{amount} more":`ещё {amount}`,"1 comment":`1 комментарий`,"Add comment":`Добавить комментарий`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Дополните свой комментарий контекстом, добавив подробности о себе и своём опыте, чтобы обсуждение стало более интересным.`,"Add reply":`Добавить ответ`,"Add your expertise":`Добавить свой опыт`,"Already a member?":`Уже присоединились?`,Anonymous:`Анонимный`,"Are you sure?":`Вы уверены?`,Back:``,"Become a member of {publication} to start commenting.":`Присоединяйтесь к {publication} чтобы начать комментировать.`,"Become a paid member of {publication} to start commenting.":`Станьте платным участником {publication} чтобы начать комментировать.`,Best:`Лучший`,Cancel:`Отмена`,Comment:`Комментарий`,"Commenting disabled":``,"Complete your profile":`Заполните свой профиль`,Delete:`Удалить`,Deleted:`Удалено`,"Deleted member":`Удалённый участник`,Deleting:`Удаление`,Discussion:`Обсуждение`,Dislike:``,Edit:`Редактировать`,"Edit this comment":`Редактировать этот комментарий`,edited:`Отредактированно`,"Enter your name":`Введите ваше имя`,Expertise:`Деятельность`,"Founder @ Acme Inc":`Основатель @ Корпорация «Акме»`,"Full-time parent":`Родитель, работающий полный рабочий день`,"Head of Marketing at Acme, Inc":`Руководитель отдела маркетинга в Корпорации «Акме»`,"Hidden for members":`Скрыто для участников`,"Hide comment":`Скрыть комментарий`,"Jamie Larson":`Павел Бид`,"Join the discussion":`Присоединиться к обсуждению`,"Just now":`Сейчас`,Like:``,"Load more ({amount})":`Загрузить ещё ({amount})`,"Local resident":`Местный житель`,"Member discussion":`Обсуждение участников`,Name:`Имя`,Neurosurgeon:`Нейрохирург`,Newest:`Сначала новые`,Oldest:`Сначала старые`,"Once deleted, this comment can’t be recovered.":`После удаления этот комментарий не может быть восстановлен.`,"One hour ago":`Час назад`,"One min ago":`Минуту назад`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Ответить`,"Reply to":`Ответить на`,"Reply to comment":`Ответить на комментарий`,Report:`Пожаловаться`,"Report comment":`Пожаловаться на комментарий`,"Report this comment?":`Пожаловаться на этот комментарий?`,Save:`Сохранить`,"See full discussion":``,Sending:`Отправка`,Sent:`Отправлено`,"Show {amount} more replies":`Показать ещё {amount} ответа(ов)`,"Show 1 more reply":`Показать ответ`,"Show comment":`Показать комментарий`,"Sign in":`Войти`,"Sign up now":`Зарегистрироваться`,"Sort by":`Сортировать по`,"Start the conversation":`Начать обсуждение`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Этот комментарий скрыт`,"This comment has been removed.":`Этот комментарий был удалён`,Unpin:``,"Unpin comment":``,"Upgrade now":`Улучшить подписку`,"View in admin":``,Yesterday:`Вчера`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Ваш запрос будет отправлен владельцу сайта.`},Zv={"{amount} characters left":`තව වචන {amount} යි.`,"{amount} comments":`අදහ​ස් {amount} යි.`,"{amount} hrs ago":`පැය {amount} ට පෙ​ර`,"{amount} mins ago":`මිනිත්තු {amount} ට පෙ​ර`,"{amount} more":``,"1 comment":`1 අදහසයි.`,"Add comment":`අදහස් එකතු කරන්​න`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`ඉතා හො​ඳ සාකච්ඡාවක් රැගෙ​න යාම සඳහා ඔබේ අදහසට අන්තර්ගත​ය එක් කර ඔබේ නම සහ විශේෂඥතාව බෙදා ගන්න`,"Add reply":`ප්‍රතිචාර එකතු කරන්​න`,"Add your expertise":``,"Already a member?":`දැනටමත් සාමාජිකයෙක්ද ?`,Anonymous:`නිර්නාමික`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`අදහස් දැක්වීම ආරම්භ කිරීමට {publication} හි සාමාජිකයෙකු වන්න`,"Become a paid member of {publication} to start commenting.":`අදහස් දැක්වීම ආරම්භ කිරීමට {publication} හි ගෙවීම් කරන ල​ද සාමාජිකයෙකු වන්න`,Best:``,Cancel:`අවලංගු කරන්​න​`,Comment:`අදහ​ස`,"Commenting disabled":``,"Complete your profile":`ඔබගේ ගිණුම සම්පූර්ණ කරන්​න`,Delete:`Delete කරන්​න`,Deleted:``,"Deleted member":`සාමාජිකයාව delete කරන්​න`,Deleting:``,Discussion:`සාකච්ඡා​ව`,Dislike:``,Edit:`සංස්කරණය කරන්න`,"Edit this comment":`අදහස සංස්කරණය කරන්න`,edited:`සංස්කරණය කරන ලද.`,"Enter your name":`ඔබගේ නම සඳහන් කරන්​න`,Expertise:`විශේෂඥතාව`,"Founder @ Acme Inc":`Acme Inc හි නිර්මාතෘ`,"Full-time parent":`පූර්ණ කාලීන භාරකරුව​න්`,"Head of Marketing at Acme, Inc":`Acme, Inc හි අලෙවි ප්‍රධානී`,"Hidden for members":``,"Hide comment":`අදහස සඟවන්න`,"Jamie Larson":`ජේමි ලාර්සන්`,"Join the discussion":`සාකච්ඡාවට එක්වන්න`,"Just now":`මේ දැ​න්`,Like:``,"Load more ({amount})":``,"Local resident":`දේශීය පදිංචි`,"Member discussion":`සාමාජික සාකච්ඡාව`,Name:`න​ම`,Neurosurgeon:`ස්නායු ශ​ල්‍ය වෛ​ද්‍ය`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`පැයකට පෙ​ර`,"One min ago":`මිනිත්තුවකට පෙ​ර`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`ප්‍රතිචාර දක්වන්​න`,"Reply to":``,"Reply to comment":`අදහසට ‍රතිචාර දක්වන්​න`,Report:`වාර්තා කරන්​න`,"Report comment":`අදහසට වාර්තා කරන්​න`,"Report this comment?":`මෙම අදහසට වාර්තා කරන්නෙහිද ?`,Save:`සුරකින්​න`,"See full discussion":``,Sending:`යවමි​න්`,Sent:`යැව්වා`,"Show {amount} more replies":`තවත් පිළිතුරු {amount} පෙන්වන්න`,"Show 1 more reply":`තවත් පිළිතුරු 1ක් පෙන්වන්න`,"Show comment":`අදහස පෙන්වන්න`,"Sign in":`Sign in වෙන්​න`,"Sign up now":`දැන්ම Sign up වෙන්​න`,"Sort by":``,"Start the conversation":`සංවාදය ආරම්භ කරන්න`,"The linked comment is no longer available.":``,"This comment has been hidden.":`මෙම අදහස සඟවා ඇත.`,"This comment has been removed.":`මෙම අදහස ඉවත් කර ඇත.`,Unpin:``,"Unpin comment":``,"Upgrade now":`දැන් upgrade කරන්න`,"View in admin":``,Yesterday:`ඊ​යෙ`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`ඔබගේ ඉල්ලීම මෙම අඩවියේ හිමිකරු වෙත යවනු ලැබේ.`},Qv={"{amount} characters left":`Zostáva {amount} znakov`,"{amount} comments":`{amount} komentárov`,"{amount} hrs ago":`Pred {amount} hodinami`,"{amount} mins ago":`Pred {amount} minútami`,"{amount} more":`{amount} ďalších`,"1 comment":`1 komentár`,"Add comment":`Pridať komentár`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Pridajte kontext do vášho komentára, zdielajte svoje meno, a odbornosť pre podporu zdravej diskusie.`,"Add reply":`Pridať odpoveď`,"Add your expertise":``,"Already a member?":`Už ste členom?`,Anonymous:`Anonym`,"Are you sure?":`Ste si istý?`,Back:``,"Become a member of {publication} to start commenting.":`Staňte sa členom {publication}, aby ste mohli začať komentovať`,"Become a paid member of {publication} to start commenting.":`Staňte sa plateným členom {publication}, aby ste mohli začať komentovať`,Best:``,Cancel:`Zrušiť`,Comment:`Komentár`,"Commenting disabled":``,"Complete your profile":`Dokončite váš profil`,Delete:`Vymazať`,Deleted:`Vymazané`,"Deleted member":`Vymazaný člen`,Deleting:`Vymazávam`,Discussion:`Diskusia`,Dislike:``,Edit:`Upraviť`,"Edit this comment":`Upraviť komentár`,edited:`upravený`,"Enter your name":`Zadajte vaše meno`,Expertise:`Odbornosť`,"Founder @ Acme Inc":`Zakladateľ @ Acme Inc`,"Full-time parent":`Rodič na plný úväzok`,"Head of Marketing at Acme, Inc":`Vedúci marketingu v spoločnosti Acme, Inc`,"Hidden for members":`Skryté pre členov`,"Hide comment":`Skryť komentár`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Zapojiť sa do diskusie`,"Just now":`Teraz`,Like:``,"Load more ({amount})":``,"Local resident":`Miestny obyvateľ`,"Member discussion":`Členská diskusia`,Name:`Meno`,Neurosurgeon:`Neurochirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Po odstránení nebude možné tento komentár obnoviť.`,"One hour ago":`Pred hodinou`,"One min ago":`Pred minútou`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Odpovedať`,"Reply to":`Odpovedať na`,"Reply to comment":`Odpovedať na komentár`,Report:`Nahlásiť`,"Report comment":`Nahlásiť komentár`,"Report this comment?":`Nahlásiť tento komentár?`,Save:`Uložiť`,"See full discussion":``,Sending:`Odosielanie`,Sent:`Odoslané`,"Show {amount} more replies":`Zobraziť {amount} ďalších odpoveďí`,"Show 1 more reply":`Zobraziť 1 ďalšiu odpoveď`,"Show comment":`Zobraziť komentár`,"Sign in":`Prihlásiť`,"Sign up now":`Registrovať sa`,"Sort by":`Triediť podľa`,"Start the conversation":`Začať konverzáciu`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Tento komentár bol skrytý.`,"This comment has been removed.":`Tento komentár bol vymazaný.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Upraviť členstvo`,"View in admin":``,Yesterday:`Včera`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Vaša požiadavka bude odoslaná vlastníkovi stránky.`},$v={"{amount} characters left":`Še {amount} znakov`,"{amount} comments":`{amount} komentarjev`,"{amount} hrs ago":`Pred {amount} urami`,"{amount} mins ago":`Pred {amount} minutami`,"{amount} more":`Še {amount}`,"1 comment":`1 komentar`,"Add comment":`Dodajte komentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Dodajte kontekst svojemu komentarju, delite svoje ime in strokovno znanje za spodbujanje zdrave razprave.`,"Add reply":`Dodajte odgovor`,"Add your expertise":``,"Already a member?":`Ste že član?`,Anonymous:`Anonimno`,"Are you sure?":`Ste prepričani?`,Back:``,"Become a member of {publication} to start commenting.":`Postanite član {publication}, da lahko začnete komentirati.`,"Become a paid member of {publication} to start commenting.":`Postanite plačljiv član {publication}, da lahko začnete komentirati.`,Best:``,Cancel:`Prekliči`,Comment:`Komentiraj`,"Commenting disabled":``,"Complete your profile":`Dokončajte svoj profil`,Delete:`Izbriši`,Deleted:`Izbrisano`,"Deleted member":`Izbrisan član`,Deleting:`Brisanje`,Discussion:`Razprava`,Dislike:``,Edit:`Uredi`,"Edit this comment":`Uredi ta komentar`,edited:`urejeno`,"Enter your name":`Vnesite svoje ime`,Expertise:`Strokovno znanje`,"Founder @ Acme Inc":`Ustanovitelj pri Acme Inc`,"Full-time parent":`Starš s polnim delovnim časom`,"Head of Marketing at Acme, Inc":`Vodja marketinga pri Acme, Inc`,"Hidden for members":`Skrito za člane`,"Hide comment":`Skrij komentar`,"Jamie Larson":`Janez Novak`,"Join the discussion":`Pridružite se razpravi`,"Just now":`Pravkar`,Like:``,"Load more ({amount})":`Naloži več ({amount})`,"Local resident":`Lokalni prebivalec`,"Member discussion":`Razprava članov`,Name:`Ime`,Neurosurgeon:`Nevrokirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Ko je komentar izbrisan, ga ni mogoče več obnoviti.`,"One hour ago":`Pred eno uro`,"One min ago":`Pred eno minuto`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Odgovori`,"Reply to":`Odgovori na`,"Reply to comment":`Odgovori na komentar`,Report:`Prijavi`,"Report comment":`Prijavi komentar`,"Report this comment?":`Želite prijaviti ta komentar?`,Save:`Shrani`,"See full discussion":``,Sending:`Pošiljanje`,Sent:`Poslano`,"Show {amount} more replies":`Prikaži še {amount} odgovorov`,"Show 1 more reply":`Prikaži še 1 odgovor`,"Show comment":`Prikaži komentar`,"Sign in":`Prijavite se`,"Sign up now":`Registrirajte se zdaj`,"Sort by":`Razvrsti po`,"Start the conversation":`Začnite pogovor`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Ta komentar je bil skrit.`,"This comment has been removed.":`Ta komentar je bil odstranjen.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Nadgradite zdaj`,"View in admin":``,Yesterday:`Včeraj`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Vaša zahteva bo poslana lastniku te strani.`},ey={"{amount} characters left":`edhe {amount} karaktere`,"{amount} comments":`{amount} komente`,"{amount} hrs ago":`{amount} orë më parë`,"{amount} mins ago":`{amount} minuta më parë`,"{amount} more":`edhe {amount} të tjerë`,"1 comment":`1 koment`,"Add comment":`Shto koment`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Shtojini kontekst komentit tuaj, ndani emrin dhe përvojën tuaj për të nxitur një diskutim të shëndetshëm.`,"Add reply":`Shto përgjigje`,"Add your expertise":`Shtoni përvojën tuaj`,"Already a member?":`Jeni anëtar?`,Anonymous:`Anonim`,"Are you sure?":`A jeni i sigurt?`,Back:``,"Become a member of {publication} to start commenting.":`Bëhu anëtar i {publication} për të filluar komentimin.`,"Become a paid member of {publication} to start commenting.":`Bëhu anëtar me pagesë i {publication} për të filluar komentimin.`,Best:`Më të mirat`,Cancel:`Anulo`,Comment:`Koment`,"Commenting disabled":`Komentimi është çaktivizuar`,"Complete your profile":`Plotësoni profilin tuaj`,Delete:`Fshi`,Deleted:`U fshi`,"Deleted member":`Anëtar i fshirë`,Deleting:`Duke fshirë`,Discussion:`Diskutimi`,Dislike:``,Edit:`Modifiko`,"Edit this comment":`Modifiko këtë koment`,edited:`i modifikuar`,"Enter your name":`Vendosni emrin tuaj`,Expertise:`Përvoja`,"Founder @ Acme Inc":`Themelues @ Acme Inc`,"Full-time parent":`Prind me kohë të plotë`,"Head of Marketing at Acme, Inc":`Drejtor Marketingu në Acme, Inc`,"Hidden for members":`E fshehur për anëtarët`,"Hide comment":`Fshih komentin`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Bashkohu në diskutim`,"Just now":`Këtë çast`,Like:``,"Load more ({amount})":`Ngarko më shumë ({amount})`,"Local resident":`Banor vendas`,"Member discussion":`Diskutim i anëtarëve`,Name:`Emri`,Neurosurgeon:`Neurokirurg`,Newest:`Më të rejat`,Oldest:`Më të vjetrat`,"Once deleted, this comment can’t be recovered.":`Pasi të fshihet, ky koment nuk mund të rikthehet.`,"One hour ago":`Një orë më parë`,"One min ago":`Një minutë më parë`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Përgjigju`,"Reply to":`Përgjigju`,"Reply to comment":`Përgjigju komentit`,Report:`Raporto`,"Report comment":`Raporto komentin`,"Report this comment?":`Të raportohet ky koment?`,Save:`Ruaj`,"See full discussion":``,Sending:`Duke dërguar`,Sent:`U dërgua`,"Show {amount} more replies":`Shfaq edhe {amount} përgjigje`,"Show 1 more reply":`Shfaq edhe 1 përgjigje`,"Show comment":`Shfaq komentin`,"Sign in":`Hyni`,"Sign up now":`Regjistrohu tani`,"Sort by":`Rendit sipas`,"Start the conversation":`Nisni bisedën`,"The linked comment is no longer available.":`Komenti i lidhur nuk është më i disponueshëm.`,"This comment has been hidden.":`Ky koment është fshehur.`,"This comment has been removed.":`Ky koment është hequr.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Përmirëso tani`,"View in admin":`Shiko në admin`,Yesterday:`Dje`,"You can't post comments in this publication.":`Nuk mund të postoni komente në këtë publikim.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Nuk mund të postoni komente në këtë publikim. <a>Kontaktoni mbështetjen</a> për më shumë informacion.`,"Your request will be sent to the owner of this site.":`Kërkesa juaj do t'i dërgohet pronarit të kësaj faqeje.`},ty={"{amount} characters left":`preostalo je {amount} karaktera`,"{amount} comments":`{amount} komentara`,"{amount} hrs ago":`pre {amount} sati`,"{amount} mins ago":`pre {amount} minuta`,"{amount} more":`još {amount}`,"1 comment":`1 komentar`,"Add comment":`Dodajte komentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Dodajte kontekst svom komentaru, podelite svoje ime i ekspertizu kako biste podstakli zdravu diskusiju.`,"Add reply":`Dodajte odgovor`,"Add your expertise":`Dodajte ekspertizu`,"Already a member?":`Već ste član?`,Anonymous:`Anonimno`,"Are you sure?":`Da li ste sigurni?`,Back:`Nazad`,"Become a member of {publication} to start commenting.":`Postanite član {publication} da biste počeli sa komentarisanjem.`,"Become a paid member of {publication} to start commenting.":`Postanite plaćeni član {publication} da biste počeli sa komentarisanjem.`,Best:`Najbolje`,Cancel:`Otkažite`,Comment:`Komentar`,"Commenting disabled":`Komentarisanje onemogućeno`,"Complete your profile":`Popunite svoj profil`,Delete:`Obrišite`,Deleted:`Obrisano`,"Deleted member":`Obrisan član`,Deleting:`Brisanje`,Discussion:`Diskusija`,Dislike:`Ne sviđa mi se`,Edit:`Uredite`,"Edit this comment":`Uredite ovaj komentar`,edited:`uređeno`,"Enter your name":`Unesite svoje ime`,Expertise:`Ekspertiza`,"Founder @ Acme Inc":`Osnivač @ Acme Inc`,"Full-time parent":`Roditelj punim radnim vremenom`,"Head of Marketing at Acme, Inc":`Šef marketinga u Acme, Inc`,"Hidden for members":`Sakriveno za članove`,"Hide comment":`Sakrijte komentar`,"Jamie Larson":`Pera Perić`,"Join the discussion":`Pridružite se diskusiji`,"Just now":`Upravo sada`,Like:`Sviđa mi se`,"Load more ({amount})":`Učitajte još ({amount})`,"Local resident":`Lokalni stanovnik`,"Member discussion":`Diskusija članova`,Name:`Ime`,Neurosurgeon:`Neurohirurg`,Newest:`Najnovije`,Oldest:`Najstarije`,"Once deleted, this comment can’t be recovered.":`Kada se obriše, ovaj komentar ne može biti vraćen.`,"One hour ago":`Pre sat`,"One min ago":`Pre minut`,"Pin comment":`Zakačite komentar`,Pinned:`Zakačeno`,"Read more replies":`Pročitajte još odgovora`,"Remove dislike":`Uklonite reakciju „Ne sviđa mi se“`,"Remove like":`Uklonite reakciju „Sviđa mi se“`,Reply:`Odgovorite`,"Reply to":`Odgovorite korisniku`,"Reply to comment":`Odgovorite na komentar`,Report:`Prijavite`,"Report comment":`Prijavite komentar`,"Report this comment?":`Prijavite ovaj komentar?`,Save:`Sačuvajte`,"See full discussion":`Pogledajte celu diskusiju`,Sending:`Slanje`,Sent:`Poslato`,"Show {amount} more replies":`Prikažite još {amount} odgovora`,"Show 1 more reply":`Prikažite još 1 odgovor`,"Show comment":`Prikažite komentar`,"Sign in":`Prijavite se`,"Sign up now":`Registrujte se sada`,"Sort by":`Sortirajte po`,"Start the conversation":`Počnite razgovor`,"The linked comment is no longer available.":`Povezani komentar više nije dostupan.`,"This comment has been hidden.":`Ovaj komentar je sakriven.`,"This comment has been removed.":`Ovaj komentar je uklonjen.`,Unpin:`Otkačite`,"Unpin comment":`Otkačite komentar`,"Upgrade now":`Nadogradite sada`,"View in admin":`Pogledajte u admin`,Yesterday:`Juče`,"You can't post comments in this publication.":`Ne možete objavljivati komentare u ovoj publikaciji.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Ne možete objavljivati komentare u ovoj publikaciji. <a>Kontaktirajte podršku</a> za više informacija.`,"Your request will be sent to the owner of this site.":`Vaš zahtev će biti poslat vlasniku ovog sajta.`},ny={"{amount} characters left":`преостало је {amount} карактера`,"{amount} comments":`{amount} коментара`,"{amount} hrs ago":`пре {amount} сати`,"{amount} mins ago":`пре {amount} минута`,"{amount} more":`још {amount}`,"1 comment":`1 коментар`,"Add comment":`Додајте коментар`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Додајте контекст свом коментару, поделите своје име и експертизу како бисте подстакли здраву дискусију.`,"Add reply":`Додајте одговор`,"Add your expertise":`Додајте експертизу`,"Already a member?":`Већ сте члан?`,Anonymous:`Анонимно`,"Are you sure?":`Да ли сте сигурни?`,Back:``,"Become a member of {publication} to start commenting.":`Постаните члан {publication} да бисте почели са коментарисањем.`,"Become a paid member of {publication} to start commenting.":`Постаните плаћени члан {publication} да бисте почели са коментарисањем.`,Best:`Најбоље`,Cancel:`Откажите`,Comment:`Коментар`,"Commenting disabled":`Коментарисање онемогућено`,"Complete your profile":`Попуните свој профил`,Delete:`Обришите`,Deleted:`Обрисано`,"Deleted member":`Обрисан члан`,Deleting:`Брисање`,Discussion:`Дискусија`,Dislike:``,Edit:`Уредите`,"Edit this comment":`Уредите овај коментар`,edited:`уређено`,"Enter your name":`Унесите своје име`,Expertise:`Експертиза`,"Founder @ Acme Inc":`Оснивач @ Acme Inc`,"Full-time parent":`Родитељ пуним радним временом`,"Head of Marketing at Acme, Inc":`Шеф маркетинга у Acme, Inc`,"Hidden for members":`Сакривено за чланове`,"Hide comment":`Сакријте коментар`,"Jamie Larson":`Пера Перић`,"Join the discussion":`Придружите се дискусији`,"Just now":`Управо сада`,Like:``,"Load more ({amount})":`Учитајте још ({amount})`,"Local resident":`Локални становник`,"Member discussion":`Дискусија чланова`,Name:`Име`,Neurosurgeon:`Неурохирург`,Newest:`Најновије`,Oldest:`Најстарије`,"Once deleted, this comment can’t be recovered.":`Када се обрише, овај коментар не може бити враћен.`,"One hour ago":`Пре сат`,"One min ago":`Пре минут`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Одговорите`,"Reply to":`Одговорите кориснику`,"Reply to comment":`Одговорите на коментар`,Report:`Пријавите`,"Report comment":`Пријавите коментар`,"Report this comment?":`Пријавите овај коментар?`,Save:`Сачувајте`,"See full discussion":``,Sending:`Слање`,Sent:`Послато`,"Show {amount} more replies":`Прикажите још {amount} одговора`,"Show 1 more reply":`Прикажите још 1 одговор`,"Show comment":`Прикажите коментар`,"Sign in":`Пријавите се`,"Sign up now":`Региструјте се сада`,"Sort by":`Сортирајте по`,"Start the conversation":`Почните разговор`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Овај коментар је сакривен.`,"This comment has been removed.":`Овај коментар је уклоњен.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Надоградите сада`,"View in admin":`Погледајте у админ`,Yesterday:`Јуче`,"You can't post comments in this publication.":`Не можете објављивати коментаре у овој публикацији.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Не можете објављивати коментаре у овој публикацији. <a>Контактирајте подршку</a> за више информација.`,"Your request will be sent to the owner of this site.":`Ваш захтев ће бити послат власнику овог сајта.`},ry={"{amount} characters left":`{amount} tecken kvar`,"{amount} comments":`{amount} kommentarer`,"{amount} hrs ago":`{amount} timmar sedan`,"{amount} mins ago":`{amount} minuter sedan`,"{amount} more":`{amount} fler`,"1 comment":`1 kommentar`,"Add comment":`Lägg till kommentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Lägg till kontext till din kommentar, som ditt namn, din expertis för att skapa ett bra forum.`,"Add reply":`Lägg till svar`,"Add your expertise":`Lägg till din expertis`,"Already a member?":`Redan medlem?`,Anonymous:`Anonym`,"Are you sure?":`Är du säker?`,Back:`Tillbaka`,"Become a member of {publication} to start commenting.":`Registrera dig på {publication} för att börja kommentera.`,"Become a paid member of {publication} to start commenting.":`Bli betalande medlem på {publication} för att börja kommentera.`,Best:`Mest populär`,Cancel:`Avbryt`,Comment:`Kommentar`,"Commenting disabled":`Kommentarer inaktiverade`,"Complete your profile":`Fyll i hela din profil`,Delete:`Ta bort`,Deleted:`Borttaget`,"Deleted member":`Borttagen medlem`,Deleting:`Tar bort`,Discussion:`Diskussion`,Dislike:`Ogilla`,Edit:`Ändra`,"Edit this comment":`Ändra den här kommentaren`,edited:`Ändrad`,"Enter your name":`Skriv ditt namn`,Expertise:`Expertis`,"Founder @ Acme Inc":`Grundare av Företaget AB`,"Full-time parent":`Hemmaförälder`,"Head of Marketing at Acme, Inc":`Marknadsföringschef på Företaget AB`,"Hidden for members":`Dolt för medlemmar`,"Hide comment":`Dölj kommentar`,"Jamie Larson":`Anders Andersson`,"Join the discussion":`Var med i diskussionen`,"Just now":`Nu precis`,Like:`Gilla`,"Load more ({amount})":`Ladda in fler ({amount})`,"Local resident":`Lokalboende`,"Member discussion":`Medlemsdiskussion`,Name:`Namn`,Neurosurgeon:`Neurokirurg`,Newest:`Nyast`,Oldest:`Äldst`,"Once deleted, this comment can’t be recovered.":`Kommentaren kan ej återskapas efter borttagning.`,"One hour ago":`En timme sedan`,"One min ago":`En minut sedan`,"Pin comment":`Nåla fast kommentar`,Pinned:`Fastnålad`,"Read more replies":`Läs fler svar`,"Remove dislike":`Ta bort ogilla`,"Remove like":`Ta bort gilla`,Reply:`Svar`,"Reply to":`Svara`,"Reply to comment":`Svara på kommentar`,Report:`Anmäl`,"Report comment":`Anmäl kommentar`,"Report this comment?":`Anmäl den här kommentaren?`,Save:`Spara`,"See full discussion":`Se hela diskussionen`,Sending:`Skickar`,Sent:`Skickad`,"Show {amount} more replies":`Visa {amount} fler svar`,"Show 1 more reply":`Visa 1 kommentar till`,"Show comment":`Visa kommentar`,"Sign in":`Logga in`,"Sign up now":`Registrera dig nu`,"Sort by":`Sortera efter`,"Start the conversation":`Inled konversationen`,"The linked comment is no longer available.":`Den länkade kommentaren är borttagen.`,"This comment has been hidden.":`Denna kommentar har dolts.`,"This comment has been removed.":`Denna kommentar är borttagen.`,Unpin:`Avnåla`,"Unpin comment":`Avnåla kommentar`,"Upgrade now":`Uppgradera nu`,"View in admin":`Visa i admin`,Yesterday:`I går`,"You can't post comments in this publication.":`Du kan inte posta kommentarer här.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Du kan inte posta kommentarer här. <a>Kontakta supporten</a> för mer information.`,"Your request will be sent to the owner of this site.":`Din anmälan skickas till ansvarig för webbplatsen.`},iy={"{amount} characters left":`{amount} herufi zimebaki`,"{amount} comments":`{amount} maoni`,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":`{amount} zaidi`,"1 comment":`maoni 1`,"Add comment":`Ongeza maoni`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Ongeza muktadha kwa maoni yako, shiriki jina lako na utaalamu ili kuendeleza mjadala wenye afya.`,"Add reply":`Ongeza jibu`,"Add your expertise":``,"Already a member?":`Tayari ni mwanachama?`,Anonymous:`Asiyetambulika`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Jiunge kama mwanachama wa {publication} ili kuanza kutoa maoni.`,"Become a paid member of {publication} to start commenting.":`Jiunge kama mwanachama anayelipa wa {publication} ili kuanza kutoa maoni.`,Best:``,Cancel:`Ghairi`,Comment:`Maoni`,"Commenting disabled":``,"Complete your profile":`Kamilisha wasifu wako`,Delete:`Futa`,Deleted:``,"Deleted member":`Mwanachama aliyefutwa`,Deleting:``,Discussion:`Majadiliano`,Dislike:``,Edit:`Hariri`,"Edit this comment":`Hariri maoni haya`,edited:``,"Enter your name":`Weka jina lako`,Expertise:`Utaalamu`,"Founder @ Acme Inc":`Mwanzilishi @ Acme Inc`,"Full-time parent":`Mzazi wa muda wote`,"Head of Marketing at Acme, Inc":`Mkuu wa Masoko katika Acme, Inc`,"Hidden for members":``,"Hide comment":`Ficha maoni`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Jiunge na mjadala`,"Just now":`Hivi sasa`,Like:``,"Load more ({amount})":``,"Local resident":`Mkazi wa eneo`,"Member discussion":`Mjadala wa wanachama`,Name:`Jina`,Neurosurgeon:`Daktari wa ubongo`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Saa moja iliyopita`,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Jibu`,"Reply to":``,"Reply to comment":`Jibu maoni`,Report:`Ripoti`,"Report comment":`Ripoti maoni`,"Report this comment?":`Unataka kuripoti maoni haya?`,Save:`Hifadhi`,"See full discussion":``,Sending:`Inatuma`,Sent:`Imetumwa`,"Show {amount} more replies":`Onyesha majibu {amount} zaidi`,"Show 1 more reply":`Onyesha jibu 1 zaidi`,"Show comment":`Onyesha maoni`,"Sign in":`Ingia`,"Sign up now":`Jisajili sasa`,"Sort by":``,"Start the conversation":`Anzisha mazungumzo`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Maoni haya yamefichwa.`,"This comment has been removed.":`Maoni haya yameondolewa.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Boresha sasa`,"View in admin":``,Yesterday:`Jana`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Ombi lako litatumwa kwa mmiliki wa tovuti hii.`},ay={"{amount} characters left":`{amount} எழுத்துக்கள் எஞ்சியுள்ளன`,"{amount} comments":`{amount} கருத்துக்கள்`,"{amount} hrs ago":`{amount} மணி நேரத்திற்கு முன்பு`,"{amount} mins ago":`{amount} நிமிடங்களுக்கு முன்பு`,"{amount} more":`{amount} மேலும்`,"1 comment":`1 கருத்து`,"Add comment":`கருத்தைச் சேர்க்கவும்`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`உங்கள் கருத்துக்கு சூழலைச் சேர்க்கவும், ஆரோக்கியமான விவாதத்தை வளர்க்க உங்கள் பெயரையும் நிபுணத்துவத்தையும் பகிர்ந்து கொள்ளுங்கள்.`,"Add reply":`பதில் சேர்க்கவும்`,"Add your expertise":``,"Already a member?":`ஏற்கனவே உறுப்பினரா?`,Anonymous:`அடையாளம் தெரியாத`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`கருத்துத் தெரிவிக்க {publication} இல் உறுப்பினராகுங்கள்.`,"Become a paid member of {publication} to start commenting.":`கருத்துத் தெரிவிக்க {publication} இல் கட்டண உறுப்பினராகுங்கள்.`,Best:``,Cancel:`ரத்து செய்`,Comment:`கருத்து`,"Commenting disabled":``,"Complete your profile":`உங்கள் சுயவிவரத்தை பூர்த்தி செய்யவும்`,Delete:`நீக்கவும்`,Deleted:``,"Deleted member":`நீக்கப்பட்ட உறுப்பினர்`,Deleting:``,Discussion:`கலந்துரையாடல்`,Dislike:``,Edit:`திருத்தவும்`,"Edit this comment":`இந்தக் கருத்தைத் திருத்தவும்`,edited:`திருத்தப்பட்டது`,"Enter your name":`உங்கள் பெயரை உள்ளிடுக`,Expertise:`நிபுணத்துவம்`,"Founder @ Acme Inc":`நிறுவனர் @ Acme Inc`,"Full-time parent":`முழுநேர பெற்றோர்`,"Head of Marketing at Acme, Inc":`Acme Inc நிறுவனத்தின் சந்தைப்படுத்தல் தலைவர்`,"Hidden for members":``,"Hide comment":`கருத்தை மறை`,"Jamie Larson":`ஜேமி லார்சன்`,"Join the discussion":`கலந்துரையாடலில் சேரவும்`,"Just now":`சற்றுமுன்னர்தான்`,Like:``,"Load more ({amount})":``,"Local resident":`உள்ளூர்வாசி`,"Member discussion":`உறுப்பினர் கருத்து`,Name:`பெயர்`,Neurosurgeon:`நரம்பியல் அறுவை சிகிச்சை நிபுணர்`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`ஒரு மணி முன்பு`,"One min ago":`ஒரு நிமிடம் முன்பு`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`பதிலளிக்கவும்`,"Reply to":``,"Reply to comment":`கருத்துக்கு பதிலளிக்கவும்`,Report:`புகாரளி`,"Report comment":`கருத்தைப் புகாரளி`,"Report this comment?":`இந்தக் கருத்தைப் புகாரளிக்கவா?`,Save:`சேமிக்க`,"See full discussion":``,Sending:`அனுப்புகிறது`,Sent:`அனுப்பப்பட்டது`,"Show {amount} more replies":`முந்தைய {amount} மேலும் பதில்கள்க் காட்டு`,"Show 1 more reply":`மேலும் 1 பதிலைக் காட்டு`,"Show comment":`கருத்தைக் காட்டு`,"Sign in":`உள்நுழைக`,"Sign up now":`இப்பொழுதே பதிவு செய்யுங்கள்`,"Sort by":``,"Start the conversation":`உரையாடலைத் தொடங்குங்கள்`,"The linked comment is no longer available.":``,"This comment has been hidden.":`இந்தக் கருத்து மறைக்கப்பட்டது.`,"This comment has been removed.":`இந்தக் கருத்து நீக்கப்பட்டது.`,Unpin:``,"Unpin comment":``,"Upgrade now":`இப்போதே மேம்படுத்தவும்`,"View in admin":``,Yesterday:`நேற்று`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`உங்கள் கோரிக்கை இந்த தளத்தின் உரிமையாளருக்கு அனுப்பப்படும்.`},oy={"{amount} characters left":`คงเหลือ {amount} ตัวอักษร`,"{amount} comments":`{amount} ความคิดเห็น`,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":`อีก {amount}`,"1 comment":`1 ความคิดเห็น`,"Add comment":`แสดงความคิดเห็น`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`เพิ่มข้อมูลเสริมในความคิดเห็นของคุณ แชร์ชื่อและความเชี่ยวชาญเพื่อสนับสนุนการพูดคุยที่ดี`,"Add reply":`ตอบกลับ`,"Add your expertise":``,"Already a member?":`เป็นสมาชิกอยู่แล้ว?`,Anonymous:`ไม่ระบุชื่อ`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`เป็นสมาชิกของ {publication} เพื่อเริ่มแสดงความคิดเห็น`,"Become a paid member of {publication} to start commenting.":`เป็นสมาชิกแบบชำระเงินของ {publication} เพื่อเริ่มแสดงความคิดเห็น`,Best:``,Cancel:`ยกเลิก`,Comment:`ความคิดเห็น`,"Commenting disabled":``,"Complete your profile":`กรอกโปรไฟล์ของคุณให้สมบูรณ์`,Delete:`ลบ`,Deleted:``,"Deleted member":`ผู้ใช้ที่ถูกลบ`,Deleting:``,Discussion:`การสนทนา`,Dislike:``,Edit:`แก้ไข`,"Edit this comment":`แก้ไขความคิดเห็นนี้`,edited:``,"Enter your name":`ระบุชื่อของคุณ`,Expertise:`ความเชี่ยวชาญ`,"Founder @ Acme Inc":`ผู้ก่อตั้ง @ Acme Inc`,"Full-time parent":`ผู้ปกครองเต็มเวลา`,"Head of Marketing at Acme, Inc":`หัวหน้าฝ่ายการตลาด ณ Acme, Inc`,"Hidden for members":``,"Hide comment":`ซ่อนข้อความ`,"Jamie Larson":`กนกพัฒน์ สัณห์ฤทัย`,"Join the discussion":`เข้าร่วมการสนทนา`,"Just now":`ตอนนี้`,Like:``,"Load more ({amount})":``,"Local resident":`ผู้อยู่อาศัยในท้องถิ่น`,"Member discussion":`การสนทนาของสมาชิก`,Name:`ชื่อ`,Neurosurgeon:`ศัลยแพทย์ระบบประสาท`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`1 ชั่วโมงที่แล้ว`,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`ตอบกลับ`,"Reply to":``,"Reply to comment":`ตอบกลับความคิดเห็น`,Report:`รายงาน`,"Report comment":`รายงานความคิดเห็น`,"Report this comment?":`รายงานความคิดเห็นนี้?`,Save:`บันทึก`,"See full discussion":``,Sending:`กำลังส่ง`,Sent:`ส่งแล้ว`,"Show {amount} more replies":`แสดง {amount} การตอบกลับเพิ่มเติม`,"Show 1 more reply":`แสดงอีก 1 การตอบกลับ`,"Show comment":`ดูความคิดเห็น`,"Sign in":`ลงชื่อเข้าใช้`,"Sign up now":`สมัครใช้งานตอนนี้เลย`,"Sort by":``,"Start the conversation":`เริ่มการสนทนา`,"The linked comment is no longer available.":``,"This comment has been hidden.":`ความคิดเห็นนี้ถูกซ่อน`,"This comment has been removed.":`ความคิดเห็นนี้ถูกลบ`,Unpin:``,"Unpin comment":``,"Upgrade now":`อัพเกรดตอนนี้เลย`,"View in admin":``,Yesterday:`เมื่อวาน`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`คำขอของคุณจะถูกส่งไปยังผู้ดูแลเว็บไซต์`},sy={"{amount} characters left":`{amount} karakter kaldı`,"{amount} comments":`{amount} yorum`,"{amount} hrs ago":`{amount} saat önce`,"{amount} mins ago":`{amount} dakika önce`,"{amount} more":`Daha fazla {amount}`,"1 comment":`1 yorum`,"Add comment":`Yorum ekle`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Yorumunuza bağlam ekleyin, adınızı ve uzmanlık alanınızı paylaşarak sağlıklı bir tartışmayı teşvik edin.`,"Add reply":`Yanıt ekle`,"Add your expertise":`Uzmanlığınızı ekleyin`,"Already a member?":`Zaten üye misiniz?`,Anonymous:`Anonim`,"Are you sure?":`Emin misin?`,Back:`Geri`,"Become a member of {publication} to start commenting.":`Yorum yapmaya başlamak için {publication} sitesinde hesap oluşturun.`,"Become a paid member of {publication} to start commenting.":`Yorum yapmaya başlamak için {publication} sitesinde ücretli hesap oluşturun.`,Best:`En iyi`,Cancel:`İptal et`,Comment:`Yorum ekle`,"Commenting disabled":`Yorumlar kapalı`,"Complete your profile":`Profilinizi tamamlayın`,Delete:`Sil`,Deleted:`Silindi`,"Deleted member":`Silinen üye`,Deleting:`Siliniyor`,Discussion:`Yorumlar`,Dislike:``,Edit:`Düzenle`,"Edit this comment":`Bu yorumu düzenle`,edited:`düzenlendi`,"Enter your name":`Adınızı girin`,Expertise:`Uzmanlık`,"Founder @ Acme Inc":`Kurucu @ Firma Ünvan`,"Full-time parent":`Tam zamanlı ebeveyn`,"Head of Marketing at Acme, Inc":`Firma, Ünvan'da Pazarlama Müdürü`,"Hidden for members":`Üyeler için gizli`,"Hide comment":`Yorumu gizle`,"Jamie Larson":`Ahmet Yılmaz`,"Join the discussion":`Tartışmaya katıl`,"Just now":`Şu anda`,Like:``,"Load more ({amount})":`Daha fazla yükle ({amount})`,"Local resident":`Yerel sakini`,"Member discussion":`Üye tartışması`,Name:`Ad`,Neurosurgeon:`Beyin cerrahı`,Newest:`En yeni`,Oldest:`En eski`,"Once deleted, this comment can’t be recovered.":`Bu yorum silindikten sonra kurtarılamaz.`,"One hour ago":`Bir saat önce`,"One min ago":`Bir dakika önce`,"Pin comment":`Yorumu sabitle`,Pinned:`Sabitlendi`,"Read more replies":`Daha fazla cevap oku`,"Remove dislike":``,"Remove like":``,Reply:`Cevapla`,"Reply to":`Cevapla`,"Reply to comment":`Yoruma cevap ver`,Report:`Rapor et`,"Report comment":`Yorumu rapor et`,"Report this comment?":`Bu yorum rapor edilsin mi?`,Save:`Kaydet`,"See full discussion":`Bütün tartışmayı gör`,Sending:`Gönderiliyor`,Sent:`Gönderildi`,"Show {amount} more replies":`{amount} daha fazla yanıt göster`,"Show 1 more reply":`1 cevap daha göster`,"Show comment":`Yorumu göster`,"Sign in":`Giriş yap`,"Sign up now":`Şimdi kayıt ol`,"Sort by":`Sırala`,"Start the conversation":`Bu konu hakkında düşüncelerini paylaş`,"The linked comment is no longer available.":`Bağlantılı yorum artık yok.`,"This comment has been hidden.":`Bu yorum gizlendi.`,"This comment has been removed.":`Bu yorum kaldırıldı.`,Unpin:`Sabitlemeyi kaldır`,"Unpin comment":`Yorumun sabitlemesini kaldır`,"Upgrade now":`Şimdi yükselt`,"View in admin":`Yönetici olarak gör`,Yesterday:`Dün`,"You can't post comments in this publication.":`Bu yayına yorum gönderemezsiniz.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Bu yayına yorum gönderemezsiniz. Daha fazla bilgi için <a>desteğe başvurun</a>.`,"Your request will be sent to the owner of this site.":`Talebiniz bu sitenin sahibine gönderilecektir.`},cy={"{amount} characters left":`{amount} символів залишилось`,"{amount} comments":`{amount} коментарів`,"{amount} hrs ago":`{amount} годин тому`,"{amount} mins ago":`{amount} хвилин тому`,"{amount} more":`ще {amount}`,"1 comment":`1 коментар`,"Add comment":`Додати коментар`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Додайте контекст до свого коментаря, поділіться своїм іменем і досвідом, щоб сприяти здоровій дискусії.`,"Add reply":`Додати відповідь`,"Add your expertise":``,"Already a member?":`Ви є учасником?`,Anonymous:`Анонім`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Станьте учасником {publication} щоб почати коментувати.`,"Become a paid member of {publication} to start commenting.":`Станьте платним учасником {publication} щоб почати коментувати.`,Best:``,Cancel:`Відмінити`,Comment:`Коментувати`,"Commenting disabled":``,"Complete your profile":`Заповніть свій профіль`,Delete:`Видалити`,Deleted:``,"Deleted member":`Видалений учасник`,Deleting:``,Discussion:`Обговорення`,Dislike:``,Edit:`Редагувати`,"Edit this comment":`Редагувати цей коментар`,edited:`Відредагований`,"Enter your name":`Введіть своє імʼя`,Expertise:`Експертність`,"Founder @ Acme Inc":`Засновник @ Acme Inc`,"Full-time parent":`Виховую дітей`,"Head of Marketing at Acme, Inc":`Голова продажів в Acme, Inc`,"Hidden for members":``,"Hide comment":`Сховати коментар`,"Jamie Larson":`Ваше імʼя`,"Join the discussion":`Долучитися до обговорення`,"Just now":`Прямо зараз`,Like:``,"Load more ({amount})":``,"Local resident":`Місцевий експерт`,"Member discussion":`Обговорення учасників`,Name:`Імʼя`,Neurosurgeon:`Нейрохірург`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Одну годину тому`,"One min ago":`Одну хвилину тому`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Відповісти`,"Reply to":``,"Reply to comment":`Відповісти на коментар`,Report:`Поскаржитися`,"Report comment":`Поскаржитися на коментар`,"Report this comment?":`Поскаржитися на цей коментар?`,Save:`Зберегти`,"See full discussion":``,Sending:`Відправка`,Sent:`Відправлено`,"Show {amount} more replies":`Показати ще {amount} відповідей`,"Show 1 more reply":`Показати ще одну відповідь`,"Show comment":`Показати коментар`,"Sign in":`Увійти`,"Sign up now":`Зареєструватись зараз`,"Sort by":``,"Start the conversation":`Почніть розмову`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Цей коментар було приховано.`,"This comment has been removed.":`Цей коментар було видалено.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Оновити зараз`,"View in admin":``,Yesterday:`Вчора`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Ваш запит буде надіслано власнику цього сайту.`},ly={"{amount} characters left":`{amount} حروف باقی ہیں`,"{amount} comments":`{amount} تبادلے`,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":``,"1 comment":`1 تبادلہ`,"Add comment":`تبادلہ شامل کریں`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`اپنے تبادلے میں سیاق و سباق شامل کریں، اچھی گفتگو کو بڑھانے کے لئے اپنا نام اور ماہریت شیئر کریں۔`,"Add reply":`جواب شامل کریں`,"Add your expertise":``,"Already a member?":`پہلے ہی رکن ہیں؟`,Anonymous:`ناشناس`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`تبادلہ شروع کرنے کے لئے {publication} کا رکن بنیں۔`,"Become a paid member of {publication} to start commenting.":`تبادلہ شروع کرنے کے لئے {publication} کا ادائیگی رکن بنیں۔`,Best:``,Cancel:`منسوخ کریں`,Comment:`تبادلہ`,"Commenting disabled":``,"Complete your profile":`اپنا پروفائل مکمل کریں`,Delete:`حذف کریں`,Deleted:``,"Deleted member":`حذف شدہ رکن`,Deleting:``,Discussion:`تبادلہ`,Dislike:``,Edit:`ترتیب دیں`,"Edit this comment":`اس تبادلے کو ترتیب دیں`,edited:``,"Enter your name":`اپنا نام درج کریں`,Expertise:`اہلیت`,"Founder @ Acme Inc":`ناظم @ Acme Inc`,"Full-time parent":`پورے وقت کا والد یا والدہ`,"Head of Marketing at Acme, Inc":`Acme، Inc کے مارکیٹنگ کا سربراہ`,"Hidden for members":``,"Hide comment":`تبادلہ چھپائیں`,"Jamie Larson":`جیمی لارسن`,"Join the discussion":`تبادلے میں شامل ہوں`,"Just now":`ابھی`,Like:``,"Load more ({amount})":``,"Local resident":`مقامی رہائشی`,"Member discussion":`رکن کا تبادلہ`,Name:`نام`,Neurosurgeon:`نیوروسرجن`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`ایک گھنٹہ پہلے`,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`جواب`,"Reply to":``,"Reply to comment":`تبادلے کا جواب دیں`,Report:`رپورٹ`,"Report comment":`تبادلے کی رپورٹ`,"Report this comment?":`کیا آپ اس تبادلے کو رپورٹ کرنا چاہتے ہیں؟`,Save:`محفوظ کریں`,"See full discussion":``,Sending:`بھیج رہا ہے`,Sent:`بھیجا گیا`,"Show {amount} more replies":`{amount} مزید جوابات دکھائیں`,"Show 1 more reply":`1 مزید جواب دکھائیں`,"Show comment":`تبادلہ دکھائیں`,"Sign in":`سائن ان کریں`,"Sign up now":`ابھی رجسٹر ہوں`,"Sort by":``,"Start the conversation":`بات چیت شروع کریں`,"The linked comment is no longer available.":``,"This comment has been hidden.":`یہ تبادلہ چھپا گیا ہے۔`,"This comment has been removed.":`یہ تبادلہ ہٹا دیا گیا ہے۔`,Unpin:``,"Unpin comment":``,"Upgrade now":`اب اپ گریڈ کریں`,"View in admin":``,Yesterday:`کل`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`آپ کا درخواست اس سائٹ کے مالک کو بھیجا جائے گا۔`},uy={"{amount} characters left":``,"{amount} comments":``,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":``,"1 comment":``,"Add comment":``,"Add context to your comment, share your name and expertise to foster a healthy discussion.":``,"Add reply":``,"Add your expertise":``,"Already a member?":``,Anonymous:``,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":``,"Become a paid member of {publication} to start commenting.":``,Best:``,Cancel:``,Comment:``,"Commenting disabled":``,"Complete your profile":``,Delete:``,Deleted:``,"Deleted member":``,Deleting:``,Discussion:``,Dislike:``,Edit:``,"Edit this comment":``,edited:``,"Enter your name":``,Expertise:``,"Founder @ Acme Inc":``,"Full-time parent":``,"Head of Marketing at Acme, Inc":``,"Hidden for members":``,"Hide comment":``,"Jamie Larson":``,"Join the discussion":``,"Just now":``,Like:``,"Load more ({amount})":``,"Local resident":``,"Member discussion":``,Name:``,Neurosurgeon:``,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":``,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:``,"Reply to":``,"Reply to comment":``,Report:``,"Report comment":``,"Report this comment?":``,Save:``,"See full discussion":``,Sending:``,Sent:``,"Show {amount} more replies":``,"Show 1 more reply":``,"Show comment":``,"Sign in":``,"Sign up now":``,"Sort by":``,"Start the conversation":``,"The linked comment is no longer available.":``,"This comment has been hidden.":``,"This comment has been removed.":``,Unpin:``,"Unpin comment":``,"Upgrade now":``,"View in admin":``,Yesterday:``,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":``},dy={"{amount} characters left":`{amount} ký tự còn lại`,"{amount} comments":`{amount} bình luận`,"{amount} hrs ago":`{amount} giờ trước`,"{amount} mins ago":`{amount} phút trước`,"{amount} more":`{amount} nữa`,"1 comment":`1 bình luận`,"Add comment":`Thêm bình luận`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Thêm ngữ cảnh, tên và chuyên môn của bạn để thúc đẩy cuộc thảo luận lành mạnh.`,"Add reply":`Trả lời`,"Add your expertise":`Thêm chuyên môn của bạn`,"Already a member?":`Đã là thành viên?`,Anonymous:`Ẩn danh`,"Are you sure?":`Bạn có chắc không?`,Back:`Quay lại`,"Become a member of {publication} to start commenting.":`Trở thành thành viên của {publication} để có thể bình luận.`,"Become a paid member of {publication} to start commenting.":`Trở thành thành viên trả phí của {publication} để có thể bình luận.`,Best:`Hay nhất`,Cancel:`Hủy`,Comment:`Bình luận`,"Commenting disabled":`Bình luận đã bị tắt`,"Complete your profile":`Hoàn tất hồ sơ của bạn`,Delete:`Xóa`,Deleted:`Đã xóa`,"Deleted member":`Thành viên đã xóa`,Deleting:`Đang xóa`,Discussion:`Thảo luận`,Dislike:`Không thích`,Edit:`Sửa`,"Edit this comment":`Sửa bình luận này`,edited:`đã sửa`,"Enter your name":`Nhập tên của bạn`,Expertise:`Chuyên môn`,"Founder @ Acme Inc":`Nhà sáng lập @ Acme Inc`,"Full-time parent":`Phụ huynh toàn thời gian`,"Head of Marketing at Acme, Inc":`Trưởng phòng Marketing tại Acme, Inc`,"Hidden for members":`Ẩn với thành viên`,"Hide comment":`Ẩn bình luận`,"Jamie Larson":`Nguyễn Minh Anh`,"Join the discussion":`Tham gia thảo luận`,"Just now":`Vừa xong`,Like:`Thích`,"Load more ({amount})":`Hiện thêm ({amount})`,"Local resident":`Cư dân địa phương`,"Member discussion":`Thảo luận của thành viên`,Name:`Tên`,Neurosurgeon:`Bác sĩ phẫu thuật thần kinh`,Newest:`Mới nhất`,Oldest:`Cũ nhất`,"Once deleted, this comment can’t be recovered.":`Một khi đã xóa, bình luận này không thể khôi phục.`,"One hour ago":`Một giờ trước`,"One min ago":`Một phút trước`,"Pin comment":`Ghim bình luận`,Pinned:`Đã ghim`,"Read more replies":`Đọc thêm trả lời`,"Remove dislike":`Bỏ không thích`,"Remove like":`Bỏ thích`,Reply:`Trả lời`,"Reply to":`Trả lời`,"Reply to comment":`Trả lời bình luận`,Report:`Báo cáo`,"Report comment":`Báo cáo bình luận`,"Report this comment?":`Báo cáo bình luận này?`,Save:`Lưu`,"See full discussion":`Xem tất cả thảo luận`,Sending:`Đang gửi`,Sent:`Đã gửi`,"Show {amount} more replies":`Xem thêm {amount} trả lời khác`,"Show 1 more reply":`Xem thêm 1 trả lời`,"Show comment":`Xem bình luận`,"Sign in":`Đăng nhập`,"Sign up now":`Đăng ký ngay`,"Sort by":`Xếp theo`,"Start the conversation":`Bắt đầu cuộc trò chuyện`,"The linked comment is no longer available.":`Liên kết bình luận này không còn nữa.`,"This comment has been hidden.":`Bình luận này đã bị ẩn.`,"This comment has been removed.":`Bình luận này đã bị xóa.`,Unpin:`Bỏ ghim`,"Unpin comment":`Bỏ ghim bình luận`,"Upgrade now":`Nâng cấp`,"View in admin":`Xem trong dashboard`,Yesterday:`Hôm qua`,"You can't post comments in this publication.":`Bạn không thể bình luận trên trang web này.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Bạn không thể bình luận trên trang web này. <a>Liên hệ hỗ trợ</a> để biết thêm chi tiết.`,"Your request will be sent to the owner of this site.":`Yêu cầu của bạn sẽ được gửi đến chủ sở hữu trang web này.`},fy={"{amount} characters left":`还剩{amount}字`,"{amount} comments":`{amount}条评论`,"{amount} hrs ago":`{amount}小时前`,"{amount} mins ago":`{amount}分钟前`,"{amount} more":`还剩{amount}条评论`,"1 comment":`一条评论`,"Add comment":`添加评论`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`为评论补充更多的上下文信息、例如您的姓名与专业背景有助于营造健康的讨论氛围。`,"Add reply":`回复`,"Add your expertise":`添加您的专业背景`,"Already a member?":`已经是会员?`,Anonymous:`匿名`,"Are you sure?":`确认?`,Back:`返回`,"Become a member of {publication} to start commenting.":`成为{publication}的会员以开始评论。`,"Become a paid member of {publication} to start commenting.":`成为{publication}的付费会员以开始评论。`,Best:`最多赞`,Cancel:`取消`,Comment:`评论`,"Commenting disabled":`评论功能已禁用`,"Complete your profile":`完善您的个人资料`,Delete:`删除`,Deleted:`已删除`,"Deleted member":`删除会员`,Deleting:`删除中`,Discussion:`讨论`,Dislike:`点踩`,Edit:`编辑`,"Edit this comment":`编辑此条评论`,edited:`已编辑`,"Enter your name":`输入您的名字`,Expertise:`专业背景`,"Founder @ Acme Inc":`Acme Inc的创建者`,"Full-time parent":`全职父母`,"Head of Marketing at Acme, Inc":`Acme, Inc市场部负责人`,"Hidden for members":`对会员隐藏`,"Hide comment":`隐藏评论`,"Jamie Larson":`阿宇`,"Join the discussion":`加入讨论`,"Just now":`刚刚`,Like:`点赞`,"Load more ({amount})":`加载更多({amount})条`,"Local resident":`本地居民`,"Member discussion":`会员讨论`,Name:`名字`,Neurosurgeon:`神经外科医生`,Newest:`最新`,Oldest:`最早`,"Once deleted, this comment can’t be recovered.":`此评论一经删除后将无法复原。`,"One hour ago":`一小时前`,"One min ago":`一分钟前`,"Pin comment":`置顶评论`,Pinned:`已置顶`,"Read more replies":`阅读更多回复`,"Remove dislike":`取消点踩`,"Remove like":`取消点赞`,Reply:`回复`,"Reply to":`回复`,"Reply to comment":`回复评论`,Report:`举报`,"Report comment":`举报评论`,"Report this comment?":`举报此评论?`,Save:`保存`,"See full discussion":`查看完整讨论`,Sending:`正在发送`,Sent:`已发送`,"Show {amount} more replies":`显示更多{amount}条评论`,"Show 1 more reply":`显示下一条评论`,"Show comment":`显示评论`,"Sign in":`登录`,"Sign up now":`立刻注册`,"Sort by":`排序方式`,"Start the conversation":`开始对话`,"The linked comment is no longer available.":`链接的评论已不存在。`,"This comment has been hidden.":`该条评论已被隐藏。`,"This comment has been removed.":`该条评论已被移除。`,Unpin:`取消置顶`,"Unpin comment":`取消置顶评论`,"Upgrade now":`立刻升级`,"View in admin":`在后台查看`,Yesterday:`昨天`,"You can't post comments in this publication.":`您无法在此刊物发表评论。`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`您无法在此刊物发表评论。如需更多信息,请<a>联系客服</a>。`,"Your request will be sent to the owner of this site.":`您的请求将被发送给站点所有者。`},py={"{amount} characters left":`還剩{amount}個字`,"{amount} comments":`{amount}則留言`,"{amount} hrs ago":`{amount}小時前`,"{amount} mins ago":`{amount}分鐘前`,"{amount} more":`還剩{amount}則留言`,"1 comment":`一則留言`,"Add comment":`留言`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`為您的留言補充背景,說明您的稱呼與專業背景都有助於健康的討論氛圍。`,"Add reply":`回覆`,"Add your expertise":`新增您的專業背景`,"Already a member?":`已經是會員?`,Anonymous:`匿名`,"Are you sure?":`您確定嗎?`,Back:`返回`,"Become a member of {publication} to start commenting.":`成為{publication}的會員以開始留言。`,"Become a paid member of {publication} to start commenting.":`成為{publication}的付費會員以開始留言。`,Best:`最多讚`,Cancel:`取消`,Comment:`留言`,"Commenting disabled":`未開放留言`,"Complete your profile":`完成您的註冊資訊`,Delete:`刪除`,Deleted:`已刪除`,"Deleted member":`刪除會員`,Deleting:`刪除中`,Discussion:`討論`,Dislike:`點踩`,Edit:`編輯`,"Edit this comment":`編輯此則留言`,edited:`已編輯`,"Enter your name":`輸入您的稱呼`,Expertise:`專業背景`,"Founder @ Acme Inc":`Acme Inc的創辦人`,"Full-time parent":`全職父母`,"Head of Marketing at Acme, Inc":`Acme, Inc市場部負責人`,"Hidden for members":`對會員隱藏`,"Hide comment":`隱藏留言`,"Jamie Larson":`阿宇`,"Join the discussion":`加入討論`,"Just now":`剛剛`,Like:`點讚`,"Load more ({amount})":`載入更多({amount})`,"Local resident":`本地居民`,"Member discussion":`會員討論`,Name:`稱呼`,Neurosurgeon:`神經外科醫生`,Newest:`最新`,Oldest:`最早`,"Once deleted, this comment can’t be recovered.":`此留言一經刪除後將無法復原。`,"One hour ago":`一小時前`,"One min ago":`一分鐘前`,"Pin comment":`置頂留言`,Pinned:`已置頂`,"Read more replies":`閱讀更多回覆`,"Remove dislike":`取消點踩`,"Remove like":`取消點讚`,Reply:`回覆`,"Reply to":`回覆`,"Reply to comment":`回覆留言`,Report:`檢舉`,"Report comment":`檢舉留言`,"Report this comment?":`檢舉此留言?`,Save:`儲存`,"See full discussion":`查看完整討論`,Sending:`正在發送`,Sent:`已發送`,"Show {amount} more replies":`顯示後續 {amount} 則留言`,"Show 1 more reply":`顯示下一則留言`,"Show comment":`顯示留言`,"Sign in":`登入`,"Sign up now":`立即註冊`,"Sort by":`排序方式`,"Start the conversation":`開始對話`,"The linked comment is no longer available.":`連結的留言已不存在。`,"This comment has been hidden.":`該則留言已被隱藏。`,"This comment has been removed.":`該則留言已被移除。`,Unpin:`取消置頂`,"Unpin comment":`取消置頂留言`,"Upgrade now":`立即升級`,"View in admin":`從管理後台檢視`,Yesterday:`昨天`,"You can't post comments in this publication.":`您無法在此刊物留言。`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`您無法在此刊物留言。<a>聯繫客服</a> 以取得更多資訊。`,"Your request will be sent to the owner of this site.":`您的請求將被發送給網站所有者。`},$=e=>typeof e==`string`,my=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},hy=e=>e==null?``:``+e,gy=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},_y=/###/g,vy=e=>e&&e.indexOf(`###`)>-1?e.replace(_y,`.`):e,yy=e=>!e||$(e),by=(e,t,n)=>{let r=$(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(yy(e))return{};let t=vy(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return yy(e)?{}:{obj:e,k:vy(r[i])}},xy=(e,t,n)=>{let{obj:r,k:i}=by(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=by(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=by(e,o,Object),s&&s.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},Sy=(e,t,n,r)=>{let{obj:i,k:a}=by(e,t,Object);i[a]=i[a]||[],i[a].push(n)},Cy=(e,t)=>{let{obj:n,k:r}=by(e,t);if(n)return n[r]},wy=(e,t,n)=>{let r=Cy(e,n);return r===void 0?Cy(t,n):r},Ty=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?$(e[r])||e[r]instanceof String||$(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Ty(e[r],t[r],n):e[r]=t[r]);return e},Ey=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),Dy={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},Oy=e=>$(e)?e.replace(/[&<>"'\/]/g,e=>Dy[e]):e,ky=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},Ay=[` `,`,`,`?`,`!`,`;`],jy=new ky(20),My=(e,t,n)=>{t||=``,n||=``;let r=Ay.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=jy.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},Ny=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`.`;if(!e)return;if(e[t])return e[t];let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},Py=e=>e&&e.replace(`_`,`-`),Fy={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},Iy=new class e{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||`i18next:`,this.logger=e||Fy,this.options=t,this.debug=t.debug}log(){var e=[...arguments];return this.forward(e,`log`,``,!0)}warn(){var e=[...arguments];return this.forward(e,`warn`,``,!0)}error(){var e=[...arguments];return this.forward(e,`error`,``)}deprecate(){var e=[...arguments];return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:($(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},Ly=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){var t=[...arguments].slice(1);this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[n,r]=e;for(let e=0;e<r;e++)n(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(n=>{let[r,i]=n;for(let n=0;n<i;n++)r.apply(r,[e,...t])})}},Ry=class extends Ly{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:[`translation`],defaultNS:`translation`};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):$(n)&&i?o.push(...n.split(i)):o.push(n)));let s=Cy(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!$(n)?s:Ny(this.data&&this.data[e]&&this.data[e][t],n,i)}addResource(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),xy(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let r in n)($(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=Cy(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Ty(s,n,i):s={...s,...n},xy(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.options.compatibilityAPI===`v1`?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},zy={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))}),t}},By={},Vy=class e extends Ly{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),gy([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=Iy.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;let n=this.resolve(e,t);return n&&n.res!==void 0}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!My(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:$(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:$(i)?[i]:i}}translate(t,n,r){if(typeof n!=`object`&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n==`object`&&(n={...n}),n||={},t==null)return``;Array.isArray(t)||(t=[String(t)]);let i=n.returnDetails===void 0?this.options.returnDetails:n.returnDetails,a=n.keySeparator===void 0?this.options.keySeparator:n.keySeparator,{key:o,namespaces:s}=this.extractFromKey(t[t.length-1],n),c=s[s.length-1],l=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&l.toLowerCase()===`cimode`){if(u){let e=n.nsSeparator||this.options.nsSeparator;return i?{res:`${c}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${e}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:o}let d=this.resolve(t,n),f=d&&d.res,p=d&&d.usedKey||o,m=d&&d.exactUsedKey||o,h=Object.prototype.toString.apply(f),g=[`[object Number]`,`[object Function]`,`[object RegExp]`],_=n.joinArrays===void 0?this.options.joinArrays:n.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!$(f)&&typeof f!=`boolean`&&typeof f!=`number`;if(v&&f&&y&&g.indexOf(h)<0&&!($(_)&&Array.isArray(f))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,f,{...n,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(d.res=e,d.usedParams=this.getUsedParamsDetails(n),d):e}if(a){let e=Array.isArray(f),t=e?[]:{},r=e?m:p;for(let e in f)if(Object.prototype.hasOwnProperty.call(f,e)){let i=`${r}${a}${e}`;t[e]=this.translate(i,{...n,joinArrays:!1,ns:s}),t[e]===i&&(t[e]=f[e])}f=t}}else if(v&&$(_)&&Array.isArray(f))f=f.join(_),f&&=this.extendTranslation(f,t,n,r);else{let i=!1,s=!1,u=n.count!==void 0&&!$(n.count),p=e.hasDefaultValue(n),m=u?this.pluralResolver.getSuffix(l,n.count,n):``,h=n.ordinal&&u?this.pluralResolver.getSuffix(l,n.count,{ordinal:!1}):``,g=u&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),_=g&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${m}`]||n[`defaultValue${h}`]||n.defaultValue;!this.isValidLookup(f)&&p&&(i=!0,f=_),this.isValidLookup(f)||(s=!0,f=o);let v=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:f,y=p&&_!==f&&this.options.updateMissing;if(s||i||y){if(this.logger.log(y?`updateKey`:`missingKey`,l,c,o,y?_:f),a){let e=this.resolve(o,{...n,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(n.lng||this.language):e.push(n.lng||this.language);let r=(e,t,r)=>{let i=p&&r!==f?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,c,t,i,y,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,c,t,i,y,n),this.emit(`missingKey`,e,c,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,n);g&&n[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],o+t,n[`defaultValue${t}`]||_)})}):r(e,o,_))}f=this.extendTranslation(f,t,n,d,r),s&&f===o&&this.options.appendNamespaceToMissingKey&&(f=`${c}:${o}`),(s||i)&&this.options.parseMissingKeyHandler&&(f=this.options.compatibilityAPI===`v1`?this.options.parseMissingKeyHandler(f):this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${o}`:o,i?f:void 0))}return i?(d.res=f,d.usedParams=this.getUsedParamsDetails(n),d):f}extendTranslation(e,t,n,r,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let o=$(e)&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),s;if(o){let t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let c=n.replace&&!$(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,n.lng||this.language||r.usedLng,n),o){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;s<r&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!==`v1`&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,function(){var e=[...arguments];return i&&i[0]===e[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):a.translate(...e,t)},n)),n.interpolation&&this.interpolator.reset()}let o=n.postProcess||this.options.postProcess,s=$(o)?[o]:o;return e!=null&&s&&s.length&&n.applyPostProcessor!==!1&&(e=zy.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,r,i,a,o;return $(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!$(t.count),d=u&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),f=t.context!==void 0&&($(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!By[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(By[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(o.push(c+e),t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator}${t.context}`;o.push(r),u&&(o.push(r+e),t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!$(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},Hy=e=>e.charAt(0).toUpperCase()+e.slice(1),Uy=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Iy.create(`languageUtils`)}getScriptPartFromCode(e){if(e=Py(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=Py(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if($(e)&&e.indexOf(`-`)>-1){if(typeof Intl<`u`&&Intl.getCanonicalLocales!==void 0)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch{}let t=[`hans`,`hant`,`latn`,`cyrl`,`cans`,`mong`,`arab`],n=e.split(`-`);return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Hy(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!==`sgn`&&n[2].length===2&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Hy(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Hy(n[2].toLowerCase()))),n.join(`-`)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>{if(e===n||!(e.indexOf(`-`)<0&&n.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&n.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===n||e.indexOf(n)===0&&n.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),$(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return $(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):$(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},Wy=[{lngs:[`ach`,`ak`,`am`,`arn`,`br`,`fil`,`gun`,`ln`,`mfe`,`mg`,`mi`,`oc`,`pt`,`pt-BR`,`tg`,`tl`,`ti`,`tr`,`uz`,`wa`],nr:[1,2],fc:1},{lngs:`af.an.ast.az.bg.bn.ca.da.de.dev.el.en.eo.es.et.eu.fi.fo.fur.fy.gl.gu.ha.hi.hu.hy.ia.it.kk.kn.ku.lb.mai.ml.mn.mr.nah.nap.nb.ne.nl.nn.no.nso.pa.pap.pms.ps.pt-PT.rm.sco.se.si.so.son.sq.sv.sw.ta.te.tk.ur.yo`.split(`.`),nr:[1,2],fc:2},{lngs:[`ay`,`bo`,`cgg`,`fa`,`ht`,`id`,`ja`,`jbo`,`ka`,`km`,`ko`,`ky`,`lo`,`ms`,`sah`,`su`,`th`,`tt`,`ug`,`vi`,`wo`,`zh`],nr:[1],fc:3},{lngs:[`be`,`bs`,`cnr`,`dz`,`hr`,`ru`,`sr`,`uk`],nr:[1,2,5],fc:4},{lngs:[`ar`],nr:[0,1,2,3,11,100],fc:5},{lngs:[`cs`,`sk`],nr:[1,2,5],fc:6},{lngs:[`csb`,`pl`],nr:[1,2,5],fc:7},{lngs:[`cy`],nr:[1,2,3,8],fc:8},{lngs:[`fr`],nr:[1,2],fc:9},{lngs:[`ga`],nr:[1,2,3,7,11],fc:10},{lngs:[`gd`],nr:[1,2,3,20],fc:11},{lngs:[`is`],nr:[1,2],fc:12},{lngs:[`jv`],nr:[0,1],fc:13},{lngs:[`kw`],nr:[1,2,3,4],fc:14},{lngs:[`lt`],nr:[1,2,10],fc:15},{lngs:[`lv`],nr:[1,2,0],fc:16},{lngs:[`mk`],nr:[1,2],fc:17},{lngs:[`mnk`],nr:[0,1,2],fc:18},{lngs:[`mt`],nr:[1,2,11,20],fc:19},{lngs:[`or`],nr:[2,1],fc:2},{lngs:[`ro`],nr:[1,2,20],fc:20},{lngs:[`sl`],nr:[5,1,2,3],fc:21},{lngs:[`he`,`iw`],nr:[1,2,20,21],fc:22}],Gy={1:e=>Number(e>1),2:e=>Number(e!=1),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(e==1?0:e>=2&&e<=4?1:2),7:e=>Number(e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(e==1?0:e==2?1:e!=8&&e!=11?2:3),9:e=>Number(e>=2),10:e=>Number(e==1?0:e==2?1:e<7?2:e<11?3:4),11:e=>Number(e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(e!==0),14:e=>Number(e==1?0:e==2?1:e==3?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:e===0?2:1),17:e=>Number(e==1||e%10==1&&e%100!=11?0:1),18:e=>Number(e==0?0:e==1?1:2),19:e=>Number(e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(e==1?0:e==0||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3)},Ky=[`v1`,`v2`,`v3`],qy=[`v4`],Jy={zero:0,one:1,two:2,few:3,many:4,other:5},Yy=()=>{let e={};return Wy.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Gy[t.fc]}})}),e},Xy=class{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Iy.create(`pluralResolver`),(!this.options.compatibilityJSON||qy.includes(this.options.compatibilityJSON))&&(typeof Intl>`u`||!Intl.PluralRules)&&(this.options.compatibilityJSON=`v3`,this.logger.error(`Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.`)),this.rules=Yy(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){let n=Py(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(!e.match(/-|_/))return;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>Jy[e]-Jy[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),``)}getSuffixRetroCompatible(e,t){let n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(r===2?r=`plural`:r===1&&(r=``));let i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON===`v1`?r===1?``:typeof r==`number`?`_plural_${r.toString()}`:i():this.options.compatibilityJSON===`v2`||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Ky.includes(this.options.compatibilityJSON)}},Zy=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`.`,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=wy(e,t,n);return!a&&i&&$(n)&&(a=Ny(e,n,r),a===void 0&&(a=Ny(t,n,r))),a},Qy=e=>e.replace(/\$/g,`$$$$`),$y=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Iy.create(`interpolator`),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?Oy:t,this.escapeValue=n===void 0?!0:n,this.useRawValueToEscape=r===void 0?!1:r,this.prefix=i?Ey(i):a||`{{`,this.suffix=o?Ey(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?Ey(d):f||Ey(`$t(`),this.nestingSuffix=p?Ey(p):m||Ey(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_===void 0?!1:_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=Zy(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(Zy(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Qy(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Qy(this.escape(e)):Qy(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=$(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else!$(a)&&!this.useRawValueToEscape&&(a=hy(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);(o&&o.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!$(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),s=e,c=!0}if(i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!$(i))return i;$(i)||(i=hy(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),c&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},eb=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},tb=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(Py(r),i),t[o]=s),s(n)}},nb=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Iy.create(`formatter`),this.options=e,this.formats={number:tb((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:tb((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:tb((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:tb((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:tb((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||`,`}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=tb(t)}format(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=eb(t);if(this.formats[i]){let t=e;try{let o=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},rb=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},ib=class extends Ly{constructor(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Iy.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{Sy(n.loaded,[i],a),rb(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();$(e)&&(e=this.languageUtils.toResolveHierarchy(e)),$(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend&&this.backend.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},ab=()=>({debug:!1,initImmediate:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),$(e[1])&&(t.defaultValue=e[1]),$(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0}}),ob=e=>($(e.ns)&&(e.ns=[e.ns]),$(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),$(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),sb=()=>{},cb=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},lb=class e extends Ly{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ob(e),this.services={},this.logger=Iy,this.modules={external:[]},cb(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t==`function`&&(n=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&($(t.ns)?t.defaultNS=t.ns:t.ns.indexOf(`translation`)<0&&(t.defaultNS=t.ns[0]));let r=ab();this.options={...r,...this.options,...ob(t)},this.options.compatibilityAPI!==`v1`&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);let i=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?Iy.init(i(this.modules.logger),this.options):Iy.init(null,this.options);let t;this.modules.formatter?t=this.modules.formatter:typeof Intl<`u`&&(t=nb);let n=new Uy(this.options);this.store=new Ry(this.options.resources,this.options);let a=this.services;a.logger=Iy,a.resourceStore=this.store,a.languageUtils=n,a.pluralResolver=new Xy(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(a.formatter=i(t),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new $y(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new ib(i(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on(`*`,function(t){var n=[...arguments].slice(1);e.emit(t,...n)}),this.modules.languageDetector&&(a.languageDetector=i(this.modules.languageDetector),a.languageDetector.init&&a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=i(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new Vy(this.services,this.options),this.translator.on(`*`,function(t){var n=[...arguments].slice(1);e.emit(t,...n)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||=sb,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let a=my(),o=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),a.resolve(t),n(e,t)};if(this.languages&&this.options.compatibilityAPI!==`v1`&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?o():setTimeout(o,0),a}loadResources(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:sb,n=$(e)?e:this.language;if(typeof e==`function`&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&n.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return t();let e=[],r=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>r(e)),this.options.preload&&this.options.preload.forEach(e=>r(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,n){let r=my();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=sb,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&zy.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!([`cimode`,`dev`].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!([`cimode`,`dev`].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;let r=my();this.emit(`languageChanging`,e);let i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(e,a)=>{a?(i(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},o=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=$(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{a(e,n)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}getFixedT(e,t,n){var r=this;let i=function(e,t){let a;if(typeof t!=`object`){var o=[...arguments].slice(2);a=r.options.overloadTranslationOptionHandler([e,t].concat(o))}else a={...t};a.lng=a.lng||i.lng,a.lngs=a.lngs||i.lngs,a.ns=a.ns||i.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||i.keyPrefix);let s=r.options.keySeparator||`.`,c;return c=a.keyPrefix&&Array.isArray(e)?e.map(e=>`${a.keyPrefix}${s}${e}`):a.keyPrefix?`${a.keyPrefix}${s}${e}`:e,r.t(c,a)};return $(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=my();return this.options.ns?($(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=my();$(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return`rtl`;let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services&&this.services.languageUtils||new Uy(ab());return t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new e(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:sb,r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new Ry(this.store.data,i),a.services.resourceStore=a.store),a.translator=new Vy(a.services,i),a.translator.on(`*`,function(e){var t=[...arguments].slice(1);a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},ub=lb.createInstance();ub.createInstance=lb.createInstance,ub.createInstance,ub.dir,ub.init,ub.loadResources,ub.reloadResources,ub.use,ub.changeLanguage,ub.getFixedT,ub.t,ub.exists,ub.setDefaultNamespace,ub.hasLoadedNamespace,ub.loadNamespaces,ub.loadLanguages;var db=[{code:`af`,label:`Afrikaans`},{code:`ar`,label:`Arabic`},{code:`bg`,label:`Bulgarian`},{code:`bn`,label:`Bengali`},{code:`bs`,label:`Bosnian`},{code:`ca`,label:`Catalan`},{code:`cs`,label:`Czech`},{code:`da`,label:`Danish`},{code:`de`,label:`German`},{code:`de-CH`,label:`Swiss German`},{code:`el`,label:`Greek`},{code:`en`,label:`English`},{code:`eo`,label:`Esperanto`},{code:`es`,label:`Spanish`},{code:`et`,label:`Estonian`},{code:`eu`,label:`Basque`},{code:`fa`,label:`Persian/Farsi`},{code:`fi`,label:`Finnish`},{code:`fr`,label:`French`},{code:`gd`,label:`Gaelic (Scottish)`},{code:`he`,label:`Hebrew`},{code:`hi`,label:`Hindi`},{code:`hr`,label:`Croatian`},{code:`hu`,label:`Hungarian`},{code:`id`,label:`Indonesian`},{code:`is`,label:`Icelandic`},{code:`it`,label:`Italian`},{code:`ja`,label:`Japanese`},{code:`ko`,label:`Korean`},{code:`kz`,label:`Kazakh`},{code:`lt`,label:`Lithuanian`},{code:`lv`,label:`Latvian`},{code:`mk`,label:`Macedonian`},{code:`mn`,label:`Mongolian`},{code:`ms`,label:`Malay`},{code:`nb`,label:`Norwegian Bokmål`},{code:`ne`,label:`Nepali`},{code:`nl`,label:`Dutch`},{code:`nn`,label:`Norwegian Nynorsk`},{code:`pa`,label:`Punjabi`},{code:`pl`,label:`Polish`},{code:`pt`,label:`Portuguese`},{code:`pt-BR`,label:`Portuguese (Brazil)`},{code:`ro`,label:`Romanian`},{code:`ru`,label:`Russian`},{code:`si`,label:`Sinhala`},{code:`sk`,label:`Slovak`},{code:`sl`,label:`Slovenian`},{code:`sq`,label:`Albanian`},{code:`sr`,label:`Serbian`},{code:`sr-Cyrl`,label:`Serbian (Cyrillic)`},{code:`sv`,label:`Swedish`},{code:`sw`,label:`Swahili`},{code:`ta`,label:`Tamil`},{code:`th`,label:`Thai`},{code:`tr`,label:`Turkish`},{code:`uk`,label:`Ukrainian`},{code:`ur`,label:`Urdu`},{code:`uz`,label:`Uzbek`},{code:`vi`,label:`Vietnamese`},{code:`zh`,label:`Chinese`},{code:`zh-Hant`,label:`Traditional Chinese`}],fb=s({LOCALE_DATA:()=>db,SUPPORTED_LOCALES:()=>pb,createGenerateResources:()=>hb,createI18n:()=>gb,mergeDefaultExport:()=>mb}),pb=db.map(e=>e.code);function mb(e){return{...e,...e.default&&typeof e.default==`object`?e.default:{}}}function hb(e){return function(t,n){return t.reduce((t,r)=>{let i=e(r,n);return i===void 0&&(i=e(`en`,n)),t[r]={[n]:mb(i||{})},t},{})}}function gb({generateThemeResources:e,generateResources:t}){return(n=`en`,r=`portal`,i={})=>{let a=ub.createInstance(),o={prefix:`{`,suffix:`}`};(r===`theme`||r===`portal`)&&(o.escapeValue=!1);let s;return s=r===`theme`?e(n,i):t(pb,r),a.init({lng:n,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:{no:[`nb`,`en`],default:[`en`]},ns:r,defaultNS:r,interpolation:o,resources:s}),a}}var{createI18n:_b,createGenerateResources:vb,LOCALE_DATA:yb,SUPPORTED_LOCALES:bb}=fb;function xb(e,t){let n={};for(let[t,r]of Object.entries(e))n[t.match(/\/locales\/([^/]+)\//)[1]]=r;return Sb(n,t)}function Sb(e,t){let n=vb(t=>e[t]);function r(e){return{[e]:{theme:{}}}}let i=_b({generateResources:n,generateThemeResources:r});return i.LOCALE_DATA=yb,i.SUPPORTED_LOCALES=bb,i.generateResources=n,i.namespace=t,i.default=i,i}var Cb=xb(Object.assign({"../../locales/af/comments.json":ov,"../../locales/ar/comments.json":sv,"../../locales/bg/comments.json":cv,"../../locales/bn/comments.json":lv,"../../locales/bs/comments.json":uv,"../../locales/ca/comments.json":dv,"../../locales/cs/comments.json":fv,"../../locales/da/comments.json":pv,"../../locales/de/comments.json":mv,"../../locales/de-CH/comments.json":hv,"../../locales/el/comments.json":gv,"../../locales/en/comments.json":_v,"../../locales/eo/comments.json":vv,"../../locales/es/comments.json":yv,"../../locales/et/comments.json":bv,"../../locales/eu/comments.json":xv,"../../locales/fa/comments.json":Sv,"../../locales/fi/comments.json":Cv,"../../locales/fr/comments.json":wv,"../../locales/gd/comments.json":Tv,"../../locales/he/comments.json":Ev,"../../locales/hi/comments.json":Dv,"../../locales/hr/comments.json":Ov,"../../locales/hu/comments.json":kv,"../../locales/id/comments.json":Av,"../../locales/is/comments.json":jv,"../../locales/it/comments.json":Mv,"../../locales/ja/comments.json":Nv,"../../locales/ko/comments.json":Pv,"../../locales/kz/comments.json":Fv,"../../locales/lt/comments.json":Iv,"../../locales/lv/comments.json":Lv,"../../locales/mk/comments.json":Rv,"../../locales/mn/comments.json":zv,"../../locales/ms/comments.json":Bv,"../../locales/nb/comments.json":Vv,"../../locales/ne/comments.json":Hv,"../../locales/nl/comments.json":Uv,"../../locales/nn/comments.json":Wv,"../../locales/pa/comments.json":Gv,"../../locales/pl/comments.json":Kv,"../../locales/pt/comments.json":qv,"../../locales/pt-BR/comments.json":Jv,"../../locales/ro/comments.json":Yv,"../../locales/ru/comments.json":Xv,"../../locales/si/comments.json":Zv,"../../locales/sk/comments.json":Qv,"../../locales/sl/comments.json":$v,"../../locales/sq/comments.json":ey,"../../locales/sr/comments.json":ty,"../../locales/sr-Cyrl/comments.json":ny,"../../locales/sv/comments.json":ry,"../../locales/sw/comments.json":iy,"../../locales/ta/comments.json":ay,"../../locales/th/comments.json":oy,"../../locales/tr/comments.json":sy,"../../locales/uk/comments.json":cy,"../../locales/ur/comments.json":ly,"../../locales/uz/comments.json":uy,"../../locales/vi/comments.json":dy,"../../locales/zh/comments.json":fy,"../../locales/zh-Hant/comments.json":py}),`comments`),{LOCALE_DATA:wb,SUPPORTED_LOCALES:Tb,generateResources:Eb}=Cb;function Db({siteUrl:e=window.location.origin,apiUrl:t,apiKey:n}){function r({type:t,resource:n,params:r=``}){return t===`members`?`${e.replace(/\/$/,``)}/members/api/${n}/${r}`:``}function i({resource:e,params:r={}}){if(t&&n){let i=new URLSearchParams({...r,key:n});return`${t.replace(/\/$/,``)}/${e}/?${i.toString()}`}return``}function a({url:e,method:t=`GET`,headers:n={},credentials:r=void 0,body:i=void 0}){return fetch(e,{method:t,headers:n,credentials:r,body:i})}let o=null,s={site:{settings(){return a({url:i({resource:`settings`}),method:`GET`,headers:{"Content-Type":`application/json`}}).then(function(e){if(e.ok)return e.json();throw Error(`Failed to fetch site data`)})}},member:{identity(){return a({url:r({type:`members`,resource:`session`}),credentials:`same-origin`}).then(function(e){return!e.ok||e.status===204?null:e.text()})},sessionData(){return a({url:r({type:`members`,resource:`member`}),credentials:`same-origin`}).then(function(e){return!e.ok||e.status===204?null:e.json()})},update({name:e,expertise:t}){return a({url:r({type:`members`,resource:`member`}),method:`PUT`,headers:{"Content-Type":`application/json`},credentials:`same-origin`,body:JSON.stringify({name:e,expertise:t})}).then(function(e){return e.ok?e.json():null})}},comments:{async count({postId:e}){let t=await(await a({url:r({type:`members`,resource:`comments/counts`,params:e?`?ids=${e}`:``}),method:`GET`,headers:{"Content-Type":`application/json`},credentials:`same-origin`})).json();return e?t[e]:t},browse({page:e,postId:t,order:n}){let i=null;o&&!n&&(i=`created_at:<=${o}`);let s=new URLSearchParams;s.set(`limit`,`20`),i&&s.set(`filter`,i),s.set(`page`,e.toString()),n&&s.set(`order`,n);let c=a({url:r({type:`members`,resource:`comments/post/${t}`,params:`?${s.toString()}`}),method:`GET`,headers:{"Content-Type":`application/json`},credentials:`same-origin`}).then(function(e){if(e.ok)return e.json();throw Error(`Failed to fetch comments`)});return o||c.then(e=>{let t=e.comments[0];t&&(o=t.created_at)}),c},async replies({commentId:e,afterReplyId:t,limit:n,page:i}){if(n===`all`){let t=[],n=1,r=!0;for(;r;){let i=await this.replies({commentId:e,limit:100,page:n});t.push(...i.comments),r=!!i.meta?.pagination?.next&&i.comments.length>0,n+=1}return{comments:t,meta:{pagination:{next:!1}}}}let o=new URLSearchParams;o.set(`limit`,(n??5).toString()),i&&o.set(`page`,i.toString()),t&&o.set(`filter`,`id:>'${t}'`);let s=await a({url:r({type:`members`,resource:`comments/${e}/replies`,params:`?${o.toString()}`}),method:`GET`,headers:{"Content-Type":`application/json`},credentials:`same-origin`});if(s.ok)return s.json();throw Error(`Failed to fetch replies`)},add({comment:e}){let t={comments:[e]};return a({url:r({type:`members`,resource:`comments`}),method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)}).then(function(e){if(e.ok)return e.json();throw Error(`Failed to add comment`)})},edit({comment:e}){let t={comments:[e]};return a({url:r({type:`members`,resource:`comments/${e.id}`}),method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)}).then(function(e){if(e.ok)return e.json();throw Error(`Failed to edit comment`)})},read(e){return a({url:r({type:`members`,resource:`comments/${e}`}),method:`GET`,credentials:`same-origin`}).then(function(e){if(e.ok)return e.json();throw Error(`Failed to read comment`)})},like({comment:e}){return a({url:r({type:`members`,resource:`comments/${e.id}/like`}),method:`POST`,headers:{"Content-Type":`application/json`}}).then(function(e){if(e.ok)return`Success`;throw Error(`Failed to like comment`)})},unlike({comment:e}){let t={comments:[e]};return a({url:r({type:`members`,resource:`comments/${e.id}/like`}),method:`DELETE`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)}).then(function(e){if(e.ok)return`Success`;throw Error(`Failed to unlike comment`)})},dislike({comment:e}){return a({url:r({type:`members`,resource:`comments/${e.id}/dislike`}),method:`POST`,headers:{"Content-Type":`application/json`}}).then(function(e){if(e.ok)return`Success`;throw Error(`Failed to dislike comment`)})},undislike({comment:e}){let t={comments:[e]};return a({url:r({type:`members`,resource:`comments/${e.id}/dislike`}),method:`DELETE`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)}).then(function(e){if(e.ok)return`Success`;throw Error(`Failed to undislike comment`)})},report({comment:e}){return a({url:r({type:`members`,resource:`comments/${e.id}/report`}),method:`POST`,headers:{"Content-Type":`application/json`}}).then(function(e){if(e.ok)return`Success`;throw Error(`Failed to report comment`)})}},init:(()=>{})};return s.init=async()=>{let[e]=await Promise.all([s.member.sessionData()]),t={},n=null;try{let e=await s.site.settings();e.settings.labs&&Object.assign(t,e.settings.labs),n=e.settings.support_email_address||null}catch{t={}}return{member:e,labs:t,supportEmail:n}},s}function Ob(e,t){for(let n of e){if(n.id===t)return n;for(let e of n.replies||[])if(e.id===t)return e}}async function kb({state:e,api:t,options:n,order:r}){let i=1;e.pagination&&e.pagination.page&&(i=e.pagination.page+1);let a;return a=e.admin&&e.adminApi?await e.adminApi.browse({page:i,postId:n.postId,order:r||e.order,memberUuid:e.member?.uuid}):await t.comments.browse({page:i,postId:n.postId,order:r||e.order}),{comments:[...e.comments,...a.comments].filter((e,t,n)=>n.findIndex(t=>t.id===e.id)===t),pagination:a.meta.pagination}}function Ab({data:e}){return{commentsIsLoading:e}}async function jb({state:e,data:{order:t},options:n,api:r,dispatchAction:i}){i(`setCommentsIsLoading`,!0);try{let i;return i=e.admin&&e.adminApi?await e.adminApi.browse({page:1,postId:n.postId,order:t,memberUuid:e.member?.uuid}):await r.comments.browse({page:1,postId:n.postId,order:t}),{comments:[...i.comments],pagination:i.meta.pagination,order:t,commentsIsLoading:!1}}catch(t){throw console.error(`Failed to set order:`,t),e.commentsIsLoading=!1,t}}async function Mb({state:e,api:t,data:n}){let r=(await t.comments.add({comment:n})).comments[0];return{comments:[r,...e.comments],commentCount:e.commentCount+1,commentIdToScrollTo:r.id}}async function Nb({state:e,api:t,data:{reply:n,parent:r}}){let i=(await t.comments.add({comment:{...n,parent_id:r.id}})).comments[0],a=await t.comments.replies({commentId:r.id,limit:`all`}),o=a.comments.some(e=>e.id===i.id)?a.comments:[...a.comments,i];return{comments:e.comments.map(e=>e.id===r.id?{...e,replies:o,count:{...e.count,replies:o.length}}:e),commentCount:e.commentCount+1,commentIdToScrollTo:i.id}}async function Pb({state:e,data:t}){return e.adminApi&&await e.adminApi.hideComment(t.id),{comments:e.comments.map(e=>{let n=e.replies.map(e=>e.id===t.id?{...e,status:`hidden`}:e);return e.id===t.id?{...e,status:`hidden`,replies:n}:{...e,replies:n}}),commentCount:e.commentCount-1}}async function Fb({state:e,api:t,data:n}){e.adminApi&&await e.adminApi.showComment({id:n.id});let r;r=e.admin&&e.adminApi?await e.adminApi.read({commentId:n.id,memberUuid:e.member?.uuid}):await t.comments.read(n.id);let i=r.comments[0];return{comments:e.comments.map(e=>{let t=e.replies.map(e=>e.id===n.id?i:e);return e.id===n.id?i:{...e,replies:t}}),commentCount:e.commentCount+1}}async function Ib({state:e,data:t,dispatchAction:n}){return e.adminApi&&(await e.adminApi.pinComment({id:t.id}),n(`setOrder`,{order:e.order})),null}async function Lb({state:e,data:t,dispatchAction:n}){return e.adminApi&&(await e.adminApi.unpinComment({id:t.id}),n(`setOrder`,{order:e.order})),null}async function Rb({state:e,data:t}){return{comments:e.comments.map(e=>{let n=e.replies.map(e=>e.id===t.id?t.expectedLiked!==void 0&&e.liked!==t.expectedLiked||t.expectedDisliked!==void 0&&!!e.disliked!==t.expectedDisliked||t.expectedVotePending!==void 0&&!!e.votePending!==t.expectedVotePending?e:{...e,liked:t.liked,disliked:t.restoreDisliked??(t.liked?!1:e.disliked),votePending:t.votePending??e.votePending,count:{...e.count,likes:t.liked?e.count.likes+1:e.count.likes-1}}:e);return e.id===t.id?t.expectedLiked!==void 0&&e.liked!==t.expectedLiked||t.expectedDisliked!==void 0&&!!e.disliked!==t.expectedDisliked||t.expectedVotePending!==void 0&&!!e.votePending!==t.expectedVotePending?{...e,replies:n}:{...e,liked:t.liked,disliked:t.restoreDisliked??(t.liked?!1:e.disliked),votePending:t.votePending??e.votePending,replies:n,count:{...e.count,likes:t.liked?e.count.likes+1:e.count.likes-1}}:{...e,replies:n}})}}async function zb({state:e,data:t}){let n=e=>t.disliked&&t.wasLiked?e-1:t.restoreLiked?e+1:e;return{comments:e.comments.map(e=>{let r=e.replies.map(e=>e.id===t.id?t.expectedDisliked!==void 0&&e.disliked!==t.expectedDisliked||t.expectedLiked!==void 0&&e.liked!==t.expectedLiked||t.expectedVotePending!==void 0&&!!e.votePending!==t.expectedVotePending?e:{...e,disliked:t.disliked,liked:t.restoreLiked??(t.disliked?!1:e.liked),votePending:t.votePending??e.votePending,count:{...e.count,likes:n(e.count.likes)}}:e);return e.id===t.id?t.expectedDisliked!==void 0&&e.disliked!==t.expectedDisliked||t.expectedLiked!==void 0&&e.liked!==t.expectedLiked||t.expectedVotePending!==void 0&&!!e.votePending!==t.expectedVotePending?{...e,replies:r}:{...e,disliked:t.disliked,liked:t.restoreLiked??(t.disliked?!1:e.liked),votePending:t.votePending??e.votePending,replies:r,count:{...e.count,likes:n(e.count.likes)}}:{...e,replies:r}})}}async function Bb({state:e,data:t}){return{comments:e.comments.map(e=>{let n=e.replies.map(e=>e.id===t.id?t.expectedVotePending!==void 0&&!!e.votePending!==t.expectedVotePending?e:{...e,votePending:t.votePending}:e);return e.id===t.id?t.expectedVotePending!==void 0&&!!e.votePending!==t.expectedVotePending?{...e,replies:n}:{...e,votePending:t.votePending,replies:n}:{...e,replies:n}})}}async function Vb({state:e,api:t,data:n,dispatchAction:r}){let i=Ob(e.comments,n.id);if(i?.votePending)return{};let a=i?.disliked??!1;r(`updateCommentLikeState`,{id:n.id,liked:!0,wasDisliked:a,votePending:!0});try{return await t.comments.like({comment:n}),r(`updateCommentVotePendingState`,{id:n.id,votePending:!1,expectedVotePending:!0}),{}}catch{r(`updateCommentLikeState`,{id:n.id,liked:!1,restoreDisliked:a,expectedLiked:!0,expectedVotePending:!0,votePending:!1})}}async function Hb({state:e,api:t,data:n,dispatchAction:r}){if(Ob(e.comments,n.id)?.votePending)return{};r(`updateCommentLikeState`,{id:n.id,liked:!1,votePending:!0});try{return await t.comments.unlike({comment:n}),r(`updateCommentVotePendingState`,{id:n.id,votePending:!1,expectedVotePending:!0}),{}}catch{r(`updateCommentLikeState`,{id:n.id,liked:!0,expectedLiked:!1,expectedDisliked:!1,expectedVotePending:!0,votePending:!1})}}async function Ub({state:e,api:t,data:n,dispatchAction:r}){let i=Ob(e.comments,n.id);if(i?.votePending)return{};let a=i?.liked??!1;r(`updateCommentDislikeState`,{id:n.id,disliked:!0,wasLiked:a,votePending:!0});try{return await t.comments.dislike({comment:n}),r(`updateCommentVotePendingState`,{id:n.id,votePending:!1,expectedVotePending:!0}),{}}catch{r(`updateCommentDislikeState`,{id:n.id,disliked:!1,restoreLiked:a,expectedDisliked:!0,expectedVotePending:!0,votePending:!1})}}async function Wb({state:e,api:t,data:n,dispatchAction:r}){if(Ob(e.comments,n.id)?.votePending)return{};r(`updateCommentDislikeState`,{id:n.id,disliked:!1,votePending:!0});try{return await t.comments.undislike({comment:n}),r(`updateCommentVotePendingState`,{id:n.id,votePending:!1,expectedVotePending:!0}),{}}catch{r(`updateCommentDislikeState`,{id:n.id,disliked:!0,expectedDisliked:!1,expectedLiked:!1,expectedVotePending:!0,votePending:!1})}}async function Gb({api:e,data:t}){return await e.comments.report({comment:t}),{}}function Kb(e,t){return e.some(e=>e.in_reply_to_id===t)}function qb(e,t){return e.status===`deleted`||!t&&e.status===`hidden`}function Jb(e,t){let n=e,r=!1;do r=!1,n=n.filter(e=>!qb(e,t)||Kb(n,e.id)?!0:(r=!0,!1));while(r);return n}function Yb(e){return Math.max((e||0)-1,0)}async function Xb({state:e,api:t,data:n,dispatchAction:r}){await t.comments.edit({comment:{id:n.id,status:`deleted`}});let i=e.comments.find(e=>e.id===n.id);return i&&(!i.replies||i.replies.length===0)?(r(`setOrder`,{order:e.order}),null):{comments:e.comments.map(t=>{if(t.id===n.id)return t.replies.length>0?{...t,status:`deleted`}:null;let r=t.replies.length,i=t.replies.find(e=>e.id===n.id),a=i?Kb(t.replies,i.id):!1,o=Jb(t.replies.reduce((e,t)=>t.id===n.id?(a&&e.push({...t,status:`deleted`,html:null}),e):(e.push(t),e),[]),e.isAdmin),s=r!==o.length||a,c={...t,replies:o};if(s&&i&&![`hidden`,`deleted`].includes(i.status)){let e=!i.in_reply_to_id||i.in_reply_to_id===t.id;c.count={...c.count,replies:Yb(c.count?.replies),direct_replies:e?Yb(c.count?.direct_replies):c.count?.direct_replies}}return c}).filter(Boolean),commentCount:e.commentCount-1}}async function Zb({state:e,api:t,data:{comment:n,parent:r}}){return n=(await t.comments.edit({comment:n})).comments[0],{comments:e.comments.map(e=>r&&r.id===e.id?{...e,replies:e.replies.map(e=>e.id===n.id?n:e)}:e.id===n.id?n:e)}}async function Qb({data:e,state:t,api:n}){let{name:r,expertise:i}=e,a={},o=t?.member?.name;r&&o!==r&&(a.name=r);let s=t?.member?.expertise;if(i!==void 0&&s!==i&&(a.expertise=i),Object.keys(a).length>0)try{let e=await n.member.update(a);if(!e)throw Error(`Failed to update member`);return{member:e,success:!0}}catch(e){return{success:!1,error:e}}return null}function $b({data:e}){return{popup:e}}function ex(){return{popup:null}}function tx({data:e,state:t}){let n=t.openCommentForms.filter(e=>e.hasUnsavedChanges),r=n.findIndex(t=>t.id===e.id);return r>-1?(n[r]=e,{openCommentForms:n}):{openCommentForms:[...n,e]}}function nx({data:e}){return{commentIdToHighlight:e}}function rx({data:{commentId:e},dispatchAction:t}){return setTimeout(()=>{t(`setHighlightComment`,null)},3e3),{commentIdToHighlight:e}}function ix({data:{id:e,hasUnsavedChanges:t},state:n}){return{openCommentForms:n.openCommentForms.map(n=>n.id===e?{...n,hasUnsavedChanges:t}:{...n})}}function ax({data:e,state:t}){return{openCommentForms:t.openCommentForms.filter(t=>t.id!==e)}}function ox({data:e}){return{commentIdToScrollTo:e}}function sx({data:e}){return{commentIdFromHash:e}}var cx={openPopup:$b,closePopup:ex,closeCommentForm:ax,setCommentFormHasUnsavedChanges:ix,setScrollTarget:ox,setHashCommentId:sx},lx={addComment:Mb,editComment:Zb,hideComment:Pb,pinComment:Ib,unpinComment:Lb,deleteComment:Xb,showComment:Fb,likeComment:Vb,unlikeComment:Hb,dislikeComment:Ub,undislikeComment:Wb,reportComment:Gb,addReply:Nb,loadMoreComments:kb,openCommentForm:tx,updateMember:Qb,setOrder:jb,highlightComment:rx,setHighlightComment:nx,setCommentsIsLoading:Ab,updateCommentLikeState:Rb,updateCommentDislikeState:zb,updateCommentVotePendingState:Bb};function ux(e){return Object.prototype.hasOwnProperty.call(cx,e)}async function dx({action:e,data:t,state:n,api:r,adminApi:i,options:a,dispatchAction:o}){let s=lx[e];return s&&await s({data:t,state:n,api:r,adminApi:i,options:a,dispatchAction:o})||{}}function fx({action:e,data:t,state:n,api:r,adminApi:i,options:a}){let o=cx[e];return o&&o({data:t,state:n,api:r,adminApi:i,options:a})||{}}function px({adminUrl:e}){let t=document.querySelector(`iframe[data-frame="admin-auth"]`),n=1,r={},i=new URL(e).origin,a=null;window.addEventListener(`message`,function(e){if(e.origin!==i)return;let t=null;try{t=JSON.parse(e.data)}catch{return}let n=r[t.uid];n&&(delete r[t.uid],n(t.error,t.result))});function o(e,a){return new Promise((o,s)=>{function c(e,t){return e?s(e):o(t)}n+=1,r[n]=c,t.contentWindow.postMessage(JSON.stringify({uid:n,action:e,...a}),i)})}return{async getUser(){let e=await o(`getUser`);return!e||!e.users?null:e.users[0]},async hideComment(e){return await o(`hideComment`,{id:e})},async showComment({id:e}){return await o(`showComment`,{id:e})},async pinComment({id:e}){return await o(`pinComment`,{id:e})},async unpinComment({id:e}){return await o(`unpinComment`,{id:e})},async browse({page:e,postId:t,order:n,memberUuid:r}){let i=null;a&&!n&&(i=`created_at:<=${a}`);let s=new URLSearchParams;s.set(`limit`,`20`),i&&s.set(`filter`,i),s.set(`page`,e.toString()),n&&s.set(`order`,n),r&&s.set(`impersonate_member_uuid`,r);let c=await o(`browseComments`,{postId:t,params:s.toString()});if(!a){let e=c.comments[0];e&&(a=e.created_at)}return c},async replies({commentId:e,afterReplyId:t,limit:n,memberUuid:r}){let i=new URLSearchParams;return n&&i.set(`limit`,n.toString()),t&&i.set(`filter`,`id:>'${t}'`),r&&i.set(`impersonate_member_uuid`,r),await o(`getReplies`,{commentId:e,params:i.toString()})},async read({commentId:e,memberUuid:t}){let n=new URLSearchParams;return t&&n.set(`impersonate_member_uuid`,t),await o(`readComment`,{commentId:e,...n.toString()&&{params:n.toString()}})}}}function mx(e){let t=O.useCallback(()=>{let t=e.dataset,n=t.ghostComments||window.location.origin,r=t.key,i=t.api,a=t.admin,o=t.postId||``,s=t.colorScheme,c=t.avatarSaturation?parseInt(t.avatarSaturation):void 0,l=t.accentColor??`#000000`,u=t.commentsEnabled,d=t.title===`null`?null:t.title??``,f=t.count===`true`,p=t.publication??``;return{locale:t.locale??`en`,siteUrl:n,apiKey:r,apiUrl:i,postId:o,adminUrl:a,colorScheme:s,avatarSaturation:c,accentColor:l,commentsEnabled:u,title:d,showCount:f,publication:p}},[e]),n=(0,O.useMemo)(()=>t(),[]),[r,i]=O.useState(n);return O.useEffect(()=>{let n=new MutationObserver(e=>{e.some(e=>e.type===`attributes`)&&i(t())});return n.observe(e,{attributes:!0}),()=>{n.disconnect()}},[e,t]),r}var hx=[`Owner`,`Administrator`,`Super Editor`],gx=`count__net_score desc, created_at desc`;function _x(e,t){return e.some(e=>e.id===t||e.replies?.some(e=>e.id===t))}var vx=({scriptTag:e,initialCommentId:t})=>{let n=mx(e),[r,i]=(0,O.useState)({initStatus:`running`,member:null,admin:null,comments:[],pagination:null,commentCount:0,openCommentForms:[],popup:null,labs:{},order:gx,adminApi:null,commentsIsLoading:!1,commentIdToHighlight:null,commentIdToScrollTo:t,commentIdFromHash:t,showMissingCommentNotice:!1,supportEmail:null,isMember:!1,isAdmin:!1,isPaidOnly:!1,hasRequiredTier:!0,isCommentingDisabled:!1}),a=O.createRef(),o=O.useMemo(()=>Db({siteUrl:n.siteUrl,apiUrl:n.apiUrl,apiKey:n.apiKey}),[n]),s=(0,O.useCallback)(e=>{i(t=>(typeof e==`function`&&(e=e(t)),{...t,...e}))},[i]),c=(0,O.useCallback)(async(e,t)=>{if(ux(e)){s(r=>fx({action:e,data:t,state:r,api:o,adminApi:r.adminApi,options:n}));return}return new Promise(r=>{s(i=>(dx({action:e,data:t,state:i,api:o,adminApi:i.adminApi,options:n,dispatchAction:c}).then(e=>{let t={...e};r(t),s(t)}).catch(console.error),{}))})},[o,n]),l=(0,O.useMemo)(()=>Cb(n.locale,`comments`),[n.locale]),u={...n,...r,t:l.t,dispatchAction:c,openFormCount:(0,O.useMemo)(()=>r.openCommentForms.length,[r.openCommentForms])},d=async()=>{if(!(r.adminApi||!n.adminUrl))try{let e=px({adminUrl:n.adminUrl}),i=null;try{if(i=await e.getUser(),(!i||!i.roles.some(e=>hx.includes(e.name)))&&(i=null),i){let a=await e.browse({page:1,postId:n.postId,order:r.order,memberUuid:r.member?.uuid});s(n=>n.pagination&&n.pagination.page>1||t?{adminApi:e,admin:i,isAdmin:!0}:{adminApi:e,admin:i,isAdmin:!0,comments:a.comments,pagination:a.meta.pagination})}}catch(e){console.warn(`[Comments] Failed to fetch admin endpoint:`,e)}s({adminApi:e,admin:i,isAdmin:!!i})}catch(e){console.error(`[Comments] Failed to initialize admin authentication:`,e)}},f=async(e=r.order)=>{let t=o.comments.browse({page:1,postId:n.postId,order:e}),i=o.comments.count({postId:n.postId}),[a,s]=await Promise.all([t,i]);return{comments:a.comments,pagination:a.meta.pagination,count:s}},p=async e=>{try{let t=(await o.comments.read(e)).comments?.[0];return t&&t.status===`published`?t:null}catch{return null}},g=async(e,t,i,a,s=r.order)=>{let c=i,l=a;for(;!_x(c,e)&&l.page<l.pages&&!(t&&c.some(e=>e.id===t));){let e=await o.comments.browse({page:l.page+1,postId:n.postId,order:s});c=[...c,...e.comments],l=e.meta.pagination}return{comments:c,pagination:l}},_=async(e,t,n,i,a=r.order)=>{let s=t.parent_id,{comments:c,pagination:l}=await g(e,s,n,i,a),u=c;if(s&&!_x(u,e)){let{comments:e}=await o.comments.replies({commentId:s,limit:`all`});u=u.map(t=>t.id===s?{...t,replies:e}:t)}return{comments:u,pagination:l,found:_x(u,e)}},v=async()=>{try{let{member:e,labs:r,supportEmail:i}=await o.init(),{count:a,comments:c,pagination:l}=await f(gx),u=gx,d=c,m=l,h=!1;if(t&&m){let e=await p(t);if(e){let n=await _(t,e,d,m,u);d=n.comments,m=n.pagination,h=n.found}}let g=!!e,v=n.commentsEnabled===`paid`,y=!!e?.paid||!v;s({member:e,initStatus:`success`,comments:d,pagination:m,commentCount:a,order:u,labs:r,commentsIsLoading:!1,commentIdToHighlight:null,commentIdToScrollTo:h?t:null,commentIdFromHash:h?t:null,showMissingCommentNotice:!!t&&!h,supportEmail:i,isMember:g,isPaidOnly:v,hasRequiredTier:y,isCommentingDisabled:e?.can_comment===!1})}catch(e){console.error(`[Comments] Failed to initialize:`,e),s({initStatus:`failed`})}};(0,O.useEffect)(()=>{if(t){v();return}let e=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&(v(),a.current&&e.unobserve(a.current))})},{root:null,rootMargin:`0px`,threshold:.1});return a.current&&e.observe(a.current),()=>{a.current&&e.unobserve(a.current)}},[a.current,t]);let y=r.initStatus===`success`;return(0,m.jsxs)(ae.Provider,{value:u,children:[(0,m.jsx)(X_,{ref:a,children:(0,m.jsx)(W_,{done:y})}),y&&n.adminUrl&&(0,m.jsx)(h,{adminUrl:n.adminUrl,onLoad:d}),(0,m.jsx)(av,{})]})};function yx(){let e=document.currentScript;if(!e)throw Error(`[Comments-UI] Cannot find current script tag`);return e}function bx(e){if(e.previousElementSibling&&e.previousElementSibling.id===`ghost-comments-root`)return e.previousElementSibling;if(!e.parentElement)throw Error(`[Comments-UI] Script tag does not have a parent element`);let t=document.createElement(`div`);return t.id=E_,e.parentElement.insertBefore(t,e),t}function xx(){let e=new URL(window.location.href);e.searchParams.get(`token`)&&(e.searchParams.delete(`token`),window.history.replaceState({},document.title,e.href))}function Sx(){let e=yx(),t=bx(e),n=b(window.location.hash);try{xx(),Ad.render((0,m.jsx)(O.default.StrictMode,{children:(0,m.jsx)(vx,{initialCommentId:n,scriptTag:e})}),t)}catch(e){console.error(e)}}Sx()});
106
+ 3. "-" cannot repeat`);Q.customSchemes.push([e,t])}function dh(){Q.scanner=Um(Q.customSchemes);for(let e=0;e<Q.tokenQueue.length;e++)Q.tokenQueue[e][1]({scanner:Q.scanner});Q.parser=ih(Q.scanner.tokens);for(let e=0;e<Q.pluginQueue.length;e++)Q.pluginQueue[e][1]({scanner:Q.scanner,parser:Q.parser});return Q.initialized=!0,Q}function fh(e){return Q.initialized||dh(),ah(Q.parser.start,e,Wm(Q.scanner.start,e))}fh.scan=Wm;function ph(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 Ym(n),i=fh(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 mh=`[\0- \xA0 ᠎ -\u2029  ]`,hh=new RegExp(mh),gh=RegExp(`${mh}$`),_h=new RegExp(mh,`g`);function vh(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?[`()`,`[]`].includes(e[0].value+e[2].value):!1}function yh(e){return new pr({key:new gr(`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;let{tr:o}=r;if(Wu(Pu(n.doc,[...t])).forEach(({newRange:t})=>{let n=Iu(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(!gh.test(e))return;i=n[0],a=r.doc.textBetween(i.pos,t.to,void 0,` `)}if(i&&a){let t=a.split(hh).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=fh(n).map(t=>t.toObject(e.defaultProtocol));if(!vh(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=>{Gu(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 bh(e){return new pr({key:new gr(`handleClickLink`),props:{handleClick:(t,n,r)=>{if(r.button!==0||!t.editable)return!1;let i=r.target,a=[];for(;i.nodeName!==`DIV`;)a.push(i),i=i.parentNode;if(!a.find(e=>e.nodeName===`A`))return!1;let o=Vu(t.state,e.type.name),s=r.target,c=s?.href??o.href,l=s?.target??o.target;return s&&c?(window.open(c,l),!0):!1}}})}function xh(e){return new pr({key:new gr(`handlePasteLink`),props:{handlePaste:(t,n,r)=>{let{state:i}=t,{selection:a}=i,{empty:o}=a;if(o)return!1;let s=``;r.content.forEach(e=>{s+=e.textContent});let c=ph(s,{defaultProtocol:e.defaultProtocol}).find(e=>e.isLink&&e.value===s);return!s||!c?!1:e.editor.commands.setMark(e.type,{href:c.href})}}})}function Sh(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(_h,``).match(RegExp(`^(?:(?:${n.join(`|`)}):|[^a-z]|[a-z0-9+.\-]+(?:[^a-z+.\-:]|$))`,`i`))}var Ch=dl.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`){uh(e);return}uh(e.scheme,e.optionalSlashes)})},onDestroy(){lh()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:`http`,HTMLAttributes:{target:`_blank`,rel:`noopener noreferrer nofollow`,class:null},isAllowedUri:(e,t)=>!!Sh(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>!!e}},addAttributes(){return{href:{default:null,parseHTML(e){return e.getAttribute(`href`)}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:`a[href]`,getAttrs:e=>{let t=e.getAttribute(`href`);return!t||!this.options.isAllowedUri(t,{defaultValidate:e=>!!Sh(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=>!!Sh(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?[`a`,Gc(this.options.HTMLAttributes,e),0]:[`a`,Gc(this.options.HTMLAttributes,{...e,href:``}),0]},addCommands(){return{setLink:e=>({chain:t})=>{let{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:e=>!!Sh(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 this.options.isAllowedUri(n,{defaultValidate:e=>!!Sh(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta(`preventAutolink`,!0).run():!1},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta(`preventAutolink`,!0).run()}},addPasteRules(){return[wd({find:e=>{let t=[];if(e){let{protocols:n,defaultProtocol:r}=this.options,i=ph(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!Sh(e,n),protocols:n,defaultProtocol:r}));i.length&&i.forEach(e=>t.push({text:e.value,data:{href:e.href},index:e.start}))}return t},type:this.type,getAttributes:e=>({href:e.data?.href})})]},addProseMirrorPlugins(){let e=[],{protocols:t,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(yh({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!Sh(e,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&e.push(bh({type:this.type})),this.options.linkOnPaste&&e.push(xh({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),e}}),wh=Cd.create({name:`paragraph`,priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:`block`,content:`inline*`,parseHTML(){return[{tag:`p`}]},renderHTML({HTMLAttributes:e}){return[`p`,Gc(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),Th=xl.create({name:`placeholder`,addOptions(){return{emptyEditorClass:`is-editor-empty`,emptyNodeClass:`is-empty`,placeholder:`Write something …`,showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new pr({key:new gr(`placeholder`),props:{decorations:({doc:e,selection:t})=>{let n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=t,i=[];if(!n)return null;let a=this.editor.isEmpty;return e.descendants((e,t)=>{let n=r>=t&&r<=t+e.nodeSize,o=!e.isLeaf&&Xu(e);if((n||!this.options.showOnlyCurrent)&&o){let r=[this.options.emptyNodeClass];a&&r.push(this.options.emptyEditorClass);let o=Ko.node(t,t+e.nodeSize,{class:r.join(` `),"data-placeholder":typeof this.options.placeholder==`function`?this.options.placeholder({editor:this.editor,node:e,pos:t,hasAnchor:n}):this.options.placeholder});i.push(o)}return this.options.includeChildren}),Yo.create(e,i)}}})]}}),Eh=Cd.create({name:`text`,group:`inline`});function Dh({placeholder:e,autofocus:t=!1,content:n=``}){return{extensions:[lp,Eh,wh,Ch.configure({openOnClick:!1}),Th.configure({placeholder:e,showOnlyWhenEditable:!1}),cp.configure({}),up.configure({})],content:n,autofocus:t,editorProps:{attributes:{class:`gh-comment-content focus:outline-0`,"data-testid":`editor`}},parseOptions:{preserveWhitespace:`full`}}}function Oh(e,t){let n=(0,k.useRef)(null);return[n,(0,k.useCallback)(r=>{n.current&&t&&t(n.current),r&&e&&e(r),n.current=r},[e,t])]}function kh(e){let{popup:t}=j();return t?.type===e}function Ah(e){let{t}=j();return(0,k.useMemo)(()=>x(e,t),[e])}function jh(e,t=!1){let[n,r]=(0,k.useState)(t),i=(0,k.useMemo)(()=>({...Dh(e)}),[e]),a=$d(i,[i]);return(0,k.useEffect)(()=>{if(a){let e=()=>{let e=!a.isEmpty;r(e)};return a.on(`update`,e),a.on(`transaction`,e),e(),()=>{a.off(`update`,e),a.off(`transaction`,e)}}},[a]),{editor:a,hasContent:n}}function Mh(e,t){let n=(0,k.useCallback)(()=>{if(e.current)for(let n of Object.values(t))e.current.classList.add(...n.default.split(` `)),e.current.classList.remove(...n.outOfViewport.split(` `))},[e,t]),r=(0,k.useCallback)(n=>{if(e.current)for(let[r,i]of Object.entries(t))n[r]?(e.current.classList.add(...i.outOfViewport.split(` `)),e.current.classList.remove(...i.default.split(` `))):(e.current.classList.add(...i.default.split(` `)),e.current.classList.remove(...i.outOfViewport.split(` `)))},[e,t]),i=(0,k.useCallback)(()=>{if(e.current){let t=e.current.ownerDocument,i=t.defaultView||window;n();let a=e.current.getBoundingClientRect(),o={top:a.top<0,bottom:a.bottom>(i.innerHeight||t.documentElement.clientHeight),left:a.left<0,right:a.right>(i.innerWidth||t.documentElement.clientWidth)};r(o)}},[e]);(0,k.useLayoutEffect)(()=>{i()},[e]),(0,k.useEffect)(()=>(window.addEventListener(`resize`,i),()=>{window.removeEventListener(`resize`,i)}),[])}var Nh=({comment:e,submit:t,progress:n,setProgress:r,close:i,isOpen:a,editor:o,submitText:s,submitSize:c,openForm:l})=>{let{dispatchAction:u,t:d}=j(),f=null;(0,k.useEffect)(()=>{if(o&&l){let t=()=>{let t=e&&l.type===`edit`?o.getHTML()!==e.html:!o.isEmpty;l.hasUnsavedChanges!==t&&u(`setCommentFormHasUnsavedChanges`,{id:l.id,hasUnsavedChanges:t})};return o.on(`update`,t),o.on(`transaction`,t),t(),()=>{o.off(`update`,t),o.off(`transaction`,t)}}},[o,e,l,u]),n===`sending`&&(f=(0,p.jsx)(se,{className:`size-[24px] fill-white`,"data-testid":`button-spinner`}));let m=(0,k.useCallback)(e=>{if(o?.isFocused){e.stopPropagation();return}},[o]),h=(0,k.useCallback)(async()=>{if(!(!o||o.isEmpty)){r(`sending`);try{await t({html:o.getHTML()})}catch{r(`error`);return}return i?i():(r(`sent`),o.chain().clearContent().blur().run()),!1}},[r,o,t,i]);return(0,k.useEffect)(()=>{let e=e=>{if(e.metaKey||e.ctrlKey){e.key===`Enter`&&o?.isFocused&&(h(),o?.commands.blur());return}if(e.key===`Escape`){o?.isFocused&&(i?i():o?.commands.blur());return}};return window.addEventListener(`keydown`,e,{passive:!0}),()=>{window.removeEventListener(`keydown`,e)}},[o,i,h]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`div`,{className:`min-h-[120px] w-full rounded-lg border border-black/10 bg-white/75 p-2 pb-[68px] font-sans text-md leading-normal transition-all delay-100 duration-150 focus:outline-0 dark:bg-white/10 dark:text-neutral-300 sm:px-3 sm:text-lg ${a?`cursor-text`:`cursor-pointer`}`,"data-testid":`form-editor`,children:(0,p.jsx)(Bd,{editor:o,onMouseDown:m,onTouchStart:m})}),(0,p.jsxs)(`div`,{className:`absolute bottom-1 right-1 flex space-x-4 transition-[opacity] duration-150 sm:bottom-2 sm:right-2`,children:[i&&(0,p.jsx)(`button`,{className:`ml-2.5 font-sans text-sm font-medium text-neutral-900/50 outline-0 transition-all hover:text-neutral-900/70 dark:text-white/60 dark:hover:text-white/75`,type:`button`,onClick:i,children:d(`Cancel`)}),(0,p.jsxs)(`button`,{className:`flex w-auto items-center justify-center ${c===`medium`&&`sm:min-w-[100px]`} ${c===`small`&&`sm:min-w-[64px]`} h-[40px] rounded-md bg-[var(--gh-accent-color)] px-3 py-2 text-center font-sans text-base font-medium text-white outline-0 transition-colors duration-200 hover:brightness-105 disabled:bg-black/5 disabled:text-neutral-900/30 dark:disabled:bg-white/15 dark:disabled:text-white/35 sm:text-sm`,"data-testid":`submit-form-button`,disabled:!o||o.isEmpty,type:`button`,onClick:h,children:[f&&(0,p.jsx)(`span`,{className:`mr-1`,children:f}),s&&(0,p.jsx)(`span`,{children:s})]})]})]})},Ph=({show:e,name:t,expertise:n,replyingToText:r,editName:i,editExpertise:a})=>{let{t:o}=j(),s=!!r;return(0,p.jsxs)(op,{"data-testid":`form-header`,enter:`transition duration-500 delay-100 ease-in-out`,enterFrom:`opacity-0 -translate-x-2`,enterTo:`opacity-100 translate-x-0`,leave:`transition-none duration-0`,leaveFrom:`opacity-100`,leaveTo:`opacity-0`,show:e,children:[(0,p.jsxs)(`div`,{className:`flex flex-wrap`,children:[(0,p.jsx)(`div`,{className:`w-full font-sans text-base font-bold leading-snug text-neutral-900 dark:text-white/85 sm:w-auto sm:text-sm`,"data-testid":`member-name`,onMouseDown:i,children:t||`Anonymous`}),(0,p.jsx)(`div`,{className:`flex items-baseline justify-start`,children:(0,p.jsxs)(`button`,{className:`group flex items-center justify-start whitespace-nowrap text-left font-sans text-base leading-snug text-neutral-900/50 transition duration-150 hover:text-black/75 dark:text-white/60 dark:hover:text-white/75 sm:text-sm ${!n&&`text-black/30 hover:text-black/50 dark:text-white/30 dark:hover:text-white/50`}`,"data-testid":`expertise-button`,type:`button`,onMouseDown:a,children:[(0,p.jsxs)(`span`,{children:[(0,p.jsx)(`span`,{className:`mx-[0.3em] hidden sm:inline`,children:`·`}),n||o(`Add your expertise`)]}),n&&(0,p.jsx)(oe,{className:`ml-1 size-[12px] translate-x-[-6px] stroke-black/50 opacity-0 transition-all duration-100 ease-out group-hover:translate-x-0 group-hover:stroke-black/75 group-hover:opacity-100 dark:stroke-white/60 dark:group-hover:stroke-white/75`})]})})]}),s&&(0,p.jsxs)(`div`,{className:`mt-0.5 line-clamp-1 font-sans text-base leading-snug text-neutral-900/50 dark:text-white/60 sm:text-sm`,"data-testid":`replying-to`,children:[(0,p.jsxs)(`span`,{children:[o(`Reply to`),`:`]}),`\xA0`,(0,p.jsx)(`span`,{className:`font-semibold text-neutral-900/60 dark:text-white/70`,children:r})]})]})},Fh=({comment:e,submit:t,submitText:n,submitSize:r,close:i,editor:a,reduced:o,isOpen:s,openForm:c})=>{let{member:l}=j(),u=kh(`addDetailsPopup`),[d,f]=(0,k.useState)(`default`),m=(0,k.useRef)(null),h=l?.name;(d===`sending`||h&&u)&&(s=!0);let g=e=>{if(a?.isFocused){e.preventDefault();return}};return(0,k.useEffect)(()=>{a&&a.setEditable(!!h&&d!==`sending`)},[a,h,d]),(0,p.jsx)(`form`,{ref:m,"data-testid":`form`,onMouseDown:g,onTouchStart:g,children:(0,p.jsx)(Nh,{close:i,comment:e,editor:a,isOpen:s,openForm:c,progress:d,reduced:o,setProgress:f,submit:t,submitSize:r,submitText:n})})},Ih=({editor:e,isOpen:t,reduced:n,openForm:r,layoutVariant:i=`main`,children:a})=>{let o=i===`reply`,{member:s,dispatchAction:c}=j(),l=s?.name,u=s?.expertise,d=``;t&&(d=r?.in_reply_to_snippet?`pl-[1px] pt-[68px] sm:pl-[44px] sm:pt-[56px]`:`pl-[1px] pt-[48px] sm:pl-[44px] sm:pt-[40px]`);let f=(0,k.useCallback)(t=>{e?.commands?.blur(),c(`openPopup`,{type:`addDetailsPopup`,expertiseAutofocus:t.expertiseAutofocus??!1,callback:function(t){e&&t&&(e.setEditable(!0),e.commands.focus())}})},[e,c]),m=(0,k.useCallback)(()=>{f({expertiseAutofocus:!1})},[f]),h=(0,k.useCallback)(()=>{f({expertiseAutofocus:!0})},[f]),g=(0,k.useCallback)(()=>{if(e&&!e.isFocused){if(!l){m();return}e.commands.focus()}},[e,m,l]);return(0,p.jsx)(`div`,{className:`${o?``:`-mx-2 mt-[-10px]`} rounded-md transition duration-200 ${t?`cursor-default`:`cursor-pointer`}`,children:(0,p.jsxs)(`div`,{className:`relative w-full`,onClick:g,children:[(0,p.jsx)(`div`,{className:`pr-[1px] font-sans leading-normal dark:text-neutral-300`,children:(0,p.jsx)(`div`,{className:`relative mb-7 w-full pl-[40px] transition-[padding] delay-100 duration-150 sm:pl-[44px] ${n&&`pl-0`} ${d}`,children:a})}),(0,p.jsxs)(`div`,{className:`absolute left-0 flex h-11 w-full items-start justify-start sm:h-12 ${o?`top-0`:`top-1`}`,children:[(0,p.jsx)(`div`,{className:`pointer-events-none mr-2 grow-0 sm:mr-3`,children:(0,p.jsx)(de,{member:s})}),(0,p.jsx)(`div`,{className:`grow-1 mt-0.5 w-full`,children:(0,p.jsx)(Ph,{editExpertise:h,editName:m,expertise:u,name:l,replyingToId:r?.in_reply_to_id,replyingToText:r?.in_reply_to_snippet,show:t})})]})]})})},Lh=({comment:e,openForm:t,parent:n})=>{let{dispatchAction:r,t:i}=j(),{editor:a}=jh((0,k.useMemo)(()=>({placeholder:i(`Edit this comment`),autofocus:!1,content:e.html??void 0}),[e]));(0,k.useEffect)(()=>{a&&a.chain().focus().command(({tr:e,commands:t})=>t.setTextSelection({from:e.doc.content.size,to:e.doc.content.size})).run()},[a]);let o=(0,k.useCallback)(async({html:t})=>{await r(`editComment`,{comment:{id:e.id,html:t},parent:n})},[n,e,r]);return(0,p.jsx)(`div`,{className:`relative w-full`,children:(0,p.jsx)(Fh,{close:(0,k.useCallback)(()=>{r(`closeCommentForm`,t.id)},[r,t]),comment:e,editor:a,isOpen:!0,openForm:t,reduced:E(),submit:o,submitSize:`small`,submitText:i(`Save`)})})},Rh=e=>(0,p.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,p.jsx)(`path`,{d:`M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z`}),(0,p.jsx)(`path`,{d:`M17 14V2`})]}),zh=e=>(0,p.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,p.jsx)(`path`,{d:`M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z`}),(0,p.jsx)(`path`,{d:`M7 10v12`})]}),Bh=({comment:e,disabled:t,setDisabled:n})=>{let{dispatchAction:r,isMember:i,hasRequiredTier:a,t:o}=j(),[s,c]=(0,k.useState)(``),[l,u]=(0,k.useState)(!1),d=i&&a,f=e.count.likes,m=t??l,h=n??u,g=()=>{r(`openPopup`,{type:`ctaPopup`,commentId:e.id})};return(0,p.jsxs)(`button`,{"aria-label":e.liked?o(`Remove like`):o(`Like`),className:`duration-50 group flex cursor-pointer items-center gap-1.5 font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${e.liked?`text-black/90 dark:text-white/90`:`text-black/50 hover:text-black/75 dark:text-white/60 dark:hover:text-white/75`}`,"data-testid":`like-button`,disabled:m,type:`button`,onClick:async()=>{if(!d){g();return}h(!0);try{e.liked?await r(`unlikeComment`,e):(await r(`likeComment`,e),c(`animate-heartbeat`),setTimeout(()=>{c(``)},400))}finally{h(!1)}},children:[(0,p.jsx)(zh,{className:s+` h-4 w-4 ${e.liked?`fill-black dark:fill-white stroke-black dark:stroke-white`:`stroke-black/50 group-hover:stroke-black/75 dark:stroke-white/60 dark:group-hover:stroke-white/75`} ${!e.liked&&d&&`group-hover:stroke-black/75 dark:group-hover:stroke-white/75`} transition duration-50 ease-linear`}),(0,p.jsx)(`span`,{className:`tabular-nums`,children:f})]})},Vh=({comment:e,disabled:t,setDisabled:n})=>{let{dispatchAction:r,isMember:i,hasRequiredTier:a,t:o}=j(),[s,c]=(0,k.useState)(``),[l,u]=(0,k.useState)(!1),d=i&&a,f=t??l,m=n??u,h=()=>{r(`openPopup`,{type:`ctaPopup`,commentId:e.id})};return(0,p.jsx)(`button`,{"aria-label":e.disliked?o(`Remove dislike`):o(`Dislike`),className:`duration-50 group flex cursor-pointer items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${e.disliked?`text-black/90 dark:text-white/90`:`text-black/50 hover:text-black/75 dark:text-white/60 dark:hover:text-white/75`}`,"data-testid":`dislike-button`,disabled:f,type:`button`,onClick:async()=>{if(!d){h();return}m(!0);try{e.disliked?await r(`undislikeComment`,e):(await r(`dislikeComment`,e),c(`animate-heartbeat`),setTimeout(()=>{c(``)},400))}finally{m(!1)}},children:(0,p.jsx)(Rh,{className:s+` h-4 w-4 ${e.disliked?`fill-black dark:fill-white stroke-black dark:stroke-white`:`stroke-black/50 group-hover:stroke-black/75 dark:stroke-white/60 dark:group-hover:stroke-white/75`} ${!e.disliked&&d&&`group-hover:stroke-black/75 dark:group-hover:stroke-white/75`} transition duration-50 ease-linear`})})},Hh=({count:e,liked:t})=>(0,p.jsxs)(`div`,{className:`flex items-center gap-1.5`,"data-testid":`like-count`,children:[(0,p.jsx)(zh,{className:`size-4 ${t?`fill-black stroke-black dark:fill-white dark:stroke-white`:`stroke-black/50 dark:stroke-white/60`}`}),(0,p.jsx)(`span`,{className:`font-sans text-base tabular-nums sm:text-sm ${t?`text-black/90 dark:text-white/90`:`text-black/50 dark:text-white/60`}`,children:e})]}),Uh=e=>(0,p.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,p.jsx)(`path`,{d:`M15 3h6v6`}),(0,p.jsx)(`path`,{d:`M10 14 21 3`}),(0,p.jsx)(`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`})]}),Wh=e=>(0,p.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,p.jsx)(`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`}),(0,p.jsx)(`circle`,{cx:12,cy:12,r:3})]}),Gh=e=>(0,p.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,p.jsx)(`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`}),(0,p.jsx)(`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`}),(0,p.jsx)(`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`}),(0,p.jsx)(`path`,{d:`m2 2 20 20`})]}),Kh=e=>(0,p.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,p.jsx)(`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`}),(0,p.jsx)(`path`,{d:`m15 5 4 4`})]}),qh=e=>(0,p.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,p.jsx)(`path`,{d:`M12 17v5`}),(0,p.jsx)(`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`})]}),Jh=e=>(0,p.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,p.jsx)(`path`,{d:`M12 17v5`}),(0,p.jsx)(`path`,{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`}),(0,p.jsx)(`path`,{d:`m2 2 20 20`}),(0,p.jsx)(`path`,{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`})]}),Yh=e=>(0,p.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,p.jsx)(`path`,{d:`M10 11v6`}),(0,p.jsx)(`path`,{d:`M14 11v6`}),(0,p.jsx)(`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`}),(0,p.jsx)(`path`,{d:`M3 6h18`}),(0,p.jsx)(`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`})]}),Xh=({comment:e,close:t,showAuthorActions:n=!1,toggleEdit:r})=>{let{dispatchAction:i,t:a,adminUrl:o}=j(),s=e=>()=>{e(),t()},c=r&&s(r),l=s(()=>{i(`openPopup`,{type:`deletePopup`,comment:e})}),u=s(()=>i(`hideComment`,e)),d=s(()=>i(`showComment`,e)),f=s(()=>i(`pinComment`,e)),m=s(()=>i(`unpinComment`,e)),h=e.status!==`published`,g=!e.parent_id&&e.status!==`deleted`,_=o?`${o}#/comments/?id=is:${e.id}`:null,v=`flex w-full items-center gap-3 rounded px-3 py-2 text-left text-[14px] leading-5 transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700`,y=`${v} text-neutral-900 dark:text-white`,b=`${v} text-red-600 dark:text-red-500`,x=`size-4 shrink-0`;return(0,p.jsxs)(`div`,{className:`flex w-full flex-col gap-0.5`,children:[_&&(0,p.jsxs)(`a`,{className:y,"data-testid":`view-in-admin-button`,href:_,rel:`noopener noreferrer`,target:`_blank`,onClick:t,children:[(0,p.jsx)(Uh,{"aria-hidden":`true`,className:x}),(0,p.jsx)(`span`,{children:a(`View in admin`)})]}),g&&(e.pinned?(0,p.jsxs)(`button`,{className:y,"data-testid":`unpin-button`,type:`button`,onClick:m,children:[(0,p.jsx)(Jh,{"aria-hidden":`true`,className:x}),(0,p.jsx)(`span`,{children:a(`Unpin comment`)})]}):(0,p.jsxs)(`button`,{className:y,"data-testid":`pin-button`,type:`button`,onClick:f,children:[(0,p.jsx)(qh,{"aria-hidden":`true`,className:x}),(0,p.jsx)(`span`,{children:a(`Pin comment`)})]})),h?(0,p.jsxs)(`button`,{className:y,"data-testid":`show-button`,type:`button`,onClick:d,children:[(0,p.jsx)(Wh,{"aria-hidden":`true`,className:x}),(0,p.jsx)(`span`,{children:a(`Show comment`)})]}):(0,p.jsxs)(`button`,{className:y,"data-testid":`hide-button`,type:`button`,onClick:u,children:[(0,p.jsx)(Gh,{"aria-hidden":`true`,className:x}),(0,p.jsx)(`span`,{children:a(`Hide comment`)})]}),n&&(0,p.jsx)(`div`,{className:`my-1 border-t border-neutral-200 dark:border-neutral-700`}),n&&c&&(0,p.jsxs)(`button`,{className:y,"data-testid":`edit`,type:`button`,onClick:c,children:[(0,p.jsx)(Kh,{"aria-hidden":`true`,className:x}),(0,p.jsx)(`span`,{children:a(`Edit`)})]}),n&&(0,p.jsxs)(`button`,{className:b,"data-testid":`delete`,type:`button`,onClick:l,children:[(0,p.jsx)(Yh,{"aria-hidden":`true`,className:x}),(0,p.jsx)(`span`,{children:a(`Delete`)})]})]})},Zh=({comment:e,close:t,toggleEdit:n})=>{let{dispatchAction:r,t:i}=j(),a=()=>{r(`openPopup`,{type:`deletePopup`,comment:e}),t()},o=`flex w-full items-center gap-3 rounded px-3 py-2 text-left text-[14px] leading-5 transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700`,s=`${o} text-neutral-900 dark:text-white`,c=`${o} text-red-600 dark:text-red-500`,l=`size-4 shrink-0`;return(0,p.jsxs)(`div`,{className:`flex w-full flex-col gap-0.5`,children:[(0,p.jsxs)(`button`,{className:s,"data-testid":`edit`,type:`button`,onClick:n,children:[(0,p.jsx)(Kh,{"aria-hidden":`true`,className:l}),(0,p.jsx)(`span`,{children:i(`Edit`)})]}),(0,p.jsxs)(`button`,{className:c,"data-testid":`delete`,type:`button`,onClick:a,children:[(0,p.jsx)(Yh,{"aria-hidden":`true`,className:l}),(0,p.jsx)(`span`,{children:i(`Delete`)})]})]})},Qh=e=>(0,p.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:(0,p.jsx)(`path`,{d:`M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`})}),$h=({comment:e,close:t})=>{let{dispatchAction:n,t:r}=j();return(0,p.jsx)(`div`,{className:`flex w-full flex-col gap-0.5`,children:(0,p.jsxs)(`button`,{className:`flex w-full items-center gap-3 rounded px-3 py-2 text-left text-[14px] leading-5 text-neutral-900 transition-colors hover:bg-neutral-100 dark:text-white dark:hover:bg-neutral-700`,type:`button`,onClick:()=>{n(`openPopup`,{type:`reportPopup`,comment:e}),t()},children:[(0,p.jsx)(Qh,{"aria-hidden":`true`,className:`size-4 shrink-0`}),(0,p.jsx)(`span`,{className:`hidden sm:inline`,children:r(`Report comment`)}),(0,p.jsx)(`span`,{className:`sm:hidden`,children:r(`Report`)})]})})},eg=({comment:e,close:t,toggleEdit:n})=>{let{member:r,isAdmin:i}=j(),a=r&&e.member?.uuid===r?.uuid,o=(0,k.useRef)(null),s=(0,k.useRef)(null);Mh(s,{bottom:{default:`top-0`,outOfViewport:`bottom-full mb-6`}}),(0,k.useEffect)(()=>{let e=()=>{t()};window.addEventListener(`click`,e,{passive:!0});let n=o.current?.ownerDocument?.defaultView;return n&&n!==window&&n.addEventListener(`click`,e,{passive:!0}),()=>{window.removeEventListener(`click`,e),n&&n!==window&&n.removeEventListener(`click`,e)}},[t]),(0,k.useEffect)(()=>{let e=e=>{e.key===`Escape`&&t()};return window.addEventListener(`keydown`,e,{passive:!0}),()=>{window.removeEventListener(`keydown`,e)}},[t]);let c=e=>{e.stopPropagation()},l=null;if(e.status===`published`)l=i?(0,p.jsx)(Xh,{close:t,comment:e,showAuthorActions:!!a,toggleEdit:n}):a?(0,p.jsx)(Zh,{close:t,comment:e,toggleEdit:n}):(0,p.jsx)($h,{close:t,comment:e});else if(i)l=(0,p.jsx)(Xh,{close:t,comment:e});else return null;return(0,p.jsx)(`div`,{ref:o,className:`relative`,"data-testid":`comment-context-menu`,onClick:c,children:(0,p.jsx)(`div`,{ref:s,className:`absolute z-10 w-52 rounded-lg bg-white p-1 font-sans text-sm shadow-lg outline-0 dark:bg-neutral-800 dark:text-white`,"data-testid":`comment-context-menu-inner`,children:l})})},tg=e=>(0,p.jsxs)(`svg`,{width:16,height:16,viewBox:`0 0 16 16`,fill:`black`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,p.jsx)(`path`,{d:`M3 12C3.82843 12 4.5 11.3284 4.5 10.5C4.5 9.67157 3.82843 9 3 9C2.17157 9 1.5 9.67157 1.5 10.5C1.5 11.3284 2.17157 12 3 12Z`}),(0,p.jsx)(`path`,{d:`M8 12C8.82843 12 9.5 11.3284 9.5 10.5C9.5 9.67157 8.82843 9 8 9C7.17157 9 6.5 9.67157 6.5 10.5C6.5 11.3284 7.17157 12 8 12Z`}),(0,p.jsx)(`path`,{d:`M13 12C13.8284 12 14.5 11.3284 14.5 10.5C14.5 9.67157 13.8284 9 13 9C12.1716 9 11.5 9.67157 11.5 10.5C11.5 11.3284 12.1716 12 13 12Z`})]}),ng=({comment:e,toggleEdit:t})=>{let[n,r]=(0,k.useState)(!1);return(0,p.jsxs)(`div`,{"data-testid":`more-button`,children:[(0,p.jsx)(`button`,{className:`outline-0`,type:`button`,onClick:()=>{r(e=>!e)},children:(0,p.jsx)(tg,{className:`duration-50 gh-comments-icon gh-comments-icon-more outline-0 transition ease-linear hover:fill-black/75 dark:hover:fill-white/75 ${n?`fill-black/75 dark:fill-white/75`:`fill-black/50 dark:fill-white/60`}`})}),n?(0,p.jsx)(eg,{close:()=>{r(!1)},comment:e,toggleEdit:t}):null]})},rg=({comment:e})=>{let{dispatchAction:t,isAdmin:n,t:r}=j();if(!e.pinned)return null;let i=`inline-flex items-center gap-1 rounded-full border border-amber-300/70 bg-amber-50 px-2 py-0.5 font-sans text-xs font-medium leading-none text-amber-800 dark:border-amber-400/30 dark:bg-amber-400/10 dark:text-amber-100`;return n?(0,p.jsxs)(`button`,{"aria-label":r(`Unpin comment`),className:`${i} group hover:border-amber-400 hover:bg-amber-100 dark:hover:border-amber-400/50 dark:hover:bg-amber-400/20`,"data-testid":`pinned-comment-label`,type:`button`,onClick:n=>{n.stopPropagation(),t(`unpinComment`,e)},children:[(0,p.jsxs)(`span`,{className:`grid size-3 shrink-0`,children:[(0,p.jsx)(qh,{"aria-hidden":`true`,className:`col-start-1 row-start-1 size-3 group-hover:opacity-0 group-focus-visible:opacity-0`}),(0,p.jsx)(Jh,{"aria-hidden":`true`,className:`col-start-1 row-start-1 size-3 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100`})]}),(0,p.jsxs)(`span`,{className:`grid justify-items-start text-left`,children:[(0,p.jsx)(`span`,{className:`col-start-1 row-start-1 group-hover:opacity-0 group-focus-visible:opacity-0`,children:r(`Pinned`)}),(0,p.jsx)(`span`,{className:`col-start-1 row-start-1 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100`,children:r(`Unpin`)})]})]}):(0,p.jsxs)(`span`,{className:i,"data-testid":`pinned-comment-label`,children:[(0,p.jsx)(qh,{"aria-hidden":`true`,className:`size-3`}),r(`Pinned`)]})},ig=({loadMore:e,count:t})=>{let{t:n}=j(),r=t===1?n(`Show 1 more reply`):n(`Show {amount} more replies`,{amount:b(t)}),i=n(`{amount} more`,{amount:b(t)});return(0,p.jsx)(`div`,{className:`flex w-full items-center justify-start`,"data-testid":`replies-pagination`,children:(0,p.jsx)(`button`,{className:`group mb-10 ml-[48px] flex w-auto items-center px-0 pb-2 pt-0 text-left font-sans text-md font-semibold text-neutral-700 dark:text-white sm:mb-12 `,"data-testid":`reply-pagination-button`,type:`button`,onClick:e,children:(0,p.jsxs)(`span`,{className:`flex h-[40px] w-auto items-center justify-center whitespace-nowrap rounded-[6px] bg-black/5 px-4 py-2 text-center font-sans text-sm font-semibold text-neutral-700 outline-0 transition-all duration-150 hover:bg-black/10 dark:bg-white/15 dark:text-neutral-300 dark:hover:bg-white/20 dark:hover:text-neutral-100`,children:[`↓ `,(0,p.jsx)(`span`,{className:`ml-1 hidden sm:inline`,children:r}),(0,p.jsx)(`span`,{className:`ml-1 inline sm:hidden`,children:i}),` `]})})})},ag=3,og=({comment:e})=>{let{commentIdToScrollTo:t}=j(),n=(0,k.useRef)(new Set(e.replies.map(e=>e.id))),[r,i]=(0,k.useState)(()=>!!t&&e.replies.slice(ag).some(e=>e.id===t)),a=e.replies.some(e=>!n.current.has(e.id)),o=r||a?e.replies:e.replies.slice(0,ag),s=e.replies.length-o.length;return(0,p.jsxs)(`div`,{children:[o.map((t,n)=>(0,p.jsx)(bg,{comment:t,isLastSibling:n===o.length-1,layoutVariant:`reply`,parent:e},t.id)),s>0&&(0,p.jsx)(ig,{count:s,loadMore:()=>{i(!0)}})]})},sg=e=>(0,p.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,stroke:`black`,width:16,height:16,viewBox:`0 0 16 16`,...e,children:(0,p.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:1.3,d:`M1.333 7.206 6.539 2v3.254c3.645 0 8.461 1.432 8.461 7.81-1.757-2.994-3.58-3.905-8.46-3.905v3.254L1.332 7.206Z`})}),cg=({comment:e,disabled:t,isReplying:n,openReplyForm:r})=>{let{t:i,dispatchAction:a,isMember:o,hasRequiredTier:s}=j(),c=o&&s;return(0,p.jsxs)(`button`,{className:`duration-50 group flex items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${n?`text-black/90 dark:text-white/90`:`text-black/50 hover:text-black/75 dark:text-white/60 dark:hover:text-white/75`}`,"data-testid":`reply-button`,disabled:!!t,type:`button`,onClick:()=>{if(!c){a(`openPopup`,{type:`ctaPopup`,commentId:e.id});return}r()},children:[(0,p.jsx)(sg,{className:`mr-[6px] ${n?`fill-black dark:fill-white`:`stroke-black/50 group-hover:stroke-black/75 dark:stroke-white/60 dark:group-hover:stroke-white/75`} duration-50 transition ease-linear`}),i(`Reply`)]})},lg=({openForm:e,parent:t})=>{let{postId:n,dispatchAction:r,t:i}=j(),[,a]=Oh(O),{editor:o}=jh((0,k.useMemo)(()=>({placeholder:i(`Reply to comment`),autofocus:!0}),[])),s=(0,k.useCallback)(async({html:i})=>{await r(`addReply`,{parent:t,reply:{post_id:n,in_reply_to_id:e.in_reply_to_id,status:`published`,html:i}})},[t,n,e,r]),c=(0,k.useCallback)(()=>{r(`closeCommentForm`,e.id)},[r,e]),l=(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`span`,{className:`hidden sm:inline`,children:i(`Add reply`)}),(0,p.jsx)(`span`,{className:`sm:hidden`,children:i(`Reply`)})]});return(0,p.jsx)(`div`,{ref:a,"data-testid":`reply-form`,children:(0,p.jsx)(`div`,{className:`pr-2`,children:(0,p.jsx)(Ih,{editor:o,isOpen:!0,layoutVariant:`reply`,openForm:e,reduced:E(),children:(0,p.jsx)(Fh,{close:c,editor:o,isOpen:!0,openForm:e,reduced:E(),submit:s,submitSize:`medium`,submitText:l})})})})},ug=(0,k.createContext)({requestFocusedThreadView:()=>{},requestInstantScroll:()=>{},navigateBackToParent:()=>{}});function dg(){return(0,k.useContext)(ug)}var fg=(0,k.createContext)({maxThreadDepth:4});function pg(){return(0,k.useContext)(fg)}var mg=({reply:e,threadParentComment:t,depth:n})=>{let{t:r}=j(),{requestFocusedThreadView:i}=dg(),{maxThreadDepth:a}=pg(),o=e.nestedReplies.length>0,s=n>=a,c=e.siblingIndex===e.siblingCount-1,l=e.nestedReplies[0],u=null;return o&&!s?u=e.nestedReplies.map(e=>(0,p.jsx)(mg,{depth:n+1,reply:e,threadParentComment:t},e.id)):o&&s&&(u=(0,p.jsxs)(`a`,{className:`relative mb-4 flex min-h-10 items-center gap-1.5 px-0 pl-1 font-sans text-[1.3rem] font-semibold text-neutral-900/55 transition-colors hover:text-neutral-900/80 dark:text-white/45 dark:hover:text-white/70`,"data-testid":`continue-thread-button`,href:_(l.id),target:`_parent`,onClick:()=>i(l.id),children:[(0,p.jsx)(`span`,{className:`pointer-events-none absolute -left-4 top-0 h-5 w-3 border-b border-l border-neutral-300 [border-bottom-left-radius:12px_16px] dark:border-neutral-700 sm:-left-5 sm:w-4 sm:[border-bottom-left-radius:16px_16px]`,"aria-hidden":!0}),(0,p.jsxs)(`span`,{children:[r(`Read more replies`),` ›`]})]})),(0,p.jsx)(bg,{comment:e,isLastSibling:c,layoutVariant:`reply`,parent:t,children:u})},hg=({replies:e,threadParentComment:t,startDepth:n=1})=>(0,p.jsx)(p.Fragment,{children:e.map(e=>(0,p.jsx)(mg,{depth:n,reply:e,threadParentComment:t},e.id))});function gg(e){let t=e.replies||[],n=new Map,r=new Map,i=new Map;t.forEach(e=>{n.set(e.id,{...e,depth:1,nestedReplies:[],siblingIndex:0,siblingCount:0})});let a=[];t.forEach(e=>{let t=n.get(e.id);if(!t)return;let i=e.in_reply_to_id?n.get(e.in_reply_to_id):null;i&&i.id!==t.id?(r.set(t.id,i.id),i.nestedReplies.push(t)):(r.set(t.id,null),a.push(t))});let o=(e,t)=>{e.forEach((n,r)=>{n.depth=t,n.siblingIndex=r,n.siblingCount=e.length,i.set(n.id,t),o(n.nestedReplies,t+1)})};o(a,1);let s=e=>n.get(e),c=(e,t)=>{let i=e;for(;i.depth>t;){let e=r.get(i.id),t=e?n.get(e):null;if(!t)return i;i=t}return i};return{rootComment:e,roots:a,getWindowForComment:(t,n)=>{let r=s(t);if(!r||r.depth<=n)return null;let i=Math.floor((r.depth-1)/n)*n,a=c(r,i);return{topLevelComment:e,focusedComment:a,backComment:a}}}}function _g(e){return gg(e).roots}function vg(e,t,n){if(!t)return null;for(let r of e){if(r.id===t)return null;if(r.replies?.some(e=>e.id===t))return gg(r).getWindowForComment(t,n)}return null}var yg=({comment:e})=>(0,p.jsx)(`div`,{children:(0,p.jsx)(hg,{replies:(0,k.useMemo)(()=>_g(e),[e]),threadParentComment:e})}),bg=({children:e,comment:t,parent:n,layoutVariant:r,isLastSibling:i})=>{let{commentsIsLoading:a}=j();return(0,p.jsx)(op,{className:`${a?`animate-pulse`:``}`,"data-testid":`animated-comment`,enter:`transition-opacity duration-300 ease-out`,enterFrom:`opacity-0`,enterTo:`opacity-100`,leave:`transition-opacity duration-100`,leaveFrom:`opacity-100`,leaveTo:`opacity-0`,show:!0,appear:!0,children:(0,p.jsx)(xg,{comment:t,isLastSibling:i,layoutVariant:r,parent:n,children:e})})},xg=({children:e,comment:t,parent:n,layoutVariant:r=`root`,isLastSibling:i=!1})=>{let{dispatchAction:a,isAdmin:o}=j(),{showDeletedMessage:s,showHiddenMessage:c,showCommentContent:l}=Cg(t,o,k.Children.count(e)>0),u=(0,k.useCallback)(()=>{let e={id:t.id,type:`edit`,hasUnsavedChanges:!1,in_reply_to_id:t.in_reply_to_id,in_reply_to_snippet:t.in_reply_to_snippet};a(`openCommentForm`,e)},[t.id,a]);return s||c?(0,p.jsx)(Tg,{comment:t,isLastSibling:i,layoutVariant:r,openEditMode:u,parent:n,children:e}):l&&!c?(0,p.jsx)(wg,{comment:t,isLastSibling:i,layoutVariant:r,openEditMode:u,parent:n,children:e}):null},Sg=(e,t)=>t.find(t=>t.id===e.id&&t.type===`reply`),Cg=(e,t,n)=>{let r=n||e.replies&&e.replies.length>0,i=e.status===`deleted`,a=e.status===`hidden`;return{showDeletedMessage:i&&r,showHiddenMessage:r&&a&&!t,showCommentContent:!i&&(t||e.status===`published`)}},wg=({children:e,comment:t,parent:n,openEditMode:r,layoutVariant:i=`root`,isLastSibling:a=!1})=>{let{dispatchAction:o,openCommentForms:s,isAdmin:c,commentIdToHighlight:l,commentIdFromHash:u}=j(),d=k.Children.count(e)>0,f=c&&t.status===`hidden`?`opacity-30`:``,m=s.find(e=>e.id===t.id&&e.type===`edit`),h=!!m,g=Sg(t,s),_=!!(g&&g.id===t.id),v=(0,k.useCallback)(async()=>{if(g&&g.id===t.id)o(`closeCommentForm`,g.id);else{let e={};n&&(e.in_reply_to_id=t.id,e.in_reply_to_snippet=ne(t));let r={id:t.id,parent_id:n?.id,type:`reply`,hasUnsavedChanges:!1,...e};await o(`openCommentForm`,r)}},[t,n,g,o]),y=d||t.replies&&t.replies.length>0,b=!!g||y,x=(0,p.jsx)(de,{member:t.member}),S=n||t,C=u?t.id===u&&l===u:t.id===l;return(0,p.jsx)(Fg,{avatar:x,className:f,hasReplies:b,isLastSibling:a,layoutVariant:i,memberUuid:t.member?.uuid,replies:(0,p.jsx)(Og,{comment:t,parent:n,children:e}),replyForm:g?(0,p.jsx)(kg,{continueLine:y,openForm:g,parent:S}):null,children:(0,p.jsx)(`div`,{id:t.id,children:h?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(jg,{className:f,comment:t}),(0,p.jsx)(Lh,{comment:t,openForm:m,parent:n})]}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(jg,{className:f,comment:t}),(0,p.jsx)(Mg,{className:f,html:t.html,isHighlighted:C}),(0,p.jsx)(Ng,{comment:t,highlightReplyButton:_,openEditMode:r,openReplyForm:v})]})})})},Tg=({children:e,comment:t,openEditMode:n,parent:r,layoutVariant:i=`root`,isLastSibling:a=!1})=>{let{isAdmin:o,openCommentForms:s,t:c}=j(),l=k.Children.count(e)>0,u=o&&t.status!==`deleted`?(0,p.jsx)(de,{member:t.member}):(0,p.jsx)(ue,{}),d=t.status===`hidden`?c(`This comment has been hidden.`):t.status===`deleted`?c(`This comment has been removed.`):``,f=Sg(t,s),m=l||t.replies&&t.replies.length>0,h=!!f||m,g=o&&t.status===`hidden`;return(0,p.jsx)(Fg,{avatar:u,hasReplies:h,isLastSibling:a,layoutVariant:i,replies:(0,p.jsx)(Og,{comment:t,parent:r,children:e}),replyForm:f?(0,p.jsx)(kg,{continueLine:m,openForm:f,parent:r||t}):null,children:(0,p.jsx)(`div`,{className:`mt-[-3px] flex items-start`,id:t.id,children:(0,p.jsxs)(`div`,{className:`flex h-10 flex-row items-center gap-4 pb-[8px] pr-4`,children:[(0,p.jsx)(rg,{comment:t}),(0,p.jsx)(`p`,{className:`mt-[4px] font-sans text-md leading-normal text-neutral-900/40 dark:text-white/60 sm:text-lg`,children:d}),g&&(0,p.jsx)(`div`,{className:`mt-[4px]`,children:(0,p.jsx)(ng,{comment:t,toggleEdit:n})})]})})})},Eg=({comment:e})=>{let{member:t}=j(),n=t&&e.member&&e.member.uuid===t.uuid?t.expertise:e?.member?.expertise;return n?(0,p.jsxs)(`span`,{className:`[overflow-wrap:anywhere]`,children:[(0,p.jsx)(`span`,{className:`mx-[0.3em] hidden sm:inline-block`,children:`·`}),n]}):null},Dg=({comment:e})=>{let{t}=j();return e.edited_at?(0,p.jsxs)(`span`,{children:[`\xA0(`,t(`edited`),`)`]}):null},Og=({children:e,comment:t,className:n=``,parent:r})=>{let i=k.Children.count(e)>0;return i||t.replies&&t.replies.length>0?(0,p.jsx)(`div`,{className:`ml-8 flow-root sm:ml-9 ${n}`,children:i?e:r?(0,p.jsx)(og,{comment:t}):(0,p.jsx)(yg,{comment:t})}):null},kg=({openForm:e,parent:t,continueLine:n=!1})=>(0,p.jsxs)(`div`,{className:`relative ml-8 sm:ml-9 ${n?`pb-8 sm:pb-10`:`mb-8 sm:mb-10`}`,children:[n&&(0,p.jsx)(`div`,{className:`pointer-events-none absolute inset-y-0 -left-4 border-l border-neutral-300 dark:border-neutral-700 sm:-left-5`,"data-testid":`reply-form-continuation-line`,"aria-hidden":!0}),(0,p.jsx)(`div`,{className:`pointer-events-none absolute -left-4 top-0 h-4 w-3 border-b border-l border-neutral-300 [border-bottom-left-radius:12px_16px] dark:border-neutral-700 sm:-left-5 sm:w-4 sm:[border-bottom-left-radius:16px_16px]`,"data-testid":`reply-form-elbow`,"aria-hidden":!0}),(0,p.jsx)(lg,{openForm:e,parent:t})]}),Ag=({comment:e})=>{let{t}=j();return(0,p.jsx)(`h4`,{className:`font-sans text-base font-bold leading-snug text-neutral-900 dark:text-white/85 sm:text-sm`,children:T(e,t)})},jg=({comment:e,className:t=``})=>{let{member:n}=j(),r=Ah(e.created_at),i=n&&e.member&&e.member.uuid===n.uuid?n.expertise:e?.member?.expertise,a=(0,p.jsxs)(`a`,{className:`hover:underline`,href:_(e.id),target:`_parent`,title:S(e.created_at),children:[(0,p.jsx)(`span`,{className:`mx-[0.3em]`,children:`·`}),r]});return(0,p.jsxs)(`div`,{className:`mb-2 mt-0.5 flex flex-wrap items-start sm:flex-row ${i?`flex-col`:`flex-row`} ${t}`,children:[(0,p.jsx)(Ag,{comment:e}),(0,p.jsx)(`div`,{className:`flex items-baseline pr-4 font-sans text-base leading-snug text-neutral-900/50 dark:text-white/60 sm:text-sm`,children:(0,p.jsxs)(`span`,{children:[(0,p.jsx)(Eg,{comment:e}),a,e.pinned&&(0,p.jsx)(`span`,{className:`ml-2 inline-flex align-middle`,children:(0,p.jsx)(rg,{comment:e})}),(0,p.jsx)(Dg,{comment:e})]})})]})},Mg=({html:e,className:t=``,isHighlighted:n})=>{if(!e)return null;let r=e;if(n){let t=new DOMParser().parseFromString(e,`text/html`);t.querySelectorAll(`p`).forEach(e=>{let n=t.createElement(`mark`);for(n.className=`animate-[highlight_2.5s_ease-out] [animation-delay:1s] bg-yellow-300/40 -my-0.5 py-0.5 dark:text-white/85 dark:bg-yellow-500/40`;e.firstChild;)n.appendChild(e.firstChild);e.appendChild(n)}),r=t.body.innerHTML}let i={__html:r};return(0,p.jsx)(`div`,{className:`mt mb-2 flex flex-row items-center gap-4 pr-4 ${t}`,children:(0,p.jsx)(`div`,{dangerouslySetInnerHTML:i,className:`gh-comment-content -mx-1 text-pretty rounded-md px-1 font-sans text-md leading-normal text-neutral-900 [overflow-wrap:anywhere] dark:text-white/85 sm:text-lg`,"data-testid":`comment-content`})})},Ng=({comment:e,openReplyForm:t,highlightReplyButton:n,openEditMode:r,className:i=``})=>{let{member:a,t:o,isMember:s,isAdmin:c,isCommentingDisabled:l}=j(),[u,d]=k.useState(!1),f=e.status===`published`,m=a&&e.member?.uuid===a?.uuid,h=!l,g=h,_=!l,v=(c||s&&f)&&!(l&&m);return c&&e.status===`hidden`?(0,p.jsxs)(`div`,{className:`flex items-center gap-4 ${i}`,children:[(0,p.jsx)(`span`,{className:`font-sans text-base leading-snug text-red-600 sm:text-sm`,children:o(`Hidden for members`)}),(0,p.jsx)(ng,{comment:e,toggleEdit:r})]}):(0,p.jsxs)(`div`,{className:`flex items-center gap-4 ${i}`,children:[h?(0,p.jsx)(Bh,{comment:e,disabled:u,setDisabled:d}):(0,p.jsx)(Hh,{count:e.count.likes,liked:e.liked}),g&&(0,p.jsx)(Vh,{comment:e,disabled:u,setDisabled:d}),_&&(0,p.jsx)(cg,{comment:e,isReplying:n,openReplyForm:t}),v&&(0,p.jsx)(ng,{comment:e,toggleEdit:r})]})},Pg=({hasReplies:e})=>e?(0,p.jsx)(`div`,{className:`ml-4 h-full grow self-start border-l border-neutral-300 dark:border-neutral-700`,"data-testid":`replies-line`}):null,Fg=({children:e,avatar:t,hasReplies:n,className:r=``,memberUuid:i=``,isLastSibling:a=!1,layoutVariant:o=`root`,replies:s,replyForm:c})=>{let l=o===`reply`;return(0,p.jsxs)(`div`,{className:`relative flow-root ${n?`pb-4 sm:pb-0`:`pb-7`}`,children:[l&&!a&&(0,p.jsx)(`div`,{className:`pointer-events-none absolute inset-y-0 -left-4 border-l border-neutral-300 dark:border-neutral-700 sm:-left-5`,"aria-hidden":!0}),l&&(0,p.jsx)(`div`,{className:`pointer-events-none absolute -left-4 top-0 h-4 w-3 border-b border-l border-neutral-300 [border-bottom-left-radius:12px_16px] dark:border-neutral-700 sm:-left-5 sm:w-4 sm:[border-bottom-left-radius:16px_16px]`,"aria-hidden":!0}),(0,p.jsxs)(`div`,{className:`flex w-full flex-row`,"data-member-uuid":i,"data-testid":`comment-component`,children:[(0,p.jsxs)(`div`,{className:`mr-2 flex flex-col items-center justify-start sm:mr-3`,children:[(0,p.jsx)(`div`,{className:`flex-0 mb-1 ${r}`,children:t}),(0,p.jsx)(Pg,{hasReplies:n})]}),(0,p.jsx)(`div`,{className:`grow ${n?`pb-7 sm:pb-8`:``}`,children:e})]}),c,n&&s]})},Ig=o(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Lg=o(((e,t)=>{var n=Ig();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),Rg=c(o(((e,t)=>{t.exports=Lg()()}))(),1);function zg(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Bg(e){"@babel/helpers - typeof";return Bg=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Bg(e)}function Vg(e,t){if(Bg(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Bg(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Hg(e){var t=Vg(e,`string`);return Bg(t)==`symbol`?t:t+``}function Ug(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,Hg(r.key),r)}}function Wg(e,t,n){return t&&Ug(e.prototype,t),n&&Ug(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gg(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 Kg(e,t){if(e==null)return{};var n,r,i=Gg(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}var qg=`TOKEN_PLACEHOLDER`,Jg=`TOKEN_OPEN_TAG`,Yg=`TOKEN_CLOSE_TAG`,Xg=`TOKEN_SELF_TAG`,Zg=`TOKEN_TEXT`,Qg=`NODE_FRAGMENT`,$g=`NODE_TAG_ELEMENT`,e_=`NODE_VOID_ELEMENT`,t_=`NODE_PLACEHOLDER`,n_=`NODE_TEXT`,r_=[`type`,`children`],i_=function(){function e(t){var n=t.type,r=t.children,i=Kg(t,r_);for(var a in zg(this,e),this.type=n,this.children=r||[],i)this[a]=i[a];i.token&&(this.string=i.token.string)}return Wg(e,[{key:`appendChild`,value:function(e){this.children.push(e)}},{key:`isLeaf`,get:function(){return this.children.length===0}}]),e}();i_.createTagNode=function(e,t){return new i_({type:$g,children:t,name:e.name,token:e})},i_.createFragmentNode=function(e){return new i_({type:Qg,children:e})},i_.createVoidNode=function(e){return new i_({type:e_,name:e.name,token:e})},i_.createTextNode=function(e){return new i_({type:n_,text:e.string,token:e})},i_.createPlaceholderNode=function(e){return new i_({type:t_,name:e.name,token:e})};var a_=[{type:qg,regex:/{\s*(\w+)\s*}/g},{type:Jg,regex:/<(\w+)>/g},{type:Yg,regex:/<\/(\w+)>/g},{type:Xg,regex:/<(\w+)\s*\/>/g}];function o_(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=s_(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
107
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){o=!0,s=e},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(o)throw s}}}}function s_(e,t){if(e){if(typeof e==`string`)return c_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c_(e,t)}}function c_(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 l_(e,t){var n=[],r=o_(t),i;try{for(r.s();!(i=r.n()).done;)for(var a=i.value,o=a.type,s=a.regex,c;(c=s.exec(e))!==null;)n.push({type:o,string:c[0],name:c[1],start:c.index,end:c.index+c[0].length})}catch(e){r.e(e)}finally{r.f()}n.sort(function(e,t){return e.start-t.start});var l=[],u=0;n.forEach(function(t){if(t.start===u){u=t.end;return}var n=t.start,r=e.substring(u,n);l.push({type:Zg,string:r,text:r,start:u,end:n}),u=t.end});var d=e.substring(u);return d!==``&&l.push({type:Zg,string:d,start:u,end:e.length}),[].concat(l,n).sort(function(e,t){return e.start-t.start})}function u_(e,t){return t||=a_,new p_(l_(e,t)).parse()}var d_=`Syntax error. Please check if each open tag is closed correctly`,f_={type:`EPSILON`},p_=function(){function e(t){zg(this,e),this.tokens=[].concat(t),this.tags=[]}return Wg(e,[{key:`parse`,value:function(){var e=this.document();if(!this.predict(f_.type))throw Error(d_);return e}},{key:`document`,value:function(){var e=this.elementOrData();return i_.createFragmentNode(e)}},{key:`element`,value:function(){var e=this.openTag(),t=this.elementOrData();return this.endTag(),i_.createTagNode(e,t)}},{key:`openTag`,value:function(){if(!this.predict(`TOKEN_OPEN_TAG`))throw Error(d_);return this.pushTag(this.lookahead),this.match(Jg)}},{key:`elementOrData`,value:function(){var e=[];if(this.predict(`TOKEN_OPEN_TAG`)&&(e.push(this.element()),e=e.concat(this.elementOrData())),this.predict(`TOKEN_SELF_TAG`,Zg,`TOKEN_PLACEHOLDER`)){var t=this.match(this.lookahead.type),n;switch(t.type){case Xg:n=i_.createVoidNode(t);break;case Zg:n=i_.createTextNode(t);break;case qg:n=i_.createPlaceholderNode(t);break}e.push(n),e=e.concat(this.elementOrData())}return e}},{key:`endTag`,value:function(){if(!this.predict(`TOKEN_CLOSE_TAG`)||this.tags.pop().name!==this.lookahead.name)throw Error(d_);this.match(Yg)}},{key:`lookahead`,get:function(){return this.tokens.length===0?f_:this.tokens[0]}},{key:`predict`,value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.includes(this.lookahead.type)}},{key:`match`,value:function(e){if(!this.predict(e))throw Error(d_);return this.tokens.shift()}},{key:`pushTag`,value:function(e){this.tags.push(e)}}]),e}(),m_=function e(t,n,r){var i=t.children.map(function(t,i){return k.createElement(k.default.Fragment,{key:r+i},e(t,n,r))});switch(t.type){case n_:return t.text;case Qg:return k.createElement(k.default.Fragment,null,i);case e_:var a=n[t.name];return typeof a==`function`?a():a||k.createElement(t.name,null);case $g:var o=n[t.name];if(o===void 0)return k.createElement(t.name,null,i);if(typeof o==`function`)return o(i);if(k.isValidElement(o)){if(k.Children.count(o.props.children)!==0)throw Error(`when passing an element as value, the element should not contains children`);return k.cloneElement(o,{children:i})}throw Error(`Invalid mapping value for "${t.name}". Only element or render function are accepted`);case t_:var s=n[t.name];return s===void 0?(console.warn(`missing "${t.name}" in mapping`),t.string):typeof s==`function`?s():s;default:return}};function h_(e){var t=e.string,n=e.syntax,r=e.mapping,i=r===void 0?{}:r,a=e.graceful,o=a===void 0?!0:a;try{return m_(u_(t,n),i,t)}catch(e){if(o)return console.error(e),t;throw e}}h_.propTypes={string:Rg.default.string.isRequired,mapping:Rg.default.object,graceful:Rg.default.bool};var g_=()=>{let{accentColor:e,supportEmail:t,t:n}=j(),r={color:e};return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`h1`,{className:`mb-2 text-center font-sans text-2xl font-semibold tracking-tight text-neutral-900 dark:text-white/85`,children:n(`Commenting disabled`)}),(0,p.jsx)(`p`,{className:`w-full text-balance text-center text-lg leading-normal text-neutral-900 dark:text-white/85 sm:px-8`,children:t?(0,p.jsx)(h_,{mapping:{a:(0,p.jsx)(`a`,{className:`font-semibold hover:opacity-90`,href:`mailto:${t}`,style:r})},string:n(`You can't post comments in this publication. <a>Contact support</a> for more information.`)}):n(`You can't post comments in this publication.`)})]})},__=({showCount:e,count:t})=>{let{t:n}=j();return e?t===1?(0,p.jsx)(`div`,{className:`text-md text-neutral-900/50 dark:text-white/50 sm:text-lg`,"data-testid":`count`,children:n(`1 comment`)}):(0,p.jsx)(`div`,{className:`text-md text-neutral-900/50 dark:text-white/50 sm:text-lg`,"data-testid":`count`,children:n(`{amount} comments`,{amount:b(t)})}):null},v_=({title:e})=>{let{t}=j();return e===null?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`span`,{className:`sm:hidden`,children:t(`Discussion`)}),(0,p.jsx)(`span`,{className:`hidden sm:inline`,children:t(`Member discussion`)})]}):(0,p.jsx)(p.Fragment,{children:e})},y_=({title:e,showCount:t,count:n})=>!e&&!t&&e!==null?null:(0,p.jsxs)(`div`,{className:`mb-7 flex w-full items-baseline justify-between font-sans`,children:[(0,p.jsx)(`h2`,{className:`text-[2.2rem] font-bold tracking-tight text-neutral-900 dark:text-white sm:text-2xl`,"data-testid":`title`,children:(0,p.jsx)(v_,{title:e})}),(0,p.jsx)(__,{count:n,showCount:t})]}),b_=({focusedThread:e})=>{let{t}=j(),{navigateBackToParent:n}=dg(),{backComment:r,focusedComment:i,topLevelComment:a}=e,o=_(r.id);return(0,p.jsxs)(`div`,{children:[(0,p.jsxs)(`div`,{className:`mb-6 flex items-center justify-between`,children:[(0,p.jsxs)(`a`,{className:`font-sans text-[1.3rem] font-medium text-neutral-900/55 transition-colors hover:text-neutral-900/80 dark:text-white/45 dark:hover:text-white/70`,"data-testid":`back-to-parent`,href:o,target:`_parent`,onClick:(0,k.useCallback)(e=>{e.preventDefault(),n(r.id,o)},[r.id,o,n]),children:[`← `,t(`Back`)]}),(0,p.jsx)(`a`,{className:`font-sans text-[1.3rem] font-medium text-neutral-900/55 transition-colors hover:text-neutral-900/80 dark:text-white/45 dark:hover:text-white/70`,"data-testid":`see-full-discussion`,href:v(),target:`_parent`,children:t(`See full discussion`)})]}),(0,p.jsx)(bg,{comment:i,parent:a,children:(0,p.jsx)(hg,{replies:i.nestedReplies,threadParentComment:a})})]})},x_=({commentsCount:e})=>{let{postId:t,dispatchAction:n,t:r}=j(),{editor:i,hasContent:a}=jh((0,k.useMemo)(()=>({placeholder:r(e===0?`Start the conversation`:`Join the discussion`),autofocus:!1}),[e])),o=(0,k.useCallback)(async({html:e})=>{await n(`addComment`,{post_id:t,status:`published`,html:e}),i?.commands.clearContent()},[t,n,i]),s=(0,k.useRef)(null),[c,l]=(0,k.useState)(!1);(0,k.useEffect)(()=>{if(!i)return;let e=e=>{if(!i||e.metaKey||e.ctrlKey)return;let t=document.activeElement;for(;t&&t.tagName===`IFRAME`&&t.contentDocument;)t=t.contentDocument?.activeElement??null;let n=t&&(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.tagName===`IFRAME`||t.contentEditable===`true`);if(e.key===`c`&&!i?.isFocused&&!n){i?.commands.focus(),s.current&&O(s.current);return}};return window.addEventListener(`keydown`,e,{passive:!0}),()=>{window.removeEventListener(`keydown`,e)}},[i]);let u={submitText:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(`span`,{className:`hidden sm:inline`,children:[r(`Add comment`),` `]}),(0,p.jsx)(`span`,{className:`sm:hidden`,children:r(`Comment`)})]}),submitSize:`large`,submit:o},d=i?.isFocused||a||c;return(0,p.jsx)(`div`,{ref:s,className:`px-3 pb-2 pt-3`,"data-testid":`main-form`,onBlurCapture:(0,k.useCallback)(e=>{e.currentTarget.contains(e.relatedTarget)||l(!1)},[]),onFocusCapture:()=>l(!0),children:(0,p.jsx)(Ih,{editor:i,isOpen:d,reduced:!1,children:(0,p.jsx)(Fh,{editor:i,isOpen:d,reduced:!1,...u})})})},S_=()=>{let{pagination:e,dispatchAction:t,t:n}=j(),r=()=>{t(`loadMoreComments`,{})};if(!e)return null;let i=e.total-e.page*e.limit;return i<=0?null:(0,p.jsx)(`button`,{className:`group mb-10 flex items-center px-0 pb-2 pt-0 text-left font-sans text-md font-semibold text-neutral-700 dark:text-white`,"data-testid":`pagination-component`,type:`button`,onClick:r,children:(0,p.jsx)(`span`,{className:`flex h-[40px] items-center justify-center whitespace-nowrap rounded-[6px] bg-black/5 px-4 py-2 text-center font-sans text-sm font-semibold text-neutral-700 outline-0 transition-all duration-150 hover:bg-black/10 dark:bg-white/15 dark:text-neutral-300 dark:hover:bg-white/20 dark:hover:text-neutral-100`,children:n(`Load more ({amount})`,{amount:b(i)})})})},C_=e=>(0,p.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,...e,children:(0,p.jsx)(`path`,{d:`M23.25,7.311,12.53,18.03a.749.749,0,0,1-1.06,0L.75,7.311`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,fillRule:`evenodd`})}),w_=()=>{let{order:e,t}=j(),n=re(),[r,i]=(0,k.useState)(!1),[a,o]=(0,k.useState)(e),s=(0,k.useRef)(null),c=`count__net_score desc, created_at desc`;(0,k.useEffect)(()=>{o(e===`count__likes desc, created_at desc`||e===`count__net_score desc, created_at desc`?c:e)},[e]);let l=[{value:c,label:t(`Best`)},{value:`created_at desc`,label:t(`Newest`)},{value:`created_at asc`,label:t(`Oldest`)}],u=e=>{o(e),n(e),i(!1)};return(0,k.useEffect)(()=>{let e=()=>{i(!1)};window.addEventListener(`click`,e,{passive:!0});let t=s.current?.ownerDocument?.defaultView;return t&&t!==window&&t.addEventListener(`click`,e,{passive:!0}),()=>{window.removeEventListener(`click`,e),t&&t!==window&&t.removeEventListener(`click`,e)}},[]),(0,p.jsxs)(`div`,{ref:s,className:`relative z-20`,"data-testid":`comments-sorting-form`,onClick:e=>{e.stopPropagation()},children:[(0,p.jsxs)(`button`,{className:`flex w-full items-center justify-between gap-2 text-sm font-medium text-neutral-900 focus-visible:outline-none dark:text-neutral-100`,type:`button`,onClick:()=>i(!r),children:[l.find(e=>e.value===a)?.label,(0,p.jsx)(`span`,{className:`size-2 stroke-[3px]`,children:(0,p.jsx)(C_,{})})]}),r&&(0,p.jsx)(`div`,{className:`absolute -left-4 mt-1.5 w-36 origin-top-right rounded-md bg-white shadow-lg dark:bg-neutral-800`,children:(0,p.jsx)(`div`,{"aria-labelledby":`options-menu`,"aria-orientation":`vertical`,className:`py-1`,"data-testid":`comments-sorting-form-dropdown`,role:`menu`,children:l.map(e=>(0,p.jsx)(`button`,{className:`block w-full px-4 py-1.5 text-left text-sm text-neutral-600 transition-all hover:text-neutral-900 dark:text-neutral-200 dark:hover:text-white`,role:`menuitem`,type:`button`,onClick:()=>u(e.value),children:e.label},e.value))})})]})},T_=`ghost-comments-root`;function E_(e){let t=e.defaultView;if(!t?.parent||t.parent===t)return null;try{let e=t.parent.document.getElementsByTagName(`iframe`);for(let n of e)if(n.contentWindow===t)return n}catch{}return null}var D_=500;function O_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}function k_(e,t){let n=e.clientHeight,r=!1,i=()=>{r||(r=!0,a.disconnect(),t())},a=new ResizeObserver(()=>{e.clientHeight!==n&&i()});a.observe(e);let o=setTimeout(i,D_);return()=>{clearTimeout(o),a.disconnect()}}function A_(e){return e.current?.ownerDocument.getElementById(`ghost-comments-root`)||document.getElementById(`ghost-comments-root`)}function j_(e){let t=e.current?.ownerDocument.defaultView||window;return t.parent||t}function M_(e){let{dispatchAction:t}=j(),n=(0,k.useCallback)((t=`auto`)=>{let n=A_(e);n&&O_(()=>{n.scrollIntoView({behavior:t,block:`start`})})},[e]);return{scrollToComment:(0,k.useCallback)((e,n,r={})=>{e.scrollIntoView({behavior:`smooth`,block:`center`}),t(`highlightComment`,{commentId:n}),r.preserveScrollTarget||t(`setScrollTarget`,null)},[t]),scrollToCommentInstantly:(0,k.useCallback)(t=>{O_(()=>{let n=e.current?.ownerDocument.getElementById(t);if(n){let e=E_(n.ownerDocument);if(e){k_(e,()=>{te(n)});return}te(n)}})},[e]),scrollToCommentsTop:n}}function N_(e){(0,k.useEffect)(()=>{let t=A_(e),n=j_(e);t&&n?.location.hash===`#ghost-comments`&&n.scrollY===0&&O_(()=>{t.scrollIntoView()})},[e])}function P_(e,t,n,r){let{dispatchAction:i}=j(),{scrollToComment:a,scrollToCommentInstantly:o,scrollToCommentsTop:s}=r;(0,k.useEffect)(()=>{let r=j_(e);if(!r)return;let c=()=>{let c=r.location.hash,l=y(c);if(l&&e.current){let r=t.current===l,c=n.current===l;if(t.current=null,n.current=null,i(`setHashCommentId`,l),r){i(`setScrollTarget`,null),i(`setHighlightComment`,null),s();return}if(c){i(`setScrollTarget`,null),i(`setHighlightComment`,null),o(l);return}i(`setScrollTarget`,l);let u=e.current.ownerDocument.getElementById(l);u&&a(u,l,{preserveScrollTarget:!0})}else t.current=null,n.current=null,i(`setHashCommentId`,null),i(`setScrollTarget`,null),i(`setHighlightComment`,null),c===`#ghost-comments`&&s(`smooth`)};return r.addEventListener(`hashchange`,c),()=>r.removeEventListener(`hashchange`,c)},[e,i,a,o,s])}function F_(e,t){let{comments:n,commentsIsLoading:r,commentIdFromHash:i,commentIdToScrollTo:a,dispatchAction:o}=j(),{scrollToComment:s}=t,c=(0,k.useRef)(null);(0,k.useEffect)(()=>{if(!a||r||!e.current){a||(c.current=null);return}if(c.current===a)return;if(y(j_(e)?.location.hash||``)===a&&i!==a){o(`setHashCommentId`,a);return}let t=e.current.ownerDocument,n=t.getElementById(a);if(!n)return;let l=E_(t);if(l)return c.current=a,k_(l,()=>{s(n,a,{preserveScrollTarget:a===i})});c.current=a,s(n,a,{preserveScrollTarget:a===i})},[a,i,r,n,e,o,s])}function I_(e){let{commentsIsLoading:t,showMissingCommentNotice:n}=j();(0,k.useEffect)(()=>{if(!n||t)return;let r=A_(e);if(!r)return;let i=E_(r.ownerDocument);if(i)return k_(i,()=>{O(r)});O(r)},[e,n,t])}function L_(e,t,n){let{commentIdFromHash:r}=j(),{scrollToCommentInstantly:i}=n;(0,k.useEffect)(()=>{!r||e||t.current!==r||(t.current=null,i(r))},[r,e,i])}function R_({containerRef:e,focusedThread:t}){let{dispatchAction:n}=j(),r=(0,k.useRef)(null),i=(0,k.useRef)(null),a=M_(e);return N_(e),P_(e,r,i,a),F_(e,a),I_(e),L_(t,i,a),(0,k.useMemo)(()=>({requestFocusedThreadView:e=>{r.current=e},requestInstantScroll:e=>{i.current=e},navigateBackToParent:(t,r)=>{i.current=t,j_(e)?.history.pushState(null,``,r),n(`setHashCommentId`,t),n(`setScrollTarget`,null),n(`setHighlightComment`,null)}}),[e,n])}var z_=`(max-width: 479px)`;function B_(){return typeof window>`u`||!window.matchMedia?4:window.matchMedia(z_).matches?3:4}var V_=()=>{let e=ie(),{pagination:t,comments:n,commentCount:r,title:i,showCount:a,commentsIsLoading:o,t:s,commentIdFromHash:c,showMissingCommentNotice:l,isMember:u,isPaidOnly:d,hasRequiredTier:f,isCommentingDisabled:m}=j(),h=(0,k.useRef)(null),[g,_]=(0,k.useState)(()=>B_());(0,k.useEffect)(()=>{if(typeof window>`u`||!window.matchMedia)return;let e=window.matchMedia(z_),t=()=>{_(e.matches?3:4)};return t(),e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]);let v=(0,k.useMemo)(()=>({maxThreadDepth:g}),[g]),y=t?.total===0,b=u&&f&&!m,x=b,S=!b&&m,C=!b&&!m,w=(0,k.useMemo)(()=>vg(n,c,g),[n,c,g]),T=R_({containerRef:h,focusedThread:w}),E=n.map(e=>(0,p.jsx)(bg,{comment:e},e.id)),ee=w?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(y_,{count:r,showCount:a,title:i}),(0,p.jsx)(`div`,{ref:h,className:`z-10 transition-opacity duration-100 ${o?`opacity-50`:``}`,"data-testid":`comment-elements`,children:(0,p.jsx)(b_,{focusedThread:w})})]}):(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(y_,{count:r,showCount:a,title:i}),l&&(0,p.jsx)(`div`,{className:`mb-6 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 font-sans text-sm text-amber-900 dark:border-amber-500/40 dark:bg-amber-500/15 dark:text-amber-100`,"data-testid":`missing-comment-notice`,children:s(`The linked comment is no longer available.`)}),(0,p.jsxs)(`div`,{children:[x&&(0,p.jsx)(x_,{commentsCount:n.length}),S&&(0,p.jsx)(`section`,{className:`flex flex-col items-center py-6 sm:px-8 sm:py-10`,"data-testid":`commenting-disabled-box`,children:(0,p.jsx)(g_,{})}),C&&(0,p.jsx)(`section`,{className:`flex flex-col items-center py-6 sm:px-8 sm:py-10`,"data-testid":`cta-box`,children:(0,p.jsx)(ae,{isFirst:y,isPaid:d})})]}),r>1&&(0,p.jsx)(`div`,{className:`z-20 mb-7 mt-3`,children:(0,p.jsxs)(`span`,{className:`flex items-center gap-1.5 text-sm font-medium text-neutral-900 dark:text-neutral-100`,children:[s(`Sort by`),`: `,(0,p.jsx)(w_,{})]})}),(0,p.jsx)(`div`,{ref:h,className:`z-10 transition-opacity duration-100 ${o?`opacity-50`:``}`,"data-testid":`comment-elements`,children:E}),(0,p.jsx)(S_,{}),e?.testFlag?(0,p.jsx)(`div`,{"data-testid":`this-comes-from-a-flag`,style:{display:`none`}}):null]});return(0,p.jsx)(ug.Provider,{value:T,children:(0,p.jsx)(fg.Provider,{value:v,children:ee})})};function H_(){return(0,p.jsx)(`div`,{className:`flex h-32 w-full items-center justify-center`,"data-testid":`loading`,children:(0,p.jsx)(se,{className:`mb-6 size-12 fill-neutral-300/80 dark:fill-white/60`})})}var U_=({done:e})=>{let t=(e,t,n)=>{let r=[e,t,n].map(function(e){return e/=255,e<=.03928?e/12.92:((e+.055)/1.055)**2.4});return r[0]*.2126+r[1]*.7152+r[2]*.0722},n=(e,n)=>{let r=t(e[0],e[1],e[2]),i=t(n[0],n[1],n[2]),a=Math.max(r,i),o=Math.min(r,i);return(a+.05)/(o+.05)},{accentColor:r,colorScheme:i}=j(),a=(0,k.useCallback)(()=>{if(i===`light`)return!1;if(i===`dark`)return!0;{let e=document.getElementById(T_);if(!e||!e.parentElement)return!1;let t=getComputedStyle(e.parentElement).getPropertyValue(`color`),r=t.substring(t.indexOf(`(`)+1,t.lastIndexOf(`)`)).split(/,\s*/),i=parseInt(r[0]),a=parseInt(r[1]),o=parseInt(r[2]);return n([255,255,255],[i,a,o])<5}},[i,n]),[o,s]=(0,k.useState)(a()?`dark`:``);(0,k.useEffect)(()=>{s(a()?`dark`:``)},[i,a]),(0,k.useEffect)(()=>{let e=document.getElementById(T_);if(e?.parentElement){let t=new MutationObserver(()=>{s(a()?`dark`:``)});return t.observe(e.parentElement,{attributes:!0,attributeFilter:[`style`,`class`]}),()=>{t.disconnect()}}},[a]);let c={"--gh-accent-color":r??`black`,paddingTop:0,paddingBottom:24};return(0,p.jsx)(`section`,{className:`ghost-display `+o,"data-loaded":e,"data-testid":`content-box`,style:c,children:e?(0,p.jsx)(V_,{}):(0,p.jsx)(H_,{})})},W_=class extends k.Component{node;iframeHtml;iframeHead;iframeRoot;constructor(e){super(e),this.setNode=this.setNode.bind(this),this.node=null}componentDidMount(){this.node.addEventListener(`load`,this.handleLoad)}handleLoad=()=>{this.setupFrameBaseStyle()};componentWillUnmount(){this.node.removeEventListener(`load`,this.handleLoad)}setupFrameBaseStyle(){this.node.contentDocument&&(this.iframeHtml=this.node.contentDocument.documentElement,this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate(),this.props.onResize&&new ResizeObserver(e=>{window.requestAnimationFrame(()=>{this.props.onResize(this.iframeRoot)})})?.observe?.(this.iframeRoot),this.node.contentWindow.addEventListener(`keydown`,e=>{window.dispatchEvent(new KeyboardEvent(`keydown`,e))}))}setNode(e){this.node=e,this.props.innerRef&&(this.props.innerRef.current=e)}render(){let{children:e,head:t,title:n=``,style:r={},...i}=this.props;return(0,p.jsxs)(`iframe`,{srcDoc:`<!DOCTYPE html>`,...i,ref:this.setNode,frameBorder:`0`,style:r,title:n,children:[this.iframeHead&&(0,Od.createPortal)(t,this.iframeHead),this.iframeRoot&&(0,Od.createPortal)(e,this.iframeRoot)]})}},G_=(0,k.forwardRef)(function(e,t){return(0,p.jsx)(W_,{...e,innerRef:t})}),K_=`*,:before,:after,::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}:before,:after{--tw-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (width>=481px){.container{max-width:481px}}@media (width>=768px){.container{max-width:768px}}@media (width>=1024px){.container{max-width:1024px}}@media (width>=1280px){.container{max-width:1280px}}@media (width>=1400px){.container{max-width:1400px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-y-0{top:0;bottom:0}.-left-4{left:-1.6rem}.bottom-1{bottom:.4rem}.bottom-full{bottom:100%}.left-0{left:0}.right-1{right:.4rem}.right-6{right:2.4rem}.top-0{top:0}.top-1{top:.4rem}.top-5{top:2rem}.z-10{z-index:10}.z-20{z-index:20}.col-start-1{grid-column-start:1}.row-start-1{grid-row-start:1}.-mx-1{margin-left:-.4rem;margin-right:-.4rem}.-mx-2{margin-left:-.8rem;margin-right:-.8rem}.-my-0\\.5{margin-top:-.2rem;margin-bottom:-.2rem}.mx-\\[0\\.3em\\]{margin-left:.3em;margin-right:.3em}.my-1{margin-top:.4rem;margin-bottom:.4rem}.mb-1{margin-bottom:.4rem}.mb-1\\.5{margin-bottom:.6rem}.mb-10{margin-bottom:4rem}.mb-2{margin-bottom:.8rem}.mb-4{margin-bottom:1.6rem}.mb-6{margin-bottom:2.4rem}.mb-7{margin-bottom:2.8rem}.mb-8{margin-bottom:3.2rem}.mb-\\[12px\\]{margin-bottom:12px}.mb-\\[28px\\]{margin-bottom:28px}.mb-\\[8px\\]{margin-bottom:8px}.ml-1{margin-left:.4rem}.ml-2{margin-left:.8rem}.ml-2\\.5{margin-left:1rem}.ml-4{margin-left:1.6rem}.ml-8{margin-left:3.2rem}.ml-\\[48px\\]{margin-left:48px}.mr-1{margin-right:.4rem}.mr-2{margin-right:.8rem}.mr-\\[6px\\]{margin-right:6px}.mt-0\\.5{margin-top:.2rem}.mt-1\\.5{margin-top:.6rem}.mt-10{margin-top:4rem}.mt-3{margin-top:1.2rem}.mt-6{margin-top:2.4rem}.mt-8{margin-top:3.2rem}.mt-\\[-10px\\]{margin-top:-10px}.mt-\\[-1px\\]{margin-top:-1px}.mt-\\[-3px\\]{margin-top:-3px}.mt-\\[4px\\]{margin-top:4px}.mt-auto{margin-top:auto}.line-clamp-1{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.flow-root{display:flow-root}.grid{display:grid}.contents{display:contents}.hidden{display:none}.size-10{width:4rem;height:4rem}.size-12{width:4.8rem;height:4.8rem}.size-2{width:.8rem;height:.8rem}.size-3{width:1.2rem;height:1.2rem}.size-4{width:1.6rem;height:1.6rem}.size-5{width:2rem;height:2rem}.size-7{width:2.8rem;height:2.8rem}.size-\\[12px\\]{width:12px;height:12px}.size-\\[16px\\]{width:16px;height:16px}.size-\\[24px\\]{width:24px;height:24px}.h-10{height:4rem}.h-11{height:4.4rem}.h-32{height:12.8rem}.h-4{height:1.6rem}.h-5{height:2rem}.h-8{height:3.2rem}.h-\\[40px\\]{height:40px}.h-\\[42px\\]{height:42px}.h-\\[44px\\]{height:44px}.h-full{height:100%}.h-screen{height:100vh}.min-h-10{min-height:4rem}.min-h-\\[120px\\]{min-height:120px}.w-3{width:1.2rem}.w-36{width:14.4rem}.w-4{width:1.6rem}.w-52{width:20.8rem}.w-8{width:3.2rem}.w-\\[50\\%\\]{width:50%}.w-auto{width:auto}.w-full{width:100%}.w-screen{width:100vw}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.origin-top-right{transform-origin:100% 0}.-translate-x-2{--tw-translate-x:-.8rem;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x:0px;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[-6px\\]{--tw-translate-x:-6px;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2{--tw-translate-y:.8rem;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y:1.6rem;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes highlight{to{background-color:#0000}}.animate-\\[highlight_2\\.5s_ease-out\\]{animation:2.5s ease-out highlight}@keyframes heartbeat{0%,to{transform:scale(1)}50%{transform:scale(1.3)}}.animate-heartbeat{animation:.35s ease-in-out forwards heartbeat}.animate-pulse{animation:1.5s cubic-bezier(.4,0,.6,1) infinite pulse}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-items-start{justify-items:start}.gap-0\\.5{gap:.2rem}.gap-1{gap:.4rem}.gap-1\\.5{gap:.6rem}.gap-2{gap:.8rem}.gap-3{gap:1.2rem}.gap-4{gap:1.6rem}.gap-9{gap:3.6rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1.6rem * var(--tw-space-x-reverse));margin-left:calc(1.6rem * calc(1 - var(--tw-space-x-reverse)))}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.text-balance{text-wrap:balance}.text-pretty{text-wrap:pretty}.rounded{border-radius:.4rem}.rounded-\\[6px\\]{border-radius:6px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.8rem}.rounded-md{border-radius:.6rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-amber-200{--tw-border-opacity:1;border-color:rgb(253 230 138/var(--tw-border-opacity,1))}.border-amber-300\\/70{border-color:#fcd34db3}.border-black\\/10{border-color:#0000001a}.border-neutral-200{--tw-border-opacity:1;border-color:rgb(229 229 229/var(--tw-border-opacity,1))}.border-neutral-300{--tw-border-opacity:1;border-color:rgb(212 212 212/var(--tw-border-opacity,1))}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity,1))}.bg-\\[var\\(--gh-accent-color\\)\\]{background-color:var(--gh-accent-color)}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 251 235/var(--tw-bg-opacity,1))}.bg-black\\/5{background-color:#0000000d}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity,1))}.bg-neutral-800{--tw-bg-opacity:1;background-color:rgb(38 38 38/var(--tw-bg-opacity,1))}.bg-neutral-900{--tw-bg-opacity:1;background-color:rgb(23 23 23/var(--tw-bg-opacity,1))}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white\\/75{background-color:#ffffffbf}.bg-yellow-300\\/40{background-color:#fde04766}.bg-gradient-to-b{background-image:linear-gradient(to bottom, var(--tw-gradient-stops))}.from-\\[rgba\\(0\\,0\\,0\\,0\\.2\\)\\]{--tw-gradient-from:#0003 var(--tw-gradient-from-position);--tw-gradient-to:#0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)}.bg-cover{background-size:cover}.bg-no-repeat{background-repeat:no-repeat}.fill-black{fill:#000}.fill-black\\/50{fill:#00000080}.fill-black\\/75{fill:#000000bf}.fill-neutral-300\\/80{fill:#d4d4d4cc}.fill-white{fill:#fff}.stroke-black{stroke:#000}.stroke-black\\/50{stroke:#00000080}.stroke-white{stroke:#fff}.stroke-\\[3px\\]{stroke-width:3px}.p-0{padding:0}.p-1{padding:.4rem}.p-2{padding:.8rem}.p-\\[28px\\]{padding:28px}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.4rem;padding-right:.4rem}.px-2{padding-left:.8rem;padding-right:.8rem}.px-3{padding-left:1.2rem;padding-right:1.2rem}.px-4{padding-left:1.6rem;padding-right:1.6rem}.px-5{padding-left:2rem;padding-right:2rem}.px-8{padding-left:3.2rem;padding-right:3.2rem}.py-0\\.5{padding-top:.2rem;padding-bottom:.2rem}.py-1{padding-top:.4rem;padding-bottom:.4rem}.py-1\\.5{padding-top:.6rem;padding-bottom:.6rem}.py-2{padding-top:.8rem;padding-bottom:.8rem}.py-3{padding-top:1.2rem;padding-bottom:1.2rem}.py-6{padding-top:2.4rem;padding-bottom:2.4rem}.py-\\[14px\\]{padding-top:14px;padding-bottom:14px}.pb-2{padding-bottom:.8rem}.pb-3{padding-bottom:1.2rem}.pb-4{padding-bottom:1.6rem}.pb-7{padding-bottom:2.8rem}.pb-8{padding-bottom:3.2rem}.pb-\\[68px\\]{padding-bottom:68px}.pb-\\[8px\\]{padding-bottom:8px}.pl-0{padding-left:0}.pl-1{padding-left:.4rem}.pl-\\[1px\\]{padding-left:1px}.pl-\\[40px\\]{padding-left:40px}.pr-0{padding-right:0}.pr-2{padding-right:.8rem}.pr-4{padding-right:1.6rem}.pr-\\[1px\\]{padding-right:1px}.pt-0{padding-top:0}.pt-10{padding-top:4rem}.pt-3{padding-top:1.2rem}.pt-6{padding-top:2.4rem}.pt-\\[48px\\]{padding-top:48px}.pt-\\[68px\\]{padding-top:68px}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:2.4rem}.text-\\[1\\.3rem\\]{font-size:1.3rem}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-\\[16px\\]{font-size:16px}.text-\\[2\\.2rem\\]{font-size:2.2rem}.text-base{font-size:1.3rem}.text-lg{font-size:1.65rem}.text-md{font-size:1.5rem}.text-sm{font-size:1.4rem}.text-xs{font-size:1.2rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-5{line-height:1.25rem}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-snug{line-height:1.375}.tracking-tight{letter-spacing:-.018em}.text-\\[rgba\\(0\\,0\\,0\\,0\\.4\\)\\]{color:#0006}.text-amber-800{--tw-text-opacity:1;color:rgb(146 64 14/var(--tw-text-opacity,1))}.text-amber-900{--tw-text-opacity:1;color:rgb(120 53 15/var(--tw-text-opacity,1))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.text-black\\/30{color:#0000004d}.text-black\\/50{color:#00000080}.text-black\\/90{color:#000000e6}.text-neutral-400{--tw-text-opacity:1;color:rgb(163 163 163/var(--tw-text-opacity,1))}.text-neutral-500{--tw-text-opacity:1;color:rgb(115 115 115/var(--tw-text-opacity,1))}.text-neutral-600{--tw-text-opacity:1;color:rgb(82 82 82/var(--tw-text-opacity,1))}.text-neutral-700{--tw-text-opacity:1;color:rgb(64 64 64/var(--tw-text-opacity,1))}.text-neutral-900{--tw-text-opacity:1;color:rgb(23 23 23/var(--tw-text-opacity,1))}.text-neutral-900\\/25{color:#17171740}.text-neutral-900\\/40{color:#17171766}.text-neutral-900\\/50{color:#17171780}.text-neutral-900\\/55{color:#1717178c}.text-neutral-900\\/60{color:#17171799}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-80{opacity:.8}.shadow-lg{--tw-shadow:#0000000f 0px 0px 0px 1px, #0000000a 0px 2px 2px -1px, #0000000a 0px 3px 3px -1px, #00000008 0px 5px 5px -2px, #00000008 0px 10px 10px -3px, #00000008 0px 24px 24px -8px;--tw-shadow-colored:0px 0px 0px 1px var(--tw-shadow-color), 0px 2px 2px -1px var(--tw-shadow-color), 0px 3px 3px -1px var(--tw-shadow-color), 0px 5px 5px -2px var(--tw-shadow-color), 0px 10px 10px -3px var(--tw-shadow-color), 0px 24px 24px -8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.shadow-modal{--tw-shadow:0 3.8px 2.2px #00000007, 0 9.2px 5.3px #0000000a, 0 17.3px 10px #0000000d, 0 30.8px 17.9px #0000000f, 0 57.7px 33.4px #00000012, 0 138px 80px #0000001a;--tw-shadow-colored:0 3.8px 2.2px var(--tw-shadow-color), 0 9.2px 5.3px var(--tw-shadow-color), 0 17.3px 10px var(--tw-shadow-color), 0 30.8px 17.9px var(--tw-shadow-color), 0 57.7px 33.4px var(--tw-shadow-color), 0 138px 80px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.outline-0{outline-width:0}.blur{--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-\\[2px\\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-\\[border-color\\]{transition-property:border-color;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-\\[opacity\\]{transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-\\[padding\\]{transition-property:padding;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-none{transition-property:none}.transition-opacity{transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.delay-100{transition-delay:.1s}.delay-150{transition-delay:.15s}.delay-\\[400ms\\]{transition-delay:.4s}.duration-0{transition-duration:0s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:1s\\]{animation-delay:1s}.\\[border-bottom-left-radius\\:12px_16px\\]{border-bottom-left-radius:12px 16px}.\\[overflow-wrap\\:anywhere\\]{overflow-wrap:anywhere}body,html{overflow:hidden}:host{all:initial!important}html{font-size:62.5%}body{font-size:1.5rem}.gh-comment-content p:empty:after{content:"\xA0"}.gh-comment-content a{word-break:break-word;color:var(--gh-accent-color);text-decoration:underline}.gh-comment-content blockquote{border-left:3px solid var(--gh-accent-color);margin:0 0 1.2rem;padding-left:1rem}.gh-comment-content p{margin:0 0 1.2rem}.gh-comment-content p:last-child,.gh-comment-content blockquote:last-child{margin:0}.gh-comment-content p.is-editor-empty:first-child:before{color:#0000004d!important}.dark .gh-comment-content p.is-editor-empty:first-child:before{color:#fff6!important}.ProseMirror p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;pointer-events:none;--tw-text-opacity:1;height:0;color:rgb(212 212 212/var(--tw-text-opacity))}.ProseMirror *{white-space:pre-wrap;word-wrap:break-word}[contenteditable]:focus{outline:0 solid #0000}.ghost-display{display:block!important}.hover\\:border-amber-400:hover{--tw-border-opacity:1;border-color:rgb(251 191 36/var(--tw-border-opacity,1))}.hover\\:bg-amber-100:hover{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity,1))}.hover\\:bg-black\\/10:hover{background-color:#0000001a}.hover\\:bg-neutral-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 245/var(--tw-bg-opacity,1))}.hover\\:fill-black\\/75:hover{fill:#000000bf}.hover\\:text-black\\/50:hover{color:#00000080}.hover\\:text-black\\/75:hover{color:#000000bf}.hover\\:text-neutral-900:hover{--tw-text-opacity:1;color:rgb(23 23 23/var(--tw-text-opacity,1))}.hover\\:text-neutral-900\\/70:hover{color:#171717b3}.hover\\:text-neutral-900\\/80:hover{color:#171717cc}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-40:hover{opacity:.4}.hover\\:opacity-90:hover{opacity:.9}.hover\\:brightness-105:hover{--tw-brightness:brightness(1.05);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:border-neutral-300:focus{--tw-border-opacity:1;border-color:rgb(212 212 212/var(--tw-border-opacity,1))}.focus\\:border-red-500:focus{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.focus\\:outline-0:focus{outline-width:0}.focus-visible\\:outline-none:focus-visible{outline-offset:2px;outline:2px solid #0000}.disabled\\:bg-black\\/5:disabled{background-color:#0000000d}.disabled\\:text-neutral-900\\/30:disabled{color:#1717174d}.group:hover .group-hover\\:translate-x-0{--tw-translate-x:0px;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\\:stroke-black\\/75{stroke:#000000bf}.group:hover .group-hover\\:opacity-0{opacity:0}.group:hover .group-hover\\:opacity-100{opacity:1}.group:focus-visible .group-focus-visible\\:opacity-0{opacity:0}.group:focus-visible .group-focus-visible\\:opacity-100{opacity:1}.dark\\:border-amber-400\\/30:is(.dark *){border-color:#fbbf244d}.dark\\:border-amber-500\\/40:is(.dark *){border-color:#f59e0b66}.dark\\:border-neutral-700:is(.dark *){--tw-border-opacity:1;border-color:rgb(64 64 64/var(--tw-border-opacity,1))}.dark\\:bg-amber-400\\/10:is(.dark *){background-color:#fbbf241a}.dark\\:bg-amber-500\\/15:is(.dark *){background-color:#f59e0b26}.dark\\:bg-neutral-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(38 38 38/var(--tw-bg-opacity,1))}.dark\\:bg-white\\/10:is(.dark *){background-color:#ffffff1a}.dark\\:bg-white\\/15:is(.dark *){background-color:#ffffff26}.dark\\:bg-white\\/70:is(.dark *){background-color:#ffffffb3}.dark\\:bg-yellow-500\\/40:is(.dark *){background-color:#eab30866}.dark\\:fill-white:is(.dark *){fill:#fff}.dark\\:fill-white\\/60:is(.dark *){fill:#fff9}.dark\\:fill-white\\/75:is(.dark *){fill:#ffffffbf}.dark\\:stroke-black\\/60:is(.dark *){stroke:#0009}.dark\\:stroke-white:is(.dark *){stroke:#fff}.dark\\:stroke-white\\/60:is(.dark *){stroke:#fff9}.dark\\:text-\\[rgba\\(255\\,255\\,255\\,0\\.5\\)\\]:is(.dark *){color:#ffffff80}.dark\\:text-\\[rgba\\(255\\,255\\,255\\,0\\.85\\)\\]:is(.dark *){color:#ffffffd9}.dark\\:text-amber-100:is(.dark *){--tw-text-opacity:1;color:rgb(254 243 199/var(--tw-text-opacity,1))}.dark\\:text-neutral-100:is(.dark *){--tw-text-opacity:1;color:rgb(245 245 245/var(--tw-text-opacity,1))}.dark\\:text-neutral-200:is(.dark *){--tw-text-opacity:1;color:rgb(229 229 229/var(--tw-text-opacity,1))}.dark\\:text-neutral-300:is(.dark *){--tw-text-opacity:1;color:rgb(212 212 212/var(--tw-text-opacity,1))}.dark\\:text-neutral-400:is(.dark *){--tw-text-opacity:1;color:rgb(163 163 163/var(--tw-text-opacity,1))}.dark\\:text-red-500:is(.dark *){--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.dark\\:text-white:is(.dark *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-white\\/30:is(.dark *){color:#ffffff4d}.dark\\:text-white\\/45:is(.dark *){color:#ffffff73}.dark\\:text-white\\/50:is(.dark *){color:#ffffff80}.dark\\:text-white\\/60:is(.dark *){color:#fff9}.dark\\:text-white\\/70:is(.dark *){color:#ffffffb3}.dark\\:text-white\\/85:is(.dark *){color:#ffffffd9}.dark\\:text-white\\/90:is(.dark *){color:#ffffffe6}.dark\\:hover\\:border-amber-400\\/50:hover:is(.dark *){border-color:#fbbf2480}.dark\\:hover\\:bg-amber-400\\/20:hover:is(.dark *){background-color:#fbbf2433}.dark\\:hover\\:bg-neutral-700:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(64 64 64/var(--tw-bg-opacity,1))}.dark\\:hover\\:bg-white\\/20:hover:is(.dark *){background-color:#fff3}.dark\\:hover\\:fill-white\\/75:hover:is(.dark *){fill:#ffffffbf}.dark\\:hover\\:text-neutral-100:hover:is(.dark *){--tw-text-opacity:1;color:rgb(245 245 245/var(--tw-text-opacity,1))}.dark\\:hover\\:text-white:hover:is(.dark *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:text-white\\/50:hover:is(.dark *){color:#ffffff80}.dark\\:hover\\:text-white\\/70:hover:is(.dark *){color:#ffffffb3}.dark\\:hover\\:text-white\\/75:hover:is(.dark *){color:#ffffffbf}.dark\\:disabled\\:bg-white\\/15:disabled:is(.dark *){background-color:#ffffff26}.dark\\:disabled\\:text-white\\/35:disabled:is(.dark *){color:#ffffff59}.group:hover .dark\\:group-hover\\:stroke-white\\/75:is(.dark *){stroke:#ffffffbf}@media (width>=481px){.sm\\:-left-5{left:-2rem}.sm\\:bottom-2{bottom:.8rem}.sm\\:right-2{right:.8rem}.sm\\:right-8{right:3.2rem}.sm\\:top-9{top:3.6rem}.sm\\:mb-10{margin-bottom:4rem}.sm\\:mb-12{margin-bottom:4.8rem}.sm\\:ml-9{margin-left:3.6rem}.sm\\:mr-3{margin-right:1.2rem}.sm\\:mt-8{margin-top:3.2rem}.sm\\:block{display:block}.sm\\:inline-block{display:inline-block}.sm\\:inline{display:inline}.sm\\:hidden{display:none}.sm\\:h-12{height:4.8rem}.sm\\:h-auto{height:auto}.sm\\:w-4{width:1.6rem}.sm\\:w-\\[500px\\]{width:500px}.sm\\:w-\\[720px\\]{width:720px}.sm\\:w-auto{width:auto}.sm\\:w-fit{width:fit-content}.sm\\:min-w-\\[100px\\]{min-width:100px}.sm\\:min-w-\\[64px\\]{min-width:64px}.sm\\:flex-row{flex-direction:row}.sm\\:justify-normal{justify-content:normal}.sm\\:rounded-xl{border-radius:1.2rem}.sm\\:p-0{padding:0}.sm\\:p-8{padding:3.2rem}.sm\\:px-3{padding-left:1.2rem;padding-right:1.2rem}.sm\\:px-8{padding-left:3.2rem;padding-right:3.2rem}.sm\\:py-10{padding-top:4rem;padding-bottom:4rem}.sm\\:pb-0{padding-bottom:0}.sm\\:pb-10{padding-bottom:4rem}.sm\\:pb-8{padding-bottom:3.2rem}.sm\\:pl-0{padding-left:0}.sm\\:pl-\\[44px\\]{padding-left:44px}.sm\\:pr-10{padding-right:4rem}.sm\\:pr-4{padding-right:1.6rem}.sm\\:pt-0{padding-top:0}.sm\\:pt-\\[40px\\]{padding-top:40px}.sm\\:pt-\\[4vmin\\]{padding-top:4vmin}.sm\\:pt-\\[56px\\]{padding-top:56px}.sm\\:text-left{text-align:left}.sm\\:text-2xl{font-size:2.4rem}.sm\\:text-lg{font-size:1.65rem}.sm\\:text-sm{font-size:1.4rem}.sm\\:\\[border-bottom-left-radius\\:16px_16px\\]{border-bottom-left-radius:16px}}`,q_=k.forwardRef(function({children:e,onResize:t,style:n,title:r},i){return(0,p.jsx)(G_,{ref:i,head:(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`style`,{dangerouslySetInnerHTML:{__html:K_}}),(0,p.jsx)(`meta`,{content:`width=device-width, initial-scale=1.0, maximum-scale=1.0`,name:`viewport`})]}),style:n,title:r,onResize:t,children:e})}),J_=k.forwardRef(function({children:e,style:t,title:n},r){let[i,a]=(0,k.useState)(t),o=(0,k.useCallback)(e=>{a(t=>({...t,height:`${e.scrollHeight}px`}))},[]);return(0,p.jsx)(q_,{ref:r,style:i,title:n,onResize:o,children:e})}),Y_=k.forwardRef(function({children:e},t){return(0,p.jsx)(J_,{ref:t,style:{width:`100%`,height:`400px`},title:`comments-frame`,children:e})}),X_=({children:e,title:t})=>(0,p.jsx)(q_,{style:{zIndex:`3999999`,position:`fixed`,left:`0`,top:`0`,width:`100%`,height:`100%`,overflow:`hidden`},title:t,children:e}),Z_=({show:e,children:t,title:n,callback:r})=>{let{dispatchAction:i}=j(),a=()=>{i(`closePopup`,{}),r&&r(!1)};return(0,k.useEffect)(()=>{let e=e=>{e.key===`Escape`&&a()};return window.addEventListener(`keydown`,e,{passive:!0}),()=>{window.removeEventListener(`keydown`,e)}}),(0,p.jsx)(op,{appear:!0,show:e,children:(0,p.jsx)(X_,{title:n,children:(0,p.jsx)(`div`,{children:(0,p.jsx)(op.Child,{enter:`transition duration-200 linear`,enterFrom:`opacity-0`,enterTo:`opacity-100`,leave:`transition duration-200 linear`,leaveFrom:`opacity-100`,leaveTo:`opacity-0`,children:(0,p.jsx)(`div`,{className:`to-rgba(0,0,0,0.1) fixed left-0 top-0 flex h-screen w-screen justify-center overflow-hidden bg-gradient-to-b from-[rgba(0,0,0,0.2)] pt-0 backdrop-blur-[2px] sm:pt-[4vmin]`,onMouseDown:a,children:(0,p.jsx)(op.Child,{enter:`transition duration-200 delay-150 linear`,enterFrom:`translate-y-4 opacity-0`,enterTo:`translate-y-0 opacity-100`,leave:`transition duration-200 linear`,leaveFrom:`translate-y-0 opacity-100`,leaveTo:`translate-y-4 opacity-0`,children:t})})})})})})},Q_=e=>(0,p.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`gh-portal-closeicon`,alt:`Close`,...e,children:[(0,p.jsx)(`defs`,{children:(0,p.jsx)(`style`,{children:`.a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px !important;}`})}),(0,p.jsx)(`path`,{className:`a`,d:`M.75 23.249l22.5-22.5M23.25 23.249L.75.749`})]}),$_=({close:e})=>(0,p.jsx)(`button`,{className:`absolute right-6 top-5 opacity-30 transition-opacity duration-100 ease-out hover:opacity-40 sm:right-8 sm:top-9`,type:`button`,onClick:e,children:(0,p.jsx)(Q_,{className:`size-5 p-1 pr-0`})}),ev=e=>{let t=(0,k.useRef)(null),n=(0,k.useRef)(null),{dispatchAction:r,member:i,accentColor:a,t:o}=j(),[s,c]=(0,k.useState)(i.name??``),[l,u]=(0,k.useState)(i.expertise??``),d=50;i.expertise&&(d-=i.expertise.length);let[f,m]=(0,k.useState)(d),[g,_]=(0,k.useState)({name:``,expertise:``}),v=t=>{r(`closePopup`,{}),e.callback(t)},y=async()=>{s.trim()===``?(_({name:o(`Enter your name`),expertise:``}),c(``),t.current?.focus()):(await r(`updateMember`,{name:s,expertise:l}),v(!0))};(0,k.useEffect)(()=>{if(!E()){let r=setTimeout(()=>{e.expertiseAutofocus?n.current?.focus():t.current?.focus()},200);return()=>{clearTimeout(r)}}},[t,n,e.expertiseAutofocus]);let b=()=>{let e=e=>(0,p.jsx)(op,{enter:`transition duration-200 delay-[400ms] ease-out`,enterFrom:`opacity-0 translate-y-2`,enterTo:`opacity-100 translate-y-0`,leave:`transition duration-200 ease-in`,leaveFrom:`opacity-100 translate-y-0`,leaveTo:`opacity-0 translate-y-2`,appear:!0,children:(0,p.jsxs)(`div`,{className:`flex flex-row items-center justify-start gap-3 pr-4`,children:[(0,p.jsx)(`div`,{className:`size-10 shrink-0 rounded-full border-2 border-white bg-cover bg-no-repeat`,style:{backgroundImage:`url(${e.avatar})`}}),(0,p.jsxs)(`div`,{className:`flex flex-col items-start justify-center`,children:[(0,p.jsx)(`div`,{className:`font-sans text-base font-semibold tracking-tight text-white`,children:e.name}),(0,p.jsx)(`div`,{className:`font-sans text-sm tracking-tight text-neutral-400`,children:e.expertise})]})]})},e.name),t=[],n=[{avatar:`https://randomuser.me/api/portraits/men/32.jpg`,name:`James Fletcher`,expertise:o(`Full-time parent`)},{avatar:`https://randomuser.me/api/portraits/women/30.jpg`,name:`Naomi Schiff`,expertise:o(`Founder @ Acme Inc`)},{avatar:`https://randomuser.me/api/portraits/men/4.jpg`,name:`Franz Tost`,expertise:o(`Neurosurgeon`)},{avatar:`https://randomuser.me/api/portraits/women/51.jpg`,name:`Katrina Klosp`,expertise:o(`Local resident`)}];for(let r=0;r<n.length;r++)t.push(e(n[r]));return t},x=(0,h.default)(o(`{amount} characters left`),`{amount}`,()=>(0,p.jsx)(`b`,{children:f}));return(0,p.jsx)(`div`,{className:`rounded-none relative h-screen w-screen overflow-hidden bg-white p-[28px] text-center shadow-modal sm:h-auto sm:w-[720px] sm:rounded-xl sm:p-0`,"data-testid":`profile-modal`,onMouseDown:e=>e.stopPropagation(),children:(0,p.jsxs)(`div`,{className:`flex`,children:[(0,p.jsx)(`div`,{className:`hidden w-[50%] flex-col items-center justify-center bg-neutral-800 sm:block sm:p-8`,children:(0,p.jsx)(`div`,{className:`mt-[-1px] flex flex-col gap-9 text-left`,children:b()})}),(0,p.jsxs)(`div`,{className:`p-0 sm:p-8`,children:[(0,p.jsxs)(`h1`,{className:`mb-1 text-center font-sans text-2xl font-bold tracking-tight text-black sm:text-left`,children:[o(`Complete your profile`),(0,p.jsx)(`span`,{className:`hidden sm:inline`,children:`.`})]}),(0,p.jsx)(`p`,{className:`pr-0 text-center font-sans text-md leading-snug text-neutral-500 sm:pr-10 sm:text-left`,children:o(`Add context to your comment, share your name and expertise to foster a healthy discussion.`)}),(0,p.jsxs)(`section`,{className:`mt-8 text-left`,children:[(0,p.jsxs)(`div`,{className:`mb-2 flex flex-row justify-between`,children:[(0,p.jsx)(`label`,{className:`font-sans text-base font-semibold`,htmlFor:`comments-name`,children:o(`Name`)}),(0,p.jsx)(op,{enter:`transition duration-300 ease-out`,enterFrom:`opacity-0`,enterTo:`opacity-100`,leave:`transition duration-100 ease-out`,leaveFrom:`opacity-100`,leaveTo:`opacity-0`,show:!!g.name,children:(0,p.jsx)(`div`,{className:`font-sans text-sm text-red-500`,children:g.name})})]}),(0,p.jsx)(`input`,{ref:t,className:`flex h-[42px] w-full items-center rounded border border-neutral-200 px-3 font-sans text-[16px] outline-0 transition-[border-color] duration-200 focus:border-neutral-300 ${g.name&&`border-red-500 focus:border-red-500`}`,"data-testid":`name-input`,id:`comments-name`,maxLength:64,name:`name`,placeholder:o(`Jamie Larson`),type:`text`,value:s,onChange:e=>{c(e.currentTarget.value)},onKeyDown:e=>{e.key===`Enter`&&(c(e.currentTarget.value),y().catch(console.error))}}),(0,p.jsxs)(`div`,{className:`mb-2 mt-6 flex flex-row justify-between`,children:[(0,p.jsx)(`label`,{className:`font-sans text-base font-semibold`,htmlFor:`comments-name`,children:o(`Expertise`)}),(0,p.jsx)(`div`,{className:`font-sans text-base text-neutral-400 ${f===0&&`text-red-500`}`,children:x})]}),(0,p.jsx)(`input`,{ref:n,className:`flex h-[42px] w-full items-center rounded border border-neutral-200 px-3 font-sans text-[16px] outline-0 transition-[border-color] duration-200 focus:border-neutral-300 ${f===0&&`border-red-500 focus:border-red-500`}`,"data-testid":`expertise-input`,id:`comments-expertise`,maxLength:50,name:`expertise`,placeholder:o(`Head of Marketing at Acme, Inc`),type:`text`,value:l,onChange:e=>{let t=e.currentTarget.value;m(50-t.length),u(t)},onKeyDown:e=>{e.key===`Enter`&&(u(e.currentTarget.value),y().catch(console.error))}}),(0,p.jsx)(`button`,{className:`mt-10 flex h-[42px] w-full items-center justify-center rounded-md px-8 font-sans text-md font-semibold text-white opacity-100 transition-opacity duration-200 ease-linear hover:opacity-90`,"data-testid":`save-button`,style:{backgroundColor:a??`#000000`},type:`button`,onClick:()=>{y().catch(console.error)},children:o(`Save`)})]})]}),(0,p.jsx)($_,{close:()=>v(!1)})]})})},tv=({commentId:e})=>{let{dispatchAction:t,isMember:n,isPaidOnly:r}=j(),i=e=>{e.stopPropagation()},a=()=>{t(`closePopup`,{})};return(0,p.jsx)(`div`,{className:`rounded-none relative h-screen w-screen bg-white p-[28px] text-center shadow-modal sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left`,onClick:a,onMouseDown:i,children:(0,p.jsxs)(`div`,{className:`flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0`,children:[(0,p.jsx)(`div`,{className:`flex flex-col items-center pb-3 pt-6`,"data-testid":`cta-box`,children:(0,p.jsx)(ae,{commentId:e,isFirst:!n,isPaid:r})}),(0,p.jsx)($_,{close:a})]})})},nv=e=>(0,p.jsx)(`svg`,{width:`26px`,height:`26px`,viewBox:`-1 -1 26 26`,xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,...e,children:(0,p.jsx)(`g`,{id:`check-circle`,stroke:`none`,strokeWidth:1,fill:`none`,fillRule:`evenodd`,children:(0,p.jsx)(`path`,{className:`animated-check-circle`,d:`M19.6004116,2.71490714 C17.5353801,1.0196018 14.8927356,0 12,0 C5.38938053,0 0,5.38938053 0,12 C0,18.6106195 5.38938053,24 12,24 C18.6106195,24 24,18.6106195 24,12 C24,9.71681416 23.3628319,7.59292035 22.2743363,5.78761062 L11.0442478,17.0442478 L5.49557522,11.4955752`,id:`Shape`,stroke:`#FFFFFF`,strokeWidth:2})})}),rv={addDetailsPopup:ev,reportPopup:({comment:e})=>{let{dispatchAction:t,t:n}=j(),[r,i]=(0,k.useState)(`default`),a=`bg-red-600`;r===`sent`&&(a=`bg-green-600`);let o=n(`Report`),s=o;r===`sending`?o=n(`Sending`):r===`sent`&&(o=n(`Sent`));let c=(0,p.jsx)(se,{className:`mr-2 size-[24px] fill-white`}),l=(0,p.jsx)(nv,{className:`mr-2 size-[16px]`}),u=null;r===`sending`?u=c:r===`sent`&&(u=l);let d=e=>{e.stopPropagation()},f=()=>{t(`closePopup`,{})};return(0,p.jsx)(`div`,{className:`rounded-none relative h-screen w-screen bg-white p-[28px] text-center shadow-modal sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left`,onMouseDown:d,children:(0,p.jsxs)(`div`,{className:`flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0`,children:[(0,p.jsx)(`h1`,{className:`mb-1.5 font-sans text-[2.2rem] font-bold tracking-tight text-black`,children:(0,p.jsx)(`span`,{children:n(`Report this comment?`)})}),(0,p.jsx)(`p`,{className:`px-4 font-sans text-md leading-9 text-black sm:pl-0 sm:pr-4`,children:n(`Your request will be sent to the owner of this site.`)}),(0,p.jsxs)(`div`,{className:`mt-auto flex flex-col items-center justify-start gap-4 sm:mt-8 sm:flex-row`,children:[(0,p.jsxs)(`button`,{className:`flex h-[44px] w-full items-center justify-center rounded-md px-4 font-sans text-md font-medium text-white transition duration-200 ease-linear sm:w-fit ${a} opacity-100 hover:opacity-90`,style:{backgroundColor:a??`#000000`},type:`button`,onClick:n=>{n.stopPropagation(),i(`sending`),setTimeout(()=>{i(`sent`),t(`reportComment`,e),setTimeout(()=>{f()},750)},1e3)},children:[(0,p.jsxs)(`span`,{className:`invisible whitespace-nowrap`,children:[s,(0,p.jsx)(`br`,{}),(0,p.jsxs)(`span`,{className:`flex h-[44px] items-center justify-center whitespace-nowrap`,children:[c,n(`Sending`)]}),(0,p.jsx)(`br`,{}),(0,p.jsxs)(`span`,{className:`flex h-[44px] items-center justify-center whitespace-nowrap`,children:[l,n(`Sent`)]})]}),(0,p.jsxs)(`span`,{className:`absolute flex h-[44px] items-center justify-center whitespace-nowrap`,children:[u,o]})]}),(0,p.jsx)(`button`,{className:`h-[44px] w-full px-2 font-sans text-md font-medium text-neutral-500 dark:text-neutral-400 sm:w-fit`,type:`button`,onClick:f,children:n(`Cancel`)})]}),(0,p.jsx)($_,{close:f})]})})},ctaPopup:tv,deletePopup:({comment:e})=>{let{dispatchAction:t,t:n}=j(),[r,i]=(0,k.useState)(`default`),[a,o]=(0,k.useState)(!1),s=`bg-red-600`;r===`sent`&&(s=`bg-green-600`);let c=n(`Delete`),l=c;r===`sending`?c=n(`Deleting`):r===`sent`&&(c=n(`Deleted`));let u=(0,p.jsx)(se,{className:`mr-2 size-[24px] fill-white`}),d=(0,p.jsx)(nv,{className:`mr-2 size-[16px]`}),f=null;r===`sending`?f=u:r===`sent`&&(f=d);let m=e=>{e.stopPropagation()},h=()=>{t(`closePopup`,{})};return(0,p.jsx)(`div`,{className:`rounded-none relative h-screen w-screen bg-white p-[28px] text-center shadow-modal sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left`,"data-testid":`delete-popup`,onMouseDown:m,children:(0,p.jsxs)(`div`,{className:`flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0`,children:[(0,p.jsx)(`h1`,{className:`mb-1.5 font-sans text-[2.2rem] font-bold tracking-tight text-black`,children:(0,p.jsx)(`span`,{children:n(`Are you sure?`)})}),(0,p.jsx)(`p`,{className:`px-4 font-sans text-md leading-9 text-black sm:pl-0 sm:pr-4`,children:n(`Once deleted, this comment can’t be recovered.`)}),(0,p.jsxs)(`div`,{className:`mt-auto flex flex-col items-center justify-start gap-4 sm:mt-8 sm:flex-row`,children:[(0,p.jsxs)(`button`,{className:`flex h-[44px] w-full items-center justify-center rounded-md px-4 font-sans text-md font-medium text-white transition duration-200 ease-linear sm:w-fit ${s} opacity-100 hover:opacity-90`,"data-testid":`delete-popup-confirm`,disabled:a,type:`button`,onClick:n=>{n.stopPropagation(),!a&&(o(!0),i(`sending`),setTimeout(()=>{i(`sent`),t(`deleteComment`,e),setTimeout(()=>{h()},750)},1e3))},children:[(0,p.jsxs)(`span`,{className:`invisible whitespace-nowrap`,children:[l,(0,p.jsx)(`br`,{}),(0,p.jsxs)(`span`,{className:`flex h-[44px] items-center justify-center whitespace-nowrap`,children:[u,n(`Deleting`)]}),(0,p.jsx)(`br`,{}),(0,p.jsxs)(`span`,{className:`flex h-[44px] items-center justify-center whitespace-nowrap`,children:[d,n(`Deleted`)]})]}),(0,p.jsxs)(`span`,{className:`absolute flex h-[44px] items-center justify-center whitespace-nowrap`,children:[f,c]})]}),(0,p.jsx)(`button`,{className:`h-[44px] w-full px-2 font-sans text-md font-medium text-neutral-500 dark:text-neutral-400 sm:w-fit`,type:`button`,onClick:h,children:n(`Cancel`)})]}),(0,p.jsx)($_,{close:h})]})})}},iv=()=>{let{popup:e}=j(),[t,n]=(0,k.useState)(e);if((0,k.useEffect)(()=>{if(e!==null&&n(e),e===null){let e=setTimeout(()=>{n(null)},250);return()=>{clearTimeout(e)}}},[e,n]),!t||!t.type)return null;let{type:r,...i}=e??t,a=rv[r];if(!a)return console.warn(`Unknown popup of type `,r),null;let o=e===t;return(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(Z_,{callback:i.callback,show:o,title:r,children:(0,p.jsx)(a,{...i})})})},av={"{amount} characters left":`{amount} karakters oor`,"{amount} comments":`{amount} kommentaar`,"{amount} hrs ago":`{amount} ure gelede`,"{amount} mins ago":`{amount} minute gelede`,"{amount} more":`{amount} meer`,"1 comment":`1 kommentaar`,"Add comment":`Voeg kommentaar by`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Voeg konteks by jou kommentaar, deel jou naam en kundigheid om 'n gesonde bespreking te bevorder.`,"Add reply":`Voeg antwoord by`,"Add your expertise":``,"Already a member?":`Reeds 'n lid?`,Anonymous:`Anoniem`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Word 'n lid van {publication} om kommentaar te lewer.`,"Become a paid member of {publication} to start commenting.":`Word 'n betaalde lid van {publication} om kommentaar te lewer.`,Best:``,Cancel:`Kanselleer`,Comment:`Kommentaar`,"Commenting disabled":``,"Complete your profile":`Voltooi jou profiel`,Delete:`Skrap`,Deleted:``,"Deleted member":`Geskrapte lid`,Deleting:``,Discussion:`Bespreking`,Dislike:``,Edit:`Redigeer`,"Edit this comment":`Redigeer hierdie kommentaar`,edited:`geredigeer`,"Enter your name":`Voer jou naam in`,Expertise:`Kundigheid`,"Founder @ Acme Inc":`Stigter @ Acme Inc`,"Full-time parent":`Voltydse ouer`,"Head of Marketing at Acme, Inc":`Hoof van Bemarking by Acme, Inc`,"Hidden for members":``,"Hide comment":`Versteek kommentaar`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Sluit aan by die bespreking`,"Just now":`Sopas`,Like:``,"Load more ({amount})":``,"Local resident":`Plaaslike inwoner`,"Member discussion":`Lidmaat bespreking`,Name:`Naam`,Neurosurgeon:`Neurochirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Een uur gelede`,"One min ago":`Een minuut gelede`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Antwoord`,"Reply to":``,"Reply to comment":`Antwoord op kommentaar`,Report:`Rapporteer`,"Report comment":`Rapporteer kommentaar`,"Report this comment?":`Rapporteer hierdie kommentaar?`,Save:`Stoor`,"See full discussion":``,Sending:`Besig om te stuur`,Sent:`Gestuur`,"Show {amount} more replies":`Wys {amount} meer antwoorde`,"Show 1 more reply":`Wys nog 1 antwoord`,"Show comment":`Wys kommentaar`,"Sign in":`Teken in`,"Sign up now":`Sluit nou aan`,"Sort by":``,"Start the conversation":`Begin die gesprek`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Hierdie kommentaar is weggesteek.`,"This comment has been removed.":`Hierdie kommentaar is verwyder.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Gradeer nou op`,"View in admin":``,Yesterday:`Gister`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Jou versoek sal aan die eienaar van hierdie webwerf gestuur word.`},ov={"{amount} characters left":`الحروف المتبقية : {amount}`,"{amount} comments":`{amount} تعليق/ات`,"{amount} hrs ago":`منذ {amount} ساعات`,"{amount} mins ago":`منذ {amount} دقيقة`,"{amount} more":`{amount} المزيد`,"1 comment":`تعليق واحد`,"Add comment":`اضف تعليق`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`قم بإضافة سياق لتعليقك، شارك اسمك و مجال خبرتك لكي نرعى محادثة مثمرة`,"Add reply":`ردّ`,"Add your expertise":``,"Already a member?":`هل انت مسجل بالفعل؟`,Anonymous:`مجهول`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`يجب أن تصبح عضوًا فى {publication} لتستطيع التعليق`,"Become a paid member of {publication} to start commenting.":`يجب ان تكون عضويتك مدفوعة فى {publication} لكي تستطيع التعليق`,Best:``,Cancel:`إلغاء`,Comment:`تعليق`,"Commenting disabled":``,"Complete your profile":`إكمال ملفك الشخصى`,Delete:`حذف`,Deleted:``,"Deleted member":`الاعضاء المحذوفين`,Deleting:``,Discussion:`النقاش`,Dislike:``,Edit:`تعديل`,"Edit this comment":`عدّل هذا التعليق`,edited:`تم التعديل`,"Enter your name":`اكتب اسمك`,Expertise:`مجال تخصصك`,"Founder @ Acme Inc":`مؤسس لدى شركة أكمي`,"Full-time parent":`أب بدوام كامل`,"Head of Marketing at Acme, Inc":`رئيس وحدة التسويق لدى شركة أكمى`,"Hidden for members":``,"Hide comment":`اخف التعليق`,"Jamie Larson":`فلان الفلانى`,"Join the discussion":`انضم للمحادثة`,"Just now":`الآن`,Like:``,"Load more ({amount})":``,"Local resident":`مقيم محلى`,"Member discussion":`مناقشة الاعضاء`,Name:`الاسم`,Neurosurgeon:`جراح المخ و الاعصاب`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`منذ ساعة واحدة`,"One min ago":` منذ دقيقة واحدة`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`رد`,"Reply to":``,"Reply to comment":`رد على هذا التعليق`,Report:`الإبلاغ`,"Report comment":`ابلغ عن هذا التعليق`,"Report this comment?":`الإبلاغ عن التعليق؟`,Save:`حفظ`,"See full discussion":``,Sending:`جارى الارسال`,Sent:`تم الارسال`,"Show {amount} more replies":`اظهر {amount} ردود`,"Show 1 more reply":`اظهر تعليق وحيد`,"Show comment":`اظهر التعليق`,"Sign in":`تسجيل الدخول`,"Sign up now":`قم بالتسجيل الآن`,"Sort by":`ترتيب بحسب`,"Start the conversation":`ابدأ النقاش`,"The linked comment is no longer available.":``,"This comment has been hidden.":`تم اخفاء هذا التعليق`,"This comment has been removed.":`تم حذف هذا التعليق`,Unpin:``,"Unpin comment":``,"Upgrade now":`قم بالترقية الآن`,"View in admin":``,Yesterday:`أمس`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`سيتم ارسال طلبك لصاحب الموقع`},sv={"{amount} characters left":`Остават {amount} знака`,"{amount} comments":`{amount} коментара`,"{amount} hrs ago":`Преди {amount} часа`,"{amount} mins ago":`Преди {amount} минути`,"{amount} more":`Още {amount}`,"1 comment":`1 коментар`,"Add comment":`Нов коментар`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Добавете контекст към коментара си, споделете името си и опита си, за да насърчите полезна дискусия.`,"Add reply":`Отговор`,"Add your expertise":`Добавете компетенции`,"Already a member?":`Вече сте абонат?`,Anonymous:`Анонимен`,"Are you sure?":`Убедени ли сте?`,Back:`Назад`,"Become a member of {publication} to start commenting.":`Абонирайте се за {publication}, за да коментирате.`,"Become a paid member of {publication} to start commenting.":`Станете плащащ абонат на {publication}, за да коментирате.`,Best:`Най-добрите`,Cancel:`Отказ`,Comment:`Коментар`,"Commenting disabled":`Коментирането е изключено`,"Complete your profile":`Попълнете профила си`,Delete:`Изтриване`,Deleted:`Изтрито`,"Deleted member":`Изтрит абонат`,Deleting:`Изтриване`,Discussion:`Дискусия`,Dislike:`Не ми харесва`,Edit:`Редактиране`,"Edit this comment":`Редактиране на коментара`,edited:`редактиран`,"Enter your name":`Попълнете името си`,Expertise:`Компетенции`,"Founder @ Acme Inc":`Основател на Компания ООД`,"Full-time parent":`Родител на пълно работно време`,"Head of Marketing at Acme, Inc":`Директор маркетинг в Компания ООД`,"Hidden for members":`Скрит за абонати`,"Hide comment":`Скриване на коментара`,"Jamie Larson":`Иван Иванов`,"Join the discussion":`Участвайте в дискусията`,"Just now":`Току-що`,Like:`Харесва ми`,"Load more ({amount})":`Още ({amount})`,"Local resident":`Местен жител`,"Member discussion":`Дискусия за абонатите`,Name:`Име`,Neurosurgeon:`Неврохирург`,Newest:`Най-нови`,Oldest:`Най-стари`,"Once deleted, this comment can’t be recovered.":`Веднъж изтрит, коментарът не може да бъде възстановен.`,"One hour ago":`Преди час`,"One min ago":`Преди минута`,"Pin comment":`Залепи коментара`,Pinned:`Залепен`,"Read more replies":`Още отговори`,"Remove dislike":`Отмени нехаресването`,"Remove like":`Отмени харесването`,Reply:`Отговор`,"Reply to":`Отговор на`,"Reply to comment":`Отговор на коментара`,Report:`Докладване`,"Report comment":`Докладване на коментара`,"Report this comment?":`Ще докладвате ли коментара?`,Save:`Запис`,"See full discussion":`Вижте цялата дискусия`,Sending:`Изпращане`,Sent:`Изпратен`,"Show {amount} more replies":`Покажи още {amount} отговора`,"Show 1 more reply":`Покажи още един отговор`,"Show comment":`Покажи коментар`,"Sign in":`Вход`,"Sign up now":`Регистрация`,"Sort by":`Сортиране по`,"Start the conversation":`Започнете дискусия`,"The linked comment is no longer available.":`Посоченият коментар вече не е наличен.`,"This comment has been hidden.":`Този коментар е скрит.`,"This comment has been removed.":`Този коментар е премахнат.`,Unpin:`Отлепи`,"Unpin comment":`Отлепи коментара`,"Upgrade now":`Надградете сега`,"View in admin":`Преглед в админ панела`,Yesterday:`Вчера`,"You can't post comments in this publication.":`Не може да коментирате под тази публикация.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Не може да коментирате под тази публикация. <a>Връзка с поддръжката</a> за повече информация.`,"Your request will be sent to the owner of this site.":`Искането ще бъде изпратено до собственика на сайта.`},cv={"{amount} characters left":`{amount} অক্ষর বাকি`,"{amount} comments":`{amount} মন্তব্য`,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":`{amount}টি আরও`,"1 comment":`১টি মন্তব্য`,"Add comment":`মন্তব্য যোগ করুন`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`আপনার মন্তব্যে প্রসঙ্গ যোগ করুন, একটি সুস্থ আলোচনা করতে আপনার নাম ও অভিজ্ঞতা শেয়ার করুন।`,"Add reply":`উত্তর যোগ করুন`,"Add your expertise":``,"Already a member?":`ইত:পূর্বে সদস্য?`,Anonymous:`অজ্ঞাতনামা`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`{publication} এর সদস্য হন মন্তব্য করার জন্য।`,"Become a paid member of {publication} to start commenting.":`{publication} এর পেইড সদস্য হন মন্তব্য করার জন্য।`,Best:``,Cancel:`বাতিল করুন`,Comment:`মন্তব্য`,"Commenting disabled":``,"Complete your profile":`আপনার প্রোফাইল সম্পূর্ণ করুন`,Delete:`মুছে ফেলুন`,Deleted:``,"Deleted member":`মুছে ফেলা সদস্য`,Deleting:``,Discussion:`আলোচনা`,Dislike:``,Edit:`সম্পাদনা`,"Edit this comment":`এই মন্তব্য সম্পাদনা করুন`,edited:``,"Enter your name":`আপনার নাম লিখুন`,Expertise:`বিশেষজ্ঞতা`,"Founder @ Acme Inc":`প্রতিষ্ঠাতা @ বাংলাদেশ ট্রেড হাব`,"Full-time parent":`পূর্ণকালীন অভিভাবক`,"Head of Marketing at Acme, Inc":`মার্কেটিং প্রধান @ বাংলাদেশ ট্রেড হাব`,"Hidden for members":``,"Hide comment":`মন্তব্য লুকান`,"Jamie Larson":`শাহ নেওয়াজ`,"Join the discussion":`আলোচনায় যোগ দিন`,"Just now":`এখনই`,Like:``,"Load more ({amount})":``,"Local resident":`স্থানীয় বাসিন্দা`,"Member discussion":`সদস্য আলোচনা`,Name:`নাম`,Neurosurgeon:`নিউরোসার্জন`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`এক ঘণ্টা পূর্বে`,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`উত্তর`,"Reply to":``,"Reply to comment":`মন্তব্যের উত্তর দিন`,Report:`প্রতিবেদন`,"Report comment":`মন্তব্য প্রতিবেদন করুন`,"Report this comment?":`এই মন্তব্য প্রতিবেদন করবেন?`,Save:`সংরক্ষণ করুন`,"See full discussion":``,Sending:`পাঠানো হচ্ছে`,Sent:`পাঠানো হয়েছে`,"Show {amount} more replies":` আরো {amount}টি উত্তর দেখান`,"Show 1 more reply":`১টি আরো উত্তর দেখান`,"Show comment":`মন্তব্য দেখান`,"Sign in":`সাইন ইন করুন`,"Sign up now":`এখনই সাইন আপ করুন`,"Sort by":``,"Start the conversation":`আলোচনা শুরু করুন`,"The linked comment is no longer available.":``,"This comment has been hidden.":`এই মন্তব্য লুকানো হয়েছে।`,"This comment has been removed.":`এই মন্তব্য মুছে ফেলা হয়েছে।`,Unpin:``,"Unpin comment":``,"Upgrade now":`এখনই আপগ্রেড করুন`,"View in admin":``,Yesterday:`গতকাল`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`আপনার অনুরোধ সাইটের মালিকের কাছে পাঠানো হবে।`},lv={"{amount} characters left":`Preostalo {amount} karaktera`,"{amount} comments":`{amount} komentara`,"{amount} hrs ago":`Prije {amount} sati`,"{amount} mins ago":`Prije {amount} minuta`,"{amount} more":`Još {amount}`,"1 comment":`1 komentar`,"Add comment":`Dodaj komentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Dodaj kontekst svom komentaru, podijeli svoje ime i stručnost u svrhu kvalitetnije diskusije.`,"Add reply":`Objavi komentar`,"Add your expertise":``,"Already a member?":`Već si član?`,Anonymous:`Anoniman`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Postani član portala {publication} za pristup diskusiji.`,"Become a paid member of {publication} to start commenting.":`Postani plaćeni član portala {publication} za pristup diskusiji.`,Best:``,Cancel:`Otkaži`,Comment:`Komentar`,"Commenting disabled":``,"Complete your profile":`Dovrši svoj profil`,Delete:`Obriši`,Deleted:``,"Deleted member":`Obrisan član`,Deleting:``,Discussion:`Diskusija`,Dislike:``,Edit:`Uredi`,"Edit this comment":`Uredi komentar`,edited:`uređeno`,"Enter your name":`Unesi ime`,Expertise:`Stručnost`,"Founder @ Acme Inc":`Acme Inc osnivač`,"Full-time parent":`Full time roditelj`,"Head of Marketing at Acme, Inc":`Šef marketinga u kompaniji Acme d.o.o`,"Hidden for members":``,"Hide comment":`Sakrij komentar`,"Jamie Larson":`Vanja Larsić`,"Join the discussion":`Pridruži se diskusiji`,"Just now":`Upravo sada`,Like:``,"Load more ({amount})":``,"Local resident":`Lokalni stanovnik`,"Member discussion":`Diskusija članova`,Name:`Ime`,Neurosurgeon:`Neurohirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Prije jedan sat`,"One min ago":`Prije jedan minut`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Odgovori`,"Reply to":``,"Reply to comment":`Odgovori na komentar`,Report:`Prijavi`,"Report comment":`Prijavi komentar`,"Report this comment?":`Prijavi ovaj komentar?`,Save:`Sačuvaj`,"See full discussion":``,Sending:`Šaljem`,Sent:`Poslano`,"Show {amount} more replies":`Prikaži još {amount} odgovora`,"Show 1 more reply":`Prikaži još jedan odgovor`,"Show comment":`Prikaži komentar`,"Sign in":`Prijavi se`,"Sign up now":`Postani član`,"Sort by":``,"Start the conversation":`Započni diskusiju`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Ovaj komentar je sakriven.`,"This comment has been removed.":`Ovaj komentar je uklonjen.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Nadogradi račun sada`,"View in admin":``,Yesterday:`Jučer`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Tvoj zahtjev je poslan vlasniku stranice.`},uv={"{amount} characters left":`{amount} caràcters restants`,"{amount} comments":`{amount} comentaris`,"{amount} hrs ago":`Fa {amount} hores`,"{amount} mins ago":`Fa {amount} minuts`,"{amount} more":`{amount} més`,"1 comment":`Un comentari`,"Add comment":`Afegeix un comentari`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Afegeix context al teu comentari, comparteix el teu nom i experiència per fomentar una discussió sana.`,"Add reply":`Afegeix una resposta`,"Add your expertise":``,"Already a member?":`Ja n'ets membre?`,Anonymous:`Anònim`,"Are you sure?":`N'estàs segur?`,Back:``,"Become a member of {publication} to start commenting.":`Fes-te membre de {publication} per començar a comentar.`,"Become a paid member of {publication} to start commenting.":`Fes-te membre de pagament de {publication} per començar a comentar`,Best:``,Cancel:`Cancel·la`,Comment:`Comentari`,"Commenting disabled":``,"Complete your profile":`Completa el teu perfil`,Delete:`Esborra`,Deleted:`Esborrat`,"Deleted member":`Membre esborrat`,Deleting:`Esborrant`,Discussion:`Debat`,Dislike:``,Edit:`Edita`,"Edit this comment":`Edita aquest comentari`,edited:`editat`,"Enter your name":`Escriu el teu nom`,Expertise:`Expertesa`,"Founder @ Acme Inc":`Fundador @ Acme Inc`,"Full-time parent":`Pare a temps complet`,"Head of Marketing at Acme, Inc":`Cap de màrqueting a Acme, Inc`,"Hidden for members":`Ocult pels membres`,"Hide comment":`Oculta el comentari`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Uneix-te al debat`,"Just now":`Just ara`,Like:``,"Load more ({amount})":``,"Local resident":`Resident local`,"Member discussion":`Debat de membres`,Name:`Nom`,Neurosurgeon:`Neurocirurgià`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Un cop esborrat, aquest comentari no es pot recuperar`,"One hour ago":`Fa una hora`,"One min ago":`Fa un minut`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Respon`,"Reply to":`Respon a`,"Reply to comment":`Respon al comentari`,Report:`Reporta`,"Report comment":`Reporta comentari`,"Report this comment?":`Reporta aquest comentari?`,Save:`Desa`,"See full discussion":``,Sending:`Enviant`,Sent:`Enviat`,"Show {amount} more replies":`Mostra {amount} respostes més`,"Show 1 more reply":`Mostra 1 resposta més`,"Show comment":`Mostra comentari`,"Sign in":`Inicia sessió`,"Sign up now":`Registra't ara`,"Sort by":`Ordena per`,"Start the conversation":`Comença la conversa`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Aquest comentari s'ha ocultat.`,"This comment has been removed.":`Aquest comentari s'ha esborrat.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Actualitza ara`,"View in admin":``,Yesterday:`Ahir`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`La teva sol·licitud s'enviarà al propietari d'aquest lloc.`},dv={"{amount} characters left":`Zbývá {amount} znaků`,"{amount} comments":`{amount} komentářů`,"{amount} hrs ago":`Před {amount} hodinami`,"{amount} mins ago":`Před {amount} minutami`,"{amount} more":`Dalších {amount}`,"1 comment":`1 komentář`,"Add comment":`Přidat komentář`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Pro podporu zdravé diskuse přidejte ke svému komentáři kontext, své jméno a odbornost.`,"Add reply":`Přidat odpověď`,"Add your expertise":``,"Already a member?":`Už jste členem?`,Anonymous:`Anonymní`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Staňte se členem {publication}, abyste mohli začít komentovat.`,"Become a paid member of {publication} to start commenting.":`Staňte se placeným členem {publication}, abyste mohli začít komentovat.`,Best:``,Cancel:`Zrušit`,Comment:`Komentář`,"Commenting disabled":``,"Complete your profile":`Dokončete svůj profil`,Delete:`Smazat`,Deleted:``,"Deleted member":`Smazaný člen`,Deleting:``,Discussion:`Diskuse`,Dislike:``,Edit:`Upravit`,"Edit this comment":`Upravit tento komentář`,edited:`upraveno`,"Enter your name":`Zadejte své jméno`,Expertise:`Odbornost`,"Founder @ Acme Inc":`Zakladatel @ Acme Inc`,"Full-time parent":`Rodič na plný úvazek`,"Head of Marketing at Acme, Inc":`Vedoucí marketingu v Acme, Inc`,"Hidden for members":``,"Hide comment":`Skrýt komentář`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Připojte se k diskusi`,"Just now":`Právě teď`,Like:``,"Load more ({amount})":``,"Local resident":`Místní obyvatel`,"Member discussion":`Diskuse členů`,Name:`Jméno`,Neurosurgeon:`Neurochirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Před jednou hodinou`,"One min ago":`Před jednou minutou`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Odpovědět`,"Reply to":``,"Reply to comment":`Odpovědět na komentář`,Report:`Nahlásit`,"Report comment":`Nahlásit komentář`,"Report this comment?":`Nahlásit tento komentář?`,Save:`Uložit`,"See full discussion":``,Sending:`Odesílání`,Sent:`Odesláno`,"Show {amount} more replies":`Zobrazit {amount} dalších odpovědí`,"Show 1 more reply":`Zobrazit 1 další odpověď`,"Show comment":`Zobrazit komentář`,"Sign in":`Přihlásit se`,"Sign up now":`Zaregistrujte se nyní`,"Sort by":``,"Start the conversation":`Začněte konverzaci`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Tento komentář byl skryt.`,"This comment has been removed.":`Tento komentář byl odstraněn.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Upgradovat`,"View in admin":``,Yesterday:`Včera`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Vaše žádost bude odeslána vlastníkovi tohoto webu.`},fv={"{amount} characters left":`{amount} tegn tilbage`,"{amount} comments":`{amount} kommentarer`,"{amount} hrs ago":`{amount} timer siden`,"{amount} mins ago":`{amount} minutter siden`,"{amount} more":`{amount} mere`,"1 comment":`1 kommentar`,"Add comment":`Tilføj kommentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Tilføj kontekst til din kommentar, del dit navn og ekspertise for at fremme en sund diskussion.`,"Add reply":`Tilføj svar`,"Add your expertise":``,"Already a member?":`Allerede medlem?`,Anonymous:`Anonym`,"Are you sure?":`Er du sikker?`,Back:``,"Become a member of {publication} to start commenting.":`Bliv medlem af {publication} for at kunne skrive kommentarer.`,"Become a paid member of {publication} to start commenting.":`Bliv betalende medlem af {publication} for at kunne skrive kommentarer.`,Best:``,Cancel:`Annuller`,Comment:`Kommentér`,"Commenting disabled":``,"Complete your profile":`Færdiggør din profil`,Delete:`Slet`,Deleted:`Slettet`,"Deleted member":`Slettet medlem`,Deleting:`Sletter`,Discussion:`Diskussion`,Dislike:``,Edit:`Rediger`,"Edit this comment":`Rediger denne kommentar`,edited:`redigeret`,"Enter your name":`Indtast dit navn`,Expertise:`Ekspertise`,"Founder @ Acme Inc":`Grundlægger @ Acme Inc`,"Full-time parent":`Forældre på fuld tid`,"Head of Marketing at Acme, Inc":`Chef for marking hos Acme, Inc`,"Hidden for members":`Skjult for medlemmer`,"Hide comment":`Skjul kommentar`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Bliv en del af diskussionen`,"Just now":`Lige nu`,Like:``,"Load more ({amount})":`Indlæs mere ({amount})`,"Local resident":`Lokal borger`,"Member discussion":`Medlemsdiskussion`,Name:`Navn`,Neurosurgeon:`Neurokirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Når den først er slettet, kan denne kommentar ikke gendannes.`,"One hour ago":`En time siden`,"One min ago":`Et minut siden`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Svar`,"Reply to":`Svar`,"Reply to comment":`Svar på kommentar`,Report:`Rapportér`,"Report comment":`Rapportér kommentar`,"Report this comment?":`Rapportér denne kommentar?`,Save:`Gem`,"See full discussion":``,Sending:`Sender`,Sent:`Sendt`,"Show {amount} more replies":`Vis {amount} flere svar`,"Show 1 more reply":`Vis 1 mere svar`,"Show comment":`Vis kommentar`,"Sign in":`Log ind`,"Sign up now":`Tilmed dig nu`,"Sort by":`Sorter efter`,"Start the conversation":`Start samtalen`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Denne kommentar er blevet skjult.`,"This comment has been removed.":`Denne kommentar er blevet fjernet.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Opgrader nu`,"View in admin":``,Yesterday:`I går`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Din anmodning vil blive sendt til ejeren af dette site.`},pv={"{amount} characters left":`{amount} Zeichen übrig`,"{amount} comments":`{amount} Kommentare`,"{amount} hrs ago":`Vor {amount} Stunden`,"{amount} mins ago":`Vor {amount} Minuten`,"{amount} more":`{amount} weitere`,"1 comment":`1 Kommentar`,"Add comment":`Kommentar hinzufügen`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Füge deinem Kommentar Kontext hinzu, teile deinen Namen und deine Expertise, um eine gesunde Diskussion zu fördern.`,"Add reply":`Antwort hinzufügen`,"Add your expertise":`Ergänze deine Expertise`,"Already a member?":`Bist du bereits Mitglied?`,Anonymous:`Anonym`,"Are you sure?":`Bist du sicher?`,Back:``,"Become a member of {publication} to start commenting.":`Werde Mitglied bei {publication}, um Kommentare zu schreiben.`,"Become a paid member of {publication} to start commenting.":`Werde zahlendes Mitglied bei {publication}, um Kommentare zu schreiben.`,Best:`Beste`,Cancel:`Abbrechen`,Comment:`Kommentar`,"Commenting disabled":``,"Complete your profile":`Vervollständige dein Profil`,Delete:`Löschen`,Deleted:`Gelöscht`,"Deleted member":`Gelöschtes Mitglied`,Deleting:`Wird gelöscht`,Discussion:`Diskussion`,Dislike:``,Edit:`Bearbeiten`,"Edit this comment":`Diesen Kommentar bearbeiten`,edited:`bearbeitet`,"Enter your name":`Gib deinen Namen ein`,Expertise:`Expertise`,"Founder @ Acme Inc":`Gründer bei Acme Inc`,"Full-time parent":`Vollzeit-Elternteil`,"Head of Marketing at Acme, Inc":`Leiter Marketing bei Acme, Inc`,"Hidden for members":`Für Mitglieder verborgen`,"Hide comment":`Kommentar verbergen`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Nimm an der Diskussion teil`,"Just now":`Gerade eben`,Like:``,"Load more ({amount})":`Weitere laden ({amount})`,"Local resident":`Ortsansässiger`,"Member discussion":`Mitgliederdiskussion`,Name:`Name`,Neurosurgeon:`Neurochirurg`,Newest:`Neuste`,Oldest:`Älteste`,"Once deleted, this comment can’t be recovered.":`Der Kommentar kann nicht wiederhergestellt werden, sobald er gelöscht wurde.`,"One hour ago":`Vor einer Stunde`,"One min ago":`Vor einer Minute`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Antworten`,"Reply to":`Antwort auf`,"Reply to comment":`Auf Kommentar antworten`,Report:`Melden`,"Report comment":`Kommentar melden`,"Report this comment?":`Diesen Kommentar melden?`,Save:`Speichern`,"See full discussion":``,Sending:`Senden`,Sent:`Gesendet`,"Show {amount} more replies":`{amount} weitere Antworten anzeigen`,"Show 1 more reply":`1 weitere Antwort anzeigen`,"Show comment":`Kommentar anzeigen`,"Sign in":`Einloggen`,"Sign up now":`Jetzt registrieren`,"Sort by":`Sortiere nach`,"Start the conversation":`Beginne das Gespräch`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Dieser Kommentar wurde ausgeblendet.`,"This comment has been removed.":`Dieser Kommentar wurde entfernt.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Jetzt upgraden`,"View in admin":``,Yesterday:`Gestern`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Deine Anfrage wird an den Besitzer dieser Website gesendet.`},mv={"{amount} characters left":`{amount} Zeichen übrig`,"{amount} comments":`{amount} Kommentare`,"{amount} hrs ago":`Vor {amount} Stunden`,"{amount} mins ago":`Vor {amount} Minuten`,"{amount} more":`{amount} mehr`,"1 comment":`1 Kommentar`,"Add comment":`Kommentar hinzufügen`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Fügen Sie Kontext zu Ihrem Kommentar hinzu, teilen Sie Ihren Namen und Ihre Expertise, um eine gesunde Diskussion zu fördern.`,"Add reply":`Antwort hinzufügen`,"Add your expertise":`Teilen Sie Ihr Fachwissen`,"Already a member?":`Bereits ein Mitglied?`,Anonymous:`Anonym`,"Are you sure?":`Sind Sie sicher?`,Back:``,"Become a member of {publication} to start commenting.":`Werden Sie ein Mitglied bei {publication}, um Kommentare zu schreiben.`,"Become a paid member of {publication} to start commenting.":`Werden Sie ein zahlendes Mitglied bei {publication}, um Kommentare zu schreiben.`,Best:`Beste`,Cancel:`Abbrechen`,Comment:`Kommentar`,"Commenting disabled":``,"Complete your profile":`Vervollständigen Sie Ihr Profil`,Delete:`Löschen`,Deleted:`Gelöscht`,"Deleted member":`Gelöschtes Mitglied`,Deleting:`Löschen`,Discussion:`Diskussion`,Dislike:``,Edit:`Bearbeiten`,"Edit this comment":`Kommentar bearbeiten`,edited:`bearbeitet`,"Enter your name":`Geben Sie Ihren Namen ein`,Expertise:`Expertise`,"Founder @ Acme Inc":`Gründer bei Acme Inc`,"Full-time parent":`Vollzeit-Elternteil`,"Head of Marketing at Acme, Inc":`Leiter Marketing bei Acme, Inc`,"Hidden for members":`Verborgen für Mitglieder`,"Hide comment":`Kommentar verbergen`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`An der Diskussion teilnehmen`,"Just now":`Gerade eben`,Like:``,"Load more ({amount})":`Mehr laden ({amount})`,"Local resident":`Anwohner`,"Member discussion":`Mitgliederdiskussion`,Name:`Name`,Neurosurgeon:`Neurochirurg`,Newest:`Neueste`,Oldest:`Älteste`,"Once deleted, this comment can’t be recovered.":`Der Kommentar kann nicht wiederhergestellt werden, wenn er gelöscht wurde.`,"One hour ago":`Vor einer Stunde`,"One min ago":`Vor einer Minute`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Antworten`,"Reply to":`Antwort auf`,"Reply to comment":`Auf Kommentar antworten`,Report:`Melden`,"Report comment":`Kommentar melden`,"Report this comment?":`Diesen Kommentar melden?`,Save:`Speichern`,"See full discussion":``,Sending:`Senden`,Sent:`Gesendet`,"Show {amount} more replies":`{amount} weitere Antworten anzeigen`,"Show 1 more reply":`1 weitere Antwort anzeigen`,"Show comment":`Kommentar anzeigen`,"Sign in":`Anmelden`,"Sign up now":`Jetzt registrieren`,"Sort by":`Sortiere nach`,"Start the conversation":`Beginnen Sie das Gespräch`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Dieser Kommentar wurde ausgeblendet.`,"This comment has been removed.":`Dieser Kommentar wurde entfernt.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Jetzt upgraden`,"View in admin":``,Yesterday:`Gestern`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Ihre Anfrage wird an den Seitenbesitzer gesendet.`},hv={"{amount} characters left":`Απομένουν {amount} χαρακτήρες`,"{amount} comments":`{amount} σχόλια`,"{amount} hrs ago":`πριν από {amount} ώρες`,"{amount} mins ago":`πριν από {amount} λεπτά`,"{amount} more":`{amount} περισσότερα`,"1 comment":`1 σχόλιο`,"Add comment":`Προσθήκη σχολίου`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Προσθέστε περιεχόμενο στο σχόλιό σας, μοιραστείτε το όνομα και την εξειδίκευσή σας για να προωθήσετε μια υγιή συζήτηση.`,"Add reply":`Προσθήκη απάντησης`,"Add your expertise":`Προσθήκη εξειδίκευσης`,"Already a member?":`Ήδη μέλος;`,Anonymous:`Ανώνυμος`,"Are you sure?":`Σίγουρα;`,Back:`Επιστροφή`,"Become a member of {publication} to start commenting.":`Γίνετε μέλος του {publication} για να ξεκινήσετε να σχολιάζετε.`,"Become a paid member of {publication} to start commenting.":`Γίνετε συνδρομητικό μέλος του {publication} για να ξεκινήσετε να σχολιάζετε.`,Best:`Καλύτερο`,Cancel:`Ακύρωση`,Comment:`Σχόλιο`,"Commenting disabled":`Τα σχόλια έχουν απενεργοποιηθεί`,"Complete your profile":`Ολοκληρώστε το προφίλ σας`,Delete:`Διαγραφή`,Deleted:`Διαγράφηκε`,"Deleted member":`Διαγραμμένο μέλος`,Deleting:`Διαγράφεται…`,Discussion:`Συζήτηση`,Dislike:`Δεν μου αρέσει`,Edit:`Επεξεργασία`,"Edit this comment":`Επεξεργασία αυτού του σχολίου`,edited:`Επεξεργασμένο`,"Enter your name":`Εισάγετε το όνομά σας`,Expertise:`Εξειδίκευση`,"Founder @ Acme Inc":`Ιδρύτρια, Κύκλος ΙΚΕ`,"Full-time parent":`Γονέας πλήρους απασχόλησης`,"Head of Marketing at Acme, Inc":`Επικεφαλής Μάρκετινγκ, Κύκλος ΙΚΕ`,"Hidden for members":`Απόκρυφο από τα μέλη`,"Hide comment":`Απόκρυψη σχολίου`,"Jamie Larson":`Μαρία Βασιλείου`,"Join the discussion":`Συμμετέχετε στη συζήτηση`,"Just now":`Μόλις τώρα`,Like:`Μου αρέσει`,"Load more ({amount})":`Φόρτωση περισσότερων ({amount})`,"Local resident":`Τοπικός κάτοικος`,"Member discussion":`Συζήτηση μελών`,Name:`Όνομα`,Neurosurgeon:`Νευροχειρουργός`,Newest:`Νεότερο`,Oldest:`Παλαιότερο`,"Once deleted, this comment can’t be recovered.":`Μόλις διαγραφεί, αυτό το σχόλιο δεν μπορεί να ανακτηθεί.`,"One hour ago":`Πριν από μία ώρα`,"One min ago":`Πριν από ένα λεπτό`,"Pin comment":`Καρφίτσωμα σχολίου`,Pinned:`Καρφιτσωμένο`,"Read more replies":`Περισσότερες απαντήσεις`,"Remove dislike":`Αφαίρεση "Δεν μου αρέσει"`,"Remove like":`Αφαίρεση "Μου αρέσει"`,Reply:`Απάντηση`,"Reply to":`Σε απάντηση προς`,"Reply to comment":`Απάντηση στο σχόλιο`,Report:`Αναφορά`,"Report comment":`Αναφορά σχολίου`,"Report this comment?":`Αναφορά αυτού του σχολίου;`,Save:`Αποθήκευση`,"See full discussion":`Προβολή όλης της συζήτησης`,Sending:`Αποστέλλεται…`,Sent:`Απεστάλη`,"Show {amount} more replies":`Εμφάνιση {amount} περισσότερων απαντήσεων`,"Show 1 more reply":`Εμφάνιση 1 ακόμα απάντησης`,"Show comment":`Εμφάνιση σχολίου`,"Sign in":`Σύνδεση`,"Sign up now":`Εγγραφείτε τώρα`,"Sort by":`Ταξινόμηση κατά`,"Start the conversation":`Ξεκινήστε τη συζήτηση`,"The linked comment is no longer available.":`Το σχόλιο στο οποίο παραπέμπει ο σύνδεσμος δεν είναι πλέον διαθέσιμο.`,"This comment has been hidden.":`Αυτό το σχόλιο έχει αποκρυφθεί.`,"This comment has been removed.":`Αυτό το σχόλιο έχει αφαιρεθεί.`,Unpin:`Ξεκαρφίτσωμα`,"Unpin comment":`Ξεκαρφίτσωμα σχολίου`,"Upgrade now":`Αναβάθμιση τώρα`,"View in admin":`Προβολή στο διαχειριστικό`,Yesterday:`Χθες`,"You can't post comments in this publication.":`Δεν μπορείτε να σχολιάσετε σε αυτόν τον ιστότοπο.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Δεν μπορείτε να σχολιάσετε σε αυτόν τον ιστότοπο. <a>Επικοινωνήστε με την υποστήριξη</a> για περισσότερες πληροφορίες.`,"Your request will be sent to the owner of this site.":`Το αίτημά σας θα σταλεί στον ιδιοκτήτη αυτού του ιστότοπου.`},gv={"{amount} characters left":``,"{amount} comments":``,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":``,"1 comment":``,"Add comment":``,"Add context to your comment, share your name and expertise to foster a healthy discussion.":``,"Add reply":``,"Add your expertise":``,"Already a member?":``,Anonymous:``,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":``,"Become a paid member of {publication} to start commenting.":``,Best:``,Cancel:``,Comment:``,"Commenting disabled":``,"Complete your profile":``,Delete:``,Deleted:``,"Deleted member":``,Deleting:``,Discussion:``,Dislike:``,Edit:``,"Edit this comment":``,edited:``,"Enter your name":``,Expertise:``,"Founder @ Acme Inc":``,"Full-time parent":``,"Head of Marketing at Acme, Inc":``,"Hidden for members":``,"Hide comment":``,"Jamie Larson":``,"Join the discussion":``,"Just now":``,Like:``,"Load more ({amount})":``,"Local resident":``,"Member discussion":``,Name:``,Neurosurgeon:``,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":``,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:``,"Reply to":``,"Reply to comment":``,Report:``,"Report comment":``,"Report this comment?":``,Save:``,"See full discussion":``,Sending:``,Sent:``,"Show {amount} more replies":``,"Show 1 more reply":``,"Show comment":``,"Sign in":``,"Sign up now":``,"Sort by":``,"Start the conversation":``,"The linked comment is no longer available.":``,"This comment has been hidden.":``,"This comment has been removed.":``,Unpin:``,"Unpin comment":``,"Upgrade now":``,"View in admin":``,Yesterday:``,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":``},_v={"{amount} characters left":``,"{amount} comments":``,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":``,"1 comment":``,"Add comment":``,"Add context to your comment, share your name and expertise to foster a healthy discussion.":``,"Add reply":``,"Add your expertise":``,"Already a member?":``,Anonymous:``,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":``,"Become a paid member of {publication} to start commenting.":``,Best:``,Cancel:``,Comment:``,"Commenting disabled":``,"Complete your profile":``,Delete:``,Deleted:``,"Deleted member":``,Deleting:``,Discussion:``,Dislike:``,Edit:``,"Edit this comment":``,edited:``,"Enter your name":``,Expertise:``,"Founder @ Acme Inc":``,"Full-time parent":``,"Head of Marketing at Acme, Inc":``,"Hidden for members":``,"Hide comment":``,"Jamie Larson":``,"Join the discussion":``,"Just now":``,Like:``,"Load more ({amount})":``,"Local resident":``,"Member discussion":``,Name:``,Neurosurgeon:``,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":``,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:``,"Reply to":``,"Reply to comment":``,Report:``,"Report comment":``,"Report this comment?":``,Save:``,"See full discussion":``,Sending:``,Sent:``,"Show {amount} more replies":``,"Show 1 more reply":``,"Show comment":``,"Sign in":``,"Sign up now":``,"Sort by":``,"Start the conversation":``,"The linked comment is no longer available.":``,"This comment has been hidden.":``,"This comment has been removed.":``,Unpin:``,"Unpin comment":``,"Upgrade now":``,"View in admin":``,Yesterday:``,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":``},vv={"{amount} characters left":`{amount} caracteres restantes`,"{amount} comments":`{amount} comentarios`,"{amount} hrs ago":`Hace {amount} horas`,"{amount} mins ago":`Hace {amount} minutos`,"{amount} more":`{amount} más`,"1 comment":`1 comentario`,"Add comment":`Añadir comentario`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Añade contexto a tu comentario, comparte tu nombre y experiencia para fomentar un debate sano.`,"Add reply":`Añadir respuesta`,"Add your expertise":`Añadir tu experiencia`,"Already a member?":`¿Ya eres miembro?`,Anonymous:`Anónimo`,"Are you sure?":`¿Estás seguro?`,Back:`Atrás`,"Become a member of {publication} to start commenting.":`Hazte miembro de {publication} para poder comentar.`,"Become a paid member of {publication} to start commenting.":`Hazte miembro de pago para poder comentar en {publication}.`,Best:`Mejores`,Cancel:`Cancelar`,Comment:`Comentar`,"Commenting disabled":`Comentarios desactivados`,"Complete your profile":`Completa tu perfil`,Delete:`Eliminar`,Deleted:`Eliminado`,"Deleted member":`Eliminar miembro`,Deleting:`Eliminando`,Discussion:`Discusión`,Dislike:`No me gusta`,Edit:`Editar`,"Edit this comment":`Editar este comentario`,edited:`editado`,"Enter your name":`Introduce tu nombre`,Expertise:`Experiencia`,"Founder @ Acme Inc":`Fundador @ Acme Inc`,"Full-time parent":`Padre a tiempo completo`,"Head of Marketing at Acme, Inc":`Jefe de Marketing en Acme, Inc`,"Hidden for members":`Oculto para miembros`,"Hide comment":`Ocultar comentario`,"Jamie Larson":`Carlos Rodriguez`,"Join the discussion":`Únete a la discusión`,"Just now":`Justo ahora`,Like:`Me gusta`,"Load more ({amount})":`Cargar más ({amount})`,"Local resident":`Residente local`,"Member discussion":`Discusión de los miembros`,Name:`Nombre`,Neurosurgeon:`Neurocirujano`,Newest:`Más nuevos`,Oldest:`Más antiguos`,"Once deleted, this comment can’t be recovered.":`Este comentario no se puede recuperar una vez eliminado.`,"One hour ago":`Hace una hora`,"One min ago":`Hace un minuto`,"Pin comment":`Fijar comentario`,Pinned:`Fijado`,"Read more replies":`Ver más respuestas`,"Remove dislike":``,"Remove like":``,Reply:`Responder`,"Reply to":`Responder a`,"Reply to comment":`Responder al comentario`,Report:`Reportar`,"Report comment":`Reportar comentario`,"Report this comment?":`¿Reportar este comentario?`,Save:`Guardar`,"See full discussion":``,Sending:`Enviando`,Sent:`Enviado`,"Show {amount} more replies":`Mostrar {amount} respuestas más`,"Show 1 more reply":`Mostrar 1 respuesta más`,"Show comment":`Mostrar comentario`,"Sign in":`Inicia sesión`,"Sign up now":`Regístrate ahora`,"Sort by":`Ordenar por`,"Start the conversation":`Comienza la conversación`,"The linked comment is no longer available.":`El comentario enlazado ya no está disponible.`,"This comment has been hidden.":`Este comentario ha sido ocultado.`,"This comment has been removed.":`Este comentario ha sido borrado.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Actualiza tu cuenta ahora`,"View in admin":`Ver en la zona admin`,Yesterday:`Ayer`,"You can't post comments in this publication.":`No puedes publicar comentarios en esta publicación.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`No puedes publicar comentarios en esta publicación. <a>Contacta con soporte</a> para más información.`,"Your request will be sent to the owner of this site.":`Tu petición será enviada al dueño de este sitio web.`},yv={"{amount} characters left":`{amount} tähemärki jäänud`,"{amount} comments":`{amount} kommentaari`,"{amount} hrs ago":`{amount} tundi tagasi`,"{amount} mins ago":`{amount} minutit tagasi`,"{amount} more":`{amount} veel`,"1 comment":`1 kommentaar`,"Add comment":`Lisa kommentaar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Lisa oma kommentaarile konteksti, jaga oma nime ja kogemusi, et soodustada tervislikku arutelu.`,"Add reply":`Lisa vastus`,"Add your expertise":``,"Already a member?":`Juba liige?`,Anonymous:`Anonüümne`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Kommenteerimise alustamiseks saage {publication} liikmeks.`,"Become a paid member of {publication} to start commenting.":`Kommenteerimise alustamiseks saage {publication} tasuliseks liikmeks.`,Best:``,Cancel:`Tühista`,Comment:`Kommentaar`,"Commenting disabled":``,"Complete your profile":`Täida oma profiil`,Delete:`Kustuta`,Deleted:``,"Deleted member":`Kustutatud liige`,Deleting:``,Discussion:`Arutelu`,Dislike:``,Edit:`Muuda`,"Edit this comment":`Muuda seda kommentaari`,edited:`muudetud`,"Enter your name":`Sisesta oma nimi`,Expertise:`Oskused`,"Founder @ Acme Inc":`Asutaja @ Acme Inc`,"Full-time parent":`Täiskohaga lapsevanem`,"Head of Marketing at Acme, Inc":`Turundusjuht Acme, Inc-s`,"Hidden for members":``,"Hide comment":`Peida kommentaar`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Liitu aruteluga`,"Just now":`Just praegu`,Like:``,"Load more ({amount})":``,"Local resident":`Kohalik elanik`,"Member discussion":`Liikmete arutelu`,Name:`Nimi`,Neurosurgeon:`Neurokirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Üks tund tagasi`,"One min ago":`Üks minut tagasi`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Vasta`,"Reply to":``,"Reply to comment":`Vasta kommentaarile`,Report:`Teata`,"Report comment":`Teata kommentaarist`,"Report this comment?":`Teatada sellest kommentaarist?`,Save:`Salvesta`,"See full discussion":``,Sending:`Saatmine`,Sent:`Saadetud`,"Show {amount} more replies":`Näita {amount} vastust veel`,"Show 1 more reply":`Näita 1 vastus veel`,"Show comment":`Näita kommentaari`,"Sign in":`Logi sisse`,"Sign up now":`Registreeru nüüd`,"Sort by":``,"Start the conversation":`Alusta vestlust`,"The linked comment is no longer available.":``,"This comment has been hidden.":`See kommentaar on peidetud.`,"This comment has been removed.":`See kommentaar on eemaldatud.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Uuenda nüüd`,"View in admin":``,Yesterday:`Eile`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Teie taotlus saadetakse selle saidi omanikule.`},bv={"{amount} characters left":`{amount} geratzen dira`,"{amount} comments":`{amount} iruzkin`,"{amount} hrs ago":`Duela {amount} ordu`,"{amount} mins ago":`Duela {amount} minutu`,"{amount} more":`{amount} gehiago`,"1 comment":`Iruzkin 1`,"Add comment":`Egin iruzkina`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Gehitu testuingurua zure iruzkinari, partekatu zure izena eta ezagutza eztabaida sanoa sustatzeko.`,"Add reply":`Erantzun`,"Add your expertise":`Gehitu zure ezagutza`,"Already a member?":`Kidea al zara?`,Anonymous:`Anonimoa`,"Are you sure?":`Ziur al zaude?`,Back:``,"Become a member of {publication} to start commenting.":`Egin zaitez {publication}(e)ko kide iruzkinak egiteko.`,"Become a paid member of {publication} to start commenting.":`Egin zaitez {publication}(e)ko ordainpeko kide iruzkinak egiteko.`,Best:`Onena`,Cancel:`Utzi`,Comment:`Egin iruzkina`,"Commenting disabled":``,"Complete your profile":`Bete zure profila`,Delete:`Ezabatu`,Deleted:`Ezabatuta`,"Deleted member":`Ezabatutako kidea`,Deleting:`Ezabatzen`,Discussion:`Eztabaida`,Dislike:``,Edit:`Editatu`,"Edit this comment":`Editatu iruzkina`,edited:`editatua`,"Enter your name":`Sartu zure izena`,Expertise:`Ezagutza`,"Founder @ Acme Inc":`FAGOR kooperatibaren fundatzailea`,"Full-time parent":`Lanaldi osoko gurasoa`,"Head of Marketing at Acme, Inc":`FAGOR kooperatibako marketin-zuzendaria`,"Hidden for members":`Ezkutatuta kideentzat`,"Hide comment":`Ezkutatu iruzkina`,"Jamie Larson":`Lur Axpe`,"Join the discussion":`Batu eztabaidara`,"Just now":`Oraintxe bertan`,Like:``,"Load more ({amount})":`Kargatu gehiago ({amount})`,"Local resident":`Bertoko bizilaguna`,"Member discussion":`Kideen eztabaida`,Name:`Izena`,Neurosurgeon:`Neurozirujaua`,Newest:`Berriena`,Oldest:`Zaharrena`,"Once deleted, this comment can’t be recovered.":`Ezabatuz gero, ezingo da berreskuratu.`,"One hour ago":`Duela ordubete`,"One min ago":`Duela minutu bat`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Erantzun`,"Reply to":`Erantzun honi`,"Reply to comment":`Erantzun iruzkin honi`,Report:`Salatu`,"Report comment":`Salatu iruzkina`,"Report this comment?":`Iruzkin hau salatu nahi al duzu?`,Save:`Gorde`,"See full discussion":``,Sending:`Bidaltzen`,Sent:`Bidalita`,"Show {amount} more replies":`Erakutsi {amount} erantzun gehiago`,"Show 1 more reply":`Erakutsi erantzun bat gehiago`,"Show comment":`Erakutsi iruzkina`,"Sign in":`Hasi saioa`,"Sign up now":`Eman izena orain`,"Sort by":`Antolatu honen arabera`,"Start the conversation":`Hasi eztabaida`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Iruzkin hau ezkutatu da.`,"This comment has been removed.":`Iruzkin hau kendu da.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Ordaindu orain`,"View in admin":``,Yesterday:`Atzo`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Eskaera gune honetako arduradunari bidaliko zaio.`},xv={"{amount} characters left":`{amount} حرف باقی مانده است`,"{amount} comments":`{amount} دیدگاه`,"{amount} hrs ago":`{amount} ساعت پیش`,"{amount} mins ago":`{amount} دقیقه پیش`,"{amount} more":`{amount} مورد دیگر`,"1 comment":`۱ دیدگاه`,"Add comment":`افزودن دیدگاه`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`به دیدگاه خود زمینه بدهید و با به‌اشتراک‌گذاری نام و تخصص خود، گفت‌وگوی سالمی ایجاد کنید.`,"Add reply":`افزودن پاسخ`,"Add your expertise":`افزودن تخصص شما`,"Already a member?":`عضو هستید؟`,Anonymous:`ناشناس`,"Are you sure?":`مطمئن هستید؟`,Back:`بازگشت`,"Become a member of {publication} to start commenting.":`برای شروع دیدگاه‌گذاری، عضو {publication} شوید.`,"Become a paid member of {publication} to start commenting.":`برای شروع دیدگاه‌گذاری، عضو ویژه {publication} شوید.`,Best:`بهترین`,Cancel:`لغو`,Comment:`دیدگاه`,"Commenting disabled":`دیدگاه‌گذاری غیرفعال است`,"Complete your profile":`نمایه خود را کامل کنید`,Delete:`حذف`,Deleted:`حذف شد`,"Deleted member":`عضو حذف‌شده`,Deleting:`در حال حذف`,Discussion:`گفت‌وگو`,Dislike:`نپسندیدن`,Edit:`ویرایش`,"Edit this comment":`ویرایش این دیدگاه`,edited:`ویرایش‌شده`,"Enter your name":`نام خود را وارد کنید`,Expertise:`تخصص`,"Founder @ Acme Inc":`بنیان‌گذار @ Acme Inc`,"Full-time parent":`خانه‌دار تمام‌وقت`,"Head of Marketing at Acme, Inc":`مدیر بازاریابی Acme, Inc`,"Hidden for members":`برای اعضا پنهان است`,"Hide comment":`پنهان‌سازی دیدگاه`,"Jamie Larson":`جیمی لارسن`,"Join the discussion":`به گفت‌وگو بپیوندید`,"Just now":`همین الان`,Like:`پسندیدن`,"Load more ({amount})":`بارگذاری ({amount}) مورد دیگر`,"Local resident":`ساکن محلی`,"Member discussion":`گفت‌وگوی اعضا`,Name:`نام`,Neurosurgeon:`جراح مغز و اعصاب`,Newest:`جدیدترین`,Oldest:`قدیمی‌ترین`,"Once deleted, this comment can’t be recovered.":`پس از حذف، این دیدگاه قابل بازیابی نخواهد بود.`,"One hour ago":`۱ ساعت پیش`,"One min ago":`۱ دقیقه پیش`,"Pin comment":`سنجاق کردن دیدگاه`,Pinned:`سنجاق‌شده`,"Read more replies":`خواندن پاسخ‌های بیشتر`,"Remove dislike":`برگرداندن نپسندیدن`,"Remove like":`برگرداندن پسندیدن`,Reply:`پاسخ`,"Reply to":`پاسخ به`,"Reply to comment":`پاسخ به دیدگاه`,Report:`گزارش`,"Report comment":`گزارش دیدگاه`,"Report this comment?":`این دیدگاه گزارش شود؟`,Save:`ذخیره`,"See full discussion":`مشاهده گفت‌وگوی کامل`,Sending:`در حال ارسال`,Sent:`ارسال شد`,"Show {amount} more replies":`نمایش {amount} پاسخ دیگر`,"Show 1 more reply":`نمایش ۱ پاسخ دیگر`,"Show comment":`نمایش دیدگاه`,"Sign in":`ورود`,"Sign up now":`همین حالا ثبت‌ نام کنید`,"Sort by":`مرتب‌سازی بر اساس`,"Start the conversation":`گفت‌وگو را شروع کنید`,"The linked comment is no longer available.":`دیدگاه پیوندشده دیگر در دسترس نیست.`,"This comment has been hidden.":`این دیدگاه پنهان شده است.`,"This comment has been removed.":`این دیدگاه حذف شده است.`,Unpin:`برداشتن سنجاق`,"Unpin comment":`برداشتن سنجاق دیدگاه`,"Upgrade now":`همین حالا ارتقا دهید`,"View in admin":`مشاهده در مدیریت`,Yesterday:`دیروز`,"You can't post comments in this publication.":`شما نمی‌توانید در این نشریه دیدگاه بگذارید.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`شما نمی‌توانید در این نشریه دیدگاه بگذارید. برای اطلاعات بیشتر <a>با پشتیبانی تماس بگیرید</a>.`,"Your request will be sent to the owner of this site.":`درخواست شما برای مالک این سایت ارسال خواهد شد.`},Sv={"{amount} characters left":`{amount} merkkiä jäljellä`,"{amount} comments":`{amount} kommenttia`,"{amount} hrs ago":`{amount} tuntia sitten`,"{amount} mins ago":`{amount} minuuttia sitten`,"{amount} more":`{amount} vielä lisää`,"1 comment":`1 kommentti`,"Add comment":`Lisää kommentti`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Lisää sisältöä kommenttiisi, jaa nimesi ja osaamisesi saadaksesi aikaan tervettä keskustelua.`,"Add reply":`Lisää vastaus`,"Add your expertise":`Lisää osaamisesi`,"Already a member?":`Oletko jo jäsen?`,Anonymous:`Anonyymi`,"Are you sure?":`Oletko varma?`,Back:``,"Become a member of {publication} to start commenting.":`Liity sivun {publication} jäseneksi pystyäksesi kommentoimaan.`,"Become a paid member of {publication} to start commenting.":`Ota maksullinen jäsenyys sivulle {publication}, jotta pystyt kommentoimaan.`,Best:`Parhaat`,Cancel:`Peruuta`,Comment:`Kommentti`,"Commenting disabled":``,"Complete your profile":`Täydennä profiilisi`,Delete:`Poista`,Deleted:`Poistettu`,"Deleted member":`Poista jäsen`,Deleting:`Poistetaan`,Discussion:`Keskustelu`,Dislike:``,Edit:`Editoi`,"Edit this comment":`Editoi tätä kommenttia`,edited:`editoitu`,"Enter your name":`Syötä nimesi`,Expertise:`Osaaminen`,"Founder @ Acme Inc":`Perustaja`,"Full-time parent":`Kokoaikainen vanhempi`,"Head of Marketing at Acme, Inc":`Markkinointijohtaja`,"Hidden for members":`Piilotettu jäseniltä`,"Hide comment":`Piilota kommentti`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Liity keskusteluun`,"Just now":`Juuri nyt`,Like:``,"Load more ({amount})":`Lataa lisää ({amount})`,"Local resident":`Paikallinen`,"Member discussion":`Jäsenten keskustelu`,Name:`Nimi`,Neurosurgeon:`Neurokirurgi`,Newest:`Uusin`,Oldest:`Vanhin`,"Once deleted, this comment can’t be recovered.":`Jos poistat kommentin, sitä ei voi enää palauttaa.`,"One hour ago":`Tunti sitten`,"One min ago":`Minuutti sitten`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Vastaa`,"Reply to":`Vastaa:`,"Reply to comment":`Vastaa kommenttiin`,Report:`Ilmianna`,"Report comment":`Ilmianna kommentti`,"Report this comment?":`Haluatko ilmiantaa tämän kommentin?`,Save:`Tallenna`,"See full discussion":``,Sending:`Lähetetään`,Sent:`Lähetetty`,"Show {amount} more replies":`Näytä {amount} vastausta lisää `,"Show 1 more reply":`Näytä 1 vastaus lisää`,"Show comment":`Näytä kommentti`,"Sign in":`Kirjaudu sisään`,"Sign up now":`Rekisteröidy nyt`,"Sort by":`Lajitteluperuste`,"Start the conversation":`Aloita keskustelu`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Tämä kommentti on piilotettu.`,"This comment has been removed.":`Tämä kommentti on poistettu.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Korota nyt`,"View in admin":``,Yesterday:`Eilen`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Sinun pyyntösi lähetetään sivun omistajalle.`},Cv={"{amount} characters left":`{amount} caractères restants`,"{amount} comments":`{amount} commentaires`,"{amount} hrs ago":`Il y a {amount} heures`,"{amount} mins ago":`Il y a {amount} minutes`,"{amount} more":`{amount} supplémentaire(s)`,"1 comment":`1 commentaire`,"Add comment":`Ajouter un commentaire`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Ajoutez un contexte à votre commentaire. Partagez votre nom et vos compétences pour favoriser une discussion saine.`,"Add reply":`Ajouter une réponse`,"Add your expertise":`Ajoutez vos compétences`,"Already a member?":`Déjà abonné(e) ?`,Anonymous:`Anonyme`,"Are you sure?":`Êtes-vous certain(e) ?`,Back:`Retour`,"Become a member of {publication} to start commenting.":`Abonnez-vous gratuitement à {publication} pour commencer à commenter.`,"Become a paid member of {publication} to start commenting.":`Choisissez un abonnement payant à {publication} pour commencer à commenter.`,Best:`Meilleur`,Cancel:`Annuler`,Comment:`Commentaire`,"Commenting disabled":`Commentaires désactivés`,"Complete your profile":`Complétez votre profil`,Delete:`Supprimer`,Deleted:`Supprimé`,"Deleted member":`Abonné(e) supprimé(e)`,Deleting:`Suppression en cours`,Discussion:`Discussion`,Dislike:`Je n’aime pas`,Edit:`Modifier`,"Edit this comment":`Modifier ce commentaire`,edited:`modifié`,"Enter your name":`Entrez votre nom`,Expertise:`Compétences`,"Founder @ Acme Inc":`Fondateur @ Acme Inc`,"Full-time parent":`Parent à plein temps`,"Head of Marketing at Acme, Inc":`Responsable du marketing chez Acme, Inc`,"Hidden for members":`Masqué pour les abonnés`,"Hide comment":`Masquer le commentaire`,"Jamie Larson":`Jean Martin`,"Join the discussion":`Rejoindre la discussion`,"Just now":`À l'instant`,Like:`J’aime`,"Load more ({amount})":`Afficher plus ({amount})`,"Local resident":`Résident local`,"Member discussion":`Discussion entre abonnés`,Name:`Nom`,Neurosurgeon:`Neurochirurgien`,Newest:`Plus récent`,Oldest:`Plus ancien`,"Once deleted, this comment can’t be recovered.":`Une fois supprimé, ce commentaire ne pourra pas être restauré.`,"One hour ago":`Il y a une heure`,"One min ago":`Il y a une minute`,"Pin comment":`Épingler le commentaire`,Pinned:`Épinglé`,"Read more replies":`Voir plus de réponses`,"Remove dislike":`Annuler le « Je n’aime pas »`,"Remove like":`Annuler le « J’aime »`,Reply:`Répondre`,"Reply to":`Répondre à`,"Reply to comment":`Répondre au commentaire`,Report:`Signaler`,"Report comment":`Signaler le commentaire`,"Report this comment?":`Signaler ce commentaire ?`,Save:`Enregistrer`,"See full discussion":`Voir la discussion complète`,Sending:`Envoi en cours`,Sent:`Envoyé`,"Show {amount} more replies":`Afficher {amount} réponses supplémentaires`,"Show 1 more reply":`Afficher 1 réponse supplémentaire`,"Show comment":`Afficher le commentaire`,"Sign in":`Se connecter`,"Sign up now":`S'inscrire maintenant`,"Sort by":`Trier par`,"Start the conversation":`Commencer la conversation`,"The linked comment is no longer available.":`Le commentaire lié n’est plus disponible.`,"This comment has been hidden.":`Ce commentaire a été masqué.`,"This comment has been removed.":`Ce commentaire a été supprimé.`,Unpin:`Désépingler`,"Unpin comment":`Désépingler le commentaire`,"Upgrade now":`Passer à l’abonnement payant`,"View in admin":`Voir dans l’administration`,Yesterday:`Hier`,"You can't post comments in this publication.":`Vous ne pouvez pas commenter cette publication.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Vous ne pouvez pas commenter cette publication. <a>Contactez le support</a> pour plus d’informations.`,"Your request will be sent to the owner of this site.":`Votre demande sera transférée au propriétaire de ce site.`},wv={"{amount} characters left":`caractaran air fhàgail: {amount}`,"{amount} comments":`beachdan: {amount}`,"{amount} hrs ago":`o chionn {amount}u`,"{amount} mins ago":`o chionn {amount}m`,"{amount} more":`{amount} a bharrachd`,"1 comment":`1 bheachd`,"Add comment":`Fàg beachd air`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Cuir co-theacsa ris a' bheachd agad, cuir d' ainm is sàr-eòlas ris gus deasbad fallain a brosnachadh.`,"Add reply":`Cuir freagairt ris`,"Add your expertise":``,"Already a member?":`’Eil thu nad bhall mar-thà?`,Anonymous:`Gun ainm`,"Are you sure?":`A bheil thu cinnteach?`,Back:``,"Become a member of {publication} to start commenting.":`Clàraich nad bhall an làrach-lìn, {publication}, gus beachd fhàgail air.`,"Become a paid member of {publication} to start commenting.":`Clàraich nad bhall phrìomhach an làrach-lìn, {publication}, gus beachd fhàgail air.`,Best:``,Cancel:`Sguir dheth`,Comment:`Beachd`,"Commenting disabled":``,"Complete your profile":`Lìon a-steach a' phròifil agad`,Delete:`Sguab às`,Deleted:`Air a sguabadh às`,"Deleted member":`Ball air a sguabadh às`,Deleting:`'Ga sguabadh às`,Discussion:`Deasbad`,Dislike:``,Edit:`Deasaich`,"Edit this comment":`Deasaich am beachd seo`,edited:`Air a dheasachadh`,"Enter your name":`Cuir a-steach d’ ainm`,Expertise:`Sàr-eòlas`,"Founder @ Acme Inc":`Neach-stèidheachaidh @ Acme Inc`,"Full-time parent":`Pàrant làn-ùine`,"Head of Marketing at Acme, Inc":`Àrd-cheann Margaidheachd aig Acme, Inc`,"Hidden for members":`Air am falach bho bhuill`,"Hide comment":`Cuir am beachd am falach`,"Jamie Larson":`Seamaidh Larson`,"Join the discussion":`Gabh pàirt san deasbad`,"Just now":`An-dràsta`,Like:``,"Load more ({amount})":`Lùchdaich barrachd {amount}`,"Local resident":`Neach-còmhnaidh ionadail`,"Member discussion":`Deasbad`,Name:`Ainm`,Neurosurgeon:`Niùro-làmh-lèigh`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Cha ghabh a aiseag an dèidh sguabadh às`,"One hour ago":`O chionn uair a thìde`,"One min ago":`O chionn mionaid`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Cuir freagairt`,"Reply to":`Cuir freagairt gu`,"Reply to comment":`Cuir freagairt ri beachd`,Report:`Dèan aithris air`,"Report comment":`Dèan aithris air beachd`,"Report this comment?":`’Eil thu airson aithris a dhèanamh air a’ bheachd seo?`,Save:`Sabhail`,"See full discussion":``,Sending:`’Ga chur`,Sent:`Air a chur`,"Show {amount} more replies":`An àireamh de bheachdan a bharrachd a chìthear: {amount}`,"Show 1 more reply":`Seall beachd a bharrachd`,"Show comment":`Seall am beachd`,"Sign in":`Clàraich a-steach`,"Sign up now":`Clàraich a-nis`,"Sort by":`Seòrsaich a-rèir`,"Start the conversation":`Tòisich an deasbad`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Chaidh am beachd seo a chur am falach.`,"This comment has been removed.":`Chaidh am beachd seo a sguabadh às.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Àrdaich a-nis`,"View in admin":``,Yesterday:`An-dè`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Thèid an iarrtas agad a chur gu neach-seilbh an làrach-lìn seo.`},Tv={"{amount} characters left":`נותרו עוד {amount} תווים`,"{amount} comments":`{amount} תגובות`,"{amount} hrs ago":`לפני {amount} שעות`,"{amount} mins ago":`לפני {amount} דקות`,"{amount} more":`עוד {amount}`,"1 comment":`תגובה אחת`,"Add comment":`הוסיפו תגובה`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`הוסיפו תוכן לתגובה שלכם, שתפו את שמכם ואת התמחותכם כדי לקדם דיון בריא.`,"Add reply":`הוסיפו תגובה`,"Add your expertise":``,"Already a member?":`כבר רשומים?`,Anonymous:`אנונימי`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`הירשמו כחברי {publication} כדי להתחיל להגיב.`,"Become a paid member of {publication} to start commenting.":`הירשמו כחברי משלמים של {publication} כדי להתחיל להגיב.`,Best:``,Cancel:`ביטול`,Comment:`תגובה`,"Commenting disabled":``,"Complete your profile":`השלימו את הפרופיל שלכם`,Delete:`מחיקה`,Deleted:``,"Deleted member":`חבר שנמחק`,Deleting:``,Discussion:`דיון`,Dislike:``,Edit:`עריכה`,"Edit this comment":`ערכו תגובה זו`,edited:`נערך`,"Enter your name":`כתבו את שמכם`,Expertise:`ניסיון`,"Founder @ Acme Inc":`מייסד @ Acme Inc`,"Full-time parent":`הורה במשרה מלאה`,"Head of Marketing at Acme, Inc":`ראש אגף שיווק ב- Acme, Inc`,"Hidden for members":``,"Hide comment":`הסתר תגובה`,"Jamie Larson":`ג׳יימי לרסון`,"Join the discussion":`הצטרפו לדיון`,"Just now":`ממש עכשיו`,Like:``,"Load more ({amount})":``,"Local resident":`תושב מקומי`,"Member discussion":`דיון חברים רשומים`,Name:`שם`,Neurosurgeon:`נוֹיְרוֹכִירוּרְג`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`לפני שעה`,"One min ago":`לפני דקה`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`תגובה`,"Reply to":``,"Reply to comment":`הגיבו לתגובה`,Report:`דיווח`,"Report comment":`דווחו על תגובה`,"Report this comment?":`האם לדווח על תגובה זו?`,Save:`שמירה`,"See full discussion":``,Sending:`שליחה`,Sent:`שלחנו`,"Show {amount} more replies":`להציג עוד {amount} תגובות`,"Show 1 more reply":`להציג תגובה נוספת`,"Show comment":`להציג תגובה`,"Sign in":`היכנסו`,"Sign up now":`הירשמו עכשיו`,"Sort by":`למיין לפי`,"Start the conversation":`התחילו את השיחה`,"The linked comment is no longer available.":``,"This comment has been hidden.":`התגובה הזו הוסתרה.`,"This comment has been removed.":`התגובה הזו הוסרה.`,Unpin:``,"Unpin comment":``,"Upgrade now":`שדרגו עכשיו`,"View in admin":``,Yesterday:`אתמול`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`בקשתך תישלח לבעלים של האתר הזה.`},Ev={"{amount} characters left":`{amount} अक्षर बाकी`,"{amount} comments":`{amount} टिप्पणियाँ`,"{amount} hrs ago":`{amount} घंटे पहले`,"{amount} mins ago":`{amount} मिनट पहले`,"{amount} more":`{amount} और`,"1 comment":`1 टिप्पणी`,"Add comment":`टिप्पणी जोड़ें`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`अपनी टिप्पणी में संदर्भ जोड़ें, स्वस्थ चर्चा के लिए अपना नाम और विशेषज्ञता साझा करें।`,"Add reply":`जवाब जोड़ें`,"Add your expertise":`अपनी विशेषज्ञता जोड़ें`,"Already a member?":`पहले से सदस्य हैं?`,Anonymous:`अनाम`,"Are you sure?":`क्या आप सुनिश्चित हैं?`,Back:``,"Become a member of {publication} to start commenting.":`टिप्पणी शुरू करने के लिए {publication} का सदस्य बनें।`,"Become a paid member of {publication} to start commenting.":`टिप्पणी शुरू करने के लिए {publication} के भुगतान सदस्य बनें।`,Best:`सर्वश्रेष्ठ`,Cancel:`रद्द करें`,Comment:`टिप्पणी`,"Commenting disabled":``,"Complete your profile":`अपनी प्रोफ़ाइल पूरी करें`,Delete:`हटाएं`,Deleted:`हटा दिया गया`,"Deleted member":`हटाए गए सदस्य`,Deleting:`हटाया जा रहा है`,Discussion:`चर्चा`,Dislike:``,Edit:`संपादित करें`,"Edit this comment":`इस टिप्पणी को संपादित करें`,edited:`संपादित किया गया`,"Enter your name":`अपना नाम दर्ज करें`,Expertise:`विशेषज्ञता`,"Founder @ Acme Inc":`संस्थापक @ Acme Inc`,"Full-time parent":`पूर्णकालिक माता-पिता`,"Head of Marketing at Acme, Inc":`Acme, Inc में विपणन प्रमुख`,"Hidden for members":`सदस्यों के लिए छिपाया गया`,"Hide comment":`टिप्पणी छिपाएं`,"Jamie Larson":`राहुल शर्मा`,"Join the discussion":`चर्चा में शामिल हों`,"Just now":`अभी`,Like:``,"Load more ({amount})":`और लोड करें ({amount})`,"Local resident":`स्थानीय निवासी`,"Member discussion":`सदस्य चर्चा`,Name:`नाम`,Neurosurgeon:`न्यूरोसर्जन`,Newest:`नवीनतम`,Oldest:`सबसे पुराना`,"Once deleted, this comment can’t be recovered.":`एक बार हटाए जाने के बाद, इस टिप्पणी को पुनः प्राप्त नहीं किया जा सकता।`,"One hour ago":`एक घंटा पहले`,"One min ago":`एक मिनट पहले`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`जवाब दें`,"Reply to":`को जवाब दें`,"Reply to comment":`टिप्पणी का जवाब दें`,Report:`रिपोर्ट`,"Report comment":`टिप्पणी की रिपोर्ट करें`,"Report this comment?":`क्या आप इस टिप्पणी की रिपोर्ट करना चाहते हैं?`,Save:`सहेजें`,"See full discussion":``,Sending:`भेजा जा रहा है`,Sent:`भेजा गया`,"Show {amount} more replies":`{amount} और जवाब दिखाएं`,"Show 1 more reply":`1 और जवाब दिखाएं`,"Show comment":`टिप्पणी दिखाएं`,"Sign in":`साइन इन करें`,"Sign up now":`अभी साइनअप करें`,"Sort by":`क्रमबद्ध करें`,"Start the conversation":`बातचीत शुरू करें`,"The linked comment is no longer available.":``,"This comment has been hidden.":`इस टिप्पणी को छिपा दिया गया है।`,"This comment has been removed.":`इस टिप्पणी को हटा दिया गया है।`,Unpin:``,"Unpin comment":``,"Upgrade now":`अब उन्नत करें`,"View in admin":``,Yesterday:`कल`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`आपका अनुरोध इस साइट के मालिक को भेजा जाएगा।`},Dv={"{amount} characters left":`{amount} znakova preostalo`,"{amount} comments":`{amount} komentara`,"{amount} hrs ago":`Prije {amount} sati`,"{amount} mins ago":`Prije {amount} minuta`,"{amount} more":`{amount} više`,"1 comment":`1 komentar`,"Add comment":`Dodaj komentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Dajte kontekts vašem komentaru, podijelite vaše ime i znanje za unaprijeđenje svake rasprave.`,"Add reply":`Dodaj odgovor`,"Add your expertise":``,"Already a member?":`Već si član?`,Anonymous:`Anonimus`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Postani član {publication} za mogućnost komentiranja.`,"Become a paid member of {publication} to start commenting.":`Plati pretplatu na {publication} za mogućnost komentiranja.`,Best:``,Cancel:`Prekini`,Comment:`Komentar`,"Commenting disabled":``,"Complete your profile":`Dovrši svoj profil`,Delete:`Obriši`,Deleted:``,"Deleted member":`Obrisan član`,Deleting:``,Discussion:`Rasprava`,Dislike:``,Edit:`Uredi`,"Edit this comment":`Uredi ovaj komentar`,edited:`uređen`,"Enter your name":`Unesite vaše ime`,Expertise:`Stručnost`,"Founder @ Acme Inc":`Osnivač Acme Inc`,"Full-time parent":`Full-time Roditelj`,"Head of Marketing at Acme, Inc":`Voditelj marketinga Acme, Inc`,"Hidden for members":``,"Hide comment":`Sakrij komentar`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Pridruži se raspravi`,"Just now":`Upravo sada`,Like:``,"Load more ({amount})":``,"Local resident":`Lokalni stanovnik`,"Member discussion":`Rasprava članova`,Name:`Ime`,Neurosurgeon:`Neurokirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Prije jednog sata`,"One min ago":`Prije jedne minute`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Odgovori`,"Reply to":``,"Reply to comment":`Odgovori na komentar`,Report:`Prijavi`,"Report comment":`Prijavi komentar`,"Report this comment?":`Prijaviti ovaj komentar?`,Save:`Spremi`,"See full discussion":``,Sending:`Slanje`,Sent:`Poslano`,"Show {amount} more replies":`Prikaži još {amount} odgovora`,"Show 1 more reply":`Prikaži još jedan odgovor`,"Show comment":`Prikaži komentar`,"Sign in":`Prijava`,"Sign up now":`Registriraj se sada`,"Sort by":``,"Start the conversation":`Pokreni razgovor`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Ovaj komentar je skriven`,"This comment has been removed.":`Ovaj komentar je maknut`,Unpin:``,"Unpin comment":``,"Upgrade now":`Nadogradite sada`,"View in admin":``,Yesterday:`Jučer`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Vaš zahtjev će se poslati vasniku ovih web stranica.`},Ov={"{amount} characters left":`{amount} karakter maradt`,"{amount} comments":`{amount} hozzászólás`,"{amount} hrs ago":`{amount} órája`,"{amount} mins ago":`{amount} perce`,"{amount} more":`{amount} még`,"1 comment":`1 hozzászólás`,"Add comment":`Hozzászólás`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Segítsd a beszélgetést azzal, hogy megadod a nevedet és azt, hogy mihez értesz.`,"Add reply":`Válasz`,"Add your expertise":`Add meg a szakterületedet`,"Already a member?":`Van már fiókod?`,Anonymous:`Anonim`,"Are you sure?":`Biztos vagy benne?`,Back:``,"Become a member of {publication} to start commenting.":`Csatlakozz a támogató {publication} közösséghez, hogy hozzászólhass a tartalmakhoz.`,"Become a paid member of {publication} to start commenting.":`Csatlakozz a fizető {publication} közösséghez, hogy hozzászólhass a tartalmakhoz.`,Best:`Legjobb`,Cancel:`Mégse`,Comment:`Hozzászólás`,"Commenting disabled":``,"Complete your profile":`Profil befejezése`,Delete:`Törlés`,Deleted:`Törölt`,"Deleted member":`Törölt tag`,Deleting:`Törölni`,Discussion:`Hozzászólások`,Dislike:``,Edit:`Szerkesztés`,"Edit this comment":`Hozzászólás szerkesztése`,edited:`szerkesztve`,"Enter your name":`Add meg a nevedet`,Expertise:`Foglalkozás`,"Founder @ Acme Inc":`A(z) @ Sirály Kft. alapítója`,"Full-time parent":`Főállású szülő`,"Head of Marketing at Acme, Inc":`Marketingvezető —\xA0Sirály Kft.`,"Hidden for members":`A tagok számára elrejtve`,"Hide comment":`Hozzászólás elrejtése`,"Jamie Larson":`Kiss Sára`,"Join the discussion":`Csatlakozz a beszélgetéshez`,"Just now":`Épp most`,Like:``,"Load more ({amount})":`Továbbiak betöltése ({amount})`,"Local resident":`Helyi lakos`,"Member discussion":`Tagok beszélgetése`,Name:`Név`,Neurosurgeon:`Idegsebész`,Newest:`Legújabb`,Oldest:`Legrégebbi`,"Once deleted, this comment can’t be recovered.":`A törlés után ez a hozzászólás nem állítható vissza.`,"One hour ago":`Egy órája`,"One min ago":`Egy perce`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Válasz`,"Reply to":`Válasz`,"Reply to comment":`Válasz a hozzászólásra`,Report:`Jelentés`,"Report comment":`Hozzászólás jelentése`,"Report this comment?":`Szeretnéd jelenteni ezt a hozzászólást?`,Save:`Mentés`,"See full discussion":``,Sending:`Küldés`,Sent:`Elküldve`,"Show {amount} more replies":`Mutass még {amount} választ`,"Show 1 more reply":`Mutass még egy választ`,"Show comment":`Hozzászólás mutatása`,"Sign in":`Bejelentkezés`,"Sign up now":`Regisztrálj most`,"Sort by":`Rendezés`,"Start the conversation":`Kezdd el a beszélgetést`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Ezt a hozzászólást elrejtettük.`,"This comment has been removed.":`Ezt a hozzászólást töröltük.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Előfizetéssel te is hozzászólhatsz`,"View in admin":``,Yesterday:`Tegnap`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`A kérésedet továbbítjuk a weboldal tulajdonosának.`},kv={"{amount} characters left":`{amount} karakter tersisa`,"{amount} comments":`{amount} komentar`,"{amount} hrs ago":`{amount} jam yang lalu`,"{amount} mins ago":`{amount} menit yang lalu`,"{amount} more":`{amount} lagi`,"1 comment":`1 komentar`,"Add comment":`Tambahkan komentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Tambahkan konteks pada komentar Anda, bagikan nama dan keahlian Anda untuk mendorong diskusi yang sehat.`,"Add reply":`Tambahkan balasan`,"Add your expertise":`Tambahkan keahlian Anda`,"Already a member?":`Sudah menjadi anggota?`,Anonymous:`Anonim`,"Are you sure?":`Apakah Anda yakin?`,Back:``,"Become a member of {publication} to start commenting.":`Jadilah anggota di {publication} untuk mulai berkomentar.`,"Become a paid member of {publication} to start commenting.":`Jadilah anggota berbayar di {publication} untuk mulai berkomentar.`,Best:`Terbaik`,Cancel:`Batal`,Comment:`Komentar`,"Commenting disabled":``,"Complete your profile":`Lengkapi profil Anda`,Delete:`Hapus`,Deleted:`Terhapus`,"Deleted member":`Anggota dihapus`,Deleting:`Menghapus...`,Discussion:`Diskusi`,Dislike:``,Edit:`Edit`,"Edit this comment":`Edit komentar ini`,edited:`diedit`,"Enter your name":`Masukkan nama Anda`,Expertise:`Keahlian`,"Founder @ Acme Inc":`Founder @ Acme Inc`,"Full-time parent":`Orang tua penuh waktu`,"Head of Marketing at Acme, Inc":`Direktur Pemasaran di Acme, Inc`,"Hidden for members":`Tersembunyi bagi anggota`,"Hide comment":`Sembunyikan komentar`,"Jamie Larson":`Sutan T. Alisjahbana`,"Join the discussion":`Bergabung dalam diskusi`,"Just now":`Baru saja`,Like:``,"Load more ({amount})":`Tampilkan {amount} lagi`,"Local resident":`Penduduk lokal`,"Member discussion":`Diskusi anggota`,Name:`Nama`,Neurosurgeon:`Ahli Bedah Saraf`,Newest:`Paling baru`,Oldest:`Paling lama`,"Once deleted, this comment can’t be recovered.":`Setelah dihapus, komentar ini tidak dapat dipulihkan.`,"One hour ago":`Satu jam yang lalu`,"One min ago":`Satu menit yang lalu`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Balas`,"Reply to":``,"Reply to comment":`Balas komentar`,Report:`Laporkan`,"Report comment":`Laporkan komentar`,"Report this comment?":`Laporkan komentar ini?`,Save:`Simpan`,"See full discussion":``,Sending:`Mengirim`,Sent:`Terkirim`,"Show {amount} more replies":`Tampilkan {amount} balasan lainnya`,"Show 1 more reply":`Tampilkan 1 balasan lainnya`,"Show comment":`Tampilkan komentar`,"Sign in":`Masuk`,"Sign up now":`Daftar sekarang`,"Sort by":`Urutkan berdasarkan`,"Start the conversation":`Mulai percakapan`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Komentar ini telah disembunyikan.`,"This comment has been removed.":`Komentar ini telah dihapus.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Daftar sekarang`,"View in admin":``,Yesterday:`Kemarin`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Permintaan Anda akan dikirim kepada pemilik situs ini.`},Av={"{amount} characters left":``,"{amount} comments":``,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":``,"1 comment":``,"Add comment":``,"Add context to your comment, share your name and expertise to foster a healthy discussion.":``,"Add reply":``,"Add your expertise":``,"Already a member?":``,Anonymous:``,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":``,"Become a paid member of {publication} to start commenting.":``,Best:``,Cancel:``,Comment:``,"Commenting disabled":``,"Complete your profile":``,Delete:``,Deleted:``,"Deleted member":``,Deleting:``,Discussion:``,Dislike:``,Edit:``,"Edit this comment":``,edited:``,"Enter your name":``,Expertise:``,"Founder @ Acme Inc":``,"Full-time parent":``,"Head of Marketing at Acme, Inc":``,"Hidden for members":``,"Hide comment":``,"Jamie Larson":``,"Join the discussion":``,"Just now":``,Like:``,"Load more ({amount})":``,"Local resident":``,"Member discussion":``,Name:``,Neurosurgeon:``,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":``,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:``,"Reply to":``,"Reply to comment":``,Report:``,"Report comment":``,"Report this comment?":``,Save:``,"See full discussion":``,Sending:``,Sent:``,"Show {amount} more replies":``,"Show 1 more reply":``,"Show comment":``,"Sign in":``,"Sign up now":``,"Sort by":``,"Start the conversation":``,"The linked comment is no longer available.":``,"This comment has been hidden.":``,"This comment has been removed.":``,Unpin:``,"Unpin comment":``,"Upgrade now":``,"View in admin":``,Yesterday:``,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":``},jv={"{amount} characters left":`{amount} caratteri rimanenti`,"{amount} comments":`{amount} commenti`,"{amount} hrs ago":`{amount} ore fa`,"{amount} mins ago":`{amount} minuti fa`,"{amount} more":`{amount} in più`,"1 comment":`1 commento`,"Add comment":`Aggiungi commento`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Aggiungi dettagli al tuo commento, condividi il tuo nome e le tue competenze per incoraggiare una conversazione sana.`,"Add reply":`Aggiungi risposta`,"Add your expertise":`Aggiungi le tue competenze`,"Already a member?":`Sei già iscritto?`,Anonymous:`Anonimo`,"Are you sure?":`Sei sicuro?`,Back:`Indietro`,"Become a member of {publication} to start commenting.":`Iscriviti a {publication} per poter commentare.`,"Become a paid member of {publication} to start commenting.":`Abbonati a {publication} per poter commentare.`,Best:`Migliori`,Cancel:`Annulla`,Comment:`Commenta`,"Commenting disabled":`Commenti disabilitati`,"Complete your profile":`Completa il tuo profilo`,Delete:`Elimina`,Deleted:`Eliminato`,"Deleted member":`Utente eliminato`,Deleting:`Eliminazione in corso`,Discussion:`Discussione`,Dislike:`Non mi piace`,Edit:`Modifica`,"Edit this comment":`Modifica questo commento`,edited:`modificato`,"Enter your name":`Inserisci il tuo nome`,Expertise:`Competenze`,"Founder @ Acme Inc":`Megadirettore Galattico`,"Full-time parent":`Genitore a tempo pieno`,"Head of Marketing at Acme, Inc":`Ragioniere presso Megaditta`,"Hidden for members":`Nascosto per gli abbonati`,"Hide comment":`Nascondi commento`,"Jamie Larson":`Andrea Rossi`,"Join the discussion":`Partecipa alla discussione`,"Just now":`Adesso`,Like:`Mi piace`,"Load more ({amount})":`Caricane altri {amount}`,"Local resident":`Paesano`,"Member discussion":`Commenti`,Name:`Nome`,Neurosurgeon:`Neurochirurgo`,Newest:`Più recenti`,Oldest:`Più vecchi`,"Once deleted, this comment can’t be recovered.":`Una volta cancellato, non potrai più recuperare questo commento`,"One hour ago":`Un'ora fa`,"One min ago":`Un minuto fa`,"Pin comment":`Fissa commento`,Pinned:`Fissato`,"Read more replies":`Leggi più risposte`,"Remove dislike":`Rimuovi Non mi piace`,"Remove like":`Rimuovi Mi piace`,Reply:`Rispondi`,"Reply to":`Rispondi a`,"Reply to comment":`Rispondi al commento`,Report:`Segnala`,"Report comment":`Segnala commento`,"Report this comment?":`Segnalare questo commento?`,Save:`Salva`,"See full discussion":`Vedi la discussione completa`,Sending:`Invio`,Sent:`Inviato`,"Show {amount} more replies":`Mostra altre {amount} risposte`,"Show 1 more reply":`Mostra un'altra risposta`,"Show comment":`Mostra commento`,"Sign in":`Accedi`,"Sign up now":`Iscriviti ora`,"Sort by":`Ordina per`,"Start the conversation":`Commenta per primo`,"The linked comment is no longer available.":`Il commento collegato non è più disponibile.`,"This comment has been hidden.":`Questo commento è stato nascosto.`,"This comment has been removed.":`Questo commento è stato rimosso.`,Unpin:`Stacca`,"Unpin comment":`Stacca commento`,"Upgrade now":`Abbonati ora`,"View in admin":`Visualizza nell'area admin`,Yesterday:`Ieri`,"You can't post comments in this publication.":`Non puoi postare commenti in questa pubblicazione.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Non puoi postare commenti in questa pubblicazione. <a>Contatta il supporto</a> per maggiori informazioni.`,"Your request will be sent to the owner of this site.":`La tua richiesta sarà inviata al proprietario del sito.`},Mv={"{amount} characters left":`残り{amount}文字`,"{amount} comments":`{amount}のコメント`,"{amount} hrs ago":`{amount}時間前`,"{amount} mins ago":`{amount}分前`,"{amount} more":`さらに{amount}個`,"1 comment":`1のコメント`,"Add comment":`コメントする`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`コメントはよく説明し、名前と専門分野を共有することで健全な議論をすすめましょう。`,"Add reply":`返信する`,"Add your expertise":``,"Already a member?":`メンバーですか?`,Anonymous:`匿名`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`{publication}のメンバーになってコメントを始めましょう。`,"Become a paid member of {publication} to start commenting.":`{publication}の有料メンバーになってコメントを始めましょう。`,Best:``,Cancel:`キャンセル`,Comment:`コメント`,"Commenting disabled":``,"Complete your profile":`プロフィールを完成させる`,Delete:`削除`,Deleted:``,"Deleted member":`削除されたメンバー`,Deleting:``,Discussion:`議論`,Dislike:``,Edit:`編集`,"Edit this comment":`このコメントを編集する`,edited:`編集済み`,"Enter your name":`名前を記入`,Expertise:`専門分野`,"Founder @ Acme Inc":`創業者 @ Acme Inc`,"Full-time parent":`専業主婦・主夫`,"Head of Marketing at Acme, Inc":`マーケティング責任者 @ Acme, Inc`,"Hidden for members":``,"Hide comment":`コメントを非表示にする`,"Jamie Larson":`ジェイミー・ラーソン`,"Join the discussion":`議論に参加する`,"Just now":`今すぐ参加する`,Like:``,"Load more ({amount})":``,"Local resident":`地元住民`,"Member discussion":`メンバーによる議論`,Name:`名前`,Neurosurgeon:`脳神経外科医`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`1時間前`,"One min ago":`1分前`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`返信する`,"Reply to":``,"Reply to comment":`コメントに返信する`,Report:`通報する`,"Report comment":`コメントを通報する`,"Report this comment?":`このコメントを通報しますか?`,Save:`保存`,"See full discussion":``,Sending:`送信中`,Sent:`送信完了`,"Show {amount} more replies":`{amount}個の返信を表示する`,"Show 1 more reply":`返信をもう1つ表示する`,"Show comment":`コメントを表示する`,"Sign in":`ログイン`,"Sign up now":`今すぐ新規登録する`,"Sort by":``,"Start the conversation":`会話を始める`,"The linked comment is no longer available.":``,"This comment has been hidden.":`このコメントは非表示にされました。`,"This comment has been removed.":`このコメントは削除されました。`,Unpin:``,"Unpin comment":``,"Upgrade now":`今すぐアップデートする`,"View in admin":``,Yesterday:`昨日`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`あなたのリクエストはこのサイトの管理者に送信されます。`},Nv={"{amount} characters left":`{amount}글자 남음`,"{amount} comments":`{amount}개의 댓글`,"{amount} hrs ago":`{amount}시간 전`,"{amount} mins ago":`{amount}분 전`,"{amount} more":`{amount}개 더보기`,"1 comment":`1개의 댓글`,"Add comment":`댓글 추가`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`건설적인 토론을 위해 댓글에 맥락을 추가하고, 이름과 전문 분야를 공유해 주세요.`,"Add reply":`답글 작성`,"Add your expertise":`전문 분야를 추가해 주세요`,"Already a member?":`이미 회원이신가요?`,Anonymous:`익명`,"Are you sure?":`정말 하시겠어요?`,Back:`뒤로`,"Become a member of {publication} to start commenting.":`{publication}의 회원이 되어 댓글을 작성해 주세요.`,"Become a paid member of {publication} to start commenting.":`{publication}의 유료 회원이 되어 댓글을 작성해 주세요.`,Best:`추천순`,Cancel:`취소`,Comment:`댓글`,"Commenting disabled":`댓글 작성 비활성화됨`,"Complete your profile":`프로필을 완성해 주세요`,Delete:`삭제`,Deleted:`삭제됨`,"Deleted member":`삭제된 회원`,Deleting:`삭제 중`,Discussion:`댓글`,Dislike:`싫어요`,Edit:`수정`,"Edit this comment":`댓글 수정`,edited:`수정됨`,"Enter your name":`이름을 입력해 주세요`,Expertise:`전문분야`,"Founder @ Acme Inc":`Acme Inc 창업자`,"Full-time parent":`전업 부모`,"Head of Marketing at Acme, Inc":`Acme Inc 마케팅 책임자`,"Hidden for members":`회원에게 숨김 처리됨`,"Hide comment":`댓글 숨기기`,"Jamie Larson":`홍길동`,"Join the discussion":`댓글에 참여해 주세요`,"Just now":`방금 전`,Like:`좋아요`,"Load more ({amount})":`{amount}개 더 불러오기`,"Local resident":`지역 주민`,"Member discussion":`회원들의 댓글`,Name:`이름`,Neurosurgeon:`신경외과 의사`,Newest:`최신순`,Oldest:`오래된순`,"Once deleted, this comment can’t be recovered.":`삭제하면 이 댓글은 복구할 수 없어요.`,"One hour ago":`1시간 전`,"One min ago":`1분 전`,"Pin comment":`댓글 고정`,Pinned:`고정됨`,"Read more replies":`답글 더 보기`,"Remove dislike":`싫어요 취소`,"Remove like":`좋아요 취소`,Reply:`답글`,"Reply to":`답글 달기`,"Reply to comment":`댓글에 답글`,Report:`신고`,"Report comment":`댓글 신고`,"Report this comment?":`이 댓글을 신고하시겠어요?`,Save:`저장`,"See full discussion":`전체 댓글 보기`,Sending:`전송중`,Sent:`전송됨`,"Show {amount} more replies":`답글 {amount}개 더 보기`,"Show 1 more reply":`답글 1개 더 보기`,"Show comment":`댓글 보기`,"Sign in":`로그인`,"Sign up now":`회원가입`,"Sort by":`정렬 기준`,"Start the conversation":`댓글을 작성해 주세요`,"The linked comment is no longer available.":`연결된 댓글은 더 이상 이용할 수 없어요.`,"This comment has been hidden.":`숨김처리 된 댓글이에요.`,"This comment has been removed.":`삭제 된 댓글이에요.`,Unpin:`고정 해제`,"Unpin comment":`댓글 고정 해제`,"Upgrade now":`업그레이드`,"View in admin":`관리자 페이지에서 보기`,Yesterday:`어제`,"You can't post comments in this publication.":`이 사이트에서는 댓글을 작성할 수 없어요.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`이 사이트에서는 댓글을 작성할 수 없어요. 자세한 내용은 <a>고객지원에 문의</a>해 주세요.`,"Your request will be sent to the owner of this site.":`회원님의 요청이 사이트 운영자에게 전달돼요.`},Pv={"{amount} characters left":`{amount} таңба қалды`,"{amount} comments":`{amount} пікір`,"{amount} hrs ago":`{amount} сағат бұрын`,"{amount} mins ago":`{amount} минут бұрын`,"{amount} more":`тағы {amount}`,"1 comment":`1 пікір`,"Add comment":`Пікір қосу`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Талқы қызық болуы үшін өзіңіз туралы мәліметтерді қосыңыз.`,"Add reply":`Жауап қосу`,"Add your expertise":``,"Already a member?":`Әлдеқашан қосылдыңыз ба?`,Anonymous:`Аноним`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Пікір қалдыру үшін {publication} сайтына аккаунт қажет.`,"Become a paid member of {publication} to start commenting.":`Пікір қалдыру үшін {publication} сайтына ақылы аккаунт қажет.`,Best:``,Cancel:`Бас тарту`,Comment:`Пікір`,"Commenting disabled":``,"Complete your profile":`Профиліңізді толтырыңыз`,Delete:`Жою`,Deleted:``,"Deleted member":`Жойылған аккаунт`,Deleting:``,Discussion:`Талқы`,Dislike:``,Edit:`Өңдеу`,"Edit this comment":`Бұл пікірді өңдеу`,edited:`Өңделді`,"Enter your name":`Есіміңізді жазыңыз`,Expertise:`Қызмет`,"Founder @ Acme Inc":`@ Acme Inc құрылтайшысы`,"Full-time parent":`Толық күн жұмыс істейтін ата-ана`,"Head of Marketing at Acme, Inc":`@ Acme маркетинг жетекшісі `,"Hidden for members":``,"Hide comment":`Пікірді жасыру`,"Jamie Larson":`Пәленше Түгеншиев`,"Join the discussion":`Талқыға қосылу`,"Just now":`Дәл қазір`,Like:``,"Load more ({amount})":``,"Local resident":`Жергілікті тұрғын`,"Member discussion":`Мүшелер талқысы`,Name:`Есімі`,Neurosurgeon:`Нейрохирург`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Бір сағат бұрын`,"One min ago":`Бір минут бұрын`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Жауап беру`,"Reply to":``,"Reply to comment":`Пікірге жауап беру`,Report:`Шағымдану`,"Report comment":`Пікірге шағымдану`,"Report this comment?":`Осы пікірге шағым жіберілсін бе?`,Save:`Сақтау`,"See full discussion":``,Sending:`Жіберілуде`,Sent:`Жіберілді`,"Show {amount} more replies":`Тағы {amount} жауапты көрсету`,"Show 1 more reply":`Тағы 1 жауап көрсету`,"Show comment":`Пікірді көрсету`,"Sign in":`Кіру`,"Sign up now":`Қазір тіркелу`,"Sort by":``,"Start the conversation":`Талқыны бастау`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Бұл пікір жасырылды.`,"This comment has been removed.":`Бұл пікір өшірілді.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Жаңарту `,"View in admin":``,Yesterday:`Кеше`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Өтінішіңіз сайт иесіне жіберіледі.`},Fv={"{amount} characters left":`{amount} likę simboliai`,"{amount} comments":`{amount} komentarai`,"{amount} hrs ago":`Prieš {amount} val.`,"{amount} mins ago":`Prieš {amount} min.`,"{amount} more":`{amount} daugiau`,"1 comment":`1 komentaras`,"Add comment":`Rašyti komentarą`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Papildykite savo komentarą, prisistatykite ir pasidalinkite savo turimomis žiniomis, kad paskatintumėte prasmingą diskusiją.`,"Add reply":`Atsakyti`,"Add your expertise":``,"Already a member?":`Jau turite paskyrą?`,Anonymous:`Anoniminis`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Užsiregistruokite {publication}, kad galėtumėte komentuoti.`,"Become a paid member of {publication} to start commenting.":`Tapkite {publication} prenumeratoriumi, kad galėtumėte komentuoti.`,Best:``,Cancel:`Atšaukti`,Comment:`Komentuoti`,"Commenting disabled":``,"Complete your profile":`Pabaikite kurti savo profilį!`,Delete:`Ištrinti`,Deleted:``,"Deleted member":`Pašalintas narys`,Deleting:``,Discussion:`Diskusija`,Dislike:``,Edit:`Redaguoti`,"Edit this comment":`Redaguoti šį komentarą`,edited:`redaguotas`,"Enter your name":`Įrašykite savo vardą`,Expertise:`Specializacija`,"Founder @ Acme Inc":`Istorikas`,"Full-time parent":`Vaiką prižiūrintis tėvas`,"Head of Marketing at Acme, Inc":`Tyrinėtojas`,"Hidden for members":``,"Hide comment":`Paslėpti komentarą`,"Jamie Larson":`Vardenis Pavardenis`,"Join the discussion":`Prisijunkite prie diskusijos`,"Just now":`Ką tik`,Like:``,"Load more ({amount})":``,"Local resident":`Vietinis gyventojas`,"Member discussion":`Komentarai`,Name:`Vardas`,Neurosurgeon:`Neurochirurgas`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Prieš valandą`,"One min ago":`Prieš minutę`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Atsakyti`,"Reply to":``,"Reply to comment":`Atsakyti į komentarą`,Report:`Pranešti`,"Report comment":`Pranešti apie komentarą`,"Report this comment?":`Pranešti apie šį komentarą?`,Save:`Išsaugoti`,"See full discussion":``,Sending:`Siunčiama`,Sent:`Išsiųsta`,"Show {amount} more replies":`Rodyti daugiau atsakymų ({amount})`,"Show 1 more reply":`Rodyti dar 1 atsakymą`,"Show comment":`Rodyti komentarą`,"Sign in":`Prisijungti`,"Sign up now":`Registruotis`,"Sort by":``,"Start the conversation":`Parašykite pirmąjį komentarą`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Šis komentaras buvo paslėptas.`,"This comment has been removed.":`Šis komentaras buvo pašalintas.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Prenumeruokite`,"View in admin":``,Yesterday:`Vakar`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Jūsų pranešimas bus išsiųstas svetainės savininkui.`},Iv={"{amount} characters left":`Atlikušas {amount}\xA0rakstzīmes`,"{amount} comments":`{amount} komentāri`,"{amount} hrs ago":`pirms {amount}\xA0stundām`,"{amount} mins ago":`Pirms {amount}\xA0minūtēm`,"{amount} more":`Vēl {amount}`,"1 comment":`1 komentārs`,"Add comment":`Pievienot komentāru`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Pievienojiet savam komentāram kontekstu, kopīgojiet savu vārdu un zināšanas, lai veicinātu veselīgu diskusiju.`,"Add reply":`Pievienot atbildi`,"Add your expertise":``,"Already a member?":`Vai jau esat dalībnieks?`,Anonymous:`Anonīms`,"Are you sure?":`Vai esat pārliecināts?`,Back:``,"Become a member of {publication} to start commenting.":`Kļūstiet par {publication} dalībnieku, lai sāktu komentēt.`,"Become a paid member of {publication} to start commenting.":`Kļūstiet par apmaksātu {publication} dalībnieku, lai sāktu komentēt.`,Best:``,Cancel:`Atcelt`,Comment:`Komentēt`,"Commenting disabled":``,"Complete your profile":`Pabeidziet savu profilu`,Delete:`Dzēst`,Deleted:`Izdzēsts`,"Deleted member":`Dzēsts dalībnieks`,Deleting:`Dzēšana`,Discussion:`Diskusija`,Dislike:``,Edit:`Rediģēt`,"Edit this comment":`Rediģēt šo komentāru`,edited:`rediģēts`,"Enter your name":`Ievadiet savu vārdu`,Expertise:`Ekspertīze`,"Founder @ Acme Inc":`Dibinātājs @ Acme Inc`,"Full-time parent":`Pilnas slodzes vecāks`,"Head of Marketing at Acme, Inc":`Mārketinga vadītājs uzņēmumā Acme, Inc`,"Hidden for members":`Paslēpts dalībniekiem`,"Hide comment":`Slēpt komentāru`,"Jamie Larson":`Jānis Reikulis`,"Join the discussion":`Pievienojieties diskusijai`,"Just now":`Tikai tagad`,Like:``,"Load more ({amount})":``,"Local resident":`Vietējais iedzīvotājs`,"Member discussion":`Biedru diskusija`,Name:`Vārds`,Neurosurgeon:`Neiroķirurgs`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Pēc dzēšanas šo komentāru nevar atgūt.`,"One hour ago":`Pirms stundas`,"One min ago":`Pirms minūtes`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Atbildēt`,"Reply to":`Atbildēt uz`,"Reply to comment":`Atbildēt uz komentāru`,Report:`Ziņojums`,"Report comment":`Ziņot par komentāru`,"Report this comment?":`Vai ziņot par šo komentāru?`,Save:`Saglabāt`,"See full discussion":``,Sending:`Notiek nosūtīšana`,Sent:`Nosūtīts`,"Show {amount} more replies":`Rādīt vēl {amount} atbildes`,"Show 1 more reply":`Rādīt vēl 1 atbildi`,"Show comment":`Rādīt komentāru`,"Sign in":`Pierakstīties`,"Sign up now":`Reģistrējieties tūlīt`,"Sort by":`Kārtot pēc`,"Start the conversation":`Sāciet sarunu`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Šis komentārs ir paslēpts.`,"This comment has been removed.":`Šis komentārs ir noņemts.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Jauniniet tūlīt`,"View in admin":``,Yesterday:`Vakar`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Jūsu pieprasījums tiks nosūtīts šīs vietnes īpašniekam.`},Lv={"{amount} characters left":`Преостануваат {amount} знаци.`,"{amount} comments":`{amount} коментари`,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":`Уште {amount}`,"1 comment":`1 коментар`,"Add comment":`Додајте коментар`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Додајте контекст за вашиот коментар, споделете го вашето име и експертиза за да одржите пристојна дискусија.`,"Add reply":`Одговорете`,"Add your expertise":``,"Already a member?":`Веќе сте член?`,Anonymous:`Анонимен`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Станете член на {publication} за да можете да коментирате.`,"Become a paid member of {publication} to start commenting.":`Станете претплатен член на {publication} за да можеш да коментирате.`,Best:``,Cancel:`Откажете`,Comment:`Коментирајте`,"Commenting disabled":``,"Complete your profile":`Комплетирајте го вашиот профил`,Delete:`Избришете`,Deleted:``,"Deleted member":`Избришан член`,Deleting:``,Discussion:`Разговор`,Dislike:``,Edit:`Изменете`,"Edit this comment":`Изменете го овој коментар`,edited:``,"Enter your name":`Внесете го вашето име`,Expertise:`Експертиза`,"Founder @ Acme Inc":`Основач @ Примерна Компанија`,"Full-time parent":`Родител`,"Head of Marketing at Acme, Inc":`Раководител на Маркетинг во Примерна Компанија`,"Hidden for members":``,"Hide comment":`Скријте го коментарот`,"Jamie Larson":`Петар Петровски`,"Join the discussion":`Приклучете се во разговорот`,"Just now":`Штотуку`,Like:``,"Load more ({amount})":``,"Local resident":`Локал жител`,"Member discussion":`Разговор на членовите`,Name:`Име`,Neurosurgeon:`Неврохирург`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Пред еден час`,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Одговорете`,"Reply to":``,"Reply to comment":`Одговор на коментарот`,Report:`Пријавете`,"Report comment":`Пријавете коментар`,"Report this comment?":`Пријавете го овој коментар?`,Save:`Зачувајте`,"See full discussion":``,Sending:`Се испраќа`,Sent:`Испратено`,"Show {amount} more replies":`Покажи уште {amount} одговори`,"Show 1 more reply":`Покажи уште 1 одговор`,"Show comment":`Покажи коментар`,"Sign in":`Најавете се`,"Sign up now":`Регистрирајте се`,"Sort by":``,"Start the conversation":`Започнете го разговорот`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Овој коментар беше скриен.`,"This comment has been removed.":`Овој коментар беше отстранет.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Надградете`,"View in admin":``,Yesterday:`Вчера`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Вашето барање ќе биде испратено на сопственикот на оваа страница.`},Rv={"{amount} characters left":`{amount} тэмдэгт үлдсэн`,"{amount} comments":`{amount} сэтгэгдэл`,"{amount} hrs ago":`{amount} цагийн өмнө`,"{amount} mins ago":`{amount} минутын өмнө`,"{amount} more":`{amount} илүү`,"1 comment":`1 сэтгэгдэл`,"Add comment":`Сэтгэгдэл нэмэх`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Сэтгэгдэлдээ илүү мэдээлэл оруулан, нэр болон мэргэжлээ хуваалцаж, үр бүтээлтэй хэлэлцүүлэг өрнүүлнэ үү.`,"Add reply":`Хариу нэмэх`,"Add your expertise":``,"Already a member?":`Бүртгэлтэй юу?`,Anonymous:`Нууц`,"Are you sure?":`Та итгэлтэй байна уу?`,Back:``,"Become a member of {publication} to start commenting.":`Сэтгэгдэл бичихийн тулд {publication}-н гишүүн болно уу.`,"Become a paid member of {publication} to start commenting.":`Сэтгэгдэл бичихийн тулд {publication}-н төлбөртэй гишүүн болно уу.`,Best:``,Cancel:`Цуцлах`,Comment:`Сэтгэгдэл`,"Commenting disabled":``,"Complete your profile":`Профайлаа бүрэн бөглөнө үү`,Delete:`Устгах`,Deleted:`Устгагдсан`,"Deleted member":`Устгагдсан гишүүн`,Deleting:`Устгаж байна`,Discussion:`Хэлэлцүүлэг`,Dislike:``,Edit:`Засах`,"Edit this comment":`Энэхүү сэтгэгдлийг засах`,edited:`засагдсан`,"Enter your name":`Нэрээ оруулна уу`,Expertise:`Мэргэжил`,"Founder @ Acme Inc":`Acme Inc-н үүсгэн байгуулагч`,"Full-time parent":`Бүтэн цагийн эцэг/эх`,"Head of Marketing at Acme, Inc":`Acme, Inc-н маркетингийн удирдлага`,"Hidden for members":`Гишүүдээс нуугдсан`,"Hide comment":`Сэтгэгдлийг нуух`,"Jamie Larson":`Доржийн Бат`,"Join the discussion":`Хэлэлцүүлэгт нэгдэх`,"Just now":`Дөнгөж сая`,Like:``,"Load more ({amount})":`Дахин харах ({amount})`,"Local resident":`Орон нутгийн оршин суугч`,"Member discussion":`Гишүүдийн хэлэлцүүлэг`,Name:`Нэр`,Neurosurgeon:`Мэдрэлийн мэс засалч`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Устгасны дараа энэ сэтгэгдлийг сэргээх боломжгүй.`,"One hour ago":`Нэг цагийн өмнө`,"One min ago":`Нэг минутын өмнө`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Хариулах`,"Reply to":`Хариулах`,"Reply to comment":`Сэтгэгдэлд хариулах`,Report:`Мэдэгдэх`,"Report comment":`Сэтгэгдлийг мэдэгдэх`,"Report this comment?":`Энэ сэтгэгдлийг мэдэгдэх үү?`,Save:`Хадгалах`,"See full discussion":``,Sending:`Илгээж байна`,Sent:`Илгээгдсэн`,"Show {amount} more replies":`{amount} хариултыг харуулах`,"Show 1 more reply":`1 хариултыг харуулах`,"Show comment":`Сэтгэгдлийг харуулах`,"Sign in":`Нэвтрэх`,"Sign up now":`Одоо бүртгүүлэх`,"Sort by":`Эрэмбэлэх`,"Start the conversation":`Яриаг эхлүүлэх`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Энэ сэтгэгдэл нуугдсан.`,"This comment has been removed.":`Энэ сэтгэгдэл хасагдсан.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Одоо шинэчлэх`,"View in admin":``,Yesterday:`Өчигдөр`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Таны хүсэлт энэ сайтын эзэмшигч рүү илгээгдэнэ.`},zv={"{amount} characters left":``,"{amount} comments":``,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":``,"1 comment":``,"Add comment":``,"Add context to your comment, share your name and expertise to foster a healthy discussion.":``,"Add reply":``,"Add your expertise":``,"Already a member?":``,Anonymous:``,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":``,"Become a paid member of {publication} to start commenting.":``,Best:``,Cancel:``,Comment:``,"Commenting disabled":``,"Complete your profile":``,Delete:``,Deleted:``,"Deleted member":``,Deleting:``,Discussion:``,Dislike:``,Edit:``,"Edit this comment":``,edited:``,"Enter your name":``,Expertise:``,"Founder @ Acme Inc":``,"Full-time parent":``,"Head of Marketing at Acme, Inc":``,"Hidden for members":``,"Hide comment":``,"Jamie Larson":``,"Join the discussion":``,"Just now":``,Like:``,"Load more ({amount})":``,"Local resident":``,"Member discussion":``,Name:``,Neurosurgeon:``,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":``,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:``,"Reply to":``,"Reply to comment":``,Report:``,"Report comment":``,"Report this comment?":``,Save:``,"See full discussion":``,Sending:``,Sent:``,"Show {amount} more replies":``,"Show 1 more reply":``,"Show comment":``,"Sign in":``,"Sign up now":``,"Sort by":``,"Start the conversation":``,"The linked comment is no longer available.":``,"This comment has been hidden.":``,"This comment has been removed.":``,Unpin:``,"Unpin comment":``,"Upgrade now":``,"View in admin":``,Yesterday:``,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":``},Bv={"{amount} characters left":`{amount} tegn igjen`,"{amount} comments":`{amount} kommentarer`,"{amount} hrs ago":`{amount} timer siden`,"{amount} mins ago":`{amount} minutter siden`,"{amount} more":`{amount} mer`,"1 comment":`1 kommentar`,"Add comment":`Legg til kommentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Legg til kontekst i kommentaren din, del navnet ditt og ekspertisen din for å fremme en god diskusjon.`,"Add reply":`Legg til svar`,"Add your expertise":``,"Already a member?":`Allerede medlem?`,Anonymous:`Anonym`,"Are you sure?":`Er du sikker?`,Back:``,"Become a member of {publication} to start commenting.":`Bli medlem av {publication} for å begynne å kommentere.`,"Become a paid member of {publication} to start commenting.":`Bli et betalende medlem av {publication} for å begynne å kommentere.`,Best:``,Cancel:`Avbryt`,Comment:`Kommentar`,"Commenting disabled":``,"Complete your profile":`Fullfør profilen din`,Delete:`Slett`,Deleted:`Slettet`,"Deleted member":`Slettet medlem`,Deleting:`Sletter`,Discussion:`Diskusjon`,Dislike:``,Edit:`Rediger`,"Edit this comment":`Rediger denne kommentaren`,edited:`redigert`,"Enter your name":`Skriv inn navnet ditt`,Expertise:`Ekspertise`,"Founder @ Acme Inc":`Grunnlegger @ Acme Inc`,"Full-time parent":`Forelder på heltid`,"Head of Marketing at Acme, Inc":`Markedsføringsleder hos Acme Inc`,"Hidden for members":`Skjult for medlemmer`,"Hide comment":`Skjul kommentar`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Delta i diskusjonen`,"Just now":`Akkurat nå`,Like:``,"Load more ({amount})":`Last inn flere ({amount})`,"Local resident":`Lokal innbygger`,"Member discussion":`Medlemsdiskusjon`,Name:`Navn`,Neurosurgeon:`Nevrokirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`En time siden`,"One min ago":`Ett minutt siden`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Svar`,"Reply to":`Svar på`,"Reply to comment":`Svar på kommentar`,Report:`Rapporter`,"Report comment":`Rapporter kommentar`,"Report this comment?":`Rapportere denne kommentaren?`,Save:`Lagre`,"See full discussion":``,Sending:`Sender`,Sent:`Sendt`,"Show {amount} more replies":`Vis {amount} flere svar`,"Show 1 more reply":`Vis ett svar til`,"Show comment":`Vis kommentar`,"Sign in":`Logg inn`,"Sign up now":`Registrer deg nå`,"Sort by":`Sorter etter`,"Start the conversation":`Start samtalen`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Denne kommentaren er skjult.`,"This comment has been removed.":`Denne kommentaren er fjernet.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Oppgrader nå`,"View in admin":``,Yesterday:`I går`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Din forespørsel vil bli sendt til eieren av dette nettstedet.`},Vv={"{amount} characters left":`{amount} अक्षर बाँकी`,"{amount} comments":`{amount} प्रतिक्रियाहरू`,"{amount} hrs ago":`{amount} घण्टा अघि`,"{amount} mins ago":`{amount} मिनेट अघि`,"{amount} more":`{amount} थप`,"1 comment":`१ प्रतिक्रिया`,"Add comment":`प्रतिक्रिया थप्नुहोस्`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`आफ्नो प्रतिक्रियालाई सन्दर्भ दिनुहोस्, स्वस्थ छलफलको लागि आफ्नो नाम र विशेषज्ञता साझा गर्नुहोस्।`,"Add reply":`प्रत्युत्तर थप्नुहोस्`,"Add your expertise":`आफ्नो विशेषज्ञता थप्नुहोस्`,"Already a member?":`पहिले नै सदस्य हुनुहुन्छ?`,Anonymous:`अज्ञात`,"Are you sure?":`के तपाईं निश्चित हुनुहुन्छ?`,Back:``,"Become a member of {publication} to start commenting.":`प्रतिक्रिया सुरु गर्न {publication} को सदस्य बन्नुहोस्।`,"Become a paid member of {publication} to start commenting.":`प्रतिक्रिया सुरु गर्न {publication} को सशुल्क सदस्य बन्नुहोस्।`,Best:`उत्तम`,Cancel:`रद्द गर्नुहोस्`,Comment:`प्रतिक्रिया`,"Commenting disabled":``,"Complete your profile":`आफ्नो प्रोफाइल पूरा गर्नुहोस्`,Delete:`मेटाउनुहोस्`,Deleted:`मेटाइयो`,"Deleted member":`मेटाइएको सदस्य`,Deleting:`मेटाइँदैछ`,Discussion:`छलफल`,Dislike:``,Edit:`सम्पादन`,"Edit this comment":`यो प्रतिक्रिया सम्पादन गर्नुहोस्`,edited:`सम्पादित`,"Enter your name":`आफ्नो नाम प्रविष्ट गर्नुहोस्`,Expertise:`विशेषज्ञता`,"Founder @ Acme Inc":`संस्थापक @ Acme Inc`,"Full-time parent":`पूर्ण-कालीन अभिभावक`,"Head of Marketing at Acme, Inc":`Acme, Inc मा मार्केटिङ प्रमुख`,"Hidden for members":`सदस्यहरूका लागि लुकाइएको`,"Hide comment":`प्रतिक्रिया लुकाउनुहोस्`,"Jamie Larson":`जेमी लार्सन`,"Join the discussion":`छलफलमा सामेल हुनुहोस्`,"Just now":`भर्खरै`,Like:``,"Load more ({amount})":`थप लोड गर्नुहोस् ({amount})`,"Local resident":`स्थानीय बासिन्दा`,"Member discussion":`सदस्य छलफल`,Name:`नाम`,Neurosurgeon:`न्यूरोसर्जन`,Newest:`सबैभन्दा नयाँ`,Oldest:`सबैभन्दा पुरानो`,"Once deleted, this comment can’t be recovered.":`एक पटक मेटाइएपछि, यो प्रतिक्रिया पुन: प्राप्त गर्न सकिँदैन।`,"One hour ago":`एक घण्टा अघि`,"One min ago":`एक मिनेट अघि`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`प्रत्युत्तर दिनुहोस्`,"Reply to":`प्रत्युत्तर दिनुहोस्`,"Reply to comment":`प्रतिक्रियाको प्रत्युत्तर दिनुहोस्`,Report:`रिपोर्ट गर्नुहोस्`,"Report comment":`प्रतिक्रिया रिपोर्ट गर्नुहोस्`,"Report this comment?":`यो प्रतिक्रिया रिपोर्ट गर्नुहुन्छ?`,Save:`बचत गर्नुहोस्`,"See full discussion":``,Sending:`पठाइँदैछ`,Sent:`पठाइयो`,"Show {amount} more replies":`थप {amount} प्रत्युत्तरहरू देखाउनुहोस्`,"Show 1 more reply":`थप १ प्रत्युत्तर देखाउनुहोस्`,"Show comment":`प्रतिक्रिया देखाउनुहोस्`,"Sign in":`साइन इन गर्नुहोस्`,"Sign up now":`अहिले दर्ता गर्नुहोस्`,"Sort by":`क्रमबद्ध गर्नुहोस्`,"Start the conversation":`कुराकानी सुरु गर्नुहोस्`,"The linked comment is no longer available.":``,"This comment has been hidden.":`यो प्रतिक्रिया लुकाइएको छ।`,"This comment has been removed.":`यो प्रतिक्रिया हटाइएको छ।`,Unpin:``,"Unpin comment":``,"Upgrade now":`अहिले अपग्रेड गर्नुहोस्`,"View in admin":``,Yesterday:`हिजो`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`तपाईंको अनुरोध यस साइटको मालिकलाई पठाइनेछ।`},Hv={"{amount} characters left":`Nog {amount} tekens over`,"{amount} comments":`{amount} reacties`,"{amount} hrs ago":`{amount} uur geleden`,"{amount} mins ago":`{amount} min geleden`,"{amount} more":`Nog {amount}`,"1 comment":`Eén reactie`,"Add comment":`Versturen`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Voeg context toe aan je reactie, deel je naam en expertise om een gezonde discussie te bevorderen.`,"Add reply":`Beantwoorden`,"Add your expertise":``,"Already a member?":`Al lid?`,Anonymous:`Anoniem`,"Are you sure?":`Weet je het zeker?`,Back:``,"Become a member of {publication} to start commenting.":`Word lid van {publication} om te kunnen reageren.`,"Become a paid member of {publication} to start commenting.":`Word betalend lid van {publication} om te kunnen reageren.`,Best:``,Cancel:`Annuleren`,Comment:`Verstuur`,"Commenting disabled":``,"Complete your profile":`Vervolledig jouw profiel`,Delete:`Verwijderen`,Deleted:`Verwijderd`,"Deleted member":`Verwijderd lid`,Deleting:`Wordt verwijderd`,Discussion:`Gesprek`,Dislike:``,Edit:`Bewerken`,"Edit this comment":`Bewerk deze reactie`,edited:`bewerkt`,"Enter your name":`Vul je naam in`,Expertise:`Expertise`,"Founder @ Acme Inc":`Oprichter, Acme BV`,"Full-time parent":`Full-time ouder`,"Head of Marketing at Acme, Inc":`Acme BV, Hoofd Marketing`,"Hidden for members":`Verborgen voor leden`,"Hide comment":`Verberg reactie`,"Jamie Larson":`Jan Jansen`,"Join the discussion":`Doe mee aan het gesprek`,"Just now":`Zojuist`,Like:``,"Load more ({amount})":`Laad meer ({amount})`,"Local resident":`Lokale bewoner`,"Member discussion":`Gesprek`,Name:`Naam`,Neurosurgeon:`Neurochirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Eenmaal verwijderd, kan deze reactie niet meer worden hersteld.`,"One hour ago":`Eén uur geleden`,"One min ago":`Eén min geleden`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Beantwoorden`,"Reply to":`Antwoord op`,"Reply to comment":`Beantwoord deze reactie`,Report:`Melden`,"Report comment":`Meld reactie`,"Report this comment?":`Meld deze reactie?`,Save:`Opslaan`,"See full discussion":``,Sending:`Verzenden`,Sent:`Verzonden`,"Show {amount} more replies":`Toon {amount} extra antwoorden`,"Show 1 more reply":`Toon nog 1 antwoord`,"Show comment":`Toon reactie`,"Sign in":`Inloggen`,"Sign up now":`Registreren`,"Sort by":`Sorteren op`,"Start the conversation":`Begin het gesprek`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Deze reactie is verborgen.`,"This comment has been removed.":`Deze reactie is verwijderd.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Upgrade nu`,"View in admin":``,Yesterday:`Gisteren`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Jouw melding zal worden verzonden naar de eigenaar van deze site.`},Uv={"{amount} characters left":``,"{amount} comments":``,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":``,"1 comment":``,"Add comment":``,"Add context to your comment, share your name and expertise to foster a healthy discussion.":``,"Add reply":``,"Add your expertise":``,"Already a member?":``,Anonymous:``,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":``,"Become a paid member of {publication} to start commenting.":``,Best:``,Cancel:``,Comment:``,"Commenting disabled":``,"Complete your profile":``,Delete:``,Deleted:``,"Deleted member":``,Deleting:``,Discussion:``,Dislike:``,Edit:``,"Edit this comment":``,edited:``,"Enter your name":``,Expertise:``,"Founder @ Acme Inc":``,"Full-time parent":``,"Head of Marketing at Acme, Inc":``,"Hidden for members":``,"Hide comment":``,"Jamie Larson":``,"Join the discussion":``,"Just now":``,Like:``,"Load more ({amount})":``,"Local resident":``,"Member discussion":``,Name:``,Neurosurgeon:``,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":``,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:``,"Reply to":``,"Reply to comment":``,Report:``,"Report comment":``,"Report this comment?":``,Save:``,"See full discussion":``,Sending:``,Sent:``,"Show {amount} more replies":``,"Show 1 more reply":``,"Show comment":``,"Sign in":``,"Sign up now":``,"Sort by":``,"Start the conversation":``,"The linked comment is no longer available.":``,"This comment has been hidden.":``,"This comment has been removed.":``,Unpin:``,"Unpin comment":``,"Upgrade now":``,"View in admin":``,Yesterday:``,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":``},Wv={"{amount} characters left":`{amount} ਅੱਖਰ ਬਾਕੀ`,"{amount} comments":`{amount} ਟਿੱਪਣੀਆਂ`,"{amount} hrs ago":`{amount} ਘੰਟੇ ਪਹਿਲਾਂ`,"{amount} mins ago":`{amount} ਮਿੰਟ ਪਹਿਲਾਂ`,"{amount} more":`{amount} ਹੋਰ`,"1 comment":`1 ਟਿੱਪਣੀ`,"Add comment":`ਟਿੱਪਣੀ ਸ਼ਾਮਲ ਕਰੋ`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`ਆਪਣੀ ਟਿੱਪਣੀ ਵਿੱਚ ਸੰਦਰਭ ਸ਼ਾਮਲ ਕਰੋ, ਸਿਹਤਮੰਦ ਵਿਚਾਰ-ਵਟਾਂਦਰੇ ਨੂੰ ਉਤਸ਼ਾਹਿਤ ਕਰਨ ਲਈ ਆਪਣਾ ਨਾਮ ਅਤੇ ਮੁਹਾਰਤ ਸਾਂਝੀ ਕਰੋ।`,"Add reply":`ਜਵਾਬ ਸ਼ਾਮਲ ਕਰੋ`,"Add your expertise":`ਆਪਣੀ ਮੁਹਾਰਤ ਸ਼ਾਮਲ ਕਰੋ`,"Already a member?":`ਪਹਿਲਾਂ ਤੋਂ ਹੀ ਮੈਂਬਰ ਹੋ?`,Anonymous:`ਗੁਮਨਾਮ`,"Are you sure?":`ਕੀ ਤੁਹਾਨੂੰ ਯਕੀਨ ਹੈ?`,Back:``,"Become a member of {publication} to start commenting.":`{publication} ਦੇ ਮੈਂਬਰ ਬਣੋ ਅਤੇ ਟਿੱਪਣੀ ਕਰਨਾ ਸ਼ੁਰੂ ਕਰੋ।`,"Become a paid member of {publication} to start commenting.":`{publication} ਦੇ ਸਹਿਯੋਗੀ ਮੈਂਬਰ ਬਣੋ ਅਤੇ ਟਿੱਪਣੀ ਕਰਨਾ ਸ਼ੁਰੂ ਕਰੋ।`,Best:`ਸਭ ਤੋਂ ਵਧੀਆ`,Cancel:`ਰੱਦ ਕਰੋ`,Comment:`ਟਿੱਪਣੀ`,"Commenting disabled":``,"Complete your profile":`ਆਪਣਾ ਨਿੱਜੀ ਪੰਨਾ ਪੂਰਾ ਕਰੋ`,Delete:`ਮਿਟਾਓ`,Deleted:`ਮਿਟਾਇਆ ਗਿਆ`,"Deleted member":`ਮਿਟਾਇਆ ਗਿਆ ਮੈਂਬਰ`,Deleting:`ਮਿਟਾਇਆ ਜਾ ਰਿਹਾ ਹੈ`,Discussion:`ਵਿਚਾਰ-ਵਟਾਂਦਰਾ`,Dislike:``,Edit:`ਸੰਪਾਦਿਤ ਕਰੋ`,"Edit this comment":`ਇਸ ਟਿੱਪਣੀ ਨੂੰ ਸੰਪਾਦਿਤ ਕਰੋ`,edited:`ਸੰਪਾਦਿਤ`,"Enter your name":`ਆਪਣਾ ਨਾਮ ਦਰਜ ਕਰੋ`,Expertise:`ਮੁਹਾਰਤ`,"Founder @ Acme Inc":`ਸੰਸਥਾਪਕ @ ਫਲਾਣੀ ਕੰਪਨੀ`,"Full-time parent":`ਘਰੇਲੂ ਮਾਪਾ`,"Head of Marketing at Acme, Inc":`ਮਾਰਕੀਟਿੰਗ ਮੁਖੀ, ਫਲਾਣੀ ਕੰਪਨੀ ਵਿਖੇ`,"Hidden for members":`ਮੈਂਬਰਾਂ ਲਈ ਛੁਪਾਇਆ ਗਿਆ`,"Hide comment":`ਟਿੱਪਣੀ ਛੁਪਾਓ`,"Jamie Larson":`ਫਲਾਣਾ ਫਲਾਣੀ`,"Join the discussion":`ਵਿਚਾਰ-ਵਟਾਂਦਰੇ ਵਿੱਚ ਸ਼ਾਮਲ ਹੋਵੋ`,"Just now":`ਹੁਣੇ ਹੁਣੇ`,Like:``,"Load more ({amount})":`ਹੋਰ ਲੋਡ ਕਰੋ ({amount})`,"Local resident":`ਸਥਾਨਕ ਨਿਵਾਸੀ`,"Member discussion":`ਮੈਂਬਰ ਵਿਚਾਰ-ਵਟਾਂਦਰਾ`,Name:`ਨਾਮ`,Neurosurgeon:`ਨਿਊਰੋਸਰਜਨ`,Newest:`ਸਭ ਤੋਂ ਨਵਾਂ`,Oldest:`ਸਭ ਤੋਂ ਪੁਰਾਣਾ`,"Once deleted, this comment can’t be recovered.":`ਇੱਕ ਵਾਰ ਮਿਟਾਉਣ ਤੋਂ ਬਾਅਦ, ਇਹ ਟਿੱਪਣੀ ਮੁੜ ਪ੍ਰਾਪਤ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕਦੀ।`,"One hour ago":`ਇੱਕ ਘੰਟਾ ਪਹਿਲਾਂ`,"One min ago":`ਇੱਕ ਮਿੰਟ ਪਹਿਲਾਂ`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`ਜਵਾਬ`,"Reply to":`ਨੂੰ ਜਵਾਬ ਦਿਓ`,"Reply to comment":`ਟਿੱਪਣੀ ਦਾ ਜਵਾਬ ਦਿਓ`,Report:`ਰਿਪੋਰਟ ਕਰੋ`,"Report comment":`ਟਿੱਪਣੀ ਦੀ ਰਿਪੋਰਟ ਕਰੋ`,"Report this comment?":`ਕੀ ਇਸ ਟਿੱਪਣੀ ਦੀ ਰਿਪੋਰਟ ਕਰਨੀ ਹੈ?`,Save:`ਸੁਰੱਖਿਅਤ ਕਰੋ`,"See full discussion":``,Sending:`ਭੇਜਿਆ ਜਾ ਰਿਹਾ ਹੈ`,Sent:`ਭੇਜ ਦਿੱਤਾ ਗਿਆ`,"Show {amount} more replies":`{amount} ਹੋਰ ਜਵਾਬ ਦਿਖਾਓ`,"Show 1 more reply":`1 ਹੋਰ ਜਵਾਬ ਦਿਖਾਓ`,"Show comment":`ਟਿੱਪਣੀ ਦਿਖਾਓ`,"Sign in":`ਸਾਈਨ ਇਨ ਕਰੋ`,"Sign up now":`ਹੁਣੇ ਸਾਈਨ ਅੱਪ ਕਰੋ`,"Sort by":`ਇਸ ਅਨੁਸਾਰ ਕ੍ਰਮਬੱਧ ਕਰੋ`,"Start the conversation":`ਗੱਲਬਾਤ ਸ਼ੁਰੂ ਕਰੋ`,"The linked comment is no longer available.":``,"This comment has been hidden.":`ਇਹ ਟਿੱਪਣੀ ਛੁਪਾ ਦਿੱਤੀ ਗਈ ਹੈ।`,"This comment has been removed.":`ਇਹ ਟਿੱਪਣੀ ਹਟਾ ਦਿੱਤੀ ਗਈ ਹੈ।`,Unpin:``,"Unpin comment":``,"Upgrade now":`ਹੁਣੇ ਅੱਪਗਰੇਡ ਕਰੋ`,"View in admin":``,Yesterday:`ਕੱਲ੍ਹ`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`ਤੁਹਾਡੀ ਬੇਨਤੀ ਇਸ ਸਾਈਟ ਦੇ ਸੰਚਾਲਕ ਨੂੰ ਭੇਜੀ ਜਾਵੇਗੀ।`},Gv={"{amount} characters left":`Pozostało {amount} znaków`,"{amount} comments":`{amount} komentarzy`,"{amount} hrs ago":`{amount} godzin temu`,"{amount} mins ago":`{amount} minut temu`,"{amount} more":`{amount} więcej`,"1 comment":`1 komentarz`,"Add comment":`Dodaj komentarz`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Dodaj więcej informacji do Twojego komentarza, następnie udostępnij proszę Twoje imię i doświadczenie w celu wzbogacenia jakości dyskusji.`,"Add reply":`Dodaj odpowiedź`,"Add your expertise":``,"Already a member?":`Posiadasz już konto?`,Anonymous:`Anonimowy`,"Are you sure?":`Czy jesteś pewien?`,Back:``,"Become a member of {publication} to start commenting.":`Dołącz do społeczności {publication}, by zacząć komentować.`,"Become a paid member of {publication} to start commenting.":`Dołącz do społeczności płatnych subskrybentów {publication}, by zacząć komentować.`,Best:``,Cancel:`Anuluj`,Comment:`Skomentuj`,"Commenting disabled":``,"Complete your profile":`Skompletuj Twój profil`,Delete:`Usuń`,Deleted:`Usunięto`,"Deleted member":`Usunięte konto`,Deleting:`Usuwanie`,Discussion:`Dyskusja`,Dislike:``,Edit:`Edytuj`,"Edit this comment":`Edytuj komentarz`,edited:`edytowano`,"Enter your name":`Podaj Twoje imię`,Expertise:`Doświadczenie`,"Founder @ Acme Inc":`Founder @ Acme Inc`,"Full-time parent":`Pełnoetatowy rodzic`,"Head of Marketing at Acme, Inc":`Head of Marketing at Acme, Inc`,"Hidden for members":`Ukryte dla członków`,"Hide comment":`Ukryj komentarz`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Dołącz do dyskusji`,"Just now":`Przed chwilą`,Like:``,"Load more ({amount})":`Załaduj więcej ({amount})`,"Local resident":`Lokalny rezydent`,"Member discussion":`Członek dyskusji`,Name:`Imię`,Neurosurgeon:`Neurochirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Po usunięciu, nie będzie możliwe przywrócenie tego komentarza`,"One hour ago":`Godzinę temu`,"One min ago":`Minutę temu`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Odpowiedz`,"Reply to":`Odpowiedz na`,"Reply to comment":`Napisz odpowiedź do komentarza`,Report:`Zgłoś`,"Report comment":`Zgłoś komentarz`,"Report this comment?":`Czy chcesz zgłosić ten komentarz?`,Save:`Zapisz`,"See full discussion":``,Sending:`Wysyłanie`,Sent:`Wysłano`,"Show {amount} more replies":`Pokaż {amount} kolejnych odpowiedzi`,"Show 1 more reply":`Pokaż następną odpowiedź`,"Show comment":`Pokaż komentarz`,"Sign in":`Zaloguj się`,"Sign up now":`Zarejestruj się`,"Sort by":`Sortuj według`,"Start the conversation":`Rozpocznij dyskusję`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Komentarz został ukryty.`,"This comment has been removed.":`Komentarz został usunięty.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Ulepsz teraz`,"View in admin":``,Yesterday:`Wczoraj`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Twoje zgłoszenie zostało przesłane do administratora strony.`},Kv={"{amount} characters left":`Faltam {amount} caracteres `,"{amount} comments":`{amount} comentários`,"{amount} hrs ago":`{amount} horas atrás`,"{amount} mins ago":`{amount} minutos atrás`,"{amount} more":`mais`,"1 comment":`Um comentário`,"Add comment":`Adicionar comentário`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Adicione o seu comentário, partilhe o seu nome e expriência de modo a promover uma discussão saudável.`,"Add reply":`Adicionar resposta`,"Add your expertise":``,"Already a member?":`Já é membro?`,Anonymous:`Anónimo`,"Are you sure?":`Tem a certeza?`,Back:``,"Become a member of {publication} to start commenting.":`Torne-se um membro do {publication} para comentar.`,"Become a paid member of {publication} to start commenting.":`Torne-se um membro pago do {publication} para comentar. `,Best:`Melhores`,Cancel:`Cancelar`,Comment:`Comentar`,"Commenting disabled":``,"Complete your profile":`Complete o seu perfil`,Delete:`Eliminar`,Deleted:`Eliminado`,"Deleted member":`Membro eliminado`,Deleting:`Eliminando`,Discussion:`Discussão`,Dislike:``,Edit:`Editar`,"Edit this comment":`Editar este comentário`,edited:`editado`,"Enter your name":`Insira o seu nome`,Expertise:`Perícia`,"Founder @ Acme Inc":`Fundador @ Amce Inc`,"Full-time parent":`Pai a tempo inteiro`,"Head of Marketing at Acme, Inc":`Responsável do Marketing @ Amce, Inc`,"Hidden for members":`Oculto para membros`,"Hide comment":`Esconder comentário`,"Jamie Larson":`Jane Doe`,"Join the discussion":`Junte-se à discussão`,"Just now":`Agora`,Like:``,"Load more ({amount})":``,"Local resident":`Residente local`,"Member discussion":`Discussão para membros`,Name:`Nome`,Neurosurgeon:`neurocirurgião`,Newest:`Mais recentes`,Oldest:`Mais antigos`,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`uma hora atrás`,"One min ago":`um minuto atrás`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Responder`,"Reply to":`Responder a`,"Reply to comment":`Responder ao comentário`,Report:`Reportar`,"Report comment":`Reportar comentário`,"Report this comment?":`Reportar este comentário?`,Save:`Guardar`,"See full discussion":``,Sending:`Enviar`,Sent:`Enviado`,"Show {amount} more replies":`Mostrar mais {amount} respostas`,"Show 1 more reply":`Mostrar mais uma resposta`,"Show comment":`Mostrar comentário`,"Sign in":`Registar`,"Sign up now":`Registar agora`,"Sort by":`Organizar por`,"Start the conversation":`Comece a conversa`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Este comentário foi ocultado`,"This comment has been removed.":`Este comentário foi removido`,Unpin:``,"Unpin comment":``,"Upgrade now":`Atualize agora`,"View in admin":``,Yesterday:`Ontem`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`O seu pedido será enviado para o dono deste site.`},qv={"{amount} characters left":`{amount} caracteres restantes`,"{amount} comments":`{amount} comentários`,"{amount} hrs ago":`{amount} horas atrás`,"{amount} mins ago":`{amount} minutos atrás`,"{amount} more":`{amount} mais`,"1 comment":`1 comentário`,"Add comment":`Adicionar comentário`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Adicione contexto ao seu comentário, compartilhe seu nome e sua especialidade para promover uma discussão saudável.`,"Add reply":`Adicionar resposta`,"Add your expertise":`Adicione sua especialidade`,"Already a member?":`Já é um membro?`,Anonymous:`Anônimo`,"Are you sure?":`Você tem certeza?`,Back:`Voltar`,"Become a member of {publication} to start commenting.":`Torne-se um membro de {publication} para começar a comentar.`,"Become a paid member of {publication} to start commenting.":`Torne-se um membro pago de {publication} para começar a comentar.`,Best:`Melhores`,Cancel:`Cancelar`,Comment:`Comentar`,"Commenting disabled":`Comentários desativados`,"Complete your profile":`Complete seu perfil`,Delete:`Excluir`,Deleted:`Excluído`,"Deleted member":`Membro excluído`,Deleting:`Excluindo`,Discussion:`Discussão`,Dislike:`Não gostei`,Edit:`Editar`,"Edit this comment":`Editar este comentário`,edited:`editado`,"Enter your name":`Digite seu nome`,Expertise:`Especialidade`,"Founder @ Acme Inc":`Fundador @ Acme Inc`,"Full-time parent":`Pai/Mãe em tempo integral`,"Head of Marketing at Acme, Inc":`Chefe de Marketing na Acme, Inc`,"Hidden for members":`Oculto para membros`,"Hide comment":`Ocultar comentário`,"Jamie Larson":`Cris Silva`,"Join the discussion":`Participe da discussão`,"Just now":`Agora mesmo`,Like:`Gostei`,"Load more ({amount})":`Carregar mais ({amount})`,"Local resident":`Residente local`,"Member discussion":`Discussão entre membros`,Name:`Nome`,Neurosurgeon:`Neurocirurgião`,Newest:`Mais Recentes`,Oldest:`Mais Antigos`,"Once deleted, this comment can’t be recovered.":`Após ser excluído, esse comentário não poderá ser recuperado.`,"One hour ago":`Uma hora atrás`,"One min ago":`Um minuto atrás`,"Pin comment":`Fixar comentário`,Pinned:`Fixado`,"Read more replies":`Ler mais respostas`,"Remove dislike":`Remover não gostei`,"Remove like":`Remover gostei`,Reply:`Responder`,"Reply to":`Responder a`,"Reply to comment":`Responder ao comentário`,Report:`Denunciar`,"Report comment":`Denunciar comentário`,"Report this comment?":`Denunciar este comentário?`,Save:`Salvar`,"See full discussion":`Ver discussão completa`,Sending:`Enviando`,Sent:`Enviado`,"Show {amount} more replies":`Exibir mais {amount} respostas`,"Show 1 more reply":`Exibir 1 resposta adicional`,"Show comment":`Exibir comentário`,"Sign in":`Entrar`,"Sign up now":`Inscreva-se agora`,"Sort by":`Ordenar por`,"Start the conversation":`Iniciar a conversa`,"The linked comment is no longer available.":`O comentário vinculado não está mais disponível.`,"This comment has been hidden.":`Este comentário foi ocultado.`,"This comment has been removed.":`Este comentário foi removido.`,Unpin:`Desafixar`,"Unpin comment":`Desafixar comentário`,"Upgrade now":`Atualize agora`,"View in admin":`Ver no admin`,Yesterday:`Ontem`,"You can't post comments in this publication.":`Você não pode comentar nesta publicação.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Você não pode comentar nesta publicação. <a>Contate o suporte</a> para mais informações.`,"Your request will be sent to the owner of this site.":`Sua solicitação será enviada ao proprietário deste site.`},Jv={"{amount} characters left":`{amount} caractere rămase`,"{amount} comments":`{amount} comentarii`,"{amount} hrs ago":`acum {amount} ore`,"{amount} mins ago":`acum {amount} minute`,"{amount} more":`încă {amount}`,"1 comment":`1 comentariu`,"Add comment":`Adaugă comentariu`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Adăugați context comentariului dumneavoastră, împărtășiți-vă numele și expertiza pentru a favoriza o discuție sănătoasă.`,"Add reply":`Adaugă răspuns`,"Add your expertise":``,"Already a member?":`Deja membru?`,Anonymous:`Anonim`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Deveniți membru al {publication} pentru a începe să comentați.`,"Become a paid member of {publication} to start commenting.":`Deveniți membru plătit al {publication} pentru a începe să comentați.`,Best:``,Cancel:`Anulează`,Comment:`Comentează`,"Commenting disabled":``,"Complete your profile":`Completează-ți profilul`,Delete:`Șterge`,Deleted:``,"Deleted member":`Membru șters`,Deleting:``,Discussion:`Discuție`,Dislike:``,Edit:`Editează`,"Edit this comment":`Editează acest comentariu`,edited:`editat`,"Enter your name":`Introduceți numele dumneavoastră`,Expertise:`Expertiză`,"Founder @ Acme Inc":`Fondator @ Acme Inc`,"Full-time parent":`Părinte cu normă întreagă`,"Head of Marketing at Acme, Inc":`Șef de Marketing la Acme, Inc`,"Hidden for members":``,"Hide comment":`Ascunde comentariul`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Alătură-te discuției`,"Just now":`Chiar acum`,Like:``,"Load more ({amount})":``,"Local resident":`Rezident local`,"Member discussion":`Discuție membrii`,Name:`Nume`,Neurosurgeon:`Neurochirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Acum o oră`,"One min ago":`Acum un minut`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Răspunde`,"Reply to":``,"Reply to comment":`Răspunde la comentariu`,Report:`Raportează`,"Report comment":`Raportează comentariul`,"Report this comment?":`Raportezi acest comentariu?`,Save:`Salvează`,"See full discussion":``,Sending:`Se trimite`,Sent:`Trimis`,"Show {amount} more replies":`Arată încă {amount} răspunsuri`,"Show 1 more reply":`Arată încă un răspuns`,"Show comment":`Arată comentariul`,"Sign in":`Autentificare`,"Sign up now":`Înregistrează-te acum`,"Sort by":`Ordonează după`,"Start the conversation":`Începe conversația`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Acest comentariu a fost ascuns.`,"This comment has been removed.":`Acest comentariu a fost eliminat.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Actualizează acum`,"View in admin":``,Yesterday:`Ieri`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Cererea dumneavoastră va fi trimisă proprietarului acestui site.`},Yv={"{amount} characters left":`{amount} символа(ов) осталось`,"{amount} comments":`{amount} комментария(ев)`,"{amount} hrs ago":`{amount} ч. назад`,"{amount} mins ago":`{amount} мин. назад`,"{amount} more":`ещё {amount}`,"1 comment":`1 комментарий`,"Add comment":`Добавить комментарий`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Дополните свой комментарий контекстом, добавив подробности о себе и своём опыте, чтобы обсуждение стало более интересным.`,"Add reply":`Добавить ответ`,"Add your expertise":`Добавить свой опыт`,"Already a member?":`Уже присоединились?`,Anonymous:`Анонимный`,"Are you sure?":`Вы уверены?`,Back:``,"Become a member of {publication} to start commenting.":`Присоединяйтесь к {publication} чтобы начать комментировать.`,"Become a paid member of {publication} to start commenting.":`Станьте платным участником {publication} чтобы начать комментировать.`,Best:`Лучший`,Cancel:`Отмена`,Comment:`Комментарий`,"Commenting disabled":``,"Complete your profile":`Заполните свой профиль`,Delete:`Удалить`,Deleted:`Удалено`,"Deleted member":`Удалённый участник`,Deleting:`Удаление`,Discussion:`Обсуждение`,Dislike:``,Edit:`Редактировать`,"Edit this comment":`Редактировать этот комментарий`,edited:`Отредактированно`,"Enter your name":`Введите ваше имя`,Expertise:`Деятельность`,"Founder @ Acme Inc":`Основатель @ Корпорация «Акме»`,"Full-time parent":`Родитель, работающий полный рабочий день`,"Head of Marketing at Acme, Inc":`Руководитель отдела маркетинга в Корпорации «Акме»`,"Hidden for members":`Скрыто для участников`,"Hide comment":`Скрыть комментарий`,"Jamie Larson":`Павел Бид`,"Join the discussion":`Присоединиться к обсуждению`,"Just now":`Сейчас`,Like:``,"Load more ({amount})":`Загрузить ещё ({amount})`,"Local resident":`Местный житель`,"Member discussion":`Обсуждение участников`,Name:`Имя`,Neurosurgeon:`Нейрохирург`,Newest:`Сначала новые`,Oldest:`Сначала старые`,"Once deleted, this comment can’t be recovered.":`После удаления этот комментарий не может быть восстановлен.`,"One hour ago":`Час назад`,"One min ago":`Минуту назад`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Ответить`,"Reply to":`Ответить на`,"Reply to comment":`Ответить на комментарий`,Report:`Пожаловаться`,"Report comment":`Пожаловаться на комментарий`,"Report this comment?":`Пожаловаться на этот комментарий?`,Save:`Сохранить`,"See full discussion":``,Sending:`Отправка`,Sent:`Отправлено`,"Show {amount} more replies":`Показать ещё {amount} ответа(ов)`,"Show 1 more reply":`Показать ответ`,"Show comment":`Показать комментарий`,"Sign in":`Войти`,"Sign up now":`Зарегистрироваться`,"Sort by":`Сортировать по`,"Start the conversation":`Начать обсуждение`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Этот комментарий скрыт`,"This comment has been removed.":`Этот комментарий был удалён`,Unpin:``,"Unpin comment":``,"Upgrade now":`Улучшить подписку`,"View in admin":``,Yesterday:`Вчера`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Ваш запрос будет отправлен владельцу сайта.`},Xv={"{amount} characters left":`තව වචන {amount} යි.`,"{amount} comments":`අදහ​ස් {amount} යි.`,"{amount} hrs ago":`පැය {amount} ට පෙ​ර`,"{amount} mins ago":`මිනිත්තු {amount} ට පෙ​ර`,"{amount} more":``,"1 comment":`1 අදහසයි.`,"Add comment":`අදහස් එකතු කරන්​න`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`ඉතා හො​ඳ සාකච්ඡාවක් රැගෙ​න යාම සඳහා ඔබේ අදහසට අන්තර්ගත​ය එක් කර ඔබේ නම සහ විශේෂඥතාව බෙදා ගන්න`,"Add reply":`ප්‍රතිචාර එකතු කරන්​න`,"Add your expertise":``,"Already a member?":`දැනටමත් සාමාජිකයෙක්ද ?`,Anonymous:`නිර්නාමික`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`අදහස් දැක්වීම ආරම්භ කිරීමට {publication} හි සාමාජිකයෙකු වන්න`,"Become a paid member of {publication} to start commenting.":`අදහස් දැක්වීම ආරම්භ කිරීමට {publication} හි ගෙවීම් කරන ල​ද සාමාජිකයෙකු වන්න`,Best:``,Cancel:`අවලංගු කරන්​න​`,Comment:`අදහ​ස`,"Commenting disabled":``,"Complete your profile":`ඔබගේ ගිණුම සම්පූර්ණ කරන්​න`,Delete:`Delete කරන්​න`,Deleted:``,"Deleted member":`සාමාජිකයාව delete කරන්​න`,Deleting:``,Discussion:`සාකච්ඡා​ව`,Dislike:``,Edit:`සංස්කරණය කරන්න`,"Edit this comment":`අදහස සංස්කරණය කරන්න`,edited:`සංස්කරණය කරන ලද.`,"Enter your name":`ඔබගේ නම සඳහන් කරන්​න`,Expertise:`විශේෂඥතාව`,"Founder @ Acme Inc":`Acme Inc හි නිර්මාතෘ`,"Full-time parent":`පූර්ණ කාලීන භාරකරුව​න්`,"Head of Marketing at Acme, Inc":`Acme, Inc හි අලෙවි ප්‍රධානී`,"Hidden for members":``,"Hide comment":`අදහස සඟවන්න`,"Jamie Larson":`ජේමි ලාර්සන්`,"Join the discussion":`සාකච්ඡාවට එක්වන්න`,"Just now":`මේ දැ​න්`,Like:``,"Load more ({amount})":``,"Local resident":`දේශීය පදිංචි`,"Member discussion":`සාමාජික සාකච්ඡාව`,Name:`න​ම`,Neurosurgeon:`ස්නායු ශ​ල්‍ය වෛ​ද්‍ය`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`පැයකට පෙ​ර`,"One min ago":`මිනිත්තුවකට පෙ​ර`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`ප්‍රතිචාර දක්වන්​න`,"Reply to":``,"Reply to comment":`අදහසට ‍රතිචාර දක්වන්​න`,Report:`වාර්තා කරන්​න`,"Report comment":`අදහසට වාර්තා කරන්​න`,"Report this comment?":`මෙම අදහසට වාර්තා කරන්නෙහිද ?`,Save:`සුරකින්​න`,"See full discussion":``,Sending:`යවමි​න්`,Sent:`යැව්වා`,"Show {amount} more replies":`තවත් පිළිතුරු {amount} පෙන්වන්න`,"Show 1 more reply":`තවත් පිළිතුරු 1ක් පෙන්වන්න`,"Show comment":`අදහස පෙන්වන්න`,"Sign in":`Sign in වෙන්​න`,"Sign up now":`දැන්ම Sign up වෙන්​න`,"Sort by":``,"Start the conversation":`සංවාදය ආරම්භ කරන්න`,"The linked comment is no longer available.":``,"This comment has been hidden.":`මෙම අදහස සඟවා ඇත.`,"This comment has been removed.":`මෙම අදහස ඉවත් කර ඇත.`,Unpin:``,"Unpin comment":``,"Upgrade now":`දැන් upgrade කරන්න`,"View in admin":``,Yesterday:`ඊ​යෙ`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`ඔබගේ ඉල්ලීම මෙම අඩවියේ හිමිකරු වෙත යවනු ලැබේ.`},Zv={"{amount} characters left":`Zostáva {amount} znakov`,"{amount} comments":`{amount} komentárov`,"{amount} hrs ago":`Pred {amount} hodinami`,"{amount} mins ago":`Pred {amount} minútami`,"{amount} more":`{amount} ďalších`,"1 comment":`1 komentár`,"Add comment":`Pridať komentár`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Pridajte kontext do vášho komentára, zdielajte svoje meno, a odbornosť pre podporu zdravej diskusie.`,"Add reply":`Pridať odpoveď`,"Add your expertise":``,"Already a member?":`Už ste členom?`,Anonymous:`Anonym`,"Are you sure?":`Ste si istý?`,Back:``,"Become a member of {publication} to start commenting.":`Staňte sa členom {publication}, aby ste mohli začať komentovať`,"Become a paid member of {publication} to start commenting.":`Staňte sa plateným členom {publication}, aby ste mohli začať komentovať`,Best:``,Cancel:`Zrušiť`,Comment:`Komentár`,"Commenting disabled":``,"Complete your profile":`Dokončite váš profil`,Delete:`Vymazať`,Deleted:`Vymazané`,"Deleted member":`Vymazaný člen`,Deleting:`Vymazávam`,Discussion:`Diskusia`,Dislike:``,Edit:`Upraviť`,"Edit this comment":`Upraviť komentár`,edited:`upravený`,"Enter your name":`Zadajte vaše meno`,Expertise:`Odbornosť`,"Founder @ Acme Inc":`Zakladateľ @ Acme Inc`,"Full-time parent":`Rodič na plný úväzok`,"Head of Marketing at Acme, Inc":`Vedúci marketingu v spoločnosti Acme, Inc`,"Hidden for members":`Skryté pre členov`,"Hide comment":`Skryť komentár`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Zapojiť sa do diskusie`,"Just now":`Teraz`,Like:``,"Load more ({amount})":``,"Local resident":`Miestny obyvateľ`,"Member discussion":`Členská diskusia`,Name:`Meno`,Neurosurgeon:`Neurochirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Po odstránení nebude možné tento komentár obnoviť.`,"One hour ago":`Pred hodinou`,"One min ago":`Pred minútou`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Odpovedať`,"Reply to":`Odpovedať na`,"Reply to comment":`Odpovedať na komentár`,Report:`Nahlásiť`,"Report comment":`Nahlásiť komentár`,"Report this comment?":`Nahlásiť tento komentár?`,Save:`Uložiť`,"See full discussion":``,Sending:`Odosielanie`,Sent:`Odoslané`,"Show {amount} more replies":`Zobraziť {amount} ďalších odpoveďí`,"Show 1 more reply":`Zobraziť 1 ďalšiu odpoveď`,"Show comment":`Zobraziť komentár`,"Sign in":`Prihlásiť`,"Sign up now":`Registrovať sa`,"Sort by":`Triediť podľa`,"Start the conversation":`Začať konverzáciu`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Tento komentár bol skrytý.`,"This comment has been removed.":`Tento komentár bol vymazaný.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Upraviť členstvo`,"View in admin":``,Yesterday:`Včera`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Vaša požiadavka bude odoslaná vlastníkovi stránky.`},Qv={"{amount} characters left":`Še {amount} znakov`,"{amount} comments":`{amount} komentarjev`,"{amount} hrs ago":`Pred {amount} urami`,"{amount} mins ago":`Pred {amount} minutami`,"{amount} more":`Še {amount}`,"1 comment":`1 komentar`,"Add comment":`Dodajte komentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Dodajte kontekst svojemu komentarju, delite svoje ime in strokovno znanje za spodbujanje zdrave razprave.`,"Add reply":`Dodajte odgovor`,"Add your expertise":``,"Already a member?":`Ste že član?`,Anonymous:`Anonimno`,"Are you sure?":`Ste prepričani?`,Back:``,"Become a member of {publication} to start commenting.":`Postanite član {publication}, da lahko začnete komentirati.`,"Become a paid member of {publication} to start commenting.":`Postanite plačljiv član {publication}, da lahko začnete komentirati.`,Best:``,Cancel:`Prekliči`,Comment:`Komentiraj`,"Commenting disabled":``,"Complete your profile":`Dokončajte svoj profil`,Delete:`Izbriši`,Deleted:`Izbrisano`,"Deleted member":`Izbrisan član`,Deleting:`Brisanje`,Discussion:`Razprava`,Dislike:``,Edit:`Uredi`,"Edit this comment":`Uredi ta komentar`,edited:`urejeno`,"Enter your name":`Vnesite svoje ime`,Expertise:`Strokovno znanje`,"Founder @ Acme Inc":`Ustanovitelj pri Acme Inc`,"Full-time parent":`Starš s polnim delovnim časom`,"Head of Marketing at Acme, Inc":`Vodja marketinga pri Acme, Inc`,"Hidden for members":`Skrito za člane`,"Hide comment":`Skrij komentar`,"Jamie Larson":`Janez Novak`,"Join the discussion":`Pridružite se razpravi`,"Just now":`Pravkar`,Like:``,"Load more ({amount})":`Naloži več ({amount})`,"Local resident":`Lokalni prebivalec`,"Member discussion":`Razprava članov`,Name:`Ime`,Neurosurgeon:`Nevrokirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Ko je komentar izbrisan, ga ni mogoče več obnoviti.`,"One hour ago":`Pred eno uro`,"One min ago":`Pred eno minuto`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Odgovori`,"Reply to":`Odgovori na`,"Reply to comment":`Odgovori na komentar`,Report:`Prijavi`,"Report comment":`Prijavi komentar`,"Report this comment?":`Želite prijaviti ta komentar?`,Save:`Shrani`,"See full discussion":``,Sending:`Pošiljanje`,Sent:`Poslano`,"Show {amount} more replies":`Prikaži še {amount} odgovorov`,"Show 1 more reply":`Prikaži še 1 odgovor`,"Show comment":`Prikaži komentar`,"Sign in":`Prijavite se`,"Sign up now":`Registrirajte se zdaj`,"Sort by":`Razvrsti po`,"Start the conversation":`Začnite pogovor`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Ta komentar je bil skrit.`,"This comment has been removed.":`Ta komentar je bil odstranjen.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Nadgradite zdaj`,"View in admin":``,Yesterday:`Včeraj`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Vaša zahteva bo poslana lastniku te strani.`},$v={"{amount} characters left":`edhe {amount} karaktere`,"{amount} comments":`{amount} komente`,"{amount} hrs ago":`{amount} orë më parë`,"{amount} mins ago":`{amount} minuta më parë`,"{amount} more":`edhe {amount} të tjerë`,"1 comment":`1 koment`,"Add comment":`Shto koment`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Shtojini kontekst komentit tuaj, ndani emrin dhe përvojën tuaj për të nxitur një diskutim të shëndetshëm.`,"Add reply":`Shto përgjigje`,"Add your expertise":`Shtoni përvojën tuaj`,"Already a member?":`Jeni anëtar?`,Anonymous:`Anonim`,"Are you sure?":`A jeni i sigurt?`,Back:``,"Become a member of {publication} to start commenting.":`Bëhu anëtar i {publication} për të filluar komentimin.`,"Become a paid member of {publication} to start commenting.":`Bëhu anëtar me pagesë i {publication} për të filluar komentimin.`,Best:`Më të mirat`,Cancel:`Anulo`,Comment:`Koment`,"Commenting disabled":`Komentimi është çaktivizuar`,"Complete your profile":`Plotësoni profilin tuaj`,Delete:`Fshi`,Deleted:`U fshi`,"Deleted member":`Anëtar i fshirë`,Deleting:`Duke fshirë`,Discussion:`Diskutimi`,Dislike:``,Edit:`Modifiko`,"Edit this comment":`Modifiko këtë koment`,edited:`i modifikuar`,"Enter your name":`Vendosni emrin tuaj`,Expertise:`Përvoja`,"Founder @ Acme Inc":`Themelues @ Acme Inc`,"Full-time parent":`Prind me kohë të plotë`,"Head of Marketing at Acme, Inc":`Drejtor Marketingu në Acme, Inc`,"Hidden for members":`E fshehur për anëtarët`,"Hide comment":`Fshih komentin`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Bashkohu në diskutim`,"Just now":`Këtë çast`,Like:``,"Load more ({amount})":`Ngarko më shumë ({amount})`,"Local resident":`Banor vendas`,"Member discussion":`Diskutim i anëtarëve`,Name:`Emri`,Neurosurgeon:`Neurokirurg`,Newest:`Më të rejat`,Oldest:`Më të vjetrat`,"Once deleted, this comment can’t be recovered.":`Pasi të fshihet, ky koment nuk mund të rikthehet.`,"One hour ago":`Një orë më parë`,"One min ago":`Një minutë më parë`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Përgjigju`,"Reply to":`Përgjigju`,"Reply to comment":`Përgjigju komentit`,Report:`Raporto`,"Report comment":`Raporto komentin`,"Report this comment?":`Të raportohet ky koment?`,Save:`Ruaj`,"See full discussion":``,Sending:`Duke dërguar`,Sent:`U dërgua`,"Show {amount} more replies":`Shfaq edhe {amount} përgjigje`,"Show 1 more reply":`Shfaq edhe 1 përgjigje`,"Show comment":`Shfaq komentin`,"Sign in":`Hyni`,"Sign up now":`Regjistrohu tani`,"Sort by":`Rendit sipas`,"Start the conversation":`Nisni bisedën`,"The linked comment is no longer available.":`Komenti i lidhur nuk është më i disponueshëm.`,"This comment has been hidden.":`Ky koment është fshehur.`,"This comment has been removed.":`Ky koment është hequr.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Përmirëso tani`,"View in admin":`Shiko në admin`,Yesterday:`Dje`,"You can't post comments in this publication.":`Nuk mund të postoni komente në këtë publikim.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Nuk mund të postoni komente në këtë publikim. <a>Kontaktoni mbështetjen</a> për më shumë informacion.`,"Your request will be sent to the owner of this site.":`Kërkesa juaj do t'i dërgohet pronarit të kësaj faqeje.`},ey={"{amount} characters left":`preostalo je {amount} karaktera`,"{amount} comments":`{amount} komentara`,"{amount} hrs ago":`pre {amount} sati`,"{amount} mins ago":`pre {amount} minuta`,"{amount} more":`još {amount}`,"1 comment":`1 komentar`,"Add comment":`Dodajte komentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Dodajte kontekst svom komentaru, podelite svoje ime i ekspertizu kako biste podstakli zdravu diskusiju.`,"Add reply":`Dodajte odgovor`,"Add your expertise":`Dodajte ekspertizu`,"Already a member?":`Već ste član?`,Anonymous:`Anonimno`,"Are you sure?":`Da li ste sigurni?`,Back:`Nazad`,"Become a member of {publication} to start commenting.":`Postanite član {publication} da biste počeli sa komentarisanjem.`,"Become a paid member of {publication} to start commenting.":`Postanite plaćeni član {publication} da biste počeli sa komentarisanjem.`,Best:`Najbolje`,Cancel:`Otkažite`,Comment:`Komentar`,"Commenting disabled":`Komentarisanje onemogućeno`,"Complete your profile":`Popunite svoj profil`,Delete:`Obrišite`,Deleted:`Obrisano`,"Deleted member":`Obrisan član`,Deleting:`Brisanje`,Discussion:`Diskusija`,Dislike:`Ne sviđa mi se`,Edit:`Uredite`,"Edit this comment":`Uredite ovaj komentar`,edited:`uređeno`,"Enter your name":`Unesite svoje ime`,Expertise:`Ekspertiza`,"Founder @ Acme Inc":`Osnivač @ Acme Inc`,"Full-time parent":`Roditelj punim radnim vremenom`,"Head of Marketing at Acme, Inc":`Šef marketinga u Acme, Inc`,"Hidden for members":`Sakriveno za članove`,"Hide comment":`Sakrijte komentar`,"Jamie Larson":`Pera Perić`,"Join the discussion":`Pridružite se diskusiji`,"Just now":`Upravo sada`,Like:`Sviđa mi se`,"Load more ({amount})":`Učitajte još ({amount})`,"Local resident":`Lokalni stanovnik`,"Member discussion":`Diskusija članova`,Name:`Ime`,Neurosurgeon:`Neurohirurg`,Newest:`Najnovije`,Oldest:`Najstarije`,"Once deleted, this comment can’t be recovered.":`Kada se obriše, ovaj komentar ne može biti vraćen.`,"One hour ago":`Pre sat`,"One min ago":`Pre minut`,"Pin comment":`Zakačite komentar`,Pinned:`Zakačeno`,"Read more replies":`Pročitajte još odgovora`,"Remove dislike":`Uklonite reakciju „Ne sviđa mi se“`,"Remove like":`Uklonite reakciju „Sviđa mi se“`,Reply:`Odgovorite`,"Reply to":`Odgovorite korisniku`,"Reply to comment":`Odgovorite na komentar`,Report:`Prijavite`,"Report comment":`Prijavite komentar`,"Report this comment?":`Prijavite ovaj komentar?`,Save:`Sačuvajte`,"See full discussion":`Pogledajte celu diskusiju`,Sending:`Slanje`,Sent:`Poslato`,"Show {amount} more replies":`Prikažite još {amount} odgovora`,"Show 1 more reply":`Prikažite još 1 odgovor`,"Show comment":`Prikažite komentar`,"Sign in":`Prijavite se`,"Sign up now":`Registrujte se sada`,"Sort by":`Sortirajte po`,"Start the conversation":`Počnite razgovor`,"The linked comment is no longer available.":`Povezani komentar više nije dostupan.`,"This comment has been hidden.":`Ovaj komentar je sakriven.`,"This comment has been removed.":`Ovaj komentar je uklonjen.`,Unpin:`Otkačite`,"Unpin comment":`Otkačite komentar`,"Upgrade now":`Nadogradite sada`,"View in admin":`Pogledajte u admin`,Yesterday:`Juče`,"You can't post comments in this publication.":`Ne možete objavljivati komentare u ovoj publikaciji.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Ne možete objavljivati komentare u ovoj publikaciji. <a>Kontaktirajte podršku</a> za više informacija.`,"Your request will be sent to the owner of this site.":`Vaš zahtev će biti poslat vlasniku ovog sajta.`},ty={"{amount} characters left":`преостало је {amount} карактера`,"{amount} comments":`{amount} коментара`,"{amount} hrs ago":`пре {amount} сати`,"{amount} mins ago":`пре {amount} минута`,"{amount} more":`још {amount}`,"1 comment":`1 коментар`,"Add comment":`Додајте коментар`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Додајте контекст свом коментару, поделите своје име и експертизу како бисте подстакли здраву дискусију.`,"Add reply":`Додајте одговор`,"Add your expertise":`Додајте експертизу`,"Already a member?":`Већ сте члан?`,Anonymous:`Анонимно`,"Are you sure?":`Да ли сте сигурни?`,Back:``,"Become a member of {publication} to start commenting.":`Постаните члан {publication} да бисте почели са коментарисањем.`,"Become a paid member of {publication} to start commenting.":`Постаните плаћени члан {publication} да бисте почели са коментарисањем.`,Best:`Најбоље`,Cancel:`Откажите`,Comment:`Коментар`,"Commenting disabled":`Коментарисање онемогућено`,"Complete your profile":`Попуните свој профил`,Delete:`Обришите`,Deleted:`Обрисано`,"Deleted member":`Обрисан члан`,Deleting:`Брисање`,Discussion:`Дискусија`,Dislike:``,Edit:`Уредите`,"Edit this comment":`Уредите овај коментар`,edited:`уређено`,"Enter your name":`Унесите своје име`,Expertise:`Експертиза`,"Founder @ Acme Inc":`Оснивач @ Acme Inc`,"Full-time parent":`Родитељ пуним радним временом`,"Head of Marketing at Acme, Inc":`Шеф маркетинга у Acme, Inc`,"Hidden for members":`Сакривено за чланове`,"Hide comment":`Сакријте коментар`,"Jamie Larson":`Пера Перић`,"Join the discussion":`Придружите се дискусији`,"Just now":`Управо сада`,Like:``,"Load more ({amount})":`Учитајте још ({amount})`,"Local resident":`Локални становник`,"Member discussion":`Дискусија чланова`,Name:`Име`,Neurosurgeon:`Неурохирург`,Newest:`Најновије`,Oldest:`Најстарије`,"Once deleted, this comment can’t be recovered.":`Када се обрише, овај коментар не може бити враћен.`,"One hour ago":`Пре сат`,"One min ago":`Пре минут`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Одговорите`,"Reply to":`Одговорите кориснику`,"Reply to comment":`Одговорите на коментар`,Report:`Пријавите`,"Report comment":`Пријавите коментар`,"Report this comment?":`Пријавите овај коментар?`,Save:`Сачувајте`,"See full discussion":``,Sending:`Слање`,Sent:`Послато`,"Show {amount} more replies":`Прикажите још {amount} одговора`,"Show 1 more reply":`Прикажите још 1 одговор`,"Show comment":`Прикажите коментар`,"Sign in":`Пријавите се`,"Sign up now":`Региструјте се сада`,"Sort by":`Сортирајте по`,"Start the conversation":`Почните разговор`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Овај коментар је сакривен.`,"This comment has been removed.":`Овај коментар је уклоњен.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Надоградите сада`,"View in admin":`Погледајте у админ`,Yesterday:`Јуче`,"You can't post comments in this publication.":`Не можете објављивати коментаре у овој публикацији.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Не можете објављивати коментаре у овој публикацији. <a>Контактирајте подршку</a> за више информација.`,"Your request will be sent to the owner of this site.":`Ваш захтев ће бити послат власнику овог сајта.`},ny={"{amount} characters left":`{amount} tecken kvar`,"{amount} comments":`{amount} kommentarer`,"{amount} hrs ago":`{amount} timmar sedan`,"{amount} mins ago":`{amount} minuter sedan`,"{amount} more":`{amount} fler`,"1 comment":`1 kommentar`,"Add comment":`Lägg till kommentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Lägg till kontext till din kommentar, som ditt namn, din expertis för att skapa ett bra forum.`,"Add reply":`Lägg till svar`,"Add your expertise":`Lägg till din expertis`,"Already a member?":`Redan medlem?`,Anonymous:`Anonym`,"Are you sure?":`Är du säker?`,Back:`Tillbaka`,"Become a member of {publication} to start commenting.":`Registrera dig på {publication} för att börja kommentera.`,"Become a paid member of {publication} to start commenting.":`Bli betalande medlem på {publication} för att börja kommentera.`,Best:`Mest populär`,Cancel:`Avbryt`,Comment:`Kommentar`,"Commenting disabled":`Kommentarer inaktiverade`,"Complete your profile":`Fyll i hela din profil`,Delete:`Ta bort`,Deleted:`Borttaget`,"Deleted member":`Borttagen medlem`,Deleting:`Tar bort`,Discussion:`Diskussion`,Dislike:`Ogilla`,Edit:`Ändra`,"Edit this comment":`Ändra den här kommentaren`,edited:`Ändrad`,"Enter your name":`Skriv ditt namn`,Expertise:`Expertis`,"Founder @ Acme Inc":`Grundare av Företaget AB`,"Full-time parent":`Hemmaförälder`,"Head of Marketing at Acme, Inc":`Marknadsföringschef på Företaget AB`,"Hidden for members":`Dolt för medlemmar`,"Hide comment":`Dölj kommentar`,"Jamie Larson":`Anders Andersson`,"Join the discussion":`Var med i diskussionen`,"Just now":`Nu precis`,Like:`Gilla`,"Load more ({amount})":`Ladda in fler ({amount})`,"Local resident":`Lokalboende`,"Member discussion":`Medlemsdiskussion`,Name:`Namn`,Neurosurgeon:`Neurokirurg`,Newest:`Nyast`,Oldest:`Äldst`,"Once deleted, this comment can’t be recovered.":`Kommentaren kan ej återskapas efter borttagning.`,"One hour ago":`En timme sedan`,"One min ago":`En minut sedan`,"Pin comment":`Nåla fast kommentar`,Pinned:`Fastnålad`,"Read more replies":`Läs fler svar`,"Remove dislike":`Ta bort ogilla`,"Remove like":`Ta bort gilla`,Reply:`Svar`,"Reply to":`Svara`,"Reply to comment":`Svara på kommentar`,Report:`Anmäl`,"Report comment":`Anmäl kommentar`,"Report this comment?":`Anmäl den här kommentaren?`,Save:`Spara`,"See full discussion":`Se hela diskussionen`,Sending:`Skickar`,Sent:`Skickad`,"Show {amount} more replies":`Visa {amount} fler svar`,"Show 1 more reply":`Visa 1 kommentar till`,"Show comment":`Visa kommentar`,"Sign in":`Logga in`,"Sign up now":`Registrera dig nu`,"Sort by":`Sortera efter`,"Start the conversation":`Inled konversationen`,"The linked comment is no longer available.":`Den länkade kommentaren är borttagen.`,"This comment has been hidden.":`Denna kommentar har dolts.`,"This comment has been removed.":`Denna kommentar är borttagen.`,Unpin:`Avnåla`,"Unpin comment":`Avnåla kommentar`,"Upgrade now":`Uppgradera nu`,"View in admin":`Visa i admin`,Yesterday:`I går`,"You can't post comments in this publication.":`Du kan inte posta kommentarer här.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Du kan inte posta kommentarer här. <a>Kontakta supporten</a> för mer information.`,"Your request will be sent to the owner of this site.":`Din anmälan skickas till ansvarig för webbplatsen.`},ry={"{amount} characters left":`{amount} herufi zimebaki`,"{amount} comments":`{amount} maoni`,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":`{amount} zaidi`,"1 comment":`maoni 1`,"Add comment":`Ongeza maoni`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Ongeza muktadha kwa maoni yako, shiriki jina lako na utaalamu ili kuendeleza mjadala wenye afya.`,"Add reply":`Ongeza jibu`,"Add your expertise":``,"Already a member?":`Tayari ni mwanachama?`,Anonymous:`Asiyetambulika`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Jiunge kama mwanachama wa {publication} ili kuanza kutoa maoni.`,"Become a paid member of {publication} to start commenting.":`Jiunge kama mwanachama anayelipa wa {publication} ili kuanza kutoa maoni.`,Best:``,Cancel:`Ghairi`,Comment:`Maoni`,"Commenting disabled":``,"Complete your profile":`Kamilisha wasifu wako`,Delete:`Futa`,Deleted:``,"Deleted member":`Mwanachama aliyefutwa`,Deleting:``,Discussion:`Majadiliano`,Dislike:``,Edit:`Hariri`,"Edit this comment":`Hariri maoni haya`,edited:``,"Enter your name":`Weka jina lako`,Expertise:`Utaalamu`,"Founder @ Acme Inc":`Mwanzilishi @ Acme Inc`,"Full-time parent":`Mzazi wa muda wote`,"Head of Marketing at Acme, Inc":`Mkuu wa Masoko katika Acme, Inc`,"Hidden for members":``,"Hide comment":`Ficha maoni`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Jiunge na mjadala`,"Just now":`Hivi sasa`,Like:``,"Load more ({amount})":``,"Local resident":`Mkazi wa eneo`,"Member discussion":`Mjadala wa wanachama`,Name:`Jina`,Neurosurgeon:`Daktari wa ubongo`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Saa moja iliyopita`,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Jibu`,"Reply to":``,"Reply to comment":`Jibu maoni`,Report:`Ripoti`,"Report comment":`Ripoti maoni`,"Report this comment?":`Unataka kuripoti maoni haya?`,Save:`Hifadhi`,"See full discussion":``,Sending:`Inatuma`,Sent:`Imetumwa`,"Show {amount} more replies":`Onyesha majibu {amount} zaidi`,"Show 1 more reply":`Onyesha jibu 1 zaidi`,"Show comment":`Onyesha maoni`,"Sign in":`Ingia`,"Sign up now":`Jisajili sasa`,"Sort by":``,"Start the conversation":`Anzisha mazungumzo`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Maoni haya yamefichwa.`,"This comment has been removed.":`Maoni haya yameondolewa.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Boresha sasa`,"View in admin":``,Yesterday:`Jana`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Ombi lako litatumwa kwa mmiliki wa tovuti hii.`},iy={"{amount} characters left":`{amount} எழுத்துக்கள் எஞ்சியுள்ளன`,"{amount} comments":`{amount} கருத்துக்கள்`,"{amount} hrs ago":`{amount} மணி நேரத்திற்கு முன்பு`,"{amount} mins ago":`{amount} நிமிடங்களுக்கு முன்பு`,"{amount} more":`{amount} மேலும்`,"1 comment":`1 கருத்து`,"Add comment":`கருத்தைச் சேர்க்கவும்`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`உங்கள் கருத்துக்கு சூழலைச் சேர்க்கவும், ஆரோக்கியமான விவாதத்தை வளர்க்க உங்கள் பெயரையும் நிபுணத்துவத்தையும் பகிர்ந்து கொள்ளுங்கள்.`,"Add reply":`பதில் சேர்க்கவும்`,"Add your expertise":``,"Already a member?":`ஏற்கனவே உறுப்பினரா?`,Anonymous:`அடையாளம் தெரியாத`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`கருத்துத் தெரிவிக்க {publication} இல் உறுப்பினராகுங்கள்.`,"Become a paid member of {publication} to start commenting.":`கருத்துத் தெரிவிக்க {publication} இல் கட்டண உறுப்பினராகுங்கள்.`,Best:``,Cancel:`ரத்து செய்`,Comment:`கருத்து`,"Commenting disabled":``,"Complete your profile":`உங்கள் சுயவிவரத்தை பூர்த்தி செய்யவும்`,Delete:`நீக்கவும்`,Deleted:``,"Deleted member":`நீக்கப்பட்ட உறுப்பினர்`,Deleting:``,Discussion:`கலந்துரையாடல்`,Dislike:``,Edit:`திருத்தவும்`,"Edit this comment":`இந்தக் கருத்தைத் திருத்தவும்`,edited:`திருத்தப்பட்டது`,"Enter your name":`உங்கள் பெயரை உள்ளிடுக`,Expertise:`நிபுணத்துவம்`,"Founder @ Acme Inc":`நிறுவனர் @ Acme Inc`,"Full-time parent":`முழுநேர பெற்றோர்`,"Head of Marketing at Acme, Inc":`Acme Inc நிறுவனத்தின் சந்தைப்படுத்தல் தலைவர்`,"Hidden for members":``,"Hide comment":`கருத்தை மறை`,"Jamie Larson":`ஜேமி லார்சன்`,"Join the discussion":`கலந்துரையாடலில் சேரவும்`,"Just now":`சற்றுமுன்னர்தான்`,Like:``,"Load more ({amount})":``,"Local resident":`உள்ளூர்வாசி`,"Member discussion":`உறுப்பினர் கருத்து`,Name:`பெயர்`,Neurosurgeon:`நரம்பியல் அறுவை சிகிச்சை நிபுணர்`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`ஒரு மணி முன்பு`,"One min ago":`ஒரு நிமிடம் முன்பு`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`பதிலளிக்கவும்`,"Reply to":``,"Reply to comment":`கருத்துக்கு பதிலளிக்கவும்`,Report:`புகாரளி`,"Report comment":`கருத்தைப் புகாரளி`,"Report this comment?":`இந்தக் கருத்தைப் புகாரளிக்கவா?`,Save:`சேமிக்க`,"See full discussion":``,Sending:`அனுப்புகிறது`,Sent:`அனுப்பப்பட்டது`,"Show {amount} more replies":`முந்தைய {amount} மேலும் பதில்கள்க் காட்டு`,"Show 1 more reply":`மேலும் 1 பதிலைக் காட்டு`,"Show comment":`கருத்தைக் காட்டு`,"Sign in":`உள்நுழைக`,"Sign up now":`இப்பொழுதே பதிவு செய்யுங்கள்`,"Sort by":``,"Start the conversation":`உரையாடலைத் தொடங்குங்கள்`,"The linked comment is no longer available.":``,"This comment has been hidden.":`இந்தக் கருத்து மறைக்கப்பட்டது.`,"This comment has been removed.":`இந்தக் கருத்து நீக்கப்பட்டது.`,Unpin:``,"Unpin comment":``,"Upgrade now":`இப்போதே மேம்படுத்தவும்`,"View in admin":``,Yesterday:`நேற்று`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`உங்கள் கோரிக்கை இந்த தளத்தின் உரிமையாளருக்கு அனுப்பப்படும்.`},ay={"{amount} characters left":`คงเหลือ {amount} ตัวอักษร`,"{amount} comments":`{amount} ความคิดเห็น`,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":`อีก {amount}`,"1 comment":`1 ความคิดเห็น`,"Add comment":`แสดงความคิดเห็น`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`เพิ่มข้อมูลเสริมในความคิดเห็นของคุณ แชร์ชื่อและความเชี่ยวชาญเพื่อสนับสนุนการพูดคุยที่ดี`,"Add reply":`ตอบกลับ`,"Add your expertise":``,"Already a member?":`เป็นสมาชิกอยู่แล้ว?`,Anonymous:`ไม่ระบุชื่อ`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`เป็นสมาชิกของ {publication} เพื่อเริ่มแสดงความคิดเห็น`,"Become a paid member of {publication} to start commenting.":`เป็นสมาชิกแบบชำระเงินของ {publication} เพื่อเริ่มแสดงความคิดเห็น`,Best:``,Cancel:`ยกเลิก`,Comment:`ความคิดเห็น`,"Commenting disabled":``,"Complete your profile":`กรอกโปรไฟล์ของคุณให้สมบูรณ์`,Delete:`ลบ`,Deleted:``,"Deleted member":`ผู้ใช้ที่ถูกลบ`,Deleting:``,Discussion:`การสนทนา`,Dislike:``,Edit:`แก้ไข`,"Edit this comment":`แก้ไขความคิดเห็นนี้`,edited:``,"Enter your name":`ระบุชื่อของคุณ`,Expertise:`ความเชี่ยวชาญ`,"Founder @ Acme Inc":`ผู้ก่อตั้ง @ Acme Inc`,"Full-time parent":`ผู้ปกครองเต็มเวลา`,"Head of Marketing at Acme, Inc":`หัวหน้าฝ่ายการตลาด ณ Acme, Inc`,"Hidden for members":``,"Hide comment":`ซ่อนข้อความ`,"Jamie Larson":`กนกพัฒน์ สัณห์ฤทัย`,"Join the discussion":`เข้าร่วมการสนทนา`,"Just now":`ตอนนี้`,Like:``,"Load more ({amount})":``,"Local resident":`ผู้อยู่อาศัยในท้องถิ่น`,"Member discussion":`การสนทนาของสมาชิก`,Name:`ชื่อ`,Neurosurgeon:`ศัลยแพทย์ระบบประสาท`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`1 ชั่วโมงที่แล้ว`,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`ตอบกลับ`,"Reply to":``,"Reply to comment":`ตอบกลับความคิดเห็น`,Report:`รายงาน`,"Report comment":`รายงานความคิดเห็น`,"Report this comment?":`รายงานความคิดเห็นนี้?`,Save:`บันทึก`,"See full discussion":``,Sending:`กำลังส่ง`,Sent:`ส่งแล้ว`,"Show {amount} more replies":`แสดง {amount} การตอบกลับเพิ่มเติม`,"Show 1 more reply":`แสดงอีก 1 การตอบกลับ`,"Show comment":`ดูความคิดเห็น`,"Sign in":`ลงชื่อเข้าใช้`,"Sign up now":`สมัครใช้งานตอนนี้เลย`,"Sort by":``,"Start the conversation":`เริ่มการสนทนา`,"The linked comment is no longer available.":``,"This comment has been hidden.":`ความคิดเห็นนี้ถูกซ่อน`,"This comment has been removed.":`ความคิดเห็นนี้ถูกลบ`,Unpin:``,"Unpin comment":``,"Upgrade now":`อัพเกรดตอนนี้เลย`,"View in admin":``,Yesterday:`เมื่อวาน`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`คำขอของคุณจะถูกส่งไปยังผู้ดูแลเว็บไซต์`},oy={"{amount} characters left":`{amount} karakter kaldı`,"{amount} comments":`{amount} yorum`,"{amount} hrs ago":`{amount} saat önce`,"{amount} mins ago":`{amount} dakika önce`,"{amount} more":`Daha fazla {amount}`,"1 comment":`1 yorum`,"Add comment":`Yorum ekle`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Yorumunuza bağlam ekleyin, adınızı ve uzmanlık alanınızı paylaşarak sağlıklı bir tartışmayı teşvik edin.`,"Add reply":`Yanıt ekle`,"Add your expertise":`Uzmanlığınızı ekleyin`,"Already a member?":`Zaten üye misiniz?`,Anonymous:`Anonim`,"Are you sure?":`Emin misin?`,Back:`Geri`,"Become a member of {publication} to start commenting.":`Yorum yapmaya başlamak için {publication} sitesinde hesap oluşturun.`,"Become a paid member of {publication} to start commenting.":`Yorum yapmaya başlamak için {publication} sitesinde ücretli hesap oluşturun.`,Best:`En iyi`,Cancel:`İptal et`,Comment:`Yorum ekle`,"Commenting disabled":`Yorumlar kapalı`,"Complete your profile":`Profilinizi tamamlayın`,Delete:`Sil`,Deleted:`Silindi`,"Deleted member":`Silinen üye`,Deleting:`Siliniyor`,Discussion:`Yorumlar`,Dislike:``,Edit:`Düzenle`,"Edit this comment":`Bu yorumu düzenle`,edited:`düzenlendi`,"Enter your name":`Adınızı girin`,Expertise:`Uzmanlık`,"Founder @ Acme Inc":`Kurucu @ Firma Ünvan`,"Full-time parent":`Tam zamanlı ebeveyn`,"Head of Marketing at Acme, Inc":`Firma, Ünvan'da Pazarlama Müdürü`,"Hidden for members":`Üyeler için gizli`,"Hide comment":`Yorumu gizle`,"Jamie Larson":`Ahmet Yılmaz`,"Join the discussion":`Tartışmaya katıl`,"Just now":`Şu anda`,Like:``,"Load more ({amount})":`Daha fazla yükle ({amount})`,"Local resident":`Yerel sakini`,"Member discussion":`Üye tartışması`,Name:`Ad`,Neurosurgeon:`Beyin cerrahı`,Newest:`En yeni`,Oldest:`En eski`,"Once deleted, this comment can’t be recovered.":`Bu yorum silindikten sonra kurtarılamaz.`,"One hour ago":`Bir saat önce`,"One min ago":`Bir dakika önce`,"Pin comment":`Yorumu sabitle`,Pinned:`Sabitlendi`,"Read more replies":`Daha fazla cevap oku`,"Remove dislike":``,"Remove like":``,Reply:`Cevapla`,"Reply to":`Cevapla`,"Reply to comment":`Yoruma cevap ver`,Report:`Rapor et`,"Report comment":`Yorumu rapor et`,"Report this comment?":`Bu yorum rapor edilsin mi?`,Save:`Kaydet`,"See full discussion":`Bütün tartışmayı gör`,Sending:`Gönderiliyor`,Sent:`Gönderildi`,"Show {amount} more replies":`{amount} daha fazla yanıt göster`,"Show 1 more reply":`1 cevap daha göster`,"Show comment":`Yorumu göster`,"Sign in":`Giriş yap`,"Sign up now":`Şimdi kayıt ol`,"Sort by":`Sırala`,"Start the conversation":`Bu konu hakkında düşüncelerini paylaş`,"The linked comment is no longer available.":`Bağlantılı yorum artık yok.`,"This comment has been hidden.":`Bu yorum gizlendi.`,"This comment has been removed.":`Bu yorum kaldırıldı.`,Unpin:`Sabitlemeyi kaldır`,"Unpin comment":`Yorumun sabitlemesini kaldır`,"Upgrade now":`Şimdi yükselt`,"View in admin":`Yönetici olarak gör`,Yesterday:`Dün`,"You can't post comments in this publication.":`Bu yayına yorum gönderemezsiniz.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Bu yayına yorum gönderemezsiniz. Daha fazla bilgi için <a>desteğe başvurun</a>.`,"Your request will be sent to the owner of this site.":`Talebiniz bu sitenin sahibine gönderilecektir.`},sy={"{amount} characters left":`{amount} символів залишилось`,"{amount} comments":`{amount} коментарів`,"{amount} hrs ago":`{amount} годин тому`,"{amount} mins ago":`{amount} хвилин тому`,"{amount} more":`ще {amount}`,"1 comment":`1 коментар`,"Add comment":`Додати коментар`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Додайте контекст до свого коментаря, поділіться своїм іменем і досвідом, щоб сприяти здоровій дискусії.`,"Add reply":`Додати відповідь`,"Add your expertise":``,"Already a member?":`Ви є учасником?`,Anonymous:`Анонім`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Станьте учасником {publication} щоб почати коментувати.`,"Become a paid member of {publication} to start commenting.":`Станьте платним учасником {publication} щоб почати коментувати.`,Best:``,Cancel:`Відмінити`,Comment:`Коментувати`,"Commenting disabled":``,"Complete your profile":`Заповніть свій профіль`,Delete:`Видалити`,Deleted:``,"Deleted member":`Видалений учасник`,Deleting:``,Discussion:`Обговорення`,Dislike:``,Edit:`Редагувати`,"Edit this comment":`Редагувати цей коментар`,edited:`Відредагований`,"Enter your name":`Введіть своє імʼя`,Expertise:`Експертність`,"Founder @ Acme Inc":`Засновник @ Acme Inc`,"Full-time parent":`Виховую дітей`,"Head of Marketing at Acme, Inc":`Голова продажів в Acme, Inc`,"Hidden for members":``,"Hide comment":`Сховати коментар`,"Jamie Larson":`Ваше імʼя`,"Join the discussion":`Долучитися до обговорення`,"Just now":`Прямо зараз`,Like:``,"Load more ({amount})":``,"Local resident":`Місцевий експерт`,"Member discussion":`Обговорення учасників`,Name:`Імʼя`,Neurosurgeon:`Нейрохірург`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Одну годину тому`,"One min ago":`Одну хвилину тому`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`Відповісти`,"Reply to":``,"Reply to comment":`Відповісти на коментар`,Report:`Поскаржитися`,"Report comment":`Поскаржитися на коментар`,"Report this comment?":`Поскаржитися на цей коментар?`,Save:`Зберегти`,"See full discussion":``,Sending:`Відправка`,Sent:`Відправлено`,"Show {amount} more replies":`Показати ще {amount} відповідей`,"Show 1 more reply":`Показати ще одну відповідь`,"Show comment":`Показати коментар`,"Sign in":`Увійти`,"Sign up now":`Зареєструватись зараз`,"Sort by":``,"Start the conversation":`Почніть розмову`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Цей коментар було приховано.`,"This comment has been removed.":`Цей коментар було видалено.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Оновити зараз`,"View in admin":``,Yesterday:`Вчора`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Ваш запит буде надіслано власнику цього сайту.`},cy={"{amount} characters left":`{amount} حروف باقی ہیں`,"{amount} comments":`{amount} تبادلے`,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":``,"1 comment":`1 تبادلہ`,"Add comment":`تبادلہ شامل کریں`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`اپنے تبادلے میں سیاق و سباق شامل کریں، اچھی گفتگو کو بڑھانے کے لئے اپنا نام اور ماہریت شیئر کریں۔`,"Add reply":`جواب شامل کریں`,"Add your expertise":``,"Already a member?":`پہلے ہی رکن ہیں؟`,Anonymous:`ناشناس`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`تبادلہ شروع کرنے کے لئے {publication} کا رکن بنیں۔`,"Become a paid member of {publication} to start commenting.":`تبادلہ شروع کرنے کے لئے {publication} کا ادائیگی رکن بنیں۔`,Best:``,Cancel:`منسوخ کریں`,Comment:`تبادلہ`,"Commenting disabled":``,"Complete your profile":`اپنا پروفائل مکمل کریں`,Delete:`حذف کریں`,Deleted:``,"Deleted member":`حذف شدہ رکن`,Deleting:``,Discussion:`تبادلہ`,Dislike:``,Edit:`ترتیب دیں`,"Edit this comment":`اس تبادلے کو ترتیب دیں`,edited:``,"Enter your name":`اپنا نام درج کریں`,Expertise:`اہلیت`,"Founder @ Acme Inc":`ناظم @ Acme Inc`,"Full-time parent":`پورے وقت کا والد یا والدہ`,"Head of Marketing at Acme, Inc":`Acme، Inc کے مارکیٹنگ کا سربراہ`,"Hidden for members":``,"Hide comment":`تبادلہ چھپائیں`,"Jamie Larson":`جیمی لارسن`,"Join the discussion":`تبادلے میں شامل ہوں`,"Just now":`ابھی`,Like:``,"Load more ({amount})":``,"Local resident":`مقامی رہائشی`,"Member discussion":`رکن کا تبادلہ`,Name:`نام`,Neurosurgeon:`نیوروسرجن`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`ایک گھنٹہ پہلے`,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:`جواب`,"Reply to":``,"Reply to comment":`تبادلے کا جواب دیں`,Report:`رپورٹ`,"Report comment":`تبادلے کی رپورٹ`,"Report this comment?":`کیا آپ اس تبادلے کو رپورٹ کرنا چاہتے ہیں؟`,Save:`محفوظ کریں`,"See full discussion":``,Sending:`بھیج رہا ہے`,Sent:`بھیجا گیا`,"Show {amount} more replies":`{amount} مزید جوابات دکھائیں`,"Show 1 more reply":`1 مزید جواب دکھائیں`,"Show comment":`تبادلہ دکھائیں`,"Sign in":`سائن ان کریں`,"Sign up now":`ابھی رجسٹر ہوں`,"Sort by":``,"Start the conversation":`بات چیت شروع کریں`,"The linked comment is no longer available.":``,"This comment has been hidden.":`یہ تبادلہ چھپا گیا ہے۔`,"This comment has been removed.":`یہ تبادلہ ہٹا دیا گیا ہے۔`,Unpin:``,"Unpin comment":``,"Upgrade now":`اب اپ گریڈ کریں`,"View in admin":``,Yesterday:`کل`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`آپ کا درخواست اس سائٹ کے مالک کو بھیجا جائے گا۔`},ly={"{amount} characters left":``,"{amount} comments":``,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":``,"1 comment":``,"Add comment":``,"Add context to your comment, share your name and expertise to foster a healthy discussion.":``,"Add reply":``,"Add your expertise":``,"Already a member?":``,Anonymous:``,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":``,"Become a paid member of {publication} to start commenting.":``,Best:``,Cancel:``,Comment:``,"Commenting disabled":``,"Complete your profile":``,Delete:``,Deleted:``,"Deleted member":``,Deleting:``,Discussion:``,Dislike:``,Edit:``,"Edit this comment":``,edited:``,"Enter your name":``,Expertise:``,"Founder @ Acme Inc":``,"Full-time parent":``,"Head of Marketing at Acme, Inc":``,"Hidden for members":``,"Hide comment":``,"Jamie Larson":``,"Join the discussion":``,"Just now":``,Like:``,"Load more ({amount})":``,"Local resident":``,"Member discussion":``,Name:``,Neurosurgeon:``,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":``,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,Reply:``,"Reply to":``,"Reply to comment":``,Report:``,"Report comment":``,"Report this comment?":``,Save:``,"See full discussion":``,Sending:``,Sent:``,"Show {amount} more replies":``,"Show 1 more reply":``,"Show comment":``,"Sign in":``,"Sign up now":``,"Sort by":``,"Start the conversation":``,"The linked comment is no longer available.":``,"This comment has been hidden.":``,"This comment has been removed.":``,Unpin:``,"Unpin comment":``,"Upgrade now":``,"View in admin":``,Yesterday:``,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":``},uy={"{amount} characters left":`{amount} ký tự còn lại`,"{amount} comments":`{amount} bình luận`,"{amount} hrs ago":`{amount} giờ trước`,"{amount} mins ago":`{amount} phút trước`,"{amount} more":`{amount} nữa`,"1 comment":`1 bình luận`,"Add comment":`Thêm bình luận`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Thêm ngữ cảnh, tên và chuyên môn của bạn để thúc đẩy cuộc thảo luận lành mạnh.`,"Add reply":`Trả lời`,"Add your expertise":`Thêm chuyên môn của bạn`,"Already a member?":`Đã là thành viên?`,Anonymous:`Ẩn danh`,"Are you sure?":`Bạn có chắc không?`,Back:`Quay lại`,"Become a member of {publication} to start commenting.":`Trở thành thành viên của {publication} để có thể bình luận.`,"Become a paid member of {publication} to start commenting.":`Trở thành thành viên trả phí của {publication} để có thể bình luận.`,Best:`Hay nhất`,Cancel:`Hủy`,Comment:`Bình luận`,"Commenting disabled":`Bình luận đã bị tắt`,"Complete your profile":`Hoàn tất hồ sơ của bạn`,Delete:`Xóa`,Deleted:`Đã xóa`,"Deleted member":`Thành viên đã xóa`,Deleting:`Đang xóa`,Discussion:`Thảo luận`,Dislike:`Không thích`,Edit:`Sửa`,"Edit this comment":`Sửa bình luận này`,edited:`đã sửa`,"Enter your name":`Nhập tên của bạn`,Expertise:`Chuyên môn`,"Founder @ Acme Inc":`Nhà sáng lập @ Acme Inc`,"Full-time parent":`Phụ huynh toàn thời gian`,"Head of Marketing at Acme, Inc":`Trưởng phòng Marketing tại Acme, Inc`,"Hidden for members":`Ẩn với thành viên`,"Hide comment":`Ẩn bình luận`,"Jamie Larson":`Nguyễn Minh Anh`,"Join the discussion":`Tham gia thảo luận`,"Just now":`Vừa xong`,Like:`Thích`,"Load more ({amount})":`Hiện thêm ({amount})`,"Local resident":`Cư dân địa phương`,"Member discussion":`Thảo luận của thành viên`,Name:`Tên`,Neurosurgeon:`Bác sĩ phẫu thuật thần kinh`,Newest:`Mới nhất`,Oldest:`Cũ nhất`,"Once deleted, this comment can’t be recovered.":`Một khi đã xóa, bình luận này không thể khôi phục.`,"One hour ago":`Một giờ trước`,"One min ago":`Một phút trước`,"Pin comment":`Ghim bình luận`,Pinned:`Đã ghim`,"Read more replies":`Đọc thêm trả lời`,"Remove dislike":`Bỏ không thích`,"Remove like":`Bỏ thích`,Reply:`Trả lời`,"Reply to":`Trả lời`,"Reply to comment":`Trả lời bình luận`,Report:`Báo cáo`,"Report comment":`Báo cáo bình luận`,"Report this comment?":`Báo cáo bình luận này?`,Save:`Lưu`,"See full discussion":`Xem tất cả thảo luận`,Sending:`Đang gửi`,Sent:`Đã gửi`,"Show {amount} more replies":`Xem thêm {amount} trả lời khác`,"Show 1 more reply":`Xem thêm 1 trả lời`,"Show comment":`Xem bình luận`,"Sign in":`Đăng nhập`,"Sign up now":`Đăng ký ngay`,"Sort by":`Xếp theo`,"Start the conversation":`Bắt đầu cuộc trò chuyện`,"The linked comment is no longer available.":`Liên kết bình luận này không còn nữa.`,"This comment has been hidden.":`Bình luận này đã bị ẩn.`,"This comment has been removed.":`Bình luận này đã bị xóa.`,Unpin:`Bỏ ghim`,"Unpin comment":`Bỏ ghim bình luận`,"Upgrade now":`Nâng cấp`,"View in admin":`Xem trong dashboard`,Yesterday:`Hôm qua`,"You can't post comments in this publication.":`Bạn không thể bình luận trên trang web này.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Bạn không thể bình luận trên trang web này. <a>Liên hệ hỗ trợ</a> để biết thêm chi tiết.`,"Your request will be sent to the owner of this site.":`Yêu cầu của bạn sẽ được gửi đến chủ sở hữu trang web này.`},dy={"{amount} characters left":`还剩{amount}字`,"{amount} comments":`{amount}条评论`,"{amount} hrs ago":`{amount}小时前`,"{amount} mins ago":`{amount}分钟前`,"{amount} more":`还剩{amount}条评论`,"1 comment":`一条评论`,"Add comment":`添加评论`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`为评论补充更多的上下文信息、例如您的姓名与专业背景有助于营造健康的讨论氛围。`,"Add reply":`回复`,"Add your expertise":`添加您的专业背景`,"Already a member?":`已经是会员?`,Anonymous:`匿名`,"Are you sure?":`确认?`,Back:`返回`,"Become a member of {publication} to start commenting.":`成为{publication}的会员以开始评论。`,"Become a paid member of {publication} to start commenting.":`成为{publication}的付费会员以开始评论。`,Best:`最多赞`,Cancel:`取消`,Comment:`评论`,"Commenting disabled":`评论功能已禁用`,"Complete your profile":`完善您的个人资料`,Delete:`删除`,Deleted:`已删除`,"Deleted member":`删除会员`,Deleting:`删除中`,Discussion:`讨论`,Dislike:`点踩`,Edit:`编辑`,"Edit this comment":`编辑此条评论`,edited:`已编辑`,"Enter your name":`输入您的名字`,Expertise:`专业背景`,"Founder @ Acme Inc":`Acme Inc的创建者`,"Full-time parent":`全职父母`,"Head of Marketing at Acme, Inc":`Acme, Inc市场部负责人`,"Hidden for members":`对会员隐藏`,"Hide comment":`隐藏评论`,"Jamie Larson":`阿宇`,"Join the discussion":`加入讨论`,"Just now":`刚刚`,Like:`点赞`,"Load more ({amount})":`加载更多({amount})条`,"Local resident":`本地居民`,"Member discussion":`会员讨论`,Name:`名字`,Neurosurgeon:`神经外科医生`,Newest:`最新`,Oldest:`最早`,"Once deleted, this comment can’t be recovered.":`此评论一经删除后将无法复原。`,"One hour ago":`一小时前`,"One min ago":`一分钟前`,"Pin comment":`置顶评论`,Pinned:`已置顶`,"Read more replies":`阅读更多回复`,"Remove dislike":`取消点踩`,"Remove like":`取消点赞`,Reply:`回复`,"Reply to":`回复`,"Reply to comment":`回复评论`,Report:`举报`,"Report comment":`举报评论`,"Report this comment?":`举报此评论?`,Save:`保存`,"See full discussion":`查看完整讨论`,Sending:`正在发送`,Sent:`已发送`,"Show {amount} more replies":`显示更多{amount}条评论`,"Show 1 more reply":`显示下一条评论`,"Show comment":`显示评论`,"Sign in":`登录`,"Sign up now":`立刻注册`,"Sort by":`排序方式`,"Start the conversation":`开始对话`,"The linked comment is no longer available.":`链接的评论已不存在。`,"This comment has been hidden.":`该条评论已被隐藏。`,"This comment has been removed.":`该条评论已被移除。`,Unpin:`取消置顶`,"Unpin comment":`取消置顶评论`,"Upgrade now":`立刻升级`,"View in admin":`在后台查看`,Yesterday:`昨天`,"You can't post comments in this publication.":`您无法在此刊物发表评论。`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`您无法在此刊物发表评论。如需更多信息,请<a>联系客服</a>。`,"Your request will be sent to the owner of this site.":`您的请求将被发送给站点所有者。`},fy={"{amount} characters left":`還剩{amount}個字`,"{amount} comments":`{amount}則留言`,"{amount} hrs ago":`{amount}小時前`,"{amount} mins ago":`{amount}分鐘前`,"{amount} more":`還剩{amount}則留言`,"1 comment":`一則留言`,"Add comment":`留言`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`為您的留言補充背景,說明您的稱呼與專業背景都有助於健康的討論氛圍。`,"Add reply":`回覆`,"Add your expertise":`新增您的專業背景`,"Already a member?":`已經是會員?`,Anonymous:`匿名`,"Are you sure?":`您確定嗎?`,Back:`返回`,"Become a member of {publication} to start commenting.":`成為{publication}的會員以開始留言。`,"Become a paid member of {publication} to start commenting.":`成為{publication}的付費會員以開始留言。`,Best:`最多讚`,Cancel:`取消`,Comment:`留言`,"Commenting disabled":`未開放留言`,"Complete your profile":`完成您的註冊資訊`,Delete:`刪除`,Deleted:`已刪除`,"Deleted member":`刪除會員`,Deleting:`刪除中`,Discussion:`討論`,Dislike:`點踩`,Edit:`編輯`,"Edit this comment":`編輯此則留言`,edited:`已編輯`,"Enter your name":`輸入您的稱呼`,Expertise:`專業背景`,"Founder @ Acme Inc":`Acme Inc的創辦人`,"Full-time parent":`全職父母`,"Head of Marketing at Acme, Inc":`Acme, Inc市場部負責人`,"Hidden for members":`對會員隱藏`,"Hide comment":`隱藏留言`,"Jamie Larson":`阿宇`,"Join the discussion":`加入討論`,"Just now":`剛剛`,Like:`點讚`,"Load more ({amount})":`載入更多({amount})`,"Local resident":`本地居民`,"Member discussion":`會員討論`,Name:`稱呼`,Neurosurgeon:`神經外科醫生`,Newest:`最新`,Oldest:`最早`,"Once deleted, this comment can’t be recovered.":`此留言一經刪除後將無法復原。`,"One hour ago":`一小時前`,"One min ago":`一分鐘前`,"Pin comment":`置頂留言`,Pinned:`已置頂`,"Read more replies":`閱讀更多回覆`,"Remove dislike":`取消點踩`,"Remove like":`取消點讚`,Reply:`回覆`,"Reply to":`回覆`,"Reply to comment":`回覆留言`,Report:`檢舉`,"Report comment":`檢舉留言`,"Report this comment?":`檢舉此留言?`,Save:`儲存`,"See full discussion":`查看完整討論`,Sending:`正在發送`,Sent:`已發送`,"Show {amount} more replies":`顯示後續 {amount} 則留言`,"Show 1 more reply":`顯示下一則留言`,"Show comment":`顯示留言`,"Sign in":`登入`,"Sign up now":`立即註冊`,"Sort by":`排序方式`,"Start the conversation":`開始對話`,"The linked comment is no longer available.":`連結的留言已不存在。`,"This comment has been hidden.":`該則留言已被隱藏。`,"This comment has been removed.":`該則留言已被移除。`,Unpin:`取消置頂`,"Unpin comment":`取消置頂留言`,"Upgrade now":`立即升級`,"View in admin":`從管理後台檢視`,Yesterday:`昨天`,"You can't post comments in this publication.":`您無法在此刊物留言。`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`您無法在此刊物留言。<a>聯繫客服</a> 以取得更多資訊。`,"Your request will be sent to the owner of this site.":`您的請求將被發送給網站所有者。`},$=e=>typeof e==`string`,py=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},my=e=>e==null?``:``+e,hy=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},gy=/###/g,_y=e=>e&&e.indexOf(`###`)>-1?e.replace(gy,`.`):e,vy=e=>!e||$(e),yy=(e,t,n)=>{let r=$(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(vy(e))return{};let t=_y(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return vy(e)?{}:{obj:e,k:_y(r[i])}},by=(e,t,n)=>{let{obj:r,k:i}=yy(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=yy(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=yy(e,o,Object),s&&s.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},xy=(e,t,n,r)=>{let{obj:i,k:a}=yy(e,t,Object);i[a]=i[a]||[],i[a].push(n)},Sy=(e,t)=>{let{obj:n,k:r}=yy(e,t);if(n)return n[r]},Cy=(e,t,n)=>{let r=Sy(e,n);return r===void 0?Sy(t,n):r},wy=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?$(e[r])||e[r]instanceof String||$(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):wy(e[r],t[r],n):e[r]=t[r]);return e},Ty=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),Ey={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},Dy=e=>$(e)?e.replace(/[&<>"'\/]/g,e=>Ey[e]):e,Oy=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},ky=[` `,`,`,`?`,`!`,`;`],Ay=new Oy(20),jy=(e,t,n)=>{t||=``,n||=``;let r=ky.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=Ay.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},My=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`.`;if(!e)return;if(e[t])return e[t];let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},Ny=e=>e&&e.replace(`_`,`-`),Py={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},Fy=new class e{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||`i18next:`,this.logger=e||Py,this.options=t,this.debug=t.debug}log(){var e=[...arguments];return this.forward(e,`log`,``,!0)}warn(){var e=[...arguments];return this.forward(e,`warn`,``,!0)}error(){var e=[...arguments];return this.forward(e,`error`,``)}deprecate(){var e=[...arguments];return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:($(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},Iy=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){var t=[...arguments].slice(1);this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[n,r]=e;for(let e=0;e<r;e++)n(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(n=>{let[r,i]=n;for(let n=0;n<i;n++)r.apply(r,[e,...t])})}},Ly=class extends Iy{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:[`translation`],defaultNS:`translation`};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):$(n)&&i?o.push(...n.split(i)):o.push(n)));let s=Sy(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!$(n)?s:My(this.data&&this.data[e]&&this.data[e][t],n,i)}addResource(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),by(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let r in n)($(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=Sy(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?wy(s,n,i):s={...s,...n},by(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.options.compatibilityAPI===`v1`?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},Ry={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))}),t}},zy={},By=class e extends Iy{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),hy([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=Fy.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;let n=this.resolve(e,t);return n&&n.res!==void 0}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!jy(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:$(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:$(i)?[i]:i}}translate(t,n,r){if(typeof n!=`object`&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n==`object`&&(n={...n}),n||={},t==null)return``;Array.isArray(t)||(t=[String(t)]);let i=n.returnDetails===void 0?this.options.returnDetails:n.returnDetails,a=n.keySeparator===void 0?this.options.keySeparator:n.keySeparator,{key:o,namespaces:s}=this.extractFromKey(t[t.length-1],n),c=s[s.length-1],l=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&l.toLowerCase()===`cimode`){if(u){let e=n.nsSeparator||this.options.nsSeparator;return i?{res:`${c}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${e}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:o}let d=this.resolve(t,n),f=d&&d.res,p=d&&d.usedKey||o,m=d&&d.exactUsedKey||o,h=Object.prototype.toString.apply(f),g=[`[object Number]`,`[object Function]`,`[object RegExp]`],_=n.joinArrays===void 0?this.options.joinArrays:n.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!$(f)&&typeof f!=`boolean`&&typeof f!=`number`;if(v&&f&&y&&g.indexOf(h)<0&&!($(_)&&Array.isArray(f))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,f,{...n,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(d.res=e,d.usedParams=this.getUsedParamsDetails(n),d):e}if(a){let e=Array.isArray(f),t=e?[]:{},r=e?m:p;for(let e in f)if(Object.prototype.hasOwnProperty.call(f,e)){let i=`${r}${a}${e}`;t[e]=this.translate(i,{...n,joinArrays:!1,ns:s}),t[e]===i&&(t[e]=f[e])}f=t}}else if(v&&$(_)&&Array.isArray(f))f=f.join(_),f&&=this.extendTranslation(f,t,n,r);else{let i=!1,s=!1,u=n.count!==void 0&&!$(n.count),p=e.hasDefaultValue(n),m=u?this.pluralResolver.getSuffix(l,n.count,n):``,h=n.ordinal&&u?this.pluralResolver.getSuffix(l,n.count,{ordinal:!1}):``,g=u&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),_=g&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${m}`]||n[`defaultValue${h}`]||n.defaultValue;!this.isValidLookup(f)&&p&&(i=!0,f=_),this.isValidLookup(f)||(s=!0,f=o);let v=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:f,y=p&&_!==f&&this.options.updateMissing;if(s||i||y){if(this.logger.log(y?`updateKey`:`missingKey`,l,c,o,y?_:f),a){let e=this.resolve(o,{...n,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(n.lng||this.language):e.push(n.lng||this.language);let r=(e,t,r)=>{let i=p&&r!==f?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,c,t,i,y,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,c,t,i,y,n),this.emit(`missingKey`,e,c,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,n);g&&n[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],o+t,n[`defaultValue${t}`]||_)})}):r(e,o,_))}f=this.extendTranslation(f,t,n,d,r),s&&f===o&&this.options.appendNamespaceToMissingKey&&(f=`${c}:${o}`),(s||i)&&this.options.parseMissingKeyHandler&&(f=this.options.compatibilityAPI===`v1`?this.options.parseMissingKeyHandler(f):this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${o}`:o,i?f:void 0))}return i?(d.res=f,d.usedParams=this.getUsedParamsDetails(n),d):f}extendTranslation(e,t,n,r,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let o=$(e)&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),s;if(o){let t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let c=n.replace&&!$(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,n.lng||this.language||r.usedLng,n),o){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;s<r&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!==`v1`&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,function(){var e=[...arguments];return i&&i[0]===e[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):a.translate(...e,t)},n)),n.interpolation&&this.interpolator.reset()}let o=n.postProcess||this.options.postProcess,s=$(o)?[o]:o;return e!=null&&s&&s.length&&n.applyPostProcessor!==!1&&(e=Ry.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,r,i,a,o;return $(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!$(t.count),d=u&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),f=t.context!==void 0&&($(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!zy[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(zy[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(o.push(c+e),t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator}${t.context}`;o.push(r),u&&(o.push(r+e),t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!$(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},Vy=e=>e.charAt(0).toUpperCase()+e.slice(1),Hy=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Fy.create(`languageUtils`)}getScriptPartFromCode(e){if(e=Ny(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=Ny(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if($(e)&&e.indexOf(`-`)>-1){if(typeof Intl<`u`&&Intl.getCanonicalLocales!==void 0)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch{}let t=[`hans`,`hant`,`latn`,`cyrl`,`cans`,`mong`,`arab`],n=e.split(`-`);return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Vy(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!==`sgn`&&n[2].length===2&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Vy(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Vy(n[2].toLowerCase()))),n.join(`-`)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>{if(e===n||!(e.indexOf(`-`)<0&&n.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&n.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===n||e.indexOf(n)===0&&n.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),$(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return $(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):$(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},Uy=[{lngs:[`ach`,`ak`,`am`,`arn`,`br`,`fil`,`gun`,`ln`,`mfe`,`mg`,`mi`,`oc`,`pt`,`pt-BR`,`tg`,`tl`,`ti`,`tr`,`uz`,`wa`],nr:[1,2],fc:1},{lngs:`af.an.ast.az.bg.bn.ca.da.de.dev.el.en.eo.es.et.eu.fi.fo.fur.fy.gl.gu.ha.hi.hu.hy.ia.it.kk.kn.ku.lb.mai.ml.mn.mr.nah.nap.nb.ne.nl.nn.no.nso.pa.pap.pms.ps.pt-PT.rm.sco.se.si.so.son.sq.sv.sw.ta.te.tk.ur.yo`.split(`.`),nr:[1,2],fc:2},{lngs:[`ay`,`bo`,`cgg`,`fa`,`ht`,`id`,`ja`,`jbo`,`ka`,`km`,`ko`,`ky`,`lo`,`ms`,`sah`,`su`,`th`,`tt`,`ug`,`vi`,`wo`,`zh`],nr:[1],fc:3},{lngs:[`be`,`bs`,`cnr`,`dz`,`hr`,`ru`,`sr`,`uk`],nr:[1,2,5],fc:4},{lngs:[`ar`],nr:[0,1,2,3,11,100],fc:5},{lngs:[`cs`,`sk`],nr:[1,2,5],fc:6},{lngs:[`csb`,`pl`],nr:[1,2,5],fc:7},{lngs:[`cy`],nr:[1,2,3,8],fc:8},{lngs:[`fr`],nr:[1,2],fc:9},{lngs:[`ga`],nr:[1,2,3,7,11],fc:10},{lngs:[`gd`],nr:[1,2,3,20],fc:11},{lngs:[`is`],nr:[1,2],fc:12},{lngs:[`jv`],nr:[0,1],fc:13},{lngs:[`kw`],nr:[1,2,3,4],fc:14},{lngs:[`lt`],nr:[1,2,10],fc:15},{lngs:[`lv`],nr:[1,2,0],fc:16},{lngs:[`mk`],nr:[1,2],fc:17},{lngs:[`mnk`],nr:[0,1,2],fc:18},{lngs:[`mt`],nr:[1,2,11,20],fc:19},{lngs:[`or`],nr:[2,1],fc:2},{lngs:[`ro`],nr:[1,2,20],fc:20},{lngs:[`sl`],nr:[5,1,2,3],fc:21},{lngs:[`he`,`iw`],nr:[1,2,20,21],fc:22}],Wy={1:e=>Number(e>1),2:e=>Number(e!=1),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(e==1?0:e>=2&&e<=4?1:2),7:e=>Number(e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(e==1?0:e==2?1:e!=8&&e!=11?2:3),9:e=>Number(e>=2),10:e=>Number(e==1?0:e==2?1:e<7?2:e<11?3:4),11:e=>Number(e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(e!==0),14:e=>Number(e==1?0:e==2?1:e==3?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:e===0?2:1),17:e=>Number(e==1||e%10==1&&e%100!=11?0:1),18:e=>Number(e==0?0:e==1?1:2),19:e=>Number(e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(e==1?0:e==0||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3)},Gy=[`v1`,`v2`,`v3`],Ky=[`v4`],qy={zero:0,one:1,two:2,few:3,many:4,other:5},Jy=()=>{let e={};return Uy.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Wy[t.fc]}})}),e},Yy=class{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Fy.create(`pluralResolver`),(!this.options.compatibilityJSON||Ky.includes(this.options.compatibilityJSON))&&(typeof Intl>`u`||!Intl.PluralRules)&&(this.options.compatibilityJSON=`v3`,this.logger.error(`Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.`)),this.rules=Jy(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){let n=Ny(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(!e.match(/-|_/))return;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>qy[e]-qy[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),``)}getSuffixRetroCompatible(e,t){let n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(r===2?r=`plural`:r===1&&(r=``));let i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON===`v1`?r===1?``:typeof r==`number`?`_plural_${r.toString()}`:i():this.options.compatibilityJSON===`v2`||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Gy.includes(this.options.compatibilityJSON)}},Xy=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`.`,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=Cy(e,t,n);return!a&&i&&$(n)&&(a=My(e,n,r),a===void 0&&(a=My(t,n,r))),a},Zy=e=>e.replace(/\$/g,`$$$$`),Qy=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Fy.create(`interpolator`),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?Dy:t,this.escapeValue=n===void 0?!0:n,this.useRawValueToEscape=r===void 0?!1:r,this.prefix=i?Ty(i):a||`{{`,this.suffix=o?Ty(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?Ty(d):f||Ty(`$t(`),this.nestingSuffix=p?Ty(p):m||Ty(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_===void 0?!1:_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=Xy(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(Xy(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Zy(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Zy(this.escape(e)):Zy(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=$(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else!$(a)&&!this.useRawValueToEscape&&(a=my(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);(o&&o.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!$(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),s=e,c=!0}if(i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!$(i))return i;$(i)||(i=my(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),c&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},$y=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},eb=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(Ny(r),i),t[o]=s),s(n)}},tb=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Fy.create(`formatter`),this.options=e,this.formats={number:eb((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:eb((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:eb((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:eb((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:eb((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||`,`}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=eb(t)}format(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=$y(t);if(this.formats[i]){let t=e;try{let o=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},nb=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},rb=class extends Iy{constructor(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Fy.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{xy(n.loaded,[i],a),nb(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();$(e)&&(e=this.languageUtils.toResolveHierarchy(e)),$(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend&&this.backend.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},ib=()=>({debug:!1,initImmediate:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),$(e[1])&&(t.defaultValue=e[1]),$(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0}}),ab=e=>($(e.ns)&&(e.ns=[e.ns]),$(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),$(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),ob=()=>{},sb=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},cb=class e extends Iy{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ab(e),this.services={},this.logger=Fy,this.modules={external:[]},sb(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t==`function`&&(n=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&($(t.ns)?t.defaultNS=t.ns:t.ns.indexOf(`translation`)<0&&(t.defaultNS=t.ns[0]));let r=ib();this.options={...r,...this.options,...ab(t)},this.options.compatibilityAPI!==`v1`&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);let i=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?Fy.init(i(this.modules.logger),this.options):Fy.init(null,this.options);let t;this.modules.formatter?t=this.modules.formatter:typeof Intl<`u`&&(t=tb);let n=new Hy(this.options);this.store=new Ly(this.options.resources,this.options);let a=this.services;a.logger=Fy,a.resourceStore=this.store,a.languageUtils=n,a.pluralResolver=new Yy(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(a.formatter=i(t),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new Qy(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new rb(i(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on(`*`,function(t){var n=[...arguments].slice(1);e.emit(t,...n)}),this.modules.languageDetector&&(a.languageDetector=i(this.modules.languageDetector),a.languageDetector.init&&a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=i(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new By(this.services,this.options),this.translator.on(`*`,function(t){var n=[...arguments].slice(1);e.emit(t,...n)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||=ob,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let a=py(),o=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),a.resolve(t),n(e,t)};if(this.languages&&this.options.compatibilityAPI!==`v1`&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?o():setTimeout(o,0),a}loadResources(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ob,n=$(e)?e:this.language;if(typeof e==`function`&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&n.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return t();let e=[],r=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>r(e)),this.options.preload&&this.options.preload.forEach(e=>r(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,n){let r=py();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=ob,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&Ry.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!([`cimode`,`dev`].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!([`cimode`,`dev`].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;let r=py();this.emit(`languageChanging`,e);let i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(e,a)=>{a?(i(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},o=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=$(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{a(e,n)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}getFixedT(e,t,n){var r=this;let i=function(e,t){let a;if(typeof t!=`object`){var o=[...arguments].slice(2);a=r.options.overloadTranslationOptionHandler([e,t].concat(o))}else a={...t};a.lng=a.lng||i.lng,a.lngs=a.lngs||i.lngs,a.ns=a.ns||i.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||i.keyPrefix);let s=r.options.keySeparator||`.`,c;return c=a.keyPrefix&&Array.isArray(e)?e.map(e=>`${a.keyPrefix}${s}${e}`):a.keyPrefix?`${a.keyPrefix}${s}${e}`:e,r.t(c,a)};return $(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=py();return this.options.ns?($(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=py();$(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return`rtl`;let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services&&this.services.languageUtils||new Hy(ib());return t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new e(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ob,r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new Ly(this.store.data,i),a.services.resourceStore=a.store),a.translator=new By(a.services,i),a.translator.on(`*`,function(e){var t=[...arguments].slice(1);a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},lb=cb.createInstance();lb.createInstance=cb.createInstance,lb.createInstance,lb.dir,lb.init,lb.loadResources,lb.reloadResources,lb.use,lb.changeLanguage,lb.getFixedT,lb.t,lb.exists,lb.setDefaultNamespace,lb.hasLoadedNamespace,lb.loadNamespaces,lb.loadLanguages;var ub=[{code:`af`,label:`Afrikaans`},{code:`ar`,label:`Arabic`},{code:`bg`,label:`Bulgarian`},{code:`bn`,label:`Bengali`},{code:`bs`,label:`Bosnian`},{code:`ca`,label:`Catalan`},{code:`cs`,label:`Czech`},{code:`da`,label:`Danish`},{code:`de`,label:`German`},{code:`de-CH`,label:`Swiss German`},{code:`el`,label:`Greek`},{code:`en`,label:`English`},{code:`eo`,label:`Esperanto`},{code:`es`,label:`Spanish`},{code:`et`,label:`Estonian`},{code:`eu`,label:`Basque`},{code:`fa`,label:`Persian/Farsi`},{code:`fi`,label:`Finnish`},{code:`fr`,label:`French`},{code:`gd`,label:`Gaelic (Scottish)`},{code:`he`,label:`Hebrew`},{code:`hi`,label:`Hindi`},{code:`hr`,label:`Croatian`},{code:`hu`,label:`Hungarian`},{code:`id`,label:`Indonesian`},{code:`is`,label:`Icelandic`},{code:`it`,label:`Italian`},{code:`ja`,label:`Japanese`},{code:`ko`,label:`Korean`},{code:`kz`,label:`Kazakh`},{code:`lt`,label:`Lithuanian`},{code:`lv`,label:`Latvian`},{code:`mk`,label:`Macedonian`},{code:`mn`,label:`Mongolian`},{code:`ms`,label:`Malay`},{code:`nb`,label:`Norwegian Bokmål`},{code:`ne`,label:`Nepali`},{code:`nl`,label:`Dutch`},{code:`nn`,label:`Norwegian Nynorsk`},{code:`pa`,label:`Punjabi`},{code:`pl`,label:`Polish`},{code:`pt`,label:`Portuguese`},{code:`pt-BR`,label:`Portuguese (Brazil)`},{code:`ro`,label:`Romanian`},{code:`ru`,label:`Russian`},{code:`si`,label:`Sinhala`},{code:`sk`,label:`Slovak`},{code:`sl`,label:`Slovenian`},{code:`sq`,label:`Albanian`},{code:`sr`,label:`Serbian`},{code:`sr-Cyrl`,label:`Serbian (Cyrillic)`},{code:`sv`,label:`Swedish`},{code:`sw`,label:`Swahili`},{code:`ta`,label:`Tamil`},{code:`th`,label:`Thai`},{code:`tr`,label:`Turkish`},{code:`uk`,label:`Ukrainian`},{code:`ur`,label:`Urdu`},{code:`uz`,label:`Uzbek`},{code:`vi`,label:`Vietnamese`},{code:`zh`,label:`Chinese`},{code:`zh-Hant`,label:`Traditional Chinese`}],db=ub.map(e=>e.code);function fb(e){let t=e.default;return{...e,...t&&typeof t==`object`?t:{}}}function pb(e){return function(t,n){return t.reduce((t,r)=>{let i=e(r,n);return i===void 0&&(i=e(`en`,n)),t[r]={[n]:fb(i??{})},t},{})}}function mb({generateThemeResources:e,generateResources:t}){return(n=`en`,r=`portal`,i={})=>{let a=lb.createInstance(),o={prefix:`{`,suffix:`}`};(r===`theme`||r===`portal`)&&(o.escapeValue=!1);let s;return s=r===`theme`?e(n,i):t(db,r),a.init({lng:n,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:{no:[`nb`,`en`],default:[`en`]},ns:r,defaultNS:r,interpolation:o,resources:s}),a}}function hb(e,t){let n={};for(let[t,r]of Object.entries(e)){let e=/\/locales\/([^/]+)\//.exec(t)?.[1];e&&(n[e]=r)}return gb(n,t)}function gb(e,t){let n=pb(t=>e[t]),r=Object.assign(mb({generateResources:n,generateThemeResources:e=>({[e]:{theme:{}}})}),{LOCALE_DATA:ub,SUPPORTED_LOCALES:db,generateResources:n,namespace:t});return r.default=r,r}var _b=hb(Object.assign({"../../locales/af/comments.json":av,"../../locales/ar/comments.json":ov,"../../locales/bg/comments.json":sv,"../../locales/bn/comments.json":cv,"../../locales/bs/comments.json":lv,"../../locales/ca/comments.json":uv,"../../locales/cs/comments.json":dv,"../../locales/da/comments.json":fv,"../../locales/de/comments.json":pv,"../../locales/de-CH/comments.json":mv,"../../locales/el/comments.json":hv,"../../locales/en/comments.json":gv,"../../locales/eo/comments.json":_v,"../../locales/es/comments.json":vv,"../../locales/et/comments.json":yv,"../../locales/eu/comments.json":bv,"../../locales/fa/comments.json":xv,"../../locales/fi/comments.json":Sv,"../../locales/fr/comments.json":Cv,"../../locales/gd/comments.json":wv,"../../locales/he/comments.json":Tv,"../../locales/hi/comments.json":Ev,"../../locales/hr/comments.json":Dv,"../../locales/hu/comments.json":Ov,"../../locales/id/comments.json":kv,"../../locales/is/comments.json":Av,"../../locales/it/comments.json":jv,"../../locales/ja/comments.json":Mv,"../../locales/ko/comments.json":Nv,"../../locales/kz/comments.json":Pv,"../../locales/lt/comments.json":Fv,"../../locales/lv/comments.json":Iv,"../../locales/mk/comments.json":Lv,"../../locales/mn/comments.json":Rv,"../../locales/ms/comments.json":zv,"../../locales/nb/comments.json":Bv,"../../locales/ne/comments.json":Vv,"../../locales/nl/comments.json":Hv,"../../locales/nn/comments.json":Uv,"../../locales/pa/comments.json":Wv,"../../locales/pl/comments.json":Gv,"../../locales/pt/comments.json":Kv,"../../locales/pt-BR/comments.json":qv,"../../locales/ro/comments.json":Jv,"../../locales/ru/comments.json":Yv,"../../locales/si/comments.json":Xv,"../../locales/sk/comments.json":Zv,"../../locales/sl/comments.json":Qv,"../../locales/sq/comments.json":$v,"../../locales/sr/comments.json":ey,"../../locales/sr-Cyrl/comments.json":ty,"../../locales/sv/comments.json":ny,"../../locales/sw/comments.json":ry,"../../locales/ta/comments.json":iy,"../../locales/th/comments.json":ay,"../../locales/tr/comments.json":oy,"../../locales/uk/comments.json":sy,"../../locales/ur/comments.json":cy,"../../locales/uz/comments.json":ly,"../../locales/vi/comments.json":uy,"../../locales/zh/comments.json":dy,"../../locales/zh-Hant/comments.json":fy}),`comments`),{LOCALE_DATA:vb,SUPPORTED_LOCALES:yb,generateResources:bb}=_b;function xb({siteUrl:e=window.location.origin,apiUrl:t,apiKey:n}){function r({type:t,resource:n,params:r=``}){return t===`members`?`${e.replace(/\/$/,``)}/members/api/${n}/${r}`:``}function i({resource:e,params:r={}}){if(t&&n){let i=new URLSearchParams({...r,key:n});return`${t.replace(/\/$/,``)}/${e}/?${i.toString()}`}return``}function a({url:e,method:t=`GET`,headers:n={},credentials:r=void 0,body:i=void 0}){return fetch(e,{method:t,headers:n,credentials:r,body:i})}let o=null,s={site:{settings(){return a({url:i({resource:`settings`}),method:`GET`,headers:{"Content-Type":`application/json`}}).then(function(e){if(e.ok)return e.json();throw Error(`Failed to fetch site data`)})}},member:{identity(){return a({url:r({type:`members`,resource:`session`}),credentials:`same-origin`}).then(function(e){return!e.ok||e.status===204?null:e.text()})},sessionData(){return a({url:r({type:`members`,resource:`member`}),credentials:`same-origin`}).then(function(e){return!e.ok||e.status===204?null:e.json()})},update({name:e,expertise:t}){return a({url:r({type:`members`,resource:`member`}),method:`PUT`,headers:{"Content-Type":`application/json`},credentials:`same-origin`,body:JSON.stringify({name:e,expertise:t})}).then(function(e){return e.ok?e.json():null})}},comments:{async count({postId:e}){let t=await(await a({url:r({type:`members`,resource:`comments/counts`,params:e?`?ids=${e}`:``}),method:`GET`,headers:{"Content-Type":`application/json`},credentials:`same-origin`})).json();return e?t[e]:t},browse({page:e,postId:t,order:n}){let i=null;o&&!n&&(i=`created_at:<=${o}`);let s=new URLSearchParams;s.set(`limit`,`20`),i&&s.set(`filter`,i),s.set(`page`,e.toString()),n&&s.set(`order`,n);let c=a({url:r({type:`members`,resource:`comments/post/${t}`,params:`?${s.toString()}`}),method:`GET`,headers:{"Content-Type":`application/json`},credentials:`same-origin`}).then(function(e){if(e.ok)return e.json();throw Error(`Failed to fetch comments`)});return o||c.then(e=>{let t=e.comments[0];t&&(o=t.created_at)}),c},async replies({commentId:e,afterReplyId:t,limit:n,page:i}){if(n===`all`){let t=[],n=1,r=!0;for(;r;){let i=await this.replies({commentId:e,limit:100,page:n});t.push(...i.comments),r=!!i.meta?.pagination?.next&&i.comments.length>0,n+=1}return{comments:t,meta:{pagination:{next:!1}}}}let o=new URLSearchParams;o.set(`limit`,(n??5).toString()),i&&o.set(`page`,i.toString()),t&&o.set(`filter`,`id:>'${t}'`);let s=await a({url:r({type:`members`,resource:`comments/${e}/replies`,params:`?${o.toString()}`}),method:`GET`,headers:{"Content-Type":`application/json`},credentials:`same-origin`});if(s.ok)return s.json();throw Error(`Failed to fetch replies`)},add({comment:e}){let t={comments:[e]};return a({url:r({type:`members`,resource:`comments`}),method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)}).then(function(e){if(e.ok)return e.json();throw Error(`Failed to add comment`)})},edit({comment:e}){let t={comments:[e]};return a({url:r({type:`members`,resource:`comments/${e.id}`}),method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)}).then(function(e){if(e.ok)return e.json();throw Error(`Failed to edit comment`)})},read(e){return a({url:r({type:`members`,resource:`comments/${e}`}),method:`GET`,credentials:`same-origin`}).then(function(e){if(e.ok)return e.json();throw Error(`Failed to read comment`)})},like({comment:e}){return a({url:r({type:`members`,resource:`comments/${e.id}/like`}),method:`POST`,headers:{"Content-Type":`application/json`}}).then(function(e){if(e.ok)return`Success`;throw Error(`Failed to like comment`)})},unlike({comment:e}){let t={comments:[e]};return a({url:r({type:`members`,resource:`comments/${e.id}/like`}),method:`DELETE`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)}).then(function(e){if(e.ok)return`Success`;throw Error(`Failed to unlike comment`)})},dislike({comment:e}){return a({url:r({type:`members`,resource:`comments/${e.id}/dislike`}),method:`POST`,headers:{"Content-Type":`application/json`}}).then(function(e){if(e.ok)return`Success`;throw Error(`Failed to dislike comment`)})},undislike({comment:e}){let t={comments:[e]};return a({url:r({type:`members`,resource:`comments/${e.id}/dislike`}),method:`DELETE`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)}).then(function(e){if(e.ok)return`Success`;throw Error(`Failed to undislike comment`)})},report({comment:e}){return a({url:r({type:`members`,resource:`comments/${e.id}/report`}),method:`POST`,headers:{"Content-Type":`application/json`}}).then(function(e){if(e.ok)return`Success`;throw Error(`Failed to report comment`)})}},init:(()=>{})};return s.init=async()=>{let[e]=await Promise.all([s.member.sessionData()]),t={},n=null;try{let e=await s.site.settings();e.settings.labs&&Object.assign(t,e.settings.labs),n=e.settings.support_email_address||null}catch{t={}}return{member:e,labs:t,supportEmail:n}},s}function Sb(e,t){for(let n of e){if(n.id===t)return n;for(let e of n.replies||[])if(e.id===t)return e}}async function Cb({state:e,api:t,options:n,order:r}){let i=1;e.pagination&&e.pagination.page&&(i=e.pagination.page+1);let a;return a=e.admin&&e.adminApi?await e.adminApi.browse({page:i,postId:n.postId,order:r||e.order,memberUuid:e.member?.uuid}):await t.comments.browse({page:i,postId:n.postId,order:r||e.order}),{comments:[...e.comments,...a.comments].filter((e,t,n)=>n.findIndex(t=>t.id===e.id)===t),pagination:a.meta.pagination}}function wb({data:e}){return{commentsIsLoading:e}}async function Tb({state:e,data:{order:t},options:n,api:r,dispatchAction:i}){i(`setCommentsIsLoading`,!0);try{let i;return i=e.admin&&e.adminApi?await e.adminApi.browse({page:1,postId:n.postId,order:t,memberUuid:e.member?.uuid}):await r.comments.browse({page:1,postId:n.postId,order:t}),{comments:[...i.comments],pagination:i.meta.pagination,order:t,commentsIsLoading:!1}}catch(t){throw console.error(`Failed to set order:`,t),e.commentsIsLoading=!1,t}}async function Eb({state:e,api:t,data:n}){let r=(await t.comments.add({comment:n})).comments[0];return{comments:[r,...e.comments],commentCount:e.commentCount+1,commentIdToScrollTo:r.id}}async function Db({state:e,api:t,data:{reply:n,parent:r}}){let i=(await t.comments.add({comment:{...n,parent_id:r.id}})).comments[0],a=await t.comments.replies({commentId:r.id,limit:`all`}),o=a.comments.some(e=>e.id===i.id)?a.comments:[...a.comments,i];return{comments:e.comments.map(e=>e.id===r.id?{...e,replies:o,count:{...e.count,replies:o.length}}:e),commentCount:e.commentCount+1,commentIdToScrollTo:i.id}}async function Ob({state:e,data:t}){return e.adminApi&&await e.adminApi.hideComment(t.id),{comments:e.comments.map(e=>{let n=e.replies.map(e=>e.id===t.id?{...e,status:`hidden`}:e);return e.id===t.id?{...e,status:`hidden`,replies:n}:{...e,replies:n}}),commentCount:e.commentCount-1}}async function kb({state:e,api:t,data:n}){e.adminApi&&await e.adminApi.showComment({id:n.id});let r;r=e.admin&&e.adminApi?await e.adminApi.read({commentId:n.id,memberUuid:e.member?.uuid}):await t.comments.read(n.id);let i=r.comments[0];return{comments:e.comments.map(e=>{let t=e.replies.map(e=>e.id===n.id?i:e);return e.id===n.id?i:{...e,replies:t}}),commentCount:e.commentCount+1}}async function Ab({state:e,data:t,dispatchAction:n}){return e.adminApi&&(await e.adminApi.pinComment({id:t.id}),n(`setOrder`,{order:e.order})),null}async function jb({state:e,data:t,dispatchAction:n}){return e.adminApi&&(await e.adminApi.unpinComment({id:t.id}),n(`setOrder`,{order:e.order})),null}async function Mb({state:e,data:t}){return{comments:e.comments.map(e=>{let n=e.replies.map(e=>e.id===t.id?t.expectedLiked!==void 0&&e.liked!==t.expectedLiked||t.expectedDisliked!==void 0&&!!e.disliked!==t.expectedDisliked||t.expectedVotePending!==void 0&&!!e.votePending!==t.expectedVotePending?e:{...e,liked:t.liked,disliked:t.restoreDisliked??(t.liked?!1:e.disliked),votePending:t.votePending??e.votePending,count:{...e.count,likes:t.liked?e.count.likes+1:e.count.likes-1}}:e);return e.id===t.id?t.expectedLiked!==void 0&&e.liked!==t.expectedLiked||t.expectedDisliked!==void 0&&!!e.disliked!==t.expectedDisliked||t.expectedVotePending!==void 0&&!!e.votePending!==t.expectedVotePending?{...e,replies:n}:{...e,liked:t.liked,disliked:t.restoreDisliked??(t.liked?!1:e.disliked),votePending:t.votePending??e.votePending,replies:n,count:{...e.count,likes:t.liked?e.count.likes+1:e.count.likes-1}}:{...e,replies:n}})}}async function Nb({state:e,data:t}){let n=e=>t.disliked&&t.wasLiked?e-1:t.restoreLiked?e+1:e;return{comments:e.comments.map(e=>{let r=e.replies.map(e=>e.id===t.id?t.expectedDisliked!==void 0&&e.disliked!==t.expectedDisliked||t.expectedLiked!==void 0&&e.liked!==t.expectedLiked||t.expectedVotePending!==void 0&&!!e.votePending!==t.expectedVotePending?e:{...e,disliked:t.disliked,liked:t.restoreLiked??(t.disliked?!1:e.liked),votePending:t.votePending??e.votePending,count:{...e.count,likes:n(e.count.likes)}}:e);return e.id===t.id?t.expectedDisliked!==void 0&&e.disliked!==t.expectedDisliked||t.expectedLiked!==void 0&&e.liked!==t.expectedLiked||t.expectedVotePending!==void 0&&!!e.votePending!==t.expectedVotePending?{...e,replies:r}:{...e,disliked:t.disliked,liked:t.restoreLiked??(t.disliked?!1:e.liked),votePending:t.votePending??e.votePending,replies:r,count:{...e.count,likes:n(e.count.likes)}}:{...e,replies:r}})}}async function Pb({state:e,data:t}){return{comments:e.comments.map(e=>{let n=e.replies.map(e=>e.id===t.id?t.expectedVotePending!==void 0&&!!e.votePending!==t.expectedVotePending?e:{...e,votePending:t.votePending}:e);return e.id===t.id?t.expectedVotePending!==void 0&&!!e.votePending!==t.expectedVotePending?{...e,replies:n}:{...e,votePending:t.votePending,replies:n}:{...e,replies:n}})}}async function Fb({state:e,api:t,data:n,dispatchAction:r}){let i=Sb(e.comments,n.id);if(i?.votePending)return{};let a=i?.disliked??!1;r(`updateCommentLikeState`,{id:n.id,liked:!0,wasDisliked:a,votePending:!0});try{return await t.comments.like({comment:n}),r(`updateCommentVotePendingState`,{id:n.id,votePending:!1,expectedVotePending:!0}),{}}catch{r(`updateCommentLikeState`,{id:n.id,liked:!1,restoreDisliked:a,expectedLiked:!0,expectedVotePending:!0,votePending:!1})}}async function Ib({state:e,api:t,data:n,dispatchAction:r}){if(Sb(e.comments,n.id)?.votePending)return{};r(`updateCommentLikeState`,{id:n.id,liked:!1,votePending:!0});try{return await t.comments.unlike({comment:n}),r(`updateCommentVotePendingState`,{id:n.id,votePending:!1,expectedVotePending:!0}),{}}catch{r(`updateCommentLikeState`,{id:n.id,liked:!0,expectedLiked:!1,expectedDisliked:!1,expectedVotePending:!0,votePending:!1})}}async function Lb({state:e,api:t,data:n,dispatchAction:r}){let i=Sb(e.comments,n.id);if(i?.votePending)return{};let a=i?.liked??!1;r(`updateCommentDislikeState`,{id:n.id,disliked:!0,wasLiked:a,votePending:!0});try{return await t.comments.dislike({comment:n}),r(`updateCommentVotePendingState`,{id:n.id,votePending:!1,expectedVotePending:!0}),{}}catch{r(`updateCommentDislikeState`,{id:n.id,disliked:!1,restoreLiked:a,expectedDisliked:!0,expectedVotePending:!0,votePending:!1})}}async function Rb({state:e,api:t,data:n,dispatchAction:r}){if(Sb(e.comments,n.id)?.votePending)return{};r(`updateCommentDislikeState`,{id:n.id,disliked:!1,votePending:!0});try{return await t.comments.undislike({comment:n}),r(`updateCommentVotePendingState`,{id:n.id,votePending:!1,expectedVotePending:!0}),{}}catch{r(`updateCommentDislikeState`,{id:n.id,disliked:!0,expectedDisliked:!1,expectedLiked:!1,expectedVotePending:!0,votePending:!1})}}async function zb({api:e,data:t}){return await e.comments.report({comment:t}),{}}function Bb(e,t){return e.some(e=>e.in_reply_to_id===t)}function Vb(e,t){return e.status===`deleted`||!t&&e.status===`hidden`}function Hb(e,t){let n=e,r=!1;do r=!1,n=n.filter(e=>!Vb(e,t)||Bb(n,e.id)?!0:(r=!0,!1));while(r);return n}function Ub(e){return Math.max((e||0)-1,0)}async function Wb({state:e,api:t,data:n,dispatchAction:r}){await t.comments.edit({comment:{id:n.id,status:`deleted`}});let i=e.comments.find(e=>e.id===n.id);return i&&(!i.replies||i.replies.length===0)?(r(`setOrder`,{order:e.order}),null):{comments:e.comments.map(t=>{if(t.id===n.id)return t.replies.length>0?{...t,status:`deleted`}:null;let r=t.replies.length,i=t.replies.find(e=>e.id===n.id),a=i?Bb(t.replies,i.id):!1,o=Hb(t.replies.reduce((e,t)=>t.id===n.id?(a&&e.push({...t,status:`deleted`,html:null}),e):(e.push(t),e),[]),e.isAdmin),s=r!==o.length||a,c={...t,replies:o};if(s&&i&&![`hidden`,`deleted`].includes(i.status)){let e=!i.in_reply_to_id||i.in_reply_to_id===t.id;c.count={...c.count,replies:Ub(c.count?.replies),direct_replies:e?Ub(c.count?.direct_replies):c.count?.direct_replies}}return c}).filter(Boolean),commentCount:e.commentCount-1}}async function Gb({state:e,api:t,data:{comment:n,parent:r}}){return n=(await t.comments.edit({comment:n})).comments[0],{comments:e.comments.map(e=>r&&r.id===e.id?{...e,replies:e.replies.map(e=>e.id===n.id?n:e)}:e.id===n.id?n:e)}}async function Kb({data:e,state:t,api:n}){let{name:r,expertise:i}=e,a={},o=t?.member?.name;r&&o!==r&&(a.name=r);let s=t?.member?.expertise;if(i!==void 0&&s!==i&&(a.expertise=i),Object.keys(a).length>0)try{let e=await n.member.update(a);if(!e)throw Error(`Failed to update member`);return{member:e,success:!0}}catch(e){return{success:!1,error:e}}return null}function qb({data:e}){return{popup:e}}function Jb(){return{popup:null}}function Yb({data:e,state:t}){let n=t.openCommentForms.filter(e=>e.hasUnsavedChanges),r=n.findIndex(t=>t.id===e.id);return r>-1?(n[r]=e,{openCommentForms:n}):{openCommentForms:[...n,e]}}function Xb({data:e}){return{commentIdToHighlight:e}}function Zb({data:{commentId:e},dispatchAction:t}){return setTimeout(()=>{t(`setHighlightComment`,null)},3e3),{commentIdToHighlight:e}}function Qb({data:{id:e,hasUnsavedChanges:t},state:n}){return{openCommentForms:n.openCommentForms.map(n=>n.id===e?{...n,hasUnsavedChanges:t}:{...n})}}function $b({data:e,state:t}){return{openCommentForms:t.openCommentForms.filter(t=>t.id!==e)}}function ex({data:e}){return{commentIdToScrollTo:e}}function tx({data:e}){return{commentIdFromHash:e}}var nx={openPopup:qb,closePopup:Jb,closeCommentForm:$b,setCommentFormHasUnsavedChanges:Qb,setScrollTarget:ex,setHashCommentId:tx},rx={addComment:Eb,editComment:Gb,hideComment:Ob,pinComment:Ab,unpinComment:jb,deleteComment:Wb,showComment:kb,likeComment:Fb,unlikeComment:Ib,dislikeComment:Lb,undislikeComment:Rb,reportComment:zb,addReply:Db,loadMoreComments:Cb,openCommentForm:Yb,updateMember:Kb,setOrder:Tb,highlightComment:Zb,setHighlightComment:Xb,setCommentsIsLoading:wb,updateCommentLikeState:Mb,updateCommentDislikeState:Nb,updateCommentVotePendingState:Pb};function ix(e){return Object.prototype.hasOwnProperty.call(nx,e)}async function ax({action:e,data:t,state:n,api:r,adminApi:i,options:a,dispatchAction:o}){let s=rx[e];return s&&await s({data:t,state:n,api:r,adminApi:i,options:a,dispatchAction:o})||{}}function ox({action:e,data:t,state:n,api:r,adminApi:i,options:a}){let o=nx[e];return o&&o({data:t,state:n,api:r,adminApi:i,options:a})||{}}function sx({adminUrl:e}){let t=document.querySelector(`iframe[data-frame="admin-auth"]`),n=1,r={},i=new URL(e).origin,a=null;window.addEventListener(`message`,function(e){if(e.origin!==i)return;let t=null;try{t=JSON.parse(e.data)}catch{return}let n=r[t.uid];n&&(delete r[t.uid],n(t.error,t.result))});function o(e,a){return new Promise((o,s)=>{function c(e,t){return e?s(e):o(t)}n+=1,r[n]=c,t.contentWindow.postMessage(JSON.stringify({uid:n,action:e,...a}),i)})}return{async getUser(){let e=await o(`getUser`);return!e||!e.users?null:e.users[0]},async hideComment(e){return await o(`hideComment`,{id:e})},async showComment({id:e}){return await o(`showComment`,{id:e})},async pinComment({id:e}){return await o(`pinComment`,{id:e})},async unpinComment({id:e}){return await o(`unpinComment`,{id:e})},async browse({page:e,postId:t,order:n,memberUuid:r}){let i=null;a&&!n&&(i=`created_at:<=${a}`);let s=new URLSearchParams;s.set(`limit`,`20`),i&&s.set(`filter`,i),s.set(`page`,e.toString()),n&&s.set(`order`,n),r&&s.set(`impersonate_member_uuid`,r);let c=await o(`browseComments`,{postId:t,params:s.toString()});if(!a){let e=c.comments[0];e&&(a=e.created_at)}return c},async replies({commentId:e,afterReplyId:t,limit:n,memberUuid:r}){let i=new URLSearchParams;return n&&i.set(`limit`,n.toString()),t&&i.set(`filter`,`id:>'${t}'`),r&&i.set(`impersonate_member_uuid`,r),await o(`getReplies`,{commentId:e,params:i.toString()})},async read({commentId:e,memberUuid:t}){let n=new URLSearchParams;return t&&n.set(`impersonate_member_uuid`,t),await o(`readComment`,{commentId:e,...n.toString()&&{params:n.toString()}})}}}function cx(e){let t=k.useCallback(()=>{let t=e.dataset,n=t.ghostComments||window.location.origin,r=t.key,i=t.api,a=t.admin,o=t.postId||``,s=t.colorScheme,c=t.avatarSaturation?parseInt(t.avatarSaturation):void 0,l=t.accentColor??`#000000`,u=t.commentsEnabled,d=t.title===`null`?null:t.title??``,f=t.count===`true`,p=t.publication??``;return{locale:t.locale??`en`,siteUrl:n,apiKey:r,apiUrl:i,postId:o,adminUrl:a,colorScheme:s,avatarSaturation:c,accentColor:l,commentsEnabled:u,title:d,showCount:f,publication:p}},[e]),n=(0,k.useMemo)(()=>t(),[]),[r,i]=k.useState(n);return k.useEffect(()=>{let n=new MutationObserver(e=>{e.some(e=>e.type===`attributes`)&&i(t())});return n.observe(e,{attributes:!0}),()=>{n.disconnect()}},[e,t]),r}var lx=[`Owner`,`Administrator`,`Super Editor`],ux=`count__net_score desc, created_at desc`;function dx(e,t){return e.some(e=>e.id===t||e.replies?.some(e=>e.id===t))}var fx=({scriptTag:e,initialCommentId:t})=>{let n=cx(e),[r,i]=(0,k.useState)({initStatus:`running`,member:null,admin:null,comments:[],pagination:null,commentCount:0,openCommentForms:[],popup:null,labs:{},order:ux,adminApi:null,commentsIsLoading:!1,commentIdToHighlight:null,commentIdToScrollTo:t,commentIdFromHash:t,showMissingCommentNotice:!1,supportEmail:null,isMember:!1,isAdmin:!1,isPaidOnly:!1,hasRequiredTier:!0,isCommentingDisabled:!1}),a=k.createRef(),o=k.useMemo(()=>xb({siteUrl:n.siteUrl,apiUrl:n.apiUrl,apiKey:n.apiKey}),[n]),s=(0,k.useCallback)(e=>{i(t=>(typeof e==`function`&&(e=e(t)),{...t,...e}))},[i]),c=(0,k.useCallback)(async(e,t)=>{if(ix(e)){s(r=>ox({action:e,data:t,state:r,api:o,adminApi:r.adminApi,options:n}));return}return new Promise(r=>{s(i=>(ax({action:e,data:t,state:i,api:o,adminApi:i.adminApi,options:n,dispatchAction:c}).then(e=>{let t={...e};r(t),s(t)}).catch(console.error),{}))})},[o,n]),l=(0,k.useMemo)(()=>_b(n.locale,`comments`),[n.locale]),u={...n,...r,t:l.t,dispatchAction:c,openFormCount:(0,k.useMemo)(()=>r.openCommentForms.length,[r.openCommentForms])},d=async()=>{if(!(r.adminApi||!n.adminUrl))try{let e=sx({adminUrl:n.adminUrl}),i=null;try{if(i=await e.getUser(),(!i||!i.roles.some(e=>lx.includes(e.name)))&&(i=null),i){let a=await e.browse({page:1,postId:n.postId,order:r.order,memberUuid:r.member?.uuid});s(n=>n.pagination&&n.pagination.page>1||t?{adminApi:e,admin:i,isAdmin:!0}:{adminApi:e,admin:i,isAdmin:!0,comments:a.comments,pagination:a.meta.pagination})}}catch(e){console.warn(`[Comments] Failed to fetch admin endpoint:`,e)}s({adminApi:e,admin:i,isAdmin:!!i})}catch(e){console.error(`[Comments] Failed to initialize admin authentication:`,e)}},f=async(e=r.order)=>{let t=o.comments.browse({page:1,postId:n.postId,order:e}),i=o.comments.count({postId:n.postId}),[a,s]=await Promise.all([t,i]);return{comments:a.comments,pagination:a.meta.pagination,count:s}},h=async e=>{try{let t=(await o.comments.read(e)).comments?.[0];return t&&t.status===`published`?t:null}catch{return null}},g=async(e,t,i,a,s=r.order)=>{let c=i,l=a;for(;!dx(c,e)&&l.page<l.pages&&!(t&&c.some(e=>e.id===t));){let e=await o.comments.browse({page:l.page+1,postId:n.postId,order:s});c=[...c,...e.comments],l=e.meta.pagination}return{comments:c,pagination:l}},_=async(e,t,n,i,a=r.order)=>{let s=t.parent_id,{comments:c,pagination:l}=await g(e,s,n,i,a),u=c;if(s&&!dx(u,e)){let{comments:e}=await o.comments.replies({commentId:s,limit:`all`});u=u.map(t=>t.id===s?{...t,replies:e}:t)}return{comments:u,pagination:l,found:dx(u,e)}},v=async()=>{try{let{member:e,labs:r,supportEmail:i}=await o.init(),{count:a,comments:c,pagination:l}=await f(ux),u=ux,d=c,p=l,m=!1;if(t&&p){let e=await h(t);if(e){let n=await _(t,e,d,p,u);d=n.comments,p=n.pagination,m=n.found}}let g=!!e,v=n.commentsEnabled===`paid`,y=!!e?.paid||!v;s({member:e,initStatus:`success`,comments:d,pagination:p,commentCount:a,order:u,labs:r,commentsIsLoading:!1,commentIdToHighlight:null,commentIdToScrollTo:m?t:null,commentIdFromHash:m?t:null,showMissingCommentNotice:!!t&&!m,supportEmail:i,isMember:g,isPaidOnly:v,hasRequiredTier:y,isCommentingDisabled:e?.can_comment===!1})}catch(e){console.error(`[Comments] Failed to initialize:`,e),s({initStatus:`failed`})}};(0,k.useEffect)(()=>{if(t){v();return}let e=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&(v(),a.current&&e.unobserve(a.current))})},{root:null,rootMargin:`0px`,threshold:.1});return a.current&&e.observe(a.current),()=>{a.current&&e.unobserve(a.current)}},[a.current,t]);let y=r.initStatus===`success`;return(0,p.jsxs)(A.Provider,{value:u,children:[(0,p.jsx)(Y_,{ref:a,children:(0,p.jsx)(U_,{done:y})}),y&&n.adminUrl&&(0,p.jsx)(m,{adminUrl:n.adminUrl,onLoad:d}),(0,p.jsx)(iv,{})]})};function px(){let e=document.currentScript;if(!e)throw Error(`[Comments-UI] Cannot find current script tag`);return e}function mx(e){if(e.previousElementSibling&&e.previousElementSibling.id===`ghost-comments-root`)return e.previousElementSibling;if(!e.parentElement)throw Error(`[Comments-UI] Script tag does not have a parent element`);let t=document.createElement(`div`);return t.id=T_,e.parentElement.insertBefore(t,e),t}function hx(){let e=new URL(window.location.href);e.searchParams.get(`token`)&&(e.searchParams.delete(`token`),window.history.replaceState({},document.title,e.href))}function gx(){let e=px(),t=mx(e),n=y(window.location.hash);try{hx(),Od.render((0,p.jsx)(k.default.StrictMode,{children:(0,p.jsx)(fx,{initialCommentId:n,scriptTag:e})}),t)}catch(e){console.error(e)}}gx()});