@tryghost/comments-ui 1.5.78 → 1.5.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/umd/comments-ui.min.js +31 -31
package/umd/comments-ui.min.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
(function(Zi){typeof define=="function"&&define.amd?define(Zi):Zi()})((function(){"use strict";function Zi(n,e){for(var t=0;t<e.length;t++){const o=e[t];if(typeof o!="string"&&!Array.isArray(o)){for(const r in o)if(r!=="default"&&!(r in n)){const i=Object.getOwnPropertyDescriptor(o,r);i&&Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:()=>o[r]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function es(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Bl={exports:{}},Ao={};var zl,Wm;function Fl(){if(Wm)return zl;Wm=1;var n=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,t=Object.prototype.propertyIsEnumerable;function o(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function r(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var d=Object.getOwnPropertyNames(a).map(function(p){return a[p]});if(d.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(p){m[p]=p}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return zl=r()?Object.assign:function(i,a){for(var c,d=o(i),m,p=1;p<arguments.length;p++){c=Object(arguments[p]);for(var h in c)e.call(c,h)&&(d[h]=c[h]);if(n){m=n(c);for(var g=0;g<m.length;g++)t.call(c,m[g])&&(d[m[g]]=c[m[g]])}}return d},zl}var _l={exports:{}},De={};var qm;function Db(){if(qm)return De;qm=1;var n=Fl(),e=60103,t=60106;De.Fragment=60107,De.StrictMode=60108,De.Profiler=60114;var o=60109,r=60110,i=60112;De.Suspense=60113;var a=60115,c=60116;if(typeof Symbol=="function"&&Symbol.for){var d=Symbol.for;e=d("react.element"),t=d("react.portal"),De.Fragment=d("react.fragment"),De.StrictMode=d("react.strict_mode"),De.Profiler=d("react.profiler"),o=d("react.provider"),r=d("react.context"),i=d("react.forward_ref"),De.Suspense=d("react.suspense"),a=d("react.memo"),c=d("react.lazy")}var m=typeof Symbol=="function"&&Symbol.iterator;function p(T){return T===null||typeof T!="object"?null:(T=m&&T[m]||T["@@iterator"],typeof T=="function"?T:null)}function h(T){for(var _="https://reactjs.org/docs/error-decoder.html?invariant="+T,se=1;se<arguments.length;se++)_+="&args[]="+encodeURIComponent(arguments[se]);return"Minified React error #"+T+"; visit "+_+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k={};function b(T,_,se){this.props=T,this.context=_,this.refs=k,this.updater=se||g}b.prototype.isReactComponent={},b.prototype.setState=function(T,_){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error(h(85));this.updater.enqueueSetState(this,T,_,"setState")},b.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function $(){}$.prototype=b.prototype;function S(T,_,se){this.props=T,this.context=_,this.refs=k,this.updater=se||g}var N=S.prototype=new $;N.constructor=S,n(N,b.prototype),N.isPureReactComponent=!0;var P={current:null},L=Object.prototype.hasOwnProperty,j={key:!0,ref:!0,__self:!0,__source:!0};function Y(T,_,se){var ve,z={},q=null,W=null;if(_!=null)for(ve in _.ref!==void 0&&(W=_.ref),_.key!==void 0&&(q=""+_.key),_)L.call(_,ve)&&!j.hasOwnProperty(ve)&&(z[ve]=_[ve]);var re=arguments.length-2;if(re===1)z.children=se;else if(1<re){for(var pe=Array(re),je=0;je<re;je++)pe[je]=arguments[je+2];z.children=pe}if(T&&T.defaultProps)for(ve in re=T.defaultProps,re)z[ve]===void 0&&(z[ve]=re[ve]);return{$$typeof:e,type:T,key:q,ref:W,props:z,_owner:P.current}}function U(T,_){return{$$typeof:e,type:T.type,key:_,ref:T.ref,props:T.props,_owner:T._owner}}function I(T){return typeof T=="object"&&T!==null&&T.$$typeof===e}function K(T){var _={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(se){return _[se]})}var X=/\/+/g;function ie(T,_){return typeof T=="object"&&T!==null&&T.key!=null?K(""+T.key):_.toString(36)}function Ne(T,_,se,ve,z){var q=typeof T;(q==="undefined"||q==="boolean")&&(T=null);var W=!1;if(T===null)W=!0;else switch(q){case"string":case"number":W=!0;break;case"object":switch(T.$$typeof){case e:case t:W=!0}}if(W)return W=T,z=z(W),T=ve===""?"."+ie(W,0):ve,Array.isArray(z)?(se="",T!=null&&(se=T.replace(X,"$&/")+"/"),Ne(z,_,se,"",function(je){return je})):z!=null&&(I(z)&&(z=U(z,se+(!z.key||W&&W.key===z.key?"":(""+z.key).replace(X,"$&/")+"/")+T)),_.push(z)),1;if(W=0,ve=ve===""?".":ve+":",Array.isArray(T))for(var re=0;re<T.length;re++){q=T[re];var pe=ve+ie(q,re);W+=Ne(q,_,se,pe,z)}else if(pe=p(T),typeof pe=="function")for(T=pe.call(T),re=0;!(q=T.next()).done;)q=q.value,pe=ve+ie(q,re++),W+=Ne(q,_,se,pe,z);else if(q==="object")throw _=""+T,Error(h(31,_==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":_));return W}function ye(T,_,se){if(T==null)return T;var ve=[],z=0;return Ne(T,ve,"","",function(q){return _.call(se,q,z++)}),ve}function $e(T){if(T._status===-1){var _=T._result;_=_(),T._status=0,T._result=_,_.then(function(se){T._status===0&&(se=se.default,T._status=1,T._result=se)},function(se){T._status===0&&(T._status=2,T._result=se)})}if(T._status===1)return T._result;throw T._result}var Re={current:null};function xe(){var T=Re.current;if(T===null)throw Error(h(321));return T}var Ae={ReactCurrentDispatcher:Re,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:P,IsSomeRendererActing:{current:!1},assign:n};return De.Children={map:ye,forEach:function(T,_,se){ye(T,function(){_.apply(this,arguments)},se)},count:function(T){var _=0;return ye(T,function(){_++}),_},toArray:function(T){return ye(T,function(_){return _})||[]},only:function(T){if(!I(T))throw Error(h(143));return T}},De.Component=b,De.PureComponent=S,De.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ae,De.cloneElement=function(T,_,se){if(T==null)throw Error(h(267,T));var ve=n({},T.props),z=T.key,q=T.ref,W=T._owner;if(_!=null){if(_.ref!==void 0&&(q=_.ref,W=P.current),_.key!==void 0&&(z=""+_.key),T.type&&T.type.defaultProps)var re=T.type.defaultProps;for(pe in _)L.call(_,pe)&&!j.hasOwnProperty(pe)&&(ve[pe]=_[pe]===void 0&&re!==void 0?re[pe]:_[pe])}var pe=arguments.length-2;if(pe===1)ve.children=se;else if(1<pe){re=Array(pe);for(var je=0;je<pe;je++)re[je]=arguments[je+2];ve.children=re}return{$$typeof:e,type:T.type,key:z,ref:q,props:ve,_owner:W}},De.createContext=function(T,_){return _===void 0&&(_=null),T={$$typeof:r,_calculateChangedBits:_,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider={$$typeof:o,_context:T},T.Consumer=T},De.createElement=Y,De.createFactory=function(T){var _=Y.bind(null,T);return _.type=T,_},De.createRef=function(){return{current:null}},De.forwardRef=function(T){return{$$typeof:i,render:T}},De.isValidElement=I,De.lazy=function(T){return{$$typeof:c,_payload:{_status:-1,_result:T},_init:$e}},De.memo=function(T,_){return{$$typeof:a,type:T,compare:_===void 0?null:_}},De.useCallback=function(T,_){return xe().useCallback(T,_)},De.useContext=function(T,_){return xe().useContext(T,_)},De.useDebugValue=function(){},De.useEffect=function(T,_){return xe().useEffect(T,_)},De.useImperativeHandle=function(T,_,se){return xe().useImperativeHandle(T,_,se)},De.useLayoutEffect=function(T,_){return xe().useLayoutEffect(T,_)},De.useMemo=function(T,_){return xe().useMemo(T,_)},De.useReducer=function(T,_,se){return xe().useReducer(T,_,se)},De.useRef=function(T){return xe().useRef(T)},De.useState=function(T){return xe().useState(T)},De.version="17.0.2",De}var Gm;function Ul(){return Gm||(Gm=1,_l.exports=Db()),_l.exports}var Qm;function Rb(){if(Qm)return Ao;Qm=1,Fl();var n=Ul(),e=60103;if(Ao.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var t=Symbol.for;e=t("react.element"),Ao.Fragment=t("react.fragment")}var o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,r=Object.prototype.hasOwnProperty,i={key:!0,ref:!0,__self:!0,__source:!0};function a(c,d,m){var p,h={},g=null,k=null;m!==void 0&&(g=""+m),d.key!==void 0&&(g=""+d.key),d.ref!==void 0&&(k=d.ref);for(p in d)r.call(d,p)&&!i.hasOwnProperty(p)&&(h[p]=d[p]);if(c&&c.defaultProps)for(p in d=c.defaultProps,d)h[p]===void 0&&(h[p]=d[p]);return{$$typeof:e,type:c,key:g,ref:k,props:h,_owner:o.current}}return Ao.jsx=a,Ao.jsxs=a,Ao}var Xm;function Ab(){return Xm||(Xm=1,Bl.exports=Rb()),Bl.exports}var w=Ab();const Ob=({adminUrl:n,onLoad:e})=>{const t={display:"none"};return w.jsx("iframe",{"data-frame":"admin-auth",src:n+"auth-frame/",style:t,title:"auth-frame",onLoad:e})};var Hl,Zm;function Tb(){if(Zm)return Hl;Zm=1;var n=function(i){return i instanceof RegExp},e=function(a){var c=/[\\^$.*+?()[\]{}|]/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,"\\$&"):a},t=function(i){return typeof i=="string"},o=function(i){var a=[];return i.forEach(function(c){Array.isArray(c)?a=a.concat(c):a.push(c)}),a};function r(i,a,c,d=null){var m=0,p=0;if(i==="")return i;if(!i||!t(i))throw new TypeError("First argument to react-string-replace#replaceString must be a string");var h=a;n(h)||(h=new RegExp("("+e(h)+")","gi"));for(var g=i.split(h),k=1,b=g.length;k<b&&!(Number.isInteger(d)&&(d*2<k||d<1));k+=2){if(g[k]===void 0||g[k-1]===void 0){console.warn("reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.");continue}p=g[k].length,m+=g[k-1].length,g[k]=c(g[k],(k-1)/2,m),m+=p}return g}return Hl=function(a,c,d,m=null){return Array.isArray(a)||(a=[a]),o(a.map(function(p){var h;if(t(p))if(Number.isInteger(m)&&m>0){h=r(p,c,d,m);var g=n(c)?c:new RegExp("("+e(c)+")","gi");m-=(p.match(g)||[]).length}else h=r(p,c,d,m);else h=p;return h}))},Hl}var Pb=Tb();const ep=es(Pb),tp="ghost-comments-";function $r(n){return`#${tp}${n}`}function Mb(){return"#ghost-comments"}function Vl(n){const e=new RegExp(`^#${tp}([a-f0-9]+)$`,"i"),t=n.match(e);return t?t[1]:null}const np=3,ts=4,op=480;function Lb(n,e){return n.find(t=>t?.id===e)||n.flatMap(t=>t.replies||[]).find(t=>t?.id===e)}function ns(n){return n!==0&&!n?"":n.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function jb(n,e){const t=new Date(n),o=new Date;if(isNaN(t.getTime()))return e("Just now");const r=Math.round((o.getTime()-t.getTime())/1e3);if(r<60)return e("Just now");const i=Math.round(r/60);if(i===1)return e("One min ago");if(i<60)return e("{amount} mins ago",{amount:i});const a=Math.round(i/60);if(a===1)return e("One hour ago");const c=new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())),d=new Date(Date.UTC(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate())),m=Math.floor((d.getTime()-c.getTime())/(1e3*60*60*24));if(m===1)return e("Yesterday");if(m>1){const p=t.getDate(),h=t.toLocaleString("en-us",{month:"short"});return t.getFullYear()!==o.getFullYear()?`${p} ${h} ${t.getFullYear()}`:`${p} ${h}`}return e("{amount} hrs ago",{amount:a})}function Ib(n){const e=new Date(n),t=e.toLocaleDateString("en-us",{day:"2-digit"}),o=e.toLocaleString("en-us",{month:"short"}),r=e.getFullYear(),i=(e.getHours()<10?"0":"")+e.getHours(),a=(e.getMinutes()<10?"0":"")+e.getMinutes();return`${t} ${o} ${r} ${i}:${a}`}function Bb(n){if(!n)return"";const e=n.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 rp(n,e){return n?n.name?n.name:e("Anonymous"):e("Deleted member")}function zb(n,e){return rp(n.member,e)}function rs(){return Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<op}const ip=n=>{let e=0,t=n.ownerDocument.defaultView;for(;t&&t!==window;){const r=t.parent;for(let i=0;i<r.frames.length;i++)if(r.frames[i]===t){for(const a of r.document.getElementsByTagName("iframe"))if(a.contentWindow===t){const c=a.getBoundingClientRect();e+=c.top+t.pageYOffset}t=r;break}}return n.getBoundingClientRect().top+window.pageYOffset+e},sp=n=>{const e=ip(n),t=e+n.offsetHeight;return(e+t)/2-window.innerHeight/2},is=n=>{const e=n.offsetHeight,t=ip(n),o=t+e,r=64,i=window.innerHeight,a=window.scrollY,c=a+i;(t-r<a||o+r>c)&&window.scrollTo({top:sp(n),left:0,behavior:"smooth"})},ap=n=>{window.scrollTo({top:sp(n),left:0,behavior:"auto"})};function Fb(n){const e=n.html??"",t=document.createElement("div");t.innerHTML=e,t.querySelectorAll("script, style, link, meta, noscript, title").forEach(r=>r.remove()),t.querySelectorAll("blockquote").forEach(r=>r.remove());let o=t.textContent||"";return o=o.replace(`
|
|
2
|
-
`," "),o=o.replace(/\s+/g," "),o=o.trim(),o.substring(0,100)}var E=Ul();const ae=es(E),lp=Zi({__proto__:null,default:ae},[E]),Yl=ae.createContext({});Yl.Provider;const oe=()=>E.useContext(Yl),_b=()=>{const e=oe().dispatchAction;return t=>{e("setOrder",{order:t})}},Jl=()=>{try{return oe().labs||{}}catch{return{}}},cp=({isFirst:n,isPaid:e,commentId:t})=>{const{accentColor:o,publication:r,member:i,t:a,commentCount:c}=oe(),d={backgroundColor:o},m={color:o},p=a(c===0?"Start the conversation":"Join the discussion"),h=()=>{window.location.href=e&&i?"#/portal/account/plans":"#/portal/signup"},g=()=>{if(t){const b=new URL(window.location.href);b.hash=$r(t),window.location.href=`#/portal/signin?redirect=${encodeURIComponent(b.toString())}`;return}window.location.href="#/portal/signin"},k=ep(a(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:r}));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)] ${n?"font-semibold":"font-bold"}`,children:p}),w.jsx("p",{className:"sm:max-w-screen-sm mb-[28px] w-full px-0 text-center font-sans text-lg leading-normal text-neutral-600 dark:text-[rgba(255,255,255,0.85)] sm:px-8",children:k}),w.jsx("button",{className:"mb-[12px] inline-block rounded px-5 py-[14px] font-sans text-md font-medium leading-none text-white transition-all hover:opacity-90","data-testid":"signup-button",style:d,type:"button",onClick:h,children:a(e&&i?"Upgrade now":"Sign up now")}),!i&&w.jsxs("p",{className:"text-center font-sans text-md text-[rgba(0,0,0,0.4)] dark:text-[rgba(255,255,255,0.5)]",children:[w.jsx("span",{className:"mr-1 inline-block text-[15px]",children:a("Already a member?")}),w.jsx("button",{className:"rounded-md text-sm font-semibold transition-all hover:opacity-90","data-testid":"signin-button",style:m,type:"button",onClick:g,children:a("Sign in")})]})]})},Ub=n=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",...n},E.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",strokeLinejoin:"round",className:"nc-icon-wrapper"},E.createElement("polygon",{points:"7 21 2 22 3 17 18 2 22 6 7 21"}))),ss=n=>E.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",...n},E.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"},E.createElement("animateTransform",{attributeType:"xml",attributeName:"transform",type:"rotate",from:"0 25 25",to:"360 25 25",dur:"0.6s",repeatCount:"indefinite"}))),up=n=>E.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...n},E.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 dp(){return"w-8 h-8"}const mp=()=>{const n=dp();return w.jsx("figure",{className:`relative ${n}`,"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 ${n}`,children:w.jsx(up,{className:"size-7 opacity-80"})})})},Kl=({member:n})=>{const{avatarSaturation:e,t}=oe(),o=dp(),r=rp(n,t),i=k=>{let b=0;for(let $=0;$<k.length;$++)b=k.charCodeAt($)+((b<<5)-b);return b=Math.abs(b),b},a=(k,b,$)=>Math.floor(k%($-b)+b),c=()=>{if(!r)return[0,0,10];const k=e===void 0||isNaN(e)?50:e,b=[0,360],$=Math.round(k/(100/30))+30,N=[$-20,$],P=i(r),L=a(P,b[0],b[1]),j=a(P,N[0],N[1]);return[L,k,j]},d=k=>`hsl(${k[0]}, ${k[1]}%, ${k[2]}%)`,m=Bb(r),h={background:d(c())},g=w.jsxs(w.Fragment,{children:[r?w.jsx("div",{className:`flex items-center justify-center rounded-full ${o}`,"data-testid":"avatar-background",style:h,children:w.jsx("p",{className:"font-sans text-base font-semibold text-white",children:m})}):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(up,{className:"stroke-white dark:stroke-black/60"})}),n?.avatar_image&&w.jsx("img",{alt:"Avatar",className:`absolute left-0 top-0 rounded-full ${o}`,"data-testid":"avatar-image",src:n.avatar_image})]});return n?w.jsx("figure",{className:`relative ${o}`,"data-testid":"avatar",children:g}):w.jsx(mp,{})};function We(n){this.content=n}We.prototype={constructor:We,find:function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},get:function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},update:function(n,e,t){var o=t&&t!=n?this.remove(t):this,r=o.find(n),i=o.content.slice();return r==-1?i.push(t||n,e):(i[r+1]=e,t&&(i[r]=t)),new We(i)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new We(t)},addToStart:function(n,e){return new We([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new We(t)},addBefore:function(n,e,t){var o=this.remove(e),r=o.content.slice(),i=o.find(n);return r.splice(i==-1?r.length:i,0,e,t),new We(r)},forEach:function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},prepend:function(n){return n=We.from(n),n.size?new We(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=We.from(n),n.size?new We(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=We.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},toObject:function(){var n={};return this.forEach(function(e,t){n[e]=t}),n},get size(){return this.content.length>>1}},We.from=function(n){if(n instanceof We)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new We(e)};function pp(n,e,t){for(let o=0;;o++){if(o==n.childCount||o==e.childCount)return n.childCount==e.childCount?null:t;let r=n.child(o),i=e.child(o);if(r==i){t+=r.nodeSize;continue}if(!r.sameMarkup(i))return t;if(r.isText&&r.text!=i.text){let a=r.text,c=i.text,d=0;for(;a[d]==c[d];d++)t++;return d&&d<a.length&&d<c.length&&gp(a.charCodeAt(d-1))&&hp(a.charCodeAt(d))&&t--,t}if(r.content.size||i.content.size){let a=pp(r.content,i.content,t+1);if(a!=null)return a}t+=r.nodeSize}}function fp(n,e,t,o){for(let r=n.childCount,i=e.childCount;;){if(r==0||i==0)return r==i?null:{a:t,b:o};let a=n.child(--r),c=e.child(--i),d=a.nodeSize;if(a==c){t-=d,o-=d;continue}if(!a.sameMarkup(c))return{a:t,b:o};if(a.isText&&a.text!=c.text){let m=a.text,p=c.text,h=m.length,g=p.length;for(;h>0&&g>0&&m[h-1]==p[g-1];)h--,g--,t--,o--;return h&&g&&h<m.length&&gp(m.charCodeAt(h-1))&&hp(m.charCodeAt(h))&&(t++,o++),{a:t,b:o}}if(a.content.size||c.content.size){let m=fp(a.content,c.content,t-1,o-1);if(m)return m}t-=d,o-=d}}function hp(n){return n>=56320&&n<57344}function gp(n){return n>=55296&&n<56320}class V{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let o=0;o<e.length;o++)this.size+=e[o].nodeSize}nodesBetween(e,t,o,r=0,i){for(let a=0,c=0;c<t;a++){let d=this.content[a],m=c+d.nodeSize;if(m>e&&o(d,r+c,i||null,a)!==!1&&d.content.size){let p=c+1;d.nodesBetween(Math.max(0,e-p),Math.min(d.content.size,t-p),o,r+p)}c=m}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,o,r){let i="",a=!0;return this.nodesBetween(e,t,(c,d)=>{let m=c.isText?c.text.slice(Math.max(e,d)-d,t-d):c.isLeaf?r?typeof r=="function"?r(c):r:c.type.spec.leafText?c.type.spec.leafText(c):"":"";c.isBlock&&(c.isLeaf&&m||c.isTextblock)&&o&&(a?a=!1:i+=o),i+=m},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,o=e.firstChild,r=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(o)&&(r[r.length-1]=t.withText(t.text+o.text),i=1);i<e.content.length;i++)r.push(e.content[i]);return new V(r,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let o=[],r=0;if(t>e)for(let i=0,a=0;a<t;i++){let c=this.content[i],d=a+c.nodeSize;d>e&&((a<e||d>t)&&(c.isText?c=c.cut(Math.max(0,e-a),Math.min(c.text.length,t-a)):c=c.cut(Math.max(0,e-a-1),Math.min(c.content.size,t-a-1))),o.push(c),r+=c.nodeSize),a=d}return new V(o,r)}cutByIndex(e,t){return e==t?V.empty:e==0&&t==this.content.length?this:new V(this.content.slice(e,t))}replaceChild(e,t){let o=this.content[e];if(o==t)return this;let r=this.content.slice(),i=this.size+t.nodeSize-o.nodeSize;return r[e]=t,new V(r,i)}addToStart(e){return new V([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new V(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,o=0;t<this.content.length;t++){let r=this.content[t];e(r,o,t),o+=r.nodeSize}}findDiffStart(e,t=0){return pp(this,e,t)}findDiffEnd(e,t=this.size,o=e.size){return fp(this,e,t,o)}findIndex(e){if(e==0)return as(0,e);if(e==this.size)return as(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,o=0;;t++){let r=this.child(t),i=o+r.nodeSize;if(i>=e)return i==e?as(t+1,i):as(t,o);o=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,t){if(!t)return V.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return V.fromArray(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return V.empty;let t,o=0;for(let r=0;r<e.length;r++){let i=e[r];o+=i.nodeSize,r&&i.isText&&e[r-1].sameMarkup(i)?(t||(t=e.slice(0,r)),t[t.length-1]=i.withText(t[t.length-1].text+i.text)):t&&t.push(i)}return new V(t||e,o)}static from(e){if(!e)return V.empty;if(e instanceof V)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new V([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}V.empty=new V([],0);const Wl={index:0,offset:0};function as(n,e){return Wl.index=n,Wl.offset=e,Wl}function ls(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let o=0;o<n.length;o++)if(!ls(n[o],e[o]))return!1}else{for(let o in n)if(!(o in e)||!ls(n[o],e[o]))return!1;for(let o in e)if(!(o in n))return!1}return!0}let Oe=class Vm{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,o=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||(t=e.slice(0,r));else{if(i.type.excludes(this.type))return e;!o&&i.type.rank>this.type.rank&&(t||(t=e.slice(0,r)),t.push(this),o=!0),t&&t.push(i)}}return t||(t=e.slice()),o||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&ls(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let o=e.marks[t.type];if(!o)throw new RangeError(`There is no mark type ${t.type} in this schema`);let r=o.create(t.attrs);return o.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let o=0;o<e.length;o++)if(!e[o].eq(t[o]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return Vm.none;if(e instanceof Vm)return[e];let t=e.slice();return t.sort((o,r)=>o.type.rank-r.type.rank),t}};Oe.none=[];class xr extends Error{}class Q{constructor(e,t,o){this.content=e,this.openStart=t,this.openEnd=o}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let o=kp(this.content,e+this.openStart,t,this.openStart+1,this.openEnd+1);return o&&new Q(o,this.openStart,this.openEnd)}removeBetween(e,t){return new Q(yp(this.content,e+this.openStart,t+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,t){if(!t)return Q.empty;let o=t.openStart||0,r=t.openEnd||0;if(typeof o!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Q(V.fromJSON(e,t.content),o,r)}static maxOpen(e,t=!0){let o=0,r=0;for(let i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)o++;for(let i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)r++;return new Q(e,o,r)}}Q.empty=new Q(V.empty,0,0);function yp(n,e,t){let{index:o,offset:r}=n.findIndex(e),i=n.maybeChild(o),{index:a,offset:c}=n.findIndex(t);if(r==e||i.isText){if(c!=t&&!n.child(a).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(o!=a)throw new RangeError("Removing non-flat range");return n.replaceChild(o,i.copy(yp(i.content,e-r-1,t-r-1)))}function kp(n,e,t,o,r,i){let{index:a,offset:c}=n.findIndex(e),d=n.maybeChild(a);if(c==e||d.isText)return i&&o<=0&&r<=0&&!i.canReplace(a,a,t)?null:n.cut(0,e).append(t).append(n.cut(e));let m=kp(d.content,e-c-1,t,a==0?o-1:0,a==n.childCount-1?r-1:0,d);return m&&n.replaceChild(a,d.copy(m))}function Hb(n,e,t){if(t.openStart>n.depth)throw new xr("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new xr("Inconsistent open depths");return bp(n,e,t,0)}function bp(n,e,t,o){let r=n.index(o),i=n.node(o);if(r==e.index(o)&&o<n.depth-t.openStart){let a=bp(n,e,t,o+1);return i.copy(i.content.replaceChild(r,a))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==o&&e.depth==o){let a=n.parent,c=a.content;return to(a,c.cut(0,n.parentOffset).append(t.content).append(c.cut(e.parentOffset)))}else{let{start:a,end:c}=Vb(t,n);return to(i,wp(n,a,c,e,o))}else return to(i,cs(n,e,o))}function vp(n,e){if(!e.type.compatibleContent(n.type))throw new xr("Cannot join "+e.type.name+" onto "+n.type.name)}function ql(n,e,t){let o=n.node(t);return vp(o,e.node(t)),o}function eo(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function Sr(n,e,t,o){let r=(e||n).node(t),i=0,a=e?e.index(t):r.childCount;n&&(i=n.index(t),n.depth>t?i++:n.textOffset&&(eo(n.nodeAfter,o),i++));for(let c=i;c<a;c++)eo(r.child(c),o);e&&e.depth==t&&e.textOffset&&eo(e.nodeBefore,o)}function to(n,e){if(!n.type.validContent(e))throw new xr("Invalid content for node "+n.type.name);return n.copy(e)}function wp(n,e,t,o,r){let i=n.depth>r&&ql(n,e,r+1),a=o.depth>r&&ql(t,o,r+1),c=[];return Sr(null,n,r,c),i&&a&&e.index(r)==t.index(r)?(vp(i,a),eo(to(i,wp(n,e,t,o,r+1)),c)):(i&&eo(to(i,cs(n,e,r+1)),c),Sr(e,t,r,c),a&&eo(to(a,cs(t,o,r+1)),c)),Sr(o,null,r,c),new V(c)}function cs(n,e,t){let o=[];if(Sr(null,n,t,o),n.depth>t){let r=ql(n,e,t+1);eo(to(r,cs(n,e,t+1)),o)}return Sr(e,null,t,o),new V(o)}function Vb(n,e){let t=e.depth-n.openStart,r=e.node(t).copy(n.content);for(let i=t-1;i>=0;i--)r=e.node(i).copy(V.from(r));return{start:r.resolveNoCache(n.openStart+t),end:r.resolveNoCache(r.content.size-n.openEnd-t)}}class Cr{constructor(e,t,o){this.pos=e,this.path=t,this.parentOffset=o,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw 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,t=this.index(this.depth);if(t==e.childCount)return null;let o=this.pos-this.path[this.path.length-1],r=e.child(t);return o?e.child(t).cut(o):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let o=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let i=0;i<e;i++)r+=o.child(i).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return Oe.none;if(this.textOffset)return e.child(t).marks;let o=e.maybeChild(t-1),r=e.maybeChild(t);if(!o){let c=o;o=r,r=c}let i=o.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!r||!i[a].isInSet(r.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let o=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<o.length;i++)o[i].type.spec.inclusive===!1&&(!r||!o[i].isInSet(r.marks))&&(o=o[i--].removeFromSet(o));return o}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let o=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);o>=0;o--)if(e.pos<=this.end(o)&&(!t||t(this.node(o))))return new us(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 t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let o=[],r=0,i=t;for(let a=e;;){let{index:c,offset:d}=a.content.findIndex(i),m=i-d;if(o.push(a,c,r+d),!m||(a=a.child(c),a.isText))break;i=m-1,r+=d+1}return new Cr(t,o,i)}static resolveCached(e,t){let o=$p.get(e);if(o)for(let i=0;i<o.elts.length;i++){let a=o.elts[i];if(a.pos==t)return a}else $p.set(e,o=new Yb);let r=o.elts[o.i]=Cr.resolve(e,t);return o.i=(o.i+1)%Jb,r}}class Yb{constructor(){this.elts=[],this.i=0}}const Jb=12,$p=new WeakMap;class us{constructor(e,t,o){this.$from=e,this.$to=t,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 Kb=Object.create(null);let kn=class Ym{constructor(e,t,o,r=Oe.none){this.type=e,this.attrs=t,this.marks=r,this.content=o||V.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,o,r=0){this.content.nodesBetween(e,t,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,t,o,r){return this.content.textBetween(e,t,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,t,o){return this.type==e&&ls(this.attrs,t||e.defaultAttrs||Kb)&&Oe.sameSet(this.marks,o||Oe.none)}copy(e=null){return e==this.content?this:new Ym(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new Ym(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,o=!1){if(e==t)return Q.empty;let r=this.resolve(e),i=this.resolve(t),a=o?0:r.sharedDepth(t),c=r.start(a),m=r.node(a).content.cut(r.pos-c,i.pos-c);return new Q(m,r.depth-a,i.depth-a)}replace(e,t,o){return Hb(this.resolve(e),this.resolve(t),o)}nodeAt(e){for(let t=this;;){let{index:o,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(o),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:o}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:o}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:o}=this.content.findIndex(e);if(o<e)return{node:this.content.child(t),index:t,offset:o};let r=this.content.child(t-1);return{node:r,index:t-1,offset:o-r.nodeSize}}resolve(e){return Cr.resolveCached(this,e)}resolveNoCache(e){return Cr.resolve(this,e)}rangeHasMark(e,t,o){let r=!1;return t>e&&this.nodesBetween(e,t,i=>(o.isInSet(i.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()+")"),xp(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,o=V.empty,r=0,i=o.childCount){let a=this.contentMatchAt(e).matchFragment(o,r,i),c=a&&a.matchFragment(this.content,t);if(!c||!c.validEnd)return!1;for(let d=r;d<i;d++)if(!this.type.allowsMarks(o.child(d).marks))return!1;return!0}canReplaceWith(e,t,o,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(o),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=Oe.none;for(let t=0;t<this.marks.length;t++){let o=this.marks[t];o.type.checkAttrs(o.attrs),e=o.addToSet(e)}if(!Oe.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let o;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");o=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,o)}let r=V.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,o);return i.type.checkAttrs(i.attrs),i}};kn.prototype.text=void 0;class ds extends kn{constructor(e,t,o,r){if(super(e,t,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):xp(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new ds(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new ds(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function xp(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class no{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let o=new Wb(e,t);if(o.next==null)return no.empty;let r=Sp(o);o.next&&o.err("Unexpected trailing text");let i=tv(ev(r));return nv(i,o),i}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,o=e.childCount){let r=this;for(let i=t;r&&i<o;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let o=0;o<e.next.length;o++)if(this.next[t].type==e.next[o].type)return!0;return!1}fillBefore(e,t=!1,o=0){let r=[this];function i(a,c){let d=a.matchFragment(e,o);if(d&&(!t||d.validEnd))return V.from(c.map(m=>m.createAndFill()));for(let m=0;m<a.next.length;m++){let{type:p,next:h}=a.next[m];if(!(p.isText||p.hasRequiredAttrs())&&r.indexOf(h)==-1){r.push(h);let g=i(h,c.concat(p));if(g)return g}}return null}return i(this,[])}findWrapping(e){for(let o=0;o<this.wrapCache.length;o+=2)if(this.wrapCache[o]==e)return this.wrapCache[o+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),o=[{match:this,type:null,via:null}];for(;o.length;){let r=o.shift(),i=r.match;if(i.matchType(e)){let a=[];for(let c=r;c.type;c=c.via)a.push(c.type);return a.reverse()}for(let a=0;a<i.next.length;a++){let{type:c,next:d}=i.next[a];!c.isLeaf&&!c.hasRequiredAttrs()&&!(c.name in t)&&(!r.type||d.validEnd)&&(o.push({match:c.contentMatch,type:c,via:r}),t[c.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 t(o){e.push(o);for(let r=0;r<o.next.length;r++)e.indexOf(o.next[r].next)==-1&&t(o.next[r].next)}return t(this),e.map((o,r)=>{let i=r+(o.validEnd?"*":" ")+" ";for(let a=0;a<o.next.length;a++)i+=(a?", ":"")+o.next[a].type.name+"->"+e.indexOf(o.next[a].next);return i}).join(`
|
|
3
|
-
`)}}no.empty=new no(!0);class Wb{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function Sp(n){let e=[];do e.push(qb(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function qb(n){let e=[];do e.push(Gb(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function Gb(n){let e=Zb(n);for(;;)if(n.eat("+"))e={type:"plus",expr:e};else if(n.eat("*"))e={type:"star",expr:e};else if(n.eat("?"))e={type:"opt",expr:e};else if(n.eat("{"))e=Qb(n,e);else break;return e}function Cp(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function Qb(n,e){let t=Cp(n),o=t;return n.eat(",")&&(n.next!="}"?o=Cp(n):o=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:o,expr:e}}function Xb(n,e){let t=n.nodeTypes,o=t[e];if(o)return[o];let r=[];for(let i in t){let a=t[i];a.isInGroup(e)&&r.push(a)}return r.length==0&&n.err("No node type or group '"+e+"' found"),r}function Zb(n){if(n.eat("(")){let e=Sp(n);return n.eat(")")||n.err("Missing closing paren"),e}else if(/\W/.test(n.next))n.err("Unexpected token '"+n.next+"'");else{let e=Xb(n,n.next).map(t=>(n.inline==null?n.inline=t.isInline:n.inline!=t.isInline&&n.err("Mixing inline and block content"),{type:"name",value:t}));return n.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function ev(n){let e=[[]];return r(i(n,0),t()),e;function t(){return e.push([])-1}function o(a,c,d){let m={term:d,to:c};return e[a].push(m),m}function r(a,c){a.forEach(d=>d.to=c)}function i(a,c){if(a.type=="choice")return a.exprs.reduce((d,m)=>d.concat(i(m,c)),[]);if(a.type=="seq")for(let d=0;;d++){let m=i(a.exprs[d],c);if(d==a.exprs.length-1)return m;r(m,c=t())}else if(a.type=="star"){let d=t();return o(c,d),r(i(a.expr,d),d),[o(d)]}else if(a.type=="plus"){let d=t();return r(i(a.expr,c),d),r(i(a.expr,d),d),[o(d)]}else{if(a.type=="opt")return[o(c)].concat(i(a.expr,c));if(a.type=="range"){let d=c;for(let m=0;m<a.min;m++){let p=t();r(i(a.expr,d),p),d=p}if(a.max==-1)r(i(a.expr,d),d);else for(let m=a.min;m<a.max;m++){let p=t();o(d,p),r(i(a.expr,d),p),d=p}return[o(d)]}else{if(a.type=="name")return[o(c,void 0,a.value)];throw new Error("Unknown expr type")}}}}function Ep(n,e){return e-n}function Np(n,e){let t=[];return o(e),t.sort(Ep);function o(r){let i=n[r];if(i.length==1&&!i[0].term)return o(i[0].to);t.push(r);for(let a=0;a<i.length;a++){let{term:c,to:d}=i[a];!c&&t.indexOf(d)==-1&&o(d)}}}function tv(n){let e=Object.create(null);return t(Np(n,0));function t(o){let r=[];o.forEach(a=>{n[a].forEach(({term:c,to:d})=>{if(!c)return;let m;for(let p=0;p<r.length;p++)r[p][0]==c&&(m=r[p][1]);Np(n,d).forEach(p=>{m||r.push([c,m=[]]),m.indexOf(p)==-1&&m.push(p)})})});let i=e[o.join(",")]=new no(o.indexOf(n.length-1)>-1);for(let a=0;a<r.length;a++){let c=r[a][1].sort(Ep);i.next.push({type:r[a][0],next:e[c.join(",")]||t(c)})}return i}}function nv(n,e){for(let t=0,o=[n];t<o.length;t++){let r=o[t],i=!r.validEnd,a=[];for(let c=0;c<r.next.length;c++){let{type:d,next:m}=r.next[c];a.push(d.name),i&&!(d.isText||d.hasRequiredAttrs())&&(i=!1),o.indexOf(m)==-1&&o.push(m)}i&&e.err("Only non-generatable nodes ("+a.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Dp(n){let e=Object.create(null);for(let t in n){let o=n[t];if(!o.hasDefault)return null;e[t]=o.default}return e}function Rp(n,e){let t=Object.create(null);for(let o in n){let r=e&&e[o];if(r===void 0){let i=n[o];if(i.hasDefault)r=i.default;else throw new RangeError("No value supplied for attribute "+o)}t[o]=r}return t}function Ap(n,e,t,o){for(let r in e)if(!(r in n))throw new RangeError(`Unsupported attribute ${r} for ${t} of type ${o}`);for(let r in n)n[r].validate&&n[r].validate(e[r])}function Op(n,e){let t=Object.create(null);if(e)for(let o in e)t[o]=new rv(n,o,e[o]);return t}let Tp=class Nb{constructor(e,t,o){this.name=e,this.schema=t,this.spec=o,this.markSet=null,this.groups=o.group?o.group.split(" "):[],this.attrs=Op(e,o.attrs),this.defaultAttrs=Dp(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==no.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:Rp(this.attrs,e)}create(e=null,t,o){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new kn(this,this.computeAttrs(e),V.from(t),Oe.setFrom(o))}createChecked(e=null,t,o){return t=V.from(t),this.checkContent(t),new kn(this,this.computeAttrs(e),t,Oe.setFrom(o))}createAndFill(e=null,t,o){if(e=this.computeAttrs(e),t=V.from(t),t.size){let a=this.contentMatch.fillBefore(t);if(!a)return null;t=a.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(V.empty,!0);return i?new kn(this,e,t.append(i),Oe.setFrom(o)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.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){Ap(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let o=0;o<e.length;o++)this.allowsMarkType(e[o].type)?t&&t.push(e[o]):t||(t=e.slice(0,o));return t?t.length?t:Oe.none:e}static compile(e,t){let o=Object.create(null);e.forEach((i,a)=>o[i]=new Nb(i,t,a));let r=t.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 i in o.text.attrs)throw new RangeError("The text node type should not have attributes");return o}};function ov(n,e,t){let o=t.split("|");return r=>{let i=r===null?"null":typeof r;if(o.indexOf(i)<0)throw new RangeError(`Expected value of type ${o} for attribute ${e} on type ${n}, got ${i}`)}}class rv{constructor(e,t,o){this.hasDefault=Object.prototype.hasOwnProperty.call(o,"default"),this.default=o.default,this.validate=typeof o.validate=="string"?ov(e,t,o.validate):o.validate}get isRequired(){return!this.hasDefault}}class ms{constructor(e,t,o,r){this.name=e,this.rank=t,this.schema=o,this.spec=r,this.attrs=Op(e,r.attrs),this.excluded=null;let i=Dp(this.attrs);this.instance=i?new Oe(this,i):null}create(e=null){return!e&&this.instance?this.instance:new Oe(this,Rp(this.attrs,e))}static compile(e,t){let o=Object.create(null),r=0;return e.forEach((i,a)=>o[i]=new ms(i,r++,t,a)),o}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){Ap(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class Pp{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let r in e)t[r]=e[r];t.nodes=We.from(e.nodes),t.marks=We.from(e.marks||{}),this.nodes=Tp.compile(this.spec.nodes,this),this.marks=ms.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 i=this.nodes[r],a=i.spec.content||"",c=i.spec.marks;if(i.contentMatch=o[a]||(o[a]=no.parse(a,this.nodes)),i.inlineContent=i.contentMatch.inlineContent,i.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!i.isInline||!i.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=i}i.markSet=c=="_"?null:c?Mp(this,c.split(" ")):c==""||!i.inlineContent?[]:null}for(let r in this.marks){let i=this.marks[r],a=i.spec.excludes;i.excluded=a==null?[i]:a==""?[]:Mp(this,a.split(" "))}this.nodeFromJSON=r=>kn.fromJSON(this,r),this.markFromJSON=r=>Oe.fromJSON(this,r),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,o,r){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Tp){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(t,o,r)}text(e,t){let o=this.nodes.text;return new ds(o,o.defaultAttrs,e,Oe.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function Mp(n,e){let t=[];for(let o=0;o<e.length;o++){let r=e[o],i=n.marks[r],a=i;if(i)t.push(i);else for(let c in n.marks){let d=n.marks[c];(r=="_"||d.spec.group&&d.spec.group.split(" ").indexOf(r)>-1)&&t.push(a=d)}if(!a)throw new SyntaxError("Unknown mark type: '"+e[o]+"'")}return t}function iv(n){return n.tag!=null}function sv(n){return n.style!=null}let Er=class Jm{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let o=this.matchedStyles=[];t.forEach(r=>{if(iv(r))this.tags.push(r);else if(sv(r)){let i=/[^=]*/.exec(r.style)[0];o.indexOf(i)<0&&o.push(i),this.styles.push(r)}}),this.normalizeLists=!this.tags.some(r=>{if(!/^(ul|ol)\b/.test(r.tag)||!r.node)return!1;let i=e.nodes[r.node];return i.contentMatch.matchType(i)})}parse(e,t={}){let o=new Bp(this,t,!1);return o.addAll(e,Oe.none,t.from,t.to),o.finish()}parseSlice(e,t={}){let o=new Bp(this,t,!0);return o.addAll(e,Oe.none,t.from,t.to),Q.maxOpen(o.finish())}matchTag(e,t,o){for(let r=o?this.tags.indexOf(o)+1:0;r<this.tags.length;r++){let i=this.tags[r];if(cv(e,i.tag)&&(i.namespace===void 0||e.namespaceURI==i.namespace)&&(!i.context||t.matchesContext(i.context))){if(i.getAttrs){let a=i.getAttrs(e);if(a===!1)continue;i.attrs=a||void 0}return i}}}matchStyle(e,t,o,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let a=this.styles[i],c=a.style;if(!(c.indexOf(e)!=0||a.context&&!o.matchesContext(a.context)||c.length>e.length&&(c.charCodeAt(e.length)!=61||c.slice(e.length+1)!=t))){if(a.getAttrs){let d=a.getAttrs(t);if(d===!1)continue;a.attrs=d||void 0}return a}}}static schemaRules(e){let t=[];function o(r){let i=r.priority==null?50:r.priority,a=0;for(;a<t.length;a++){let c=t[a];if((c.priority==null?50:c.priority)<i)break}t.splice(a,0,r)}for(let r in e.marks){let i=e.marks[r].spec.parseDOM;i&&i.forEach(a=>{o(a=zp(a)),a.mark||a.ignore||a.clearMark||(a.mark=r)})}for(let r in e.nodes){let i=e.nodes[r].spec.parseDOM;i&&i.forEach(a=>{o(a=zp(a)),a.node||a.ignore||a.mark||(a.node=r)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Jm(e,Jm.schemaRules(e)))}};const Lp={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},av={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},jp={ol:!0,ul:!0},Nr=1,Gl=2,Dr=4;function Ip(n,e,t){return e!=null?(e?Nr:0)|(e==="full"?Gl:0):n&&n.whitespace=="pre"?Nr|Gl:t&~Dr}class ps{constructor(e,t,o,r,i,a){this.type=e,this.attrs=t,this.marks=o,this.solid=r,this.options=a,this.content=[],this.activeMarks=Oe.none,this.match=i||(a&Dr?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(V.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);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&Nr)){let o=this.content[this.content.length-1],r;if(o&&o.isText&&(r=/[ \t\r\n\u000c]+$/.exec(o.text))){let i=o;o.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=i.withText(i.text.slice(0,i.text.length-r[0].length))}}let t=V.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(V.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Lp.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Bp{constructor(e,t,o){this.parser=e,this.options=t,this.isOpen=o,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,a=Ip(null,t.preserveWhitespace,0)|(o?Dr:0);r?i=new ps(r.type,r.attrs,Oe.none,!0,t.topMatch||r.type.contentMatch,a):o?i=new ps(null,null,Oe.none,!0,null,a):i=new ps(e.schema.topNodeType,null,Oe.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let o=e.nodeValue,r=this.top,i=r.options&Gl?"full":this.localPreserveWS||(r.options&Nr)>0,{schema:a}=this.parser;if(i==="full"||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(o)){if(i)if(i==="full")o=o.replace(/\r\n?/g,`
|
|
4
|
-
`);else if(a.linebreakReplacement&&/[\r\n]/.test(
|
|
5
|
-
`),t)}ignoreFallback(e,t){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let o=e.style;if(o&&o.length)for(let r=0;r<this.parser.matchedStyles.length;r++){let i=this.parser.matchedStyles[r],a=o.getPropertyValue(i);if(a)for(let c=void 0;;){let d=this.parser.matchStyle(i,a,this,c);if(!d)break;if(d.ignore)return null;if(d.clearMark?t=t.filter(m=>!d.clearMark(m)):t=t.concat(this.parser.schema.marks[d.mark].create(d.attrs)),d.consuming===!1)c=d;else break}}return t}addElementByRule(e,t,o,r){let i,a;if(t.node)if(a=this.parser.schema.nodes[t.node],a.isLeaf)this.insertNode(a.create(t.attrs),o,e.nodeName=="BR")||this.leafFallback(e,o);else{let d=this.enter(a,t.attrs||null,o,t.preserveWhitespace);d&&(i=!0,o=d)}else{let d=this.parser.schema.marks[t.mark];o=o.concat(d.create(t.attrs))}let c=this.top;if(a&&a.isLeaf)this.findInside(e);else if(r)this.addElement(e,o,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(d=>this.insertNode(d,o,!1));else{let d=e;typeof t.contentElement=="string"?d=e.querySelector(t.contentElement):typeof t.contentElement=="function"?d=t.contentElement(e):t.contentElement&&(d=t.contentElement),this.findAround(e,d,!0),this.addAll(d,o),this.findAround(e,d,!1)}i&&this.sync(c)&&this.open--}addAll(e,t,o,r){let i=o||0;for(let a=o?e.childNodes[o]:e.firstChild,c=r==null?null:e.childNodes[r];a!=c;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,o){let r,i;for(let a=this.open,c=0;a>=0;a--){let d=this.nodes[a],m=d.findWrapping(e);if(m&&(!r||r.length>m.length+c)&&(r=m,i=d,!m.length))break;if(d.solid){if(o)break;c+=2}}if(!r)return null;this.sync(i);for(let a=0;a<r.length;a++)t=this.enterInner(r[a],null,t,!1);return t}insertNode(e,t,o){if(e.isInline&&this.needsBlock&&!this.top.type){let i=this.textblockFromContext();i&&(t=this.enterInner(i,null,t))}let r=this.findPlace(e,t,o);if(r){this.closeExtra();let i=this.top;i.match&&(i.match=i.match.matchType(e.type));let a=Oe.none;for(let c of r.concat(e.marks))(i.type?i.type.allowsMarkType(c.type):Fp(c.type,e.type))&&(a=c.addToSet(a));return i.content.push(e.mark(a)),!0}return!1}enter(e,t,o,r){let i=this.findPlace(e.create(t),o,!1);return i&&(i=this.enterInner(e,t,o,!0,r)),i}enterInner(e,t,o,r=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let c=Ip(e,i,a.options);a.options&Dr&&a.content.length==0&&(c|=Dr);let d=Oe.none;return o=o.filter(m=>(a.type?a.type.allowsMarkType(m.type):Fp(m.type,e))?(d=m.addToSet(d),!1):!0),this.nodes.push(new ps(e,t,d,r,null,c)),this.open++,o}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=Nr)}return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let o=this.nodes[t].content;for(let r=o.length-1;r>=0;r--)e+=o[r].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let o=0;o<this.find.length;o++)this.find[o].node==e&&this.find[o].offset==t&&(this.find[o].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,o){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(o?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),o=this.options.context,r=!this.isOpen&&(!o||o.parent.type==this.nodes[0].type),i=-(o?o.depth+1:0)+(r?0:1),a=(c,d)=>{for(;c>=0;c--){let m=t[c];if(m==""){if(c==t.length-1||c==0)continue;for(;d>=i;d--)if(a(c-1,d))return!0;return!1}else{let p=d>0||d==0&&r?this.nodes[d].type:o&&d>=i?o.node(d-i).type:null;if(!p||p.name!=m&&!p.isInGroup(m))return!1;d--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let o=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(o&&o.isTextblock&&o.defaultAttrs)return o}for(let t in this.parser.schema.nodes){let o=this.parser.schema.nodes[t];if(o.isTextblock&&o.defaultAttrs)return o}}}function lv(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let o=e.nodeType==1?e.nodeName.toLowerCase():null;o&&jp.hasOwnProperty(o)&&t?(t.appendChild(e),e=t):o=="li"?t=e:o&&(t=null)}}function cv(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function zp(n){let e={};for(let t in n)e[t]=n[t];return e}function Fp(n,e){let t=e.schema.nodes;for(let o in t){let r=t[o];if(!r.allowsMarkType(n))continue;let i=[],a=c=>{i.push(c);for(let d=0;d<c.edgeCount;d++){let{type:m,next:p}=c.edge(d);if(m==e||i.indexOf(p)<0&&a(p))return!0}};if(a(r.contentMatch))return!0}}class oo{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},o){o||(o=fs(t).createDocumentFragment());let r=o,i=[];return e.forEach(a=>{if(i.length||a.marks.length){let c=0,d=0;for(;c<i.length&&d<a.marks.length;){let m=a.marks[d];if(!this.marks[m.type.name]){d++;continue}if(!m.eq(i[c][0])||m.type.spec.spanning===!1)break;c++,d++}for(;c<i.length;)r=i.pop()[1];for(;d<a.marks.length;){let m=a.marks[d++],p=this.serializeMark(m,a.isInline,t);p&&(i.push([m,r]),r.appendChild(p.dom),r=p.contentDOM||p.dom)}}r.appendChild(this.serializeNodeInner(a,t))}),o}serializeNodeInner(e,t){if(e.isText)return fs(t).createTextNode(e.text);let{dom:o,contentDOM:r}=hs(fs(t),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,t,r)}return o}serializeNode(e,t={}){let o=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(o),o=i.dom)}return o}serializeMark(e,t,o={}){let r=this.marks[e.type.name];return r&&hs(fs(o),r(e,t),null,e.attrs)}static renderSpec(e,t,o=null,r){return typeof t=="string"?{dom:e.createTextNode(t)}:hs(e,t,o,r)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new oo(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=_p(e.nodes);return t.text||(t.text=o=>o.text),t}static marksFromSchema(e){return _p(e.marks)}}function _p(n){let e={};for(let t in n){let o=n[t].spec.toDOM;o&&(e[t]=o)}return e}function fs(n){return n.document||window.document}const Up=new WeakMap;function uv(n){let e=Up.get(n);return e===void 0&&Up.set(n,e=dv(n)),e}function dv(n){let e=null;function t(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++)t(o[r]);else for(let r in o)t(o[r])}return t(n),e}function hs(n,e,t,o){if(e.nodeType==1)return{dom:e};if(e.dom&&e.dom.nodeType==1)return e;let r=e[0],i;if(typeof r!="string")throw new RangeError("Invalid array passed to renderSpec");if(o&&(i=uv(o))&&i.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 a=r.indexOf(" ");a>0&&(t=r.slice(0,a),r=r.slice(a+1));let c,d=t?n.createElementNS(t,r):n.createElement(r),m=e[1],p=1;if(m&&typeof m=="object"&&m.nodeType==null&&!Array.isArray(m)){p=2;for(let h in m)if(m[h]!=null){let g=h.indexOf(" ");g>0?d.setAttributeNS(h.slice(0,g),h.slice(g+1),m[h]):h=="style"&&d.style?d.style.cssText=m[h]:d.setAttribute(h,m[h])}}for(let h=p;h<e.length;h++){let g=e[h];if(g===0){if(h<e.length-1||h>p)throw new RangeError("Content hole must be the only child of its parent node");return{dom:d,contentDOM:d}}else if(typeof g=="string")d.appendChild(n.createTextNode(g));else{let{dom:k,contentDOM:b}=hs(n,g,t,o);if(d.appendChild(k),b){if(c)throw new RangeError("Multiple content holes");c=b}}}return{dom:d,contentDOM:c}}const Hp=65535,Vp=Math.pow(2,16);function mv(n,e){return n+e*Vp}function Yp(n){return n&Hp}function pv(n){return(n-(n&Hp))/Vp}const Jp=1,Kp=2,gs=4,Wp=8;class Ql{constructor(e,t,o){this.pos=e,this.delInfo=t,this.recover=o}get deleted(){return(this.delInfo&Wp)>0}get deletedBefore(){return(this.delInfo&(Jp|gs))>0}get deletedAfter(){return(this.delInfo&(Kp|gs))>0}get deletedAcross(){return(this.delInfo&gs)>0}}class kt{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&kt.empty)return kt.empty}recover(e){let t=0,o=Yp(e);if(!this.inverted)for(let r=0;r<o;r++)t+=this.ranges[r*3+2]-this.ranges[r*3+1];return this.ranges[o*3]+t+pv(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,o){let r=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let c=0;c<this.ranges.length;c+=3){let d=this.ranges[c]-(this.inverted?r:0);if(d>e)break;let m=this.ranges[c+i],p=this.ranges[c+a],h=d+m;if(e<=h){let g=m?e==d?-1:e==h?1:t:t,k=d+r+(g<0?0:p);if(o)return k;let b=e==(t<0?d:h)?null:mv(c/3,e-d),$=e==d?Kp:e==h?Jp:gs;return(t<0?e!=d:e!=h)&&($|=Wp),new Ql(k,$,b)}r+=p-m}return o?e+r:new Ql(e+r,0,null)}touches(e,t){let o=0,r=Yp(t),i=this.inverted?2:1,a=this.inverted?1:2;for(let c=0;c<this.ranges.length;c+=3){let d=this.ranges[c]-(this.inverted?o:0);if(d>e)break;let m=this.ranges[c+i],p=d+m;if(e<=p&&c==r*3)return!0;o+=this.ranges[c+a]-m}return!1}forEach(e){let t=this.inverted?2:1,o=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let a=this.ranges[r],c=a-(this.inverted?i:0),d=a+(this.inverted?0:i),m=this.ranges[r+t],p=this.ranges[r+o];e(c,c+m,d,d+p),i+=p-m}}invert(){return new kt(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?kt.empty:new kt(e<0?[0,-e,0]:[0,0,e])}}kt.empty=new kt([]);class ys{constructor(e,t,o=0,r=e?e.length:0){this.mirror=t,this.from=o,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new ys(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,o=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],r!=null&&r<t?o+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,o=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),r!=null&&r>t?o-r-1:void 0)}}invert(){let e=new ys;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let o=this.from;o<this.to;o++)e=this._maps[o].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,o){let r=0;for(let i=this.from;i<this.to;i++){let a=this._maps[i],c=a.mapResult(e,t);if(c.recover!=null){let d=this.getMirror(i);if(d!=null&&d>i&&d<this.to){i=d,e=this._maps[d].recover(c.recover);continue}}r|=c.delInfo,e=c.pos}return o?e:new Ql(e,r,null)}}const Xl=Object.create(null);class Ze{getMap(){return kt.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let o=Xl[t.stepType];if(!o)throw new RangeError(`No step type ${t.stepType} defined`);return o.fromJSON(e,t)}static jsonID(e,t){if(e in Xl)throw new RangeError("Duplicate use of step JSON ID "+e);return Xl[e]=t,t.prototype.jsonID=e,t}}class _e{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new _e(e,null)}static fail(e){return new _e(null,e)}static fromReplace(e,t,o,r){try{return _e.ok(e.replace(t,o,r))}catch(i){if(i instanceof xr)return _e.fail(i.message);throw i}}}function Zl(n,e,t){let o=[];for(let r=0;r<n.childCount;r++){let i=n.child(r);i.content.size&&(i=i.copy(Zl(i.content,e,i))),i.isInline&&(i=e(i,t,r)),o.push(i)}return V.fromArray(o)}class bn extends Ze{constructor(e,t,o){super(),this.from=e,this.to=t,this.mark=o}apply(e){let t=e.slice(this.from,this.to),o=e.resolve(this.from),r=o.node(o.sharedDepth(this.to)),i=new Q(Zl(t.content,(a,c)=>!a.isAtom||!c.type.allowsMarkType(this.mark.type)?a:a.mark(this.mark.addToSet(a.marks)),r),t.openStart,t.openEnd);return _e.fromReplace(e,this.from,this.to,i)}invert(){return new Ut(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return t.deleted&&o.deleted||t.pos>=o.pos?null:new bn(t.pos,o.pos,this.mark)}merge(e){return e instanceof bn&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new bn(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,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new bn(t.from,t.to,e.markFromJSON(t.mark))}}Ze.jsonID("addMark",bn);class Ut extends Ze{constructor(e,t,o){super(),this.from=e,this.to=t,this.mark=o}apply(e){let t=e.slice(this.from,this.to),o=new Q(Zl(t.content,r=>r.mark(this.mark.removeFromSet(r.marks)),e),t.openStart,t.openEnd);return _e.fromReplace(e,this.from,this.to,o)}invert(){return new bn(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),o=e.mapResult(this.to,-1);return t.deleted&&o.deleted||t.pos>=o.pos?null:new Ut(t.pos,o.pos,this.mark)}merge(e){return e instanceof Ut&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Ut(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,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Ut(t.from,t.to,e.markFromJSON(t.mark))}}Ze.jsonID("removeMark",Ut);class vn extends Ze{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return _e.fail("No node at mark step's position");let o=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return _e.fromReplace(e,this.pos,this.pos+1,new Q(V.from(o),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let o=this.mark.addToSet(t.marks);if(o.length==t.marks.length){for(let r=0;r<t.marks.length;r++)if(!t.marks[r].isInSet(o))return new vn(this.pos,t.marks[r]);return new vn(this.pos,this.mark)}}return new ro(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new vn(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new vn(t.pos,e.markFromJSON(t.mark))}}Ze.jsonID("addNodeMark",vn);class ro extends Ze{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return _e.fail("No node at mark step's position");let o=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return _e.fromReplace(e,this.pos,this.pos+1,new Q(V.from(o),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new vn(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new ro(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new ro(t.pos,e.markFromJSON(t.mark))}}Ze.jsonID("removeNodeMark",ro);class Ue extends Ze{constructor(e,t,o,r=!1){super(),this.from=e,this.to=t,this.slice=o,this.structure=r}apply(e){return this.structure&&ec(e,this.from,this.to)?_e.fail("Structure replace would overwrite content"):_e.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new kt([this.from,this.to-this.from,this.slice.size])}invert(e){return new Ue(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.to,-1),o=this.from==this.to&&Ue.MAP_BIAS<0?t:e.mapResult(this.from,1);return o.deletedAcross&&t.deletedAcross?null:new Ue(o.pos,Math.max(o.pos,t.pos),this.slice,this.structure)}merge(e){if(!(e instanceof Ue)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let t=this.slice.size+e.slice.size==0?Q.empty:new Q(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new Ue(this.from,this.to+(e.to-e.from),t,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let t=this.slice.size+e.slice.size==0?Q.empty:new Q(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new Ue(e.from,this.to,t,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,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Ue(t.from,t.to,Q.fromJSON(e,t.slice),!!t.structure)}}Ue.MAP_BIAS=1,Ze.jsonID("replace",Ue);class Ye extends Ze{constructor(e,t,o,r,i,a,c=!1){super(),this.from=e,this.to=t,this.gapFrom=o,this.gapTo=r,this.slice=i,this.insert=a,this.structure=c}apply(e){if(this.structure&&(ec(e,this.from,this.gapFrom)||ec(e,this.gapTo,this.to)))return _e.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return _e.fail("Gap is not a flat range");let o=this.slice.insertAt(this.insert,t.content);return o?_e.fromReplace(e,this.from,this.to,o):_e.fail("Content does not fit in gap")}getMap(){return new kt([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new Ye(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),o=e.mapResult(this.to,-1),r=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),i=this.to==this.gapTo?o.pos:e.map(this.gapTo,1);return t.deletedAcross&&o.deletedAcross||r<t.pos||i>o.pos?null:new Ye(t.pos,o.pos,r,i,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,t){if(typeof t.from!="number"||typeof t.to!="number"||typeof t.gapFrom!="number"||typeof t.gapTo!="number"||typeof t.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Ye(t.from,t.to,t.gapFrom,t.gapTo,Q.fromJSON(e,t.slice),t.insert,!!t.structure)}}Ze.jsonID("replaceAround",Ye);function ec(n,e,t){let o=n.resolve(e),r=t-e,i=o.depth;for(;r>0&&i>0&&o.indexAfter(i)==o.node(i).childCount;)i--,r--;if(r>0){let a=o.node(i).maybeChild(o.indexAfter(i));for(;r>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,r--}}return!1}function fv(n,e,t,o){let r=[],i=[],a,c;n.doc.nodesBetween(e,t,(d,m,p)=>{if(!d.isInline)return;let h=d.marks;if(!o.isInSet(h)&&p.type.allowsMarkType(o.type)){let g=Math.max(m,e),k=Math.min(m+d.nodeSize,t),b=o.addToSet(h);for(let $=0;$<h.length;$++)h[$].isInSet(b)||(a&&a.to==g&&a.mark.eq(h[$])?a.to=k:r.push(a=new Ut(g,k,h[$])));c&&c.to==g?c.to=k:i.push(c=new bn(g,k,o))}}),r.forEach(d=>n.step(d)),i.forEach(d=>n.step(d))}function hv(n,e,t,o){let r=[],i=0;n.doc.nodesBetween(e,t,(a,c)=>{if(!a.isInline)return;i++;let d=null;if(o instanceof ms){let m=a.marks,p;for(;p=o.isInSet(m);)(d||(d=[])).push(p),m=p.removeFromSet(m)}else o?o.isInSet(a.marks)&&(d=[o]):d=a.marks;if(d&&d.length){let m=Math.min(c+a.nodeSize,t);for(let p=0;p<d.length;p++){let h=d[p],g;for(let k=0;k<r.length;k++){let b=r[k];b.step==i-1&&h.eq(r[k].style)&&(g=b)}g?(g.to=m,g.step=i):r.push({style:h,from:Math.max(c,e),to:m,step:i})}}}),r.forEach(a=>n.step(new Ut(a.from,a.to,a.style)))}function tc(n,e,t,o=t.contentMatch,r=!0){let i=n.doc.nodeAt(e),a=[],c=e+1;for(let d=0;d<i.childCount;d++){let m=i.child(d),p=c+m.nodeSize,h=o.matchType(m.type);if(!h)a.push(new Ue(c,p,Q.empty));else{o=h;for(let g=0;g<m.marks.length;g++)t.allowsMarkType(m.marks[g].type)||n.step(new Ut(c,p,m.marks[g]));if(r&&m.isText&&t.whitespace!="pre"){let g,k=/\r?\n|\r/g,b;for(;g=k.exec(m.text);)b||(b=new Q(V.from(t.schema.text(" ",t.allowedMarks(m.marks))),0,0)),a.push(new Ue(c+g.index,c+g.index+g[0].length,b))}}c=p}if(!o.validEnd){let d=o.fillBefore(V.empty,!0);n.replace(c,c,new Q(d,0,0))}for(let d=a.length-1;d>=0;d--)n.step(a[d])}function gv(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function Oo(n){let t=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let o=n.depth,r=0,i=0;;--o){let a=n.$from.node(o),c=n.$from.index(o)+r,d=n.$to.indexAfter(o)-i;if(o<n.depth&&a.canReplace(c,d,t))return o;if(o==0||a.type.spec.isolating||!gv(a,c,d))break;c&&(r=1),d<a.childCount&&(i=1)}return null}function yv(n,e,t){let{$from:o,$to:r,depth:i}=e,a=o.before(i+1),c=r.after(i+1),d=a,m=c,p=V.empty,h=0;for(let b=i,$=!1;b>t;b--)$||o.index(b)>0?($=!0,p=V.from(o.node(b).copy(p)),h++):d--;let g=V.empty,k=0;for(let b=i,$=!1;b>t;b--)$||r.after(b+1)<r.end(b)?($=!0,g=V.from(r.node(b).copy(g)),k++):m++;n.step(new Ye(d,m,a,c,new Q(p.append(g),h,k),p.size-h,!0))}function nc(n,e,t=null,o=n){let r=kv(n,e),i=r&&bv(o,e);return i?r.map(qp).concat({type:e,attrs:t}).concat(i.map(qp)):null}function qp(n){return{type:n,attrs:null}}function kv(n,e){let{parent:t,startIndex:o,endIndex:r}=n,i=t.contentMatchAt(o).findWrapping(e);if(!i)return null;let a=i.length?i[0]:e;return t.canReplaceWith(o,r,a)?i:null}function bv(n,e){let{parent:t,startIndex:o,endIndex:r}=n,i=t.child(o),a=e.contentMatch.findWrapping(i.type);if(!a)return null;let d=(a.length?a[a.length-1]:e).contentMatch;for(let m=o;d&&m<r;m++)d=d.matchType(t.child(m).type);return!d||!d.validEnd?null:a}function vv(n,e,t){let o=V.empty;for(let a=t.length-1;a>=0;a--){if(o.size){let c=t[a].type.contentMatch.matchFragment(o);if(!c||!c.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}o=V.from(t[a].type.create(t[a].attrs,o))}let r=e.start,i=e.end;n.step(new Ye(r,i,r,i,new Q(o,0,0),t.length,!0))}function wv(n,e,t,o,r){if(!o.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=n.steps.length;n.doc.nodesBetween(e,t,(a,c)=>{let d=typeof r=="function"?r(a):r;if(a.isTextblock&&!a.hasMarkup(o,d)&&$v(n.doc,n.mapping.slice(i).map(c),o)){let m=null;if(o.schema.linebreakReplacement){let k=o.whitespace=="pre",b=!!o.contentMatch.matchType(o.schema.linebreakReplacement);k&&!b?m=!1:!k&&b&&(m=!0)}m===!1&&Qp(n,a,c,i),tc(n,n.mapping.slice(i).map(c,1),o,void 0,m===null);let p=n.mapping.slice(i),h=p.map(c,1),g=p.map(c+a.nodeSize,1);return n.step(new Ye(h,g,h+1,g-1,new Q(V.from(o.create(d,null,a.marks)),0,0),1,!0)),m===!0&&Gp(n,a,c,i),!1}})}function Gp(n,e,t,o){e.forEach((r,i)=>{if(r.isText){let a,c=/\r?\n|\r/g;for(;a=c.exec(r.text);){let d=n.mapping.slice(o).map(t+1+i+a.index);n.replaceWith(d,d+1,e.type.schema.linebreakReplacement.create())}}})}function Qp(n,e,t,o){e.forEach((r,i)=>{if(r.type==r.type.schema.linebreakReplacement){let a=n.mapping.slice(o).map(t+1+i);n.replaceWith(a,a+1,e.type.schema.text(`
|
|
6
|
-
`))}})}function $v(n,e,t){let o=n.resolve(e),r=o.index();return o.parent.canReplaceWith(r,r+1,t)}function xv(n,e,t,o,r){let i=n.doc.nodeAt(e);if(!i)throw new RangeError("No node at given position");t||(t=i.type);let a=t.create(o,null,r||i.marks);if(i.isLeaf)return n.replaceWith(e,e+i.nodeSize,a);if(!t.validContent(i.content))throw new RangeError("Invalid content for node type "+t.name);n.step(new Ye(e,e+i.nodeSize,e+1,e+i.nodeSize-1,new Q(V.from(a),0,0),1,!0))}function en(n,e,t=1,o){let r=n.resolve(e),i=r.depth-t,a=o&&o[o.length-1]||r.parent;if(i<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!a.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let m=r.depth-1,p=t-2;m>i;m--,p--){let h=r.node(m),g=r.index(m);if(h.type.spec.isolating)return!1;let k=h.content.cutByIndex(g,h.childCount),b=o&&o[p+1];b&&(k=k.replaceChild(0,b.type.create(b.attrs)));let $=o&&o[p]||h;if(!h.canReplace(g+1,h.childCount)||!$.type.validContent(k))return!1}let c=r.indexAfter(i),d=o&&o[0];return r.node(i).canReplaceWith(c,c,d?d.type:r.node(i+1).type)}function Sv(n,e,t=1,o){let r=n.doc.resolve(e),i=V.empty,a=V.empty;for(let c=r.depth,d=r.depth-t,m=t-1;c>d;c--,m--){i=V.from(r.node(c).copy(i));let p=o&&o[m];a=V.from(p?p.type.create(p.attrs,a):r.node(c).copy(a))}n.step(new Ue(e,e,new Q(i.append(a),t,t),!0))}function wn(n,e){let t=n.resolve(e),o=t.index();return Xp(t.nodeBefore,t.nodeAfter)&&t.parent.canReplace(o,o+1)}function Cv(n,e){e.content.size||n.type.compatibleContent(e.type);let t=n.contentMatchAt(n.childCount),{linebreakReplacement:o}=n.type.schema;for(let r=0;r<e.childCount;r++){let i=e.child(r),a=i.type==o?n.type.schema.nodes.text:i.type;if(t=t.matchType(a),!t||!n.type.allowsMarks(i.marks))return!1}return t.validEnd}function Xp(n,e){return!!(n&&e&&!n.isLeaf&&Cv(n,e))}function ks(n,e,t=-1){let o=n.resolve(e);for(let r=o.depth;;r--){let i,a,c=o.index(r);if(r==o.depth?(i=o.nodeBefore,a=o.nodeAfter):t>0?(i=o.node(r+1),c++,a=o.node(r).maybeChild(c)):(i=o.node(r).maybeChild(c-1),a=o.node(r+1)),i&&!i.isTextblock&&Xp(i,a)&&o.node(r).canReplace(c,c+1))return e;if(r==0)break;e=t<0?o.before(r):o.after(r)}}function Ev(n,e,t){let o=null,{linebreakReplacement:r}=n.doc.type.schema,i=n.doc.resolve(e-t),a=i.node().type;if(r&&a.inlineContent){let p=a.whitespace=="pre",h=!!a.contentMatch.matchType(r);p&&!h?o=!1:!p&&h&&(o=!0)}let c=n.steps.length;if(o===!1){let p=n.doc.resolve(e+t);Qp(n,p.node(),p.before(),c)}a.inlineContent&&tc(n,e+t-1,a,i.node().contentMatchAt(i.index()),o==null);let d=n.mapping.slice(c),m=d.map(e-t);if(n.step(new Ue(m,d.map(e+t,-1),Q.empty,!0)),o===!0){let p=n.doc.resolve(m);Gp(n,p.node(),p.before(),n.steps.length)}return n}function Nv(n,e,t){let o=n.resolve(e);if(o.parent.canReplaceWith(o.index(),o.index(),t))return e;if(o.parentOffset==0)for(let r=o.depth-1;r>=0;r--){let i=o.index(r);if(o.node(r).canReplaceWith(i,i,t))return o.before(r+1);if(i>0)return null}if(o.parentOffset==o.parent.content.size)for(let r=o.depth-1;r>=0;r--){let i=o.indexAfter(r);if(o.node(r).canReplaceWith(i,i,t))return o.after(r+1);if(i<o.node(r).childCount)return null}return null}function Dv(n,e,t){let o=n.resolve(e);if(!t.content.size)return e;let r=t.content;for(let i=0;i<t.openStart;i++)r=r.firstChild.content;for(let i=1;i<=(t.openStart==0&&t.size?2:1);i++)for(let a=o.depth;a>=0;a--){let c=a==o.depth?0:o.pos<=(o.start(a+1)+o.end(a+1))/2?-1:1,d=o.index(a)+(c>0?1:0),m=o.node(a),p=!1;if(i==1)p=m.canReplace(d,d,r);else{let h=m.contentMatchAt(d).findWrapping(r.firstChild.type);p=h&&m.canReplaceWith(d,d,h[0])}if(p)return c==0?o.pos:c<0?o.before(a+1):o.after(a+1)}return null}function bs(n,e,t=e,o=Q.empty){if(e==t&&!o.size)return null;let r=n.resolve(e),i=n.resolve(t);return Zp(r,i,o)?new Ue(e,t,o):new Rv(r,i,o).fit()}function Zp(n,e,t){return!t.openStart&&!t.openEnd&&n.start()==e.start()&&n.parent.canReplace(n.index(),e.index(),t.content)}class Rv{constructor(e,t,o){this.$from=e,this.$to=t,this.unplaced=o,this.frontier=[],this.placed=V.empty;for(let r=0;r<=e.depth;r++){let i=e.node(r);this.frontier.push({type:i.type,match:i.contentMatchAt(e.indexAfter(r))})}for(let r=e.depth;r>0;r--)this.placed=V.from(e.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let m=this.findFittable();m?this.placeNodes(m):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=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 i=this.placed,a=o.depth,c=r.depth;for(;a&&c&&i.childCount==1;)i=i.firstChild.content,a--,c--;let d=new Q(i,a,c);return e>-1?new Ye(o.pos,e,this.$to.pos,this.$to.end(),d,t):d.size||o.pos!=this.$to.pos?new Ue(o.pos,r.pos,d):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,o=0,r=this.unplaced.openEnd;o<e;o++){let i=t.firstChild;if(t.childCount>1&&(r=0),i.type.spec.isolating&&r<=o){e=o;break}t=i.content}for(let t=1;t<=2;t++)for(let o=t==1?e:this.unplaced.openStart;o>=0;o--){let r,i=null;o?(i=oc(this.unplaced.content,o-1).firstChild,r=i.content):r=this.unplaced.content;let a=r.firstChild;for(let c=this.depth;c>=0;c--){let{type:d,match:m}=this.frontier[c],p,h=null;if(t==1&&(a?m.matchType(a.type)||(h=m.fillBefore(V.from(a),!1)):i&&d.compatibleContent(i.type)))return{sliceDepth:o,frontierDepth:c,parent:i,inject:h};if(t==2&&a&&(p=m.findWrapping(a.type)))return{sliceDepth:o,frontierDepth:c,parent:i,wrap:p};if(i&&m.matchType(i.type))break}}}openMore(){let{content:e,openStart:t,openEnd:o}=this.unplaced,r=oc(e,t);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new Q(e,t+1,Math.max(o,r.size+t>=e.size-o?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:o}=this.unplaced,r=oc(e,t);if(r.childCount<=1&&t>0){let i=e.size-t<=t+r.size;this.unplaced=new Q(Rr(e,t-1,1),t-1,i?t-1:o)}else this.unplaced=new Q(Rr(e,t,1),t,o)}placeNodes({sliceDepth:e,frontierDepth:t,parent:o,inject:r,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let $=0;$<i.length;$++)this.openFrontierNode(i[$]);let a=this.unplaced,c=o?o.content:a.content,d=a.openStart-e,m=0,p=[],{match:h,type:g}=this.frontier[t];if(r){for(let $=0;$<r.childCount;$++)p.push(r.child($));h=h.matchFragment(r)}let k=c.size+e-(a.content.size-a.openEnd);for(;m<c.childCount;){let $=c.child(m),S=h.matchType($.type);if(!S)break;m++,(m>1||d==0||$.content.size)&&(h=S,p.push(ef($.mark(g.allowedMarks($.marks)),m==1?d:0,m==c.childCount?k:-1)))}let b=m==c.childCount;b||(k=-1),this.placed=Ar(this.placed,t,V.from(p)),this.frontier[t].match=h,b&&k<0&&o&&o.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let $=0,S=c;$<k;$++){let N=S.lastChild;this.frontier.push({type:N.type,match:N.contentMatchAt(N.childCount)}),S=N.content}this.unplaced=b?e==0?Q.empty:new Q(Rr(a.content,e-1,1),e-1,k<0?a.openEnd:e-1):new Q(Rr(a.content,e,m),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!rc(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:o}=this.$to,r=this.$to.after(o);for(;o>1&&r==this.$to.end(--o);)++r;return r}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:o,type:r}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),a=rc(e,t,r,o,i);if(a){for(let c=t-1;c>=0;c--){let{match:d,type:m}=this.frontier[c],p=rc(e,c,m,d,!0);if(!p||p.childCount)continue e}return{depth:t,fit:a,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=Ar(this.placed,t.depth,t.fit)),e=t.move;for(let o=t.depth+1;o<=e.depth;o++){let r=e.node(o),i=r.type.contentMatch.fillBefore(r.content,!0,e.index(o));this.openFrontierNode(r.type,r.attrs,i)}return e}openFrontierNode(e,t=null,o){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=Ar(this.placed,this.depth,V.from(e.create(t,o))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(V.empty,!0);t.childCount&&(this.placed=Ar(this.placed,this.frontier.length,t))}}function Rr(n,e,t){return e==0?n.cutByIndex(t,n.childCount):n.replaceChild(0,n.firstChild.copy(Rr(n.firstChild.content,e-1,t)))}function Ar(n,e,t){return e==0?n.append(t):n.replaceChild(n.childCount-1,n.lastChild.copy(Ar(n.lastChild.content,e-1,t)))}function oc(n,e){for(let t=0;t<e;t++)n=n.firstChild.content;return n}function ef(n,e,t){if(e<=0)return n;let o=n.content;return e>1&&(o=o.replaceChild(0,ef(o.firstChild,e-1,o.childCount==1?t-1:0))),e>0&&(o=n.type.contentMatch.fillBefore(o).append(o),t<=0&&(o=o.append(n.type.contentMatch.matchFragment(o).fillBefore(V.empty,!0)))),n.copy(o)}function rc(n,e,t,o,r){let i=n.node(e),a=r?n.indexAfter(e):n.index(e);if(a==i.childCount&&!t.compatibleContent(i.type))return null;let c=o.fillBefore(i.content,!0,a);return c&&!Av(t,i.content,a)?c:null}function Av(n,e,t){for(let o=t;o<e.childCount;o++)if(!n.allowsMarks(e.child(o).marks))return!0;return!1}function Ov(n){return n.spec.defining||n.spec.definingForContent}function Tv(n,e,t,o){if(!o.size)return n.deleteRange(e,t);let r=n.doc.resolve(e),i=n.doc.resolve(t);if(Zp(r,i,o))return n.step(new Ue(e,t,o));let a=nf(r,i);a[a.length-1]==0&&a.pop();let c=-(r.depth+1);a.unshift(c);for(let g=r.depth,k=r.pos-1;g>0;g--,k--){let b=r.node(g).type.spec;if(b.defining||b.definingAsContext||b.isolating)break;a.indexOf(g)>-1?c=g:r.before(g)==k&&a.splice(1,0,-g)}let d=a.indexOf(c),m=[],p=o.openStart;for(let g=o.content,k=0;;k++){let b=g.firstChild;if(m.push(b),k==o.openStart)break;g=b.content}for(let g=p-1;g>=0;g--){let k=m[g],b=Ov(k.type);if(b&&!k.sameMarkup(r.node(Math.abs(c)-1)))p=g;else if(b||!k.type.isTextblock)break}for(let g=o.openStart;g>=0;g--){let k=(g+p+1)%(o.openStart+1),b=m[k];if(b)for(let $=0;$<a.length;$++){let S=a[($+d)%a.length],N=!0;S<0&&(N=!1,S=-S);let P=r.node(S-1),L=r.index(S-1);if(P.canReplaceWith(L,L,b.type,b.marks))return n.replace(r.before(S),N?i.after(S):t,new Q(tf(o.content,0,o.openStart,k),k,o.openEnd))}}let h=n.steps.length;for(let g=a.length-1;g>=0&&(n.replace(e,t,o),!(n.steps.length>h));g--){let k=a[g];k<0||(e=r.before(k),t=i.after(k))}}function tf(n,e,t,o,r){if(e<t){let i=n.firstChild;n=n.replaceChild(0,i.copy(tf(i.content,e+1,t,o,i)))}if(e>o){let i=r.contentMatchAt(0),a=i.fillBefore(n).append(n);n=a.append(i.matchFragment(a).fillBefore(V.empty,!0))}return n}function Pv(n,e,t,o){if(!o.isInline&&e==t&&n.doc.resolve(e).parent.content.size){let r=Nv(n.doc,e,o.type);r!=null&&(e=t=r)}n.replaceRange(e,t,new Q(V.from(o),0,0))}function Mv(n,e,t){let o=n.doc.resolve(e),r=n.doc.resolve(t);if(o.parent.isTextblock&&r.parent.isTextblock&&o.start()!=r.start()&&o.parentOffset==0&&r.parentOffset==0){let a=o.sharedDepth(t),c=!1;for(let d=o.depth;d>a;d--)o.node(d).type.spec.isolating&&(c=!0);for(let d=r.depth;d>a;d--)r.node(d).type.spec.isolating&&(c=!0);if(!c){for(let d=o.depth;d>0&&e==o.start(d);d--)e=o.before(d);for(let d=r.depth;d>0&&t==r.start(d);d--)t=r.before(d);o=n.doc.resolve(e),r=n.doc.resolve(t)}}let i=nf(o,r);for(let a=0;a<i.length;a++){let c=i[a],d=a==i.length-1;if(d&&c==0||o.node(c).type.contentMatch.validEnd)return n.delete(o.start(c),r.end(c));if(c>0&&(d||o.node(c-1).canReplace(o.index(c-1),r.indexAfter(c-1))))return n.delete(o.before(c),r.after(c))}for(let a=1;a<=o.depth&&a<=r.depth;a++)if(e-o.start(a)==o.depth-a&&t>o.end(a)&&r.end(a)-t!=r.depth-a&&o.start(a-1)==r.start(a-1)&&o.node(a-1).canReplace(o.index(a-1),r.index(a-1)))return n.delete(o.before(a),t);n.delete(e,t)}function nf(n,e){let t=[],o=Math.min(n.depth,e.depth);for(let r=o;r>=0;r--){let i=n.start(r);if(i<n.pos-(n.depth-r)||e.end(r)>e.pos+(e.depth-r)||n.node(r).type.spec.isolating||e.node(r).type.spec.isolating)break;(i==e.start(r)||r==n.depth&&r==e.depth&&n.parent.inlineContent&&e.parent.inlineContent&&r&&e.start(r-1)==i-1)&&t.push(r)}return t}class To extends Ze{constructor(e,t,o){super(),this.pos=e,this.attr=t,this.value=o}apply(e){let t=e.nodeAt(this.pos);if(!t)return _e.fail("No node at attribute step's position");let o=Object.create(null);for(let i in t.attrs)o[i]=t.attrs[i];o[this.attr]=this.value;let r=t.type.create(o,null,t.marks);return _e.fromReplace(e,this.pos,this.pos+1,new Q(V.from(r),0,t.isLeaf?0:1))}getMap(){return kt.empty}invert(e){return new To(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new To(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.pos!="number"||typeof t.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new To(t.pos,t.attr,t.value)}}Ze.jsonID("attr",To);class Or extends Ze{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let r in e.attrs)t[r]=e.attrs[r];t[this.attr]=this.value;let o=e.type.create(t,e.content,e.marks);return _e.ok(o)}getMap(){return kt.empty}invert(e){return new Or(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Or(t.attr,t.value)}}Ze.jsonID("docAttr",Or);let Po=class extends Error{};Po=function n(e){let t=Error.call(this,e);return t.__proto__=n.prototype,t},Po.prototype=Object.create(Error.prototype),Po.prototype.constructor=Po,Po.prototype.name="TransformError";class of{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new ys}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new Po(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let o=0;o<this.mapping.maps.length;o++){let r=this.mapping.maps[o];o&&(e=r.map(e,1),t=r.map(t,-1)),r.forEach((i,a,c,d)=>{e=Math.min(e,c),t=Math.max(t,d)})}return e==1e9?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,o=Q.empty){let r=bs(this.doc,e,t,o);return r&&this.step(r),this}replaceWith(e,t,o){return this.replace(e,t,new Q(V.from(o),0,0))}delete(e,t){return this.replace(e,t,Q.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,o){return Tv(this,e,t,o),this}replaceRangeWith(e,t,o){return Pv(this,e,t,o),this}deleteRange(e,t){return Mv(this,e,t),this}lift(e,t){return yv(this,e,t),this}join(e,t=1){return Ev(this,e,t),this}wrap(e,t){return vv(this,e,t),this}setBlockType(e,t=e,o,r=null){return wv(this,e,t,o,r),this}setNodeMarkup(e,t,o=null,r){return xv(this,e,t,o,r),this}setNodeAttribute(e,t,o){return this.step(new To(e,t,o)),this}setDocAttribute(e,t){return this.step(new Or(e,t)),this}addNodeMark(e,t){return this.step(new vn(e,t)),this}removeNodeMark(e,t){let o=this.doc.nodeAt(e);if(!o)throw new RangeError("No node at position "+e);if(t instanceof Oe)t.isInSet(o.marks)&&this.step(new ro(e,t));else{let r=o.marks,i,a=[];for(;i=t.isInSet(r);)a.push(new ro(e,i)),r=i.removeFromSet(r);for(let c=a.length-1;c>=0;c--)this.step(a[c])}return this}split(e,t=1,o){return Sv(this,e,t,o),this}addMark(e,t,o){return fv(this,e,t,o),this}removeMark(e,t,o){return hv(this,e,t,o),this}clearIncompatible(e,t,o){return tc(this,e,t,o),this}}const ic=Object.create(null);class Ce{constructor(e,t,o){this.$anchor=e,this.$head=t,this.ranges=o||[new Lv(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=Q.empty){let o=t.content.lastChild,r=null;for(let c=0;c<t.openEnd;c++)r=o,o=o.lastChild;let i=e.steps.length,a=this.ranges;for(let c=0;c<a.length;c++){let{$from:d,$to:m}=a[c],p=e.mapping.slice(i);e.replaceRange(p.map(d.pos),p.map(m.pos),c?Q.empty:t),c==0&&af(e,i,(o?o.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,t){let o=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:a,$to:c}=r[i],d=e.mapping.slice(o),m=d.map(a.pos),p=d.map(c.pos);i?e.deleteRange(m,p):(e.replaceRangeWith(m,p,t),af(e,o,t.isInline?-1:1))}}static findFrom(e,t,o=!1){let r=e.parent.inlineContent?new be(e):Mo(e.node(0),e.parent,e.pos,e.index(),t,o);if(r)return r;for(let i=e.depth-1;i>=0;i--){let a=t<0?Mo(e.node(0),e.node(i),e.before(i+1),e.index(i),t,o):Mo(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,o);if(a)return a}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new bt(e.node(0))}static atStart(e){return Mo(e,e,0,0,1)||new bt(e)}static atEnd(e){return Mo(e,e,e.content.size,e.childCount,-1)||new bt(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let o=ic[t.type];if(!o)throw new RangeError(`No selection type ${t.type} defined`);return o.fromJSON(e,t)}static jsonID(e,t){if(e in ic)throw new RangeError("Duplicate use of selection JSON ID "+e);return ic[e]=t,t.prototype.jsonID=e,t}getBookmark(){return be.between(this.$anchor,this.$head).getBookmark()}}Ce.prototype.visible=!0;class Lv{constructor(e,t){this.$from=e,this.$to=t}}let rf=!1;function sf(n){!rf&&!n.parent.inlineContent&&(rf=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+n.parent.type.name+")"))}class be extends Ce{constructor(e,t=e){sf(e),sf(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let o=e.resolve(t.map(this.head));if(!o.parent.inlineContent)return Ce.near(o);let r=e.resolve(t.map(this.anchor));return new be(r.parent.inlineContent?r:o,o)}replace(e,t=Q.empty){if(super.replace(e,t),t==Q.empty){let o=this.$from.marksAcross(this.$to);o&&e.ensureMarks(o)}}eq(e){return e instanceof be&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new vs(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if(typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new be(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,o=t){let r=e.resolve(t);return new this(r,o==t?r:e.resolve(o))}static between(e,t,o){let r=e.pos-t.pos;if((!o||r)&&(o=r>=0?1:-1),!t.parent.inlineContent){let i=Ce.findFrom(t,o,!0)||Ce.findFrom(t,-o,!0);if(i)t=i.$head;else return Ce.near(t,o)}return e.parent.inlineContent||(r==0?e=t:(e=(Ce.findFrom(e,-o,!0)||Ce.findFrom(e,o,!0)).$anchor,e.pos<t.pos!=r<0&&(e=t))),new be(e,t)}}Ce.jsonID("text",be);class vs{constructor(e,t){this.anchor=e,this.head=t}map(e){return new vs(e.map(this.anchor),e.map(this.head))}resolve(e){return be.between(e.resolve(this.anchor),e.resolve(this.head))}}class le extends Ce{constructor(e){let t=e.nodeAfter,o=e.node(0).resolve(e.pos+t.nodeSize);super(e,o),this.node=t}map(e,t){let{deleted:o,pos:r}=t.mapResult(this.anchor),i=e.resolve(r);return o?Ce.near(i):new le(i)}content(){return new Q(V.from(this.node),0,0)}eq(e){return e instanceof le&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new sc(this.anchor)}static fromJSON(e,t){if(typeof t.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new le(e.resolve(t.anchor))}static create(e,t){return new le(e.resolve(t))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}le.prototype.visible=!1,Ce.jsonID("node",le);class sc{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:o}=e.mapResult(this.anchor);return t?new vs(o,o):new sc(o)}resolve(e){let t=e.resolve(this.anchor),o=t.nodeAfter;return o&&le.isSelectable(o)?new le(t):Ce.near(t)}}class bt extends Ce{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=Q.empty){if(t==Q.empty){e.delete(0,e.doc.content.size);let o=Ce.atStart(e.doc);o.eq(e.selection)||e.setSelection(o)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new bt(e)}map(e){return new bt(e)}eq(e){return e instanceof bt}getBookmark(){return jv}}Ce.jsonID("all",bt);const jv={map(){return this},resolve(n){return new bt(n)}};function Mo(n,e,t,o,r,i=!1){if(e.inlineContent)return be.create(n,t);for(let a=o-(r>0?0:1);r>0?a<e.childCount:a>=0;a+=r){let c=e.child(a);if(c.isAtom){if(!i&&le.isSelectable(c))return le.create(n,t-(r<0?c.nodeSize:0))}else{let d=Mo(n,c,t+r,r<0?c.childCount:0,r,i);if(d)return d}t+=c.nodeSize*r}return null}function af(n,e,t){let o=n.steps.length-1;if(o<e)return;let r=n.steps[o];if(!(r instanceof Ue||r instanceof Ye))return;let i=n.mapping.maps[o],a;i.forEach((c,d,m,p)=>{a==null&&(a=p)}),n.setSelection(Ce.near(n.doc.resolve(a),t))}const lf=1,ws=2,cf=4;class Iv extends of{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|lf)&~ws,this.storedMarks=null,this}get selectionSet(){return(this.updated&lf)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=ws,this}ensureMarks(e){return Oe.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&ws)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~ws,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let o=this.selection;return t&&(e=e.mark(this.storedMarks||(o.empty?o.$from.marks():o.$from.marksAcross(o.$to)||Oe.none))),o.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,o){let r=this.doc.type.schema;if(t==null)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(o==null&&(o=t),!e)return this.deleteRange(t,o);let i=this.storedMarks;if(!i){let a=this.doc.resolve(t);i=o==t?a.marks():a.marksAcross(this.doc.resolve(o))}return this.replaceRangeWith(t,o,r.text(e,i)),!this.selection.empty&&this.selection.to==t+e.length&&this.setSelection(Ce.near(this.selection.$to)),this}}setMeta(e,t){return this.meta[typeof e=="string"?e:e.key]=t,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=cf,this}get scrolledIntoView(){return(this.updated&cf)>0}}function uf(n,e){return!e||!n?n:n.bind(e)}class Tr{constructor(e,t,o){this.name=e,this.init=uf(t.init,o),this.apply=uf(t.apply,o)}}const Bv=[new Tr("doc",{init(n){return n.doc||n.schema.topNodeType.createAndFill()},apply(n){return n.doc}}),new Tr("selection",{init(n,e){return n.selection||Ce.atStart(e.doc)},apply(n){return n.selection}}),new Tr("storedMarks",{init(n){return n.storedMarks||null},apply(n,e,t,o){return o.selection.$cursor?n.storedMarks:null}}),new Tr("scrollToSelection",{init(){return 0},apply(n,e){return n.scrolledIntoView?e+1:e}})];class ac{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=Bv.slice(),t&&t.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 Tr(o.key,o.spec.state,o))})}}class Lo{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let o=0;o<this.config.plugins.length;o++)if(o!=t){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 t=[e],o=this.applyInner(e),r=null;for(;;){let i=!1;for(let a=0;a<this.config.plugins.length;a++){let c=this.config.plugins[a];if(c.spec.appendTransaction){let d=r?r[a].n:0,m=r?r[a].state:this,p=d<t.length&&c.spec.appendTransaction.call(c,d?t.slice(d):t,m,o);if(p&&o.filterTransaction(p,a)){if(p.setMeta("appendedTransaction",e),!r){r=[];for(let h=0;h<this.config.plugins.length;h++)r.push(h<a?{state:o,n:t.length}:{state:this,n:0})}t.push(p),o=o.applyInner(p),i=!0}r&&(r[a]={state:o,n:t.length})}}if(!i)return{state:o,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new Lo(this.config),o=this.config.fields;for(let r=0;r<o.length;r++){let i=o[r];t[i.name]=i.apply(e,this[i.name],this,t)}return t}get tr(){return new Iv(this)}static create(e){let t=new ac(e.doc?e.doc.type.schema:e.schema,e.plugins),o=new Lo(t);for(let r=0;r<t.fields.length;r++)o[t.fields[r].name]=t.fields[r].init(e,o);return o}reconfigure(e){let t=new ac(this.schema,e.plugins),o=t.fields,r=new Lo(t);for(let i=0;i<o.length;i++){let a=o[i].name;r[a]=this.hasOwnProperty(a)?this[a]:o[i].init(e,r)}return r}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.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],i=r.spec.state;i&&i.toJSON&&(t[o]=i.toJSON.call(r,this[r.key]))}return t}static fromJSON(e,t,o){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let r=new ac(e.schema,e.plugins),i=new Lo(r);return r.fields.forEach(a=>{if(a.name=="doc")i.doc=kn.fromJSON(e.schema,t.doc);else if(a.name=="selection")i.selection=Ce.fromJSON(i.doc,t.selection);else if(a.name=="storedMarks")t.storedMarks&&(i.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(o)for(let c in o){let d=o[c],m=d.spec.state;if(d.key==a.name&&m&&m.fromJSON&&Object.prototype.hasOwnProperty.call(t,c)){i[a.name]=m.fromJSON.call(d,e,t[c],i);return}}i[a.name]=a.init(e,i)}}),i}}function df(n,e,t){for(let o in n){let r=n[o];r instanceof Function?r=r.bind(e):o=="handleDOMEvents"&&(r=df(r,e,{})),t[o]=r}return t}class dt{constructor(e){this.spec=e,this.props={},e.props&&df(e.props,this,this.props),this.key=e.key?e.key.key:mf("plugin")}getState(e){return e[this.key]}}const lc=Object.create(null);function mf(n){return n in lc?n+"$"+ ++lc[n]:(lc[n]=0,n+"$")}class Bt{constructor(e="key"){this.key=mf(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const qe=function(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e},jo=function(n){let e=n.assignedSlot||n.parentNode;return e&&e.nodeType==11?e.host:e};let cc=null;const tn=function(n,e,t){let o=cc||(cc=document.createRange());return o.setEnd(n,t??n.nodeValue.length),o.setStart(n,e||0),o},zv=function(){cc=null},io=function(n,e,t,o){return t&&(pf(n,e,t,o,-1)||pf(n,e,t,o,1))},Fv=/^(img|br|input|textarea|hr)$/i;function pf(n,e,t,o,r){for(var i;;){if(n==t&&e==o)return!0;if(e==(r<0?0:Ct(n))){let a=n.parentNode;if(!a||a.nodeType!=1||Pr(n)||Fv.test(n.nodeName)||n.contentEditable=="false")return!1;e=qe(n)+(r<0?0:1),n=a}else if(n.nodeType==1){let a=n.childNodes[e+(r<0?-1:0)];if(a.nodeType==1&&a.contentEditable=="false")if(!((i=a.pmViewDesc)===null||i===void 0)&&i.ignoreForSelection)e+=r;else return!1;else n=a,e=r<0?Ct(n):0}else return!1}}function Ct(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function _v(n,e){for(;;){if(n.nodeType==3&&e)return n;if(n.nodeType==1&&e>0){if(n.contentEditable=="false")return null;n=n.childNodes[e-1],e=Ct(n)}else if(n.parentNode&&!Pr(n))e=qe(n),n=n.parentNode;else return null}}function Uv(n,e){for(;;){if(n.nodeType==3&&e<n.nodeValue.length)return n;if(n.nodeType==1&&e<n.childNodes.length){if(n.contentEditable=="false")return null;n=n.childNodes[e],e=0}else if(n.parentNode&&!Pr(n))e=qe(n)+1,n=n.parentNode;else return null}}function Hv(n,e,t){for(let o=e==0,r=e==Ct(n);o||r;){if(n==t)return!0;let i=qe(n);if(n=n.parentNode,!n)return!1;o=o&&i==0,r=r&&i==Ct(n)}}function Pr(n){let e;for(let t=n;t&&!(e=t.pmViewDesc);t=t.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==n||e.contentDOM==n)}const $s=function(n){return n.focusNode&&io(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)};function so(n,e){let t=document.createEvent("Event");return t.initEvent("keydown",!0,!0),t.keyCode=n,t.key=t.code=e,t}function Vv(n){let e=n.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Yv(n,e,t){if(n.caretPositionFromPoint)try{let o=n.caretPositionFromPoint(e,t);if(o)return{node:o.offsetNode,offset:Math.min(Ct(o.offsetNode),o.offset)}}catch{}if(n.caretRangeFromPoint){let o=n.caretRangeFromPoint(e,t);if(o)return{node:o.startContainer,offset:Math.min(Ct(o.startContainer),o.startOffset)}}}const uc=typeof navigator<"u"?navigator:null,ff=typeof document<"u"?document:null,vt=uc&&uc.userAgent||"",dc=/Edge\/(\d+)/.exec(vt),hf=/MSIE \d/.exec(vt),mc=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(vt),mt=!!(hf||mc||dc),$n=hf?document.documentMode:mc?+mc[1]:dc?+dc[1]:0,Et=!mt&&/gecko\/(\d+)/i.test(vt);Et&&+(/Firefox\/(\d+)/.exec(vt)||[0,0])[1];const pc=!mt&&/Chrome\/(\d+)/.exec(vt),Je=!!pc,gf=pc?+pc[1]:0,et=!mt&&!!uc&&/Safari\//.test(vt)&&!/Chrome\//.test(vt)&&!/Chromium\//.test(vt),Io=et&&/Mobile\/\w+/.test(vt),Nt=Io||/Macintosh/.test(vt),yf=/Windows/.test(vt),nn=/Android \d/.test(vt),Mr=!!ff&&"webkitFontSmoothing"in ff.documentElement.style,Jv=Mr?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Kv(n){let e=n.defaultView&&n.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:n.documentElement.clientWidth,top:0,bottom:n.documentElement.clientHeight}}function on(n,e){return typeof n=="number"?n:n[e]}function Wv(n){let e=n.getBoundingClientRect(),t=e.width/n.offsetWidth||1,o=e.height/n.offsetHeight||1;return{left:e.left,right:e.left+n.clientWidth*t,top:e.top,bottom:e.top+n.clientHeight*o}}function kf(n,e,t){let o=n.someProp("scrollThreshold")||0,r=n.someProp("scrollMargin")||5,i=n.dom.ownerDocument;for(let a=t||n.dom;a;){if(a.nodeType!=1){a=jo(a);continue}let c=a,d=c==i.body,m=d?Kv(i):Wv(c),p=0,h=0;if(e.top<m.top+on(o,"top")?h=-(m.top-e.top+on(r,"top")):e.bottom>m.bottom-on(o,"bottom")&&(h=e.bottom-e.top>m.bottom-m.top?e.top+on(r,"top")-m.top:e.bottom-m.bottom+on(r,"bottom")),e.left<m.left+on(o,"left")?p=-(m.left-e.left+on(r,"left")):e.right>m.right-on(o,"right")&&(p=e.right-m.right+on(r,"right")),p||h)if(d)i.defaultView.scrollBy(p,h);else{let k=c.scrollLeft,b=c.scrollTop;h&&(c.scrollTop+=h),p&&(c.scrollLeft+=p);let $=c.scrollLeft-k,S=c.scrollTop-b;e={left:e.left-$,top:e.top-S,right:e.right-$,bottom:e.bottom-S}}let g=d?"fixed":getComputedStyle(a).position;if(/^(fixed|sticky)$/.test(g))break;a=g=="absolute"?a.offsetParent:jo(a)}}function qv(n){let e=n.dom.getBoundingClientRect(),t=Math.max(0,e.top),o,r;for(let i=(e.left+e.right)/2,a=t+1;a<Math.min(innerHeight,e.bottom);a+=5){let c=n.root.elementFromPoint(i,a);if(!c||c==n.dom||!n.dom.contains(c))continue;let d=c.getBoundingClientRect();if(d.top>=t-20){o=c,r=d.top;break}}return{refDOM:o,refTop:r,stack:bf(n.dom)}}function bf(n){let e=[],t=n.ownerDocument;for(let o=n;o&&(e.push({dom:o,top:o.scrollTop,left:o.scrollLeft}),n!=t);o=jo(o));return e}function Gv({refDOM:n,refTop:e,stack:t}){let o=n?n.getBoundingClientRect().top:0;vf(t,o==0?0:o-e)}function vf(n,e){for(let t=0;t<n.length;t++){let{dom:o,top:r,left:i}=n[t];o.scrollTop!=r+e&&(o.scrollTop=r+e),o.scrollLeft!=i&&(o.scrollLeft=i)}}let Bo=null;function Qv(n){if(n.setActive)return n.setActive();if(Bo)return n.focus(Bo);let e=bf(n);n.focus(Bo==null?{get preventScroll(){return Bo={preventScroll:!0},!0}}:void 0),Bo||(Bo=!1,vf(e,0))}function wf(n,e){let t,o=2e8,r,i=0,a=e.top,c=e.top,d,m;for(let p=n.firstChild,h=0;p;p=p.nextSibling,h++){let g;if(p.nodeType==1)g=p.getClientRects();else if(p.nodeType==3)g=tn(p).getClientRects();else continue;for(let k=0;k<g.length;k++){let b=g[k];if(b.top<=a&&b.bottom>=c){a=Math.max(b.bottom,a),c=Math.min(b.top,c);let $=b.left>e.left?b.left-e.left:b.right<e.left?e.left-b.right:0;if($<o){t=p,o=$,r=$&&t.nodeType==3?{left:b.right<e.left?b.right:b.left,top:e.top}:e,p.nodeType==1&&$&&(i=h+(e.left>=(b.left+b.right)/2?1:0));continue}}else b.top>e.top&&!d&&b.left<=e.left&&b.right>=e.left&&(d=p,m={left:Math.max(b.left,Math.min(b.right,e.left)),top:b.top});!t&&(e.left>=b.right&&e.top>=b.top||e.left>=b.left&&e.top>=b.bottom)&&(i=h+1)}}return!t&&d&&(t=d,r=m,o=0),t&&t.nodeType==3?Xv(t,r):!t||o&&t.nodeType==1?{node:n,offset:i}:wf(t,r)}function Xv(n,e){let t=n.nodeValue.length,o=document.createRange(),r;for(let i=0;i<t;i++){o.setEnd(n,i+1),o.setStart(n,i);let a=xn(o,1);if(a.top!=a.bottom&&fc(e,a)){r={node:n,offset:i+(e.left>=(a.left+a.right)/2?1:0)};break}}return o.detach(),r||{node:n,offset:0}}function fc(n,e){return n.left>=e.left-1&&n.left<=e.right+1&&n.top>=e.top-1&&n.top<=e.bottom+1}function Zv(n,e){let t=n.parentNode;return t&&/^li$/i.test(t.nodeName)&&e.left<n.getBoundingClientRect().left?t:n}function ew(n,e,t){let{node:o,offset:r}=wf(e,t),i=-1;if(o.nodeType==1&&!o.firstChild){let a=o.getBoundingClientRect();i=a.left!=a.right&&t.left>(a.left+a.right)/2?1:-1}return n.docView.posFromDOM(o,r,i)}function tw(n,e,t,o){let r=-1;for(let i=e,a=!1;i!=n.dom;){let c=n.docView.nearestDesc(i,!0),d;if(!c)return null;if(c.dom.nodeType==1&&(c.node.isBlock&&c.parent||!c.contentDOM)&&((d=c.dom.getBoundingClientRect()).width||d.height)&&(c.node.isBlock&&c.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(c.dom.nodeName)&&(!a&&d.left>o.left||d.top>o.top?r=c.posBefore:(!a&&d.right<o.left||d.bottom<o.top)&&(r=c.posAfter),a=!0),!c.contentDOM&&r<0&&!c.node.isText))return(c.node.isBlock?o.top<(d.top+d.bottom)/2:o.left<(d.left+d.right)/2)?c.posBefore:c.posAfter;i=c.dom.parentNode}return r>-1?r:n.docView.posFromDOM(e,t,-1)}function $f(n,e,t){let o=n.childNodes.length;if(o&&t.top<t.bottom)for(let r=Math.max(0,Math.min(o-1,Math.floor(o*(e.top-t.top)/(t.bottom-t.top))-2)),i=r;;){let a=n.childNodes[i];if(a.nodeType==1){let c=a.getClientRects();for(let d=0;d<c.length;d++){let m=c[d];if(fc(e,m))return $f(a,e,m)}}if((i=(i+1)%o)==r)break}return n}function nw(n,e){let t=n.dom.ownerDocument,o,r=0,i=Yv(t,e.left,e.top);i&&({node:o,offset:r}=i);let a=(n.root.elementFromPoint?n.root:t).elementFromPoint(e.left,e.top),c;if(!a||!n.dom.contains(a.nodeType!=1?a.parentNode:a)){let m=n.dom.getBoundingClientRect();if(!fc(e,m)||(a=$f(n.dom,e,m),!a))return null}if(et)for(let m=a;o&&m;m=jo(m))m.draggable&&(o=void 0);if(a=Zv(a,e),o){if(Et&&o.nodeType==1&&(r=Math.min(r,o.childNodes.length),r<o.childNodes.length)){let p=o.childNodes[r],h;p.nodeName=="IMG"&&(h=p.getBoundingClientRect()).right<=e.left&&h.bottom>e.top&&r++}let m;Mr&&r&&o.nodeType==1&&(m=o.childNodes[r-1]).nodeType==1&&m.contentEditable=="false"&&m.getBoundingClientRect().top>=e.top&&r--,o==n.dom&&r==o.childNodes.length-1&&o.lastChild.nodeType==1&&e.top>o.lastChild.getBoundingClientRect().bottom?c=n.state.doc.content.size:(r==0||o.nodeType!=1||o.childNodes[r-1].nodeName!="BR")&&(c=tw(n,o,r,e))}c==null&&(c=ew(n,a,e));let d=n.docView.nearestDesc(a,!0);return{pos:c,inside:d?d.posAtStart-d.border:-1}}function xf(n){return n.top<n.bottom||n.left<n.right}function xn(n,e){let t=n.getClientRects();if(t.length){let o=t[e<0?0:t.length-1];if(xf(o))return o}return Array.prototype.find.call(t,xf)||n.getBoundingClientRect()}const ow=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Sf(n,e,t){let{node:o,offset:r,atom:i}=n.docView.domFromPos(e,t<0?-1:1),a=Mr||Et;if(o.nodeType==3)if(a&&(ow.test(o.nodeValue)||(t<0?!r:r==o.nodeValue.length))){let d=xn(tn(o,r,r),t);if(Et&&r&&/\s/.test(o.nodeValue[r-1])&&r<o.nodeValue.length){let m=xn(tn(o,r-1,r-1),-1);if(m.top==d.top){let p=xn(tn(o,r,r+1),-1);if(p.top!=d.top)return Lr(p,p.left<m.left)}}return d}else{let d=r,m=r,p=t<0?1:-1;return t<0&&!r?(m++,p=-1):t>=0&&r==o.nodeValue.length?(d--,p=1):t<0?d--:m++,Lr(xn(tn(o,d,m),p),p<0)}if(!n.state.doc.resolve(e-(i||0)).parent.inlineContent){if(i==null&&r&&(t<0||r==Ct(o))){let d=o.childNodes[r-1];if(d.nodeType==1)return hc(d.getBoundingClientRect(),!1)}if(i==null&&r<Ct(o)){let d=o.childNodes[r];if(d.nodeType==1)return hc(d.getBoundingClientRect(),!0)}return hc(o.getBoundingClientRect(),t>=0)}if(i==null&&r&&(t<0||r==Ct(o))){let d=o.childNodes[r-1],m=d.nodeType==3?tn(d,Ct(d)-(a?0:1)):d.nodeType==1&&(d.nodeName!="BR"||!d.nextSibling)?d:null;if(m)return Lr(xn(m,1),!1)}if(i==null&&r<Ct(o)){let d=o.childNodes[r];for(;d.pmViewDesc&&d.pmViewDesc.ignoreForCoords;)d=d.nextSibling;let m=d?d.nodeType==3?tn(d,0,a?0:1):d.nodeType==1?d:null:null;if(m)return Lr(xn(m,-1),!0)}return Lr(xn(o.nodeType==3?tn(o):o,-t),t>=0)}function Lr(n,e){if(n.width==0)return n;let t=e?n.left:n.right;return{top:n.top,bottom:n.bottom,left:t,right:t}}function hc(n,e){if(n.height==0)return n;let t=e?n.top:n.bottom;return{top:t,bottom:t,left:n.left,right:n.right}}function Cf(n,e,t){let o=n.state,r=n.root.activeElement;o!=e&&n.updateState(e),r!=n.dom&&n.focus();try{return t()}finally{o!=e&&n.updateState(o),r!=n.dom&&r&&r.focus()}}function rw(n,e,t){let o=e.selection,r=t=="up"?o.$from:o.$to;return Cf(n,e,()=>{let{node:i}=n.docView.domFromPos(r.pos,t=="up"?-1:1);for(;;){let c=n.docView.nearestDesc(i,!0);if(!c)break;if(c.node.isBlock){i=c.contentDOM||c.dom;break}i=c.dom.parentNode}let a=Sf(n,r.pos,1);for(let c=i.firstChild;c;c=c.nextSibling){let d;if(c.nodeType==1)d=c.getClientRects();else if(c.nodeType==3)d=tn(c,0,c.nodeValue.length).getClientRects();else continue;for(let m=0;m<d.length;m++){let p=d[m];if(p.bottom>p.top+1&&(t=="up"?a.top-p.top>(p.bottom-a.top)*2:p.bottom-a.bottom>(a.bottom-p.top)*2))return!1}}return!0})}const iw=/[\u0590-\u08ac]/;function sw(n,e,t){let{$head:o}=e.selection;if(!o.parent.isTextblock)return!1;let r=o.parentOffset,i=!r,a=r==o.parent.content.size,c=n.domSelection();return c?!iw.test(o.parent.textContent)||!c.modify?t=="left"||t=="backward"?i:a:Cf(n,e,()=>{let{focusNode:d,focusOffset:m,anchorNode:p,anchorOffset:h}=n.domSelectionRange(),g=c.caretBidiLevel;c.modify("move",t,"character");let k=o.depth?n.docView.domAfterPos(o.before()):n.dom,{focusNode:b,focusOffset:$}=n.domSelectionRange(),S=b&&!k.contains(b.nodeType==1?b:b.parentNode)||d==b&&m==$;try{c.collapse(p,h),d&&(d!=p||m!=h)&&c.extend&&c.extend(d,m)}catch{}return g!=null&&(c.caretBidiLevel=g),S}):o.pos==o.start()||o.pos==o.end()}let Ef=null,Nf=null,Df=!1;function aw(n,e,t){return Ef==e&&Nf==t?Df:(Ef=e,Nf=t,Df=t=="up"||t=="down"?rw(n,e,t):sw(n,e,t))}const Dt=0,Rf=1,ao=2,Ht=3;class jr{constructor(e,t,o,r){this.parent=e,this.children=t,this.dom=o,this.contentDOM=r,this.dirty=Dt,o.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,o){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,o=this.posAtStart;;t++){let r=this.children[t];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,t,o){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(o<0){let i,a;if(e==this.contentDOM)i=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.previousSibling}for(;i&&!((a=i.pmViewDesc)&&a.parent==this);)i=i.previousSibling;return i?this.posBeforeChild(a)+a.size:this.posAtStart}else{let i,a;if(e==this.contentDOM)i=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;i=e.nextSibling}for(;i&&!((a=i.pmViewDesc)&&a.parent==this);)i=i.nextSibling;return i?this.posBeforeChild(a):this.posAtEnd}let r;if(e==this.dom&&this.contentDOM)r=t>qe(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(t==0)for(let i=e;;i=i.parentNode){if(i==this.dom){r=!1;break}if(i.previousSibling)break}if(r==null&&t==e.childNodes.length)for(let i=e;;i=i.parentNode){if(i==this.dom){r=!0;break}if(i.nextSibling)break}}return r??o>0?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let o=!0,r=e;r;r=r.parentNode){let i=this.getDesc(r),a;if(i&&(!t||i.node))if(o&&(a=i.nodeDOM)&&!(a.nodeType==1?a.contains(e.nodeType==1?e:e.parentNode):a==e))o=!1;else return i}}getDesc(e){let t=e.pmViewDesc;for(let o=t;o;o=o.parent)if(o==this)return t}posFromDOM(e,t,o){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,t,o)}return-1}descAt(e){for(let t=0,o=0;t<this.children.length;t++){let r=this.children[t],i=o+r.size;if(o==e&&i!=o){for(;!r.border&&r.children.length;)for(let a=0;a<r.children.length;a++){let c=r.children[a];if(c.size){r=c;break}}return r}if(e<i)return r.descAt(e-o-r.border);o=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let o=0,r=0;for(let i=0;o<this.children.length;o++){let a=this.children[o],c=i+a.size;if(c>e||a instanceof Tf){r=e-i;break}i=c}if(r)return this.children[o].domFromPos(r-this.children[o].border,t);for(let i;o&&!(i=this.children[o-1]).size&&i instanceof Af&&i.side>=0;o--);if(t<=0){let i,a=!0;for(;i=o?this.children[o-1]:null,!(!i||i.dom.parentNode==this.contentDOM);o--,a=!1);return i&&t&&a&&!i.border&&!i.domAtom?i.domFromPos(i.size,t):{node:this.contentDOM,offset:i?qe(i.dom)+1:0}}else{let i,a=!0;for(;i=o<this.children.length?this.children[o]:null,!(!i||i.dom.parentNode==this.contentDOM);o++,a=!1);return i&&a&&!i.border&&!i.domAtom?i.domFromPos(0,t):{node:this.contentDOM,offset:i?qe(i.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,o=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let a=o,c=0;;c++){let d=this.children[c],m=a+d.size;if(r==-1&&e<=m){let p=a+d.border;if(e>=p&&t<=m-d.border&&d.node&&d.contentDOM&&this.contentDOM.contains(d.contentDOM))return d.parseRange(e,t,p);e=a;for(let h=c;h>0;h--){let g=this.children[h-1];if(g.size&&g.dom.parentNode==this.contentDOM&&!g.emptyChildAt(1)){r=qe(g.dom)+1;break}e-=g.size}r==-1&&(r=0)}if(r>-1&&(m>t||c==this.children.length-1)){t=m;for(let p=c+1;p<this.children.length;p++){let h=this.children[p];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(-1)){i=qe(h.dom);break}t+=h.size}i==-1&&(i=this.contentDOM.childNodes.length);break}a=m}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return t.size==0||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:o}=this.domFromPos(e,0);if(t.nodeType!=1||o==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[o]}setSelection(e,t,o,r=!1){let i=Math.min(e,t),a=Math.max(e,t);for(let k=0,b=0;k<this.children.length;k++){let $=this.children[k],S=b+$.size;if(i>b&&a<S)return $.setSelection(e-b-$.border,t-b-$.border,o,r);b=S}let c=this.domFromPos(e,e?-1:1),d=t==e?c:this.domFromPos(t,t?-1:1),m=o.root.getSelection(),p=o.domSelectionRange(),h=!1;if((Et||et)&&e==t){let{node:k,offset:b}=c;if(k.nodeType==3){if(h=!!(b&&k.nodeValue[b-1]==`
|
|
7
|
-
`),h&&b==k.nodeValue.length)for(let $=k,S;$;$=$.parentNode){if(S=$.nextSibling){S.nodeName=="BR"&&(c=d={node:S.parentNode,offset:qe(S)+1});break}let N=$.pmViewDesc;if(N&&N.node&&N.node.isBlock)break}}else{let $=k.childNodes[b-1];h=$&&($.nodeName=="BR"||$.contentEditable=="false")}}if(Et&&p.focusNode&&p.focusNode!=d.node&&p.focusNode.nodeType==1){let k=p.focusNode.childNodes[p.focusOffset];k&&k.contentEditable=="false"&&(r=!0)}if(!(r||h&&et)&&io(c.node,c.offset,p.anchorNode,p.anchorOffset)&&io(d.node,d.offset,p.focusNode,p.focusOffset))return;let g=!1;if((m.extend||e==t)&&!(h&&Et)){m.collapse(c.node,c.offset);try{e!=t&&m.extend(d.node,d.offset),g=!0}catch{}}if(!g){if(e>t){let b=c;c=d,d=b}let k=document.createRange();k.setEnd(d.node,d.offset),k.setStart(c.node,c.offset),m.removeAllRanges(),m.addRange(k)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let o=0,r=0;r<this.children.length;r++){let i=this.children[r],a=o+i.size;if(o==a?e<=a&&t>=o:e<a&&t>o){let c=o+i.border,d=a-i.border;if(e>=c&&t<=d){this.dirty=e==o||t==a?ao:Rf,e==c&&t==d&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=Ht:i.markDirty(e-c,t-c);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?ao:Ht}o=a}this.dirty=ao}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let o=e==1?ao:Rf;t.dirty<o&&(t.dirty=o)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class Af extends jr{constructor(e,t,o,r){let i,a=t.type.toDOM;if(typeof a=="function"&&(a=a(o,()=>{if(!i)return r;if(i.parent)return i.parent.posBeforeChild(i)})),!t.type.spec.raw){if(a.nodeType!=1){let c=document.createElement("span");c.appendChild(a),a=c}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(e,[],a,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return this.dirty==Dt&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return t?t(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class lw extends jr{constructor(e,t,o,r){super(e,[],t,null),this.textDOM=o,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class lo extends jr{constructor(e,t,o,r,i){super(e,[],o,r),this.mark=t,this.spec=i}static create(e,t,o,r){let i=r.nodeViews[t.type.name],a=i&&i(t,r,o);return(!a||!a.dom)&&(a=oo.renderSpec(document,t.type.spec.toDOM(t,o),null,t.attrs)),new lo(e,t,a.dom,a.contentDOM||a.dom,a)}parseRule(){return this.dirty&Ht||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Ht&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=Dt){let o=this.parent;for(;!o.node;)o=o.parent;o.dirty<this.dirty&&(o.dirty=this.dirty),this.dirty=Dt}}slice(e,t,o){let r=lo.create(this.parent,this.mark,!0,o),i=this.children,a=this.size;t<a&&(i=yc(i,t,a,o)),e>0&&(i=yc(i,0,e,o));for(let c=0;c<i.length;c++)i[c].parent=r;return r.children=i,r}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class Sn extends jr{constructor(e,t,o,r,i,a,c,d,m){super(e,[],i,a),this.node=t,this.outerDeco=o,this.innerDeco=r,this.nodeDOM=c}static create(e,t,o,r,i,a){let c=i.nodeViews[t.type.name],d,m=c&&c(t,i,()=>{if(!d)return a;if(d.parent)return d.parent.posBeforeChild(d)},o,r),p=m&&m.dom,h=m&&m.contentDOM;if(t.isText){if(!p)p=document.createTextNode(t.text);else if(p.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else p||({dom:p,contentDOM:h}=oo.renderSpec(document,t.type.spec.toDOM(t),null,t.attrs));!h&&!t.isText&&p.nodeName!="BR"&&(p.hasAttribute("contenteditable")||(p.contentEditable="false"),t.type.spec.draggable&&(p.draggable=!0));let g=p;return p=Lf(p,o,t),m?d=new cw(e,t,o,r,p,h||null,g,m,i,a+1):t.isText?new xs(e,t,o,r,p,g,i):new Sn(e,t,o,r,p,h||null,g,i,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let t=this.children.length-1;t>=0;t--){let o=this.children[t];if(this.dom.contains(o.dom.parentNode)){e.contentElement=o.dom.parentNode;break}}e.contentElement||(e.getContent=()=>V.empty)}return e}matchesNode(e,t,o){return this.dirty==Dt&&e.eq(this.node)&&Ss(t,this.outerDeco)&&o.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let o=this.node.inlineContent,r=t,i=e.composing?this.localCompositionInfo(e,t):null,a=i&&i.pos>-1?i:null,c=i&&i.pos<0,d=new dw(this,a&&a.node,e);fw(this.node,this.innerDeco,(m,p,h)=>{m.spec.marks?d.syncToMarks(m.spec.marks,o,e,p):m.type.side>=0&&!h&&d.syncToMarks(p==this.node.childCount?Oe.none:this.node.child(p).marks,o,e,p),d.placeWidget(m,e,r)},(m,p,h,g)=>{d.syncToMarks(m.marks,o,e,g);let k;d.findNodeMatch(m,p,h,g)||c&&e.state.selection.from>r&&e.state.selection.to<r+m.nodeSize&&(k=d.findIndexWithChild(i.node))>-1&&d.updateNodeAt(m,p,h,k,e)||d.updateNextNode(m,p,h,e,g,r)||d.addNode(m,p,h,e,r),r+=m.nodeSize}),d.syncToMarks([],o,e,0),this.node.isTextblock&&d.addTextblockHacks(),d.destroyRest(),(d.changed||this.dirty==ao)&&(a&&this.protectLocalComposition(e,a),Pf(this.contentDOM,this.children,e),Io&&hw(this.dom))}localCompositionInfo(e,t){let{from:o,to:r}=e.state.selection;if(!(e.state.selection instanceof be)||o<t||r>t+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let a=i.nodeValue,c=gw(this.node.content,a,o-t,r-t);return c<0?null:{node:i,pos:c,text:a}}else return{node:i,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:o,text:r}){if(this.getDesc(t))return;let i=t;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let a=new lw(this,i,t,r);e.input.compositionNodes.push(a),this.children=yc(this.children,o,o+r.length,e,a)}update(e,t,o,r){return this.dirty==Ht||!e.sameMarkup(this.node)?!1:(this.updateInner(e,t,o,r),!0)}updateInner(e,t,o,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=o,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=Dt}updateOuterDeco(e){if(Ss(e,this.outerDeco))return;let t=this.nodeDOM.nodeType!=1,o=this.dom;this.dom=Mf(this.dom,this.nodeDOM,gc(this.outerDeco,this.node,t),gc(e,this.node,t)),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.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Of(n,e,t,o,r){Lf(o,e,n);let i=new Sn(void 0,n,e,t,o,o,o,r,0);return i.contentDOM&&i.updateChildren(r,0),i}class xs extends Sn{constructor(e,t,o,r,i,a,c){super(e,t,o,r,i,null,a,c,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,o,r){return this.dirty==Ht||this.dirty!=Dt&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=Dt||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=Dt,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,o){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,o)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,t,o){let r=this.node.cut(e,t),i=document.createTextNode(r.text);return new xs(this.parent,r,this.outerDeco,this.innerDeco,i,i,o)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(e==0||t==this.nodeDOM.nodeValue.length)&&(this.dirty=Ht)}get domAtom(){return!1}isText(e){return this.node.text==e}}class Tf extends jr{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Dt&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class cw extends Sn{constructor(e,t,o,r,i,a,c,d,m,p){super(e,t,o,r,i,a,c,m,p),this.spec=d}update(e,t,o,r){if(this.dirty==Ht)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,t,o);return i&&this.updateInner(e,t,o,r),i}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,t,o,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,o,r){this.spec.setSelection?this.spec.setSelection(e,t,o.root):super.setSelection(e,t,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 Pf(n,e,t){let o=n.firstChild,r=!1;for(let i=0;i<e.length;i++){let a=e[i],c=a.dom;if(c.parentNode==n){for(;c!=o;)o=jf(o),r=!0;o=o.nextSibling}else r=!0,n.insertBefore(c,o);if(a instanceof lo){let d=o?o.previousSibling:n.lastChild;Pf(a.contentDOM,a.children,t),o=d?d.nextSibling:n.firstChild}}for(;o;)o=jf(o),r=!0;r&&t.trackWrites==n&&(t.trackWrites=null)}const Ir=function(n){n&&(this.nodeName=n)};Ir.prototype=Object.create(null);const co=[new Ir];function gc(n,e,t){if(n.length==0)return co;let o=t?co[0]:new Ir,r=[o];for(let i=0;i<n.length;i++){let a=n[i].type.attrs;if(a){a.nodeName&&r.push(o=new Ir(a.nodeName));for(let c in a){let d=a[c];d!=null&&(t&&r.length==1&&r.push(o=new Ir(e.isInline?"span":"div")),c=="class"?o.class=(o.class?o.class+" ":"")+d:c=="style"?o.style=(o.style?o.style+";":"")+d:c!="nodeName"&&(o[c]=d))}}}return r}function Mf(n,e,t,o){if(t==co&&o==co)return e;let r=e;for(let i=0;i<o.length;i++){let a=o[i],c=t[i];if(i){let d;c&&c.nodeName==a.nodeName&&r!=n&&(d=r.parentNode)&&d.nodeName.toLowerCase()==a.nodeName||(d=document.createElement(a.nodeName),d.pmIsDeco=!0,d.appendChild(r),c=co[0]),r=d}uw(r,c||co[0],a)}return r}function uw(n,e,t){for(let o in e)o!="class"&&o!="style"&&o!="nodeName"&&!(o in t)&&n.removeAttribute(o);for(let o in t)o!="class"&&o!="style"&&o!="nodeName"&&t[o]!=e[o]&&n.setAttribute(o,t[o]);if(e.class!=t.class){let o=e.class?e.class.split(" ").filter(Boolean):[],r=t.class?t.class.split(" ").filter(Boolean):[];for(let i=0;i<o.length;i++)r.indexOf(o[i])==-1&&n.classList.remove(o[i]);for(let i=0;i<r.length;i++)o.indexOf(r[i])==-1&&n.classList.add(r[i]);n.classList.length==0&&n.removeAttribute("class")}if(e.style!=t.style){if(e.style){let o=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=o.exec(e.style);)n.style.removeProperty(r[1])}t.style&&(n.style.cssText+=t.style)}}function Lf(n,e,t){return Mf(n,n,co,gc(e,t,n.nodeType!=1))}function Ss(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++)if(!n[t].type.eq(e[t].type))return!1;return!0}function jf(n){let e=n.nextSibling;return n.parentNode.removeChild(n),e}class dw{constructor(e,t,o){this.lock=t,this.view=o,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=mw(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let o=e;o<t;o++)this.top.children[o].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,o,r){let i=0,a=this.stack.length>>1,c=Math.min(a,e.length);for(;i<c&&(i==a-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&e[i].type.spec.spanning!==!1;)i++;for(;i<a;)this.destroyRest(),this.top.dirty=Dt,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;for(;a<e.length;){this.stack.push(this.top,this.index+1);let d=-1,m=this.top.children.length;r<this.preMatch.index&&(m=Math.min(this.index+3,m));for(let p=this.index;p<m;p++){let h=this.top.children[p];if(h.matchesMark(e[a])&&!this.isLocked(h.dom)){d=p;break}}if(d>-1)d>this.index&&(this.changed=!0,this.destroyBetween(this.index,d)),this.top=this.top.children[this.index];else{let p=lo.create(this.top,e[a],t,o);this.top.children.splice(this.index,0,p),this.top=p,this.changed=!0}this.index=0,a++}}findNodeMatch(e,t,o,r){let i=-1,a;if(r>=this.preMatch.index&&(a=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&a.matchesNode(e,t,o))i=this.top.children.indexOf(a,this.index);else for(let c=this.index,d=Math.min(this.top.children.length,c+5);c<d;c++){let m=this.top.children[c];if(m.matchesNode(e,t,o)&&!this.preMatch.matched.has(m)){i=c;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,o,r,i){let a=this.top.children[r];return a.dirty==Ht&&a.dom==a.contentDOM&&(a.dirty=ao),a.update(e,t,o,i)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let 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=t}}updateNextNode(e,t,o,r,i,a){for(let c=this.index;c<this.top.children.length;c++){let d=this.top.children[c];if(d instanceof Sn){let m=this.preMatch.matched.get(d);if(m!=null&&m!=i)return!1;let p=d.dom,h,g=this.isLocked(p)&&!(e.isText&&d.node&&d.node.isText&&d.nodeDOM.nodeValue==e.text&&d.dirty!=Ht&&Ss(t,d.outerDeco));if(!g&&d.update(e,t,o,r))return this.destroyBetween(this.index,c),d.dom!=p&&(this.changed=!0),this.index++,!0;if(!g&&(h=this.recreateWrapper(d,e,t,o,r,a)))return this.destroyBetween(this.index,c),this.top.children[this.index]=h,h.contentDOM&&(h.dirty=ao,h.updateChildren(r,a+1),h.dirty=Dt),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,o,r,i,a){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!Ss(o,e.outerDeco)||!r.eq(e.innerDeco))return null;let c=Sn.create(this.top,t,o,r,i,a);if(c.contentDOM){c.children=e.children,e.children=[];for(let d of c.children)d.parent=c}return e.destroy(),c}addNode(e,t,o,r,i){let a=Sn.create(this.top,e,t,o,r,i);a.contentDOM&&a.updateChildren(r,i+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(e,t,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 i=new Af(this.top,e,t,o);this.top.children.splice(this.index++,0,i),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof lo;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof xs)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((et||Je)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let o=document.createElement(e);e=="IMG"&&(o.className="ProseMirror-separator",o.alt=""),e=="BR"&&(o.className="ProseMirror-trailingBreak");let r=new Tf(this.top,[],o,null);t!=this.top?t.children.push(r):t.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 mw(n,e){let t=e,o=t.children.length,r=n.childCount,i=new Map,a=[];e:for(;r>0;){let c;for(;;)if(o){let m=t.children[o-1];if(m instanceof lo)t=m,o=m.children.length;else{c=m,o--;break}}else{if(t==e)break e;o=t.parent.children.indexOf(t),t=t.parent}let d=c.node;if(d){if(d!=n.child(r-1))break;--r,i.set(c,r),a.push(c)}}return{index:r,matched:i,matches:a.reverse()}}function pw(n,e){return n.type.side-e.type.side}function fw(n,e,t,o){let r=e.locals(n),i=0;if(r.length==0){for(let m=0;m<n.childCount;m++){let p=n.child(m);o(p,r,e.forChild(i,p),m),i+=p.nodeSize}return}let a=0,c=[],d=null;for(let m=0;;){let p,h;for(;a<r.length&&r[a].to==i;){let S=r[a++];S.widget&&(p?(h||(h=[p])).push(S):p=S)}if(p)if(h){h.sort(pw);for(let S=0;S<h.length;S++)t(h[S],m,!!d)}else t(p,m,!!d);let g,k;if(d)k=-1,g=d,d=null;else if(m<n.childCount)k=m,g=n.child(m++);else break;for(let S=0;S<c.length;S++)c[S].to<=i&&c.splice(S--,1);for(;a<r.length&&r[a].from<=i&&r[a].to>i;)c.push(r[a++]);let b=i+g.nodeSize;if(g.isText){let S=b;a<r.length&&r[a].from<S&&(S=r[a].from);for(let N=0;N<c.length;N++)c[N].to<S&&(S=c[N].to);S<b&&(d=g.cut(S-i),g=g.cut(0,S-i),b=S,k=-1)}else for(;a<r.length&&r[a].to<b;)a++;let $=g.isInline&&!g.isLeaf?c.filter(S=>!S.inline):c.slice();o(g,$,e.forChild(i,g),k),i=b}}function hw(n){if(n.nodeName=="UL"||n.nodeName=="OL"){let e=n.style.cssText;n.style.cssText=e+"; list-style: square !important",window.getComputedStyle(n).listStyle,n.style.cssText=e}}function gw(n,e,t,o){for(let r=0,i=0;r<n.childCount&&i<=o;){let a=n.child(r++),c=i;if(i+=a.nodeSize,!a.isText)continue;let d=a.text;for(;r<n.childCount;){let m=n.child(r++);if(i+=m.nodeSize,!m.isText)break;d+=m.text}if(i>=t){if(i>=o&&d.slice(o-e.length-c,o-c)==e)return o-e.length;let m=c<o?d.lastIndexOf(e,o-c-1):-1;if(m>=0&&m+e.length+c>=t)return c+m;if(t==o&&d.length>=o+e.length-c&&d.slice(o-c,o-c+e.length)==e)return o}}return-1}function yc(n,e,t,o,r){let i=[];for(let a=0,c=0;a<n.length;a++){let d=n[a],m=c,p=c+=d.size;m>=t||p<=e?i.push(d):(m<e&&i.push(d.slice(0,e-m,o)),r&&(i.push(r),r=void 0),p>t&&i.push(d.slice(t-m,d.size,o)))}return i}function kc(n,e=null){let t=n.domSelectionRange(),o=n.state.doc;if(!t.focusNode)return null;let r=n.docView.nearestDesc(t.focusNode),i=r&&r.size==0,a=n.docView.posFromDOM(t.focusNode,t.focusOffset,1);if(a<0)return null;let c=o.resolve(a),d,m;if($s(t)){for(d=a;r&&!r.node;)r=r.parent;let h=r.node;if(r&&h.isAtom&&le.isSelectable(h)&&r.parent&&!(h.isInline&&Hv(t.focusNode,t.focusOffset,r.dom))){let g=r.posBefore;m=new le(a==g?c:o.resolve(g))}}else{if(t instanceof n.dom.ownerDocument.defaultView.Selection&&t.rangeCount>1){let h=a,g=a;for(let k=0;k<t.rangeCount;k++){let b=t.getRangeAt(k);h=Math.min(h,n.docView.posFromDOM(b.startContainer,b.startOffset,1)),g=Math.max(g,n.docView.posFromDOM(b.endContainer,b.endOffset,-1))}if(h<0)return null;[d,a]=g==n.state.selection.anchor?[g,h]:[h,g],c=o.resolve(a)}else d=n.docView.posFromDOM(t.anchorNode,t.anchorOffset,1);if(d<0)return null}let p=o.resolve(d);if(!m){let h=e=="pointer"||n.state.selection.head<c.pos&&!i?1:-1;m=vc(n,p,c,h)}return m}function If(n){return n.editable?n.hasFocus():Vf(n)&&document.activeElement&&document.activeElement.contains(n.dom)}function rn(n,e=!1){let t=n.state.selection;if(_f(n,t),!If(n))return;let o=n.input.mouseDown;if(!e&&Je&&o){let r=n.domSelectionRange(),i=n.domObserver.currentSelection;if(r.anchorNode&&i.anchorNode&&io(r.anchorNode,r.anchorOffset,i.anchorNode,i.anchorOffset)&&o.delaySelUpdate()){n.domObserver.setCurSelection();return}}if(n.domObserver.disconnectSelection(),n.cursorWrapper)kw(n);else{let{anchor:r,head:i}=t,a,c;Bf&&!(t instanceof be)&&(t.$from.parent.inlineContent||(a=zf(n,t.from)),!t.empty&&!t.$from.parent.inlineContent&&(c=zf(n,t.to))),n.docView.setSelection(r,i,n,e),Bf&&(a&&Ff(a),c&&Ff(c)),t.visible?n.dom.classList.remove("ProseMirror-hideselection"):(n.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&yw(n))}n.domObserver.setCurSelection(),n.domObserver.connectSelection()}const Bf=et||Je&&gf<63;function zf(n,e){let{node:t,offset:o}=n.docView.domFromPos(e,0),r=o<t.childNodes.length?t.childNodes[o]:null,i=o?t.childNodes[o-1]:null;if(et&&r&&r.contentEditable=="false")return bc(r);if((!r||r.contentEditable=="false")&&(!i||i.contentEditable=="false")){if(r)return bc(r);if(i)return bc(i)}}function bc(n){return n.contentEditable="true",et&&n.draggable&&(n.draggable=!1,n.wasDraggable=!0),n}function Ff(n){n.contentEditable="false",n.wasDraggable&&(n.draggable=!0,n.wasDraggable=null)}function yw(n){let e=n.dom.ownerDocument;e.removeEventListener("selectionchange",n.input.hideSelectionGuard);let t=n.domSelectionRange(),o=t.anchorNode,r=t.anchorOffset;e.addEventListener("selectionchange",n.input.hideSelectionGuard=()=>{(t.anchorNode!=o||t.anchorOffset!=r)&&(e.removeEventListener("selectionchange",n.input.hideSelectionGuard),setTimeout(()=>{(!If(n)||n.state.selection.visible)&&n.dom.classList.remove("ProseMirror-hideselection")},20))})}function kw(n){let e=n.domSelection();if(!e)return;let t=n.cursorWrapper.dom,o=t.nodeName=="IMG";o?e.collapse(t.parentNode,qe(t)+1):e.collapse(t,0),!o&&!n.state.selection.visible&&mt&&$n<=11&&(t.disabled=!0,t.disabled=!1)}function _f(n,e){if(e instanceof le){let t=n.docView.descAt(e.from);t!=n.lastSelectedViewDesc&&(Uf(n),t&&t.selectNode(),n.lastSelectedViewDesc=t)}else Uf(n)}function Uf(n){n.lastSelectedViewDesc&&(n.lastSelectedViewDesc.parent&&n.lastSelectedViewDesc.deselectNode(),n.lastSelectedViewDesc=void 0)}function vc(n,e,t,o){return n.someProp("createSelectionBetween",r=>r(n,e,t))||be.between(e,t,o)}function Hf(n){return n.editable&&!n.hasFocus()?!1:Vf(n)}function Vf(n){let e=n.domSelectionRange();if(!e.anchorNode)return!1;try{return n.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(n.editable||n.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function bw(n){let e=n.docView.domFromPos(n.state.selection.anchor,0),t=n.domSelectionRange();return io(e.node,e.offset,t.anchorNode,t.anchorOffset)}function wc(n,e){let{$anchor:t,$head:o}=n.selection,r=e>0?t.max(o):t.min(o),i=r.parent.inlineContent?r.depth?n.doc.resolve(e>0?r.after():r.before()):null:r;return i&&Ce.findFrom(i,e)}function Cn(n,e){return n.dispatch(n.state.tr.setSelection(e).scrollIntoView()),!0}function Yf(n,e,t){let o=n.state.selection;if(o instanceof be)if(t.indexOf("s")>-1){let{$head:r}=o,i=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let a=n.state.doc.resolve(r.pos+i.nodeSize*(e<0?-1:1));return Cn(n,new be(o.$anchor,a))}else if(o.empty){if(n.endOfTextblock(e>0?"forward":"backward")){let r=wc(n.state,e);return r&&r instanceof le?Cn(n,r):!1}else if(!(Nt&&t.indexOf("m")>-1)){let r=o.$head,i=r.textOffset?null:e<0?r.nodeBefore:r.nodeAfter,a;if(!i||i.isText)return!1;let c=e<0?r.pos-i.nodeSize:r.pos;return i.isAtom||(a=n.docView.descAt(c))&&!a.contentDOM?le.isSelectable(i)?Cn(n,new le(e<0?n.state.doc.resolve(r.pos-i.nodeSize):r)):Mr?Cn(n,new be(n.state.doc.resolve(e<0?c:c+i.nodeSize))):!1:!1}}else return!1;else{if(o instanceof le&&o.node.isInline)return Cn(n,new be(e>0?o.$to:o.$from));{let r=wc(n.state,e);return r?Cn(n,r):!1}}}function Cs(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function Br(n,e){let t=n.pmViewDesc;return t&&t.size==0&&(e<0||n.nextSibling||n.nodeName!="BR")}function zo(n,e){return e<0?vw(n):ww(n)}function vw(n){let e=n.domSelectionRange(),t=e.focusNode,o=e.focusOffset;if(!t)return;let r,i,a=!1;for(Et&&t.nodeType==1&&o<Cs(t)&&Br(t.childNodes[o],-1)&&(a=!0);;)if(o>0){if(t.nodeType!=1)break;{let c=t.childNodes[o-1];if(Br(c,-1))r=t,i=--o;else if(c.nodeType==3)t=c,o=t.nodeValue.length;else break}}else{if(Jf(t))break;{let c=t.previousSibling;for(;c&&Br(c,-1);)r=t.parentNode,i=qe(c),c=c.previousSibling;if(c)t=c,o=Cs(t);else{if(t=t.parentNode,t==n.dom)break;o=0}}}a?$c(n,t,o):r&&$c(n,r,i)}function ww(n){let e=n.domSelectionRange(),t=e.focusNode,o=e.focusOffset;if(!t)return;let r=Cs(t),i,a;for(;;)if(o<r){if(t.nodeType!=1)break;let c=t.childNodes[o];if(Br(c,1))i=t,a=++o;else break}else{if(Jf(t))break;{let c=t.nextSibling;for(;c&&Br(c,1);)i=c.parentNode,a=qe(c)+1,c=c.nextSibling;if(c)t=c,o=0,r=Cs(t);else{if(t=t.parentNode,t==n.dom)break;o=r=0}}}i&&$c(n,i,a)}function Jf(n){let e=n.pmViewDesc;return e&&e.node&&e.node.isBlock}function $w(n,e){for(;n&&e==n.childNodes.length&&!Pr(n);)e=qe(n)+1,n=n.parentNode;for(;n&&e<n.childNodes.length;){let t=n.childNodes[e];if(t.nodeType==3)return t;if(t.nodeType==1&&t.contentEditable=="false")break;n=t,e=0}}function xw(n,e){for(;n&&!e&&!Pr(n);)e=qe(n),n=n.parentNode;for(;n&&e;){let t=n.childNodes[e-1];if(t.nodeType==3)return t;if(t.nodeType==1&&t.contentEditable=="false")break;n=t,e=n.childNodes.length}}function $c(n,e,t){if(e.nodeType!=3){let i,a;(a=$w(e,t))?(e=a,t=0):(i=xw(e,t))&&(e=i,t=i.nodeValue.length)}let o=n.domSelection();if(!o)return;if($s(o)){let i=document.createRange();i.setEnd(e,t),i.setStart(e,t),o.removeAllRanges(),o.addRange(i)}else o.extend&&o.extend(e,t);n.domObserver.setCurSelection();let{state:r}=n;setTimeout(()=>{n.state==r&&rn(n)},50)}function Kf(n,e){let t=n.state.doc.resolve(e);if(!(Je||yf)&&t.parent.inlineContent){let r=n.coordsAtPos(e);if(e>t.start()){let i=n.coordsAtPos(e-1),a=(i.top+i.bottom)/2;if(a>r.top&&a<r.bottom&&Math.abs(i.left-r.left)>1)return i.left<r.left?"ltr":"rtl"}if(e<t.end()){let i=n.coordsAtPos(e+1),a=(i.top+i.bottom)/2;if(a>r.top&&a<r.bottom&&Math.abs(i.left-r.left)>1)return i.left>r.left?"ltr":"rtl"}}return getComputedStyle(n.dom).direction=="rtl"?"rtl":"ltr"}function Wf(n,e,t){let o=n.state.selection;if(o instanceof be&&!o.empty||t.indexOf("s")>-1||Nt&&t.indexOf("m")>-1)return!1;let{$from:r,$to:i}=o;if(!r.parent.inlineContent||n.endOfTextblock(e<0?"up":"down")){let a=wc(n.state,e);if(a&&a instanceof le)return Cn(n,a)}if(!r.parent.inlineContent){let a=e<0?r:i,c=o instanceof bt?Ce.near(a,e):Ce.findFrom(a,e);return c?Cn(n,c):!1}return!1}function qf(n,e){if(!(n.state.selection instanceof be))return!0;let{$head:t,$anchor:o,empty:r}=n.state.selection;if(!t.sameParent(o))return!0;if(!r)return!1;if(n.endOfTextblock(e>0?"forward":"backward"))return!0;let i=!t.textOffset&&(e<0?t.nodeBefore:t.nodeAfter);if(i&&!i.isText){let a=n.state.tr;return e<0?a.delete(t.pos-i.nodeSize,t.pos):a.delete(t.pos,t.pos+i.nodeSize),n.dispatch(a),!0}return!1}function Gf(n,e,t){n.domObserver.stop(),e.contentEditable=t,n.domObserver.start()}function Sw(n){if(!et||n.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:t}=n.domSelectionRange();if(e&&e.nodeType==1&&t==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let o=e.firstChild;Gf(n,o,"true"),setTimeout(()=>Gf(n,o,"false"),20)}return!1}function Cw(n){let e="";return n.ctrlKey&&(e+="c"),n.metaKey&&(e+="m"),n.altKey&&(e+="a"),n.shiftKey&&(e+="s"),e}function Ew(n,e){let t=e.keyCode,o=Cw(e);if(t==8||Nt&&t==72&&o=="c")return qf(n,-1)||zo(n,-1);if(t==46&&!e.shiftKey||Nt&&t==68&&o=="c")return qf(n,1)||zo(n,1);if(t==13||t==27)return!0;if(t==37||Nt&&t==66&&o=="c"){let r=t==37?Kf(n,n.state.selection.from)=="ltr"?-1:1:-1;return Yf(n,r,o)||zo(n,r)}else if(t==39||Nt&&t==70&&o=="c"){let r=t==39?Kf(n,n.state.selection.from)=="ltr"?1:-1:1;return Yf(n,r,o)||zo(n,r)}else{if(t==38||Nt&&t==80&&o=="c")return Wf(n,-1,o)||zo(n,-1);if(t==40||Nt&&t==78&&o=="c")return Sw(n)||Wf(n,1,o)||zo(n,1);if(o==(Nt?"m":"c")&&(t==66||t==73||t==89||t==90))return!0}return!1}function xc(n,e){n.someProp("transformCopied",k=>{e=k(e,n)});let t=[],{content:o,openStart:r,openEnd:i}=e;for(;r>1&&i>1&&o.childCount==1&&o.firstChild.childCount==1;){r--,i--;let k=o.firstChild;t.push(k.type.name,k.attrs!=k.type.defaultAttrs?k.attrs:null),o=k.content}let a=n.someProp("clipboardSerializer")||oo.fromSchema(n.state.schema),c=rh(),d=c.createElement("div");d.appendChild(a.serializeFragment(o,{document:c}));let m=d.firstChild,p,h=0;for(;m&&m.nodeType==1&&(p=nh[m.nodeName.toLowerCase()]);){for(let k=p.length-1;k>=0;k--){let b=c.createElement(p[k]);for(;d.firstChild;)b.appendChild(d.firstChild);d.appendChild(b),h++}m=d.firstChild}m&&m.nodeType==1&&m.setAttribute("data-pm-slice",`${r} ${i}${h?` -${h}`:""} ${JSON.stringify(t)}`);let g=n.someProp("clipboardTextSerializer",k=>k(e,n))||e.content.textBetween(0,e.content.size,`
|
|
8
|
-
|
|
9
|
-
`)
|
|
10
|
-
`))),0,0),n.someProp("transformPasted",g=>{c=g(c,n,!0)}),c;let h=n.someProp("clipboardTextParser",g=>g(e,r,o,n));if(h)c=h;else{let g=r.marks(),{schema:k}=n.state,b=oo.fromSchema(k);a=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach($=>{let S=a.appendChild(document.createElement("p"));$&&S.appendChild(b.serializeNode(k.text($,g)))})}}else n.someProp("transformPastedHTML",h=>{t=h(t,n)}),a=Aw(t),Mr&&Ow(a);let m=a&&a.querySelector("[data-pm-slice]"),p=m&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(m.getAttribute("data-pm-slice")||"");if(p&&p[3])for(let h=+p[3];h>0;h--){let g=a.firstChild;for(;g&&g.nodeType!=1;)g=g.nextSibling;if(!g)break;a=g}if(c||(c=(n.someProp("clipboardParser")||n.someProp("domParser")||Er.fromSchema(n.state.schema)).parseSlice(a,{preserveWhitespace:!!(d||p),context:r,ruleFromNode(g){return g.nodeName=="BR"&&!g.nextSibling&&g.parentNode&&!Nw.test(g.parentNode.nodeName)?{ignore:!0}:null}})),p)c=Tw(th(c,+p[1],+p[2]),p[4]);else if(c=Q.maxOpen(Dw(c.content,r),!0),c.openStart||c.openEnd){let h=0,g=0;for(let k=c.content.firstChild;h<c.openStart&&!k.type.spec.isolating;h++,k=k.firstChild);for(let k=c.content.lastChild;g<c.openEnd&&!k.type.spec.isolating;g++,k=k.lastChild);c=th(c,h,g)}return n.someProp("transformPasted",h=>{c=h(c,n,d)}),c}const Nw=/^(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 Dw(n,e){if(n.childCount<2)return n;for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.index(t)),i,a=[];if(n.forEach(c=>{if(!a)return;let d=r.findWrapping(c.type),m;if(!d)return a=null;if(m=a.length&&i.length&&Zf(d,i,c,a[a.length-1],0))a[a.length-1]=m;else{a.length&&(a[a.length-1]=eh(a[a.length-1],i.length));let p=Xf(c,d);a.push(p),r=r.matchType(p.type),i=d}}),a)return V.from(a)}return n}function Xf(n,e,t=0){for(let o=e.length-1;o>=t;o--)n=e[o].create(null,V.from(n));return n}function Zf(n,e,t,o,r){if(r<n.length&&r<e.length&&n[r]==e[r]){let i=Zf(n,e,t,o.lastChild,r+1);if(i)return o.copy(o.content.replaceChild(o.childCount-1,i));if(o.contentMatchAt(o.childCount).matchType(r==n.length-1?t.type:n[r+1]))return o.copy(o.content.append(V.from(Xf(t,n,r+1))))}}function eh(n,e){if(e==0)return n;let t=n.content.replaceChild(n.childCount-1,eh(n.lastChild,e-1)),o=n.contentMatchAt(n.childCount).fillBefore(V.empty,!0);return n.copy(t.append(o))}function Sc(n,e,t,o,r,i){let a=e<0?n.firstChild:n.lastChild,c=a.content;return n.childCount>1&&(i=0),r<o-1&&(c=Sc(c,e,t,o,r+1,i)),r>=t&&(c=e<0?a.contentMatchAt(0).fillBefore(c,i<=r).append(c):c.append(a.contentMatchAt(a.childCount).fillBefore(V.empty,!0))),n.replaceChild(e<0?0:n.childCount-1,a.copy(c))}function th(n,e,t){return e<n.openStart&&(n=new Q(Sc(n.content,-1,e,n.openStart,0,n.openEnd),e,n.openEnd)),t<n.openEnd&&(n=new Q(Sc(n.content,1,t,n.openEnd,0,0),n.openStart,t)),n}const nh={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 oh=null;function rh(){return oh||(oh=document.implementation.createHTMLDocument("title"))}let Cc=null;function Rw(n){let e=window.trustedTypes;return e?(Cc||(Cc=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:t=>t})),Cc.createHTML(n)):n}function Aw(n){let e=/^(\s*<meta [^>]*>)*/.exec(n);e&&(n=n.slice(e[0].length));let t=rh().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(n),r;if((r=o&&nh[o[1].toLowerCase()])&&(n=r.map(i=>"<"+i+">").join("")+n+r.map(i=>"</"+i+">").reverse().join("")),t.innerHTML=Rw(n),r)for(let i=0;i<r.length;i++)t=t.querySelector(r[i])||t;return t}function Ow(n){let e=n.querySelectorAll(Je?"span:not([class]):not([style])":"span.Apple-converted-space");for(let t=0;t<e.length;t++){let o=e[t];o.childNodes.length==1&&o.textContent==" "&&o.parentNode&&o.parentNode.replaceChild(n.ownerDocument.createTextNode(" "),o)}}function Tw(n,e){if(!n.size)return n;let t=n.content.firstChild.type.schema,o;try{o=JSON.parse(e)}catch{return n}let{content:r,openStart:i,openEnd:a}=n;for(let c=o.length-2;c>=0;c-=2){let d=t.nodes[o[c]];if(!d||d.hasRequiredAttrs())break;r=V.from(d.create(o[c+1],r)),i++,a++}return new Q(r,i,a)}const at={},lt={},Pw={touchstart:!0,touchmove:!0};class Mw{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function Lw(n){for(let e in at){let t=at[e];n.dom.addEventListener(e,n.input.eventHandlers[e]=o=>{Iw(n,o)&&!Nc(n,o)&&(n.editable||!(o.type in lt))&&t(n,o)},Pw[e]?{passive:!0}:void 0)}et&&n.dom.addEventListener("input",()=>null),Ec(n)}function sn(n,e){n.input.lastSelectionOrigin=e,n.input.lastSelectionTime=Date.now()}function jw(n){n.input.mouseDown&&n.input.mouseDown.done(),n.domObserver.stop();for(let e in n.input.eventHandlers)n.dom.removeEventListener(e,n.input.eventHandlers[e]);clearTimeout(n.input.composingTimeout),clearTimeout(n.input.lastIOSEnterFallbackTimeout)}function Ec(n){n.someProp("handleDOMEvents",e=>{for(let t in e)n.input.eventHandlers[t]||n.dom.addEventListener(t,n.input.eventHandlers[t]=o=>Nc(n,o))})}function Nc(n,e){return n.someProp("handleDOMEvents",t=>{let o=t[e.type];return o?o(n,e)||e.defaultPrevented:!1})}function Iw(n,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target;t!=n.dom;t=t.parentNode)if(!t||t.nodeType==11||t.pmViewDesc&&t.pmViewDesc.stopEvent(e))return!1;return!0}function Bw(n,e){!Nc(n,e)&&at[e.type]&&(n.editable||!(e.type in lt))&&at[e.type](n,e)}lt.keydown=(n,e)=>{let t=e;if(n.input.shiftKey=t.keyCode==16||t.shiftKey,!lh(n)&&(n.input.lastKeyCode=t.keyCode,n.input.lastKeyCodeTime=Date.now(),!(nn&&Je&&t.keyCode==13)))if(t.keyCode!=229&&n.domObserver.forceFlush(),Io&&t.keyCode==13&&!t.ctrlKey&&!t.altKey&&!t.metaKey){let o=Date.now();n.input.lastIOSEnter=o,n.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{n.input.lastIOSEnter==o&&(n.someProp("handleKeyDown",r=>r(n,so(13,"Enter"))),n.input.lastIOSEnter=0)},200)}else n.someProp("handleKeyDown",o=>o(n,t))||Ew(n,t)?t.preventDefault():sn(n,"key")},lt.keyup=(n,e)=>{e.keyCode==16&&(n.input.shiftKey=!1)},lt.keypress=(n,e)=>{let t=e;if(lh(n)||!t.charCode||t.ctrlKey&&!t.altKey||Nt&&t.metaKey)return;if(n.someProp("handleKeyPress",r=>r(n,t))){t.preventDefault();return}let o=n.state.selection;if(!(o instanceof be)||!o.$from.sameParent(o.$to)){let r=String.fromCharCode(t.charCode),i=()=>n.state.tr.insertText(r).scrollIntoView();!/[\r\n]/.test(r)&&!n.someProp("handleTextInput",a=>a(n,o.$from.pos,o.$to.pos,r,i))&&n.dispatch(i()),t.preventDefault()}};function zr(n){return{left:n.clientX,top:n.clientY}}function zw(n,e){let t=e.x-n.clientX,o=e.y-n.clientY;return t*t+o*o<100}function Dc(n,e,t,o,r){if(o==-1)return!1;let i=n.state.doc.resolve(o);for(let a=i.depth+1;a>0;a--)if(n.someProp(e,c=>a>i.depth?c(n,t,i.nodeAfter,i.before(a),r,!0):c(n,t,i.node(a),i.before(a),r,!1)))return!0;return!1}function Fr(n,e,t){if(n.focused||n.focus(),n.state.selection.eq(e))return;let o=n.state.tr.setSelection(e);o.setMeta("pointer",!0),n.dispatch(o)}function Fw(n,e){if(e==-1)return!1;let t=n.state.doc.resolve(e),o=t.nodeAfter;return o&&o.isAtom&&le.isSelectable(o)?(Fr(n,new le(t)),!0):!1}function _w(n,e){if(e==-1)return!1;let t=n.state.selection,o,r;t instanceof le&&(o=t.node);let i=n.state.doc.resolve(e);for(let a=i.depth+1;a>0;a--){let c=a>i.depth?i.nodeAfter:i.node(a);if(le.isSelectable(c)){o&&t.$from.depth>0&&a>=t.$from.depth&&i.before(t.$from.depth+1)==t.$from.pos?r=i.before(t.$from.depth):r=i.before(a);break}}return r!=null?(Fr(n,le.create(n.state.doc,r)),!0):!1}function Uw(n,e,t,o,r){return Dc(n,"handleClickOn",e,t,o)||n.someProp("handleClick",i=>i(n,e,o))||(r?_w(n,t):Fw(n,t))}function Hw(n,e,t,o){return Dc(n,"handleDoubleClickOn",e,t,o)||n.someProp("handleDoubleClick",r=>r(n,e,o))}function Vw(n,e,t,o){return Dc(n,"handleTripleClickOn",e,t,o)||n.someProp("handleTripleClick",r=>r(n,e,o))||Yw(n,t,o)}function Yw(n,e,t){if(t.button!=0)return!1;let o=ih(n,e,!0),r=n.state.doc;return o?(Fr(n,o),o instanceof be&&r.eq(n.state.doc)&&(n.input.mouseDown=new Kw(n,o)),!0):!1}function ih(n,e,t){let o=n.state.doc;if(e==-1)return o.inlineContent?be.create(o,0,o.content.size):null;let r=o.resolve(e);for(let i=r.depth+1;i>0;i--){let a=i>r.depth?r.nodeAfter:r.node(i),c=r.before(i);if(a.inlineContent)return be.create(o,c+1,c+1+a.content.size);if(t&&le.isSelectable(a))return le.create(o,c)}return null}function Rc(n){return Es(n)}const sh=Nt?"metaKey":"ctrlKey";at.mousedown=(n,e)=>{let t=e;n.input.shiftKey=t.shiftKey;let o=Rc(n),r=Date.now(),i="singleClick";r-n.input.lastClick.time<500&&zw(t,n.input.lastClick)&&!t[sh]&&n.input.lastClick.button==t.button&&(n.input.lastClick.type=="singleClick"?i="doubleClick":n.input.lastClick.type=="doubleClick"&&(i="tripleClick")),n.input.lastClick={time:r,x:t.clientX,y:t.clientY,type:i,button:t.button},n.input.mouseDown&&n.input.mouseDown.done();let a=n.posAtCoords(zr(t));a&&(i=="singleClick"?n.input.mouseDown=new Jw(n,a,t,!!o):(i=="doubleClick"?Hw:Vw)(n,a.pos,a.inside,t)?t.preventDefault():sn(n,"pointer"))};class ah{constructor(e){this.view=e,this.mightDrag=null,e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this))}up(e){this.done()}move(e){e.buttons==0&&this.done()}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.view.input.mouseDown==this&&(this.view.input.mouseDown=null)}delaySelUpdate(){return!1}}class Jw extends ah{constructor(e,t,o,r){super(e),this.pos=t,this.event=o,this.flushed=r,this.delayedSelectionSync=!1,this.startDoc=e.state.doc,this.selectNode=!!o[sh],this.allowDefault=o.shiftKey;let i,a;if(t.inside>-1)i=e.state.doc.nodeAt(t.inside),a=t.inside;else{let p=e.state.doc.resolve(t.pos);i=p.parent,a=p.depth?p.before():0}const c=r?null:o.target,d=c?e.docView.nearestDesc(c,!0):null;this.target=d&&d.nodeDOM.nodeType==1?d.nodeDOM:null;let{selection:m}=e.state;o.button==0&&(i.type.spec.draggable&&i.type.spec.selectable!==!1||m instanceof le&&m.from<=a&&m.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Et&&!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()),sn(e,"pointer")}done(){super.done(),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>{this.view.isDestroyed||rn(this.view)})}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(zr(e))),this.updateAllowDefault(e),this.allowDefault||!t?sn(this.view,"pointer"):Uw(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||et&&this.mightDrag&&!this.mightDrag.node.isAtom||Je&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(Fr(this.view,Ce.near(this.view.state.doc.resolve(t.pos))),e.preventDefault()):sn(this.view,"pointer")}move(e){this.updateAllowDefault(e),sn(this.view,"pointer"),super.move(e)}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}delaySelUpdate(){return this.allowDefault?(this.delayedSelectionSync=!0,!0):!1}}class Kw extends ah{constructor(e,t){super(e),this.startSelection=t,this.startDoc=e.state.doc}move(e){if(e.buttons==0||this.view.isDestroyed||!this.view.state.doc.eq(this.startDoc)){this.done();return}e.preventDefault(),sn(this.view,"pointer");let t=this.view.posAtCoords(zr(e)),o=t&&ih(this.view,t.inside,!1);if(!o)return;let{doc:r}=this.view.state,i=this.startSelection,[a,c]=o.from<i.from?[i.to,o.from]:[i.from,o.to];Fr(this.view,be.create(r,a,c))}}at.touchstart=n=>{n.input.lastTouch=Date.now(),Rc(n),sn(n,"pointer")},at.touchmove=n=>{n.input.lastTouch=Date.now(),sn(n,"pointer")},at.contextmenu=n=>Rc(n);function lh(n,e){return n.composing?!0:et&&Math.abs(Date.now()-n.input.compositionEndedAt)<500?(n.input.compositionEndedAt=-2e8,!0):!1}const Ww=nn?5e3:-1;lt.compositionstart=lt.compositionupdate=n=>{if(!n.composing){n.domObserver.flush();let{state:e}=n,t=e.selection.$to;if(e.selection instanceof be&&(e.storedMarks||!t.textOffset&&t.parentOffset&&t.nodeBefore.marks.some(o=>o.type.spec.inclusive===!1)||Je&&yf&&qw(n)))n.markCursor=n.state.storedMarks||t.marks(),Es(n,!0),n.markCursor=null;else if(Es(n,!e.selection.empty),Et&&e.selection.empty&&t.parentOffset&&!t.textOffset&&t.nodeBefore.marks.length){let o=n.domSelectionRange();for(let r=o.focusNode,i=o.focusOffset;r&&r.nodeType==1&&i!=0;){let a=i<0?r.lastChild:r.childNodes[i-1];if(!a)break;if(a.nodeType==3){let c=n.domSelection();c&&c.collapse(a,a.nodeValue.length);break}else r=a,i=-1}}n.input.composing=!0}ch(n,Ww)};function qw(n){let{focusNode:e,focusOffset:t}=n.domSelectionRange();if(!e||e.nodeType!=1||t>=e.childNodes.length)return!1;let o=e.childNodes[t];return o.nodeType==1&&o.contentEditable=="false"}lt.compositionend=(n,e)=>{n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=Date.now(),n.input.compositionPendingChanges=n.domObserver.pendingRecords().length?n.input.compositionID:0,n.input.compositionNode=null,n.input.badSafariComposition?n.domObserver.forceFlush():n.input.compositionPendingChanges&&Promise.resolve().then(()=>n.domObserver.flush()),n.input.compositionID++,ch(n,20))};function ch(n,e){clearTimeout(n.input.composingTimeout),e>-1&&(n.input.composingTimeout=setTimeout(()=>Es(n),e))}function uh(n){for(n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=Date.now());n.input.compositionNodes.length>0;)n.input.compositionNodes.pop().markParentsDirty()}function Gw(n){let e=n.domSelectionRange();if(!e.focusNode)return null;let t=_v(e.focusNode,e.focusOffset),o=Uv(e.focusNode,e.focusOffset);if(t&&o&&t!=o){let r=o.pmViewDesc,i=n.domObserver.lastChangedTextNode;if(t==i||o==i)return i;if(!r||!r.isText(o.nodeValue))return o;if(n.input.compositionNode==o){let a=t.pmViewDesc;if(!(!a||!a.isText(t.nodeValue)))return o}}return t||o}function Es(n,e=!1){if(!(nn&&n.domObserver.flushingSoon>=0)){if(n.domObserver.forceFlush(),uh(n),e||n.docView&&n.docView.dirty){let t=kc(n),o=n.state.selection;return t&&!t.eq(o)?n.dispatch(n.state.tr.setSelection(t)):(n.markCursor||e)&&!o.$from.node(o.$from.sharedDepth(o.to)).inlineContent?n.dispatch(n.state.tr.deleteSelection()):n.updateState(n.state),!0}return!1}}function Qw(n,e){if(!n.dom.parentNode)return;let t=n.dom.parentNode.appendChild(document.createElement("div"));t.appendChild(e),t.style.cssText="position: fixed; left: -10000px; top: 10px";let o=getSelection(),r=document.createRange();r.selectNodeContents(e),n.dom.blur(),o.removeAllRanges(),o.addRange(r),setTimeout(()=>{t.parentNode&&t.parentNode.removeChild(t),n.focus()},50)}const _r=mt&&$n<15||Io&&Jv<604;at.copy=lt.cut=(n,e)=>{let t=e,o=n.state.selection,r=t.type=="cut";if(o.empty)return;let i=_r?null:t.clipboardData,a=o.content(),{dom:c,text:d}=xc(n,a);i?(t.preventDefault(),i.clearData(),i.setData("text/html",c.innerHTML),i.setData("text/plain",d)):Qw(n,c),r&&n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function Xw(n){return n.openStart==0&&n.openEnd==0&&n.content.childCount==1?n.content.firstChild:null}function Zw(n,e){if(!n.dom.parentNode)return;let t=n.input.shiftKey||n.state.selection.$from.parent.type.spec.code,o=n.dom.parentNode.appendChild(document.createElement(t?"textarea":"div"));t||(o.contentEditable="true"),o.style.cssText="position: fixed; left: -10000px; top: 10px",o.focus();let r=n.input.shiftKey&&n.input.lastKeyCode!=45;setTimeout(()=>{n.focus(),o.parentNode&&o.parentNode.removeChild(o),t?Ur(n,o.value,null,r,e):Ur(n,o.textContent,o.innerHTML,r,e)},50)}function Ur(n,e,t,o,r){let i=Qf(n,e,t,o,n.state.selection.$from);if(n.someProp("handlePaste",d=>d(n,r,i||Q.empty)))return!0;if(!i)return!1;let a=Xw(i),c=a?n.state.tr.replaceSelectionWith(a,o):n.state.tr.replaceSelection(i);return n.dispatch(c.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function dh(n){let e=n.getData("text/plain")||n.getData("Text");if(e)return e;let t=n.getData("text/uri-list");return t?t.replace(/\r?\n/g," "):""}lt.paste=(n,e)=>{let t=e;if(n.composing&&!nn)return;let o=_r?null:t.clipboardData,r=n.input.shiftKey&&n.input.lastKeyCode!=45;o&&Ur(n,dh(o),o.getData("text/html"),r,t)?t.preventDefault():Zw(n,t)};class mh{constructor(e,t,o){this.slice=e,this.move=t,this.node=o}}const e$=Nt?"altKey":"ctrlKey";function ph(n,e){let t;return n.someProp("dragCopies",o=>{t=t||o(e)}),t!=null?!t:!e[e$]}at.dragstart=(n,e)=>{let t=e,o=n.input.mouseDown;if(o&&o.done(),!t.dataTransfer)return;let r=n.state.selection,i=r.empty?null:n.posAtCoords(zr(t)),a;if(!(i&&i.pos>=r.from&&i.pos<=(r instanceof le?r.to-1:r.to))){if(o&&o.mightDrag)a=le.create(n.state.doc,o.mightDrag.pos);else if(t.target&&t.target.nodeType==1){let h=n.docView.nearestDesc(t.target,!0);h&&h.node.type.spec.draggable&&h!=n.docView&&(a=le.create(n.state.doc,h.posBefore))}}let c=(a||n.state.selection).content(),{dom:d,text:m,slice:p}=xc(n,c);(!t.dataTransfer.files.length||!Je||gf>120)&&t.dataTransfer.clearData(),t.dataTransfer.setData(_r?"Text":"text/html",d.innerHTML),t.dataTransfer.effectAllowed="copyMove",_r||t.dataTransfer.setData("text/plain",m),n.dragging=new mh(p,ph(n,t),a)},at.dragend=n=>{let e=n.dragging;window.setTimeout(()=>{n.dragging==e&&(n.dragging=null)},50)},lt.dragover=lt.dragenter=(n,e)=>e.preventDefault(),lt.drop=(n,e)=>{try{t$(n,e,n.dragging)}finally{n.dragging=null}};function t$(n,e,t){if(!e.dataTransfer)return;let o=n.posAtCoords(zr(e));if(!o)return;let r=n.state.doc.resolve(o.pos),i=t&&t.slice;i?n.someProp("transformPasted",k=>{i=k(i,n,!1)}):i=Qf(n,dh(e.dataTransfer),_r?null:e.dataTransfer.getData("text/html"),!1,r);let a=!!(t&&ph(n,e));if(n.someProp("handleDrop",k=>k(n,e,i||Q.empty,a))){e.preventDefault();return}if(!i)return;e.preventDefault();let c=i?Dv(n.state.doc,r.pos,i):r.pos;c==null&&(c=r.pos);let d=n.state.tr;if(a){let{node:k}=t;k?k.replace(d):d.deleteSelection()}let m=d.mapping.map(c),p=i.openStart==0&&i.openEnd==0&&i.content.childCount==1,h=d.doc;if(p?d.replaceRangeWith(m,m,i.content.firstChild):d.replaceRange(m,m,i),d.doc.eq(h))return;let g=d.doc.resolve(m);if(p&&le.isSelectable(i.content.firstChild)&&g.nodeAfter&&g.nodeAfter.sameMarkup(i.content.firstChild))d.setSelection(new le(g));else{let k=d.mapping.map(c);d.mapping.maps[d.mapping.maps.length-1].forEach((b,$,S,N)=>k=N),d.setSelection(vc(n,g,d.doc.resolve(k)))}n.focus(),n.dispatch(d.setMeta("uiEvent","drop"))}at.focus=n=>{n.input.lastFocus=Date.now(),n.focused||(n.domObserver.stop(),n.dom.classList.add("ProseMirror-focused"),n.domObserver.start(),n.focused=!0,setTimeout(()=>{n.docView&&n.hasFocus()&&!n.domObserver.currentSelection.eq(n.domSelectionRange())&&rn(n)},20))},at.blur=(n,e)=>{let t=e;n.focused&&(n.domObserver.stop(),n.dom.classList.remove("ProseMirror-focused"),n.domObserver.start(),t.relatedTarget&&n.dom.contains(t.relatedTarget)&&n.domObserver.currentSelection.clear(),n.focused=!1)},at.beforeinput=(n,e)=>{if(Je&&nn&&e.inputType=="deleteContentBackward"){n.domObserver.flushSoon();let{domChangeCount:o}=n.input;setTimeout(()=>{if(n.input.domChangeCount!=o||(n.dom.blur(),n.focus(),n.someProp("handleKeyDown",i=>i(n,so(8,"Backspace")))))return;let{$cursor:r}=n.state.selection;r&&r.pos>0&&n.dispatch(n.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let n in lt)at[n]=lt[n];function Hr(n,e){if(n==e)return!0;for(let t in n)if(n[t]!==e[t])return!1;for(let t in e)if(!(t in n))return!1;return!0}class Ns{constructor(e,t){this.toDOM=e,this.spec=t||uo,this.side=this.spec.side||0}map(e,t,o,r){let{pos:i,deleted:a}=e.mapResult(t.from+r,this.side<0?-1:1);return a?null:new Rt(i-o,i-o,this)}valid(){return!0}eq(e){return this==e||e instanceof Ns&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Hr(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class En{constructor(e,t){this.attrs=e,this.spec=t||uo}map(e,t,o,r){let i=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-o,a=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-o;return i>=a?null:new Rt(i,a,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof En&&Hr(this.attrs,e.attrs)&&Hr(this.spec,e.spec)}static is(e){return e.type instanceof En}destroy(){}}class Ac{constructor(e,t){this.attrs=e,this.spec=t||uo}map(e,t,o,r){let i=e.mapResult(t.from+r,1);if(i.deleted)return null;let a=e.mapResult(t.to+r,-1);return a.deleted||a.pos<=i.pos?null:new Rt(i.pos-o,a.pos-o,this)}valid(e,t){let{index:o,offset:r}=e.content.findIndex(t.from),i;return r==t.from&&!(i=e.child(o)).isText&&r+i.nodeSize==t.to}eq(e){return this==e||e instanceof Ac&&Hr(this.attrs,e.attrs)&&Hr(this.spec,e.spec)}destroy(){}}class Rt{constructor(e,t,o){this.from=e,this.to=t,this.type=o}copy(e,t){return new Rt(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,o){return this.type.map(e,this,t,o)}static widget(e,t,o){return new Rt(e,e,new Ns(t,o))}static inline(e,t,o,r){return new Rt(e,t,new En(o,r))}static node(e,t,o,r){return new Rt(e,t,new Ac(o,r))}get spec(){return this.type.spec}get inline(){return this.type instanceof En}get widget(){return this.type instanceof Ns}}const Fo=[],uo={};class He{constructor(e,t){this.local=e.length?e:Fo,this.children=t.length?t:Fo}static create(e,t){return t.length?Ds(t,e,0,uo):tt}find(e,t,o){let r=[];return this.findInner(e??0,t??1e9,r,0,o),r}findInner(e,t,o,r,i){for(let a=0;a<this.local.length;a++){let c=this.local[a];c.from<=t&&c.to>=e&&(!i||i(c.spec))&&o.push(c.copy(c.from+r,c.to+r))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<t&&this.children[a+1]>e){let c=this.children[a]+1;this.children[a+2].findInner(e-c,t-c,o,r+c,i)}}map(e,t,o){return this==tt||e.maps.length==0?this:this.mapInner(e,t,0,0,o||uo)}mapInner(e,t,o,r,i){let a;for(let c=0;c<this.local.length;c++){let d=this.local[c].map(e,o,r);d&&d.type.valid(t,d)?(a||(a=[])).push(d):i.onRemove&&i.onRemove(this.local[c].spec)}return this.children.length?n$(this.children,a||[],e,t,o,r,i):a?new He(a.sort(mo),Fo):tt}add(e,t){return t.length?this==tt?He.create(e,t):this.addInner(e,t,0):this}addInner(e,t,o){let r,i=0;e.forEach((c,d)=>{let m=d+o,p;if(p=hh(t,c,m)){for(r||(r=this.children.slice());i<r.length&&r[i]<d;)i+=3;r[i]==d?r[i+2]=r[i+2].addInner(c,p,m+1):r.splice(i,0,d,d+c.nodeSize,Ds(p,c,m+1,uo)),i+=3}});let a=fh(i?gh(t):t,-o);for(let c=0;c<a.length;c++)a[c].type.valid(e,a[c])||a.splice(c--,1);return new He(a.length?this.local.concat(a).sort(mo):this.local,r||this.children)}remove(e){return e.length==0||this==tt?this:this.removeInner(e,0)}removeInner(e,t){let o=this.children,r=this.local;for(let i=0;i<o.length;i+=3){let a,c=o[i]+t,d=o[i+1]+t;for(let p=0,h;p<e.length;p++)(h=e[p])&&h.from>c&&h.to<d&&(e[p]=null,(a||(a=[])).push(h));if(!a)continue;o==this.children&&(o=this.children.slice());let m=o[i+2].removeInner(a,c+1);m!=tt?o[i+2]=m:(o.splice(i,3),i-=3)}if(r.length){for(let i=0,a;i<e.length;i++)if(a=e[i])for(let c=0;c<r.length;c++)r[c].eq(a,t)&&(r==this.local&&(r=this.local.slice()),r.splice(c--,1))}return o==this.children&&r==this.local?this:r.length||o.length?new He(r,o):tt}forChild(e,t){if(this==tt)return this;if(t.isLeaf)return He.empty;let o,r;for(let c=0;c<this.children.length;c+=3)if(this.children[c]>=e){this.children[c]==e&&(o=this.children[c+2]);break}let i=e+1,a=i+t.content.size;for(let c=0;c<this.local.length;c++){let d=this.local[c];if(d.from<a&&d.to>i&&d.type instanceof En){let m=Math.max(i,d.from)-i,p=Math.min(a,d.to)-i;m<p&&(r||(r=[])).push(d.copy(m,p))}}if(r){let c=new He(r.sort(mo),Fo);return o?new Nn([c,o]):c}return o||tt}eq(e){if(this==e)return!0;if(!(e instanceof He)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return Oc(this.localsInner(e))}localsInner(e){if(this==tt)return Fo;if(e.inlineContent||!this.local.some(En.is))return this.local;let t=[];for(let o=0;o<this.local.length;o++)this.local[o].type instanceof En||t.push(this.local[o]);return t}forEachSet(e){e(this)}}He.empty=new He([],[]),He.removeOverlap=Oc;const tt=He.empty;class Nn{constructor(e){this.members=e}map(e,t){const o=this.members.map(r=>r.map(e,t,uo));return Nn.from(o)}forChild(e,t){if(t.isLeaf)return He.empty;let o=[];for(let r=0;r<this.members.length;r++){let i=this.members[r].forChild(e,t);i!=tt&&(i instanceof Nn?o=o.concat(i.members):o.push(i))}return Nn.from(o)}eq(e){if(!(e instanceof Nn)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,o=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(e);if(i.length)if(!t)t=i;else{o&&(t=t.slice(),o=!1);for(let a=0;a<i.length;a++)t.push(i[a])}}return t?Oc(o?t:t.sort(mo)):Fo}static from(e){switch(e.length){case 0:return tt;case 1:return e[0];default:return new Nn(e.every(t=>t instanceof He)?e:e.reduce((t,o)=>t.concat(o instanceof He?o:o.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}}function n$(n,e,t,o,r,i,a){let c=n.slice();for(let m=0,p=i;m<t.maps.length;m++){let h=0;t.maps[m].forEach((g,k,b,$)=>{let S=$-b-(k-g);for(let N=0;N<c.length;N+=3){let P=c[N+1];if(P<0||g>P+p-h)continue;let L=c[N]+p-h;k>=L?c[N+1]=g<=L?-2:-1:g>=p&&S&&(c[N]+=S,c[N+1]+=S)}h+=S}),p=t.maps[m].map(p,-1)}let d=!1;for(let m=0;m<c.length;m+=3)if(c[m+1]<0){if(c[m+1]==-2){d=!0,c[m+1]=-1;continue}let p=t.map(n[m]+i),h=p-r;if(h<0||h>=o.content.size){d=!0;continue}let g=t.map(n[m+1]+i,-1),k=g-r,{index:b,offset:$}=o.content.findIndex(h),S=o.maybeChild(b);if(S&&$==h&&$+S.nodeSize==k){let N=c[m+2].mapInner(t,S,p+1,n[m]+i+1,a);N!=tt?(c[m]=h,c[m+1]=k,c[m+2]=N):(c[m+1]=-2,d=!0)}else d=!0}if(d){let m=o$(c,n,e,t,r,i,a),p=Ds(m,o,0,a);e=p.local;for(let h=0;h<c.length;h+=3)c[h+1]<0&&(c.splice(h,3),h-=3);for(let h=0,g=0;h<p.children.length;h+=3){let k=p.children[h];for(;g<c.length&&c[g]<k;)g+=3;c.splice(g,0,p.children[h],p.children[h+1],p.children[h+2])}}return new He(e.sort(mo),c)}function fh(n,e){if(!e||!n.length)return n;let t=[];for(let o=0;o<n.length;o++){let r=n[o];t.push(new Rt(r.from+e,r.to+e,r.type))}return t}function o$(n,e,t,o,r,i,a){function c(d,m){for(let p=0;p<d.local.length;p++){let h=d.local[p].map(o,r,m);h?t.push(h):a.onRemove&&a.onRemove(d.local[p].spec)}for(let p=0;p<d.children.length;p+=3)c(d.children[p+2],d.children[p]+m+1)}for(let d=0;d<n.length;d+=3)n[d+1]==-1&&c(n[d+2],e[d]+i+1);return t}function hh(n,e,t){if(e.isLeaf)return null;let o=t+e.nodeSize,r=null;for(let i=0,a;i<n.length;i++)(a=n[i])&&a.from>t&&a.to<o&&((r||(r=[])).push(a),n[i]=null);return r}function gh(n){let e=[];for(let t=0;t<n.length;t++)n[t]!=null&&e.push(n[t]);return e}function Ds(n,e,t,o){let r=[],i=!1;e.forEach((c,d)=>{let m=hh(n,c,d+t);if(m){i=!0;let p=Ds(m,c,t+d+1,o);p!=tt&&r.push(d,d+c.nodeSize,p)}});let a=fh(i?gh(n):n,-t).sort(mo);for(let c=0;c<a.length;c++)a[c].type.valid(e,a[c])||(o.onRemove&&o.onRemove(a[c].spec),a.splice(c--,1));return a.length||r.length?new He(a,r):tt}function mo(n,e){return n.from-e.from||n.to-e.to}function Oc(n){let e=n;for(let t=0;t<e.length-1;t++){let o=e[t];if(o.from!=o.to)for(let r=t+1;r<e.length;r++){let i=e[r];if(i.from==o.from){i.to!=o.to&&(e==n&&(e=n.slice()),e[r]=i.copy(i.from,o.to),yh(e,r+1,i.copy(o.to,i.to)));continue}else{i.from<o.to&&(e==n&&(e=n.slice()),e[t]=o.copy(o.from,i.from),yh(e,r,o.copy(i.from,o.to)));break}}}return e}function yh(n,e,t){for(;e<n.length&&mo(t,n[e])>0;)e++;n.splice(e,0,t)}function Tc(n){let e=[];return n.someProp("decorations",t=>{let o=t(n.state);o&&o!=tt&&e.push(o)}),n.cursorWrapper&&e.push(He.create(n.state.doc,[n.cursorWrapper.deco])),Nn.from(e)}const r$={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},i$=mt&&$n<=11;class s${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 a${constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new s$,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]);mt&&$n<=11&&o.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():et&&e.composing&&o.some(r=>r.type=="childList"&&r.target.nodeName=="TR")?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),i$&&(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,r$)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Hf(this.view)){if(this.suppressingSelectionUpdates)return rn(this.view);if(mt&&$n<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&io(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,o;for(let i=e.focusNode;i;i=jo(i))t.add(i);for(let i=e.anchorNode;i;i=jo(i))if(t.has(i)){o=i;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 t=this.pendingRecords();t.length&&(this.queue=[]);let o=e.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(o)&&Hf(e)&&!this.ignoreSelectionChange(o),i=-1,a=-1,c=!1,d=[];if(e.editable)for(let p=0;p<t.length;p++){let h=this.registerMutation(t[p],d);h&&(i=i<0?h.from:Math.min(h.from,i),a=a<0?h.to:Math.max(h.to,a),h.typeOver&&(c=!0))}if(d.some(p=>p.nodeName=="BR")&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46||Je&&(e.composing||e.input.compositionEndedAt>Date.now()-50)&&t.some(p=>p.type=="childList"&&p.removedNodes.length))){for(let p of d)if(p.nodeName=="BR"&&p.parentNode){let h=p.nextSibling;for(;h&&h.nodeType==1;){if(h.contentEditable=="false"){p.parentNode.removeChild(p);break}h=h.firstChild}}}else if(Et&&d.length){let p=d.filter(h=>h.nodeName=="BR");if(p.length==2){let[h,g]=p;h.parentNode&&h.parentNode.parentNode==g.parentNode?g.remove():h.remove()}else{let{focusNode:h}=this.currentSelection;for(let g of p){let k=g.parentNode;k&&k.nodeName=="LI"&&(!h||u$(e,h)!=k)&&g.remove()}}}let m=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&$s(o)&&(m=kc(e))&&m.eq(Ce.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,rn(e),this.currentSelection.set(o),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,a),l$(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,d$(e,d)),this.handleDOMChange(i,a,c,d),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(o)||rn(e),this.currentSelection.set(o))}registerMutation(e,t){if(t.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 p=0;p<e.addedNodes.length;p++){let h=e.addedNodes[p];t.push(h),h.nodeType==3&&(this.lastChangedTextNode=h)}if(o.contentDOM&&o.contentDOM!=o.dom&&!o.contentDOM.contains(e.target))return{from:o.posBefore,to:o.posAfter};let r=e.previousSibling,i=e.nextSibling;if(mt&&$n<=11&&e.addedNodes.length)for(let p=0;p<e.addedNodes.length;p++){let{previousSibling:h,nextSibling:g}=e.addedNodes[p];(!h||Array.prototype.indexOf.call(e.addedNodes,h)<0)&&(r=h),(!g||Array.prototype.indexOf.call(e.addedNodes,g)<0)&&(i=g)}let a=r&&r.parentNode==e.target?qe(r)+1:0,c=o.localPosFromDOM(e.target,a,-1),d=i&&i.parentNode==e.target?qe(i):e.target.childNodes.length,m=o.localPosFromDOM(e.target,d,1);return{from:c,to:m}}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 kh=new WeakMap,bh=!1;function l$(n){if(!kh.has(n)&&(kh.set(n,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace)!==-1)){if(n.requiresGeckoHackNode=Et,bh)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."),bh=!0}}function vh(n,e){let t=e.startContainer,o=e.startOffset,r=e.endContainer,i=e.endOffset,a=n.domAtPos(n.state.selection.anchor);return io(a.node,a.offset,r,i)&&([t,o,r,i]=[r,i,t,o]),{anchorNode:t,anchorOffset:o,focusNode:r,focusOffset:i}}function c$(n,e){if(e.getComposedRanges){let r=e.getComposedRanges(n.root)[0];if(r)return vh(n,r)}let t;function o(r){r.preventDefault(),r.stopImmediatePropagation(),t=r.getTargetRanges()[0]}return n.dom.addEventListener("beforeinput",o,!0),document.execCommand("indent"),n.dom.removeEventListener("beforeinput",o,!0),t?vh(n,t):null}function u$(n,e){for(let t=e.parentNode;t&&t!=n.dom;t=t.parentNode){let o=n.docView.nearestDesc(t,!0);if(o&&o.node.isBlock)return t}return null}function d$(n,e){var t;let{focusNode:o,focusOffset:r}=n.domSelectionRange();for(let i of e)if(((t=i.parentNode)===null||t===void 0?void 0:t.nodeName)=="TR"){let a=i.nextSibling;for(;a&&a.nodeName!="TD"&&a.nodeName!="TH";)a=a.nextSibling;if(a){let c=a;for(;;){let d=c.firstChild;if(!d||d.nodeType!=1||d.contentEditable=="false"||/^(BR|IMG)$/.test(d.nodeName))break;c=d}c.insertBefore(i,c.firstChild),o==i&&n.domSelection().collapse(i,r)}else i.parentNode.removeChild(i)}}function m$(n,e,t){let{node:o,fromOffset:r,toOffset:i,from:a,to:c}=n.docView.parseRange(e,t),d=n.domSelectionRange(),m,p=d.anchorNode;if(p&&n.dom.contains(p.nodeType==1?p:p.parentNode)&&(m=[{node:p,offset:d.anchorOffset}],$s(d)||m.push({node:d.focusNode,offset:d.focusOffset})),Je&&n.input.lastKeyCode===8)for(let S=i;S>r;S--){let N=o.childNodes[S-1],P=N.pmViewDesc;if(N.nodeName=="BR"&&!P){i=S;break}if(!P||P.size)break}let h=n.state.doc,g=n.someProp("domParser")||Er.fromSchema(n.state.schema),k=h.resolve(a),b=null,$=g.parse(o,{topNode:k.parent,topMatch:k.parent.contentMatchAt(k.index()),topOpen:!0,from:r,to:i,preserveWhitespace:k.parent.type.whitespace=="pre"?"full":!0,findPositions:m,ruleFromNode:p$,context:k});if(m&&m[0].pos!=null){let S=m[0].pos,N=m[1]&&m[1].pos;N==null&&(N=S),b={anchor:S+a,head:N+a}}return{doc:$,sel:b,from:a,to:c}}function p$(n){let e=n.pmViewDesc;if(e)return e.parseRule();if(n.nodeName=="BR"&&n.parentNode){if(et&&/^(ul|ol)$/i.test(n.parentNode.nodeName)){let t=document.createElement("div");return t.appendChild(document.createElement("li")),{skip:t}}else if(n.parentNode.lastChild==n||et&&/^(tr|table)$/i.test(n.parentNode.nodeName))return{ignore:!0}}else if(n.nodeName=="IMG"&&n.getAttribute("mark-placeholder"))return{ignore:!0};return null}const f$=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function h$(n,e,t,o,r){let i=n.input.compositionPendingChanges||(n.composing?n.input.compositionID:0);if(n.input.compositionPendingChanges=0,e<0){let I=n.input.lastSelectionTime>Date.now()-50?n.input.lastSelectionOrigin:null,K=kc(n,I);if(K&&!n.state.selection.eq(K)){if(Je&&nn&&n.input.lastKeyCode===13&&Date.now()-100<n.input.lastKeyCodeTime&&n.someProp("handleKeyDown",ie=>ie(n,so(13,"Enter"))))return;let X=n.state.tr.setSelection(K);I=="pointer"?X.setMeta("pointer",!0):I=="key"&&X.scrollIntoView(),i&&X.setMeta("composition",i),n.dispatch(X)}return}let a=n.state.doc.resolve(e),c=a.sharedDepth(t);e=a.before(c+1),t=n.state.doc.resolve(t).after(c+1);let d=n.state.selection,m=m$(n,e,t),p=n.state.doc,h=p.slice(m.from,m.to),g,k;n.input.lastKeyCode===8&&Date.now()-100<n.input.lastKeyCodeTime?(g=n.state.selection.to,k="end"):(g=n.state.selection.from,k="start"),n.input.lastKeyCode=null;let b=k$(h.content,m.doc.content,m.from,g,k);if(b&&n.input.domChangeCount++,(Io&&n.input.lastIOSEnter>Date.now()-225||nn)&&r.some(I=>I.nodeType==1&&!f$.test(I.nodeName))&&(!b||b.endA>=b.endB)&&n.someProp("handleKeyDown",I=>I(n,so(13,"Enter")))){n.input.lastIOSEnter=0;return}if(!b)if(o&&d instanceof be&&!d.empty&&d.$head.sameParent(d.$anchor)&&!n.composing&&!(m.sel&&m.sel.anchor!=m.sel.head))b={start:d.from,endA:d.to,endB:d.to};else{if(m.sel){let I=wh(n,n.state.doc,m.sel);if(I&&!I.eq(n.state.selection)){let K=n.state.tr.setSelection(I);i&&K.setMeta("composition",i),n.dispatch(K)}}return}n.state.selection.from<n.state.selection.to&&b.start==b.endB&&n.state.selection instanceof be&&(b.start>n.state.selection.from&&b.start<=n.state.selection.from+2&&n.state.selection.from>=m.from?b.start=n.state.selection.from:b.endA<n.state.selection.to&&b.endA>=n.state.selection.to-2&&n.state.selection.to<=m.to&&(b.endB+=n.state.selection.to-b.endA,b.endA=n.state.selection.to)),mt&&$n<=11&&b.endB==b.start+1&&b.endA==b.start&&b.start>m.from&&m.doc.textBetween(b.start-m.from-1,b.start-m.from+1)==" "&&(b.start--,b.endA--,b.endB--);let $=m.doc.resolveNoCache(b.start-m.from),S=m.doc.resolveNoCache(b.endB-m.from),N=p.resolve(b.start),P=$.sameParent(S)&&$.parent.inlineContent&&N.end()>=b.endA;if((Io&&n.input.lastIOSEnter>Date.now()-225&&(!P||r.some(I=>I.nodeName=="DIV"||I.nodeName=="P"))||!P&&$.pos<m.doc.content.size&&(!$.sameParent(S)||!$.parent.inlineContent)&&$.pos<S.pos&&!/\S/.test(m.doc.textBetween($.pos,S.pos,"","")))&&n.someProp("handleKeyDown",I=>I(n,so(13,"Enter")))){n.input.lastIOSEnter=0;return}if(n.state.selection.anchor>b.start&&y$(p,b.start,b.endA,$,S)&&n.someProp("handleKeyDown",I=>I(n,so(8,"Backspace")))){nn&&Je&&n.domObserver.suppressSelectionUpdates();return}Je&&b.endB==b.start&&(n.input.lastChromeDelete=Date.now()),nn&&!P&&$.start()!=S.start()&&S.parentOffset==0&&$.depth==S.depth&&m.sel&&m.sel.anchor==m.sel.head&&m.sel.head==b.endA&&(b.endB-=2,S=m.doc.resolveNoCache(b.endB-m.from),setTimeout(()=>{n.someProp("handleKeyDown",function(I){return I(n,so(13,"Enter"))})},20));let L=b.start,j=b.endA,Y=I=>{let K=I||n.state.tr.replace(L,j,m.doc.slice(b.start-m.from,b.endB-m.from));if(m.sel){let X=wh(n,K.doc,m.sel);X&&!(Je&&n.composing&&X.empty&&(b.start!=b.endB||n.input.lastChromeDelete<Date.now()-100)&&(X.head==L||X.head==K.mapping.map(j)-1)||mt&&X.empty&&X.head==L)&&K.setSelection(X)}return i&&K.setMeta("composition",i),K.scrollIntoView()},U;if(P)if($.pos==S.pos){mt&&$n<=11&&$.parentOffset==0&&(n.domObserver.suppressSelectionUpdates(),setTimeout(()=>rn(n),20));let I=Y(n.state.tr.delete(L,j)),K=p.resolve(b.start).marksAcross(p.resolve(b.endA));K&&I.ensureMarks(K),n.dispatch(I)}else if(b.endA==b.endB&&(U=g$($.parent.content.cut($.parentOffset,S.parentOffset),N.parent.content.cut(N.parentOffset,b.endA-N.start())))){let I=Y(n.state.tr);U.type=="add"?I.addMark(L,j,U.mark):I.removeMark(L,j,U.mark),n.dispatch(I)}else if($.parent.child($.index()).isText&&$.index()==S.index()-(S.textOffset?0:1)){let I=$.parent.textBetween($.parentOffset,S.parentOffset),K=()=>Y(n.state.tr.insertText(I,L,j));n.someProp("handleTextInput",X=>X(n,L,j,I,K))||n.dispatch(K())}else n.dispatch(Y());else n.dispatch(Y())}function wh(n,e,t){return Math.max(t.anchor,t.head)>e.content.size?null:vc(n,e.resolve(t.anchor),e.resolve(t.head))}function g$(n,e){let t=n.firstChild.marks,o=e.firstChild.marks,r=t,i=o,a,c,d;for(let p=0;p<o.length;p++)r=o[p].removeFromSet(r);for(let p=0;p<t.length;p++)i=t[p].removeFromSet(i);if(r.length==1&&i.length==0)c=r[0],a="add",d=p=>p.mark(c.addToSet(p.marks));else if(r.length==0&&i.length==1)c=i[0],a="remove",d=p=>p.mark(c.removeFromSet(p.marks));else return null;let m=[];for(let p=0;p<e.childCount;p++)m.push(d(e.child(p)));if(V.from(m).eq(n))return{mark:c,type:a}}function y$(n,e,t,o,r){if(t-e<=r.pos-o.pos||Pc(o,!0,!1)<r.pos)return!1;let i=n.resolve(e);if(!o.parent.isTextblock){let c=i.nodeAfter;return c!=null&&t==e+c.nodeSize}if(i.parentOffset<i.parent.content.size||!i.parent.isTextblock)return!1;let a=n.resolve(Pc(i,!0,!0));return!a.parent.isTextblock||a.pos>t||Pc(a,!0,!1)<t?!1:o.parent.content.cut(o.parentOffset).eq(a.parent.content)}function Pc(n,e,t){let o=n.depth,r=e?n.end():n.pos;for(;o>0&&(e||n.indexAfter(o)==n.node(o).childCount);)o--,r++,e=!1;if(t){let i=n.node(o).maybeChild(n.indexAfter(o));for(;i&&!i.isLeaf;)i=i.firstChild,r++}return r}function k$(n,e,t,o,r){let i=n.findDiffStart(e,t),a=t+n.size,c=t+e.size;if(i==null)return null;let{a:d,b:m}=n.findDiffEnd(e,a,c);if(r=="end"){let p=Math.max(0,i-Math.min(d,m));o-=d+p-i}if(d<i&&a<c){let p=o<=i&&o>=d?i-o:0;i-=p,m=i+(m-d),d=i}else if(m<i){let p=o<=i&&o>=m?i-o:0;i-=p,d=i+(d-m),m=i}return{start:i,endA:d,endB:m}}class $h{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new Mw,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(Nh),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=Ch(this),Sh(this),this.nodeViews=Eh(this),this.docView=Of(this.state.doc,xh(this),Tc(this),this.dom,this),this.domObserver=new a$(this,(o,r,i,a)=>h$(this,o,r,i,a)),this.domObserver.start(),Lw(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Ec(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Nh),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let o in this._props)t[o]=this._props[o];t.state=this.state;for(let o in e)t[o]=e[o];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var o;let r=this.state,i=!1,a=!1;e.storedMarks&&this.composing&&(uh(this),a=!0),this.state=e;let c=r.plugins!=e.plugins||this._props.plugins!=t.plugins;if(c||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let k=Eh(this);v$(k,this.nodeViews)&&(this.nodeViews=k,i=!0)}(c||t.handleDOMEvents!=this._props.handleDOMEvents)&&Ec(this),this.editable=Ch(this),Sh(this);let d=Tc(this),m=xh(this),p=r.plugins!=e.plugins&&!r.doc.eq(e.doc)?"reset":e.scrollToSelection>r.scrollToSelection?"to selection":"preserve",h=i||!this.docView.matchesNode(e.doc,m,d);(h||!e.selection.eq(r.selection))&&(a=!0);let g=p=="preserve"&&a&&this.dom.style.overflowAnchor==null&&qv(this);if(a){this.domObserver.stop();let k=h&&(mt||Je)&&!this.composing&&!r.selection.empty&&!e.selection.empty&&b$(r.selection,e.selection);if(h){let $=Je?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Gw(this)),(i||!this.docView.update(e.doc,m,d,this))&&(this.docView.updateOuterDeco(m),this.docView.destroy(),this.docView=Of(e.doc,m,d,this.dom,this)),$&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(k=!0)}let b=this.input.mouseDown;k||!(b&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&bw(this)&&b.delaySelUpdate())?rn(this,k):(_f(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),p=="reset"?this.dom.scrollTop=0:p=="to selection"?this.scrollToSelection():g&&Gv(g)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",t=>t(this)))if(this.state.selection instanceof le){let t=this.docView.domAfterPos(this.state.selection.from);t.nodeType==1&&kf(this,t.getBoundingClientRect(),e)}else kf(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 t=0;t<this.directPlugins.length;t++){let o=this.directPlugins[t];o.spec.view&&this.pluginViews.push(o.spec.view(this))}for(let t=0;t<this.state.plugins.length;t++){let o=this.state.plugins[t];o.spec.view&&this.pluginViews.push(o.spec.view(this))}}else for(let t=0;t<this.pluginViews.length;t++){let o=this.pluginViews[t];o.update&&o.update(this,e)}}updateDraggedNode(e,t){let o=e.node,r=-1;if(o.from<this.state.doc.content.size&&this.state.doc.nodeAt(o.from)==o.node)r=o.from;else{let i=o.from+(this.state.doc.content.size-t.doc.content.size);(i>0&&i<this.state.doc.content.size&&this.state.doc.nodeAt(i))==o.node&&(r=i)}this.dragging=new mh(e.slice,e.move,r<0?void 0:le.create(this.state.doc,r))}someProp(e,t){let o=this._props&&this._props[e],r;if(o!=null&&(r=t?t(o):o))return r;for(let a=0;a<this.directPlugins.length;a++){let c=this.directPlugins[a].props[e];if(c!=null&&(r=t?t(c):c))return r}let i=this.state.plugins;if(i)for(let a=0;a<i.length;a++){let c=i[a].props[e];if(c!=null&&(r=t?t(c):c))return r}}hasFocus(){if(mt){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&&Qv(this.dom),rn(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let t=this.dom.parentNode;t;t=t.parentNode)if(t.nodeType==9||t.nodeType==11&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=()=>t.ownerDocument.getSelection()),this._root=t}return e||document}updateRoot(){this._root=null}posAtCoords(e){return nw(this,e)}coordsAtPos(e,t=1){return Sf(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,o=-1){let r=this.docView.posFromDOM(e,t,o);if(r==null)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,t){return aw(this,t||this.state,e)}pasteHTML(e,t){return Ur(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return Ur(this,e,null,!0,t||new ClipboardEvent("paste"))}serializeForClipboard(e){return xc(this,e)}destroy(){this.docView&&(jw(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Tc(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,zv())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return Bw(this,e)}domSelectionRange(){let e=this.domSelection();return e?et&&this.root.nodeType===11&&Vv(this.dom.ownerDocument)==this.dom&&c$(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}$h.prototype.dispatch=function(n){let e=this._props.dispatchTransaction;e?e.call(this,n):this.updateState(this.state.apply(n))};function xh(n){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(n.editable),n.someProp("attributes",t=>{if(typeof t=="function"&&(t=t(n.state)),t)for(let o in t)o=="class"?e.class+=" "+t[o]:o=="style"?e.style=(e.style?e.style+";":"")+t[o]:!e[o]&&o!="contenteditable"&&o!="nodeName"&&(e[o]=String(t[o]))}),e.translate||(e.translate="no"),[Rt.node(0,n.state.doc.content.size,e)]}function Sh(n){if(n.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),n.cursorWrapper={dom:e,deco:Rt.widget(n.state.selection.from,e,{raw:!0,marks:n.markCursor})}}else n.cursorWrapper=null}function Ch(n){return!n.someProp("editable",e=>e(n.state)===!1)}function b$(n,e){let t=Math.min(n.$anchor.sharedDepth(n.head),e.$anchor.sharedDepth(e.head));return n.$anchor.start(t)!=e.$anchor.start(t)}function Eh(n){let e=Object.create(null);function t(o){for(let r in o)Object.prototype.hasOwnProperty.call(e,r)||(e[r]=o[r])}return n.someProp("nodeViews",t),n.someProp("markViews",t),e}function v$(n,e){let t=0,o=0;for(let r in n){if(n[r]!=e[r])return!0;t++}for(let r in e)o++;return t!=o}function Nh(n){if(n.spec.state||n.spec.filterTransaction||n.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var Dn={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Rs={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},w$=typeof navigator<"u"&&/Macintosh/.test(navigator.userAgent),$$=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Ge=0;Ge<10;Ge++)Dn[48+Ge]=Dn[96+Ge]=String(Ge);for(var Ge=1;Ge<=24;Ge++)Dn[Ge+111]="F"+Ge;for(var Ge=65;Ge<=90;Ge++)Dn[Ge]=String.fromCharCode(Ge+32),Rs[Ge]=String.fromCharCode(Ge);for(var Mc in Dn)Rs.hasOwnProperty(Mc)||(Rs[Mc]=Dn[Mc]);function x$(n){var e=w$&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||$$&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?Rs:Dn)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}const S$=typeof navigator<"u"&&/Macintosh|iPhone|iPad|iPod/.test(navigator.userAgent),C$=typeof navigator<"u"&&/Win/.test(navigator.platform);function E$(n){let e=n.split(/-(?!$)/),t=e[e.length-1];t=="Space"&&(t=" ");let o,r,i,a;for(let c=0;c<e.length-1;c++){let d=e[c];if(/^(cmd|meta|m)$/i.test(d))a=!0;else if(/^a(lt)?$/i.test(d))o=!0;else if(/^(c|ctrl|control)$/i.test(d))r=!0;else if(/^s(hift)?$/i.test(d))i=!0;else if(/^mod$/i.test(d))S$?a=!0:r=!0;else throw new Error("Unrecognized modifier name: "+d)}return o&&(t="Alt-"+t),r&&(t="Ctrl-"+t),a&&(t="Meta-"+t),i&&(t="Shift-"+t),t}function N$(n){let e=Object.create(null);for(let t in n)e[E$(t)]=n[t];return e}function Lc(n,e,t=!0){return e.altKey&&(n="Alt-"+n),e.ctrlKey&&(n="Ctrl-"+n),e.metaKey&&(n="Meta-"+n),t&&e.shiftKey&&(n="Shift-"+n),n}function D$(n){return new dt({props:{handleKeyDown:R$(n)}})}function R$(n){let e=N$(n);return function(t,o){let r=x$(o),i,a=e[Lc(r,o)];if(a&&a(t.state,t.dispatch,t))return!0;if(r.length==1&&r!=" "){if(o.shiftKey){let c=e[Lc(r,o,!1)];if(c&&c(t.state,t.dispatch,t))return!0}if((o.altKey||o.metaKey||o.ctrlKey)&&!(C$&&o.ctrlKey&&o.altKey)&&(i=Dn[o.keyCode])&&i!=r){let c=e[Lc(i,o)];if(c&&c(t.state,t.dispatch,t))return!0}}return!1}}const jc=(n,e)=>n.selection.empty?!1:(e&&e(n.tr.deleteSelection().scrollIntoView()),!0);function Dh(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("backward",n):t.parentOffset>0)?null:t}const Rh=(n,e,t)=>{let o=Dh(n,t);if(!o)return!1;let r=Ic(o);if(!r){let a=o.blockRange(),c=a&&Oo(a);return c==null?!1:(e&&e(n.tr.lift(a,c).scrollIntoView()),!0)}let i=r.nodeBefore;if(Bh(n,r,e,-1))return!0;if(o.parent.content.size==0&&(_o(i,"end")||le.isSelectable(i)))for(let a=o.depth;;a--){let c=bs(n.doc,o.before(a),o.after(a),Q.empty);if(c&&c.slice.size<c.to-c.from){if(e){let d=n.tr.step(c);d.setSelection(_o(i,"end")?Ce.findFrom(d.doc.resolve(d.mapping.map(r.pos,-1)),-1):le.create(d.doc,r.pos-i.nodeSize)),e(d.scrollIntoView())}return!0}if(a==1||o.node(a-1).childCount>1)break}return i.isAtom&&r.depth==o.depth-1?(e&&e(n.tr.delete(r.pos-i.nodeSize,r.pos).scrollIntoView()),!0):!1},A$=(n,e,t)=>{let o=Dh(n,t);if(!o)return!1;let r=Ic(o);return r?Ah(n,r,e):!1},O$=(n,e,t)=>{let o=Th(n,t);if(!o)return!1;let r=Bc(o);return r?Ah(n,r,e):!1};function Ah(n,e,t){let o=e.nodeBefore,r=o,i=e.pos-1;for(;!r.isTextblock;i--){if(r.type.spec.isolating)return!1;let p=r.lastChild;if(!p)return!1;r=p}let a=e.nodeAfter,c=a,d=e.pos+1;for(;!c.isTextblock;d++){if(c.type.spec.isolating)return!1;let p=c.firstChild;if(!p)return!1;c=p}let m=bs(n.doc,i,d,Q.empty);if(!m||m.from!=i||m instanceof Ue&&m.slice.size>=d-i)return!1;if(t){let p=n.tr.step(m);p.setSelection(be.create(p.doc,i)),t(p.scrollIntoView())}return!0}function _o(n,e,t=!1){for(let o=n;o;o=e=="start"?o.firstChild:o.lastChild){if(o.isTextblock)return!0;if(t&&o.childCount!=1)return!1}return!1}const Oh=(n,e,t)=>{let{$head:o,empty:r}=n.selection,i=o;if(!r)return!1;if(o.parent.isTextblock){if(t?!t.endOfTextblock("backward",n):o.parentOffset>0)return!1;i=Ic(o)}let a=i&&i.nodeBefore;return!a||!le.isSelectable(a)?!1:(e&&e(n.tr.setSelection(le.create(n.doc,i.pos-a.nodeSize)).scrollIntoView()),!0)};function Ic(n){if(!n.parent.type.spec.isolating)for(let e=n.depth-1;e>=0;e--){if(n.index(e)>0)return n.doc.resolve(n.before(e+1));if(n.node(e).type.spec.isolating)break}return null}function Th(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("forward",n):t.parentOffset<t.parent.content.size)?null:t}const Ph=(n,e,t)=>{let o=Th(n,t);if(!o)return!1;let r=Bc(o);if(!r)return!1;let i=r.nodeAfter;if(Bh(n,r,e,1))return!0;if(o.parent.content.size==0&&(_o(i,"start")||le.isSelectable(i))){let a=bs(n.doc,o.before(),o.after(),Q.empty);if(a&&a.slice.size<a.to-a.from){if(e){let c=n.tr.step(a);c.setSelection(_o(i,"start")?Ce.findFrom(c.doc.resolve(c.mapping.map(r.pos)),1):le.create(c.doc,c.mapping.map(r.pos))),e(c.scrollIntoView())}return!0}}return i.isAtom&&r.depth==o.depth-1?(e&&e(n.tr.delete(r.pos,r.pos+i.nodeSize).scrollIntoView()),!0):!1},Mh=(n,e,t)=>{let{$head:o,empty:r}=n.selection,i=o;if(!r)return!1;if(o.parent.isTextblock){if(t?!t.endOfTextblock("forward",n):o.parentOffset<o.parent.content.size)return!1;i=Bc(o)}let a=i&&i.nodeAfter;return!a||!le.isSelectable(a)?!1:(e&&e(n.tr.setSelection(le.create(n.doc,i.pos)).scrollIntoView()),!0)};function Bc(n){if(!n.parent.type.spec.isolating)for(let e=n.depth-1;e>=0;e--){let t=n.node(e);if(n.index(e)+1<t.childCount)return n.doc.resolve(n.after(e+1));if(t.type.spec.isolating)break}return null}const T$=(n,e)=>{let t=n.selection,o=t instanceof le,r;if(o){if(t.node.isTextblock||!wn(n.doc,t.from))return!1;r=t.from}else if(r=ks(n.doc,t.from,-1),r==null)return!1;if(e){let i=n.tr.join(r);o&&i.setSelection(le.create(i.doc,r-n.doc.resolve(r).nodeBefore.nodeSize)),e(i.scrollIntoView())}return!0},P$=(n,e)=>{let t=n.selection,o;if(t instanceof le){if(t.node.isTextblock||!wn(n.doc,t.to))return!1;o=t.to}else if(o=ks(n.doc,t.to,1),o==null)return!1;return e&&e(n.tr.join(o).scrollIntoView()),!0},M$=(n,e)=>{let{$from:t,$to:o}=n.selection,r=t.blockRange(o),i=r&&Oo(r);return i==null?!1:(e&&e(n.tr.lift(r,i).scrollIntoView()),!0)},Lh=(n,e)=>{let{$head:t,$anchor:o}=n.selection;return!t.parent.type.spec.code||!t.sameParent(o)?!1:(e&&e(n.tr.insertText(`
|
|
11
|
-
`).scrollIntoView()),!0)};function zc(n){for(let e=0;e<n.edgeCount;e++){let{type:t}=n.edge(e);if(t.isTextblock&&!t.hasRequiredAttrs())return t}return null}const L$=(n,e)=>{let{$head:t,$anchor:o}=n.selection;if(!t.parent.type.spec.code||!t.sameParent(o))return!1;let r=t.node(-1),i=t.indexAfter(-1),a=zc(r.contentMatchAt(i));if(!a||!r.canReplaceWith(i,i,a))return!1;if(e){let c=t.after(),d=n.tr.replaceWith(c,c,a.createAndFill());d.setSelection(Ce.near(d.doc.resolve(c),1)),e(d.scrollIntoView())}return!0},jh=(n,e)=>{let t=n.selection,{$from:o,$to:r}=t;if(t instanceof bt||o.parent.inlineContent||r.parent.inlineContent)return!1;let i=zc(r.parent.contentMatchAt(r.indexAfter()));if(!i||!i.isTextblock)return!1;if(e){let a=(!o.parentOffset&&r.index()<r.parent.childCount?o:r).pos,c=n.tr.insert(a,i.createAndFill());c.setSelection(be.create(c.doc,a+1)),e(c.scrollIntoView())}return!0},Ih=(n,e)=>{let{$cursor:t}=n.selection;if(!t||t.parent.content.size)return!1;if(t.depth>1&&t.after()!=t.end(-1)){let i=t.before();if(en(n.doc,i))return e&&e(n.tr.split(i).scrollIntoView()),!0}let o=t.blockRange(),r=o&&Oo(o);return r==null?!1:(e&&e(n.tr.lift(o,r).scrollIntoView()),!0)};function j$(n){return(e,t)=>{let{$from:o,$to:r}=e.selection;if(e.selection instanceof le&&e.selection.node.isBlock)return!o.parentOffset||!en(e.doc,o.pos)?!1:(t&&t(e.tr.split(o.pos).scrollIntoView()),!0);if(!o.depth)return!1;let i=[],a,c,d=!1,m=!1;for(let k=o.depth;;k--)if(o.node(k).isBlock){d=o.end(k)==o.pos+(o.depth-k),m=o.start(k)==o.pos-(o.depth-k),c=zc(o.node(k-1).contentMatchAt(o.indexAfter(k-1))),i.unshift(d&&c?{type:c}:null),a=k;break}else{if(k==1)return!1;i.unshift(null)}let p=e.tr;(e.selection instanceof be||e.selection instanceof bt)&&p.deleteSelection();let h=p.mapping.map(o.pos),g=en(p.doc,h,i.length,i);if(g||(i[0]=c?{type:c}:null,g=en(p.doc,h,i.length,i)),!g)return!1;if(p.split(h,i.length,i),!d&&m&&o.node(a).type!=c){let k=p.mapping.map(o.before(a)),b=p.doc.resolve(k);c&&o.node(a-1).canReplaceWith(b.index(),b.index()+1,c)&&p.setNodeMarkup(p.mapping.map(o.before(a)),c)}return t&&t(p.scrollIntoView()),!0}}const I$=j$(),B$=(n,e)=>{let{$from:t,to:o}=n.selection,r,i=t.sharedDepth(o);return i==0?!1:(r=t.before(i),e&&e(n.tr.setSelection(le.create(n.doc,r))),!0)};function z$(n,e,t){let o=e.nodeBefore,r=e.nodeAfter,i=e.index();return!o||!r||!o.type.compatibleContent(r.type)?!1:!o.content.size&&e.parent.canReplace(i-1,i)?(t&&t(n.tr.delete(e.pos-o.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(i,i+1)||!(r.isTextblock||wn(n.doc,e.pos))?!1:(t&&t(n.tr.join(e.pos).scrollIntoView()),!0)}function Bh(n,e,t,o){let r=e.nodeBefore,i=e.nodeAfter,a,c,d=r.type.spec.isolating||i.type.spec.isolating;if(!d&&z$(n,e,t))return!0;let m=!d&&e.parent.canReplace(e.index(),e.index()+1);if(m&&(a=(c=r.contentMatchAt(r.childCount)).findWrapping(i.type))&&c.matchType(a[0]||i.type).validEnd){if(t){let k=e.pos+i.nodeSize,b=V.empty;for(let N=a.length-1;N>=0;N--)b=V.from(a[N].create(null,b));b=V.from(r.copy(b));let $=n.tr.step(new Ye(e.pos-1,k,e.pos,k,new Q(b,1,0),a.length,!0)),S=$.doc.resolve(k+2*a.length);S.nodeAfter&&S.nodeAfter.type==r.type&&wn($.doc,S.pos)&&$.join(S.pos),t($.scrollIntoView())}return!0}let p=i.type.spec.isolating||o>0&&d?null:Ce.findFrom(e,1),h=p&&p.$from.blockRange(p.$to),g=h&&Oo(h);if(g!=null&&g>=e.depth)return t&&t(n.tr.lift(h,g).scrollIntoView()),!0;if(m&&_o(i,"start",!0)&&_o(r,"end")){let k=r,b=[];for(;b.push(k),!k.isTextblock;)k=k.lastChild;let $=i,S=1;for(;!$.isTextblock;$=$.firstChild)S++;if(k.canReplace(k.childCount,k.childCount,$.content)){if(t){let N=V.empty;for(let L=b.length-1;L>=0;L--)N=V.from(b[L].copy(N));let P=n.tr.step(new Ye(e.pos-b.length,e.pos+i.nodeSize,e.pos+S,e.pos+i.nodeSize-S,new Q(N,b.length,0),0,!0));t(P.scrollIntoView())}return!0}}return!1}function zh(n){return function(e,t){let o=e.selection,r=n<0?o.$from:o.$to,i=r.depth;for(;r.node(i).isInline;){if(!i)return!1;i--}return r.node(i).isTextblock?(t&&t(e.tr.setSelection(be.create(e.doc,n<0?r.start(i):r.end(i)))),!0):!1}}const F$=zh(-1),_$=zh(1);function U$(n,e=null){return function(t,o){let{$from:r,$to:i}=t.selection,a=r.blockRange(i),c=a&&nc(a,n,e);return c?(o&&o(t.tr.wrap(a,c).scrollIntoView()),!0):!1}}function Fh(n,e=null){return function(t,o){let r=!1;for(let i=0;i<t.selection.ranges.length&&!r;i++){let{$from:{pos:a},$to:{pos:c}}=t.selection.ranges[i];t.doc.nodesBetween(a,c,(d,m)=>{if(r)return!1;if(!(!d.isTextblock||d.hasMarkup(n,e)))if(d.type==n)r=!0;else{let p=t.doc.resolve(m),h=p.index();r=p.parent.canReplaceWith(h,h+1,n)}})}if(!r)return!1;if(o){let i=t.tr;for(let a=0;a<t.selection.ranges.length;a++){let{$from:{pos:c},$to:{pos:d}}=t.selection.ranges[a];i.setBlockType(c,d,n,e)}o(i.scrollIntoView())}return!0}}function Fc(...n){return function(e,t,o){for(let r=0;r<n.length;r++)if(n[r](e,t,o))return!0;return!1}}Fc(jc,Rh,Oh),Fc(jc,Ph,Mh),Fc(Lh,jh,Ih,I$),typeof navigator<"u"?/Macintosh|iPhone|iPad|iPod/.test(navigator.userAgent):typeof os<"u"&&os.platform&&os.platform()=="darwin";function H$(n,e=null){return function(t,o){let{$from:r,$to:i}=t.selection,a=r.blockRange(i);if(!a)return!1;let c=o?t.tr:null;return V$(c,a,n,e)?(o&&o(c.scrollIntoView()),!0):!1}}function V$(n,e,t,o=null){let r=!1,i=e,a=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(t)&&e.startIndex==0){if(e.$from.index(e.depth-1)==0)return!1;let d=a.resolve(e.start-2);i=new us(d,d,e.depth),e.endIndex<e.parent.childCount&&(e=new us(e.$from,a.resolve(e.$to.end(e.depth)),e.depth)),r=!0}let c=nc(i,t,o,e);return c?(n&&Y$(n,e,c,r,t),!0):!1}function Y$(n,e,t,o,r){let i=V.empty;for(let p=t.length-1;p>=0;p--)i=V.from(t[p].type.create(t[p].attrs,i));n.step(new Ye(e.start-(o?2:0),e.end,e.start,e.end,new Q(i,0,0),t.length,!0));let a=0;for(let p=0;p<t.length;p++)t[p].type==r&&(a=p+1);let c=t.length-a,d=e.start+t.length-(o?2:0),m=e.parent;for(let p=e.startIndex,h=e.endIndex,g=!0;p<h;p++,g=!1)!g&&en(n.doc,d,c)&&(n.split(d,c),d+=2*c),d+=m.child(p).nodeSize;return n}function J$(n){return function(e,t){let{$from:o,$to:r}=e.selection,i=o.blockRange(r,a=>a.childCount>0&&a.firstChild.type==n);return i?t?o.node(i.depth-1).type==n?K$(e,t,n,i):W$(e,t,i):!0:!1}}function K$(n,e,t,o){let r=n.tr,i=o.end,a=o.$to.end(o.depth);i<a&&(r.step(new Ye(i-1,a,i,a,new Q(V.from(t.create(null,o.parent.copy())),1,0),1,!0)),o=new us(r.doc.resolve(o.$from.pos),r.doc.resolve(a),o.depth));const c=Oo(o);if(c==null)return!1;r.lift(o,c);let d=r.doc.resolve(r.mapping.map(i,-1)-1);return wn(r.doc,d.pos)&&d.nodeBefore.type==d.nodeAfter.type&&r.join(d.pos),e(r.scrollIntoView()),!0}function W$(n,e,t){let o=n.tr,r=t.parent;for(let k=t.end,b=t.endIndex-1,$=t.startIndex;b>$;b--)k-=r.child(b).nodeSize,o.delete(k-1,k+1);let i=o.doc.resolve(t.start),a=i.nodeAfter;if(o.mapping.map(t.end)!=t.start+i.nodeAfter.nodeSize)return!1;let c=t.startIndex==0,d=t.endIndex==r.childCount,m=i.node(-1),p=i.index(-1);if(!m.canReplace(p+(c?0:1),p+1,a.content.append(d?V.empty:V.from(r))))return!1;let h=i.pos,g=h+a.nodeSize;return o.step(new Ye(h-(c?1:0),g+(d?1:0),h+1,g-1,new Q((c?V.empty:V.from(r.copy(V.empty))).append(d?V.empty:V.from(r.copy(V.empty))),c?0:1,d?0:1),c?0:1)),e(o.scrollIntoView()),!0}function q$(n){return function(e,t){let{$from:o,$to:r}=e.selection,i=o.blockRange(r,m=>m.childCount>0&&m.firstChild.type==n);if(!i)return!1;let a=i.startIndex;if(a==0)return!1;let c=i.parent,d=c.child(a-1);if(d.type!=n)return!1;if(t){let m=d.lastChild&&d.lastChild.type==c.type,p=V.from(m?n.create():null),h=new Q(V.from(n.create(null,V.from(c.type.create(null,p)))),m?3:1,0),g=i.start,k=i.end;t(e.tr.step(new Ye(g-(m?3:1),k,g,k,h,1,!0)).scrollIntoView())}return!0}}function As(n){const{state:e,transaction:t}=n;let{selection:o}=t,{doc:r}=t,{storedMarks:i}=t;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 i},get selection(){return o},get doc(){return r},get tr(){return o=t.selection,r=t.doc,i=t.storedMarks,t}}}class Os{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:t,state:o}=this,{view:r}=t,{tr:i}=o,a=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([c,d])=>[c,(...p)=>{const h=d(...p)(a);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(i),h}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:o,editor:r,state:i}=this,{view:a}=r,c=[],d=!!e,m=e||i.tr,p=()=>(!d&&t&&!m.getMeta("preventDispatch")&&!this.hasCustomState&&a.dispatch(m),c.every(g=>g===!0)),h={...Object.fromEntries(Object.entries(o).map(([g,k])=>[g,(...$)=>{const S=this.buildProps(m,t),N=k(...$)(S);return c.push(N),h}])),run:p};return h}createCan(e){const{rawCommands:t,state:o}=this,r=!1,i=e||o.tr,a=this.buildProps(i,r);return{...Object.fromEntries(Object.entries(t).map(([d,m])=>[d,(...p)=>m(...p)({...a,dispatch:void 0})])),chain:()=>this.createChain(i,r)}}buildProps(e,t=!0){const{rawCommands:o,editor:r,state:i}=this,{view:a}=r,c={tr:e,editor:r,view:a,state:As({state:i,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(o).map(([d,m])=>[d,(...p)=>m(...p)(c)]))}};return c}}let G$=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const o=this.callbacks[e];return o&&o.forEach(r=>r.apply(this,t)),this}off(e,t){const o=this.callbacks[e];return o&&(t?this.callbacks[e]=o.filter(r=>r!==t):delete this.callbacks[e]),this}once(e,t){const o=(...r)=>{this.off(e,o),t.apply(this,r)};return this.on(e,o)}removeAllListeners(){this.callbacks={}}};function te(n,e,t){return n.config[e]===void 0&&n.parent?te(n.parent,e,t):typeof n.config[e]=="function"?n.config[e].bind({...t,parent:n.parent?te(n.parent,e,t):null}):n.config[e]}function Ts(n){const e=n.filter(r=>r.type==="extension"),t=n.filter(r=>r.type==="node"),o=n.filter(r=>r.type==="mark");return{baseExtensions:e,nodeExtensions:t,markExtensions:o}}function _h(n){const e=[],{nodeExtensions:t,markExtensions:o}=Ts(n),r=[...t,...o],i={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return n.forEach(a=>{const c={name:a.name,options:a.options,storage:a.storage,extensions:r},d=te(a,"addGlobalAttributes",c);if(!d)return;d().forEach(p=>{p.types.forEach(h=>{Object.entries(p.attributes).forEach(([g,k])=>{e.push({type:h,name:g,attribute:{...i,...k}})})})})}),r.forEach(a=>{const c={name:a.name,options:a.options,storage:a.storage},d=te(a,"addAttributes",c);if(!d)return;const m=d();Object.entries(m).forEach(([p,h])=>{const g={...i,...h};typeof g?.default=="function"&&(g.default=g.default()),g?.isRequired&&g?.default===void 0&&delete g.default,e.push({type:a.name,name:p,attribute:g})})}),e}function Ke(n,e){if(typeof n=="string"){if(!e.nodes[n])throw Error(`There is no node type named '${n}'. Maybe you forgot to add the extension?`);return e.nodes[n]}return n}function Uo(...n){return n.filter(e=>!!e).reduce((e,t)=>{const o={...e};return Object.entries(t).forEach(([r,i])=>{if(!o[r]){o[r]=i;return}if(r==="class"){const c=i?String(i).split(" "):[],d=o[r]?o[r].split(" "):[],m=c.filter(p=>!d.includes(p));o[r]=[...d,...m].join(" ")}else if(r==="style"){const c=i?i.split(";").map(p=>p.trim()).filter(Boolean):[],d=o[r]?o[r].split(";").map(p=>p.trim()).filter(Boolean):[],m=new Map;d.forEach(p=>{const[h,g]=p.split(":").map(k=>k.trim());m.set(h,g)}),c.forEach(p=>{const[h,g]=p.split(":").map(k=>k.trim());m.set(h,g)}),o[r]=Array.from(m.entries()).map(([p,h])=>`${p}: ${h}`).join("; ")}else o[r]=i}),o},{})}function _c(n,e){return e.filter(t=>t.type===n.type.name).filter(t=>t.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(n.attrs)||{}:{[t.name]:n.attrs[t.name]}).reduce((t,o)=>Uo(t,o),{})}function Uh(n){return typeof n=="function"}function Ee(n,e=void 0,...t){return Uh(n)?e?n.bind(e)(...t):n(...t):n}function Q$(n={}){return Object.keys(n).length===0&&n.constructor===Object}function X$(n){return typeof n!="string"?n:n.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(n):n==="true"?!0:n==="false"?!1:n}function Hh(n,e){return"style"in n?n:{...n,getAttrs:t=>{const o=n.getAttrs?n.getAttrs(t):n.attrs;if(o===!1)return!1;const r=e.reduce((i,a)=>{const c=a.attribute.parseHTML?a.attribute.parseHTML(t):X$(t.getAttribute(a.name));return c==null?i:{...i,[a.name]:c}},{});return{...o,...r}}}}function Vh(n){return Object.fromEntries(Object.entries(n).filter(([e,t])=>e==="attrs"&&Q$(t)?!1:t!=null))}function Z$(n,e){var t;const o=_h(n),{nodeExtensions:r,markExtensions:i}=Ts(n),a=(t=r.find(m=>te(m,"topNode")))===null||t===void 0?void 0:t.name,c=Object.fromEntries(r.map(m=>{const p=o.filter(N=>N.type===m.name),h={name:m.name,options:m.options,storage:m.storage,editor:e},g=n.reduce((N,P)=>{const L=te(P,"extendNodeSchema",h);return{...N,...L?L(m):{}}},{}),k=Vh({...g,content:Ee(te(m,"content",h)),marks:Ee(te(m,"marks",h)),group:Ee(te(m,"group",h)),inline:Ee(te(m,"inline",h)),atom:Ee(te(m,"atom",h)),selectable:Ee(te(m,"selectable",h)),draggable:Ee(te(m,"draggable",h)),code:Ee(te(m,"code",h)),whitespace:Ee(te(m,"whitespace",h)),linebreakReplacement:Ee(te(m,"linebreakReplacement",h)),defining:Ee(te(m,"defining",h)),isolating:Ee(te(m,"isolating",h)),attrs:Object.fromEntries(p.map(N=>{var P;return[N.name,{default:(P=N?.attribute)===null||P===void 0?void 0:P.default}]}))}),b=Ee(te(m,"parseHTML",h));b&&(k.parseDOM=b.map(N=>Hh(N,p)));const $=te(m,"renderHTML",h);$&&(k.toDOM=N=>$({node:N,HTMLAttributes:_c(N,p)}));const S=te(m,"renderText",h);return S&&(k.toText=S),[m.name,k]})),d=Object.fromEntries(i.map(m=>{const p=o.filter(S=>S.type===m.name),h={name:m.name,options:m.options,storage:m.storage,editor:e},g=n.reduce((S,N)=>{const P=te(N,"extendMarkSchema",h);return{...S,...P?P(m):{}}},{}),k=Vh({...g,inclusive:Ee(te(m,"inclusive",h)),excludes:Ee(te(m,"excludes",h)),group:Ee(te(m,"group",h)),spanning:Ee(te(m,"spanning",h)),code:Ee(te(m,"code",h)),attrs:Object.fromEntries(p.map(S=>{var N;return[S.name,{default:(N=S?.attribute)===null||N===void 0?void 0:N.default}]}))}),b=Ee(te(m,"parseHTML",h));b&&(k.parseDOM=b.map(S=>Hh(S,p)));const $=te(m,"renderHTML",h);return $&&(k.toDOM=S=>$({mark:S,HTMLAttributes:_c(S,p)})),[m.name,k]}));return new Pp({topNode:a,nodes:c,marks:d})}function Uc(n,e){return e.nodes[n]||e.marks[n]||null}function Yh(n,e){return Array.isArray(e)?e.some(t=>(typeof t=="string"?t:t.name)===n.name):e}function Hc(n,e){const t=oo.fromSchema(e).serializeFragment(n),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(t),r.innerHTML}const ex=(n,e=500)=>{let t="";const o=n.parentOffset;return n.parent.nodesBetween(Math.max(0,o-e),o,(r,i,a,c)=>{var d,m;const p=((m=(d=r.type.spec).toText)===null||m===void 0?void 0:m.call(d,{node:r,pos:i,parent:a,index:c}))||r.textContent||"%leaf%";t+=r.isAtom&&!r.isText?p:p.slice(0,Math.max(0,o-i))}),t};function Vc(n){return Object.prototype.toString.call(n)==="[object RegExp]"}class tx{constructor(e){this.find=e.find,this.handler=e.handler}}const nx=(n,e)=>{if(Vc(e))return e.exec(n);const t=e(n);if(!t)return null;const o=[t.text];return o.index=t.index,o.input=n,o.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),o.push(t.replaceWith)),o};function Ps(n){var e;const{editor:t,from:o,to:r,text:i,rules:a,plugin:c}=n,{view:d}=t;if(d.composing)return!1;const m=d.state.doc.resolve(o);if(m.parent.type.spec.code||!((e=m.nodeBefore||m.nodeAfter)===null||e===void 0)&&e.marks.find(g=>g.type.spec.code))return!1;let p=!1;const h=ex(m)+i;return a.forEach(g=>{if(p)return;const k=nx(h,g.find);if(!k)return;const b=d.state.tr,$=As({state:d.state,transaction:b}),S={from:o-(k[0].length-i.length),to:r},{commands:N,chain:P,can:L}=new Os({editor:t,state:$});g.handler({state:$,range:S,match:k,commands:N,chain:P,can:L})===null||!b.steps.length||(b.setMeta(c,{transform:b,from:o,to:r,text:i}),d.dispatch(b),p=!0)}),p}function ox(n){const{editor:e,rules:t}=n,o=new dt({state:{init(){return null},apply(r,i,a){const c=r.getMeta(o);if(c)return c;const d=r.getMeta("applyInputRules");return d&&setTimeout(()=>{let{text:p}=d;typeof p=="string"?p=p:p=Hc(V.from(p),a.schema);const{from:h}=d,g=h+p.length;Ps({editor:e,from:h,to:g,text:p,rules:t,plugin:o})}),r.selectionSet||r.docChanged?null:i}},props:{handleTextInput(r,i,a,c){return Ps({editor:e,from:i,to:a,text:c,rules:t,plugin:o})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:i}=r.state.selection;i&&Ps({editor:e,from:i.pos,to:i.pos,text:"",rules:t,plugin:o})}),!1)},handleKeyDown(r,i){if(i.key!=="Enter")return!1;const{$cursor:a}=r.state.selection;return a?Ps({editor:e,from:a.pos,to:a.pos,text:`
|
|
12
|
-
`,rules:
|
|
13
|
-
|
|
14
|
-
`,textSerializers:a={}}=t||{};let c="";return n.nodesBetween(o,r,(d,m,p,h)=>{var g;d.isBlock&&m>o&&(c+=i);const k=a?.[d.type.name];if(k)return p&&(c+=k({node:d,pos:m,parent:p,index:h,range:e})),!1;d.isText&&(c+=(g=d?.text)===null||g===void 0?void 0:g.slice(Math.max(o,m)-m,r-m))}),c}function Kh(n){return Object.fromEntries(Object.entries(n.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}const mx=At.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new dt({key:new Bt("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:n}=this,{state:e,schema:t}=n,{doc:o,selection:r}=e,{ranges:i}=r,a=Math.min(...i.map(p=>p.$from.pos)),c=Math.max(...i.map(p=>p.$to.pos)),d=Kh(t);return Jh(o,{from:a,to:c},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:d})}}})]}}),px=()=>({editor:n,view:e})=>(requestAnimationFrame(()=>{var t;n.isDestroyed||(e.dom.blur(),(t=window?.getSelection())===null||t===void 0||t.removeAllRanges())}),!0),fx=(n=!1)=>({commands:e})=>e.setContent("",n),hx=()=>({state:n,tr:e,dispatch:t})=>{const{selection:o}=e,{ranges:r}=o;return t&&r.forEach(({$from:i,$to:a})=>{n.doc.nodesBetween(i.pos,a.pos,(c,d)=>{if(c.type.isText)return;const{doc:m,mapping:p}=e,h=m.resolve(p.map(d)),g=m.resolve(p.map(d+c.nodeSize)),k=h.blockRange(g);if(!k)return;const b=Oo(k);if(c.type.isTextblock){const{defaultType:$}=h.parent.contentMatchAt(h.index());e.setNodeMarkup(k.start,$)}(b||b===0)&&e.lift(k,b)})}),!0},gx=n=>e=>n(e),yx=()=>({state:n,dispatch:e})=>jh(n,e),kx=(n,e)=>({editor:t,tr:o})=>{const{state:r}=t,i=r.doc.slice(n.from,n.to);o.deleteRange(n.from,n.to);const a=o.mapping.map(e);return o.insert(a,i.content),o.setSelection(new be(o.doc.resolve(Math.max(a-1,0)))),!0},bx=()=>({tr:n,dispatch:e})=>{const{selection:t}=n,o=t.$anchor.node();if(o.content.size>0)return!1;const r=n.selection.$anchor;for(let i=r.depth;i>0;i-=1)if(r.node(i).type===o.type){if(e){const c=r.before(i),d=r.after(i);n.delete(c,d).scrollIntoView()}return!0}return!1},vx=n=>({tr:e,state:t,dispatch:o})=>{const r=Ke(n,t.schema),i=e.selection.$anchor;for(let a=i.depth;a>0;a-=1)if(i.node(a).type===r){if(o){const d=i.before(a),m=i.after(a);e.delete(d,m).scrollIntoView()}return!0}return!1},wx=n=>({tr:e,dispatch:t})=>{const{from:o,to:r}=n;return t&&e.delete(o,r),!0},$x=()=>({state:n,dispatch:e})=>jc(n,e),xx=()=>({commands:n})=>n.keyboardShortcut("Enter"),Sx=()=>({state:n,dispatch:e})=>L$(n,e);function Is(n,e,t={strict:!0}){const o=Object.keys(e);return o.length?o.every(r=>t.strict?e[r]===n[r]:Vc(e[r])?e[r].test(n[r]):e[r]===n[r]):!0}function Wh(n,e,t={}){return n.find(o=>o.type===e&&Is(Object.fromEntries(Object.keys(t).map(r=>[r,o.attrs[r]])),t))}function qh(n,e,t={}){return!!Wh(n,e,t)}function Yc(n,e,t){var o;if(!n||!e)return;let r=n.parent.childAfter(n.parentOffset);if((!r.node||!r.node.marks.some(p=>p.type===e))&&(r=n.parent.childBefore(n.parentOffset)),!r.node||!r.node.marks.some(p=>p.type===e)||(t=t||((o=r.node.marks[0])===null||o===void 0?void 0:o.attrs),!Wh([...r.node.marks],e,t)))return;let a=r.index,c=n.start()+r.offset,d=a+1,m=c+r.node.nodeSize;for(;a>0&&qh([...n.parent.child(a-1).marks],e,t);)a-=1,c-=n.parent.child(a).nodeSize;for(;d<n.parent.childCount&&qh([...n.parent.child(d).marks],e,t);)m+=n.parent.child(d).nodeSize,d+=1;return{from:c,to:m}}function Rn(n,e){if(typeof n=="string"){if(!e.marks[n])throw Error(`There is no mark type named '${n}'. Maybe you forgot to add the extension?`);return e.marks[n]}return n}const Cx=(n,e={})=>({tr:t,state:o,dispatch:r})=>{const i=Rn(n,o.schema),{doc:a,selection:c}=t,{$from:d,from:m,to:p}=c;if(r){const h=Yc(d,i,e);if(h&&h.from<=m&&h.to>=p){const g=be.create(a,h.from,h.to);t.setSelection(g)}}return!0},Ex=n=>e=>{const t=typeof n=="function"?n(e):n;for(let o=0;o<t.length;o+=1)if(t[o](e))return!0;return!1};function Gh(n){return n instanceof be}function po(n=0,e=0,t=0){return Math.min(Math.max(n,e),t)}function Qh(n,e=null){if(!e)return null;const t=Ce.atStart(n),o=Ce.atEnd(n);if(e==="start"||e===!0)return t;if(e==="end")return o;const r=t.from,i=o.to;return e==="all"?be.create(n,po(0,r,i),po(n.content.size,r,i)):be.create(n,po(e,r,i),po(e,r,i))}function Xh(){return/android/i.test(navigator.userAgent)}function Bs(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].length===0||/iPhone|iPod/.test(navigator.userAgent)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function Nx(){return typeof navigator<"u"?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}const Dx=(n=null,e={})=>({editor:t,view:o,tr:r,dispatch:i})=>{e={scrollIntoView:!0,...e};const a=()=>{(Bs()||Xh())&&o.dom.focus(),requestAnimationFrame(()=>{t.isDestroyed||(o.focus(),Nx()&&!Bs()&&!Xh()&&o.dom.focus({preventScroll:!0}))})};if(o.hasFocus()&&n===null||n===!1)return!0;if(i&&n===null&&!Gh(t.state.selection))return a(),!0;const c=Qh(r.doc,n)||t.state.selection,d=t.state.selection.eq(c);return i&&(d||r.setSelection(c),d&&r.storedMarks&&r.setStoredMarks(r.storedMarks),a()),!0},Rx=(n,e)=>t=>n.every((o,r)=>e(o,{...t,index:r})),Ax=(n,e)=>({tr:t,commands:o})=>o.insertContentAt({from:t.selection.from,to:t.selection.to},n,e),Zh=n=>{const e=n.childNodes;for(let t=e.length-1;t>=0;t-=1){const o=e[t];o.nodeType===3&&o.nodeValue&&/^(\n\s\s|\n)$/.test(o.nodeValue)?n.removeChild(o):o.nodeType===1&&Zh(o)}return n};function zs(n){const e=`<body>${n}</body>`,t=new window.DOMParser().parseFromString(e,"text/html").body;return Zh(t)}function Yr(n,e,t){if(n instanceof kn||n instanceof V)return n;t={slice:!0,parseOptions:{},...t};const o=typeof n=="object"&&n!==null,r=typeof n=="string";if(o)try{if(Array.isArray(n)&&n.length>0)return V.fromArray(n.map(c=>e.nodeFromJSON(c)));const a=e.nodeFromJSON(n);return t.errorOnInvalidContent&&a.check(),a}catch(i){if(t.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:i});return console.warn("[tiptap warn]: Invalid content.","Passed value:",n,"Error:",i),Yr("",e,t)}if(r){if(t.errorOnInvalidContent){let a=!1,c="";const d=new Pp({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:m=>(a=!0,c=typeof m=="string"?m:m.outerHTML,null)}]}})});if(t.slice?Er.fromSchema(d).parseSlice(zs(n),t.parseOptions):Er.fromSchema(d).parse(zs(n),t.parseOptions),t.errorOnInvalidContent&&a)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${c}`)})}const i=Er.fromSchema(e);return t.slice?i.parseSlice(zs(n),t.parseOptions).content:i.parse(zs(n),t.parseOptions)}return Yr("",e,t)}function Ox(n,e,t){const o=n.steps.length-1;if(o<e)return;const r=n.steps[o];if(!(r instanceof Ue||r instanceof Ye))return;const i=n.mapping.maps[o];let a=0;i.forEach((c,d,m,p)=>{a===0&&(a=p)}),n.setSelection(Ce.near(n.doc.resolve(a),t))}const Tx=n=>!("type"in n),Px=(n,e,t)=>({tr:o,dispatch:r,editor:i})=>{var a;if(r){t={parseOptions:i.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...t};let c;const d=S=>{i.emit("contentError",{editor:i,error:S,disableCollaboration:()=>{i.storage.collaboration&&(i.storage.collaboration.isDisabled=!0)}})},m={preserveWhitespace:"full",...t.parseOptions};if(!t.errorOnInvalidContent&&!i.options.enableContentCheck&&i.options.emitContentError)try{Yr(e,i.schema,{parseOptions:m,errorOnInvalidContent:!0})}catch(S){d(S)}try{c=Yr(e,i.schema,{parseOptions:m,errorOnInvalidContent:(a=t.errorOnInvalidContent)!==null&&a!==void 0?a:i.options.enableContentCheck})}catch(S){return d(S),!1}let{from:p,to:h}=typeof n=="number"?{from:n,to:n}:{from:n.from,to:n.to},g=!0,k=!0;if((Tx(c)?c:[c]).forEach(S=>{S.check(),g=g?S.isText&&S.marks.length===0:!1,k=k?S.isBlock:!1}),p===h&&k){const{parent:S}=o.doc.resolve(p);S.isTextblock&&!S.type.spec.code&&!S.childCount&&(p-=1,h+=1)}let $;if(g){if(Array.isArray(e))$=e.map(S=>S.text||"").join("");else if(e instanceof V){let S="";e.forEach(N=>{N.text&&(S+=N.text)}),$=S}else typeof e=="object"&&e&&e.text?$=e.text:$=e;o.insertText($,p,h)}else $=c,o.replaceWith(p,h,$);t.updateSelection&&Ox(o,o.steps.length-1,-1),t.applyInputRules&&o.setMeta("applyInputRules",{from:p,text:$}),t.applyPasteRules&&o.setMeta("applyPasteRules",{from:p,text:$})}return!0},Mx=()=>({state:n,dispatch:e})=>T$(n,e),Lx=()=>({state:n,dispatch:e})=>P$(n,e),jx=()=>({state:n,dispatch:e})=>Rh(n,e),Ix=()=>({state:n,dispatch:e})=>Ph(n,e),Bx=()=>({state:n,dispatch:e,tr:t})=>{try{const o=ks(n.doc,n.selection.$from.pos,-1);return o==null?!1:(t.join(o,2),e&&e(t),!0)}catch{return!1}},zx=()=>({state:n,dispatch:e,tr:t})=>{try{const o=ks(n.doc,n.selection.$from.pos,1);return o==null?!1:(t.join(o,2),e&&e(t),!0)}catch{return!1}},Fx=()=>({state:n,dispatch:e})=>A$(n,e),_x=()=>({state:n,dispatch:e})=>O$(n,e);function eg(){return typeof navigator<"u"?/Macintosh/.test(navigator.userAgent):!1}function Ux(n){const e=n.split(/-(?!$)/);let t=e[e.length-1];t==="Space"&&(t=" ");let o,r,i,a;for(let c=0;c<e.length-1;c+=1){const d=e[c];if(/^(cmd|meta|m)$/i.test(d))a=!0;else if(/^a(lt)?$/i.test(d))o=!0;else if(/^(c|ctrl|control)$/i.test(d))r=!0;else if(/^s(hift)?$/i.test(d))i=!0;else if(/^mod$/i.test(d))Bs()||eg()?a=!0:r=!0;else throw new Error(`Unrecognized modifier name: ${d}`)}return o&&(t=`Alt-${t}`),r&&(t=`Ctrl-${t}`),a&&(t=`Meta-${t}`),i&&(t=`Shift-${t}`),t}const Hx=n=>({editor:e,view:t,tr:o,dispatch:r})=>{const i=Ux(n).split(/-(?!$)/),a=i.find(m=>!["Alt","Ctrl","Meta","Shift"].includes(m)),c=new KeyboardEvent("keydown",{key:a==="Space"?" ":a,altKey:i.includes("Alt"),ctrlKey:i.includes("Ctrl"),metaKey:i.includes("Meta"),shiftKey:i.includes("Shift"),bubbles:!0,cancelable:!0}),d=e.captureTransaction(()=>{t.someProp("handleKeyDown",m=>m(t,c))});return d?.steps.forEach(m=>{const p=m.map(o.mapping);p&&r&&o.maybeStep(p)}),!0};function Jr(n,e,t={}){const{from:o,to:r,empty:i}=n.selection,a=e?Ke(e,n.schema):null,c=[];n.doc.nodesBetween(o,r,(h,g)=>{if(h.isText)return;const k=Math.max(o,g),b=Math.min(r,g+h.nodeSize);c.push({node:h,from:k,to:b})});const d=r-o,m=c.filter(h=>a?a.name===h.node.type.name:!0).filter(h=>Is(h.node.attrs,t,{strict:!1}));return i?!!m.length:m.reduce((h,g)=>h+g.to-g.from,0)>=d}const Vx=(n,e={})=>({state:t,dispatch:o})=>{const r=Ke(n,t.schema);return Jr(t,r,e)?M$(t,o):!1},Yx=()=>({state:n,dispatch:e})=>Ih(n,e),Jx=n=>({state:e,dispatch:t})=>{const o=Ke(n,e.schema);return J$(o)(e,t)},Kx=()=>({state:n,dispatch:e})=>Lh(n,e);function Fs(n,e){return e.nodes[n]?"node":e.marks[n]?"mark":null}function tg(n,e){const t=typeof e=="string"?[e]:e;return Object.keys(n).reduce((o,r)=>(t.includes(r)||(o[r]=n[r]),o),{})}const Wx=(n,e)=>({tr:t,state:o,dispatch:r})=>{let i=null,a=null;const c=Fs(typeof n=="string"?n:n.name,o.schema);return c?(c==="node"&&(i=Ke(n,o.schema)),c==="mark"&&(a=Rn(n,o.schema)),r&&t.selection.ranges.forEach(d=>{o.doc.nodesBetween(d.$from.pos,d.$to.pos,(m,p)=>{i&&i===m.type&&t.setNodeMarkup(p,void 0,tg(m.attrs,e)),a&&m.marks.length&&m.marks.forEach(h=>{a===h.type&&t.addMark(p,p+m.nodeSize,a.create(tg(h.attrs,e)))})})}),!0):!1},qx=()=>({tr:n,dispatch:e})=>(e&&n.scrollIntoView(),!0),Gx=()=>({tr:n,dispatch:e})=>{if(e){const t=new bt(n.doc);n.setSelection(t)}return!0},Qx=()=>({state:n,dispatch:e})=>Oh(n,e),Xx=()=>({state:n,dispatch:e})=>Mh(n,e),Zx=()=>({state:n,dispatch:e})=>B$(n,e),e1=()=>({state:n,dispatch:e})=>_$(n,e),t1=()=>({state:n,dispatch:e})=>F$(n,e);function Jc(n,e,t={},o={}){return Yr(n,e,{slice:!1,parseOptions:t,errorOnInvalidContent:o.errorOnInvalidContent})}const n1=(n,e=!1,t={},o={})=>({editor:r,tr:i,dispatch:a,commands:c})=>{var d,m;const{doc:p}=i;if(t.preserveWhitespace!=="full"){const h=Jc(n,r.schema,t,{errorOnInvalidContent:(d=o.errorOnInvalidContent)!==null&&d!==void 0?d:r.options.enableContentCheck});return a&&i.replaceWith(0,p.content.size,h).setMeta("preventUpdate",!e),!0}return a&&i.setMeta("preventUpdate",!e),c.insertContentAt({from:0,to:p.content.size},n,{parseOptions:t,errorOnInvalidContent:(m=o.errorOnInvalidContent)!==null&&m!==void 0?m:r.options.enableContentCheck})};function ng(n,e){const t=Rn(e,n.schema),{from:o,to:r,empty:i}=n.selection,a=[];i?(n.storedMarks&&a.push(...n.storedMarks),a.push(...n.selection.$head.marks())):n.doc.nodesBetween(o,r,d=>{a.push(...d.marks)});const c=a.find(d=>d.type.name===t.name);return c?{...c.attrs}:{}}function o1(n,e){const t=new of(n);return e.forEach(o=>{o.steps.forEach(r=>{t.step(r)})}),t}function r1(n){for(let e=0;e<n.edgeCount;e+=1){const{type:t}=n.edge(e);if(t.isTextblock&&!t.hasRequiredAttrs())return t}return null}function i1(n,e,t){const o=[];return n.nodesBetween(e.from,e.to,(r,i)=>{t(r)&&o.push({node:r,pos:i})}),o}function s1(n,e){for(let t=n.depth;t>0;t-=1){const o=n.node(t);if(e(o))return{pos:t>0?n.before(t):0,start:n.start(t),depth:t,node:o}}}function Kc(n){return e=>s1(e.$from,n)}function a1(n,e){const t={from:0,to:n.content.size};return Jh(n,t,e)}function l1(n,e){const t=Ke(e,n.schema),{from:o,to:r}=n.selection,i=[];n.doc.nodesBetween(o,r,c=>{i.push(c)});const a=i.reverse().find(c=>c.type.name===t.name);return a?{...a.attrs}:{}}function og(n,e){const t=Fs(typeof e=="string"?e:e.name,n.schema);return t==="node"?l1(n,e):t==="mark"?ng(n,e):{}}function c1(n,e=JSON.stringify){const t={};return n.filter(o=>{const r=e(o);return Object.prototype.hasOwnProperty.call(t,r)?!1:t[r]=!0})}function u1(n){const e=c1(n);return e.length===1?e:e.filter((t,o)=>!e.filter((i,a)=>a!==o).some(i=>t.oldRange.from>=i.oldRange.from&&t.oldRange.to<=i.oldRange.to&&t.newRange.from>=i.newRange.from&&t.newRange.to<=i.newRange.to))}function d1(n){const{mapping:e,steps:t}=n,o=[];return e.maps.forEach((r,i)=>{const a=[];if(r.ranges.length)r.forEach((c,d)=>{a.push({from:c,to:d})});else{const{from:c,to:d}=t[i];if(c===void 0||d===void 0)return;a.push({from:c,to:d})}a.forEach(({from:c,to:d})=>{const m=e.slice(i).map(c,-1),p=e.slice(i).map(d),h=e.invert().map(m,-1),g=e.invert().map(p);o.push({oldRange:{from:h,to:g},newRange:{from:m,to:p}})})}),u1(o)}function rg(n,e,t){const o=[];return n===e?t.resolve(n).marks().forEach(r=>{const i=t.resolve(n),a=Yc(i,r.type);a&&o.push({mark:r,...a})}):t.nodesBetween(n,e,(r,i)=>{!r||r?.nodeSize===void 0||o.push(...r.marks.map(a=>({from:i,to:i+r.nodeSize,mark:a})))}),o}function _s(n,e,t){return Object.fromEntries(Object.entries(t).filter(([o])=>{const r=n.find(i=>i.type===e&&i.name===o);return r?r.attribute.keepOnSplit:!1}))}function Wc(n,e,t={}){const{empty:o,ranges:r}=n.selection,i=e?Rn(e,n.schema):null;if(o)return!!(n.storedMarks||n.selection.$from.marks()).filter(h=>i?i.name===h.type.name:!0).find(h=>Is(h.attrs,t,{strict:!1}));let a=0;const c=[];if(r.forEach(({$from:h,$to:g})=>{const k=h.pos,b=g.pos;n.doc.nodesBetween(k,b,($,S)=>{if(!$.isText&&!$.marks.length)return;const N=Math.max(k,S),P=Math.min(b,S+$.nodeSize),L=P-N;a+=L,c.push(...$.marks.map(j=>({mark:j,from:N,to:P})))})}),a===0)return!1;const d=c.filter(h=>i?i.name===h.mark.type.name:!0).filter(h=>Is(h.mark.attrs,t,{strict:!1})).reduce((h,g)=>h+g.to-g.from,0),m=c.filter(h=>i?h.mark.type!==i&&h.mark.type.excludes(i):!0).reduce((h,g)=>h+g.to-g.from,0);return(d>0?d+m:d)>=a}function m1(n,e,t={}){if(!e)return Jr(n,null,t)||Wc(n,null,t);const o=Fs(e,n.schema);return o==="node"?Jr(n,e,t):o==="mark"?Wc(n,e,t):!1}function ig(n,e){const{nodeExtensions:t}=Ts(e),o=t.find(a=>a.name===n);if(!o)return!1;const r={name:o.name,options:o.options,storage:o.storage},i=Ee(te(o,"group",r));return typeof i!="string"?!1:i.split(" ").includes("list")}function Us(n,{checkChildren:e=!0,ignoreWhitespace:t=!1}={}){var o;if(t){if(n.type.name==="hardBreak")return!0;if(n.isText)return/^\s*$/m.test((o=n.text)!==null&&o!==void 0?o:"")}if(n.isText)return!n.text;if(n.isAtom||n.isLeaf)return!1;if(n.content.childCount===0)return!0;if(e){let r=!0;return n.content.forEach(i=>{r!==!1&&(Us(i,{ignoreWhitespace:t,checkChildren:e})||(r=!1))}),r}return!1}function p1(n,e,t){var o;const{selection:r}=e;let i=null;if(Gh(r)&&(i=r.$cursor),i){const c=(o=n.storedMarks)!==null&&o!==void 0?o:i.marks();return!!t.isInSet(c)||!c.some(d=>d.type.excludes(t))}const{ranges:a}=r;return a.some(({$from:c,$to:d})=>{let m=c.depth===0?n.doc.inlineContent&&n.doc.type.allowsMarkType(t):!1;return n.doc.nodesBetween(c.pos,d.pos,(p,h,g)=>{if(m)return!1;if(p.isInline){const k=!g||g.type.allowsMarkType(t),b=!!t.isInSet(p.marks)||!p.marks.some($=>$.type.excludes(t));m=k&&b}return!m}),m})}const f1=(n,e={})=>({tr:t,state:o,dispatch:r})=>{const{selection:i}=t,{empty:a,ranges:c}=i,d=Rn(n,o.schema);if(r)if(a){const m=ng(o,d);t.addStoredMark(d.create({...m,...e}))}else c.forEach(m=>{const p=m.$from.pos,h=m.$to.pos;o.doc.nodesBetween(p,h,(g,k)=>{const b=Math.max(k,p),$=Math.min(k+g.nodeSize,h);g.marks.find(N=>N.type===d)?g.marks.forEach(N=>{d===N.type&&t.addMark(b,$,d.create({...N.attrs,...e}))}):t.addMark(b,$,d.create(e))})});return p1(o,t,d)},h1=(n,e)=>({tr:t})=>(t.setMeta(n,e),!0),g1=(n,e={})=>({state:t,dispatch:o,chain:r})=>{const i=Ke(n,t.schema);let a;return t.selection.$anchor.sameParent(t.selection.$head)&&(a=t.selection.$anchor.parent.attrs),i.isTextblock?r().command(({commands:c})=>Fh(i,{...a,...e})(t)?!0:c.clearNodes()).command(({state:c})=>Fh(i,{...a,...e})(c,o)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},y1=n=>({tr:e,dispatch:t})=>{if(t){const{doc:o}=e,r=po(n,0,o.content.size),i=le.create(o,r);e.setSelection(i)}return!0},k1=n=>({tr:e,dispatch:t})=>{if(t){const{doc:o}=e,{from:r,to:i}=typeof n=="number"?{from:n,to:n}:n,a=be.atStart(o).from,c=be.atEnd(o).to,d=po(r,a,c),m=po(i,a,c),p=be.create(o,d,m);e.setSelection(p)}return!0},b1=n=>({state:e,dispatch:t})=>{const o=Ke(n,e.schema);return q$(o)(e,t)};function sg(n,e){const t=n.storedMarks||n.selection.$to.parentOffset&&n.selection.$from.marks();if(t){const o=t.filter(r=>e?.includes(r.type.name));n.tr.ensureMarks(o)}}const v1=({keepMarks:n=!0}={})=>({tr:e,state:t,dispatch:o,editor:r})=>{const{selection:i,doc:a}=e,{$from:c,$to:d}=i,m=r.extensionManager.attributes,p=_s(m,c.node().type.name,c.node().attrs);if(i instanceof le&&i.node.isBlock)return!c.parentOffset||!en(a,c.pos)?!1:(o&&(n&&sg(t,r.extensionManager.splittableMarks),e.split(c.pos).scrollIntoView()),!0);if(!c.parent.isBlock)return!1;const h=d.parentOffset===d.parent.content.size,g=c.depth===0?void 0:r1(c.node(-1).contentMatchAt(c.indexAfter(-1)));let k=h&&g?[{type:g,attrs:p}]:void 0,b=en(e.doc,e.mapping.map(c.pos),1,k);if(!k&&!b&&en(e.doc,e.mapping.map(c.pos),1,g?[{type:g}]:void 0)&&(b=!0,k=g?[{type:g,attrs:p}]:void 0),o){if(b&&(i instanceof be&&e.deleteSelection(),e.split(e.mapping.map(c.pos),1,k),g&&!h&&!c.parentOffset&&c.parent.type!==g)){const $=e.mapping.map(c.before()),S=e.doc.resolve($);c.node(-1).canReplaceWith(S.index(),S.index()+1,g)&&e.setNodeMarkup(e.mapping.map(c.before()),g)}n&&sg(t,r.extensionManager.splittableMarks),e.scrollIntoView()}return b},w1=(n,e={})=>({tr:t,state:o,dispatch:r,editor:i})=>{var a;const c=Ke(n,o.schema),{$from:d,$to:m}=o.selection,p=o.selection.node;if(p&&p.isBlock||d.depth<2||!d.sameParent(m))return!1;const h=d.node(-1);if(h.type!==c)return!1;const g=i.extensionManager.attributes;if(d.parent.content.size===0&&d.node(-1).childCount===d.indexAfter(-1)){if(d.depth===2||d.node(-3).type!==c||d.index(-2)!==d.node(-2).childCount-1)return!1;if(r){let N=V.empty;const P=d.index(-1)?1:d.index(-2)?2:3;for(let K=d.depth-P;K>=d.depth-3;K-=1)N=V.from(d.node(K).copy(N));const L=d.indexAfter(-1)<d.node(-2).childCount?1:d.indexAfter(-2)<d.node(-3).childCount?2:3,j={..._s(g,d.node().type.name,d.node().attrs),...e},Y=((a=c.contentMatch.defaultType)===null||a===void 0?void 0:a.createAndFill(j))||void 0;N=N.append(V.from(c.createAndFill(null,Y)||void 0));const U=d.before(d.depth-(P-1));t.replace(U,d.after(-L),new Q(N,4-P,0));let I=-1;t.doc.nodesBetween(U,t.doc.content.size,(K,X)=>{if(I>-1)return!1;K.isTextblock&&K.content.size===0&&(I=X+1)}),I>-1&&t.setSelection(be.near(t.doc.resolve(I))),t.scrollIntoView()}return!0}const k=m.pos===d.end()?h.contentMatchAt(0).defaultType:null,b={..._s(g,h.type.name,h.attrs),...e},$={..._s(g,d.node().type.name,d.node().attrs),...e};t.delete(d.pos,m.pos);const S=k?[{type:c,attrs:b},{type:k,attrs:$}]:[{type:c,attrs:b}];if(!en(t.doc,d.pos,2))return!1;if(r){const{selection:N,storedMarks:P}=o,{splittableMarks:L}=i.extensionManager,j=P||N.$to.parentOffset&&N.$from.marks();if(t.split(d.pos,2,S).scrollIntoView(),!j||!r)return!0;const Y=j.filter(U=>L.includes(U.type.name));t.ensureMarks(Y)}return!0},qc=(n,e)=>{const t=Kc(a=>a.type===e)(n.selection);if(!t)return!0;const o=n.doc.resolve(Math.max(0,t.pos-1)).before(t.depth);if(o===void 0)return!0;const r=n.doc.nodeAt(o);return t.node.type===r?.type&&wn(n.doc,t.pos)&&n.join(t.pos),!0},Gc=(n,e)=>{const t=Kc(a=>a.type===e)(n.selection);if(!t)return!0;const o=n.doc.resolve(t.start).after(t.depth);if(o===void 0)return!0;const r=n.doc.nodeAt(o);return t.node.type===r?.type&&wn(n.doc,o)&&n.join(o),!0};var $1=Object.freeze({__proto__:null,blur:px,clearContent:fx,clearNodes:hx,command:gx,createParagraphNear:yx,cut:kx,deleteCurrentNode:bx,deleteNode:vx,deleteRange:wx,deleteSelection:$x,enter:xx,exitCode:Sx,extendMarkRange:Cx,first:Ex,focus:Dx,forEach:Rx,insertContent:Ax,insertContentAt:Px,joinBackward:jx,joinDown:Lx,joinForward:Ix,joinItemBackward:Bx,joinItemForward:zx,joinTextblockBackward:Fx,joinTextblockForward:_x,joinUp:Mx,keyboardShortcut:Hx,lift:Vx,liftEmptyBlock:Yx,liftListItem:Jx,newlineInCode:Kx,resetAttributes:Wx,scrollIntoView:qx,selectAll:Gx,selectNodeBackward:Qx,selectNodeForward:Xx,selectParentNode:Zx,selectTextblockEnd:e1,selectTextblockStart:t1,setContent:n1,setMark:f1,setMeta:h1,setNode:g1,setNodeSelection:y1,setTextSelection:k1,sinkListItem:b1,splitBlock:v1,splitListItem:w1,toggleList:(n,e,t,o={})=>({editor:r,tr:i,state:a,dispatch:c,chain:d,commands:m,can:p})=>{const{extensions:h,splittableMarks:g}=r.extensionManager,k=Ke(n,a.schema),b=Ke(e,a.schema),{selection:$,storedMarks:S}=a,{$from:N,$to:P}=$,L=N.blockRange(P),j=S||$.$to.parentOffset&&$.$from.marks();if(!L)return!1;const Y=Kc(U=>ig(U.type.name,h))($);if(L.depth>=1&&Y&&L.depth-Y.depth<=1){if(Y.node.type===k)return m.liftListItem(b);if(ig(Y.node.type.name,h)&&k.validContent(Y.node.content)&&c)return d().command(()=>(i.setNodeMarkup(Y.pos,k),!0)).command(()=>qc(i,k)).command(()=>Gc(i,k)).run()}return!t||!j||!c?d().command(()=>p().wrapInList(k,o)?!0:m.clearNodes()).wrapInList(k,o).command(()=>qc(i,k)).command(()=>Gc(i,k)).run():d().command(()=>{const U=p().wrapInList(k,o),I=j.filter(K=>g.includes(K.type.name));return i.ensureMarks(I),U?!0:m.clearNodes()}).wrapInList(k,o).command(()=>qc(i,k)).command(()=>Gc(i,k)).run()},toggleMark:(n,e={},t={})=>({state:o,commands:r})=>{const{extendEmptyMarkRange:i=!1}=t,a=Rn(n,o.schema);return Wc(o,a,e)?r.unsetMark(a,{extendEmptyMarkRange:i}):r.setMark(a,e)},toggleNode:(n,e,t={})=>({state:o,commands:r})=>{const i=Ke(n,o.schema),a=Ke(e,o.schema),c=Jr(o,i,t);let d;return o.selection.$anchor.sameParent(o.selection.$head)&&(d=o.selection.$anchor.parent.attrs),c?r.setNode(a,d):r.setNode(i,{...d,...t})},toggleWrap:(n,e={})=>({state:t,commands:o})=>{const r=Ke(n,t.schema);return Jr(t,r,e)?o.lift(r):o.wrapIn(r,e)},undoInputRule:()=>({state:n,dispatch:e})=>{const t=n.plugins;for(let o=0;o<t.length;o+=1){const r=t[o];let i;if(r.spec.isInputRules&&(i=r.getState(n))){if(e){const a=n.tr,c=i.transform;for(let d=c.steps.length-1;d>=0;d-=1)a.step(c.steps[d].invert(c.docs[d]));if(i.text){const d=a.doc.resolve(i.from).marks();a.replaceWith(i.from,i.to,n.schema.text(i.text,d))}else a.delete(i.from,i.to)}return!0}}return!1},unsetAllMarks:()=>({tr:n,dispatch:e})=>{const{selection:t}=n,{empty:o,ranges:r}=t;return o||e&&r.forEach(i=>{n.removeMark(i.$from.pos,i.$to.pos)}),!0},unsetMark:(n,e={})=>({tr:t,state:o,dispatch:r})=>{var i;const{extendEmptyMarkRange:a=!1}=e,{selection:c}=t,d=Rn(n,o.schema),{$from:m,empty:p,ranges:h}=c;if(!r)return!0;if(p&&a){let{from:g,to:k}=c;const b=(i=m.marks().find(S=>S.type===d))===null||i===void 0?void 0:i.attrs,$=Yc(m,d,b);$&&(g=$.from,k=$.to),t.removeMark(g,k,d)}else h.forEach(g=>{t.removeMark(g.$from.pos,g.$to.pos,d)});return t.removeStoredMark(d),!0},updateAttributes:(n,e={})=>({tr:t,state:o,dispatch:r})=>{let i=null,a=null;const c=Fs(typeof n=="string"?n:n.name,o.schema);return c?(c==="node"&&(i=Ke(n,o.schema)),c==="mark"&&(a=Rn(n,o.schema)),r&&t.selection.ranges.forEach(d=>{const m=d.$from.pos,p=d.$to.pos;let h,g,k,b;t.selection.empty?o.doc.nodesBetween(m,p,($,S)=>{i&&i===$.type&&(k=Math.max(S,m),b=Math.min(S+$.nodeSize,p),h=S,g=$)}):o.doc.nodesBetween(m,p,($,S)=>{S<m&&i&&i===$.type&&(k=Math.max(S,m),b=Math.min(S+$.nodeSize,p),h=S,g=$),S>=m&&S<=p&&(i&&i===$.type&&t.setNodeMarkup(S,void 0,{...$.attrs,...e}),a&&$.marks.length&&$.marks.forEach(N=>{if(a===N.type){const P=Math.max(S,m),L=Math.min(S+$.nodeSize,p);t.addMark(P,L,a.create({...N.attrs,...e}))}}))}),g&&(h!==void 0&&t.setNodeMarkup(h,void 0,{...g.attrs,...e}),a&&g.marks.length&&g.marks.forEach($=>{a===$.type&&t.addMark(k,b,a.create({...$.attrs,...e}))}))}),!0):!1},wrapIn:(n,e={})=>({state:t,dispatch:o})=>{const r=Ke(n,t.schema);return U$(r,e)(t,o)},wrapInList:(n,e={})=>({state:t,dispatch:o})=>{const r=Ke(n,t.schema);return H$(r,e)(t,o)}});const x1=At.create({name:"commands",addCommands(){return{...$1}}}),S1=At.create({name:"drop",addProseMirrorPlugins(){return[new dt({key:new Bt("tiptapDrop"),props:{handleDrop:(n,e,t,o)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:t,moved:o})}}})]}}),C1=At.create({name:"editable",addProseMirrorPlugins(){return[new dt({key:new Bt("editable"),props:{editable:()=>this.editor.options.editable}})]}}),E1=new Bt("focusEvents"),N1=At.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:n}=this;return[new dt({key:E1,props:{handleDOMEvents:{focus:(e,t)=>{n.isFocused=!0;const o=n.state.tr.setMeta("focus",{event:t}).setMeta("addToHistory",!1);return e.dispatch(o),!1},blur:(e,t)=>{n.isFocused=!1;const o=n.state.tr.setMeta("blur",{event:t}).setMeta("addToHistory",!1);return e.dispatch(o),!1}}}})]}}),D1=At.create({name:"keymap",addKeyboardShortcuts(){const n=()=>this.editor.commands.first(({commands:a})=>[()=>a.undoInputRule(),()=>a.command(({tr:c})=>{const{selection:d,doc:m}=c,{empty:p,$anchor:h}=d,{pos:g,parent:k}=h,b=h.parent.isTextblock&&g>0?c.doc.resolve(g-1):h,$=b.parent.type.spec.isolating,S=h.pos-h.parentOffset,N=$&&b.parent.childCount===1?S===h.pos:Ce.atStart(m).from===g;return!p||!k.type.isTextblock||k.textContent.length||!N||N&&h.parent.type.name==="paragraph"?!1:a.clearNodes()}),()=>a.deleteSelection(),()=>a.joinBackward(),()=>a.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:a})=>[()=>a.deleteSelection(),()=>a.deleteCurrentNode(),()=>a.joinForward(),()=>a.selectNodeForward()]),o={Enter:()=>this.editor.commands.first(({commands:a})=>[()=>a.newlineInCode(),()=>a.createParagraphNear(),()=>a.liftEmptyBlock(),()=>a.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:n,"Mod-Backspace":n,"Shift-Backspace":n,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},r={...o},i={...o,"Ctrl-h":n,"Alt-Backspace":n,"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 Bs()||eg()?i:r},addProseMirrorPlugins(){return[new dt({key:new Bt("clearDocument"),appendTransaction:(n,e,t)=>{if(n.some($=>$.getMeta("composition")))return;const o=n.some($=>$.docChanged)&&!e.doc.eq(t.doc),r=n.some($=>$.getMeta("preventClearDocument"));if(!o||r)return;const{empty:i,from:a,to:c}=e.selection,d=Ce.atStart(e.doc).from,m=Ce.atEnd(e.doc).to;if(i||!(a===d&&c===m)||!Us(t.doc))return;const g=t.tr,k=As({state:t,transaction:g}),{commands:b}=new Os({editor:this.editor,state:k});if(b.clearNodes(),!!g.steps.length)return g}})]}}),R1=At.create({name:"paste",addProseMirrorPlugins(){return[new dt({key:new Bt("tiptapPaste"),props:{handlePaste:(n,e,t)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:t})}}})]}}),A1=At.create({name:"tabindex",addProseMirrorPlugins(){return[new dt({key:new Bt("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});class fo{get name(){return this.node.type.name}constructor(e,t,o=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=o,this.resolvedPos=e,this.editor=t,this.currentNode=r}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){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 t=this.from,o=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}t=this.from+1,o=this.to-1}this.editor.commands.insertContentAt({from:t,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),t=this.resolvedPos.doc.resolve(e);return new fo(t,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 fo(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 fo(e,this.editor)}get children(){const e=[];return this.node.content.forEach((t,o)=>{const r=t.isBlock&&!t.isTextblock,i=t.isAtom&&!t.isText,a=this.pos+o+(i?0:1);if(a<0||a>this.resolvedPos.doc.nodeSize-2)return;const c=this.resolvedPos.doc.resolve(a);if(!r&&c.depth<=this.depth)return;const d=new fo(c,this.editor,r,r?t:null);r&&(d.actualDepth=this.depth+1),e.push(new fo(c,this.editor,r,r?t:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,t={}){let o=null,r=this.parent;for(;r&&!o;){if(r.node.type.name===e)if(Object.keys(t).length>0){const i=r.node.attrs,a=Object.keys(t);for(let c=0;c<a.length;c+=1){const d=a[c];if(i[d]!==t[d])break}}else o=r;r=r.parent}return o}querySelector(e,t={}){return this.querySelectorAll(e,t,!0)[0]||null}querySelectorAll(e,t={},o=!1){let r=[];if(!this.children||this.children.length===0)return r;const i=Object.keys(t);return this.children.forEach(a=>{o&&r.length>0||(a.node.type.name===e&&i.every(d=>t[d]===a.node.attrs[d])&&r.push(a),!(o&&r.length>0)&&(r=r.concat(a.querySelectorAll(e,t,o))))}),r}setAttribute(e){const{tr:t}=this.editor.state;t.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(t)}}const O1=`.ProseMirror {
|
|
1
|
+
(function(e){typeof define==`function`&&define.amd?define([],e):e()})(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n&&t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),u=o(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),d=o((e=>{var t=u(),n=60103,r=60106;e.Fragment=60107,e.StrictMode=60108,e.Profiler=60114;var i=60109,a=60110,o=60112;e.Suspense=60113;var s=60115,c=60116;if(typeof Symbol==`function`&&Symbol.for){var l=Symbol.for;n=l(`react.element`),r=l(`react.portal`),e.Fragment=l(`react.fragment`),e.StrictMode=l(`react.strict_mode`),e.Profiler=l(`react.profiler`),i=l(`react.provider`),a=l(`react.context`),o=l(`react.forward_ref`),e.Suspense=l(`react.suspense`),s=l(`react.memo`),c=l(`react.lazy`)}var d=typeof Symbol==`function`&&Symbol.iterator;function f(e){return typeof e!=`object`||!e?null:(e=d&&e[d]||e[`@@iterator`],typeof e==`function`?e:null)}function p(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h={};function g(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(p(85));this.updater.enqueueSetState(this,e,t,`setState`)},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function _(){}_.prototype=g.prototype;function v(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||m}var y=v.prototype=new _;y.constructor=v,t(y,g.prototype),y.isPureReactComponent=!0;var b={current:null},x=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var i,a={},o=null,s=null;if(t!=null)for(i in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=``+t.key),t)x.call(t,i)&&!S.hasOwnProperty(i)&&(a[i]=t[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:n,type:e,key:o,ref:s,props:a,_owner:b.current}}function w(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function T(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function ee(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var te=/\/+/g;function E(e,t){return typeof e==`object`&&e&&e.key!=null?ee(``+e.key):t.toString(36)}function D(e,t,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case n:case r:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+E(c,0):a,Array.isArray(o)?(i=``,e!=null&&(i=e.replace(te,`$&/`)+`/`),D(o,t,i,``,function(e){return e})):o!=null&&(T(o)&&(o=w(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(te,`$&/`)+`/`)+e)),t.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,Array.isArray(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+E(s,l);c+=D(s,t,i,u,o)}else if(u=f(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+E(s,l++),c+=D(s,t,i,u,o);else if(s===`object`)throw t=``+e,Error(p(31,t===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:t));return c}function ne(e,t,n){if(e==null)return e;var r=[],i=0;return D(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function re(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(t){e._status===0&&(t=t.default,e._status=1,e._result=t)},function(t){e._status===0&&(e._status=2,e._result=t)})}if(e._status===1)return e._result;throw e._result}var ie={current:null};function ae(){var e=ie.current;if(e===null)throw Error(p(321));return e}var oe={ReactCurrentDispatcher:ie,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:b,IsSomeRendererActing:{current:!1},assign:t};e.Children={map:ne,forEach:function(e,t,n){ne(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ne(e,function(){t++}),t},toArray:function(e){return ne(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error(p(143));return e}},e.Component=g,e.PureComponent=v,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oe,e.cloneElement=function(e,r,i){if(e==null)throw Error(p(267,e));var a=t({},e.props),o=e.key,s=e.ref,c=e._owner;if(r!=null){if(r.ref!==void 0&&(s=r.ref,c=b.current),r.key!==void 0&&(o=``+r.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in r)x.call(r,u)&&!S.hasOwnProperty(u)&&(a[u]=r[u]===void 0&&l!==void 0?l[u]:r[u])}var u=arguments.length-2;if(u===1)a.children=i;else if(1<u){l=Array(u);for(var d=0;d<u;d++)l[d]=arguments[d+2];a.children=l}return{$$typeof:n,type:e.type,key:o,ref:s,props:a,_owner:c}},e.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:a,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:i,_context:e},e.Consumer=e},e.createElement=C,e.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:o,render:e}},e.isValidElement=T,e.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:re}},e.memo=function(e,t){return{$$typeof:s,type:e,compare:t===void 0?null:t}},e.useCallback=function(e,t){return ae().useCallback(e,t)},e.useContext=function(e,t){return ae().useContext(e,t)},e.useDebugValue=function(){},e.useEffect=function(e,t){return ae().useEffect(e,t)},e.useImperativeHandle=function(e,t,n){return ae().useImperativeHandle(e,t,n)},e.useLayoutEffect=function(e,t){return ae().useLayoutEffect(e,t)},e.useMemo=function(e,t){return ae().useMemo(e,t)},e.useReducer=function(e,t,n){return ae().useReducer(e,t,n)},e.useRef=function(e){return ae().useRef(e)},e.useState=function(e){return ae().useState(e)},e.version=`17.0.2`})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{u();var t=f(),n=60103;if(e.Fragment=60107,typeof Symbol==`function`&&Symbol.for){var r=Symbol.for;n=r(`react.element`),e.Fragment=r(`react.fragment`)}var i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)a.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:i.current}}e.jsx=s,e.jsxs=s})),m=l(o(((e,t)=>{t.exports=p()}))(),1),h=({adminUrl:e,onLoad:t})=>{let n={display:`none`};return(0,m.jsx)(`iframe`,{"data-frame":`admin-auth`,src:e+`auth-frame/`,style:n,title:`auth-frame`,onLoad:t})},g=o(((e,t)=>{var n=function(e){return e instanceof RegExp},r=function(e){var t=/[\\^$.*+?()[\]{}|]/g,n=RegExp(t.source);return e&&n.test(e)?e.replace(t,`\\$&`):e},i=function(e){return typeof e==`string`},a=function(e){var t=[];return e.forEach(function(e){Array.isArray(e)?t=t.concat(e):t.push(e)}),t};function o(e,t,a,o=null){var s=0,c=0;if(e===``)return e;if(!e||!i(e))throw TypeError(`First argument to react-string-replace#replaceString must be a string`);var l=t;n(l)||(l=RegExp(`(`+r(l)+`)`,`gi`));for(var u=e.split(l),d=1,f=u.length;d<f&&!(Number.isInteger(o)&&(o*2<d||o<1));d+=2){if(u[d]===void 0||u[d-1]===void 0){console.warn(`reactStringReplace: Encountered undefined value during string replacement. Your RegExp may not be working the way you expect.`);continue}c=u[d].length,s+=u[d-1].length,u[d]=a(u[d],(d-1)/2,s),s+=c}return u}t.exports=function(e,t,s,c=null){return Array.isArray(e)||(e=[e]),a(e.map(function(e){var a;if(i(e))if(Number.isInteger(c)&&c>0){a=o(e,t,s,c);var l=n(t)?t:RegExp(`(`+r(t)+`)`,`gi`);c-=(e.match(l)||[]).length}else a=o(e,t,s,c);else a=e;return a}))}})),_=l(g(),1);let v=`ghost-comments-`;function y(e){return`#${v}${e}`}function b(){return`#ghost-comments`}function x(e){let t=RegExp(`^#${v}([a-f0-9]+)$`,`i`),n=e.match(t);return n?n[1]:null}function S(e,t){return e.find(e=>e?.id===t)||e.flatMap(e=>e.replies||[]).find(e=>e?.id===t)}function C(e){return e!==0&&!e?``:e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,`,`)}function w(e,t){let n=new Date(e),r=new Date;if(isNaN(n.getTime()))return t(`Just now`);let i=Math.round((r.getTime()-n.getTime())/1e3);if(i<60)return t(`Just now`);let a=Math.round(i/60);if(a===1)return t(`One min ago`);if(a<60)return t(`{amount} mins ago`,{amount:a});let o=Math.round(a/60);if(o===1)return t(`One hour ago`);let s=new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate())),c=new Date(Date.UTC(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate())),l=Math.floor((c.getTime()-s.getTime())/(1e3*60*60*24));if(l===1)return t(`Yesterday`);if(l>1){let e=n.getDate(),t=n.toLocaleString(`en-us`,{month:`short`});return n.getFullYear()===r.getFullYear()?`${e} ${t}`:`${e} ${t} ${n.getFullYear()}`}return t(`{amount} hrs ago`,{amount:o})}function T(e){let t=new Date(e);return`${t.toLocaleDateString(`en-us`,{day:`2-digit`})} ${t.toLocaleString(`en-us`,{month:`short`})} ${t.getFullYear()} ${(t.getHours()<10?`0`:``)+t.getHours()}:${(t.getMinutes()<10?`0`:``)+t.getMinutes()}`}function ee(e){if(!e)return``;let t=e.split(` `);return t.length===0?``:t.length===1?t[0].substring(0,1).toLocaleUpperCase():t[0].substring(0,1).toLocaleUpperCase()+t[t.length-1].substring(0,1).toLocaleUpperCase()}function te(e,t){return e?e.name?e.name:t(`Anonymous`):t(`Deleted member`)}function E(e,t){return te(e.member,t)}function D(){return Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<480}let ne=e=>{let t=0,n=e.ownerDocument.defaultView;for(;n&&n!==window;){let e=n.parent;for(let r=0;r<e.frames.length;r++)if(e.frames[r]===n){for(let r of e.document.getElementsByTagName(`iframe`))if(r.contentWindow===n){let e=r.getBoundingClientRect();t+=e.top+n.pageYOffset}n=e;break}}return e.getBoundingClientRect().top+window.pageYOffset+t};var re=e=>{let t=ne(e);return(t+(t+e.offsetHeight))/2-window.innerHeight/2};let ie=e=>{let t=e.offsetHeight,n=ne(e),r=n+t,i=window.innerHeight,a=window.scrollY,o=a+i;(n-64<a||r+64>o)&&window.scrollTo({top:re(e),left:0,behavior:`smooth`})},ae=e=>{window.scrollTo({top:re(e),left:0,behavior:`auto`})};function oe(e){let t=e.html??``,n=document.createElement(`div`);n.innerHTML=t,n.querySelectorAll(`script, style, link, meta, noscript, title`).forEach(e=>e.remove()),n.querySelectorAll(`blockquote`).forEach(e=>e.remove());let r=n.textContent||``;return r=r.replace(`
|
|
2
|
+
`,` `),r=r.replace(/\s+/g,` `),r=r.trim(),r.substring(0,100)}var O=l(f(),1);let se=O.createContext({});se.Provider;let k=()=>(0,O.useContext)(se),ce=()=>{let e=k().dispatchAction;return t=>{e(`setOrder`,{order:t})}},le=()=>{try{return k().labs||{}}catch{return{}}};var ue=({isFirst:e,isPaid:t,commentId:n})=>{let{accentColor:r,publication:i,member:a,t:o,commentCount:s}=k(),c={backgroundColor:r},l={color:r},u=o(s===0?`Start the conversation`:`Join the discussion`),d=()=>{window.location.href=t&&a?`#/portal/account/plans`:`#/portal/signup`},f=()=>{if(n){let e=new URL(window.location.href);e.hash=y(n),window.location.href=`#/portal/signin?redirect=${encodeURIComponent(e.toString())}`;return}window.location.href=`#/portal/signin`},p=(0,_.default)(o(t?`Become a paid member of {publication} to start commenting.`:`Become a member of {publication} to start commenting.`),`{publication}`,()=>(0,m.jsx)(`span`,{className:`font-semibold`,children:i}));return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`h1`,{className:`mb-[8px] text-center font-sans text-2xl tracking-tight text-black dark:text-[rgba(255,255,255,0.85)] ${e?`font-semibold`:`font-bold`}`,children:u}),(0,m.jsx)(`p`,{className:`sm:max-w-screen-sm mb-[28px] w-full px-0 text-center font-sans text-lg leading-normal text-neutral-600 dark:text-[rgba(255,255,255,0.85)] sm:px-8`,children:p}),(0,m.jsx)(`button`,{className:`mb-[12px] inline-block rounded px-5 py-[14px] font-sans text-md font-medium leading-none text-white transition-all hover:opacity-90`,"data-testid":`signup-button`,style:c,type:`button`,onClick:d,children:o(t&&a?`Upgrade now`:`Sign up now`)}),!a&&(0,m.jsxs)(`p`,{className:`text-center font-sans text-md text-[rgba(0,0,0,0.4)] dark:text-[rgba(255,255,255,0.5)]`,children:[(0,m.jsx)(`span`,{className:`mr-1 inline-block text-[15px]`,children:o(`Already a member?`)}),(0,m.jsx)(`button`,{className:`rounded-md text-sm font-semibold transition-all hover:opacity-90`,"data-testid":`signin-button`,style:l,type:`button`,onClick:f,children:o(`Sign in`)})]})]})},de=e=>(0,m.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,height:24,width:24,viewBox:`0 0 24 24`,...e,children:(0,m.jsx)(`g`,{strokeLinecap:`round`,strokeWidth:2,fill:`none`,strokeLinejoin:`round`,className:`nc-icon-wrapper`,children:(0,m.jsx)(`polygon`,{points:`7 21 2 22 3 17 18 2 22 6 7 21`})})}),A=e=>(0,m.jsx)(`svg`,{id:`loader-1`,xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,x:`0px`,y:`0px`,width:`40px`,height:`40px`,viewBox:`0 0 50 50`,style:{enableBackground:`new 0 0 50 50`},xmlSpace:`preserve`,...e,children:(0,m.jsx)(`path`,{d:`M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z`,children:(0,m.jsx)(`animateTransform`,{attributeType:`xml`,attributeName:`transform`,type:`rotate`,from:`0 25 25`,to:`360 25 25`,dur:`0.6s`,repeatCount:`indefinite`})})}),fe=e=>(0,m.jsx)(`svg`,{viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,...e,children:(0,m.jsx)(`path`,{d:`M11.55 4C13.483 4 15.05 5.567 15.05 7.5C15.05 9.433 13.483 11 11.55 11C9.617 11 8.05 9.433 8.05 7.5C8.05 5.567 9.617 4 11.55 4ZM11.55 20C9.044 20 6.757 19.067 5 17.538C5.997 14.888 8.551 13 11.55 13C14.549 13 17.103 14.888 18.1 17.538C16.343 19.066 14.056 20 11.55 20Z`,fill:`currentColor`})});function pe(){return`w-8 h-8`}let me=()=>{let e=pe();return(0,m.jsx)(`figure`,{className:`relative ${e}`,"data-testid":`blank-avatar`,children:(0,m.jsx)(`div`,{className:`flex items-center justify-center rounded-full bg-black/5 text-neutral-900/25 dark:bg-white/15 dark:text-white/30 ${e}`,children:(0,m.jsx)(fe,{className:`size-7 opacity-80`})})})},he=({member:e})=>{let{avatarSaturation:t,t:n}=k(),r=pe(),i=te(e,n),a=e=>{let t=0;for(let n=0;n<e.length;n++)t=e.charCodeAt(n)+((t<<5)-t);return t=Math.abs(t),t},o=(e,t,n)=>Math.floor(e%(n-t)+t),s=()=>{if(!i)return[0,0,10];let e=t===void 0||isNaN(t)?50:t,n=[0,360],r=Math.round(e/(100/30))+30,s=[r-20,r],c=a(i);return[o(c,n[0],n[1]),e,o(c,s[0],s[1])]},c=e=>`hsl(${e[0]}, ${e[1]}%, ${e[2]}%)`,l=ee(i),u={background:c(s())},d=(0,m.jsxs)(m.Fragment,{children:[i?(0,m.jsx)(`div`,{className:`flex items-center justify-center rounded-full ${r}`,"data-testid":`avatar-background`,style:u,children:(0,m.jsx)(`p`,{className:`font-sans text-base font-semibold text-white`,children:l})}):(0,m.jsx)(`div`,{className:`flex items-center justify-center rounded-full bg-neutral-900 dark:bg-white/70 ${r}`,"data-testid":`avatar-background`,children:(0,m.jsx)(fe,{className:`stroke-white dark:stroke-black/60`})}),e?.avatar_image&&(0,m.jsx)(`img`,{alt:`Avatar`,className:`absolute left-0 top-0 rounded-full ${r}`,"data-testid":`avatar-image`,src:e.avatar_image})]});return e?(0,m.jsx)(`figure`,{className:`relative ${r}`,"data-testid":`avatar`,children:d}):(0,m.jsx)(me,{})};function ge(e){this.content=e}ge.prototype={constructor:ge,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new ge(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new ge(n)},addToStart:function(e,t){return new ge([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new ge(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new ge(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=ge.from(e),e.size?new ge(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=ge.from(e),e.size?new ge(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=ge.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},ge.from=function(e){if(e instanceof ge)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new ge(t)};var _e=ge;function ve(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&xe(e.charCodeAt(r-1))&&be(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=ve(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}function ye(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s){n-=c,r-=c;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=o.text,t=s.text,i=e.length,a=t.length;for(;i>0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i<e.length&&xe(e.charCodeAt(i-1))&&be(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=ye(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}function be(e){return e>=56320&&e<57344}function xe(e){return e>=55296&&e<56320}var j=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return ve(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return ye(this,e,t,n)}findIndex(e){if(e==0)return Ce(0,e);if(e==this.size)return Ce(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?Ce(t+1,i):Ce(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};j.empty=new j([],0);var Se={index:0,offset:0};function Ce(e,t){return Se.index=e,Se.offset=t,Se}function we(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!we(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!we(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var M=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else !n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&we(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};M.none=[];var Te=class extends Error{},N=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=De(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(Ee(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(j.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};N.empty=new N(j.empty,0,0);function Ee(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(Ee(a.content,t-i-1,n-i-1)))}function De(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=De(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function Oe(e,t,n){if(n.openStart>e.depth)throw new Te(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new Te(`Inconsistent open depths`);return ke(e,t,n,0)}function ke(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=ke(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return Pe(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}else{let{start:i,end:o}=Le(n,e);return Pe(a,Fe(e,i,o,t,r))}else return Pe(a,Ie(e,t,r))}function Ae(e,t){if(!t.type.compatibleContent(e.type))throw new Te(`Cannot join `+t.type.name+` onto `+e.type.name)}function je(e,t,n){let r=e.node(n);return Ae(r,t.node(n)),r}function Me(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Ne(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(Me(e.nodeAfter,r),a++));for(let e=a;e<o;e++)Me(i.child(e),r);t&&t.depth==n&&t.textOffset&&Me(t.nodeBefore,r)}function Pe(e,t){if(!e.type.validContent(t))throw new Te(`Invalid content for node `+e.type.name);return e.copy(t)}function Fe(e,t,n,r,i){let a=e.depth>i&&je(e,t,i+1),o=r.depth>i&&je(n,r,i+1),s=[];return Ne(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(Ae(a,o),Me(Pe(a,Fe(e,t,n,r,i+1)),s)):(a&&Me(Pe(a,Ie(e,t,i+1)),s),Ne(t,n,i,s),o&&Me(Pe(o,Ie(n,r,i+1)),s)),Ne(r,null,i,s),new j(s)}function Ie(e,t,n){let r=[];return Ne(null,e,n,r),e.depth>n&&Me(Pe(je(e,t,n+1),Ie(e,t,n+1)),r),Ne(t,null,n,r),new j(r)}function Le(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(j.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var Re=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return M.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!r||!i[a].isInSet(r.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new He(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=Ve.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else Ve.set(t,r=new ze);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%Be,i}},ze=class{constructor(){this.elts=[],this.i=0}},Be=12,Ve=new WeakMap,He=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},Ue=Object.create(null),We=class e{constructor(e,t,n,r=M.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||j.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&we(this.attrs,t||e.defaultAttrs||Ue)&&M.sameSet(this.marks,n||M.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return N.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new N(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return Oe(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return Re.resolveCached(this,e)}resolveNoCache(e){return Re.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),Ke(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=j.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=M.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!M.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=j.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};We.prototype.text=void 0;var Ge=class e extends We{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Ke(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function Ke(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var qe=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Je(t,n);if(r.next==null)return e.empty;let i=Ye(r);r.next&&r.err(`Unexpected trailing text`);let a=at(nt(i));return ot(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return j.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!r.type||o.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
|
|
3
|
+
`)}};qe.empty=new qe(!0);var Je=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function Ye(e){let t=[];do t.push(Xe(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function Xe(e){let t=[];do t.push(Ze(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function Ze(e){let t=tt(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=$e(e,t);else break;return t}function Qe(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function $e(e,t){let n=Qe(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:Qe(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function et(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function tt(e){if(e.eat(`(`)){let t=Ye(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}else if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=et(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function nt(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t<e.min;t++){let t=n();i(a(e.expr,o),t),o=t}if(e.max==-1)i(a(e.expr,o),o);else for(let t=e.min;t<e.max;t++){let t=n();r(o,t),i(a(e.expr,o),t),o=t}return[r(o)]}else if(e.type==`name`)return[r(t,void 0,e.value)];else throw Error(`Unknown expr type`)}}function rt(e,t){return t-e}function it(e,t){let n=[];return r(t),n.sort(rt);function r(t){let i=e[t];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(t);for(let e=0;e<i.length;e++){let{term:t,to:a}=i[e];!t&&n.indexOf(a)==-1&&r(a)}}}function at(e){let t=Object.create(null);return n(it(e,0));function n(r){let i=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);it(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new qe(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(rt);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function ot(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:n,next:o}=e.next[t];a.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),r.indexOf(o)==-1&&r.push(o)}i&&t.err(`Only non-generatable nodes (`+a.join(`, `)+`) in a required position (see https://prosemirror.net/docs/guide/#generatable)`)}}function st(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function ct(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(i===void 0){let t=e[r];if(t.hasDefault)i=t.default;else throw RangeError(`No value supplied for attribute `+r)}n[r]=i}return n}function lt(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}function ut(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new pt(e,r,t[r]);return n}var dt=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(` `):[],this.attrs=ut(e,n.attrs),this.defaultAttrs=st(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e==`text`),this.isText=e==`text`}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==qe.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:ct(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new We(this,this.computeAttrs(e),j.from(t),M.setFrom(n))}createChecked(e=null,t,n){return t=j.from(t),this.checkContent(t),new We(this,this.computeAttrs(e),t,M.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=j.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(j.empty,!0);return i?new We(this,e,t.append(i),M.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){lt(this.attrs,e,`node`,this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||=e.slice(0,n);return t?t.length?t:M.none:e}static compile(t,n){let r=Object.create(null);t.forEach((t,i)=>r[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function ft(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var pt=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?ft(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},mt=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=ut(e,r.attrs),this.excluded=null;let i=st(this.attrs);this.instance=i?new M(this,i):null}create(e=null){return!e&&this.instance?this.instance:new M(this,ct(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){lt(this.attrs,e,`mark`,this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},ht=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=_e.from(e.nodes),t.marks=_e.from(e.marks||{}),this.nodes=dt.compile(this.spec.nodes,this),this.marks=mt.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=qe.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?gt(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:gt(this,n.split(` `))}this.nodeFromJSON=e=>We.fromJSON(this,e),this.markFromJSON=e=>M.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(e instanceof dt){if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`)}else throw RangeError(`Invalid node type: `+e);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new Ge(n,n.defaultAttrs,e,M.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function gt(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],o=a;if(a)n.push(a);else for(let t in e.marks){let r=e.marks[t];(i==`_`||r.spec.group&&r.spec.group.split(` `).indexOf(i)>-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}function _t(e){return e.tag!=null}function vt(e){return e.style!=null}var yt=class e{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let n=this.matchedStyles=[];t.forEach(e=>{if(_t(e))this.tags.push(e);else if(vt(e)){let t=/[^=]*/.exec(e.style)[0];n.indexOf(t)<0&&n.push(t),this.styles.push(e)}}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new Ot(this,t,!1);return n.addAll(e,M.none,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new Ot(this,t,!0);return n.addAll(e,M.none,t.from,t.to),N.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;r<this.tags.length;r++){let n=this.tags[r];if(At(e,n.tag)&&(n.namespace===void 0||e.namespaceURI==n.namespace)&&(!n.context||t.matchesContext(n.context))){if(n.getAttrs){let t=n.getAttrs(e);if(t===!1)continue;n.attrs=t||void 0}return n}}}matchStyle(e,t,n,r){for(let i=r?this.styles.indexOf(r)+1:0;i<this.styles.length;i++){let r=this.styles[i],a=r.style;if(!(a.indexOf(e)!=0||r.context&&!n.matchesContext(r.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(e===!1)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=e.priority==null?50:e.priority,r=0;for(;r<t.length;r++){let e=t[r];if((e.priority==null?50:e.priority)<n)break}t.splice(r,0,e)}for(let t in e.marks){let r=e.marks[t].spec.parseDOM;r&&r.forEach(e=>{n(e=jt(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)})}for(let t in e.nodes){let r=e.nodes[t].spec.parseDOM;r&&r.forEach(e=>{n(e=jt(e)),e.node||e.ignore||e.mark||(e.node=t)})}return t}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new e(t,e.schemaRules(t)))}},bt={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},xt={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},St={ol:!0,ul:!0},Ct=1,wt=2,Tt=4;function Et(e,t,n){return t==null?e&&e.whitespace==`pre`?Ct|wt:n&~Tt:(t?Ct:0)|(t===`full`?wt:0)}var Dt=class{constructor(e,t,n,r,i,a){this.type=e,this.attrs=t,this.marks=n,this.solid=r,this.options=a,this.content=[],this.activeMarks=M.none,this.match=i||(a&Tt?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(j.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let t=this.type.contentMatch,n;return(n=t.findWrapping(e.type))?(this.match=t,n):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&Ct)){let e=this.content[this.content.length-1],t;if(e&&e.isText&&(t=/[ \t\r\n\u000c]+$/.exec(e.text))){let n=e;e.text.length==t[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-t[0].length))}}let t=j.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(j.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!bt.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}},Ot=class{constructor(e,t,n){this.parser=e,this.options=t,this.isOpen=n,this.open=0,this.localPreserveWS=!1;let r=t.topNode,i,a=Et(null,t.preserveWhitespace,0)|(n?Tt:0);i=r?new Dt(r.type,r.attrs,M.none,!0,t.topMatch||r.type.contentMatch,a):n?new Dt(null,null,M.none,!0,null,a):new Dt(e.schema.topNodeType,null,M.none,!0,null,a),this.nodes=[i],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let n=e.nodeValue,r=this.top,i=r.options&wt?`full`:this.localPreserveWS||(r.options&Ct)>0,{schema:a}=this.parser;if(i===`full`||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(n)){if(i)if(i===`full`)n=n.replace(/\r\n?/g,`
|
|
4
|
+
`);else if(a.linebreakReplacement&&/[\r\n]/.test(n)&&this.top.findWrapping(a.linebreakReplacement.create())){let e=n.split(/\r?\n|\r/);for(let n=0;n<e.length;n++)n&&this.insertNode(a.linebreakReplacement.create(),t,!0),e[n]&&this.insertNode(a.text(e[n]),t,!/\S/.test(e[n]));n=``}else n=n.replace(/\r?\n|\r/g,` `);else if(n=n.replace(/[ \t\r\n\u000c]+/g,` `),/^[ \t\r\n\u000c]/.test(n)&&this.open==this.nodes.length-1){let t=r.content[r.content.length-1],i=e.previousSibling;(!t||i&&i.nodeName==`BR`||t.isText&&/[ \t\r\n\u000c]$/.test(t.text))&&(n=n.slice(1))}n&&this.insertNode(a.text(n),t,!/\S/.test(n)),this.findInText(e)}else this.findInside(e)}addElement(e,t,n){let r=this.localPreserveWS,i=this.top;(e.tagName==`PRE`||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let a=e.nodeName.toLowerCase(),o;St.hasOwnProperty(a)&&this.parser.normalizeLists&&kt(e);let s=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(o=this.parser.matchTag(e,this,n));out:if(s?s.ignore:xt.hasOwnProperty(a))this.findInside(e),this.ignoreFallback(e,t);else if(!s||s.skip||s.closeParent){s&&s.closeParent?this.open=Math.max(0,this.open-1):s&&s.skip.nodeType&&(e=s.skip);let n,r=this.needsBlock;if(bt.hasOwnProperty(a))i.content.length&&i.content[0].isInline&&this.open&&(this.open--,i=this.top),n=!0,i.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break out}let o=s&&s.skip?t:this.readStyles(e,t);o&&this.addAll(e,o),n&&this.sync(i),this.needsBlock=r}else{let n=this.readStyles(e,t);n&&this.addElementByRule(e,s,n,s.consuming===!1?o:void 0)}this.localPreserveWS=r}leafFallback(e,t){e.nodeName==`BR`&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
|
|
5
|
+
`),t)}ignoreFallback(e,t){e.nodeName==`BR`&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text(`-`),t,!0)}readStyles(e,t){let n=e.style;if(n&&n.length)for(let e=0;e<this.parser.matchedStyles.length;e++){let r=this.parser.matchedStyles[e],i=n.getPropertyValue(r);if(i)for(let e;;){let n=this.parser.matchStyle(r,i,this,e);if(!n)break;if(n.ignore)return null;if(t=n.clearMark?t.filter(e=>!n.clearMark(e)):t.concat(this.parser.schema.marks[n.mark].create(n.attrs)),n.consuming===!1)e=n;else break}}return t}addElementByRule(e,t,n,r){let i,a;if(t.node)if(a=this.parser.schema.nodes[t.node],a.isLeaf)this.insertNode(a.create(t.attrs),n,e.nodeName==`BR`)||this.leafFallback(e,n);else{let e=this.enter(a,t.attrs||null,n,t.preserveWhitespace);e&&(i=!0,n=e)}else{let e=this.parser.schema.marks[t.mark];n=n.concat(e.create(t.attrs))}let o=this.top;if(a&&a.isLeaf)this.findInside(e);else if(r)this.addElement(e,n,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(e=>this.insertNode(e,n,!1));else{let r=e;typeof t.contentElement==`string`?r=e.querySelector(t.contentElement):typeof t.contentElement==`function`?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r,n),this.findAround(e,r,!1)}i&&this.sync(o)&&this.open--}addAll(e,t,n,r){let i=n||0;for(let a=n?e.childNodes[n]:e.firstChild,o=r==null?null:e.childNodes[r];a!=o;a=a.nextSibling,++i)this.findAtPoint(e,i),this.addDOM(a,t);this.findAtPoint(e,i)}findPlace(e,t,n){let r,i;for(let t=this.open,a=0;t>=0;t--){let o=this.nodes[t],s=o.findWrapping(e);if(s&&(!r||r.length>s.length+a)&&(r=s,i=o,!s.length))break;if(o.solid){if(n)break;a+=2}}if(!r)return null;this.sync(i);for(let e=0;e<r.length;e++)t=this.enterInner(r[e],null,t,!1);return t}insertNode(e,t,n){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&(t=this.enterInner(e,null,t))}let r=this.findPlace(e,t,n);if(r){this.closeExtra();let t=this.top;t.match&&=t.match.matchType(e.type);let n=M.none;for(let i of r.concat(e.marks))(t.type?t.type.allowsMarkType(i.type):Mt(i.type,e.type))&&(n=i.addToSet(n));return t.content.push(e.mark(n)),!0}return!1}enter(e,t,n,r){let i=this.findPlace(e.create(t),n,!1);return i&&=this.enterInner(e,t,n,!0,r),i}enterInner(e,t,n,r=!1,i){this.closeExtra();let a=this.top;a.match=a.match&&a.match.matchType(e);let o=Et(e,i,a.options);a.options&Tt&&a.content.length==0&&(o|=Tt);let s=M.none;return n=n.filter(t=>(a.type?a.type.allowsMarkType(t.type):Mt(t.type,e))?(s=t.addToSet(s),!1):!0),this.nodes.push(new Dt(e,t,s,r,null,o)),this.open++,n}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;else this.localPreserveWS&&(this.nodes[t].options|=Ct);return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&this.find[n].offset==t&&(this.find[n].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,n){if(e!=t&&this.find)for(let r=0;r<this.find.length;r++)this.find[r].pos==null&&e.nodeType==1&&e.contains(this.find[r].node)&&t.compareDocumentPosition(this.find[r].node)&(n?2:4)&&(this.find[r].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf(`|`)>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split(`/`),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+(r?0:1),a=(e,o)=>{for(;e>=0;e--){let s=t[e];if(s==``){if(e==t.length-1||e==0)continue;for(;o>=i;o--)if(a(e-1,o))return!0;return!1}else{let e=o>0||o==0&&r?this.nodes[o].type:n&&o>=i?n.node(o-i).type:null;if(!e||e.name!=s&&!e.isInGroup(s))return!1;o--}}return!0};return a(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}};function kt(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=t.nodeType==1?t.nodeName.toLowerCase():null;e&&St.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):e==`li`?n=t:e&&(n=null)}}function At(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function jt(e){let t={};for(let n in e)t[n]=e[n];return t}function Mt(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let a=[],o=e=>{a.push(e);for(let n=0;n<e.edgeCount;n++){let{type:r,next:i}=e.edge(n);if(r==t||a.indexOf(i)<0&&o(i))return!0}};if(o(i.contentMatch))return!0}}var Nt=class e{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},n){n||=Ft(t).createDocumentFragment();let r=n,i=[];return e.forEach(e=>{if(i.length||e.marks.length){let n=0,a=0;for(;n<i.length&&a<e.marks.length;){let t=e.marks[a];if(!this.marks[t.type.name]){a++;continue}if(!t.eq(i[n][0])||t.type.spec.spanning===!1)break;n++,a++}for(;n<i.length;)r=i.pop()[1];for(;a<e.marks.length;){let n=e.marks[a++],o=this.serializeMark(n,e.isInline,t);o&&(i.push([n,r]),r.appendChild(o.dom),r=o.contentDOM||o.dom)}}r.appendChild(this.serializeNodeInner(e,t))}),n}serializeNodeInner(e,t){if(e.isText)return Ft(t).createTextNode(e.text);let{dom:n,contentDOM:r}=zt(Ft(t),this.nodes[e.type.name](e),null,e.attrs);if(r){if(e.isLeaf)throw RangeError(`Content hole not allowed in a leaf node spec`);this.serializeFragment(e.content,t,r)}return n}serializeNode(e,t={}){let n=this.serializeNodeInner(e,t);for(let r=e.marks.length-1;r>=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&zt(Ft(n),r(e,t),null,e.attrs)}static renderSpec(e,t,n=null,r){return typeof t==`string`?{dom:e.createTextNode(t)}:zt(e,t,n,r)}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new e(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(e){let t=Pt(e.nodes);return t.text||=e=>e.text,t}static marksFromSchema(e){return Pt(e.marks)}};function Pt(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function Ft(e){return e.document||window.document}var It=new WeakMap;function Lt(e){let t=It.get(e);return t===void 0&&It.set(e,t=Rt(e)),t}function Rt(e){let t=null;function n(e){if(e&&typeof e==`object`)if(Array.isArray(e))if(typeof e[0]==`string`)t||=[],t.push(e);else for(let t=0;t<e.length;t++)n(e[t]);else for(let t in e)n(e[t])}return n(e),t}function zt(e,t,n,r){if(t.nodeType==1)return{dom:t};if(t.dom&&t.dom.nodeType==1)return t;let i=t[0],a;if(typeof i!=`string`)throw RangeError(`Invalid array passed to renderSpec`);if(r&&(a=Lt(r))&&a.indexOf(t)>-1)throw RangeError(`Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.`);let o=i.indexOf(` `);o>0&&(n=i.slice(0,o),i=i.slice(o+1));let s,c=n?e.createElementNS(n,i):e.createElement(i),l=t[1],u=1;if(l&&typeof l==`object`&&l.nodeType==null&&!Array.isArray(l)){for(let e in u=2,l)if(l[e]!=null){let t=e.indexOf(` `);t>0?c.setAttributeNS(e.slice(0,t),e.slice(t+1),l[e]):e==`style`&&c.style?c.style.cssText=l[e]:c.setAttribute(e,l[e])}}for(let i=u;i<t.length;i++){let a=t[i];if(a===0){if(i<t.length-1||i>u)throw RangeError(`Content hole must be the only child of its parent node`);return{dom:c,contentDOM:c}}else if(typeof a==`string`)c.appendChild(e.createTextNode(a));else{let{dom:t,contentDOM:i}=zt(e,a,n,r);if(c.appendChild(t),i){if(s)throw RangeError(`Multiple content holes`);s=i}}}return{dom:c,contentDOM:s}}var Bt=65535,Vt=2**16;function Ht(e,t){return e+t*Vt}function Ut(e){return e&Bt}function Wt(e){return(e-(e&Bt))/Vt}var Gt=1,Kt=2,qt=4,Jt=8,Yt=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&Jt)>0}get deletedBefore(){return(this.delInfo&(Gt|qt))>0}get deletedAfter(){return(this.delInfo&(Kt|qt))>0}get deletedAcross(){return(this.delInfo&qt)>0}},Xt=class e{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}recover(e){let t=0,n=Ut(e);if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[e*3+2]-this.ranges[e*3+1];return this.ranges[n*3]+t+Wt(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let s=this.ranges[o]-(this.inverted?r:0);if(s>e)break;let c=this.ranges[o+i],l=this.ranges[o+a],u=s+c;if(e<=u){let i=c?e==s?-1:e==u?1:t:t,a=s+r+(i<0?0:l);if(n)return a;let d=e==(t<0?s:u)?null:Ht(o/3,e-s),f=e==s?Kt:e==u?Gt:qt;return(t<0?e!=s:e!=u)&&(f|=Jt),new Yt(a,f,d)}r+=l-c}return n?e+r:new Yt(e+r,0,null)}touches(e,t){let n=0,r=Ut(t),i=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?n:0);if(o>e)break;let s=this.ranges[t+i];if(e<=o+s&&t==r*3)return!0;n+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let a=this.ranges[r],o=a-(this.inverted?i:0),s=a+(this.inverted?0:i),c=this.ranges[r+t],l=this.ranges[r+n];e(o,o+c,s,s+l),i+=l-c}}invert(){return new e(this.ranges,!this.inverted)}toString(){return(this.inverted?`-`:``)+JSON.stringify(this.ranges)}static offset(t){return t==0?e.empty:new e(t<0?[0,-t,0]:[0,0,t])}};Xt.empty=new Xt([]);var Zt=class e{constructor(e,t,n=0,r=e?e.length:0){this.mirror=t,this.from=n,this.to=r,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(t=0,n=this.maps.length){return new e(this._maps,this.mirror,t,n)}appendMap(e,t){this.ownData||=(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,n=this._maps.length;t<e._maps.length;t++){let r=e.getMirror(t);this.appendMap(e._maps[t],r!=null&&r<t?n+r:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||=[],this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,n=this._maps.length+e._maps.length;t>=0;t--){let r=e.getMirror(t);this.appendMap(e._maps[t].invert(),r!=null&&r>t?n-r-1:void 0)}}invert(){let t=new e;return t.appendMappingInverted(this),t}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;n<this.to;n++)e=this._maps[n].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,n){let r=0;for(let n=this.from;n<this.to;n++){let i=this._maps[n].mapResult(e,t);if(i.recover!=null){let t=this.getMirror(n);if(t!=null&&t>n&&t<this.to){n=t,e=this._maps[t].recover(i.recover);continue}}r|=i.delInfo,e=i.pos}return n?e:new Yt(e,r,null)}},Qt=Object.create(null),$t=class{getMap(){return Xt.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError(`Invalid input for Step.fromJSON`);let n=Qt[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Qt)throw RangeError(`Duplicate use of step JSON ID `+e);return Qt[e]=t,t.prototype.jsonID=e,t}},en=class e{constructor(e,t){this.doc=e,this.failed=t}static ok(t){return new e(t,null)}static fail(t){return new e(null,t)}static fromReplace(t,n,r,i){try{return e.ok(t.replace(n,r,i))}catch(t){if(t instanceof Te)return e.fail(t.message);throw t}}};function tn(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(tn(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return j.fromArray(r)}var nn=class e extends $t{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new N(tn(t.content,(e,t)=>!e.isAtom||!t.type.allowsMarkType(this.mark.type)?e:e.mark(this.mark.addToSet(e.marks)),r),t.openStart,t.openEnd);return en.fromReplace(e,this.from,this.to,i)}invert(){return new rn(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`addMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for AddMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};$t.jsonID(`addMark`,nn);var rn=class e extends $t{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new N(tn(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return en.fromReplace(e,this.from,this.to,n)}invert(){return new nn(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`removeMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for RemoveMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};$t.jsonID(`removeMark`,rn);var an=class e extends $t{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return en.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return en.fromReplace(e,this.pos,this.pos+1,new N(j.from(n),0,t.isLeaf?0:1))}invert(t){let n=t.nodeAt(this.pos);if(n){let t=this.mark.addToSet(n.marks);if(t.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(t))return new e(this.pos,n.marks[r]);return new e(this.pos,this.mark)}}return new on(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`addNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for AddNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};$t.jsonID(`addNodeMark`,an);var on=class e extends $t{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return en.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return en.fromReplace(e,this.pos,this.pos+1,new N(j.from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new an(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`removeNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for RemoveNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};$t.jsonID(`removeNodeMark`,on);var sn=class e extends $t{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&ln(e,this.from,this.to)?en.fail(`Structure replace would overwrite content`):en.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Xt([this.from,this.to-this.from,this.slice.size])}invert(t){return new e(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.to,-1),r=this.from==this.to&&e.MAP_BIAS<0?n:t.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new e(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof e)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?N.empty:new N(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new e(this.from,this.to+(t.to-t.from),n,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?N.empty:new N(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new e(t.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:`replace`,from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for ReplaceStep.fromJSON`);return new e(n.from,n.to,N.fromJSON(t,n.slice),!!n.structure)}};sn.MAP_BIAS=1,$t.jsonID(`replace`,sn);var cn=class e extends $t{constructor(e,t,n,r,i,a,o=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=a,this.structure=o}apply(e){if(this.structure&&(ln(e,this.from,this.gapFrom)||ln(e,this.gapTo,this.to)))return en.fail(`Structure gap-replace would overwrite content`);let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return en.fail(`Gap is not a flat range`);let n=this.slice.insertAt(this.insert,t.content);return n?en.fromReplace(e,this.from,this.to,n):en.fail(`Content does not fit in gap`)}getMap(){return new Xt([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new e(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),a=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||a>r.pos?null:new e(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:`replaceAround`,from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`||typeof n.gapFrom!=`number`||typeof n.gapTo!=`number`||typeof n.insert!=`number`)throw RangeError(`Invalid input for ReplaceAroundStep.fromJSON`);return new e(n.from,n.to,n.gapFrom,n.gapTo,N.fromJSON(t,n.slice),n.insert,!!n.structure)}};$t.jsonID(`replaceAround`,cn);function ln(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let e=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function un(e,t,n,r){let i=[],a=[],o,s;e.doc.nodesBetween(t,n,(e,c,l)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&l.type.allowsMarkType(r.type)){let l=Math.max(c,t),d=Math.min(c+e.nodeSize,n),f=r.addToSet(u);for(let e=0;e<u.length;e++)u[e].isInSet(f)||(o&&o.to==l&&o.mark.eq(u[e])?o.to=d:i.push(o=new rn(l,d,u[e])));s&&s.to==l?s.to=d:a.push(s=new nn(l,d,r))}}),i.forEach(t=>e.step(t)),a.forEach(t=>e.step(t))}function P(e,t,n,r){let i=[],a=0;e.doc.nodesBetween(t,n,(e,o)=>{if(!e.isInline)return;a++;let s=null;if(r instanceof mt){let t=e.marks,n;for(;n=r.isInSet(t);)(s||=[]).push(n),t=n.removeFromSet(t)}else r?r.isInSet(e.marks)&&(s=[r]):s=e.marks;if(s&&s.length){let r=Math.min(o+e.nodeSize,n);for(let e=0;e<s.length;e++){let n=s[e],c;for(let e=0;e<i.length;e++){let t=i[e];t.step==a-1&&n.eq(i[e].style)&&(c=t)}c?(c.to=r,c.step=a):i.push({style:n,from:Math.max(o,t),to:r,step:a})}}}),i.forEach(t=>e.step(new rn(t.from,t.to,t.style)))}function dn(e,t,n,r=n.contentMatch,i=!0){let a=e.doc.nodeAt(t),o=[],s=t+1;for(let t=0;t<a.childCount;t++){let c=a.child(t),l=s+c.nodeSize,u=r.matchType(c.type);if(!u)o.push(new sn(s,l,N.empty));else{r=u;for(let t=0;t<c.marks.length;t++)n.allowsMarkType(c.marks[t].type)||e.step(new rn(s,l,c.marks[t]));if(i&&c.isText&&n.whitespace!=`pre`){let e,t=/\r?\n|\r/g,r;for(;e=t.exec(c.text);)r||=new N(j.from(n.schema.text(` `,n.allowedMarks(c.marks))),0,0),o.push(new sn(s+e.index,s+e.index+e[0].length,r))}}s=l}if(!r.validEnd){let t=r.fillBefore(j.empty,!0);e.replace(s,s,new N(t,0,0))}for(let t=o.length-1;t>=0;t--)e.step(o[t])}function fn(e,t,n){return(t==0||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function pn(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,r=0,i=0;;--n){let a=e.$from.node(n),o=e.$from.index(n)+r,s=e.$to.indexAfter(n)-i;if(n<e.depth&&a.canReplace(o,s,t))return n;if(n==0||a.type.spec.isolating||!fn(a,o,s))break;o&&(r=1),s<a.childCount&&(i=1)}return null}function mn(e,t,n){let{$from:r,$to:i,depth:a}=t,o=r.before(a+1),s=i.after(a+1),c=o,l=s,u=j.empty,d=0;for(let e=a,t=!1;e>n;e--)t||r.index(e)>0?(t=!0,u=j.from(r.node(e).copy(u)),d++):c--;let f=j.empty,p=0;for(let e=a,t=!1;e>n;e--)t||i.after(e+1)<i.end(e)?(t=!0,f=j.from(i.node(e).copy(f)),p++):l++;e.step(new cn(c,l,o,s,new N(u.append(f),d,p),u.size-d,!0))}function hn(e,t,n=null,r=e){let i=_n(e,t),a=i&&vn(r,t);return a?i.map(gn).concat({type:t,attrs:n}).concat(a.map(gn)):null}function gn(e){return{type:e,attrs:null}}function _n(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.contentMatchAt(r).findWrapping(t);if(!a)return null;let o=a.length?a[0]:t;return n.canReplaceWith(r,i,o)?a:null}function vn(e,t){let{parent:n,startIndex:r,endIndex:i}=e,a=n.child(r),o=t.contentMatch.findWrapping(a.type);if(!o)return null;let s=(o.length?o[o.length-1]:t).contentMatch;for(let e=r;s&&e<i;e++)s=s.matchType(n.child(e).type);return!s||!s.validEnd?null:o}function yn(e,t,n){let r=j.empty;for(let e=n.length-1;e>=0;e--){if(r.size){let t=n[e].type.contentMatch.matchFragment(r);if(!t||!t.validEnd)throw RangeError(`Wrapper type given to Transform.wrap does not form valid content of its parent wrapper`)}r=j.from(n[e].type.create(n[e].attrs,r))}let i=t.start,a=t.end;e.step(new cn(i,a,i,a,new N(r,0,0),n.length,!0))}function bn(e,t,n,r,i){if(!r.isTextblock)throw RangeError(`Type given to setBlockType should be a textblock`);let a=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{let o=typeof i==`function`?i(t):i;if(t.isTextblock&&!t.hasMarkup(r,o)&&Cn(e.doc,e.mapping.slice(a).map(n),r)){let i=null;if(r.schema.linebreakReplacement){let e=r.whitespace==`pre`,t=!!r.contentMatch.matchType(r.schema.linebreakReplacement);e&&!t?i=!1:!e&&t&&(i=!0)}i===!1&&Sn(e,t,n,a),dn(e,e.mapping.slice(a).map(n,1),r,void 0,i===null);let s=e.mapping.slice(a),c=s.map(n,1),l=s.map(n+t.nodeSize,1);return e.step(new cn(c,l,c+1,l-1,new N(j.from(r.create(o,null,t.marks)),0,0),1,!0)),i===!0&&xn(e,t,n,a),!1}})}function xn(e,t,n,r){t.forEach((i,a)=>{if(i.isText){let o,s=/\r?\n|\r/g;for(;o=s.exec(i.text);){let i=e.mapping.slice(r).map(n+1+a+o.index);e.replaceWith(i,i+1,t.type.schema.linebreakReplacement.create())}}})}function Sn(e,t,n,r){t.forEach((i,a)=>{if(i.type==i.type.schema.linebreakReplacement){let i=e.mapping.slice(r).map(n+1+a);e.replaceWith(i,i+1,t.type.schema.text(`
|
|
6
|
+
`))}})}function Cn(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function wn(e,t,n,r,i){let a=e.doc.nodeAt(t);if(!a)throw RangeError(`No node at given position`);n||=a.type;let o=n.create(r,null,i||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,o);if(!n.validContent(a.content))throw RangeError(`Invalid content for node type `+n.name);e.step(new cn(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new N(j.from(o),0,0),1,!0))}function Tn(e,t,n=1,r){let i=e.resolve(t),a=i.depth-n,o=r&&r[r.length-1]||i.parent;if(a<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!o.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let e=i.depth-1,t=n-2;e>a;e--,t--){let n=i.node(e),a=i.index(e);if(n.type.spec.isolating)return!1;let o=n.content.cutByIndex(a,n.childCount),s=r&&r[t+1];s&&(o=o.replaceChild(0,s.type.create(s.attrs)));let c=r&&r[t]||n;if(!n.canReplace(a+1,n.childCount)||!c.type.validContent(o))return!1}let s=i.indexAfter(a),c=r&&r[0];return i.node(a).canReplaceWith(s,s,c?c.type:i.node(a+1).type)}function En(e,t,n=1,r){let i=e.doc.resolve(t),a=j.empty,o=j.empty;for(let e=i.depth,t=i.depth-n,s=n-1;e>t;e--,s--){a=j.from(i.node(e).copy(a));let t=r&&r[s];o=j.from(t?t.type.create(t.attrs,o):i.node(e).copy(o))}e.step(new sn(t,t,new N(a.append(o),n,n),!0))}function Dn(e,t){let n=e.resolve(t),r=n.index();return kn(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function On(e,t){t.content.size||e.type.compatibleContent(t.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:r}=e.type.schema;for(let i=0;i<t.childCount;i++){let a=t.child(i),o=a.type==r?e.type.schema.nodes.text:a.type;if(n=n.matchType(o),!n||!e.type.allowsMarks(a.marks))return!1}return n.validEnd}function kn(e,t){return!!(e&&t&&!e.isLeaf&&On(e,t))}function An(e,t,n=-1){let r=e.resolve(t);for(let e=r.depth;;e--){let i,a,o=r.index(e);if(e==r.depth?(i=r.nodeBefore,a=r.nodeAfter):n>0?(i=r.node(e+1),o++,a=r.node(e).maybeChild(o)):(i=r.node(e).maybeChild(o-1),a=r.node(e+1)),i&&!i.isTextblock&&kn(i,a)&&r.node(e).canReplace(o,o+1))return t;if(e==0)break;t=n<0?r.before(e):r.after(e)}}function jn(e,t,n){let r=null,{linebreakReplacement:i}=e.doc.type.schema,a=e.doc.resolve(t-n),o=a.node().type;if(i&&o.inlineContent){let e=o.whitespace==`pre`,t=!!o.contentMatch.matchType(i);e&&!t?r=!1:!e&&t&&(r=!0)}let s=e.steps.length;if(r===!1){let r=e.doc.resolve(t+n);Sn(e,r.node(),r.before(),s)}o.inlineContent&&dn(e,t+n-1,o,a.node().contentMatchAt(a.index()),r==null);let c=e.mapping.slice(s),l=c.map(t-n);if(e.step(new sn(l,c.map(t+n,-1),N.empty,!0)),r===!0){let t=e.doc.resolve(l);xn(e,t.node(),t.before(),e.steps.length)}return e}function Mn(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(r.parentOffset==0)for(let e=r.depth-1;e>=0;e--){let t=r.index(e);if(r.node(e).canReplaceWith(t,t,n))return r.before(e+1);if(t>0)return null}if(r.parentOffset==r.parent.content.size)for(let e=r.depth-1;e>=0;e--){let t=r.indexAfter(e);if(r.node(e).canReplaceWith(t,t,n))return r.after(e+1);if(t<r.node(e).childCount)return null}return null}function Nn(e,t,n){let r=e.resolve(t);if(!n.content.size)return t;let i=n.content;for(let e=0;e<n.openStart;e++)i=i.firstChild.content;for(let e=1;e<=(n.openStart==0&&n.size?2:1);e++)for(let t=r.depth;t>=0;t--){let n=t==r.depth?0:r.pos<=(r.start(t+1)+r.end(t+1))/2?-1:1,a=r.index(t)+(n>0?1:0),o=r.node(t),s=!1;if(e==1)s=o.canReplace(a,a,i);else{let e=o.contentMatchAt(a).findWrapping(i.firstChild.type);s=e&&o.canReplaceWith(a,a,e[0])}if(s)return n==0?r.pos:n<0?r.before(t+1):r.after(t+1)}return null}function Pn(e,t,n=t,r=N.empty){if(t==n&&!r.size)return null;let i=e.resolve(t),a=e.resolve(n);return Fn(i,a,r)?new sn(t,n,r):new In(i,a,r).fit()}function Fn(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}var In=class{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=j.empty;for(let t=0;t<=e.depth;t++){let n=e.node(t);this.frontier.push({type:n.type,match:n.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=j.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,r=this.close(e<0?this.$to:n.doc.resolve(e));if(!r)return null;let i=this.placed,a=n.depth,o=r.depth;for(;a&&o&&i.childCount==1;)i=i.firstChild.content,a--,o--;let s=new N(i,a,o);return e>-1?new cn(n.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||n.pos!=this.$to.pos?new sn(n.pos,r.pos,s):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,n=0,r=this.unplaced.openEnd;n<e;n++){let i=t.firstChild;if(t.childCount>1&&(r=0),i.type.spec.isolating&&r<=n){e=n;break}t=i.content}for(let t=1;t<=2;t++)for(let n=t==1?e:this.unplaced.openStart;n>=0;n--){let e,r=null;n?(r=zn(this.unplaced.content,n-1).firstChild,e=r.content):e=this.unplaced.content;let i=e.firstChild;for(let e=this.depth;e>=0;e--){let{type:a,match:o}=this.frontier[e],s,c=null;if(t==1&&(i?o.matchType(i.type)||(c=o.fillBefore(j.from(i),!1)):r&&a.compatibleContent(r.type)))return{sliceDepth:n,frontierDepth:e,parent:r,inject:c};if(t==2&&i&&(s=o.findWrapping(i.type)))return{sliceDepth:n,frontierDepth:e,parent:r,wrap:s};if(r&&o.matchType(r.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=zn(e,t);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new N(e,t+1,Math.max(n,r.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,r=zn(e,t);if(r.childCount<=1&&t>0){let i=e.size-t<=t+r.size;this.unplaced=new N(Ln(e,t-1,1),t-1,i?t-1:n)}else this.unplaced=new N(Ln(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:r,wrap:i}){for(;this.depth>t;)this.closeFrontierNode();if(i)for(let e=0;e<i.length;e++)this.openFrontierNode(i[e]);let a=this.unplaced,o=n?n.content:a.content,s=a.openStart-e,c=0,l=[],{match:u,type:d}=this.frontier[t];if(r){for(let e=0;e<r.childCount;e++)l.push(r.child(e));u=u.matchFragment(r)}let f=o.size+e-(a.content.size-a.openEnd);for(;c<o.childCount;){let e=o.child(c),t=u.matchType(e.type);if(!t)break;c++,(c>1||s==0||e.content.size)&&(u=t,l.push(Bn(e.mark(d.allowedMarks(e.marks)),c==1?s:0,c==o.childCount?f:-1)))}let p=c==o.childCount;p||(f=-1),this.placed=Rn(this.placed,t,j.from(l)),this.frontier[t].match=u,p&&f<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=o;e<f;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=p?e==0?N.empty:new N(Ln(a.content,e-1,1),e-1,f<0?a.openEnd:e-1):new N(Ln(a.content,e,c),a.openStart,a.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!Vn(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:n}=this.$to,r=this.$to.after(n);for(;n>1&&r==this.$to.end(--n);)++r;return r}findCloseLevel(e){scan:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],i=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),a=Vn(e,t,r,n,i);if(a){for(let n=t-1;n>=0;n--){let{match:t,type:r}=this.frontier[n],i=Vn(e,n,r,t,!0);if(!i||i.childCount)continue scan}return{depth:t,fit:a,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=Rn(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let r=this.frontier[this.depth];r.match=r.match.matchType(e),this.placed=Rn(this.placed,this.depth,j.from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(j.empty,!0);e.childCount&&(this.placed=Rn(this.placed,this.frontier.length,e))}};function Ln(e,t,n){return t==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(Ln(e.firstChild.content,t-1,n)))}function Rn(e,t,n){return t==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(Rn(e.lastChild.content,t-1,n)))}function zn(e,t){for(let n=0;n<t;n++)e=e.firstChild.content;return e}function Bn(e,t,n){if(t<=0)return e;let r=e.content;return t>1&&(r=r.replaceChild(0,Bn(r.firstChild,t-1,r.childCount==1?n-1:0))),t>0&&(r=e.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(e.type.contentMatch.matchFragment(r).fillBefore(j.empty,!0)))),e.copy(r)}function Vn(e,t,n,r,i){let a=e.node(t),o=i?e.indexAfter(t):e.index(t);if(o==a.childCount&&!n.compatibleContent(a.type))return null;let s=r.fillBefore(a.content,!0,o);return s&&!Hn(n,a.content,o)?s:null}function Hn(e,t,n){for(let r=n;r<t.childCount;r++)if(!e.allowsMarks(t.child(r).marks))return!0;return!1}function Un(e){return e.spec.defining||e.spec.definingForContent}function Wn(e,t,n,r){if(!r.size)return e.deleteRange(t,n);let i=e.doc.resolve(t),a=e.doc.resolve(n);if(Fn(i,a,r))return e.step(new sn(t,n,r));let o=Jn(i,a);o[o.length-1]==0&&o.pop();let s=-(i.depth+1);o.unshift(s);for(let e=i.depth,t=i.pos-1;e>0;e--,t--){let n=i.node(e).type.spec;if(n.defining||n.definingAsContext||n.isolating)break;o.indexOf(e)>-1?s=e:i.before(e)==t&&o.splice(1,0,-e)}let c=o.indexOf(s),l=[],u=r.openStart;for(let e=r.content,t=0;;t++){let n=e.firstChild;if(l.push(n),t==r.openStart)break;e=n.content}for(let e=u-1;e>=0;e--){let t=l[e],n=Un(t.type);if(n&&!t.sameMarkup(i.node(Math.abs(s)-1)))u=e;else if(n||!t.type.isTextblock)break}for(let t=r.openStart;t>=0;t--){let s=(t+u+1)%(r.openStart+1),d=l[s];if(d)for(let t=0;t<o.length;t++){let l=o[(t+c)%o.length],u=!0;l<0&&(u=!1,l=-l);let f=i.node(l-1),p=i.index(l-1);if(f.canReplaceWith(p,p,d.type,d.marks))return e.replace(i.before(l),u?a.after(l):n,new N(Gn(r.content,0,r.openStart,s),s,r.openEnd))}}let d=e.steps.length;for(let s=o.length-1;s>=0&&(e.replace(t,n,r),!(e.steps.length>d));s--){let e=o[s];e<0||(t=i.before(e),n=a.after(e))}}function Gn(e,t,n,r,i){if(t<n){let i=e.firstChild;e=e.replaceChild(0,i.copy(Gn(i.content,t+1,n,r,i)))}if(t>r){let t=i.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(j.empty,!0))}return e}function Kn(e,t,n,r){if(!r.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let i=Mn(e.doc,t,r.type);i!=null&&(t=n=i)}e.replaceRange(t,n,new N(j.from(r),0,0))}function qn(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n);if(r.parent.isTextblock&&i.parent.isTextblock&&r.start()!=i.start()&&r.parentOffset==0&&i.parentOffset==0){let a=r.sharedDepth(n),o=!1;for(let e=r.depth;e>a;e--)r.node(e).type.spec.isolating&&(o=!0);for(let e=i.depth;e>a;e--)i.node(e).type.spec.isolating&&(o=!0);if(!o){for(let e=r.depth;e>0&&t==r.start(e);e--)t=r.before(e);for(let e=i.depth;e>0&&n==i.start(e);e--)n=i.before(e);r=e.doc.resolve(t),i=e.doc.resolve(n)}}let a=Jn(r,i);for(let t=0;t<a.length;t++){let n=a[t],o=t==a.length-1;if(o&&n==0||r.node(n).type.contentMatch.validEnd)return e.delete(r.start(n),i.end(n));if(n>0&&(o||r.node(n-1).canReplace(r.index(n-1),i.indexAfter(n-1))))return e.delete(r.before(n),i.after(n))}for(let a=1;a<=r.depth&&a<=i.depth;a++)if(t-r.start(a)==r.depth-a&&n>r.end(a)&&i.end(a)-n!=i.depth-a&&r.start(a-1)==i.start(a-1)&&r.node(a-1).canReplace(r.index(a-1),i.index(a-1)))return e.delete(r.before(a),n);e.delete(t,n)}function Jn(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let r=e.start(i);if(r<e.pos-(e.depth-i)||t.end(i)>t.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(r==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==r-1)&&n.push(i)}return n}var Yn=class e extends $t{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return en.fail(`No node at attribute step's position`);let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let r=t.type.create(n,null,t.marks);return en.fromReplace(e,this.pos,this.pos+1,new N(j.from(r),0,t.isLeaf?0:1))}getMap(){return Xt.empty}invert(t){return new e(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.attr,this.value)}toJSON(){return{stepType:`attr`,pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!=`number`||typeof n.attr!=`string`)throw RangeError(`Invalid input for AttrStep.fromJSON`);return new e(n.pos,n.attr,n.value)}};$t.jsonID(`attr`,Yn);var Xn=class e extends $t{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return en.ok(n)}getMap(){return Xt.empty}invert(t){return new e(this.attr,t.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:`docAttr`,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!=`string`)throw RangeError(`Invalid input for DocAttrStep.fromJSON`);return new e(n.attr,n.value)}};$t.jsonID(`docAttr`,Xn);var Zn=class extends Error{};Zn=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},Zn.prototype=Object.create(Error.prototype),Zn.prototype.constructor=Zn,Zn.prototype.name=`TransformError`;var Qn=class{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Zt}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new Zn(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,t=-1e9;for(let n=0;n<this.mapping.maps.length;n++){let r=this.mapping.maps[n];n&&(e=r.map(e,1),t=r.map(t,-1)),r.forEach((n,r,i,a)=>{e=Math.min(e,i),t=Math.max(t,a)})}return e==1e9?null:{from:e,to:t}}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=N.empty){let r=Pn(this.doc,e,t,n);return r&&this.step(r),this}replaceWith(e,t,n){return this.replace(e,t,new N(j.from(n),0,0))}delete(e,t){return this.replace(e,t,N.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return Wn(this,e,t,n),this}replaceRangeWith(e,t,n){return Kn(this,e,t,n),this}deleteRange(e,t){return qn(this,e,t),this}lift(e,t){return mn(this,e,t),this}join(e,t=1){return jn(this,e,t),this}wrap(e,t){return yn(this,e,t),this}setBlockType(e,t=e,n,r=null){return bn(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r){return wn(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new Yn(e,t,n)),this}setDocAttribute(e,t){return this.step(new Xn(e,t)),this}addNodeMark(e,t){return this.step(new an(e,t)),this}removeNodeMark(e,t){let n=this.doc.nodeAt(e);if(!n)throw RangeError(`No node at position `+e);if(t instanceof M)t.isInSet(n.marks)&&this.step(new on(e,t));else{let r=n.marks,i,a=[];for(;i=t.isInSet(r);)a.push(new on(e,i)),r=i.removeFromSet(r);for(let e=a.length-1;e>=0;e--)this.step(a[e])}return this}split(e,t=1,n){return En(this,e,t,n),this}addMark(e,t,n){return un(this,e,t,n),this}removeMark(e,t,n){return P(this,e,t,n),this}clearIncompatible(e,t,n){return dn(this,e,t,n),this}},$n=Object.create(null),F=class{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new er(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=N.empty){let n=t.content.lastChild,r=null;for(let e=0;e<t.openEnd;e++)r=n,n=n.lastChild;let i=e.steps.length,a=this.ranges;for(let o=0;o<a.length;o++){let{$from:s,$to:c}=a[o],l=e.mapping.slice(i);e.replaceRange(l.map(s.pos),l.map(c.pos),o?N.empty:t),o==0&&cr(e,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:a,$to:o}=r[i],s=e.mapping.slice(n),c=s.map(a.pos),l=s.map(o.pos);i?e.deleteRange(c,l):(e.replaceRangeWith(c,l,t),cr(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new I(e):sr(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let r=e.depth-1;r>=0;r--){let i=t<0?sr(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):sr(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(i)return i}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new ar(e.node(0))}static atStart(e){return sr(e,e,0,0,1)||new ar(e)}static atEnd(e){return sr(e,e,e.content.size,e.childCount,-1)||new ar(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError(`Invalid input for Selection.fromJSON`);let n=$n[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in $n)throw RangeError(`Duplicate use of selection JSON ID `+e);return $n[e]=t,t.prototype.jsonID=e,t}getBookmark(){return I.between(this.$anchor,this.$head).getBookmark()}};F.prototype.visible=!0;var er=class{constructor(e,t){this.$from=e,this.$to=t}},tr=!1;function nr(e){!tr&&!e.parent.inlineContent&&(tr=!0,console.warn(`TextSelection endpoint not pointing into a node with inline content (`+e.parent.type.name+`)`))}var I=class e extends F{constructor(e,t=e){nr(e),nr(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return F.near(r);let i=t.resolve(n.map(this.anchor));return new e(i.parent.inlineContent?i:r,r)}replace(e,t=N.empty){if(super.replace(e,t),t==N.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(t){return t instanceof e&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new rr(this.anchor,this.head)}toJSON(){return{type:`text`,anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!=`number`||typeof n.head!=`number`)throw RangeError(`Invalid input for TextSelection.fromJSON`);return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(t,n,r){let i=t.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let e=F.findFrom(n,r,!0)||F.findFrom(n,-r,!0);if(e)n=e.$head;else return F.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(F.findFrom(t,-r,!0)||F.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=i<0&&(t=n))),new e(t,n)}};F.jsonID(`text`,I);var rr=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){return I.between(e.resolve(this.anchor),e.resolve(this.head))}},L=class e extends F{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(t,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),a=t.resolve(i);return r?F.near(a):new e(a)}content(){return new N(j.from(this.node),0,0)}eq(t){return t instanceof e&&t.anchor==this.anchor}toJSON(){return{type:`node`,anchor:this.anchor}}getBookmark(){return new ir(this.anchor)}static fromJSON(t,n){if(typeof n.anchor!=`number`)throw RangeError(`Invalid input for NodeSelection.fromJSON`);return new e(t.resolve(n.anchor))}static create(t,n){return new e(t.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}};L.prototype.visible=!1,F.jsonID(`node`,L);var ir=class e{constructor(e){this.anchor=e}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new rr(r,r):new e(r)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&L.isSelectable(n)?new L(t):F.near(t)}},ar=class e extends F{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=N.empty){if(t==N.empty){e.delete(0,e.doc.content.size);let t=F.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:`all`}}static fromJSON(t){return new e(t)}map(t){return new e(t)}eq(t){return t instanceof e}getBookmark(){return or}};F.jsonID(`all`,ar);var or={map(){return this},resolve(e){return new ar(e)}};function sr(e,t,n,r,i,a=!1){if(t.inlineContent)return I.create(e,n);for(let o=r-(i>0?0:1);i>0?o<t.childCount:o>=0;o+=i){let r=t.child(o);if(r.isAtom){if(!a&&L.isSelectable(r))return L.create(e,n-(i<0?r.nodeSize:0))}else{let t=sr(e,r,n+i,i<0?r.childCount:0,i,a);if(t)return t}n+=r.nodeSize*i}return null}function cr(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof sn||i instanceof cn))return;let a=e.mapping.maps[r],o;a.forEach((e,t,n,r)=>{o??=r}),e.setSelection(F.near(e.doc.resolve(o),n))}var lr=1,ur=2,dr=4,fr=class extends Qn{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw RangeError(`Selection passed to setSelection must point at the current document`);return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|lr)&~ur,this.storedMarks=null,this}get selectionSet(){return(this.updated&lr)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=ur,this}ensureMarks(e){return M.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&ur)>0}addStep(e,t){super.addStep(e,t),this.updated&=~ur,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||M.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(t==null)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(n??=t,!e)return this.deleteRange(t,n);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),!this.selection.empty&&this.selection.to==t+e.length&&this.setSelection(F.near(this.selection.$to)),this}}setMeta(e,t){return this.meta[typeof e==`string`?e:e.key]=t,this}getMeta(e){return this.meta[typeof e==`string`?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=dr,this}get scrolledIntoView(){return(this.updated&dr)>0}};function pr(e,t){return!t||!e?e:e.bind(t)}var mr=class{constructor(e,t,n){this.name=e,this.init=pr(t.init,n),this.apply=pr(t.apply,n)}},hr=[new mr(`doc`,{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new mr(`selection`,{init(e,t){return e.selection||F.atStart(t.doc)},apply(e){return e.selection}}),new mr(`storedMarks`,{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new mr(`scrollToSelection`,{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})],gr=class{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=hr.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw RangeError(`Adding different instances of a keyed plugin (`+e.key+`)`);this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new mr(e.key,e.spec.state,e))})}},_r=class e{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;n<this.config.plugins.length;n++)if(n!=t){let t=this.config.plugins[n];if(t.spec.filterTransaction&&!t.spec.filterTransaction.call(t,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],n=this.applyInner(e),r=null;for(;;){let i=!1;for(let a=0;a<this.config.plugins.length;a++){let o=this.config.plugins[a];if(o.spec.appendTransaction){let s=r?r[a].n:0,c=r?r[a].state:this,l=s<t.length&&o.spec.appendTransaction.call(o,s?t.slice(s):t,c,n);if(l&&n.filterTransaction(l,a)){if(l.setMeta(`appendedTransaction`,e),!r){r=[];for(let e=0;e<this.config.plugins.length;e++)r.push(e<a?{state:n,n:t.length}:{state:this,n:0})}t.push(l),n=n.applyInner(l),i=!0}r&&(r[a]={state:n,n:t.length})}}if(!i)return{state:n,transactions:t}}}applyInner(t){if(!t.before.eq(this.doc))throw RangeError(`Applying a mismatched transaction`);let n=new e(this.config),r=this.config.fields;for(let e=0;e<r.length;e++){let i=r[e];n[i.name]=i.apply(t,this[i.name],this,n)}return n}get tr(){return new fr(this)}static create(t){let n=new gr(t.doc?t.doc.type.schema:t.schema,t.plugins),r=new e(n);for(let e=0;e<n.fields.length;e++)r[n.fields[e].name]=n.fields[e].init(t,r);return r}reconfigure(t){let n=new gr(this.schema,t.plugins),r=n.fields,i=new e(n);for(let e=0;e<r.length;e++){let n=r[e].name;i[n]=this.hasOwnProperty(n)?this[n]:r[e].init(t,i)}return i}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(e=>e.toJSON())),e&&typeof e==`object`)for(let n in e){if(n==`doc`||n==`selection`)throw RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(t[n]=i.toJSON.call(r,this[r.key]))}return t}static fromJSON(t,n,r){if(!n)throw RangeError(`Invalid input for EditorState.fromJSON`);if(!t.schema)throw RangeError(`Required config field 'schema' missing`);let i=new gr(t.schema,t.plugins),a=new e(i);return i.fields.forEach(e=>{if(e.name==`doc`)a.doc=We.fromJSON(t.schema,n.doc);else if(e.name==`selection`)a.selection=F.fromJSON(a.doc,n.selection);else if(e.name==`storedMarks`)n.storedMarks&&(a.storedMarks=n.storedMarks.map(t.schema.markFromJSON));else{if(r)for(let i in r){let o=r[i],s=o.spec.state;if(o.key==e.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(n,i)){a[e.name]=s.fromJSON.call(o,t,n[i],a);return}}a[e.name]=e.init(t,a)}}),a}};function vr(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):r==`handleDOMEvents`&&(i=vr(i,t,{})),n[r]=i}return n}var yr=class{constructor(e){this.spec=e,this.props={},e.props&&vr(e.props,this,this.props),this.key=e.key?e.key.key:xr(`plugin`)}getState(e){return e[this.key]}},br=Object.create(null);function xr(e){return e in br?e+`$`+ ++br[e]:(br[e]=0,e+`$`)}var Sr=class{constructor(e=`key`){this.key=xr(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}},Cr=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},wr=function(e){let t=e.assignedSlot||e.parentNode;return t&&t.nodeType==11?t.host:t},Tr=null,Er=function(e,t,n){let r=Tr||=document.createRange();return r.setEnd(e,n??e.nodeValue.length),r.setStart(e,t||0),r},Dr=function(){Tr=null},Or=function(e,t,n,r){return n&&(Ar(e,t,n,r,-1)||Ar(e,t,n,r,1))},kr=/^(img|br|input|textarea|hr)$/i;function Ar(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:jr(e))){let n=e.parentNode;if(!n||n.nodeType!=1||Fr(e)||kr.test(e.nodeName)||e.contentEditable==`false`)return!1;t=Cr(e)+(i<0?0:1),e=n}else if(e.nodeType==1){let n=e.childNodes[t+(i<0?-1:0)];if(n.nodeType==1&&n.contentEditable==`false`)if(n.pmViewDesc?.ignoreForSelection)t+=i;else return!1;else e=n,t=i<0?jr(e):0}else return!1}}function jr(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Mr(e,t){for(;;){if(e.nodeType==3&&t)return e;if(e.nodeType==1&&t>0){if(e.contentEditable==`false`)return null;e=e.childNodes[t-1],t=jr(e)}else if(e.parentNode&&!Fr(e))t=Cr(e),e=e.parentNode;else return null}}function Nr(e,t){for(;;){if(e.nodeType==3&&t<e.nodeValue.length)return e;if(e.nodeType==1&&t<e.childNodes.length){if(e.contentEditable==`false`)return null;e=e.childNodes[t],t=0}else if(e.parentNode&&!Fr(e))t=Cr(e)+1,e=e.parentNode;else return null}}function Pr(e,t,n){for(let r=t==0,i=t==jr(e);r||i;){if(e==n)return!0;let t=Cr(e);if(e=e.parentNode,!e)return!1;r&&=t==0,i&&=t==jr(e)}}function Fr(e){let t;for(let n=e;n&&!(t=n.pmViewDesc);n=n.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}var Ir=function(e){return e.focusNode&&Or(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function Lr(e,t){let n=document.createEvent(`Event`);return n.initEvent(`keydown`,!0,!0),n.keyCode=e,n.key=n.code=t,n}function Rr(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function zr(e,t,n){if(e.caretPositionFromPoint)try{let r=e.caretPositionFromPoint(t,n);if(r)return{node:r.offsetNode,offset:Math.min(jr(r.offsetNode),r.offset)}}catch{}if(e.caretRangeFromPoint){let r=e.caretRangeFromPoint(t,n);if(r)return{node:r.startContainer,offset:Math.min(jr(r.startContainer),r.startOffset)}}}var Br=typeof navigator<`u`?navigator:null,Vr=typeof document<`u`?document:null,Hr=Br&&Br.userAgent||``,Ur=/Edge\/(\d+)/.exec(Hr),Wr=/MSIE \d/.exec(Hr),Gr=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Hr),Kr=!!(Wr||Gr||Ur),qr=Wr?document.documentMode:Gr?+Gr[1]:Ur?+Ur[1]:0,Jr=!Kr&&/gecko\/(\d+)/i.test(Hr);Jr&&+(/Firefox\/(\d+)/.exec(Hr)||[0,0])[1];var Yr=!Kr&&/Chrome\/(\d+)/.exec(Hr),Xr=!!Yr,Zr=Yr?+Yr[1]:0,Qr=!Kr&&!!Br&&/Safari\//.test(Hr)&&!/Chrome\//.test(Hr)&&!/Chromium\//.test(Hr),$r=Qr&&/Mobile\/\w+/.test(Hr),ei=$r||/Macintosh/.test(Hr),ti=/Windows/.test(Hr),ni=/Android \d/.test(Hr),R=!!Vr&&`webkitFontSmoothing`in Vr.documentElement.style,ri=R?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function ii(e){let t=e.defaultView&&e.defaultView.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function ai(e,t){return typeof e==`number`?e:e[t]}function oi(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function si(e,t,n){let r=e.someProp(`scrollThreshold`)||0,i=e.someProp(`scrollMargin`)||5,a=e.dom.ownerDocument;for(let o=n||e.dom;o;){if(o.nodeType!=1){o=wr(o);continue}let e=o,n=e==a.body,s=n?ii(a):oi(e),c=0,l=0;if(t.top<s.top+ai(r,`top`)?l=-(s.top-t.top+ai(i,`top`)):t.bottom>s.bottom-ai(r,`bottom`)&&(l=t.bottom-t.top>s.bottom-s.top?t.top+ai(i,`top`)-s.top:t.bottom-s.bottom+ai(i,`bottom`)),t.left<s.left+ai(r,`left`)?c=-(s.left-t.left+ai(i,`left`)):t.right>s.right-ai(r,`right`)&&(c=t.right-s.right+ai(i,`right`)),c||l)if(n)a.defaultView.scrollBy(c,l);else{let n=e.scrollLeft,r=e.scrollTop;l&&(e.scrollTop+=l),c&&(e.scrollLeft+=c);let i=e.scrollLeft-n,a=e.scrollTop-r;t={left:t.left-i,top:t.top-a,right:t.right-i,bottom:t.bottom-a}}let u=n?`fixed`:getComputedStyle(o).position;if(/^(fixed|sticky)$/.test(u))break;o=u==`absolute`?o.offsetParent:wr(o)}}function ci(e){let t=e.dom.getBoundingClientRect(),n=Math.max(0,t.top),r,i;for(let a=(t.left+t.right)/2,o=n+1;o<Math.min(innerHeight,t.bottom);o+=5){let t=e.root.elementFromPoint(a,o);if(!t||t==e.dom||!e.dom.contains(t))continue;let s=t.getBoundingClientRect();if(s.top>=n-20){r=t,i=s.top;break}}return{refDOM:r,refTop:i,stack:li(e.dom)}}function li(e){let t=[],n=e.ownerDocument;for(let r=e;r&&(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e!=n);r=wr(r));return t}function ui({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;di(n,r==0?0:r-t)}function di(e,t){for(let n=0;n<e.length;n++){let{dom:r,top:i,left:a}=e[n];r.scrollTop!=i+t&&(r.scrollTop=i+t),r.scrollLeft!=a&&(r.scrollLeft=a)}}var fi=null;function pi(e){if(e.setActive)return e.setActive();if(fi)return e.focus(fi);let t=li(e);e.focus(fi==null?{get preventScroll(){return fi={preventScroll:!0},!0}}:void 0),fi||(fi=!1,di(t,0))}function mi(e,t){let n,r=2e8,i,a=0,o=t.top,s=t.top,c,l;for(let u=e.firstChild,d=0;u;u=u.nextSibling,d++){let e;if(u.nodeType==1)e=u.getClientRects();else if(u.nodeType==3)e=Er(u).getClientRects();else continue;for(let f=0;f<e.length;f++){let p=e[f];if(p.top<=o&&p.bottom>=s){o=Math.max(p.bottom,o),s=Math.min(p.top,s);let e=p.left>t.left?p.left-t.left:p.right<t.left?t.left-p.right:0;if(e<r){n=u,r=e,i=e&&n.nodeType==3?{left:p.right<t.left?p.right:p.left,top:t.top}:t,u.nodeType==1&&e&&(a=d+(t.left>=(p.left+p.right)/2?1:0));continue}}else p.top>t.top&&!c&&p.left<=t.left&&p.right>=t.left&&(c=u,l={left:Math.max(p.left,Math.min(p.right,t.left)),top:p.top});!n&&(t.left>=p.right&&t.top>=p.top||t.left>=p.left&&t.top>=p.bottom)&&(a=d+1)}}return!n&&c&&(n=c,i=l,r=0),n&&n.nodeType==3?hi(n,i):!n||r&&n.nodeType==1?{node:e,offset:a}:mi(n,i)}function hi(e,t){let n=e.nodeValue.length,r=document.createRange(),i;for(let a=0;a<n;a++){r.setEnd(e,a+1),r.setStart(e,a);let n=Ci(r,1);if(n.top!=n.bottom&&gi(t,n)){i={node:e,offset:a+(t.left>=(n.left+n.right)/2?1:0)};break}}return r.detach(),i||{node:e,offset:0}}function gi(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function _i(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left<e.getBoundingClientRect().left?n:e}function vi(e,t,n){let{node:r,offset:i}=mi(t,n),a=-1;if(r.nodeType==1&&!r.firstChild){let e=r.getBoundingClientRect();a=e.left!=e.right&&n.left>(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,i,a)}function yi(e,t,n,r){let i=-1;for(let n=t,a=!1;n!=e.dom;){let t=e.docView.nearestDesc(n,!0),o;if(!t)return null;if(t.dom.nodeType==1&&(t.node.isBlock&&t.parent||!t.contentDOM)&&((o=t.dom.getBoundingClientRect()).width||o.height)&&(t.node.isBlock&&t.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(t.dom.nodeName)&&(!a&&o.left>r.left||o.top>r.top?i=t.posBefore:(!a&&o.right<r.left||o.bottom<r.top)&&(i=t.posAfter),a=!0),!t.contentDOM&&i<0&&!t.node.isText))return(t.node.isBlock?r.top<(o.top+o.bottom)/2:r.left<(o.left+o.right)/2)?t.posBefore:t.posAfter;n=t.dom.parentNode}return i>-1?i:e.docView.posFromDOM(t,n,-1)}function bi(e,t,n){let r=e.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(t.top-n.top)/(n.bottom-n.top))-2)),a=i;;){let n=e.childNodes[a];if(n.nodeType==1){let e=n.getClientRects();for(let r=0;r<e.length;r++){let i=e[r];if(gi(t,i))return bi(n,t,i)}}if((a=(a+1)%r)==i)break}return e}function xi(e,t){let n=e.dom.ownerDocument,r,i=0,a=zr(n,t.left,t.top);a&&({node:r,offset:i}=a);let o=(e.root.elementFromPoint?e.root:n).elementFromPoint(t.left,t.top),s;if(!o||!e.dom.contains(o.nodeType==1?o:o.parentNode)){let n=e.dom.getBoundingClientRect();if(!gi(t,n)||(o=bi(e.dom,t,n),!o))return null}if(Qr)for(let e=o;r&&e;e=wr(e))e.draggable&&(r=void 0);if(o=_i(o,t),r){if(Jr&&r.nodeType==1&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let e=r.childNodes[i],n;e.nodeName==`IMG`&&(n=e.getBoundingClientRect()).right<=t.left&&n.bottom>t.top&&i++}let n;R&&i&&r.nodeType==1&&(n=r.childNodes[i-1]).nodeType==1&&n.contentEditable==`false`&&n.getBoundingClientRect().top>=t.top&&i--,r==e.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&t.top>r.lastChild.getBoundingClientRect().bottom?s=e.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!=`BR`)&&(s=yi(e,r,i,t))}s??=vi(e,o,t);let c=e.docView.nearestDesc(o,!0);return{pos:s,inside:c?c.posAtStart-c.border:-1}}function Si(e){return e.top<e.bottom||e.left<e.right}function Ci(e,t){let n=e.getClientRects();if(n.length){let e=n[t<0?0:n.length-1];if(Si(e))return e}return Array.prototype.find.call(n,Si)||e.getBoundingClientRect()}var wi=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function Ti(e,t,n){let{node:r,offset:i,atom:a}=e.docView.domFromPos(t,n<0?-1:1),o=R||Jr;if(r.nodeType==3)if(o&&(wi.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let e=Ci(Er(r,i,i),n);if(Jr&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let t=Ci(Er(r,i-1,i-1),-1);if(t.top==e.top){let n=Ci(Er(r,i,i+1),-1);if(n.top!=e.top)return Ei(n,n.left<t.left)}}return e}else{let e=i,t=i,a=n<0?1:-1;return n<0&&!i?(t++,a=-1):n>=0&&i==r.nodeValue.length?(e--,a=1):n<0?e--:t++,Ei(Ci(Er(r,e,t),a),a<0)}if(!e.state.doc.resolve(t-(a||0)).parent.inlineContent){if(a==null&&i&&(n<0||i==jr(r))){let e=r.childNodes[i-1];if(e.nodeType==1)return Di(e.getBoundingClientRect(),!1)}if(a==null&&i<jr(r)){let e=r.childNodes[i];if(e.nodeType==1)return Di(e.getBoundingClientRect(),!0)}return Di(r.getBoundingClientRect(),n>=0)}if(a==null&&i&&(n<0||i==jr(r))){let e=r.childNodes[i-1],t=e.nodeType==3?Er(e,jr(e)-(o?0:1)):e.nodeType==1&&(e.nodeName!=`BR`||!e.nextSibling)?e:null;if(t)return Ei(Ci(t,1),!1)}if(a==null&&i<jr(r)){let e=r.childNodes[i];for(;e.pmViewDesc&&e.pmViewDesc.ignoreForCoords;)e=e.nextSibling;let t=e?e.nodeType==3?Er(e,0,o?0:1):e.nodeType==1?e:null:null;if(t)return Ei(Ci(t,-1),!0)}return Ei(Ci(r.nodeType==3?Er(r):r,-n),n>=0)}function Ei(e,t){if(e.width==0)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function Di(e,t){if(e.height==0)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function Oi(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function ki(e,t,n){let r=t.selection,i=n==`up`?r.$from:r.$to;return Oi(e,t,()=>{let{node:t}=e.docView.domFromPos(i.pos,n==`up`?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.contentDOM||n.dom;break}t=n.dom.parentNode}let r=Ti(e,i.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(e.nodeType==1)t=e.getClientRects();else if(e.nodeType==3)t=Er(e,0,e.nodeValue.length).getClientRects();else continue;for(let e=0;e<t.length;e++){let i=t[e];if(i.bottom>i.top+1&&(n==`up`?r.top-i.top>(i.bottom-r.top)*2:i.bottom-r.bottom>(r.bottom-i.top)*2))return!1}}return!0})}var Ai=/[\u0590-\u08ac]/;function ji(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,a=!i,o=i==r.parent.content.size,s=e.domSelection();return s?!Ai.test(r.parent.textContent)||!s.modify?n==`left`||n==`backward`?a:o:Oi(e,t,()=>{let{focusNode:t,focusOffset:i,anchorNode:a,anchorOffset:o}=e.domSelectionRange(),c=s.caretBidiLevel;s.modify(`move`,n,`character`);let l=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:u,focusOffset:d}=e.domSelectionRange(),f=u&&!l.contains(u.nodeType==1?u:u.parentNode)||t==u&&i==d;try{s.collapse(a,o),t&&(t!=a||i!=o)&&s.extend&&s.extend(t,i)}catch{}return c!=null&&(s.caretBidiLevel=c),f}):r.pos==r.start()||r.pos==r.end()}var Mi=null,Ni=null,Pi=!1;function Fi(e,t,n){return Mi==t&&Ni==n?Pi:(Mi=t,Ni=n,Pi=n==`up`||n==`down`?ki(e,t,n):ji(e,t,n))}var Ii=0,z=1,B=2,Li=3,V=class{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=Ii,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,n=this.posAtStart;;t++){let r=this.children[t];if(r==e)return n;n+=r.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,n){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(n<0){let n,r;if(e==this.contentDOM)n=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.previousSibling}for(;n&&!((r=n.pmViewDesc)&&r.parent==this);)n=n.previousSibling;return n?this.posBeforeChild(r)+r.size:this.posAtStart}else{let n,r;if(e==this.contentDOM)n=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;n=e.nextSibling}for(;n&&!((r=n.pmViewDesc)&&r.parent==this);)n=n.nextSibling;return n?this.posBeforeChild(r):this.posAtEnd}let r;if(e==this.dom&&this.contentDOM)r=t>Cr(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(t==0)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.previousSibling)break}if(r==null&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return r??n>0?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,r=e;r;r=r.parentNode){let i=this.getDesc(r),a;if(i&&(!t||i.node))if(n&&(a=i.nodeDOM)&&!(a.nodeType==1?a.contains(e.nodeType==1?e:e.parentNode):a==e))n=!1;else return i}}getDesc(e){let t=e.pmViewDesc;for(let e=t;e;e=e.parent)if(e==this)return t}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let t=0,n=0;t<this.children.length;t++){let r=this.children[t],i=n+r.size;if(n==e&&i!=n){for(;!r.border&&r.children.length;)for(let e=0;e<r.children.length;e++){let t=r.children[e];if(t.size){r=t;break}}return r}if(e<i)return r.descAt(e-n-r.border);n=i}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let n=0,r=0;for(let t=0;n<this.children.length;n++){let i=this.children[n],a=t+i.size;if(a>e||i instanceof Wi){r=e-t;break}t=a}if(r)return this.children[n].domFromPos(r-this.children[n].border,t);for(let e;n&&!(e=this.children[n-1]).size&&e instanceof Ri&&e.side>=0;n--);if(t<=0){let e,r=!0;for(;e=n?this.children[n-1]:null,!(!e||e.dom.parentNode==this.contentDOM);n--,r=!1);return e&&t&&r&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?Cr(e.dom)+1:0}}else{let e,r=!0;for(;e=n<this.children.length?this.children[n]:null,!(!e||e.dom.parentNode==this.contentDOM);n++,r=!1);return e&&r&&!e.border&&!e.domAtom?e.domFromPos(0,t):{node:this.contentDOM,offset:e?Cr(e.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,n=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let r=-1,i=-1;for(let a=n,o=0;;o++){let n=this.children[o],s=a+n.size;if(r==-1&&e<=s){let i=a+n.border;if(e>=i&&t<=s-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,i);e=a;for(let t=o;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=Cr(n.dom)+1;break}e-=n.size}r==-1&&(r=0)}if(r>-1&&(s>t||o==this.children.length-1)){t=s;for(let e=o+1;e<this.children.length;e++){let n=this.children[e];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(-1)){i=Cr(n.dom);break}t+=n.size}i==-1&&(i=this.contentDOM.childNodes.length);break}a=s}return{node:this.contentDOM,from:e,to:t,fromOffset:r,toOffset:i}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return t.size==0||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:n}=this.domFromPos(e,0);if(t.nodeType!=1||n==t.childNodes.length)throw RangeError(`No node after pos `+e);return t.childNodes[n]}setSelection(e,t,n,r=!1){let i=Math.min(e,t),a=Math.max(e,t);for(let o=0,s=0;o<this.children.length;o++){let c=this.children[o],l=s+c.size;if(i>s&&a<l)return c.setSelection(e-s-c.border,t-s-c.border,n,r);s=l}let o=this.domFromPos(e,e?-1:1),s=t==e?o:this.domFromPos(t,t?-1:1),c=n.root.getSelection(),l=n.domSelectionRange(),u=!1;if((Jr||Qr)&&e==t){let{node:e,offset:t}=o;if(e.nodeType==3){if(u=!!(t&&e.nodeValue[t-1]==`
|
|
7
|
+
`),u&&t==e.nodeValue.length)for(let t=e,n;t;t=t.parentNode){if(n=t.nextSibling){n.nodeName==`BR`&&(o=s={node:n.parentNode,offset:Cr(n)+1});break}let e=t.pmViewDesc;if(e&&e.node&&e.node.isBlock)break}}else{let n=e.childNodes[t-1];u=n&&(n.nodeName==`BR`||n.contentEditable==`false`)}}if(Jr&&l.focusNode&&l.focusNode!=s.node&&l.focusNode.nodeType==1){let e=l.focusNode.childNodes[l.focusOffset];e&&e.contentEditable==`false`&&(r=!0)}if(!(r||u&&Qr)&&Or(o.node,o.offset,l.anchorNode,l.anchorOffset)&&Or(s.node,s.offset,l.focusNode,l.focusOffset))return;let d=!1;if((c.extend||e==t)&&!(u&&Jr)){c.collapse(o.node,o.offset);try{e!=t&&c.extend(s.node,s.offset),d=!0}catch{}}if(!d){if(e>t){let e=o;o=s,s=e}let n=document.createRange();n.setEnd(s.node,s.offset),n.setStart(o.node,o.offset),c.removeAllRanges(),c.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&e.type!=`selection`}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r<this.children.length;r++){let i=this.children[r],a=n+i.size;if(n==a?e<=a&&t>=n:e<a&&t>n){let r=n+i.border,o=a-i.border;if(e>=r&&t<=o){this.dirty=e==n||t==a?B:z,e==r&&t==o&&(i.contentLost||i.dom.parentNode!=this.contentDOM)?i.dirty=Li:i.markDirty(e-r,t-r);return}else i.dirty=i.dom==i.contentDOM&&i.dom.parentNode==this.contentDOM&&!i.children.length?B:Li}n=a}this.dirty=B}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=e==1?B:z;t.dirty<n&&(t.dirty=n)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}},Ri=class extends V{constructor(e,t,n,r){let i,a=t.type.toDOM;if(typeof a==`function`&&(a=a(n,()=>{if(!i)return r;if(i.parent)return i.parent.posBeforeChild(i)})),!t.type.spec.raw){if(a.nodeType!=1){let e=document.createElement(`span`);e.appendChild(a),a=e}a.contentEditable=`false`,a.classList.add(`ProseMirror-widget`)}super(e,[],a,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return this.dirty==Ii&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return t?t(e):!1}ignoreMutation(e){return e.type!=`selection`||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}},zi=class extends V{constructor(e,t,n,r){super(e,[],t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e==this.textDOM?this.posAtStart+t:this.posAtStart+(t?this.size:0)}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type===`characterData`&&e.target.nodeValue==e.oldValue}},Bi=class e extends V{constructor(e,t,n,r,i){super(e,[],n,r),this.mark=t,this.spec=i}static create(t,n,r,i){let a=i.nodeViews[n.type.name],o=a&&a(n,i,r);return(!o||!o.dom)&&(o=Nt.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new e(t,n,o.dom,o.contentDOM||o.dom,o)}parseRule(){return this.dirty&Li||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=Li&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=Ii){let e=this.parent;for(;!e.node;)e=e.parent;e.dirty<this.dirty&&(e.dirty=this.dirty),this.dirty=Ii}}slice(t,n,r){let i=e.create(this.parent,this.mark,!0,r),a=this.children,o=this.size;n<o&&(a=sa(a,n,o,r)),t>0&&(a=sa(a,0,t,r));for(let e=0;e<a.length;e++)a[e].parent=i;return i.children=a,i}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}},Vi=class e extends V{constructor(e,t,n,r,i,a,o,s,c){super(e,[],i,a),this.node=t,this.outerDeco=n,this.innerDeco=r,this.nodeDOM=o}static create(t,n,r,i,a,o){let s=a.nodeViews[n.type.name],c,l=s&&s(n,a,()=>{if(!c)return o;if(c.parent)return c.parent.posBeforeChild(c)},r,i),u=l&&l.dom,d=l&&l.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw RangeError(`Text must be rendered as a DOM text node`)}else if(!u){let e=Nt.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs);({dom:u,contentDOM:d}=e)}!d&&!n.isText&&u.nodeName!=`BR`&&(u.hasAttribute(`contenteditable`)||(u.contentEditable=`false`),n.type.spec.draggable&&(u.draggable=!0));let f=u;return u=Qi(u,r,n),l?c=new Gi(t,n,r,i,u,d||null,f,l,a,o+1):n.isText?new Ui(t,n,r,i,u,f,a):new e(t,n,r,i,u,d||null,f,a,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace==`pre`&&(e.preserveWhitespace=`full`),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let t=this.children.length-1;t>=0;t--){let n=this.children[t];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>j.empty)}return e}matchesNode(e,t,n){return this.dirty==Ii&&e.eq(this.node)&&$i(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let n=this.node.inlineContent,r=t,i=e.composing?this.localCompositionInfo(e,t):null,a=i&&i.pos>-1?i:null,o=i&&i.pos<0,s=new ta(this,a&&a.node,e);ia(this.node,this.innerDeco,(t,i,a)=>{t.spec.marks?s.syncToMarks(t.spec.marks,n,e,i):t.type.side>=0&&!a&&s.syncToMarks(i==this.node.childCount?M.none:this.node.child(i).marks,n,e,i),s.placeWidget(t,e,r)},(t,a,c,l)=>{s.syncToMarks(t.marks,n,e,l);let u;s.findNodeMatch(t,a,c,l)||o&&e.state.selection.from>r&&e.state.selection.to<r+t.nodeSize&&(u=s.findIndexWithChild(i.node))>-1&&s.updateNodeAt(t,a,c,u,e)||s.updateNextNode(t,a,c,e,l,r)||s.addNode(t,a,c,e,r),r+=t.nodeSize}),s.syncToMarks([],n,e,0),this.node.isTextblock&&s.addTextblockHacks(),s.destroyRest(),(s.changed||this.dirty==B)&&(a&&this.protectLocalComposition(e,a),Ki(this.contentDOM,this.children,e),$r&&aa(this.dom))}localCompositionInfo(e,t){let{from:n,to:r}=e.state.selection;if(!(e.state.selection instanceof I)||n<t||r>t+this.node.content.size)return null;let i=e.input.compositionNode;if(!i||!this.dom.contains(i.parentNode))return null;if(this.node.inlineContent){let e=i.nodeValue,a=oa(this.node.content,e,n-t,r-t);return a<0?null:{node:i,pos:a,text:e}}else return{node:i,pos:-1,text:``}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let i=t;for(;i.parentNode!=this.contentDOM;i=i.parentNode){for(;i.previousSibling;)i.parentNode.removeChild(i.previousSibling);for(;i.nextSibling;)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&=void 0}let a=new zi(this,i,t,r);e.input.compositionNodes.push(a),this.children=sa(this.children,n,n+r.length,e,a)}update(e,t,n,r){return this.dirty==Li||!e.sameMarkup(this.node)?!1:(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=Ii}updateOuterDeco(e){if($i(e,this.outerDeco))return;let t=this.nodeDOM.nodeType!=1,n=this.dom;this.dom=Xi(this.dom,this.nodeDOM,Yi(this.outerDeco,this.node,t),Yi(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add(`ProseMirror-selectednode`),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove(`ProseMirror-selectednode`),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute(`draggable`))}get domAtom(){return this.node.isAtom}};function Hi(e,t,n,r,i){Qi(r,t,e);let a=new Vi(void 0,e,t,n,r,r,r,i,0);return a.contentDOM&&a.updateChildren(i,0),a}var Ui=class e extends Vi{constructor(e,t,n,r,i,a,o){super(e,t,n,r,i,null,a,o,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,n,r){return this.dirty==Li||this.dirty!=Ii&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=Ii||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=Ii,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return e.type!=`characterData`&&e.type!=`selection`}slice(t,n,r){let i=this.node.cut(t,n),a=document.createTextNode(i.text);return new e(this.parent,i,this.outerDeco,this.innerDeco,a,a,r)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(e==0||t==this.nodeDOM.nodeValue.length)&&(this.dirty=Li)}get domAtom(){return!1}isText(e){return this.node.text==e}},Wi=class extends V{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Ii&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName==`IMG`}},Gi=class extends Vi{constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r,i,a,o,c,l),this.spec=s}update(e,t,n,r){if(this.dirty==Li)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let i=this.spec.update(e,t,n);return i&&this.updateInner(e,t,n,r),i}else if(!this.contentDOM&&!e.isLeaf)return!1;else return super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n.root):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}};function Ki(e,t,n){let r=e.firstChild,i=!1;for(let a=0;a<t.length;a++){let o=t[a],s=o.dom;if(s.parentNode==e){for(;s!=r;)r=ea(r),i=!0;r=r.nextSibling}else i=!0,e.insertBefore(s,r);if(o instanceof Bi){let t=r?r.previousSibling:e.lastChild;Ki(o.contentDOM,o.children,n),r=t?t.nextSibling:e.firstChild}}for(;r;)r=ea(r),i=!0;i&&n.trackWrites==e&&(n.trackWrites=null)}var qi=function(e){e&&(this.nodeName=e)};qi.prototype=Object.create(null);var Ji=[new qi];function Yi(e,t,n){if(e.length==0)return Ji;let r=n?Ji[0]:new qi,i=[r];for(let a=0;a<e.length;a++){let o=e[a].type.attrs;if(o)for(let e in o.nodeName&&i.push(r=new qi(o.nodeName)),o){let a=o[e];a!=null&&(n&&i.length==1&&i.push(r=new qi(t.isInline?`span`:`div`)),e==`class`?r.class=(r.class?r.class+` `:``)+a:e==`style`?r.style=(r.style?r.style+`;`:``)+a:e!=`nodeName`&&(r[e]=a))}}return i}function Xi(e,t,n,r){if(n==Ji&&r==Ji)return t;let i=t;for(let t=0;t<r.length;t++){let a=r[t],o=n[t];if(t){let t;o&&o.nodeName==a.nodeName&&i!=e&&(t=i.parentNode)&&t.nodeName.toLowerCase()==a.nodeName?i=t:(t=document.createElement(a.nodeName),t.pmIsDeco=!0,t.appendChild(i),o=Ji[0],i=t)}Zi(i,o||Ji[0],a)}return i}function Zi(e,t,n){for(let r in t)r!=`class`&&r!=`style`&&r!=`nodeName`&&!(r in n)&&e.removeAttribute(r);for(let r in n)r!=`class`&&r!=`style`&&r!=`nodeName`&&n[r]!=t[r]&&e.setAttribute(r,n[r]);if(t.class!=n.class){let r=t.class?t.class.split(` `).filter(Boolean):[],i=n.class?n.class.split(` `).filter(Boolean):[];for(let t=0;t<r.length;t++)i.indexOf(r[t])==-1&&e.classList.remove(r[t]);for(let t=0;t<i.length;t++)r.indexOf(i[t])==-1&&e.classList.add(i[t]);e.classList.length==0&&e.removeAttribute(`class`)}if(t.style!=n.style){if(t.style){let n=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,r;for(;r=n.exec(t.style);)e.style.removeProperty(r[1])}n.style&&(e.style.cssText+=n.style)}}function Qi(e,t,n){return Xi(e,e,Ji,Yi(t,n,e.nodeType!=1))}function $i(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].type.eq(t[n].type))return!1;return!0}function ea(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}var ta=class{constructor(e,t,n){this.lock=t,this.view=n,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=na(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let n=e;n<t;n++)this.top.children[n].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,n,r){let i=0,a=this.stack.length>>1,o=Math.min(a,e.length);for(;i<o&&(i==a-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&e[i].type.spec.spanning!==!1;)i++;for(;i<a;)this.destroyRest(),this.top.dirty=Ii,this.index=this.stack.pop(),this.top=this.stack.pop(),a--;for(;a<e.length;){this.stack.push(this.top,this.index+1);let i=-1,o=this.top.children.length;r<this.preMatch.index&&(o=Math.min(this.index+3,o));for(let t=this.index;t<o;t++){let n=this.top.children[t];if(n.matchesMark(e[a])&&!this.isLocked(n.dom)){i=t;break}}if(i>-1)i>this.index&&(this.changed=!0,this.destroyBetween(this.index,i)),this.top=this.top.children[this.index];else{let r=Bi.create(this.top,e[a],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,a++}}findNodeMatch(e,t,n,r){let i=-1,a;if(r>=this.preMatch.index&&(a=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&a.matchesNode(e,t,n))i=this.top.children.indexOf(a,this.index);else for(let r=this.index,a=Math.min(this.top.children.length,r+5);r<a;r++){let a=this.top.children[r];if(a.matchesNode(e,t,n)&&!this.preMatch.matched.has(a)){i=r;break}}return i<0?!1:(this.destroyBetween(this.index,i),this.index++,!0)}updateNodeAt(e,t,n,r,i){let a=this.top.children[r];return a.dirty==Li&&a.dom==a.contentDOM&&(a.dirty=B),a.update(e,t,n,i)?(this.destroyBetween(this.index,r),this.index++,!0):!1}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let t=e.pmViewDesc;if(t){for(let e=this.index;e<this.top.children.length;e++)if(this.top.children[e]==t)return e}return-1}e=t}}updateNextNode(e,t,n,r,i,a){for(let o=this.index;o<this.top.children.length;o++){let s=this.top.children[o];if(s instanceof Vi){let c=this.preMatch.matched.get(s);if(c!=null&&c!=i)return!1;let l=s.dom,u,d=this.isLocked(l)&&!(e.isText&&s.node&&s.node.isText&&s.nodeDOM.nodeValue==e.text&&s.dirty!=Li&&$i(t,s.outerDeco));if(!d&&s.update(e,t,n,r))return this.destroyBetween(this.index,o),s.dom!=l&&(this.changed=!0),this.index++,!0;if(!d&&(u=this.recreateWrapper(s,e,t,n,r,a)))return this.destroyBetween(this.index,o),this.top.children[this.index]=u,u.contentDOM&&(u.dirty=B,u.updateChildren(r,a+1),u.dirty=Ii),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,n,r,i,a){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!$i(n,e.outerDeco)||!r.eq(e.innerDeco))return null;let o=Vi.create(this.top,t,n,r,i,a);if(o.contentDOM){o.children=e.children,e.children=[];for(let e of o.children)e.parent=o}return e.destroy(),o}addNode(e,t,n,r,i){let a=Vi.create(this.top,e,t,n,r,i);a.contentDOM&&a.updateChildren(r,i+1),this.top.children.splice(this.index++,0,a),this.changed=!0}placeWidget(e,t,n){let r=this.index<this.top.children.length?this.top.children[this.index]:null;if(r&&r.matchesWidget(e)&&(e==r.widget||!r.widget.type.toDOM.parentNode))this.index++;else{let r=new Ri(this.top,e,t,n);this.top.children.splice(this.index++,0,r),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof Bi;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof Ui)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((Qr||Xr)&&e&&e.dom.contentEditable==`false`&&this.addHackNode(`IMG`,t),this.addHackNode(`BR`,this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let n=document.createElement(e);e==`IMG`&&(n.className=`ProseMirror-separator`,n.alt=``),e==`BR`&&(n.className=`ProseMirror-trailingBreak`);let r=new Wi(this.top,[],n,null);t==this.top?t.children.splice(this.index++,0,r):t.children.push(r),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}};function na(e,t){let n=t,r=n.children.length,i=e.childCount,a=new Map,o=[];outer:for(;i>0;){let s;for(;;)if(r){let e=n.children[r-1];if(e instanceof Bi)n=e,r=e.children.length;else{s=e,r--;break}}else if(n==t)break outer;else r=n.parent.children.indexOf(n),n=n.parent;let c=s.node;if(c){if(c!=e.child(i-1))break;--i,a.set(s,i),o.push(s)}}return{index:i,matched:a,matches:o.reverse()}}function ra(e,t){return e.type.side-t.type.side}function ia(e,t,n,r){let i=t.locals(e),a=0;if(i.length==0){for(let n=0;n<e.childCount;n++){let o=e.child(n);r(o,i,t.forChild(a,o),n),a+=o.nodeSize}return}let o=0,s=[],c=null;for(let l=0;;){let u,d;for(;o<i.length&&i[o].to==a;){let e=i[o++];e.widget&&(u?(d||=[u]).push(e):u=e)}if(u)if(d){d.sort(ra);for(let e=0;e<d.length;e++)n(d[e],l,!!c)}else n(u,l,!!c);let f,p;if(c)p=-1,f=c,c=null;else if(l<e.childCount)p=l,f=e.child(l++);else break;for(let e=0;e<s.length;e++)s[e].to<=a&&s.splice(e--,1);for(;o<i.length&&i[o].from<=a&&i[o].to>a;)s.push(i[o++]);let m=a+f.nodeSize;if(f.isText){let e=m;o<i.length&&i[o].from<e&&(e=i[o].from);for(let t=0;t<s.length;t++)s[t].to<e&&(e=s[t].to);e<m&&(c=f.cut(e-a),f=f.cut(0,e-a),m=e,p=-1)}else for(;o<i.length&&i[o].to<m;)o++;let h=f.isInline&&!f.isLeaf?s.filter(e=>!e.inline):s.slice();r(f,h,t.forChild(a,f),p),a=m}}function aa(e){if(e.nodeName==`UL`||e.nodeName==`OL`){let t=e.style.cssText;e.style.cssText=t+`; list-style: square !important`,window.getComputedStyle(e).listStyle,e.style.cssText=t}}function oa(e,t,n,r){for(let i=0,a=0;i<e.childCount&&a<=r;){let o=e.child(i++),s=a;if(a+=o.nodeSize,!o.isText)continue;let c=o.text;for(;i<e.childCount;){let t=e.child(i++);if(a+=t.nodeSize,!t.isText)break;c+=t.text}if(a>=n){if(a>=r&&c.slice(r-t.length-s,r-s)==t)return r-t.length;let e=s<r?c.lastIndexOf(t,r-s-1):-1;if(e>=0&&e+t.length+s>=n)return s+e;if(n==r&&c.length>=r+t.length-s&&c.slice(r-s,r-s+t.length)==t)return r}}return-1}function sa(e,t,n,r,i){let a=[];for(let o=0,s=0;o<e.length;o++){let c=e[o],l=s,u=s+=c.size;l>=n||u<=t?a.push(c):(l<t&&a.push(c.slice(0,t-l,r)),i&&=(a.push(i),void 0),u>n&&a.push(c.slice(n-l,c.size,r)))}return a}function ca(e,t=null){let n=e.domSelectionRange(),r=e.state.doc;if(!n.focusNode)return null;let i=e.docView.nearestDesc(n.focusNode),a=i&&i.size==0,o=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(o<0)return null;let s=r.resolve(o),c,l;if(Ir(n)){for(c=o;i&&!i.node;)i=i.parent;let e=i.node;if(i&&e.isAtom&&L.isSelectable(e)&&i.parent&&!(e.isInline&&Pr(n.focusNode,n.focusOffset,i.dom))){let e=i.posBefore;l=new L(o==e?s:r.resolve(e))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let t=o,i=o;for(let r=0;r<n.rangeCount;r++){let a=n.getRangeAt(r);t=Math.min(t,e.docView.posFromDOM(a.startContainer,a.startOffset,1)),i=Math.max(i,e.docView.posFromDOM(a.endContainer,a.endOffset,-1))}if(t<0)return null;[c,o]=i==e.state.selection.anchor?[i,t]:[t,i],s=r.resolve(o)}else c=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(c<0)return null}let u=r.resolve(c);if(!l){let n=t==`pointer`||e.state.selection.head<s.pos&&!a?1:-1;l=ya(e,u,s,n)}return l}function la(e){return e.editable?e.hasFocus():xa(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function ua(e,t=!1){let n=e.state.selection;if(_a(e,n),!la(e))return;let r=e.input.mouseDown;if(!t&&Xr&&r){let t=e.domSelectionRange(),n=e.domObserver.currentSelection;if(t.anchorNode&&n.anchorNode&&Or(t.anchorNode,t.anchorOffset,n.anchorNode,n.anchorOffset)&&r.delaySelUpdate()){e.domObserver.setCurSelection();return}}if(e.domObserver.disconnectSelection(),e.cursorWrapper)ga(e);else{let{anchor:r,head:i}=n,a,o;da&&!(n instanceof I)&&(n.$from.parent.inlineContent||(a=fa(e,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(o=fa(e,n.to))),e.docView.setSelection(r,i,e,t),da&&(a&&ma(a),o&&ma(o)),n.visible?e.dom.classList.remove(`ProseMirror-hideselection`):(e.dom.classList.add(`ProseMirror-hideselection`),`onselectionchange`in document&&ha(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}var da=Qr||Xr&&Zr<63;function fa(e,t){let{node:n,offset:r}=e.docView.domFromPos(t,0),i=r<n.childNodes.length?n.childNodes[r]:null,a=r?n.childNodes[r-1]:null;if(Qr&&i&&i.contentEditable==`false`)return pa(i);if((!i||i.contentEditable==`false`)&&(!a||a.contentEditable==`false`)){if(i)return pa(i);if(a)return pa(a)}}function pa(e){return e.contentEditable=`true`,Qr&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function ma(e){e.contentEditable=`false`,e.wasDraggable&&=(e.draggable=!0,null)}function ha(e){let t=e.dom.ownerDocument;t.removeEventListener(`selectionchange`,e.input.hideSelectionGuard);let n=e.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;t.addEventListener(`selectionchange`,e.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=i)&&(t.removeEventListener(`selectionchange`,e.input.hideSelectionGuard),setTimeout(()=>{(!la(e)||e.state.selection.visible)&&e.dom.classList.remove(`ProseMirror-hideselection`)},20))})}function ga(e){let t=e.domSelection();if(!t)return;let n=e.cursorWrapper.dom,r=n.nodeName==`IMG`;r?t.collapse(n.parentNode,Cr(n)+1):t.collapse(n,0),!r&&!e.state.selection.visible&&Kr&&qr<=11&&(n.disabled=!0,n.disabled=!1)}function _a(e,t){if(t instanceof L){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(va(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else va(e)}function va(e){e.lastSelectedViewDesc&&=(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),void 0)}function ya(e,t,n,r){return e.someProp(`createSelectionBetween`,r=>r(e,t,n))||I.between(t,n,r)}function ba(e){return e.editable&&!e.hasFocus()?!1:xa(e)}function xa(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function Sa(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return Or(t.node,t.offset,n.anchorNode,n.anchorOffset)}function Ca(e,t){let{$anchor:n,$head:r}=e.selection,i=t>0?n.max(r):n.min(r),a=i.parent.inlineContent?i.depth?e.doc.resolve(t>0?i.after():i.before()):null:i;return a&&F.findFrom(a,t)}function wa(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Ta(e,t,n){let r=e.state.selection;if(r instanceof I)if(n.indexOf(`s`)>-1){let{$head:n}=r,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter;if(!i||i.isText||!i.isLeaf)return!1;let a=e.state.doc.resolve(n.pos+i.nodeSize*(t<0?-1:1));return wa(e,new I(r.$anchor,a))}else if(r.empty){if(e.endOfTextblock(t>0?`forward`:`backward`)){let n=Ca(e.state,t);return n&&n instanceof L?wa(e,n):!1}else if(!(ei&&n.indexOf(`m`)>-1)){let n=r.$head,i=n.textOffset?null:t<0?n.nodeBefore:n.nodeAfter,a;if(!i||i.isText)return!1;let o=t<0?n.pos-i.nodeSize:n.pos;return i.isAtom||(a=e.docView.descAt(o))&&!a.contentDOM?L.isSelectable(i)?wa(e,new L(t<0?e.state.doc.resolve(n.pos-i.nodeSize):n)):R?wa(e,new I(e.state.doc.resolve(t<0?o:o+i.nodeSize))):!1:!1}}else return!1;else if(r instanceof L&&r.node.isInline)return wa(e,new I(t>0?r.$to:r.$from));else{let n=Ca(e.state,t);return n?wa(e,n):!1}}function Ea(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function Da(e,t){let n=e.pmViewDesc;return n&&n.size==0&&(t<0||e.nextSibling||e.nodeName!=`BR`)}function Oa(e,t){return t<0?ka(e):Aa(e)}function ka(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,a,o=!1;for(Jr&&n.nodeType==1&&r<Ea(n)&&Da(n.childNodes[r],-1)&&(o=!0);;)if(r>0){if(n.nodeType!=1)break;{let e=n.childNodes[r-1];if(Da(e,-1))i=n,a=--r;else if(e.nodeType==3)n=e,r=n.nodeValue.length;else break}}else if(ja(n))break;else{let t=n.previousSibling;for(;t&&Da(t,-1);)i=n.parentNode,a=Cr(t),t=t.previousSibling;if(t)n=t,r=Ea(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}o?Pa(e,n,r):i&&Pa(e,i,a)}function Aa(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i=Ea(n),a,o;for(;;)if(r<i){if(n.nodeType!=1)break;let e=n.childNodes[r];if(Da(e,1))a=n,o=++r;else break}else if(ja(n))break;else{let t=n.nextSibling;for(;t&&Da(t,1);)a=t.parentNode,o=Cr(t)+1,t=t.nextSibling;if(t)n=t,r=0,i=Ea(n);else{if(n=n.parentNode,n==e.dom)break;r=i=0}}a&&Pa(e,a,o)}function ja(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function Ma(e,t){for(;e&&t==e.childNodes.length&&!Fr(e);)t=Cr(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let n=e.childNodes[t];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable==`false`)break;e=n,t=0}}function Na(e,t){for(;e&&!t&&!Fr(e);)t=Cr(e),e=e.parentNode;for(;e&&t;){let n=e.childNodes[t-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable==`false`)break;e=n,t=e.childNodes.length}}function Pa(e,t,n){if(t.nodeType!=3){let e,r;(r=Ma(t,n))?(t=r,n=0):(e=Na(t,n))&&(t=e,n=e.nodeValue.length)}let r=e.domSelection();if(!r)return;if(Ir(r)){let e=document.createRange();e.setEnd(t,n),e.setStart(t,n),r.removeAllRanges(),r.addRange(e)}else r.extend&&r.extend(t,n);e.domObserver.setCurSelection();let{state:i}=e;setTimeout(()=>{e.state==i&&ua(e)},50)}function Fa(e,t){let n=e.state.doc.resolve(t);if(!(Xr||ti)&&n.parent.inlineContent){let r=e.coordsAtPos(t);if(t>n.start()){let n=e.coordsAtPos(t-1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left<r.left?`ltr`:`rtl`}if(t<n.end()){let n=e.coordsAtPos(t+1),i=(n.top+n.bottom)/2;if(i>r.top&&i<r.bottom&&Math.abs(n.left-r.left)>1)return n.left>r.left?`ltr`:`rtl`}}return getComputedStyle(e.dom).direction==`rtl`?`rtl`:`ltr`}function Ia(e,t,n){let r=e.state.selection;if(r instanceof I&&!r.empty||n.indexOf(`s`)>-1||ei&&n.indexOf(`m`)>-1)return!1;let{$from:i,$to:a}=r;if(!i.parent.inlineContent||e.endOfTextblock(t<0?`up`:`down`)){let n=Ca(e.state,t);if(n&&n instanceof L)return wa(e,n)}if(!i.parent.inlineContent){let n=t<0?i:a,o=r instanceof ar?F.near(n,t):F.findFrom(n,t);return o?wa(e,o):!1}return!1}function La(e,t){if(!(e.state.selection instanceof I))return!0;let{$head:n,$anchor:r,empty:i}=e.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(e.endOfTextblock(t>0?`forward`:`backward`))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let r=e.state.tr;return t<0?r.delete(n.pos-a.nodeSize,n.pos):r.delete(n.pos,n.pos+a.nodeSize),e.dispatch(r),!0}return!1}function Ra(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function za(e){if(!Qr||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&t.nodeType==1&&n==0&&t.firstChild&&t.firstChild.contentEditable==`false`){let n=t.firstChild;Ra(e,n,`true`),setTimeout(()=>Ra(e,n,`false`),20)}return!1}function Ba(e){let t=``;return e.ctrlKey&&(t+=`c`),e.metaKey&&(t+=`m`),e.altKey&&(t+=`a`),e.shiftKey&&(t+=`s`),t}function Va(e,t){let n=t.keyCode,r=Ba(t);if(n==8||ei&&n==72&&r==`c`)return La(e,-1)||Oa(e,-1);if(n==46&&!t.shiftKey||ei&&n==68&&r==`c`)return La(e,1)||Oa(e,1);if(n==13||n==27)return!0;if(n==37||ei&&n==66&&r==`c`){let t=n==37?Fa(e,e.state.selection.from)==`ltr`?-1:1:-1;return Ta(e,t,r)||Oa(e,t)}else if(n==39||ei&&n==70&&r==`c`){let t=n==39?Fa(e,e.state.selection.from)==`ltr`?1:-1:1;return Ta(e,t,r)||Oa(e,t)}else if(n==38||ei&&n==80&&r==`c`)return Ia(e,-1,r)||Oa(e,-1);else if(n==40||ei&&n==78&&r==`c`)return za(e)||Ia(e,1,r)||Oa(e,1);else if(r==(ei?`m`:`c`)&&(n==66||n==73||n==89||n==90))return!0;return!1}function Ha(e,t){e.someProp(`transformCopied`,n=>{t=n(t,e)});let n=[],{content:r,openStart:i,openEnd:a}=t;for(;i>1&&a>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,a--;let e=r.firstChild;n.push(e.type.name,e.attrs==e.type.defaultAttrs?null:e.attrs),r=e.content}let o=e.someProp(`clipboardSerializer`)||Nt.fromSchema(e.state.schema),s=$a(),c=s.createElement(`div`);c.appendChild(o.serializeFragment(r,{document:s}));let l=c.firstChild,u,d=0;for(;l&&l.nodeType==1&&(u=Za[l.nodeName.toLowerCase()]);){for(let e=u.length-1;e>=0;e--){let t=s.createElement(u[e]);for(;c.firstChild;)t.appendChild(c.firstChild);c.appendChild(t),d++}l=c.firstChild}return l&&l.nodeType==1&&l.setAttribute(`data-pm-slice`,`${i} ${a}${d?` -${d}`:``} ${JSON.stringify(n)}`),{dom:c,text:e.someProp(`clipboardTextSerializer`,n=>n(t,e))||t.content.textBetween(0,t.content.size,`
|
|
8
|
+
|
|
9
|
+
`),slice:t}}function Ua(e,t,n,r,i){let a=i.parent.type.spec.code,o,s;if(!n&&!t)return null;let c=!!t&&(r||a||!n);if(c){if(e.someProp(`transformPastedText`,n=>{t=n(t,a||r,e)}),a)return s=new N(j.from(e.state.schema.text(t.replace(/\r\n?/g,`
|
|
10
|
+
`))),0,0),e.someProp(`transformPasted`,t=>{s=t(s,e,!0)}),s;let n=e.someProp(`clipboardTextParser`,n=>n(t,i,r,e));if(n)s=n;else{let n=i.marks(),{schema:r}=e.state,a=Nt.fromSchema(r);o=document.createElement(`div`),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=o.appendChild(document.createElement(`p`));e&&t.appendChild(a.serializeNode(r.text(e,n)))})}}else e.someProp(`transformPastedHTML`,t=>{n=t(n,e)}),o=no(n),R&&ro(o);let l=o&&o.querySelector(`[data-pm-slice]`),u=l&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(l.getAttribute(`data-pm-slice`)||``);if(u&&u[3])for(let e=+u[3];e>0;e--){let e=o.firstChild;for(;e&&e.nodeType!=1;)e=e.nextSibling;if(!e)break;o=e}if(s||=(e.someProp(`clipboardParser`)||e.someProp(`domParser`)||yt.fromSchema(e.state.schema)).parseSlice(o,{preserveWhitespace:!!(c||u),context:i,ruleFromNode(e){return e.nodeName==`BR`&&!e.nextSibling&&e.parentNode&&!Wa.test(e.parentNode.nodeName)?{ignore:!0}:null}}),u)s=io(Xa(s,+u[1],+u[2]),u[4]);else if(s=N.maxOpen(Ga(s.content,i),!0),s.openStart||s.openEnd){let e=0,t=0;for(let t=s.content.firstChild;e<s.openStart&&!t.type.spec.isolating;e++,t=t.firstChild);for(let e=s.content.lastChild;t<s.openEnd&&!e.type.spec.isolating;t++,e=e.lastChild);s=Xa(s,e,t)}return e.someProp(`transformPasted`,t=>{s=t(s,e,c)}),s}var Wa=/^(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 Ga(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r=t.node(n).contentMatchAt(t.index(n)),i,a=[];if(e.forEach(e=>{if(!a)return;let t=r.findWrapping(e.type),n;if(!t)return a=null;if(n=a.length&&i.length&&qa(t,i,e,a[a.length-1],0))a[a.length-1]=n;else{a.length&&(a[a.length-1]=Ja(a[a.length-1],i.length));let n=Ka(e,t);a.push(n),r=r.matchType(n.type),i=t}}),a)return j.from(a)}return e}function Ka(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,j.from(e));return e}function qa(e,t,n,r,i){if(i<e.length&&i<t.length&&e[i]==t[i]){let a=qa(e,t,n,r.lastChild,i+1);if(a)return r.copy(r.content.replaceChild(r.childCount-1,a));if(r.contentMatchAt(r.childCount).matchType(i==e.length-1?n.type:e[i+1]))return r.copy(r.content.append(j.from(Ka(n,e,i+1))))}}function Ja(e,t){if(t==0)return e;let n=e.content.replaceChild(e.childCount-1,Ja(e.lastChild,t-1)),r=e.contentMatchAt(e.childCount).fillBefore(j.empty,!0);return e.copy(n.append(r))}function Ya(e,t,n,r,i,a){let o=t<0?e.firstChild:e.lastChild,s=o.content;return e.childCount>1&&(a=0),i<r-1&&(s=Ya(s,t,n,r,i+1,a)),i>=n&&(s=t<0?o.contentMatchAt(0).fillBefore(s,a<=i).append(s):s.append(o.contentMatchAt(o.childCount).fillBefore(j.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,o.copy(s))}function Xa(e,t,n){return t<e.openStart&&(e=new N(Ya(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),n<e.openEnd&&(e=new N(Ya(e.content,1,n,e.openEnd,0,0),e.openStart,n)),e}var Za={thead:[`table`],tbody:[`table`],tfoot:[`table`],caption:[`table`],colgroup:[`table`],col:[`table`,`colgroup`],tr:[`table`,`tbody`],td:[`table`,`tbody`,`tr`],th:[`table`,`tbody`,`tr`]},Qa=null;function $a(){return Qa||=document.implementation.createHTMLDocument(`title`)}var eo=null;function to(e){let t=window.trustedTypes;return t?(eo||=t.defaultPolicy||t.createPolicy(`ProseMirrorClipboard`,{createHTML:e=>e}),eo.createHTML(e)):e}function no(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n=$a().createElement(`div`),r=/<([a-z][^>\s]+)/i.exec(e),i;if((i=r&&Za[r[1].toLowerCase()])&&(e=i.map(e=>`<`+e+`>`).join(``)+e+i.map(e=>`</`+e+`>`).reverse().join(``)),n.innerHTML=to(e),i)for(let e=0;e<i.length;e++)n=n.querySelector(i[e])||n;return n}function ro(e){let t=e.querySelectorAll(Xr?`span:not([class]):not([style])`:`span.Apple-converted-space`);for(let n=0;n<t.length;n++){let r=t[n];r.childNodes.length==1&&r.textContent==`\xA0`&&r.parentNode&&r.parentNode.replaceChild(e.ownerDocument.createTextNode(` `),r)}}function io(e,t){if(!e.size)return e;let n=e.content.firstChild.type.schema,r;try{r=JSON.parse(t)}catch{return e}let{content:i,openStart:a,openEnd:o}=e;for(let e=r.length-2;e>=0;e-=2){let t=n.nodes[r[e]];if(!t||t.hasRequiredAttrs())break;i=j.from(t.create(r[e+1],i)),a++,o++}return new N(i,a,o)}var ao={},oo={},H={touchstart:!0,touchmove:!0},so=class{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:``,button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}};function co(e){for(let t in ao){let n=ao[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{mo(e,t)&&!po(e,t)&&(e.editable||!(t.type in oo))&&n(e,t)},H[t]?{passive:!0}:void 0)}Qr&&e.dom.addEventListener(`input`,()=>null),fo(e)}function lo(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function uo(e){for(let t in e.input.mouseDown&&e.input.mouseDown.done(),e.domObserver.stop(),e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function fo(e){e.someProp(`handleDOMEvents`,t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>po(e,t))})}function po(e,t){return e.someProp(`handleDOMEvents`,n=>{let r=n[t.type];return r?r(e,t)||t.defaultPrevented:!1})}function mo(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function ho(e,t){!po(e,t)&&ao[t.type]&&(e.editable||!(t.type in oo))&&ao[t.type](e,t)}oo.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!jo(e)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(ni&&Xr&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),$r&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp(`handleKeyDown`,t=>t(e,Lr(13,`Enter`))),e.input.lastIOSEnter=0)},200)}else e.someProp(`handleKeyDown`,t=>t(e,n))||Va(e,n)?n.preventDefault():lo(e,`key`)},oo.keyup=(e,t)=>{t.keyCode==16&&(e.input.shiftKey=!1)},oo.keypress=(e,t)=>{let n=t;if(jo(e)||!n.charCode||n.ctrlKey&&!n.altKey||ei&&n.metaKey)return;if(e.someProp(`handleKeyPress`,t=>t(e,n))){n.preventDefault();return}let r=e.state.selection;if(!(r instanceof I)||!r.$from.sameParent(r.$to)){let t=String.fromCharCode(n.charCode),i=()=>e.state.tr.insertText(t).scrollIntoView();!/[\r\n]/.test(t)&&!e.someProp(`handleTextInput`,n=>n(e,r.$from.pos,r.$to.pos,t,i))&&e.dispatch(i()),n.preventDefault()}};function go(e){return{left:e.clientX,top:e.clientY}}function _o(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function vo(e,t,n,r,i){if(r==-1)return!1;let a=e.state.doc.resolve(r);for(let r=a.depth+1;r>0;r--)if(e.someProp(t,t=>r>a.depth?t(e,n,a.nodeAfter,a.before(r),i,!0):t(e,n,a.node(r),a.before(r),i,!1)))return!0;return!1}function yo(e,t,n){if(e.focused||e.focus(),e.state.selection.eq(t))return;let r=e.state.tr.setSelection(t);n==`pointer`&&r.setMeta(`pointer`,!0),e.dispatch(r)}function bo(e,t){if(t==-1)return!1;let n=e.state.doc.resolve(t),r=n.nodeAfter;return r&&r.isAtom&&L.isSelectable(r)?(yo(e,new L(n),`pointer`),!0):!1}function xo(e,t){if(t==-1)return!1;let n=e.state.selection,r,i;n instanceof L&&(r=n.node);let a=e.state.doc.resolve(t);for(let e=a.depth+1;e>0;e--){let t=e>a.depth?a.nodeAfter:a.node(e);if(L.isSelectable(t)){i=r&&n.$from.depth>0&&e>=n.$from.depth&&a.before(n.$from.depth+1)==n.$from.pos?a.before(n.$from.depth):a.before(e);break}}return i==null?!1:(yo(e,L.create(e.state.doc,i),`pointer`),!0)}function So(e,t,n,r,i){return vo(e,`handleClickOn`,t,n,r)||e.someProp(`handleClick`,n=>n(e,t,r))||(i?xo(e,n):bo(e,n))}function U(e,t,n,r){return vo(e,`handleDoubleClickOn`,t,n,r)||e.someProp(`handleDoubleClick`,n=>n(e,t,r))}function Co(e,t,n,r){return vo(e,`handleTripleClickOn`,t,n,r)||e.someProp(`handleTripleClick`,n=>n(e,t,r))||wo(e,n,r)}function wo(e,t,n){if(n.button!=0)return!1;let r=To(e,t,!0),i=e.state.doc;return r?(yo(e,r,`pointer`),r instanceof I&&i.eq(e.state.doc)&&(e.input.mouseDown=new Ao(e,r)),!0):!1}function To(e,t,n){let r=e.state.doc;if(t==-1)return r.inlineContent?I.create(r,0,r.content.size):null;let i=r.resolve(t);for(let e=i.depth+1;e>0;e--){let t=e>i.depth?i.nodeAfter:i.node(e),a=i.before(e);if(t.inlineContent)return I.create(r,a+1,a+1+t.content.size);if(n&&L.isSelectable(t))return L.create(r,a)}return null}function Eo(e){return Lo(e)}var Do=ei?`metaKey`:`ctrlKey`;ao.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=Eo(e),i=Date.now(),a=`singleClick`;i-e.input.lastClick.time<500&&_o(n,e.input.lastClick)&&!n[Do]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type==`singleClick`?a=`doubleClick`:e.input.lastClick.type==`doubleClick`&&(a=`tripleClick`)),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:a,button:n.button},e.input.mouseDown&&e.input.mouseDown.done();let o=e.posAtCoords(go(n));o&&(a==`singleClick`?e.input.mouseDown=new ko(e,o,n,!!r):(a==`doubleClick`?U:Co)(e,o.pos,o.inside,n)?n.preventDefault():lo(e,`pointer`))};var Oo=class{constructor(e){this.view=e,this.mightDrag=null,e.root.addEventListener(`mouseup`,this.up=this.up.bind(this)),e.root.addEventListener(`mousemove`,this.move=this.move.bind(this))}up(e){this.done()}move(e){e.buttons==0&&this.done()}done(){this.view.root.removeEventListener(`mouseup`,this.up),this.view.root.removeEventListener(`mousemove`,this.move),this.view.input.mouseDown==this&&(this.view.input.mouseDown=null)}delaySelUpdate(){return!1}},ko=class extends Oo{constructor(e,t,n,r){super(e),this.pos=t,this.event=n,this.flushed=r,this.delayedSelectionSync=!1,this.startDoc=e.state.doc,this.selectNode=!!n[Do],this.allowDefault=n.shiftKey;let i,a;if(t.inside>-1)i=e.state.doc.nodeAt(t.inside),a=t.inside;else{let n=e.state.doc.resolve(t.pos);i=n.parent,a=n.depth?n.before():0}let o=r?null:n.target,s=o?e.docView.nearestDesc(o,!0):null;this.target=s&&s.nodeDOM.nodeType==1?s.nodeDOM:null;let{selection:c}=e.state;n.button==0&&(i.type.spec.draggable&&i.type.spec.selectable!==!1||c instanceof L&&c.from<=a&&c.to>a)&&(this.mightDrag={node:i,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Jr&&!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()),lo(e,`pointer`)}done(){super.done(),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute(`draggable`),this.mightDrag.setUneditable&&this.target.removeAttribute(`contentEditable`),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>{this.view.isDestroyed||ua(this.view)})}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(go(e))),this.updateAllowDefault(e),this.allowDefault||!t?lo(this.view,`pointer`):So(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||Qr&&this.mightDrag&&!this.mightDrag.node.isAtom||Xr&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(yo(this.view,F.near(this.view.state.doc.resolve(t.pos)),`pointer`),e.preventDefault()):lo(this.view,`pointer`)}move(e){this.updateAllowDefault(e),lo(this.view,`pointer`),super.move(e)}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}delaySelUpdate(){return this.allowDefault?(this.delayedSelectionSync=!0,!0):!1}},Ao=class extends Oo{constructor(e,t){super(e),this.startSelection=t,this.startDoc=e.state.doc}move(e){if(e.buttons==0||this.view.isDestroyed||!this.view.state.doc.eq(this.startDoc)){this.done();return}e.preventDefault(),lo(this.view,`pointer`);let t=this.view.posAtCoords(go(e)),n=t&&To(this.view,t.inside,!1);if(!n)return;let{doc:r}=this.view.state,i=this.startSelection,[a,o]=n.from<i.from?[i.to,n.from]:[i.from,n.to];yo(this.view,I.create(r,a,o),`pointer`)}};ao.touchstart=e=>{e.input.lastTouch=Date.now(),Eo(e),lo(e,`pointer`)},ao.touchmove=e=>{e.input.lastTouch=Date.now(),lo(e,`pointer`)},ao.contextmenu=e=>Eo(e);function jo(e,t){return e.composing?!0:Qr&&Math.abs(Date.now()-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}var Mo=ni?5e3:-1;oo.compositionstart=oo.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$to;if(t.selection instanceof I&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>e.type.spec.inclusive===!1)||Xr&&ti&&No(e)))e.markCursor=e.state.storedMarks||n.marks(),Lo(e,!0),e.markCursor=null;else if(Lo(e,!t.selection.empty),Jr&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&n.nodeType==1&&r!=0;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(t.nodeType==3){let n=e.domSelection();n&&n.collapse(t,t.nodeValue.length);break}else n=t,r=-1}}e.input.composing=!0}Po(e,Mo)};function No(e){let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(!t||t.nodeType!=1||n>=t.childNodes.length)return!1;let r=t.childNodes[n];return r.nodeType==1&&r.contentEditable==`false`}oo.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now(),e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.badSafariComposition?e.domObserver.forceFlush():e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,Po(e,20))};function Po(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>Lo(e),t))}function Fo(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=Date.now());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function Io(e){let t=e.domSelectionRange();if(!t.focusNode)return null;let n=Mr(t.focusNode,t.focusOffset),r=Nr(t.focusNode,t.focusOffset);if(n&&r&&n!=r){let t=r.pmViewDesc,i=e.domObserver.lastChangedTextNode;if(n==i||r==i)return i;if(!t||!t.isText(r.nodeValue))return r;if(e.input.compositionNode==r){let e=n.pmViewDesc;if(!(!e||!e.isText(n.nodeValue)))return r}}return n||r}function Lo(e,t=!1){if(!(ni&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),Fo(e),t||e.docView&&e.docView.dirty){let n=ca(e),r=e.state.selection;return n&&!n.eq(r)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||t)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function Ro(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement(`div`));n.appendChild(t),n.style.cssText=`position: fixed; left: -10000px; top: 10px`;let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}var zo=Kr&&qr<15||$r&&ri<604;ao.copy=oo.cut=(e,t)=>{let n=t,r=e.state.selection,i=n.type==`cut`;if(r.empty)return;let a=zo?null:n.clipboardData,{dom:o,text:s}=Ha(e,r.content());a?(n.preventDefault(),a.clearData(),a.setData(`text/html`,o.innerHTML),a.setData(`text/plain`,s)):Ro(e,o),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta(`uiEvent`,`cut`))};function Bo(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function Vo(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?`textarea`:`div`));n||(r.contentEditable=`true`),r.style.cssText=`position: fixed; left: -10000px; top: 10px`,r.focus();let i=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?Ho(e,r.value,null,i,t):Ho(e,r.textContent,r.innerHTML,i,t)},50)}function Ho(e,t,n,r,i){let a=Ua(e,t,n,r,e.state.selection.$from);if(e.someProp(`handlePaste`,t=>t(e,i,a||N.empty)))return!0;if(!a)return!1;let o=Bo(a),s=o?e.state.tr.replaceSelectionWith(o,r):e.state.tr.replaceSelection(a);return e.dispatch(s.scrollIntoView().setMeta(`paste`,!0).setMeta(`uiEvent`,`paste`)),!0}function Uo(e){let t=e.getData(`text/plain`)||e.getData(`Text`);if(t)return t;let n=e.getData(`text/uri-list`);return n?n.replace(/\r?\n/g,` `):``}oo.paste=(e,t)=>{let n=t;if(e.composing&&!ni)return;let r=zo?null:n.clipboardData,i=e.input.shiftKey&&e.input.lastKeyCode!=45;r&&Ho(e,Uo(r),r.getData(`text/html`),i,n)?n.preventDefault():Vo(e,n)};var Wo=class{constructor(e,t,n){this.slice=e,this.move=t,this.node=n}},Go=ei?`altKey`:`ctrlKey`;function Ko(e,t){let n;return e.someProp(`dragCopies`,e=>{n||=e(t)}),n==null?!t[Go]:!n}ao.dragstart=(e,t)=>{let n=t,r=e.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=e.state.selection,a=i.empty?null:e.posAtCoords(go(n)),o;if(!(a&&a.pos>=i.from&&a.pos<=(i instanceof L?i.to-1:i.to))){if(r&&r.mightDrag)o=L.create(e.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&(o=L.create(e.state.doc,t.posBefore))}}let{dom:s,text:c,slice:l}=Ha(e,(o||e.state.selection).content());(!n.dataTransfer.files.length||!Xr||Zr>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(zo?`Text`:`text/html`,s.innerHTML),n.dataTransfer.effectAllowed=`copyMove`,zo||n.dataTransfer.setData(`text/plain`,c),e.dragging=new Wo(l,Ko(e,n),o)},ao.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},oo.dragover=oo.dragenter=(e,t)=>t.preventDefault(),oo.drop=(e,t)=>{try{qo(e,t,e.dragging)}finally{e.dragging=null}};function qo(e,t,n){if(!t.dataTransfer)return;let r=e.posAtCoords(go(t));if(!r)return;let i=e.state.doc.resolve(r.pos),a=n&&n.slice;a?e.someProp(`transformPasted`,t=>{a=t(a,e,!1)}):a=Ua(e,Uo(t.dataTransfer),zo?null:t.dataTransfer.getData(`text/html`),!1,i);let o=!!(n&&Ko(e,t));if(e.someProp(`handleDrop`,n=>n(e,t,a||N.empty,o))){t.preventDefault();return}if(!a)return;t.preventDefault();let s=a?Nn(e.state.doc,i.pos,a):i.pos;s??=i.pos;let c=e.state.tr;if(o){let{node:e}=n;e?e.replace(c):c.deleteSelection()}let l=c.mapping.map(s),u=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,d=c.doc;if(u?c.replaceRangeWith(l,l,a.content.firstChild):c.replaceRange(l,l,a),c.doc.eq(d))return;let f=c.doc.resolve(l);if(u&&L.isSelectable(a.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new L(f));else{let t=c.mapping.map(s);c.mapping.maps[c.mapping.maps.length-1].forEach((e,n,r,i)=>t=i),c.setSelection(ya(e,f,c.doc.resolve(t)))}e.focus(),e.dispatch(c.setMeta(`uiEvent`,`drop`))}for(let e in ao.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add(`ProseMirror-focused`),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&ua(e)},20))},ao.blur=(e,t)=>{let n=t;e.focused&&=(e.domObserver.stop(),e.dom.classList.remove(`ProseMirror-focused`),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),!1)},ao.beforeinput=(e,t)=>{if(Xr&&ni&&t.inputType==`deleteContentBackward`){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t||(e.dom.blur(),e.focus(),e.someProp(`handleKeyDown`,t=>t(e,Lr(8,`Backspace`)))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}},oo)ao[e]=oo[e];function Jo(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}var Yo=class e{constructor(e,t){this.toDOM=e,this.spec=t||es,this.side=this.spec.side||0}map(e,t,n,r){let{pos:i,deleted:a}=e.mapResult(t.from+r,this.side<0?-1:1);return a?null:new Qo(i-n,i-n,this)}valid(){return!0}eq(t){return this==t||t instanceof e&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&Jo(this.spec,t.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}},Xo=class e{constructor(e,t){this.attrs=e,this.spec=t||es}map(e,t,n,r){let i=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,a=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=a?null:new Qo(i,a,this)}valid(e,t){return t.from<t.to}eq(t){return this==t||t instanceof e&&Jo(this.attrs,t.attrs)&&Jo(this.spec,t.spec)}static is(t){return t.type instanceof e}destroy(){}},Zo=class e{constructor(e,t){this.attrs=e,this.spec=t||es}map(e,t,n,r){let i=e.mapResult(t.from+r,1);if(i.deleted)return null;let a=e.mapResult(t.to+r,-1);return a.deleted||a.pos<=i.pos?null:new Qo(i.pos-n,a.pos-n,this)}valid(e,t){let{index:n,offset:r}=e.content.findIndex(t.from),i;return r==t.from&&!(i=e.child(n)).isText&&r+i.nodeSize==t.to}eq(t){return this==t||t instanceof e&&Jo(this.attrs,t.attrs)&&Jo(this.spec,t.spec)}destroy(){}},Qo=class e{constructor(e,t,n){this.from=e,this.to=t,this.type=n}copy(t,n){return new e(t,n,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,n){return this.type.map(e,this,t,n)}static widget(t,n,r){return new e(t,t,new Yo(n,r))}static inline(t,n,r,i){return new e(t,n,new Xo(r,i))}static node(t,n,r,i){return new e(t,n,new Zo(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof Xo}get widget(){return this.type instanceof Yo}},$o=[],es={},ts=class e{constructor(e,t){this.local=e.length?e:$o,this.children=t.length?t:$o}static create(e,t){return t.length?us(t,e,0,es):ns}find(e,t,n){let r=[];return this.findInner(e??0,t??1e9,r,0,n),r}findInner(e,t,n,r,i){for(let a=0;a<this.local.length;a++){let o=this.local[a];o.from<=t&&o.to>=e&&(!i||i(o.spec))&&n.push(o.copy(o.from+r,o.to+r))}for(let a=0;a<this.children.length;a+=3)if(this.children[a]<t&&this.children[a+1]>e){let o=this.children[a]+1;this.children[a+2].findInner(e-o,t-o,n,r+o,i)}}map(e,t,n){return this==ns||e.maps.length==0?this:this.mapInner(e,t,0,0,n||es)}mapInner(t,n,r,i,a){let o;for(let e=0;e<this.local.length;e++){let s=this.local[e].map(t,r,i);s&&s.type.valid(n,s)?(o||=[]).push(s):a.onRemove&&a.onRemove(this.local[e].spec)}return this.children.length?is(this.children,o||[],t,n,r,i,a):o?new e(o.sort(ds),$o):ns}add(t,n){return n.length?this==ns?e.create(t,n):this.addInner(t,n,0):this}addInner(t,n,r){let i,a=0;t.forEach((e,t)=>{let o=t+r,s;if(s=cs(n,e,o)){for(i||=this.children.slice();a<i.length&&i[a]<t;)a+=3;i[a]==t?i[a+2]=i[a+2].addInner(e,s,o+1):i.splice(a,0,t,t+e.nodeSize,us(s,e,o+1,es)),a+=3}});let o=as(a?ls(n):n,-r);for(let e=0;e<o.length;e++)o[e].type.valid(t,o[e])||o.splice(e--,1);return new e(o.length?this.local.concat(o).sort(ds):this.local,i||this.children)}remove(e){return e.length==0||this==ns?this:this.removeInner(e,0)}removeInner(t,n){let r=this.children,i=this.local;for(let e=0;e<r.length;e+=3){let i,a=r[e]+n,o=r[e+1]+n;for(let e=0,n;e<t.length;e++)(n=t[e])&&n.from>a&&n.to<o&&(t[e]=null,(i||=[]).push(n));if(!i)continue;r==this.children&&(r=this.children.slice());let s=r[e+2].removeInner(i,a+1);s==ns?(r.splice(e,3),e-=3):r[e+2]=s}if(i.length){for(let e=0,r;e<t.length;e++)if(r=t[e])for(let e=0;e<i.length;e++)i[e].eq(r,n)&&(i==this.local&&(i=this.local.slice()),i.splice(e--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new e(i,r):ns}forChild(t,n){if(this==ns)return this;if(n.isLeaf)return e.empty;let r,i;for(let e=0;e<this.children.length;e+=3)if(this.children[e]>=t){this.children[e]==t&&(r=this.children[e+2]);break}let a=t+1,o=a+n.content.size;for(let e=0;e<this.local.length;e++){let t=this.local[e];if(t.from<o&&t.to>a&&t.type instanceof Xo){let e=Math.max(a,t.from)-a,n=Math.min(o,t.to)-a;e<n&&(i||=[]).push(t.copy(e,n))}}if(i){let t=new e(i.sort(ds),$o);return r?new rs([t,r]):t}return r||ns}eq(t){if(this==t)return!0;if(!(t instanceof e)||this.local.length!=t.local.length||this.children.length!=t.children.length)return!1;for(let e=0;e<this.local.length;e++)if(!this.local[e].eq(t.local[e]))return!1;for(let e=0;e<this.children.length;e+=3)if(this.children[e]!=t.children[e]||this.children[e+1]!=t.children[e+1]||!this.children[e+2].eq(t.children[e+2]))return!1;return!0}locals(e){return fs(this.localsInner(e))}localsInner(e){if(this==ns)return $o;if(e.inlineContent||!this.local.some(Xo.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof Xo||t.push(this.local[e]);return t}forEachSet(e){e(this)}};ts.empty=new ts([],[]),ts.removeOverlap=fs;var ns=ts.empty,rs=class e{constructor(e){this.members=e}map(t,n){let r=this.members.map(e=>e.map(t,n,es));return e.from(r)}forChild(t,n){if(n.isLeaf)return ts.empty;let r=[];for(let i=0;i<this.members.length;i++){let a=this.members[i].forChild(t,n);a!=ns&&(a instanceof e?r=r.concat(a.members):r.push(a))}return e.from(r)}eq(t){if(!(t instanceof e)||t.members.length!=this.members.length)return!1;for(let e=0;e<this.members.length;e++)if(!this.members[e].eq(t.members[e]))return!1;return!0}locals(e){let t,n=!0;for(let r=0;r<this.members.length;r++){let i=this.members[r].localsInner(e);if(i.length)if(!t)t=i;else{n&&=(t=t.slice(),!1);for(let e=0;e<i.length;e++)t.push(i[e])}}return t?fs(n?t:t.sort(ds)):$o}static from(t){switch(t.length){case 0:return ns;case 1:return t[0];default:return new e(t.every(e=>e instanceof ts)?t:t.reduce((e,t)=>e.concat(t instanceof ts?t:t.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}};function is(e,t,n,r,i,a,o){let s=e.slice();for(let e=0,t=a;e<n.maps.length;e++){let r=0;n.maps[e].forEach((e,n,i,a)=>{let o=a-i-(n-e);for(let i=0;i<s.length;i+=3){let a=s[i+1];if(a<0||e>a+t-r)continue;let c=s[i]+t-r;n>=c?s[i+1]=e<=c?-2:-1:e>=t&&o&&(s[i]+=o,s[i+1]+=o)}r+=o}),t=n.maps[e].map(t,-1)}let c=!1;for(let t=0;t<s.length;t+=3)if(s[t+1]<0){if(s[t+1]==-2){c=!0,s[t+1]=-1;continue}let l=n.map(e[t]+a),u=l-i;if(u<0||u>=r.content.size){c=!0;continue}let d=n.map(e[t+1]+a,-1)-i,{index:f,offset:p}=r.content.findIndex(u),m=r.maybeChild(f);if(m&&p==u&&p+m.nodeSize==d){let r=s[t+2].mapInner(n,m,l+1,e[t]+a+1,o);r==ns?(s[t+1]=-2,c=!0):(s[t]=u,s[t+1]=d,s[t+2]=r)}else c=!0}if(c){let c=us(ss(s,e,t,n,i,a,o),r,0,o);t=c.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,t=0;e<c.children.length;e+=3){let n=c.children[e];for(;t<s.length&&s[t]<n;)t+=3;s.splice(t,0,c.children[e],c.children[e+1],c.children[e+2])}}return new ts(t.sort(ds),s)}function as(e,t){if(!t||!e.length)return e;let n=[];for(let r=0;r<e.length;r++){let i=e[r];n.push(new Qo(i.from+t,i.to+t,i.type))}return n}function ss(e,t,n,r,i,a,o){function s(e,t){for(let a=0;a<e.local.length;a++){let s=e.local[a].map(r,i,t);s?n.push(s):o.onRemove&&o.onRemove(e.local[a].spec)}for(let n=0;n<e.children.length;n+=3)s(e.children[n+2],e.children[n]+t+1)}for(let n=0;n<e.length;n+=3)e[n+1]==-1&&s(e[n+2],t[n]+a+1);return n}function cs(e,t,n){if(t.isLeaf)return null;let r=n+t.nodeSize,i=null;for(let t=0,a;t<e.length;t++)(a=e[t])&&a.from>n&&a.to<r&&((i||=[]).push(a),e[t]=null);return i}function ls(e){let t=[];for(let n=0;n<e.length;n++)e[n]!=null&&t.push(e[n]);return t}function us(e,t,n,r){let i=[],a=!1;t.forEach((t,o)=>{let s=cs(e,t,o+n);if(s){a=!0;let e=us(s,t,n+o+1,r);e!=ns&&i.push(o,o+t.nodeSize,e)}});let o=as(a?ls(e):e,-n).sort(ds);for(let e=0;e<o.length;e++)o[e].type.valid(t,o[e])||(r.onRemove&&r.onRemove(o[e].spec),o.splice(e--,1));return o.length||i.length?new ts(o,i):ns}function ds(e,t){return e.from-t.from||e.to-t.to}function fs(e){let t=e;for(let n=0;n<t.length-1;n++){let r=t[n];if(r.from!=r.to)for(let i=n+1;i<t.length;i++){let a=t[i];if(a.from==r.from){a.to!=r.to&&(t==e&&(t=e.slice()),t[i]=a.copy(a.from,r.to),ps(t,i+1,a.copy(r.to,a.to)));continue}else{a.from<r.to&&(t==e&&(t=e.slice()),t[n]=r.copy(r.from,a.from),ps(t,i,r.copy(a.from,r.to)));break}}}return t}function ps(e,t,n){for(;t<e.length&&ds(n,e[t])>0;)t++;e.splice(t,0,n)}function ms(e){let t=[];return e.someProp(`decorations`,n=>{let r=n(e.state);r&&r!=ns&&t.push(r)}),e.cursorWrapper&&t.push(ts.create(e.state.doc,[e.cursorWrapper.deco])),rs.from(t)}var hs={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},gs=Kr&&qr<=11,_s=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}},vs=class{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new _s,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(t=>{for(let e=0;e<t.length;e++)this.queue.push(t[e]);Kr&&qr<=11&&t.some(e=>e.type==`childList`&&e.removedNodes.length||e.type==`characterData`&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():Qr&&e.composing&&t.some(e=>e.type==`childList`&&e.target.nodeName==`TR`)?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),gs&&(this.onCharData=e=>{this.queue.push({target:e.target,type:`characterData`,oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,hs)),this.onCharData&&this.view.dom.addEventListener(`DOMCharacterDataModified`,this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener(`DOMCharacterDataModified`,this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener(`selectionchange`,this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener(`selectionchange`,this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(ba(this.view)){if(this.suppressingSelectionUpdates)return ua(this.view);if(Kr&&qr<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Or(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,n;for(let n=e.focusNode;n;n=wr(n))t.add(n);for(let r=e.anchorNode;r;r=wr(r))if(t.has(r)){n=r;break}let r=n&&this.view.docView.nearestDesc(n);if(r&&r.ignoreMutation({type:`selection`,target:n.nodeType==3?n.parentNode:n}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let n=e.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&ba(e)&&!this.ignoreSelectionChange(n),i=-1,a=-1,o=!1,s=[];if(e.editable)for(let e=0;e<t.length;e++){let n=this.registerMutation(t[e],s);n&&(i=i<0?n.from:Math.min(n.from,i),a=a<0?n.to:Math.max(n.to,a),n.typeOver&&(o=!0))}if(s.some(e=>e.nodeName==`BR`)&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46||Xr&&(e.composing||e.input.compositionEndedAt>Date.now()-50)&&t.some(e=>e.type==`childList`&&e.removedNodes.length))){for(let e of s)if(e.nodeName==`BR`&&e.parentNode){let t=e.nextSibling;for(;t&&t.nodeType==1;){if(t.contentEditable==`false`){e.parentNode.removeChild(e);break}t=t.firstChild}}}else if(Jr&&s.length){let t=s.filter(e=>e.nodeName==`BR`);if(t.length==2){let[e,n]=t;e.parentNode&&e.parentNode.parentNode==n.parentNode?n.remove():e.remove()}else{let{focusNode:n}=this.currentSelection;for(let r of t){let t=r.parentNode;t&&t.nodeName==`LI`&&(!n||ws(e,n)!=t)&&r.remove()}}}let c=null;i<0&&r&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Ir(n)&&(c=ca(e))&&c.eq(F.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,ua(e),this.currentSelection.set(n),e.scrollToSelection()):(i>-1||r)&&(i>-1&&(e.docView.markDirty(i,a),xs(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,Ts(e,s)),this.handleDOMChange(i,a,o,s),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||ua(e),this.currentSelection.set(n))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if(e.type==`attributes`&&(n==this.view.docView||e.attributeName==`contenteditable`||e.attributeName==`style`&&!e.oldValue&&!e.target.getAttribute(`style`))||!n||n.ignoreMutation(e))return null;if(e.type==`childList`){for(let n=0;n<e.addedNodes.length;n++){let r=e.addedNodes[n];t.push(r),r.nodeType==3&&(this.lastChangedTextNode=r)}if(n.contentDOM&&n.contentDOM!=n.dom&&!n.contentDOM.contains(e.target))return{from:n.posBefore,to:n.posAfter};let r=e.previousSibling,i=e.nextSibling;if(Kr&&qr<=11&&e.addedNodes.length)for(let t=0;t<e.addedNodes.length;t++){let{previousSibling:n,nextSibling:a}=e.addedNodes[t];(!n||Array.prototype.indexOf.call(e.addedNodes,n)<0)&&(r=n),(!a||Array.prototype.indexOf.call(e.addedNodes,a)<0)&&(i=a)}let a=r&&r.parentNode==e.target?Cr(r)+1:0,o=n.localPosFromDOM(e.target,a,-1),s=i&&i.parentNode==e.target?Cr(i):e.target.childNodes.length;return{from:o,to:n.localPosFromDOM(e.target,s,1)}}else if(e.type==`attributes`)return{from:n.posAtStart-n.border,to:n.posAtEnd+n.border};else return this.lastChangedTextNode=e.target,{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}},ys=new WeakMap,bs=!1;function xs(e){if(!ys.has(e)&&(ys.set(e,null),[`normal`,`nowrap`,`pre-line`].indexOf(getComputedStyle(e.dom).whiteSpace)!==-1)){if(e.requiresGeckoHackNode=Jr,bs)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.`),bs=!0}}function Ss(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,o=e.domAtPos(e.state.selection.anchor);return Or(o.node,o.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function Cs(e,t){if(t.getComposedRanges){let n=t.getComposedRanges(e.root)[0];if(n)return Ss(e,n)}let n;function r(e){e.preventDefault(),e.stopImmediatePropagation(),n=e.getTargetRanges()[0]}return e.dom.addEventListener(`beforeinput`,r,!0),document.execCommand(`indent`),e.dom.removeEventListener(`beforeinput`,r,!0),n?Ss(e,n):null}function ws(e,t){for(let n=t.parentNode;n&&n!=e.dom;n=n.parentNode){let t=e.docView.nearestDesc(n,!0);if(t&&t.node.isBlock)return n}return null}function Ts(e,t){let{focusNode:n,focusOffset:r}=e.domSelectionRange();for(let i of t)if(i.parentNode?.nodeName==`TR`){let t=i.nextSibling;for(;t&&t.nodeName!=`TD`&&t.nodeName!=`TH`;)t=t.nextSibling;if(t){let a=t;for(;;){let e=a.firstChild;if(!e||e.nodeType!=1||e.contentEditable==`false`||/^(BR|IMG)$/.test(e.nodeName))break;a=e}a.insertBefore(i,a.firstChild),n==i&&e.domSelection().collapse(i,r)}else i.parentNode.removeChild(i)}}function Es(e,t,n){let{node:r,fromOffset:i,toOffset:a,from:o,to:s}=e.docView.parseRange(t,n),c=e.domSelectionRange(),l,u=c.anchorNode;if(u&&e.dom.contains(u.nodeType==1?u:u.parentNode)&&(l=[{node:u,offset:c.anchorOffset}],Ir(c)||l.push({node:c.focusNode,offset:c.focusOffset})),Xr&&e.input.lastKeyCode===8)for(let e=a;e>i;e--){let t=r.childNodes[e-1],n=t.pmViewDesc;if(t.nodeName==`BR`&&!n){a=e;break}if(!n||n.size)break}let d=e.state.doc,f=e.someProp(`domParser`)||yt.fromSchema(e.state.schema),p=d.resolve(o),m=null,h=f.parse(r,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:i,to:a,preserveWhitespace:p.parent.type.whitespace==`pre`?`full`:!0,findPositions:l,ruleFromNode:Ds,context:p});if(l&&l[0].pos!=null){let e=l[0].pos,t=l[1]&&l[1].pos;t??=e,m={anchor:e+o,head:t+o}}return{doc:h,sel:m,from:o,to:s}}function Ds(e){let t=e.pmViewDesc;if(t)return t.parseRule();if(e.nodeName==`BR`&&e.parentNode){if(Qr&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement(`div`);return e.appendChild(document.createElement(`li`)),{skip:e}}else if(e.parentNode.lastChild==e||Qr&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName==`IMG`&&e.getAttribute(`mark-placeholder`))return{ignore:!0};return null}var Os=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function ks(e,t,n,r,i){let a=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,n=ca(e,t);if(n&&!e.state.selection.eq(n)){if(Xr&&ni&&e.input.lastKeyCode===13&&Date.now()-100<e.input.lastKeyCodeTime&&e.someProp(`handleKeyDown`,t=>t(e,Lr(13,`Enter`))))return;let r=e.state.tr.setSelection(n);t==`pointer`?r.setMeta(`pointer`,!0):t==`key`&&r.scrollIntoView(),a&&r.setMeta(`composition`,a),e.dispatch(r)}return}let o=e.state.doc.resolve(t),s=o.sharedDepth(n);t=o.before(s+1),n=e.state.doc.resolve(n).after(s+1);let c=e.state.selection,l=Es(e,t,n),u=e.state.doc,d=u.slice(l.from,l.to),f,p;e.input.lastKeyCode===8&&Date.now()-100<e.input.lastKeyCodeTime?(f=e.state.selection.to,p=`end`):(f=e.state.selection.from,p=`start`),e.input.lastKeyCode=null;let m=Ps(d.content,l.doc.content,l.from,f,p);if(m&&e.input.domChangeCount++,($r&&e.input.lastIOSEnter>Date.now()-225||ni)&&i.some(e=>e.nodeType==1&&!Os.test(e.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp(`handleKeyDown`,t=>t(e,Lr(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(!m)if(r&&c instanceof I&&!c.empty&&c.$head.sameParent(c.$anchor)&&!e.composing&&!(l.sel&&l.sel.anchor!=l.sel.head))m={start:c.from,endA:c.to,endB:c.to};else{if(l.sel){let t=As(e,e.state.doc,l.sel);if(t&&!t.eq(e.state.selection)){let n=e.state.tr.setSelection(t);a&&n.setMeta(`composition`,a),e.dispatch(n)}}return}e.state.selection.from<e.state.selection.to&&m.start==m.endB&&e.state.selection instanceof I&&(m.start>e.state.selection.from&&m.start<=e.state.selection.from+2&&e.state.selection.from>=l.from?m.start=e.state.selection.from:m.endA<e.state.selection.to&&m.endA>=e.state.selection.to-2&&e.state.selection.to<=l.to&&(m.endB+=e.state.selection.to-m.endA,m.endA=e.state.selection.to)),Kr&&qr<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>l.from&&l.doc.textBetween(m.start-l.from-1,m.start-l.from+1)==` \xA0`&&(m.start--,m.endA--,m.endB--);let h=l.doc.resolveNoCache(m.start-l.from),g=l.doc.resolveNoCache(m.endB-l.from),_=u.resolve(m.start),v=h.sameParent(g)&&h.parent.inlineContent&&_.end()>=m.endA;if(($r&&e.input.lastIOSEnter>Date.now()-225&&(!v||i.some(e=>e.nodeName==`DIV`||e.nodeName==`P`))||!v&&h.pos<l.doc.content.size&&(!h.sameParent(g)||!h.parent.inlineContent)&&h.pos<g.pos&&!/\S/.test(l.doc.textBetween(h.pos,g.pos,``,``)))&&e.someProp(`handleKeyDown`,t=>t(e,Lr(13,`Enter`)))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>m.start&&Ms(u,m.start,m.endA,h,g)&&e.someProp(`handleKeyDown`,t=>t(e,Lr(8,`Backspace`)))){ni&&Xr&&e.domObserver.suppressSelectionUpdates();return}Xr&&m.endB==m.start&&(e.input.lastChromeDelete=Date.now()),ni&&!v&&h.start()!=g.start()&&g.parentOffset==0&&h.depth==g.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==m.endA&&(m.endB-=2,g=l.doc.resolveNoCache(m.endB-l.from),setTimeout(()=>{e.someProp(`handleKeyDown`,function(t){return t(e,Lr(13,`Enter`))})},20));let y=m.start,b=m.endA,x=t=>{let n=t||e.state.tr.replace(y,b,l.doc.slice(m.start-l.from,m.endB-l.from));if(l.sel){let t=As(e,n.doc,l.sel);t&&!(Xr&&e.composing&&t.empty&&(m.start!=m.endB||e.input.lastChromeDelete<Date.now()-100)&&(t.head==y||t.head==n.mapping.map(b)-1)||Kr&&t.empty&&t.head==y)&&n.setSelection(t)}return a&&n.setMeta(`composition`,a),n.scrollIntoView()},S;if(v)if(h.pos==g.pos){Kr&&qr<=11&&h.parentOffset==0&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>ua(e),20));let t=x(e.state.tr.delete(y,b)),n=u.resolve(m.start).marksAcross(u.resolve(m.endA));n&&t.ensureMarks(n),e.dispatch(t)}else if(m.endA==m.endB&&(S=js(h.parent.content.cut(h.parentOffset,g.parentOffset),_.parent.content.cut(_.parentOffset,m.endA-_.start())))){let t=x(e.state.tr);S.type==`add`?t.addMark(y,b,S.mark):t.removeMark(y,b,S.mark),e.dispatch(t)}else if(h.parent.child(h.index()).isText&&h.index()==g.index()-(g.textOffset?0:1)){let t=h.parent.textBetween(h.parentOffset,g.parentOffset),n=()=>x(e.state.tr.insertText(t,y,b));e.someProp(`handleTextInput`,r=>r(e,y,b,t,n))||e.dispatch(n())}else e.dispatch(x());else e.dispatch(x())}function As(e,t,n){return Math.max(n.anchor,n.head)>t.content.size?null:ya(e,t.resolve(n.anchor),t.resolve(n.head))}function js(e,t){let n=e.firstChild.marks,r=t.firstChild.marks,i=n,a=r,o,s,c;for(let e=0;e<r.length;e++)i=r[e].removeFromSet(i);for(let e=0;e<n.length;e++)a=n[e].removeFromSet(a);if(i.length==1&&a.length==0)s=i[0],o=`add`,c=e=>e.mark(s.addToSet(e.marks));else if(i.length==0&&a.length==1)s=a[0],o=`remove`,c=e=>e.mark(s.removeFromSet(e.marks));else return null;let l=[];for(let e=0;e<t.childCount;e++)l.push(c(t.child(e)));if(j.from(l).eq(e))return{mark:s,type:o}}function Ms(e,t,n,r,i){if(n-t<=i.pos-r.pos||Ns(r,!0,!1)<i.pos)return!1;let a=e.resolve(t);if(!r.parent.isTextblock){let e=a.nodeAfter;return e!=null&&n==t+e.nodeSize}if(a.parentOffset<a.parent.content.size||!a.parent.isTextblock)return!1;let o=e.resolve(Ns(a,!0,!0));return!o.parent.isTextblock||o.pos>n||Ns(o,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(o.parent.content)}function Ns(e,t,n){let r=e.depth,i=t?e.end():e.pos;for(;r>0&&(t||e.indexAfter(r)==e.node(r).childCount);)r--,i++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));for(;t&&!t.isLeaf;)t=t.firstChild,i++}return i}function Ps(e,t,n,r,i){let a=e.findDiffStart(t,n),o=n+e.size,s=n+t.size;if(a==null)return null;let{a:c,b:l}=e.findDiffEnd(t,o,s);if(i==`end`){let e=Math.max(0,a-Math.min(c,l));r-=c+e-a}if(c<a&&o<s){let e=r<=a&&r>=c?a-r:0;a-=e,l=a+(l-c),c=a}else if(l<a){let e=r<=a&&r>=l?a-r:0;a-=e,c=a+(c-l),l=a}return{start:a,endA:c,endB:l}}var Fs=class{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new so,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(Hs),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=Rs(this),Ls(this),this.nodeViews=Bs(this),this.docView=Hi(this.state.doc,Is(this),ms(this),this.dom,this),this.domObserver=new vs(this,(e,t,n,r)=>ks(this,e,t,n,r)),this.domObserver.start(),co(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;for(let t in this._props={},e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&fo(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(Hs),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let e in this._props)t[e]=this._props[e];for(let n in t.state=this.state,e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){let n=this.state,r=!1,i=!1;e.storedMarks&&this.composing&&(Fo(this),i=!0),this.state=e;let a=n.plugins!=e.plugins||this._props.plugins!=t.plugins;if(a||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=Bs(this);Vs(e,this.nodeViews)&&(this.nodeViews=e,r=!0)}(a||t.handleDOMEvents!=this._props.handleDOMEvents)&&fo(this),this.editable=Rs(this),Ls(this);let o=ms(this),s=Is(this),c=n.plugins!=e.plugins&&!n.doc.eq(e.doc)?`reset`:e.scrollToSelection>n.scrollToSelection?`to selection`:`preserve`,l=r||!this.docView.matchesNode(e.doc,s,o);(l||!e.selection.eq(n.selection))&&(i=!0);let u=c==`preserve`&&i&&this.dom.style.overflowAnchor==null&&ci(this);if(i){this.domObserver.stop();let t=l&&(Kr||Xr)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&zs(n.selection,e.selection);if(l){let n=Xr?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=Io(this)),(r||!this.docView.update(e.doc,s,o,this))&&(this.docView.updateOuterDeco(s),this.docView.destroy(),this.docView=Hi(e.doc,s,o,this.dom,this)),n&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(t=!0)}let i=this.input.mouseDown;t||!(i&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Sa(this)&&i.delaySelUpdate())?ua(this,t):(_a(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),this.dragging?.node&&!n.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,n),c==`reset`?this.dom.scrollTop=0:c==`to selection`?this.scrollToSelection():u&&ui(u)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))&&!this.someProp(`handleScrollToSelection`,e=>e(this)))if(this.state.selection instanceof L){let t=this.docView.domAfterPos(this.state.selection.from);t.nodeType==1&&si(this,t.getBoundingClientRect(),e)}else si(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;e<this.directPlugins.length;e++){let t=this.directPlugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}for(let e=0;e<this.state.plugins.length;e++){let t=this.state.plugins[e];t.spec.view&&this.pluginViews.push(t.spec.view(this))}}else for(let t=0;t<this.pluginViews.length;t++){let n=this.pluginViews[t];n.update&&n.update(this,e)}}updateDraggedNode(e,t){let n=e.node,r=-1;if(n.from<this.state.doc.content.size&&this.state.doc.nodeAt(n.from)==n.node)r=n.from;else{let e=n.from+(this.state.doc.content.size-t.doc.content.size);(e>0&&e<this.state.doc.content.size&&this.state.doc.nodeAt(e))==n.node&&(r=e)}this.dragging=new Wo(e.slice,e.move,r<0?void 0:L.create(this.state.doc,r))}someProp(e,t){let n=this._props&&this._props[e],r;if(n!=null&&(r=t?t(n):n))return r;for(let n=0;n<this.directPlugins.length;n++){let i=this.directPlugins[n].props[e];if(i!=null&&(r=t?t(i):i))return r}let i=this.state.plugins;if(i)for(let n=0;n<i.length;n++){let a=i[n].props[e];if(a!=null&&(r=t?t(a):a))return r}}hasFocus(){if(Kr){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&&pi(this.dom),ua(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let e=this.dom.parentNode;e;e=e.parentNode)if(e.nodeType==9||e.nodeType==11&&e.host)return e.getSelection||(Object.getPrototypeOf(e).getSelection=()=>e.ownerDocument.getSelection()),this._root=e}return e||document}updateRoot(){this._root=null}posAtCoords(e){return xi(this,e)}coordsAtPos(e,t=1){return Ti(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(r==null)throw RangeError(`DOM position not inside the editor`);return r}endOfTextblock(e,t){return Fi(this,t||this.state,e)}pasteHTML(e,t){return Ho(this,``,e,!1,t||new ClipboardEvent(`paste`))}pasteText(e,t){return Ho(this,e,null,!0,t||new ClipboardEvent(`paste`))}serializeForClipboard(e){return Ha(this,e)}destroy(){this.docView&&(uo(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],ms(this),this),this.dom.textContent=``):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,Dr())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return ho(this,e)}domSelectionRange(){let e=this.domSelection();return e?Qr&&this.root.nodeType===11&&Rr(this.dom.ownerDocument)==this.dom&&Cs(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}};Fs.prototype.dispatch=function(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))};function Is(e){let t=Object.create(null);return t.class=`ProseMirror`,t.contenteditable=String(e.editable),e.someProp(`attributes`,n=>{if(typeof n==`function`&&(n=n(e.state)),n)for(let e in n)e==`class`?t.class+=` `+n[e]:e==`style`?t.style=(t.style?t.style+`;`:``)+n[e]:!t[e]&&e!=`contenteditable`&&e!=`nodeName`&&(t[e]=String(n[e]))}),t.translate||=`no`,[Qo.node(0,e.state.doc.content.size,t)]}function Ls(e){if(e.markCursor){let t=document.createElement(`img`);t.className=`ProseMirror-separator`,t.setAttribute(`mark-placeholder`,`true`),t.setAttribute(`alt`,``),e.cursorWrapper={dom:t,deco:Qo.widget(e.state.selection.from,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function Rs(e){return!e.someProp(`editable`,t=>t(e.state)===!1)}function zs(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function Bs(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp(`nodeViews`,n),e.someProp(`markViews`,n),t}function Vs(e,t){let n=0,r=0;for(let r in e){if(e[r]!=t[r])return!0;n++}for(let e in t)r++;return n!=r}function Hs(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw RangeError(`Plugins passed directly to the view must not have a state component`)}for(var Us={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:`'`},Ws={48:`)`,49:`!`,50:`@`,51:`#`,52:`$`,53:`%`,54:`^`,55:`&`,56:`*`,57:`(`,59:`:`,61:`+`,173:`_`,186:`:`,187:`+`,188:`<`,189:`_`,190:`>`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},Gs=typeof navigator<`u`&&/Macintosh/.test(navigator.userAgent),Ks=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),qs=0;qs<10;qs++)Us[48+qs]=Us[96+qs]=String(qs);for(var qs=1;qs<=24;qs++)Us[qs+111]=`F`+qs;for(var qs=65;qs<=90;qs++)Us[qs]=String.fromCharCode(qs+32),Ws[qs]=String.fromCharCode(qs);for(var Js in Us)Ws.hasOwnProperty(Js)||(Ws[Js]=Us[Js]);function Ys(e){var t=!(Gs&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||Ks&&e.shiftKey&&e.key&&e.key.length==1||e.key==`Unidentified`)&&e.key||(e.shiftKey?Ws:Us)[e.keyCode]||e.key||`Unidentified`;return t==`Esc`&&(t=`Escape`),t==`Del`&&(t=`Delete`),t==`Left`&&(t=`ArrowLeft`),t==`Up`&&(t=`ArrowUp`),t==`Right`&&(t=`ArrowRight`),t==`Down`&&(t=`ArrowDown`),t}var Xs=typeof navigator<`u`&&/Macintosh|iPhone|iPad|iPod/.test(navigator.userAgent),Zs=typeof navigator<`u`&&/Win/.test(navigator.platform);function Qs(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n==`Space`&&(n=` `);let r,i,a,o;for(let e=0;e<t.length-1;e++){let n=t[e];if(/^(cmd|meta|m)$/i.test(n))o=!0;else if(/^a(lt)?$/i.test(n))r=!0;else if(/^(c|ctrl|control)$/i.test(n))i=!0;else if(/^s(hift)?$/i.test(n))a=!0;else if(/^mod$/i.test(n))Xs?o=!0:i=!0;else throw Error(`Unrecognized modifier name: `+n)}return r&&(n=`Alt-`+n),i&&(n=`Ctrl-`+n),o&&(n=`Meta-`+n),a&&(n=`Shift-`+n),n}function $s(e){let t=Object.create(null);for(let n in e)t[Qs(n)]=e[n];return t}function ec(e,t,n=!0){return t.altKey&&(e=`Alt-`+e),t.ctrlKey&&(e=`Ctrl-`+e),t.metaKey&&(e=`Meta-`+e),n&&t.shiftKey&&(e=`Shift-`+e),e}function W(e){return new yr({props:{handleKeyDown:tc(e)}})}function tc(e){let t=$s(e);return function(e,n){let r=Ys(n),i,a=t[ec(r,n)];if(a&&a(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=` `){if(n.shiftKey){let i=t[ec(r,n,!1)];if(i&&i(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(Zs&&n.ctrlKey&&n.altKey)&&(i=Us[n.keyCode])&&i!=r){let r=t[ec(i,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}var G=(e,t)=>e.selection.empty?!1:(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function nc(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`backward`,e):n.parentOffset>0)?null:n}var rc=(e,t,n)=>{let r=nc(e,n);if(!r)return!1;let i=lc(r);if(!i){let n=r.blockRange(),i=n&&pn(n);return i==null?!1:(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let a=i.nodeBefore;if(Ec(e,i,t,-1))return!0;if(r.parent.content.size==0&&(sc(a,`end`)||L.isSelectable(a)))for(let n=r.depth;;n--){let o=Pn(e.doc,r.before(n),r.after(n),N.empty);if(o&&o.slice.size<o.to-o.from){if(t){let n=e.tr.step(o);n.setSelection(sc(a,`end`)?F.findFrom(n.doc.resolve(n.mapping.map(i.pos,-1)),-1):L.create(n.doc,i.pos-a.nodeSize)),t(n.scrollIntoView())}return!0}if(n==1||r.node(n-1).childCount>1)break}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos-a.nodeSize,i.pos).scrollIntoView()),!0):!1},ic=(e,t,n)=>{let r=nc(e,n);if(!r)return!1;let i=lc(r);return i?oc(e,i,t):!1},ac=(e,t,n)=>{let r=uc(e,n);if(!r)return!1;let i=pc(r);return i?oc(e,i,t):!1};function oc(e,t,n){let r=t.nodeBefore,i=t.pos-1;for(;!r.isTextblock;i--){if(r.type.spec.isolating)return!1;let e=r.lastChild;if(!e)return!1;r=e}let a=t.nodeAfter,o=t.pos+1;for(;!a.isTextblock;o++){if(a.type.spec.isolating)return!1;let e=a.firstChild;if(!e)return!1;a=e}let s=Pn(e.doc,i,o,N.empty);if(!s||s.from!=i||s instanceof sn&&s.slice.size>=o-i)return!1;if(n){let t=e.tr.step(s);t.setSelection(I.create(t.doc,i)),n(t.scrollIntoView())}return!0}function sc(e,t,n=!1){for(let r=e;r;r=t==`start`?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(n&&r.childCount!=1)return!1}return!1}var cc=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock(`backward`,e):r.parentOffset>0)return!1;a=lc(r)}let o=a&&a.nodeBefore;return!o||!L.isSelectable(o)?!1:(t&&t(e.tr.setSelection(L.create(e.doc,a.pos-o.nodeSize)).scrollIntoView()),!0)};function lc(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function uc(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock(`forward`,e):n.parentOffset<n.parent.content.size)?null:n}var dc=(e,t,n)=>{let r=uc(e,n);if(!r)return!1;let i=pc(r);if(!i)return!1;let a=i.nodeAfter;if(Ec(e,i,t,1))return!0;if(r.parent.content.size==0&&(sc(a,`start`)||L.isSelectable(a))){let n=Pn(e.doc,r.before(),r.after(),N.empty);if(n&&n.slice.size<n.to-n.from){if(t){let r=e.tr.step(n);r.setSelection(sc(a,`start`)?F.findFrom(r.doc.resolve(r.mapping.map(i.pos)),1):L.create(r.doc,r.mapping.map(i.pos))),t(r.scrollIntoView())}return!0}}return a.isAtom&&i.depth==r.depth-1?(t&&t(e.tr.delete(i.pos,i.pos+a.nodeSize).scrollIntoView()),!0):!1},fc=(e,t,n)=>{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock(`forward`,e):r.parentOffset<r.parent.content.size)return!1;a=pc(r)}let o=a&&a.nodeAfter;return!o||!L.isSelectable(o)?!1:(t&&t(e.tr.setSelection(L.create(e.doc,a.pos)).scrollIntoView()),!0)};function pc(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let n=e.node(t);if(e.index(t)+1<n.childCount)return e.doc.resolve(e.after(t+1));if(n.type.spec.isolating)break}return null}var mc=(e,t)=>{let n=e.selection,r=n instanceof L,i;if(r){if(n.node.isTextblock||!Dn(e.doc,n.from))return!1;i=n.from}else if(i=An(e.doc,n.from,-1),i==null)return!1;if(t){let n=e.tr.join(i);r&&n.setSelection(L.create(n.doc,i-e.doc.resolve(i).nodeBefore.nodeSize)),t(n.scrollIntoView())}return!0},K=(e,t)=>{let n=e.selection,r;if(n instanceof L){if(n.node.isTextblock||!Dn(e.doc,n.to))return!1;r=n.to}else if(r=An(e.doc,n.to,1),r==null)return!1;return t&&t(e.tr.join(r).scrollIntoView()),!0},hc=(e,t)=>{let{$from:n,$to:r}=e.selection,i=n.blockRange(r),a=i&&pn(i);return a==null?!1:(t&&t(e.tr.lift(i,a).scrollIntoView()),!0)},gc=(e,t)=>{let{$head:n,$anchor:r}=e.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(t&&t(e.tr.insertText(`
|
|
11
|
+
`).scrollIntoView()),!0)};function _c(e){for(let t=0;t<e.edgeCount;t++){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}var vc=(e,t)=>{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),o=_c(i.contentMatchAt(a));if(!o||!i.canReplaceWith(a,a,o))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,o.createAndFill());i.setSelection(F.near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},yc=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof ar||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=_c(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,o=e.tr.insert(n,a.createAndFill());o.setSelection(I.create(o.doc,n+1)),t(o.scrollIntoView())}return!0},bc=(e,t)=>{let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let r=n.before();if(Tn(e.doc,r))return t&&t(e.tr.split(r).scrollIntoView()),!0}let r=n.blockRange(),i=r&&pn(r);return i==null?!1:(t&&t(e.tr.lift(r,i).scrollIntoView()),!0)};function xc(e){return(t,n)=>{let{$from:r,$to:i}=t.selection;if(t.selection instanceof L&&t.selection.node.isBlock)return!r.parentOffset||!Tn(t.doc,r.pos)?!1:(n&&n(t.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let a=[],o,s,c=!1,l=!1;for(let t=r.depth;;t--)if(r.node(t).isBlock){c=r.end(t)==r.pos+(r.depth-t),l=r.start(t)==r.pos-(r.depth-t),s=_c(r.node(t-1).contentMatchAt(r.indexAfter(t-1)));let n=e&&e(i.parent,c,r);a.unshift(n||(c&&s?{type:s}:null)),o=t;break}else{if(t==1)return!1;a.unshift(null)}let u=t.tr;(t.selection instanceof I||t.selection instanceof ar)&&u.deleteSelection();let d=u.mapping.map(r.pos),f=Tn(u.doc,d,a.length,a);if(f||=(a[0]=s?{type:s}:null,Tn(u.doc,d,a.length,a)),!f)return!1;if(u.split(d,a.length,a),!c&&l&&r.node(o).type!=s){let e=u.mapping.map(r.before(o)),t=u.doc.resolve(e);s&&r.node(o-1).canReplaceWith(t.index(),t.index()+1,s)&&u.setNodeMarkup(u.mapping.map(r.before(o)),s)}return n&&n(u.scrollIntoView()),!0}}var Sc=xc(),Cc=(e,t)=>{let{$from:n,to:r}=e.selection,i,a=n.sharedDepth(r);return a==0?!1:(i=n.before(a),t&&t(e.tr.setSelection(L.create(e.doc,i))),!0)},wc=(e,t)=>(t&&t(e.tr.setSelection(new ar(e.doc))),!0);function Tc(e,t,n){let r=t.nodeBefore,i=t.nodeAfter,a=t.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-r.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(a,a+1)||!(i.isTextblock||Dn(e.doc,t.pos))?!1:(n&&n(e.tr.join(t.pos).scrollIntoView()),!0)}function Ec(e,t,n,r){let i=t.nodeBefore,a=t.nodeAfter,o,s,c=i.type.spec.isolating||a.type.spec.isolating;if(!c&&Tc(e,t,n))return!0;let l=!c&&t.parent.canReplace(t.index(),t.index()+1);if(l&&(o=(s=i.contentMatchAt(i.childCount)).findWrapping(a.type))&&s.matchType(o[0]||a.type).validEnd){if(n){let r=t.pos+a.nodeSize,s=j.empty;for(let e=o.length-1;e>=0;e--)s=j.from(o[e].create(null,s));s=j.from(i.copy(s));let c=e.tr.step(new cn(t.pos-1,r,t.pos,r,new N(s,1,0),o.length,!0)),l=c.doc.resolve(r+2*o.length);l.nodeAfter&&l.nodeAfter.type==i.type&&Dn(c.doc,l.pos)&&c.join(l.pos),n(c.scrollIntoView())}return!0}let u=a.type.spec.isolating||r>0&&c?null:F.findFrom(t,1),d=u&&u.$from.blockRange(u.$to),f=d&&pn(d);if(f!=null&&f>=t.depth)return n&&n(e.tr.lift(d,f).scrollIntoView()),!0;if(l&&sc(a,`start`,!0)&&sc(i,`end`)){let r=i,o=[];for(;o.push(r),!r.isTextblock;)r=r.lastChild;let s=a,c=1;for(;!s.isTextblock;s=s.firstChild)c++;if(r.canReplace(r.childCount,r.childCount,s.content)){if(n){let r=j.empty;for(let e=o.length-1;e>=0;e--)r=j.from(o[e].copy(r));n(e.tr.step(new cn(t.pos-o.length,t.pos+a.nodeSize,t.pos+c,t.pos+a.nodeSize-c,new N(r,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function Dc(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;for(;i.node(a).isInline;){if(!a)return!1;a--}return i.node(a).isTextblock?(n&&n(t.tr.setSelection(I.create(t.doc,e<0?i.start(a):i.end(a)))),!0):!1}}var Oc=Dc(-1),kc=Dc(1);function Ac(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a),s=o&&hn(o,e,t);return s?(r&&r(n.tr.wrap(o,s).scrollIntoView()),!0):!1}}function jc(e,t=null){return function(n,r){let i=!1;for(let r=0;r<n.selection.ranges.length&&!i;r++){let{$from:{pos:a},$to:{pos:o}}=n.selection.ranges[r];n.doc.nodesBetween(a,o,(r,a)=>{if(i)return!1;if(!(!r.isTextblock||r.hasMarkup(e,t)))if(r.type==e)i=!0;else{let t=n.doc.resolve(a),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r<n.selection.ranges.length;r++){let{$from:{pos:a},$to:{pos:o}}=n.selection.ranges[r];i.setBlockType(a,o,e,t)}r(i.scrollIntoView())}return!0}}function Mc(...e){return function(t,n,r){for(let i=0;i<e.length;i++)if(e[i](t,n,r))return!0;return!1}}var Nc=Mc(G,rc,cc),Pc=Mc(G,dc,fc),Fc={Enter:Mc(gc,yc,bc,Sc),"Mod-Enter":vc,Backspace:Nc,"Mod-Backspace":Nc,"Shift-Backspace":Nc,Delete:Pc,"Mod-Delete":Pc,"Mod-a":wc},Ic={"Ctrl-h":Fc.Backspace,"Alt-Backspace":Fc[`Mod-Backspace`],"Ctrl-d":Fc.Delete,"Ctrl-Alt-Backspace":Fc[`Mod-Delete`],"Alt-Delete":Fc[`Mod-Delete`],"Alt-d":Fc[`Mod-Delete`],"Ctrl-a":Oc,"Ctrl-e":kc};for(let e in Fc)Ic[e]=Fc[e];typeof navigator<`u`?/Macintosh|iPhone|iPad|iPod/.test(navigator.userAgent):typeof os<`u`&&os.platform&&os.platform();function Lc(e,t=null){return function(n,r){let{$from:i,$to:a}=n.selection,o=i.blockRange(a);if(!o)return!1;let s=r?n.tr:null;return Rc(s,o,e,t)?(r&&r(s.scrollIntoView()),!0):!1}}function Rc(e,t,n,r=null){let i=!1,a=t,o=t.$from.doc;if(t.depth>=2&&t.$from.node(t.depth-1).type.compatibleContent(n)&&t.startIndex==0){if(t.$from.index(t.depth-1)==0)return!1;let e=o.resolve(t.start-2);a=new He(e,e,t.depth),t.endIndex<t.parent.childCount&&(t=new He(t.$from,o.resolve(t.$to.end(t.depth)),t.depth)),i=!0}let s=hn(a,n,r,t);return s?(e&&zc(e,t,s,i,n),!0):!1}function zc(e,t,n,r,i){let a=j.empty;for(let e=n.length-1;e>=0;e--)a=j.from(n[e].type.create(n[e].attrs,a));e.step(new cn(t.start-(r?2:0),t.end,t.start,t.end,new N(a,0,0),n.length,!0));let o=0;for(let e=0;e<n.length;e++)n[e].type==i&&(o=e+1);let s=n.length-o,c=t.start+n.length-(r?2:0),l=t.parent;for(let n=t.startIndex,r=t.endIndex,i=!0;n<r;n++,i=!1)!i&&Tn(e.doc,c,s)&&(e.split(c,s),c+=2*s),c+=l.child(n).nodeSize;return e}function Bc(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);return a?n?r.node(a.depth-1).type==e?Vc(t,n,e,a):Hc(t,n,a):!0:!1}}function Vc(e,t,n,r){let i=e.tr,a=r.end,o=r.$to.end(r.depth);a<o&&(i.step(new cn(a-1,o,a,o,new N(j.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new He(i.doc.resolve(r.$from.pos),i.doc.resolve(o),r.depth));let s=pn(r);if(s==null)return!1;i.lift(r,s);let c=i.doc.resolve(i.mapping.map(a,-1)-1);return Dn(i.doc,c.pos)&&c.nodeBefore.type==c.nodeAfter.type&&i.join(c.pos),t(i.scrollIntoView()),!0}function Hc(e,t,n){let r=e.tr,i=n.parent;for(let e=n.end,t=n.endIndex-1,a=n.startIndex;t>a;t--)e-=i.child(t).nodeSize,r.delete(e-1,e+1);let a=r.doc.resolve(n.start),o=a.nodeAfter;if(r.mapping.map(n.end)!=n.start+a.nodeAfter.nodeSize)return!1;let s=n.startIndex==0,c=n.endIndex==i.childCount,l=a.node(-1),u=a.index(-1);if(!l.canReplace(u+(s?0:1),u+1,o.content.append(c?j.empty:j.from(i))))return!1;let d=a.pos,f=d+o.nodeSize;return r.step(new cn(d-(s?1:0),f+(c?1:0),d+1,f-1,new N((s?j.empty:j.from(i.copy(j.empty))).append(c?j.empty:j.from(i.copy(j.empty))),s?0:1,c?0:1),s?0:1)),t(r.scrollIntoView()),!0}function Uc(e){return function(t,n){let{$from:r,$to:i}=t.selection,a=r.blockRange(i,t=>t.childCount>0&&t.firstChild.type==e);if(!a)return!1;let o=a.startIndex;if(o==0)return!1;let s=a.parent,c=s.child(o-1);if(c.type!=e)return!1;if(n){let r=c.lastChild&&c.lastChild.type==s.type,i=j.from(r?e.create():null),o=new N(j.from(e.create(null,j.from(s.type.create(null,i)))),r?3:1,0),l=a.start,u=a.end;n(t.tr.step(new cn(l-(r?3:1),u,l,u,o,1,!0)).scrollIntoView())}return!0}}function Wc(e){let{state:t,transaction:n}=e,{selection:r}=n,{doc:i}=n,{storedMarks:a}=n;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return a},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,a=n.storedMarks,n}}}var Gc=class{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){let{rawCommands:e,editor:t,state:n}=this,{view:r}=t,{tr:i}=n,a=this.buildProps(i);return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,(...e)=>{let n=t(...e)(a);return!i.getMeta(`preventDispatch`)&&!this.hasCustomState&&r.dispatch(i),n}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o=[],s=!!e,c=e||i.tr,l=()=>(!s&&t&&!c.getMeta(`preventDispatch`)&&!this.hasCustomState&&a.dispatch(c),o.every(e=>e===!0)),u={...Object.fromEntries(Object.entries(n).map(([e,n])=>[e,(...e)=>{let r=this.buildProps(c,t),i=n(...e)(r);return o.push(i),u}])),run:l};return u}createCan(e){let{rawCommands:t,state:n}=this,r=e||n.tr,i=this.buildProps(r,!1);return{...Object.fromEntries(Object.entries(t).map(([e,t])=>[e,(...e)=>t(...e)({...i,dispatch:void 0})])),chain:()=>this.createChain(r,!1)}}buildProps(e,t=!0){let{rawCommands:n,editor:r,state:i}=this,{view:a}=r,o={tr:e,editor:r,view:a,state:Wc({state:i,transaction:e}),dispatch:t?()=>void 0:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([e,t])=>[e,(...e)=>t(...e)(o)]))}};return o}},Kc=class{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){let n=this.callbacks[e];return n&&n.forEach(e=>e.apply(this,t)),this}off(e,t){let n=this.callbacks[e];return n&&(t?this.callbacks[e]=n.filter(e=>e!==t):delete this.callbacks[e]),this}once(e,t){let n=(...r)=>{this.off(e,n),t.apply(this,r)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}};function q(e,t,n){return e.config[t]===void 0&&e.parent?q(e.parent,t,n):typeof e.config[t]==`function`?e.config[t].bind({...n,parent:e.parent?q(e.parent,t,n):null}):e.config[t]}function qc(e){return{baseExtensions:e.filter(e=>e.type===`extension`),nodeExtensions:e.filter(e=>e.type===`node`),markExtensions:e.filter(e=>e.type===`mark`)}}function Jc(e){let t=[],{nodeExtensions:n,markExtensions:r}=qc(e),i=[...n,...r],a={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(e=>{let n=q(e,`addGlobalAttributes`,{name:e.name,options:e.options,storage:e.storage,extensions:i});n&&n().forEach(e=>{e.types.forEach(n=>{Object.entries(e.attributes).forEach(([e,r])=>{t.push({type:n,name:e,attribute:{...a,...r}})})})})}),i.forEach(e=>{let n=q(e,`addAttributes`,{name:e.name,options:e.options,storage:e.storage});if(!n)return;let r=n();Object.entries(r).forEach(([n,r])=>{let i={...a,...r};typeof i?.default==`function`&&(i.default=i.default()),i?.isRequired&&i?.default===void 0&&delete i.default,t.push({type:e.name,name:n,attribute:i})})}),t}function Yc(e,t){if(typeof e==`string`){if(!t.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return t.nodes[e]}return e}function Xc(...e){return e.filter(e=>!!e).reduce((e,t)=>{let n={...e};return Object.entries(t).forEach(([e,t])=>{if(!n[e]){n[e]=t;return}if(e===`class`){let r=t?String(t).split(` `):[],i=n[e]?n[e].split(` `):[],a=r.filter(e=>!i.includes(e));n[e]=[...i,...a].join(` `)}else if(e===`style`){let r=t?t.split(`;`).map(e=>e.trim()).filter(Boolean):[],i=n[e]?n[e].split(`;`).map(e=>e.trim()).filter(Boolean):[],a=new Map;i.forEach(e=>{let[t,n]=e.split(`:`).map(e=>e.trim());a.set(t,n)}),r.forEach(e=>{let[t,n]=e.split(`:`).map(e=>e.trim());a.set(t,n)}),n[e]=Array.from(a.entries()).map(([e,t])=>`${e}: ${t}`).join(`; `)}else n[e]=t}),n},{})}function Zc(e,t){return t.filter(t=>t.type===e.type.name).filter(e=>e.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(e.attrs)||{}:{[t.name]:e.attrs[t.name]}).reduce((e,t)=>Xc(e,t),{})}function Qc(e){return typeof e==`function`}function J(e,t=void 0,...n){return Qc(e)?t?e.bind(t)(...n):e(...n):e}function $c(e={}){return Object.keys(e).length===0&&e.constructor===Object}function el(e){return typeof e==`string`?e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e===`true`?!0:e===`false`?!1:e:e}function tl(e,t){return`style`in e?e:{...e,getAttrs:n=>{let r=e.getAttrs?e.getAttrs(n):e.attrs;if(r===!1)return!1;let i=t.reduce((e,t)=>{let r=t.attribute.parseHTML?t.attribute.parseHTML(n):el(n.getAttribute(t.name));return r==null?e:{...e,[t.name]:r}},{});return{...r,...i}}}}function nl(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>e===`attrs`&&$c(t)?!1:t!=null))}function rl(e,t){let n=Jc(e),{nodeExtensions:r,markExtensions:i}=qc(e);return new ht({topNode:r.find(e=>q(e,`topNode`))?.name,nodes:Object.fromEntries(r.map(r=>{let i=n.filter(e=>e.type===r.name),a={name:r.name,options:r.options,storage:r.storage,editor:t},o=nl({...e.reduce((e,t)=>{let n=q(t,`extendNodeSchema`,a);return{...e,...n?n(r):{}}},{}),content:J(q(r,`content`,a)),marks:J(q(r,`marks`,a)),group:J(q(r,`group`,a)),inline:J(q(r,`inline`,a)),atom:J(q(r,`atom`,a)),selectable:J(q(r,`selectable`,a)),draggable:J(q(r,`draggable`,a)),code:J(q(r,`code`,a)),whitespace:J(q(r,`whitespace`,a)),linebreakReplacement:J(q(r,`linebreakReplacement`,a)),defining:J(q(r,`defining`,a)),isolating:J(q(r,`isolating`,a)),attrs:Object.fromEntries(i.map(e=>[e.name,{default:e?.attribute?.default}]))}),s=J(q(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>tl(e,i)));let c=q(r,`renderHTML`,a);c&&(o.toDOM=e=>c({node:e,HTMLAttributes:Zc(e,i)}));let l=q(r,`renderText`,a);return l&&(o.toText=l),[r.name,o]})),marks:Object.fromEntries(i.map(r=>{let i=n.filter(e=>e.type===r.name),a={name:r.name,options:r.options,storage:r.storage,editor:t},o=nl({...e.reduce((e,t)=>{let n=q(t,`extendMarkSchema`,a);return{...e,...n?n(r):{}}},{}),inclusive:J(q(r,`inclusive`,a)),excludes:J(q(r,`excludes`,a)),group:J(q(r,`group`,a)),spanning:J(q(r,`spanning`,a)),code:J(q(r,`code`,a)),attrs:Object.fromEntries(i.map(e=>[e.name,{default:e?.attribute?.default}]))}),s=J(q(r,`parseHTML`,a));s&&(o.parseDOM=s.map(e=>tl(e,i)));let c=q(r,`renderHTML`,a);return c&&(o.toDOM=e=>c({mark:e,HTMLAttributes:Zc(e,i)})),[r.name,o]}))})}function il(e,t){return t.nodes[e]||t.marks[e]||null}function al(e,t){return Array.isArray(t)?t.some(t=>(typeof t==`string`?t:t.name)===e.name):t}function ol(e,t){let n=Nt.fromSchema(t).serializeFragment(e),r=document.implementation.createHTMLDocument().createElement(`div`);return r.appendChild(n),r.innerHTML}var sl=(e,t=500)=>{let n=``,r=e.parentOffset;return e.parent.nodesBetween(Math.max(0,r-t),r,(e,t,i,a)=>{var o;let s=(o=e.type.spec).toText?.call(o,{node:e,pos:t,parent:i,index:a})||e.textContent||`%leaf%`;n+=e.isAtom&&!e.isText?s:s.slice(0,Math.max(0,r-t))}),n};function cl(e){return Object.prototype.toString.call(e)===`[object RegExp]`}var ll=class{constructor(e){this.find=e.find,this.handler=e.handler}},ul=(e,t)=>{if(cl(t))return t.exec(e);let n=t(e);if(!n)return null;let r=[n.text];return r.index=n.index,r.input=e,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn(`[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".`),r.push(n.replaceWith)),r};function dl(e){let{editor:t,from:n,to:r,text:i,rules:a,plugin:o}=e,{view:s}=t;if(s.composing)return!1;let c=s.state.doc.resolve(n);if(c.parent.type.spec.code||(c.nodeBefore||c.nodeAfter)?.marks.find(e=>e.type.spec.code))return!1;let l=!1,u=sl(c)+i;return a.forEach(e=>{if(l)return;let a=ul(u,e.find);if(!a)return;let c=s.state.tr,d=Wc({state:s.state,transaction:c}),f={from:n-(a[0].length-i.length),to:r},{commands:p,chain:m,can:h}=new Gc({editor:t,state:d});e.handler({state:d,range:f,match:a,commands:p,chain:m,can:h})===null||!c.steps.length||(c.setMeta(o,{transform:c,from:n,to:r,text:i}),s.dispatch(c),l=!0)}),l}function fl(e){let{editor:t,rules:n}=e,r=new yr({state:{init(){return null},apply(e,i,a){let o=e.getMeta(r);if(o)return o;let s=e.getMeta(`applyInputRules`);return s&&setTimeout(()=>{let{text:e}=s;e=typeof e==`string`?e:ol(j.from(e),a.schema);let{from:i}=s;dl({editor:t,from:i,to:i+e.length,text:e,rules:n,plugin:r})}),e.selectionSet||e.docChanged?null:i}},props:{handleTextInput(e,i,a,o){return dl({editor:t,from:i,to:a,text:o,rules:n,plugin:r})},handleDOMEvents:{compositionend:e=>(setTimeout(()=>{let{$cursor:i}=e.state.selection;i&&dl({editor:t,from:i.pos,to:i.pos,text:``,rules:n,plugin:r})}),!1)},handleKeyDown(e,i){if(i.key!==`Enter`)return!1;let{$cursor:a}=e.state.selection;return a?dl({editor:t,from:a.pos,to:a.pos,text:`
|
|
12
|
+
`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function pl(e){return Object.prototype.toString.call(e).slice(8,-1)}function ml(e){return pl(e)===`Object`?e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype:!1}function hl(e,t){let n={...e};return ml(e)&&ml(t)&&Object.keys(t).forEach(r=>{ml(t[r])&&ml(e[r])?n[r]=hl(e[r],t[r]):n[r]=t[r]}),n}var gl=class e{constructor(e={}){this.type=`mark`,this.name=`mark`,this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=J(q(this,`addOptions`,{name:this.name}))),this.storage=J(q(this,`addStorage`,{name:this.name,options:this.options}))||{}}static create(t={}){return new e(t)}configure(e={}){let t=this.extend({...this.config,addOptions:()=>hl(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(t={}){let n=new e(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=J(q(n,`addOptions`,{name:n.name})),n.storage=J(q(n,`addStorage`,{name:n.name,options:n.options})),n}static handleExit({editor:e,mark:t}){let{tr:n}=e.state,r=e.state.selection.$from;if(r.pos===r.end()){let i=r.marks();if(!i.find(e=>e?.type.name===t.name))return!1;let a=i.find(e=>e?.type.name===t.name);return a&&n.removeStoredMark(a),n.insertText(` `,r.pos),e.view.dispatch(n),!0}return!1}};function _l(e){return typeof e==`number`}var vl=class{constructor(e){this.find=e.find,this.handler=e.handler}},yl=(e,t,n)=>{if(cl(t))return[...e.matchAll(t)];let r=t(e,n);return r?r.map(t=>{let n=[t.text];return n.index=t.index,n.input=e,n.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn(`[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".`),n.push(t.replaceWith)),n}):[]};function bl(e){let{editor:t,state:n,from:r,to:i,rule:a,pasteEvent:o,dropEvent:s}=e,{commands:c,chain:l,can:u}=new Gc({editor:t,state:n}),d=[];return n.doc.nodesBetween(r,i,(e,t)=>{if(!e.isTextblock||e.type.spec.code)return;let f=Math.max(r,t),p=Math.min(i,t+e.content.size);yl(e.textBetween(f-t,p-t,void 0,``),a.find,o).forEach(e=>{if(e.index===void 0)return;let t=f+e.index+1,r=t+e[0].length,i={from:n.tr.mapping.map(t),to:n.tr.mapping.map(r)},p=a.handler({state:n,range:i,match:e,commands:c,chain:l,can:u,pasteEvent:o,dropEvent:s});d.push(p)})}),d.every(e=>e!==null)}var xl=null,Sl=e=>{var t;let n=new ClipboardEvent(`paste`,{clipboardData:new DataTransfer});return(t=n.clipboardData)==null||t.setData(`text/html`,e),n};function Cl(e){let{editor:t,rules:n}=e,r=null,i=!1,a=!1,o=typeof ClipboardEvent<`u`?new ClipboardEvent(`paste`):null,s;try{s=typeof DragEvent<`u`?new DragEvent(`drop`):null}catch{s=null}let c=({state:e,from:n,to:r,rule:i,pasteEvt:a})=>{let c=e.tr;if(!(!bl({editor:t,state:Wc({state:e,transaction:c}),from:Math.max(n-1,0),to:r.b-1,rule:i,pasteEvent:a,dropEvent:s})||!c.steps.length)){try{s=typeof DragEvent<`u`?new DragEvent(`drop`):null}catch{s=null}return o=typeof ClipboardEvent<`u`?new ClipboardEvent(`paste`):null,c}};return n.map(e=>new yr({view(e){let n=n=>{r=e.dom.parentElement?.contains(n.target)?e.dom.parentElement:null,r&&(xl=t)},i=()=>{xl&&=null};return window.addEventListener(`dragstart`,n),window.addEventListener(`dragend`,i),{destroy(){window.removeEventListener(`dragstart`,n),window.removeEventListener(`dragend`,i)}}},props:{handleDOMEvents:{drop:(e,t)=>{if(a=r===e.dom.parentElement,s=t,!a){let e=xl;e?.isEditable&&setTimeout(()=>{let t=e.state.selection;t&&e.commands.deleteRange({from:t.from,to:t.to})},10)}return!1},paste:(e,t)=>{let n=t.clipboardData?.getData(`text/html`);return o=t,i=!!n?.includes(`data-pm-slice`),!1}}},appendTransaction:(t,n,r)=>{let s=t[0],l=s.getMeta(`uiEvent`)===`paste`&&!i,u=s.getMeta(`uiEvent`)===`drop`&&!a,d=s.getMeta(`applyPasteRules`),f=!!d;if(!l&&!u&&!f)return;if(f){let{text:t}=d;t=typeof t==`string`?t:ol(j.from(t),r.schema);let{from:n}=d,i=n+t.length,a=Sl(t);return c({rule:e,state:r,from:n,to:{b:i},pasteEvt:a})}let p=n.doc.content.findDiffStart(r.doc.content),m=n.doc.content.findDiffEnd(r.doc.content);if(!(!_l(p)||!m||p===m.b))return c({rule:e,state:r,from:p,to:m,pasteEvt:o})}}))}function wl(e){let t=e.filter((t,n)=>e.indexOf(t)!==n);return Array.from(new Set(t))}var Tl=class e{constructor(t,n){this.splittableMarks=[],this.editor=n,this.extensions=e.resolve(t),this.schema=rl(this.extensions,n),this.setupExtensions()}static resolve(t){let n=e.sort(e.flatten(t)),r=wl(n.map(e=>e.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(e=>`'${e}'`).join(`, `)}]. This can lead to issues.`),n}static flatten(e){return e.map(e=>{let t=q(e,`addExtensions`,{name:e.name,options:e.options,storage:e.storage});return t?[e,...this.flatten(t())]:e}).flat(10)}static sort(e){return e.sort((e,t)=>{let n=q(e,`priority`)||100,r=q(t,`priority`)||100;return n>r?-1:n<r?1:0})}get commands(){return this.extensions.reduce((e,t)=>{let n=q(t,`addCommands`,{name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:il(t.name,this.schema)});return n?{...e,...n()}:e},{})}get plugins(){let{editor:t}=this,n=e.sort([...this.extensions].reverse()),r=[],i=[],a=n.map(e=>{let n={name:e.name,options:e.options,storage:e.storage,editor:t,type:il(e.name,this.schema)},a=[],o=q(e,`addKeyboardShortcuts`,n),s={};if(e.type===`mark`&&q(e,`exitable`,n)&&(s.ArrowRight=()=>gl.handleExit({editor:t,mark:e})),o){let e=Object.fromEntries(Object.entries(o()).map(([e,n])=>[e,()=>n({editor:t})]));s={...s,...e}}let c=W(s);a.push(c);let l=q(e,`addInputRules`,n);al(e,t.options.enableInputRules)&&l&&r.push(...l());let u=q(e,`addPasteRules`,n);al(e,t.options.enablePasteRules)&&u&&i.push(...u());let d=q(e,`addProseMirrorPlugins`,n);if(d){let e=d();a.push(...e)}return a}).flat();return[fl({editor:t,rules:r}),...Cl({editor:t,rules:i}),...a]}get attributes(){return Jc(this.extensions)}get nodeViews(){let{editor:e}=this,{nodeExtensions:t}=qc(this.extensions);return Object.fromEntries(t.filter(e=>!!q(e,`addNodeView`)).map(t=>{let n=this.attributes.filter(e=>e.type===t.name),r=q(t,`addNodeView`,{name:t.name,options:t.options,storage:t.storage,editor:e,type:Yc(t.name,this.schema)});return r?[t.name,(i,a,o,s,c)=>{let l=Zc(i,n);return r()({node:i,view:a,getPos:o,decorations:s,innerDecorations:c,editor:e,extension:t,HTMLAttributes:l})}]:[]}))}setupExtensions(){this.extensions.forEach(e=>{this.editor.extensionStorage[e.name]=e.storage;let t={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:il(e.name,this.schema)};e.type===`mark`&&(J(q(e,`keepOnSplit`,t))??!0)&&this.splittableMarks.push(e.name);let n=q(e,`onBeforeCreate`,t),r=q(e,`onCreate`,t),i=q(e,`onUpdate`,t),a=q(e,`onSelectionUpdate`,t),o=q(e,`onTransaction`,t),s=q(e,`onFocus`,t),c=q(e,`onBlur`,t),l=q(e,`onDestroy`,t);n&&this.editor.on(`beforeCreate`,n),r&&this.editor.on(`create`,r),i&&this.editor.on(`update`,i),a&&this.editor.on(`selectionUpdate`,a),o&&this.editor.on(`transaction`,o),s&&this.editor.on(`focus`,s),c&&this.editor.on(`blur`,c),l&&this.editor.on(`destroy`,l)})}},El=class e{constructor(e={}){this.type=`extension`,this.name=`extension`,this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=J(q(this,`addOptions`,{name:this.name}))),this.storage=J(q(this,`addStorage`,{name:this.name,options:this.options}))||{}}static create(t={}){return new e(t)}configure(e={}){let t=this.extend({...this.config,addOptions:()=>hl(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(t={}){let n=new e({...this.config,...t});return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=J(q(n,`addOptions`,{name:n.name})),n.storage=J(q(n,`addStorage`,{name:n.name,options:n.options})),n}};function Dl(e,t,n){let{from:r,to:i}=t,{blockSeparator:a=`
|
|
13
|
+
|
|
14
|
+
`,textSerializers:o={}}=n||{},s=``;return e.nodesBetween(r,i,(e,n,c,l)=>{e.isBlock&&n>r&&(s+=a);let u=o?.[e.type.name];if(u)return c&&(s+=u({node:e,pos:n,parent:c,index:l,range:t})),!1;e.isText&&(s+=(e?.text)?.slice(Math.max(r,n)-n,i-n))}),s}function Ol(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}var kl=El.create({name:`clipboardTextSerializer`,addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new yr({key:new Sr(`clipboardTextSerializer`),props:{clipboardTextSerializer:()=>{let{editor:e}=this,{state:t,schema:n}=e,{doc:r,selection:i}=t,{ranges:a}=i,o=Math.min(...a.map(e=>e.$from.pos)),s=Math.max(...a.map(e=>e.$to.pos)),c=Ol(n);return Dl(r,{from:o,to:s},{...this.options.blockSeparator===void 0?{}:{blockSeparator:this.options.blockSeparator},textSerializers:c})}}})]}}),Al=()=>({editor:e,view:t})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(t.dom.blur(),(n=window==null?void 0:window.getSelection())==null||n.removeAllRanges())}),!0),jl=(e=!1)=>({commands:t})=>t.setContent(``,e),Ml=()=>({state:e,tr:t,dispatch:n})=>{let{selection:r}=t,{ranges:i}=r;return n&&i.forEach(({$from:n,$to:r})=>{e.doc.nodesBetween(n.pos,r.pos,(e,n)=>{if(e.type.isText)return;let{doc:r,mapping:i}=t,a=r.resolve(i.map(n)),o=r.resolve(i.map(n+e.nodeSize)),s=a.blockRange(o);if(!s)return;let c=pn(s);if(e.type.isTextblock){let{defaultType:e}=a.parent.contentMatchAt(a.index());t.setNodeMarkup(s.start,e)}(c||c===0)&&t.lift(s,c)})}),!0},Nl=e=>t=>e(t),Pl=()=>({state:e,dispatch:t})=>yc(e,t),Fl=(e,t)=>({editor:n,tr:r})=>{let{state:i}=n,a=i.doc.slice(e.from,e.to);r.deleteRange(e.from,e.to);let o=r.mapping.map(t);return r.insert(o,a.content),r.setSelection(new I(r.doc.resolve(Math.max(o-1,0)))),!0},Il=()=>({tr:e,dispatch:t})=>{let{selection:n}=e,r=n.$anchor.node();if(r.content.size>0)return!1;let i=e.selection.$anchor;for(let n=i.depth;n>0;--n)if(i.node(n).type===r.type){if(t){let t=i.before(n),r=i.after(n);e.delete(t,r).scrollIntoView()}return!0}return!1},Ll=e=>({tr:t,state:n,dispatch:r})=>{let i=Yc(e,n.schema),a=t.selection.$anchor;for(let e=a.depth;e>0;--e)if(a.node(e).type===i){if(r){let n=a.before(e),r=a.after(e);t.delete(n,r).scrollIntoView()}return!0}return!1},Rl=e=>({tr:t,dispatch:n})=>{let{from:r,to:i}=e;return n&&t.delete(r,i),!0},zl=()=>({state:e,dispatch:t})=>G(e,t),Bl=()=>({commands:e})=>e.keyboardShortcut(`Enter`),Vl=()=>({state:e,dispatch:t})=>vc(e,t);function Hl(e,t,n={strict:!0}){let r=Object.keys(t);return r.length?r.every(r=>n.strict?t[r]===e[r]:cl(t[r])?t[r].test(e[r]):t[r]===e[r]):!0}function Ul(e,t,n={}){return e.find(e=>e.type===t&&Hl(Object.fromEntries(Object.keys(n).map(t=>[t,e.attrs[t]])),n))}function Wl(e,t,n={}){return!!Ul(e,t,n)}function Gl(e,t,n){if(!e||!t)return;let r=e.parent.childAfter(e.parentOffset);if((!r.node||!r.node.marks.some(e=>e.type===t))&&(r=e.parent.childBefore(e.parentOffset)),!r.node||!r.node.marks.some(e=>e.type===t)||(n||=r.node.marks[0]?.attrs,!Ul([...r.node.marks],t,n)))return;let i=r.index,a=e.start()+r.offset,o=i+1,s=a+r.node.nodeSize;for(;i>0&&Wl([...e.parent.child(i-1).marks],t,n);)--i,a-=e.parent.child(i).nodeSize;for(;o<e.parent.childCount&&Wl([...e.parent.child(o).marks],t,n);)s+=e.parent.child(o).nodeSize,o+=1;return{from:a,to:s}}function Kl(e,t){if(typeof e==`string`){if(!t.marks[e])throw Error(`There is no mark type named '${e}'. Maybe you forgot to add the extension?`);return t.marks[e]}return e}var ql=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let a=Kl(e,r.schema),{doc:o,selection:s}=n,{$from:c,from:l,to:u}=s;if(i){let e=Gl(c,a,t);if(e&&e.from<=l&&e.to>=u){let t=I.create(o,e.from,e.to);n.setSelection(t)}}return!0},Jl=e=>t=>{let n=typeof e==`function`?e(t):e;for(let e=0;e<n.length;e+=1)if(n[e](t))return!0;return!1};function Yl(e){return e instanceof I}function Xl(e=0,t=0,n=0){return Math.min(Math.max(e,t),n)}function Zl(e,t=null){if(!t)return null;let n=F.atStart(e),r=F.atEnd(e);if(t===`start`||t===!0)return n;if(t===`end`)return r;let i=n.from,a=r.to;return t===`all`?I.create(e,Xl(0,i,a),Xl(e.content.size,i,a)):I.create(e,Xl(t,i,a),Xl(t,i,a))}function Ql(){return/android/i.test(navigator.userAgent)}function $l(){return/iPhone|iPod/.test(navigator.userAgent)||navigator.userAgent.includes(`Mac`)&&`ontouchend`in document}function eu(){return typeof navigator<`u`?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}var tu=(e=null,t={})=>({editor:n,view:r,tr:i,dispatch:a})=>{t={scrollIntoView:!0,...t};let o=()=>{($l()||Ql())&&r.dom.focus(),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),eu()&&!$l()&&!Ql()&&r.dom.focus({preventScroll:!0}))})};if(r.hasFocus()&&e===null||e===!1)return!0;if(a&&e===null&&!Yl(n.state.selection))return o(),!0;let s=Zl(i.doc,e)||n.state.selection,c=n.state.selection.eq(s);return a&&(c||i.setSelection(s),c&&i.storedMarks&&i.setStoredMarks(i.storedMarks),o()),!0},nu=(e,t)=>n=>e.every((e,r)=>t(e,{...n,index:r})),ru=(e,t)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},e,t),iu=e=>{let t=e.childNodes;for(let n=t.length-1;n>=0;--n){let r=t[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?e.removeChild(r):r.nodeType===1&&iu(r)}return e};function au(e){let t=`<body>${e}</body>`,n=new window.DOMParser().parseFromString(t,`text/html`).body;return iu(n)}function ou(e,t,n){if(e instanceof We||e instanceof j)return e;n={slice:!0,parseOptions:{},...n};let r=typeof e==`object`&&!!e,i=typeof e==`string`;if(r)try{if(Array.isArray(e)&&e.length>0)return j.fromArray(e.map(e=>t.nodeFromJSON(e)));let r=t.nodeFromJSON(e);return n.errorOnInvalidContent&&r.check(),r}catch(r){if(n.errorOnInvalidContent)throw Error(`[tiptap error]: Invalid JSON content`,{cause:r});return console.warn(`[tiptap warn]: Invalid content.`,`Passed value:`,e,`Error:`,r),ou(``,t,n)}if(i){if(n.errorOnInvalidContent){let r=!1,i=``,a=new ht({topNode:t.spec.topNode,marks:t.spec.marks,nodes:t.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:`inline*`,group:`block`,parseDOM:[{tag:`*`,getAttrs:e=>(r=!0,i=typeof e==`string`?e:e.outerHTML,null)}]}})});if(n.slice?yt.fromSchema(a).parseSlice(au(e),n.parseOptions):yt.fromSchema(a).parse(au(e),n.parseOptions),n.errorOnInvalidContent&&r)throw Error(`[tiptap error]: Invalid HTML content`,{cause:Error(`Invalid element found: ${i}`)})}let r=yt.fromSchema(t);return n.slice?r.parseSlice(au(e),n.parseOptions).content:r.parse(au(e),n.parseOptions)}return ou(``,t,n)}function su(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof sn||i instanceof cn))return;let a=e.mapping.maps[r],o=0;a.forEach((e,t,n,r)=>{o===0&&(o=r)}),e.setSelection(F.near(e.doc.resolve(o),n))}var cu=e=>!(`type`in e),lu=(e,t,n)=>({tr:r,dispatch:i,editor:a})=>{if(i){n={parseOptions:a.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let i,o=e=>{a.emit(`contentError`,{editor:a,error:e,disableCollaboration:()=>{a.storage.collaboration&&(a.storage.collaboration.isDisabled=!0)}})},s={preserveWhitespace:`full`,...n.parseOptions};if(!n.errorOnInvalidContent&&!a.options.enableContentCheck&&a.options.emitContentError)try{ou(t,a.schema,{parseOptions:s,errorOnInvalidContent:!0})}catch(e){o(e)}try{i=ou(t,a.schema,{parseOptions:s,errorOnInvalidContent:n.errorOnInvalidContent??a.options.enableContentCheck})}catch(e){return o(e),!1}let{from:c,to:l}=typeof e==`number`?{from:e,to:e}:{from:e.from,to:e.to},u=!0,d=!0;if((cu(i)?i:[i]).forEach(e=>{e.check(),u=u?e.isText&&e.marks.length===0:!1,d=d?e.isBlock:!1}),c===l&&d){let{parent:e}=r.doc.resolve(c);e.isTextblock&&!e.type.spec.code&&!e.childCount&&(--c,l+=1)}let f;if(u){if(Array.isArray(t))f=t.map(e=>e.text||``).join(``);else if(t instanceof j){let e=``;t.forEach(t=>{t.text&&(e+=t.text)}),f=e}else f=typeof t==`object`&&t&&t.text?t.text:t;r.insertText(f,c,l)}else f=i,r.replaceWith(c,l,f);n.updateSelection&&su(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta(`applyInputRules`,{from:c,text:f}),n.applyPasteRules&&r.setMeta(`applyPasteRules`,{from:c,text:f})}return!0},uu=()=>({state:e,dispatch:t})=>mc(e,t),du=()=>({state:e,dispatch:t})=>K(e,t),fu=()=>({state:e,dispatch:t})=>rc(e,t),pu=()=>({state:e,dispatch:t})=>dc(e,t),mu=()=>({state:e,dispatch:t,tr:n})=>{try{let r=An(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},hu=()=>({state:e,dispatch:t,tr:n})=>{try{let r=An(e.doc,e.selection.$from.pos,1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},gu=()=>({state:e,dispatch:t})=>ic(e,t),_u=()=>({state:e,dispatch:t})=>ac(e,t);function vu(){return typeof navigator<`u`?/Macintosh/.test(navigator.userAgent):!1}function yu(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n===`Space`&&(n=` `);let r,i,a,o;for(let e=0;e<t.length-1;e+=1){let n=t[e];if(/^(cmd|meta|m)$/i.test(n))o=!0;else if(/^a(lt)?$/i.test(n))r=!0;else if(/^(c|ctrl|control)$/i.test(n))i=!0;else if(/^s(hift)?$/i.test(n))a=!0;else if(/^mod$/i.test(n))$l()||vu()?o=!0:i=!0;else throw Error(`Unrecognized modifier name: ${n}`)}return r&&(n=`Alt-${n}`),i&&(n=`Ctrl-${n}`),o&&(n=`Meta-${n}`),a&&(n=`Shift-${n}`),n}var bu=e=>({editor:t,view:n,tr:r,dispatch:i})=>{let a=yu(e).split(/-(?!$)/),o=a.find(e=>![`Alt`,`Ctrl`,`Meta`,`Shift`].includes(e)),s=new KeyboardEvent(`keydown`,{key:o===`Space`?` `:o,altKey:a.includes(`Alt`),ctrlKey:a.includes(`Ctrl`),metaKey:a.includes(`Meta`),shiftKey:a.includes(`Shift`),bubbles:!0,cancelable:!0});return t.captureTransaction(()=>{n.someProp(`handleKeyDown`,e=>e(n,s))})?.steps.forEach(e=>{let t=e.map(r.mapping);t&&i&&r.maybeStep(t)}),!0};function xu(e,t,n={}){let{from:r,to:i,empty:a}=e.selection,o=t?Yc(t,e.schema):null,s=[];e.doc.nodesBetween(r,i,(e,t)=>{if(e.isText)return;let n=Math.max(r,t),a=Math.min(i,t+e.nodeSize);s.push({node:e,from:n,to:a})});let c=i-r,l=s.filter(e=>o?o.name===e.node.type.name:!0).filter(e=>Hl(e.node.attrs,n,{strict:!1}));return a?!!l.length:l.reduce((e,t)=>e+t.to-t.from,0)>=c}var Su=(e,t={})=>({state:n,dispatch:r})=>xu(n,Yc(e,n.schema),t)?hc(n,r):!1,Cu=()=>({state:e,dispatch:t})=>bc(e,t),wu=e=>({state:t,dispatch:n})=>Bc(Yc(e,t.schema))(t,n),Tu=()=>({state:e,dispatch:t})=>gc(e,t);function Eu(e,t){return t.nodes[e]?`node`:t.marks[e]?`mark`:null}function Du(e,t){let n=typeof t==`string`?[t]:t;return Object.keys(e).reduce((t,r)=>(n.includes(r)||(t[r]=e[r]),t),{})}var Ou=(e,t)=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=Eu(typeof e==`string`?e:e.name,r.schema);return s?(s===`node`&&(a=Yc(e,r.schema)),s===`mark`&&(o=Kl(e,r.schema)),i&&n.selection.ranges.forEach(e=>{r.doc.nodesBetween(e.$from.pos,e.$to.pos,(e,r)=>{a&&a===e.type&&n.setNodeMarkup(r,void 0,Du(e.attrs,t)),o&&e.marks.length&&e.marks.forEach(i=>{o===i.type&&n.addMark(r,r+e.nodeSize,o.create(Du(i.attrs,t)))})})}),!0):!1},ku=()=>({tr:e,dispatch:t})=>(t&&e.scrollIntoView(),!0),Au=()=>({tr:e,dispatch:t})=>{if(t){let t=new ar(e.doc);e.setSelection(t)}return!0},ju=()=>({state:e,dispatch:t})=>cc(e,t),Mu=()=>({state:e,dispatch:t})=>fc(e,t),Nu=()=>({state:e,dispatch:t})=>Cc(e,t),Pu=()=>({state:e,dispatch:t})=>kc(e,t),Fu=()=>({state:e,dispatch:t})=>Oc(e,t);function Iu(e,t,n={},r={}){return ou(e,t,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var Lu=(e,t=!1,n={},r={})=>({editor:i,tr:a,dispatch:o,commands:s})=>{let{doc:c}=a;if(n.preserveWhitespace!==`full`){let s=Iu(e,i.schema,n,{errorOnInvalidContent:r.errorOnInvalidContent??i.options.enableContentCheck});return o&&a.replaceWith(0,c.content.size,s).setMeta(`preventUpdate`,!t),!0}return o&&a.setMeta(`preventUpdate`,!t),s.insertContentAt({from:0,to:c.content.size},e,{parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent??i.options.enableContentCheck})};function Ru(e,t){let n=Kl(t,e.schema),{from:r,to:i,empty:a}=e.selection,o=[];a?(e.storedMarks&&o.push(...e.storedMarks),o.push(...e.selection.$head.marks())):e.doc.nodesBetween(r,i,e=>{o.push(...e.marks)});let s=o.find(e=>e.type.name===n.name);return s?{...s.attrs}:{}}function zu(e,t){let n=new Qn(e);return t.forEach(e=>{e.steps.forEach(e=>{n.step(e)})}),n}function Bu(e){for(let t=0;t<e.edgeCount;t+=1){let{type:n}=e.edge(t);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function Vu(e,t,n){let r=[];return e.nodesBetween(t.from,t.to,(e,t)=>{n(e)&&r.push({node:e,pos:t})}),r}function Hu(e,t){for(let n=e.depth;n>0;--n){let r=e.node(n);if(t(r))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:r}}}function Uu(e){return t=>Hu(t.$from,e)}function Wu(e,t){return Dl(e,{from:0,to:e.content.size},t)}function Gu(e,t){let n=Yc(t,e.schema),{from:r,to:i}=e.selection,a=[];e.doc.nodesBetween(r,i,e=>{a.push(e)});let o=a.reverse().find(e=>e.type.name===n.name);return o?{...o.attrs}:{}}function Ku(e,t){let n=Eu(typeof t==`string`?t:t.name,e.schema);return n===`node`?Gu(e,t):n===`mark`?Ru(e,t):{}}function qu(e,t=JSON.stringify){let n={};return e.filter(e=>{let r=t(e);return Object.prototype.hasOwnProperty.call(n,r)?!1:n[r]=!0})}function Ju(e){let t=qu(e);return t.length===1?t:t.filter((e,n)=>!t.filter((e,t)=>t!==n).some(t=>e.oldRange.from>=t.oldRange.from&&e.oldRange.to<=t.oldRange.to&&e.newRange.from>=t.newRange.from&&e.newRange.to<=t.newRange.to))}function Yu(e){let{mapping:t,steps:n}=e,r=[];return t.maps.forEach((e,i)=>{let a=[];if(e.ranges.length)e.forEach((e,t)=>{a.push({from:e,to:t})});else{let{from:e,to:t}=n[i];if(e===void 0||t===void 0)return;a.push({from:e,to:t})}a.forEach(({from:e,to:n})=>{let a=t.slice(i).map(e,-1),o=t.slice(i).map(n),s=t.invert().map(a,-1),c=t.invert().map(o);r.push({oldRange:{from:s,to:c},newRange:{from:a,to:o}})})}),Ju(r)}function Xu(e,t,n){let r=[];return e===t?n.resolve(e).marks().forEach(t=>{let i=Gl(n.resolve(e),t.type);i&&r.push({mark:t,...i})}):n.nodesBetween(e,t,(e,t)=>{!e||e?.nodeSize===void 0||r.push(...e.marks.map(n=>({from:t,to:t+e.nodeSize,mark:n})))}),r}function Zu(e,t,n){return Object.fromEntries(Object.entries(n).filter(([n])=>{let r=e.find(e=>e.type===t&&e.name===n);return r?r.attribute.keepOnSplit:!1}))}function Qu(e,t,n={}){let{empty:r,ranges:i}=e.selection,a=t?Kl(t,e.schema):null;if(r)return!!(e.storedMarks||e.selection.$from.marks()).filter(e=>a?a.name===e.type.name:!0).find(e=>Hl(e.attrs,n,{strict:!1}));let o=0,s=[];if(i.forEach(({$from:t,$to:n})=>{let r=t.pos,i=n.pos;e.doc.nodesBetween(r,i,(e,t)=>{if(!e.isText&&!e.marks.length)return;let n=Math.max(r,t),a=Math.min(i,t+e.nodeSize),c=a-n;o+=c,s.push(...e.marks.map(e=>({mark:e,from:n,to:a})))})}),o===0)return!1;let c=s.filter(e=>a?a.name===e.mark.type.name:!0).filter(e=>Hl(e.mark.attrs,n,{strict:!1})).reduce((e,t)=>e+t.to-t.from,0),l=s.filter(e=>a?e.mark.type!==a&&e.mark.type.excludes(a):!0).reduce((e,t)=>e+t.to-t.from,0);return(c>0?c+l:c)>=o}function $u(e,t,n={}){if(!t)return xu(e,null,n)||Qu(e,null,n);let r=Eu(t,e.schema);return r===`node`?xu(e,t,n):r===`mark`?Qu(e,t,n):!1}function ed(e,t){let{nodeExtensions:n}=qc(t),r=n.find(t=>t.name===e);if(!r)return!1;let i=J(q(r,`group`,{name:r.name,options:r.options,storage:r.storage}));return typeof i==`string`?i.split(` `).includes(`list`):!1}function td(e,{checkChildren:t=!0,ignoreWhitespace:n=!1}={}){if(n){if(e.type.name===`hardBreak`)return!0;if(e.isText)return/^\s*$/m.test(e.text??``)}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(t){let r=!0;return e.content.forEach(e=>{r!==!1&&(td(e,{ignoreWhitespace:n,checkChildren:t})||(r=!1))}),r}return!1}function nd(e,t,n){let{selection:r}=t,i=null;if(Yl(r)&&(i=r.$cursor),i){let t=e.storedMarks??i.marks();return!!n.isInSet(t)||!t.some(e=>e.type.excludes(n))}let{ranges:a}=r;return a.some(({$from:t,$to:r})=>{let i=t.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(n):!1;return e.doc.nodesBetween(t.pos,r.pos,(e,t,r)=>{if(i)return!1;if(e.isInline){let t=!r||r.type.allowsMarkType(n),a=!!n.isInSet(e.marks)||!e.marks.some(e=>e.type.excludes(n));i=t&&a}return!i}),i})}var rd=(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{selection:a}=n,{empty:o,ranges:s}=a,c=Kl(e,r.schema);if(i)if(o){let e=Ru(r,c);n.addStoredMark(c.create({...e,...t}))}else s.forEach(e=>{let i=e.$from.pos,a=e.$to.pos;r.doc.nodesBetween(i,a,(e,r)=>{let o=Math.max(r,i),s=Math.min(r+e.nodeSize,a);e.marks.find(e=>e.type===c)?e.marks.forEach(e=>{c===e.type&&n.addMark(o,s,c.create({...e.attrs,...t}))}):n.addMark(o,s,c.create(t))})});return nd(r,n,c)},id=(e,t)=>({tr:n})=>(n.setMeta(e,t),!0),ad=(e,t={})=>({state:n,dispatch:r,chain:i})=>{let a=Yc(e,n.schema),o;return n.selection.$anchor.sameParent(n.selection.$head)&&(o=n.selection.$anchor.parent.attrs),a.isTextblock?i().command(({commands:e})=>jc(a,{...o,...t})(n)?!0:e.clearNodes()).command(({state:e})=>jc(a,{...o,...t})(e,r)).run():(console.warn(`[tiptap warn]: Currently "setNode()" only supports text block nodes.`),!1)},od=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,r=Xl(e,0,n.content.size),i=L.create(n,r);t.setSelection(i)}return!0},sd=e=>({tr:t,dispatch:n})=>{if(n){let{doc:n}=t,{from:r,to:i}=typeof e==`number`?{from:e,to:e}:e,a=I.atStart(n).from,o=I.atEnd(n).to,s=Xl(r,a,o),c=Xl(i,a,o),l=I.create(n,s,c);t.setSelection(l)}return!0},cd=e=>({state:t,dispatch:n})=>Uc(Yc(e,t.schema))(t,n);function ld(e,t){let n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){let r=n.filter(e=>t?.includes(e.type.name));e.tr.ensureMarks(r)}}var ud=({keepMarks:e=!0}={})=>({tr:t,state:n,dispatch:r,editor:i})=>{let{selection:a,doc:o}=t,{$from:s,$to:c}=a,l=i.extensionManager.attributes,u=Zu(l,s.node().type.name,s.node().attrs);if(a instanceof L&&a.node.isBlock)return!s.parentOffset||!Tn(o,s.pos)?!1:(r&&(e&&ld(n,i.extensionManager.splittableMarks),t.split(s.pos).scrollIntoView()),!0);if(!s.parent.isBlock)return!1;let d=c.parentOffset===c.parent.content.size,f=s.depth===0?void 0:Bu(s.node(-1).contentMatchAt(s.indexAfter(-1))),p=d&&f?[{type:f,attrs:u}]:void 0,m=Tn(t.doc,t.mapping.map(s.pos),1,p);if(!p&&!m&&Tn(t.doc,t.mapping.map(s.pos),1,f?[{type:f}]:void 0)&&(m=!0,p=f?[{type:f,attrs:u}]:void 0),r){if(m&&(a instanceof I&&t.deleteSelection(),t.split(t.mapping.map(s.pos),1,p),f&&!d&&!s.parentOffset&&s.parent.type!==f)){let e=t.mapping.map(s.before()),n=t.doc.resolve(e);s.node(-1).canReplaceWith(n.index(),n.index()+1,f)&&t.setNodeMarkup(t.mapping.map(s.before()),f)}e&&ld(n,i.extensionManager.splittableMarks),t.scrollIntoView()}return m},dd=(e,t={})=>({tr:n,state:r,dispatch:i,editor:a})=>{let o=Yc(e,r.schema),{$from:s,$to:c}=r.selection,l=r.selection.node;if(l&&l.isBlock||s.depth<2||!s.sameParent(c))return!1;let u=s.node(-1);if(u.type!==o)return!1;let d=a.extensionManager.attributes;if(s.parent.content.size===0&&s.node(-1).childCount===s.indexAfter(-1)){if(s.depth===2||s.node(-3).type!==o||s.index(-2)!==s.node(-2).childCount-1)return!1;if(i){let e=j.empty,r=s.index(-1)?1:s.index(-2)?2:3;for(let t=s.depth-r;t>=s.depth-3;--t)e=j.from(s.node(t).copy(e));let i=s.indexAfter(-1)<s.node(-2).childCount?1:s.indexAfter(-2)<s.node(-3).childCount?2:3,a={...Zu(d,s.node().type.name,s.node().attrs),...t},c=o.contentMatch.defaultType?.createAndFill(a)||void 0;e=e.append(j.from(o.createAndFill(null,c)||void 0));let l=s.before(s.depth-(r-1));n.replace(l,s.after(-i),new N(e,4-r,0));let u=-1;n.doc.nodesBetween(l,n.doc.content.size,(e,t)=>{if(u>-1)return!1;e.isTextblock&&e.content.size===0&&(u=t+1)}),u>-1&&n.setSelection(I.near(n.doc.resolve(u))),n.scrollIntoView()}return!0}let f=c.pos===s.end()?u.contentMatchAt(0).defaultType:null,p={...Zu(d,u.type.name,u.attrs),...t},m={...Zu(d,s.node().type.name,s.node().attrs),...t};n.delete(s.pos,c.pos);let h=f?[{type:o,attrs:p},{type:f,attrs:m}]:[{type:o,attrs:p}];if(!Tn(n.doc,s.pos,2))return!1;if(i){let{selection:e,storedMarks:t}=r,{splittableMarks:o}=a.extensionManager,c=t||e.$to.parentOffset&&e.$from.marks();if(n.split(s.pos,2,h).scrollIntoView(),!c||!i)return!0;let l=c.filter(e=>o.includes(e.type.name));n.ensureMarks(l)}return!0},fd=(e,t)=>{let n=Uu(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;let i=e.doc.nodeAt(r);return n.node.type===i?.type&&Dn(e.doc,n.pos)&&e.join(n.pos),!0},pd=(e,t)=>{let n=Uu(e=>e.type===t)(e.selection);if(!n)return!0;let r=e.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;let i=e.doc.nodeAt(r);return n.node.type===i?.type&&Dn(e.doc,r)&&e.join(r),!0},md=Object.freeze({__proto__:null,blur:Al,clearContent:jl,clearNodes:Ml,command:Nl,createParagraphNear:Pl,cut:Fl,deleteCurrentNode:Il,deleteNode:Ll,deleteRange:Rl,deleteSelection:zl,enter:Bl,exitCode:Vl,extendMarkRange:ql,first:Jl,focus:tu,forEach:nu,insertContent:ru,insertContentAt:lu,joinBackward:fu,joinDown:du,joinForward:pu,joinItemBackward:mu,joinItemForward:hu,joinTextblockBackward:gu,joinTextblockForward:_u,joinUp:uu,keyboardShortcut:bu,lift:Su,liftEmptyBlock:Cu,liftListItem:wu,newlineInCode:Tu,resetAttributes:Ou,scrollIntoView:ku,selectAll:Au,selectNodeBackward:ju,selectNodeForward:Mu,selectParentNode:Nu,selectTextblockEnd:Pu,selectTextblockStart:Fu,setContent:Lu,setMark:rd,setMeta:id,setNode:ad,setNodeSelection:od,setTextSelection:sd,sinkListItem:cd,splitBlock:ud,splitListItem:dd,toggleList:(e,t,n,r={})=>({editor:i,tr:a,state:o,dispatch:s,chain:c,commands:l,can:u})=>{let{extensions:d,splittableMarks:f}=i.extensionManager,p=Yc(e,o.schema),m=Yc(t,o.schema),{selection:h,storedMarks:g}=o,{$from:_,$to:v}=h,y=_.blockRange(v),b=g||h.$to.parentOffset&&h.$from.marks();if(!y)return!1;let x=Uu(e=>ed(e.type.name,d))(h);if(y.depth>=1&&x&&y.depth-x.depth<=1){if(x.node.type===p)return l.liftListItem(m);if(ed(x.node.type.name,d)&&p.validContent(x.node.content)&&s)return c().command(()=>(a.setNodeMarkup(x.pos,p),!0)).command(()=>fd(a,p)).command(()=>pd(a,p)).run()}return!n||!b||!s?c().command(()=>u().wrapInList(p,r)?!0:l.clearNodes()).wrapInList(p,r).command(()=>fd(a,p)).command(()=>pd(a,p)).run():c().command(()=>{let e=u().wrapInList(p,r),t=b.filter(e=>f.includes(e.type.name));return a.ensureMarks(t),e?!0:l.clearNodes()}).wrapInList(p,r).command(()=>fd(a,p)).command(()=>pd(a,p)).run()},toggleMark:(e,t={},n={})=>({state:r,commands:i})=>{let{extendEmptyMarkRange:a=!1}=n,o=Kl(e,r.schema);return Qu(r,o,t)?i.unsetMark(o,{extendEmptyMarkRange:a}):i.setMark(o,t)},toggleNode:(e,t,n={})=>({state:r,commands:i})=>{let a=Yc(e,r.schema),o=Yc(t,r.schema),s=xu(r,a,n),c;return r.selection.$anchor.sameParent(r.selection.$head)&&(c=r.selection.$anchor.parent.attrs),s?i.setNode(o,c):i.setNode(a,{...c,...n})},toggleWrap:(e,t={})=>({state:n,commands:r})=>{let i=Yc(e,n.schema);return xu(n,i,t)?r.lift(i):r.wrapIn(i,t)},undoInputRule:()=>({state:e,dispatch:t})=>{let n=e.plugins;for(let r=0;r<n.length;r+=1){let i=n[r],a;if(i.spec.isInputRules&&(a=i.getState(e))){if(t){let t=e.tr,n=a.transform;for(let e=n.steps.length-1;e>=0;--e)t.step(n.steps[e].invert(n.docs[e]));if(a.text){let n=t.doc.resolve(a.from).marks();t.replaceWith(a.from,a.to,e.schema.text(a.text,n))}else t.delete(a.from,a.to)}return!0}}return!1},unsetAllMarks:()=>({tr:e,dispatch:t})=>{let{selection:n}=e,{empty:r,ranges:i}=n;return r||t&&i.forEach(t=>{e.removeMark(t.$from.pos,t.$to.pos)}),!0},unsetMark:(e,t={})=>({tr:n,state:r,dispatch:i})=>{let{extendEmptyMarkRange:a=!1}=t,{selection:o}=n,s=Kl(e,r.schema),{$from:c,empty:l,ranges:u}=o;if(!i)return!0;if(l&&a){let{from:e,to:t}=o,r=Gl(c,s,c.marks().find(e=>e.type===s)?.attrs);r&&(e=r.from,t=r.to),n.removeMark(e,t,s)}else u.forEach(e=>{n.removeMark(e.$from.pos,e.$to.pos,s)});return n.removeStoredMark(s),!0},updateAttributes:(e,t={})=>({tr:n,state:r,dispatch:i})=>{let a=null,o=null,s=Eu(typeof e==`string`?e:e.name,r.schema);return s?(s===`node`&&(a=Yc(e,r.schema)),s===`mark`&&(o=Kl(e,r.schema)),i&&n.selection.ranges.forEach(e=>{let i=e.$from.pos,s=e.$to.pos,c,l,u,d;n.selection.empty?r.doc.nodesBetween(i,s,(e,t)=>{a&&a===e.type&&(u=Math.max(t,i),d=Math.min(t+e.nodeSize,s),c=t,l=e)}):r.doc.nodesBetween(i,s,(e,r)=>{r<i&&a&&a===e.type&&(u=Math.max(r,i),d=Math.min(r+e.nodeSize,s),c=r,l=e),r>=i&&r<=s&&(a&&a===e.type&&n.setNodeMarkup(r,void 0,{...e.attrs,...t}),o&&e.marks.length&&e.marks.forEach(a=>{if(o===a.type){let c=Math.max(r,i),l=Math.min(r+e.nodeSize,s);n.addMark(c,l,o.create({...a.attrs,...t}))}}))}),l&&(c!==void 0&&n.setNodeMarkup(c,void 0,{...l.attrs,...t}),o&&l.marks.length&&l.marks.forEach(e=>{o===e.type&&n.addMark(u,d,o.create({...e.attrs,...t}))}))}),!0):!1},wrapIn:(e,t={})=>({state:n,dispatch:r})=>Ac(Yc(e,n.schema),t)(n,r),wrapInList:(e,t={})=>({state:n,dispatch:r})=>Lc(Yc(e,n.schema),t)(n,r)}),hd=El.create({name:`commands`,addCommands(){return{...md}}}),gd=El.create({name:`drop`,addProseMirrorPlugins(){return[new yr({key:new Sr(`tiptapDrop`),props:{handleDrop:(e,t,n,r)=>{this.editor.emit(`drop`,{editor:this.editor,event:t,slice:n,moved:r})}}})]}}),_d=El.create({name:`editable`,addProseMirrorPlugins(){return[new yr({key:new Sr(`editable`),props:{editable:()=>this.editor.options.editable}})]}}),vd=new Sr(`focusEvents`),yd=El.create({name:`focusEvents`,addProseMirrorPlugins(){let{editor:e}=this;return[new yr({key:vd,props:{handleDOMEvents:{focus:(t,n)=>{e.isFocused=!0;let r=e.state.tr.setMeta(`focus`,{event:n}).setMeta(`addToHistory`,!1);return t.dispatch(r),!1},blur:(t,n)=>{e.isFocused=!1;let r=e.state.tr.setMeta(`blur`,{event:n}).setMeta(`addToHistory`,!1);return t.dispatch(r),!1}}}})]}}),bd=El.create({name:`keymap`,addKeyboardShortcuts(){let e=()=>this.editor.commands.first(({commands:e})=>[()=>e.undoInputRule(),()=>e.command(({tr:t})=>{let{selection:n,doc:r}=t,{empty:i,$anchor:a}=n,{pos:o,parent:s}=a,c=a.parent.isTextblock&&o>0?t.doc.resolve(o-1):a,l=c.parent.type.spec.isolating,u=a.pos-a.parentOffset,d=l&&c.parent.childCount===1?u===a.pos:F.atStart(r).from===o;return!i||!s.type.isTextblock||s.textContent.length||!d||d&&a.parent.type.name===`paragraph`?!1:e.clearNodes()}),()=>e.deleteSelection(),()=>e.joinBackward(),()=>e.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:e})=>[()=>e.deleteSelection(),()=>e.deleteCurrentNode(),()=>e.joinForward(),()=>e.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:e})=>[()=>e.newlineInCode(),()=>e.createParagraphNear(),()=>e.liftEmptyBlock(),()=>e.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...n},i={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return $l()||vu()?i:r},addProseMirrorPlugins(){return[new yr({key:new Sr(`clearDocument`),appendTransaction:(e,t,n)=>{if(e.some(e=>e.getMeta(`composition`)))return;let r=e.some(e=>e.docChanged)&&!t.doc.eq(n.doc),i=e.some(e=>e.getMeta(`preventClearDocument`));if(!r||i)return;let{empty:a,from:o,to:s}=t.selection,c=F.atStart(t.doc).from,l=F.atEnd(t.doc).to;if(a||!(o===c&&s===l)||!td(n.doc))return;let u=n.tr,d=Wc({state:n,transaction:u}),{commands:f}=new Gc({editor:this.editor,state:d});if(f.clearNodes(),u.steps.length)return u}})]}}),xd=El.create({name:`paste`,addProseMirrorPlugins(){return[new yr({key:new Sr(`tiptapPaste`),props:{handlePaste:(e,t,n)=>{this.editor.emit(`paste`,{editor:this.editor,event:t,slice:n})}}})]}}),Sd=El.create({name:`tabindex`,addProseMirrorPlugins(){return[new yr({key:new Sr(`tabindex`),props:{attributes:()=>this.editor.isEditable?{tabindex:`0`}:{}}})]}}),Cd=class e{get name(){return this.node.type.name}constructor(e,t,n=!1,r=null){this.currentNode=null,this.actualDepth=null,this.isBlock=n,this.resolvedPos=e,this.editor=t,this.currentNode=r}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){return this.actualDepth??this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let t=this.from,n=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}t=this.from+1,n=this.to-1}this.editor.commands.insertContentAt({from:t,to:n},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;let t=this.resolvedPos.start(this.resolvedPos.depth-1);return new e(this.resolvedPos.doc.resolve(t),this.editor)}get before(){let t=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.from-3)),new e(t,this.editor)}get after(){let t=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return t.depth!==this.depth&&(t=this.resolvedPos.doc.resolve(this.to+3)),new e(t,this.editor)}get children(){let t=[];return this.node.content.forEach((n,r)=>{let i=n.isBlock&&!n.isTextblock,a=n.isAtom&&!n.isText,o=this.pos+r+(a?0:1);if(o<0||o>this.resolvedPos.doc.nodeSize-2)return;let s=this.resolvedPos.doc.resolve(o);if(!i&&s.depth<=this.depth)return;let c=new e(s,this.editor,i,i?n:null);i&&(c.actualDepth=this.depth+1),t.push(new e(s,this.editor,i,i?n:null))}),t}get firstChild(){return this.children[0]||null}get lastChild(){let e=this.children;return e[e.length-1]||null}closest(e,t={}){let n=null,r=this.parent;for(;r&&!n;){if(r.node.type.name===e)if(Object.keys(t).length>0){let e=r.node.attrs,n=Object.keys(t);for(let r=0;r<n.length;r+=1){let i=n[r];if(e[i]!==t[i])break}}else n=r;r=r.parent}return n}querySelector(e,t={}){return this.querySelectorAll(e,t,!0)[0]||null}querySelectorAll(e,t={},n=!1){let r=[];if(!this.children||this.children.length===0)return r;let i=Object.keys(t);return this.children.forEach(a=>{n&&r.length>0||(a.node.type.name===e&&i.every(e=>t[e]===a.node.attrs[e])&&r.push(a),!(n&&r.length>0)&&(r=r.concat(a.querySelectorAll(e,t,n))))}),r}setAttribute(e){let{tr:t}=this.editor.state;t.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(t)}},wd=`.ProseMirror {
|
|
15
15
|
position: relative;
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -85,23 +85,23 @@ img.ProseMirror-separator {
|
|
|
85
85
|
|
|
86
86
|
.tippy-box[data-animation=fade][data-state=hidden] {
|
|
87
87
|
opacity: 0
|
|
88
|
-
}`;function
|
|
89
|
-
|
|
90
|
-
`,textSerializers:o={}}=e||{};return a1(this.state.doc,{blockSeparator:t,textSerializers:{...Kh(this.schema),...o}})}get isEmpty(){return Us(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,t){var o;return((o=this.$doc)===null||o===void 0?void 0:o.querySelector(e,t))||null}$nodes(e,t){var o;return((o=this.$doc)===null||o===void 0?void 0:o.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new fo(t,this)}get $doc(){return this.$pos(0)}}function M1(n){return new tx({find:n.find,handler:({state:e,range:t,match:o,chain:r})=>{const i=Ee(n.getAttributes,void 0,o)||{},a=e.tr.delete(t.from,t.to),d=a.doc.resolve(t.from).blockRange(),m=d&&nc(d,n.type,i);if(!m)return null;if(a.wrap(d,m),n.keepMarks&&n.editor){const{selection:h,storedMarks:g}=e,{splittableMarks:k}=n.editor.extensionManager,b=g||h.$to.parentOffset&&h.$from.marks();if(b){const $=b.filter(S=>k.includes(S.type.name));a.ensureMarks($)}}if(n.keepAttributes){const h=n.type.name==="bulletList"||n.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(h,i).run()}const p=a.doc.resolve(t.from-1).nodeBefore;p&&p.type===n.type&&wn(a.doc,t.from-1)&&(!n.joinPredicate||n.joinPredicate(o,p))&&a.join(t.from-1)}})}let Kr=class Km{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=Ee(te(this,"addOptions",{name:this.name}))),this.storage=Ee(te(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Km(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>Ls(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new Km(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.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: "${t.name}".`),t.options=Ee(te(t,"addOptions",{name:t.name})),t.storage=Ee(te(t,"addStorage",{name:t.name,options:t.options})),t}};function L1(n){return new sx({find:n.find,handler:({state:e,range:t,match:o,pasteEvent:r})=>{const i=Ee(n.getAttributes,void 0,o,r);if(i===!1||i===null)return null;const{tr:a}=e,c=o[o.length-1],d=o[0];let m=t.to;if(c){const p=d.search(/\S/),h=t.from+d.indexOf(c),g=h+c.length;if(rg(t.from,t.to,e.doc).filter(b=>b.mark.type.excluded.find(S=>S===n.type&&S!==b.mark.type)).filter(b=>b.to>h).length)return null;g<t.to&&a.delete(g,t.to),h>t.from&&a.delete(t.from+p,h),m=t.from+p+c.length,a.addMark(t.from+p,m,n.type.create(i||{})),a.removeStoredMark(n.type)}}})}var Qc={exports:{}},wt={},Xc={exports:{}},Zc={};var ag;function j1(){return ag||(ag=1,(function(n){var e,t,o,r;if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;n.unstable_now=function(){return i.now()}}else{var a=Date,c=a.now();n.unstable_now=function(){return a.now()-c}}if(typeof window>"u"||typeof MessageChannel!="function"){var d=null,m=null,p=function(){if(d!==null)try{var z=n.unstable_now();d(!0,z),d=null}catch(q){throw setTimeout(p,0),q}};e=function(z){d!==null?setTimeout(e,0,z):(d=z,setTimeout(p,0))},t=function(z,q){m=setTimeout(z,q)},o=function(){clearTimeout(m)},n.unstable_shouldYield=function(){return!1},r=n.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,g=window.clearTimeout;if(typeof console<"u"){var k=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 k!="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 b=!1,$=null,S=-1,N=5,P=0;n.unstable_shouldYield=function(){return n.unstable_now()>=P},r=function(){},n.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<z?Math.floor(1e3/z):5};var L=new MessageChannel,j=L.port2;L.port1.onmessage=function(){if($!==null){var z=n.unstable_now();P=z+N;try{$(!0,z)?j.postMessage(null):(b=!1,$=null)}catch(q){throw j.postMessage(null),q}}else b=!1},e=function(z){$=z,b||(b=!0,j.postMessage(null))},t=function(z,q){S=h(function(){z(n.unstable_now())},q)},o=function(){g(S),S=-1}}function Y(z,q){var W=z.length;z.push(q);e:for(;;){var re=W-1>>>1,pe=z[re];if(pe!==void 0&&0<K(pe,q))z[re]=q,z[W]=pe,W=re;else break e}}function U(z){return z=z[0],z===void 0?null:z}function I(z){var q=z[0];if(q!==void 0){var W=z.pop();if(W!==q){z[0]=W;e:for(var re=0,pe=z.length;re<pe;){var je=2*(re+1)-1,$t=z[je],mn=je+1,zt=z[mn];if($t!==void 0&&0>K($t,W))zt!==void 0&&0>K(zt,$t)?(z[re]=zt,z[mn]=W,re=mn):(z[re]=$t,z[je]=W,re=je);else if(zt!==void 0&&0>K(zt,W))z[re]=zt,z[mn]=W,re=mn;else break e}}return q}return null}function K(z,q){var W=z.sortIndex-q.sortIndex;return W!==0?W:z.id-q.id}var X=[],ie=[],Ne=1,ye=null,$e=3,Re=!1,xe=!1,Ae=!1;function T(z){for(var q=U(ie);q!==null;){if(q.callback===null)I(ie);else if(q.startTime<=z)I(ie),q.sortIndex=q.expirationTime,Y(X,q);else break;q=U(ie)}}function _(z){if(Ae=!1,T(z),!xe)if(U(X)!==null)xe=!0,e(se);else{var q=U(ie);q!==null&&t(_,q.startTime-z)}}function se(z,q){xe=!1,Ae&&(Ae=!1,o()),Re=!0;var W=$e;try{for(T(q),ye=U(X);ye!==null&&(!(ye.expirationTime>q)||z&&!n.unstable_shouldYield());){var re=ye.callback;if(typeof re=="function"){ye.callback=null,$e=ye.priorityLevel;var pe=re(ye.expirationTime<=q);q=n.unstable_now(),typeof pe=="function"?ye.callback=pe:ye===U(X)&&I(X),T(q)}else I(X);ye=U(X)}if(ye!==null)var je=!0;else{var $t=U(ie);$t!==null&&t(_,$t.startTime-q),je=!1}return je}finally{ye=null,$e=W,Re=!1}}var ve=r;n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(z){z.callback=null},n.unstable_continueExecution=function(){xe||Re||(xe=!0,e(se))},n.unstable_getCurrentPriorityLevel=function(){return $e},n.unstable_getFirstCallbackNode=function(){return U(X)},n.unstable_next=function(z){switch($e){case 1:case 2:case 3:var q=3;break;default:q=$e}var W=$e;$e=q;try{return z()}finally{$e=W}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=ve,n.unstable_runWithPriority=function(z,q){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var W=$e;$e=z;try{return q()}finally{$e=W}},n.unstable_scheduleCallback=function(z,q,W){var re=n.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?re+W:re):W=re,z){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=W+pe,z={id:Ne++,callback:q,priorityLevel:z,startTime:W,expirationTime:pe,sortIndex:-1},W>re?(z.sortIndex=W,Y(ie,z),U(X)===null&&z===U(ie)&&(Ae?o():Ae=!0,t(_,W-re))):(z.sortIndex=pe,Y(X,z),xe||Re||(xe=!0,e(se))),z},n.unstable_wrapCallback=function(z){var q=$e;return function(){var W=$e;$e=q;try{return z.apply(this,arguments)}finally{$e=W}}}})(Zc)),Zc}var lg;function I1(){return lg||(lg=1,Xc.exports=j1()),Xc.exports}var cg;function B1(){if(cg)return wt;cg=1;var n=Ul(),e=Fl(),t=I1();function o(s){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+s,u=1;u<arguments.length;u++)l+="&args[]="+encodeURIComponent(arguments[u]);return"Minified React error #"+s+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!n)throw Error(o(227));var r=new Set,i={};function a(s,l){c(s,l),c(s+"Capture",l)}function c(s,l){for(i[s]=l,s=0;s<l.length;s++)r.add(l[s])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},g={};function k(s){return p.call(g,s)?!0:p.call(h,s)?!1:m.test(s)?g[s]=!0:(h[s]=!0,!1)}function b(s,l,u,f){if(u!==null&&u.type===0)return!1;switch(typeof l){case"function":case"symbol":return!0;case"boolean":return f?!1:u!==null?!u.acceptsBooleans:(s=s.toLowerCase().slice(0,5),s!=="data-"&&s!=="aria-");default:return!1}}function $(s,l,u,f){if(l===null||typeof l>"u"||b(s,l,u,f))return!0;if(f)return!1;if(u!==null)switch(u.type){case 3:return!l;case 4:return l===!1;case 5:return isNaN(l);case 6:return isNaN(l)||1>l}return!1}function S(s,l,u,f,y,v,x){this.acceptsBooleans=l===2||l===3||l===4,this.attributeName=f,this.attributeNamespace=y,this.mustUseProperty=u,this.propertyName=s,this.type=l,this.sanitizeURL=v,this.removeEmptyString=x}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(s){N[s]=new S(s,0,!1,s,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(s){var l=s[0];N[l]=new S(l,1,!1,s[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(s){N[s]=new S(s,2,!1,s.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(s){N[s]=new S(s,2,!1,s,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(s){N[s]=new S(s,3,!1,s.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(s){N[s]=new S(s,3,!0,s,null,!1,!1)}),["capture","download"].forEach(function(s){N[s]=new S(s,4,!1,s,null,!1,!1)}),["cols","rows","size","span"].forEach(function(s){N[s]=new S(s,6,!1,s,null,!1,!1)}),["rowSpan","start"].forEach(function(s){N[s]=new S(s,5,!1,s.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function L(s){return s[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(s){var l=s.replace(P,L);N[l]=new S(l,1,!1,s,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(s){var l=s.replace(P,L);N[l]=new S(l,1,!1,s,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(s){var l=s.replace(P,L);N[l]=new S(l,1,!1,s,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(s){N[s]=new S(s,1,!1,s.toLowerCase(),null,!1,!1)}),N.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(s){N[s]=new S(s,1,!1,s.toLowerCase(),null,!0,!0)});function j(s,l,u,f){var y=N.hasOwnProperty(l)?N[l]:null,v=y!==null?y.type===0:f?!1:!(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N");v||($(l,u,y,f)&&(u=null),f||y===null?k(l)&&(u===null?s.removeAttribute(l):s.setAttribute(l,""+u)):y.mustUseProperty?s[y.propertyName]=u===null?y.type===3?!1:"":u:(l=y.attributeName,f=y.attributeNamespace,u===null?s.removeAttribute(l):(y=y.type,u=y===3||y===4&&u===!0?"":""+u,f?s.setAttributeNS(f,l,u):s.setAttribute(l,u))))}var Y=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,U=60103,I=60106,K=60107,X=60108,ie=60114,Ne=60109,ye=60110,$e=60112,Re=60113,xe=60120,Ae=60115,T=60116,_=60121,se=60128,ve=60129,z=60130,q=60131;if(typeof Symbol=="function"&&Symbol.for){var W=Symbol.for;U=W("react.element"),I=W("react.portal"),K=W("react.fragment"),X=W("react.strict_mode"),ie=W("react.profiler"),Ne=W("react.provider"),ye=W("react.context"),$e=W("react.forward_ref"),Re=W("react.suspense"),xe=W("react.suspense_list"),Ae=W("react.memo"),T=W("react.lazy"),_=W("react.block"),W("react.scope"),se=W("react.opaque.id"),ve=W("react.debug_trace_mode"),z=W("react.offscreen"),q=W("react.legacy_hidden")}var re=typeof Symbol=="function"&&Symbol.iterator;function pe(s){return s===null||typeof s!="object"?null:(s=re&&s[re]||s["@@iterator"],typeof s=="function"?s:null)}var je;function $t(s){if(je===void 0)try{throw Error()}catch(u){var l=u.stack.trim().match(/\n( *(at )?)/);je=l&&l[1]||""}return`
|
|
91
|
-
`+
|
|
92
|
-
`),
|
|
93
|
-
`),
|
|
94
|
-
`+y[x].replace(" at new "," at ");while(1<=x&&0<=C);break}}}finally{mn=!1,Error.prepareStackTrace=u}return(s=s?s.displayName||s.name:"")?$t(s):""}function xR(s){switch(s.tag){case 5:return $t(s.type);case 16:return $t("Lazy");case 13:return $t("Suspense");case 19:return $t("SuspenseList");case 0:case 2:case 15:return s=zt(s.type,!1),s;case 11:return s=zt(s.type.render,!1),s;case 22:return s=zt(s.type._render,!1),s;case 1:return s=zt(s.type,!0),s;default:return""}}function qo(s){if(s==null)return null;if(typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case K:return"Fragment";case I:return"Portal";case ie:return"Profiler";case X:return"StrictMode";case Re:return"Suspense";case xe:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case ye:return(s.displayName||"Context")+".Consumer";case Ne:return(s._context.displayName||"Context")+".Provider";case $e:var l=s.render;return l=l.displayName||l.name||"",s.displayName||(l!==""?"ForwardRef("+l+")":"ForwardRef");case Ae:return qo(s.type);case _:return qo(s._render);case T:l=s._payload,s=s._init;try{return qo(s(l))}catch{}}return null}function Mn(s){switch(typeof s){case"boolean":case"number":case"object":case"string":case"undefined":return s;default:return""}}function Ky(s){var l=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function SR(s){var l=Ky(s)?"checked":"value",u=Object.getOwnPropertyDescriptor(s.constructor.prototype,l),f=""+s[l];if(!s.hasOwnProperty(l)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var y=u.get,v=u.set;return Object.defineProperty(s,l,{configurable:!0,get:function(){return y.call(this)},set:function(x){f=""+x,v.call(this,x)}}),Object.defineProperty(s,l,{enumerable:u.enumerable}),{getValue:function(){return f},setValue:function(x){f=""+x},stopTracking:function(){s._valueTracker=null,delete s[l]}}}}function za(s){s._valueTracker||(s._valueTracker=SR(s))}function Wy(s){if(!s)return!1;var l=s._valueTracker;if(!l)return!0;var u=l.getValue(),f="";return s&&(f=Ky(s)?s.checked?"true":"false":s.value),s=f,s!==u?(l.setValue(s),!0):!1}function Fa(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}function od(s,l){var u=l.checked;return e({},l,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:u??s._wrapperState.initialChecked})}function qy(s,l){var u=l.defaultValue==null?"":l.defaultValue,f=l.checked!=null?l.checked:l.defaultChecked;u=Mn(l.value!=null?l.value:u),s._wrapperState={initialChecked:f,initialValue:u,controlled:l.type==="checkbox"||l.type==="radio"?l.checked!=null:l.value!=null}}function Gy(s,l){l=l.checked,l!=null&&j(s,"checked",l,!1)}function rd(s,l){Gy(s,l);var u=Mn(l.value),f=l.type;if(u!=null)f==="number"?(u===0&&s.value===""||s.value!=u)&&(s.value=""+u):s.value!==""+u&&(s.value=""+u);else if(f==="submit"||f==="reset"){s.removeAttribute("value");return}l.hasOwnProperty("value")?id(s,l.type,u):l.hasOwnProperty("defaultValue")&&id(s,l.type,Mn(l.defaultValue)),l.checked==null&&l.defaultChecked!=null&&(s.defaultChecked=!!l.defaultChecked)}function Qy(s,l,u){if(l.hasOwnProperty("value")||l.hasOwnProperty("defaultValue")){var f=l.type;if(!(f!=="submit"&&f!=="reset"||l.value!==void 0&&l.value!==null))return;l=""+s._wrapperState.initialValue,u||l===s.value||(s.value=l),s.defaultValue=l}u=s.name,u!==""&&(s.name=""),s.defaultChecked=!!s._wrapperState.initialChecked,u!==""&&(s.name=u)}function id(s,l,u){(l!=="number"||Fa(s.ownerDocument)!==s)&&(u==null?s.defaultValue=""+s._wrapperState.initialValue:s.defaultValue!==""+u&&(s.defaultValue=""+u))}function CR(s){var l="";return n.Children.forEach(s,function(u){u!=null&&(l+=u)}),l}function sd(s,l){return s=e({children:void 0},l),(l=CR(l.children))&&(s.children=l),s}function Go(s,l,u,f){if(s=s.options,l){l={};for(var y=0;y<u.length;y++)l["$"+u[y]]=!0;for(u=0;u<s.length;u++)y=l.hasOwnProperty("$"+s[u].value),s[u].selected!==y&&(s[u].selected=y),y&&f&&(s[u].defaultSelected=!0)}else{for(u=""+Mn(u),l=null,y=0;y<s.length;y++){if(s[y].value===u){s[y].selected=!0,f&&(s[y].defaultSelected=!0);return}l!==null||s[y].disabled||(l=s[y])}l!==null&&(l.selected=!0)}}function ad(s,l){if(l.dangerouslySetInnerHTML!=null)throw Error(o(91));return e({},l,{value:void 0,defaultValue:void 0,children:""+s._wrapperState.initialValue})}function Xy(s,l){var u=l.value;if(u==null){if(u=l.children,l=l.defaultValue,u!=null){if(l!=null)throw Error(o(92));if(Array.isArray(u)){if(!(1>=u.length))throw Error(o(93));u=u[0]}l=u}l==null&&(l=""),u=l}s._wrapperState={initialValue:Mn(u)}}function Zy(s,l){var u=Mn(l.value),f=Mn(l.defaultValue);u!=null&&(u=""+u,u!==s.value&&(s.value=u),l.defaultValue==null&&s.defaultValue!==u&&(s.defaultValue=u)),f!=null&&(s.defaultValue=""+f)}function e0(s){var l=s.textContent;l===s._wrapperState.initialValue&&l!==""&&l!==null&&(s.value=l)}var ld={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function t0(s){switch(s){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 cd(s,l){return s==null||s==="http://www.w3.org/1999/xhtml"?t0(l):s==="http://www.w3.org/2000/svg"&&l==="foreignObject"?"http://www.w3.org/1999/xhtml":s}var _a,n0=(function(s){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(l,u,f,y){MSApp.execUnsafeLocalFunction(function(){return s(l,u,f,y)})}:s})(function(s,l){if(s.namespaceURI!==ld.svg||"innerHTML"in s)s.innerHTML=l;else{for(_a=_a||document.createElement("div"),_a.innerHTML="<svg>"+l.valueOf().toString()+"</svg>",l=_a.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;l.firstChild;)s.appendChild(l.firstChild)}});function di(s,l){if(l){var u=s.firstChild;if(u&&u===s.lastChild&&u.nodeType===3){u.nodeValue=l;return}}s.textContent=l}var mi={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},ER=["Webkit","ms","Moz","O"];Object.keys(mi).forEach(function(s){ER.forEach(function(l){l=l+s.charAt(0).toUpperCase()+s.substring(1),mi[l]=mi[s]})});function o0(s,l,u){return l==null||typeof l=="boolean"||l===""?"":u||typeof l!="number"||l===0||mi.hasOwnProperty(s)&&mi[s]?(""+l).trim():l+"px"}function r0(s,l){s=s.style;for(var u in l)if(l.hasOwnProperty(u)){var f=u.indexOf("--")===0,y=o0(u,l[u],f);u==="float"&&(u="cssFloat"),f?s.setProperty(u,y):s[u]=y}}var NR=e({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 ud(s,l){if(l){if(NR[s]&&(l.children!=null||l.dangerouslySetInnerHTML!=null))throw Error(o(137,s));if(l.dangerouslySetInnerHTML!=null){if(l.children!=null)throw Error(o(60));if(!(typeof l.dangerouslySetInnerHTML=="object"&&"__html"in l.dangerouslySetInnerHTML))throw Error(o(61))}if(l.style!=null&&typeof l.style!="object")throw Error(o(62))}}function dd(s,l){if(s.indexOf("-")===-1)return typeof l.is=="string";switch(s){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 md(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var pd=null,Qo=null,Xo=null;function i0(s){if(s=Oi(s)){if(typeof pd!="function")throw Error(o(280));var l=s.stateNode;l&&(l=il(l),pd(s.stateNode,s.type,l))}}function s0(s){Qo?Xo?Xo.push(s):Xo=[s]:Qo=s}function a0(){if(Qo){var s=Qo,l=Xo;if(Xo=Qo=null,i0(s),l)for(s=0;s<l.length;s++)i0(l[s])}}function fd(s,l){return s(l)}function l0(s,l,u,f,y){return s(l,u,f,y)}function hd(){}var c0=fd,bo=!1,gd=!1;function yd(){(Qo!==null||Xo!==null)&&(hd(),a0())}function DR(s,l,u){if(gd)return s(l,u);gd=!0;try{return c0(s,l,u)}finally{gd=!1,yd()}}function pi(s,l){var u=s.stateNode;if(u===null)return null;var f=il(u);if(f===null)return null;u=f[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(s=s.type,f=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!f;break e;default:s=!1}if(s)return null;if(u&&typeof u!="function")throw Error(o(231,l,typeof u));return u}var kd=!1;if(d)try{var fi={};Object.defineProperty(fi,"passive",{get:function(){kd=!0}}),window.addEventListener("test",fi,fi),window.removeEventListener("test",fi,fi)}catch{kd=!1}function RR(s,l,u,f,y,v,x,C,D){var M=Array.prototype.slice.call(arguments,3);try{l.apply(u,M)}catch(G){this.onError(G)}}var hi=!1,Ua=null,Ha=!1,bd=null,AR={onError:function(s){hi=!0,Ua=s}};function OR(s,l,u,f,y,v,x,C,D){hi=!1,Ua=null,RR.apply(AR,arguments)}function TR(s,l,u,f,y,v,x,C,D){if(OR.apply(this,arguments),hi){if(hi){var M=Ua;hi=!1,Ua=null}else throw Error(o(198));Ha||(Ha=!0,bd=M)}}function vo(s){var l=s,u=s;if(s.alternate)for(;l.return;)l=l.return;else{s=l;do l=s,(l.flags&1026)!==0&&(u=l.return),s=l.return;while(s)}return l.tag===3?u:null}function u0(s){if(s.tag===13){var l=s.memoizedState;if(l===null&&(s=s.alternate,s!==null&&(l=s.memoizedState)),l!==null)return l.dehydrated}return null}function d0(s){if(vo(s)!==s)throw Error(o(188))}function PR(s){var l=s.alternate;if(!l){if(l=vo(s),l===null)throw Error(o(188));return l!==s?null:s}for(var u=s,f=l;;){var y=u.return;if(y===null)break;var v=y.alternate;if(v===null){if(f=y.return,f!==null){u=f;continue}break}if(y.child===v.child){for(v=y.child;v;){if(v===u)return d0(y),s;if(v===f)return d0(y),l;v=v.sibling}throw Error(o(188))}if(u.return!==f.return)u=y,f=v;else{for(var x=!1,C=y.child;C;){if(C===u){x=!0,u=y,f=v;break}if(C===f){x=!0,f=y,u=v;break}C=C.sibling}if(!x){for(C=v.child;C;){if(C===u){x=!0,u=v,f=y;break}if(C===f){x=!0,f=v,u=y;break}C=C.sibling}if(!x)throw Error(o(189))}}if(u.alternate!==f)throw Error(o(190))}if(u.tag!==3)throw Error(o(188));return u.stateNode.current===u?s:l}function m0(s){if(s=PR(s),!s)return null;for(var l=s;;){if(l.tag===5||l.tag===6)return l;if(l.child)l.child.return=l,l=l.child;else{if(l===s)break;for(;!l.sibling;){if(!l.return||l.return===s)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}}return null}function p0(s,l){for(var u=s.alternate;l!==null;){if(l===s||l===u)return!0;l=l.return}return!1}var f0,vd,h0,g0,wd=!1,Wt=[],Ln=null,jn=null,In=null,gi=new Map,yi=new Map,ki=[],y0="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 $d(s,l,u,f,y){return{blockedOn:s,domEventName:l,eventSystemFlags:u|16,nativeEvent:y,targetContainers:[f]}}function k0(s,l){switch(s){case"focusin":case"focusout":Ln=null;break;case"dragenter":case"dragleave":jn=null;break;case"mouseover":case"mouseout":In=null;break;case"pointerover":case"pointerout":gi.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":yi.delete(l.pointerId)}}function bi(s,l,u,f,y,v){return s===null||s.nativeEvent!==v?(s=$d(l,u,f,y,v),l!==null&&(l=Oi(l),l!==null&&vd(l)),s):(s.eventSystemFlags|=f,l=s.targetContainers,y!==null&&l.indexOf(y)===-1&&l.push(y),s)}function MR(s,l,u,f,y){switch(l){case"focusin":return Ln=bi(Ln,s,l,u,f,y),!0;case"dragenter":return jn=bi(jn,s,l,u,f,y),!0;case"mouseover":return In=bi(In,s,l,u,f,y),!0;case"pointerover":var v=y.pointerId;return gi.set(v,bi(gi.get(v)||null,s,l,u,f,y)),!0;case"gotpointercapture":return v=y.pointerId,yi.set(v,bi(yi.get(v)||null,s,l,u,f,y)),!0}return!1}function LR(s){var l=wo(s.target);if(l!==null){var u=vo(l);if(u!==null){if(l=u.tag,l===13){if(l=u0(u),l!==null){s.blockedOn=l,g0(s.lanePriority,function(){t.unstable_runWithPriority(s.priority,function(){h0(u)})});return}}else if(l===3&&u.stateNode.hydrate){s.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}s.blockedOn=null}function Va(s){if(s.blockedOn!==null)return!1;for(var l=s.targetContainers;0<l.length;){var u=Dd(s.domEventName,s.eventSystemFlags,l[0],s.nativeEvent);if(u!==null)return l=Oi(u),l!==null&&vd(l),s.blockedOn=u,!1;l.shift()}return!0}function b0(s,l,u){Va(s)&&u.delete(l)}function jR(){for(wd=!1;0<Wt.length;){var s=Wt[0];if(s.blockedOn!==null){s=Oi(s.blockedOn),s!==null&&f0(s);break}for(var l=s.targetContainers;0<l.length;){var u=Dd(s.domEventName,s.eventSystemFlags,l[0],s.nativeEvent);if(u!==null){s.blockedOn=u;break}l.shift()}s.blockedOn===null&&Wt.shift()}Ln!==null&&Va(Ln)&&(Ln=null),jn!==null&&Va(jn)&&(jn=null),In!==null&&Va(In)&&(In=null),gi.forEach(b0),yi.forEach(b0)}function vi(s,l){s.blockedOn===l&&(s.blockedOn=null,wd||(wd=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,jR)))}function v0(s){function l(y){return vi(y,s)}if(0<Wt.length){vi(Wt[0],s);for(var u=1;u<Wt.length;u++){var f=Wt[u];f.blockedOn===s&&(f.blockedOn=null)}}for(Ln!==null&&vi(Ln,s),jn!==null&&vi(jn,s),In!==null&&vi(In,s),gi.forEach(l),yi.forEach(l),u=0;u<ki.length;u++)f=ki[u],f.blockedOn===s&&(f.blockedOn=null);for(;0<ki.length&&(u=ki[0],u.blockedOn===null);)LR(u),u.blockedOn===null&&ki.shift()}function Ya(s,l){var u={};return u[s.toLowerCase()]=l.toLowerCase(),u["Webkit"+s]="webkit"+l,u["Moz"+s]="moz"+l,u}var Zo={animationend:Ya("Animation","AnimationEnd"),animationiteration:Ya("Animation","AnimationIteration"),animationstart:Ya("Animation","AnimationStart"),transitionend:Ya("Transition","TransitionEnd")},xd={},w0={};d&&(w0=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 Ja(s){if(xd[s])return xd[s];if(!Zo[s])return s;var l=Zo[s],u;for(u in l)if(l.hasOwnProperty(u)&&u in w0)return xd[s]=l[u];return s}var $0=Ja("animationend"),x0=Ja("animationiteration"),S0=Ja("animationstart"),C0=Ja("transitionend"),E0=new Map,Sd=new Map,IR=["abort","abort",$0,"animationEnd",x0,"animationIteration",S0,"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",C0,"transitionEnd","waiting","waiting"];function Cd(s,l){for(var u=0;u<s.length;u+=2){var f=s[u],y=s[u+1];y="on"+(y[0].toUpperCase()+y.slice(1)),Sd.set(f,l),E0.set(f,y),a(y,[f])}}var BR=t.unstable_now;BR();var Te=8;function er(s){if((1&s)!==0)return Te=15,1;if((2&s)!==0)return Te=14,2;if((4&s)!==0)return Te=13,4;var l=24&s;return l!==0?(Te=12,l):(s&32)!==0?(Te=11,32):(l=192&s,l!==0?(Te=10,l):(s&256)!==0?(Te=9,256):(l=3584&s,l!==0?(Te=8,l):(s&4096)!==0?(Te=7,4096):(l=4186112&s,l!==0?(Te=6,l):(l=62914560&s,l!==0?(Te=5,l):s&67108864?(Te=4,67108864):(s&134217728)!==0?(Te=3,134217728):(l=805306368&s,l!==0?(Te=2,l):(1073741824&s)!==0?(Te=1,1073741824):(Te=8,s))))))}function zR(s){switch(s){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function FR(s){switch(s){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(o(358,s))}}function wi(s,l){var u=s.pendingLanes;if(u===0)return Te=0;var f=0,y=0,v=s.expiredLanes,x=s.suspendedLanes,C=s.pingedLanes;if(v!==0)f=v,y=Te=15;else if(v=u&134217727,v!==0){var D=v&~x;D!==0?(f=er(D),y=Te):(C&=v,C!==0&&(f=er(C),y=Te))}else v=u&~x,v!==0?(f=er(v),y=Te):C!==0&&(f=er(C),y=Te);if(f===0)return 0;if(f=31-Bn(f),f=u&((0>f?0:1<<f)<<1)-1,l!==0&&l!==f&&(l&x)===0){if(er(l),y<=Te)return l;Te=y}if(l=s.entangledLanes,l!==0)for(s=s.entanglements,l&=f;0<l;)u=31-Bn(l),y=1<<u,f|=s[u],l&=~y;return f}function N0(s){return s=s.pendingLanes&-1073741825,s!==0?s:s&1073741824?1073741824:0}function Ka(s,l){switch(s){case 15:return 1;case 14:return 2;case 12:return s=tr(24&~l),s===0?Ka(10,l):s;case 10:return s=tr(192&~l),s===0?Ka(8,l):s;case 8:return s=tr(3584&~l),s===0&&(s=tr(4186112&~l),s===0&&(s=512)),s;case 2:return l=tr(805306368&~l),l===0&&(l=268435456),l}throw Error(o(358,s))}function tr(s){return s&-s}function Ed(s){for(var l=[],u=0;31>u;u++)l.push(s);return l}function Wa(s,l,u){s.pendingLanes|=l;var f=l-1;s.suspendedLanes&=f,s.pingedLanes&=f,s=s.eventTimes,l=31-Bn(l),s[l]=u}var Bn=Math.clz32?Math.clz32:HR,_R=Math.log,UR=Math.LN2;function HR(s){return s===0?32:31-(_R(s)/UR|0)|0}var VR=t.unstable_UserBlockingPriority,YR=t.unstable_runWithPriority,qa=!0;function JR(s,l,u,f){bo||hd();var y=Nd,v=bo;bo=!0;try{l0(y,s,l,u,f)}finally{(bo=v)||yd()}}function KR(s,l,u,f){YR(VR,Nd.bind(null,s,l,u,f))}function Nd(s,l,u,f){if(qa){var y;if((y=(l&4)===0)&&0<Wt.length&&-1<y0.indexOf(s))s=$d(null,s,l,u,f),Wt.push(s);else{var v=Dd(s,l,u,f);if(v===null)y&&k0(s,f);else{if(y){if(-1<y0.indexOf(s)){s=$d(v,s,l,u,f),Wt.push(s);return}if(MR(v,s,l,u,f))return;k0(s,f)}nk(s,l,f,null,u)}}}}function Dd(s,l,u,f){var y=md(f);if(y=wo(y),y!==null){var v=vo(y);if(v===null)y=null;else{var x=v.tag;if(x===13){if(y=u0(v),y!==null)return y;y=null}else if(x===3){if(v.stateNode.hydrate)return v.tag===3?v.stateNode.containerInfo:null;y=null}else v!==y&&(y=null)}}return nk(s,l,f,y,u),null}var zn=null,Rd=null,Ga=null;function D0(){if(Ga)return Ga;var s,l=Rd,u=l.length,f,y="value"in zn?zn.value:zn.textContent,v=y.length;for(s=0;s<u&&l[s]===y[s];s++);var x=u-s;for(f=1;f<=x&&l[u-f]===y[v-f];f++);return Ga=y.slice(s,1<f?1-f:void 0)}function Qa(s){var l=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&l===13&&(s=13)):s=l,s===10&&(s=13),32<=s||s===13?s:0}function Xa(){return!0}function R0(){return!1}function xt(s){function l(u,f,y,v,x){this._reactName=u,this._targetInst=y,this.type=f,this.nativeEvent=v,this.target=x,this.currentTarget=null;for(var C in s)s.hasOwnProperty(C)&&(u=s[C],this[C]=u?u(v):v[C]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?Xa:R0,this.isPropagationStopped=R0,this}return e(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Xa)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Xa)},persist:function(){},isPersistent:Xa}),l}var nr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ad=xt(nr),$i=e({},nr,{view:0,detail:0}),WR=xt($i),Od,Td,xi,Za=e({},$i,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Md,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==xi&&(xi&&s.type==="mousemove"?(Od=s.screenX-xi.screenX,Td=s.screenY-xi.screenY):Td=Od=0,xi=s),Od)},movementY:function(s){return"movementY"in s?s.movementY:Td}}),A0=xt(Za),qR=e({},Za,{dataTransfer:0}),GR=xt(qR),QR=e({},$i,{relatedTarget:0}),Pd=xt(QR),XR=e({},nr,{animationName:0,elapsedTime:0,pseudoElement:0}),ZR=xt(XR),eA=e({},nr,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),tA=xt(eA),nA=e({},nr,{data:0}),O0=xt(nA),oA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rA={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"},iA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sA(s){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(s):(s=iA[s])?!!l[s]:!1}function Md(){return sA}var aA=e({},$i,{key:function(s){if(s.key){var l=oA[s.key]||s.key;if(l!=="Unidentified")return l}return s.type==="keypress"?(s=Qa(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?rA[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Md,charCode:function(s){return s.type==="keypress"?Qa(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Qa(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),lA=xt(aA),cA=e({},Za,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),T0=xt(cA),uA=e({},$i,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Md}),dA=xt(uA),mA=e({},nr,{propertyName:0,elapsedTime:0,pseudoElement:0}),pA=xt(mA),fA=e({},Za,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),hA=xt(fA),gA=[9,13,27,32],Ld=d&&"CompositionEvent"in window,Si=null;d&&"documentMode"in document&&(Si=document.documentMode);var yA=d&&"TextEvent"in window&&!Si,P0=d&&(!Ld||Si&&8<Si&&11>=Si),M0=" ",L0=!1;function j0(s,l){switch(s){case"keyup":return gA.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function I0(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var or=!1;function kA(s,l){switch(s){case"compositionend":return I0(l);case"keypress":return l.which!==32?null:(L0=!0,M0);case"textInput":return s=l.data,s===M0&&L0?null:s;default:return null}}function bA(s,l){if(or)return s==="compositionend"||!Ld&&j0(s,l)?(s=D0(),Ga=Rd=zn=null,or=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return P0&&l.locale!=="ko"?null:l.data;default:return null}}var vA={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 B0(s){var l=s&&s.nodeName&&s.nodeName.toLowerCase();return l==="input"?!!vA[s.type]:l==="textarea"}function z0(s,l,u,f){s0(f),l=tl(l,"onChange"),0<l.length&&(u=new Ad("onChange","change",null,u,f),s.push({event:u,listeners:l}))}var Ci=null,Ei=null;function wA(s){Q0(s,0)}function el(s){var l=lr(s);if(Wy(l))return s}function $A(s,l){if(s==="change")return l}var F0=!1;if(d){var jd;if(d){var Id="oninput"in document;if(!Id){var _0=document.createElement("div");_0.setAttribute("oninput","return;"),Id=typeof _0.oninput=="function"}jd=Id}else jd=!1;F0=jd&&(!document.documentMode||9<document.documentMode)}function U0(){Ci&&(Ci.detachEvent("onpropertychange",H0),Ei=Ci=null)}function H0(s){if(s.propertyName==="value"&&el(Ei)){var l=[];if(z0(l,Ei,s,md(s)),s=wA,bo)s(l);else{bo=!0;try{fd(s,l)}finally{bo=!1,yd()}}}}function xA(s,l,u){s==="focusin"?(U0(),Ci=l,Ei=u,Ci.attachEvent("onpropertychange",H0)):s==="focusout"&&U0()}function SA(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return el(Ei)}function CA(s,l){if(s==="click")return el(l)}function EA(s,l){if(s==="input"||s==="change")return el(l)}function NA(s,l){return s===l&&(s!==0||1/s===1/l)||s!==s&&l!==l}var Pt=typeof Object.is=="function"?Object.is:NA,DA=Object.prototype.hasOwnProperty;function Ni(s,l){if(Pt(s,l))return!0;if(typeof s!="object"||s===null||typeof l!="object"||l===null)return!1;var u=Object.keys(s),f=Object.keys(l);if(u.length!==f.length)return!1;for(f=0;f<u.length;f++)if(!DA.call(l,u[f])||!Pt(s[u[f]],l[u[f]]))return!1;return!0}function V0(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function Y0(s,l){var u=V0(s);s=0;for(var f;u;){if(u.nodeType===3){if(f=s+u.textContent.length,s<=l&&f>=l)return{node:u,offset:l-s};s=f}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=V0(u)}}function J0(s,l){return s&&l?s===l?!0:s&&s.nodeType===3?!1:l&&l.nodeType===3?J0(s,l.parentNode):"contains"in s?s.contains(l):s.compareDocumentPosition?!!(s.compareDocumentPosition(l)&16):!1:!1}function K0(){for(var s=window,l=Fa();l instanceof s.HTMLIFrameElement;){try{var u=typeof l.contentWindow.location.href=="string"}catch{u=!1}if(u)s=l.contentWindow;else break;l=Fa(s.document)}return l}function Bd(s){var l=s&&s.nodeName&&s.nodeName.toLowerCase();return l&&(l==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||l==="textarea"||s.contentEditable==="true")}var RA=d&&"documentMode"in document&&11>=document.documentMode,rr=null,zd=null,Di=null,Fd=!1;function W0(s,l,u){var f=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Fd||rr==null||rr!==Fa(f)||(f=rr,"selectionStart"in f&&Bd(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),Di&&Ni(Di,f)||(Di=f,f=tl(zd,"onSelect"),0<f.length&&(l=new Ad("onSelect","select",null,l,u),s.push({event:l,listeners:f}),l.target=rr)))}Cd("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),Cd("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),Cd(IR,2);for(var q0="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),_d=0;_d<q0.length;_d++)Sd.set(q0[_d],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ri="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),AA=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ri));function G0(s,l,u){var f=s.type||"unknown-event";s.currentTarget=u,TR(f,l,void 0,s),s.currentTarget=null}function Q0(s,l){l=(l&4)!==0;for(var u=0;u<s.length;u++){var f=s[u],y=f.event;f=f.listeners;e:{var v=void 0;if(l)for(var x=f.length-1;0<=x;x--){var C=f[x],D=C.instance,M=C.currentTarget;if(C=C.listener,D!==v&&y.isPropagationStopped())break e;G0(y,C,M),v=D}else for(x=0;x<f.length;x++){if(C=f[x],D=C.instance,M=C.currentTarget,C=C.listener,D!==v&&y.isPropagationStopped())break e;G0(y,C,M),v=D}}}if(Ha)throw s=bd,Ha=!1,bd=null,s}function Me(s,l){var u=lk(l),f=s+"__bubble";u.has(f)||(tk(l,s,2,!1),u.add(f))}var X0="_reactListening"+Math.random().toString(36).slice(2);function Z0(s){s[X0]||(s[X0]=!0,r.forEach(function(l){AA.has(l)||ek(l,!1,s,null),ek(l,!0,s,null)}))}function ek(s,l,u,f){var y=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,v=u;s==="selectionchange"&&u.nodeType!==9&&(v=u.ownerDocument);var x=lk(v),C=s+"__"+(l?"capture":"bubble");x.has(C)||(l&&(y|=4),tk(v,s,y,l),x.add(C))}function tk(s,l,u,f){var y=Sd.get(l);switch(y===void 0?2:y){case 0:y=JR;break;case 1:y=KR;break;default:y=Nd}u=y.bind(null,l,u,s),y=void 0,!kd||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(y=!0),f?y!==void 0?s.addEventListener(l,u,{capture:!0,passive:y}):s.addEventListener(l,u,!0):y!==void 0?s.addEventListener(l,u,{passive:y}):s.addEventListener(l,u,!1)}function nk(s,l,u,f,y){var v=f;if((l&1)===0&&(l&2)===0&&f!==null)e:for(;;){if(f===null)return;var x=f.tag;if(x===3||x===4){var C=f.stateNode.containerInfo;if(C===y||C.nodeType===8&&C.parentNode===y)break;if(x===4)for(x=f.return;x!==null;){var D=x.tag;if((D===3||D===4)&&(D=x.stateNode.containerInfo,D===y||D.nodeType===8&&D.parentNode===y))return;x=x.return}for(;C!==null;){if(x=wo(C),x===null)return;if(D=x.tag,D===5||D===6){f=v=x;continue e}C=C.parentNode}}f=f.return}DR(function(){var M=v,G=md(u),fe=[];e:{var H=E0.get(s);if(H!==void 0){var ne=Ad,de=s;switch(s){case"keypress":if(Qa(u)===0)break e;case"keydown":case"keyup":ne=lA;break;case"focusin":de="focus",ne=Pd;break;case"focusout":de="blur",ne=Pd;break;case"beforeblur":case"afterblur":ne=Pd;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ne=A0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=GR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=dA;break;case $0:case x0:case S0:ne=ZR;break;case C0:ne=pA;break;case"scroll":ne=WR;break;case"wheel":ne=hA;break;case"copy":case"cut":case"paste":ne=tA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=T0}var ce=(l&4)!==0,O=!ce&&s==="scroll",R=ce?H!==null?H+"Capture":null:H;ce=[];for(var A=M,B;A!==null;){B=A;var F=B.stateNode;if(B.tag===5&&F!==null&&(B=F,R!==null&&(F=pi(A,R),F!=null&&ce.push(Ai(A,F,B)))),O)break;A=A.return}0<ce.length&&(H=new ne(H,de,null,u,G),fe.push({event:H,listeners:ce}))}}if((l&7)===0){e:{if(H=s==="mouseover"||s==="pointerover",ne=s==="mouseout"||s==="pointerout",H&&(l&16)===0&&(de=u.relatedTarget||u.fromElement)&&(wo(de)||de[ar]))break e;if((ne||H)&&(H=G.window===G?G:(H=G.ownerDocument)?H.defaultView||H.parentWindow:window,ne?(de=u.relatedTarget||u.toElement,ne=M,de=de?wo(de):null,de!==null&&(O=vo(de),de!==O||de.tag!==5&&de.tag!==6)&&(de=null)):(ne=null,de=M),ne!==de)){if(ce=A0,F="onMouseLeave",R="onMouseEnter",A="mouse",(s==="pointerout"||s==="pointerover")&&(ce=T0,F="onPointerLeave",R="onPointerEnter",A="pointer"),O=ne==null?H:lr(ne),B=de==null?H:lr(de),H=new ce(F,A+"leave",ne,u,G),H.target=O,H.relatedTarget=B,F=null,wo(G)===M&&(ce=new ce(R,A+"enter",de,u,G),ce.target=B,ce.relatedTarget=O,F=ce),O=F,ne&&de)t:{for(ce=ne,R=de,A=0,B=ce;B;B=ir(B))A++;for(B=0,F=R;F;F=ir(F))B++;for(;0<A-B;)ce=ir(ce),A--;for(;0<B-A;)R=ir(R),B--;for(;A--;){if(ce===R||R!==null&&ce===R.alternate)break t;ce=ir(ce),R=ir(R)}ce=null}else ce=null;ne!==null&&ok(fe,H,ne,ce,!1),de!==null&&O!==null&&ok(fe,O,de,ce,!0)}}e:{if(H=M?lr(M):window,ne=H.nodeName&&H.nodeName.toLowerCase(),ne==="select"||ne==="input"&&H.type==="file")var he=$A;else if(B0(H))if(F0)he=EA;else{he=SA;var ee=xA}else(ne=H.nodeName)&&ne.toLowerCase()==="input"&&(H.type==="checkbox"||H.type==="radio")&&(he=CA);if(he&&(he=he(s,M))){z0(fe,he,u,G);break e}ee&&ee(s,H,M),s==="focusout"&&(ee=H._wrapperState)&&ee.controlled&&H.type==="number"&&id(H,"number",H.value)}switch(ee=M?lr(M):window,s){case"focusin":(B0(ee)||ee.contentEditable==="true")&&(rr=ee,zd=M,Di=null);break;case"focusout":Di=zd=rr=null;break;case"mousedown":Fd=!0;break;case"contextmenu":case"mouseup":case"dragend":Fd=!1,W0(fe,u,G);break;case"selectionchange":if(RA)break;case"keydown":case"keyup":W0(fe,u,G)}var ge;if(Ld)e:{switch(s){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else or?j0(s,u)&&(Se="onCompositionEnd"):s==="keydown"&&u.keyCode===229&&(Se="onCompositionStart");Se&&(P0&&u.locale!=="ko"&&(or||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&or&&(ge=D0()):(zn=G,Rd="value"in zn?zn.value:zn.textContent,or=!0)),ee=tl(M,Se),0<ee.length&&(Se=new O0(Se,s,null,u,G),fe.push({event:Se,listeners:ee}),ge?Se.data=ge:(ge=I0(u),ge!==null&&(Se.data=ge)))),(ge=yA?kA(s,u):bA(s,u))&&(M=tl(M,"onBeforeInput"),0<M.length&&(G=new O0("onBeforeInput","beforeinput",null,u,G),fe.push({event:G,listeners:M}),G.data=ge))}Q0(fe,l)})}function Ai(s,l,u){return{instance:s,listener:l,currentTarget:u}}function tl(s,l){for(var u=l+"Capture",f=[];s!==null;){var y=s,v=y.stateNode;y.tag===5&&v!==null&&(y=v,v=pi(s,u),v!=null&&f.unshift(Ai(s,v,y)),v=pi(s,l),v!=null&&f.push(Ai(s,v,y))),s=s.return}return f}function ir(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5);return s||null}function ok(s,l,u,f,y){for(var v=l._reactName,x=[];u!==null&&u!==f;){var C=u,D=C.alternate,M=C.stateNode;if(D!==null&&D===f)break;C.tag===5&&M!==null&&(C=M,y?(D=pi(u,v),D!=null&&x.unshift(Ai(u,D,C))):y||(D=pi(u,v),D!=null&&x.push(Ai(u,D,C)))),u=u.return}x.length!==0&&s.push({event:l,listeners:x})}function nl(){}var Ud=null,Hd=null;function rk(s,l){switch(s){case"button":case"input":case"select":case"textarea":return!!l.autoFocus}return!1}function Vd(s,l){return s==="textarea"||s==="option"||s==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var ik=typeof setTimeout=="function"?setTimeout:void 0,OA=typeof clearTimeout=="function"?clearTimeout:void 0;function Yd(s){s.nodeType===1?s.textContent="":s.nodeType===9&&(s=s.body,s!=null&&(s.textContent=""))}function sr(s){for(;s!=null;s=s.nextSibling){var l=s.nodeType;if(l===1||l===3)break}return s}function sk(s){s=s.previousSibling;for(var l=0;s;){if(s.nodeType===8){var u=s.data;if(u==="$"||u==="$!"||u==="$?"){if(l===0)return s;l--}else u==="/$"&&l++}s=s.previousSibling}return null}var Jd=0;function TA(s){return{$$typeof:se,toString:s,valueOf:s}}var ol=Math.random().toString(36).slice(2),Fn="__reactFiber$"+ol,rl="__reactProps$"+ol,ar="__reactContainer$"+ol,ak="__reactEvents$"+ol;function wo(s){var l=s[Fn];if(l)return l;for(var u=s.parentNode;u;){if(l=u[ar]||u[Fn]){if(u=l.alternate,l.child!==null||u!==null&&u.child!==null)for(s=sk(s);s!==null;){if(u=s[Fn])return u;s=sk(s)}return l}s=u,u=s.parentNode}return null}function Oi(s){return s=s[Fn]||s[ar],!s||s.tag!==5&&s.tag!==6&&s.tag!==13&&s.tag!==3?null:s}function lr(s){if(s.tag===5||s.tag===6)return s.stateNode;throw Error(o(33))}function il(s){return s[rl]||null}function lk(s){var l=s[ak];return l===void 0&&(l=s[ak]=new Set),l}var Kd=[],cr=-1;function _n(s){return{current:s}}function Le(s){0>cr||(s.current=Kd[cr],Kd[cr]=null,cr--)}function Be(s,l){cr++,Kd[cr]=s.current,s.current=l}var Un={},ot=_n(Un),ft=_n(!1),$o=Un;function ur(s,l){var u=s.type.contextTypes;if(!u)return Un;var f=s.stateNode;if(f&&f.__reactInternalMemoizedUnmaskedChildContext===l)return f.__reactInternalMemoizedMaskedChildContext;var y={},v;for(v in u)y[v]=l[v];return f&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=l,s.__reactInternalMemoizedMaskedChildContext=y),y}function ht(s){return s=s.childContextTypes,s!=null}function sl(){Le(ft),Le(ot)}function ck(s,l,u){if(ot.current!==Un)throw Error(o(168));Be(ot,l),Be(ft,u)}function uk(s,l,u){var f=s.stateNode;if(s=l.childContextTypes,typeof f.getChildContext!="function")return u;f=f.getChildContext();for(var y in f)if(!(y in s))throw Error(o(108,qo(l)||"Unknown",y));return e({},u,f)}function al(s){return s=(s=s.stateNode)&&s.__reactInternalMemoizedMergedChildContext||Un,$o=ot.current,Be(ot,s),Be(ft,ft.current),!0}function dk(s,l,u){var f=s.stateNode;if(!f)throw Error(o(169));u?(s=uk(s,l,$o),f.__reactInternalMemoizedMergedChildContext=s,Le(ft),Le(ot),Be(ot,s)):Le(ft),Be(ft,u)}var Wd=null,xo=null,PA=t.unstable_runWithPriority,qd=t.unstable_scheduleCallback,Gd=t.unstable_cancelCallback,MA=t.unstable_shouldYield,mk=t.unstable_requestPaint,Qd=t.unstable_now,LA=t.unstable_getCurrentPriorityLevel,ll=t.unstable_ImmediatePriority,pk=t.unstable_UserBlockingPriority,fk=t.unstable_NormalPriority,hk=t.unstable_LowPriority,gk=t.unstable_IdlePriority,Xd={},jA=mk!==void 0?mk:function(){},pn=null,cl=null,Zd=!1,yk=Qd(),rt=1e4>yk?Qd:function(){return Qd()-yk};function dr(){switch(LA()){case ll:return 99;case pk:return 98;case fk:return 97;case hk:return 96;case gk:return 95;default:throw Error(o(332))}}function kk(s){switch(s){case 99:return ll;case 98:return pk;case 97:return fk;case 96:return hk;case 95:return gk;default:throw Error(o(332))}}function So(s,l){return s=kk(s),PA(s,l)}function Ti(s,l,u){return s=kk(s),qd(s,l,u)}function qt(){if(cl!==null){var s=cl;cl=null,Gd(s)}bk()}function bk(){if(!Zd&&pn!==null){Zd=!0;var s=0;try{var l=pn;So(99,function(){for(;s<l.length;s++){var u=l[s];do u=u(!0);while(u!==null)}}),pn=null}catch(u){throw pn!==null&&(pn=pn.slice(s+1)),qd(ll,qt),u}finally{Zd=!1}}}var IA=Y.ReactCurrentBatchConfig;function Ft(s,l){if(s&&s.defaultProps){l=e({},l),s=s.defaultProps;for(var u in s)l[u]===void 0&&(l[u]=s[u]);return l}return l}var ul=_n(null),dl=null,mr=null,ml=null;function em(){ml=mr=dl=null}function tm(s){var l=ul.current;Le(ul),s.type._context._currentValue=l}function vk(s,l){for(;s!==null;){var u=s.alternate;if((s.childLanes&l)===l){if(u===null||(u.childLanes&l)===l)break;u.childLanes|=l}else s.childLanes|=l,u!==null&&(u.childLanes|=l);s=s.return}}function pr(s,l){dl=s,ml=mr=null,s=s.dependencies,s!==null&&s.firstContext!==null&&((s.lanes&l)!==0&&(_t=!0),s.firstContext=null)}function Mt(s,l){if(ml!==s&&l!==!1&&l!==0)if((typeof l!="number"||l===1073741823)&&(ml=s,l=1073741823),l={context:s,observedBits:l,next:null},mr===null){if(dl===null)throw Error(o(308));mr=l,dl.dependencies={lanes:0,firstContext:l,responders:null}}else mr=mr.next=l;return s._currentValue}var Hn=!1;function nm(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function wk(s,l){s=s.updateQueue,l.updateQueue===s&&(l.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,effects:s.effects})}function Vn(s,l){return{eventTime:s,lane:l,tag:0,payload:null,callback:null,next:null}}function Yn(s,l){if(s=s.updateQueue,s!==null){s=s.shared;var u=s.pending;u===null?l.next=l:(l.next=u.next,u.next=l),s.pending=l}}function $k(s,l){var u=s.updateQueue,f=s.alternate;if(f!==null&&(f=f.updateQueue,u===f)){var y=null,v=null;if(u=u.firstBaseUpdate,u!==null){do{var x={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};v===null?y=v=x:v=v.next=x,u=u.next}while(u!==null);v===null?y=v=l:v=v.next=l}else y=v=l;u={baseState:f.baseState,firstBaseUpdate:y,lastBaseUpdate:v,shared:f.shared,effects:f.effects},s.updateQueue=u;return}s=u.lastBaseUpdate,s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=l}function Pi(s,l,u,f){var y=s.updateQueue;Hn=!1;var v=y.firstBaseUpdate,x=y.lastBaseUpdate,C=y.shared.pending;if(C!==null){y.shared.pending=null;var D=C,M=D.next;D.next=null,x===null?v=M:x.next=M,x=D;var G=s.alternate;if(G!==null){G=G.updateQueue;var fe=G.lastBaseUpdate;fe!==x&&(fe===null?G.firstBaseUpdate=M:fe.next=M,G.lastBaseUpdate=D)}}if(v!==null){fe=y.baseState,x=0,G=M=D=null;do{C=v.lane;var H=v.eventTime;if((f&C)===C){G!==null&&(G=G.next={eventTime:H,lane:0,tag:v.tag,payload:v.payload,callback:v.callback,next:null});e:{var ne=s,de=v;switch(C=l,H=u,de.tag){case 1:if(ne=de.payload,typeof ne=="function"){fe=ne.call(H,fe,C);break e}fe=ne;break e;case 3:ne.flags=ne.flags&-4097|64;case 0:if(ne=de.payload,C=typeof ne=="function"?ne.call(H,fe,C):ne,C==null)break e;fe=e({},fe,C);break e;case 2:Hn=!0}}v.callback!==null&&(s.flags|=32,C=y.effects,C===null?y.effects=[v]:C.push(v))}else H={eventTime:H,lane:C,tag:v.tag,payload:v.payload,callback:v.callback,next:null},G===null?(M=G=H,D=fe):G=G.next=H,x|=C;if(v=v.next,v===null){if(C=y.shared.pending,C===null)break;v=C.next,C.next=null,y.lastBaseUpdate=C,y.shared.pending=null}}while(!0);G===null&&(D=fe),y.baseState=D,y.firstBaseUpdate=M,y.lastBaseUpdate=G,Yi|=x,s.lanes=x,s.memoizedState=fe}}function xk(s,l,u){if(s=l.effects,l.effects=null,s!==null)for(l=0;l<s.length;l++){var f=s[l],y=f.callback;if(y!==null){if(f.callback=null,f=u,typeof y!="function")throw Error(o(191,y));y.call(f)}}}var Sk=new n.Component().refs;function pl(s,l,u,f){l=s.memoizedState,u=u(f,l),u=u==null?l:e({},l,u),s.memoizedState=u,s.lanes===0&&(s.updateQueue.baseState=u)}var fl={isMounted:function(s){return(s=s._reactInternals)?vo(s)===s:!1},enqueueSetState:function(s,l,u){s=s._reactInternals;var f=St(),y=Wn(s),v=Vn(f,y);v.payload=l,u!=null&&(v.callback=u),Yn(s,v),qn(s,y,f)},enqueueReplaceState:function(s,l,u){s=s._reactInternals;var f=St(),y=Wn(s),v=Vn(f,y);v.tag=1,v.payload=l,u!=null&&(v.callback=u),Yn(s,v),qn(s,y,f)},enqueueForceUpdate:function(s,l){s=s._reactInternals;var u=St(),f=Wn(s),y=Vn(u,f);y.tag=2,l!=null&&(y.callback=l),Yn(s,y),qn(s,f,u)}};function Ck(s,l,u,f,y,v,x){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(f,v,x):l.prototype&&l.prototype.isPureReactComponent?!Ni(u,f)||!Ni(y,v):!0}function Ek(s,l,u){var f=!1,y=Un,v=l.contextType;return typeof v=="object"&&v!==null?v=Mt(v):(y=ht(l)?$o:ot.current,f=l.contextTypes,v=(f=f!=null)?ur(s,y):Un),l=new l(u,v),s.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=fl,s.stateNode=l,l._reactInternals=s,f&&(s=s.stateNode,s.__reactInternalMemoizedUnmaskedChildContext=y,s.__reactInternalMemoizedMaskedChildContext=v),l}function Nk(s,l,u,f){s=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(u,f),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(u,f),l.state!==s&&fl.enqueueReplaceState(l,l.state,null)}function om(s,l,u,f){var y=s.stateNode;y.props=u,y.state=s.memoizedState,y.refs=Sk,nm(s);var v=l.contextType;typeof v=="object"&&v!==null?y.context=Mt(v):(v=ht(l)?$o:ot.current,y.context=ur(s,v)),Pi(s,u,y,f),y.state=s.memoizedState,v=l.getDerivedStateFromProps,typeof v=="function"&&(pl(s,l,v,u),y.state=s.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(l=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),l!==y.state&&fl.enqueueReplaceState(y,y.state,null),Pi(s,u,y,f),y.state=s.memoizedState),typeof y.componentDidMount=="function"&&(s.flags|=4)}var hl=Array.isArray;function Mi(s,l,u){if(s=u.ref,s!==null&&typeof s!="function"&&typeof s!="object"){if(u._owner){if(u=u._owner,u){if(u.tag!==1)throw Error(o(309));var f=u.stateNode}if(!f)throw Error(o(147,s));var y=""+s;return l!==null&&l.ref!==null&&typeof l.ref=="function"&&l.ref._stringRef===y?l.ref:(l=function(v){var x=f.refs;x===Sk&&(x=f.refs={}),v===null?delete x[y]:x[y]=v},l._stringRef=y,l)}if(typeof s!="string")throw Error(o(284));if(!u._owner)throw Error(o(290,s))}return s}function gl(s,l){if(s.type!=="textarea")throw Error(o(31,Object.prototype.toString.call(l)==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":l))}function Dk(s){function l(O,R){if(s){var A=O.lastEffect;A!==null?(A.nextEffect=R,O.lastEffect=R):O.firstEffect=O.lastEffect=R,R.nextEffect=null,R.flags=8}}function u(O,R){if(!s)return null;for(;R!==null;)l(O,R),R=R.sibling;return null}function f(O,R){for(O=new Map;R!==null;)R.key!==null?O.set(R.key,R):O.set(R.index,R),R=R.sibling;return O}function y(O,R){return O=Xn(O,R),O.index=0,O.sibling=null,O}function v(O,R,A){return O.index=A,s?(A=O.alternate,A!==null?(A=A.index,A<R?(O.flags=2,R):A):(O.flags=2,R)):R}function x(O){return s&&O.alternate===null&&(O.flags=2),O}function C(O,R,A,B){return R===null||R.tag!==6?(R=zm(A,O.mode,B),R.return=O,R):(R=y(R,A),R.return=O,R)}function D(O,R,A,B){return R!==null&&R.elementType===A.type?(B=y(R,A.props),B.ref=Mi(O,R,A),B.return=O,B):(B=Ml(A.type,A.key,A.props,null,O.mode,B),B.ref=Mi(O,R,A),B.return=O,B)}function M(O,R,A,B){return R===null||R.tag!==4||R.stateNode.containerInfo!==A.containerInfo||R.stateNode.implementation!==A.implementation?(R=Fm(A,O.mode,B),R.return=O,R):(R=y(R,A.children||[]),R.return=O,R)}function G(O,R,A,B,F){return R===null||R.tag!==7?(R=wr(A,O.mode,B,F),R.return=O,R):(R=y(R,A),R.return=O,R)}function fe(O,R,A){if(typeof R=="string"||typeof R=="number")return R=zm(""+R,O.mode,A),R.return=O,R;if(typeof R=="object"&&R!==null){switch(R.$$typeof){case U:return A=Ml(R.type,R.key,R.props,null,O.mode,A),A.ref=Mi(O,null,R),A.return=O,A;case I:return R=Fm(R,O.mode,A),R.return=O,R}if(hl(R)||pe(R))return R=wr(R,O.mode,A,null),R.return=O,R;gl(O,R)}return null}function H(O,R,A,B){var F=R!==null?R.key:null;if(typeof A=="string"||typeof A=="number")return F!==null?null:C(O,R,""+A,B);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case U:return A.key===F?A.type===K?G(O,R,A.props.children,B,F):D(O,R,A,B):null;case I:return A.key===F?M(O,R,A,B):null}if(hl(A)||pe(A))return F!==null?null:G(O,R,A,B,null);gl(O,A)}return null}function ne(O,R,A,B,F){if(typeof B=="string"||typeof B=="number")return O=O.get(A)||null,C(R,O,""+B,F);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case U:return O=O.get(B.key===null?A:B.key)||null,B.type===K?G(R,O,B.props.children,F,B.key):D(R,O,B,F);case I:return O=O.get(B.key===null?A:B.key)||null,M(R,O,B,F)}if(hl(B)||pe(B))return O=O.get(A)||null,G(R,O,B,F,null);gl(R,B)}return null}function de(O,R,A,B){for(var F=null,he=null,ee=R,ge=R=0,Se=null;ee!==null&&ge<A.length;ge++){ee.index>ge?(Se=ee,ee=null):Se=ee.sibling;var ke=H(O,ee,A[ge],B);if(ke===null){ee===null&&(ee=Se);break}s&&ee&&ke.alternate===null&&l(O,ee),R=v(ke,R,ge),he===null?F=ke:he.sibling=ke,he=ke,ee=Se}if(ge===A.length)return u(O,ee),F;if(ee===null){for(;ge<A.length;ge++)ee=fe(O,A[ge],B),ee!==null&&(R=v(ee,R,ge),he===null?F=ee:he.sibling=ee,he=ee);return F}for(ee=f(O,ee);ge<A.length;ge++)Se=ne(ee,O,ge,A[ge],B),Se!==null&&(s&&Se.alternate!==null&&ee.delete(Se.key===null?ge:Se.key),R=v(Se,R,ge),he===null?F=Se:he.sibling=Se,he=Se);return s&&ee.forEach(function(Zn){return l(O,Zn)}),F}function ce(O,R,A,B){var F=pe(A);if(typeof F!="function")throw Error(o(150));if(A=F.call(A),A==null)throw Error(o(151));for(var he=F=null,ee=R,ge=R=0,Se=null,ke=A.next();ee!==null&&!ke.done;ge++,ke=A.next()){ee.index>ge?(Se=ee,ee=null):Se=ee.sibling;var Zn=H(O,ee,ke.value,B);if(Zn===null){ee===null&&(ee=Se);break}s&&ee&&Zn.alternate===null&&l(O,ee),R=v(Zn,R,ge),he===null?F=Zn:he.sibling=Zn,he=Zn,ee=Se}if(ke.done)return u(O,ee),F;if(ee===null){for(;!ke.done;ge++,ke=A.next())ke=fe(O,ke.value,B),ke!==null&&(R=v(ke,R,ge),he===null?F=ke:he.sibling=ke,he=ke);return F}for(ee=f(O,ee);!ke.done;ge++,ke=A.next())ke=ne(ee,O,ge,ke.value,B),ke!==null&&(s&&ke.alternate!==null&&ee.delete(ke.key===null?ge:ke.key),R=v(ke,R,ge),he===null?F=ke:he.sibling=ke,he=ke);return s&&ee.forEach(function(fO){return l(O,fO)}),F}return function(O,R,A,B){var F=typeof A=="object"&&A!==null&&A.type===K&&A.key===null;F&&(A=A.props.children);var he=typeof A=="object"&&A!==null;if(he)switch(A.$$typeof){case U:e:{for(he=A.key,F=R;F!==null;){if(F.key===he){switch(F.tag){case 7:if(A.type===K){u(O,F.sibling),R=y(F,A.props.children),R.return=O,O=R;break e}break;default:if(F.elementType===A.type){u(O,F.sibling),R=y(F,A.props),R.ref=Mi(O,F,A),R.return=O,O=R;break e}}u(O,F);break}else l(O,F);F=F.sibling}A.type===K?(R=wr(A.props.children,O.mode,B,A.key),R.return=O,O=R):(B=Ml(A.type,A.key,A.props,null,O.mode,B),B.ref=Mi(O,R,A),B.return=O,O=B)}return x(O);case I:e:{for(F=A.key;R!==null;){if(R.key===F)if(R.tag===4&&R.stateNode.containerInfo===A.containerInfo&&R.stateNode.implementation===A.implementation){u(O,R.sibling),R=y(R,A.children||[]),R.return=O,O=R;break e}else{u(O,R);break}else l(O,R);R=R.sibling}R=Fm(A,O.mode,B),R.return=O,O=R}return x(O)}if(typeof A=="string"||typeof A=="number")return A=""+A,R!==null&&R.tag===6?(u(O,R.sibling),R=y(R,A),R.return=O,O=R):(u(O,R),R=zm(A,O.mode,B),R.return=O,O=R),x(O);if(hl(A))return de(O,R,A,B);if(pe(A))return ce(O,R,A,B);if(he&&gl(O,A),typeof A>"u"&&!F)switch(O.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,qo(O.type)||"Component"))}return u(O,R)}}var yl=Dk(!0),Rk=Dk(!1),Li={},Gt=_n(Li),ji=_n(Li),Ii=_n(Li);function Co(s){if(s===Li)throw Error(o(174));return s}function rm(s,l){switch(Be(Ii,l),Be(ji,s),Be(Gt,Li),s=l.nodeType,s){case 9:case 11:l=(l=l.documentElement)?l.namespaceURI:cd(null,"");break;default:s=s===8?l.parentNode:l,l=s.namespaceURI||null,s=s.tagName,l=cd(l,s)}Le(Gt),Be(Gt,l)}function fr(){Le(Gt),Le(ji),Le(Ii)}function Ak(s){Co(Ii.current);var l=Co(Gt.current),u=cd(l,s.type);l!==u&&(Be(ji,s),Be(Gt,u))}function im(s){ji.current===s&&(Le(Gt),Le(ji))}var ze=_n(0);function kl(s){for(var l=s;l!==null;){if(l.tag===13){var u=l.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||u.data==="$!"))return l}else if(l.tag===19&&l.memoizedProps.revealOrder!==void 0){if((l.flags&64)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===s)break;for(;l.sibling===null;){if(l.return===null||l.return===s)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var fn=null,Jn=null,Qt=!1;function Ok(s,l){var u=It(5,null,null,0);u.elementType="DELETED",u.type="DELETED",u.stateNode=l,u.return=s,u.flags=8,s.lastEffect!==null?(s.lastEffect.nextEffect=u,s.lastEffect=u):s.firstEffect=s.lastEffect=u}function Tk(s,l){switch(s.tag){case 5:var u=s.type;return l=l.nodeType!==1||u.toLowerCase()!==l.nodeName.toLowerCase()?null:l,l!==null?(s.stateNode=l,!0):!1;case 6:return l=s.pendingProps===""||l.nodeType!==3?null:l,l!==null?(s.stateNode=l,!0):!1;case 13:return!1;default:return!1}}function sm(s){if(Qt){var l=Jn;if(l){var u=l;if(!Tk(s,l)){if(l=sr(u.nextSibling),!l||!Tk(s,l)){s.flags=s.flags&-1025|2,Qt=!1,fn=s;return}Ok(fn,u)}fn=s,Jn=sr(l.firstChild)}else s.flags=s.flags&-1025|2,Qt=!1,fn=s}}function Pk(s){for(s=s.return;s!==null&&s.tag!==5&&s.tag!==3&&s.tag!==13;)s=s.return;fn=s}function bl(s){if(s!==fn)return!1;if(!Qt)return Pk(s),Qt=!0,!1;var l=s.type;if(s.tag!==5||l!=="head"&&l!=="body"&&!Vd(l,s.memoizedProps))for(l=Jn;l;)Ok(s,l),l=sr(l.nextSibling);if(Pk(s),s.tag===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(o(317));e:{for(s=s.nextSibling,l=0;s;){if(s.nodeType===8){var u=s.data;if(u==="/$"){if(l===0){Jn=sr(s.nextSibling);break e}l--}else u!=="$"&&u!=="$!"&&u!=="$?"||l++}s=s.nextSibling}Jn=null}}else Jn=fn?sr(s.stateNode.nextSibling):null;return!0}function am(){Jn=fn=null,Qt=!1}var hr=[];function lm(){for(var s=0;s<hr.length;s++)hr[s]._workInProgressVersionPrimary=null;hr.length=0}var Bi=Y.ReactCurrentDispatcher,Lt=Y.ReactCurrentBatchConfig,zi=0,Fe=null,it=null,Qe=null,vl=!1,Fi=!1;function gt(){throw Error(o(321))}function cm(s,l){if(l===null)return!1;for(var u=0;u<l.length&&u<s.length;u++)if(!Pt(s[u],l[u]))return!1;return!0}function um(s,l,u,f,y,v){if(zi=v,Fe=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,Bi.current=s===null||s.memoizedState===null?zA:FA,s=u(f,y),Fi){v=0;do{if(Fi=!1,!(25>v))throw Error(o(301));v+=1,Qe=it=null,l.updateQueue=null,Bi.current=_A,s=u(f,y)}while(Fi)}if(Bi.current=Sl,l=it!==null&&it.next!==null,zi=0,Qe=it=Fe=null,vl=!1,l)throw Error(o(300));return s}function Eo(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?Fe.memoizedState=Qe=s:Qe=Qe.next=s,Qe}function No(){if(it===null){var s=Fe.alternate;s=s!==null?s.memoizedState:null}else s=it.next;var l=Qe===null?Fe.memoizedState:Qe.next;if(l!==null)Qe=l,it=s;else{if(s===null)throw Error(o(310));it=s,s={memoizedState:it.memoizedState,baseState:it.baseState,baseQueue:it.baseQueue,queue:it.queue,next:null},Qe===null?Fe.memoizedState=Qe=s:Qe=Qe.next=s}return Qe}function Xt(s,l){return typeof l=="function"?l(s):l}function _i(s){var l=No(),u=l.queue;if(u===null)throw Error(o(311));u.lastRenderedReducer=s;var f=it,y=f.baseQueue,v=u.pending;if(v!==null){if(y!==null){var x=y.next;y.next=v.next,v.next=x}f.baseQueue=y=v,u.pending=null}if(y!==null){y=y.next,f=f.baseState;var C=x=v=null,D=y;do{var M=D.lane;if((zi&M)===M)C!==null&&(C=C.next={lane:0,action:D.action,eagerReducer:D.eagerReducer,eagerState:D.eagerState,next:null}),f=D.eagerReducer===s?D.eagerState:s(f,D.action);else{var G={lane:M,action:D.action,eagerReducer:D.eagerReducer,eagerState:D.eagerState,next:null};C===null?(x=C=G,v=f):C=C.next=G,Fe.lanes|=M,Yi|=M}D=D.next}while(D!==null&&D!==y);C===null?v=f:C.next=x,Pt(f,l.memoizedState)||(_t=!0),l.memoizedState=f,l.baseState=v,l.baseQueue=C,u.lastRenderedState=f}return[l.memoizedState,u.dispatch]}function Ui(s){var l=No(),u=l.queue;if(u===null)throw Error(o(311));u.lastRenderedReducer=s;var f=u.dispatch,y=u.pending,v=l.memoizedState;if(y!==null){u.pending=null;var x=y=y.next;do v=s(v,x.action),x=x.next;while(x!==y);Pt(v,l.memoizedState)||(_t=!0),l.memoizedState=v,l.baseQueue===null&&(l.baseState=v),u.lastRenderedState=v}return[v,f]}function Mk(s,l,u){var f=l._getVersion;f=f(l._source);var y=l._workInProgressVersionPrimary;if(y!==null?s=y===f:(s=s.mutableReadLanes,(s=(zi&s)===s)&&(l._workInProgressVersionPrimary=f,hr.push(l))),s)return u(l._source);throw hr.push(l),Error(o(350))}function Lk(s,l,u,f){var y=ut;if(y===null)throw Error(o(349));var v=l._getVersion,x=v(l._source),C=Bi.current,D=C.useState(function(){return Mk(y,l,u)}),M=D[1],G=D[0];D=Qe;var fe=s.memoizedState,H=fe.refs,ne=H.getSnapshot,de=fe.source;fe=fe.subscribe;var ce=Fe;return s.memoizedState={refs:H,source:l,subscribe:f},C.useEffect(function(){H.getSnapshot=u,H.setSnapshot=M;var O=v(l._source);if(!Pt(x,O)){O=u(l._source),Pt(G,O)||(M(O),O=Wn(ce),y.mutableReadLanes|=O&y.pendingLanes),O=y.mutableReadLanes,y.entangledLanes|=O;for(var R=y.entanglements,A=O;0<A;){var B=31-Bn(A),F=1<<B;R[B]|=O,A&=~F}}},[u,l,f]),C.useEffect(function(){return f(l._source,function(){var O=H.getSnapshot,R=H.setSnapshot;try{R(O(l._source));var A=Wn(ce);y.mutableReadLanes|=A&y.pendingLanes}catch(B){R(function(){throw B})}})},[l,f]),Pt(ne,u)&&Pt(de,l)&&Pt(fe,f)||(s={pending:null,dispatch:null,lastRenderedReducer:Xt,lastRenderedState:G},s.dispatch=M=fm.bind(null,Fe,s),D.queue=s,D.baseQueue=null,G=Mk(y,l,u),D.memoizedState=D.baseState=G),G}function jk(s,l,u){var f=No();return Lk(f,s,l,u)}function Hi(s){var l=Eo();return typeof s=="function"&&(s=s()),l.memoizedState=l.baseState=s,s=l.queue={pending:null,dispatch:null,lastRenderedReducer:Xt,lastRenderedState:s},s=s.dispatch=fm.bind(null,Fe,s),[l.memoizedState,s]}function wl(s,l,u,f){return s={tag:s,create:l,destroy:u,deps:f,next:null},l=Fe.updateQueue,l===null?(l={lastEffect:null},Fe.updateQueue=l,l.lastEffect=s.next=s):(u=l.lastEffect,u===null?l.lastEffect=s.next=s:(f=u.next,u.next=s,s.next=f,l.lastEffect=s)),s}function Ik(s){var l=Eo();return s={current:s},l.memoizedState=s}function $l(){return No().memoizedState}function dm(s,l,u,f){var y=Eo();Fe.flags|=s,y.memoizedState=wl(1|l,u,void 0,f===void 0?null:f)}function mm(s,l,u,f){var y=No();f=f===void 0?null:f;var v=void 0;if(it!==null){var x=it.memoizedState;if(v=x.destroy,f!==null&&cm(f,x.deps)){wl(l,u,v,f);return}}Fe.flags|=s,y.memoizedState=wl(1|l,u,v,f)}function Bk(s,l){return dm(516,4,s,l)}function xl(s,l){return mm(516,4,s,l)}function zk(s,l){return mm(4,2,s,l)}function Fk(s,l){if(typeof l=="function")return s=s(),l(s),function(){l(null)};if(l!=null)return s=s(),l.current=s,function(){l.current=null}}function _k(s,l,u){return u=u!=null?u.concat([s]):null,mm(4,2,Fk.bind(null,l,s),u)}function pm(){}function Uk(s,l){var u=No();l=l===void 0?null:l;var f=u.memoizedState;return f!==null&&l!==null&&cm(l,f[1])?f[0]:(u.memoizedState=[s,l],s)}function Hk(s,l){var u=No();l=l===void 0?null:l;var f=u.memoizedState;return f!==null&&l!==null&&cm(l,f[1])?f[0]:(s=s(),u.memoizedState=[s,l],s)}function BA(s,l){var u=dr();So(98>u?98:u,function(){s(!0)}),So(97<u?97:u,function(){var f=Lt.transition;Lt.transition=1;try{s(!1),l()}finally{Lt.transition=f}})}function fm(s,l,u){var f=St(),y=Wn(s),v={lane:y,action:u,eagerReducer:null,eagerState:null,next:null},x=l.pending;if(x===null?v.next=v:(v.next=x.next,x.next=v),l.pending=v,x=s.alternate,s===Fe||x!==null&&x===Fe)Fi=vl=!0;else{if(s.lanes===0&&(x===null||x.lanes===0)&&(x=l.lastRenderedReducer,x!==null))try{var C=l.lastRenderedState,D=x(C,u);if(v.eagerReducer=x,v.eagerState=D,Pt(D,C))return}catch{}qn(s,y,f)}}var Sl={readContext:Mt,useCallback:gt,useContext:gt,useEffect:gt,useImperativeHandle:gt,useLayoutEffect:gt,useMemo:gt,useReducer:gt,useRef:gt,useState:gt,useDebugValue:gt,useDeferredValue:gt,useTransition:gt,useMutableSource:gt,useOpaqueIdentifier:gt,unstable_isNewReconciler:!1},zA={readContext:Mt,useCallback:function(s,l){return Eo().memoizedState=[s,l===void 0?null:l],s},useContext:Mt,useEffect:Bk,useImperativeHandle:function(s,l,u){return u=u!=null?u.concat([s]):null,dm(4,2,Fk.bind(null,l,s),u)},useLayoutEffect:function(s,l){return dm(4,2,s,l)},useMemo:function(s,l){var u=Eo();return l=l===void 0?null:l,s=s(),u.memoizedState=[s,l],s},useReducer:function(s,l,u){var f=Eo();return l=u!==void 0?u(l):l,f.memoizedState=f.baseState=l,s=f.queue={pending:null,dispatch:null,lastRenderedReducer:s,lastRenderedState:l},s=s.dispatch=fm.bind(null,Fe,s),[f.memoizedState,s]},useRef:Ik,useState:Hi,useDebugValue:pm,useDeferredValue:function(s){var l=Hi(s),u=l[0],f=l[1];return Bk(function(){var y=Lt.transition;Lt.transition=1;try{f(s)}finally{Lt.transition=y}},[s]),u},useTransition:function(){var s=Hi(!1),l=s[0];return s=BA.bind(null,s[1]),Ik(s),[s,l]},useMutableSource:function(s,l,u){var f=Eo();return f.memoizedState={refs:{getSnapshot:l,setSnapshot:null},source:s,subscribe:u},Lk(f,s,l,u)},useOpaqueIdentifier:function(){if(Qt){var s=!1,l=TA(function(){throw s||(s=!0,u("r:"+(Jd++).toString(36))),Error(o(355))}),u=Hi(l)[1];return(Fe.mode&2)===0&&(Fe.flags|=516,wl(5,function(){u("r:"+(Jd++).toString(36))},void 0,null)),l}return l="r:"+(Jd++).toString(36),Hi(l),l},unstable_isNewReconciler:!1},FA={readContext:Mt,useCallback:Uk,useContext:Mt,useEffect:xl,useImperativeHandle:_k,useLayoutEffect:zk,useMemo:Hk,useReducer:_i,useRef:$l,useState:function(){return _i(Xt)},useDebugValue:pm,useDeferredValue:function(s){var l=_i(Xt),u=l[0],f=l[1];return xl(function(){var y=Lt.transition;Lt.transition=1;try{f(s)}finally{Lt.transition=y}},[s]),u},useTransition:function(){var s=_i(Xt)[0];return[$l().current,s]},useMutableSource:jk,useOpaqueIdentifier:function(){return _i(Xt)[0]},unstable_isNewReconciler:!1},_A={readContext:Mt,useCallback:Uk,useContext:Mt,useEffect:xl,useImperativeHandle:_k,useLayoutEffect:zk,useMemo:Hk,useReducer:Ui,useRef:$l,useState:function(){return Ui(Xt)},useDebugValue:pm,useDeferredValue:function(s){var l=Ui(Xt),u=l[0],f=l[1];return xl(function(){var y=Lt.transition;Lt.transition=1;try{f(s)}finally{Lt.transition=y}},[s]),u},useTransition:function(){var s=Ui(Xt)[0];return[$l().current,s]},useMutableSource:jk,useOpaqueIdentifier:function(){return Ui(Xt)[0]},unstable_isNewReconciler:!1},UA=Y.ReactCurrentOwner,_t=!1;function yt(s,l,u,f){l.child=s===null?Rk(l,null,u,f):yl(l,s.child,u,f)}function Vk(s,l,u,f,y){u=u.render;var v=l.ref;return pr(l,y),f=um(s,l,u,f,v,y),s!==null&&!_t?(l.updateQueue=s.updateQueue,l.flags&=-517,s.lanes&=~y,hn(s,l,y)):(l.flags|=1,yt(s,l,f,y),l.child)}function Yk(s,l,u,f,y,v){if(s===null){var x=u.type;return typeof x=="function"&&!Im(x)&&x.defaultProps===void 0&&u.compare===null&&u.defaultProps===void 0?(l.tag=15,l.type=x,Jk(s,l,x,f,y,v)):(s=Ml(u.type,null,f,l,l.mode,v),s.ref=l.ref,s.return=l,l.child=s)}return x=s.child,(y&v)===0&&(y=x.memoizedProps,u=u.compare,u=u!==null?u:Ni,u(y,f)&&s.ref===l.ref)?hn(s,l,v):(l.flags|=1,s=Xn(x,f),s.ref=l.ref,s.return=l,l.child=s)}function Jk(s,l,u,f,y,v){if(s!==null&&Ni(s.memoizedProps,f)&&s.ref===l.ref)if(_t=!1,(v&y)!==0)(s.flags&16384)!==0&&(_t=!0);else return l.lanes=s.lanes,hn(s,l,v);return gm(s,l,u,f,v)}function hm(s,l,u){var f=l.pendingProps,y=f.children,v=s!==null?s.memoizedState:null;if(f.mode==="hidden"||f.mode==="unstable-defer-without-hiding")if((l.mode&4)===0)l.memoizedState={baseLanes:0},Pl(l,u);else if((u&1073741824)!==0)l.memoizedState={baseLanes:0},Pl(l,v!==null?v.baseLanes:u);else return s=v!==null?v.baseLanes|u:u,l.lanes=l.childLanes=1073741824,l.memoizedState={baseLanes:s},Pl(l,s),null;else v!==null?(f=v.baseLanes|u,l.memoizedState=null):f=u,Pl(l,f);return yt(s,l,y,u),l.child}function Kk(s,l){var u=l.ref;(s===null&&u!==null||s!==null&&s.ref!==u)&&(l.flags|=128)}function gm(s,l,u,f,y){var v=ht(u)?$o:ot.current;return v=ur(l,v),pr(l,y),u=um(s,l,u,f,v,y),s!==null&&!_t?(l.updateQueue=s.updateQueue,l.flags&=-517,s.lanes&=~y,hn(s,l,y)):(l.flags|=1,yt(s,l,u,y),l.child)}function Wk(s,l,u,f,y){if(ht(u)){var v=!0;al(l)}else v=!1;if(pr(l,y),l.stateNode===null)s!==null&&(s.alternate=null,l.alternate=null,l.flags|=2),Ek(l,u,f),om(l,u,f,y),f=!0;else if(s===null){var x=l.stateNode,C=l.memoizedProps;x.props=C;var D=x.context,M=u.contextType;typeof M=="object"&&M!==null?M=Mt(M):(M=ht(u)?$o:ot.current,M=ur(l,M));var G=u.getDerivedStateFromProps,fe=typeof G=="function"||typeof x.getSnapshotBeforeUpdate=="function";fe||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(C!==f||D!==M)&&Nk(l,x,f,M),Hn=!1;var H=l.memoizedState;x.state=H,Pi(l,f,x,y),D=l.memoizedState,C!==f||H!==D||ft.current||Hn?(typeof G=="function"&&(pl(l,u,G,f),D=l.memoizedState),(C=Hn||Ck(l,u,C,f,H,D,M))?(fe||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(l.flags|=4)):(typeof x.componentDidMount=="function"&&(l.flags|=4),l.memoizedProps=f,l.memoizedState=D),x.props=f,x.state=D,x.context=M,f=C):(typeof x.componentDidMount=="function"&&(l.flags|=4),f=!1)}else{x=l.stateNode,wk(s,l),C=l.memoizedProps,M=l.type===l.elementType?C:Ft(l.type,C),x.props=M,fe=l.pendingProps,H=x.context,D=u.contextType,typeof D=="object"&&D!==null?D=Mt(D):(D=ht(u)?$o:ot.current,D=ur(l,D));var ne=u.getDerivedStateFromProps;(G=typeof ne=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(C!==fe||H!==D)&&Nk(l,x,f,D),Hn=!1,H=l.memoizedState,x.state=H,Pi(l,f,x,y);var de=l.memoizedState;C!==fe||H!==de||ft.current||Hn?(typeof ne=="function"&&(pl(l,u,ne,f),de=l.memoizedState),(M=Hn||Ck(l,u,M,f,H,de,D))?(G||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(f,de,D),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(f,de,D)),typeof x.componentDidUpdate=="function"&&(l.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(l.flags|=256)):(typeof x.componentDidUpdate!="function"||C===s.memoizedProps&&H===s.memoizedState||(l.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||C===s.memoizedProps&&H===s.memoizedState||(l.flags|=256),l.memoizedProps=f,l.memoizedState=de),x.props=f,x.state=de,x.context=D,f=M):(typeof x.componentDidUpdate!="function"||C===s.memoizedProps&&H===s.memoizedState||(l.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||C===s.memoizedProps&&H===s.memoizedState||(l.flags|=256),f=!1)}return ym(s,l,u,f,v,y)}function ym(s,l,u,f,y,v){Kk(s,l);var x=(l.flags&64)!==0;if(!f&&!x)return y&&dk(l,u,!1),hn(s,l,v);f=l.stateNode,UA.current=l;var C=x&&typeof u.getDerivedStateFromError!="function"?null:f.render();return l.flags|=1,s!==null&&x?(l.child=yl(l,s.child,null,v),l.child=yl(l,null,C,v)):yt(s,l,C,v),l.memoizedState=f.state,y&&dk(l,u,!0),l.child}function qk(s){var l=s.stateNode;l.pendingContext?ck(s,l.pendingContext,l.pendingContext!==l.context):l.context&&ck(s,l.context,!1),rm(s,l.containerInfo)}var Cl={dehydrated:null,retryLane:0};function Gk(s,l,u){var f=l.pendingProps,y=ze.current,v=!1,x;return(x=(l.flags&64)!==0)||(x=s!==null&&s.memoizedState===null?!1:(y&2)!==0),x?(v=!0,l.flags&=-65):s!==null&&s.memoizedState===null||f.fallback===void 0||f.unstable_avoidThisFallback===!0||(y|=1),Be(ze,y&1),s===null?(f.fallback!==void 0&&sm(l),s=f.children,y=f.fallback,v?(s=Qk(l,s,y,u),l.child.memoizedState={baseLanes:u},l.memoizedState=Cl,s):typeof f.unstable_expectedLoadTime=="number"?(s=Qk(l,s,y,u),l.child.memoizedState={baseLanes:u},l.memoizedState=Cl,l.lanes=33554432,s):(u=Bm({mode:"visible",children:s},l.mode,u,null),u.return=l,l.child=u)):s.memoizedState!==null?v?(f=Zk(s,l,f.children,f.fallback,u),v=l.child,y=s.child.memoizedState,v.memoizedState=y===null?{baseLanes:u}:{baseLanes:y.baseLanes|u},v.childLanes=s.childLanes&~u,l.memoizedState=Cl,f):(u=Xk(s,l,f.children,u),l.memoizedState=null,u):v?(f=Zk(s,l,f.children,f.fallback,u),v=l.child,y=s.child.memoizedState,v.memoizedState=y===null?{baseLanes:u}:{baseLanes:y.baseLanes|u},v.childLanes=s.childLanes&~u,l.memoizedState=Cl,f):(u=Xk(s,l,f.children,u),l.memoizedState=null,u)}function Qk(s,l,u,f){var y=s.mode,v=s.child;return l={mode:"hidden",children:l},(y&2)===0&&v!==null?(v.childLanes=0,v.pendingProps=l):v=Bm(l,y,0,null),u=wr(u,y,f,null),v.return=s,u.return=s,v.sibling=u,s.child=v,u}function Xk(s,l,u,f){var y=s.child;return s=y.sibling,u=Xn(y,{mode:"visible",children:u}),(l.mode&2)===0&&(u.lanes=f),u.return=l,u.sibling=null,s!==null&&(s.nextEffect=null,s.flags=8,l.firstEffect=l.lastEffect=s),l.child=u}function Zk(s,l,u,f,y){var v=l.mode,x=s.child;s=x.sibling;var C={mode:"hidden",children:u};return(v&2)===0&&l.child!==x?(u=l.child,u.childLanes=0,u.pendingProps=C,x=u.lastEffect,x!==null?(l.firstEffect=u.firstEffect,l.lastEffect=x,x.nextEffect=null):l.firstEffect=l.lastEffect=null):u=Xn(x,C),s!==null?f=Xn(s,f):(f=wr(f,v,y,null),f.flags|=2),f.return=l,u.return=l,u.sibling=f,l.child=u,f}function eb(s,l){s.lanes|=l;var u=s.alternate;u!==null&&(u.lanes|=l),vk(s.return,l)}function km(s,l,u,f,y,v){var x=s.memoizedState;x===null?s.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:f,tail:u,tailMode:y,lastEffect:v}:(x.isBackwards=l,x.rendering=null,x.renderingStartTime=0,x.last=f,x.tail=u,x.tailMode=y,x.lastEffect=v)}function tb(s,l,u){var f=l.pendingProps,y=f.revealOrder,v=f.tail;if(yt(s,l,f.children,u),f=ze.current,(f&2)!==0)f=f&1|2,l.flags|=64;else{if(s!==null&&(s.flags&64)!==0)e:for(s=l.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&eb(s,u);else if(s.tag===19)eb(s,u);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===l)break e;for(;s.sibling===null;){if(s.return===null||s.return===l)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}f&=1}if(Be(ze,f),(l.mode&2)===0)l.memoizedState=null;else switch(y){case"forwards":for(u=l.child,y=null;u!==null;)s=u.alternate,s!==null&&kl(s)===null&&(y=u),u=u.sibling;u=y,u===null?(y=l.child,l.child=null):(y=u.sibling,u.sibling=null),km(l,!1,y,u,v,l.lastEffect);break;case"backwards":for(u=null,y=l.child,l.child=null;y!==null;){if(s=y.alternate,s!==null&&kl(s)===null){l.child=y;break}s=y.sibling,y.sibling=u,u=y,y=s}km(l,!0,u,null,v,l.lastEffect);break;case"together":km(l,!1,null,null,void 0,l.lastEffect);break;default:l.memoizedState=null}return l.child}function hn(s,l,u){if(s!==null&&(l.dependencies=s.dependencies),Yi|=l.lanes,(u&l.childLanes)!==0){if(s!==null&&l.child!==s.child)throw Error(o(153));if(l.child!==null){for(s=l.child,u=Xn(s,s.pendingProps),l.child=u,u.return=l;s.sibling!==null;)s=s.sibling,u=u.sibling=Xn(s,s.pendingProps),u.return=l;u.sibling=null}return l.child}return null}var nb,bm,ob,rb;nb=function(s,l){for(var u=l.child;u!==null;){if(u.tag===5||u.tag===6)s.appendChild(u.stateNode);else if(u.tag!==4&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return;u=u.return}u.sibling.return=u.return,u=u.sibling}},bm=function(){},ob=function(s,l,u,f){var y=s.memoizedProps;if(y!==f){s=l.stateNode,Co(Gt.current);var v=null;switch(u){case"input":y=od(s,y),f=od(s,f),v=[];break;case"option":y=sd(s,y),f=sd(s,f),v=[];break;case"select":y=e({},y,{value:void 0}),f=e({},f,{value:void 0}),v=[];break;case"textarea":y=ad(s,y),f=ad(s,f),v=[];break;default:typeof y.onClick!="function"&&typeof f.onClick=="function"&&(s.onclick=nl)}ud(u,f);var x;u=null;for(M in y)if(!f.hasOwnProperty(M)&&y.hasOwnProperty(M)&&y[M]!=null)if(M==="style"){var C=y[M];for(x in C)C.hasOwnProperty(x)&&(u||(u={}),u[x]="")}else M!=="dangerouslySetInnerHTML"&&M!=="children"&&M!=="suppressContentEditableWarning"&&M!=="suppressHydrationWarning"&&M!=="autoFocus"&&(i.hasOwnProperty(M)?v||(v=[]):(v=v||[]).push(M,null));for(M in f){var D=f[M];if(C=y?.[M],f.hasOwnProperty(M)&&D!==C&&(D!=null||C!=null))if(M==="style")if(C){for(x in C)!C.hasOwnProperty(x)||D&&D.hasOwnProperty(x)||(u||(u={}),u[x]="");for(x in D)D.hasOwnProperty(x)&&C[x]!==D[x]&&(u||(u={}),u[x]=D[x])}else u||(v||(v=[]),v.push(M,u)),u=D;else M==="dangerouslySetInnerHTML"?(D=D?D.__html:void 0,C=C?C.__html:void 0,D!=null&&C!==D&&(v=v||[]).push(M,D)):M==="children"?typeof D!="string"&&typeof D!="number"||(v=v||[]).push(M,""+D):M!=="suppressContentEditableWarning"&&M!=="suppressHydrationWarning"&&(i.hasOwnProperty(M)?(D!=null&&M==="onScroll"&&Me("scroll",s),v||C===D||(v=[])):typeof D=="object"&&D!==null&&D.$$typeof===se?D.toString():(v=v||[]).push(M,D))}u&&(v=v||[]).push("style",u);var M=v;(l.updateQueue=M)&&(l.flags|=4)}},rb=function(s,l,u,f){u!==f&&(l.flags|=4)};function Vi(s,l){if(!Qt)switch(s.tailMode){case"hidden":l=s.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?s.tail=null:u.sibling=null;break;case"collapsed":u=s.tail;for(var f=null;u!==null;)u.alternate!==null&&(f=u),u=u.sibling;f===null?l||s.tail===null?s.tail=null:s.tail.sibling=null:f.sibling=null}}function HA(s,l,u){var f=l.pendingProps;switch(l.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 ht(l.type)&&sl(),null;case 3:return fr(),Le(ft),Le(ot),lm(),f=l.stateNode,f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(s===null||s.child===null)&&(bl(l)?l.flags|=4:f.hydrate||(l.flags|=256)),bm(l),null;case 5:im(l);var y=Co(Ii.current);if(u=l.type,s!==null&&l.stateNode!=null)ob(s,l,u,f,y),s.ref!==l.ref&&(l.flags|=128);else{if(!f){if(l.stateNode===null)throw Error(o(166));return null}if(s=Co(Gt.current),bl(l)){f=l.stateNode,u=l.type;var v=l.memoizedProps;switch(f[Fn]=l,f[rl]=v,u){case"dialog":Me("cancel",f),Me("close",f);break;case"iframe":case"object":case"embed":Me("load",f);break;case"video":case"audio":for(s=0;s<Ri.length;s++)Me(Ri[s],f);break;case"source":Me("error",f);break;case"img":case"image":case"link":Me("error",f),Me("load",f);break;case"details":Me("toggle",f);break;case"input":qy(f,v),Me("invalid",f);break;case"select":f._wrapperState={wasMultiple:!!v.multiple},Me("invalid",f);break;case"textarea":Xy(f,v),Me("invalid",f)}ud(u,v),s=null;for(var x in v)v.hasOwnProperty(x)&&(y=v[x],x==="children"?typeof y=="string"?f.textContent!==y&&(s=["children",y]):typeof y=="number"&&f.textContent!==""+y&&(s=["children",""+y]):i.hasOwnProperty(x)&&y!=null&&x==="onScroll"&&Me("scroll",f));switch(u){case"input":za(f),Qy(f,v,!0);break;case"textarea":za(f),e0(f);break;case"select":case"option":break;default:typeof v.onClick=="function"&&(f.onclick=nl)}f=s,l.updateQueue=f,f!==null&&(l.flags|=4)}else{switch(x=y.nodeType===9?y:y.ownerDocument,s===ld.html&&(s=t0(u)),s===ld.html?u==="script"?(s=x.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild)):typeof f.is=="string"?s=x.createElement(u,{is:f.is}):(s=x.createElement(u),u==="select"&&(x=s,f.multiple?x.multiple=!0:f.size&&(x.size=f.size))):s=x.createElementNS(s,u),s[Fn]=l,s[rl]=f,nb(s,l,!1,!1),l.stateNode=s,x=dd(u,f),u){case"dialog":Me("cancel",s),Me("close",s),y=f;break;case"iframe":case"object":case"embed":Me("load",s),y=f;break;case"video":case"audio":for(y=0;y<Ri.length;y++)Me(Ri[y],s);y=f;break;case"source":Me("error",s),y=f;break;case"img":case"image":case"link":Me("error",s),Me("load",s),y=f;break;case"details":Me("toggle",s),y=f;break;case"input":qy(s,f),y=od(s,f),Me("invalid",s);break;case"option":y=sd(s,f);break;case"select":s._wrapperState={wasMultiple:!!f.multiple},y=e({},f,{value:void 0}),Me("invalid",s);break;case"textarea":Xy(s,f),y=ad(s,f),Me("invalid",s);break;default:y=f}ud(u,y);var C=y;for(v in C)if(C.hasOwnProperty(v)){var D=C[v];v==="style"?r0(s,D):v==="dangerouslySetInnerHTML"?(D=D?D.__html:void 0,D!=null&&n0(s,D)):v==="children"?typeof D=="string"?(u!=="textarea"||D!=="")&&di(s,D):typeof D=="number"&&di(s,""+D):v!=="suppressContentEditableWarning"&&v!=="suppressHydrationWarning"&&v!=="autoFocus"&&(i.hasOwnProperty(v)?D!=null&&v==="onScroll"&&Me("scroll",s):D!=null&&j(s,v,D,x))}switch(u){case"input":za(s),Qy(s,f,!1);break;case"textarea":za(s),e0(s);break;case"option":f.value!=null&&s.setAttribute("value",""+Mn(f.value));break;case"select":s.multiple=!!f.multiple,v=f.value,v!=null?Go(s,!!f.multiple,v,!1):f.defaultValue!=null&&Go(s,!!f.multiple,f.defaultValue,!0);break;default:typeof y.onClick=="function"&&(s.onclick=nl)}rk(u,f)&&(l.flags|=4)}l.ref!==null&&(l.flags|=128)}return null;case 6:if(s&&l.stateNode!=null)rb(s,l,s.memoizedProps,f);else{if(typeof f!="string"&&l.stateNode===null)throw Error(o(166));u=Co(Ii.current),Co(Gt.current),bl(l)?(f=l.stateNode,u=l.memoizedProps,f[Fn]=l,f.nodeValue!==u&&(l.flags|=4)):(f=(u.nodeType===9?u:u.ownerDocument).createTextNode(f),f[Fn]=l,l.stateNode=f)}return null;case 13:return Le(ze),f=l.memoizedState,(l.flags&64)!==0?(l.lanes=u,l):(f=f!==null,u=!1,s===null?l.memoizedProps.fallback!==void 0&&bl(l):u=s.memoizedState!==null,f&&!u&&(l.mode&2)!==0&&(s===null&&l.memoizedProps.unstable_avoidThisFallback!==!0||(ze.current&1)!==0?Xe===0&&(Xe=3):((Xe===0||Xe===3)&&(Xe=4),ut===null||(Yi&134217727)===0&&(yr&134217727)===0||br(ut,st))),(f||u)&&(l.flags|=4),null);case 4:return fr(),bm(l),s===null&&Z0(l.stateNode.containerInfo),null;case 10:return tm(l),null;case 17:return ht(l.type)&&sl(),null;case 19:if(Le(ze),f=l.memoizedState,f===null)return null;if(v=(l.flags&64)!==0,x=f.rendering,x===null)if(v)Vi(f,!1);else{if(Xe!==0||s!==null&&(s.flags&64)!==0)for(s=l.child;s!==null;){if(x=kl(s),x!==null){for(l.flags|=64,Vi(f,!1),v=x.updateQueue,v!==null&&(l.updateQueue=v,l.flags|=4),f.lastEffect===null&&(l.firstEffect=null),l.lastEffect=f.lastEffect,f=u,u=l.child;u!==null;)v=u,s=f,v.flags&=2,v.nextEffect=null,v.firstEffect=null,v.lastEffect=null,x=v.alternate,x===null?(v.childLanes=0,v.lanes=s,v.child=null,v.memoizedProps=null,v.memoizedState=null,v.updateQueue=null,v.dependencies=null,v.stateNode=null):(v.childLanes=x.childLanes,v.lanes=x.lanes,v.child=x.child,v.memoizedProps=x.memoizedProps,v.memoizedState=x.memoizedState,v.updateQueue=x.updateQueue,v.type=x.type,s=x.dependencies,v.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),u=u.sibling;return Be(ze,ze.current&1|2),l.child}s=s.sibling}f.tail!==null&&rt()>Am&&(l.flags|=64,v=!0,Vi(f,!1),l.lanes=33554432)}else{if(!v)if(s=kl(x),s!==null){if(l.flags|=64,v=!0,u=s.updateQueue,u!==null&&(l.updateQueue=u,l.flags|=4),Vi(f,!0),f.tail===null&&f.tailMode==="hidden"&&!x.alternate&&!Qt)return l=l.lastEffect=f.lastEffect,l!==null&&(l.nextEffect=null),null}else 2*rt()-f.renderingStartTime>Am&&u!==1073741824&&(l.flags|=64,v=!0,Vi(f,!1),l.lanes=33554432);f.isBackwards?(x.sibling=l.child,l.child=x):(u=f.last,u!==null?u.sibling=x:l.child=x,f.last=x)}return f.tail!==null?(u=f.tail,f.rendering=u,f.tail=u.sibling,f.lastEffect=l.lastEffect,f.renderingStartTime=rt(),u.sibling=null,l=ze.current,Be(ze,v?l&1|2:l&1),u):null;case 23:case 24:return jm(),s!==null&&s.memoizedState!==null!=(l.memoizedState!==null)&&f.mode!=="unstable-defer-without-hiding"&&(l.flags|=4),null}throw Error(o(156,l.tag))}function VA(s){switch(s.tag){case 1:ht(s.type)&&sl();var l=s.flags;return l&4096?(s.flags=l&-4097|64,s):null;case 3:if(fr(),Le(ft),Le(ot),lm(),l=s.flags,(l&64)!==0)throw Error(o(285));return s.flags=l&-4097|64,s;case 5:return im(s),null;case 13:return Le(ze),l=s.flags,l&4096?(s.flags=l&-4097|64,s):null;case 19:return Le(ze),null;case 4:return fr(),null;case 10:return tm(s),null;case 23:case 24:return jm(),null;default:return null}}function vm(s,l){try{var u="",f=l;do u+=xR(f),f=f.return;while(f);var y=u}catch(v){y=`
|
|
95
|
-
Error generating stack: `+
|
|
96
|
-
`+v.stack}return{value:s,source:l,stack:y}}function wm(s,l){try{console.error(l.value)}catch(u){setTimeout(function(){throw u})}}var YA=typeof WeakMap=="function"?WeakMap:Map;function ib(s,l,u){u=Vn(-1,u),u.tag=3,u.payload={element:null};var f=l.value;return u.callback=function(){Dl||(Dl=!0,Om=f),wm(s,l)},u}function sb(s,l,u){u=Vn(-1,u),u.tag=3;var f=s.type.getDerivedStateFromError;if(typeof f=="function"){var y=l.value;u.payload=function(){return wm(s,l),f(y)}}var v=s.stateNode;return v!==null&&typeof v.componentDidCatch=="function"&&(u.callback=function(){typeof f!="function"&&(Zt===null?Zt=new Set([this]):Zt.add(this),wm(s,l));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})}),u}var JA=typeof WeakSet=="function"?WeakSet:Set;function ab(s){var l=s.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(u){Qn(s,u)}else l.current=null}function KA(s,l){switch(l.tag){case 0:case 11:case 15:case 22:return;case 1:if(l.flags&256&&s!==null){var u=s.memoizedProps,f=s.memoizedState;s=l.stateNode,l=s.getSnapshotBeforeUpdate(l.elementType===l.type?u:Ft(l.type,u),f),s.__reactInternalSnapshotBeforeUpdate=l}return;case 3:l.flags&256&&Yd(l.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(o(163))}function WA(s,l,u){switch(u.tag){case 0:case 11:case 15:case 22:if(l=u.updateQueue,l=l!==null?l.lastEffect:null,l!==null){s=l=l.next;do{if((s.tag&3)===3){var f=s.create;s.destroy=f()}s=s.next}while(s!==l)}if(l=u.updateQueue,l=l!==null?l.lastEffect:null,l!==null){s=l=l.next;do{var y=s;f=y.next,y=y.tag,(y&4)!==0&&(y&1)!==0&&($b(u,s),nO(u,s)),s=f}while(s!==l)}return;case 1:s=u.stateNode,u.flags&4&&(l===null?s.componentDidMount():(f=u.elementType===u.type?l.memoizedProps:Ft(u.type,l.memoizedProps),s.componentDidUpdate(f,l.memoizedState,s.__reactInternalSnapshotBeforeUpdate))),l=u.updateQueue,l!==null&&xk(u,l,s);return;case 3:if(l=u.updateQueue,l!==null){if(s=null,u.child!==null)switch(u.child.tag){case 5:s=u.child.stateNode;break;case 1:s=u.child.stateNode}xk(u,l,s)}return;case 5:s=u.stateNode,l===null&&u.flags&4&&rk(u.type,u.memoizedProps)&&s.focus();return;case 6:return;case 4:return;case 12:return;case 13:u.memoizedState===null&&(u=u.alternate,u!==null&&(u=u.memoizedState,u!==null&&(u=u.dehydrated,u!==null&&v0(u))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(o(163))}function lb(s,l){for(var u=s;;){if(u.tag===5){var f=u.stateNode;if(l)f=f.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{f=u.stateNode;var y=u.memoizedProps.style;y=y!=null&&y.hasOwnProperty("display")?y.display:null,f.style.display=o0("display",y)}}else if(u.tag===6)u.stateNode.nodeValue=l?"":u.memoizedProps;else if((u.tag!==23&&u.tag!==24||u.memoizedState===null||u===s)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===s)break;for(;u.sibling===null;){if(u.return===null||u.return===s)return;u=u.return}u.sibling.return=u.return,u=u.sibling}}function cb(s,l){if(xo&&typeof xo.onCommitFiberUnmount=="function")try{xo.onCommitFiberUnmount(Wd,l)}catch{}switch(l.tag){case 0:case 11:case 14:case 15:case 22:if(s=l.updateQueue,s!==null&&(s=s.lastEffect,s!==null)){var u=s=s.next;do{var f=u,y=f.destroy;if(f=f.tag,y!==void 0)if((f&4)!==0)$b(l,u);else{f=l;try{y()}catch(v){Qn(f,v)}}u=u.next}while(u!==s)}break;case 1:if(ab(l),s=l.stateNode,typeof s.componentWillUnmount=="function")try{s.props=l.memoizedProps,s.state=l.memoizedState,s.componentWillUnmount()}catch(v){Qn(l,v)}break;case 5:ab(l);break;case 4:pb(s,l)}}function ub(s){s.alternate=null,s.child=null,s.dependencies=null,s.firstEffect=null,s.lastEffect=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.return=null,s.updateQueue=null}function db(s){return s.tag===5||s.tag===3||s.tag===4}function mb(s){e:{for(var l=s.return;l!==null;){if(db(l))break e;l=l.return}throw Error(o(160))}var u=l;switch(l=u.stateNode,u.tag){case 5:var f=!1;break;case 3:l=l.containerInfo,f=!0;break;case 4:l=l.containerInfo,f=!0;break;default:throw Error(o(161))}u.flags&16&&(di(l,""),u.flags&=-17);e:t:for(u=s;;){for(;u.sibling===null;){if(u.return===null||db(u.return)){u=null;break e}u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.flags&2||u.child===null||u.tag===4)continue t;u.child.return=u,u=u.child}if(!(u.flags&2)){u=u.stateNode;break e}}f?$m(s,u,l):xm(s,u,l)}function $m(s,l,u){var f=s.tag,y=f===5||f===6;if(y)s=y?s.stateNode:s.stateNode.instance,l?u.nodeType===8?u.parentNode.insertBefore(s,l):u.insertBefore(s,l):(u.nodeType===8?(l=u.parentNode,l.insertBefore(s,u)):(l=u,l.appendChild(s)),u=u._reactRootContainer,u!=null||l.onclick!==null||(l.onclick=nl));else if(f!==4&&(s=s.child,s!==null))for($m(s,l,u),s=s.sibling;s!==null;)$m(s,l,u),s=s.sibling}function xm(s,l,u){var f=s.tag,y=f===5||f===6;if(y)s=y?s.stateNode:s.stateNode.instance,l?u.insertBefore(s,l):u.appendChild(s);else if(f!==4&&(s=s.child,s!==null))for(xm(s,l,u),s=s.sibling;s!==null;)xm(s,l,u),s=s.sibling}function pb(s,l){for(var u=l,f=!1,y,v;;){if(!f){f=u.return;e:for(;;){if(f===null)throw Error(o(160));switch(y=f.stateNode,f.tag){case 5:v=!1;break e;case 3:y=y.containerInfo,v=!0;break e;case 4:y=y.containerInfo,v=!0;break e}f=f.return}f=!0}if(u.tag===5||u.tag===6){e:for(var x=s,C=u,D=C;;)if(cb(x,D),D.child!==null&&D.tag!==4)D.child.return=D,D=D.child;else{if(D===C)break e;for(;D.sibling===null;){if(D.return===null||D.return===C)break e;D=D.return}D.sibling.return=D.return,D=D.sibling}v?(x=y,C=u.stateNode,x.nodeType===8?x.parentNode.removeChild(C):x.removeChild(C)):y.removeChild(u.stateNode)}else if(u.tag===4){if(u.child!==null){y=u.stateNode.containerInfo,v=!0,u.child.return=u,u=u.child;continue}}else if(cb(s,u),u.child!==null){u.child.return=u,u=u.child;continue}if(u===l)break;for(;u.sibling===null;){if(u.return===null||u.return===l)return;u=u.return,u.tag===4&&(f=!1)}u.sibling.return=u.return,u=u.sibling}}function Sm(s,l){switch(l.tag){case 0:case 11:case 14:case 15:case 22:var u=l.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var f=u=u.next;do(f.tag&3)===3&&(s=f.destroy,f.destroy=void 0,s!==void 0&&s()),f=f.next;while(f!==u)}return;case 1:return;case 5:if(u=l.stateNode,u!=null){f=l.memoizedProps;var y=s!==null?s.memoizedProps:f;s=l.type;var v=l.updateQueue;if(l.updateQueue=null,v!==null){for(u[rl]=f,s==="input"&&f.type==="radio"&&f.name!=null&&Gy(u,f),dd(s,y),l=dd(s,f),y=0;y<v.length;y+=2){var x=v[y],C=v[y+1];x==="style"?r0(u,C):x==="dangerouslySetInnerHTML"?n0(u,C):x==="children"?di(u,C):j(u,x,C,l)}switch(s){case"input":rd(u,f);break;case"textarea":Zy(u,f);break;case"select":s=u._wrapperState.wasMultiple,u._wrapperState.wasMultiple=!!f.multiple,v=f.value,v!=null?Go(u,!!f.multiple,v,!1):s!==!!f.multiple&&(f.defaultValue!=null?Go(u,!!f.multiple,f.defaultValue,!0):Go(u,!!f.multiple,f.multiple?[]:"",!1))}}}return;case 6:if(l.stateNode===null)throw Error(o(162));l.stateNode.nodeValue=l.memoizedProps;return;case 3:u=l.stateNode,u.hydrate&&(u.hydrate=!1,v0(u.containerInfo));return;case 12:return;case 13:l.memoizedState!==null&&(Rm=rt(),lb(l.child,!0)),fb(l);return;case 19:fb(l);return;case 17:return;case 23:case 24:lb(l,l.memoizedState!==null);return}throw Error(o(163))}function fb(s){var l=s.updateQueue;if(l!==null){s.updateQueue=null;var u=s.stateNode;u===null&&(u=s.stateNode=new JA),l.forEach(function(f){var y=iO.bind(null,s,f);u.has(f)||(u.add(f),f.then(y,y))})}}function qA(s,l){return s!==null&&(s=s.memoizedState,s===null||s.dehydrated!==null)?(l=l.memoizedState,l!==null&&l.dehydrated===null):!1}var GA=Math.ceil,El=Y.ReactCurrentDispatcher,Cm=Y.ReactCurrentOwner,ue=0,ut=null,Ve=null,st=0,Do=0,Em=_n(0),Xe=0,Nl=null,gr=0,Yi=0,yr=0,Nm=0,Dm=null,Rm=0,Am=1/0;function kr(){Am=rt()+500}var Z=null,Dl=!1,Om=null,Zt=null,Kn=!1,Ji=null,Ki=90,Tm=[],Pm=[],gn=null,Wi=0,Mm=null,Rl=-1,yn=0,Al=0,qi=null,Ol=!1;function St(){return(ue&48)!==0?rt():Rl!==-1?Rl:Rl=rt()}function Wn(s){if(s=s.mode,(s&2)===0)return 1;if((s&4)===0)return dr()===99?1:2;if(yn===0&&(yn=gr),IA.transition!==0){Al!==0&&(Al=Dm!==null?Dm.pendingLanes:0),s=yn;var l=4186112&~Al;return l&=-l,l===0&&(s=4186112&~s,l=s&-s,l===0&&(l=8192)),l}return s=dr(),(ue&4)!==0&&s===98?s=Ka(12,yn):(s=zR(s),s=Ka(s,yn)),s}function qn(s,l,u){if(50<Wi)throw Wi=0,Mm=null,Error(o(185));if(s=Tl(s,l),s===null)return null;Wa(s,l,u),s===ut&&(yr|=l,Xe===4&&br(s,st));var f=dr();l===1?(ue&8)!==0&&(ue&48)===0?Lm(s):(jt(s,u),ue===0&&(kr(),qt())):((ue&4)===0||f!==98&&f!==99||(gn===null?gn=new Set([s]):gn.add(s)),jt(s,u)),Dm=s}function Tl(s,l){s.lanes|=l;var u=s.alternate;for(u!==null&&(u.lanes|=l),u=s,s=s.return;s!==null;)s.childLanes|=l,u=s.alternate,u!==null&&(u.childLanes|=l),u=s,s=s.return;return u.tag===3?u.stateNode:null}function jt(s,l){for(var u=s.callbackNode,f=s.suspendedLanes,y=s.pingedLanes,v=s.expirationTimes,x=s.pendingLanes;0<x;){var C=31-Bn(x),D=1<<C,M=v[C];if(M===-1){if((D&f)===0||(D&y)!==0){M=l,er(D);var G=Te;v[C]=10<=G?M+250:6<=G?M+5e3:-1}}else M<=l&&(s.expiredLanes|=D);x&=~D}if(f=wi(s,s===ut?st:0),l=Te,f===0)u!==null&&(u!==Xd&&Gd(u),s.callbackNode=null,s.callbackPriority=0);else{if(u!==null){if(s.callbackPriority===l)return;u!==Xd&&Gd(u)}l===15?(u=Lm.bind(null,s),pn===null?(pn=[u],cl=qd(ll,bk)):pn.push(u),u=Xd):l===14?u=Ti(99,Lm.bind(null,s)):(u=FR(l),u=Ti(u,hb.bind(null,s))),s.callbackPriority=l,s.callbackNode=u}}function hb(s){if(Rl=-1,Al=yn=0,(ue&48)!==0)throw Error(o(327));var l=s.callbackNode;if(Gn()&&s.callbackNode!==l)return null;var u=wi(s,s===ut?st:0);if(u===0)return null;var f=u,y=ue;ue|=16;var v=bb();(ut!==s||st!==f)&&(kr(),vr(s,f));do try{ZA();break}catch(C){kb(s,C)}while(!0);if(em(),El.current=v,ue=y,Ve!==null?f=0:(ut=null,st=0,f=Xe),(gr&yr)!==0)vr(s,0);else if(f!==0){if(f===2&&(ue|=64,s.hydrate&&(s.hydrate=!1,Yd(s.containerInfo)),u=N0(s),u!==0&&(f=Gi(s,u))),f===1)throw l=Nl,vr(s,0),br(s,u),jt(s,rt()),l;switch(s.finishedWork=s.current.alternate,s.finishedLanes=u,f){case 0:case 1:throw Error(o(345));case 2:Ro(s);break;case 3:if(br(s,u),(u&62914560)===u&&(f=Rm+500-rt(),10<f)){if(wi(s,0)!==0)break;if(y=s.suspendedLanes,(y&u)!==u){St(),s.pingedLanes|=s.suspendedLanes&y;break}s.timeoutHandle=ik(Ro.bind(null,s),f);break}Ro(s);break;case 4:if(br(s,u),(u&4186112)===u)break;for(f=s.eventTimes,y=-1;0<u;){var x=31-Bn(u);v=1<<x,x=f[x],x>y&&(y=x),u&=~v}if(u=y,u=rt()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*GA(u/1960))-u,10<u){s.timeoutHandle=ik(Ro.bind(null,s),u);break}Ro(s);break;case 5:Ro(s);break;default:throw Error(o(329))}}return jt(s,rt()),s.callbackNode===l?hb.bind(null,s):null}function br(s,l){for(l&=~Nm,l&=~yr,s.suspendedLanes|=l,s.pingedLanes&=~l,s=s.expirationTimes;0<l;){var u=31-Bn(l),f=1<<u;s[u]=-1,l&=~f}}function Lm(s){if((ue&48)!==0)throw Error(o(327));if(Gn(),s===ut&&(s.expiredLanes&st)!==0){var l=st,u=Gi(s,l);(gr&yr)!==0&&(l=wi(s,l),u=Gi(s,l))}else l=wi(s,0),u=Gi(s,l);if(s.tag!==0&&u===2&&(ue|=64,s.hydrate&&(s.hydrate=!1,Yd(s.containerInfo)),l=N0(s),l!==0&&(u=Gi(s,l))),u===1)throw u=Nl,vr(s,0),br(s,l),jt(s,rt()),u;return s.finishedWork=s.current.alternate,s.finishedLanes=l,Ro(s),jt(s,rt()),null}function QA(){if(gn!==null){var s=gn;gn=null,s.forEach(function(l){l.expiredLanes|=24&l.pendingLanes,jt(l,rt())})}qt()}function gb(s,l){var u=ue;ue|=1;try{return s(l)}finally{ue=u,ue===0&&(kr(),qt())}}function yb(s,l){var u=ue;ue&=-2,ue|=8;try{return s(l)}finally{ue=u,ue===0&&(kr(),qt())}}function Pl(s,l){Be(Em,Do),Do|=l,gr|=l}function jm(){Do=Em.current,Le(Em)}function vr(s,l){s.finishedWork=null,s.finishedLanes=0;var u=s.timeoutHandle;if(u!==-1&&(s.timeoutHandle=-1,OA(u)),Ve!==null)for(u=Ve.return;u!==null;){var f=u;switch(f.tag){case 1:f=f.type.childContextTypes,f!=null&&sl();break;case 3:fr(),Le(ft),Le(ot),lm();break;case 5:im(f);break;case 4:fr();break;case 13:Le(ze);break;case 19:Le(ze);break;case 10:tm(f);break;case 23:case 24:jm()}u=u.return}ut=s,Ve=Xn(s.current,null),st=Do=gr=l,Xe=0,Nl=null,Nm=yr=Yi=0}function kb(s,l){do{var u=Ve;try{if(em(),Bi.current=Sl,vl){for(var f=Fe.memoizedState;f!==null;){var y=f.queue;y!==null&&(y.pending=null),f=f.next}vl=!1}if(zi=0,Qe=it=Fe=null,Fi=!1,Cm.current=null,u===null||u.return===null){Xe=1,Nl=l,Ve=null;break}e:{var v=s,x=u.return,C=u,D=l;if(l=st,C.flags|=2048,C.firstEffect=C.lastEffect=null,D!==null&&typeof D=="object"&&typeof D.then=="function"){var M=D;if((C.mode&2)===0){var G=C.alternate;G?(C.updateQueue=G.updateQueue,C.memoizedState=G.memoizedState,C.lanes=G.lanes):(C.updateQueue=null,C.memoizedState=null)}var fe=(ze.current&1)!==0,H=x;do{var ne;if(ne=H.tag===13){var de=H.memoizedState;if(de!==null)ne=de.dehydrated!==null;else{var ce=H.memoizedProps;ne=ce.fallback===void 0?!1:ce.unstable_avoidThisFallback!==!0?!0:!fe}}if(ne){var O=H.updateQueue;if(O===null){var R=new Set;R.add(M),H.updateQueue=R}else O.add(M);if((H.mode&2)===0){if(H.flags|=64,C.flags|=16384,C.flags&=-2981,C.tag===1)if(C.alternate===null)C.tag=17;else{var A=Vn(-1,1);A.tag=2,Yn(C,A)}C.lanes|=1;break e}D=void 0,C=l;var B=v.pingCache;if(B===null?(B=v.pingCache=new YA,D=new Set,B.set(M,D)):(D=B.get(M),D===void 0&&(D=new Set,B.set(M,D))),!D.has(C)){D.add(C);var F=rO.bind(null,v,M,C);M.then(F,F)}H.flags|=4096,H.lanes=l;break e}H=H.return}while(H!==null);D=Error((qo(C.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
97
|
-
|
|
98
|
-
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}Xe!==5&&(Xe=2),D=vm(D,C),H=x;do{switch(H.tag){case 3:v=D,H.flags|=4096,l&=-l,H.lanes|=l;var he=ib(H,v,l);$k(H,he);break e;case 1:v=D;var ee=H.type,ge=H.stateNode;if((H.flags&64)===0&&(typeof ee.getDerivedStateFromError=="function"||ge!==null&&typeof ge.componentDidCatch=="function"&&(Zt===null||!Zt.has(ge)))){H.flags|=4096,l&=-l,H.lanes|=l;var Se=sb(H,v,l);$k(H,Se);break e}}H=H.return}while(H!==null)}wb(u)}catch(ke){l=ke,Ve===u&&u!==null&&(Ve=u=u.return);continue}break}while(!0)}function bb(){var s=El.current;return El.current=Sl,s===null?Sl:s}function Gi(s,l){var u=ue;ue|=16;var f=bb();ut===s&&st===l||vr(s,l);do try{XA();break}catch(y){kb(s,y)}while(!0);if(em(),ue=u,El.current=f,Ve!==null)throw Error(o(261));return ut=null,st=0,Xe}function XA(){for(;Ve!==null;)vb(Ve)}function ZA(){for(;Ve!==null&&!MA();)vb(Ve)}function vb(s){var l=Sb(s.alternate,s,Do);s.memoizedProps=s.pendingProps,l===null?wb(s):Ve=l,Cm.current=null}function wb(s){var l=s;do{var u=l.alternate;if(s=l.return,(l.flags&2048)===0){if(u=HA(u,l,Do),u!==null){Ve=u;return}if(u=l,u.tag!==24&&u.tag!==23||u.memoizedState===null||(Do&1073741824)!==0||(u.mode&4)===0){for(var f=0,y=u.child;y!==null;)f|=y.lanes|y.childLanes,y=y.sibling;u.childLanes=f}s!==null&&(s.flags&2048)===0&&(s.firstEffect===null&&(s.firstEffect=l.firstEffect),l.lastEffect!==null&&(s.lastEffect!==null&&(s.lastEffect.nextEffect=l.firstEffect),s.lastEffect=l.lastEffect),1<l.flags&&(s.lastEffect!==null?s.lastEffect.nextEffect=l:s.firstEffect=l,s.lastEffect=l))}else{if(u=VA(l),u!==null){u.flags&=2047,Ve=u;return}s!==null&&(s.firstEffect=s.lastEffect=null,s.flags|=2048)}if(l=l.sibling,l!==null){Ve=l;return}Ve=l=s}while(l!==null);Xe===0&&(Xe=5)}function Ro(s){var l=dr();return So(99,eO.bind(null,s,l)),null}function eO(s,l){do Gn();while(Ji!==null);if((ue&48)!==0)throw Error(o(327));var u=s.finishedWork;if(u===null)return null;if(s.finishedWork=null,s.finishedLanes=0,u===s.current)throw Error(o(177));s.callbackNode=null;var f=u.lanes|u.childLanes,y=f,v=s.pendingLanes&~y;s.pendingLanes=y,s.suspendedLanes=0,s.pingedLanes=0,s.expiredLanes&=y,s.mutableReadLanes&=y,s.entangledLanes&=y,y=s.entanglements;for(var x=s.eventTimes,C=s.expirationTimes;0<v;){var D=31-Bn(v),M=1<<D;y[D]=0,x[D]=-1,C[D]=-1,v&=~M}if(gn!==null&&(f&24)===0&&gn.has(s)&&gn.delete(s),s===ut&&(Ve=ut=null,st=0),1<u.flags?u.lastEffect!==null?(u.lastEffect.nextEffect=u,f=u.firstEffect):f=u:f=u.firstEffect,f!==null){if(y=ue,ue|=32,Cm.current=null,Ud=qa,x=K0(),Bd(x)){if("selectionStart"in x)C={start:x.selectionStart,end:x.selectionEnd};else e:if(C=(C=x.ownerDocument)&&C.defaultView||window,(M=C.getSelection&&C.getSelection())&&M.rangeCount!==0){C=M.anchorNode,v=M.anchorOffset,D=M.focusNode,M=M.focusOffset;try{C.nodeType,D.nodeType}catch{C=null;break e}var G=0,fe=-1,H=-1,ne=0,de=0,ce=x,O=null;t:for(;;){for(var R;ce!==C||v!==0&&ce.nodeType!==3||(fe=G+v),ce!==D||M!==0&&ce.nodeType!==3||(H=G+M),ce.nodeType===3&&(G+=ce.nodeValue.length),(R=ce.firstChild)!==null;)O=ce,ce=R;for(;;){if(ce===x)break t;if(O===C&&++ne===v&&(fe=G),O===D&&++de===M&&(H=G),(R=ce.nextSibling)!==null)break;ce=O,O=ce.parentNode}ce=R}C=fe===-1||H===-1?null:{start:fe,end:H}}else C=null;C=C||{start:0,end:0}}else C=null;Hd={focusedElem:x,selectionRange:C},qa=!1,qi=null,Ol=!1,Z=f;do try{tO()}catch(ke){if(Z===null)throw Error(o(330));Qn(Z,ke),Z=Z.nextEffect}while(Z!==null);qi=null,Z=f;do try{for(x=s;Z!==null;){var A=Z.flags;if(A&16&&di(Z.stateNode,""),A&128){var B=Z.alternate;if(B!==null){var F=B.ref;F!==null&&(typeof F=="function"?F(null):F.current=null)}}switch(A&1038){case 2:mb(Z),Z.flags&=-3;break;case 6:mb(Z),Z.flags&=-3,Sm(Z.alternate,Z);break;case 1024:Z.flags&=-1025;break;case 1028:Z.flags&=-1025,Sm(Z.alternate,Z);break;case 4:Sm(Z.alternate,Z);break;case 8:C=Z,pb(x,C);var he=C.alternate;ub(C),he!==null&&ub(he)}Z=Z.nextEffect}}catch(ke){if(Z===null)throw Error(o(330));Qn(Z,ke),Z=Z.nextEffect}while(Z!==null);if(F=Hd,B=K0(),A=F.focusedElem,x=F.selectionRange,B!==A&&A&&A.ownerDocument&&J0(A.ownerDocument.documentElement,A)){for(x!==null&&Bd(A)&&(B=x.start,F=x.end,F===void 0&&(F=B),"selectionStart"in A?(A.selectionStart=B,A.selectionEnd=Math.min(F,A.value.length)):(F=(B=A.ownerDocument||document)&&B.defaultView||window,F.getSelection&&(F=F.getSelection(),C=A.textContent.length,he=Math.min(x.start,C),x=x.end===void 0?he:Math.min(x.end,C),!F.extend&&he>x&&(C=x,x=he,he=C),C=Y0(A,he),v=Y0(A,x),C&&v&&(F.rangeCount!==1||F.anchorNode!==C.node||F.anchorOffset!==C.offset||F.focusNode!==v.node||F.focusOffset!==v.offset)&&(B=B.createRange(),B.setStart(C.node,C.offset),F.removeAllRanges(),he>x?(F.addRange(B),F.extend(v.node,v.offset)):(B.setEnd(v.node,v.offset),F.addRange(B)))))),B=[],F=A;F=F.parentNode;)F.nodeType===1&&B.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<B.length;A++)F=B[A],F.element.scrollLeft=F.left,F.element.scrollTop=F.top}qa=!!Ud,Hd=Ud=null,s.current=u,Z=f;do try{for(A=s;Z!==null;){var ee=Z.flags;if(ee&36&&WA(A,Z.alternate,Z),ee&128){B=void 0;var ge=Z.ref;if(ge!==null){var Se=Z.stateNode;Z.tag,B=Se,typeof ge=="function"?ge(B):ge.current=B}}Z=Z.nextEffect}}catch(ke){if(Z===null)throw Error(o(330));Qn(Z,ke),Z=Z.nextEffect}while(Z!==null);Z=null,jA(),ue=y}else s.current=u;if(Kn)Kn=!1,Ji=s,Ki=l;else for(Z=f;Z!==null;)l=Z.nextEffect,Z.nextEffect=null,Z.flags&8&&(ee=Z,ee.sibling=null,ee.stateNode=null),Z=l;if(f=s.pendingLanes,f===0&&(Zt=null),f===1?s===Mm?Wi++:(Wi=0,Mm=s):Wi=0,u=u.stateNode,xo&&typeof xo.onCommitFiberRoot=="function")try{xo.onCommitFiberRoot(Wd,u,void 0,(u.current.flags&64)===64)}catch{}if(jt(s,rt()),Dl)throw Dl=!1,s=Om,Om=null,s;return(ue&8)!==0||qt(),null}function tO(){for(;Z!==null;){var s=Z.alternate;Ol||qi===null||((Z.flags&8)!==0?p0(Z,qi)&&(Ol=!0):Z.tag===13&&qA(s,Z)&&p0(Z,qi)&&(Ol=!0));var l=Z.flags;(l&256)!==0&&KA(s,Z),(l&512)===0||Kn||(Kn=!0,Ti(97,function(){return Gn(),null})),Z=Z.nextEffect}}function Gn(){if(Ki!==90){var s=97<Ki?97:Ki;return Ki=90,So(s,oO)}return!1}function nO(s,l){Tm.push(l,s),Kn||(Kn=!0,Ti(97,function(){return Gn(),null}))}function $b(s,l){Pm.push(l,s),Kn||(Kn=!0,Ti(97,function(){return Gn(),null}))}function oO(){if(Ji===null)return!1;var s=Ji;if(Ji=null,(ue&48)!==0)throw Error(o(331));var l=ue;ue|=32;var u=Pm;Pm=[];for(var f=0;f<u.length;f+=2){var y=u[f],v=u[f+1],x=y.destroy;if(y.destroy=void 0,typeof x=="function")try{x()}catch(D){if(v===null)throw Error(o(330));Qn(v,D)}}for(u=Tm,Tm=[],f=0;f<u.length;f+=2){y=u[f],v=u[f+1];try{var C=y.create;y.destroy=C()}catch(D){if(v===null)throw Error(o(330));Qn(v,D)}}for(C=s.current.firstEffect;C!==null;)s=C.nextEffect,C.nextEffect=null,C.flags&8&&(C.sibling=null,C.stateNode=null),C=s;return ue=l,qt(),!0}function xb(s,l,u){l=vm(u,l),l=ib(s,l,1),Yn(s,l),l=St(),s=Tl(s,1),s!==null&&(Wa(s,1,l),jt(s,l))}function Qn(s,l){if(s.tag===3)xb(s,s,l);else for(var u=s.return;u!==null;){if(u.tag===3){xb(u,s,l);break}else if(u.tag===1){var f=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Zt===null||!Zt.has(f))){s=vm(l,s);var y=sb(u,s,1);if(Yn(u,y),y=St(),u=Tl(u,1),u!==null)Wa(u,1,y),jt(u,y);else if(typeof f.componentDidCatch=="function"&&(Zt===null||!Zt.has(f)))try{f.componentDidCatch(l,s)}catch{}break}}u=u.return}}function rO(s,l,u){var f=s.pingCache;f!==null&&f.delete(l),l=St(),s.pingedLanes|=s.suspendedLanes&u,ut===s&&(st&u)===u&&(Xe===4||Xe===3&&(st&62914560)===st&&500>rt()-Rm?vr(s,0):Nm|=u),jt(s,l)}function iO(s,l){var u=s.stateNode;u!==null&&u.delete(l),l=0,l===0&&(l=s.mode,(l&2)===0?l=1:(l&4)===0?l=dr()===99?1:2:(yn===0&&(yn=gr),l=tr(62914560&~yn),l===0&&(l=4194304))),u=St(),s=Tl(s,l),s!==null&&(Wa(s,l,u),jt(s,u))}var Sb;Sb=function(s,l,u){var f=l.lanes;if(s!==null)if(s.memoizedProps!==l.pendingProps||ft.current)_t=!0;else if((u&f)!==0)_t=(s.flags&16384)!==0;else{switch(_t=!1,l.tag){case 3:qk(l),am();break;case 5:Ak(l);break;case 1:ht(l.type)&&al(l);break;case 4:rm(l,l.stateNode.containerInfo);break;case 10:f=l.memoizedProps.value;var y=l.type._context;Be(ul,y._currentValue),y._currentValue=f;break;case 13:if(l.memoizedState!==null)return(u&l.child.childLanes)!==0?Gk(s,l,u):(Be(ze,ze.current&1),l=hn(s,l,u),l!==null?l.sibling:null);Be(ze,ze.current&1);break;case 19:if(f=(u&l.childLanes)!==0,(s.flags&64)!==0){if(f)return tb(s,l,u);l.flags|=64}if(y=l.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),Be(ze,ze.current),f)break;return null;case 23:case 24:return l.lanes=0,hm(s,l,u)}return hn(s,l,u)}else _t=!1;switch(l.lanes=0,l.tag){case 2:if(f=l.type,s!==null&&(s.alternate=null,l.alternate=null,l.flags|=2),s=l.pendingProps,y=ur(l,ot.current),pr(l,u),y=um(null,l,f,s,y,u),l.flags|=1,typeof y=="object"&&y!==null&&typeof y.render=="function"&&y.$$typeof===void 0){if(l.tag=1,l.memoizedState=null,l.updateQueue=null,ht(f)){var v=!0;al(l)}else v=!1;l.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,nm(l);var x=f.getDerivedStateFromProps;typeof x=="function"&&pl(l,f,x,s),y.updater=fl,l.stateNode=y,y._reactInternals=l,om(l,f,s,u),l=ym(null,l,f,!0,v,u)}else l.tag=0,yt(null,l,y,u),l=l.child;return l;case 16:y=l.elementType;e:{switch(s!==null&&(s.alternate=null,l.alternate=null,l.flags|=2),s=l.pendingProps,v=y._init,y=v(y._payload),l.type=y,v=l.tag=aO(y),s=Ft(y,s),v){case 0:l=gm(null,l,y,s,u);break e;case 1:l=Wk(null,l,y,s,u);break e;case 11:l=Vk(null,l,y,s,u);break e;case 14:l=Yk(null,l,y,Ft(y.type,s),f,u);break e}throw Error(o(306,y,""))}return l;case 0:return f=l.type,y=l.pendingProps,y=l.elementType===f?y:Ft(f,y),gm(s,l,f,y,u);case 1:return f=l.type,y=l.pendingProps,y=l.elementType===f?y:Ft(f,y),Wk(s,l,f,y,u);case 3:if(qk(l),f=l.updateQueue,s===null||f===null)throw Error(o(282));if(f=l.pendingProps,y=l.memoizedState,y=y!==null?y.element:null,wk(s,l),Pi(l,f,null,u),f=l.memoizedState.element,f===y)am(),l=hn(s,l,u);else{if(y=l.stateNode,(v=y.hydrate)&&(Jn=sr(l.stateNode.containerInfo.firstChild),fn=l,v=Qt=!0),v){if(s=y.mutableSourceEagerHydrationData,s!=null)for(y=0;y<s.length;y+=2)v=s[y],v._workInProgressVersionPrimary=s[y+1],hr.push(v);for(u=Rk(l,null,f,u),l.child=u;u;)u.flags=u.flags&-3|1024,u=u.sibling}else yt(s,l,f,u),am();l=l.child}return l;case 5:return Ak(l),s===null&&sm(l),f=l.type,y=l.pendingProps,v=s!==null?s.memoizedProps:null,x=y.children,Vd(f,y)?x=null:v!==null&&Vd(f,v)&&(l.flags|=16),Kk(s,l),yt(s,l,x,u),l.child;case 6:return s===null&&sm(l),null;case 13:return Gk(s,l,u);case 4:return rm(l,l.stateNode.containerInfo),f=l.pendingProps,s===null?l.child=yl(l,null,f,u):yt(s,l,f,u),l.child;case 11:return f=l.type,y=l.pendingProps,y=l.elementType===f?y:Ft(f,y),Vk(s,l,f,y,u);case 7:return yt(s,l,l.pendingProps,u),l.child;case 8:return yt(s,l,l.pendingProps.children,u),l.child;case 12:return yt(s,l,l.pendingProps.children,u),l.child;case 10:e:{f=l.type._context,y=l.pendingProps,x=l.memoizedProps,v=y.value;var C=l.type._context;if(Be(ul,C._currentValue),C._currentValue=v,x!==null)if(C=x.value,v=Pt(C,v)?0:(typeof f._calculateChangedBits=="function"?f._calculateChangedBits(C,v):1073741823)|0,v===0){if(x.children===y.children&&!ft.current){l=hn(s,l,u);break e}}else for(C=l.child,C!==null&&(C.return=l);C!==null;){var D=C.dependencies;if(D!==null){x=C.child;for(var M=D.firstContext;M!==null;){if(M.context===f&&(M.observedBits&v)!==0){C.tag===1&&(M=Vn(-1,u&-u),M.tag=2,Yn(C,M)),C.lanes|=u,M=C.alternate,M!==null&&(M.lanes|=u),vk(C.return,u),D.lanes|=u;break}M=M.next}}else x=C.tag===10&&C.type===l.type?null:C.child;if(x!==null)x.return=C;else for(x=C;x!==null;){if(x===l){x=null;break}if(C=x.sibling,C!==null){C.return=x.return,x=C;break}x=x.return}C=x}yt(s,l,y.children,u),l=l.child}return l;case 9:return y=l.type,v=l.pendingProps,f=v.children,pr(l,u),y=Mt(y,v.unstable_observedBits),f=f(y),l.flags|=1,yt(s,l,f,u),l.child;case 14:return y=l.type,v=Ft(y,l.pendingProps),v=Ft(y.type,v),Yk(s,l,y,v,f,u);case 15:return Jk(s,l,l.type,l.pendingProps,f,u);case 17:return f=l.type,y=l.pendingProps,y=l.elementType===f?y:Ft(f,y),s!==null&&(s.alternate=null,l.alternate=null,l.flags|=2),l.tag=1,ht(f)?(s=!0,al(l)):s=!1,pr(l,u),Ek(l,f,y),om(l,f,y,u),ym(null,l,f,!0,s,u);case 19:return tb(s,l,u);case 23:return hm(s,l,u);case 24:return hm(s,l,u)}throw Error(o(156,l.tag))};function sO(s,l,u,f){this.tag=s,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function It(s,l,u,f){return new sO(s,l,u,f)}function Im(s){return s=s.prototype,!(!s||!s.isReactComponent)}function aO(s){if(typeof s=="function")return Im(s)?1:0;if(s!=null){if(s=s.$$typeof,s===$e)return 11;if(s===Ae)return 14}return 2}function Xn(s,l){var u=s.alternate;return u===null?(u=It(s.tag,l,s.key,s.mode),u.elementType=s.elementType,u.type=s.type,u.stateNode=s.stateNode,u.alternate=s,s.alternate=u):(u.pendingProps=l,u.type=s.type,u.flags=0,u.nextEffect=null,u.firstEffect=null,u.lastEffect=null),u.childLanes=s.childLanes,u.lanes=s.lanes,u.child=s.child,u.memoizedProps=s.memoizedProps,u.memoizedState=s.memoizedState,u.updateQueue=s.updateQueue,l=s.dependencies,u.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},u.sibling=s.sibling,u.index=s.index,u.ref=s.ref,u}function Ml(s,l,u,f,y,v){var x=2;if(f=s,typeof s=="function")Im(s)&&(x=1);else if(typeof s=="string")x=5;else e:switch(s){case K:return wr(u.children,y,v,l);case ve:x=8,y|=16;break;case X:x=8,y|=1;break;case ie:return s=It(12,u,l,y|8),s.elementType=ie,s.type=ie,s.lanes=v,s;case Re:return s=It(13,u,l,y),s.type=Re,s.elementType=Re,s.lanes=v,s;case xe:return s=It(19,u,l,y),s.elementType=xe,s.lanes=v,s;case z:return Bm(u,y,v,l);case q:return s=It(24,u,l,y),s.elementType=q,s.lanes=v,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case Ne:x=10;break e;case ye:x=9;break e;case $e:x=11;break e;case Ae:x=14;break e;case T:x=16,f=null;break e;case _:x=22;break e}throw Error(o(130,s==null?s:typeof s,""))}return l=It(x,u,l,y),l.elementType=s,l.type=f,l.lanes=v,l}function wr(s,l,u,f){return s=It(7,s,f,l),s.lanes=u,s}function Bm(s,l,u,f){return s=It(23,s,f,l),s.elementType=z,s.lanes=u,s}function zm(s,l,u){return s=It(6,s,null,l),s.lanes=u,s}function Fm(s,l,u){return l=It(4,s.children!==null?s.children:[],s.key,l),l.lanes=u,l.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},l}function lO(s,l,u){this.tag=l,this.containerInfo=s,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=u,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ed(0),this.expirationTimes=Ed(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ed(0),this.mutableSourceEagerHydrationData=null}function cO(s,l,u){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:I,key:f==null?null:""+f,children:s,containerInfo:l,implementation:u}}function Ll(s,l,u,f){var y=l.current,v=St(),x=Wn(y);e:if(u){u=u._reactInternals;t:{if(vo(u)!==u||u.tag!==1)throw Error(o(170));var C=u;do{switch(C.tag){case 3:C=C.stateNode.context;break t;case 1:if(ht(C.type)){C=C.stateNode.__reactInternalMemoizedMergedChildContext;break t}}C=C.return}while(C!==null);throw Error(o(171))}if(u.tag===1){var D=u.type;if(ht(D)){u=uk(u,D,C);break e}}u=C}else u=Un;return l.context===null?l.context=u:l.pendingContext=u,l=Vn(v,x),l.payload={element:s},f=f===void 0?null:f,f!==null&&(l.callback=f),Yn(y,l),qn(y,x,v),x}function _m(s){return s=s.current,s.child?(s.child.tag===5,s.child.stateNode):null}function Cb(s,l){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var u=s.retryLane;s.retryLane=u!==0&&u<l?u:l}}function Um(s,l){Cb(s,l),(s=s.alternate)&&Cb(s,l)}function uO(){return null}function Hm(s,l,u){var f=u!=null&&u.hydrationOptions!=null&&u.hydrationOptions.mutableSources||null;if(u=new lO(s,l,u!=null&&u.hydrate===!0),l=It(3,null,null,l===2?7:l===1?3:0),u.current=l,l.stateNode=u,nm(l),s[ar]=u.current,Z0(s.nodeType===8?s.parentNode:s),f)for(s=0;s<f.length;s++){l=f[s];var y=l._getVersion;y=y(l._source),u.mutableSourceEagerHydrationData==null?u.mutableSourceEagerHydrationData=[l,y]:u.mutableSourceEagerHydrationData.push(l,y)}this._internalRoot=u}Hm.prototype.render=function(s){Ll(s,this._internalRoot,null,null)},Hm.prototype.unmount=function(){var s=this._internalRoot,l=s.containerInfo;Ll(null,s,null,function(){l[ar]=null})};function Qi(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11&&(s.nodeType!==8||s.nodeValue!==" react-mount-point-unstable "))}function dO(s,l){if(l||(l=s?s.nodeType===9?s.documentElement:s.firstChild:null,l=!(!l||l.nodeType!==1||!l.hasAttribute("data-reactroot"))),!l)for(var u;u=s.lastChild;)s.removeChild(u);return new Hm(s,0,l?{hydrate:!0}:void 0)}function jl(s,l,u,f,y){var v=u._reactRootContainer;if(v){var x=v._internalRoot;if(typeof y=="function"){var C=y;y=function(){var M=_m(x);C.call(M)}}Ll(l,x,s,y)}else{if(v=u._reactRootContainer=dO(u,f),x=v._internalRoot,typeof y=="function"){var D=y;y=function(){var M=_m(x);D.call(M)}}yb(function(){Ll(l,x,s,y)})}return _m(x)}f0=function(s){if(s.tag===13){var l=St();qn(s,4,l),Um(s,4)}},vd=function(s){if(s.tag===13){var l=St();qn(s,67108864,l),Um(s,67108864)}},h0=function(s){if(s.tag===13){var l=St(),u=Wn(s);qn(s,u,l),Um(s,u)}},g0=function(s,l){return l()},pd=function(s,l,u){switch(l){case"input":if(rd(s,u),l=u.name,u.type==="radio"&&l!=null){for(u=s;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll("input[name="+JSON.stringify(""+l)+'][type="radio"]'),l=0;l<u.length;l++){var f=u[l];if(f!==s&&f.form===s.form){var y=il(f);if(!y)throw Error(o(90));Wy(f),rd(f,y)}}}break;case"textarea":Zy(s,u);break;case"select":l=u.value,l!=null&&Go(s,!!u.multiple,l,!1)}},fd=gb,l0=function(s,l,u,f,y){var v=ue;ue|=4;try{return So(98,s.bind(null,l,u,f,y))}finally{ue=v,ue===0&&(kr(),qt())}},hd=function(){(ue&49)===0&&(QA(),Gn())},c0=function(s,l){var u=ue;ue|=2;try{return s(l)}finally{ue=u,ue===0&&(kr(),qt())}};function Eb(s,l){var u=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Qi(l))throw Error(o(200));return cO(s,l,null,u)}var mO={Events:[Oi,lr,il,s0,a0,Gn,{current:!1}]},Xi={findFiberByHostInstance:wo,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},pO={bundleType:Xi.bundleType,version:Xi.version,rendererPackageName:Xi.rendererPackageName,rendererConfig:Xi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Y.ReactCurrentDispatcher,findHostInstanceByFiber:function(s){return s=m0(s),s===null?null:s.stateNode},findFiberByHostInstance:Xi.findFiberByHostInstance||uO,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Il=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Il.isDisabled&&Il.supportsFiber)try{Wd=Il.inject(pO),xo=Il}catch{}}return wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mO,wt.createPortal=Eb,wt.findDOMNode=function(s){if(s==null)return null;if(s.nodeType===1)return s;var l=s._reactInternals;if(l===void 0)throw typeof s.render=="function"?Error(o(188)):Error(o(268,Object.keys(s)));return s=m0(l),s=s===null?null:s.stateNode,s},wt.flushSync=function(s,l){var u=ue;if((u&48)!==0)return s(l);ue|=1;try{if(s)return So(99,s.bind(null,l))}finally{ue=u,qt()}},wt.hydrate=function(s,l,u){if(!Qi(l))throw Error(o(200));return jl(null,s,l,!0,u)},wt.render=function(s,l,u){if(!Qi(l))throw Error(o(200));return jl(null,s,l,!1,u)},wt.unmountComponentAtNode=function(s){if(!Qi(s))throw Error(o(40));return s._reactRootContainer?(yb(function(){jl(null,null,s,!1,function(){s._reactRootContainer=null,s[ar]=null})}),!0):!1},wt.unstable_batchedUpdates=gb,wt.unstable_createPortal=function(s,l){return Eb(s,l,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},wt.unstable_renderSubtreeIntoContainer=function(s,l,u,f){if(!Qi(u))throw Error(o(200));if(s==null||s._reactInternals===void 0)throw Error(o(38));return jl(s,l,u,!1,f)},wt.version="17.0.2",wt}var ug;function z1(){if(ug)return Qc.exports;ug=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),Qc.exports=B1(),Qc.exports}var eu=z1();const dg=es(eu);function F1(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var mg={exports:{}},tu={};var pg;function _1(){if(pg)return tu;pg=1;var n=ae;function e(h,g){return h===g&&(h!==0||1/h===1/g)||h!==h&&g!==g}var t=typeof Object.is=="function"?Object.is:e,o=n.useState,r=n.useEffect,i=n.useLayoutEffect,a=n.useDebugValue;function c(h,g){var k=g(),b=o({inst:{value:k,getSnapshot:g}}),$=b[0].inst,S=b[1];return i(function(){$.value=k,$.getSnapshot=g,d($)&&S({inst:$})},[h,k,g]),r(function(){return d($)&&S({inst:$}),h(function(){d($)&&S({inst:$})})},[h]),a(k),k}function d(h){var g=h.getSnapshot;h=h.value;try{var k=g();return!t(h,k)}catch{return!0}}function m(h,g){return g()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:c;return tu.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:p,tu}mg.exports=_1();var nu=mg.exports;const U1=(...n)=>e=>{n.forEach(t=>{typeof t=="function"?t(e):t&&(t.current=e)})},H1=({contentComponent:n})=>{const e=nu.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getServerSnapshot);return ae.createElement(ae.Fragment,null,Object.values(e))};function V1(){const n=new Set;let e={};return{subscribe(t){return n.add(t),()=>{n.delete(t)}},getSnapshot(){return e},getServerSnapshot(){return e},setRenderer(t,o){e={...e,[t]:dg.createPortal(o.reactElement,o.element,t)},n.forEach(r=>r())},removeRenderer(t){const o={...e};delete o[t],e=o,n.forEach(r=>r())}}}class Y1 extends ae.Component{constructor(e){var t;super(e),this.editorContentRef=ae.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!(!((t=e.editor)===null||t===void 0)&&t.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 t=this.editorContentRef.current;t.append(...e.options.element.childNodes),e.setOptions({element:t}),e.contentComponent=V1(),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 t=document.createElement("div");t.append(...e.options.element.childNodes),e.setOptions({element:t})}render(){const{editor:e,innerRef:t,...o}=this.props;return ae.createElement(ae.Fragment,null,ae.createElement("div",{ref:U1(t,this.editorContentRef),...o}),e?.contentComponent&&ae.createElement(H1,{contentComponent:e.contentComponent}))}}const J1=E.forwardRef((n,e)=>{const t=ae.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[n.editor]);return ae.createElement(Y1,{key:t,innerRef:e,...n})}),K1=ae.memo(J1);var W1=function n(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var o,r,i;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(r=o;r--!==0;)if(!n(e[r],t[r]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(r of e.entries())if(!t.has(r[0]))return!1;for(r of e.entries())if(!n(r[1],t.get(r[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(r of e.entries())if(!t.has(r[0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(o=e.length,o!=t.length)return!1;for(r=o;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),o=i.length,o!==Object.keys(t).length)return!1;for(r=o;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;for(r=o;r--!==0;){var a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!n(e[a],t[a]))return!1}return!0}return e!==e&&t!==t},q1=F1(W1),fg={exports:{}},ou={};var hg;function G1(){if(hg)return ou;hg=1;var n=ae,e=nu;function t(m,p){return m===p&&(m!==0||1/m===1/p)||m!==m&&p!==p}var o=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=n.useRef,a=n.useEffect,c=n.useMemo,d=n.useDebugValue;return ou.useSyncExternalStoreWithSelector=function(m,p,h,g,k){var b=i(null);if(b.current===null){var $={hasValue:!1,value:null};b.current=$}else $=b.current;b=c(function(){function N(U){if(!P){if(P=!0,L=U,U=g(U),k!==void 0&&$.hasValue){var I=$.value;if(k(I,U))return j=I}return j=U}if(I=j,o(L,U))return I;var K=g(U);return k!==void 0&&k(I,K)?I:(L=U,j=K)}var P=!1,L,j,Y=h===void 0?null:h;return[function(){return N(p())},Y===null?void 0:function(){return N(Y())}]},[p,h,g,k]);var S=r(m,b[0],b[1]);return a(function(){$.hasValue=!0,$.value=S},[S]),d(S),S},ou}fg.exports=G1();var Q1=fg.exports;const X1=typeof window<"u"?E.useLayoutEffect:E.useEffect;class Z1{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 t=()=>{this.transactionNumber+=1,this.subscribers.forEach(r=>r())},o=this.editor;return o.on("transaction",t),()=>{o.off("transaction",t)}}}}function eS(n){var e;const[t]=E.useState(()=>new Z1(n.editor)),o=Q1.useSyncExternalStoreWithSelector(t.subscribe,t.getSnapshot,t.getServerSnapshot,n.selector,(e=n.equalityFn)!==null&&e!==void 0?e:q1);return X1(()=>t.watch(n.editor),[n.editor,t]),E.useDebugValue(o),o}const tS=!1,ru=typeof window>"u",nS=ru||!!(typeof window<"u"&&window.next);class iu{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(t=>t())}getInitialEditor(){return this.options.current.immediatelyRender===void 0?ru||nS?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){const e={...this.options.current,onBeforeCreate:(...o)=>{var r,i;return(i=(r=this.options.current).onBeforeCreate)===null||i===void 0?void 0:i.call(r,...o)},onBlur:(...o)=>{var r,i;return(i=(r=this.options.current).onBlur)===null||i===void 0?void 0:i.call(r,...o)},onCreate:(...o)=>{var r,i;return(i=(r=this.options.current).onCreate)===null||i===void 0?void 0:i.call(r,...o)},onDestroy:(...o)=>{var r,i;return(i=(r=this.options.current).onDestroy)===null||i===void 0?void 0:i.call(r,...o)},onFocus:(...o)=>{var r,i;return(i=(r=this.options.current).onFocus)===null||i===void 0?void 0:i.call(r,...o)},onSelectionUpdate:(...o)=>{var r,i;return(i=(r=this.options.current).onSelectionUpdate)===null||i===void 0?void 0:i.call(r,...o)},onTransaction:(...o)=>{var r,i;return(i=(r=this.options.current).onTransaction)===null||i===void 0?void 0:i.call(r,...o)},onUpdate:(...o)=>{var r,i;return(i=(r=this.options.current).onUpdate)===null||i===void 0?void 0:i.call(r,...o)},onContentError:(...o)=>{var r,i;return(i=(r=this.options.current).onContentError)===null||i===void 0?void 0:i.call(r,...o)},onDrop:(...o)=>{var r,i;return(i=(r=this.options.current).onDrop)===null||i===void 0?void 0:i.call(r,...o)},onPaste:(...o)=>{var r,i;return(i=(r=this.options.current).onPaste)===null||i===void 0?void 0:i.call(r,...o)}};return new P1(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(o=>["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(o)?!0:o==="extensions"&&e.extensions&&t.extensions?e.extensions.length!==t.extensions.length?!1:e.extensions.every((r,i)=>{var a;return r===((a=t.extensions)===null||a===void 0?void 0:a[i])}):e[o]===t[o])}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&e.length===0?iu.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,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){t&&t.setOptions(this.options.current);return}t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}}function oS(n={},e=[]){const t=E.useRef(n);t.current=n;const[o]=E.useState(()=>new iu(t)),r=nu.useSyncExternalStore(o.subscribe,o.getEditor,o.getServerSnapshot);return E.useDebugValue(r),E.useEffect(o.onRender(e)),eS({editor:r,selector:({transactionNumber:i})=>n.shouldRerenderOnTransaction===!1?null:n.immediatelyRender&&i===0?0:i+1}),r}E.createContext({editor:null}).Consumer;const rS=E.createContext({onDragStart:void 0}),iS=()=>E.useContext(rS);ae.forwardRef((n,e)=>{const{onDragStart:t}=iS(),o=n.as||"div";return ae.createElement(o,{...n,ref:e,"data-node-view-wrapper":"",onDragStart:t,style:{whiteSpace:"normal",...n.style}})});var sS=Object.defineProperty,aS=(n,e,t)=>e in n?sS(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,su=(n,e,t)=>(aS(n,typeof e!="symbol"?e+"":e,t),t);let lS=class{constructor(){su(this,"current",this.detect()),su(this,"handoffState","pending"),su(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"}},Hs=new lS,Wr=(n,e)=>{Hs.isServer?E.useEffect(n,e):E.useLayoutEffect(n,e)};function Vo(n){let e=E.useRef(n);return Wr(()=>{e.current=n},[n]),e}let an=function(n){let e=Vo(n);return ae.useCallback((...t)=>e.current(...t),[e])};function cS(n){typeof queueMicrotask=="function"?queueMicrotask(n):Promise.resolve().then(n).catch(e=>setTimeout(()=>{throw e}))}function qr(){let n=[],e={addEventListener(t,o,r,i){return t.addEventListener(o,r,i),e.add(()=>t.removeEventListener(o,r,i))},requestAnimationFrame(...t){let o=requestAnimationFrame(...t);return e.add(()=>cancelAnimationFrame(o))},nextFrame(...t){return e.requestAnimationFrame(()=>e.requestAnimationFrame(...t))},setTimeout(...t){let o=setTimeout(...t);return e.add(()=>clearTimeout(o))},microTask(...t){let o={current:!0};return cS(()=>{o.current&&t[0]()}),e.add(()=>{o.current=!1})},style(t,o,r){let i=t.style.getPropertyValue(o);return Object.assign(t.style,{[o]:r}),this.add(()=>{Object.assign(t.style,{[o]:i})})},group(t){let o=qr();return t(o),this.add(()=>o.dispose())},add(t){return n.push(t),()=>{let o=n.indexOf(t);if(o>=0)for(let r of n.splice(o,1))r()}},dispose(){for(let t of n.splice(0))t()}};return e}function gg(){let[n]=E.useState(qr);return E.useEffect(()=>()=>n.dispose(),[n]),n}function uS(){let n=typeof document>"u";return"useSyncExternalStore"in lp?(e=>e.useSyncExternalStore)(lp)(()=>()=>{},()=>!1,()=>!n):!1}function yg(){let n=uS(),[e,t]=E.useState(Hs.isHandoffComplete);return e&&Hs.isHandoffComplete===!1&&t(!1),E.useEffect(()=>{e!==!0&&t(!0)},[e]),E.useEffect(()=>Hs.handoff(),[]),n?!1:e}function Vt(n,e,...t){if(n in e){let r=e[n];return typeof r=="function"?r(...t):r}let o=new Error(`Tried to handle "${n}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(r=>`"${r}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,Vt),o}let dS=Symbol();function kg(...n){let e=E.useRef(n);E.useEffect(()=>{e.current=n},[n]);let t=an(o=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(o):r.current=o)});return n.every(o=>o==null||o?.[dS])?void 0:t}function Vs(...n){return Array.from(new Set(n.flatMap(e=>typeof e=="string"?e.split(" "):[]))).filter(Boolean).join(" ")}var bg=(n=>(n[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static",n))(bg||{}),An=(n=>(n[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden",n))(An||{});function vg({ourProps:n,theirProps:e,slot:t,defaultTag:o,features:r,visible:i=!0,name:a,mergeRefs:c}){c=c??mS;let d=wg(e,n);if(i)return Ys(d,t,o,a,c);let m=r??0;if(m&2){let{static:p=!1,...h}=d;if(p)return Ys(h,t,o,a,c)}if(m&1){let{unmount:p=!0,...h}=d;return Vt(p?0:1,{0(){return null},1(){return Ys({...h,hidden:!0,style:{display:"none"}},t,o,a,c)}})}return Ys(d,t,o,a,c)}function Ys(n,e={},t,o,r){let{as:i=t,children:a,refName:c="ref",...d}=lu(n,["unmount","static"]),m=n.ref!==void 0?{[c]:n.ref}:{},p=typeof a=="function"?a(e):a;"className"in d&&d.className&&typeof d.className=="function"&&(d.className=d.className(e));let h={};if(e){let g=!1,k=[];for(let[b,$]of Object.entries(e))typeof $=="boolean"&&(g=!0),$===!0&&k.push(b);g&&(h["data-headlessui-state"]=k.join(" "))}if(i===E.Fragment&&Object.keys($g(d)).length>0){if(!E.isValidElement(p)||Array.isArray(p)&&p.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(d).map($=>` - ${$}`).join(`
|
|
99
|
-
`)
|
|
88
|
+
}`;function Td(e,t,n){let r=document.querySelector(`style[data-tiptap-style${n?`-${n}`:``}]`);if(r!==null)return r;let i=document.createElement(`style`);return t&&i.setAttribute(`nonce`,t),i.setAttribute(`data-tiptap-style${n?`-${n}`:``}`,``),i.innerHTML=e,document.getElementsByTagName(`head`)[0].appendChild(i),i}var Ed=class extends Kc{constructor(e={}){super(),this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.options={element:document.createElement(`div`),content:``,injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:e})=>{throw e},onPaste:()=>null,onDrop:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on(`beforeCreate`,this.options.onBeforeCreate),this.emit(`beforeCreate`,{editor:this}),this.on(`contentError`,this.options.onContentError),this.createView(),this.injectCSS(),this.on(`create`,this.options.onCreate),this.on(`update`,this.options.onUpdate),this.on(`selectionUpdate`,this.options.onSelectionUpdate),this.on(`transaction`,this.options.onTransaction),this.on(`focus`,this.options.onFocus),this.on(`blur`,this.options.onBlur),this.on(`destroy`,this.options.onDestroy),this.on(`drop`,({event:e,slice:t,moved:n})=>this.options.onDrop(e,t,n)),this.on(`paste`,({event:e,slice:t})=>this.options.onPaste(e,t)),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit(`create`,{editor:this}),this.isInitialized=!0)},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=Td(wd,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit(`update`,{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){let n=Qc(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(e){if(this.isDestroyed)return;let t=this.state.plugins,n=t;if([].concat(e).forEach(e=>{let t=typeof e==`string`?`${e}$`:e.key;n=n.filter(e=>!e.key.startsWith(t))}),t.length===n.length)return;let r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){this.extensionManager=new Tl([...this.options.enableCoreExtensions?[_d,kl.configure({blockSeparator:this.options.coreExtensionOptions?.clipboardTextSerializer?.blockSeparator}),hd,yd,bd,Sd,gd,xd].filter(e=>typeof this.options.enableCoreExtensions==`object`?this.options.enableCoreExtensions[e.name]!==!1:!0):[],...this.options.extensions].filter(e=>[`extension`,`node`,`mark`].includes(e?.type)),this)}createCommandManager(){this.commandManager=new Gc({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){let e;try{e=Iu(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(t){if(!(t instanceof Error)||![`[tiptap error]: Invalid JSON content`,`[tiptap error]: Invalid HTML content`].includes(t.message))throw t;this.emit(`contentError`,{editor:this,error:t,disableCollaboration:()=>{this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(e=>e.name!==`collaboration`),this.createExtensionManager()}}),e=Iu(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}let t=Zl(e,this.options.autofocus);this.view=new Fs(this.options.element,{...this.options.editorProps,attributes:{role:`textbox`,...this.options.editorProps?.attributes},dispatchTransaction:this.dispatchTransaction.bind(this),state:_r.create({doc:e,selection:t||void 0})});let n=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(n),this.createNodeViews(),this.prependClass();let r=this.view.dom;r.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;let t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(e=>this.capturedTransaction?.step(e));return}let t=this.state.apply(e),n=!this.state.selection.eq(t.selection);this.emit(`beforeTransaction`,{editor:this,transaction:e,nextState:t}),this.view.updateState(t),this.emit(`transaction`,{editor:this,transaction:e}),n&&this.emit(`selectionUpdate`,{editor:this,transaction:e});let r=e.getMeta(`focus`),i=e.getMeta(`blur`);r&&this.emit(`focus`,{editor:this,event:r.event,transaction:e}),i&&this.emit(`blur`,{editor:this,event:i.event,transaction:e}),!(!e.docChanged||e.getMeta(`preventUpdate`))&&this.emit(`update`,{editor:this,transaction:e})}getAttributes(e){return Ku(this.state,e)}isActive(e,t){let n=typeof e==`string`?e:null,r=typeof e==`string`?t:e;return $u(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return ol(this.state.doc.content,this.schema)}getText(e){let{blockSeparator:t=`
|
|
89
|
+
|
|
90
|
+
`,textSerializers:n={}}=e||{};return Wu(this.state.doc,{blockSeparator:t,textSerializers:{...Ol(this.schema),...n}})}get isEmpty(){return td(this.state.doc)}getCharacterCount(){return console.warn(`[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.`),this.state.doc.content.size-2}destroy(){if(this.emit(`destroy`),this.view){let e=this.view.dom;e&&e.editor&&delete e.editor,this.view.destroy()}this.removeAllListeners()}get isDestroyed(){return!this.view?.docView}$node(e,t){return this.$doc?.querySelector(e,t)||null}$nodes(e,t){return this.$doc?.querySelectorAll(e,t)||null}$pos(e){return new Cd(this.state.doc.resolve(e),this)}get $doc(){return this.$pos(0)}};function Dd(e){return new ll({find:e.find,handler:({state:t,range:n,match:r,chain:i})=>{let a=J(e.getAttributes,void 0,r)||{},o=t.tr.delete(n.from,n.to),s=o.doc.resolve(n.from).blockRange(),c=s&&hn(s,e.type,a);if(!c)return null;if(o.wrap(s,c),e.keepMarks&&e.editor){let{selection:n,storedMarks:r}=t,{splittableMarks:i}=e.editor.extensionManager,a=r||n.$to.parentOffset&&n.$from.marks();if(a){let e=a.filter(e=>i.includes(e.type.name));o.ensureMarks(e)}}if(e.keepAttributes){let t=e.type.name===`bulletList`||e.type.name===`orderedList`?`listItem`:`taskList`;i().updateAttributes(t,a).run()}let l=o.doc.resolve(n.from-1).nodeBefore;l&&l.type===e.type&&Dn(o.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(r,l))&&o.join(n.from-1)}})}var Od=class e{constructor(e={}){this.type=`node`,this.name=`node`,this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=J(q(this,`addOptions`,{name:this.name}))),this.storage=J(q(this,`addStorage`,{name:this.name,options:this.options}))||{}}static create(t={}){return new e(t)}configure(e={}){let t=this.extend({...this.config,addOptions:()=>hl(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(t={}){let n=new e(t);return n.parent=this,this.child=n,n.name=t.name?t.name:n.parent.name,t.defaultOptions&&Object.keys(t.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`),n.options=J(q(n,`addOptions`,{name:n.name})),n.storage=J(q(n,`addStorage`,{name:n.name,options:n.options})),n}};function kd(e){return new vl({find:e.find,handler:({state:t,range:n,match:r,pasteEvent:i})=>{let a=J(e.getAttributes,void 0,r,i);if(a===!1||a===null)return null;let{tr:o}=t,s=r[r.length-1],c=r[0],l=n.to;if(s){let r=c.search(/\S/),i=n.from+c.indexOf(s),u=i+s.length;if(Xu(n.from,n.to,t.doc).filter(t=>t.mark.type.excluded.find(n=>n===e.type&&n!==t.mark.type)).filter(e=>e.to>i).length)return null;u<n.to&&o.delete(u,n.to),i>n.from&&o.delete(n.from+r,i),l=n.from+r+s.length,o.addMark(n.from+r,l,e.type.create(a||{})),o.removeStoredMark(e.type)}}})}var Ad=o((e=>{var t,n,r,i;if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}if(typeof window>`u`||typeof MessageChannel!=`function`){var c=null,l=null,u=function(){if(c!==null)try{var t=e.unstable_now();c(!0,t),c=null}catch(e){throw setTimeout(u,0),e}};t=function(e){c===null?(c=e,setTimeout(u,0)):setTimeout(t,0,e)},n=function(e,t){l=setTimeout(e,t)},r=function(){clearTimeout(l)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,f=window.clearTimeout;if(typeof console<`u`){var p=window.cancelAnimationFrame;typeof window.requestAnimationFrame!=`function`&&console.error(`This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills`),typeof p!=`function`&&console.error(`This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills`)}var m=!1,h=null,g=-1,_=5,v=0;e.unstable_shouldYield=function(){return e.unstable_now()>=v},i=function(){},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):_=0<e?Math.floor(1e3/e):5};var y=new MessageChannel,b=y.port2;y.port1.onmessage=function(){if(h!==null){var t=e.unstable_now();v=t+_;try{h(!0,t)?b.postMessage(null):(m=!1,h=null)}catch(e){throw b.postMessage(null),e}}else m=!1},t=function(e){h=e,m||(m=!0,b.postMessage(null))},n=function(t,n){g=d(function(){t(e.unstable_now())},n)},r=function(){f(g),g=-1}}function x(e,t){var n=e.length;e.push(t);a:for(;;){var r=n-1>>>1,i=e[r];if(i!==void 0&&0<w(i,t))e[r]=t,e[n]=i,n=r;else break a}}function S(e){return e=e[0],e===void 0?null:e}function C(e){var t=e[0];if(t!==void 0){var n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,c=e[s];if(o!==void 0&&0>w(o,n))c!==void 0&&0>w(c,o)?(e[r]=c,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else if(c!==void 0&&0>w(c,n))e[r]=c,e[s]=n,r=s;else break a}}return t}return null}function w(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}var T=[],ee=[],te=1,E=null,D=3,ne=!1,re=!1,ie=!1;function ae(e){for(var t=S(ee);t!==null;){if(t.callback===null)C(ee);else if(t.startTime<=e)C(ee),t.sortIndex=t.expirationTime,x(T,t);else break;t=S(ee)}}function oe(e){if(ie=!1,ae(e),!re)if(S(T)!==null)re=!0,t(O);else{var r=S(ee);r!==null&&n(oe,r.startTime-e)}}function O(t,i){re=!1,ie&&(ie=!1,r()),ne=!0;var a=D;try{for(ae(i),E=S(T);E!==null&&(!(E.expirationTime>i)||t&&!e.unstable_shouldYield());){var o=E.callback;if(typeof o==`function`){E.callback=null,D=E.priorityLevel;var s=o(E.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?E.callback=s:E===S(T)&&C(T),ae(i)}else C(T);E=S(T)}if(E!==null)var c=!0;else{var l=S(ee);l!==null&&n(oe,l.startTime-i),c=!1}return c}finally{E=null,D=a,ne=!1}}var se=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){re||ne||(re=!0,t(O))},e.unstable_getCurrentPriorityLevel=function(){return D},e.unstable_getFirstCallbackNode=function(){return S(T)},e.unstable_next=function(e){switch(D){case 1:case 2:case 3:var t=3;break;default:t=D}var n=D;D=t;try{return e()}finally{D=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=se,e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=D;D=e;try{return t()}finally{D=n}},e.unstable_scheduleCallback=function(i,a,o){var s=e.unstable_now();switch(typeof o==`object`&&o?(o=o.delay,o=typeof o==`number`&&0<o?s+o:s):o=s,i){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return c=o+c,i={id:te++,callback:a,priorityLevel:i,startTime:o,expirationTime:c,sortIndex:-1},o>s?(i.sortIndex=o,x(ee,i),S(T)===null&&i===S(ee)&&(ie?r():ie=!0,n(oe,o-s))):(i.sortIndex=c,x(T,i),re||ne||(re=!0,t(O))),i},e.unstable_wrapCallback=function(e){var t=D;return function(){var n=D;D=t;try{return e.apply(this,arguments)}finally{D=n}}}})),jd=o(((e,t)=>{t.exports=Ad()})),Md=o((e=>{var t=f(),n=u(),r=jd();function i(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}if(!t)throw Error(i(227));var a=new Set,o={};function s(e,t){c(e,t),c(e+`Capture`,t)}function c(e,t){for(o[e]=t,e=0;e<t.length;e++)a.add(t[e])}var l=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,m={},h={};function g(e){return p.call(h,e)?!0:p.call(m,e)?!1:d.test(e)?h[e]=!0:(m[e]=!0,!1)}function _(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:return r?!1:n===null?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function v(e,t,n,r){if(t==null||_(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function y(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var b={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){b[e]=new y(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];b[t]=new y(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){b[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){b[e]=new y(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){b[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){b[e]=new y(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){b[e]=new y(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){b[e]=new y(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){b[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)});var x=/[\-:]([a-z])/g;function S(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(x,S);b[t]=new y(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(x,S);b[t]=new y(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(x,S);b[t]=new y(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){b[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)}),b.xlinkHref=new y(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){b[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)});function C(e,t,n,r){var i=b.hasOwnProperty(t)?b[t]:null;(i===null?!r&&!(!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`):i.type===0)||(v(t,n,i,r)&&(n=null),r||i===null?g(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=60103,ee=60106,te=60107,E=60108,D=60114,ne=60109,re=60110,ie=60112,ae=60113,oe=60120,O=60115,se=60116,k=60121,ce=60128,le=60129,ue=60130,de=60131;if(typeof Symbol==`function`&&Symbol.for){var A=Symbol.for;T=A(`react.element`),ee=A(`react.portal`),te=A(`react.fragment`),E=A(`react.strict_mode`),D=A(`react.profiler`),ne=A(`react.provider`),re=A(`react.context`),ie=A(`react.forward_ref`),ae=A(`react.suspense`),oe=A(`react.suspense_list`),O=A(`react.memo`),se=A(`react.lazy`),k=A(`react.block`),A(`react.scope`),ce=A(`react.opaque.id`),le=A(`react.debug_trace_mode`),ue=A(`react.offscreen`),de=A(`react.legacy_hidden`)}var fe=typeof Symbol==`function`&&Symbol.iterator;function pe(e){return typeof e!=`object`||!e?null:(e=fe&&e[fe]||e[`@@iterator`],typeof e==`function`?e:null)}var me;function he(e){if(me===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);me=t&&t[1]||``}return`
|
|
91
|
+
`+me+e}var ge=!1;function _e(e,t){if(!e||ge)return``;ge=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&typeof e.stack==`string`){for(var i=e.stack.split(`
|
|
92
|
+
`),a=r.stack.split(`
|
|
93
|
+
`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s])return`
|
|
94
|
+
`+i[o].replace(` at new `,` at `);while(1<=o&&0<=s);break}}}finally{ge=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?he(e):``}function ve(e){switch(e.tag){case 5:return he(e.type);case 16:return he(`Lazy`);case 13:return he(`Suspense`);case 19:return he(`SuspenseList`);case 0:case 2:case 15:return e=_e(e.type,!1),e;case 11:return e=_e(e.type.render,!1),e;case 22:return e=_e(e.type._render,!1),e;case 1:return e=_e(e.type,!0),e;default:return``}}function ye(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case te:return`Fragment`;case ee:return`Portal`;case D:return`Profiler`;case E:return`StrictMode`;case ae:return`Suspense`;case oe:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case re:return(e.displayName||`Context`)+`.Consumer`;case ne:return(e._context.displayName||`Context`)+`.Provider`;case ie:var t=e.render;return t=t.displayName||t.name||``,e.displayName||(t===``?`ForwardRef`:`ForwardRef(`+t+`)`);case O:return ye(e.type);case k:return ye(e._render);case se:t=e._payload,e=e._init;try{return ye(e(t))}catch{}}return null}function be(e){switch(typeof e){case`boolean`:case`number`:case`object`:case`string`:case`undefined`:return e;default:return``}}function xe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function j(e){var t=xe(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Se(e){e._valueTracker||=j(e)}function Ce(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=xe(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function we(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function M(e,t){var r=t.checked;return n({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Te(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=be(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function N(e,t){t=t.checked,t!=null&&C(e,`checked`,t,!1)}function Ee(e,t){N(e,t);var n=be(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?Oe(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&Oe(e,t.type,be(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function De(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function Oe(e,t,n){(t!==`number`||we(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}function ke(e){var n=``;return t.Children.forEach(e,function(e){e!=null&&(n+=e)}),n}function Ae(e,t){return e=n({children:void 0},t),(t=ke(t.children))&&(e.children=t),e}function je(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+be(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Me(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return n({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function Ne(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(i(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(i(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:be(n)}}function Pe(e,t){var n=be(t.value),r=be(t.defaultValue);n!=null&&(n=``+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=``+r)}function Fe(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}var Ie={html:`http://www.w3.org/1999/xhtml`,mathml:`http://www.w3.org/1998/Math/MathML`,svg:`http://www.w3.org/2000/svg`};function Le(e){switch(e){case`svg`:return`http://www.w3.org/2000/svg`;case`math`:return`http://www.w3.org/1998/Math/MathML`;default:return`http://www.w3.org/1999/xhtml`}}function Re(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?Le(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var ze,Be=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==Ie.svg||`innerHTML`in e)e.innerHTML=t;else{for(ze||=document.createElement(`div`),ze.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=ze.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ve(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var He={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},Ue=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(He).forEach(function(e){Ue.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),He[t]=He[e]})});function We(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||He.hasOwnProperty(e)&&He[e]?(``+t).trim():t+`px`}function Ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=We(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var Ke=n({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function qe(e,t){if(t){if(Ke[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(!(typeof t.dangerouslySetInnerHTML==`object`&&`__html`in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(i(62))}}function Je(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}function Ye(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xe=null,Ze=null,Qe=null;function $e(e){if(e=Ai(e)){if(typeof Xe!=`function`)throw Error(i(280));var t=e.stateNode;t&&(t=Mi(t),Xe(e.stateNode,e.type,t))}}function et(e){Ze?Qe?Qe.push(e):Qe=[e]:Ze=e}function tt(){if(Ze){var e=Ze,t=Qe;if(Qe=Ze=null,$e(e),t)for(e=0;e<t.length;e++)$e(t[e])}}function nt(e,t){return e(t)}function rt(e,t,n,r,i){return e(t,n,r,i)}function it(){}var at=nt,ot=!1,st=!1;function ct(){(Ze!==null||Qe!==null)&&(it(),tt())}function lt(e,t,n){if(st)return e(t,n);st=!0;try{return at(e,t,n)}finally{st=!1,ct()}}function ut(e,t){var n=e.stateNode;if(n===null)return null;var r=Mi(n);if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var dt=!1;if(l)try{var ft={};Object.defineProperty(ft,`passive`,{get:function(){dt=!0}}),window.addEventListener(`test`,ft,ft),window.removeEventListener(`test`,ft,ft)}catch{dt=!1}function pt(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var mt=!1,ht=null,gt=!1,_t=null,vt={onError:function(e){mt=!0,ht=e}};function yt(e,t,n,r,i,a,o,s,c){mt=!1,ht=null,pt.apply(vt,arguments)}function bt(e,t,n,r,a,o,s,c,l){if(yt.apply(this,arguments),mt){if(mt){var u=ht;mt=!1,ht=null}else throw Error(i(198));gt||(gt=!0,_t=u)}}function xt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function St(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Ct(e){if(xt(e)!==e)throw Error(i(188))}function wt(e){var t=e.alternate;if(!t){if(t=xt(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return Ct(a),e;if(o===r)return Ct(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,r=o;break}if(c===r){s=!0,r=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,r=a;break}if(c===r){s=!0,r=o,n=a;break}c=c.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function Tt(e){if(e=wt(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Et(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var Dt,Ot,kt,At,jt=!1,Mt=[],Nt=null,Pt=null,Ft=null,It=new Map,Lt=new Map,Rt=[],zt=`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 Bt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:i,targetContainers:[r]}}function Vt(e,t){switch(e){case`focusin`:case`focusout`:Nt=null;break;case`dragenter`:case`dragleave`:Pt=null;break;case`mouseover`:case`mouseout`:Ft=null;break;case`pointerover`:case`pointerout`:It.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Lt.delete(t.pointerId)}}function Ht(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e=Bt(t,n,r,i,a),t!==null&&(t=Ai(t),t!==null&&Ot(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ut(e,t,n,r,i){switch(t){case`focusin`:return Nt=Ht(Nt,e,t,n,r,i),!0;case`dragenter`:return Pt=Ht(Pt,e,t,n,r,i),!0;case`mouseover`:return Ft=Ht(Ft,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return It.set(a,Ht(It.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Lt.set(a,Ht(Lt.get(a)||null,e,t,n,r,i)),!0}return!1}function Wt(e){var t=ki(e.target);if(t!==null){var n=xt(t);if(n!==null){if(t=n.tag,t===13){if(t=St(n),t!==null){e.blockedOn=t,At(e.lanePriority,function(){r.unstable_runWithPriority(e.priority,function(){kt(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Gt(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=An(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=Ai(n),t!==null&&Ot(t),e.blockedOn=n,!1;t.shift()}return!0}function Kt(e,t,n){Gt(e)&&n.delete(t)}function qt(){for(jt=!1;0<Mt.length;){var e=Mt[0];if(e.blockedOn!==null){e=Ai(e.blockedOn),e!==null&&Dt(e);break}for(var t=e.targetContainers;0<t.length;){var n=An(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&Mt.shift()}Nt!==null&&Gt(Nt)&&(Nt=null),Pt!==null&&Gt(Pt)&&(Pt=null),Ft!==null&&Gt(Ft)&&(Ft=null),It.forEach(Kt),Lt.forEach(Kt)}function Jt(e,t){e.blockedOn===t&&(e.blockedOn=null,jt||(jt=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,qt)))}function Yt(e){function t(t){return Jt(t,e)}if(0<Mt.length){Jt(Mt[0],e);for(var n=1;n<Mt.length;n++){var r=Mt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Nt!==null&&Jt(Nt,e),Pt!==null&&Jt(Pt,e),Ft!==null&&Jt(Ft,e),It.forEach(t),Lt.forEach(t),n=0;n<Rt.length;n++)r=Rt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&(n=Rt[0],n.blockedOn===null);)Wt(n),n.blockedOn===null&&Rt.shift()}function Xt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Zt={animationend:Xt(`Animation`,`AnimationEnd`),animationiteration:Xt(`Animation`,`AnimationIteration`),animationstart:Xt(`Animation`,`AnimationStart`),transitionend:Xt(`Transition`,`TransitionEnd`)},Qt={},$t={};l&&($t=document.createElement(`div`).style,`AnimationEvent`in window||(delete Zt.animationend.animation,delete Zt.animationiteration.animation,delete Zt.animationstart.animation),`TransitionEvent`in window||delete Zt.transitionend.transition);function en(e){if(Qt[e])return Qt[e];if(!Zt[e])return e;var t=Zt[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $t)return Qt[e]=t[n];return e}var tn=en(`animationend`),nn=en(`animationiteration`),rn=en(`animationstart`),an=en(`transitionend`),on=new Map,sn=new Map,cn=[`abort`,`abort`,tn,`animationEnd`,nn,`animationIteration`,rn,`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`,an,`transitionEnd`,`waiting`,`waiting`];function ln(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i=`on`+(i[0].toUpperCase()+i.slice(1)),sn.set(r,t),on.set(r,i),s(i,[r])}}var un=r.unstable_now;un();var P=8;function dn(e){if(1&e)return P=15,1;if(2&e)return P=14,2;if(4&e)return P=13,4;var t=24&e;return t===0?e&32?(P=11,32):(t=192&e,t===0?e&256?(P=9,256):(t=3584&e,t===0?e&4096?(P=7,4096):(t=4186112&e,t===0?(t=62914560&e,t===0?e&67108864?(P=4,67108864):e&134217728?(P=3,134217728):(t=805306368&e,t===0?1073741824&e?(P=1,1073741824):(P=8,e):(P=2,t)):(P=5,t)):(P=6,t)):(P=8,t)):(P=10,t)):(P=12,t)}function fn(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function pn(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(i(358,e))}}function mn(e,t){var n=e.pendingLanes;if(n===0)return P=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(a!==0)r=a,i=P=15;else if(a=n&134217727,a!==0){var c=a&~o;c===0?(s&=a,s!==0&&(r=dn(s),i=P)):(r=dn(c),i=P)}else a=n&~o,a===0?s!==0&&(r=dn(s),i=P):(r=dn(a),i=P);if(r===0)return 0;if(r=31-bn(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&(t&o)===0){if(dn(t),i<=P)return t;P=i}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-bn(t),i=1<<n,r|=e[n],t&=~i;return r}function hn(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function gn(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=_n(24&~t),e===0?gn(10,t):e;case 10:return e=_n(192&~t),e===0?gn(8,t):e;case 8:return e=_n(3584&~t),e===0&&(e=_n(4186112&~t),e===0&&(e=512)),e;case 2:return t=_n(805306368&~t),t===0&&(t=268435456),t}throw Error(i(358,e))}function _n(e){return e&-e}function vn(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yn(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-bn(t),e[t]=n}var bn=Math.clz32?Math.clz32:Cn,xn=Math.log,Sn=Math.LN2;function Cn(e){return e===0?32:31-(xn(e)/Sn|0)|0}var wn=r.unstable_UserBlockingPriority,Tn=r.unstable_runWithPriority,En=!0;function Dn(e,t,n,r){ot||it();var i=kn,a=ot;ot=!0;try{rt(i,e,t,n,r)}finally{(ot=a)||ct()}}function On(e,t,n,r){Tn(wn,kn.bind(null,e,t,n,r))}function kn(e,t,n,r){if(En){var i;if((i=(t&4)==0)&&0<Mt.length&&-1<zt.indexOf(e))e=Bt(null,e,t,n,r),Mt.push(e);else{var a=An(e,t,n,r);if(a===null)i&&Vt(e,r);else{if(i){if(-1<zt.indexOf(e)){e=Bt(a,e,t,n,r),Mt.push(e);return}if(Ut(a,e,t,n,r))return;Vt(e,r)}si(e,t,r,null,n)}}}}function An(e,t,n,r){var i=Ye(r);if(i=ki(i),i!==null){var a=xt(i);if(a===null)i=null;else{var o=a.tag;if(o===13){if(i=St(a),i!==null)return i;i=null}else if(o===3){if(a.stateNode.hydrate)return a.tag===3?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return si(e,t,r,i,n),null}var jn=null,Mn=null,Nn=null;function Pn(){if(Nn)return Nn;var e,t=Mn,n=t.length,r,i=`value`in jn?jn.value:jn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Nn=i.slice(e,1<r?1-r:void 0)}function Fn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function In(){return!0}function Ln(){return!1}function Rn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?In:Ln,this.isPropagationStopped=Ln,this}return n(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=In)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=In)},persist:function(){},isPersistent:In}),t}var zn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bn=Rn(zn),Vn=n({},zn,{view:0,detail:0}),Hn=Rn(Vn),Un,Wn,Gn,Kn=n({},Vn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Gn&&(Gn&&e.type===`mousemove`?(Un=e.screenX-Gn.screenX,Wn=e.screenY-Gn.screenY):Wn=Un=0,Gn=e),Un)},movementY:function(e){return`movementY`in e?e.movementY:Wn}}),qn=Rn(Kn),Jn=Rn(n({},Kn,{dataTransfer:0})),Yn=Rn(n({},Vn,{relatedTarget:0})),Xn=Rn(n({},zn,{animationName:0,elapsedTime:0,pseudoElement:0})),Zn=Rn(n({},zn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Qn=Rn(n({},zn,{data:0})),$n={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},F={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`},er={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function tr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=er[e])?!!t[e]:!1}function nr(){return tr}var I=Rn(n({},Vn,{key:function(e){if(e.key){var t=$n[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Fn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?F[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nr,charCode:function(e){return e.type===`keypress`?Fn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Fn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),rr=Rn(n({},Kn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),L=Rn(n({},Vn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nr})),ir=Rn(n({},zn,{propertyName:0,elapsedTime:0,pseudoElement:0})),ar=Rn(n({},Kn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),or=[9,13,27,32],sr=l&&`CompositionEvent`in window,cr=null;l&&`documentMode`in document&&(cr=document.documentMode);var lr=l&&`TextEvent`in window&&!cr,ur=l&&(!sr||cr&&8<cr&&11>=cr),dr=` `,fr=!1;function pr(e,t){switch(e){case`keyup`:return or.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function mr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var hr=!1;function gr(e,t){switch(e){case`compositionend`:return mr(t);case`keypress`:return t.which===32?(fr=!0,dr):null;case`textInput`:return e=t.data,e===dr&&fr?null:e;default:return null}}function _r(e,t){if(hr)return e===`compositionend`||!sr&&pr(e,t)?(e=Pn(),Nn=Mn=jn=null,hr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return ur&&t.locale!==`ko`?null:t.data;default:return null}}var vr={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 yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!vr[e.type]:t===`textarea`}function br(e,t,n,r){et(r),t=li(t,`onChange`),0<t.length&&(n=new Bn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var xr=null,Sr=null;function Cr(e){ni(e,0)}function wr(e){if(Ce(ji(e)))return e}function Tr(e,t){if(e===`change`)return t}var Er=!1;if(l){var Dr;if(l){var Or=`oninput`in document;if(!Or){var kr=document.createElement(`div`);kr.setAttribute(`oninput`,`return;`),Or=typeof kr.oninput==`function`}Dr=Or}else Dr=!1;Er=Dr&&(!document.documentMode||9<document.documentMode)}function Ar(){xr&&(xr.detachEvent(`onpropertychange`,jr),Sr=xr=null)}function jr(e){if(e.propertyName===`value`&&wr(Sr)){var t=[];if(br(t,Sr,e,Ye(e)),e=Cr,ot)e(t);else{ot=!0;try{nt(e,t)}finally{ot=!1,ct()}}}}function Mr(e,t,n){e===`focusin`?(Ar(),xr=t,Sr=n,xr.attachEvent(`onpropertychange`,jr)):e===`focusout`&&Ar()}function Nr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return wr(Sr)}function Pr(e,t){if(e===`click`)return wr(t)}function Fr(e,t){if(e===`input`||e===`change`)return wr(t)}function Ir(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Lr=typeof Object.is==`function`?Object.is:Ir,Rr=Object.prototype.hasOwnProperty;function zr(e,t){if(Lr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Rr.call(t,n[r])||!Lr(e[n[r]],t[n[r]]))return!1;return!0}function Br(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vr(e,t){var n=Br(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Br(n)}}function Hr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Hr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ur(){for(var e=window,t=we();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=we(e.document)}return t}function Wr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Gr=l&&`documentMode`in document&&11>=document.documentMode,Kr=null,qr=null,Jr=null,Yr=!1;function Xr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Yr||Kr==null||Kr!==we(r)||(r=Kr,`selectionStart`in r&&Wr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Jr&&zr(Jr,r)||(Jr=r,r=li(qr,`onSelect`),0<r.length&&(t=new Bn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Kr)))}ln(`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),ln(`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),ln(cn,2);for(var Zr=`change selectionchange textInput compositionstart compositionend compositionupdate`.split(` `),Qr=0;Qr<Zr.length;Qr++)sn.set(Zr[Qr],0);c(`onMouseEnter`,[`mouseout`,`mouseover`]),c(`onMouseLeave`,[`mouseout`,`mouseover`]),c(`onPointerEnter`,[`pointerout`,`pointerover`]),c(`onPointerLeave`,[`pointerout`,`pointerover`]),s(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),s(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),s(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),s(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),s(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),s(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var $r=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),ei=new Set(`cancel close invalid load scroll toggle`.split(` `).concat($r));function ti(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,bt(r,t,void 0,e),e.currentTarget=null}function ni(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;ti(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;ti(i,s,l),a=c}}}if(gt)throw e=_t,gt=!1,_t=null,e}function R(e,t){var n=Ni(t),r=e+`__bubble`;n.has(r)||(oi(t,e,2,!1),n.add(r))}var ri=`_reactListening`+Math.random().toString(36).slice(2);function ii(e){e[ri]||(e[ri]=!0,a.forEach(function(t){ei.has(t)||ai(t,!1,e,null),ai(t,!0,e,null)}))}function ai(e,t,n,r){var i=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,a=n;if(e===`selectionchange`&&n.nodeType!==9&&(a=n.ownerDocument),r!==null&&!t&&ei.has(e)){if(e!==`scroll`)return;i|=2,a=r}var o=Ni(a),s=e+`__`+(t?`capture`:`bubble`);o.has(s)||(t&&(i|=4),oi(a,e,i,t),o.add(s))}function oi(e,t,n,r){var i=sn.get(t);switch(i===void 0?2:i){case 0:i=Dn;break;case 1:i=On;break;default:i=kn}n=i.bind(null,t,n,e),i=void 0,!dt||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function si(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=ki(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}lt(function(){var r=a,i=Ye(n),o=[];a:{var s=on.get(e);if(s!==void 0){var c=Bn,l=e;switch(e){case`keypress`:if(Fn(n)===0)break a;case`keydown`:case`keyup`:c=I;break;case`focusin`:l=`focus`,c=Yn;break;case`focusout`:l=`blur`,c=Yn;break;case`beforeblur`:case`afterblur`:c=Yn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=qn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Jn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=L;break;case tn:case nn:case rn:c=Xn;break;case an:c=ir;break;case`scroll`:c=Hn;break;case`wheel`:c=ar;break;case`copy`:case`cut`:case`paste`:c=Zn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=rr}var u=(t&4)!=0,d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=ut(p,f),h!=null&&u.push(ci(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&!(t&16)&&(l=n.relatedTarget||n.fromElement)&&(ki(l)||l[Di]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?ki(l):null,l!==null&&(d=xt(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=qn,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=rr,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:ji(c),m=l==null?s:ji(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,ki(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=ui(m))p++;for(m=0,h=f;h;h=ui(h))m++;for(;0<p-m;)u=ui(u),p--;for(;0<m-p;)f=ui(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=ui(u),f=ui(f)}u=null}else u=null;c!==null&&di(o,s,c,u,!1),l!==null&&d!==null&&di(o,d,l,u,!0)}}a:{if(s=r?ji(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=Tr;else if(yr(s))if(Er)g=Fr;else{g=Nr;var _=Mr}else (c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=Pr);if(g&&=g(e,r)){br(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&Oe(s,`number`,s.value)}switch(_=r?ji(r):window,e){case`focusin`:(yr(_)||_.contentEditable===`true`)&&(Kr=_,qr=r,Jr=null);break;case`focusout`:Jr=qr=Kr=null;break;case`mousedown`:Yr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Yr=!1,Xr(o,n,i);break;case`selectionchange`:if(Gr)break;case`keydown`:case`keyup`:Xr(o,n,i)}var v;if(sr)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else hr?pr(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(ur&&n.locale!==`ko`&&(hr||y!==`onCompositionStart`?y===`onCompositionEnd`&&hr&&(v=Pn()):(jn=i,Mn=`value`in jn?jn.value:jn.textContent,hr=!0)),_=li(r,y),0<_.length&&(y=new Qn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=mr(n),v!==null&&(y.data=v)))),(v=lr?gr(e,n):_r(e,n))&&(r=li(r,`onBeforeInput`),0<r.length&&(i=new Qn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}ni(o,t)})}function ci(e,t,n){return{instance:e,listener:t,currentTarget:n}}function li(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=ut(e,n),a!=null&&r.unshift(ci(e,a,i)),a=ut(e,t),a!=null&&r.push(ci(e,a,i))),e=e.return}return r}function ui(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function di(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=ut(n,a),c!=null&&o.unshift(ci(n,c,s))):i||(c=ut(n,a),c!=null&&o.push(ci(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}function fi(){}var pi=null,mi=null;function hi(e,t){switch(e){case`button`:case`input`:case`select`:case`textarea`:return!!t.autoFocus}return!1}function gi(e,t){return e===`textarea`||e===`option`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var _i=typeof setTimeout==`function`?setTimeout:void 0,vi=typeof clearTimeout==`function`?clearTimeout:void 0;function yi(e){e.nodeType===1?e.textContent=``:e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=``))}function bi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function xi(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var Si=0;function Ci(e){return{$$typeof:ce,toString:e,valueOf:e}}var wi=Math.random().toString(36).slice(2),Ti=`__reactFiber$`+wi,Ei=`__reactProps$`+wi,Di=`__reactContainer$`+wi,Oi=`__reactEvents$`+wi;function ki(e){var t=e[Ti];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Di]||n[Ti]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xi(e);e!==null;){if(n=e[Ti])return n;e=xi(e)}return t}e=n,n=e.parentNode}return null}function Ai(e){return e=e[Ti]||e[Di],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ji(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function Mi(e){return e[Ei]||null}function Ni(e){var t=e[Oi];return t===void 0&&(t=e[Oi]=new Set),t}var Pi=[],Fi=-1;function Ii(e){return{current:e}}function z(e){0>Fi||(e.current=Pi[Fi],Pi[Fi]=null,Fi--)}function B(e,t){Fi++,Pi[Fi]=e.current,e.current=t}var Li={},V=Ii(Li),Ri=Ii(!1),zi=Li;function Bi(e,t){var n=e.type.contextTypes;if(!n)return Li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Vi(e){return e=e.childContextTypes,e!=null}function Hi(){z(Ri),z(V)}function Ui(e,t,n){if(V.current!==Li)throw Error(i(168));B(V,t),B(Ri,n)}function Wi(e,t,r){var a=e.stateNode;if(e=t.childContextTypes,typeof a.getChildContext!=`function`)return r;for(var o in a=a.getChildContext(),a)if(!(o in e))throw Error(i(108,ye(t)||`Unknown`,o));return n({},r,a)}function Gi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Li,zi=V.current,B(V,e),B(Ri,Ri.current),!0}function Ki(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Wi(e,t,zi),r.__reactInternalMemoizedMergedChildContext=e,z(Ri),z(V),B(V,e)):z(Ri),B(Ri,n)}var qi=null,Ji=null,Yi=r.unstable_runWithPriority,Xi=r.unstable_scheduleCallback,Zi=r.unstable_cancelCallback,Qi=r.unstable_shouldYield,$i=r.unstable_requestPaint,ea=r.unstable_now,ta=r.unstable_getCurrentPriorityLevel,na=r.unstable_ImmediatePriority,ra=r.unstable_UserBlockingPriority,ia=r.unstable_NormalPriority,aa=r.unstable_LowPriority,oa=r.unstable_IdlePriority,sa={},ca=$i===void 0?function(){}:$i,la=null,ua=null,da=!1,fa=ea(),pa=1e4>fa?ea:function(){return ea()-fa};function ma(){switch(ta()){case na:return 99;case ra:return 98;case ia:return 97;case aa:return 96;case oa:return 95;default:throw Error(i(332))}}function ha(e){switch(e){case 99:return na;case 98:return ra;case 97:return ia;case 96:return aa;case 95:return oa;default:throw Error(i(332))}}function ga(e,t){return e=ha(e),Yi(e,t)}function _a(e,t,n){return e=ha(e),Xi(e,t,n)}function va(){if(ua!==null){var e=ua;ua=null,Zi(e)}ya()}function ya(){if(!da&&la!==null){da=!0;var e=0;try{var t=la;ga(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),la=null}catch(t){throw la!==null&&(la=la.slice(e+1)),Xi(na,va),t}finally{da=!1}}}var ba=w.ReactCurrentBatchConfig;function xa(e,t){if(e&&e.defaultProps){for(var r in t=n({},t),e=e.defaultProps,e)t[r]===void 0&&(t[r]=e[r]);return t}return t}var Sa=Ii(null),Ca=null,wa=null,Ta=null;function Ea(){Ta=wa=Ca=null}function Da(e){var t=Sa.current;z(Sa),e.type._context._currentValue=t}function Oa(e,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)===t){if(n===null||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,n!==null&&(n.childLanes|=t);e=e.return}}function ka(e,t){Ca=e,Ta=wa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(as=!0),e.firstContext=null)}function Aa(e,t){if(Ta!==e&&!1!==t&&t!==0)if((typeof t!=`number`||t===1073741823)&&(Ta=e,t=1073741823),t={context:e,observedBits:t,next:null},wa===null){if(Ca===null)throw Error(i(308));wa=t,Ca.dependencies={lanes:0,firstContext:t,responders:null}}else wa=wa.next=t;return e._currentValue}var ja=!1;function Ma(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Na(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Pa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fa(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function Ia(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function La(e,t,r,i){var a=e.updateQueue;ja=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var l=c,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var d=e.alternate;if(d!==null){d=d.updateQueue;var f=d.lastBaseUpdate;f!==s&&(f===null?d.firstBaseUpdate=u:f.next=u,d.lastBaseUpdate=l)}}if(o!==null){f=a.baseState,s=0,d=u=l=null;do{c=o.lane;var p=o.eventTime;if((i&c)===c){d!==null&&(d=d.next={eventTime:p,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});a:{var m=e,h=o;switch(c=t,p=r,h.tag){case 1:if(m=h.payload,typeof m==`function`){f=m.call(p,f,c);break a}f=m;break a;case 3:m.flags=m.flags&-4097|64;case 0:if(m=h.payload,c=typeof m==`function`?m.call(p,f,c):m,c==null)break a;f=n({},f,c);break a;case 2:ja=!0}}o.callback!==null&&(e.flags|=32,c=a.effects,c===null?a.effects=[o]:c.push(o))}else p={eventTime:p,lane:c,tag:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(u=d=p,l=f):d=d.next=p,s|=c;if(o=o.next,o===null){if(c=a.shared.pending,c===null)break;o=c.next,c.next=null,a.lastBaseUpdate=c,a.shared.pending=null}}while(1);d===null&&(l=f),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=d,cc|=s,e.lanes=s,e.memoizedState=f}}function Ra(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(a!==null){if(r.callback=null,r=n,typeof a!=`function`)throw Error(i(191,a));a.call(r)}}}var za=new t.Component().refs;function Ba(e,t,r,i){t=e.memoizedState,r=r(i,t),r=r==null?t:n({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Va={isMounted:function(e){return(e=e._reactInternals)?xt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=jc(),i=Mc(e),a=Pa(r,i);a.payload=t,n!=null&&(a.callback=n),Fa(e,a),Nc(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=jc(),i=Mc(e),a=Pa(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),Fa(e,a),Nc(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=jc(),r=Mc(e),i=Pa(n,r);i.tag=2,t!=null&&(i.callback=t),Fa(e,i),Nc(e,r,n)}};function Ha(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!zr(n,r)||!zr(i,a):!0}function Ua(e,t,n){var r=!1,i=Li,a=t.contextType;return typeof a==`object`&&a?a=Aa(a):(i=Vi(t)?zi:V.current,r=t.contextTypes,a=(r=r!=null)?Bi(e,i):Li),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Va,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Wa(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Va.enqueueReplaceState(t,t.state,null)}function Ga(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=za,Ma(e);var a=t.contextType;typeof a==`object`&&a?i.context=Aa(a):(a=Vi(t)?zi:V.current,i.context=Bi(e,a)),La(e,n,i,r),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(Ba(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&Va.enqueueReplaceState(i,i.state,null),La(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4)}var Ka=Array.isArray;function qa(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var a=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===a?t.ref:(t=function(e){var t=r.refs;t===za&&(t=r.refs={}),e===null?delete t[a]:t[a]=e},t._stringRef=a,t)}if(typeof e!=`string`)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Ja(e,t){if(e.type!==`textarea`)throw Error(i(31,Object.prototype.toString.call(t)===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:t))}function Ya(e){function t(t,n){if(e){var r=t.lastEffect;r===null?t.firstEffect=t.lastEffect=n:(r.nextEffect=n,t.lastEffect=n),n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=fl(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags=2,n):(r=r.index,r<n?(t.flags=2,n):r)):n}function s(t){return e&&t.alternate===null&&(t.flags=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=gl(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){return t!==null&&t.elementType===n.type?(r=a(t,n.props),r.ref=qa(e,t,n),r.return=e,r):(r=pl(n.type,n.key,n.props,null,e.mode,r),r.ref=qa(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=_l(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ml(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`||typeof t==`number`)return t=gl(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case T:return n=pl(t.type,t.key,t.props,null,e.mode,n),n.ref=qa(e,null,t),n.return=e,n;case ee:return t=_l(t,e.mode,n),t.return=e,t}if(Ka(t)||pe(t))return t=ml(t,e.mode,n,null),t.return=e,t;Ja(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case T:return n.key===i?n.type===te?d(e,t,n.props.children,r,i):l(e,t,n,r):null;case ee:return n.key===i?u(e,t,n,r):null}if(Ka(n)||pe(n))return i===null?d(e,t,n,r,null):null;Ja(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case T:return e=e.get(r.key===null?n:r.key)||null,r.type===te?d(t,e,r.props.children,i,r.key):l(t,e,r,i);case ee:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i)}if(Ka(r)||pe(r))return e=e.get(n)||null,d(t,e,r,i,null);Ja(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return l}for(d=r(i,d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),l}function g(a,s,c,l){var u=pe(c);if(typeof u!=`function`)throw Error(i(150));if(c=u.call(c),c==null)throw Error(i(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return u}for(h=r(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),u}return function(e,r,o,c){var l=typeof o==`object`&&!!o&&o.type===te&&o.key===null;l&&(o=o.props.children);var u=typeof o==`object`&&!!o;if(u)switch(o.$$typeof){case T:a:{for(u=o.key,l=r;l!==null;){if(l.key===u){switch(l.tag){case 7:if(o.type===te){n(e,l.sibling),r=a(l,o.props.children),r.return=e,e=r;break a}break;default:if(l.elementType===o.type){n(e,l.sibling),r=a(l,o.props),r.ref=qa(e,l,o),r.return=e,e=r;break a}}n(e,l);break}else t(e,l);l=l.sibling}o.type===te?(r=ml(o.props.children,e.mode,c,o.key),r.return=e,e=r):(c=pl(o.type,o.key,o.props,null,e.mode,c),c.ref=qa(e,r,o),c.return=e,e=c)}return s(e);case ee:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),r=a(r,o.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=_l(o,e.mode,c),r.return=e,e=r}return s(e)}if(typeof o==`string`||typeof o==`number`)return o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,o),r.return=e,e=r):(n(e,r),r=gl(o,e.mode,c),r.return=e,e=r),s(e);if(Ka(o))return h(e,r,o,c);if(pe(o))return g(e,r,o,c);if(u&&Ja(e,o),o===void 0&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(i(152,ye(e.type)||`Component`))}return n(e,r)}}var Xa=Ya(!0),Za=Ya(!1),Qa={},$a=Ii(Qa),eo=Ii(Qa),to=Ii(Qa);function no(e){if(e===Qa)throw Error(i(174));return e}function ro(e,t){switch(B(to,t),B(eo,e),B($a,Qa),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Re(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Re(t,e)}z($a),B($a,t)}function io(){z($a),z(eo),z(to)}function ao(e){no(to.current);var t=no($a.current),n=Re(t,e.type);t!==n&&(B(eo,e),B($a,n))}function oo(e){eo.current===e&&(z($a),z(eo))}var H=Ii(0);function so(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&64)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var co=null,lo=null,uo=!1;function fo(e,t){var n=ll(5,null,null,0);n.elementType=`DELETED`,n.type=`DELETED`,n.stateNode=t,n.return=e,n.flags=8,e.lastEffect===null?e.firstEffect=e.lastEffect=n:(e.lastEffect.nextEffect=n,e.lastEffect=n)}function po(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t===null?!1:(e.stateNode=t,!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,!0);case 13:return!1;default:return!1}}function mo(e){if(uo){var t=lo;if(t){var n=t;if(!po(e,t)){if(t=bi(n.nextSibling),!t||!po(e,t)){e.flags=e.flags&-1025|2,uo=!1,co=e;return}fo(co,n)}co=e,lo=bi(t.firstChild)}else e.flags=e.flags&-1025|2,uo=!1,co=e}}function ho(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;co=e}function go(e){if(e!==co)return!1;if(!uo)return ho(e),uo=!0,!1;var t=e.type;if(e.tag!==5||t!==`head`&&t!==`body`&&!gi(t,e.memoizedProps))for(t=lo;t;)fo(e,t),t=bi(t.nextSibling);if(ho(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){lo=bi(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}lo=null}}else lo=co?bi(e.stateNode.nextSibling):null;return!0}function _o(){lo=co=null,uo=!1}var vo=[];function yo(){for(var e=0;e<vo.length;e++)vo[e]._workInProgressVersionPrimary=null;vo.length=0}var bo=w.ReactCurrentDispatcher,xo=w.ReactCurrentBatchConfig,So=0,U=null,Co=null,wo=null,To=!1,Eo=!1;function Do(){throw Error(i(321))}function Oo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Lr(e[n],t[n]))return!1;return!0}function ko(e,t,n,r,a,o){if(So=o,U=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,bo.current=e===null||e.memoizedState===null?ts:ns,e=n(r,a),Eo){o=0;do{if(Eo=!1,!(25>o))throw Error(i(301));o+=1,wo=Co=null,t.updateQueue=null,bo.current=rs,e=n(r,a)}while(Eo)}if(bo.current=es,t=Co!==null&&Co.next!==null,So=0,wo=Co=U=null,To=!1,t)throw Error(i(300));return e}function Ao(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wo===null?U.memoizedState=wo=e:wo=wo.next=e,wo}function jo(){if(Co===null){var e=U.alternate;e=e===null?null:e.memoizedState}else e=Co.next;var t=wo===null?U.memoizedState:wo.next;if(t!==null)wo=t,Co=e;else{if(e===null)throw Error(i(310));Co=e,e={memoizedState:Co.memoizedState,baseState:Co.baseState,baseQueue:Co.baseQueue,queue:Co.queue,next:null},wo===null?U.memoizedState=wo=e:wo=wo.next=e}return wo}function Mo(e,t){return typeof t==`function`?t(e):t}function No(e){var t=jo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=Co,a=r.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}r.baseQueue=a=o,n.pending=null}if(a!==null){a=a.next,r=r.baseState;var c=s=o=null,l=a;do{var u=l.lane;if((So&u)===u)c!==null&&(c=c.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var d={lane:u,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};c===null?(s=c=d,o=r):c=c.next=d,U.lanes|=u,cc|=u}l=l.next}while(l!==null&&l!==a);c===null?o=r:c.next=s,Lr(r,t.memoizedState)||(as=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=c,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Po(e){var t=jo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Lr(o,t.memoizedState)||(as=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Fo(e,t,n){var r=t._getVersion;r=r(t._source);var a=t._workInProgressVersionPrimary;if(a===null?(e=e.mutableReadLanes,(e=(So&e)===e)&&(t._workInProgressVersionPrimary=r,vo.push(t))):e=a===r,e)return n(t._source);throw vo.push(t),Error(i(350))}function Io(e,t,n,r){var a=tc;if(a===null)throw Error(i(349));var o=t._getVersion,s=o(t._source),c=bo.current,l=c.useState(function(){return Fo(a,t,n)}),u=l[1],d=l[0];l=wo;var f=e.memoizedState,p=f.refs,m=p.getSnapshot,h=f.source;f=f.subscribe;var g=U;return e.memoizedState={refs:p,source:t,subscribe:r},c.useEffect(function(){p.getSnapshot=n,p.setSnapshot=u;var e=o(t._source);if(!Lr(s,e)){e=n(t._source),Lr(d,e)||(u(e),e=Mc(g),a.mutableReadLanes|=e&a.pendingLanes),e=a.mutableReadLanes,a.entangledLanes|=e;for(var r=a.entanglements,i=e;0<i;){var c=31-bn(i),l=1<<c;r[c]|=e,i&=~l}}},[n,t,r]),c.useEffect(function(){return r(t._source,function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=Mc(g);a.mutableReadLanes|=r&a.pendingLanes}catch(e){n(function(){throw e})}})},[t,r]),Lr(m,n)&&Lr(h,t)&&Lr(f,r)||(e={pending:null,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:d},e.dispatch=u=$o.bind(null,U,e),l.queue=e,l.baseQueue=null,d=Fo(a,t,n),l.memoizedState=l.baseState=d),d}function Lo(e,t,n){return Io(jo(),e,t,n)}function Ro(e){var t=Ao();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Mo,lastRenderedState:e},e=e.dispatch=$o.bind(null,U,e),[t.memoizedState,e]}function zo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=U.updateQueue,t===null?(t={lastEffect:null},U.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Bo(e){var t=Ao();return e={current:e},t.memoizedState=e}function Vo(){return jo().memoizedState}function Ho(e,t,n,r){var i=Ao();U.flags|=e,i.memoizedState=zo(1|t,n,void 0,r===void 0?null:r)}function Uo(e,t,n,r){var i=jo();r=r===void 0?null:r;var a=void 0;if(Co!==null){var o=Co.memoizedState;if(a=o.destroy,r!==null&&Oo(r,o.deps)){zo(t,n,a,r);return}}U.flags|=e,i.memoizedState=zo(1|t,n,a,r)}function Wo(e,t){return Ho(516,4,e,t)}function Go(e,t){return Uo(516,4,e,t)}function Ko(e,t){return Uo(4,2,e,t)}function qo(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Jo(e,t,n){return n=n==null?null:n.concat([e]),Uo(4,2,qo.bind(null,t,e),n)}function Yo(){}function Xo(e,t){var n=jo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Oo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Zo(e,t){var n=jo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Oo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qo(e,t){var n=ma();ga(98>n?98:n,function(){e(!0)}),ga(97<n?97:n,function(){var n=xo.transition;xo.transition=1;try{e(!1),t()}finally{xo.transition=n}})}function $o(e,t,n){var r=jc(),i=Mc(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(o===null?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===U||o!==null&&o===U)Eo=To=!0;else{if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,c=o(s,n);if(a.eagerReducer=o,a.eagerState=c,Lr(c,s))return}catch{}Nc(e,i,r)}}var es={readContext:Aa,useCallback:Do,useContext:Do,useEffect:Do,useImperativeHandle:Do,useLayoutEffect:Do,useMemo:Do,useReducer:Do,useRef:Do,useState:Do,useDebugValue:Do,useDeferredValue:Do,useTransition:Do,useMutableSource:Do,useOpaqueIdentifier:Do,unstable_isNewReconciler:!1},ts={readContext:Aa,useCallback:function(e,t){return Ao().memoizedState=[e,t===void 0?null:t],e},useContext:Aa,useEffect:Wo,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),Ho(4,2,qo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ho(4,2,e,t)},useMemo:function(e,t){var n=Ao();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ao();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=$o.bind(null,U,e),[r.memoizedState,e]},useRef:Bo,useState:Ro,useDebugValue:Yo,useDeferredValue:function(e){var t=Ro(e),n=t[0],r=t[1];return Wo(function(){var t=xo.transition;xo.transition=1;try{r(e)}finally{xo.transition=t}},[e]),n},useTransition:function(){var e=Ro(!1),t=e[0];return e=Qo.bind(null,e[1]),Bo(e),[e,t]},useMutableSource:function(e,t,n){var r=Ao();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Io(r,e,t,n)},useOpaqueIdentifier:function(){if(uo){var e=!1,t=Ci(function(){throw e||(e=!0,n(`r:`+(Si++).toString(36))),Error(i(355))}),n=Ro(t)[1];return!(U.mode&2)&&(U.flags|=516,zo(5,function(){n(`r:`+(Si++).toString(36))},void 0,null)),t}return t=`r:`+(Si++).toString(36),Ro(t),t},unstable_isNewReconciler:!1},ns={readContext:Aa,useCallback:Xo,useContext:Aa,useEffect:Go,useImperativeHandle:Jo,useLayoutEffect:Ko,useMemo:Zo,useReducer:No,useRef:Vo,useState:function(){return No(Mo)},useDebugValue:Yo,useDeferredValue:function(e){var t=No(Mo),n=t[0],r=t[1];return Go(function(){var t=xo.transition;xo.transition=1;try{r(e)}finally{xo.transition=t}},[e]),n},useTransition:function(){var e=No(Mo)[0];return[Vo().current,e]},useMutableSource:Lo,useOpaqueIdentifier:function(){return No(Mo)[0]},unstable_isNewReconciler:!1},rs={readContext:Aa,useCallback:Xo,useContext:Aa,useEffect:Go,useImperativeHandle:Jo,useLayoutEffect:Ko,useMemo:Zo,useReducer:Po,useRef:Vo,useState:function(){return Po(Mo)},useDebugValue:Yo,useDeferredValue:function(e){var t=Po(Mo),n=t[0],r=t[1];return Go(function(){var t=xo.transition;xo.transition=1;try{r(e)}finally{xo.transition=t}},[e]),n},useTransition:function(){var e=Po(Mo)[0];return[Vo().current,e]},useMutableSource:Lo,useOpaqueIdentifier:function(){return Po(Mo)[0]},unstable_isNewReconciler:!1},is=w.ReactCurrentOwner,as=!1;function ss(e,t,n,r){t.child=e===null?Za(t,null,n,r):Xa(t,e.child,n,r)}function cs(e,t,n,r,i){n=n.render;var a=t.ref;return ka(t,i),r=ko(e,t,n,r,a,i),e!==null&&!as?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Ts(e,t,i)):(t.flags|=1,ss(e,t,r,i),t.child)}function ls(e,t,n,r,i,a){if(e===null){var o=n.type;return typeof o==`function`&&!ul(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,us(e,t,o,r,i,a)):(e=pl(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}return o=e.child,(i&a)===0&&(i=o.memoizedProps,n=n.compare,n=n===null?zr:n,n(i,r)&&e.ref===t.ref)?Ts(e,t,a):(t.flags|=1,e=fl(o,r),e.ref=t.ref,e.return=t,t.child=e)}function us(e,t,n,r,i,a){if(e!==null&&zr(e.memoizedProps,r)&&e.ref===t.ref)if(as=!1,(a&i)!==0)e.flags&16384&&(as=!0);else return t.lanes=e.lanes,Ts(e,t,a);return ps(e,t,n,r,a)}function ds(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`||r.mode===`unstable-defer-without-hiding`)if(!(t.mode&4))t.memoizedState={baseLanes:0},Hc(t,n);else if(n&1073741824)t.memoizedState={baseLanes:0},Hc(t,a===null?n:a.baseLanes);else return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Hc(t,e),null;else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),Hc(t,r);return ss(e,t,i,n),t.child}function fs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function ps(e,t,n,r,i){var a=Vi(n)?zi:V.current;return a=Bi(t,a),ka(t,i),n=ko(e,t,n,r,a,i),e!==null&&!as?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,Ts(e,t,i)):(t.flags|=1,ss(e,t,n,i),t.child)}function ms(e,t,n,r,i){if(Vi(n)){var a=!0;Gi(t)}else a=!1;if(ka(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Ua(t,n,r),Ga(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=Aa(l):(l=Vi(n)?zi:V.current,l=Bi(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&Wa(t,o,r,l),ja=!1;var f=t.memoizedState;o.state=f,La(t,r,o,i),c=t.memoizedState,s!==r||f!==c||Ri.current||ja?(typeof u==`function`&&(Ba(t,n,u,r),c=t.memoizedState),(s=ja||Ha(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4)):(typeof o.componentDidMount==`function`&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4),r=!1)}else{o=t.stateNode,Na(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:xa(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=Aa(c):(c=Vi(n)?zi:V.current,c=Bi(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&Wa(t,o,r,c),ja=!1,f=t.memoizedState,o.state=f,La(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||Ri.current||ja?(typeof p==`function`&&(Ba(t,n,p,r),m=t.memoizedState),(l=ja||Ha(t,n,l,r,f,m,c))?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=256)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return hs(e,t,n,r,a,i)}function hs(e,t,n,r,i,a){fs(e,t);var o=(t.flags&64)!=0;if(!r&&!o)return i&&Ki(t,n,!1),Ts(e,t,a);r=t.stateNode,is.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Xa(t,e.child,null,a),t.child=Xa(t,null,s,a)):ss(e,t,s,a),t.memoizedState=r.state,i&&Ki(t,n,!0),t.child}function gs(e){var t=e.stateNode;t.pendingContext?Ui(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ui(e,t.context,!1),ro(e,t.containerInfo)}var _s={dehydrated:null,retryLane:0};function vs(e,t,n){var r=t.pendingProps,i=H.current,a=!1,o;return(o=(t.flags&64)!=0)||(o=e!==null&&e.memoizedState===null?!1:(i&2)!=0),o?(a=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||!0===r.unstable_avoidThisFallback||(i|=1),B(H,i&1),e===null?(r.fallback!==void 0&&mo(t),e=r.children,i=r.fallback,a?(e=ys(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=_s,e):typeof r.unstable_expectedLoadTime==`number`?(e=ys(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=_s,t.lanes=33554432,e):(n=hl({mode:`visible`,children:e},t.mode,n,null),n.return=t,t.child=n)):(e.memoizedState,a?(r=xs(e,t,r.children,r.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=i===null?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=_s,r):(n=bs(e,t,r.children,n),t.memoizedState=null,n))}function ys(e,t,n,r){var i=e.mode,a=e.child;return t={mode:`hidden`,children:t},!(i&2)&&a!==null?(a.childLanes=0,a.pendingProps=t):a=hl(t,i,0,null),n=ml(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function bs(e,t,n,r){var i=e.child;return e=i.sibling,n=fl(i,{mode:`visible`,children:n}),!(t.mode&2)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function xs(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var s={mode:`hidden`,children:n};return!(a&2)&&t.child!==o?(n=t.child,n.childLanes=0,n.pendingProps=s,o=n.lastEffect,o===null?t.firstEffect=t.lastEffect=null:(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null)):n=fl(o,s),e===null?(r=ml(r,a,i,null),r.flags|=2):r=fl(e,r),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Ss(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Oa(e.return,t)}function Cs(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function ws(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(ss(e,t,r.children,n),r=H.current,r&2)r=r&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ss(e,n);else if(e.tag===19)Ss(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(B(H,r),!(t.mode&2))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&so(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Cs(t,!1,i,n,a,t.lastEffect);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&so(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Cs(t,!0,n,null,a,t.lastEffect);break;case`together`:Cs(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ts(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),cc|=t.lanes,(n&t.childLanes)!==0){if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=fl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=fl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var Es=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ds=function(e,t,r,i){var a=e.memoizedProps;if(a!==i){e=t.stateNode,no($a.current);var s=null;switch(r){case`input`:a=M(e,a),i=M(e,i),s=[];break;case`option`:a=Ae(e,a),i=Ae(e,i),s=[];break;case`select`:a=n({},a,{value:void 0}),i=n({},i,{value:void 0}),s=[];break;case`textarea`:a=Me(e,a),i=Me(e,i),s=[];break;default:typeof a.onClick!=`function`&&typeof i.onClick==`function`&&(e.onclick=fi)}qe(r,i);var c;for(d in r=null,a)if(!i.hasOwnProperty(d)&&a.hasOwnProperty(d)&&a[d]!=null)if(d===`style`){var l=a[d];for(c in l)l.hasOwnProperty(c)&&(r||={},r[c]=``)}else d!==`dangerouslySetInnerHTML`&&d!==`children`&&d!==`suppressContentEditableWarning`&&d!==`suppressHydrationWarning`&&d!==`autoFocus`&&(o.hasOwnProperty(d)?s||=[]:(s||=[]).push(d,null));for(d in i){var u=i[d];if(l=a?.[d],i.hasOwnProperty(d)&&u!==l&&(u!=null||l!=null))if(d===`style`)if(l){for(c in l)!l.hasOwnProperty(c)||u&&u.hasOwnProperty(c)||(r||={},r[c]=``);for(c in u)u.hasOwnProperty(c)&&l[c]!==u[c]&&(r||={},r[c]=u[c])}else r||(s||=[],s.push(d,r)),r=u;else d===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,l=l?l.__html:void 0,u!=null&&l!==u&&(s||=[]).push(d,u)):d===`children`?typeof u!=`string`&&typeof u!=`number`||(s||=[]).push(d,``+u):d!==`suppressContentEditableWarning`&&d!==`suppressHydrationWarning`&&(o.hasOwnProperty(d)?(u!=null&&d===`onScroll`&&R(`scroll`,e),s||l===u||(s=[])):typeof u==`object`&&u&&u.$$typeof===ce?u.toString():(s||=[]).push(d,u))}r&&(s||=[]).push(`style`,r);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Os=function(e,t,n,r){n!==r&&(t.flags|=4)};function ks(e,t){if(!uo)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function As(e,t,r){var a=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Vi(t.type)&&Hi(),null;case 3:return io(),z(Ri),z(V),yo(),a=t.stateNode,a.pendingContext&&=(a.context=a.pendingContext,null),(e===null||e.child===null)&&(go(t)?t.flags|=4:a.hydrate||(t.flags|=256)),null;case 5:oo(t);var s=no(to.current);if(r=t.type,e!==null&&t.stateNode!=null)Ds(e,t,r,a,s),e.ref!==t.ref&&(t.flags|=128);else{if(!a){if(t.stateNode===null)throw Error(i(166));return null}if(e=no($a.current),go(t)){a=t.stateNode,r=t.type;var c=t.memoizedProps;switch(a[Ti]=t,a[Ei]=c,r){case`dialog`:R(`cancel`,a),R(`close`,a);break;case`iframe`:case`object`:case`embed`:R(`load`,a);break;case`video`:case`audio`:for(e=0;e<$r.length;e++)R($r[e],a);break;case`source`:R(`error`,a);break;case`img`:case`image`:case`link`:R(`error`,a),R(`load`,a);break;case`details`:R(`toggle`,a);break;case`input`:Te(a,c),R(`invalid`,a);break;case`select`:a._wrapperState={wasMultiple:!!c.multiple},R(`invalid`,a);break;case`textarea`:Ne(a,c),R(`invalid`,a)}for(var l in qe(r,c),e=null,c)c.hasOwnProperty(l)&&(s=c[l],l===`children`?typeof s==`string`?a.textContent!==s&&(e=[`children`,s]):typeof s==`number`&&a.textContent!==``+s&&(e=[`children`,``+s]):o.hasOwnProperty(l)&&s!=null&&l===`onScroll`&&R(`scroll`,a));switch(r){case`input`:Se(a),De(a,c,!0);break;case`textarea`:Se(a),Fe(a);break;case`select`:case`option`:break;default:typeof c.onClick==`function`&&(a.onclick=fi)}a=e,t.updateQueue=a,a!==null&&(t.flags|=4)}else{switch(l=s.nodeType===9?s:s.ownerDocument,e===Ie.html&&(e=Le(r)),e===Ie.html?r===`script`?(e=l.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof a.is==`string`?e=l.createElement(r,{is:a.is}):(e=l.createElement(r),r===`select`&&(l=e,a.multiple?l.multiple=!0:a.size&&(l.size=a.size))):e=l.createElementNS(e,r),e[Ti]=t,e[Ei]=a,Es(e,t,!1,!1),t.stateNode=e,l=Je(r,a),r){case`dialog`:R(`cancel`,e),R(`close`,e),s=a;break;case`iframe`:case`object`:case`embed`:R(`load`,e),s=a;break;case`video`:case`audio`:for(s=0;s<$r.length;s++)R($r[s],e);s=a;break;case`source`:R(`error`,e),s=a;break;case`img`:case`image`:case`link`:R(`error`,e),R(`load`,e),s=a;break;case`details`:R(`toggle`,e),s=a;break;case`input`:Te(e,a),s=M(e,a),R(`invalid`,e);break;case`option`:s=Ae(e,a);break;case`select`:e._wrapperState={wasMultiple:!!a.multiple},s=n({},a,{value:void 0}),R(`invalid`,e);break;case`textarea`:Ne(e,a),s=Me(e,a),R(`invalid`,e);break;default:s=a}qe(r,s);var u=s;for(c in u)if(u.hasOwnProperty(c)){var d=u[c];c===`style`?Ge(e,d):c===`dangerouslySetInnerHTML`?(d=d?d.__html:void 0,d!=null&&Be(e,d)):c===`children`?typeof d==`string`?(r!==`textarea`||d!==``)&&Ve(e,d):typeof d==`number`&&Ve(e,``+d):c!==`suppressContentEditableWarning`&&c!==`suppressHydrationWarning`&&c!==`autoFocus`&&(o.hasOwnProperty(c)?d!=null&&c===`onScroll`&&R(`scroll`,e):d!=null&&C(e,c,d,l))}switch(r){case`input`:Se(e),De(e,a,!1);break;case`textarea`:Se(e),Fe(e);break;case`option`:a.value!=null&&e.setAttribute(`value`,``+be(a.value));break;case`select`:e.multiple=!!a.multiple,c=a.value,c==null?a.defaultValue!=null&&je(e,!!a.multiple,a.defaultValue,!0):je(e,!!a.multiple,c,!1);break;default:typeof s.onClick==`function`&&(e.onclick=fi)}hi(r,a)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)Os(e,t,e.memoizedProps,a);else{if(typeof a!=`string`&&t.stateNode===null)throw Error(i(166));r=no(to.current),no($a.current),go(t)?(a=t.stateNode,r=t.memoizedProps,a[Ti]=t,a.nodeValue!==r&&(t.flags|=4)):(a=(r.nodeType===9?r:r.ownerDocument).createTextNode(a),a[Ti]=t,t.stateNode=a)}return null;case 13:return z(H),a=t.memoizedState,t.flags&64?(t.lanes=r,t):(a=a!==null,r=!1,e===null?t.memoizedProps.fallback!==void 0&&go(t):r=e.memoizedState!==null,a&&!r&&t.mode&2&&(e===null&&!0!==t.memoizedProps.unstable_avoidThisFallback||H.current&1?ac===0&&(ac=3):((ac===0||ac===3)&&(ac=4),tc===null||!(cc&134217727)&&!(lc&134217727)||Lc(tc,nc))),(a||r)&&(t.flags|=4),null);case 4:return io(),e===null&&ii(t.stateNode.containerInfo),null;case 10:return Da(t),null;case 17:return Vi(t.type)&&Hi(),null;case 19:if(z(H),a=t.memoizedState,a===null)return null;if(c=(t.flags&64)!=0,l=a.rendering,l===null)if(c)ks(a,!1);else{if(ac!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(l=so(e),l!==null){for(t.flags|=64,ks(a,!1),c=l.updateQueue,c!==null&&(t.updateQueue=c,t.flags|=4),a.lastEffect===null&&(t.firstEffect=null),t.lastEffect=a.lastEffect,a=r,r=t.child;r!==null;)c=r,e=a,c.flags&=2,c.nextEffect=null,c.firstEffect=null,c.lastEffect=null,l=c.alternate,l===null?(c.childLanes=0,c.lanes=e,c.child=null,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=l.childLanes,c.lanes=l.lanes,c.child=l.child,c.memoizedProps=l.memoizedProps,c.memoizedState=l.memoizedState,c.updateQueue=l.updateQueue,c.type=l.type,e=l.dependencies,c.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return B(H,H.current&1|2),t.child}e=e.sibling}a.tail!==null&&pa()>pc&&(t.flags|=64,c=!0,ks(a,!1),t.lanes=33554432)}else{if(!c)if(e=so(l),e!==null){if(t.flags|=64,c=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),ks(a,!0),a.tail===null&&a.tailMode===`hidden`&&!l.alternate&&!uo)return t=t.lastEffect=a.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*pa()-a.renderingStartTime>pc&&r!==1073741824&&(t.flags|=64,c=!0,ks(a,!1),t.lanes=33554432);a.isBackwards?(l.sibling=t.child,t.child=l):(r=a.last,r===null?t.child=l:r.sibling=l,a.last=l)}return a.tail===null?null:(r=a.tail,a.rendering=r,a.tail=r.sibling,a.lastEffect=t.lastEffect,a.renderingStartTime=pa(),r.sibling=null,t=H.current,B(H,c?t&1|2:t&1),r);case 23:case 24:return Uc(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&a.mode!==`unstable-defer-without-hiding`&&(t.flags|=4),null}throw Error(i(156,t.tag))}function js(e){switch(e.tag){case 1:Vi(e.type)&&Hi();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(io(),z(Ri),z(V),yo(),t=e.flags,t&64)throw Error(i(285));return e.flags=t&-4097|64,e;case 5:return oo(e),null;case 13:return z(H),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return z(H),null;case 4:return io(),null;case 10:return Da(e),null;case 23:case 24:return Uc(),null;default:return null}}function Ms(e,t){try{var n=``,r=t;do n+=ve(r),r=r.return;while(r);var i=n}catch(e){i=`
|
|
95
|
+
Error generating stack: `+e.message+`
|
|
96
|
+
`+e.stack}return{value:e,source:t,stack:i}}function Ns(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Ps=typeof WeakMap==`function`?WeakMap:Map;function Fs(e,t,n){n=Pa(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){hc||(hc=!0,gc=r),Ns(e,t)},n}function Is(e,t,n){n=Pa(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return Ns(e,t),r(i)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){typeof r!=`function`&&(_c===null?_c=new Set([this]):_c.add(this),Ns(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}var Ls=typeof WeakSet==`function`?WeakSet:Set;function Rs(e){var t=e.ref;if(t!==null)if(typeof t==`function`)try{t(null)}catch(t){il(e,t)}else t.current=null}function zs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:xa(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&yi(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(i(163))}function Bs(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t===null?null:t.lastEffect,t!==null){e=t=t.next;do{if((e.tag&3)==3){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t===null?null:t.lastEffect,t!==null){e=t=t.next;do{var a=e;r=a.next,a=a.tag,a&4&&a&1&&(tl(n,e),el(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:xa(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Ra(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}Ra(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&hi(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&Yt(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(i(163))}function Vs(e,t){for(var n=e;;){if(n.tag===5){var r=n.stateNode;if(t)r=r.style,typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`;else{r=n.stateNode;var i=n.memoizedProps.style;i=i!=null&&i.hasOwnProperty(`display`)?i.display:null,r.style.display=We(`display`,i)}}else if(n.tag===6)n.stateNode.nodeValue=t?``:n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function Hs(e,t){if(Ji&&typeof Ji.onCommitFiberUnmount==`function`)try{Ji.onCommitFiberUnmount(qi,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,i!==void 0)if(r&4)tl(t,n);else{r=t;try{i()}catch(e){il(r,e)}}n=n.next}while(n!==e)}break;case 1:if(Rs(t),e=t.stateNode,typeof e.componentWillUnmount==`function`)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){il(t,e)}break;case 5:Rs(t);break;case 4:Js(e,t)}}function Us(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function Ws(e){return e.tag===5||e.tag===3||e.tag===4}function Gs(e){a:{for(var t=e.return;t!==null;){if(Ws(t))break a;t=t.return}throw Error(i(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(i(161))}n.flags&16&&(Ve(t,``),n.flags&=-17);a:b:for(n=e;;){for(;n.sibling===null;){if(n.return===null||Ws(n.return)){n=null;break a}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue b;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break a}}r?Ks(e,n,t):qs(e,n,t)}function Ks(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=fi));else if(r!==4&&(e=e.child,e!==null))for(Ks(e,t,n),e=e.sibling;e!==null;)Ks(e,t,n),e=e.sibling}function qs(e,t,n){var r=e.tag,i=r===5||r===6;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(qs(e,t,n),e=e.sibling;e!==null;)qs(e,t,n),e=e.sibling}function Js(e,t){for(var n=t,r=!1,a,o;;){if(!r){r=n.return;a:for(;;){if(r===null)throw Error(i(160));switch(a=r.stateNode,r.tag){case 5:o=!1;break a;case 3:a=a.containerInfo,o=!0;break a;case 4:a=a.containerInfo,o=!0;break a}r=r.return}r=!0}if(n.tag===5||n.tag===6){a:for(var s=e,c=n,l=c;;)if(Hs(s,l),l.child!==null&&l.tag!==4)l.child.return=l,l=l.child;else{if(l===c)break a;for(;l.sibling===null;){if(l.return===null||l.return===c)break a;l=l.return}l.sibling.return=l.return,l=l.sibling}o?(s=a,c=n.stateNode,s.nodeType===8?s.parentNode.removeChild(c):s.removeChild(c)):a.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){a=n.stateNode.containerInfo,o=!0,n.child.return=n,n=n.child;continue}}else if(Hs(e,n),n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return,n.tag===4&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function Ys(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n===null?null:n.lastEffect,n!==null){var r=n=n.next;do(r.tag&3)==3&&(e=r.destroy,r.destroy=void 0,e!==void 0&&e()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){r=t.memoizedProps;var a=e===null?r:e.memoizedProps;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,o!==null){for(n[Ei]=r,e===`input`&&r.type===`radio`&&r.name!=null&&N(n,r),Je(e,a),t=Je(e,r),a=0;a<o.length;a+=2){var s=o[a],c=o[a+1];s===`style`?Ge(n,c):s===`dangerouslySetInnerHTML`?Be(n,c):s===`children`?Ve(n,c):C(n,s,c,t)}switch(e){case`input`:Ee(n,r);break;case`textarea`:Pe(n,r);break;case`select`:e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,o=r.value,o==null?e!==!!r.multiple&&(r.defaultValue==null?je(n,!!r.multiple,r.multiple?[]:``,!1):je(n,!!r.multiple,r.defaultValue,!0)):je(n,!!r.multiple,o,!1)}}}return;case 6:if(t.stateNode===null)throw Error(i(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,Yt(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(fc=pa(),Vs(t.child,!0)),Xs(t);return;case 19:Xs(t);return;case 17:return;case 23:case 24:Vs(t,t.memoizedState!==null);return}throw Error(i(163))}function Xs(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ls),t.forEach(function(t){var r=ol.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Zs(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var Qs=Math.ceil,$s=w.ReactCurrentDispatcher,ec=w.ReactCurrentOwner,W=0,tc=null,G=null,nc=0,rc=0,ic=Ii(0),ac=0,oc=null,sc=0,cc=0,lc=0,uc=0,dc=null,fc=0,pc=1/0;function mc(){pc=pa()+500}var K=null,hc=!1,gc=null,_c=null,vc=!1,yc=null,bc=90,xc=[],Sc=[],Cc=null,wc=0,Tc=null,Ec=-1,Dc=0,Oc=0,kc=null,Ac=!1;function jc(){return W&48?pa():Ec===-1?Ec=pa():Ec}function Mc(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return ma()===99?1:2;if(Dc===0&&(Dc=sc),ba.transition!==0){Oc!==0&&(Oc=dc===null?0:dc.pendingLanes),e=Dc;var t=4186112&~Oc;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=ma(),W&4&&e===98?e=gn(12,Dc):(e=fn(e),e=gn(e,Dc)),e}function Nc(e,t,n){if(50<wc)throw wc=0,Tc=null,Error(i(185));if(e=Pc(e,t),e===null)return null;yn(e,t,n),e===tc&&(lc|=t,ac===4&&Lc(e,nc));var r=ma();t===1?W&8&&!(W&48)?Rc(e):(Fc(e,n),W===0&&(mc(),va())):(!(W&4)||r!==98&&r!==99||(Cc===null?Cc=new Set([e]):Cc.add(e)),Fc(e,n)),dc=e}function Pc(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function Fc(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-bn(o),c=1<<s,l=a[s];if(l===-1){if((c&r)===0||(c&i)!==0){l=t,dn(c);var u=P;a[s]=10<=u?l+250:6<=u?l+5e3:-1}}else l<=t&&(e.expiredLanes|=c);o&=~c}if(r=mn(e,e===tc?nc:0),t=P,r===0)n!==null&&(n!==sa&&Zi(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==sa&&Zi(n)}t===15?(n=Rc.bind(null,e),la===null?(la=[n],ua=Xi(na,ya)):la.push(n),n=sa):t===14?n=_a(99,Rc.bind(null,e)):(n=pn(t),n=_a(n,Ic.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function Ic(e){if(Ec=-1,Oc=Dc=0,W&48)throw Error(i(327));var t=e.callbackNode;if($c()&&e.callbackNode!==t)return null;var n=mn(e,e===tc?nc:0);if(n===0)return null;var r=n,a=W;W|=16;var o=Kc();(tc!==e||nc!==r)&&(mc(),Wc(e,r));do try{Jc();break}catch(t){Gc(e,t)}while(1);if(Ea(),$s.current=o,W=a,G===null?(tc=null,nc=0,r=ac):r=0,(sc&lc)!==0)Wc(e,0);else if(r!==0){if(r===2&&(W|=64,e.hydrate&&(e.hydrate=!1,yi(e.containerInfo)),n=hn(e),n!==0&&(r=q(e,n))),r===1)throw t=oc,Wc(e,0),Lc(e,n),Fc(e,pa()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(i(345));case 2:Zc(e);break;case 3:if(Lc(e,n),(n&62914560)===n&&(r=fc+500-pa(),10<r)){if(mn(e,0)!==0)break;if(a=e.suspendedLanes,(a&n)!==n){jc(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=_i(Zc.bind(null,e),r);break}Zc(e);break;case 4:if(Lc(e,n),(n&4186112)===n)break;for(r=e.eventTimes,a=-1;0<n;){var s=31-bn(n);o=1<<s,s=r[s],s>a&&(a=s),n&=~o}if(n=a,n=pa()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Qs(n/1960))-n,10<n){e.timeoutHandle=_i(Zc.bind(null,e),n);break}Zc(e);break;case 5:Zc(e);break;default:throw Error(i(329))}}return Fc(e,pa()),e.callbackNode===t?Ic.bind(null,e):null}function Lc(e,t){for(t&=~uc,t&=~lc,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-bn(t),r=1<<n;e[n]=-1,t&=~r}}function Rc(e){if(W&48)throw Error(i(327));if($c(),e===tc&&(e.expiredLanes&nc)!==0){var t=nc,n=q(e,t);(sc&lc)!==0&&(t=mn(e,t),n=q(e,t))}else t=mn(e,0),n=q(e,t);if(e.tag!==0&&n===2&&(W|=64,e.hydrate&&(e.hydrate=!1,yi(e.containerInfo)),t=hn(e),t!==0&&(n=q(e,t))),n===1)throw n=oc,Wc(e,0),Lc(e,t),Fc(e,pa()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Zc(e),Fc(e,pa()),null}function zc(){if(Cc!==null){var e=Cc;Cc=null,e.forEach(function(e){e.expiredLanes|=24&e.pendingLanes,Fc(e,pa())})}va()}function Bc(e,t){var n=W;W|=1;try{return e(t)}finally{W=n,W===0&&(mc(),va())}}function Vc(e,t){var n=W;W&=-2,W|=8;try{return e(t)}finally{W=n,W===0&&(mc(),va())}}function Hc(e,t){B(ic,rc),rc|=t,sc|=t}function Uc(){rc=ic.current,z(ic)}function Wc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,vi(n)),G!==null)for(n=G.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&Hi();break;case 3:io(),z(Ri),z(V),yo();break;case 5:oo(r);break;case 4:io();break;case 13:z(H);break;case 19:z(H);break;case 10:Da(r);break;case 23:case 24:Uc()}n=n.return}tc=e,G=fl(e.current,null),nc=rc=sc=t,ac=0,oc=null,uc=lc=cc=0}function Gc(e,t){do{var n=G;try{if(Ea(),bo.current=es,To){for(var r=U.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}To=!1}if(So=0,wo=Co=U=null,Eo=!1,ec.current=null,n===null||n.return===null){ac=1,oc=t,G=null;break}a:{var a=e,o=n.return,s=n,c=t;if(t=nc,s.flags|=2048,s.firstEffect=s.lastEffect=null,typeof c==`object`&&c&&typeof c.then==`function`){var l=c;if(!(s.mode&2)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=(H.current&1)!=0,f=o;do{var p;if(p=f.tag===13){var m=f.memoizedState;if(m!==null)p=m.dehydrated!==null;else{var h=f.memoizedProps;p=h.fallback===void 0?!1:!0===h.unstable_avoidThisFallback?!d:!0}}if(p){var g=f.updateQueue;if(g===null){var _=new Set;_.add(l),f.updateQueue=_}else g.add(l);if(!(f.mode&2)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,s.tag===1)if(s.alternate===null)s.tag=17;else{var v=Pa(-1,1);v.tag=2,Fa(s,v)}s.lanes|=1;break a}c=void 0,s=t;var y=a.pingCache;if(y===null?(y=a.pingCache=new Ps,c=new Set,y.set(l,c)):(c=y.get(l),c===void 0&&(c=new Set,y.set(l,c))),!c.has(s)){c.add(s);var b=al.bind(null,a,l,s);l.then(b,b)}f.flags|=4096,f.lanes=t;break a}f=f.return}while(f!==null);c=Error((ye(s.type)||`A React component`)+` suspended while rendering, but no fallback UI was specified.
|
|
97
|
+
|
|
98
|
+
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}ac!==5&&(ac=2),c=Ms(c,s),f=o;do{switch(f.tag){case 3:a=c,f.flags|=4096,t&=-t,f.lanes|=t;var x=Fs(f,a,t);Ia(f,x);break a;case 1:a=c;var S=f.type,C=f.stateNode;if(!(f.flags&64)&&(typeof S.getDerivedStateFromError==`function`||C!==null&&typeof C.componentDidCatch==`function`&&(_c===null||!_c.has(C)))){f.flags|=4096,t&=-t,f.lanes|=t;var w=Is(f,a,t);Ia(f,w);break a}}f=f.return}while(f!==null)}Xc(n)}catch(e){t=e,G===n&&n!==null&&(G=n=n.return);continue}break}while(1)}function Kc(){var e=$s.current;return $s.current=es,e===null?es:e}function q(e,t){var n=W;W|=16;var r=Kc();tc===e&&nc===t||Wc(e,t);do try{qc();break}catch(t){Gc(e,t)}while(1);if(Ea(),W=n,$s.current=r,G!==null)throw Error(i(261));return tc=null,nc=0,ac}function qc(){for(;G!==null;)Yc(G)}function Jc(){for(;G!==null&&!Qi();)Yc(G)}function Yc(e){var t=sl(e.alternate,e,rc);e.memoizedProps=e.pendingProps,t===null?Xc(e):G=t,ec.current=null}function Xc(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=js(t),n!==null){n.flags&=2047,G=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=As(n,t,rc),n!==null){G=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||rc&1073741824||!(n.mode&4)){for(var r=0,i=n.child;i!==null;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect===null?e.firstEffect=t:e.lastEffect.nextEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){G=t;return}G=t=e}while(t!==null);ac===0&&(ac=5)}function Zc(e){var t=ma();return ga(99,Qc.bind(null,e,t)),null}function Qc(e,t){do $c();while(yc!==null);if(W&48)throw Error(i(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null;var r=n.lanes|n.childLanes,a=r,o=e.pendingLanes&~a;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=a,e.mutableReadLanes&=a,e.entangledLanes&=a,a=e.entanglements;for(var s=e.eventTimes,c=e.expirationTimes;0<o;){var l=31-bn(o),u=1<<l;a[l]=0,s[l]=-1,c[l]=-1,o&=~u}if(Cc!==null&&!(r&24)&&Cc.has(e)&&Cc.delete(e),e===tc&&(G=tc=null,nc=0),1<n.flags?n.lastEffect===null?r=n:(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n.firstEffect,r!==null){if(a=W,W|=32,ec.current=null,pi=En,s=Ur(),Wr(s)){if(`selectionStart`in s)c={start:s.selectionStart,end:s.selectionEnd};else a:if(c=(c=s.ownerDocument)&&c.defaultView||window,(u=c.getSelection&&c.getSelection())&&u.rangeCount!==0){c=u.anchorNode,o=u.anchorOffset,l=u.focusNode,u=u.focusOffset;try{c.nodeType,l.nodeType}catch{c=null;break a}var d=0,f=-1,p=-1,m=0,h=0,g=s,_=null;b:for(;;){for(var v;g!==c||o!==0&&g.nodeType!==3||(f=d+o),g!==l||u!==0&&g.nodeType!==3||(p=d+u),g.nodeType===3&&(d+=g.nodeValue.length),(v=g.firstChild)!==null;)_=g,g=v;for(;;){if(g===s)break b;if(_===c&&++m===o&&(f=d),_===l&&++h===u&&(p=d),(v=g.nextSibling)!==null)break;g=_,_=g.parentNode}g=v}c=f===-1||p===-1?null:{start:f,end:p}}else c=null;c||={start:0,end:0}}else c=null;mi={focusedElem:s,selectionRange:c},En=!1,kc=null,Ac=!1,K=r;do try{J()}catch(e){if(K===null)throw Error(i(330));il(K,e),K=K.nextEffect}while(K!==null);kc=null,K=r;do try{for(s=e;K!==null;){var y=K.flags;if(y&16&&Ve(K.stateNode,``),y&128){var b=K.alternate;if(b!==null){var x=b.ref;x!==null&&(typeof x==`function`?x(null):x.current=null)}}switch(y&1038){case 2:Gs(K),K.flags&=-3;break;case 6:Gs(K),K.flags&=-3,Ys(K.alternate,K);break;case 1024:K.flags&=-1025;break;case 1028:K.flags&=-1025,Ys(K.alternate,K);break;case 4:Ys(K.alternate,K);break;case 8:c=K,Js(s,c);var S=c.alternate;Us(c),S!==null&&Us(S)}K=K.nextEffect}}catch(e){if(K===null)throw Error(i(330));il(K,e),K=K.nextEffect}while(K!==null);if(x=mi,b=Ur(),y=x.focusedElem,s=x.selectionRange,b!==y&&y&&y.ownerDocument&&Hr(y.ownerDocument.documentElement,y)){for(s!==null&&Wr(y)&&(b=s.start,x=s.end,x===void 0&&(x=b),(`selectionStart`in y)?(y.selectionStart=b,y.selectionEnd=Math.min(x,y.value.length)):(x=(b=y.ownerDocument||document)&&b.defaultView||window,x.getSelection&&(x=x.getSelection(),c=y.textContent.length,S=Math.min(s.start,c),s=s.end===void 0?S:Math.min(s.end,c),!x.extend&&S>s&&(c=s,s=S,S=c),c=Vr(y,S),o=Vr(y,s),c&&o&&(x.rangeCount!==1||x.anchorNode!==c.node||x.anchorOffset!==c.offset||x.focusNode!==o.node||x.focusOffset!==o.offset)&&(b=b.createRange(),b.setStart(c.node,c.offset),x.removeAllRanges(),S>s?(x.addRange(b),x.extend(o.node,o.offset)):(b.setEnd(o.node,o.offset),x.addRange(b)))))),b=[],x=y;x=x.parentNode;)x.nodeType===1&&b.push({element:x,left:x.scrollLeft,top:x.scrollTop});for(typeof y.focus==`function`&&y.focus(),y=0;y<b.length;y++)x=b[y],x.element.scrollLeft=x.left,x.element.scrollTop=x.top}En=!!pi,mi=pi=null,e.current=n,K=r;do try{for(y=e;K!==null;){var C=K.flags;if(C&36&&Bs(y,K.alternate,K),C&128){b=void 0;var w=K.ref;if(w!==null){var T=K.stateNode;switch(K.tag){case 5:b=T;break;default:b=T}typeof w==`function`?w(b):w.current=b}}K=K.nextEffect}}catch(e){if(K===null)throw Error(i(330));il(K,e),K=K.nextEffect}while(K!==null);K=null,ca(),W=a}else e.current=n;if(vc)vc=!1,yc=e,bc=t;else for(K=r;K!==null;)t=K.nextEffect,K.nextEffect=null,K.flags&8&&(C=K,C.sibling=null,C.stateNode=null),K=t;if(r=e.pendingLanes,r===0&&(_c=null),r===1?e===Tc?wc++:(wc=0,Tc=e):wc=0,n=n.stateNode,Ji&&typeof Ji.onCommitFiberRoot==`function`)try{Ji.onCommitFiberRoot(qi,n,void 0,(n.current.flags&64)==64)}catch{}if(Fc(e,pa()),hc)throw hc=!1,e=gc,gc=null,e;return W&8||va(),null}function J(){for(;K!==null;){var e=K.alternate;Ac||kc===null||(K.flags&8?Et(K,kc)&&(Ac=!0):K.tag===13&&Zs(e,K)&&Et(K,kc)&&(Ac=!0));var t=K.flags;t&256&&zs(e,K),!(t&512)||vc||(vc=!0,_a(97,function(){return $c(),null})),K=K.nextEffect}}function $c(){if(bc!==90){var e=97<bc?97:bc;return bc=90,ga(e,nl)}return!1}function el(e,t){xc.push(t,e),vc||(vc=!0,_a(97,function(){return $c(),null}))}function tl(e,t){Sc.push(t,e),vc||(vc=!0,_a(97,function(){return $c(),null}))}function nl(){if(yc===null)return!1;var e=yc;if(yc=null,W&48)throw Error(i(331));var t=W;W|=32;var n=Sc;Sc=[];for(var r=0;r<n.length;r+=2){var a=n[r],o=n[r+1],s=a.destroy;if(a.destroy=void 0,typeof s==`function`)try{s()}catch(e){if(o===null)throw Error(i(330));il(o,e)}}for(n=xc,xc=[],r=0;r<n.length;r+=2){a=n[r],o=n[r+1];try{var c=a.create;a.destroy=c()}catch(e){if(o===null)throw Error(i(330));il(o,e)}}for(c=e.current.firstEffect;c!==null;)e=c.nextEffect,c.nextEffect=null,c.flags&8&&(c.sibling=null,c.stateNode=null),c=e;return W=t,va(),!0}function rl(e,t,n){t=Ms(n,t),t=Fs(e,t,1),Fa(e,t),t=jc(),e=Pc(e,1),e!==null&&(yn(e,1,t),Fc(e,t))}function il(e,t){if(e.tag===3)rl(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){rl(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(_c===null||!_c.has(r))){e=Ms(t,e);var i=Is(n,e,1);if(Fa(n,i),i=jc(),n=Pc(n,1),n!==null)yn(n,1,i),Fc(n,i);else if(typeof r.componentDidCatch==`function`&&(_c===null||!_c.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function al(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=jc(),e.pingedLanes|=e.suspendedLanes&n,tc===e&&(nc&n)===n&&(ac===4||ac===3&&(nc&62914560)===nc&&500>pa()-fc?Wc(e,0):uc|=n),Fc(e,t)}function ol(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(Dc===0&&(Dc=sc),t=_n(62914560&~Dc),t===0&&(t=4194304)):t=ma()===99?1:2:t=1),n=jc(),e=Pc(e,t),e!==null&&(yn(e,t,n),Fc(e,n))}var sl=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||Ri.current)as=!0;else if((n&r)!==0)as=!!(e.flags&16384);else{switch(as=!1,t.tag){case 3:gs(t),_o();break;case 5:ao(t);break;case 1:Vi(t.type)&&Gi(t);break;case 4:ro(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var a=t.type._context;B(Sa,a._currentValue),a._currentValue=r;break;case 13:if(t.memoizedState!==null)return(n&t.child.childLanes)===0?(B(H,H.current&1),t=Ts(e,t,n),t===null?null:t.sibling):vs(e,t,n);B(H,H.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&64){if(r)return ws(e,t,n);t.flags|=64}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),B(H,H.current),r)break;return null;case 23:case 24:return t.lanes=0,ds(e,t,n)}return Ts(e,t,n)}else as=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,a=Bi(t,V.current),ka(t,n),a=ko(null,t,r,e,a,n),t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Vi(r)){var o=!0;Gi(t)}else o=!1;t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Ma(t);var s=r.getDerivedStateFromProps;typeof s==`function`&&Ba(t,r,s,e),a.updater=Va,t.stateNode=a,a._reactInternals=t,Ga(t,r,e,n),t=hs(null,t,r,!0,o,n)}else t.tag=0,ss(null,t,a,n),t=t.child;return t;case 16:a=t.elementType;a:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=a._init,a=o(a._payload),t.type=a,o=t.tag=dl(a),e=xa(a,e),o){case 0:t=ps(null,t,a,e,n);break a;case 1:t=ms(null,t,a,e,n);break a;case 11:t=cs(null,t,a,e,n);break a;case 14:t=ls(null,t,a,xa(a.type,e),r,n);break a}throw Error(i(306,a,``))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:xa(r,a),ps(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:xa(r,a),ms(e,t,r,a,n);case 3:if(gs(t),r=t.updateQueue,e===null||r===null)throw Error(i(282));if(r=t.pendingProps,a=t.memoizedState,a=a===null?null:a.element,Na(e,t),La(t,r,null,n),r=t.memoizedState.element,r===a)_o(),t=Ts(e,t,n);else{if(a=t.stateNode,(o=a.hydrate)&&(lo=bi(t.stateNode.containerInfo.firstChild),co=t,o=uo=!0),o){if(e=a.mutableSourceEagerHydrationData,e!=null)for(a=0;a<e.length;a+=2)o=e[a],o._workInProgressVersionPrimary=e[a+1],vo.push(o);for(n=Za(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else ss(e,t,r,n),_o();t=t.child}return t;case 5:return ao(t),e===null&&mo(t),r=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,gi(r,a)?s=null:o!==null&&gi(r,o)&&(t.flags|=16),fs(e,t),ss(e,t,s,n),t.child;case 6:return e===null&&mo(t),null;case 13:return vs(e,t,n);case 4:return ro(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xa(t,null,r,n):ss(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:xa(r,a),cs(e,t,r,a,n);case 7:return ss(e,t,t.pendingProps,n),t.child;case 8:return ss(e,t,t.pendingProps.children,n),t.child;case 12:return ss(e,t,t.pendingProps.children,n),t.child;case 10:a:{r=t.type._context,a=t.pendingProps,s=t.memoizedProps,o=a.value;var c=t.type._context;if(B(Sa,c._currentValue),c._currentValue=o,s!==null)if(c=s.value,o=Lr(c,o)?0:(typeof r._calculateChangedBits==`function`?r._calculateChangedBits(c,o):1073741823)|0,o===0){if(s.children===a.children&&!Ri.current){t=Ts(e,t,n);break a}}else for(c=t.child,c!==null&&(c.return=t);c!==null;){var l=c.dependencies;if(l!==null){s=c.child;for(var u=l.firstContext;u!==null;){if(u.context===r&&(u.observedBits&o)!==0){c.tag===1&&(u=Pa(-1,n&-n),u.tag=2,Fa(c,u)),c.lanes|=n,u=c.alternate,u!==null&&(u.lanes|=n),Oa(c.return,n),l.lanes|=n;break}u=u.next}}else s=c.tag===10&&c.type===t.type?null:c.child;if(s!==null)s.return=c;else for(s=c;s!==null;){if(s===t){s=null;break}if(c=s.sibling,c!==null){c.return=s.return,s=c;break}s=s.return}c=s}ss(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,o=t.pendingProps,r=o.children,ka(t,n),a=Aa(a,o.unstable_observedBits),r=r(a),t.flags|=1,ss(e,t,r,n),t.child;case 14:return a=t.type,o=xa(a,t.pendingProps),o=xa(a.type,o),ls(e,t,a,o,r,n);case 15:return us(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:xa(r,a),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Vi(r)?(e=!0,Gi(t)):e=!1,ka(t,n),Ua(t,r,a),Ga(t,r,a,n),hs(null,t,r,!0,e,n);case 19:return ws(e,t,n);case 23:return ds(e,t,n);case 24:return ds(e,t,n)}throw Error(i(156,t.tag))};function cl(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function ll(e,t,n,r){return new cl(e,t,n,r)}function ul(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dl(e){if(typeof e==`function`)return ul(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ie)return 11;if(e===O)return 14}return 2}function fl(e,t){var n=e.alternate;return n===null?(n=ll(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function pl(e,t,n,r,a,o){var s=2;if(r=e,typeof e==`function`)ul(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case te:return ml(n.children,a,o,t);case le:s=8,a|=16;break;case E:s=8,a|=1;break;case D:return e=ll(12,n,t,a|8),e.elementType=D,e.type=D,e.lanes=o,e;case ae:return e=ll(13,n,t,a),e.type=ae,e.elementType=ae,e.lanes=o,e;case oe:return e=ll(19,n,t,a),e.elementType=oe,e.lanes=o,e;case ue:return hl(n,a,o,t);case de:return e=ll(24,n,t,a),e.elementType=de,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case ne:s=10;break a;case re:s=9;break a;case ie:s=11;break a;case O:s=14;break a;case se:s=16,r=null;break a;case k:s=22;break a}throw Error(i(130,e==null?e:typeof e,``))}return t=ll(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function ml(e,t,n,r){return e=ll(7,e,r,t),e.lanes=n,e}function hl(e,t,n,r){return e=ll(23,e,r,t),e.elementType=ue,e.lanes=n,e}function gl(e,t,n){return e=ll(6,e,null,t),e.lanes=n,e}function _l(e,t,n){return t=ll(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=vn(0),this.expirationTimes=vn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vn(0),this.mutableSourceEagerHydrationData=null}function yl(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ee,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function bl(e,t,n,r){var a=t.current,o=jc(),s=Mc(a);a:if(n){n=n._reactInternals;b:{if(xt(n)!==n||n.tag!==1)throw Error(i(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break b;case 1:if(Vi(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break b}}c=c.return}while(c!==null);throw Error(i(171))}if(n.tag===1){var l=n.type;if(Vi(l)){n=Wi(n,l,c);break a}}n=c}else n=Li;return t.context===null?t.context=n:t.pendingContext=n,t=Pa(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),Fa(a,t),Nc(a,s,o),s}function xl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Sl(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Cl(e,t){Sl(e,t),(e=e.alternate)&&Sl(e,t)}function wl(){return null}function Tl(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new vl(e,t,n!=null&&!0===n.hydrate),t=ll(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,Ma(t),e[Di]=n.current,ii(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var i=t._getVersion;i=i(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}Tl.prototype.render=function(e){bl(e,this._internalRoot,null,null)},Tl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;bl(null,e,null,function(){t[Di]=null})};function El(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function Dl(e,t){if(t||=(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,!(!t||t.nodeType!==1||!t.hasAttribute(`data-reactroot`))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Tl(e,0,t?{hydrate:!0}:void 0)}function Ol(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if(typeof i==`function`){var s=i;i=function(){var e=xl(o);s.call(e)}}bl(t,o,e,i)}else{if(a=n._reactRootContainer=Dl(n,r),o=a._internalRoot,typeof i==`function`){var c=i;i=function(){var e=xl(o);c.call(e)}}Vc(function(){bl(t,o,e,i)})}return xl(o)}Dt=function(e){e.tag===13&&(Nc(e,4,jc()),Cl(e,4))},Ot=function(e){e.tag===13&&(Nc(e,67108864,jc()),Cl(e,67108864))},kt=function(e){if(e.tag===13){var t=jc(),n=Mc(e);Nc(e,n,t),Cl(e,n)}},At=function(e,t){return t()},Xe=function(e,t,n){switch(t){case`input`:if(Ee(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=Mi(r);if(!a)throw Error(i(90));Ce(r),Ee(r,a)}}}break;case`textarea`:Pe(e,n);break;case`select`:t=n.value,t!=null&&je(e,!!n.multiple,t,!1)}},nt=Bc,rt=function(e,t,n,r,i){var a=W;W|=4;try{return ga(98,e.bind(null,t,n,r,i))}finally{W=a,W===0&&(mc(),va())}},it=function(){!(W&49)&&(zc(),$c())},at=function(e,t){var n=W;W|=2;try{return e(t)}finally{W=n,W===0&&(mc(),va())}};function kl(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!El(t))throw Error(i(200));return yl(e,t,null,n)}var Al={findFiberByHostInstance:ki,bundleType:0,version:`17.0.2`,rendererPackageName:`react-dom`},jl={bundleType:Al.bundleType,version:Al.version,rendererPackageName:Al.rendererPackageName,rendererConfig:Al.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Tt(e),e===null?null:e.stateNode},findFiberByHostInstance:Al.findFiberByHostInstance||wl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Ml=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ml.isDisabled&&Ml.supportsFiber)try{qi=Ml.inject(jl),Ji=Ml}catch{}}e.createPortal=kl,e.render=function(e,t,n){if(!El(t))throw Error(i(200));return Ol(null,e,t,!1,n)}})),Nd=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Md()})),Pd=l(Nd(),1);function Fd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var Id={exports:{}},Ld={},Rd;function zd(){if(Rd)return Ld;Rd=1;var e=O.default;function t(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var n=typeof Object.is==`function`?Object.is:t,r=e.useState,i=e.useEffect,a=e.useLayoutEffect,o=e.useDebugValue;function s(e,t){var n=t(),s=r({inst:{value:n,getSnapshot:t}}),l=s[0].inst,u=s[1];return a(function(){l.value=n,l.getSnapshot=t,c(l)&&u({inst:l})},[e,n,t]),i(function(){return c(l)&&u({inst:l}),e(function(){c(l)&&u({inst:l})})},[e]),o(n),n}function c(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch{return!0}}function l(e,t){return t()}var u=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?l:s;return Ld.useSyncExternalStore=e.useSyncExternalStore===void 0?u:e.useSyncExternalStore,Ld}Id.exports=zd();var Bd=Id.exports,Vd=(...e)=>t=>{e.forEach(e=>{typeof e==`function`?e(t):e&&(e.current=t)})},Hd=({contentComponent:e})=>{let t=Bd.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getServerSnapshot);return O.createElement(O.default.Fragment,null,Object.values(t))};function Ud(){let e=new Set,t={};return{subscribe(t){return e.add(t),()=>{e.delete(t)}},getSnapshot(){return t},getServerSnapshot(){return t},setRenderer(n,r){t={...t,[n]:Pd.createPortal(r.reactElement,r.element,n)},e.forEach(e=>e())},removeRenderer(n){let r={...t};delete r[n],t=r,e.forEach(e=>e())}}}var Wd=class extends O.Component{constructor(e){super(e),this.editorContentRef=O.createRef(),this.initialized=!1,this.state={hasContentComponentInitialized:!!e.editor?.contentComponent}}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){let e=this.props.editor;if(e&&!e.isDestroyed&&e.options.element){if(e.contentComponent)return;let t=this.editorContentRef.current;t.append(...e.options.element.childNodes),e.setOptions({element:t}),e.contentComponent=Ud(),this.state.hasContentComponentInitialized||(this.unsubscribeToContentComponent=e.contentComponent.subscribe(()=>{this.setState(e=>e.hasContentComponentInitialized?e:{hasContentComponentInitialized:!0}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent()})),e.createNodeViews(),this.initialized=!0}}componentWillUnmount(){let e=this.props.editor;if(!e||(this.initialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),this.unsubscribeToContentComponent&&this.unsubscribeToContentComponent(),e.contentComponent=null,!e.options.element.firstChild))return;let t=document.createElement(`div`);t.append(...e.options.element.childNodes),e.setOptions({element:t})}render(){let{editor:e,innerRef:t,...n}=this.props;return O.createElement(O.default.Fragment,null,O.createElement(`div`,{ref:Vd(t,this.editorContentRef),...n}),e?.contentComponent&&O.createElement(Hd,{contentComponent:e.contentComponent}))}},Gd=(0,O.forwardRef)((e,t)=>{let n=O.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[e.editor]);return O.createElement(Wd,{key:n,innerRef:t,...e})}),Kd=O.memo(Gd),qd=Fd(function e(t,n){if(t===n)return!0;if(t&&n&&typeof t==`object`&&typeof n==`object`){if(t.constructor!==n.constructor)return!1;var r,i,a;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(!e(t[i],n[i]))return!1;return!0}if(t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;for(i of t.entries())if(!e(i[1],n.get(i[0])))return!1;return!0}if(t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(i of t.entries())if(!n.has(i[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if(r=t.length,r!=n.length)return!1;for(i=r;i--!==0;)if(t[i]!==n[i])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(a=Object.keys(t),r=a.length,r!==Object.keys(n).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;i--!==0;){var o=a[i];if(!(o===`_owner`&&t.$$typeof)&&!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n}),Jd={exports:{}},Yd={},Xd;function Zd(){if(Xd)return Yd;Xd=1;var e=O.default,t=Bd;function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useSyncExternalStore,a=e.useRef,o=e.useEffect,s=e.useMemo,c=e.useDebugValue;return Yd.useSyncExternalStoreWithSelector=function(e,t,n,l,u){var d=a(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s(function(){function e(e){if(!i){if(i=!0,a=e,e=l(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return o=t}return o=e}if(t=o,r(a,e))return t;var n=l(e);return u!==void 0&&u(t,n)?t:(a=e,o=n)}var i=!1,a,o,s=n===void 0?null:n;return[function(){return e(t())},s===null?void 0:function(){return e(s())}]},[t,n,l,u]);var p=i(e,d[0],d[1]);return o(function(){f.hasValue=!0,f.value=p},[p]),c(p),p},Yd}Jd.exports=Zd();var Qd=Jd.exports,$d=typeof window<`u`?O.useLayoutEffect:O.useEffect,ef=class{constructor(e){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=e,this.lastSnapshot={editor:e,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(e){return this.subscribers.add(e),()=>{this.subscribers.delete(e)}}watch(e){if(this.editor=e,this.editor){let e=()=>{this.transactionNumber+=1,this.subscribers.forEach(e=>e())},t=this.editor;return t.on(`transaction`,e),()=>{t.off(`transaction`,e)}}}};function tf(e){let[t]=(0,O.useState)(()=>new ef(e.editor)),n=Qd.useSyncExternalStoreWithSelector(t.subscribe,t.getSnapshot,t.getServerSnapshot,e.selector,e.equalityFn??qd);return $d(()=>t.watch(e.editor),[e.editor,t]),(0,O.useDebugValue)(n),n}var nf=typeof window>`u`,rf=nf||!!(typeof window<`u`&&window.next),af=class e{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId=``,this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(e=>e())}getInitialEditor(){return this.options.current.immediatelyRender===void 0?nf||rf?null:this.createEditor():(this.options.current.immediatelyRender,this.options.current.immediatelyRender?this.createEditor():null)}createEditor(){return new Ed({...this.options.current,onBeforeCreate:(...e)=>{var t;return(t=this.options.current).onBeforeCreate?.call(t,...e)},onBlur:(...e)=>{var t;return(t=this.options.current).onBlur?.call(t,...e)},onCreate:(...e)=>{var t;return(t=this.options.current).onCreate?.call(t,...e)},onDestroy:(...e)=>{var t;return(t=this.options.current).onDestroy?.call(t,...e)},onFocus:(...e)=>{var t;return(t=this.options.current).onFocus?.call(t,...e)},onSelectionUpdate:(...e)=>{var t;return(t=this.options.current).onSelectionUpdate?.call(t,...e)},onTransaction:(...e)=>{var t;return(t=this.options.current).onTransaction?.call(t,...e)},onUpdate:(...e)=>{var t;return(t=this.options.current).onUpdate?.call(t,...e)},onContentError:(...e)=>{var t;return(t=this.options.current).onContentError?.call(t,...e)},onDrop:(...e)=>{var t;return(t=this.options.current).onDrop?.call(t,...e)},onPaste:(...e)=>{var t;return(t=this.options.current).onPaste?.call(t,...e)}})}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,t){return Object.keys(e).every(n=>[`onCreate`,`onBeforeCreate`,`onDestroy`,`onUpdate`,`onTransaction`,`onFocus`,`onBlur`,`onSelectionUpdate`,`onContentError`,`onDrop`,`onPaste`].includes(n)?!0:n===`extensions`&&e.extensions&&t.extensions?e.extensions.length===t.extensions.length?e.extensions.every((e,n)=>e===t.extensions?.[n]):!1:e[n]===t[n])}onRender(t){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&t.length===0?e.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(t),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((t,n)=>t===e[n]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){let e=this.instanceId,t=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){t&&t.setOptions(this.options.current);return}t&&!t.isDestroyed&&(t.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function of(e={},t=[]){let n=(0,O.useRef)(e);n.current=e;let[r]=(0,O.useState)(()=>new af(n)),i=Bd.useSyncExternalStore(r.subscribe,r.getEditor,r.getServerSnapshot);return(0,O.useDebugValue)(i),(0,O.useEffect)(r.onRender(t)),tf({editor:i,selector:({transactionNumber:t})=>e.shouldRerenderOnTransaction===!1?null:e.immediatelyRender&&t===0?0:t+1}),i}(0,O.createContext)({editor:null}).Consumer;var sf=(0,O.createContext)({onDragStart:void 0}),cf=()=>(0,O.useContext)(sf);O.forwardRef((e,t)=>{let{onDragStart:n}=cf(),r=e.as||`div`;return O.createElement(r,{...e,ref:t,"data-node-view-wrapper":``,onDragStart:n,style:{whiteSpace:`normal`,...e.style}})});var lf=Object.defineProperty,uf=(e,t,n)=>t in e?lf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,df=(e,t,n)=>(uf(e,typeof t==`symbol`?t:t+``,n),n),ff=new class{constructor(){df(this,`current`,this.detect()),df(this,`handoffState`,`pending`),df(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`}},pf=(e,t)=>{ff.isServer?(0,O.useEffect)(e,t):(0,O.useLayoutEffect)(e,t)};function mf(e){let t=(0,O.useRef)(e);return pf(()=>{t.current=e},[e]),t}var hf=function(e){let t=mf(e);return O.useCallback((...e)=>t.current(...e),[t])};function gf(e){typeof queueMicrotask==`function`?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function _f(){let e=[],t={addEventListener(e,n,r,i){return e.addEventListener(n,r,i),t.add(()=>e.removeEventListener(n,r,i))},requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...e){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...e))},setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return gf(()=>{n.current&&e[0]()}),t.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=_f();return e(t),this.add(()=>t.dispose())},add(t){return e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}},dispose(){for(let t of e.splice(0))t()}};return t}function vf(){let[e]=(0,O.useState)(_f);return(0,O.useEffect)(()=>()=>e.dispose(),[e]),e}function yf(){let e=typeof document>`u`;return`useSyncExternalStore`in O?(e=>e.useSyncExternalStore)(O)(()=>()=>{},()=>!1,()=>!e):!1}function bf(){let e=yf(),[t,n]=O.useState(ff.isHandoffComplete);return t&&ff.isHandoffComplete===!1&&n(!1),O.useEffect(()=>{t!==!0&&n(!0)},[t]),O.useEffect(()=>ff.handoff(),[]),e?!1:t}function xf(e,t,...n){if(e in t){let r=t[e];return typeof r==`function`?r(...n):r}let r=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(`, `)}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,xf),r}var Sf=Symbol();function Cf(...e){let t=(0,O.useRef)(e);(0,O.useEffect)(()=>{t.current=e},[e]);let n=hf(e=>{for(let n of t.current)n!=null&&(typeof n==`function`?n(e):n.current=e)});return e.every(e=>e==null||e?.[Sf])?void 0:n}function wf(...e){return Array.from(new Set(e.flatMap(e=>typeof e==`string`?e.split(` `):[]))).filter(Boolean).join(` `)}var Tf=(e=>(e[e.None=0]=`None`,e[e.RenderStrategy=1]=`RenderStrategy`,e[e.Static=2]=`Static`,e))(Tf||{}),Ef=(e=>(e[e.Unmount=0]=`Unmount`,e[e.Hidden=1]=`Hidden`,e))(Ef||{});function Df({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:a=!0,name:o,mergeRefs:s}){s??=kf;let c=Af(t,e);if(a)return Of(c,n,r,o,s);let l=i??0;if(l&2){let{static:e=!1,...t}=c;if(e)return Of(t,n,r,o,s)}if(l&1){let{unmount:e=!0,...t}=c;return xf(e?0:1,{0(){return null},1(){return Of({...t,hidden:!0,style:{display:`none`}},n,r,o,s)}})}return Of(c,n,r,o,s)}function Of(e,t={},n,r,i){let{as:a=n,children:o,refName:s=`ref`,...c}=Nf(e,[`unmount`,`static`]),l=e.ref===void 0?{}:{[s]:e.ref},u=typeof o==`function`?o(t):o;`className`in c&&c.className&&typeof c.className==`function`&&(c.className=c.className(t));let d={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))typeof i==`boolean`&&(e=!0),i===!0&&n.push(r);e&&(d[`data-headlessui-state`]=n.join(` `))}if(a===O.Fragment&&Object.keys(Mf(c)).length>0){if(!(0,O.isValidElement)(u)||Array.isArray(u)&&u.length>1)throw Error([`Passing props on "Fragment"!`,``,`The current component <${r} /> is rendering a "Fragment".`,`However we need to passthrough the following props:`,Object.keys(c).map(e=>` - ${e}`).join(`
|
|
99
|
+
`),``,`You can apply a few solutions:`,['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',`Render a single element as the child so that we can forward the props onto that element.`].map(e=>` - ${e}`).join(`
|
|
100
100
|
`)].join(`
|
|
101
|
-
`));let g=p.props,k=typeof g?.className=="function"?(...$)=>Vs(g?.className(...$),d.className):Vs(g?.className,d.className),b=k?{className:k}:{};return E.cloneElement(p,Object.assign({},wg(p.props,$g(lu(d,["ref"]))),h,m,{ref:r(p.ref,m.ref)},b))}return E.createElement(i,Object.assign({},lu(d,["ref"]),i!==E.Fragment&&m,i!==E.Fragment&&h),p)}function mS(...n){return n.every(e=>e==null)?void 0:e=>{for(let t of n)t!=null&&(typeof t=="function"?t(e):t.current=e)}}function wg(...n){if(n.length===0)return{};if(n.length===1)return n[0];let e={},t={};for(let o of n)for(let r in o)r.startsWith("on")&&typeof o[r]=="function"?(t[r]!=null||(t[r]=[]),t[r].push(o[r])):e[r]=o[r];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(t).map(o=>[o,void 0])));for(let o in t)Object.assign(e,{[o](r,...i){let a=t[o];for(let c of a){if((r instanceof Event||r?.nativeEvent instanceof Event)&&r.defaultPrevented)return;c(r,...i)}}});return e}function au(n){var e;return Object.assign(E.forwardRef(n),{displayName:(e=n.displayName)!=null?e:n.name})}function $g(n){let e=Object.assign({},n);for(let t in e)e[t]===void 0&&delete e[t];return e}function lu(n,e=[]){let t=Object.assign({},n);for(let o of e)o in t&&delete t[o];return t}let cu=E.createContext(null);cu.displayName="OpenClosedContext";var ln=(n=>(n[n.Open=1]="Open",n[n.Closed=2]="Closed",n[n.Closing=4]="Closing",n[n.Opening=8]="Opening",n))(ln||{});function xg(){return E.useContext(cu)}function pS({value:n,children:e}){return ae.createElement(cu.Provider,{value:n},e)}function uu(){let n=E.useRef(!1);return Wr(()=>(n.current=!0,()=>{n.current=!1}),[]),n}function fS(n=0){let[e,t]=E.useState(n),o=uu(),r=E.useCallback(d=>{o.current&&t(m=>m|d)},[e,o]),i=E.useCallback(d=>!!(e&d),[e]),a=E.useCallback(d=>{o.current&&t(m=>m&~d)},[t,o]),c=E.useCallback(d=>{o.current&&t(m=>m^d)},[t]);return{flags:e,addFlag:r,hasFlag:i,removeFlag:a,toggleFlag:c}}function hS(n){let e={called:!1};return(...t)=>{if(!e.called)return e.called=!0,n(...t)}}function du(n,...e){n&&e.length>0&&n.classList.add(...e)}function mu(n,...e){n&&e.length>0&&n.classList.remove(...e)}function gS(n,e){let t=qr();if(!n)return t.dispose;let{transitionDuration:o,transitionDelay:r}=getComputedStyle(n),[i,a]=[o,r].map(d=>{let[m=0]=d.split(",").filter(Boolean).map(p=>p.includes("ms")?parseFloat(p):parseFloat(p)*1e3).sort((p,h)=>h-p);return m}),c=i+a;if(c!==0){t.group(m=>{m.setTimeout(()=>{e(),m.dispose()},c),m.addEventListener(n,"transitionrun",p=>{p.target===p.currentTarget&&m.dispose()})});let d=t.addEventListener(n,"transitionend",m=>{m.target===m.currentTarget&&(e(),d())})}else e();return t.add(()=>e()),t.dispose}function yS(n,e,t,o){let r=t?"enter":"leave",i=qr(),a=o!==void 0?hS(o):()=>{};r==="enter"&&(n.removeAttribute("hidden"),n.style.display="");let c=Vt(r,{enter:()=>e.enter,leave:()=>e.leave}),d=Vt(r,{enter:()=>e.enterTo,leave:()=>e.leaveTo}),m=Vt(r,{enter:()=>e.enterFrom,leave:()=>e.leaveFrom});return mu(n,...e.base,...e.enter,...e.enterTo,...e.enterFrom,...e.leave,...e.leaveFrom,...e.leaveTo,...e.entered),du(n,...e.base,...c,...m),i.nextFrame(()=>{mu(n,...e.base,...c,...m),du(n,...e.base,...c,...d),gS(n,()=>(mu(n,...e.base,...c),du(n,...e.base,...e.entered),a()))}),i.dispose}function kS({immediate:n,container:e,direction:t,classes:o,onStart:r,onStop:i}){let a=uu(),c=gg(),d=Vo(t);Wr(()=>{n&&(d.current="enter")},[n]),Wr(()=>{let m=qr();c.add(m.dispose);let p=e.current;if(p&&d.current!=="idle"&&a.current)return m.dispose(),r.current(d.current),m.add(yS(p,o.current,d.current==="enter",()=>{m.dispose(),i.current(d.current)})),m.dispose},[t])}function On(n=""){return n.split(/\s+/).filter(e=>e.length>1)}let Js=E.createContext(null);Js.displayName="TransitionContext";var bS=(n=>(n.Visible="visible",n.Hidden="hidden",n))(bS||{});function vS(){let n=E.useContext(Js);if(n===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return n}function wS(){let n=E.useContext(Ks);if(n===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return n}let Ks=E.createContext(null);Ks.displayName="NestingContext";function Ws(n){return"children"in n?Ws(n.children):n.current.filter(({el:e})=>e.current!==null).filter(({state:e})=>e==="visible").length>0}function Sg(n,e){let t=Vo(n),o=E.useRef([]),r=uu(),i=gg(),a=an((k,b=An.Hidden)=>{let $=o.current.findIndex(({el:S})=>S===k);$!==-1&&(Vt(b,{[An.Unmount](){o.current.splice($,1)},[An.Hidden](){o.current[$].state="hidden"}}),i.microTask(()=>{var S;!Ws(o)&&r.current&&((S=t.current)==null||S.call(t))}))}),c=an(k=>{let b=o.current.find(({el:$})=>$===k);return b?b.state!=="visible"&&(b.state="visible"):o.current.push({el:k,state:"visible"}),()=>a(k,An.Unmount)}),d=E.useRef([]),m=E.useRef(Promise.resolve()),p=E.useRef({enter:[],leave:[],idle:[]}),h=an((k,b,$)=>{d.current.splice(0),e&&(e.chains.current[b]=e.chains.current[b].filter(([S])=>S!==k)),e?.chains.current[b].push([k,new Promise(S=>{d.current.push(S)})]),e?.chains.current[b].push([k,new Promise(S=>{Promise.all(p.current[b].map(([N,P])=>P)).then(()=>S())})]),b==="enter"?m.current=m.current.then(()=>e?.wait.current).then(()=>$(b)):$(b)}),g=an((k,b,$)=>{Promise.all(p.current[b].splice(0).map(([S,N])=>N)).then(()=>{var S;(S=d.current.shift())==null||S()}).then(()=>$(b))});return E.useMemo(()=>({children:o,register:c,unregister:a,onStart:h,onStop:g,wait:m,chains:p}),[c,a,o,h,g,p,m])}function $S(){}let xS=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Cg(n){var e;let t={};for(let o of xS)t[o]=(e=n[o])!=null?e:$S;return t}function SS(n){let e=E.useRef(Cg(n));return E.useEffect(()=>{e.current=Cg(n)},[n]),e}let CS="div",Eg=bg.RenderStrategy;function ES(n,e){var t,o;let{beforeEnter:r,afterEnter:i,beforeLeave:a,afterLeave:c,enter:d,enterFrom:m,enterTo:p,entered:h,leave:g,leaveFrom:k,leaveTo:b,...$}=n,S=E.useRef(null),N=kg(S,e),P=(t=$.unmount)==null||t?An.Unmount:An.Hidden,{show:L,appear:j,initial:Y}=vS(),[U,I]=E.useState(L?"visible":"hidden"),K=wS(),{register:X,unregister:ie}=K;E.useEffect(()=>X(S),[X,S]),E.useEffect(()=>{if(P===An.Hidden&&S.current){if(L&&U!=="visible"){I("visible");return}return Vt(U,{hidden:()=>ie(S),visible:()=>X(S)})}},[U,S,X,ie,L,P]);let Ne=Vo({base:On($.className),enter:On(d),enterFrom:On(m),enterTo:On(p),entered:On(h),leave:On(g),leaveFrom:On(k),leaveTo:On(b)}),ye=SS({beforeEnter:r,afterEnter:i,beforeLeave:a,afterLeave:c}),$e=yg();E.useEffect(()=>{if($e&&U==="visible"&&S.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[S,U,$e]);let Re=Y&&!j,xe=j&&L&&Y,Ae=!$e||Re?"idle":L?"enter":"leave",T=fS(0),_=an(re=>Vt(re,{enter:()=>{T.addFlag(ln.Opening),ye.current.beforeEnter()},leave:()=>{T.addFlag(ln.Closing),ye.current.beforeLeave()},idle:()=>{}})),se=an(re=>Vt(re,{enter:()=>{T.removeFlag(ln.Opening),ye.current.afterEnter()},leave:()=>{T.removeFlag(ln.Closing),ye.current.afterLeave()},idle:()=>{}})),ve=Sg(()=>{I("hidden"),ie(S)},K),z=E.useRef(!1);kS({immediate:xe,container:S,classes:Ne,direction:Ae,onStart:Vo(re=>{z.current=!0,ve.onStart(S,re,_)}),onStop:Vo(re=>{z.current=!1,ve.onStop(S,re,se),re==="leave"&&!Ws(ve)&&(I("hidden"),ie(S))})});let q=$,W={ref:N};return xe?q={...q,className:Vs($.className,...Ne.current.enter,...Ne.current.enterFrom)}:z.current&&(q.className=Vs($.className,(o=S.current)==null?void 0:o.className),q.className===""&&delete q.className),ae.createElement(Ks.Provider,{value:ve},ae.createElement(pS,{value:Vt(U,{visible:ln.Open,hidden:ln.Closed})|T.flags},vg({ourProps:W,theirProps:q,defaultTag:CS,features:Eg,visible:U==="visible",name:"Transition.Child"})))}function NS(n,e){let{show:t,appear:o=!1,unmount:r=!0,...i}=n,a=E.useRef(null),c=kg(a,e);yg();let d=xg();if(t===void 0&&d!==null&&(t=(d&ln.Open)===ln.Open),![!0,!1].includes(t))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[m,p]=E.useState(t?"visible":"hidden"),h=Sg(()=>{p("hidden")}),[g,k]=E.useState(!0),b=E.useRef([t]);Wr(()=>{g!==!1&&b.current[b.current.length-1]!==t&&(b.current.push(t),k(!1))},[b,t]);let $=E.useMemo(()=>({show:t,appear:o,initial:g}),[t,o,g]);E.useEffect(()=>{if(t)p("visible");else if(!Ws(h))p("hidden");else{let L=a.current;if(!L)return;let j=L.getBoundingClientRect();j.x===0&&j.y===0&&j.width===0&&j.height===0&&p("hidden")}},[t,h]);let S={unmount:r},N=an(()=>{var L;g&&k(!1),(L=n.beforeEnter)==null||L.call(n)}),P=an(()=>{var L;g&&k(!1),(L=n.beforeLeave)==null||L.call(n)});return ae.createElement(Ks.Provider,{value:h},ae.createElement(Js.Provider,{value:$},vg({ourProps:{...S,as:E.Fragment,children:ae.createElement(Ng,{ref:c,...S,...i,beforeEnter:N,beforeLeave:P})},theirProps:{},defaultTag:E.Fragment,features:Eg,visible:m==="visible",name:"Transition"})))}function DS(n,e){let t=E.useContext(Js)!==null,o=xg()!==null;return ae.createElement(ae.Fragment,null,!t&&o?ae.createElement(pu,{ref:e,...n}):ae.createElement(Ng,{ref:e,...n}))}let pu=au(NS),Ng=au(ES),RS=au(DS),ho=Object.assign(pu,{Child:RS,Root:pu});const AS=/^\s*>\s$/,OS=Kr.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:n}){return["blockquote",Uo(this.options.HTMLAttributes,n),0]},addCommands(){return{setBlockquote:()=>({commands:n})=>n.wrapIn(this.name),toggleBlockquote:()=>({commands:n})=>n.toggleWrap(this.name),unsetBlockquote:()=>({commands:n})=>n.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[M1({find:AS,type:this.type})]}}),TS=Kr.create({name:"doc",topNode:!0,content:"block+"}),PS=Kr.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:n}){return["br",Uo(this.options.HTMLAttributes,n)]},renderText(){return`
|
|
102
|
-
`},addCommands(){return{setHardBreak:()=>({commands:
|
|
103
|
-
`,
|
|
101
|
+
`));let e=u.props,t=typeof e?.className==`function`?(...t)=>wf(e?.className(...t),c.className):wf(e?.className,c.className),n=t?{className:t}:{};return(0,O.cloneElement)(u,Object.assign({},Af(u.props,Mf(Nf(c,[`ref`]))),d,l,{ref:i(u.ref,l.ref)},n))}return(0,O.createElement)(a,Object.assign({},Nf(c,[`ref`]),a!==O.Fragment&&l,a!==O.Fragment&&d),u)}function kf(...e){return e.every(e=>e==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n==`function`?n(t):n.current=t)}}function Af(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith(`on`)&&typeof r[e]==`function`?(n[e]??(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t[`aria-disabled`])return Object.assign(t,Object.fromEntries(Object.keys(n).map(e=>[e,void 0])));for(let e in n)Object.assign(t,{[e](t,...r){let i=n[e];for(let e of i){if((t instanceof Event||t?.nativeEvent instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function jf(e){return Object.assign((0,O.forwardRef)(e),{displayName:e.displayName??e.name})}function Mf(e){let t=Object.assign({},e);for(let e in t)t[e]===void 0&&delete t[e];return t}function Nf(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}var Pf=(0,O.createContext)(null);Pf.displayName=`OpenClosedContext`;var Ff=(e=>(e[e.Open=1]=`Open`,e[e.Closed=2]=`Closed`,e[e.Closing=4]=`Closing`,e[e.Opening=8]=`Opening`,e))(Ff||{});function If(){return(0,O.useContext)(Pf)}function Lf({value:e,children:t}){return O.createElement(Pf.Provider,{value:e},t)}function Rf(){let e=(0,O.useRef)(!1);return pf(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function zf(e=0){let[t,n]=(0,O.useState)(e),r=Rf();return{flags:t,addFlag:(0,O.useCallback)(e=>{r.current&&n(t=>t|e)},[t,r]),hasFlag:(0,O.useCallback)(e=>!!(t&e),[t]),removeFlag:(0,O.useCallback)(e=>{r.current&&n(t=>t&~e)},[n,r]),toggleFlag:(0,O.useCallback)(e=>{r.current&&n(t=>t^e)},[n])}}function Bf(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function Vf(e,...t){e&&t.length>0&&e.classList.add(...t)}function Hf(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Uf(e,t){let n=_f();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:i}=getComputedStyle(e),[a,o]=[r,i].map(e=>{let[t=0]=e.split(`,`).filter(Boolean).map(e=>e.includes(`ms`)?parseFloat(e):parseFloat(e)*1e3).sort((e,t)=>t-e);return t}),s=a+o;if(s!==0){n.group(n=>{n.setTimeout(()=>{t(),n.dispose()},s),n.addEventListener(e,`transitionrun`,e=>{e.target===e.currentTarget&&n.dispose()})});let r=n.addEventListener(e,`transitionend`,e=>{e.target===e.currentTarget&&(t(),r())})}else t();return n.add(()=>t()),n.dispose}function Wf(e,t,n,r){let i=n?`enter`:`leave`,a=_f(),o=r===void 0?()=>{}:Bf(r);i===`enter`&&(e.removeAttribute(`hidden`),e.style.display=``);let s=xf(i,{enter:()=>t.enter,leave:()=>t.leave}),c=xf(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),l=xf(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Hf(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Vf(e,...t.base,...s,...l),a.nextFrame(()=>{Hf(e,...t.base,...s,...l),Vf(e,...t.base,...s,...c),Uf(e,()=>(Hf(e,...t.base,...s),Vf(e,...t.base,...t.entered),o()))}),a.dispose}function Gf({immediate:e,container:t,direction:n,classes:r,onStart:i,onStop:a}){let o=Rf(),s=vf(),c=mf(n);pf(()=>{e&&(c.current=`enter`)},[e]),pf(()=>{let e=_f();s.add(e.dispose);let n=t.current;if(n&&c.current!==`idle`&&o.current)return e.dispose(),i.current(c.current),e.add(Wf(n,r.current,c.current===`enter`,()=>{e.dispose(),a.current(c.current)})),e.dispose},[n])}function Kf(e=``){return e.split(/\s+/).filter(e=>e.length>1)}var qf=(0,O.createContext)(null);qf.displayName=`TransitionContext`;var Jf=(e=>(e.Visible=`visible`,e.Hidden=`hidden`,e))(Jf||{});function Yf(){let e=(0,O.useContext)(qf);if(e===null)throw Error(`A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.`);return e}function Xf(){let e=(0,O.useContext)(Zf);if(e===null)throw Error(`A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.`);return e}var Zf=(0,O.createContext)(null);Zf.displayName=`NestingContext`;function Qf(e){return`children`in e?Qf(e.children):e.current.filter(({el:e})=>e.current!==null).filter(({state:e})=>e===`visible`).length>0}function $f(e,t){let n=mf(e),r=(0,O.useRef)([]),i=Rf(),a=vf(),o=hf((e,t=Ef.Hidden)=>{let o=r.current.findIndex(({el:t})=>t===e);o!==-1&&(xf(t,{[Ef.Unmount](){r.current.splice(o,1)},[Ef.Hidden](){r.current[o].state=`hidden`}}),a.microTask(()=>{var e;!Qf(r)&&i.current&&((e=n.current)==null||e.call(n))}))}),s=hf(e=>{let t=r.current.find(({el:t})=>t===e);return t?t.state!==`visible`&&(t.state=`visible`):r.current.push({el:e,state:`visible`}),()=>o(e,Ef.Unmount)}),c=(0,O.useRef)([]),l=(0,O.useRef)(Promise.resolve()),u=(0,O.useRef)({enter:[],leave:[],idle:[]}),d=hf((e,n,r)=>{c.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(([t])=>t!==e)),t?.chains.current[n].push([e,new Promise(e=>{c.current.push(e)})]),t?.chains.current[n].push([e,new Promise(e=>{Promise.all(u.current[n].map(([e,t])=>t)).then(()=>e())})]),n===`enter`?l.current=l.current.then(()=>t?.wait.current).then(()=>r(n)):r(n)}),f=hf((e,t,n)=>{Promise.all(u.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;(e=c.current.shift())==null||e()}).then(()=>n(t))});return(0,O.useMemo)(()=>({children:r,register:s,unregister:o,onStart:d,onStop:f,wait:l,chains:u}),[s,o,r,d,f,u,l])}function ep(){}var tp=[`beforeEnter`,`afterEnter`,`beforeLeave`,`afterLeave`];function np(e){let t={};for(let n of tp)t[n]=e[n]??ep;return t}function rp(e){let t=(0,O.useRef)(np(e));return(0,O.useEffect)(()=>{t.current=np(e)},[e]),t}var ip=`div`,ap=Tf.RenderStrategy;function op(e,t){var n;let{beforeEnter:r,afterEnter:i,beforeLeave:a,afterLeave:o,enter:s,enterFrom:c,enterTo:l,entered:u,leave:d,leaveFrom:f,leaveTo:p,...m}=e,h=(0,O.useRef)(null),g=Cf(h,t),_=(n=m.unmount)==null||n?Ef.Unmount:Ef.Hidden,{show:v,appear:y,initial:b}=Yf(),[x,S]=(0,O.useState)(v?`visible`:`hidden`),C=Xf(),{register:w,unregister:T}=C;(0,O.useEffect)(()=>w(h),[w,h]),(0,O.useEffect)(()=>{if(_===Ef.Hidden&&h.current){if(v&&x!==`visible`){S(`visible`);return}return xf(x,{hidden:()=>T(h),visible:()=>w(h)})}},[x,h,w,T,v,_]);let ee=mf({base:Kf(m.className),enter:Kf(s),enterFrom:Kf(c),enterTo:Kf(l),entered:Kf(u),leave:Kf(d),leaveFrom:Kf(f),leaveTo:Kf(p)}),te=rp({beforeEnter:r,afterEnter:i,beforeLeave:a,afterLeave:o}),E=bf();(0,O.useEffect)(()=>{if(E&&x===`visible`&&h.current===null)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[h,x,E]);let D=b&&!y,ne=y&&v&&b,re=(()=>!E||D?`idle`:v?`enter`:`leave`)(),ie=zf(0),ae=hf(e=>xf(e,{enter:()=>{ie.addFlag(Ff.Opening),te.current.beforeEnter()},leave:()=>{ie.addFlag(Ff.Closing),te.current.beforeLeave()},idle:()=>{}})),oe=hf(e=>xf(e,{enter:()=>{ie.removeFlag(Ff.Opening),te.current.afterEnter()},leave:()=>{ie.removeFlag(Ff.Closing),te.current.afterLeave()},idle:()=>{}})),se=$f(()=>{S(`hidden`),T(h)},C),k=(0,O.useRef)(!1);Gf({immediate:ne,container:h,classes:ee,direction:re,onStart:mf(e=>{k.current=!0,se.onStart(h,e,ae)}),onStop:mf(e=>{k.current=!1,se.onStop(h,e,oe),e===`leave`&&!Qf(se)&&(S(`hidden`),T(h))})});let ce=m,le={ref:g};return ne?ce={...ce,className:wf(m.className,...ee.current.enter,...ee.current.enterFrom)}:k.current&&(ce.className=wf(m.className,h.current?.className),ce.className===``&&delete ce.className),O.createElement(Zf.Provider,{value:se},O.createElement(Lf,{value:xf(x,{visible:Ff.Open,hidden:Ff.Closed})|ie.flags},Df({ourProps:le,theirProps:ce,defaultTag:ip,features:ap,visible:x===`visible`,name:`Transition.Child`})))}function sp(e,t){let{show:n,appear:r=!1,unmount:i=!0,...a}=e,o=(0,O.useRef)(null),s=Cf(o,t);bf();let c=If();if(n===void 0&&c!==null&&(n=(c&Ff.Open)===Ff.Open),![!0,!1].includes(n))throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[l,u]=(0,O.useState)(n?`visible`:`hidden`),d=$f(()=>{u(`hidden`)}),[f,p]=(0,O.useState)(!0),m=(0,O.useRef)([n]);pf(()=>{f!==!1&&m.current[m.current.length-1]!==n&&(m.current.push(n),p(!1))},[m,n]);let h=(0,O.useMemo)(()=>({show:n,appear:r,initial:f}),[n,r,f]);(0,O.useEffect)(()=>{if(n)u(`visible`);else if(!Qf(d))u(`hidden`);else{let e=o.current;if(!e)return;let t=e.getBoundingClientRect();t.x===0&&t.y===0&&t.width===0&&t.height===0&&u(`hidden`)}},[n,d]);let g={unmount:i},_=hf(()=>{var t;f&&p(!1),(t=e.beforeEnter)==null||t.call(e)}),v=hf(()=>{var t;f&&p(!1),(t=e.beforeLeave)==null||t.call(e)});return O.createElement(Zf.Provider,{value:d},O.createElement(qf.Provider,{value:h},Df({ourProps:{...g,as:O.Fragment,children:O.createElement(up,{ref:s,...g,...a,beforeEnter:_,beforeLeave:v})},theirProps:{},defaultTag:O.Fragment,features:ap,visible:l===`visible`,name:`Transition`})))}function cp(e,t){let n=(0,O.useContext)(qf)!==null,r=If()!==null;return O.createElement(O.default.Fragment,null,!n&&r?O.createElement(lp,{ref:t,...e}):O.createElement(up,{ref:t,...e}))}var lp=jf(sp),up=jf(op),dp=jf(cp),fp=Object.assign(lp,{Child:dp,Root:lp}),pp=/^\s*>\s$/,mp=Od.create({name:`blockquote`,addOptions(){return{HTMLAttributes:{}}},content:`block+`,group:`block`,defining:!0,parseHTML(){return[{tag:`blockquote`}]},renderHTML({HTMLAttributes:e}){return[`blockquote`,Xc(this.options.HTMLAttributes,e),0]},addCommands(){return{setBlockquote:()=>({commands:e})=>e.wrapIn(this.name),toggleBlockquote:()=>({commands:e})=>e.toggleWrap(this.name),unsetBlockquote:()=>({commands:e})=>e.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[Dd({find:pp,type:this.type})]}}),hp=Od.create({name:`doc`,topNode:!0,content:`block+`}),gp=Od.create({name:`hardBreak`,addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:`inline`,selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:`br`}]},renderHTML({HTMLAttributes:e}){return[`br`,Xc(this.options.HTMLAttributes,e)]},renderText(){return`
|
|
102
|
+
`},addCommands(){return{setHardBreak:()=>({commands:e,chain:t,state:n,editor:r})=>e.first([()=>e.exitCode(),()=>e.command(()=>{let{selection:e,storedMarks:i}=n;if(e.$from.parent.type.spec.isolating)return!1;let{keepMarks:a}=this.options,{splittableMarks:o}=r.extensionManager,s=i||e.$to.parentOffset&&e.$from.marks();return t().insertContent({type:this.name}).command(({tr:e,dispatch:t})=>{if(t&&s&&a){let t=s.filter(e=>o.includes(e.type.name));e.ensureMarks(t)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),_p=`aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2odyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rck0msd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2oodside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2`,vp=`ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2`,yp=`numeric`,bp=`ascii`,xp=`alpha`,Sp=`asciinumeric`,Cp=`alphanumeric`,wp=`domain`,Tp=`emoji`,Ep=`scheme`,Dp=`slashscheme`,Op=`whitespace`;function kp(e,t){return e in t||(t[e]=[]),t[e]}function Ap(e,t,n){for(let r in t[yp]&&(t[Sp]=!0,t[Cp]=!0),t[bp]&&(t[Sp]=!0,t[xp]=!0),t[Sp]&&(t[Cp]=!0),t[xp]&&(t[Cp]=!0),t[Cp]&&(t[wp]=!0),t[Tp]&&(t[wp]=!0),t){let t=kp(r,n);t.indexOf(e)<0&&t.push(e)}}function jp(e,t){let n={};for(let r in t)t[r].indexOf(e)>=0&&(n[r]=!0);return n}function Mp(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}Mp.groups={},Mp.prototype={accepts(){return!!this.t},go(e){let t=this,n=t.j[e];if(n)return n;for(let n=0;n<t.jr.length;n++){let r=t.jr[n][0],i=t.jr[n][1];if(i&&r.test(e))return i}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,r){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,r)},tr(e,t,n,r){r||=Mp.groups;let i;return t&&t.j?i=t:(i=new Mp(t),n&&r&&Ap(t,n,r)),this.jr.push([e,i]),i},ts(e,t,n,r){let i=this,a=e.length;if(!a)return i;for(let t=0;t<a-1;t++)i=i.tt(e[t]);return i.tt(e[a-1],t,n,r)},tt(e,t,n,r){r||=Mp.groups;let i=this;if(t&&t.j)return i.j[e]=t,t;let a=t,o,s=i.go(e);return s?(o=new Mp,Object.assign(o.j,s.j),o.jr.push.apply(o.jr,s.jr),o.jd=s.jd,o.t=s.t):o=new Mp,a&&(r&&(o.t&&typeof o.t==`string`?Ap(a,Object.assign(jp(o.t,r),n),r):n&&Ap(a,n,r)),o.t=a),i.j[e]=o,o}};var Y=(e,t,n,r,i)=>e.ta(t,n,r,i),X=(e,t,n,r,i)=>e.tr(t,n,r,i),Np=(e,t,n,r,i)=>e.ts(t,n,r,i),Z=(e,t,n,r,i)=>e.tt(t,n,r,i),Pp=`WORD`,Fp=`UWORD`,Ip=`ASCIINUMERICAL`,Lp=`ALPHANUMERICAL`,Rp=`LOCALHOST`,zp=`TLD`,Bp=`UTLD`,Vp=`SCHEME`,Hp=`SLASH_SCHEME`,Up=`NUM`,Wp=`WS`,Gp=`NL`,Kp=`OPENBRACE`,qp=`CLOSEBRACE`,Jp=`OPENBRACKET`,Yp=`CLOSEBRACKET`,Xp=`OPENPAREN`,Zp=`CLOSEPAREN`,Qp=`OPENANGLEBRACKET`,$p=`CLOSEANGLEBRACKET`,em=`FULLWIDTHLEFTPAREN`,tm=`FULLWIDTHRIGHTPAREN`,nm=`LEFTCORNERBRACKET`,rm=`RIGHTCORNERBRACKET`,im=`LEFTWHITECORNERBRACKET`,am=`RIGHTWHITECORNERBRACKET`,om=`FULLWIDTHLESSTHAN`,sm=`FULLWIDTHGREATERTHAN`,cm=`AMPERSAND`,lm=`APOSTROPHE`,um=`ASTERISK`,dm=`AT`,fm=`BACKSLASH`,pm=`BACKTICK`,mm=`CARET`,hm=`COLON`,gm=`COMMA`,_m=`DOLLAR`,vm=`DOT`,ym=`EQUALS`,bm=`EXCLAMATION`,xm=`HYPHEN`,Sm=`PERCENT`,Cm=`PIPE`,wm=`PLUS`,Tm=`POUND`,Em=`QUERY`,Dm=`QUOTE`,Om=`FULLWIDTHMIDDLEDOT`,km=`SEMI`,Am=`SLASH`,jm=`TILDE`,Mm=`UNDERSCORE`,Nm=`EMOJI`,Pm=`SYM`,Fm=Object.freeze({__proto__:null,ALPHANUMERICAL:Lp,AMPERSAND:cm,APOSTROPHE:lm,ASCIINUMERICAL:Ip,ASTERISK:um,AT:dm,BACKSLASH:fm,BACKTICK:pm,CARET:mm,CLOSEANGLEBRACKET:$p,CLOSEBRACE:qp,CLOSEBRACKET:Yp,CLOSEPAREN:Zp,COLON:hm,COMMA:gm,DOLLAR:_m,DOT:vm,EMOJI:Nm,EQUALS:ym,EXCLAMATION:bm,FULLWIDTHGREATERTHAN:sm,FULLWIDTHLEFTPAREN:em,FULLWIDTHLESSTHAN:om,FULLWIDTHMIDDLEDOT:Om,FULLWIDTHRIGHTPAREN:tm,HYPHEN:xm,LEFTCORNERBRACKET:nm,LEFTWHITECORNERBRACKET:im,LOCALHOST:Rp,NL:Gp,NUM:Up,OPENANGLEBRACKET:Qp,OPENBRACE:Kp,OPENBRACKET:Jp,OPENPAREN:Xp,PERCENT:Sm,PIPE:Cm,PLUS:wm,POUND:Tm,QUERY:Em,QUOTE:Dm,RIGHTCORNERBRACKET:rm,RIGHTWHITECORNERBRACKET:am,SCHEME:Vp,SEMI:km,SLASH:Am,SLASH_SCHEME:Hp,SYM:Pm,TILDE:jm,TLD:zp,UNDERSCORE:Mm,UTLD:Bp,UWORD:Fp,WORD:Pp,WS:Wp}),Im=/[a-z]/,Lm=/\p{L}/u,Rm=/\p{Emoji}/u,zm=/\d/,Bm=/\s/,Vm=`\r`,Hm=`
|
|
103
|
+
`,Um=`️`,Wm=``,Gm=``,Km=null,qm=null;function Jm(e=[]){let t={};Mp.groups=t;let n=new Mp;Km??=Qm(_p),qm??=Qm(vp),Z(n,`'`,lm),Z(n,`{`,Kp),Z(n,`}`,qp),Z(n,`[`,Jp),Z(n,`]`,Yp),Z(n,`(`,Xp),Z(n,`)`,Zp),Z(n,`<`,Qp),Z(n,`>`,$p),Z(n,`(`,em),Z(n,`)`,tm),Z(n,`「`,nm),Z(n,`」`,rm),Z(n,`『`,im),Z(n,`』`,am),Z(n,`<`,om),Z(n,`>`,sm),Z(n,`&`,cm),Z(n,`*`,um),Z(n,`@`,dm),Z(n,"`",pm),Z(n,`^`,mm),Z(n,`:`,hm),Z(n,`,`,gm),Z(n,`$`,_m),Z(n,`.`,vm),Z(n,`=`,ym),Z(n,`!`,bm),Z(n,`-`,xm),Z(n,`%`,Sm),Z(n,`|`,Cm),Z(n,`+`,wm),Z(n,`#`,Tm),Z(n,`?`,Em),Z(n,`"`,Dm),Z(n,`/`,Am),Z(n,`;`,km),Z(n,`~`,jm),Z(n,`_`,Mm),Z(n,`\\`,fm),Z(n,`・`,Om);let r=X(n,zm,Up,{[yp]:!0});X(r,zm,r);let i=X(r,Im,Ip,{[Sp]:!0}),a=X(r,Lm,Lp,{[Cp]:!0}),o=X(n,Im,Pp,{[bp]:!0});X(o,zm,i),X(o,Im,o),X(i,zm,i),X(i,Im,i);let s=X(n,Lm,Fp,{[xp]:!0});X(s,Im),X(s,zm,a),X(s,Lm,s),X(a,zm,a),X(a,Im),X(a,Lm,a);let c=Z(n,Hm,Gp,{[Op]:!0}),l=Z(n,Vm,Wp,{[Op]:!0}),u=X(n,Bm,Wp,{[Op]:!0});Z(n,Gm,u),Z(l,Hm,c),Z(l,Gm,u),X(l,Bm,u),Z(u,Vm),Z(u,Hm),X(u,Bm,u),Z(u,Gm,u);let d=X(n,Rm,Nm,{[Tp]:!0});Z(d,`#`),X(d,Rm,d),Z(d,Um,d);let f=Z(d,Wm);Z(f,`#`),X(f,Rm,d);let p=[[Im,o],[zm,i]],m=[[Im,null],[Lm,s],[zm,a]];for(let e=0;e<Km.length;e++)Zm(n,Km[e],zp,Pp,p);for(let e=0;e<qm.length;e++)Zm(n,qm[e],Bp,Fp,m);Ap(zp,{tld:!0,ascii:!0},t),Ap(Bp,{utld:!0,alpha:!0},t),Zm(n,`file`,Vp,Pp,p),Zm(n,`mailto`,Vp,Pp,p),Zm(n,`http`,Hp,Pp,p),Zm(n,`https`,Hp,Pp,p),Zm(n,`ftp`,Hp,Pp,p),Zm(n,`ftps`,Hp,Pp,p),Ap(Vp,{scheme:!0,ascii:!0},t),Ap(Hp,{slashscheme:!0,ascii:!0},t),e=e.sort((e,t)=>e[0]>t[0]?1:-1);for(let t=0;t<e.length;t++){let r=e[t][0],i=e[t][1]?{[Ep]:!0}:{[Dp]:!0};r.indexOf(`-`)>=0?i[wp]=!0:Im.test(r)?zm.test(r)?i[Sp]=!0:i[bp]=!0:i[yp]=!0,Np(n,r,r,i)}return Np(n,`localhost`,Rp,{ascii:!0}),n.jd=new Mp(Pm),{start:n,tokens:Object.assign({groups:t},Fm)}}function Ym(e,t){let n=Xm(t.replace(/[A-Z]/g,e=>e.toLowerCase())),r=n.length,i=[],a=0,o=0;for(;o<r;){let s=e,c=null,l=0,u=null,d=-1,f=-1;for(;o<r&&(c=s.go(n[o]));)s=c,s.accepts()?(d=0,f=0,u=s):d>=0&&(d+=n[o].length,f++),l+=n[o].length,a+=n[o].length,o++;a-=d,o-=f,l-=d,i.push({t:u.t,v:t.slice(a-l,a),s:a-l,e:a})}return i}function Xm(e){let t=[],n=e.length,r=0;for(;r<n;){let i=e.charCodeAt(r),a,o=i<55296||i>56319||r+1===n||(a=e.charCodeAt(r+1))<56320||a>57343?e[r]:e.slice(r,r+2);t.push(o),r+=o.length}return t}function Zm(e,t,n,r,i){let a,o=t.length;for(let n=0;n<o-1;n++){let o=t[n];e.j[o]?a=e.j[o]:(a=new Mp(r),a.jr=i.slice(),e.j[o]=a),e=a}return a=new Mp(n),a.jr=i.slice(),e.j[t[o-1]]=a,a}function Qm(e){let t=[],n=[],r=0;for(;r<e.length;){let i=0;for(;`0123456789`.indexOf(e[r+i])>=0;)i++;if(i>0){t.push(n.join(``));for(let t=parseInt(e.substring(r,r+i),10);t>0;t--)n.pop();r+=i}else n.push(e[r]),r++}return t}var $m={defaultProtocol:`http`,events:null,format:th,formatHref:th,nl2br:!1,tagName:`a`,target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function eh(e,t=null){let n=Object.assign({},$m);e&&(n=Object.assign(n,e instanceof eh?e.o:e));let r=n.ignoreTags,i=[];for(let e=0;e<r.length;e++)i.push(r[e].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i}eh.prototype={o:$m,ignoreTags:[],defaultRender(e){return e},check(e){return this.get(`validate`,e.toString(),e)},get(e,t,n){let r=t!=null,i=this.o[e];return i&&(typeof i==`object`?(i=n.t in i?i[n.t]:$m[e],typeof i==`function`&&r&&(i=i(t,n))):typeof i==`function`&&r&&(i=i(t,n.t,n)),i)},getObj(e,t,n){let r=this.o[e];return typeof r==`function`&&t!=null&&(r=r(t,n.t,n)),r},render(e){let t=e.render(this);return(this.get(`render`,null,e)||this.defaultRender)(t,e.t,e)}};function th(e){return e}function nh(e,t){this.t=`token`,this.v=e,this.tk=t}nh.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){let t=this.toString(),n=e.get(`truncate`,t,this),r=e.get(`format`,t,this);return n&&r.length>n?r.substring(0,n)+`…`:r},toFormattedHref(e){return e.get(`formatHref`,this.toHref(e.get(`defaultProtocol`)),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=$m.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get(`validate`,this.toString(),this)},render(e){let t=this,n=this.toHref(e.get(`defaultProtocol`)),r=e.get(`formatHref`,n,this),i=e.get(`tagName`,n,t),a=this.toFormattedString(e),o={},s=e.get(`className`,n,t),c=e.get(`target`,n,t),l=e.get(`rel`,n,t),u=e.getObj(`attributes`,n,t),d=e.getObj(`events`,n,t);return o.href=r,s&&(o.class=s),c&&(o.target=c),l&&(o.rel=l),u&&Object.assign(o,u),{tagName:i,attributes:o,content:a,eventListeners:d}}};function rh(e,t){class n extends nh{constructor(t,n){super(t,n),this.t=e}}for(let e in t)n.prototype[e]=t[e];return n.t=e,n}var ih=rh(`email`,{isLink:!0,toHref(){return`mailto:`+this.toString()}}),ah=rh(`text`),oh=rh(`nl`),sh=rh(`url`,{isLink:!0,toHref(e=$m.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){let e=this.tk;return e.length>=2&&e[0].t!==Rp&&e[1].t===hm}}),ch=e=>new Mp(e);function lh({groups:e}){let t=e.domain.concat([cm,um,dm,fm,pm,mm,_m,ym,xm,Up,Sm,Cm,wm,Tm,Am,Pm,jm,Mm]),n=[lm,hm,gm,vm,bm,Sm,Em,Dm,km,Qp,$p,Kp,qp,Yp,Jp,Xp,Zp,em,tm,nm,rm,im,am,om,sm],r=[cm,lm,um,fm,pm,mm,_m,ym,xm,Kp,qp,Sm,Cm,wm,Tm,Em,Am,Pm,jm,Mm],i=ch(),a=Z(i,jm);Y(a,r,a),Y(a,e.domain,a);let o=ch(),s=ch(),c=ch();Y(i,e.domain,o),Y(i,e.scheme,s),Y(i,e.slashscheme,c),Y(o,r,a),Y(o,e.domain,o);let l=Z(o,dm);Z(a,dm,l),Z(s,dm,l),Z(c,dm,l);let u=Z(a,vm);Y(u,r,a),Y(u,e.domain,a);let d=ch();Y(l,e.domain,d),Y(d,e.domain,d);let f=Z(d,vm);Y(f,e.domain,d);let p=ch(ih);Y(f,e.tld,p),Y(f,e.utld,p),Z(l,Rp,p);let m=Z(d,xm);Z(m,xm,m),Y(m,e.domain,d),Y(p,e.domain,d),Z(p,vm,f),Z(p,xm,m);let h=Z(o,xm),g=Z(o,vm);Z(h,xm,h),Y(h,e.domain,o),Y(g,r,a),Y(g,e.domain,o);let _=ch(sh);Y(g,e.tld,_),Y(g,e.utld,_),Y(_,e.domain,o),Y(_,r,a),Z(_,vm,g),Z(_,xm,h),Z(_,dm,l);let v=Z(_,hm),y=ch(sh);Y(v,e.numeric,y);let b=ch(sh),x=ch();Y(b,t,b),Y(b,n,x),Y(x,t,b),Y(x,n,x),Z(_,Am,b),Z(y,Am,b);let S=Z(s,hm),C=Z(Z(Z(c,hm),Am),Am);Y(s,e.domain,o),Z(s,vm,g),Z(s,xm,h),Y(c,e.domain,o),Z(c,vm,g),Z(c,xm,h),Y(S,e.domain,b),Z(S,Am,b),Z(S,Em,b),Y(C,e.domain,b),Y(C,t,b),Z(C,Am,b);let w=[[Kp,qp],[Jp,Yp],[Xp,Zp],[Qp,$p],[em,tm],[nm,rm],[im,am],[om,sm]];for(let e=0;e<w.length;e++){let[r,i]=w[e],a=Z(b,r);Z(x,r,a);let o=ch(sh);Y(a,t,o);let s=ch();Y(a,n,s),Z(a,i,b),Y(o,t,o),Y(o,n,s),Y(s,t,o),Y(s,n,s),Z(o,i,b),Z(s,i,b)}return Z(i,Rp,_),Z(i,Gp,oh),{start:i,tokens:Fm}}function uh(e,t,n){let r=n.length,i=0,a=[],o=[];for(;i<r;){let s=e,c=null,l=null,u=0,d=null,f=-1;for(;i<r&&!(c=s.go(n[i].t));)o.push(n[i++]);for(;i<r&&(l=c||s.go(n[i].t));)c=null,s=l,s.accepts()?(f=0,d=s):f>=0&&f++,i++,u++;if(f<0)i-=u,i<r&&(o.push(n[i]),i++);else{o.length>0&&(a.push(dh(ah,t,o)),o=[]),i-=f,u-=f;let e=d.t,r=n.slice(i-u,i);a.push(dh(e,t,r))}}return o.length>0&&a.push(dh(ah,t,o)),a}function dh(e,t,n){let r=n[0].s,i=n[n.length-1].e;return new e(t.slice(r,i),n)}var fh=typeof console<`u`&&console&&console.warn||(()=>{}),ph=`until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.`,Q={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function mh(){return Mp.groups={},Q.scanner=null,Q.parser=null,Q.tokenQueue=[],Q.pluginQueue=[],Q.customSchemes=[],Q.initialized=!1,Q}function hh(e,t=!1){if(Q.initialized&&fh(`linkifyjs: already initialized - will not register custom scheme "${e}" ${ph}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(e))throw Error(`linkifyjs: incorrect scheme format.
|
|
104
104
|
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
105
105
|
2. Cannot start or end with "-"
|
|
106
|
-
3. "-" cannot repeat`);Pe.customSchemes.push([n,e])}function QS(){Pe.scanner=US(Pe.customSchemes);for(let n=0;n<Pe.tokenQueue.length;n++)Pe.tokenQueue[n][1]({scanner:Pe.scanner});Pe.parser=JS(Pe.scanner.tokens);for(let n=0;n<Pe.pluginQueue.length;n++)Pe.pluginQueue[n][1]({scanner:Pe.scanner,parser:Pe.parser});return Pe.initialized=!0,Pe}function Lu(n){return Pe.initialized||QS(),KS(Pe.parser.start,n,jg(Pe.scanner.start,n))}Lu.scan=jg;function Ug(n,e=null,t=null){if(e&&typeof e=="object"){if(t)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);t=e,e=null}const o=new Pu(t),r=Lu(n),i=[];for(let a=0;a<r.length;a++){const c=r[a];c.isLink&&(!e||c.t===e)&&o.check(c)&&i.push(c.toFormattedObject(o))}return i}const ju="[\0- -\u2029 ]",XS=new RegExp(ju),ZS=new RegExp(`${ju}$`),eC=new RegExp(ju,"g");function tC(n){return n.length===1?n[0].isLink:n.length===3&&n[1].isLink?["()","[]"].includes(n[0].value+n[2].value):!1}function nC(n){return new dt({key:new Bt("autolink"),appendTransaction:(e,t,o)=>{const r=e.some(m=>m.docChanged)&&!t.doc.eq(o.doc),i=e.some(m=>m.getMeta("preventAutolink"));if(!r||i)return;const{tr:a}=o,c=o1(t.doc,[...e]);if(d1(c).forEach(({newRange:m})=>{const p=i1(o.doc,m,k=>k.isTextblock);let h,g;if(p.length>1)h=p[0],g=o.doc.textBetween(h.pos,h.pos+h.node.nodeSize,void 0," ");else if(p.length){const k=o.doc.textBetween(m.from,m.to," "," ");if(!ZS.test(k))return;h=p[0],g=o.doc.textBetween(h.pos,m.to,void 0," ")}if(h&&g){const k=g.split(XS).filter(Boolean);if(k.length<=0)return!1;const b=k[k.length-1],$=h.pos+g.lastIndexOf(b);if(!b)return!1;const S=Lu(b).map(N=>N.toObject(n.defaultProtocol));if(!tC(S))return!1;S.filter(N=>N.isLink).map(N=>({...N,from:$+N.start+1,to:$+N.end+1})).filter(N=>o.schema.marks.code?!o.doc.rangeHasMark(N.from,N.to,o.schema.marks.code):!0).filter(N=>n.validate(N.value)).filter(N=>n.shouldAutoLink(N.value)).forEach(N=>{rg(N.from,N.to,o.doc).some(P=>P.mark.type===n.type)||a.addMark(N.from,N.to,n.type.create({href:N.href}))})}}),!!a.steps.length)return a}})}function oC(n){return new dt({key:new Bt("handleClickLink"),props:{handleClick:(e,t,o)=>{var r,i;if(o.button!==0||!e.editable)return!1;let a=o.target;const c=[];for(;a.nodeName!=="DIV";)c.push(a),a=a.parentNode;if(!c.find(g=>g.nodeName==="A"))return!1;const d=og(e.state,n.type.name),m=o.target,p=(r=m?.href)!==null&&r!==void 0?r:d.href,h=(i=m?.target)!==null&&i!==void 0?i:d.target;return m&&p?(window.open(p,h),!0):!1}}})}function rC(n){return new dt({key:new Bt("handlePasteLink"),props:{handlePaste:(e,t,o)=>{const{state:r}=e,{selection:i}=r,{empty:a}=i;if(a)return!1;let c="";o.content.forEach(m=>{c+=m.textContent});const d=Ug(c,{defaultProtocol:n.defaultProtocol}).find(m=>m.isLink&&m.value===c);return!c||!d?!1:n.editor.commands.setMark(n.type,{href:d.href})}}})}function ko(n,e){const t=["http","https","ftp","ftps","mailto","tel","callto","sms","cid","xmpp"];return e&&e.forEach(o=>{const r=typeof o=="string"?o:o.scheme;r&&t.push(r)}),!n||n.replace(eC,"").match(new RegExp(`^(?:(?:${t.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,"i"))}const iC=Vr.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(n=>{if(typeof n=="string"){_g(n);return}_g(n.scheme,n.optionalSlashes)})},onDestroy(){GS()},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:(n,e)=>!!ko(n,e.protocols),validate:n=>!!n,shouldAutoLink:n=>!!n}},addAttributes(){return{href:{default:null,parseHTML(n){return n.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:n=>{const e=n.getAttribute("href");return!e||!this.options.isAllowedUri(e,{defaultValidate:t=>!!ko(t,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:n}){return this.options.isAllowedUri(n.href,{defaultValidate:e=>!!ko(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?["a",Uo(this.options.HTMLAttributes,n),0]:["a",Uo(this.options.HTMLAttributes,{...n,href:""}),0]},addCommands(){return{setLink:n=>({chain:e})=>{const{href:t}=n;return this.options.isAllowedUri(t,{defaultValidate:o=>!!ko(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().setMark(this.name,n).setMeta("preventAutolink",!0).run():!1},toggleLink:n=>({chain:e})=>{const{href:t}=n;return this.options.isAllowedUri(t,{defaultValidate:o=>!!ko(o,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?e().toggleMark(this.name,n,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run():!1},unsetLink:()=>({chain:n})=>n().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[L1({find:n=>{const e=[];if(n){const{protocols:t,defaultProtocol:o}=this.options,r=Ug(n).filter(i=>i.isLink&&this.options.isAllowedUri(i.value,{defaultValidate:a=>!!ko(a,t),protocols:t,defaultProtocol:o}));r.length&&r.forEach(i=>e.push({text:i.value,data:{href:i.href},index:i.start}))}return e},type:this.type,getAttributes:n=>{var e;return{href:(e=n.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const n=[],{protocols:e,defaultProtocol:t}=this.options;return this.options.autolink&&n.push(nC({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:o=>this.options.isAllowedUri(o,{defaultValidate:r=>!!ko(r,e),protocols:e,defaultProtocol:t}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&n.push(oC({type:this.type})),this.options.linkOnPaste&&n.push(rC({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),n}}),sC=Kr.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:n}){return["p",Uo(this.options.HTMLAttributes,n),0]},addCommands(){return{setParagraph:()=>({commands:n})=>n.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),aC=At.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new dt({key:new Bt("placeholder"),props:{decorations:({doc:n,selection:e})=>{const t=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:o}=e,r=[];if(!t)return null;const i=this.editor.isEmpty;return n.descendants((a,c)=>{const d=o>=c&&o<=c+a.nodeSize,m=!a.isLeaf&&Us(a);if((d||!this.options.showOnlyCurrent)&&m){const p=[this.options.emptyNodeClass];i&&p.push(this.options.emptyEditorClass);const h=Rt.node(c,c+a.nodeSize,{class:p.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:a,pos:c,hasAnchor:d}):this.options.placeholder});r.push(h)}return this.options.includeChildren}),He.create(n,r)}}})]}}),lC=Kr.create({name:"text",group:"inline"});function cC({placeholder:n,autofocus:e=!1,content:t=""}){return{extensions:[TS,lC,sC,iC.configure({openOnClick:!1}),aC.configure({placeholder:n,showOnlyWhenEditable:!1}),OS.configure({}),PS.configure({})],content:t,autofocus:e,editorProps:{attributes:{class:"gh-comment-content focus:outline-0","data-testid":"editor"}},parseOptions:{preserveWhitespace:"full"}}}function uC(n,e){const t=E.useRef(null),o=E.useCallback(r=>{t.current,r&&n&&n(r),t.current=r},[n,e]);return[t,o]}function dC(n){const{popup:e}=oe();return e?.type===n}function mC(n){const{t:e}=oe();return E.useMemo(()=>jb(n,e),[n])}function Iu(n,e=!1){const[t,o]=E.useState(e),r=E.useMemo(()=>({...cC(n)}),[n]),i=oS(r,[r]);return E.useEffect(()=>{if(i){const a=()=>{const c=!i.isEmpty;o(c)};return i.on("update",a),i.on("transaction",a),a(),()=>{i.off("update",a),i.off("transaction",a)}}},[i]),{editor:i,hasContent:t}}function pC(n,e){const t=E.useCallback(()=>{if(n.current)for(const i of Object.values(e))n.current.classList.add(...i.default.split(" ")),n.current.classList.remove(...i.outOfViewport.split(" "))},[n,e]),o=E.useCallback(i=>{if(n.current)for(const[a,c]of Object.entries(e))i[a]?(n.current.classList.add(...c.outOfViewport.split(" ")),n.current.classList.remove(...c.default.split(" "))):(n.current.classList.add(...c.default.split(" ")),n.current.classList.remove(...c.outOfViewport.split(" ")))},[n,e]),r=E.useCallback(()=>{if(n.current){const i=n.current.ownerDocument,a=i.defaultView||window;t();const c=n.current.getBoundingClientRect(),d={top:c.top<0,bottom:c.bottom>(a.innerHeight||i.documentElement.clientHeight),left:c.left<0,right:c.right>(a.innerWidth||i.documentElement.clientWidth)};o(d)}},[n]);E.useLayoutEffect(()=>{r()},[n]),E.useEffect(()=>(window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}),[])}const fC=({comment:n,submit:e,progress:t,setProgress:o,close:r,isOpen:i,editor:a,submitText:c,submitSize:d,openForm:m})=>{const{dispatchAction:p,t:h}=oe();let g=null;E.useEffect(()=>{if(a&&m){const $=()=>{const S=n&&m.type==="edit"?a.getHTML()!==n.html:!a.isEmpty;m.hasUnsavedChanges!==S&&p("setCommentFormHasUnsavedChanges",{id:m.id,hasUnsavedChanges:S})};return a.on("update",$),a.on("transaction",$),$(),()=>{a.off("update",$),a.off("transaction",$)}}},[a,n,m,p]),t==="sending"&&(g=w.jsx(ss,{className:"size-[24px] fill-white","data-testid":"button-spinner"}));const k=E.useCallback($=>{if(a?.isFocused){$.stopPropagation();return}},[a]),b=E.useCallback(async()=>{if(!(!a||a.isEmpty)){o("sending");try{await e({html:a.getHTML()})}catch{o("error");return}return r?r():(o("sent"),a.chain().clearContent().blur().run()),!1}},[o,a,e,r]);return E.useEffect(()=>{const $=S=>{if(S.metaKey||S.ctrlKey){S.key==="Enter"&&a?.isFocused&&(b(),a?.commands.blur());return}if(S.key==="Escape"){a?.isFocused&&(r?r():a?.commands.blur());return}};return window.addEventListener("keydown",$,{passive:!0}),()=>{window.removeEventListener("keydown",$)}},[a,r,b]),w.jsxs(w.Fragment,{children:[w.jsx("div",{className:`min-h-[120px] w-full rounded-lg border border-black/10 bg-white/75 p-2 pb-[68px] font-sans text-md leading-normal transition-all delay-100 duration-150 focus:outline-0 dark:bg-white/10 dark:text-neutral-300 sm:px-3 sm:text-lg ${i?"cursor-text":"cursor-pointer"}`,"data-testid":"form-editor",children:w.jsx(K1,{editor:a,onMouseDown:k,onTouchStart:k})}),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:h("Cancel")}),w.jsxs("button",{className:`flex w-auto items-center justify-center ${d==="medium"&&"sm:min-w-[100px]"} ${d==="small"&&"sm:min-w-[64px]"} h-[40px] rounded-md bg-[var(--gh-accent-color)] px-3 py-2 text-center font-sans text-base font-medium text-white outline-0 transition-colors duration-200 hover:brightness-105 disabled:bg-black/5 disabled:text-neutral-900/30 dark:disabled:bg-white/15 dark:disabled:text-white/35 sm:text-sm`,"data-testid":"submit-form-button",disabled:!a||a.isEmpty,type:"button",onClick:b,children:[g&&w.jsx("span",{className:"mr-1",children:g}),c&&w.jsx("span",{children:c})]})]})]})},hC=({show:n,name:e,expertise:t,replyingToText:o,editName:r,editExpertise:i})=>{const{t:a}=oe(),c=!!o;return w.jsxs(ho,{"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:n,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 dark:text-white/85 sm:w-auto sm:text-sm","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 dark:text-white/60 dark:hover:text-white/75 sm:text-sm ${!t&&"text-black/30 hover:text-black/50 dark:text-white/30 dark:hover:text-white/50"}`,"data-testid":"expertise-button",type:"button",onMouseDown:i,children:[w.jsxs("span",{children:[w.jsx("span",{className:"mx-[0.3em] hidden sm:inline",children:"·"}),t||a("Add your expertise")]}),t&&w.jsx(Ub,{className:"ml-1 size-[12px] translate-x-[-6px] stroke-black/50 opacity-0 transition-all duration-100 ease-out group-hover:translate-x-0 group-hover:stroke-black/75 group-hover:opacity-100 dark:stroke-white/60 dark:group-hover:stroke-white/75"})]})})]}),c&&w.jsxs("div",{className:"mt-0.5 line-clamp-1 font-sans text-base leading-snug text-neutral-900/50 dark:text-white/60 sm:text-sm","data-testid":"replying-to",children:[w.jsxs("span",{children:[a("Reply to"),":"]})," ",w.jsx("span",{className:"font-semibold text-neutral-900/60 dark:text-white/70",children:o})]})]})},Bu=({comment:n,submit:e,submitText:t,submitSize:o,close:r,editor:i,reduced:a,isOpen:c,openForm:d})=>{const{member:m}=oe(),p=dC("addDetailsPopup"),[h,g]=E.useState("default"),k=E.useRef(null),b=m?.name;(h==="sending"||b&&p)&&(c=!0);const $=S=>{if(i?.isFocused){S.preventDefault();return}};return E.useEffect(()=>{i&&i.setEditable(!!b&&h!=="sending")},[i,b,h]),w.jsx("form",{ref:k,"data-testid":"form",onMouseDown:$,onTouchStart:$,children:w.jsx(fC,{close:r,comment:n,editor:i,isOpen:c,openForm:d,progress:h,reduced:a,setProgress:g,submit:e,submitSize:o,submitText:t})})},Hg=({editor:n,isOpen:e,reduced:t,openForm:o,threadedLayout:r=!1,children:i})=>{const{member:a,dispatchAction:c}=oe(),d=a?.name,m=a?.expertise;let p="";e&&(p=!!o?.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 h=E.useCallback($=>{n?.commands?.blur(),c("openPopup",{type:"addDetailsPopup",expertiseAutofocus:$.expertiseAutofocus??!1,callback:function(S){n&&S&&(n.setEditable(!0),n.commands.focus())}})},[n,c]),g=E.useCallback(()=>{h({expertiseAutofocus:!1})},[h]),k=E.useCallback(()=>{h({expertiseAutofocus:!0})},[h]),b=E.useCallback(()=>{if(n&&!n.isFocused){if(!d){g();return}n.commands.focus()}},[n,g,d]);return w.jsx("div",{className:`${r?"":"-mx-2 mt-[-10px]"} rounded-md transition duration-200 ${e?"cursor-default":"cursor-pointer"}`,children:w.jsxs("div",{className:"relative w-full",onClick:b,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] ${t&&"pl-0"} ${p}`,children:i})}),w.jsxs("div",{className:`absolute left-0 flex h-11 w-full items-start justify-start sm:h-12 ${r?"top-0":"top-1"}`,children:[w.jsx("div",{className:"pointer-events-none mr-2 grow-0 sm:mr-3",children:w.jsx(Kl,{member:a})}),w.jsx("div",{className:"grow-1 mt-0.5 w-full",children:w.jsx(hC,{editExpertise:k,editName:g,expertise:m,name:d,replyingToId:o?.in_reply_to_id,replyingToText:o?.in_reply_to_snippet,show:e})})]})]})})},gC=({comment:n,openForm:e,parent:t})=>{const{dispatchAction:o,t:r}=oe(),i=E.useMemo(()=>({placeholder:r("Edit this comment"),autofocus:!1,content:n.html}),[n]),{editor:a}=Iu(i);E.useEffect(()=>{a&&a.chain().focus().command(({tr:m,commands:p})=>p.setTextSelection({from:m.doc.content.size,to:m.doc.content.size})).run()},[a]);const c=E.useCallback(async({html:m})=>{await o("editComment",{comment:{id:n.id,html:m},parent:t})},[t,n,o]),d=E.useCallback(()=>{o("closeCommentForm",e.id)},[o,e]);return w.jsx("div",{className:"relative w-full",children:w.jsx(Bu,{close:d,comment:n,editor:a,isOpen:!0,openForm:e,reduced:rs(),submit:c,submitSize:"small",submitText:r("Save")})})},yC=n=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...n},E.createElement("path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z"}),E.createElement("path",{d:"M17 14V2"})),Vg=n=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...n},E.createElement("path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z"}),E.createElement("path",{d:"M7 10v12"})),kC=({comment:n,disabled:e,setDisabled:t})=>{const{dispatchAction:o,isMember:r,hasRequiredTier:i,t:a}=oe(),[c,d]=E.useState(""),[m,p]=E.useState(!1),h=r&&i,g=n.count.likes,k=e??m,b=t??p,$=()=>{o("openPopup",{type:"ctaPopup",commentId:n.id})},S=async()=>{if(!h){$();return}b(!0);try{n.liked?await o("unlikeComment",n):(await o("likeComment",n),d("animate-heartbeat"),setTimeout(()=>{d("")},400))}finally{b(!1)}};return w.jsxs("button",{"aria-label":n.liked?a("Remove like"):a("Like"),className:`duration-50 group flex cursor-pointer items-center gap-1.5 font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${n.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:k,type:"button",onClick:S,children:[w.jsx(Vg,{className:c+` h-4 w-4 ${n.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"} ${!n.liked&&h&&"group-hover:stroke-black/75 dark:group-hover:stroke-white/75"} transition duration-50 ease-linear`}),w.jsx("span",{className:"tabular-nums",children:g})]})},bC=({comment:n,disabled:e,setDisabled:t})=>{const{dispatchAction:o,isMember:r,hasRequiredTier:i,t:a}=oe(),[c,d]=E.useState(""),[m,p]=E.useState(!1),h=r&&i,g=e??m,k=t??p,b=()=>{o("openPopup",{type:"ctaPopup",commentId:n.id})},$=async()=>{if(!h){b();return}k(!0);try{n.disliked?await o("undislikeComment",n):(await o("dislikeComment",n),d("animate-heartbeat"),setTimeout(()=>{d("")},400))}finally{k(!1)}};return w.jsx("button",{"aria-label":n.disliked?a("Remove dislike"):a("Dislike"),className:`duration-50 group flex cursor-pointer items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${n.disliked?"text-black/90 dark:text-white/90":"text-black/50 hover:text-black/75 dark:text-white/60 dark:hover:text-white/75"}`,"data-testid":"dislike-button",disabled:g,type:"button",onClick:$,children:w.jsx(yC,{className:c+` h-4 w-4 ${n.disliked?"fill-black dark:fill-white stroke-black dark:stroke-white":"stroke-black/50 group-hover:stroke-black/75 dark:stroke-white/60 dark:group-hover:stroke-white/75"} ${!n.disliked&&h&&"group-hover:stroke-black/75 dark:group-hover:stroke-white/75"} transition duration-50 ease-linear`})})},vC=({count:n,liked:e})=>w.jsxs("div",{className:"flex items-center gap-1.5","data-testid":"like-count",children:[w.jsx(Vg,{className:`size-4 ${e?"fill-black stroke-black dark:fill-white dark:stroke-white":"stroke-black/50 dark:stroke-white/60"}`}),w.jsx("span",{className:`font-sans text-base tabular-nums sm:text-sm ${e?"text-black/90 dark:text-white/90":"text-black/50 dark:text-white/60"}`,children:n})]}),wC=n=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...n},E.createElement("path",{d:"M15 3h6v6"}),E.createElement("path",{d:"M10 14 21 3"}),E.createElement("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"})),$C=n=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...n},E.createElement("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"}),E.createElement("circle",{cx:12,cy:12,r:3})),xC=n=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...n},E.createElement("path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"}),E.createElement("path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242"}),E.createElement("path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"}),E.createElement("path",{d:"m2 2 20 20"})),Yg=n=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...n},E.createElement("path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}),E.createElement("path",{d:"m15 5 4 4"})),zu=n=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...n},E.createElement("path",{d:"M12 17v5"}),E.createElement("path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"})),Jg=n=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...n},E.createElement("path",{d:"M12 17v5"}),E.createElement("path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89"}),E.createElement("path",{d:"m2 2 20 20"}),E.createElement("path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11"})),Kg=n=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...n},E.createElement("path",{d:"M10 11v6"}),E.createElement("path",{d:"M14 11v6"}),E.createElement("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}),E.createElement("path",{d:"M3 6h18"}),E.createElement("path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"})),Wg=({comment:n,close:e,showAuthorActions:t=!1,toggleEdit:o})=>{const{dispatchAction:r,t:i,adminUrl:a}=oe(),c=Jl(),d=U=>()=>{U(),e()},m=o&&d(o),p=d(()=>{r("openPopup",{type:"deletePopup",comment:n})}),h=d(()=>r("hideComment",n)),g=d(()=>r("showComment",n)),k=d(()=>r("pinComment",n)),b=d(()=>r("unpinComment",n)),$=n.status!=="published",S=c?.commentsPinning===!0&&!n.parent_id&&n.status!=="deleted",N=a?`${a}#/comments/?id=is:${n.id}`:null,P="flex w-full items-center gap-3 rounded px-3 py-2 text-left text-[14px] leading-5 transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700",L=`${P} text-neutral-900 dark:text-white`,j=`${P} text-red-600 dark:text-red-500`,Y="size-4 shrink-0";return w.jsxs("div",{className:"flex w-full flex-col gap-0.5",children:[N&&w.jsxs("a",{className:L,"data-testid":"view-in-admin-button",href:N,rel:"noopener noreferrer",target:"_blank",onClick:e,children:[w.jsx(wC,{"aria-hidden":"true",className:Y}),w.jsx("span",{children:i("View in admin")})]}),S&&(n.pinned?w.jsxs("button",{className:L,"data-testid":"unpin-button",type:"button",onClick:b,children:[w.jsx(Jg,{"aria-hidden":"true",className:Y}),w.jsx("span",{children:i("Unpin comment")})]}):w.jsxs("button",{className:L,"data-testid":"pin-button",type:"button",onClick:k,children:[w.jsx(zu,{"aria-hidden":"true",className:Y}),w.jsx("span",{children:i("Pin comment")})]})),$?w.jsxs("button",{className:L,"data-testid":"show-button",type:"button",onClick:g,children:[w.jsx($C,{"aria-hidden":"true",className:Y}),w.jsx("span",{children:i("Show comment")})]}):w.jsxs("button",{className:L,"data-testid":"hide-button",type:"button",onClick:h,children:[w.jsx(xC,{"aria-hidden":"true",className:Y}),w.jsx("span",{children:i("Hide comment")})]}),t&&w.jsx("div",{className:"my-1 border-t border-neutral-200 dark:border-neutral-700"}),t&&m&&w.jsxs("button",{className:L,"data-testid":"edit",type:"button",onClick:m,children:[w.jsx(Yg,{"aria-hidden":"true",className:Y}),w.jsx("span",{children:i("Edit")})]}),t&&w.jsxs("button",{className:j,"data-testid":"delete",type:"button",onClick:p,children:[w.jsx(Kg,{"aria-hidden":"true",className:Y}),w.jsx("span",{children:i("Delete")})]})]})},SC=({comment:n,close:e,toggleEdit:t})=>{const{dispatchAction:o,t:r}=oe(),i=()=>{o("openPopup",{type:"deletePopup",comment:n}),e()},a="flex w-full items-center gap-3 rounded px-3 py-2 text-left text-[14px] leading-5 transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700",c=`${a} text-neutral-900 dark:text-white`,d=`${a} text-red-600 dark:text-red-500`,m="size-4 shrink-0";return w.jsxs("div",{className:"flex w-full flex-col gap-0.5",children:[w.jsxs("button",{className:c,"data-testid":"edit",type:"button",onClick:t,children:[w.jsx(Yg,{"aria-hidden":"true",className:m}),w.jsx("span",{children:r("Edit")})]}),w.jsxs("button",{className:d,"data-testid":"delete",type:"button",onClick:i,children:[w.jsx(Kg,{"aria-hidden":"true",className:m}),w.jsx("span",{children:r("Delete")})]})]})},CC=n=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...n},E.createElement("path",{d:"M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528"})),EC=({comment:n,close:e})=>{const{dispatchAction:t,t:o}=oe(),r=()=>{t("openPopup",{type:"reportPopup",comment:n}),e()};return w.jsx("div",{className:"flex w-full flex-col gap-0.5",children:w.jsxs("button",{className:"flex w-full items-center gap-3 rounded px-3 py-2 text-left text-[14px] leading-5 text-neutral-900 transition-colors hover:bg-neutral-100 dark:text-white dark:hover:bg-neutral-700",type:"button",onClick:r,children:[w.jsx(CC,{"aria-hidden":"true",className:"size-4 shrink-0"}),w.jsx("span",{className:"hidden sm:inline",children:o("Report comment")}),w.jsx("span",{className:"sm:hidden",children:o("Report")})]})})},NC=({comment:n,close:e,toggleEdit:t})=>{const{member:o,isAdmin:r}=oe(),i=o&&n.member?.uuid===o?.uuid,a=E.useRef(null),c=E.useRef(null);pC(c,{bottom:{default:"top-0",outOfViewport:"bottom-full mb-6"}}),E.useEffect(()=>{const h=()=>{e()};window.addEventListener("click",h,{passive:!0});const g=a.current?.ownerDocument?.defaultView;return g&&g!==window&&g.addEventListener("click",h,{passive:!0}),()=>{window.removeEventListener("click",h),g&&g!==window&&g.removeEventListener("click",h)}},[e]),E.useEffect(()=>{const h=g=>{g.key==="Escape"&&e()};return window.addEventListener("keydown",h,{passive:!0}),()=>{window.removeEventListener("keydown",h)}},[e]);const d=h=>{h.stopPropagation()},m="absolute z-10 w-52 rounded-lg bg-white p-1 font-sans text-sm shadow-lg outline-0 dark:bg-neutral-800 dark:text-white";let p=null;if(n.status==="published")r?p=w.jsx(Wg,{close:e,comment:n,showAuthorActions:!!i,toggleEdit:t}):i?p=w.jsx(SC,{close:e,comment:n,toggleEdit:t}):p=w.jsx(EC,{close:e,comment:n});else if(r)p=w.jsx(Wg,{close:e,comment:n});else return null;return w.jsx("div",{ref:a,className:"relative","data-testid":"comment-context-menu",onClick:d,children:w.jsx("div",{ref:c,className:m,"data-testid":"comment-context-menu-inner",children:p})})},DC=n=>E.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"black",xmlns:"http://www.w3.org/2000/svg",...n},E.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"}),E.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"}),E.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"})),Fu=({comment:n,toggleEdit:e})=>{const[t,o]=E.useState(!1),r=()=>{o(a=>!a)},i=()=>{o(!1)};return w.jsxs("div",{"data-testid":"more-button",children:[w.jsx("button",{className:"outline-0",type:"button",onClick:r,children:w.jsx(DC,{className:`duration-50 gh-comments-icon gh-comments-icon-more outline-0 transition ease-linear hover:fill-black/75 dark:hover:fill-white/75 ${t?"fill-black/75 dark:fill-white/75":"fill-black/50 dark:fill-white/60"}`})}),t?w.jsx(NC,{close:i,comment:n,toggleEdit:e}):null]})},qg=({comment:n})=>{const{dispatchAction:e,isAdmin:t,t:o}=oe();if(Jl()?.commentsPinning!==!0||!n.pinned)return null;const i="inline-flex items-center gap-1 rounded-full border border-amber-300/70 bg-amber-50 px-2 py-0.5 font-sans text-xs font-medium leading-none text-amber-800 dark:border-amber-400/30 dark:bg-amber-400/10 dark:text-amber-100";if(t){const a=c=>{c.stopPropagation(),e("unpinComment",n)};return w.jsxs("button",{"aria-label":o("Unpin comment"),className:`${i} group hover:border-amber-400 hover:bg-amber-100 dark:hover:border-amber-400/50 dark:hover:bg-amber-400/20`,"data-testid":"pinned-comment-label",type:"button",onClick:a,children:[w.jsxs("span",{className:"grid size-3 shrink-0",children:[w.jsx(zu,{"aria-hidden":"true",className:"col-start-1 row-start-1 size-3 group-hover:opacity-0 group-focus-visible:opacity-0"}),w.jsx(Jg,{"aria-hidden":"true",className:"col-start-1 row-start-1 size-3 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100"})]}),w.jsxs("span",{className:"grid justify-items-start text-left",children:[w.jsx("span",{className:"col-start-1 row-start-1 group-hover:opacity-0 group-focus-visible:opacity-0",children:o("Pinned")}),w.jsx("span",{className:"col-start-1 row-start-1 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100",children:o("Unpin")})]})]})}return w.jsxs("span",{className:i,"data-testid":"pinned-comment-label",children:[w.jsx(zu,{"aria-hidden":"true",className:"size-3"}),o("Pinned")]})},RC=({loadMore:n,count:e})=>{const{t}=oe(),o=e===1?t("Show 1 more reply"):t("Show {amount} more replies",{amount:ns(e)}),r=t("{amount} more",{amount:ns(e)});return w.jsx("div",{className:"flex w-full items-center justify-start","data-testid":"replies-pagination",children:w.jsx("button",{className:"group mb-10 ml-[48px] flex w-auto items-center px-0 pb-2 pt-0 text-left font-sans text-md font-semibold text-neutral-700 dark:text-white sm:mb-12 ","data-testid":"reply-pagination-button",type:"button",onClick:n,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})," "]})})})},Gg=3,AC=({comment:n,useThreading:e=!1})=>{const{commentIdToScrollTo:t}=oe(),o=E.useRef(new Set(n.replies.map(h=>h.id))),[r,i]=E.useState(()=>!!t&&n.replies.slice(Gg).some(h=>h.id===t)),a=n.replies.some(h=>!o.current.has(h.id)),d=r||a?n.replies:n.replies.slice(0,Gg),m=n.replies.length-d.length,p=()=>{i(!0)};return w.jsxs("div",{children:[d.map((h,g)=>w.jsx(Na,{comment:h,isLastSibling:g===d.length-1,layoutVariant:e?"reply":"root",parent:n,useThreading:e},h.id)),m>0&&w.jsx(RC,{count:m,loadMore:p})]})},OC=n=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"black",width:16,height:16,viewBox:"0 0 16 16",...n},E.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"})),TC=({comment:n,disabled:e,isReplying:t,openReplyForm:o})=>{const{t:r,dispatchAction:i,isMember:a,hasRequiredTier:c}=oe(),d=a&&c,m=()=>{if(!d){i("openPopup",{type:"ctaPopup",commentId:n.id});return}o()};return w.jsxs("button",{className:`duration-50 group flex items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${t?"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:!!e,type:"button",onClick:m,children:[w.jsx(OC,{className:`mr-[6px] ${t?"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")]})},Qg=({openForm:n,parent:e,threadedLayout:t=!1})=>{const{postId:o,dispatchAction:r,t:i}=oe(),[,a]=uC(is),c=E.useMemo(()=>({placeholder:i("Reply to comment"),autofocus:!0}),[]),{editor:d}=Iu(c),m=E.useCallback(async({html:g})=>{await r("addReply",{parent:e,reply:{post_id:o,in_reply_to_id:n.in_reply_to_id,status:"published",html:g}})},[e,o,n,r]),p=E.useCallback(()=>{r("closeCommentForm",n.id)},[r,n]),h=w.jsxs(w.Fragment,{children:[w.jsx("span",{className:"hidden sm:inline",children:i("Add reply")}),w.jsx("span",{className:"sm:hidden",children:i("Reply")})]});return w.jsx("div",{ref:a,"data-testid":"reply-form",children:w.jsx("div",{className:`${t?"":"mt-[-16px]"} pr-2`,children:w.jsx(Hg,{editor:d,isOpen:!0,openForm:n,reduced:rs(),threadedLayout:t,children:w.jsx(Bu,{close:p,editor:d,isOpen:!0,openForm:n,reduced:rs(),submit:m,submitSize:"medium",submitText:h})})})})},PC={requestFocusedThreadView:()=>{},requestInstantScroll:()=>{},navigateBackToParent:()=>{}},Xg=E.createContext(PC);function Zg(){return E.useContext(Xg)}const MC={maxThreadDepth:ts},ey=E.createContext(MC);function LC(){return E.useContext(ey)}const ty=({reply:n,threadParentComment:e,useThreading:t,depth:o})=>{const{t:r}=oe(),{requestFocusedThreadView:i}=Zg(),{maxThreadDepth:a}=LC(),c=n.nestedReplies.length>0,d=o>=a,m=n.siblingIndex===n.siblingCount-1,p=n.nestedReplies[0];let h=null;return c&&!d?h=n.nestedReplies.map(g=>w.jsx(ty,{depth:o+1,reply:g,threadParentComment:e,useThreading:t},g.id)):c&&d&&(h=w.jsxs("a",{className:"relative mb-4 flex min-h-10 items-center gap-1.5 px-0 pl-1 font-sans text-[1.3rem] font-semibold text-neutral-900/55 transition-colors hover:text-neutral-900/80 dark:text-white/45 dark:hover:text-white/70","data-testid":"continue-thread-button",href:$r(p.id),target:"_parent",onClick:()=>i(p.id),children:[w.jsx("span",{className:"pointer-events-none absolute -left-4 top-0 h-5 w-3 border-b border-l border-neutral-300 [border-bottom-left-radius:12px_16px] dark:border-neutral-700 sm:-left-5 sm:w-4 sm:[border-bottom-left-radius:16px_16px]","aria-hidden":!0}),w.jsxs("span",{children:[r("Read more replies")," ›"]})]})),w.jsx(Na,{comment:n,isLastSibling:m,layoutVariant:"reply",parent:e,useThreading:t,children:h})},ny=({replies:n,threadParentComment:e,useThreading:t,startDepth:o=1})=>w.jsx(w.Fragment,{children:n.map(r=>w.jsx(ty,{depth:o,reply:r,threadParentComment:e,useThreading:t},r.id))});function oy(n){const e=n.replies||[],t=new Map,o=new Map,r=new Map;e.forEach(p=>{t.set(p.id,{...p,depth:1,nestedReplies:[],siblingIndex:0,siblingCount:0})});const i=[];e.forEach(p=>{const h=t.get(p.id);if(!h)return;const g=p.in_reply_to_id?t.get(p.in_reply_to_id):null;g&&g.id!==h.id?(o.set(h.id,g.id),g.nestedReplies.push(h)):(o.set(h.id,null),i.push(h))});const a=(p,h)=>{p.forEach((g,k)=>{g.depth=h,g.siblingIndex=k,g.siblingCount=p.length,r.set(g.id,h),a(g.nestedReplies,h+1)})};a(i,1);const c=p=>t.get(p),d=(p,h)=>{let g=p;for(;g.depth>h;){const k=o.get(g.id),b=k?t.get(k):null;if(!b)return g;g=b}return g};return{rootComment:n,roots:i,getWindowForComment:(p,h)=>{const g=c(p);if(!g||g.depth<=h)return null;const k=Math.floor((g.depth-1)/h)*h,b=d(g,k);return{topLevelComment:n,focusedComment:b,backComment:b}}}}function jC(n){return oy(n).roots}function IC(n,e,t){if(!e)return null;for(const o of n){if(o.id===e)return null;if(o.replies?.some(r=>r.id===e))return oy(o).getWindowForComment(e,t)}return null}const BC=({comment:n,useThreading:e})=>{const t=E.useMemo(()=>jC(n),[n]);return w.jsx("div",{children:w.jsx(ny,{replies:t,threadParentComment:n,useThreading:e})})},Na=({children:n,comment:e,parent:t,useThreading:o,layoutVariant:r,isLastSibling:i})=>{const{commentsIsLoading:a}=oe();return w.jsx(ho,{className:`${a?"animate-pulse":""}`,"data-testid":"animated-comment",enter:"transition-opacity duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",show:!0,appear:!0,children:w.jsx(zC,{comment:e,isLastSibling:i,layoutVariant:r,parent:t,useThreading:o,children:n})})},zC=({children:n,comment:e,parent:t,useThreading:o=!1,layoutVariant:r="root",isLastSibling:i=!1})=>{const{dispatchAction:a,isAdmin:c}=oe(),d=ae.Children.count(n)>0,{showDeletedMessage:m,showHiddenMessage:p,showCommentContent:h}=FC(e,c,d),g=E.useCallback(()=>{const k={id:e.id,type:"edit",hasUnsavedChanges:!1,in_reply_to_id:e.in_reply_to_id,in_reply_to_snippet:e.in_reply_to_snippet};a("openCommentForm",k)},[e.id,a]);return m||p?w.jsx(UC,{comment:e,isLastSibling:i,layoutVariant:r,openEditMode:g,parent:t,useThreading:o,children:n}):h&&!p?w.jsx(_C,{comment:e,isLastSibling:i,layoutVariant:r,openEditMode:g,parent:t,useThreading:o,children:n}):null},ry=(n,e,t)=>{const o=t?e.find(i=>i.id===n.id&&i.type==="reply"):e.find(i=>(i.id===n.id||i.parent_id===n.id)&&i.type==="reply"),r=o&&(t||!o.parent_id||o.parent_id===n.id)?o:void 0;return{activeReplyForm:o,visibleReplyForm:r}},FC=(n,e,t)=>{const o=t||n.replies&&n.replies.length>0,r=n.status==="deleted",i=n.status==="hidden";return{showDeletedMessage:r&&o,showHiddenMessage:o&&i&&!e,showCommentContent:!r&&(e||n.status==="published")}},_C=({children:n,comment:e,parent:t,openEditMode:o,useThreading:r,layoutVariant:i="root",isLastSibling:a=!1})=>{const{dispatchAction:c,openCommentForms:d,isAdmin:m,commentIdToHighlight:p,commentIdFromHash:h}=oe(),g=ae.Children.count(n)>0,b=m&&e.status==="hidden"?"opacity-30":"",$=d.find(ie=>ie.id===e.id&&ie.type==="edit"),S=!!$,{activeReplyForm:N,visibleReplyForm:P}=ry(e,d,r),L=!!(N&&N.id===e.id),j=E.useCallback(async()=>{if(N&&N.id===e.id)c("closeCommentForm",N.id);else{const ie={};t&&(ie.in_reply_to_id=e.id,ie.in_reply_to_snippet=Fb(e));const Ne={id:e.id,parent_id:t?.id,type:"reply",hasUnsavedChanges:!1,...ie};await c("openCommentForm",Ne)}},[e,t,N,c]),Y=g||e.replies&&e.replies.length>0,U=!!P||Y,I=w.jsx(Kl,{member:e.member}),K=t||e,X=h?e.id===h&&p===h:e.id===p;return w.jsx(cy,{avatar:I,className:b,hasReplies:U,isLastSibling:a,isPinned:e.pinned,layoutVariant:i,memberUuid:e.member?.uuid,replies:w.jsx(iy,{comment:e,parent:t,useThreading:r,children:n}),replyForm:P?w.jsx(sy,{continueLine:Y,openForm:P,parent:K,useThreading:r}):null,useThreading:r,children:w.jsx("div",{id:e.id,children:S?w.jsxs(w.Fragment,{children:[w.jsx(ay,{className:b,comment:e,useThreading:r}),w.jsx(gC,{comment:e,openForm:$,parent:t})]}):w.jsxs(w.Fragment,{children:[w.jsx(ay,{className:b,comment:e,useThreading:r}),w.jsx(KC,{className:b,html:e.html,isHighlighted:X}),w.jsx(WC,{comment:e,highlightReplyButton:L,openEditMode:o,openReplyForm:j})]})})})},UC=({children:n,comment:e,openEditMode:t,parent:o,useThreading:r,layoutVariant:i="root",isLastSibling:a=!1})=>{const{isAdmin:c,openCommentForms:d,t:m}=oe(),p=ae.Children.count(n)>0,h=c&&e.status!=="deleted"?w.jsx(Kl,{member:e.member}):w.jsx(mp,{}),g=e.status==="hidden"?m("This comment has been hidden."):e.status==="deleted"?m("This comment has been removed."):"",{visibleReplyForm:k}=ry(e,d,r),b=p||e.replies&&e.replies.length>0,$=!!k||b,S=c&&e.status==="hidden",N=o||e;return w.jsx(cy,{avatar:h,hasReplies:$,isLastSibling:a,isPinned:e.pinned,layoutVariant:i,replies:w.jsx(iy,{comment:e,parent:o,useThreading:r,children:n}),replyForm:k?w.jsx(sy,{continueLine:b,openForm:k,parent:N,useThreading:r}):null,useThreading:r,children:w.jsx("div",{className:"mt-[-3px] flex items-start",id:e.id,children:w.jsxs("div",{className:"flex h-10 flex-row items-center gap-4 pb-[8px] pr-4",children:[w.jsx(qg,{comment:e}),w.jsx("p",{className:"mt-[4px] font-sans text-md leading-normal text-neutral-900/40 dark:text-white/60 sm:text-lg",children:g}),S&&w.jsx("div",{className:"mt-[4px]",children:w.jsx(Fu,{comment:e,toggleEdit:t})})]})})})},HC=({comment:n})=>{const{member:e}=oe(),t=e&&n.member&&n.member.uuid===e.uuid?e.expertise:n?.member?.expertise;return t?w.jsxs("span",{className:"[overflow-wrap:anywhere]",children:[w.jsx("span",{className:"mx-[0.3em] hidden sm:inline-block",children:"·"}),t]}):null},VC=({comment:n})=>{const{t:e}=oe();return n.edited_at?w.jsxs("span",{children:[" (",e("edited"),")"]}):null},iy=({children:n,comment:e,className:t="",parent:o,useThreading:r=!1})=>{const i=ae.Children.count(n)>0,a=i||e.replies&&e.replies.length>0,c=r&&!o;return a?w.jsx("div",{className:`${r?"ml-8 flow-root sm:ml-9":"-ml-2 mb-4 mt-7 sm:mb-0 sm:mt-8"} ${t}`,children:i?n:c?w.jsx(BC,{comment:e,useThreading:r}):w.jsx(AC,{comment:e,useThreading:r})}):null},sy=({openForm:n,parent:e,useThreading:t,continueLine:o=!1})=>{if(!t)return w.jsx("div",{className:"my-8 sm:my-10",children:w.jsx(Qg,{openForm:n,parent:e})});const r=o?"pb-8 sm:pb-10":"mb-8 sm:mb-10";return w.jsxs("div",{className:`relative ml-8 sm:ml-9 ${r}`,children:[o&&w.jsx("div",{className:"pointer-events-none absolute inset-y-0 -left-4 border-l border-neutral-300 dark:border-neutral-700 sm:-left-5","data-testid":"reply-form-continuation-line","aria-hidden":!0}),w.jsx("div",{className:"pointer-events-none absolute -left-4 top-0 h-4 w-3 border-b border-l border-neutral-300 [border-bottom-left-radius:12px_16px] dark:border-neutral-700 sm:-left-5 sm:w-4 sm:[border-bottom-left-radius:16px_16px]","data-testid":"reply-form-elbow","aria-hidden":!0}),w.jsx(Qg,{openForm:n,parent:e,threadedLayout:!0})]})},YC=({comment:n})=>{const{t:e}=oe(),t=zb(n,e);return w.jsx("h4",{className:"font-sans text-base font-bold leading-snug text-neutral-900 dark:text-white/85 sm:text-sm",children:t})},JC=({comment:n})=>{const{comments:e,t}=oe(),o=Lb(e,n.in_reply_to_id);let r=n.in_reply_to_snippet;(!o||o.status!=="published")&&(r=`[${t("removed")}]`);const i=o&&o.status==="published",a="font-medium text-neutral-900/60 break-all transition-colors dark:text-white/70",c=`${a} hover:text-neutral-900/75 dark:hover:text-white/85`;return i?w.jsx("a",{className:c,"data-testid":"comment-in-reply-to",href:$r(n.in_reply_to_id),target:"_parent",children:r}):w.jsx("span",{className:a,"data-testid":"comment-in-reply-to",children:r})},ay=({comment:n,className:e="",useThreading:t})=>{const{member:o,t:r}=oe(),i=mC(n.created_at),a=o&&n.member&&n.member.uuid===o.uuid?o.expertise:n?.member?.expertise,c=!t&&n.in_reply_to_id&&n.in_reply_to_snippet,d=w.jsxs("a",{className:"hover:underline",href:$r(n.id),target:"_parent",title:Ib(n.created_at),children:[w.jsx("span",{className:"mx-[0.3em]",children:"·"}),i]});return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:`mt-0.5 flex flex-wrap items-start sm:flex-row ${a?"flex-col":"flex-row"} ${c?"mb-0.5":"mb-2"} ${e}`,children:[w.jsx(YC,{comment:n}),w.jsx("div",{className:"flex items-baseline pr-4 font-sans text-base leading-snug text-neutral-900/50 dark:text-white/60 sm:text-sm",children:w.jsxs("span",{children:[w.jsx(HC,{comment:n}),d,n.pinned&&w.jsx("span",{className:"ml-2 inline-flex align-middle",children:w.jsx(qg,{comment:n})}),w.jsx(VC,{comment:n})]})})]}),c&&w.jsxs("div",{className:"mb-2 line-clamp-1 font-sans text-base leading-snug text-neutral-900/50 dark:text-white/60 sm:text-sm",children:[w.jsx("span",{children:r("Replied to")}),": ",w.jsx(JC,{comment:n})]})]})},KC=({html:n,className:e="",isHighlighted:t})=>{if(!n)return null;let o=n;if(t){const a=new DOMParser().parseFromString(n,"text/html");a.querySelectorAll("p").forEach(d=>{const m=a.createElement("mark");for(m.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";d.firstChild;)m.appendChild(d.firstChild);d.appendChild(m)}),o=a.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("div",{dangerouslySetInnerHTML:r,className:"gh-comment-content -mx-1 text-pretty rounded-md px-1 font-sans text-md leading-normal text-neutral-900 [overflow-wrap:anywhere] dark:text-white/85 sm:text-lg","data-testid":"comment-content"})})},WC=({comment:n,openReplyForm:e,highlightReplyButton:t,openEditMode:o,className:r=""})=>{const{member:i,t:a,isMember:c,isAdmin:d,isCommentingDisabled:m}=oe(),[p,h]=ae.useState(!1),g=n.status==="published",k=i&&n.member?.uuid===i?.uuid,b=!m,$=b,S=!m,L=(d||c&&g)&&!(m&&k);return d&&n.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:a("Hidden for members")}),w.jsx(Fu,{comment:n,toggleEdit:o})]}):w.jsxs("div",{className:`flex items-center gap-4 ${r}`,children:[b?w.jsx(kC,{comment:n,disabled:p,setDisabled:h}):w.jsx(vC,{count:n.count.likes,liked:n.liked}),$&&w.jsx(bC,{comment:n,disabled:p,setDisabled:h}),S&&w.jsx(TC,{comment:n,isReplying:t,openReplyForm:e}),L&&w.jsx(Fu,{comment:n,toggleEdit:o})]})},ly=({hasReplies:n,useThreading:e})=>n?e?w.jsx("div",{className:"ml-4 h-full grow self-start border-l border-neutral-300 dark:border-neutral-700","data-testid":"replies-line"}):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,qC="mb-7",GC="mb-4",QC="bg-amber-50/70 px-3 py-3 dark:bg-amber-400/10",cy=({children:n,avatar:e,hasReplies:t,className:o="",memberUuid:r="",isLastSibling:i=!1,isPinned:a=!1,layoutVariant:c="root",replies:d,replyForm:m,useThreading:p})=>{const h=c==="reply";if(!p){const g=a?GC:t?"mb-0":qC;return w.jsxs("div",{className:`flex w-full flex-row rounded-lg ${a?QC:""} ${g}`,"data-member-uuid":r,"data-pinned":a?"true":void 0,"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(ly,{hasReplies:t,useThreading:p})]}),w.jsxs("div",{className:"grow",children:[n,t&&d,m]})]})}return w.jsxs("div",{className:`relative flow-root ${t?"pb-4 sm:pb-0":"pb-7"}`,children:[h&&!i&&w.jsx("div",{className:"pointer-events-none absolute inset-y-0 -left-4 border-l border-neutral-300 dark:border-neutral-700 sm:-left-5","aria-hidden":!0}),h&&w.jsx("div",{className:"pointer-events-none absolute -left-4 top-0 h-4 w-3 border-b border-l border-neutral-300 [border-bottom-left-radius:12px_16px] dark:border-neutral-700 sm:-left-5 sm:w-4 sm:[border-bottom-left-radius:16px_16px]","aria-hidden":!0}),w.jsxs("div",{className:"flex w-full flex-row","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-1 ${o}`,children:e}),w.jsx(ly,{hasReplies:t,useThreading:p})]}),w.jsx("div",{className:`grow ${t?"pb-7 sm:pb-8":""}`,children:n})]}),m,t&&d]})};var _u={exports:{}},Uu,uy;function XC(){if(uy)return Uu;uy=1;var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Uu=n,Uu}var Hu,dy;function ZC(){if(dy)return Hu;dy=1;var n=XC();function e(){}function t(){}return t.resetWarningCache=e,Hu=function(){function o(a,c,d,m,p,h){if(h!==n){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}o.isRequired=o;function r(){return o}var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:r,element:o,elementType:o,instanceOf:r,node:o,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:t,resetWarningCache:e};return i.PropTypes=i,i},Hu}var my;function eE(){return my||(my=1,_u.exports=ZC()()),_u.exports}var tE=eE();const Vu=es(tE);function py(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function si(n){"@babel/helpers - typeof";return si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},si(n)}function nE(n,e){if(si(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var o=t.call(n,e);if(si(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}function oE(n){var e=nE(n,"string");return si(e)=="symbol"?e:e+""}function rE(n,e){for(var t=0;t<e.length;t++){var o=e[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,oE(o.key),o)}}function fy(n,e,t){return e&&rE(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function iE(n,e){if(n==null)return{};var t={};for(var o in n)if({}.hasOwnProperty.call(n,o)){if(e.indexOf(o)!==-1)continue;t[o]=n[o]}return t}function sE(n,e){if(n==null)return{};var t,o,r=iE(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(o=0;o<i.length;o++)t=i[o],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(n,t)&&(r[t]=n[t])}return r}var Yu="TOKEN_PLACEHOLDER",Da="TOKEN_OPEN_TAG",Ju="TOKEN_CLOSE_TAG",Ku="TOKEN_SELF_TAG",Ra="TOKEN_TEXT",hy="NODE_FRAGMENT",gy="NODE_TAG_ELEMENT",yy="NODE_VOID_ELEMENT",ky="NODE_PLACEHOLDER",by="NODE_TEXT",aE=["type","children"],ct=(function(){function n(e){var t=e.type,o=e.children,r=sE(e,aE);py(this,n),this.type=t,this.children=o||[];for(var i in r)this[i]=r[i];r.token&&(this.string=r.token.string)}return fy(n,[{key:"appendChild",value:function(t){this.children.push(t)}},{key:"isLeaf",get:function(){return this.children.length===0}}]),n})();ct.createTagNode=function(n,e){return new ct({type:gy,children:e,name:n.name,token:n})},ct.createFragmentNode=function(n){return new ct({type:hy,children:n})},ct.createVoidNode=function(n){return new ct({type:yy,name:n.name,token:n})},ct.createTextNode=function(n){return new ct({type:by,text:n.string,token:n})},ct.createPlaceholderNode=function(n){return new ct({type:ky,name:n.name,token:n})};var lE=[{type:Yu,regex:/{\s*(\w+)\s*}/g},{type:Da,regex:/<(\w+)>/g},{type:Ju,regex:/<\/(\w+)>/g},{type:Ku,regex:/<(\w+)\s*\/>/g}];function cE(n,e){var t=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=uE(n))||e){t&&(n=t);var o=0,r=function(){};return{s:r,n:function(){return o>=n.length?{done:!0}:{done:!1,value:n[o++]}},e:function(m){throw m},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
107
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,c;return{s:function(){t=t.call(n)},n:function(){var m=t.next();return i=m.done,m},e:function(m){a=!0,c=m},f:function(){try{!i&&t.return!=null&&t.return()}finally{if(a)throw c}}}}function uE(n,e){if(n){if(typeof n=="string")return vy(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return vy(n,e)}}function vy(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,o=new Array(e);t<e;t++)o[t]=n[t];return o}function dE(n,e){var t=[],o=cE(e),r;try{for(o.s();!(r=o.n()).done;)for(var i=r.value,a=i.type,c=i.regex,d;(d=c.exec(n))!==null;)t.push({type:a,string:d[0],name:d[1],start:d.index,end:d.index+d[0].length})}catch(k){o.e(k)}finally{o.f()}t.sort(function(k,b){return k.start-b.start});var m=[],p=0;t.forEach(function(k){if(k.start===p){p=k.end;return}var b=k.start,$=n.substring(p,b);m.push({type:Ra,string:$,text:$,start:p,end:b}),p=k.end});var h=n.substring(p);h!==""&&m.push({type:Ra,string:h,start:p,end:n.length});var g=[].concat(m,t).sort(function(k,b){return k.start-b.start});return g}function mE(n,e){e||(e=lE);var t=dE(n,e),o=new pE(t);return o.parse()}var ai="Syntax error. Please check if each open tag is closed correctly",wy={type:"EPSILON"},pE=(function(){function n(e){py(this,n),this.tokens=[].concat(e),this.tags=[]}return fy(n,[{key:"parse",value:function(){var t=this.document();if(!this.predict(wy.type))throw new Error(ai);return t}},{key:"document",value:function(){var t=this.elementOrData();return ct.createFragmentNode(t)}},{key:"element",value:function(){var t=this.openTag(),o=this.elementOrData();return this.endTag(),ct.createTagNode(t,o)}},{key:"openTag",value:function(){if(!this.predict(Da))throw new Error(ai);return this.pushTag(this.lookahead),this.match(Da)}},{key:"elementOrData",value:function(){var t=[];if(this.predict(Da)&&(t.push(this.element()),t=t.concat(this.elementOrData())),this.predict(Ku,Ra,Yu)){var o=this.match(this.lookahead.type),r;switch(o.type){case Ku:r=ct.createVoidNode(o);break;case Ra:r=ct.createTextNode(o);break;case Yu:r=ct.createPlaceholderNode(o);break}t.push(r),t=t.concat(this.elementOrData())}return t}},{key:"endTag",value:function(){if(!this.predict(Ju))throw new Error(ai);var t=this.tags.pop();if(t.name!==this.lookahead.name)throw new Error(ai);this.match(Ju)}},{key:"lookahead",get:function(){return this.tokens.length===0?wy:this.tokens[0]}},{key:"predict",value:function(){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return o.includes(this.lookahead.type)}},{key:"match",value:function(t){if(!this.predict(t))throw new Error(ai);var o=this.tokens.shift();return o}},{key:"pushTag",value:function(t){this.tags.push(t)}}]),n})(),fE=function n(e,t,o){var r=e.children.map(function(d,m){return ae.createElement(ae.Fragment,{key:o+m},n(d,t,o))});switch(e.type){case by:return e.text;case hy:return ae.createElement(ae.Fragment,null,r);case yy:{var i=t[e.name];return typeof i=="function"?i():i||ae.createElement(e.name,null)}case gy:{var a=t[e.name];if(a===void 0)return ae.createElement(e.name,null,r);if(typeof a=="function")return a(r);if(ae.isValidElement(a)){if(ae.Children.count(a.props.children)!==0)throw new Error("when passing an element as value, the element should not contains children");return ae.cloneElement(a,{children:r})}throw new Error('Invalid mapping value for "'.concat(e.name,'". Only element or render function are accepted'))}case ky:{var c=t[e.name];return c===void 0?(console.warn('missing "'.concat(e.name,'" in mapping')),e.string):typeof c=="function"?c():c}default:return}};function $y(n){var e=n.string,t=n.syntax,o=n.mapping,r=o===void 0?{}:o,i=n.graceful,a=i===void 0?!0:i;try{var c=mE(e,t);return fE(c,r,e)}catch(d){if(a)return console.error(d),e;throw d}}$y.propTypes={string:Vu.string.isRequired,mapping:Vu.object,graceful:Vu.bool};const hE=()=>{const{accentColor:n,supportEmail:e,t}=oe(),o={color:n};return w.jsxs(w.Fragment,{children:[w.jsx("h1",{className:"mb-2 text-center font-sans text-2xl font-semibold tracking-tight text-neutral-900 dark:text-white/85",children:t("Commenting disabled")}),w.jsx("p",{className:"w-full text-balance text-center text-lg leading-normal text-neutral-900 dark:text-white/85 sm:px-8",children:e?w.jsx($y,{mapping:{a:w.jsx("a",{className:"font-semibold hover:opacity-90",href:`mailto:${e}`,style:o})},string:t("You can't post comments in this publication. <a>Contact support</a> for more information.")}):t("You can't post comments in this publication.")})]})},gE=({showCount:n,count:e})=>{const{t}=oe();return n?e===1?w.jsx("div",{className:"text-md text-neutral-900/50 dark:text-white/50 sm:text-lg","data-testid":"count",children:t("1 comment")}):w.jsx("div",{className:"text-md text-neutral-900/50 dark:text-white/50 sm:text-lg","data-testid":"count",children:t("{amount} comments",{amount:ns(e)})}):null},yE=({title:n})=>{const{t:e}=oe();return n===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:n})},xy=({title:n,showCount:e,count:t})=>!n&&!e&&n!==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 dark:text-white sm:text-2xl","data-testid":"title",children:w.jsx(yE,{title:n})}),w.jsx(gE,{count:t,showCount:e})]}),kE=({focusedThread:n})=>{const{t:e}=oe(),{navigateBackToParent:t}=Zg(),{backComment:o,focusedComment:r,topLevelComment:i}=n,a=$r(o.id),c=E.useCallback(d=>{d.preventDefault(),t(o.id,a)},[o.id,a,t]);return w.jsxs("div",{children:[w.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[w.jsxs("a",{className:"font-sans text-[1.3rem] font-medium text-neutral-900/55 transition-colors hover:text-neutral-900/80 dark:text-white/45 dark:hover:text-white/70","data-testid":"back-to-parent",href:a,target:"_parent",onClick:c,children:["← ",e("Back")]}),w.jsx("a",{className:"font-sans text-[1.3rem] font-medium text-neutral-900/55 transition-colors hover:text-neutral-900/80 dark:text-white/45 dark:hover:text-white/70","data-testid":"see-full-discussion",href:Mb(),target:"_parent",children:e("See full discussion")})]}),w.jsx(Na,{comment:r,parent:i,useThreading:!0,children:w.jsx(ny,{replies:r.nestedReplies,threadParentComment:i,useThreading:!0})})]})},bE=({commentsCount:n})=>{const{postId:e,dispatchAction:t,t:o}=oe(),r=E.useMemo(()=>({placeholder:o(n===0?"Start the conversation":"Join the discussion"),autofocus:!1}),[n]),{editor:i,hasContent:a}=Iu(r),c=E.useCallback(async({html:h})=>{await t("addComment",{post_id:e,status:"published",html:h}),i?.commands.clearContent()},[e,t,i]),d=E.useRef(null);E.useEffect(()=>{if(!i)return;const h=g=>{if(!i||g.metaKey||g.ctrlKey)return;let k=document.activeElement;for(;k&&k.tagName==="IFRAME"&&k.contentDocument;)k=k.contentDocument?.activeElement??null;const b=k&&(k.tagName==="INPUT"||k.tagName==="TEXTAREA"||k.tagName==="IFRAME"||k.contentEditable==="true");if(g.key==="c"&&!i?.isFocused&&!b){i?.commands.focus(),d.current&&is(d.current);return}};return window.addEventListener("keydown",h,{passive:!0}),()=>{window.removeEventListener("keydown",h)}},[i]);const m={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:c},p=i?.isFocused||a;return w.jsx("div",{ref:d,className:"px-3 pb-2 pt-3","data-testid":"main-form",children:w.jsx(Hg,{editor:i,isOpen:p,reduced:!1,children:w.jsx(Bu,{editor:i,isOpen:p,reduced:!1,...m})})})},vE=()=>{const{pagination:n,dispatchAction:e,t}=oe(),o=()=>{e("loadMoreComments",{})};if(!n)return null;const r=n.total-n.page*n.limit;if(r<=0)return null;const i=t("Load more ({amount})",{amount:ns(r)});return w.jsx("button",{className:"group mb-10 flex items-center px-0 pb-2 pt-0 text-left font-sans text-md font-semibold text-neutral-700 dark:text-white","data-testid":"pagination-component",type:"button",onClick: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:i})})},wE=n=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...n},E.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"})),$E=()=>{const{order:n,t:e}=oe(),t=_b(),[o,r]=E.useState(!1),[i,a]=E.useState(n),c=E.useRef(null),d="count__net_score desc, created_at desc";E.useEffect(()=>{a(n==="count__likes desc, created_at desc"||n==="count__net_score desc, created_at desc"?d:n)},[n]);const m=[{value:d,label:e("Best")},{value:"created_at desc",label:e("Newest")},{value:"created_at asc",label:e("Oldest")}],p=g=>{a(g),t(g),r(!1)};E.useEffect(()=>{const g=()=>{r(!1)};window.addEventListener("click",g,{passive:!0});const k=c.current?.ownerDocument?.defaultView;return k&&k!==window&&k.addEventListener("click",g,{passive:!0}),()=>{window.removeEventListener("click",g),k&&k!==window&&k.removeEventListener("click",g)}},[]);const h=g=>{g.stopPropagation()};return w.jsxs("div",{ref:c,className:"relative z-20","data-testid":"comments-sorting-form",onClick:h,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:()=>r(!o),children:[m.find(g=>g.value===i)?.label,w.jsx("span",{className:"size-2 stroke-[3px]",children:w.jsx(wE,{})})]}),o&&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:m.map(g=>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:()=>p(g.value),children:g.label},g.value))})})]})},Jo="ghost-comments-root";function Wu(n){const e=n.defaultView;if(!e?.parent||e.parent===e)return null;try{const t=e.parent.document.getElementsByTagName("iframe");for(const o of t)if(o.contentWindow===e)return o}catch{}return null}const xE=500;function qu(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}function Gu(n,e){const t=n.clientHeight;let o=!1;const r=()=>{o||(o=!0,i.disconnect(),e())},i=new ResizeObserver(()=>{n.clientHeight!==t&&r()});i.observe(n);const a=setTimeout(r,xE);return()=>{clearTimeout(a),i.disconnect()}}function Qu(n){return n.current?.ownerDocument.getElementById(Jo)||document.getElementById(Jo)}function Aa(n){const e=n.current?.ownerDocument.defaultView||window;return e.parent||e}function SE(n){const{dispatchAction:e}=oe(),t=E.useCallback((i="auto")=>{const a=Qu(n);a&&qu(()=>{a.scrollIntoView({behavior:i,block:"start"})})},[n]),o=E.useCallback((i,a,c={})=>{i.scrollIntoView({behavior:"smooth",block:"center"}),e("highlightComment",{commentId:a}),c.preserveScrollTarget||e("setScrollTarget",null)},[e]),r=E.useCallback(i=>{qu(()=>{const a=n.current?.ownerDocument.getElementById(i);if(a){const c=Wu(a.ownerDocument);if(c){Gu(c,()=>{ap(a)});return}ap(a)}})},[n]);return{scrollToComment:o,scrollToCommentInstantly:r,scrollToCommentsTop:t}}function CE(n){E.useEffect(()=>{const e=Qu(n),t=Aa(n);e&&t?.location.hash==="#ghost-comments"&&t.scrollY===0&&qu(()=>{e.scrollIntoView()})},[n])}function EE(n,e,t,o){const{dispatchAction:r}=oe(),{scrollToComment:i,scrollToCommentInstantly:a,scrollToCommentsTop:c}=o;E.useEffect(()=>{const d=Aa(n);if(!d)return;const m=()=>{const p=d.location.hash,h=Vl(p);if(h&&n.current){const g=e.current===h,k=t.current===h;if(e.current=null,t.current=null,r("setHashCommentId",h),g){r("setScrollTarget",null),r("setHighlightComment",null),c();return}if(k){r("setScrollTarget",null),r("setHighlightComment",null),a(h);return}r("setScrollTarget",h);const $=n.current.ownerDocument.getElementById(h);$&&i($,h,{preserveScrollTarget:!0})}else e.current=null,t.current=null,r("setHashCommentId",null),r("setScrollTarget",null),r("setHighlightComment",null),p==="#ghost-comments"&&c("smooth")};return d.addEventListener("hashchange",m),()=>d.removeEventListener("hashchange",m)},[n,r,i,a,c])}function NE(n,e){const{comments:t,commentsIsLoading:o,commentIdFromHash:r,commentIdToScrollTo:i,dispatchAction:a}=oe(),{scrollToComment:c}=e,d=E.useRef(null);E.useEffect(()=>{if(!i||o||!n.current){i||(d.current=null);return}if(d.current===i)return;const m=Aa(n);if(Vl(m?.location.hash||"")===i&&r!==i){a("setHashCommentId",i);return}const h=n.current.ownerDocument,g=h.getElementById(i);if(!g)return;const k=Wu(h);if(k)return d.current=i,Gu(k,()=>{c(g,i,{preserveScrollTarget:i===r})});d.current=i,c(g,i,{preserveScrollTarget:i===r})},[i,r,o,t,n,a,c])}function DE(n){const{commentsIsLoading:e,showMissingCommentNotice:t}=oe();E.useEffect(()=>{if(!t||e)return;const o=Qu(n);if(!o)return;const r=Wu(o.ownerDocument);if(r)return Gu(r,()=>{is(o)});is(o)},[n,t,e])}function RE(n,e,t){const{commentIdFromHash:o}=oe(),{scrollToCommentInstantly:r}=t;E.useEffect(()=>{!o||n||e.current!==o||(e.current=null,r(o))},[o,n,r])}function AE({containerRef:n,focusedThread:e}){const{dispatchAction:t}=oe(),o=E.useRef(null),r=E.useRef(null),i=SE(n);return CE(n),EE(n,o,r,i),NE(n,i),DE(n),RE(e,r,i),E.useMemo(()=>({requestFocusedThreadView:a=>{o.current=a},requestInstantScroll:a=>{r.current=a},navigateBackToParent:(a,c)=>{r.current=a,Aa(n)?.history.pushState(null,"",c),t("setHashCommentId",a),t("setScrollTarget",null),t("setHighlightComment",null)}}),[n,t])}const Sy=`(max-width: ${op-1}px)`;function OE(){return typeof window>"u"||!window.matchMedia?ts:window.matchMedia(Sy).matches?np:ts}const TE=()=>{const n=Jl(),{pagination:e,comments:t,commentCount:o,title:r,showCount:i,commentsIsLoading:a,t:c,commentIdFromHash:d,showMissingCommentNotice:m,isMember:p,isPaidOnly:h,hasRequiredTier:g,isCommentingDisabled:k}=oe(),b=E.useRef(null),[$,S]=E.useState(()=>OE());E.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const ye=window.matchMedia(Sy),$e=()=>{S(ye.matches?np:ts)};return $e(),ye.addEventListener("change",$e),()=>ye.removeEventListener("change",$e)},[]);const N=E.useMemo(()=>({maxThreadDepth:$}),[$]),P=e?.total===0,L=p&&g&&!k,j=L,Y=!L&&k,U=!L&&!k,I=!!n.commentsThreads,K=E.useMemo(()=>I?IC(t,d,$):null,[t,d,$,I]),X=AE({containerRef:b,focusedThread:K}),ie=t.map(ye=>w.jsx(Na,{comment:ye,useThreading:I},ye.id)),Ne=K?w.jsxs(w.Fragment,{children:[w.jsx(xy,{count:o,showCount:i,title:r}),w.jsx("div",{ref:b,className:`z-10 transition-opacity duration-100 ${a?"opacity-50":""}`,"data-testid":"comment-elements",children:w.jsx(kE,{focusedThread:K})})]}):w.jsxs(w.Fragment,{children:[w.jsx(xy,{count:o,showCount:i,title:r}),m&&w.jsx("div",{className:"mb-6 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 font-sans text-sm text-amber-900 dark:border-amber-500/40 dark:bg-amber-500/15 dark:text-amber-100","data-testid":"missing-comment-notice",children:c("The linked comment is no longer available.")}),w.jsxs("div",{children:[j&&w.jsx(bE,{commentsCount:t.length}),Y&&w.jsx("section",{className:"flex flex-col items-center py-6 sm:px-8 sm:py-10","data-testid":"commenting-disabled-box",children:w.jsx(hE,{})}),U&&w.jsx("section",{className:"flex flex-col items-center py-6 sm:px-8 sm:py-10","data-testid":"cta-box",children:w.jsx(cp,{isFirst:P,isPaid:h})})]}),o>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($E,{})]})}),w.jsx("div",{ref:b,className:`z-10 transition-opacity duration-100 ${a?"opacity-50":""}`,"data-testid":"comment-elements",children:ie}),w.jsx(vE,{}),n?.testFlag?w.jsx("div",{"data-testid":"this-comes-from-a-flag",style:{display:"none"}}):null]});return w.jsx(Xg.Provider,{value:X,children:w.jsx(ey.Provider,{value:N,children:Ne})})};function PE(){return w.jsx("div",{className:"flex h-32 w-full items-center justify-center","data-testid":"loading",children:w.jsx(ss,{className:"mb-6 size-12 fill-neutral-300/80 dark:fill-white/60"})})}const ME=({done:n})=>{const e=(m,p,h)=>{const g=[m,p,h].map(function(k){return k/=255,k<=.03928?k/12.92:Math.pow((k+.055)/1.055,2.4)});return g[0]*.2126+g[1]*.7152+g[2]*.0722},t=(m,p)=>{const h=e(m[0],m[1],m[2]),g=e(p[0],p[1],p[2]),k=Math.max(h,g),b=Math.min(h,g);return(k+.05)/(b+.05)},{accentColor:o,colorScheme:r}=oe(),i=E.useCallback(()=>{if(r==="light")return!1;if(r==="dark")return!0;{const m=document.getElementById(Jo);if(!m||!m.parentElement)return!1;const p=getComputedStyle(m.parentElement).getPropertyValue("color"),h=p.substring(p.indexOf("(")+1,p.lastIndexOf(")")).split(/,\s*/),g=parseInt(h[0]),k=parseInt(h[1]),b=parseInt(h[2]);return t([255,255,255],[g,k,b])<5}},[r,t]),[a,c]=E.useState(i()?"dark":"");E.useEffect(()=>{c(i()?"dark":"")},[r,i]),E.useEffect(()=>{const m=document.getElementById(Jo);if(m?.parentElement){const p=new MutationObserver(()=>{c(i()?"dark":"")});return p.observe(m.parentElement,{attributes:!0,attributeFilter:["style","class"]}),()=>{p.disconnect()}}},[i]);const d={"--gh-accent-color":o??"black",paddingTop:0,paddingBottom:24};return w.jsx("section",{className:"ghost-display "+a,"data-loaded":n,"data-testid":"content-box",style:d,children:n?w.jsx(TE,{}):w.jsx(PE,{})})};class LE extends E.Component{node;iframeHtml;iframeHead;iframeRoot;constructor(e){super(e),this.setNode=this.setNode.bind(this),this.node=null}componentDidMount(){this.node.addEventListener("load",this.handleLoad)}handleLoad=()=>{this.setupFrameBaseStyle()};componentWillUnmount(){this.node.removeEventListener("load",this.handleLoad)}setupFrameBaseStyle(){this.node.contentDocument&&(this.iframeHtml=this.node.contentDocument.documentElement,this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate(),this.props.onResize&&new ResizeObserver(e=>{window.requestAnimationFrame(()=>{this.props.onResize(this.iframeRoot)})})?.observe?.(this.iframeRoot),this.node.contentWindow.addEventListener("keydown",e=>{window.dispatchEvent(new KeyboardEvent("keydown",e))}))}setNode(e){this.node=e,this.props.innerRef&&(this.props.innerRef.current=e)}render(){const{children:e,head:t,title:o="",style:r={},...i}=this.props;return w.jsxs("iframe",{srcDoc:"<!DOCTYPE html>",...i,ref:this.setNode,frameBorder:"0",style:r,title:o,children:[this.iframeHead&&eu.createPortal(t,this.iframeHead),this.iframeRoot&&eu.createPortal(e,this.iframeRoot)]})}}const jE=E.forwardRef(function(e,t){return w.jsx(LE,{...e,innerRef:t})}),IE='*,: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%;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}.inset-y-0{top:0;bottom:0}.-left-4{left:-1.6rem}.bottom-1{bottom:.4rem}.bottom-full{bottom:100%}.left-0{left:0}.right-1{right:.4rem}.right-6{right:2.4rem}.top-0{top:0}.top-1{top:.4rem}.top-5{top:2rem}.z-10{z-index:10}.z-20{z-index:20}.col-start-1{grid-column-start:1}.row-start-1{grid-row-start:1}.-mx-1{margin-left:-.4rem;margin-right:-.4rem}.-mx-2{margin-left:-.8rem;margin-right:-.8rem}.-my-0\\.5{margin-top:-.2rem;margin-bottom:-.2rem}.mx-\\[0\\.3em\\]{margin-left:.3em;margin-right:.3em}.my-1{margin-top:.4rem;margin-bottom:.4rem}.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-8{margin-bottom:3.2rem}.mb-\\[12px\\]{margin-bottom:12px}.mb-\\[28px\\]{margin-bottom:28px}.mb-\\[8px\\]{margin-bottom:8px}.ml-1{margin-left:.4rem}.ml-2{margin-left:.8rem}.ml-2\\.5{margin-left:1rem}.ml-4{margin-left:1.6rem}.ml-8{margin-left:3.2rem}.ml-\\[48px\\]{margin-left:48px}.mr-1{margin-right:.4rem}.mr-2{margin-right:.8rem}.mr-\\[6px\\]{margin-right:6px}.mt-0\\.5{margin-top:.2rem}.mt-1\\.5{margin-top:.6rem}.mt-10{margin-top:4rem}.mt-3{margin-top:1.2rem}.mt-6{margin-top:2.4rem}.mt-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}.inline-flex{display:inline-flex}.flow-root{display:flow-root}.grid{display:grid}.contents{display:contents}.hidden{display:none}.size-10{width:4rem;height:4rem}.size-12{width:4.8rem;height:4.8rem}.size-2{width:.8rem;height:.8rem}.size-3{width:1.2rem;height:1.2rem}.size-4{width:1.6rem;height:1.6rem}.size-5{width:2rem;height:2rem}.size-7{width:2.8rem;height:2.8rem}.size-\\[12px\\]{width:12px;height:12px}.size-\\[16px\\]{width:16px;height:16px}.size-\\[24px\\]{width:24px;height:24px}.h-10{height:4rem}.h-11{height:4.4rem}.h-32{height:12.8rem}.h-4{height:1.6rem}.h-5{height:2rem}.h-8{height:3.2rem}.h-\\[40px\\]{height:40px}.h-\\[42px\\]{height:42px}.h-\\[44px\\]{height:44px}.h-full{height:100%}.h-screen{height:100vh}.min-h-10{min-height:4rem}.min-h-\\[120px\\]{min-height:120px}.w-3{width:1.2rem}.w-36{width:14.4rem}.w-4{width:1.6rem}.w-52{width:20.8rem}.w-8{width:3.2rem}.w-\\[50\\%\\]{width:50%}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.shrink-0{flex-shrink:0}.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}.justify-items-start{justify-items:start}.gap-0\\.5{gap:.2rem}.gap-1{gap:.4rem}.gap-1\\.5{gap:.6rem}.gap-2{gap:.8rem}.gap-3{gap:1.2rem}.gap-4{gap:1.6rem}.gap-9{gap:3.6rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.6rem * var(--tw-space-x-reverse));margin-left:calc(1.6rem * calc(1 - var(--tw-space-x-reverse)))}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.text-balance{text-wrap:balance}.text-pretty{text-wrap:pretty}.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-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.border-amber-300\\/70{border-color:#fcd34db3}.border-black\\/10{border-color:#0000001a}.border-neutral-200{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity, 1))}.border-neutral-300{--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity, 1))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.bg-\\[var\\(--gh-accent-color\\)\\]{background-color:var(--gh-accent-color)}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-amber-50\\/70{background-color:#fffbebb3}.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-3{padding-left:1.2rem;padding-right:1.2rem}.px-4{padding-left:1.6rem;padding-right:1.6rem}.px-5{padding-left:2rem;padding-right:2rem}.px-8{padding-left:3.2rem;padding-right:3.2rem}.py-0\\.5{padding-top:.2rem;padding-bottom:.2rem}.py-1{padding-top:.4rem;padding-bottom:.4rem}.py-1\\.5{padding-top:.6rem;padding-bottom:.6rem}.py-2{padding-top:.8rem;padding-bottom:.8rem}.py-3{padding-top:1.2rem;padding-bottom:1.2rem}.py-6{padding-top:2.4rem;padding-bottom:2.4rem}.py-\\[14px\\]{padding-top:14px;padding-bottom:14px}.pb-2{padding-bottom:.8rem}.pb-3{padding-bottom:1.2rem}.pb-4{padding-bottom:1.6rem}.pb-7{padding-bottom:2.8rem}.pb-8{padding-bottom:3.2rem}.pb-\\[68px\\]{padding-bottom:68px}.pb-\\[8px\\]{padding-bottom:8px}.pl-0{padding-left:0}.pl-1{padding-left:.4rem}.pl-\\[1px\\]{padding-left:1px}.pl-\\[40px\\]{padding-left:40px}.pr-0{padding-right:0}.pr-2{padding-right:.8rem}.pr-4{padding-right:1.6rem}.pr-\\[1px\\]{padding-right:1px}.pt-0{padding-top:0}.pt-10{padding-top:4rem}.pt-3{padding-top:1.2rem}.pt-6{padding-top:2.4rem}.pt-\\[48px\\]{padding-top:48px}.pt-\\[68px\\]{padding-top:68px}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji"}.text-2xl{font-size:2.4rem}.text-\\[1\\.3rem\\]{font-size:1.3rem}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-\\[16px\\]{font-size:16px}.text-\\[2\\.2rem\\]{font-size:2.2rem}.text-base{font-size:1.3rem}.text-lg{font-size:1.65rem}.text-md{font-size:1.5rem}.text-sm{font-size:1.4rem}.text-xs{font-size:1.2rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-5{line-height:1.25rem}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-snug{line-height:1.375}.tracking-tight{letter-spacing:-.018em}.text-\\[rgba\\(0\\,0\\,0\\,0\\.4\\)\\]{color:#0006}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.text-amber-900{--tw-text-opacity: 1;color:rgb(120 53 15 / var(--tw-text-opacity, 1))}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-black\\/30{color:#0000004d}.text-black\\/50{color:#00000080}.text-black\\/90{color:#000000e6}.text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.text-neutral-600{--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity, 1))}.text-neutral-700{--tw-text-opacity: 1;color:rgb(64 64 64 / var(--tw-text-opacity, 1))}.text-neutral-900{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.text-neutral-900\\/25{color:#17171740}.text-neutral-900\\/40{color:#17171766}.text-neutral-900\\/50{color:#17171780}.text-neutral-900\\/55{color:#1717178c}.text-neutral-900\\/60{color:#17171799}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-80{opacity:.8}.shadow-lg{--tw-shadow: 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,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-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-text-decoration-color,-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,fill,stroke,-webkit-text-decoration-color;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,-webkit-text-decoration-color;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}.\\[border-bottom-left-radius\\:12px_16px\\]{border-bottom-left-radius:12px 16px}.\\[overflow-wrap\\:anywhere\\]{overflow-wrap:anywhere}body,html{overflow:hidden}:host{all:initial!important}html{font-size:62.5%}body{font-size:1.5rem}.gh-comment-content p:empty:after{content:" "}.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\\:border-amber-400:hover{--tw-border-opacity: 1;border-color:rgb(251 191 36 / var(--tw-border-opacity, 1))}.hover\\:bg-amber-100:hover{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.hover\\:bg-black\\/10:hover{background-color:#0000001a}.hover\\:bg-neutral-100:hover{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.hover\\:fill-black\\/75:hover{fill:#000000bf}.hover\\:text-black\\/50:hover{color:#00000080}.hover\\:text-black\\/75:hover{color:#000000bf}.hover\\:text-neutral-900:hover{--tw-text-opacity: 1;color:rgb(23 23 23 / var(--tw-text-opacity, 1))}.hover\\:text-neutral-900\\/70:hover{color:#171717b3}.hover\\:text-neutral-900\\/75:hover{color:#171717bf}.hover\\:text-neutral-900\\/80:hover{color:#171717cc}.hover\\:underline:hover{-webkit-text-decoration-line:underline;text-decoration-line:underline}.hover\\:opacity-40:hover{opacity:.4}.hover\\:opacity-90:hover{opacity:.9}.hover\\:brightness-105:hover{--tw-brightness: brightness(1.05);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:border-neutral-300:focus{--tw-border-opacity: 1;border-color:rgb(212 212 212 / var(--tw-border-opacity, 1))}.focus\\:border-red-500:focus{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.focus\\:outline-0:focus{outline-width: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-0{opacity:0}.group:hover .group-hover\\:opacity-100{opacity:1}.group:focus-visible .group-focus-visible\\:opacity-0{opacity:0}.group:focus-visible .group-focus-visible\\:opacity-100{opacity:1}.dark\\:border-amber-400\\/30:is(.dark *){border-color:#fbbf244d}.dark\\:border-amber-500\\/40:is(.dark *){border-color:#f59e0b66}.dark\\:border-neutral-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(64 64 64 / var(--tw-border-opacity, 1))}.dark\\:bg-amber-400\\/10:is(.dark *){background-color:#fbbf241a}.dark\\:bg-amber-500\\/15:is(.dark *){background-color:#f59e0b26}.dark\\:bg-neutral-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.dark\\:bg-white\\/10:is(.dark *){background-color:#ffffff1a}.dark\\:bg-white\\/15:is(.dark *){background-color:#ffffff26}.dark\\:bg-white\\/70:is(.dark *){background-color:#ffffffb3}.dark\\:bg-yellow-500\\/40:is(.dark *){background-color:#eab30866}.dark\\: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-amber-100:is(.dark *){--tw-text-opacity: 1;color:rgb(254 243 199 / var(--tw-text-opacity, 1))}.dark\\:text-neutral-100:is(.dark *){--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity, 1))}.dark\\:text-neutral-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 229 229 / var(--tw-text-opacity, 1))}.dark\\:text-neutral-300:is(.dark *){--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity, 1))}.dark\\:text-neutral-400:is(.dark *){--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.dark\\:text-red-500:is(.dark *){--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.dark\\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\\:text-white\\/30:is(.dark *){color:#ffffff4d}.dark\\:text-white\\/45:is(.dark *){color:#ffffff73}.dark\\:text-white\\/50:is(.dark *){color:#ffffff80}.dark\\:text-white\\/60:is(.dark *){color:#fff9}.dark\\:text-white\\/70:is(.dark *){color:#ffffffb3}.dark\\:text-white\\/85:is(.dark *){color:#ffffffd9}.dark\\:text-white\\/90:is(.dark *){color:#ffffffe6}.dark\\:hover\\:border-amber-400\\/50:hover:is(.dark *){border-color:#fbbf2480}.dark\\:hover\\:bg-amber-400\\/20:hover:is(.dark *){background-color:#fbbf2433}.dark\\:hover\\:bg-neutral-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity, 1))}.dark\\:hover\\:bg-white\\/20:hover:is(.dark *){background-color:#fff3}.dark\\:hover\\:fill-white\\/75:hover:is(.dark *){fill:#ffffffbf}.dark\\:hover\\:text-neutral-100:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(245 245 245 / var(--tw-text-opacity, 1))}.dark\\:hover\\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\\:hover\\:text-white\\/50:hover:is(.dark *){color:#ffffff80}.dark\\:hover\\:text-white\\/70:hover:is(.dark *){color:#ffffffb3}.dark\\:hover\\:text-white\\/75:hover:is(.dark *){color:#ffffffbf}.dark\\: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\\:-left-5{left:-2rem}.sm\\:bottom-2{bottom:.8rem}.sm\\:right-2{right:.8rem}.sm\\:right-8{right:3.2rem}.sm\\:top-9{top:3.6rem}.sm\\:my-10{margin-top:4rem;margin-bottom:4rem}.sm\\:mb-0{margin-bottom:0}.sm\\:mb-10{margin-bottom:4rem}.sm\\:mb-12{margin-bottom:4.8rem}.sm\\:mb-4{margin-bottom:1.6rem}.sm\\:ml-9{margin-left:3.6rem}.sm\\:mr-3{margin-right:1.2rem}.sm\\:mt-8{margin-top:3.2rem}.sm\\:block{display:block}.sm\\:inline-block{display:inline-block}.sm\\:inline{display:inline}.sm\\:hidden{display:none}.sm\\:h-12{height:4.8rem}.sm\\:h-auto{height:auto}.sm\\:w-4{width:1.6rem}.sm\\:w-\\[500px\\]{width:500px}.sm\\:w-\\[720px\\]{width:720px}.sm\\:w-auto{width:auto}.sm\\:w-fit{width:-webkit-fit-content;width:fit-content}.sm\\:min-w-\\[100px\\]{min-width:100px}.sm\\:min-w-\\[64px\\]{min-width:64px}.sm\\:flex-row{flex-direction:row}.sm\\:justify-normal{justify-content:normal}.sm\\:rounded-xl{border-radius:1.2rem}.sm\\:p-0{padding:0}.sm\\:p-8{padding:3.2rem}.sm\\:px-3{padding-left:1.2rem;padding-right:1.2rem}.sm\\:px-8{padding-left:3.2rem;padding-right:3.2rem}.sm\\:py-10{padding-top:4rem;padding-bottom:4rem}.sm\\:pb-0{padding-bottom:0}.sm\\:pb-10{padding-bottom:4rem}.sm\\:pb-8{padding-bottom:3.2rem}.sm\\:pl-0{padding-left:0}.sm\\:pl-\\[44px\\]{padding-left:44px}.sm\\:pr-10{padding-right:4rem}.sm\\:pr-4{padding-right:1.6rem}.sm\\:pt-0{padding-top:0}.sm\\:pt-\\[40px\\]{padding-top:40px}.sm\\:pt-\\[4vmin\\]{padding-top:4vmin}.sm\\:pt-\\[56px\\]{padding-top:56px}.sm\\:text-left{text-align:left}.sm\\:text-2xl{font-size:2.4rem}.sm\\:text-lg{font-size:1.65rem}.sm\\:text-sm{font-size:1.4rem}.sm\\:\\[border-bottom-left-radius\\:16px_16px\\]{border-bottom-left-radius:16px}}',Cy=ae.forwardRef(function({children:e,onResize:t,style:o,title:r},i){const a=w.jsxs(w.Fragment,{children:[w.jsx("style",{dangerouslySetInnerHTML:{__html:IE}}),w.jsx("meta",{content:"width=device-width, initial-scale=1.0, maximum-scale=1.0",name:"viewport"})]});return w.jsx(jE,{ref:i,head:a,style:o,title:r,onResize:t,children:e})}),BE=ae.forwardRef(function({children:e,style:t,title:o},r){const[i,a]=E.useState(t),c=E.useCallback(d=>{a(m=>({...m,height:`${d.scrollHeight}px`}))},[]);return w.jsx(Cy,{ref:r,style:i,title:o,onResize:c,children:e})}),zE=ae.forwardRef(function({children:e},t){const o={width:"100%",height:"400px"};return w.jsx(BE,{ref:t,style:o,title:"comments-frame",children:e})}),FE=({children:n,title:e})=>{const t={zIndex:"3999999",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",overflow:"hidden"};return w.jsx(Cy,{style:t,title:e,children:n})},_E=({show:n,children:e,title:t,callback:o})=>{const{dispatchAction:r}=oe(),i=()=>{r("closePopup",{}),o&&o(!1)};return E.useEffect(()=>{const a=c=>{c.key==="Escape"&&i()};return window.addEventListener("keydown",a,{passive:!0}),()=>{window.removeEventListener("keydown",a)}}),w.jsx(ho,{appear:!0,show:n,children:w.jsx(FE,{title:t,children:w.jsx("div",{children:w.jsx(ho.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:i,children:w.jsx(ho.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})})})})})})},UE=n=>E.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"gh-portal-closeicon",alt:"Close",...n},E.createElement("defs",null,E.createElement("style",null,".a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px !important;}")),E.createElement("path",{className:"a",d:"M.75 23.249l22.5-22.5M23.25 23.249L.75.749"})),Oa=({close:n})=>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:n,children:w.jsx(UE,{className:"size-5 p-1 pr-0"})}),HE=n=>{const e=E.useRef(null),t=E.useRef(null),{dispatchAction:o,member:r,accentColor:i,t:a}=oe(),[c,d]=E.useState(r.name??""),[m,p]=E.useState(r.expertise??""),h=50;let g=h;r.expertise&&(g-=r.expertise.length);const[k,b]=E.useState(g),[$,S]=E.useState({name:"",expertise:""}),N=U=>{U.stopPropagation()},P=U=>{o("closePopup",{}),n.callback(U)},L=async()=>{c.trim()!==""?(await o("updateMember",{name:c,expertise:m}),P(!0)):(S({name:a("Enter your name"),expertise:""}),d(""),e.current?.focus())};E.useEffect(()=>{if(!rs()){const U=setTimeout(()=>{n.expertiseAutofocus?t.current?.focus():e.current?.focus()},200);return()=>{clearTimeout(U)}}},[e,t,n.expertiseAutofocus]);const j=()=>{const U=X=>w.jsx(ho,{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:"size-10 shrink-0 rounded-full border-2 border-white bg-cover bg-no-repeat",style:{backgroundImage:`url(${X.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:X.name}),w.jsx("div",{className:"font-sans text-sm tracking-tight text-neutral-400",children:X.expertise})]})]})},X.name),I=[],K=[{avatar:"https://randomuser.me/api/portraits/men/32.jpg",name:"James Fletcher",expertise:a("Full-time parent")},{avatar:"https://randomuser.me/api/portraits/women/30.jpg",name:"Naomi Schiff",expertise:a("Founder @ Acme Inc")},{avatar:"https://randomuser.me/api/portraits/men/4.jpg",name:"Franz Tost",expertise:a("Neurosurgeon")},{avatar:"https://randomuser.me/api/portraits/women/51.jpg",name:"Katrina Klosp",expertise:a("Local resident")}];for(let X=0;X<K.length;X++)I.push(U(K[X]));return I},Y=ep(a("{amount} characters left"),"{amount}",()=>w.jsx("b",{children:k}));return w.jsx("div",{className:"rounded-none relative h-screen w-screen overflow-hidden bg-white p-[28px] text-center shadow-modal sm:h-auto sm:w-[720px] sm:rounded-xl sm:p-0","data-testid":"profile-modal",onMouseDown:N,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:j()})}),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:[a("Complete your profile"),w.jsx("span",{className:"hidden sm:inline",children:"."})]}),w.jsx("p",{className:"pr-0 text-center font-sans text-md leading-snug text-neutral-500 sm:pr-10 sm:text-left",children:a("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:a("Name")}),w.jsx(ho,{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:!!$.name,children:w.jsx("div",{className:"font-sans text-sm text-red-500",children:$.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 ${$.name&&"border-red-500 focus:border-red-500"}`,"data-testid":"name-input",id:"comments-name",maxLength:64,name:"name",placeholder:a("Jamie Larson"),type:"text",value:c,onChange:U=>{d(U.currentTarget.value)},onKeyDown:U=>{U.key==="Enter"&&(d(U.currentTarget.value),L().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:a("Expertise")}),w.jsx("div",{className:`font-sans text-base text-neutral-400 ${k===0&&"text-red-500"}`,children:Y})]}),w.jsx("input",{ref:t,className:`flex h-[42px] w-full items-center rounded border border-neutral-200 px-3 font-sans text-[16px] outline-0 transition-[border-color] duration-200 focus:border-neutral-300 ${k===0&&"border-red-500 focus:border-red-500"}`,"data-testid":"expertise-input",id:"comments-expertise",maxLength:h,name:"expertise",placeholder:a("Head of Marketing at Acme, Inc"),type:"text",value:m,onChange:U=>{const I=U.currentTarget.value;b(h-I.length),p(I)},onKeyDown:U=>{U.key==="Enter"&&(p(U.currentTarget.value),L().catch(console.error))}}),w.jsx("button",{className:"mt-10 flex h-[42px] w-full items-center justify-center rounded-md px-8 font-sans text-md font-semibold text-white opacity-100 transition-opacity duration-200 ease-linear hover:opacity-90","data-testid":"save-button",style:{backgroundColor:i??"#000000"},type:"button",onClick:()=>{L().catch(console.error)},children:a("Save")})]})]}),w.jsx(Oa,{close:()=>P(!1)})]})})},VE=({commentId:n})=>{const{dispatchAction:e,isMember:t,isPaidOnly:o}=oe(),r=c=>{c.stopPropagation()},i=()=>{e("closePopup",{})},a=!t;return w.jsx("div",{className:"rounded-none relative h-screen w-screen bg-white p-[28px] text-center shadow-modal sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left",onClick:i,onMouseDown:r,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(cp,{commentId:n,isFirst:a,isPaid:o})}),w.jsx(Oa,{close:i})]})})},Ey=n=>E.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",...n},E.createElement("g",{id:"check-circle",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},E.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}))),YE={addDetailsPopup:HE,reportPopup:({comment:n})=>{const{dispatchAction:e,t}=oe(),[o,r]=E.useState("default");let i="bg-red-600";o==="sent"&&(i="bg-green-600");let a=t("Report");const c=a;o==="sending"?a=t("Sending"):o==="sent"&&(a=t("Sent"));const d=w.jsx(ss,{className:"mr-2 size-[24px] fill-white"}),m=w.jsx(Ey,{className:"mr-2 size-[16px]"});let p=null;o==="sending"?p=d:o==="sent"&&(p=m);const h=b=>{b.stopPropagation()},g=()=>{e("closePopup",{})},k=b=>{b.stopPropagation(),r("sending"),setTimeout(()=>{r("sent"),e("reportComment",n),setTimeout(()=>{g()},750)},1e3)};return w.jsx("div",{className:"rounded-none relative h-screen w-screen bg-white p-[28px] text-center shadow-modal sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left",onMouseDown:h,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:t("Report this comment?")})}),w.jsx("p",{className:"px-4 font-sans text-md leading-9 text-black sm:pl-0 sm:pr-4",children:t("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:`flex h-[44px] w-full items-center justify-center rounded-md px-4 font-sans text-md font-medium text-white transition duration-200 ease-linear sm:w-fit ${i} opacity-100 hover:opacity-90`,style:{backgroundColor:i??"#000000"},type:"button",onClick:k,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:[d,t("Sending")]}),w.jsx("br",{}),w.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[m,t("Sent")]})]}),w.jsxs("span",{className:"absolute flex h-[44px] items-center justify-center whitespace-nowrap",children:[p,a]})]}),w.jsx("button",{className:"h-[44px] w-full px-2 font-sans text-md font-medium text-neutral-500 dark:text-neutral-400 sm:w-fit",type:"button",onClick:g,children:t("Cancel")})]}),w.jsx(Oa,{close:g})]})})},ctaPopup:VE,deletePopup:({comment:n})=>{const{dispatchAction:e,t}=oe(),[o,r]=E.useState("default"),[i,a]=E.useState(!1);let c="bg-red-600";o==="sent"&&(c="bg-green-600");let d=t("Delete");const m=d;o==="sending"?d=t("Deleting"):o==="sent"&&(d=t("Deleted"));const p=w.jsx(ss,{className:"mr-2 size-[24px] fill-white"}),h=w.jsx(Ey,{className:"mr-2 size-[16px]"});let g=null;o==="sending"?g=p:o==="sent"&&(g=h);const k=S=>{S.stopPropagation()},b=()=>{e("closePopup",{})},$=S=>{S.stopPropagation(),!i&&(a(!0),r("sending"),setTimeout(()=>{r("sent"),e("deleteComment",n),setTimeout(()=>{b()},750)},1e3))};return w.jsx("div",{className:"rounded-none relative h-screen w-screen bg-white p-[28px] text-center shadow-modal sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left","data-testid":"delete-popup",onMouseDown:k,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:t("Are you sure?")})}),w.jsx("p",{className:"px-4 font-sans text-md leading-9 text-black sm:pl-0 sm:pr-4",children:t("Once deleted, this comment can’t 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:`flex h-[44px] w-full items-center justify-center rounded-md px-4 font-sans text-md font-medium text-white transition duration-200 ease-linear sm:w-fit ${c} opacity-100 hover:opacity-90`,"data-testid":"delete-popup-confirm",disabled:i,type:"button",onClick:$,children:[w.jsxs("span",{className:"invisible whitespace-nowrap",children:[m,w.jsx("br",{}),w.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[p,t("Deleting")]}),w.jsx("br",{}),w.jsxs("span",{className:"flex h-[44px] items-center justify-center whitespace-nowrap",children:[h,t("Deleted")]})]}),w.jsxs("span",{className:"absolute flex h-[44px] items-center justify-center whitespace-nowrap",children:[g,d]})]}),w.jsx("button",{className:"h-[44px] w-full px-2 font-sans text-md font-medium text-neutral-500 dark:text-neutral-400 sm:w-fit",type:"button",onClick:b,children:t("Cancel")})]}),w.jsx(Oa,{close:b})]})})}},JE=()=>{const{popup:n}=oe(),[e,t]=E.useState(n);if(E.useEffect(()=>{if(n!==null&&t(n),n===null){const c=setTimeout(()=>{t(null)},250);return()=>{clearTimeout(c)}}},[n,t]),!e||!e.type)return null;const{type:o,...r}=n??e,i=YE[o];if(!i)return console.warn("Unknown popup of type ",o),null;const a=n===e;return w.jsx(w.Fragment,{children:w.jsx(_E,{callback:r.callback,show:a,title:o,children:w.jsx(i,{...r})})})},KE={"{amount} characters left":"{amount} karakters oor","{amount} comments":"{amount} kommentaar","{amount} hrs ago":"{amount} ure gelede","{amount} mins ago":"{amount} minute gelede","{amount} more":"{amount} meer","1 comment":"1 kommentaar","Add comment":"Voeg kommentaar by","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Voeg konteks by jou kommentaar, deel jou naam en kundigheid om 'n gesonde bespreking te bevorder.","Add reply":"Voeg antwoord by","Add your expertise":"","Already a member?":"Reeds 'n lid?",Anonymous:"Anoniem","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"Word 'n lid van {publication} om kommentaar te lewer.","Become a paid member of {publication} to start commenting.":"Word 'n betaalde lid van {publication} om kommentaar te lewer.",Best:"",Cancel:"Kanselleer",Comment:"Kommentaar","Commenting disabled":"","Complete your profile":"Voltooi jou profiel",Delete:"Skrap",Deleted:"","Deleted member":"Geskrapte lid",Deleting:"",Discussion:"Bespreking",Dislike:"",Edit:"Redigeer","Edit this comment":"Redigeer hierdie kommentaar",edited:"geredigeer","Enter your name":"Voer jou naam in",Expertise:"Kundigheid","Founder @ Acme Inc":"Stigter @ Acme Inc","Full-time parent":"Voltydse ouer","Head of Marketing at Acme, Inc":"Hoof van Bemarking by Acme, Inc","Hidden for members":"","Hide comment":"Versteek kommentaar","Jamie Larson":"Jamie Larson","Join the discussion":"Sluit aan by die bespreking","Just now":"Sopas",Like:"","Load more ({amount})":"","Local resident":"Plaaslike inwoner","Member discussion":"Lidmaat bespreking",Name:"Naam",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Een uur gelede","One min ago":"Een minuut gelede","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",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","See full discussion":"",Sending:"Besig om te stuur",Sent:"Gestuur","Show {amount} more replies":"Wys {amount} meer antwoorde","Show 1 more reply":"Wys nog 1 antwoord","Show comment":"Wys kommentaar","Sign in":"Teken in","Sign up now":"Sluit nou aan","Sort by":"","Start the conversation":"Begin die gesprek","The linked comment is no longer available.":"","This comment has been hidden.":"Hierdie kommentaar is weggesteek.","This comment has been removed.":"Hierdie kommentaar is verwyder.",Unpin:"","Unpin comment":"","Upgrade now":"Gradeer nou op","View in admin":"",Yesterday:"Gister","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Jou versoek sal aan die eienaar van hierdie webwerf gestuur word."},WE={"{amount} characters left":"الحروف المتبقية : {amount}","{amount} comments":"{amount} تعليق/ات","{amount} hrs ago":"منذ {amount} ساعات","{amount} mins ago":"منذ {amount} دقيقة","{amount} more":"{amount} المزيد","1 comment":"تعليق واحد","Add comment":"اضف تعليق","Add context to your comment, share your name and expertise to foster a healthy discussion.":"قم بإضافة سياق لتعليقك، شارك اسمك و مجال خبرتك لكي نرعى محادثة مثمرة","Add reply":"ردّ","Add your expertise":"","Already a member?":"هل انت مسجل بالفعل؟",Anonymous:"مجهول","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"يجب أن تصبح عضوًا فى {publication} لتستطيع التعليق","Become a paid member of {publication} to start commenting.":"يجب ان تكون عضويتك مدفوعة فى {publication} لكي تستطيع التعليق",Best:"",Cancel:"إلغاء",Comment:"تعليق","Commenting disabled":"","Complete your profile":"إكمال ملفك الشخصى",Delete:"حذف",Deleted:"","Deleted member":"الاعضاء المحذوفين",Deleting:"",Discussion:"النقاش",Dislike:"",Edit:"تعديل","Edit this comment":"عدّل هذا التعليق",edited:"تم التعديل","Enter your name":"اكتب اسمك",Expertise:"مجال تخصصك","Founder @ Acme Inc":"مؤسس لدى شركة أكمي","Full-time parent":"أب بدوام كامل","Head of Marketing at Acme, Inc":"رئيس وحدة التسويق لدى شركة أكمى","Hidden for members":"","Hide comment":"اخف التعليق","Jamie Larson":"فلان الفلانى","Join the discussion":"انضم للمحادثة","Just now":"الآن",Like:"","Load more ({amount})":"","Local resident":"مقيم محلى","Member discussion":"مناقشة الاعضاء",Name:"الاسم",Neurosurgeon:"جراح المخ و الاعصاب",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"منذ ساعة واحدة","One min ago":" منذ دقيقة واحدة","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"","Replied to":"",Reply:"رد","Reply to":"","Reply to comment":"رد على هذا التعليق",Report:"الإبلاغ","Report comment":"ابلغ عن هذا التعليق","Report this comment?":"الإبلاغ عن التعليق؟",Save:"حفظ","See full discussion":"",Sending:"جارى الارسال",Sent:"تم الارسال","Show {amount} more replies":"اظهر {amount} ردود","Show 1 more reply":"اظهر تعليق وحيد","Show comment":"اظهر التعليق","Sign in":"تسجيل الدخول","Sign up now":"قم بالتسجيل الآن","Sort by":"ترتيب بحسب","Start the conversation":"ابدأ النقاش","The linked comment is no longer available.":"","This comment has been hidden.":"تم اخفاء هذا التعليق","This comment has been removed.":"تم حذف هذا التعليق",Unpin:"","Unpin comment":"","Upgrade now":"قم بالترقية الآن","View in admin":"",Yesterday:"أمس","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"سيتم ارسال طلبك لصاحب الموقع"},qE={"{amount} characters left":"Остават {amount} знака","{amount} comments":"{amount} коментара","{amount} hrs ago":"Преди {amount} часа","{amount} mins ago":"Преди {amount} минути","{amount} more":"Още {amount}","1 comment":"1 коментар","Add comment":"Нов коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Добавете контекст към коментара си, споделете името си и опита си, за да насърчите полезна дискусия.","Add reply":"Отговор","Add your expertise":"Добавете компетенции","Already a member?":"Вече сте абонат?",Anonymous:"Анонимен","Are you sure?":"Убедени ли сте?",Back:"Назад","Become a member of {publication} to start commenting.":"Абонирайте се за {publication}, за да коментирате.","Become a paid member of {publication} to start commenting.":"Станете плащащ абонат на {publication}, за да коментирате.",Best:"Най-добрите",Cancel:"Отказ",Comment:"Коментар","Commenting disabled":"Коментирането е изключено","Complete your profile":"Попълнете профила си",Delete:"Изтриване",Deleted:"Изтрито","Deleted member":"Изтрит абонат",Deleting:"Изтриване",Discussion:"Дискусия",Dislike:"Не ми харесва",Edit:"Редактиране","Edit this comment":"Редактиране на коментара",edited:"редактиран","Enter your name":"Попълнете името си",Expertise:"Компетенции","Founder @ Acme Inc":"Основател на Компания ООД","Full-time parent":"Родител на пълно работно време","Head of Marketing at Acme, Inc":"Директор маркетинг в Компания ООД","Hidden for members":"Скрит за абонати","Hide comment":"Скриване на коментара","Jamie Larson":"Иван Иванов","Join the discussion":"Участвайте в дискусията","Just now":"Току-що",Like:"Харесва ми","Load more ({amount})":"Още ({amount})","Local resident":"Местен жител","Member discussion":"Дискусия за абонатите",Name:"Име",Neurosurgeon:"Неврохирург",Newest:"Най-нови",Oldest:"Най-стари","Once deleted, this comment can’t be recovered.":"Веднъж изтрит, коментарът не може да бъде възстановен.","One hour ago":"Преди час","One min ago":"Преди минута","Pin comment":"Залепи коментара",Pinned:"Залепен","Read more replies":"Още отговори","Remove dislike":"Отмени нехаресването","Remove like":"Отмени харесването",removed:"премахнат","Replied to":"Отговорено на",Reply:"Отговор","Reply to":"Отговор на","Reply to comment":"Отговор на коментара",Report:"Докладване","Report comment":"Докладване на коментара","Report this comment?":"Ще докладвате ли коментара?",Save:"Запис","See full discussion":"Вижте цялата дискусия",Sending:"Изпращане",Sent:"Изпратен","Show {amount} more replies":"Покажи още {amount} отговора","Show 1 more reply":"Покажи още един отговор","Show comment":"Покажи коментар","Sign in":"Вход","Sign up now":"Регистрация","Sort by":"Сортиране по","Start the conversation":"Започнете дискусия","The linked comment is no longer available.":"Посоченият коментар вече не е наличен.","This comment has been hidden.":"Този коментар е скрит.","This comment has been removed.":"Този коментар е премахнат.",Unpin:"Отлепи","Unpin comment":"Отлепи коментара","Upgrade now":"Надградете сега","View in admin":"Преглед в админ панела",Yesterday:"Вчера","You can't post comments in this publication.":"Не може да коментирате под тази публикация.","You can't post comments in this publication. <a>Contact support</a> for more information.":"Не може да коментирате под тази публикация. <a>Връзка с поддръжката</a> за повече информация.","Your request will be sent to the owner of this site.":"Искането ще бъде изпратено до собственика на сайта."},GE={"{amount} characters left":"{amount} অক্ষর বাকি","{amount} comments":"{amount} মন্তব্য","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"{amount}টি আরও","1 comment":"১টি মন্তব্য","Add comment":"মন্তব্য যোগ করুন","Add context to your comment, share your name and expertise to foster a healthy discussion.":"আপনার মন্তব্যে প্রসঙ্গ যোগ করুন, একটি সুস্থ আলোচনা করতে আপনার নাম ও অভিজ্ঞতা শেয়ার করুন।","Add reply":"উত্তর যোগ করুন","Add your expertise":"","Already a member?":"ইত:পূর্বে সদস্য?",Anonymous:"অজ্ঞাতনামা","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"{publication} এর সদস্য হন মন্তব্য করার জন্য।","Become a paid member of {publication} to start commenting.":"{publication} এর পেইড সদস্য হন মন্তব্য করার জন্য।",Best:"",Cancel:"বাতিল করুন",Comment:"মন্তব্য","Commenting disabled":"","Complete your profile":"আপনার প্রোফাইল সম্পূর্ণ করুন",Delete:"মুছে ফেলুন",Deleted:"","Deleted member":"মুছে ফেলা সদস্য",Deleting:"",Discussion:"আলোচনা",Dislike:"",Edit:"সম্পাদনা","Edit this comment":"এই মন্তব্য সম্পাদনা করুন",edited:"","Enter your name":"আপনার নাম লিখুন",Expertise:"বিশেষজ্ঞতা","Founder @ Acme Inc":"প্রতিষ্ঠাতা @ বাংলাদেশ ট্রেড হাব","Full-time parent":"পূর্ণকালীন অভিভাবক","Head of Marketing at Acme, Inc":"মার্কেটিং প্রধান @ বাংলাদেশ ট্রেড হাব","Hidden for members":"","Hide comment":"মন্তব্য লুকান","Jamie Larson":"শাহ নেওয়াজ","Join the discussion":"আলোচনায় যোগ দিন","Just now":"এখনই",Like:"","Load more ({amount})":"","Local resident":"স্থানীয় বাসিন্দা","Member discussion":"সদস্য আলোচনা",Name:"নাম",Neurosurgeon:"নিউরোসার্জন",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"এক ঘণ্টা পূর্বে","One min ago":"","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"","Replied to":"",Reply:"উত্তর","Reply to":"","Reply to comment":"মন্তব্যের উত্তর দিন",Report:"প্রতিবেদন","Report comment":"মন্তব্য প্রতিবেদন করুন","Report this comment?":"এই মন্তব্য প্রতিবেদন করবেন?",Save:"সংরক্ষণ করুন","See full discussion":"",Sending:"পাঠানো হচ্ছে",Sent:"পাঠানো হয়েছে","Show {amount} more replies":" আরো {amount}টি উত্তর দেখান","Show 1 more reply":"১টি আরো উত্তর দেখান","Show comment":"মন্তব্য দেখান","Sign in":"সাইন ইন করুন","Sign up now":"এখনই সাইন আপ করুন","Sort by":"","Start the conversation":"আলোচনা শুরু করুন","The linked comment is no longer available.":"","This comment has been hidden.":"এই মন্তব্য লুকানো হয়েছে।","This comment has been removed.":"এই মন্তব্য মুছে ফেলা হয়েছে।",Unpin:"","Unpin comment":"","Upgrade now":"এখনই আপগ্রেড করুন","View in admin":"",Yesterday:"গতকাল","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"আপনার অনুরোধ সাইটের মালিকের কাছে পাঠানো হবে।"},QE={"{amount} characters left":"Preostalo {amount} karaktera","{amount} comments":"{amount} komentara","{amount} hrs ago":"Prije {amount} sati","{amount} mins ago":"Prije {amount} minuta","{amount} more":"Još {amount}","1 comment":"1 komentar","Add comment":"Dodaj komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodaj kontekst svom komentaru, podijeli svoje ime i stručnost u svrhu kvalitetnije diskusije.","Add reply":"Objavi komentar","Add your expertise":"","Already a member?":"Već si član?",Anonymous:"Anoniman","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"Postani član portala {publication} za pristup diskusiji.","Become a paid member of {publication} to start commenting.":"Postani plaćeni član portala {publication} za pristup diskusiji.",Best:"",Cancel:"Otkaži",Comment:"Komentar","Commenting disabled":"","Complete your profile":"Dovrši svoj profil",Delete:"Obriši",Deleted:"","Deleted member":"Obrisan član",Deleting:"",Discussion:"Diskusija",Dislike:"",Edit:"Uredi","Edit this comment":"Uredi komentar",edited:"uređeno","Enter your name":"Unesi ime",Expertise:"Stručnost","Founder @ Acme Inc":"Acme Inc osnivač","Full-time parent":"Full time roditelj","Head of Marketing at Acme, Inc":"Šef marketinga u kompaniji Acme d.o.o","Hidden for members":"","Hide comment":"Sakrij komentar","Jamie Larson":"Vanja Larsić","Join the discussion":"Pridruži se diskusiji","Just now":"Upravo sada",Like:"","Load more ({amount})":"","Local resident":"Lokalni stanovnik","Member discussion":"Diskusija članova",Name:"Ime",Neurosurgeon:"Neurohirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Prije jedan sat","One min ago":"Prije jedan minut","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",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","See full discussion":"",Sending:"Šaljem",Sent:"Poslano","Show {amount} more replies":"Prikaži još {amount} odgovora","Show 1 more reply":"Prikaži još jedan odgovor","Show comment":"Prikaži komentar","Sign in":"Prijavi se","Sign up now":"Postani član","Sort by":"","Start the conversation":"Započni diskusiju","The linked comment is no longer available.":"","This comment has been hidden.":"Ovaj komentar je sakriven.","This comment has been removed.":"Ovaj komentar je uklonjen.",Unpin:"","Unpin comment":"","Upgrade now":"Nadogradi račun sada","View in admin":"",Yesterday:"Jučer","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Tvoj zahtjev je poslan vlasniku stranice."},XE={"{amount} characters left":"{amount} caràcters restants","{amount} comments":"{amount} comentaris","{amount} hrs ago":"Fa {amount} hores","{amount} mins ago":"Fa {amount} minuts","{amount} more":"{amount} més","1 comment":"Un comentari","Add comment":"Afegeix un comentari","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Afegeix context al teu comentari, comparteix el teu nom i experiència per fomentar una discussió sana.","Add reply":"Afegeix una resposta","Add your expertise":"","Already a member?":"Ja n'ets membre?",Anonymous:"Anònim","Are you sure?":"N'estàs segur?",Back:"","Become a member of {publication} to start commenting.":"Fes-te membre de {publication} per començar a comentar.","Become a paid member of {publication} to start commenting.":"Fes-te membre de pagament de {publication} per començar a comentar",Best:"",Cancel:"Cancel·la",Comment:"Comentari","Commenting disabled":"","Complete your profile":"Completa el teu perfil",Delete:"Esborra",Deleted:"Esborrat","Deleted member":"Membre esborrat",Deleting:"Esborrant",Discussion:"Debat",Dislike:"",Edit:"Edita","Edit this comment":"Edita aquest comentari",edited:"editat","Enter your name":"Escriu el teu nom",Expertise:"Expertesa","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Pare a temps complet","Head of Marketing at Acme, Inc":"Cap de màrqueting a Acme, Inc","Hidden for members":"Ocult pels membres","Hide comment":"Oculta el comentari","Jamie Larson":"Jamie Larson","Join the discussion":"Uneix-te al debat","Just now":"Just ara",Like:"","Load more ({amount})":"","Local resident":"Resident local","Member discussion":"Debat de membres",Name:"Nom",Neurosurgeon:"Neurocirurgià",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Un cop esborrat, aquest comentari no es pot recuperar","One hour ago":"Fa una hora","One min ago":"Fa un minut","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",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","See full discussion":"",Sending:"Enviant",Sent:"Enviat","Show {amount} more replies":"Mostra {amount} respostes més","Show 1 more reply":"Mostra 1 resposta més","Show comment":"Mostra comentari","Sign in":"Inicia sessió","Sign up now":"Registra't ara","Sort by":"Ordena per","Start the conversation":"Comença la conversa","The linked comment is no longer available.":"","This comment has been hidden.":"Aquest comentari s'ha ocultat.","This comment has been removed.":"Aquest comentari s'ha esborrat.",Unpin:"","Unpin comment":"","Upgrade now":"Actualitza ara","View in admin":"",Yesterday:"Ahir","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"La teva sol·licitud s'enviarà al propietari d'aquest lloc."},ZE={"{amount} characters left":"Zbývá {amount} znaků","{amount} comments":"{amount} komentářů","{amount} hrs ago":"Před {amount} hodinami","{amount} mins ago":"Před {amount} minutami","{amount} more":"Dalších {amount}","1 comment":"1 komentář","Add comment":"Přidat komentář","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Pro podporu zdravé diskuse přidejte ke svému komentáři kontext, své jméno a odbornost.","Add reply":"Přidat odpověď","Add your expertise":"","Already a member?":"Už jste členem?",Anonymous:"Anonymní","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"Staňte se členem {publication}, abyste mohli začít komentovat.","Become a paid member of {publication} to start commenting.":"Staňte se placeným členem {publication}, abyste mohli začít komentovat.",Best:"",Cancel:"Zrušit",Comment:"Komentář","Commenting disabled":"","Complete your profile":"Dokončete svůj profil",Delete:"Smazat",Deleted:"","Deleted member":"Smazaný člen",Deleting:"",Discussion:"Diskuse",Dislike:"",Edit:"Upravit","Edit this comment":"Upravit tento komentář",edited:"upraveno","Enter your name":"Zadejte své jméno",Expertise:"Odbornost","Founder @ Acme Inc":"Zakladatel @ Acme Inc","Full-time parent":"Rodič na plný úvazek","Head of Marketing at Acme, Inc":"Vedoucí marketingu v Acme, Inc","Hidden for members":"","Hide comment":"Skrýt komentář","Jamie Larson":"Jamie Larson","Join the discussion":"Připojte se k diskusi","Just now":"Právě teď",Like:"","Load more ({amount})":"","Local resident":"Místní obyvatel","Member discussion":"Diskuse členů",Name:"Jméno",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Před jednou hodinou","One min ago":"Před jednou minutou","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",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","See full discussion":"",Sending:"Odesílání",Sent:"Odesláno","Show {amount} more replies":"Zobrazit {amount} dalších odpovědí","Show 1 more reply":"Zobrazit 1 další odpověď","Show comment":"Zobrazit komentář","Sign in":"Přihlásit se","Sign up now":"Zaregistrujte se nyní","Sort by":"","Start the conversation":"Začněte konverzaci","The linked comment is no longer available.":"","This comment has been hidden.":"Tento komentář byl skryt.","This comment has been removed.":"Tento komentář byl odstraněn.",Unpin:"","Unpin comment":"","Upgrade now":"Upgradovat","View in admin":"",Yesterday:"Včera","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Vaše žádost bude odeslána vlastníkovi tohoto webu."},eN={"{amount} characters left":"{amount} tegn tilbage","{amount} comments":"{amount} kommentarer","{amount} hrs ago":"{amount} timer siden","{amount} mins ago":"{amount} minutter siden","{amount} more":"{amount} mere","1 comment":"1 kommentar","Add comment":"Tilføj kommentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Tilføj kontekst til din kommentar, del dit navn og ekspertise for at fremme en sund diskussion.","Add reply":"Tilføj svar","Add your expertise":"","Already a member?":"Allerede medlem?",Anonymous:"Anonym","Are you sure?":"Er du sikker?",Back:"","Become a member of {publication} to start commenting.":"Bliv medlem af {publication} for at kunne skrive kommentarer.","Become a paid member of {publication} to start commenting.":"Bliv betalende medlem af {publication} for at kunne skrive kommentarer.",Best:"",Cancel:"Annuller",Comment:"Kommentér","Commenting disabled":"","Complete your profile":"Færdiggør din profil",Delete:"Slet",Deleted:"Slettet","Deleted member":"Slettet medlem",Deleting:"Sletter",Discussion:"Diskussion",Dislike:"",Edit:"Rediger","Edit this comment":"Rediger denne kommentar",edited:"redigeret","Enter your name":"Indtast dit navn",Expertise:"Ekspertise","Founder @ Acme Inc":"Grundlægger @ Acme Inc","Full-time parent":"Forældre på fuld tid","Head of Marketing at Acme, Inc":"Chef for marking hos Acme, Inc","Hidden for members":"Skjult for medlemmer","Hide comment":"Skjul kommentar","Jamie Larson":"Jamie Larson","Join the discussion":"Bliv en del af diskussionen","Just now":"Lige nu",Like:"","Load more ({amount})":"Indlæs mere ({amount})","Local resident":"Lokal borger","Member discussion":"Medlemsdiskussion",Name:"Navn",Neurosurgeon:"Neurokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Når den først er slettet, kan denne kommentar ikke gendannes.","One hour ago":"En time siden","One min ago":"Et minut siden","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",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","See full discussion":"",Sending:"Sender",Sent:"Sendt","Show {amount} more replies":"Vis {amount} flere svar","Show 1 more reply":"Vis 1 mere svar","Show comment":"Vis kommentar","Sign in":"Log ind","Sign up now":"Tilmed dig nu","Sort by":"Sorter efter","Start the conversation":"Start samtalen","The linked comment is no longer available.":"","This comment has been hidden.":"Denne kommentar er blevet skjult.","This comment has been removed.":"Denne kommentar er blevet fjernet.",Unpin:"","Unpin comment":"","Upgrade now":"Opgrader nu","View in admin":"",Yesterday:"I går","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Din anmodning vil blive sendt til ejeren af dette site."},tN={"{amount} characters left":"{amount} Zeichen übrig","{amount} comments":"{amount} Kommentare","{amount} hrs ago":"Vor {amount} Stunden","{amount} mins ago":"Vor {amount} Minuten","{amount} more":"{amount} mehr","1 comment":"1 Kommentar","Add comment":"Kommentar hinzufügen","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Fügen Sie Kontext zu Ihrem Kommentar hinzu, teilen Sie Ihren Namen und Ihre Expertise, um eine gesunde Diskussion zu fördern.","Add reply":"Antwort hinzufügen","Add your expertise":"Teilen Sie Ihr Fachwissen","Already a member?":"Bereits ein Mitglied?",Anonymous:"Anonym","Are you sure?":"Sind Sie sicher?",Back:"","Become a member of {publication} to start commenting.":"Werden Sie ein Mitglied bei {publication}, um Kommentare zu schreiben.","Become a paid member of {publication} to start commenting.":"Werden Sie ein zahlendes Mitglied bei {publication}, um Kommentare zu schreiben.",Best:"Beste",Cancel:"Abbrechen",Comment:"Kommentar","Commenting disabled":"","Complete your profile":"Vervollständigen Sie Ihr Profil",Delete:"Löschen",Deleted:"Gelöscht","Deleted member":"Gelöschtes Mitglied",Deleting:"Löschen",Discussion:"Diskussion",Dislike:"",Edit:"Bearbeiten","Edit this comment":"Kommentar bearbeiten",edited:"bearbeitet","Enter your name":"Geben Sie Ihren Namen ein",Expertise:"Expertise","Founder @ Acme Inc":"Gründer bei Acme Inc","Full-time parent":"Vollzeit-Elternteil","Head of Marketing at Acme, Inc":"Leiter Marketing bei Acme, Inc","Hidden for members":"Verborgen für Mitglieder","Hide comment":"Kommentar verbergen","Jamie Larson":"Jamie Larson","Join the discussion":"An der Diskussion teilnehmen","Just now":"Gerade eben",Like:"","Load more ({amount})":"Mehr laden ({amount})","Local resident":"Anwohner","Member discussion":"Mitgliederdiskussion",Name:"Name",Neurosurgeon:"Neurochirurg",Newest:"Neueste",Oldest:"Älteste","Once deleted, this comment can’t be recovered.":"Der Kommentar kann nicht wiederhergestellt werden, wenn er gelöscht wurde.","One hour ago":"Vor einer Stunde","One min ago":"Vor einer Minute","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",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","See full discussion":"",Sending:"Senden",Sent:"Gesendet","Show {amount} more replies":"{amount} weitere Antworten anzeigen","Show 1 more reply":"1 weitere Antwort anzeigen","Show comment":"Kommentar anzeigen","Sign in":"Anmelden","Sign up now":"Jetzt registrieren","Sort by":"Sortiere nach","Start the conversation":"Beginnen Sie das Gespräch","The linked comment is no longer available.":"","This comment has been hidden.":"Dieser Kommentar wurde ausgeblendet.","This comment has been removed.":"Dieser Kommentar wurde entfernt.",Unpin:"","Unpin comment":"","Upgrade now":"Jetzt upgraden","View in admin":"",Yesterday:"Gestern","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Ihre Anfrage wird an den Seitenbesitzer gesendet."},nN={"{amount} characters left":"{amount} Zeichen übrig","{amount} comments":"{amount} Kommentare","{amount} hrs ago":"Vor {amount} Stunden","{amount} mins ago":"Vor {amount} Minuten","{amount} more":"{amount} weitere","1 comment":"1 Kommentar","Add comment":"Kommentar hinzufügen","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Füge deinem Kommentar Kontext hinzu, teile deinen Namen und deine Expertise, um eine gesunde Diskussion zu fördern.","Add reply":"Antwort hinzufügen","Add your expertise":"Ergänze deine Expertise","Already a member?":"Bist du bereits Mitglied?",Anonymous:"Anonym","Are you sure?":"Bist du sicher?",Back:"","Become a member of {publication} to start commenting.":"Werde Mitglied bei {publication}, um Kommentare zu schreiben.","Become a paid member of {publication} to start commenting.":"Werde zahlendes Mitglied bei {publication}, um Kommentare zu schreiben.",Best:"Beste",Cancel:"Abbrechen",Comment:"Kommentar","Commenting disabled":"","Complete your profile":"Vervollständige dein Profil",Delete:"Löschen",Deleted:"Gelöscht","Deleted member":"Gelöschtes Mitglied",Deleting:"Wird gelöscht",Discussion:"Diskussion",Dislike:"",Edit:"Bearbeiten","Edit this comment":"Diesen Kommentar bearbeiten",edited:"bearbeitet","Enter your name":"Gib deinen Namen ein",Expertise:"Expertise","Founder @ Acme Inc":"Gründer bei Acme Inc","Full-time parent":"Vollzeit-Elternteil","Head of Marketing at Acme, Inc":"Leiter Marketing bei Acme, Inc","Hidden for members":"Für Mitglieder verborgen","Hide comment":"Kommentar verbergen","Jamie Larson":"Jamie Larson","Join the discussion":"Nimm an der Diskussion teil","Just now":"Gerade eben",Like:"","Load more ({amount})":"Weitere laden ({amount})","Local resident":"Ortsansässiger","Member discussion":"Mitgliederdiskussion",Name:"Name",Neurosurgeon:"Neurochirurg",Newest:"Neuste",Oldest:"Älteste","Once deleted, this comment can’t be recovered.":"Der Kommentar kann nicht wiederhergestellt werden, sobald er gelöscht wurde.","One hour ago":"Vor einer Stunde","One min ago":"Vor einer Minute","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",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","See full discussion":"",Sending:"Senden",Sent:"Gesendet","Show {amount} more replies":"{amount} weitere Antworten anzeigen","Show 1 more reply":"1 weitere Antwort anzeigen","Show comment":"Kommentar anzeigen","Sign in":"Einloggen","Sign up now":"Jetzt registrieren","Sort by":"Sortiere nach","Start the conversation":"Beginne das Gespräch","The linked comment is no longer available.":"","This comment has been hidden.":"Dieser Kommentar wurde ausgeblendet.","This comment has been removed.":"Dieser Kommentar wurde entfernt.",Unpin:"","Unpin comment":"","Upgrade now":"Jetzt upgraden","View in admin":"",Yesterday:"Gestern","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Deine Anfrage wird an den Besitzer dieser Website gesendet."},oN={"{amount} characters left":"Απομένουν {amount} χαρακτήρες","{amount} comments":"{amount} σχόλια","{amount} hrs ago":"πριν από {amount} ώρες","{amount} mins ago":"πριν από {amount} λεπτά","{amount} more":"{amount} περισσότερα","1 comment":"1 σχόλιο","Add comment":"Προσθήκη σχολίου","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Προσθέστε περιεχόμενο στο σχόλιό σας, μοιραστείτε το όνομα και την εξειδίκευσή σας για να προωθήσετε μια υγιή συζήτηση.","Add reply":"Προσθήκη απάντησης","Add your expertise":"","Already a member?":"Ήδη μέλος;",Anonymous:"Ανώνυμος","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"Γίνετε μέλος του {publication} για να ξεκινήσετε να σχολιάζετε.","Become a paid member of {publication} to start commenting.":"Γίνετε premium μέλος του {publication} για να ξεκινήσετε να σχολιάζετε.",Best:"",Cancel:"Ακύρωση",Comment:"Σχόλιο","Commenting disabled":"","Complete your profile":"Ολοκληρώστε το προφίλ σας",Delete:"Διαγραφή",Deleted:"","Deleted member":"Διαγραμμένο μέλος",Deleting:"",Discussion:"Συζήτηση",Dislike:"",Edit:"Επεξεργασία","Edit this comment":"Επεξεργασία αυτού του σχολίου",edited:"Επεξεργασμένο","Enter your name":"Εισάγετε το όνομά σας",Expertise:"Εξειδίκευση","Founder @ Acme Inc":"Ιδρυτής @ Acme Inc","Full-time parent":"Γονέας πλήρους απασχόλησης","Head of Marketing at Acme, Inc":"Επικεφαλής Μάρκετινγκ στην Acme, Inc","Hidden for members":"","Hide comment":"Απόκρυψη σχολίου","Jamie Larson":"Τζέιμι Λάρσον","Join the discussion":"Συμμετοχή στη συζήτηση","Just now":"Μόλις τώρα",Like:"","Load more ({amount})":"","Local resident":"Τοπικός κάτοικος","Member discussion":"Συζήτηση μελών",Name:"Όνομα",Neurosurgeon:"Νευροχειρουργός",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Πριν από μία ώρα","One min ago":"Πριν από ένα λεπτό","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"","Replied to":"",Reply:"Απάντηση","Reply to":"","Reply to comment":"Απάντηση στο σχόλιο",Report:"Αναφορά","Report comment":"Αναφορά σχολίου","Report this comment?":"Αναφορά αυτού του σχολίου;",Save:"Αποθήκευση","See full discussion":"",Sending:"Αποστολή",Sent:"Απεστάλη","Show {amount} more replies":"Εμφάνιση {amount} περισσότερων απαντήσεων","Show 1 more reply":"Εμφάνιση 1 ακόμα απάντησης","Show comment":"Εμφάνιση σχολίου","Sign in":"Σύνδεση","Sign up now":"Εγγραφείτε τώρα","Sort by":"","Start the conversation":"Ξεκινήστε τη συζήτηση","The linked comment is no longer available.":"","This comment has been hidden.":"Αυτό το σχόλιο έχει κρυφτεί.","This comment has been removed.":"Αυτό το σχόλιο έχει αφαιρεθεί.",Unpin:"","Unpin comment":"","Upgrade now":"Αναβάθμιση τώρα","View in admin":"",Yesterday:"Χθες","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Το αίτημά σας θα σταλεί στον ιδιοκτήτη αυτού του ιστότοπου."},rN={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Dislike:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"",Like:"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"","See full discussion":"",Sending:"",Sent:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"",Unpin:"","Unpin comment":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":""},iN={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Dislike:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"",Like:"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"","See full discussion":"",Sending:"",Sent:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"",Unpin:"","Unpin comment":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":""},sN={"{amount} characters left":"{amount} caracteres restantes","{amount} comments":"{amount} comentarios","{amount} hrs ago":"Hace {amount} horas","{amount} mins ago":"Hace {amount} minutos","{amount} more":"{amount} más","1 comment":"1 comentario","Add comment":"Añadir comentario","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Añade contexto a tu comentario, comparte tu nombre y experiencia para fomentar un debate sano.","Add reply":"Añadir respuesta","Add your expertise":"Añadir tu experiencia","Already a member?":"¿Ya eres miembro?",Anonymous:"Anónimo","Are you sure?":"¿Estás seguro?",Back:"Atrás","Become a member of {publication} to start commenting.":"Hazte miembro de {publication} para poder comentar.","Become a paid member of {publication} to start commenting.":"Hazte miembro de pago para poder comentar en {publication}.",Best:"Mejores",Cancel:"Cancelar",Comment:"Comentar","Commenting disabled":"Comentarios desactivados","Complete your profile":"Completa tu perfil",Delete:"Eliminar",Deleted:"Eliminado","Deleted member":"Eliminar miembro",Deleting:"Eliminando",Discussion:"Discusión",Dislike:"No me gusta",Edit:"Editar","Edit this comment":"Editar este comentario",edited:"editado","Enter your name":"Introduce tu nombre",Expertise:"Experiencia","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Padre a tiempo completo","Head of Marketing at Acme, Inc":"Jefe de Marketing en Acme, Inc","Hidden for members":"Oculto para miembros","Hide comment":"Ocultar comentario","Jamie Larson":"Carlos Rodriguez","Join the discussion":"Únete a la discusión","Just now":"Justo ahora",Like:"Me gusta","Load more ({amount})":"Cargar más ({amount})","Local resident":"Residente local","Member discussion":"Discusión de los miembros",Name:"Nombre",Neurosurgeon:"Neurocirujano",Newest:"Más nuevos",Oldest:"Más antiguos","Once deleted, this comment can’t be recovered.":"Este comentario no se puede recuperar una vez eliminado.","One hour ago":"Hace una hora","One min ago":"Hace un minuto","Pin comment":"Fijar comentario",Pinned:"Fijado","Read more replies":"Ver más respuestas","Remove dislike":"","Remove like":"",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","See full discussion":"",Sending:"Enviando",Sent:"Enviado","Show {amount} more replies":"Mostrar {amount} respuestas más","Show 1 more reply":"Mostrar 1 respuesta más","Show comment":"Mostrar comentario","Sign in":"Inicia sesión","Sign up now":"Regístrate ahora","Sort by":"Ordenar por","Start the conversation":"Comienza la conversación","The linked comment is no longer available.":"El comentario enlazado ya no está disponible.","This comment has been hidden.":"Este comentario ha sido ocultado.","This comment has been removed.":"Este comentario ha sido borrado.",Unpin:"","Unpin comment":"","Upgrade now":"Actualiza tu cuenta ahora","View in admin":"Ver en la zona admin",Yesterday:"Ayer","You can't post comments in this publication.":"No puedes publicar comentarios en esta publicación.","You can't post comments in this publication. <a>Contact support</a> for more information.":"No puedes publicar comentarios en esta publicación. <a>Contacta con soporte</a> para más información.","Your request will be sent to the owner of this site.":"Tu petición será enviada al dueño de este sitio web."},aN={"{amount} characters left":"{amount} tähemärki jäänud","{amount} comments":"{amount} kommentaari","{amount} hrs ago":"{amount} tundi tagasi","{amount} mins ago":"{amount} minutit tagasi","{amount} more":"{amount} veel","1 comment":"1 kommentaar","Add comment":"Lisa kommentaar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Lisa oma kommentaarile konteksti, jaga oma nime ja kogemusi, et soodustada tervislikku arutelu.","Add reply":"Lisa vastus","Add your expertise":"","Already a member?":"Juba liige?",Anonymous:"Anonüümne","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"Kommenteerimise alustamiseks saage {publication} liikmeks.","Become a paid member of {publication} to start commenting.":"Kommenteerimise alustamiseks saage {publication} tasuliseks liikmeks.",Best:"",Cancel:"Tühista",Comment:"Kommentaar","Commenting disabled":"","Complete your profile":"Täida oma profiil",Delete:"Kustuta",Deleted:"","Deleted member":"Kustutatud liige",Deleting:"",Discussion:"Arutelu",Dislike:"",Edit:"Muuda","Edit this comment":"Muuda seda kommentaari",edited:"muudetud","Enter your name":"Sisesta oma nimi",Expertise:"Oskused","Founder @ Acme Inc":"Asutaja @ Acme Inc","Full-time parent":"Täiskohaga lapsevanem","Head of Marketing at Acme, Inc":"Turundusjuht Acme, Inc-s","Hidden for members":"","Hide comment":"Peida kommentaar","Jamie Larson":"Jamie Larson","Join the discussion":"Liitu aruteluga","Just now":"Just praegu",Like:"","Load more ({amount})":"","Local resident":"Kohalik elanik","Member discussion":"Liikmete arutelu",Name:"Nimi",Neurosurgeon:"Neurokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Üks tund tagasi","One min ago":"Üks minut tagasi","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",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","See full discussion":"",Sending:"Saatmine",Sent:"Saadetud","Show {amount} more replies":"Näita {amount} vastust veel","Show 1 more reply":"Näita 1 vastus veel","Show comment":"Näita kommentaari","Sign in":"Logi sisse","Sign up now":"Registreeru nüüd","Sort by":"","Start the conversation":"Alusta vestlust","The linked comment is no longer available.":"","This comment has been hidden.":"See kommentaar on peidetud.","This comment has been removed.":"See kommentaar on eemaldatud.",Unpin:"","Unpin comment":"","Upgrade now":"Uuenda nüüd","View in admin":"",Yesterday:"Eile","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Teie taotlus saadetakse selle saidi omanikule."},lN={"{amount} characters left":"{amount} geratzen dira","{amount} comments":"{amount} iruzkin","{amount} hrs ago":"Duela {amount} ordu","{amount} mins ago":"Duela {amount} minutu","{amount} more":"{amount} gehiago","1 comment":"Iruzkin 1","Add comment":"Egin iruzkina","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Gehitu testuingurua zure iruzkinari, partekatu zure izena eta ezagutza eztabaida sanoa sustatzeko.","Add reply":"Erantzun","Add your expertise":"Gehitu zure ezagutza","Already a member?":"Kidea al zara?",Anonymous:"Anonimoa","Are you sure?":"Ziur al zaude?",Back:"","Become a member of {publication} to start commenting.":"Egin zaitez {publication}(e)ko kide iruzkinak egiteko.","Become a paid member of {publication} to start commenting.":"Egin zaitez {publication}(e)ko ordainpeko kide iruzkinak egiteko.",Best:"Onena",Cancel:"Utzi",Comment:"Egin iruzkina","Commenting disabled":"","Complete your profile":"Bete zure profila",Delete:"Ezabatu",Deleted:"Ezabatuta","Deleted member":"Ezabatutako kidea",Deleting:"Ezabatzen",Discussion:"Eztabaida",Dislike:"",Edit:"Editatu","Edit this comment":"Editatu iruzkina",edited:"editatua","Enter your name":"Sartu zure izena",Expertise:"Ezagutza","Founder @ Acme Inc":"FAGOR kooperatibaren fundatzailea","Full-time parent":"Lanaldi osoko gurasoa","Head of Marketing at Acme, Inc":"FAGOR kooperatibako marketin-zuzendaria","Hidden for members":"Ezkutatuta kideentzat","Hide comment":"Ezkutatu iruzkina","Jamie Larson":"Lur Axpe","Join the discussion":"Batu eztabaidara","Just now":"Oraintxe bertan",Like:"","Load more ({amount})":"Kargatu gehiago ({amount})","Local resident":"Bertoko bizilaguna","Member discussion":"Kideen eztabaida",Name:"Izena",Neurosurgeon:"Neurozirujaua",Newest:"Berriena",Oldest:"Zaharrena","Once deleted, this comment can’t be recovered.":"Ezabatuz gero, ezingo da berreskuratu.","One hour ago":"Duela ordubete","One min ago":"Duela minutu bat","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",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","See full discussion":"",Sending:"Bidaltzen",Sent:"Bidalita","Show {amount} more replies":"Erakutsi {amount} erantzun gehiago","Show 1 more reply":"Erakutsi erantzun bat gehiago","Show comment":"Erakutsi iruzkina","Sign in":"Hasi saioa","Sign up now":"Eman izena orain","Sort by":"Antolatu honen arabera","Start the conversation":"Hasi eztabaida","The linked comment is no longer available.":"","This comment has been hidden.":"Iruzkin hau ezkutatu da.","This comment has been removed.":"Iruzkin hau kendu da.",Unpin:"","Unpin comment":"","Upgrade now":"Ordaindu orain","View in admin":"",Yesterday:"Atzo","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Eskaera gune honetako arduradunari bidaliko zaio."},cN={"{amount} characters left":"{amount} حرف باقی مانده است","{amount} comments":"{amount} دیدگاه","{amount} hrs ago":"{amount} ساعت پیش","{amount} mins ago":"{amount} دقیقه پیش","{amount} more":"{amount} مورد دیگر","1 comment":"۱ دیدگاه","Add comment":"افزودن دیدگاه","Add context to your comment, share your name and expertise to foster a healthy discussion.":"به دیدگاه خود زمینه بدهید و با بهاشتراکگذاری نام و تخصص خود، گفتوگوی سالمی ایجاد کنید.","Add reply":"افزودن پاسخ","Add your expertise":"افزودن تخصص شما","Already a member?":"عضو هستید؟",Anonymous:"ناشناس","Are you sure?":"مطمئن هستید؟",Back:"بازگشت","Become a member of {publication} to start commenting.":"برای شروع دیدگاهگذاری، عضو {publication} شوید.","Become a paid member of {publication} to start commenting.":"برای شروع دیدگاهگذاری، عضو ویژه {publication} شوید.",Best:"بهترین",Cancel:"لغو",Comment:"دیدگاه","Commenting disabled":"دیدگاهگذاری غیرفعال است","Complete your profile":"نمایه خود را کامل کنید",Delete:"حذف",Deleted:"حذف شد","Deleted member":"عضو حذفشده",Deleting:"در حال حذف",Discussion:"گفتوگو",Dislike:"نپسندیدن",Edit:"ویرایش","Edit this comment":"ویرایش این دیدگاه",edited:"ویرایششده","Enter your name":"نام خود را وارد کنید",Expertise:"تخصص","Founder @ Acme Inc":"بنیانگذار @ Acme Inc","Full-time parent":"خانهدار تماموقت","Head of Marketing at Acme, Inc":"مدیر بازاریابی Acme, Inc","Hidden for members":"برای اعضا پنهان است","Hide comment":"پنهانسازی دیدگاه","Jamie Larson":"جیمی لارسن","Join the discussion":"به گفتوگو بپیوندید","Just now":"همین الان",Like:"پسندیدن","Load more ({amount})":"بارگذاری ({amount}) مورد دیگر","Local resident":"ساکن محلی","Member discussion":"گفتوگوی اعضا",Name:"نام",Neurosurgeon:"جراح مغز و اعصاب",Newest:"جدیدترین",Oldest:"قدیمیترین","Once deleted, this comment can’t be recovered.":"پس از حذف، این دیدگاه قابل بازیابی نخواهد بود.","One hour ago":"۱ ساعت پیش","One min ago":"۱ دقیقه پیش","Pin comment":"سنجاق کردن دیدگاه",Pinned:"سنجاقشده","Read more replies":"خواندن پاسخهای بیشتر","Remove dislike":"برگرداندن نپسندیدن","Remove like":"برگرداندن پسندیدن",removed:"حذفشده","Replied to":"پاسخ به",Reply:"پاسخ","Reply to":"پاسخ به","Reply to comment":"پاسخ به دیدگاه",Report:"گزارش","Report comment":"گزارش دیدگاه","Report this comment?":"این دیدگاه گزارش شود؟",Save:"ذخیره","See full discussion":"مشاهده گفتوگوی کامل",Sending:"در حال ارسال",Sent:"ارسال شد","Show {amount} more replies":"نمایش {amount} پاسخ دیگر","Show 1 more reply":"نمایش ۱ پاسخ دیگر","Show comment":"نمایش دیدگاه","Sign in":"ورود","Sign up now":"همین حالا ثبت نام کنید","Sort by":"مرتبسازی بر اساس","Start the conversation":"گفتوگو را شروع کنید","The linked comment is no longer available.":"دیدگاه پیوندشده دیگر در دسترس نیست.","This comment has been hidden.":"این دیدگاه پنهان شده است.","This comment has been removed.":"این دیدگاه حذف شده است.",Unpin:"برداشتن سنجاق","Unpin comment":"برداشتن سنجاق دیدگاه","Upgrade now":"همین حالا ارتقا دهید","View in admin":"مشاهده در مدیریت",Yesterday:"دیروز","You can't post comments in this publication.":"شما نمیتوانید در این نشریه دیدگاه بگذارید.","You can't post comments in this publication. <a>Contact support</a> for more information.":"شما نمیتوانید در این نشریه دیدگاه بگذارید. برای اطلاعات بیشتر <a>با پشتیبانی تماس بگیرید</a>.","Your request will be sent to the owner of this site.":"درخواست شما برای مالک این سایت ارسال خواهد شد."},uN={"{amount} characters left":"{amount} merkkiä jäljellä","{amount} comments":"{amount} kommenttia","{amount} hrs ago":"{amount} tuntia sitten","{amount} mins ago":"{amount} minuuttia sitten","{amount} more":"{amount} vielä lisää","1 comment":"1 kommentti","Add comment":"Lisää kommentti","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Lisää sisältöä kommenttiisi, jaa nimesi ja osaamisesi saadaksesi aikaan tervettä keskustelua.","Add reply":"Lisää vastaus","Add your expertise":"Lisää osaamisesi","Already a member?":"Oletko jo jäsen?",Anonymous:"Anonyymi","Are you sure?":"Oletko varma?",Back:"","Become a member of {publication} to start commenting.":"Liity sivun {publication} jäseneksi pystyäksesi kommentoimaan.","Become a paid member of {publication} to start commenting.":"Ota maksullinen jäsenyys sivulle {publication}, jotta pystyt kommentoimaan.",Best:"Parhaat",Cancel:"Peruuta",Comment:"Kommentti","Commenting disabled":"","Complete your profile":"Täydennä profiilisi",Delete:"Poista",Deleted:"Poistettu","Deleted member":"Poista jäsen",Deleting:"Poistetaan",Discussion:"Keskustelu",Dislike:"",Edit:"Editoi","Edit this comment":"Editoi tätä kommenttia",edited:"editoitu","Enter your name":"Syötä nimesi",Expertise:"Osaaminen","Founder @ Acme Inc":"Perustaja","Full-time parent":"Kokoaikainen vanhempi","Head of Marketing at Acme, Inc":"Markkinointijohtaja","Hidden for members":"Piilotettu jäseniltä","Hide comment":"Piilota kommentti","Jamie Larson":"Jamie Larson","Join the discussion":"Liity keskusteluun","Just now":"Juuri nyt",Like:"","Load more ({amount})":"Lataa lisää ({amount})","Local resident":"Paikallinen","Member discussion":"Jäsenten keskustelu",Name:"Nimi",Neurosurgeon:"Neurokirurgi",Newest:"Uusin",Oldest:"Vanhin","Once deleted, this comment can’t be recovered.":"Jos poistat kommentin, sitä ei voi enää palauttaa.","One hour ago":"Tunti sitten","One min ago":"Minuutti sitten","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"poistettu","Replied to":"Vastattu:",Reply:"Vastaa","Reply to":"Vastaa:","Reply to comment":"Vastaa kommenttiin",Report:"Ilmianna","Report comment":"Ilmianna kommentti","Report this comment?":"Haluatko ilmiantaa tämän kommentin?",Save:"Tallenna","See full discussion":"",Sending:"Lähetetään",Sent:"Lähetetty","Show {amount} more replies":"Näytä {amount} vastausta lisää ","Show 1 more reply":"Näytä 1 vastaus lisää","Show comment":"Näytä kommentti","Sign in":"Kirjaudu sisään","Sign up now":"Rekisteröidy nyt","Sort by":"Lajitteluperuste","Start the conversation":"Aloita keskustelu","The linked comment is no longer available.":"","This comment has been hidden.":"Tämä kommentti on piilotettu.","This comment has been removed.":"Tämä kommentti on poistettu.",Unpin:"","Unpin comment":"","Upgrade now":"Korota nyt","View in admin":"",Yesterday:"Eilen","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Sinun pyyntösi lähetetään sivun omistajalle."},dN={"{amount} characters left":"{amount} caractères restants","{amount} comments":"{amount} commentaires","{amount} hrs ago":"Il y a {amount} heures","{amount} mins ago":"Il y a {amount} minutes","{amount} more":"{amount} supplémentaire(s)","1 comment":"1 commentaire","Add comment":"Ajouter un commentaire","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Ajoutez un contexte à votre commentaire. Partagez votre nom et vos compétences pour favoriser une discussion saine.","Add reply":"Ajouter une réponse","Add your expertise":"Ajoutez vos compétences","Already a member?":"Déjà abonné(e) ?",Anonymous:"Anonyme","Are you sure?":"Êtes-vous certain(e) ?",Back:"Retour","Become a member of {publication} to start commenting.":"Abonnez-vous gratuitement à {publication} pour commencer à commenter.","Become a paid member of {publication} to start commenting.":"Choisissez un abonnement payant à {publication} pour commencer à commenter.",Best:"Meilleur",Cancel:"Annuler",Comment:"Commentaire","Commenting disabled":"Commentaires désactivés","Complete your profile":"Complétez votre profil",Delete:"Supprimer",Deleted:"Supprimé","Deleted member":"Abonné(e) supprimé(e)",Deleting:"Suppression en cours",Discussion:"Discussion",Dislike:"Je n’aime pas",Edit:"Modifier","Edit this comment":"Modifier ce commentaire",edited:"modifié","Enter your name":"Entrez votre nom",Expertise:"Compétences","Founder @ Acme Inc":"Fondateur @ Acme Inc","Full-time parent":"Parent à plein temps","Head of Marketing at Acme, Inc":"Responsable du marketing chez Acme, Inc","Hidden for members":"Masqué pour les abonnés","Hide comment":"Masquer le commentaire","Jamie Larson":"Jean Martin","Join the discussion":"Rejoindre la discussion","Just now":"À l'instant",Like:"J’aime","Load more ({amount})":"Afficher plus ({amount})","Local resident":"Résident local","Member discussion":"Discussion entre abonnés",Name:"Nom",Neurosurgeon:"Neurochirurgien",Newest:"Plus récent",Oldest:"Plus ancien","Once deleted, this comment can’t be recovered.":"Une fois supprimé, ce commentaire ne pourra pas être restauré.","One hour ago":"Il y a une heure","One min ago":"Il y a une minute","Pin comment":"Épingler le commentaire",Pinned:"Épinglé","Read more replies":"Voir plus de réponses","Remove dislike":"Annuler le « Je n’aime pas »","Remove like":"Annuler le « J’aime »",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","See full discussion":"Voir la discussion complète",Sending:"Envoi en cours",Sent:"Envoyé","Show {amount} more replies":"Afficher {amount} réponses supplémentaires","Show 1 more reply":"Afficher 1 réponse supplémentaire","Show comment":"Afficher le commentaire","Sign in":"Se connecter","Sign up now":"S'inscrire maintenant","Sort by":"Trier par","Start the conversation":"Commencer la conversation","The linked comment is no longer available.":"Le commentaire lié n’est plus disponible.","This comment has been hidden.":"Ce commentaire a été masqué.","This comment has been removed.":"Ce commentaire a été supprimé.",Unpin:"Désépingler","Unpin comment":"Désépingler le commentaire","Upgrade now":"Passer à l’abonnement payant","View in admin":"Voir dans l’administration",Yesterday:"Hier","You can't post comments in this publication.":"Vous ne pouvez pas commenter cette publication.","You can't post comments in this publication. <a>Contact support</a> for more information.":"Vous ne pouvez pas commenter cette publication. <a>Contactez le support</a> pour plus d’informations.","Your request will be sent to the owner of this site.":"Votre demande sera transférée au propriétaire de ce site."},mN={"{amount} characters left":"caractaran air fhàgail: {amount}","{amount} comments":"beachdan: {amount}","{amount} hrs ago":"o chionn {amount}u","{amount} mins ago":"o chionn {amount}m","{amount} more":"{amount} a bharrachd","1 comment":"1 bheachd","Add comment":"Fàg beachd air","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Cuir co-theacsa ris a' bheachd agad, cuir d' ainm is sàr-eòlas ris gus deasbad fallain a brosnachadh.","Add reply":"Cuir freagairt ris","Add your expertise":"","Already a member?":"’Eil thu nad bhall mar-thà?",Anonymous:"Gun ainm","Are you sure?":"A bheil thu cinnteach?",Back:"","Become a member of {publication} to start commenting.":"Clàraich nad bhall an làrach-lìn, {publication}, gus beachd fhàgail air.","Become a paid member of {publication} to start commenting.":"Clàraich nad bhall phrìomhach an làrach-lìn, {publication}, gus beachd fhàgail air.",Best:"",Cancel:"Sguir dheth",Comment:"Beachd","Commenting disabled":"","Complete your profile":"Lìon a-steach a' phròifil agad",Delete:"Sguab às",Deleted:"Air a sguabadh às","Deleted member":"Ball air a sguabadh às",Deleting:"'Ga sguabadh às",Discussion:"Deasbad",Dislike:"",Edit:"Deasaich","Edit this comment":"Deasaich am beachd seo",edited:"Air a dheasachadh","Enter your name":"Cuir a-steach d’ ainm",Expertise:"Sàr-eòlas","Founder @ Acme Inc":"Neach-stèidheachaidh @ Acme Inc","Full-time parent":"Pàrant làn-ùine","Head of Marketing at Acme, Inc":"Àrd-cheann Margaidheachd aig Acme, Inc","Hidden for members":"Air am falach bho bhuill","Hide comment":"Cuir am beachd am falach","Jamie Larson":"Seamaidh Larson","Join the discussion":"Gabh pàirt san deasbad","Just now":"An-dràsta",Like:"","Load more ({amount})":"Lùchdaich barrachd {amount}","Local resident":"Neach-còmhnaidh ionadail","Member discussion":"Deasbad",Name:"Ainm",Neurosurgeon:"Niùro-làmh-lèigh",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Cha ghabh a aiseag an dèidh sguabadh às","One hour ago":"O chionn uair a thìde","One min ago":"O chionn mionaid","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",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","See full discussion":"",Sending:"’Ga chur",Sent:"Air a chur","Show {amount} more replies":"An àireamh de bheachdan a bharrachd a chìthear: {amount}","Show 1 more reply":"Seall beachd a bharrachd","Show comment":"Seall am beachd","Sign in":"Clàraich a-steach","Sign up now":"Clàraich a-nis","Sort by":"Seòrsaich a-rèir","Start the conversation":"Tòisich an deasbad","The linked comment is no longer available.":"","This comment has been hidden.":"Chaidh am beachd seo a chur am falach.","This comment has been removed.":"Chaidh am beachd seo a sguabadh às.",Unpin:"","Unpin comment":"","Upgrade now":"Àrdaich a-nis","View in admin":"",Yesterday:"An-dè","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Thèid an iarrtas agad a chur gu neach-seilbh an làrach-lìn seo."},pN={"{amount} characters left":"נותרו עוד {amount} תווים","{amount} comments":"{amount} תגובות","{amount} hrs ago":"לפני {amount} שעות","{amount} mins ago":"לפני {amount} דקות","{amount} more":"עוד {amount}","1 comment":"תגובה אחת","Add comment":"הוסיפו תגובה","Add context to your comment, share your name and expertise to foster a healthy discussion.":"הוסיפו תוכן לתגובה שלכם, שתפו את שמכם ואת התמחותכם כדי לקדם דיון בריא.","Add reply":"הוסיפו תגובה","Add your expertise":"","Already a member?":"כבר רשומים?",Anonymous:"אנונימי","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"הירשמו כחברי {publication} כדי להתחיל להגיב.","Become a paid member of {publication} to start commenting.":"הירשמו כחברי משלמים של {publication} כדי להתחיל להגיב.",Best:"",Cancel:"ביטול",Comment:"תגובה","Commenting disabled":"","Complete your profile":"השלימו את הפרופיל שלכם",Delete:"מחיקה",Deleted:"","Deleted member":"חבר שנמחק",Deleting:"",Discussion:"דיון",Dislike:"",Edit:"עריכה","Edit this comment":"ערכו תגובה זו",edited:"נערך","Enter your name":"כתבו את שמכם",Expertise:"ניסיון","Founder @ Acme Inc":"מייסד @ Acme Inc","Full-time parent":"הורה במשרה מלאה","Head of Marketing at Acme, Inc":"ראש אגף שיווק ב- Acme, Inc","Hidden for members":"","Hide comment":"הסתר תגובה","Jamie Larson":"ג׳יימי לרסון","Join the discussion":"הצטרפו לדיון","Just now":"ממש עכשיו",Like:"","Load more ({amount})":"","Local resident":"תושב מקומי","Member discussion":"דיון חברים רשומים",Name:"שם",Neurosurgeon:"נוֹיְרוֹכִירוּרְג",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"לפני שעה","One min ago":"לפני דקה","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"","Replied to":"",Reply:"תגובה","Reply to":"","Reply to comment":"הגיבו לתגובה",Report:"דיווח","Report comment":"דווחו על תגובה","Report this comment?":"האם לדווח על תגובה זו?",Save:"שמירה","See full discussion":"",Sending:"שליחה",Sent:"שלחנו","Show {amount} more replies":"להציג עוד {amount} תגובות","Show 1 more reply":"להציג תגובה נוספת","Show comment":"להציג תגובה","Sign in":"היכנסו","Sign up now":"הירשמו עכשיו","Sort by":"למיין לפי","Start the conversation":"התחילו את השיחה","The linked comment is no longer available.":"","This comment has been hidden.":"התגובה הזו הוסתרה.","This comment has been removed.":"התגובה הזו הוסרה.",Unpin:"","Unpin comment":"","Upgrade now":"שדרגו עכשיו","View in admin":"",Yesterday:"אתמול","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"בקשתך תישלח לבעלים של האתר הזה."},fN={"{amount} characters left":"{amount} अक्षर बाकी","{amount} comments":"{amount} टिप्पणियाँ","{amount} hrs ago":"{amount} घंटे पहले","{amount} mins ago":"{amount} मिनट पहले","{amount} more":"{amount} और","1 comment":"1 टिप्पणी","Add comment":"टिप्पणी जोड़ें","Add context to your comment, share your name and expertise to foster a healthy discussion.":"अपनी टिप्पणी में संदर्भ जोड़ें, स्वस्थ चर्चा के लिए अपना नाम और विशेषज्ञता साझा करें।","Add reply":"जवाब जोड़ें","Add your expertise":"अपनी विशेषज्ञता जोड़ें","Already a member?":"पहले से सदस्य हैं?",Anonymous:"अनाम","Are you sure?":"क्या आप सुनिश्चित हैं?",Back:"","Become a member of {publication} to start commenting.":"टिप्पणी शुरू करने के लिए {publication} का सदस्य बनें।","Become a paid member of {publication} to start commenting.":"टिप्पणी शुरू करने के लिए {publication} के भुगतान सदस्य बनें।",Best:"सर्वश्रेष्ठ",Cancel:"रद्द करें",Comment:"टिप्पणी","Commenting disabled":"","Complete your profile":"अपनी प्रोफ़ाइल पूरी करें",Delete:"हटाएं",Deleted:"हटा दिया गया","Deleted member":"हटाए गए सदस्य",Deleting:"हटाया जा रहा है",Discussion:"चर्चा",Dislike:"",Edit:"संपादित करें","Edit this comment":"इस टिप्पणी को संपादित करें",edited:"संपादित किया गया","Enter your name":"अपना नाम दर्ज करें",Expertise:"विशेषज्ञता","Founder @ Acme Inc":"संस्थापक @ Acme Inc","Full-time parent":"पूर्णकालिक माता-पिता","Head of Marketing at Acme, Inc":"Acme, Inc में विपणन प्रमुख","Hidden for members":"सदस्यों के लिए छिपाया गया","Hide comment":"टिप्पणी छिपाएं","Jamie Larson":"राहुल शर्मा","Join the discussion":"चर्चा में शामिल हों","Just now":"अभी",Like:"","Load more ({amount})":"और लोड करें ({amount})","Local resident":"स्थानीय निवासी","Member discussion":"सदस्य चर्चा",Name:"नाम",Neurosurgeon:"न्यूरोसर्जन",Newest:"नवीनतम",Oldest:"सबसे पुराना","Once deleted, this comment can’t be recovered.":"एक बार हटाए जाने के बाद, इस टिप्पणी को पुनः प्राप्त नहीं किया जा सकता।","One hour ago":"एक घंटा पहले","One min ago":"एक मिनट पहले","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"हटा दिया गया","Replied to":"को जवाब दिया",Reply:"जवाब दें","Reply to":"को जवाब दें","Reply to comment":"टिप्पणी का जवाब दें",Report:"रिपोर्ट","Report comment":"टिप्पणी की रिपोर्ट करें","Report this comment?":"क्या आप इस टिप्पणी की रिपोर्ट करना चाहते हैं?",Save:"सहेजें","See full discussion":"",Sending:"भेजा जा रहा है",Sent:"भेजा गया","Show {amount} more replies":"{amount} और जवाब दिखाएं","Show 1 more reply":"1 और जवाब दिखाएं","Show comment":"टिप्पणी दिखाएं","Sign in":"साइन इन करें","Sign up now":"अभी साइनअप करें","Sort by":"क्रमबद्ध करें","Start the conversation":"बातचीत शुरू करें","The linked comment is no longer available.":"","This comment has been hidden.":"इस टिप्पणी को छिपा दिया गया है।","This comment has been removed.":"इस टिप्पणी को हटा दिया गया है।",Unpin:"","Unpin comment":"","Upgrade now":"अब उन्नत करें","View in admin":"",Yesterday:"कल","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"आपका अनुरोध इस साइट के मालिक को भेजा जाएगा।"},hN={"{amount} characters left":"{amount} znakova preostalo","{amount} comments":"{amount} komentara","{amount} hrs ago":"Prije {amount} sati","{amount} mins ago":"Prije {amount} minuta","{amount} more":"{amount} više","1 comment":"1 komentar","Add comment":"Dodaj komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dajte kontekts vašem komentaru, podijelite vaše ime i znanje za unaprijeđenje svake rasprave.","Add reply":"Dodaj odgovor","Add your expertise":"","Already a member?":"Već si član?",Anonymous:"Anonimus","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"Postani član {publication} za mogućnost komentiranja.","Become a paid member of {publication} to start commenting.":"Plati pretplatu na {publication} za mogućnost komentiranja.",Best:"",Cancel:"Prekini",Comment:"Komentar","Commenting disabled":"","Complete your profile":"Dovrši svoj profil",Delete:"Obriši",Deleted:"","Deleted member":"Obrisan član",Deleting:"",Discussion:"Rasprava",Dislike:"",Edit:"Uredi","Edit this comment":"Uredi ovaj komentar",edited:"uređen","Enter your name":"Unesite vaše ime",Expertise:"Stručnost","Founder @ Acme Inc":"Osnivač Acme Inc","Full-time parent":"Full-time Roditelj","Head of Marketing at Acme, Inc":"Voditelj marketinga Acme, Inc","Hidden for members":"","Hide comment":"Sakrij komentar","Jamie Larson":"Jamie Larson","Join the discussion":"Pridruži se raspravi","Just now":"Upravo sada",Like:"","Load more ({amount})":"","Local resident":"Lokalni stanovnik","Member discussion":"Rasprava članova",Name:"Ime",Neurosurgeon:"Neurokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Prije jednog sata","One min ago":"Prije jedne minute","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",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","See full discussion":"",Sending:"Slanje",Sent:"Poslano","Show {amount} more replies":"Prikaži još {amount} odgovora","Show 1 more reply":"Prikaži još jedan odgovor","Show comment":"Prikaži komentar","Sign in":"Prijava","Sign up now":"Registriraj se sada","Sort by":"","Start the conversation":"Pokreni razgovor","The linked comment is no longer available.":"","This comment has been hidden.":"Ovaj komentar je skriven","This comment has been removed.":"Ovaj komentar je maknut",Unpin:"","Unpin comment":"","Upgrade now":"Nadogradite sada","View in admin":"",Yesterday:"Jučer","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Vaš zahtjev će se poslati vasniku ovih web stranica."},gN={"{amount} characters left":"{amount} karakter maradt","{amount} comments":"{amount} hozzászólás","{amount} hrs ago":"{amount} órája","{amount} mins ago":"{amount} perce","{amount} more":"{amount} még","1 comment":"1 hozzászólás","Add comment":"Hozzászólás","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Segítsd a beszélgetést azzal, hogy megadod a nevedet és azt, hogy mihez értesz.","Add reply":"Válasz","Add your expertise":"Add meg a szakterületedet","Already a member?":"Van már fiókod?",Anonymous:"Anonim","Are you sure?":"Biztos vagy benne?",Back:"","Become a member of {publication} to start commenting.":"Csatlakozz a támogató {publication} közösséghez, hogy hozzászólhass a tartalmakhoz.","Become a paid member of {publication} to start commenting.":"Csatlakozz a fizető {publication} közösséghez, hogy hozzászólhass a tartalmakhoz.",Best:"Legjobb",Cancel:"Mégse",Comment:"Hozzászólás","Commenting disabled":"","Complete your profile":"Profil befejezése",Delete:"Törlés",Deleted:"Törölt","Deleted member":"Törölt tag",Deleting:"Törölni",Discussion:"Hozzászólások",Dislike:"",Edit:"Szerkesztés","Edit this comment":"Hozzászólás szerkesztése",edited:"szerkesztve","Enter your name":"Add meg a nevedet",Expertise:"Foglalkozás","Founder @ Acme Inc":"A(z) @ Sirály Kft. alapítója","Full-time parent":"Főállású szülő","Head of Marketing at Acme, Inc":"Marketingvezető — Sirály Kft.","Hidden for members":"A tagok számára elrejtve","Hide comment":"Hozzászólás elrejtése","Jamie Larson":"Kiss Sára","Join the discussion":"Csatlakozz a beszélgetéshez","Just now":"Épp most",Like:"","Load more ({amount})":"Továbbiak betöltése ({amount})","Local resident":"Helyi lakos","Member discussion":"Tagok beszélgetése",Name:"Név",Neurosurgeon:"Idegsebész",Newest:"Legújabb",Oldest:"Legrégebbi","Once deleted, this comment can’t be recovered.":"A törlés után ez a hozzászólás nem állítható vissza.","One hour ago":"Egy órája","One min ago":"Egy perce","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",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","See full discussion":"",Sending:"Küldés",Sent:"Elküldve","Show {amount} more replies":"Mutass még {amount} választ","Show 1 more reply":"Mutass még egy választ","Show comment":"Hozzászólás mutatása","Sign in":"Bejelentkezés","Sign up now":"Regisztrálj most","Sort by":"Rendezés","Start the conversation":"Kezdd el a beszélgetést","The linked comment is no longer available.":"","This comment has been hidden.":"Ezt a hozzászólást elrejtettük.","This comment has been removed.":"Ezt a hozzászólást töröltük.",Unpin:"","Unpin comment":"","Upgrade now":"Előfizetéssel te is hozzászólhatsz","View in admin":"",Yesterday:"Tegnap","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"A kérésedet továbbítjuk a weboldal tulajdonosának."},yN={"{amount} characters left":"{amount} karakter tersisa","{amount} comments":"{amount} komentar","{amount} hrs ago":"{amount} jam yang lalu","{amount} mins ago":"{amount} menit yang lalu","{amount} more":"{amount} lagi","1 comment":"1 komentar","Add comment":"Tambahkan komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Tambahkan konteks pada komentar Anda, bagikan nama dan keahlian Anda untuk mendorong diskusi yang sehat.","Add reply":"Tambahkan balasan","Add your expertise":"Tambahkan keahlian Anda","Already a member?":"Sudah menjadi anggota?",Anonymous:"Anonim","Are you sure?":"Apakah Anda yakin?",Back:"","Become a member of {publication} to start commenting.":"Jadilah anggota di {publication} untuk mulai berkomentar.","Become a paid member of {publication} to start commenting.":"Jadilah anggota berbayar di {publication} untuk mulai berkomentar.",Best:"Terbaik",Cancel:"Batal",Comment:"Komentar","Commenting disabled":"","Complete your profile":"Lengkapi profil Anda",Delete:"Hapus",Deleted:"Terhapus","Deleted member":"Anggota dihapus",Deleting:"Menghapus...",Discussion:"Diskusi",Dislike:"",Edit:"Edit","Edit this comment":"Edit komentar ini",edited:"diedit","Enter your name":"Masukkan nama Anda",Expertise:"Keahlian","Founder @ Acme Inc":"Founder @ Acme Inc","Full-time parent":"Orang tua penuh waktu","Head of Marketing at Acme, Inc":"Direktur Pemasaran di Acme, Inc","Hidden for members":"Tersembunyi bagi anggota","Hide comment":"Sembunyikan komentar","Jamie Larson":"Sutan T. Alisjahbana","Join the discussion":"Bergabung dalam diskusi","Just now":"Baru saja",Like:"","Load more ({amount})":"Tampilkan {amount} lagi","Local resident":"Penduduk lokal","Member discussion":"Diskusi anggota",Name:"Nama",Neurosurgeon:"Ahli Bedah Saraf",Newest:"Paling baru",Oldest:"Paling lama","Once deleted, this comment can’t be recovered.":"Setelah dihapus, komentar ini tidak dapat dipulihkan.","One hour ago":"Satu jam yang lalu","One min ago":"Satu menit yang lalu","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",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","See full discussion":"",Sending:"Mengirim",Sent:"Terkirim","Show {amount} more replies":"Tampilkan {amount} balasan lainnya","Show 1 more reply":"Tampilkan 1 balasan lainnya","Show comment":"Tampilkan komentar","Sign in":"Masuk","Sign up now":"Daftar sekarang","Sort by":"Urutkan berdasarkan","Start the conversation":"Mulai percakapan","The linked comment is no longer available.":"","This comment has been hidden.":"Komentar ini telah disembunyikan.","This comment has been removed.":"Komentar ini telah dihapus.",Unpin:"","Unpin comment":"","Upgrade now":"Daftar sekarang","View in admin":"",Yesterday:"Kemarin","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Permintaan Anda akan dikirim kepada pemilik situs ini."},kN={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Dislike:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"",Like:"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"","See full discussion":"",Sending:"",Sent:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"",Unpin:"","Unpin comment":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":""},bN={"{amount} characters left":"{amount} caratteri rimanenti","{amount} comments":"{amount} commenti","{amount} hrs ago":"{amount} ore fa","{amount} mins ago":"{amount} minuti fa","{amount} more":"{amount} in più","1 comment":"1 commento","Add comment":"Aggiungi commento","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Aggiungi dettagli al tuo commento, condividi il tuo nome e le tue competenze per incoraggiare una conversazione sana.","Add reply":"Aggiungi risposta","Add your expertise":"Aggiungi le tue competenze","Already a member?":"Sei già iscritto?",Anonymous:"Anonimo","Are you sure?":"Sei sicuro?",Back:"Indietro","Become a member of {publication} to start commenting.":"Iscriviti a {publication} per poter commentare.","Become a paid member of {publication} to start commenting.":"Abbonati a {publication} per poter commentare.",Best:"Migliori",Cancel:"Annulla",Comment:"Commenta","Commenting disabled":"Commenti disabilitati","Complete your profile":"Completa il tuo profilo",Delete:"Elimina",Deleted:"Eliminato","Deleted member":"Utente eliminato",Deleting:"Eliminazione in corso",Discussion:"Discussione",Dislike:"Non mi piace",Edit:"Modifica","Edit this comment":"Modifica questo commento",edited:"modificato","Enter your name":"Inserisci il tuo nome",Expertise:"Competenze","Founder @ Acme Inc":"Megadirettore Galattico","Full-time parent":"Genitore a tempo pieno","Head of Marketing at Acme, Inc":"Ragioniere presso Megaditta","Hidden for members":"Nascosto per gli abbonati","Hide comment":"Nascondi commento","Jamie Larson":"Andrea Rossi","Join the discussion":"Partecipa alla discussione","Just now":"Adesso",Like:"Mi piace","Load more ({amount})":"Caricane altri {amount}","Local resident":"Paesano","Member discussion":"Commenti",Name:"Nome",Neurosurgeon:"Neurochirurgo",Newest:"Più recenti",Oldest:"Più vecchi","Once deleted, this comment can’t be recovered.":"Una volta cancellato, non potrai più recuperare questo commento","One hour ago":"Un'ora fa","One min ago":"Un minuto fa","Pin comment":"Fissa commento",Pinned:"Fissato","Read more replies":"Leggi più risposte","Remove dislike":"Rimuovi Non mi piace","Remove like":"Rimuovi Mi piace",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","See full discussion":"Vedi la discussione completa",Sending:"Invio",Sent:"Inviato","Show {amount} more replies":"Mostra altre {amount} risposte","Show 1 more reply":"Mostra un'altra risposta","Show comment":"Mostra commento","Sign in":"Accedi","Sign up now":"Iscriviti ora","Sort by":"Ordina per","Start the conversation":"Commenta per primo","The linked comment is no longer available.":"Il commento collegato non è più disponibile.","This comment has been hidden.":"Questo commento è stato nascosto.","This comment has been removed.":"Questo commento è stato rimosso.",Unpin:"Stacca","Unpin comment":"Stacca commento","Upgrade now":"Abbonati ora","View in admin":"Visualizza nell'area admin",Yesterday:"Ieri","You can't post comments in this publication.":"Non puoi postare commenti in questa pubblicazione.","You can't post comments in this publication. <a>Contact support</a> for more information.":"Non puoi postare commenti in questa pubblicazione. <a>Contatta il supporto</a> per maggiori informazioni.","Your request will be sent to the owner of this site.":"La tua richiesta sarà inviata al proprietario del sito."},vN={"{amount} characters left":"残り{amount}文字","{amount} comments":"{amount}のコメント","{amount} hrs ago":"{amount}時間前","{amount} mins ago":"{amount}分前","{amount} more":"さらに{amount}個","1 comment":"1のコメント","Add comment":"コメントする","Add context to your comment, share your name and expertise to foster a healthy discussion.":"コメントはよく説明し、名前と専門分野を共有することで健全な議論をすすめましょう。","Add reply":"返信する","Add your expertise":"","Already a member?":"メンバーですか?",Anonymous:"匿名","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"{publication}のメンバーになってコメントを始めましょう。","Become a paid member of {publication} to start commenting.":"{publication}の有料メンバーになってコメントを始めましょう。",Best:"",Cancel:"キャンセル",Comment:"コメント","Commenting disabled":"","Complete your profile":"プロフィールを完成させる",Delete:"削除",Deleted:"","Deleted member":"削除されたメンバー",Deleting:"",Discussion:"議論",Dislike:"",Edit:"編集","Edit this comment":"このコメントを編集する",edited:"編集済み","Enter your name":"名前を記入",Expertise:"専門分野","Founder @ Acme Inc":"創業者 @ Acme Inc","Full-time parent":"専業主婦・主夫","Head of Marketing at Acme, Inc":"マーケティング責任者 @ Acme, Inc","Hidden for members":"","Hide comment":"コメントを非表示にする","Jamie Larson":"ジェイミー・ラーソン","Join the discussion":"議論に参加する","Just now":"今すぐ参加する",Like:"","Load more ({amount})":"","Local resident":"地元住民","Member discussion":"メンバーによる議論",Name:"名前",Neurosurgeon:"脳神経外科医",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"1時間前","One min ago":"1分前","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"","Replied to":"",Reply:"返信する","Reply to":"","Reply to comment":"コメントに返信する",Report:"通報する","Report comment":"コメントを通報する","Report this comment?":"このコメントを通報しますか?",Save:"保存","See full discussion":"",Sending:"送信中",Sent:"送信完了","Show {amount} more replies":"{amount}個の返信を表示する","Show 1 more reply":"返信をもう1つ表示する","Show comment":"コメントを表示する","Sign in":"ログイン","Sign up now":"今すぐ新規登録する","Sort by":"","Start the conversation":"会話を始める","The linked comment is no longer available.":"","This comment has been hidden.":"このコメントは非表示にされました。","This comment has been removed.":"このコメントは削除されました。",Unpin:"","Unpin comment":"","Upgrade now":"今すぐアップデートする","View in admin":"",Yesterday:"昨日","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"あなたのリクエストはこのサイトの管理者に送信されます。"},wN={"{amount} characters left":"{amount}글자 남음","{amount} comments":"{amount}개의 댓글","{amount} hrs ago":"{amount}시간 전","{amount} mins ago":"{amount}분 전","{amount} more":"{amount}개 더보기","1 comment":"1개의 댓글","Add comment":"댓글 추가","Add context to your comment, share your name and expertise to foster a healthy discussion.":"건설적인 토론을 위해 댓글에 맥락을 추가하고, 이름과 전문 분야를 공유해 주세요.","Add reply":"답변 추가","Add your expertise":"","Already a member?":"이미 회원이신가요?",Anonymous:"익명","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"{publication}의 회원이 되어 댓글을 작성해 주세요.","Become a paid member of {publication} to start commenting.":"{publication}의 유료 회원이 되어 댓글을 작성해 주세요.",Best:"",Cancel:"취소",Comment:"댓글","Commenting disabled":"","Complete your profile":"프로필을 완성해 주세요",Delete:"삭제",Deleted:"","Deleted member":"삭제된 회원",Deleting:"",Discussion:"댓글",Dislike:"",Edit:"수정","Edit this comment":"댓글 수정",edited:"수정됨","Enter your name":"이름을 입력해 주세요",Expertise:"전문분야","Founder @ Acme Inc":"Acme Inc 창업자","Full-time parent":"전업 부모","Head of Marketing at Acme, Inc":"Acme Inc 마케팅 책임자","Hidden for members":"","Hide comment":"댓글 숨기기","Jamie Larson":"제이미 라슨","Join the discussion":"댓글에 참여해 주세요","Just now":"방금 전",Like:"","Load more ({amount})":"","Local resident":"지역 주민","Member discussion":"회원들의 댓글",Name:"이름",Neurosurgeon:"신경외과 의사",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"1시간 전","One min ago":"1분 전","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"","Replied to":"",Reply:"답변","Reply to":"","Reply to comment":"댓글에 답변",Report:"신고","Report comment":"댓글 신고","Report this comment?":"이 댓글을 신고하시겠어요?",Save:"저장","See full discussion":"",Sending:"전송중",Sent:"전송됨","Show {amount} more replies":"{amount}개의 댓글 더 보기","Show 1 more reply":"1개의 댓글 더 보기","Show comment":"댓글 보기","Sign in":"로그인","Sign up now":"회원가입","Sort by":"정렬 기준","Start the conversation":"댓글을 작성해 주세요","The linked comment is no longer available.":"","This comment has been hidden.":"숨김처리 된 댓글이에요.","This comment has been removed.":"삭제 된 댓글이에요.",Unpin:"","Unpin comment":"","Upgrade now":"업그레이드","View in admin":"",Yesterday:"어제","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"운영자에게 요구사항이 전달되었어요."},$N={"{amount} characters left":"{amount} таңба қалды","{amount} comments":"{amount} пікір","{amount} hrs ago":"{amount} сағат бұрын","{amount} mins ago":"{amount} минут бұрын","{amount} more":"тағы {amount}","1 comment":"1 пікір","Add comment":"Пікір қосу","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Талқы қызық болуы үшін өзіңіз туралы мәліметтерді қосыңыз.","Add reply":"Жауап қосу","Add your expertise":"","Already a member?":"Әлдеқашан қосылдыңыз ба?",Anonymous:"Аноним","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"Пікір қалдыру үшін {publication} сайтына аккаунт қажет.","Become a paid member of {publication} to start commenting.":"Пікір қалдыру үшін {publication} сайтына ақылы аккаунт қажет.",Best:"",Cancel:"Бас тарту",Comment:"Пікір","Commenting disabled":"","Complete your profile":"Профиліңізді толтырыңыз",Delete:"Жою",Deleted:"","Deleted member":"Жойылған аккаунт",Deleting:"",Discussion:"Талқы",Dislike:"",Edit:"Өңдеу","Edit this comment":"Бұл пікірді өңдеу",edited:"Өңделді","Enter your name":"Есіміңізді жазыңыз",Expertise:"Қызмет","Founder @ Acme Inc":"@ Acme Inc құрылтайшысы","Full-time parent":"Толық күн жұмыс істейтін ата-ана","Head of Marketing at Acme, Inc":"@ Acme маркетинг жетекшісі ","Hidden for members":"","Hide comment":"Пікірді жасыру","Jamie Larson":"Пәленше Түгеншиев","Join the discussion":"Талқыға қосылу","Just now":"Дәл қазір",Like:"","Load more ({amount})":"","Local resident":"Жергілікті тұрғын","Member discussion":"Мүшелер талқысы",Name:"Есімі",Neurosurgeon:"Нейрохирург",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Бір сағат бұрын","One min ago":"Бір минут бұрын","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"","Replied to":"",Reply:"Жауап беру","Reply to":"","Reply to comment":"Пікірге жауап беру",Report:"Шағымдану","Report comment":"Пікірге шағымдану","Report this comment?":"Осы пікірге шағым жіберілсін бе?",Save:"Сақтау","See full discussion":"",Sending:"Жіберілуде",Sent:"Жіберілді","Show {amount} more replies":"Тағы {amount} жауапты көрсету","Show 1 more reply":"Тағы 1 жауап көрсету","Show comment":"Пікірді көрсету","Sign in":"Кіру","Sign up now":"Қазір тіркелу","Sort by":"","Start the conversation":"Талқыны бастау","The linked comment is no longer available.":"","This comment has been hidden.":"Бұл пікір жасырылды.","This comment has been removed.":"Бұл пікір өшірілді.",Unpin:"","Unpin comment":"","Upgrade now":"Жаңарту ","View in admin":"",Yesterday:"Кеше","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Өтінішіңіз сайт иесіне жіберіледі."},xN={"{amount} characters left":"{amount} likę simboliai","{amount} comments":"{amount} komentarai","{amount} hrs ago":"Prieš {amount} val.","{amount} mins ago":"Prieš {amount} min.","{amount} more":"{amount} daugiau","1 comment":"1 komentaras","Add comment":"Rašyti komentarą","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Papildykite savo komentarą, prisistatykite ir pasidalinkite savo turimomis žiniomis, kad paskatintumėte prasmingą diskusiją.","Add reply":"Atsakyti","Add your expertise":"","Already a member?":"Jau turite paskyrą?",Anonymous:"Anoniminis","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"Užsiregistruokite {publication}, kad galėtumėte komentuoti.","Become a paid member of {publication} to start commenting.":"Tapkite {publication} prenumeratoriumi, kad galėtumėte komentuoti.",Best:"",Cancel:"Atšaukti",Comment:"Komentuoti","Commenting disabled":"","Complete your profile":"Pabaikite kurti savo profilį!",Delete:"Ištrinti",Deleted:"","Deleted member":"Pašalintas narys",Deleting:"",Discussion:"Diskusija",Dislike:"",Edit:"Redaguoti","Edit this comment":"Redaguoti šį komentarą",edited:"redaguotas","Enter your name":"Įrašykite savo vardą",Expertise:"Specializacija","Founder @ Acme Inc":"Istorikas","Full-time parent":"Vaiką prižiūrintis tėvas","Head of Marketing at Acme, Inc":"Tyrinėtojas","Hidden for members":"","Hide comment":"Paslėpti komentarą","Jamie Larson":"Vardenis Pavardenis","Join the discussion":"Prisijunkite prie diskusijos","Just now":"Ką tik",Like:"","Load more ({amount})":"","Local resident":"Vietinis gyventojas","Member discussion":"Komentarai",Name:"Vardas",Neurosurgeon:"Neurochirurgas",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Prieš valandą","One min ago":"Prieš minutę","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",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","See full discussion":"",Sending:"Siunčiama",Sent:"Išsiųsta","Show {amount} more replies":"Rodyti daugiau atsakymų ({amount})","Show 1 more reply":"Rodyti dar 1 atsakymą","Show comment":"Rodyti komentarą","Sign in":"Prisijungti","Sign up now":"Registruotis","Sort by":"","Start the conversation":"Parašykite pirmąjį komentarą","The linked comment is no longer available.":"","This comment has been hidden.":"Šis komentaras buvo paslėptas.","This comment has been removed.":"Šis komentaras buvo pašalintas.",Unpin:"","Unpin comment":"","Upgrade now":"Prenumeruokite","View in admin":"",Yesterday:"Vakar","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Jūsų pranešimas bus išsiųstas svetainės savininkui."},SN={"{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?",Back:"","Become a member of {publication} to start commenting.":"Kļūstiet par {publication} dalībnieku, lai sāktu komentēt.","Become a paid member of {publication} to start commenting.":"Kļūstiet par apmaksātu {publication} dalībnieku, lai sāktu komentēt.",Best:"",Cancel:"Atcelt",Comment:"Komentēt","Commenting disabled":"","Complete your profile":"Pabeidziet savu profilu",Delete:"Dzēst",Deleted:"Izdzēsts","Deleted member":"Dzēsts dalībnieks",Deleting:"Dzēšana",Discussion:"Diskusija",Dislike:"",Edit:"Rediģēt","Edit this comment":"Rediģēt šo komentāru",edited:"rediģēts","Enter your name":"Ievadiet savu vārdu",Expertise:"Ekspertīze","Founder @ Acme Inc":"Dibinātājs @ Acme Inc","Full-time parent":"Pilnas slodzes vecāks","Head of Marketing at Acme, Inc":"Mārketinga vadītājs uzņēmumā Acme, Inc","Hidden for members":"Paslēpts dalībniekiem","Hide comment":"Slēpt komentāru","Jamie Larson":"Jānis Reikulis","Join the discussion":"Pievienojieties diskusijai","Just now":"Tikai tagad",Like:"","Load more ({amount})":"","Local resident":"Vietējais iedzīvotājs","Member discussion":"Biedru diskusija",Name:"Vārds",Neurosurgeon:"Neiroķirurgs",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Pēc dzēšanas šo komentāru nevar atgūt.","One hour ago":"Pirms stundas","One min ago":"Pirms minūtes","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",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","See full discussion":"",Sending:"Notiek nosūtīšana",Sent:"Nosūtīts","Show {amount} more replies":"Rādīt vēl {amount} atbildes","Show 1 more reply":"Rādīt vēl 1 atbildi","Show comment":"Rādīt komentāru","Sign in":"Pierakstīties","Sign up now":"Reģistrējieties tūlīt","Sort by":"Kārtot pēc","Start the conversation":"Sāciet sarunu","The linked comment is no longer available.":"","This comment has been hidden.":"Šis komentārs ir paslēpts.","This comment has been removed.":"Šis komentārs ir noņemts.",Unpin:"","Unpin comment":"","Upgrade now":"Jauniniet tūlīt","View in admin":"",Yesterday:"Vakar","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Jūsu pieprasījums tiks nosūtīts šīs vietnes īpašniekam."},CN={"{amount} characters left":"Преостануваат {amount} знаци.","{amount} comments":"{amount} коментари","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"Уште {amount}","1 comment":"1 коментар","Add comment":"Додајте коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додајте контекст за вашиот коментар, споделете го вашето име и експертиза за да одржите пристојна дискусија.","Add reply":"Одговорете","Add your expertise":"","Already a member?":"Веќе сте член?",Anonymous:"Анонимен","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"Станете член на {publication} за да можете да коментирате.","Become a paid member of {publication} to start commenting.":"Станете претплатен член на {publication} за да можеш да коментирате.",Best:"",Cancel:"Откажете",Comment:"Коментирајте","Commenting disabled":"","Complete your profile":"Комплетирајте го вашиот профил",Delete:"Избришете",Deleted:"","Deleted member":"Избришан член",Deleting:"",Discussion:"Разговор",Dislike:"",Edit:"Изменете","Edit this comment":"Изменете го овој коментар",edited:"","Enter your name":"Внесете го вашето име",Expertise:"Експертиза","Founder @ Acme Inc":"Основач @ Примерна Компанија","Full-time parent":"Родител","Head of Marketing at Acme, Inc":"Раководител на Маркетинг во Примерна Компанија","Hidden for members":"","Hide comment":"Скријте го коментарот","Jamie Larson":"Петар Петровски","Join the discussion":"Приклучете се во разговорот","Just now":"Штотуку",Like:"","Load more ({amount})":"","Local resident":"Локал жител","Member discussion":"Разговор на членовите",Name:"Име",Neurosurgeon:"Неврохирург",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Пред еден час","One min ago":"","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"","Replied to":"",Reply:"Одговорете","Reply to":"","Reply to comment":"Одговор на коментарот",Report:"Пријавете","Report comment":"Пријавете коментар","Report this comment?":"Пријавете го овој коментар?",Save:"Зачувајте","See full discussion":"",Sending:"Се испраќа",Sent:"Испратено","Show {amount} more replies":"Покажи уште {amount} одговори","Show 1 more reply":"Покажи уште 1 одговор","Show comment":"Покажи коментар","Sign in":"Најавете се","Sign up now":"Регистрирајте се","Sort by":"","Start the conversation":"Започнете го разговорот","The linked comment is no longer available.":"","This comment has been hidden.":"Овој коментар беше скриен.","This comment has been removed.":"Овој коментар беше отстранет.",Unpin:"","Unpin comment":"","Upgrade now":"Надградете","View in admin":"",Yesterday:"Вчера","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Вашето барање ќе биде испратено на сопственикот на оваа страница."},EN={"{amount} characters left":"{amount} тэмдэгт үлдсэн","{amount} comments":"{amount} сэтгэгдэл","{amount} hrs ago":"{amount} цагийн өмнө","{amount} mins ago":"{amount} минутын өмнө","{amount} more":"{amount} илүү","1 comment":"1 сэтгэгдэл","Add comment":"Сэтгэгдэл нэмэх","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Сэтгэгдэлдээ илүү мэдээлэл оруулан, нэр болон мэргэжлээ хуваалцаж, үр бүтээлтэй хэлэлцүүлэг өрнүүлнэ үү.","Add reply":"Хариу нэмэх","Add your expertise":"","Already a member?":"Бүртгэлтэй юу?",Anonymous:"Нууц","Are you sure?":"Та итгэлтэй байна уу?",Back:"","Become a member of {publication} to start commenting.":"Сэтгэгдэл бичихийн тулд {publication}-н гишүүн болно уу.","Become a paid member of {publication} to start commenting.":"Сэтгэгдэл бичихийн тулд {publication}-н төлбөртэй гишүүн болно уу.",Best:"",Cancel:"Цуцлах",Comment:"Сэтгэгдэл","Commenting disabled":"","Complete your profile":"Профайлаа бүрэн бөглөнө үү",Delete:"Устгах",Deleted:"Устгагдсан","Deleted member":"Устгагдсан гишүүн",Deleting:"Устгаж байна",Discussion:"Хэлэлцүүлэг",Dislike:"",Edit:"Засах","Edit this comment":"Энэхүү сэтгэгдлийг засах",edited:"засагдсан","Enter your name":"Нэрээ оруулна уу",Expertise:"Мэргэжил","Founder @ Acme Inc":"Acme Inc-н үүсгэн байгуулагч","Full-time parent":"Бүтэн цагийн эцэг/эх","Head of Marketing at Acme, Inc":"Acme, Inc-н маркетингийн удирдлага","Hidden for members":"Гишүүдээс нуугдсан","Hide comment":"Сэтгэгдлийг нуух","Jamie Larson":"Доржийн Бат","Join the discussion":"Хэлэлцүүлэгт нэгдэх","Just now":"Дөнгөж сая",Like:"","Load more ({amount})":"Дахин харах ({amount})","Local resident":"Орон нутгийн оршин суугч","Member discussion":"Гишүүдийн хэлэлцүүлэг",Name:"Нэр",Neurosurgeon:"Мэдрэлийн мэс засалч",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Устгасны дараа энэ сэтгэгдлийг сэргээх боломжгүй.","One hour ago":"Нэг цагийн өмнө","One min ago":"Нэг минутын өмнө","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"хасагдсан","Replied to":"Хариулсан",Reply:"Хариулах","Reply to":"Хариулах","Reply to comment":"Сэтгэгдэлд хариулах",Report:"Мэдэгдэх","Report comment":"Сэтгэгдлийг мэдэгдэх","Report this comment?":"Энэ сэтгэгдлийг мэдэгдэх үү?",Save:"Хадгалах","See full discussion":"",Sending:"Илгээж байна",Sent:"Илгээгдсэн","Show {amount} more replies":"{amount} хариултыг харуулах","Show 1 more reply":"1 хариултыг харуулах","Show comment":"Сэтгэгдлийг харуулах","Sign in":"Нэвтрэх","Sign up now":"Одоо бүртгүүлэх","Sort by":"Эрэмбэлэх","Start the conversation":"Яриаг эхлүүлэх","The linked comment is no longer available.":"","This comment has been hidden.":"Энэ сэтгэгдэл нуугдсан.","This comment has been removed.":"Энэ сэтгэгдэл хасагдсан.",Unpin:"","Unpin comment":"","Upgrade now":"Одоо шинэчлэх","View in admin":"",Yesterday:"Өчигдөр","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Таны хүсэлт энэ сайтын эзэмшигч рүү илгээгдэнэ."},NN={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Dislike:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"",Like:"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"","See full discussion":"",Sending:"",Sent:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"",Unpin:"","Unpin comment":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":""},DN={"{amount} characters left":"{amount} tegn igjen","{amount} comments":"{amount} kommentarer","{amount} hrs ago":"{amount} timer siden","{amount} mins ago":"{amount} minutter siden","{amount} more":"{amount} mer","1 comment":"1 kommentar","Add comment":"Legg til kommentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Legg til kontekst i kommentaren din, del navnet ditt og ekspertisen din for å fremme en god diskusjon.","Add reply":"Legg til svar","Add your expertise":"","Already a member?":"Allerede medlem?",Anonymous:"Anonym","Are you sure?":"Er du sikker?",Back:"","Become a member of {publication} to start commenting.":"Bli medlem av {publication} for å begynne å kommentere.","Become a paid member of {publication} to start commenting.":"Bli et betalende medlem av {publication} for å begynne å kommentere.",Best:"",Cancel:"Avbryt",Comment:"Kommentar","Commenting disabled":"","Complete your profile":"Fullfør profilen din",Delete:"Slett",Deleted:"Slettet","Deleted member":"Slettet medlem",Deleting:"Sletter",Discussion:"Diskusjon",Dislike:"",Edit:"Rediger","Edit this comment":"Rediger denne kommentaren",edited:"redigert","Enter your name":"Skriv inn navnet ditt",Expertise:"Ekspertise","Founder @ Acme Inc":"Grunnlegger @ Acme Inc","Full-time parent":"Forelder på heltid","Head of Marketing at Acme, Inc":"Markedsføringsleder hos Acme Inc","Hidden for members":"Skjult for medlemmer","Hide comment":"Skjul kommentar","Jamie Larson":"Jamie Larson","Join the discussion":"Delta i diskusjonen","Just now":"Akkurat nå",Like:"","Load more ({amount})":"Last inn flere ({amount})","Local resident":"Lokal innbygger","Member discussion":"Medlemsdiskusjon",Name:"Navn",Neurosurgeon:"Nevrokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"En time siden","One min ago":"Ett minutt siden","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",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","See full discussion":"",Sending:"Sender",Sent:"Sendt","Show {amount} more replies":"Vis {amount} flere svar","Show 1 more reply":"Vis ett svar til","Show comment":"Vis kommentar","Sign in":"Logg inn","Sign up now":"Registrer deg nå","Sort by":"Sorter etter","Start the conversation":"Start samtalen","The linked comment is no longer available.":"","This comment has been hidden.":"Denne kommentaren er skjult.","This comment has been removed.":"Denne kommentaren er fjernet.",Unpin:"","Unpin comment":"","Upgrade now":"Oppgrader nå","View in admin":"",Yesterday:"I går","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Din forespørsel vil bli sendt til eieren av dette nettstedet."},RN={"{amount} characters left":"{amount} अक्षर बाँकी","{amount} comments":"{amount} प्रतिक्रियाहरू","{amount} hrs ago":"{amount} घण्टा अघि","{amount} mins ago":"{amount} मिनेट अघि","{amount} more":"{amount} थप","1 comment":"१ प्रतिक्रिया","Add comment":"प्रतिक्रिया थप्नुहोस्","Add context to your comment, share your name and expertise to foster a healthy discussion.":"आफ्नो प्रतिक्रियालाई सन्दर्भ दिनुहोस्, स्वस्थ छलफलको लागि आफ्नो नाम र विशेषज्ञता साझा गर्नुहोस्।","Add reply":"प्रत्युत्तर थप्नुहोस्","Add your expertise":"आफ्नो विशेषज्ञता थप्नुहोस्","Already a member?":"पहिले नै सदस्य हुनुहुन्छ?",Anonymous:"अज्ञात","Are you sure?":"के तपाईं निश्चित हुनुहुन्छ?",Back:"","Become a member of {publication} to start commenting.":"प्रतिक्रिया सुरु गर्न {publication} को सदस्य बन्नुहोस्।","Become a paid member of {publication} to start commenting.":"प्रतिक्रिया सुरु गर्न {publication} को सशुल्क सदस्य बन्नुहोस्।",Best:"उत्तम",Cancel:"रद्द गर्नुहोस्",Comment:"प्रतिक्रिया","Commenting disabled":"","Complete your profile":"आफ्नो प्रोफाइल पूरा गर्नुहोस्",Delete:"मेटाउनुहोस्",Deleted:"मेटाइयो","Deleted member":"मेटाइएको सदस्य",Deleting:"मेटाइँदैछ",Discussion:"छलफल",Dislike:"",Edit:"सम्पादन","Edit this comment":"यो प्रतिक्रिया सम्पादन गर्नुहोस्",edited:"सम्पादित","Enter your name":"आफ्नो नाम प्रविष्ट गर्नुहोस्",Expertise:"विशेषज्ञता","Founder @ Acme Inc":"संस्थापक @ Acme Inc","Full-time parent":"पूर्ण-कालीन अभिभावक","Head of Marketing at Acme, Inc":"Acme, Inc मा मार्केटिङ प्रमुख","Hidden for members":"सदस्यहरूका लागि लुकाइएको","Hide comment":"प्रतिक्रिया लुकाउनुहोस्","Jamie Larson":"जेमी लार्सन","Join the discussion":"छलफलमा सामेल हुनुहोस्","Just now":"भर्खरै",Like:"","Load more ({amount})":"थप लोड गर्नुहोस् ({amount})","Local resident":"स्थानीय बासिन्दा","Member discussion":"सदस्य छलफल",Name:"नाम",Neurosurgeon:"न्यूरोसर्जन",Newest:"सबैभन्दा नयाँ",Oldest:"सबैभन्दा पुरानो","Once deleted, this comment can’t be recovered.":"एक पटक मेटाइएपछि, यो प्रतिक्रिया पुन: प्राप्त गर्न सकिँदैन।","One hour ago":"एक घण्टा अघि","One min ago":"एक मिनेट अघि","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"हटाइयो","Replied to":"प्रत्युत्तर दिइयो",Reply:"प्रत्युत्तर दिनुहोस्","Reply to":"प्रत्युत्तर दिनुहोस्","Reply to comment":"प्रतिक्रियाको प्रत्युत्तर दिनुहोस्",Report:"रिपोर्ट गर्नुहोस्","Report comment":"प्रतिक्रिया रिपोर्ट गर्नुहोस्","Report this comment?":"यो प्रतिक्रिया रिपोर्ट गर्नुहुन्छ?",Save:"बचत गर्नुहोस्","See full discussion":"",Sending:"पठाइँदैछ",Sent:"पठाइयो","Show {amount} more replies":"थप {amount} प्रत्युत्तरहरू देखाउनुहोस्","Show 1 more reply":"थप १ प्रत्युत्तर देखाउनुहोस्","Show comment":"प्रतिक्रिया देखाउनुहोस्","Sign in":"साइन इन गर्नुहोस्","Sign up now":"अहिले दर्ता गर्नुहोस्","Sort by":"क्रमबद्ध गर्नुहोस्","Start the conversation":"कुराकानी सुरु गर्नुहोस्","The linked comment is no longer available.":"","This comment has been hidden.":"यो प्रतिक्रिया लुकाइएको छ।","This comment has been removed.":"यो प्रतिक्रिया हटाइएको छ।",Unpin:"","Unpin comment":"","Upgrade now":"अहिले अपग्रेड गर्नुहोस्","View in admin":"",Yesterday:"हिजो","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"तपाईंको अनुरोध यस साइटको मालिकलाई पठाइनेछ।"},AN={"{amount} characters left":"Nog {amount} tekens over","{amount} comments":"{amount} reacties","{amount} hrs ago":"{amount} uur geleden","{amount} mins ago":"{amount} min geleden","{amount} more":"Nog {amount}","1 comment":"Eén reactie","Add comment":"Versturen","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Voeg context toe aan je reactie, deel je naam en expertise om een gezonde discussie te bevorderen.","Add reply":"Beantwoorden","Add your expertise":"","Already a member?":"Al lid?",Anonymous:"Anoniem","Are you sure?":"Weet je het zeker?",Back:"","Become a member of {publication} to start commenting.":"Word lid van {publication} om te kunnen reageren.","Become a paid member of {publication} to start commenting.":"Word betalend lid van {publication} om te kunnen reageren.",Best:"",Cancel:"Annuleren",Comment:"Verstuur","Commenting disabled":"","Complete your profile":"Vervolledig jouw profiel",Delete:"Verwijderen",Deleted:"Verwijderd","Deleted member":"Verwijderd lid",Deleting:"Wordt verwijderd",Discussion:"Gesprek",Dislike:"",Edit:"Bewerken","Edit this comment":"Bewerk deze reactie",edited:"bewerkt","Enter your name":"Vul je naam in",Expertise:"Expertise","Founder @ Acme Inc":"Oprichter, Acme BV","Full-time parent":"Full-time ouder","Head of Marketing at Acme, Inc":"Acme BV, Hoofd Marketing","Hidden for members":"Verborgen voor leden","Hide comment":"Verberg reactie","Jamie Larson":"Jan Jansen","Join the discussion":"Doe mee aan het gesprek","Just now":"Zojuist",Like:"","Load more ({amount})":"Laad meer ({amount})","Local resident":"Lokale bewoner","Member discussion":"Gesprek",Name:"Naam",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Eenmaal verwijderd, kan deze reactie niet meer worden hersteld.","One hour ago":"Eén uur geleden","One min ago":"Eén min geleden","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",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","See full discussion":"",Sending:"Verzenden",Sent:"Verzonden","Show {amount} more replies":"Toon {amount} extra antwoorden","Show 1 more reply":"Toon nog 1 antwoord","Show comment":"Toon reactie","Sign in":"Inloggen","Sign up now":"Registreren","Sort by":"Sorteren op","Start the conversation":"Begin het gesprek","The linked comment is no longer available.":"","This comment has been hidden.":"Deze reactie is verborgen.","This comment has been removed.":"Deze reactie is verwijderd.",Unpin:"","Unpin comment":"","Upgrade now":"Upgrade nu","View in admin":"",Yesterday:"Gisteren","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Jouw melding zal worden verzonden naar de eigenaar van deze site."},ON={"{amount} characters left":"","{amount} comments":"","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"","Add comment":"","Add context to your comment, share your name and expertise to foster a healthy discussion.":"","Add reply":"","Add your expertise":"","Already a member?":"",Anonymous:"","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Dislike:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"",Like:"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"","See full discussion":"",Sending:"",Sent:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"",Unpin:"","Unpin comment":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":""},TN={"{amount} characters left":"{amount} ਅੱਖਰ ਬਾਕੀ","{amount} comments":"{amount} ਟਿੱਪਣੀਆਂ","{amount} hrs ago":"{amount} ਘੰਟੇ ਪਹਿਲਾਂ","{amount} mins ago":"{amount} ਮਿੰਟ ਪਹਿਲਾਂ","{amount} more":"{amount} ਹੋਰ","1 comment":"1 ਟਿੱਪਣੀ","Add comment":"ਟਿੱਪਣੀ ਸ਼ਾਮਲ ਕਰੋ","Add context to your comment, share your name and expertise to foster a healthy discussion.":"ਆਪਣੀ ਟਿੱਪਣੀ ਵਿੱਚ ਸੰਦਰਭ ਸ਼ਾਮਲ ਕਰੋ, ਸਿਹਤਮੰਦ ਵਿਚਾਰ-ਵਟਾਂਦਰੇ ਨੂੰ ਉਤਸ਼ਾਹਿਤ ਕਰਨ ਲਈ ਆਪਣਾ ਨਾਮ ਅਤੇ ਮੁਹਾਰਤ ਸਾਂਝੀ ਕਰੋ।","Add reply":"ਜਵਾਬ ਸ਼ਾਮਲ ਕਰੋ","Add your expertise":"ਆਪਣੀ ਮੁਹਾਰਤ ਸ਼ਾਮਲ ਕਰੋ","Already a member?":"ਪਹਿਲਾਂ ਤੋਂ ਹੀ ਮੈਂਬਰ ਹੋ?",Anonymous:"ਗੁਮਨਾਮ","Are you sure?":"ਕੀ ਤੁਹਾਨੂੰ ਯਕੀਨ ਹੈ?",Back:"","Become a member of {publication} to start commenting.":"{publication} ਦੇ ਮੈਂਬਰ ਬਣੋ ਅਤੇ ਟਿੱਪਣੀ ਕਰਨਾ ਸ਼ੁਰੂ ਕਰੋ।","Become a paid member of {publication} to start commenting.":"{publication} ਦੇ ਸਹਿਯੋਗੀ ਮੈਂਬਰ ਬਣੋ ਅਤੇ ਟਿੱਪਣੀ ਕਰਨਾ ਸ਼ੁਰੂ ਕਰੋ।",Best:"ਸਭ ਤੋਂ ਵਧੀਆ",Cancel:"ਰੱਦ ਕਰੋ",Comment:"ਟਿੱਪਣੀ","Commenting disabled":"","Complete your profile":"ਆਪਣਾ ਨਿੱਜੀ ਪੰਨਾ ਪੂਰਾ ਕਰੋ",Delete:"ਮਿਟਾਓ",Deleted:"ਮਿਟਾਇਆ ਗਿਆ","Deleted member":"ਮਿਟਾਇਆ ਗਿਆ ਮੈਂਬਰ",Deleting:"ਮਿਟਾਇਆ ਜਾ ਰਿਹਾ ਹੈ",Discussion:"ਵਿਚਾਰ-ਵਟਾਂਦਰਾ",Dislike:"",Edit:"ਸੰਪਾਦਿਤ ਕਰੋ","Edit this comment":"ਇਸ ਟਿੱਪਣੀ ਨੂੰ ਸੰਪਾਦਿਤ ਕਰੋ",edited:"ਸੰਪਾਦਿਤ","Enter your name":"ਆਪਣਾ ਨਾਮ ਦਰਜ ਕਰੋ",Expertise:"ਮੁਹਾਰਤ","Founder @ Acme Inc":"ਸੰਸਥਾਪਕ @ ਫਲਾਣੀ ਕੰਪਨੀ","Full-time parent":"ਘਰੇਲੂ ਮਾਪਾ","Head of Marketing at Acme, Inc":"ਮਾਰਕੀਟਿੰਗ ਮੁਖੀ, ਫਲਾਣੀ ਕੰਪਨੀ ਵਿਖੇ","Hidden for members":"ਮੈਂਬਰਾਂ ਲਈ ਛੁਪਾਇਆ ਗਿਆ","Hide comment":"ਟਿੱਪਣੀ ਛੁਪਾਓ","Jamie Larson":"ਫਲਾਣਾ ਫਲਾਣੀ","Join the discussion":"ਵਿਚਾਰ-ਵਟਾਂਦਰੇ ਵਿੱਚ ਸ਼ਾਮਲ ਹੋਵੋ","Just now":"ਹੁਣੇ ਹੁਣੇ",Like:"","Load more ({amount})":"ਹੋਰ ਲੋਡ ਕਰੋ ({amount})","Local resident":"ਸਥਾਨਕ ਨਿਵਾਸੀ","Member discussion":"ਮੈਂਬਰ ਵਿਚਾਰ-ਵਟਾਂਦਰਾ",Name:"ਨਾਮ",Neurosurgeon:"ਨਿਊਰੋਸਰਜਨ",Newest:"ਸਭ ਤੋਂ ਨਵਾਂ",Oldest:"ਸਭ ਤੋਂ ਪੁਰਾਣਾ","Once deleted, this comment can’t be recovered.":"ਇੱਕ ਵਾਰ ਮਿਟਾਉਣ ਤੋਂ ਬਾਅਦ, ਇਹ ਟਿੱਪਣੀ ਮੁੜ ਪ੍ਰਾਪਤ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕਦੀ।","One hour ago":"ਇੱਕ ਘੰਟਾ ਪਹਿਲਾਂ","One min ago":"ਇੱਕ ਮਿੰਟ ਪਹਿਲਾਂ","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"ਹਟਾਇਆ ਗਿਆ","Replied to":"ਨੂੰ ਜਵਾਬ ਦਿੱਤਾ",Reply:"ਜਵਾਬ","Reply to":"ਨੂੰ ਜਵਾਬ ਦਿਓ","Reply to comment":"ਟਿੱਪਣੀ ਦਾ ਜਵਾਬ ਦਿਓ",Report:"ਰਿਪੋਰਟ ਕਰੋ","Report comment":"ਟਿੱਪਣੀ ਦੀ ਰਿਪੋਰਟ ਕਰੋ","Report this comment?":"ਕੀ ਇਸ ਟਿੱਪਣੀ ਦੀ ਰਿਪੋਰਟ ਕਰਨੀ ਹੈ?",Save:"ਸੁਰੱਖਿਅਤ ਕਰੋ","See full discussion":"",Sending:"ਭੇਜਿਆ ਜਾ ਰਿਹਾ ਹੈ",Sent:"ਭੇਜ ਦਿੱਤਾ ਗਿਆ","Show {amount} more replies":"{amount} ਹੋਰ ਜਵਾਬ ਦਿਖਾਓ","Show 1 more reply":"1 ਹੋਰ ਜਵਾਬ ਦਿਖਾਓ","Show comment":"ਟਿੱਪਣੀ ਦਿਖਾਓ","Sign in":"ਸਾਈਨ ਇਨ ਕਰੋ","Sign up now":"ਹੁਣੇ ਸਾਈਨ ਅੱਪ ਕਰੋ","Sort by":"ਇਸ ਅਨੁਸਾਰ ਕ੍ਰਮਬੱਧ ਕਰੋ","Start the conversation":"ਗੱਲਬਾਤ ਸ਼ੁਰੂ ਕਰੋ","The linked comment is no longer available.":"","This comment has been hidden.":"ਇਹ ਟਿੱਪਣੀ ਛੁਪਾ ਦਿੱਤੀ ਗਈ ਹੈ।","This comment has been removed.":"ਇਹ ਟਿੱਪਣੀ ਹਟਾ ਦਿੱਤੀ ਗਈ ਹੈ।",Unpin:"","Unpin comment":"","Upgrade now":"ਹੁਣੇ ਅੱਪਗਰੇਡ ਕਰੋ","View in admin":"",Yesterday:"ਕੱਲ੍ਹ","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"ਤੁਹਾਡੀ ਬੇਨਤੀ ਇਸ ਸਾਈਟ ਦੇ ਸੰਚਾਲਕ ਨੂੰ ਭੇਜੀ ਜਾਵੇਗੀ।"},PN={"{amount} characters left":"Pozostało {amount} znaków","{amount} comments":"{amount} komentarzy","{amount} hrs ago":"{amount} godzin temu","{amount} mins ago":"{amount} minut temu","{amount} more":"{amount} więcej","1 comment":"1 komentarz","Add comment":"Dodaj komentarz","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodaj więcej informacji do Twojego komentarza, następnie udostępnij proszę Twoje imię i doświadczenie w celu wzbogacenia jakości dyskusji.","Add reply":"Dodaj odpowiedź","Add your expertise":"","Already a member?":"Posiadasz już konto?",Anonymous:"Anonimowy","Are you sure?":"Czy jesteś pewien?",Back:"","Become a member of {publication} to start commenting.":"Dołącz do społeczności {publication}, by zacząć komentować.","Become a paid member of {publication} to start commenting.":"Dołącz do społeczności płatnych subskrybentów {publication}, by zacząć komentować.",Best:"",Cancel:"Anuluj",Comment:"Skomentuj","Commenting disabled":"","Complete your profile":"Skompletuj Twój profil",Delete:"Usuń",Deleted:"Usunięto","Deleted member":"Usunięte konto",Deleting:"Usuwanie",Discussion:"Dyskusja",Dislike:"",Edit:"Edytuj","Edit this comment":"Edytuj komentarz",edited:"edytowano","Enter your name":"Podaj Twoje imię",Expertise:"Doświadczenie","Founder @ Acme Inc":"Founder @ Acme Inc","Full-time parent":"Pełnoetatowy rodzic","Head of Marketing at Acme, Inc":"Head of Marketing at Acme, Inc","Hidden for members":"Ukryte dla członków","Hide comment":"Ukryj komentarz","Jamie Larson":"Jamie Larson","Join the discussion":"Dołącz do dyskusji","Just now":"Przed chwilą",Like:"","Load more ({amount})":"Załaduj więcej ({amount})","Local resident":"Lokalny rezydent","Member discussion":"Członek dyskusji",Name:"Imię",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Po usunięciu, nie będzie możliwe przywrócenie tego komentarza","One hour ago":"Godzinę temu","One min ago":"Minutę temu","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",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","See full discussion":"",Sending:"Wysyłanie",Sent:"Wysłano","Show {amount} more replies":"Pokaż {amount} kolejnych odpowiedzi","Show 1 more reply":"Pokaż następną odpowiedź","Show comment":"Pokaż komentarz","Sign in":"Zaloguj się","Sign up now":"Zarejestruj się","Sort by":"Sortuj według","Start the conversation":"Rozpocznij dyskusję","The linked comment is no longer available.":"","This comment has been hidden.":"Komentarz został ukryty.","This comment has been removed.":"Komentarz został usunięty.",Unpin:"","Unpin comment":"","Upgrade now":"Ulepsz teraz","View in admin":"",Yesterday:"Wczoraj","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Twoje zgłoszenie zostało przesłane do administratora strony."},MN={"{amount} characters left":"{amount} caracteres restantes","{amount} comments":"{amount} comentários","{amount} hrs ago":"{amount} horas atrás","{amount} mins ago":"{amount} minutos atrás","{amount} more":"{amount} mais","1 comment":"1 comentário","Add comment":"Adicionar comentário","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Adicione contexto ao seu comentário, compartilhe seu nome e sua especialidade para promover uma discussão saudável.","Add reply":"Adicionar resposta","Add your expertise":"Adicione sua especialidade","Already a member?":"Já é um membro?",Anonymous:"Anônimo","Are you sure?":"Você tem certeza?",Back:"Voltar","Become a member of {publication} to start commenting.":"Torne-se um membro de {publication} para começar a comentar.","Become a paid member of {publication} to start commenting.":"Torne-se um membro pago de {publication} para começar a comentar.",Best:"Melhores",Cancel:"Cancelar",Comment:"Comentar","Commenting disabled":"Comentários desativados","Complete your profile":"Complete seu perfil",Delete:"Excluir",Deleted:"Excluído","Deleted member":"Membro excluído",Deleting:"Excluindo",Discussion:"Discussão",Dislike:"Não gostei",Edit:"Editar","Edit this comment":"Editar este comentário",edited:"editado","Enter your name":"Digite seu nome",Expertise:"Especialidade","Founder @ Acme Inc":"Fundador @ Acme Inc","Full-time parent":"Pai/Mãe em tempo integral","Head of Marketing at Acme, Inc":"Chefe de Marketing na Acme, Inc","Hidden for members":"Oculto para membros","Hide comment":"Ocultar comentário","Jamie Larson":"Cris Silva","Join the discussion":"Participe da discussão","Just now":"Agora mesmo",Like:"Gostei","Load more ({amount})":"Carregar mais ({amount})","Local resident":"Residente local","Member discussion":"Discussão entre membros",Name:"Nome",Neurosurgeon:"Neurocirurgião",Newest:"Mais Recentes",Oldest:"Mais Antigos","Once deleted, this comment can’t be recovered.":"Após ser excluído, esse comentário não poderá ser recuperado.","One hour ago":"Uma hora atrás","One min ago":"Um minuto atrás","Pin comment":"Fixar comentário",Pinned:"Fixado","Read more replies":"Ler mais respostas","Remove dislike":"Remover não gostei","Remove like":"Remover gostei",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","See full discussion":"Ver discussão completa",Sending:"Enviando",Sent:"Enviado","Show {amount} more replies":"Exibir mais {amount} respostas","Show 1 more reply":"Exibir 1 resposta adicional","Show comment":"Exibir comentário","Sign in":"Entrar","Sign up now":"Inscreva-se agora","Sort by":"Ordenar por","Start the conversation":"Iniciar a conversa","The linked comment is no longer available.":"O comentário vinculado não está mais disponível.","This comment has been hidden.":"Este comentário foi ocultado.","This comment has been removed.":"Este comentário foi removido.",Unpin:"Desafixar","Unpin comment":"Desafixar comentário","Upgrade now":"Atualize agora","View in admin":"Ver no admin",Yesterday:"Ontem","You can't post comments in this publication.":"Você não pode comentar nesta publicação.","You can't post comments in this publication. <a>Contact support</a> for more information.":"Você não pode comentar nesta publicação. <a>Contate o suporte</a> para mais informações.","Your request will be sent to the owner of this site.":"Sua solicitação será enviada ao proprietário deste site."},LN={"{amount} characters left":"Faltam {amount} caracteres ","{amount} comments":"{amount} comentários","{amount} hrs ago":"{amount} horas atrás","{amount} mins ago":"{amount} minutos atrás","{amount} more":"mais","1 comment":"Um comentário","Add comment":"Adicionar comentário","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Adicione o seu comentário, partilhe o seu nome e expriência de modo a promover uma discussão saudável.","Add reply":"Adicionar resposta","Add your expertise":"","Already a member?":"Já é membro?",Anonymous:"Anónimo","Are you sure?":"Tem a certeza?",Back:"","Become a member of {publication} to start commenting.":"Torne-se um membro do {publication} para comentar.","Become a paid member of {publication} to start commenting.":"Torne-se um membro pago do {publication} para comentar. ",Best:"Melhores",Cancel:"Cancelar",Comment:"Comentar","Commenting disabled":"","Complete your profile":"Complete o seu perfil",Delete:"Eliminar",Deleted:"Eliminado","Deleted member":"Membro eliminado",Deleting:"Eliminando",Discussion:"Discussão",Dislike:"",Edit:"Editar","Edit this comment":"Editar este comentário",edited:"editado","Enter your name":"Insira o seu nome",Expertise:"Perícia","Founder @ Acme Inc":"Fundador @ Amce Inc","Full-time parent":"Pai a tempo inteiro","Head of Marketing at Acme, Inc":"Responsável do Marketing @ Amce, Inc","Hidden for members":"Oculto para membros","Hide comment":"Esconder comentário","Jamie Larson":"Jane Doe","Join the discussion":"Junte-se à discussão","Just now":"Agora",Like:"","Load more ({amount})":"","Local resident":"Residente local","Member discussion":"Discussão para membros",Name:"Nome",Neurosurgeon:"neurocirurgião",Newest:"Mais recentes",Oldest:"Mais antigos","Once deleted, this comment can’t be recovered.":"","One hour ago":"uma hora atrás","One min ago":"um minuto atrás","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",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","See full discussion":"",Sending:"Enviar",Sent:"Enviado","Show {amount} more replies":"Mostrar mais {amount} respostas","Show 1 more reply":"Mostrar mais uma resposta","Show comment":"Mostrar comentário","Sign in":"Registar","Sign up now":"Registar agora","Sort by":"Organizar por","Start the conversation":"Comece a conversa","The linked comment is no longer available.":"","This comment has been hidden.":"Este comentário foi ocultado","This comment has been removed.":"Este comentário foi removido",Unpin:"","Unpin comment":"","Upgrade now":"Atualize agora","View in admin":"",Yesterday:"Ontem","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"O seu pedido será enviado para o dono deste site."},jN={"{amount} characters left":"{amount} caractere rămase","{amount} comments":"{amount} comentarii","{amount} hrs ago":"acum {amount} ore","{amount} mins ago":"acum {amount} minute","{amount} more":"încă {amount}","1 comment":"1 comentariu","Add comment":"Adaugă comentariu","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Adăugați context comentariului dumneavoastră, împărtășiți-vă numele și expertiza pentru a favoriza o discuție sănătoasă.","Add reply":"Adaugă răspuns","Add your expertise":"","Already a member?":"Deja membru?",Anonymous:"Anonim","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"Deveniți membru al {publication} pentru a începe să comentați.","Become a paid member of {publication} to start commenting.":"Deveniți membru plătit al {publication} pentru a începe să comentați.",Best:"",Cancel:"Anulează",Comment:"Comentează","Commenting disabled":"","Complete your profile":"Completează-ți profilul",Delete:"Șterge",Deleted:"","Deleted member":"Membru șters",Deleting:"",Discussion:"Discuție",Dislike:"",Edit:"Editează","Edit this comment":"Editează acest comentariu",edited:"editat","Enter your name":"Introduceți numele dumneavoastră",Expertise:"Expertiză","Founder @ Acme Inc":"Fondator @ Acme Inc","Full-time parent":"Părinte cu normă întreagă","Head of Marketing at Acme, Inc":"Șef de Marketing la Acme, Inc","Hidden for members":"","Hide comment":"Ascunde comentariul","Jamie Larson":"Jamie Larson","Join the discussion":"Alătură-te discuției","Just now":"Chiar acum",Like:"","Load more ({amount})":"","Local resident":"Rezident local","Member discussion":"Discuție membrii",Name:"Nume",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Acum o oră","One min ago":"Acum un minut","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",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ă","See full discussion":"",Sending:"Se trimite",Sent:"Trimis","Show {amount} more replies":"Arată încă {amount} răspunsuri","Show 1 more reply":"Arată încă un răspuns","Show comment":"Arată comentariul","Sign in":"Autentificare","Sign up now":"Înregistrează-te acum","Sort by":"Ordonează după","Start the conversation":"Începe conversația","The linked comment is no longer available.":"","This comment has been hidden.":"Acest comentariu a fost ascuns.","This comment has been removed.":"Acest comentariu a fost eliminat.",Unpin:"","Unpin comment":"","Upgrade now":"Actualizează acum","View in admin":"",Yesterday:"Ieri","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Cererea dumneavoastră va fi trimisă proprietarului acestui site."},IN={"{amount} characters left":"{amount} символа(ов) осталось","{amount} comments":"{amount} комментария(ев)","{amount} hrs ago":"{amount} ч. назад","{amount} mins ago":"{amount} мин. назад","{amount} more":"ещё {amount}","1 comment":"1 комментарий","Add comment":"Добавить комментарий","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Дополните свой комментарий контекстом, добавив подробности о себе и своём опыте, чтобы обсуждение стало более интересным.","Add reply":"Добавить ответ","Add your expertise":"Добавить свой опыт","Already a member?":"Уже присоединились?",Anonymous:"Анонимный","Are you sure?":"Вы уверены?",Back:"","Become a member of {publication} to start commenting.":"Присоединяйтесь к {publication} чтобы начать комментировать.","Become a paid member of {publication} to start commenting.":"Станьте платным участником {publication} чтобы начать комментировать.",Best:"Лучший",Cancel:"Отмена",Comment:"Комментарий","Commenting disabled":"","Complete your profile":"Заполните свой профиль",Delete:"Удалить",Deleted:"Удалено","Deleted member":"Удалённый участник",Deleting:"Удаление",Discussion:"Обсуждение",Dislike:"",Edit:"Редактировать","Edit this comment":"Редактировать этот комментарий",edited:"Отредактированно","Enter your name":"Введите ваше имя",Expertise:"Деятельность","Founder @ Acme Inc":"Основатель @ Корпорация «Акме»","Full-time parent":"Родитель, работающий полный рабочий день","Head of Marketing at Acme, Inc":"Руководитель отдела маркетинга в Корпорации «Акме»","Hidden for members":"Скрыто для участников","Hide comment":"Скрыть комментарий","Jamie Larson":"Павел Бид","Join the discussion":"Присоединиться к обсуждению","Just now":"Сейчас",Like:"","Load more ({amount})":"Загрузить ещё ({amount})","Local resident":"Местный житель","Member discussion":"Обсуждение участников",Name:"Имя",Neurosurgeon:"Нейрохирург",Newest:"Сначала новые",Oldest:"Сначала старые","Once deleted, this comment can’t be recovered.":"После удаления этот комментарий не может быть восстановлен.","One hour ago":"Час назад","One min ago":"Минуту назад","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"удалён","Replied to":"Ответ на",Reply:"Ответить","Reply to":"Ответить на","Reply to comment":"Ответить на комментарий",Report:"Пожаловаться","Report comment":"Пожаловаться на комментарий","Report this comment?":"Пожаловаться на этот комментарий?",Save:"Сохранить","See full discussion":"",Sending:"Отправка",Sent:"Отправлено","Show {amount} more replies":"Показать ещё {amount} ответа(ов)","Show 1 more reply":"Показать ответ","Show comment":"Показать комментарий","Sign in":"Войти","Sign up now":"Зарегистрироваться","Sort by":"Сортировать по","Start the conversation":"Начать обсуждение","The linked comment is no longer available.":"","This comment has been hidden.":"Этот комментарий скрыт","This comment has been removed.":"Этот комментарий был удалён",Unpin:"","Unpin comment":"","Upgrade now":"Улучшить подписку","View in admin":"",Yesterday:"Вчера","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Ваш запрос будет отправлен владельцу сайта."},BN={"{amount} characters left":"තව වචන {amount} යි.","{amount} comments":"අදහස් {amount} යි.","{amount} hrs ago":"පැය {amount} ට පෙර","{amount} mins ago":"මිනිත්තු {amount} ට පෙර","{amount} more":"","1 comment":"1 අදහසයි.","Add comment":"අදහස් එකතු කරන්න","Add context to your comment, share your name and expertise to foster a healthy discussion.":"ඉතා හොඳ සාකච්ඡාවක් රැගෙන යාම සඳහා ඔබේ අදහසට අන්තර්ගතය එක් කර ඔබේ නම සහ විශේෂඥතාව බෙදා ගන්න","Add reply":"ප්රතිචාර එකතු කරන්න","Add your expertise":"","Already a member?":"දැනටමත් සාමාජිකයෙක්ද ?",Anonymous:"නිර්නාමික","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"අදහස් දැක්වීම ආරම්භ කිරීමට {publication} හි සාමාජිකයෙකු වන්න","Become a paid member of {publication} to start commenting.":"අදහස් දැක්වීම ආරම්භ කිරීමට {publication} හි ගෙවීම් කරන ලද සාමාජිකයෙකු වන්න",Best:"",Cancel:"අවලංගු කරන්න",Comment:"අදහස","Commenting disabled":"","Complete your profile":"ඔබගේ ගිණුම සම්පූර්ණ කරන්න",Delete:"Delete කරන්න",Deleted:"","Deleted member":"සාමාජිකයාව delete කරන්න",Deleting:"",Discussion:"සාකච්ඡාව",Dislike:"",Edit:"සංස්කරණය කරන්න","Edit this comment":"අදහස සංස්කරණය කරන්න",edited:"සංස්කරණය කරන ලද.","Enter your name":"ඔබගේ නම සඳහන් කරන්න",Expertise:"විශේෂඥතාව","Founder @ Acme Inc":"Acme Inc හි නිර්මාතෘ","Full-time parent":"පූර්ණ කාලීන භාරකරුවන්","Head of Marketing at Acme, Inc":"Acme, Inc හි අලෙවි ප්රධානී","Hidden for members":"","Hide comment":"අදහස සඟවන්න","Jamie Larson":"ජේමි ලාර්සන්","Join the discussion":"සාකච්ඡාවට එක්වන්න","Just now":"මේ දැන්",Like:"","Load more ({amount})":"","Local resident":"දේශීය පදිංචි","Member discussion":"සාමාජික සාකච්ඡාව",Name:"නම",Neurosurgeon:"ස්නායු ශල්ය වෛද්ය",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"පැයකට පෙර","One min ago":"මිනිත්තුවකට පෙර","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"","Replied to":"",Reply:"ප්රතිචාර දක්වන්න","Reply to":"","Reply to comment":"අදහසට රතිචාර දක්වන්න",Report:"වාර්තා කරන්න","Report comment":"අදහසට වාර්තා කරන්න","Report this comment?":"මෙම අදහසට වාර්තා කරන්නෙහිද ?",Save:"සුරකින්න","See full discussion":"",Sending:"යවමින්",Sent:"යැව්වා","Show {amount} more replies":"තවත් පිළිතුරු {amount} පෙන්වන්න","Show 1 more reply":"තවත් පිළිතුරු 1ක් පෙන්වන්න","Show comment":"අදහස පෙන්වන්න","Sign in":"Sign in වෙන්න","Sign up now":"දැන්ම Sign up වෙන්න","Sort by":"","Start the conversation":"සංවාදය ආරම්භ කරන්න","The linked comment is no longer available.":"","This comment has been hidden.":"මෙම අදහස සඟවා ඇත.","This comment has been removed.":"මෙම අදහස ඉවත් කර ඇත.",Unpin:"","Unpin comment":"","Upgrade now":"දැන් upgrade කරන්න","View in admin":"",Yesterday:"ඊයෙ","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"ඔබගේ ඉල්ලීම මෙම අඩවියේ හිමිකරු වෙත යවනු ලැබේ."},zN={"{amount} characters left":"Zostáva {amount} znakov","{amount} comments":"{amount} komentárov","{amount} hrs ago":"Pred {amount} hodinami","{amount} mins ago":"Pred {amount} minútami","{amount} more":"{amount} ďalších","1 comment":"1 komentár","Add comment":"Pridať komentár","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Pridajte kontext do vášho komentára, zdielajte svoje meno, a odbornosť pre podporu zdravej diskusie.","Add reply":"Pridať odpoveď","Add your expertise":"","Already a member?":"Už ste členom?",Anonymous:"Anonym","Are you sure?":"Ste si istý?",Back:"","Become a member of {publication} to start commenting.":"Staňte sa členom {publication}, aby ste mohli začať komentovať","Become a paid member of {publication} to start commenting.":"Staňte sa plateným členom {publication}, aby ste mohli začať komentovať",Best:"",Cancel:"Zrušiť",Comment:"Komentár","Commenting disabled":"","Complete your profile":"Dokončite váš profil",Delete:"Vymazať",Deleted:"Vymazané","Deleted member":"Vymazaný člen",Deleting:"Vymazávam",Discussion:"Diskusia",Dislike:"",Edit:"Upraviť","Edit this comment":"Upraviť komentár",edited:"upravený","Enter your name":"Zadajte vaše meno",Expertise:"Odbornosť","Founder @ Acme Inc":"Zakladateľ @ Acme Inc","Full-time parent":"Rodič na plný úväzok","Head of Marketing at Acme, Inc":"Vedúci marketingu v spoločnosti Acme, Inc","Hidden for members":"Skryté pre členov","Hide comment":"Skryť komentár","Jamie Larson":"Jamie Larson","Join the discussion":"Zapojiť sa do diskusie","Just now":"Teraz",Like:"","Load more ({amount})":"","Local resident":"Miestny obyvateľ","Member discussion":"Členská diskusia",Name:"Meno",Neurosurgeon:"Neurochirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Po odstránení nebude možné tento komentár obnoviť.","One hour ago":"Pred hodinou","One min ago":"Pred minútou","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",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ť","See full discussion":"",Sending:"Odosielanie",Sent:"Odoslané","Show {amount} more replies":"Zobraziť {amount} ďalších odpoveďí","Show 1 more reply":"Zobraziť 1 ďalšiu odpoveď","Show comment":"Zobraziť komentár","Sign in":"Prihlásiť","Sign up now":"Registrovať sa","Sort by":"Triediť podľa","Start the conversation":"Začať konverzáciu","The linked comment is no longer available.":"","This comment has been hidden.":"Tento komentár bol skrytý.","This comment has been removed.":"Tento komentár bol vymazaný.",Unpin:"","Unpin comment":"","Upgrade now":"Upraviť členstvo","View in admin":"",Yesterday:"Včera","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Vaša požiadavka bude odoslaná vlastníkovi stránky."},FN={"{amount} characters left":"Še {amount} znakov","{amount} comments":"{amount} komentarjev","{amount} hrs ago":"Pred {amount} urami","{amount} mins ago":"Pred {amount} minutami","{amount} more":"Še {amount}","1 comment":"1 komentar","Add comment":"Dodajte komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodajte kontekst svojemu komentarju, delite svoje ime in strokovno znanje za spodbujanje zdrave razprave.","Add reply":"Dodajte odgovor","Add your expertise":"","Already a member?":"Ste že član?",Anonymous:"Anonimno","Are you sure?":"Ste prepričani?",Back:"","Become a member of {publication} to start commenting.":"Postanite član {publication}, da lahko začnete komentirati.","Become a paid member of {publication} to start commenting.":"Postanite plačljiv član {publication}, da lahko začnete komentirati.",Best:"",Cancel:"Prekliči",Comment:"Komentiraj","Commenting disabled":"","Complete your profile":"Dokončajte svoj profil",Delete:"Izbriši",Deleted:"Izbrisano","Deleted member":"Izbrisan član",Deleting:"Brisanje",Discussion:"Razprava",Dislike:"",Edit:"Uredi","Edit this comment":"Uredi ta komentar",edited:"urejeno","Enter your name":"Vnesite svoje ime",Expertise:"Strokovno znanje","Founder @ Acme Inc":"Ustanovitelj pri Acme Inc","Full-time parent":"Starš s polnim delovnim časom","Head of Marketing at Acme, Inc":"Vodja marketinga pri Acme, Inc","Hidden for members":"Skrito za člane","Hide comment":"Skrij komentar","Jamie Larson":"Janez Novak","Join the discussion":"Pridružite se razpravi","Just now":"Pravkar",Like:"","Load more ({amount})":"Naloži več ({amount})","Local resident":"Lokalni prebivalec","Member discussion":"Razprava članov",Name:"Ime",Neurosurgeon:"Nevrokirurg",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"Ko je komentar izbrisan, ga ni mogoče več obnoviti.","One hour ago":"Pred eno uro","One min ago":"Pred eno minuto","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",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","See full discussion":"",Sending:"Pošiljanje",Sent:"Poslano","Show {amount} more replies":"Prikaži še {amount} odgovorov","Show 1 more reply":"Prikaži še 1 odgovor","Show comment":"Prikaži komentar","Sign in":"Prijavite se","Sign up now":"Registrirajte se zdaj","Sort by":"Razvrsti po","Start the conversation":"Začnite pogovor","The linked comment is no longer available.":"","This comment has been hidden.":"Ta komentar je bil skrit.","This comment has been removed.":"Ta komentar je bil odstranjen.",Unpin:"","Unpin comment":"","Upgrade now":"Nadgradite zdaj","View in admin":"",Yesterday:"Včeraj","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Vaša zahteva bo poslana lastniku te strani."},_N={"{amount} characters left":"edhe {amount} karaktere","{amount} comments":"{amount} komente","{amount} hrs ago":"{amount} orë më parë","{amount} mins ago":"{amount} minuta më parë","{amount} more":"edhe {amount} të tjerë","1 comment":"1 koment","Add comment":"Shto koment","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Shtojini kontekst komentit tuaj, ndani emrin dhe përvojën tuaj për të nxitur një diskutim të shëndetshëm.","Add reply":"Shto përgjigje","Add your expertise":"Shtoni përvojën tuaj","Already a member?":"Jeni anëtar?",Anonymous:"Anonim","Are you sure?":"A jeni i sigurt?",Back:"","Become a member of {publication} to start commenting.":"Bëhu anëtar i {publication} për të filluar komentimin.","Become a paid member of {publication} to start commenting.":"Bëhu anëtar me pagesë i {publication} për të filluar komentimin.",Best:"Më të mirat",Cancel:"Anulo",Comment:"Koment","Commenting disabled":"Komentimi është çaktivizuar","Complete your profile":"Plotësoni profilin tuaj",Delete:"Fshi",Deleted:"U fshi","Deleted member":"Anëtar i fshirë",Deleting:"Duke fshirë",Discussion:"Diskutimi",Dislike:"",Edit:"Modifiko","Edit this comment":"Modifiko këtë koment",edited:"i modifikuar","Enter your name":"Vendosni emrin tuaj",Expertise:"Përvoja","Founder @ Acme Inc":"Themelues @ Acme Inc","Full-time parent":"Prind me kohë të plotë","Head of Marketing at Acme, Inc":"Drejtor Marketingu në Acme, Inc","Hidden for members":"E fshehur për anëtarët","Hide comment":"Fshih komentin","Jamie Larson":"Jamie Larson","Join the discussion":"Bashkohu në diskutim","Just now":"Këtë çast",Like:"","Load more ({amount})":"Ngarko më shumë ({amount})","Local resident":"Banor vendas","Member discussion":"Diskutim i anëtarëve",Name:"Emri",Neurosurgeon:"Neurokirurg",Newest:"Më të rejat",Oldest:"Më të vjetrat","Once deleted, this comment can’t be recovered.":"Pasi të fshihet, ky koment nuk mund të rikthehet.","One hour ago":"Një orë më parë","One min ago":"Një minutë më parë","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"i hequr","Replied to":"Iu përgjigj",Reply:"Përgjigju","Reply to":"Përgjigju","Reply to comment":"Përgjigju komentit",Report:"Raporto","Report comment":"Raporto komentin","Report this comment?":"Të raportohet ky koment?",Save:"Ruaj","See full discussion":"",Sending:"Duke dërguar",Sent:"U dërgua","Show {amount} more replies":"Shfaq edhe {amount} përgjigje","Show 1 more reply":"Shfaq edhe 1 përgjigje","Show comment":"Shfaq komentin","Sign in":"Hyni","Sign up now":"Regjistrohu tani","Sort by":"Rendit sipas","Start the conversation":"Nisni bisedën","The linked comment is no longer available.":"Komenti i lidhur nuk është më i disponueshëm.","This comment has been hidden.":"Ky koment është fshehur.","This comment has been removed.":"Ky koment është hequr.",Unpin:"","Unpin comment":"","Upgrade now":"Përmirëso tani","View in admin":"Shiko në admin",Yesterday:"Dje","You can't post comments in this publication.":"Nuk mund të postoni komente në këtë publikim.","You can't post comments in this publication. <a>Contact support</a> for more information.":"Nuk mund të postoni komente në këtë publikim. <a>Kontaktoni mbështetjen</a> për më shumë informacion.","Your request will be sent to the owner of this site.":"Kërkesa juaj do t'i dërgohet pronarit të kësaj faqeje."},UN={"{amount} characters left":"преостало је {amount} карактера","{amount} comments":"{amount} коментара","{amount} hrs ago":"пре {amount} сати","{amount} mins ago":"пре {amount} минута","{amount} more":"још {amount}","1 comment":"1 коментар","Add comment":"Додајте коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додајте контекст свом коментару, поделите своје име и експертизу како бисте подстакли здраву дискусију.","Add reply":"Додајте одговор","Add your expertise":"Додајте експертизу","Already a member?":"Већ сте члан?",Anonymous:"Анонимно","Are you sure?":"Да ли сте сигурни?",Back:"","Become a member of {publication} to start commenting.":"Постаните члан {publication} да бисте почели са коментарисањем.","Become a paid member of {publication} to start commenting.":"Постаните плаћени члан {publication} да бисте почели са коментарисањем.",Best:"Најбоље",Cancel:"Откажите",Comment:"Коментар","Commenting disabled":"Коментарисање онемогућено","Complete your profile":"Попуните свој профил",Delete:"Обришите",Deleted:"Обрисано","Deleted member":"Обрисан члан",Deleting:"Брисање",Discussion:"Дискусија",Dislike:"",Edit:"Уредите","Edit this comment":"Уредите овај коментар",edited:"уређено","Enter your name":"Унесите своје име",Expertise:"Експертиза","Founder @ Acme Inc":"Оснивач @ Acme Inc","Full-time parent":"Родитељ пуним радним временом","Head of Marketing at Acme, Inc":"Шеф маркетинга у Acme, Inc","Hidden for members":"Сакривено за чланове","Hide comment":"Сакријте коментар","Jamie Larson":"Пера Перић","Join the discussion":"Придружите се дискусији","Just now":"Управо сада",Like:"","Load more ({amount})":"Учитајте још ({amount})","Local resident":"Локални становник","Member discussion":"Дискусија чланова",Name:"Име",Neurosurgeon:"Неурохирург",Newest:"Најновије",Oldest:"Најстарије","Once deleted, this comment can’t be recovered.":"Када се обрише, овај коментар не може бити враћен.","One hour ago":"Пре сат","One min ago":"Пре минут","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"уклоњено","Replied to":"Одговорено кориснику",Reply:"Одговорите","Reply to":"Одговорите кориснику","Reply to comment":"Одговорите на коментар",Report:"Пријавите","Report comment":"Пријавите коментар","Report this comment?":"Пријавите овај коментар?",Save:"Сачувајте","See full discussion":"",Sending:"Слање",Sent:"Послато","Show {amount} more replies":"Прикажите још {amount} одговора","Show 1 more reply":"Прикажите још 1 одговор","Show comment":"Прикажите коментар","Sign in":"Пријавите се","Sign up now":"Региструјте се сада","Sort by":"Сортирајте по","Start the conversation":"Почните разговор","The linked comment is no longer available.":"","This comment has been hidden.":"Овај коментар је сакривен.","This comment has been removed.":"Овај коментар је уклоњен.",Unpin:"","Unpin comment":"","Upgrade now":"Надоградите сада","View in admin":"Погледајте у админ",Yesterday:"Јуче","You can't post comments in this publication.":"Не можете објављивати коментаре у овој публикацији.","You can't post comments in this publication. <a>Contact support</a> for more information.":"Не можете објављивати коментаре у овој публикацији. <a>Контактирајте подршку</a> за више информација.","Your request will be sent to the owner of this site.":"Ваш захтев ће бити послат власнику овог сајта."},HN={"{amount} characters left":"preostalo je {amount} karaktera","{amount} comments":"{amount} komentara","{amount} hrs ago":"pre {amount} sati","{amount} mins ago":"pre {amount} minuta","{amount} more":"još {amount}","1 comment":"1 komentar","Add comment":"Dodajte komentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Dodajte kontekst svom komentaru, podelite svoje ime i ekspertizu kako biste podstakli zdravu diskusiju.","Add reply":"Dodajte odgovor","Add your expertise":"Dodajte ekspertizu","Already a member?":"Već ste član?",Anonymous:"Anonimno","Are you sure?":"Da li ste sigurni?",Back:"","Become a member of {publication} to start commenting.":"Postanite član {publication} da biste počeli sa komentarisanjem.","Become a paid member of {publication} to start commenting.":"Postanite plaćeni član {publication} da biste počeli sa komentarisanjem.",Best:"Najbolje",Cancel:"Otkažite",Comment:"Komentar","Commenting disabled":"Komentarisanje onemogućeno","Complete your profile":"Popunite svoj profil",Delete:"Obrišite",Deleted:"Obrisano","Deleted member":"Obrisan član",Deleting:"Brisanje",Discussion:"Diskusija",Dislike:"",Edit:"Uredite","Edit this comment":"Uredite ovaj komentar",edited:"uređeno","Enter your name":"Unesite svoje ime",Expertise:"Ekspertiza","Founder @ Acme Inc":"Osnivač @ Acme Inc","Full-time parent":"Roditelj punim radnim vremenom","Head of Marketing at Acme, Inc":"Šef marketinga u Acme, Inc","Hidden for members":"Sakriveno za članove","Hide comment":"Sakrijte komentar","Jamie Larson":"Pera Perić","Join the discussion":"Pridružite se diskusiji","Just now":"Upravo sada",Like:"","Load more ({amount})":"Učitajte još ({amount})","Local resident":"Lokalni stanovnik","Member discussion":"Diskusija članova",Name:"Ime",Neurosurgeon:"Neurohirurg",Newest:"Najnovije",Oldest:"Najstarije","Once deleted, this comment can’t be recovered.":"Kada se obriše, ovaj komentar ne može biti vraćen.","One hour ago":"Pre sat","One min ago":"Pre minut","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"uklonjeno","Replied to":"Odgovoreno korisniku",Reply:"Odgovorite","Reply to":"Odgovorite korisniku","Reply to comment":"Odgovorite na komentar",Report:"Prijavite","Report comment":"Prijavite komentar","Report this comment?":"Prijavite ovaj komentar?",Save:"Sačuvajte","See full discussion":"",Sending:"Slanje",Sent:"Poslato","Show {amount} more replies":"Prikažite još {amount} odgovora","Show 1 more reply":"Prikažite još 1 odgovor","Show comment":"Prikažite komentar","Sign in":"Prijavite se","Sign up now":"Registrujte se sada","Sort by":"Sortirajte po","Start the conversation":"Počnite razgovor","The linked comment is no longer available.":"","This comment has been hidden.":"Ovaj komentar je sakriven.","This comment has been removed.":"Ovaj komentar je uklonjen.",Unpin:"","Unpin comment":"","Upgrade now":"Nadogradite sada","View in admin":"Pogledajte u admin",Yesterday:"Juče","You can't post comments in this publication.":"Ne možete objavljivati komentare u ovoj publikaciji.","You can't post comments in this publication. <a>Contact support</a> for more information.":"Ne možete objavljivati komentare u ovoj publikaciji. <a>Kontaktirajte podršku</a> za više informacija.","Your request will be sent to the owner of this site.":"Vaš zahtev će biti poslat vlasniku ovog sajta."},VN={"{amount} characters left":"{amount} tecken kvar","{amount} comments":"{amount} kommentarer","{amount} hrs ago":"{amount} timmar sedan","{amount} mins ago":"{amount} minuter sedan","{amount} more":"{amount} fler","1 comment":"1 kommentar","Add comment":"Lägg till kommentar","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Lägg till kontext till din kommentar, som ditt namn, din expertis för att skapa ett bra forum.","Add reply":"Lägg till svar","Add your expertise":"Lägg till din expertis","Already a member?":"Redan medlem?",Anonymous:"Anonym","Are you sure?":"Är du säker?",Back:"Tillbaka","Become a member of {publication} to start commenting.":"Registrera dig på {publication} för att börja kommentera.","Become a paid member of {publication} to start commenting.":"Bli betalande medlem på {publication} för att börja kommentera.",Best:"Mest populär",Cancel:"Avbryt",Comment:"Kommentar","Commenting disabled":"Kommentarer inaktiverade","Complete your profile":"Fyll i hela din profil",Delete:"Ta bort",Deleted:"Borttaget","Deleted member":"Borttagen medlem",Deleting:"Tar bort",Discussion:"Diskussion",Dislike:"Ogilla",Edit:"Ändra","Edit this comment":"Ändra den här kommentaren",edited:"Ändrad","Enter your name":"Skriv ditt namn",Expertise:"Expertis","Founder @ Acme Inc":"Grundare av Företaget AB","Full-time parent":"Hemmaförälder","Head of Marketing at Acme, Inc":"Marknadsföringschef på Företaget AB","Hidden for members":"Dolt för medlemmar","Hide comment":"Dölj kommentar","Jamie Larson":"Anders Andersson","Join the discussion":"Var med i diskussionen","Just now":"Nu precis",Like:"Gilla","Load more ({amount})":"Ladda in fler ({amount})","Local resident":"Lokalboende","Member discussion":"Medlemsdiskussion",Name:"Namn",Neurosurgeon:"Neurokirurg",Newest:"Nyast",Oldest:"Äldst","Once deleted, this comment can’t be recovered.":"Kommentaren kan ej återskapas efter borttagning.","One hour ago":"En timme sedan","One min ago":"En minut sedan","Pin comment":"Nåla fast kommentar",Pinned:"Fastnålad","Read more replies":"Läs fler svar","Remove dislike":"Ta bort ogilla","Remove like":"Ta bort gilla",removed:"borttagen","Replied to":"Svarade",Reply:"Svar","Reply to":"Svara","Reply to comment":"Svara på kommentar",Report:"Anmäl","Report comment":"Anmäl kommentar","Report this comment?":"Anmäl den här kommentaren?",Save:"Spara","See full discussion":"Se hela diskussionen",Sending:"Skickar",Sent:"Skickad","Show {amount} more replies":"Visa {amount} fler svar","Show 1 more reply":"Visa 1 kommentar till","Show comment":"Visa kommentar","Sign in":"Logga in","Sign up now":"Registrera dig nu","Sort by":"Sortera efter","Start the conversation":"Inled konversationen","The linked comment is no longer available.":"Den länkade kommentaren är borttagen.","This comment has been hidden.":"Denna kommentar har dolts.","This comment has been removed.":"Denna kommentar är borttagen.",Unpin:"Avnåla","Unpin comment":"Avnåla kommentar","Upgrade now":"Uppgradera nu","View in admin":"Visa i admin",Yesterday:"I går","You can't post comments in this publication.":"Du kan inte posta kommentarer här.","You can't post comments in this publication. <a>Contact support</a> for more information.":"Du kan inte posta kommentarer här. <a>Kontakta supporten</a> för mer information.","Your request will be sent to the owner of this site.":"Din anmälan skickas till ansvarig för webbplatsen."},YN={"{amount} characters left":"{amount} herufi zimebaki","{amount} comments":"{amount} maoni","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"{amount} zaidi","1 comment":"maoni 1","Add comment":"Ongeza maoni","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Ongeza muktadha kwa maoni yako, shiriki jina lako na utaalamu ili kuendeleza mjadala wenye afya.","Add reply":"Ongeza jibu","Add your expertise":"","Already a member?":"Tayari ni mwanachama?",Anonymous:"Asiyetambulika","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"Jiunge kama mwanachama wa {publication} ili kuanza kutoa maoni.","Become a paid member of {publication} to start commenting.":"Jiunge kama mwanachama anayelipa wa {publication} ili kuanza kutoa maoni.",Best:"",Cancel:"Ghairi",Comment:"Maoni","Commenting disabled":"","Complete your profile":"Kamilisha wasifu wako",Delete:"Futa",Deleted:"","Deleted member":"Mwanachama aliyefutwa",Deleting:"",Discussion:"Majadiliano",Dislike:"",Edit:"Hariri","Edit this comment":"Hariri maoni haya",edited:"","Enter your name":"Weka jina lako",Expertise:"Utaalamu","Founder @ Acme Inc":"Mwanzilishi @ Acme Inc","Full-time parent":"Mzazi wa muda wote","Head of Marketing at Acme, Inc":"Mkuu wa Masoko katika Acme, Inc","Hidden for members":"","Hide comment":"Ficha maoni","Jamie Larson":"Jamie Larson","Join the discussion":"Jiunge na mjadala","Just now":"Hivi sasa",Like:"","Load more ({amount})":"","Local resident":"Mkazi wa eneo","Member discussion":"Mjadala wa wanachama",Name:"Jina",Neurosurgeon:"Daktari wa ubongo",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Saa moja iliyopita","One min ago":"","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",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","See full discussion":"",Sending:"Inatuma",Sent:"Imetumwa","Show {amount} more replies":"Onyesha majibu {amount} zaidi","Show 1 more reply":"Onyesha jibu 1 zaidi","Show comment":"Onyesha maoni","Sign in":"Ingia","Sign up now":"Jisajili sasa","Sort by":"","Start the conversation":"Anzisha mazungumzo","The linked comment is no longer available.":"","This comment has been hidden.":"Maoni haya yamefichwa.","This comment has been removed.":"Maoni haya yameondolewa.",Unpin:"","Unpin comment":"","Upgrade now":"Boresha sasa","View in admin":"",Yesterday:"Jana","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Ombi lako litatumwa kwa mmiliki wa tovuti hii."},JN={"{amount} characters left":"{amount} எழுத்துக்கள் எஞ்சியுள்ளன","{amount} comments":"{amount} கருத்துக்கள்","{amount} hrs ago":"{amount} மணி நேரத்திற்கு முன்பு","{amount} mins ago":"{amount} நிமிடங்களுக்கு முன்பு","{amount} more":"{amount} மேலும்","1 comment":"1 கருத்து","Add comment":"கருத்தைச் சேர்க்கவும்","Add context to your comment, share your name and expertise to foster a healthy discussion.":"உங்கள் கருத்துக்கு சூழலைச் சேர்க்கவும், ஆரோக்கியமான விவாதத்தை வளர்க்க உங்கள் பெயரையும் நிபுணத்துவத்தையும் பகிர்ந்து கொள்ளுங்கள்.","Add reply":"பதில் சேர்க்கவும்","Add your expertise":"","Already a member?":"ஏற்கனவே உறுப்பினரா?",Anonymous:"அடையாளம் தெரியாத","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"கருத்துத் தெரிவிக்க {publication} இல் உறுப்பினராகுங்கள்.","Become a paid member of {publication} to start commenting.":"கருத்துத் தெரிவிக்க {publication} இல் கட்டண உறுப்பினராகுங்கள்.",Best:"",Cancel:"ரத்து செய்",Comment:"கருத்து","Commenting disabled":"","Complete your profile":"உங்கள் சுயவிவரத்தை பூர்த்தி செய்யவும்",Delete:"நீக்கவும்",Deleted:"","Deleted member":"நீக்கப்பட்ட உறுப்பினர்",Deleting:"",Discussion:"கலந்துரையாடல்",Dislike:"",Edit:"திருத்தவும்","Edit this comment":"இந்தக் கருத்தைத் திருத்தவும்",edited:"திருத்தப்பட்டது","Enter your name":"உங்கள் பெயரை உள்ளிடுக",Expertise:"நிபுணத்துவம்","Founder @ Acme Inc":"நிறுவனர் @ Acme Inc","Full-time parent":"முழுநேர பெற்றோர்","Head of Marketing at Acme, Inc":"Acme Inc நிறுவனத்தின் சந்தைப்படுத்தல் தலைவர்","Hidden for members":"","Hide comment":"கருத்தை மறை","Jamie Larson":"ஜேமி லார்சன்","Join the discussion":"கலந்துரையாடலில் சேரவும்","Just now":"சற்றுமுன்னர்தான்",Like:"","Load more ({amount})":"","Local resident":"உள்ளூர்வாசி","Member discussion":"உறுப்பினர் கருத்து",Name:"பெயர்",Neurosurgeon:"நரம்பியல் அறுவை சிகிச்சை நிபுணர்",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"ஒரு மணி முன்பு","One min ago":"ஒரு நிமிடம் முன்பு","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"","Replied to":"",Reply:"பதிலளிக்கவும்","Reply to":"","Reply to comment":"கருத்துக்கு பதிலளிக்கவும்",Report:"புகாரளி","Report comment":"கருத்தைப் புகாரளி","Report this comment?":"இந்தக் கருத்தைப் புகாரளிக்கவா?",Save:"சேமிக்க","See full discussion":"",Sending:"அனுப்புகிறது",Sent:"அனுப்பப்பட்டது","Show {amount} more replies":"முந்தைய {amount} மேலும் பதில்கள்க் காட்டு","Show 1 more reply":"மேலும் 1 பதிலைக் காட்டு","Show comment":"கருத்தைக் காட்டு","Sign in":"உள்நுழைக","Sign up now":"இப்பொழுதே பதிவு செய்யுங்கள்","Sort by":"","Start the conversation":"உரையாடலைத் தொடங்குங்கள்","The linked comment is no longer available.":"","This comment has been hidden.":"இந்தக் கருத்து மறைக்கப்பட்டது.","This comment has been removed.":"இந்தக் கருத்து நீக்கப்பட்டது.",Unpin:"","Unpin comment":"","Upgrade now":"இப்போதே மேம்படுத்தவும்","View in admin":"",Yesterday:"நேற்று","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"உங்கள் கோரிக்கை இந்த தளத்தின் உரிமையாளருக்கு அனுப்பப்படும்."},KN={"{amount} characters left":"คงเหลือ {amount} ตัวอักษร","{amount} comments":"{amount} ความคิดเห็น","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"อีก {amount}","1 comment":"1 ความคิดเห็น","Add comment":"แสดงความคิดเห็น","Add context to your comment, share your name and expertise to foster a healthy discussion.":"เพิ่มข้อมูลเสริมในความคิดเห็นของคุณ แชร์ชื่อและความเชี่ยวชาญเพื่อสนับสนุนการพูดคุยที่ดี","Add reply":"ตอบกลับ","Add your expertise":"","Already a member?":"เป็นสมาชิกอยู่แล้ว?",Anonymous:"ไม่ระบุชื่อ","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"เป็นสมาชิกของ {publication} เพื่อเริ่มแสดงความคิดเห็น","Become a paid member of {publication} to start commenting.":"เป็นสมาชิกแบบชำระเงินของ {publication} เพื่อเริ่มแสดงความคิดเห็น",Best:"",Cancel:"ยกเลิก",Comment:"ความคิดเห็น","Commenting disabled":"","Complete your profile":"กรอกโปรไฟล์ของคุณให้สมบูรณ์",Delete:"ลบ",Deleted:"","Deleted member":"ผู้ใช้ที่ถูกลบ",Deleting:"",Discussion:"การสนทนา",Dislike:"",Edit:"แก้ไข","Edit this comment":"แก้ไขความคิดเห็นนี้",edited:"","Enter your name":"ระบุชื่อของคุณ",Expertise:"ความเชี่ยวชาญ","Founder @ Acme Inc":"ผู้ก่อตั้ง @ Acme Inc","Full-time parent":"ผู้ปกครองเต็มเวลา","Head of Marketing at Acme, Inc":"หัวหน้าฝ่ายการตลาด ณ Acme, Inc","Hidden for members":"","Hide comment":"ซ่อนข้อความ","Jamie Larson":"กนกพัฒน์ สัณห์ฤทัย","Join the discussion":"เข้าร่วมการสนทนา","Just now":"ตอนนี้",Like:"","Load more ({amount})":"","Local resident":"ผู้อยู่อาศัยในท้องถิ่น","Member discussion":"การสนทนาของสมาชิก",Name:"ชื่อ",Neurosurgeon:"ศัลยแพทย์ระบบประสาท",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"1 ชั่วโมงที่แล้ว","One min ago":"","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"","Replied to":"",Reply:"ตอบกลับ","Reply to":"","Reply to comment":"ตอบกลับความคิดเห็น",Report:"รายงาน","Report comment":"รายงานความคิดเห็น","Report this comment?":"รายงานความคิดเห็นนี้?",Save:"บันทึก","See full discussion":"",Sending:"กำลังส่ง",Sent:"ส่งแล้ว","Show {amount} more replies":"แสดง {amount} การตอบกลับเพิ่มเติม","Show 1 more reply":"แสดงอีก 1 การตอบกลับ","Show comment":"ดูความคิดเห็น","Sign in":"ลงชื่อเข้าใช้","Sign up now":"สมัครใช้งานตอนนี้เลย","Sort by":"","Start the conversation":"เริ่มการสนทนา","The linked comment is no longer available.":"","This comment has been hidden.":"ความคิดเห็นนี้ถูกซ่อน","This comment has been removed.":"ความคิดเห็นนี้ถูกลบ",Unpin:"","Unpin comment":"","Upgrade now":"อัพเกรดตอนนี้เลย","View in admin":"",Yesterday:"เมื่อวาน","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"คำขอของคุณจะถูกส่งไปยังผู้ดูแลเว็บไซต์"},WN={"{amount} characters left":"{amount} karakter kaldı","{amount} comments":"{amount} yorum","{amount} hrs ago":"{amount} saat önce","{amount} mins ago":"{amount} dakika önce","{amount} more":"Daha fazla {amount}","1 comment":"1 yorum","Add comment":"Yorum ekle","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Yorumunuza bağlam ekleyin, adınızı ve uzmanlık alanınızı paylaşarak sağlıklı bir tartışmayı teşvik edin.","Add reply":"Yanıt ekle","Add your expertise":"Uzmanlığınızı ekleyin","Already a member?":"Zaten üye misiniz?",Anonymous:"Anonim","Are you sure?":"Emin misin?",Back:"Geri","Become a member of {publication} to start commenting.":"Yorum yapmaya başlamak için {publication} sitesinde hesap oluşturun.","Become a paid member of {publication} to start commenting.":"Yorum yapmaya başlamak için {publication} sitesinde ücretli hesap oluşturun.",Best:"En iyi",Cancel:"İptal et",Comment:"Yorum ekle","Commenting disabled":"Yorumlar kapalı","Complete your profile":"Profilinizi tamamlayın",Delete:"Sil",Deleted:"Silindi","Deleted member":"Silinen üye",Deleting:"Siliniyor",Discussion:"Yorumlar",Dislike:"",Edit:"Düzenle","Edit this comment":"Bu yorumu düzenle",edited:"düzenlendi","Enter your name":"Adınızı girin",Expertise:"Uzmanlık","Founder @ Acme Inc":"Kurucu @ Firma Ünvan","Full-time parent":"Tam zamanlı ebeveyn","Head of Marketing at Acme, Inc":"Firma, Ünvan'da Pazarlama Müdürü","Hidden for members":"Üyeler için gizli","Hide comment":"Yorumu gizle","Jamie Larson":"Ahmet Yılmaz","Join the discussion":"Tartışmaya katıl","Just now":"Şu anda",Like:"","Load more ({amount})":"Daha fazla yükle ({amount})","Local resident":"Yerel sakini","Member discussion":"Üye tartışması",Name:"Ad",Neurosurgeon:"Beyin cerrahı",Newest:"En yeni",Oldest:"En eski","Once deleted, this comment can’t be recovered.":"Bu yorum silindikten sonra kurtarılamaz.","One hour ago":"Bir saat önce","One min ago":"Bir dakika önce","Pin comment":"Yorumu sabitle",Pinned:"Sabitlendi","Read more replies":"Daha fazla cevap oku","Remove dislike":"","Remove like":"",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","See full discussion":"Bütün tartışmayı gör",Sending:"Gönderiliyor",Sent:"Gönderildi","Show {amount} more replies":"{amount} daha fazla yanıt göster","Show 1 more reply":"1 cevap daha göster","Show comment":"Yorumu göster","Sign in":"Giriş yap","Sign up now":"Şimdi kayıt ol","Sort by":"Sırala","Start the conversation":"Bu konu hakkında düşüncelerini paylaş","The linked comment is no longer available.":"Bağlantılı yorum artık yok.","This comment has been hidden.":"Bu yorum gizlendi.","This comment has been removed.":"Bu yorum kaldırıldı.",Unpin:"Sabitlemeyi kaldır","Unpin comment":"Yorumun sabitlemesini kaldır","Upgrade now":"Şimdi yükselt","View in admin":"Yönetici olarak gör",Yesterday:"Dün","You can't post comments in this publication.":"Bu yayına yorum gönderemezsiniz.","You can't post comments in this publication. <a>Contact support</a> for more information.":"Bu yayına yorum gönderemezsiniz. Daha fazla bilgi için <a>desteğe başvurun</a>.","Your request will be sent to the owner of this site.":"Talebiniz bu sitenin sahibine gönderilecektir."},qN={"{amount} characters left":"{amount} символів залишилось","{amount} comments":"{amount} коментарів","{amount} hrs ago":"{amount} годин тому","{amount} mins ago":"{amount} хвилин тому","{amount} more":"ще {amount}","1 comment":"1 коментар","Add comment":"Додати коментар","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Додайте контекст до свого коментаря, поділіться своїм іменем і досвідом, щоб сприяти здоровій дискусії.","Add reply":"Додати відповідь","Add your expertise":"","Already a member?":"Ви є учасником?",Anonymous:"Анонім","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"Станьте учасником {publication} щоб почати коментувати.","Become a paid member of {publication} to start commenting.":"Станьте платним учасником {publication} щоб почати коментувати.",Best:"",Cancel:"Відмінити",Comment:"Коментувати","Commenting disabled":"","Complete your profile":"Заповніть свій профіль",Delete:"Видалити",Deleted:"","Deleted member":"Видалений учасник",Deleting:"",Discussion:"Обговорення",Dislike:"",Edit:"Редагувати","Edit this comment":"Редагувати цей коментар",edited:"Відредагований","Enter your name":"Введіть своє імʼя",Expertise:"Експертність","Founder @ Acme Inc":"Засновник @ Acme Inc","Full-time parent":"Виховую дітей","Head of Marketing at Acme, Inc":"Голова продажів в Acme, Inc","Hidden for members":"","Hide comment":"Сховати коментар","Jamie Larson":"Ваше імʼя","Join the discussion":"Долучитися до обговорення","Just now":"Прямо зараз",Like:"","Load more ({amount})":"","Local resident":"Місцевий експерт","Member discussion":"Обговорення учасників",Name:"Імʼя",Neurosurgeon:"Нейрохірург",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"Одну годину тому","One min ago":"Одну хвилину тому","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"","Replied to":"",Reply:"Відповісти","Reply to":"","Reply to comment":"Відповісти на коментар",Report:"Поскаржитися","Report comment":"Поскаржитися на коментар","Report this comment?":"Поскаржитися на цей коментар?",Save:"Зберегти","See full discussion":"",Sending:"Відправка",Sent:"Відправлено","Show {amount} more replies":"Показати ще {amount} відповідей","Show 1 more reply":"Показати ще одну відповідь","Show comment":"Показати коментар","Sign in":"Увійти","Sign up now":"Зареєструватись зараз","Sort by":"","Start the conversation":"Почніть розмову","The linked comment is no longer available.":"","This comment has been hidden.":"Цей коментар було приховано.","This comment has been removed.":"Цей коментар було видалено.",Unpin:"","Unpin comment":"","Upgrade now":"Оновити зараз","View in admin":"",Yesterday:"Вчора","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"Ваш запит буде надіслано власнику цього сайту."},GN={"{amount} characters left":"{amount} حروف باقی ہیں","{amount} comments":"{amount} تبادلے","{amount} hrs ago":"","{amount} mins ago":"","{amount} more":"","1 comment":"1 تبادلہ","Add comment":"تبادلہ شامل کریں","Add context to your comment, share your name and expertise to foster a healthy discussion.":"اپنے تبادلے میں سیاق و سباق شامل کریں، اچھی گفتگو کو بڑھانے کے لئے اپنا نام اور ماہریت شیئر کریں۔","Add reply":"جواب شامل کریں","Add your expertise":"","Already a member?":"پہلے ہی رکن ہیں؟",Anonymous:"ناشناس","Are you sure?":"",Back:"","Become a member of {publication} to start commenting.":"تبادلہ شروع کرنے کے لئے {publication} کا رکن بنیں۔","Become a paid member of {publication} to start commenting.":"تبادلہ شروع کرنے کے لئے {publication} کا ادائیگی رکن بنیں۔",Best:"",Cancel:"منسوخ کریں",Comment:"تبادلہ","Commenting disabled":"","Complete your profile":"اپنا پروفائل مکمل کریں",Delete:"حذف کریں",Deleted:"","Deleted member":"حذف شدہ رکن",Deleting:"",Discussion:"تبادلہ",Dislike:"",Edit:"ترتیب دیں","Edit this comment":"اس تبادلے کو ترتیب دیں",edited:"","Enter your name":"اپنا نام درج کریں",Expertise:"اہلیت","Founder @ Acme Inc":"ناظم @ Acme Inc","Full-time parent":"پورے وقت کا والد یا والدہ","Head of Marketing at Acme, Inc":"Acme، Inc کے مارکیٹنگ کا سربراہ","Hidden for members":"","Hide comment":"تبادلہ چھپائیں","Jamie Larson":"جیمی لارسن","Join the discussion":"تبادلے میں شامل ہوں","Just now":"ابھی",Like:"","Load more ({amount})":"","Local resident":"مقامی رہائشی","Member discussion":"رکن کا تبادلہ",Name:"نام",Neurosurgeon:"نیوروسرجن",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"ایک گھنٹہ پہلے","One min ago":"","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"","Replied to":"",Reply:"جواب","Reply to":"","Reply to comment":"تبادلے کا جواب دیں",Report:"رپورٹ","Report comment":"تبادلے کی رپورٹ","Report this comment?":"کیا آپ اس تبادلے کو رپورٹ کرنا چاہتے ہیں؟",Save:"محفوظ کریں","See full discussion":"",Sending:"بھیج رہا ہے",Sent:"بھیجا گیا","Show {amount} more replies":"{amount} مزید جوابات دکھائیں","Show 1 more reply":"1 مزید جواب دکھائیں","Show comment":"تبادلہ دکھائیں","Sign in":"سائن ان کریں","Sign up now":"ابھی رجسٹر ہوں","Sort by":"","Start the conversation":"بات چیت شروع کریں","The linked comment is no longer available.":"","This comment has been hidden.":"یہ تبادلہ چھپا گیا ہے۔","This comment has been removed.":"یہ تبادلہ ہٹا دیا گیا ہے۔",Unpin:"","Unpin comment":"","Upgrade now":"اب اپ گریڈ کریں","View in admin":"",Yesterday:"کل","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":"آپ کا درخواست اس سائٹ کے مالک کو بھیجا جائے گا۔"},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?":"",Back:"","Become a member of {publication} to start commenting.":"","Become a paid member of {publication} to start commenting.":"",Best:"",Cancel:"",Comment:"","Commenting disabled":"","Complete your profile":"",Delete:"",Deleted:"","Deleted member":"",Deleting:"",Discussion:"",Dislike:"",Edit:"","Edit this comment":"",edited:"","Enter your name":"",Expertise:"","Founder @ Acme Inc":"","Full-time parent":"","Head of Marketing at Acme, Inc":"","Hidden for members":"","Hide comment":"","Jamie Larson":"","Join the discussion":"","Just now":"",Like:"","Load more ({amount})":"","Local resident":"","Member discussion":"",Name:"",Neurosurgeon:"",Newest:"",Oldest:"","Once deleted, this comment can’t be recovered.":"","One hour ago":"","One min ago":"","Pin comment":"",Pinned:"","Read more replies":"","Remove dislike":"","Remove like":"",removed:"","Replied to":"",Reply:"","Reply to":"","Reply to comment":"",Report:"","Report comment":"","Report this comment?":"",Save:"","See full discussion":"",Sending:"",Sent:"","Show {amount} more replies":"","Show 1 more reply":"","Show comment":"","Sign in":"","Sign up now":"","Sort by":"","Start the conversation":"","The linked comment is no longer available.":"","This comment has been hidden.":"","This comment has been removed.":"",Unpin:"","Unpin comment":"","Upgrade now":"","View in admin":"",Yesterday:"","You can't post comments in this publication.":"","You can't post comments in this publication. <a>Contact support</a> for more information.":"","Your request will be sent to the owner of this site.":""},XN={"{amount} characters left":"{amount} ký tự còn lại","{amount} comments":"{amount} bình luận","{amount} hrs ago":"{amount} giờ trước","{amount} mins ago":"{amount} phút trước","{amount} more":"{amount} nữa","1 comment":"1 bình luận","Add comment":"Thêm bình luận","Add context to your comment, share your name and expertise to foster a healthy discussion.":"Thêm ngữ cảnh, tên và chuyên môn của bạn để thúc đẩy cuộc thảo luận lành mạnh.","Add reply":"Trả lời","Add your expertise":"Thêm chuyên môn của bạn","Already a member?":"Đã là thành viên?",Anonymous:"Ẩn danh","Are you sure?":"Bạn có chắc không?",Back:"Quay lại","Become a member of {publication} to start commenting.":"Trở thành thành viên của {publication} để có thể bình luận.","Become a paid member of {publication} to start commenting.":"Trở thành thành viên trả phí của {publication} để có thể bình luận.",Best:"Hay nhất",Cancel:"Hủy",Comment:"Bình luận","Commenting disabled":"Bình luận đã bị tắt","Complete your profile":"Hoàn tất hồ sơ của bạn",Delete:"Xóa",Deleted:"Đã xóa","Deleted member":"Thành viên đã xóa",Deleting:"Đang xóa",Discussion:"Thảo luận",Dislike:"Không thích",Edit:"Sửa","Edit this comment":"Sửa bình luận này",edited:"đã sửa","Enter your name":"Nhập tên của bạn",Expertise:"Chuyên môn","Founder @ Acme Inc":"Nhà sáng lập @ Acme Inc","Full-time parent":"Phụ huynh toàn thời gian","Head of Marketing at Acme, Inc":"Trưởng phòng Marketing tại Acme, Inc","Hidden for members":"Ẩn với thành viên","Hide comment":"Ẩn bình luận","Jamie Larson":"Nguyễn Minh Anh","Join the discussion":"Tham gia thảo luận","Just now":"Vừa xong",Like:"Thích","Load more ({amount})":"Hiện thêm ({amount})","Local resident":"Cư dân địa phương","Member discussion":"Thảo luận của thành viên",Name:"Tên",Neurosurgeon:"Bác sĩ phẫu thuật thần kinh",Newest:"Mới nhất",Oldest:"Cũ nhất","Once deleted, this comment can’t be recovered.":"Một khi đã xóa, bình luận này không thể khôi phục.","One hour ago":"Một giờ trước","One min ago":"Một phút trước","Pin comment":"Ghim bình luận",Pinned:"Đã ghim","Read more replies":"Đọc thêm trả lời","Remove dislike":"Bỏ không thích","Remove like":"Bỏ thích",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","See full discussion":"Xem tất cả thảo luận",Sending:"Đang gửi",Sent:"Đã gửi","Show {amount} more replies":"Xem thêm {amount} trả lời khác","Show 1 more reply":"Xem thêm 1 trả lời","Show comment":"Xem bình luận","Sign in":"Đăng nhập","Sign up now":"Đăng ký ngay","Sort by":"Xếp theo","Start the conversation":"Bắt đầu cuộc trò chuyện","The linked comment is no longer available.":"Liên kết bình luận này không còn nữa.","This comment has been hidden.":"Bình luận này đã bị ẩn.","This comment has been removed.":"Bình luận này đã bị xóa.",Unpin:"Bỏ ghim","Unpin comment":"Bỏ ghim bình luận","Upgrade now":"Nâng cấp","View in admin":"Xem trong dashboard",Yesterday:"Hôm qua","You can't post comments in this publication.":"Bạn không thể bình luận trên trang web này.","You can't post comments in this publication. <a>Contact support</a> for more information.":"Bạn không thể bình luận trên trang web này. <a>Liên hệ hỗ trợ</a> để biết thêm chi tiết.","Your request will be sent to the owner of this site.":"Yêu cầu của bạn sẽ được gửi đến chủ sở hữu trang web này."},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?":"您確定嗎?",Back:"返回","Become a member of {publication} to start commenting.":"成為{publication}的會員以開始留言。","Become a paid member of {publication} to start commenting.":"成為{publication}的付費會員以開始留言。",Best:"最多讚",Cancel:"取消",Comment:"留言","Commenting disabled":"未開放留言","Complete your profile":"完成您的註冊資訊",Delete:"刪除",Deleted:"已刪除","Deleted member":"刪除會員",Deleting:"刪除中",Discussion:"討論",Dislike:"點踩",Edit:"編輯","Edit this comment":"編輯此則留言",edited:"已編輯","Enter your name":"輸入您的稱呼",Expertise:"專業背景","Founder @ Acme Inc":"Acme Inc的創辦人","Full-time parent":"全職父母","Head of Marketing at Acme, Inc":"Acme, Inc市場部負責人","Hidden for members":"對會員隱藏","Hide comment":"隱藏留言","Jamie Larson":"阿宇","Join the discussion":"加入討論","Just now":"剛剛",Like:"點讚","Load more ({amount})":"載入更多({amount})","Local resident":"本地居民","Member discussion":"會員討論",Name:"稱呼",Neurosurgeon:"神經外科醫生",Newest:"最新",Oldest:"最早","Once deleted, this comment can’t be recovered.":"此留言一經刪除後將無法復原。","One hour ago":"一小時前","One min ago":"一分鐘前","Pin comment":"置頂留言",Pinned:"已置頂","Read more replies":"閱讀更多回覆","Remove dislike":"取消點踩","Remove like":"取消點讚",removed:"已移除","Replied to":"已回覆",Reply:"回覆","Reply to":"回覆","Reply to comment":"回覆留言",Report:"檢舉","Report comment":"檢舉留言","Report this comment?":"檢舉此留言?",Save:"儲存","See full discussion":"查看完整討論",Sending:"正在發送",Sent:"已發送","Show {amount} more replies":"顯示後續 {amount} 則留言","Show 1 more reply":"顯示下一則留言","Show comment":"顯示留言","Sign in":"登入","Sign up now":"立即註冊","Sort by":"排序方式","Start the conversation":"開始對話","The linked comment is no longer available.":"連結的留言已不存在。","This comment has been hidden.":"該則留言已被隱藏。","This comment has been removed.":"該則留言已被移除。",Unpin:"取消置頂","Unpin comment":"取消置頂留言","Upgrade now":"立即升級","View in admin":"從管理後台檢視",Yesterday:"昨天","You can't post comments in this publication.":"您無法在此刊物留言。","You can't post comments in this publication. <a>Contact support</a> for more information.":"您無法在此刊物留言。<a>聯繫客服</a> 以取得更多資訊。","Your request will be sent to the owner of this site.":"您的請求將被發送給網站所有者。"},eD={"{amount} characters left":"还剩{amount}字","{amount} comments":"{amount}条评论","{amount} hrs ago":"{amount}小时前","{amount} mins ago":"{amount}分钟前","{amount} more":"还剩{amount}条评论","1 comment":"一条评论","Add comment":"添加评论","Add context to your comment, share your name and expertise to foster a healthy discussion.":"为评论补充更多的上下文信息、例如您的姓名与专业背景有助于营造健康的讨论氛围。","Add reply":"回复","Add your expertise":"添加您的专业背景","Already a member?":"已经是会员?",Anonymous:"匿名","Are you sure?":"确认?",Back:"返回","Become a member of {publication} to start commenting.":"成为{publication}的会员以开始评论。","Become a paid member of {publication} to start commenting.":"成为{publication}的付费会员以开始评论。",Best:"最多赞",Cancel:"取消",Comment:"评论","Commenting disabled":"评论功能已禁用","Complete your profile":"完善您的个人资料",Delete:"删除",Deleted:"已删除","Deleted member":"删除会员",Deleting:"删除中",Discussion:"讨论",Dislike:"点踩",Edit:"编辑","Edit this comment":"编辑此条评论",edited:"已编辑","Enter your name":"输入您的名字",Expertise:"专业背景","Founder @ Acme Inc":"Acme Inc的创建者","Full-time parent":"全职父母","Head of Marketing at Acme, Inc":"Acme, Inc市场部负责人","Hidden for members":"对会员隐藏","Hide comment":"隐藏评论","Jamie Larson":"阿宇","Join the discussion":"加入讨论","Just now":"刚刚",Like:"点赞","Load more ({amount})":"加载更多({amount})条","Local resident":"本地居民","Member discussion":"会员讨论",Name:"名字",Neurosurgeon:"神经外科医生",Newest:"最新",Oldest:"最早","Once deleted, this comment can’t be recovered.":"此评论一经删除后将无法复原。","One hour ago":"一小时前","One min ago":"一分钟前","Pin comment":"置顶评论",Pinned:"已置顶","Read more replies":"阅读更多回复","Remove dislike":"取消点踩","Remove like":"取消点赞",removed:"已移除","Replied to":"已回复",Reply:"回复","Reply to":"回复","Reply to comment":"回复评论",Report:"举报","Report comment":"举报评论","Report this comment?":"举报此评论?",Save:"保存","See full discussion":"查看完整讨论",Sending:"正在发送",Sent:"已发送","Show {amount} more replies":"显示更多{amount}条评论","Show 1 more reply":"显示下一条评论","Show comment":"显示评论","Sign in":"登录","Sign up now":"立刻注册","Sort by":"排序方式","Start the conversation":"开始对话","The linked comment is no longer available.":"链接的评论已不存在。","This comment has been hidden.":"该条评论已被隐藏。","This comment has been removed.":"该条评论已被移除。",Unpin:"取消置顶","Unpin comment":"取消置顶评论","Upgrade now":"立刻升级","View in admin":"在后台查看",Yesterday:"昨天","You can't post comments in this publication.":"您无法在此刊物发表评论。","You can't post comments in this publication. <a>Contact support</a> for more information.":"您无法在此刊物发表评论。如需更多信息,请<a>联系客服</a>。","Your request will be sent to the owner of this site.":"您的请求将被发送给站点所有者。"},me=n=>typeof n=="string",li=()=>{let n,e;const t=new Promise((o,r)=>{n=o,e=r});return t.resolve=n,t.reject=e,t},Ny=n=>n==null?"":""+n,tD=(n,e,t)=>{n.forEach(o=>{e[o]&&(t[o]=e[o])})},nD=/###/g,Dy=n=>n&&n.indexOf("###")>-1?n.replace(nD,"."):n,Ry=n=>!n||me(n),ci=(n,e,t)=>{const o=me(e)?e.split("."):e;let r=0;for(;r<o.length-1;){if(Ry(n))return{};const i=Dy(o[r]);!n[i]&&t&&(n[i]=new t),Object.prototype.hasOwnProperty.call(n,i)?n=n[i]:n={},++r}return Ry(n)?{}:{obj:n,k:Dy(o[r])}},Ay=(n,e,t)=>{const{obj:o,k:r}=ci(n,e,Object);if(o!==void 0||e.length===1){o[r]=t;return}let i=e[e.length-1],a=e.slice(0,e.length-1),c=ci(n,a,Object);for(;c.obj===void 0&&a.length;)i=`${a[a.length-1]}.${i}`,a=a.slice(0,a.length-1),c=ci(n,a,Object),c&&c.obj&&typeof c.obj[`${c.k}.${i}`]<"u"&&(c.obj=void 0);c.obj[`${c.k}.${i}`]=t},oD=(n,e,t,o)=>{const{obj:r,k:i}=ci(n,e,Object);r[i]=r[i]||[],r[i].push(t)},Ta=(n,e)=>{const{obj:t,k:o}=ci(n,e);if(t)return t[o]},rD=(n,e,t)=>{const o=Ta(n,t);return o!==void 0?o:Ta(e,t)},Oy=(n,e,t)=>{for(const o in e)o!=="__proto__"&&o!=="constructor"&&(o in n?me(n[o])||n[o]instanceof String||me(e[o])||e[o]instanceof String?t&&(n[o]=e[o]):Oy(n[o],e[o],t):n[o]=e[o]);return n},Ko=n=>n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var iD={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const sD=n=>me(n)?n.replace(/[&<>"'\/]/g,e=>iD[e]):n;class aD{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(t!==void 0)return t;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 lD=[" ",",","?","!",";"],cD=new aD(20),uD=(n,e,t)=>{e=e||"",t=t||"";const o=lD.filter(a=>e.indexOf(a)<0&&t.indexOf(a)<0);if(o.length===0)return!0;const r=cD.getRegExp(`(${o.map(a=>a==="?"?"\\?":a).join("|")})`);let i=!r.test(n);if(!i){const a=n.indexOf(t);a>0&&!r.test(n.substring(0,a))&&(i=!0)}return i},Xu=function(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!n)return;if(n[e])return n[e];const o=e.split(t);let r=n;for(let i=0;i<o.length;){if(!r||typeof r!="object")return;let a,c="";for(let d=i;d<o.length;++d)if(d!==i&&(c+=t),c+=o[d],a=r[c],a!==void 0){if(["string","number","boolean"].indexOf(typeof a)>-1&&d<o.length-1)continue;i+=d-i+1;break}r=a}return r},Pa=n=>n&&n.replace("_","-"),dD={type:"logger",log(n){this.output("log",n)},warn(n){this.output("warn",n)},error(n){this.output("error",n)},output(n,e){console&&console[n]&&console[n].apply(console,e)}};class Ma{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||dD,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,o,r){return r&&!this.debug?null:(me(e[0])&&(e[0]=`${o}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Ma(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new Ma(this.logger,e)}}var Kt=new Ma;class La{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(o=>{this.observers[o]||(this.observers[o]=new Map);const r=this.observers[o].get(t)||0;this.observers[o].set(t,r+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(a=>{let[c,d]=a;for(let m=0;m<d;m++)c(...o)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(a=>{let[c,d]=a;for(let m=0;m<d;m++)c.apply(c,[e,...o])})}}class Ty extends La{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,a=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let c;e.indexOf(".")>-1?c=e.split("."):(c=[e,t],o&&(Array.isArray(o)?c.push(...o):me(o)&&i?c.push(...o.split(i)):c.push(o)));const d=Ta(this.data,c);return!d&&!t&&!o&&e.indexOf(".")>-1&&(e=c[0],t=c[1],o=c.slice(2).join(".")),d||!a||!me(o)?d:Xu(this.data&&this.data[e]&&this.data[e][t],o,i)}addResource(e,t,o,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let c=[e,t];o&&(c=c.concat(a?o.split(a):o)),e.indexOf(".")>-1&&(c=e.split("."),r=t,t=c[1]),this.addNamespaces(t),Ay(this.data,c,r),i.silent||this.emit("added",e,t,o,r)}addResources(e,t,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in o)(me(o[i])||Array.isArray(o[i]))&&this.addResource(e,t,i,o[i],{silent:!0});r.silent||this.emit("added",e,t,o)}addResourceBundle(e,t,o,r,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},c=[e,t];e.indexOf(".")>-1&&(c=e.split("."),r=o,o=t,t=c[1]),this.addNamespaces(t);let d=Ta(this.data,c)||{};a.skipCopy||(o=JSON.parse(JSON.stringify(o))),r?Oy(d,o,i):d={...d,...o},Ay(this.data,c,d),a.silent||this.emit("added",e,t,o)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(r=>t[r]&&Object.keys(t[r]).length>0)}toJSON(){return this.data}}var Py={processors:{},addPostProcessor(n){this.processors[n.name]=n},handle(n,e,t,o,r){return n.forEach(i=>{this.processors[i]&&(e=this.processors[i].process(e,t,o,r))}),e}};const My={};class ja extends La{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),tD(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Kt.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;const o=this.resolve(e,t);return o&&o.res!==void 0}extractFromKey(e,t){let o=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");const r=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const a=o&&e.indexOf(o)>-1,c=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!uD(e,o,r);if(a&&!c){const d=e.match(this.interpolator.nestingRegexp);if(d&&d.length>0)return{key:e,namespaces:me(i)?[i]:i};const m=e.split(o);(o!==r||o===r&&this.options.ns.indexOf(m[0])>-1)&&(i=m.shift()),e=m.join(r)}return{key:e,namespaces:me(i)?[i]:i}}translate(e,t,o){if(typeof t!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),typeof t=="object"&&(t={...t}),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);const r=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,i=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,{key:a,namespaces:c}=this.extractFromKey(e[e.length-1],t),d=c[c.length-1],m=t.lng||this.language,p=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m&&m.toLowerCase()==="cimode"){if(p){const j=t.nsSeparator||this.options.nsSeparator;return r?{res:`${d}${j}${a}`,usedKey:a,exactUsedKey:a,usedLng:m,usedNS:d,usedParams:this.getUsedParamsDetails(t)}:`${d}${j}${a}`}return r?{res:a,usedKey:a,exactUsedKey:a,usedLng:m,usedNS:d,usedParams:this.getUsedParamsDetails(t)}:a}const h=this.resolve(e,t);let g=h&&h.res;const k=h&&h.usedKey||a,b=h&&h.exactUsedKey||a,$=Object.prototype.toString.apply(g),S=["[object Number]","[object Function]","[object RegExp]"],N=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,P=!this.i18nFormat||this.i18nFormat.handleAsObject,L=!me(g)&&typeof g!="boolean"&&typeof g!="number";if(P&&g&&L&&S.indexOf($)<0&&!(me(N)&&Array.isArray(g))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const j=this.options.returnedObjectHandler?this.options.returnedObjectHandler(k,g,{...t,ns:c}):`key '${a} (${this.language})' returned an object instead of string.`;return r?(h.res=j,h.usedParams=this.getUsedParamsDetails(t),h):j}if(i){const j=Array.isArray(g),Y=j?[]:{},U=j?b:k;for(const I in g)if(Object.prototype.hasOwnProperty.call(g,I)){const K=`${U}${i}${I}`;Y[I]=this.translate(K,{...t,joinArrays:!1,ns:c}),Y[I]===K&&(Y[I]=g[I])}g=Y}}else if(P&&me(N)&&Array.isArray(g))g=g.join(N),g&&(g=this.extendTranslation(g,e,t,o));else{let j=!1,Y=!1;const U=t.count!==void 0&&!me(t.count),I=ja.hasDefaultValue(t),K=U?this.pluralResolver.getSuffix(m,t.count,t):"",X=t.ordinal&&U?this.pluralResolver.getSuffix(m,t.count,{ordinal:!1}):"",ie=U&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),Ne=ie&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${K}`]||t[`defaultValue${X}`]||t.defaultValue;!this.isValidLookup(g)&&I&&(j=!0,g=Ne),this.isValidLookup(g)||(Y=!0,g=a);const $e=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Y?void 0:g,Re=I&&Ne!==g&&this.options.updateMissing;if(Y||j||Re){if(this.logger.log(Re?"updateKey":"missingKey",m,d,a,Re?Ne:g),i){const _=this.resolve(a,{...t,keySeparator:!1});_&&_.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 xe=[];const Ae=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ae&&Ae[0])for(let _=0;_<Ae.length;_++)xe.push(Ae[_]);else this.options.saveMissingTo==="all"?xe=this.languageUtils.toResolveHierarchy(t.lng||this.language):xe.push(t.lng||this.language);const T=(_,se,ve)=>{const z=I&&ve!==g?ve:$e;this.options.missingKeyHandler?this.options.missingKeyHandler(_,d,se,z,Re,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(_,d,se,z,Re,t),this.emit("missingKey",_,d,se,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&U?xe.forEach(_=>{const se=this.pluralResolver.getSuffixes(_,t);ie&&t[`defaultValue${this.options.pluralSeparator}zero`]&&se.indexOf(`${this.options.pluralSeparator}zero`)<0&&se.push(`${this.options.pluralSeparator}zero`),se.forEach(ve=>{T([_],a+ve,t[`defaultValue${ve}`]||Ne)})}):T(xe,a,Ne))}g=this.extendTranslation(g,e,t,h,o),Y&&g===a&&this.options.appendNamespaceToMissingKey&&(g=`${d}:${a}`),(Y||j)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?g=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${d}:${a}`:a,j?g:void 0):g=this.options.parseMissingKeyHandler(g))}return r?(h.res=g,h.usedParams=this.getUsedParamsDetails(t),h):g}extendTranslation(e,t,o,r,i){var a=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 m=me(e)&&(o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let p;if(m){const g=e.match(this.interpolator.nestingRegexp);p=g&&g.length}let h=o.replace&&!me(o.replace)?o.replace:o;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),e=this.interpolator.interpolate(e,h,o.lng||this.language||r.usedLng,o),m){const g=e.match(this.interpolator.nestingRegexp),k=g&&g.length;p<k&&(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 g=arguments.length,k=new Array(g),b=0;b<g;b++)k[b]=arguments[b];return i&&i[0]===k[0]&&!o.context?(a.logger.warn(`It seems you are nesting recursively key: ${k[0]} in key: ${t[0]}`),null):a.translate(...k,t)},o)),o.interpolation&&this.interpolator.reset()}const c=o.postProcess||this.options.postProcess,d=me(c)?[c]:c;return e!=null&&d&&d.length&&o.applyPostProcessor!==!1&&(e=Py.handle(d,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(o)},...o}:o,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o,r,i,a,c;return me(e)&&(e=[e]),e.forEach(d=>{if(this.isValidLookup(o))return;const m=this.extractFromKey(d,t),p=m.key;r=p;let h=m.namespaces;this.options.fallbackNS&&(h=h.concat(this.options.fallbackNS));const g=t.count!==void 0&&!me(t.count),k=g&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),b=t.context!==void 0&&(me(t.context)||typeof t.context=="number")&&t.context!=="",$=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);h.forEach(S=>{this.isValidLookup(o)||(c=S,!My[`${$[0]}-${S}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(c)&&(My[`${$[0]}-${S}`]=!0,this.logger.warn(`key "${r}" for languages "${$.join(", ")}" won't get resolved as namespace "${c}" 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!!!")),$.forEach(N=>{if(this.isValidLookup(o))return;a=N;const P=[p];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(P,p,N,S,t);else{let j;g&&(j=this.pluralResolver.getSuffix(N,t.count,t));const Y=`${this.options.pluralSeparator}zero`,U=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(g&&(P.push(p+j),t.ordinal&&j.indexOf(U)===0&&P.push(p+j.replace(U,this.options.pluralSeparator)),k&&P.push(p+Y)),b){const I=`${p}${this.options.contextSeparator}${t.context}`;P.push(I),g&&(P.push(I+j),t.ordinal&&j.indexOf(U)===0&&P.push(I+j.replace(U,this.options.pluralSeparator)),k&&P.push(I+Y))}}let L;for(;L=P.pop();)this.isValidLookup(o)||(i=L,o=this.getResource(N,S,L,t))}))})}),{res:o,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:c}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}getResource(e,t,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,o,r):this.resourceStore.getResource(e,t,o,r)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],o=e.replace&&!me(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 i of t)delete r[i]}return r}static hasDefaultValue(e){const t="defaultValue";for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t===o.substring(0,t.length)&&e[o]!==void 0)return!0;return!1}}const Zu=n=>n.charAt(0).toUpperCase()+n.slice(1);class Ly{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Kt.create("languageUtils")}getScriptPartFromCode(e){if(e=Pa(e),!e||e.indexOf("-")<0)return null;const t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(e=Pa(e),!e||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(me(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 t=["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(),t.indexOf(o[1].toLowerCase())>-1&&(o[1]=Zu(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()),t.indexOf(o[1].toLowerCase())>-1&&(o[1]=Zu(o[1].toLowerCase())),t.indexOf(o[2].toLowerCase())>-1&&(o[2]=Zu(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 t;return e.forEach(o=>{if(t)return;const r=this.formatLanguageCode(o);(!this.options.supportedLngs||this.isSupportedCode(r))&&(t=r)}),!t&&this.options.supportedLngs&&e.forEach(o=>{if(t)return;const r=this.getLanguagePartFromCode(o);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(i=>{if(i===r)return i;if(!(i.indexOf("-")<0&&r.indexOf("-")<0)&&(i.indexOf("-")>0&&r.indexOf("-")<0&&i.substring(0,i.indexOf("-"))===r||i.indexOf(r)===0&&r.length>1))return i})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),me(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let o=e[t];return o||(o=e[this.getScriptPartFromCode(t)]),o||(o=e[this.formatLanguageCode(t)]),o||(o=e[this.getLanguagePartFromCode(t)]),o||(o=e.default),o||[]}toResolveHierarchy(e,t){const o=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=a=>{a&&(this.isSupportedCode(a)?r.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return me(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(e))):me(e)&&i(this.formatLanguageCode(e)),o.forEach(a=>{r.indexOf(a)<0&&i(this.formatLanguageCode(a))}),r}}let mD=[{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}],pD={1:n=>+(n>1),2:n=>+(n!=1),3:n=>0,4:n=>n%10==1&&n%100!=11?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2,5:n=>n==0?0:n==1?1:n==2?2:n%100>=3&&n%100<=10?3:n%100>=11?4:5,6:n=>n==1?0:n>=2&&n<=4?1:2,7:n=>n==1?0:n%10>=2&&n%10<=4&&(n%100<10||n%100>=20)?1:2,8:n=>n==1?0:n==2?1:n!=8&&n!=11?2:3,9:n=>+(n>=2),10:n=>n==1?0:n==2?1:n<7?2:n<11?3:4,11:n=>n==1||n==11?0:n==2||n==12?1:n>2&&n<20?2:3,12:n=>+(n%10!=1||n%100==11),13:n=>+(n!==0),14:n=>n==1?0:n==2?1:n==3?2:3,15:n=>n%10==1&&n%100!=11?0:n%10>=2&&(n%100<10||n%100>=20)?1:2,16:n=>n%10==1&&n%100!=11?0:n!==0?1:2,17:n=>n==1||n%10==1&&n%100!=11?0:1,18:n=>n==0?0:n==1?1:2,19:n=>n==1?0:n==0||n%100>1&&n%100<11?1:n%100>10&&n%100<20?2:3,20:n=>n==1?0:n==0||n%100>0&&n%100<20?1:2,21:n=>n%100==1?1:n%100==2?2:n%100==3||n%100==4?3:0,22:n=>n==1?0:n==2?1:(n<0||n>10)&&n%10==0?2:3};const fD=["v1","v2","v3"],hD=["v4"],jy={zero:0,one:1,two:2,few:3,many:4,other:5},gD=()=>{const n={};return mD.forEach(e=>{e.lngs.forEach(t=>{n[t]={numbers:e.nr,plurals:pD[e.fc]}})}),n};class yD{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Kt.create("pluralResolver"),(!this.options.compatibilityJSON||hD.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=gD(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const o=Pa(e==="dev"?"en":e),r=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:o,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(o,{type:r})}catch{if(!e.match(/-|_/))return;const d=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(d,t)}return this.pluralRulesCache[i]=a,a}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getRule(e,t);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}getPluralFormsOfKey(e,t){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,o).map(r=>`${t}${r}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=this.getRule(e,t);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort((r,i)=>jy[r]-jy[i]).map(r=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${r}`):o.numbers.map(r=>this.getSuffix(e,r,t)):[]}getSuffix(e,t){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(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const o=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[o];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}shouldUseIntlApi(){return!fD.includes(this.options.compatibilityJSON)}}const Iy=function(n,e,t){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=rD(n,e,t);return!i&&r&&me(t)&&(i=Xu(n,t,o),i===void 0&&(i=Xu(e,t,o))),i},ed=n=>n.replace(/\$/g,"$$$$");class kD{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Kt.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(t=>t),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:o,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:c,suffixEscaped:d,formatSeparator:m,unescapeSuffix:p,unescapePrefix:h,nestingPrefix:g,nestingPrefixEscaped:k,nestingSuffix:b,nestingSuffixEscaped:$,nestingOptionsSeparator:S,maxReplaces:N,alwaysFormat:P}=e.interpolation;this.escape=t!==void 0?t:sD,this.escapeValue=o!==void 0?o:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=i?Ko(i):a||"{{",this.suffix=c?Ko(c):d||"}}",this.formatSeparator=m||",",this.unescapePrefix=p?"":h||"-",this.unescapeSuffix=this.unescapePrefix?"":p||"",this.nestingPrefix=g?Ko(g):k||Ko("$t("),this.nestingSuffix=b?Ko(b):$||Ko(")"),this.nestingOptionsSeparator=S||",",this.maxReplaces=N||1e3,this.alwaysFormat=P!==void 0?P:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(t,o)=>t&&t.source===o?(t.lastIndex=0,t):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,t,o,r){let i,a,c;const d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},m=k=>{if(k.indexOf(this.formatSeparator)<0){const N=Iy(t,d,k,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(N,void 0,o,{...r,...t,interpolationkey:k}):N}const b=k.split(this.formatSeparator),$=b.shift().trim(),S=b.join(this.formatSeparator).trim();return this.format(Iy(t,d,$,this.options.keySeparator,this.options.ignoreJSONStructure),S,o,{...r,...t,interpolationkey:$})};this.resetRegExp();const p=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,h=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:k=>ed(k)},{regex:this.regexp,safeValue:k=>this.escapeValue?ed(this.escape(k)):ed(k)}].forEach(k=>{for(c=0;i=k.regex.exec(e);){const b=i[1].trim();if(a=m(b),a===void 0)if(typeof p=="function"){const S=p(e,i,r);a=me(S)?S:""}else if(r&&Object.prototype.hasOwnProperty.call(r,b))a="";else if(h){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${e}`),a="";else!me(a)&&!this.useRawValueToEscape&&(a=Ny(a));const $=k.safeValue(a);if(e=e.replace(i[0],$),h?(k.regex.lastIndex+=a.length,k.regex.lastIndex-=i[0].length):k.regex.lastIndex=0,c++,c>=this.maxReplaces)break}}),e}nest(e,t){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,a;const c=(d,m)=>{const p=this.nestingOptionsSeparator;if(d.indexOf(p)<0)return d;const h=d.split(new RegExp(`${p}[ ]*{`));let g=`{${h[1]}`;d=h[0],g=this.interpolate(g,a);const k=g.match(/'/g),b=g.match(/"/g);(k&&k.length%2===0&&!b||b.length%2!==0)&&(g=g.replace(/'/g,'"'));try{a=JSON.parse(g),m&&(a={...m,...a})}catch($){return this.logger.warn(`failed parsing options string in nesting for key ${d}`,$),`${d}${p}${g}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,d};for(;r=this.nestingRegexp.exec(e);){let d=[];a={...o},a=a.replace&&!me(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let m=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){const p=r[1].split(this.formatSeparator).map(h=>h.trim());r[1]=p.shift(),d=p,m=!0}if(i=t(c.call(this,r[1].trim(),a),a),i&&r[0]===e&&!me(i))return i;me(i)||(i=Ny(i)),i||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),i=""),m&&(i=d.reduce((p,h)=>this.format(p,h,o.lng,{...o,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}}const bD=n=>{let e=n.toLowerCase().trim();const t={};if(n.indexOf("(")>-1){const o=n.split("(");e=o[0].toLowerCase().trim();const r=o[1].substring(0,o[1].length-1);e==="currency"&&r.indexOf(":")<0?t.currency||(t.currency=r.trim()):e==="relativetime"&&r.indexOf(":")<0?t.range||(t.range=r.trim()):r.split(";").forEach(a=>{if(a){const[c,...d]=a.split(":"),m=d.join(":").trim().replace(/^'+|'+$/g,""),p=c.trim();t[p]||(t[p]=m),m==="false"&&(t[p]=!1),m==="true"&&(t[p]=!0),isNaN(m)||(t[p]=parseInt(m,10))}})}return{formatName:e,formatOptions:t}},Wo=n=>{const e={};return(t,o,r)=>{let i=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(i={...i,[r.interpolationkey]:void 0});const a=o+JSON.stringify(i);let c=e[a];return c||(c=n(Pa(o),r),e[a]=c),c(t)}};class vD{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Kt.create("formatter"),this.options=e,this.formats={number:Wo((t,o)=>{const r=new Intl.NumberFormat(t,{...o});return i=>r.format(i)}),currency:Wo((t,o)=>{const r=new Intl.NumberFormat(t,{...o,style:"currency"});return i=>r.format(i)}),datetime:Wo((t,o)=>{const r=new Intl.DateTimeFormat(t,{...o});return i=>r.format(i)}),relativetime:Wo((t,o)=>{const r=new Intl.RelativeTimeFormat(t,{...o});return i=>r.format(i,o.range||"day")}),list:Wo((t,o)=>{const r=new Intl.ListFormat(t,{...o});return i=>r.format(i)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=Wo(t)}format(e,t,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find(c=>c.indexOf(")")>-1)){const c=i.findIndex(d=>d.indexOf(")")>-1);i[0]=[i[0],...i.splice(1,c)].join(this.formatSeparator)}return i.reduce((c,d)=>{const{formatName:m,formatOptions:p}=bD(d);if(this.formats[m]){let h=c;try{const g=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},k=g.locale||g.lng||r.locale||r.lng||o;h=this.formats[m](c,k,{...p,...r,...g})}catch(g){this.logger.warn(g)}return h}else this.logger.warn(`there was no format function for ${m}`);return c},e)}}const wD=(n,e)=>{n.pending[e]!==void 0&&(delete n.pending[e],n.pendingCount--)};class $D extends La{constructor(e,t,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=o,this.languageUtils=o.languageUtils,this.options=r,this.logger=Kt.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,t,o,r){const i={},a={},c={},d={};return e.forEach(m=>{let p=!0;t.forEach(h=>{const g=`${m}|${h}`;!o.reload&&this.store.hasResourceBundle(m,h)?this.state[g]=2:this.state[g]<0||(this.state[g]===1?a[g]===void 0&&(a[g]=!0):(this.state[g]=1,p=!1,a[g]===void 0&&(a[g]=!0),i[g]===void 0&&(i[g]=!0),d[h]===void 0&&(d[h]=!0)))}),p||(c[m]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(c),toLoadNamespaces:Object.keys(d)}}loaded(e,t,o){const r=e.split("|"),i=r[0],a=r[1];t&&this.emit("failedLoading",i,a,t),!t&&o&&this.store.addResourceBundle(i,a,o,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&o&&(this.state[e]=0);const c={};this.queue.forEach(d=>{oD(d.loaded,[i],a),wD(d,e),t&&d.errors.push(t),d.pendingCount===0&&!d.done&&(Object.keys(d.loaded).forEach(m=>{c[m]||(c[m]={});const p=d.loaded[m];p.length&&p.forEach(h=>{c[m][h]===void 0&&(c[m][h]=!0)})}),d.done=!0,d.errors.length?d.callback(d.errors):d.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(d=>!d.done)}read(e,t,o){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:o,tried:r,wait:i,callback:a});return}this.readingCalls++;const c=(m,p)=>{if(this.readingCalls--,this.waitingReads.length>0){const h=this.waitingReads.shift();this.read(h.lng,h.ns,h.fcName,h.tried,h.wait,h.callback)}if(m&&p&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,o,r+1,i*2,a)},i);return}a(m,p)},d=this.backend[o].bind(this.backend);if(d.length===2){try{const m=d(e,t);m&&typeof m.then=="function"?m.then(p=>c(null,p)).catch(c):c(null,m)}catch(m){c(m)}return}return d(e,t,c)}prepareLoading(e,t){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();me(e)&&(e=this.languageUtils.toResolveHierarchy(e)),me(t)&&(t=[t]);const i=this.queueLoad(e,t,o,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(a=>{this.loadOne(a)})}load(e,t,o){this.prepareLoading(e,t,{},o)}reload(e,t,o){this.prepareLoading(e,t,{reload:!0},o)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const o=e.split("|"),r=o[0],i=o[1];this.read(r,i,"read",void 0,void 0,(a,c)=>{a&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,a),!a&&c&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,c),this.loaded(e,a,c)})}saveMissing(e,t,o,r,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${o}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(o==null||o==="")){if(this.backend&&this.backend.create){const d={...a,isUpdate:i},m=this.backend.create.bind(this.backend);if(m.length<6)try{let p;m.length===5?p=m(e,t,o,r,d):p=m(e,t,o,r),p&&typeof p.then=="function"?p.then(h=>c(null,h)).catch(c):c(null,p)}catch(p){c(p)}else m(e,t,o,r,c,d)}!e||!e[0]||this.store.addResource(e[0],t,o,r)}}}const By=()=>({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:n=>{let e={};if(typeof n[1]=="object"&&(e=n[1]),me(n[1])&&(e.defaultValue=n[1]),me(n[2])&&(e.tDescription=n[2]),typeof n[2]=="object"||typeof n[3]=="object"){const t=n[3]||n[2];Object.keys(t).forEach(o=>{e[o]=t[o]})}return e},interpolation:{escapeValue:!0,format:n=>n,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),zy=n=>(me(n.ns)&&(n.ns=[n.ns]),me(n.fallbackLng)&&(n.fallbackLng=[n.fallbackLng]),me(n.fallbackNS)&&(n.fallbackNS=[n.fallbackNS]),n.supportedLngs&&n.supportedLngs.indexOf("cimode")<0&&(n.supportedLngs=n.supportedLngs.concat(["cimode"])),n),Ia=()=>{},xD=n=>{Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach(t=>{typeof n[t]=="function"&&(n[t]=n[t].bind(n))})};class ui extends La{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=zy(e),this.services={},this.logger=Kt,this.modules={external:[]},xD(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(o=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&(me(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=By();this.options={...r,...this.options,...zy(t)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=p=>p?typeof p=="function"?new p:p:null;if(!this.options.isClone){this.modules.logger?Kt.init(i(this.modules.logger),this.options):Kt.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:typeof Intl<"u"&&(p=vD);const h=new Ly(this.options);this.store=new Ty(this.options.resources,this.options);const g=this.services;g.logger=Kt,g.resourceStore=this.store,g.languageUtils=h,g.pluralResolver=new yD(h,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(g.formatter=i(p),g.formatter.init(g,this.options),this.options.interpolation.format=g.formatter.format.bind(g.formatter)),g.interpolator=new kD(this.options),g.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},g.backendConnector=new $D(i(this.modules.backend),g.resourceStore,g,this.options),g.backendConnector.on("*",function(k){for(var b=arguments.length,$=new Array(b>1?b-1:0),S=1;S<b;S++)$[S-1]=arguments[S];e.emit(k,...$)}),this.modules.languageDetector&&(g.languageDetector=i(this.modules.languageDetector),g.languageDetector.init&&g.languageDetector.init(g,this.options.detection,this.options)),this.modules.i18nFormat&&(g.i18nFormat=i(this.modules.i18nFormat),g.i18nFormat.init&&g.i18nFormat.init(this)),this.translator=new ja(this.services,this.options),this.translator.on("*",function(k){for(var b=arguments.length,$=new Array(b>1?b-1:0),S=1;S<b;S++)$[S-1]=arguments[S];e.emit(k,...$)}),this.modules.external.forEach(k=>{k.init&&k.init(this)})}if(this.format=this.options.interpolation.format,o||(o=Ia),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[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(p=>{this[p]=function(){return e.store[p](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=function(){return e.store[p](...arguments),e}});const d=li(),m=()=>{const p=(h,g)=>{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),d.resolve(g),o(h,g)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)};return this.options.resources||!this.options.initImmediate?m():setTimeout(m,0),d}loadResources(e){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ia;const r=me(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 i=[],a=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(m=>{m!=="cimode"&&i.indexOf(m)<0&&i.push(m)})};r?a(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>a(d)),this.options.preload&&this.options.preload.forEach(c=>a(c)),this.services.backendConnector.load(i,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),o(c)})}else o(null)}reloadResources(e,t,o){const r=li();return typeof e=="function"&&(o=e,e=void 0),typeof t=="function"&&(o=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),o||(o=Ia),this.services.backendConnector.reload(e,t,i=>{r.resolve(),o(i)}),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"&&Py.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 t=0;t<this.languages.length;t++){const o=this.languages[t];if(!(["cimode","dev"].indexOf(o)>-1)&&this.store.hasLanguageSomeTranslations(o)){this.resolvedLanguage=o;break}}}changeLanguage(e,t){var o=this;this.isLanguageChangingTo=e;const r=li();this.emit("languageChanging",e);const i=d=>{this.language=d,this.languages=this.services.languageUtils.toResolveHierarchy(d),this.resolvedLanguage=void 0,this.setResolvedLanguage(d)},a=(d,m)=>{m?(i(m),this.translator.changeLanguage(m),this.isLanguageChangingTo=void 0,this.emit("languageChanged",m),this.logger.log("languageChanged",m)):this.isLanguageChangingTo=void 0,r.resolve(function(){return o.t(...arguments)}),t&&t(d,function(){return o.t(...arguments)})},c=d=>{!e&&!d&&this.services.languageDetector&&(d=[]);const m=me(d)?d:this.services.languageUtils.getBestMatchFromCodes(d);m&&(this.language||i(m),this.translator.language||this.translator.changeLanguage(m),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(m)),this.loadResources(m,p=>{a(p,m)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(e),r}getFixedT(e,t,o){var r=this;const i=function(a,c){let d;if(typeof c!="object"){for(var m=arguments.length,p=new Array(m>2?m-2:0),h=2;h<m;h++)p[h-2]=arguments[h];d=r.options.overloadTranslationOptionHandler([a,c].concat(p))}else d={...c};d.lng=d.lng||i.lng,d.lngs=d.lngs||i.lngs,d.ns=d.ns||i.ns,d.keyPrefix!==""&&(d.keyPrefix=d.keyPrefix||o||i.keyPrefix);const g=r.options.keySeparator||".";let k;return d.keyPrefix&&Array.isArray(a)?k=a.map(b=>`${d.keyPrefix}${g}${b}`):k=d.keyPrefix?`${d.keyPrefix}${g}${a}`:a,r.t(k,d)};return me(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=o,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const o=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(o.toLowerCase()==="cimode")return!0;const a=(c,d)=>{const m=this.services.backendConnector.state[`${c}|${d}`];return m===-1||m===0||m===2};if(t.precheck){const c=t.precheck(this,a);if(c!==void 0)return c}return!!(this.hasResourceBundle(o,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(o,e)&&(!r||a(i,e)))}loadNamespaces(e,t){const o=li();return this.options.ns?(me(e)&&(e=[e]),e.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{o.resolve(),t&&t(r)}),o):(t&&t(),Promise.resolve())}loadLanguages(e,t){const o=li();me(e)&&(e=[e]);const r=this.options.preload||[],i=e.filter(a=>r.indexOf(a)<0&&this.services.languageUtils.isSupportedCode(a));return i.length?(this.options.preload=r.concat(i),this.loadResources(a=>{o.resolve(),t&&t(a)}),o):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],o=this.services&&this.services.languageUtils||new Ly(By());return t.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]:{},t=arguments.length>1?arguments[1]:void 0;return new ui(e,t)}cloneInstance(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ia;const o=e.forkResourceStore;o&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new ui(r);return(e.debug!==void 0||e.prefix!==void 0)&&(i.logger=i.logger.clone(e)),["store","services","language"].forEach(c=>{i[c]=this[c]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},o&&(i.store=new Ty(this.store.data,r),i.services.resourceStore=i.store),i.translator=new ja(i.services,r),i.translator.on("*",function(c){for(var d=arguments.length,m=new Array(d>1?d-1:0),p=1;p<d;p++)m[p-1]=arguments[p];i.emit(c,...m)}),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const nt=ui.createInstance();nt.createInstance=ui.createInstance,nt.createInstance,nt.dir,nt.init,nt.loadResources,nt.reloadResources,nt.use,nt.changeLanguage,nt.getFixedT,nt.t,nt.exists,nt.setDefaultNamespace,nt.hasLoadedNamespace,nt.loadNamespaces,nt.loadLanguages;const Fy=[{code:"af",label:"Afrikaans"},{code:"ar",label:"Arabic"},{code:"bg",label:"Bulgarian"},{code:"bn",label:"Bengali"},{code:"bs",label:"Bosnian"},{code:"ca",label:"Catalan"},{code:"cs",label:"Czech"},{code:"da",label:"Danish"},{code:"de",label:"German"},{code:"de-CH",label:"Swiss German"},{code:"el",label:"Greek"},{code:"en",label:"English"},{code:"eo",label:"Esperanto"},{code:"es",label:"Spanish"},{code:"et",label:"Estonian"},{code:"eu",label:"Basque"},{code:"fa",label:"Persian/Farsi"},{code:"fi",label:"Finnish"},{code:"fr",label:"French"},{code:"gd",label:"Gaelic (Scottish)"},{code:"he",label:"Hebrew"},{code:"hi",label:"Hindi"},{code:"hr",label:"Croatian"},{code:"hu",label:"Hungarian"},{code:"id",label:"Indonesian"},{code:"is",label:"Icelandic"},{code:"it",label:"Italian"},{code:"ja",label:"Japanese"},{code:"ko",label:"Korean"},{code:"kz",label:"Kazakh"},{code:"lt",label:"Lithuanian"},{code:"lv",label:"Latvian"},{code:"mk",label:"Macedonian"},{code:"mn",label:"Mongolian"},{code:"ms",label:"Malay"},{code:"nb",label:"Norwegian Bokmål"},{code:"ne",label:"Nepali"},{code:"nl",label:"Dutch"},{code:"nn",label:"Norwegian Nynorsk"},{code:"pa",label:"Punjabi"},{code:"pl",label:"Polish"},{code:"pt",label:"Portuguese"},{code:"pt-BR",label:"Portuguese (Brazil)"},{code:"ro",label:"Romanian"},{code:"ru",label:"Russian"},{code:"si",label:"Sinhala"},{code:"sk",label:"Slovak"},{code:"sl",label:"Slovenian"},{code:"sq",label:"Albanian"},{code:"sr",label:"Serbian"},{code:"sr-Cyrl",label:"Serbian (Cyrillic)"},{code:"sv",label:"Swedish"},{code:"sw",label:"Swahili"},{code:"ta",label:"Tamil"},{code:"th",label:"Thai"},{code:"tr",label:"Turkish"},{code:"uk",label:"Ukrainian"},{code:"ur",label:"Urdu"},{code:"uz",label:"Uzbek"},{code:"vi",label:"Vietnamese"},{code:"zh",label:"Chinese"},{code:"zh-Hant",label:"Traditional Chinese"}],_y=Fy.map(n=>n.code);function Uy(n){return{...n,...n.default&&typeof n.default=="object"?n.default:{}}}function SD(n){return function(t,o){return t.reduce((r,i)=>{let a=n(i,o);return a===void 0&&(a=n("en",o)),r[i]={[o]:Uy(a||{})},r},{})}}function CD({generateThemeResources:n,generateResources:e}){return(t="en",o="portal",r={})=>{const i=nt.createInstance(),a={prefix:"{",suffix:"}"};(o==="theme"||o==="portal")&&(a.escapeValue=!1);let c;return o!=="theme"?c=e(_y,o):c=n(t,r),i.init({lng:t,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:{no:["nb","en"],default:["en"]},ns:o,defaultNS:o,interpolation:a,resources:c}),i}}const ED=Object.freeze(Object.defineProperty({__proto__:null,LOCALE_DATA:Fy,SUPPORTED_LOCALES:_y,createGenerateResources:SD,createI18n:CD,mergeDefaultExport:Uy},Symbol.toStringTag,{value:"Module"})),{createI18n:ND,createGenerateResources:DD,LOCALE_DATA:RD,SUPPORTED_LOCALES:AD}=ED;function OD(n,e){const t={};for(const[o,r]of Object.entries(n))t[o.match(/\/locales\/([^/]+)\//)[1]]=r;return TD(t,e)}function TD(n,e){const t=DD(i=>n[i]);function o(i){return{[i]:{theme:{}}}}const r=ND({generateResources:t,generateThemeResources:o});return r.LOCALE_DATA=RD,r.SUPPORTED_LOCALES=AD,r.generateResources=t,r.namespace=e,r.default=r,r}const Hy=OD(Object.assign({"../../locales/af/comments.json":KE,"../../locales/ar/comments.json":WE,"../../locales/bg/comments.json":qE,"../../locales/bn/comments.json":GE,"../../locales/bs/comments.json":QE,"../../locales/ca/comments.json":XE,"../../locales/cs/comments.json":ZE,"../../locales/da/comments.json":eN,"../../locales/de-CH/comments.json":tN,"../../locales/de/comments.json":nN,"../../locales/el/comments.json":oN,"../../locales/en/comments.json":rN,"../../locales/eo/comments.json":iN,"../../locales/es/comments.json":sN,"../../locales/et/comments.json":aN,"../../locales/eu/comments.json":lN,"../../locales/fa/comments.json":cN,"../../locales/fi/comments.json":uN,"../../locales/fr/comments.json":dN,"../../locales/gd/comments.json":mN,"../../locales/he/comments.json":pN,"../../locales/hi/comments.json":fN,"../../locales/hr/comments.json":hN,"../../locales/hu/comments.json":gN,"../../locales/id/comments.json":yN,"../../locales/is/comments.json":kN,"../../locales/it/comments.json":bN,"../../locales/ja/comments.json":vN,"../../locales/ko/comments.json":wN,"../../locales/kz/comments.json":$N,"../../locales/lt/comments.json":xN,"../../locales/lv/comments.json":SN,"../../locales/mk/comments.json":CN,"../../locales/mn/comments.json":EN,"../../locales/ms/comments.json":NN,"../../locales/nb/comments.json":DN,"../../locales/ne/comments.json":RN,"../../locales/nl/comments.json":AN,"../../locales/nn/comments.json":ON,"../../locales/pa/comments.json":TN,"../../locales/pl/comments.json":PN,"../../locales/pt-BR/comments.json":MN,"../../locales/pt/comments.json":LN,"../../locales/ro/comments.json":jN,"../../locales/ru/comments.json":IN,"../../locales/si/comments.json":BN,"../../locales/sk/comments.json":zN,"../../locales/sl/comments.json":FN,"../../locales/sq/comments.json":_N,"../../locales/sr-Cyrl/comments.json":UN,"../../locales/sr/comments.json":HN,"../../locales/sv/comments.json":VN,"../../locales/sw/comments.json":YN,"../../locales/ta/comments.json":JN,"../../locales/th/comments.json":KN,"../../locales/tr/comments.json":WN,"../../locales/uk/comments.json":qN,"../../locales/ur/comments.json":GN,"../../locales/uz/comments.json":QN,"../../locales/vi/comments.json":XN,"../../locales/zh-Hant/comments.json":ZN,"../../locales/zh/comments.json":eD}),"comments"),{LOCALE_DATA:Dee,SUPPORTED_LOCALES:Ree,generateResources:Aee}=Hy;function PD({siteUrl:n=window.location.origin,apiUrl:e,apiKey:t}){const o="members/api";function r({type:m,resource:p,params:h=""}){return`${n.replace(/\/$/,"")}/${o}/${p}/${h}`}function i({resource:m,params:p={}}){if(e&&t){const h=new URLSearchParams({...p,key:t});return`${e.replace(/\/$/,"")}/${m}/?${h.toString()}`}return""}function a({url:m,method:p="GET",headers:h={},credentials:g=void 0,body:k=void 0}){return fetch(m,{method:p,headers:h,credentials:g,body:k})}let c=null;const d={site:{settings(){const m=i({resource:"settings"});return a({url:m,method:"GET",headers:{"Content-Type":"application/json"}}).then(function(p){if(p.ok)return p.json();throw new Error("Failed to fetch site data")})}},member:{identity(){const m=r({type:"members",resource:"session"});return a({url:m,credentials:"same-origin"}).then(function(p){return!p.ok||p.status===204?null:p.text()})},sessionData(){const m=r({type:"members",resource:"member"});return a({url:m,credentials:"same-origin"}).then(function(p){return!p.ok||p.status===204?null:p.json()})},update({name:m,expertise:p}){const h=r({type:"members",resource:"member"});return a({url:h,method:"PUT",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({name:m,expertise:p})}).then(function(k){return k.ok?k.json():null})}},comments:{async count({postId:m}){const p=m?`?ids=${m}`:"",h=r({type:"members",resource:"comments/counts",params:p}),k=await(await a({url:h,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"})).json();return m?k[m]:k},browse({page:m,postId:p,order:h}){let g=null;c&&!h&&(g=`created_at:<=${c}`);const k=new URLSearchParams;k.set("limit","20"),g&&k.set("filter",g),k.set("page",m.toString()),h&&k.set("order",h);const b=r({type:"members",resource:`comments/post/${p}`,params:`?${k.toString()}`}),$=a({url:b,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"}).then(function(S){if(S.ok)return S.json();throw new Error("Failed to fetch comments")});return c||$.then(S=>{const N=S.comments[0];N&&(c=N.created_at)}),$},async replies({commentId:m,afterReplyId:p,limit:h,page:g}){if(h==="all"){const S=[];let N=1,P=!0;for(;P;){const L=await this.replies({commentId:m,limit:100,page:N});S.push(...L.comments),P=!!L.meta?.pagination?.next&&L.comments.length>0,N+=1}return{comments:S,meta:{pagination:{next:!1}}}}const k=new URLSearchParams;k.set("limit",(h??5).toString()),g&&k.set("page",g.toString()),p&&k.set("filter",`id:>'${p}'`);const b=r({type:"members",resource:`comments/${m}/replies`,params:`?${k.toString()}`}),$=await a({url:b,method:"GET",headers:{"Content-Type":"application/json"},credentials:"same-origin"});if($.ok)return $.json();throw new Error("Failed to fetch replies")},add({comment:m}){const p={comments:[m]},h=r({type:"members",resource:"comments"});return a({url:h,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(p)}).then(function(g){if(g.ok)return g.json();throw new Error("Failed to add comment")})},edit({comment:m}){const p={comments:[m]},h=r({type:"members",resource:`comments/${m.id}`});return a({url:h,method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(p)}).then(function(g){if(g.ok)return g.json();throw new Error("Failed to edit comment")})},read(m){const p=r({type:"members",resource:`comments/${m}`});return a({url:p,method:"GET",credentials:"same-origin"}).then(function(h){if(h.ok)return h.json();throw new Error("Failed to read comment")})},like({comment:m}){const p=r({type:"members",resource:`comments/${m.id}/like`});return a({url:p,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(h){if(h.ok)return"Success";throw new Error("Failed to like comment")})},unlike({comment:m}){const p={comments:[m]},h=r({type:"members",resource:`comments/${m.id}/like`});return a({url:h,method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(p)}).then(function(g){if(g.ok)return"Success";throw new Error("Failed to unlike comment")})},dislike({comment:m}){const p=r({type:"members",resource:`comments/${m.id}/dislike`});return a({url:p,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(h){if(h.ok)return"Success";throw new Error("Failed to dislike comment")})},undislike({comment:m}){const p={comments:[m]},h=r({type:"members",resource:`comments/${m.id}/dislike`});return a({url:h,method:"DELETE",headers:{"Content-Type":"application/json"},body:JSON.stringify(p)}).then(function(g){if(g.ok)return"Success";throw new Error("Failed to undislike comment")})},report({comment:m}){const p=r({type:"members",resource:`comments/${m.id}/report`});return a({url:p,method:"POST",headers:{"Content-Type":"application/json"}}).then(function(h){if(h.ok)return"Success";throw new Error("Failed to report comment")})}},init:(()=>{})};return d.init=async()=>{const[m]=await Promise.all([d.member.sessionData()]);let p={},h=null;try{const g=await d.site.settings();g.settings.labs&&Object.assign(p,g.settings.labs),h=g.settings.support_email_address||null}catch{p={}}return{member:m,labs:p,supportEmail:h}},d}function Ba(n,e){for(const t of n){if(t.id===e)return t;for(const o of t.replies||[])if(o.id===e)return o}}async function MD({state:n,api:e,options:t,order:o}){let r=1;n.pagination&&n.pagination.page&&(r=n.pagination.page+1);let i;return n.admin&&n.adminApi?i=await n.adminApi.browse({page:r,postId:t.postId,order:o||n.order,memberUuid:n.member?.uuid}):i=await e.comments.browse({page:r,postId:t.postId,order:o||n.order}),{comments:[...n.comments,...i.comments].filter((d,m,p)=>p.findIndex(h=>h.id===d.id)===m),pagination:i.meta.pagination}}function LD({data:n}){return{commentsIsLoading:n}}async function jD({state:n,data:{order:e},options:t,api:o,dispatchAction:r}){r("setCommentsIsLoading",!0);try{let i;return n.admin&&n.adminApi?i=await n.adminApi.browse({page:1,postId:t.postId,order:e,memberUuid:n.member?.uuid}):i=await o.comments.browse({page:1,postId:t.postId,order:e}),{comments:[...i.comments],pagination:i.meta.pagination,order:e,commentsIsLoading:!1}}catch(i){throw console.error("Failed to set order:",i),n.commentsIsLoading=!1,i}}async function ID({state:n,api:e,data:t}){const r=(await e.comments.add({comment:t})).comments[0];return{comments:[r,...n.comments],commentCount:n.commentCount+1,commentIdToScrollTo:r.id}}async function BD({state:n,api:e,data:{reply:t,parent:o}}){const i=(await e.comments.add({comment:{...t,parent_id:o.id}})).comments[0],a=await e.comments.replies({commentId:o.id,limit:"all"}),c=a.comments.some(d=>d.id===i.id)?a.comments:[...a.comments,i];return{comments:n.comments.map(d=>d.id===o.id?{...d,replies:c,count:{...d.count,replies:c.length}}:d),commentCount:n.commentCount+1,commentIdToScrollTo:i.id}}async function zD({state:n,data:e}){return n.adminApi&&await n.adminApi.hideComment(e.id),{comments:n.comments.map(t=>{const o=t.replies.map(r=>r.id===e.id?{...r,status:"hidden"}:r);return t.id===e.id?{...t,status:"hidden",replies:o}:{...t,replies:o}}),commentCount:n.commentCount-1}}async function FD({state:n,api:e,data:t}){n.adminApi&&await n.adminApi.showComment({id:t.id});let o;n.admin&&n.adminApi?o=await n.adminApi.read({commentId:t.id,memberUuid:n.member?.uuid}):o=await e.comments.read(t.id);const r=o.comments[0];return{comments:n.comments.map(i=>{const a=i.replies.map(c=>c.id===t.id?r:c);return i.id===t.id?r:{...i,replies:a}}),commentCount:n.commentCount+1}}async function _D({state:n,data:e,dispatchAction:t}){return n.adminApi&&(await n.adminApi.pinComment({id:e.id}),t("setOrder",{order:n.order})),null}async function UD({state:n,data:e,dispatchAction:t}){return n.adminApi&&(await n.adminApi.unpinComment({id:e.id}),t("setOrder",{order:n.order})),null}async function HD({state:n,data:e}){return{comments:n.comments.map(t=>{const o=t.replies.map(r=>r.id===e.id?e.expectedLiked!==void 0&&r.liked!==e.expectedLiked||e.expectedDisliked!==void 0&&!!r.disliked!==e.expectedDisliked||e.expectedVotePending!==void 0&&!!r.votePending!==e.expectedVotePending?r:{...r,liked:e.liked,disliked:e.restoreDisliked??(e.liked?!1:r.disliked),votePending:e.votePending??r.votePending,count:{...r.count,likes:e.liked?r.count.likes+1:r.count.likes-1}}:r);return t.id===e.id?e.expectedLiked!==void 0&&t.liked!==e.expectedLiked?{...t,replies:o}:e.expectedDisliked!==void 0&&!!t.disliked!==e.expectedDisliked?{...t,replies:o}:e.expectedVotePending!==void 0&&!!t.votePending!==e.expectedVotePending?{...t,replies:o}:{...t,liked:e.liked,disliked:e.restoreDisliked??(e.liked?!1:t.disliked),votePending:e.votePending??t.votePending,replies:o,count:{...t.count,likes:e.liked?t.count.likes+1:t.count.likes-1}}:{...t,replies:o}})}}async function VD({state:n,data:e}){const t=o=>e.disliked&&e.wasLiked?o-1:e.restoreLiked?o+1:o;return{comments:n.comments.map(o=>{const r=o.replies.map(i=>i.id===e.id?e.expectedDisliked!==void 0&&i.disliked!==e.expectedDisliked||e.expectedLiked!==void 0&&i.liked!==e.expectedLiked||e.expectedVotePending!==void 0&&!!i.votePending!==e.expectedVotePending?i:{...i,disliked:e.disliked,liked:e.restoreLiked??(e.disliked?!1:i.liked),votePending:e.votePending??i.votePending,count:{...i.count,likes:t(i.count.likes)}}:i);return o.id===e.id?e.expectedDisliked!==void 0&&o.disliked!==e.expectedDisliked?{...o,replies:r}:e.expectedLiked!==void 0&&o.liked!==e.expectedLiked?{...o,replies:r}:e.expectedVotePending!==void 0&&!!o.votePending!==e.expectedVotePending?{...o,replies:r}:{...o,disliked:e.disliked,liked:e.restoreLiked??(e.disliked?!1:o.liked),votePending:e.votePending??o.votePending,replies:r,count:{...o.count,likes:t(o.count.likes)}}:{...o,replies:r}})}}async function YD({state:n,data:e}){return{comments:n.comments.map(t=>{const o=t.replies.map(r=>r.id===e.id?e.expectedVotePending!==void 0&&!!r.votePending!==e.expectedVotePending?r:{...r,votePending:e.votePending}:r);return t.id===e.id?e.expectedVotePending!==void 0&&!!t.votePending!==e.expectedVotePending?{...t,replies:o}:{...t,votePending:e.votePending,replies:o}:{...t,replies:o}})}}async function JD({state:n,api:e,data:t,dispatchAction:o}){const r=Ba(n.comments,t.id);if(r?.votePending)return{};const i=r?.disliked??!1;o("updateCommentLikeState",{id:t.id,liked:!0,wasDisliked:i,votePending:!0});try{return await e.comments.like({comment:t}),o("updateCommentVotePendingState",{id:t.id,votePending:!1,expectedVotePending:!0}),{}}catch{o("updateCommentLikeState",{id:t.id,liked:!1,restoreDisliked:i,expectedLiked:!0,expectedVotePending:!0,votePending:!1})}}async function KD({state:n,api:e,data:t,dispatchAction:o}){if(Ba(n.comments,t.id)?.votePending)return{};o("updateCommentLikeState",{id:t.id,liked:!1,votePending:!0});try{return await e.comments.unlike({comment:t}),o("updateCommentVotePendingState",{id:t.id,votePending:!1,expectedVotePending:!0}),{}}catch{o("updateCommentLikeState",{id:t.id,liked:!0,expectedLiked:!1,expectedDisliked:!1,expectedVotePending:!0,votePending:!1})}}async function WD({state:n,api:e,data:t,dispatchAction:o}){const r=Ba(n.comments,t.id);if(r?.votePending)return{};const i=r?.liked??!1;o("updateCommentDislikeState",{id:t.id,disliked:!0,wasLiked:i,votePending:!0});try{return await e.comments.dislike({comment:t}),o("updateCommentVotePendingState",{id:t.id,votePending:!1,expectedVotePending:!0}),{}}catch{o("updateCommentDislikeState",{id:t.id,disliked:!1,restoreLiked:i,expectedDisliked:!0,expectedVotePending:!0,votePending:!1})}}async function qD({state:n,api:e,data:t,dispatchAction:o}){if(Ba(n.comments,t.id)?.votePending)return{};o("updateCommentDislikeState",{id:t.id,disliked:!1,votePending:!0});try{return await e.comments.undislike({comment:t}),o("updateCommentVotePendingState",{id:t.id,votePending:!1,expectedVotePending:!0}),{}}catch{o("updateCommentDislikeState",{id:t.id,disliked:!0,expectedDisliked:!1,expectedLiked:!1,expectedVotePending:!0,votePending:!1})}}async function GD({api:n,data:e}){return await n.comments.report({comment:e}),{}}function Vy(n,e){return n.some(t=>t.in_reply_to_id===e)}function QD(n,e){return n.status==="deleted"||!e&&n.status==="hidden"}function XD(n,e){let t=n,o=!1;do o=!1,t=t.filter(r=>!QD(r,e)||Vy(t,r.id)?!0:(o=!0,!1));while(o);return t}function Yy(n){return Math.max((n||0)-1,0)}async function ZD({state:n,api:e,data:t,dispatchAction:o}){await e.comments.edit({comment:{id:t.id,status:"deleted"}});const r=n.comments.find(i=>i.id===t.id);return r&&(!r.replies||r.replies.length===0)?(o("setOrder",{order:n.order}),null):{comments:n.comments.map(i=>{if(i.id===t.id)return i.replies.length>0?{...i,status:"deleted"}:null;const a=i.replies.length,c=i.replies.find(k=>k.id===t.id),d=c?Vy(i.replies,c.id):!1,m=i.replies.reduce((k,b)=>b.id!==t.id?(k.push(b),k):(d&&k.push({...b,status:"deleted",html:null}),k),[]),p=XD(m,n.isAdmin),h=a!==p.length||d,g={...i,replies:p};if(h&&c&&!["hidden","deleted"].includes(c.status)){const k=!c.in_reply_to_id||c.in_reply_to_id===i.id;g.count={...g.count,replies:Yy(g.count?.replies),direct_replies:k?Yy(g.count?.direct_replies):g.count?.direct_replies}}return g}).filter(Boolean),commentCount:n.commentCount-1}}async function eR({state:n,api:e,data:{comment:t,parent:o}}){return t=(await e.comments.edit({comment:t})).comments[0],{comments:n.comments.map(i=>o&&o.id===i.id?{...i,replies:i.replies.map(a=>a.id===t.id?t:a)}:i.id===t.id?t:i)}}async function tR({data:n,state:e,api:t}){const{name:o,expertise:r}=n,i={},a=e?.member?.name;o&&a!==o&&(i.name=o);const c=e?.member?.expertise;if(r!==void 0&&c!==r&&(i.expertise=r),Object.keys(i).length>0)try{const d=await t.member.update(i);if(!d)throw new Error("Failed to update member");return{member:d,success:!0}}catch(d){return{success:!1,error:d}}return null}function nR({data:n}){return{popup:n}}function oR(){return{popup:null}}function rR({data:n,state:e}){const t=e.openCommentForms.filter(r=>r.hasUnsavedChanges),o=t.findIndex(r=>r.id===n.id);return o>-1?(t[o]=n,{openCommentForms:t}):{openCommentForms:[...t,n]}}function iR({data:n}){return{commentIdToHighlight:n}}function sR({data:{commentId:n},dispatchAction:e}){return setTimeout(()=>{e("setHighlightComment",null)},3e3),{commentIdToHighlight:n}}function aR({data:{id:n,hasUnsavedChanges:e},state:t}){return{openCommentForms:t.openCommentForms.map(r=>r.id===n?{...r,hasUnsavedChanges:e}:{...r})}}function lR({data:n,state:e}){return{openCommentForms:e.openCommentForms.filter(t=>t.id!==n)}}function cR({data:n}){return{commentIdToScrollTo:n}}function uR({data:n}){return{commentIdFromHash:n}}const Jy={openPopup:nR,closePopup:oR,closeCommentForm:lR,setCommentFormHasUnsavedChanges:aR,setScrollTarget:cR,setHashCommentId:uR},dR={addComment:ID,editComment:eR,hideComment:zD,pinComment:_D,unpinComment:UD,deleteComment:ZD,showComment:FD,likeComment:JD,unlikeComment:KD,dislikeComment:WD,undislikeComment:qD,reportComment:GD,addReply:BD,loadMoreComments:MD,openCommentForm:rR,updateMember:tR,setOrder:jD,highlightComment:sR,setHighlightComment:iR,setCommentsIsLoading:LD,updateCommentLikeState:HD,updateCommentDislikeState:VD,updateCommentVotePendingState:YD};function mR(n){return Object.prototype.hasOwnProperty.call(Jy,n)}async function pR({action:n,data:e,state:t,api:o,adminApi:r,options:i,dispatchAction:a}){const c=dR[n];return c?await c({data:e,state:t,api:o,adminApi:r,options:i,dispatchAction:a})||{}:{}}function fR({action:n,data:e,state:t,api:o,adminApi:r,options:i}){const a=Jy[n];return a?a({data:e,state:t,api:o,adminApi:r,options:i})||{}:{}}function hR({adminUrl:n}){const e=document.querySelector('iframe[data-frame="admin-auth"]');let t=1;const o={},r=new URL(n).origin;let i=null;window.addEventListener("message",function(d){if(d.origin!==r)return;let m=null;try{m=JSON.parse(d.data)}catch{return}const p=o[m.uid];p&&(delete o[m.uid],p(m.error,m.result))});function a(d,m){return new Promise((p,h)=>{function g(k,b){return k?h(k):p(b)}t+=1,o[t]=g,e.contentWindow.postMessage(JSON.stringify({uid:t,action:d,...m}),r)})}return{async getUser(){const d=await a("getUser");return!d||!d.users?null:d.users[0]},async hideComment(d){return await a("hideComment",{id:d})},async showComment({id:d}){return await a("showComment",{id:d})},async pinComment({id:d}){return await a("pinComment",{id:d})},async unpinComment({id:d}){return await a("unpinComment",{id:d})},async browse({page:d,postId:m,order:p,memberUuid:h}){let g=null;i&&!p&&(g=`created_at:<=${i}`);const k=new URLSearchParams;k.set("limit","20"),g&&k.set("filter",g),k.set("page",d.toString()),p&&k.set("order",p),h&&k.set("impersonate_member_uuid",h);const b=await a("browseComments",{postId:m,params:k.toString()});if(!i){const $=b.comments[0];$&&(i=$.created_at)}return b},async replies({commentId:d,afterReplyId:m,limit:p,memberUuid:h}){const g=new URLSearchParams;return p&&g.set("limit",p.toString()),m&&g.set("filter",`id:>'${m}'`),h&&g.set("impersonate_member_uuid",h),await a("getReplies",{commentId:d,params:g.toString()})},async read({commentId:d,memberUuid:m}){const p=new URLSearchParams;return m&&p.set("impersonate_member_uuid",m),await a("readComment",{commentId:d,...p.toString()&&{params:p.toString()}})}}}function gR(n){const e=ae.useCallback(()=>{const i=n.dataset,a=i.ghostComments||window.location.origin,c=i.key,d=i.api,m=i.admin,p=i.postId||"",h=i.colorScheme,g=i.avatarSaturation?parseInt(i.avatarSaturation):void 0,k=i.accentColor??"#000000",b=i.commentsEnabled,$=i.title==="null"?null:i.title??"",S=i.count==="true",N=i.publication??"";return{locale:i.locale??"en",siteUrl:a,apiKey:c,apiUrl:d,postId:p,adminUrl:m,colorScheme:h,avatarSaturation:g,accentColor:k,commentsEnabled:b,title:$,showCount:S,publication:N}},[n]),t=E.useMemo(()=>e(),[]),[o,r]=ae.useState(t);return ae.useEffect(()=>{const i=new MutationObserver(a=>{a.some(c=>c.type==="attributes")&&r(e())});return i.observe(n,{attributes:!0}),()=>{i.disconnect()}},[n,e]),o}const yR=["Owner","Administrator","Super Editor"],td="count__net_score desc, created_at desc";function nd(n,e){return n.some(t=>t.id===e||t.replies?.some(o=>o.id===e))}const kR=({scriptTag:n,initialCommentId:e})=>{const t=gR(n),[o,r]=E.useState({initStatus:"running",member:null,admin:null,comments:[],pagination:null,commentCount:0,openCommentForms:[],popup:null,labs:{},order:td,adminApi:null,commentsIsLoading:!1,commentIdToHighlight:null,commentIdToScrollTo:e,commentIdFromHash:e,showMissingCommentNotice:!1,supportEmail:null,isMember:!1,isAdmin:!1,isPaidOnly:!1,hasRequiredTier:!0,isCommentingDisabled:!1}),i=ae.createRef(),a=ae.useMemo(()=>PD({siteUrl:t.siteUrl,apiUrl:t.apiUrl,apiKey:t.apiKey}),[t]),c=E.useCallback(P=>{r(L=>(typeof P=="function"&&(P=P(L)),{...L,...P}))},[r]),d=E.useCallback(async(P,L)=>{if(mR(P)){c(j=>fR({action:P,data:L,state:j,api:a,adminApi:j.adminApi,options:t}));return}return new Promise(j=>{c(Y=>(pR({action:P,data:L,state:Y,api:a,adminApi:Y.adminApi,options:t,dispatchAction:d}).then(U=>{const I={...U};j(I),c(I)}).catch(console.error),{}))})},[a,t]),m=E.useMemo(()=>Hy(t.locale,"comments"),[t.locale]),p={...t,...o,t:m.t,dispatchAction:d,openFormCount:E.useMemo(()=>o.openCommentForms.length,[o.openCommentForms])},h=async()=>{if(!(o.adminApi||!t.adminUrl))try{const P=hR({adminUrl:t.adminUrl});let L=null;try{if(L=await P.getUser(),(!L||!L.roles.some(j=>yR.includes(j.name)))&&(L=null),L){const j=await P.browse({page:1,postId:t.postId,order:o.order,memberUuid:o.member?.uuid});c(Y=>Y.pagination&&Y.pagination.page>1||e?{adminApi:P,admin:L,isAdmin:!0}:{adminApi:P,admin:L,isAdmin:!0,comments:j.comments,pagination:j.meta.pagination})}}catch(j){console.warn("[Comments] Failed to fetch admin endpoint:",j)}c({adminApi:P,admin:L,isAdmin:!!L})}catch(P){console.error("[Comments] Failed to initialize admin authentication:",P)}},g=async(P=o.order)=>{const L=a.comments.browse({page:1,postId:t.postId,order:P}),j=a.comments.count({postId:t.postId}),[Y,U]=await Promise.all([L,j]);return{comments:Y.comments,pagination:Y.meta.pagination,count:U}},k=async P=>{try{const j=(await a.comments.read(P)).comments?.[0];return j&&j.status==="published"?j:null}catch{return null}},b=async(P,L,j,Y,U=o.order)=>{let I=j,K=Y;for(;!nd(I,P)&&K.page<K.pages&&!(L&&I.some(ie=>ie.id===L));){const X=await a.comments.browse({page:K.page+1,postId:t.postId,order:U});I=[...I,...X.comments],K=X.meta.pagination}return{comments:I,pagination:K}},$=async(P,L,j,Y,U=o.order)=>{const I=L.parent_id,{comments:K,pagination:X}=await b(P,I,j,Y,U);let ie=K;if(I&&!nd(ie,P)){const{comments:Ne}=await a.comments.replies({commentId:I,limit:"all"});ie=ie.map(ye=>ye.id===I?{...ye,replies:Ne}:ye)}return{comments:ie,pagination:X,found:nd(ie,P)}},S=async()=>{try{const{member:P,labs:L,supportEmail:j}=await a.init(),{count:Y,comments:U,pagination:I}=await g(td),K=td;let X=U,ie=I,Ne=!1;if(e&&ie){const T=await k(e);if(T){const _=await $(e,T,X,ie,K);X=_.comments,ie=_.pagination,Ne=_.found}}const $e=!!P,Re=t.commentsEnabled==="paid",Ae=!!P?.paid||!Re;c({member:P,initStatus:"success",comments:X,pagination:ie,commentCount:Y,order:K,labs:L,commentsIsLoading:!1,commentIdToHighlight:null,commentIdToScrollTo:Ne?e:null,commentIdFromHash:Ne?e:null,showMissingCommentNotice:!!e&&!Ne,supportEmail:j,isMember:$e,isPaidOnly:Re,hasRequiredTier:Ae,isCommentingDisabled:P?.can_comment===!1})}catch(P){console.error("[Comments] Failed to initialize:",P),c({initStatus:"failed"})}};E.useEffect(()=>{if(e){S();return}const P=new IntersectionObserver(L=>{L.forEach(j=>{j.isIntersecting&&(S(),i.current&&P.unobserve(i.current))})},{root:null,rootMargin:"0px",threshold:.1});return i.current&&P.observe(i.current),()=>{i.current&&P.unobserve(i.current)}},[i.current,e]);const N=o.initStatus==="success";return w.jsxs(Yl.Provider,{value:p,children:[w.jsx(zE,{ref:i,children:w.jsx(ME,{done:N})}),N&&t.adminUrl&&w.jsx(Ob,{adminUrl:t.adminUrl,onLoad:h}),w.jsx(JE,{})]})};function bR(){let n=document.currentScript;if(!n)throw new Error("[Comments-UI] Cannot find current script tag");return n}function vR(n){if(n.previousElementSibling&&n.previousElementSibling.id===Jo)return n.previousElementSibling;if(!n.parentElement)throw new Error("[Comments-UI] Script tag does not have a parent element");const e=document.createElement("div");return e.id=Jo,n.parentElement.insertBefore(e,n),e}function wR(){const n=new URL(window.location.href);n.searchParams.get("token")&&(n.searchParams.delete("token"),window.history.replaceState({},document.title,n.href))}function $R(){const n=bR(),e=vR(n),t=Vl(window.location.hash);try{wR(),dg.render(w.jsx(ae.StrictMode,{children:w.jsx(kR,{initialCommentId:t,scriptTag:n})}),e)}catch(o){console.error(o)}}$R()}));
|
|
106
|
+
3. "-" cannot repeat`);Q.customSchemes.push([e,t])}function gh(){Q.scanner=Jm(Q.customSchemes);for(let e=0;e<Q.tokenQueue.length;e++)Q.tokenQueue[e][1]({scanner:Q.scanner});Q.parser=lh(Q.scanner.tokens);for(let e=0;e<Q.pluginQueue.length;e++)Q.pluginQueue[e][1]({scanner:Q.scanner,parser:Q.parser});return Q.initialized=!0,Q}function _h(e){return Q.initialized||gh(),uh(Q.parser.start,e,Ym(Q.scanner.start,e))}_h.scan=Ym;function vh(e,t=null,n=null){if(t&&typeof t==`object`){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}let r=new eh(n),i=_h(e),a=[];for(let e=0;e<i.length;e++){let n=i[e];n.isLink&&(!t||n.t===t)&&r.check(n)&&a.push(n.toFormattedObject(r))}return a}var yh=`[\0- \xA0 -\u2029 ]`,bh=new RegExp(yh),xh=RegExp(`${yh}$`),Sh=new RegExp(yh,`g`);function Ch(e){return e.length===1?e[0].isLink:e.length===3&&e[1].isLink?[`()`,`[]`].includes(e[0].value+e[2].value):!1}function wh(e){return new yr({key:new Sr(`autolink`),appendTransaction:(t,n,r)=>{let i=t.some(e=>e.docChanged)&&!n.doc.eq(r.doc),a=t.some(e=>e.getMeta(`preventAutolink`));if(!i||a)return;let{tr:o}=r;if(Yu(zu(n.doc,[...t])).forEach(({newRange:t})=>{let n=Vu(r.doc,t,e=>e.isTextblock),i,a;if(n.length>1)i=n[0],a=r.doc.textBetween(i.pos,i.pos+i.node.nodeSize,void 0,` `);else if(n.length){let e=r.doc.textBetween(t.from,t.to,` `,` `);if(!xh.test(e))return;i=n[0],a=r.doc.textBetween(i.pos,t.to,void 0,` `)}if(i&&a){let t=a.split(bh).filter(Boolean);if(t.length<=0)return!1;let n=t[t.length-1],s=i.pos+a.lastIndexOf(n);if(!n)return!1;let c=_h(n).map(t=>t.toObject(e.defaultProtocol));if(!Ch(c))return!1;c.filter(e=>e.isLink).map(e=>({...e,from:s+e.start+1,to:s+e.end+1})).filter(e=>r.schema.marks.code?!r.doc.rangeHasMark(e.from,e.to,r.schema.marks.code):!0).filter(t=>e.validate(t.value)).filter(t=>e.shouldAutoLink(t.value)).forEach(t=>{Xu(t.from,t.to,r.doc).some(t=>t.mark.type===e.type)||o.addMark(t.from,t.to,e.type.create({href:t.href}))})}}),o.steps.length)return o}})}function Th(e){return new yr({key:new Sr(`handleClickLink`),props:{handleClick:(t,n,r)=>{if(r.button!==0||!t.editable)return!1;let i=r.target,a=[];for(;i.nodeName!==`DIV`;)a.push(i),i=i.parentNode;if(!a.find(e=>e.nodeName===`A`))return!1;let o=Ku(t.state,e.type.name),s=r.target,c=s?.href??o.href,l=s?.target??o.target;return s&&c?(window.open(c,l),!0):!1}}})}function Eh(e){return new yr({key:new Sr(`handlePasteLink`),props:{handlePaste:(t,n,r)=>{let{state:i}=t,{selection:a}=i,{empty:o}=a;if(o)return!1;let s=``;r.content.forEach(e=>{s+=e.textContent});let c=vh(s,{defaultProtocol:e.defaultProtocol}).find(e=>e.isLink&&e.value===s);return!s||!c?!1:e.editor.commands.setMark(e.type,{href:c.href})}}})}function Dh(e,t){let n=[`http`,`https`,`ftp`,`ftps`,`mailto`,`tel`,`callto`,`sms`,`cid`,`xmpp`];return t&&t.forEach(e=>{let t=typeof e==`string`?e:e.scheme;t&&n.push(t)}),!e||e.replace(Sh,``).match(RegExp(`^(?:(?:${n.join(`|`)}):|[^a-z]|[a-z0-9+.\-]+(?:[^a-z+.\-:]|$))`,`i`))}var Oh=gl.create({name:`link`,priority:1e3,keepOnSplit:!1,exitable:!0,onCreate(){this.options.validate&&!this.options.shouldAutoLink&&(this.options.shouldAutoLink=this.options.validate,console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")),this.options.protocols.forEach(e=>{if(typeof e==`string`){hh(e);return}hh(e.scheme,e.optionalSlashes)})},onDestroy(){mh()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],defaultProtocol:`http`,HTMLAttributes:{target:`_blank`,rel:`noopener noreferrer nofollow`,class:null},isAllowedUri:(e,t)=>!!Dh(e,t.protocols),validate:e=>!!e,shouldAutoLink:e=>!!e}},addAttributes(){return{href:{default:null,parseHTML(e){return e.getAttribute(`href`)}},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:`a[href]`,getAttrs:e=>{let t=e.getAttribute(`href`);return!t||!this.options.isAllowedUri(t,{defaultValidate:e=>!!Dh(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?!1:null}}]},renderHTML({HTMLAttributes:e}){return this.options.isAllowedUri(e.href,{defaultValidate:e=>!!Dh(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?[`a`,Xc(this.options.HTMLAttributes,e),0]:[`a`,Xc(this.options.HTMLAttributes,{...e,href:``}),0]},addCommands(){return{setLink:e=>({chain:t})=>{let{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:e=>!!Dh(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().setMark(this.name,e).setMeta(`preventAutolink`,!0).run():!1},toggleLink:e=>({chain:t})=>{let{href:n}=e;return this.options.isAllowedUri(n,{defaultValidate:e=>!!Dh(e,this.options.protocols),protocols:this.options.protocols,defaultProtocol:this.options.defaultProtocol})?t().toggleMark(this.name,e,{extendEmptyMarkRange:!0}).setMeta(`preventAutolink`,!0).run():!1},unsetLink:()=>({chain:e})=>e().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta(`preventAutolink`,!0).run()}},addPasteRules(){return[kd({find:e=>{let t=[];if(e){let{protocols:n,defaultProtocol:r}=this.options,i=vh(e).filter(e=>e.isLink&&this.options.isAllowedUri(e.value,{defaultValidate:e=>!!Dh(e,n),protocols:n,defaultProtocol:r}));i.length&&i.forEach(e=>t.push({text:e.value,data:{href:e.href},index:e.start}))}return t},type:this.type,getAttributes:e=>({href:e.data?.href})})]},addProseMirrorPlugins(){let e=[],{protocols:t,defaultProtocol:n}=this.options;return this.options.autolink&&e.push(wh({type:this.type,defaultProtocol:this.options.defaultProtocol,validate:e=>this.options.isAllowedUri(e,{defaultValidate:e=>!!Dh(e,t),protocols:t,defaultProtocol:n}),shouldAutoLink:this.options.shouldAutoLink})),this.options.openOnClick===!0&&e.push(Th({type:this.type})),this.options.linkOnPaste&&e.push(Eh({editor:this.editor,defaultProtocol:this.options.defaultProtocol,type:this.type})),e}}),kh=Od.create({name:`paragraph`,priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:`block`,content:`inline*`,parseHTML(){return[{tag:`p`}]},renderHTML({HTMLAttributes:e}){return[`p`,Xc(this.options.HTMLAttributes,e),0]},addCommands(){return{setParagraph:()=>({commands:e})=>e.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),Ah=El.create({name:`placeholder`,addOptions(){return{emptyEditorClass:`is-editor-empty`,emptyNodeClass:`is-empty`,placeholder:`Write something …`,showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new yr({key:new Sr(`placeholder`),props:{decorations:({doc:e,selection:t})=>{let n=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:r}=t,i=[];if(!n)return null;let a=this.editor.isEmpty;return e.descendants((e,t)=>{let n=r>=t&&r<=t+e.nodeSize,o=!e.isLeaf&&td(e);if((n||!this.options.showOnlyCurrent)&&o){let r=[this.options.emptyNodeClass];a&&r.push(this.options.emptyEditorClass);let o=Qo.node(t,t+e.nodeSize,{class:r.join(` `),"data-placeholder":typeof this.options.placeholder==`function`?this.options.placeholder({editor:this.editor,node:e,pos:t,hasAnchor:n}):this.options.placeholder});i.push(o)}return this.options.includeChildren}),ts.create(e,i)}}})]}}),jh=Od.create({name:`text`,group:`inline`});function Mh({placeholder:e,autofocus:t=!1,content:n=``}){return{extensions:[hp,jh,kh,Oh.configure({openOnClick:!1}),Ah.configure({placeholder:e,showOnlyWhenEditable:!1}),mp.configure({}),gp.configure({})],content:n,autofocus:t,editorProps:{attributes:{class:`gh-comment-content focus:outline-0`,"data-testid":`editor`}},parseOptions:{preserveWhitespace:`full`}}}function Nh(e,t){let n=(0,O.useRef)(null);return[n,(0,O.useCallback)(r=>{n.current&&t&&t(n.current),r&&e&&e(r),n.current=r},[e,t])]}function Ph(e){let{popup:t}=k();return t?.type===e}function Fh(e){let{t}=k();return(0,O.useMemo)(()=>w(e,t),[e])}function Ih(e,t=!1){let[n,r]=(0,O.useState)(t),i=(0,O.useMemo)(()=>({...Mh(e)}),[e]),a=of(i,[i]);return(0,O.useEffect)(()=>{if(a){let e=()=>{r(!a.isEmpty)};return a.on(`update`,e),a.on(`transaction`,e),e(),()=>{a.off(`update`,e),a.off(`transaction`,e)}}},[a]),{editor:a,hasContent:n}}function Lh(e,t){let n=(0,O.useCallback)(()=>{if(e.current)for(let n of Object.values(t))e.current.classList.add(...n.default.split(` `)),e.current.classList.remove(...n.outOfViewport.split(` `))},[e,t]),r=(0,O.useCallback)(n=>{if(e.current)for(let[r,i]of Object.entries(t))n[r]?(e.current.classList.add(...i.outOfViewport.split(` `)),e.current.classList.remove(...i.default.split(` `))):(e.current.classList.add(...i.default.split(` `)),e.current.classList.remove(...i.outOfViewport.split(` `)))},[e,t]),i=(0,O.useCallback)(()=>{if(e.current){let t=e.current.ownerDocument,i=t.defaultView||window;n();let a=e.current.getBoundingClientRect();r({top:a.top<0,bottom:a.bottom>(i.innerHeight||t.documentElement.clientHeight),left:a.left<0,right:a.right>(i.innerWidth||t.documentElement.clientWidth)})}},[e]);(0,O.useLayoutEffect)(()=>{i()},[e]),(0,O.useEffect)(()=>(window.addEventListener(`resize`,i),()=>{window.removeEventListener(`resize`,i)}),[])}let Rh=({comment:e,submit:t,progress:n,setProgress:r,close:i,isOpen:a,editor:o,submitText:s,submitSize:c,openForm:l})=>{let{dispatchAction:u,t:d}=k(),f=null;(0,O.useEffect)(()=>{if(o&&l){let t=()=>{let t=e&&l.type===`edit`?o.getHTML()!==e.html:!o.isEmpty;l.hasUnsavedChanges!==t&&u(`setCommentFormHasUnsavedChanges`,{id:l.id,hasUnsavedChanges:t})};return o.on(`update`,t),o.on(`transaction`,t),t(),()=>{o.off(`update`,t),o.off(`transaction`,t)}}},[o,e,l,u]),n===`sending`&&(f=(0,m.jsx)(A,{className:`size-[24px] fill-white`,"data-testid":`button-spinner`}));let p=(0,O.useCallback)(e=>{if(o?.isFocused){e.stopPropagation();return}},[o]),h=(0,O.useCallback)(async()=>{if(!(!o||o.isEmpty)){r(`sending`);try{await t({html:o.getHTML()})}catch{r(`error`);return}return i?i():(r(`sent`),o.chain().clearContent().blur().run()),!1}},[r,o,t,i]);return(0,O.useEffect)(()=>{let e=e=>{if(e.metaKey||e.ctrlKey){e.key===`Enter`&&o?.isFocused&&(h(),o?.commands.blur());return}if(e.key===`Escape`){o?.isFocused&&(i?i():o?.commands.blur());return}};return window.addEventListener(`keydown`,e,{passive:!0}),()=>{window.removeEventListener(`keydown`,e)}},[o,i,h]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`div`,{className:`min-h-[120px] w-full rounded-lg border border-black/10 bg-white/75 p-2 pb-[68px] font-sans text-md leading-normal transition-all delay-100 duration-150 focus:outline-0 dark:bg-white/10 dark:text-neutral-300 sm:px-3 sm:text-lg ${a?`cursor-text`:`cursor-pointer`}`,"data-testid":`form-editor`,children:(0,m.jsx)(Kd,{editor:o,onMouseDown:p,onTouchStart:p})}),(0,m.jsxs)(`div`,{className:`absolute bottom-1 right-1 flex space-x-4 transition-[opacity] duration-150 sm:bottom-2 sm:right-2`,children:[i&&(0,m.jsx)(`button`,{className:`ml-2.5 font-sans text-sm font-medium text-neutral-900/50 outline-0 transition-all hover:text-neutral-900/70 dark:text-white/60 dark:hover:text-white/75`,type:`button`,onClick:i,children:d(`Cancel`)}),(0,m.jsxs)(`button`,{className:`flex w-auto items-center justify-center ${c===`medium`&&`sm:min-w-[100px]`} ${c===`small`&&`sm:min-w-[64px]`} h-[40px] rounded-md bg-[var(--gh-accent-color)] px-3 py-2 text-center font-sans text-base font-medium text-white outline-0 transition-colors duration-200 hover:brightness-105 disabled:bg-black/5 disabled:text-neutral-900/30 dark:disabled:bg-white/15 dark:disabled:text-white/35 sm:text-sm`,"data-testid":`submit-form-button`,disabled:!o||o.isEmpty,type:`button`,onClick:h,children:[f&&(0,m.jsx)(`span`,{className:`mr-1`,children:f}),s&&(0,m.jsx)(`span`,{children:s})]})]})]})};var zh=({show:e,name:t,expertise:n,replyingToText:r,editName:i,editExpertise:a})=>{let{t:o}=k(),s=!!r;return(0,m.jsxs)(fp,{"data-testid":`form-header`,enter:`transition duration-500 delay-100 ease-in-out`,enterFrom:`opacity-0 -translate-x-2`,enterTo:`opacity-100 translate-x-0`,leave:`transition-none duration-0`,leaveFrom:`opacity-100`,leaveTo:`opacity-0`,show:e,children:[(0,m.jsxs)(`div`,{className:`flex flex-wrap`,children:[(0,m.jsx)(`div`,{className:`w-full font-sans text-base font-bold leading-snug text-neutral-900 dark:text-white/85 sm:w-auto sm:text-sm`,"data-testid":`member-name`,onMouseDown:i,children:t||`Anonymous`}),(0,m.jsx)(`div`,{className:`flex items-baseline justify-start`,children:(0,m.jsxs)(`button`,{className:`group flex items-center justify-start whitespace-nowrap text-left font-sans text-base leading-snug text-neutral-900/50 transition duration-150 hover:text-black/75 dark:text-white/60 dark:hover:text-white/75 sm:text-sm ${!n&&`text-black/30 hover:text-black/50 dark:text-white/30 dark:hover:text-white/50`}`,"data-testid":`expertise-button`,type:`button`,onMouseDown:a,children:[(0,m.jsxs)(`span`,{children:[(0,m.jsx)(`span`,{className:`mx-[0.3em] hidden sm:inline`,children:`·`}),n||o(`Add your expertise`)]}),n&&(0,m.jsx)(de,{className:`ml-1 size-[12px] translate-x-[-6px] stroke-black/50 opacity-0 transition-all duration-100 ease-out group-hover:translate-x-0 group-hover:stroke-black/75 group-hover:opacity-100 dark:stroke-white/60 dark:group-hover:stroke-white/75`})]})})]}),s&&(0,m.jsxs)(`div`,{className:`mt-0.5 line-clamp-1 font-sans text-base leading-snug text-neutral-900/50 dark:text-white/60 sm:text-sm`,"data-testid":`replying-to`,children:[(0,m.jsxs)(`span`,{children:[o(`Reply to`),`:`]}),`\xA0`,(0,m.jsx)(`span`,{className:`font-semibold text-neutral-900/60 dark:text-white/70`,children:r})]})]})},Bh=({comment:e,submit:t,submitText:n,submitSize:r,close:i,editor:a,reduced:o,isOpen:s,openForm:c})=>{let{member:l}=k(),u=Ph(`addDetailsPopup`),[d,f]=(0,O.useState)(`default`),p=(0,O.useRef)(null),h=l?.name;(d===`sending`||h&&u)&&(s=!0);let g=e=>{if(a?.isFocused){e.preventDefault();return}};return(0,O.useEffect)(()=>{a&&a.setEditable(!!h&&d!==`sending`)},[a,h,d]),(0,m.jsx)(`form`,{ref:p,"data-testid":`form`,onMouseDown:g,onTouchStart:g,children:(0,m.jsx)(Rh,{close:i,comment:e,editor:a,isOpen:s,openForm:c,progress:d,reduced:o,setProgress:f,submit:t,submitSize:r,submitText:n})})},Vh=({editor:e,isOpen:t,reduced:n,openForm:r,threadedLayout:i=!1,children:a})=>{let{member:o,dispatchAction:s}=k(),c=o?.name,l=o?.expertise,u=``;t&&(u=r?.in_reply_to_snippet?`pl-[1px] pt-[68px] sm:pl-[44px] sm:pt-[56px]`:`pl-[1px] pt-[48px] sm:pl-[44px] sm:pt-[40px]`);let d=(0,O.useCallback)(t=>{e?.commands?.blur(),s(`openPopup`,{type:`addDetailsPopup`,expertiseAutofocus:t.expertiseAutofocus??!1,callback:function(t){e&&t&&(e.setEditable(!0),e.commands.focus())}})},[e,s]),f=(0,O.useCallback)(()=>{d({expertiseAutofocus:!1})},[d]),p=(0,O.useCallback)(()=>{d({expertiseAutofocus:!0})},[d]),h=(0,O.useCallback)(()=>{if(e&&!e.isFocused){if(!c){f();return}e.commands.focus()}},[e,f,c]);return(0,m.jsx)(`div`,{className:`${i?``:`-mx-2 mt-[-10px]`} rounded-md transition duration-200 ${t?`cursor-default`:`cursor-pointer`}`,children:(0,m.jsxs)(`div`,{className:`relative w-full`,onClick:h,children:[(0,m.jsx)(`div`,{className:`pr-[1px] font-sans leading-normal dark:text-neutral-300`,children:(0,m.jsx)(`div`,{className:`relative mb-7 w-full pl-[40px] transition-[padding] delay-100 duration-150 sm:pl-[44px] ${n&&`pl-0`} ${u}`,children:a})}),(0,m.jsxs)(`div`,{className:`absolute left-0 flex h-11 w-full items-start justify-start sm:h-12 ${i?`top-0`:`top-1`}`,children:[(0,m.jsx)(`div`,{className:`pointer-events-none mr-2 grow-0 sm:mr-3`,children:(0,m.jsx)(he,{member:o})}),(0,m.jsx)(`div`,{className:`grow-1 mt-0.5 w-full`,children:(0,m.jsx)(zh,{editExpertise:p,editName:f,expertise:l,name:c,replyingToId:r?.in_reply_to_id,replyingToText:r?.in_reply_to_snippet,show:t})})]})]})})},Hh=({comment:e,openForm:t,parent:n})=>{let{dispatchAction:r,t:i}=k(),{editor:a}=Ih((0,O.useMemo)(()=>({placeholder:i(`Edit this comment`),autofocus:!1,content:e.html}),[e]));(0,O.useEffect)(()=>{a&&a.chain().focus().command(({tr:e,commands:t})=>t.setTextSelection({from:e.doc.content.size,to:e.doc.content.size})).run()},[a]);let o=(0,O.useCallback)(async({html:t})=>{await r(`editComment`,{comment:{id:e.id,html:t},parent:n})},[n,e,r]);return(0,m.jsx)(`div`,{className:`relative w-full`,children:(0,m.jsx)(Bh,{close:(0,O.useCallback)(()=>{r(`closeCommentForm`,t.id)},[r,t]),comment:e,editor:a,isOpen:!0,openForm:t,reduced:D(),submit:o,submitSize:`small`,submitText:i(`Save`)})})},Uh=e=>(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,m.jsx)(`path`,{d:`M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z`}),(0,m.jsx)(`path`,{d:`M17 14V2`})]}),Wh=e=>(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,m.jsx)(`path`,{d:`M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z`}),(0,m.jsx)(`path`,{d:`M7 10v12`})]}),Gh=({comment:e,disabled:t,setDisabled:n})=>{let{dispatchAction:r,isMember:i,hasRequiredTier:a,t:o}=k(),[s,c]=(0,O.useState)(``),[l,u]=(0,O.useState)(!1),d=i&&a,f=e.count.likes,p=t??l,h=n??u,g=()=>{r(`openPopup`,{type:`ctaPopup`,commentId:e.id})},_=async()=>{if(!d){g();return}h(!0);try{e.liked?await r(`unlikeComment`,e):(await r(`likeComment`,e),c(`animate-heartbeat`),setTimeout(()=>{c(``)},400))}finally{h(!1)}};return(0,m.jsxs)(`button`,{"aria-label":e.liked?o(`Remove like`):o(`Like`),className:`duration-50 group flex cursor-pointer items-center gap-1.5 font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${e.liked?`text-black/90 dark:text-white/90`:`text-black/50 hover:text-black/75 dark:text-white/60 dark:hover:text-white/75`}`,"data-testid":`like-button`,disabled:p,type:`button`,onClick:_,children:[(0,m.jsx)(Wh,{className:s+` h-4 w-4 ${e.liked?`fill-black dark:fill-white stroke-black dark:stroke-white`:`stroke-black/50 group-hover:stroke-black/75 dark:stroke-white/60 dark:group-hover:stroke-white/75`} ${!e.liked&&d&&`group-hover:stroke-black/75 dark:group-hover:stroke-white/75`} transition duration-50 ease-linear`}),(0,m.jsx)(`span`,{className:`tabular-nums`,children:f})]})};let Kh=({comment:e,disabled:t,setDisabled:n})=>{let{dispatchAction:r,isMember:i,hasRequiredTier:a,t:o}=k(),[s,c]=(0,O.useState)(``),[l,u]=(0,O.useState)(!1),d=i&&a,f=t??l,p=n??u,h=()=>{r(`openPopup`,{type:`ctaPopup`,commentId:e.id})},g=async()=>{if(!d){h();return}p(!0);try{e.disliked?await r(`undislikeComment`,e):(await r(`dislikeComment`,e),c(`animate-heartbeat`),setTimeout(()=>{c(``)},400))}finally{p(!1)}};return(0,m.jsx)(`button`,{"aria-label":e.disliked?o(`Remove dislike`):o(`Dislike`),className:`duration-50 group flex cursor-pointer items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${e.disliked?`text-black/90 dark:text-white/90`:`text-black/50 hover:text-black/75 dark:text-white/60 dark:hover:text-white/75`}`,"data-testid":`dislike-button`,disabled:f,type:`button`,onClick:g,children:(0,m.jsx)(Uh,{className:s+` h-4 w-4 ${e.disliked?`fill-black dark:fill-white stroke-black dark:stroke-white`:`stroke-black/50 group-hover:stroke-black/75 dark:stroke-white/60 dark:group-hover:stroke-white/75`} ${!e.disliked&&d&&`group-hover:stroke-black/75 dark:group-hover:stroke-white/75`} transition duration-50 ease-linear`})})};var qh=Gh,Jh=({count:e,liked:t})=>(0,m.jsxs)(`div`,{className:`flex items-center gap-1.5`,"data-testid":`like-count`,children:[(0,m.jsx)(Wh,{className:`size-4 ${t?`fill-black stroke-black dark:fill-white dark:stroke-white`:`stroke-black/50 dark:stroke-white/60`}`}),(0,m.jsx)(`span`,{className:`font-sans text-base tabular-nums sm:text-sm ${t?`text-black/90 dark:text-white/90`:`text-black/50 dark:text-white/60`}`,children:e})]}),Yh=e=>(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,m.jsx)(`path`,{d:`M15 3h6v6`}),(0,m.jsx)(`path`,{d:`M10 14 21 3`}),(0,m.jsx)(`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`})]}),Xh=e=>(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,m.jsx)(`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`}),(0,m.jsx)(`circle`,{cx:12,cy:12,r:3})]}),Zh=e=>(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,m.jsx)(`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`}),(0,m.jsx)(`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`}),(0,m.jsx)(`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`}),(0,m.jsx)(`path`,{d:`m2 2 20 20`})]}),Qh=e=>(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,m.jsx)(`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`}),(0,m.jsx)(`path`,{d:`m15 5 4 4`})]}),$h=e=>(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,m.jsx)(`path`,{d:`M12 17v5`}),(0,m.jsx)(`path`,{d:`M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z`})]}),eg=e=>(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,m.jsx)(`path`,{d:`M12 17v5`}),(0,m.jsx)(`path`,{d:`M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89`}),(0,m.jsx)(`path`,{d:`m2 2 20 20`}),(0,m.jsx)(`path`,{d:`M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11`})]}),tg=e=>(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:[(0,m.jsx)(`path`,{d:`M10 11v6`}),(0,m.jsx)(`path`,{d:`M14 11v6`}),(0,m.jsx)(`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`}),(0,m.jsx)(`path`,{d:`M3 6h18`}),(0,m.jsx)(`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`})]}),ng=({comment:e,close:t,showAuthorActions:n=!1,toggleEdit:r})=>{let{dispatchAction:i,t:a,adminUrl:o}=k(),s=le(),c=e=>()=>{e(),t()},l=r&&c(r),u=c(()=>{i(`openPopup`,{type:`deletePopup`,comment:e})}),d=c(()=>i(`hideComment`,e)),f=c(()=>i(`showComment`,e)),p=c(()=>i(`pinComment`,e)),h=c(()=>i(`unpinComment`,e)),g=e.status!==`published`,_=s?.commentsPinning===!0&&!e.parent_id&&e.status!==`deleted`,v=o?`${o}#/comments/?id=is:${e.id}`:null,y=`flex w-full items-center gap-3 rounded px-3 py-2 text-left text-[14px] leading-5 transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700`,b=`${y} text-neutral-900 dark:text-white`,x=`${y} text-red-600 dark:text-red-500`,S=`size-4 shrink-0`;return(0,m.jsxs)(`div`,{className:`flex w-full flex-col gap-0.5`,children:[v&&(0,m.jsxs)(`a`,{className:b,"data-testid":`view-in-admin-button`,href:v,rel:`noopener noreferrer`,target:`_blank`,onClick:t,children:[(0,m.jsx)(Yh,{"aria-hidden":`true`,className:S}),(0,m.jsx)(`span`,{children:a(`View in admin`)})]}),_&&(e.pinned?(0,m.jsxs)(`button`,{className:b,"data-testid":`unpin-button`,type:`button`,onClick:h,children:[(0,m.jsx)(eg,{"aria-hidden":`true`,className:S}),(0,m.jsx)(`span`,{children:a(`Unpin comment`)})]}):(0,m.jsxs)(`button`,{className:b,"data-testid":`pin-button`,type:`button`,onClick:p,children:[(0,m.jsx)($h,{"aria-hidden":`true`,className:S}),(0,m.jsx)(`span`,{children:a(`Pin comment`)})]})),g?(0,m.jsxs)(`button`,{className:b,"data-testid":`show-button`,type:`button`,onClick:f,children:[(0,m.jsx)(Xh,{"aria-hidden":`true`,className:S}),(0,m.jsx)(`span`,{children:a(`Show comment`)})]}):(0,m.jsxs)(`button`,{className:b,"data-testid":`hide-button`,type:`button`,onClick:d,children:[(0,m.jsx)(Zh,{"aria-hidden":`true`,className:S}),(0,m.jsx)(`span`,{children:a(`Hide comment`)})]}),n&&(0,m.jsx)(`div`,{className:`my-1 border-t border-neutral-200 dark:border-neutral-700`}),n&&l&&(0,m.jsxs)(`button`,{className:b,"data-testid":`edit`,type:`button`,onClick:l,children:[(0,m.jsx)(Qh,{"aria-hidden":`true`,className:S}),(0,m.jsx)(`span`,{children:a(`Edit`)})]}),n&&(0,m.jsxs)(`button`,{className:x,"data-testid":`delete`,type:`button`,onClick:u,children:[(0,m.jsx)(tg,{"aria-hidden":`true`,className:S}),(0,m.jsx)(`span`,{children:a(`Delete`)})]})]})},rg=({comment:e,close:t,toggleEdit:n})=>{let{dispatchAction:r,t:i}=k(),a=()=>{r(`openPopup`,{type:`deletePopup`,comment:e}),t()},o=`flex w-full items-center gap-3 rounded px-3 py-2 text-left text-[14px] leading-5 transition-colors hover:bg-neutral-100 dark:hover:bg-neutral-700`,s=`${o} text-neutral-900 dark:text-white`,c=`${o} text-red-600 dark:text-red-500`,l=`size-4 shrink-0`;return(0,m.jsxs)(`div`,{className:`flex w-full flex-col gap-0.5`,children:[(0,m.jsxs)(`button`,{className:s,"data-testid":`edit`,type:`button`,onClick:n,children:[(0,m.jsx)(Qh,{"aria-hidden":`true`,className:l}),(0,m.jsx)(`span`,{children:i(`Edit`)})]}),(0,m.jsxs)(`button`,{className:c,"data-testid":`delete`,type:`button`,onClick:a,children:[(0,m.jsx)(tg,{"aria-hidden":`true`,className:l}),(0,m.jsx)(`span`,{children:i(`Delete`)})]})]})},ig=e=>(0,m.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`,...e,children:(0,m.jsx)(`path`,{d:`M4 22V4a1 1 0 0 1 .4-.8A6 6 0 0 1 8 2c3 0 5 2 7.333 2q2 0 3.067-.8A1 1 0 0 1 20 4v10a1 1 0 0 1-.4.8A6 6 0 0 1 16 16c-3 0-5-2-8-2a6 6 0 0 0-4 1.528`})}),ag=({comment:e,close:t})=>{let{dispatchAction:n,t:r}=k();return(0,m.jsx)(`div`,{className:`flex w-full flex-col gap-0.5`,children:(0,m.jsxs)(`button`,{className:`flex w-full items-center gap-3 rounded px-3 py-2 text-left text-[14px] leading-5 text-neutral-900 transition-colors hover:bg-neutral-100 dark:text-white dark:hover:bg-neutral-700`,type:`button`,onClick:()=>{n(`openPopup`,{type:`reportPopup`,comment:e}),t()},children:[(0,m.jsx)(ig,{"aria-hidden":`true`,className:`size-4 shrink-0`}),(0,m.jsx)(`span`,{className:`hidden sm:inline`,children:r(`Report comment`)}),(0,m.jsx)(`span`,{className:`sm:hidden`,children:r(`Report`)})]})})},og=({comment:e,close:t,toggleEdit:n})=>{let{member:r,isAdmin:i}=k(),a=r&&e.member?.uuid===r?.uuid,o=(0,O.useRef)(null),s=(0,O.useRef)(null);Lh(s,{bottom:{default:`top-0`,outOfViewport:`bottom-full mb-6`}}),(0,O.useEffect)(()=>{let e=()=>{t()};window.addEventListener(`click`,e,{passive:!0});let n=o.current?.ownerDocument?.defaultView;return n&&n!==window&&n.addEventListener(`click`,e,{passive:!0}),()=>{window.removeEventListener(`click`,e),n&&n!==window&&n.removeEventListener(`click`,e)}},[t]),(0,O.useEffect)(()=>{let e=e=>{e.key===`Escape`&&t()};return window.addEventListener(`keydown`,e,{passive:!0}),()=>{window.removeEventListener(`keydown`,e)}},[t]);let c=e=>{e.stopPropagation()},l=null;if(e.status===`published`)l=i?(0,m.jsx)(ng,{close:t,comment:e,showAuthorActions:!!a,toggleEdit:n}):a?(0,m.jsx)(rg,{close:t,comment:e,toggleEdit:n}):(0,m.jsx)(ag,{close:t,comment:e});else if(i)l=(0,m.jsx)(ng,{close:t,comment:e});else return null;return(0,m.jsx)(`div`,{ref:o,className:`relative`,"data-testid":`comment-context-menu`,onClick:c,children:(0,m.jsx)(`div`,{ref:s,className:`absolute z-10 w-52 rounded-lg bg-white p-1 font-sans text-sm shadow-lg outline-0 dark:bg-neutral-800 dark:text-white`,"data-testid":`comment-context-menu-inner`,children:l})})},sg=e=>(0,m.jsxs)(`svg`,{width:16,height:16,viewBox:`0 0 16 16`,fill:`black`,xmlns:`http://www.w3.org/2000/svg`,...e,children:[(0,m.jsx)(`path`,{d:`M3 12C3.82843 12 4.5 11.3284 4.5 10.5C4.5 9.67157 3.82843 9 3 9C2.17157 9 1.5 9.67157 1.5 10.5C1.5 11.3284 2.17157 12 3 12Z`}),(0,m.jsx)(`path`,{d:`M8 12C8.82843 12 9.5 11.3284 9.5 10.5C9.5 9.67157 8.82843 9 8 9C7.17157 9 6.5 9.67157 6.5 10.5C6.5 11.3284 7.17157 12 8 12Z`}),(0,m.jsx)(`path`,{d:`M13 12C13.8284 12 14.5 11.3284 14.5 10.5C14.5 9.67157 13.8284 9 13 9C12.1716 9 11.5 9.67157 11.5 10.5C11.5 11.3284 12.1716 12 13 12Z`})]}),cg=({comment:e,toggleEdit:t})=>{let[n,r]=(0,O.useState)(!1),i=()=>{r(e=>!e)},a=()=>{r(!1)};return(0,m.jsxs)(`div`,{"data-testid":`more-button`,children:[(0,m.jsx)(`button`,{className:`outline-0`,type:`button`,onClick:i,children:(0,m.jsx)(sg,{className:`duration-50 gh-comments-icon gh-comments-icon-more outline-0 transition ease-linear hover:fill-black/75 dark:hover:fill-white/75 ${n?`fill-black/75 dark:fill-white/75`:`fill-black/50 dark:fill-white/60`}`})}),n?(0,m.jsx)(og,{close:a,comment:e,toggleEdit:t}):null]})},lg=({comment:e})=>{let{dispatchAction:t,isAdmin:n,t:r}=k();if(le()?.commentsPinning!==!0||!e.pinned)return null;let i=`inline-flex items-center gap-1 rounded-full border border-amber-300/70 bg-amber-50 px-2 py-0.5 font-sans text-xs font-medium leading-none text-amber-800 dark:border-amber-400/30 dark:bg-amber-400/10 dark:text-amber-100`;if(n){let n=n=>{n.stopPropagation(),t(`unpinComment`,e)};return(0,m.jsxs)(`button`,{"aria-label":r(`Unpin comment`),className:`${i} group hover:border-amber-400 hover:bg-amber-100 dark:hover:border-amber-400/50 dark:hover:bg-amber-400/20`,"data-testid":`pinned-comment-label`,type:`button`,onClick:n,children:[(0,m.jsxs)(`span`,{className:`grid size-3 shrink-0`,children:[(0,m.jsx)($h,{"aria-hidden":`true`,className:`col-start-1 row-start-1 size-3 group-hover:opacity-0 group-focus-visible:opacity-0`}),(0,m.jsx)(eg,{"aria-hidden":`true`,className:`col-start-1 row-start-1 size-3 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100`})]}),(0,m.jsxs)(`span`,{className:`grid justify-items-start text-left`,children:[(0,m.jsx)(`span`,{className:`col-start-1 row-start-1 group-hover:opacity-0 group-focus-visible:opacity-0`,children:r(`Pinned`)}),(0,m.jsx)(`span`,{className:`col-start-1 row-start-1 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100`,children:r(`Unpin`)})]})]})}return(0,m.jsxs)(`span`,{className:i,"data-testid":`pinned-comment-label`,children:[(0,m.jsx)($h,{"aria-hidden":`true`,className:`size-3`}),r(`Pinned`)]})},ug=({loadMore:e,count:t})=>{let{t:n}=k(),r=t===1?n(`Show 1 more reply`):n(`Show {amount} more replies`,{amount:C(t)}),i=n(`{amount} more`,{amount:C(t)});return(0,m.jsx)(`div`,{className:`flex w-full items-center justify-start`,"data-testid":`replies-pagination`,children:(0,m.jsx)(`button`,{className:`group mb-10 ml-[48px] flex w-auto items-center px-0 pb-2 pt-0 text-left font-sans text-md font-semibold text-neutral-700 dark:text-white sm:mb-12 `,"data-testid":`reply-pagination-button`,type:`button`,onClick:e,children:(0,m.jsxs)(`span`,{className:`flex h-[40px] w-auto items-center justify-center whitespace-nowrap rounded-[6px] bg-black/5 px-4 py-2 text-center font-sans text-sm font-semibold text-neutral-700 outline-0 transition-all duration-150 hover:bg-black/10 dark:bg-white/15 dark:text-neutral-300 dark:hover:bg-white/20 dark:hover:text-neutral-100`,children:[`↓ `,(0,m.jsx)(`span`,{className:`ml-1 hidden sm:inline`,children:r}),(0,m.jsx)(`span`,{className:`ml-1 inline sm:hidden`,children:i}),` `]})})})},dg=3,fg=({comment:e,useThreading:t=!1})=>{let{commentIdToScrollTo:n}=k(),r=(0,O.useRef)(new Set(e.replies.map(e=>e.id))),[i,a]=(0,O.useState)(()=>!!n&&e.replies.slice(dg).some(e=>e.id===n)),o=e.replies.some(e=>!r.current.has(e.id)),s=i||o?e.replies:e.replies.slice(0,dg),c=e.replies.length-s.length;return(0,m.jsxs)(`div`,{children:[s.map((n,r)=>(0,m.jsx)(Kg,{comment:n,isLastSibling:r===s.length-1,layoutVariant:t?`reply`:`root`,parent:e,useThreading:t},n.id)),c>0&&(0,m.jsx)(ug,{count:c,loadMore:()=>{a(!0)}})]})},pg=e=>(0,m.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`none`,stroke:`black`,width:16,height:16,viewBox:`0 0 16 16`,...e,children:(0,m.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:1.3,d:`M1.333 7.206 6.539 2v3.254c3.645 0 8.461 1.432 8.461 7.81-1.757-2.994-3.58-3.905-8.46-3.905v3.254L1.332 7.206Z`})}),mg=({comment:e,disabled:t,isReplying:n,openReplyForm:r})=>{let{t:i,dispatchAction:a,isMember:o,hasRequiredTier:s}=k(),c=o&&s,l=()=>{if(!c){a(`openPopup`,{type:`ctaPopup`,commentId:e.id});return}r()};return(0,m.jsxs)(`button`,{className:`duration-50 group flex items-center font-sans text-base outline-0 transition-all ease-linear sm:text-sm ${n?`text-black/90 dark:text-white/90`:`text-black/50 hover:text-black/75 dark:text-white/60 dark:hover:text-white/75`}`,"data-testid":`reply-button`,disabled:!!t,type:`button`,onClick:l,children:[(0,m.jsx)(pg,{className:`mr-[6px] ${n?`fill-black dark:fill-white`:`stroke-black/50 group-hover:stroke-black/75 dark:stroke-white/60 dark:group-hover:stroke-white/75`} duration-50 transition ease-linear`}),i(`Reply`)]})},hg=({openForm:e,parent:t,threadedLayout:n=!1})=>{let{postId:r,dispatchAction:i,t:a}=k(),[,o]=Nh(ie),{editor:s}=Ih((0,O.useMemo)(()=>({placeholder:a(`Reply to comment`),autofocus:!0}),[])),c=(0,O.useCallback)(async({html:n})=>{await i(`addReply`,{parent:t,reply:{post_id:r,in_reply_to_id:e.in_reply_to_id,status:`published`,html:n}})},[t,r,e,i]),l=(0,O.useCallback)(()=>{i(`closeCommentForm`,e.id)},[i,e]),u=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`span`,{className:`hidden sm:inline`,children:a(`Add reply`)}),(0,m.jsx)(`span`,{className:`sm:hidden`,children:a(`Reply`)})]});return(0,m.jsx)(`div`,{ref:o,"data-testid":`reply-form`,children:(0,m.jsx)(`div`,{className:`${n?``:`mt-[-16px]`} pr-2`,children:(0,m.jsx)(Vh,{editor:s,isOpen:!0,openForm:e,reduced:D(),threadedLayout:n,children:(0,m.jsx)(Bh,{close:l,editor:s,isOpen:!0,openForm:e,reduced:D(),submit:c,submitSize:`medium`,submitText:u})})})})};let gg=(0,O.createContext)({requestFocusedThreadView:()=>{},requestInstantScroll:()=>{},navigateBackToParent:()=>{}});function _g(){return(0,O.useContext)(gg)}let vg=(0,O.createContext)({maxThreadDepth:4});function yg(){return(0,O.useContext)(vg)}var bg=({reply:e,threadParentComment:t,useThreading:n,depth:r})=>{let{t:i}=k(),{requestFocusedThreadView:a}=_g(),{maxThreadDepth:o}=yg(),s=e.nestedReplies.length>0,c=r>=o,l=e.siblingIndex===e.siblingCount-1,u=e.nestedReplies[0],d=null;return s&&!c?d=e.nestedReplies.map(e=>(0,m.jsx)(bg,{depth:r+1,reply:e,threadParentComment:t,useThreading:n},e.id)):s&&c&&(d=(0,m.jsxs)(`a`,{className:`relative mb-4 flex min-h-10 items-center gap-1.5 px-0 pl-1 font-sans text-[1.3rem] font-semibold text-neutral-900/55 transition-colors hover:text-neutral-900/80 dark:text-white/45 dark:hover:text-white/70`,"data-testid":`continue-thread-button`,href:y(u.id),target:`_parent`,onClick:()=>a(u.id),children:[(0,m.jsx)(`span`,{className:`pointer-events-none absolute -left-4 top-0 h-5 w-3 border-b border-l border-neutral-300 [border-bottom-left-radius:12px_16px] dark:border-neutral-700 sm:-left-5 sm:w-4 sm:[border-bottom-left-radius:16px_16px]`,"aria-hidden":!0}),(0,m.jsxs)(`span`,{children:[i(`Read more replies`),` ›`]})]})),(0,m.jsx)(Kg,{comment:e,isLastSibling:l,layoutVariant:`reply`,parent:t,useThreading:n,children:d})},xg=({replies:e,threadParentComment:t,useThreading:n,startDepth:r=1})=>(0,m.jsx)(m.Fragment,{children:e.map(e=>(0,m.jsx)(bg,{depth:r,reply:e,threadParentComment:t,useThreading:n},e.id))});function Sg(e){let t=e.replies||[],n=new Map,r=new Map,i=new Map;t.forEach(e=>{n.set(e.id,{...e,depth:1,nestedReplies:[],siblingIndex:0,siblingCount:0})});let a=[];t.forEach(e=>{let t=n.get(e.id);if(!t)return;let i=e.in_reply_to_id?n.get(e.in_reply_to_id):null;i&&i.id!==t.id?(r.set(t.id,i.id),i.nestedReplies.push(t)):(r.set(t.id,null),a.push(t))});let o=(e,t)=>{e.forEach((n,r)=>{n.depth=t,n.siblingIndex=r,n.siblingCount=e.length,i.set(n.id,t),o(n.nestedReplies,t+1)})};o(a,1);let s=e=>n.get(e),c=(e,t)=>{let i=e;for(;i.depth>t;){let e=r.get(i.id),t=e?n.get(e):null;if(!t)return i;i=t}return i};return{rootComment:e,roots:a,getWindowForComment:(t,n)=>{let r=s(t);if(!r||r.depth<=n)return null;let i=c(r,Math.floor((r.depth-1)/n)*n);return{topLevelComment:e,focusedComment:i,backComment:i}}}}function Cg(e){return Sg(e).roots}function wg(e,t,n){if(!t)return null;for(let r of e){if(r.id===t)return null;if(r.replies?.some(e=>e.id===t))return Sg(r).getWindowForComment(t,n)}return null}var Tg=({comment:e,useThreading:t})=>(0,m.jsx)(`div`,{children:(0,m.jsx)(xg,{replies:(0,O.useMemo)(()=>Cg(e),[e]),threadParentComment:e,useThreading:t})}),Eg=({children:e,comment:t,parent:n,useThreading:r,layoutVariant:i,isLastSibling:a})=>{let{commentsIsLoading:o}=k();return(0,m.jsx)(fp,{className:`${o?`animate-pulse`:``}`,"data-testid":`animated-comment`,enter:`transition-opacity duration-300 ease-out`,enterFrom:`opacity-0`,enterTo:`opacity-100`,leave:`transition-opacity duration-100`,leaveFrom:`opacity-100`,leaveTo:`opacity-0`,show:!0,appear:!0,children:(0,m.jsx)(Dg,{comment:t,isLastSibling:a,layoutVariant:i,parent:n,useThreading:r,children:e})})};let Dg=({children:e,comment:t,parent:n,useThreading:r=!1,layoutVariant:i=`root`,isLastSibling:a=!1})=>{let{dispatchAction:o,isAdmin:s}=k(),{showDeletedMessage:c,showHiddenMessage:l,showCommentContent:u}=kg(t,s,O.Children.count(e)>0),d=(0,O.useCallback)(()=>{o(`openCommentForm`,{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})},[t.id,o]);return c||l?(0,m.jsx)(jg,{comment:t,isLastSibling:a,layoutVariant:i,openEditMode:d,parent:n,useThreading:r,children:e}):u&&!l?(0,m.jsx)(Ag,{comment:t,isLastSibling:a,layoutVariant:i,openEditMode:d,parent:n,useThreading:r,children:e}):null};var Og=(e,t,n)=>{let r=n?t.find(t=>t.id===e.id&&t.type===`reply`):t.find(t=>(t.id===e.id||t.parent_id===e.id)&&t.type===`reply`);return{activeReplyForm:r,visibleReplyForm:r&&(n||!r.parent_id||r.parent_id===e.id)?r:void 0}},kg=(e,t,n)=>{let r=n||e.replies&&e.replies.length>0,i=e.status===`deleted`,a=e.status===`hidden`;return{showDeletedMessage:i&&r,showHiddenMessage:r&&a&&!t,showCommentContent:!i&&(t||e.status===`published`)}},Ag=({children:e,comment:t,parent:n,openEditMode:r,useThreading:i,layoutVariant:a=`root`,isLastSibling:o=!1})=>{let{dispatchAction:s,openCommentForms:c,isAdmin:l,commentIdToHighlight:u,commentIdFromHash:d}=k(),f=O.Children.count(e)>0,p=l&&t.status===`hidden`?`opacity-30`:``,h=c.find(e=>e.id===t.id&&e.type===`edit`),g=!!h,{activeReplyForm:_,visibleReplyForm:v}=Og(t,c,i),y=!!(_&&_.id===t.id),b=(0,O.useCallback)(async()=>{if(_&&_.id===t.id)s(`closeCommentForm`,_.id);else{let e={};n&&(e.in_reply_to_id=t.id,e.in_reply_to_snippet=oe(t)),await s(`openCommentForm`,{id:t.id,parent_id:n?.id,type:`reply`,hasUnsavedChanges:!1,...e})}},[t,n,_,s]),x=f||t.replies&&t.replies.length>0,S=!!v||x,C=(0,m.jsx)(he,{member:t.member}),w=n||t,T=d?t.id===d&&u===d:t.id===u;return(0,m.jsx)(Gg,{avatar:C,className:p,hasReplies:S,isLastSibling:o,isPinned:t.pinned,layoutVariant:a,memberUuid:t.member?.uuid,replies:(0,m.jsx)(Pg,{comment:t,parent:n,useThreading:i,children:e}),replyForm:v?(0,m.jsx)(Fg,{continueLine:x,openForm:v,parent:w,useThreading:i}):null,useThreading:i,children:(0,m.jsx)(`div`,{id:t.id,children:g?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(Rg,{className:p,comment:t,useThreading:i}),(0,m.jsx)(Hh,{comment:t,openForm:h,parent:n})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(Rg,{className:p,comment:t,useThreading:i}),(0,m.jsx)(zg,{className:p,html:t.html,isHighlighted:T}),(0,m.jsx)(Bg,{comment:t,highlightReplyButton:y,openEditMode:r,openReplyForm:b})]})})})},jg=({children:e,comment:t,openEditMode:n,parent:r,useThreading:i,layoutVariant:a=`root`,isLastSibling:o=!1})=>{let{isAdmin:s,openCommentForms:c,t:l}=k(),u=O.Children.count(e)>0,d=s&&t.status!==`deleted`?(0,m.jsx)(he,{member:t.member}):(0,m.jsx)(me,{}),f=t.status===`hidden`?l(`This comment has been hidden.`):t.status===`deleted`?l(`This comment has been removed.`):``,{visibleReplyForm:p}=Og(t,c,i),h=u||t.replies&&t.replies.length>0,g=!!p||h,_=s&&t.status===`hidden`,v=r||t;return(0,m.jsx)(Gg,{avatar:d,hasReplies:g,isLastSibling:o,isPinned:t.pinned,layoutVariant:a,replies:(0,m.jsx)(Pg,{comment:t,parent:r,useThreading:i,children:e}),replyForm:p?(0,m.jsx)(Fg,{continueLine:h,openForm:p,parent:v,useThreading:i}):null,useThreading:i,children:(0,m.jsx)(`div`,{className:`mt-[-3px] flex items-start`,id:t.id,children:(0,m.jsxs)(`div`,{className:`flex h-10 flex-row items-center gap-4 pb-[8px] pr-4`,children:[(0,m.jsx)(lg,{comment:t}),(0,m.jsx)(`p`,{className:`mt-[4px] font-sans text-md leading-normal text-neutral-900/40 dark:text-white/60 sm:text-lg`,children:f}),_&&(0,m.jsx)(`div`,{className:`mt-[4px]`,children:(0,m.jsx)(cg,{comment:t,toggleEdit:n})})]})})})},Mg=({comment:e})=>{let{member:t}=k(),n=t&&e.member&&e.member.uuid===t.uuid?t.expertise:e?.member?.expertise;return n?(0,m.jsxs)(`span`,{className:`[overflow-wrap:anywhere]`,children:[(0,m.jsx)(`span`,{className:`mx-[0.3em] hidden sm:inline-block`,children:`·`}),n]}):null},Ng=({comment:e})=>{let{t}=k();return e.edited_at?(0,m.jsxs)(`span`,{children:[`\xA0(`,t(`edited`),`)`]}):null},Pg=({children:e,comment:t,className:n=``,parent:r,useThreading:i=!1})=>{let a=O.Children.count(e)>0,o=a||t.replies&&t.replies.length>0,s=i&&!r;return o?(0,m.jsx)(`div`,{className:`${i?`ml-8 flow-root sm:ml-9`:`-ml-2 mb-4 mt-7 sm:mb-0 sm:mt-8`} ${n}`,children:a?e:s?(0,m.jsx)(Tg,{comment:t,useThreading:i}):(0,m.jsx)(fg,{comment:t,useThreading:i})}):null},Fg=({openForm:e,parent:t,useThreading:n,continueLine:r=!1})=>n?(0,m.jsxs)(`div`,{className:`relative ml-8 sm:ml-9 ${r?`pb-8 sm:pb-10`:`mb-8 sm:mb-10`}`,children:[r&&(0,m.jsx)(`div`,{className:`pointer-events-none absolute inset-y-0 -left-4 border-l border-neutral-300 dark:border-neutral-700 sm:-left-5`,"data-testid":`reply-form-continuation-line`,"aria-hidden":!0}),(0,m.jsx)(`div`,{className:`pointer-events-none absolute -left-4 top-0 h-4 w-3 border-b border-l border-neutral-300 [border-bottom-left-radius:12px_16px] dark:border-neutral-700 sm:-left-5 sm:w-4 sm:[border-bottom-left-radius:16px_16px]`,"data-testid":`reply-form-elbow`,"aria-hidden":!0}),(0,m.jsx)(hg,{openForm:e,parent:t,threadedLayout:!0})]}):(0,m.jsx)(`div`,{className:`my-8 sm:my-10`,children:(0,m.jsx)(hg,{openForm:e,parent:t})}),Ig=({comment:e})=>{let{t}=k();return(0,m.jsx)(`h4`,{className:`font-sans text-base font-bold leading-snug text-neutral-900 dark:text-white/85 sm:text-sm`,children:E(e,t)})};let Lg=({comment:e})=>{let{comments:t,t:n}=k(),r=S(t,e.in_reply_to_id),i=e.in_reply_to_snippet;(!r||r.status!==`published`)&&(i=`[${n(`removed`)}]`);let a=r&&r.status===`published`,o=`font-medium text-neutral-900/60 break-all transition-colors dark:text-white/70`,s=`${o} hover:text-neutral-900/75 dark:hover:text-white/85`;return a?(0,m.jsx)(`a`,{className:s,"data-testid":`comment-in-reply-to`,href:y(e.in_reply_to_id),target:`_parent`,children:i}):(0,m.jsx)(`span`,{className:o,"data-testid":`comment-in-reply-to`,children:i})};var Rg=({comment:e,className:t=``,useThreading:n})=>{let{member:r,t:i}=k(),a=Fh(e.created_at),o=r&&e.member&&e.member.uuid===r.uuid?r.expertise:e?.member?.expertise,s=!n&&e.in_reply_to_id&&e.in_reply_to_snippet,c=(0,m.jsxs)(`a`,{className:`hover:underline`,href:y(e.id),target:`_parent`,title:T(e.created_at),children:[(0,m.jsx)(`span`,{className:`mx-[0.3em]`,children:`·`}),a]});return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(`div`,{className:`mt-0.5 flex flex-wrap items-start sm:flex-row ${o?`flex-col`:`flex-row`} ${s?`mb-0.5`:`mb-2`} ${t}`,children:[(0,m.jsx)(Ig,{comment:e}),(0,m.jsx)(`div`,{className:`flex items-baseline pr-4 font-sans text-base leading-snug text-neutral-900/50 dark:text-white/60 sm:text-sm`,children:(0,m.jsxs)(`span`,{children:[(0,m.jsx)(Mg,{comment:e}),c,e.pinned&&(0,m.jsx)(`span`,{className:`ml-2 inline-flex align-middle`,children:(0,m.jsx)(lg,{comment:e})}),(0,m.jsx)(Ng,{comment:e})]})})]}),s&&(0,m.jsxs)(`div`,{className:`mb-2 line-clamp-1 font-sans text-base leading-snug text-neutral-900/50 dark:text-white/60 sm:text-sm`,children:[(0,m.jsx)(`span`,{children:i(`Replied to`)}),`:\xA0`,(0,m.jsx)(Lg,{comment:e})]})]})},zg=({html:e,className:t=``,isHighlighted:n})=>{if(!e)return null;let r=e;if(n){let t=new DOMParser().parseFromString(e,`text/html`);t.querySelectorAll(`p`).forEach(e=>{let n=t.createElement(`mark`);for(n.className=`animate-[highlight_2.5s_ease-out] [animation-delay:1s] bg-yellow-300/40 -my-0.5 py-0.5 dark:text-white/85 dark:bg-yellow-500/40`;e.firstChild;)n.appendChild(e.firstChild);e.appendChild(n)}),r=t.body.innerHTML}let i={__html:r};return(0,m.jsx)(`div`,{className:`mt mb-2 flex flex-row items-center gap-4 pr-4 ${t}`,children:(0,m.jsx)(`div`,{dangerouslySetInnerHTML:i,className:`gh-comment-content -mx-1 text-pretty rounded-md px-1 font-sans text-md leading-normal text-neutral-900 [overflow-wrap:anywhere] dark:text-white/85 sm:text-lg`,"data-testid":`comment-content`})})},Bg=({comment:e,openReplyForm:t,highlightReplyButton:n,openEditMode:r,className:i=``})=>{let{member:a,t:o,isMember:s,isAdmin:c,isCommentingDisabled:l}=k(),[u,d]=O.useState(!1),f=e.status===`published`,p=a&&e.member?.uuid===a?.uuid,h=!l,g=h,_=!l,v=(c||s&&f)&&!(l&&p);return c&&e.status===`hidden`?(0,m.jsxs)(`div`,{className:`flex items-center gap-4 ${i}`,children:[(0,m.jsx)(`span`,{className:`font-sans text-base leading-snug text-red-600 sm:text-sm`,children:o(`Hidden for members`)}),(0,m.jsx)(cg,{comment:e,toggleEdit:r})]}):(0,m.jsxs)(`div`,{className:`flex items-center gap-4 ${i}`,children:[h?(0,m.jsx)(qh,{comment:e,disabled:u,setDisabled:d}):(0,m.jsx)(Jh,{count:e.count.likes,liked:e.liked}),g&&(0,m.jsx)(Kh,{comment:e,disabled:u,setDisabled:d}),_&&(0,m.jsx)(mg,{comment:e,isReplying:n,openReplyForm:t}),v&&(0,m.jsx)(cg,{comment:e,toggleEdit:r})]})},Vg=({hasReplies:e,useThreading:t})=>e?t?(0,m.jsx)(`div`,{className:`ml-4 h-full grow self-start border-l border-neutral-300 dark:border-neutral-700`,"data-testid":`replies-line`}):(0,m.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,Hg=`mb-7`,Ug=`mb-4`,Wg=`bg-amber-50/70 px-3 py-3 dark:bg-amber-400/10`,Gg=({children:e,avatar:t,hasReplies:n,className:r=``,memberUuid:i=``,isLastSibling:a=!1,isPinned:o=!1,layoutVariant:s=`root`,replies:c,replyForm:l,useThreading:u})=>{let d=s===`reply`;return u?(0,m.jsxs)(`div`,{className:`relative flow-root ${n?`pb-4 sm:pb-0`:`pb-7`}`,children:[d&&!a&&(0,m.jsx)(`div`,{className:`pointer-events-none absolute inset-y-0 -left-4 border-l border-neutral-300 dark:border-neutral-700 sm:-left-5`,"aria-hidden":!0}),d&&(0,m.jsx)(`div`,{className:`pointer-events-none absolute -left-4 top-0 h-4 w-3 border-b border-l border-neutral-300 [border-bottom-left-radius:12px_16px] dark:border-neutral-700 sm:-left-5 sm:w-4 sm:[border-bottom-left-radius:16px_16px]`,"aria-hidden":!0}),(0,m.jsxs)(`div`,{className:`flex w-full flex-row`,"data-member-uuid":i,"data-testid":`comment-component`,children:[(0,m.jsxs)(`div`,{className:`mr-2 flex flex-col items-center justify-start sm:mr-3`,children:[(0,m.jsx)(`div`,{className:`flex-0 mb-1 ${r}`,children:t}),(0,m.jsx)(Vg,{hasReplies:n,useThreading:u})]}),(0,m.jsx)(`div`,{className:`grow ${n?`pb-7 sm:pb-8`:``}`,children:e})]}),l,n&&c]}):(0,m.jsxs)(`div`,{className:`flex w-full flex-row rounded-lg ${o?Wg:``} ${o?Ug:n?`mb-0`:Hg}`,"data-member-uuid":i,"data-pinned":o?`true`:void 0,"data-testid":`comment-component`,children:[(0,m.jsxs)(`div`,{className:`mr-2 flex flex-col items-center justify-start sm:mr-3`,children:[(0,m.jsx)(`div`,{className:`flex-0 mb-3 sm:mb-4 ${r}`,children:t}),(0,m.jsx)(Vg,{hasReplies:n,useThreading:u})]}),(0,m.jsxs)(`div`,{className:`grow`,children:[e,n&&c,l]})]})},Kg=Eg,qg=o(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Jg=o(((e,t)=>{var n=qg();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),Yg=l(o(((e,t)=>{t.exports=Jg()()}))(),1);function Xg(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Zg(e){"@babel/helpers - typeof";return Zg=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Zg(e)}function Qg(e,t){if(Zg(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Zg(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function $g(e){var t=Qg(e,`string`);return Zg(t)==`symbol`?t:t+``}function e_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,$g(r.key),r)}}function t_(e,t,n){return t&&e_(e.prototype,t),n&&e_(e,n),Object.defineProperty(e,`prototype`,{writable:!1}),e}function n_(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function r_(e,t){if(e==null)return{};var n,r,i=n_(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var i_=`TOKEN_PLACEHOLDER`,a_=`TOKEN_OPEN_TAG`,o_=`TOKEN_CLOSE_TAG`,s_=`TOKEN_SELF_TAG`,c_=`TOKEN_TEXT`,l_=`NODE_FRAGMENT`,u_=`NODE_TAG_ELEMENT`,d_=`NODE_VOID_ELEMENT`,f_=`NODE_PLACEHOLDER`,p_=`NODE_TEXT`,m_=[`type`,`children`],h_=function(){function e(t){var n=t.type,r=t.children,i=r_(t,m_);for(var a in Xg(this,e),this.type=n,this.children=r||[],i)this[a]=i[a];i.token&&(this.string=i.token.string)}return t_(e,[{key:`appendChild`,value:function(e){this.children.push(e)}},{key:`isLeaf`,get:function(){return this.children.length===0}}]),e}();h_.createTagNode=function(e,t){return new h_({type:u_,children:t,name:e.name,token:e})},h_.createFragmentNode=function(e){return new h_({type:l_,children:e})},h_.createVoidNode=function(e){return new h_({type:d_,name:e.name,token:e})},h_.createTextNode=function(e){return new h_({type:p_,text:e.string,token:e})},h_.createPlaceholderNode=function(e){return new h_({type:f_,name:e.name,token:e})};var g_=[{type:i_,regex:/{\s*(\w+)\s*}/g},{type:a_,regex:/<(\w+)>/g},{type:o_,regex:/<\/(\w+)>/g},{type:s_,regex:/<(\w+)\s*\/>/g}];function __(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=v_(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
107
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){o=!0,s=e},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(o)throw s}}}}function v_(e,t){if(e){if(typeof e==`string`)return y_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y_(e,t)}}function y_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function b_(e,t){var n=[],r=__(t),i;try{for(r.s();!(i=r.n()).done;)for(var a=i.value,o=a.type,s=a.regex,c;(c=s.exec(e))!==null;)n.push({type:o,string:c[0],name:c[1],start:c.index,end:c.index+c[0].length})}catch(e){r.e(e)}finally{r.f()}n.sort(function(e,t){return e.start-t.start});var l=[],u=0;n.forEach(function(t){if(t.start===u){u=t.end;return}var n=t.start,r=e.substring(u,n);l.push({type:c_,string:r,text:r,start:u,end:n}),u=t.end});var d=e.substring(u);return d!==``&&l.push({type:c_,string:d,start:u,end:e.length}),[].concat(l,n).sort(function(e,t){return e.start-t.start})}function x_(e,t){return t||=g_,new w_(b_(e,t)).parse()}var S_=`Syntax error. Please check if each open tag is closed correctly`,C_={type:`EPSILON`},w_=function(){function e(t){Xg(this,e),this.tokens=[].concat(t),this.tags=[]}return t_(e,[{key:`parse`,value:function(){var e=this.document();if(!this.predict(C_.type))throw Error(S_);return e}},{key:`document`,value:function(){var e=this.elementOrData();return h_.createFragmentNode(e)}},{key:`element`,value:function(){var e=this.openTag(),t=this.elementOrData();return this.endTag(),h_.createTagNode(e,t)}},{key:`openTag`,value:function(){if(!this.predict(`TOKEN_OPEN_TAG`))throw Error(S_);return this.pushTag(this.lookahead),this.match(a_)}},{key:`elementOrData`,value:function(){var e=[];if(this.predict(`TOKEN_OPEN_TAG`)&&(e.push(this.element()),e=e.concat(this.elementOrData())),this.predict(`TOKEN_SELF_TAG`,c_,`TOKEN_PLACEHOLDER`)){var t=this.match(this.lookahead.type),n;switch(t.type){case s_:n=h_.createVoidNode(t);break;case c_:n=h_.createTextNode(t);break;case i_:n=h_.createPlaceholderNode(t);break}e.push(n),e=e.concat(this.elementOrData())}return e}},{key:`endTag`,value:function(){if(!this.predict(`TOKEN_CLOSE_TAG`)||this.tags.pop().name!==this.lookahead.name)throw Error(S_);this.match(o_)}},{key:`lookahead`,get:function(){return this.tokens.length===0?C_:this.tokens[0]}},{key:`predict`,value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.includes(this.lookahead.type)}},{key:`match`,value:function(e){if(!this.predict(e))throw Error(S_);return this.tokens.shift()}},{key:`pushTag`,value:function(e){this.tags.push(e)}}]),e}(),T_=function e(t,n,r){var i=t.children.map(function(t,i){return O.createElement(O.default.Fragment,{key:r+i},e(t,n,r))});switch(t.type){case p_:return t.text;case l_:return O.createElement(O.default.Fragment,null,i);case d_:var a=n[t.name];return typeof a==`function`?a():a||O.createElement(t.name,null);case u_:var o=n[t.name];if(o===void 0)return O.createElement(t.name,null,i);if(typeof o==`function`)return o(i);if(O.isValidElement(o)){if(O.Children.count(o.props.children)!==0)throw Error(`when passing an element as value, the element should not contains children`);return O.cloneElement(o,{children:i})}throw Error(`Invalid mapping value for "${t.name}". Only element or render function are accepted`);case f_:var s=n[t.name];return s===void 0?(console.warn(`missing "${t.name}" in mapping`),t.string):typeof s==`function`?s():s;default:return}};function E_(e){var t=e.string,n=e.syntax,r=e.mapping,i=r===void 0?{}:r,a=e.graceful,o=a===void 0?!0:a;try{return T_(x_(t,n),i,t)}catch(e){if(o)return console.error(e),t;throw e}}E_.propTypes={string:Yg.default.string.isRequired,mapping:Yg.default.object,graceful:Yg.default.bool};var D_=()=>{let{accentColor:e,supportEmail:t,t:n}=k(),r={color:e};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`h1`,{className:`mb-2 text-center font-sans text-2xl font-semibold tracking-tight text-neutral-900 dark:text-white/85`,children:n(`Commenting disabled`)}),(0,m.jsx)(`p`,{className:`w-full text-balance text-center text-lg leading-normal text-neutral-900 dark:text-white/85 sm:px-8`,children:t?(0,m.jsx)(E_,{mapping:{a:(0,m.jsx)(`a`,{className:`font-semibold hover:opacity-90`,href:`mailto:${t}`,style:r})},string:n(`You can't post comments in this publication. <a>Contact support</a> for more information.`)}):n(`You can't post comments in this publication.`)})]})},O_=({showCount:e,count:t})=>{let{t:n}=k();return e?t===1?(0,m.jsx)(`div`,{className:`text-md text-neutral-900/50 dark:text-white/50 sm:text-lg`,"data-testid":`count`,children:n(`1 comment`)}):(0,m.jsx)(`div`,{className:`text-md text-neutral-900/50 dark:text-white/50 sm:text-lg`,"data-testid":`count`,children:n(`{amount} comments`,{amount:C(t)})}):null},k_=({title:e})=>{let{t}=k();return e===null?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`span`,{className:`sm:hidden`,children:t(`Discussion`)}),(0,m.jsx)(`span`,{className:`hidden sm:inline`,children:t(`Member discussion`)})]}):(0,m.jsx)(m.Fragment,{children:e})},A_=({title:e,showCount:t,count:n})=>!e&&!t&&e!==null?null:(0,m.jsxs)(`div`,{className:`mb-7 flex w-full items-baseline justify-between font-sans`,children:[(0,m.jsx)(`h2`,{className:`text-[2.2rem] font-bold tracking-tight text-neutral-900 dark:text-white sm:text-2xl`,"data-testid":`title`,children:(0,m.jsx)(k_,{title:e})}),(0,m.jsx)(O_,{count:n,showCount:t})]}),j_=({focusedThread:e})=>{let{t}=k(),{navigateBackToParent:n}=_g(),{backComment:r,focusedComment:i,topLevelComment:a}=e,o=y(r.id),s=(0,O.useCallback)(e=>{e.preventDefault(),n(r.id,o)},[r.id,o,n]);return(0,m.jsxs)(`div`,{children:[(0,m.jsxs)(`div`,{className:`mb-6 flex items-center justify-between`,children:[(0,m.jsxs)(`a`,{className:`font-sans text-[1.3rem] font-medium text-neutral-900/55 transition-colors hover:text-neutral-900/80 dark:text-white/45 dark:hover:text-white/70`,"data-testid":`back-to-parent`,href:o,target:`_parent`,onClick:s,children:[`← `,t(`Back`)]}),(0,m.jsx)(`a`,{className:`font-sans text-[1.3rem] font-medium text-neutral-900/55 transition-colors hover:text-neutral-900/80 dark:text-white/45 dark:hover:text-white/70`,"data-testid":`see-full-discussion`,href:b(),target:`_parent`,children:t(`See full discussion`)})]}),(0,m.jsx)(Kg,{comment:i,parent:a,useThreading:!0,children:(0,m.jsx)(xg,{replies:i.nestedReplies,threadParentComment:a,useThreading:!0})})]})},M_=({commentsCount:e})=>{let{postId:t,dispatchAction:n,t:r}=k(),{editor:i,hasContent:a}=Ih((0,O.useMemo)(()=>({placeholder:r(e===0?`Start the conversation`:`Join the discussion`),autofocus:!1}),[e])),o=(0,O.useCallback)(async({html:e})=>{await n(`addComment`,{post_id:t,status:`published`,html:e}),i?.commands.clearContent()},[t,n,i]),s=(0,O.useRef)(null);(0,O.useEffect)(()=>{if(!i)return;let e=e=>{if(!i||e.metaKey||e.ctrlKey)return;let t=document.activeElement;for(;t&&t.tagName===`IFRAME`&&t.contentDocument;)t=t.contentDocument?.activeElement??null;let n=t&&(t.tagName===`INPUT`||t.tagName===`TEXTAREA`||t.tagName===`IFRAME`||t.contentEditable===`true`);if(e.key===`c`&&!i?.isFocused&&!n){i?.commands.focus(),s.current&&ie(s.current);return}};return window.addEventListener(`keydown`,e,{passive:!0}),()=>{window.removeEventListener(`keydown`,e)}},[i]);let c={submitText:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(`span`,{className:`hidden sm:inline`,children:[r(`Add comment`),` `]}),(0,m.jsx)(`span`,{className:`sm:hidden`,children:r(`Comment`)})]}),submitSize:`large`,submit:o},l=i?.isFocused||a;return(0,m.jsx)(`div`,{ref:s,className:`px-3 pb-2 pt-3`,"data-testid":`main-form`,children:(0,m.jsx)(Vh,{editor:i,isOpen:l,reduced:!1,children:(0,m.jsx)(Bh,{editor:i,isOpen:l,reduced:!1,...c})})})},N_=()=>{let{pagination:e,dispatchAction:t,t:n}=k(),r=()=>{t(`loadMoreComments`,{})};if(!e)return null;let i=e.total-e.page*e.limit;if(i<=0)return null;let a=n(`Load more ({amount})`,{amount:C(i)});return(0,m.jsx)(`button`,{className:`group mb-10 flex items-center px-0 pb-2 pt-0 text-left font-sans text-md font-semibold text-neutral-700 dark:text-white`,"data-testid":`pagination-component`,type:`button`,onClick:r,children:(0,m.jsx)(`span`,{className:`flex h-[40px] items-center justify-center whitespace-nowrap rounded-[6px] bg-black/5 px-4 py-2 text-center font-sans text-sm font-semibold text-neutral-700 outline-0 transition-all duration-150 hover:bg-black/10 dark:bg-white/15 dark:text-neutral-300 dark:hover:bg-white/20 dark:hover:text-neutral-100`,children:a})})},P_=e=>(0,m.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,...e,children:(0,m.jsx)(`path`,{d:`M23.25,7.311,12.53,18.03a.749.749,0,0,1-1.06,0L.75,7.311`,fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,fillRule:`evenodd`})});let F_=()=>{let{order:e,t}=k(),n=ce(),[r,i]=(0,O.useState)(!1),[a,o]=(0,O.useState)(e),s=(0,O.useRef)(null),c=`count__net_score desc, created_at desc`;(0,O.useEffect)(()=>{o(e===`count__likes desc, created_at desc`||e===`count__net_score desc, created_at desc`?c:e)},[e]);let l=[{value:c,label:t(`Best`)},{value:`created_at desc`,label:t(`Newest`)},{value:`created_at asc`,label:t(`Oldest`)}],u=e=>{o(e),n(e),i(!1)};(0,O.useEffect)(()=>{let e=()=>{i(!1)};window.addEventListener(`click`,e,{passive:!0});let t=s.current?.ownerDocument?.defaultView;return t&&t!==window&&t.addEventListener(`click`,e,{passive:!0}),()=>{window.removeEventListener(`click`,e),t&&t!==window&&t.removeEventListener(`click`,e)}},[]);let d=e=>{e.stopPropagation()};return(0,m.jsxs)(`div`,{ref:s,className:`relative z-20`,"data-testid":`comments-sorting-form`,onClick:d,children:[(0,m.jsxs)(`button`,{className:`flex w-full items-center justify-between gap-2 text-sm font-medium text-neutral-900 focus-visible:outline-none dark:text-neutral-100`,type:`button`,onClick:()=>i(!r),children:[l.find(e=>e.value===a)?.label,(0,m.jsx)(`span`,{className:`size-2 stroke-[3px]`,children:(0,m.jsx)(P_,{})})]}),r&&(0,m.jsx)(`div`,{className:`absolute -left-4 mt-1.5 w-36 origin-top-right rounded-md bg-white shadow-lg dark:bg-neutral-800`,children:(0,m.jsx)(`div`,{"aria-labelledby":`options-menu`,"aria-orientation":`vertical`,className:`py-1`,"data-testid":`comments-sorting-form-dropdown`,role:`menu`,children:l.map(e=>(0,m.jsx)(`button`,{className:`block w-full px-4 py-1.5 text-left text-sm text-neutral-600 transition-all hover:text-neutral-900 dark:text-neutral-200 dark:hover:text-white`,role:`menuitem`,type:`button`,onClick:()=>u(e.value),children:e.label},e.value))})})]})},I_=`ghost-comments-root`;function L_(e){let t=e.defaultView;if(!t?.parent||t.parent===t)return null;try{let e=t.parent.document.getElementsByTagName(`iframe`);for(let n of e)if(n.contentWindow===t)return n}catch{}return null}var R_=500;function z_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}function B_(e,t){let n=e.clientHeight,r=!1,i=()=>{r||(r=!0,a.disconnect(),t())},a=new ResizeObserver(()=>{e.clientHeight!==n&&i()});a.observe(e);let o=setTimeout(i,R_);return()=>{clearTimeout(o),a.disconnect()}}function V_(e){return e.current?.ownerDocument.getElementById(`ghost-comments-root`)||document.getElementById(`ghost-comments-root`)}function H_(e){let t=e.current?.ownerDocument.defaultView||window;return t.parent||t}function U_(e){let{dispatchAction:t}=k(),n=(0,O.useCallback)((t=`auto`)=>{let n=V_(e);n&&z_(()=>{n.scrollIntoView({behavior:t,block:`start`})})},[e]);return{scrollToComment:(0,O.useCallback)((e,n,r={})=>{e.scrollIntoView({behavior:`smooth`,block:`center`}),t(`highlightComment`,{commentId:n}),r.preserveScrollTarget||t(`setScrollTarget`,null)},[t]),scrollToCommentInstantly:(0,O.useCallback)(t=>{z_(()=>{let n=e.current?.ownerDocument.getElementById(t);if(n){let e=L_(n.ownerDocument);if(e){B_(e,()=>{ae(n)});return}ae(n)}})},[e]),scrollToCommentsTop:n}}function W_(e){(0,O.useEffect)(()=>{let t=V_(e),n=H_(e);t&&n?.location.hash===`#ghost-comments`&&n.scrollY===0&&z_(()=>{t.scrollIntoView()})},[e])}function G_(e,t,n,r){let{dispatchAction:i}=k(),{scrollToComment:a,scrollToCommentInstantly:o,scrollToCommentsTop:s}=r;(0,O.useEffect)(()=>{let r=H_(e);if(!r)return;let c=()=>{let c=r.location.hash,l=x(c);if(l&&e.current){let r=t.current===l,c=n.current===l;if(t.current=null,n.current=null,i(`setHashCommentId`,l),r){i(`setScrollTarget`,null),i(`setHighlightComment`,null),s();return}if(c){i(`setScrollTarget`,null),i(`setHighlightComment`,null),o(l);return}i(`setScrollTarget`,l);let u=e.current.ownerDocument.getElementById(l);u&&a(u,l,{preserveScrollTarget:!0})}else t.current=null,n.current=null,i(`setHashCommentId`,null),i(`setScrollTarget`,null),i(`setHighlightComment`,null),c===`#ghost-comments`&&s(`smooth`)};return r.addEventListener(`hashchange`,c),()=>r.removeEventListener(`hashchange`,c)},[e,i,a,o,s])}function K_(e,t){let{comments:n,commentsIsLoading:r,commentIdFromHash:i,commentIdToScrollTo:a,dispatchAction:o}=k(),{scrollToComment:s}=t,c=(0,O.useRef)(null);(0,O.useEffect)(()=>{if(!a||r||!e.current){a||(c.current=null);return}if(c.current===a)return;if(x(H_(e)?.location.hash||``)===a&&i!==a){o(`setHashCommentId`,a);return}let t=e.current.ownerDocument,n=t.getElementById(a);if(!n)return;let l=L_(t);if(l)return c.current=a,B_(l,()=>{s(n,a,{preserveScrollTarget:a===i})});c.current=a,s(n,a,{preserveScrollTarget:a===i})},[a,i,r,n,e,o,s])}function q_(e){let{commentsIsLoading:t,showMissingCommentNotice:n}=k();(0,O.useEffect)(()=>{if(!n||t)return;let r=V_(e);if(!r)return;let i=L_(r.ownerDocument);if(i)return B_(i,()=>{ie(r)});ie(r)},[e,n,t])}function J_(e,t,n){let{commentIdFromHash:r}=k(),{scrollToCommentInstantly:i}=n;(0,O.useEffect)(()=>{!r||e||t.current!==r||(t.current=null,i(r))},[r,e,i])}function Y_({containerRef:e,focusedThread:t}){let{dispatchAction:n}=k(),r=(0,O.useRef)(null),i=(0,O.useRef)(null),a=U_(e);return W_(e),G_(e,r,i,a),K_(e,a),q_(e),J_(t,i,a),(0,O.useMemo)(()=>({requestFocusedThreadView:e=>{r.current=e},requestInstantScroll:e=>{i.current=e},navigateBackToParent:(t,r)=>{i.current=t,H_(e)?.history.pushState(null,``,r),n(`setHashCommentId`,t),n(`setScrollTarget`,null),n(`setHighlightComment`,null)}}),[e,n])}var X_=`(max-width: 479px)`;function Z_(){return typeof window>`u`||!window.matchMedia?4:window.matchMedia(X_).matches?3:4}var Q_=()=>{let e=le(),{pagination:t,comments:n,commentCount:r,title:i,showCount:a,commentsIsLoading:o,t:s,commentIdFromHash:c,showMissingCommentNotice:l,isMember:u,isPaidOnly:d,hasRequiredTier:f,isCommentingDisabled:p}=k(),h=(0,O.useRef)(null),[g,_]=(0,O.useState)(()=>Z_());(0,O.useEffect)(()=>{if(typeof window>`u`||!window.matchMedia)return;let e=window.matchMedia(X_),t=()=>{_(e.matches?3:4)};return t(),e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]);let v=(0,O.useMemo)(()=>({maxThreadDepth:g}),[g]),y=t?.total===0,b=u&&f&&!p,x=b,S=!b&&p,C=!b&&!p,w=!!e.commentsThreads,T=(0,O.useMemo)(()=>w?wg(n,c,g):null,[n,c,g,w]),ee=Y_({containerRef:h,focusedThread:T}),te=n.map(e=>(0,m.jsx)(Kg,{comment:e,useThreading:w},e.id)),E=T?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(A_,{count:r,showCount:a,title:i}),(0,m.jsx)(`div`,{ref:h,className:`z-10 transition-opacity duration-100 ${o?`opacity-50`:``}`,"data-testid":`comment-elements`,children:(0,m.jsx)(j_,{focusedThread:T})})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(A_,{count:r,showCount:a,title:i}),l&&(0,m.jsx)(`div`,{className:`mb-6 rounded-lg border border-amber-200 bg-amber-50 px-4 py-3 font-sans text-sm text-amber-900 dark:border-amber-500/40 dark:bg-amber-500/15 dark:text-amber-100`,"data-testid":`missing-comment-notice`,children:s(`The linked comment is no longer available.`)}),(0,m.jsxs)(`div`,{children:[x&&(0,m.jsx)(M_,{commentsCount:n.length}),S&&(0,m.jsx)(`section`,{className:`flex flex-col items-center py-6 sm:px-8 sm:py-10`,"data-testid":`commenting-disabled-box`,children:(0,m.jsx)(D_,{})}),C&&(0,m.jsx)(`section`,{className:`flex flex-col items-center py-6 sm:px-8 sm:py-10`,"data-testid":`cta-box`,children:(0,m.jsx)(ue,{isFirst:y,isPaid:d})})]}),r>1&&(0,m.jsx)(`div`,{className:`z-20 mb-7 mt-3`,children:(0,m.jsxs)(`span`,{className:`flex items-center gap-1.5 text-sm font-medium text-neutral-900 dark:text-neutral-100`,children:[s(`Sort by`),`: `,(0,m.jsx)(F_,{})]})}),(0,m.jsx)(`div`,{ref:h,className:`z-10 transition-opacity duration-100 ${o?`opacity-50`:``}`,"data-testid":`comment-elements`,children:te}),(0,m.jsx)(N_,{}),e?.testFlag?(0,m.jsx)(`div`,{"data-testid":`this-comes-from-a-flag`,style:{display:`none`}}):null]});return(0,m.jsx)(gg.Provider,{value:ee,children:(0,m.jsx)(vg.Provider,{value:v,children:E})})};function $_(){return(0,m.jsx)(`div`,{className:`flex h-32 w-full items-center justify-center`,"data-testid":`loading`,children:(0,m.jsx)(A,{className:`mb-6 size-12 fill-neutral-300/80 dark:fill-white/60`})})}var ev=$_,tv=({done:e})=>{let t=(e,t,n)=>{let r=[e,t,n].map(function(e){return e/=255,e<=.03928?e/12.92:((e+.055)/1.055)**2.4});return r[0]*.2126+r[1]*.7152+r[2]*.0722},n=(e,n)=>{let r=t(e[0],e[1],e[2]),i=t(n[0],n[1],n[2]),a=Math.max(r,i),o=Math.min(r,i);return(a+.05)/(o+.05)},{accentColor:r,colorScheme:i}=k(),a=(0,O.useCallback)(()=>{if(i===`light`)return!1;if(i===`dark`)return!0;{let e=document.getElementById(I_);if(!e||!e.parentElement)return!1;let t=getComputedStyle(e.parentElement).getPropertyValue(`color`),r=t.substring(t.indexOf(`(`)+1,t.lastIndexOf(`)`)).split(/,\s*/);return n([255,255,255],[parseInt(r[0]),parseInt(r[1]),parseInt(r[2])])<5}},[i,n]),[o,s]=(0,O.useState)(a()?`dark`:``);(0,O.useEffect)(()=>{s(a()?`dark`:``)},[i,a]),(0,O.useEffect)(()=>{let e=document.getElementById(I_);if(e?.parentElement){let t=new MutationObserver(()=>{s(a()?`dark`:``)});return t.observe(e.parentElement,{attributes:!0,attributeFilter:[`style`,`class`]}),()=>{t.disconnect()}}},[a]);let c={"--gh-accent-color":r??`black`,paddingTop:0,paddingBottom:24};return(0,m.jsx)(`section`,{className:`ghost-display `+o,"data-loaded":e,"data-testid":`content-box`,style:c,children:e?(0,m.jsx)(Q_,{}):(0,m.jsx)(ev,{})})},nv=Nd(),rv=class extends O.Component{node;iframeHtml;iframeHead;iframeRoot;constructor(e){super(e),this.setNode=this.setNode.bind(this),this.node=null}componentDidMount(){this.node.addEventListener(`load`,this.handleLoad)}handleLoad=()=>{this.setupFrameBaseStyle()};componentWillUnmount(){this.node.removeEventListener(`load`,this.handleLoad)}setupFrameBaseStyle(){this.node.contentDocument&&(this.iframeHtml=this.node.contentDocument.documentElement,this.iframeHead=this.node.contentDocument.head,this.iframeRoot=this.node.contentDocument.body,this.forceUpdate(),this.props.onResize&&new ResizeObserver(e=>{window.requestAnimationFrame(()=>{this.props.onResize(this.iframeRoot)})})?.observe?.(this.iframeRoot),this.node.contentWindow.addEventListener(`keydown`,e=>{window.dispatchEvent(new KeyboardEvent(`keydown`,e))}))}setNode(e){this.node=e,this.props.innerRef&&(this.props.innerRef.current=e)}render(){let{children:e,head:t,title:n=``,style:r={},...i}=this.props;return(0,m.jsxs)(`iframe`,{srcDoc:`<!DOCTYPE html>`,...i,ref:this.setNode,frameBorder:`0`,style:r,title:n,children:[this.iframeHead&&(0,nv.createPortal)(t,this.iframeHead),this.iframeRoot&&(0,nv.createPortal)(e,this.iframeRoot)]})}},iv=(0,O.forwardRef)(function(e,t){return(0,m.jsx)(rv,{...e,innerRef:t})}),av=`*,:before,:after,::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border:0 solid #e5e7eb}:before,:after{--tw-content:""}html,:host{-webkit-text-size-adjust:100%;tab-size:4;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5}body{line-height:inherit;margin:0}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-feature-settings:inherit;font-variation-settings:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:#0000;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (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}.inset-y-0{top:0;bottom:0}.-left-4{left:-1.6rem}.bottom-1{bottom:.4rem}.bottom-full{bottom:100%}.left-0{left:0}.right-1{right:.4rem}.right-6{right:2.4rem}.top-0{top:0}.top-1{top:.4rem}.top-5{top:2rem}.z-10{z-index:10}.z-20{z-index:20}.col-start-1{grid-column-start:1}.row-start-1{grid-row-start:1}.-mx-1{margin-left:-.4rem;margin-right:-.4rem}.-mx-2{margin-left:-.8rem;margin-right:-.8rem}.-my-0\\.5{margin-top:-.2rem;margin-bottom:-.2rem}.mx-\\[0\\.3em\\]{margin-left:.3em;margin-right:.3em}.my-1{margin-top:.4rem;margin-bottom:.4rem}.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-8{margin-bottom:3.2rem}.mb-\\[12px\\]{margin-bottom:12px}.mb-\\[28px\\]{margin-bottom:28px}.mb-\\[8px\\]{margin-bottom:8px}.ml-1{margin-left:.4rem}.ml-2{margin-left:.8rem}.ml-2\\.5{margin-left:1rem}.ml-4{margin-left:1.6rem}.ml-8{margin-left:3.2rem}.ml-\\[48px\\]{margin-left:48px}.mr-1{margin-right:.4rem}.mr-2{margin-right:.8rem}.mr-\\[6px\\]{margin-right:6px}.mt-0\\.5{margin-top:.2rem}.mt-1\\.5{margin-top:.6rem}.mt-10{margin-top:4rem}.mt-3{margin-top:1.2rem}.mt-6{margin-top:2.4rem}.mt-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{-webkit-line-clamp:1;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.flow-root{display:flow-root}.grid{display:grid}.contents{display:contents}.hidden{display:none}.size-10{width:4rem;height:4rem}.size-12{width:4.8rem;height:4.8rem}.size-2{width:.8rem;height:.8rem}.size-3{width:1.2rem;height:1.2rem}.size-4{width:1.6rem;height:1.6rem}.size-5{width:2rem;height:2rem}.size-7{width:2.8rem;height:2.8rem}.size-\\[12px\\]{width:12px;height:12px}.size-\\[16px\\]{width:16px;height:16px}.size-\\[24px\\]{width:24px;height:24px}.h-10{height:4rem}.h-11{height:4.4rem}.h-32{height:12.8rem}.h-4{height:1.6rem}.h-5{height:2rem}.h-8{height:3.2rem}.h-\\[40px\\]{height:40px}.h-\\[42px\\]{height:42px}.h-\\[44px\\]{height:44px}.h-full{height:100%}.h-screen{height:100vh}.min-h-10{min-height:4rem}.min-h-\\[120px\\]{min-height:120px}.w-3{width:1.2rem}.w-36{width:14.4rem}.w-4{width:1.6rem}.w-52{width:20.8rem}.w-8{width:3.2rem}.w-\\[50\\%\\]{width:50%}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.w-screen{width:100vw}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.origin-top-right{transform-origin:100% 0}.-translate-x-2{--tw-translate-x:-.8rem;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x:0px;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[-6px\\]{--tw-translate-x:-6px;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-2{--tw-translate-y:.8rem;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-4{--tw-translate-y:1.6rem;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes highlight{to{background-color:#0000}}.animate-\\[highlight_2\\.5s_ease-out\\]{animation:2.5s ease-out highlight}@keyframes heartbeat{0%,to{transform:scale(1)}50%{transform:scale(1.3)}}.animate-heartbeat{animation:.35s ease-in-out forwards heartbeat}.animate-pulse{animation:1.5s cubic-bezier(.4,0,.6,1) infinite pulse}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-items-start{justify-items:start}.gap-0\\.5{gap:.2rem}.gap-1{gap:.4rem}.gap-1\\.5{gap:.6rem}.gap-2{gap:.8rem}.gap-3{gap:1.2rem}.gap-4{gap:1.6rem}.gap-9{gap:3.6rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1.6rem * var(--tw-space-x-reverse));margin-left:calc(1.6rem * calc(1 - var(--tw-space-x-reverse)))}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.text-balance{text-wrap:balance}.text-pretty{text-wrap:pretty}.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-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-t{border-top-width:1px}.border-amber-200{--tw-border-opacity:1;border-color:rgb(253 230 138/var(--tw-border-opacity,1))}.border-amber-300\\/70{border-color:#fcd34db3}.border-black\\/10{border-color:#0000001a}.border-neutral-200{--tw-border-opacity:1;border-color:rgb(229 229 229/var(--tw-border-opacity,1))}.border-neutral-300{--tw-border-opacity:1;border-color:rgb(212 212 212/var(--tw-border-opacity,1))}.border-red-500{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity,1))}.bg-\\[var\\(--gh-accent-color\\)\\]{background-color:var(--gh-accent-color)}.bg-amber-50{--tw-bg-opacity:1;background-color:rgb(255 251 235/var(--tw-bg-opacity,1))}.bg-amber-50\\/70{background-color:#fffbebb3}.bg-black\\/5{background-color:#0000000d}.bg-green-600{--tw-bg-opacity:1;background-color:rgb(22 163 74/var(--tw-bg-opacity,1))}.bg-neutral-800{--tw-bg-opacity:1;background-color:rgb(38 38 38/var(--tw-bg-opacity,1))}.bg-neutral-900{--tw-bg-opacity:1;background-color:rgb(23 23 23/var(--tw-bg-opacity,1))}.bg-red-600{--tw-bg-opacity:1;background-color:rgb(220 38 38/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white\\/75{background-color:#ffffffbf}.bg-yellow-300\\/40{background-color:#fde04766}.bg-gradient-to-b{background-image:linear-gradient(to bottom, var(--tw-gradient-stops))}.from-\\[rgba\\(0\\,0\\,0\\,0\\.2\\)\\]{--tw-gradient-from:#0003 var(--tw-gradient-from-position);--tw-gradient-to:#0000 var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to)}.from-neutral-900\\/15{--tw-gradient-from:#17171726 var(--tw-gradient-from-position);--tw-gradient-to:#17171700 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-3{padding-left:1.2rem;padding-right:1.2rem}.px-4{padding-left:1.6rem;padding-right:1.6rem}.px-5{padding-left:2rem;padding-right:2rem}.px-8{padding-left:3.2rem;padding-right:3.2rem}.py-0\\.5{padding-top:.2rem;padding-bottom:.2rem}.py-1{padding-top:.4rem;padding-bottom:.4rem}.py-1\\.5{padding-top:.6rem;padding-bottom:.6rem}.py-2{padding-top:.8rem;padding-bottom:.8rem}.py-3{padding-top:1.2rem;padding-bottom:1.2rem}.py-6{padding-top:2.4rem;padding-bottom:2.4rem}.py-\\[14px\\]{padding-top:14px;padding-bottom:14px}.pb-2{padding-bottom:.8rem}.pb-3{padding-bottom:1.2rem}.pb-4{padding-bottom:1.6rem}.pb-7{padding-bottom:2.8rem}.pb-8{padding-bottom:3.2rem}.pb-\\[68px\\]{padding-bottom:68px}.pb-\\[8px\\]{padding-bottom:8px}.pl-0{padding-left:0}.pl-1{padding-left:.4rem}.pl-\\[1px\\]{padding-left:1px}.pl-\\[40px\\]{padding-left:40px}.pr-0{padding-right:0}.pr-2{padding-right:.8rem}.pr-4{padding-right:1.6rem}.pr-\\[1px\\]{padding-right:1px}.pt-0{padding-top:0}.pt-10{padding-top:4rem}.pt-3{padding-top:1.2rem}.pt-6{padding-top:2.4rem}.pt-\\[48px\\]{padding-top:48px}.pt-\\[68px\\]{padding-top:68px}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-sans{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-2xl{font-size:2.4rem}.text-\\[1\\.3rem\\]{font-size:1.3rem}.text-\\[14px\\]{font-size:14px}.text-\\[15px\\]{font-size:15px}.text-\\[16px\\]{font-size:16px}.text-\\[2\\.2rem\\]{font-size:2.2rem}.text-base{font-size:1.3rem}.text-lg{font-size:1.65rem}.text-md{font-size:1.5rem}.text-sm{font-size:1.4rem}.text-xs{font-size:1.2rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-5{line-height:1.25rem}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-snug{line-height:1.375}.tracking-tight{letter-spacing:-.018em}.text-\\[rgba\\(0\\,0\\,0\\,0\\.4\\)\\]{color:#0006}.text-amber-800{--tw-text-opacity:1;color:rgb(146 64 14/var(--tw-text-opacity,1))}.text-amber-900{--tw-text-opacity:1;color:rgb(120 53 15/var(--tw-text-opacity,1))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.text-black\\/30{color:#0000004d}.text-black\\/50{color:#00000080}.text-black\\/90{color:#000000e6}.text-neutral-400{--tw-text-opacity:1;color:rgb(163 163 163/var(--tw-text-opacity,1))}.text-neutral-500{--tw-text-opacity:1;color:rgb(115 115 115/var(--tw-text-opacity,1))}.text-neutral-600{--tw-text-opacity:1;color:rgb(82 82 82/var(--tw-text-opacity,1))}.text-neutral-700{--tw-text-opacity:1;color:rgb(64 64 64/var(--tw-text-opacity,1))}.text-neutral-900{--tw-text-opacity:1;color:rgb(23 23 23/var(--tw-text-opacity,1))}.text-neutral-900\\/25{color:#17171740}.text-neutral-900\\/40{color:#17171766}.text-neutral-900\\/50{color:#17171780}.text-neutral-900\\/55{color:#1717178c}.text-neutral-900\\/60{color:#17171799}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-80{opacity:.8}.shadow-lg{--tw-shadow:#0000000f 0px 0px 0px 1px, #0000000a 0px 2px 2px -1px, #0000000a 0px 3px 3px -1px, #00000008 0px 5px 5px -2px, #00000008 0px 10px 10px -3px, #00000008 0px 24px 24px -8px;--tw-shadow-colored:0px 0px 0px 1px var(--tw-shadow-color), 0px 2px 2px -1px var(--tw-shadow-color), 0px 3px 3px -1px var(--tw-shadow-color), 0px 5px 5px -2px var(--tw-shadow-color), 0px 10px 10px -3px var(--tw-shadow-color), 0px 24px 24px -8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.shadow-modal{--tw-shadow:0 3.8px 2.2px #00000007, 0 9.2px 5.3px #0000000a, 0 17.3px 10px #0000000d, 0 30.8px 17.9px #0000000f, 0 57.7px 33.4px #00000012, 0 138px 80px #0000001a;--tw-shadow-colored:0 3.8px 2.2px var(--tw-shadow-color), 0 9.2px 5.3px var(--tw-shadow-color), 0 17.3px 10px var(--tw-shadow-color), 0 30.8px 17.9px var(--tw-shadow-color), 0 57.7px 33.4px var(--tw-shadow-color), 0 138px 80px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000), var(--tw-ring-shadow,0 0 #0000), var(--tw-shadow)}.outline-0{outline-width:0}.blur{--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-\\[2px\\]{--tw-backdrop-blur:blur(2px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter,backdrop-filter;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-\\[border-color\\]{transition-property:border-color;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-\\[opacity\\]{transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-\\[padding\\]{transition-property:padding;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-none{transition-property:none}.transition-opacity{transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.delay-100{transition-delay:.1s}.delay-150{transition-delay:.15s}.delay-\\[400ms\\]{transition-delay:.4s}.duration-0{transition-duration:0s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:1s\\]{animation-delay:1s}.\\[border-bottom-left-radius\\:12px_16px\\]{border-bottom-left-radius:12px 16px}.\\[overflow-wrap\\:anywhere\\]{overflow-wrap:anywhere}body,html{overflow:hidden}:host{all:initial!important}html{font-size:62.5%}body{font-size:1.5rem}.gh-comment-content p:empty:after{content:"\xA0"}.gh-comment-content a{word-break:break-word;color:var(--gh-accent-color);text-decoration:underline}.gh-comment-content blockquote{border-left:3px solid var(--gh-accent-color);margin:0 0 1.2rem;padding-left:1rem}.gh-comment-content p{margin:0 0 1.2rem}.gh-comment-content p:last-child,.gh-comment-content blockquote:last-child{margin:0}.gh-comment-content p.is-editor-empty:first-child:before{color:#0000004d!important}.dark .gh-comment-content p.is-editor-empty:first-child:before{color:#fff6!important}.ProseMirror p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;pointer-events:none;--tw-text-opacity:1;height:0;color:rgb(212 212 212/var(--tw-text-opacity))}.ProseMirror *{white-space:pre-wrap;word-wrap:break-word}[contenteditable]:focus{outline:0 solid #0000}.ghost-display{display:block!important}.hover\\:border-amber-400:hover{--tw-border-opacity:1;border-color:rgb(251 191 36/var(--tw-border-opacity,1))}.hover\\:bg-amber-100:hover{--tw-bg-opacity:1;background-color:rgb(254 243 199/var(--tw-bg-opacity,1))}.hover\\:bg-black\\/10:hover{background-color:#0000001a}.hover\\:bg-neutral-100:hover{--tw-bg-opacity:1;background-color:rgb(245 245 245/var(--tw-bg-opacity,1))}.hover\\:fill-black\\/75:hover{fill:#000000bf}.hover\\:text-black\\/50:hover{color:#00000080}.hover\\:text-black\\/75:hover{color:#000000bf}.hover\\:text-neutral-900:hover{--tw-text-opacity:1;color:rgb(23 23 23/var(--tw-text-opacity,1))}.hover\\:text-neutral-900\\/70:hover{color:#171717b3}.hover\\:text-neutral-900\\/75:hover{color:#171717bf}.hover\\:text-neutral-900\\/80:hover{color:#171717cc}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-40:hover{opacity:.4}.hover\\:opacity-90:hover{opacity:.9}.hover\\:brightness-105:hover{--tw-brightness:brightness(1.05);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus\\:border-neutral-300:focus{--tw-border-opacity:1;border-color:rgb(212 212 212/var(--tw-border-opacity,1))}.focus\\:border-red-500:focus{--tw-border-opacity:1;border-color:rgb(239 68 68/var(--tw-border-opacity,1))}.focus\\:outline-0:focus{outline-width:0}.focus-visible\\:outline-none:focus-visible{outline-offset:2px;outline:2px solid #0000}.disabled\\:bg-black\\/5:disabled{background-color:#0000000d}.disabled\\:text-neutral-900\\/30:disabled{color:#1717174d}.group:hover .group-hover\\:translate-x-0{--tw-translate-x:0px;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group:hover .group-hover\\:stroke-black\\/75{stroke:#000000bf}.group:hover .group-hover\\:opacity-0{opacity:0}.group:hover .group-hover\\:opacity-100{opacity:1}.group:focus-visible .group-focus-visible\\:opacity-0{opacity:0}.group:focus-visible .group-focus-visible\\:opacity-100{opacity:1}.dark\\:border-amber-400\\/30:is(.dark *){border-color:#fbbf244d}.dark\\:border-amber-500\\/40:is(.dark *){border-color:#f59e0b66}.dark\\:border-neutral-700:is(.dark *){--tw-border-opacity:1;border-color:rgb(64 64 64/var(--tw-border-opacity,1))}.dark\\:bg-amber-400\\/10:is(.dark *){background-color:#fbbf241a}.dark\\:bg-amber-500\\/15:is(.dark *){background-color:#f59e0b26}.dark\\:bg-neutral-800:is(.dark *){--tw-bg-opacity:1;background-color:rgb(38 38 38/var(--tw-bg-opacity,1))}.dark\\:bg-white\\/10:is(.dark *){background-color:#ffffff1a}.dark\\:bg-white\\/15:is(.dark *){background-color:#ffffff26}.dark\\:bg-white\\/70:is(.dark *){background-color:#ffffffb3}.dark\\:bg-yellow-500\\/40:is(.dark *){background-color:#eab30866}.dark\\:from-white\\/20:is(.dark *){--tw-gradient-from:#fff3 var(--tw-gradient-from-position);--tw-gradient-to:#fff0 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-amber-100:is(.dark *){--tw-text-opacity:1;color:rgb(254 243 199/var(--tw-text-opacity,1))}.dark\\:text-neutral-100:is(.dark *){--tw-text-opacity:1;color:rgb(245 245 245/var(--tw-text-opacity,1))}.dark\\:text-neutral-200:is(.dark *){--tw-text-opacity:1;color:rgb(229 229 229/var(--tw-text-opacity,1))}.dark\\:text-neutral-300:is(.dark *){--tw-text-opacity:1;color:rgb(212 212 212/var(--tw-text-opacity,1))}.dark\\:text-neutral-400:is(.dark *){--tw-text-opacity:1;color:rgb(163 163 163/var(--tw-text-opacity,1))}.dark\\:text-red-500:is(.dark *){--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.dark\\:text-white:is(.dark *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:text-white\\/30:is(.dark *){color:#ffffff4d}.dark\\:text-white\\/45:is(.dark *){color:#ffffff73}.dark\\:text-white\\/50:is(.dark *){color:#ffffff80}.dark\\:text-white\\/60:is(.dark *){color:#fff9}.dark\\:text-white\\/70:is(.dark *){color:#ffffffb3}.dark\\:text-white\\/85:is(.dark *){color:#ffffffd9}.dark\\:text-white\\/90:is(.dark *){color:#ffffffe6}.dark\\:hover\\:border-amber-400\\/50:hover:is(.dark *){border-color:#fbbf2480}.dark\\:hover\\:bg-amber-400\\/20:hover:is(.dark *){background-color:#fbbf2433}.dark\\:hover\\:bg-neutral-700:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(64 64 64/var(--tw-bg-opacity,1))}.dark\\:hover\\:bg-white\\/20:hover:is(.dark *){background-color:#fff3}.dark\\:hover\\:fill-white\\/75:hover:is(.dark *){fill:#ffffffbf}.dark\\:hover\\:text-neutral-100:hover:is(.dark *){--tw-text-opacity:1;color:rgb(245 245 245/var(--tw-text-opacity,1))}.dark\\:hover\\:text-white:hover:is(.dark *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:text-white\\/50:hover:is(.dark *){color:#ffffff80}.dark\\:hover\\:text-white\\/70:hover:is(.dark *){color:#ffffffb3}.dark\\:hover\\:text-white\\/75:hover:is(.dark *){color:#ffffffbf}.dark\\: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\\:-left-5{left:-2rem}.sm\\:bottom-2{bottom:.8rem}.sm\\:right-2{right:.8rem}.sm\\:right-8{right:3.2rem}.sm\\:top-9{top:3.6rem}.sm\\:my-10{margin-top:4rem;margin-bottom:4rem}.sm\\:mb-0{margin-bottom:0}.sm\\:mb-10{margin-bottom:4rem}.sm\\:mb-12{margin-bottom:4.8rem}.sm\\:mb-4{margin-bottom:1.6rem}.sm\\:ml-9{margin-left:3.6rem}.sm\\:mr-3{margin-right:1.2rem}.sm\\:mt-8{margin-top:3.2rem}.sm\\:block{display:block}.sm\\:inline-block{display:inline-block}.sm\\:inline{display:inline}.sm\\:hidden{display:none}.sm\\:h-12{height:4.8rem}.sm\\:h-auto{height:auto}.sm\\:w-4{width:1.6rem}.sm\\:w-\\[500px\\]{width:500px}.sm\\:w-\\[720px\\]{width:720px}.sm\\:w-auto{width:auto}.sm\\:w-fit{width:fit-content}.sm\\:min-w-\\[100px\\]{min-width:100px}.sm\\:min-w-\\[64px\\]{min-width:64px}.sm\\:flex-row{flex-direction:row}.sm\\:justify-normal{justify-content:normal}.sm\\:rounded-xl{border-radius:1.2rem}.sm\\:p-0{padding:0}.sm\\:p-8{padding:3.2rem}.sm\\:px-3{padding-left:1.2rem;padding-right:1.2rem}.sm\\:px-8{padding-left:3.2rem;padding-right:3.2rem}.sm\\:py-10{padding-top:4rem;padding-bottom:4rem}.sm\\:pb-0{padding-bottom:0}.sm\\:pb-10{padding-bottom:4rem}.sm\\:pb-8{padding-bottom:3.2rem}.sm\\:pl-0{padding-left:0}.sm\\:pl-\\[44px\\]{padding-left:44px}.sm\\:pr-10{padding-right:4rem}.sm\\:pr-4{padding-right:1.6rem}.sm\\:pt-0{padding-top:0}.sm\\:pt-\\[40px\\]{padding-top:40px}.sm\\:pt-\\[4vmin\\]{padding-top:4vmin}.sm\\:pt-\\[56px\\]{padding-top:56px}.sm\\:text-left{text-align:left}.sm\\:text-2xl{font-size:2.4rem}.sm\\:text-lg{font-size:1.65rem}.sm\\:text-sm{font-size:1.4rem}.sm\\:\\[border-bottom-left-radius\\:16px_16px\\]{border-bottom-left-radius:16px}}`,ov=O.forwardRef(function({children:e,onResize:t,style:n,title:r},i){return(0,m.jsx)(iv,{ref:i,head:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`style`,{dangerouslySetInnerHTML:{__html:av}}),(0,m.jsx)(`meta`,{content:`width=device-width, initial-scale=1.0, maximum-scale=1.0`,name:`viewport`})]}),style:n,title:r,onResize:t,children:e})}),sv=O.forwardRef(function({children:e,style:t,title:n},r){let[i,a]=(0,O.useState)(t);return(0,m.jsx)(ov,{ref:r,style:i,title:n,onResize:(0,O.useCallback)(e=>{a(t=>({...t,height:`${e.scrollHeight}px`}))},[]),children:e})});let cv=O.forwardRef(function({children:e},t){return(0,m.jsx)(sv,{ref:t,style:{width:`100%`,height:`400px`},title:`comments-frame`,children:e})}),lv=({children:e,title:t})=>(0,m.jsx)(ov,{style:{zIndex:`3999999`,position:`fixed`,left:`0`,top:`0`,width:`100%`,height:`100%`,overflow:`hidden`},title:t,children:e});var uv=({show:e,children:t,title:n,callback:r})=>{let{dispatchAction:i}=k(),a=()=>{i(`closePopup`,{}),r&&r(!1)};return(0,O.useEffect)(()=>{let e=e=>{e.key===`Escape`&&a()};return window.addEventListener(`keydown`,e,{passive:!0}),()=>{window.removeEventListener(`keydown`,e)}}),(0,m.jsx)(fp,{appear:!0,show:e,children:(0,m.jsx)(lv,{title:n,children:(0,m.jsx)(`div`,{children:(0,m.jsx)(fp.Child,{enter:`transition duration-200 linear`,enterFrom:`opacity-0`,enterTo:`opacity-100`,leave:`transition duration-200 linear`,leaveFrom:`opacity-100`,leaveTo:`opacity-0`,children:(0,m.jsx)(`div`,{className:`to-rgba(0,0,0,0.1) fixed left-0 top-0 flex h-screen w-screen justify-center overflow-hidden bg-gradient-to-b from-[rgba(0,0,0,0.2)] pt-0 backdrop-blur-[2px] sm:pt-[4vmin]`,onMouseDown:a,children:(0,m.jsx)(fp.Child,{enter:`transition duration-200 delay-150 linear`,enterFrom:`translate-y-4 opacity-0`,enterTo:`translate-y-0 opacity-100`,leave:`transition duration-200 linear`,leaveFrom:`translate-y-0 opacity-100`,leaveTo:`translate-y-4 opacity-0`,children:t})})})})})})},dv=e=>(0,m.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,className:`gh-portal-closeicon`,alt:`Close`,...e,children:[(0,m.jsx)(`defs`,{children:(0,m.jsx)(`style`,{children:`.a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px !important;}`})}),(0,m.jsx)(`path`,{className:`a`,d:`M.75 23.249l22.5-22.5M23.25 23.249L.75.749`})]}),fv=({close:e})=>(0,m.jsx)(`button`,{className:`absolute right-6 top-5 opacity-30 transition-opacity duration-100 ease-out hover:opacity-40 sm:right-8 sm:top-9`,type:`button`,onClick:e,children:(0,m.jsx)(dv,{className:`size-5 p-1 pr-0`})}),pv=l(g(),1),mv=e=>{let t=(0,O.useRef)(null),n=(0,O.useRef)(null),{dispatchAction:r,member:i,accentColor:a,t:o}=k(),[s,c]=(0,O.useState)(i.name??``),[l,u]=(0,O.useState)(i.expertise??``),d=50;i.expertise&&(d-=i.expertise.length);let[f,p]=(0,O.useState)(d),[h,g]=(0,O.useState)({name:``,expertise:``}),_=e=>{e.stopPropagation()},v=t=>{r(`closePopup`,{}),e.callback(t)},y=async()=>{s.trim()===``?(g({name:o(`Enter your name`),expertise:``}),c(``),t.current?.focus()):(await r(`updateMember`,{name:s,expertise:l}),v(!0))};(0,O.useEffect)(()=>{if(!D()){let r=setTimeout(()=>{e.expertiseAutofocus?n.current?.focus():t.current?.focus()},200);return()=>{clearTimeout(r)}}},[t,n,e.expertiseAutofocus]);let b=()=>{let e=e=>(0,m.jsx)(fp,{enter:`transition duration-200 delay-[400ms] ease-out`,enterFrom:`opacity-0 translate-y-2`,enterTo:`opacity-100 translate-y-0`,leave:`transition duration-200 ease-in`,leaveFrom:`opacity-100 translate-y-0`,leaveTo:`opacity-0 translate-y-2`,appear:!0,children:(0,m.jsxs)(`div`,{className:`flex flex-row items-center justify-start gap-3 pr-4`,children:[(0,m.jsx)(`div`,{className:`size-10 shrink-0 rounded-full border-2 border-white bg-cover bg-no-repeat`,style:{backgroundImage:`url(${e.avatar})`}}),(0,m.jsxs)(`div`,{className:`flex flex-col items-start justify-center`,children:[(0,m.jsx)(`div`,{className:`font-sans text-base font-semibold tracking-tight text-white`,children:e.name}),(0,m.jsx)(`div`,{className:`font-sans text-sm tracking-tight text-neutral-400`,children:e.expertise})]})]})},e.name),t=[],n=[{avatar:`https://randomuser.me/api/portraits/men/32.jpg`,name:`James Fletcher`,expertise:o(`Full-time parent`)},{avatar:`https://randomuser.me/api/portraits/women/30.jpg`,name:`Naomi Schiff`,expertise:o(`Founder @ Acme Inc`)},{avatar:`https://randomuser.me/api/portraits/men/4.jpg`,name:`Franz Tost`,expertise:o(`Neurosurgeon`)},{avatar:`https://randomuser.me/api/portraits/women/51.jpg`,name:`Katrina Klosp`,expertise:o(`Local resident`)}];for(let r=0;r<n.length;r++)t.push(e(n[r]));return t},x=(0,pv.default)(o(`{amount} characters left`),`{amount}`,()=>(0,m.jsx)(`b`,{children:f}));return(0,m.jsx)(`div`,{className:`rounded-none relative h-screen w-screen overflow-hidden bg-white p-[28px] text-center shadow-modal sm:h-auto sm:w-[720px] sm:rounded-xl sm:p-0`,"data-testid":`profile-modal`,onMouseDown:_,children:(0,m.jsxs)(`div`,{className:`flex`,children:[(0,m.jsx)(`div`,{className:`hidden w-[50%] flex-col items-center justify-center bg-neutral-800 sm:block sm:p-8`,children:(0,m.jsx)(`div`,{className:`mt-[-1px] flex flex-col gap-9 text-left`,children:b()})}),(0,m.jsxs)(`div`,{className:`p-0 sm:p-8`,children:[(0,m.jsxs)(`h1`,{className:`mb-1 text-center font-sans text-2xl font-bold tracking-tight text-black sm:text-left`,children:[o(`Complete your profile`),(0,m.jsx)(`span`,{className:`hidden sm:inline`,children:`.`})]}),(0,m.jsx)(`p`,{className:`pr-0 text-center font-sans text-md leading-snug text-neutral-500 sm:pr-10 sm:text-left`,children:o(`Add context to your comment, share your name and expertise to foster a healthy discussion.`)}),(0,m.jsxs)(`section`,{className:`mt-8 text-left`,children:[(0,m.jsxs)(`div`,{className:`mb-2 flex flex-row justify-between`,children:[(0,m.jsx)(`label`,{className:`font-sans text-base font-semibold`,htmlFor:`comments-name`,children:o(`Name`)}),(0,m.jsx)(fp,{enter:`transition duration-300 ease-out`,enterFrom:`opacity-0`,enterTo:`opacity-100`,leave:`transition duration-100 ease-out`,leaveFrom:`opacity-100`,leaveTo:`opacity-0`,show:!!h.name,children:(0,m.jsx)(`div`,{className:`font-sans text-sm text-red-500`,children:h.name})})]}),(0,m.jsx)(`input`,{ref:t,className:`flex h-[42px] w-full items-center rounded border border-neutral-200 px-3 font-sans text-[16px] outline-0 transition-[border-color] duration-200 focus:border-neutral-300 ${h.name&&`border-red-500 focus:border-red-500`}`,"data-testid":`name-input`,id:`comments-name`,maxLength:64,name:`name`,placeholder:o(`Jamie Larson`),type:`text`,value:s,onChange:e=>{c(e.currentTarget.value)},onKeyDown:e=>{e.key===`Enter`&&(c(e.currentTarget.value),y().catch(console.error))}}),(0,m.jsxs)(`div`,{className:`mb-2 mt-6 flex flex-row justify-between`,children:[(0,m.jsx)(`label`,{className:`font-sans text-base font-semibold`,htmlFor:`comments-name`,children:o(`Expertise`)}),(0,m.jsx)(`div`,{className:`font-sans text-base text-neutral-400 ${f===0&&`text-red-500`}`,children:x})]}),(0,m.jsx)(`input`,{ref:n,className:`flex h-[42px] w-full items-center rounded border border-neutral-200 px-3 font-sans text-[16px] outline-0 transition-[border-color] duration-200 focus:border-neutral-300 ${f===0&&`border-red-500 focus:border-red-500`}`,"data-testid":`expertise-input`,id:`comments-expertise`,maxLength:50,name:`expertise`,placeholder:o(`Head of Marketing at Acme, Inc`),type:`text`,value:l,onChange:e=>{let t=e.currentTarget.value;p(50-t.length),u(t)},onKeyDown:e=>{e.key===`Enter`&&(u(e.currentTarget.value),y().catch(console.error))}}),(0,m.jsx)(`button`,{className:`mt-10 flex h-[42px] w-full items-center justify-center rounded-md px-8 font-sans text-md font-semibold text-white opacity-100 transition-opacity duration-200 ease-linear hover:opacity-90`,"data-testid":`save-button`,style:{backgroundColor:a??`#000000`},type:`button`,onClick:()=>{y().catch(console.error)},children:o(`Save`)})]})]}),(0,m.jsx)(fv,{close:()=>v(!1)})]})})},hv=({commentId:e})=>{let{dispatchAction:t,isMember:n,isPaidOnly:r}=k(),i=e=>{e.stopPropagation()},a=()=>{t(`closePopup`,{})},o=!n;return(0,m.jsx)(`div`,{className:`rounded-none relative h-screen w-screen bg-white p-[28px] text-center shadow-modal sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left`,onClick:a,onMouseDown:i,children:(0,m.jsxs)(`div`,{className:`flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0`,children:[(0,m.jsx)(`div`,{className:`flex flex-col items-center pb-3 pt-6`,"data-testid":`cta-box`,children:(0,m.jsx)(ue,{commentId:e,isFirst:o,isPaid:r})}),(0,m.jsx)(fv,{close:a})]})})},gv=e=>(0,m.jsx)(`svg`,{width:`26px`,height:`26px`,viewBox:`-1 -1 26 26`,xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,...e,children:(0,m.jsx)(`g`,{id:`check-circle`,stroke:`none`,strokeWidth:1,fill:`none`,fillRule:`evenodd`,children:(0,m.jsx)(`path`,{className:`animated-check-circle`,d:`M19.6004116,2.71490714 C17.5353801,1.0196018 14.8927356,0 12,0 C5.38938053,0 0,5.38938053 0,12 C0,18.6106195 5.38938053,24 12,24 C18.6106195,24 24,18.6106195 24,12 C24,9.71681416 23.3628319,7.59292035 22.2743363,5.78761062 L11.0442478,17.0442478 L5.49557522,11.4955752`,id:`Shape`,stroke:`#FFFFFF`,strokeWidth:2})})});let _v={addDetailsPopup:mv,reportPopup:({comment:e})=>{let{dispatchAction:t,t:n}=k(),[r,i]=(0,O.useState)(`default`),a=`bg-red-600`;r===`sent`&&(a=`bg-green-600`);let o=n(`Report`),s=o;r===`sending`?o=n(`Sending`):r===`sent`&&(o=n(`Sent`));let c=(0,m.jsx)(A,{className:`mr-2 size-[24px] fill-white`}),l=(0,m.jsx)(gv,{className:`mr-2 size-[16px]`}),u=null;r===`sending`?u=c:r===`sent`&&(u=l);let d=e=>{e.stopPropagation()},f=()=>{t(`closePopup`,{})};return(0,m.jsx)(`div`,{className:`rounded-none relative h-screen w-screen bg-white p-[28px] text-center shadow-modal sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left`,onMouseDown:d,children:(0,m.jsxs)(`div`,{className:`flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0`,children:[(0,m.jsx)(`h1`,{className:`mb-1.5 font-sans text-[2.2rem] font-bold tracking-tight text-black`,children:(0,m.jsx)(`span`,{children:n(`Report this comment?`)})}),(0,m.jsx)(`p`,{className:`px-4 font-sans text-md leading-9 text-black sm:pl-0 sm:pr-4`,children:n(`Your request will be sent to the owner of this site.`)}),(0,m.jsxs)(`div`,{className:`mt-auto flex flex-col items-center justify-start gap-4 sm:mt-8 sm:flex-row`,children:[(0,m.jsxs)(`button`,{className:`flex h-[44px] w-full items-center justify-center rounded-md px-4 font-sans text-md font-medium text-white transition duration-200 ease-linear sm:w-fit ${a} opacity-100 hover:opacity-90`,style:{backgroundColor:a??`#000000`},type:`button`,onClick:n=>{n.stopPropagation(),i(`sending`),setTimeout(()=>{i(`sent`),t(`reportComment`,e),setTimeout(()=>{f()},750)},1e3)},children:[(0,m.jsxs)(`span`,{className:`invisible whitespace-nowrap`,children:[s,(0,m.jsx)(`br`,{}),(0,m.jsxs)(`span`,{className:`flex h-[44px] items-center justify-center whitespace-nowrap`,children:[c,n(`Sending`)]}),(0,m.jsx)(`br`,{}),(0,m.jsxs)(`span`,{className:`flex h-[44px] items-center justify-center whitespace-nowrap`,children:[l,n(`Sent`)]})]}),(0,m.jsxs)(`span`,{className:`absolute flex h-[44px] items-center justify-center whitespace-nowrap`,children:[u,o]})]}),(0,m.jsx)(`button`,{className:`h-[44px] w-full px-2 font-sans text-md font-medium text-neutral-500 dark:text-neutral-400 sm:w-fit`,type:`button`,onClick:f,children:n(`Cancel`)})]}),(0,m.jsx)(fv,{close:f})]})})},ctaPopup:hv,deletePopup:({comment:e})=>{let{dispatchAction:t,t:n}=k(),[r,i]=(0,O.useState)(`default`),[a,o]=(0,O.useState)(!1),s=`bg-red-600`;r===`sent`&&(s=`bg-green-600`);let c=n(`Delete`),l=c;r===`sending`?c=n(`Deleting`):r===`sent`&&(c=n(`Deleted`));let u=(0,m.jsx)(A,{className:`mr-2 size-[24px] fill-white`}),d=(0,m.jsx)(gv,{className:`mr-2 size-[16px]`}),f=null;r===`sending`?f=u:r===`sent`&&(f=d);let p=e=>{e.stopPropagation()},h=()=>{t(`closePopup`,{})},g=n=>{n.stopPropagation(),!a&&(o(!0),i(`sending`),setTimeout(()=>{i(`sent`),t(`deleteComment`,e),setTimeout(()=>{h()},750)},1e3))};return(0,m.jsx)(`div`,{className:`rounded-none relative h-screen w-screen bg-white p-[28px] text-center shadow-modal sm:h-auto sm:w-[500px] sm:rounded-xl sm:p-8 sm:text-left`,"data-testid":`delete-popup`,onMouseDown:p,children:(0,m.jsxs)(`div`,{className:`flex h-full flex-col justify-center pt-10 sm:justify-normal sm:pt-0`,children:[(0,m.jsx)(`h1`,{className:`mb-1.5 font-sans text-[2.2rem] font-bold tracking-tight text-black`,children:(0,m.jsx)(`span`,{children:n(`Are you sure?`)})}),(0,m.jsx)(`p`,{className:`px-4 font-sans text-md leading-9 text-black sm:pl-0 sm:pr-4`,children:n(`Once deleted, this comment can’t be recovered.`)}),(0,m.jsxs)(`div`,{className:`mt-auto flex flex-col items-center justify-start gap-4 sm:mt-8 sm:flex-row`,children:[(0,m.jsxs)(`button`,{className:`flex h-[44px] w-full items-center justify-center rounded-md px-4 font-sans text-md font-medium text-white transition duration-200 ease-linear sm:w-fit ${s} opacity-100 hover:opacity-90`,"data-testid":`delete-popup-confirm`,disabled:a,type:`button`,onClick:g,children:[(0,m.jsxs)(`span`,{className:`invisible whitespace-nowrap`,children:[l,(0,m.jsx)(`br`,{}),(0,m.jsxs)(`span`,{className:`flex h-[44px] items-center justify-center whitespace-nowrap`,children:[u,n(`Deleting`)]}),(0,m.jsx)(`br`,{}),(0,m.jsxs)(`span`,{className:`flex h-[44px] items-center justify-center whitespace-nowrap`,children:[d,n(`Deleted`)]})]}),(0,m.jsxs)(`span`,{className:`absolute flex h-[44px] items-center justify-center whitespace-nowrap`,children:[f,c]})]}),(0,m.jsx)(`button`,{className:`h-[44px] w-full px-2 font-sans text-md font-medium text-neutral-500 dark:text-neutral-400 sm:w-fit`,type:`button`,onClick:h,children:n(`Cancel`)})]}),(0,m.jsx)(fv,{close:h})]})})}};var vv=()=>{let{popup:e}=k(),[t,n]=(0,O.useState)(e);if((0,O.useEffect)(()=>{if(e!==null&&n(e),e===null){let e=setTimeout(()=>{n(null)},250);return()=>{clearTimeout(e)}}},[e,n]),!t||!t.type)return null;let{type:r,...i}=e??t,a=_v[r];if(!a)return console.warn(`Unknown popup of type `,r),null;let o=e===t;return(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(uv,{callback:i.callback,show:o,title:r,children:(0,m.jsx)(a,{...i})})})},$=e=>typeof e==`string`,yv=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},bv=e=>e==null?``:``+e,xv=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},Sv=/###/g,Cv=e=>e&&e.indexOf(`###`)>-1?e.replace(Sv,`.`):e,wv=e=>!e||$(e),Tv=(e,t,n)=>{let r=$(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(wv(e))return{};let t=Cv(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return wv(e)?{}:{obj:e,k:Cv(r[i])}},Ev=(e,t,n)=>{let{obj:r,k:i}=Tv(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=Tv(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=Tv(e,o,Object),s&&s.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},Dv=(e,t,n,r)=>{let{obj:i,k:a}=Tv(e,t,Object);i[a]=i[a]||[],i[a].push(n)},Ov=(e,t)=>{let{obj:n,k:r}=Tv(e,t);if(n)return n[r]},kv=(e,t,n)=>{let r=Ov(e,n);return r===void 0?Ov(t,n):r},Av=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?$(e[r])||e[r]instanceof String||$(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Av(e[r],t[r],n):e[r]=t[r]);return e},jv=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),Mv={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},Nv=e=>$(e)?e.replace(/[&<>"'\/]/g,e=>Mv[e]):e,Pv=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},Fv=[` `,`,`,`?`,`!`,`;`],Iv=new Pv(20),Lv=(e,t,n)=>{t||=``,n||=``;let r=Fv.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=Iv.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},Rv=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`.`;if(!e)return;if(e[t])return e[t];let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},zv=e=>e&&e.replace(`_`,`-`),Bv={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},Vv=new class e{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||`i18next:`,this.logger=e||Bv,this.options=t,this.debug=t.debug}log(){var e=[...arguments];return this.forward(e,`log`,``,!0)}warn(){var e=[...arguments];return this.forward(e,`warn`,``,!0)}error(){var e=[...arguments];return this.forward(e,`error`,``)}deprecate(){var e=[...arguments];return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:($(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},Hv=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){var t=[...arguments].slice(1);this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[n,r]=e;for(let e=0;e<r;e++)n(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(n=>{let[r,i]=n;for(let n=0;n<i;n++)r.apply(r,[e,...t])})}},Uv=class extends Hv{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:[`translation`],defaultNS:`translation`};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):$(n)&&i?o.push(...n.split(i)):o.push(n)));let s=Ov(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!$(n)?s:Rv(this.data&&this.data[e]&&this.data[e][t],n,i)}addResource(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),Ev(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let r in n)($(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=Ov(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Av(s,n,i):s={...s,...n},Ev(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.options.compatibilityAPI===`v1`?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},Wv={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))}),t}},Gv={},Kv=class e extends Hv{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),xv([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=Vv.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;let n=this.resolve(e,t);return n&&n.res!==void 0}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!Lv(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:$(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:$(i)?[i]:i}}translate(t,n,r){if(typeof n!=`object`&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n==`object`&&(n={...n}),n||={},t==null)return``;Array.isArray(t)||(t=[String(t)]);let i=n.returnDetails===void 0?this.options.returnDetails:n.returnDetails,a=n.keySeparator===void 0?this.options.keySeparator:n.keySeparator,{key:o,namespaces:s}=this.extractFromKey(t[t.length-1],n),c=s[s.length-1],l=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&l.toLowerCase()===`cimode`){if(u){let e=n.nsSeparator||this.options.nsSeparator;return i?{res:`${c}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${e}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:o}let d=this.resolve(t,n),f=d&&d.res,p=d&&d.usedKey||o,m=d&&d.exactUsedKey||o,h=Object.prototype.toString.apply(f),g=[`[object Number]`,`[object Function]`,`[object RegExp]`],_=n.joinArrays===void 0?this.options.joinArrays:n.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!$(f)&&typeof f!=`boolean`&&typeof f!=`number`;if(v&&f&&y&&g.indexOf(h)<0&&!($(_)&&Array.isArray(f))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,f,{...n,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(d.res=e,d.usedParams=this.getUsedParamsDetails(n),d):e}if(a){let e=Array.isArray(f),t=e?[]:{},r=e?m:p;for(let e in f)if(Object.prototype.hasOwnProperty.call(f,e)){let i=`${r}${a}${e}`;t[e]=this.translate(i,{...n,joinArrays:!1,ns:s}),t[e]===i&&(t[e]=f[e])}f=t}}else if(v&&$(_)&&Array.isArray(f))f=f.join(_),f&&=this.extendTranslation(f,t,n,r);else{let i=!1,s=!1,u=n.count!==void 0&&!$(n.count),p=e.hasDefaultValue(n),m=u?this.pluralResolver.getSuffix(l,n.count,n):``,h=n.ordinal&&u?this.pluralResolver.getSuffix(l,n.count,{ordinal:!1}):``,g=u&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),_=g&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${m}`]||n[`defaultValue${h}`]||n.defaultValue;!this.isValidLookup(f)&&p&&(i=!0,f=_),this.isValidLookup(f)||(s=!0,f=o);let v=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:f,y=p&&_!==f&&this.options.updateMissing;if(s||i||y){if(this.logger.log(y?`updateKey`:`missingKey`,l,c,o,y?_:f),a){let e=this.resolve(o,{...n,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(n.lng||this.language):e.push(n.lng||this.language);let r=(e,t,r)=>{let i=p&&r!==f?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,c,t,i,y,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,c,t,i,y,n),this.emit(`missingKey`,e,c,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,n);g&&n[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],o+t,n[`defaultValue${t}`]||_)})}):r(e,o,_))}f=this.extendTranslation(f,t,n,d,r),s&&f===o&&this.options.appendNamespaceToMissingKey&&(f=`${c}:${o}`),(s||i)&&this.options.parseMissingKeyHandler&&(f=this.options.compatibilityAPI===`v1`?this.options.parseMissingKeyHandler(f):this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${o}`:o,i?f:void 0))}return i?(d.res=f,d.usedParams=this.getUsedParamsDetails(n),d):f}extendTranslation(e,t,n,r,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let o=$(e)&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),s;if(o){let t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let c=n.replace&&!$(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,n.lng||this.language||r.usedLng,n),o){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;s<r&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!==`v1`&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,function(){var e=[...arguments];return i&&i[0]===e[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):a.translate(...e,t)},n)),n.interpolation&&this.interpolator.reset()}let o=n.postProcess||this.options.postProcess,s=$(o)?[o]:o;return e!=null&&s&&s.length&&n.applyPostProcessor!==!1&&(e=Wv.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,r,i,a,o;return $(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!$(t.count),d=u&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),f=t.context!==void 0&&($(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!Gv[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Gv[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(o.push(c+e),t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator}${t.context}`;o.push(r),u&&(o.push(r+e),t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!$(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},qv=e=>e.charAt(0).toUpperCase()+e.slice(1),Jv=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Vv.create(`languageUtils`)}getScriptPartFromCode(e){if(e=zv(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=zv(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if($(e)&&e.indexOf(`-`)>-1){if(typeof Intl<`u`&&Intl.getCanonicalLocales!==void 0)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch{}let t=[`hans`,`hant`,`latn`,`cyrl`,`cans`,`mong`,`arab`],n=e.split(`-`);return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=qv(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!==`sgn`&&n[2].length===2&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=qv(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=qv(n[2].toLowerCase()))),n.join(`-`)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>{if(e===n||!(e.indexOf(`-`)<0&&n.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&n.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===n||e.indexOf(n)===0&&n.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),$(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return $(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):$(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},Yv=[{lngs:[`ach`,`ak`,`am`,`arn`,`br`,`fil`,`gun`,`ln`,`mfe`,`mg`,`mi`,`oc`,`pt`,`pt-BR`,`tg`,`tl`,`ti`,`tr`,`uz`,`wa`],nr:[1,2],fc:1},{lngs:`af.an.ast.az.bg.bn.ca.da.de.dev.el.en.eo.es.et.eu.fi.fo.fur.fy.gl.gu.ha.hi.hu.hy.ia.it.kk.kn.ku.lb.mai.ml.mn.mr.nah.nap.nb.ne.nl.nn.no.nso.pa.pap.pms.ps.pt-PT.rm.sco.se.si.so.son.sq.sv.sw.ta.te.tk.ur.yo`.split(`.`),nr:[1,2],fc:2},{lngs:[`ay`,`bo`,`cgg`,`fa`,`ht`,`id`,`ja`,`jbo`,`ka`,`km`,`ko`,`ky`,`lo`,`ms`,`sah`,`su`,`th`,`tt`,`ug`,`vi`,`wo`,`zh`],nr:[1],fc:3},{lngs:[`be`,`bs`,`cnr`,`dz`,`hr`,`ru`,`sr`,`uk`],nr:[1,2,5],fc:4},{lngs:[`ar`],nr:[0,1,2,3,11,100],fc:5},{lngs:[`cs`,`sk`],nr:[1,2,5],fc:6},{lngs:[`csb`,`pl`],nr:[1,2,5],fc:7},{lngs:[`cy`],nr:[1,2,3,8],fc:8},{lngs:[`fr`],nr:[1,2],fc:9},{lngs:[`ga`],nr:[1,2,3,7,11],fc:10},{lngs:[`gd`],nr:[1,2,3,20],fc:11},{lngs:[`is`],nr:[1,2],fc:12},{lngs:[`jv`],nr:[0,1],fc:13},{lngs:[`kw`],nr:[1,2,3,4],fc:14},{lngs:[`lt`],nr:[1,2,10],fc:15},{lngs:[`lv`],nr:[1,2,0],fc:16},{lngs:[`mk`],nr:[1,2],fc:17},{lngs:[`mnk`],nr:[0,1,2],fc:18},{lngs:[`mt`],nr:[1,2,11,20],fc:19},{lngs:[`or`],nr:[2,1],fc:2},{lngs:[`ro`],nr:[1,2,20],fc:20},{lngs:[`sl`],nr:[5,1,2,3],fc:21},{lngs:[`he`,`iw`],nr:[1,2,20,21],fc:22}],Xv={1:e=>Number(e>1),2:e=>Number(e!=1),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(e==1?0:e>=2&&e<=4?1:2),7:e=>Number(e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(e==1?0:e==2?1:e!=8&&e!=11?2:3),9:e=>Number(e>=2),10:e=>Number(e==1?0:e==2?1:e<7?2:e<11?3:4),11:e=>Number(e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(e!==0),14:e=>Number(e==1?0:e==2?1:e==3?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:e===0?2:1),17:e=>Number(e==1||e%10==1&&e%100!=11?0:1),18:e=>Number(e==0?0:e==1?1:2),19:e=>Number(e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(e==1?0:e==0||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3)},Zv=[`v1`,`v2`,`v3`],Qv=[`v4`],$v={zero:0,one:1,two:2,few:3,many:4,other:5},ey=()=>{let e={};return Yv.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:Xv[t.fc]}})}),e},ty=class{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Vv.create(`pluralResolver`),(!this.options.compatibilityJSON||Qv.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=ey(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){let n=zv(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(!e.match(/-|_/))return;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>$v[e]-$v[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),``)}getSuffixRetroCompatible(e,t){let n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(r===2?r=`plural`:r===1&&(r=``));let i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON===`v1`?r===1?``:typeof r==`number`?`_plural_${r.toString()}`:i():this.options.compatibilityJSON===`v2`||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Zv.includes(this.options.compatibilityJSON)}},ny=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`.`,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=kv(e,t,n);return!a&&i&&$(n)&&(a=Rv(e,n,r),a===void 0&&(a=Rv(t,n,r))),a},ry=e=>e.replace(/\$/g,`$$$$`),iy=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Vv.create(`interpolator`),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?Nv:t,this.escapeValue=n===void 0?!0:n,this.useRawValueToEscape=r===void 0?!1:r,this.prefix=i?jv(i):a||`{{`,this.suffix=o?jv(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?jv(d):f||jv(`$t(`),this.nestingSuffix=p?jv(p):m||jv(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_===void 0?!1:_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=ny(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(ny(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>ry(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?ry(this.escape(e)):ry(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=$(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else !$(a)&&!this.useRawValueToEscape&&(a=bv(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);(o&&o.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!$(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),s=e,c=!0}if(i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!$(i))return i;$(i)||(i=bv(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),c&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},ay=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},oy=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(zv(r),i),t[o]=s),s(n)}},sy=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Vv.create(`formatter`),this.options=e,this.formats={number:oy((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:oy((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:oy((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:oy((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:oy((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){this.formatSeparator=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation.formatSeparator||`,`}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=oy(t)}format(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=ay(t);if(this.formats[i]){let t=e;try{let o=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},cy=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},ly=class extends Hv{constructor(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Vv.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{Dv(n.loaded,[i],a),cy(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();$(e)&&(e=this.languageUtils.toResolveHierarchy(e)),$(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend&&this.backend.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},uy=()=>({debug:!1,initImmediate:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),$(e[1])&&(t.defaultValue=e[1]),$(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0}}),dy=e=>($(e.ns)&&(e.ns=[e.ns]),$(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),$(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),fy=()=>{},py=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},my=class e extends Hv{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=dy(e),this.services={},this.logger=Vv,this.modules={external:[]},py(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t==`function`&&(n=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&($(t.ns)?t.defaultNS=t.ns:t.ns.indexOf(`translation`)<0&&(t.defaultNS=t.ns[0]));let r=uy();this.options={...r,...this.options,...dy(t)},this.options.compatibilityAPI!==`v1`&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);let i=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?Vv.init(i(this.modules.logger),this.options):Vv.init(null,this.options);let t;this.modules.formatter?t=this.modules.formatter:typeof Intl<`u`&&(t=sy);let n=new Jv(this.options);this.store=new Uv(this.options.resources,this.options);let a=this.services;a.logger=Vv,a.resourceStore=this.store,a.languageUtils=n,a.pluralResolver=new ty(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(a.formatter=i(t),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new iy(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new ly(i(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on(`*`,function(t){var n=[...arguments].slice(1);e.emit(t,...n)}),this.modules.languageDetector&&(a.languageDetector=i(this.modules.languageDetector),a.languageDetector.init&&a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=i(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new Kv(this.services,this.options),this.translator.on(`*`,function(t){var n=[...arguments].slice(1);e.emit(t,...n)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||=fy,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let a=yv(),o=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),a.resolve(t),n(e,t)};if(this.languages&&this.options.compatibilityAPI!==`v1`&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?o():setTimeout(o,0),a}loadResources(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fy,n=$(e)?e:this.language;if(typeof e==`function`&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&n.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return t();let e=[],r=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>r(e)),this.options.preload&&this.options.preload.forEach(e=>r(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,n){let r=yv();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=fy,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&Wv.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!([`cimode`,`dev`].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!([`cimode`,`dev`].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;let r=yv();this.emit(`languageChanging`,e);let i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(e,a)=>{a?(i(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},o=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=$(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{a(e,n)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}getFixedT(e,t,n){var r=this;let i=function(e,t){let a;if(typeof t!=`object`){var o=[...arguments].slice(2);a=r.options.overloadTranslationOptionHandler([e,t].concat(o))}else a={...t};a.lng=a.lng||i.lng,a.lngs=a.lngs||i.lngs,a.ns=a.ns||i.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||i.keyPrefix);let s=r.options.keySeparator||`.`,c;return c=a.keyPrefix&&Array.isArray(e)?e.map(e=>`${a.keyPrefix}${s}${e}`):a.keyPrefix?`${a.keyPrefix}${s}${e}`:e,r.t(c,a)};return $(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=yv();return this.options.ns?($(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=yv();$(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return`rtl`;let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services&&this.services.languageUtils||new Jv(uy());return t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(){return new e(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fy,r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new Uv(this.store.data,i),a.services.resourceStore=a.store),a.translator=new Kv(a.services,i),a.translator.on(`*`,function(e){var t=[...arguments].slice(1);a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},hy=my.createInstance();hy.createInstance=my.createInstance,hy.createInstance,hy.dir,hy.init,hy.loadResources,hy.reloadResources,hy.use,hy.changeLanguage,hy.getFixedT,hy.t,hy.exists,hy.setDefaultNamespace,hy.hasLoadedNamespace,hy.loadNamespaces,hy.loadLanguages;var gy=[{code:`af`,label:`Afrikaans`},{code:`ar`,label:`Arabic`},{code:`bg`,label:`Bulgarian`},{code:`bn`,label:`Bengali`},{code:`bs`,label:`Bosnian`},{code:`ca`,label:`Catalan`},{code:`cs`,label:`Czech`},{code:`da`,label:`Danish`},{code:`de`,label:`German`},{code:`de-CH`,label:`Swiss German`},{code:`el`,label:`Greek`},{code:`en`,label:`English`},{code:`eo`,label:`Esperanto`},{code:`es`,label:`Spanish`},{code:`et`,label:`Estonian`},{code:`eu`,label:`Basque`},{code:`fa`,label:`Persian/Farsi`},{code:`fi`,label:`Finnish`},{code:`fr`,label:`French`},{code:`gd`,label:`Gaelic (Scottish)`},{code:`he`,label:`Hebrew`},{code:`hi`,label:`Hindi`},{code:`hr`,label:`Croatian`},{code:`hu`,label:`Hungarian`},{code:`id`,label:`Indonesian`},{code:`is`,label:`Icelandic`},{code:`it`,label:`Italian`},{code:`ja`,label:`Japanese`},{code:`ko`,label:`Korean`},{code:`kz`,label:`Kazakh`},{code:`lt`,label:`Lithuanian`},{code:`lv`,label:`Latvian`},{code:`mk`,label:`Macedonian`},{code:`mn`,label:`Mongolian`},{code:`ms`,label:`Malay`},{code:`nb`,label:`Norwegian Bokmål`},{code:`ne`,label:`Nepali`},{code:`nl`,label:`Dutch`},{code:`nn`,label:`Norwegian Nynorsk`},{code:`pa`,label:`Punjabi`},{code:`pl`,label:`Polish`},{code:`pt`,label:`Portuguese`},{code:`pt-BR`,label:`Portuguese (Brazil)`},{code:`ro`,label:`Romanian`},{code:`ru`,label:`Russian`},{code:`si`,label:`Sinhala`},{code:`sk`,label:`Slovak`},{code:`sl`,label:`Slovenian`},{code:`sq`,label:`Albanian`},{code:`sr`,label:`Serbian`},{code:`sr-Cyrl`,label:`Serbian (Cyrillic)`},{code:`sv`,label:`Swedish`},{code:`sw`,label:`Swahili`},{code:`ta`,label:`Tamil`},{code:`th`,label:`Thai`},{code:`tr`,label:`Turkish`},{code:`uk`,label:`Ukrainian`},{code:`ur`,label:`Urdu`},{code:`uz`,label:`Uzbek`},{code:`vi`,label:`Vietnamese`},{code:`zh`,label:`Chinese`},{code:`zh-Hant`,label:`Traditional Chinese`}],_y=s({LOCALE_DATA:()=>gy,SUPPORTED_LOCALES:()=>vy,createGenerateResources:()=>by,createI18n:()=>xy,mergeDefaultExport:()=>yy},1),vy=gy.map(e=>e.code);function yy(e){return{...e,...e.default&&typeof e.default==`object`?e.default:{}}}function by(e){return function(t,n){return t.reduce((t,r)=>{let i=e(r,n);return i===void 0&&(i=e(`en`,n)),t[r]={[n]:yy(i||{})},t},{})}}function xy({generateThemeResources:e,generateResources:t}){return(n=`en`,r=`portal`,i={})=>{let a=hy.createInstance(),o={prefix:`{`,suffix:`}`};(r===`theme`||r===`portal`)&&(o.escapeValue=!1);let s;return s=r===`theme`?e(n,i):t(vy,r),a.init({lng:n,nsSeparator:!1,keySeparator:!1,returnEmptyString:!1,fallbackLng:{no:[`nb`,`en`],default:[`en`]},ns:r,defaultNS:r,interpolation:o,resources:s}),a}}var{createI18n:Sy,createGenerateResources:Cy,LOCALE_DATA:wy,SUPPORTED_LOCALES:Ty}=_y;function Ey(e,t){let n={};for(let[t,r]of Object.entries(e))n[t.match(/\/locales\/([^/]+)\//)[1]]=r;return Dy(n,t)}function Dy(e,t){let n=Cy(t=>e[t]);function r(e){return{[e]:{theme:{}}}}let i=Sy({generateResources:n,generateThemeResources:r});return i.LOCALE_DATA=wy,i.SUPPORTED_LOCALES=Ty,i.generateResources=n,i.namespace=t,i.default=i,i}var Oy={"{amount} characters left":`{amount} karakters oor`,"{amount} comments":`{amount} kommentaar`,"{amount} hrs ago":`{amount} ure gelede`,"{amount} mins ago":`{amount} minute gelede`,"{amount} more":`{amount} meer`,"1 comment":`1 kommentaar`,"Add comment":`Voeg kommentaar by`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Voeg konteks by jou kommentaar, deel jou naam en kundigheid om 'n gesonde bespreking te bevorder.`,"Add reply":`Voeg antwoord by`,"Add your expertise":``,"Already a member?":`Reeds 'n lid?`,Anonymous:`Anoniem`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Word 'n lid van {publication} om kommentaar te lewer.`,"Become a paid member of {publication} to start commenting.":`Word 'n betaalde lid van {publication} om kommentaar te lewer.`,Best:``,Cancel:`Kanselleer`,Comment:`Kommentaar`,"Commenting disabled":``,"Complete your profile":`Voltooi jou profiel`,Delete:`Skrap`,Deleted:``,"Deleted member":`Geskrapte lid`,Deleting:``,Discussion:`Bespreking`,Dislike:``,Edit:`Redigeer`,"Edit this comment":`Redigeer hierdie kommentaar`,edited:`geredigeer`,"Enter your name":`Voer jou naam in`,Expertise:`Kundigheid`,"Founder @ Acme Inc":`Stigter @ Acme Inc`,"Full-time parent":`Voltydse ouer`,"Head of Marketing at Acme, Inc":`Hoof van Bemarking by Acme, Inc`,"Hidden for members":``,"Hide comment":`Versteek kommentaar`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Sluit aan by die bespreking`,"Just now":`Sopas`,Like:``,"Load more ({amount})":``,"Local resident":`Plaaslike inwoner`,"Member discussion":`Lidmaat bespreking`,Name:`Naam`,Neurosurgeon:`Neurochirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Een uur gelede`,"One min ago":`Een minuut gelede`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,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`,"See full discussion":``,Sending:`Besig om te stuur`,Sent:`Gestuur`,"Show {amount} more replies":`Wys {amount} meer antwoorde`,"Show 1 more reply":`Wys nog 1 antwoord`,"Show comment":`Wys kommentaar`,"Sign in":`Teken in`,"Sign up now":`Sluit nou aan`,"Sort by":``,"Start the conversation":`Begin die gesprek`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Hierdie kommentaar is weggesteek.`,"This comment has been removed.":`Hierdie kommentaar is verwyder.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Gradeer nou op`,"View in admin":``,Yesterday:`Gister`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Jou versoek sal aan die eienaar van hierdie webwerf gestuur word.`},ky={"{amount} characters left":`الحروف المتبقية : {amount}`,"{amount} comments":`{amount} تعليق/ات`,"{amount} hrs ago":`منذ {amount} ساعات`,"{amount} mins ago":`منذ {amount} دقيقة`,"{amount} more":`{amount} المزيد`,"1 comment":`تعليق واحد`,"Add comment":`اضف تعليق`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`قم بإضافة سياق لتعليقك، شارك اسمك و مجال خبرتك لكي نرعى محادثة مثمرة`,"Add reply":`ردّ`,"Add your expertise":``,"Already a member?":`هل انت مسجل بالفعل؟`,Anonymous:`مجهول`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`يجب أن تصبح عضوًا فى {publication} لتستطيع التعليق`,"Become a paid member of {publication} to start commenting.":`يجب ان تكون عضويتك مدفوعة فى {publication} لكي تستطيع التعليق`,Best:``,Cancel:`إلغاء`,Comment:`تعليق`,"Commenting disabled":``,"Complete your profile":`إكمال ملفك الشخصى`,Delete:`حذف`,Deleted:``,"Deleted member":`الاعضاء المحذوفين`,Deleting:``,Discussion:`النقاش`,Dislike:``,Edit:`تعديل`,"Edit this comment":`عدّل هذا التعليق`,edited:`تم التعديل`,"Enter your name":`اكتب اسمك`,Expertise:`مجال تخصصك`,"Founder @ Acme Inc":`مؤسس لدى شركة أكمي`,"Full-time parent":`أب بدوام كامل`,"Head of Marketing at Acme, Inc":`رئيس وحدة التسويق لدى شركة أكمى`,"Hidden for members":``,"Hide comment":`اخف التعليق`,"Jamie Larson":`فلان الفلانى`,"Join the discussion":`انضم للمحادثة`,"Just now":`الآن`,Like:``,"Load more ({amount})":``,"Local resident":`مقيم محلى`,"Member discussion":`مناقشة الاعضاء`,Name:`الاسم`,Neurosurgeon:`جراح المخ و الاعصاب`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`منذ ساعة واحدة`,"One min ago":` منذ دقيقة واحدة`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:``,"Replied to":``,Reply:`رد`,"Reply to":``,"Reply to comment":`رد على هذا التعليق`,Report:`الإبلاغ`,"Report comment":`ابلغ عن هذا التعليق`,"Report this comment?":`الإبلاغ عن التعليق؟`,Save:`حفظ`,"See full discussion":``,Sending:`جارى الارسال`,Sent:`تم الارسال`,"Show {amount} more replies":`اظهر {amount} ردود`,"Show 1 more reply":`اظهر تعليق وحيد`,"Show comment":`اظهر التعليق`,"Sign in":`تسجيل الدخول`,"Sign up now":`قم بالتسجيل الآن`,"Sort by":`ترتيب بحسب`,"Start the conversation":`ابدأ النقاش`,"The linked comment is no longer available.":``,"This comment has been hidden.":`تم اخفاء هذا التعليق`,"This comment has been removed.":`تم حذف هذا التعليق`,Unpin:``,"Unpin comment":``,"Upgrade now":`قم بالترقية الآن`,"View in admin":``,Yesterday:`أمس`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`سيتم ارسال طلبك لصاحب الموقع`},Ay={"{amount} characters left":`Остават {amount} знака`,"{amount} comments":`{amount} коментара`,"{amount} hrs ago":`Преди {amount} часа`,"{amount} mins ago":`Преди {amount} минути`,"{amount} more":`Още {amount}`,"1 comment":`1 коментар`,"Add comment":`Нов коментар`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Добавете контекст към коментара си, споделете името си и опита си, за да насърчите полезна дискусия.`,"Add reply":`Отговор`,"Add your expertise":`Добавете компетенции`,"Already a member?":`Вече сте абонат?`,Anonymous:`Анонимен`,"Are you sure?":`Убедени ли сте?`,Back:`Назад`,"Become a member of {publication} to start commenting.":`Абонирайте се за {publication}, за да коментирате.`,"Become a paid member of {publication} to start commenting.":`Станете плащащ абонат на {publication}, за да коментирате.`,Best:`Най-добрите`,Cancel:`Отказ`,Comment:`Коментар`,"Commenting disabled":`Коментирането е изключено`,"Complete your profile":`Попълнете профила си`,Delete:`Изтриване`,Deleted:`Изтрито`,"Deleted member":`Изтрит абонат`,Deleting:`Изтриване`,Discussion:`Дискусия`,Dislike:`Не ми харесва`,Edit:`Редактиране`,"Edit this comment":`Редактиране на коментара`,edited:`редактиран`,"Enter your name":`Попълнете името си`,Expertise:`Компетенции`,"Founder @ Acme Inc":`Основател на Компания ООД`,"Full-time parent":`Родител на пълно работно време`,"Head of Marketing at Acme, Inc":`Директор маркетинг в Компания ООД`,"Hidden for members":`Скрит за абонати`,"Hide comment":`Скриване на коментара`,"Jamie Larson":`Иван Иванов`,"Join the discussion":`Участвайте в дискусията`,"Just now":`Току-що`,Like:`Харесва ми`,"Load more ({amount})":`Още ({amount})`,"Local resident":`Местен жител`,"Member discussion":`Дискусия за абонатите`,Name:`Име`,Neurosurgeon:`Неврохирург`,Newest:`Най-нови`,Oldest:`Най-стари`,"Once deleted, this comment can’t be recovered.":`Веднъж изтрит, коментарът не може да бъде възстановен.`,"One hour ago":`Преди час`,"One min ago":`Преди минута`,"Pin comment":`Залепи коментара`,Pinned:`Залепен`,"Read more replies":`Още отговори`,"Remove dislike":`Отмени нехаресването`,"Remove like":`Отмени харесването`,removed:`премахнат`,"Replied to":`Отговорено на`,Reply:`Отговор`,"Reply to":`Отговор на`,"Reply to comment":`Отговор на коментара`,Report:`Докладване`,"Report comment":`Докладване на коментара`,"Report this comment?":`Ще докладвате ли коментара?`,Save:`Запис`,"See full discussion":`Вижте цялата дискусия`,Sending:`Изпращане`,Sent:`Изпратен`,"Show {amount} more replies":`Покажи още {amount} отговора`,"Show 1 more reply":`Покажи още един отговор`,"Show comment":`Покажи коментар`,"Sign in":`Вход`,"Sign up now":`Регистрация`,"Sort by":`Сортиране по`,"Start the conversation":`Започнете дискусия`,"The linked comment is no longer available.":`Посоченият коментар вече не е наличен.`,"This comment has been hidden.":`Този коментар е скрит.`,"This comment has been removed.":`Този коментар е премахнат.`,Unpin:`Отлепи`,"Unpin comment":`Отлепи коментара`,"Upgrade now":`Надградете сега`,"View in admin":`Преглед в админ панела`,Yesterday:`Вчера`,"You can't post comments in this publication.":`Не може да коментирате под тази публикация.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Не може да коментирате под тази публикация. <a>Връзка с поддръжката</a> за повече информация.`,"Your request will be sent to the owner of this site.":`Искането ще бъде изпратено до собственика на сайта.`},jy={"{amount} characters left":`{amount} অক্ষর বাকি`,"{amount} comments":`{amount} মন্তব্য`,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":`{amount}টি আরও`,"1 comment":`১টি মন্তব্য`,"Add comment":`মন্তব্য যোগ করুন`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`আপনার মন্তব্যে প্রসঙ্গ যোগ করুন, একটি সুস্থ আলোচনা করতে আপনার নাম ও অভিজ্ঞতা শেয়ার করুন।`,"Add reply":`উত্তর যোগ করুন`,"Add your expertise":``,"Already a member?":`ইত:পূর্বে সদস্য?`,Anonymous:`অজ্ঞাতনামা`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`{publication} এর সদস্য হন মন্তব্য করার জন্য।`,"Become a paid member of {publication} to start commenting.":`{publication} এর পেইড সদস্য হন মন্তব্য করার জন্য।`,Best:``,Cancel:`বাতিল করুন`,Comment:`মন্তব্য`,"Commenting disabled":``,"Complete your profile":`আপনার প্রোফাইল সম্পূর্ণ করুন`,Delete:`মুছে ফেলুন`,Deleted:``,"Deleted member":`মুছে ফেলা সদস্য`,Deleting:``,Discussion:`আলোচনা`,Dislike:``,Edit:`সম্পাদনা`,"Edit this comment":`এই মন্তব্য সম্পাদনা করুন`,edited:``,"Enter your name":`আপনার নাম লিখুন`,Expertise:`বিশেষজ্ঞতা`,"Founder @ Acme Inc":`প্রতিষ্ঠাতা @ বাংলাদেশ ট্রেড হাব`,"Full-time parent":`পূর্ণকালীন অভিভাবক`,"Head of Marketing at Acme, Inc":`মার্কেটিং প্রধান @ বাংলাদেশ ট্রেড হাব`,"Hidden for members":``,"Hide comment":`মন্তব্য লুকান`,"Jamie Larson":`শাহ নেওয়াজ`,"Join the discussion":`আলোচনায় যোগ দিন`,"Just now":`এখনই`,Like:``,"Load more ({amount})":``,"Local resident":`স্থানীয় বাসিন্দা`,"Member discussion":`সদস্য আলোচনা`,Name:`নাম`,Neurosurgeon:`নিউরোসার্জন`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`এক ঘণ্টা পূর্বে`,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:``,"Replied to":``,Reply:`উত্তর`,"Reply to":``,"Reply to comment":`মন্তব্যের উত্তর দিন`,Report:`প্রতিবেদন`,"Report comment":`মন্তব্য প্রতিবেদন করুন`,"Report this comment?":`এই মন্তব্য প্রতিবেদন করবেন?`,Save:`সংরক্ষণ করুন`,"See full discussion":``,Sending:`পাঠানো হচ্ছে`,Sent:`পাঠানো হয়েছে`,"Show {amount} more replies":` আরো {amount}টি উত্তর দেখান`,"Show 1 more reply":`১টি আরো উত্তর দেখান`,"Show comment":`মন্তব্য দেখান`,"Sign in":`সাইন ইন করুন`,"Sign up now":`এখনই সাইন আপ করুন`,"Sort by":``,"Start the conversation":`আলোচনা শুরু করুন`,"The linked comment is no longer available.":``,"This comment has been hidden.":`এই মন্তব্য লুকানো হয়েছে।`,"This comment has been removed.":`এই মন্তব্য মুছে ফেলা হয়েছে।`,Unpin:``,"Unpin comment":``,"Upgrade now":`এখনই আপগ্রেড করুন`,"View in admin":``,Yesterday:`গতকাল`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`আপনার অনুরোধ সাইটের মালিকের কাছে পাঠানো হবে।`},My={"{amount} characters left":`Preostalo {amount} karaktera`,"{amount} comments":`{amount} komentara`,"{amount} hrs ago":`Prije {amount} sati`,"{amount} mins ago":`Prije {amount} minuta`,"{amount} more":`Još {amount}`,"1 comment":`1 komentar`,"Add comment":`Dodaj komentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Dodaj kontekst svom komentaru, podijeli svoje ime i stručnost u svrhu kvalitetnije diskusije.`,"Add reply":`Objavi komentar`,"Add your expertise":``,"Already a member?":`Već si član?`,Anonymous:`Anoniman`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Postani član portala {publication} za pristup diskusiji.`,"Become a paid member of {publication} to start commenting.":`Postani plaćeni član portala {publication} za pristup diskusiji.`,Best:``,Cancel:`Otkaži`,Comment:`Komentar`,"Commenting disabled":``,"Complete your profile":`Dovrši svoj profil`,Delete:`Obriši`,Deleted:``,"Deleted member":`Obrisan član`,Deleting:``,Discussion:`Diskusija`,Dislike:``,Edit:`Uredi`,"Edit this comment":`Uredi komentar`,edited:`uređeno`,"Enter your name":`Unesi ime`,Expertise:`Stručnost`,"Founder @ Acme Inc":`Acme Inc osnivač`,"Full-time parent":`Full time roditelj`,"Head of Marketing at Acme, Inc":`Šef marketinga u kompaniji Acme d.o.o`,"Hidden for members":``,"Hide comment":`Sakrij komentar`,"Jamie Larson":`Vanja Larsić`,"Join the discussion":`Pridruži se diskusiji`,"Just now":`Upravo sada`,Like:``,"Load more ({amount})":``,"Local resident":`Lokalni stanovnik`,"Member discussion":`Diskusija članova`,Name:`Ime`,Neurosurgeon:`Neurohirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Prije jedan sat`,"One min ago":`Prije jedan minut`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,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`,"See full discussion":``,Sending:`Šaljem`,Sent:`Poslano`,"Show {amount} more replies":`Prikaži još {amount} odgovora`,"Show 1 more reply":`Prikaži još jedan odgovor`,"Show comment":`Prikaži komentar`,"Sign in":`Prijavi se`,"Sign up now":`Postani član`,"Sort by":``,"Start the conversation":`Započni diskusiju`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Ovaj komentar je sakriven.`,"This comment has been removed.":`Ovaj komentar je uklonjen.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Nadogradi račun sada`,"View in admin":``,Yesterday:`Jučer`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Tvoj zahtjev je poslan vlasniku stranice.`},Ny={"{amount} characters left":`{amount} caràcters restants`,"{amount} comments":`{amount} comentaris`,"{amount} hrs ago":`Fa {amount} hores`,"{amount} mins ago":`Fa {amount} minuts`,"{amount} more":`{amount} més`,"1 comment":`Un comentari`,"Add comment":`Afegeix un comentari`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Afegeix context al teu comentari, comparteix el teu nom i experiència per fomentar una discussió sana.`,"Add reply":`Afegeix una resposta`,"Add your expertise":``,"Already a member?":`Ja n'ets membre?`,Anonymous:`Anònim`,"Are you sure?":`N'estàs segur?`,Back:``,"Become a member of {publication} to start commenting.":`Fes-te membre de {publication} per començar a comentar.`,"Become a paid member of {publication} to start commenting.":`Fes-te membre de pagament de {publication} per començar a comentar`,Best:``,Cancel:`Cancel·la`,Comment:`Comentari`,"Commenting disabled":``,"Complete your profile":`Completa el teu perfil`,Delete:`Esborra`,Deleted:`Esborrat`,"Deleted member":`Membre esborrat`,Deleting:`Esborrant`,Discussion:`Debat`,Dislike:``,Edit:`Edita`,"Edit this comment":`Edita aquest comentari`,edited:`editat`,"Enter your name":`Escriu el teu nom`,Expertise:`Expertesa`,"Founder @ Acme Inc":`Fundador @ Acme Inc`,"Full-time parent":`Pare a temps complet`,"Head of Marketing at Acme, Inc":`Cap de màrqueting a Acme, Inc`,"Hidden for members":`Ocult pels membres`,"Hide comment":`Oculta el comentari`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Uneix-te al debat`,"Just now":`Just ara`,Like:``,"Load more ({amount})":``,"Local resident":`Resident local`,"Member discussion":`Debat de membres`,Name:`Nom`,Neurosurgeon:`Neurocirurgià`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Un cop esborrat, aquest comentari no es pot recuperar`,"One hour ago":`Fa una hora`,"One min ago":`Fa un minut`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,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`,"See full discussion":``,Sending:`Enviant`,Sent:`Enviat`,"Show {amount} more replies":`Mostra {amount} respostes més`,"Show 1 more reply":`Mostra 1 resposta més`,"Show comment":`Mostra comentari`,"Sign in":`Inicia sessió`,"Sign up now":`Registra't ara`,"Sort by":`Ordena per`,"Start the conversation":`Comença la conversa`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Aquest comentari s'ha ocultat.`,"This comment has been removed.":`Aquest comentari s'ha esborrat.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Actualitza ara`,"View in admin":``,Yesterday:`Ahir`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`La teva sol·licitud s'enviarà al propietari d'aquest lloc.`},Py={"{amount} characters left":`Zbývá {amount} znaků`,"{amount} comments":`{amount} komentářů`,"{amount} hrs ago":`Před {amount} hodinami`,"{amount} mins ago":`Před {amount} minutami`,"{amount} more":`Dalších {amount}`,"1 comment":`1 komentář`,"Add comment":`Přidat komentář`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Pro podporu zdravé diskuse přidejte ke svému komentáři kontext, své jméno a odbornost.`,"Add reply":`Přidat odpověď`,"Add your expertise":``,"Already a member?":`Už jste členem?`,Anonymous:`Anonymní`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Staňte se členem {publication}, abyste mohli začít komentovat.`,"Become a paid member of {publication} to start commenting.":`Staňte se placeným členem {publication}, abyste mohli začít komentovat.`,Best:``,Cancel:`Zrušit`,Comment:`Komentář`,"Commenting disabled":``,"Complete your profile":`Dokončete svůj profil`,Delete:`Smazat`,Deleted:``,"Deleted member":`Smazaný člen`,Deleting:``,Discussion:`Diskuse`,Dislike:``,Edit:`Upravit`,"Edit this comment":`Upravit tento komentář`,edited:`upraveno`,"Enter your name":`Zadejte své jméno`,Expertise:`Odbornost`,"Founder @ Acme Inc":`Zakladatel @ Acme Inc`,"Full-time parent":`Rodič na plný úvazek`,"Head of Marketing at Acme, Inc":`Vedoucí marketingu v Acme, Inc`,"Hidden for members":``,"Hide comment":`Skrýt komentář`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Připojte se k diskusi`,"Just now":`Právě teď`,Like:``,"Load more ({amount})":``,"Local resident":`Místní obyvatel`,"Member discussion":`Diskuse členů`,Name:`Jméno`,Neurosurgeon:`Neurochirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Před jednou hodinou`,"One min ago":`Před jednou minutou`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,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`,"See full discussion":``,Sending:`Odesílání`,Sent:`Odesláno`,"Show {amount} more replies":`Zobrazit {amount} dalších odpovědí`,"Show 1 more reply":`Zobrazit 1 další odpověď`,"Show comment":`Zobrazit komentář`,"Sign in":`Přihlásit se`,"Sign up now":`Zaregistrujte se nyní`,"Sort by":``,"Start the conversation":`Začněte konverzaci`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Tento komentář byl skryt.`,"This comment has been removed.":`Tento komentář byl odstraněn.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Upgradovat`,"View in admin":``,Yesterday:`Včera`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Vaše žádost bude odeslána vlastníkovi tohoto webu.`},Fy={"{amount} characters left":`{amount} tegn tilbage`,"{amount} comments":`{amount} kommentarer`,"{amount} hrs ago":`{amount} timer siden`,"{amount} mins ago":`{amount} minutter siden`,"{amount} more":`{amount} mere`,"1 comment":`1 kommentar`,"Add comment":`Tilføj kommentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Tilføj kontekst til din kommentar, del dit navn og ekspertise for at fremme en sund diskussion.`,"Add reply":`Tilføj svar`,"Add your expertise":``,"Already a member?":`Allerede medlem?`,Anonymous:`Anonym`,"Are you sure?":`Er du sikker?`,Back:``,"Become a member of {publication} to start commenting.":`Bliv medlem af {publication} for at kunne skrive kommentarer.`,"Become a paid member of {publication} to start commenting.":`Bliv betalende medlem af {publication} for at kunne skrive kommentarer.`,Best:``,Cancel:`Annuller`,Comment:`Kommentér`,"Commenting disabled":``,"Complete your profile":`Færdiggør din profil`,Delete:`Slet`,Deleted:`Slettet`,"Deleted member":`Slettet medlem`,Deleting:`Sletter`,Discussion:`Diskussion`,Dislike:``,Edit:`Rediger`,"Edit this comment":`Rediger denne kommentar`,edited:`redigeret`,"Enter your name":`Indtast dit navn`,Expertise:`Ekspertise`,"Founder @ Acme Inc":`Grundlægger @ Acme Inc`,"Full-time parent":`Forældre på fuld tid`,"Head of Marketing at Acme, Inc":`Chef for marking hos Acme, Inc`,"Hidden for members":`Skjult for medlemmer`,"Hide comment":`Skjul kommentar`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Bliv en del af diskussionen`,"Just now":`Lige nu`,Like:``,"Load more ({amount})":`Indlæs mere ({amount})`,"Local resident":`Lokal borger`,"Member discussion":`Medlemsdiskussion`,Name:`Navn`,Neurosurgeon:`Neurokirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Når den først er slettet, kan denne kommentar ikke gendannes.`,"One hour ago":`En time siden`,"One min ago":`Et minut siden`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,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`,"See full discussion":``,Sending:`Sender`,Sent:`Sendt`,"Show {amount} more replies":`Vis {amount} flere svar`,"Show 1 more reply":`Vis 1 mere svar`,"Show comment":`Vis kommentar`,"Sign in":`Log ind`,"Sign up now":`Tilmed dig nu`,"Sort by":`Sorter efter`,"Start the conversation":`Start samtalen`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Denne kommentar er blevet skjult.`,"This comment has been removed.":`Denne kommentar er blevet fjernet.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Opgrader nu`,"View in admin":``,Yesterday:`I går`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Din anmodning vil blive sendt til ejeren af dette site.`},Iy={"{amount} characters left":`{amount} Zeichen übrig`,"{amount} comments":`{amount} Kommentare`,"{amount} hrs ago":`Vor {amount} Stunden`,"{amount} mins ago":`Vor {amount} Minuten`,"{amount} more":`{amount} weitere`,"1 comment":`1 Kommentar`,"Add comment":`Kommentar hinzufügen`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Füge deinem Kommentar Kontext hinzu, teile deinen Namen und deine Expertise, um eine gesunde Diskussion zu fördern.`,"Add reply":`Antwort hinzufügen`,"Add your expertise":`Ergänze deine Expertise`,"Already a member?":`Bist du bereits Mitglied?`,Anonymous:`Anonym`,"Are you sure?":`Bist du sicher?`,Back:``,"Become a member of {publication} to start commenting.":`Werde Mitglied bei {publication}, um Kommentare zu schreiben.`,"Become a paid member of {publication} to start commenting.":`Werde zahlendes Mitglied bei {publication}, um Kommentare zu schreiben.`,Best:`Beste`,Cancel:`Abbrechen`,Comment:`Kommentar`,"Commenting disabled":``,"Complete your profile":`Vervollständige dein Profil`,Delete:`Löschen`,Deleted:`Gelöscht`,"Deleted member":`Gelöschtes Mitglied`,Deleting:`Wird gelöscht`,Discussion:`Diskussion`,Dislike:``,Edit:`Bearbeiten`,"Edit this comment":`Diesen Kommentar bearbeiten`,edited:`bearbeitet`,"Enter your name":`Gib deinen Namen ein`,Expertise:`Expertise`,"Founder @ Acme Inc":`Gründer bei Acme Inc`,"Full-time parent":`Vollzeit-Elternteil`,"Head of Marketing at Acme, Inc":`Leiter Marketing bei Acme, Inc`,"Hidden for members":`Für Mitglieder verborgen`,"Hide comment":`Kommentar verbergen`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Nimm an der Diskussion teil`,"Just now":`Gerade eben`,Like:``,"Load more ({amount})":`Weitere laden ({amount})`,"Local resident":`Ortsansässiger`,"Member discussion":`Mitgliederdiskussion`,Name:`Name`,Neurosurgeon:`Neurochirurg`,Newest:`Neuste`,Oldest:`Älteste`,"Once deleted, this comment can’t be recovered.":`Der Kommentar kann nicht wiederhergestellt werden, sobald er gelöscht wurde.`,"One hour ago":`Vor einer Stunde`,"One min ago":`Vor einer Minute`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,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`,"See full discussion":``,Sending:`Senden`,Sent:`Gesendet`,"Show {amount} more replies":`{amount} weitere Antworten anzeigen`,"Show 1 more reply":`1 weitere Antwort anzeigen`,"Show comment":`Kommentar anzeigen`,"Sign in":`Einloggen`,"Sign up now":`Jetzt registrieren`,"Sort by":`Sortiere nach`,"Start the conversation":`Beginne das Gespräch`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Dieser Kommentar wurde ausgeblendet.`,"This comment has been removed.":`Dieser Kommentar wurde entfernt.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Jetzt upgraden`,"View in admin":``,Yesterday:`Gestern`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Deine Anfrage wird an den Besitzer dieser Website gesendet.`},Ly={"{amount} characters left":`{amount} Zeichen übrig`,"{amount} comments":`{amount} Kommentare`,"{amount} hrs ago":`Vor {amount} Stunden`,"{amount} mins ago":`Vor {amount} Minuten`,"{amount} more":`{amount} mehr`,"1 comment":`1 Kommentar`,"Add comment":`Kommentar hinzufügen`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Fügen Sie Kontext zu Ihrem Kommentar hinzu, teilen Sie Ihren Namen und Ihre Expertise, um eine gesunde Diskussion zu fördern.`,"Add reply":`Antwort hinzufügen`,"Add your expertise":`Teilen Sie Ihr Fachwissen`,"Already a member?":`Bereits ein Mitglied?`,Anonymous:`Anonym`,"Are you sure?":`Sind Sie sicher?`,Back:``,"Become a member of {publication} to start commenting.":`Werden Sie ein Mitglied bei {publication}, um Kommentare zu schreiben.`,"Become a paid member of {publication} to start commenting.":`Werden Sie ein zahlendes Mitglied bei {publication}, um Kommentare zu schreiben.`,Best:`Beste`,Cancel:`Abbrechen`,Comment:`Kommentar`,"Commenting disabled":``,"Complete your profile":`Vervollständigen Sie Ihr Profil`,Delete:`Löschen`,Deleted:`Gelöscht`,"Deleted member":`Gelöschtes Mitglied`,Deleting:`Löschen`,Discussion:`Diskussion`,Dislike:``,Edit:`Bearbeiten`,"Edit this comment":`Kommentar bearbeiten`,edited:`bearbeitet`,"Enter your name":`Geben Sie Ihren Namen ein`,Expertise:`Expertise`,"Founder @ Acme Inc":`Gründer bei Acme Inc`,"Full-time parent":`Vollzeit-Elternteil`,"Head of Marketing at Acme, Inc":`Leiter Marketing bei Acme, Inc`,"Hidden for members":`Verborgen für Mitglieder`,"Hide comment":`Kommentar verbergen`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`An der Diskussion teilnehmen`,"Just now":`Gerade eben`,Like:``,"Load more ({amount})":`Mehr laden ({amount})`,"Local resident":`Anwohner`,"Member discussion":`Mitgliederdiskussion`,Name:`Name`,Neurosurgeon:`Neurochirurg`,Newest:`Neueste`,Oldest:`Älteste`,"Once deleted, this comment can’t be recovered.":`Der Kommentar kann nicht wiederhergestellt werden, wenn er gelöscht wurde.`,"One hour ago":`Vor einer Stunde`,"One min ago":`Vor einer Minute`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,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`,"See full discussion":``,Sending:`Senden`,Sent:`Gesendet`,"Show {amount} more replies":`{amount} weitere Antworten anzeigen`,"Show 1 more reply":`1 weitere Antwort anzeigen`,"Show comment":`Kommentar anzeigen`,"Sign in":`Anmelden`,"Sign up now":`Jetzt registrieren`,"Sort by":`Sortiere nach`,"Start the conversation":`Beginnen Sie das Gespräch`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Dieser Kommentar wurde ausgeblendet.`,"This comment has been removed.":`Dieser Kommentar wurde entfernt.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Jetzt upgraden`,"View in admin":``,Yesterday:`Gestern`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Ihre Anfrage wird an den Seitenbesitzer gesendet.`},Ry={"{amount} characters left":`Απομένουν {amount} χαρακτήρες`,"{amount} comments":`{amount} σχόλια`,"{amount} hrs ago":`πριν από {amount} ώρες`,"{amount} mins ago":`πριν από {amount} λεπτά`,"{amount} more":`{amount} περισσότερα`,"1 comment":`1 σχόλιο`,"Add comment":`Προσθήκη σχολίου`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Προσθέστε περιεχόμενο στο σχόλιό σας, μοιραστείτε το όνομα και την εξειδίκευσή σας για να προωθήσετε μια υγιή συζήτηση.`,"Add reply":`Προσθήκη απάντησης`,"Add your expertise":``,"Already a member?":`Ήδη μέλος;`,Anonymous:`Ανώνυμος`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Γίνετε μέλος του {publication} για να ξεκινήσετε να σχολιάζετε.`,"Become a paid member of {publication} to start commenting.":`Γίνετε premium μέλος του {publication} για να ξεκινήσετε να σχολιάζετε.`,Best:``,Cancel:`Ακύρωση`,Comment:`Σχόλιο`,"Commenting disabled":``,"Complete your profile":`Ολοκληρώστε το προφίλ σας`,Delete:`Διαγραφή`,Deleted:``,"Deleted member":`Διαγραμμένο μέλος`,Deleting:``,Discussion:`Συζήτηση`,Dislike:``,Edit:`Επεξεργασία`,"Edit this comment":`Επεξεργασία αυτού του σχολίου`,edited:`Επεξεργασμένο`,"Enter your name":`Εισάγετε το όνομά σας`,Expertise:`Εξειδίκευση`,"Founder @ Acme Inc":`Ιδρυτής @ Acme Inc`,"Full-time parent":`Γονέας πλήρους απασχόλησης`,"Head of Marketing at Acme, Inc":`Επικεφαλής Μάρκετινγκ στην Acme, Inc`,"Hidden for members":``,"Hide comment":`Απόκρυψη σχολίου`,"Jamie Larson":`Τζέιμι Λάρσον`,"Join the discussion":`Συμμετοχή στη συζήτηση`,"Just now":`Μόλις τώρα`,Like:``,"Load more ({amount})":``,"Local resident":`Τοπικός κάτοικος`,"Member discussion":`Συζήτηση μελών`,Name:`Όνομα`,Neurosurgeon:`Νευροχειρουργός`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Πριν από μία ώρα`,"One min ago":`Πριν από ένα λεπτό`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:``,"Replied to":``,Reply:`Απάντηση`,"Reply to":``,"Reply to comment":`Απάντηση στο σχόλιο`,Report:`Αναφορά`,"Report comment":`Αναφορά σχολίου`,"Report this comment?":`Αναφορά αυτού του σχολίου;`,Save:`Αποθήκευση`,"See full discussion":``,Sending:`Αποστολή`,Sent:`Απεστάλη`,"Show {amount} more replies":`Εμφάνιση {amount} περισσότερων απαντήσεων`,"Show 1 more reply":`Εμφάνιση 1 ακόμα απάντησης`,"Show comment":`Εμφάνιση σχολίου`,"Sign in":`Σύνδεση`,"Sign up now":`Εγγραφείτε τώρα`,"Sort by":``,"Start the conversation":`Ξεκινήστε τη συζήτηση`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Αυτό το σχόλιο έχει κρυφτεί.`,"This comment has been removed.":`Αυτό το σχόλιο έχει αφαιρεθεί.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Αναβάθμιση τώρα`,"View in admin":``,Yesterday:`Χθες`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Το αίτημά σας θα σταλεί στον ιδιοκτήτη αυτού του ιστότοπου.`},zy={"{amount} characters left":``,"{amount} comments":``,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":``,"1 comment":``,"Add comment":``,"Add context to your comment, share your name and expertise to foster a healthy discussion.":``,"Add reply":``,"Add your expertise":``,"Already a member?":``,Anonymous:``,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":``,"Become a paid member of {publication} to start commenting.":``,Best:``,Cancel:``,Comment:``,"Commenting disabled":``,"Complete your profile":``,Delete:``,Deleted:``,"Deleted member":``,Deleting:``,Discussion:``,Dislike:``,Edit:``,"Edit this comment":``,edited:``,"Enter your name":``,Expertise:``,"Founder @ Acme Inc":``,"Full-time parent":``,"Head of Marketing at Acme, Inc":``,"Hidden for members":``,"Hide comment":``,"Jamie Larson":``,"Join the discussion":``,"Just now":``,Like:``,"Load more ({amount})":``,"Local resident":``,"Member discussion":``,Name:``,Neurosurgeon:``,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":``,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:``,"Replied to":``,Reply:``,"Reply to":``,"Reply to comment":``,Report:``,"Report comment":``,"Report this comment?":``,Save:``,"See full discussion":``,Sending:``,Sent:``,"Show {amount} more replies":``,"Show 1 more reply":``,"Show comment":``,"Sign in":``,"Sign up now":``,"Sort by":``,"Start the conversation":``,"The linked comment is no longer available.":``,"This comment has been hidden.":``,"This comment has been removed.":``,Unpin:``,"Unpin comment":``,"Upgrade now":``,"View in admin":``,Yesterday:``,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":``},By={"{amount} characters left":``,"{amount} comments":``,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":``,"1 comment":``,"Add comment":``,"Add context to your comment, share your name and expertise to foster a healthy discussion.":``,"Add reply":``,"Add your expertise":``,"Already a member?":``,Anonymous:``,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":``,"Become a paid member of {publication} to start commenting.":``,Best:``,Cancel:``,Comment:``,"Commenting disabled":``,"Complete your profile":``,Delete:``,Deleted:``,"Deleted member":``,Deleting:``,Discussion:``,Dislike:``,Edit:``,"Edit this comment":``,edited:``,"Enter your name":``,Expertise:``,"Founder @ Acme Inc":``,"Full-time parent":``,"Head of Marketing at Acme, Inc":``,"Hidden for members":``,"Hide comment":``,"Jamie Larson":``,"Join the discussion":``,"Just now":``,Like:``,"Load more ({amount})":``,"Local resident":``,"Member discussion":``,Name:``,Neurosurgeon:``,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":``,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:``,"Replied to":``,Reply:``,"Reply to":``,"Reply to comment":``,Report:``,"Report comment":``,"Report this comment?":``,Save:``,"See full discussion":``,Sending:``,Sent:``,"Show {amount} more replies":``,"Show 1 more reply":``,"Show comment":``,"Sign in":``,"Sign up now":``,"Sort by":``,"Start the conversation":``,"The linked comment is no longer available.":``,"This comment has been hidden.":``,"This comment has been removed.":``,Unpin:``,"Unpin comment":``,"Upgrade now":``,"View in admin":``,Yesterday:``,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":``},Vy={"{amount} characters left":`{amount} caracteres restantes`,"{amount} comments":`{amount} comentarios`,"{amount} hrs ago":`Hace {amount} horas`,"{amount} mins ago":`Hace {amount} minutos`,"{amount} more":`{amount} más`,"1 comment":`1 comentario`,"Add comment":`Añadir comentario`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Añade contexto a tu comentario, comparte tu nombre y experiencia para fomentar un debate sano.`,"Add reply":`Añadir respuesta`,"Add your expertise":`Añadir tu experiencia`,"Already a member?":`¿Ya eres miembro?`,Anonymous:`Anónimo`,"Are you sure?":`¿Estás seguro?`,Back:`Atrás`,"Become a member of {publication} to start commenting.":`Hazte miembro de {publication} para poder comentar.`,"Become a paid member of {publication} to start commenting.":`Hazte miembro de pago para poder comentar en {publication}.`,Best:`Mejores`,Cancel:`Cancelar`,Comment:`Comentar`,"Commenting disabled":`Comentarios desactivados`,"Complete your profile":`Completa tu perfil`,Delete:`Eliminar`,Deleted:`Eliminado`,"Deleted member":`Eliminar miembro`,Deleting:`Eliminando`,Discussion:`Discusión`,Dislike:`No me gusta`,Edit:`Editar`,"Edit this comment":`Editar este comentario`,edited:`editado`,"Enter your name":`Introduce tu nombre`,Expertise:`Experiencia`,"Founder @ Acme Inc":`Fundador @ Acme Inc`,"Full-time parent":`Padre a tiempo completo`,"Head of Marketing at Acme, Inc":`Jefe de Marketing en Acme, Inc`,"Hidden for members":`Oculto para miembros`,"Hide comment":`Ocultar comentario`,"Jamie Larson":`Carlos Rodriguez`,"Join the discussion":`Únete a la discusión`,"Just now":`Justo ahora`,Like:`Me gusta`,"Load more ({amount})":`Cargar más ({amount})`,"Local resident":`Residente local`,"Member discussion":`Discusión de los miembros`,Name:`Nombre`,Neurosurgeon:`Neurocirujano`,Newest:`Más nuevos`,Oldest:`Más antiguos`,"Once deleted, this comment can’t be recovered.":`Este comentario no se puede recuperar una vez eliminado.`,"One hour ago":`Hace una hora`,"One min ago":`Hace un minuto`,"Pin comment":`Fijar comentario`,Pinned:`Fijado`,"Read more replies":`Ver más respuestas`,"Remove dislike":``,"Remove like":``,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`,"See full discussion":``,Sending:`Enviando`,Sent:`Enviado`,"Show {amount} more replies":`Mostrar {amount} respuestas más`,"Show 1 more reply":`Mostrar 1 respuesta más`,"Show comment":`Mostrar comentario`,"Sign in":`Inicia sesión`,"Sign up now":`Regístrate ahora`,"Sort by":`Ordenar por`,"Start the conversation":`Comienza la conversación`,"The linked comment is no longer available.":`El comentario enlazado ya no está disponible.`,"This comment has been hidden.":`Este comentario ha sido ocultado.`,"This comment has been removed.":`Este comentario ha sido borrado.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Actualiza tu cuenta ahora`,"View in admin":`Ver en la zona admin`,Yesterday:`Ayer`,"You can't post comments in this publication.":`No puedes publicar comentarios en esta publicación.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`No puedes publicar comentarios en esta publicación. <a>Contacta con soporte</a> para más información.`,"Your request will be sent to the owner of this site.":`Tu petición será enviada al dueño de este sitio web.`},Hy={"{amount} characters left":`{amount} tähemärki jäänud`,"{amount} comments":`{amount} kommentaari`,"{amount} hrs ago":`{amount} tundi tagasi`,"{amount} mins ago":`{amount} minutit tagasi`,"{amount} more":`{amount} veel`,"1 comment":`1 kommentaar`,"Add comment":`Lisa kommentaar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Lisa oma kommentaarile konteksti, jaga oma nime ja kogemusi, et soodustada tervislikku arutelu.`,"Add reply":`Lisa vastus`,"Add your expertise":``,"Already a member?":`Juba liige?`,Anonymous:`Anonüümne`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Kommenteerimise alustamiseks saage {publication} liikmeks.`,"Become a paid member of {publication} to start commenting.":`Kommenteerimise alustamiseks saage {publication} tasuliseks liikmeks.`,Best:``,Cancel:`Tühista`,Comment:`Kommentaar`,"Commenting disabled":``,"Complete your profile":`Täida oma profiil`,Delete:`Kustuta`,Deleted:``,"Deleted member":`Kustutatud liige`,Deleting:``,Discussion:`Arutelu`,Dislike:``,Edit:`Muuda`,"Edit this comment":`Muuda seda kommentaari`,edited:`muudetud`,"Enter your name":`Sisesta oma nimi`,Expertise:`Oskused`,"Founder @ Acme Inc":`Asutaja @ Acme Inc`,"Full-time parent":`Täiskohaga lapsevanem`,"Head of Marketing at Acme, Inc":`Turundusjuht Acme, Inc-s`,"Hidden for members":``,"Hide comment":`Peida kommentaar`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Liitu aruteluga`,"Just now":`Just praegu`,Like:``,"Load more ({amount})":``,"Local resident":`Kohalik elanik`,"Member discussion":`Liikmete arutelu`,Name:`Nimi`,Neurosurgeon:`Neurokirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Üks tund tagasi`,"One min ago":`Üks minut tagasi`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,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`,"See full discussion":``,Sending:`Saatmine`,Sent:`Saadetud`,"Show {amount} more replies":`Näita {amount} vastust veel`,"Show 1 more reply":`Näita 1 vastus veel`,"Show comment":`Näita kommentaari`,"Sign in":`Logi sisse`,"Sign up now":`Registreeru nüüd`,"Sort by":``,"Start the conversation":`Alusta vestlust`,"The linked comment is no longer available.":``,"This comment has been hidden.":`See kommentaar on peidetud.`,"This comment has been removed.":`See kommentaar on eemaldatud.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Uuenda nüüd`,"View in admin":``,Yesterday:`Eile`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Teie taotlus saadetakse selle saidi omanikule.`},Uy={"{amount} characters left":`{amount} geratzen dira`,"{amount} comments":`{amount} iruzkin`,"{amount} hrs ago":`Duela {amount} ordu`,"{amount} mins ago":`Duela {amount} minutu`,"{amount} more":`{amount} gehiago`,"1 comment":`Iruzkin 1`,"Add comment":`Egin iruzkina`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Gehitu testuingurua zure iruzkinari, partekatu zure izena eta ezagutza eztabaida sanoa sustatzeko.`,"Add reply":`Erantzun`,"Add your expertise":`Gehitu zure ezagutza`,"Already a member?":`Kidea al zara?`,Anonymous:`Anonimoa`,"Are you sure?":`Ziur al zaude?`,Back:``,"Become a member of {publication} to start commenting.":`Egin zaitez {publication}(e)ko kide iruzkinak egiteko.`,"Become a paid member of {publication} to start commenting.":`Egin zaitez {publication}(e)ko ordainpeko kide iruzkinak egiteko.`,Best:`Onena`,Cancel:`Utzi`,Comment:`Egin iruzkina`,"Commenting disabled":``,"Complete your profile":`Bete zure profila`,Delete:`Ezabatu`,Deleted:`Ezabatuta`,"Deleted member":`Ezabatutako kidea`,Deleting:`Ezabatzen`,Discussion:`Eztabaida`,Dislike:``,Edit:`Editatu`,"Edit this comment":`Editatu iruzkina`,edited:`editatua`,"Enter your name":`Sartu zure izena`,Expertise:`Ezagutza`,"Founder @ Acme Inc":`FAGOR kooperatibaren fundatzailea`,"Full-time parent":`Lanaldi osoko gurasoa`,"Head of Marketing at Acme, Inc":`FAGOR kooperatibako marketin-zuzendaria`,"Hidden for members":`Ezkutatuta kideentzat`,"Hide comment":`Ezkutatu iruzkina`,"Jamie Larson":`Lur Axpe`,"Join the discussion":`Batu eztabaidara`,"Just now":`Oraintxe bertan`,Like:``,"Load more ({amount})":`Kargatu gehiago ({amount})`,"Local resident":`Bertoko bizilaguna`,"Member discussion":`Kideen eztabaida`,Name:`Izena`,Neurosurgeon:`Neurozirujaua`,Newest:`Berriena`,Oldest:`Zaharrena`,"Once deleted, this comment can’t be recovered.":`Ezabatuz gero, ezingo da berreskuratu.`,"One hour ago":`Duela ordubete`,"One min ago":`Duela minutu bat`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,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`,"See full discussion":``,Sending:`Bidaltzen`,Sent:`Bidalita`,"Show {amount} more replies":`Erakutsi {amount} erantzun gehiago`,"Show 1 more reply":`Erakutsi erantzun bat gehiago`,"Show comment":`Erakutsi iruzkina`,"Sign in":`Hasi saioa`,"Sign up now":`Eman izena orain`,"Sort by":`Antolatu honen arabera`,"Start the conversation":`Hasi eztabaida`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Iruzkin hau ezkutatu da.`,"This comment has been removed.":`Iruzkin hau kendu da.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Ordaindu orain`,"View in admin":``,Yesterday:`Atzo`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Eskaera gune honetako arduradunari bidaliko zaio.`},Wy={"{amount} characters left":`{amount} حرف باقی مانده است`,"{amount} comments":`{amount} دیدگاه`,"{amount} hrs ago":`{amount} ساعت پیش`,"{amount} mins ago":`{amount} دقیقه پیش`,"{amount} more":`{amount} مورد دیگر`,"1 comment":`۱ دیدگاه`,"Add comment":`افزودن دیدگاه`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`به دیدگاه خود زمینه بدهید و با بهاشتراکگذاری نام و تخصص خود، گفتوگوی سالمی ایجاد کنید.`,"Add reply":`افزودن پاسخ`,"Add your expertise":`افزودن تخصص شما`,"Already a member?":`عضو هستید؟`,Anonymous:`ناشناس`,"Are you sure?":`مطمئن هستید؟`,Back:`بازگشت`,"Become a member of {publication} to start commenting.":`برای شروع دیدگاهگذاری، عضو {publication} شوید.`,"Become a paid member of {publication} to start commenting.":`برای شروع دیدگاهگذاری، عضو ویژه {publication} شوید.`,Best:`بهترین`,Cancel:`لغو`,Comment:`دیدگاه`,"Commenting disabled":`دیدگاهگذاری غیرفعال است`,"Complete your profile":`نمایه خود را کامل کنید`,Delete:`حذف`,Deleted:`حذف شد`,"Deleted member":`عضو حذفشده`,Deleting:`در حال حذف`,Discussion:`گفتوگو`,Dislike:`نپسندیدن`,Edit:`ویرایش`,"Edit this comment":`ویرایش این دیدگاه`,edited:`ویرایششده`,"Enter your name":`نام خود را وارد کنید`,Expertise:`تخصص`,"Founder @ Acme Inc":`بنیانگذار @ Acme Inc`,"Full-time parent":`خانهدار تماموقت`,"Head of Marketing at Acme, Inc":`مدیر بازاریابی Acme, Inc`,"Hidden for members":`برای اعضا پنهان است`,"Hide comment":`پنهانسازی دیدگاه`,"Jamie Larson":`جیمی لارسن`,"Join the discussion":`به گفتوگو بپیوندید`,"Just now":`همین الان`,Like:`پسندیدن`,"Load more ({amount})":`بارگذاری ({amount}) مورد دیگر`,"Local resident":`ساکن محلی`,"Member discussion":`گفتوگوی اعضا`,Name:`نام`,Neurosurgeon:`جراح مغز و اعصاب`,Newest:`جدیدترین`,Oldest:`قدیمیترین`,"Once deleted, this comment can’t be recovered.":`پس از حذف، این دیدگاه قابل بازیابی نخواهد بود.`,"One hour ago":`۱ ساعت پیش`,"One min ago":`۱ دقیقه پیش`,"Pin comment":`سنجاق کردن دیدگاه`,Pinned:`سنجاقشده`,"Read more replies":`خواندن پاسخهای بیشتر`,"Remove dislike":`برگرداندن نپسندیدن`,"Remove like":`برگرداندن پسندیدن`,removed:`حذفشده`,"Replied to":`پاسخ به`,Reply:`پاسخ`,"Reply to":`پاسخ به`,"Reply to comment":`پاسخ به دیدگاه`,Report:`گزارش`,"Report comment":`گزارش دیدگاه`,"Report this comment?":`این دیدگاه گزارش شود؟`,Save:`ذخیره`,"See full discussion":`مشاهده گفتوگوی کامل`,Sending:`در حال ارسال`,Sent:`ارسال شد`,"Show {amount} more replies":`نمایش {amount} پاسخ دیگر`,"Show 1 more reply":`نمایش ۱ پاسخ دیگر`,"Show comment":`نمایش دیدگاه`,"Sign in":`ورود`,"Sign up now":`همین حالا ثبت نام کنید`,"Sort by":`مرتبسازی بر اساس`,"Start the conversation":`گفتوگو را شروع کنید`,"The linked comment is no longer available.":`دیدگاه پیوندشده دیگر در دسترس نیست.`,"This comment has been hidden.":`این دیدگاه پنهان شده است.`,"This comment has been removed.":`این دیدگاه حذف شده است.`,Unpin:`برداشتن سنجاق`,"Unpin comment":`برداشتن سنجاق دیدگاه`,"Upgrade now":`همین حالا ارتقا دهید`,"View in admin":`مشاهده در مدیریت`,Yesterday:`دیروز`,"You can't post comments in this publication.":`شما نمیتوانید در این نشریه دیدگاه بگذارید.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`شما نمیتوانید در این نشریه دیدگاه بگذارید. برای اطلاعات بیشتر <a>با پشتیبانی تماس بگیرید</a>.`,"Your request will be sent to the owner of this site.":`درخواست شما برای مالک این سایت ارسال خواهد شد.`},Gy={"{amount} characters left":`{amount} merkkiä jäljellä`,"{amount} comments":`{amount} kommenttia`,"{amount} hrs ago":`{amount} tuntia sitten`,"{amount} mins ago":`{amount} minuuttia sitten`,"{amount} more":`{amount} vielä lisää`,"1 comment":`1 kommentti`,"Add comment":`Lisää kommentti`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Lisää sisältöä kommenttiisi, jaa nimesi ja osaamisesi saadaksesi aikaan tervettä keskustelua.`,"Add reply":`Lisää vastaus`,"Add your expertise":`Lisää osaamisesi`,"Already a member?":`Oletko jo jäsen?`,Anonymous:`Anonyymi`,"Are you sure?":`Oletko varma?`,Back:``,"Become a member of {publication} to start commenting.":`Liity sivun {publication} jäseneksi pystyäksesi kommentoimaan.`,"Become a paid member of {publication} to start commenting.":`Ota maksullinen jäsenyys sivulle {publication}, jotta pystyt kommentoimaan.`,Best:`Parhaat`,Cancel:`Peruuta`,Comment:`Kommentti`,"Commenting disabled":``,"Complete your profile":`Täydennä profiilisi`,Delete:`Poista`,Deleted:`Poistettu`,"Deleted member":`Poista jäsen`,Deleting:`Poistetaan`,Discussion:`Keskustelu`,Dislike:``,Edit:`Editoi`,"Edit this comment":`Editoi tätä kommenttia`,edited:`editoitu`,"Enter your name":`Syötä nimesi`,Expertise:`Osaaminen`,"Founder @ Acme Inc":`Perustaja`,"Full-time parent":`Kokoaikainen vanhempi`,"Head of Marketing at Acme, Inc":`Markkinointijohtaja`,"Hidden for members":`Piilotettu jäseniltä`,"Hide comment":`Piilota kommentti`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Liity keskusteluun`,"Just now":`Juuri nyt`,Like:``,"Load more ({amount})":`Lataa lisää ({amount})`,"Local resident":`Paikallinen`,"Member discussion":`Jäsenten keskustelu`,Name:`Nimi`,Neurosurgeon:`Neurokirurgi`,Newest:`Uusin`,Oldest:`Vanhin`,"Once deleted, this comment can’t be recovered.":`Jos poistat kommentin, sitä ei voi enää palauttaa.`,"One hour ago":`Tunti sitten`,"One min ago":`Minuutti sitten`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:`poistettu`,"Replied to":`Vastattu:`,Reply:`Vastaa`,"Reply to":`Vastaa:`,"Reply to comment":`Vastaa kommenttiin`,Report:`Ilmianna`,"Report comment":`Ilmianna kommentti`,"Report this comment?":`Haluatko ilmiantaa tämän kommentin?`,Save:`Tallenna`,"See full discussion":``,Sending:`Lähetetään`,Sent:`Lähetetty`,"Show {amount} more replies":`Näytä {amount} vastausta lisää `,"Show 1 more reply":`Näytä 1 vastaus lisää`,"Show comment":`Näytä kommentti`,"Sign in":`Kirjaudu sisään`,"Sign up now":`Rekisteröidy nyt`,"Sort by":`Lajitteluperuste`,"Start the conversation":`Aloita keskustelu`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Tämä kommentti on piilotettu.`,"This comment has been removed.":`Tämä kommentti on poistettu.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Korota nyt`,"View in admin":``,Yesterday:`Eilen`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Sinun pyyntösi lähetetään sivun omistajalle.`},Ky={"{amount} characters left":`{amount} caractères restants`,"{amount} comments":`{amount} commentaires`,"{amount} hrs ago":`Il y a {amount} heures`,"{amount} mins ago":`Il y a {amount} minutes`,"{amount} more":`{amount} supplémentaire(s)`,"1 comment":`1 commentaire`,"Add comment":`Ajouter un commentaire`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Ajoutez un contexte à votre commentaire. Partagez votre nom et vos compétences pour favoriser une discussion saine.`,"Add reply":`Ajouter une réponse`,"Add your expertise":`Ajoutez vos compétences`,"Already a member?":`Déjà abonné(e) ?`,Anonymous:`Anonyme`,"Are you sure?":`Êtes-vous certain(e) ?`,Back:`Retour`,"Become a member of {publication} to start commenting.":`Abonnez-vous gratuitement à {publication} pour commencer à commenter.`,"Become a paid member of {publication} to start commenting.":`Choisissez un abonnement payant à {publication} pour commencer à commenter.`,Best:`Meilleur`,Cancel:`Annuler`,Comment:`Commentaire`,"Commenting disabled":`Commentaires désactivés`,"Complete your profile":`Complétez votre profil`,Delete:`Supprimer`,Deleted:`Supprimé`,"Deleted member":`Abonné(e) supprimé(e)`,Deleting:`Suppression en cours`,Discussion:`Discussion`,Dislike:`Je n’aime pas`,Edit:`Modifier`,"Edit this comment":`Modifier ce commentaire`,edited:`modifié`,"Enter your name":`Entrez votre nom`,Expertise:`Compétences`,"Founder @ Acme Inc":`Fondateur @ Acme Inc`,"Full-time parent":`Parent à plein temps`,"Head of Marketing at Acme, Inc":`Responsable du marketing chez Acme, Inc`,"Hidden for members":`Masqué pour les abonnés`,"Hide comment":`Masquer le commentaire`,"Jamie Larson":`Jean Martin`,"Join the discussion":`Rejoindre la discussion`,"Just now":`À l'instant`,Like:`J’aime`,"Load more ({amount})":`Afficher plus ({amount})`,"Local resident":`Résident local`,"Member discussion":`Discussion entre abonnés`,Name:`Nom`,Neurosurgeon:`Neurochirurgien`,Newest:`Plus récent`,Oldest:`Plus ancien`,"Once deleted, this comment can’t be recovered.":`Une fois supprimé, ce commentaire ne pourra pas être restauré.`,"One hour ago":`Il y a une heure`,"One min ago":`Il y a une minute`,"Pin comment":`Épingler le commentaire`,Pinned:`Épinglé`,"Read more replies":`Voir plus de réponses`,"Remove dislike":`Annuler le « Je n’aime pas »`,"Remove like":`Annuler le « J’aime »`,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`,"See full discussion":`Voir la discussion complète`,Sending:`Envoi en cours`,Sent:`Envoyé`,"Show {amount} more replies":`Afficher {amount} réponses supplémentaires`,"Show 1 more reply":`Afficher 1 réponse supplémentaire`,"Show comment":`Afficher le commentaire`,"Sign in":`Se connecter`,"Sign up now":`S'inscrire maintenant`,"Sort by":`Trier par`,"Start the conversation":`Commencer la conversation`,"The linked comment is no longer available.":`Le commentaire lié n’est plus disponible.`,"This comment has been hidden.":`Ce commentaire a été masqué.`,"This comment has been removed.":`Ce commentaire a été supprimé.`,Unpin:`Désépingler`,"Unpin comment":`Désépingler le commentaire`,"Upgrade now":`Passer à l’abonnement payant`,"View in admin":`Voir dans l’administration`,Yesterday:`Hier`,"You can't post comments in this publication.":`Vous ne pouvez pas commenter cette publication.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Vous ne pouvez pas commenter cette publication. <a>Contactez le support</a> pour plus d’informations.`,"Your request will be sent to the owner of this site.":`Votre demande sera transférée au propriétaire de ce site.`},qy={"{amount} characters left":`caractaran air fhàgail: {amount}`,"{amount} comments":`beachdan: {amount}`,"{amount} hrs ago":`o chionn {amount}u`,"{amount} mins ago":`o chionn {amount}m`,"{amount} more":`{amount} a bharrachd`,"1 comment":`1 bheachd`,"Add comment":`Fàg beachd air`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Cuir co-theacsa ris a' bheachd agad, cuir d' ainm is sàr-eòlas ris gus deasbad fallain a brosnachadh.`,"Add reply":`Cuir freagairt ris`,"Add your expertise":``,"Already a member?":`’Eil thu nad bhall mar-thà?`,Anonymous:`Gun ainm`,"Are you sure?":`A bheil thu cinnteach?`,Back:``,"Become a member of {publication} to start commenting.":`Clàraich nad bhall an làrach-lìn, {publication}, gus beachd fhàgail air.`,"Become a paid member of {publication} to start commenting.":`Clàraich nad bhall phrìomhach an làrach-lìn, {publication}, gus beachd fhàgail air.`,Best:``,Cancel:`Sguir dheth`,Comment:`Beachd`,"Commenting disabled":``,"Complete your profile":`Lìon a-steach a' phròifil agad`,Delete:`Sguab às`,Deleted:`Air a sguabadh às`,"Deleted member":`Ball air a sguabadh às`,Deleting:`'Ga sguabadh às`,Discussion:`Deasbad`,Dislike:``,Edit:`Deasaich`,"Edit this comment":`Deasaich am beachd seo`,edited:`Air a dheasachadh`,"Enter your name":`Cuir a-steach d’ ainm`,Expertise:`Sàr-eòlas`,"Founder @ Acme Inc":`Neach-stèidheachaidh @ Acme Inc`,"Full-time parent":`Pàrant làn-ùine`,"Head of Marketing at Acme, Inc":`Àrd-cheann Margaidheachd aig Acme, Inc`,"Hidden for members":`Air am falach bho bhuill`,"Hide comment":`Cuir am beachd am falach`,"Jamie Larson":`Seamaidh Larson`,"Join the discussion":`Gabh pàirt san deasbad`,"Just now":`An-dràsta`,Like:``,"Load more ({amount})":`Lùchdaich barrachd {amount}`,"Local resident":`Neach-còmhnaidh ionadail`,"Member discussion":`Deasbad`,Name:`Ainm`,Neurosurgeon:`Niùro-làmh-lèigh`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Cha ghabh a aiseag an dèidh sguabadh às`,"One hour ago":`O chionn uair a thìde`,"One min ago":`O chionn mionaid`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,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`,"See full discussion":``,Sending:`’Ga chur`,Sent:`Air a chur`,"Show {amount} more replies":`An àireamh de bheachdan a bharrachd a chìthear: {amount}`,"Show 1 more reply":`Seall beachd a bharrachd`,"Show comment":`Seall am beachd`,"Sign in":`Clàraich a-steach`,"Sign up now":`Clàraich a-nis`,"Sort by":`Seòrsaich a-rèir`,"Start the conversation":`Tòisich an deasbad`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Chaidh am beachd seo a chur am falach.`,"This comment has been removed.":`Chaidh am beachd seo a sguabadh às.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Àrdaich a-nis`,"View in admin":``,Yesterday:`An-dè`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Thèid an iarrtas agad a chur gu neach-seilbh an làrach-lìn seo.`},Jy={"{amount} characters left":`נותרו עוד {amount} תווים`,"{amount} comments":`{amount} תגובות`,"{amount} hrs ago":`לפני {amount} שעות`,"{amount} mins ago":`לפני {amount} דקות`,"{amount} more":`עוד {amount}`,"1 comment":`תגובה אחת`,"Add comment":`הוסיפו תגובה`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`הוסיפו תוכן לתגובה שלכם, שתפו את שמכם ואת התמחותכם כדי לקדם דיון בריא.`,"Add reply":`הוסיפו תגובה`,"Add your expertise":``,"Already a member?":`כבר רשומים?`,Anonymous:`אנונימי`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`הירשמו כחברי {publication} כדי להתחיל להגיב.`,"Become a paid member of {publication} to start commenting.":`הירשמו כחברי משלמים של {publication} כדי להתחיל להגיב.`,Best:``,Cancel:`ביטול`,Comment:`תגובה`,"Commenting disabled":``,"Complete your profile":`השלימו את הפרופיל שלכם`,Delete:`מחיקה`,Deleted:``,"Deleted member":`חבר שנמחק`,Deleting:``,Discussion:`דיון`,Dislike:``,Edit:`עריכה`,"Edit this comment":`ערכו תגובה זו`,edited:`נערך`,"Enter your name":`כתבו את שמכם`,Expertise:`ניסיון`,"Founder @ Acme Inc":`מייסד @ Acme Inc`,"Full-time parent":`הורה במשרה מלאה`,"Head of Marketing at Acme, Inc":`ראש אגף שיווק ב- Acme, Inc`,"Hidden for members":``,"Hide comment":`הסתר תגובה`,"Jamie Larson":`ג׳יימי לרסון`,"Join the discussion":`הצטרפו לדיון`,"Just now":`ממש עכשיו`,Like:``,"Load more ({amount})":``,"Local resident":`תושב מקומי`,"Member discussion":`דיון חברים רשומים`,Name:`שם`,Neurosurgeon:`נוֹיְרוֹכִירוּרְג`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`לפני שעה`,"One min ago":`לפני דקה`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:``,"Replied to":``,Reply:`תגובה`,"Reply to":``,"Reply to comment":`הגיבו לתגובה`,Report:`דיווח`,"Report comment":`דווחו על תגובה`,"Report this comment?":`האם לדווח על תגובה זו?`,Save:`שמירה`,"See full discussion":``,Sending:`שליחה`,Sent:`שלחנו`,"Show {amount} more replies":`להציג עוד {amount} תגובות`,"Show 1 more reply":`להציג תגובה נוספת`,"Show comment":`להציג תגובה`,"Sign in":`היכנסו`,"Sign up now":`הירשמו עכשיו`,"Sort by":`למיין לפי`,"Start the conversation":`התחילו את השיחה`,"The linked comment is no longer available.":``,"This comment has been hidden.":`התגובה הזו הוסתרה.`,"This comment has been removed.":`התגובה הזו הוסרה.`,Unpin:``,"Unpin comment":``,"Upgrade now":`שדרגו עכשיו`,"View in admin":``,Yesterday:`אתמול`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`בקשתך תישלח לבעלים של האתר הזה.`},Yy={"{amount} characters left":`{amount} अक्षर बाकी`,"{amount} comments":`{amount} टिप्पणियाँ`,"{amount} hrs ago":`{amount} घंटे पहले`,"{amount} mins ago":`{amount} मिनट पहले`,"{amount} more":`{amount} और`,"1 comment":`1 टिप्पणी`,"Add comment":`टिप्पणी जोड़ें`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`अपनी टिप्पणी में संदर्भ जोड़ें, स्वस्थ चर्चा के लिए अपना नाम और विशेषज्ञता साझा करें।`,"Add reply":`जवाब जोड़ें`,"Add your expertise":`अपनी विशेषज्ञता जोड़ें`,"Already a member?":`पहले से सदस्य हैं?`,Anonymous:`अनाम`,"Are you sure?":`क्या आप सुनिश्चित हैं?`,Back:``,"Become a member of {publication} to start commenting.":`टिप्पणी शुरू करने के लिए {publication} का सदस्य बनें।`,"Become a paid member of {publication} to start commenting.":`टिप्पणी शुरू करने के लिए {publication} के भुगतान सदस्य बनें।`,Best:`सर्वश्रेष्ठ`,Cancel:`रद्द करें`,Comment:`टिप्पणी`,"Commenting disabled":``,"Complete your profile":`अपनी प्रोफ़ाइल पूरी करें`,Delete:`हटाएं`,Deleted:`हटा दिया गया`,"Deleted member":`हटाए गए सदस्य`,Deleting:`हटाया जा रहा है`,Discussion:`चर्चा`,Dislike:``,Edit:`संपादित करें`,"Edit this comment":`इस टिप्पणी को संपादित करें`,edited:`संपादित किया गया`,"Enter your name":`अपना नाम दर्ज करें`,Expertise:`विशेषज्ञता`,"Founder @ Acme Inc":`संस्थापक @ Acme Inc`,"Full-time parent":`पूर्णकालिक माता-पिता`,"Head of Marketing at Acme, Inc":`Acme, Inc में विपणन प्रमुख`,"Hidden for members":`सदस्यों के लिए छिपाया गया`,"Hide comment":`टिप्पणी छिपाएं`,"Jamie Larson":`राहुल शर्मा`,"Join the discussion":`चर्चा में शामिल हों`,"Just now":`अभी`,Like:``,"Load more ({amount})":`और लोड करें ({amount})`,"Local resident":`स्थानीय निवासी`,"Member discussion":`सदस्य चर्चा`,Name:`नाम`,Neurosurgeon:`न्यूरोसर्जन`,Newest:`नवीनतम`,Oldest:`सबसे पुराना`,"Once deleted, this comment can’t be recovered.":`एक बार हटाए जाने के बाद, इस टिप्पणी को पुनः प्राप्त नहीं किया जा सकता।`,"One hour ago":`एक घंटा पहले`,"One min ago":`एक मिनट पहले`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:`हटा दिया गया`,"Replied to":`को जवाब दिया`,Reply:`जवाब दें`,"Reply to":`को जवाब दें`,"Reply to comment":`टिप्पणी का जवाब दें`,Report:`रिपोर्ट`,"Report comment":`टिप्पणी की रिपोर्ट करें`,"Report this comment?":`क्या आप इस टिप्पणी की रिपोर्ट करना चाहते हैं?`,Save:`सहेजें`,"See full discussion":``,Sending:`भेजा जा रहा है`,Sent:`भेजा गया`,"Show {amount} more replies":`{amount} और जवाब दिखाएं`,"Show 1 more reply":`1 और जवाब दिखाएं`,"Show comment":`टिप्पणी दिखाएं`,"Sign in":`साइन इन करें`,"Sign up now":`अभी साइनअप करें`,"Sort by":`क्रमबद्ध करें`,"Start the conversation":`बातचीत शुरू करें`,"The linked comment is no longer available.":``,"This comment has been hidden.":`इस टिप्पणी को छिपा दिया गया है।`,"This comment has been removed.":`इस टिप्पणी को हटा दिया गया है।`,Unpin:``,"Unpin comment":``,"Upgrade now":`अब उन्नत करें`,"View in admin":``,Yesterday:`कल`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`आपका अनुरोध इस साइट के मालिक को भेजा जाएगा।`},Xy={"{amount} characters left":`{amount} znakova preostalo`,"{amount} comments":`{amount} komentara`,"{amount} hrs ago":`Prije {amount} sati`,"{amount} mins ago":`Prije {amount} minuta`,"{amount} more":`{amount} više`,"1 comment":`1 komentar`,"Add comment":`Dodaj komentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Dajte kontekts vašem komentaru, podijelite vaše ime i znanje za unaprijeđenje svake rasprave.`,"Add reply":`Dodaj odgovor`,"Add your expertise":``,"Already a member?":`Već si član?`,Anonymous:`Anonimus`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Postani član {publication} za mogućnost komentiranja.`,"Become a paid member of {publication} to start commenting.":`Plati pretplatu na {publication} za mogućnost komentiranja.`,Best:``,Cancel:`Prekini`,Comment:`Komentar`,"Commenting disabled":``,"Complete your profile":`Dovrši svoj profil`,Delete:`Obriši`,Deleted:``,"Deleted member":`Obrisan član`,Deleting:``,Discussion:`Rasprava`,Dislike:``,Edit:`Uredi`,"Edit this comment":`Uredi ovaj komentar`,edited:`uređen`,"Enter your name":`Unesite vaše ime`,Expertise:`Stručnost`,"Founder @ Acme Inc":`Osnivač Acme Inc`,"Full-time parent":`Full-time Roditelj`,"Head of Marketing at Acme, Inc":`Voditelj marketinga Acme, Inc`,"Hidden for members":``,"Hide comment":`Sakrij komentar`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Pridruži se raspravi`,"Just now":`Upravo sada`,Like:``,"Load more ({amount})":``,"Local resident":`Lokalni stanovnik`,"Member discussion":`Rasprava članova`,Name:`Ime`,Neurosurgeon:`Neurokirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Prije jednog sata`,"One min ago":`Prije jedne minute`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,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`,"See full discussion":``,Sending:`Slanje`,Sent:`Poslano`,"Show {amount} more replies":`Prikaži još {amount} odgovora`,"Show 1 more reply":`Prikaži još jedan odgovor`,"Show comment":`Prikaži komentar`,"Sign in":`Prijava`,"Sign up now":`Registriraj se sada`,"Sort by":``,"Start the conversation":`Pokreni razgovor`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Ovaj komentar je skriven`,"This comment has been removed.":`Ovaj komentar je maknut`,Unpin:``,"Unpin comment":``,"Upgrade now":`Nadogradite sada`,"View in admin":``,Yesterday:`Jučer`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Vaš zahtjev će se poslati vasniku ovih web stranica.`},Zy={"{amount} characters left":`{amount} karakter maradt`,"{amount} comments":`{amount} hozzászólás`,"{amount} hrs ago":`{amount} órája`,"{amount} mins ago":`{amount} perce`,"{amount} more":`{amount} még`,"1 comment":`1 hozzászólás`,"Add comment":`Hozzászólás`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Segítsd a beszélgetést azzal, hogy megadod a nevedet és azt, hogy mihez értesz.`,"Add reply":`Válasz`,"Add your expertise":`Add meg a szakterületedet`,"Already a member?":`Van már fiókod?`,Anonymous:`Anonim`,"Are you sure?":`Biztos vagy benne?`,Back:``,"Become a member of {publication} to start commenting.":`Csatlakozz a támogató {publication} közösséghez, hogy hozzászólhass a tartalmakhoz.`,"Become a paid member of {publication} to start commenting.":`Csatlakozz a fizető {publication} közösséghez, hogy hozzászólhass a tartalmakhoz.`,Best:`Legjobb`,Cancel:`Mégse`,Comment:`Hozzászólás`,"Commenting disabled":``,"Complete your profile":`Profil befejezése`,Delete:`Törlés`,Deleted:`Törölt`,"Deleted member":`Törölt tag`,Deleting:`Törölni`,Discussion:`Hozzászólások`,Dislike:``,Edit:`Szerkesztés`,"Edit this comment":`Hozzászólás szerkesztése`,edited:`szerkesztve`,"Enter your name":`Add meg a nevedet`,Expertise:`Foglalkozás`,"Founder @ Acme Inc":`A(z) @ Sirály Kft. alapítója`,"Full-time parent":`Főállású szülő`,"Head of Marketing at Acme, Inc":`Marketingvezető —\xA0Sirály Kft.`,"Hidden for members":`A tagok számára elrejtve`,"Hide comment":`Hozzászólás elrejtése`,"Jamie Larson":`Kiss Sára`,"Join the discussion":`Csatlakozz a beszélgetéshez`,"Just now":`Épp most`,Like:``,"Load more ({amount})":`Továbbiak betöltése ({amount})`,"Local resident":`Helyi lakos`,"Member discussion":`Tagok beszélgetése`,Name:`Név`,Neurosurgeon:`Idegsebész`,Newest:`Legújabb`,Oldest:`Legrégebbi`,"Once deleted, this comment can’t be recovered.":`A törlés után ez a hozzászólás nem állítható vissza.`,"One hour ago":`Egy órája`,"One min ago":`Egy perce`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,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`,"See full discussion":``,Sending:`Küldés`,Sent:`Elküldve`,"Show {amount} more replies":`Mutass még {amount} választ`,"Show 1 more reply":`Mutass még egy választ`,"Show comment":`Hozzászólás mutatása`,"Sign in":`Bejelentkezés`,"Sign up now":`Regisztrálj most`,"Sort by":`Rendezés`,"Start the conversation":`Kezdd el a beszélgetést`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Ezt a hozzászólást elrejtettük.`,"This comment has been removed.":`Ezt a hozzászólást töröltük.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Előfizetéssel te is hozzászólhatsz`,"View in admin":``,Yesterday:`Tegnap`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`A kérésedet továbbítjuk a weboldal tulajdonosának.`},Qy={"{amount} characters left":`{amount} karakter tersisa`,"{amount} comments":`{amount} komentar`,"{amount} hrs ago":`{amount} jam yang lalu`,"{amount} mins ago":`{amount} menit yang lalu`,"{amount} more":`{amount} lagi`,"1 comment":`1 komentar`,"Add comment":`Tambahkan komentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Tambahkan konteks pada komentar Anda, bagikan nama dan keahlian Anda untuk mendorong diskusi yang sehat.`,"Add reply":`Tambahkan balasan`,"Add your expertise":`Tambahkan keahlian Anda`,"Already a member?":`Sudah menjadi anggota?`,Anonymous:`Anonim`,"Are you sure?":`Apakah Anda yakin?`,Back:``,"Become a member of {publication} to start commenting.":`Jadilah anggota di {publication} untuk mulai berkomentar.`,"Become a paid member of {publication} to start commenting.":`Jadilah anggota berbayar di {publication} untuk mulai berkomentar.`,Best:`Terbaik`,Cancel:`Batal`,Comment:`Komentar`,"Commenting disabled":``,"Complete your profile":`Lengkapi profil Anda`,Delete:`Hapus`,Deleted:`Terhapus`,"Deleted member":`Anggota dihapus`,Deleting:`Menghapus...`,Discussion:`Diskusi`,Dislike:``,Edit:`Edit`,"Edit this comment":`Edit komentar ini`,edited:`diedit`,"Enter your name":`Masukkan nama Anda`,Expertise:`Keahlian`,"Founder @ Acme Inc":`Founder @ Acme Inc`,"Full-time parent":`Orang tua penuh waktu`,"Head of Marketing at Acme, Inc":`Direktur Pemasaran di Acme, Inc`,"Hidden for members":`Tersembunyi bagi anggota`,"Hide comment":`Sembunyikan komentar`,"Jamie Larson":`Sutan T. Alisjahbana`,"Join the discussion":`Bergabung dalam diskusi`,"Just now":`Baru saja`,Like:``,"Load more ({amount})":`Tampilkan {amount} lagi`,"Local resident":`Penduduk lokal`,"Member discussion":`Diskusi anggota`,Name:`Nama`,Neurosurgeon:`Ahli Bedah Saraf`,Newest:`Paling baru`,Oldest:`Paling lama`,"Once deleted, this comment can’t be recovered.":`Setelah dihapus, komentar ini tidak dapat dipulihkan.`,"One hour ago":`Satu jam yang lalu`,"One min ago":`Satu menit yang lalu`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,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`,"See full discussion":``,Sending:`Mengirim`,Sent:`Terkirim`,"Show {amount} more replies":`Tampilkan {amount} balasan lainnya`,"Show 1 more reply":`Tampilkan 1 balasan lainnya`,"Show comment":`Tampilkan komentar`,"Sign in":`Masuk`,"Sign up now":`Daftar sekarang`,"Sort by":`Urutkan berdasarkan`,"Start the conversation":`Mulai percakapan`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Komentar ini telah disembunyikan.`,"This comment has been removed.":`Komentar ini telah dihapus.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Daftar sekarang`,"View in admin":``,Yesterday:`Kemarin`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Permintaan Anda akan dikirim kepada pemilik situs ini.`},$y={"{amount} characters left":``,"{amount} comments":``,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":``,"1 comment":``,"Add comment":``,"Add context to your comment, share your name and expertise to foster a healthy discussion.":``,"Add reply":``,"Add your expertise":``,"Already a member?":``,Anonymous:``,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":``,"Become a paid member of {publication} to start commenting.":``,Best:``,Cancel:``,Comment:``,"Commenting disabled":``,"Complete your profile":``,Delete:``,Deleted:``,"Deleted member":``,Deleting:``,Discussion:``,Dislike:``,Edit:``,"Edit this comment":``,edited:``,"Enter your name":``,Expertise:``,"Founder @ Acme Inc":``,"Full-time parent":``,"Head of Marketing at Acme, Inc":``,"Hidden for members":``,"Hide comment":``,"Jamie Larson":``,"Join the discussion":``,"Just now":``,Like:``,"Load more ({amount})":``,"Local resident":``,"Member discussion":``,Name:``,Neurosurgeon:``,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":``,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:``,"Replied to":``,Reply:``,"Reply to":``,"Reply to comment":``,Report:``,"Report comment":``,"Report this comment?":``,Save:``,"See full discussion":``,Sending:``,Sent:``,"Show {amount} more replies":``,"Show 1 more reply":``,"Show comment":``,"Sign in":``,"Sign up now":``,"Sort by":``,"Start the conversation":``,"The linked comment is no longer available.":``,"This comment has been hidden.":``,"This comment has been removed.":``,Unpin:``,"Unpin comment":``,"Upgrade now":``,"View in admin":``,Yesterday:``,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":``},eb={"{amount} characters left":`{amount} caratteri rimanenti`,"{amount} comments":`{amount} commenti`,"{amount} hrs ago":`{amount} ore fa`,"{amount} mins ago":`{amount} minuti fa`,"{amount} more":`{amount} in più`,"1 comment":`1 commento`,"Add comment":`Aggiungi commento`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Aggiungi dettagli al tuo commento, condividi il tuo nome e le tue competenze per incoraggiare una conversazione sana.`,"Add reply":`Aggiungi risposta`,"Add your expertise":`Aggiungi le tue competenze`,"Already a member?":`Sei già iscritto?`,Anonymous:`Anonimo`,"Are you sure?":`Sei sicuro?`,Back:`Indietro`,"Become a member of {publication} to start commenting.":`Iscriviti a {publication} per poter commentare.`,"Become a paid member of {publication} to start commenting.":`Abbonati a {publication} per poter commentare.`,Best:`Migliori`,Cancel:`Annulla`,Comment:`Commenta`,"Commenting disabled":`Commenti disabilitati`,"Complete your profile":`Completa il tuo profilo`,Delete:`Elimina`,Deleted:`Eliminato`,"Deleted member":`Utente eliminato`,Deleting:`Eliminazione in corso`,Discussion:`Discussione`,Dislike:`Non mi piace`,Edit:`Modifica`,"Edit this comment":`Modifica questo commento`,edited:`modificato`,"Enter your name":`Inserisci il tuo nome`,Expertise:`Competenze`,"Founder @ Acme Inc":`Megadirettore Galattico`,"Full-time parent":`Genitore a tempo pieno`,"Head of Marketing at Acme, Inc":`Ragioniere presso Megaditta`,"Hidden for members":`Nascosto per gli abbonati`,"Hide comment":`Nascondi commento`,"Jamie Larson":`Andrea Rossi`,"Join the discussion":`Partecipa alla discussione`,"Just now":`Adesso`,Like:`Mi piace`,"Load more ({amount})":`Caricane altri {amount}`,"Local resident":`Paesano`,"Member discussion":`Commenti`,Name:`Nome`,Neurosurgeon:`Neurochirurgo`,Newest:`Più recenti`,Oldest:`Più vecchi`,"Once deleted, this comment can’t be recovered.":`Una volta cancellato, non potrai più recuperare questo commento`,"One hour ago":`Un'ora fa`,"One min ago":`Un minuto fa`,"Pin comment":`Fissa commento`,Pinned:`Fissato`,"Read more replies":`Leggi più risposte`,"Remove dislike":`Rimuovi Non mi piace`,"Remove like":`Rimuovi Mi piace`,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`,"See full discussion":`Vedi la discussione completa`,Sending:`Invio`,Sent:`Inviato`,"Show {amount} more replies":`Mostra altre {amount} risposte`,"Show 1 more reply":`Mostra un'altra risposta`,"Show comment":`Mostra commento`,"Sign in":`Accedi`,"Sign up now":`Iscriviti ora`,"Sort by":`Ordina per`,"Start the conversation":`Commenta per primo`,"The linked comment is no longer available.":`Il commento collegato non è più disponibile.`,"This comment has been hidden.":`Questo commento è stato nascosto.`,"This comment has been removed.":`Questo commento è stato rimosso.`,Unpin:`Stacca`,"Unpin comment":`Stacca commento`,"Upgrade now":`Abbonati ora`,"View in admin":`Visualizza nell'area admin`,Yesterday:`Ieri`,"You can't post comments in this publication.":`Non puoi postare commenti in questa pubblicazione.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Non puoi postare commenti in questa pubblicazione. <a>Contatta il supporto</a> per maggiori informazioni.`,"Your request will be sent to the owner of this site.":`La tua richiesta sarà inviata al proprietario del sito.`},tb={"{amount} characters left":`残り{amount}文字`,"{amount} comments":`{amount}のコメント`,"{amount} hrs ago":`{amount}時間前`,"{amount} mins ago":`{amount}分前`,"{amount} more":`さらに{amount}個`,"1 comment":`1のコメント`,"Add comment":`コメントする`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`コメントはよく説明し、名前と専門分野を共有することで健全な議論をすすめましょう。`,"Add reply":`返信する`,"Add your expertise":``,"Already a member?":`メンバーですか?`,Anonymous:`匿名`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`{publication}のメンバーになってコメントを始めましょう。`,"Become a paid member of {publication} to start commenting.":`{publication}の有料メンバーになってコメントを始めましょう。`,Best:``,Cancel:`キャンセル`,Comment:`コメント`,"Commenting disabled":``,"Complete your profile":`プロフィールを完成させる`,Delete:`削除`,Deleted:``,"Deleted member":`削除されたメンバー`,Deleting:``,Discussion:`議論`,Dislike:``,Edit:`編集`,"Edit this comment":`このコメントを編集する`,edited:`編集済み`,"Enter your name":`名前を記入`,Expertise:`専門分野`,"Founder @ Acme Inc":`創業者 @ Acme Inc`,"Full-time parent":`専業主婦・主夫`,"Head of Marketing at Acme, Inc":`マーケティング責任者 @ Acme, Inc`,"Hidden for members":``,"Hide comment":`コメントを非表示にする`,"Jamie Larson":`ジェイミー・ラーソン`,"Join the discussion":`議論に参加する`,"Just now":`今すぐ参加する`,Like:``,"Load more ({amount})":``,"Local resident":`地元住民`,"Member discussion":`メンバーによる議論`,Name:`名前`,Neurosurgeon:`脳神経外科医`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`1時間前`,"One min ago":`1分前`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:``,"Replied to":``,Reply:`返信する`,"Reply to":``,"Reply to comment":`コメントに返信する`,Report:`通報する`,"Report comment":`コメントを通報する`,"Report this comment?":`このコメントを通報しますか?`,Save:`保存`,"See full discussion":``,Sending:`送信中`,Sent:`送信完了`,"Show {amount} more replies":`{amount}個の返信を表示する`,"Show 1 more reply":`返信をもう1つ表示する`,"Show comment":`コメントを表示する`,"Sign in":`ログイン`,"Sign up now":`今すぐ新規登録する`,"Sort by":``,"Start the conversation":`会話を始める`,"The linked comment is no longer available.":``,"This comment has been hidden.":`このコメントは非表示にされました。`,"This comment has been removed.":`このコメントは削除されました。`,Unpin:``,"Unpin comment":``,"Upgrade now":`今すぐアップデートする`,"View in admin":``,Yesterday:`昨日`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`あなたのリクエストはこのサイトの管理者に送信されます。`},nb={"{amount} characters left":`{amount}글자 남음`,"{amount} comments":`{amount}개의 댓글`,"{amount} hrs ago":`{amount}시간 전`,"{amount} mins ago":`{amount}분 전`,"{amount} more":`{amount}개 더보기`,"1 comment":`1개의 댓글`,"Add comment":`댓글 추가`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`건설적인 토론을 위해 댓글에 맥락을 추가하고, 이름과 전문 분야를 공유해 주세요.`,"Add reply":`답변 추가`,"Add your expertise":``,"Already a member?":`이미 회원이신가요?`,Anonymous:`익명`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`{publication}의 회원이 되어 댓글을 작성해 주세요.`,"Become a paid member of {publication} to start commenting.":`{publication}의 유료 회원이 되어 댓글을 작성해 주세요.`,Best:``,Cancel:`취소`,Comment:`댓글`,"Commenting disabled":``,"Complete your profile":`프로필을 완성해 주세요`,Delete:`삭제`,Deleted:``,"Deleted member":`삭제된 회원`,Deleting:``,Discussion:`댓글`,Dislike:``,Edit:`수정`,"Edit this comment":`댓글 수정`,edited:`수정됨`,"Enter your name":`이름을 입력해 주세요`,Expertise:`전문분야`,"Founder @ Acme Inc":`Acme Inc 창업자`,"Full-time parent":`전업 부모`,"Head of Marketing at Acme, Inc":`Acme Inc 마케팅 책임자`,"Hidden for members":``,"Hide comment":`댓글 숨기기`,"Jamie Larson":`제이미 라슨`,"Join the discussion":`댓글에 참여해 주세요`,"Just now":`방금 전`,Like:``,"Load more ({amount})":``,"Local resident":`지역 주민`,"Member discussion":`회원들의 댓글`,Name:`이름`,Neurosurgeon:`신경외과 의사`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`1시간 전`,"One min ago":`1분 전`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:``,"Replied to":``,Reply:`답변`,"Reply to":``,"Reply to comment":`댓글에 답변`,Report:`신고`,"Report comment":`댓글 신고`,"Report this comment?":`이 댓글을 신고하시겠어요?`,Save:`저장`,"See full discussion":``,Sending:`전송중`,Sent:`전송됨`,"Show {amount} more replies":`{amount}개의 댓글 더 보기`,"Show 1 more reply":`1개의 댓글 더 보기`,"Show comment":`댓글 보기`,"Sign in":`로그인`,"Sign up now":`회원가입`,"Sort by":`정렬 기준`,"Start the conversation":`댓글을 작성해 주세요`,"The linked comment is no longer available.":``,"This comment has been hidden.":`숨김처리 된 댓글이에요.`,"This comment has been removed.":`삭제 된 댓글이에요.`,Unpin:``,"Unpin comment":``,"Upgrade now":`업그레이드`,"View in admin":``,Yesterday:`어제`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`운영자에게 요구사항이 전달되었어요.`},rb={"{amount} characters left":`{amount} таңба қалды`,"{amount} comments":`{amount} пікір`,"{amount} hrs ago":`{amount} сағат бұрын`,"{amount} mins ago":`{amount} минут бұрын`,"{amount} more":`тағы {amount}`,"1 comment":`1 пікір`,"Add comment":`Пікір қосу`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Талқы қызық болуы үшін өзіңіз туралы мәліметтерді қосыңыз.`,"Add reply":`Жауап қосу`,"Add your expertise":``,"Already a member?":`Әлдеқашан қосылдыңыз ба?`,Anonymous:`Аноним`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Пікір қалдыру үшін {publication} сайтына аккаунт қажет.`,"Become a paid member of {publication} to start commenting.":`Пікір қалдыру үшін {publication} сайтына ақылы аккаунт қажет.`,Best:``,Cancel:`Бас тарту`,Comment:`Пікір`,"Commenting disabled":``,"Complete your profile":`Профиліңізді толтырыңыз`,Delete:`Жою`,Deleted:``,"Deleted member":`Жойылған аккаунт`,Deleting:``,Discussion:`Талқы`,Dislike:``,Edit:`Өңдеу`,"Edit this comment":`Бұл пікірді өңдеу`,edited:`Өңделді`,"Enter your name":`Есіміңізді жазыңыз`,Expertise:`Қызмет`,"Founder @ Acme Inc":`@ Acme Inc құрылтайшысы`,"Full-time parent":`Толық күн жұмыс істейтін ата-ана`,"Head of Marketing at Acme, Inc":`@ Acme маркетинг жетекшісі `,"Hidden for members":``,"Hide comment":`Пікірді жасыру`,"Jamie Larson":`Пәленше Түгеншиев`,"Join the discussion":`Талқыға қосылу`,"Just now":`Дәл қазір`,Like:``,"Load more ({amount})":``,"Local resident":`Жергілікті тұрғын`,"Member discussion":`Мүшелер талқысы`,Name:`Есімі`,Neurosurgeon:`Нейрохирург`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Бір сағат бұрын`,"One min ago":`Бір минут бұрын`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:``,"Replied to":``,Reply:`Жауап беру`,"Reply to":``,"Reply to comment":`Пікірге жауап беру`,Report:`Шағымдану`,"Report comment":`Пікірге шағымдану`,"Report this comment?":`Осы пікірге шағым жіберілсін бе?`,Save:`Сақтау`,"See full discussion":``,Sending:`Жіберілуде`,Sent:`Жіберілді`,"Show {amount} more replies":`Тағы {amount} жауапты көрсету`,"Show 1 more reply":`Тағы 1 жауап көрсету`,"Show comment":`Пікірді көрсету`,"Sign in":`Кіру`,"Sign up now":`Қазір тіркелу`,"Sort by":``,"Start the conversation":`Талқыны бастау`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Бұл пікір жасырылды.`,"This comment has been removed.":`Бұл пікір өшірілді.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Жаңарту `,"View in admin":``,Yesterday:`Кеше`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Өтінішіңіз сайт иесіне жіберіледі.`},ib={"{amount} characters left":`{amount} likę simboliai`,"{amount} comments":`{amount} komentarai`,"{amount} hrs ago":`Prieš {amount} val.`,"{amount} mins ago":`Prieš {amount} min.`,"{amount} more":`{amount} daugiau`,"1 comment":`1 komentaras`,"Add comment":`Rašyti komentarą`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Papildykite savo komentarą, prisistatykite ir pasidalinkite savo turimomis žiniomis, kad paskatintumėte prasmingą diskusiją.`,"Add reply":`Atsakyti`,"Add your expertise":``,"Already a member?":`Jau turite paskyrą?`,Anonymous:`Anoniminis`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Užsiregistruokite {publication}, kad galėtumėte komentuoti.`,"Become a paid member of {publication} to start commenting.":`Tapkite {publication} prenumeratoriumi, kad galėtumėte komentuoti.`,Best:``,Cancel:`Atšaukti`,Comment:`Komentuoti`,"Commenting disabled":``,"Complete your profile":`Pabaikite kurti savo profilį!`,Delete:`Ištrinti`,Deleted:``,"Deleted member":`Pašalintas narys`,Deleting:``,Discussion:`Diskusija`,Dislike:``,Edit:`Redaguoti`,"Edit this comment":`Redaguoti šį komentarą`,edited:`redaguotas`,"Enter your name":`Įrašykite savo vardą`,Expertise:`Specializacija`,"Founder @ Acme Inc":`Istorikas`,"Full-time parent":`Vaiką prižiūrintis tėvas`,"Head of Marketing at Acme, Inc":`Tyrinėtojas`,"Hidden for members":``,"Hide comment":`Paslėpti komentarą`,"Jamie Larson":`Vardenis Pavardenis`,"Join the discussion":`Prisijunkite prie diskusijos`,"Just now":`Ką tik`,Like:``,"Load more ({amount})":``,"Local resident":`Vietinis gyventojas`,"Member discussion":`Komentarai`,Name:`Vardas`,Neurosurgeon:`Neurochirurgas`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Prieš valandą`,"One min ago":`Prieš minutę`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,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`,"See full discussion":``,Sending:`Siunčiama`,Sent:`Išsiųsta`,"Show {amount} more replies":`Rodyti daugiau atsakymų ({amount})`,"Show 1 more reply":`Rodyti dar 1 atsakymą`,"Show comment":`Rodyti komentarą`,"Sign in":`Prisijungti`,"Sign up now":`Registruotis`,"Sort by":``,"Start the conversation":`Parašykite pirmąjį komentarą`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Šis komentaras buvo paslėptas.`,"This comment has been removed.":`Šis komentaras buvo pašalintas.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Prenumeruokite`,"View in admin":``,Yesterday:`Vakar`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Jūsų pranešimas bus išsiųstas svetainės savininkui.`},ab={"{amount} characters left":`Atlikušas {amount}\xA0rakstzīmes`,"{amount} comments":`{amount} komentāri`,"{amount} hrs ago":`pirms {amount}\xA0stundām`,"{amount} mins ago":`Pirms {amount}\xA0minūtēm`,"{amount} more":`Vēl {amount}`,"1 comment":`1 komentārs`,"Add comment":`Pievienot komentāru`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Pievienojiet savam komentāram kontekstu, kopīgojiet savu vārdu un zināšanas, lai veicinātu veselīgu diskusiju.`,"Add reply":`Pievienot atbildi`,"Add your expertise":``,"Already a member?":`Vai jau esat dalībnieks?`,Anonymous:`Anonīms`,"Are you sure?":`Vai esat pārliecināts?`,Back:``,"Become a member of {publication} to start commenting.":`Kļūstiet par {publication} dalībnieku, lai sāktu komentēt.`,"Become a paid member of {publication} to start commenting.":`Kļūstiet par apmaksātu {publication} dalībnieku, lai sāktu komentēt.`,Best:``,Cancel:`Atcelt`,Comment:`Komentēt`,"Commenting disabled":``,"Complete your profile":`Pabeidziet savu profilu`,Delete:`Dzēst`,Deleted:`Izdzēsts`,"Deleted member":`Dzēsts dalībnieks`,Deleting:`Dzēšana`,Discussion:`Diskusija`,Dislike:``,Edit:`Rediģēt`,"Edit this comment":`Rediģēt šo komentāru`,edited:`rediģēts`,"Enter your name":`Ievadiet savu vārdu`,Expertise:`Ekspertīze`,"Founder @ Acme Inc":`Dibinātājs @ Acme Inc`,"Full-time parent":`Pilnas slodzes vecāks`,"Head of Marketing at Acme, Inc":`Mārketinga vadītājs uzņēmumā Acme, Inc`,"Hidden for members":`Paslēpts dalībniekiem`,"Hide comment":`Slēpt komentāru`,"Jamie Larson":`Jānis Reikulis`,"Join the discussion":`Pievienojieties diskusijai`,"Just now":`Tikai tagad`,Like:``,"Load more ({amount})":``,"Local resident":`Vietējais iedzīvotājs`,"Member discussion":`Biedru diskusija`,Name:`Vārds`,Neurosurgeon:`Neiroķirurgs`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Pēc dzēšanas šo komentāru nevar atgūt.`,"One hour ago":`Pirms stundas`,"One min ago":`Pirms minūtes`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,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`,"See full discussion":``,Sending:`Notiek nosūtīšana`,Sent:`Nosūtīts`,"Show {amount} more replies":`Rādīt vēl {amount} atbildes`,"Show 1 more reply":`Rādīt vēl 1 atbildi`,"Show comment":`Rādīt komentāru`,"Sign in":`Pierakstīties`,"Sign up now":`Reģistrējieties tūlīt`,"Sort by":`Kārtot pēc`,"Start the conversation":`Sāciet sarunu`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Šis komentārs ir paslēpts.`,"This comment has been removed.":`Šis komentārs ir noņemts.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Jauniniet tūlīt`,"View in admin":``,Yesterday:`Vakar`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Jūsu pieprasījums tiks nosūtīts šīs vietnes īpašniekam.`},ob={"{amount} characters left":`Преостануваат {amount} знаци.`,"{amount} comments":`{amount} коментари`,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":`Уште {amount}`,"1 comment":`1 коментар`,"Add comment":`Додајте коментар`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Додајте контекст за вашиот коментар, споделете го вашето име и експертиза за да одржите пристојна дискусија.`,"Add reply":`Одговорете`,"Add your expertise":``,"Already a member?":`Веќе сте член?`,Anonymous:`Анонимен`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Станете член на {publication} за да можете да коментирате.`,"Become a paid member of {publication} to start commenting.":`Станете претплатен член на {publication} за да можеш да коментирате.`,Best:``,Cancel:`Откажете`,Comment:`Коментирајте`,"Commenting disabled":``,"Complete your profile":`Комплетирајте го вашиот профил`,Delete:`Избришете`,Deleted:``,"Deleted member":`Избришан член`,Deleting:``,Discussion:`Разговор`,Dislike:``,Edit:`Изменете`,"Edit this comment":`Изменете го овој коментар`,edited:``,"Enter your name":`Внесете го вашето име`,Expertise:`Експертиза`,"Founder @ Acme Inc":`Основач @ Примерна Компанија`,"Full-time parent":`Родител`,"Head of Marketing at Acme, Inc":`Раководител на Маркетинг во Примерна Компанија`,"Hidden for members":``,"Hide comment":`Скријте го коментарот`,"Jamie Larson":`Петар Петровски`,"Join the discussion":`Приклучете се во разговорот`,"Just now":`Штотуку`,Like:``,"Load more ({amount})":``,"Local resident":`Локал жител`,"Member discussion":`Разговор на членовите`,Name:`Име`,Neurosurgeon:`Неврохирург`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Пред еден час`,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:``,"Replied to":``,Reply:`Одговорете`,"Reply to":``,"Reply to comment":`Одговор на коментарот`,Report:`Пријавете`,"Report comment":`Пријавете коментар`,"Report this comment?":`Пријавете го овој коментар?`,Save:`Зачувајте`,"See full discussion":``,Sending:`Се испраќа`,Sent:`Испратено`,"Show {amount} more replies":`Покажи уште {amount} одговори`,"Show 1 more reply":`Покажи уште 1 одговор`,"Show comment":`Покажи коментар`,"Sign in":`Најавете се`,"Sign up now":`Регистрирајте се`,"Sort by":``,"Start the conversation":`Започнете го разговорот`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Овој коментар беше скриен.`,"This comment has been removed.":`Овој коментар беше отстранет.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Надградете`,"View in admin":``,Yesterday:`Вчера`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Вашето барање ќе биде испратено на сопственикот на оваа страница.`},sb={"{amount} characters left":`{amount} тэмдэгт үлдсэн`,"{amount} comments":`{amount} сэтгэгдэл`,"{amount} hrs ago":`{amount} цагийн өмнө`,"{amount} mins ago":`{amount} минутын өмнө`,"{amount} more":`{amount} илүү`,"1 comment":`1 сэтгэгдэл`,"Add comment":`Сэтгэгдэл нэмэх`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Сэтгэгдэлдээ илүү мэдээлэл оруулан, нэр болон мэргэжлээ хуваалцаж, үр бүтээлтэй хэлэлцүүлэг өрнүүлнэ үү.`,"Add reply":`Хариу нэмэх`,"Add your expertise":``,"Already a member?":`Бүртгэлтэй юу?`,Anonymous:`Нууц`,"Are you sure?":`Та итгэлтэй байна уу?`,Back:``,"Become a member of {publication} to start commenting.":`Сэтгэгдэл бичихийн тулд {publication}-н гишүүн болно уу.`,"Become a paid member of {publication} to start commenting.":`Сэтгэгдэл бичихийн тулд {publication}-н төлбөртэй гишүүн болно уу.`,Best:``,Cancel:`Цуцлах`,Comment:`Сэтгэгдэл`,"Commenting disabled":``,"Complete your profile":`Профайлаа бүрэн бөглөнө үү`,Delete:`Устгах`,Deleted:`Устгагдсан`,"Deleted member":`Устгагдсан гишүүн`,Deleting:`Устгаж байна`,Discussion:`Хэлэлцүүлэг`,Dislike:``,Edit:`Засах`,"Edit this comment":`Энэхүү сэтгэгдлийг засах`,edited:`засагдсан`,"Enter your name":`Нэрээ оруулна уу`,Expertise:`Мэргэжил`,"Founder @ Acme Inc":`Acme Inc-н үүсгэн байгуулагч`,"Full-time parent":`Бүтэн цагийн эцэг/эх`,"Head of Marketing at Acme, Inc":`Acme, Inc-н маркетингийн удирдлага`,"Hidden for members":`Гишүүдээс нуугдсан`,"Hide comment":`Сэтгэгдлийг нуух`,"Jamie Larson":`Доржийн Бат`,"Join the discussion":`Хэлэлцүүлэгт нэгдэх`,"Just now":`Дөнгөж сая`,Like:``,"Load more ({amount})":`Дахин харах ({amount})`,"Local resident":`Орон нутгийн оршин суугч`,"Member discussion":`Гишүүдийн хэлэлцүүлэг`,Name:`Нэр`,Neurosurgeon:`Мэдрэлийн мэс засалч`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Устгасны дараа энэ сэтгэгдлийг сэргээх боломжгүй.`,"One hour ago":`Нэг цагийн өмнө`,"One min ago":`Нэг минутын өмнө`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:`хасагдсан`,"Replied to":`Хариулсан`,Reply:`Хариулах`,"Reply to":`Хариулах`,"Reply to comment":`Сэтгэгдэлд хариулах`,Report:`Мэдэгдэх`,"Report comment":`Сэтгэгдлийг мэдэгдэх`,"Report this comment?":`Энэ сэтгэгдлийг мэдэгдэх үү?`,Save:`Хадгалах`,"See full discussion":``,Sending:`Илгээж байна`,Sent:`Илгээгдсэн`,"Show {amount} more replies":`{amount} хариултыг харуулах`,"Show 1 more reply":`1 хариултыг харуулах`,"Show comment":`Сэтгэгдлийг харуулах`,"Sign in":`Нэвтрэх`,"Sign up now":`Одоо бүртгүүлэх`,"Sort by":`Эрэмбэлэх`,"Start the conversation":`Яриаг эхлүүлэх`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Энэ сэтгэгдэл нуугдсан.`,"This comment has been removed.":`Энэ сэтгэгдэл хасагдсан.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Одоо шинэчлэх`,"View in admin":``,Yesterday:`Өчигдөр`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Таны хүсэлт энэ сайтын эзэмшигч рүү илгээгдэнэ.`},cb={"{amount} characters left":``,"{amount} comments":``,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":``,"1 comment":``,"Add comment":``,"Add context to your comment, share your name and expertise to foster a healthy discussion.":``,"Add reply":``,"Add your expertise":``,"Already a member?":``,Anonymous:``,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":``,"Become a paid member of {publication} to start commenting.":``,Best:``,Cancel:``,Comment:``,"Commenting disabled":``,"Complete your profile":``,Delete:``,Deleted:``,"Deleted member":``,Deleting:``,Discussion:``,Dislike:``,Edit:``,"Edit this comment":``,edited:``,"Enter your name":``,Expertise:``,"Founder @ Acme Inc":``,"Full-time parent":``,"Head of Marketing at Acme, Inc":``,"Hidden for members":``,"Hide comment":``,"Jamie Larson":``,"Join the discussion":``,"Just now":``,Like:``,"Load more ({amount})":``,"Local resident":``,"Member discussion":``,Name:``,Neurosurgeon:``,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":``,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:``,"Replied to":``,Reply:``,"Reply to":``,"Reply to comment":``,Report:``,"Report comment":``,"Report this comment?":``,Save:``,"See full discussion":``,Sending:``,Sent:``,"Show {amount} more replies":``,"Show 1 more reply":``,"Show comment":``,"Sign in":``,"Sign up now":``,"Sort by":``,"Start the conversation":``,"The linked comment is no longer available.":``,"This comment has been hidden.":``,"This comment has been removed.":``,Unpin:``,"Unpin comment":``,"Upgrade now":``,"View in admin":``,Yesterday:``,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":``},lb={"{amount} characters left":`{amount} tegn igjen`,"{amount} comments":`{amount} kommentarer`,"{amount} hrs ago":`{amount} timer siden`,"{amount} mins ago":`{amount} minutter siden`,"{amount} more":`{amount} mer`,"1 comment":`1 kommentar`,"Add comment":`Legg til kommentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Legg til kontekst i kommentaren din, del navnet ditt og ekspertisen din for å fremme en god diskusjon.`,"Add reply":`Legg til svar`,"Add your expertise":``,"Already a member?":`Allerede medlem?`,Anonymous:`Anonym`,"Are you sure?":`Er du sikker?`,Back:``,"Become a member of {publication} to start commenting.":`Bli medlem av {publication} for å begynne å kommentere.`,"Become a paid member of {publication} to start commenting.":`Bli et betalende medlem av {publication} for å begynne å kommentere.`,Best:``,Cancel:`Avbryt`,Comment:`Kommentar`,"Commenting disabled":``,"Complete your profile":`Fullfør profilen din`,Delete:`Slett`,Deleted:`Slettet`,"Deleted member":`Slettet medlem`,Deleting:`Sletter`,Discussion:`Diskusjon`,Dislike:``,Edit:`Rediger`,"Edit this comment":`Rediger denne kommentaren`,edited:`redigert`,"Enter your name":`Skriv inn navnet ditt`,Expertise:`Ekspertise`,"Founder @ Acme Inc":`Grunnlegger @ Acme Inc`,"Full-time parent":`Forelder på heltid`,"Head of Marketing at Acme, Inc":`Markedsføringsleder hos Acme Inc`,"Hidden for members":`Skjult for medlemmer`,"Hide comment":`Skjul kommentar`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Delta i diskusjonen`,"Just now":`Akkurat nå`,Like:``,"Load more ({amount})":`Last inn flere ({amount})`,"Local resident":`Lokal innbygger`,"Member discussion":`Medlemsdiskusjon`,Name:`Navn`,Neurosurgeon:`Nevrokirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`En time siden`,"One min ago":`Ett minutt siden`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,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`,"See full discussion":``,Sending:`Sender`,Sent:`Sendt`,"Show {amount} more replies":`Vis {amount} flere svar`,"Show 1 more reply":`Vis ett svar til`,"Show comment":`Vis kommentar`,"Sign in":`Logg inn`,"Sign up now":`Registrer deg nå`,"Sort by":`Sorter etter`,"Start the conversation":`Start samtalen`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Denne kommentaren er skjult.`,"This comment has been removed.":`Denne kommentaren er fjernet.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Oppgrader nå`,"View in admin":``,Yesterday:`I går`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Din forespørsel vil bli sendt til eieren av dette nettstedet.`},ub={"{amount} characters left":`{amount} अक्षर बाँकी`,"{amount} comments":`{amount} प्रतिक्रियाहरू`,"{amount} hrs ago":`{amount} घण्टा अघि`,"{amount} mins ago":`{amount} मिनेट अघि`,"{amount} more":`{amount} थप`,"1 comment":`१ प्रतिक्रिया`,"Add comment":`प्रतिक्रिया थप्नुहोस्`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`आफ्नो प्रतिक्रियालाई सन्दर्भ दिनुहोस्, स्वस्थ छलफलको लागि आफ्नो नाम र विशेषज्ञता साझा गर्नुहोस्।`,"Add reply":`प्रत्युत्तर थप्नुहोस्`,"Add your expertise":`आफ्नो विशेषज्ञता थप्नुहोस्`,"Already a member?":`पहिले नै सदस्य हुनुहुन्छ?`,Anonymous:`अज्ञात`,"Are you sure?":`के तपाईं निश्चित हुनुहुन्छ?`,Back:``,"Become a member of {publication} to start commenting.":`प्रतिक्रिया सुरु गर्न {publication} को सदस्य बन्नुहोस्।`,"Become a paid member of {publication} to start commenting.":`प्रतिक्रिया सुरु गर्न {publication} को सशुल्क सदस्य बन्नुहोस्।`,Best:`उत्तम`,Cancel:`रद्द गर्नुहोस्`,Comment:`प्रतिक्रिया`,"Commenting disabled":``,"Complete your profile":`आफ्नो प्रोफाइल पूरा गर्नुहोस्`,Delete:`मेटाउनुहोस्`,Deleted:`मेटाइयो`,"Deleted member":`मेटाइएको सदस्य`,Deleting:`मेटाइँदैछ`,Discussion:`छलफल`,Dislike:``,Edit:`सम्पादन`,"Edit this comment":`यो प्रतिक्रिया सम्पादन गर्नुहोस्`,edited:`सम्पादित`,"Enter your name":`आफ्नो नाम प्रविष्ट गर्नुहोस्`,Expertise:`विशेषज्ञता`,"Founder @ Acme Inc":`संस्थापक @ Acme Inc`,"Full-time parent":`पूर्ण-कालीन अभिभावक`,"Head of Marketing at Acme, Inc":`Acme, Inc मा मार्केटिङ प्रमुख`,"Hidden for members":`सदस्यहरूका लागि लुकाइएको`,"Hide comment":`प्रतिक्रिया लुकाउनुहोस्`,"Jamie Larson":`जेमी लार्सन`,"Join the discussion":`छलफलमा सामेल हुनुहोस्`,"Just now":`भर्खरै`,Like:``,"Load more ({amount})":`थप लोड गर्नुहोस् ({amount})`,"Local resident":`स्थानीय बासिन्दा`,"Member discussion":`सदस्य छलफल`,Name:`नाम`,Neurosurgeon:`न्यूरोसर्जन`,Newest:`सबैभन्दा नयाँ`,Oldest:`सबैभन्दा पुरानो`,"Once deleted, this comment can’t be recovered.":`एक पटक मेटाइएपछि, यो प्रतिक्रिया पुन: प्राप्त गर्न सकिँदैन।`,"One hour ago":`एक घण्टा अघि`,"One min ago":`एक मिनेट अघि`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:`हटाइयो`,"Replied to":`प्रत्युत्तर दिइयो`,Reply:`प्रत्युत्तर दिनुहोस्`,"Reply to":`प्रत्युत्तर दिनुहोस्`,"Reply to comment":`प्रतिक्रियाको प्रत्युत्तर दिनुहोस्`,Report:`रिपोर्ट गर्नुहोस्`,"Report comment":`प्रतिक्रिया रिपोर्ट गर्नुहोस्`,"Report this comment?":`यो प्रतिक्रिया रिपोर्ट गर्नुहुन्छ?`,Save:`बचत गर्नुहोस्`,"See full discussion":``,Sending:`पठाइँदैछ`,Sent:`पठाइयो`,"Show {amount} more replies":`थप {amount} प्रत्युत्तरहरू देखाउनुहोस्`,"Show 1 more reply":`थप १ प्रत्युत्तर देखाउनुहोस्`,"Show comment":`प्रतिक्रिया देखाउनुहोस्`,"Sign in":`साइन इन गर्नुहोस्`,"Sign up now":`अहिले दर्ता गर्नुहोस्`,"Sort by":`क्रमबद्ध गर्नुहोस्`,"Start the conversation":`कुराकानी सुरु गर्नुहोस्`,"The linked comment is no longer available.":``,"This comment has been hidden.":`यो प्रतिक्रिया लुकाइएको छ।`,"This comment has been removed.":`यो प्रतिक्रिया हटाइएको छ।`,Unpin:``,"Unpin comment":``,"Upgrade now":`अहिले अपग्रेड गर्नुहोस्`,"View in admin":``,Yesterday:`हिजो`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`तपाईंको अनुरोध यस साइटको मालिकलाई पठाइनेछ।`},db={"{amount} characters left":`Nog {amount} tekens over`,"{amount} comments":`{amount} reacties`,"{amount} hrs ago":`{amount} uur geleden`,"{amount} mins ago":`{amount} min geleden`,"{amount} more":`Nog {amount}`,"1 comment":`Eén reactie`,"Add comment":`Versturen`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Voeg context toe aan je reactie, deel je naam en expertise om een gezonde discussie te bevorderen.`,"Add reply":`Beantwoorden`,"Add your expertise":``,"Already a member?":`Al lid?`,Anonymous:`Anoniem`,"Are you sure?":`Weet je het zeker?`,Back:``,"Become a member of {publication} to start commenting.":`Word lid van {publication} om te kunnen reageren.`,"Become a paid member of {publication} to start commenting.":`Word betalend lid van {publication} om te kunnen reageren.`,Best:``,Cancel:`Annuleren`,Comment:`Verstuur`,"Commenting disabled":``,"Complete your profile":`Vervolledig jouw profiel`,Delete:`Verwijderen`,Deleted:`Verwijderd`,"Deleted member":`Verwijderd lid`,Deleting:`Wordt verwijderd`,Discussion:`Gesprek`,Dislike:``,Edit:`Bewerken`,"Edit this comment":`Bewerk deze reactie`,edited:`bewerkt`,"Enter your name":`Vul je naam in`,Expertise:`Expertise`,"Founder @ Acme Inc":`Oprichter, Acme BV`,"Full-time parent":`Full-time ouder`,"Head of Marketing at Acme, Inc":`Acme BV, Hoofd Marketing`,"Hidden for members":`Verborgen voor leden`,"Hide comment":`Verberg reactie`,"Jamie Larson":`Jan Jansen`,"Join the discussion":`Doe mee aan het gesprek`,"Just now":`Zojuist`,Like:``,"Load more ({amount})":`Laad meer ({amount})`,"Local resident":`Lokale bewoner`,"Member discussion":`Gesprek`,Name:`Naam`,Neurosurgeon:`Neurochirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Eenmaal verwijderd, kan deze reactie niet meer worden hersteld.`,"One hour ago":`Eén uur geleden`,"One min ago":`Eén min geleden`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,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`,"See full discussion":``,Sending:`Verzenden`,Sent:`Verzonden`,"Show {amount} more replies":`Toon {amount} extra antwoorden`,"Show 1 more reply":`Toon nog 1 antwoord`,"Show comment":`Toon reactie`,"Sign in":`Inloggen`,"Sign up now":`Registreren`,"Sort by":`Sorteren op`,"Start the conversation":`Begin het gesprek`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Deze reactie is verborgen.`,"This comment has been removed.":`Deze reactie is verwijderd.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Upgrade nu`,"View in admin":``,Yesterday:`Gisteren`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Jouw melding zal worden verzonden naar de eigenaar van deze site.`},fb={"{amount} characters left":``,"{amount} comments":``,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":``,"1 comment":``,"Add comment":``,"Add context to your comment, share your name and expertise to foster a healthy discussion.":``,"Add reply":``,"Add your expertise":``,"Already a member?":``,Anonymous:``,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":``,"Become a paid member of {publication} to start commenting.":``,Best:``,Cancel:``,Comment:``,"Commenting disabled":``,"Complete your profile":``,Delete:``,Deleted:``,"Deleted member":``,Deleting:``,Discussion:``,Dislike:``,Edit:``,"Edit this comment":``,edited:``,"Enter your name":``,Expertise:``,"Founder @ Acme Inc":``,"Full-time parent":``,"Head of Marketing at Acme, Inc":``,"Hidden for members":``,"Hide comment":``,"Jamie Larson":``,"Join the discussion":``,"Just now":``,Like:``,"Load more ({amount})":``,"Local resident":``,"Member discussion":``,Name:``,Neurosurgeon:``,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":``,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:``,"Replied to":``,Reply:``,"Reply to":``,"Reply to comment":``,Report:``,"Report comment":``,"Report this comment?":``,Save:``,"See full discussion":``,Sending:``,Sent:``,"Show {amount} more replies":``,"Show 1 more reply":``,"Show comment":``,"Sign in":``,"Sign up now":``,"Sort by":``,"Start the conversation":``,"The linked comment is no longer available.":``,"This comment has been hidden.":``,"This comment has been removed.":``,Unpin:``,"Unpin comment":``,"Upgrade now":``,"View in admin":``,Yesterday:``,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":``},pb={"{amount} characters left":`{amount} ਅੱਖਰ ਬਾਕੀ`,"{amount} comments":`{amount} ਟਿੱਪਣੀਆਂ`,"{amount} hrs ago":`{amount} ਘੰਟੇ ਪਹਿਲਾਂ`,"{amount} mins ago":`{amount} ਮਿੰਟ ਪਹਿਲਾਂ`,"{amount} more":`{amount} ਹੋਰ`,"1 comment":`1 ਟਿੱਪਣੀ`,"Add comment":`ਟਿੱਪਣੀ ਸ਼ਾਮਲ ਕਰੋ`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`ਆਪਣੀ ਟਿੱਪਣੀ ਵਿੱਚ ਸੰਦਰਭ ਸ਼ਾਮਲ ਕਰੋ, ਸਿਹਤਮੰਦ ਵਿਚਾਰ-ਵਟਾਂਦਰੇ ਨੂੰ ਉਤਸ਼ਾਹਿਤ ਕਰਨ ਲਈ ਆਪਣਾ ਨਾਮ ਅਤੇ ਮੁਹਾਰਤ ਸਾਂਝੀ ਕਰੋ।`,"Add reply":`ਜਵਾਬ ਸ਼ਾਮਲ ਕਰੋ`,"Add your expertise":`ਆਪਣੀ ਮੁਹਾਰਤ ਸ਼ਾਮਲ ਕਰੋ`,"Already a member?":`ਪਹਿਲਾਂ ਤੋਂ ਹੀ ਮੈਂਬਰ ਹੋ?`,Anonymous:`ਗੁਮਨਾਮ`,"Are you sure?":`ਕੀ ਤੁਹਾਨੂੰ ਯਕੀਨ ਹੈ?`,Back:``,"Become a member of {publication} to start commenting.":`{publication} ਦੇ ਮੈਂਬਰ ਬਣੋ ਅਤੇ ਟਿੱਪਣੀ ਕਰਨਾ ਸ਼ੁਰੂ ਕਰੋ।`,"Become a paid member of {publication} to start commenting.":`{publication} ਦੇ ਸਹਿਯੋਗੀ ਮੈਂਬਰ ਬਣੋ ਅਤੇ ਟਿੱਪਣੀ ਕਰਨਾ ਸ਼ੁਰੂ ਕਰੋ।`,Best:`ਸਭ ਤੋਂ ਵਧੀਆ`,Cancel:`ਰੱਦ ਕਰੋ`,Comment:`ਟਿੱਪਣੀ`,"Commenting disabled":``,"Complete your profile":`ਆਪਣਾ ਨਿੱਜੀ ਪੰਨਾ ਪੂਰਾ ਕਰੋ`,Delete:`ਮਿਟਾਓ`,Deleted:`ਮਿਟਾਇਆ ਗਿਆ`,"Deleted member":`ਮਿਟਾਇਆ ਗਿਆ ਮੈਂਬਰ`,Deleting:`ਮਿਟਾਇਆ ਜਾ ਰਿਹਾ ਹੈ`,Discussion:`ਵਿਚਾਰ-ਵਟਾਂਦਰਾ`,Dislike:``,Edit:`ਸੰਪਾਦਿਤ ਕਰੋ`,"Edit this comment":`ਇਸ ਟਿੱਪਣੀ ਨੂੰ ਸੰਪਾਦਿਤ ਕਰੋ`,edited:`ਸੰਪਾਦਿਤ`,"Enter your name":`ਆਪਣਾ ਨਾਮ ਦਰਜ ਕਰੋ`,Expertise:`ਮੁਹਾਰਤ`,"Founder @ Acme Inc":`ਸੰਸਥਾਪਕ @ ਫਲਾਣੀ ਕੰਪਨੀ`,"Full-time parent":`ਘਰੇਲੂ ਮਾਪਾ`,"Head of Marketing at Acme, Inc":`ਮਾਰਕੀਟਿੰਗ ਮੁਖੀ, ਫਲਾਣੀ ਕੰਪਨੀ ਵਿਖੇ`,"Hidden for members":`ਮੈਂਬਰਾਂ ਲਈ ਛੁਪਾਇਆ ਗਿਆ`,"Hide comment":`ਟਿੱਪਣੀ ਛੁਪਾਓ`,"Jamie Larson":`ਫਲਾਣਾ ਫਲਾਣੀ`,"Join the discussion":`ਵਿਚਾਰ-ਵਟਾਂਦਰੇ ਵਿੱਚ ਸ਼ਾਮਲ ਹੋਵੋ`,"Just now":`ਹੁਣੇ ਹੁਣੇ`,Like:``,"Load more ({amount})":`ਹੋਰ ਲੋਡ ਕਰੋ ({amount})`,"Local resident":`ਸਥਾਨਕ ਨਿਵਾਸੀ`,"Member discussion":`ਮੈਂਬਰ ਵਿਚਾਰ-ਵਟਾਂਦਰਾ`,Name:`ਨਾਮ`,Neurosurgeon:`ਨਿਊਰੋਸਰਜਨ`,Newest:`ਸਭ ਤੋਂ ਨਵਾਂ`,Oldest:`ਸਭ ਤੋਂ ਪੁਰਾਣਾ`,"Once deleted, this comment can’t be recovered.":`ਇੱਕ ਵਾਰ ਮਿਟਾਉਣ ਤੋਂ ਬਾਅਦ, ਇਹ ਟਿੱਪਣੀ ਮੁੜ ਪ੍ਰਾਪਤ ਨਹੀਂ ਕੀਤੀ ਜਾ ਸਕਦੀ।`,"One hour ago":`ਇੱਕ ਘੰਟਾ ਪਹਿਲਾਂ`,"One min ago":`ਇੱਕ ਮਿੰਟ ਪਹਿਲਾਂ`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:`ਹਟਾਇਆ ਗਿਆ`,"Replied to":`ਨੂੰ ਜਵਾਬ ਦਿੱਤਾ`,Reply:`ਜਵਾਬ`,"Reply to":`ਨੂੰ ਜਵਾਬ ਦਿਓ`,"Reply to comment":`ਟਿੱਪਣੀ ਦਾ ਜਵਾਬ ਦਿਓ`,Report:`ਰਿਪੋਰਟ ਕਰੋ`,"Report comment":`ਟਿੱਪਣੀ ਦੀ ਰਿਪੋਰਟ ਕਰੋ`,"Report this comment?":`ਕੀ ਇਸ ਟਿੱਪਣੀ ਦੀ ਰਿਪੋਰਟ ਕਰਨੀ ਹੈ?`,Save:`ਸੁਰੱਖਿਅਤ ਕਰੋ`,"See full discussion":``,Sending:`ਭੇਜਿਆ ਜਾ ਰਿਹਾ ਹੈ`,Sent:`ਭੇਜ ਦਿੱਤਾ ਗਿਆ`,"Show {amount} more replies":`{amount} ਹੋਰ ਜਵਾਬ ਦਿਖਾਓ`,"Show 1 more reply":`1 ਹੋਰ ਜਵਾਬ ਦਿਖਾਓ`,"Show comment":`ਟਿੱਪਣੀ ਦਿਖਾਓ`,"Sign in":`ਸਾਈਨ ਇਨ ਕਰੋ`,"Sign up now":`ਹੁਣੇ ਸਾਈਨ ਅੱਪ ਕਰੋ`,"Sort by":`ਇਸ ਅਨੁਸਾਰ ਕ੍ਰਮਬੱਧ ਕਰੋ`,"Start the conversation":`ਗੱਲਬਾਤ ਸ਼ੁਰੂ ਕਰੋ`,"The linked comment is no longer available.":``,"This comment has been hidden.":`ਇਹ ਟਿੱਪਣੀ ਛੁਪਾ ਦਿੱਤੀ ਗਈ ਹੈ।`,"This comment has been removed.":`ਇਹ ਟਿੱਪਣੀ ਹਟਾ ਦਿੱਤੀ ਗਈ ਹੈ।`,Unpin:``,"Unpin comment":``,"Upgrade now":`ਹੁਣੇ ਅੱਪਗਰੇਡ ਕਰੋ`,"View in admin":``,Yesterday:`ਕੱਲ੍ਹ`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`ਤੁਹਾਡੀ ਬੇਨਤੀ ਇਸ ਸਾਈਟ ਦੇ ਸੰਚਾਲਕ ਨੂੰ ਭੇਜੀ ਜਾਵੇਗੀ।`},mb={"{amount} characters left":`Pozostało {amount} znaków`,"{amount} comments":`{amount} komentarzy`,"{amount} hrs ago":`{amount} godzin temu`,"{amount} mins ago":`{amount} minut temu`,"{amount} more":`{amount} więcej`,"1 comment":`1 komentarz`,"Add comment":`Dodaj komentarz`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Dodaj więcej informacji do Twojego komentarza, następnie udostępnij proszę Twoje imię i doświadczenie w celu wzbogacenia jakości dyskusji.`,"Add reply":`Dodaj odpowiedź`,"Add your expertise":``,"Already a member?":`Posiadasz już konto?`,Anonymous:`Anonimowy`,"Are you sure?":`Czy jesteś pewien?`,Back:``,"Become a member of {publication} to start commenting.":`Dołącz do społeczności {publication}, by zacząć komentować.`,"Become a paid member of {publication} to start commenting.":`Dołącz do społeczności płatnych subskrybentów {publication}, by zacząć komentować.`,Best:``,Cancel:`Anuluj`,Comment:`Skomentuj`,"Commenting disabled":``,"Complete your profile":`Skompletuj Twój profil`,Delete:`Usuń`,Deleted:`Usunięto`,"Deleted member":`Usunięte konto`,Deleting:`Usuwanie`,Discussion:`Dyskusja`,Dislike:``,Edit:`Edytuj`,"Edit this comment":`Edytuj komentarz`,edited:`edytowano`,"Enter your name":`Podaj Twoje imię`,Expertise:`Doświadczenie`,"Founder @ Acme Inc":`Founder @ Acme Inc`,"Full-time parent":`Pełnoetatowy rodzic`,"Head of Marketing at Acme, Inc":`Head of Marketing at Acme, Inc`,"Hidden for members":`Ukryte dla członków`,"Hide comment":`Ukryj komentarz`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Dołącz do dyskusji`,"Just now":`Przed chwilą`,Like:``,"Load more ({amount})":`Załaduj więcej ({amount})`,"Local resident":`Lokalny rezydent`,"Member discussion":`Członek dyskusji`,Name:`Imię`,Neurosurgeon:`Neurochirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Po usunięciu, nie będzie możliwe przywrócenie tego komentarza`,"One hour ago":`Godzinę temu`,"One min ago":`Minutę temu`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,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`,"See full discussion":``,Sending:`Wysyłanie`,Sent:`Wysłano`,"Show {amount} more replies":`Pokaż {amount} kolejnych odpowiedzi`,"Show 1 more reply":`Pokaż następną odpowiedź`,"Show comment":`Pokaż komentarz`,"Sign in":`Zaloguj się`,"Sign up now":`Zarejestruj się`,"Sort by":`Sortuj według`,"Start the conversation":`Rozpocznij dyskusję`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Komentarz został ukryty.`,"This comment has been removed.":`Komentarz został usunięty.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Ulepsz teraz`,"View in admin":``,Yesterday:`Wczoraj`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Twoje zgłoszenie zostało przesłane do administratora strony.`},hb={"{amount} characters left":`Faltam {amount} caracteres `,"{amount} comments":`{amount} comentários`,"{amount} hrs ago":`{amount} horas atrás`,"{amount} mins ago":`{amount} minutos atrás`,"{amount} more":`mais`,"1 comment":`Um comentário`,"Add comment":`Adicionar comentário`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Adicione o seu comentário, partilhe o seu nome e expriência de modo a promover uma discussão saudável.`,"Add reply":`Adicionar resposta`,"Add your expertise":``,"Already a member?":`Já é membro?`,Anonymous:`Anónimo`,"Are you sure?":`Tem a certeza?`,Back:``,"Become a member of {publication} to start commenting.":`Torne-se um membro do {publication} para comentar.`,"Become a paid member of {publication} to start commenting.":`Torne-se um membro pago do {publication} para comentar. `,Best:`Melhores`,Cancel:`Cancelar`,Comment:`Comentar`,"Commenting disabled":``,"Complete your profile":`Complete o seu perfil`,Delete:`Eliminar`,Deleted:`Eliminado`,"Deleted member":`Membro eliminado`,Deleting:`Eliminando`,Discussion:`Discussão`,Dislike:``,Edit:`Editar`,"Edit this comment":`Editar este comentário`,edited:`editado`,"Enter your name":`Insira o seu nome`,Expertise:`Perícia`,"Founder @ Acme Inc":`Fundador @ Amce Inc`,"Full-time parent":`Pai a tempo inteiro`,"Head of Marketing at Acme, Inc":`Responsável do Marketing @ Amce, Inc`,"Hidden for members":`Oculto para membros`,"Hide comment":`Esconder comentário`,"Jamie Larson":`Jane Doe`,"Join the discussion":`Junte-se à discussão`,"Just now":`Agora`,Like:``,"Load more ({amount})":``,"Local resident":`Residente local`,"Member discussion":`Discussão para membros`,Name:`Nome`,Neurosurgeon:`neurocirurgião`,Newest:`Mais recentes`,Oldest:`Mais antigos`,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`uma hora atrás`,"One min ago":`um minuto atrás`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,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`,"See full discussion":``,Sending:`Enviar`,Sent:`Enviado`,"Show {amount} more replies":`Mostrar mais {amount} respostas`,"Show 1 more reply":`Mostrar mais uma resposta`,"Show comment":`Mostrar comentário`,"Sign in":`Registar`,"Sign up now":`Registar agora`,"Sort by":`Organizar por`,"Start the conversation":`Comece a conversa`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Este comentário foi ocultado`,"This comment has been removed.":`Este comentário foi removido`,Unpin:``,"Unpin comment":``,"Upgrade now":`Atualize agora`,"View in admin":``,Yesterday:`Ontem`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`O seu pedido será enviado para o dono deste site.`},gb={"{amount} characters left":`{amount} caracteres restantes`,"{amount} comments":`{amount} comentários`,"{amount} hrs ago":`{amount} horas atrás`,"{amount} mins ago":`{amount} minutos atrás`,"{amount} more":`{amount} mais`,"1 comment":`1 comentário`,"Add comment":`Adicionar comentário`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Adicione contexto ao seu comentário, compartilhe seu nome e sua especialidade para promover uma discussão saudável.`,"Add reply":`Adicionar resposta`,"Add your expertise":`Adicione sua especialidade`,"Already a member?":`Já é um membro?`,Anonymous:`Anônimo`,"Are you sure?":`Você tem certeza?`,Back:`Voltar`,"Become a member of {publication} to start commenting.":`Torne-se um membro de {publication} para começar a comentar.`,"Become a paid member of {publication} to start commenting.":`Torne-se um membro pago de {publication} para começar a comentar.`,Best:`Melhores`,Cancel:`Cancelar`,Comment:`Comentar`,"Commenting disabled":`Comentários desativados`,"Complete your profile":`Complete seu perfil`,Delete:`Excluir`,Deleted:`Excluído`,"Deleted member":`Membro excluído`,Deleting:`Excluindo`,Discussion:`Discussão`,Dislike:`Não gostei`,Edit:`Editar`,"Edit this comment":`Editar este comentário`,edited:`editado`,"Enter your name":`Digite seu nome`,Expertise:`Especialidade`,"Founder @ Acme Inc":`Fundador @ Acme Inc`,"Full-time parent":`Pai/Mãe em tempo integral`,"Head of Marketing at Acme, Inc":`Chefe de Marketing na Acme, Inc`,"Hidden for members":`Oculto para membros`,"Hide comment":`Ocultar comentário`,"Jamie Larson":`Cris Silva`,"Join the discussion":`Participe da discussão`,"Just now":`Agora mesmo`,Like:`Gostei`,"Load more ({amount})":`Carregar mais ({amount})`,"Local resident":`Residente local`,"Member discussion":`Discussão entre membros`,Name:`Nome`,Neurosurgeon:`Neurocirurgião`,Newest:`Mais Recentes`,Oldest:`Mais Antigos`,"Once deleted, this comment can’t be recovered.":`Após ser excluído, esse comentário não poderá ser recuperado.`,"One hour ago":`Uma hora atrás`,"One min ago":`Um minuto atrás`,"Pin comment":`Fixar comentário`,Pinned:`Fixado`,"Read more replies":`Ler mais respostas`,"Remove dislike":`Remover não gostei`,"Remove like":`Remover gostei`,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`,"See full discussion":`Ver discussão completa`,Sending:`Enviando`,Sent:`Enviado`,"Show {amount} more replies":`Exibir mais {amount} respostas`,"Show 1 more reply":`Exibir 1 resposta adicional`,"Show comment":`Exibir comentário`,"Sign in":`Entrar`,"Sign up now":`Inscreva-se agora`,"Sort by":`Ordenar por`,"Start the conversation":`Iniciar a conversa`,"The linked comment is no longer available.":`O comentário vinculado não está mais disponível.`,"This comment has been hidden.":`Este comentário foi ocultado.`,"This comment has been removed.":`Este comentário foi removido.`,Unpin:`Desafixar`,"Unpin comment":`Desafixar comentário`,"Upgrade now":`Atualize agora`,"View in admin":`Ver no admin`,Yesterday:`Ontem`,"You can't post comments in this publication.":`Você não pode comentar nesta publicação.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Você não pode comentar nesta publicação. <a>Contate o suporte</a> para mais informações.`,"Your request will be sent to the owner of this site.":`Sua solicitação será enviada ao proprietário deste site.`},_b={"{amount} characters left":`{amount} caractere rămase`,"{amount} comments":`{amount} comentarii`,"{amount} hrs ago":`acum {amount} ore`,"{amount} mins ago":`acum {amount} minute`,"{amount} more":`încă {amount}`,"1 comment":`1 comentariu`,"Add comment":`Adaugă comentariu`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Adăugați context comentariului dumneavoastră, împărtășiți-vă numele și expertiza pentru a favoriza o discuție sănătoasă.`,"Add reply":`Adaugă răspuns`,"Add your expertise":``,"Already a member?":`Deja membru?`,Anonymous:`Anonim`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Deveniți membru al {publication} pentru a începe să comentați.`,"Become a paid member of {publication} to start commenting.":`Deveniți membru plătit al {publication} pentru a începe să comentați.`,Best:``,Cancel:`Anulează`,Comment:`Comentează`,"Commenting disabled":``,"Complete your profile":`Completează-ți profilul`,Delete:`Șterge`,Deleted:``,"Deleted member":`Membru șters`,Deleting:``,Discussion:`Discuție`,Dislike:``,Edit:`Editează`,"Edit this comment":`Editează acest comentariu`,edited:`editat`,"Enter your name":`Introduceți numele dumneavoastră`,Expertise:`Expertiză`,"Founder @ Acme Inc":`Fondator @ Acme Inc`,"Full-time parent":`Părinte cu normă întreagă`,"Head of Marketing at Acme, Inc":`Șef de Marketing la Acme, Inc`,"Hidden for members":``,"Hide comment":`Ascunde comentariul`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Alătură-te discuției`,"Just now":`Chiar acum`,Like:``,"Load more ({amount})":``,"Local resident":`Rezident local`,"Member discussion":`Discuție membrii`,Name:`Nume`,Neurosurgeon:`Neurochirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Acum o oră`,"One min ago":`Acum un minut`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,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ă`,"See full discussion":``,Sending:`Se trimite`,Sent:`Trimis`,"Show {amount} more replies":`Arată încă {amount} răspunsuri`,"Show 1 more reply":`Arată încă un răspuns`,"Show comment":`Arată comentariul`,"Sign in":`Autentificare`,"Sign up now":`Înregistrează-te acum`,"Sort by":`Ordonează după`,"Start the conversation":`Începe conversația`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Acest comentariu a fost ascuns.`,"This comment has been removed.":`Acest comentariu a fost eliminat.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Actualizează acum`,"View in admin":``,Yesterday:`Ieri`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Cererea dumneavoastră va fi trimisă proprietarului acestui site.`},vb={"{amount} characters left":`{amount} символа(ов) осталось`,"{amount} comments":`{amount} комментария(ев)`,"{amount} hrs ago":`{amount} ч. назад`,"{amount} mins ago":`{amount} мин. назад`,"{amount} more":`ещё {amount}`,"1 comment":`1 комментарий`,"Add comment":`Добавить комментарий`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Дополните свой комментарий контекстом, добавив подробности о себе и своём опыте, чтобы обсуждение стало более интересным.`,"Add reply":`Добавить ответ`,"Add your expertise":`Добавить свой опыт`,"Already a member?":`Уже присоединились?`,Anonymous:`Анонимный`,"Are you sure?":`Вы уверены?`,Back:``,"Become a member of {publication} to start commenting.":`Присоединяйтесь к {publication} чтобы начать комментировать.`,"Become a paid member of {publication} to start commenting.":`Станьте платным участником {publication} чтобы начать комментировать.`,Best:`Лучший`,Cancel:`Отмена`,Comment:`Комментарий`,"Commenting disabled":``,"Complete your profile":`Заполните свой профиль`,Delete:`Удалить`,Deleted:`Удалено`,"Deleted member":`Удалённый участник`,Deleting:`Удаление`,Discussion:`Обсуждение`,Dislike:``,Edit:`Редактировать`,"Edit this comment":`Редактировать этот комментарий`,edited:`Отредактированно`,"Enter your name":`Введите ваше имя`,Expertise:`Деятельность`,"Founder @ Acme Inc":`Основатель @ Корпорация «Акме»`,"Full-time parent":`Родитель, работающий полный рабочий день`,"Head of Marketing at Acme, Inc":`Руководитель отдела маркетинга в Корпорации «Акме»`,"Hidden for members":`Скрыто для участников`,"Hide comment":`Скрыть комментарий`,"Jamie Larson":`Павел Бид`,"Join the discussion":`Присоединиться к обсуждению`,"Just now":`Сейчас`,Like:``,"Load more ({amount})":`Загрузить ещё ({amount})`,"Local resident":`Местный житель`,"Member discussion":`Обсуждение участников`,Name:`Имя`,Neurosurgeon:`Нейрохирург`,Newest:`Сначала новые`,Oldest:`Сначала старые`,"Once deleted, this comment can’t be recovered.":`После удаления этот комментарий не может быть восстановлен.`,"One hour ago":`Час назад`,"One min ago":`Минуту назад`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:`удалён`,"Replied to":`Ответ на`,Reply:`Ответить`,"Reply to":`Ответить на`,"Reply to comment":`Ответить на комментарий`,Report:`Пожаловаться`,"Report comment":`Пожаловаться на комментарий`,"Report this comment?":`Пожаловаться на этот комментарий?`,Save:`Сохранить`,"See full discussion":``,Sending:`Отправка`,Sent:`Отправлено`,"Show {amount} more replies":`Показать ещё {amount} ответа(ов)`,"Show 1 more reply":`Показать ответ`,"Show comment":`Показать комментарий`,"Sign in":`Войти`,"Sign up now":`Зарегистрироваться`,"Sort by":`Сортировать по`,"Start the conversation":`Начать обсуждение`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Этот комментарий скрыт`,"This comment has been removed.":`Этот комментарий был удалён`,Unpin:``,"Unpin comment":``,"Upgrade now":`Улучшить подписку`,"View in admin":``,Yesterday:`Вчера`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Ваш запрос будет отправлен владельцу сайта.`},yb={"{amount} characters left":`තව වචන {amount} යි.`,"{amount} comments":`අදහස් {amount} යි.`,"{amount} hrs ago":`පැය {amount} ට පෙර`,"{amount} mins ago":`මිනිත්තු {amount} ට පෙර`,"{amount} more":``,"1 comment":`1 අදහසයි.`,"Add comment":`අදහස් එකතු කරන්න`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`ඉතා හොඳ සාකච්ඡාවක් රැගෙන යාම සඳහා ඔබේ අදහසට අන්තර්ගතය එක් කර ඔබේ නම සහ විශේෂඥතාව බෙදා ගන්න`,"Add reply":`ප්රතිචාර එකතු කරන්න`,"Add your expertise":``,"Already a member?":`දැනටමත් සාමාජිකයෙක්ද ?`,Anonymous:`නිර්නාමික`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`අදහස් දැක්වීම ආරම්භ කිරීමට {publication} හි සාමාජිකයෙකු වන්න`,"Become a paid member of {publication} to start commenting.":`අදහස් දැක්වීම ආරම්භ කිරීමට {publication} හි ගෙවීම් කරන ලද සාමාජිකයෙකු වන්න`,Best:``,Cancel:`අවලංගු කරන්න`,Comment:`අදහස`,"Commenting disabled":``,"Complete your profile":`ඔබගේ ගිණුම සම්පූර්ණ කරන්න`,Delete:`Delete කරන්න`,Deleted:``,"Deleted member":`සාමාජිකයාව delete කරන්න`,Deleting:``,Discussion:`සාකච්ඡාව`,Dislike:``,Edit:`සංස්කරණය කරන්න`,"Edit this comment":`අදහස සංස්කරණය කරන්න`,edited:`සංස්කරණය කරන ලද.`,"Enter your name":`ඔබගේ නම සඳහන් කරන්න`,Expertise:`විශේෂඥතාව`,"Founder @ Acme Inc":`Acme Inc හි නිර්මාතෘ`,"Full-time parent":`පූර්ණ කාලීන භාරකරුවන්`,"Head of Marketing at Acme, Inc":`Acme, Inc හි අලෙවි ප්රධානී`,"Hidden for members":``,"Hide comment":`අදහස සඟවන්න`,"Jamie Larson":`ජේමි ලාර්සන්`,"Join the discussion":`සාකච්ඡාවට එක්වන්න`,"Just now":`මේ දැන්`,Like:``,"Load more ({amount})":``,"Local resident":`දේශීය පදිංචි`,"Member discussion":`සාමාජික සාකච්ඡාව`,Name:`නම`,Neurosurgeon:`ස්නායු ශල්ය වෛද්ය`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`පැයකට පෙර`,"One min ago":`මිනිත්තුවකට පෙර`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:``,"Replied to":``,Reply:`ප්රතිචාර දක්වන්න`,"Reply to":``,"Reply to comment":`අදහසට රතිචාර දක්වන්න`,Report:`වාර්තා කරන්න`,"Report comment":`අදහසට වාර්තා කරන්න`,"Report this comment?":`මෙම අදහසට වාර්තා කරන්නෙහිද ?`,Save:`සුරකින්න`,"See full discussion":``,Sending:`යවමින්`,Sent:`යැව්වා`,"Show {amount} more replies":`තවත් පිළිතුරු {amount} පෙන්වන්න`,"Show 1 more reply":`තවත් පිළිතුරු 1ක් පෙන්වන්න`,"Show comment":`අදහස පෙන්වන්න`,"Sign in":`Sign in වෙන්න`,"Sign up now":`දැන්ම Sign up වෙන්න`,"Sort by":``,"Start the conversation":`සංවාදය ආරම්භ කරන්න`,"The linked comment is no longer available.":``,"This comment has been hidden.":`මෙම අදහස සඟවා ඇත.`,"This comment has been removed.":`මෙම අදහස ඉවත් කර ඇත.`,Unpin:``,"Unpin comment":``,"Upgrade now":`දැන් upgrade කරන්න`,"View in admin":``,Yesterday:`ඊයෙ`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`ඔබගේ ඉල්ලීම මෙම අඩවියේ හිමිකරු වෙත යවනු ලැබේ.`},bb={"{amount} characters left":`Zostáva {amount} znakov`,"{amount} comments":`{amount} komentárov`,"{amount} hrs ago":`Pred {amount} hodinami`,"{amount} mins ago":`Pred {amount} minútami`,"{amount} more":`{amount} ďalších`,"1 comment":`1 komentár`,"Add comment":`Pridať komentár`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Pridajte kontext do vášho komentára, zdielajte svoje meno, a odbornosť pre podporu zdravej diskusie.`,"Add reply":`Pridať odpoveď`,"Add your expertise":``,"Already a member?":`Už ste členom?`,Anonymous:`Anonym`,"Are you sure?":`Ste si istý?`,Back:``,"Become a member of {publication} to start commenting.":`Staňte sa členom {publication}, aby ste mohli začať komentovať`,"Become a paid member of {publication} to start commenting.":`Staňte sa plateným členom {publication}, aby ste mohli začať komentovať`,Best:``,Cancel:`Zrušiť`,Comment:`Komentár`,"Commenting disabled":``,"Complete your profile":`Dokončite váš profil`,Delete:`Vymazať`,Deleted:`Vymazané`,"Deleted member":`Vymazaný člen`,Deleting:`Vymazávam`,Discussion:`Diskusia`,Dislike:``,Edit:`Upraviť`,"Edit this comment":`Upraviť komentár`,edited:`upravený`,"Enter your name":`Zadajte vaše meno`,Expertise:`Odbornosť`,"Founder @ Acme Inc":`Zakladateľ @ Acme Inc`,"Full-time parent":`Rodič na plný úväzok`,"Head of Marketing at Acme, Inc":`Vedúci marketingu v spoločnosti Acme, Inc`,"Hidden for members":`Skryté pre členov`,"Hide comment":`Skryť komentár`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Zapojiť sa do diskusie`,"Just now":`Teraz`,Like:``,"Load more ({amount})":``,"Local resident":`Miestny obyvateľ`,"Member discussion":`Členská diskusia`,Name:`Meno`,Neurosurgeon:`Neurochirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Po odstránení nebude možné tento komentár obnoviť.`,"One hour ago":`Pred hodinou`,"One min ago":`Pred minútou`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,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ť`,"See full discussion":``,Sending:`Odosielanie`,Sent:`Odoslané`,"Show {amount} more replies":`Zobraziť {amount} ďalších odpoveďí`,"Show 1 more reply":`Zobraziť 1 ďalšiu odpoveď`,"Show comment":`Zobraziť komentár`,"Sign in":`Prihlásiť`,"Sign up now":`Registrovať sa`,"Sort by":`Triediť podľa`,"Start the conversation":`Začať konverzáciu`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Tento komentár bol skrytý.`,"This comment has been removed.":`Tento komentár bol vymazaný.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Upraviť členstvo`,"View in admin":``,Yesterday:`Včera`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Vaša požiadavka bude odoslaná vlastníkovi stránky.`},xb={"{amount} characters left":`Še {amount} znakov`,"{amount} comments":`{amount} komentarjev`,"{amount} hrs ago":`Pred {amount} urami`,"{amount} mins ago":`Pred {amount} minutami`,"{amount} more":`Še {amount}`,"1 comment":`1 komentar`,"Add comment":`Dodajte komentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Dodajte kontekst svojemu komentarju, delite svoje ime in strokovno znanje za spodbujanje zdrave razprave.`,"Add reply":`Dodajte odgovor`,"Add your expertise":``,"Already a member?":`Ste že član?`,Anonymous:`Anonimno`,"Are you sure?":`Ste prepričani?`,Back:``,"Become a member of {publication} to start commenting.":`Postanite član {publication}, da lahko začnete komentirati.`,"Become a paid member of {publication} to start commenting.":`Postanite plačljiv član {publication}, da lahko začnete komentirati.`,Best:``,Cancel:`Prekliči`,Comment:`Komentiraj`,"Commenting disabled":``,"Complete your profile":`Dokončajte svoj profil`,Delete:`Izbriši`,Deleted:`Izbrisano`,"Deleted member":`Izbrisan član`,Deleting:`Brisanje`,Discussion:`Razprava`,Dislike:``,Edit:`Uredi`,"Edit this comment":`Uredi ta komentar`,edited:`urejeno`,"Enter your name":`Vnesite svoje ime`,Expertise:`Strokovno znanje`,"Founder @ Acme Inc":`Ustanovitelj pri Acme Inc`,"Full-time parent":`Starš s polnim delovnim časom`,"Head of Marketing at Acme, Inc":`Vodja marketinga pri Acme, Inc`,"Hidden for members":`Skrito za člane`,"Hide comment":`Skrij komentar`,"Jamie Larson":`Janez Novak`,"Join the discussion":`Pridružite se razpravi`,"Just now":`Pravkar`,Like:``,"Load more ({amount})":`Naloži več ({amount})`,"Local resident":`Lokalni prebivalec`,"Member discussion":`Razprava članov`,Name:`Ime`,Neurosurgeon:`Nevrokirurg`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":`Ko je komentar izbrisan, ga ni mogoče več obnoviti.`,"One hour ago":`Pred eno uro`,"One min ago":`Pred eno minuto`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,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`,"See full discussion":``,Sending:`Pošiljanje`,Sent:`Poslano`,"Show {amount} more replies":`Prikaži še {amount} odgovorov`,"Show 1 more reply":`Prikaži še 1 odgovor`,"Show comment":`Prikaži komentar`,"Sign in":`Prijavite se`,"Sign up now":`Registrirajte se zdaj`,"Sort by":`Razvrsti po`,"Start the conversation":`Začnite pogovor`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Ta komentar je bil skrit.`,"This comment has been removed.":`Ta komentar je bil odstranjen.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Nadgradite zdaj`,"View in admin":``,Yesterday:`Včeraj`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Vaša zahteva bo poslana lastniku te strani.`},Sb={"{amount} characters left":`edhe {amount} karaktere`,"{amount} comments":`{amount} komente`,"{amount} hrs ago":`{amount} orë më parë`,"{amount} mins ago":`{amount} minuta më parë`,"{amount} more":`edhe {amount} të tjerë`,"1 comment":`1 koment`,"Add comment":`Shto koment`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Shtojini kontekst komentit tuaj, ndani emrin dhe përvojën tuaj për të nxitur një diskutim të shëndetshëm.`,"Add reply":`Shto përgjigje`,"Add your expertise":`Shtoni përvojën tuaj`,"Already a member?":`Jeni anëtar?`,Anonymous:`Anonim`,"Are you sure?":`A jeni i sigurt?`,Back:``,"Become a member of {publication} to start commenting.":`Bëhu anëtar i {publication} për të filluar komentimin.`,"Become a paid member of {publication} to start commenting.":`Bëhu anëtar me pagesë i {publication} për të filluar komentimin.`,Best:`Më të mirat`,Cancel:`Anulo`,Comment:`Koment`,"Commenting disabled":`Komentimi është çaktivizuar`,"Complete your profile":`Plotësoni profilin tuaj`,Delete:`Fshi`,Deleted:`U fshi`,"Deleted member":`Anëtar i fshirë`,Deleting:`Duke fshirë`,Discussion:`Diskutimi`,Dislike:``,Edit:`Modifiko`,"Edit this comment":`Modifiko këtë koment`,edited:`i modifikuar`,"Enter your name":`Vendosni emrin tuaj`,Expertise:`Përvoja`,"Founder @ Acme Inc":`Themelues @ Acme Inc`,"Full-time parent":`Prind me kohë të plotë`,"Head of Marketing at Acme, Inc":`Drejtor Marketingu në Acme, Inc`,"Hidden for members":`E fshehur për anëtarët`,"Hide comment":`Fshih komentin`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Bashkohu në diskutim`,"Just now":`Këtë çast`,Like:``,"Load more ({amount})":`Ngarko më shumë ({amount})`,"Local resident":`Banor vendas`,"Member discussion":`Diskutim i anëtarëve`,Name:`Emri`,Neurosurgeon:`Neurokirurg`,Newest:`Më të rejat`,Oldest:`Më të vjetrat`,"Once deleted, this comment can’t be recovered.":`Pasi të fshihet, ky koment nuk mund të rikthehet.`,"One hour ago":`Një orë më parë`,"One min ago":`Një minutë më parë`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:`i hequr`,"Replied to":`Iu përgjigj`,Reply:`Përgjigju`,"Reply to":`Përgjigju`,"Reply to comment":`Përgjigju komentit`,Report:`Raporto`,"Report comment":`Raporto komentin`,"Report this comment?":`Të raportohet ky koment?`,Save:`Ruaj`,"See full discussion":``,Sending:`Duke dërguar`,Sent:`U dërgua`,"Show {amount} more replies":`Shfaq edhe {amount} përgjigje`,"Show 1 more reply":`Shfaq edhe 1 përgjigje`,"Show comment":`Shfaq komentin`,"Sign in":`Hyni`,"Sign up now":`Regjistrohu tani`,"Sort by":`Rendit sipas`,"Start the conversation":`Nisni bisedën`,"The linked comment is no longer available.":`Komenti i lidhur nuk është më i disponueshëm.`,"This comment has been hidden.":`Ky koment është fshehur.`,"This comment has been removed.":`Ky koment është hequr.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Përmirëso tani`,"View in admin":`Shiko në admin`,Yesterday:`Dje`,"You can't post comments in this publication.":`Nuk mund të postoni komente në këtë publikim.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Nuk mund të postoni komente në këtë publikim. <a>Kontaktoni mbështetjen</a> për më shumë informacion.`,"Your request will be sent to the owner of this site.":`Kërkesa juaj do t'i dërgohet pronarit të kësaj faqeje.`},Cb={"{amount} characters left":`preostalo je {amount} karaktera`,"{amount} comments":`{amount} komentara`,"{amount} hrs ago":`pre {amount} sati`,"{amount} mins ago":`pre {amount} minuta`,"{amount} more":`još {amount}`,"1 comment":`1 komentar`,"Add comment":`Dodajte komentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Dodajte kontekst svom komentaru, podelite svoje ime i ekspertizu kako biste podstakli zdravu diskusiju.`,"Add reply":`Dodajte odgovor`,"Add your expertise":`Dodajte ekspertizu`,"Already a member?":`Već ste član?`,Anonymous:`Anonimno`,"Are you sure?":`Da li ste sigurni?`,Back:``,"Become a member of {publication} to start commenting.":`Postanite član {publication} da biste počeli sa komentarisanjem.`,"Become a paid member of {publication} to start commenting.":`Postanite plaćeni član {publication} da biste počeli sa komentarisanjem.`,Best:`Najbolje`,Cancel:`Otkažite`,Comment:`Komentar`,"Commenting disabled":`Komentarisanje onemogućeno`,"Complete your profile":`Popunite svoj profil`,Delete:`Obrišite`,Deleted:`Obrisano`,"Deleted member":`Obrisan član`,Deleting:`Brisanje`,Discussion:`Diskusija`,Dislike:``,Edit:`Uredite`,"Edit this comment":`Uredite ovaj komentar`,edited:`uređeno`,"Enter your name":`Unesite svoje ime`,Expertise:`Ekspertiza`,"Founder @ Acme Inc":`Osnivač @ Acme Inc`,"Full-time parent":`Roditelj punim radnim vremenom`,"Head of Marketing at Acme, Inc":`Šef marketinga u Acme, Inc`,"Hidden for members":`Sakriveno za članove`,"Hide comment":`Sakrijte komentar`,"Jamie Larson":`Pera Perić`,"Join the discussion":`Pridružite se diskusiji`,"Just now":`Upravo sada`,Like:``,"Load more ({amount})":`Učitajte još ({amount})`,"Local resident":`Lokalni stanovnik`,"Member discussion":`Diskusija članova`,Name:`Ime`,Neurosurgeon:`Neurohirurg`,Newest:`Najnovije`,Oldest:`Najstarije`,"Once deleted, this comment can’t be recovered.":`Kada se obriše, ovaj komentar ne može biti vraćen.`,"One hour ago":`Pre sat`,"One min ago":`Pre minut`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:`uklonjeno`,"Replied to":`Odgovoreno korisniku`,Reply:`Odgovorite`,"Reply to":`Odgovorite korisniku`,"Reply to comment":`Odgovorite na komentar`,Report:`Prijavite`,"Report comment":`Prijavite komentar`,"Report this comment?":`Prijavite ovaj komentar?`,Save:`Sačuvajte`,"See full discussion":``,Sending:`Slanje`,Sent:`Poslato`,"Show {amount} more replies":`Prikažite još {amount} odgovora`,"Show 1 more reply":`Prikažite još 1 odgovor`,"Show comment":`Prikažite komentar`,"Sign in":`Prijavite se`,"Sign up now":`Registrujte se sada`,"Sort by":`Sortirajte po`,"Start the conversation":`Počnite razgovor`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Ovaj komentar je sakriven.`,"This comment has been removed.":`Ovaj komentar je uklonjen.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Nadogradite sada`,"View in admin":`Pogledajte u admin`,Yesterday:`Juče`,"You can't post comments in this publication.":`Ne možete objavljivati komentare u ovoj publikaciji.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Ne možete objavljivati komentare u ovoj publikaciji. <a>Kontaktirajte podršku</a> za više informacija.`,"Your request will be sent to the owner of this site.":`Vaš zahtev će biti poslat vlasniku ovog sajta.`},wb={"{amount} characters left":`преостало је {amount} карактера`,"{amount} comments":`{amount} коментара`,"{amount} hrs ago":`пре {amount} сати`,"{amount} mins ago":`пре {amount} минута`,"{amount} more":`још {amount}`,"1 comment":`1 коментар`,"Add comment":`Додајте коментар`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Додајте контекст свом коментару, поделите своје име и експертизу како бисте подстакли здраву дискусију.`,"Add reply":`Додајте одговор`,"Add your expertise":`Додајте експертизу`,"Already a member?":`Већ сте члан?`,Anonymous:`Анонимно`,"Are you sure?":`Да ли сте сигурни?`,Back:``,"Become a member of {publication} to start commenting.":`Постаните члан {publication} да бисте почели са коментарисањем.`,"Become a paid member of {publication} to start commenting.":`Постаните плаћени члан {publication} да бисте почели са коментарисањем.`,Best:`Најбоље`,Cancel:`Откажите`,Comment:`Коментар`,"Commenting disabled":`Коментарисање онемогућено`,"Complete your profile":`Попуните свој профил`,Delete:`Обришите`,Deleted:`Обрисано`,"Deleted member":`Обрисан члан`,Deleting:`Брисање`,Discussion:`Дискусија`,Dislike:``,Edit:`Уредите`,"Edit this comment":`Уредите овај коментар`,edited:`уређено`,"Enter your name":`Унесите своје име`,Expertise:`Експертиза`,"Founder @ Acme Inc":`Оснивач @ Acme Inc`,"Full-time parent":`Родитељ пуним радним временом`,"Head of Marketing at Acme, Inc":`Шеф маркетинга у Acme, Inc`,"Hidden for members":`Сакривено за чланове`,"Hide comment":`Сакријте коментар`,"Jamie Larson":`Пера Перић`,"Join the discussion":`Придружите се дискусији`,"Just now":`Управо сада`,Like:``,"Load more ({amount})":`Учитајте још ({amount})`,"Local resident":`Локални становник`,"Member discussion":`Дискусија чланова`,Name:`Име`,Neurosurgeon:`Неурохирург`,Newest:`Најновије`,Oldest:`Најстарије`,"Once deleted, this comment can’t be recovered.":`Када се обрише, овај коментар не може бити враћен.`,"One hour ago":`Пре сат`,"One min ago":`Пре минут`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:`уклоњено`,"Replied to":`Одговорено кориснику`,Reply:`Одговорите`,"Reply to":`Одговорите кориснику`,"Reply to comment":`Одговорите на коментар`,Report:`Пријавите`,"Report comment":`Пријавите коментар`,"Report this comment?":`Пријавите овај коментар?`,Save:`Сачувајте`,"See full discussion":``,Sending:`Слање`,Sent:`Послато`,"Show {amount} more replies":`Прикажите још {amount} одговора`,"Show 1 more reply":`Прикажите још 1 одговор`,"Show comment":`Прикажите коментар`,"Sign in":`Пријавите се`,"Sign up now":`Региструјте се сада`,"Sort by":`Сортирајте по`,"Start the conversation":`Почните разговор`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Овај коментар је сакривен.`,"This comment has been removed.":`Овај коментар је уклоњен.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Надоградите сада`,"View in admin":`Погледајте у админ`,Yesterday:`Јуче`,"You can't post comments in this publication.":`Не можете објављивати коментаре у овој публикацији.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Не можете објављивати коментаре у овој публикацији. <a>Контактирајте подршку</a> за више информација.`,"Your request will be sent to the owner of this site.":`Ваш захтев ће бити послат власнику овог сајта.`},Tb={"{amount} characters left":`{amount} tecken kvar`,"{amount} comments":`{amount} kommentarer`,"{amount} hrs ago":`{amount} timmar sedan`,"{amount} mins ago":`{amount} minuter sedan`,"{amount} more":`{amount} fler`,"1 comment":`1 kommentar`,"Add comment":`Lägg till kommentar`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Lägg till kontext till din kommentar, som ditt namn, din expertis för att skapa ett bra forum.`,"Add reply":`Lägg till svar`,"Add your expertise":`Lägg till din expertis`,"Already a member?":`Redan medlem?`,Anonymous:`Anonym`,"Are you sure?":`Är du säker?`,Back:`Tillbaka`,"Become a member of {publication} to start commenting.":`Registrera dig på {publication} för att börja kommentera.`,"Become a paid member of {publication} to start commenting.":`Bli betalande medlem på {publication} för att börja kommentera.`,Best:`Mest populär`,Cancel:`Avbryt`,Comment:`Kommentar`,"Commenting disabled":`Kommentarer inaktiverade`,"Complete your profile":`Fyll i hela din profil`,Delete:`Ta bort`,Deleted:`Borttaget`,"Deleted member":`Borttagen medlem`,Deleting:`Tar bort`,Discussion:`Diskussion`,Dislike:`Ogilla`,Edit:`Ändra`,"Edit this comment":`Ändra den här kommentaren`,edited:`Ändrad`,"Enter your name":`Skriv ditt namn`,Expertise:`Expertis`,"Founder @ Acme Inc":`Grundare av Företaget AB`,"Full-time parent":`Hemmaförälder`,"Head of Marketing at Acme, Inc":`Marknadsföringschef på Företaget AB`,"Hidden for members":`Dolt för medlemmar`,"Hide comment":`Dölj kommentar`,"Jamie Larson":`Anders Andersson`,"Join the discussion":`Var med i diskussionen`,"Just now":`Nu precis`,Like:`Gilla`,"Load more ({amount})":`Ladda in fler ({amount})`,"Local resident":`Lokalboende`,"Member discussion":`Medlemsdiskussion`,Name:`Namn`,Neurosurgeon:`Neurokirurg`,Newest:`Nyast`,Oldest:`Äldst`,"Once deleted, this comment can’t be recovered.":`Kommentaren kan ej återskapas efter borttagning.`,"One hour ago":`En timme sedan`,"One min ago":`En minut sedan`,"Pin comment":`Nåla fast kommentar`,Pinned:`Fastnålad`,"Read more replies":`Läs fler svar`,"Remove dislike":`Ta bort ogilla`,"Remove like":`Ta bort gilla`,removed:`borttagen`,"Replied to":`Svarade`,Reply:`Svar`,"Reply to":`Svara`,"Reply to comment":`Svara på kommentar`,Report:`Anmäl`,"Report comment":`Anmäl kommentar`,"Report this comment?":`Anmäl den här kommentaren?`,Save:`Spara`,"See full discussion":`Se hela diskussionen`,Sending:`Skickar`,Sent:`Skickad`,"Show {amount} more replies":`Visa {amount} fler svar`,"Show 1 more reply":`Visa 1 kommentar till`,"Show comment":`Visa kommentar`,"Sign in":`Logga in`,"Sign up now":`Registrera dig nu`,"Sort by":`Sortera efter`,"Start the conversation":`Inled konversationen`,"The linked comment is no longer available.":`Den länkade kommentaren är borttagen.`,"This comment has been hidden.":`Denna kommentar har dolts.`,"This comment has been removed.":`Denna kommentar är borttagen.`,Unpin:`Avnåla`,"Unpin comment":`Avnåla kommentar`,"Upgrade now":`Uppgradera nu`,"View in admin":`Visa i admin`,Yesterday:`I går`,"You can't post comments in this publication.":`Du kan inte posta kommentarer här.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Du kan inte posta kommentarer här. <a>Kontakta supporten</a> för mer information.`,"Your request will be sent to the owner of this site.":`Din anmälan skickas till ansvarig för webbplatsen.`},Eb={"{amount} characters left":`{amount} herufi zimebaki`,"{amount} comments":`{amount} maoni`,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":`{amount} zaidi`,"1 comment":`maoni 1`,"Add comment":`Ongeza maoni`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Ongeza muktadha kwa maoni yako, shiriki jina lako na utaalamu ili kuendeleza mjadala wenye afya.`,"Add reply":`Ongeza jibu`,"Add your expertise":``,"Already a member?":`Tayari ni mwanachama?`,Anonymous:`Asiyetambulika`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Jiunge kama mwanachama wa {publication} ili kuanza kutoa maoni.`,"Become a paid member of {publication} to start commenting.":`Jiunge kama mwanachama anayelipa wa {publication} ili kuanza kutoa maoni.`,Best:``,Cancel:`Ghairi`,Comment:`Maoni`,"Commenting disabled":``,"Complete your profile":`Kamilisha wasifu wako`,Delete:`Futa`,Deleted:``,"Deleted member":`Mwanachama aliyefutwa`,Deleting:``,Discussion:`Majadiliano`,Dislike:``,Edit:`Hariri`,"Edit this comment":`Hariri maoni haya`,edited:``,"Enter your name":`Weka jina lako`,Expertise:`Utaalamu`,"Founder @ Acme Inc":`Mwanzilishi @ Acme Inc`,"Full-time parent":`Mzazi wa muda wote`,"Head of Marketing at Acme, Inc":`Mkuu wa Masoko katika Acme, Inc`,"Hidden for members":``,"Hide comment":`Ficha maoni`,"Jamie Larson":`Jamie Larson`,"Join the discussion":`Jiunge na mjadala`,"Just now":`Hivi sasa`,Like:``,"Load more ({amount})":``,"Local resident":`Mkazi wa eneo`,"Member discussion":`Mjadala wa wanachama`,Name:`Jina`,Neurosurgeon:`Daktari wa ubongo`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Saa moja iliyopita`,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,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`,"See full discussion":``,Sending:`Inatuma`,Sent:`Imetumwa`,"Show {amount} more replies":`Onyesha majibu {amount} zaidi`,"Show 1 more reply":`Onyesha jibu 1 zaidi`,"Show comment":`Onyesha maoni`,"Sign in":`Ingia`,"Sign up now":`Jisajili sasa`,"Sort by":``,"Start the conversation":`Anzisha mazungumzo`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Maoni haya yamefichwa.`,"This comment has been removed.":`Maoni haya yameondolewa.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Boresha sasa`,"View in admin":``,Yesterday:`Jana`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Ombi lako litatumwa kwa mmiliki wa tovuti hii.`},Db={"{amount} characters left":`{amount} எழுத்துக்கள் எஞ்சியுள்ளன`,"{amount} comments":`{amount} கருத்துக்கள்`,"{amount} hrs ago":`{amount} மணி நேரத்திற்கு முன்பு`,"{amount} mins ago":`{amount} நிமிடங்களுக்கு முன்பு`,"{amount} more":`{amount} மேலும்`,"1 comment":`1 கருத்து`,"Add comment":`கருத்தைச் சேர்க்கவும்`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`உங்கள் கருத்துக்கு சூழலைச் சேர்க்கவும், ஆரோக்கியமான விவாதத்தை வளர்க்க உங்கள் பெயரையும் நிபுணத்துவத்தையும் பகிர்ந்து கொள்ளுங்கள்.`,"Add reply":`பதில் சேர்க்கவும்`,"Add your expertise":``,"Already a member?":`ஏற்கனவே உறுப்பினரா?`,Anonymous:`அடையாளம் தெரியாத`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`கருத்துத் தெரிவிக்க {publication} இல் உறுப்பினராகுங்கள்.`,"Become a paid member of {publication} to start commenting.":`கருத்துத் தெரிவிக்க {publication} இல் கட்டண உறுப்பினராகுங்கள்.`,Best:``,Cancel:`ரத்து செய்`,Comment:`கருத்து`,"Commenting disabled":``,"Complete your profile":`உங்கள் சுயவிவரத்தை பூர்த்தி செய்யவும்`,Delete:`நீக்கவும்`,Deleted:``,"Deleted member":`நீக்கப்பட்ட உறுப்பினர்`,Deleting:``,Discussion:`கலந்துரையாடல்`,Dislike:``,Edit:`திருத்தவும்`,"Edit this comment":`இந்தக் கருத்தைத் திருத்தவும்`,edited:`திருத்தப்பட்டது`,"Enter your name":`உங்கள் பெயரை உள்ளிடுக`,Expertise:`நிபுணத்துவம்`,"Founder @ Acme Inc":`நிறுவனர் @ Acme Inc`,"Full-time parent":`முழுநேர பெற்றோர்`,"Head of Marketing at Acme, Inc":`Acme Inc நிறுவனத்தின் சந்தைப்படுத்தல் தலைவர்`,"Hidden for members":``,"Hide comment":`கருத்தை மறை`,"Jamie Larson":`ஜேமி லார்சன்`,"Join the discussion":`கலந்துரையாடலில் சேரவும்`,"Just now":`சற்றுமுன்னர்தான்`,Like:``,"Load more ({amount})":``,"Local resident":`உள்ளூர்வாசி`,"Member discussion":`உறுப்பினர் கருத்து`,Name:`பெயர்`,Neurosurgeon:`நரம்பியல் அறுவை சிகிச்சை நிபுணர்`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`ஒரு மணி முன்பு`,"One min ago":`ஒரு நிமிடம் முன்பு`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:``,"Replied to":``,Reply:`பதிலளிக்கவும்`,"Reply to":``,"Reply to comment":`கருத்துக்கு பதிலளிக்கவும்`,Report:`புகாரளி`,"Report comment":`கருத்தைப் புகாரளி`,"Report this comment?":`இந்தக் கருத்தைப் புகாரளிக்கவா?`,Save:`சேமிக்க`,"See full discussion":``,Sending:`அனுப்புகிறது`,Sent:`அனுப்பப்பட்டது`,"Show {amount} more replies":`முந்தைய {amount} மேலும் பதில்கள்க் காட்டு`,"Show 1 more reply":`மேலும் 1 பதிலைக் காட்டு`,"Show comment":`கருத்தைக் காட்டு`,"Sign in":`உள்நுழைக`,"Sign up now":`இப்பொழுதே பதிவு செய்யுங்கள்`,"Sort by":``,"Start the conversation":`உரையாடலைத் தொடங்குங்கள்`,"The linked comment is no longer available.":``,"This comment has been hidden.":`இந்தக் கருத்து மறைக்கப்பட்டது.`,"This comment has been removed.":`இந்தக் கருத்து நீக்கப்பட்டது.`,Unpin:``,"Unpin comment":``,"Upgrade now":`இப்போதே மேம்படுத்தவும்`,"View in admin":``,Yesterday:`நேற்று`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`உங்கள் கோரிக்கை இந்த தளத்தின் உரிமையாளருக்கு அனுப்பப்படும்.`},Ob={"{amount} characters left":`คงเหลือ {amount} ตัวอักษร`,"{amount} comments":`{amount} ความคิดเห็น`,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":`อีก {amount}`,"1 comment":`1 ความคิดเห็น`,"Add comment":`แสดงความคิดเห็น`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`เพิ่มข้อมูลเสริมในความคิดเห็นของคุณ แชร์ชื่อและความเชี่ยวชาญเพื่อสนับสนุนการพูดคุยที่ดี`,"Add reply":`ตอบกลับ`,"Add your expertise":``,"Already a member?":`เป็นสมาชิกอยู่แล้ว?`,Anonymous:`ไม่ระบุชื่อ`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`เป็นสมาชิกของ {publication} เพื่อเริ่มแสดงความคิดเห็น`,"Become a paid member of {publication} to start commenting.":`เป็นสมาชิกแบบชำระเงินของ {publication} เพื่อเริ่มแสดงความคิดเห็น`,Best:``,Cancel:`ยกเลิก`,Comment:`ความคิดเห็น`,"Commenting disabled":``,"Complete your profile":`กรอกโปรไฟล์ของคุณให้สมบูรณ์`,Delete:`ลบ`,Deleted:``,"Deleted member":`ผู้ใช้ที่ถูกลบ`,Deleting:``,Discussion:`การสนทนา`,Dislike:``,Edit:`แก้ไข`,"Edit this comment":`แก้ไขความคิดเห็นนี้`,edited:``,"Enter your name":`ระบุชื่อของคุณ`,Expertise:`ความเชี่ยวชาญ`,"Founder @ Acme Inc":`ผู้ก่อตั้ง @ Acme Inc`,"Full-time parent":`ผู้ปกครองเต็มเวลา`,"Head of Marketing at Acme, Inc":`หัวหน้าฝ่ายการตลาด ณ Acme, Inc`,"Hidden for members":``,"Hide comment":`ซ่อนข้อความ`,"Jamie Larson":`กนกพัฒน์ สัณห์ฤทัย`,"Join the discussion":`เข้าร่วมการสนทนา`,"Just now":`ตอนนี้`,Like:``,"Load more ({amount})":``,"Local resident":`ผู้อยู่อาศัยในท้องถิ่น`,"Member discussion":`การสนทนาของสมาชิก`,Name:`ชื่อ`,Neurosurgeon:`ศัลยแพทย์ระบบประสาท`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`1 ชั่วโมงที่แล้ว`,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:``,"Replied to":``,Reply:`ตอบกลับ`,"Reply to":``,"Reply to comment":`ตอบกลับความคิดเห็น`,Report:`รายงาน`,"Report comment":`รายงานความคิดเห็น`,"Report this comment?":`รายงานความคิดเห็นนี้?`,Save:`บันทึก`,"See full discussion":``,Sending:`กำลังส่ง`,Sent:`ส่งแล้ว`,"Show {amount} more replies":`แสดง {amount} การตอบกลับเพิ่มเติม`,"Show 1 more reply":`แสดงอีก 1 การตอบกลับ`,"Show comment":`ดูความคิดเห็น`,"Sign in":`ลงชื่อเข้าใช้`,"Sign up now":`สมัครใช้งานตอนนี้เลย`,"Sort by":``,"Start the conversation":`เริ่มการสนทนา`,"The linked comment is no longer available.":``,"This comment has been hidden.":`ความคิดเห็นนี้ถูกซ่อน`,"This comment has been removed.":`ความคิดเห็นนี้ถูกลบ`,Unpin:``,"Unpin comment":``,"Upgrade now":`อัพเกรดตอนนี้เลย`,"View in admin":``,Yesterday:`เมื่อวาน`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`คำขอของคุณจะถูกส่งไปยังผู้ดูแลเว็บไซต์`},kb={"{amount} characters left":`{amount} karakter kaldı`,"{amount} comments":`{amount} yorum`,"{amount} hrs ago":`{amount} saat önce`,"{amount} mins ago":`{amount} dakika önce`,"{amount} more":`Daha fazla {amount}`,"1 comment":`1 yorum`,"Add comment":`Yorum ekle`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Yorumunuza bağlam ekleyin, adınızı ve uzmanlık alanınızı paylaşarak sağlıklı bir tartışmayı teşvik edin.`,"Add reply":`Yanıt ekle`,"Add your expertise":`Uzmanlığınızı ekleyin`,"Already a member?":`Zaten üye misiniz?`,Anonymous:`Anonim`,"Are you sure?":`Emin misin?`,Back:`Geri`,"Become a member of {publication} to start commenting.":`Yorum yapmaya başlamak için {publication} sitesinde hesap oluşturun.`,"Become a paid member of {publication} to start commenting.":`Yorum yapmaya başlamak için {publication} sitesinde ücretli hesap oluşturun.`,Best:`En iyi`,Cancel:`İptal et`,Comment:`Yorum ekle`,"Commenting disabled":`Yorumlar kapalı`,"Complete your profile":`Profilinizi tamamlayın`,Delete:`Sil`,Deleted:`Silindi`,"Deleted member":`Silinen üye`,Deleting:`Siliniyor`,Discussion:`Yorumlar`,Dislike:``,Edit:`Düzenle`,"Edit this comment":`Bu yorumu düzenle`,edited:`düzenlendi`,"Enter your name":`Adınızı girin`,Expertise:`Uzmanlık`,"Founder @ Acme Inc":`Kurucu @ Firma Ünvan`,"Full-time parent":`Tam zamanlı ebeveyn`,"Head of Marketing at Acme, Inc":`Firma, Ünvan'da Pazarlama Müdürü`,"Hidden for members":`Üyeler için gizli`,"Hide comment":`Yorumu gizle`,"Jamie Larson":`Ahmet Yılmaz`,"Join the discussion":`Tartışmaya katıl`,"Just now":`Şu anda`,Like:``,"Load more ({amount})":`Daha fazla yükle ({amount})`,"Local resident":`Yerel sakini`,"Member discussion":`Üye tartışması`,Name:`Ad`,Neurosurgeon:`Beyin cerrahı`,Newest:`En yeni`,Oldest:`En eski`,"Once deleted, this comment can’t be recovered.":`Bu yorum silindikten sonra kurtarılamaz.`,"One hour ago":`Bir saat önce`,"One min ago":`Bir dakika önce`,"Pin comment":`Yorumu sabitle`,Pinned:`Sabitlendi`,"Read more replies":`Daha fazla cevap oku`,"Remove dislike":``,"Remove like":``,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`,"See full discussion":`Bütün tartışmayı gör`,Sending:`Gönderiliyor`,Sent:`Gönderildi`,"Show {amount} more replies":`{amount} daha fazla yanıt göster`,"Show 1 more reply":`1 cevap daha göster`,"Show comment":`Yorumu göster`,"Sign in":`Giriş yap`,"Sign up now":`Şimdi kayıt ol`,"Sort by":`Sırala`,"Start the conversation":`Bu konu hakkında düşüncelerini paylaş`,"The linked comment is no longer available.":`Bağlantılı yorum artık yok.`,"This comment has been hidden.":`Bu yorum gizlendi.`,"This comment has been removed.":`Bu yorum kaldırıldı.`,Unpin:`Sabitlemeyi kaldır`,"Unpin comment":`Yorumun sabitlemesini kaldır`,"Upgrade now":`Şimdi yükselt`,"View in admin":`Yönetici olarak gör`,Yesterday:`Dün`,"You can't post comments in this publication.":`Bu yayına yorum gönderemezsiniz.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Bu yayına yorum gönderemezsiniz. Daha fazla bilgi için <a>desteğe başvurun</a>.`,"Your request will be sent to the owner of this site.":`Talebiniz bu sitenin sahibine gönderilecektir.`},Ab={"{amount} characters left":`{amount} символів залишилось`,"{amount} comments":`{amount} коментарів`,"{amount} hrs ago":`{amount} годин тому`,"{amount} mins ago":`{amount} хвилин тому`,"{amount} more":`ще {amount}`,"1 comment":`1 коментар`,"Add comment":`Додати коментар`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Додайте контекст до свого коментаря, поділіться своїм іменем і досвідом, щоб сприяти здоровій дискусії.`,"Add reply":`Додати відповідь`,"Add your expertise":``,"Already a member?":`Ви є учасником?`,Anonymous:`Анонім`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`Станьте учасником {publication} щоб почати коментувати.`,"Become a paid member of {publication} to start commenting.":`Станьте платним учасником {publication} щоб почати коментувати.`,Best:``,Cancel:`Відмінити`,Comment:`Коментувати`,"Commenting disabled":``,"Complete your profile":`Заповніть свій профіль`,Delete:`Видалити`,Deleted:``,"Deleted member":`Видалений учасник`,Deleting:``,Discussion:`Обговорення`,Dislike:``,Edit:`Редагувати`,"Edit this comment":`Редагувати цей коментар`,edited:`Відредагований`,"Enter your name":`Введіть своє імʼя`,Expertise:`Експертність`,"Founder @ Acme Inc":`Засновник @ Acme Inc`,"Full-time parent":`Виховую дітей`,"Head of Marketing at Acme, Inc":`Голова продажів в Acme, Inc`,"Hidden for members":``,"Hide comment":`Сховати коментар`,"Jamie Larson":`Ваше імʼя`,"Join the discussion":`Долучитися до обговорення`,"Just now":`Прямо зараз`,Like:``,"Load more ({amount})":``,"Local resident":`Місцевий експерт`,"Member discussion":`Обговорення учасників`,Name:`Імʼя`,Neurosurgeon:`Нейрохірург`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`Одну годину тому`,"One min ago":`Одну хвилину тому`,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:``,"Replied to":``,Reply:`Відповісти`,"Reply to":``,"Reply to comment":`Відповісти на коментар`,Report:`Поскаржитися`,"Report comment":`Поскаржитися на коментар`,"Report this comment?":`Поскаржитися на цей коментар?`,Save:`Зберегти`,"See full discussion":``,Sending:`Відправка`,Sent:`Відправлено`,"Show {amount} more replies":`Показати ще {amount} відповідей`,"Show 1 more reply":`Показати ще одну відповідь`,"Show comment":`Показати коментар`,"Sign in":`Увійти`,"Sign up now":`Зареєструватись зараз`,"Sort by":``,"Start the conversation":`Почніть розмову`,"The linked comment is no longer available.":``,"This comment has been hidden.":`Цей коментар було приховано.`,"This comment has been removed.":`Цей коментар було видалено.`,Unpin:``,"Unpin comment":``,"Upgrade now":`Оновити зараз`,"View in admin":``,Yesterday:`Вчора`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`Ваш запит буде надіслано власнику цього сайту.`},jb={"{amount} characters left":`{amount} حروف باقی ہیں`,"{amount} comments":`{amount} تبادلے`,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":``,"1 comment":`1 تبادلہ`,"Add comment":`تبادلہ شامل کریں`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`اپنے تبادلے میں سیاق و سباق شامل کریں، اچھی گفتگو کو بڑھانے کے لئے اپنا نام اور ماہریت شیئر کریں۔`,"Add reply":`جواب شامل کریں`,"Add your expertise":``,"Already a member?":`پہلے ہی رکن ہیں؟`,Anonymous:`ناشناس`,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":`تبادلہ شروع کرنے کے لئے {publication} کا رکن بنیں۔`,"Become a paid member of {publication} to start commenting.":`تبادلہ شروع کرنے کے لئے {publication} کا ادائیگی رکن بنیں۔`,Best:``,Cancel:`منسوخ کریں`,Comment:`تبادلہ`,"Commenting disabled":``,"Complete your profile":`اپنا پروفائل مکمل کریں`,Delete:`حذف کریں`,Deleted:``,"Deleted member":`حذف شدہ رکن`,Deleting:``,Discussion:`تبادلہ`,Dislike:``,Edit:`ترتیب دیں`,"Edit this comment":`اس تبادلے کو ترتیب دیں`,edited:``,"Enter your name":`اپنا نام درج کریں`,Expertise:`اہلیت`,"Founder @ Acme Inc":`ناظم @ Acme Inc`,"Full-time parent":`پورے وقت کا والد یا والدہ`,"Head of Marketing at Acme, Inc":`Acme، Inc کے مارکیٹنگ کا سربراہ`,"Hidden for members":``,"Hide comment":`تبادلہ چھپائیں`,"Jamie Larson":`جیمی لارسن`,"Join the discussion":`تبادلے میں شامل ہوں`,"Just now":`ابھی`,Like:``,"Load more ({amount})":``,"Local resident":`مقامی رہائشی`,"Member discussion":`رکن کا تبادلہ`,Name:`نام`,Neurosurgeon:`نیوروسرجن`,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":`ایک گھنٹہ پہلے`,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:``,"Replied to":``,Reply:`جواب`,"Reply to":``,"Reply to comment":`تبادلے کا جواب دیں`,Report:`رپورٹ`,"Report comment":`تبادلے کی رپورٹ`,"Report this comment?":`کیا آپ اس تبادلے کو رپورٹ کرنا چاہتے ہیں؟`,Save:`محفوظ کریں`,"See full discussion":``,Sending:`بھیج رہا ہے`,Sent:`بھیجا گیا`,"Show {amount} more replies":`{amount} مزید جوابات دکھائیں`,"Show 1 more reply":`1 مزید جواب دکھائیں`,"Show comment":`تبادلہ دکھائیں`,"Sign in":`سائن ان کریں`,"Sign up now":`ابھی رجسٹر ہوں`,"Sort by":``,"Start the conversation":`بات چیت شروع کریں`,"The linked comment is no longer available.":``,"This comment has been hidden.":`یہ تبادلہ چھپا گیا ہے۔`,"This comment has been removed.":`یہ تبادلہ ہٹا دیا گیا ہے۔`,Unpin:``,"Unpin comment":``,"Upgrade now":`اب اپ گریڈ کریں`,"View in admin":``,Yesterday:`کل`,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":`آپ کا درخواست اس سائٹ کے مالک کو بھیجا جائے گا۔`},Mb={"{amount} characters left":``,"{amount} comments":``,"{amount} hrs ago":``,"{amount} mins ago":``,"{amount} more":``,"1 comment":``,"Add comment":``,"Add context to your comment, share your name and expertise to foster a healthy discussion.":``,"Add reply":``,"Add your expertise":``,"Already a member?":``,Anonymous:``,"Are you sure?":``,Back:``,"Become a member of {publication} to start commenting.":``,"Become a paid member of {publication} to start commenting.":``,Best:``,Cancel:``,Comment:``,"Commenting disabled":``,"Complete your profile":``,Delete:``,Deleted:``,"Deleted member":``,Deleting:``,Discussion:``,Dislike:``,Edit:``,"Edit this comment":``,edited:``,"Enter your name":``,Expertise:``,"Founder @ Acme Inc":``,"Full-time parent":``,"Head of Marketing at Acme, Inc":``,"Hidden for members":``,"Hide comment":``,"Jamie Larson":``,"Join the discussion":``,"Just now":``,Like:``,"Load more ({amount})":``,"Local resident":``,"Member discussion":``,Name:``,Neurosurgeon:``,Newest:``,Oldest:``,"Once deleted, this comment can’t be recovered.":``,"One hour ago":``,"One min ago":``,"Pin comment":``,Pinned:``,"Read more replies":``,"Remove dislike":``,"Remove like":``,removed:``,"Replied to":``,Reply:``,"Reply to":``,"Reply to comment":``,Report:``,"Report comment":``,"Report this comment?":``,Save:``,"See full discussion":``,Sending:``,Sent:``,"Show {amount} more replies":``,"Show 1 more reply":``,"Show comment":``,"Sign in":``,"Sign up now":``,"Sort by":``,"Start the conversation":``,"The linked comment is no longer available.":``,"This comment has been hidden.":``,"This comment has been removed.":``,Unpin:``,"Unpin comment":``,"Upgrade now":``,"View in admin":``,Yesterday:``,"You can't post comments in this publication.":``,"You can't post comments in this publication. <a>Contact support</a> for more information.":``,"Your request will be sent to the owner of this site.":``},Nb={"{amount} characters left":`{amount} ký tự còn lại`,"{amount} comments":`{amount} bình luận`,"{amount} hrs ago":`{amount} giờ trước`,"{amount} mins ago":`{amount} phút trước`,"{amount} more":`{amount} nữa`,"1 comment":`1 bình luận`,"Add comment":`Thêm bình luận`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`Thêm ngữ cảnh, tên và chuyên môn của bạn để thúc đẩy cuộc thảo luận lành mạnh.`,"Add reply":`Trả lời`,"Add your expertise":`Thêm chuyên môn của bạn`,"Already a member?":`Đã là thành viên?`,Anonymous:`Ẩn danh`,"Are you sure?":`Bạn có chắc không?`,Back:`Quay lại`,"Become a member of {publication} to start commenting.":`Trở thành thành viên của {publication} để có thể bình luận.`,"Become a paid member of {publication} to start commenting.":`Trở thành thành viên trả phí của {publication} để có thể bình luận.`,Best:`Hay nhất`,Cancel:`Hủy`,Comment:`Bình luận`,"Commenting disabled":`Bình luận đã bị tắt`,"Complete your profile":`Hoàn tất hồ sơ của bạn`,Delete:`Xóa`,Deleted:`Đã xóa`,"Deleted member":`Thành viên đã xóa`,Deleting:`Đang xóa`,Discussion:`Thảo luận`,Dislike:`Không thích`,Edit:`Sửa`,"Edit this comment":`Sửa bình luận này`,edited:`đã sửa`,"Enter your name":`Nhập tên của bạn`,Expertise:`Chuyên môn`,"Founder @ Acme Inc":`Nhà sáng lập @ Acme Inc`,"Full-time parent":`Phụ huynh toàn thời gian`,"Head of Marketing at Acme, Inc":`Trưởng phòng Marketing tại Acme, Inc`,"Hidden for members":`Ẩn với thành viên`,"Hide comment":`Ẩn bình luận`,"Jamie Larson":`Nguyễn Minh Anh`,"Join the discussion":`Tham gia thảo luận`,"Just now":`Vừa xong`,Like:`Thích`,"Load more ({amount})":`Hiện thêm ({amount})`,"Local resident":`Cư dân địa phương`,"Member discussion":`Thảo luận của thành viên`,Name:`Tên`,Neurosurgeon:`Bác sĩ phẫu thuật thần kinh`,Newest:`Mới nhất`,Oldest:`Cũ nhất`,"Once deleted, this comment can’t be recovered.":`Một khi đã xóa, bình luận này không thể khôi phục.`,"One hour ago":`Một giờ trước`,"One min ago":`Một phút trước`,"Pin comment":`Ghim bình luận`,Pinned:`Đã ghim`,"Read more replies":`Đọc thêm trả lời`,"Remove dislike":`Bỏ không thích`,"Remove like":`Bỏ thích`,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`,"See full discussion":`Xem tất cả thảo luận`,Sending:`Đang gửi`,Sent:`Đã gửi`,"Show {amount} more replies":`Xem thêm {amount} trả lời khác`,"Show 1 more reply":`Xem thêm 1 trả lời`,"Show comment":`Xem bình luận`,"Sign in":`Đăng nhập`,"Sign up now":`Đăng ký ngay`,"Sort by":`Xếp theo`,"Start the conversation":`Bắt đầu cuộc trò chuyện`,"The linked comment is no longer available.":`Liên kết bình luận này không còn nữa.`,"This comment has been hidden.":`Bình luận này đã bị ẩn.`,"This comment has been removed.":`Bình luận này đã bị xóa.`,Unpin:`Bỏ ghim`,"Unpin comment":`Bỏ ghim bình luận`,"Upgrade now":`Nâng cấp`,"View in admin":`Xem trong dashboard`,Yesterday:`Hôm qua`,"You can't post comments in this publication.":`Bạn không thể bình luận trên trang web này.`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`Bạn không thể bình luận trên trang web này. <a>Liên hệ hỗ trợ</a> để biết thêm chi tiết.`,"Your request will be sent to the owner of this site.":`Yêu cầu của bạn sẽ được gửi đến chủ sở hữu trang web này.`},Pb={"{amount} characters left":`还剩{amount}字`,"{amount} comments":`{amount}条评论`,"{amount} hrs ago":`{amount}小时前`,"{amount} mins ago":`{amount}分钟前`,"{amount} more":`还剩{amount}条评论`,"1 comment":`一条评论`,"Add comment":`添加评论`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`为评论补充更多的上下文信息、例如您的姓名与专业背景有助于营造健康的讨论氛围。`,"Add reply":`回复`,"Add your expertise":`添加您的专业背景`,"Already a member?":`已经是会员?`,Anonymous:`匿名`,"Are you sure?":`确认?`,Back:`返回`,"Become a member of {publication} to start commenting.":`成为{publication}的会员以开始评论。`,"Become a paid member of {publication} to start commenting.":`成为{publication}的付费会员以开始评论。`,Best:`最多赞`,Cancel:`取消`,Comment:`评论`,"Commenting disabled":`评论功能已禁用`,"Complete your profile":`完善您的个人资料`,Delete:`删除`,Deleted:`已删除`,"Deleted member":`删除会员`,Deleting:`删除中`,Discussion:`讨论`,Dislike:`点踩`,Edit:`编辑`,"Edit this comment":`编辑此条评论`,edited:`已编辑`,"Enter your name":`输入您的名字`,Expertise:`专业背景`,"Founder @ Acme Inc":`Acme Inc的创建者`,"Full-time parent":`全职父母`,"Head of Marketing at Acme, Inc":`Acme, Inc市场部负责人`,"Hidden for members":`对会员隐藏`,"Hide comment":`隐藏评论`,"Jamie Larson":`阿宇`,"Join the discussion":`加入讨论`,"Just now":`刚刚`,Like:`点赞`,"Load more ({amount})":`加载更多({amount})条`,"Local resident":`本地居民`,"Member discussion":`会员讨论`,Name:`名字`,Neurosurgeon:`神经外科医生`,Newest:`最新`,Oldest:`最早`,"Once deleted, this comment can’t be recovered.":`此评论一经删除后将无法复原。`,"One hour ago":`一小时前`,"One min ago":`一分钟前`,"Pin comment":`置顶评论`,Pinned:`已置顶`,"Read more replies":`阅读更多回复`,"Remove dislike":`取消点踩`,"Remove like":`取消点赞`,removed:`已移除`,"Replied to":`已回复`,Reply:`回复`,"Reply to":`回复`,"Reply to comment":`回复评论`,Report:`举报`,"Report comment":`举报评论`,"Report this comment?":`举报此评论?`,Save:`保存`,"See full discussion":`查看完整讨论`,Sending:`正在发送`,Sent:`已发送`,"Show {amount} more replies":`显示更多{amount}条评论`,"Show 1 more reply":`显示下一条评论`,"Show comment":`显示评论`,"Sign in":`登录`,"Sign up now":`立刻注册`,"Sort by":`排序方式`,"Start the conversation":`开始对话`,"The linked comment is no longer available.":`链接的评论已不存在。`,"This comment has been hidden.":`该条评论已被隐藏。`,"This comment has been removed.":`该条评论已被移除。`,Unpin:`取消置顶`,"Unpin comment":`取消置顶评论`,"Upgrade now":`立刻升级`,"View in admin":`在后台查看`,Yesterday:`昨天`,"You can't post comments in this publication.":`您无法在此刊物发表评论。`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`您无法在此刊物发表评论。如需更多信息,请<a>联系客服</a>。`,"Your request will be sent to the owner of this site.":`您的请求将被发送给站点所有者。`},Fb={"{amount} characters left":`還剩{amount}個字`,"{amount} comments":`{amount}則留言`,"{amount} hrs ago":`{amount}小時前`,"{amount} mins ago":`{amount}分鐘前`,"{amount} more":`還剩{amount}則留言`,"1 comment":`一則留言`,"Add comment":`留言`,"Add context to your comment, share your name and expertise to foster a healthy discussion.":`為您的留言補充背景,說明您的稱呼與專業背景都有助於健康的討論氛圍。`,"Add reply":`回覆`,"Add your expertise":`新增您的專業背景`,"Already a member?":`已經是會員?`,Anonymous:`匿名`,"Are you sure?":`您確定嗎?`,Back:`返回`,"Become a member of {publication} to start commenting.":`成為{publication}的會員以開始留言。`,"Become a paid member of {publication} to start commenting.":`成為{publication}的付費會員以開始留言。`,Best:`最多讚`,Cancel:`取消`,Comment:`留言`,"Commenting disabled":`未開放留言`,"Complete your profile":`完成您的註冊資訊`,Delete:`刪除`,Deleted:`已刪除`,"Deleted member":`刪除會員`,Deleting:`刪除中`,Discussion:`討論`,Dislike:`點踩`,Edit:`編輯`,"Edit this comment":`編輯此則留言`,edited:`已編輯`,"Enter your name":`輸入您的稱呼`,Expertise:`專業背景`,"Founder @ Acme Inc":`Acme Inc的創辦人`,"Full-time parent":`全職父母`,"Head of Marketing at Acme, Inc":`Acme, Inc市場部負責人`,"Hidden for members":`對會員隱藏`,"Hide comment":`隱藏留言`,"Jamie Larson":`阿宇`,"Join the discussion":`加入討論`,"Just now":`剛剛`,Like:`點讚`,"Load more ({amount})":`載入更多({amount})`,"Local resident":`本地居民`,"Member discussion":`會員討論`,Name:`稱呼`,Neurosurgeon:`神經外科醫生`,Newest:`最新`,Oldest:`最早`,"Once deleted, this comment can’t be recovered.":`此留言一經刪除後將無法復原。`,"One hour ago":`一小時前`,"One min ago":`一分鐘前`,"Pin comment":`置頂留言`,Pinned:`已置頂`,"Read more replies":`閱讀更多回覆`,"Remove dislike":`取消點踩`,"Remove like":`取消點讚`,removed:`已移除`,"Replied to":`已回覆`,Reply:`回覆`,"Reply to":`回覆`,"Reply to comment":`回覆留言`,Report:`檢舉`,"Report comment":`檢舉留言`,"Report this comment?":`檢舉此留言?`,Save:`儲存`,"See full discussion":`查看完整討論`,Sending:`正在發送`,Sent:`已發送`,"Show {amount} more replies":`顯示後續 {amount} 則留言`,"Show 1 more reply":`顯示下一則留言`,"Show comment":`顯示留言`,"Sign in":`登入`,"Sign up now":`立即註冊`,"Sort by":`排序方式`,"Start the conversation":`開始對話`,"The linked comment is no longer available.":`連結的留言已不存在。`,"This comment has been hidden.":`該則留言已被隱藏。`,"This comment has been removed.":`該則留言已被移除。`,Unpin:`取消置頂`,"Unpin comment":`取消置頂留言`,"Upgrade now":`立即升級`,"View in admin":`從管理後台檢視`,Yesterday:`昨天`,"You can't post comments in this publication.":`您無法在此刊物留言。`,"You can't post comments in this publication. <a>Contact support</a> for more information.":`您無法在此刊物留言。<a>聯繫客服</a> 以取得更多資訊。`,"Your request will be sent to the owner of this site.":`您的請求將被發送給網站所有者。`},Ib=Ey({"../../locales/af/comments.json":Oy,"../../locales/ar/comments.json":ky,"../../locales/bg/comments.json":Ay,"../../locales/bn/comments.json":jy,"../../locales/bs/comments.json":My,"../../locales/ca/comments.json":Ny,"../../locales/cs/comments.json":Py,"../../locales/da/comments.json":Fy,"../../locales/de/comments.json":Iy,"../../locales/de-CH/comments.json":Ly,"../../locales/el/comments.json":Ry,"../../locales/en/comments.json":zy,"../../locales/eo/comments.json":By,"../../locales/es/comments.json":Vy,"../../locales/et/comments.json":Hy,"../../locales/eu/comments.json":Uy,"../../locales/fa/comments.json":Wy,"../../locales/fi/comments.json":Gy,"../../locales/fr/comments.json":Ky,"../../locales/gd/comments.json":qy,"../../locales/he/comments.json":Jy,"../../locales/hi/comments.json":Yy,"../../locales/hr/comments.json":Xy,"../../locales/hu/comments.json":Zy,"../../locales/id/comments.json":Qy,"../../locales/is/comments.json":$y,"../../locales/it/comments.json":eb,"../../locales/ja/comments.json":tb,"../../locales/ko/comments.json":nb,"../../locales/kz/comments.json":rb,"../../locales/lt/comments.json":ib,"../../locales/lv/comments.json":ab,"../../locales/mk/comments.json":ob,"../../locales/mn/comments.json":sb,"../../locales/ms/comments.json":cb,"../../locales/nb/comments.json":lb,"../../locales/ne/comments.json":ub,"../../locales/nl/comments.json":db,"../../locales/nn/comments.json":fb,"../../locales/pa/comments.json":pb,"../../locales/pl/comments.json":mb,"../../locales/pt/comments.json":hb,"../../locales/pt-BR/comments.json":gb,"../../locales/ro/comments.json":_b,"../../locales/ru/comments.json":vb,"../../locales/si/comments.json":yb,"../../locales/sk/comments.json":bb,"../../locales/sl/comments.json":xb,"../../locales/sq/comments.json":Sb,"../../locales/sr/comments.json":Cb,"../../locales/sr-Cyrl/comments.json":wb,"../../locales/sv/comments.json":Tb,"../../locales/sw/comments.json":Eb,"../../locales/ta/comments.json":Db,"../../locales/th/comments.json":Ob,"../../locales/tr/comments.json":kb,"../../locales/uk/comments.json":Ab,"../../locales/ur/comments.json":jb,"../../locales/uz/comments.json":Mb,"../../locales/vi/comments.json":Nb,"../../locales/zh/comments.json":Pb,"../../locales/zh-Hant/comments.json":Fb},`comments`),Lb=Ib;let{LOCALE_DATA:Rb,SUPPORTED_LOCALES:zb,generateResources:Bb}=Ib;function Vb({siteUrl:e=window.location.origin,apiUrl:t,apiKey:n}){function r({type:t,resource:n,params:r=``}){return t===`members`?`${e.replace(/\/$/,``)}/members/api/${n}/${r}`:``}function i({resource:e,params:r={}}){if(t&&n){let i=new URLSearchParams({...r,key:n});return`${t.replace(/\/$/,``)}/${e}/?${i.toString()}`}return``}function a({url:e,method:t=`GET`,headers:n={},credentials:r=void 0,body:i=void 0}){let a={method:t,headers:n,credentials:r,body:i};return fetch(e,a)}let o=null,s={site:{settings(){return a({url:i({resource:`settings`}),method:`GET`,headers:{"Content-Type":`application/json`}}).then(function(e){if(e.ok)return e.json();throw Error(`Failed to fetch site data`)})}},member:{identity(){return a({url:r({type:`members`,resource:`session`}),credentials:`same-origin`}).then(function(e){return!e.ok||e.status===204?null:e.text()})},sessionData(){return a({url:r({type:`members`,resource:`member`}),credentials:`same-origin`}).then(function(e){return!e.ok||e.status===204?null:e.json()})},update({name:e,expertise:t}){let n=r({type:`members`,resource:`member`}),i={name:e,expertise:t};return a({url:n,method:`PUT`,headers:{"Content-Type":`application/json`},credentials:`same-origin`,body:JSON.stringify(i)}).then(function(e){return e.ok?e.json():null})}},comments:{async count({postId:e}){let t=await(await a({url:r({type:`members`,resource:`comments/counts`,params:e?`?ids=${e}`:``}),method:`GET`,headers:{"Content-Type":`application/json`},credentials:`same-origin`})).json();return e?t[e]:t},browse({page:e,postId:t,order:n}){let i=null;o&&!n&&(i=`created_at:<=${o}`);let s=new URLSearchParams;s.set(`limit`,`20`),i&&s.set(`filter`,i),s.set(`page`,e.toString()),n&&s.set(`order`,n);let c=a({url:r({type:`members`,resource:`comments/post/${t}`,params:`?${s.toString()}`}),method:`GET`,headers:{"Content-Type":`application/json`},credentials:`same-origin`}).then(function(e){if(e.ok)return e.json();throw Error(`Failed to fetch comments`)});return o||c.then(e=>{let t=e.comments[0];t&&(o=t.created_at)}),c},async replies({commentId:e,afterReplyId:t,limit:n,page:i}){if(n===`all`){let t=[],n=1,r=!0;for(;r;){let i=await this.replies({commentId:e,limit:100,page:n});t.push(...i.comments),r=!!i.meta?.pagination?.next&&i.comments.length>0,n+=1}return{comments:t,meta:{pagination:{next:!1}}}}let o=new URLSearchParams;o.set(`limit`,(n??5).toString()),i&&o.set(`page`,i.toString()),t&&o.set(`filter`,`id:>'${t}'`);let s=await a({url:r({type:`members`,resource:`comments/${e}/replies`,params:`?${o.toString()}`}),method:`GET`,headers:{"Content-Type":`application/json`},credentials:`same-origin`});if(s.ok)return s.json();throw Error(`Failed to fetch replies`)},add({comment:e}){let t={comments:[e]};return a({url:r({type:`members`,resource:`comments`}),method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)}).then(function(e){if(e.ok)return e.json();throw Error(`Failed to add comment`)})},edit({comment:e}){let t={comments:[e]};return a({url:r({type:`members`,resource:`comments/${e.id}`}),method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)}).then(function(e){if(e.ok)return e.json();throw Error(`Failed to edit comment`)})},read(e){return a({url:r({type:`members`,resource:`comments/${e}`}),method:`GET`,credentials:`same-origin`}).then(function(e){if(e.ok)return e.json();throw Error(`Failed to read comment`)})},like({comment:e}){return a({url:r({type:`members`,resource:`comments/${e.id}/like`}),method:`POST`,headers:{"Content-Type":`application/json`}}).then(function(e){if(e.ok)return`Success`;throw Error(`Failed to like comment`)})},unlike({comment:e}){let t={comments:[e]};return a({url:r({type:`members`,resource:`comments/${e.id}/like`}),method:`DELETE`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)}).then(function(e){if(e.ok)return`Success`;throw Error(`Failed to unlike comment`)})},dislike({comment:e}){return a({url:r({type:`members`,resource:`comments/${e.id}/dislike`}),method:`POST`,headers:{"Content-Type":`application/json`}}).then(function(e){if(e.ok)return`Success`;throw Error(`Failed to dislike comment`)})},undislike({comment:e}){let t={comments:[e]};return a({url:r({type:`members`,resource:`comments/${e.id}/dislike`}),method:`DELETE`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)}).then(function(e){if(e.ok)return`Success`;throw Error(`Failed to undislike comment`)})},report({comment:e}){return a({url:r({type:`members`,resource:`comments/${e.id}/report`}),method:`POST`,headers:{"Content-Type":`application/json`}}).then(function(e){if(e.ok)return`Success`;throw Error(`Failed to report comment`)})}},init:(()=>{})};return s.init=async()=>{let[e]=await Promise.all([s.member.sessionData()]),t={},n=null;try{let e=await s.site.settings();e.settings.labs&&Object.assign(t,e.settings.labs),n=e.settings.support_email_address||null}catch{t={}}return{member:e,labs:t,supportEmail:n}},s}var Hb=Vb;function Ub(e,t){for(let n of e){if(n.id===t)return n;for(let e of n.replies||[])if(e.id===t)return e}}async function Wb({state:e,api:t,options:n,order:r}){let i=1;e.pagination&&e.pagination.page&&(i=e.pagination.page+1);let a;return a=e.admin&&e.adminApi?await e.adminApi.browse({page:i,postId:n.postId,order:r||e.order,memberUuid:e.member?.uuid}):await t.comments.browse({page:i,postId:n.postId,order:r||e.order}),{comments:[...e.comments,...a.comments].filter((e,t,n)=>n.findIndex(t=>t.id===e.id)===t),pagination:a.meta.pagination}}function Gb({data:e}){return{commentsIsLoading:e}}async function Kb({state:e,data:{order:t},options:n,api:r,dispatchAction:i}){i(`setCommentsIsLoading`,!0);try{let i;return i=e.admin&&e.adminApi?await e.adminApi.browse({page:1,postId:n.postId,order:t,memberUuid:e.member?.uuid}):await r.comments.browse({page:1,postId:n.postId,order:t}),{comments:[...i.comments],pagination:i.meta.pagination,order:t,commentsIsLoading:!1}}catch(t){throw console.error(`Failed to set order:`,t),e.commentsIsLoading=!1,t}}async function qb({state:e,api:t,data:n}){let r=(await t.comments.add({comment:n})).comments[0];return{comments:[r,...e.comments],commentCount:e.commentCount+1,commentIdToScrollTo:r.id}}async function Jb({state:e,api:t,data:{reply:n,parent:r}}){let i=(await t.comments.add({comment:{...n,parent_id:r.id}})).comments[0],a=await t.comments.replies({commentId:r.id,limit:`all`}),o=a.comments.some(e=>e.id===i.id)?a.comments:[...a.comments,i];return{comments:e.comments.map(e=>e.id===r.id?{...e,replies:o,count:{...e.count,replies:o.length}}:e),commentCount:e.commentCount+1,commentIdToScrollTo:i.id}}async function Yb({state:e,data:t}){return e.adminApi&&await e.adminApi.hideComment(t.id),{comments:e.comments.map(e=>{let n=e.replies.map(e=>e.id===t.id?{...e,status:`hidden`}:e);return e.id===t.id?{...e,status:`hidden`,replies:n}:{...e,replies:n}}),commentCount:e.commentCount-1}}async function Xb({state:e,api:t,data:n}){e.adminApi&&await e.adminApi.showComment({id:n.id});let r;r=e.admin&&e.adminApi?await e.adminApi.read({commentId:n.id,memberUuid:e.member?.uuid}):await t.comments.read(n.id);let i=r.comments[0];return{comments:e.comments.map(e=>{let t=e.replies.map(e=>e.id===n.id?i:e);return e.id===n.id?i:{...e,replies:t}}),commentCount:e.commentCount+1}}async function Zb({state:e,data:t,dispatchAction:n}){return e.adminApi&&(await e.adminApi.pinComment({id:t.id}),n(`setOrder`,{order:e.order})),null}async function Qb({state:e,data:t,dispatchAction:n}){return e.adminApi&&(await e.adminApi.unpinComment({id:t.id}),n(`setOrder`,{order:e.order})),null}async function $b({state:e,data:t}){return{comments:e.comments.map(e=>{let n=e.replies.map(e=>e.id===t.id?t.expectedLiked!==void 0&&e.liked!==t.expectedLiked||t.expectedDisliked!==void 0&&!!e.disliked!==t.expectedDisliked||t.expectedVotePending!==void 0&&!!e.votePending!==t.expectedVotePending?e:{...e,liked:t.liked,disliked:t.restoreDisliked??(t.liked?!1:e.disliked),votePending:t.votePending??e.votePending,count:{...e.count,likes:t.liked?e.count.likes+1:e.count.likes-1}}:e);return e.id===t.id?t.expectedLiked!==void 0&&e.liked!==t.expectedLiked||t.expectedDisliked!==void 0&&!!e.disliked!==t.expectedDisliked||t.expectedVotePending!==void 0&&!!e.votePending!==t.expectedVotePending?{...e,replies:n}:{...e,liked:t.liked,disliked:t.restoreDisliked??(t.liked?!1:e.disliked),votePending:t.votePending??e.votePending,replies:n,count:{...e.count,likes:t.liked?e.count.likes+1:e.count.likes-1}}:{...e,replies:n}})}}async function ex({state:e,data:t}){let n=e=>t.disliked&&t.wasLiked?e-1:t.restoreLiked?e+1:e;return{comments:e.comments.map(e=>{let r=e.replies.map(e=>e.id===t.id?t.expectedDisliked!==void 0&&e.disliked!==t.expectedDisliked||t.expectedLiked!==void 0&&e.liked!==t.expectedLiked||t.expectedVotePending!==void 0&&!!e.votePending!==t.expectedVotePending?e:{...e,disliked:t.disliked,liked:t.restoreLiked??(t.disliked?!1:e.liked),votePending:t.votePending??e.votePending,count:{...e.count,likes:n(e.count.likes)}}:e);return e.id===t.id?t.expectedDisliked!==void 0&&e.disliked!==t.expectedDisliked||t.expectedLiked!==void 0&&e.liked!==t.expectedLiked||t.expectedVotePending!==void 0&&!!e.votePending!==t.expectedVotePending?{...e,replies:r}:{...e,disliked:t.disliked,liked:t.restoreLiked??(t.disliked?!1:e.liked),votePending:t.votePending??e.votePending,replies:r,count:{...e.count,likes:n(e.count.likes)}}:{...e,replies:r}})}}async function tx({state:e,data:t}){return{comments:e.comments.map(e=>{let n=e.replies.map(e=>e.id===t.id?t.expectedVotePending!==void 0&&!!e.votePending!==t.expectedVotePending?e:{...e,votePending:t.votePending}:e);return e.id===t.id?t.expectedVotePending!==void 0&&!!e.votePending!==t.expectedVotePending?{...e,replies:n}:{...e,votePending:t.votePending,replies:n}:{...e,replies:n}})}}async function nx({state:e,api:t,data:n,dispatchAction:r}){let i=Ub(e.comments,n.id);if(i?.votePending)return{};let a=i?.disliked??!1;r(`updateCommentLikeState`,{id:n.id,liked:!0,wasDisliked:a,votePending:!0});try{return await t.comments.like({comment:n}),r(`updateCommentVotePendingState`,{id:n.id,votePending:!1,expectedVotePending:!0}),{}}catch{r(`updateCommentLikeState`,{id:n.id,liked:!1,restoreDisliked:a,expectedLiked:!0,expectedVotePending:!0,votePending:!1})}}async function rx({state:e,api:t,data:n,dispatchAction:r}){if(Ub(e.comments,n.id)?.votePending)return{};r(`updateCommentLikeState`,{id:n.id,liked:!1,votePending:!0});try{return await t.comments.unlike({comment:n}),r(`updateCommentVotePendingState`,{id:n.id,votePending:!1,expectedVotePending:!0}),{}}catch{r(`updateCommentLikeState`,{id:n.id,liked:!0,expectedLiked:!1,expectedDisliked:!1,expectedVotePending:!0,votePending:!1})}}async function ix({state:e,api:t,data:n,dispatchAction:r}){let i=Ub(e.comments,n.id);if(i?.votePending)return{};let a=i?.liked??!1;r(`updateCommentDislikeState`,{id:n.id,disliked:!0,wasLiked:a,votePending:!0});try{return await t.comments.dislike({comment:n}),r(`updateCommentVotePendingState`,{id:n.id,votePending:!1,expectedVotePending:!0}),{}}catch{r(`updateCommentDislikeState`,{id:n.id,disliked:!1,restoreLiked:a,expectedDisliked:!0,expectedVotePending:!0,votePending:!1})}}async function ax({state:e,api:t,data:n,dispatchAction:r}){if(Ub(e.comments,n.id)?.votePending)return{};r(`updateCommentDislikeState`,{id:n.id,disliked:!1,votePending:!0});try{return await t.comments.undislike({comment:n}),r(`updateCommentVotePendingState`,{id:n.id,votePending:!1,expectedVotePending:!0}),{}}catch{r(`updateCommentDislikeState`,{id:n.id,disliked:!0,expectedDisliked:!1,expectedLiked:!1,expectedVotePending:!0,votePending:!1})}}async function ox({api:e,data:t}){return await e.comments.report({comment:t}),{}}function sx(e,t){return e.some(e=>e.in_reply_to_id===t)}function cx(e,t){return e.status===`deleted`||!t&&e.status===`hidden`}function lx(e,t){let n=e,r=!1;do r=!1,n=n.filter(e=>!cx(e,t)||sx(n,e.id)?!0:(r=!0,!1));while(r);return n}function ux(e){return Math.max((e||0)-1,0)}async function dx({state:e,api:t,data:n,dispatchAction:r}){await t.comments.edit({comment:{id:n.id,status:`deleted`}});let i=e.comments.find(e=>e.id===n.id);return i&&(!i.replies||i.replies.length===0)?(r(`setOrder`,{order:e.order}),null):{comments:e.comments.map(t=>{if(t.id===n.id)return t.replies.length>0?{...t,status:`deleted`}:null;let r=t.replies.length,i=t.replies.find(e=>e.id===n.id),a=i?sx(t.replies,i.id):!1,o=lx(t.replies.reduce((e,t)=>t.id===n.id?(a&&e.push({...t,status:`deleted`,html:null}),e):(e.push(t),e),[]),e.isAdmin),s=r!==o.length||a,c={...t,replies:o};if(s&&i&&![`hidden`,`deleted`].includes(i.status)){let e=!i.in_reply_to_id||i.in_reply_to_id===t.id;c.count={...c.count,replies:ux(c.count?.replies),direct_replies:e?ux(c.count?.direct_replies):c.count?.direct_replies}}return c}).filter(Boolean),commentCount:e.commentCount-1}}async function fx({state:e,api:t,data:{comment:n,parent:r}}){return n=(await t.comments.edit({comment:n})).comments[0],{comments:e.comments.map(e=>r&&r.id===e.id?{...e,replies:e.replies.map(e=>e.id===n.id?n:e)}:e.id===n.id?n:e)}}async function px({data:e,state:t,api:n}){let{name:r,expertise:i}=e,a={},o=t?.member?.name;r&&o!==r&&(a.name=r);let s=t?.member?.expertise;if(i!==void 0&&s!==i&&(a.expertise=i),Object.keys(a).length>0)try{let e=await n.member.update(a);if(!e)throw Error(`Failed to update member`);return{member:e,success:!0}}catch(e){return{success:!1,error:e}}return null}function mx({data:e}){return{popup:e}}function hx(){return{popup:null}}function gx({data:e,state:t}){let n=t.openCommentForms.filter(e=>e.hasUnsavedChanges),r=n.findIndex(t=>t.id===e.id);return r>-1?(n[r]=e,{openCommentForms:n}):{openCommentForms:[...n,e]}}function _x({data:e}){return{commentIdToHighlight:e}}function vx({data:{commentId:e},dispatchAction:t}){return setTimeout(()=>{t(`setHighlightComment`,null)},3e3),{commentIdToHighlight:e}}function yx({data:{id:e,hasUnsavedChanges:t},state:n}){return{openCommentForms:n.openCommentForms.map(n=>n.id===e?{...n,hasUnsavedChanges:t}:{...n})}}function bx({data:e,state:t}){return{openCommentForms:t.openCommentForms.filter(t=>t.id!==e)}}function xx({data:e}){return{commentIdToScrollTo:e}}function Sx({data:e}){return{commentIdFromHash:e}}let Cx={openPopup:mx,closePopup:hx,closeCommentForm:bx,setCommentFormHasUnsavedChanges:yx,setScrollTarget:xx,setHashCommentId:Sx},wx={addComment:qb,editComment:fx,hideComment:Yb,pinComment:Zb,unpinComment:Qb,deleteComment:dx,showComment:Xb,likeComment:nx,unlikeComment:rx,dislikeComment:ix,undislikeComment:ax,reportComment:ox,addReply:Jb,loadMoreComments:Wb,openCommentForm:gx,updateMember:px,setOrder:Kb,highlightComment:vx,setHighlightComment:_x,setCommentsIsLoading:Gb,updateCommentLikeState:$b,updateCommentDislikeState:ex,updateCommentVotePendingState:tx};function Tx(e){return Object.prototype.hasOwnProperty.call(Cx,e)}async function Ex({action:e,data:t,state:n,api:r,adminApi:i,options:a,dispatchAction:o}){let s=wx[e];return s&&await s({data:t,state:n,api:r,adminApi:i,options:a,dispatchAction:o})||{}}function Dx({action:e,data:t,state:n,api:r,adminApi:i,options:a}){let o=Cx[e];return o&&o({data:t,state:n,api:r,adminApi:i,options:a})||{}}function Ox({adminUrl:e}){let t=document.querySelector(`iframe[data-frame="admin-auth"]`),n=1,r={},i=new URL(e).origin,a=null;window.addEventListener(`message`,function(e){if(e.origin!==i)return;let t=null;try{t=JSON.parse(e.data)}catch{return}let n=r[t.uid];n&&(delete r[t.uid],n(t.error,t.result))});function o(e,a){return new Promise((o,s)=>{function c(e,t){return e?s(e):o(t)}n+=1,r[n]=c,t.contentWindow.postMessage(JSON.stringify({uid:n,action:e,...a}),i)})}return{async getUser(){let e=await o(`getUser`);return!e||!e.users?null:e.users[0]},async hideComment(e){return await o(`hideComment`,{id:e})},async showComment({id:e}){return await o(`showComment`,{id:e})},async pinComment({id:e}){return await o(`pinComment`,{id:e})},async unpinComment({id:e}){return await o(`unpinComment`,{id:e})},async browse({page:e,postId:t,order:n,memberUuid:r}){let i=null;a&&!n&&(i=`created_at:<=${a}`);let s=new URLSearchParams;s.set(`limit`,`20`),i&&s.set(`filter`,i),s.set(`page`,e.toString()),n&&s.set(`order`,n),r&&s.set(`impersonate_member_uuid`,r);let c=await o(`browseComments`,{postId:t,params:s.toString()});if(!a){let e=c.comments[0];e&&(a=e.created_at)}return c},async replies({commentId:e,afterReplyId:t,limit:n,memberUuid:r}){let i=new URLSearchParams;return n&&i.set(`limit`,n.toString()),t&&i.set(`filter`,`id:>'${t}'`),r&&i.set(`impersonate_member_uuid`,r),await o(`getReplies`,{commentId:e,params:i.toString()})},async read({commentId:e,memberUuid:t}){let n=new URLSearchParams;return t&&n.set(`impersonate_member_uuid`,t),await o(`readComment`,{commentId:e,...n.toString()&&{params:n.toString()}})}}}function kx(e){let t=O.useCallback(()=>{let t=e.dataset,n=t.ghostComments||window.location.origin,r=t.key,i=t.api,a=t.admin,o=t.postId||``,s=t.colorScheme,c=t.avatarSaturation?parseInt(t.avatarSaturation):void 0,l=t.accentColor??`#000000`,u=t.commentsEnabled,d=t.title===`null`?null:t.title??``,f=t.count===`true`,p=t.publication??``;return{locale:t.locale??`en`,siteUrl:n,apiKey:r,apiUrl:i,postId:o,adminUrl:a,colorScheme:s,avatarSaturation:c,accentColor:l,commentsEnabled:u,title:d,showCount:f,publication:p}},[e]),n=(0,O.useMemo)(()=>t(),[]),[r,i]=O.useState(n);return O.useEffect(()=>{let n=new MutationObserver(e=>{e.some(e=>e.type===`attributes`)&&i(t())});return n.observe(e,{attributes:!0}),()=>{n.disconnect()}},[e,t]),r}var Ax=[`Owner`,`Administrator`,`Super Editor`],jx=`count__net_score desc, created_at desc`;function Mx(e,t){return e.some(e=>e.id===t||e.replies?.some(e=>e.id===t))}var Nx=({scriptTag:e,initialCommentId:t})=>{let n=kx(e),[r,i]=(0,O.useState)({initStatus:`running`,member:null,admin:null,comments:[],pagination:null,commentCount:0,openCommentForms:[],popup:null,labs:{},order:jx,adminApi:null,commentsIsLoading:!1,commentIdToHighlight:null,commentIdToScrollTo:t,commentIdFromHash:t,showMissingCommentNotice:!1,supportEmail:null,isMember:!1,isAdmin:!1,isPaidOnly:!1,hasRequiredTier:!0,isCommentingDisabled:!1}),a=O.createRef(),o=O.useMemo(()=>Hb({siteUrl:n.siteUrl,apiUrl:n.apiUrl,apiKey:n.apiKey}),[n]),s=(0,O.useCallback)(e=>{i(t=>(typeof e==`function`&&(e=e(t)),{...t,...e}))},[i]),c=(0,O.useCallback)(async(e,t)=>{if(Tx(e)){s(r=>Dx({action:e,data:t,state:r,api:o,adminApi:r.adminApi,options:n}));return}return new Promise(r=>{s(i=>(Ex({action:e,data:t,state:i,api:o,adminApi:i.adminApi,options:n,dispatchAction:c}).then(e=>{let t={...e};r(t),s(t)}).catch(console.error),{}))})},[o,n]),l=(0,O.useMemo)(()=>Lb(n.locale,`comments`),[n.locale]),u={...n,...r,t:l.t,dispatchAction:c,openFormCount:(0,O.useMemo)(()=>r.openCommentForms.length,[r.openCommentForms])},d=async()=>{if(!(r.adminApi||!n.adminUrl))try{let e=Ox({adminUrl:n.adminUrl}),i=null;try{if(i=await e.getUser(),(!i||!i.roles.some(e=>Ax.includes(e.name)))&&(i=null),i){let a=await e.browse({page:1,postId:n.postId,order:r.order,memberUuid:r.member?.uuid});s(n=>n.pagination&&n.pagination.page>1||t?{adminApi:e,admin:i,isAdmin:!0}:{adminApi:e,admin:i,isAdmin:!0,comments:a.comments,pagination:a.meta.pagination})}}catch(e){console.warn(`[Comments] Failed to fetch admin endpoint:`,e)}s({adminApi:e,admin:i,isAdmin:!!i})}catch(e){console.error(`[Comments] Failed to initialize admin authentication:`,e)}},f=async(e=r.order)=>{let t=o.comments.browse({page:1,postId:n.postId,order:e}),i=o.comments.count({postId:n.postId}),[a,s]=await Promise.all([t,i]);return{comments:a.comments,pagination:a.meta.pagination,count:s}},p=async e=>{try{let t=(await o.comments.read(e)).comments?.[0];return t&&t.status===`published`?t:null}catch{return null}},g=async(e,t,i,a,s=r.order)=>{let c=i,l=a;for(;!Mx(c,e)&&l.page<l.pages&&!(t&&c.some(e=>e.id===t));){let e=await o.comments.browse({page:l.page+1,postId:n.postId,order:s});c=[...c,...e.comments],l=e.meta.pagination}return{comments:c,pagination:l}},_=async(e,t,n,i,a=r.order)=>{let s=t.parent_id,{comments:c,pagination:l}=await g(e,s,n,i,a),u=c;if(s&&!Mx(u,e)){let{comments:e}=await o.comments.replies({commentId:s,limit:`all`});u=u.map(t=>t.id===s?{...t,replies:e}:t)}return{comments:u,pagination:l,found:Mx(u,e)}},v=async()=>{try{let{member:e,labs:r,supportEmail:i}=await o.init(),{count:a,comments:c,pagination:l}=await f(jx),u=jx,d=c,m=l,h=!1;if(t&&m){let e=await p(t);if(e){let n=await _(t,e,d,m,u);d=n.comments,m=n.pagination,h=n.found}}let g=!!e,v=n.commentsEnabled===`paid`,y=!!e?.paid||!v;s({member:e,initStatus:`success`,comments:d,pagination:m,commentCount:a,order:u,labs:r,commentsIsLoading:!1,commentIdToHighlight:null,commentIdToScrollTo:h?t:null,commentIdFromHash:h?t:null,showMissingCommentNotice:!!t&&!h,supportEmail:i,isMember:g,isPaidOnly:v,hasRequiredTier:y,isCommentingDisabled:e?.can_comment===!1})}catch(e){console.error(`[Comments] Failed to initialize:`,e),s({initStatus:`failed`})}};(0,O.useEffect)(()=>{if(t){v();return}let e=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&(v(),a.current&&e.unobserve(a.current))})},{root:null,rootMargin:`0px`,threshold:.1});return a.current&&e.observe(a.current),()=>{a.current&&e.unobserve(a.current)}},[a.current,t]);let y=r.initStatus===`success`;return(0,m.jsxs)(se.Provider,{value:u,children:[(0,m.jsx)(cv,{ref:a,children:(0,m.jsx)(tv,{done:y})}),y&&n.adminUrl&&(0,m.jsx)(h,{adminUrl:n.adminUrl,onLoad:d}),(0,m.jsx)(vv,{})]})},Px=l(Nd(),1);function Fx(){let e=document.currentScript;if(!e)throw Error(`[Comments-UI] Cannot find current script tag`);return e}function Ix(e){if(e.previousElementSibling&&e.previousElementSibling.id===`ghost-comments-root`)return e.previousElementSibling;if(!e.parentElement)throw Error(`[Comments-UI] Script tag does not have a parent element`);let t=document.createElement(`div`);return t.id=I_,e.parentElement.insertBefore(t,e),t}function Lx(){let e=new URL(window.location.href);e.searchParams.get(`token`)&&(e.searchParams.delete(`token`),window.history.replaceState({},document.title,e.href))}function Rx(){let e=Fx(),t=Ix(e),n=x(window.location.hash);try{Lx(),Px.render((0,m.jsx)(O.default.StrictMode,{children:(0,m.jsx)(Nx,{initialCommentId:n,scriptTag:e})}),t)}catch(e){console.error(e)}}Rx()});
|