Files
DevOps/Linux/LVM/Complete Beginner's Guide to LVM in Linux [With Hands-on]_files/comments-ui.min.js.download
2025-10-19 13:20:58 +02:00

156 lines
764 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(function(wt){typeof define=="function"&&define.amd?define(wt):wt()})(function(){"use strict";var eR=Object.defineProperty;var tR=(wt,Ze,Ln)=>Ze in wt?eR(wt,Ze,{enumerable:!0,configurable:!0,writable:!0,value:Ln}):wt[Ze]=Ln;var fr=(wt,Ze,Ln)=>tR(wt,typeof Ze!="symbol"?Ze+"":Ze,Ln);function wt(t,e){for(var n=0;n<e.length;n++){const o=e[n];if(typeof o!="string"&&!Array.isArray(o)){for(const r in o)if(r!=="default"&&!(r in t)){const s=Object.getOwnPropertyDescriptor(o,r);s&&Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>o[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function Ze(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ln={exports:{}},pr={};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var Im=Object.getOwnPropertySymbols,nb=Object.prototype.hasOwnProperty,ob=Object.prototype.propertyIsEnumerable;function rb(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function sb(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var o=Object.getOwnPropertyNames(e).map(function(s){return e[s]});if(o.join("")!=="0123456789")return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(s){r[s]=s}),Object.keys(Object.assign({},r)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var zm=sb()?Object.assign:function(t,e){for(var n,o=rb(t),r,s=1;s<arguments.length;s++){n=Object(arguments[s]);for(var i in n)nb.call(n,i)&&(o[i]=n[i]);if(Im){r=Im(n);for(var a=0;a<r.length;a++)ob.call(n,r[a])&&(o[r[a]]=n[r[a]])}}return o},Bm={exports:{}},K={};/** @license React v17.0.2
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Tl=zm,go=60103,Fm=60106;K.Fragment=60107,K.StrictMode=60108,K.Profiler=60114;var Hm=60109,Vm=60110,Um=60112;K.Suspense=60113;var _m=60115,Jm=60116;if(typeof Symbol=="function"&&Symbol.for){var ft=Symbol.for;go=ft("react.element"),Fm=ft("react.portal"),K.Fragment=ft("react.fragment"),K.StrictMode=ft("react.strict_mode"),K.Profiler=ft("react.profiler"),Hm=ft("react.provider"),Vm=ft("react.context"),Um=ft("react.forward_ref"),K.Suspense=ft("react.suspense"),_m=ft("react.memo"),Jm=ft("react.lazy")}var Ym=typeof Symbol=="function"&&Symbol.iterator;function ib(t){return t===null||typeof t!="object"?null:(t=Ym&&t[Ym]||t["@@iterator"],typeof t=="function"?t:null)}function hr(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Km={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Wm={};function yo(t,e,n){this.props=t,this.context=e,this.refs=Wm,this.updater=n||Km}yo.prototype.isReactComponent={},yo.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error(hr(85));this.updater.enqueueSetState(this,t,e,"setState")},yo.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function qm(){}qm.prototype=yo.prototype;function Ml(t,e,n){this.props=t,this.context=e,this.refs=Wm,this.updater=n||Km}var jl=Ml.prototype=new qm;jl.constructor=Ml,Tl(jl,yo.prototype),jl.isPureReactComponent=!0;var Pl={current:null},Gm=Object.prototype.hasOwnProperty,Qm={key:!0,ref:!0,__self:!0,__source:!0};function Zm(t,e,n){var o,r={},s=null,i=null;if(e!=null)for(o in e.ref!==void 0&&(i=e.ref),e.key!==void 0&&(s=""+e.key),e)Gm.call(e,o)&&!Qm.hasOwnProperty(o)&&(r[o]=e[o]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];r.children=l}if(t&&t.defaultProps)for(o in a=t.defaultProps,a)r[o]===void 0&&(r[o]=a[o]);return{$$typeof:go,type:t,key:s,ref:i,props:r,_owner:Pl.current}}function ab(t,e){return{$$typeof:go,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Ll(t){return typeof t=="object"&&t!==null&&t.$$typeof===go}function lb(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var Xm=/\/+/g;function Il(t,e){return typeof t=="object"&&t!==null&&t.key!=null?lb(""+t.key):e.toString(36)}function qs(t,e,n,o,r){var s=typeof t;(s==="undefined"||s==="boolean")&&(t=null);var i=!1;if(t===null)i=!0;else switch(s){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case go:case Fm:i=!0}}if(i)return i=t,r=r(i),t=o===""?"."+Il(i,0):o,Array.isArray(r)?(n="",t!=null&&(n=t.replace(Xm,"$&/")+"/"),qs(r,e,n,"",function(c){return c})):r!=null&&(Ll(r)&&(r=ab(r,n+(!r.key||i&&i.key===r.key?"":(""+r.key).replace(Xm,"$&/")+"/")+t)),e.push(r)),1;if(i=0,o=o===""?".":o+":",Array.isArray(t))for(var a=0;a<t.length;a++){s=t[a];var l=o+Il(s,a);i+=qs(s,e,n,l,r)}else if(l=ib(t),typeof l=="function")for(t=l.call(t),a=0;!(s=t.next()).done;)s=s.value,l=o+Il(s,a++),i+=qs(s,e,n,l,r);else if(s==="object")throw e=""+t,Error(hr(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e));return i}function Gs(t,e,n){if(t==null)return t;var o=[],r=0;return qs(t,o,"","",function(s){return e.call(n,s,r++)}),o}function cb(t){if(t._status===-1){var e=t._result;e=e(),t._status=0,t._result=e,e.then(function(n){t._status===0&&(n=n.default,t._status=1,t._result=n)},function(n){t._status===0&&(t._status=2,t._result=n)})}if(t._status===1)return t._result;throw t._result}var ef={current:null};function Tt(){var t=ef.current;if(t===null)throw Error(hr(321));return t}var ub={ReactCurrentDispatcher:ef,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:Pl,IsSomeRendererActing:{current:!1},assign:Tl};K.Children={map:Gs,forEach:function(t,e,n){Gs(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Gs(t,function(){e++}),e},toArray:function(t){return Gs(t,function(e){return e})||[]},only:function(t){if(!Ll(t))throw Error(hr(143));return t}},K.Component=yo,K.PureComponent=Ml,K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ub,K.cloneElement=function(t,e,n){if(t==null)throw Error(hr(267,t));var o=Tl({},t.props),r=t.key,s=t.ref,i=t._owner;if(e!=null){if(e.ref!==void 0&&(s=e.ref,i=Pl.current),e.key!==void 0&&(r=""+e.key),t.type&&t.type.defaultProps)var a=t.type.defaultProps;for(l in e)Gm.call(e,l)&&!Qm.hasOwnProperty(l)&&(o[l]=e[l]===void 0&&a!==void 0?a[l]:e[l])}var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];o.children=a}return{$$typeof:go,type:t.type,key:r,ref:s,props:o,_owner:i}},K.createContext=function(t,e){return e===void 0&&(e=null),t={$$typeof:Vm,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider={$$typeof:Hm,_context:t},t.Consumer=t},K.createElement=Zm,K.createFactory=function(t){var e=Zm.bind(null,t);return e.type=t,e},K.createRef=function(){return{current:null}},K.forwardRef=function(t){return{$$typeof:Um,render:t}},K.isValidElement=Ll,K.lazy=function(t){return{$$typeof:Jm,_payload:{_status:-1,_result:t},_init:cb}},K.memo=function(t,e){return{$$typeof:_m,type:t,compare:e===void 0?null:e}},K.useCallback=function(t,e){return Tt().useCallback(t,e)},K.useContext=function(t,e){return Tt().useContext(t,e)},K.useDebugValue=function(){},K.useEffect=function(t,e){return Tt().useEffect(t,e)},K.useImperativeHandle=function(t,e,n){return Tt().useImperativeHandle(t,e,n)},K.useLayoutEffect=function(t,e){return Tt().useLayoutEffect(t,e)},K.useMemo=function(t,e){return Tt().useMemo(t,e)},K.useReducer=function(t,e,n){return Tt().useReducer(t,e,n)},K.useRef=function(t){return Tt().useRef(t)},K.useState=function(t){return Tt().useState(t)},K.version="17.0.2",Bm.exports=K;var S=Bm.exports;const _=Ze(S),tf=wt({__proto__:null,default:_},[S]);/** @license React v17.0.2
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var db=S,nf=60103;if(pr.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var of=Symbol.for;nf=of("react.element"),pr.Fragment=of("react.fragment")}var mb=db.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,fb=Object.prototype.hasOwnProperty,pb={key:!0,ref:!0,__self:!0,__source:!0};function rf(t,e,n){var o,r={},s=null,i=null;n!==void 0&&(s=""+n),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(i=e.ref);for(o in e)fb.call(e,o)&&!pb.hasOwnProperty(o)&&(r[o]=e[o]);if(t&&t.defaultProps)for(o in e=t.defaultProps,e)r[o]===void 0&&(r[o]=e[o]);return{$$typeof:nf,type:t,key:s,ref:i,props:r,_owner:mb.current}}pr.jsx=rf,pr.jsxs=rf,Ln.exports=pr;var w=Ln.exports;const hb=({adminUrl:t,onLoad:e})=>{const n={display:"none"};return w.jsx("iframe",{"data-frame":"admin-auth",src:t+"auth-frame/",style:n,title:"auth-frame",onLoad:e})};var gb=function(t){return t instanceof RegExp},yb=function(e){var n=/[\\^$.*+?()[\]{}|]/g,o=RegExp(n.source);return e&&o.test(e)?e.replace(n,"\\$&"):e},sf=function(t){return typeof t=="string"},wb=function(t){var e=[];return t.forEach(function(n){Array.isArray(n)?e=e.concat(n):e.push(n)}),e};function bb(t,e,n){var o=0,r=0;if(t==="")return t;if(!t||!sf(t))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var s=e;gb(s)||(s=new RegExp("("+yb(s)+")","gi"));for(var i=t.split(s),a=1,l=i.length;a<l;a+=2){if(i[a]===void 0||i[a-1]===void 0){console.warn("reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.");continue}r=i[a].length,o+=i[a-1].length,i[a]=n(i[a],a,o),o+=r}return i}var $b=function(e,n,o){return Array.isArray(e)||(e=[e]),wb(e.map(function(r){return sf(r)?bb(r,n,o):r}))};const af=Ze($b),zl=_.createContext({});zl.Provider;const B=()=>S.useContext(zl),vb=()=>{const e=B().dispatchAction;return n=>{e("setOrder",{order:n})}},Sb=()=>{try{return B().labs||{}}catch{return{}}},lf=({isFirst:t,isPaid:e})=>{const{accentColor:n,publication:o,member:r,t:s,commentCount:i}=B(),a={backgroundColor:n},l={color:n},c=s(i===0?"Start the conversation":"Join the discussion"),u=()=>{window.location.href=e&&r?"#/portal/account/plans":"#/portal/signup"},d=()=>{window.location.href="#/portal/signin"},m=af(s(e?"Become a paid member of {publication} to start commenting.":"Become a member of {publication} to start commenting."),"{publication}",()=>w.jsx("span",{className:"font-semibold",children:o}));return w.jsxs(w.Fragment,{children:[w.jsx("h1",{className:`mb-[8px] text-center font-sans text-2xl tracking-tight text-black dark:text-[rgba(255,255,255,0.85)] ${t?"font-semibold":"font-bold"}`,children:c}),w.jsx("p",{className:"mb-[28px] w-full px-0 text-center font-sans text-lg leading-normal text-neutral-600 sm:max-w-screen-sm sm:px-8 dark:text-[rgba(255,255,255,0.85)]",children:m}),w.jsx("button",{className:"text-md mb-[12px] inline-block rounded px-5 py-[14px] font-sans font-medium leading-none text-white transition-all hover:opacity-90","data-testid":"signup-button",style:a,type:"button",onClick:u,children:s(e&&r?"Upgrade now":"Sign up now")}),!r&&w.jsxs("p",{className:"text-md text-center font-sans text-[rgba(0,0,0,0.4)] dark:text-[rgba(255,255,255,0.5)]",children:[w.jsx("span",{className:"mr-1 inline-block text-[15px]",children:s("Already a member?")}),w.jsx("button",{className:"rounded-md text-sm font-semibold transition-all hover:opacity-90","data-testid":"signin-button",style:l,type:"button",onClick:d,children:s("Sign in")})]})]})},cf=t=>S.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},S.createElement("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 xb(t,e){return t.find(n=>(n==null?void 0:n.id)===e)||t.flatMap(n=>n.replies||[]).find(n=>(n==null?void 0:n.id)===e)}function Qs(t){return t!==0&&!t?"":t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function kb(t,e){const n=new Date(t),o=new Date;if(isNaN(n.getTime()))return e("Just now");const r=Math.round((o.getTime()-n.getTime())/1e3);if(r<60)return e("Just now");const s=Math.round(r/60);if(s===1)return e("One min ago");if(s<60)return e("{amount} mins ago",{amount:s});const i=Math.round(s/60);if(i===1)return e("One hour ago");const a=new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate())),l=new Date(Date.UTC(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate())),c=Math.floor((l.getTime()-a.getTime())/(1e3*60*60*24));if(c===1)return e("Yesterday");if(c>1){const u=n.getDate(),d=n.toLocaleString("en-us",{month:"short"});return n.getFullYear()!==o.getFullYear()?`${u} ${d} ${n.getFullYear()}`:`${u} ${d}`}return e("{amount} hrs ago",{amount:i})}function Eb(t){const e=new Date(t),n=e.toLocaleDateString("en-us",{day:"2-digit"}),o=e.toLocaleString("en-us",{month:"short"}),r=e.getFullYear(),s=(e.getHours()<10?"0":"")+e.getHours(),i=(e.getMinutes()<10?"0":"")+e.getMinutes();return`${n} ${o} ${r} ${s}:${i}`}function Cb(t){if(!t)return"";const e=t.split(" ");return e.length===0?"":e.length===1?e[0].substring(0,1).toLocaleUpperCase():e[0].substring(0,1).toLocaleUpperCase()+e[e.length-1].substring(0,1).toLocaleUpperCase()}function uf(t,e){return t?t.name?t.name:e("Anonymous"):e("Deleted member")}function Nb(t,e){return uf(t.member,e)}function Zs(){return Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<480}const Ab=t=>{let e=0,n=t.ownerDocument.defaultView;for(;n&&n!==window;){const r=n.parent;for(let s=0;s<r.frames.length;s++)if(r.frames[s]===n){for(const i of r.document.getElementsByTagName("iframe"))if(i.contentWindow===n){const a=i.getBoundingClientRect();e+=a.top+n.pageYOffset}n=r;break}}return t.getBoundingClientRect().top+window.pageYOffset+e},df=t=>{const e=t.offsetHeight,n=Ab(t),o=n+e,r=64,s=window.innerHeight,i=window.scrollY,a=i+s;if(n-r<i||o+r>a){const l=(n+o)/2;window.scrollTo({top:l-s/2,left:0,behavior:"smooth"})}};function Db(t){const{html:e=""}=t,n=document.createElement("div");n.innerHTML=e,n.querySelectorAll("script, style, link, meta, noscript, title").forEach(r=>r.remove()),n.querySelectorAll("blockquote").forEach(r=>r.remove());let o=n.textContent||"";return o=o.replace(`
`," "),o=o.replace(/\s+/g," "),o=o.trim(),o.substring(0,100)}function mf(){return"w-8 h-8"}const ff=()=>{const t=mf();return w.jsx("figure",{className:`relative ${t}`,"data-testid":"blank-avatar",children:w.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 ${t}`,children:w.jsx(cf,{className:"h-7 w-7 opacity-80"})})})},Bl=({member:t})=>{const{avatarSaturation:e,t:n}=B(),o=mf(),r=uf(t,n),s=f=>{let p=0;for(let g=0;g<f.length;g++)p=f.charCodeAt(g)+((p<<5)-p);return p=Math.abs(p),p},i=(f,p,g)=>Math.floor(f%(g-p)+p),a=()=>{if(!r)return[0,0,10];const f=e===void 0||isNaN(e)?50:e,p=[0,360],g=Math.round(f/(100/30))+30,y=[g-20,g],b=s(r),$=i(b,p[0],p[1]),v=i(b,y[0],y[1]);return[$,f,v]},l=f=>`hsl(${f[0]}, ${f[1]}%, ${f[2]}%)`,c=Cb(r),d={background:l(a())},m=w.jsxs(w.Fragment,{children:[r?w.jsx("div",{className:`flex items-center justify-center rounded-full ${o}`,"data-testid":"avatar-background",style:d,children:w.jsx("p",{className:"font-sans text-base font-semibold text-white",children:c})}):w.jsx("div",{className:`flex items-center justify-center rounded-full bg-neutral-900 dark:bg-white/70 ${o}`,"data-testid":"avatar-background",children:w.jsx(cf,{className:"stroke-white dark:stroke-black/60"})}),(t==null?void 0:t.avatar_image)&&w.jsx("img",{alt:"Avatar",className:`absolute left-0 top-0 rounded-full ${o}`,"data-testid":"avatar-image",src:t.avatar_image})]});return t?w.jsx("figure",{className:`relative ${o}`,"data-testid":"avatar",children:m}):w.jsx(ff,{})},Rb=t=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",...t},S.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",strokeLinejoin:"round",className:"nc-icon-wrapper"},S.createElement("polygon",{points:"7 21 2 22 3 17 18 2 22 6 7 21"})));function $e(t){this.content=t}$e.prototype={constructor:$e,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var o=n&&n!=t?this.remove(n):this,r=o.find(t),s=o.content.slice();return r==-1?s.push(n||t,e):(s[r+1]=e,n&&(s[r]=n)),new $e(s)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new $e(n)},addToStart:function(t,e){return new $e([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new $e(n)},addBefore:function(t,e,n){var o=this.remove(e),r=o.content.slice(),s=o.find(t);return r.splice(s==-1?r.length:s,0,e,n),new $e(r)},forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=$e.from(t),t.size?new $e(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=$e.from(t),t.size?new $e(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=$e.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}},$e.from=function(t){if(t instanceof $e)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new $e(e)};function pf(t,e,n){for(let o=0;;o++){if(o==t.childCount||o==e.childCount)return t.childCount==e.childCount?null:n;let r=t.child(o),s=e.child(o);if(r==s){n+=r.nodeSize;continue}if(!r.sameMarkup(s))return n;if(r.isText&&r.text!=s.text){for(let i=0;r.text[i]==s.text[i];i++)n++;return n}if(r.content.size||s.content.size){let i=pf(r.content,s.content,n+1);if(i!=null)return i}n+=r.nodeSize}}function hf(t,e,n,o){for(let r=t.childCount,s=e.childCount;;){if(r==0||s==0)return r==s?null:{a:n,b:o};let i=t.child(--r),a=e.child(--s),l=i.nodeSize;if(i==a){n-=l,o-=l;continue}if(!i.sameMarkup(a))return{a:n,b:o};if(i.isText&&i.text!=a.text){let c=0,u=Math.min(i.text.length,a.text.length);for(;c<u&&i.text[i.text.length-c-1]==a.text[a.text.length-c-1];)c++,n--,o--;return{a:n,b:o}}if(i.content.size||a.content.size){let c=hf(i.content,a.content,n-1,o-1);if(c)return c}n-=l,o-=l}}class N{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let o=0;o<e.length;o++)this.size+=e[o].nodeSize}nodesBetween(e,n,o,r=0,s){for(let i=0,a=0;a<n;i++){let l=this.content[i],c=a+l.nodeSize;if(c>e&&o(l,r+a,s||null,i)!==!1&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,n-u),o,r+u)}a=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,o,r){let s="",i=!0;return this.nodesBetween(e,n,(a,l)=>{let c=a.isText?a.text.slice(Math.max(e,l)-l,n-l):a.isLeaf?r?typeof r=="function"?r(a):r:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&c||a.isTextblock)&&o&&(i?i=!1:s+=o),s+=c},0),s}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,o=e.firstChild,r=this.content.slice(),s=0;for(n.isText&&n.sameMarkup(o)&&(r[r.length-1]=n.withText(n.text+o.text),s=1);s<e.content.length;s++)r.push(e.content[s]);return new N(r,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let o=[],r=0;if(n>e)for(let s=0,i=0;i<n;s++){let a=this.content[s],l=i+a.nodeSize;l>e&&((i<e||l>n)&&(a.isText?a=a.cut(Math.max(0,e-i),Math.min(a.text.length,n-i)):a=a.cut(Math.max(0,e-i-1),Math.min(a.content.size,n-i-1))),o.push(a),r+=a.nodeSize),i=l}return new N(o,r)}cutByIndex(e,n){return e==n?N.empty:e==0&&n==this.content.length?this:new N(this.content.slice(e,n))}replaceChild(e,n){let o=this.content[e];if(o==n)return this;let r=this.content.slice(),s=this.size+n.nodeSize-o.nodeSize;return r[e]=n,new N(r,s)}addToStart(e){return new N([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new N(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))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 n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,o=0;n<this.content.length;n++){let r=this.content[n];e(r,o,n),o+=r.nodeSize}}findDiffStart(e,n=0){return pf(this,e,n)}findDiffEnd(e,n=this.size,o=e.size){return hf(this,e,n,o)}findIndex(e,n=-1){if(e==0)return Xs(0,e);if(e==this.size)return Xs(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let o=0,r=0;;o++){let s=this.child(o),i=r+s.nodeSize;if(i>=e)return i==e||n>0?Xs(o+1,i):Xs(o,r);r=i}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return N.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new N(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return N.empty;let n,o=0;for(let r=0;r<e.length;r++){let s=e[r];o+=s.nodeSize,r&&s.isText&&e[r-1].sameMarkup(s)?(n||(n=e.slice(0,r)),n[n.length-1]=s.withText(n[n.length-1].text+s.text)):n&&n.push(s)}return new N(n||e,o)}static from(e){if(!e)return N.empty;if(e instanceof N)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new N([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}N.empty=new N([],0);const Fl={index:0,offset:0};function Xs(t,e){return Fl.index=t,Fl.offset=e,Fl}function ei(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let o=0;o<t.length;o++)if(!ei(t[o],e[o]))return!1}else{for(let o in t)if(!(o in e)||!ei(t[o],e[o]))return!1;for(let o in e)if(!(o in t))return!1}return!0}let q=class jm{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,o=!1;for(let r=0;r<e.length;r++){let s=e[r];if(this.eq(s))return e;if(this.type.excludes(s.type))n||(n=e.slice(0,r));else{if(s.type.excludes(this.type))return e;!o&&s.type.rank>this.type.rank&&(n||(n=e.slice(0,r)),n.push(this),o=!0),n&&n.push(s)}}return n||(n=e.slice()),o||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&ei(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let o=e.marks[n.type];if(!o)throw new RangeError(`There is no mark type ${n.type} in this schema`);let r=o.create(n.attrs);return o.checkAttrs(r.attrs),r}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let o=0;o<e.length;o++)if(!e[o].eq(n[o]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return jm.none;if(e instanceof jm)return[e];let n=e.slice();return n.sort((o,r)=>o.type.rank-r.type.rank),n}};q.none=[];class ti extends Error{}class T{constructor(e,n,o){this.content=e,this.openStart=n,this.openEnd=o}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let o=yf(this.content,e+this.openStart,n);return o&&new T(o,this.openStart,this.openEnd)}removeBetween(e,n){return new T(gf(this.content,e+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(e,n){if(!n)return T.empty;let o=n.openStart||0,r=n.openEnd||0;if(typeof o!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new T(N.fromJSON(e,n.content),o,r)}static maxOpen(e,n=!0){let o=0,r=0;for(let s=e.firstChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.firstChild)o++;for(let s=e.lastChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.lastChild)r++;return new T(e,o,r)}}T.empty=new T(N.empty,0,0);function gf(t,e,n){let{index:o,offset:r}=t.findIndex(e),s=t.maybeChild(o),{index:i,offset:a}=t.findIndex(n);if(r==e||s.isText){if(a!=n&&!t.child(i).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(o!=i)throw new RangeError("Removing non-flat range");return t.replaceChild(o,s.copy(gf(s.content,e-r-1,n-r-1)))}function yf(t,e,n,o){let{index:r,offset:s}=t.findIndex(e),i=t.maybeChild(r);if(s==e||i.isText)return t.cut(0,e).append(n).append(t.cut(e));let a=yf(i.content,e-s-1,n);return a&&t.replaceChild(r,i.copy(a))}function Ob(t,e,n){if(n.openStart>t.depth)throw new ti("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new ti("Inconsistent open depths");return wf(t,e,n,0)}function wf(t,e,n,o){let r=t.index(o),s=t.node(o);if(r==e.index(o)&&o<t.depth-n.openStart){let i=wf(t,e,n,o+1);return s.copy(s.content.replaceChild(r,i))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==o&&e.depth==o){let i=t.parent,a=i.content;return zn(i,a.cut(0,t.parentOffset).append(n.content).append(a.cut(e.parentOffset)))}else{let{start:i,end:a}=Tb(n,t);return zn(s,$f(t,i,a,e,o))}else return zn(s,ni(t,e,o))}function bf(t,e){if(!e.type.compatibleContent(t.type))throw new ti("Cannot join "+e.type.name+" onto "+t.type.name)}function Hl(t,e,n){let o=t.node(n);return bf(o,e.node(n)),o}function In(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function gr(t,e,n,o){let r=(e||t).node(n),s=0,i=e?e.index(n):r.childCount;t&&(s=t.index(n),t.depth>n?s++:t.textOffset&&(In(t.nodeAfter,o),s++));for(let a=s;a<i;a++)In(r.child(a),o);e&&e.depth==n&&e.textOffset&&In(e.nodeBefore,o)}function zn(t,e){return t.type.checkContent(e),t.copy(e)}function $f(t,e,n,o,r){let s=t.depth>r&&Hl(t,e,r+1),i=o.depth>r&&Hl(n,o,r+1),a=[];return gr(null,t,r,a),s&&i&&e.index(r)==n.index(r)?(bf(s,i),In(zn(s,$f(t,e,n,o,r+1)),a)):(s&&In(zn(s,ni(t,e,r+1)),a),gr(e,n,r,a),i&&In(zn(i,ni(n,o,r+1)),a)),gr(o,null,r,a),new N(a)}function ni(t,e,n){let o=[];if(gr(null,t,n,o),t.depth>n){let r=Hl(t,e,n+1);In(zn(r,ni(t,e,n+1)),o)}return gr(e,null,n,o),new N(o)}function Tb(t,e){let n=e.depth-t.openStart,r=e.node(n).copy(t.content);for(let s=n-1;s>=0;s--)r=e.node(s).copy(N.from(r));return{start:r.resolveNoCache(t.openStart+n),end:r.resolveNoCache(r.content.size-t.openEnd-n)}}class yr{constructor(e,n,o){this.pos=e,this.path=n,this.parentOffset=o,this.depth=n.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 new 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 new 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,n=this.index(this.depth);if(n==e.childCount)return null;let o=this.pos-this.path[this.path.length-1],r=e.child(n);return o?e.child(n).cut(o):r}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let o=this.path[n*3],r=n==0?0:this.path[n*3-1]+1;for(let s=0;s<e;s++)r+=o.child(s).nodeSize;return r}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return q.none;if(this.textOffset)return e.child(n).marks;let o=e.maybeChild(n-1),r=e.maybeChild(n);if(!o){let a=o;o=r,r=a}let s=o.marks;for(var i=0;i<s.length;i++)s[i].type.spec.inclusive===!1&&(!r||!s[i].isInSet(r.marks))&&(s=s[i--].removeFromSet(s));return s}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let o=n.marks,r=e.parent.maybeChild(e.index());for(var s=0;s<o.length;s++)o[s].type.spec.inclusive===!1&&(!r||!o[s].isInSet(r.marks))&&(o=o[s--].removeFromSet(o));return o}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let o=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);o>=0;o--)if(e.pos<=this.end(o)&&(!n||n(this.node(o))))return new oi(this,e,o);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 n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let o=[],r=0,s=n;for(let i=e;;){let{index:a,offset:l}=i.content.findIndex(s),c=s-l;if(o.push(i,a,r+l),!c||(i=i.child(a),i.isText))break;s=c-1,r+=l+1}return new yr(n,o,s)}static resolveCached(e,n){let o=vf.get(e);if(o)for(let s=0;s<o.elts.length;s++){let i=o.elts[s];if(i.pos==n)return i}else vf.set(e,o=new Mb);let r=o.elts[o.i]=yr.resolve(e,n);return o.i=(o.i+1)%jb,r}}class Mb{constructor(){this.elts=[],this.i=0}}const jb=12,vf=new WeakMap;class oi{constructor(e,n,o){this.$from=e,this.$to=n,this.depth=o}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)}}const Pb=Object.create(null);let qt=class Pm{constructor(e,n,o,r=q.none){this.type=e,this.attrs=n,this.marks=r,this.content=o||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,n,o,r=0){this.content.nodesBetween(e,n,o,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,n,o,r){return this.content.textBetween(e,n,o,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,n,o){return this.type==e&&ei(this.attrs,n||e.defaultAttrs||Pb)&&q.sameSet(this.marks,o||q.none)}copy(e=null){return e==this.content?this:new Pm(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Pm(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,o=!1){if(e==n)return T.empty;let r=this.resolve(e),s=this.resolve(n),i=o?0:r.sharedDepth(n),a=r.start(i),c=r.node(i).content.cut(r.pos-a,s.pos-a);return new T(c,r.depth-i,s.depth-i)}replace(e,n,o){return Ob(this.resolve(e),this.resolve(n),o)}nodeAt(e){for(let n=this;;){let{index:o,offset:r}=n.content.findIndex(e);if(n=n.maybeChild(o),!n)return null;if(r==e||n.isText)return n;e-=r+1}}childAfter(e){let{index:n,offset:o}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:o}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:o}=this.content.findIndex(e);if(o<e)return{node:this.content.child(n),index:n,offset:o};let r=this.content.child(n-1);return{node:r,index:n-1,offset:o-r.nodeSize}}resolve(e){return yr.resolveCached(this,e)}resolveNoCache(e){return yr.resolve(this,e)}rangeHasMark(e,n,o){let r=!1;return n>e&&this.nodesBetween(e,n,s=>(o.isInSet(s.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()+")"),Sf(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,o=N.empty,r=0,s=o.childCount){let i=this.contentMatchAt(e).matchFragment(o,r,s),a=i&&i.matchFragment(this.content,n);if(!a||!a.validEnd)return!1;for(let l=r;l<s;l++)if(!this.type.allowsMarks(o.child(l).marks))return!1;return!0}canReplaceWith(e,n,o,r){if(r&&!this.type.allowsMarks(r))return!1;let s=this.contentMatchAt(e).matchType(o),i=s&&s.matchFragment(this.content,n);return i?i.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=q.none;for(let n=0;n<this.marks.length;n++){let o=this.marks[n];o.type.checkAttrs(o.attrs),e=o.addToSet(e)}if(!q.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n 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(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let o;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");o=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,o)}let r=N.fromJSON(e,n.content),s=e.nodeType(n.type).create(n.attrs,r,o);return s.type.checkAttrs(s.attrs),s}};qt.prototype.text=void 0;class ri extends qt{constructor(e,n,o,r){if(super(e,n,null,r),!o)throw new RangeError("Empty text nodes are not allowed");this.text=o}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Sf(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new ri(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new ri(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function Sf(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Bn{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let o=new Lb(e,n);if(o.next==null)return Bn.empty;let r=xf(o);o.next&&o.err("Unexpected trailing text");let s=Ub(Vb(r));return _b(s,o),s}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,o=e.childCount){let r=this;for(let s=n;r&&s<o;s++)r=r.matchType(e.child(s).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:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let o=0;o<e.next.length;o++)if(this.next[n].type==e.next[o].type)return!0;return!1}fillBefore(e,n=!1,o=0){let r=[this];function s(i,a){let l=i.matchFragment(e,o);if(l&&(!n||l.validEnd))return N.from(a.map(c=>c.createAndFill()));for(let c=0;c<i.next.length;c++){let{type:u,next:d}=i.next[c];if(!(u.isText||u.hasRequiredAttrs())&&r.indexOf(d)==-1){r.push(d);let m=s(d,a.concat(u));if(m)return m}}return null}return s(this,[])}findWrapping(e){for(let o=0;o<this.wrapCache.length;o+=2)if(this.wrapCache[o]==e)return this.wrapCache[o+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),o=[{match:this,type:null,via:null}];for(;o.length;){let r=o.shift(),s=r.match;if(s.matchType(e)){let i=[];for(let a=r;a.type;a=a.via)i.push(a.type);return i.reverse()}for(let i=0;i<s.next.length;i++){let{type:a,next:l}=s.next[i];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in n)&&(!r.type||l.validEnd)&&(o.push({match:a.contentMatch,type:a,via:r}),n[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(o){e.push(o);for(let r=0;r<o.next.length;r++)e.indexOf(o.next[r].next)==-1&&n(o.next[r].next)}return n(this),e.map((o,r)=>{let s=r+(o.validEnd?"*":" ")+" ";for(let i=0;i<o.next.length;i++)s+=(i?", ":"")+o.next[i].type.name+"->"+e.indexOf(o.next[i].next);return s}).join(`
`)}}Bn.empty=new Bn(!0);class Lb{constructor(e,n){this.string=e,this.nodeTypes=n,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 new SyntaxError(e+" (in content expression '"+this.string+"')")}}function xf(t){let e=[];do e.push(Ib(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function Ib(t){let e=[];do e.push(zb(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function zb(t){let e=Hb(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=Bb(t,e);else break;return e}function kf(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function Bb(t,e){let n=kf(t),o=n;return t.eat(",")&&(t.next!="}"?o=kf(t):o=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:o,expr:e}}function Fb(t,e){let n=t.nodeTypes,o=n[e];if(o)return[o];let r=[];for(let s in n){let i=n[s];i.isInGroup(e)&&r.push(i)}return r.length==0&&t.err("No node type or group '"+e+"' found"),r}function Hb(t){if(t.eat("(")){let e=xf(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=Fb(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function Vb(t){let e=[[]];return r(s(t,0),n()),e;function n(){return e.push([])-1}function o(i,a,l){let c={term:l,to:a};return e[i].push(c),c}function r(i,a){i.forEach(l=>l.to=a)}function s(i,a){if(i.type=="choice")return i.exprs.reduce((l,c)=>l.concat(s(c,a)),[]);if(i.type=="seq")for(let l=0;;l++){let c=s(i.exprs[l],a);if(l==i.exprs.length-1)return c;r(c,a=n())}else if(i.type=="star"){let l=n();return o(a,l),r(s(i.expr,l),l),[o(l)]}else if(i.type=="plus"){let l=n();return r(s(i.expr,a),l),r(s(i.expr,l),l),[o(l)]}else{if(i.type=="opt")return[o(a)].concat(s(i.expr,a));if(i.type=="range"){let l=a;for(let c=0;c<i.min;c++){let u=n();r(s(i.expr,l),u),l=u}if(i.max==-1)r(s(i.expr,l),l);else for(let c=i.min;c<i.max;c++){let u=n();o(l,u),r(s(i.expr,l),u),l=u}return[o(l)]}else{if(i.type=="name")return[o(a,void 0,i.value)];throw new Error("Unknown expr type")}}}}function Ef(t,e){return e-t}function Cf(t,e){let n=[];return o(e),n.sort(Ef);function o(r){let s=t[r];if(s.length==1&&!s[0].term)return o(s[0].to);n.push(r);for(let i=0;i<s.length;i++){let{term:a,to:l}=s[i];!a&&n.indexOf(l)==-1&&o(l)}}}function Ub(t){let e=Object.create(null);return n(Cf(t,0));function n(o){let r=[];o.forEach(i=>{t[i].forEach(({term:a,to:l})=>{if(!a)return;let c;for(let u=0;u<r.length;u++)r[u][0]==a&&(c=r[u][1]);Cf(t,l).forEach(u=>{c||r.push([a,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let s=e[o.join(",")]=new Bn(o.indexOf(t.length-1)>-1);for(let i=0;i<r.length;i++){let a=r[i][1].sort(Ef);s.next.push({type:r[i][0],next:e[a.join(",")]||n(a)})}return s}}function _b(t,e){for(let n=0,o=[t];n<o.length;n++){let r=o[n],s=!r.validEnd,i=[];for(let a=0;a<r.next.length;a++){let{type:l,next:c}=r.next[a];i.push(l.name),s&&!(l.isText||l.hasRequiredAttrs())&&(s=!1),o.indexOf(c)==-1&&o.push(c)}s&&e.err("Only non-generatable nodes ("+i.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Nf(t){let e=Object.create(null);for(let n in t){let o=t[n];if(!o.hasDefault)return null;e[n]=o.default}return e}function Af(t,e){let n=Object.create(null);for(let o in t){let r=e&&e[o];if(r===void 0){let s=t[o];if(s.hasDefault)r=s.default;else throw new RangeError("No value supplied for attribute "+o)}n[o]=r}return n}function Df(t,e,n,o){for(let r in e)if(!(r in t))throw new RangeError(`Unsupported attribute ${r} for ${n} of type ${r}`);for(let r in t){let s=t[r];s.validate&&s.validate(e[r])}}function Rf(t,e){let n=Object.create(null);if(e)for(let o in e)n[o]=new Yb(t,o,e[o]);return n}let Of=class tb{constructor(e,n,o){this.name=e,this.schema=n,this.spec=o,this.markSet=null,this.groups=o.group?o.group.split(" "):[],this.attrs=Rf(e,o.attrs),this.defaultAttrs=Nf(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(o.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Bn.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:Af(this.attrs,e)}create(e=null,n,o){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new qt(this,this.computeAttrs(e),N.from(n),q.setFrom(o))}createChecked(e=null,n,o){return n=N.from(n),this.checkContent(n),new qt(this,this.computeAttrs(e),n,q.setFrom(o))}createAndFill(e=null,n,o){if(e=this.computeAttrs(e),n=N.from(n),n.size){let i=this.contentMatch.fillBefore(n);if(!i)return null;n=i.append(n)}let r=this.contentMatch.matchFragment(n),s=r&&r.fillBefore(N.empty,!0);return s?new qt(this,e,n.append(s),q.setFrom(o)):null}validContent(e){let n=this.contentMatch.matchFragment(e);if(!n||!n.validEnd)return!1;for(let o=0;o<e.childCount;o++)if(!this.allowsMarks(e.child(o).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){Df(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 n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let o=0;o<e.length;o++)this.allowsMarkType(e[o].type)?n&&n.push(e[o]):n||(n=e.slice(0,o));return n?n.length?n:q.none:e}static compile(e,n){let o=Object.create(null);e.forEach((s,i)=>o[s]=new tb(s,n,i));let r=n.spec.topNode||"doc";if(!o[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!o.text)throw new RangeError("Every schema needs a 'text' type");for(let s in o.text.attrs)throw new RangeError("The text node type should not have attributes");return o}};function Jb(t,e,n){let o=n.split("|");return r=>{let s=r===null?"null":typeof r;if(o.indexOf(s)<0)throw new RangeError(`Expected value of type ${o} for attribute ${e} on type ${t}, got ${s}`)}}class Yb{constructor(e,n,o){this.hasDefault=Object.prototype.hasOwnProperty.call(o,"default"),this.default=o.default,this.validate=typeof o.validate=="string"?Jb(e,n,o.validate):o.validate}get isRequired(){return!this.hasDefault}}class si{constructor(e,n,o,r){this.name=e,this.rank=n,this.schema=o,this.spec=r,this.attrs=Rf(e,r.attrs),this.excluded=null;let s=Nf(this.attrs);this.instance=s?new q(this,s):null}create(e=null){return!e&&this.instance?this.instance:new q(this,Af(this.attrs,e))}static compile(e,n){let o=Object.create(null),r=0;return e.forEach((s,i)=>o[s]=new si(s,r++,n,i)),o}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){Df(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class Tf{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let r in e)n[r]=e[r];n.nodes=$e.from(e.nodes),n.marks=$e.from(e.marks||{}),this.nodes=Of.compile(this.spec.nodes,this),this.marks=si.compile(this.spec.marks,this);let o=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let s=this.nodes[r],i=s.spec.content||"",a=s.spec.marks;if(s.contentMatch=o[i]||(o[i]=Bn.parse(i,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!s.isInline||!s.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=s}s.markSet=a=="_"?null:a?Mf(this,a.split(" ")):a==""||!s.inlineContent?[]:null}for(let r in this.marks){let s=this.marks[r],i=s.spec.excludes;s.excluded=i==null?[s]:i==""?[]:Mf(this,i.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,o,r){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Of){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,o,r)}text(e,n){let o=this.nodes.text;return new ri(o,o.defaultAttrs,e,q.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeFromJSON(e){return qt.fromJSON(this,e)}markFromJSON(e){return q.fromJSON(this,e)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function Mf(t,e){let n=[];for(let o=0;o<e.length;o++){let r=e[o],s=t.marks[r],i=s;if(s)n.push(s);else for(let a in t.marks){let l=t.marks[a];(r=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(r)>-1)&&n.push(i=l)}if(!i)throw new SyntaxError("Unknown mark type: '"+e[o]+"'")}return n}function Kb(t){return t.tag!=null}function Wb(t){return t.style!=null}let wr=class Lm{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let o=this.matchedStyles=[];n.forEach(r=>{if(Kb(r))this.tags.push(r);else if(Wb(r)){let s=/[^=]*/.exec(r.style)[0];o.indexOf(s)<0&&o.push(s),this.styles.push(r)}}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let s=e.nodes[r.node];return s.contentMatch.matchType(s)})}parse(e,n={}){let o=new If(this,n,!1);return o.addAll(e,q.none,n.from,n.to),o.finish()}parseSlice(e,n={}){let o=new If(this,n,!0);return o.addAll(e,q.none,n.from,n.to),T.maxOpen(o.finish())}matchTag(e,n,o){for(let r=o?this.tags.indexOf(o)+1:0;r<this.tags.length;r++){let s=this.tags[r];if(Qb(e,s.tag)&&(s.namespace===void 0||e.namespaceURI==s.namespace)&&(!s.context||n.matchesContext(s.context))){if(s.getAttrs){let i=s.getAttrs(e);if(i===!1)continue;s.attrs=i||void 0}return s}}}matchStyle(e,n,o,r){for(let s=r?this.styles.indexOf(r)+1:0;s<this.styles.length;s++){let i=this.styles[s],a=i.style;if(!(a.indexOf(e)!=0||i.context&&!o.matchesContext(i.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=n))){if(i.getAttrs){let l=i.getAttrs(n);if(l===!1)continue;i.attrs=l||void 0}return i}}}static schemaRules(e){let n=[];function o(r){let s=r.priority==null?50:r.priority,i=0;for(;i<n.length;i++){let a=n[i];if((a.priority==null?50:a.priority)<s)break}n.splice(i,0,r)}for(let r in e.marks){let s=e.marks[r].spec.parseDOM;s&&s.forEach(i=>{o(i=zf(i)),i.mark||i.ignore||i.clearMark||(i.mark=r)})}for(let r in e.nodes){let s=e.nodes[r].spec.parseDOM;s&&s.forEach(i=>{o(i=zf(i)),i.node||i.ignore||i.mark||(i.node=r)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Lm(e,Lm.schemaRules(e)))}};const jf={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},qb={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Pf={ol:!0,ul:!0},br=1,Vl=2,$r=4;function Lf(t,e,n){return e!=null?(e?br:0)|(e==="full"?Vl:0):t&&t.whitespace=="pre"?br|Vl:n&~$r}class ii{constructor(e,n,o,r,s,i){this.type=e,this.attrs=n,this.marks=o,this.solid=r,this.options=i,this.content=[],this.activeMarks=q.none,this.match=s||(i&$r?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(N.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let o=this.type.contentMatch,r;return(r=o.findWrapping(e.type))?(this.match=o,r):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&br)){let o=this.content[this.content.length-1],r;if(o&&o.isText&&(r=/[ \t\r\n\u000c]+$/.exec(o.text))){let s=o;o.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-r[0].length))}}let n=N.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(N.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!jf.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class If{constructor(e,n,o){this.parser=e,this.options=n,this.isOpen=o,this.open=0,this.localPreserveWS=!1;let r=n.topNode,s,i=Lf(null,n.preserveWhitespace,0)|(o?$r:0);r?s=new ii(r.type,r.attrs,q.none,!0,n.topMatch||r.type.contentMatch,i):o?s=new ii(null,null,q.none,!0,null,i):s=new ii(e.schema.topNodeType,null,q.none,!0,null,i),this.nodes=[s],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let o=e.nodeValue,r=this.top,s=r.options&Vl?"full":this.localPreserveWS||(r.options&br)>0;if(s==="full"||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(o)){if(s)s!=="full"?o=o.replace(/\r?\n|\r/g," "):o=o.replace(/\r\n?/g,`
`);else if(o=o.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(o)&&this.open==this.nodes.length-1){let i=r.content[r.content.length-1],a=e.previousSibling;(!i||a&&a.nodeName=="BR"||i.isText&&/[ \t\r\n\u000c]$/.test(i.text))&&(o=o.slice(1))}o&&this.insertNode(this.parser.schema.text(o),n),this.findInText(e)}else this.findInside(e)}addElement(e,n,o){let r=this.localPreserveWS,s=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let i=e.nodeName.toLowerCase(),a;Pf.hasOwnProperty(i)&&this.parser.normalizeLists&&Gb(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,o));e:if(l?l.ignore:qb.hasOwnProperty(i))this.findInside(e),this.ignoreFallback(e,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let c,u=this.needsBlock;if(jf.hasOwnProperty(i))s.content.length&&s.content[0].isInline&&this.open&&(this.open--,s=this.top),c=!0,s.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let d=l&&l.skip?n:this.readStyles(e,n);d&&this.addAll(e,d),c&&this.sync(s),this.needsBlock=u}else{let c=this.readStyles(e,n);c&&this.addElementByRule(e,l,c,l.consuming===!1?a:void 0)}this.localPreserveWS=r}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n)}readStyles(e,n){let o=e.style;if(o&&o.length)for(let r=0;r<this.parser.matchedStyles.length;r++){let s=this.parser.matchedStyles[r],i=o.getPropertyValue(s);if(i)for(let a=void 0;;){let l=this.parser.matchStyle(s,i,this,a);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(c=>!l.clearMark(c)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)a=l;else break}}return n}addElementByRule(e,n,o,r){let s,i;if(n.node)if(i=this.parser.schema.nodes[n.node],i.isLeaf)this.insertNode(i.create(n.attrs),o)||this.leafFallback(e,o);else{let l=this.enter(i,n.attrs||null,o,n.preserveWhitespace);l&&(s=!0,o=l)}else{let l=this.parser.schema.marks[n.mark];o=o.concat(l.create(n.attrs))}let a=this.top;if(i&&i.isLeaf)this.findInside(e);else if(r)this.addElement(e,o,r);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,o));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l,o),this.findAround(e,l,!1)}s&&this.sync(a)&&this.open--}addAll(e,n,o,r){let s=o||0;for(let i=o?e.childNodes[o]:e.firstChild,a=r==null?null:e.childNodes[r];i!=a;i=i.nextSibling,++s)this.findAtPoint(e,s),this.addDOM(i,n);this.findAtPoint(e,s)}findPlace(e,n){let o,r;for(let s=this.open;s>=0;s--){let i=this.nodes[s],a=i.findWrapping(e);if(a&&(!o||o.length>a.length)&&(o=a,r=i,!a.length)||i.solid)break}if(!o)return null;this.sync(r);for(let s=0;s<o.length;s++)n=this.enterInner(o[s],null,n,!1);return n}insertNode(e,n){if(e.isInline&&this.needsBlock&&!this.top.type){let r=this.textblockFromContext();r&&(n=this.enterInner(r,null,n))}let o=this.findPlace(e,n);if(o){this.closeExtra();let r=this.top;r.match&&(r.match=r.match.matchType(e.type));let s=q.none;for(let i of o.concat(e.marks))(r.type?r.type.allowsMarkType(i.type):Bf(i.type,e.type))&&(s=i.addToSet(s));return r.content.push(e.mark(s)),!0}return!1}enter(e,n,o,r){let s=this.findPlace(e.create(n),o);return s&&(s=this.enterInner(e,n,o,!0,r)),s}enterInner(e,n,o,r=!1,s){this.closeExtra();let i=this.top;i.match=i.match&&i.match.matchType(e);let a=Lf(e,s,i.options);i.options&$r&&i.content.length==0&&(a|=$r);let l=q.none;return o=o.filter(c=>(i.type?i.type.allowsMarkType(c.type):Bf(c.type,e))?(l=c.addToSet(l),!1):!0),this.nodes.push(new ii(e,n,l,r,null,a)),this.open++,o}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].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 n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=br)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let o=this.nodes[n].content;for(let r=o.length-1;r>=0;r--)e+=o[r].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let o=0;o<this.find.length;o++)this.find[o].node==e&&this.find[o].offset==n&&(this.find[o].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,o){if(e!=n&&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)&&n.compareDocumentPosition(this.find[r].node)&(o?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),o=this.options.context,r=!this.isOpen&&(!o||o.parent.type==this.nodes[0].type),s=-(o?o.depth+1:0)+(r?0:1),i=(a,l)=>{for(;a>=0;a--){let c=n[a];if(c==""){if(a==n.length-1||a==0)continue;for(;l>=s;l--)if(i(a-1,l))return!0;return!1}else{let u=l>0||l==0&&r?this.nodes[l].type:o&&l>=s?o.node(l-s).type:null;if(!u||u.name!=c&&!u.isInGroup(c))return!1;l--}}return!0};return i(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let o=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(o&&o.isTextblock&&o.defaultAttrs)return o}for(let n in this.parser.schema.nodes){let o=this.parser.schema.nodes[n];if(o.isTextblock&&o.defaultAttrs)return o}}}function Gb(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let o=e.nodeType==1?e.nodeName.toLowerCase():null;o&&Pf.hasOwnProperty(o)&&n?(n.appendChild(e),e=n):o=="li"?n=e:o&&(n=null)}}function Qb(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function zf(t){let e={};for(let n in t)e[n]=t[n];return e}function Bf(t,e){let n=e.schema.nodes;for(let o in n){let r=n[o];if(!r.allowsMarkType(t))continue;let s=[],i=a=>{s.push(a);for(let l=0;l<a.edgeCount;l++){let{type:c,next:u}=a.edge(l);if(c==e||s.indexOf(u)<0&&i(u))return!0}};if(i(r.contentMatch))return!0}}class Fn{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},o){o||(o=Ul(n).createDocumentFragment());let r=o,s=[];return e.forEach(i=>{if(s.length||i.marks.length){let a=0,l=0;for(;a<s.length&&l<i.marks.length;){let c=i.marks[l];if(!this.marks[c.type.name]){l++;continue}if(!c.eq(s[a][0])||c.type.spec.spanning===!1)break;a++,l++}for(;a<s.length;)r=s.pop()[1];for(;l<i.marks.length;){let c=i.marks[l++],u=this.serializeMark(c,i.isInline,n);u&&(s.push([c,r]),r.appendChild(u.dom),r=u.contentDOM||u.dom)}}r.appendChild(this.serializeNodeInner(i,n))}),o}serializeNodeInner(e,n){let{dom:o,contentDOM:r}=ai(Ul(n),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,r)}return o}serializeNode(e,n={}){let o=this.serializeNodeInner(e,n);for(let r=e.marks.length-1;r>=0;r--){let s=this.serializeMark(e.marks[r],e.isInline,n);s&&((s.contentDOM||s.dom).appendChild(o),o=s.dom)}return o}serializeMark(e,n,o={}){let r=this.marks[e.type.name];return r&&ai(Ul(o),r(e,n),null,e.attrs)}static renderSpec(e,n,o=null,r){return ai(e,n,o,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Fn(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=Ff(e.nodes);return n.text||(n.text=o=>o.text),n}static marksFromSchema(e){return Ff(e.marks)}}function Ff(t){let e={};for(let n in t){let o=t[n].spec.toDOM;o&&(e[n]=o)}return e}function Ul(t){return t.document||window.document}const Hf=new WeakMap;function Zb(t){let e=Hf.get(t);return e===void 0&&Hf.set(t,e=Xb(t)),e}function Xb(t){let e=null;function n(o){if(o&&typeof o=="object")if(Array.isArray(o))if(typeof o[0]=="string")e||(e=[]),e.push(o);else for(let r=0;r<o.length;r++)n(o[r]);else for(let r in o)n(o[r])}return n(t),e}function ai(t,e,n,o){if(typeof e=="string")return{dom:t.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let r=e[0],s;if(typeof r!="string")throw new RangeError("Invalid array passed to renderSpec");if(o&&(s=Zb(o))&&s.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let i=r.indexOf(" ");i>0&&(n=r.slice(0,i),r=r.slice(i+1));let a,l=n?t.createElementNS(n,r):t.createElement(r),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let m=d.indexOf(" ");m>0?l.setAttributeNS(d.slice(0,m),d.slice(m+1),c[d]):l.setAttribute(d,c[d])}}for(let d=u;d<e.length;d++){let m=e[d];if(m===0){if(d<e.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:f,contentDOM:p}=ai(t,m,n,o);if(l.appendChild(f),p){if(a)throw new RangeError("Multiple content holes");a=p}}}return{dom:l,contentDOM:a}}const Vf=65535,Uf=Math.pow(2,16);function e$(t,e){return t+e*Uf}function _f(t){return t&Vf}function t$(t){return(t-(t&Vf))/Uf}const Jf=1,Yf=2,li=4,Kf=8;class _l{constructor(e,n,o){this.pos=e,this.delInfo=n,this.recover=o}get deleted(){return(this.delInfo&Kf)>0}get deletedBefore(){return(this.delInfo&(Jf|li))>0}get deletedAfter(){return(this.delInfo&(Yf|li))>0}get deletedAcross(){return(this.delInfo&li)>0}}class Ke{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&Ke.empty)return Ke.empty}recover(e){let n=0,o=_f(e);if(!this.inverted)for(let r=0;r<o;r++)n+=this.ranges[r*3+2]-this.ranges[r*3+1];return this.ranges[o*3]+n+t$(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,o){let r=0,s=this.inverted?2:1,i=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?r:0);if(l>e)break;let c=this.ranges[a+s],u=this.ranges[a+i],d=l+c;if(e<=d){let m=c?e==l?-1:e==d?1:n:n,f=l+r+(m<0?0:u);if(o)return f;let p=e==(n<0?l:d)?null:e$(a/3,e-l),g=e==l?Yf:e==d?Jf:li;return(n<0?e!=l:e!=d)&&(g|=Kf),new _l(f,g,p)}r+=u-c}return o?e+r:new _l(e+r,0,null)}touches(e,n){let o=0,r=_f(n),s=this.inverted?2:1,i=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?o:0);if(l>e)break;let c=this.ranges[a+s],u=l+c;if(e<=u&&a==r*3)return!0;o+=this.ranges[a+i]-c}return!1}forEach(e){let n=this.inverted?2:1,o=this.inverted?1:2;for(let r=0,s=0;r<this.ranges.length;r+=3){let i=this.ranges[r],a=i-(this.inverted?s:0),l=i+(this.inverted?0:s),c=this.ranges[r+n],u=this.ranges[r+o];e(a,a+c,l,l+u),s+=u-c}}invert(){return new Ke(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Ke.empty:new Ke(e<0?[0,-e,0]:[0,0,e])}}Ke.empty=new Ke([]);class ci{constructor(e,n,o=0,r=e?e.length:0){this.mirror=n,this.from=o,this.to=r,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new ci(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,o=this._maps.length;n<e._maps.length;n++){let r=e.getMirror(n);this.appendMap(e._maps[n],r!=null&&r<n?o+r:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,o=this._maps.length+e._maps.length;n>=0;n--){let r=e.getMirror(n);this.appendMap(e._maps[n].invert(),r!=null&&r>n?o-r-1:void 0)}}invert(){let e=new ci;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let o=this.from;o<this.to;o++)e=this._maps[o].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,o){let r=0;for(let s=this.from;s<this.to;s++){let i=this._maps[s],a=i.mapResult(e,n);if(a.recover!=null){let l=this.getMirror(s);if(l!=null&&l>s&&l<this.to){s=l,e=this._maps[l].recover(a.recover);continue}}r|=a.delInfo,e=a.pos}return o?e:new _l(e,r,null)}}const Jl=Object.create(null);class Ne{getMap(){return Ke.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let o=Jl[n.stepType];if(!o)throw new RangeError(`No step type ${n.stepType} defined`);return o.fromJSON(e,n)}static jsonID(e,n){if(e in Jl)throw new RangeError("Duplicate use of step JSON ID "+e);return Jl[e]=n,n.prototype.jsonID=e,n}}class ce{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new ce(e,null)}static fail(e){return new ce(null,e)}static fromReplace(e,n,o,r){try{return ce.ok(e.replace(n,o,r))}catch(s){if(s instanceof ti)return ce.fail(s.message);throw s}}}function Yl(t,e,n){let o=[];for(let r=0;r<t.childCount;r++){let s=t.child(r);s.content.size&&(s=s.copy(Yl(s.content,e,s))),s.isInline&&(s=e(s,n,r)),o.push(s)}return N.fromArray(o)}class Gt extends Ne{constructor(e,n,o){super(),this.from=e,this.to=n,this.mark=o}apply(e){let n=e.slice(this.from,this.to),o=e.resolve(this.from),r=o.node(o.sharedDepth(this.to)),s=new T(Yl(n.content,(i,a)=>!i.isAtom||!a.type.allowsMarkType(this.mark.type)?i:i.mark(this.mark.addToSet(i.marks)),r),n.openStart,n.openEnd);return ce.fromReplace(e,this.from,this.to,s)}invert(){return new bt(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return n.deleted&&o.deleted||n.pos>=o.pos?null:new Gt(n.pos,o.pos,this.mark)}merge(e){return e instanceof Gt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Gt(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Gt(n.from,n.to,e.markFromJSON(n.mark))}}Ne.jsonID("addMark",Gt);class bt extends Ne{constructor(e,n,o){super(),this.from=e,this.to=n,this.mark=o}apply(e){let n=e.slice(this.from,this.to),o=new T(Yl(n.content,r=>r.mark(this.mark.removeFromSet(r.marks)),e),n.openStart,n.openEnd);return ce.fromReplace(e,this.from,this.to,o)}invert(){return new Gt(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return n.deleted&&o.deleted||n.pos>=o.pos?null:new bt(n.pos,o.pos,this.mark)}merge(e){return e instanceof bt&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new bt(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new bt(n.from,n.to,e.markFromJSON(n.mark))}}Ne.jsonID("removeMark",bt);class Qt extends Ne{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ce.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return ce.fromReplace(e,this.pos,this.pos+1,new T(N.from(o),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let o=this.mark.addToSet(n.marks);if(o.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(o))return new Qt(this.pos,n.marks[r]);return new Qt(this.pos,this.mark)}}return new wo(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Qt(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new Qt(n.pos,e.markFromJSON(n.mark))}}Ne.jsonID("addNodeMark",Qt);class wo extends Ne{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return ce.fail("No node at mark step's position");let o=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return ce.fromReplace(e,this.pos,this.pos+1,new T(N.from(o),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new Qt(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new wo(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new wo(n.pos,e.markFromJSON(n.mark))}}Ne.jsonID("removeNodeMark",wo);class pe extends Ne{constructor(e,n,o,r=!1){super(),this.from=e,this.to=n,this.slice=o,this.structure=r}apply(e){return this.structure&&Kl(e,this.from,this.to)?ce.fail("Structure replace would overwrite content"):ce.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Ke([this.from,this.to-this.from,this.slice.size])}invert(e){return new pe(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return n.deletedAcross&&o.deletedAcross?null:new pe(n.pos,Math.max(n.pos,o.pos),this.slice)}merge(e){if(!(e instanceof pe)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?T.empty:new T(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new pe(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?T.empty:new T(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new pe(e.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(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new pe(n.from,n.to,T.fromJSON(e,n.slice),!!n.structure)}}Ne.jsonID("replace",pe);class he extends Ne{constructor(e,n,o,r,s,i,a=!1){super(),this.from=e,this.to=n,this.gapFrom=o,this.gapTo=r,this.slice=s,this.insert=i,this.structure=a}apply(e){if(this.structure&&(Kl(e,this.from,this.gapFrom)||Kl(e,this.gapTo,this.to)))return ce.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return ce.fail("Gap is not a flat range");let o=this.slice.insertAt(this.insert,n.content);return o?ce.fromReplace(e,this.from,this.to,o):ce.fail("Content does not fit in gap")}getMap(){return new Ke([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new he(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),o=e.mapResult(this.to,-1),r=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),s=this.to==this.gapTo?o.pos:e.map(this.gapTo,1);return n.deletedAcross&&o.deletedAcross||r<n.pos||s>o.pos?null:new he(n.pos,o.pos,r,s,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(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new he(n.from,n.to,n.gapFrom,n.gapTo,T.fromJSON(e,n.slice),n.insert,!!n.structure)}}Ne.jsonID("replaceAround",he);function Kl(t,e,n){let o=t.resolve(e),r=n-e,s=o.depth;for(;r>0&&s>0&&o.indexAfter(s)==o.node(s).childCount;)s--,r--;if(r>0){let i=o.node(s).maybeChild(o.indexAfter(s));for(;r>0;){if(!i||i.isLeaf)return!0;i=i.firstChild,r--}}return!1}function n$(t,e,n,o){let r=[],s=[],i,a;t.doc.nodesBetween(e,n,(l,c,u)=>{if(!l.isInline)return;let d=l.marks;if(!o.isInSet(d)&&u.type.allowsMarkType(o.type)){let m=Math.max(c,e),f=Math.min(c+l.nodeSize,n),p=o.addToSet(d);for(let g=0;g<d.length;g++)d[g].isInSet(p)||(i&&i.to==m&&i.mark.eq(d[g])?i.to=f:r.push(i=new bt(m,f,d[g])));a&&a.to==m?a.to=f:s.push(a=new Gt(m,f,o))}}),r.forEach(l=>t.step(l)),s.forEach(l=>t.step(l))}function o$(t,e,n,o){let r=[],s=0;t.doc.nodesBetween(e,n,(i,a)=>{if(!i.isInline)return;s++;let l=null;if(o instanceof si){let c=i.marks,u;for(;u=o.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else o?o.isInSet(i.marks)&&(l=[o]):l=i.marks;if(l&&l.length){let c=Math.min(a+i.nodeSize,n);for(let u=0;u<l.length;u++){let d=l[u],m;for(let f=0;f<r.length;f++){let p=r[f];p.step==s-1&&d.eq(r[f].style)&&(m=p)}m?(m.to=c,m.step=s):r.push({style:d,from:Math.max(a,e),to:c,step:s})}}}),r.forEach(i=>t.step(new bt(i.from,i.to,i.style)))}function Wl(t,e,n,o=n.contentMatch,r=!0){let s=t.doc.nodeAt(e),i=[],a=e+1;for(let l=0;l<s.childCount;l++){let c=s.child(l),u=a+c.nodeSize,d=o.matchType(c.type);if(!d)i.push(new pe(a,u,T.empty));else{o=d;for(let m=0;m<c.marks.length;m++)n.allowsMarkType(c.marks[m].type)||t.step(new bt(a,u,c.marks[m]));if(r&&c.isText&&n.whitespace!="pre"){let m,f=/\r?\n|\r/g,p;for(;m=f.exec(c.text);)p||(p=new T(N.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),i.push(new pe(a+m.index,a+m.index+m[0].length,p))}}a=u}if(!o.validEnd){let l=o.fillBefore(N.empty,!0);t.replace(a,a,new T(l,0,0))}for(let l=i.length-1;l>=0;l--)t.step(i[l])}function r$(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function bo(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let o=t.depth;;--o){let r=t.$from.node(o),s=t.$from.index(o),i=t.$to.indexAfter(o);if(o<t.depth&&r.canReplace(s,i,n))return o;if(o==0||r.type.spec.isolating||!r$(r,s,i))break}return null}function s$(t,e,n){let{$from:o,$to:r,depth:s}=e,i=o.before(s+1),a=r.after(s+1),l=i,c=a,u=N.empty,d=0;for(let p=s,g=!1;p>n;p--)g||o.index(p)>0?(g=!0,u=N.from(o.node(p).copy(u)),d++):l--;let m=N.empty,f=0;for(let p=s,g=!1;p>n;p--)g||r.after(p+1)<r.end(p)?(g=!0,m=N.from(r.node(p).copy(m)),f++):c++;t.step(new he(l,c,i,a,new T(u.append(m),d,f),u.size-d,!0))}function ql(t,e,n=null,o=t){let r=i$(t,e),s=r&&a$(o,e);return s?r.map(Wf).concat({type:e,attrs:n}).concat(s.map(Wf)):null}function Wf(t){return{type:t,attrs:null}}function i$(t,e){let{parent:n,startIndex:o,endIndex:r}=t,s=n.contentMatchAt(o).findWrapping(e);if(!s)return null;let i=s.length?s[0]:e;return n.canReplaceWith(o,r,i)?s:null}function a$(t,e){let{parent:n,startIndex:o,endIndex:r}=t,s=n.child(o),i=e.contentMatch.findWrapping(s.type);if(!i)return null;let l=(i.length?i[i.length-1]:e).contentMatch;for(let c=o;l&&c<r;c++)l=l.matchType(n.child(c).type);return!l||!l.validEnd?null:i}function l$(t,e,n){let o=N.empty;for(let i=n.length-1;i>=0;i--){if(o.size){let a=n[i].type.contentMatch.matchFragment(o);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}o=N.from(n[i].type.create(n[i].attrs,o))}let r=e.start,s=e.end;t.step(new he(r,s,r,s,new T(o,0,0),n.length,!0))}function c$(t,e,n,o,r){if(!o.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=t.steps.length;t.doc.nodesBetween(e,n,(i,a)=>{let l=typeof r=="function"?r(i):r;if(i.isTextblock&&!i.hasMarkup(o,l)&&u$(t.doc,t.mapping.slice(s).map(a),o)){let c=null;if(o.schema.linebreakReplacement){let f=o.whitespace=="pre",p=!!o.contentMatch.matchType(o.schema.linebreakReplacement);f&&!p?c=!1:!f&&p&&(c=!0)}c===!1&&Gf(t,i,a,s),Wl(t,t.mapping.slice(s).map(a,1),o,void 0,c===null);let u=t.mapping.slice(s),d=u.map(a,1),m=u.map(a+i.nodeSize,1);return t.step(new he(d,m,d+1,m-1,new T(N.from(o.create(l,null,i.marks)),0,0),1,!0)),c===!0&&qf(t,i,a,s),!1}})}function qf(t,e,n,o){e.forEach((r,s)=>{if(r.isText){let i,a=/\r?\n|\r/g;for(;i=a.exec(r.text);){let l=t.mapping.slice(o).map(n+1+s+i.index);t.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function Gf(t,e,n,o){e.forEach((r,s)=>{if(r.type==r.type.schema.linebreakReplacement){let i=t.mapping.slice(o).map(n+1+s);t.replaceWith(i,i+1,e.type.schema.text(`
`))}})}function u$(t,e,n){let o=t.resolve(e),r=o.index();return o.parent.canReplaceWith(r,r+1,n)}function d$(t,e,n,o,r){let s=t.doc.nodeAt(e);if(!s)throw new RangeError("No node at given position");n||(n=s.type);let i=n.create(o,null,r||s.marks);if(s.isLeaf)return t.replaceWith(e,e+s.nodeSize,i);if(!n.validContent(s.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new he(e,e+s.nodeSize,e+1,e+s.nodeSize-1,new T(N.from(i),0,0),1,!0))}function Mt(t,e,n=1,o){let r=t.resolve(e),s=r.depth-n,i=o&&o[o.length-1]||r.parent;if(s<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!i.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let c=r.depth-1,u=n-2;c>s;c--,u--){let d=r.node(c),m=r.index(c);if(d.type.spec.isolating)return!1;let f=d.content.cutByIndex(m,d.childCount),p=o&&o[u+1];p&&(f=f.replaceChild(0,p.type.create(p.attrs)));let g=o&&o[u]||d;if(!d.canReplace(m+1,d.childCount)||!g.type.validContent(f))return!1}let a=r.indexAfter(s),l=o&&o[0];return r.node(s).canReplaceWith(a,a,l?l.type:r.node(s+1).type)}function m$(t,e,n=1,o){let r=t.doc.resolve(e),s=N.empty,i=N.empty;for(let a=r.depth,l=r.depth-n,c=n-1;a>l;a--,c--){s=N.from(r.node(a).copy(s));let u=o&&o[c];i=N.from(u?u.type.create(u.attrs,i):r.node(a).copy(i))}t.step(new pe(e,e,new T(s.append(i),n,n),!0))}function Zt(t,e){let n=t.resolve(e),o=n.index();return Qf(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(o,o+1)}function f$(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:o}=t.type.schema;for(let r=0;r<e.childCount;r++){let s=e.child(r),i=s.type==o?t.type.schema.nodes.text:s.type;if(n=n.matchType(i),!n||!t.type.allowsMarks(s.marks))return!1}return n.validEnd}function Qf(t,e){return!!(t&&e&&!t.isLeaf&&f$(t,e))}function ui(t,e,n=-1){let o=t.resolve(e);for(let r=o.depth;;r--){let s,i,a=o.index(r);if(r==o.depth?(s=o.nodeBefore,i=o.nodeAfter):n>0?(s=o.node(r+1),a++,i=o.node(r).maybeChild(a)):(s=o.node(r).maybeChild(a-1),i=o.node(r+1)),s&&!s.isTextblock&&Qf(s,i)&&o.node(r).canReplace(a,a+1))return e;if(r==0)break;e=n<0?o.before(r):o.after(r)}}function p$(t,e,n){let o=null,{linebreakReplacement:r}=t.doc.type.schema,s=t.doc.resolve(e-n),i=s.node().type;if(r&&i.inlineContent){let u=i.whitespace=="pre",d=!!i.contentMatch.matchType(r);u&&!d?o=!1:!u&&d&&(o=!0)}let a=t.steps.length;if(o===!1){let u=t.doc.resolve(e+n);Gf(t,u.node(),u.before(),a)}i.inlineContent&&Wl(t,e+n-1,i,s.node().contentMatchAt(s.index()),o==null);let l=t.mapping.slice(a),c=l.map(e-n);if(t.step(new pe(c,l.map(e+n,-1),T.empty,!0)),o===!0){let u=t.doc.resolve(c);qf(t,u.node(),u.before(),t.steps.length)}return t}function h$(t,e,n){let o=t.resolve(e);if(o.parent.canReplaceWith(o.index(),o.index(),n))return e;if(o.parentOffset==0)for(let r=o.depth-1;r>=0;r--){let s=o.index(r);if(o.node(r).canReplaceWith(s,s,n))return o.before(r+1);if(s>0)return null}if(o.parentOffset==o.parent.content.size)for(let r=o.depth-1;r>=0;r--){let s=o.indexAfter(r);if(o.node(r).canReplaceWith(s,s,n))return o.after(r+1);if(s<o.node(r).childCount)return null}return null}function g$(t,e,n){let o=t.resolve(e);if(!n.content.size)return e;let r=n.content;for(let s=0;s<n.openStart;s++)r=r.firstChild.content;for(let s=1;s<=(n.openStart==0&&n.size?2:1);s++)for(let i=o.depth;i>=0;i--){let a=i==o.depth?0:o.pos<=(o.start(i+1)+o.end(i+1))/2?-1:1,l=o.index(i)+(a>0?1:0),c=o.node(i),u=!1;if(s==1)u=c.canReplace(l,l,r);else{let d=c.contentMatchAt(l).findWrapping(r.firstChild.type);u=d&&c.canReplaceWith(l,l,d[0])}if(u)return a==0?o.pos:a<0?o.before(i+1):o.after(i+1)}return null}function di(t,e,n=e,o=T.empty){if(e==n&&!o.size)return null;let r=t.resolve(e),s=t.resolve(n);return Zf(r,s,o)?new pe(e,n,o):new y$(r,s,o).fit()}function Zf(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class y${constructor(e,n,o){this.$from=e,this.$to=n,this.unplaced=o,this.frontier=[],this.placed=N.empty;for(let r=0;r<=e.depth;r++){let s=e.node(r);this.frontier.push({type:s.type,match:s.contentMatchAt(e.indexAfter(r))})}for(let r=e.depth;r>0;r--)this.placed=N.from(e.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,o=this.$from,r=this.close(e<0?this.$to:o.doc.resolve(e));if(!r)return null;let s=this.placed,i=o.depth,a=r.depth;for(;i&&a&&s.childCount==1;)s=s.firstChild.content,i--,a--;let l=new T(s,i,a);return e>-1?new he(o.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||o.pos!=this.$to.pos?new pe(o.pos,r.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,o=0,r=this.unplaced.openEnd;o<e;o++){let s=n.firstChild;if(n.childCount>1&&(r=0),s.type.spec.isolating&&r<=o){e=o;break}n=s.content}for(let n=1;n<=2;n++)for(let o=n==1?e:this.unplaced.openStart;o>=0;o--){let r,s=null;o?(s=Gl(this.unplaced.content,o-1).firstChild,r=s.content):r=this.unplaced.content;let i=r.firstChild;for(let a=this.depth;a>=0;a--){let{type:l,match:c}=this.frontier[a],u,d=null;if(n==1&&(i?c.matchType(i.type)||(d=c.fillBefore(N.from(i),!1)):s&&l.compatibleContent(s.type)))return{sliceDepth:o,frontierDepth:a,parent:s,inject:d};if(n==2&&i&&(u=c.findWrapping(i.type)))return{sliceDepth:o,frontierDepth:a,parent:s,wrap:u};if(s&&c.matchType(s.type))break}}}openMore(){let{content:e,openStart:n,openEnd:o}=this.unplaced,r=Gl(e,n);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new T(e,n+1,Math.max(o,r.size+n>=e.size-o?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:o}=this.unplaced,r=Gl(e,n);if(r.childCount<=1&&n>0){let s=e.size-n<=n+r.size;this.unplaced=new T(vr(e,n-1,1),n-1,s?n-1:o)}else this.unplaced=new T(vr(e,n,1),n,o)}placeNodes({sliceDepth:e,frontierDepth:n,parent:o,inject:r,wrap:s}){for(;this.depth>n;)this.closeFrontierNode();if(s)for(let g=0;g<s.length;g++)this.openFrontierNode(s[g]);let i=this.unplaced,a=o?o.content:i.content,l=i.openStart-e,c=0,u=[],{match:d,type:m}=this.frontier[n];if(r){for(let g=0;g<r.childCount;g++)u.push(r.child(g));d=d.matchFragment(r)}let f=a.size+e-(i.content.size-i.openEnd);for(;c<a.childCount;){let g=a.child(c),h=d.matchType(g.type);if(!h)break;c++,(c>1||l==0||g.content.size)&&(d=h,u.push(Xf(g.mark(m.allowedMarks(g.marks)),c==1?l:0,c==a.childCount?f:-1)))}let p=c==a.childCount;p||(f=-1),this.placed=Sr(this.placed,n,N.from(u)),this.frontier[n].match=d,p&&f<0&&o&&o.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,h=a;g<f;g++){let y=h.lastChild;this.frontier.push({type:y.type,match:y.contentMatchAt(y.childCount)}),h=y.content}this.unplaced=p?e==0?T.empty:new T(vr(i.content,e-1,1),e-1,f<0?i.openEnd:e-1):new T(vr(i.content,e,c),i.openStart,i.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!Ql(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:o}=this.$to,r=this.$to.after(o);for(;o>1&&r==this.$to.end(--o);)++r;return r}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:o,type:r}=this.frontier[n],s=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),i=Ql(e,n,r,o,s);if(i){for(let a=n-1;a>=0;a--){let{match:l,type:c}=this.frontier[a],u=Ql(e,a,c,l,!0);if(!u||u.childCount)continue e}return{depth:n,fit:i,move:s?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=Sr(this.placed,n.depth,n.fit)),e=n.move;for(let o=n.depth+1;o<=e.depth;o++){let r=e.node(o),s=r.type.contentMatch.fillBefore(r.content,!0,e.index(o));this.openFrontierNode(r.type,r.attrs,s)}return e}openFrontierNode(e,n=null,o){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=Sr(this.placed,this.depth,N.from(e.create(n,o))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(N.empty,!0);n.childCount&&(this.placed=Sr(this.placed,this.frontier.length,n))}}function vr(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(vr(t.firstChild.content,e-1,n)))}function Sr(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(Sr(t.lastChild.content,e-1,n)))}function Gl(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function Xf(t,e,n){if(e<=0)return t;let o=t.content;return e>1&&(o=o.replaceChild(0,Xf(o.firstChild,e-1,o.childCount==1?n-1:0))),e>0&&(o=t.type.contentMatch.fillBefore(o).append(o),n<=0&&(o=o.append(t.type.contentMatch.matchFragment(o).fillBefore(N.empty,!0)))),t.copy(o)}function Ql(t,e,n,o,r){let s=t.node(e),i=r?t.indexAfter(e):t.index(e);if(i==s.childCount&&!n.compatibleContent(s.type))return null;let a=o.fillBefore(s.content,!0,i);return a&&!w$(n,s.content,i)?a:null}function w$(t,e,n){for(let o=n;o<e.childCount;o++)if(!t.allowsMarks(e.child(o).marks))return!0;return!1}function b$(t){return t.spec.defining||t.spec.definingForContent}function $$(t,e,n,o){if(!o.size)return t.deleteRange(e,n);let r=t.doc.resolve(e),s=t.doc.resolve(n);if(Zf(r,s,o))return t.step(new pe(e,n,o));let i=tp(r,t.doc.resolve(n));i[i.length-1]==0&&i.pop();let a=-(r.depth+1);i.unshift(a);for(let m=r.depth,f=r.pos-1;m>0;m--,f--){let p=r.node(m).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;i.indexOf(m)>-1?a=m:r.before(m)==f&&i.splice(1,0,-m)}let l=i.indexOf(a),c=[],u=o.openStart;for(let m=o.content,f=0;;f++){let p=m.firstChild;if(c.push(p),f==o.openStart)break;m=p.content}for(let m=u-1;m>=0;m--){let f=c[m],p=b$(f.type);if(p&&!f.sameMarkup(r.node(Math.abs(a)-1)))u=m;else if(p||!f.type.isTextblock)break}for(let m=o.openStart;m>=0;m--){let f=(m+u+1)%(o.openStart+1),p=c[f];if(p)for(let g=0;g<i.length;g++){let h=i[(g+l)%i.length],y=!0;h<0&&(y=!1,h=-h);let b=r.node(h-1),$=r.index(h-1);if(b.canReplaceWith($,$,p.type,p.marks))return t.replace(r.before(h),y?s.after(h):n,new T(ep(o.content,0,o.openStart,f),f,o.openEnd))}}let d=t.steps.length;for(let m=i.length-1;m>=0&&(t.replace(e,n,o),!(t.steps.length>d));m--){let f=i[m];f<0||(e=r.before(f),n=s.after(f))}}function ep(t,e,n,o,r){if(e<n){let s=t.firstChild;t=t.replaceChild(0,s.copy(ep(s.content,e+1,n,o,s)))}if(e>o){let s=r.contentMatchAt(0),i=s.fillBefore(t).append(t);t=i.append(s.matchFragment(i).fillBefore(N.empty,!0))}return t}function v$(t,e,n,o){if(!o.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let r=h$(t.doc,e,o.type);r!=null&&(e=n=r)}t.replaceRange(e,n,new T(N.from(o),0,0))}function S$(t,e,n){let o=t.doc.resolve(e),r=t.doc.resolve(n),s=tp(o,r);for(let i=0;i<s.length;i++){let a=s[i],l=i==s.length-1;if(l&&a==0||o.node(a).type.contentMatch.validEnd)return t.delete(o.start(a),r.end(a));if(a>0&&(l||o.node(a-1).canReplace(o.index(a-1),r.indexAfter(a-1))))return t.delete(o.before(a),r.after(a))}for(let i=1;i<=o.depth&&i<=r.depth;i++)if(e-o.start(i)==o.depth-i&&n>o.end(i)&&r.end(i)-n!=r.depth-i&&o.start(i-1)==r.start(i-1)&&o.node(i-1).canReplace(o.index(i-1),r.index(i-1)))return t.delete(o.before(i),n);t.delete(e,n)}function tp(t,e){let n=[],o=Math.min(t.depth,e.depth);for(let r=o;r>=0;r--){let s=t.start(r);if(s<t.pos-(t.depth-r)||e.end(r)>e.pos+(e.depth-r)||t.node(r).type.spec.isolating||e.node(r).type.spec.isolating)break;(s==e.start(r)||r==t.depth&&r==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&r&&e.start(r-1)==s-1)&&n.push(r)}return n}class $o extends Ne{constructor(e,n,o){super(),this.pos=e,this.attr=n,this.value=o}apply(e){let n=e.nodeAt(this.pos);if(!n)return ce.fail("No node at attribute step's position");let o=Object.create(null);for(let s in n.attrs)o[s]=n.attrs[s];o[this.attr]=this.value;let r=n.type.create(o,null,n.marks);return ce.fromReplace(e,this.pos,this.pos+1,new T(N.from(r),0,n.isLeaf?0:1))}getMap(){return Ke.empty}invert(e){return new $o(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new $o(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new $o(n.pos,n.attr,n.value)}}Ne.jsonID("attr",$o);class xr extends Ne{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let r in e.attrs)n[r]=e.attrs[r];n[this.attr]=this.value;let o=e.type.create(n,e.content,e.marks);return ce.ok(o)}getMap(){return Ke.empty}invert(e){return new xr(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new xr(n.attr,n.value)}}Ne.jsonID("docAttr",xr);let vo=class extends Error{};vo=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n},vo.prototype=Object.create(Error.prototype),vo.prototype.constructor=vo,vo.prototype.name="TransformError";class np{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new ci}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new vo(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,o=T.empty){let r=di(this.doc,e,n,o);return r&&this.step(r),this}replaceWith(e,n,o){return this.replace(e,n,new T(N.from(o),0,0))}delete(e,n){return this.replace(e,n,T.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,o){return $$(this,e,n,o),this}replaceRangeWith(e,n,o){return v$(this,e,n,o),this}deleteRange(e,n){return S$(this,e,n),this}lift(e,n){return s$(this,e,n),this}join(e,n=1){return p$(this,e,n),this}wrap(e,n){return l$(this,e,n),this}setBlockType(e,n=e,o,r=null){return c$(this,e,n,o,r),this}setNodeMarkup(e,n,o=null,r){return d$(this,e,n,o,r),this}setNodeAttribute(e,n,o){return this.step(new $o(e,n,o)),this}setDocAttribute(e,n){return this.step(new xr(e,n)),this}addNodeMark(e,n){return this.step(new Qt(e,n)),this}removeNodeMark(e,n){if(!(n instanceof q)){let o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at position "+e);if(n=n.isInSet(o.marks),!n)return this}return this.step(new wo(e,n)),this}split(e,n=1,o){return m$(this,e,n,o),this}addMark(e,n,o){return n$(this,e,n,o),this}removeMark(e,n,o){return o$(this,e,n,o),this}clearIncompatible(e,n,o){return Wl(this,e,n,o),this}}const Zl=Object.create(null);class J{constructor(e,n,o){this.$anchor=e,this.$head=n,this.ranges=o||[new x$(e.min(n),e.max(n))]}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 n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=T.empty){let o=n.content.lastChild,r=null;for(let a=0;a<n.openEnd;a++)r=o,o=o.lastChild;let s=e.steps.length,i=this.ranges;for(let a=0;a<i.length;a++){let{$from:l,$to:c}=i[a],u=e.mapping.slice(s);e.replaceRange(u.map(l.pos),u.map(c.pos),a?T.empty:n),a==0&&sp(e,s,(o?o.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,n){let o=e.steps.length,r=this.ranges;for(let s=0;s<r.length;s++){let{$from:i,$to:a}=r[s],l=e.mapping.slice(o),c=l.map(i.pos),u=l.map(a.pos);s?e.deleteRange(c,u):(e.replaceRangeWith(c,u,n),sp(e,o,n.isInline?-1:1))}}static findFrom(e,n,o=!1){let r=e.parent.inlineContent?new H(e):So(e.node(0),e.parent,e.pos,e.index(),n,o);if(r)return r;for(let s=e.depth-1;s>=0;s--){let i=n<0?So(e.node(0),e.node(s),e.before(s+1),e.index(s),n,o):So(e.node(0),e.node(s),e.after(s+1),e.index(s)+1,n,o);if(i)return i}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new We(e.node(0))}static atStart(e){return So(e,e,0,0,1)||new We(e)}static atEnd(e){return So(e,e,e.content.size,e.childCount,-1)||new We(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let o=Zl[n.type];if(!o)throw new RangeError(`No selection type ${n.type} defined`);return o.fromJSON(e,n)}static jsonID(e,n){if(e in Zl)throw new RangeError("Duplicate use of selection JSON ID "+e);return Zl[e]=n,n.prototype.jsonID=e,n}getBookmark(){return H.between(this.$anchor,this.$head).getBookmark()}}J.prototype.visible=!0;class x${constructor(e,n){this.$from=e,this.$to=n}}let op=!1;function rp(t){!op&&!t.parent.inlineContent&&(op=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class H extends J{constructor(e,n=e){rp(e),rp(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let o=e.resolve(n.map(this.head));if(!o.parent.inlineContent)return J.near(o);let r=e.resolve(n.map(this.anchor));return new H(r.parent.inlineContent?r:o,o)}replace(e,n=T.empty){if(super.replace(e,n),n==T.empty){let o=this.$from.marksAcross(this.$to);o&&e.ensureMarks(o)}}eq(e){return e instanceof H&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new mi(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new H(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,o=n){let r=e.resolve(n);return new this(r,o==n?r:e.resolve(o))}static between(e,n,o){let r=e.pos-n.pos;if((!o||r)&&(o=r>=0?1:-1),!n.parent.inlineContent){let s=J.findFrom(n,o,!0)||J.findFrom(n,-o,!0);if(s)n=s.$head;else return J.near(n,o)}return e.parent.inlineContent||(r==0?e=n:(e=(J.findFrom(e,-o,!0)||J.findFrom(e,o,!0)).$anchor,e.pos<n.pos!=r<0&&(e=n))),new H(e,n)}}J.jsonID("text",H);class mi{constructor(e,n){this.anchor=e,this.head=n}map(e){return new mi(e.map(this.anchor),e.map(this.head))}resolve(e){return H.between(e.resolve(this.anchor),e.resolve(this.head))}}class L extends J{constructor(e){let n=e.nodeAfter,o=e.node(0).resolve(e.pos+n.nodeSize);super(e,o),this.node=n}map(e,n){let{deleted:o,pos:r}=n.mapResult(this.anchor),s=e.resolve(r);return o?J.near(s):new L(s)}content(){return new T(N.from(this.node),0,0)}eq(e){return e instanceof L&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Xl(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new L(e.resolve(n.anchor))}static create(e,n){return new L(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}L.prototype.visible=!1,J.jsonID("node",L);class Xl{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:o}=e.mapResult(this.anchor);return n?new mi(o,o):new Xl(o)}resolve(e){let n=e.resolve(this.anchor),o=n.nodeAfter;return o&&L.isSelectable(o)?new L(n):J.near(n)}}class We extends J{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=T.empty){if(n==T.empty){e.delete(0,e.doc.content.size);let o=J.atStart(e.doc);o.eq(e.selection)||e.setSelection(o)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new We(e)}map(e){return new We(e)}eq(e){return e instanceof We}getBookmark(){return k$}}J.jsonID("all",We);const k$={map(){return this},resolve(t){return new We(t)}};function So(t,e,n,o,r,s=!1){if(e.inlineContent)return H.create(t,n);for(let i=o-(r>0?0:1);r>0?i<e.childCount:i>=0;i+=r){let a=e.child(i);if(a.isAtom){if(!s&&L.isSelectable(a))return L.create(t,n-(r<0?a.nodeSize:0))}else{let l=So(t,a,n+r,r<0?a.childCount:0,r,s);if(l)return l}n+=a.nodeSize*r}return null}function sp(t,e,n){let o=t.steps.length-1;if(o<e)return;let r=t.steps[o];if(!(r instanceof pe||r instanceof he))return;let s=t.mapping.maps[o],i;s.forEach((a,l,c,u)=>{i==null&&(i=u)}),t.setSelection(J.near(t.doc.resolve(i),n))}const ip=1,fi=2,ap=4;class E$ extends np{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 new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|ip)&~fi,this.storedMarks=null,this}get selectionSet(){return(this.updated&ip)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=fi,this}ensureMarks(e){return q.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&fi)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~fi,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let o=this.selection;return n&&(e=e.mark(this.storedMarks||(o.empty?o.$from.marks():o.$from.marksAcross(o.$to)||q.none))),o.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,o){let r=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(o==null&&(o=n),o=o??n,!e)return this.deleteRange(n,o);let s=this.storedMarks;if(!s){let i=this.doc.resolve(n);s=o==n?i.marks():i.marksAcross(this.doc.resolve(o))}return this.replaceRangeWith(n,o,r.text(e,s)),this.selection.empty||this.setSelection(J.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,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|=ap,this}get scrolledIntoView(){return(this.updated&ap)>0}}function lp(t,e){return!e||!t?t:t.bind(e)}class kr{constructor(e,n,o){this.name=e,this.init=lp(n.init,o),this.apply=lp(n.apply,o)}}const C$=[new kr("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new kr("selection",{init(t,e){return t.selection||J.atStart(e.doc)},apply(t){return t.selection}}),new kr("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,o){return o.selection.$cursor?t.storedMarks:null}}),new kr("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class ec{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=C$.slice(),n&&n.forEach(o=>{if(this.pluginsByKey[o.key])throw new RangeError("Adding different instances of a keyed plugin ("+o.key+")");this.plugins.push(o),this.pluginsByKey[o.key]=o,o.spec.state&&this.fields.push(new kr(o.key,o.spec.state,o))})}}class xo{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,n=-1){for(let o=0;o<this.config.plugins.length;o++)if(o!=n){let r=this.config.plugins[o];if(r.spec.filterTransaction&&!r.spec.filterTransaction.call(r,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],o=this.applyInner(e),r=null;for(;;){let s=!1;for(let i=0;i<this.config.plugins.length;i++){let a=this.config.plugins[i];if(a.spec.appendTransaction){let l=r?r[i].n:0,c=r?r[i].state:this,u=l<n.length&&a.spec.appendTransaction.call(a,l?n.slice(l):n,c,o);if(u&&o.filterTransaction(u,i)){if(u.setMeta("appendedTransaction",e),!r){r=[];for(let d=0;d<this.config.plugins.length;d++)r.push(d<i?{state:o,n:n.length}:{state:this,n:0})}n.push(u),o=o.applyInner(u),s=!0}r&&(r[i]={state:o,n:n.length})}}if(!s)return{state:o,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new xo(this.config),o=this.config.fields;for(let r=0;r<o.length;r++){let s=o[r];n[s.name]=s.apply(e,this[s.name],this,n)}return n}get tr(){return new E$(this)}static create(e){let n=new ec(e.doc?e.doc.type.schema:e.schema,e.plugins),o=new xo(n);for(let r=0;r<n.fields.length;r++)o[n.fields[r].name]=n.fields[r].init(e,o);return o}reconfigure(e){let n=new ec(this.schema,e.plugins),o=n.fields,r=new xo(n);for(let s=0;s<o.length;s++){let i=o[s].name;r[i]=this.hasOwnProperty(i)?this[i]:o[s].init(e,r)}return r}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(o=>o.toJSON())),e&&typeof e=="object")for(let o in e){if(o=="doc"||o=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[o],s=r.spec.state;s&&s.toJSON&&(n[o]=s.toJSON.call(r,this[r.key]))}return n}static fromJSON(e,n,o){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let r=new ec(e.schema,e.plugins),s=new xo(r);return r.fields.forEach(i=>{if(i.name=="doc")s.doc=qt.fromJSON(e.schema,n.doc);else if(i.name=="selection")s.selection=J.fromJSON(s.doc,n.selection);else if(i.name=="storedMarks")n.storedMarks&&(s.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(o)for(let a in o){let l=o[a],c=l.spec.state;if(l.key==i.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,a)){s[i.name]=c.fromJSON.call(l,e,n[a],s);return}}s[i.name]=i.init(e,s)}}),s}}function cp(t,e,n){for(let o in t){let r=t[o];r instanceof Function?r=r.bind(e):o=="handleDOMEvents"&&(r=cp(r,e,{})),n[o]=r}return n}class Fe{constructor(e){this.spec=e,this.props={},e.props&&cp(e.props,this,this.props),this.key=e.key?e.key.key:up("plugin")}getState(e){return e[this.key]}}const tc=Object.create(null);function up(t){return t in tc?t+"$"+ ++tc[t]:(tc[t]=0,t+"$")}class pt{constructor(e="key"){this.key=up(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const ve=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},ko=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let nc=null;const jt=function(t,e,n){let o=nc||(nc=document.createRange());return o.setEnd(t,n??t.nodeValue.length),o.setStart(t,e||0),o},N$=function(){nc=null},Hn=function(t,e,n,o){return n&&(dp(t,e,n,o,-1)||dp(t,e,n,o,1))},A$=/^(img|br|input|textarea|hr)$/i;function dp(t,e,n,o,r){for(;;){if(t==n&&e==o)return!0;if(e==(r<0?0:Xe(t))){let s=t.parentNode;if(!s||s.nodeType!=1||Er(t)||A$.test(t.nodeName)||t.contentEditable=="false")return!1;e=ve(t)+(r<0?0:1),t=s}else if(t.nodeType==1){if(t=t.childNodes[e+(r<0?-1:0)],t.contentEditable=="false")return!1;e=r<0?Xe(t):0}else return!1}}function Xe(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function D$(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=Xe(t)}else if(t.parentNode&&!Er(t))e=ve(t),t=t.parentNode;else return null}}function R$(t,e){for(;;){if(t.nodeType==3&&e<t.nodeValue.length)return t;if(t.nodeType==1&&e<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[e],e=0}else if(t.parentNode&&!Er(t))e=ve(t)+1,t=t.parentNode;else return null}}function O$(t,e,n){for(let o=e==0,r=e==Xe(t);o||r;){if(t==n)return!0;let s=ve(t);if(t=t.parentNode,!t)return!1;o=o&&s==0,r=r&&s==Xe(t)}}function Er(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const pi=function(t){return t.focusNode&&Hn(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function Vn(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function T$(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function M$(t,e,n){if(t.caretPositionFromPoint)try{let o=t.caretPositionFromPoint(e,n);if(o)return{node:o.offsetNode,offset:Math.min(Xe(o.offsetNode),o.offset)}}catch{}if(t.caretRangeFromPoint){let o=t.caretRangeFromPoint(e,n);if(o)return{node:o.startContainer,offset:Math.min(Xe(o.startContainer),o.startOffset)}}}const $t=typeof navigator<"u"?navigator:null,mp=typeof document<"u"?document:null,Xt=$t&&$t.userAgent||"",oc=/Edge\/(\d+)/.exec(Xt),fp=/MSIE \d/.exec(Xt),rc=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Xt),He=!!(fp||rc||oc),en=fp?document.documentMode:rc?+rc[1]:oc?+oc[1]:0,ht=!He&&/gecko\/(\d+)/i.test(Xt);ht&&+(/Firefox\/(\d+)/.exec(Xt)||[0,0])[1];const sc=!He&&/Chrome\/(\d+)/.exec(Xt),Ae=!!sc,pp=sc?+sc[1]:0,Pe=!He&&!!$t&&/Apple Computer/.test($t.vendor),Eo=Pe&&(/Mobile\/\w+/.test(Xt)||!!$t&&$t.maxTouchPoints>2),et=Eo||($t?/Mac/.test($t.platform):!1),j$=$t?/Win/.test($t.platform):!1,Pt=/Android \d/.test(Xt),Cr=!!mp&&"webkitFontSmoothing"in mp.documentElement.style,P$=Cr?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function L$(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function Lt(t,e){return typeof t=="number"?t:t[e]}function I$(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,o=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*o}}function hp(t,e,n){let o=t.someProp("scrollThreshold")||0,r=t.someProp("scrollMargin")||5,s=t.dom.ownerDocument;for(let i=n||t.dom;i;){if(i.nodeType!=1){i=ko(i);continue}let a=i,l=a==s.body,c=l?L$(s):I$(a),u=0,d=0;if(e.top<c.top+Lt(o,"top")?d=-(c.top-e.top+Lt(r,"top")):e.bottom>c.bottom-Lt(o,"bottom")&&(d=e.bottom-e.top>c.bottom-c.top?e.top+Lt(r,"top")-c.top:e.bottom-c.bottom+Lt(r,"bottom")),e.left<c.left+Lt(o,"left")?u=-(c.left-e.left+Lt(r,"left")):e.right>c.right-Lt(o,"right")&&(u=e.right-c.right+Lt(r,"right")),u||d)if(l)s.defaultView.scrollBy(u,d);else{let f=a.scrollLeft,p=a.scrollTop;d&&(a.scrollTop+=d),u&&(a.scrollLeft+=u);let g=a.scrollLeft-f,h=a.scrollTop-p;e={left:e.left-g,top:e.top-h,right:e.right-g,bottom:e.bottom-h}}let m=l?"fixed":getComputedStyle(i).position;if(/^(fixed|sticky)$/.test(m))break;i=m=="absolute"?i.offsetParent:ko(i)}}function z$(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),o,r;for(let s=(e.left+e.right)/2,i=n+1;i<Math.min(innerHeight,e.bottom);i+=5){let a=t.root.elementFromPoint(s,i);if(!a||a==t.dom||!t.dom.contains(a))continue;let l=a.getBoundingClientRect();if(l.top>=n-20){o=a,r=l.top;break}}return{refDOM:o,refTop:r,stack:gp(t.dom)}}function gp(t){let e=[],n=t.ownerDocument;for(let o=t;o&&(e.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),t!=n);o=ko(o));return e}function B$({refDOM:t,refTop:e,stack:n}){let o=t?t.getBoundingClientRect().top:0;yp(n,o==0?0:o-e)}function yp(t,e){for(let n=0;n<t.length;n++){let{dom:o,top:r,left:s}=t[n];o.scrollTop!=r+e&&(o.scrollTop=r+e),o.scrollLeft!=s&&(o.scrollLeft=s)}}let Co=null;function F$(t){if(t.setActive)return t.setActive();if(Co)return t.focus(Co);let e=gp(t);t.focus(Co==null?{get preventScroll(){return Co={preventScroll:!0},!0}}:void 0),Co||(Co=!1,yp(e,0))}function wp(t,e){let n,o=2e8,r,s=0,i=e.top,a=e.top,l,c;for(let u=t.firstChild,d=0;u;u=u.nextSibling,d++){let m;if(u.nodeType==1)m=u.getClientRects();else if(u.nodeType==3)m=jt(u).getClientRects();else continue;for(let f=0;f<m.length;f++){let p=m[f];if(p.top<=i&&p.bottom>=a){i=Math.max(p.bottom,i),a=Math.min(p.top,a);let g=p.left>e.left?p.left-e.left:p.right<e.left?e.left-p.right:0;if(g<o){n=u,o=g,r=g&&n.nodeType==3?{left:p.right<e.left?p.right:p.left,top:e.top}:e,u.nodeType==1&&g&&(s=d+(e.left>=(p.left+p.right)/2?1:0));continue}}else p.top>e.top&&!l&&p.left<=e.left&&p.right>=e.left&&(l=u,c={left:Math.max(p.left,Math.min(p.right,e.left)),top:p.top});!n&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(s=d+1)}}return!n&&l&&(n=l,r=c,o=0),n&&n.nodeType==3?H$(n,r):!n||o&&n.nodeType==1?{node:t,offset:s}:wp(n,r)}function H$(t,e){let n=t.nodeValue.length,o=document.createRange();for(let r=0;r<n;r++){o.setEnd(t,r+1),o.setStart(t,r);let s=tn(o,1);if(s.top!=s.bottom&&ic(e,s))return{node:t,offset:r+(e.left>=(s.left+s.right)/2?1:0)}}return{node:t,offset:0}}function ic(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function V$(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function U$(t,e,n){let{node:o,offset:r}=wp(e,n),s=-1;if(o.nodeType==1&&!o.firstChild){let i=o.getBoundingClientRect();s=i.left!=i.right&&n.left>(i.left+i.right)/2?1:-1}return t.docView.posFromDOM(o,r,s)}function _$(t,e,n,o){let r=-1;for(let s=e,i=!1;s!=t.dom;){let a=t.docView.nearestDesc(s,!0),l;if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent||!a.contentDOM)&&((l=a.dom.getBoundingClientRect()).width||l.height)&&(a.node.isBlock&&a.parent&&(!i&&l.left>o.left||l.top>o.top?r=a.posBefore:(!i&&l.right<o.left||l.bottom<o.top)&&(r=a.posAfter),i=!0),!a.contentDOM&&r<0&&!a.node.isText))return(a.node.isBlock?o.top<(l.top+l.bottom)/2:o.left<(l.left+l.right)/2)?a.posBefore:a.posAfter;s=a.dom.parentNode}return r>-1?r:t.docView.posFromDOM(e,n,-1)}function bp(t,e,n){let o=t.childNodes.length;if(o&&n.top<n.bottom)for(let r=Math.max(0,Math.min(o-1,Math.floor(o*(e.top-n.top)/(n.bottom-n.top))-2)),s=r;;){let i=t.childNodes[s];if(i.nodeType==1){let a=i.getClientRects();for(let l=0;l<a.length;l++){let c=a[l];if(ic(e,c))return bp(i,e,c)}}if((s=(s+1)%o)==r)break}return t}function J$(t,e){let n=t.dom.ownerDocument,o,r=0,s=M$(n,e.left,e.top);s&&({node:o,offset:r}=s);let i=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),a;if(!i||!t.dom.contains(i.nodeType!=1?i.parentNode:i)){let c=t.dom.getBoundingClientRect();if(!ic(e,c)||(i=bp(t.dom,e,c),!i))return null}if(Pe)for(let c=i;o&&c;c=ko(c))c.draggable&&(o=void 0);if(i=V$(i,e),o){if(ht&&o.nodeType==1&&(r=Math.min(r,o.childNodes.length),r<o.childNodes.length)){let u=o.childNodes[r],d;u.nodeName=="IMG"&&(d=u.getBoundingClientRect()).right<=e.left&&d.bottom>e.top&&r++}let c;Cr&&r&&o.nodeType==1&&(c=o.childNodes[r-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=e.top&&r--,o==t.dom&&r==o.childNodes.length-1&&o.lastChild.nodeType==1&&e.top>o.lastChild.getBoundingClientRect().bottom?a=t.state.doc.content.size:(r==0||o.nodeType!=1||o.childNodes[r-1].nodeName!="BR")&&(a=_$(t,o,r,e))}a==null&&(a=U$(t,i,e));let l=t.docView.nearestDesc(i,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function $p(t){return t.top<t.bottom||t.left<t.right}function tn(t,e){let n=t.getClientRects();if(n.length){let o=n[e<0?0:n.length-1];if($p(o))return o}return Array.prototype.find.call(n,$p)||t.getBoundingClientRect()}const Y$=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function vp(t,e,n){let{node:o,offset:r,atom:s}=t.docView.domFromPos(e,n<0?-1:1),i=Cr||ht;if(o.nodeType==3)if(i&&(Y$.test(o.nodeValue)||(n<0?!r:r==o.nodeValue.length))){let l=tn(jt(o,r,r),n);if(ht&&r&&/\s/.test(o.nodeValue[r-1])&&r<o.nodeValue.length){let c=tn(jt(o,r-1,r-1),-1);if(c.top==l.top){let u=tn(jt(o,r,r+1),-1);if(u.top!=l.top)return Nr(u,u.left<c.left)}}return l}else{let l=r,c=r,u=n<0?1:-1;return n<0&&!r?(c++,u=-1):n>=0&&r==o.nodeValue.length?(l--,u=1):n<0?l--:c++,Nr(tn(jt(o,l,c),u),u<0)}if(!t.state.doc.resolve(e-(s||0)).parent.inlineContent){if(s==null&&r&&(n<0||r==Xe(o))){let l=o.childNodes[r-1];if(l.nodeType==1)return ac(l.getBoundingClientRect(),!1)}if(s==null&&r<Xe(o)){let l=o.childNodes[r];if(l.nodeType==1)return ac(l.getBoundingClientRect(),!0)}return ac(o.getBoundingClientRect(),n>=0)}if(s==null&&r&&(n<0||r==Xe(o))){let l=o.childNodes[r-1],c=l.nodeType==3?jt(l,Xe(l)-(i?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(c)return Nr(tn(c,1),!1)}if(s==null&&r<Xe(o)){let l=o.childNodes[r];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let c=l?l.nodeType==3?jt(l,0,i?0:1):l.nodeType==1?l:null:null;if(c)return Nr(tn(c,-1),!0)}return Nr(tn(o.nodeType==3?jt(o):o,-n),n>=0)}function Nr(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function ac(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function Sp(t,e,n){let o=t.state,r=t.root.activeElement;o!=e&&t.updateState(e),r!=t.dom&&t.focus();try{return n()}finally{o!=e&&t.updateState(o),r!=t.dom&&r&&r.focus()}}function K$(t,e,n){let o=e.selection,r=n=="up"?o.$from:o.$to;return Sp(t,e,()=>{let{node:s}=t.docView.domFromPos(r.pos,n=="up"?-1:1);for(;;){let a=t.docView.nearestDesc(s,!0);if(!a)break;if(a.node.isBlock){s=a.contentDOM||a.dom;break}s=a.dom.parentNode}let i=vp(t,r.pos,1);for(let a=s.firstChild;a;a=a.nextSibling){let l;if(a.nodeType==1)l=a.getClientRects();else if(a.nodeType==3)l=jt(a,0,a.nodeValue.length).getClientRects();else continue;for(let c=0;c<l.length;c++){let u=l[c];if(u.bottom>u.top+1&&(n=="up"?i.top-u.top>(u.bottom-i.top)*2:u.bottom-i.bottom>(i.bottom-u.top)*2))return!1}}return!0})}const W$=/[\u0590-\u08ac]/;function q$(t,e,n){let{$head:o}=e.selection;if(!o.parent.isTextblock)return!1;let r=o.parentOffset,s=!r,i=r==o.parent.content.size,a=t.domSelection();return a?!W$.test(o.parent.textContent)||!a.modify?n=="left"||n=="backward"?s:i:Sp(t,e,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:d}=t.domSelectionRange(),m=a.caretBidiLevel;a.modify("move",n,"character");let f=o.depth?t.docView.domAfterPos(o.before()):t.dom,{focusNode:p,focusOffset:g}=t.domSelectionRange(),h=p&&!f.contains(p.nodeType==1?p:p.parentNode)||l==p&&c==g;try{a.collapse(u,d),l&&(l!=u||c!=d)&&a.extend&&a.extend(l,c)}catch{}return m!=null&&(a.caretBidiLevel=m),h}):o.pos==o.start()||o.pos==o.end()}let xp=null,kp=null,Ep=!1;function G$(t,e,n){return xp==e&&kp==n?Ep:(xp=e,kp=n,Ep=n=="up"||n=="down"?K$(t,e,n):q$(t,e,n))}const tt=0,Cp=1,Un=2,vt=3;class Ar{constructor(e,n,o,r){this.parent=e,this.children=n,this.dom=o,this.contentDOM=r,this.dirty=tt,o.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,o){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].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 n=0,o=this.posAtStart;;n++){let r=this.children[n];if(r==e)return o;o+=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,n,o){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(o<0){let s,i;if(e==this.contentDOM)s=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;s=e.previousSibling}for(;s&&!((i=s.pmViewDesc)&&i.parent==this);)s=s.previousSibling;return s?this.posBeforeChild(i)+i.size:this.posAtStart}else{let s,i;if(e==this.contentDOM)s=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;s=e.nextSibling}for(;s&&!((i=s.pmViewDesc)&&i.parent==this);)s=s.nextSibling;return s?this.posBeforeChild(i):this.posAtEnd}let r;if(e==this.dom&&this.contentDOM)r=n>ve(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(n==0)for(let s=e;;s=s.parentNode){if(s==this.dom){r=!1;break}if(s.previousSibling)break}if(r==null&&n==e.childNodes.length)for(let s=e;;s=s.parentNode){if(s==this.dom){r=!0;break}if(s.nextSibling)break}}return r??o>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let o=!0,r=e;r;r=r.parentNode){let s=this.getDesc(r),i;if(s&&(!n||s.node))if(o&&(i=s.nodeDOM)&&!(i.nodeType==1?i.contains(e.nodeType==1?e:e.parentNode):i==e))o=!1;else return s}}getDesc(e){let n=e.pmViewDesc;for(let o=n;o;o=o.parent)if(o==this)return n}posFromDOM(e,n,o){for(let r=e;r;r=r.parentNode){let s=this.getDesc(r);if(s)return s.localPosFromDOM(e,n,o)}return-1}descAt(e){for(let n=0,o=0;n<this.children.length;n++){let r=this.children[n],s=o+r.size;if(o==e&&s!=o){for(;!r.border&&r.children.length;)for(let i=0;i<r.children.length;i++){let a=r.children[i];if(a.size){r=a;break}}return r}if(e<s)return r.descAt(e-o-r.border);o=s}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let o=0,r=0;for(let s=0;o<this.children.length;o++){let i=this.children[o],a=s+i.size;if(a>e||i instanceof Dp){r=e-s;break}s=a}if(r)return this.children[o].domFromPos(r-this.children[o].border,n);for(let s;o&&!(s=this.children[o-1]).size&&s instanceof Np&&s.side>=0;o--);if(n<=0){let s,i=!0;for(;s=o?this.children[o-1]:null,!(!s||s.dom.parentNode==this.contentDOM);o--,i=!1);return s&&n&&i&&!s.border&&!s.domAtom?s.domFromPos(s.size,n):{node:this.contentDOM,offset:s?ve(s.dom)+1:0}}else{let s,i=!0;for(;s=o<this.children.length?this.children[o]:null,!(!s||s.dom.parentNode==this.contentDOM);o++,i=!1);return s&&i&&!s.border&&!s.domAtom?s.domFromPos(0,n):{node:this.contentDOM,offset:s?ve(s.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,o=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,s=-1;for(let i=o,a=0;;a++){let l=this.children[a],c=i+l.size;if(r==-1&&e<=c){let u=i+l.border;if(e>=u&&n<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,u);e=i;for(let d=a;d>0;d--){let m=this.children[d-1];if(m.size&&m.dom.parentNode==this.contentDOM&&!m.emptyChildAt(1)){r=ve(m.dom)+1;break}e-=m.size}r==-1&&(r=0)}if(r>-1&&(c>n||a==this.children.length-1)){n=c;for(let u=a+1;u<this.children.length;u++){let d=this.children[u];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(-1)){s=ve(d.dom);break}n+=d.size}s==-1&&(s=this.contentDOM.childNodes.length);break}i=c}return{node:this.contentDOM,from:e,to:n,fromOffset:r,toOffset:s}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:o}=this.domFromPos(e,0);if(n.nodeType!=1||o==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[o]}setSelection(e,n,o,r=!1){let s=Math.min(e,n),i=Math.max(e,n);for(let f=0,p=0;f<this.children.length;f++){let g=this.children[f],h=p+g.size;if(s>p&&i<h)return g.setSelection(e-p-g.border,n-p-g.border,o,r);p=h}let a=this.domFromPos(e,e?-1:1),l=n==e?a:this.domFromPos(n,n?-1:1),c=o.root.getSelection(),u=o.domSelectionRange(),d=!1;if((ht||Pe)&&e==n){let{node:f,offset:p}=a;if(f.nodeType==3){if(d=!!(p&&f.nodeValue[p-1]==`
`),d&&p==f.nodeValue.length)for(let g=f,h;g;g=g.parentNode){if(h=g.nextSibling){h.nodeName=="BR"&&(a=l={node:h.parentNode,offset:ve(h)+1});break}let y=g.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{let g=f.childNodes[p-1];d=g&&(g.nodeName=="BR"||g.contentEditable=="false")}}if(ht&&u.focusNode&&u.focusNode!=l.node&&u.focusNode.nodeType==1){let f=u.focusNode.childNodes[u.focusOffset];f&&f.contentEditable=="false"&&(r=!0)}if(!(r||d&&Pe)&&Hn(a.node,a.offset,u.anchorNode,u.anchorOffset)&&Hn(l.node,l.offset,u.focusNode,u.focusOffset))return;let m=!1;if((c.extend||e==n)&&!d){c.collapse(a.node,a.offset);try{e!=n&&c.extend(l.node,l.offset),m=!0}catch{}}if(!m){if(e>n){let p=a;a=l,l=p}let f=document.createRange();f.setEnd(l.node,l.offset),f.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(f)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let o=0,r=0;r<this.children.length;r++){let s=this.children[r],i=o+s.size;if(o==i?e<=i&&n>=o:e<i&&n>o){let a=o+s.border,l=i-s.border;if(e>=a&&n<=l){this.dirty=e==o||n==i?Un:Cp,e==a&&n==l&&(s.contentLost||s.dom.parentNode!=this.contentDOM)?s.dirty=vt:s.markDirty(e-a,n-a);return}else s.dirty=s.dom==s.contentDOM&&s.dom.parentNode==this.contentDOM&&!s.children.length?Un:vt}o=i}this.dirty=Un}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let o=e==1?Un:Cp;n.dirty<o&&(n.dirty=o)}}get domAtom(){return!1}get ignoreForCoords(){return!1}isText(e){return!1}}class Np extends Ar{constructor(e,n,o,r){let s,i=n.type.toDOM;if(typeof i=="function"&&(i=i(o,()=>{if(!s)return r;if(s.parent)return s.parent.posBeforeChild(s)})),!n.type.spec.raw){if(i.nodeType!=1){let a=document.createElement("span");a.appendChild(i),i=a}i.contentEditable="false",i.classList.add("ProseMirror-widget")}super(e,[],i,null),this.widget=n,this.widget=n,s=this}matchesWidget(e){return this.dirty==tt&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(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 side(){return this.widget.type.side}}class Q$ extends Ar{constructor(e,n,o,r){super(e,[],n,null),this.textDOM=o,this.text=r}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class _n extends Ar{constructor(e,n,o,r,s){super(e,[],o,r),this.mark=n,this.spec=s}static create(e,n,o,r){let s=r.nodeViews[n.type.name],i=s&&s(n,r,o);return(!i||!i.dom)&&(i=Fn.renderSpec(document,n.type.spec.toDOM(n,o),null,n.attrs)),new _n(e,n,i.dom,i.contentDOM||i.dom,i)}parseRule(){return this.dirty&vt||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=vt&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=tt){let o=this.parent;for(;!o.node;)o=o.parent;o.dirty<this.dirty&&(o.dirty=this.dirty),this.dirty=tt}}slice(e,n,o){let r=_n.create(this.parent,this.mark,!0,o),s=this.children,i=this.size;n<i&&(s=cc(s,n,i,o)),e>0&&(s=cc(s,0,e,o));for(let a=0;a<s.length;a++)s[a].parent=r;return r.children=s,r}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class nn extends Ar{constructor(e,n,o,r,s,i,a,l,c){super(e,[],s,i),this.node=n,this.outerDeco=o,this.innerDeco=r,this.nodeDOM=a}static create(e,n,o,r,s,i){let a=s.nodeViews[n.type.name],l,c=a&&a(n,s,()=>{if(!l)return i;if(l.parent)return l.parent.posBeforeChild(l)},o,r),u=c&&c.dom,d=c&&c.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:d}=Fn.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let m=u;return u=Tp(u,o,n),c?l=new Z$(e,n,o,r,u,d||null,m,c,s,i+1):n.isText?new hi(e,n,o,r,u,m,s):new nn(e,n,o,r,u,d||null,m,s,i+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 n=this.children.length-1;n>=0;n--){let o=this.children[n];if(this.dom.contains(o.dom.parentNode)){e.contentElement=o.dom.parentNode;break}}e.contentElement||(e.getContent=()=>N.empty)}return e}matchesNode(e,n,o){return this.dirty==tt&&e.eq(this.node)&&gi(n,this.outerDeco)&&o.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,n){let o=this.node.inlineContent,r=n,s=e.composing?this.localCompositionInfo(e,n):null,i=s&&s.pos>-1?s:null,a=s&&s.pos<0,l=new ev(this,i&&i.node,e);ov(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?l.syncToMarks(c.spec.marks,o,e):c.type.side>=0&&!d&&l.syncToMarks(u==this.node.childCount?q.none:this.node.child(u).marks,o,e),l.placeWidget(c,e,r)},(c,u,d,m)=>{l.syncToMarks(c.marks,o,e);let f;l.findNodeMatch(c,u,d,m)||a&&e.state.selection.from>r&&e.state.selection.to<r+c.nodeSize&&(f=l.findIndexWithChild(s.node))>-1&&l.updateNodeAt(c,u,d,f,e)||l.updateNextNode(c,u,d,e,m,r)||l.addNode(c,u,d,e,r),r+=c.nodeSize}),l.syncToMarks([],o,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==Un)&&(i&&this.protectLocalComposition(e,i),Rp(this.contentDOM,this.children,e),Eo&&rv(this.dom))}localCompositionInfo(e,n){let{from:o,to:r}=e.state.selection;if(!(e.state.selection instanceof H)||o<n||r>n+this.node.content.size)return null;let s=e.input.compositionNode;if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let i=s.nodeValue,a=sv(this.node.content,i,o-n,r-n);return a<0?null:{node:s,pos:a,text:i}}else return{node:s,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:o,text:r}){if(this.getDesc(n))return;let s=n;for(;s.parentNode!=this.contentDOM;s=s.parentNode){for(;s.previousSibling;)s.parentNode.removeChild(s.previousSibling);for(;s.nextSibling;)s.parentNode.removeChild(s.nextSibling);s.pmViewDesc&&(s.pmViewDesc=void 0)}let i=new Q$(this,s,n,r);e.input.compositionNodes.push(i),this.children=cc(this.children,o,o+r.length,e,i)}update(e,n,o,r){return this.dirty==vt||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,o,r),!0)}updateInner(e,n,o,r){this.updateOuterDeco(n),this.node=e,this.innerDeco=o,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=tt}updateOuterDeco(e){if(gi(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,o=this.dom;this.dom=Op(this.dom,this.nodeDOM,lc(this.outerDeco,this.node,n),lc(e,this.node,n)),this.dom!=o&&(o.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.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Ap(t,e,n,o,r){Tp(o,e,t);let s=new nn(void 0,t,e,n,o,o,o,r,0);return s.contentDOM&&s.updateChildren(r,0),s}class hi extends nn{constructor(e,n,o,r,s,i,a){super(e,n,o,r,s,null,i,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,o,r){return this.dirty==vt||this.dirty!=tt&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=tt||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=tt,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,o){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,o)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,o){let r=this.node.cut(e,n),s=document.createTextNode(r.text);return new hi(this.parent,r,this.outerDeco,this.innerDeco,s,s,o)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=vt)}get domAtom(){return!1}isText(e){return this.node.text==e}}class Dp extends Ar{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==tt&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class Z$ extends nn{constructor(e,n,o,r,s,i,a,l,c,u){super(e,n,o,r,s,i,a,c,u),this.spec=l}update(e,n,o,r){if(this.dirty==vt)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let s=this.spec.update(e,n,o);return s&&this.updateInner(e,n,o,r),s}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,o,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,o,r){this.spec.setSelection?this.spec.setSelection(e,n,o.root):super.setSelection(e,n,o,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 Rp(t,e,n){let o=t.firstChild,r=!1;for(let s=0;s<e.length;s++){let i=e[s],a=i.dom;if(a.parentNode==t){for(;a!=o;)o=Mp(o),r=!0;o=o.nextSibling}else r=!0,t.insertBefore(a,o);if(i instanceof _n){let l=o?o.previousSibling:t.lastChild;Rp(i.contentDOM,i.children,n),o=l?l.nextSibling:t.firstChild}}for(;o;)o=Mp(o),r=!0;r&&n.trackWrites==t&&(n.trackWrites=null)}const Dr=function(t){t&&(this.nodeName=t)};Dr.prototype=Object.create(null);const Jn=[new Dr];function lc(t,e,n){if(t.length==0)return Jn;let o=n?Jn[0]:new Dr,r=[o];for(let s=0;s<t.length;s++){let i=t[s].type.attrs;if(i){i.nodeName&&r.push(o=new Dr(i.nodeName));for(let a in i){let l=i[a];l!=null&&(n&&r.length==1&&r.push(o=new Dr(e.isInline?"span":"div")),a=="class"?o.class=(o.class?o.class+" ":"")+l:a=="style"?o.style=(o.style?o.style+";":"")+l:a!="nodeName"&&(o[a]=l))}}}return r}function Op(t,e,n,o){if(n==Jn&&o==Jn)return e;let r=e;for(let s=0;s<o.length;s++){let i=o[s],a=n[s];if(s){let l;a&&a.nodeName==i.nodeName&&r!=t&&(l=r.parentNode)&&l.nodeName.toLowerCase()==i.nodeName||(l=document.createElement(i.nodeName),l.pmIsDeco=!0,l.appendChild(r),a=Jn[0]),r=l}X$(r,a||Jn[0],i)}return r}function X$(t,e,n){for(let o in e)o!="class"&&o!="style"&&o!="nodeName"&&!(o in n)&&t.removeAttribute(o);for(let o in n)o!="class"&&o!="style"&&o!="nodeName"&&n[o]!=e[o]&&t.setAttribute(o,n[o]);if(e.class!=n.class){let o=e.class?e.class.split(" ").filter(Boolean):[],r=n.class?n.class.split(" ").filter(Boolean):[];for(let s=0;s<o.length;s++)r.indexOf(o[s])==-1&&t.classList.remove(o[s]);for(let s=0;s<r.length;s++)o.indexOf(r[s])==-1&&t.classList.add(r[s]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let o=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=o.exec(e.style);)t.style.removeProperty(r[1])}n.style&&(t.style.cssText+=n.style)}}function Tp(t,e,n){return Op(t,t,Jn,lc(e,n,t.nodeType!=1))}function gi(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function Mp(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class ev{constructor(e,n,o){this.lock=n,this.view=o,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=tv(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let o=e;o<n;o++)this.top.children[o].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,o){let r=0,s=this.stack.length>>1,i=Math.min(s,e.length);for(;r<i&&(r==s-1?this.top:this.stack[r+1<<1]).matchesMark(e[r])&&e[r].type.spec.spanning!==!1;)r++;for(;r<s;)this.destroyRest(),this.top.dirty=tt,this.index=this.stack.pop(),this.top=this.stack.pop(),s--;for(;s<e.length;){this.stack.push(this.top,this.index+1);let a=-1;for(let l=this.index;l<Math.min(this.index+3,this.top.children.length);l++){let c=this.top.children[l];if(c.matchesMark(e[s])&&!this.isLocked(c.dom)){a=l;break}}if(a>-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let l=_n.create(this.top,e[s],n,o);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,s++}}findNodeMatch(e,n,o,r){let s=-1,i;if(r>=this.preMatch.index&&(i=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&i.matchesNode(e,n,o))s=this.top.children.indexOf(i,this.index);else for(let a=this.index,l=Math.min(this.top.children.length,a+5);a<l;a++){let c=this.top.children[a];if(c.matchesNode(e,n,o)&&!this.preMatch.matched.has(c)){s=a;break}}return s<0?!1:(this.destroyBetween(this.index,s),this.index++,!0)}updateNodeAt(e,n,o,r,s){let i=this.top.children[r];return i.dirty==vt&&i.dom==i.contentDOM&&(i.dirty=Un),i.update(e,n,o,s)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let o=e.pmViewDesc;if(o){for(let r=this.index;r<this.top.children.length;r++)if(this.top.children[r]==o)return r}return-1}e=n}}updateNextNode(e,n,o,r,s,i){for(let a=this.index;a<this.top.children.length;a++){let l=this.top.children[a];if(l instanceof nn){let c=this.preMatch.matched.get(l);if(c!=null&&c!=s)return!1;let u=l.dom,d,m=this.isLocked(u)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=vt&&gi(n,l.outerDeco));if(!m&&l.update(e,n,o,r))return this.destroyBetween(this.index,a),l.dom!=u&&(this.changed=!0),this.index++,!0;if(!m&&(d=this.recreateWrapper(l,e,n,o,r,i)))return this.destroyBetween(this.index,a),this.top.children[this.index]=d,d.contentDOM&&(d.dirty=Un,d.updateChildren(r,i+1),d.dirty=tt),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,o,r,s,i){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content)||!gi(o,e.outerDeco)||!r.eq(e.innerDeco))return null;let a=nn.create(this.top,n,o,r,s,i);if(a.contentDOM){a.children=e.children,e.children=[];for(let l of a.children)l.parent=a}return e.destroy(),a}addNode(e,n,o,r,s){let i=nn.create(this.top,e,n,o,r,s);i.contentDOM&&i.updateChildren(r,s+1),this.top.children.splice(this.index++,0,i),this.changed=!0}placeWidget(e,n,o){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 s=new Np(this.top,e,n,o);this.top.children.splice(this.index++,0,s),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof _n;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof hi)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Pe||Ae)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let o=document.createElement(e);e=="IMG"&&(o.className="ProseMirror-separator",o.alt=""),e=="BR"&&(o.className="ProseMirror-trailingBreak");let r=new Dp(this.top,[],o,null);n!=this.top?n.children.push(r):n.children.splice(this.index++,0,r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function tv(t,e){let n=e,o=n.children.length,r=t.childCount,s=new Map,i=[];e:for(;r>0;){let a;for(;;)if(o){let c=n.children[o-1];if(c instanceof _n)n=c,o=c.children.length;else{a=c,o--;break}}else{if(n==e)break e;o=n.parent.children.indexOf(n),n=n.parent}let l=a.node;if(l){if(l!=t.child(r-1))break;--r,s.set(a,r),i.push(a)}}return{index:r,matched:s,matches:i.reverse()}}function nv(t,e){return t.type.side-e.type.side}function ov(t,e,n,o){let r=e.locals(t),s=0;if(r.length==0){for(let c=0;c<t.childCount;c++){let u=t.child(c);o(u,r,e.forChild(s,u),c),s+=u.nodeSize}return}let i=0,a=[],l=null;for(let c=0;;){let u,d;for(;i<r.length&&r[i].to==s;){let h=r[i++];h.widget&&(u?(d||(d=[u])).push(h):u=h)}if(u)if(d){d.sort(nv);for(let h=0;h<d.length;h++)n(d[h],c,!!l)}else n(u,c,!!l);let m,f;if(l)f=-1,m=l,l=null;else if(c<t.childCount)f=c,m=t.child(c++);else break;for(let h=0;h<a.length;h++)a[h].to<=s&&a.splice(h--,1);for(;i<r.length&&r[i].from<=s&&r[i].to>s;)a.push(r[i++]);let p=s+m.nodeSize;if(m.isText){let h=p;i<r.length&&r[i].from<h&&(h=r[i].from);for(let y=0;y<a.length;y++)a[y].to<h&&(h=a[y].to);h<p&&(l=m.cut(h-s),m=m.cut(0,h-s),p=h,f=-1)}else for(;i<r.length&&r[i].to<p;)i++;let g=m.isInline&&!m.isLeaf?a.filter(h=>!h.inline):a.slice();o(m,g,e.forChild(s,m),f),s=p}}function rv(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function sv(t,e,n,o){for(let r=0,s=0;r<t.childCount&&s<=o;){let i=t.child(r++),a=s;if(s+=i.nodeSize,!i.isText)continue;let l=i.text;for(;r<t.childCount;){let c=t.child(r++);if(s+=c.nodeSize,!c.isText)break;l+=c.text}if(s>=n){if(s>=o&&l.slice(o-e.length-a,o-a)==e)return o-e.length;let c=a<o?l.lastIndexOf(e,o-a-1):-1;if(c>=0&&c+e.length+a>=n)return a+c;if(n==o&&l.length>=o+e.length-a&&l.slice(o-a,o-a+e.length)==e)return o}}return-1}function cc(t,e,n,o,r){let s=[];for(let i=0,a=0;i<t.length;i++){let l=t[i],c=a,u=a+=l.size;c>=n||u<=e?s.push(l):(c<e&&s.push(l.slice(0,e-c,o)),r&&(s.push(r),r=void 0),u>n&&s.push(l.slice(n-c,l.size,o)))}return s}function uc(t,e=null){let n=t.domSelectionRange(),o=t.state.doc;if(!n.focusNode)return null;let r=t.docView.nearestDesc(n.focusNode),s=r&&r.size==0,i=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(i<0)return null;let a=o.resolve(i),l,c;if(pi(n)){for(l=i;r&&!r.node;)r=r.parent;let d=r.node;if(r&&d.isAtom&&L.isSelectable(d)&&r.parent&&!(d.isInline&&O$(n.focusNode,n.focusOffset,r.dom))){let m=r.posBefore;c=new L(i==m?a:o.resolve(m))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=i,m=i;for(let f=0;f<n.rangeCount;f++){let p=n.getRangeAt(f);d=Math.min(d,t.docView.posFromDOM(p.startContainer,p.startOffset,1)),m=Math.max(m,t.docView.posFromDOM(p.endContainer,p.endOffset,-1))}if(d<0)return null;[l,i]=m==t.state.selection.anchor?[m,d]:[d,m],a=o.resolve(i)}else l=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let u=o.resolve(l);if(!c){let d=e=="pointer"||t.state.selection.head<a.pos&&!s?1:-1;c=mc(t,u,a,d)}return c}function jp(t){return t.editable?t.hasFocus():Hp(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function It(t,e=!1){let n=t.state.selection;if(zp(t,n),!!jp(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&Ae){let o=t.domSelectionRange(),r=t.domObserver.currentSelection;if(o.anchorNode&&r.anchorNode&&Hn(o.anchorNode,o.anchorOffset,r.anchorNode,r.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)av(t);else{let{anchor:o,head:r}=n,s,i;Pp&&!(n instanceof H)&&(n.$from.parent.inlineContent||(s=Lp(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(i=Lp(t,n.to))),t.docView.setSelection(o,r,t,e),Pp&&(s&&Ip(s),i&&Ip(i)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&iv(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const Pp=Pe||Ae&&pp<63;function Lp(t,e){let{node:n,offset:o}=t.docView.domFromPos(e,0),r=o<n.childNodes.length?n.childNodes[o]:null,s=o?n.childNodes[o-1]:null;if(Pe&&r&&r.contentEditable=="false")return dc(r);if((!r||r.contentEditable=="false")&&(!s||s.contentEditable=="false")){if(r)return dc(r);if(s)return dc(s)}}function dc(t){return t.contentEditable="true",Pe&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function Ip(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function iv(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),o=n.anchorNode,r=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=o||n.anchorOffset!=r)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!jp(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function av(t){let e=t.domSelection(),n=document.createRange();if(!e)return;let o=t.cursorWrapper.dom,r=o.nodeName=="IMG";r?n.setStart(o.parentNode,ve(o)+1):n.setStart(o,0),n.collapse(!0),e.removeAllRanges(),e.addRange(n),!r&&!t.state.selection.visible&&He&&en<=11&&(o.disabled=!0,o.disabled=!1)}function zp(t,e){if(e instanceof L){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(Bp(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else Bp(t)}function Bp(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function mc(t,e,n,o){return t.someProp("createSelectionBetween",r=>r(t,e,n))||H.between(e,n,o)}function Fp(t){return t.editable&&!t.hasFocus()?!1:Hp(t)}function Hp(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function lv(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return Hn(e.node,e.offset,n.anchorNode,n.anchorOffset)}function fc(t,e){let{$anchor:n,$head:o}=t.selection,r=e>0?n.max(o):n.min(o),s=r.parent.inlineContent?r.depth?t.doc.resolve(e>0?r.after():r.before()):null:r;return s&&J.findFrom(s,e)}function on(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function Vp(t,e,n){let o=t.state.selection;if(o instanceof H)if(n.indexOf("s")>-1){let{$head:r}=o,s=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter;if(!s||s.isText||!s.isLeaf)return!1;let i=t.state.doc.resolve(r.pos+s.nodeSize*(e<0?-1:1));return on(t,new H(o.$anchor,i))}else if(o.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let r=fc(t.state,e);return r&&r instanceof L?on(t,r):!1}else if(!(et&&n.indexOf("m")>-1)){let r=o.$head,s=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter,i;if(!s||s.isText)return!1;let a=e<0?r.pos-s.nodeSize:r.pos;return s.isAtom||(i=t.docView.descAt(a))&&!i.contentDOM?L.isSelectable(s)?on(t,new L(e<0?t.state.doc.resolve(r.pos-s.nodeSize):r)):Cr?on(t,new H(t.state.doc.resolve(e<0?a:a+s.nodeSize))):!1:!1}}else return!1;else{if(o instanceof L&&o.node.isInline)return on(t,new H(e>0?o.$to:o.$from));{let r=fc(t.state,e);return r?on(t,r):!1}}}function yi(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Rr(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function No(t,e){return e<0?cv(t):uv(t)}function cv(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let r,s,i=!1;for(ht&&n.nodeType==1&&o<yi(n)&&Rr(n.childNodes[o],-1)&&(i=!0);;)if(o>0){if(n.nodeType!=1)break;{let a=n.childNodes[o-1];if(Rr(a,-1))r=n,s=--o;else if(a.nodeType==3)n=a,o=n.nodeValue.length;else break}}else{if(Up(n))break;{let a=n.previousSibling;for(;a&&Rr(a,-1);)r=n.parentNode,s=ve(a),a=a.previousSibling;if(a)n=a,o=yi(n);else{if(n=n.parentNode,n==t.dom)break;o=0}}}i?pc(t,n,o):r&&pc(t,r,s)}function uv(t){let e=t.domSelectionRange(),n=e.focusNode,o=e.focusOffset;if(!n)return;let r=yi(n),s,i;for(;;)if(o<r){if(n.nodeType!=1)break;let a=n.childNodes[o];if(Rr(a,1))s=n,i=++o;else break}else{if(Up(n))break;{let a=n.nextSibling;for(;a&&Rr(a,1);)s=a.parentNode,i=ve(a)+1,a=a.nextSibling;if(a)n=a,o=0,r=yi(n);else{if(n=n.parentNode,n==t.dom)break;o=r=0}}}s&&pc(t,s,i)}function Up(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function dv(t,e){for(;t&&e==t.childNodes.length&&!Er(t);)e=ve(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=0}}function mv(t,e){for(;t&&!e&&!Er(t);)e=ve(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=t.childNodes.length}}function pc(t,e,n){if(e.nodeType!=3){let s,i;(i=dv(e,n))?(e=i,n=0):(s=mv(e,n))&&(e=s,n=s.nodeValue.length)}let o=t.domSelection();if(!o)return;if(pi(o)){let s=document.createRange();s.setEnd(e,n),s.setStart(e,n),o.removeAllRanges(),o.addRange(s)}else o.extend&&o.extend(e,n);t.domObserver.setCurSelection();let{state:r}=t;setTimeout(()=>{t.state==r&&It(t)},50)}function _p(t,e){let n=t.state.doc.resolve(e);if(!(Ae||j$)&&n.parent.inlineContent){let r=t.coordsAtPos(e);if(e>n.start()){let s=t.coordsAtPos(e-1),i=(s.top+s.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(s.left-r.left)>1)return s.left<r.left?"ltr":"rtl"}if(e<n.end()){let s=t.coordsAtPos(e+1),i=(s.top+s.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(s.left-r.left)>1)return s.left>r.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function Jp(t,e,n){let o=t.state.selection;if(o instanceof H&&!o.empty||n.indexOf("s")>-1||et&&n.indexOf("m")>-1)return!1;let{$from:r,$to:s}=o;if(!r.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let i=fc(t.state,e);if(i&&i instanceof L)return on(t,i)}if(!r.parent.inlineContent){let i=e<0?r:s,a=o instanceof We?J.near(i,e):J.findFrom(i,e);return a?on(t,a):!1}return!1}function Yp(t,e){if(!(t.state.selection instanceof H))return!0;let{$head:n,$anchor:o,empty:r}=t.state.selection;if(!n.sameParent(o))return!0;if(!r)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let s=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(s&&!s.isText){let i=t.state.tr;return e<0?i.delete(n.pos-s.nodeSize,n.pos):i.delete(n.pos,n.pos+s.nodeSize),t.dispatch(i),!0}return!1}function Kp(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function fv(t){if(!Pe||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let o=e.firstChild;Kp(t,o,"true"),setTimeout(()=>Kp(t,o,"false"),20)}return!1}function pv(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function hv(t,e){let n=e.keyCode,o=pv(e);if(n==8||et&&n==72&&o=="c")return Yp(t,-1)||No(t,-1);if(n==46&&!e.shiftKey||et&&n==68&&o=="c")return Yp(t,1)||No(t,1);if(n==13||n==27)return!0;if(n==37||et&&n==66&&o=="c"){let r=n==37?_p(t,t.state.selection.from)=="ltr"?-1:1:-1;return Vp(t,r,o)||No(t,r)}else if(n==39||et&&n==70&&o=="c"){let r=n==39?_p(t,t.state.selection.from)=="ltr"?1:-1:1;return Vp(t,r,o)||No(t,r)}else{if(n==38||et&&n==80&&o=="c")return Jp(t,-1,o)||No(t,-1);if(n==40||et&&n==78&&o=="c")return fv(t)||Jp(t,1,o)||No(t,1);if(o==(et?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function hc(t,e){t.someProp("transformCopied",f=>{e=f(e,t)});let n=[],{content:o,openStart:r,openEnd:s}=e;for(;r>1&&s>1&&o.childCount==1&&o.firstChild.childCount==1;){r--,s--;let f=o.firstChild;n.push(f.type.name,f.attrs!=f.type.defaultAttrs?f.attrs:null),o=f.content}let i=t.someProp("clipboardSerializer")||Fn.fromSchema(t.state.schema),a=th(),l=a.createElement("div");l.appendChild(i.serializeFragment(o,{document:a}));let c=l.firstChild,u,d=0;for(;c&&c.nodeType==1&&(u=Xp[c.nodeName.toLowerCase()]);){for(let f=u.length-1;f>=0;f--){let p=a.createElement(u[f]);for(;l.firstChild;)p.appendChild(l.firstChild);l.appendChild(p),d++}c=l.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${r} ${s}${d?` -${d}`:""} ${JSON.stringify(n)}`);let m=t.someProp("clipboardTextSerializer",f=>f(e,t))||e.content.textBetween(0,e.content.size,`
`);return{dom:l,text:m,slice:e}}function Wp(t,e,n,o,r){let s=r.parent.type.spec.code,i,a;if(!n&&!e)return null;let l=e&&(o||s||!n);if(l){if(t.someProp("transformPastedText",m=>{e=m(e,s||o,t)}),s)return e?new T(N.from(t.state.schema.text(e.replace(/\r\n?/g,`
`))),0,0):T.empty;let d=t.someProp("clipboardTextParser",m=>m(e,r,o,t));if(d)a=d;else{let m=r.marks(),{schema:f}=t.state,p=Fn.fromSchema(f);i=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(g=>{let h=i.appendChild(document.createElement("p"));g&&h.appendChild(p.serializeNode(f.text(g,m)))})}}else t.someProp("transformPastedHTML",d=>{n=d(n,t)}),i=bv(n),Cr&&$v(i);let c=i&&i.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let d=+u[3];d>0;d--){let m=i.firstChild;for(;m&&m.nodeType!=1;)m=m.nextSibling;if(!m)break;i=m}if(a||(a=(t.someProp("clipboardParser")||t.someProp("domParser")||wr.fromSchema(t.state.schema)).parseSlice(i,{preserveWhitespace:!!(l||u),context:r,ruleFromNode(m){return m.nodeName=="BR"&&!m.nextSibling&&m.parentNode&&!gv.test(m.parentNode.nodeName)?{ignore:!0}:null}})),u)a=vv(Zp(a,+u[1],+u[2]),u[4]);else if(a=T.maxOpen(yv(a.content,r),!0),a.openStart||a.openEnd){let d=0,m=0;for(let f=a.content.firstChild;d<a.openStart&&!f.type.spec.isolating;d++,f=f.firstChild);for(let f=a.content.lastChild;m<a.openEnd&&!f.type.spec.isolating;m++,f=f.lastChild);a=Zp(a,d,m)}return t.someProp("transformPasted",d=>{a=d(a,t)}),a}const gv=/^(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 yv(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.index(n)),s,i=[];if(t.forEach(a=>{if(!i)return;let l=r.findWrapping(a.type),c;if(!l)return i=null;if(c=i.length&&s.length&&Gp(l,s,a,i[i.length-1],0))i[i.length-1]=c;else{i.length&&(i[i.length-1]=Qp(i[i.length-1],s.length));let u=qp(a,l);i.push(u),r=r.matchType(u.type),s=l}}),i)return N.from(i)}return t}function qp(t,e,n=0){for(let o=e.length-1;o>=n;o--)t=e[o].create(null,N.from(t));return t}function Gp(t,e,n,o,r){if(r<t.length&&r<e.length&&t[r]==e[r]){let s=Gp(t,e,n,o.lastChild,r+1);if(s)return o.copy(o.content.replaceChild(o.childCount-1,s));if(o.contentMatchAt(o.childCount).matchType(r==t.length-1?n.type:t[r+1]))return o.copy(o.content.append(N.from(qp(n,t,r+1))))}}function Qp(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,Qp(t.lastChild,e-1)),o=t.contentMatchAt(t.childCount).fillBefore(N.empty,!0);return t.copy(n.append(o))}function gc(t,e,n,o,r,s){let i=e<0?t.firstChild:t.lastChild,a=i.content;return t.childCount>1&&(s=0),r<o-1&&(a=gc(a,e,n,o,r+1,s)),r>=n&&(a=e<0?i.contentMatchAt(0).fillBefore(a,s<=r).append(a):a.append(i.contentMatchAt(i.childCount).fillBefore(N.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,i.copy(a))}function Zp(t,e,n){return e<t.openStart&&(t=new T(gc(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new T(gc(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const Xp={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let eh=null;function th(){return eh||(eh=document.implementation.createHTMLDocument("title"))}let yc=null;function wv(t){let e=window.trustedTypes;return e?(yc||(yc=e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),yc.createHTML(t)):t}function bv(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=th().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(t),r;if((r=o&&Xp[o[1].toLowerCase()])&&(t=r.map(s=>"<"+s+">").join("")+t+r.map(s=>"</"+s+">").reverse().join("")),n.innerHTML=wv(t),r)for(let s=0;s<r.length;s++)n=n.querySelector(r[s])||n;return n}function $v(t){let e=t.querySelectorAll(Ae?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let o=e[n];o.childNodes.length==1&&o.textContent==" "&&o.parentNode&&o.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),o)}}function vv(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,o;try{o=JSON.parse(e)}catch{return t}let{content:r,openStart:s,openEnd:i}=t;for(let a=o.length-2;a>=0;a-=2){let l=n.nodes[o[a]];if(!l||l.hasRequiredAttrs())break;r=N.from(l.create(o[a+1],r)),s++,i++}return new T(r,s,i)}const Le={},Ie={},Sv={touchstart:!0,touchmove:!0};class xv{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},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.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function kv(t){for(let e in Le){let n=Le[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=o=>{Cv(t,o)&&!bc(t,o)&&(t.editable||!(o.type in Ie))&&n(t,o)},Sv[e]?{passive:!0}:void 0)}Pe&&t.dom.addEventListener("input",()=>null),wc(t)}function rn(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function Ev(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function wc(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=o=>bc(t,o))})}function bc(t,e){return t.someProp("handleDOMEvents",n=>{let o=n[e.type];return o?o(t,e)||e.defaultPrevented:!1})}function Cv(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function Nv(t,e){!bc(t,e)&&Le[e.type]&&(t.editable||!(e.type in Ie))&&Le[e.type](t,e)}Ie.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!oh(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(Pt&&Ae&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),Eo&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let o=Date.now();t.input.lastIOSEnter=o,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==o&&(t.someProp("handleKeyDown",r=>r(t,Vn(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",o=>o(t,n))||hv(t,n)?n.preventDefault():rn(t,"key")},Ie.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)},Ie.keypress=(t,e)=>{let n=e;if(oh(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||et&&n.metaKey)return;if(t.someProp("handleKeyPress",r=>r(t,n))){n.preventDefault();return}let o=t.state.selection;if(!(o instanceof H)||!o.$from.sameParent(o.$to)){let r=String.fromCharCode(n.charCode);!/[\r\n]/.test(r)&&!t.someProp("handleTextInput",s=>s(t,o.$from.pos,o.$to.pos,r))&&t.dispatch(t.state.tr.insertText(r).scrollIntoView()),n.preventDefault()}};function wi(t){return{left:t.clientX,top:t.clientY}}function Av(t,e){let n=e.x-t.clientX,o=e.y-t.clientY;return n*n+o*o<100}function $c(t,e,n,o,r){if(o==-1)return!1;let s=t.state.doc.resolve(o);for(let i=s.depth+1;i>0;i--)if(t.someProp(e,a=>i>s.depth?a(t,n,s.nodeAfter,s.before(i),r,!0):a(t,n,s.node(i),s.before(i),r,!1)))return!0;return!1}function Ao(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let o=t.state.tr.setSelection(e);o.setMeta("pointer",!0),t.dispatch(o)}function Dv(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),o=n.nodeAfter;return o&&o.isAtom&&L.isSelectable(o)?(Ao(t,new L(n)),!0):!1}function Rv(t,e){if(e==-1)return!1;let n=t.state.selection,o,r;n instanceof L&&(o=n.node);let s=t.state.doc.resolve(e);for(let i=s.depth+1;i>0;i--){let a=i>s.depth?s.nodeAfter:s.node(i);if(L.isSelectable(a)){o&&n.$from.depth>0&&i>=n.$from.depth&&s.before(n.$from.depth+1)==n.$from.pos?r=s.before(n.$from.depth):r=s.before(i);break}}return r!=null?(Ao(t,L.create(t.state.doc,r)),!0):!1}function Ov(t,e,n,o,r){return $c(t,"handleClickOn",e,n,o)||t.someProp("handleClick",s=>s(t,e,o))||(r?Rv(t,n):Dv(t,n))}function Tv(t,e,n,o){return $c(t,"handleDoubleClickOn",e,n,o)||t.someProp("handleDoubleClick",r=>r(t,e,o))}function Mv(t,e,n,o){return $c(t,"handleTripleClickOn",e,n,o)||t.someProp("handleTripleClick",r=>r(t,e,o))||jv(t,n,o)}function jv(t,e,n){if(n.button!=0)return!1;let o=t.state.doc;if(e==-1)return o.inlineContent?(Ao(t,H.create(o,0,o.content.size)),!0):!1;let r=o.resolve(e);for(let s=r.depth+1;s>0;s--){let i=s>r.depth?r.nodeAfter:r.node(s),a=r.before(s);if(i.inlineContent)Ao(t,H.create(o,a+1,a+1+i.content.size));else if(L.isSelectable(i))Ao(t,L.create(o,a));else continue;return!0}}function vc(t){return bi(t)}const nh=et?"metaKey":"ctrlKey";Le.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let o=vc(t),r=Date.now(),s="singleClick";r-t.input.lastClick.time<500&&Av(n,t.input.lastClick)&&!n[nh]&&(t.input.lastClick.type=="singleClick"?s="doubleClick":t.input.lastClick.type=="doubleClick"&&(s="tripleClick")),t.input.lastClick={time:r,x:n.clientX,y:n.clientY,type:s};let i=t.posAtCoords(wi(n));i&&(s=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new Pv(t,i,n,!!o)):(s=="doubleClick"?Tv:Mv)(t,i.pos,i.inside,n)?n.preventDefault():rn(t,"pointer"))};class Pv{constructor(e,n,o,r){this.view=e,this.pos=n,this.event=o,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!o[nh],this.allowDefault=o.shiftKey;let s,i;if(n.inside>-1)s=e.state.doc.nodeAt(n.inside),i=n.inside;else{let u=e.state.doc.resolve(n.pos);s=u.parent,i=u.depth?u.before():0}const a=r?null:o.target,l=a?e.docView.nearestDesc(a,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:c}=e.state;(o.button==0&&s.type.spec.draggable&&s.type.spec.selectable!==!1||c instanceof L&&c.from<=i&&c.to>i)&&(this.mightDrag={node:s,pos:i,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&ht&&!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()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),rn(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),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(()=>It(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(wi(e))),this.updateAllowDefault(e),this.allowDefault||!n?rn(this.view,"pointer"):Ov(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Pe&&this.mightDrag&&!this.mightDrag.node.isAtom||Ae&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(Ao(this.view,J.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):rn(this.view,"pointer")}move(e){this.updateAllowDefault(e),rn(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}Le.touchstart=t=>{t.input.lastTouch=Date.now(),vc(t),rn(t,"pointer")},Le.touchmove=t=>{t.input.lastTouch=Date.now(),rn(t,"pointer")},Le.contextmenu=t=>vc(t);function oh(t,e){return t.composing?!0:Pe&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const Lv=Pt?5e3:-1;Ie.compositionstart=Ie.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof H&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(o=>o.type.spec.inclusive===!1)))t.markCursor=t.state.storedMarks||n.marks(),bi(t,!0),t.markCursor=null;else if(bi(t,!e.selection.empty),ht&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let o=t.domSelectionRange();for(let r=o.focusNode,s=o.focusOffset;r&&r.nodeType==1&&s!=0;){let i=s<0?r.lastChild:r.childNodes[s-1];if(!i)break;if(i.nodeType==3){let a=t.domSelection();a&&a.collapse(i,i.nodeValue.length);break}else r=i,s=-1}}t.input.composing=!0}rh(t,Lv)},Ie.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,rh(t,20))};function rh(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>bi(t),e))}function sh(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=zv());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function Iv(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=D$(e.focusNode,e.focusOffset),o=R$(e.focusNode,e.focusOffset);if(n&&o&&n!=o){let r=o.pmViewDesc,s=t.domObserver.lastChangedTextNode;if(n==s||o==s)return s;if(!r||!r.isText(o.nodeValue))return o;if(t.input.compositionNode==o){let i=n.pmViewDesc;if(!(!i||!i.isText(n.nodeValue)))return o}}return n||o}function zv(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function bi(t,e=!1){if(!(Pt&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),sh(t),e||t.docView&&t.docView.dirty){let n=uc(t);return n&&!n.eq(t.state.selection)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!t.state.selection.empty?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function Bv(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let o=getSelection(),r=document.createRange();r.selectNodeContents(e),t.dom.blur(),o.removeAllRanges(),o.addRange(r),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const Or=He&&en<15||Eo&&P$<604;Le.copy=Ie.cut=(t,e)=>{let n=e,o=t.state.selection,r=n.type=="cut";if(o.empty)return;let s=Or?null:n.clipboardData,i=o.content(),{dom:a,text:l}=hc(t,i);s?(n.preventDefault(),s.clearData(),s.setData("text/html",a.innerHTML),s.setData("text/plain",l)):Bv(t,a),r&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function Fv(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function Hv(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,o=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(o.contentEditable="true"),o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus();let r=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),o.parentNode&&o.parentNode.removeChild(o),n?Tr(t,o.value,null,r,e):Tr(t,o.textContent,o.innerHTML,r,e)},50)}function Tr(t,e,n,o,r){let s=Wp(t,e,n,o,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,r,s||T.empty)))return!0;if(!s)return!1;let i=Fv(s),a=i?t.state.tr.replaceSelectionWith(i,o):t.state.tr.replaceSelection(s);return t.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function ih(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Ie.paste=(t,e)=>{let n=e;if(t.composing&&!Pt)return;let o=Or?null:n.clipboardData,r=t.input.shiftKey&&t.input.lastKeyCode!=45;o&&Tr(t,ih(o),o.getData("text/html"),r,n)?n.preventDefault():Hv(t,n)};class ah{constructor(e,n,o){this.slice=e,this.move=n,this.node=o}}const Vv=et?"altKey":"ctrlKey";function lh(t,e){let n=t.someProp("dragCopies",o=>!o(e));return n??!e[Vv]}Le.dragstart=(t,e)=>{let n=e,o=t.input.mouseDown;if(o&&o.done(),!n.dataTransfer)return;let r=t.state.selection,s=r.empty?null:t.posAtCoords(wi(n)),i;if(!(s&&s.pos>=r.from&&s.pos<=(r instanceof L?r.to-1:r.to))){if(o&&o.mightDrag)i=L.create(t.state.doc,o.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=t.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=t.docView&&(i=L.create(t.state.doc,d.posBefore))}}let a=(i||t.state.selection).content(),{dom:l,text:c,slice:u}=hc(t,a);(!n.dataTransfer.files.length||!Ae||pp>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(Or?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",Or||n.dataTransfer.setData("text/plain",c),t.dragging=new ah(u,lh(t,n),i)},Le.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)},Ie.dragover=Ie.dragenter=(t,e)=>e.preventDefault(),Ie.drop=(t,e)=>{let n=e,o=t.dragging;if(t.dragging=null,!n.dataTransfer)return;let r=t.posAtCoords(wi(n));if(!r)return;let s=t.state.doc.resolve(r.pos),i=o&&o.slice;i?t.someProp("transformPasted",p=>{i=p(i,t)}):i=Wp(t,ih(n.dataTransfer),Or?null:n.dataTransfer.getData("text/html"),!1,s);let a=!!(o&&lh(t,n));if(t.someProp("handleDrop",p=>p(t,n,i||T.empty,a))){n.preventDefault();return}if(!i)return;n.preventDefault();let l=i?g$(t.state.doc,s.pos,i):s.pos;l==null&&(l=s.pos);let c=t.state.tr;if(a){let{node:p}=o;p?p.replace(c):c.deleteSelection()}let u=c.mapping.map(l),d=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,m=c.doc;if(d?c.replaceRangeWith(u,u,i.content.firstChild):c.replaceRange(u,u,i),c.doc.eq(m))return;let f=c.doc.resolve(u);if(d&&L.isSelectable(i.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(i.content.firstChild))c.setSelection(new L(f));else{let p=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((g,h,y,b)=>p=b),c.setSelection(mc(t,f,c.doc.resolve(p)))}t.focus(),t.dispatch(c.setMeta("uiEvent","drop"))},Le.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&It(t)},20))},Le.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)},Le.beforeinput=(t,e)=>{if(Ae&&Pt&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:o}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=o||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",s=>s(t,Vn(8,"Backspace")))))return;let{$cursor:r}=t.state.selection;r&&r.pos>0&&t.dispatch(t.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let t in Ie)Le[t]=Ie[t];function Mr(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class $i{constructor(e,n){this.toDOM=e,this.spec=n||Yn,this.side=this.spec.side||0}map(e,n,o,r){let{pos:s,deleted:i}=e.mapResult(n.from+r,this.side<0?-1:1);return i?null:new nt(s-o,s-o,this)}valid(){return!0}eq(e){return this==e||e instanceof $i&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Mr(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class sn{constructor(e,n){this.attrs=e,this.spec=n||Yn}map(e,n,o,r){let s=e.map(n.from+r,this.spec.inclusiveStart?-1:1)-o,i=e.map(n.to+r,this.spec.inclusiveEnd?1:-1)-o;return s>=i?null:new nt(s,i,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof sn&&Mr(this.attrs,e.attrs)&&Mr(this.spec,e.spec)}static is(e){return e.type instanceof sn}destroy(){}}class Sc{constructor(e,n){this.attrs=e,this.spec=n||Yn}map(e,n,o,r){let s=e.mapResult(n.from+r,1);if(s.deleted)return null;let i=e.mapResult(n.to+r,-1);return i.deleted||i.pos<=s.pos?null:new nt(s.pos-o,i.pos-o,this)}valid(e,n){let{index:o,offset:r}=e.content.findIndex(n.from),s;return r==n.from&&!(s=e.child(o)).isText&&r+s.nodeSize==n.to}eq(e){return this==e||e instanceof Sc&&Mr(this.attrs,e.attrs)&&Mr(this.spec,e.spec)}destroy(){}}class nt{constructor(e,n,o){this.from=e,this.to=n,this.type=o}copy(e,n){return new nt(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,o){return this.type.map(e,this,n,o)}static widget(e,n,o){return new nt(e,e,new $i(n,o))}static inline(e,n,o,r){return new nt(e,n,new sn(o,r))}static node(e,n,o,r){return new nt(e,n,new Sc(o,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof sn}get widget(){return this.type instanceof $i}}const Do=[],Yn={};class ue{constructor(e,n){this.local=e.length?e:Do,this.children=n.length?n:Do}static create(e,n){return n.length?vi(n,e,0,Yn):De}find(e,n,o){let r=[];return this.findInner(e??0,n??1e9,r,0,o),r}findInner(e,n,o,r,s){for(let i=0;i<this.local.length;i++){let a=this.local[i];a.from<=n&&a.to>=e&&(!s||s(a.spec))&&o.push(a.copy(a.from+r,a.to+r))}for(let i=0;i<this.children.length;i+=3)if(this.children[i]<n&&this.children[i+1]>e){let a=this.children[i]+1;this.children[i+2].findInner(e-a,n-a,o,r+a,s)}}map(e,n,o){return this==De||e.maps.length==0?this:this.mapInner(e,n,0,0,o||Yn)}mapInner(e,n,o,r,s){let i;for(let a=0;a<this.local.length;a++){let l=this.local[a].map(e,o,r);l&&l.type.valid(n,l)?(i||(i=[])).push(l):s.onRemove&&s.onRemove(this.local[a].spec)}return this.children.length?Uv(this.children,i||[],e,n,o,r,s):i?new ue(i.sort(Kn),Do):De}add(e,n){return n.length?this==De?ue.create(e,n):this.addInner(e,n,0):this}addInner(e,n,o){let r,s=0;e.forEach((a,l)=>{let c=l+o,u;if(u=uh(n,a,c)){for(r||(r=this.children.slice());s<r.length&&r[s]<l;)s+=3;r[s]==l?r[s+2]=r[s+2].addInner(a,u,c+1):r.splice(s,0,l,l+a.nodeSize,vi(u,a,c+1,Yn)),s+=3}});let i=ch(s?dh(n):n,-o);for(let a=0;a<i.length;a++)i[a].type.valid(e,i[a])||i.splice(a--,1);return new ue(i.length?this.local.concat(i).sort(Kn):this.local,r||this.children)}remove(e){return e.length==0||this==De?this:this.removeInner(e,0)}removeInner(e,n){let o=this.children,r=this.local;for(let s=0;s<o.length;s+=3){let i,a=o[s]+n,l=o[s+1]+n;for(let u=0,d;u<e.length;u++)(d=e[u])&&d.from>a&&d.to<l&&(e[u]=null,(i||(i=[])).push(d));if(!i)continue;o==this.children&&(o=this.children.slice());let c=o[s+2].removeInner(i,a+1);c!=De?o[s+2]=c:(o.splice(s,3),s-=3)}if(r.length){for(let s=0,i;s<e.length;s++)if(i=e[s])for(let a=0;a<r.length;a++)r[a].eq(i,n)&&(r==this.local&&(r=this.local.slice()),r.splice(a--,1))}return o==this.children&&r==this.local?this:r.length||o.length?new ue(r,o):De}forChild(e,n){if(this==De)return this;if(n.isLeaf)return ue.empty;let o,r;for(let a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(o=this.children[a+2]);break}let s=e+1,i=s+n.content.size;for(let a=0;a<this.local.length;a++){let l=this.local[a];if(l.from<i&&l.to>s&&l.type instanceof sn){let c=Math.max(s,l.from)-s,u=Math.min(i,l.to)-s;c<u&&(r||(r=[])).push(l.copy(c,u))}}if(r){let a=new ue(r.sort(Kn),Do);return o?new an([a,o]):a}return o||De}eq(e){if(this==e)return!0;if(!(e instanceof ue)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0}locals(e){return xc(this.localsInner(e))}localsInner(e){if(this==De)return Do;if(e.inlineContent||!this.local.some(sn.is))return this.local;let n=[];for(let o=0;o<this.local.length;o++)this.local[o].type instanceof sn||n.push(this.local[o]);return n}forEachSet(e){e(this)}}ue.empty=new ue([],[]),ue.removeOverlap=xc;const De=ue.empty;class an{constructor(e){this.members=e}map(e,n){const o=this.members.map(r=>r.map(e,n,Yn));return an.from(o)}forChild(e,n){if(n.isLeaf)return ue.empty;let o=[];for(let r=0;r<this.members.length;r++){let s=this.members[r].forChild(e,n);s!=De&&(s instanceof an?o=o.concat(s.members):o.push(s))}return an.from(o)}eq(e){if(!(e instanceof an)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,o=!0;for(let r=0;r<this.members.length;r++){let s=this.members[r].localsInner(e);if(s.length)if(!n)n=s;else{o&&(n=n.slice(),o=!1);for(let i=0;i<s.length;i++)n.push(s[i])}}return n?xc(o?n:n.sort(Kn)):Do}static from(e){switch(e.length){case 0:return De;case 1:return e[0];default:return new an(e.every(n=>n instanceof ue)?e:e.reduce((n,o)=>n.concat(o instanceof ue?o:o.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}}function Uv(t,e,n,o,r,s,i){let a=t.slice();for(let c=0,u=s;c<n.maps.length;c++){let d=0;n.maps[c].forEach((m,f,p,g)=>{let h=g-p-(f-m);for(let y=0;y<a.length;y+=3){let b=a[y+1];if(b<0||m>b+u-d)continue;let $=a[y]+u-d;f>=$?a[y+1]=m<=$?-2:-1:m>=u&&h&&(a[y]+=h,a[y+1]+=h)}d+=h}),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c<a.length;c+=3)if(a[c+1]<0){if(a[c+1]==-2){l=!0,a[c+1]=-1;continue}let u=n.map(t[c]+s),d=u-r;if(d<0||d>=o.content.size){l=!0;continue}let m=n.map(t[c+1]+s,-1),f=m-r,{index:p,offset:g}=o.content.findIndex(d),h=o.maybeChild(p);if(h&&g==d&&g+h.nodeSize==f){let y=a[c+2].mapInner(n,h,u+1,t[c]+s+1,i);y!=De?(a[c]=d,a[c+1]=f,a[c+2]=y):(a[c+1]=-2,l=!0)}else l=!0}if(l){let c=_v(a,t,e,n,r,s,i),u=vi(c,o,0,i);e=u.local;for(let d=0;d<a.length;d+=3)a[d+1]<0&&(a.splice(d,3),d-=3);for(let d=0,m=0;d<u.children.length;d+=3){let f=u.children[d];for(;m<a.length&&a[m]<f;)m+=3;a.splice(m,0,u.children[d],u.children[d+1],u.children[d+2])}}return new ue(e.sort(Kn),a)}function ch(t,e){if(!e||!t.length)return t;let n=[];for(let o=0;o<t.length;o++){let r=t[o];n.push(new nt(r.from+e,r.to+e,r.type))}return n}function _v(t,e,n,o,r,s,i){function a(l,c){for(let u=0;u<l.local.length;u++){let d=l.local[u].map(o,r,c);d?n.push(d):i.onRemove&&i.onRemove(l.local[u].spec)}for(let u=0;u<l.children.length;u+=3)a(l.children[u+2],l.children[u]+c+1)}for(let l=0;l<t.length;l+=3)t[l+1]==-1&&a(t[l+2],e[l]+s+1);return n}function uh(t,e,n){if(e.isLeaf)return null;let o=n+e.nodeSize,r=null;for(let s=0,i;s<t.length;s++)(i=t[s])&&i.from>n&&i.to<o&&((r||(r=[])).push(i),t[s]=null);return r}function dh(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function vi(t,e,n,o){let r=[],s=!1;e.forEach((a,l)=>{let c=uh(t,a,l+n);if(c){s=!0;let u=vi(c,a,n+l+1,o);u!=De&&r.push(l,l+a.nodeSize,u)}});let i=ch(s?dh(t):t,-n).sort(Kn);for(let a=0;a<i.length;a++)i[a].type.valid(e,i[a])||(o.onRemove&&o.onRemove(i[a].spec),i.splice(a--,1));return i.length||r.length?new ue(i,r):De}function Kn(t,e){return t.from-e.from||t.to-e.to}function xc(t){let e=t;for(let n=0;n<e.length-1;n++){let o=e[n];if(o.from!=o.to)for(let r=n+1;r<e.length;r++){let s=e[r];if(s.from==o.from){s.to!=o.to&&(e==t&&(e=t.slice()),e[r]=s.copy(s.from,o.to),mh(e,r+1,s.copy(o.to,s.to)));continue}else{s.from<o.to&&(e==t&&(e=t.slice()),e[n]=o.copy(o.from,s.from),mh(e,r,o.copy(s.from,o.to)));break}}}return e}function mh(t,e,n){for(;e<t.length&&Kn(n,t[e])>0;)e++;t.splice(e,0,n)}function kc(t){let e=[];return t.someProp("decorations",n=>{let o=n(t.state);o&&o!=De&&e.push(o)}),t.cursorWrapper&&e.push(ue.create(t.state.doc,[t.cursorWrapper.deco])),an.from(e)}const Jv={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},Yv=He&&en<=11;class Kv{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}}class Wv{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Kv,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(o=>{for(let r=0;r<o.length;r++)this.queue.push(o[r]);He&&en<=11&&o.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),Yv&&(this.onCharData=o=>{this.queue.push({target:o.target,type:"characterData",oldValue:o.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,Jv)),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 n=0;n<e.length;n++)this.queue.push(e[n]);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(Fp(this.view)){if(this.suppressingSelectionUpdates)return It(this.view);if(He&&en<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Hn(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 n=new Set,o;for(let s=e.focusNode;s;s=ko(s))n.add(s);for(let s=e.anchorNode;s;s=ko(s))if(n.has(s)){o=s;break}let r=o&&this.view.docView.nearestDesc(o);if(r&&r.ignoreMutation({type:"selection",target:o.nodeType==3?o.parentNode:o}))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 n=this.pendingRecords();n.length&&(this.queue=[]);let o=e.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(o)&&Fp(e)&&!this.ignoreSelectionChange(o),s=-1,i=-1,a=!1,l=[];if(e.editable)for(let u=0;u<n.length;u++){let d=this.registerMutation(n[u],l);d&&(s=s<0?d.from:Math.min(d.from,s),i=i<0?d.to:Math.max(d.to,i),d.typeOver&&(a=!0))}if(ht&&l.length){let u=l.filter(d=>d.nodeName=="BR");if(u.length==2){let[d,m]=u;d.parentNode&&d.parentNode.parentNode==m.parentNode?m.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let m of u){let f=m.parentNode;f&&f.nodeName=="LI"&&(!d||Qv(e,d)!=f)&&m.remove()}}}let c=null;s<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&pi(o)&&(c=uc(e))&&c.eq(J.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,It(e),this.currentSelection.set(o),e.scrollToSelection()):(s>-1||r)&&(s>-1&&(e.docView.markDirty(s,i),qv(e)),this.handleDOMChange(s,i,a,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(o)||It(e),this.currentSelection.set(o))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let o=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(o==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!o||o.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;u<e.addedNodes.length;u++){let d=e.addedNodes[u];n.push(d),d.nodeType==3&&(this.lastChangedTextNode=d)}if(o.contentDOM&&o.contentDOM!=o.dom&&!o.contentDOM.contains(e.target))return{from:o.posBefore,to:o.posAfter};let r=e.previousSibling,s=e.nextSibling;if(He&&en<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:d,nextSibling:m}=e.addedNodes[u];(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(r=d),(!m||Array.prototype.indexOf.call(e.addedNodes,m)<0)&&(s=m)}let i=r&&r.parentNode==e.target?ve(r)+1:0,a=o.localPosFromDOM(e.target,i,-1),l=s&&s.parentNode==e.target?ve(s):e.target.childNodes.length,c=o.localPosFromDOM(e.target,l,1);return{from:a,to:c}}else return e.type=="attributes"?{from:o.posAtStart-o.border,to:o.posAtEnd+o.border}:(this.lastChangedTextNode=e.target,{from:o.posAtStart,to:o.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let fh=new WeakMap,ph=!1;function qv(t){if(!fh.has(t)&&(fh.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=ht,ph)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."),ph=!0}}function hh(t,e){let n=e.startContainer,o=e.startOffset,r=e.endContainer,s=e.endOffset,i=t.domAtPos(t.state.selection.anchor);return Hn(i.node,i.offset,r,s)&&([n,o,r,s]=[r,s,n,o]),{anchorNode:n,anchorOffset:o,focusNode:r,focusOffset:s}}function Gv(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return hh(t,r)}let n;function o(r){r.preventDefault(),r.stopImmediatePropagation(),n=r.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",o,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",o,!0),n?hh(t,n):null}function Qv(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let o=t.docView.nearestDesc(n,!0);if(o&&o.node.isBlock)return n}return null}function Zv(t,e,n){let{node:o,fromOffset:r,toOffset:s,from:i,to:a}=t.docView.parseRange(e,n),l=t.domSelectionRange(),c,u=l.anchorNode;if(u&&t.dom.contains(u.nodeType==1?u:u.parentNode)&&(c=[{node:u,offset:l.anchorOffset}],pi(l)||c.push({node:l.focusNode,offset:l.focusOffset})),Ae&&t.input.lastKeyCode===8)for(let h=s;h>r;h--){let y=o.childNodes[h-1],b=y.pmViewDesc;if(y.nodeName=="BR"&&!b){s=h;break}if(!b||b.size)break}let d=t.state.doc,m=t.someProp("domParser")||wr.fromSchema(t.state.schema),f=d.resolve(i),p=null,g=m.parse(o,{topNode:f.parent,topMatch:f.parent.contentMatchAt(f.index()),topOpen:!0,from:r,to:s,preserveWhitespace:f.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:Xv,context:f});if(c&&c[0].pos!=null){let h=c[0].pos,y=c[1]&&c[1].pos;y==null&&(y=h),p={anchor:h+i,head:y+i}}return{doc:g,sel:p,from:i,to:a}}function Xv(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(Pe&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||Pe&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const e1=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function t1(t,e,n,o,r){let s=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let E=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,U=uc(t,E);if(U&&!t.state.selection.eq(U)){if(Ae&&Pt&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",ne=>ne(t,Vn(13,"Enter"))))return;let ae=t.state.tr.setSelection(U);E=="pointer"?ae.setMeta("pointer",!0):E=="key"&&ae.scrollIntoView(),s&&ae.setMeta("composition",s),t.dispatch(ae)}return}let i=t.state.doc.resolve(e),a=i.sharedDepth(n);e=i.before(a+1),n=t.state.doc.resolve(n).after(a+1);let l=t.state.selection,c=Zv(t,e,n),u=t.state.doc,d=u.slice(c.from,c.to),m,f;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(m=t.state.selection.to,f="end"):(m=t.state.selection.from,f="start"),t.input.lastKeyCode=null;let p=r1(d.content,c.doc.content,c.from,m,f);if(p&&t.input.domChangeCount++,(Eo&&t.input.lastIOSEnter>Date.now()-225||Pt)&&r.some(E=>E.nodeType==1&&!e1.test(E.nodeName))&&(!p||p.endA>=p.endB)&&t.someProp("handleKeyDown",E=>E(t,Vn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!p)if(o&&l instanceof H&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))p={start:l.from,endA:l.to,endB:l.to};else{if(c.sel){let E=gh(t,t.state.doc,c.sel);if(E&&!E.eq(t.state.selection)){let U=t.state.tr.setSelection(E);s&&U.setMeta("composition",s),t.dispatch(U)}}return}t.state.selection.from<t.state.selection.to&&p.start==p.endB&&t.state.selection instanceof H&&(p.start>t.state.selection.from&&p.start<=t.state.selection.from+2&&t.state.selection.from>=c.from?p.start=t.state.selection.from:p.endA<t.state.selection.to&&p.endA>=t.state.selection.to-2&&t.state.selection.to<=c.to&&(p.endB+=t.state.selection.to-p.endA,p.endA=t.state.selection.to)),He&&en<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>c.from&&c.doc.textBetween(p.start-c.from-1,p.start-c.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let g=c.doc.resolveNoCache(p.start-c.from),h=c.doc.resolveNoCache(p.endB-c.from),y=u.resolve(p.start),b=g.sameParent(h)&&g.parent.inlineContent&&y.end()>=p.endA,$;if((Eo&&t.input.lastIOSEnter>Date.now()-225&&(!b||r.some(E=>E.nodeName=="DIV"||E.nodeName=="P"))||!b&&g.pos<c.doc.content.size&&(!g.sameParent(h)||!g.parent.inlineContent)&&($=J.findFrom(c.doc.resolve(g.pos+1),1,!0))&&$.head>g.pos)&&t.someProp("handleKeyDown",E=>E(t,Vn(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>p.start&&o1(u,p.start,p.endA,g,h)&&t.someProp("handleKeyDown",E=>E(t,Vn(8,"Backspace")))){Pt&&Ae&&t.domObserver.suppressSelectionUpdates();return}Ae&&p.endB==p.start&&(t.input.lastChromeDelete=Date.now()),Pt&&!b&&g.start()!=h.start()&&h.parentOffset==0&&g.depth==h.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==p.endA&&(p.endB-=2,h=c.doc.resolveNoCache(p.endB-c.from),setTimeout(()=>{t.someProp("handleKeyDown",function(E){return E(t,Vn(13,"Enter"))})},20));let v=p.start,k=p.endA,x,C,O;if(b){if(g.pos==h.pos)He&&en<=11&&g.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>It(t),20)),x=t.state.tr.delete(v,k),C=u.resolve(p.start).marksAcross(u.resolve(p.endA));else if(p.endA==p.endB&&(O=n1(g.parent.content.cut(g.parentOffset,h.parentOffset),y.parent.content.cut(y.parentOffset,p.endA-y.start()))))x=t.state.tr,O.type=="add"?x.addMark(v,k,O.mark):x.removeMark(v,k,O.mark);else if(g.parent.child(g.index()).isText&&g.index()==h.index()-(h.textOffset?0:1)){let E=g.parent.textBetween(g.parentOffset,h.parentOffset);if(t.someProp("handleTextInput",U=>U(t,v,k,E)))return;x=t.state.tr.insertText(E,v,k)}}if(x||(x=t.state.tr.replace(v,k,c.doc.slice(p.start-c.from,p.endB-c.from))),c.sel){let E=gh(t,x.doc,c.sel);E&&!(Ae&&t.composing&&E.empty&&(p.start!=p.endB||t.input.lastChromeDelete<Date.now()-100)&&(E.head==v||E.head==x.mapping.map(k)-1)||He&&E.empty&&E.head==v)&&x.setSelection(E)}C&&x.ensureMarks(C),s&&x.setMeta("composition",s),t.dispatch(x.scrollIntoView())}function gh(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:mc(t,e.resolve(n.anchor),e.resolve(n.head))}function n1(t,e){let n=t.firstChild.marks,o=e.firstChild.marks,r=n,s=o,i,a,l;for(let u=0;u<o.length;u++)r=o[u].removeFromSet(r);for(let u=0;u<n.length;u++)s=n[u].removeFromSet(s);if(r.length==1&&s.length==0)a=r[0],i="add",l=u=>u.mark(a.addToSet(u.marks));else if(r.length==0&&s.length==1)a=s[0],i="remove",l=u=>u.mark(a.removeFromSet(u.marks));else return null;let c=[];for(let u=0;u<e.childCount;u++)c.push(l(e.child(u)));if(N.from(c).eq(t))return{mark:a,type:i}}function o1(t,e,n,o,r){if(n-e<=r.pos-o.pos||Ec(o,!0,!1)<r.pos)return!1;let s=t.resolve(e);if(!o.parent.isTextblock){let a=s.nodeAfter;return a!=null&&n==e+a.nodeSize}if(s.parentOffset<s.parent.content.size||!s.parent.isTextblock)return!1;let i=t.resolve(Ec(s,!0,!0));return!i.parent.isTextblock||i.pos>n||Ec(i,!0,!1)<n?!1:o.parent.content.cut(o.parentOffset).eq(i.parent.content)}function Ec(t,e,n){let o=t.depth,r=e?t.end():t.pos;for(;o>0&&(e||t.indexAfter(o)==t.node(o).childCount);)o--,r++,e=!1;if(n){let s=t.node(o).maybeChild(t.indexAfter(o));for(;s&&!s.isLeaf;)s=s.firstChild,r++}return r}function r1(t,e,n,o,r){let s=t.findDiffStart(e,n);if(s==null)return null;let{a:i,b:a}=t.findDiffEnd(e,n+t.size,n+e.size);if(r=="end"){let l=Math.max(0,s-Math.min(i,a));o-=i+l-s}if(i<s&&t.size<e.size){let l=o<=s&&o>=i?s-o:0;s-=l,s&&s<e.size&&yh(e.textBetween(s-1,s+1))&&(s+=l?1:-1),a=s+(a-i),i=s}else if(a<s){let l=o<=s&&o>=a?s-o:0;s-=l,s&&s<t.size&&yh(t.textBetween(s-1,s+1))&&(s+=l?1:-1),i=s+(i-a),a=s}return{start:s,endA:i,endB:a}}function yh(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}class s1{constructor(e,n){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 xv,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(Sh),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=$h(this),bh(this),this.nodeViews=vh(this),this.docView=Ap(this.state.doc,wh(this),kc(this),this.dom,this),this.domObserver=new Wv(this,(o,r,s,i)=>t1(this,o,r,s,i)),this.domObserver.start(),kv(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 n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&wc(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Sh),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let o in this._props)n[o]=this._props[o];n.state=this.state;for(let o in e)n[o]=e[o];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var o;let r=this.state,s=!1,i=!1;e.storedMarks&&this.composing&&(sh(this),i=!0),this.state=e;let a=r.plugins!=e.plugins||this._props.plugins!=n.plugins;if(a||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let f=vh(this);a1(f,this.nodeViews)&&(this.nodeViews=f,s=!0)}(a||n.handleDOMEvents!=this._props.handleDOMEvents)&&wc(this),this.editable=$h(this),bh(this);let l=kc(this),c=wh(this),u=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",d=s||!this.docView.matchesNode(e.doc,c,l);(d||!e.selection.eq(r.selection))&&(i=!0);let m=u=="preserve"&&i&&this.dom.style.overflowAnchor==null&&z$(this);if(i){this.domObserver.stop();let f=d&&(He||Ae)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&i1(r.selection,e.selection);if(d){let p=Ae?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Iv(this)),(s||!this.docView.update(e.doc,c,l,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=Ap(e.doc,c,l,this.dom,this)),p&&!this.trackWrites&&(f=!0)}f||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&lv(this))?It(this,f):(zp(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(r),!((o=this.dragging)===null||o===void 0)&&o.node&&!r.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,r),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():m&&B$(m)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof L){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&hp(this,n.getBoundingClientRect(),e)}else hp(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 n=0;n<this.directPlugins.length;n++){let o=this.directPlugins[n];o.spec.view&&this.pluginViews.push(o.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let o=this.state.plugins[n];o.spec.view&&this.pluginViews.push(o.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let o=this.pluginViews[n];o.update&&o.update(this,e)}}updateDraggedNode(e,n){let o=e.node,r=-1;if(this.state.doc.nodeAt(o.from)==o.node)r=o.from;else{let s=o.from+(this.state.doc.content.size-n.doc.content.size);(s>0&&this.state.doc.nodeAt(s))==o.node&&(r=s)}this.dragging=new ah(e.slice,e.move,r<0?void 0:L.create(this.state.doc,r))}someProp(e,n){let o=this._props&&this._props[e],r;if(o!=null&&(r=n?n(o):o))return r;for(let i=0;i<this.directPlugins.length;i++){let a=this.directPlugins[i].props[e];if(a!=null&&(r=n?n(a):a))return r}let s=this.state.plugins;if(s)for(let i=0;i<s.length;i++){let a=s[i].props[e];if(a!=null&&(r=n?n(a):a))return r}}hasFocus(){if(He){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&&F$(this.dom),It(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return J$(this,e)}coordsAtPos(e,n=1){return vp(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,o=-1){let r=this.docView.posFromDOM(e,n,o);if(r==null)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,n){return G$(this,n||this.state,e)}pasteHTML(e,n){return Tr(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return Tr(this,e,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(e){return hc(this,e)}destroy(){this.docView&&(Ev(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],kc(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,N$())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return Nv(this,e)}dispatch(e){let n=this._props.dispatchTransaction;n?n.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){let e=this.domSelection();return e?Pe&&this.root.nodeType===11&&T$(this.dom.ownerDocument)==this.dom&&Gv(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}function wh(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let o in n)o=="class"?e.class+=" "+n[o]:o=="style"?e.style=(e.style?e.style+";":"")+n[o]:!e[o]&&o!="contenteditable"&&o!="nodeName"&&(e[o]=String(n[o]))}),e.translate||(e.translate="no"),[nt.node(0,t.state.doc.content.size,e)]}function bh(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:nt.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function $h(t){return!t.someProp("editable",e=>e(t.state)===!1)}function i1(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function vh(t){let e=Object.create(null);function n(o){for(let r in o)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=o[r])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function a1(t,e){let n=0,o=0;for(let r in t){if(t[r]!=e[r])return!0;n++}for(let r in e)o++;return n!=o}function Sh(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var ln={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:"'"},Si={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},l1=typeof navigator<"u"&&/Mac/.test(navigator.platform),c1=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Se=0;Se<10;Se++)ln[48+Se]=ln[96+Se]=String(Se);for(var Se=1;Se<=24;Se++)ln[Se+111]="F"+Se;for(var Se=65;Se<=90;Se++)ln[Se]=String.fromCharCode(Se+32),Si[Se]=String.fromCharCode(Se);for(var Cc in ln)Si.hasOwnProperty(Cc)||(Si[Cc]=ln[Cc]);function u1(t){var e=l1&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||c1&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Si:ln)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const d1=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function m1(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let o,r,s,i;for(let a=0;a<e.length-1;a++){let l=e[a];if(/^(cmd|meta|m)$/i.test(l))i=!0;else if(/^a(lt)?$/i.test(l))o=!0;else if(/^(c|ctrl|control)$/i.test(l))r=!0;else if(/^s(hift)?$/i.test(l))s=!0;else if(/^mod$/i.test(l))d1?i=!0:r=!0;else throw new Error("Unrecognized modifier name: "+l)}return o&&(n="Alt-"+n),r&&(n="Ctrl-"+n),i&&(n="Meta-"+n),s&&(n="Shift-"+n),n}function f1(t){let e=Object.create(null);for(let n in t)e[m1(n)]=t[n];return e}function Nc(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function p1(t){return new Fe({props:{handleKeyDown:h1(t)}})}function h1(t){let e=f1(t);return function(n,o){let r=u1(o),s,i=e[Nc(r,o)];if(i&&i(n.state,n.dispatch,n))return!0;if(r.length==1&&r!=" "){if(o.shiftKey){let a=e[Nc(r,o,!1)];if(a&&a(n.state,n.dispatch,n))return!0}if((o.shiftKey||o.altKey||o.metaKey||r.charCodeAt(0)>127)&&(s=ln[o.keyCode])&&s!=r){let a=e[Nc(s,o)];if(a&&a(n.state,n.dispatch,n))return!0}}return!1}}const Ac=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function xh(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const kh=(t,e,n)=>{let o=xh(t,n);if(!o)return!1;let r=Dc(o);if(!r){let i=o.blockRange(),a=i&&bo(i);return a==null?!1:(e&&e(t.tr.lift(i,a).scrollIntoView()),!0)}let s=r.nodeBefore;if(Mh(t,r,e,-1))return!0;if(o.parent.content.size==0&&(Ro(s,"end")||L.isSelectable(s)))for(let i=o.depth;;i--){let a=di(t.doc,o.before(i),o.after(i),T.empty);if(a&&a.slice.size<a.to-a.from){if(e){let l=t.tr.step(a);l.setSelection(Ro(s,"end")?J.findFrom(l.doc.resolve(l.mapping.map(r.pos,-1)),-1):L.create(l.doc,r.pos-s.nodeSize)),e(l.scrollIntoView())}return!0}if(i==1||o.node(i-1).childCount>1)break}return s.isAtom&&r.depth==o.depth-1?(e&&e(t.tr.delete(r.pos-s.nodeSize,r.pos).scrollIntoView()),!0):!1},g1=(t,e,n)=>{let o=xh(t,n);if(!o)return!1;let r=Dc(o);return r?Eh(t,r,e):!1},y1=(t,e,n)=>{let o=Nh(t,n);if(!o)return!1;let r=Rc(o);return r?Eh(t,r,e):!1};function Eh(t,e,n){let o=e.nodeBefore,r=o,s=e.pos-1;for(;!r.isTextblock;s--){if(r.type.spec.isolating)return!1;let u=r.lastChild;if(!u)return!1;r=u}let i=e.nodeAfter,a=i,l=e.pos+1;for(;!a.isTextblock;l++){if(a.type.spec.isolating)return!1;let u=a.firstChild;if(!u)return!1;a=u}let c=di(t.doc,s,l,T.empty);if(!c||c.from!=s||c instanceof pe&&c.slice.size>=l-s)return!1;if(n){let u=t.tr.step(c);u.setSelection(H.create(u.doc,s)),n(u.scrollIntoView())}return!0}function Ro(t,e,n=!1){for(let o=t;o;o=e=="start"?o.firstChild:o.lastChild){if(o.isTextblock)return!0;if(n&&o.childCount!=1)return!1}return!1}const Ch=(t,e,n)=>{let{$head:o,empty:r}=t.selection,s=o;if(!r)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):o.parentOffset>0)return!1;s=Dc(o)}let i=s&&s.nodeBefore;return!i||!L.isSelectable(i)?!1:(e&&e(t.tr.setSelection(L.create(t.doc,s.pos-i.nodeSize)).scrollIntoView()),!0)};function Dc(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function Nh(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const Ah=(t,e,n)=>{let o=Nh(t,n);if(!o)return!1;let r=Rc(o);if(!r)return!1;let s=r.nodeAfter;if(Mh(t,r,e,1))return!0;if(o.parent.content.size==0&&(Ro(s,"start")||L.isSelectable(s))){let i=di(t.doc,o.before(),o.after(),T.empty);if(i&&i.slice.size<i.to-i.from){if(e){let a=t.tr.step(i);a.setSelection(Ro(s,"start")?J.findFrom(a.doc.resolve(a.mapping.map(r.pos)),1):L.create(a.doc,a.mapping.map(r.pos))),e(a.scrollIntoView())}return!0}}return s.isAtom&&r.depth==o.depth-1?(e&&e(t.tr.delete(r.pos,r.pos+s.nodeSize).scrollIntoView()),!0):!1},Dh=(t,e,n)=>{let{$head:o,empty:r}=t.selection,s=o;if(!r)return!1;if(o.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):o.parentOffset<o.parent.content.size)return!1;s=Rc(o)}let i=s&&s.nodeAfter;return!i||!L.isSelectable(i)?!1:(e&&e(t.tr.setSelection(L.create(t.doc,s.pos)).scrollIntoView()),!0)};function Rc(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}const w1=(t,e)=>{let n=t.selection,o=n instanceof L,r;if(o){if(n.node.isTextblock||!Zt(t.doc,n.from))return!1;r=n.from}else if(r=ui(t.doc,n.from,-1),r==null)return!1;if(e){let s=t.tr.join(r);o&&s.setSelection(L.create(s.doc,r-t.doc.resolve(r).nodeBefore.nodeSize)),e(s.scrollIntoView())}return!0},b1=(t,e)=>{let n=t.selection,o;if(n instanceof L){if(n.node.isTextblock||!Zt(t.doc,n.to))return!1;o=n.to}else if(o=ui(t.doc,n.to,1),o==null)return!1;return e&&e(t.tr.join(o).scrollIntoView()),!0},$1=(t,e)=>{let{$from:n,$to:o}=t.selection,r=n.blockRange(o),s=r&&bo(r);return s==null?!1:(e&&e(t.tr.lift(r,s).scrollIntoView()),!0)},Rh=(t,e)=>{let{$head:n,$anchor:o}=t.selection;return!n.parent.type.spec.code||!n.sameParent(o)?!1:(e&&e(t.tr.insertText(`
`).scrollIntoView()),!0)};function Oc(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const v1=(t,e)=>{let{$head:n,$anchor:o}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(o))return!1;let r=n.node(-1),s=n.indexAfter(-1),i=Oc(r.contentMatchAt(s));if(!i||!r.canReplaceWith(s,s,i))return!1;if(e){let a=n.after(),l=t.tr.replaceWith(a,a,i.createAndFill());l.setSelection(J.near(l.doc.resolve(a),1)),e(l.scrollIntoView())}return!0},Oh=(t,e)=>{let n=t.selection,{$from:o,$to:r}=n;if(n instanceof We||o.parent.inlineContent||r.parent.inlineContent)return!1;let s=Oc(r.parent.contentMatchAt(r.indexAfter()));if(!s||!s.isTextblock)return!1;if(e){let i=(!o.parentOffset&&r.index()<r.parent.childCount?o:r).pos,a=t.tr.insert(i,s.createAndFill());a.setSelection(H.create(a.doc,i+1)),e(a.scrollIntoView())}return!0},Th=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let s=n.before();if(Mt(t.doc,s))return e&&e(t.tr.split(s).scrollIntoView()),!0}let o=n.blockRange(),r=o&&bo(o);return r==null?!1:(e&&e(t.tr.lift(o,r).scrollIntoView()),!0)};function S1(t){return(e,n)=>{let{$from:o,$to:r}=e.selection;if(e.selection instanceof L&&e.selection.node.isBlock)return!o.parentOffset||!Mt(e.doc,o.pos)?!1:(n&&n(e.tr.split(o.pos).scrollIntoView()),!0);if(!o.depth)return!1;let s=[],i,a,l=!1,c=!1;for(let f=o.depth;;f--)if(o.node(f).isBlock){l=o.end(f)==o.pos+(o.depth-f),c=o.start(f)==o.pos-(o.depth-f),a=Oc(o.node(f-1).contentMatchAt(o.indexAfter(f-1))),s.unshift(l&&a?{type:a}:null),i=f;break}else{if(f==1)return!1;s.unshift(null)}let u=e.tr;(e.selection instanceof H||e.selection instanceof We)&&u.deleteSelection();let d=u.mapping.map(o.pos),m=Mt(u.doc,d,s.length,s);if(m||(s[0]=a?{type:a}:null,m=Mt(u.doc,d,s.length,s)),!m)return!1;if(u.split(d,s.length,s),!l&&c&&o.node(i).type!=a){let f=u.mapping.map(o.before(i)),p=u.doc.resolve(f);a&&o.node(i-1).canReplaceWith(p.index(),p.index()+1,a)&&u.setNodeMarkup(u.mapping.map(o.before(i)),a)}return n&&n(u.scrollIntoView()),!0}}const x1=S1(),k1=(t,e)=>{let{$from:n,to:o}=t.selection,r,s=n.sharedDepth(o);return s==0?!1:(r=n.before(s),e&&e(t.tr.setSelection(L.create(t.doc,r))),!0)};function E1(t,e,n){let o=e.nodeBefore,r=e.nodeAfter,s=e.index();return!o||!r||!o.type.compatibleContent(r.type)?!1:!o.content.size&&e.parent.canReplace(s-1,s)?(n&&n(t.tr.delete(e.pos-o.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(s,s+1)||!(r.isTextblock||Zt(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function Mh(t,e,n,o){let r=e.nodeBefore,s=e.nodeAfter,i,a,l=r.type.spec.isolating||s.type.spec.isolating;if(!l&&E1(t,e,n))return!0;let c=!l&&e.parent.canReplace(e.index(),e.index()+1);if(c&&(i=(a=r.contentMatchAt(r.childCount)).findWrapping(s.type))&&a.matchType(i[0]||s.type).validEnd){if(n){let f=e.pos+s.nodeSize,p=N.empty;for(let y=i.length-1;y>=0;y--)p=N.from(i[y].create(null,p));p=N.from(r.copy(p));let g=t.tr.step(new he(e.pos-1,f,e.pos,f,new T(p,1,0),i.length,!0)),h=g.doc.resolve(f+2*i.length);h.nodeAfter&&h.nodeAfter.type==r.type&&Zt(g.doc,h.pos)&&g.join(h.pos),n(g.scrollIntoView())}return!0}let u=s.type.spec.isolating||o>0&&l?null:J.findFrom(e,1),d=u&&u.$from.blockRange(u.$to),m=d&&bo(d);if(m!=null&&m>=e.depth)return n&&n(t.tr.lift(d,m).scrollIntoView()),!0;if(c&&Ro(s,"start",!0)&&Ro(r,"end")){let f=r,p=[];for(;p.push(f),!f.isTextblock;)f=f.lastChild;let g=s,h=1;for(;!g.isTextblock;g=g.firstChild)h++;if(f.canReplace(f.childCount,f.childCount,g.content)){if(n){let y=N.empty;for(let $=p.length-1;$>=0;$--)y=N.from(p[$].copy(y));let b=t.tr.step(new he(e.pos-p.length,e.pos+s.nodeSize,e.pos+h,e.pos+s.nodeSize-h,new T(y,p.length,0),0,!0));n(b.scrollIntoView())}return!0}}return!1}function jh(t){return function(e,n){let o=e.selection,r=t<0?o.$from:o.$to,s=r.depth;for(;r.node(s).isInline;){if(!s)return!1;s--}return r.node(s).isTextblock?(n&&n(e.tr.setSelection(H.create(e.doc,t<0?r.start(s):r.end(s)))),!0):!1}}const C1=jh(-1),N1=jh(1);function A1(t,e=null){return function(n,o){let{$from:r,$to:s}=n.selection,i=r.blockRange(s),a=i&&ql(i,t,e);return a?(o&&o(n.tr.wrap(i,a).scrollIntoView()),!0):!1}}function Ph(t,e=null){return function(n,o){let r=!1;for(let s=0;s<n.selection.ranges.length&&!r;s++){let{$from:{pos:i},$to:{pos:a}}=n.selection.ranges[s];n.doc.nodesBetween(i,a,(l,c)=>{if(r)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)r=!0;else{let u=n.doc.resolve(c),d=u.index();r=u.parent.canReplaceWith(d,d+1,t)}})}if(!r)return!1;if(o){let s=n.tr;for(let i=0;i<n.selection.ranges.length;i++){let{$from:{pos:a},$to:{pos:l}}=n.selection.ranges[i];s.setBlockType(a,l,t,e)}o(s.scrollIntoView())}return!0}}function Tc(...t){return function(e,n,o){for(let r=0;r<t.length;r++)if(t[r](e,n,o))return!0;return!1}}Tc(Ac,kh,Ch),Tc(Ac,Ah,Dh),Tc(Rh,Oh,Th,x1),typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function D1(t,e=null){return function(n,o){let{$from:r,$to:s}=n.selection,i=r.blockRange(s),a=!1,l=i;if(!i)return!1;if(i.depth>=2&&r.node(i.depth-1).type.compatibleContent(t)&&i.startIndex==0){if(r.index(i.depth-1)==0)return!1;let u=n.doc.resolve(i.start-2);l=new oi(u,u,i.depth),i.endIndex<i.parent.childCount&&(i=new oi(r,n.doc.resolve(s.end(i.depth)),i.depth)),a=!0}let c=ql(l,t,e,i);return c?(o&&o(R1(n.tr,i,c,a,t).scrollIntoView()),!0):!1}}function R1(t,e,n,o,r){let s=N.empty;for(let u=n.length-1;u>=0;u--)s=N.from(n[u].type.create(n[u].attrs,s));t.step(new he(e.start-(o?2:0),e.end,e.start,e.end,new T(s,0,0),n.length,!0));let i=0;for(let u=0;u<n.length;u++)n[u].type==r&&(i=u+1);let a=n.length-i,l=e.start+n.length-(o?2:0),c=e.parent;for(let u=e.startIndex,d=e.endIndex,m=!0;u<d;u++,m=!1)!m&&Mt(t.doc,l,a)&&(t.split(l,a),l+=2*a),l+=c.child(u).nodeSize;return t}function O1(t){return function(e,n){let{$from:o,$to:r}=e.selection,s=o.blockRange(r,i=>i.childCount>0&&i.firstChild.type==t);return s?n?o.node(s.depth-1).type==t?T1(e,n,t,s):M1(e,n,s):!0:!1}}function T1(t,e,n,o){let r=t.tr,s=o.end,i=o.$to.end(o.depth);s<i&&(r.step(new he(s-1,i,s,i,new T(N.from(n.create(null,o.parent.copy())),1,0),1,!0)),o=new oi(r.doc.resolve(o.$from.pos),r.doc.resolve(i),o.depth));const a=bo(o);if(a==null)return!1;r.lift(o,a);let l=r.mapping.map(s,-1)-1;return Zt(r.doc,l)&&r.join(l),e(r.scrollIntoView()),!0}function M1(t,e,n){let o=t.tr,r=n.parent;for(let f=n.end,p=n.endIndex-1,g=n.startIndex;p>g;p--)f-=r.child(p).nodeSize,o.delete(f-1,f+1);let s=o.doc.resolve(n.start),i=s.nodeAfter;if(o.mapping.map(n.end)!=n.start+s.nodeAfter.nodeSize)return!1;let a=n.startIndex==0,l=n.endIndex==r.childCount,c=s.node(-1),u=s.index(-1);if(!c.canReplace(u+(a?0:1),u+1,i.content.append(l?N.empty:N.from(r))))return!1;let d=s.pos,m=d+i.nodeSize;return o.step(new he(d-(a?1:0),m+(l?1:0),d+1,m-1,new T((a?N.empty:N.from(r.copy(N.empty))).append(l?N.empty:N.from(r.copy(N.empty))),a?0:1,l?0:1),a?0:1)),e(o.scrollIntoView()),!0}function j1(t){return function(e,n){let{$from:o,$to:r}=e.selection,s=o.blockRange(r,c=>c.childCount>0&&c.firstChild.type==t);if(!s)return!1;let i=s.startIndex;if(i==0)return!1;let a=s.parent,l=a.child(i-1);if(l.type!=t)return!1;if(n){let c=l.lastChild&&l.lastChild.type==a.type,u=N.from(c?t.create():null),d=new T(N.from(t.create(null,N.from(a.type.create(null,u)))),c?3:1,0),m=s.start,f=s.end;n(e.tr.step(new he(m-(c?3:1),f,m,f,d,1,!0)).scrollIntoView())}return!0}}function xi(t){const{state:e,transaction:n}=t;let{selection:o}=n,{doc:r}=n,{storedMarks:s}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return s},get selection(){return o},get doc(){return r},get tr(){return o=n.selection,r=n.doc,s=n.storedMarks,n}}}class ki{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(){const{rawCommands:e,editor:n,state:o}=this,{view:r}=n,{tr:s}=o,i=this.buildProps(s);return Object.fromEntries(Object.entries(e).map(([a,l])=>[a,(...u)=>{const d=l(...u)(i);return!s.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(s),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,n=!0){const{rawCommands:o,editor:r,state:s}=this,{view:i}=r,a=[],l=!!e,c=e||s.tr,u=()=>(!l&&n&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(c),a.every(m=>m===!0)),d={...Object.fromEntries(Object.entries(o).map(([m,f])=>[m,(...g)=>{const h=this.buildProps(c,n),y=f(...g)(h);return a.push(y),d}])),run:u};return d}createCan(e){const{rawCommands:n,state:o}=this,r=!1,s=e||o.tr,i=this.buildProps(s,r);return{...Object.fromEntries(Object.entries(n).map(([l,c])=>[l,(...u)=>c(...u)({...i,dispatch:void 0})])),chain:()=>this.createChain(s,r)}}buildProps(e,n=!0){const{rawCommands:o,editor:r,state:s}=this,{view:i}=r,a={tr:e,editor:r,view:i,state:xi({state:s,transaction:e}),dispatch:n?()=>{}:void 0,chain:()=>this.createChain(e,n),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(o).map(([l,c])=>[l,(...u)=>c(...u)(a)]))}};return a}}let P1=class{constructor(){this.callbacks={}}on(e,n){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(n),this}emit(e,...n){const o=this.callbacks[e];return o&&o.forEach(r=>r.apply(this,n)),this}off(e,n){const o=this.callbacks[e];return o&&(n?this.callbacks[e]=o.filter(r=>r!==n):delete this.callbacks[e]),this}once(e,n){const o=(...r)=>{this.off(e,o),n.apply(this,r)};return this.on(e,o)}removeAllListeners(){this.callbacks={}}};function j(t,e,n){return t.config[e]===void 0&&t.parent?j(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?j(t.parent,e,n):null}):t.config[e]}function Ei(t){const e=t.filter(r=>r.type==="extension"),n=t.filter(r=>r.type==="node"),o=t.filter(r=>r.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:o}}function Lh(t){const e=[],{nodeExtensions:n,markExtensions:o}=Ei(t),r=[...n,...o],s={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return t.forEach(i=>{const a={name:i.name,options:i.options,storage:i.storage,extensions:r},l=j(i,"addGlobalAttributes",a);if(!l)return;l().forEach(u=>{u.types.forEach(d=>{Object.entries(u.attributes).forEach(([m,f])=>{e.push({type:d,name:m,attribute:{...s,...f}})})})})}),r.forEach(i=>{const a={name:i.name,options:i.options,storage:i.storage},l=j(i,"addAttributes",a);if(!l)return;const c=l();Object.entries(c).forEach(([u,d])=>{const m={...s,...d};typeof(m==null?void 0:m.default)=="function"&&(m.default=m.default()),m!=null&&m.isRequired&&(m==null?void 0:m.default)===void 0&&delete m.default,e.push({type:i.name,name:u,attribute:m})})}),e}function ge(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}function Oo(...t){return t.filter(e=>!!e).reduce((e,n)=>{const o={...e};return Object.entries(n).forEach(([r,s])=>{if(!o[r]){o[r]=s;return}if(r==="class"){const a=s?String(s).split(" "):[],l=o[r]?o[r].split(" "):[],c=a.filter(u=>!l.includes(u));o[r]=[...l,...c].join(" ")}else if(r==="style"){const a=s?s.split(";").map(u=>u.trim()).filter(Boolean):[],l=o[r]?o[r].split(";").map(u=>u.trim()).filter(Boolean):[],c=new Map;l.forEach(u=>{const[d,m]=u.split(":").map(f=>f.trim());c.set(d,m)}),a.forEach(u=>{const[d,m]=u.split(":").map(f=>f.trim());c.set(d,m)}),o[r]=Array.from(c.entries()).map(([u,d])=>`${u}: ${d}`).join("; ")}else o[r]=s}),o},{})}function Mc(t,e){return e.filter(n=>n.type===t.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,o)=>Oo(n,o),{})}function Ih(t){return typeof t=="function"}function Y(t,e=void 0,...n){return Ih(t)?e?t.bind(e)(...n):t(...n):t}function L1(t={}){return Object.keys(t).length===0&&t.constructor===Object}function I1(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function zh(t,e){return"style"in t?t:{...t,getAttrs:n=>{const o=t.getAttrs?t.getAttrs(n):t.attrs;if(o===!1)return!1;const r=e.reduce((s,i)=>{const a=i.attribute.parseHTML?i.attribute.parseHTML(n):I1(n.getAttribute(i.name));return a==null?s:{...s,[i.name]:a}},{});return{...o,...r}}}}function Bh(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&L1(n)?!1:n!=null))}function z1(t,e){var n;const o=Lh(t),{nodeExtensions:r,markExtensions:s}=Ei(t),i=(n=r.find(c=>j(c,"topNode")))===null||n===void 0?void 0:n.name,a=Object.fromEntries(r.map(c=>{const u=o.filter(y=>y.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},m=t.reduce((y,b)=>{const $=j(b,"extendNodeSchema",d);return{...y,...$?$(c):{}}},{}),f=Bh({...m,content:Y(j(c,"content",d)),marks:Y(j(c,"marks",d)),group:Y(j(c,"group",d)),inline:Y(j(c,"inline",d)),atom:Y(j(c,"atom",d)),selectable:Y(j(c,"selectable",d)),draggable:Y(j(c,"draggable",d)),code:Y(j(c,"code",d)),whitespace:Y(j(c,"whitespace",d)),linebreakReplacement:Y(j(c,"linebreakReplacement",d)),defining:Y(j(c,"defining",d)),isolating:Y(j(c,"isolating",d)),attrs:Object.fromEntries(u.map(y=>{var b;return[y.name,{default:(b=y==null?void 0:y.attribute)===null||b===void 0?void 0:b.default}]}))}),p=Y(j(c,"parseHTML",d));p&&(f.parseDOM=p.map(y=>zh(y,u)));const g=j(c,"renderHTML",d);g&&(f.toDOM=y=>g({node:y,HTMLAttributes:Mc(y,u)}));const h=j(c,"renderText",d);return h&&(f.toText=h),[c.name,f]})),l=Object.fromEntries(s.map(c=>{const u=o.filter(h=>h.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},m=t.reduce((h,y)=>{const b=j(y,"extendMarkSchema",d);return{...h,...b?b(c):{}}},{}),f=Bh({...m,inclusive:Y(j(c,"inclusive",d)),excludes:Y(j(c,"excludes",d)),group:Y(j(c,"group",d)),spanning:Y(j(c,"spanning",d)),code:Y(j(c,"code",d)),attrs:Object.fromEntries(u.map(h=>{var y;return[h.name,{default:(y=h==null?void 0:h.attribute)===null||y===void 0?void 0:y.default}]}))}),p=Y(j(c,"parseHTML",d));p&&(f.parseDOM=p.map(h=>zh(h,u)));const g=j(c,"renderHTML",d);return g&&(f.toDOM=h=>g({mark:h,HTMLAttributes:Mc(h,u)})),[c.name,f]}));return new Tf({topNode:i,nodes:a,marks:l})}function jc(t,e){return e.nodes[t]||e.marks[t]||null}function Fh(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}function Pc(t,e){const n=Fn.fromSchema(e).serializeFragment(t),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(n),r.innerHTML}const B1=(t,e=500)=>{let n="";const o=t.parentOffset;return t.parent.nodesBetween(Math.max(0,o-e),o,(r,s,i,a)=>{var l,c;const u=((c=(l=r.type.spec).toText)===null||c===void 0?void 0:c.call(l,{node:r,pos:s,parent:i,index:a}))||r.textContent||"%leaf%";n+=r.isAtom&&!r.isText?u:u.slice(0,Math.max(0,o-s))}),n};function Lc(t){return Object.prototype.toString.call(t)==="[object RegExp]"}class F1{constructor(e){this.find=e.find,this.handler=e.handler}}const H1=(t,e)=>{if(Lc(e))return e.exec(t);const n=e(t);if(!n)return null;const o=[n.text];return o.index=n.index,o.input=t,o.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),o.push(n.replaceWith)),o};function Ci(t){var e;const{editor:n,from:o,to:r,text:s,rules:i,plugin:a}=t,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(o);if(c.parent.type.spec.code||!((e=c.nodeBefore||c.nodeAfter)===null||e===void 0)&&e.marks.find(m=>m.type.spec.code))return!1;let u=!1;const d=B1(c)+s;return i.forEach(m=>{if(u)return;const f=H1(d,m.find);if(!f)return;const p=l.state.tr,g=xi({state:l.state,transaction:p}),h={from:o-(f[0].length-s.length),to:r},{commands:y,chain:b,can:$}=new ki({editor:n,state:g});m.handler({state:g,range:h,match:f,commands:y,chain:b,can:$})===null||!p.steps.length||(p.setMeta(a,{transform:p,from:o,to:r,text:s}),l.dispatch(p),u=!0)}),u}function V1(t){const{editor:e,rules:n}=t,o=new Fe({state:{init(){return null},apply(r,s,i){const a=r.getMeta(o);if(a)return a;const l=r.getMeta("applyInputRules");return!!l&&setTimeout(()=>{let{text:u}=l;typeof u=="string"?u=u:u=Pc(N.from(u),i.schema);const{from:d}=l,m=d+u.length;Ci({editor:e,from:d,to:m,text:u,rules:n,plugin:o})}),r.selectionSet||r.docChanged?null:s}},props:{handleTextInput(r,s,i,a){return Ci({editor:e,from:s,to:i,text:a,rules:n,plugin:o})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:s}=r.state.selection;s&&Ci({editor:e,from:s.pos,to:s.pos,text:"",rules:n,plugin:o})}),!1)},handleKeyDown(r,s){if(s.key!=="Enter")return!1;const{$cursor:i}=r.state.selection;return i?Ci({editor:e,from:i.pos,to:i.pos,text:`
`,rules:n,plugin:o}):!1}},isInputRules:!0});return o}function U1(t){return Object.prototype.toString.call(t).slice(8,-1)}function Ni(t){return U1(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function Ai(t,e){const n={...t};return Ni(t)&&Ni(e)&&Object.keys(e).forEach(o=>{Ni(e[o])&&Ni(t[o])?n[o]=Ai(t[o],e[o]):n[o]=e[o]}),n}class jr{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(e={}){return new jr(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Ai(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new jr(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.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: "${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:n}){const{tr:o}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){const i=r.marks();if(!!!i.find(c=>(c==null?void 0:c.type.name)===n.name))return!1;const l=i.find(c=>(c==null?void 0:c.type.name)===n.name);return l&&o.removeStoredMark(l),o.insertText(" ",r.pos),e.view.dispatch(o),!0}return!1}}function _1(t){return typeof t=="number"}class J1{constructor(e){this.find=e.find,this.handler=e.handler}}const Y1=(t,e,n)=>{if(Lc(e))return[...t.matchAll(e)];const o=e(t,n);return o?o.map(r=>{const s=[r.text];return s.index=r.index,s.input=t,s.data=r.data,r.replaceWith&&(r.text.includes(r.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),s.push(r.replaceWith)),s}):[]};function K1(t){const{editor:e,state:n,from:o,to:r,rule:s,pasteEvent:i,dropEvent:a}=t,{commands:l,chain:c,can:u}=new ki({editor:e,state:n}),d=[];return n.doc.nodesBetween(o,r,(f,p)=>{if(!f.isTextblock||f.type.spec.code)return;const g=Math.max(o,p),h=Math.min(r,p+f.content.size),y=f.textBetween(g-p,h-p,void 0,"");Y1(y,s.find,i).forEach($=>{if($.index===void 0)return;const v=g+$.index+1,k=v+$[0].length,x={from:n.tr.mapping.map(v),to:n.tr.mapping.map(k)},C=s.handler({state:n,range:x,match:$,commands:l,chain:c,can:u,pasteEvent:i,dropEvent:a});d.push(C)})}),d.every(f=>f!==null)}let Di=null;const W1=t=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)===null||e===void 0||e.setData("text/html",t),n};function q1(t){const{editor:e,rules:n}=t;let o=null,r=!1,s=!1,i=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,a;try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}const l=({state:u,from:d,to:m,rule:f,pasteEvt:p})=>{const g=u.tr,h=xi({state:u,transaction:g});if(!(!K1({editor:e,state:h,from:Math.max(d-1,0),to:m.b-1,rule:f,pasteEvent:p,dropEvent:a})||!g.steps.length)){try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}return i=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,g}};return n.map(u=>new Fe({view(d){const m=p=>{var g;o=!((g=d.dom.parentElement)===null||g===void 0)&&g.contains(p.target)?d.dom.parentElement:null,o&&(Di=e)},f=()=>{Di&&(Di=null)};return window.addEventListener("dragstart",m),window.addEventListener("dragend",f),{destroy(){window.removeEventListener("dragstart",m),window.removeEventListener("dragend",f)}}},props:{handleDOMEvents:{drop:(d,m)=>{if(s=o===d.dom.parentElement,a=m,!s){const f=Di;f!=null&&f.isEditable&&setTimeout(()=>{const p=f.state.selection;p&&f.commands.deleteRange({from:p.from,to:p.to})},10)}return!1},paste:(d,m)=>{var f;const p=(f=m.clipboardData)===null||f===void 0?void 0:f.getData("text/html");return i=m,r=!!(p!=null&&p.includes("data-pm-slice")),!1}}},appendTransaction:(d,m,f)=>{const p=d[0],g=p.getMeta("uiEvent")==="paste"&&!r,h=p.getMeta("uiEvent")==="drop"&&!s,y=p.getMeta("applyPasteRules"),b=!!y;if(!g&&!h&&!b)return;if(b){let{text:k}=y;typeof k=="string"?k=k:k=Pc(N.from(k),f.schema);const{from:x}=y,C=x+k.length,O=W1(k);return l({rule:u,state:f,from:x,to:{b:C},pasteEvt:O})}const $=m.doc.content.findDiffStart(f.doc.content),v=m.doc.content.findDiffEnd(f.doc.content);if(!(!_1($)||!v||$===v.b))return l({rule:u,state:f,from:$,to:v,pasteEvt:i})}}))}function G1(t){const e=t.filter((n,o)=>t.indexOf(n)!==o);return Array.from(new Set(e))}class To{constructor(e,n){this.splittableMarks=[],this.editor=n,this.extensions=To.resolve(e),this.schema=z1(this.extensions,n),this.setupExtensions()}static resolve(e){const n=To.sort(To.flatten(e)),o=G1(n.map(r=>r.name));return o.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${o.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),n}static flatten(e){return e.map(n=>{const o={name:n.name,options:n.options,storage:n.storage},r=j(n,"addExtensions",o);return r?[n,...this.flatten(r())]:n}).flat(10)}static sort(e){return e.sort((o,r)=>{const s=j(o,"priority")||100,i=j(r,"priority")||100;return s>i?-1:s<i?1:0})}get commands(){return this.extensions.reduce((e,n)=>{const o={name:n.name,options:n.options,storage:n.storage,editor:this.editor,type:jc(n.name,this.schema)},r=j(n,"addCommands",o);return r?{...e,...r()}:e},{})}get plugins(){const{editor:e}=this,n=To.sort([...this.extensions].reverse()),o=[],r=[],s=n.map(i=>{const a={name:i.name,options:i.options,storage:i.storage,editor:e,type:jc(i.name,this.schema)},l=[],c=j(i,"addKeyboardShortcuts",a);let u={};if(i.type==="mark"&&j(i,"exitable",a)&&(u.ArrowRight=()=>jr.handleExit({editor:e,mark:i})),c){const g=Object.fromEntries(Object.entries(c()).map(([h,y])=>[h,()=>y({editor:e})]));u={...u,...g}}const d=p1(u);l.push(d);const m=j(i,"addInputRules",a);Fh(i,e.options.enableInputRules)&&m&&o.push(...m());const f=j(i,"addPasteRules",a);Fh(i,e.options.enablePasteRules)&&f&&r.push(...f());const p=j(i,"addProseMirrorPlugins",a);if(p){const g=p();l.push(...g)}return l}).flat();return[V1({editor:e,rules:o}),...q1({editor:e,rules:r}),...s]}get attributes(){return Lh(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:n}=Ei(this.extensions);return Object.fromEntries(n.filter(o=>!!j(o,"addNodeView")).map(o=>{const r=this.attributes.filter(l=>l.type===o.name),s={name:o.name,options:o.options,storage:o.storage,editor:e,type:ge(o.name,this.schema)},i=j(o,"addNodeView",s);if(!i)return[];const a=(l,c,u,d,m)=>{const f=Mc(l,r);return i()({node:l,view:c,getPos:u,decorations:d,innerDecorations:m,editor:e,extension:o,HTMLAttributes:f})};return[o.name,a]}))}setupExtensions(){this.extensions.forEach(e=>{var n;this.editor.extensionStorage[e.name]=e.storage;const o={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:jc(e.name,this.schema)};e.type==="mark"&&(!((n=Y(j(e,"keepOnSplit",o)))!==null&&n!==void 0)||n)&&this.splittableMarks.push(e.name);const r=j(e,"onBeforeCreate",o),s=j(e,"onCreate",o),i=j(e,"onUpdate",o),a=j(e,"onSelectionUpdate",o),l=j(e,"onTransaction",o),c=j(e,"onFocus",o),u=j(e,"onBlur",o),d=j(e,"onDestroy",o);r&&this.editor.on("beforeCreate",r),s&&this.editor.on("create",s),i&&this.editor.on("update",i),a&&this.editor.on("selectionUpdate",a),l&&this.editor.on("transaction",l),c&&this.editor.on("focus",c),u&&this.editor.on("blur",u),d&&this.editor.on("destroy",d)})}}class ot{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(e={}){return new ot(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Ai(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new ot({...this.config,...e});return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.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: "${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 Hh(t,e,n){const{from:o,to:r}=e,{blockSeparator:s=`
`,textSerializers:i={}}=n||{};let a="";return t.nodesBetween(o,r,(l,c,u,d)=>{var m;l.isBlock&&c>o&&(a+=s);const f=i==null?void 0:i[l.type.name];if(f)return u&&(a+=f({node:l,pos:c,parent:u,index:d,range:e})),!1;l.isText&&(a+=(m=l==null?void 0:l.text)===null||m===void 0?void 0:m.slice(Math.max(o,c)-c,r-c))}),a}function Vh(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}const Q1=ot.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Fe({key:new pt("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:o,selection:r}=e,{ranges:s}=r,i=Math.min(...s.map(u=>u.$from.pos)),a=Math.max(...s.map(u=>u.$to.pos)),l=Vh(n);return Hh(o,{from:i,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),Z1=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window==null?void 0:window.getSelection())===null||n===void 0||n.removeAllRanges())}),!0),X1=(t=!1)=>({commands:e})=>e.setContent("",t),eS=()=>({state:t,tr:e,dispatch:n})=>{const{selection:o}=e,{ranges:r}=o;return n&&r.forEach(({$from:s,$to:i})=>{t.doc.nodesBetween(s.pos,i.pos,(a,l)=>{if(a.type.isText)return;const{doc:c,mapping:u}=e,d=c.resolve(u.map(l)),m=c.resolve(u.map(l+a.nodeSize)),f=d.blockRange(m);if(!f)return;const p=bo(f);if(a.type.isTextblock){const{defaultType:g}=d.parent.contentMatchAt(d.index());e.setNodeMarkup(f.start,g)}(p||p===0)&&e.lift(f,p)})}),!0},tS=t=>e=>t(e),nS=()=>({state:t,dispatch:e})=>Oh(t,e),oS=(t,e)=>({editor:n,tr:o})=>{const{state:r}=n,s=r.doc.slice(t.from,t.to);o.deleteRange(t.from,t.to);const i=o.mapping.map(e);return o.insert(i,s.content),o.setSelection(new H(o.doc.resolve(Math.max(i-1,0)))),!0},rS=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,o=n.$anchor.node();if(o.content.size>0)return!1;const r=t.selection.$anchor;for(let s=r.depth;s>0;s-=1)if(r.node(s).type===o.type){if(e){const a=r.before(s),l=r.after(s);t.delete(a,l).scrollIntoView()}return!0}return!1},sS=t=>({tr:e,state:n,dispatch:o})=>{const r=ge(t,n.schema),s=e.selection.$anchor;for(let i=s.depth;i>0;i-=1)if(s.node(i).type===r){if(o){const l=s.before(i),c=s.after(i);e.delete(l,c).scrollIntoView()}return!0}return!1},iS=t=>({tr:e,dispatch:n})=>{const{from:o,to:r}=t;return n&&e.delete(o,r),!0},aS=()=>({state:t,dispatch:e})=>Ac(t,e),lS=()=>({commands:t})=>t.keyboardShortcut("Enter"),cS=()=>({state:t,dispatch:e})=>v1(t,e);function Ri(t,e,n={strict:!0}){const o=Object.keys(e);return o.length?o.every(r=>n.strict?e[r]===t[r]:Lc(e[r])?e[r].test(t[r]):e[r]===t[r]):!0}function Uh(t,e,n={}){return t.find(o=>o.type===e&&Ri(Object.fromEntries(Object.keys(n).map(r=>[r,o.attrs[r]])),n))}function _h(t,e,n={}){return!!Uh(t,e,n)}function Ic(t,e,n){var o;if(!t||!e)return;let r=t.parent.childAfter(t.parentOffset);if((!r.node||!r.node.marks.some(u=>u.type===e))&&(r=t.parent.childBefore(t.parentOffset)),!r.node||!r.node.marks.some(u=>u.type===e)||(n=n||((o=r.node.marks[0])===null||o===void 0?void 0:o.attrs),!Uh([...r.node.marks],e,n)))return;let i=r.index,a=t.start()+r.offset,l=i+1,c=a+r.node.nodeSize;for(;i>0&&_h([...t.parent.child(i-1).marks],e,n);)i-=1,a-=t.parent.child(i).nodeSize;for(;l<t.parent.childCount&&_h([...t.parent.child(l).marks],e,n);)c+=t.parent.child(l).nodeSize,l+=1;return{from:a,to:c}}function cn(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}const uS=(t,e={})=>({tr:n,state:o,dispatch:r})=>{const s=cn(t,o.schema),{doc:i,selection:a}=n,{$from:l,from:c,to:u}=a;if(r){const d=Ic(l,s,e);if(d&&d.from<=c&&d.to>=u){const m=H.create(i,d.from,d.to);n.setSelection(m)}}return!0},dS=t=>e=>{const n=typeof t=="function"?t(e):t;for(let o=0;o<n.length;o+=1)if(n[o](e))return!0;return!1};function Jh(t){return t instanceof H}function Wn(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function Yh(t,e=null){if(!e)return null;const n=J.atStart(t),o=J.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return o;const r=n.from,s=o.to;return e==="all"?H.create(t,Wn(0,r,s),Wn(t.content.size,r,s)):H.create(t,Wn(e,r,s),Wn(e,r,s))}function mS(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function zc(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const fS=(t=null,e={})=>({editor:n,view:o,tr:r,dispatch:s})=>{e={scrollIntoView:!0,...e};const i=()=>{(zc()||mS())&&o.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(o.focus(),e!=null&&e.scrollIntoView&&n.commands.scrollIntoView())})};if(o.hasFocus()&&t===null||t===!1)return!0;if(s&&t===null&&!Jh(n.state.selection))return i(),!0;const a=Yh(r.doc,t)||n.state.selection,l=n.state.selection.eq(a);return s&&(l||r.setSelection(a),l&&r.storedMarks&&r.setStoredMarks(r.storedMarks),i()),!0},pS=(t,e)=>n=>t.every((o,r)=>e(o,{...n,index:r})),hS=(t,e)=>({tr:n,commands:o})=>o.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),Kh=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const o=e[n];o.nodeType===3&&o.nodeValue&&/^(\n\s\s|\n)$/.test(o.nodeValue)?t.removeChild(o):o.nodeType===1&&Kh(o)}return t};function Oi(t){const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return Kh(n)}function Pr(t,e,n){if(t instanceof qt||t instanceof N)return t;n={slice:!0,parseOptions:{},...n};const o=typeof t=="object"&&t!==null,r=typeof t=="string";if(o)try{if(Array.isArray(t)&&t.length>0)return N.fromArray(t.map(a=>e.nodeFromJSON(a)));const i=e.nodeFromJSON(t);return n.errorOnInvalidContent&&i.check(),i}catch(s){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:s});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",s),Pr("",e,n)}if(r){if(n.errorOnInvalidContent){let i=!1,a="";const l=new Tf({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:c=>(i=!0,a=typeof c=="string"?c:c.outerHTML,null)}]}})});if(n.slice?wr.fromSchema(l).parseSlice(Oi(t),n.parseOptions):wr.fromSchema(l).parse(Oi(t),n.parseOptions),n.errorOnInvalidContent&&i)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${a}`)})}const s=wr.fromSchema(e);return n.slice?s.parseSlice(Oi(t),n.parseOptions).content:s.parse(Oi(t),n.parseOptions)}return Pr("",e,n)}function gS(t,e,n){const o=t.steps.length-1;if(o<e)return;const r=t.steps[o];if(!(r instanceof pe||r instanceof he))return;const s=t.mapping.maps[o];let i=0;s.forEach((a,l,c,u)=>{i===0&&(i=u)}),t.setSelection(J.near(t.doc.resolve(i),n))}const yS=t=>!("type"in t),wS=(t,e,n)=>({tr:o,dispatch:r,editor:s})=>{var i;if(r){n={parseOptions:s.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let a;const l=h=>{s.emit("contentError",{editor:s,error:h,disableCollaboration:()=>{s.storage.collaboration&&(s.storage.collaboration.isDisabled=!0)}})},c={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!s.options.enableContentCheck&&s.options.emitContentError)try{Pr(e,s.schema,{parseOptions:c,errorOnInvalidContent:!0})}catch(h){l(h)}try{a=Pr(e,s.schema,{parseOptions:c,errorOnInvalidContent:(i=n.errorOnInvalidContent)!==null&&i!==void 0?i:s.options.enableContentCheck})}catch(h){return l(h),!1}let{from:u,to:d}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},m=!0,f=!0;if((yS(a)?a:[a]).forEach(h=>{h.check(),m=m?h.isText&&h.marks.length===0:!1,f=f?h.isBlock:!1}),u===d&&f){const{parent:h}=o.doc.resolve(u);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(u-=1,d+=1)}let g;if(m){if(Array.isArray(e))g=e.map(h=>h.text||"").join("");else if(e instanceof N){let h="";e.forEach(y=>{y.text&&(h+=y.text)}),g=h}else typeof e=="object"&&e&&e.text?g=e.text:g=e;o.insertText(g,u,d)}else g=a,o.replaceWith(u,d,g);n.updateSelection&&gS(o,o.steps.length-1,-1),n.applyInputRules&&o.setMeta("applyInputRules",{from:u,text:g}),n.applyPasteRules&&o.setMeta("applyPasteRules",{from:u,text:g})}return!0},bS=()=>({state:t,dispatch:e})=>w1(t,e),$S=()=>({state:t,dispatch:e})=>b1(t,e),vS=()=>({state:t,dispatch:e})=>kh(t,e),SS=()=>({state:t,dispatch:e})=>Ah(t,e),xS=()=>({state:t,dispatch:e,tr:n})=>{try{const o=ui(t.doc,t.selection.$from.pos,-1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},kS=()=>({state:t,dispatch:e,tr:n})=>{try{const o=ui(t.doc,t.selection.$from.pos,1);return o==null?!1:(n.join(o,2),e&&e(n),!0)}catch{return!1}},ES=()=>({state:t,dispatch:e})=>g1(t,e),CS=()=>({state:t,dispatch:e})=>y1(t,e);function Wh(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function NS(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let o,r,s,i;for(let a=0;a<e.length-1;a+=1){const l=e[a];if(/^(cmd|meta|m)$/i.test(l))i=!0;else if(/^a(lt)?$/i.test(l))o=!0;else if(/^(c|ctrl|control)$/i.test(l))r=!0;else if(/^s(hift)?$/i.test(l))s=!0;else if(/^mod$/i.test(l))zc()||Wh()?i=!0:r=!0;else throw new Error(`Unrecognized modifier name: ${l}`)}return o&&(n=`Alt-${n}`),r&&(n=`Ctrl-${n}`),i&&(n=`Meta-${n}`),s&&(n=`Shift-${n}`),n}const AS=t=>({editor:e,view:n,tr:o,dispatch:r})=>{const s=NS(t).split(/-(?!$)/),i=s.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),a=new KeyboardEvent("keydown",{key:i==="Space"?" ":i,altKey:s.includes("Alt"),ctrlKey:s.includes("Ctrl"),metaKey:s.includes("Meta"),shiftKey:s.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction(()=>{n.someProp("handleKeyDown",c=>c(n,a))});return l==null||l.steps.forEach(c=>{const u=c.map(o.mapping);u&&r&&o.maybeStep(u)}),!0};function Lr(t,e,n={}){const{from:o,to:r,empty:s}=t.selection,i=e?ge(e,t.schema):null,a=[];t.doc.nodesBetween(o,r,(d,m)=>{if(d.isText)return;const f=Math.max(o,m),p=Math.min(r,m+d.nodeSize);a.push({node:d,from:f,to:p})});const l=r-o,c=a.filter(d=>i?i.name===d.node.type.name:!0).filter(d=>Ri(d.node.attrs,n,{strict:!1}));return s?!!c.length:c.reduce((d,m)=>d+m.to-m.from,0)>=l}const DS=(t,e={})=>({state:n,dispatch:o})=>{const r=ge(t,n.schema);return Lr(n,r,e)?$1(n,o):!1},RS=()=>({state:t,dispatch:e})=>Th(t,e),OS=t=>({state:e,dispatch:n})=>{const o=ge(t,e.schema);return O1(o)(e,n)},TS=()=>({state:t,dispatch:e})=>Rh(t,e);function Ti(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function qh(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((o,r)=>(n.includes(r)||(o[r]=t[r]),o),{})}const MS=(t,e)=>({tr:n,state:o,dispatch:r})=>{let s=null,i=null;const a=Ti(typeof t=="string"?t:t.name,o.schema);return a?(a==="node"&&(s=ge(t,o.schema)),a==="mark"&&(i=cn(t,o.schema)),r&&n.selection.ranges.forEach(l=>{o.doc.nodesBetween(l.$from.pos,l.$to.pos,(c,u)=>{s&&s===c.type&&n.setNodeMarkup(u,void 0,qh(c.attrs,e)),i&&c.marks.length&&c.marks.forEach(d=>{i===d.type&&n.addMark(u,u+c.nodeSize,i.create(qh(d.attrs,e)))})})}),!0):!1},jS=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),PS=()=>({tr:t,dispatch:e})=>{if(e){const n=new We(t.doc);t.setSelection(n)}return!0},LS=()=>({state:t,dispatch:e})=>Ch(t,e),IS=()=>({state:t,dispatch:e})=>Dh(t,e),zS=()=>({state:t,dispatch:e})=>k1(t,e),BS=()=>({state:t,dispatch:e})=>N1(t,e),FS=()=>({state:t,dispatch:e})=>C1(t,e);function Bc(t,e,n={},o={}){return Pr(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:o.errorOnInvalidContent})}const HS=(t,e=!1,n={},o={})=>({editor:r,tr:s,dispatch:i,commands:a})=>{var l,c;const{doc:u}=s;if(n.preserveWhitespace!=="full"){const d=Bc(t,r.schema,n,{errorOnInvalidContent:(l=o.errorOnInvalidContent)!==null&&l!==void 0?l:r.options.enableContentCheck});return i&&s.replaceWith(0,u.content.size,d).setMeta("preventUpdate",!e),!0}return i&&s.setMeta("preventUpdate",!e),a.insertContentAt({from:0,to:u.content.size},t,{parseOptions:n,errorOnInvalidContent:(c=o.errorOnInvalidContent)!==null&&c!==void 0?c:r.options.enableContentCheck})};function Gh(t,e){const n=cn(e,t.schema),{from:o,to:r,empty:s}=t.selection,i=[];s?(t.storedMarks&&i.push(...t.storedMarks),i.push(...t.selection.$head.marks())):t.doc.nodesBetween(o,r,l=>{i.push(...l.marks)});const a=i.find(l=>l.type.name===n.name);return a?{...a.attrs}:{}}function VS(t,e){const n=new np(t);return e.forEach(o=>{o.steps.forEach(r=>{n.step(r)})}),n}function US(t){for(let e=0;e<t.edgeCount;e+=1){const{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function _S(t,e,n){const o=[];return t.nodesBetween(e.from,e.to,(r,s)=>{n(r)&&o.push({node:r,pos:s})}),o}function JS(t,e){for(let n=t.depth;n>0;n-=1){const o=t.node(n);if(e(o))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:o}}}function Fc(t){return e=>JS(e.$from,t)}function YS(t,e){const n={from:0,to:t.content.size};return Hh(t,n,e)}function KS(t,e){const n=ge(e,t.schema),{from:o,to:r}=t.selection,s=[];t.doc.nodesBetween(o,r,a=>{s.push(a)});const i=s.reverse().find(a=>a.type.name===n.name);return i?{...i.attrs}:{}}function Qh(t,e){const n=Ti(typeof e=="string"?e:e.name,t.schema);return n==="node"?KS(t,e):n==="mark"?Gh(t,e):{}}function WS(t,e=JSON.stringify){const n={};return t.filter(o=>{const r=e(o);return Object.prototype.hasOwnProperty.call(n,r)?!1:n[r]=!0})}function qS(t){const e=WS(t);return e.length===1?e:e.filter((n,o)=>!e.filter((s,i)=>i!==o).some(s=>n.oldRange.from>=s.oldRange.from&&n.oldRange.to<=s.oldRange.to&&n.newRange.from>=s.newRange.from&&n.newRange.to<=s.newRange.to))}function GS(t){const{mapping:e,steps:n}=t,o=[];return e.maps.forEach((r,s)=>{const i=[];if(r.ranges.length)r.forEach((a,l)=>{i.push({from:a,to:l})});else{const{from:a,to:l}=n[s];if(a===void 0||l===void 0)return;i.push({from:a,to:l})}i.forEach(({from:a,to:l})=>{const c=e.slice(s).map(a,-1),u=e.slice(s).map(l),d=e.invert().map(c,-1),m=e.invert().map(u);o.push({oldRange:{from:d,to:m},newRange:{from:c,to:u}})})}),qS(o)}function Zh(t,e,n){const o=[];return t===e?n.resolve(t).marks().forEach(r=>{const s=n.resolve(t),i=Ic(s,r.type);i&&o.push({mark:r,...i})}):n.nodesBetween(t,e,(r,s)=>{!r||(r==null?void 0:r.nodeSize)===void 0||o.push(...r.marks.map(i=>({from:s,to:s+r.nodeSize,mark:i})))}),o}function Mi(t,e,n){return Object.fromEntries(Object.entries(n).filter(([o])=>{const r=t.find(s=>s.type===e&&s.name===o);return r?r.attribute.keepOnSplit:!1}))}function Hc(t,e,n={}){const{empty:o,ranges:r}=t.selection,s=e?cn(e,t.schema):null;if(o)return!!(t.storedMarks||t.selection.$from.marks()).filter(d=>s?s.name===d.type.name:!0).find(d=>Ri(d.attrs,n,{strict:!1}));let i=0;const a=[];if(r.forEach(({$from:d,$to:m})=>{const f=d.pos,p=m.pos;t.doc.nodesBetween(f,p,(g,h)=>{if(!g.isText&&!g.marks.length)return;const y=Math.max(f,h),b=Math.min(p,h+g.nodeSize),$=b-y;i+=$,a.push(...g.marks.map(v=>({mark:v,from:y,to:b})))})}),i===0)return!1;const l=a.filter(d=>s?s.name===d.mark.type.name:!0).filter(d=>Ri(d.mark.attrs,n,{strict:!1})).reduce((d,m)=>d+m.to-m.from,0),c=a.filter(d=>s?d.mark.type!==s&&d.mark.type.excludes(s):!0).reduce((d,m)=>d+m.to-m.from,0);return(l>0?l+c:l)>=i}function QS(t,e,n={}){if(!e)return Lr(t,null,n)||Hc(t,null,n);const o=Ti(e,t.schema);return o==="node"?Lr(t,e,n):o==="mark"?Hc(t,e,n):!1}function Xh(t,e){const{nodeExtensions:n}=Ei(e),o=n.find(i=>i.name===t);if(!o)return!1;const r={name:o.name,options:o.options,storage:o.storage},s=Y(j(o,"group",r));return typeof s!="string"?!1:s.split(" ").includes("list")}function ji(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var o;if(n){if(t.type.name==="hardBreak")return!0;if(t.isText)return/^\s*$/m.test((o=t.text)!==null&&o!==void 0?o:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let r=!0;return t.content.forEach(s=>{r!==!1&&(ji(s,{ignoreWhitespace:n,checkChildren:e})||(r=!1))}),r}return!1}function ZS(t,e,n){var o;const{selection:r}=e;let s=null;if(Jh(r)&&(s=r.$cursor),s){const a=(o=t.storedMarks)!==null&&o!==void 0?o:s.marks();return!!n.isInSet(a)||!a.some(l=>l.type.excludes(n))}const{ranges:i}=r;return i.some(({$from:a,$to:l})=>{let c=a.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(a.pos,l.pos,(u,d,m)=>{if(c)return!1;if(u.isInline){const f=!m||m.type.allowsMarkType(n),p=!!n.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(n));c=f&&p}return!c}),c})}const XS=(t,e={})=>({tr:n,state:o,dispatch:r})=>{const{selection:s}=n,{empty:i,ranges:a}=s,l=cn(t,o.schema);if(r)if(i){const c=Gh(o,l);n.addStoredMark(l.create({...c,...e}))}else a.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;o.doc.nodesBetween(u,d,(m,f)=>{const p=Math.max(f,u),g=Math.min(f+m.nodeSize,d);m.marks.find(y=>y.type===l)?m.marks.forEach(y=>{l===y.type&&n.addMark(p,g,l.create({...y.attrs,...e}))}):n.addMark(p,g,l.create(e))})});return ZS(o,n,l)},ex=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),tx=(t,e={})=>({state:n,dispatch:o,chain:r})=>{const s=ge(t,n.schema);let i;return n.selection.$anchor.sameParent(n.selection.$head)&&(i=n.selection.$anchor.parent.attrs),s.isTextblock?r().command(({commands:a})=>Ph(s,{...i,...e})(n)?!0:a.clearNodes()).command(({state:a})=>Ph(s,{...i,...e})(a,o)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},nx=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,r=Wn(t,0,o.content.size),s=L.create(o,r);e.setSelection(s)}return!0},ox=t=>({tr:e,dispatch:n})=>{if(n){const{doc:o}=e,{from:r,to:s}=typeof t=="number"?{from:t,to:t}:t,i=H.atStart(o).from,a=H.atEnd(o).to,l=Wn(r,i,a),c=Wn(s,i,a),u=H.create(o,l,c);e.setSelection(u)}return!0},rx=t=>({state:e,dispatch:n})=>{const o=ge(t,e.schema);return j1(o)(e,n)};function eg(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const o=n.filter(r=>e==null?void 0:e.includes(r.type.name));t.tr.ensureMarks(o)}}const sx=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:o,editor:r})=>{const{selection:s,doc:i}=e,{$from:a,$to:l}=s,c=r.extensionManager.attributes,u=Mi(c,a.node().type.name,a.node().attrs);if(s instanceof L&&s.node.isBlock)return!a.parentOffset||!Mt(i,a.pos)?!1:(o&&(t&&eg(n,r.extensionManager.splittableMarks),e.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;const d=l.parentOffset===l.parent.content.size,m=a.depth===0?void 0:US(a.node(-1).contentMatchAt(a.indexAfter(-1)));let f=d&&m?[{type:m,attrs:u}]:void 0,p=Mt(e.doc,e.mapping.map(a.pos),1,f);if(!f&&!p&&Mt(e.doc,e.mapping.map(a.pos),1,m?[{type:m}]:void 0)&&(p=!0,f=m?[{type:m,attrs:u}]:void 0),o){if(p&&(s instanceof H&&e.deleteSelection(),e.split(e.mapping.map(a.pos),1,f),m&&!d&&!a.parentOffset&&a.parent.type!==m)){const g=e.mapping.map(a.before()),h=e.doc.resolve(g);a.node(-1).canReplaceWith(h.index(),h.index()+1,m)&&e.setNodeMarkup(e.mapping.map(a.before()),m)}t&&eg(n,r.extensionManager.splittableMarks),e.scrollIntoView()}return p},ix=(t,e={})=>({tr:n,state:o,dispatch:r,editor:s})=>{var i;const a=ge(t,o.schema),{$from:l,$to:c}=o.selection,u=o.selection.node;if(u&&u.isBlock||l.depth<2||!l.sameParent(c))return!1;const d=l.node(-1);if(d.type!==a)return!1;const m=s.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==a||l.index(-2)!==l.node(-2).childCount-1)return!1;if(r){let y=N.empty;const b=l.index(-1)?1:l.index(-2)?2:3;for(let O=l.depth-b;O>=l.depth-3;O-=1)y=N.from(l.node(O).copy(y));const $=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,v={...Mi(m,l.node().type.name,l.node().attrs),...e},k=((i=a.contentMatch.defaultType)===null||i===void 0?void 0:i.createAndFill(v))||void 0;y=y.append(N.from(a.createAndFill(null,k)||void 0));const x=l.before(l.depth-(b-1));n.replace(x,l.after(-$),new T(y,4-b,0));let C=-1;n.doc.nodesBetween(x,n.doc.content.size,(O,E)=>{if(C>-1)return!1;O.isTextblock&&O.content.size===0&&(C=E+1)}),C>-1&&n.setSelection(H.near(n.doc.resolve(C))),n.scrollIntoView()}return!0}const f=c.pos===l.end()?d.contentMatchAt(0).defaultType:null,p={...Mi(m,d.type.name,d.attrs),...e},g={...Mi(m,l.node().type.name,l.node().attrs),...e};n.delete(l.pos,c.pos);const h=f?[{type:a,attrs:p},{type:f,attrs:g}]:[{type:a,attrs:p}];if(!Mt(n.doc,l.pos,2))return!1;if(r){const{selection:y,storedMarks:b}=o,{splittableMarks:$}=s.extensionManager,v=b||y.$to.parentOffset&&y.$from.marks();if(n.split(l.pos,2,h).scrollIntoView(),!v||!r)return!0;const k=v.filter(x=>$.includes(x.type.name));n.ensureMarks(k)}return!0},Vc=(t,e)=>{const n=Fc(i=>i.type===e)(t.selection);if(!n)return!0;const o=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(o===void 0)return!0;const r=t.doc.nodeAt(o);return n.node.type===(r==null?void 0:r.type)&&Zt(t.doc,n.pos)&&t.join(n.pos),!0},Uc=(t,e)=>{const n=Fc(i=>i.type===e)(t.selection);if(!n)return!0;const o=t.doc.resolve(n.start).after(n.depth);if(o===void 0)return!0;const r=t.doc.nodeAt(o);return n.node.type===(r==null?void 0:r.type)&&Zt(t.doc,o)&&t.join(o),!0};var ax=Object.freeze({__proto__:null,blur:Z1,clearContent:X1,clearNodes:eS,command:tS,createParagraphNear:nS,cut:oS,deleteCurrentNode:rS,deleteNode:sS,deleteRange:iS,deleteSelection:aS,enter:lS,exitCode:cS,extendMarkRange:uS,first:dS,focus:fS,forEach:pS,insertContent:hS,insertContentAt:wS,joinBackward:vS,joinDown:$S,joinForward:SS,joinItemBackward:xS,joinItemForward:kS,joinTextblockBackward:ES,joinTextblockForward:CS,joinUp:bS,keyboardShortcut:AS,lift:DS,liftEmptyBlock:RS,liftListItem:OS,newlineInCode:TS,resetAttributes:MS,scrollIntoView:jS,selectAll:PS,selectNodeBackward:LS,selectNodeForward:IS,selectParentNode:zS,selectTextblockEnd:BS,selectTextblockStart:FS,setContent:HS,setMark:XS,setMeta:ex,setNode:tx,setNodeSelection:nx,setTextSelection:ox,sinkListItem:rx,splitBlock:sx,splitListItem:ix,toggleList:(t,e,n,o={})=>({editor:r,tr:s,state:i,dispatch:a,chain:l,commands:c,can:u})=>{const{extensions:d,splittableMarks:m}=r.extensionManager,f=ge(t,i.schema),p=ge(e,i.schema),{selection:g,storedMarks:h}=i,{$from:y,$to:b}=g,$=y.blockRange(b),v=h||g.$to.parentOffset&&g.$from.marks();if(!$)return!1;const k=Fc(x=>Xh(x.type.name,d))(g);if($.depth>=1&&k&&$.depth-k.depth<=1){if(k.node.type===f)return c.liftListItem(p);if(Xh(k.node.type.name,d)&&f.validContent(k.node.content)&&a)return l().command(()=>(s.setNodeMarkup(k.pos,f),!0)).command(()=>Vc(s,f)).command(()=>Uc(s,f)).run()}return!n||!v||!a?l().command(()=>u().wrapInList(f,o)?!0:c.clearNodes()).wrapInList(f,o).command(()=>Vc(s,f)).command(()=>Uc(s,f)).run():l().command(()=>{const x=u().wrapInList(f,o),C=v.filter(O=>m.includes(O.type.name));return s.ensureMarks(C),x?!0:c.clearNodes()}).wrapInList(f,o).command(()=>Vc(s,f)).command(()=>Uc(s,f)).run()},toggleMark:(t,e={},n={})=>({state:o,commands:r})=>{const{extendEmptyMarkRange:s=!1}=n,i=cn(t,o.schema);return Hc(o,i,e)?r.unsetMark(i,{extendEmptyMarkRange:s}):r.setMark(i,e)},toggleNode:(t,e,n={})=>({state:o,commands:r})=>{const s=ge(t,o.schema),i=ge(e,o.schema),a=Lr(o,s,n);let l;return o.selection.$anchor.sameParent(o.selection.$head)&&(l=o.selection.$anchor.parent.attrs),a?r.setNode(i,l):r.setNode(s,{...l,...n})},toggleWrap:(t,e={})=>({state:n,commands:o})=>{const r=ge(t,n.schema);return Lr(n,r,e)?o.lift(r):o.wrapIn(r,e)},undoInputRule:()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let o=0;o<n.length;o+=1){const r=n[o];let s;if(r.spec.isInputRules&&(s=r.getState(t))){if(e){const i=t.tr,a=s.transform;for(let l=a.steps.length-1;l>=0;l-=1)i.step(a.steps[l].invert(a.docs[l]));if(s.text){const l=i.doc.resolve(s.from).marks();i.replaceWith(s.from,s.to,t.schema.text(s.text,l))}else i.delete(s.from,s.to)}return!0}}return!1},unsetAllMarks:()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:o,ranges:r}=n;return o||e&&r.forEach(s=>{t.removeMark(s.$from.pos,s.$to.pos)}),!0},unsetMark:(t,e={})=>({tr:n,state:o,dispatch:r})=>{var s;const{extendEmptyMarkRange:i=!1}=e,{selection:a}=n,l=cn(t,o.schema),{$from:c,empty:u,ranges:d}=a;if(!r)return!0;if(u&&i){let{from:m,to:f}=a;const p=(s=c.marks().find(h=>h.type===l))===null||s===void 0?void 0:s.attrs,g=Ic(c,l,p);g&&(m=g.from,f=g.to),n.removeMark(m,f,l)}else d.forEach(m=>{n.removeMark(m.$from.pos,m.$to.pos,l)});return n.removeStoredMark(l),!0},updateAttributes:(t,e={})=>({tr:n,state:o,dispatch:r})=>{let s=null,i=null;const a=Ti(typeof t=="string"?t:t.name,o.schema);return a?(a==="node"&&(s=ge(t,o.schema)),a==="mark"&&(i=cn(t,o.schema)),r&&n.selection.ranges.forEach(l=>{const c=l.$from.pos,u=l.$to.pos;let d,m,f,p;n.selection.empty?o.doc.nodesBetween(c,u,(g,h)=>{s&&s===g.type&&(f=Math.max(h,c),p=Math.min(h+g.nodeSize,u),d=h,m=g)}):o.doc.nodesBetween(c,u,(g,h)=>{h<c&&s&&s===g.type&&(f=Math.max(h,c),p=Math.min(h+g.nodeSize,u),d=h,m=g),h>=c&&h<=u&&(s&&s===g.type&&n.setNodeMarkup(h,void 0,{...g.attrs,...e}),i&&g.marks.length&&g.marks.forEach(y=>{if(i===y.type){const b=Math.max(h,c),$=Math.min(h+g.nodeSize,u);n.addMark(b,$,i.create({...y.attrs,...e}))}}))}),m&&(d!==void 0&&n.setNodeMarkup(d,void 0,{...m.attrs,...e}),i&&m.marks.length&&m.marks.forEach(g=>{i===g.type&&n.addMark(f,p,i.create({...g.attrs,...e}))}))}),!0):!1},wrapIn:(t,e={})=>({state:n,dispatch:o})=>{const r=ge(t,n.schema);return A1(r,e)(n,o)},wrapInList:(t,e={})=>({state:n,dispatch:o})=>{const r=ge(t,n.schema);return D1(r,e)(n,o)}});const lx=ot.create({name:"commands",addCommands(){return{...ax}}}),cx=ot.create({name:"drop",addProseMirrorPlugins(){return[new Fe({key:new pt("tiptapDrop"),props:{handleDrop:(t,e,n,o)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:o})}}})]}}),ux=ot.create({name:"editable",addProseMirrorPlugins(){return[new Fe({key:new pt("editable"),props:{editable:()=>this.editor.options.editable}})]}}),dx=new pt("focusEvents"),mx=ot.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new Fe({key:dx,props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const o=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(o),!1},blur:(e,n)=>{t.isFocused=!1;const o=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(o),!1}}}})]}}),fx=ot.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:i})=>[()=>i.undoInputRule(),()=>i.command(({tr:a})=>{const{selection:l,doc:c}=a,{empty:u,$anchor:d}=l,{pos:m,parent:f}=d,p=d.parent.isTextblock&&m>0?a.doc.resolve(m-1):d,g=p.parent.type.spec.isolating,h=d.pos-d.parentOffset,y=g&&p.parent.childCount===1?h===d.pos:J.atStart(c).from===m;return!u||!f.type.isTextblock||f.textContent.length||!y||y&&d.parent.type.name==="paragraph"?!1:i.clearNodes()}),()=>i.deleteSelection(),()=>i.joinBackward(),()=>i.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:i})=>[()=>i.deleteSelection(),()=>i.deleteCurrentNode(),()=>i.joinForward(),()=>i.selectNodeForward()]),o={Enter:()=>this.editor.commands.first(({commands:i})=>[()=>i.newlineInCode(),()=>i.createParagraphNear(),()=>i.liftEmptyBlock(),()=>i.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},r={...o},s={...o,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return zc()||Wh()?s:r},addProseMirrorPlugins(){return[new Fe({key:new pt("clearDocument"),appendTransaction:(t,e,n)=>{if(t.some(g=>g.getMeta("composition")))return;const o=t.some(g=>g.docChanged)&&!e.doc.eq(n.doc),r=t.some(g=>g.getMeta("preventClearDocument"));if(!o||r)return;const{empty:s,from:i,to:a}=e.selection,l=J.atStart(e.doc).from,c=J.atEnd(e.doc).to;if(s||!(i===l&&a===c)||!ji(n.doc))return;const m=n.tr,f=xi({state:n,transaction:m}),{commands:p}=new ki({editor:this.editor,state:f});if(p.clearNodes(),!!m.steps.length)return m}})]}}),px=ot.create({name:"paste",addProseMirrorPlugins(){return[new Fe({key:new pt("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),hx=ot.create({name:"tabindex",addProseMirrorPlugins(){return[new Fe({key:new pt("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class qn{get name(){return this.node.type.name}constructor(e,n,o=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=o,this.resolvedPos=e,this.editor=n,this.currentNode=r}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,o=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You cant set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,o=this.to-1}this.editor.commands.insertContentAt({from:n,to:o},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?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new qn(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new qn(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new qn(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,o)=>{const r=n.isBlock&&!n.isTextblock,s=n.isAtom&&!n.isText,i=this.pos+o+(s?0:1);if(i<0||i>this.resolvedPos.doc.nodeSize-2)return;const a=this.resolvedPos.doc.resolve(i);if(!r&&a.depth<=this.depth)return;const l=new qn(a,this.editor,r,r?n:null);r&&(l.actualDepth=this.depth+1),e.push(new qn(a,this.editor,r,r?n:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let o=null,r=this.parent;for(;r&&!o;){if(r.node.type.name===e)if(Object.keys(n).length>0){const s=r.node.attrs,i=Object.keys(n);for(let a=0;a<i.length;a+=1){const l=i[a];if(s[l]!==n[l])break}}else o=r;r=r.parent}return o}querySelector(e,n={}){return this.querySelectorAll(e,n,!0)[0]||null}querySelectorAll(e,n={},o=!1){let r=[];if(!this.children||this.children.length===0)return r;const s=Object.keys(n);return this.children.forEach(i=>{o&&r.length>0||(i.node.type.name===e&&s.every(l=>n[l]===i.node.attrs[l])&&r.push(i),!(o&&r.length>0)&&(r=r.concat(i.querySelectorAll(e,n,o))))}),r}setAttribute(e){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(n)}}const gx=`.ProseMirror {
position: relative;
}
.ProseMirror {
word-wrap: break-word;
white-space: pre-wrap;
white-space: break-spaces;
-webkit-font-variant-ligatures: none;
font-variant-ligatures: none;
font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
}
.ProseMirror [contenteditable="false"] {
white-space: normal;
}
.ProseMirror [contenteditable="false"] [contenteditable="true"] {
white-space: pre-wrap;
}
.ProseMirror pre {
white-space: pre-wrap;
}
img.ProseMirror-separator {
display: inline !important;
border: none !important;
margin: 0 !important;
width: 0 !important;
height: 0 !important;
}
.ProseMirror-gapcursor {
display: none;
pointer-events: none;
position: absolute;
margin: 0;
}
.ProseMirror-gapcursor:after {
content: "";
display: block;
position: absolute;
top: -2px;
width: 20px;
border-top: 1px solid black;
animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
}
@keyframes ProseMirror-cursor-blink {
to {
visibility: hidden;
}
}
.ProseMirror-hideselection *::selection {
background: transparent;
}
.ProseMirror-hideselection *::-moz-selection {
background: transparent;
}
.ProseMirror-hideselection * {
caret-color: transparent;
}
.ProseMirror-focused .ProseMirror-gapcursor {
display: block;
}
.tippy-box[data-animation=fade][data-state=hidden] {
opacity: 0
}`;function yx(t,e,n){const o=document.querySelector("style[data-tiptap-style]");if(o!==null)return o;const r=document.createElement("style");return e&&r.setAttribute("nonce",e),r.setAttribute("data-tiptap-style",""),r.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(r),r}class wx extends P1{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:n})=>{throw n},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:n,slice:o,moved:r})=>this.options.onDrop(n,o,r)),this.on("paste",({event:n,slice:o})=>this.options.onPaste(n,o)),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=yx(gx,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,n=!0){this.setOptions({editable:e}),n&&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,n){const o=Ih(n)?n(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:o});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;const n=this.state.plugins;let o=n;if([].concat(e).forEach(s=>{const i=typeof s=="string"?`${s}$`:s.key;o=o.filter(a=>!a.key.startsWith(i))}),n.length===o.length)return;const r=this.state.reconfigure({plugins:o});return this.view.updateState(r),r}createExtensionManager(){var e,n;const r=[...this.options.enableCoreExtensions?[ux,Q1.configure({blockSeparator:(n=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||n===void 0?void 0:n.blockSeparator}),lx,mx,fx,hx,cx,px].filter(s=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[s.name]!==!1:!0):[],...this.options.extensions].filter(s=>["extension","node","mark"].includes(s==null?void 0:s.type));this.extensionManager=new To(r,this)}createCommandManager(){this.commandManager=new ki({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){var e;let n;try{n=Bc(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(i){if(!(i instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(i.message))throw i;this.emit("contentError",{editor:this,error:i,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(a=>a.name!=="collaboration"),this.createExtensionManager()}}),n=Bc(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}const o=Yh(n,this.options.autofocus);this.view=new s1(this.options.element,{...this.options.editorProps,attributes:{role:"textbox",...(e=this.options.editorProps)===null||e===void 0?void 0:e.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:xo.create({doc:n,selection:o||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const s=this.view.dom;s.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;const n=this.capturedTransaction;return this.capturedTransaction=null,n}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(i=>{var a;return(a=this.capturedTransaction)===null||a===void 0?void 0:a.step(i)});return}const n=this.state.apply(e),o=!this.state.selection.eq(n.selection);this.emit("beforeTransaction",{editor:this,transaction:e,nextState:n}),this.view.updateState(n),this.emit("transaction",{editor:this,transaction:e}),o&&this.emit("selectionUpdate",{editor:this,transaction:e});const r=e.getMeta("focus"),s=e.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:e}),s&&this.emit("blur",{editor:this,event:s.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return Qh(this.state,e)}isActive(e,n){const o=typeof e=="string"?e:null,r=typeof e=="string"?n:e;return QS(this.state,o,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return Pc(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:n=`
`,textSerializers:o={}}=e||{};return YS(this.state.doc,{blockSeparator:n,textSerializers:{...Vh(this.schema),...o}})}get isEmpty(){return ji(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){const e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,n){var o;return((o=this.$doc)===null||o===void 0?void 0:o.querySelector(e,n))||null}$nodes(e,n){var o;return((o=this.$doc)===null||o===void 0?void 0:o.querySelectorAll(e,n))||null}$pos(e){const n=this.state.doc.resolve(e);return new qn(n,this)}get $doc(){return this.$pos(0)}}function bx(t){return new F1({find:t.find,handler:({state:e,range:n,match:o,chain:r})=>{const s=Y(t.getAttributes,void 0,o)||{},i=e.tr.delete(n.from,n.to),l=i.doc.resolve(n.from).blockRange(),c=l&&ql(l,t.type,s);if(!c)return null;if(i.wrap(l,c),t.keepMarks&&t.editor){const{selection:d,storedMarks:m}=e,{splittableMarks:f}=t.editor.extensionManager,p=m||d.$to.parentOffset&&d.$from.marks();if(p){const g=p.filter(h=>f.includes(h.type.name));i.ensureMarks(g)}}if(t.keepAttributes){const d=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(d,s).run()}const u=i.doc.resolve(n.from-1).nodeBefore;u&&u.type===t.type&&Zt(i.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(o,u))&&i.join(n.from-1)}})}class un{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(e={}){return new un(e)}configure(e={}){const n=this.extend({...this.config,addOptions:()=>Ai(this.options,e)});return n.name=this.name,n.parent=this.parent,n}extend(e={}){const n=new un(e);return n.parent=this,this.child=n,n.name=e.name?e.name:n.parent.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: "${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 $x(t){return new J1({find:t.find,handler:({state:e,range:n,match:o,pasteEvent:r})=>{const s=Y(t.getAttributes,void 0,o,r);if(s===!1||s===null)return null;const{tr:i}=e,a=o[o.length-1],l=o[0];let c=n.to;if(a){const u=l.search(/\S/),d=n.from+l.indexOf(a),m=d+a.length;if(Zh(n.from,n.to,e.doc).filter(p=>p.mark.type.excluded.find(h=>h===t.type&&h!==p.mark.type)).filter(p=>p.to>d).length)return null;m<n.to&&i.delete(m,n.to),d>n.from&&i.delete(n.from+u,d),c=n.from+u+a.length,i.addMark(n.from+u,c,t.type.create(s||{})),i.removeStoredMark(t.type)}}})}var tg={exports:{}},rt={},ng={exports:{}},og={};/** @license React v0.20.2
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(t){var e,n,o,r;if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var i=Date,a=i.now();t.unstable_now=function(){return i.now()-a}}if(typeof window>"u"||typeof MessageChannel!="function"){var l=null,c=null,u=function(){if(l!==null)try{var R=t.unstable_now();l(!0,R),l=null}catch(P){throw setTimeout(u,0),P}};e=function(R){l!==null?setTimeout(e,0,R):(l=R,setTimeout(u,0))},n=function(R,P){c=setTimeout(R,P)},o=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},r=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,m=window.clearTimeout;if(typeof console<"u"){var f=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 f!="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 p=!1,g=null,h=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},r=function(){},t.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<R?Math.floor(1e3/R):5};var $=new MessageChannel,v=$.port2;$.port1.onmessage=function(){if(g!==null){var R=t.unstable_now();b=R+y;try{g(!0,R)?v.postMessage(null):(p=!1,g=null)}catch(P){throw v.postMessage(null),P}}else p=!1},e=function(R){g=R,p||(p=!0,v.postMessage(null))},n=function(R,P){h=d(function(){R(t.unstable_now())},P)},o=function(){m(h),h=-1}}function k(R,P){var V=R.length;R.push(P);e:for(;;){var W=V-1>>>1,Ce=R[W];if(Ce!==void 0&&0<O(Ce,P))R[W]=P,R[V]=Ce,V=W;else break e}}function x(R){return R=R[0],R===void 0?null:R}function C(R){var P=R[0];if(P!==void 0){var V=R.pop();if(V!==P){R[0]=V;e:for(var W=0,Ce=R.length;W<Ce;){var po=2*(W+1)-1,ho=R[po],Ws=po+1,mr=R[Ws];if(ho!==void 0&&0>O(ho,V))mr!==void 0&&0>O(mr,ho)?(R[W]=mr,R[Ws]=V,W=Ws):(R[W]=ho,R[po]=V,W=po);else if(mr!==void 0&&0>O(mr,V))R[W]=mr,R[Ws]=V,W=Ws;else break e}}return P}return null}function O(R,P){var V=R.sortIndex-P.sortIndex;return V!==0?V:R.id-P.id}var E=[],U=[],ae=1,ne=null,ee=3,je=!1,le=!1,me=!1;function be(R){for(var P=x(U);P!==null;){if(P.callback===null)C(U);else if(P.startTime<=R)C(U),P.sortIndex=P.expirationTime,k(E,P);else break;P=x(U)}}function fe(R){if(me=!1,be(R),!le)if(x(E)!==null)le=!0,e(Qe);else{var P=x(U);P!==null&&n(fe,P.startTime-R)}}function Qe(R,P){le=!1,me&&(me=!1,o()),je=!0;var V=ee;try{for(be(P),ne=x(E);ne!==null&&(!(ne.expirationTime>P)||R&&!t.unstable_shouldYield());){var W=ne.callback;if(typeof W=="function"){ne.callback=null,ee=ne.priorityLevel;var Ce=W(ne.expirationTime<=P);P=t.unstable_now(),typeof Ce=="function"?ne.callback=Ce:ne===x(E)&&C(E),be(P)}else C(E);ne=x(E)}if(ne!==null)var po=!0;else{var ho=x(U);ho!==null&&n(fe,ho.startTime-P),po=!1}return po}finally{ne=null,ee=V,je=!1}}var mt=r;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(R){R.callback=null},t.unstable_continueExecution=function(){le||je||(le=!0,e(Qe))},t.unstable_getCurrentPriorityLevel=function(){return ee},t.unstable_getFirstCallbackNode=function(){return x(E)},t.unstable_next=function(R){switch(ee){case 1:case 2:case 3:var P=3;break;default:P=ee}var V=ee;ee=P;try{return R()}finally{ee=V}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=mt,t.unstable_runWithPriority=function(R,P){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var V=ee;ee=R;try{return P()}finally{ee=V}},t.unstable_scheduleCallback=function(R,P,V){var W=t.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?W+V:W):V=W,R){case 1:var Ce=-1;break;case 2:Ce=250;break;case 5:Ce=1073741823;break;case 4:Ce=1e4;break;default:Ce=5e3}return Ce=V+Ce,R={id:ae++,callback:P,priorityLevel:R,startTime:V,expirationTime:Ce,sortIndex:-1},V>W?(R.sortIndex=V,k(U,R),x(E)===null&&R===x(U)&&(me?o():me=!0,n(fe,V-W))):(R.sortIndex=Ce,k(E,R),le||je||(le=!0,e(Qe))),R},t.unstable_wrapCallback=function(R){var P=ee;return function(){var V=ee;ee=P;try{return R.apply(this,arguments)}finally{ee=V}}}})(og),ng.exports=og;var vx=ng.exports;/** @license React v17.0.2
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Pi=S,te=zm,ye=vx;function D(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!Pi)throw Error(D(227));var rg=new Set,Ir={};function Gn(t,e){Mo(t,e),Mo(t+"Capture",e)}function Mo(t,e){for(Ir[t]=e,t=0;t<e.length;t++)rg.add(e[t])}var zt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sx=/^[: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]*$/,sg=Object.prototype.hasOwnProperty,ig={},ag={};function xx(t){return sg.call(ag,t)?!0:sg.call(ig,t)?!1:Sx.test(t)?ag[t]=!0:(ig[t]=!0,!1)}function kx(t,e,n,o){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return o?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function Ex(t,e,n,o){if(e===null||typeof e>"u"||kx(t,e,n,o))return!0;if(o)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function ze(t,e,n,o,r,s,i){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=i}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){xe[t]=new ze(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];xe[e]=new ze(e,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){xe[t]=new ze(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){xe[t]=new ze(t,2,!1,t,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(t){xe[t]=new ze(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){xe[t]=new ze(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){xe[t]=new ze(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){xe[t]=new ze(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){xe[t]=new ze(t,5,!1,t.toLowerCase(),null,!1,!1)});var _c=/[\-:]([a-z])/g;function Jc(t){return t[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(t){var e=t.replace(_c,Jc);xe[e]=new ze(e,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(_c,Jc);xe[e]=new ze(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(_c,Jc);xe[e]=new ze(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){xe[t]=new ze(t,1,!1,t.toLowerCase(),null,!1,!1)}),xe.xlinkHref=new ze("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){xe[t]=new ze(t,1,!1,t.toLowerCase(),null,!0,!0)});function Yc(t,e,n,o){var r=xe.hasOwnProperty(e)?xe[e]:null,s=r!==null?r.type===0:o?!1:!(!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N");s||(Ex(e,n,r,o)&&(n=null),o||r===null?xx(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):r.mustUseProperty?t[r.propertyName]=n===null?r.type===3?!1:"":n:(e=r.attributeName,o=r.attributeNamespace,n===null?t.removeAttribute(e):(r=r.type,n=r===3||r===4&&n===!0?"":""+n,o?t.setAttributeNS(o,e,n):t.setAttribute(e,n))))}var Qn=Pi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,zr=60103,Zn=60106,dn=60107,Kc=60108,Br=60114,Wc=60109,qc=60110,Li=60112,Fr=60113,Ii=60120,zi=60115,Gc=60116,Qc=60121,Zc=60128,lg=60129,Xc=60130,eu=60131;if(typeof Symbol=="function"&&Symbol.for){var we=Symbol.for;zr=we("react.element"),Zn=we("react.portal"),dn=we("react.fragment"),Kc=we("react.strict_mode"),Br=we("react.profiler"),Wc=we("react.provider"),qc=we("react.context"),Li=we("react.forward_ref"),Fr=we("react.suspense"),Ii=we("react.suspense_list"),zi=we("react.memo"),Gc=we("react.lazy"),Qc=we("react.block"),we("react.scope"),Zc=we("react.opaque.id"),lg=we("react.debug_trace_mode"),Xc=we("react.offscreen"),eu=we("react.legacy_hidden")}var cg=typeof Symbol=="function"&&Symbol.iterator;function Hr(t){return t===null||typeof t!="object"?null:(t=cg&&t[cg]||t["@@iterator"],typeof t=="function"?t:null)}var tu;function Vr(t){if(tu===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);tu=e&&e[1]||""}return`
`+tu+t}var nu=!1;function Bi(t,e){if(!t||nu)return"";nu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(l){var o=l}Reflect.construct(t,[],e)}else{try{e.call()}catch(l){o=l}t.call(e.prototype)}else{try{throw Error()}catch(l){o=l}t()}}catch(l){if(l&&o&&typeof l.stack=="string"){for(var r=l.stack.split(`
`),s=o.stack.split(`
`),i=r.length-1,a=s.length-1;1<=i&&0<=a&&r[i]!==s[a];)a--;for(;1<=i&&0<=a;i--,a--)if(r[i]!==s[a]){if(i!==1||a!==1)do if(i--,a--,0>a||r[i]!==s[a])return`
`+r[i].replace(" at new "," at ");while(1<=i&&0<=a);break}}}finally{nu=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?Vr(t):""}function Cx(t){switch(t.tag){case 5:return Vr(t.type);case 16:return Vr("Lazy");case 13:return Vr("Suspense");case 19:return Vr("SuspenseList");case 0:case 2:case 15:return t=Bi(t.type,!1),t;case 11:return t=Bi(t.type.render,!1),t;case 22:return t=Bi(t.type._render,!1),t;case 1:return t=Bi(t.type,!0),t;default:return""}}function jo(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case dn:return"Fragment";case Zn:return"Portal";case Br:return"Profiler";case Kc:return"StrictMode";case Fr:return"Suspense";case Ii:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case qc:return(t.displayName||"Context")+".Consumer";case Wc:return(t._context.displayName||"Context")+".Provider";case Li:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case zi:return jo(t.type);case Qc:return jo(t._render);case Gc:e=t._payload,t=t._init;try{return jo(t(e))}catch{}}return null}function mn(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function ug(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Nx(t){var e=ug(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),o=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(i){o=""+i,s.call(this,i)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(i){o=""+i},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Fi(t){t._valueTracker||(t._valueTracker=Nx(t))}function dg(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),o="";return t&&(o=ug(t)?t.checked?"true":"false":t.value),t=o,t!==n?(e.setValue(t),!0):!1}function Hi(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function ou(t,e){var n=e.checked;return te({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function mg(t,e){var n=e.defaultValue==null?"":e.defaultValue,o=e.checked!=null?e.checked:e.defaultChecked;n=mn(e.value!=null?e.value:n),t._wrapperState={initialChecked:o,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function fg(t,e){e=e.checked,e!=null&&Yc(t,"checked",e,!1)}function ru(t,e){fg(t,e);var n=mn(e.value),o=e.type;if(n!=null)o==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(o==="submit"||o==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?su(t,e.type,n):e.hasOwnProperty("defaultValue")&&su(t,e.type,mn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function pg(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var o=e.type;if(!(o!=="submit"&&o!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function su(t,e,n){(e!=="number"||Hi(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function Ax(t){var e="";return Pi.Children.forEach(t,function(n){n!=null&&(e+=n)}),e}function iu(t,e){return t=te({children:void 0},e),(e=Ax(e.children))&&(t.children=e),t}function Po(t,e,n,o){if(t=t.options,e){e={};for(var r=0;r<n.length;r++)e["$"+n[r]]=!0;for(n=0;n<t.length;n++)r=e.hasOwnProperty("$"+t[n].value),t[n].selected!==r&&(t[n].selected=r),r&&o&&(t[n].defaultSelected=!0)}else{for(n=""+mn(n),e=null,r=0;r<t.length;r++){if(t[r].value===n){t[r].selected=!0,o&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function au(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(D(91));return te({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function hg(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(D(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(D(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:mn(n)}}function gg(t,e){var n=mn(e.value),o=mn(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),o!=null&&(t.defaultValue=""+o)}function yg(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}var lu={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function wg(t){switch(t){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 cu(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?wg(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Vi,bg=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,o,r){MSApp.execUnsafeLocalFunction(function(){return t(e,n,o,r)})}:t}(function(t,e){if(t.namespaceURI!==lu.svg||"innerHTML"in t)t.innerHTML=e;else{for(Vi=Vi||document.createElement("div"),Vi.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Vi.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Ur(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var _r={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},Dx=["Webkit","ms","Moz","O"];Object.keys(_r).forEach(function(t){Dx.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),_r[e]=_r[t]})});function $g(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||_r.hasOwnProperty(t)&&_r[t]?(""+e).trim():e+"px"}function vg(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var o=n.indexOf("--")===0,r=$g(n,e[n],o);n==="float"&&(n="cssFloat"),o?t.setProperty(n,r):t[n]=r}}var Rx=te({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 uu(t,e){if(e){if(Rx[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(D(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(D(60));if(!(typeof e.dangerouslySetInnerHTML=="object"&&"__html"in e.dangerouslySetInnerHTML))throw Error(D(61))}if(e.style!=null&&typeof e.style!="object")throw Error(D(62))}}function du(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 mu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var fu=null,Lo=null,Io=null;function Sg(t){if(t=us(t)){if(typeof fu!="function")throw Error(D(280));var e=t.stateNode;e&&(e=ia(e),fu(t.stateNode,t.type,e))}}function xg(t){Lo?Io?Io.push(t):Io=[t]:Lo=t}function kg(){if(Lo){var t=Lo,e=Io;if(Io=Lo=null,Sg(t),e)for(t=0;t<e.length;t++)Sg(e[t])}}function pu(t,e){return t(e)}function Eg(t,e,n,o,r){return t(e,n,o,r)}function hu(){}var Cg=pu,Xn=!1,gu=!1;function yu(){(Lo!==null||Io!==null)&&(hu(),kg())}function Ox(t,e,n){if(gu)return t(e,n);gu=!0;try{return Cg(t,e,n)}finally{gu=!1,yu()}}function Jr(t,e){var n=t.stateNode;if(n===null)return null;var o=ia(n);if(o===null)return null;n=o[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(t=t.type,o=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!o;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(D(231,e,typeof n));return n}var wu=!1;if(zt)try{var Yr={};Object.defineProperty(Yr,"passive",{get:function(){wu=!0}}),window.addEventListener("test",Yr,Yr),window.removeEventListener("test",Yr,Yr)}catch{wu=!1}function Tx(t,e,n,o,r,s,i,a,l){var c=Array.prototype.slice.call(arguments,3);try{e.apply(n,c)}catch(u){this.onError(u)}}var Kr=!1,Ui=null,_i=!1,bu=null,Mx={onError:function(t){Kr=!0,Ui=t}};function jx(t,e,n,o,r,s,i,a,l){Kr=!1,Ui=null,Tx.apply(Mx,arguments)}function Px(t,e,n,o,r,s,i,a,l){if(jx.apply(this,arguments),Kr){if(Kr){var c=Ui;Kr=!1,Ui=null}else throw Error(D(198));_i||(_i=!0,bu=c)}}function eo(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&1026&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function Ng(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Ag(t){if(eo(t)!==t)throw Error(D(188))}function Lx(t){var e=t.alternate;if(!e){if(e=eo(t),e===null)throw Error(D(188));return e!==t?null:t}for(var n=t,o=e;;){var r=n.return;if(r===null)break;var s=r.alternate;if(s===null){if(o=r.return,o!==null){n=o;continue}break}if(r.child===s.child){for(s=r.child;s;){if(s===n)return Ag(r),t;if(s===o)return Ag(r),e;s=s.sibling}throw Error(D(188))}if(n.return!==o.return)n=r,o=s;else{for(var i=!1,a=r.child;a;){if(a===n){i=!0,n=r,o=s;break}if(a===o){i=!0,o=r,n=s;break}a=a.sibling}if(!i){for(a=s.child;a;){if(a===n){i=!0,n=s,o=r;break}if(a===o){i=!0,o=s,n=r;break}a=a.sibling}if(!i)throw Error(D(189))}}if(n.alternate!==o)throw Error(D(190))}if(n.tag!==3)throw Error(D(188));return n.stateNode.current===n?t:e}function Dg(t){if(t=Lx(t),!t)return null;for(var e=t;;){if(e.tag===5||e.tag===6)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function Rg(t,e){for(var n=t.alternate;e!==null;){if(e===t||e===n)return!0;e=e.return}return!1}var Og,$u,Tg,Mg,vu=!1,St=[],fn=null,pn=null,hn=null,Wr=new Map,qr=new Map,Gr=[],jg="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 Su(t,e,n,o,r){return{blockedOn:t,domEventName:e,eventSystemFlags:n|16,nativeEvent:r,targetContainers:[o]}}function Pg(t,e){switch(t){case"focusin":case"focusout":fn=null;break;case"dragenter":case"dragleave":pn=null;break;case"mouseover":case"mouseout":hn=null;break;case"pointerover":case"pointerout":Wr.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":qr.delete(e.pointerId)}}function Qr(t,e,n,o,r,s){return t===null||t.nativeEvent!==s?(t=Su(e,n,o,r,s),e!==null&&(e=us(e),e!==null&&$u(e)),t):(t.eventSystemFlags|=o,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function Ix(t,e,n,o,r){switch(e){case"focusin":return fn=Qr(fn,t,e,n,o,r),!0;case"dragenter":return pn=Qr(pn,t,e,n,o,r),!0;case"mouseover":return hn=Qr(hn,t,e,n,o,r),!0;case"pointerover":var s=r.pointerId;return Wr.set(s,Qr(Wr.get(s)||null,t,e,n,o,r)),!0;case"gotpointercapture":return s=r.pointerId,qr.set(s,Qr(qr.get(s)||null,t,e,n,o,r)),!0}return!1}function zx(t){var e=to(t.target);if(e!==null){var n=eo(e);if(n!==null){if(e=n.tag,e===13){if(e=Ng(n),e!==null){t.blockedOn=e,Mg(t.lanePriority,function(){ye.unstable_runWithPriority(t.priority,function(){Tg(n)})});return}}else if(e===3&&n.stateNode.hydrate){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ji(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Au(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null)return e=us(n),e!==null&&$u(e),t.blockedOn=n,!1;e.shift()}return!0}function Lg(t,e,n){Ji(t)&&n.delete(e)}function Bx(){for(vu=!1;0<St.length;){var t=St[0];if(t.blockedOn!==null){t=us(t.blockedOn),t!==null&&Og(t);break}for(var e=t.targetContainers;0<e.length;){var n=Au(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n!==null){t.blockedOn=n;break}e.shift()}t.blockedOn===null&&St.shift()}fn!==null&&Ji(fn)&&(fn=null),pn!==null&&Ji(pn)&&(pn=null),hn!==null&&Ji(hn)&&(hn=null),Wr.forEach(Lg),qr.forEach(Lg)}function Zr(t,e){t.blockedOn===e&&(t.blockedOn=null,vu||(vu=!0,ye.unstable_scheduleCallback(ye.unstable_NormalPriority,Bx)))}function Ig(t){function e(r){return Zr(r,t)}if(0<St.length){Zr(St[0],t);for(var n=1;n<St.length;n++){var o=St[n];o.blockedOn===t&&(o.blockedOn=null)}}for(fn!==null&&Zr(fn,t),pn!==null&&Zr(pn,t),hn!==null&&Zr(hn,t),Wr.forEach(e),qr.forEach(e),n=0;n<Gr.length;n++)o=Gr[n],o.blockedOn===t&&(o.blockedOn=null);for(;0<Gr.length&&(n=Gr[0],n.blockedOn===null);)zx(n),n.blockedOn===null&&Gr.shift()}function Yi(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var zo={animationend:Yi("Animation","AnimationEnd"),animationiteration:Yi("Animation","AnimationIteration"),animationstart:Yi("Animation","AnimationStart"),transitionend:Yi("Transition","TransitionEnd")},xu={},zg={};zt&&(zg=document.createElement("div").style,"AnimationEvent"in window||(delete zo.animationend.animation,delete zo.animationiteration.animation,delete zo.animationstart.animation),"TransitionEvent"in window||delete zo.transitionend.transition);function Ki(t){if(xu[t])return xu[t];if(!zo[t])return t;var e=zo[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in zg)return xu[t]=e[n];return t}var Bg=Ki("animationend"),Fg=Ki("animationiteration"),Hg=Ki("animationstart"),Vg=Ki("transitionend"),Ug=new Map,ku=new Map,Fx=["abort","abort",Bg,"animationEnd",Fg,"animationIteration",Hg,"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",Vg,"transitionEnd","waiting","waiting"];function Eu(t,e){for(var n=0;n<t.length;n+=2){var o=t[n],r=t[n+1];r="on"+(r[0].toUpperCase()+r.slice(1)),ku.set(o,e),Ug.set(o,r),Gn(r,[o])}}var Hx=ye.unstable_now;Hx();var G=8;function Bo(t){if(1&t)return G=15,1;if(2&t)return G=14,2;if(4&t)return G=13,4;var e=24&t;return e!==0?(G=12,e):t&32?(G=11,32):(e=192&t,e!==0?(G=10,e):t&256?(G=9,256):(e=3584&t,e!==0?(G=8,e):t&4096?(G=7,4096):(e=4186112&t,e!==0?(G=6,e):(e=62914560&t,e!==0?(G=5,e):t&67108864?(G=4,67108864):t&134217728?(G=3,134217728):(e=805306368&t,e!==0?(G=2,e):1073741824&t?(G=1,1073741824):(G=8,t))))))}function Vx(t){switch(t){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function Ux(t){switch(t){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(D(358,t))}}function Xr(t,e){var n=t.pendingLanes;if(n===0)return G=0;var o=0,r=0,s=t.expiredLanes,i=t.suspendedLanes,a=t.pingedLanes;if(s!==0)o=s,r=G=15;else if(s=n&134217727,s!==0){var l=s&~i;l!==0?(o=Bo(l),r=G):(a&=s,a!==0&&(o=Bo(a),r=G))}else s=n&~i,s!==0?(o=Bo(s),r=G):a!==0&&(o=Bo(a),r=G);if(o===0)return 0;if(o=31-gn(o),o=n&((0>o?0:1<<o)<<1)-1,e!==0&&e!==o&&!(e&i)){if(Bo(e),r<=G)return e;G=r}if(e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=o;0<e;)n=31-gn(e),r=1<<n,o|=t[n],e&=~r;return o}function _g(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Wi(t,e){switch(t){case 15:return 1;case 14:return 2;case 12:return t=Fo(24&~e),t===0?Wi(10,e):t;case 10:return t=Fo(192&~e),t===0?Wi(8,e):t;case 8:return t=Fo(3584&~e),t===0&&(t=Fo(4186112&~e),t===0&&(t=512)),t;case 2:return e=Fo(805306368&~e),e===0&&(e=268435456),e}throw Error(D(358,t))}function Fo(t){return t&-t}function Cu(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function qi(t,e,n){t.pendingLanes|=e;var o=e-1;t.suspendedLanes&=o,t.pingedLanes&=o,t=t.eventTimes,e=31-gn(e),t[e]=n}var gn=Math.clz32?Math.clz32:Yx,_x=Math.log,Jx=Math.LN2;function Yx(t){return t===0?32:31-(_x(t)/Jx|0)|0}var Kx=ye.unstable_UserBlockingPriority,Wx=ye.unstable_runWithPriority,Gi=!0;function qx(t,e,n,o){Xn||hu();var r=Nu,s=Xn;Xn=!0;try{Eg(r,t,e,n,o)}finally{(Xn=s)||yu()}}function Gx(t,e,n,o){Wx(Kx,Nu.bind(null,t,e,n,o))}function Nu(t,e,n,o){if(Gi){var r;if((r=(e&4)===0)&&0<St.length&&-1<jg.indexOf(t))t=Su(null,t,e,n,o),St.push(t);else{var s=Au(t,e,n,o);if(s===null)r&&Pg(t,o);else{if(r){if(-1<jg.indexOf(t)){t=Su(s,t,e,n,o),St.push(t);return}if(Ix(s,t,e,n,o))return;Pg(t,o)}by(t,e,o,null,n)}}}}function Au(t,e,n,o){var r=mu(o);if(r=to(r),r!==null){var s=eo(r);if(s===null)r=null;else{var i=s.tag;if(i===13){if(r=Ng(s),r!==null)return r;r=null}else if(i===3){if(s.stateNode.hydrate)return s.tag===3?s.stateNode.containerInfo:null;r=null}else s!==r&&(r=null)}}return by(t,e,o,r,n),null}var yn=null,Du=null,Qi=null;function Jg(){if(Qi)return Qi;var t,e=Du,n=e.length,o,r="value"in yn?yn.value:yn.textContent,s=r.length;for(t=0;t<n&&e[t]===r[t];t++);var i=n-t;for(o=1;o<=i&&e[n-o]===r[s-o];o++);return Qi=r.slice(t,1<o?1-o:void 0)}function Zi(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Xi(){return!0}function Yg(){return!1}function qe(t){function e(n,o,r,s,i){this._reactName=n,this._targetInst=r,this.type=o,this.nativeEvent=s,this.target=i,this.currentTarget=null;for(var a in t)t.hasOwnProperty(a)&&(n=t[a],this[a]=n?n(s):s[a]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Xi:Yg,this.isPropagationStopped=Yg,this}return te(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Xi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Xi)},persist:function(){},isPersistent:Xi}),e}var Ho={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ru=qe(Ho),es=te({},Ho,{view:0,detail:0}),Qx=qe(es),Ou,Tu,ts,ea=te({},es,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ju,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ts&&(ts&&t.type==="mousemove"?(Ou=t.screenX-ts.screenX,Tu=t.screenY-ts.screenY):Tu=Ou=0,ts=t),Ou)},movementY:function(t){return"movementY"in t?t.movementY:Tu}}),Kg=qe(ea),Zx=te({},ea,{dataTransfer:0}),Xx=qe(Zx),ek=te({},es,{relatedTarget:0}),Mu=qe(ek),tk=te({},Ho,{animationName:0,elapsedTime:0,pseudoElement:0}),nk=qe(tk),ok=te({},Ho,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),rk=qe(ok),sk=te({},Ho,{data:0}),Wg=qe(sk),ik={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ak={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"},lk={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ck(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=lk[t])?!!e[t]:!1}function ju(){return ck}var uk=te({},es,{key:function(t){if(t.key){var e=ik[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Zi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?ak[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ju,charCode:function(t){return t.type==="keypress"?Zi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Zi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),dk=qe(uk),mk=te({},ea,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qg=qe(mk),fk=te({},es,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ju}),pk=qe(fk),hk=te({},Ho,{propertyName:0,elapsedTime:0,pseudoElement:0}),gk=qe(hk),yk=te({},ea,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),wk=qe(yk),bk=[9,13,27,32],Pu=zt&&"CompositionEvent"in window,ns=null;zt&&"documentMode"in document&&(ns=document.documentMode);var $k=zt&&"TextEvent"in window&&!ns,Gg=zt&&(!Pu||ns&&8<ns&&11>=ns),Qg=" ",Zg=!1;function Xg(t,e){switch(t){case"keyup":return bk.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ey(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Vo=!1;function vk(t,e){switch(t){case"compositionend":return ey(e);case"keypress":return e.which!==32?null:(Zg=!0,Qg);case"textInput":return t=e.data,t===Qg&&Zg?null:t;default:return null}}function Sk(t,e){if(Vo)return t==="compositionend"||!Pu&&Xg(t,e)?(t=Jg(),Qi=Du=yn=null,Vo=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Gg&&e.locale!=="ko"?null:e.data;default:return null}}var xk={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 ty(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!xk[t.type]:e==="textarea"}function ny(t,e,n,o){xg(o),e=na(e,"onChange"),0<e.length&&(n=new Ru("onChange","change",null,n,o),t.push({event:n,listeners:e}))}var rs=null,ss=null;function kk(t){py(t,0)}function ta(t){var e=Ko(t);if(dg(e))return t}function Ek(t,e){if(t==="change")return e}var oy=!1;if(zt){var Lu;if(zt){var Iu="oninput"in document;if(!Iu){var ry=document.createElement("div");ry.setAttribute("oninput","return;"),Iu=typeof ry.oninput=="function"}Lu=Iu}else Lu=!1;oy=Lu&&(!document.documentMode||9<document.documentMode)}function sy(){rs&&(rs.detachEvent("onpropertychange",iy),ss=rs=null)}function iy(t){if(t.propertyName==="value"&&ta(ss)){var e=[];if(ny(e,ss,t,mu(t)),t=kk,Xn)t(e);else{Xn=!0;try{pu(t,e)}finally{Xn=!1,yu()}}}}function Ck(t,e,n){t==="focusin"?(sy(),rs=e,ss=n,rs.attachEvent("onpropertychange",iy)):t==="focusout"&&sy()}function Nk(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return ta(ss)}function Ak(t,e){if(t==="click")return ta(e)}function Dk(t,e){if(t==="input"||t==="change")return ta(e)}function Rk(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var st=typeof Object.is=="function"?Object.is:Rk,Ok=Object.prototype.hasOwnProperty;function is(t,e){if(st(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!Ok.call(e,n[o])||!st(t[n[o]],e[n[o]]))return!1;return!0}function ay(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ly(t,e){var n=ay(t);t=0;for(var o;n;){if(n.nodeType===3){if(o=t+n.textContent.length,t<=e&&o>=e)return{node:n,offset:e-t};t=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=ay(n)}}function cy(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?cy(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function uy(){for(var t=window,e=Hi();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Hi(t.document)}return e}function zu(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Tk=zt&&"documentMode"in document&&11>=document.documentMode,Uo=null,Bu=null,as=null,Fu=!1;function dy(t,e,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fu||Uo==null||Uo!==Hi(o)||(o=Uo,"selectionStart"in o&&zu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),as&&is(as,o)||(as=o,o=na(Bu,"onSelect"),0<o.length&&(e=new Ru("onSelect","select",null,e,n),t.push({event:e,listeners:o}),e.target=Uo)))}Eu("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),Eu("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),Eu(Fx,2);for(var my="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Hu=0;Hu<my.length;Hu++)ku.set(my[Hu],0);Mo("onMouseEnter",["mouseout","mouseover"]),Mo("onMouseLeave",["mouseout","mouseover"]),Mo("onPointerEnter",["pointerout","pointerover"]),Mo("onPointerLeave",["pointerout","pointerover"]),Gn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Gn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Gn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Gn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Gn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Gn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ls="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mk=new Set("cancel close invalid load scroll toggle".split(" ").concat(ls));function fy(t,e,n){var o=t.type||"unknown-event";t.currentTarget=n,Px(o,e,void 0,t),t.currentTarget=null}function py(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var o=t[n],r=o.event;o=o.listeners;e:{var s=void 0;if(e)for(var i=o.length-1;0<=i;i--){var a=o[i],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==s&&r.isPropagationStopped())break e;fy(r,a,c),s=l}else for(i=0;i<o.length;i++){if(a=o[i],l=a.instance,c=a.currentTarget,a=a.listener,l!==s&&r.isPropagationStopped())break e;fy(r,a,c),s=l}}}if(_i)throw t=bu,_i=!1,bu=null,t}function Q(t,e){var n=Ey(e),o=t+"__bubble";n.has(o)||(wy(e,t,2,!1),n.add(o))}var hy="_reactListening"+Math.random().toString(36).slice(2);function gy(t){t[hy]||(t[hy]=!0,rg.forEach(function(e){Mk.has(e)||yy(e,!1,t,null),yy(e,!0,t,null)}))}function yy(t,e,n,o){var r=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,s=n;t==="selectionchange"&&n.nodeType!==9&&(s=n.ownerDocument);var i=Ey(s),a=t+"__"+(e?"capture":"bubble");i.has(a)||(e&&(r|=4),wy(s,t,r,e),i.add(a))}function wy(t,e,n,o){var r=ku.get(e);switch(r===void 0?2:r){case 0:r=qx;break;case 1:r=Gx;break;default:r=Nu}n=r.bind(null,e,n,t),r=void 0,!wu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),o?r!==void 0?t.addEventListener(e,n,{capture:!0,passive:r}):t.addEventListener(e,n,!0):r!==void 0?t.addEventListener(e,n,{passive:r}):t.addEventListener(e,n,!1)}function by(t,e,n,o,r){var s=o;if(!(e&1)&&!(e&2)&&o!==null)e:for(;;){if(o===null)return;var i=o.tag;if(i===3||i===4){var a=o.stateNode.containerInfo;if(a===r||a.nodeType===8&&a.parentNode===r)break;if(i===4)for(i=o.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===r||l.nodeType===8&&l.parentNode===r))return;i=i.return}for(;a!==null;){if(i=to(a),i===null)return;if(l=i.tag,l===5||l===6){o=s=i;continue e}a=a.parentNode}}o=o.return}Ox(function(){var c=s,u=mu(n),d=[];e:{var m=Ug.get(t);if(m!==void 0){var f=Ru,p=t;switch(t){case"keypress":if(Zi(n)===0)break e;case"keydown":case"keyup":f=dk;break;case"focusin":p="focus",f=Mu;break;case"focusout":p="blur",f=Mu;break;case"beforeblur":case"afterblur":f=Mu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=Kg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=Xx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=pk;break;case Bg:case Fg:case Hg:f=nk;break;case Vg:f=gk;break;case"scroll":f=Qx;break;case"wheel":f=wk;break;case"copy":case"cut":case"paste":f=rk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=qg}var g=(e&4)!==0,h=!g&&t==="scroll",y=g?m!==null?m+"Capture":null:m;g=[];for(var b=c,$;b!==null;){$=b;var v=$.stateNode;if($.tag===5&&v!==null&&($=v,y!==null&&(v=Jr(b,y),v!=null&&g.push(cs(b,v,$)))),h)break;b=b.return}0<g.length&&(m=new f(m,p,null,n,u),d.push({event:m,listeners:g}))}}if(!(e&7)){e:{if(m=t==="mouseover"||t==="pointerover",f=t==="mouseout"||t==="pointerout",m&&!(e&16)&&(p=n.relatedTarget||n.fromElement)&&(to(p)||p[Yo]))break e;if((f||m)&&(m=u.window===u?u:(m=u.ownerDocument)?m.defaultView||m.parentWindow:window,f?(p=n.relatedTarget||n.toElement,f=c,p=p?to(p):null,p!==null&&(h=eo(p),p!==h||p.tag!==5&&p.tag!==6)&&(p=null)):(f=null,p=c),f!==p)){if(g=Kg,v="onMouseLeave",y="onMouseEnter",b="mouse",(t==="pointerout"||t==="pointerover")&&(g=qg,v="onPointerLeave",y="onPointerEnter",b="pointer"),h=f==null?m:Ko(f),$=p==null?m:Ko(p),m=new g(v,b+"leave",f,n,u),m.target=h,m.relatedTarget=$,v=null,to(u)===c&&(g=new g(y,b+"enter",p,n,u),g.target=$,g.relatedTarget=h,v=g),h=v,f&&p)t:{for(g=f,y=p,b=0,$=g;$;$=_o($))b++;for($=0,v=y;v;v=_o(v))$++;for(;0<b-$;)g=_o(g),b--;for(;0<$-b;)y=_o(y),$--;for(;b--;){if(g===y||y!==null&&g===y.alternate)break t;g=_o(g),y=_o(y)}g=null}else g=null;f!==null&&$y(d,m,f,g,!1),p!==null&&h!==null&&$y(d,h,p,g,!0)}}e:{if(m=c?Ko(c):window,f=m.nodeName&&m.nodeName.toLowerCase(),f==="select"||f==="input"&&m.type==="file")var k=Ek;else if(ty(m))if(oy)k=Dk;else{k=Nk;var x=Ck}else(f=m.nodeName)&&f.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(k=Ak);if(k&&(k=k(t,c))){ny(d,k,n,u);break e}x&&x(t,m,c),t==="focusout"&&(x=m._wrapperState)&&x.controlled&&m.type==="number"&&su(m,"number",m.value)}switch(x=c?Ko(c):window,t){case"focusin":(ty(x)||x.contentEditable==="true")&&(Uo=x,Bu=c,as=null);break;case"focusout":as=Bu=Uo=null;break;case"mousedown":Fu=!0;break;case"contextmenu":case"mouseup":case"dragend":Fu=!1,dy(d,n,u);break;case"selectionchange":if(Tk)break;case"keydown":case"keyup":dy(d,n,u)}var C;if(Pu)e:{switch(t){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else Vo?Xg(t,n)&&(O="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(Gg&&n.locale!=="ko"&&(Vo||O!=="onCompositionStart"?O==="onCompositionEnd"&&Vo&&(C=Jg()):(yn=u,Du="value"in yn?yn.value:yn.textContent,Vo=!0)),x=na(c,O),0<x.length&&(O=new Wg(O,t,null,n,u),d.push({event:O,listeners:x}),C?O.data=C:(C=ey(n),C!==null&&(O.data=C)))),(C=$k?vk(t,n):Sk(t,n))&&(c=na(c,"onBeforeInput"),0<c.length&&(u=new Wg("onBeforeInput","beforeinput",null,n,u),d.push({event:u,listeners:c}),u.data=C))}py(d,e)})}function cs(t,e,n){return{instance:t,listener:e,currentTarget:n}}function na(t,e){for(var n=e+"Capture",o=[];t!==null;){var r=t,s=r.stateNode;r.tag===5&&s!==null&&(r=s,s=Jr(t,n),s!=null&&o.unshift(cs(t,s,r)),s=Jr(t,e),s!=null&&o.push(cs(t,s,r))),t=t.return}return o}function _o(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function $y(t,e,n,o,r){for(var s=e._reactName,i=[];n!==null&&n!==o;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===o)break;a.tag===5&&c!==null&&(a=c,r?(l=Jr(n,s),l!=null&&i.unshift(cs(n,l,a))):r||(l=Jr(n,s),l!=null&&i.push(cs(n,l,a)))),n=n.return}i.length!==0&&t.push({event:e,listeners:i})}function oa(){}var Vu=null,Uu=null;function vy(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function _u(t,e){return t==="textarea"||t==="option"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Sy=typeof setTimeout=="function"?setTimeout:void 0,jk=typeof clearTimeout=="function"?clearTimeout:void 0;function Ju(t){t.nodeType===1?t.textContent="":t.nodeType===9&&(t=t.body,t!=null&&(t.textContent=""))}function Jo(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break}return t}function xy(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var Yu=0;function Pk(t){return{$$typeof:Zc,toString:t,valueOf:t}}var ra=Math.random().toString(36).slice(2),wn="__reactFiber$"+ra,sa="__reactProps$"+ra,Yo="__reactContainer$"+ra,ky="__reactEvents$"+ra;function to(t){var e=t[wn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Yo]||n[wn]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=xy(t);t!==null;){if(n=t[wn])return n;t=xy(t)}return e}t=n,n=t.parentNode}return null}function us(t){return t=t[wn]||t[Yo],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Ko(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(D(33))}function ia(t){return t[sa]||null}function Ey(t){var e=t[ky];return e===void 0&&(e=t[ky]=new Set),e}var Ku=[],Wo=-1;function bn(t){return{current:t}}function Z(t){0>Wo||(t.current=Ku[Wo],Ku[Wo]=null,Wo--)}function oe(t,e){Wo++,Ku[Wo]=t.current,t.current=e}var $n={},Re=bn($n),Ve=bn(!1),no=$n;function qo(t,e){var n=t.type.contextTypes;if(!n)return $n;var o=t.stateNode;if(o&&o.__reactInternalMemoizedUnmaskedChildContext===e)return o.__reactInternalMemoizedMaskedChildContext;var r={},s;for(s in n)r[s]=e[s];return o&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function Ue(t){return t=t.childContextTypes,t!=null}function aa(){Z(Ve),Z(Re)}function Cy(t,e,n){if(Re.current!==$n)throw Error(D(168));oe(Re,e),oe(Ve,n)}function Ny(t,e,n){var o=t.stateNode;if(t=e.childContextTypes,typeof o.getChildContext!="function")return n;o=o.getChildContext();for(var r in o)if(!(r in t))throw Error(D(108,jo(e)||"Unknown",r));return te({},n,o)}function la(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||$n,no=Re.current,oe(Re,t),oe(Ve,Ve.current),!0}function Ay(t,e,n){var o=t.stateNode;if(!o)throw Error(D(169));n?(t=Ny(t,e,no),o.__reactInternalMemoizedMergedChildContext=t,Z(Ve),Z(Re),oe(Re,t)):Z(Ve),oe(Ve,n)}var Wu=null,oo=null,Lk=ye.unstable_runWithPriority,qu=ye.unstable_scheduleCallback,Gu=ye.unstable_cancelCallback,Ik=ye.unstable_shouldYield,Dy=ye.unstable_requestPaint,Qu=ye.unstable_now,zk=ye.unstable_getCurrentPriorityLevel,ca=ye.unstable_ImmediatePriority,Ry=ye.unstable_UserBlockingPriority,Oy=ye.unstable_NormalPriority,Ty=ye.unstable_LowPriority,My=ye.unstable_IdlePriority,Zu={},Bk=Dy!==void 0?Dy:function(){},Bt=null,ua=null,Xu=!1,jy=Qu(),Oe=1e4>jy?Qu:function(){return Qu()-jy};function Go(){switch(zk()){case ca:return 99;case Ry:return 98;case Oy:return 97;case Ty:return 96;case My:return 95;default:throw Error(D(332))}}function Py(t){switch(t){case 99:return ca;case 98:return Ry;case 97:return Oy;case 96:return Ty;case 95:return My;default:throw Error(D(332))}}function ro(t,e){return t=Py(t),Lk(t,e)}function ds(t,e,n){return t=Py(t),qu(t,e,n)}function xt(){if(ua!==null){var t=ua;ua=null,Gu(t)}Ly()}function Ly(){if(!Xu&&Bt!==null){Xu=!0;var t=0;try{var e=Bt;ro(99,function(){for(;t<e.length;t++){var n=e[t];do n=n(!0);while(n!==null)}}),Bt=null}catch(n){throw Bt!==null&&(Bt=Bt.slice(t+1)),qu(ca,xt),n}finally{Xu=!1}}}var Fk=Qn.ReactCurrentBatchConfig;function gt(t,e){if(t&&t.defaultProps){e=te({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}var da=bn(null),ma=null,Qo=null,fa=null;function ed(){fa=Qo=ma=null}function td(t){var e=da.current;Z(da),t.type._context._currentValue=e}function Iy(t,e){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)===e){if(n===null||(n.childLanes&e)===e)break;n.childLanes|=e}else t.childLanes|=e,n!==null&&(n.childLanes|=e);t=t.return}}function Zo(t,e){ma=t,fa=Qo=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(yt=!0),t.firstContext=null)}function it(t,e){if(fa!==t&&e!==!1&&e!==0)if((typeof e!="number"||e===1073741823)&&(fa=t,e=1073741823),e={context:t,observedBits:e,next:null},Qo===null){if(ma===null)throw Error(D(308));Qo=e,ma.dependencies={lanes:0,firstContext:e,responders:null}}else Qo=Qo.next=e;return t._currentValue}var vn=!1;function nd(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function zy(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Sn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function xn(t,e){if(t=t.updateQueue,t!==null){t=t.shared;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function By(t,e){var n=t.updateQueue,o=t.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var r=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?r=s=i:s=s.next=i,n=n.next}while(n!==null);s===null?r=s=e:s=s.next=e}else r=s=e;n={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:s,shared:o.shared,effects:o.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function ms(t,e,n,o){var r=t.updateQueue;vn=!1;var s=r.firstBaseUpdate,i=r.lastBaseUpdate,a=r.shared.pending;if(a!==null){r.shared.pending=null;var l=a,c=l.next;l.next=null,i===null?s=c:i.next=c,i=l;var u=t.alternate;if(u!==null){u=u.updateQueue;var d=u.lastBaseUpdate;d!==i&&(d===null?u.firstBaseUpdate=c:d.next=c,u.lastBaseUpdate=l)}}if(s!==null){d=r.baseState,i=0,u=c=l=null;do{a=s.lane;var m=s.eventTime;if((o&a)===a){u!==null&&(u=u.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=t,p=s;switch(a=e,m=n,p.tag){case 1:if(f=p.payload,typeof f=="function"){d=f.call(m,d,a);break e}d=f;break e;case 3:f.flags=f.flags&-4097|64;case 0:if(f=p.payload,a=typeof f=="function"?f.call(m,d,a):f,a==null)break e;d=te({},d,a);break e;case 2:vn=!0}}s.callback!==null&&(t.flags|=32,a=r.effects,a===null?r.effects=[s]:a.push(s))}else m={eventTime:m,lane:a,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=m,l=d):u=u.next=m,i|=a;if(s=s.next,s===null){if(a=r.shared.pending,a===null)break;s=a.next,a.next=null,r.lastBaseUpdate=a,r.shared.pending=null}}while(!0);u===null&&(l=d),r.baseState=l,r.firstBaseUpdate=c,r.lastBaseUpdate=u,ks|=i,t.lanes=i,t.memoizedState=d}}function Fy(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var o=t[e],r=o.callback;if(r!==null){if(o.callback=null,o=n,typeof r!="function")throw Error(D(191,r));r.call(o)}}}var Hy=new Pi.Component().refs;function pa(t,e,n,o){e=t.memoizedState,n=n(o,e),n=n==null?e:te({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var ha={isMounted:function(t){return(t=t._reactInternals)?eo(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var o=Ge(),r=Cn(t),s=Sn(o,r);s.payload=e,n!=null&&(s.callback=n),xn(t,s),Nn(t,r,o)},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var o=Ge(),r=Cn(t),s=Sn(o,r);s.tag=1,s.payload=e,n!=null&&(s.callback=n),xn(t,s),Nn(t,r,o)},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ge(),o=Cn(t),r=Sn(n,o);r.tag=2,e!=null&&(r.callback=e),xn(t,r),Nn(t,o,n)}};function Vy(t,e,n,o,r,s,i){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(o,s,i):e.prototype&&e.prototype.isPureReactComponent?!is(n,o)||!is(r,s):!0}function Uy(t,e,n){var o=!1,r=$n,s=e.contextType;return typeof s=="object"&&s!==null?s=it(s):(r=Ue(e)?no:Re.current,o=e.contextTypes,s=(o=o!=null)?qo(t,r):$n),e=new e(n,s),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=ha,t.stateNode=e,e._reactInternals=t,o&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=s),e}function _y(t,e,n,o){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,o),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,o),e.state!==t&&ha.enqueueReplaceState(e,e.state,null)}function od(t,e,n,o){var r=t.stateNode;r.props=n,r.state=t.memoizedState,r.refs=Hy,nd(t);var s=e.contextType;typeof s=="object"&&s!==null?r.context=it(s):(s=Ue(e)?no:Re.current,r.context=qo(t,s)),ms(t,n,r,o),r.state=t.memoizedState,s=e.getDerivedStateFromProps,typeof s=="function"&&(pa(t,e,s,n),r.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(e=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),e!==r.state&&ha.enqueueReplaceState(r,r.state,null),ms(t,n,r,o),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4)}var ga=Array.isArray;function fs(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(D(309));var o=n.stateNode}if(!o)throw Error(D(147,t));var r=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===r?e.ref:(e=function(s){var i=o.refs;i===Hy&&(i=o.refs={}),s===null?delete i[r]:i[r]=s},e._stringRef=r,e)}if(typeof t!="string")throw Error(D(284));if(!n._owner)throw Error(D(290,t))}return t}function ya(t,e){if(t.type!=="textarea")throw Error(D(31,Object.prototype.toString.call(e)==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":e))}function Jy(t){function e(h,y){if(t){var b=h.lastEffect;b!==null?(b.nextEffect=y,h.lastEffect=y):h.firstEffect=h.lastEffect=y,y.nextEffect=null,y.flags=8}}function n(h,y){if(!t)return null;for(;y!==null;)e(h,y),y=y.sibling;return null}function o(h,y){for(h=new Map;y!==null;)y.key!==null?h.set(y.key,y):h.set(y.index,y),y=y.sibling;return h}function r(h,y){return h=Rn(h,y),h.index=0,h.sibling=null,h}function s(h,y,b){return h.index=b,t?(b=h.alternate,b!==null?(b=b.index,b<y?(h.flags=2,y):b):(h.flags=2,y)):y}function i(h){return t&&h.alternate===null&&(h.flags=2),h}function a(h,y,b,$){return y===null||y.tag!==6?(y=Bd(b,h.mode,$),y.return=h,y):(y=r(y,b),y.return=h,y)}function l(h,y,b,$){return y!==null&&y.elementType===b.type?($=r(y,b.props),$.ref=fs(h,y,b),$.return=h,$):($=Pa(b.type,b.key,b.props,null,h.mode,$),$.ref=fs(h,y,b),$.return=h,$)}function c(h,y,b,$){return y===null||y.tag!==4||y.stateNode.containerInfo!==b.containerInfo||y.stateNode.implementation!==b.implementation?(y=Fd(b,h.mode,$),y.return=h,y):(y=r(y,b.children||[]),y.return=h,y)}function u(h,y,b,$,v){return y===null||y.tag!==7?(y=ir(b,h.mode,$,v),y.return=h,y):(y=r(y,b),y.return=h,y)}function d(h,y,b){if(typeof y=="string"||typeof y=="number")return y=Bd(""+y,h.mode,b),y.return=h,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case zr:return b=Pa(y.type,y.key,y.props,null,h.mode,b),b.ref=fs(h,null,y),b.return=h,b;case Zn:return y=Fd(y,h.mode,b),y.return=h,y}if(ga(y)||Hr(y))return y=ir(y,h.mode,b,null),y.return=h,y;ya(h,y)}return null}function m(h,y,b,$){var v=y!==null?y.key:null;if(typeof b=="string"||typeof b=="number")return v!==null?null:a(h,y,""+b,$);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case zr:return b.key===v?b.type===dn?u(h,y,b.props.children,$,v):l(h,y,b,$):null;case Zn:return b.key===v?c(h,y,b,$):null}if(ga(b)||Hr(b))return v!==null?null:u(h,y,b,$,null);ya(h,b)}return null}function f(h,y,b,$,v){if(typeof $=="string"||typeof $=="number")return h=h.get(b)||null,a(y,h,""+$,v);if(typeof $=="object"&&$!==null){switch($.$$typeof){case zr:return h=h.get($.key===null?b:$.key)||null,$.type===dn?u(y,h,$.props.children,v,$.key):l(y,h,$,v);case Zn:return h=h.get($.key===null?b:$.key)||null,c(y,h,$,v)}if(ga($)||Hr($))return h=h.get(b)||null,u(y,h,$,v,null);ya(y,$)}return null}function p(h,y,b,$){for(var v=null,k=null,x=y,C=y=0,O=null;x!==null&&C<b.length;C++){x.index>C?(O=x,x=null):O=x.sibling;var E=m(h,x,b[C],$);if(E===null){x===null&&(x=O);break}t&&x&&E.alternate===null&&e(h,x),y=s(E,y,C),k===null?v=E:k.sibling=E,k=E,x=O}if(C===b.length)return n(h,x),v;if(x===null){for(;C<b.length;C++)x=d(h,b[C],$),x!==null&&(y=s(x,y,C),k===null?v=x:k.sibling=x,k=x);return v}for(x=o(h,x);C<b.length;C++)O=f(x,h,C,b[C],$),O!==null&&(t&&O.alternate!==null&&x.delete(O.key===null?C:O.key),y=s(O,y,C),k===null?v=O:k.sibling=O,k=O);return t&&x.forEach(function(U){return e(h,U)}),v}function g(h,y,b,$){var v=Hr(b);if(typeof v!="function")throw Error(D(150));if(b=v.call(b),b==null)throw Error(D(151));for(var k=v=null,x=y,C=y=0,O=null,E=b.next();x!==null&&!E.done;C++,E=b.next()){x.index>C?(O=x,x=null):O=x.sibling;var U=m(h,x,E.value,$);if(U===null){x===null&&(x=O);break}t&&x&&U.alternate===null&&e(h,x),y=s(U,y,C),k===null?v=U:k.sibling=U,k=U,x=O}if(E.done)return n(h,x),v;if(x===null){for(;!E.done;C++,E=b.next())E=d(h,E.value,$),E!==null&&(y=s(E,y,C),k===null?v=E:k.sibling=E,k=E);return v}for(x=o(h,x);!E.done;C++,E=b.next())E=f(x,h,C,E.value,$),E!==null&&(t&&E.alternate!==null&&x.delete(E.key===null?C:E.key),y=s(E,y,C),k===null?v=E:k.sibling=E,k=E);return t&&x.forEach(function(ae){return e(h,ae)}),v}return function(h,y,b,$){var v=typeof b=="object"&&b!==null&&b.type===dn&&b.key===null;v&&(b=b.props.children);var k=typeof b=="object"&&b!==null;if(k)switch(b.$$typeof){case zr:e:{for(k=b.key,v=y;v!==null;){if(v.key===k){switch(v.tag){case 7:if(b.type===dn){n(h,v.sibling),y=r(v,b.props.children),y.return=h,h=y;break e}break;default:if(v.elementType===b.type){n(h,v.sibling),y=r(v,b.props),y.ref=fs(h,v,b),y.return=h,h=y;break e}}n(h,v);break}else e(h,v);v=v.sibling}b.type===dn?(y=ir(b.props.children,h.mode,$,b.key),y.return=h,h=y):($=Pa(b.type,b.key,b.props,null,h.mode,$),$.ref=fs(h,y,b),$.return=h,h=$)}return i(h);case Zn:e:{for(v=b.key;y!==null;){if(y.key===v)if(y.tag===4&&y.stateNode.containerInfo===b.containerInfo&&y.stateNode.implementation===b.implementation){n(h,y.sibling),y=r(y,b.children||[]),y.return=h,h=y;break e}else{n(h,y);break}else e(h,y);y=y.sibling}y=Fd(b,h.mode,$),y.return=h,h=y}return i(h)}if(typeof b=="string"||typeof b=="number")return b=""+b,y!==null&&y.tag===6?(n(h,y.sibling),y=r(y,b),y.return=h,h=y):(n(h,y),y=Bd(b,h.mode,$),y.return=h,h=y),i(h);if(ga(b))return p(h,y,b,$);if(Hr(b))return g(h,y,b,$);if(k&&ya(h,b),typeof b>"u"&&!v)switch(h.tag){case 1:case 22:case 0:case 11:case 15:throw Error(D(152,jo(h.type)||"Component"))}return n(h,y)}}var wa=Jy(!0),Yy=Jy(!1),ps={},kt=bn(ps),hs=bn(ps),gs=bn(ps);function so(t){if(t===ps)throw Error(D(174));return t}function rd(t,e){switch(oe(gs,e),oe(hs,t),oe(kt,ps),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:cu(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=cu(e,t)}Z(kt),oe(kt,e)}function Xo(){Z(kt),Z(hs),Z(gs)}function Ky(t){so(gs.current);var e=so(kt.current),n=cu(e,t.type);e!==n&&(oe(hs,t),oe(kt,n))}function sd(t){hs.current===t&&(Z(kt),Z(hs))}var re=bn(0);function ba(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&64)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Ft=null,kn=null,Et=!1;function Wy(t,e){var n=ct(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.flags=8,t.lastEffect!==null?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function qy(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,!0):!1;case 13:return!1;default:return!1}}function id(t){if(Et){var e=kn;if(e){var n=e;if(!qy(t,e)){if(e=Jo(n.nextSibling),!e||!qy(t,e)){t.flags=t.flags&-1025|2,Et=!1,Ft=t;return}Wy(Ft,n)}Ft=t,kn=Jo(e.firstChild)}else t.flags=t.flags&-1025|2,Et=!1,Ft=t}}function Gy(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Ft=t}function $a(t){if(t!==Ft)return!1;if(!Et)return Gy(t),Et=!0,!1;var e=t.type;if(t.tag!==5||e!=="head"&&e!=="body"&&!_u(e,t.memoizedProps))for(e=kn;e;)Wy(t,e),e=Jo(e.nextSibling);if(Gy(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(D(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){kn=Jo(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}kn=null}}else kn=Ft?Jo(t.stateNode.nextSibling):null;return!0}function ad(){kn=Ft=null,Et=!1}var er=[];function ld(){for(var t=0;t<er.length;t++)er[t]._workInProgressVersionPrimary=null;er.length=0}var ys=Qn.ReactCurrentDispatcher,at=Qn.ReactCurrentBatchConfig,ws=0,ie=null,Te=null,ke=null,va=!1,bs=!1;function _e(){throw Error(D(321))}function cd(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!st(t[n],e[n]))return!1;return!0}function ud(t,e,n,o,r,s){if(ws=s,ie=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,ys.current=t===null||t.memoizedState===null?Vk:Uk,t=n(o,r),bs){s=0;do{if(bs=!1,!(25>s))throw Error(D(301));s+=1,ke=Te=null,e.updateQueue=null,ys.current=_k,t=n(o,r)}while(bs)}if(ys.current=Ea,e=Te!==null&&Te.next!==null,ws=0,ke=Te=ie=null,va=!1,e)throw Error(D(300));return t}function io(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ke===null?ie.memoizedState=ke=t:ke=ke.next=t,ke}function ao(){if(Te===null){var t=ie.alternate;t=t!==null?t.memoizedState:null}else t=Te.next;var e=ke===null?ie.memoizedState:ke.next;if(e!==null)ke=e,Te=t;else{if(t===null)throw Error(D(310));Te=t,t={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},ke===null?ie.memoizedState=ke=t:ke=ke.next=t}return ke}function Ct(t,e){return typeof e=="function"?e(t):e}function $s(t){var e=ao(),n=e.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=t;var o=Te,r=o.baseQueue,s=n.pending;if(s!==null){if(r!==null){var i=r.next;r.next=s.next,s.next=i}o.baseQueue=r=s,n.pending=null}if(r!==null){r=r.next,o=o.baseState;var a=i=s=null,l=r;do{var c=l.lane;if((ws&c)===c)a!==null&&(a=a.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),o=l.eagerReducer===t?l.eagerState:t(o,l.action);else{var u={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};a===null?(i=a=u,s=o):a=a.next=u,ie.lanes|=c,ks|=c}l=l.next}while(l!==null&&l!==r);a===null?s=o:a.next=i,st(o,e.memoizedState)||(yt=!0),e.memoizedState=o,e.baseState=s,e.baseQueue=a,n.lastRenderedState=o}return[e.memoizedState,n.dispatch]}function vs(t){var e=ao(),n=e.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=t;var o=n.dispatch,r=n.pending,s=e.memoizedState;if(r!==null){n.pending=null;var i=r=r.next;do s=t(s,i.action),i=i.next;while(i!==r);st(s,e.memoizedState)||(yt=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),n.lastRenderedState=s}return[s,o]}function Qy(t,e,n){var o=e._getVersion;o=o(e._source);var r=e._workInProgressVersionPrimary;if(r!==null?t=r===o:(t=t.mutableReadLanes,(t=(ws&t)===t)&&(e._workInProgressVersionPrimary=o,er.push(e))),t)return n(e._source);throw er.push(e),Error(D(350))}function Zy(t,e,n,o){var r=Be;if(r===null)throw Error(D(349));var s=e._getVersion,i=s(e._source),a=ys.current,l=a.useState(function(){return Qy(r,e,n)}),c=l[1],u=l[0];l=ke;var d=t.memoizedState,m=d.refs,f=m.getSnapshot,p=d.source;d=d.subscribe;var g=ie;return t.memoizedState={refs:m,source:e,subscribe:o},a.useEffect(function(){m.getSnapshot=n,m.setSnapshot=c;var h=s(e._source);if(!st(i,h)){h=n(e._source),st(u,h)||(c(h),h=Cn(g),r.mutableReadLanes|=h&r.pendingLanes),h=r.mutableReadLanes,r.entangledLanes|=h;for(var y=r.entanglements,b=h;0<b;){var $=31-gn(b),v=1<<$;y[$]|=h,b&=~v}}},[n,e,o]),a.useEffect(function(){return o(e._source,function(){var h=m.getSnapshot,y=m.setSnapshot;try{y(h(e._source));var b=Cn(g);r.mutableReadLanes|=b&r.pendingLanes}catch($){y(function(){throw $})}})},[e,o]),st(f,n)&&st(p,e)&&st(d,o)||(t={pending:null,dispatch:null,lastRenderedReducer:Ct,lastRenderedState:u},t.dispatch=c=pd.bind(null,ie,t),l.queue=t,l.baseQueue=null,u=Qy(r,e,n),l.memoizedState=l.baseState=u),u}function Xy(t,e,n){var o=ao();return Zy(o,t,e,n)}function Ss(t){var e=io();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t=e.queue={pending:null,dispatch:null,lastRenderedReducer:Ct,lastRenderedState:t},t=t.dispatch=pd.bind(null,ie,t),[e.memoizedState,t]}function Sa(t,e,n,o){return t={tag:t,create:e,destroy:n,deps:o,next:null},e=ie.updateQueue,e===null?(e={lastEffect:null},ie.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(o=n.next,n.next=t,t.next=o,e.lastEffect=t)),t}function e0(t){var e=io();return t={current:t},e.memoizedState=t}function xa(){return ao().memoizedState}function dd(t,e,n,o){var r=io();ie.flags|=t,r.memoizedState=Sa(1|e,n,void 0,o===void 0?null:o)}function md(t,e,n,o){var r=ao();o=o===void 0?null:o;var s=void 0;if(Te!==null){var i=Te.memoizedState;if(s=i.destroy,o!==null&&cd(o,i.deps)){Sa(e,n,s,o);return}}ie.flags|=t,r.memoizedState=Sa(1|e,n,s,o)}function t0(t,e){return dd(516,4,t,e)}function ka(t,e){return md(516,4,t,e)}function n0(t,e){return md(4,2,t,e)}function o0(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function r0(t,e,n){return n=n!=null?n.concat([t]):null,md(4,2,o0.bind(null,e,t),n)}function fd(){}function s0(t,e){var n=ao();e=e===void 0?null:e;var o=n.memoizedState;return o!==null&&e!==null&&cd(e,o[1])?o[0]:(n.memoizedState=[t,e],t)}function i0(t,e){var n=ao();e=e===void 0?null:e;var o=n.memoizedState;return o!==null&&e!==null&&cd(e,o[1])?o[0]:(t=t(),n.memoizedState=[t,e],t)}function Hk(t,e){var n=Go();ro(98>n?98:n,function(){t(!0)}),ro(97<n?97:n,function(){var o=at.transition;at.transition=1;try{t(!1),e()}finally{at.transition=o}})}function pd(t,e,n){var o=Ge(),r=Cn(t),s={lane:r,action:n,eagerReducer:null,eagerState:null,next:null},i=e.pending;if(i===null?s.next=s:(s.next=i.next,i.next=s),e.pending=s,i=t.alternate,t===ie||i!==null&&i===ie)bs=va=!0;else{if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var a=e.lastRenderedState,l=i(a,n);if(s.eagerReducer=i,s.eagerState=l,st(l,a))return}catch{}finally{}Nn(t,r,o)}}var Ea={readContext:it,useCallback:_e,useContext:_e,useEffect:_e,useImperativeHandle:_e,useLayoutEffect:_e,useMemo:_e,useReducer:_e,useRef:_e,useState:_e,useDebugValue:_e,useDeferredValue:_e,useTransition:_e,useMutableSource:_e,useOpaqueIdentifier:_e,unstable_isNewReconciler:!1},Vk={readContext:it,useCallback:function(t,e){return io().memoizedState=[t,e===void 0?null:e],t},useContext:it,useEffect:t0,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,dd(4,2,o0.bind(null,e,t),n)},useLayoutEffect:function(t,e){return dd(4,2,t,e)},useMemo:function(t,e){var n=io();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var o=io();return e=n!==void 0?n(e):e,o.memoizedState=o.baseState=e,t=o.queue={pending:null,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},t=t.dispatch=pd.bind(null,ie,t),[o.memoizedState,t]},useRef:e0,useState:Ss,useDebugValue:fd,useDeferredValue:function(t){var e=Ss(t),n=e[0],o=e[1];return t0(function(){var r=at.transition;at.transition=1;try{o(t)}finally{at.transition=r}},[t]),n},useTransition:function(){var t=Ss(!1),e=t[0];return t=Hk.bind(null,t[1]),e0(t),[t,e]},useMutableSource:function(t,e,n){var o=io();return o.memoizedState={refs:{getSnapshot:e,setSnapshot:null},source:t,subscribe:n},Zy(o,t,e,n)},useOpaqueIdentifier:function(){if(Et){var t=!1,e=Pk(function(){throw t||(t=!0,n("r:"+(Yu++).toString(36))),Error(D(355))}),n=Ss(e)[1];return!(ie.mode&2)&&(ie.flags|=516,Sa(5,function(){n("r:"+(Yu++).toString(36))},void 0,null)),e}return e="r:"+(Yu++).toString(36),Ss(e),e},unstable_isNewReconciler:!1},Uk={readContext:it,useCallback:s0,useContext:it,useEffect:ka,useImperativeHandle:r0,useLayoutEffect:n0,useMemo:i0,useReducer:$s,useRef:xa,useState:function(){return $s(Ct)},useDebugValue:fd,useDeferredValue:function(t){var e=$s(Ct),n=e[0],o=e[1];return ka(function(){var r=at.transition;at.transition=1;try{o(t)}finally{at.transition=r}},[t]),n},useTransition:function(){var t=$s(Ct)[0];return[xa().current,t]},useMutableSource:Xy,useOpaqueIdentifier:function(){return $s(Ct)[0]},unstable_isNewReconciler:!1},_k={readContext:it,useCallback:s0,useContext:it,useEffect:ka,useImperativeHandle:r0,useLayoutEffect:n0,useMemo:i0,useReducer:vs,useRef:xa,useState:function(){return vs(Ct)},useDebugValue:fd,useDeferredValue:function(t){var e=vs(Ct),n=e[0],o=e[1];return ka(function(){var r=at.transition;at.transition=1;try{o(t)}finally{at.transition=r}},[t]),n},useTransition:function(){var t=vs(Ct)[0];return[xa().current,t]},useMutableSource:Xy,useOpaqueIdentifier:function(){return vs(Ct)[0]},unstable_isNewReconciler:!1},Jk=Qn.ReactCurrentOwner,yt=!1;function Je(t,e,n,o){e.child=t===null?Yy(e,null,n,o):wa(e,t.child,n,o)}function a0(t,e,n,o,r){n=n.render;var s=e.ref;return Zo(e,r),o=ud(t,e,n,o,s,r),t!==null&&!yt?(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~r,Ht(t,e,r)):(e.flags|=1,Je(t,e,o,r),e.child)}function l0(t,e,n,o,r,s){if(t===null){var i=n.type;return typeof i=="function"&&!Id(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=i,c0(t,e,i,o,r,s)):(t=Pa(n.type,null,o,e,e.mode,s),t.ref=e.ref,t.return=e,e.child=t)}return i=t.child,!(r&s)&&(r=i.memoizedProps,n=n.compare,n=n!==null?n:is,n(r,o)&&t.ref===e.ref)?Ht(t,e,s):(e.flags|=1,t=Rn(i,o),t.ref=e.ref,t.return=e,e.child=t)}function c0(t,e,n,o,r,s){if(t!==null&&is(t.memoizedProps,o)&&t.ref===e.ref)if(yt=!1,(s&r)!==0)t.flags&16384&&(yt=!0);else return e.lanes=t.lanes,Ht(t,e,s);return gd(t,e,n,o,s)}function hd(t,e,n){var o=e.pendingProps,r=o.children,s=t!==null?t.memoizedState:null;if(o.mode==="hidden"||o.mode==="unstable-defer-without-hiding")if(!(e.mode&4))e.memoizedState={baseLanes:0},ja(e,n);else if(n&1073741824)e.memoizedState={baseLanes:0},ja(e,s!==null?s.baseLanes:n);else return t=s!==null?s.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t},ja(e,t),null;else s!==null?(o=s.baseLanes|n,e.memoizedState=null):o=n,ja(e,o);return Je(t,e,r,n),e.child}function u0(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=128)}function gd(t,e,n,o,r){var s=Ue(n)?no:Re.current;return s=qo(e,s),Zo(e,r),n=ud(t,e,n,o,s,r),t!==null&&!yt?(e.updateQueue=t.updateQueue,e.flags&=-517,t.lanes&=~r,Ht(t,e,r)):(e.flags|=1,Je(t,e,n,r),e.child)}function d0(t,e,n,o,r){if(Ue(n)){var s=!0;la(e)}else s=!1;if(Zo(e,r),e.stateNode===null)t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),Uy(e,n,o),od(e,n,o,r),o=!0;else if(t===null){var i=e.stateNode,a=e.memoizedProps;i.props=a;var l=i.context,c=n.contextType;typeof c=="object"&&c!==null?c=it(c):(c=Ue(n)?no:Re.current,c=qo(e,c));var u=n.getDerivedStateFromProps,d=typeof u=="function"||typeof i.getSnapshotBeforeUpdate=="function";d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==o||l!==c)&&_y(e,i,o,c),vn=!1;var m=e.memoizedState;i.state=m,ms(e,o,i,r),l=e.memoizedState,a!==o||m!==l||Ve.current||vn?(typeof u=="function"&&(pa(e,n,u,o),l=e.memoizedState),(a=vn||Vy(e,n,a,o,m,l,c))?(d||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4)):(typeof i.componentDidMount=="function"&&(e.flags|=4),e.memoizedProps=o,e.memoizedState=l),i.props=o,i.state=l,i.context=c,o=a):(typeof i.componentDidMount=="function"&&(e.flags|=4),o=!1)}else{i=e.stateNode,zy(t,e),a=e.memoizedProps,c=e.type===e.elementType?a:gt(e.type,a),i.props=c,d=e.pendingProps,m=i.context,l=n.contextType,typeof l=="object"&&l!==null?l=it(l):(l=Ue(n)?no:Re.current,l=qo(e,l));var f=n.getDerivedStateFromProps;(u=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(a!==d||m!==l)&&_y(e,i,o,l),vn=!1,m=e.memoizedState,i.state=m,ms(e,o,i,r);var p=e.memoizedState;a!==d||m!==p||Ve.current||vn?(typeof f=="function"&&(pa(e,n,f,o),p=e.memoizedState),(c=vn||Vy(e,n,c,o,m,p,l))?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(o,p,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(o,p,l)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=256)):(typeof i.componentDidUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=256),e.memoizedProps=o,e.memoizedState=p),i.props=o,i.state=p,i.context=l,o=c):(typeof i.componentDidUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&m===t.memoizedState||(e.flags|=256),o=!1)}return yd(t,e,n,o,s,r)}function yd(t,e,n,o,r,s){u0(t,e);var i=(e.flags&64)!==0;if(!o&&!i)return r&&Ay(e,n,!1),Ht(t,e,s);o=e.stateNode,Jk.current=e;var a=i&&typeof n.getDerivedStateFromError!="function"?null:o.render();return e.flags|=1,t!==null&&i?(e.child=wa(e,t.child,null,s),e.child=wa(e,null,a,s)):Je(t,e,a,s),e.memoizedState=o.state,r&&Ay(e,n,!0),e.child}function m0(t){var e=t.stateNode;e.pendingContext?Cy(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Cy(t,e.context,!1),rd(t,e.containerInfo)}var Ca={dehydrated:null,retryLane:0};function f0(t,e,n){var o=e.pendingProps,r=re.current,s=!1,i;return(i=(e.flags&64)!==0)||(i=t!==null&&t.memoizedState===null?!1:(r&2)!==0),i?(s=!0,e.flags&=-65):t!==null&&t.memoizedState===null||o.fallback===void 0||o.unstable_avoidThisFallback===!0||(r|=1),oe(re,r&1),t===null?(o.fallback!==void 0&&id(e),t=o.children,r=o.fallback,s?(t=p0(e,t,r,n),e.child.memoizedState={baseLanes:n},e.memoizedState=Ca,t):typeof o.unstable_expectedLoadTime=="number"?(t=p0(e,t,r,n),e.child.memoizedState={baseLanes:n},e.memoizedState=Ca,e.lanes=33554432,t):(n=zd({mode:"visible",children:t},e.mode,n,null),n.return=e,e.child=n)):t.memoizedState!==null?s?(o=g0(t,e,o.children,o.fallback,n),s=e.child,r=t.child.memoizedState,s.memoizedState=r===null?{baseLanes:n}:{baseLanes:r.baseLanes|n},s.childLanes=t.childLanes&~n,e.memoizedState=Ca,o):(n=h0(t,e,o.children,n),e.memoizedState=null,n):s?(o=g0(t,e,o.children,o.fallback,n),s=e.child,r=t.child.memoizedState,s.memoizedState=r===null?{baseLanes:n}:{baseLanes:r.baseLanes|n},s.childLanes=t.childLanes&~n,e.memoizedState=Ca,o):(n=h0(t,e,o.children,n),e.memoizedState=null,n)}function p0(t,e,n,o){var r=t.mode,s=t.child;return e={mode:"hidden",children:e},!(r&2)&&s!==null?(s.childLanes=0,s.pendingProps=e):s=zd(e,r,0,null),n=ir(n,r,o,null),s.return=t,n.return=t,s.sibling=n,t.child=s,n}function h0(t,e,n,o){var r=t.child;return t=r.sibling,n=Rn(r,{mode:"visible",children:n}),!(e.mode&2)&&(n.lanes=o),n.return=e,n.sibling=null,t!==null&&(t.nextEffect=null,t.flags=8,e.firstEffect=e.lastEffect=t),e.child=n}function g0(t,e,n,o,r){var s=e.mode,i=t.child;t=i.sibling;var a={mode:"hidden",children:n};return!(s&2)&&e.child!==i?(n=e.child,n.childLanes=0,n.pendingProps=a,i=n.lastEffect,i!==null?(e.firstEffect=n.firstEffect,e.lastEffect=i,i.nextEffect=null):e.firstEffect=e.lastEffect=null):n=Rn(i,a),t!==null?o=Rn(t,o):(o=ir(o,s,r,null),o.flags|=2),o.return=e,n.return=e,n.sibling=o,e.child=n,o}function y0(t,e){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Iy(t.return,e)}function wd(t,e,n,o,r,s){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:r,lastEffect:s}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=o,i.tail=n,i.tailMode=r,i.lastEffect=s)}function w0(t,e,n){var o=e.pendingProps,r=o.revealOrder,s=o.tail;if(Je(t,e,o.children,n),o=re.current,o&2)o=o&1|2,e.flags|=64;else{if(t!==null&&t.flags&64)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&y0(t,n);else if(t.tag===19)y0(t,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}o&=1}if(oe(re,o),!(e.mode&2))e.memoizedState=null;else switch(r){case"forwards":for(n=e.child,r=null;n!==null;)t=n.alternate,t!==null&&ba(t)===null&&(r=n),n=n.sibling;n=r,n===null?(r=e.child,e.child=null):(r=n.sibling,n.sibling=null),wd(e,!1,r,n,s,e.lastEffect);break;case"backwards":for(n=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&ba(t)===null){e.child=r;break}t=r.sibling,r.sibling=n,n=r,r=t}wd(e,!0,n,null,s,e.lastEffect);break;case"together":wd(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function Ht(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),ks|=e.lanes,n&e.childLanes){if(t!==null&&e.child!==t.child)throw Error(D(153));if(e.child!==null){for(t=e.child,n=Rn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Rn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}return null}var b0,bd,$0,v0;b0=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&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}},bd=function(){},$0=function(t,e,n,o){var r=t.memoizedProps;if(r!==o){t=e.stateNode,so(kt.current);var s=null;switch(n){case"input":r=ou(t,r),o=ou(t,o),s=[];break;case"option":r=iu(t,r),o=iu(t,o),s=[];break;case"select":r=te({},r,{value:void 0}),o=te({},o,{value:void 0}),s=[];break;case"textarea":r=au(t,r),o=au(t,o),s=[];break;default:typeof r.onClick!="function"&&typeof o.onClick=="function"&&(t.onclick=oa)}uu(n,o);var i;n=null;for(c in r)if(!o.hasOwnProperty(c)&&r.hasOwnProperty(c)&&r[c]!=null)if(c==="style"){var a=r[c];for(i in a)a.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(Ir.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in o){var l=o[c];if(a=r!=null?r[c]:void 0,o.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(i in a)!a.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in l)l.hasOwnProperty(i)&&a[i]!==l[i]&&(n||(n={}),n[i]=l[i])}else n||(s||(s=[]),s.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(Ir.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Q("scroll",t),s||a===l||(s=[])):typeof l=="object"&&l!==null&&l.$$typeof===Zc?l.toString():(s=s||[]).push(c,l))}n&&(s=s||[]).push("style",n);var c=s;(e.updateQueue=c)&&(e.flags|=4)}},v0=function(t,e,n,o){n!==o&&(e.flags|=4)};function xs(t,e){if(!Et)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:o.sibling=null}}function Yk(t,e,n){var o=e.pendingProps;switch(e.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 Ue(e.type)&&aa(),null;case 3:return Xo(),Z(Ve),Z(Re),ld(),o=e.stateNode,o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&($a(e)?e.flags|=4:o.hydrate||(e.flags|=256)),bd(e),null;case 5:sd(e);var r=so(gs.current);if(n=e.type,t!==null&&e.stateNode!=null)$0(t,e,n,o,r),t.ref!==e.ref&&(e.flags|=128);else{if(!o){if(e.stateNode===null)throw Error(D(166));return null}if(t=so(kt.current),$a(e)){o=e.stateNode,n=e.type;var s=e.memoizedProps;switch(o[wn]=e,o[sa]=s,n){case"dialog":Q("cancel",o),Q("close",o);break;case"iframe":case"object":case"embed":Q("load",o);break;case"video":case"audio":for(t=0;t<ls.length;t++)Q(ls[t],o);break;case"source":Q("error",o);break;case"img":case"image":case"link":Q("error",o),Q("load",o);break;case"details":Q("toggle",o);break;case"input":mg(o,s),Q("invalid",o);break;case"select":o._wrapperState={wasMultiple:!!s.multiple},Q("invalid",o);break;case"textarea":hg(o,s),Q("invalid",o)}uu(n,s),t=null;for(var i in s)s.hasOwnProperty(i)&&(r=s[i],i==="children"?typeof r=="string"?o.textContent!==r&&(t=["children",r]):typeof r=="number"&&o.textContent!==""+r&&(t=["children",""+r]):Ir.hasOwnProperty(i)&&r!=null&&i==="onScroll"&&Q("scroll",o));switch(n){case"input":Fi(o),pg(o,s,!0);break;case"textarea":Fi(o),yg(o);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(o.onclick=oa)}o=t,e.updateQueue=o,o!==null&&(e.flags|=4)}else{switch(i=r.nodeType===9?r:r.ownerDocument,t===lu.html&&(t=wg(n)),t===lu.html?n==="script"?(t=i.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof o.is=="string"?t=i.createElement(n,{is:o.is}):(t=i.createElement(n),n==="select"&&(i=t,o.multiple?i.multiple=!0:o.size&&(i.size=o.size))):t=i.createElementNS(t,n),t[wn]=e,t[sa]=o,b0(t,e,!1,!1),e.stateNode=t,i=du(n,o),n){case"dialog":Q("cancel",t),Q("close",t),r=o;break;case"iframe":case"object":case"embed":Q("load",t),r=o;break;case"video":case"audio":for(r=0;r<ls.length;r++)Q(ls[r],t);r=o;break;case"source":Q("error",t),r=o;break;case"img":case"image":case"link":Q("error",t),Q("load",t),r=o;break;case"details":Q("toggle",t),r=o;break;case"input":mg(t,o),r=ou(t,o),Q("invalid",t);break;case"option":r=iu(t,o);break;case"select":t._wrapperState={wasMultiple:!!o.multiple},r=te({},o,{value:void 0}),Q("invalid",t);break;case"textarea":hg(t,o),r=au(t,o),Q("invalid",t);break;default:r=o}uu(n,r);var a=r;for(s in a)if(a.hasOwnProperty(s)){var l=a[s];s==="style"?vg(t,l):s==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&bg(t,l)):s==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Ur(t,l):typeof l=="number"&&Ur(t,""+l):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Ir.hasOwnProperty(s)?l!=null&&s==="onScroll"&&Q("scroll",t):l!=null&&Yc(t,s,l,i))}switch(n){case"input":Fi(t),pg(t,o,!1);break;case"textarea":Fi(t),yg(t);break;case"option":o.value!=null&&t.setAttribute("value",""+mn(o.value));break;case"select":t.multiple=!!o.multiple,s=o.value,s!=null?Po(t,!!o.multiple,s,!1):o.defaultValue!=null&&Po(t,!!o.multiple,o.defaultValue,!0);break;default:typeof r.onClick=="function"&&(t.onclick=oa)}vy(n,o)&&(e.flags|=4)}e.ref!==null&&(e.flags|=128)}return null;case 6:if(t&&e.stateNode!=null)v0(t,e,t.memoizedProps,o);else{if(typeof o!="string"&&e.stateNode===null)throw Error(D(166));n=so(gs.current),so(kt.current),$a(e)?(o=e.stateNode,n=e.memoizedProps,o[wn]=e,o.nodeValue!==n&&(e.flags|=4)):(o=(n.nodeType===9?n:n.ownerDocument).createTextNode(o),o[wn]=e,e.stateNode=o)}return null;case 13:return Z(re),o=e.memoizedState,e.flags&64?(e.lanes=n,e):(o=o!==null,n=!1,t===null?e.memoizedProps.fallback!==void 0&&$a(e):n=t.memoizedState!==null,o&&!n&&e.mode&2&&(t===null&&e.memoizedProps.unstable_avoidThisFallback!==!0||re.current&1?Ee===0&&(Ee=3):((Ee===0||Ee===3)&&(Ee=4),Be===null||!(ks&134217727)&&!(nr&134217727)||rr(Be,Me))),(o||n)&&(e.flags|=4),null);case 4:return Xo(),bd(e),t===null&&gy(e.stateNode.containerInfo),null;case 10:return td(e),null;case 17:return Ue(e.type)&&aa(),null;case 19:if(Z(re),o=e.memoizedState,o===null)return null;if(s=(e.flags&64)!==0,i=o.rendering,i===null)if(s)xs(o,!1);else{if(Ee!==0||t!==null&&t.flags&64)for(t=e.child;t!==null;){if(i=ba(t),i!==null){for(e.flags|=64,xs(o,!1),s=i.updateQueue,s!==null&&(e.updateQueue=s,e.flags|=4),o.lastEffect===null&&(e.firstEffect=null),e.lastEffect=o.lastEffect,o=n,n=e.child;n!==null;)s=n,t=o,s.flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,i=s.alternate,i===null?(s.childLanes=0,s.lanes=t,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=i.childLanes,s.lanes=i.lanes,s.child=i.child,s.memoizedProps=i.memoizedProps,s.memoizedState=i.memoizedState,s.updateQueue=i.updateQueue,s.type=i.type,t=i.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return oe(re,re.current&1|2),e.child}t=t.sibling}o.tail!==null&&Oe()>Rd&&(e.flags|=64,s=!0,xs(o,!1),e.lanes=33554432)}else{if(!s)if(t=ba(i),t!==null){if(e.flags|=64,s=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),xs(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Et)return e=e.lastEffect=o.lastEffect,e!==null&&(e.nextEffect=null),null}else 2*Oe()-o.renderingStartTime>Rd&&n!==1073741824&&(e.flags|=64,s=!0,xs(o,!1),e.lanes=33554432);o.isBackwards?(i.sibling=e.child,e.child=i):(n=o.last,n!==null?n.sibling=i:e.child=i,o.last=i)}return o.tail!==null?(n=o.tail,o.rendering=n,o.tail=n.sibling,o.lastEffect=e.lastEffect,o.renderingStartTime=Oe(),n.sibling=null,e=re.current,oe(re,s?e&1|2:e&1),n):null;case 23:case 24:return Ld(),t!==null&&t.memoizedState!==null!=(e.memoizedState!==null)&&o.mode!=="unstable-defer-without-hiding"&&(e.flags|=4),null}throw Error(D(156,e.tag))}function Kk(t){switch(t.tag){case 1:Ue(t.type)&&aa();var e=t.flags;return e&4096?(t.flags=e&-4097|64,t):null;case 3:if(Xo(),Z(Ve),Z(Re),ld(),e=t.flags,e&64)throw Error(D(285));return t.flags=e&-4097|64,t;case 5:return sd(t),null;case 13:return Z(re),e=t.flags,e&4096?(t.flags=e&-4097|64,t):null;case 19:return Z(re),null;case 4:return Xo(),null;case 10:return td(t),null;case 23:case 24:return Ld(),null;default:return null}}function $d(t,e){try{var n="",o=e;do n+=Cx(o),o=o.return;while(o);var r=n}catch(s){r=`
Error generating stack: `+s.message+`
`+s.stack}return{value:t,source:e,stack:r}}function vd(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var Wk=typeof WeakMap=="function"?WeakMap:Map;function S0(t,e,n){n=Sn(-1,n),n.tag=3,n.payload={element:null};var o=e.value;return n.callback=function(){Da||(Da=!0,Od=o),vd(t,e)},n}function x0(t,e,n){n=Sn(-1,n),n.tag=3;var o=t.type.getDerivedStateFromError;if(typeof o=="function"){var r=e.value;n.payload=function(){return vd(t,e),o(r)}}var s=t.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){typeof o!="function"&&(Nt===null?Nt=new Set([this]):Nt.add(this),vd(t,e));var i=e.stack;this.componentDidCatch(e.value,{componentStack:i!==null?i:""})}),n}var qk=typeof WeakSet=="function"?WeakSet:Set;function k0(t){var e=t.ref;if(e!==null)if(typeof e=="function")try{e(null)}catch(n){Dn(t,n)}else e.current=null}function Gk(t,e){switch(e.tag){case 0:case 11:case 15:case 22:return;case 1:if(e.flags&256&&t!==null){var n=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e=t.getSnapshotBeforeUpdate(e.elementType===e.type?n:gt(e.type,n),o),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:e.flags&256&&Ju(e.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(D(163))}function Qk(t,e,n){switch(n.tag){case 0:case 11:case 15:case 22:if(e=n.updateQueue,e=e!==null?e.lastEffect:null,e!==null){t=e=e.next;do{if((t.tag&3)===3){var o=t.create;t.destroy=o()}t=t.next}while(t!==e)}if(e=n.updateQueue,e=e!==null?e.lastEffect:null,e!==null){t=e=e.next;do{var r=t;o=r.next,r=r.tag,r&4&&r&1&&(B0(n,t),sE(n,t)),t=o}while(t!==e)}return;case 1:t=n.stateNode,n.flags&4&&(e===null?t.componentDidMount():(o=n.elementType===n.type?e.memoizedProps:gt(n.type,e.memoizedProps),t.componentDidUpdate(o,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate))),e=n.updateQueue,e!==null&&Fy(n,e,t);return;case 3:if(e=n.updateQueue,e!==null){if(t=null,n.child!==null)switch(n.child.tag){case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}Fy(n,e,t)}return;case 5:t=n.stateNode,e===null&&n.flags&4&&vy(n.type,n.memoizedProps)&&t.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&&Ig(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(D(163))}function E0(t,e){for(var n=t;;){if(n.tag===5){var o=n.stateNode;if(e)o=o.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{o=n.stateNode;var r=n.memoizedProps.style;r=r!=null&&r.hasOwnProperty("display")?r.display:null,o.style.display=$g("display",r)}}else if(n.tag===6)n.stateNode.nodeValue=e?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===t)&&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}}function C0(t,e){if(oo&&typeof oo.onCommitFiberUnmount=="function")try{oo.onCommitFiberUnmount(Wu,e)}catch{}switch(e.tag){case 0:case 11:case 14:case 15:case 22:if(t=e.updateQueue,t!==null&&(t=t.lastEffect,t!==null)){var n=t=t.next;do{var o=n,r=o.destroy;if(o=o.tag,r!==void 0)if(o&4)B0(e,n);else{o=e;try{r()}catch(s){Dn(o,s)}}n=n.next}while(n!==t)}break;case 1:if(k0(e),t=e.stateNode,typeof t.componentWillUnmount=="function")try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(s){Dn(e,s)}break;case 5:k0(e);break;case 4:R0(t,e)}}function N0(t){t.alternate=null,t.child=null,t.dependencies=null,t.firstEffect=null,t.lastEffect=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.return=null,t.updateQueue=null}function A0(t){return t.tag===5||t.tag===3||t.tag===4}function D0(t){e:{for(var e=t.return;e!==null;){if(A0(e))break e;e=e.return}throw Error(D(160))}var n=e;switch(e=n.stateNode,n.tag){case 5:var o=!1;break;case 3:e=e.containerInfo,o=!0;break;case 4:e=e.containerInfo,o=!0;break;default:throw Error(D(161))}n.flags&16&&(Ur(e,""),n.flags&=-17);e:t:for(n=t;;){for(;n.sibling===null;){if(n.return===null||A0(n.return)){n=null;break e}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 t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}o?Sd(t,n,e):xd(t,n,e)}function Sd(t,e,n){var o=t.tag,r=o===5||o===6;if(r)t=r?t.stateNode:t.stateNode.instance,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=oa));else if(o!==4&&(t=t.child,t!==null))for(Sd(t,e,n),t=t.sibling;t!==null;)Sd(t,e,n),t=t.sibling}function xd(t,e,n){var o=t.tag,r=o===5||o===6;if(r)t=r?t.stateNode:t.stateNode.instance,e?n.insertBefore(t,e):n.appendChild(t);else if(o!==4&&(t=t.child,t!==null))for(xd(t,e,n),t=t.sibling;t!==null;)xd(t,e,n),t=t.sibling}function R0(t,e){for(var n=e,o=!1,r,s;;){if(!o){o=n.return;e:for(;;){if(o===null)throw Error(D(160));switch(r=o.stateNode,o.tag){case 5:s=!1;break e;case 3:r=r.containerInfo,s=!0;break e;case 4:r=r.containerInfo,s=!0;break e}o=o.return}o=!0}if(n.tag===5||n.tag===6){e:for(var i=t,a=n,l=a;;)if(C0(i,l),l.child!==null&&l.tag!==4)l.child.return=l,l=l.child;else{if(l===a)break e;for(;l.sibling===null;){if(l.return===null||l.return===a)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}s?(i=r,a=n.stateNode,i.nodeType===8?i.parentNode.removeChild(a):i.removeChild(a)):r.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){r=n.stateNode.containerInfo,s=!0,n.child.return=n,n=n.child;continue}}else if(C0(t,n),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.tag===4&&(o=!1)}n.sibling.return=n.return,n=n.sibling}}function kd(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do(o.tag&3)===3&&(t=o.destroy,o.destroy=void 0,t!==void 0&&t()),o=o.next;while(o!==n)}return;case 1:return;case 5:if(n=e.stateNode,n!=null){o=e.memoizedProps;var r=t!==null?t.memoizedProps:o;t=e.type;var s=e.updateQueue;if(e.updateQueue=null,s!==null){for(n[sa]=o,t==="input"&&o.type==="radio"&&o.name!=null&&fg(n,o),du(t,r),e=du(t,o),r=0;r<s.length;r+=2){var i=s[r],a=s[r+1];i==="style"?vg(n,a):i==="dangerouslySetInnerHTML"?bg(n,a):i==="children"?Ur(n,a):Yc(n,i,a,e)}switch(t){case"input":ru(n,o);break;case"textarea":gg(n,o);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!o.multiple,s=o.value,s!=null?Po(n,!!o.multiple,s,!1):t!==!!o.multiple&&(o.defaultValue!=null?Po(n,!!o.multiple,o.defaultValue,!0):Po(n,!!o.multiple,o.multiple?[]:"",!1))}}}return;case 6:if(e.stateNode===null)throw Error(D(162));e.stateNode.nodeValue=e.memoizedProps;return;case 3:n=e.stateNode,n.hydrate&&(n.hydrate=!1,Ig(n.containerInfo));return;case 12:return;case 13:e.memoizedState!==null&&(Dd=Oe(),E0(e.child,!0)),O0(e);return;case 19:O0(e);return;case 17:return;case 23:case 24:E0(e,e.memoizedState!==null);return}throw Error(D(163))}function O0(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new qk),e.forEach(function(o){var r=lE.bind(null,t,o);n.has(o)||(n.add(o),o.then(r,r))})}}function Zk(t,e){return t!==null&&(t=t.memoizedState,t===null||t.dehydrated!==null)?(e=e.memoizedState,e!==null&&e.dehydrated===null):!1}var Xk=Math.ceil,Na=Qn.ReactCurrentDispatcher,Ed=Qn.ReactCurrentOwner,I=0,Be=null,de=null,Me=0,lo=0,Cd=bn(0),Ee=0,Aa=null,tr=0,ks=0,nr=0,Nd=0,Ad=null,Dd=0,Rd=1/0;function or(){Rd=Oe()+500}var M=null,Da=!1,Od=null,Nt=null,En=!1,Es=null,Cs=90,Td=[],Md=[],Vt=null,Ns=0,jd=null,Ra=-1,Ut=0,Oa=0,As=null,Ta=!1;function Ge(){return I&48?Oe():Ra!==-1?Ra:Ra=Oe()}function Cn(t){if(t=t.mode,!(t&2))return 1;if(!(t&4))return Go()===99?1:2;if(Ut===0&&(Ut=tr),Fk.transition!==0){Oa!==0&&(Oa=Ad!==null?Ad.pendingLanes:0),t=Ut;var e=4186112&~Oa;return e&=-e,e===0&&(t=4186112&~t,e=t&-t,e===0&&(e=8192)),e}return t=Go(),I&4&&t===98?t=Wi(12,Ut):(t=Vx(t),t=Wi(t,Ut)),t}function Nn(t,e,n){if(50<Ns)throw Ns=0,jd=null,Error(D(185));if(t=Ma(t,e),t===null)return null;qi(t,e,n),t===Be&&(nr|=e,Ee===4&&rr(t,Me));var o=Go();e===1?I&8&&!(I&48)?Pd(t):(lt(t,n),I===0&&(or(),xt())):(!(I&4)||o!==98&&o!==99||(Vt===null?Vt=new Set([t]):Vt.add(t)),lt(t,n)),Ad=t}function Ma(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}function lt(t,e){for(var n=t.callbackNode,o=t.suspendedLanes,r=t.pingedLanes,s=t.expirationTimes,i=t.pendingLanes;0<i;){var a=31-gn(i),l=1<<a,c=s[a];if(c===-1){if(!(l&o)||l&r){c=e,Bo(l);var u=G;s[a]=10<=u?c+250:6<=u?c+5e3:-1}}else c<=e&&(t.expiredLanes|=l);i&=~l}if(o=Xr(t,t===Be?Me:0),e=G,o===0)n!==null&&(n!==Zu&&Gu(n),t.callbackNode=null,t.callbackPriority=0);else{if(n!==null){if(t.callbackPriority===e)return;n!==Zu&&Gu(n)}e===15?(n=Pd.bind(null,t),Bt===null?(Bt=[n],ua=qu(ca,Ly)):Bt.push(n),n=Zu):e===14?n=ds(99,Pd.bind(null,t)):(n=Ux(e),n=ds(n,T0.bind(null,t))),t.callbackPriority=e,t.callbackNode=n}}function T0(t){if(Ra=-1,Oa=Ut=0,I&48)throw Error(D(327));var e=t.callbackNode;if(An()&&t.callbackNode!==e)return null;var n=Xr(t,t===Be?Me:0);if(n===0)return null;var o=n,r=I;I|=16;var s=L0();(Be!==t||Me!==o)&&(or(),sr(t,o));do try{nE();break}catch(a){P0(t,a)}while(!0);if(ed(),Na.current=s,I=r,de!==null?o=0:(Be=null,Me=0,o=Ee),tr&nr)sr(t,0);else if(o!==0){if(o===2&&(I|=64,t.hydrate&&(t.hydrate=!1,Ju(t.containerInfo)),n=_g(t),n!==0&&(o=Ds(t,n))),o===1)throw e=Aa,sr(t,0),rr(t,n),lt(t,Oe()),e;switch(t.finishedWork=t.current.alternate,t.finishedLanes=n,o){case 0:case 1:throw Error(D(345));case 2:co(t);break;case 3:if(rr(t,n),(n&62914560)===n&&(o=Dd+500-Oe(),10<o)){if(Xr(t,0)!==0)break;if(r=t.suspendedLanes,(r&n)!==n){Ge(),t.pingedLanes|=t.suspendedLanes&r;break}t.timeoutHandle=Sy(co.bind(null,t),o);break}co(t);break;case 4:if(rr(t,n),(n&4186112)===n)break;for(o=t.eventTimes,r=-1;0<n;){var i=31-gn(n);s=1<<i,i=o[i],i>r&&(r=i),n&=~s}if(n=r,n=Oe()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Xk(n/1960))-n,10<n){t.timeoutHandle=Sy(co.bind(null,t),n);break}co(t);break;case 5:co(t);break;default:throw Error(D(329))}}return lt(t,Oe()),t.callbackNode===e?T0.bind(null,t):null}function rr(t,e){for(e&=~Nd,e&=~nr,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-gn(e),o=1<<n;t[n]=-1,e&=~o}}function Pd(t){if(I&48)throw Error(D(327));if(An(),t===Be&&t.expiredLanes&Me){var e=Me,n=Ds(t,e);tr&nr&&(e=Xr(t,e),n=Ds(t,e))}else e=Xr(t,0),n=Ds(t,e);if(t.tag!==0&&n===2&&(I|=64,t.hydrate&&(t.hydrate=!1,Ju(t.containerInfo)),e=_g(t),e!==0&&(n=Ds(t,e))),n===1)throw n=Aa,sr(t,0),rr(t,e),lt(t,Oe()),n;return t.finishedWork=t.current.alternate,t.finishedLanes=e,co(t),lt(t,Oe()),null}function eE(){if(Vt!==null){var t=Vt;Vt=null,t.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,lt(e,Oe())})}xt()}function M0(t,e){var n=I;I|=1;try{return t(e)}finally{I=n,I===0&&(or(),xt())}}function j0(t,e){var n=I;I&=-2,I|=8;try{return t(e)}finally{I=n,I===0&&(or(),xt())}}function ja(t,e){oe(Cd,lo),lo|=e,tr|=e}function Ld(){lo=Cd.current,Z(Cd)}function sr(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,jk(n)),de!==null)for(n=de.return;n!==null;){var o=n;switch(o.tag){case 1:o=o.type.childContextTypes,o!=null&&aa();break;case 3:Xo(),Z(Ve),Z(Re),ld();break;case 5:sd(o);break;case 4:Xo();break;case 13:Z(re);break;case 19:Z(re);break;case 10:td(o);break;case 23:case 24:Ld()}n=n.return}Be=t,de=Rn(t.current,null),Me=lo=tr=e,Ee=0,Aa=null,Nd=nr=ks=0}function P0(t,e){do{var n=de;try{if(ed(),ys.current=Ea,va){for(var o=ie.memoizedState;o!==null;){var r=o.queue;r!==null&&(r.pending=null),o=o.next}va=!1}if(ws=0,ke=Te=ie=null,bs=!1,Ed.current=null,n===null||n.return===null){Ee=1,Aa=e,de=null;break}e:{var s=t,i=n.return,a=n,l=e;if(e=Me,a.flags|=2048,a.firstEffect=a.lastEffect=null,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l;if(!(a.mode&2)){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.lanes=u.lanes):(a.updateQueue=null,a.memoizedState=null)}var d=(re.current&1)!==0,m=i;do{var f;if(f=m.tag===13){var p=m.memoizedState;if(p!==null)f=p.dehydrated!==null;else{var g=m.memoizedProps;f=g.fallback===void 0?!1:g.unstable_avoidThisFallback!==!0?!0:!d}}if(f){var h=m.updateQueue;if(h===null){var y=new Set;y.add(c),m.updateQueue=y}else h.add(c);if(!(m.mode&2)){if(m.flags|=64,a.flags|=16384,a.flags&=-2981,a.tag===1)if(a.alternate===null)a.tag=17;else{var b=Sn(-1,1);b.tag=2,xn(a,b)}a.lanes|=1;break e}l=void 0,a=e;var $=s.pingCache;if($===null?($=s.pingCache=new Wk,l=new Set,$.set(c,l)):(l=$.get(c),l===void 0&&(l=new Set,$.set(c,l))),!l.has(a)){l.add(a);var v=aE.bind(null,s,c,a);c.then(v,v)}m.flags|=4096,m.lanes=e;break e}m=m.return}while(m!==null);l=Error((jo(a.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Ee!==5&&(Ee=2),l=$d(l,a),m=i;do{switch(m.tag){case 3:s=l,m.flags|=4096,e&=-e,m.lanes|=e;var k=S0(m,s,e);By(m,k);break e;case 1:s=l;var x=m.type,C=m.stateNode;if(!(m.flags&64)&&(typeof x.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Nt===null||!Nt.has(C)))){m.flags|=4096,e&=-e,m.lanes|=e;var O=x0(m,s,e);By(m,O);break e}}m=m.return}while(m!==null)}z0(n)}catch(E){e=E,de===n&&n!==null&&(de=n=n.return);continue}break}while(!0)}function L0(){var t=Na.current;return Na.current=Ea,t===null?Ea:t}function Ds(t,e){var n=I;I|=16;var o=L0();Be===t&&Me===e||sr(t,e);do try{tE();break}catch(r){P0(t,r)}while(!0);if(ed(),I=n,Na.current=o,de!==null)throw Error(D(261));return Be=null,Me=0,Ee}function tE(){for(;de!==null;)I0(de)}function nE(){for(;de!==null&&!Ik();)I0(de)}function I0(t){var e=H0(t.alternate,t,lo);t.memoizedProps=t.pendingProps,e===null?z0(t):de=e,Ed.current=null}function z0(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&2048){if(n=Kk(e),n!==null){n.flags&=2047,de=n;return}t!==null&&(t.firstEffect=t.lastEffect=null,t.flags|=2048)}else{if(n=Yk(n,e,lo),n!==null){de=n;return}if(n=e,n.tag!==24&&n.tag!==23||n.memoizedState===null||lo&1073741824||!(n.mode&4)){for(var o=0,r=n.child;r!==null;)o|=r.lanes|r.childLanes,r=r.sibling;n.childLanes=o}t!==null&&!(t.flags&2048)&&(t.firstEffect===null&&(t.firstEffect=e.firstEffect),e.lastEffect!==null&&(t.lastEffect!==null&&(t.lastEffect.nextEffect=e.firstEffect),t.lastEffect=e.lastEffect),1<e.flags&&(t.lastEffect!==null?t.lastEffect.nextEffect=e:t.firstEffect=e,t.lastEffect=e))}if(e=e.sibling,e!==null){de=e;return}de=e=t}while(e!==null);Ee===0&&(Ee=5)}function co(t){var e=Go();return ro(99,oE.bind(null,t,e)),null}function oE(t,e){do An();while(Es!==null);if(I&48)throw Error(D(327));var n=t.finishedWork;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(D(177));t.callbackNode=null;var o=n.lanes|n.childLanes,r=o,s=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;for(var i=t.eventTimes,a=t.expirationTimes;0<s;){var l=31-gn(s),c=1<<l;r[l]=0,i[l]=-1,a[l]=-1,s&=~c}if(Vt!==null&&!(o&24)&&Vt.has(t)&&Vt.delete(t),t===Be&&(de=Be=null,Me=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,o!==null){if(r=I,I|=32,Ed.current=null,Vu=Gi,i=uy(),zu(i)){if("selectionStart"in i)a={start:i.selectionStart,end:i.selectionEnd};else e:if(a=(a=i.ownerDocument)&&a.defaultView||window,(c=a.getSelection&&a.getSelection())&&c.rangeCount!==0){a=c.anchorNode,s=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{a.nodeType,l.nodeType}catch{a=null;break e}var u=0,d=-1,m=-1,f=0,p=0,g=i,h=null;t:for(;;){for(var y;g!==a||s!==0&&g.nodeType!==3||(d=u+s),g!==l||c!==0&&g.nodeType!==3||(m=u+c),g.nodeType===3&&(u+=g.nodeValue.length),(y=g.firstChild)!==null;)h=g,g=y;for(;;){if(g===i)break t;if(h===a&&++f===s&&(d=u),h===l&&++p===c&&(m=u),(y=g.nextSibling)!==null)break;g=h,h=g.parentNode}g=y}a=d===-1||m===-1?null:{start:d,end:m}}else a=null;a=a||{start:0,end:0}}else a=null;Uu={focusedElem:i,selectionRange:a},Gi=!1,As=null,Ta=!1,M=o;do try{rE()}catch(E){if(M===null)throw Error(D(330));Dn(M,E),M=M.nextEffect}while(M!==null);As=null,M=o;do try{for(i=t;M!==null;){var b=M.flags;if(b&16&&Ur(M.stateNode,""),b&128){var $=M.alternate;if($!==null){var v=$.ref;v!==null&&(typeof v=="function"?v(null):v.current=null)}}switch(b&1038){case 2:D0(M),M.flags&=-3;break;case 6:D0(M),M.flags&=-3,kd(M.alternate,M);break;case 1024:M.flags&=-1025;break;case 1028:M.flags&=-1025,kd(M.alternate,M);break;case 4:kd(M.alternate,M);break;case 8:a=M,R0(i,a);var k=a.alternate;N0(a),k!==null&&N0(k)}M=M.nextEffect}}catch(E){if(M===null)throw Error(D(330));Dn(M,E),M=M.nextEffect}while(M!==null);if(v=Uu,$=uy(),b=v.focusedElem,i=v.selectionRange,$!==b&&b&&b.ownerDocument&&cy(b.ownerDocument.documentElement,b)){for(i!==null&&zu(b)&&($=i.start,v=i.end,v===void 0&&(v=$),"selectionStart"in b?(b.selectionStart=$,b.selectionEnd=Math.min(v,b.value.length)):(v=($=b.ownerDocument||document)&&$.defaultView||window,v.getSelection&&(v=v.getSelection(),a=b.textContent.length,k=Math.min(i.start,a),i=i.end===void 0?k:Math.min(i.end,a),!v.extend&&k>i&&(a=i,i=k,k=a),a=ly(b,k),s=ly(b,i),a&&s&&(v.rangeCount!==1||v.anchorNode!==a.node||v.anchorOffset!==a.offset||v.focusNode!==s.node||v.focusOffset!==s.offset)&&($=$.createRange(),$.setStart(a.node,a.offset),v.removeAllRanges(),k>i?(v.addRange($),v.extend(s.node,s.offset)):($.setEnd(s.node,s.offset),v.addRange($)))))),$=[],v=b;v=v.parentNode;)v.nodeType===1&&$.push({element:v,left:v.scrollLeft,top:v.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b<$.length;b++)v=$[b],v.element.scrollLeft=v.left,v.element.scrollTop=v.top}Gi=!!Vu,Uu=Vu=null,t.current=n,M=o;do try{for(b=t;M!==null;){var x=M.flags;if(x&36&&Qk(b,M.alternate,M),x&128){$=void 0;var C=M.ref;if(C!==null){var O=M.stateNode;switch(M.tag){case 5:$=O;break;default:$=O}typeof C=="function"?C($):C.current=$}}M=M.nextEffect}}catch(E){if(M===null)throw Error(D(330));Dn(M,E),M=M.nextEffect}while(M!==null);M=null,Bk(),I=r}else t.current=n;if(En)En=!1,Es=t,Cs=e;else for(M=o;M!==null;)e=M.nextEffect,M.nextEffect=null,M.flags&8&&(x=M,x.sibling=null,x.stateNode=null),M=e;if(o=t.pendingLanes,o===0&&(Nt=null),o===1?t===jd?Ns++:(Ns=0,jd=t):Ns=0,n=n.stateNode,oo&&typeof oo.onCommitFiberRoot=="function")try{oo.onCommitFiberRoot(Wu,n,void 0,(n.current.flags&64)===64)}catch{}if(lt(t,Oe()),Da)throw Da=!1,t=Od,Od=null,t;return I&8||xt(),null}function rE(){for(;M!==null;){var t=M.alternate;Ta||As===null||(M.flags&8?Rg(M,As)&&(Ta=!0):M.tag===13&&Zk(t,M)&&Rg(M,As)&&(Ta=!0));var e=M.flags;e&256&&Gk(t,M),!(e&512)||En||(En=!0,ds(97,function(){return An(),null})),M=M.nextEffect}}function An(){if(Cs!==90){var t=97<Cs?97:Cs;return Cs=90,ro(t,iE)}return!1}function sE(t,e){Td.push(e,t),En||(En=!0,ds(97,function(){return An(),null}))}function B0(t,e){Md.push(e,t),En||(En=!0,ds(97,function(){return An(),null}))}function iE(){if(Es===null)return!1;var t=Es;if(Es=null,I&48)throw Error(D(331));var e=I;I|=32;var n=Md;Md=[];for(var o=0;o<n.length;o+=2){var r=n[o],s=n[o+1],i=r.destroy;if(r.destroy=void 0,typeof i=="function")try{i()}catch(l){if(s===null)throw Error(D(330));Dn(s,l)}}for(n=Td,Td=[],o=0;o<n.length;o+=2){r=n[o],s=n[o+1];try{var a=r.create;r.destroy=a()}catch(l){if(s===null)throw Error(D(330));Dn(s,l)}}for(a=t.current.firstEffect;a!==null;)t=a.nextEffect,a.nextEffect=null,a.flags&8&&(a.sibling=null,a.stateNode=null),a=t;return I=e,xt(),!0}function F0(t,e,n){e=$d(n,e),e=S0(t,e,1),xn(t,e),e=Ge(),t=Ma(t,1),t!==null&&(qi(t,1,e),lt(t,e))}function Dn(t,e){if(t.tag===3)F0(t,t,e);else for(var n=t.return;n!==null;){if(n.tag===3){F0(n,t,e);break}else if(n.tag===1){var o=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Nt===null||!Nt.has(o))){t=$d(e,t);var r=x0(n,t,1);if(xn(n,r),r=Ge(),n=Ma(n,1),n!==null)qi(n,1,r),lt(n,r);else if(typeof o.componentDidCatch=="function"&&(Nt===null||!Nt.has(o)))try{o.componentDidCatch(e,t)}catch{}break}}n=n.return}}function aE(t,e,n){var o=t.pingCache;o!==null&&o.delete(e),e=Ge(),t.pingedLanes|=t.suspendedLanes&n,Be===t&&(Me&n)===n&&(Ee===4||Ee===3&&(Me&62914560)===Me&&500>Oe()-Dd?sr(t,0):Nd|=n),lt(t,e)}function lE(t,e){var n=t.stateNode;n!==null&&n.delete(e),e=0,e===0&&(e=t.mode,e&2?e&4?(Ut===0&&(Ut=tr),e=Fo(62914560&~Ut),e===0&&(e=4194304)):e=Go()===99?1:2:e=1),n=Ge(),t=Ma(t,e),t!==null&&(qi(t,e,n),lt(t,n))}var H0;H0=function(t,e,n){var o=e.lanes;if(t!==null)if(t.memoizedProps!==e.pendingProps||Ve.current)yt=!0;else if(n&o)yt=!!(t.flags&16384);else{switch(yt=!1,e.tag){case 3:m0(e),ad();break;case 5:Ky(e);break;case 1:Ue(e.type)&&la(e);break;case 4:rd(e,e.stateNode.containerInfo);break;case 10:o=e.memoizedProps.value;var r=e.type._context;oe(da,r._currentValue),r._currentValue=o;break;case 13:if(e.memoizedState!==null)return n&e.child.childLanes?f0(t,e,n):(oe(re,re.current&1),e=Ht(t,e,n),e!==null?e.sibling:null);oe(re,re.current&1);break;case 19:if(o=(n&e.childLanes)!==0,t.flags&64){if(o)return w0(t,e,n);e.flags|=64}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),oe(re,re.current),o)break;return null;case 23:case 24:return e.lanes=0,hd(t,e,n)}return Ht(t,e,n)}else yt=!1;switch(e.lanes=0,e.tag){case 2:if(o=e.type,t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,r=qo(e,Re.current),Zo(e,n),r=ud(null,e,o,t,r,n),e.flags|=1,typeof r=="object"&&r!==null&&typeof r.render=="function"&&r.$$typeof===void 0){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,Ue(o)){var s=!0;la(e)}else s=!1;e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,nd(e);var i=o.getDerivedStateFromProps;typeof i=="function"&&pa(e,o,i,t),r.updater=ha,e.stateNode=r,r._reactInternals=e,od(e,o,t,n),e=yd(null,e,o,!0,s,n)}else e.tag=0,Je(null,e,r,n),e=e.child;return e;case 16:r=e.elementType;e:{switch(t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),t=e.pendingProps,s=r._init,r=s(r._payload),e.type=r,s=e.tag=uE(r),t=gt(r,t),s){case 0:e=gd(null,e,r,t,n);break e;case 1:e=d0(null,e,r,t,n);break e;case 11:e=a0(null,e,r,t,n);break e;case 14:e=l0(null,e,r,gt(r.type,t),o,n);break e}throw Error(D(306,r,""))}return e;case 0:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:gt(o,r),gd(t,e,o,r,n);case 1:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:gt(o,r),d0(t,e,o,r,n);case 3:if(m0(e),o=e.updateQueue,t===null||o===null)throw Error(D(282));if(o=e.pendingProps,r=e.memoizedState,r=r!==null?r.element:null,zy(t,e),ms(e,o,null,n),o=e.memoizedState.element,o===r)ad(),e=Ht(t,e,n);else{if(r=e.stateNode,(s=r.hydrate)&&(kn=Jo(e.stateNode.containerInfo.firstChild),Ft=e,s=Et=!0),s){if(t=r.mutableSourceEagerHydrationData,t!=null)for(r=0;r<t.length;r+=2)s=t[r],s._workInProgressVersionPrimary=t[r+1],er.push(s);for(n=Yy(e,null,o,n),e.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else Je(t,e,o,n),ad();e=e.child}return e;case 5:return Ky(e),t===null&&id(e),o=e.type,r=e.pendingProps,s=t!==null?t.memoizedProps:null,i=r.children,_u(o,r)?i=null:s!==null&&_u(o,s)&&(e.flags|=16),u0(t,e),Je(t,e,i,n),e.child;case 6:return t===null&&id(e),null;case 13:return f0(t,e,n);case 4:return rd(e,e.stateNode.containerInfo),o=e.pendingProps,t===null?e.child=wa(e,null,o,n):Je(t,e,o,n),e.child;case 11:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:gt(o,r),a0(t,e,o,r,n);case 7:return Je(t,e,e.pendingProps,n),e.child;case 8:return Je(t,e,e.pendingProps.children,n),e.child;case 12:return Je(t,e,e.pendingProps.children,n),e.child;case 10:e:{o=e.type._context,r=e.pendingProps,i=e.memoizedProps,s=r.value;var a=e.type._context;if(oe(da,a._currentValue),a._currentValue=s,i!==null)if(a=i.value,s=st(a,s)?0:(typeof o._calculateChangedBits=="function"?o._calculateChangedBits(a,s):1073741823)|0,s===0){if(i.children===r.children&&!Ve.current){e=Ht(t,e,n);break e}}else for(a=e.child,a!==null&&(a.return=e);a!==null;){var l=a.dependencies;if(l!==null){i=a.child;for(var c=l.firstContext;c!==null;){if(c.context===o&&c.observedBits&s){a.tag===1&&(c=Sn(-1,n&-n),c.tag=2,xn(a,c)),a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),Iy(a.return,n),l.lanes|=n;break}c=c.next}}else i=a.tag===10&&a.type===e.type?null:a.child;if(i!==null)i.return=a;else for(i=a;i!==null;){if(i===e){i=null;break}if(a=i.sibling,a!==null){a.return=i.return,i=a;break}i=i.return}a=i}Je(t,e,r.children,n),e=e.child}return e;case 9:return r=e.type,s=e.pendingProps,o=s.children,Zo(e,n),r=it(r,s.unstable_observedBits),o=o(r),e.flags|=1,Je(t,e,o,n),e.child;case 14:return r=e.type,s=gt(r,e.pendingProps),s=gt(r.type,s),l0(t,e,r,s,o,n);case 15:return c0(t,e,e.type,e.pendingProps,o,n);case 17:return o=e.type,r=e.pendingProps,r=e.elementType===o?r:gt(o,r),t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2),e.tag=1,Ue(o)?(t=!0,la(e)):t=!1,Zo(e,n),Uy(e,o,r),od(e,o,r,n),yd(null,e,o,!0,t,n);case 19:return w0(t,e,n);case 23:return hd(t,e,n);case 24:return hd(t,e,n)}throw Error(D(156,e.tag))};function cE(t,e,n,o){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function ct(t,e,n,o){return new cE(t,e,n,o)}function Id(t){return t=t.prototype,!(!t||!t.isReactComponent)}function uE(t){if(typeof t=="function")return Id(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Li)return 11;if(t===zi)return 14}return 2}function Rn(t,e){var n=t.alternate;return n===null?(n=ct(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Pa(t,e,n,o,r,s){var i=2;if(o=t,typeof t=="function")Id(t)&&(i=1);else if(typeof t=="string")i=5;else e:switch(t){case dn:return ir(n.children,r,s,e);case lg:i=8,r|=16;break;case Kc:i=8,r|=1;break;case Br:return t=ct(12,n,e,r|8),t.elementType=Br,t.type=Br,t.lanes=s,t;case Fr:return t=ct(13,n,e,r),t.type=Fr,t.elementType=Fr,t.lanes=s,t;case Ii:return t=ct(19,n,e,r),t.elementType=Ii,t.lanes=s,t;case Xc:return zd(n,r,s,e);case eu:return t=ct(24,n,e,r),t.elementType=eu,t.lanes=s,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Wc:i=10;break e;case qc:i=9;break e;case Li:i=11;break e;case zi:i=14;break e;case Gc:i=16,o=null;break e;case Qc:i=22;break e}throw Error(D(130,t==null?t:typeof t,""))}return e=ct(i,n,e,r),e.elementType=t,e.type=o,e.lanes=s,e}function ir(t,e,n,o){return t=ct(7,t,o,e),t.lanes=n,t}function zd(t,e,n,o){return t=ct(23,t,o,e),t.elementType=Xc,t.lanes=n,t}function Bd(t,e,n){return t=ct(6,t,null,e),t.lanes=n,t}function Fd(t,e,n){return e=ct(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function dE(t,e,n){this.tag=e,this.containerInfo=t,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=Cu(0),this.expirationTimes=Cu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cu(0),this.mutableSourceEagerHydrationData=null}function mE(t,e,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Zn,key:o==null?null:""+o,children:t,containerInfo:e,implementation:n}}function La(t,e,n,o){var r=e.current,s=Ge(),i=Cn(r);e:if(n){n=n._reactInternals;t:{if(eo(n)!==n||n.tag!==1)throw Error(D(170));var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(Ue(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(a!==null);throw Error(D(171))}if(n.tag===1){var l=n.type;if(Ue(l)){n=Ny(n,l,a);break e}}n=a}else n=$n;return e.context===null?e.context=n:e.pendingContext=n,e=Sn(s,i),e.payload={element:t},o=o===void 0?null:o,o!==null&&(e.callback=o),xn(r,e),Nn(r,i,s),i}function Hd(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function V0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Vd(t,e){V0(t,e),(t=t.alternate)&&V0(t,e)}function fE(){return null}function Ud(t,e,n){var o=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new dE(t,e,n!=null&&n.hydrate===!0),e=ct(3,null,null,e===2?7:e===1?3:0),n.current=e,e.stateNode=n,nd(e),t[Yo]=n.current,gy(t.nodeType===8?t.parentNode:t),o)for(t=0;t<o.length;t++){e=o[t];var r=e._getVersion;r=r(e._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[e,r]:n.mutableSourceEagerHydrationData.push(e,r)}this._internalRoot=n}Ud.prototype.render=function(t){La(t,this._internalRoot,null,null)},Ud.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;La(null,t,null,function(){e[Yo]=null})};function Rs(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function pE(t,e){if(e||(e=t?t.nodeType===9?t.documentElement:t.firstChild:null,e=!(!e||e.nodeType!==1||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new Ud(t,0,e?{hydrate:!0}:void 0)}function Ia(t,e,n,o,r){var s=n._reactRootContainer;if(s){var i=s._internalRoot;if(typeof r=="function"){var a=r;r=function(){var c=Hd(i);a.call(c)}}La(e,i,t,r)}else{if(s=n._reactRootContainer=pE(n,o),i=s._internalRoot,typeof r=="function"){var l=r;r=function(){var c=Hd(i);l.call(c)}}j0(function(){La(e,i,t,r)})}return Hd(i)}Og=function(t){if(t.tag===13){var e=Ge();Nn(t,4,e),Vd(t,4)}},$u=function(t){if(t.tag===13){var e=Ge();Nn(t,67108864,e),Vd(t,67108864)}},Tg=function(t){if(t.tag===13){var e=Ge(),n=Cn(t);Nn(t,n,e),Vd(t,n)}},Mg=function(t,e){return e()},fu=function(t,e,n){switch(e){case"input":if(ru(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var o=n[e];if(o!==t&&o.form===t.form){var r=ia(o);if(!r)throw Error(D(90));dg(o),ru(o,r)}}}break;case"textarea":gg(t,n);break;case"select":e=n.value,e!=null&&Po(t,!!n.multiple,e,!1)}},pu=M0,Eg=function(t,e,n,o,r){var s=I;I|=4;try{return ro(98,t.bind(null,e,n,o,r))}finally{I=s,I===0&&(or(),xt())}},hu=function(){!(I&49)&&(eE(),An())},Cg=function(t,e){var n=I;I|=2;try{return t(e)}finally{I=n,I===0&&(or(),xt())}};function U0(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Rs(e))throw Error(D(200));return mE(t,e,null,n)}var hE={Events:[us,Ko,ia,xg,kg,An,{current:!1}]},Os={findFiberByHostInstance:to,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},gE={bundleType:Os.bundleType,version:Os.version,rendererPackageName:Os.rendererPackageName,rendererConfig:Os.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Qn.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Dg(t),t===null?null:t.stateNode},findFiberByHostInstance:Os.findFiberByHostInstance||fE,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var za=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!za.isDisabled&&za.supportsFiber)try{Wu=za.inject(gE),oo=za}catch{}}rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=hE,rt.createPortal=U0,rt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(D(188)):Error(D(268,Object.keys(t)));return t=Dg(e),t=t===null?null:t.stateNode,t},rt.flushSync=function(t,e){var n=I;if(n&48)return t(e);I|=1;try{if(t)return ro(99,t.bind(null,e))}finally{I=n,xt()}},rt.hydrate=function(t,e,n){if(!Rs(e))throw Error(D(200));return Ia(null,t,e,!0,n)},rt.render=function(t,e,n){if(!Rs(e))throw Error(D(200));return Ia(null,t,e,!1,n)},rt.unmountComponentAtNode=function(t){if(!Rs(t))throw Error(D(40));return t._reactRootContainer?(j0(function(){Ia(null,null,t,!1,function(){t._reactRootContainer=null,t[Yo]=null})}),!0):!1},rt.unstable_batchedUpdates=M0,rt.unstable_createPortal=function(t,e){return U0(t,e,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},rt.unstable_renderSubtreeIntoContainer=function(t,e,n,o){if(!Rs(n))throw Error(D(200));if(t==null||t._reactInternals===void 0)throw Error(D(38));return Ia(t,e,n,!1,o)},rt.version="17.0.2";function _0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_0)}catch(t){console.error(t)}}_0(),tg.exports=rt;var _d=tg.exports;const J0=Ze(_d);function yE(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Y0={exports:{}},Jd={};/**
* @license React
* use-sync-external-store-shim.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var K0;function wE(){if(K0)return Jd;K0=1;var t=_;function e(d,m){return d===m&&(d!==0||1/d===1/m)||d!==d&&m!==m}var n=typeof Object.is=="function"?Object.is:e,o=t.useState,r=t.useEffect,s=t.useLayoutEffect,i=t.useDebugValue;function a(d,m){var f=m(),p=o({inst:{value:f,getSnapshot:m}}),g=p[0].inst,h=p[1];return s(function(){g.value=f,g.getSnapshot=m,l(g)&&h({inst:g})},[d,f,m]),r(function(){return l(g)&&h({inst:g}),d(function(){l(g)&&h({inst:g})})},[d]),i(f),f}function l(d){var m=d.getSnapshot;d=d.value;try{var f=m();return!n(d,f)}catch{return!0}}function c(d,m){return m()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return Jd.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:u,Jd}Y0.exports=wE();var Yd=Y0.exports;const bE=(...t)=>e=>{t.forEach(n=>{typeof n=="function"?n(e):n&&(n.current=e)})},$E=({contentComponent:t})=>{const e=Yd.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return _.createElement(_.Fragment,null,Object.values(e))};function vE(){const t=new Set;let e={};return{subscribe(n){return t.add(n),()=>{t.delete(n)}},getSnapshot(){return e},getServerSnapshot(){return e},setRenderer(n,o){e={...e,[n]:J0.createPortal(o.reactElement,o.element,n)},t.forEach(r=>r())},removeRenderer(n){const o={...e};delete o[n],e=o,t.forEach(r=>r())}}}class SE extends _.Component{constructor(e){var n;super(e),this.editorContentRef=_.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!(!((n=e.editor)===null||n===void 0)&&n.contentComponent)}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){const e=this.props.editor;if(e&&!e.isDestroyed&&e.options.element){if(e.contentComponent)return;const n=this.editorContentRef.current;n.append(...e.options.element.childNodes),e.setOptions({element:n}),e.contentComponent=vE(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=e.contentComponent.subscribe(()=>{this.setState(o=>o.hasContentComponentInitialized?o:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),e.createNodeViews(),this.initialized=!0}}componentWillUnmount(){const 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;const n=document.createElement("div");n.append(...e.options.element.childNodes),e.setOptions({element:n})}render(){const{editor:e,innerRef:n,...o}=this.props;return _.createElement(_.Fragment,null,_.createElement("div",{ref:bE(n,this.editorContentRef),...o}),(e==null?void 0:e.contentComponent)&&_.createElement($E,{contentComponent:e.contentComponent}))}}const xE=S.forwardRef((t,e)=>{const n=_.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[t.editor]);return _.createElement(SE,{key:n,innerRef:e,...t})}),kE=_.memo(xE);var EE=function t(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var o,r,s;if(Array.isArray(e)){if(o=e.length,o!=n.length)return!1;for(r=o;r--!==0;)if(!t(e[r],n[r]))return!1;return!0}if(e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(r of e.entries())if(!n.has(r[0]))return!1;for(r of e.entries())if(!t(r[1],n.get(r[0])))return!1;return!0}if(e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(r of e.entries())if(!n.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(n)){if(o=e.length,o!=n.length)return!1;for(r=o;r--!==0;)if(e[r]!==n[r])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(s=Object.keys(e),o=s.length,o!==Object.keys(n).length)return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[r]))return!1;for(r=o;r--!==0;){var i=s[r];if(!(i==="_owner"&&e.$$typeof)&&!t(e[i],n[i]))return!1}return!0}return e!==e&&n!==n},CE=yE(EE),W0={exports:{}},Kd={};/**
* @license React
* use-sync-external-store-shim/with-selector.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var q0;function NE(){if(q0)return Kd;q0=1;var t=_,e=Yd;function n(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var o=typeof Object.is=="function"?Object.is:n,r=e.useSyncExternalStore,s=t.useRef,i=t.useEffect,a=t.useMemo,l=t.useDebugValue;return Kd.useSyncExternalStoreWithSelector=function(c,u,d,m,f){var p=s(null);if(p.current===null){var g={hasValue:!1,value:null};p.current=g}else g=p.current;p=a(function(){function y(x){if(!b){if(b=!0,$=x,x=m(x),f!==void 0&&g.hasValue){var C=g.value;if(f(C,x))return v=C}return v=x}if(C=v,o($,x))return C;var O=m(x);return f!==void 0&&f(C,O)?C:($=x,v=O)}var b=!1,$,v,k=d===void 0?null:d;return[function(){return y(u())},k===null?void 0:function(){return y(k())}]},[u,d,m,f]);var h=r(c,p[0],p[1]);return i(function(){g.hasValue=!0,g.value=h},[h]),l(h),h},Kd}W0.exports=NE();var AE=W0.exports;const DE=typeof window<"u"?S.useLayoutEffect:S.useEffect;class RE{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){const n=()=>{this.transactionNumber+=1,this.subscribers.forEach(r=>r())},o=this.editor;return o.on("transaction",n),()=>{o.off("transaction",n)}}}}function OE(t){var e;const[n]=S.useState(()=>new RE(t.editor)),o=AE.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,t.selector,(e=t.equalityFn)!==null&&e!==void 0?e:CE);return DE(()=>n.watch(t.editor),[t.editor,n]),S.useDebugValue(o),o}const TE=!1,Wd=typeof window>"u",ME=Wd||!!(typeof window<"u"&&window.next);class qd{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(n=>n())}getInitialEditor(){return this.options.current.immediatelyRender===void 0?Wd||ME?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){const e={...this.options.current,onBeforeCreate:(...o)=>{var r,s;return(s=(r=this.options.current).onBeforeCreate)===null||s===void 0?void 0:s.call(r,...o)},onBlur:(...o)=>{var r,s;return(s=(r=this.options.current).onBlur)===null||s===void 0?void 0:s.call(r,...o)},onCreate:(...o)=>{var r,s;return(s=(r=this.options.current).onCreate)===null||s===void 0?void 0:s.call(r,...o)},onDestroy:(...o)=>{var r,s;return(s=(r=this.options.current).onDestroy)===null||s===void 0?void 0:s.call(r,...o)},onFocus:(...o)=>{var r,s;return(s=(r=this.options.current).onFocus)===null||s===void 0?void 0:s.call(r,...o)},onSelectionUpdate:(...o)=>{var r,s;return(s=(r=this.options.current).onSelectionUpdate)===null||s===void 0?void 0:s.call(r,...o)},onTransaction:(...o)=>{var r,s;return(s=(r=this.options.current).onTransaction)===null||s===void 0?void 0:s.call(r,...o)},onUpdate:(...o)=>{var r,s;return(s=(r=this.options.current).onUpdate)===null||s===void 0?void 0:s.call(r,...o)},onContentError:(...o)=>{var r,s;return(s=(r=this.options.current).onContentError)===null||s===void 0?void 0:s.call(r,...o)},onDrop:(...o)=>{var r,s;return(s=(r=this.options.current).onDrop)===null||s===void 0?void 0:s.call(r,...o)},onPaste:(...o)=>{var r,s;return(s=(r=this.options.current).onPaste)===null||s===void 0?void 0:s.call(r,...o)}};return new wx(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,n){return Object.keys(e).every(o=>["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(o)?!0:o==="extensions"&&e.extensions&&n.extensions?e.extensions.length!==n.extensions.length?!1:e.extensions.every((r,s)=>{var i;return r===((i=n.extensions)===null||i===void 0?void 0:i[s])}):e[o]===n[o])}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&e.length===0?qd.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(e),()=>{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((o,r)=>o===e[r]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){const e=this.instanceId,n=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){n&&n.setOptions(this.options.current);return}n&&!n.isDestroyed&&(n.destroy(),this.instanceId===e&&this.setEditor(null))},1)}}function jE(t={},e=[]){const n=S.useRef(t);n.current=t;const[o]=S.useState(()=>new qd(n)),r=Yd.useSyncExternalStore(o.subscribe,o.getEditor,o.getServerSnapshot);return S.useDebugValue(r),S.useEffect(o.onRender(e)),OE({editor:r,selector:({transactionNumber:s})=>t.shouldRerenderOnTransaction===!1?null:t.immediatelyRender&&s===0?0:s+1}),r}S.createContext({editor:null}).Consumer;const PE=S.createContext({onDragStart:void 0}),LE=()=>S.useContext(PE);_.forwardRef((t,e)=>{const{onDragStart:n}=LE(),o=t.as||"div";return _.createElement(o,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...t.style}})});const Ba=t=>S.createElement("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",...t},S.createElement("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"},S.createElement("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"0.6s",repeatCount:"indefinite"})));var IE=Object.defineProperty,zE=(t,e,n)=>e in t?IE(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Gd=(t,e,n)=>(zE(t,typeof e!="symbol"?e+"":e,n),n);let BE=class{constructor(){Gd(this,"current",this.detect()),Gd(this,"handoffState","pending"),Gd(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"}},Fa=new BE,Ts=(t,e)=>{Fa.isServer?S.useEffect(t,e):S.useLayoutEffect(t,e)};function ar(t){let e=S.useRef(t);return Ts(()=>{e.current=t},[t]),e}let _t=function(t){let e=ar(t);return _.useCallback((...n)=>e.current(...n),[e])};function FE(t){typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t).catch(e=>setTimeout(()=>{throw e}))}function Ms(){let t=[],e={addEventListener(n,o,r,s){return n.addEventListener(o,r,s),e.add(()=>n.removeEventListener(o,r,s))},requestAnimationFrame(...n){let o=requestAnimationFrame(...n);return e.add(()=>cancelAnimationFrame(o))},nextFrame(...n){return e.requestAnimationFrame(()=>e.requestAnimationFrame(...n))},setTimeout(...n){let o=setTimeout(...n);return e.add(()=>clearTimeout(o))},microTask(...n){let o={current:!0};return FE(()=>{o.current&&n[0]()}),e.add(()=>{o.current=!1})},style(n,o,r){let s=n.style.getPropertyValue(o);return Object.assign(n.style,{[o]:r}),this.add(()=>{Object.assign(n.style,{[o]:s})})},group(n){let o=Ms();return n(o),this.add(()=>o.dispose())},add(n){return t.push(n),()=>{let o=t.indexOf(n);if(o>=0)for(let r of t.splice(o,1))r()}},dispose(){for(let n of t.splice(0))n()}};return e}function G0(){let[t]=S.useState(Ms);return S.useEffect(()=>()=>t.dispose(),[t]),t}function HE(){let t=typeof document>"u";return"useSyncExternalStore"in tf?(e=>e.useSyncExternalStore)(tf)(()=>()=>{},()=>!1,()=>!t):!1}function Q0(){let t=HE(),[e,n]=S.useState(Fa.isHandoffComplete);return e&&Fa.isHandoffComplete===!1&&n(!1),S.useEffect(()=>{e!==!0&&n(!0)},[e]),S.useEffect(()=>Fa.handoff(),[]),t?!1:e}function At(t,e,...n){if(t in e){let r=e[t];return typeof r=="function"?r(...n):r}let o=new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,At),o}let VE=Symbol();function Z0(...t){let e=S.useRef(t);S.useEffect(()=>{e.current=t},[t]);let n=_t(o=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(o):r.current=o)});return t.every(o=>o==null||(o==null?void 0:o[VE]))?void 0:n}function Ha(...t){return Array.from(new Set(t.flatMap(e=>typeof e=="string"?e.split(" "):[]))).filter(Boolean).join(" ")}var X0=(t=>(t[t.None=0]="None",t[t.RenderStrategy=1]="RenderStrategy",t[t.Static=2]="Static",t))(X0||{}),On=(t=>(t[t.Unmount=0]="Unmount",t[t.Hidden=1]="Hidden",t))(On||{});function ew({ourProps:t,theirProps:e,slot:n,defaultTag:o,features:r,visible:s=!0,name:i,mergeRefs:a}){a=a??UE;let l=tw(e,t);if(s)return Va(l,n,o,i,a);let c=r??0;if(c&2){let{static:u=!1,...d}=l;if(u)return Va(d,n,o,i,a)}if(c&1){let{unmount:u=!0,...d}=l;return At(u?0:1,{0(){return null},1(){return Va({...d,hidden:!0,style:{display:"none"}},n,o,i,a)}})}return Va(l,n,o,i,a)}function Va(t,e={},n,o,r){let{as:s=n,children:i,refName:a="ref",...l}=Zd(t,["unmount","static"]),c=t.ref!==void 0?{[a]:t.ref}:{},u=typeof i=="function"?i(e):i;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(e));let d={};if(e){let m=!1,f=[];for(let[p,g]of Object.entries(e))typeof g=="boolean"&&(m=!0),g===!0&&f.push(p);m&&(d["data-headlessui-state"]=f.join(" "))}if(s===S.Fragment&&Object.keys(nw(l)).length>0){if(!S.isValidElement(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${o} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map(g=>` - ${g}`).join(`
`),"","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(g=>` - ${g}`).join(`
`)].join(`
`));let m=u.props,f=typeof(m==null?void 0:m.className)=="function"?(...g)=>Ha(m==null?void 0:m.className(...g),l.className):Ha(m==null?void 0:m.className,l.className),p=f?{className:f}:{};return S.cloneElement(u,Object.assign({},tw(u.props,nw(Zd(l,["ref"]))),d,c,{ref:r(u.ref,c.ref)},p))}return S.createElement(s,Object.assign({},Zd(l,["ref"]),s!==S.Fragment&&c,s!==S.Fragment&&d),u)}function UE(...t){return t.every(e=>e==null)?void 0:e=>{for(let n of t)n!=null&&(typeof n=="function"?n(e):n.current=e)}}function tw(...t){if(t.length===0)return{};if(t.length===1)return t[0];let e={},n={};for(let o of t)for(let r in o)r.startsWith("on")&&typeof o[r]=="function"?(n[r]!=null||(n[r]=[]),n[r].push(o[r])):e[r]=o[r];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(n).map(o=>[o,void 0])));for(let o in n)Object.assign(e,{[o](r,...s){let i=n[o];for(let a of i){if((r instanceof Event||(r==null?void 0:r.nativeEvent)instanceof Event)&&r.defaultPrevented)return;a(r,...s)}}});return e}function Qd(t){var e;return Object.assign(S.forwardRef(t),{displayName:(e=t.displayName)!=null?e:t.name})}function nw(t){let e=Object.assign({},t);for(let n in e)e[n]===void 0&&delete e[n];return e}function Zd(t,e=[]){let n=Object.assign({},t);for(let o of e)o in n&&delete n[o];return n}let Xd=S.createContext(null);Xd.displayName="OpenClosedContext";var Jt=(t=>(t[t.Open=1]="Open",t[t.Closed=2]="Closed",t[t.Closing=4]="Closing",t[t.Opening=8]="Opening",t))(Jt||{});function ow(){return S.useContext(Xd)}function _E({value:t,children:e}){return _.createElement(Xd.Provider,{value:t},e)}function em(){let t=S.useRef(!1);return Ts(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function JE(t=0){let[e,n]=S.useState(t),o=em(),r=S.useCallback(l=>{o.current&&n(c=>c|l)},[e,o]),s=S.useCallback(l=>!!(e&l),[e]),i=S.useCallback(l=>{o.current&&n(c=>c&~l)},[n,o]),a=S.useCallback(l=>{o.current&&n(c=>c^l)},[n]);return{flags:e,addFlag:r,hasFlag:s,removeFlag:i,toggleFlag:a}}function YE(t){let e={called:!1};return(...n)=>{if(!e.called)return e.called=!0,t(...n)}}function tm(t,...e){t&&e.length>0&&t.classList.add(...e)}function nm(t,...e){t&&e.length>0&&t.classList.remove(...e)}function KE(t,e){let n=Ms();if(!t)return n.dispose;let{transitionDuration:o,transitionDelay:r}=getComputedStyle(t),[s,i]=[o,r].map(l=>{let[c=0]=l.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,d)=>d-u);return c}),a=s+i;if(a!==0){n.group(c=>{c.setTimeout(()=>{e(),c.dispose()},a),c.addEventListener(t,"transitionrun",u=>{u.target===u.currentTarget&&c.dispose()})});let l=n.addEventListener(t,"transitionend",c=>{c.target===c.currentTarget&&(e(),l())})}else e();return n.add(()=>e()),n.dispose}function WE(t,e,n,o){let r=n?"enter":"leave",s=Ms(),i=o!==void 0?YE(o):()=>{};r==="enter"&&(t.removeAttribute("hidden"),t.style.display="");let a=At(r,{enter:()=>e.enter,leave:()=>e.leave}),l=At(r,{enter:()=>e.enterTo,leave:()=>e.leaveTo}),c=At(r,{enter:()=>e.enterFrom,leave:()=>e.leaveFrom});return nm(t,...e.base,...e.enter,...e.enterTo,...e.enterFrom,...e.leave,...e.leaveFrom,...e.leaveTo,...e.entered),tm(t,...e.base,...a,...c),s.nextFrame(()=>{nm(t,...e.base,...a,...c),tm(t,...e.base,...a,...l),KE(t,()=>(nm(t,...e.base,...a),tm(t,...e.base,...e.entered),i()))}),s.dispose}function qE({immediate:t,container:e,direction:n,classes:o,onStart:r,onStop:s}){let i=em(),a=G0(),l=ar(n);Ts(()=>{t&&(l.current="enter")},[t]),Ts(()=>{let c=Ms();a.add(c.dispose);let u=e.current;if(u&&l.current!=="idle"&&i.current)return c.dispose(),r.current(l.current),c.add(WE(u,o.current,l.current==="enter",()=>{c.dispose(),s.current(l.current)})),c.dispose},[n])}function Tn(t=""){return t.split(/\s+/).filter(e=>e.length>1)}let Ua=S.createContext(null);Ua.displayName="TransitionContext";var GE=(t=>(t.Visible="visible",t.Hidden="hidden",t))(GE||{});function QE(){let t=S.useContext(Ua);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}function ZE(){let t=S.useContext(_a);if(t===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}let _a=S.createContext(null);_a.displayName="NestingContext";function Ja(t){return"children"in t?Ja(t.children):t.current.filter(({el:e})=>e.current!==null).filter(({state:e})=>e==="visible").length>0}function rw(t,e){let n=ar(t),o=S.useRef([]),r=em(),s=G0(),i=_t((f,p=On.Hidden)=>{let g=o.current.findIndex(({el:h})=>h===f);g!==-1&&(At(p,{[On.Unmount](){o.current.splice(g,1)},[On.Hidden](){o.current[g].state="hidden"}}),s.microTask(()=>{var h;!Ja(o)&&r.current&&((h=n.current)==null||h.call(n))}))}),a=_t(f=>{let p=o.current.find(({el:g})=>g===f);return p?p.state!=="visible"&&(p.state="visible"):o.current.push({el:f,state:"visible"}),()=>i(f,On.Unmount)}),l=S.useRef([]),c=S.useRef(Promise.resolve()),u=S.useRef({enter:[],leave:[],idle:[]}),d=_t((f,p,g)=>{l.current.splice(0),e&&(e.chains.current[p]=e.chains.current[p].filter(([h])=>h!==f)),e==null||e.chains.current[p].push([f,new Promise(h=>{l.current.push(h)})]),e==null||e.chains.current[p].push([f,new Promise(h=>{Promise.all(u.current[p].map(([y,b])=>b)).then(()=>h())})]),p==="enter"?c.current=c.current.then(()=>e==null?void 0:e.wait.current).then(()=>g(p)):g(p)}),m=_t((f,p,g)=>{Promise.all(u.current[p].splice(0).map(([h,y])=>y)).then(()=>{var h;(h=l.current.shift())==null||h()}).then(()=>g(p))});return S.useMemo(()=>({children:o,register:a,unregister:i,onStart:d,onStop:m,wait:c,chains:u}),[a,i,o,d,m,u,c])}function XE(){}let eC=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function sw(t){var e;let n={};for(let o of eC)n[o]=(e=t[o])!=null?e:XE;return n}function tC(t){let e=S.useRef(sw(t));return S.useEffect(()=>{e.current=sw(t)},[t]),e}let nC="div",iw=X0.RenderStrategy;function oC(t,e){var n,o;let{beforeEnter:r,afterEnter:s,beforeLeave:i,afterLeave:a,enter:l,enterFrom:c,enterTo:u,entered:d,leave:m,leaveFrom:f,leaveTo:p,...g}=t,h=S.useRef(null),y=Z0(h,e),b=(n=g.unmount)==null||n?On.Unmount:On.Hidden,{show:$,appear:v,initial:k}=QE(),[x,C]=S.useState($?"visible":"hidden"),O=ZE(),{register:E,unregister:U}=O;S.useEffect(()=>E(h),[E,h]),S.useEffect(()=>{if(b===On.Hidden&&h.current){if($&&x!=="visible"){C("visible");return}return At(x,{hidden:()=>U(h),visible:()=>E(h)})}},[x,h,E,U,$,b]);let ae=ar({base:Tn(g.className),enter:Tn(l),enterFrom:Tn(c),enterTo:Tn(u),entered:Tn(d),leave:Tn(m),leaveFrom:Tn(f),leaveTo:Tn(p)}),ne=tC({beforeEnter:r,afterEnter:s,beforeLeave:i,afterLeave:a}),ee=Q0();S.useEffect(()=>{if(ee&&x==="visible"&&h.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,x,ee]);let je=k&&!v,le=v&&$&&k,me=!ee||je?"idle":$?"enter":"leave",be=JE(0),fe=_t(W=>At(W,{enter:()=>{be.addFlag(Jt.Opening),ne.current.beforeEnter()},leave:()=>{be.addFlag(Jt.Closing),ne.current.beforeLeave()},idle:()=>{}})),Qe=_t(W=>At(W,{enter:()=>{be.removeFlag(Jt.Opening),ne.current.afterEnter()},leave:()=>{be.removeFlag(Jt.Closing),ne.current.afterLeave()},idle:()=>{}})),mt=rw(()=>{C("hidden"),U(h)},O),R=S.useRef(!1);qE({immediate:le,container:h,classes:ae,direction:me,onStart:ar(W=>{R.current=!0,mt.onStart(h,W,fe)}),onStop:ar(W=>{R.current=!1,mt.onStop(h,W,Qe),W==="leave"&&!Ja(mt)&&(C("hidden"),U(h))})});let P=g,V={ref:y};return le?P={...P,className:Ha(g.className,...ae.current.enter,...ae.current.enterFrom)}:R.current&&(P.className=Ha(g.className,(o=h.current)==null?void 0:o.className),P.className===""&&delete P.className),_.createElement(_a.Provider,{value:mt},_.createElement(_E,{value:At(x,{visible:Jt.Open,hidden:Jt.Closed})|be.flags},ew({ourProps:V,theirProps:P,defaultTag:nC,features:iw,visible:x==="visible",name:"Transition.Child"})))}function rC(t,e){let{show:n,appear:o=!1,unmount:r=!0,...s}=t,i=S.useRef(null),a=Z0(i,e);Q0();let l=ow();if(n===void 0&&l!==null&&(n=(l&Jt.Open)===Jt.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=S.useState(n?"visible":"hidden"),d=rw(()=>{u("hidden")}),[m,f]=S.useState(!0),p=S.useRef([n]);Ts(()=>{m!==!1&&p.current[p.current.length-1]!==n&&(p.current.push(n),f(!1))},[p,n]);let g=S.useMemo(()=>({show:n,appear:o,initial:m}),[n,o,m]);S.useEffect(()=>{if(n)u("visible");else if(!Ja(d))u("hidden");else{let $=i.current;if(!$)return;let v=$.getBoundingClientRect();v.x===0&&v.y===0&&v.width===0&&v.height===0&&u("hidden")}},[n,d]);let h={unmount:r},y=_t(()=>{var $;m&&f(!1),($=t.beforeEnter)==null||$.call(t)}),b=_t(()=>{var $;m&&f(!1),($=t.beforeLeave)==null||$.call(t)});return _.createElement(_a.Provider,{value:d},_.createElement(Ua.Provider,{value:g},ew({ourProps:{...h,as:S.Fragment,children:_.createElement(aw,{ref:a,...h,...s,beforeEnter:y,beforeLeave:b})},theirProps:{},defaultTag:S.Fragment,features:iw,visible:c==="visible",name:"Transition"})))}function sC(t,e){let n=S.useContext(Ua)!==null,o=ow()!==null;return _.createElement(_.Fragment,null,!n&&o?_.createElement(om,{ref:e,...t}):_.createElement(aw,{ref:e,...t}))}let om=Qd(rC),aw=Qd(oC),iC=Qd(sC),uo=Object.assign(om,{Child:iC,Root:om});const aC=/^\s*>\s$/,lC=un.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:t}){return["blockquote",Oo(this.options.HTMLAttributes,t),0]},addCommands(){return{setBlockquote:()=>({commands:t})=>t.wrapIn(this.name),toggleBlockquote:()=>({commands:t})=>t.toggleWrap(this.name),unsetBlockquote:()=>({commands:t})=>t.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[bx({find:aC,type:this.type})]}}),cC=un.create({name:"doc",topNode:!0,content:"block+"}),uC=un.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:t}){return["br",Oo(this.options.HTMLAttributes,t)]},renderText(){return`
`},addCommands(){return{setHardBreak:()=>({commands:t,chain:e,state:n,editor:o})=>t.first([()=>t.exitCode(),()=>t.command(()=>{const{selection:r,storedMarks:s}=n;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:i}=this.options,{splittableMarks:a}=o.extensionManager,l=s||r.$to.parentOffset&&r.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&l&&i){const d=l.filter(m=>a.includes(m.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),dC="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",mC="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт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همراهاکستان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",lr=(t,e)=>{for(const n in e)t[n]=e[n];return t},rm="numeric",sm="ascii",im="alpha",js="asciinumeric",Ps="alphanumeric",am="domain",lw="emoji",fC="scheme",pC="slashscheme",lm="whitespace";function hC(t,e){return t in e||(e[t]=[]),e[t]}function mo(t,e,n){e[rm]&&(e[js]=!0,e[Ps]=!0),e[sm]&&(e[js]=!0,e[im]=!0),e[js]&&(e[Ps]=!0),e[im]&&(e[Ps]=!0),e[Ps]&&(e[am]=!0),e[lw]&&(e[am]=!0);for(const o in e){const r=hC(o,n);r.indexOf(t)<0&&r.push(t)}}function gC(t,e){const n={};for(const o in e)e[o].indexOf(t)>=0&&(n[o]=!0);return n}function Ye(t=null){this.j={},this.jr=[],this.jd=null,this.t=t}Ye.groups={},Ye.prototype={accepts(){return!!this.t},go(t){const e=this,n=e.j[t];if(n)return n;for(let o=0;o<e.jr.length;o++){const r=e.jr[o][0],s=e.jr[o][1];if(s&&r.test(t))return s}return e.jd},has(t,e=!1){return e?t in this.j:!!this.go(t)},ta(t,e,n,o){for(let r=0;r<t.length;r++)this.tt(t[r],e,n,o)},tr(t,e,n,o){o=o||Ye.groups;let r;return e&&e.j?r=e:(r=new Ye(e),n&&o&&mo(e,n,o)),this.jr.push([t,r]),r},ts(t,e,n,o){let r=this;const s=t.length;if(!s)return r;for(let i=0;i<s-1;i++)r=r.tt(t[i]);return r.tt(t[s-1],e,n,o)},tt(t,e,n,o){o=o||Ye.groups;const r=this;if(e&&e.j)return r.j[t]=e,e;const s=e;let i,a=r.go(t);if(a?(i=new Ye,lr(i.j,a.j),i.jr.push.apply(i.jr,a.jr),i.jd=a.jd,i.t=a.t):i=new Ye,s){if(o)if(i.t&&typeof i.t=="string"){const l=lr(gC(i.t,o),n);mo(s,l,o)}else n&&mo(s,n,o);i.t=s}return r.j[t]=i,i}};const F=(t,e,n,o,r)=>t.ta(e,n,o,r),se=(t,e,n,o,r)=>t.tr(e,n,o,r),cw=(t,e,n,o,r)=>t.ts(e,n,o,r),A=(t,e,n,o,r)=>t.tt(e,n,o,r),Yt="WORD",cm="UWORD",uw="ASCIINUMERICAL",dw="ALPHANUMERICAL",Ls="LOCALHOST",um="TLD",dm="UTLD",Ya="SCHEME",cr="SLASH_SCHEME",mm="NUM",fm="WS",pm="NL",Is="OPENBRACE",zs="CLOSEBRACE",Ka="OPENBRACKET",Wa="CLOSEBRACKET",qa="OPENPAREN",Ga="CLOSEPAREN",Qa="OPENANGLEBRACKET",Za="CLOSEANGLEBRACKET",Xa="FULLWIDTHLEFTPAREN",el="FULLWIDTHRIGHTPAREN",tl="LEFTCORNERBRACKET",nl="RIGHTCORNERBRACKET",ol="LEFTWHITECORNERBRACKET",rl="RIGHTWHITECORNERBRACKET",sl="FULLWIDTHLESSTHAN",il="FULLWIDTHGREATERTHAN",al="AMPERSAND",hm="APOSTROPHE",ll="ASTERISK",Mn="AT",cl="BACKSLASH",ul="BACKTICK",dl="CARET",jn="COLON",gm="COMMA",ml="DOLLAR",Dt="DOT",fl="EQUALS",ym="EXCLAMATION",ut="HYPHEN",Bs="PERCENT",pl="PIPE",hl="PLUS",gl="POUND",Fs="QUERY",wm="QUOTE",mw="FULLWIDTHMIDDLEDOT",bm="SEMI",Rt="SLASH",Hs="TILDE",yl="UNDERSCORE",fw="EMOJI",wl="SYM";var pw=Object.freeze({__proto__:null,WORD:Yt,UWORD:cm,ASCIINUMERICAL:uw,ALPHANUMERICAL:dw,LOCALHOST:Ls,TLD:um,UTLD:dm,SCHEME:Ya,SLASH_SCHEME:cr,NUM:mm,WS:fm,NL:pm,OPENBRACE:Is,CLOSEBRACE:zs,OPENBRACKET:Ka,CLOSEBRACKET:Wa,OPENPAREN:qa,CLOSEPAREN:Ga,OPENANGLEBRACKET:Qa,CLOSEANGLEBRACKET:Za,FULLWIDTHLEFTPAREN:Xa,FULLWIDTHRIGHTPAREN:el,LEFTCORNERBRACKET:tl,RIGHTCORNERBRACKET:nl,LEFTWHITECORNERBRACKET:ol,RIGHTWHITECORNERBRACKET:rl,FULLWIDTHLESSTHAN:sl,FULLWIDTHGREATERTHAN:il,AMPERSAND:al,APOSTROPHE:hm,ASTERISK:ll,AT:Mn,BACKSLASH:cl,BACKTICK:ul,CARET:dl,COLON:jn,COMMA:gm,DOLLAR:ml,DOT:Dt,EQUALS:fl,EXCLAMATION:ym,HYPHEN:ut,PERCENT:Bs,PIPE:pl,PLUS:hl,POUND:gl,QUERY:Fs,QUOTE:wm,FULLWIDTHMIDDLEDOT:mw,SEMI:bm,SLASH:Rt,TILDE:Hs,UNDERSCORE:yl,EMOJI:fw,SYM:wl});const Kt=/[a-z]/,Vs=new RegExp("\\p{L}","u"),$m=new RegExp("\\p{Emoji}","u"),Wt=/\d/,vm=/\s/,hw="\r",Sm=`
`,yC="",wC="",xm="";let bl=null,$l=null;function bC(t=[]){const e={};Ye.groups=e;const n=new Ye;bl==null&&(bl=yw(dC)),$l==null&&($l=yw(mC)),A(n,"'",hm),A(n,"{",Is),A(n,"}",zs),A(n,"[",Ka),A(n,"]",Wa),A(n,"(",qa),A(n,")",Ga),A(n,"<",Qa),A(n,">",Za),A(n,"",Xa),A(n,"",el),A(n,"「",tl),A(n,"」",nl),A(n,"『",ol),A(n,"』",rl),A(n,"",sl),A(n,"",il),A(n,"&",al),A(n,"*",ll),A(n,"@",Mn),A(n,"`",ul),A(n,"^",dl),A(n,":",jn),A(n,",",gm),A(n,"$",ml),A(n,".",Dt),A(n,"=",fl),A(n,"!",ym),A(n,"-",ut),A(n,"%",Bs),A(n,"|",pl),A(n,"+",hl),A(n,"#",gl),A(n,"?",Fs),A(n,'"',wm),A(n,"/",Rt),A(n,";",bm),A(n,"~",Hs),A(n,"_",yl),A(n,"\\",cl),A(n,"・",mw);const o=se(n,Wt,mm,{[rm]:!0});se(o,Wt,o);const r=se(o,Kt,uw,{[js]:!0}),s=se(o,Vs,dw,{[Ps]:!0}),i=se(n,Kt,Yt,{[sm]:!0});se(i,Wt,r),se(i,Kt,i),se(r,Wt,r),se(r,Kt,r);const a=se(n,Vs,cm,{[im]:!0});se(a,Kt),se(a,Wt,s),se(a,Vs,a),se(s,Wt,s),se(s,Kt),se(s,Vs,s);const l=A(n,Sm,pm,{[lm]:!0}),c=A(n,hw,fm,{[lm]:!0}),u=se(n,vm,fm,{[lm]:!0});A(n,xm,u),A(c,Sm,l),A(c,xm,u),se(c,vm,u),A(u,hw),A(u,Sm),se(u,vm,u),A(u,xm,u);const d=se(n,$m,fw,{[lw]:!0});A(d,"#"),se(d,$m,d),A(d,yC,d);const m=A(d,wC);A(m,"#"),se(m,$m,d);const f=[[Kt,i],[Wt,r]],p=[[Kt,null],[Vs,a],[Wt,s]];for(let g=0;g<bl.length;g++)Pn(n,bl[g],um,Yt,f);for(let g=0;g<$l.length;g++)Pn(n,$l[g],dm,cm,p);mo(um,{tld:!0,ascii:!0},e),mo(dm,{utld:!0,alpha:!0},e),Pn(n,"file",Ya,Yt,f),Pn(n,"mailto",Ya,Yt,f),Pn(n,"http",cr,Yt,f),Pn(n,"https",cr,Yt,f),Pn(n,"ftp",cr,Yt,f),Pn(n,"ftps",cr,Yt,f),mo(Ya,{scheme:!0,ascii:!0},e),mo(cr,{slashscheme:!0,ascii:!0},e),t=t.sort((g,h)=>g[0]>h[0]?1:-1);for(let g=0;g<t.length;g++){const h=t[g][0],b=t[g][1]?{[fC]:!0}:{[pC]:!0};h.indexOf("-")>=0?b[am]=!0:Kt.test(h)?Wt.test(h)?b[js]=!0:b[sm]=!0:b[rm]=!0,cw(n,h,h,b)}return cw(n,"localhost",Ls,{ascii:!0}),n.jd=new Ye(wl),{start:n,tokens:lr({groups:e},pw)}}function gw(t,e){const n=$C(e.replace(/[A-Z]/g,a=>a.toLowerCase())),o=n.length,r=[];let s=0,i=0;for(;i<o;){let a=t,l=null,c=0,u=null,d=-1,m=-1;for(;i<o&&(l=a.go(n[i]));)a=l,a.accepts()?(d=0,m=0,u=a):d>=0&&(d+=n[i].length,m++),c+=n[i].length,s+=n[i].length,i++;s-=d,i-=m,c-=d,r.push({t:u.t,v:e.slice(s-c,s),s:s-c,e:s})}return r}function $C(t){const e=[],n=t.length;let o=0;for(;o<n;){let r=t.charCodeAt(o),s,i=r<55296||r>56319||o+1===n||(s=t.charCodeAt(o+1))<56320||s>57343?t[o]:t.slice(o,o+2);e.push(i),o+=i.length}return e}function Pn(t,e,n,o,r){let s;const i=e.length;for(let a=0;a<i-1;a++){const l=e[a];t.j[l]?s=t.j[l]:(s=new Ye(o),s.jr=r.slice(),t.j[l]=s),t=s}return s=new Ye(n),s.jr=r.slice(),t.j[e[i-1]]=s,s}function yw(t){const e=[],n=[];let o=0,r="0123456789";for(;o<t.length;){let s=0;for(;r.indexOf(t[o+s])>=0;)s++;if(s>0){e.push(n.join(""));for(let i=parseInt(t.substring(o,o+s),10);i>0;i--)n.pop();o+=s}else n.push(t[o]),o++}return e}const Us={defaultProtocol:"http",events:null,format:ww,formatHref:ww,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function km(t,e=null){let n=lr({},Us);t&&(n=lr(n,t instanceof km?t.o:t));const o=n.ignoreTags,r=[];for(let s=0;s<o.length;s++)r.push(o[s].toUpperCase());this.o=n,e&&(this.defaultRender=e),this.ignoreTags=r}km.prototype={o:Us,ignoreTags:[],defaultRender(t){return t},check(t){return this.get("validate",t.toString(),t)},get(t,e,n){const o=e!=null;let r=this.o[t];return r&&(typeof r=="object"?(r=n.t in r?r[n.t]:Us[t],typeof r=="function"&&o&&(r=r(e,n))):typeof r=="function"&&o&&(r=r(e,n.t,n)),r)},getObj(t,e,n){let o=this.o[t];return typeof o=="function"&&e!=null&&(o=o(e,n.t,n)),o},render(t){const e=t.render(this);return(this.get("render",null,t)||this.defaultRender)(e,t.t,t)}};function ww(t){return t}function bw(t,e){this.t="token",this.v=t,this.tk=e}bw.prototype={isLink:!1,toString(){return this.v},toHref(t){return this.toString()},toFormattedString(t){const e=this.toString(),n=t.get("truncate",e,this),o=t.get("format",e,this);return n&&o.length>n?o.substring(0,n)+"…":o},toFormattedHref(t){return t.get("formatHref",this.toHref(t.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(t=Us.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(t){return{type:this.t,value:this.toFormattedString(t),isLink:this.isLink,href:this.toFormattedHref(t),start:this.startIndex(),end:this.endIndex()}},validate(t){return t.get("validate",this.toString(),this)},render(t){const e=this,n=this.toHref(t.get("defaultProtocol")),o=t.get("formatHref",n,this),r=t.get("tagName",n,e),s=this.toFormattedString(t),i={},a=t.get("className",n,e),l=t.get("target",n,e),c=t.get("rel",n,e),u=t.getObj("attributes",n,e),d=t.getObj("events",n,e);return i.href=o,a&&(i.class=a),l&&(i.target=l),c&&(i.rel=c),u&&lr(i,u),{tagName:r,attributes:i,content:s,eventListeners:d}}};function vl(t,e){class n extends bw{constructor(r,s){super(r,s),this.t=t}}for(const o in e)n.prototype[o]=e[o];return n.t=t,n}const $w=vl("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),vw=vl("text"),vC=vl("nl"),Sl=vl("url",{isLink:!0,toHref(t=Us.defaultProtocol){return this.hasProtocol()?this.v:`${t}://${this.v}`},hasProtocol(){const t=this.tk;return t.length>=2&&t[0].t!==Ls&&t[1].t===jn}}),dt=t=>new Ye(t);function SC({groups:t}){const e=t.domain.concat([al,ll,Mn,cl,ul,dl,ml,fl,ut,mm,Bs,pl,hl,gl,Rt,wl,Hs,yl]),n=[jn,gm,Dt,ym,Bs,Fs,wm,bm,Qa,Za,Is,zs,Wa,Ka,qa,Ga,Xa,el,tl,nl,ol,rl,sl,il],o=[al,hm,ll,cl,ul,dl,ml,fl,ut,Is,zs,Bs,pl,hl,gl,Fs,Rt,wl,Hs,yl],r=dt(),s=A(r,Hs);F(s,o,s),F(s,t.domain,s);const i=dt(),a=dt(),l=dt();F(r,t.domain,i),F(r,t.scheme,a),F(r,t.slashscheme,l),F(i,o,s),F(i,t.domain,i);const c=A(i,Mn);A(s,Mn,c),A(a,Mn,c),A(l,Mn,c);const u=A(s,Dt);F(u,o,s),F(u,t.domain,s);const d=dt();F(c,t.domain,d),F(d,t.domain,d);const m=A(d,Dt);F(m,t.domain,d);const f=dt($w);F(m,t.tld,f),F(m,t.utld,f),A(c,Ls,f);const p=A(d,ut);A(p,ut,p),F(p,t.domain,d),F(f,t.domain,d),A(f,Dt,m),A(f,ut,p);const g=A(f,jn);F(g,t.numeric,$w);const h=A(i,ut),y=A(i,Dt);A(h,ut,h),F(h,t.domain,i),F(y,o,s),F(y,t.domain,i);const b=dt(Sl);F(y,t.tld,b),F(y,t.utld,b),F(b,t.domain,i),F(b,o,s),A(b,Dt,y),A(b,ut,h),A(b,Mn,c);const $=A(b,jn),v=dt(Sl);F($,t.numeric,v);const k=dt(Sl),x=dt();F(k,e,k),F(k,n,x),F(x,e,k),F(x,n,x),A(b,Rt,k),A(v,Rt,k);const C=A(a,jn),O=A(l,jn),E=A(O,Rt),U=A(E,Rt);F(a,t.domain,i),A(a,Dt,y),A(a,ut,h),F(l,t.domain,i),A(l,Dt,y),A(l,ut,h),F(C,t.domain,k),A(C,Rt,k),A(C,Fs,k),F(U,t.domain,k),F(U,e,k),A(U,Rt,k);const ae=[[Is,zs],[Ka,Wa],[qa,Ga],[Qa,Za],[Xa,el],[tl,nl],[ol,rl],[sl,il]];for(let ne=0;ne<ae.length;ne++){const[ee,je]=ae[ne],le=A(k,ee);A(x,ee,le),A(le,je,k);const me=dt(Sl);F(le,e,me);const be=dt();F(le,n),F(me,e,me),F(me,n,be),F(be,e,me),F(be,n,be),A(me,je,k),A(be,je,k)}return A(r,Ls,b),A(r,pm,vC),{start:r,tokens:pw}}function xC(t,e,n){let o=n.length,r=0,s=[],i=[];for(;r<o;){let a=t,l=null,c=null,u=0,d=null,m=-1;for(;r<o&&!(l=a.go(n[r].t));)i.push(n[r++]);for(;r<o&&(c=l||a.go(n[r].t));)l=null,a=c,a.accepts()?(m=0,d=a):m>=0&&m++,r++,u++;if(m<0)r-=u,r<o&&(i.push(n[r]),r++);else{i.length>0&&(s.push(Em(vw,e,i)),i=[]),r-=m,u-=m;const f=d.t,p=n.slice(r-u,r);s.push(Em(f,e,p))}}return i.length>0&&s.push(Em(vw,e,i)),s}function Em(t,e,n){const o=n[0].s,r=n[n.length-1].e,s=e.slice(o,r);return new t(s,n)}const kC=typeof console<"u"&&console&&console.warn||(()=>{}),EC="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",X={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function CC(){return Ye.groups={},X.scanner=null,X.parser=null,X.tokenQueue=[],X.pluginQueue=[],X.customSchemes=[],X.initialized=!1,X}function Sw(t,e=!1){if(X.initialized&&kC(`linkifyjs: already initialized - will not register custom scheme "${t}" ${EC}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))throw new Error(`linkifyjs: incorrect scheme format.
1. Must only contain digits, lowercase ASCII letters or "-"
2. Cannot start or end with "-"
3. "-" cannot repeat`);X.customSchemes.push([t,e])}function NC(){X.scanner=bC(X.customSchemes);for(let t=0;t<X.tokenQueue.length;t++)X.tokenQueue[t][1]({scanner:X.scanner});X.parser=SC(X.scanner.tokens);for(let t=0;t<X.pluginQueue.length;t++)X.pluginQueue[t][1]({scanner:X.scanner,parser:X.parser});return X.initialized=!0,X}function Cm(t){return X.initialized||NC(),xC(X.parser.start,t,gw(X.scanner.start,t))}Cm.scan=gw;function xw(t,e=null,n=null){if(e&&typeof e=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);n=e,e=null}const o=new km(n),r=Cm(t),s=[];for(let i=0;i<r.length;i++){const a=r[i];a.isLink&&(!e||a.t===e)&&o.check(a)&&s.push(a.toFormattedObject(o))}return s}const Nm="[\0-   -\u2029 ]",AC=new RegExp(Nm),DC=new RegExp(`${Nm}$`),RC=new RegExp(Nm,"g");function OC(t){return t.length===1?t[0].isLink:t.length===3&&t[1].isLink?["()","[]"].includes(t[0].value+t[2].value):!1}function TC(t){return new Fe({key:new pt("autolink"),appendTransaction:(e,n,o)=>{const r=e.some(c=>c.docChanged)&&!n.doc.eq(o.doc),s=e.some(c=>c.getMeta("preventAutolink"));if(!r||s)return;const{tr:i}=o,a=VS(n.doc,[...e]);if(GS(a).forEach(({newRange:c})=>{const u=_S(o.doc,c,f=>f.isTextblock);let d,m;if(u.length>1)d=u[0],m=o.doc.textBetween(d.pos,d.pos+d.node.nodeSize,void 0," ");else if(u.length){const f=o.doc.textBetween(c.from,c.to," "," ");if(!DC.test(f))return;d=u[0],m=o.doc.textBetween(d.pos,c.to,void 0," ")}if(d&&m){const f=m.split(AC).filter(Boolean);if(f.length<=0)return!1;const p=f[f.length-1],g=d.pos+m.lastIndexOf(p);if(!p)return!1;const h=Cm(p).map(y=>y.toObject(t.defaultProtocol));if(!OC(h))return!1;h.filter(y=>y.isLink).map(y=>({...y,from:g+y.start+1,to:g+y.end+1})).filter(y=>o.schema.marks.code?!o.doc.rangeHasMark(y.from,y.to,o.schema.marks.code):!0).filter(y=>t.validate(y.value)).filter(y=>t.shouldAutoLink(y.value)).forEach(y=>{Zh(y.from,y.to,o.doc).some(b=>b.mark.type===t.type)||i.addMark(y.from,y.to,t.type.create({href:y.href}))})}}),!!i.steps.length)return i}})}function MC(t){return new Fe({key:new pt("handleClickLink"),props:{handleClick:(e,n,o)=>{var r,s;if(o.button!==0||!e.editable)return!1;let i=o.target;const a=[];for(;i.nodeName!=="DIV";)a.push(i),i=i.parentNode;if(!a.find(m=>m.nodeName==="A"))return!1;const l=Qh(e.state,t.type.name),c=o.target,u=(r=c==null?void 0:c.href)!==null&&r!==void 0?r:l.href,d=(s=c==null?void 0:c.target)!==null&&s!==void 0?s:l.target;return c&&u?(window.open(u,d),!0):!1}}})}function jC(t){return new Fe({key:new pt("handlePasteLink"),props:{handlePaste:(e,n,o)=>{const{state:r}=e,{selection:s}=r,{empty:i}=s;if(i)return!1;let a="";o.content.forEach(c=>{a+=c.textContent});const l=xw(a,{defaultProtocol:t.defaultProtocol}).find(c=>c.isLink&&c.value===a);return!a||!l?!1:t.editor.commands.setMark(t.type,{href:l.href})}}})}function fo(t,e){const n=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(o=>{const r=typeof o=="string"?o:o.scheme;r&&n.push(r)}),!t||t.replace(RC,"").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}const PC=jr.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(t=>{if(typeof t=="string"){Sw(t);return}Sw(t.scheme,t.optionalSlashes)})},onDestroy(){CC()},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:(t,e)=>!!fo(t,e.protocols),validate:t=>!!t,shouldAutoLink:t=>!!t}},addAttributes(){return{href:{default:null,parseHTML(t){return t.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:t=>{const e=t.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:n=>!!fo(n,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:t}){return this.options.isAllowedUri(t.href,{defaultValidate:e=>!!fo(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Oo(this.options.HTMLAttributes,t),0]:["a",Oo(this.options.HTMLAttributes,{...t,href:""}),0]},addCommands(){return{setLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:o=>!!fo(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,t).setMeta("preventAutolink",!0).run():!1},toggleLink:t=>({chain:e})=>{const{href:n}=t;return this.options.isAllowedUri(n,{defaultValidate:o=>!!fo(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().toggleMark(this.name,t,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run():!1},unsetLink:()=>({chain:t})=>t().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[$x({find:t=>{const e=[];if(t){const{protocols:n,defaultProtocol:o}=this.options,r=xw(t).filter(s=>s.isLink&&this.options.isAllowedUri(s.value,{defaultValidate:i=>!!fo(i,n),protocols:n,defaultProtocol:o}));r.length&&r.forEach(s=>e.push({text:s.value,data:{href:s.href},index:s.start}))}return e},type:this.type,getAttributes:t=>{var e;return{href:(e=t.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const t=[],{protocols:e,defaultProtocol:n}=this.options;return this.options.autolink&&t.push(TC({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:o=>this.options.isAllowedUri(o,{defaultValidate:r=>!!fo(r,e),protocols:e,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&t.push(MC({type:this.type})),this.options.linkOnPaste&&t.push(jC({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),t}}),LC=un.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:t}){return["p",Oo(this.options.HTMLAttributes,t),0]},addCommands(){return{setParagraph:()=>({commands:t})=>t.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),IC=ot.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new Fe({key:new pt("placeholder"),props:{decorations:({doc:t,selection:e})=>{const n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:o}=e,r=[];if(!n)return null;const s=this.editor.isEmpty;return t.descendants((i,a)=>{const l=o>=a&&o<=a+i.nodeSize,c=!i.isLeaf&&ji(i);if((l||!this.options.showOnlyCurrent)&&c){const u=[this.options.emptyNodeClass];s&&u.push(this.options.emptyEditorClass);const d=nt.node(a,a+i.nodeSize,{class:u.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:i,pos:a,hasAnchor:l}):this.options.placeholder});r.push(d)}return this.options.includeChildren}),ue.create(t,r)}}})]}}),zC=un.create({name:"text",group:"inline"});function BC({placeholder:t,autofocus:e=!1,content:n=""}){return{extensions:[cC,zC,LC,PC.configure({openOnClick:!1}),IC.configure({placeholder:t,showOnlyWhenEditable:!1}),lC.configure({}),uC.configure({})],content:n,autofocus:e,editorProps:{attributes:{class:"gh-comment-content focus:outline-0","data-testid":"editor"}},parseOptions:{preserveWhitespace:"full"}}}function FC(t,e){const n=S.useRef(null),o=S.useCallback(r=>{n.current,r&&t&&t(r),n.current=r},[t,e]);return[n,o]}function HC(t){const{popup:e}=B();return(e==null?void 0:e.type)===t}function VC(t){const{t:e}=B();return S.useMemo(()=>kb(t,e),[t])}function Am(t,e=!1){const[n,o]=S.useState(e),r=S.useMemo(()=>({...BC(t)}),[t]),s=jE(r,[r]);return S.useEffect(()=>{if(s){const i=()=>{const a=!s.isEmpty;o(a)};return s.on("update",i),s.on("transaction",i),i(),()=>{s.off("update",i),s.off("transaction",i)}}},[s]),{editor:s,hasContent:n}}function UC(t,e){const n=S.useCallback(()=>{if(t.current)for(const s of Object.values(e))t.current.classList.add(...s.default.split(" ")),t.current.classList.remove(...s.outOfViewport.split(" "))},[t,e]),o=S.useCallback(s=>{if(t.current)for(const[i,a]of Object.entries(e))s[i]?(t.current.classList.add(...a.outOfViewport.split(" ")),t.current.classList.remove(...a.default.split(" "))):(t.current.classList.add(...a.default.split(" ")),t.current.classList.remove(...a.outOfViewport.split(" ")))},[t,e]),r=S.useCallback(()=>{if(t.current){const s=t.current.ownerDocument,i=s.defaultView||window;n();const a=t.current.getBoundingClientRect(),l={top:a.top<0,bottom:a.bottom>(i.innerHeight||s.documentElement.clientHeight),left:a.left<0,right:a.right>(i.innerWidth||s.documentElement.clientWidth)};o(l)}},[t]);S.useLayoutEffect(()=>{r()},[t]),S.useEffect(()=>(window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}),[])}const _C=({comment:t,submit:e,progress:n,setProgress:o,close:r,isOpen:s,editor:i,submitText:a,submitSize:l,openForm:c})=>{const{dispatchAction:u,t:d}=B();let m=null;S.useEffect(()=>{if(i&&c){const g=()=>{const h=t&&c.type==="edit"?i.getHTML()!==t.html:!i.isEmpty;c.hasUnsavedChanges!==h&&u("setCommentFormHasUnsavedChanges",{id:c.id,hasUnsavedChanges:h})};return i.on("update",g),i.on("transaction",g),g(),()=>{i.off("update",g),i.off("transaction",g)}}},[i,t,c,u]),n==="sending"&&(m=w.jsx(Ba,{className:"h-[24px] w-[24px] fill-white","data-testid":"button-spinner"}));const f=S.useCallback(g=>{if(i!=null&&i.isFocused){g.stopPropagation();return}},[i]),p=S.useCallback(async()=>{if(!(!i||i.isEmpty)){o("sending");try{await e({html:i.getHTML()})}catch{o("error");return}return r?r():(o("sent"),i.chain().clearContent().blur().run()),!1}},[o,i,e,r]);return S.useEffect(()=>{const g=h=>{if(h.metaKey||h.ctrlKey){h.key==="Enter"&&(i!=null&&i.isFocused)&&(p(),i==null||i.commands.blur());return}if(h.key==="Escape"){i!=null&&i.isFocused&&(r?r():i==null||i.commands.blur());return}};return window.addEventListener("keydown",g,{passive:!0}),()=>{window.removeEventListener("keydown",g,{passive:!0})}},[i,r,p]),w.jsxs(w.Fragment,{children:[w.jsx("div",{className:`text-md min-h-[120px] w-full rounded-lg border border-black/10 bg-white/75 p-2 pb-[68px] font-sans leading-normal transition-all delay-100 duration-150 focus:outline-0 sm:px-3 sm:text-lg dark:bg-white/10 dark:text-neutral-300 ${s?"cursor-text":"cursor-pointer"}`,"data-testid":"form-editor",children:w.jsx(kE,{editor:i,onMouseDown:f,onTouchStart:f})}),w.jsxs("div",{className:"absolute bottom-1 right-1 flex space-x-4 transition-[opacity] duration-150 sm:bottom-2 sm:right-2",children:[r&&w.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:r,children:d("Cancel")}),w.jsxs("button",{className:`flex w-auto items-center justify-center ${l==="medium"&&"sm:min-w-[100px]"} ${l==="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 sm:text-sm dark:disabled:bg-white/15 dark:disabled:text-white/35`,"data-testid":"submit-form-button",disabled:!i||i.isEmpty,type:"button",onClick:p,children:[m&&w.jsx("span",{className:"mr-1",children:m}),a&&w.jsx("span",{children:a})]})]})]})},JC=({show:t,name:e,expertise:n,replyingToText:o,editName:r,editExpertise:s})=>{const{t:i}=B(),a=!!o;return w.jsxs(uo,{"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:t,children:[w.jsxs("div",{className:"flex flex-wrap",children:[w.jsx("div",{className:"w-full font-sans text-base font-bold leading-snug text-neutral-900 sm:w-auto sm:text-sm dark:text-white/85","data-testid":"member-name",onMouseDown:r,children:e||"Anonymous"}),w.jsx("div",{className:"flex items-baseline justify-start",children:w.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 sm:text-sm dark:text-white/60 dark:hover:text-white/75 ${!n&&"text-black/30 hover:text-black/50 dark:text-white/30 dark:hover:text-white/50"}`,"data-testid":"expertise-button",type:"button",onMouseDown:s,children:[w.jsxs("span",{children:[w.jsx("span",{className:"mx-[0.3em] hidden sm:inline",children:"·"}),n||i("Add your expertise")]}),n&&w.jsx(Rb,{className:"ml-1 h-[12px] w-[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"})]})})]}),a&&w.jsxs("div",{className:"mt-0.5 line-clamp-1 font-sans text-base leading-snug text-neutral-900/50 sm:text-sm dark:text-white/60","data-testid":"replying-to",children:[w.jsxs("span",{children:[i("Reply to"),":"]})," ",w.jsx("span",{className:"font-semibold text-neutral-900/60 dark:text-white/70",children:o})]})]})},Dm=({comment:t,submit:e,submitText:n,submitSize:o,close:r,editor:s,reduced:i,isOpen:a,openForm:l})=>{var h;const{member:c}=B(),u=HC("addDetailsPopup"),[d,m]=S.useState("default"),f=S.useRef(null),p=(c==null?void 0:c.name)??((h=t==null?void 0:t.member)==null?void 0:h.name);(d==="sending"||p&&u)&&(a=!0);const g=y=>{if(s!=null&&s.isFocused){y.preventDefault();return}};return S.useEffect(()=>{s&&s.setEditable(!!p&&d!=="sending")},[s,p,d]),w.jsx("form",{ref:f,"data-testid":"form",onMouseDown:g,onTouchStart:g,children:w.jsx(_C,{close:r,comment:t,editor:s,isOpen:a,openForm:l,progress:d,reduced:i,setProgress:m,submit:e,submitSize:o,submitText:n})})},kw=({comment:t,editor:e,isOpen:n,reduced:o,openForm:r,children:s})=>{var g,h;const{member:i,dispatchAction:a}=B(),l=(i==null?void 0:i.name)??((g=t==null?void 0:t.member)==null?void 0:g.name),c=(i==null?void 0:i.expertise)??((h=t==null?void 0:t.member)==null?void 0:h.expertise);let u="";n&&(u=!!(r!=null&&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]");const d=S.useCallback(y=>{var b;(b=e==null?void 0:e.commands)==null||b.blur(),a("openPopup",{type:"addDetailsPopup",expertiseAutofocus:y.expertiseAutofocus??!1,callback:function($){e&&$&&(e.setEditable(!0),e.commands.focus())}})},[e,a]),m=S.useCallback(()=>{d({expertiseAutofocus:!1})},[d]),f=S.useCallback(()=>{d({expertiseAutofocus:!0})},[d]),p=S.useCallback(()=>{if(e&&!e.isFocused){if(!l){m();return}e.commands.focus()}},[e,m,l]);return w.jsx("div",{className:`-mx-2 mt-[-10px] rounded-md transition duration-200 ${n?"cursor-default":"cursor-pointer"}`,children:w.jsxs("div",{className:"relative w-full",onClick:p,children:[w.jsx("div",{className:"pr-[1px] font-sans leading-normal dark:text-neutral-300",children:w.jsx("div",{className:`relative mb-7 w-full pl-[40px] transition-[padding] delay-100 duration-150 sm:pl-[44px] ${o&&"pl-0"} ${u}`,children:s})}),w.jsxs("div",{className:"absolute left-0 top-1 flex h-11 w-full items-start justify-start sm:h-12",children:[w.jsx("div",{className:"pointer-events-none mr-2 grow-0 sm:mr-3",children:w.jsx(Bl,{member:i})}),w.jsx("div",{className:"grow-1 mt-0.5 w-full",children:w.jsx(JC,{editExpertise:f,editName:m,expertise:c,name:l,replyingToId:r==null?void 0:r.in_reply_to_id,replyingToText:r==null?void 0:r.in_reply_to_snippet,show:n})})]})]})})},YC=({comment:t,openForm:e,parent:n})=>{const{dispatchAction:o,t:r}=B(),s=S.useMemo(()=>({placeholder:r("Edit this comment"),autofocus:!1,content:t.html}),[t]),{editor:i}=Am(s);S.useEffect(()=>{i&&i.chain().focus().command(({tr:c,commands:u})=>u.setTextSelection({from:c.doc.content.size,to:c.doc.content.size})).run()},[i]);const a=S.useCallback(async({html:c})=>{await o("editComment",{comment:{id:t.id,html:c},parent:n})},[n,t,o]),l=S.useCallback(()=>{o("closeCommentForm",e.id)},[o,e]);return w.jsx("div",{className:"relative w-full",children:w.jsx(Dm,{close:l,comment:t,editor:i,isOpen:!0,openForm:e,reduced:Zs(),submit:a,submitSize:"small",submitText:r("Save")})})},KC=t=>S.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"black",...t},S.createElement("path",{d:"M8.00025 13.8739L2.46073 8.09636C1.97388 7.60989 1.65255 6.98248 1.54231 6.30312C1.43208 5.62376 1.53853 4.92694 1.84658 4.31148V4.31148C2.07887 3.84703 2.41819 3.44443 2.83659 3.13684C3.25499 2.82925 3.74049 2.62547 4.25308 2.54231C4.76567 2.45914 5.29069 2.49896 5.78488 2.65849C6.27906 2.81802 6.72827 3.09269 7.09549 3.45987L8.00025 4.36406L8.90502 3.45987C9.27224 3.09269 9.72145 2.81802 10.2156 2.65849C10.7098 2.49896 11.2348 2.45914 11.7474 2.54231C12.26 2.62547 12.7455 2.82925 13.1639 3.13684C13.5823 3.44443 13.9216 3.84703 14.1539 4.31148C14.4616 4.9267 14.5678 5.62311 14.4577 6.30208C14.3476 6.98105 14.0267 7.60817 13.5404 8.09462L8.00025 13.8739Z",strokeWidth:1.3,strokeLinecap:"round",strokeLinejoin:"round"})),WC=({comment:t})=>{const{dispatchAction:e,member:n,commentsEnabled:o}=B(),[r,s]=S.useState(""),[i,a]=S.useState(!1),l=o==="paid",c=n&&!!n.paid,u=n&&(c||!l),d=async()=>{if(!u){e("openPopup",{type:"ctaPopup"});return}t.liked?(a(!0),await e("unlikeComment",t),a(!1)):(a(!0),await e("likeComment",t),s("animate-heartbeat"),setTimeout(()=>{s("")},400),a(!1))};return w.jsxs("button",{className:`duration-50 group flex cursor-pointer items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${t.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:i,type:"button",onClick:d,children:[w.jsx(KC,{className:r+` mr-[6px] ${t.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"} ${!t.liked&&u&&"group-hover:stroke-black/75 dark:group-hover:stroke-white/75"} transition duration-50 ease-linear`}),t.count.likes]})},Ew=({comment:t,close:e})=>{const{dispatchAction:n,t:o}=B(),r=()=>{n("hideComment",t),e()},s=()=>{n("showComment",t),e()},i=t.status!=="published";return w.jsx("div",{className:"flex w-full flex-col gap-0.5",children:i?w.jsxs("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700","data-testid":"show-button",type:"button",onClick:s,children:[w.jsx("span",{className:"hidden sm:inline",children:o("Show comment")}),w.jsx("span",{className:"sm:hidden",children:o("Show")})]}):w.jsxs("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] text-red-600 transition-colors hover:bg-neutral-100 dark:text-red-500 dark:hover:bg-neutral-700","data-testid":"hide-button",type:"button",onClick:r,children:[w.jsx("span",{className:"hidden sm:inline",children:o("Hide comment")}),w.jsx("span",{className:"sm:hidden",children:o("Hide")})]})})},qC=({comment:t,close:e,toggleEdit:n})=>{const{dispatchAction:o,t:r}=B(),s=()=>{o("openPopup",{type:"deletePopup",comment:t}),e()};return w.jsxs("div",{className:"flex w-full flex-col gap-0.5",children:[w.jsx("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700","data-testid":"edit",type:"button",onClick:n,children:r("Edit")}),w.jsx("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] text-red-600 transition-colors hover:bg-neutral-100 dark:text-red-500 dark:hover:bg-neutral-700","data-testid":"delete",type:"button",onClick:s,children:r("Delete")})]})},GC=({comment:t,close:e})=>{const{dispatchAction:n,t:o}=B(),r=()=>{n("openPopup",{type:"reportPopup",comment:t}),e()};return w.jsx("div",{className:"flex w-full flex-col gap-0.5",children:w.jsxs("button",{className:"w-full rounded px-2.5 py-1.5 text-left text-[14px] transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700",type:"button",onClick:r,children:[w.jsx("span",{className:"hidden sm:inline",children:o("Report comment")}),w.jsx("span",{className:"sm:hidden",children:o("Report")})]})})},QC=({comment:t,close:e,toggleEdit:n})=>{var d;const{member:o,admin:r}=B(),s=o&&((d=t.member)==null?void 0:d.uuid)===(o==null?void 0:o.uuid),i=!!r,a=S.useRef(null),l=S.useRef(null);UC(l,{bottom:{default:"top-0",outOfViewport:"bottom-full mb-6"}}),S.useEffect(()=>{var p,g;const m=()=>{e()};window.addEventListener("click",m,{passive:!0});const f=(g=(p=a.current)==null?void 0:p.ownerDocument)==null?void 0:g.defaultView;return f&&f!==window&&f.addEventListener("click",m,{passive:!0}),()=>{window.removeEventListener("click",m,{passive:!0}),f&&f!==window&&f.removeEventListener("click",m,{passive:!0})}},[e]),S.useEffect(()=>{const m=f=>{f.key==="Escape"&&e()};return window.addEventListener("keydown",m,{passive:!0}),()=>{window.removeEventListener("keydown",m,{passive:!0})}},[e]);const c=m=>{m.stopPropagation()};let u=null;if(t.status==="published")s?u=w.jsx(qC,{close:e,comment:t,toggleEdit:n}):i?u=w.jsx(Ew,{close:e,comment:t}):u=w.jsx(GC,{close:e,comment:t});else if(i)u=w.jsx(Ew,{close:e,comment:t});else return null;return w.jsx("div",{ref:a,className:"relative","data-testid":"comment-context-menu",onClick:c,children:w.jsx("div",{ref:l,className:"absolute z-10 min-w-min whitespace-nowrap rounded bg-white p-1 font-sans text-sm shadow-lg outline-0 sm:min-w-[80px] dark:bg-neutral-800 dark:text-white","data-testid":"comment-context-menu-inner",children:u})})},ZC=t=>S.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"black",xmlns:"http://www.w3.org/2000/svg",...t},S.createElement("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"}),S.createElement("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"}),S.createElement("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"})),Rm=({comment:t,toggleEdit:e})=>{const[n,o]=S.useState(!1),{member:r,admin:s}=B(),i=!!s,a=()=>{o(u=>!u)},l=()=>{o(!1)};return!!r&&t.status==="published"||i?w.jsxs("div",{"data-testid":"more-button",children:[w.jsx("button",{className:"outline-0",type:"button",onClick:a,children:w.jsx(ZC,{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?w.jsx(QC,{close:l,comment:t,toggleEdit:e}):null]}):null},XC=({loadMore:t,count:e})=>{const{t:n}=B(),o=e===1?n("Show 1 more reply"):n("Show {amount} more replies",{amount:Qs(e)}),r=n("{amount} more",{amount:Qs(e)});return w.jsx("div",{className:"flex w-full items-center justify-start","data-testid":"replies-pagination",children:w.jsx("button",{className:"text-md group mb-10 ml-[48px] flex w-auto items-center px-0 pb-2 pt-0 text-left font-sans font-semibold text-neutral-700 sm:mb-12 dark:text-white ","data-testid":"reply-pagination-button",type:"button",onClick:t,children:w.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:["↓ ",w.jsx("span",{className:"ml-1 hidden sm:inline",children:o}),w.jsx("span",{className:"ml-1 inline sm:hidden",children:r})," "]})})})},eN=({comment:t})=>{const{dispatchAction:e}=B(),n=t.count.replies-t.replies.length,o=()=>{e("loadMoreReplies",{comment:t})};return w.jsxs("div",{children:[t.replies.map(r=>w.jsx(Cw,{comment:r,parent:t},r.id)),n>0&&w.jsx(XC,{count:n,loadMore:o})]})},tN=t=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"black",width:16,height:16,viewBox:"0 0 16 16",...t},S.createElement("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"})),nN=({disabled:t,isReplying:e,openReplyForm:n})=>{const{member:o,t:r,dispatchAction:s,commentsEnabled:i}=B(),a=i==="paid",l=o&&!!o.paid,c=o&&(l||!a),u=()=>{if(!c){s("openPopup",{type:"ctaPopup"});return}n()};return w.jsxs("button",{className:`duration-50 group flex items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${e?"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:u,children:[w.jsx(tN,{className:`mr-[6px] ${e?"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`}),r("Reply")]})},oN=({openForm:t,parent:e})=>{const{postId:n,dispatchAction:o,t:r}=B(),[,s]=FC(df),i=S.useMemo(()=>({placeholder:r("Reply to comment"),autofocus:!0}),[]),{editor:a}=Am(i),l=S.useCallback(async({html:d})=>{await o("addReply",{parent:e,reply:{post_id:n,in_reply_to_id:t.in_reply_to_id,status:"published",html:d}})},[e,n,t,o]),c=S.useCallback(()=>{o("closeCommentForm",t.id)},[o,t]),u=w.jsxs(w.Fragment,{children:[w.jsx("span",{className:"hidden sm:inline",children:r("Add reply")}),w.jsx("span",{className:"sm:hidden",children:r("Reply")})]});return w.jsx("div",{ref:s,"data-testid":"reply-form",children:w.jsx("div",{className:"mt-[-16px] pr-2",children:w.jsx(kw,{comment:e,editor:a,isOpen:!0,openForm:t,reduced:Zs(),children:w.jsx(Dm,{close:c,editor:a,isOpen:!0,openForm:t,reduced:Zs(),submit:l,submitSize:"medium",submitText:u})})})})},Cw=({comment:t,parent:e})=>{const{commentsIsLoading:n}=B();return w.jsx(uo,{className:`${n?"animate-pulse":""}`,"data-testid":"animated-comment",enter:"transition-opacity duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",id:t.id,leave:"transition-opacity duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:!0,appear:!0,children:w.jsx(rN,{comment:t,parent:e})})},rN=({comment:t,parent:e})=>{const{dispatchAction:n,admin:o}=B(),{showDeletedMessage:r,showHiddenMessage:s,showCommentContent:i}=sN(t,o),a=S.useCallback(()=>{const l={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};n("openCommentForm",l)},[t.id,n]);return r||s?w.jsx(aN,{comment:t,openEditMode:a}):i&&!s?w.jsx(iN,{comment:t,openEditMode:a,parent:e}):null},sN=(t,e)=>{const n=t.replies&&t.replies.length>0,o=t.status==="deleted",r=t.status==="hidden";return{showDeletedMessage:o&&n,showHiddenMessage:n&&r&&!e,showCommentContent:!o&&(e||t.status==="published")}},iN=({comment:t,parent:e,openEditMode:n})=>{var y;const{dispatchAction:o,openCommentForms:r,admin:s,commentIdToHighlight:i}=B(),l=s&&t.status==="hidden"?"opacity-30":"",c=r.find(b=>b.id===t.id&&b.type==="edit"),u=!!c,d=r.find(b=>(b.id===t.id||b.parent_id===t.id)&&b.type==="reply"),m=d&&(!d.parent_id||d.parent_id===t.id),f=!!(d&&d.id===t.id),p=S.useCallback(async()=>{if(d&&d.id===t.id)o("closeCommentForm",d.id);else{const b={};e&&(b.in_reply_to_id=t.id,b.in_reply_to_snippet=Db(t));const $={id:t.id,parent_id:e==null?void 0:e.id,type:"reply",hasUnsavedChanges:!1,...b};await o("openCommentForm",$)}},[t,e,d,o]),g=m||t.replies&&t.replies.length>0,h=w.jsx(Bl,{member:t.member});return w.jsxs(Rw,{avatar:h,className:l,hasReplies:g,memberUuid:(y=t.member)==null?void 0:y.uuid,children:[w.jsx("div",{children:u?w.jsxs(w.Fragment,{children:[w.jsx(Dw,{className:l,comment:t}),w.jsx(YC,{comment:t,openForm:c,parent:e})]}):w.jsxs(w.Fragment,{children:[w.jsx(Dw,{className:l,comment:t}),w.jsx(mN,{className:l,html:t.html,isHighlighted:t.id===i}),w.jsx(fN,{comment:t,highlightReplyButton:f,openEditMode:n,openReplyForm:p,parent:e})]})}),w.jsx(Nw,{comment:t}),m&&w.jsx(Aw,{comment:t,openForm:d})]})},aN=({comment:t,openEditMode:e})=>{const{admin:n,openCommentForms:o,t:r}=B(),s=n&&t.status!=="deleted"?w.jsx(Bl,{member:t.member}):w.jsx(ff,{}),i=t.replies&&t.replies.length>0,a=t.status==="hidden"?r("This comment has been hidden."):t.status==="deleted"?r("This comment has been removed."):"",l=o.find(d=>(d.id===t.id||d.parent_id===t.id)&&d.type==="reply"),c=l&&(!l.parent_id||l.parent_id===t.id),u=n&&t.status==="hidden";return w.jsxs(Rw,{avatar:s,hasReplies:i,children:[w.jsx("div",{className:"mt-[-3px] flex items-start",children:w.jsxs("div",{className:"flex h-10 flex-row items-center gap-4 pb-[8px] pr-4",children:[w.jsx("p",{className:"text-md mt-[4px] font-sans leading-normal text-neutral-900/40 sm:text-lg dark:text-white/60",children:a}),u&&w.jsx("div",{className:"mt-[4px]",children:w.jsx(Rm,{comment:t,toggleEdit:e})})]})}),w.jsx(Nw,{comment:t}),c&&w.jsx(Aw,{comment:t,openForm:l})]})},lN=({comment:t})=>{var o;const{member:e}=B(),n=e&&t.member&&t.member.uuid===e.uuid?e.expertise:(o=t==null?void 0:t.member)==null?void 0:o.expertise;return n?w.jsxs("span",{className:"[overflow-wrap:anywhere]",children:[w.jsx("span",{className:"mx-[0.3em] hidden sm:inline-block",children:"·"}),n]}):null},cN=({comment:t})=>{const{t:e}=B();return t.edited_at?w.jsxs("span",{children:[" (",e("edited"),")"]}):null},Nw=({comment:t,className:e=""})=>t.replies&&t.replies.length>0?w.jsx("div",{className:`-ml-2 mb-4 mt-7 sm:mb-0 sm:mt-8 ${e}`,children:w.jsx(eN,{comment:t})}):null,Aw=({comment:t,openForm:e})=>w.jsx("div",{className:"my-8 sm:my-10",children:w.jsx(oN,{openForm:e,parent:t})}),uN=({comment:t})=>{const{t:e}=B(),n=Nb(t,e);return w.jsx("h4",{className:"font-sans text-base font-bold leading-snug text-neutral-900 sm:text-sm dark:text-white/85",children:n})},dN=({comment:t})=>{const{comments:e,dispatchAction:n,t:o}=B(),r=xb(e,t.in_reply_to_id),s=c=>{if(c.preventDefault(),!c.target)return;const u=c.target.ownerDocument.getElementById(t.in_reply_to_id);u&&(n("highlightComment",{commentId:t.in_reply_to_id}),u.scrollIntoView({behavior:"smooth",block:"center"}))};let i=t.in_reply_to_snippet;(!r||r.status!=="published")&&(i=`[${o("removed")}]`);const a=r&&r.status==="published",l="font-medium text-neutral-900/60 break-all transition-colors dark:text-white/70";return a?w.jsx("a",{className:`${l} hover:text-neutral-900/75 dark:hover:text-white/85`,"data-testid":"comment-in-reply-to",href:`#${t.in_reply_to_id}`,onClick:s,children:i}):w.jsx("span",{className:l,"data-testid":"comment-in-reply-to",children:i})},Dw=({comment:t,className:e=""})=>{var a;const{member:n,t:o}=B(),r=VC(t.created_at),s=n&&t.member&&t.member.uuid===n.uuid?n.expertise:(a=t==null?void 0:t.member)==null?void 0:a.expertise,i=t.in_reply_to_id&&t.in_reply_to_snippet;return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:`mt-0.5 flex flex-wrap items-start sm:flex-row ${s?"flex-col":"flex-row"} ${i?"mb-0.5":"mb-2"} ${e}`,children:[w.jsx(uN,{comment:t}),w.jsx("div",{className:"flex items-baseline pr-4 font-sans text-base leading-snug text-neutral-900/50 sm:text-sm dark:text-white/60",children:w.jsxs("span",{children:[w.jsx(lN,{comment:t}),w.jsxs("span",{title:Eb(t.created_at),children:[w.jsx("span",{className:"mx-[0.3em]",children:"·"}),r]}),w.jsx(cN,{comment:t})]})})]}),i&&w.jsxs("div",{className:"mb-2 line-clamp-1 font-sans text-base leading-snug text-neutral-900/50 sm:text-sm dark:text-white/60",children:[w.jsx("span",{children:o("Replied to")}),": ",w.jsx(dN,{comment:t})]})]})},mN=({html:t,className:e="",isHighlighted:n})=>{let o=t;if(n){const i=new DOMParser().parseFromString(t,"text/html");i.querySelectorAll("p").forEach(l=>{const c=i.createElement("mark");for(c.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";l.firstChild;)c.appendChild(l.firstChild);l.appendChild(c)}),o=i.body.innerHTML}const r={__html:o};return w.jsx("div",{className:`mt mb-2 flex flex-row items-center gap-4 pr-4 ${e}`,children:w.jsx("p",{dangerouslySetInnerHTML:r,className:"gh-comment-content text-md -mx-1 text-pretty rounded-md px-1 font-sans leading-normal text-neutral-900 [overflow-wrap:anywhere] sm:text-lg dark:text-white/85","data-testid":"comment-content"})})},fN=({comment:t,openReplyForm:e,highlightReplyButton:n,openEditMode:o,className:r=""})=>{const{admin:s,t:i}=B();return s&&t.status==="hidden"?w.jsxs("div",{className:`flex items-center gap-4 ${r}`,children:[w.jsx("span",{className:"font-sans text-base leading-snug text-red-600 sm:text-sm",children:i("Hidden for members")}),w.jsx(Rm,{comment:t,toggleEdit:o})]}):w.jsxs("div",{className:`flex items-center gap-4 ${r}`,children:[w.jsx(WC,{comment:t}),w.jsx(nN,{isReplying:n,openReplyForm:e}),w.jsx(Rm,{comment:t,toggleEdit:o})]})},pN=({hasReplies:t})=>t?w.jsx("div",{className:"mb-2 h-full w-px grow rounded bg-gradient-to-b from-neutral-900/15 from-70% to-transparent dark:from-white/20 dark:from-70%","data-testid":"replies-line"}):null,Rw=({children:t,avatar:e,hasReplies:n,className:o="",memberUuid:r=""})=>w.jsxs("div",{className:`flex w-full flex-row ${n===!0?"mb-0":"mb-7"}`,"data-member-uuid":r,"data-testid":"comment-component",children:[w.jsxs("div",{className:"mr-2 flex flex-col items-center justify-start sm:mr-3",children:[w.jsx("div",{className:`flex-0 mb-3 sm:mb-4 ${o}`,children:e}),w.jsx(pN,{hasReplies:n})]}),w.jsx("div",{className:"grow",children:t})]}),hN=({showCount:t,count:e})=>{const{t:n}=B();return t?e===1?w.jsx("div",{className:"text-md text-neutral-900/50 sm:text-lg dark:text-white/50","data-testid":"count",children:n("1 comment")}):w.jsx("div",{className:"text-md text-neutral-900/50 sm:text-lg dark:text-white/50","data-testid":"count",children:n("{amount} comments",{amount:Qs(e)})}):null},gN=({title:t})=>{const{t:e}=B();return t===null?w.jsxs(w.Fragment,{children:[w.jsx("span",{className:"sm:hidden",children:e("Discussion")}),w.jsx("span",{className:"hidden sm:inline",children:e("Member discussion")})]}):w.jsx(w.Fragment,{children:t})},yN=({title:t,showCount:e,count:n})=>!t&&!e&&t!==null?null:w.jsxs("div",{className:"mb-7 flex w-full items-baseline justify-between font-sans",children:[w.jsx("h2",{className:"text-[2.2rem] font-bold tracking-tight text-neutral-900 sm:text-2xl dark:text-white","data-testid":"title",children:w.jsx(gN,{title:t})}),w.jsx(hN,{count:n,showCount:e})]}),wN=({commentsCount:t})=>{const{postId:e,dispatchAction:n,t:o}=B(),r=S.useMemo(()=>({placeholder:o(t===0?"Start the conversation":"Join the discussion"),autofocus:!1}),[t]),{editor:s,hasContent:i}=Am(r),a=S.useCallback(async({html:d})=>{await n("addComment",{post_id:e,status:"published",html:d}),s==null||s.commands.clearContent()},[e,n,s]),l=S.useRef(null);S.useEffect(()=>{if(!s)return;const d=m=>{var g;if(!s||m.metaKey||m.ctrlKey)return;let f=document.activeElement;for(;f&&f.tagName==="IFRAME"&&f.contentDocument;)f=((g=f.contentDocument)==null?void 0:g.activeElement)??null;const p=f&&(f.tagName==="INPUT"||f.tagName==="TEXTAREA"||f.tagName==="IFRAME"||f.contentEditable==="true");if(m.key==="c"&&!(s!=null&&s.isFocused)&&!p){s==null||s.commands.focus(),l.current&&df(l.current);return}};return window.addEventListener("keydown",d,{passive:!0}),()=>{window.removeEventListener("keydown",d,{passive:!0})}},[s]);const c={submitText:w.jsxs(w.Fragment,{children:[w.jsxs("span",{className:"hidden sm:inline",children:[o("Add comment")," "]}),w.jsx("span",{className:"sm:hidden",children:o("Comment")})]}),submitSize:"large",submit:a},u=(s==null?void 0:s.isFocused)||i;return w.jsx("div",{ref:l,className:"px-3 pb-2 pt-3","data-testid":"main-form",children:w.jsx(kw,{editor:s,isOpen:u,reduced:!1,children:w.jsx(Dm,{editor:s,isOpen:u,reduced:!1,...c})})})},bN=()=>{const{pagination:t,dispatchAction:e,t:n}=B(),o=()=>{e("loadMoreComments",{})};if(!t)return null;const r=t.total-t.page*t.limit;if(r<=0)return null;const s=n("Load more ({amount})",{amount:Qs(r)});return w.jsx("button",{className:"text-md group mb-10 flex items-center px-0 pb-2 pt-0 text-left font-sans font-semibold text-neutral-700 dark:text-white","data-testid":"pagination-component",type:"button",onClick:o,children:w.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:s})})},_s="ghost-comments-root",$N=t=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},S.createElement("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"})),vN=()=>{var u;const{t}=B(),e=vb(),[n,o]=S.useState(!1),[r,s]=S.useState("count__likes desc, created_at desc"),i=S.useRef(null),a=[{value:"count__likes desc, created_at desc",label:t("Best")},{value:"created_at desc",label:t("Newest")},{value:"created_at asc",label:t("Oldest")}],l=d=>{s(d),e(d),o(!1)};S.useEffect(()=>{var f,p;const d=()=>{o(!1)};window.addEventListener("click",d,{passive:!0});const m=(p=(f=i.current)==null?void 0:f.ownerDocument)==null?void 0:p.defaultView;return m&&m!==window&&m.addEventListener("click",d,{passive:!0}),()=>{window.removeEventListener("click",d,{passive:!0}),m&&m!==window&&m.removeEventListener("click",d,{passive:!0})}},[]);const c=d=>{d.stopPropagation()};return w.jsxs("div",{ref:i,className:"relative z-20","data-testid":"comments-sorting-form",onClick:c,children:[w.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:()=>o(!n),children:[(u=a.find(d=>d.value===r))==null?void 0:u.label,w.jsx("span",{className:"h-2 w-2 stroke-[3px]",children:w.jsx($N,{})})]}),n&&w.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:w.jsx("div",{"aria-labelledby":"options-menu","aria-orientation":"vertical",className:"py-1","data-testid":"comments-sorting-form-dropdown",role:"menu",children:a.map(d=>w.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:()=>l(d.value),children:d.label},d.value))})})]})},SN=()=>{const t=Sb(),{pagination:e,member:n,comments:o,commentCount:r,commentsEnabled:s,title:i,showCount:a,commentsIsLoading:l,t:c}=B();S.useEffect(()=>{const p=document.getElementById(_s);p&&window.location.hash==="#ghost-comments"&&window.scrollY===0&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{p.scrollIntoView()})})},[]);const u=s==="paid",d=n&&!!n.paid,m=(e==null?void 0:e.total)===0,f=o.slice().map(p=>w.jsx(Cw,{comment:p},p.id));return w.jsxs(w.Fragment,{children:[w.jsx(yN,{count:r,showCount:a,title:i}),w.jsx("div",{children:n&&(d||!u)?w.jsx(wN,{commentsCount:o.length}):w.jsx("section",{className:"flex flex-col items-center py-6 sm:px-8 sm:py-10","data-testid":"cta-box",children:w.jsx(lf,{isFirst:m,isPaid:u})})}),r>1&&w.jsx("div",{className:"z-20 mb-7 mt-3",children:w.jsxs("span",{className:"flex items-center gap-1.5 text-sm font-medium text-neutral-900 dark:text-neutral-100",children:[c("Sort by"),": ",w.jsx(vN,{})]})}),w.jsx("div",{className:`z-10 transition-opacity duration-100 ${l?"opacity-50":""}`,"data-testid":"comment-elements",children:f}),w.jsx(bN,{}),t!=null&&t.testFlag?w.jsx("div",{"data-testid":"this-comes-from-a-flag",style:{display:"none"}}):null]})};function xN(){return w.jsx("div",{className:"flex h-32 w-full items-center justify-center","data-testid":"loading",children:w.jsx(Ba,{className:"mb-6 h-12 w-12 fill-neutral-300/80 dark:fill-white/60"})})}const kN=({done:t})=>{const e=(c,u,d)=>{const m=[c,u,d].map(function(f){return f/=255,f<=.03928?f/12.92:Math.pow((f+.055)/1.055,2.4)});return m[0]*.2126+m[1]*.7152+m[2]*.0722},n=(c,u)=>{const d=e(c[0],c[1],c[2]),m=e(u[0],u[1],u[2]),f=Math.max(d,m),p=Math.min(d,m);return(f+.05)/(p+.05)},{accentColor:o,colorScheme:r}=B(),s=S.useCallback(()=>{if(r==="light")return!1;if(r==="dark")return!0;{const c=document.getElementById(_s);if(!c||!c.parentElement)return!1;const u=getComputedStyle(c.parentElement).getPropertyValue("color"),d=u.substring(u.indexOf("(")+1,u.lastIndexOf(")")).split(/,\s*/),m=parseInt(d[0]),f=parseInt(d[1]),p=parseInt(d[2]);return n([255,255,255],[m,f,p])<5}},[r,n]),[i,a]=S.useState(s()?"dark":"");S.useEffect(()=>{a(s()?"dark":"")},[r,s]),S.useEffect(()=>{const c=document.getElementById(_s);if(c!=null&&c.parentElement){const u=new MutationObserver(()=>{a(s()?"dark":"")});return u.observe(c.parentElement,{attributes:!0,attributeFilter:["style","class"]}),()=>{u.disconnect()}}},[s]);const l={"--gh-accent-color":o??"black",paddingTop:0,paddingBottom:24};return w.jsx("section",{className:"ghost-display "+i,"data-loaded":t,"data-testid":"content-box",style:l,children:t?w.jsx(SN,{}):w.jsx(xN,{})})};class EN extends S.Component{constructor(n){super(n);fr(this,"node");fr(this,"iframeHtml");fr(this,"iframeHead");fr(this,"iframeRoot");fr(this,"handleLoad",()=>{this.setupFrameBaseStyle()});this.setNode=this.setNode.bind(this),this.node=null}componentDidMount(){this.node.addEventListener("load",this.handleLoad)}componentWillUnmount(){this.node.removeEventListener("load",this.handleLoad)}setupFrameBaseStyle(){var n,o;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&&((o=(n=new ResizeObserver(r=>{window.requestAnimationFrame(()=>{this.props.onResize(this.iframeRoot)})}))==null?void 0:n.observe)==null||o.call(n,this.iframeRoot)),this.node.contentWindow.addEventListener("keydown",r=>{window.dispatchEvent(new KeyboardEvent("keydown",r))}))}setNode(n){this.node=n,this.props.innerRef&&(this.props.innerRef.current=n)}render(){const{children:n,head:o,title:r="",style:s={},...i}=this.props;return w.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...i,ref:this.setNode,frameBorder:"0",style:s,title:r,children:[this.iframeHead&&_d.createPortal(o,this.iframeHead),this.iframeRoot&&_d.createPortal(n,this.iframeRoot)]})}}const CN=S.forwardRef(function(e,n){return w.jsx(EN,{...e,innerRef:n})}),NN='*,:before,:after{--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: rgb(59 130 246 / .5);--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: }::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: rgb(59 130 246 / .5);--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-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}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;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings: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:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-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{list-style:none;margin:0;padding:0}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{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 481px){.container{max-width:481px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-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}.-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}.-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-8{margin-top:3.2rem;margin-bottom:3.2rem}.-ml-2{margin-left:-.8rem}.mb-0{margin-bottom:0}.mb-0\\.5{margin-bottom:.2rem}.mb-1{margin-bottom:.4rem}.mb-1\\.5{margin-bottom:.6rem}.mb-10{margin-bottom:4rem}.mb-2{margin-bottom:.8rem}.mb-3{margin-bottom:1.2rem}.mb-4{margin-bottom:1.6rem}.mb-6{margin-bottom:2.4rem}.mb-7{margin-bottom:2.8rem}.mb-\\[12px\\]{margin-bottom:12px}.mb-\\[28px\\]{margin-bottom:28px}.mb-\\[8px\\]{margin-bottom:8px}.ml-1{margin-left:.4rem}.ml-2\\.5{margin-left:1rem}.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-7{margin-top:2.8rem}.mt-8{margin-top:3.2rem}.mt-\\[-10px\\]{margin-top:-10px}.mt-\\[-16px\\]{margin-top:-16px}.mt-\\[-1px\\]{margin-top:-1px}.mt-\\[-3px\\]{margin-top:-3px}.mt-\\[4px\\]{margin-top:4px}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.contents{display:contents}.hidden{display:none}.h-10{height:4rem}.h-11{height:4.4rem}.h-12{height:4.8rem}.h-2{height:.8rem}.h-32{height:12.8rem}.h-5{height:2rem}.h-7{height:2.8rem}.h-8{height:3.2rem}.h-\\[12px\\]{height:12px}.h-\\[16px\\]{height:16px}.h-\\[24px\\]{height:24px}.h-\\[40px\\]{height:40px}.h-\\[42px\\]{height:42px}.h-\\[44px\\]{height:44px}.h-full{height:100%}.h-screen{height:100vh}.min-h-\\[120px\\]{min-height:120px}.w-10{width:4rem}.w-12{width:4.8rem}.w-2{width:.8rem}.w-36{width:14.4rem}.w-5{width:2rem}.w-7{width:2.8rem}.w-8{width:3.2rem}.w-\\[12px\\]{width:12px}.w-\\[16px\\]{width:16px}.w-\\[24px\\]{width:24px}.w-\\[50\\%\\]{width:50%}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.min-w-min{min-width:min-content}.grow{flex-grow:1}.grow-0{flex-grow:0}.origin-top-right{transform-origin:top right}.-translate-x-2{--tw-translate-x: -.8rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(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)) skew(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)) skew(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)) skew(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)) skew(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)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes highlight{to{background-color:transparent}}.animate-\\[highlight_2\\.5s_ease-out\\]{animation:highlight 2.5s ease-out}@keyframes heartbeat{0%,to{transform:scale(1)}50%{transform:scale(1.3)}}.animate-heartbeat{animation:heartbeat .35s ease-in-out forwards}.animate-pulse{animation:pulse 1.5s cubic-bezier(.4,0,.6,1) infinite}.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}.gap-0\\.5{gap:.2rem}.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)))}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.text-pretty{text-wrap:pretty}.break-all{word-break:break-all}.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-black\\/10{border-color:#0000001a}.border-neutral-200{--tw-border-opacity: 1;border-color:rgb(229 229 229 / 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-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: rgba(0,0,0,.2) var(--tw-gradient-from-position);--tw-gradient-to: rgba(0, 0, 0, 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-neutral-900\\/15{--tw-gradient-from: rgb(23 23 23 / .15) var(--tw-gradient-from-position);--tw-gradient-to: rgb(23 23 23 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-70\\%{--tw-gradient-from-position: 70%}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.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-2\\.5{padding-left:1rem;padding-right:1rem}.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-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-\\[68px\\]{padding-bottom:68px}.pb-\\[8px\\]{padding-bottom:8px}.pl-0{padding-left:0}.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}.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-\\[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}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.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-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\\/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: rgba(0, 0, 0, .06) 0px 0px 0px 1px, rgba(0, 0, 0, .04) 0px 2px 2px -1px, rgba(0, 0, 0, .04) 0px 3px 3px -1px, rgba(0, 0, 0, .03) 0px 5px 5px -2px, rgba(0, 0, 0, .03) 0px 10px 10px -3px, rgba(0, 0, 0, .03) 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 rgba(0, 0, 0, .028), 0 9.2px 5.3px rgba(0, 0, 0, .04), 0 17.3px 10px rgba(0, 0, 0, .05), 0 30.8px 17.9px rgba(0, 0, 0, .06), 0 57.7px 33.4px rgba(0, 0, 0, .072), 0 138px 80px rgba(0, 0, 0, .1);--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:0px}.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;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[border-color\\]{transition-property:border-color;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[opacity\\]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[padding\\]{transition-property:padding;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-none{transition-property:none}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.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}.\\[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:" "}.gh-comment-content a{word-break:break-word;text-decoration:underline;color:var(--gh-accent-color)}.gh-comment-content blockquote{border-left:3px solid var(--gh-accent-color);padding-left:1rem;margin:0 0 1.2rem}.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;height:0;pointer-events:none;--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity))}.ProseMirror *{white-space:pre-wrap;word-wrap:break-word}[contenteditable]:focus{outline:0px solid transparent}.ghost-display{display:block!important}.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\\/75:hover{color:#171717bf}.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:0px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.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)) skew(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-100{opacity:1}.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\\:from-white\\/20:is(.dark *){--tw-gradient-from: rgb(255 255 255 / .2) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\\:from-70\\%:is(.dark *){--tw-gradient-from-position: 70%}.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-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\\/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\\: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\\/75:hover:is(.dark *){color:#ffffffbf}.dark\\:hover\\:text-white\\/85:hover:is(.dark *){color:#ffffffd9}.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 (min-width: 481px){.sm\\:bottom-2{bottom:.8rem}.sm\\:right-2{right:.8rem}.sm\\:right-8{right:3.2rem}.sm\\:top-9{top:3.6rem}.sm\\:my-10{margin-top:4rem;margin-bottom:4rem}.sm\\:mb-0{margin-bottom:0}.sm\\:mb-12{margin-bottom:4.8rem}.sm\\:mb-4{margin-bottom:1.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-\\[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\\:min-w-\\[80px\\]{min-width:80px}.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\\: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}}',Ow=_.forwardRef(function({children:e,onResize:n,style:o,title:r},s){const i=w.jsxs(w.Fragment,{children:[w.jsx("style",{dangerouslySetInnerHTML:{__html:NN}}),w.jsx("meta",{content:"width=device-width, initial-scale=1.0, maximum-scale=1.0",name:"viewport"})]});return w.jsx(CN,{ref:s,head:i,style:o,title:r,onResize:n,children:e})}),AN=_.forwardRef(function({children:e,style:n,title:o},r){const[s,i]=S.useState(n),a=S.useCallback(l=>{i(c=>({...c,height:`${l.scrollHeight}px`}))},[]);return w.jsx(Ow,{ref:r,style:s,title:o,onResize:a,children:e})}),DN=_.forwardRef(function({children:e},n){const o={width:"100%",height:"400px"};return w.jsx(AN,{ref:n,style:o,title:"comments-frame",children:e})}),RN=({children:t,title:e})=>{const n={zIndex:"3999999",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",overflow:"hidden"};return w.jsx(Ow,{style:n,title:e,children:t})},ON=({show:t,children:e,title:n,callback:o})=>{const{dispatchAction:r}=B(),s=()=>{r("closePopup",{}),o&&o(!1)};return S.useEffect(()=>{const i=a=>{a.key==="Escape"&&s()};return window.addEventListener("keydown",i,{passive:!0}),()=>{window.removeEventListener("keydown",i,{passive:!0})}}),w.jsx(uo,{appear:!0,show:t,children:w.jsx(RN,{title:n,children:w.jsx("div",{children:w.jsx(uo.Child,{enter:"transition duration-200 linear",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition duration-200 linear",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:w.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:s,children:w.jsx(uo.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:e})})})})})})},TN=t=>S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"gh-portal-closeicon",alt:"Close",...t},S.createElement("defs",null,S.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px !important;}")),S.createElement("path",{className:"a",d:"M.75 23.249l22.5-22.5M23.25 23.249L.75.749"})),xl=({close:t})=>w.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:t,children:w.jsx(TN,{className:"h-5 w-5 p-1 pr-0"})}),MN=t=>{const e=S.useRef(null),n=S.useRef(null),{dispatchAction:o,member:r,accentColor:s,t:i}=B(),[a,l]=S.useState(r.name??""),[c,u]=S.useState(r.expertise??""),d=50;let m=d;r.expertise&&(m-=r.expertise.length);const[f,p]=S.useState(m),[g,h]=S.useState({name:"",expertise:""}),y=x=>{x.stopPropagation()},b=x=>{o("closePopup",{}),t.callback(x)},$=async()=>{var x;a.trim()!==""?(await o("updateMember",{name:a,expertise:c}),b(!0)):(h({name:i("Enter your name"),expertise:""}),l(""),(x=e.current)==null||x.focus())};S.useEffect(()=>{if(!Zs()){const x=setTimeout(()=>{var C,O;t.expertiseAutofocus?(C=n.current)==null||C.focus():(O=e.current)==null||O.focus()},200);return()=>{clearTimeout(x)}}},[e,n,t.expertiseAutofocus]);const v=()=>{const x=E=>w.jsx(uo,{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:w.jsxs("div",{className:"flex flex-row items-center justify-start gap-3 pr-4",children:[w.jsx("div",{className:"h-10 w-10 rounded-full border-2 border-white bg-cover bg-no-repeat",style:{backgroundImage:`url(${E.avatar})`}}),w.jsxs("div",{className:"flex flex-col items-start justify-center",children:[w.jsx("div",{className:"font-sans text-base font-semibold tracking-tight text-white",children:E.name}),w.jsx("div",{className:"font-sans text-sm tracking-tight text-neutral-400",children:E.expertise})]})]})},E.name),C=[],O=[{avatar:"https://randomuser.me/api/portraits/men/32.jpg",name:"James Fletcher",expertise:i("Full-time parent")},{avatar:"https://randomuser.me/api/portraits/women/30.jpg",name:"Naomi Schiff",expertise:i("Founder @ Acme Inc")},{avatar:"https://randomuser.me/api/portraits/men/4.jpg",name:"Franz Tost",expertise:i("Neurosurgeon")},{avatar:"https://randomuser.me/api/portraits/women/51.jpg",name:"Katrina Klosp",expertise:i("Local resident")}];for(let E=0;E<O.length;E++)C.push(x(O[E]));return C},k=af(i("{amount} characters left"),"{amount}",()=>w.jsx("b",{children:f}));return w.jsx("div",{className:"shadow-modal relative h-screen w-screen overflow-hidden rounded-none bg-white p-[28px] text-center sm:h-auto sm:w-[720px] sm:rounded-xl sm:p-0","data-testid":"profile-modal",onMouseDown:y,children:w.jsxs("div",{className:"flex",children:[w.jsx("div",{className:"hidden w-[50%] flex-col items-center justify-center bg-neutral-800 sm:block sm:p-8",children:w.jsx("div",{className:"mt-[-1px] flex flex-col gap-9 text-left",children:v()})}),w.jsxs("div",{className:"p-0 sm:p-8",children:[w.jsxs("h1",{className:"mb-1 text-center font-sans text-2xl font-bold tracking-tight text-black sm:text-left",children:[i("Complete your profile"),w.jsx("span",{className:"hidden sm:inline",children:"."})]}),w.jsx("p",{className:"text-md pr-0 text-center font-sans leading-snug text-neutral-500 sm:pr-10 sm:text-left",children:i("Add context to your comment, share your name and expertise to foster a healthy discussion.")}),w.jsxs("section",{className:"mt-8 text-left",children:[w.jsxs("div",{className:"mb-2 flex flex-row justify-between",children:[w.jsx("label",{className:"font-sans text-base font-semibold",htmlFor:"comments-name",children:i("Name")}),w.jsx(uo,{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:w.jsx("div",{className:"font-sans text-sm text-red-500",children:g.name})})]}),w.jsx("input",{ref:e,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:i("Jamie Larson"),type:"text",value:a,onChange:x=>{l(x.currentTarget.value)},onKeyDown:x=>{x.key==="Enter"&&(l(x.currentTarget.value),$().catch(console.error))}}),w.jsxs("div",{className:"mb-2 mt-6 flex flex-row justify-between",children:[w.jsx("label",{className:"font-sans text-base font-semibold",htmlFor:"comments-name",children:i("Expertise")}),w.jsx("div",{className:`font-sans text-base text-neutral-400 ${f===0&&"text-red-500"}`,children:k})]}),w.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:d,name:"expertise",placeholder:i("Head of Marketing at Acme, Inc"),type:"text",value:c,onChange:x=>{const C=x.currentTarget.value;p(d-C.length),u(C)},onKeyDown:x=>{x.key==="Enter"&&(u(x.currentTarget.value),$().catch(console.error))}}),w.jsx("button",{className:"text-md mt-10 flex h-[42px] w-full items-center justify-center rounded-md px-8 font-sans font-semibold text-white opacity-100 transition-opacity duration-200 ease-linear hover:opacity-90","data-testid":"save-button",style:{backgroundColor:s??"#000000"},type:"button",onClick:()=>{$().catch(console.error)},children:i("Save")})]})]}),w.jsx(xl,{close:()=>b(!1)})]})})},jN=()=>{const{dispatchAction:t,member:e,commentsEnabled:n}=B(),o=a=>{a.stopPropagation()},r=()=>{t("closePopup",{})},s=n==="paid",i=!e;return w.jsx("div",{className:"shadow-modal relative h-screen w-screen rounded-none bg-white p-[28px] text-center sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left",onClick:r,onMouseDown:o,children:w.jsxs("div",{className:"flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0",children:[w.jsx("div",{className:"flex flex-col items-center pb-3 pt-6","data-testid":"cta-box",children:w.jsx(lf,{isFirst:i,isPaid:s})}),w.jsx(xl,{close:r})]})})},Tw=t=>S.createElement("svg",{width:"26px",height:"26px",viewBox:"-1 -1 26 26",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...t},S.createElement("g",{id:"check-circle",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},S.createElement("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}))),PN={addDetailsPopup:MN,reportPopup:({comment:t})=>{const{dispatchAction:e,t:n}=B(),[o,r]=S.useState("default");let s="bg-red-600";o==="sent"&&(s="bg-green-600");let i=n("Report");const a=i;o==="sending"?i=n("Sending"):o==="sent"&&(i=n("Sent"));const l=w.jsx(Ba,{className:"mr-2 h-[24px] w-[24px] fill-white"}),c=w.jsx(Tw,{className:"mr-2 h-[16px] w-[16px]"});let u=null;o==="sending"?u=l:o==="sent"&&(u=c);const d=p=>{p.stopPropagation()},m=()=>{e("closePopup",{})},f=p=>{p.stopPropagation(),r("sending"),setTimeout(()=>{r("sent"),e("reportComment",t),setTimeout(()=>{m()},750)},1e3)};return w.jsx("div",{className:"shadow-modal relative h-screen w-screen rounded-none bg-white p-[28px] text-center sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left",onMouseDown:d,children:w.jsxs("div",{className:"flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0",children:[w.jsx("h1",{className:"mb-1.5 font-sans text-[2.2rem] font-bold tracking-tight text-black",children:w.jsx("span",{children:n("Report this comment?")})}),w.jsx("p",{className:"text-md px-4 font-sans leading-9 text-black sm:pl-0 sm:pr-4",children:n("Your request will be sent to the owner of this site.")}),w.jsxs("div",{className:"mt-auto flex flex-col items-center justify-start gap-4 sm:mt-8 sm:flex-row",children:[w.jsxs("button",{className:`text-md flex h-[44px] w-full items-center justify-center rounded-md px-4 font-sans font-medium text-white transition duration-200 ease-linear sm:w-fit ${s} opacity-100 hover:opacity-90`,style:{backgroundColor:s??"#000000"},type:"button",onClick:f,children:[w.jsxs("span",{className:"invisible whitespace-nowrap",children:[a,w.jsx("br",{}),w.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[l,n("Sending")]}),w.jsx("br",{}),w.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[c,n("Sent")]})]}),w.jsxs("span",{className:"absolute flex h-[44px] items-center justify-center whitespace-nowrap",children:[u,i]})]}),w.jsx("button",{className:"text-md h-[44px] w-full px-2 font-sans font-medium text-neutral-500 sm:w-fit dark:text-neutral-400",type:"button",onClick:m,children:n("Cancel")})]}),w.jsx(xl,{close:m})]})})},ctaPopup:jN,deletePopup:({comment:t})=>{const{dispatchAction:e,t:n}=B(),[o,r]=S.useState("default"),[s,i]=S.useState(!1);let a="bg-red-600";o==="sent"&&(a="bg-green-600");let l=n("Delete");const c=l;o==="sending"?l=n("Deleting"):o==="sent"&&(l=n("Deleted"));const u=w.jsx(Ba,{className:"mr-2 h-[24px] w-[24px] fill-white"}),d=w.jsx(Tw,{className:"mr-2 h-[16px] w-[16px]"});let m=null;o==="sending"?m=u:o==="sent"&&(m=d);const f=h=>{h.stopPropagation()},p=()=>{e("closePopup",{})},g=h=>{h.stopPropagation(),!s&&(i(!0),r("sending"),setTimeout(()=>{r("sent"),e("deleteComment",t),setTimeout(()=>{p()},750)},1e3))};return w.jsx("div",{className:"shadow-modal relative h-screen w-screen rounded-none bg-white p-[28px] text-center sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left","data-testid":"delete-popup",onMouseDown:f,children:w.jsxs("div",{className:"flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0",children:[w.jsx("h1",{className:"mb-1.5 font-sans text-[2.2rem] font-bold tracking-tight text-black",children:w.jsx("span",{children:n("Are you sure?")})}),w.jsx("p",{className:"text-md px-4 font-sans leading-9 text-black sm:pl-0 sm:pr-4",children:n("Once deleted, this comment cant be recovered.")}),w.jsxs("div",{className:"mt-auto flex flex-col items-center justify-start gap-4 sm:mt-8 sm:flex-row",children:[w.jsxs("button",{className:`text-md flex h-[44px] w-full items-center justify-center rounded-md px-4 font-sans font-medium text-white transition duration-200 ease-linear sm:w-fit ${a} opacity-100 hover:opacity-90`,"data-testid":"delete-popup-confirm",disabled:s,type:"button",onClick:g,children:[w.jsxs("span",{className:"invisible whitespace-nowrap",children:[c,w.jsx("br",{}),w.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[u,n("Deleting")]}),w.jsx("br",{}),w.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[d,n("Deleted")]})]}),w.jsxs("span",{className:"absolute flex h-[44px] items-center justify-center whitespace-nowrap",children:[m,l]})]}),w.jsx("button",{className:"text-md h-[44px] w-full px-2 font-sans font-medium text-neutral-500 sm:w-fit dark:text-neutral-400",type:"button",onClick:p,children:n("Cancel")})]}),w.jsx(xl,{close:p})]})})}},LN=()=>{const{popup:t}=B(),[e,n]=S.useState(t);if(S.useEffect(()=>{if(t!==null&&n(t),t===null){const a=setTimeout(()=>{n(null)},250);return()=>{clearTimeout(a)}}},[t,n]),!e||!e.type)return null;const{type:o,...r}=t??e,s=PN[o];if(!s)return console.warn("Unknown popup of type ",o),null;const i=t===e;return w.jsx(w.Fragment,{children:w.jsx(ON,{callback:r.callback,show:i,title:o,children:w.jsx(s,{...r})})})},IN={"{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?":"","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","Complete your profile":"Voltooi jou profiel",Delete:"Skrap",Deleted:"","Deleted member":"Geskrapte lid",Deleting:"",Discussion:"Bespreking",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:"Versteek","Hide comment":"Versteek kommentaar","Jamie Larson":"Jamie Larson","Join the discussion":"Sluit aan by die bespreking","Just now":"Sopas","Load more ({amount})":"","Local resident":"Plaaslike inwoner","Member discussion":"Lidmaat bespreking",Name:"Naam",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"Een uur gelede","One min ago":"Een minuut gelede",removed:"","Replied to":"",Reply:"Antwoord","Reply to":"","Reply to comment":"Antwoord op kommentaar",Report:"Rapporteer","Report comment":"Rapporteer kommentaar","Report this comment?":"Rapporteer hierdie kommentaar?",Save:"Stoor",Sending:"Besig om te stuur",Sent:"Gestuur",Show:"Wys","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","This comment has been hidden.":"Hierdie kommentaar is weggesteek.","This comment has been removed.":"Hierdie kommentaar is verwyder.","Upgrade now":"Gradeer nou op",Yesterday:"Gister","Your request will be sent to the owner of this site.":"Jou versoek sal aan die eienaar van hierdie webwerf gestuur word."},zN={"{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?":"","Become a member of {publication} to start commenting.":"يجب أن تصبح عضوًا فى {publication} لتستطيع التعليق","Become a paid member of {publication} to start commenting.":"يجب ان تكون عضويتك مدفوعة فى {publication} لكي تستطيع التعليق",Best:"",Cancel:"إلغاء",Comment:"تعليق","Complete your profile":"إكمال ملفك الشخصى",Delete:"حذف",Deleted:"","Deleted member":"الاعضاء المحذوفين",Deleting:"",Discussion:"النقاش",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:"اخفاء","Hide comment":"اخف التعليق","Jamie Larson":"فلان الفلانى","Join the discussion":"انضم للمحادثة","Just now":"الآن","Load more ({amount})":"","Local resident":"مقيم محلى","Member discussion":"مناقشة الاعضاء",Name:"الاسم",Neurosurgeon:"جراح المخ و الاعصاب",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"منذ ساعة واحدة","One min ago":" منذ دقيقة واحدة",removed:"","Replied to":"",Reply:"رد","Reply to":"","Reply to comment":"رد على هذا التعليق",Report:"الإبلاغ","Report comment":"ابلغ عن هذا التعليق","Report this comment?":"الإبلاغ عن التعليق؟",Save:"حفظ",Sending:"جارى الارسال",Sent:"تم الارسال",Show:"اظهر","Show {amount} more replies":"اظهر {amount} ردود","Show 1 more reply":"اظهر تعليق وحيد","Show comment":"اظهر التعليق","Sign in":"تسجيل الدخول","Sign up now":"قم بالتسجيل الآن","Sort by":"ترتيب بحسب","Start the conversation":"ابدأ النقاش","This comment has been hidden.":"تم اخفاء هذا التعليق","This comment has been removed.":"تم حذف هذا التعليق","Upgrade now":"قم بالترقية الآن",Yesterday:"أمس","Your request will be sent to the owner of this site.":"سيتم ارسال طلبك لصاحب الموقع"},BN={"{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?":"Убедени ли сте?","Become a member of {publication} to start commenting.":"Абонирайте се за {publication}, за да коментирате.","Become a paid member of {publication} to start commenting.":"Станете плащащ абонат на {publication}, за да коментирате.",Best:"Най-добрите",Cancel:"Отказ",Comment:"Коментар","Complete your profile":"Попълнете профила си",Delete:"Изтриване",Deleted:"Изтрито","Deleted member":"Изтрит абонат",Deleting:"Изтриване",Discussion:"Дискусия",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:"Скриване","Hide comment":"Скриване на коментара","Jamie Larson":"Иван Иванов","Join the discussion":"Участвайте в дискусията","Just now":"Току-що","Load more ({amount})":"Още ({amount})","Local resident":"Местен жител","Member discussion":"Дискусия за абонатите",Name:"Име",Neurosurgeon:"Неврохирург",Newest:"Най-нови",Oldest:"Най-стари","Once deleted, this comment cant be recovered.":"Веднъж изтрит, коментарът не може да бъде възстановен.","One hour ago":"Преди час","One min ago":"Преди минута",removed:"премахнат","Replied to":"Отговорено на",Reply:"Отговор","Reply to":"Отговор на","Reply to comment":"Отговор на коментара",Report:"Докладване","Report comment":"Докладване на коментара","Report this comment?":"Ще докладвате ли коментара?",Save:"Запис",Sending:"Изпращане",Sent:"Изпратен",Show:"Показване","Show {amount} more replies":"Покажи още {amount} отговора","Show 1 more reply":"Покажи още един отговор","Show comment":"Покажи коментар","Sign in":"Вход","Sign up now":"Регистрация","Sort by":"Сортиране по","Start the conversation":"Започнете дискусия","This comment has been hidden.":"Този коментар е скрит.","This comment has been removed.":"Този коментар е премахнат.","Upgrade now":"Надградете сега",Yesterday:"Вчера","Your request will be sent to the owner of this site.":"Искането ще бъде изпратено до собственика на сайта."},FN={"{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?":"","Become a member of {publication} to start commenting.":"{publication} এর সদস্য হন মন্তব্য করার জন্য।","Become a paid member of {publication} to start commenting.":"{publication} এর পেইড সদস্য হন মন্তব্য করার জন্য।",Best:"",Cancel:"বাতিল করুন",Comment:"মন্তব্য","Complete your profile":"আপনার প্রোফাইল সম্পূর্ণ করুন",Delete:"মুছে ফেলুন",Deleted:"","Deleted member":"মুছে ফেলা সদস্য",Deleting:"",Discussion:"আলোচনা",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:"লুকান","Hide comment":"মন্তব্য লুকান","Jamie Larson":"শাহ নেওয়াজ","Join the discussion":"আলোচনায় যোগ দিন","Just now":"এখনই","Load more ({amount})":"","Local resident":"স্থানীয় বাসিন্দা","Member discussion":"সদস্য আলোচনা",Name:"নাম",Neurosurgeon:"নিউরোসার্জন",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"এক ঘণ্টা পূর্বে","One min ago":"",removed:"","Replied to":"",Reply:"উত্তর","Reply to":"","Reply to comment":"মন্তব্যের উত্তর দিন",Report:"প্রতিবেদন","Report comment":"মন্তব্য প্রতিবেদন করুন","Report this comment?":"এই মন্তব্য প্রতিবেদন করবেন?",Save:"সংরক্ষণ করুন",Sending:"পাঠানো হচ্ছে",Sent:"পাঠানো হয়েছে",Show:"দেখান","Show {amount} more replies":" আরো {amount}টি উত্তর দেখান","Show 1 more reply":"১টি আরো উত্তর দেখান","Show comment":"মন্তব্য দেখান","Sign in":"সাইন ইন করুন","Sign up now":"এখনই সাইন আপ করুন","Sort by":"","Start the conversation":"আলোচনা শুরু করুন","This comment has been hidden.":"এই মন্তব্য লুকানো হয়েছে।","This comment has been removed.":"এই মন্তব্য মুছে ফেলা হয়েছে।","Upgrade now":"এখনই আপগ্রেড করুন",Yesterday:"গতকাল","Your request will be sent to the owner of this site.":"আপনার অনুরোধ সাইটের মালিকের কাছে পাঠানো হবে।"},HN={"{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?":"","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","Complete your profile":"Dovrši svoj profil",Delete:"Obriši",Deleted:"","Deleted member":"Obrisan član",Deleting:"",Discussion:"Diskusija",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:"Sakrij","Hide comment":"Sakrij komentar","Jamie Larson":"Vanja Larsić","Join the discussion":"Pridruži se diskusiji","Just now":"Upravo sada","Load more ({amount})":"","Local resident":"Lokalni stanovnik","Member discussion":"Diskusija članova",Name:"Ime",Neurosurgeon:"Neurohirurg",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"Prije jedan sat","One min ago":"Prije jedan minut",removed:"","Replied to":"",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",Sending:"Šaljem",Sent:"Poslano",Show:"Prikaži","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","This comment has been hidden.":"Ovaj komentar je sakriven.","This comment has been removed.":"Ovaj komentar je uklonjen.","Upgrade now":"Nadogradi račun sada",Yesterday:"Jučer","Your request will be sent to the owner of this site.":"Tvoj zahtjev je poslan vlasniku stranice."},VN={"{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?","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","Complete your profile":"Completa el teu perfil",Delete:"Esborra",Deleted:"Esborrat","Deleted member":"Membre esborrat",Deleting:"Esborrant",Discussion:"Debat",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:"Oculta","Hide comment":"Oculta el comentari","Jamie Larson":"Jamie Larson","Join the discussion":"Uneix-te al debat","Just now":"Just ara","Load more ({amount})":"","Local resident":"Resident local","Member discussion":"Debat de membres",Name:"Nom",Neurosurgeon:"Neurocirurgià",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"Un cop esborrat, aquest comentari no es pot recuperar","One hour ago":"Fa una hora","One min ago":"Fa un minut",removed:"Esborrat","Replied to":"Respost a",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",Sending:"Enviant",Sent:"Enviat",Show:"Mostra","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","This comment has been hidden.":"Aquest comentari s'ha ocultat.","This comment has been removed.":"Aquest comentari s'ha esborrat.","Upgrade now":"Actualitza ara",Yesterday:"Ahir","Your request will be sent to the owner of this site.":"La teva sol·licitud s'enviarà al propietari d'aquest lloc."},UN={"{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?":"","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ář","Complete your profile":"Dokončete svůj profil",Delete:"Smazat",Deleted:"","Deleted member":"Smazaný člen",Deleting:"",Discussion:"Diskuse",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:"Skrýt","Hide comment":"Skrýt komentář","Jamie Larson":"Jamie Larson","Join the discussion":"Připojte se k diskusi","Just now":"Právě teď","Load more ({amount})":"","Local resident":"Místní obyvatel","Member discussion":"Diskuse členů",Name:"Jméno",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"Před jednou hodinou","One min ago":"Před jednou minutou",removed:"","Replied to":"",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",Sending:"Odesílání",Sent:"Odesláno",Show:"Zobrazit","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","This comment has been hidden.":"Tento komentář byl skryt.","This comment has been removed.":"Tento komentář byl odstraněn.","Upgrade now":"Upgradovat",Yesterday:"Včera","Your request will be sent to the owner of this site.":"Vaše žádost bude odeslána vlastníkovi tohoto webu."},_N={"{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?","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","Complete your profile":"Færdiggør din profil",Delete:"Slet",Deleted:"Slettet","Deleted member":"Slettet medlem",Deleting:"Sletter",Discussion:"Diskussion",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:"Skjul","Hide comment":"Skjul kommentar","Jamie Larson":"Jamie Larson","Join the discussion":"Bliv en del af diskussionen","Just now":"Lige nu","Load more ({amount})":"Indlæs mere ({amount})","Local resident":"Lokal borger","Member discussion":"Medlemsdiskussion",Name:"Navn",Neurosurgeon:"Neurokirurg",Newest:"",Oldest:"","Once deleted, this comment cant 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",removed:"fjernet","Replied to":"Svarede",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",Sending:"Sender",Sent:"Sendt",Show:"Vis","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","This comment has been hidden.":"Denne kommentar er blevet skjult.","This comment has been removed.":"Denne kommentar er blevet fjernet.","Upgrade now":"Opgrader nu",Yesterday:"I går","Your request will be sent to the owner of this site.":"Din anmodning vil blive sendt til ejeren af dette site."},JN={"{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?","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","Complete your profile":"Vervollständige dein Profil",Delete:"Löschen",Deleted:"Gelöscht","Deleted member":"Gelöschtes Mitglied",Deleting:"Wird gelöscht",Discussion:"Diskussion",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:"Verbergen","Hide comment":"Kommentar verbergen","Jamie Larson":"Jamie Larson","Join the discussion":"Nimm an der Diskussion teil","Just now":"Gerade eben","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 cant 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",removed:"entfernt","Replied to":"Antwort auf",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",Sending:"Senden",Sent:"Gesendet",Show:"Anzeigen","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","This comment has been hidden.":"Dieser Kommentar wurde ausgeblendet.","This comment has been removed.":"Dieser Kommentar wurde entfernt.","Upgrade now":"Jetzt upgraden",Yesterday:"Gestern","Your request will be sent to the owner of this site.":"Deine Anfrage wird an den Besitzer dieser Website gesendet."},YN={"{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":"","Already a member?":"Bereits ein Mitglied?",Anonymous:"Anonym","Are you sure?":"Sind Sie sicher?","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:"",Cancel:"Abbrechen",Comment:"Kommentar","Complete your profile":"Vervollständigen Sie Ihr Profil",Delete:"Löschen",Deleted:"Gelöscht","Deleted member":"Gelöschtes Mitglied",Deleting:"Löschen",Discussion:"Diskussion",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:"Verbergen","Hide comment":"Kommentar verbergen","Jamie Larson":"Jamie Larson","Join the discussion":"An der Diskussion teilnehmen","Just now":"Gerade eben","Load more ({amount})":"Mehr laden ({amount})","Local resident":"Anwohner","Member discussion":"Mitgliederdiskussion",Name:"Name",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment cant 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",removed:"entfernt","Replied to":"Antwortet auf",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",Sending:"Senden",Sent:"Gesendet",Show:"Anzeigen","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","This comment has been hidden.":"Dieser Kommentar wurde ausgeblendet.","This comment has been removed.":"Dieser Kommentar wurde entfernt.","Upgrade now":"Jetzt upgraden",Yesterday:"Gestern","Your request will be sent to the owner of this site.":"Ihre Anfrage wird an den Seitenbesitzer gesendet."},KN={"{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?":"","Become a member of {publication} to start commenting.":"Γίνετε μέλος του {publication} για να ξεκινήσετε να σχολιάζετε.","Become a paid member of {publication} to start commenting.":"Γίνετε premium μέλος του {publication} για να ξεκινήσετε να σχολιάζετε.",Best:"",Cancel:"Ακύρωση",Comment:"Σχόλιο","Complete your profile":"Ολοκληρώστε το προφίλ σας",Delete:"Διαγραφή",Deleted:"","Deleted member":"Διαγραμμένο μέλος",Deleting:"",Discussion:"Συζήτηση",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:"Απόκρυψη","Hide comment":"Απόκρυψη σχολίου","Jamie Larson":"Τζέιμι Λάρσον","Join the discussion":"Συμμετοχή στη συζήτηση","Just now":"Μόλις τώρα","Load more ({amount})":"","Local resident":"Τοπικός κάτοικος","Member discussion":"Συζήτηση μελών",Name:"Όνομα",Neurosurgeon:"Νευροχειρουργός",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"Πριν από μία ώρα","One min ago":"Πριν από ένα λεπτό",removed:"","Replied to":"",Reply:"Απάντηση","Reply to":"","Reply to comment":"Απάντηση στο σχόλιο",Report:"Αναφορά","Report comment":"Αναφορά σχολίου","Report this comment?":"Αναφορά αυτού του σχολίου;",Save:"Αποθήκευση",Sending:"Αποστολή",Sent:"Απεστάλη",Show:"Εμφάνιση","Show {amount} more replies":"Εμφάνιση {amount} περισσότερων απαντήσεων","Show 1 more reply":"Εμφάνιση 1 ακόμα απάντησης","Show comment":"Εμφάνιση σχολίου","Sign in":"Σύνδεση","Sign up now":"Εγγραφείτε τώρα","Sort by":"","Start the conversation":"Ξεκινήστε τη συζήτηση","This comment has been hidden.":"Αυτό το σχόλιο έχει κρυφτεί.","This comment has been removed.":"Αυτό το σχόλιο έχει αφαιρεθεί.","Upgrade now":"Αναβάθμιση τώρα",Yesterday:"Χθες","Your request will be sent to the owner of this site.":"Το αίτημά σας θα σταλεί στον ιδιοκτήτη αυτού του ιστότοπου."},WN={"{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?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",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:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},qN={"{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?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",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:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},GN={"{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?","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","Complete your profile":"Completa tu perfil",Delete:"Eliminar",Deleted:"Eliminado","Deleted member":"Eliminar miembro",Deleting:"Eliminando",Discussion:"Discusión",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:"Ocultar","Hide comment":"Ocultar comentario","Jamie Larson":"Carlos Rodriguez","Join the discussion":"Únete a la discusión","Just now":"Justo ahora","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 cant be recovered.":"Este comentario no se puede recuperar una vez eliminado.","One hour ago":"Hace una hora","One min ago":"Hace un minuto",removed:"eliminado","Replied to":"En respuesta a",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",Sending:"Enviando",Sent:"Enviado",Show:"Mostrar","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","This comment has been hidden.":"Este comentario ha sido ocultado.","This comment has been removed.":"Este comentario ha sido borrado.","Upgrade now":"Actualiza tu cuenta ahora",Yesterday:"Ayer","Your request will be sent to the owner of this site.":"Tu petición será enviada al dueño de este sitio web."},QN={"{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?":"","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","Complete your profile":"Täida oma profiil",Delete:"Kustuta",Deleted:"","Deleted member":"Kustutatud liige",Deleting:"",Discussion:"Arutelu",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:"Peida","Hide comment":"Peida kommentaar","Jamie Larson":"Jamie Larson","Join the discussion":"Liitu aruteluga","Just now":"Just praegu","Load more ({amount})":"","Local resident":"Kohalik elanik","Member discussion":"Liikmete arutelu",Name:"Nimi",Neurosurgeon:"Neurokirurg",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"Üks tund tagasi","One min ago":"Üks minut tagasi",removed:"","Replied to":"",Reply:"Vasta","Reply to":"","Reply to comment":"Vasta kommentaarile",Report:"Teata","Report comment":"Teata kommentaarist","Report this comment?":"Teatada sellest kommentaarist?",Save:"Salvesta",Sending:"Saatmine",Sent:"Saadetud",Show:"Näita","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","This comment has been hidden.":"See kommentaar on peidetud.","This comment has been removed.":"See kommentaar on eemaldatud.","Upgrade now":"Uuenda nüüd",Yesterday:"Eile","Your request will be sent to the owner of this site.":"Teie taotlus saadetakse selle saidi omanikule."},ZN={"{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?","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","Complete your profile":"Bete zure profila",Delete:"Ezabatu",Deleted:"Ezabatuta","Deleted member":"Ezabatutako kidea",Deleting:"Ezabatzen",Discussion:"Eztabaida",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:"Ezkutatu","Hide comment":"Ezkutatu iruzkina","Jamie Larson":"Lur Axpe","Join the discussion":"Batu eztabaidara","Just now":"Oraintxe bertan","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 cant be recovered.":"Ezabatuz gero, ezingo da berreskuratu.","One hour ago":"Duela ordubete","One min ago":"Duela minutu bat",removed:"kenduta","Replied to":"Honi erantzun dio",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",Sending:"Bidaltzen",Sent:"Bidalita",Show:"Erakutsi","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","This comment has been hidden.":"Iruzkin hau ezkutatu da.","This comment has been removed.":"Iruzkin hau kendu da.","Upgrade now":"Ordaindu orain",Yesterday:"Atzo","Your request will be sent to the owner of this site.":"Eskaera gune honetako arduradunari bidaliko zaio."},XN={"{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?":"","Become a member of {publication} to start commenting.":"عضو وب‌سایت {publication} شوید تا مجوز ارسال دیدگاه دریافت کنید.","Become a paid member of {publication} to start commenting.":"حق اشتراک وب‌سایت {publication} را پرداخت کنید تا مجوز ارسال دیدگاه دریافت کنید.",Best:"",Cancel:"انصراف",Comment:"دیدگاه","Complete your profile":"نمایه خود را کامل کنید",Delete:"پاک کردن",Deleted:"","Deleted member":"حساب پاک‌شده",Deleting:"",Discussion:"گفتمان",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:"مخفی کردن","Hide comment":"مخفی کردن دیدگاه","Jamie Larson":"جیمی لارسن","Join the discussion":"به گفتمان بپیوندید","Just now":"پیوستن","Load more ({amount})":"","Local resident":"ساکن محلی","Member discussion":"گفتمان کاربران",Name:"نام",Neurosurgeon:"جراح مغز و اعصاب",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"یک ساعت پیش","One min ago":"یک دقیقه پیش",removed:"","Replied to":"",Reply:"پاسخ دادن","Reply to":"","Reply to comment":"پاسخ دادن به دیدگاه",Report:"گزارش","Report comment":"گزارش دیدگاه","Report this comment?":"می‌خواهید این دیدگاه را گزارش کنید؟",Save:"ذخیره کردن",Sending:"در حال ارسال",Sent:"ارسال شد",Show:"نمایش","Show {amount} more replies":"نمایش {amount} پاسخ بیشتر","Show 1 more reply":"نمایش یک دیدگاه بیشتر","Show comment":"نمایش دیدگاه","Sign in":"ورود به حساب","Sign up now":"ایجاد حساب","Sort by":"","Start the conversation":"گفت‌وگویی شروع کنید","This comment has been hidden.":"این دیدگاه مخفی شده است","This comment has been removed.":"این دیدگاه پاک شده است","Upgrade now":"ارتقاء دهید",Yesterday:"دیروز","Your request will be sent to the owner of this site.":"درخواست شما برای مدیر این وب‌سایت ارسال خواهد شد."},eA={"{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":"","Already a member?":"Oletko jo jäsen?",Anonymous:"Anonyymi","Are you sure?":"","Become a member of {publication} to start commenting.":"Ala {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:"",Cancel:"Peruuta",Comment:"Kommentti","Complete your profile":"Täydennä profiilisi",Delete:"Poista",Deleted:"","Deleted member":"Poista jäsen",Deleting:"",Discussion:"Keskustelu",Edit:"Editoi","Edit this comment":"Editoi tätä kommenttia",edited:"editoitu","Enter your name":"Syötä nimesi",Expertise:"Osaaminen","Founder @ Acme Inc":"","Full-time parent":"Kokoaikainen vanhempi","Head of Marketing at Acme, Inc":"Markkinointijohtaja","Hidden for members":"",Hide:"Piilota","Hide comment":"Piilota kommentti","Jamie Larson":"Jamie Larson","Join the discussion":"Liity keskusteluun","Just now":"Juuri nyt","Load more ({amount})":"","Local resident":"Paikallinen","Member discussion":"Jäsenten keskustelu",Name:"Nimi",Neurosurgeon:"Neurokirurgi",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"Tunti sitten","One min ago":"Minuutti sitten",removed:"","Replied to":"",Reply:"Vastaa","Reply to":"","Reply to comment":"Vastaa kommenttiin",Report:"Ilmianna","Report comment":"Ilmianna kommentti","Report this comment?":"Haluatko ilmiantaa tämän kommentin?",Save:"Tallenna",Sending:"Lähetetään",Sent:"Lähetetty",Show:"Näytä","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":"","Start the conversation":"Aloita keskustelu","This comment has been hidden.":"Tämä kommentti on piilotettu","This comment has been removed.":"Tämä kommentti on poistettu","Upgrade now":"Korota nyt",Yesterday:"Eilen","Your request will be sent to the owner of this site.":"Sinun pyyntösi lähetetään sivun omistajalle"},tA={"{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) ?","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","Complete your profile":"Complétez votre profil",Delete:"Supprimer",Deleted:"Supprimé","Deleted member":"Abonné(e) supprimé(e)",Deleting:"Suppression en cours",Discussion:"Discussion",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:"Masquer","Hide comment":"Masquer le commentaire","Jamie Larson":"Jean Martin","Join the discussion":"Rejoindre la discussion","Just now":"À l'instant","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 cant 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",removed:"supprimé","Replied to":"Répondu à",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",Sending:"Envoi en cours",Sent:"Envoyé",Show:"Afficher","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","This comment has been hidden.":"Ce commentaire a été masqué.","This comment has been removed.":"Ce commentaire a été supprimé.","Upgrade now":"Mettre à jour maintenant",Yesterday:"Hier","Your request will be sent to the owner of this site.":"Votre demande sera transférée au propriétaire de ce site."},nA={"{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?","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","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",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:"Cuir am falach","Hide comment":"Cuir am beachd am falach","Jamie Larson":"Seamaidh Larson","Join the discussion":"Gabh pàirt san deasbad","Just now":"An-dràsta","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 cant 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",removed:"air a sguabadh às","Replied to":"Air freagairt fhaighinn",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",Sending:"Ga chur",Sent:"Air a chur",Show:"Seall","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","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.","Upgrade now":"Àrdaich a-nis",Yesterday:"An-dè","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."},oA={"{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?":"","Become a member of {publication} to start commenting.":"הירשמו כחברי {publication} כדי להתחיל להגיב.","Become a paid member of {publication} to start commenting.":"הירשמו כחברי משלמים של {publication} כדי להתחיל להגיב.",Best:"",Cancel:"ביטול",Comment:"תגובה","Complete your profile":"השלימו את הפרופיל שלכם",Delete:"מחיקה",Deleted:"","Deleted member":"חבר שנמחק",Deleting:"",Discussion:"דיון",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:"הסתר","Hide comment":"הסתר תגובה","Jamie Larson":"ג׳יימי לרסון","Join the discussion":"הצטרפו לדיון","Just now":"ממש עכשיו","Load more ({amount})":"","Local resident":"תושב מקומי","Member discussion":"דיון חברים רשומים",Name:"שם",Neurosurgeon:"נוֹיְרוֹכִירוּרְג",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"לפני שעה","One min ago":"לפני דקה",removed:"","Replied to":"",Reply:"תגובה","Reply to":"","Reply to comment":"הגיבו לתגובה",Report:"דיווח","Report comment":"דווחו על תגובה","Report this comment?":"האם לדווח על תגובה זו?",Save:"שמירה",Sending:"שליחה",Sent:"שלחנו",Show:"להציג","Show {amount} more replies":"להציג עוד {amount} תגובות","Show 1 more reply":"להציג תגובה נוספת","Show comment":"להציג תגובה","Sign in":"היכנסו","Sign up now":"הירשמו עכשיו","Sort by":"למיין לפי","Start the conversation":"התחילו את השיחה","This comment has been hidden.":"התגובה הזו הוסתרה.","This comment has been removed.":"התגובה הזו הוסרה.","Upgrade now":"שדרגו עכשיו",Yesterday:"אתמול","Your request will be sent to the owner of this site.":"בקשתך תישלח לבעלים של האתר הזה."},rA={"{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?":"क्या आप सुनिश्चित हैं?","Become a member of {publication} to start commenting.":"टिप्पणी शुरू करने के लिए {publication} का सदस्य बनें।","Become a paid member of {publication} to start commenting.":"टिप्पणी शुरू करने के लिए {publication} के भुगतान सदस्य बनें।",Best:"सर्वश्रेष्ठ",Cancel:"रद्द करें",Comment:"टिप्पणी","Complete your profile":"अपनी प्रोफ़ाइल पूरी करें",Delete:"हटाएं",Deleted:"हटा दिया गया","Deleted member":"हटाए गए सदस्य",Deleting:"हटाया जा रहा है",Discussion:"चर्चा",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:"छिपाएं","Hide comment":"टिप्पणी छिपाएं","Jamie Larson":"राहुल शर्मा","Join the discussion":"चर्चा में शामिल हों","Just now":"अभी","Load more ({amount})":"और लोड करें ({amount})","Local resident":"स्थानीय निवासी","Member discussion":"सदस्य चर्चा",Name:"नाम",Neurosurgeon:"न्यूरोसर्जन",Newest:"नवीनतम",Oldest:"सबसे पुराना","Once deleted, this comment cant be recovered.":"एक बार हटाए जाने के बाद, इस टिप्पणी को पुनः प्राप्त नहीं किया जा सकता।","One hour ago":"एक घंटा पहले","One min ago":"एक मिनट पहले",removed:"हटा दिया गया","Replied to":"को जवाब दिया",Reply:"जवाब दें","Reply to":"को जवाब दें","Reply to comment":"टिप्पणी का जवाब दें",Report:"रिपोर्ट","Report comment":"टिप्पणी की रिपोर्ट करें","Report this comment?":"क्या आप इस टिप्पणी की रिपोर्ट करना चाहते हैं?",Save:"सहेजें",Sending:"भेजा जा रहा है",Sent:"भेजा गया",Show:"दिखाएं","Show {amount} more replies":"{amount} और जवाब दिखाएं","Show 1 more reply":"1 और जवाब दिखाएं","Show comment":"टिप्पणी दिखाएं","Sign in":"साइन इन करें","Sign up now":"अभी साइनअप करें","Sort by":"क्रमबद्ध करें","Start the conversation":"बातचीत शुरू करें","This comment has been hidden.":"इस टिप्पणी को छिपा दिया गया है।","This comment has been removed.":"इस टिप्पणी को हटा दिया गया है।","Upgrade now":"अब उन्नत करें",Yesterday:"कल","Your request will be sent to the owner of this site.":"आपका अनुरोध इस साइट के मालिक को भेजा जाएगा।"},sA={"{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?":"","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","Complete your profile":"Dovrši svoj profil",Delete:"Obriši",Deleted:"","Deleted member":"Obrisan član",Deleting:"",Discussion:"Rasprava",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:"Sakrij","Hide comment":"Sakrij komentar","Jamie Larson":"Jamie Larson","Join the discussion":"Pridruži se raspravi","Just now":"Upravo sada","Load more ({amount})":"","Local resident":"Lokalni stanovnik","Member discussion":"Rasprava članova",Name:"Ime",Neurosurgeon:"Neurokirurg",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"Prije jednog sata","One min ago":"Prije jedne minute",removed:"","Replied to":"",Reply:"Odgovori","Reply to":"","Reply to comment":"Odgovori na komentar",Report:"Prijavi","Report comment":"Prijavi komentar","Report this comment?":"Prijaviti ovaj komentar?",Save:"Spremi",Sending:"Slanje",Sent:"Poslano",Show:"Prikaži","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","This comment has been hidden.":"Ovaj komentar je skriven","This comment has been removed.":"Ovaj komentar je maknut","Upgrade now":"Nadogradite sada",Yesterday:"Jučer","Your request will be sent to the owner of this site.":"Vaš zahtjev će se poslati vasniku ovih web stranica."},iA={"{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?","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","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",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ő — Sirály Kft.","Hidden for members":"A tagok számára elrejtve",Hide:"Elrejtés","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","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 cant 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",removed:"eltávolítva","Replied to":"Válaszolt erre",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",Sending:"Küldés",Sent:"Elküldve",Show:"Mutat","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","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.","Upgrade now":"Előfizetéssel te is hozzászólhatsz",Yesterday:"Tegnap","Your request will be sent to the owner of this site.":"A kérésedet továbbítjuk a weboldal tulajdonosának."},aA={"{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":"","Already a member?":"Sudah menjadi anggota?",Anonymous:"Anonim","Are you sure?":"","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:"",Cancel:"Batal",Comment:"Komentar","Complete your profile":"Lengkapi profil Anda",Delete:"Hapus",Deleted:"","Deleted member":"Anggota dihapus",Deleting:"",Discussion:"Diskusi",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":"",Hide:"Sembunyikan","Hide comment":"Sembunyikan komentar","Jamie Larson":"Sutan T. Alisjahbana","Join the discussion":"Bergabung dalam diskusi","Just now":"Baru saja","Load more ({amount})":"","Local resident":"Penduduk lokal","Member discussion":"Diskusi anggota",Name:"Nama",Neurosurgeon:"Ahli Bedah Saraf",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"Satu jam yang lalu","One min ago":"Satu menit yang lalu",removed:"","Replied to":"",Reply:"Balas","Reply to":"","Reply to comment":"Balas komentar",Report:"Laporkan","Report comment":"Laporkan komentar","Report this comment?":"Laporkan komentar ini?",Save:"Simpan",Sending:"Mengirim",Sent:"Terkirim",Show:"Tampilkan","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":"","Start the conversation":"Mulai percakapan","This comment has been hidden.":"Komentar ini telah disembunyikan.","This comment has been removed.":"Komentar ini telah dihapus.","Upgrade now":"Daftar sekarang",Yesterday:"Kemarin","Your request will be sent to the owner of this site.":"Permintaan Anda akan dikirim kepada pemilik situs ini."},lA={"{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?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",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:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},cA={"{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?","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","Complete your profile":"Completa il tuo profilo",Delete:"Elimina",Deleted:"Eliminato","Deleted member":"Utente eliminato",Deleting:"Eliminazione in corso",Discussion:"Discussione",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:"Nascondi","Hide comment":"Nascondi commento","Jamie Larson":"Andrea Rossi","Join the discussion":"Partecipa alla discussione","Just now":"Adesso","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 cant be recovered.":"Una volta cancellato, non potrai più recuperare questo commento","One hour ago":"Un'ora fa","One min ago":"Un minuto fa",removed:"rimosso","Replied to":"Ha risposto a",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",Sending:"Invio",Sent:"Inviato",Show:"Mostra","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":"Accedi ora","Sort by":"Ordina per","Start the conversation":"Commenta per primo","This comment has been hidden.":"Questo commento è stato nascosto.","This comment has been removed.":"Questo commento è stato rimosso.","Upgrade now":"Abbonati ora",Yesterday:"Ieri","Your request will be sent to the owner of this site.":"La tua richiesta sarà inviata al proprietario del sito."},uA={"{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?":"","Become a member of {publication} to start commenting.":"{publication}のメンバーになってコメントを始めましょう。","Become a paid member of {publication} to start commenting.":"{publication}の有料メンバーになってコメントを始めましょう。",Best:"",Cancel:"キャンセル",Comment:"コメント","Complete your profile":"プロフィールを完成させる",Delete:"削除",Deleted:"","Deleted member":"削除されたメンバー",Deleting:"",Discussion:"議論",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:"非表示にする","Hide comment":"コメントを非表示にする","Jamie Larson":"ジェイミー・ラーソン","Join the discussion":"議論に参加する","Just now":"今すぐ参加する","Load more ({amount})":"","Local resident":"地元住民","Member discussion":"メンバーによる議論",Name:"名前",Neurosurgeon:"脳神経外科医",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"1時間前","One min ago":"1分前",removed:"","Replied to":"",Reply:"返信する","Reply to":"","Reply to comment":"コメントに返信する",Report:"通報する","Report comment":"コメントを通報する","Report this comment?":"このコメントを通報しますか?",Save:"保存",Sending:"送信中",Sent:"送信完了",Show:"表示する","Show {amount} more replies":"{amount}個の返信を表示する","Show 1 more reply":"返信をもう1つ表示する","Show comment":"コメントを表示する","Sign in":"ログイン","Sign up now":"今すぐ新規登録する","Sort by":"","Start the conversation":"会話を始める","This comment has been hidden.":"このコメントは非表示にされました。","This comment has been removed.":"このコメントは削除されました。","Upgrade now":"今すぐアップデートする",Yesterday:"昨日","Your request will be sent to the owner of this site.":"あなたのリクエストはこのサイトの管理者に送信されます。"},dA={"{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?":"","Become a member of {publication} to start commenting.":"{publication}의 회원이 되어 댓글을 작성해 주세요.","Become a paid member of {publication} to start commenting.":"{publication}의 유료 회원이 되어 댓글을 작성해 주세요.",Best:"",Cancel:"취소",Comment:"댓글","Complete your profile":"프로필을 완성해 주세요",Delete:"삭제",Deleted:"","Deleted member":"삭제된 회원",Deleting:"",Discussion:"댓글",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:"숨기기","Hide comment":"댓글 숨기기","Jamie Larson":"제이미 라슨","Join the discussion":"댓글에 참여해 주세요","Just now":"방금 전","Load more ({amount})":"","Local resident":"지역 주민","Member discussion":"회원들의 댓글",Name:"이름",Neurosurgeon:"신경외과 의사",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"1시간 전","One min ago":"1분 전",removed:"","Replied to":"",Reply:"답변","Reply to":"","Reply to comment":"댓글에 답변",Report:"신고","Report comment":"댓글 신고","Report this comment?":"이 댓글을 신고하시겠어요?",Save:"저장",Sending:"전송중",Sent:"전송됨",Show:"보기","Show {amount} more replies":"{amount}개의 댓글 더 보기","Show 1 more reply":"1개의 댓글 더 보기","Show comment":"댓글 보기","Sign in":"로그인","Sign up now":"회원가입","Sort by":"정렬 기준","Start the conversation":"댓글을 작성해 주세요","This comment has been hidden.":"숨김처리 된 댓글이에요.","This comment has been removed.":"삭제 된 댓글이에요.","Upgrade now":"업그레이드",Yesterday:"어제","Your request will be sent to the owner of this site.":"운영자에게 요구사항이 전달되었어요."},mA={"{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?":"","Become a member of {publication} to start commenting.":"Пікір қалдыру үшін {publication} сайтына аккаунт қажет.","Become a paid member of {publication} to start commenting.":"Пікір қалдыру үшін {publication} сайтына ақылы аккаунт қажет.",Best:"",Cancel:"Бас тарту",Comment:"Пікір","Complete your profile":"Профиліңізді толтырыңыз",Delete:"Жою",Deleted:"","Deleted member":"Жойылған аккаунт",Deleting:"",Discussion:"Талқы",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:"Жасыру","Hide comment":"Пікірді жасыру","Jamie Larson":"Пәленше Түгеншиев","Join the discussion":"Талқыға қосылу","Just now":"Дәл қазір","Load more ({amount})":"","Local resident":"Жергілікті тұрғын","Member discussion":"Мүшелер талқысы",Name:"Есімі",Neurosurgeon:"Нейрохирург",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"Бір сағат бұрын","One min ago":"Бір минут бұрын",removed:"","Replied to":"",Reply:"Жауап беру","Reply to":"","Reply to comment":"Пікірге жауап беру",Report:"Шағымдану","Report comment":"Пікірге шағымдану","Report this comment?":"Осы пікірге шағым жіберілсін бе?",Save:"Сақтау",Sending:"Жіберілуде",Sent:"Жіберілді",Show:"Көрсету","Show {amount} more replies":"Тағы {amount} жауапты көрсету","Show 1 more reply":"Тағы 1 жауап көрсету","Show comment":"Пікірді көрсету","Sign in":"Кіру","Sign up now":"Қазір тіркелу","Sort by":"","Start the conversation":"Талқыны бастау","This comment has been hidden.":"Бұл пікір жасырылды.","This comment has been removed.":"Бұл пікір өшірілді.","Upgrade now":"Жаңарту ",Yesterday:"Кеше","Your request will be sent to the owner of this site.":"Өтінішіңіз сайт иесіне жіберіледі."},fA={"{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?":"","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","Complete your profile":"Pabaikite kurti savo profilį!",Delete:"Ištrinti",Deleted:"","Deleted member":"Pašalintas narys",Deleting:"",Discussion:"Diskusija",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:"Paslėpti","Hide comment":"Paslėpti komentarą","Jamie Larson":"Vardenis Pavardenis","Join the discussion":"Prisijunkite prie diskusijos","Just now":"Ką tik","Load more ({amount})":"","Local resident":"Vietinis gyventojas","Member discussion":"Komentarai",Name:"Vardas",Neurosurgeon:"Neurochirurgas",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"Prieš valandą","One min ago":"Prieš minutę",removed:"","Replied to":"",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",Sending:"Siunčiama",Sent:"Išsiųsta",Show:"Rodyti","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ą","This comment has been hidden.":"Šis komentaras buvo paslėptas.","This comment has been removed.":"Šis komentaras buvo pašalintas.","Upgrade now":"Prenumeruokite",Yesterday:"Vakar","Your request will be sent to the owner of this site.":"Jūsų pranešimas bus išsiųstas svetainės savininkui."},pA={"{amount} characters left":"Atlikušas {amount} rakstzīmes","{amount} comments":"{amount} komentāri","{amount} hrs ago":"pirms {amount} stundām","{amount} mins ago":"Pirms {amount} minū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?","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","Complete your profile":"Pabeidziet savu profilu",Delete:"Dzēst",Deleted:"Izdzēsts","Deleted member":"Dzēsts dalībnieks",Deleting:"Dzēšana",Discussion:"Diskusija",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:"Slēpt","Hide comment":"Slēpt komentāru","Jamie Larson":"Jānis Reikulis","Join the discussion":"Pievienojieties diskusijai","Just now":"Tikai tagad","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 cant be recovered.":"Pēc dzēšanas šo komentāru nevar atgūt.","One hour ago":"Pirms stundas","One min ago":"Pirms minūtes",removed:"noņemts","Replied to":"Atbildēja uz",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",Sending:"Notiek nosūtīšana",Sent:"Nosūtīts",Show:"Rādīt","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","This comment has been hidden.":"Šis komentārs ir paslēpts.","This comment has been removed.":"Šis komentārs ir noņemts.","Upgrade now":"Jauniniet tūlīt",Yesterday:"Vakar","Your request will be sent to the owner of this site.":"Jūsu pieprasījums tiks nosūtīts šīs vietnes īpašniekam."},hA={"{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?":"","Become a member of {publication} to start commenting.":"Станете член на {publication} за да можете да коментирате.","Become a paid member of {publication} to start commenting.":"Станете претплатен член на {publication} за да можеш да коментирате.",Best:"",Cancel:"Откажете",Comment:"Коментирајте","Complete your profile":"Комплетирајте го вашиот профил",Delete:"Избришете",Deleted:"","Deleted member":"Избришан член",Deleting:"",Discussion:"Разговор",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:"Скријте","Hide comment":"Скријте го коментарот","Jamie Larson":"Петар Петровски","Join the discussion":"Приклучете се во разговорот","Just now":"Штотуку","Load more ({amount})":"","Local resident":"Локал жител","Member discussion":"Разговор на членовите",Name:"Име",Neurosurgeon:"Неврохирург",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"Пред еден час","One min ago":"",removed:"","Replied to":"",Reply:"Одговорете","Reply to":"","Reply to comment":"Одговор на коментарот",Report:"Пријавете","Report comment":"Пријавете коментар","Report this comment?":"Пријавете го овој коментар?",Save:"Зачувајте",Sending:"Се испраќа",Sent:"Испратено",Show:"Покажи","Show {amount} more replies":"Покажи уште {amount} одговори","Show 1 more reply":"Покажи уште 1 одговор","Show comment":"Покажи коментар","Sign in":"Најавете се","Sign up now":"Регистрирајте се","Sort by":"","Start the conversation":"Започнете го разговорот","This comment has been hidden.":"Овој коментар беше скриен.","This comment has been removed.":"Овој коментар беше отстранет.","Upgrade now":"Надградете",Yesterday:"Вчера","Your request will be sent to the owner of this site.":"Вашето барање ќе биде испратено на сопственикот на оваа страница."},gA={"{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?":"Та итгэлтэй байна уу?","Become a member of {publication} to start commenting.":"Сэтгэгдэл бичихийн тулд {publication}-н гишүүн болно уу.","Become a paid member of {publication} to start commenting.":"Сэтгэгдэл бичихийн тулд {publication}-н төлбөртэй гишүүн болно уу.",Best:"",Cancel:"Цуцлах",Comment:"Сэтгэгдэл","Complete your profile":"Профайлаа бүрэн бөглөнө үү",Delete:"Устгах",Deleted:"Устгагдсан","Deleted member":"Устгагдсан гишүүн",Deleting:"Устгаж байна",Discussion:"Хэлэлцүүлэг",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:"Нуух","Hide comment":"Сэтгэгдлийг нуух","Jamie Larson":"Доржийн Бат","Join the discussion":"Хэлэлцүүлэгт нэгдэх","Just now":"Дөнгөж сая","Load more ({amount})":"Дахин харах ({amount})","Local resident":"Орон нутгийн оршин суугч","Member discussion":"Гишүүдийн хэлэлцүүлэг",Name:"Нэр",Neurosurgeon:"Мэдрэлийн мэс засалч",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"Устгасны дараа энэ сэтгэгдлийг сэргээх боломжгүй.","One hour ago":"Нэг цагийн өмнө","One min ago":"Нэг минутын өмнө",removed:"хасагдсан","Replied to":"Хариулсан",Reply:"Хариулах","Reply to":"Хариулах","Reply to comment":"Сэтгэгдэлд хариулах",Report:"Мэдэгдэх","Report comment":"Сэтгэгдлийг мэдэгдэх","Report this comment?":"Энэ сэтгэгдлийг мэдэгдэх үү?",Save:"Хадгалах",Sending:"Илгээж байна",Sent:"Илгээгдсэн",Show:"Харуулах","Show {amount} more replies":"{amount} хариултыг харуулах","Show 1 more reply":"1 хариултыг харуулах","Show comment":"Сэтгэгдлийг харуулах","Sign in":"Нэвтрэх","Sign up now":"Одоо бүртгүүлэх","Sort by":"Эрэмбэлэх","Start the conversation":"Яриаг эхлүүлэх","This comment has been hidden.":"Энэ сэтгэгдэл нуугдсан.","This comment has been removed.":"Энэ сэтгэгдэл хасагдсан.","Upgrade now":"Одоо шинэчлэх",Yesterday:"Өчигдөр","Your request will be sent to the owner of this site.":"Таны хүсэлт энэ сайтын эзэмшигч рүү илгээгдэнэ."},yA={"{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?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",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:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},wA={"{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?","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","Complete your profile":"Fullfør profilen din",Delete:"Slett",Deleted:"Slettet","Deleted member":"Slettet medlem",Deleting:"Sletter",Discussion:"Diskusjon",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:"Skjul","Hide comment":"Skjul kommentar","Jamie Larson":"Jamie Larson","Join the discussion":"Delta i diskusjonen","Just now":"Akkurat nå","Load more ({amount})":"Last inn flere ({amount})","Local resident":"Lokal innbygger","Member discussion":"Medlemsdiskusjon",Name:"Navn",Neurosurgeon:"Nevrokirurg",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"En time siden","One min ago":"Ett minutt siden",removed:"fjernet","Replied to":"Svarte",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",Sending:"Sender",Sent:"Sendt",Show:"Vis","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","This comment has been hidden.":"Denne kommentaren er skjult.","This comment has been removed.":"Denne kommentaren er fjernet.","Upgrade now":"Oppgrader nå",Yesterday:"I går","Your request will be sent to the owner of this site.":"Din forespørsel vil bli sendt til eieren av dette nettstedet."},bA={"{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?":"के तपाईं निश्चित हुनुहुन्छ?","Become a member of {publication} to start commenting.":"प्रतिक्रिया सुरु गर्न {publication} को सदस्य बन्नुहोस्।","Become a paid member of {publication} to start commenting.":"प्रतिक्रिया सुरु गर्न {publication} को सशुल्क सदस्य बन्नुहोस्।",Best:"उत्तम",Cancel:"रद्द गर्नुहोस्",Comment:"प्रतिक्रिया","Complete your profile":"आफ्नो प्रोफाइल पूरा गर्नुहोस्",Delete:"मेटाउनुहोस्",Deleted:"मेटाइयो","Deleted member":"मेटाइएको सदस्य",Deleting:"मेटाइँदैछ",Discussion:"छलफल",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:"लुकाउनुहोस्","Hide comment":"प्रतिक्रिया लुकाउनुहोस्","Jamie Larson":"जेमी लार्सन","Join the discussion":"छलफलमा सामेल हुनुहोस्","Just now":"भर्खरै","Load more ({amount})":"थप लोड गर्नुहोस् ({amount})","Local resident":"स्थानीय बासिन्दा","Member discussion":"सदस्य छलफल",Name:"नाम",Neurosurgeon:"न्यूरोसर्जन",Newest:"सबैभन्दा नयाँ",Oldest:"सबैभन्दा पुरानो","Once deleted, this comment cant be recovered.":"एक पटक मेटाइएपछि, यो प्रतिक्रिया पुन: प्राप्त गर्न सकिँदैन।","One hour ago":"एक घण्टा अघि","One min ago":"एक मिनेट अघि",removed:"हटाइयो","Replied to":"प्रत्युत्तर दिइयो",Reply:"प्रत्युत्तर दिनुहोस्","Reply to":"प्रत्युत्तर दिनुहोस्","Reply to comment":"प्रतिक्रियाको प्रत्युत्तर दिनुहोस्",Report:"रिपोर्ट गर्नुहोस्","Report comment":"प्रतिक्रिया रिपोर्ट गर्नुहोस्","Report this comment?":"यो प्रतिक्रिया रिपोर्ट गर्नुहुन्छ?",Save:"बचत गर्नुहोस्",Sending:"पठाइँदैछ",Sent:"पठाइयो",Show:"देखाउनुहोस्","Show {amount} more replies":"थप {amount} प्रत्युत्तरहरू देखाउनुहोस्","Show 1 more reply":"थप १ प्रत्युत्तर देखाउनुहोस्","Show comment":"प्रतिक्रिया देखाउनुहोस्","Sign in":"साइन इन गर्नुहोस्","Sign up now":"अहिले दर्ता गर्नुहोस्","Sort by":"क्रमबद्ध गर्नुहोस्","Start the conversation":"कुराकानी सुरु गर्नुहोस्","This comment has been hidden.":"यो प्रतिक्रिया लुकाइएको छ।","This comment has been removed.":"यो प्रतिक्रिया हटाइएको छ।","Upgrade now":"अहिले अपग्रेड गर्नुहोस्",Yesterday:"हिजो","Your request will be sent to the owner of this site.":"तपाईंको अनुरोध यस साइटको मालिकलाई पठाइनेछ।"},$A={"{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?","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","Complete your profile":"Vervolledig jouw profiel",Delete:"Verwijderen",Deleted:"Verwijderd","Deleted member":"Verwijderd lid",Deleting:"Wordt verwijderd",Discussion:"Gesprek",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:"Verbergen","Hide comment":"Verberg reactie","Jamie Larson":"Jan Jansen","Join the discussion":"Doe mee aan het gesprek","Just now":"Zojuist","Load more ({amount})":"Laad meer ({amount})","Local resident":"Lokale bewoner","Member discussion":"Gesprek",Name:"Naam",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment cant 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",removed:"verwijderd","Replied to":"Geantwoord op",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",Sending:"Verzenden",Sent:"Verzonden",Show:"Tonen","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","This comment has been hidden.":"Deze reactie is verborgen.","This comment has been removed.":"Deze reactie is verwijderd.","Upgrade now":"Upgrade nu",Yesterday:"Gisteren","Your request will be sent to the owner of this site.":"Jouw melding zal worden verzonden naar de eigenaar van deze site."},vA={"{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?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",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:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},SA={"{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?":"ਕੀ ਤੁਹਾਨੂੰ ਯਕੀਨ ਹੈ?","Become a member of {publication} to start commenting.":"{publication} ਦੇ ਮੈਂਬਰ ਬਣੋ ਅਤੇ ਟਿੱਪਣੀ ਕਰਨਾ ਸ਼ੁਰੂ ਕਰੋ।","Become a paid member of {publication} to start commenting.":"{publication} ਦੇ ਸਹਿਯੋਗੀ ਮੈਂਬਰ ਬਣੋ ਅਤੇ ਟਿੱਪਣੀ ਕਰਨਾ ਸ਼ੁਰੂ ਕਰੋ।",Best:"ਸਭ ਤੋਂ ਵਧੀਆ",Cancel:"ਰੱਦ ਕਰੋ",Comment:"ਟਿੱਪਣੀ","Complete your profile":"ਆਪਣਾ ਨਿੱਜੀ ਪੰਨਾ ਪੂਰਾ ਕਰੋ",Delete:"ਮਿਟਾਓ",Deleted:"ਮਿਟਾਇਆ ਗਿਆ","Deleted member":"ਮਿਟਾਇਆ ਗਿਆ ਮੈਂਬਰ",Deleting:"ਮਿਟਾਇਆ ਜਾ ਰਿਹਾ ਹੈ",Discussion:"ਵਿਚਾਰ-ਵਟਾਂਦਰਾ",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:"ਛੁਪਾਓ","Hide comment":"ਟਿੱਪਣੀ ਛੁਪਾਓ","Jamie Larson":"ਫਲਾਣਾ ਫਲਾਣੀ","Join the discussion":"ਵਿਚਾਰ-ਵਟਾਂਦਰੇ ਵਿੱਚ ਸ਼ਾਮਲ ਹੋਵੋ","Just now":"ਹੁਣੇ ਹੁਣੇ","Load more ({amount})":"ਹੋਰ ਲੋਡ ਕਰੋ ({amount})","Local resident":"ਸਥਾਨਕ ਨਿਵਾਸੀ","Member discussion":"ਮੈਂਬਰ ਵਿਚਾਰ-ਵਟਾਂਦਰਾ",Name:"ਨਾਮ",Neurosurgeon:"ਨਿਊਰੋਸਰਜਨ",Newest:"ਸਭ ਤੋਂ ਨਵਾਂ",Oldest:"ਸਭ ਤੋਂ ਪੁਰਾਣਾ","Once deleted, this comment cant be recovered.":"ਇੱਕ ਵਾਰ ਮਿਟਾਉਣ ਤੋਂ ਬਾਅਦ, ਇਹ ਟਿੱਪਣੀ ਮੁੜ ਪ੍ਰਾਪਤ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕਦੀ।","One hour ago":"ਇੱਕ ਘੰਟਾ ਪਹਿਲਾਂ","One min ago":"ਇੱਕ ਮਿੰਟ ਪਹਿਲਾਂ",removed:"ਹਟਾਇਆ ਗਿਆ","Replied to":"ਨੂੰ ਜਵਾਬ ਦਿੱਤਾ",Reply:"ਜਵਾਬ","Reply to":"ਨੂੰ ਜਵਾਬ ਦਿਓ","Reply to comment":"ਟਿੱਪਣੀ ਦਾ ਜਵਾਬ ਦਿਓ",Report:"ਰਿਪੋਰਟ ਕਰੋ","Report comment":"ਟਿੱਪਣੀ ਦੀ ਰਿਪੋਰਟ ਕਰੋ","Report this comment?":"ਕੀ ਇਸ ਟਿੱਪਣੀ ਦੀ ਰਿਪੋਰਟ ਕਰਨੀ ਹੈ?",Save:"ਸੁਰੱਖਿਅਤ ਕਰੋ",Sending:"ਭੇਜਿਆ ਜਾ ਰਿਹਾ ਹੈ",Sent:"ਭੇਜ ਦਿੱਤਾ ਗਿਆ",Show:"ਦਿਖਾਓ","Show {amount} more replies":"{amount} ਹੋਰ ਜਵਾਬ ਦਿਖਾਓ","Show 1 more reply":"1 ਹੋਰ ਜਵਾਬ ਦਿਖਾਓ","Show comment":"ਟਿੱਪਣੀ ਦਿਖਾਓ","Sign in":"ਸਾਈਨ ਇਨ ਕਰੋ","Sign up now":"ਹੁਣੇ ਸਾਈਨ ਅੱਪ ਕਰੋ","Sort by":"ਇਸ ਅਨੁਸਾਰ ਕ੍ਰਮਬੱਧ ਕਰੋ","Start the conversation":"ਗੱਲਬਾਤ ਸ਼ੁਰੂ ਕਰੋ","This comment has been hidden.":"ਇਹ ਟਿੱਪਣੀ ਛੁਪਾ ਦਿੱਤੀ ਗਈ ਹੈ।","This comment has been removed.":"ਇਹ ਟਿੱਪਣੀ ਹਟਾ ਦਿੱਤੀ ਗਈ ਹੈ।","Upgrade now":"ਹੁਣੇ ਅੱਪਗਰੇਡ ਕਰੋ",Yesterday:"ਕੱਲ੍ਹ","Your request will be sent to the owner of this site.":"ਤੁਹਾਡੀ ਬੇਨਤੀ ਇਸ ਸਾਈਟ ਦੇ ਸੰਚਾਲਕ ਨੂੰ ਭੇਜੀ ਜਾਵੇਗੀ।"},xA={"{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?","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","Complete your profile":"Skompletuj Twój profil",Delete:"Usuń",Deleted:"Usunięto","Deleted member":"Usunięte konto",Deleting:"Usuwanie",Discussion:"Dyskusja",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:"Ukryj","Hide comment":"Ukryj komentarz","Jamie Larson":"Jamie Larson","Join the discussion":"Dołącz do dyskusji","Just now":"Przed chwilą","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 cant be recovered.":"Po usunięciu, nie będzie możliwe przywrócenie tego komentarza","One hour ago":"Godzinę temu","One min ago":"Minutę temu",removed:"usunięte","Replied to":"Odpowiedź na",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",Sending:"Wysyłanie",Sent:"Wysłano",Show:"Pokaż","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ę","This comment has been hidden.":"Komentarz został ukryty.","This comment has been removed.":"Komentarz został usunięty.","Upgrade now":"Ulepsz teraz",Yesterday:"Wczoraj","Your request will be sent to the owner of this site.":"Twoje zgłoszenie zostało przesłane do administratora strony."},kA={"{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?","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","Complete your profile":"Complete o seu perfil",Delete:"Eliminar",Deleted:"Eliminado","Deleted member":"Membro eliminado",Deleting:"Eliminando",Discussion:"Discussão",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:"Esconder","Hide comment":"Esconder comentário","Jamie Larson":"Jane Doe","Join the discussion":"Junte-se à discussão","Just now":"Agora","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 cant be recovered.":"","One hour ago":"uma hora atrás","One min ago":"um minuto atrás",removed:"removido","Replied to":"Respondeu a",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",Sending:"Enviar",Sent:"Enviado",Show:"Mostrar","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","This comment has been hidden.":"Este comentário foi ocultado","This comment has been removed.":"Este comentário foi removido","Upgrade now":"Atualize agora",Yesterday:"Ontem","Your request will be sent to the owner of this site.":"O seu pedido será enviado para o dono deste site."},EA={"{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?","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","Complete your profile":"Complete seu perfil",Delete:"Excluir",Deleted:"Excluído","Deleted member":"Membro excluído",Deleting:"Excluindo",Discussion:"Discussão",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:"Ocultar","Hide comment":"Ocultar comentário","Jamie Larson":"Cris Silva","Join the discussion":"Participe da discussão","Just now":"Agora mesmo","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 cant 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",removed:"removido","Replied to":"Respondeu a",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",Sending:"Enviando",Sent:"Enviado",Show:"Exibir","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","This comment has been hidden.":"Este comentário foi ocultado.","This comment has been removed.":"Este comentário foi removido.","Upgrade now":"Atualize agora",Yesterday:"Ontem","Your request will be sent to the owner of this site.":"Sua solicitação será enviada ao proprietário deste site."},CA={"{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?":"","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ă","Complete your profile":"Completează-ți profilul",Delete:"Șterge",Deleted:"","Deleted member":"Membru șters",Deleting:"",Discussion:"Discuție",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:"Ascunde","Hide comment":"Ascunde comentariul","Jamie Larson":"Jamie Larson","Join the discussion":"Alătură-te discuției","Just now":"Chiar acum","Load more ({amount})":"","Local resident":"Rezident local","Member discussion":"Discuție membrii",Name:"Nume",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"Acum o oră","One min ago":"Acum un minut",removed:"","Replied to":"",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ă",Sending:"Se trimite",Sent:"Trimis",Show:"Arată","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","This comment has been hidden.":"Acest comentariu a fost ascuns.","This comment has been removed.":"Acest comentariu a fost eliminat.","Upgrade now":"Actualizează acum",Yesterday:"Ieri","Your request will be sent to the owner of this site.":"Cererea dumneavoastră va fi trimisă proprietarului acestui site."},NA={"{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?":"Вы уверены?","Become a member of {publication} to start commenting.":"Присоединяйтесь к {publication} чтобы начать комментировать.","Become a paid member of {publication} to start commenting.":"Станьте платным участником {publication} чтобы начать комментировать.",Best:"Лучший",Cancel:"Отмена",Comment:"Комментарий","Complete your profile":"Заполните свой профиль",Delete:"Удалить",Deleted:"Удалено","Deleted member":"Удалённый участник",Deleting:"Удаление",Discussion:"Обсуждение",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:"Скрыть","Hide comment":"Скрыть комментарий","Jamie Larson":"Павел Бид","Join the discussion":"Присоединиться к обсуждению","Just now":"Сейчас","Load more ({amount})":"Загрузить ещё ({amount})","Local resident":"Местный житель","Member discussion":"Обсуждение участников",Name:"Имя",Neurosurgeon:"Нейрохирург",Newest:"Сначала новые",Oldest:"Сначала старые","Once deleted, this comment cant be recovered.":"После удаления этот комментарий не может быть восстановлен.","One hour ago":"Час назад","One min ago":"Минуту назад",removed:"удалён","Replied to":"Ответ на",Reply:"Ответить","Reply to":"Ответить на","Reply to comment":"Ответить на комментарий",Report:"Пожаловаться","Report comment":"Пожаловаться на комментарий","Report this comment?":"Пожаловаться на этот комментарий?",Save:"Сохранить",Sending:"Отправка",Sent:"Отправлено",Show:"Показать","Show {amount} more replies":"Показать ещё {amount} ответа(ов)","Show 1 more reply":"Показать ответ","Show comment":"Показать комментарий","Sign in":"Войти","Sign up now":"Зарегистрироваться","Sort by":"Сортировать по","Start the conversation":"Начать обсуждение","This comment has been hidden.":"Этот комментарий скрыт","This comment has been removed.":"Этот комментарий был удалён","Upgrade now":"Улучшить подписку",Yesterday:"Вчера","Your request will be sent to the owner of this site.":"Ваш запрос будет отправлен владельцу сайта."},AA={"{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?":"","Become a member of {publication} to start commenting.":"අදහස් දැක්වීම ආරම්භ කිරීමට {publication} හි සාමාජිකයෙකු වන්න","Become a paid member of {publication} to start commenting.":"අදහස් දැක්වීම ආරම්භ කිරීමට {publication} හි ගෙවීම් කරන ල​ද සාමාජිකයෙකු වන්න",Best:"",Cancel:"අවලංගු කරන්​න​",Comment:"අදහ​ස","Complete your profile":"ඔබගේ ගිණුම සම්පූර්ණ කරන්​න",Delete:"Delete කරන්​න",Deleted:"","Deleted member":"සාමාජිකයාව delete කරන්​න",Deleting:"",Discussion:"සාකච්ඡා​ව",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:"සඟවන්න","Hide comment":"අදහස සඟවන්න","Jamie Larson":"ජේමි ලාර්සන්","Join the discussion":"සාකච්ඡාවට එක්වන්න","Just now":"මේ දැ​න්","Load more ({amount})":"","Local resident":"දේශීය පදිංචි","Member discussion":"සාමාජික සාකච්ඡාව",Name:"න​ම",Neurosurgeon:"ස්නායු ශ​ල්‍ය වෛ​ද්‍ය",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"පැයකට පෙ​ර","One min ago":"මිනිත්තුවකට පෙ​ර",removed:"","Replied to":"",Reply:"ප්‍රතිචාර දක්වන්​න","Reply to":"","Reply to comment":"අදහසට ‍රතිචාර දක්වන්​න",Report:"වාර්තා කරන්​න","Report comment":"අදහසට වාර්තා කරන්​න","Report this comment?":"මෙම අදහසට වාර්තා කරන්නෙහිද ?",Save:"සුරකින්​න",Sending:"යවමි​න්",Sent:"යැව්වා",Show:"පෙන්වන්​න","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":"සංවාදය ආරම්භ කරන්න","This comment has been hidden.":"මෙම අදහස සඟවා ඇත.","This comment has been removed.":"මෙම අදහස ඉවත් කර ඇත.","Upgrade now":"දැන් upgrade කරන්න",Yesterday:"ඊ​යෙ","Your request will be sent to the owner of this site.":"ඔබගේ ඉල්ලීම මෙම අඩවියේ හිමිකරු වෙත යවනු ලැබේ."},DA={"{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ý?","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","Complete your profile":"Dokončite váš profil",Delete:"Vymazať",Deleted:"Vymazané","Deleted member":"Vymazaný člen",Deleting:"Vymazávam",Discussion:"Diskusia",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:"Skryť","Hide comment":"Skryť komentár","Jamie Larson":"Jamie Larson","Join the discussion":"Zapojiť sa do diskusie","Just now":"Teraz","Load more ({amount})":"","Local resident":"Miestny obyvateľ","Member discussion":"Členská diskusia",Name:"Meno",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"Po odstránení nebude možné tento komentár obnoviť.","One hour ago":"Pred hodinou","One min ago":"Pred minútou",removed:"odstránené","Replied to":"Odpoveď na",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ť",Sending:"Odosielanie",Sent:"Odoslané",Show:"Zobraziť","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","This comment has been hidden.":"Tento komentár bol skrytý.","This comment has been removed.":"Tento komentár bol vymazaný.","Upgrade now":"Upraviť členstvo",Yesterday:"Včera","Your request will be sent to the owner of this site.":"Vaša požiadavka bude odoslaná vlastníkovi stránky."},RA={"{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?","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","Complete your profile":"Dokončajte svoj profil",Delete:"Izbriši",Deleted:"Izbrisano","Deleted member":"Izbrisan član",Deleting:"Brisanje",Discussion:"Razprava",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:"Skrij","Hide comment":"Skrij komentar","Jamie Larson":"Janez Novak","Join the discussion":"Pridružite se razpravi","Just now":"Pravkar","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 cant be recovered.":"Ko je komentar izbrisan, ga ni mogoče več obnoviti.","One hour ago":"Pred eno uro","One min ago":"Pred eno minuto",removed:"odstranjeno","Replied to":"Odgovorjeno na",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",Sending:"Pošiljanje",Sent:"Poslano",Show:"Prikaži","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","This comment has been hidden.":"Ta komentar je bil skrit.","This comment has been removed.":"Ta komentar je bil odstranjen.","Upgrade now":"Nadgradite zdaj",Yesterday:"Včeraj","Your request will be sent to the owner of this site.":"Vaša zahteva bo poslana lastniku te strani."},OA={"{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?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",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:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},TA={"{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?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",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:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},MA={"{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?":"","Become a member of {publication} to start commenting.":"Постаните члан {publication} да бисте почели са коментарисањем.","Become a paid member of {publication} to start commenting.":"Постаните плаћени члан {publication} да бисте почели са коментарисањем.",Best:"",Cancel:"Откажи",Comment:"Коментар","Complete your profile":"Попуните свој профил",Delete:"Избриши",Deleted:"","Deleted member":"Обрисан члан",Deleting:"",Discussion:"Дискусија",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:"Сакриј","Hide comment":"Сакриј коментар","Jamie Larson":"Џејми Ларсон","Join the discussion":"Придружите се дискусији","Just now":"Управо сада","Load more ({amount})":"","Local resident":"Мештанин","Member discussion":"Дискусија чланова",Name:"Име",Neurosurgeon:"Неурохирург",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"Пре један сат","One min ago":"",removed:"","Replied to":"",Reply:"Одговори","Reply to":"","Reply to comment":"Одговорите на коментар",Report:"Пријави","Report comment":"Пријави коментар","Report this comment?":"Пријавити овај коментар?",Save:"Сачувај",Sending:"Слање",Sent:"Послато",Show:"Прикажи","Show {amount} more replies":"Прикажи још {amount} одговора","Show 1 more reply":"Прикажи још 1 одговор","Show comment":"Прикажи коментар","Sign in":"Пријавите се","Sign up now":"Пријавите се сада","Sort by":"","Start the conversation":"Почните разговор","This comment has been hidden.":"Овај коментар је сакривен.","This comment has been removed.":"Овај коментар је уклоњен.","Upgrade now":"Надоградите сада",Yesterday:"Јуче","Your request will be sent to the owner of this site.":"Ваш захтев ће бити послат власнику овог сајта."},jA={"{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":"","Already a member?":"Redan medlem?",Anonymous:"Anonym","Are you sure?":"","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:"",Cancel:"Avbryt",Comment:"Kommentar","Complete your profile":"Fyll i hela din profil",Delete:"Ta bort",Deleted:"","Deleted member":"Borttagen medlem",Deleting:"",Discussion:"Diskussion",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":"",Hide:"Dölj","Hide comment":"Dölj kommentar","Jamie Larson":"Anders Andersson","Join the discussion":"Var med i diskussionen","Just now":"Nu precis","Load more ({amount})":"","Local resident":"Lokalboende","Member discussion":"Medlemsdiskussion",Name:"Namn",Neurosurgeon:"Neurokirurg",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"En timme sedan","One min ago":"En minut sedan",removed:"","Replied to":"",Reply:"Svar","Reply to":"","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",Sending:"Skickar",Sent:"Skickad",Show:"Visa","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","This comment has been hidden.":"Denna kommentar har dolts","This comment has been removed.":"Denna kommentar är borttagen","Upgrade now":"Uppgradera nu",Yesterday:"I går","Your request will be sent to the owner of this site.":"Din anmälan skickas till ansvarig för webbplatsen"},PA={"{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?":"","Become a member of {publication} to start commenting.":"เป็นสมาชิกของ {publication} เพื่อเริ่มแสดงความคิดเห็น","Become a paid member of {publication} to start commenting.":"เป็นสมาชิกแบบชำระเงินของ {publication} เพื่อเริ่มแสดงความคิดเห็น",Best:"",Cancel:"ยกเลิก",Comment:"ความคิดเห็น","Complete your profile":"กรอกโปรไฟล์ของคุณให้สมบูรณ์",Delete:"ลบ",Deleted:"","Deleted member":"ผู้ใช้ที่ถูกลบ",Deleting:"",Discussion:"การสนทนา",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:"ซ่อน","Hide comment":"ซ่อนข้อความ","Jamie Larson":"กนกพัฒน์ สัณห์ฤทัย","Join the discussion":"เข้าร่วมการสนทนา","Just now":"ตอนนี้","Load more ({amount})":"","Local resident":"ผู้อยู่อาศัยในท้องถิ่น","Member discussion":"การสนทนาของสมาชิก",Name:"ชื่อ",Neurosurgeon:"ศัลยแพทย์ระบบประสาท",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"1 ชั่วโมงที่แล้ว","One min ago":"",removed:"","Replied to":"",Reply:"ตอบกลับ","Reply to":"","Reply to comment":"ตอบกลับความคิดเห็น",Report:"รายงาน","Report comment":"รายงานความคิดเห็น","Report this comment?":"รายงานความคิดเห็นนี้?",Save:"บันทึก",Sending:"กำลังส่ง",Sent:"ส่งแล้ว",Show:"แสดง","Show {amount} more replies":"แสดง {amount} การตอบกลับเพิ่มเติม","Show 1 more reply":"แสดงอีก 1 การตอบกลับ","Show comment":"ดูความคิดเห็น","Sign in":"ลงชื่อเข้าใช้","Sign up now":"สมัครใช้งานตอนนี้เลย","Sort by":"","Start the conversation":"เริ่มการสนทนา","This comment has been hidden.":"ความคิดเห็นนี้ถูกซ่อน","This comment has been removed.":"ความคิดเห็นนี้ถูกลบ","Upgrade now":"อัพเกรดตอนนี้เลย",Yesterday:"เมื่อวาน","Your request will be sent to the owner of this site.":"คำขอของคุณจะถูกส่งไปยังผู้ดูแลเว็บไซต์"},LA={"{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?","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","Complete your profile":"Profilinizi tamamlayın",Delete:"Sil",Deleted:"Silindi","Deleted member":"Silinen üye",Deleting:"Siliniyor",Discussion:"Yorumlar",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:"Gizle","Hide comment":"Yorumu gizle","Jamie Larson":"Ahmet Yılmaz","Join the discussion":"Tartışmaya katıl","Just now":"Şu anda","Load more ({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 cant be recovered.":"Bu yorum silindikten sonra kurtarılamaz.","One hour ago":"Bir saat önce","One min ago":"Bir dakika önce",removed:"kaldırıldı","Replied to":"Cevaplandı",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",Sending:"Gönderiliyor",Sent:"Gönderildi",Show:"Göster","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ş","This comment has been hidden.":"Bu yorum gizlendi.","This comment has been removed.":"Bu yorum kaldırıldı.","Upgrade now":"Şimdi yükselt",Yesterday:"Dün","Your request will be sent to the owner of this site.":"Talebiniz bu sitenin sahibine gönderilecektir."},IA={"{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?":"","Become a member of {publication} to start commenting.":"Станьте учасником {publication} щоб почати коментувати.","Become a paid member of {publication} to start commenting.":"Станьте платним учасником {publication} щоб почати коментувати.",Best:"",Cancel:"Відмінити",Comment:"Коментувати","Complete your profile":"Заповніть свій профіль",Delete:"Видалити",Deleted:"","Deleted member":"Видалений учасник",Deleting:"",Discussion:"Обговорення",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:"Сховати","Hide comment":"Сховати коментар","Jamie Larson":"Ваше імʼя","Join the discussion":"Долучитися до обговорення","Just now":"Прямо зараз","Load more ({amount})":"","Local resident":"Місцевий експерт","Member discussion":"Обговорення учасників",Name:"Імʼя",Neurosurgeon:"Нейрохірург",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"Одну годину тому","One min ago":"Одну хвилину тому",removed:"","Replied to":"",Reply:"Відповісти","Reply to":"","Reply to comment":"Відповісти на коментар",Report:"Поскаржитися","Report comment":"Поскаржитися на коментар","Report this comment?":"Поскаржитися на цей коментар?",Save:"Зберегти",Sending:"Відправка",Sent:"Відправлено",Show:"Показати","Show {amount} more replies":"Показати ще {amount} відповідей","Show 1 more reply":"Показати ще одну відповідь","Show comment":"Показати коментар","Sign in":"Увійти","Sign up now":"Зареєструватись зараз","Sort by":"","Start the conversation":"Почніть розмову","This comment has been hidden.":"Цей коментар було приховано.","This comment has been removed.":"Цей коментар було видалено.","Upgrade now":"Оновити зараз",Yesterday:"Вчора","Your request will be sent to the owner of this site.":"Ваш запит буде надіслано власнику цього сайту."},zA={"{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?":"","Become a member of {publication} to start commenting.":"تبادلہ شروع کرنے کے لئے {publication} کا رکن بنیں۔","Become a paid member of {publication} to start commenting.":"تبادلہ شروع کرنے کے لئے {publication} کا ادائیگی رکن بنیں۔",Best:"",Cancel:"منسوخ کریں",Comment:"تبادلہ","Complete your profile":"اپنا پروفائل مکمل کریں",Delete:"حذف کریں",Deleted:"","Deleted member":"حذف شدہ رکن",Deleting:"",Discussion:"تبادلہ",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:"چھپائیں","Hide comment":"تبادلہ چھپائیں","Jamie Larson":"جیمی لارسن","Join the discussion":"تبادلے میں شامل ہوں","Just now":"ابھی","Load more ({amount})":"","Local resident":"مقامی رہائشی","Member discussion":"رکن کا تبادلہ",Name:"نام",Neurosurgeon:"نیوروسرجن",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"ایک گھنٹہ پہلے","One min ago":"",removed:"","Replied to":"",Reply:"جواب","Reply to":"","Reply to comment":"تبادلے کا جواب دیں",Report:"رپورٹ","Report comment":"تبادلے کی رپورٹ","Report this comment?":"کیا آپ اس تبادلے کو رپورٹ کرنا چاہتے ہیں؟",Save:"محفوظ کریں",Sending:"بھیج رہا ہے",Sent:"بھیجا گیا",Show:"دکھائیں","Show {amount} more replies":"{amount} مزید جوابات دکھائیں","Show 1 more reply":"1 مزید جواب دکھائیں","Show comment":"تبادلہ دکھائیں","Sign in":"سائن ان کریں","Sign up now":"ابھی رجسٹر ہوں","Sort by":"","Start the conversation":"بات چیت شروع کریں","This comment has been hidden.":"یہ تبادلہ چھپا گیا ہے۔","This comment has been removed.":"یہ تبادلہ ہٹا دیا گیا ہے۔","Upgrade now":"اب اپ گریڈ کریں",Yesterday:"کل","Your request will be sent to the owner of this site.":"آپ کا درخواست اس سائٹ کے مالک کو بھیجا جائے گا۔"},BA={"{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?":"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",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:"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"","One min ago":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"",Sending:"",Sent:"",Show:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","This comment has been hidden.":"","This comment has been removed.":"","Upgrade now":"",Yesterday:"","Your request will be sent to the owner of this site.":""},FA={"{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?","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","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",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:"Ẩn","Hide comment":"Ẩn bình luận","Jamie Larson":"Nguyễn Minh Châu","Join the discussion":"Tham gia thảo luận","Just now":"Vừa xong","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 cant 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",removed:"đã xóa","Replied to":"Đã trả lời",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",Sending:"Đang gửi",Sent:"Đã gửi",Show:"Hiển thị","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","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.","Upgrade now":"Nâng cấp",Yesterday:"Hôm qua","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."},HA={"{amount} characters left":"还剩{amount}字","{amount} comments":"{amount}条评论","{amount} hrs ago":"{amount}小时前","{amount} mins ago":"{amount}分钟前","{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?":"","Become a member of {publication} to start commenting.":"成为{publication}的会员以开始评论。","Become a paid member of {publication} to start commenting.":"成为{publication}的付费会员以开始评论。",Best:"",Cancel:"取消",Comment:"评论","Complete your profile":"完善您的注册信息",Delete:"删除",Deleted:"","Deleted member":"删除会员",Deleting:"",Discussion:"讨论",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:"隐藏","Hide comment":"隐藏评论","Jamie Larson":"Jamie Larson","Join the discussion":"加入讨论","Just now":"刚刚","Load more ({amount})":"","Local resident":"本地居民","Member discussion":"会员讨论",Name:"称呼",Neurosurgeon:"神经外科医生",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"一小时前","One min ago":"一分钟前",removed:"","Replied to":"",Reply:"回复","Reply to":"","Reply to comment":"回复评论",Report:"举报","Report comment":"举报评论","Report this comment?":"举报此评论?",Save:"保存",Sending:"正在发送",Sent:"已发送",Show:"显示","Show {amount} more replies":"显示后续{amount}条评论","Show 1 more reply":"显示下一条评论","Show comment":"显示评论","Sign in":"登录","Sign up now":"立刻注册","Sort by":"","Start the conversation":"开始对话","This comment has been hidden.":"该条评论已被隐藏。","This comment has been removed.":"该条评论已被移除。","Upgrade now":"立刻升级",Yesterday:"昨天","Your request will be sent to the owner of this site.":"您的请求将被发送给站点所有者。"},VA={"{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?":"確認?","Become a member of {publication} to start commenting.":"成為{publication}的會員以開始留言。","Become a paid member of {publication} to start commenting.":"成為{publication}的付費會員以開始留言。",Best:"",Cancel:"取消",Comment:"留言","Complete your profile":"完善您的註冊資訊",Delete:"刪除",Deleted:"刪除","Deleted member":"刪除會員",Deleting:"刪除中",Discussion:"討論",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:"隱藏","Hide comment":"隱藏留言","Jamie Larson":"Jamie Larson","Join the discussion":"加入討論","Just now":"剛剛","Load more ({amount})":"載入更多({amount})","Local resident":"本地居民","Member discussion":"會員討論",Name:"稱呼",Neurosurgeon:"神經外科醫生",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"此留言一經刪除後將無法復原。","One hour ago":"一小時前","One min ago":"一分鐘前",removed:"移除","Replied to":"回覆",Reply:"回覆","Reply to":"回覆","Reply to comment":"回覆留言",Report:"舉報","Report comment":"舉報留言","Report this comment?":"舉報此留言?",Save:"儲存",Sending:"正在發送",Sent:"已發送",Show:"顯示","Show {amount} more replies":"顯示後續 {amount} 則留言","Show 1 more reply":"顯示下一則留言","Show comment":"顯示留言","Sign in":"登錄","Sign up now":"立即註冊","Sort by":"排序方式","Start the conversation":"開始對話","This comment has been hidden.":"該則留言已被隱藏。","This comment has been removed.":"該則留言已被移除。","Upgrade now":"立即升級",Yesterday:"昨天","Your request will be sent to the owner of this site.":"您的請求將被發送給所有者。"},UA={"{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?":"","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","Complete your profile":"Kamilisha wasifu wako",Delete:"Futa",Deleted:"","Deleted member":"Mwanachama aliyefutwa",Deleting:"",Discussion:"Majadiliano",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:"Ficha","Hide comment":"Ficha maoni","Jamie Larson":"Jamie Larson","Join the discussion":"Jiunge na mjadala","Just now":"Hivi sasa","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 cant be recovered.":"","One hour ago":"Saa moja iliyopita","One min ago":"",removed:"","Replied to":"",Reply:"Jibu","Reply to":"","Reply to comment":"Jibu maoni",Report:"Ripoti","Report comment":"Ripoti maoni","Report this comment?":"Unataka kuripoti maoni haya?",Save:"Hifadhi",Sending:"Inatuma",Sent:"Imetumwa",Show:"Onyesha","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","This comment has been hidden.":"Maoni haya yamefichwa.","This comment has been removed.":"Maoni haya yameondolewa.","Upgrade now":"Boresha sasa",Yesterday:"Jana","Your request will be sent to the owner of this site.":"Ombi lako litatumwa kwa mmiliki wa tovuti hii."},_A={"{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?":"","Become a member of {publication} to start commenting.":"கருத்துத் தெரிவிக்க {publication} இல் உறுப்பினராகுங்கள்.","Become a paid member of {publication} to start commenting.":"கருத்துத் தெரிவிக்க {publication} இல் கட்டண உறுப்பினராகுங்கள்.",Best:"",Cancel:"ரத்து செய்",Comment:"கருத்து","Complete your profile":"உங்கள் சுயவிவரத்தை பூர்த்தி செய்யவும்",Delete:"நீக்கவும்",Deleted:"","Deleted member":"நீக்கப்பட்ட உறுப்பினர்",Deleting:"",Discussion:"கலந்துரையாடல்",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:"மறைக்கவும்","Hide comment":"கருத்தை மறை","Jamie Larson":"ஜேமி லார்சன்","Join the discussion":"கலந்துரையாடலில் சேரவும்","Just now":"சற்றுமுன்னர்தான்","Load more ({amount})":"","Local resident":"உள்ளூர்வாசி","Member discussion":"உறுப்பினர் கருத்து",Name:"பெயர்",Neurosurgeon:"நரம்பியல் அறுவை சிகிச்சை நிபுணர்",Newest:"",Oldest:"","Once deleted, this comment cant be recovered.":"","One hour ago":"ஒரு மணி முன்பு","One min ago":"ஒரு நிமிடம் முன்பு",removed:"","Replied to":"",Reply:"பதிலளிக்கவும்","Reply to":"","Reply to comment":"கருத்துக்கு பதிலளிக்கவும்",Report:"புகாரளி","Report comment":"கருத்தைப் புகாரளி","Report this comment?":"இந்தக் கருத்தைப் புகாரளிக்கவா?",Save:"சேமிக்க",Sending:"அனுப்புகிறது",Sent:"அனுப்பப்பட்டது",Show:"காட்டு","Show {amount} more replies":"முந்தைய {amount} மேலும் பதில்கள்க் காட்டு","Show 1 more reply":"மேலும் 1 பதிலைக் காட்டு","Show comment":"கருத்தைக் காட்டு","Sign in":"உள்நுழைக","Sign up now":"இப்பொழுதே பதிவு செய்யுங்கள்","Sort by":"","Start the conversation":"உரையாடலைத் தொடங்குங்கள்","This comment has been hidden.":"இந்தக் கருத்து மறைக்கப்பட்டது.","This comment has been removed.":"இந்தக் கருத்து நீக்கப்பட்டது.","Upgrade now":"இப்போதே மேம்படுத்தவும்",Yesterday:"நேற்று","Your request will be sent to the owner of this site.":"உங்கள் கோரிக்கை இந்த தளத்தின் உரிமையாளருக்கு அனுப்பப்படும்."};var Mw;function jw(){return Mw||(Mw={"/ghost/i18n/locales/af/comments.json":function(){return IN},"/ghost/i18n/locales/ar/comments.json":function(){return zN},"/ghost/i18n/locales/bg/comments.json":function(){return BN},"/ghost/i18n/locales/bn/comments.json":function(){return FN},"/ghost/i18n/locales/bs/comments.json":function(){return HN},"/ghost/i18n/locales/ca/comments.json":function(){return VN},"/ghost/i18n/locales/cs/comments.json":function(){return UN},"/ghost/i18n/locales/da/comments.json":function(){return _N},"/ghost/i18n/locales/de/comments.json":function(){return JN},"/ghost/i18n/locales/de-CH/comments.json":function(){return YN},"/ghost/i18n/locales/el/comments.json":function(){return KN},"/ghost/i18n/locales/en/comments.json":function(){return WN},"/ghost/i18n/locales/eo/comments.json":function(){return qN},"/ghost/i18n/locales/es/comments.json":function(){return GN},"/ghost/i18n/locales/et/comments.json":function(){return QN},"/ghost/i18n/locales/eu/comments.json":function(){return ZN},"/ghost/i18n/locales/fa/comments.json":function(){return XN},"/ghost/i18n/locales/fi/comments.json":function(){return eA},"/ghost/i18n/locales/fr/comments.json":function(){return tA},"/ghost/i18n/locales/gd/comments.json":function(){return nA},"/ghost/i18n/locales/he/comments.json":function(){return oA},"/ghost/i18n/locales/hi/comments.json":function(){return rA},"/ghost/i18n/locales/hr/comments.json":function(){return sA},"/ghost/i18n/locales/hu/comments.json":function(){return iA},"/ghost/i18n/locales/id/comments.json":function(){return aA},"/ghost/i18n/locales/is/comments.json":function(){return lA},"/ghost/i18n/locales/it/comments.json":function(){return cA},"/ghost/i18n/locales/ja/comments.json":function(){return uA},"/ghost/i18n/locales/ko/comments.json":function(){return dA},"/ghost/i18n/locales/kz/comments.json":function(){return mA},"/ghost/i18n/locales/lt/comments.json":function(){return fA},"/ghost/i18n/locales/lv/comments.json":function(){return pA},"/ghost/i18n/locales/mk/comments.json":function(){return hA},"/ghost/i18n/locales/mn/comments.json":function(){return gA},"/ghost/i18n/locales/ms/comments.json":function(){return yA},"/ghost/i18n/locales/nb/comments.json":function(){return wA},"/ghost/i18n/locales/ne/comments.json":function(){return bA},"/ghost/i18n/locales/nl/comments.json":function(){return $A},"/ghost/i18n/locales/nn/comments.json":function(){return vA},"/ghost/i18n/locales/pa/comments.json":function(){return SA},"/ghost/i18n/locales/pl/comments.json":function(){return xA},"/ghost/i18n/locales/pt/comments.json":function(){return kA},"/ghost/i18n/locales/pt-BR/comments.json":function(){return EA},"/ghost/i18n/locales/ro/comments.json":function(){return CA},"/ghost/i18n/locales/ru/comments.json":function(){return NA},"/ghost/i18n/locales/si/comments.json":function(){return AA},"/ghost/i18n/locales/sk/comments.json":function(){return DA},"/ghost/i18n/locales/sl/comments.json":function(){return RA},"/ghost/i18n/locales/sq/comments.json":function(){return OA},"/ghost/i18n/locales/sr/comments.json":function(){return TA},"/ghost/i18n/locales/sr-Cyrl/comments.json":function(){return MA},"/ghost/i18n/locales/sv/comments.json":function(){return jA},"/ghost/i18n/locales/th/comments.json":function(){return PA},"/ghost/i18n/locales/tr/comments.json":function(){return LA},"/ghost/i18n/locales/uk/comments.json":function(){return IA},"/ghost/i18n/locales/ur/comments.json":function(){return zA},"/ghost/i18n/locales/uz/comments.json":function(){return BA},"/ghost/i18n/locales/vi/comments.json":function(){return FA},"/ghost/i18n/locales/zh/comments.json":function(){return HA},"/ghost/i18n/locales/zh-Hant/comments.json":function(){return VA},"/ghost/i18n/locales/sw/comments.json":function(){return UA},"/ghost/i18n/locales/ta/comments.json":function(){return _A}})}function Pw(t){function e(n){var o=Lw(n,t);if(o!==null)return jw()[o]();throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}return e.resolve=function(n){var o=Lw(n,t);return o!==null?o:require.resolve(n)},e}function Lw(t,e){var n=JA(t);t=kl(t);var o;t[0]==="/"&&(e="");for(var r=jw(),s=["",".js",".json"];n?o=kl(e+"/node_modules/"+t):o=kl(e+"/"+t),!o.endsWith("/..");){for(var i=0;i<s.length;i++){var a=o+s[i];if(r[a])return a}if(!n)break;var l=kl(e+"/..");if(l===e)break;e=l}return null}function JA(t){var e=t[0];if(e==="/"||e==="\\")return!1;var n=t[1],o=t[2];return!(e==="."&&(!n||n==="/"||n==="\\")||e==="."&&n==="."&&(!o||o==="/"||o==="\\")||n===":"&&(o==="/"||o==="\\"))}function kl(t){t=t.replace(/\\/g,"/");for(var e=t.split("/"),n=e[0]==="",o=1;o<e.length;o++)(e[o]==="."||e[o]==="")&&e.splice(o--,1);for(var o=1;o<e.length;o++)e[o]===".."&&o>0&&e[o-1]!==".."&&e[o-1]!=="."&&(e.splice(--o,2),o--);return t=e.join("/"),n&&t[0]!=="/"?t="/"+t:t.length===0&&(t="."),t}var El={exports:{}};const z=t=>typeof t=="string",Js=()=>{let t,e;const n=new Promise((o,r)=>{t=o,e=r});return n.resolve=t,n.reject=e,n},Iw=t=>t==null?"":""+t,YA=(t,e,n)=>{t.forEach(o=>{e[o]&&(n[o]=e[o])})},KA=/###/g,zw=t=>t&&t.indexOf("###")>-1?t.replace(KA,"."):t,Bw=t=>!t||z(t),Ys=(t,e,n)=>{const o=z(e)?e.split("."):e;let r=0;for(;r<o.length-1;){if(Bw(t))return{};const s=zw(o[r]);!t[s]&&n&&(t[s]=new n),Object.prototype.hasOwnProperty.call(t,s)?t=t[s]:t={},++r}return Bw(t)?{}:{obj:t,k:zw(o[r])}},Fw=(t,e,n)=>{const{obj:o,k:r}=Ys(t,e,Object);if(o!==void 0||e.length===1){o[r]=n;return}let s=e[e.length-1],i=e.slice(0,e.length-1),a=Ys(t,i,Object);for(;a.obj===void 0&&i.length;)s=`${i[i.length-1]}.${s}`,i=i.slice(0,i.length-1),a=Ys(t,i,Object),a&&a.obj&&typeof a.obj[`${a.k}.${s}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${s}`]=n},WA=(t,e,n,o)=>{const{obj:r,k:s}=Ys(t,e,Object);r[s]=r[s]||[],r[s].push(n)},Cl=(t,e)=>{const{obj:n,k:o}=Ys(t,e);if(n)return n[o]},qA=(t,e,n)=>{const o=Cl(t,n);return o!==void 0?o:Cl(e,n)},Hw=(t,e,n)=>{for(const o in e)o!=="__proto__"&&o!=="constructor"&&(o in t?z(t[o])||t[o]instanceof String||z(e[o])||e[o]instanceof String?n&&(t[o]=e[o]):Hw(t[o],e[o],n):t[o]=e[o]);return t},ur=t=>t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var GA={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const QA=t=>z(t)?t.replace(/[&<>"'\/]/g,e=>GA[e]):t;class ZA{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const n=this.regExpMap.get(e);if(n!==void 0)return n;const o=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,o),this.regExpQueue.push(e),o}}const XA=[" ",",","?","!",";"],eD=new ZA(20),tD=(t,e,n)=>{e=e||"",n=n||"";const o=XA.filter(i=>e.indexOf(i)<0&&n.indexOf(i)<0);if(o.length===0)return!0;const r=eD.getRegExp(`(${o.map(i=>i==="?"?"\\?":i).join("|")})`);let s=!r.test(t);if(!s){const i=t.indexOf(n);i>0&&!r.test(t.substring(0,i))&&(s=!0)}return s},Om=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[e])return t[e];const o=e.split(n);let r=t;for(let s=0;s<o.length;){if(!r||typeof r!="object")return;let i,a="";for(let l=s;l<o.length;++l)if(l!==s&&(a+=n),a+=o[l],i=r[a],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&l<o.length-1)continue;s+=l-s+1;break}r=i}return r},Nl=t=>t&&t.replace("_","-"),nD={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,e){console&&console[t]&&console[t].apply(console,e)}};class Al{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,n)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=e||nD,this.options=n,this.debug=n.debug}log(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return this.forward(n,"log","",!0)}warn(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return this.forward(n,"warn","",!0)}error(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return this.forward(n,"error","")}deprecate(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(e,n,o,r){return r&&!this.debug?null:(z(e[0])&&(e[0]=`${o}${this.prefix} ${e[0]}`),this.logger[n](e))}create(e){return new Al(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Al(this.logger,e)}}var Ot=new Al;class Dl{constructor(){this.observers={}}on(e,n){return e.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);const r=this.observers[o].get(n)||0;this.observers[o].set(n,r+1)}),this}off(e,n){if(this.observers[e]){if(!n){delete this.observers[e];return}this.observers[e].delete(n)}}emit(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(i=>{let[a,l]=i;for(let c=0;c<l;c++)a(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[a,l]=i;for(let c=0;c<l;c++)a.apply(a,[e,...o])})}}class Vw extends Dl{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=n,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){const n=this.options.ns.indexOf(e);n>-1&&this.options.ns.splice(n,1)}getResource(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,i=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,n],o&&(Array.isArray(o)?a.push(...o):z(o)&&s?a.push(...o.split(s)):a.push(o)));const l=Cl(this.data,a);return!l&&!n&&!o&&e.indexOf(".")>-1&&(e=a[0],n=a[1],o=a.slice(2).join(".")),l||!i||!z(o)?l:Om(this.data&&this.data[e]&&this.data[e][n],o,s)}addResource(e,n,o,r){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let a=[e,n];o&&(a=a.concat(i?o.split(i):o)),e.indexOf(".")>-1&&(a=e.split("."),r=n,n=a[1]),this.addNamespaces(n),Fw(this.data,a,r),s.silent||this.emit("added",e,n,o,r)}addResources(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in o)(z(o[s])||Array.isArray(o[s]))&&this.addResource(e,n,s,o[s],{silent:!0});r.silent||this.emit("added",e,n,o)}addResourceBundle(e,n,o,r,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[e,n];e.indexOf(".")>-1&&(a=e.split("."),r=o,o=n,n=a[1]),this.addNamespaces(n);let l=Cl(this.data,a)||{};i.skipCopy||(o=JSON.parse(JSON.stringify(o))),r?Hw(l,o,s):l={...l,...o},Fw(this.data,a,l),i.silent||this.emit("added",e,n,o)}removeResourceBundle(e,n){this.hasResourceBundle(e,n)&&delete this.data[e][n],this.removeNamespaces(n),this.emit("removed",e,n)}hasResourceBundle(e,n){return this.getResource(e,n)!==void 0}getResourceBundle(e,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,n)}:this.getResource(e,n)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const n=this.getDataByLanguage(e);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var Uw={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,e,n,o,r){return t.forEach(s=>{this.processors[s]&&(e=this.processors[s].process(e,n,o,r))}),e}};const _w={};class Rl extends Dl{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),YA(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ot.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const o=this.resolve(e,n);return o&&o.res!==void 0}extractFromKey(e,n){let o=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");const r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const i=o&&e.indexOf(o)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!tD(e,o,r);if(i&&!a){const l=e.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:e,namespaces:z(s)?[s]:s};const c=e.split(o);(o!==r||o===r&&this.options.ns.indexOf(c[0])>-1)&&(s=c.shift()),e=c.join(r)}return{key:e,namespaces:z(s)?[s]:s}}translate(e,n,o){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(e[e.length-1],n),l=a[a.length-1],c=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&c.toLowerCase()==="cimode"){if(u){const v=n.nsSeparator||this.options.nsSeparator;return r?{res:`${l}${v}${i}`,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:`${l}${v}${i}`}return r?{res:i,usedKey:i,exactUsedKey:i,usedLng:c,usedNS:l,usedParams:this.getUsedParamsDetails(n)}:i}const d=this.resolve(e,n);let m=d&&d.res;const f=d&&d.usedKey||i,p=d&&d.exactUsedKey||i,g=Object.prototype.toString.apply(m),h=["[object Number]","[object Function]","[object RegExp]"],y=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,$=!z(m)&&typeof m!="boolean"&&typeof m!="number";if(b&&m&&$&&h.indexOf(g)<0&&!(z(y)&&Array.isArray(m))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const v=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,m,{...n,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return r?(d.res=v,d.usedParams=this.getUsedParamsDetails(n),d):v}if(s){const v=Array.isArray(m),k=v?[]:{},x=v?p:f;for(const C in m)if(Object.prototype.hasOwnProperty.call(m,C)){const O=`${x}${s}${C}`;k[C]=this.translate(O,{...n,joinArrays:!1,ns:a}),k[C]===O&&(k[C]=m[C])}m=k}}else if(b&&z(y)&&Array.isArray(m))m=m.join(y),m&&(m=this.extendTranslation(m,e,n,o));else{let v=!1,k=!1;const x=n.count!==void 0&&!z(n.count),C=Rl.hasDefaultValue(n),O=x?this.pluralResolver.getSuffix(c,n.count,n):"",E=n.ordinal&&x?this.pluralResolver.getSuffix(c,n.count,{ordinal:!1}):"",U=x&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),ae=U&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${O}`]||n[`defaultValue${E}`]||n.defaultValue;!this.isValidLookup(m)&&C&&(v=!0,m=ae),this.isValidLookup(m)||(k=!0,m=i);const ee=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&k?void 0:m,je=C&&ae!==m&&this.options.updateMissing;if(k||v||je){if(this.logger.log(je?"updateKey":"missingKey",c,l,i,je?ae:m),s){const fe=this.resolve(i,{...n,keySeparator:!1});fe&&fe.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 le=[];const me=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&me&&me[0])for(let fe=0;fe<me.length;fe++)le.push(me[fe]);else this.options.saveMissingTo==="all"?le=this.languageUtils.toResolveHierarchy(n.lng||this.language):le.push(n.lng||this.language);const be=(fe,Qe,mt)=>{const R=C&&mt!==m?mt:ee;this.options.missingKeyHandler?this.options.missingKeyHandler(fe,l,Qe,R,je,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(fe,l,Qe,R,je,n),this.emit("missingKey",fe,l,Qe,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&x?le.forEach(fe=>{const Qe=this.pluralResolver.getSuffixes(fe,n);U&&n[`defaultValue${this.options.pluralSeparator}zero`]&&Qe.indexOf(`${this.options.pluralSeparator}zero`)<0&&Qe.push(`${this.options.pluralSeparator}zero`),Qe.forEach(mt=>{be([fe],i+mt,n[`defaultValue${mt}`]||ae)})}):be(le,i,ae))}m=this.extendTranslation(m,e,n,d,o),k&&m===i&&this.options.appendNamespaceToMissingKey&&(m=`${l}:${i}`),(k||v)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}:${i}`:i,v?m:void 0):m=this.options.parseMissingKeyHandler(m))}return r?(d.res=m,d.usedParams=this.getUsedParamsDetails(n),d):m}extendTranslation(e,n,o,r,s){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...o},o.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init({...o,interpolation:{...this.options.interpolation,...o.interpolation}});const c=z(e)&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(c){const m=e.match(this.interpolator.nestingRegexp);u=m&&m.length}let d=o.replace&&!z(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),e=this.interpolator.interpolate(e,d,o.lng||this.language||r.usedLng,o),c){const m=e.match(this.interpolator.nestingRegexp),f=m&&m.length;u<f&&(o.nest=!1)}!o.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(o.lng=this.language||r.usedLng),o.nest!==!1&&(e=this.interpolator.nest(e,function(){for(var m=arguments.length,f=new Array(m),p=0;p<m;p++)f[p]=arguments[p];return s&&s[0]===f[0]&&!o.context?(i.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${n[0]}`),null):i.translate(...f,n)},o)),o.interpolation&&this.interpolator.reset()}const a=o.postProcess||this.options.postProcess,l=z(a)?[a]:a;return e!=null&&l&&l.length&&o.applyPostProcessor!==!1&&(e=Uw.handle(l,e,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),e}resolve(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,r,s,i,a;return z(e)&&(e=[e]),e.forEach(l=>{if(this.isValidLookup(o))return;const c=this.extractFromKey(l,n),u=c.key;r=u;let d=c.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const m=n.count!==void 0&&!z(n.count),f=m&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),p=n.context!==void 0&&(z(n.context)||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(h=>{this.isValidLookup(o)||(a=h,!_w[`${g[0]}-${h}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(_w[`${g[0]}-${h}`]=!0,this.logger.warn(`key "${r}" for languages "${g.join(", ")}" won't get resolved as namespace "${a}" 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!!!")),g.forEach(y=>{if(this.isValidLookup(o))return;i=y;const b=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(b,u,y,h,n);else{let v;m&&(v=this.pluralResolver.getSuffix(y,n.count,n));const k=`${this.options.pluralSeparator}zero`,x=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(m&&(b.push(u+v),n.ordinal&&v.indexOf(x)===0&&b.push(u+v.replace(x,this.options.pluralSeparator)),f&&b.push(u+k)),p){const C=`${u}${this.options.contextSeparator}${n.context}`;b.push(C),m&&(b.push(C+v),n.ordinal&&v.indexOf(x)===0&&b.push(C+v.replace(x,this.options.pluralSeparator)),f&&b.push(C+k))}}let $;for(;$=b.pop();)this.isValidLookup(o)||(s=$,o=this.getResource(y,h,$,n))}))})}),{res:o,usedKey:r,exactUsedKey:s,usedLng:i,usedNS:a}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,n,o,r):this.resourceStore.getResource(e,n,o,r)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=e.replace&&!z(e.replace);let r=o?e.replace:e;if(o&&typeof e.count<"u"&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!o){r={...r};for(const s of n)delete r[s]}return r}static hasDefaultValue(e){const n="defaultValue";for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&n===o.substring(0,n.length)&&e[o]!==void 0)return!0;return!1}}const Tm=t=>t.charAt(0).toUpperCase()+t.slice(1);class Jw{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ot.create("languageUtils")}getScriptPartFromCode(e){if(e=Nl(e),!e||e.indexOf("-")<0)return null;const n=e.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(e){if(e=Nl(e),!e||e.indexOf("-")<0)return e;const n=e.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(e){if(z(e)&&e.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let r=Intl.getCanonicalLocales(e)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let o=e.split("-");return this.options.lowerCaseLng?o=o.map(r=>r.toLowerCase()):o.length===2?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),n.indexOf(o[1].toLowerCase())>-1&&(o[1]=Tm(o[1].toLowerCase()))):o.length===3&&(o[0]=o[0].toLowerCase(),o[1].length===2&&(o[1]=o[1].toUpperCase()),o[0]!=="sgn"&&o[2].length===2&&(o[2]=o[2].toUpperCase()),n.indexOf(o[1].toLowerCase())>-1&&(o[1]=Tm(o[1].toLowerCase())),n.indexOf(o[2].toLowerCase())>-1&&(o[2]=Tm(o[2].toLowerCase()))),o.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 n;return e.forEach(o=>{if(n)return;const r=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&e.forEach(o=>{if(n)return;const r=this.getLanguagePartFromCode(o);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(s=>{if(s===r)return s;if(!(s.indexOf("-")<0&&r.indexOf("-")<0)&&(s.indexOf("-")>0&&r.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===r||s.indexOf(r)===0&&r.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(e,n){if(!e)return[];if(typeof e=="function"&&(e=e(n)),z(e)&&(e=[e]),Array.isArray(e))return e;if(!n)return e.default||[];let o=e[n];return o||(o=e[this.getScriptPartFromCode(n)]),o||(o=e[this.formatLanguageCode(n)]),o||(o=e[this.getLanguagePartFromCode(n)]),o||(o=e.default),o||[]}toResolveHierarchy(e,n){const o=this.getFallbackCodes(n||this.options.fallbackLng||[],e),r=[],s=i=>{i&&(this.isSupportedCode(i)?r.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return z(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(e))):z(e)&&s(this.formatLanguageCode(e)),o.forEach(i=>{r.indexOf(i)<0&&s(this.formatLanguageCode(i))}),r}}let oD=[{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"],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}],rD={1:t=>+(t>1),2:t=>+(t!=1),3:t=>0,4:t=>t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,5:t=>t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5,6:t=>t==1?0:t>=2&&t<=4?1:2,7:t=>t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2,8:t=>t==1?0:t==2?1:t!=8&&t!=11?2:3,9:t=>+(t>=2),10:t=>t==1?0:t==2?1:t<7?2:t<11?3:4,11:t=>t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3,12:t=>+(t%10!=1||t%100==11),13:t=>+(t!==0),14:t=>t==1?0:t==2?1:t==3?2:3,15:t=>t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2,16:t=>t%10==1&&t%100!=11?0:t!==0?1:2,17:t=>t==1||t%10==1&&t%100!=11?0:1,18:t=>t==0?0:t==1?1:2,19:t=>t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3,20:t=>t==1?0:t==0||t%100>0&&t%100<20?1:2,21:t=>t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0,22:t=>t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3};const sD=["v1","v2","v3"],iD=["v4"],Yw={zero:0,one:1,two:2,few:3,many:4,other:5},aD=()=>{const t={};return oD.forEach(e=>{e.lngs.forEach(n=>{t[n]={numbers:e.nr,plurals:rD[e.fc]}})}),t};class lD{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=n,this.logger=Ot.create("pluralResolver"),(!this.options.compatibilityJSON||iD.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=aD(),this.pluralRulesCache={}}addRule(e,n){this.rules[e]=n}clearCache(){this.pluralRulesCache={}}getRule(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const o=Nl(e==="dev"?"en":e),r=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:o,type:r});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let i;try{i=new Intl.PluralRules(o,{type:r})}catch{if(!e.match(/-|_/))return;const l=this.languageUtils.getLanguagePartFromCode(e);i=this.getRule(l,n)}return this.pluralRulesCache[s]=i,i}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getRule(e,n);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}getPluralFormsOfKey(e,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,o).map(r=>`${n}${r}`)}getSuffixes(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getRule(e,n);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort((r,s)=>Yw[r]-Yw[s]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):o.numbers.map(r=>this.getSuffix(e,r,n)):[]}getSuffix(e,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=this.getRule(e,o);return r?this.shouldUseIntlApi()?`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,n){const o=e.noAbs?e.plurals(n):e.plurals(Math.abs(n));let r=e.numbers[o];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));const s=()=>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()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?s():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}shouldUseIntlApi(){return!sD.includes(this.options.compatibilityJSON)}}const Kw=function(t,e,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=qA(t,e,n);return!s&&r&&z(n)&&(s=Om(t,n,o),s===void 0&&(s=Om(e,n,o))),s},Mm=t=>t.replace(/\$/g,"$$$$");class cD{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ot.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(n=>n),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:n,escapeValue:o,useRawValueToEscape:r,prefix:s,prefixEscaped:i,suffix:a,suffixEscaped:l,formatSeparator:c,unescapeSuffix:u,unescapePrefix:d,nestingPrefix:m,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:g,nestingOptionsSeparator:h,maxReplaces:y,alwaysFormat:b}=e.interpolation;this.escape=n!==void 0?n:QA,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=s?ur(s):i||"{{",this.suffix=a?ur(a):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=u?"":d||"-",this.unescapeSuffix=this.unescapePrefix?"":u||"",this.nestingPrefix=m?ur(m):f||ur("$t("),this.nestingSuffix=p?ur(p):g||ur(")"),this.nestingOptionsSeparator=h||",",this.maxReplaces=y||1e3,this.alwaysFormat=b!==void 0?b:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(n,o)=>n&&n.source===o?(n.lastIndex=0,n):new RegExp(o,"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,n,o,r){let s,i,a;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=f=>{if(f.indexOf(this.formatSeparator)<0){const y=Kw(n,l,f,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,o,{...r,...n,interpolationkey:f}):y}const p=f.split(this.formatSeparator),g=p.shift().trim(),h=p.join(this.formatSeparator).trim();return this.format(Kw(n,l,g,this.options.keySeparator,this.options.ignoreJSONStructure),h,o,{...r,...n,interpolationkey:g})};this.resetRegExp();const u=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:f=>Mm(f)},{regex:this.regexp,safeValue:f=>this.escapeValue?Mm(this.escape(f)):Mm(f)}].forEach(f=>{for(a=0;s=f.regex.exec(e);){const p=s[1].trim();if(i=c(p),i===void 0)if(typeof u=="function"){const h=u(e,s,r);i=z(h)?h:""}else if(r&&Object.prototype.hasOwnProperty.call(r,p))i="";else if(d){i=s[0];continue}else this.logger.warn(`missed to pass in variable ${p} for interpolating ${e}`),i="";else!z(i)&&!this.useRawValueToEscape&&(i=Iw(i));const g=f.safeValue(i);if(e=e.replace(s[0],g),d?(f.regex.lastIndex+=i.length,f.regex.lastIndex-=s[0].length):f.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),e}nest(e,n){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,s,i;const a=(l,c)=>{const u=this.nestingOptionsSeparator;if(l.indexOf(u)<0)return l;const d=l.split(new RegExp(`${u}[ ]*{`));let m=`{${d[1]}`;l=d[0],m=this.interpolate(m,i);const f=m.match(/'/g),p=m.match(/"/g);(f&&f.length%2===0&&!p||p.length%2!==0)&&(m=m.replace(/'/g,'"'));try{i=JSON.parse(m),c&&(i={...c,...i})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${u}${m}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,l};for(;r=this.nestingRegexp.exec(e);){let l=[];i={...o},i=i.replace&&!z(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const u=r[1].split(this.formatSeparator).map(d=>d.trim());r[1]=u.shift(),l=u,c=!0}if(s=n(a.call(this,r[1].trim(),i),i),s&&r[0]===e&&!z(s))return s;z(s)||(s=Iw(s)),s||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),s=""),c&&(s=l.reduce((u,d)=>this.format(u,d,o.lng,{...o,interpolationkey:r[1].trim()}),s.trim())),e=e.replace(r[0],s),this.regexp.lastIndex=0}return e}}const uD=t=>{let e=t.toLowerCase().trim();const n={};if(t.indexOf("(")>-1){const o=t.split("(");e=o[0].toLowerCase().trim();const r=o[1].substring(0,o[1].length-1);e==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):e==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(i=>{if(i){const[a,...l]=i.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),u=a.trim();n[u]||(n[u]=c),c==="false"&&(n[u]=!1),c==="true"&&(n[u]=!0),isNaN(c)||(n[u]=parseInt(c,10))}})}return{formatName:e,formatOptions:n}},dr=t=>{const e={};return(n,o,r)=>{let s=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(s={...s,[r.interpolationkey]:void 0});const i=o+JSON.stringify(s);let a=e[i];return a||(a=t(Nl(o),r),e[i]=a),a(n)}};class dD{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ot.create("formatter"),this.options=e,this.formats={number:dr((n,o)=>{const r=new Intl.NumberFormat(n,{...o});return s=>r.format(s)}),currency:dr((n,o)=>{const r=new Intl.NumberFormat(n,{...o,style:"currency"});return s=>r.format(s)}),datetime:dr((n,o)=>{const r=new Intl.DateTimeFormat(n,{...o});return s=>r.format(s)}),relativetime:dr((n,o)=>{const r=new Intl.RelativeTimeFormat(n,{...o});return s=>r.format(s,o.range||"day")}),list:dr((n,o)=>{const r=new Intl.ListFormat(n,{...o});return s=>r.format(s)})},this.init(e)}init(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(e,n){this.formats[e.toLowerCase().trim()]=n}addCached(e,n){this.formats[e.toLowerCase().trim()]=dr(n)}format(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(a=>a.indexOf(")")>-1)){const a=s.findIndex(l=>l.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,a)].join(this.formatSeparator)}return s.reduce((a,l)=>{const{formatName:c,formatOptions:u}=uD(l);if(this.formats[c]){let d=a;try{const m=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},f=m.locale||m.lng||r.locale||r.lng||o;d=this.formats[c](a,f,{...u,...r,...m})}catch(m){this.logger.warn(m)}return d}else this.logger.warn(`there was no format function for ${c}`);return a},e)}}const mD=(t,e)=>{t.pending[e]!==void 0&&(delete t.pending[e],t.pendingCount--)};class fD extends Dl{constructor(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=n,this.services=o,this.languageUtils=o.languageUtils,this.options=r,this.logger=Ot.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(o,r.backend,r)}queueLoad(e,n,o,r){const s={},i={},a={},l={};return e.forEach(c=>{let u=!0;n.forEach(d=>{const m=`${c}|${d}`;!o.reload&&this.store.hasResourceBundle(c,d)?this.state[m]=2:this.state[m]<0||(this.state[m]===1?i[m]===void 0&&(i[m]=!0):(this.state[m]=1,u=!1,i[m]===void 0&&(i[m]=!0),s[m]===void 0&&(s[m]=!0),l[d]===void 0&&(l[d]=!0)))}),u||(a[c]=!0)}),(Object.keys(s).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(s),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(l)}}loaded(e,n,o){const r=e.split("|"),s=r[0],i=r[1];n&&this.emit("failedLoading",s,i,n),!n&&o&&this.store.addResourceBundle(s,i,o,void 0,void 0,{skipCopy:!0}),this.state[e]=n?-1:2,n&&o&&(this.state[e]=0);const a={};this.queue.forEach(l=>{WA(l.loaded,[s],i),mD(l,e),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{a[c]||(a[c]={});const u=l.loaded[c];u.length&&u.forEach(d=>{a[c][d]===void 0&&(a[c][d]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(l=>!l.done)}read(e,n,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!e.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:n,fcName:o,tried:r,wait:s,callback:i});return}this.readingCalls++;const a=(c,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(c&&u&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,n,o,r+1,s*2,i)},s);return}i(c,u)},l=this.backend[o].bind(this.backend);if(l.length===2){try{const c=l(e,n);c&&typeof c.then=="function"?c.then(u=>a(null,u)).catch(a):a(null,c)}catch(c){a(c)}return}return l(e,n,a)}prepareLoading(e,n){let o=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();z(e)&&(e=this.languageUtils.toResolveHierarchy(e)),z(n)&&(n=[n]);const s=this.queueLoad(e,n,o,r);if(!s.toLoad.length)return s.pending.length||r(),null;s.toLoad.forEach(i=>{this.loadOne(i)})}load(e,n,o){this.prepareLoading(e,n,{},o)}reload(e,n,o){this.prepareLoading(e,n,{reload:!0},o)}loadOne(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const o=e.split("|"),r=o[0],s=o[1];this.read(r,s,"read",void 0,void 0,(i,a)=>{i&&this.logger.warn(`${n}loading namespace ${s} for language ${r} failed`,i),!i&&a&&this.logger.log(`${n}loaded namespace ${s} for language ${r}`,a),this.loaded(e,i,a)})}saveMissing(e,n,o,r,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${o}" as the namespace "${n}" 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(!(o==null||o==="")){if(this.backend&&this.backend.create){const l={...i,isUpdate:s},c=this.backend.create.bind(this.backend);if(c.length<6)try{let u;c.length===5?u=c(e,n,o,r,l):u=c(e,n,o,r),u&&typeof u.then=="function"?u.then(d=>a(null,d)).catch(a):a(null,u)}catch(u){a(u)}else c(e,n,o,r,a,l)}!e||!e[0]||this.store.addResource(e[0],n,o,r)}}}const Ww=()=>({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:t=>{let e={};if(typeof t[1]=="object"&&(e=t[1]),z(t[1])&&(e.defaultValue=t[1]),z(t[2])&&(e.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const n=t[3]||t[2];Object.keys(n).forEach(o=>{e[o]=n[o]})}return e},interpolation:{escapeValue:!0,format:t=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),qw=t=>(z(t.ns)&&(t.ns=[t.ns]),z(t.fallbackLng)&&(t.fallbackLng=[t.fallbackLng]),z(t.fallbackNS)&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t),Ol=()=>{},pD=t=>{Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(n=>{typeof t[n]=="function"&&(t[n]=t[n].bind(t))})};class Ks extends Dl{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=qw(e),this.services={},this.logger=Ot,this.modules={external:[]},pD(this),n&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,n),this;setTimeout(()=>{this.init(e,n)},0)}}init(){var e=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(o=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(z(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const r=Ww();this.options={...r,...this.options,...qw(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const s=u=>u?typeof u=="function"?new u:u:null;if(!this.options.isClone){this.modules.logger?Ot.init(s(this.modules.logger),this.options):Ot.init(null,this.options);let u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=dD);const d=new Jw(this.options);this.store=new Vw(this.options.resources,this.options);const m=this.services;m.logger=Ot,m.resourceStore=this.store,m.languageUtils=d,m.pluralResolver=new lD(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(m.formatter=s(u),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new cD(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new fD(s(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(f){for(var p=arguments.length,g=new Array(p>1?p-1:0),h=1;h<p;h++)g[h-1]=arguments[h];e.emit(f,...g)}),this.modules.languageDetector&&(m.languageDetector=s(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=s(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new Rl(this.services,this.options),this.translator.on("*",function(f){for(var p=arguments.length,g=new Array(p>1?p-1:0),h=1;h<p;h++)g[h-1]=arguments[h];e.emit(f,...g)}),this.modules.external.forEach(f=>{f.init&&f.init(this)})}if(this.format=this.options.interpolation.format,o||(o=Ol),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&u[0]!=="dev"&&(this.options.lng=u[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(u=>{this[u]=function(){return e.store[u](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(u=>{this[u]=function(){return e.store[u](...arguments),e}});const l=Js(),c=()=>{const u=(d,m)=>{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),l.resolve(m),o(d,m)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return u(null,this.t.bind(this));this.changeLanguage(this.options.lng,u)};return this.options.resources||!this.options.initImmediate?c():setTimeout(c,0),l}loadResources(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ol;const r=z(e)?e:this.language;if(typeof e=="function"&&(o=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return o();const s=[],i=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(c=>{c!=="cimode"&&s.indexOf(c)<0&&s.push(c)})};r?i(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(l=>i(l)),this.options.preload&&this.options.preload.forEach(a=>i(a)),this.services.backendConnector.load(s,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(a)})}else o(null)}reloadResources(e,n,o){const r=Js();return typeof e=="function"&&(o=e,e=void 0),typeof n=="function"&&(o=n,n=void 0),e||(e=this.languages),n||(n=this.options.ns),o||(o=Ol),this.services.backendConnector.reload(e,n,s=>{r.resolve(),o(s)}),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return 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"&&Uw.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 n=0;n<this.languages.length;n++){const o=this.languages[n];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}changeLanguage(e,n){var o=this;this.isLanguageChangingTo=e;const r=Js();this.emit("languageChanging",e);const s=l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},i=(l,c)=>{c?(s(c),this.translator.changeLanguage(c),this.isLanguageChangingTo=void 0,this.emit("languageChanged",c),this.logger.log("languageChanged",c)):this.isLanguageChangingTo=void 0,r.resolve(function(){return o.t(...arguments)}),n&&n(l,function(){return o.t(...arguments)})},a=l=>{!e&&!l&&this.services.languageDetector&&(l=[]);const c=z(l)?l:this.services.languageUtils.getBestMatchFromCodes(l);c&&(this.language||s(c),this.translator.language||this.translator.changeLanguage(c),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(c)),this.loadResources(c,u=>{i(u,c)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),r}getFixedT(e,n,o){var r=this;const s=function(i,a){let l;if(typeof a!="object"){for(var c=arguments.length,u=new Array(c>2?c-2:0),d=2;d<c;d++)u[d-2]=arguments[d];l=r.options.overloadTranslationOptionHandler([i,a].concat(u))}else l={...a};l.lng=l.lng||s.lng,l.lngs=l.lngs||s.lngs,l.ns=l.ns||s.ns,l.keyPrefix!==""&&(l.keyPrefix=l.keyPrefix||o||s.keyPrefix);const m=r.options.keySeparator||".";let f;return l.keyPrefix&&Array.isArray(i)?f=i.map(p=>`${l.keyPrefix}${m}${p}`):f=l.keyPrefix?`${l.keyPrefix}${m}${i}`:i,r.t(f,l)};return z(e)?s.lng=e:s.lngs=e,s.ns=n,s.keyPrefix=o,s}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 n=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;const o=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const i=(a,l)=>{const c=this.services.backendConnector.state[`${a}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const a=n.precheck(this,i);if(a!==void 0)return a}return!!(this.hasResourceBundle(o,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(o,e)&&(!r||i(s,e)))}loadNamespaces(e,n){const o=Js();return this.options.ns?(z(e)&&(e=[e]),e.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{o.resolve(),n&&n(r)}),o):(n&&n(),Promise.resolve())}loadLanguages(e,n){const o=Js();z(e)&&(e=[e]);const r=this.options.preload||[],s=e.filter(i=>r.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return s.length?(this.options.preload=r.concat(s),this.loadResources(i=>{o.resolve(),n&&n(i)}),o):(n&&n(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const n=["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"],o=this.services&&this.services.languageUtils||new Jw(Ww());return n.indexOf(o.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Ks(e,n)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ol;const o=e.forkResourceStore;o&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},s=new Ks(r);return(e.debug!==void 0||e.prefix!==void 0)&&(s.logger=s.logger.clone(e)),["store","services","language"].forEach(a=>{s[a]=this[a]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},o&&(s.store=new Vw(this.store.data,r),s.services.resourceStore=s.store),s.translator=new Rl(s.services,r),s.translator.on("*",function(a){for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];s.emit(a,...c)}),s.init(r,n),s.translator.options=r,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Gw=Ks.createInstance();Gw.createInstance=Ks.createInstance;var hD=Gw;const gD=hD,Qw=["af","ar","bg","bn","bs","ca","cs","da","de","de-CH","el","en","eo","es","et","eu","fa","fi","fr","gd","he","hi","hr","hu","id","is","it","ja","ko","kz","lt","lv","mk","mn","ms","nb","ne","nl","nn","pa","pl","pt","pt-BR","ro","ru","si","sk","sl","sq","sr","sr-Cyrl","sv","th","tr","uk","ur","uz","vi","zh","zh-Hant","sw","ta"];function Zw(t,e){return t.reduce((n,o)=>{let r;try{r=Pw("/ghost/i18n/lib")(`../locales/${o}/${e}.json`)}catch{r=Pw("/ghost/i18n/lib")(`../locales/en/${e}.json`)}return n[o]={[e]:{...r,...r.default&&typeof r.default=="object"?r.default:{}}},n},{})}El.exports=(t="en",e="portal")=>{const n=gD.createInstance(),o={prefix:"{",suffix:"}"};let r=Zw(Qw,e);return n.init({lng:t,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:{no:["nb","en"],default:["en"]},ns:e,defaultNS:e,interpolation:o,resources:r}),n},El.exports.SUPPORTED_LOCALES=Qw,El.exports.generateResources=Zw;var yD=El.exports,wD=yD;const bD=Ze(wD);function $D({siteUrl:t=window.location.origin,apiUrl:e,apiKey:n}){const o="members/api";function r({type:c,resource:u,params:d=""}){return`${t.replace(/\/$/,"")}/${o}/${u}/${d}`}function s({resource:c,params:u={}}){if(e&&n){const d=new URLSearchParams({...u,key:n});return`${e.replace(/\/$/,"")}/${c}/?${d.toString()}`}return""}function i({url:c,method:u="GET",headers:d={},credentials:m=void 0,body:f=void 0}){return fetch(c,{method:u,headers:d,credentials:m,body:f})}let a=null;const l={site:{settings(){const c=s({resource:"settings"});return i({url:c,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(u){if(u.ok)return u.json();throw new Error("Failed to fetch site data")})}},member:{identity(){const c=r({type:"members",resource:"session"});return i({url:c,credentials:"same-origin"}).then(function(u){return!u.ok||u.status===204?null:u.text()})},sessionData(){const c=r({type:"members",resource:"member"});return i({url:c,credentials:"same-origin"}).then(function(u){return!u.ok||u.status===204?null:u.json()})},update({name:c,expertise:u}){const d=r({type:"members",resource:"member"});return i({url:d,method:"PUT",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({name:c,expertise:u})}).then(function(f){return f.ok?f.json():null})}},comments:{async count({postId:c}){const u=c?`?ids=${c}`:"",d=r({type:"members",resource:"comments/counts",params:u}),f=await(await i({url:d,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"})).json();return c?f[c]:f},browse({page:c,postId:u,order:d}){let m=null;a&&!d&&(m=`created_at:<=${a}`);const f=new URLSearchParams;f.set("limit","20"),m&&f.set("filter",m),f.set("page",c.toString()),d&&f.set("order",d);const p=r({type:"members",resource:`comments/post/${u}`,params:`?${f.toString()}`}),g=i({url:p,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"}).then(function(h){if(h.ok)return h.json();throw new Error("Failed to fetch comments")});return a||g.then(h=>{const y=h.comments[0];y&&(a=y.created_at)}),g},async replies({commentId:c,afterReplyId:u,limit:d}){const m=new URLSearchParams;m.set("limit",(d??5).toString()),u&&m.set("filter",`id:>'${u}'`);const f=r({type:"members",resource:`comments/${c}/replies`,params:`?${m.toString()}`}),p=await i({url:f,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"});if(p.ok)return p.json();throw new Error("Failed to fetch replies")},add({comment:c}){const u={comments:[c]},d=r({type:"members",resource:"comments"});return i({url:d,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)}).then(function(m){if(m.ok)return m.json();throw new Error("Failed to add comment")})},edit({comment:c}){const u={comments:[c]},d=r({type:"members",resource:`comments/${c.id}`});return i({url:d,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)}).then(function(m){if(m.ok)return m.json();throw new Error("Failed to edit comment")})},read(c){const u=r({type:"members",resource:`comments/${c}`});return i({url:u,method:"GET",credentials:"same-origin"}).then(function(d){if(d.ok)return d.json();throw new Error("Failed to read comment")})},like({comment:c}){const u=r({type:"members",resource:`comments/${c.id}/like`});return i({url:u,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(d){if(d.ok)return"Success";throw new Error("Failed to like comment")})},unlike({comment:c}){const u={comments:[c]},d=r({type:"members",resource:`comments/${c.id}/like`});return i({url:d,method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(u)}).then(function(m){if(m.ok)return"Success";throw new Error("Failed to unlike comment")})},report({comment:c}){const u=r({type:"members",resource:`comments/${c.id}/report`});return i({url:u,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(d){if(d.ok)return"Success";throw new Error("Failed to report comment")})}},init:()=>{}};return l.init=async()=>{const[c]=await Promise.all([l.member.sessionData()]);let u={};try{const d=await l.site.settings();d.settings.labs&&Object.assign(u,d.settings.labs)}catch{u={}}return{member:c,labs:u}},l}async function vD({state:t,api:e,options:n,order:o}){var l;let r=1;t.pagination&&t.pagination.page&&(r=t.pagination.page+1);let s;return t.admin&&t.adminApi?s=await t.adminApi.browse({page:r,postId:n.postId,order:o||t.order,memberUuid:(l=t.member)==null?void 0:l.uuid}):s=await e.comments.browse({page:r,postId:n.postId,order:o||t.order}),{comments:[...t.comments,...s.comments].filter((c,u,d)=>d.findIndex(m=>m.id===c.id)===u),pagination:s.meta.pagination}}function SD({data:t}){return{commentsIsLoading:t}}async function xD({state:t,data:{order:e},options:n,api:o,dispatchAction:r}){var s;r("setCommentsIsLoading",!0);try{let i;return t.admin&&t.adminApi?i=await t.adminApi.browse({page:1,postId:n.postId,order:e,memberUuid:(s=t.member)==null?void 0:s.uuid}):i=await o.comments.browse({page:1,postId:n.postId,order:e}),{comments:[...i.comments],pagination:i.meta.pagination,order:e,commentsIsLoading:!1}}catch(i){throw console.error("Failed to set order:",i),t.commentsIsLoading=!1,i}}async function Xw({state:t,api:e,data:{comment:n,limit:o},isReply:r}){var l,c;const s=async(u,d)=>{var m;return t.admin&&t.adminApi&&!r?await t.adminApi.replies({commentId:n.id,afterReplyId:u,limit:d,memberUuid:(m=t.member)==null?void 0:m.uuid}):await e.comments.replies({commentId:n.id,afterReplyId:u,limit:d})};let i=n.replies&&n.replies.length>0?(l=n.replies[n.replies.length-1])==null?void 0:l.id:void 0,a=[];if(o==="all"){let u=!0;for(;u;){const d=await s(i,100);a.push(...d.comments),u=!!d.meta.pagination.next,d.comments&&d.comments.length>0?i=(c=d.comments[d.comments.length-1])==null?void 0:c.id:u=!1}}else a=(await s(i,o||100)).comments;return{comments:t.comments.map(u=>u.id===n.id?{...n,replies:[...n.replies,...a]}:u)}}async function kD({state:t,api:e,data:n}){return n=(await e.comments.add({comment:n})).comments[0],{comments:[n,...t.comments],commentCount:t.commentCount+1}}async function ED({state:t,api:e,data:{reply:n,parent:o}}){let r=n;return r.parent_id=o.id,r=(await e.comments.add({comment:r})).comments[0],{comments:t.comments.map(i=>i.id===o.id?{...o,replies:[...o.replies,r],count:{...o.count,replies:o.count.replies+1}}:i),commentCount:t.commentCount+1}}async function CD({state:t,data:e}){return t.adminApi&&await t.adminApi.hideComment(e.id),{comments:t.comments.map(n=>{const o=n.replies.map(r=>r.id===e.id?{...r,status:"hidden"}:r);return n.id===e.id?{...n,status:"hidden",replies:o}:{...n,replies:o}}),commentCount:t.commentCount-1}}async function ND({state:t,api:e,data:n}){var s;t.adminApi&&await t.adminApi.showComment({id:n.id});let o;t.admin&&t.adminApi?o=await t.adminApi.read({commentId:n.id,memberUuid:(s=t.member)==null?void 0:s.uuid}):o=await e.comments.read(n.id);const r=o.comments[0];return{comments:t.comments.map(i=>{const a=i.replies.map(l=>l.id===n.id?r:l);return i.id===n.id?r:{...i,replies:a}}),commentCount:t.commentCount+1}}async function AD({state:t,data:e}){return{comments:t.comments.map(n=>{const o=n.replies.map(r=>r.id===e.id?{...r,liked:e.liked,count:{...r.count,likes:e.liked?r.count.likes+1:r.count.likes-1}}:r);return n.id===e.id?{...n,liked:e.liked,replies:o,count:{...n.count,likes:e.liked?n.count.likes+1:n.count.likes-1}}:{...n,replies:o}})}}async function DD({api:t,data:e,dispatchAction:n}){n("updateCommentLikeState",{id:e.id,liked:!0});try{return await t.comments.like({comment:e}),{}}catch{n("updateCommentLikeState",{id:e.id,liked:!1})}}async function RD({api:t,data:e,dispatchAction:n}){n("updateCommentLikeState",{id:e.id,liked:!1});try{return await t.comments.unlike({comment:e}),{}}catch{n("updateCommentLikeState",{id:e.id,liked:!0})}}async function OD({api:t,data:e}){return await t.comments.report({comment:e}),{}}async function TD({state:t,api:e,data:n,dispatchAction:o}){await e.comments.edit({comment:{id:n.id,status:"deleted"}});const r=t.comments.find(s=>s.id===n.id);return r&&(!r.replies||r.replies.length===0)?(o("setOrder",{order:t.order}),null):{comments:t.comments.map(s=>{var u;if(s.id===n.id)return s.replies.length>0?{...s,status:"deleted"}:null;const i=s.replies.length,a=s.replies.filter(d=>d.id!==n.id),l=i!==a.length,c={...s,replies:a};return l&&((u=s.count)!=null&&u.replies)&&(s.count.replies=s.count.replies-1),c}).filter(Boolean),commentCount:t.commentCount-1}}async function MD({state:t,api:e,data:{comment:n,parent:o}}){return n=(await e.comments.edit({comment:n})).comments[0],{comments:t.comments.map(s=>o&&o.id===s.id?{...s,replies:s.replies.map(i=>i.id===n.id?n:i)}:s.id===n.id?n:s)}}async function jD({data:t,state:e,api:n}){var l,c;const{name:o,expertise:r}=t,s={},i=(l=e==null?void 0:e.member)==null?void 0:l.name;o&&i!==o&&(s.name=o);const a=(c=e==null?void 0:e.member)==null?void 0:c.expertise;if(r!==void 0&&a!==r&&(s.expertise=r),Object.keys(s).length>0)try{const u=await n.member.update(s);if(!u)throw new Error("Failed to update member");return{member:u,success:!0}}catch(u){return{success:!1,error:u}}return null}function PD({data:t}){return{popup:t}}function LD(){return{popup:null}}async function ID({data:t,api:e,state:n}){let o={};const r=t.parent_id||t.id;if(t.type==="reply"&&!n.openCommentForms.some(a=>a.id===r||a.parent_id===r)){const a=n.comments.find(l=>l.id===r);if(a){const l=await Xw({state:n,api:e,data:{comment:a,limit:"all"},isReply:!0});o={...o,...l}}}const s=n.openCommentForms.filter(a=>a.hasUnsavedChanges),i=s.findIndex(a=>a.id===t.id);return i>-1?(s[i]=t,{openCommentForms:s,...o}):{openCommentForms:[...s,t],...o}}function zD({data:t}){return{commentIdToHighlight:t}}function BD({data:{commentId:t},dispatchAction:e}){return setTimeout(()=>{e("setHighlightComment",null)},3e3),{commentIdToHighlight:t}}function FD({data:{id:t,hasUnsavedChanges:e},state:n}){return{openCommentForms:n.openCommentForms.map(r=>r.id===t?{...r,hasUnsavedChanges:e}:{...r})}}function HD({data:t,state:e}){return{openCommentForms:e.openCommentForms.filter(n=>n.id!==t)}}const eb={openPopup:PD,closePopup:LD,closeCommentForm:HD,setCommentFormHasUnsavedChanges:FD},VD={addComment:kD,editComment:MD,hideComment:CD,deleteComment:TD,showComment:ND,likeComment:DD,unlikeComment:RD,reportComment:OD,addReply:ED,loadMoreComments:vD,loadMoreReplies:Xw,updateMember:jD,setOrder:xD,openCommentForm:ID,highlightComment:BD,setHighlightComment:zD,setCommentsIsLoading:SD,updateCommentLikeState:AD};function UD(t){return!!eb[t]}async function _D({action:t,data:e,state:n,api:o,adminApi:r,options:s,dispatchAction:i}){const a=VD[t];return a?await a({data:e,state:n,api:o,adminApi:r,options:s,dispatchAction:i})||{}:{}}function JD({action:t,data:e,state:n,api:o,adminApi:r,options:s}){const i=eb[t];return i?i({data:e,state:n,api:o,adminApi:r,options:s})||{}:{}}function YD({adminUrl:t}){const e=document.querySelector('iframe[data-frame="admin-auth"]');let n=1;const o={},r=new URL(t).origin;let s=null;window.addEventListener("message",function(l){if(l.origin!==r)return;let c=null;try{c=JSON.parse(l.data)}catch{return}const u=o[c.uid];u&&(delete o[c.uid],u(c.error,c.result))});function i(l,c){return new Promise((u,d)=>{function m(f,p){return f?d(f):u(p)}n+=1,o[n]=m,e.contentWindow.postMessage(JSON.stringify({uid:n,action:l,...c}),r)})}return{async getUser(){const l=await i("getUser");return!l||!l.users?null:l.users[0]},async hideComment(l){return await i("hideComment",{id:l})},async showComment({id:l}){return await i("showComment",{id:l})},async browse({page:l,postId:c,order:u,memberUuid:d}){let m=null;s&&!u&&(m=`created_at:<=${s}`);const f=new URLSearchParams;f.set("limit","20"),m&&f.set("filter",m),f.set("page",l.toString()),u&&f.set("order",u),d&&f.set("impersonate_member_uuid",d);const p=await i("browseComments",{postId:c,params:f.toString()});if(!s){const g=p.comments[0];g&&(s=g.created_at)}return p},async replies({commentId:l,afterReplyId:c,limit:u,memberUuid:d}){const m=new URLSearchParams;return u&&m.set("limit",u.toString()),c&&m.set("filter",`id:>'${c}'`),d&&m.set("impersonate_member_uuid",d),await i("getReplies",{commentId:l,params:m.toString()})},async read({commentId:l,memberUuid:c}){const u=new URLSearchParams;return c&&u.set("impersonate_member_uuid",c),await i("readComment",{commentId:l,...u.toString()&&{params:u.toString()}})}}}function KD(t){const e=_.useCallback(()=>{const s=t.dataset,i=s.ghostComments||window.location.origin,a=s.key,l=s.api,c=s.admin,u=s.postId||"",d=s.colorScheme,m=s.avatarSaturation?parseInt(s.avatarSaturation):void 0,f=s.accentColor??"#000000",p=s.commentsEnabled,g=s.title==="null"?null:s.title??"",h=s.count==="true",y=s.publication??"";return{locale:s.locale??"en",siteUrl:i,apiKey:a,apiUrl:l,postId:u,adminUrl:c,colorScheme:d,avatarSaturation:m,accentColor:f,commentsEnabled:p,title:g,showCount:h,publication:y}},[t]),n=S.useMemo(()=>e(),[]),[o,r]=_.useState(n);return _.useEffect(()=>{const s=new MutationObserver(i=>{i.some(a=>a.type==="attributes")&&r(e())});return s.observe(t,{attributes:!0}),()=>{s.disconnect()}},[t,e]),o}const WD=["Owner","Administrator","Super Editor"],qD=({scriptTag:t})=>{const e=KD(t),[n,o]=S.useState({initStatus:"running",member:null,admin:null,comments:[],pagination:null,commentCount:0,openCommentForms:[],popup:null,labs:{},order:"count__likes desc, created_at desc",adminApi:null,commentsIsLoading:!1,commentIdToHighlight:null}),r=_.createRef(),s=_.useMemo(()=>$D({siteUrl:e.siteUrl,apiUrl:e.apiUrl,apiKey:e.apiKey}),[e]),i=S.useCallback(p=>{o(g=>(typeof p=="function"&&(p=p(g)),{...g,...p}))},[o]),a=S.useCallback(async(p,g)=>{if(UD(p)){i(h=>JD({action:p,data:g,state:h,api:s,adminApi:h.adminApi,options:e}));return}return new Promise(h=>{i(y=>(_D({action:p,data:g,state:y,api:s,adminApi:y.adminApi,options:e,dispatchAction:a}).then(b=>{const $={...b};h($),i($)}).catch(console.error),{}))})},[s,e]),l=S.useMemo(()=>bD(e.locale,"comments"),[e.locale]),c={...e,...n,t:l.t,dispatchAction:a,openFormCount:S.useMemo(()=>n.openCommentForms.length,[n.openCommentForms])},u=async()=>{var p;if(!(n.adminApi||!e.adminUrl))try{const g=YD({adminUrl:e.adminUrl});let h=null;try{if(h=await g.getUser(),(!h||!h.roles.some(y=>WD.includes(y.name)))&&(h=null),h){const y=await g.browse({page:1,postId:e.postId,order:n.order,memberUuid:(p=n.member)==null?void 0:p.uuid});i({...n,adminApi:g,comments:y.comments,pagination:y.meta.pagination})}}catch(y){console.warn("[Comments] Failed to fetch admin endpoint:",y)}i({adminApi:g,admin:h})}catch(g){console.error("[Comments] Failed to initialize admin authentication:",g)}},d=async()=>{const p=s.comments.browse({page:1,postId:e.postId,order:n.order}),g=s.comments.count({postId:e.postId}),[h,y]=await Promise.all([p,g]);return{comments:h.comments,pagination:h.meta.pagination,count:y}},m=async()=>{try{const{member:p,labs:g}=await s.init(),{comments:h,pagination:y,count:b}=await d();i({member:p,initStatus:"success",comments:h,pagination:y,commentCount:b,order:"count__likes desc, created_at desc",labs:g,commentsIsLoading:!1,commentIdToHighlight:null})}catch(p){console.error("[Comments] Failed to initialize:",p),i({initStatus:"failed"})}};S.useEffect(()=>{const p=new IntersectionObserver(g=>{g.forEach(h=>{h.isIntersecting&&(m(),r.current&&p.unobserve(r.current))})},{root:null,rootMargin:"0px",threshold:.1});return r.current&&p.observe(r.current),()=>{r.current&&p.unobserve(r.current)}},[r.current]);const f=n.initStatus==="success";return w.jsxs(zl.Provider,{value:c,children:[w.jsx(DN,{ref:r,children:w.jsx(kN,{done:f})}),n.comments.length>0?w.jsx(hb,{adminUrl:e.adminUrl,onLoad:u}):null,w.jsx(LN,{})]})};function GD(){let t=document.currentScript;if(!t)throw new Error("[Comments-UI] Cannot find current script tag");return t}function QD(t){if(t.previousElementSibling&&t.previousElementSibling.id===_s)return t.previousElementSibling;if(!t.parentElement)throw new Error("[Comments-UI] Script tag does not have a parent element");const e=document.createElement("div");return e.id=_s,t.parentElement.insertBefore(e,t),e}function ZD(){const t=new URL(window.location.href);t.searchParams.get("token")&&(t.searchParams.delete("token"),window.history.replaceState({},document.title,t.href))}function XD(){const t=GD(),e=QD(t);try{ZD(),J0.render(w.jsx(_.StrictMode,{children:w.jsx(qD,{scriptTag:t})}),e)}catch(n){console.error(n)}}XD()});
//# sourceMappingURL=comments-ui.min.js.map