@blogmcp/community 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +146 -2
- package/dist/blogmcp-community.global.js +10 -0
- package/dist/chunks/mount-DzjwnHyx.js +4597 -0
- package/dist/core/attrs.d.ts +73 -0
- package/dist/core/avatars.d.ts +16 -0
- package/dist/core/client.d.ts +27 -0
- package/dist/core/discussion.d.ts +144 -0
- package/dist/core/download.d.ts +4 -0
- package/dist/core/format.d.ts +17 -0
- package/dist/core/i18n.d.ts +28 -0
- package/dist/core/names.d.ts +15 -0
- package/dist/core/notice.d.ts +50 -0
- package/dist/core/onboarding.d.ts +52 -0
- package/dist/core/outcomes.d.ts +28 -0
- package/dist/core/panel.d.ts +80 -0
- package/dist/core/receipt.d.ts +5 -0
- package/dist/core/text.d.ts +22 -0
- package/dist/core/turnstile.d.ts +33 -0
- package/dist/element.d.ts +26 -0
- package/dist/global.d.ts +8 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +22 -0
- package/dist/mount.d.ts +65 -0
- package/dist/react.d.ts +17 -0
- package/dist/react.js +35 -0
- package/dist/ui/AuthorAvatar.vue.d.ts +11 -0
- package/dist/ui/ConfirmDialog.vue.d.ts +20 -0
- package/dist/ui/DiscussionView.vue.d.ts +33 -0
- package/dist/ui/LinkedText.vue.d.ts +5 -0
- package/dist/ui/MessageComposer.vue.d.ts +24 -0
- package/dist/ui/MessageItem.vue.d.ts +6 -0
- package/dist/ui/MessageMenu.vue.d.ts +10 -0
- package/dist/ui/MyCommunityView.vue.d.ts +16 -0
- package/dist/ui/NoticeFormView.vue.d.ts +26 -0
- package/dist/ui/NoticeStatusView.vue.d.ts +15 -0
- package/dist/ui/OnboardingSteps.vue.d.ts +11 -0
- package/dist/ui/ReactionBar.vue.d.ts +13 -0
- package/dist/ui/ReportDialog.vue.d.ts +15 -0
- package/dist/ui/StatementView.vue.d.ts +15 -0
- package/dist/ui/context.d.ts +21 -0
- package/dist/ui/discussion-context.d.ts +19 -0
- package/dist/ui/types.d.ts +7 -0
- package/dist/version.d.ts +1 -0
- package/dist/vue.d.ts +89 -0
- package/dist/vue.js +97 -0
- package/package.json +80 -4
- package/src/core/attrs.ts +147 -0
- package/src/core/avatars.ts +44 -0
- package/src/core/client.ts +54 -0
- package/src/core/discussion.ts +691 -0
- package/src/core/download.ts +21 -0
- package/src/core/format.ts +90 -0
- package/src/core/i18n.ts +49 -0
- package/src/core/names.ts +51 -0
- package/src/core/notice.ts +178 -0
- package/src/core/onboarding.ts +345 -0
- package/src/core/outcomes.ts +74 -0
- package/src/core/panel.ts +411 -0
- package/src/core/receipt.ts +28 -0
- package/src/core/text.ts +142 -0
- package/src/core/turnstile.ts +98 -0
- package/src/element.ts +109 -0
- package/src/global.ts +12 -0
- package/src/index.ts +35 -0
- package/src/mount.ts +127 -0
- package/src/react.ts +53 -0
- package/src/shims.d.ts +11 -0
- package/src/ui/AuthorAvatar.vue +26 -0
- package/src/ui/ConfirmDialog.vue +38 -0
- package/src/ui/DiscussionView.vue +294 -0
- package/src/ui/LinkedText.vue +18 -0
- package/src/ui/MessageComposer.vue +130 -0
- package/src/ui/MessageItem.vue +205 -0
- package/src/ui/MessageMenu.vue +67 -0
- package/src/ui/MyCommunityView.vue +369 -0
- package/src/ui/NoticeFormView.vue +244 -0
- package/src/ui/NoticeStatusView.vue +82 -0
- package/src/ui/OnboardingSteps.vue +163 -0
- package/src/ui/ReactionBar.vue +41 -0
- package/src/ui/ReportDialog.vue +88 -0
- package/src/ui/StatementView.vue +141 -0
- package/src/ui/context.ts +75 -0
- package/src/ui/discussion-context.ts +30 -0
- package/src/ui/styles.css +243 -0
- package/src/ui/types.ts +7 -0
- package/src/version.ts +3 -0
- package/src/vue.ts +116 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
var BlogmcpCommunity=(function(zt){"use strict";function As(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const be={},Yt=[],Lt=()=>{},Fo=()=>!1,Fn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ts=e=>e.startsWith("onUpdate:"),je=Object.assign,qo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Oa=Object.prototype.hasOwnProperty,fe=(e,t)=>Oa.call(e,t),se=Array.isArray,Gt=e=>bn(e)==="[object Map]",Zt=e=>bn(e)==="[object Set]",Ho=e=>bn(e)==="[object Date]",ue=e=>typeof e=="function",xe=e=>typeof e=="string",Ge=e=>typeof e=="symbol",ye=e=>e!==null&&typeof e=="object",Vo=e=>(ye(e)||ue(e))&&ue(e.then)&&ue(e.catch),Bo=Object.prototype.toString,bn=e=>Bo.call(e),Ea=e=>bn(e).slice(8,-1),qn=e=>bn(e)==="[object Object]",$s=e=>xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,gn=As(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Ma=/-\w/g,Oe=Hn(e=>e.replace(Ma,t=>t.slice(1).toUpperCase())),Na=/\B([A-Z])/g,qe=Hn(e=>e.replace(Na,"-$1").toLowerCase()),Vn=Hn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Os=Hn(e=>e?`on${Vn(e)}`:""),Tt=(e,t)=>!Object.is(e,t),Bn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Ko=(e,t,n,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},Kn=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Wo=e=>{const t=xe(e)?Number(e):NaN;return isNaN(t)?e:t};let Yo;const Wn=()=>Yo||(Yo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Yn(e){if(se(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],s=xe(o)?za(o):Yn(o);if(s)for(const i in s)t[i]=s[i]}return t}else if(xe(e)||ye(e))return e}const Pa=/;(?![^(]*\))/g,Ra=/:([^]+)/,ja=/\/\*[^]*?\*\//g;function za(e){const t={};return e.replace(ja,"").split(Pa).forEach(n=>{if(n){const o=n.split(Ra);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function nt(e){let t="";if(xe(e))t=e;else if(se(e))for(let n=0;n<e.length;n++){const o=nt(e[n]);o&&(t+=o+" ")}else if(ye(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const La=As("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function Go(e){return!!e||e===""}function Da(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=Dt(e[o],t[o]);return n}function Dt(e,t){if(e===t)return!0;let n=Ho(e),o=Ho(t);if(n||o)return n&&o?e.getTime()===t.getTime():!1;if(n=Ge(e),o=Ge(t),n||o)return e===t;if(n=se(e),o=se(t),n||o)return n&&o?Da(e,t):!1;if(n=ye(e),o=ye(t),n||o){if(!n||!o)return!1;const s=Object.keys(e).length,i=Object.keys(t).length;if(s!==i)return!1;for(const a in e){const l=e.hasOwnProperty(a),c=t.hasOwnProperty(a);if(l&&!c||!l&&c||!Dt(e[a],t[a]))return!1}}return String(e)===String(t)}function Es(e,t){return e.findIndex(n=>Dt(n,t))}const Zo=e=>!!(e&&e.__v_isRef===!0),p=e=>xe(e)?e:e==null?"":se(e)||ye(e)&&(e.toString===Bo||!ue(e.toString))?Zo(e)?p(e.value):JSON.stringify(e,Jo,2):String(e),Jo=(e,t)=>Zo(t)?Jo(e,t.value):Gt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,s],i)=>(n[Ms(o,i)+" =>"]=s,n),{})}:Zt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ms(n))}:Ge(t)?Ms(t):ye(t)&&!se(t)&&!qn(t)?String(t):t,Ms=(e,t="")=>{var n;return Ge(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let ze;class Ua{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ze,!t&&ze&&(this.index=(ze.scopes||(ze.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=ze;try{return ze=this,t()}finally{ze=n}}}on(){++this._on===1&&(this.prevScope=ze,ze=this)}off(){this._on>0&&--this._on===0&&(ze=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(this.effects.length=0,n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function Fa(){return ze}let me;const Ns=new WeakSet;class Xo{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ze&&ze.active&&ze.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ns.has(this)&&(Ns.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ei(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ii(this),ti(this);const t=me,n=Ze;me=this,Ze=!0;try{return this.fn()}finally{ni(this),me=t,Ze=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)zs(t);this.deps=this.depsTail=void 0,ii(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ns.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){js(this)&&this.run()}get dirty(){return js(this)}}let Qo=0,yn,vn;function ei(e,t=!1){if(e.flags|=8,t){e.next=vn,vn=e;return}e.next=yn,yn=e}function Ps(){Qo++}function Rs(){if(--Qo>0)return;if(vn){let t=vn;for(vn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;yn;){let t=yn;for(yn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function ti(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ni(e){let t,n=e.depsTail,o=n;for(;o;){const s=o.prevDep;o.version===-1?(o===n&&(n=s),zs(o),qa(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=s}e.deps=t,e.depsTail=n}function js(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(si(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function si(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===_n)||(e.globalVersion=_n,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!js(e))))return;e.flags|=2;const t=e.dep,n=me,o=Ze;me=e,Ze=!0;try{ti(e);const s=e.fn(e._value);(t.version===0||Tt(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{me=n,Ze=o,ni(e),e.flags&=-3}}function zs(e,t=!1){const{dep:n,prevSub:o,nextSub:s}=e;if(o&&(o.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)zs(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function qa(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ze=!0;const oi=[];function pt(){oi.push(Ze),Ze=!1}function mt(){const e=oi.pop();Ze=e===void 0?!0:e}function ii(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=me;me=void 0;try{t()}finally{me=n}}}let _n=0;class Ha{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ls{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!me||!Ze||me===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==me)n=this.activeLink=new Ha(me,this),me.deps?(n.prevDep=me.depsTail,me.depsTail.nextDep=n,me.depsTail=n):me.deps=me.depsTail=n,ri(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=me.depsTail,n.nextDep=void 0,me.depsTail.nextDep=n,me.depsTail=n,me.deps===n&&(me.deps=o)}return n}trigger(t){this.version++,_n++,this.notify(t)}notify(t){Ps();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Rs()}}}function ri(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)ri(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ds=new WeakMap,Ut=Symbol(""),Us=Symbol(""),kn=Symbol("");function Ae(e,t,n){if(Ze&&me){let o=Ds.get(e);o||Ds.set(e,o=new Map);let s=o.get(n);s||(o.set(n,s=new Ls),s.map=o,s.key=n),s.track()}}function ht(e,t,n,o,s,i){const a=Ds.get(e);if(!a){_n++;return}const l=c=>{c&&c.trigger()};if(Ps(),t==="clear")a.forEach(l);else{const c=se(e),m=c&&$s(n);if(c&&n==="length"){const u=Number(o);a.forEach((_,T)=>{(T==="length"||T===kn||!Ge(T)&&T>=u)&&l(_)})}else switch((n!==void 0||a.has(void 0))&&l(a.get(n)),m&&l(a.get(kn)),t){case"add":c?m&&l(a.get("length")):(l(a.get(Ut)),Gt(e)&&l(a.get(Us)));break;case"delete":c||(l(a.get(Ut)),Gt(e)&&l(a.get(Us)));break;case"set":Gt(e)&&l(a.get(Ut));break}}Rs()}function Jt(e){const t=re(e);return t===e?t:(Ae(t,"iterate",kn),Ke(e)?t:t.map(Je))}function Gn(e){return Ae(e=re(e),"iterate",kn),e}function $t(e,t){return yt(e)?Ft(e)?Xt(Je(t)):Xt(t):Je(t)}const Va={__proto__:null,[Symbol.iterator](){return Fs(this,Symbol.iterator,e=>$t(this,e))},concat(...e){return Jt(this).concat(...e.map(t=>se(t)?Jt(t):t))},entries(){return Fs(this,"entries",e=>(e[1]=$t(this,e[1]),e))},every(e,t){return bt(this,"every",e,t,void 0,arguments)},filter(e,t){return bt(this,"filter",e,t,n=>n.map(o=>$t(this,o)),arguments)},find(e,t){return bt(this,"find",e,t,n=>$t(this,n),arguments)},findIndex(e,t){return bt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return bt(this,"findLast",e,t,n=>$t(this,n),arguments)},findLastIndex(e,t){return bt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return bt(this,"forEach",e,t,void 0,arguments)},includes(...e){return qs(this,"includes",e)},indexOf(...e){return qs(this,"indexOf",e)},join(e){return Jt(this).join(e)},lastIndexOf(...e){return qs(this,"lastIndexOf",e)},map(e,t){return bt(this,"map",e,t,void 0,arguments)},pop(){return wn(this,"pop")},push(...e){return wn(this,"push",e)},reduce(e,...t){return ai(this,"reduce",e,t)},reduceRight(e,...t){return ai(this,"reduceRight",e,t)},shift(){return wn(this,"shift")},some(e,t){return bt(this,"some",e,t,void 0,arguments)},splice(...e){return wn(this,"splice",e)},toReversed(){return Jt(this).toReversed()},toSorted(e){return Jt(this).toSorted(e)},toSpliced(...e){return Jt(this).toSpliced(...e)},unshift(...e){return wn(this,"unshift",e)},values(){return Fs(this,"values",e=>$t(this,e))}};function Fs(e,t,n){const o=Gn(e),s=o[t]();return o!==e&&!Ke(e)&&(s._next=s.next,s.next=()=>{const i=s._next();return i.done||(i.value=n(i.value)),i}),s}const Ba=Array.prototype;function bt(e,t,n,o,s,i){const a=Gn(e),l=a!==e&&!Ke(e),c=a[t];if(c!==Ba[t]){const _=c.apply(e,i);return l?Je(_):_}let m=n;a!==e&&(l?m=function(_,T){return n.call(this,$t(e,_),T,e)}:n.length>2&&(m=function(_,T){return n.call(this,_,T,e)}));const u=c.call(a,m,o);return l&&s?s(u):u}function ai(e,t,n,o){const s=Gn(e);let i=n;return s!==e&&(Ke(e)?n.length>3&&(i=function(a,l,c){return n.call(this,a,l,c,e)}):i=function(a,l,c){return n.call(this,a,$t(e,l),c,e)}),s[t](i,...o)}function qs(e,t,n){const o=re(e);Ae(o,"iterate",kn);const s=o[t](...n);return(s===-1||s===!1)&&Bs(n[0])?(n[0]=re(n[0]),o[t](...n)):s}function wn(e,t,n=[]){pt(),Ps();const o=re(e)[t].apply(e,n);return Rs(),mt(),o}const Ka=As("__proto__,__v_isRef,__isVue"),li=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ge));function Wa(e){Ge(e)||(e=String(e));const t=re(this);return Ae(t,"has",e),t.hasOwnProperty(e)}class ci{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return i;if(n==="__v_raw")return o===(s?i?hi:mi:i?pi:fi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const a=se(t);if(!s){let c;if(a&&(c=Va[n]))return c;if(n==="hasOwnProperty")return Wa}const l=Reflect.get(t,n,Te(t)?t:o);if((Ge(n)?li.has(n):Ka(n))||(s||Ae(t,"get",n),i))return l;if(Te(l)){const c=a&&$s(n)?l:l.value;return s&&ye(c)?Vs(c):c}return ye(l)?s?Vs(l):gt(l):l}}class ui extends ci{constructor(t=!1){super(!1,t)}set(t,n,o,s){let i=t[n];const a=se(t)&&$s(n);if(!this._isShallow){const m=yt(i);if(!Ke(o)&&!yt(o)&&(i=re(i),o=re(o)),!a&&Te(i)&&!Te(o))return m||(i.value=o),!0}const l=a?Number(n)<t.length:fe(t,n),c=Reflect.set(t,n,o,Te(t)?t:s);return t===re(s)&&(l?Tt(o,i)&&ht(t,"set",n,o):ht(t,"add",n,o)),c}deleteProperty(t,n){const o=fe(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&o&&ht(t,"delete",n,void 0),s}has(t,n){const o=Reflect.has(t,n);return(!Ge(n)||!li.has(n))&&Ae(t,"has",n),o}ownKeys(t){return Ae(t,"iterate",se(t)?"length":Ut),Reflect.ownKeys(t)}}class di extends ci{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ya=new ui,Ga=new di,Za=new ui(!0),Ja=new di(!0),Hs=e=>e,Zn=e=>Reflect.getPrototypeOf(e);function Xa(e,t,n){return function(...o){const s=this.__v_raw,i=re(s),a=Gt(i),l=e==="entries"||e===Symbol.iterator&&a,c=e==="keys"&&a,m=s[e](...o),u=n?Hs:t?Xt:Je;return!t&&Ae(i,"iterate",c?Us:Ut),{next(){const{value:_,done:T}=m.next();return T?{value:_,done:T}:{value:l?[u(_[0]),u(_[1])]:u(_),done:T}},[Symbol.iterator](){return this}}}}function Jn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Qa(e,t){const n={get(s){const i=this.__v_raw,a=re(i),l=re(s);e||(Tt(s,l)&&Ae(a,"get",s),Ae(a,"get",l));const{has:c}=Zn(a),m=t?Hs:e?Xt:Je;if(c.call(a,s))return m(i.get(s));if(c.call(a,l))return m(i.get(l));i!==a&&i.get(s)},get size(){const s=this.__v_raw;return!e&&Ae(re(s),"iterate",Ut),s.size},has(s){const i=this.__v_raw,a=re(i),l=re(s);return e||(Tt(s,l)&&Ae(a,"has",s),Ae(a,"has",l)),s===l?i.has(s):i.has(s)||i.has(l)},forEach(s,i){const a=this,l=a.__v_raw,c=re(l),m=t?Hs:e?Xt:Je;return!e&&Ae(c,"iterate",Ut),l.forEach((u,_)=>s.call(i,m(u),m(_),a))}};return je(n,e?{add:Jn("add"),set:Jn("set"),delete:Jn("delete"),clear:Jn("clear")}:{add(s){!t&&!Ke(s)&&!yt(s)&&(s=re(s));const i=re(this);return Zn(i).has.call(i,s)||(i.add(s),ht(i,"add",s,s)),this},set(s,i){!t&&!Ke(i)&&!yt(i)&&(i=re(i));const a=re(this),{has:l,get:c}=Zn(a);let m=l.call(a,s);m||(s=re(s),m=l.call(a,s));const u=c.call(a,s);return a.set(s,i),m?Tt(i,u)&&ht(a,"set",s,i):ht(a,"add",s,i),this},delete(s){const i=re(this),{has:a,get:l}=Zn(i);let c=a.call(i,s);c||(s=re(s),c=a.call(i,s)),l&&l.call(i,s);const m=i.delete(s);return c&&ht(i,"delete",s,void 0),m},clear(){const s=re(this),i=s.size!==0,a=s.clear();return i&&ht(s,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Xa(s,e,t)}),n}function Xn(e,t){const n=Qa(e,t);return(o,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(fe(n,s)&&s in o?n:o,s,i)}const el={get:Xn(!1,!1)},tl={get:Xn(!1,!0)},nl={get:Xn(!0,!1)},sl={get:Xn(!0,!0)},fi=new WeakMap,pi=new WeakMap,mi=new WeakMap,hi=new WeakMap;function ol(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function il(e){return e.__v_skip||!Object.isExtensible(e)?0:ol(Ea(e))}function gt(e){return yt(e)?e:Qn(e,!1,Ya,el,fi)}function rl(e){return Qn(e,!1,Za,tl,pi)}function Vs(e){return Qn(e,!0,Ga,nl,mi)}function Ty(e){return Qn(e,!0,Ja,sl,hi)}function Qn(e,t,n,o,s){if(!ye(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=il(e);if(i===0)return e;const a=s.get(e);if(a)return a;const l=new Proxy(e,i===2?o:n);return s.set(e,l),l}function Ft(e){return yt(e)?Ft(e.__v_raw):!!(e&&e.__v_isReactive)}function yt(e){return!!(e&&e.__v_isReadonly)}function Ke(e){return!!(e&&e.__v_isShallow)}function Bs(e){return e?!!e.__v_raw:!1}function re(e){const t=e&&e.__v_raw;return t?re(t):e}function al(e){return!fe(e,"__v_skip")&&Object.isExtensible(e)&&Ko(e,"__v_skip",!0),e}const Je=e=>ye(e)?gt(e):e,Xt=e=>ye(e)?Vs(e):e;function Te(e){return e?e.__v_isRef===!0:!1}function ve(e){return bi(e,!1)}function Ks(e){return bi(e,!0)}function bi(e,t){return Te(e)?e:new ll(e,t)}class ll{constructor(t,n){this.dep=new Ls,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:re(t),this._value=n?t:Je(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||Ke(t)||yt(t);t=o?t:re(t),Tt(t,n)&&(this._rawValue=t,this._value=o?t:Je(t),this.dep.trigger())}}function r(e){return Te(e)?e.value:e}const cl={get:(e,t,n)=>t==="__v_raw"?e:r(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const s=e[t];return Te(s)&&!Te(n)?(s.value=n,!0):Reflect.set(e,t,n,o)}};function gi(e){return Ft(e)?e:new Proxy(e,cl)}class ul{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ls(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=_n-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&me!==this)return ei(this,!0),!0}get value(){const t=this.dep.track();return si(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function dl(e,t,n=!1){let o,s;return ue(e)?o=e:(o=e.get,s=e.set),new ul(o,s,n)}const es={},ts=new WeakMap;let qt;function fl(e,t=!1,n=qt){if(n){let o=ts.get(n);o||ts.set(n,o=[]),o.push(e)}}function pl(e,t,n=be){const{immediate:o,deep:s,once:i,scheduler:a,augmentJob:l,call:c}=n,m=b=>s?b:Ke(b)||s===!1||s===0?vt(b,1):vt(b);let u,_,T,S,A=!1,v=!1;if(Te(e)?(_=()=>e.value,A=Ke(e)):Ft(e)?(_=()=>m(e),A=!0):se(e)?(v=!0,A=e.some(b=>Ft(b)||Ke(b)),_=()=>e.map(b=>{if(Te(b))return b.value;if(Ft(b))return m(b);if(ue(b))return c?c(b,2):b()})):ue(e)?t?_=c?()=>c(e,2):e:_=()=>{if(T){pt();try{T()}finally{mt()}}const b=qt;qt=u;try{return c?c(e,3,[S]):e(S)}finally{qt=b}}:_=Lt,t&&s){const b=_,I=s===!0?1/0:s;_=()=>vt(b(),I)}const w=Fa(),C=()=>{u.stop(),w&&w.active&&qo(w.effects,u)};if(i&&t){const b=t;t=(...I)=>{b(...I),C()}}let E=v?new Array(e.length).fill(es):es;const j=b=>{if(!(!(u.flags&1)||!u.dirty&&!b))if(t){const I=u.run();if(s||A||(v?I.some((q,G)=>Tt(q,E[G])):Tt(I,E))){T&&T();const q=qt;qt=u;try{const G=[I,E===es?void 0:v&&E[0]===es?[]:E,S];E=I,c?c(t,3,G):t(...G)}finally{qt=q}}}else u.run()};return l&&l(j),u=new Xo(_),u.scheduler=a?()=>a(j,!1):j,S=b=>fl(b,!1,u),T=u.onStop=()=>{const b=ts.get(u);if(b){if(c)c(b,4);else for(const I of b)I();ts.delete(u)}},t?o?j(!0):E=u.run():a?a(j.bind(null,!0),!0):u.run(),C.pause=u.pause.bind(u),C.resume=u.resume.bind(u),C.stop=C,C}function vt(e,t=1/0,n){if(t<=0||!ye(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Te(e))vt(e.value,t,n);else if(se(e))for(let o=0;o<e.length;o++)vt(e[o],t,n);else if(Zt(e)||Gt(e))e.forEach(o=>{vt(o,t,n)});else if(qn(e)){for(const o in e)vt(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&vt(e[o],t,n)}return e}const xn=[];let Ws=!1;function $y(e,...t){if(Ws)return;Ws=!0,pt();const n=xn.length?xn[xn.length-1].component:null,o=n&&n.appContext.config.warnHandler,s=ml();if(o)Qt(o,n,11,[e+t.map(i=>{var a,l;return(l=(a=i.toString)==null?void 0:a.call(i))!=null?l:JSON.stringify(i)}).join(""),n&&n.proxy,s.map(({vnode:i})=>`at <${er(n,i.type)}>`).join(`
|
|
2
|
+
`),s]);else{const i=[`[Vue warn]: ${e}`,...t];s.length&&i.push(`
|
|
3
|
+
`,...hl(s)),console.warn(...i)}mt(),Ws=!1}function ml(){let e=xn[xn.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}function hl(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
|
|
4
|
+
`],...bl(n))}),t}function bl({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,s=` at <${er(e.component,e.type,o)}`,i=">"+n;return e.props?[s,...gl(e.props),i]:[s+i]}function gl(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...yi(o,e[o]))}),n.length>3&&t.push(" ..."),t}function yi(e,t,n){return xe(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Te(t)?(t=yi(e,re(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):ue(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=re(t),n?t:[`${e}=`,t])}function Qt(e,t,n,o){try{return o?e(...o):e()}catch(s){ns(s,t,n)}}function _t(e,t,n,o){if(ue(e)){const s=Qt(e,t,n,o);return s&&Vo(s)&&s.catch(i=>{ns(i,t,n)}),s}if(se(e)){const s=[];for(let i=0;i<e.length;i++)s.push(_t(e[i],t,n,o));return s}}function ns(e,t,n,o=!0){const s=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||be;if(t){let l=t.parent;const c=t.proxy,m=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const u=l.ec;if(u){for(let _=0;_<u.length;_++)if(u[_](e,c,m)===!1)return}l=l.parent}if(i){pt(),Qt(i,null,10,[e,c,m]),mt();return}}yl(e,n,s,o,a)}function yl(e,t,n,o=!0,s=!1){if(s)throw e;console.error(e)}const Ee=[];let st=-1;const en=[];let Ot=null,tn=0;const vi=Promise.resolve();let ss=null;function We(e){const t=ss||vi;return e?t.then(this?e.bind(this):e):t}function vl(e){let t=st+1,n=Ee.length;for(;t<n;){const o=t+n>>>1,s=Ee[o],i=Sn(s);i<e||i===e&&s.flags&2?t=o+1:n=o}return t}function Ys(e){if(!(e.flags&1)){const t=Sn(e),n=Ee[Ee.length-1];!n||!(e.flags&2)&&t>=Sn(n)?Ee.push(e):Ee.splice(vl(t),0,e),e.flags|=1,_i()}}function _i(){ss||(ss=vi.then(xi))}function _l(e){se(e)?en.push(...e):Ot&&e.id===-1?Ot.splice(tn+1,0,e):e.flags&1||(en.push(e),e.flags|=1),_i()}function ki(e,t,n=st+1){for(;n<Ee.length;n++){const o=Ee[n];if(o&&o.flags&2){if(e&&o.id!==e.uid)continue;Ee.splice(n,1),n--,o.flags&4&&(o.flags&=-2),o(),o.flags&4||(o.flags&=-2)}}}function wi(e){if(en.length){const t=[...new Set(en)].sort((n,o)=>Sn(n)-Sn(o));if(en.length=0,Ot){Ot.push(...t);return}for(Ot=t,tn=0;tn<Ot.length;tn++){const n=Ot[tn];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ot=null,tn=0}}const Sn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function xi(e){try{for(st=0;st<Ee.length;st++){const t=Ee[st];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Qt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;st<Ee.length;st++){const t=Ee[st];t&&(t.flags&=-2)}st=-1,Ee.length=0,wi(),ss=null,(Ee.length||en.length)&&xi()}}let Ce=null,Si=null;function os(e){const t=Ce;return Ce=e,Si=e&&e.type.__scopeId||null,t}function kl(e,t=Ce,n){if(!t||e._n)return e;const o=(...s)=>{o._d&&Bi(-1);const i=os(t);let a;try{a=e(...s)}finally{os(i),o._d&&Bi(1)}return a};return o._n=!0,o._c=!0,o._d=!0,o}function _e(e,t){if(Ce===null)return e;const n=us(Ce),o=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[i,a,l,c=be]=t[s];i&&(ue(i)&&(i={mounted:i,updated:i}),i.deep&&vt(a),o.push({dir:i,instance:n,value:a,oldValue:void 0,arg:l,modifiers:c}))}return e}function Ht(e,t,n,o){const s=e.dirs,i=t&&t.dirs;for(let a=0;a<s.length;a++){const l=s[a];i&&(l.oldValue=i[a].value);let c=l.dir[o];c&&(pt(),_t(c,n,8,[e.el,l,e,t]),mt())}}const wl=Symbol("_vte"),xl=e=>e.__isTeleport,Sl=Symbol("_leaveCb");function Gs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Gs(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Me(e,t){return ue(e)?je({name:e.name},t,{setup:e}):e}function Il(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const is=new WeakMap;function In(e,t,n,o,s=!1){if(se(e)){e.forEach((A,v)=>In(A,t&&(se(t)?t[v]:t),n,o,s));return}if(nn(o)&&!s){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&In(e,t,n,o.component.subTree);return}const i=o.shapeFlag&4?us(o.component):o.el,a=s?null:i,{i:l,r:c}=e,m=t&&t.r,u=l.refs===be?l.refs={}:l.refs,_=l.setupState,T=re(_),S=_===be?Fo:A=>fe(T,A);if(m!=null&&m!==c){if(Ii(t),xe(m))u[m]=null,S(m)&&(_[m]=null);else if(Te(m)){m.value=null;const A=t;A.k&&(u[A.k]=null)}}if(ue(c))Qt(c,l,12,[a,u]);else{const A=xe(c),v=Te(c);if(A||v){const w=()=>{if(e.f){const C=A?S(c)?_[c]:u[c]:c.value;if(s)se(C)&&qo(C,i);else if(se(C))C.includes(i)||C.push(i);else if(A)u[c]=[i],S(c)&&(_[c]=u[c]);else{const E=[i];c.value=E,e.k&&(u[e.k]=E)}}else A?(u[c]=a,S(c)&&(_[c]=a)):v&&(c.value=a,e.k&&(u[e.k]=a))};if(a){const C=()=>{w(),is.delete(e)};C.id=-1,is.set(e,C),He(C,n)}else Ii(e),w()}}}function Ii(e){const t=is.get(e);t&&(t.flags|=8,is.delete(e))}Wn().requestIdleCallback,Wn().cancelIdleCallback;const nn=e=>!!e.type.__asyncLoader,Cl=e=>e.type.__isKeepAlive;function Al(e,t,n=Le,o=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{pt();const l=ao(n),c=_t(t,n,e,a);return l(),mt(),c});return o?s.unshift(i):s.push(i),i}}const Ci=e=>(t,n=Le)=>{(!En||e==="sp")&&Al(e,(...o)=>t(...o),n)},Cn=Ci("m"),sn=Ci("bum"),Tl="components";function $l(e,t){return El(Tl,e,!0,t)||e}const Ol=Symbol.for("v-ndc");function El(e,t,n=!0,o=!1){const s=Ce||Le;if(s){const i=s.type;{const l=Qi(i,!1);if(l&&(l===t||l===Oe(t)||l===Vn(Oe(t))))return i}const a=Ai(s[e]||i[e],t)||Ai(s.appContext[e],t);return!a&&o?i:a}}function Ai(e,t){return e&&(e[t]||e[Oe(t)]||e[Vn(Oe(t))])}function ke(e,t,n,o){let s;const i=n,a=se(e);if(a||xe(e)){const l=a&&Ft(e);let c=!1,m=!1;l&&(c=!Ke(e),m=yt(e),e=Gn(e)),s=new Array(e.length);for(let u=0,_=e.length;u<_;u++)s[u]=t(c?m?Xt(Je(e[u])):Je(e[u]):e[u],u,void 0,i)}else if(typeof e=="number"){s=new Array(e);for(let l=0;l<e;l++)s[l]=t(l+1,l,void 0,i)}else if(ye(e))if(e[Symbol.iterator])s=Array.from(e,(l,c)=>t(l,c,void 0,i));else{const l=Object.keys(e);s=new Array(l.length);for(let c=0,m=l.length;c<m;c++){const u=l[c];s[c]=t(e[u],u,c,i)}}else s=[];return s}function Ml(e,t,n={},o,s){if(Ce.ce||Ce.parent&&nn(Ce.parent)&&Ce.parent.ce){const m=Object.keys(n).length>0;return n.name=t,h(),Ne(K,null,[Ie("slot",n,o)],m?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),h();const a=i&&Ti(i(n)),l=n.key||a&&a.key,c=Ne(K,{key:(l&&!Ge(l)?l:`_${t}`)+(!a&&o?"_fb":"")},a||[],a&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),i&&i._c&&(i._d=!0),c}function Ti(e){return e.some(t=>oo(t)?!(t.type===kt||t.type===K&&!Ti(t.children)):!0)?e:null}const Zs=e=>e?Zi(e)?us(e):Zs(e.parent):null,An=je(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Zs(e.parent),$root:e=>Zs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{Ys(e.update)}),$nextTick:e=>e.n||(e.n=We.bind(e.proxy)),$watch:e=>Lt}),Js=(e,t)=>e!==be&&!e.__isScriptSetup&&fe(e,t),Nl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:s,props:i,accessCache:a,type:l,appContext:c}=e;if(t[0]!=="$"){const T=a[t];if(T!==void 0)switch(T){case 1:return o[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(Js(o,t))return a[t]=1,o[t];if(fe(i,t))return a[t]=3,i[t];if(n!==be&&fe(n,t))return a[t]=4,n[t];a[t]=0}}const m=An[t];let u,_;if(m)return t==="$attrs"&&Ae(e.attrs,"get",""),m(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==be&&fe(n,t))return a[t]=4,n[t];if(_=c.config.globalProperties,fe(_,t))return _[t]},set({_:e},t,n){const{data:o,setupState:s,ctx:i}=e;return Js(s,t)?(s[t]=n,!0):fe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:s,props:i,type:a}},l){let c;return!!(n[l]||Js(t,l)||fe(i,l)||fe(o,l)||fe(An,l)||fe(s.config.globalProperties,l)||(c=a.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:fe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function $i(){return{app:null,config:{isNativeTag:Fo,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Pl=0;function Rl(e,t){return function(o,s=null){ue(o)||(o=je({},o)),s!=null&&!ye(s)&&(s=null);const i=$i(),a=new WeakSet,l=[];let c=!1;const m=i.app={_uid:Pl++,_component:o,_props:s,_container:null,_context:i,_instance:null,version:gc,get config(){return i.config},set config(u){},use(u,..._){return a.has(u)||(u&&ue(u.install)?(a.add(u),u.install(m,..._)):ue(u)&&(a.add(u),u(m,..._))),m},mixin(u){return m},component(u,_){return _?(i.components[u]=_,m):i.components[u]},directive(u,_){return _?(i.directives[u]=_,m):i.directives[u]},mount(u,_,T){if(!c){const S=m._ceVNode||Ie(o,s);return S.appContext=i,T===!0?T="svg":T===!1&&(T=void 0),e(S,u,T),c=!0,m._container=u,u.__vue_app__=m,us(S.component)}},onUnmount(u){l.push(u)},unmount(){c&&(_t(l,m._instance,16),e(null,m._container),delete m._container.__vue_app__)},provide(u,_){return i.provides[u]=_,m},runWithContext(u){const _=on;on=m;try{return u()}finally{on=_}}};return m}}let on=null;function Oi(e,t){if(Le){let n=Le.provides;const o=Le.parent&&Le.parent.provides;o===n&&(n=Le.provides=Object.create(o)),n[e]=t}}function Xs(e,t,n=!1){const o=Yi();if(o||on){let s=on?on._context.provides:o?o.parent==null||o.ce?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&ue(t)?t.call(o&&o.proxy):t}}const jl=Symbol.for("v-scx"),zl=()=>Xs(jl);function Xe(e,t,n){return Ll(e,t,n)}function Ll(e,t,n=be){const{immediate:o,deep:s,flush:i,once:a}=n,l=je({},n),c=t&&o||!t&&i!=="post";let m;if(En){if(i==="sync"){const S=zl();m=S.__watcherHandles||(S.__watcherHandles=[])}else if(!c){const S=()=>{};return S.stop=Lt,S.resume=Lt,S.pause=Lt,S}}const u=Le;l.call=(S,A,v)=>_t(S,u,A,v);let _=!1;i==="post"?l.scheduler=S=>{He(S,u&&u.suspense)}:i!=="sync"&&(_=!0,l.scheduler=(S,A)=>{A?S():Ys(S)}),l.augmentJob=S=>{t&&(S.flags|=4),_&&(S.flags|=2,u&&(S.id=u.uid,S.i=u))};const T=pl(e,t,l);return En&&(m?m.push(T):c&&T()),T}const Dl=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Oe(t)}Modifiers`]||e[`${qe(t)}Modifiers`];function Ul(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||be;let s=n;const i=t.startsWith("update:"),a=i&&Dl(o,t.slice(7));a&&(a.trim&&(s=n.map(u=>xe(u)?u.trim():u)),a.number&&(s=n.map(Kn)));let l,c=o[l=Os(t)]||o[l=Os(Oe(t))];!c&&i&&(c=o[l=Os(qe(t))]),c&&_t(c,e,6,s);const m=o[l+"Once"];if(m){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,_t(m,e,6,s)}}function Fl(e,t,n=!1){const o=t.emitsCache,s=o.get(e);if(s!==void 0)return s;const i=e.emits;let a={};return i?(se(i)?i.forEach(l=>a[l]=null):je(a,i),ye(e)&&o.set(e,a),a):(ye(e)&&o.set(e,null),null)}function rs(e,t){return!e||!Fn(t)?!1:(t=t.slice(2).replace(/Once$/,""),fe(e,t[0].toLowerCase()+t.slice(1))||fe(e,qe(t))||fe(e,t))}function Oy(){}function Ei(e){const{type:t,vnode:n,proxy:o,withProxy:s,propsOptions:[i],slots:a,attrs:l,emit:c,render:m,renderCache:u,props:_,data:T,setupState:S,ctx:A,inheritAttrs:v}=e,w=os(e);let C,E;try{if(n.shapeFlag&4){const b=s||o,I=b;C=ot(m.call(I,b,u,_,S,T,A)),E=l}else{const b=t;C=ot(b.length>1?b(_,{attrs:l,slots:a,emit:c}):b(_,null)),E=t.props?l:ql(l)}}catch(b){Tn.length=0,ns(b,e,1),C=Ie(kt)}let j=C;if(E&&v!==!1){const b=Object.keys(E),{shapeFlag:I}=j;b.length&&I&7&&(i&&b.some(Ts)&&(E=Hl(E,i)),j=rn(j,E,!1,!0))}return n.dirs&&(j=rn(j,null,!1,!0),j.dirs=j.dirs?j.dirs.concat(n.dirs):n.dirs),n.transition&&Gs(j,n.transition),C=j,os(w),C}const ql=e=>{let t;for(const n in e)(n==="class"||n==="style"||Fn(n))&&((t||(t={}))[n]=e[n]);return t},Hl=(e,t)=>{const n={};for(const o in e)(!Ts(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Vl(e,t,n){const{props:o,children:s,component:i}=e,{props:a,children:l,patchFlag:c}=t,m=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return o?Mi(o,a,m):!!a;if(c&8){const u=t.dynamicProps;for(let _=0;_<u.length;_++){const T=u[_];if(a[T]!==o[T]&&!rs(m,T))return!0}}}else return(s||l)&&(!l||!l.$stable)?!0:o===a?!1:o?a?Mi(o,a,m):!0:!!a;return!1}function Mi(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const i=o[s];if(t[i]!==e[i]&&!rs(n,i))return!0}return!1}function Bl({vnode:e,parent:t},n){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.el=e.el),o===e)(e=t.vnode).el=n,t=t.parent;else break}}const Ni={},Pi=()=>Object.create(Ni),Ri=e=>Object.getPrototypeOf(e)===Ni;function Kl(e,t,n,o=!1){const s={},i=Pi();e.propsDefaults=Object.create(null),ji(e,t,s,i);for(const a in e.propsOptions[0])a in s||(s[a]=void 0);n?e.props=o?s:rl(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Wl(e,t,n,o){const{props:s,attrs:i,vnode:{patchFlag:a}}=e,l=re(s),[c]=e.propsOptions;let m=!1;if((o||a>0)&&!(a&16)){if(a&8){const u=e.vnode.dynamicProps;for(let _=0;_<u.length;_++){let T=u[_];if(rs(e.emitsOptions,T))continue;const S=t[T];if(c)if(fe(i,T))S!==i[T]&&(i[T]=S,m=!0);else{const A=Oe(T);s[A]=Qs(c,l,A,S,e,!1)}else S!==i[T]&&(i[T]=S,m=!0)}}}else{ji(e,t,s,i)&&(m=!0);let u;for(const _ in l)(!t||!fe(t,_)&&((u=qe(_))===_||!fe(t,u)))&&(c?n&&(n[_]!==void 0||n[u]!==void 0)&&(s[_]=Qs(c,l,_,void 0,e,!0)):delete s[_]);if(i!==l)for(const _ in i)(!t||!fe(t,_))&&(delete i[_],m=!0)}m&&ht(e.attrs,"set","")}function ji(e,t,n,o){const[s,i]=e.propsOptions;let a=!1,l;if(t)for(let c in t){if(gn(c))continue;const m=t[c];let u;s&&fe(s,u=Oe(c))?!i||!i.includes(u)?n[u]=m:(l||(l={}))[u]=m:rs(e.emitsOptions,c)||(!(c in o)||m!==o[c])&&(o[c]=m,a=!0)}if(i){const c=re(n),m=l||be;for(let u=0;u<i.length;u++){const _=i[u];n[_]=Qs(s,c,_,m[_],e,!fe(m,_))}}return a}function Qs(e,t,n,o,s,i){const a=e[n];if(a!=null){const l=fe(a,"default");if(l&&o===void 0){const c=a.default;if(a.type!==Function&&!a.skipFactory&&ue(c)){const{propsDefaults:m}=s;if(n in m)o=m[n];else{const u=ao(s);o=m[n]=c.call(null,t),u()}}else o=c;s.ce&&s.ce._setProp(n,o)}a[0]&&(i&&!l?o=!1:a[1]&&(o===""||o===qe(n))&&(o=!0))}return o}function Yl(e,t,n=!1){const o=t.propsCache,s=o.get(e);if(s)return s;const i=e.props,a={},l=[];if(!i)return ye(e)&&o.set(e,Yt),Yt;if(se(i))for(let m=0;m<i.length;m++){const u=Oe(i[m]);zi(u)&&(a[u]=be)}else if(i)for(const m in i){const u=Oe(m);if(zi(u)){const _=i[m],T=a[u]=se(_)||ue(_)?{type:_}:je({},_),S=T.type;let A=!1,v=!0;if(se(S))for(let w=0;w<S.length;++w){const C=S[w],E=ue(C)&&C.name;if(E==="Boolean"){A=!0;break}else E==="String"&&(v=!1)}else A=ue(S)&&S.name==="Boolean";T[0]=A,T[1]=v,(A||fe(T,"default"))&&l.push(u)}}const c=[a,l];return ye(e)&&o.set(e,c),c}function zi(e){return e[0]!=="$"&&!gn(e)}const eo=e=>e==="_"||e==="_ctx"||e==="$stable",to=e=>se(e)?e.map(ot):[ot(e)],Gl=(e,t,n)=>{if(t._n)return t;const o=kl((...s)=>to(t(...s)),n);return o._c=!1,o},Li=(e,t,n)=>{const o=e._ctx;for(const s in e){if(eo(s))continue;const i=e[s];if(ue(i))t[s]=Gl(s,i,o);else if(i!=null){const a=to(i);t[s]=()=>a}}},Di=(e,t)=>{const n=to(t);e.slots.default=()=>n},Ui=(e,t,n)=>{for(const o in t)(n||!eo(o))&&(e[o]=t[o])},Zl=(e,t,n)=>{const o=e.slots=Pi();if(e.vnode.shapeFlag&32){const s=t._;s?(Ui(o,t,n),n&&Ko(o,"_",s,!0)):Li(t,o)}else t&&Di(e,t)},Jl=(e,t,n)=>{const{vnode:o,slots:s}=e;let i=!0,a=be;if(o.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:Ui(s,t,n):(i=!t.$stable,Li(t,s)),a=t}else t&&(Di(e,t),a={default:1});if(i)for(const l in s)!eo(l)&&a[l]==null&&delete s[l]},He=nc;function Xl(e){return Ql(e)}function Ql(e,t){const n=Wn();n.__VUE__=!0;const{insert:o,remove:s,patchProp:i,createElement:a,createText:l,createComment:c,setText:m,setElementText:u,parentNode:_,nextSibling:T,setScopeId:S=Lt,insertStaticContent:A}=e,v=(d,y,x,M=null,O=null,P=null,F=void 0,z=null,L=!!y.dynamicChildren)=>{if(d===y)return;d&&!On(d,y)&&(M=hn(d),oe(d,O,P,!0),d=null),y.patchFlag===-2&&(L=!1,y.dynamicChildren=null);const{type:R,ref:te,shapeFlag:B}=y;switch(R){case as:w(d,y,x,M);break;case kt:C(d,y,x,M);break;case so:d==null&&E(y,x,M,F);break;case K:ge(d,y,x,M,O,P,F,z,L);break;default:B&1?I(d,y,x,M,O,P,F,z,L):B&6?we(d,y,x,M,O,P,F,z,L):(B&64||B&128)&&R.process(d,y,x,M,O,P,F,z,L,At)}te!=null&&O?In(te,d&&d.ref,P,y||d,!y):te==null&&d&&d.ref!=null&&In(d.ref,null,P,d,!0)},w=(d,y,x,M)=>{if(d==null)o(y.el=l(y.children),x,M);else{const O=y.el=d.el;y.children!==d.children&&m(O,y.children)}},C=(d,y,x,M)=>{d==null?o(y.el=c(y.children||""),x,M):y.el=d.el},E=(d,y,x,M)=>{[d.el,d.anchor]=A(d.children,y,x,M,d.el,d.anchor)},j=({el:d,anchor:y},x,M)=>{let O;for(;d&&d!==y;)O=T(d),o(d,x,M),d=O;o(y,x,M)},b=({el:d,anchor:y})=>{let x;for(;d&&d!==y;)x=T(d),s(d),d=x;s(y)},I=(d,y,x,M,O,P,F,z,L)=>{if(y.type==="svg"?F="svg":y.type==="math"&&(F="mathml"),d==null)q(y,x,M,O,P,F,z,L);else{const R=d.el&&d.el._isVueCE?d.el:null;try{R&&R._beginPatch(),W(d,y,O,P,F,z,L)}finally{R&&R._endPatch()}}},q=(d,y,x,M,O,P,F,z)=>{let L,R;const{props:te,shapeFlag:B,transition:ee,dirs:ne}=d;if(L=d.el=a(d.type,P,te&&te.is,te),B&8?u(L,d.children):B&16&&D(d.children,L,null,M,O,no(d,P),F,z),ne&&Ht(d,null,M,"created"),G(L,d,d.scopeId,F,M),te){for(const he in te)he!=="value"&&!gn(he)&&i(L,he,null,te[he],P,M);"value"in te&&i(L,"value",null,te.value,P),(R=te.onVnodeBeforeMount)&&it(R,M,d)}ne&&Ht(d,null,M,"beforeMount");const ie=ec(O,ee);ie&&ee.beforeEnter(L),o(L,y,x),((R=te&&te.onVnodeMounted)||ie||ne)&&He(()=>{R&&it(R,M,d),ie&&ee.enter(L),ne&&Ht(d,null,M,"mounted")},O)},G=(d,y,x,M,O)=>{if(x&&S(d,x),M)for(let P=0;P<M.length;P++)S(d,M[P]);if(O){let P=O.subTree;if(y===P||Vi(P.type)&&(P.ssContent===y||P.ssFallback===y)){const F=O.vnode;G(d,F,F.scopeId,F.slotScopeIds,O.parent)}}},D=(d,y,x,M,O,P,F,z,L=0)=>{for(let R=L;R<d.length;R++){const te=d[R]=z?Mt(d[R]):ot(d[R]);v(null,te,y,x,M,O,P,F,z)}},W=(d,y,x,M,O,P,F)=>{const z=y.el=d.el;let{patchFlag:L,dynamicChildren:R,dirs:te}=y;L|=d.patchFlag&16;const B=d.props||be,ee=y.props||be;let ne;if(x&&Vt(x,!1),(ne=ee.onVnodeBeforeUpdate)&&it(ne,x,y,d),te&&Ht(y,d,x,"beforeUpdate"),x&&Vt(x,!0),(B.innerHTML&&ee.innerHTML==null||B.textContent&&ee.textContent==null)&&u(z,""),R?Q(d.dynamicChildren,R,z,x,M,no(y,O),P):F||$(d,y,z,null,x,M,no(y,O),P,!1),L>0){if(L&16)ae(z,B,ee,x,O);else if(L&2&&B.class!==ee.class&&i(z,"class",null,ee.class,O),L&4&&i(z,"style",B.style,ee.style,O),L&8){const ie=y.dynamicProps;for(let he=0;he<ie.length;he++){const de=ie[he],Ue=B[de],Fe=ee[de];(Fe!==Ue||de==="value")&&i(z,de,Ue,Fe,O,x)}}L&1&&d.children!==y.children&&u(z,y.children)}else!F&&R==null&&ae(z,B,ee,x,O);((ne=ee.onVnodeUpdated)||te)&&He(()=>{ne&&it(ne,x,y,d),te&&Ht(y,d,x,"updated")},M)},Q=(d,y,x,M,O,P,F)=>{for(let z=0;z<y.length;z++){const L=d[z],R=y[z],te=L.el&&(L.type===K||!On(L,R)||L.shapeFlag&198)?_(L.el):x;v(L,R,te,null,M,O,P,F,!0)}},ae=(d,y,x,M,O)=>{if(y!==x){if(y!==be)for(const P in y)!gn(P)&&!(P in x)&&i(d,P,y[P],null,O,M);for(const P in x){if(gn(P))continue;const F=x[P],z=y[P];F!==z&&P!=="value"&&i(d,P,z,F,O,M)}"value"in x&&i(d,"value",y.value,x.value,O)}},ge=(d,y,x,M,O,P,F,z,L)=>{const R=y.el=d?d.el:l(""),te=y.anchor=d?d.anchor:l("");let{patchFlag:B,dynamicChildren:ee,slotScopeIds:ne}=y;ne&&(z=z?z.concat(ne):ne),d==null?(o(R,x,M),o(te,x,M),D(y.children||[],x,te,O,P,F,z,L)):B>0&&B&64&&ee&&d.dynamicChildren?(Q(d.dynamicChildren,ee,x,O,P,F,z),(y.key!=null||O&&y===O.subTree)&&Fi(d,y,!0)):$(d,y,x,te,O,P,F,z,L)},we=(d,y,x,M,O,P,F,z,L)=>{y.slotScopeIds=z,d==null?y.shapeFlag&512?O.ctx.activate(y,x,M,F,L):X(y,x,M,O,P,F,L):Y(d,y,L)},X=(d,y,x,M,O,P,F)=>{const z=d.component=cc(d,M,O);if(Cl(d)&&(z.ctx.renderer=At),uc(z,!1,F),z.asyncDep){if(O&&O.registerDep(z,H,F),!d.el){const L=z.subTree=Ie(kt);C(null,L,y,x),d.placeholder=L.el}}else H(z,d,y,x,O,P,F)},Y=(d,y,x)=>{const M=y.component=d.component;if(Vl(d,y,x))if(M.asyncDep&&!M.asyncResolved){V(M,y,x);return}else M.next=y,M.update();else y.el=d.el,M.vnode=y},H=(d,y,x,M,O,P,F)=>{const z=()=>{if(d.isMounted){let{next:B,bu:ee,u:ne,parent:ie,vnode:he}=d;{const dt=qi(d);if(dt){B&&(B.el=he.el,V(d,B,F)),dt.asyncDep.then(()=>{d.isUnmounted||z()});return}}let de=B,Ue;Vt(d,!1),B?(B.el=he.el,V(d,B,F)):B=he,ee&&Bn(ee),(Ue=B.props&&B.props.onVnodeBeforeUpdate)&&it(Ue,ie,B,he),Vt(d,!0);const Fe=Ei(d),ut=d.subTree;d.subTree=Fe,v(ut,Fe,_(ut.el),hn(ut),d,O,P),B.el=Fe.el,de===null&&Bl(d,Fe.el),ne&&He(ne,O),(Ue=B.props&&B.props.onVnodeUpdated)&&He(()=>it(Ue,ie,B,he),O)}else{let B;const{el:ee,props:ne}=y,{bm:ie,m:he,parent:de,root:Ue,type:Fe}=d,ut=nn(y);Vt(d,!1),ie&&Bn(ie),!ut&&(B=ne&&ne.onVnodeBeforeMount)&&it(B,de,y),Vt(d,!0);{Ue.ce&&Ue.ce._def.shadowRoot!==!1&&Ue.ce._injectChildStyle(Fe);const dt=d.subTree=Ei(d);v(null,dt,x,M,d,O,P),y.el=dt.el}if(he&&He(he,O),!ut&&(B=ne&&ne.onVnodeMounted)){const dt=y;He(()=>it(B,de,dt),O)}(y.shapeFlag&256||de&&nn(de.vnode)&&de.vnode.shapeFlag&256)&&d.a&&He(d.a,O),d.isMounted=!0,y=x=M=null}};d.scope.on();const L=d.effect=new Xo(z);d.scope.off();const R=d.update=L.run.bind(L),te=d.job=L.runIfDirty.bind(L);te.i=d,te.id=d.uid,L.scheduler=()=>Ys(te),Vt(d,!0),R()},V=(d,y,x)=>{y.component=d;const M=d.vnode.props;d.vnode=y,d.next=null,Wl(d,y.props,M,x),Jl(d,y.children,x),pt(),ki(d),mt()},$=(d,y,x,M,O,P,F,z,L=!1)=>{const R=d&&d.children,te=d?d.shapeFlag:0,B=y.children,{patchFlag:ee,shapeFlag:ne}=y;if(ee>0){if(ee&128){De(R,B,x,M,O,P,F,z,L);return}else if(ee&256){J(R,B,x,M,O,P,F,z,L);return}}ne&8?(te&16&&Ct(R,O,P),B!==R&&u(x,B)):te&16?ne&16?De(R,B,x,M,O,P,F,z,L):Ct(R,O,P,!0):(te&8&&u(x,""),ne&16&&D(B,x,M,O,P,F,z,L))},J=(d,y,x,M,O,P,F,z,L)=>{d=d||Yt,y=y||Yt;const R=d.length,te=y.length,B=Math.min(R,te);let ee;for(ee=0;ee<B;ee++){const ne=y[ee]=L?Mt(y[ee]):ot(y[ee]);v(d[ee],ne,x,null,O,P,F,z,L)}R>te?Ct(d,O,P,!0,!1,B):D(y,x,M,O,P,F,z,L,B)},De=(d,y,x,M,O,P,F,z,L)=>{let R=0;const te=y.length;let B=d.length-1,ee=te-1;for(;R<=B&&R<=ee;){const ne=d[R],ie=y[R]=L?Mt(y[R]):ot(y[R]);if(On(ne,ie))v(ne,ie,x,null,O,P,F,z,L);else break;R++}for(;R<=B&&R<=ee;){const ne=d[B],ie=y[ee]=L?Mt(y[ee]):ot(y[ee]);if(On(ne,ie))v(ne,ie,x,null,O,P,F,z,L);else break;B--,ee--}if(R>B){if(R<=ee){const ne=ee+1,ie=ne<te?y[ne].el:M;for(;R<=ee;)v(null,y[R]=L?Mt(y[R]):ot(y[R]),x,ie,O,P,F,z,L),R++}}else if(R>ee)for(;R<=B;)oe(d[R],O,P,!0),R++;else{const ne=R,ie=R,he=new Map;for(R=ie;R<=ee;R++){const Be=y[R]=L?Mt(y[R]):ot(y[R]);Be.key!=null&&he.set(Be.key,R)}let de,Ue=0;const Fe=ee-ie+1;let ut=!1,dt=0;const Un=new Array(Fe);for(R=0;R<Fe;R++)Un[R]=0;for(R=ne;R<=B;R++){const Be=d[R];if(Ue>=Fe){oe(Be,O,P,!0);continue}let ft;if(Be.key!=null)ft=he.get(Be.key);else for(de=ie;de<=ee;de++)if(Un[de-ie]===0&&On(Be,y[de])){ft=de;break}ft===void 0?oe(Be,O,P,!0):(Un[ft-ie]=R+1,ft>=dt?dt=ft:ut=!0,v(Be,y[ft],x,null,O,P,F,z,L),Ue++)}const Aa=ut?tc(Un):Yt;for(de=Aa.length-1,R=Fe-1;R>=0;R--){const Be=ie+R,ft=y[Be],Ta=y[Be+1],$a=Be+1<te?Ta.el||Ta.placeholder:M;Un[R]===0?v(null,ft,x,$a,O,P,F,z,L):ut&&(de<0||R!==Aa[de]?Z(ft,x,$a,2):de--)}}},Z=(d,y,x,M,O=null)=>{const{el:P,type:F,transition:z,children:L,shapeFlag:R}=d;if(R&6){Z(d.component.subTree,y,x,M);return}if(R&128){d.suspense.move(y,x,M);return}if(R&64){F.move(d,y,x,At);return}if(F===K){o(P,y,x);for(let B=0;B<L.length;B++)Z(L[B],y,x,M);o(d.anchor,y,x);return}if(F===so){j(d,y,x);return}if(M!==2&&R&1&&z)if(M===0)z.beforeEnter(P),o(P,y,x),He(()=>z.enter(P),O);else{const{leave:B,delayLeave:ee,afterLeave:ne}=z,ie=()=>{d.ctx.isUnmounted?s(P):o(P,y,x)},he=()=>{P._isLeaving&&P[Sl](!0),B(P,()=>{ie(),ne&&ne()})};ee?ee(P,ie,he):he()}else o(P,y,x)},oe=(d,y,x,M=!1,O=!1)=>{const{type:P,props:F,ref:z,children:L,dynamicChildren:R,shapeFlag:te,patchFlag:B,dirs:ee,cacheIndex:ne}=d;if(B===-2&&(O=!1),z!=null&&(pt(),In(z,null,x,d,!0),mt()),ne!=null&&(y.renderCache[ne]=void 0),te&256){y.ctx.deactivate(d);return}const ie=te&1&&ee,he=!nn(d);let de;if(he&&(de=F&&F.onVnodeBeforeUnmount)&&it(de,y,d),te&6)Ln(d.component,x,M);else{if(te&128){d.suspense.unmount(x,M);return}ie&&Ht(d,null,y,"beforeUnmount"),te&64?d.type.remove(d,y,x,At,M):R&&!R.hasOnce&&(P!==K||B>0&&B&64)?Ct(R,y,x,!1,!0):(P===K&&B&384||!O&&te&16)&&Ct(L,y,x),M&&$e(d)}(he&&(de=F&&F.onVnodeUnmounted)||ie)&&He(()=>{de&&it(de,y,d),ie&&Ht(d,null,y,"unmounted")},x)},$e=d=>{const{type:y,el:x,anchor:M,transition:O}=d;if(y===K){mn(x,M);return}if(y===so){b(d);return}const P=()=>{s(x),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(d.shapeFlag&1&&O&&!O.persisted){const{leave:F,delayLeave:z}=O,L=()=>F(x,P);z?z(d.el,P,L):L()}else P()},mn=(d,y)=>{let x;for(;d!==y;)x=T(d),s(d),d=x;s(y)},Ln=(d,y,x)=>{const{bum:M,scope:O,job:P,subTree:F,um:z,m:L,a:R}=d;Hi(L),Hi(R),M&&Bn(M),O.stop(),P&&(P.flags|=8,oe(F,d,y,x)),z&&He(z,y),He(()=>{d.isUnmounted=!0},y)},Ct=(d,y,x,M=!1,O=!1,P=0)=>{for(let F=P;F<d.length;F++)oe(d[F],y,x,M,O)},hn=d=>{if(d.shapeFlag&6)return hn(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const y=T(d.anchor||d.el),x=y&&y[wl];return x?T(x):y};let Dn=!1;const Cs=(d,y,x)=>{d==null?y._vnode&&oe(y._vnode,null,null,!0):v(y._vnode||null,d,y,null,null,null,x),y._vnode=d,Dn||(Dn=!0,ki(),wi(),Dn=!1)},At={p:v,um:oe,m:Z,r:$e,mt:X,mc:D,pc:$,pbc:Q,n:hn,o:e};return{render:Cs,hydrate:void 0,createApp:Rl(Cs)}}function no({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Vt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ec(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Fi(e,t,n=!1){const o=e.children,s=t.children;if(se(o)&&se(s))for(let i=0;i<o.length;i++){const a=o[i];let l=s[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=s[i]=Mt(s[i]),l.el=a.el),!n&&l.patchFlag!==-2&&Fi(a,l)),l.type===as&&l.patchFlag!==-1&&(l.el=a.el),l.type===kt&&!l.el&&(l.el=a.el)}}function tc(e){const t=e.slice(),n=[0];let o,s,i,a,l;const c=e.length;for(o=0;o<c;o++){const m=e[o];if(m!==0){if(s=n[n.length-1],e[s]<m){t[o]=s,n.push(o);continue}for(i=0,a=n.length-1;i<a;)l=i+a>>1,e[n[l]]<m?i=l+1:a=l;m<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}function qi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:qi(t)}function Hi(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const Vi=e=>e.__isSuspense;function nc(e,t){t&&t.pendingBranch?se(e)?t.effects.push(...e):t.effects.push(e):_l(e)}const K=Symbol.for("v-fgt"),as=Symbol.for("v-txt"),kt=Symbol.for("v-cmt"),so=Symbol.for("v-stc"),Tn=[];let Ve=null;function h(e=!1){Tn.push(Ve=e?null:[])}function sc(){Tn.pop(),Ve=Tn[Tn.length-1]||null}let $n=1;function Bi(e,t=!1){$n+=e,e<0&&Ve&&t&&(Ve.hasOnce=!0)}function Ki(e){return e.dynamicChildren=$n>0?Ve||Yt:null,sc(),$n>0&&Ve&&Ve.push(e),e}function g(e,t,n,o,s,i){return Ki(f(e,t,n,o,s,i,!0))}function Ne(e,t,n,o,s){return Ki(Ie(e,t,n,o,s,!0))}function oo(e){return e?e.__v_isVNode===!0:!1}function On(e,t){return e.type===t.type&&e.key===t.key}const Wi=({key:e})=>e??null,ls=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?xe(e)||Te(e)||ue(e)?{i:Ce,r:e,k:t,f:!!n}:e:null);function f(e,t=null,n=null,o=0,s=null,i=e===K?0:1,a=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wi(t),ref:t&&ls(t),scopeId:Si,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Ce};return l?(io(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=xe(n)?8:16),$n>0&&!a&&Ve&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Ve.push(c),c}const Ie=oc;function oc(e,t=null,n=null,o=0,s=null,i=!1){if((!e||e===Ol)&&(e=kt),oo(e)){const l=rn(e,t,!0);return n&&io(l,n),$n>0&&!i&&Ve&&(l.shapeFlag&6?Ve[Ve.indexOf(e)]=l:Ve.push(l)),l.patchFlag=-2,l}if(bc(e)&&(e=e.__vccOpts),t){t=ic(t);let{class:l,style:c}=t;l&&!xe(l)&&(t.class=nt(l)),ye(c)&&(Bs(c)&&!se(c)&&(c=je({},c)),t.style=Yn(c))}const a=xe(e)?1:Vi(e)?128:xl(e)?64:ye(e)?4:ue(e)?2:0;return f(e,t,n,o,s,a,i,!0)}function ic(e){return e?Bs(e)||Ri(e)?je({},e):e:null}function rn(e,t,n=!1,o=!1){const{props:s,ref:i,patchFlag:a,children:l,transition:c}=e,m=t?rc(s||{},t):s,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:m,key:m&&Wi(m),ref:t&&t.ref?n&&i?se(i)?i.concat(ls(t)):[i,ls(t)]:ls(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==K?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&rn(e.ssContent),ssFallback:e.ssFallback&&rn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&o&&Gs(u,c.clone(u)),u}function Et(e=" ",t=0){return Ie(as,null,e,t)}function N(e="",t=!1){return t?(h(),Ne(kt,null,e)):Ie(kt,null,e)}function ot(e){return e==null||typeof e=="boolean"?Ie(kt):se(e)?Ie(K,null,e.slice()):oo(e)?Mt(e):Ie(as,null,String(e))}function Mt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:rn(e)}function io(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(se(t))n=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),io(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Ri(t)?t._ctx=Ce:s===3&&Ce&&(Ce.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ue(t)?(t={default:t,_ctx:Ce},n=32):(t=String(t),o&64?(n=16,t=[Et(t)]):n=8);e.children=t,e.shapeFlag|=n}function rc(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=nt([t.class,o.class]));else if(s==="style")t.style=Yn([t.style,o.style]);else if(Fn(s)){const i=t[s],a=o[s];a&&i!==a&&!(se(i)&&i.includes(a))&&(t[s]=i?[].concat(i,a):a)}else s!==""&&(t[s]=o[s])}return t}function it(e,t,n,o=null){_t(e,t,7,[n,o])}const ac=$i();let lc=0;function cc(e,t,n){const o=e.type,s=(t?t.appContext:e.appContext)||ac,i={uid:lc++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ua(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Yl(o,s),emitsOptions:Fl(o,s),emit:null,emitted:null,propsDefaults:be,inheritAttrs:o.inheritAttrs,ctx:be,data:be,props:be,attrs:be,slots:be,refs:be,setupState:be,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Ul.bind(null,i),e.ce&&e.ce(i),i}let Le=null;const Yi=()=>Le||Ce;let cs,ro;{const e=Wn(),t=(n,o)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(o),i=>{s.length>1?s.forEach(a=>a(i)):s[0](i)}};cs=t("__VUE_INSTANCE_SETTERS__",n=>Le=n),ro=t("__VUE_SSR_SETTERS__",n=>En=n)}const ao=e=>{const t=Le;return cs(e),e.scope.on(),()=>{e.scope.off(),cs(t)}},Gi=()=>{Le&&Le.scope.off(),cs(null)};function Zi(e){return e.vnode.shapeFlag&4}let En=!1;function uc(e,t=!1,n=!1){t&&ro(t);const{props:o,children:s}=e.vnode,i=Zi(e);Kl(e,o,i,t),Zl(e,s,n||t);const a=i?dc(e,t):void 0;return t&&ro(!1),a}function dc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Nl);const{setup:o}=n;if(o){pt();const s=e.setupContext=o.length>1?pc(e):null,i=ao(e),a=Qt(o,e,0,[e.props,s]),l=Vo(a);if(mt(),i(),(l||e.sp)&&!nn(e)&&Il(e),l){if(a.then(Gi,Gi),t)return a.then(c=>{Ji(e,c)}).catch(c=>{ns(c,e,0)});e.asyncDep=a}else Ji(e,a)}else Xi(e)}function Ji(e,t,n){ue(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ye(t)&&(e.setupState=gi(t)),Xi(e)}function Xi(e,t,n){const o=e.type;e.render||(e.render=o.render||Lt)}const fc={get(e,t){return Ae(e,"get",""),e[t]}};function pc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,fc),slots:e.slots,emit:e.emit,expose:t}}function us(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(gi(al(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in An)return An[n](e)},has(t,n){return n in t||n in An}})):e.proxy}const mc=/(?:^|[-_])\w/g,hc=e=>e.replace(mc,t=>t.toUpperCase()).replace(/[-_]/g,"");function Qi(e,t=!0){return ue(e)?e.displayName||e.name:e.name||t&&e.__name}function er(e,t,n=!1){let o=Qi(t);if(!o&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(o=s[1])}if(!o&&e){const s=i=>{for(const a in i)if(i[a]===t)return a};o=s(e.components)||e.parent&&s(e.parent.type.components)||s(e.appContext.components)}return o?hc(o):n?"App":"Anonymous"}function bc(e){return ue(e)&&"__vccOpts"in e}const U=(e,t)=>dl(e,t,En),gc="3.5.25";let lo;const tr=typeof window<"u"&&window.trustedTypes;if(tr)try{lo=tr.createPolicy("vue",{createHTML:e=>e})}catch{}const nr=lo?e=>lo.createHTML(e):e=>e,yc="http://www.w3.org/2000/svg",vc="http://www.w3.org/1998/Math/MathML",wt=typeof document<"u"?document:null,sr=wt&&wt.createElement("template"),_c={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const s=t==="svg"?wt.createElementNS(yc,e):t==="mathml"?wt.createElementNS(vc,e):n?wt.createElement(e,{is:n}):wt.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>wt.createTextNode(e),createComment:e=>wt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,s,i){const a=n?n.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===i||!(s=s.nextSibling)););else{sr.innerHTML=nr(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const l=sr.content;if(o==="svg"||o==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},kc=Symbol("_vtc");function wc(e,t,n){const o=e[kc];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const or=Symbol("_vod"),xc=Symbol("_vsh"),Sc=Symbol(""),Ic=/(?:^|;)\s*display\s*:/;function Cc(e,t,n){const o=e.style,s=xe(n);let i=!1;if(n&&!s){if(t)if(xe(t))for(const a of t.split(";")){const l=a.slice(0,a.indexOf(":")).trim();n[l]==null&&ds(o,l,"")}else for(const a in t)n[a]==null&&ds(o,a,"");for(const a in n)a==="display"&&(i=!0),ds(o,a,n[a])}else if(s){if(t!==n){const a=o[Sc];a&&(n+=";"+a),o.cssText=n,i=Ic.test(n)}}else t&&e.removeAttribute("style");or in e&&(e[or]=i?o.display:"",e[xc]&&(o.display="none"))}const ir=/\s*!important$/;function ds(e,t,n){if(se(n))n.forEach(o=>ds(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Ac(e,t);ir.test(n)?e.setProperty(qe(o),n.replace(ir,""),"important"):e[o]=n}}const rr=["Webkit","Moz","ms"],co={};function Ac(e,t){const n=co[t];if(n)return n;let o=Oe(t);if(o!=="filter"&&o in e)return co[t]=o;o=Vn(o);for(let s=0;s<rr.length;s++){const i=rr[s]+o;if(i in e)return co[t]=i}return t}const ar="http://www.w3.org/1999/xlink";function lr(e,t,n,o,s,i=La(t)){o&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(ar,t.slice(6,t.length)):e.setAttributeNS(ar,t,n):n==null||i&&!Go(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Ge(n)?String(n):n)}function cr(e,t,n,o,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?nr(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(l!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let a=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Go(n):n==null&&l==="string"?(n="",a=!0):l==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(s||t)}function xt(e,t,n,o){e.addEventListener(t,n,o)}function Tc(e,t,n,o){e.removeEventListener(t,n,o)}const ur=Symbol("_vei");function $c(e,t,n,o,s=null){const i=e[ur]||(e[ur]={}),a=i[t];if(o&&a)a.value=o;else{const[l,c]=Oc(t);if(o){const m=i[t]=Nc(o,s);xt(e,l,m,c)}else a&&(Tc(e,l,a,c),i[t]=void 0)}}const dr=/(?:Once|Passive|Capture)$/;function Oc(e){let t;if(dr.test(e)){t={};let o;for(;o=e.match(dr);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):qe(e.slice(2)),t]}let uo=0;const Ec=Promise.resolve(),Mc=()=>uo||(Ec.then(()=>uo=0),uo=Date.now());function Nc(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;_t(Pc(o,n.value),t,5,[o])};return n.value=e,n.attached=Mc(),n}function Pc(e,t){if(se(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const fr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Rc=(e,t,n,o,s,i)=>{const a=s==="svg";t==="class"?wc(e,o,a):t==="style"?Cc(e,n,o):Fn(t)?Ts(t)||$c(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):jc(e,t,o,a))?(cr(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&lr(e,t,o,a,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!xe(o))?cr(e,Oe(t),o,i,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),lr(e,t,o,a))};function jc(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&fr(t)&&ue(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return fr(t)&&xe(n)?!1:t in e}const pr={};function zc(e,t,n){let o=Me(e,t);qn(o)&&(o=je({},o,t));class s extends fo{constructor(a){super(o,a,n)}}return s.def=o,s}const Lc=typeof HTMLElement<"u"?HTMLElement:class{};class fo extends Lc{constructor(t,n={},o=wr){super(),this._def=t,this._props=n,this._createApp=o,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&o!==wr?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(je({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof fo){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,We(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const t=(o,s=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:i,styles:a}=o;let l;if(i&&!se(i))for(const c in i){const m=i[c];(m===Number||m&&m.type===Number)&&(c in this._props&&(this._props[c]=Wo(this._props[c])),(l||(l=Object.create(null)))[Oe(c)]=!0)}this._numberProps=l,this._resolveProps(o),this.shadowRoot&&this._applyStyles(a),this._mount(o)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(o=>{o.configureApp=this._def.configureApp,t(this._def=o,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const o in n)fe(this,o)||Object.defineProperty(this,o,{get:()=>r(n[o])})}_resolveProps(t){const{props:n}=t,o=se(n)?n:Object.keys(n||{});for(const s of Object.keys(this))s[0]!=="_"&&o.includes(s)&&this._setProp(s,this[s]);for(const s of o.map(Oe))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(i){this._setProp(s,i,!0,!this._patching)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let o=n?this.getAttribute(t):pr;const s=Oe(t);n&&this._numberProps&&this._numberProps[s]&&(o=Wo(o)),this._setProp(s,o,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,s=!1){if(n!==this._props[t]&&(this._dirty=!0,n===pr?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),s&&this._instance&&this._update(),o)){const i=this._ob;i&&(this._processMutations(i.takeRecords()),i.disconnect()),n===!0?this.setAttribute(qe(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(qe(t),n+""):n||this.removeAttribute(qe(t)),i&&i.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Bc(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=Ie(this._def,je(t,this._props));return this._instance||(n.ce=o=>{this._instance=o,o.ce=this,o.isCE=!0;const s=(i,a)=>{this.dispatchEvent(new CustomEvent(i,qn(a[0])?je({detail:a},a[0]):{detail:a}))};o.emit=(i,...a)=>{s(i,a),qe(i)!==i&&s(qe(i),a)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const o=this._nonce;for(let s=t.length-1;s>=0;s--){const i=document.createElement("style");o&&i.setAttribute("nonce",o),i.textContent=t[s],this.shadowRoot.prepend(i)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const o=n.nodeType===1&&n.getAttribute("slot")||"default";(t[o]||(t[o]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=this._getSlots(),n=this._instance.type.__scopeId;for(let o=0;o<t.length;o++){const s=t[o],i=s.getAttribute("name")||"default",a=this._slots[i],l=s.parentNode;if(a)for(const c of a){if(n&&c.nodeType===1){const m=n+"-s",u=document.createTreeWalker(c,1);c.setAttribute(m,"");let _;for(;_=u.nextNode();)_.setAttribute(m,"")}l.insertBefore(c,s)}else for(;s.firstChild;)l.insertBefore(s.firstChild,s);l.removeChild(s)}}_getSlots(){const t=[this];this._teleportTargets&&t.push(...this._teleportTargets);const n=new Set;for(const o of t){const s=o.querySelectorAll("slot");for(let i=0;i<s.length;i++)n.add(s[i])}return Array.from(n)}_injectChildStyle(t){this._applyStyles(t.styles,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_removeChildStyle(t){}}function po(e){const t=Yi(),n=t&&t.ce;return n||null}const Nt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return se(t)?n=>Bn(t,n):t};function Dc(e){e.target.composing=!0}function mr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ye=Symbol("_assign");function hr(e,t,n){return t&&(e=e.trim()),n&&(e=Kn(e)),e}const Qe={created(e,{modifiers:{lazy:t,trim:n,number:o}},s){e[Ye]=Nt(s);const i=o||s.props&&s.props.type==="number";xt(e,t?"change":"input",a=>{a.target.composing||e[Ye](hr(e.value,n,i))}),(n||i)&&xt(e,"change",()=>{e.value=hr(e.value,n,i)}),t||(xt(e,"compositionstart",Dc),xt(e,"compositionend",mr),xt(e,"change",mr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:o,trim:s,number:i}},a){if(e[Ye]=Nt(a),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?Kn(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(o&&t===n||s&&e.value.trim()===c)||(e.value=c))}},mo={deep:!0,created(e,t,n){e[Ye]=Nt(n),xt(e,"change",()=>{const o=e._modelValue,s=ln(e),i=e.checked,a=e[Ye];if(se(o)){const l=Es(o,s),c=l!==-1;if(i&&!c)a(o.concat(s));else if(!i&&c){const m=[...o];m.splice(l,1),a(m)}}else if(Zt(o)){const l=new Set(o);i?l.add(s):l.delete(s),a(l)}else a(vr(e,i))})},mounted:br,beforeUpdate(e,t,n){e[Ye]=Nt(n),br(e,t,n)}};function br(e,{value:t,oldValue:n},o){e._modelValue=t;let s;if(se(t))s=Es(t,o.props.value)>-1;else if(Zt(t))s=t.has(o.props.value);else{if(t===n)return;s=Dt(t,vr(e,!0))}e.checked!==s&&(e.checked=s)}const an={created(e,{value:t},n){e.checked=Dt(t,n.props.value),e[Ye]=Nt(n),xt(e,"change",()=>{e[Ye](ln(e))})},beforeUpdate(e,{value:t,oldValue:n},o){e[Ye]=Nt(o),t!==n&&(e.checked=Dt(t,o.props.value))}},gr={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const s=Zt(t);xt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?Kn(ln(a)):ln(a));e[Ye](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,We(()=>{e._assigning=!1})}),e[Ye]=Nt(o)},mounted(e,{value:t}){yr(e,t)},beforeUpdate(e,t,n){e[Ye]=Nt(n)},updated(e,{value:t}){e._assigning||yr(e,t)}};function yr(e,t){const n=e.multiple,o=se(t);if(!(n&&!o&&!Zt(t))){for(let s=0,i=e.options.length;s<i;s++){const a=e.options[s],l=ln(a);if(n)if(o){const c=typeof l;c==="string"||c==="number"?a.selected=t.some(m=>String(m)===String(l)):a.selected=Es(t,l)>-1}else a.selected=t.has(l);else if(Dt(ln(a),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ln(e){return"_value"in e?e._value:e.value}function vr(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Uc=["ctrl","shift","alt","meta"],Fc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Uc.some(n=>e[`${n}Key`]&&!t.includes(n))},Pt=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=((s,...i)=>{for(let a=0;a<t.length;a++){const l=Fc[t[a]];if(l&&l(s,t))return}return e(s,...i)}))},qc={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Hc=(e,t)=>{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=(s=>{if(!("key"in s))return;const i=qe(s.key);if(t.some(a=>a===i||qc[a]===i))return e(s)}))},Vc=je({patchProp:Rc},_c);let _r;function kr(){return _r||(_r=Xl(Vc))}const Bc=((...e)=>{kr().render(...e)}),wr=((...e)=>{const t=kr().createApp(...e),{mount:n}=t;return t.mount=o=>{const s=Wc(o);if(!s)return;const i=t._component;!ue(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const a=n(s,!1,Kc(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},t});function Kc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Wc(e){return xe(e)?document.querySelector(e):e}const Yc=["method","origin","unavailable","invalid","signIn","onboarding","age","name","handle","restricted","suspended","terminated","links","fast","blocked","confirm","removed","quota","captcha","notFound","surfaceOff","notMoved","ledger","submit"];new Set(Yc);const xr=Object.freeze({SURFACE_OFF:"surfaceOff",CUTOVER_NOT_MOVED:"notMoved",NOT_FOUND:"notFound",ONBOARDING_REQUIRED:"onboarding",AGE_BELOW_MINIMUM:"age",NAME_RESERVED:"name",NAME_BLOCKED:"name",HANDLE_TAKEN:"handle",HANDLE_RATE:"handle",POSTING_RESTRICTED:"restricted",ACCOUNT_SUSPENDED:"suspended",ACCOUNT_TERMINATED:"terminated",TOO_MANY_LINKS:"links",TOO_FAST:"fast",FILTER_BLOCKED:"blocked",CONFIRMATION_REQUIRED:"confirm",MESSAGE_REMOVED:"removed",REACTION_NOT_ALLOWED:"invalid",CAPTCHA_FAILED:"captcha",UNAUTHORIZED:"signIn",VALIDATION:"invalid",UNAVAILABLE:"unavailable",STALE_LEASE:"submit",STAFF_POSTING_OFF:"submit",PRESET_CONFLICT:"submit",INTERNAL:"unavailable",NOT_A_MEMBER_SESSION:"signIn",IDENTITY_NOT_ADMITTED:"signIn",ACCOUNT_NOT_ELIGIBLE:"signIn",MEMBER_READ_ONLY:"restricted",MEMBER_DELETION_REQUESTED:"restricted",PRIVATE_SPACE:"submit",WRONG_PROVIDER:"submit",CASE_CLOSED:"submit",NOTIFIER_NOT_ALLOWED:"invalid",UNSUPPORTED_RESTRICTION:"submit",LADDER_EXCEEDED:"submit",PERSON_REQUIRED:"submit",APPEAL_OPEN:"submit",APPEAL_WINDOW_CLOSED:"submit",APPEAL_NEEDS_ANOTHER_PERSON:"submit",GAG_PLATFORM_ONLY:"submit",ORDER_FINAL:"submit",BODY_JSON_INVALID:"invalid",AUDIT_DETAIL_NOT_CODE:"submit",LEDGER_UNAVAILABLE:"ledger",INVALID_INPUT:"invalid",LEGAL_HOLD:"submit",TEXT_MISSING:"unavailable",QUOTA_DAILY:"quota",QUOTA_IP_HOURLY:"quota"}),Sr=Object.freeze({METHOD:"method",ORIGIN:"origin",TOO_LARGE:"invalid",INVALID_JSON:"invalid"}),Ir=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);function Gc(e){return typeof e!="string"||e===""?"submit":Ir(xr,e)?xr[e]:Ir(Sr,e)?Sr[e]:"submit"}const Cr=Symbol.for("@blogmcp/sdk/CommunityTransportError");function Zc(e){return typeof e=="number"&&Number.isInteger(e)&&e>=100&&e<=599?e:null}function Jc(e){return typeof e=="number"&&Number.isFinite(e)&&e>=0?Math.ceil(e):null}class Ar extends Error{status;retryAfterS;constructor(t,n={}){super(t),this.name="CommunityTransportError",this.status=Zc(n.status),this.retryAfterS=Jc(n.retryAfterS),Object.defineProperty(this,Cr,{value:!0})}}function Xc(e){return e instanceof Ar?!0:e instanceof Error&&e[Cr]===!0}function Qc(e){return Xc(e)&&e.retryAfterS!==null?{ok:!1,code:"unavailable",retryAfterS:e.retryAfterS}:{ok:!1,code:"unavailable"}}function eu(e){return e==="unavailable"||e==="submit"||e==="method"||e==="origin"||e==="invalid"||e==="ledger"}const le=(e,t,n)=>Object.freeze({name:e,method:"POST",path:n,surface:t}),tu=Object.freeze({"discussions.list":le("discussions.list","public","/community/v1/public/discussions/list"),"discussions.head":le("discussions.head","public","/community/v1/public/discussions/head"),"messages.post":le("messages.post","public","/community/v1/public/messages/post"),"messages.edit":le("messages.edit","public","/community/v1/public/messages/edit"),"messages.delete":le("messages.delete","public","/community/v1/public/messages/delete"),"messages.report":le("messages.report","public","/community/v1/public/messages/report"),"reactions.set":le("reactions.set","public","/community/v1/public/reactions/set"),"blocks.set":le("blocks.set","public","/community/v1/public/blocks/set"),"blocks.list":le("blocks.list","public","/community/v1/public/blocks/list"),"profile.get":le("profile.get","public","/community/v1/public/profile/get"),"me.get":le("me.get","public","/community/v1/public/me/get"),"me.onboard":le("me.onboard","public","/community/v1/public/me/onboard"),"me.updateProfile":le("me.updateProfile","public","/community/v1/public/me/profile/update"),"me.notifications.list":le("me.notifications.list","public","/community/v1/public/me/notifications/list"),"me.notifications.markRead":le("me.notifications.markRead","public","/community/v1/public/me/notifications/mark-read"),"me.decisions.list":le("me.decisions.list","public","/community/v1/public/me/decisions/list"),"me.decisions.get":le("me.decisions.get","public","/community/v1/public/me/decisions/get"),"me.appeals.file":le("me.appeals.file","public","/community/v1/public/me/appeals/file"),"me.appeals.withdraw":le("me.appeals.withdraw","public","/community/v1/public/me/appeals/withdraw"),"me.appeals.list":le("me.appeals.list","public","/community/v1/public/me/appeals/list"),"me.reports.list":le("me.reports.list","public","/community/v1/public/me/reports/list"),"me.consents.withdraw":le("me.consents.withdraw","public","/community/v1/public/me/consents/withdraw"),"me.export":le("me.export","public","/community/v1/public/me/export"),"me.erase":le("me.erase","public","/community/v1/public/me/erase"),"me.cancelErase":le("me.cancelErase","public","/community/v1/public/me/erase/cancel"),"legal.current":le("legal.current","public","/community/v1/public/legal/current"),"notices.submit":le("notices.submit","notice","/trust/v1/notices/submit"),"notices.status":le("notices.status","notice","/trust/v1/notices/status"),"notices.appeal":le("notices.appeal","notice","/trust/v1/notices/appeal"),"notices.withdrawAppeal":le("notices.withdrawAppeal","notice","/trust/v1/notices/appeal/withdraw")}),Tr="/community";function nu(e){return e.surface==="public"&&e.path.startsWith(`${Tr}/`)?e.path.slice(Tr.length):e.path}const cn=4e3,su=2,fs=1e3,Bt=4e3,ho=4e3,$r=120,ou=2,Or=80,Er=/^[a-z0-9][a-z0-9_]{2,29}$/,Mr=30,iu=50,ru="community_notice",au="good_faith";function bo(){const e=globalThis.crypto;if(typeof e?.randomUUID=="function")return e.randomUUID();const t=e.getRandomValues(new Uint8Array(16));t[6]=(t[6]??0)&15|64,t[8]=(t[8]??0)&63|128;const n=Array.from(t,o=>o.toString(16).padStart(2,"0")).join("");return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}const Mn=(e,t)=>typeof t=="string"&&e.includes(t),lu=Object.freeze(["visible","held","removed","deleted"]),cu=e=>Mn(lu,e),uu=Object.freeze(["member","staff","system"]),du=e=>Mn(uu,e),fu=Object.freeze(["sign_in","onboarding","reconsent_rules","art9_consent"]),Nn=e=>Mn(fu,e),pu=Object.freeze(["restriction","suspension","ban"]),mu=e=>Mn(pu,e),hu=Object.freeze(["decision","appeal_resolved","erasure_scheduled","inactivity_warning"]),bu=e=>Mn(hu,e),Nr=Object.freeze(["fraud_spam","harassment","hate","threats","sexual_content","child_at_risk","self_harm","doxxing","copyright","terrorism","drugs","other_illegal","rules","adverse_event","third_party_health_data","suspected_minor"]),gu="child_at_risk",yu=Object.freeze(["16_17","18_plus"]);function go(e){const t=typeof e=="object"&&e!==null?e.rules:void 0;if(!Array.isArray(t))return[];const n=[];for(const o of t){if(typeof o!="object"||o===null)continue;const{id:s,title:i,summary:a,anchor:l}=o;typeof s!="string"||typeof i!="string"||typeof l!="string"||n.push(Object.freeze({id:s,title:i,summary:typeof a=="string"?a:null,anchor:l}))}return n}const vu=/^(?:\/[A-Za-z0-9_~-][A-Za-z0-9._~-]*)*\/?$/;function Pr(e){return typeof e=="string"&&e.startsWith("/")&&vu.test(e)&&!/(^|\/)\.\.?(\/|$)/.test(e)}function Rr(e){if(!Pr(e))throw new TypeError('[blogmcp-sdk] the community client takes a relative base on the page’s own origin (e.g. "/api/community"), never an absolute URL: kb-api’s community routes are reached only through the host’s proxy or BFF');return e.replace(/\/+$/,"")}function _u(e,t){return`${e.replace(/\/+$/,"")}${nu(t)}`}function ku(e,t){if(e===null||e.trim()==="")return;const n=e.trim();if(/^\d+$/.test(n))return Number(n);const o=Date.parse(n);return Number.isFinite(o)?Math.max(0,Math.ceil((o-t)/1e3)):void 0}function wu(e,t={}){const n=Rr(e),o=t.now??Date.now,s=t.fetch??(()=>globalThis.fetch);return async(i,a,l)=>{let c;try{c=await s()(_u(n,i),{method:i.method,headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(a??{}),mode:"same-origin",credentials:"same-origin",cache:"no-store",redirect:"error",signal:l})}catch{throw new Ar(l.aborted?"community request aborted or timed out":"community request failed")}let m=null;try{const _=await c.text();m=_===""?null:JSON.parse(_)}catch{m=null}const u=ku(c.headers.get("Retry-After"),o());return u===void 0?{status:c.status,body:m}:{status:c.status,body:m,retryAfterS:u}}}const jr=1e4,xu=2147483647;let zr=!1;function Su(e){if(e===void 0)return jr;const t=typeof e=="number"?Math.floor(e):Number.NaN;return t>=1&&t<=xu?t:(zr||(zr=!0,console.warn("[community] timeoutMs is not a number of milliseconds from 1 to 2147483647 — the default 10 s is used.")),jr)}const rt=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),Pn=e=>typeof e=="string",un=Array.isArray,Iu=Object.freeze({string:Pn,number:e=>typeof e=="number",boolean:e=>typeof e=="boolean",array:un,record:rt}),ce=e=>Object.freeze({...e}),Cu=Object.freeze({"discussions.list":ce({articleId:"string",messages:"array",viewer:"record"}),"discussions.head":ce({heads:"array"}),"messages.post":ce({message:"record",warnings:"array"}),"messages.edit":ce({message:"record",warnings:"array"}),"messages.delete":ce({message:"record"}),"messages.report":ce({caseId:"string"}),"reactions.set":ce({reactions:"record"}),"blocks.set":ce({blocked:"boolean"}),"blocks.list":ce({blocks:"array"}),"profile.get":ce({author:"record"}),"me.get":ce({needs:"array"}),"me.onboard":ce({needs:"array"}),"me.updateProfile":ce({profile:"record"}),"me.notifications.list":ce({items:"array"}),"me.notifications.markRead":ce({updated:"number"}),"me.decisions.list":ce({items:"array"}),"me.decisions.get":ce({decisionId:"string"}),"me.appeals.file":ce({appealId:"string"}),"me.appeals.withdraw":ce({appealId:"string"}),"me.appeals.list":ce({items:"array"}),"me.reports.list":ce({items:"array"}),"me.consents.withdraw":ce({state:"string"}),"me.export":ce({generatedAt:"string"}),"me.erase":ce({purgeAfter:"string"}),"me.cancelErase":ce({status:"string"}),"legal.current":ce({textId:"string"}),"notices.submit":ce({caseId:"string",receipt:"string"}),"notices.status":ce({status:"string"}),"notices.appeal":ce({appealId:"string"}),"notices.withdrawAppeal":ce({appealId:"string"})}),Au=(e,t)=>Object.entries(Cu[e]).every(([n,o])=>Iu[o](t[n]));function St(e,t){const n={};if(!rt(e))return n;for(const o of t)e[o]!==void 0&&(n[o]=e[o]);return n}function Lr(e){return rt(e)?"conversationId"in e?St(e,["conversationId","seq"]):"memberId"in e?St(e,["memberId"]):"handle"in e?St(e,["handle"]):St(e,["articleId"]):e}const Tu=/^[A-Za-z0-9_.:-]{1,64}$/,yo=20;function $u(e){if(un(e))return e.filter(t=>Pn(t)&&Tu.test(t)).slice(0,yo)}function Ou(e){return un(e)?e.filter(Nn).slice(0,yo):void 0}function Eu(e){return un(e)?e.map(n=>rt(n)?n.path:n).filter(n=>Pn(n)&&n.length<=128).slice(0,yo):void 0}function ps(e){return typeof e=="number"&&Number.isFinite(e)&&e>=0?Math.ceil(e):void 0}function Mu(e,t){const n={ok:!1,code:Gc(e.code)},o=ps(e.retryAfterS)??ps(t.retryAfterS);o!==void 0&&(n.retryAfterS=o);const s=Ou(e.needs);s&&(n.needs=s);const i=$u(e.codes);i&&(n.codes=i),Pn(e.until)&&(n.until=e.until);const a=Eu(e.issues);return a&&(n.fields=a),n}function Nu(e){Rr(e?.base);const t=e.transport??wu(e.base,e.now?{now:e.now}:{}),n=Su(e.timeoutMs),o=e.logger,s=(c,m,u,_)=>{if(!(!o||!eu(m)))try{o({op:c,outcome:m,kbCode:u,status:_})}catch{}};async function i(c,m,u){const _=tu[c],T=new AbortController,S=u?.signal,A=()=>T.abort();S?.aborted?T.abort():S?.addEventListener("abort",A,{once:!0});const v=setTimeout(()=>T.abort(),n);let w;try{w=await t(_,m,T.signal)}catch(b){const I=Qc(b);return S?.aborted||s(c,I.code,null,null),I}finally{clearTimeout(v),S?.removeEventListener("abort",A)}const C=typeof w?.status=="number"?w.status:0,E=w?.body;if(rt(E)&&E.ok===!1&&Pn(E.code)&&E.code!==""){const b=Mu(E,w);return s(c,b.code,E.code.slice(0,64),C),b}if(C>=200&&C<300&&rt(E)&&E.ok===!0){const{ok:b,...I}=E;return Au(c,I)?{ok:!0,value:I}:(s(c,"unavailable",null,C),{ok:!1,code:"unavailable"})}if(C===429){const b=ps(w.retryAfterS);return b===void 0?{ok:!1,code:"fast"}:{ok:!1,code:"fast",retryAfterS:b}}s(c,"unavailable",null,C);const j=C===503?ps(w.retryAfterS):void 0;return j===void 0?{ok:!1,code:"unavailable"}:{ok:!1,code:"unavailable",retryAfterS:j}}const a=(c,m)=>(u,_)=>i(c,St(u,m),_),l=c=>m=>i(c,{},m);return{discussions:{list:a("discussions.list",["articleId","languageCode","cursor"]),head:(c,m)=>i("discussions.head",{articleIds:rt(c)&&un(c.articleIds)?[...c.articleIds]:[]},m)},messages:{post:a("messages.post",["articleId","body","replyToSeq","clientMsgId","languageCode","confirmations"]),edit:a("messages.edit",["conversationId","seq","body","confirmations"]),delete:a("messages.delete",["conversationId","seq"]),report:a("messages.report",["conversationId","seq","category","ruleId","note"])},reactions:{set:(c,m)=>i("reactions.set",{target:Lr(c?.target),emoji:c?.emoji??null},m)},blocks:{set:a("blocks.set",["memberId","blocked"]),list:l("blocks.list")},profile:{get:(c,m)=>i("profile.get",rt(c)&&"handle"in c?St(c,["handle"]):St(c,["memberId"]),m)},me:{get:l("me.get"),onboard:a("me.onboard",["ageBand","rulesTextId","art9TextId","displayName","handle","avatarPreset"]),updateProfile:a("me.updateProfile",["displayName","handle","avatarPreset","bio"]),notifications:{list:a("me.notifications.list",["cursor"]),markRead:(c,m)=>i("me.notifications.markRead",{ids:rt(c)&&un(c.ids)?[...c.ids]:[]},m)},decisions:{list:a("me.decisions.list",["cursor"]),get:a("me.decisions.get",["decisionId"])},appeals:{file:a("me.appeals.file",["decisionId","body"]),withdraw:a("me.appeals.withdraw",["appealId"]),list:l("me.appeals.list")},reports:{list:l("me.reports.list")},consents:{withdraw:(c,m)=>i("me.consents.withdraw",{kind:"art9_consent"},m)},export:l("me.export"),erase:l("me.erase"),cancelErase:l("me.cancelErase")},legal:{current:a("legal.current",["kind","locale"])},notices:{submit:(c,m)=>{const u=St(c,["category","target","description","ruleId","turnstileToken","confirmations"]);return u.target!==void 0&&(u.target=Lr(u.target)),rt(c?.notifier)?u.notifier=St(c.notifier,["name","email","locale"]):c?.notifier===null&&(u.notifier=null),i("notices.submit",u,m)},status:a("notices.status",["receipt"]),appeal:a("notices.appeal",["receipt","body"]),withdrawAppeal:a("notices.withdrawAppeal",["receipt"])}}}const at=e=>typeof e=="object"&&e!==null&&!Array.isArray(e),pe=e=>typeof e=="string"?e:null,ms=e=>typeof e=="number"&&Number.isSafeInteger(e)&&e>0,hs=Object.freeze({counts:Object.freeze({}),mine:null});function vo(e){if(!at(e))return hs;const t={};if(at(e.counts))for(const[n,o]of Object.entries(e.counts))typeof o=="number"&&Number.isSafeInteger(o)&&o>0&&(t[n]=o);return Object.freeze({counts:Object.freeze(t),mine:pe(e.mine)})}const Dr=Object.freeze({kind:"member",memberId:null,handle:null,displayName:null,avatarPreset:null,deleted:!0}),Pu=Object.freeze({kind:"system"});function Ur(e){if(!at(e)||!du(e.kind))return null;if(e.kind==="system")return Pu;if(e.kind==="staff")return Object.freeze({kind:"staff",staffId:pe(e.staffId)??"",displayName:pe(e.displayName)??"",badge:pe(e.badge)??""});const t=pe(e.memberId),n=pe(e.handle),o=pe(e.displayName);return t===null||n===null||o===null||e.deleted===!0?Dr:Object.freeze({kind:"member",memberId:t,handle:n,displayName:o,avatarPreset:pe(e.avatarPreset)})}function Fr(e){if(Array.isArray(e))return Object.freeze(e.filter(t=>typeof t=="string"))}function bs(e,t){if(!at(e))return null;const n=Ur(e.author);if(n===null||!cu(e.state))return null;const o=pe(e.conversationId),s=pe(e.id);if(o===null||s===null||!ms(e.seq))return null;const i=pe(e.body),a=[];if(t&&Array.isArray(e.replies))for(const c of e.replies){const m=bs(c,!1);m&&a.push(m)}const l=Fr(e.notes);return Object.freeze({conversationId:o,seq:e.seq,id:s,rev:typeof e.rev=="number"?e.rev:0,replyToSeq:t?null:ms(e.replyToSeq)?e.replyToSeq:null,author:n,state:e.state,body:i,displayBody:pe(e.displayBody)??i,displayLanguageCode:pe(e.displayLanguageCode),sourceLanguageCode:pe(e.sourceLanguageCode),isTranslated:e.isTranslated===!0,isEdited:e.isEdited===!0,createdAt:pe(e.createdAt)??"",editedAt:pe(e.editedAt),collapsed:e.collapsed===!0,reactions:vo(e.reactions),translationVersionId:pe(e.translationVersionId),...l&&l.length>0?{notes:l}:{},...e.hiddenUntilConsent===!0&&e.state==="held"?{hiddenUntilConsent:!0}:{},replies:Kt(a),...t&&e.repliesTruncated===!0?{repliesTruncated:!0}:{}})}function Ru(e){const t=at(e)?e:{},n=Array.isArray(t.needs)?t.needs.filter(Nn):[],o=[];if(Array.isArray(t.restrictions))for(const s of t.restrictions)!at(s)||!mu(s.kind)||typeof s.decisionId!="string"||o.push(Object.freeze({kind:s.kind,scope:pe(s.scope)??"",endsAt:pe(s.endsAt),decisionId:s.decisionId}));return Object.freeze({memberId:pe(t.memberId),canPost:t.canPost===!0,needs:Object.freeze([...new Set(n)]),restrictions:Object.freeze(o)})}const ju=Object.freeze({memberId:null,canPost:!1,needs:Object.freeze([]),restrictions:Object.freeze([])}),_o=Object.freeze({articleId:null,conversationId:null,count:0,lastSeq:0,lastChangeAt:null,messages:Object.freeze([]),nextCursor:null,articleReactions:hs,reactionSet:Object.freeze([]),preset:null,viewer:ju,loaded:!1,stale:!1}),zu=(e,t)=>e===null?t:t===null?e:Date.parse(t)>Date.parse(e)?t:e;function Kt(e){const t=e.filter(o=>o.seq>0).sort((o,s)=>o.seq-s.seq),n=e.filter(o=>o.seq<0).sort((o,s)=>s.seq-o.seq);return Object.freeze([...t,...n])}function Rt(e,t){let n=!1;const o=[];for(const s of e){let i=t(s);if(i!==null&&i.replies.length>0){const a=Rt(i.replies,t);a!==i.replies&&(i=Object.freeze({...i,replies:a}))}i!==s&&(n=!0),i!==null&&o.push(i)}return n?Object.freeze(o):e}function dn(e,t){for(const n of e){if(t(n))return n;for(const o of n.replies)if(t(o))return o}return null}function qr(e,t){return Rt(e,n=>n.seq===t.seq?n.replyToSeq===null&&t.replyToSeq===null?Object.freeze({...t,replies:n.replies}):t:n)}function Lu(e,t){if(dn(e,o=>o.seq===t.seq))return qr(e,t);if(t.replyToSeq===null)return Kt([...e,t]);const n=e.find(o=>o.seq===t.replyToSeq);return n?Object.freeze(e.map(o=>o===n?Object.freeze({...o,replies:Kt([...o.replies,t])}):o)):e}const Du=e=>e.replyToSeq===null&&e.replies.length>0,Hr=(e,t)=>e.toLowerCase()===t.toLowerCase(),Uu=256,Vr=new WeakMap;function Fu(){let e=_o;const t=new Set,n=new Map,o=new Set;let s=0,i=-1;const a=()=>{s+=1;for(const b of n.keys())o.delete(b),o.add(b);n.clear();for(const b of o){if(o.size<=Uu)break;o.delete(b)}},l=b=>{if(b!==e){e=Object.freeze(b);for(const I of[...t])try{I(e)}catch{}}};function c(b,I={}){if(!at(b))return;const q=pe(b.articleId)?.toLowerCase()??null,G=e.articleId!==null&&q!==null&&q!==e.articleId,D=G?_o:e;G&&a();const W=typeof I.cursor=="number"&&Number.isFinite(I.cursor)?I.cursor:null,Q=W??0,ae=typeof b.nextCursor=="number"&&Number.isFinite(b.nextCursor)?b.nextCursor:null,ge=ae??Number.POSITIVE_INFINITY,we=new Map;for(const Z of Array.isArray(b.messages)?b.messages:[]){const oe=bs(Z,!0);oe&&oe.seq>Q&&oe.seq<=ge&&we.set(oe.seq,oe)}const X=new Map;for(const Z of D.messages){const oe=[Z,...Z.replies];for(const $e of oe)$e.pending&&$e.pending!=="post"&&$e.clientMsgId&&X.set($e.seq,$e)}const Y=Z=>{const oe=X.get(Z.seq);if(!oe)return Z;const $e=oe.clientMsgId?n.get(oe.clientMsgId):void 0;return $e&&($e.before=Z),oe.replyToSeq===null?Object.freeze({...oe,replies:Z.replies}):oe},H=D.messages.filter(Z=>Z.seq<0||Z.seq<=Q||Z.seq>ge),V=new Map;for(const Z of D.messages)for(const oe of Z.replies)oe.seq<0&&oe.replyToSeq!==null&&V.set(oe.replyToSeq,[...V.get(oe.replyToSeq)??[],oe]);const $=[...H.filter(Z=>!we.has(Z.seq)),...we.values()].map(Z=>{if(!we.has(Z.seq))return Z;const oe=Y(Z),$e=oe.replies.map(Y),mn=V.get(Z.seq)??[];return $e.some((Ln,Ct)=>Ln!==oe.replies[Ct])||mn.length>0?Object.freeze({...oe,replies:Kt([...$e,...mn])}):oe}),J=D.loaded?D.nextCursor:0,De=J===null?null:Q>J?J:ae===null?null:Math.max(J,ae);l({articleId:q??D.articleId,conversationId:pe(b.conversationId)??D.conversationId,count:typeof b.count=="number"&&b.count>=0?b.count:D.count,lastSeq:Math.max(typeof b.lastSeq=="number"?b.lastSeq:0,D.lastSeq),lastChangeAt:zu(D.lastChangeAt,pe(b.lastChangeAt)),messages:Kt($),nextCursor:De,articleReactions:vo(b.articleReactions),reactionSet:Object.freeze(Array.isArray(b.reactionSet)?b.reactionSet.filter(Z=>typeof Z=="string"):[]),preset:pe(b.preset),viewer:Ru(b.viewer),loaded:!0,stale:W===null?!1:D.stale})}function m(b){if(n.has(b.clientMsgId))return;const I=ms(b.replyToSeq)?b.replyToSeq:null;if(I!==null&&!e.messages.some(W=>W.seq===I))return;const q=Ur(b.author)??Dr,G=Object.freeze({conversationId:e.conversationId??"",seq:i--,id:`pending:${b.clientMsgId}`,rev:0,replyToSeq:I,author:q,state:"visible",body:b.body,displayBody:b.body,displayLanguageCode:b.languageCode??null,sourceLanguageCode:b.languageCode??null,isTranslated:!1,isEdited:!1,createdAt:b.createdAt??new Date().toISOString(),editedAt:null,collapsed:!1,reactions:hs,translationVersionId:null,replies:Object.freeze([]),pending:"post",clientMsgId:b.clientMsgId});n.set(b.clientMsgId,{type:"post",before:null});const D=I===null?Kt([...e.messages,G]):Object.freeze(e.messages.map(W=>W.seq===I?Object.freeze({...W,replies:Kt([...W.replies,G])}):W));l({...e,messages:D})}function u(b){if(n.has(b.clientMsgId))return;const I=dn(e.messages,G=>G.seq===b.seq);if(!I||I.pending)return;n.set(b.clientMsgId,{type:b.type,before:I});const q=b.type==="edit"?Object.freeze({...I,body:b.body,displayBody:b.body,displayLanguageCode:I.sourceLanguageCode,isTranslated:!1,isEdited:!0,pending:"edit",clientMsgId:b.clientMsgId}):Object.freeze({...I,pending:"delete",clientMsgId:b.clientMsgId});l({...e,messages:Rt(e.messages,G=>G===I?q:G)})}const _=b=>e.conversationId===null||Hr(b.conversationId,e.conversationId);function T(b){const I=n.get(b.clientMsgId);if(!I&&o.has(b.clientMsgId))return;n.delete(b.clientMsgId);const q=bs(b.message,b.message?.replyToSeq===null||b.message?.replyToSeq===void 0),G=q&&_(q)?q:null,D=Rt(e.messages,X=>X.clientMsgId===b.clientMsgId&&X.pending==="post"?null:X.clientMsgId===b.clientMsgId?Br(X):X);if(!G){D!==e.messages&&l({...e,messages:D});return}const W=b.warnings?Fr(b.warnings):void 0,Q=W&&W.length>0?Object.freeze({...G,warnings:W}):G,ae=dn(D,X=>X.seq===Q.seq);let ge,we=e.count;if(Q.state==="deleted"||I?.type==="delete"){const X=ae??null,Y=X?.state==="visible"&&X.body!==null;ge=Rt(D,H=>H.seq!==Q.seq?H:Du(H)?Object.freeze({...Q,replies:H.replies}):null),Y&&(we=Math.max(0,we-1))}else ge=Lu(D,Q),!ae&&Q.state==="visible"&&(we+=1);l({...e,conversationId:e.conversationId??(I?Q.conversationId:null),lastSeq:Math.max(e.lastSeq,Q.seq),count:we,messages:ge})}function S(b){const I=n.get(b);if(!I)return;n.delete(b);const q=Rt(e.messages,G=>{if(G.clientMsgId!==b)return G;if(I.type==="post")return null;const D=I.before;return D?G.replyToSeq===null?Object.freeze({...D,replies:G.replies}):D:Br(G)});q!==e.messages&&l({...e,messages:q})}function A(b){const I=bs(b,b?.replyToSeq===null||b?.replyToSeq===void 0);!I||!dn(e.messages,q=>q.seq===I.seq&&!q.pending&&Hr(q.conversationId,I.conversationId))||l({...e,messages:qr(e.messages,I)})}function v(b){if(at(b))switch(b.type){case"post":return m(b);case"edit":case"delete":return u(b);case"confirm":return T(b);case"rollback":return S(b.clientMsgId);case"server":return A(b.message)}}function w(b){if(!at(b)||!e.loaded||e.articleId===null||pe(b.articleId)?.toLowerCase()!==e.articleId)return!1;if(e.stale)return!0;const I=typeof b.lastSeq=="number"&&b.lastSeq>e.lastSeq,q=typeof b.count=="number"&&b.count!==e.count,G=pe(b.lastChangeAt),D=G!==null&&(e.lastChangeAt===null||Date.parse(G)>Date.parse(e.lastChangeAt));return!I&&!q&&!D?!1:(l({...e,stale:!0}),!0)}function C(b,I){if(!at(b))return;const q=vo(I);if("articleId"in b){if(pe(b.articleId)?.toLowerCase()!==e.articleId)return;l({...e,articleReactions:q});return}const{conversationId:G,seq:D}=b;if(!ms(D)||typeof G!="string")return;const W=G.toLowerCase(),Q=Rt(e.messages,ae=>ae.seq===D&&ae.conversationId.toLowerCase()===W?Object.freeze({...ae,reactions:q}):ae);Q!==e.messages&&l({...e,messages:Q})}function E(b,I){if(typeof b!="string"||b==="")return;const q=b.toLowerCase(),G=Rt(e.messages,D=>D.author.kind==="member"&&D.author.memberId!==null&&D.author.memberId.toLowerCase()===q&&D.body!==null&&D.collapsed!==I?Object.freeze({...D,collapsed:I}):D);G!==e.messages&&l({...e,messages:G})}const j={getState:()=>e,subscribe(b){return t.add(b),()=>{t.delete(b)}},applyPage:c,applyMessage:v,applyHead:w,applyReaction:C,collapse:E,reset(){a(),l(_o)}};return Vr.set(j,()=>s),j}function Br(e){const{pending:t,clientMsgId:n,...o}=e;return Object.freeze(o)}function jt(e){const t="viewer"in e?e.viewer.needs:e.needs,n=new Set(t.filter(Nn)),o=n.has("sign_in"),s=n.has("onboarding"),i=s||n.has("reconsent_rules"),a=n.has("art9_consent");return Object.freeze({signIn:o,onboarding:s,rules:i,art9:a,any:o||s||i||a})}function Rn(e,t){return dn(e.messages,n=>n.seq===t)}function qu(e,t){return t.author.kind==="member"&&t.author.memberId!==null&&t.author.memberId===e.viewer.memberId}function Hu(e,t){if("articleId"in t)return e.articleReactions;const n=t.conversationId.toLowerCase();return dn(e.messages,s=>s.seq===t.seq&&s.conversationId.toLowerCase()===n)?.reactions??hs}function Vu(e,t){const n={...e.counts},o=e.mine;if(o!==null){const s=(n[o]??0)-1;s>0?n[o]=s:delete n[o]}return t!==null&&(n[t]=(n[t]??0)+1),Object.freeze({counts:Object.freeze(n),mine:t})}const Bu=20;function Kr(e){const t=Vr.get(e);let n=t?.(),o=e.getState().articleId;return{moved:()=>t!==void 0&&t()!==n||e.getState().articleId!==o,mark(){n=t?.(),o=e.getState().articleId}}}const Ku=e=>typeof e=="number"&&Number.isFinite(e)?e:null;async function Wu(e,t,n,o){const s=e.getState(),i=s.loaded?s.nextCursor:0,a=Kr(e);let l=null;for(let c=0;c<Bu;c++){const m=await t.discussions.list({articleId:n.articleId,languageCode:n.languageCode??null,cursor:l},o);if(!m.ok)return m;if(a.moved())break;e.applyPage(m.value,{cursor:l}),a.mark();const u=Ku(m.value.nextCursor);if(u===null||i!==null&&u>=i||l!==null&&u<=l)break;l=u}return{ok:!0,value:e.getState()}}async function Yu(e,t,n,o){const s=e.getState().nextCursor;if(s===null)return{ok:!0,value:e.getState()};const i=Kr(e),a=await t.discussions.list({articleId:n.articleId,languageCode:n.languageCode??null,cursor:s},o);return a.ok?(i.moved()||e.applyPage(a.value,{cursor:s}),{ok:!0,value:e.getState()}):a}const Gu=2e4,Zu=5*6e4,Ju=6e4,Xu=(e,t)=>e.lastSeq===t.lastSeq&&e.count===t.count&&e.lastChangeAt===t.lastChangeAt;function Qu(e,t,n){const o=Math.max(1e3,n.intervalMs??Gu),s=[...new Set((Array.isArray(t)?t:[]).filter(j=>typeof j=="string"&&j!==""))].slice(0,iu),i=n.visible??(()=>typeof document>"u"||document.visibilityState!=="hidden"),a=new Map;let l=null,c=null,m=0,u=!1,_=!1;const T=j=>{_||(l&&clearTimeout(l),l=setTimeout(()=>{v()},j))},S=j=>{T(j),u=!0},A=()=>{!_&&!c&&!u&&T(0)};async function v(){if(l=null,u=!1,_||c)return;if(!i()){T(o);return}const j=new AbortController;c=j;const b={signal:j.signal},I=await e.discussions.head({articleIds:s},b);if(c=null,!_){if(I.ok){m=0;const q=[];for(const G of Array.isArray(I.value.heads)?I.value.heads:[]){if(typeof G?.articleId!="string")continue;const D=G.articleId.toLowerCase(),W=a.get(D);a.set(D,G),(!W||!Xu(W,G))&&q.push(G)}if(q.length>0)try{n.onChange(q)}catch{}T(o);return}try{n.onFailure?.(I)}catch{}if(I.code==="surfaceOff")return E();if(I.code==="fast"||I.code==="quota"){S(Math.max(o,I.retryAfterS!==void 0?I.retryAfterS*1e3:Ju));return}m=Math.min(Zu,(m||o)*2),S(m)}}const w=()=>{i()&&A()},C=()=>E();function E(){_||(_=!0,l&&clearTimeout(l),l=null,c?.abort(),c=null,typeof document<"u"&&document.removeEventListener("visibilitychange",w),n.signal?.removeEventListener("abort",C))}return s.length===0||n.signal?.aborted?(_=!0,{stop:()=>{},now:()=>{}}):(typeof document<"u"&&document.addEventListener("visibilitychange",w),n.signal?.addEventListener("abort",C,{once:!0}),T(o),{stop:E,now:A})}const Wt=Object.freeze({myCommunity:"/community",statement:"/community/statements/{id}",report:"/community/report",notices:"/community/notices",rules:"/community/rules"}),ed=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Wr=/^kbnt_[A-Za-z0-9_-]{1,507}$/,Yr="t";function gs(e){return typeof e=="string"&&/^\/(?![/\\])/.test(e)&&!/[\s\\\u0000-\u001f\u007f]/.test(e)}function ko(e,t){const n=e==null||e===""?Wt.statement:e;return!gs(n)||!n.includes("{id}")||/[{}]/.test(n.split("{id}").join(""))||typeof t!="string"||!ed.test(t)?null:n.split("{id}").join(t.toLowerCase())}function td(e,t){const n=e==null||e===""?Wt.notices:e;return!gs(n)||n.includes("#")||typeof t!="string"||!Wr.test(t)?null:`${n}#${Yr}=${t}`}function Gr(e,t){return gs(e)?e.includes("#")||!gs(t)||t.includes("#")?e:`${e}#${t}`:null}function Zr(e){const n=/^#t=([^&]*)/.exec(typeof e=="string"?e:"")?.[1]??"";return Wr.test(n)?n:null}const wo=new WeakMap;function nd(){if(typeof window>"u")throw new Error("[blogmcp-sdk] readReceiptFromHash reads the address bar — call it in the browser (onMounted / useEffect), never while rendering on the server");return window}function sd(e){if(typeof e!="object"||e===null||Array.isArray(e))return!1;const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function od(e,t,n){let o=e;const s=t?o.indexOf(t):-1;if(s>=0&&(o=o.slice(0,s)),n!==null)for(let i=o.indexOf(n);i>=0;i=o.indexOf(n)){const a=o.lastIndexOf("#",i);o=a>=0?o.slice(0,a):o.slice(0,i)+o.slice(i+n.length)}return o}function id(e,t,n){if(!sd(e))return e;let o=!1;const s={...e};for(const[i,a]of Object.entries(s)){if(typeof a!="string")continue;const l=od(a,t,n);l!==a&&(s[i]=l,o=!0)}return o?s:e}function rd(e=nd()){const t=e.location.hash,n=Zr(t),o=!wo.has(e);return t.startsWith(`#${Yr}=`)&&e.history.replaceState(id(e.history.state,t,n),"",e.location.pathname+e.location.search),(o||n!==null)&&wo.set(e,n),wo.get(e)??null}const ad={"error.method":"Tohle se takhle spustit nedá. Obnovte prosím stránku.","error.origin":"Požadavek nepřišel z této stránky. Obnovte ji prosím a zkuste to znovu.","error.unavailable":"Teď se to nepodařilo načíst ani uložit. Zkuste to prosím za chvíli.","error.invalid":"Něco ve formuláři nesedí. Zkontrolujte ho prosím a zkuste to znovu.","error.signIn":"K tomu je potřeba přihlásit se čtenářským účtem.","error.onboarding":"Než začnete psát, dokončete prosím vstup do diskuse.","error.age":"Diskuse je otevřená od vyššího věku, zapojit se do ní zatím nejde.","error.name":"Tohle jméno použít nejde. Zkuste prosím jiné.","error.handle":"Tohle uživatelské jméno je obsazené, nebo jste ho nedávno měnili. Zkuste prosím jiné, nebo později.","error.restricted":"Psaní do diskuse máte teď omezené.","error.suspended":"Váš účet v diskusi je teď pozastavený.","error.terminated":"Váš účet v diskusi je zrušený.","error.links":"V komentáři je víc odkazů, než se vejde. Některé prosím uberte.","error.fast":"Jde to moc rychle za sebou. Chvilku počkejte a zkuste to znovu.","error.blocked":"Komentář v téhle podobě zveřejnit nejde. Zkuste ho prosím upravit.","error.confirm":"Než komentář odešlete, potvrďte prosím jednu věc.","error.removed":"Tahle zpráva byla odstraněna, upravit ji už nejde.","error.quota":"Posíláte toho hodně najednou. Zkuste to prosím později.","error.captcha":"Nepodařilo se ověřit, že nejste robot. Počkejte prosím na nové ověření a odešlete to znovu.","error.notFound":"Tohle jsme nenašli. Možná už není k dispozici.","error.surfaceOff":"Diskuse tu teď není k dispozici.","error.notMoved":"Diskusi teď připravujeme. Psát do ní půjde brzy.","error.ledger":"Teď se to nepodařilo uložit a všechno zůstalo, jak bylo. Zkuste to prosím znovu.","error.submit":"Nepovedlo se to. Obnovte prosím stránku a zkuste to znovu.","need.sign_in":"Do diskuse můžete psát po přihlášení.","need.onboarding":"Před prvním komentářem si nastavte jméno a potvrďte pravidla diskuse.","need.reconsent_rules":"Pravidla diskuse se změnila. Potvrďte prosím novou verzi.","need.art9_consent":"Pro psaní do diskuse potřebujeme váš souhlas se zpracováním.","state.visible":"Zveřejněno","state.held":"Čeká na kontrolu","state.removed":"Odstraněno","state.deleted":"Smazáno","state.hiddenUntilConsent":"Čeká na váš souhlas","note.identification_safety":"Podle fotky se houba spolehlivě určit nedá a o jedlosti tady nerozhodujeme. Při podezření na otravu volejte Toxikologické informační středisko: 224 919 293 (nonstop).","note.report_to_manufacturer":"Jde-li o nežádoucí účinek přípravku, dejte nám o něm prosím vědět také v poradně, ať ho můžeme prověřit.","category.fraud_spam":"Podvod nebo spam","category.harassment":"Obtěžování","category.hate":"Nenávistné projevy","category.threats":"Výhrůžky","category.sexual_content":"Sexuální obsah","category.child_at_risk":"Ohrožené dítě","category.self_harm":"Sebepoškozování","category.doxxing":"Zveřejnění cizích osobních údajů","category.copyright":"Porušení autorských práv","category.terrorism":"Terorismus","category.drugs":"Drogy","category.other_illegal":"Jiný nezákonný obsah","category.rules":"Porušení pravidel diskuse","category.adverse_event":"Nežádoucí účinek přípravku","category.third_party_health_data":"Cizí údaje o zdraví","category.suspected_minor":"Autor je nejspíš mladší, než pravidla dovolují","confirm.title":"Než to odešlete","confirm.about_self_or_consent":"Píšu o sobě, nebo mám souhlas člověka, o kterém píšu.","confirm.good_faith":"Potvrzuji, že podle mého nejlepšího vědomí je hlášení přesné a úplné.","confirm.other":"Rozumím upozornění a chci komentář odeslat.","confirm.submit":"Potvrdit a odeslat","warning.identifier":"V komentáři je nejspíš e-mail, telefon nebo číslo účtu. Pokud tam být nemá, komentář upravte.","warning.invisible_chars":"Z komentáře jsme odstranili neviditelné znaky.","warning.other":"Komentář je zveřejněný, ale pravidla diskuse u něj na něco upozorňují. Projděte si ho prosím.","author.deleted":"Smazaný uživatel","author.system":"Oznámení webu","author.badge.team":"Tým","discussion.title":"Diskuse","discussion.count_one":"{count} komentář","discussion.count_few":"{count} komentáře","discussion.count_many":"{count} komentáře","discussion.count_other":"{count} komentářů","discussion.empty":"Zatím tu nejsou komentáře. Začněte diskusi jako první.","discussion.loading":"Načítám diskusi…","discussion.loadMore":"Načíst další","discussion.newMessages":"V diskusi přibyly nové komentáře.","discussion.refresh":"Zobrazit","discussion.signInPrompt":"Přihlaste se a zapojte se do diskuse.","discussion.reply":"Odpovědět","discussion.edit":"Upravit","discussion.delete":"Smazat","discussion.deleteTitle":"Smazat komentář?","discussion.deleteExplain":"Komentář zmizí. Pokud na něj už někdo odpověděl, zůstane po něm prázdné místo.","discussion.deleteConfirm":"Ano, smazat","discussion.report":"Nahlásit","discussion.block":"Blokovat autora","discussion.unblock":"Odblokovat autora","discussion.blocked":"Autora jste zablokovali. Jeho komentáře uvidíte sbalené.","discussion.unblocked":"Autora jste odblokovali.","discussion.menu":"Další akce","discussion.collapsed":"Komentář autora, kterého jste zablokovali.","discussion.show":"Zobrazit","discussion.hide":"Skrýt","discussion.edited":"upraveno","discussion.translated":"Přeloženo automaticky","discussion.showOriginal":"Zobrazit originál","discussion.showTranslation":"Zobrazit překlad","discussion.showReplies_one":"Zobrazit {count} odpověď","discussion.showReplies_few":"Zobrazit {count} odpovědi","discussion.showReplies_many":"Zobrazit {count} odpovědi","discussion.showReplies_other":"Zobrazit {count} odpovědí","discussion.repliesTruncated":"Odpovědí je tu víc, než se dá zobrazit najednou.","discussion.heldNote":"Komentář čeká na kontrolu a zatím ho vidíte jen vy. Po kontrole se ukáže ostatním, nebo se v Moje komunita dozvíte, proč ne.","discussion.hiddenUntilConsentNote":"Komentář zatím vidíte jen vy. Ostatním se ukáže, až udělíte souhlas se zpracováním.","discussion.giveConsent":"Udělit souhlas","discussion.removedNote":"Tenhle komentář jsme odstranili a ostatní ho nevidí.","discussion.why":"Proč?","discussion.placeholderHeld":"Komentář čeká na kontrolu.","discussion.placeholderRemoved":"Komentář byl odstraněn.","discussion.placeholderDeleted":"Komentář byl smazán.","discussion.pending":"Odesílám…","discussion.reactions":"Reakce","discussion.reactionCount":"{emoji} {count}","discussion.reactionAdd":"Přidat reakci","discussion.reactionRemove":"Odebrat reakci","discussion.reactionMine":"Vaše reakce","composer.label":"Váš komentář","composer.replyLabel":"Vaše odpověď","composer.editLabel":"Úprava komentáře","composer.replyingTo":"Odpovídáte: {name}","composer.placeholder":"Napište komentář…","composer.counter":"{length} / {max} znaků","composer.tooLong":"Komentář je moc dlouhý. Zkraťte ho prosím nejvýš na {max} znaků.","composer.linksNote_one":"Do komentáře se vejde nejvýš {count} odkaz.","composer.linksNote_few":"Do komentáře se vejdou nejvýš {count} odkazy.","composer.linksNote_many":"Do komentáře se vejde nejvýš {count} odkazu.","composer.linksNote_other":"Do komentáře se vejde nejvýš {count} odkazů.","composer.shortcut":"Odeslat můžete i klávesami {keys}.","composer.submit":"Odeslat","composer.sending":"Odesílám…","composer.save":"Uložit","composer.cancel":"Zrušit","composer.posted":"Komentář je zveřejněný.","composer.held":"Komentář máme, teď čeká na kontrolu.","composer.cooldown_one":"Další komentář můžete poslat za {count} sekundu.","composer.cooldown_few":"Další komentář můžete poslat za {count} sekundy.","composer.cooldown_many":"Další komentář můžete poslat za {count} sekundy.","composer.cooldown_other":"Další komentář můžete poslat za {count} sekund.","sanction.restriction":"Psaní do diskuse máte omezené.","sanction.restrictionUntil":"Psaní do diskuse máte omezené do {date}.","sanction.suspension":"Váš účet v diskusi je pozastavený.","sanction.suspensionUntil":"Váš účet v diskusi je pozastavený do {date}.","sanction.ban":"Váš účet v diskusi je zrušený.","sanction.statement":"Zobrazit odůvodnění","onboarding.title":"Vítejte v diskusi","onboarding.lede":"Než napíšete první komentář, potřebujeme od vás pár věcí. Zabere to chvilku.","onboarding.ageTitle":"Kolik vám je let?","onboarding.age.16_17":"16–17 let","onboarding.age.18_plus":"18 let a víc","onboarding.ageHint":"Ptáme se jen jednou a uložíme si jen věkovou skupinu.","onboarding.ageBelow":"Diskuse je otevřená od {min} let. Číst ji ale můžete dál.","onboarding.rulesTitle":"Pravidla diskuse","onboarding.rulesLede":"Přečtěte si prosím, jak to v diskusi chodí.","onboarding.rulesLink":"Celá pravidla","onboarding.rulesAccept":"Souhlasím s pravidly diskuse.","onboarding.rulesChanged":"Pravidla diskuse se od vaší poslední návštěvy změnila. Přečtěte si prosím novou verzi a potvrďte ji.","onboarding.art9Title":"Souhlas se zpracováním","onboarding.art9Lede":"Pro psaní do diskuse potřebujeme váš souhlas podle textu níže.","onboarding.art9Accept":"Souhlasím se zpracováním podle textu výše.","onboarding.profileTitle":"Jak vás uvidí ostatní","onboarding.displayName":"Jméno v diskusi","onboarding.displayNameHint":"Může to být i přezdívka. Uvidí ho všichni čtenáři.","onboarding.handle":"Uživatelské jméno","onboarding.handleHint":"Malá písmena, číslice a podtržítko, {min} až {max} znaků. Změnit ho jde jednou za {days} dní.","onboarding.handleSuggested":"Navrhujeme: {handle}","onboarding.avatar":"Obrázek u jména","onboarding.avatarNone":"Bez obrázku","onboarding.continue":"Pokračovat","onboarding.back":"Zpět","onboarding.submit":"Hotovo","onboarding.done":"Hotovo, teď můžete psát.","report.title":"Nahlásit komentář","report.lede":"Hlášení posoudí tým webu. Výsledek uvidíte v Moje komunita.","report.category":"Co je na komentáři špatně?","report.rule":"Které pravidlo porušuje?","report.ruleOther":"Jiné pravidlo","report.note":"Poznámka pro tým (nepovinné)","report.noteHint":"Poznámku uvidí jen tým, který hlášení posuzuje.","report.counter":"{length} / {max} znaků","report.submit":"Nahlásit","report.sending":"Odesílám…","report.cancel":"Zrušit","report.done":"Díky, hlášení máme. Výsledek uvidíte v Moje komunita.","panel.title":"Moje komunita","panel.signIn":"Moje komunita je dostupná po přihlášení.","panel.profile":"Profil","panel.profileEdit":"Upravit profil","panel.statements":"Rozhodnutí o mém obsahu","panel.statementsEmpty":"Rozhodnutí o vašem obsahu uvidíte tady.","panel.reports":"Moje hlášení","panel.reportsEmpty":"Hlášení, která pošlete, uvidíte tady.","panel.notifications":"Oznámení","panel.notificationsEmpty":"Nová oznámení uvidíte tady.","panel.unread_one":"{count} nepřečtené oznámení","panel.unread_few":"{count} nepřečtená oznámení","panel.unread_many":"{count} nepřečteného oznámení","panel.unread_other":"{count} nepřečtených oznámení","panel.markRead":"Označit jako přečtené","panel.blocks":"Zablokovaní autoři","panel.blocksEmpty":"Autory, které zablokujete, uvidíte tady.","panel.consents":"Souhlasy","panel.art9Given":"Souhlas se zpracováním je udělený.","panel.art9NotGiven":"Souhlas se zpracováním jste zatím nedali.","panel.art9Withdraw":"Odvolat souhlas","panel.art9WithdrawTitle":"Odvolat souhlas se zpracováním?","panel.art9WithdrawExplain":"Diskusi můžete dál číst. Psát do ní půjde, až souhlas zase udělíte.","panel.art9WithdrawConfirm":"Ano, odvolat souhlas","panel.art9WithdrawCancel":"Ponechat souhlas","panel.art9Withdrawn":"Souhlas jste odvolali.","panel.export":"Stáhnout moje data","panel.exportHint":"Soubor JSON s tím, co o vás v diskusi máme uložené.","panel.exporting":"Připravuji soubor…","panel.exportFileName":"moje-komunita","panel.erase":"Smazat profil v diskusi","panel.eraseExplain":"Po ochranné lhůtě smažeme váš profil v diskusi, vaše komentáře a reakce, pokud je nemusíme ze zákona uchovat. Účet na webu zůstane. Během lhůty to můžete zrušit.","panel.eraseTitle":"Opravdu smazat profil v diskusi?","panel.eraseConfirm":"Ano, smazat profil","panel.eraseKeep":"Ponechat","panel.eraseScheduled":"Profil v diskusi smažeme {date}. Do té doby to můžete zrušit.","panel.eraseCancel":"Zrušit smazání","panel.eraseCancelled":"Smazání jsme zrušili, profil zůstává.","statement.title":"Odůvodnění rozhodnutí","statement.decidedAt":"Rozhodnuto {date}","statement.provider":"Rozhoduje: {entity}","statement.restriction":"Opatření","statement.until":"Do {date}","statement.scope":"Rozsah","statement.scopeAll":"Všude","statement.basis":"Podnět","statement.facts":"Skutečnosti a okolnosti","statement.automation":"Automatizace","statement.automatedDetection":"Zjištěno automaticky","statement.automatedDecision":"Rozhodnuto automaticky","statement.humanDecision":"Rozhodl člověk","statement.legalGround":"Právní důvod","statement.contractualGround":"Pravidlo","statement.redress":"Možnosti nápravy","statement.subject":"Týká se","statement.subjectMessage":"Komentáře","statement.subjectProfile":"Profilu","statement.subjectArticle":"Článku","statement.full":"Celé odůvodnění","statement.appealTitle":"Odvolání","statement.appealLede":"Nesouhlasíte s rozhodnutím? Napište nám proč. Odvolání posoudí, kde to jde, jiný člověk než ten, kdo rozhodoval.","statement.appealUntil":"Odvolat se můžete do {date}.","statement.appealBody":"Proč s rozhodnutím nesouhlasíte?","statement.appealCounter":"{length} / {max} znaků","statement.appealSubmit":"Odeslat odvolání","statement.appealSending":"Odesílám…","statement.appealSent":"Odvolání máme. Až ho posoudíme, dáme vám vědět.","statement.appealOpen":"Vaše odvolání se posuzuje.","statement.appealWithdraw":"Vzít odvolání zpět","statement.appealWithdrawn":"Odvolání jste vzali zpět.","statement.appealClosed":"Lhůta pro odvolání uplynula.","statement.appealUnavailable":"Proti tomuto rozhodnutí se už odvolat nejde.","restriction.no_action":"Bez opatření","restriction.warning":"Upozornění","restriction.removal":"Odstranění obsahu","restriction.visibility_restricted":"Omezená viditelnost","restriction.posting_restricted":"Omezené psaní","restriction.account_suspended":"Pozastavený účet","restriction.account_terminated":"Zrušený účet","basis.notice":"Hlášení","basis.own_initiative":"Vlastní kontrola","basis.order":"Úřední příkaz","caseStatus.open":"Posuzujeme","caseStatus.decided":"Rozhodnuto","caseStatus.appealed":"Probíhá odvolání","caseStatus.closed":"Uzavřeno","appealStatus.open":"Posuzujeme","appealStatus.upheld":"Rozhodnutí platí","appealStatus.reversed":"Rozhodnutí zrušeno","appealStatus.withdrawn":"Vzato zpět","notification.decision":"Máte nové rozhodnutí o svém obsahu.","notification.appeal_resolved":"Vaše odvolání je vyřízené.","notification.erasure_scheduled":"Smazání vašeho profilu v diskusi je naplánované.","notification.inactivity_warning":"Dlouho jste v diskusi nebyli. Bez další aktivity váš profil po čase smažeme.","notice.title":"Nahlásit obsah","notice.lede":"Nahlásit můžete komentář, profil nebo článek, i bez přihlášení.","notice.noTarget":"Hlášení otevřete přímo u obsahu, který chcete nahlásit: u komentáře zvolte „Nahlásit“.","notice.category":"Proč obsah hlásíte?","notice.target":"Co hlásíte","notice.targetMessage":"Komentář","notice.targetProfile":"Profil","notice.targetArticle":"Článek","notice.rule":"Které pravidlo obsah porušuje?","notice.description":"Popis","notice.descriptionHint":"Popište prosím, co je na obsahu špatně a proč.","notice.counter":"{length} / {max} znaků","notice.contactTitle":"Kontakt (nepovinné)","notice.contactHint":"Kontakt potřebujeme k potvrzení přijetí a k odeslání výsledku.","notice.name":"Jméno","notice.email":"E-mail","notice.childAtRisk":"Hlášení o ohroženém dítěti přijímáme bez jména a e-mailu.","notice.submit":"Odeslat hlášení","notice.sending":"Odesílám…","notice.done":"Díky, hlášení máme.","notice.receiptLede":"Uložte si odkaz níže. Podle něj zjistíte, jak jsme hlášení vyřídili.","notice.statusLink":"Stav hlášení","notice.noContactKept":"Kontakt u tohoto hlášení neukládáme, výsledek vám proto e-mailem nepřijde. Zjistíte ho přes odkaz výše.","notice.captchaUnavailable":"Ověření proti robotům se nenačetlo (možná ho blokuje rozšíření prohlížeče), takže formulář teď odeslat nejde. Zkuste prosím stránku obnovit.","notice.statusTitle":"Stav hlášení","notice.submittedAt":"Odesláno {date}","notice.decidedAt":"Rozhodnuto {date}","notice.statement":"Odůvodnění","notice.appealTitle":"Odvolání","notice.appealLede":"Nesouhlasíte s tím, jak jsme hlášení vyřídili? Napište nám proč.","notice.appealBody":"Proč s rozhodnutím nesouhlasíte?","notice.appealSubmit":"Odeslat odvolání","notice.appealSent":"Odvolání máme.","notice.appealOpen":"Vaše odvolání se posuzuje.","notice.appealWithdraw":"Vzít odvolání zpět","notice.appealUntil":"Odvolat se můžete do {date}.","notice.appealClosed":"Lhůta pro odvolání uplynula.","notice.receiptMissing":"V odkazu chybí číslo hlášení. Otevřete prosím celý odkaz z e-mailu.","common.signIn":"Přihlásit se","common.close":"Zavřít","common.cancel":"Zrušit","common.retry":"Zkusit znovu","common.loading":"Načítám…","common.back":"Zpět","common.optional":"nepovinné","common.needsJs":"Tahle část stránky potřebuje zapnutý JavaScript. Zapněte ho prosím a stránku obnovte."},ld={"error.method":"This can't be started this way. Please reload the page.","error.origin":"This request didn't come from this page. Please reload it and try again.","error.unavailable":"We couldn't load or save that just now. Please try again in a little while.","error.invalid":"Something in the form isn't right. Please check it and try again.","error.signIn":"You need to sign in with a reader account for this.","error.onboarding":"Before you write, please finish joining the discussion.","error.age":"The discussion is open to an older age group, so you can't join it yet.","error.name":"This name can't be used. Please try another one.","error.handle":"This username is taken, or you changed yours recently. Please try another one, or try later.","error.restricted":"Your posting in the discussion is restricted for now.","error.suspended":"Your discussion account is suspended for now.","error.terminated":"Your discussion account is closed.","error.links":"This comment has more links than fit. Please remove some of them.","error.fast":"That's a bit fast. Please wait a moment and try again.","error.blocked":"This comment can't be published as it is. Please try editing it.","error.confirm":"Before you send the comment, please confirm one thing.","error.removed":"This message was removed; it can't be edited any more.","error.quota":"That's a lot in a short time — please try again later.","error.captcha":"We couldn't check that you're not a robot. Please wait for a new check and send it again.","error.notFound":"We couldn't find this. It may not be available any more.","error.surfaceOff":"The discussion isn't available here right now.","error.notMoved":"We're preparing the discussion. You'll be able to write here soon.","error.ledger":"That couldn't be saved just now, and everything is as it was. Please try again.","error.submit":"That didn't work. Please reload the page and try again.","need.sign_in":"Sign in to write in the discussion.","need.onboarding":"Before your first comment, choose a name and confirm the discussion rules.","need.reconsent_rules":"The discussion rules have changed. Please confirm the new version.","need.art9_consent":"To write in the discussion, we need your consent to the processing.","state.visible":"Published","state.held":"Awaiting review","state.removed":"Removed","state.deleted":"Deleted","state.hiddenUntilConsent":"Awaiting your consent","note.identification_safety":"A mushroom can't be reliably identified from a photo, and edibility isn't decided here. If you suspect poisoning, call the Czech Toxicological Information Centre: +420 224 919 293 (24/7).","note.report_to_manufacturer":"If this is about a side effect of a product, please also tell us through the advice desk so we can look into it.","category.fraud_spam":"Fraud or spam","category.harassment":"Harassment","category.hate":"Hate speech","category.threats":"Threats","category.sexual_content":"Sexual content","category.child_at_risk":"A child at risk","category.self_harm":"Self-harm","category.doxxing":"Publishing someone else's personal data","category.copyright":"Copyright infringement","category.terrorism":"Terrorism","category.drugs":"Drugs","category.other_illegal":"Other illegal content","category.rules":"Breaks the discussion rules","category.adverse_event":"A side effect of a product","category.third_party_health_data":"Someone else's health information","category.suspected_minor":"The author seems younger than the rules allow","confirm.title":"Before you send it","confirm.about_self_or_consent":"I'm writing about myself, or I have the consent of the person I'm writing about.","confirm.good_faith":"I confirm that, to the best of my knowledge, this report is accurate and complete.","confirm.other":"I understand the notice and want to send the comment.","confirm.submit":"Confirm and send","warning.identifier":"The comment seems to contain an e-mail address, a phone number or an account number. If it shouldn't be there, edit the comment.","warning.invisible_chars":"We removed invisible characters from the comment.","warning.other":"The comment is published, but the discussion rules flag something in it. Please look it over.","author.deleted":"Deleted user","author.system":"Site notice","author.badge.team":"Team","discussion.title":"Discussion","discussion.count_one":"{count} comment","discussion.count_other":"{count} comments","discussion.empty":"There aren't any comments yet. Start the discussion.","discussion.loading":"Loading the discussion…","discussion.loadMore":"Load more","discussion.newMessages":"There are new comments in the discussion.","discussion.refresh":"Show","discussion.signInPrompt":"Sign in to join the discussion.","discussion.reply":"Reply","discussion.edit":"Edit","discussion.delete":"Delete","discussion.deleteTitle":"Delete the comment?","discussion.deleteExplain":"The comment disappears. If someone has replied to it, an empty placeholder stays in its place.","discussion.deleteConfirm":"Yes, delete","discussion.report":"Report","discussion.block":"Block the author","discussion.unblock":"Unblock the author","discussion.blocked":"You've blocked the author. Their comments will show collapsed.","discussion.unblocked":"You've unblocked the author.","discussion.menu":"More actions","discussion.collapsed":"A comment by an author you've blocked.","discussion.show":"Show","discussion.hide":"Hide","discussion.edited":"edited","discussion.translated":"Translated automatically","discussion.showOriginal":"Show the original","discussion.showTranslation":"Show the translation","discussion.showReplies_one":"Show {count} reply","discussion.showReplies_other":"Show {count} replies","discussion.repliesTruncated":"There are more replies than can be shown at once.","discussion.heldNote":"The comment is awaiting review and only you can see it for now. After the review it shows to others, or you'll find out why not in My community.","discussion.hiddenUntilConsentNote":"Only you can see this comment for now. Others will see it once you give your consent to the processing.","discussion.giveConsent":"Give consent","discussion.removedNote":"We removed this comment; others can't see it.","discussion.why":"Why?","discussion.placeholderHeld":"This comment is awaiting review.","discussion.placeholderRemoved":"This comment was removed.","discussion.placeholderDeleted":"This comment was deleted.","discussion.pending":"Sending…","discussion.reactions":"Reactions","discussion.reactionCount":"{emoji} {count}","discussion.reactionAdd":"Add a reaction","discussion.reactionRemove":"Remove the reaction","discussion.reactionMine":"Your reaction","composer.label":"Your comment","composer.replyLabel":"Your reply","composer.editLabel":"Editing the comment","composer.replyingTo":"Replying to: {name}","composer.placeholder":"Write a comment…","composer.counter":"{length} / {max} characters","composer.tooLong":"The comment is too long. Please shorten it to {max} characters at most.","composer.linksNote_one":"A comment can hold up to {count} link.","composer.linksNote_other":"A comment can hold up to {count} links.","composer.shortcut":"You can also send it with {keys}.","composer.submit":"Send","composer.sending":"Sending…","composer.save":"Save","composer.cancel":"Cancel","composer.posted":"The comment is published.","composer.held":"We've got the comment; it's awaiting review now.","composer.cooldown_one":"You can post again in {count} second.","composer.cooldown_other":"You can post again in {count} seconds.","sanction.restriction":"Your posting in the discussion is restricted.","sanction.restrictionUntil":"Your posting in the discussion is restricted until {date}.","sanction.suspension":"Your discussion account is suspended.","sanction.suspensionUntil":"Your discussion account is suspended until {date}.","sanction.ban":"Your discussion account is closed.","sanction.statement":"Show the statement of reasons","onboarding.title":"Welcome to the discussion","onboarding.lede":"Before your first comment, we need a few things from you. It takes a moment.","onboarding.ageTitle":"How old are you?","onboarding.age.16_17":"16–17","onboarding.age.18_plus":"18 or older","onboarding.ageHint":"We ask once and keep only the age group.","onboarding.ageBelow":"The discussion is open from the age of {min}. You can keep reading it, though.","onboarding.rulesTitle":"Discussion rules","onboarding.rulesLede":"Please read how the discussion works.","onboarding.rulesLink":"The full rules","onboarding.rulesAccept":"I agree to the discussion rules.","onboarding.rulesChanged":"The discussion rules have changed since your last visit. Please read the new version and confirm it.","onboarding.art9Title":"Consent to processing","onboarding.art9Lede":"To write in the discussion, we need your consent as described below.","onboarding.art9Accept":"I consent to the processing as described above.","onboarding.profileTitle":"How others will see you","onboarding.displayName":"Name in the discussion","onboarding.displayNameHint":"It can be a nickname. Every reader will see it.","onboarding.handle":"Username","onboarding.handleHint":"Lower-case letters, digits and the underscore, {min} to {max} characters. It can be changed once every {days} days.","onboarding.handleSuggested":"Suggested: {handle}","onboarding.avatar":"Picture next to your name","onboarding.avatarNone":"Without a picture","onboarding.continue":"Continue","onboarding.back":"Back","onboarding.submit":"Done","onboarding.done":"Done — you can write now.","report.title":"Report the comment","report.lede":"The site's team reviews the report. You'll see the outcome in My community.","report.category":"What's wrong with the comment?","report.rule":"Which rule does it break?","report.ruleOther":"Another rule","report.note":"A note for the team (optional)","report.noteHint":"Only the team that reviews the report sees the note.","report.counter":"{length} / {max} characters","report.submit":"Report","report.sending":"Sending…","report.cancel":"Cancel","report.done":"Thanks, we've got the report. You'll see the outcome in My community.","panel.title":"My community","panel.signIn":"My community is available after you sign in.","panel.profile":"Profile","panel.profileEdit":"Edit the profile","panel.statements":"Decisions about my content","panel.statementsEmpty":"Decisions about your content will show here.","panel.reports":"My reports","panel.reportsEmpty":"The reports you send will show here.","panel.notifications":"Notifications","panel.notificationsEmpty":"New notifications will show here.","panel.unread_one":"{count} unread notification","panel.unread_other":"{count} unread notifications","panel.markRead":"Mark as read","panel.blocks":"Blocked authors","panel.blocksEmpty":"Authors you block will show here.","panel.consents":"Consents","panel.art9Given":"Consent to the processing is given.","panel.art9NotGiven":"You haven't given consent to the processing yet.","panel.art9Withdraw":"Withdraw consent","panel.art9WithdrawTitle":"Withdraw your consent to the processing?","panel.art9WithdrawExplain":"You can keep reading the discussion. You'll be able to write again once you give the consent again.","panel.art9WithdrawConfirm":"Yes, withdraw consent","panel.art9WithdrawCancel":"Keep the consent","panel.art9Withdrawn":"You've withdrawn your consent.","panel.export":"Download my data","panel.exportHint":"A JSON file with what the discussion keeps about you.","panel.exporting":"Preparing the file…","panel.exportFileName":"my-community","panel.erase":"Delete my discussion profile","panel.eraseExplain":"After a grace period we delete your discussion profile, your comments and reactions, unless the law requires us to keep them. Your account on the site stays. You can cancel it during the grace period.","panel.eraseTitle":"Really delete your discussion profile?","panel.eraseConfirm":"Yes, delete the profile","panel.eraseKeep":"Keep it","panel.eraseScheduled":"We will delete your discussion profile on {date}. You can cancel it until then.","panel.eraseCancel":"Cancel the deletion","panel.eraseCancelled":"The deletion is cancelled; your profile stays.","statement.title":"Statement of reasons","statement.decidedAt":"Decided on {date}","statement.provider":"Decided by: {entity}","statement.restriction":"Measure","statement.until":"Until {date}","statement.scope":"Scope","statement.scopeAll":"Everywhere","statement.basis":"Prompted by","statement.facts":"Facts and circumstances","statement.automation":"Automation","statement.automatedDetection":"Detected automatically","statement.automatedDecision":"Decided automatically","statement.humanDecision":"Decided by a person","statement.legalGround":"Legal ground","statement.contractualGround":"Rule","statement.redress":"Redress","statement.subject":"Concerns","statement.subjectMessage":"A comment","statement.subjectProfile":"A profile","statement.subjectArticle":"An article","statement.full":"The full statement","statement.appealTitle":"Appeal","statement.appealLede":"Don't agree with the decision? Tell us why. Where possible, a different person from the one who decided reviews the appeal.","statement.appealUntil":"You can appeal until {date}.","statement.appealBody":"Why don't you agree with the decision?","statement.appealCounter":"{length} / {max} characters","statement.appealSubmit":"Send the appeal","statement.appealSending":"Sending…","statement.appealSent":"We've got the appeal. We'll let you know once it's reviewed.","statement.appealOpen":"Your appeal is being reviewed.","statement.appealWithdraw":"Withdraw the appeal","statement.appealWithdrawn":"You've withdrawn the appeal.","statement.appealClosed":"The time for an appeal has passed.","statement.appealUnavailable":"This decision can't be appealed any more.","restriction.no_action":"Left as it was","restriction.warning":"A warning","restriction.removal":"Content removed","restriction.visibility_restricted":"Visibility restricted","restriction.posting_restricted":"Posting restricted","restriction.account_suspended":"Account suspended","restriction.account_terminated":"Account closed","basis.notice":"A report","basis.own_initiative":"Our own review","basis.order":"An official order","caseStatus.open":"Under review","caseStatus.decided":"Decided","caseStatus.appealed":"Under appeal","caseStatus.closed":"Closed","appealStatus.open":"Under review","appealStatus.upheld":"The decision stands","appealStatus.reversed":"The decision was reversed","appealStatus.withdrawn":"Withdrawn","notification.decision":"There is a new decision about your content.","notification.appeal_resolved":"Your appeal has been resolved.","notification.erasure_scheduled":"The deletion of your discussion profile is scheduled.","notification.inactivity_warning":"You haven't been active in the discussion for a long time. Without further activity, we'll delete your profile after a while.","notice.title":"Report content","notice.lede":"You can report a comment, a profile or an article, even without signing in.","notice.noTarget":"Open a report from the content you want to report: on a comment, choose “Report”.","notice.category":"Why are you reporting the content?","notice.target":"What you're reporting","notice.targetMessage":"A comment","notice.targetProfile":"A profile","notice.targetArticle":"An article","notice.rule":"Which rule does the content break?","notice.description":"Description","notice.descriptionHint":"Please describe what's wrong with the content and why.","notice.counter":"{length} / {max} characters","notice.contactTitle":"Contact (optional)","notice.contactHint":"We need a contact to confirm that the report arrived and to send you the outcome.","notice.name":"Name","notice.email":"E-mail","notice.childAtRisk":"We take reports of a child at risk without a name or an e-mail address.","notice.submit":"Send the report","notice.sending":"Sending…","notice.done":"Thanks, we've got the report.","notice.receiptLede":"Keep the link below. It's how you'll find out how we handled the report.","notice.statusLink":"Report status","notice.noContactKept":"We don't keep a contact for this report, so the outcome won't come by e-mail. You'll find it through the link above.","notice.captchaUnavailable":"The robot check didn't load (a browser extension may be blocking it), so the form can't be sent right now. Please try reloading the page.","notice.statusTitle":"Report status","notice.submittedAt":"Sent on {date}","notice.decidedAt":"Decided on {date}","notice.statement":"Statement of reasons","notice.appealTitle":"Appeal","notice.appealLede":"Don't agree with how we handled the report? Tell us why.","notice.appealBody":"Why don't you agree with the decision?","notice.appealSubmit":"Send the appeal","notice.appealSent":"We've got the appeal.","notice.appealOpen":"Your appeal is being reviewed.","notice.appealWithdraw":"Withdraw the appeal","notice.appealUntil":"You can appeal until {date}.","notice.appealClosed":"The time for an appeal has passed.","notice.receiptMissing":"The link is missing the report number. Please open the whole link from the e-mail.","common.signIn":"Sign in","common.close":"Close","common.cancel":"Cancel","common.retry":"Try again","common.loading":"Loading…","common.back":"Back","common.optional":"optional","common.needsJs":"This part of the page needs JavaScript. Please turn it on and reload the page."},xo=Object.freeze({cs:Object.freeze(ad),en:Object.freeze(ld)});function cd(e){return(typeof e=="string"?e.toLowerCase().split("-")[0]:"")==="cs"?"cs":"en"}const So=new Map;function ud(e,t){if(!So.has(e)){let n=null;try{n=new Intl.PluralRules(e)}catch{}So.set(e,n)}return So.get(e)?.select(t)??"other"}function dd(e){const t=typeof e=="number"?e:typeof e=="string"&&e.trim()!==""?Number(e):Number.NaN;return Number.isFinite(t)?t:null}function jn(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}function fd(e,t){return t?e.replace(/\{(\w+)\}/g,(n,o)=>Object.prototype.hasOwnProperty.call(t,o)&&t[o]!=null?String(t[o]):n):e}function Jr(e,t,n){const o=cd(e),s=xo[o];let i=jn(s,t);if(i===void 0){const a=dd(n?.count),l=a===null?"other":ud(o,a);i=jn(s,`${t}_${l}`)??jn(s,`${t}_other`)}return i===void 0?String(t):fd(i,n)}function ys(e){return typeof e!="string"?!1:jn(xo.en,e)!==void 0||jn(xo.en,`${e}_other`)!==void 0}function pd(e){return typeof e=="string"&&e.startsWith("identifier_")?"warning.identifier":e==="invisible_chars"?"warning.invisible_chars":"warning.other"}function md(e){const t=`confirm.${e}`;return e!=="title"&&e!=="submit"&&e!=="other"&&ys(t)?t:"confirm.other"}function hd(e){const t=`note.${e}`;return ys(t)?t:null}const bd=["statementPath","myCommunityPath","rulesPath","reportPath","noticesPath","consultationPath"];function Io(e){return typeof e=="string"&&/^\/(?![/\\])/.test(e)&&!/[\s\\\u0000-\u001f\u007f]/.test(e)}const Xr=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function Qr(e){if(typeof e!="string")return e;if(e.trim()==="")return null;try{return JSON.parse(e)}catch{return null}}function Co(e){const t=Qr(e),n={};if(!Xr(t))return n;for(const o of bd)Io(t[o])&&(n[o]=t[o]);return n}function gd(e){if(e==null||e==="")return"";if(typeof e!="string")return null;const t=e.replace(/\/+$/,"");return t===""?e.startsWith("/")?"":null:/^(?:\/(?!\.{1,2}(?:\/|$))[A-Za-z0-9._~%-]+)+$/.test(t)?t:null}function Ao(e,t,n=""){const o=s=>Io(s)?s:void 0;return{statementPath:e.statementPath??o(t?.statementPath)??`${n}${Wt.statement}`,myCommunityPath:e.myCommunityPath??o(t?.myCommunityPath)??`${n}${Wt.myCommunity}`,rulesPath:e.rulesPath??`${n}${Wt.rules}`,reportPath:e.reportPath??`${n}${Wt.report}`,noticesPath:e.noticesPath??`${n}${Wt.notices}`,consultationPath:e.consultationPath??null}}const yd=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,vd=/^[a-z0-9][a-z0-9_]{2,29}$/,vs=e=>typeof e=="string"&&yd.test(e),ea=e=>typeof e=="number"&&Number.isSafeInteger(e)&&e>0;function _s(e){const t=Qr(e);return Xr(t)?"conversationId"in t?vs(t.conversationId)&&ea(t.seq)?{conversationId:t.conversationId.toLowerCase(),seq:t.seq}:null:"memberId"in t?vs(t.memberId)?{memberId:t.memberId.toLowerCase()}:null:"handle"in t?typeof t.handle=="string"&&vd.test(t.handle)?{handle:t.handle}:null:"articleId"in t&&vs(t.articleId)?{articleId:t.articleId.toLowerCase()}:null:null}function _d(e){return"conversationId"in e?"message":"articleId"in e?"article":"profile"}function kd(e,t){return!Io(e)||e.includes("#")||!vs(t.conversationId)||!ea(t.seq)?null:`${e}#c=${t.conversationId.toLowerCase()}&s=${t.seq}`}function wd(e){if(typeof e!="string"||!e.startsWith("#")||e.startsWith("#t="))return null;const t=new Map;for(const i of e.slice(1).split("&")){const a=i.indexOf("=");a>0&&t.set(i.slice(0,a),i.slice(a+1))}const n=t.get("c"),o=t.get("s");if(n!==void 0&&o!==void 0&&/^\d{1,15}$/.test(o))return _s({conversationId:n,seq:Number(o)});const s=t.get("a");return s!==void 0?_s({articleId:s}):null}const xd="/api/community",ta=new Set;function fn(e,t){ta.has(e)||(ta.add(e),console.warn(t))}function To(e){const t=gd(e);return t===null&&fn("site-base",'[blogmcp-community] site-base must be a path on this site (e.g. "/blog"), never a URL: the site’s pages and its proxy are found under it'),t}function $o(e,t,n=""){const o=e==null||e===""?`${n}${xd}`:e;if(!Pr(o))return fn("api-base",'[blogmcp-community] api-base must be a path on this site (e.g. "/api/community"), never a URL: the community API is reached through the site’s own proxy or BFF'),null;try{return Nu(t?{base:o,transport:t}:{base:o})}catch{return fn("api-base","[blogmcp-community] api-base was refused by the community client"),null}}var ks={},Se={},na;function Sd(){return na||(na=1,Object.defineProperty(Se,"__esModule",{value:!0}),Se.BLANK_URL=Se.relativeFirstCharacters=Se.whitespaceEscapeCharsRegex=Se.urlSchemeRegex=Se.ctrlCharactersRegex=Se.htmlCtrlEntityRegex=Se.htmlEntitiesRegex=Se.invalidProtocolRegex=void 0,Se.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,Se.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,Se.htmlCtrlEntityRegex=/&(newline|tab);/gi,Se.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,Se.urlSchemeRegex=/^.+(:|:)/gim,Se.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,Se.relativeFirstCharacters=[".","/"],Se.BLANK_URL="about:blank"),Se}var sa;function Id(){if(sa)return ks;sa=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.sanitizeUrl=i;var e=Sd();function t(a){return e.relativeFirstCharacters.indexOf(a[0])>-1}function n(a){var l=a.replace(e.ctrlCharactersRegex,"");return l.replace(e.htmlEntitiesRegex,function(c,m){return String.fromCharCode(m)})}function o(a){return URL.canParse(a)}function s(a){try{return decodeURIComponent(a)}catch{return a}}function i(a){if(!a)return e.BLANK_URL;var l,c=s(a.trim());do c=n(c).replace(e.htmlCtrlEntityRegex,"").replace(e.ctrlCharactersRegex,"").replace(e.whitespaceEscapeCharsRegex,"").trim(),c=s(c),l=c.match(e.ctrlCharactersRegex)||c.match(e.htmlEntitiesRegex)||c.match(e.htmlCtrlEntityRegex)||c.match(e.whitespaceEscapeCharsRegex);while(l&&l.length>0);var m=c;if(!m)return e.BLANK_URL;if(t(m))return m;var u=m.trimStart(),_=u.match(e.urlSchemeRegex);if(!_)return m;var T=_[0].toLowerCase().trim();if(e.invalidProtocolRegex.test(T))return e.BLANK_URL;var S=u.replace(/\\/g,"/");if(T==="mailto:"||T.includes("://"))return S;if(T==="http:"||T==="https:"){if(!o(S))return e.BLANK_URL;var A=new URL(S);return A.protocol=A.protocol.toLowerCase(),A.hostname=A.hostname.toLowerCase(),A.toString()}return S}return ks}var Cd=Id();const Ad="nofollow ugc noopener noreferrer",Td=/\b(?:https?:\/\/|www\.)[^\s<>"'`{}|\\^]+/gi,$d=`.,;:!?…'"»”’]`;function Od(e){let t=e;for(;t.length>0;){const n=t[t.length-1];if(n===")"){const o=t.split("(").length-1;if(t.split(")").length-1<=o)break}else if(!$d.includes(n))break;t=t.slice(0,-1)}return t}function Ed(e){const t=/^www\./i.test(e)?`https://${e}`:e;if(/^https?:\/\/$/i.test(t))return null;const n=Cd.sanitizeUrl(t);return n!=="about:blank"&&/^https?:\/\//i.test(n)?n:null}function Md(e){const t=[];if(typeof e!="string"||e==="")return t;let n=0;for(const o of e.matchAll(Td)){const s=o.index??0;if(s<n)continue;const i=Od(o[0]),a=i?Ed(i):null;a&&(s>n&&t.push({kind:"text",text:e.slice(n,s)}),t.push({kind:"link",text:i,href:a}),n=s+i.length)}return n<e.length&&t.push({kind:"text",text:e.slice(n)}),t}function lt(e){let t=0;for(const n of e)t++;return t}function et(e){return typeof e=="string"?e.normalize("NFC").trim():""}const Nd=Object.freeze({amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" ",ndash:"–",mdash:"—",hellip:"…",laquo:"«",raquo:"»",bdquo:"„",ldquo:"“",rdquo:"”",lsquo:"‘",rsquo:"’",sbquo:"‚",copy:"©",reg:"®",euro:"€",shy:""});function Pd(e){return e.replace(/&(#\d{1,7}|#x[0-9a-f]{1,6}|[a-z]{2,8});/gi,(t,n)=>{if(n[0]==="#"){const o=n[1]==="x"||n[1]==="X",s=Number.parseInt(n.slice(o?2:1),o?16:10);return s>0&&s<=1114111&&!(s>=55296&&s<=57343)?String.fromCodePoint(s):t}return Nd[n.toLowerCase()]??t})}const Rd=/<\/(?:p|div|li|h[1-6]|section|article|blockquote|tr|ul|ol|dl|dt|dd|header|footer|table|pre|figure)\s*>/gi,jd=/<(?:li|tr|dt|dd|h[1-6]|blockquote|pre|figure)\b[^>]*>/gi;function zd(e){if(typeof e!="string"||e==="")return[];const t=e.replace(/<!--[\s\S]*?-->/g,"").replace(/<(script|style|template|noscript|svg|math)\b[\s\S]*?<\/\1\s*>/gi,"").replace(/[\t\n\r\f ]+/g," ").replace(/<br\b[^>]*>/gi,`
|
|
5
|
+
`).replace(Rd,`
|
|
6
|
+
|
|
7
|
+
`).replace(jd,`
|
|
8
|
+
|
|
9
|
+
`).replace(/<[^>]*>/g,"");return Pd(t).split(/\n{2,}/).map(n=>n.replace(/ *\n */g,`
|
|
10
|
+
`).replace(/[ ]{2,}/g," ").trim()).filter(n=>n!=="")}function ws(e){return typeof e=="string"?e.normalize("NFKC").replace(/\s+/gu," ").trim():""}function oa(e){const t=lt(ws(e));return t>=ou&&t<=Or}const ia=3,xs=30;function pn(e){return typeof e=="string"?e.trim().toLowerCase():""}function ra(e){const t=pn(e);return t===""||Er.test(t)}const Ld=Object.freeze({ß:"ss",ł:"l",đ:"d",ð:"d",ø:"o",ħ:"h",ŧ:"t",ı:"i",æ:"ae",œ:"oe",þ:"th",ŀ:"l"});function Dd(e){const o=ws(e).toLowerCase().normalize("NFD").replace(new RegExp("\\p{M}+","gu"),"").normalize("NFC").replace(/[ßłđðøħŧıæœþŀ]/g,s=>Ld[s]??s).split(/[^a-z0-9]+/).filter(s=>s!=="").join("_").slice(0,24).replace(/_+$/,"");return Er.test(o)?o:null}const Ud=new Set(["displayName","handle","avatarPreset"]),Fd=new Set(["rulesTextId","art9TextId"]);function qd(e,t){const n=[];return e.member?.ageBand||n.push("age"),e.acceptances.rules!=="accepted"&&n.push("rules"),t.includes("art9_consent")&&n.push("art9"),e.profile||n.push("profile"),n}function Hd(e){const t=e.signal?{signal:e.signal}:{},n=gt({phase:"loading",steps:[],index:0,me:null,rulesText:null,rules:[],art9Text:null,art9Paragraphs:[],reconsent:!1,ageBand:null,rulesAccepted:!1,art9Accepted:!1,displayName:"",handle:"",avatarPreset:null,failure:null,fields:[],minAge:null}),o=v=>{n.failure=v,n.phase="failed"};async function s(v){const[w,C]=await Promise.all([v.includes("rules")?e.client.legal.current({kind:"rules",locale:e.lang},t):null,v.includes("art9")?e.client.legal.current({kind:"art9_consent",locale:e.lang},t):null]);for(const E of[w,C])if(E&&!E.ok)return o(E),null;return{rules:w?.ok?w.value:null,art9:C?.ok?C.value:null}}async function i(){const v=await e.client.me.get(t);if(!v.ok)return o(v),null;const w=v.value.needs.filter(Nn);if(w.includes("sign_in"))return e.onSignIn(),null;const C=qd(v.value,w),E=await s(C);return E?{me:v.value,steps:C,texts:E}:null}function a(v){v.texts.rules?.textId!==n.rulesText?.textId&&(n.rulesAccepted=!1),v.texts.art9?.textId!==n.art9Text?.textId&&(n.art9Accepted=!1),n.me=v.me,n.steps=v.steps,n.reconsent=v.me.acceptances.rules==="reconsent_required",n.rulesText=v.texts.rules,n.rules=v.texts.rules?go(v.texts.rules.bodyJson):[],n.art9Text=v.texts.art9,n.art9Paragraphs=v.texts.art9?zd(v.texts.art9.body):[]}async function l(){n.phase="loading",n.failure=null;const v=await i();if(v){if(a(v),n.index=0,v.steps.length===0)return S();n.phase="ready"}}const c=()=>n.steps[n.index]??null;function m(v){switch(v){case"age":return n.ageBand!==null;case"rules":return n.rulesAccepted&&n.rulesText!==null;case"art9":return n.art9Accepted&&n.art9Text!==null;case"profile":return oa(n.displayName)&&ra(n.handle)}}function u(){const v=c();return n.phase==="ready"&&v!==null&&m(v)}function _(v){const w=n.steps.indexOf(v);w>=0&&(n.index=w)}const T=()=>n.steps.findIndex(v=>!m(v));async function S(){const v=T();if(v>=0){n.index=v;return}n.phase="sending",n.failure=null,n.fields=[];const w={ageBand:n.ageBand??n.me?.member?.ageBand??"18_plus",rulesTextId:n.steps.includes("rules")&&n.rulesText?n.rulesText.textId:""};if(n.steps.includes("art9")&&n.art9Text&&(w.art9TextId=n.art9Text.textId),n.steps.includes("profile")){w.displayName=ws(n.displayName);const E=pn(n.handle);E!==""&&(w.handle=E),w.avatarPreset=n.avatarPreset}const C=await e.client.me.onboard(w,t);if(C.ok){n.phase="done",e.onDone(C.value);return}switch(n.failure=C,n.phase="ready",C.code){case"age":n.minAge=18,n.phase="refused",e.onRefused?.(n.minAge);return;case"name":return n.fields=pn(n.handle)!==""?["displayName","handle"]:["displayName"],_("profile");case"handle":return n.fields=["handle"],_("profile");case"invalid":return n.fields=C.fields??[],n.fields.some(E=>Ud.has(E))?_("profile"):n.fields.some(E=>Fd.has(E))?A(C):n.fields.includes("ageBand")?_("age"):void 0;case"signIn":return e.onSignIn();default:return}}async function A(v){const w=[...n.fields];n.phase="sending";const C=await i();if(!C)return;a(C),w.includes("rulesTextId")&&(n.rulesAccepted=!1),w.includes("art9TextId")&&(n.art9Accepted=!1),n.failure=v,n.fields=w;const E=T();if(E>=0){n.index=E,n.phase="ready";return}if(C.me.needs.filter(Nn).length===0){n.phase="done",e.onDone(C.me);return}o(v)}return{state:n,load:l,step:c,isLast:()=>n.index>=n.steps.length-1,canContinue:u,async next(){if(u()){if(n.failure=null,n.index<n.steps.length-1){n.index+=1;return}await S()}},back(){n.phase!=="ready"||n.index===0||(n.failure=null,n.index-=1)},suggestedHandle:()=>pn(n.handle)===""?Dd(n.displayName):null,hasFieldError:v=>n.fields.includes(v)}}function Ss(...e){for(const t of e){if(!t)continue;const n=t.toLowerCase();if(n.startsWith("cs")||n.startsWith("sk"))return"cs";if(n.startsWith("en"))return"en"}return"en"}function Is(){return typeof document>"u"?null:document.documentElement.lang||null}function Vd(e){return(t,n)=>Jr(e,t,n)}function tt(e){return ys(e)?e:null}const aa=e=>e==="cs"?"cs-CZ":"en-GB",Oo=new Map;function Bd(e,t){const n=`${e}:${t?"t":"d"}`;if(!Oo.has(n)){let o=null;try{o=new Intl.DateTimeFormat(aa(e),t?{dateStyle:"medium",timeStyle:"short"}:{dateStyle:"long"})}catch{}Oo.set(n,o)}return Oo.get(n)??null}function Pe(e,t,n=!0){if(typeof t!="string"||t==="")return"";const o=Date.parse(t);return Number.isFinite(o)?Bd(e,n)?.format(new Date(o))??t:""}function la(e,t=Date.now()){if(typeof e!="string")return!1;const n=Date.parse(e);return Number.isFinite(n)&&n<=t}const Kd=/^[A-Z]{2}(?:,[A-Z]{2})*$/,Wd=new Map,Yd=new Map;function ca(e,t,n){if(!e.has(t)){let o=null;try{o=n(aa(t))}catch{}e.set(t,o)}return e.get(t)??null}function Gd(e,t){try{return ca(Wd,e,n=>new Intl.DisplayNames(n,{type:"region"}))?.of(t)||t}catch{return t}}function Zd(e,t){if(typeof t!="string")return"";const n=t.trim();if(n==="all")return Vd(e)("statement.scopeAll");if(!Kd.test(n))return n;const o=n.split(",").map(s=>Gd(e,s));try{return ca(Yd,e,s=>new Intl.ListFormat(s,{type:"conjunction"}))?.format(o)??o.join(", ")}catch{return o.join(", ")}}function Re(e,t){const n=e.until?Pe(t,e.until):"";return e.code==="restricted"&&n?{key:"sanction.restrictionUntil",params:{date:n}}:e.code==="suspended"&&n?{key:"sanction.suspensionUntil",params:{date:n}}:{key:`error.${e.code}`}}const Jd=Object.freeze({fast:3,quota:60});function Xd(e,t){const n=Jd[e.code];if(n===void 0)return null;const o=typeof e.retryAfterS=="number"&&e.retryAfterS>0?e.retryAfterS:n;return t+o*1e3}const ua=120,Qd=Object.freeze({method:"show",origin:"show",unavailable:"retry",invalid:"show",signIn:"reload",onboarding:"onboard",age:"show",name:"show",handle:"show",restricted:"reload",suspended:"reload",terminated:"reload",links:"show",fast:"wait",blocked:"show",confirm:"confirm",removed:"reload",quota:"wait",captcha:"show",notFound:"reload",surfaceOff:"hide",notMoved:"notMoved",ledger:"retry",submit:"show"});function ef(e){return Qd[e]??"show"}const Eo=(e="")=>({body:e,sending:!1,failure:null,confirm:null,waitUntil:null,clientMsgId:null}),tf=()=>typeof document>"u"||document.visibilityState!=="hidden";function nf(e){const{client:t,lang:n}=e,o=e.articleId.toLowerCase(),s=e.now??Date.now,i=Fu(),a=new AbortController,l={signal:a.signal},c=gt({phase:"loading",failure:null,thread:i.getState(),loadingMore:!1,refreshing:!1,newMessages:!1,me:null,block:null,composer:Eo(),inline:null,report:null,announcement:null,announceId:0,clock:s(),busy:{},refusedAge:e.refusedAge??null}),m=i.subscribe(k=>{c.thread=k}),u=Ks(null);let _=null,T=!0,S=!1,A=0,v=null,w=null,C=null;const E=e.pollMs??2e4;function j(k){c.announcement=k,c.announceId+=1}function b(){c.phase="hidden",_?.stop(),_=null}function I(){return c.me?Promise.resolve():(w??=t.me.get(l).then(k=>{w=null,k.ok&&!S&&(c.me=k.value)}),w)}function q(){const k=i.getState();k.viewer.canPost||jt(k).any||k.viewer.restrictions.length>0||I().then(()=>{const d=c.me;S||!d||i.getState().viewer.canPost||(c.block=!d.member||d.member.status==="active"?"notMoved":"restricted")})}function G(){const k=i.getState();k.viewer.canPost&&(c.block=null),k.viewer.memberId!==null&&I(),q(),u.value&&!jt(k).any&&u.value.state.phase!=="sending"&&(u.value=null)}function D(k){if(k.code==="surfaceOff")return b();if(k.code==="notFound"&&c.phase!=="ready")return fn("not-found","[blogmcp-community] the discussion of this article-id was not found (no such live article, or it is not readable here)"),b();(c.phase==="loading"||c.phase==="failed")&&(c.phase="failed",c.failure=k)}function W(){return S?Promise.resolve():(v??=(async()=>{c.refreshing=!0;const k=await Wu(i,t,{articleId:o,languageCode:n},l);c.refreshing=!1,!S&&(A=s(),k.ok?(c.phase="ready",c.failure=null,c.newMessages=!1,G()):D(k))})().finally(()=>{v=null}),v)}async function Q(){if(c.loadingMore||c.thread.nextCursor===null)return;c.loadingMore=!0;const k=await Yu(i,t,{articleId:o,languageCode:n},l);if(c.loadingMore=!1,!(S||k.ok)){if(k.code==="surfaceOff")return b();j(Re(k,n))}}function ae(k){for(const d of k){if(typeof d?.articleId!="string"||d.articleId.toLowerCase()!==o)continue;if(c.phase==="failed"){W();continue}const y=i.getState(),x=typeof d.lastSeq=="number"&&d.lastSeq>y.lastSeq;i.applyHead(d)&&(x&&y.loaded?c.newMessages=!0:W())}}function ge(){_||E===0||S||c.phase==="hidden"||(_=Qu(t,[o],{intervalMs:E,visible:()=>tf()&&T,onChange:ae,onFailure:k=>{k.code==="surfaceOff"&&b()},signal:a.signal}))}function we(){const k=c.thread,d=jt(k);return d.signIn?"signIn":c.block==="notMoved"?"notMoved":!k.viewer.canPost&&k.viewer.restrictions.length>0?"sanction":d.any?c.refusedAge!==null&&!u.value?"ageRefused":"onboarding":c.block==="restricted"?"restricted":k.viewer.canPost?"write":"pending"}const X=k=>qu(c.thread,k),Y=k=>!k.pending&&k.seq>0,H=()=>we()==="write";function V(){const k=c.me;if(k?.member&&k.profile)return{kind:"member",memberId:k.member.memberId,handle:k.profile.handle,displayName:k.profile.displayName,avatarPreset:k.profile.avatarPreset};const d=c.thread.viewer.memberId;if(d===null)return null;for(const y of c.thread.messages)for(const x of[y,...y.replies])if(x.author.kind==="member"&&x.author.memberId===d)return x.author;return null}function $(){c.clock=s(),!C&&(C=setInterval(()=>{c.clock=s();let k=!1;for(const d of[c.composer,c.inline])!d||d.waitUntil===null||(d.waitUntil<=c.clock?(d.waitUntil=null,d.failure&&(d.failure.code==="fast"||d.failure.code==="quota")&&(d.failure=null)):k=!0);!k&&C&&(clearInterval(C),C=null)},1e3))}const J=k=>k.waitUntil===null?0:Math.max(0,Math.ceil((k.waitUntil-Math.max(c.clock,s()))/1e3));function De(k,d){switch(k&&(k.failure=d),ef(d.code)){case"confirm":k&&d.codes&&d.codes.length>0&&(k.confirm={codes:[...d.codes],checked:[]});return;case"wait":k&&(k.waitUntil=Xd(d,s()),$());return;case"onboard":At(),W();return;case"reload":W();return;case"notMoved":c.block="notMoved";return;case"hide":return b();default:return}}async function Z(k,d,y){if(k.sending||J(k)>0||S)return;const x=et(k.body);if(x===""||lt(x)>cn)return;const M=jt(c.thread);if(M.signIn)return;if(M.any)return At();const O=d.kind==="new"?null:Rn(c.thread,d.seq);if(d.kind!=="new"&&(!O||!Y(O)))return;k.sending=!0,k.failure=null;const P=d.kind==="edit"?null:V(),F=d.kind==="edit"?bo():k.clientMsgId??=bo();d.kind==="edit"?i.applyMessage({type:"edit",clientMsgId:F,seq:d.seq,body:x}):P&&i.applyMessage({type:"post",clientMsgId:F,body:x,replyToSeq:d.kind==="reply"?d.seq:null,author:P,languageCode:n});const z=d.kind==="edit"?await t.messages.edit({conversationId:O.conversationId,seq:d.seq,body:x,...y?{confirmations:y}:{}},l):await t.messages.post({articleId:o,body:x,replyToSeq:d.kind==="reply"?d.seq:null,clientMsgId:F,languageCode:n,...y?{confirmations:y}:{}},l);if(!S){if(k.sending=!1,z.ok){i.applyMessage({type:"confirm",clientMsgId:F,message:z.value.message,warnings:z.value.warnings});const L=z.value.message.state==="held";k.body="",k.clientMsgId=null,k.confirm=null,k.failure=null,d.kind!=="new"&&c.inline===k&&(c.inline=null),j({key:L?"composer.held":"composer.posted"}),d.kind!=="edit"&&e.onPosted?.(L?"held":"visible");return}i.applyMessage({type:"rollback",clientMsgId:F}),De(k,z)}}function oe(k,d,y){if(!k.confirm||!k.confirm.codes.includes(d))return;const x=k.confirm.checked.filter(M=>M!==d);k.confirm.checked=y?[...x,d]:x}async function $e(k){const d=k.confirm;if(!d||!d.codes.every(x=>d.checked.includes(x)))return;const y=k===c.composer?{kind:"new"}:c.inline===k?{kind:c.inline.kind,seq:c.inline.seq}:{kind:"new"};await Z(k,y,[...d.codes])}async function mn(k){const d=Rn(c.thread,k),y=`delete:${k}`;if(!d||!Y(d)||c.busy[y])return!1;c.busy[y]=!0;const x=bo();i.applyMessage({type:"delete",clientMsgId:x,seq:k});const M=await t.messages.delete({conversationId:d.conversationId,seq:k},l);return delete c.busy[y],S?!1:M.ok?(i.applyMessage({type:"confirm",clientMsgId:x,message:M.value.message}),!0):(i.applyMessage({type:"rollback",clientMsgId:x}),j(Re(M,n)),De(null,M),!1)}const Ln=k=>"articleId"in k?"react:article":`react:${k.seq}`;async function Ct(k,d){const y=Ln(k);if(!H()||c.busy[y]||!c.thread.reactionSet.includes(d))return;const x=Hu(c.thread,k),M=x.mine===d?null:d;c.busy[y]=!0,i.applyReaction(k,Vu(x,M));const O=await t.reactions.set({target:k,emoji:M},l);if(delete c.busy[y],!S){if(O.ok){i.applyReaction(k,O.value.reactions);return}i.applyReaction(k,x),j(Re(O,n)),De(null,O)}}async function hn(k,d){const y=`block:${k}`;if(c.busy[y])return;c.busy[y]=!0;const x=await t.blocks.set({memberId:k,blocked:d},l);if(delete c.busy[y],!S){if(x.ok){i.collapse(k,x.value.blocked),j({key:x.value.blocked?"discussion.blocked":"discussion.unblocked"});return}j(Re(x,n)),De(null,x)}}function Dn(k){c.report={conversationId:k.conversationId,seq:k.seq,category:"",ruleId:"",note:"",rules:null,rulesFailed:!1,sending:!1,failure:null,done:!1};const d=c.report;t.legal.current({kind:"rules",locale:n},l).then(y=>{c.report===d&&(y.ok?d.rules=go(y.value.bodyJson):d.rulesFailed=!0)})}async function Cs(){const k=c.report;if(!k||k.sending||k.done||k.category===""||k.category==="rules"&&k.ruleId==="")return;const d=et(k.note);if(lt(d)>fs)return;k.sending=!0,k.failure=null;const y=await t.messages.report({conversationId:k.conversationId,seq:k.seq,category:k.category,ruleId:k.category==="rules"?k.ruleId:null,note:d===""?null:d},l);if(k.sending=!1,!S){if(y.ok){k.done=!0,j({key:"report.done"});return}k.failure=y,y.code==="surfaceOff"&&b()}}function At(){if(u.value||S||c.refusedAge!==null)return;const k=Hd({client:t,lang:n,signal:a.signal,onRefused:d=>{c.refusedAge=d,e.onAgeRefused?.(d)},onDone:d=>{c.me=d,u.value=null,j({key:"onboarding.done"}),W()},onSignIn:()=>{u.value=null,W()}});u.value=k,k.load()}return{state:c,store:i,onboarding:u,async start(){await W(),ge()},refresh:W,loadMore:Q,mode:we,needs:()=>jt(c.thread),isOwn:X,canReply:k=>{if(!H()||!Y(k)||k.state!=="visible"||k.body===null)return!1;if(k.replyToSeq===null)return!0;const d=Rn(c.thread,k.replyToSeq);return d!==null&&Y(d)&&d.state==="visible"},canEdit:k=>H()&&X(k)&&Y(k)&&k.body!==null&&(k.state==="visible"||k.state==="held"),canDelete:k=>c.thread.viewer.memberId!==null&&X(k)&&Y(k)&&k.body!==null&&k.state!=="deleted",canReact:H,canReport:k=>!jt(c.thread).signIn&&!X(k)&&Y(k)&&k.body!==null&&k.author.kind!=="system",canReportAsNotifier:k=>jt(c.thread).signIn&&Y(k)&&k.body!==null&&k.author.kind!=="system",canBlock:k=>!jt(c.thread).signIn&&!X(k)&&Y(k)&&k.author.kind==="member"&&k.author.memberId!==null,setInView(k){const d=T;T=k,k&&!d&&_&&s()-A>=E&&_.now()},submit:()=>Z(c.composer,{kind:"new"}),openReply(k,d=null){const y=Rn(c.thread,k);if(!y)return;const x=y.replyToSeq??y.seq;if(c.inline?.kind==="reply"&&c.inline.seq===x){c.inline.replyingTo=d;return}c.inline={...Eo(),kind:"reply",seq:x,replyingTo:d}},openEdit(k){const d=Rn(c.thread,k);!d||d.body===null||(c.inline={...Eo(d.body),kind:"edit",seq:k,replyingTo:null})},closeInline(){c.inline=null},async submitInline(){const k=c.inline;k&&await Z(k,{kind:k.kind,seq:k.seq})},setConfirmed:oe,sendConfirmed:$e,remove:mn,react:Ct,setBlocked:hn,openReport:Dn,closeReport(){c.report=null},submitReport:Cs,beginOnboarding:At,cancelOnboarding(){u.value=null},waitLeft:J,dispose(){S||(S=!0,a.abort(),_?.stop(),_=null,m(),C&&clearInterval(C),C=null,u.value=null)}}}const da=Symbol("bcm-text");function Mo(e){const t=(o,s)=>Jr(e.value,o,s),n={lang:e,t,text:o=>o?t(o.key,o.params):""};return Oi(da,n),n}function It(){const e=Xs(da,null);if(!e)throw new Error("[blogmcp-community] a component rendered outside its element");return e}let fa=0;function ct(e){return fa+=1,`${e}-${fa}`}function pa(e,t,n){let o=null;const s=i=>{i.preventDefault(),t()};Cn(()=>{const i=e.value;if(!i)return;if(o=i.getRootNode().activeElement??null,i.addEventListener("cancel",s),typeof i.showModal=="function")try{i.showModal()}catch{i.setAttribute("open","")}else i.setAttribute("open","")}),sn(()=>{const i=e.value;i?.removeEventListener("cancel",s),i?.open&&typeof i.close=="function"&&i.close();const a=o;We(()=>{(a&&a.isConnected?a:n?.()??null)?.focus()})})}const sf=["aria-labelledby","aria-describedby"],of={class:"bcm-dialog-body"},rf=["id"],af=["id"],lf={class:"bcm-row"},cf=["disabled"],uf=["disabled"],No=Me({__name:"ConfirmDialog",props:{title:{},explain:{},explainParams:{},confirm:{},cancel:{},danger:{type:Boolean},busy:{type:Boolean},fallbackFocus:{type:Function}},emits:["confirm","cancel"],setup(e,{emit:t}){const n=e,o=t,{t:s}=It(),i=ve(null),a=ct("bcm-dialog");return pa(i,()=>o("cancel"),n.fallbackFocus),(l,c)=>(h(),g("dialog",{ref_key:"dialog",ref:i,class:"bcm-dialog","aria-labelledby":`${r(a)}-title`,"aria-describedby":e.explain?`${r(a)}-explain`:void 0},[f("div",of,[f("h3",{id:`${r(a)}-title`},p(r(s)(e.title)),9,rf),e.explain?(h(),g("p",{key:0,id:`${r(a)}-explain`},p(r(s)(e.explain,e.explainParams)),9,af)):N("",!0),f("div",lf,[c[2]||(c[2]=f("span",{class:"bcm-spacer"},null,-1)),f("button",{type:"button",class:"bcm-btn",disabled:e.busy,onClick:c[0]||(c[0]=m=>o("cancel"))},p(r(s)(e.cancel??"common.cancel")),9,cf),f("button",{type:"button",class:nt(["bcm-btn bcm-primary",{"bcm-danger":e.danger}]),disabled:e.busy,onClick:c[1]||(c[1]=m=>o("confirm"))},p(r(s)(e.confirm)),11,uf)])])],8,sf))}}),df=["for"],ff={key:0,class:"bcm-hint"},pf=["id","placeholder","aria-describedby","aria-invalid","readonly"],mf={class:"bcm-composer-foot"},hf=["id"],bf={class:"bcm-sr","aria-live":"polite"},gf=["disabled"],yf=["disabled"],vf=["id"],_f={key:0},kf=["href"],wf={key:1,class:"bcm-error"},xf={key:2,class:"bcm-warning",role:"status"},Sf={key:3,class:"bcm-error",role:"alert"},If={key:4,class:"bcm-confirm"},Cf={class:"bcm-label"},Af=["checked","onChange"],Tf={class:"bcm-row"},$f=["disabled"],Po=Me({__name:"MessageComposer",props:{draft:{},kind:{},wait:{},replyingTo:{},rulesHref:{}},emits:["submit","cancel","confirmed","confirm"],setup(e,{expose:t,emit:n}){const o=e,s=n,{t:i,lang:a}=It(),l=ct("bcm-composer"),c=ve(null),m=U(()=>lt(et(o.draft.body))),u=U(()=>m.value>cn),_=U(()=>!o.draft.sending&&m.value>0&&!u.value&&o.wait===0&&o.draft.confirm===null),T=U(()=>{const b=o.draft.confirm;return b!==null&&b.codes.every(I=>b.checked.includes(I))}),S=U(()=>i(o.kind==="reply"?"composer.replyLabel":o.kind==="edit"?"composer.editLabel":"composer.label")),A=typeof navigator<"u"&&/Mac|iPhone|iPad/i.test(navigator.platform||navigator.userAgent)?"⌘ + Enter":"Ctrl + Enter",v=U(()=>{const b=o.draft.failure;if(!b||o.draft.confirm&&b.code==="confirm"||(b.code==="fast"||b.code==="quota")&&o.wait>0&&o.wait<=ua)return"";const I=Re(b,a.value);return i(I.key,I.params)}),w=ve("");let C=null;Xe(m,b=>{C&&clearTimeout(C),C=setTimeout(()=>{w.value=b>=cn*.9?i("composer.counter",{length:b,max:cn}):""},700)}),sn(()=>{C&&clearTimeout(C)}),Xe(()=>o.draft.body,()=>{const b=o.draft;b.confirm&&(b.confirm=null),b.failure&&b.failure.code!=="fast"&&b.failure.code!=="quota"&&(b.failure=null)});function E(b){b.key!=="Enter"||!(b.metaKey||b.ctrlKey)||(b.preventDefault(),_.value&&s("submit"))}function j(){_.value&&s("submit")}return t({focus:()=>c.value?.focus()}),(b,I)=>(h(),g("form",{class:"bcm-composer",onSubmit:Pt(j,["prevent"])},[f("label",{for:r(l),class:"bcm-label"},p(S.value),9,df),e.replyingTo?(h(),g("p",ff,p(r(i)("composer.replyingTo",{name:e.replyingTo})),1)):N("",!0),_e(f("textarea",{id:r(l),ref_key:"input",ref:c,"onUpdate:modelValue":I[0]||(I[0]=q=>e.draft.body=q),class:"bcm-input bcm-textarea",rows:"4",placeholder:r(i)("composer.placeholder"),"aria-describedby":`${r(l)}-counter ${r(l)}-hints`,"aria-invalid":u.value,readonly:e.draft.sending,onKeydown:E},null,40,pf),[[Qe,e.draft.body]]),f("div",mf,[f("span",{id:`${r(l)}-counter`,class:nt(["bcm-counter",{"bcm-counter-over":u.value}])},p(r(i)("composer.counter",{length:m.value,max:r(cn)})),11,hf),f("span",bf,p(w.value),1),I[3]||(I[3]=f("span",{class:"bcm-spacer"},null,-1)),e.kind!=="new"?(h(),g("button",{key:0,type:"button",class:"bcm-btn",disabled:e.draft.sending,onClick:I[1]||(I[1]=q=>s("cancel"))},p(r(i)("composer.cancel")),9,gf)):N("",!0),f("button",{type:"submit",class:"bcm-btn bcm-primary",disabled:!_.value},p(e.draft.sending?r(i)("composer.sending"):e.kind==="edit"?r(i)("composer.save"):r(i)("composer.submit")),9,yf)]),f("div",{id:`${r(l)}-hints`,class:"bcm-hint"},[f("p",null,p(r(i)("composer.linksNote",{count:r(su)})),1),f("p",null,p(r(i)("composer.shortcut",{keys:r(A)})),1),e.rulesHref?(h(),g("p",_f,[f("a",{href:e.rulesHref,target:"_blank",rel:"noopener"},p(r(i)("onboarding.rulesTitle")),9,kf)])):N("",!0)],8,vf),u.value?(h(),g("p",wf,p(r(i)("composer.tooLong",{max:r(cn)})),1)):N("",!0),e.wait>0&&e.wait<=r(ua)?(h(),g("p",xf,p(r(i)("composer.cooldown",{count:e.wait})),1)):N("",!0),v.value?(h(),g("p",Sf,p(v.value),1)):N("",!0),e.draft.confirm?(h(),g("fieldset",If,[f("legend",Cf,p(r(i)("confirm.title")),1),f("p",null,p(r(i)("error.confirm")),1),(h(!0),g(K,null,ke(e.draft.confirm.codes,q=>(h(),g("label",{key:q,class:"bcm-check"},[f("input",{type:"checkbox",checked:e.draft.confirm.checked.includes(q),onChange:G=>s("confirm",q,G.target.checked)},null,40,Af),f("span",null,p(r(i)(r(md)(q))),1)]))),128)),f("div",Tf,[f("button",{type:"button",class:"bcm-btn bcm-primary",disabled:!T.value||e.draft.sending||e.wait>0,onClick:I[2]||(I[2]=q=>s("confirmed"))},p(r(i)("confirm.submit")),9,$f)])])):N("",!0)],32))}}),Ro=Object.freeze([Object.freeze({id:"fox",emoji:"🦊"}),Object.freeze({id:"owl",emoji:"🦉"}),Object.freeze({id:"bear",emoji:"🐻"}),Object.freeze({id:"hedgehog",emoji:"🦔"}),Object.freeze({id:"frog",emoji:"🐸"}),Object.freeze({id:"bee",emoji:"🐝"}),Object.freeze({id:"leaf",emoji:"🍃"}),Object.freeze({id:"flower",emoji:"🌼"}),Object.freeze({id:"tree",emoji:"🌲"}),Object.freeze({id:"star",emoji:"⭐"})]),Of=new Map(Ro.map(e=>[e.id,e.emoji]));function Ef(e){return typeof e=="string"?Of.get(e)??null:null}function ma(e){if(typeof e!="string")return"";for(const t of e.trim())return t.toLocaleUpperCase();return""}function Mf(e){if(typeof e!="string"||e==="")return 210;let t=0;for(let n=0;n<e.length;n++)t=(t*31+e.charCodeAt(n))%360;return t}const ha=Me({__name:"AuthorAvatar",props:{author:{}},setup(e){const t=e,n=U(()=>t.author.kind==="member"?Ef(t.author.avatarPreset):null),o=U(()=>{const i=t.author;return i.kind==="member"||i.kind==="staff"?ma(i.displayName):""}),s=U(()=>{const i=t.author;if(n.value||!o.value)return;const a=i.kind==="member"?i.memberId:i.kind==="staff"?i.staffId:null;return`hsl(${Mf(a)} 45% 42%)`});return(i,a)=>(h(),g("span",{class:nt(["bcm-avatar",{"bcm-avatar-initial":!n.value&&o.value}]),style:Yn(s.value?{background:s.value}:void 0),"aria-hidden":"true"},p(n.value??o.value),7))}}),Nf=["href","rel"],ba=Me({__name:"LinkedText",props:{text:{}},setup(e){const t=e,n=U(()=>Md(t.text??""));return(o,s)=>(h(!0),g(K,null,ke(n.value,(i,a)=>(h(),g(K,{key:a},[i.kind==="link"?(h(),g("a",{key:0,href:i.href,rel:r(Ad),target:"_blank"},p(i.text),9,Nf)):(h(),g(K,{key:1},[Et(p(i.text),1)],64))],64))),128))}}),Pf=["aria-expanded","aria-controls"],Rf=["id"],jf=["href"],zf=["onClick"],Lf=Me({__name:"MessageMenu",props:{items:{}},emits:["select"],setup(e,{emit:t}){const n=t,{t:o}=It(),s=ve(!1),i=ve(null),a=ve(null),l=ct("bcm-menu");function c(T){!a.value||T.composedPath().includes(a.value)||u(!1)}function m(T){s.value=T,T?(document.addEventListener("pointerdown",c,!0),We(()=>a.value?.querySelector(".bcm-menu-list button, .bcm-menu-list a")?.focus())):document.removeEventListener("pointerdown",c,!0)}function u(T=!0){m(!1),T&&i.value?.focus()}function _(T){u(!0),n("select",T)}return sn(()=>document.removeEventListener("pointerdown",c,!0)),(T,S)=>e.items.length?(h(),g("div",{key:0,ref_key:"root",ref:a,class:"bcm-menu",onKeydown:S[2]||(S[2]=Hc(Pt(A=>u(!0),["stop"]),["esc"]))},[f("button",{ref_key:"toggle",ref:i,type:"button",class:"bcm-quiet","aria-expanded":s.value,"aria-controls":r(l),onClick:S[0]||(S[0]=A=>m(!s.value))},p(r(o)("discussion.menu")),9,Pf),s.value?(h(),g("div",{key:0,id:r(l),class:"bcm-menu-list"},[(h(!0),g(K,null,ke(e.items,A=>(h(),g(K,{key:A.id},[A.href?(h(),g("a",{key:0,href:A.href,class:nt({"bcm-danger":A.danger}),onClick:S[1]||(S[1]=v=>u(!1))},p(A.label),11,jf)):(h(),g("button",{key:1,type:"button",class:nt({"bcm-danger":A.danger}),onClick:v=>_(A.id)},p(A.label),11,zf))],64))),128))],8,Rf)):N("",!0)],544)):N("",!0)}}),Df=["aria-label"],Uf=["aria-pressed","disabled","title","onClick"],Ff={key:0,class:"bcm-sr"},qf={key:1,class:"bcm-react"},ga=Me({__name:"ReactionBar",props:{reactionSet:{},summary:{},interactive:{type:Boolean},busy:{type:Boolean}},emits:["react"],setup(e,{emit:t}){const n=e,o=t,{t:s}=It(),i=U(()=>n.interactive?n.reactionSet:n.reactionSet.filter(a=>(n.summary.counts[a]??0)>0));return(a,l)=>i.value.length?(h(),g("div",{key:0,class:"bcm-reactions",role:"group","aria-label":r(s)("discussion.reactions")},[(h(!0),g(K,null,ke(i.value,c=>(h(),g(K,{key:c},[e.interactive?(h(),g("button",{key:0,type:"button",class:"bcm-react","aria-pressed":e.summary.mine===c,disabled:e.busy,title:e.summary.mine===c?r(s)("discussion.reactionRemove"):r(s)("discussion.reactionAdd"),onClick:m=>o("react",c)},[f("span",null,p(r(s)("discussion.reactionCount",{emoji:c,count:e.summary.counts[c]??0})),1),e.summary.mine===c?(h(),g("span",Ff,p(r(s)("discussion.reactionMine")),1)):N("",!0)],8,Uf)):(h(),g("span",qf,p(r(s)("discussion.reactionCount",{emoji:c,count:e.summary.counts[c]??0})),1))],64))),128))],8,Df)):N("",!0)}}),ya=Symbol("bcm-discussion");function Hf(e){Oi(ya,e)}function Vf(){const e=Xs(ya,null);if(!e)throw new Error("[blogmcp-community] a discussion component rendered outside <blogmcp-discussion>");return e}const Bf={class:"bcm-msg-item"},Kf=["aria-busy"],Wf={class:"bcm-msg-main"},Yf={class:"bcm-meta"},Gf={class:"bcm-author"},Zf={key:0,class:"bcm-badge bcm-badge-team"},Jf={key:1,class:"bcm-handle"},Xf=["datetime"],Qf={key:3,class:"bcm-muted"},ep={key:4,class:"bcm-muted",role:"status"},tp={key:0,class:"bcm-placeholder"},np={key:1,class:"bcm-muted"},sp={key:0,class:"bcm-own-state bcm-own-consent"},op={class:"bcm-badge"},ip={class:"bcm-hint"},rp={key:1,class:"bcm-own-state"},ap={class:"bcm-badge"},lp={class:"bcm-hint"},cp=["href"],up={key:3,class:"bcm-text"},dp={key:4,class:"bcm-hint"},fp=["href"],pp={key:3,class:"bcm-actions"},mp={key:0,class:"bcm-replies"},hp={key:2,class:"bcm-hint"},bp=3,gp=Me({name:"MessageItem",__name:"MessageItem",props:{message:{}},setup(e){const t=e,{t:n,lang:o}=It(),{ctl:s,routes:i,opened:a,originals:l,allReplies:c,deleteMessage:m}=Vf(),u=U(()=>t.message),_=U(()=>u.value.replyToSeq!==null),T=U(()=>s.isOwn(u.value)),S=U(()=>u.value.body===null),A=U(()=>T.value&&u.value.state==="held"&&u.value.hiddenUntilConsent===!0),v=U(()=>A.value&&s.mode()==="onboarding"&&s.needs().art9&&!s.onboarding.value&&s.state.refusedAge===null),w=U(()=>{const $=u.value.author;return $.kind==="system"?n("author.system"):$.kind==="staff"?$.displayName:$.displayName??n("author.deleted")}),C=U(()=>u.value.author.kind==="member"?u.value.author.handle:null),E=U(()=>{const $=u.value.author;if($.kind!=="staff")return null;const J=`author.badge.${$.badge}`;return ys(J)?n(J):null}),j=U(()=>u.value.state==="held"?"discussion.placeholderHeld":u.value.state==="removed"?"discussion.placeholderRemoved":"discussion.placeholderDeleted"),b=U(()=>u.value.collapsed&&!a.has(u.value.seq)),I=U(()=>l.has(u.value.seq)),q=U(()=>(u.value.isTranslated&&!I.value?u.value.displayBody:u.value.body)??u.value.displayBody),G=U(()=>(T.value?u.value.notes??[]:[]).map($=>hd($)).filter($=>$!==null)),D=U(()=>T.value?[...new Set((u.value.warnings??[]).map($=>pd($)))]:[]),W=U(()=>s.state.inline?.kind==="edit"&&s.state.inline.seq===u.value.seq),Q=U(()=>!_.value&&s.state.inline?.kind==="reply"&&s.state.inline.seq===u.value.seq),ae=U(()=>c.has(u.value.seq)?u.value.replies:u.value.replies.slice(0,bp)),ge=U(()=>u.value.replies.length-ae.value.length),we=U(()=>({conversationId:u.value.conversationId,seq:u.value.seq})),X=U(()=>{const $=[],J=u.value;if(s.canEdit(J)&&$.push({id:"edit",label:n("discussion.edit")}),s.canDelete(J)&&$.push({id:"delete",label:n("discussion.delete"),danger:!0}),s.canReport(J))$.push({id:"report",label:n("discussion.report")});else if(s.canReportAsNotifier(J)){const De=kd(i.value.reportPath,we.value);De&&$.push({id:"report",label:n("discussion.report"),href:De})}return s.canBlock(J)&&$.push({id:J.collapsed?"unblock":"block",label:J.collapsed?n("discussion.unblock"):n("discussion.block")}),$});function Y($){const J=u.value;$==="edit"?s.openEdit(J.seq):$==="delete"?m(J.seq):$==="report"?s.openReport(J):($==="block"||$==="unblock")&&J.author.kind==="member"&&J.author.memberId&&s.setBlocked(J.author.memberId,$==="block")}function H(){s.openReply(u.value.seq,_.value?w.value:null)}function V($){$.has(u.value.seq)?$.delete(u.value.seq):$.add(u.value.seq)}return($,J)=>{const De=$l("MessageItem",!0);return h(),g("li",Bf,[f("article",{class:nt(["bcm-msg",{"bcm-msg-pending":!!u.value.pending}]),"aria-busy":!!u.value.pending},[Ie(ha,{author:u.value.author},null,8,["author"]),f("div",Wf,[f("header",Yf,[f("span",Gf,p(w.value),1),E.value?(h(),g("span",Zf,p(E.value),1)):N("",!0),C.value?(h(),g("span",Jf,p(C.value),1)):N("",!0),u.value.createdAt?(h(),g("time",{key:2,class:"bcm-time",datetime:u.value.createdAt},p(r(Pe)(r(o),u.value.createdAt)),9,Xf)):N("",!0),u.value.isEdited&&!S.value?(h(),g("span",Qf,p(r(n)("discussion.edited")),1)):N("",!0),u.value.pending?(h(),g("span",ep,p(r(n)("discussion.pending")),1)):N("",!0)]),S.value?(h(),g("p",tp,p(r(n)(j.value)),1)):b.value?(h(),g("p",np,[Et(p(r(n)("discussion.collapsed"))+" ",1),f("button",{type:"button",class:"bcm-link",onClick:J[0]||(J[0]=Z=>V(r(a)))},p(r(n)("discussion.show")),1)])):(h(),g(K,{key:2},[A.value?(h(),g("div",sp,[f("span",op,p(r(n)("state.hiddenUntilConsent")),1),f("p",ip,p(r(n)("discussion.hiddenUntilConsentNote")),1),v.value?(h(),g("button",{key:0,type:"button",class:"bcm-link",onClick:J[1]||(J[1]=Z=>r(s).beginOnboarding())},p(r(n)("discussion.giveConsent")),1)):N("",!0)])):T.value&&(u.value.state==="held"||u.value.state==="removed")?(h(),g("div",rp,[f("span",ap,p(u.value.state==="held"?r(n)("state.held"):r(n)("state.removed")),1),f("p",lp,p(u.value.state==="held"?r(n)("discussion.heldNote"):r(n)("discussion.removedNote")),1),u.value.state==="removed"?(h(),g("a",{key:0,href:r(i).myCommunityPath},p(r(n)("discussion.why")),9,cp)):N("",!0)])):N("",!0),W.value&&r(s).state.inline?(h(),Ne(Po,{key:2,kind:"edit",draft:r(s).state.inline,wait:r(s).waitLeft(r(s).state.inline),"rules-href":r(i).rulesPath,onSubmit:J[2]||(J[2]=Z=>r(s).submitInline()),onCancel:J[3]||(J[3]=Z=>r(s).closeInline()),onConfirm:J[4]||(J[4]=(Z,oe)=>r(s).state.inline&&r(s).setConfirmed(r(s).state.inline,Z,oe)),onConfirmed:J[5]||(J[5]=Z=>r(s).state.inline&&r(s).sendConfirmed(r(s).state.inline))},null,8,["draft","wait","rules-href"])):(h(),g("p",up,[Ie(ba,{text:q.value},null,8,["text"])])),u.value.isTranslated&&!W.value?(h(),g("p",dp,[Et(p(r(n)("discussion.translated"))+" ",1),f("button",{type:"button",class:"bcm-link",onClick:J[6]||(J[6]=Z=>V(r(l)))},p(I.value?r(n)("discussion.showTranslation"):r(n)("discussion.showOriginal")),1)])):N("",!0),u.value.collapsed?(h(),g("button",{key:5,type:"button",class:"bcm-link",onClick:J[7]||(J[7]=Z=>V(r(a)))},p(r(n)("discussion.hide")),1)):N("",!0),(h(!0),g(K,null,ke(G.value,Z=>(h(),g("p",{key:Z,class:"bcm-note"},[Z==="note.report_to_manufacturer"&&r(i).consultationPath?(h(),g("a",{key:0,href:r(i).consultationPath},p(r(n)(Z)),9,fp)):(h(),g(K,{key:1},[Et(p(r(n)(Z)),1)],64))]))),128)),(h(!0),g(K,null,ke(D.value,Z=>(h(),g("p",{key:Z,class:"bcm-warning"},p(r(n)(Z)),1))),128))],64)),!S.value&&!b.value&&!W.value?(h(),g("div",pp,[Ie(ga,{"reaction-set":r(s).state.thread.reactionSet,summary:u.value.reactions,interactive:r(s).canReact()&&!u.value.pending&&u.value.seq>0&&u.value.state==="visible",busy:!!r(s).state.busy[`react:${u.value.seq}`],onReact:J[8]||(J[8]=Z=>r(s).react(we.value,Z))},null,8,["reaction-set","summary","interactive","busy"]),r(s).canReply(u.value)?(h(),g("button",{key:0,type:"button",class:"bcm-quiet",onClick:H},p(r(n)("discussion.reply")),1)):N("",!0),Ie(Lf,{items:X.value,onSelect:Y},null,8,["items"])])):N("",!0),_.value?N("",!0):(h(),g(K,{key:4},[u.value.replies.length?(h(),g("ol",mp,[(h(!0),g(K,null,ke(ae.value,Z=>(h(),Ne(De,{key:Z.id,message:Z},null,8,["message"]))),128))])):N("",!0),ge.value>0?(h(),g("button",{key:1,type:"button",class:"bcm-link",onClick:J[9]||(J[9]=Z=>r(c).add(u.value.seq))},p(r(n)("discussion.showReplies",{count:ge.value})),1)):N("",!0),u.value.repliesTruncated?(h(),g("p",hp,p(r(n)("discussion.repliesTruncated")),1)):N("",!0),Q.value&&r(s).state.inline?(h(),Ne(Po,{key:3,kind:"reply",draft:r(s).state.inline,wait:r(s).waitLeft(r(s).state.inline),"rules-href":r(i).rulesPath,"replying-to":r(s).state.inline.replyingTo,onSubmit:J[10]||(J[10]=Z=>r(s).submitInline()),onCancel:J[11]||(J[11]=Z=>r(s).closeInline()),onConfirm:J[12]||(J[12]=(Z,oe)=>r(s).state.inline&&r(s).setConfirmed(r(s).state.inline,Z,oe)),onConfirmed:J[13]||(J[13]=Z=>r(s).state.inline&&r(s).sendConfirmed(r(s).state.inline))},null,8,["draft","wait","rules-href","replying-to"])):N("",!0)],64))])],10,Kf)])}}}),yp=["aria-labelledby"],vp=["id"],_p={key:0,class:"bcm-muted",role:"status"},kp={class:"bcm-error",role:"alert"},wp={class:"bcm-row"},xp={role:"alert"},Sp={class:"bcm-row"},Ip={key:0,class:"bcm-hint"},Cp={key:1,class:"bcm-choices"},Ap=["name","value"],Tp={class:"bcm-hint bcm-full"},$p={key:2,class:"bcm-section"},Op={key:0,class:"bcm-rules"},Ep={key:0,class:"bcm-hint"},Mp=["href"],Np={class:"bcm-check"},Pp={key:3,class:"bcm-section"},Rp=["aria-label"],jp={class:"bcm-check"},zp={key:4,class:"bcm-section"},Lp={class:"bcm-field"},Dp=["for"],Up=["id","maxlength","aria-invalid","aria-describedby"],Fp=["id"],qp={class:"bcm-field"},Hp=["for"],Vp=["id","maxlength","placeholder","aria-invalid","aria-describedby"],Bp=["id"],Kp={key:0,class:"bcm-hint"},Wp={class:"bcm-choices"},Yp={class:"bcm-choice"},Gp=["name"],Zp=["name","value"],Jp={key:5,class:"bcm-error",role:"alert"},Xp={class:"bcm-row"},Qp=["disabled"],em=["disabled"],tm=["disabled"],nm=Me({__name:"OnboardingSteps",props:{model:{},rulesHref:{}},emits:["cancel"],setup(e,{emit:t}){const n=e,o=t,{t:s,lang:i}=It(),a=n.model.state,l=ct("bcm-onboarding"),c=ve(null),m=U(()=>n.model.step()),u=U(()=>a.steps.includes("profile")),_=U(()=>{const S=a.failure;if(!S)return"";const A=Re(S,i.value);return s(A.key,A.params)}),T=S=>`onboarding.age.${S}`;return Xe(()=>[a.index,a.phase,a.steps.join()],([S,A,v],[w,,C])=>{(S!==w||v!==C||A==="refused"||A==="failed")&&We(()=>c.value?.focus())}),Cn(()=>{We(()=>c.value?.focus())}),(S,A)=>(h(),g("section",{class:"bcm-card","aria-labelledby":`${r(l)}-title`},[f("h3",{id:`${r(l)}-title`,ref_key:"heading",ref:c,tabindex:"-1"},p(r(s)("onboarding.title")),9,vp),r(a).phase==="loading"?(h(),g("p",_p,p(r(s)("common.loading")),1)):r(a).phase==="failed"?(h(),g(K,{key:1},[f("p",kp,p(_.value),1),f("div",wp,[f("button",{type:"button",class:"bcm-btn",onClick:A[0]||(A[0]=v=>o("cancel"))},p(r(s)("common.cancel")),1),f("button",{type:"button",class:"bcm-btn bcm-primary",onClick:A[1]||(A[1]=v=>e.model.load())},p(r(s)("common.retry")),1)])],64)):r(a).phase==="refused"?(h(),g(K,{key:2},[f("p",xp,p(r(s)("onboarding.ageBelow",{min:r(a).minAge??18})),1),f("div",Sp,[f("button",{type:"button",class:"bcm-btn",onClick:A[2]||(A[2]=v=>o("cancel"))},p(r(s)("common.close")),1)])],64)):(h(),g("form",{key:3,class:"bcm-form",novalidate:"",onSubmit:A[12]||(A[12]=Pt(v=>e.model.next(),["prevent"]))},[r(a).index===0&&u.value?(h(),g("p",Ip,p(r(s)("onboarding.lede")),1)):N("",!0),m.value==="age"?(h(),g("fieldset",Cp,[f("legend",null,p(r(s)("onboarding.ageTitle")),1),(h(!0),g(K,null,ke(r(yu),v=>(h(),g("label",{key:v,class:"bcm-choice"},[_e(f("input",{"onUpdate:modelValue":A[3]||(A[3]=w=>r(a).ageBand=w),type:"radio",name:`${r(l)}-age`,value:v},null,8,Ap),[[an,r(a).ageBand]]),f("span",null,p(r(s)(T(v))),1)]))),128)),f("p",Tp,p(r(s)("onboarding.ageHint")),1)])):m.value==="rules"?(h(),g("div",$p,[f("h4",null,p(r(s)("onboarding.rulesTitle")),1),f("p",null,p(r(a).reconsent?r(s)("onboarding.rulesChanged"):r(s)("onboarding.rulesLede")),1),r(a).rules.length?(h(),g("ol",Op,[(h(!0),g(K,null,ke(r(a).rules,v=>(h(),g("li",{key:v.id},[f("strong",null,p(v.title),1),v.summary?(h(),g("span",Ep,p(v.summary),1)):N("",!0)]))),128))])):N("",!0),f("p",null,[f("a",{href:e.rulesHref,target:"_blank",rel:"noopener"},p(r(s)("onboarding.rulesLink")),9,Mp)]),f("label",Np,[_e(f("input",{"onUpdate:modelValue":A[4]||(A[4]=v=>r(a).rulesAccepted=v),type:"checkbox"},null,512),[[mo,r(a).rulesAccepted]]),f("span",null,p(r(s)("onboarding.rulesAccept")),1)])])):m.value==="art9"?(h(),g("div",Pp,[f("h4",null,p(r(s)("onboarding.art9Title")),1),f("p",null,p(r(s)("onboarding.art9Lede")),1),f("div",{class:"bcm-consent",tabindex:"0",role:"document","aria-label":r(s)("onboarding.art9Title")},[(h(!0),g(K,null,ke(r(a).art9Paragraphs,(v,w)=>(h(),g("p",{key:w,class:"bcm-text"},p(v),1))),128))],8,Rp),f("label",jp,[_e(f("input",{"onUpdate:modelValue":A[5]||(A[5]=v=>r(a).art9Accepted=v),type:"checkbox"},null,512),[[mo,r(a).art9Accepted]]),f("span",null,p(r(s)("onboarding.art9Accept")),1)])])):m.value==="profile"?(h(),g("div",zp,[f("h4",null,p(r(s)("onboarding.profileTitle")),1),f("div",Lp,[f("label",{for:`${r(l)}-name`},p(r(s)("onboarding.displayName")),9,Dp),_e(f("input",{id:`${r(l)}-name`,"onUpdate:modelValue":A[6]||(A[6]=v=>r(a).displayName=v),class:"bcm-input",autocomplete:"nickname",maxlength:r(Or)*2,"aria-invalid":e.model.hasFieldError("displayName"),"aria-describedby":`${r(l)}-name-hint`},null,8,Up),[[Qe,r(a).displayName]]),f("p",{id:`${r(l)}-name-hint`,class:"bcm-hint"},p(r(s)("onboarding.displayNameHint")),9,Fp)]),f("div",qp,[f("label",{for:`${r(l)}-handle`},p(r(s)("onboarding.handle")),9,Hp),_e(f("input",{id:`${r(l)}-handle`,"onUpdate:modelValue":A[7]||(A[7]=v=>r(a).handle=v),class:"bcm-input",autocomplete:"username",autocapitalize:"none",spellcheck:"false",maxlength:r(xs),placeholder:e.model.suggestedHandle()??"","aria-invalid":e.model.hasFieldError("handle"),"aria-describedby":`${r(l)}-handle-hint`},null,8,Vp),[[Qe,r(a).handle]]),f("p",{id:`${r(l)}-handle-hint`,class:"bcm-hint"},p(r(s)("onboarding.handleHint",{min:r(ia),max:r(xs),days:r(Mr)})),9,Bp),e.model.suggestedHandle()?(h(),g("p",Kp,p(r(s)("onboarding.handleSuggested",{handle:e.model.suggestedHandle()??""})),1)):N("",!0)]),f("fieldset",Wp,[f("legend",null,p(r(s)("onboarding.avatar")),1),f("label",Yp,[_e(f("input",{"onUpdate:modelValue":A[8]||(A[8]=v=>r(a).avatarPreset=v),type:"radio",name:`${r(l)}-avatar`,value:null},null,8,Gp),[[an,r(a).avatarPreset]]),f("span",null,p(r(s)("onboarding.avatarNone")),1)]),(h(!0),g(K,null,ke(r(Ro),v=>(h(),g("label",{key:v.id,class:"bcm-choice"},[_e(f("input",{"onUpdate:modelValue":A[9]||(A[9]=w=>r(a).avatarPreset=w),type:"radio",name:`${r(l)}-avatar`,value:v.id},null,8,Zp),[[an,r(a).avatarPreset]]),f("span",null,p(v.emoji),1)]))),128))])])):N("",!0),_.value?(h(),g("p",Jp,p(_.value),1)):N("",!0),f("div",Xp,[r(a).index>0?(h(),g("button",{key:0,type:"button",class:"bcm-btn",disabled:r(a).phase==="sending",onClick:A[10]||(A[10]=v=>e.model.back())},p(r(s)("onboarding.back")),9,Qp)):N("",!0),f("button",{type:"button",class:"bcm-btn",disabled:r(a).phase==="sending",onClick:A[11]||(A[11]=v=>o("cancel"))},p(r(s)("common.cancel")),9,em),A[13]||(A[13]=f("span",{class:"bcm-spacer"},null,-1)),f("button",{type:"submit",class:"bcm-btn bcm-primary",disabled:!e.model.canContinue()},p(r(a).phase==="sending"?r(s)("composer.sending"):e.model.isLast()?r(s)("onboarding.submit"):r(s)("onboarding.continue")),9,tm)])],32))],8,yp))}}),sm=["aria-labelledby"],om=["id"],im={class:"bcm-hint"},rm={key:0},am=["href"],lm={class:"bcm-choices"},cm=["name","value"],um={key:1,class:"bcm-field"},dm=["for"],fm={key:0,class:"bcm-error"},pm={key:1,class:"bcm-muted",role:"status"},mm=["id"],hm=["value"],bm={class:"bcm-field"},gm=["for"],ym=["id","aria-describedby","aria-invalid"],vm=["id"],_m={key:2,class:"bcm-error",role:"alert"},km={class:"bcm-row"},wm=["disabled"],xm=["disabled"],Sm={role:"status"},Im=["href"],Cm={class:"bcm-row"},Am=Me({__name:"ReportDialog",props:{report:{},myCommunityHref:{},rulesHref:{},fallbackFocus:{type:Function}},emits:["submit","close"],setup(e,{emit:t}){const n=e,o=t,{t:s,lang:i}=It(),a=ve(null),l=ct("bcm-report");pa(a,()=>o("close"),n.fallbackFocus);const c=T=>`category.${T}`,m=U(()=>lt(et(n.report.note))),u=U(()=>!n.report.sending&&n.report.category!==""&&(n.report.category!=="rules"||n.report.ruleId!=="")&&m.value<=fs),_=U(()=>{const T=n.report.failure;if(!T)return"";const S=Re(T,i.value);return s(S.key,S.params)});return(T,S)=>(h(),g("dialog",{ref_key:"dialog",ref:a,class:"bcm-dialog","aria-labelledby":`${r(l)}-title`},[f("form",{class:"bcm-dialog-body",novalidate:"",onSubmit:S[5]||(S[5]=Pt(A=>u.value&&o("submit"),["prevent"]))},[f("h3",{id:`${r(l)}-title`},p(r(s)("report.title")),9,om),e.report.done?(h(),g(K,{key:1},[f("p",Sm,p(r(s)("report.done")),1),f("p",null,[f("a",{href:e.myCommunityHref},p(r(s)("panel.title")),9,Im)]),f("div",Cm,[S[8]||(S[8]=f("span",{class:"bcm-spacer"},null,-1)),f("button",{type:"button",class:"bcm-btn bcm-primary",onClick:S[4]||(S[4]=A=>o("close"))},p(r(s)("common.close")),1)])],64)):(h(),g(K,{key:0},[f("p",im,p(r(s)("report.lede")),1),e.rulesHref?(h(),g("p",rm,[f("a",{href:e.rulesHref,target:"_blank",rel:"noopener"},p(r(s)("onboarding.rulesTitle")),9,am)])):N("",!0),f("fieldset",lm,[f("legend",null,p(r(s)("report.category")),1),(h(!0),g(K,null,ke(r(Nr),A=>(h(),g("label",{key:A,class:"bcm-choice"},[_e(f("input",{"onUpdate:modelValue":S[0]||(S[0]=v=>e.report.category=v),type:"radio",name:`${r(l)}-category`,value:A},null,8,cm),[[an,e.report.category]]),f("span",null,p(r(s)(c(A))),1)]))),128))]),e.report.category==="rules"?(h(),g("div",um,[f("label",{for:`${r(l)}-rule`},p(r(s)("report.rule")),9,dm),e.report.rulesFailed?(h(),g("p",fm,p(r(s)("error.unavailable")),1)):e.report.rules===null?(h(),g("p",pm,p(r(s)("common.loading")),1)):_e((h(),g("select",{key:2,id:`${r(l)}-rule`,"onUpdate:modelValue":S[1]||(S[1]=A=>e.report.ruleId=A),class:"bcm-input",required:""},[S[6]||(S[6]=f("option",{value:"",disabled:""},null,-1)),(h(!0),g(K,null,ke(e.report.rules,A=>(h(),g("option",{key:A.id,value:A.id},p(A.title),9,hm))),128))],8,mm)),[[gr,e.report.ruleId]])])):N("",!0),f("div",bm,[f("label",{for:`${r(l)}-note`},p(r(s)("report.note")),9,gm),_e(f("textarea",{id:`${r(l)}-note`,"onUpdate:modelValue":S[2]||(S[2]=A=>e.report.note=A),class:"bcm-input bcm-textarea",rows:"3","aria-describedby":`${r(l)}-note-hint`,"aria-invalid":m.value>r(fs)},null,8,ym),[[Qe,e.report.note]]),f("p",{id:`${r(l)}-note-hint`,class:"bcm-hint"},p(r(s)("report.noteHint"))+" "+p(r(s)("report.counter",{length:m.value,max:r(fs)})),9,vm)]),_.value?(h(),g("p",_m,p(_.value),1)):N("",!0),f("div",km,[S[7]||(S[7]=f("span",{class:"bcm-spacer"},null,-1)),f("button",{type:"button",class:"bcm-btn",disabled:e.report.sending,onClick:S[3]||(S[3]=A=>o("close"))},p(r(s)("report.cancel")),9,wm),f("button",{type:"submit",class:"bcm-btn bcm-primary",disabled:!u.value},p(e.report.sending?r(s)("report.sending"):r(s)("report.submit")),9,xm)])],64))],32)],8,sm))}}),Tm=["lang","aria-labelledby"],$m={class:"bcm-head"},Om=["id"],Em={key:0,class:"bcm-count"},Mm={key:0,class:"bcm-muted",role:"status"},Nm={key:1,class:"bcm-banner",role:"alert"},Pm={key:0,class:"bcm-banner",role:"status"},Rm=["disabled"],jm={key:1,class:"bcm-muted"},zm={key:2,class:"bcm-thread"},Lm={key:3,class:"bcm-row"},Dm=["disabled"],Um={class:"bcm-section"},Fm={key:1,class:"bcm-row"},qm=["href"],Hm={key:1,class:"bcm-row"},Vm={key:3,class:"bcm-note"},Bm={key:4,class:"bcm-section"},Km=["href"],Wm={key:5,class:"bcm-note"},Ym={key:6,class:"bcm-note"},Gm=["href"],Zm={class:"bcm-sr","aria-live":"polite"},va=new WeakMap,Jm=Me({inheritAttrs:!1,__name:"DiscussionView",props:{articleId:{},apiBase:{},siteBase:{},lang:{},signInHref:{},routes:{},pollMs:{},transport:{type:Function}},setup(e){const t=e,n=po(),o=ve(Ss(t.lang,Is())),{t:s,text:i}=Mo(o);Xe(()=>t.lang,X=>{o.value=Ss(X,Is())});const a=ct("bcm-discussion"),l=ve(null),c=ve(0),m=Ks(null),u=U(()=>To(t.siteBase));function _(){const X=t.articleId?.trim();if(!X)return fn("article-id","[blogmcp-community] <blogmcp-discussion> needs an article-id"),null;if(u.value===null)return null;const Y=$o(t.apiBase,t.transport,u.value);return Y?nf({client:Y,articleId:X,lang:o.value,pollMs:t.pollMs,refusedAge:(n&&va.get(n))??null,onAgeRefused:H=>{n&&va.set(n,H)},onPosted:H=>n?.dispatchEvent(new CustomEvent("bcm-posted",{detail:{state:H},bubbles:!0,composed:!0}))}):null}const T=gt(new Set),S=gt(new Set),A=gt(new Set),v=ve(null),w=U(()=>Co(t.routes)),C=U(()=>Ao(w.value,m.value?.state.me?.links,u.value??""));Hf({get ctl(){return m.value},routes:C,opened:T,originals:S,allReplies:A,focusHeading:()=>l.value,deleteMessage:X=>{v.value=X}});let E=null;function j(){m.value?.dispose(),T.clear(),S.clear(),A.clear(),v.value=null,m.value=_(),c.value+=1,m.value?.start()}Cn(()=>{j(),n&&typeof IntersectionObserver<"u"&&(E=new IntersectionObserver(X=>{const Y=X[X.length-1];Y&&m.value?.setInView(Y.isIntersecting)},{rootMargin:"200px"}),E.observe(n))}),Xe(()=>[t.articleId,t.apiBase,u.value,t.transport,t.pollMs,o.value],()=>j()),sn(()=>{E?.disconnect(),m.value?.dispose(),m.value=null});const b=U(()=>m.value),I=U(()=>m.value?.state??null),q=U(()=>m.value?.mode()??"pending"),G=ve(null);Xe(q,(X,Y)=>{X==="write"&&Y==="onboarding"&&We(()=>G.value?.focus()),X==="ageRefused"&&Y==="onboarding"&&We(()=>l.value?.focus())});const D=U(()=>{const X=m.value?.needs();return X?.onboarding?"need.onboarding":X?.rules?"need.reconsent_rules":"need.art9_consent"});function W(){return Gr(t.signInHref,typeof location>"u"?null:location.pathname)}function Q(X){const Y=X.endsAt?Pe(o.value,X.endsAt):"";return X.kind==="ban"?s("sanction.ban"):X.kind==="suspension"?Y?s("sanction.suspensionUntil",{date:Y}):s("sanction.suspension"):Y?s("sanction.restrictionUntil",{date:Y}):s("sanction.restriction")}const ae=U(()=>{const X=I.value?.failure;if(!X)return"";const Y=Re(X,o.value);return s(Y.key,Y.params)}),ge=ve("");Xe(()=>I.value?.announceId,()=>{ge.value="";const X=i(I.value?.announcement);We(()=>{ge.value=X})});async function we(){const X=v.value;X===null||!m.value||(await m.value.remove(X),v.value=null)}return(X,Y)=>b.value&&I.value&&I.value.phase!=="hidden"?(h(),g("section",{key:c.value,class:"bcm bcm-discussion",lang:o.value,"aria-labelledby":r(a)},[f("header",$m,[f("h2",{id:r(a),ref_key:"heading",ref:l,tabindex:"-1"},p(r(s)("discussion.title")),9,Om),I.value.phase==="ready"?(h(),g("span",Em,p(r(s)("discussion.count",{count:I.value.thread.count})),1)):N("",!0)]),I.value.phase==="loading"?(h(),g("p",Mm,p(r(s)("discussion.loading")),1)):I.value.phase==="failed"?(h(),g("div",Nm,[f("span",null,p(ae.value),1),f("button",{type:"button",class:"bcm-btn",onClick:Y[0]||(Y[0]=H=>b.value.refresh())},p(r(s)("common.retry")),1)])):(h(),g(K,{key:2},[Ie(ga,{"reaction-set":I.value.thread.reactionSet,summary:I.value.thread.articleReactions,interactive:b.value.canReact(),busy:!!I.value.busy["react:article"],onReact:Y[1]||(Y[1]=H=>b.value&&b.value.react({articleId:I.value.thread.articleId??e.articleId??""},H))},null,8,["reaction-set","summary","interactive","busy"]),I.value.newMessages?(h(),g("div",Pm,[f("span",null,p(r(s)("discussion.newMessages")),1),f("button",{type:"button",class:"bcm-btn",disabled:I.value.refreshing,onClick:Y[2]||(Y[2]=H=>b.value.refresh())},p(r(s)("discussion.refresh")),9,Rm)])):N("",!0),I.value.thread.messages.length===0?(h(),g("p",jm,p(r(s)("discussion.empty")),1)):(h(),g("ol",zm,[(h(!0),g(K,null,ke(I.value.thread.messages,H=>(h(),Ne(gp,{key:H.id,message:H},null,8,["message"]))),128))])),I.value.thread.nextCursor!==null?(h(),g("div",Lm,[f("button",{type:"button",class:"bcm-btn",disabled:I.value.loadingMore,onClick:Y[3]||(Y[3]=H=>b.value.loadMore())},p(r(s)("discussion.loadMore")),9,Dm)])):N("",!0),f("div",Um,[q.value==="write"?(h(),Ne(Po,{key:0,ref_key:"composer",ref:G,kind:"new",draft:I.value.composer,wait:b.value.waitLeft(I.value.composer),"rules-href":C.value.rulesPath,onSubmit:Y[4]||(Y[4]=H=>b.value.submit()),onConfirm:Y[5]||(Y[5]=(H,V)=>b.value&&b.value.setConfirmed(I.value.composer,H,V)),onConfirmed:Y[6]||(Y[6]=H=>b.value.sendConfirmed(I.value.composer))},null,8,["draft","wait","rules-href"])):q.value==="signIn"?(h(),g("div",Fm,[f("p",null,p(r(s)("discussion.signInPrompt")),1),W()?(h(),g("a",{key:0,class:"bcm-btn bcm-primary",href:W()??void 0},p(r(s)("common.signIn")),9,qm)):N("",!0)])):q.value==="onboarding"?(h(),g(K,{key:2},[b.value.onboarding.value?(h(),Ne(nm,{key:0,model:b.value.onboarding.value,"rules-href":C.value.rulesPath,onCancel:Y[7]||(Y[7]=H=>b.value.cancelOnboarding())},null,8,["model","rules-href"])):(h(),g("div",Hm,[f("p",null,p(r(s)(D.value)),1),f("button",{type:"button",class:"bcm-btn bcm-primary",onClick:Y[8]||(Y[8]=H=>b.value.beginOnboarding())},p(r(s)("onboarding.continue")),1)]))],64)):q.value==="ageRefused"?(h(),g("p",Vm,p(r(s)("onboarding.ageBelow",{min:I.value.refusedAge??18})),1)):q.value==="sanction"?(h(),g("div",Bm,[(h(!0),g(K,null,ke(I.value.thread.viewer.restrictions,H=>(h(),g("p",{key:H.decisionId,class:"bcm-note"},[Et(p(Q(H))+" ",1),r(ko)(C.value.statementPath,H.decisionId)?(h(),g("a",{key:0,href:r(ko)(C.value.statementPath,H.decisionId)??void 0},p(r(s)("sanction.statement")),9,Km)):N("",!0)]))),128))])):q.value==="notMoved"?(h(),g("p",Wm,p(r(s)("error.notMoved")),1)):q.value==="restricted"?(h(),g("p",Ym,[Et(p(r(s)("error.restricted"))+" ",1),f("a",{href:C.value.myCommunityPath},p(r(s)("panel.title")),9,Gm)])):N("",!0)])],64)),f("p",Zm,p(ge.value),1),I.value.report?(h(),Ne(Am,{key:3,report:I.value.report,"my-community-href":C.value.myCommunityPath,"rules-href":C.value.rulesPath,"fallback-focus":()=>l.value,onSubmit:Y[9]||(Y[9]=H=>b.value.submitReport()),onClose:Y[10]||(Y[10]=H=>b.value.closeReport())},null,8,["report","my-community-href","rules-href","fallback-focus"])):N("",!0),v.value!==null?(h(),Ne(No,{key:4,title:"discussion.deleteTitle",explain:"discussion.deleteExplain",confirm:"discussion.deleteConfirm",danger:"",busy:!!I.value.busy[`delete:${v.value}`],"fallback-focus":()=>l.value,onConfirm:Y[11]||(Y[11]=H=>we()),onCancel:Y[12]||(Y[12]=H=>v.value=null)},null,8,["busy","fallback-focus"])):N("",!0)],8,Tm)):N("",!0)}});function Xm(e,t){if(typeof document>"u"||typeof URL.createObjectURL!="function")return;const n=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),o=URL.createObjectURL(n),s=document.createElement("a");s.href=o,s.download=t,s.style.display="none",document.body.appendChild(s),s.click(),s.remove(),setTimeout(()=>URL.revokeObjectURL(o),1e3)}function Qm(e,t=new Date){const n=t.toISOString().slice(0,10);return`${e.replace(/[^\p{L}\p{N}_-]+/gu,"-").replace(/^-+|-+$/g,"")||"export"}-${n}.json`}const jo=()=>({body:"",sending:!1,failure:null});function eh(e){const{client:t}=e,n=new AbortController,o={signal:n.signal},s=gt({phase:"idle",failure:null,me:null,notifications:[],decisions:[],appeals:[],reports:[],blocks:[],statement:{phase:"idle",value:null,failure:null,appeal:jo()},notice:{phase:"idle",value:null,failure:null,appeal:jo()},profile:null,purgeAfter:null,exporting:!1,busy:{},announcement:null,announceId:0});let i=!1;const a=w=>{s.announcement=w,s.announceId+=1},l=w=>({key:`error.${w.code}`});async function c(){s.phase="loading",s.failure=null;const w=await t.me.get(o);if(i)return;if(!w.ok){if(w.code==="signIn"){s.phase="signIn";return}s.phase="failed",s.failure=w;return}if(s.me=w.value,w.value.needs.includes("sign_in")){s.phase="signIn";return}if(!w.value.member){s.phase="ready";return}const[C,E,j,b,I]=await Promise.all([t.me.notifications.list({},o),t.me.decisions.list({},o),t.me.appeals.list(o),t.me.reports.list(o),t.blocks.list(o)]);if(i)return;C.ok&&(s.notifications=C.value.items.filter(G=>bu(G.code))),E.ok&&(s.decisions=[...E.value.items]),j.ok&&(s.appeals=[...j.value.items]),b.ok&&(s.reports=[...b.value.items]),I.ok&&(s.blocks=[...I.value.blocks]);const q=[C,E,j,b,I].find(G=>!G.ok);q&&!q.ok&&a(l(q)),s.phase="ready"}let m=null,u=0;async function _(w){const C=++u;w!==m&&(m=w,s.statement.value=null,s.statement.appeal=jo()),s.statement.phase="loading",s.statement.failure=null;const E=await t.me.decisions.get({decisionId:w},o);if(!(i||C!==u)){if(E.ok){s.statement.value=E.value,s.statement.phase="ready";return}s.statement.failure=E,s.statement.phase=E.code==="signIn"?"signIn":"failed"}}async function T(w){if(w===null){s.notice.phase="missing";return}s.notice.phase="loading",s.notice.failure=null;const C=await t.notices.status({receipt:w},o);if(!i){if(C.ok){s.notice.value=C.value,s.notice.phase="ready";return}s.notice.failure=C,s.notice.phase="failed"}}let S=null;const A=w=>lt(et(w.body)),v=w=>!w.sending&&A(w)>0&&A(w)<=Bt;return{state:s,loadMember:c,loadStatement:_,async loadNotice(w){S=w,await T(w)},unreadCount:()=>s.notifications.filter(w=>w.readAt===null).length,async markAllRead(){const w=s.notifications.filter(j=>j.readAt===null).map(j=>j.id);if(w.length===0||s.busy.markRead)return;s.busy.markRead=!0;const C=await t.me.notifications.markRead({ids:w},o);if(delete s.busy.markRead,i)return;if(!C.ok)return a(l(C));const E=new Date().toISOString();s.notifications=s.notifications.map(j=>w.includes(j.id)?{...j,readAt:E}:j)},async fileAppeal(){const w=s.statement,C=w.appeal;if(!w.value||!w.value.canAppeal||!v(C))return;const E=w.value.decisionId;C.sending=!0,C.failure=null;const j=await t.me.appeals.file({decisionId:E,body:et(C.body)},o);if(C.sending=!1,!(i||E!==m)){if(!j.ok){C.failure=j;return}C.body="",a({key:"statement.appealSent"}),await _(E)}},async withdrawAppeal(){const w=s.statement,C=w.value?.appeal;if(!w.value||!C||C.status!=="open"||s.busy.withdraw)return;const E=w.value.decisionId;s.busy.withdraw=!0;const j=await t.me.appeals.withdraw({appealId:C.appealId},o);if(delete s.busy.withdraw,!(i||E!==m)){if(!j.ok)return a(l(j));a({key:"statement.appealWithdrawn"}),await _(E)}},async fileNoticeAppeal(){const w=s.notice,C=w.appeal;if(!w.value||!w.value.appeal.canAppeal||S===null||!v(C))return;C.sending=!0,C.failure=null;const E=await t.notices.appeal({receipt:S,body:et(C.body)},o);if(C.sending=!1,!i){if(!E.ok){C.failure=E;return}C.body="",a({key:"notice.appealSent"}),await T(S)}},async withdrawNoticeAppeal(){if(!s.notice.value?.appeal.open||S===null||s.busy.noticeWithdraw)return;s.busy.noticeWithdraw=!0;const w=await t.notices.withdrawAppeal({receipt:S},o);if(delete s.busy.noticeWithdraw,!i){if(!w.ok)return a(l(w));a({key:"statement.appealWithdrawn"}),await T(S)}},async withdrawConsent(){if(s.busy.consent)return!1;s.busy.consent=!0;const w=await t.me.consents.withdraw({kind:"art9_consent"},o);return delete s.busy.consent,i?!1:w.ok?(s.me&&(s.me={...s.me,acceptances:{...s.me.acceptances,art9Consent:w.value.state}}),a({key:"panel.art9Withdrawn"}),!0):(a(l(w)),!1)},async unblock(w){const C=`block:${w}`;if(s.busy[C])return;s.busy[C]=!0;const E=await t.blocks.set({memberId:w,blocked:!1},o);if(delete s.busy[C],!i){if(!E.ok)return a(l(E));s.blocks=s.blocks.filter(j=>j.memberId!==w),a({key:"discussion.unblocked"})}},editProfile(){const w=s.me?.profile;w&&(s.profile={displayName:w.displayName,handle:w.handle,avatarPreset:w.avatarPreset,sending:!1,failure:null,fields:[]})},cancelProfile(){s.profile=null},async saveProfile(){const w=s.profile,C=s.me?.profile;if(!w||!C||w.sending||!oa(w.displayName)||!ra(w.handle)||pn(w.handle)==="")return;const E={},j=ws(w.displayName),b=pn(w.handle);if(j!==C.displayName&&(E.displayName=j),b!==C.handle&&(E.handle=b),w.avatarPreset!==C.avatarPreset&&(E.avatarPreset=w.avatarPreset),Object.keys(E).length===0){s.profile=null;return}w.sending=!0,w.failure=null,w.fields=[];const I=await t.me.updateProfile(E,o);if(w.sending=!1,!i){if(!I.ok){w.failure=I,w.fields=I.code==="handle"?["handle"]:I.code==="name"?["displayName"]:I.fields??[];return}s.me&&(s.me={...s.me,profile:I.value.profile}),s.profile=null}},async exportData(w){if(s.exporting)return;s.exporting=!0;const C=await t.me.export(o);if(s.exporting=!1,!i){if(!C.ok)return a(l(C));w(C.value)}},async erase(){if(s.busy.erase)return!1;s.busy.erase=!0;const w=await t.me.erase(o);return delete s.busy.erase,i?!1:w.ok?(s.purgeAfter=w.value.purgeAfter,s.me?.member&&(s.me={...s.me,member:{...s.me.member,status:w.value.status}}),!0):(a(l(w)),!1)},async cancelErase(){if(s.busy.erase)return;s.busy.erase=!0;const w=await t.me.cancelErase(o);if(delete s.busy.erase,!i){if(!w.ok)return a(l(w));s.purgeAfter=null,s.me?.member&&(s.me={...s.me,member:{...s.me.member,status:w.value.status}}),a({key:"panel.eraseCancelled"})}},erasing:()=>s.me?.member?.status==="deletion_requested",appealLength:A,canAppealWith:v,dispose(){i=!0,n.abort()}}}const zo=new WeakMap;function th(e){if(typeof location<"u"&&location.hash.startsWith("#t=")){const t=Zr(location.hash);return rd(),e&&zo.set(e,t),t}return e&&zo.has(e)?zo.get(e)??null:void 0}const nh=["aria-labelledby"],sh=["id"],oh={class:"bcm-dl"},ih={class:"bcm-muted"},rh={key:0,class:"bcm-muted"},ah={class:"bcm-facts"},lh=["aria-labelledby"],ch=["id"],uh={class:"bcm-row"},dh=["disabled"],fh={key:0,class:"bcm-muted"},ph={class:"bcm-field"},mh=["for"],hh=["id","aria-describedby","aria-invalid"],bh=["id"],gh={key:0,class:"bcm-error",role:"alert"},yh={class:"bcm-row"},vh=["disabled"],_h={key:2},kh={key:3},wh=Me({__name:"NoticeStatusView",props:{notice:{},appeal:{},withdrawing:{type:Boolean}},emits:["appeal","withdraw"],setup(e,{emit:t}){const n=e,o=t,{t:s,lang:i}=It(),a=ct("bcm-notice-status"),l=U(()=>n.notice),c=U(()=>tt(`category.${l.value.category}`)),m=U(()=>tt(`caseStatus.${l.value.status}`)),u=U(()=>lt(et(n.appeal.body))),_=U(()=>!n.appeal.sending&&u.value>0&&u.value<=Bt),T=U(()=>l.value.appeal.closesAt?la(l.value.appeal.closesAt):!1),S=U(()=>{const A=n.appeal.failure;if(!A)return"";const v=Re(A,i.value);return s(v.key,v.params)});return(A,v)=>(h(),g("section",{class:"bcm-section","aria-labelledby":`${r(a)}-title`},[f("h3",{id:`${r(a)}-title`},p(r(s)("notice.statusTitle")),9,sh),f("dl",oh,[c.value?(h(),g(K,{key:0},[f("dt",null,p(r(s)("notice.category")),1),f("dd",null,p(r(s)(c.value)),1)],64)):N("",!0),m.value?(h(),g(K,{key:1},[f("dt",null,p(r(s)("notice.statusTitle")),1),f("dd",null,p(r(s)(m.value)),1)],64)):N("",!0)]),f("p",ih,p(r(s)("notice.submittedAt",{date:r(Pe)(r(i),l.value.submittedAt)})),1),l.value.decidedAt?(h(),g("p",rh,p(r(s)("notice.decidedAt",{date:r(Pe)(r(i),l.value.decidedAt)})),1)):N("",!0),l.value.statement?(h(),g(K,{key:1},[f("h4",null,p(r(s)("notice.statement")),1),f("pre",ah,p(l.value.statement),1)],64)):N("",!0),l.value.decidedAt?(h(),g("section",{key:2,class:"bcm-card","aria-labelledby":`${r(a)}-appeal`},[f("h4",{id:`${r(a)}-appeal`},p(r(s)("notice.appealTitle")),9,ch),l.value.appeal.open?(h(),g(K,{key:0},[f("p",null,p(r(s)("notice.appealOpen")),1),f("div",uh,[f("button",{type:"button",class:"bcm-btn",disabled:e.withdrawing,onClick:v[0]||(v[0]=w=>o("withdraw"))},p(r(s)("notice.appealWithdraw")),9,dh)])],64)):l.value.appeal.canAppeal?(h(),g(K,{key:1},[f("p",null,p(r(s)("notice.appealLede")),1),l.value.appeal.closesAt?(h(),g("p",fh,p(r(s)("notice.appealUntil",{date:r(Pe)(r(i),l.value.appeal.closesAt)})),1)):N("",!0),f("form",{class:"bcm-form",novalidate:"",onSubmit:v[2]||(v[2]=Pt(w=>_.value&&o("appeal"),["prevent"]))},[f("div",ph,[f("label",{for:`${r(a)}-body`},p(r(s)("notice.appealBody")),9,mh),_e(f("textarea",{id:`${r(a)}-body`,"onUpdate:modelValue":v[1]||(v[1]=w=>e.appeal.body=w),class:"bcm-input bcm-textarea",rows:"5","aria-describedby":`${r(a)}-counter`,"aria-invalid":u.value>r(Bt)},null,8,hh),[[Qe,e.appeal.body]]),f("p",{id:`${r(a)}-counter`,class:"bcm-counter"},p(r(s)("statement.appealCounter",{length:u.value,max:r(Bt)})),9,bh)]),S.value?(h(),g("p",gh,p(S.value),1)):N("",!0),f("div",yh,[f("button",{type:"submit",class:"bcm-btn bcm-primary",disabled:!_.value},p(e.appeal.sending?r(s)("statement.appealSending"):r(s)("notice.appealSubmit")),9,vh)])],32)],64)):T.value?(h(),g("p",_h,p(r(s)("notice.appealClosed")),1)):(h(),g("p",kh,p(r(s)("statement.appealUnavailable")),1))],8,lh)):N("",!0)],8,nh))}}),xh=["aria-labelledby"],Sh=["id"],Ih={class:"bcm-muted"},Ch={class:"bcm-dl"},Ah={key:0,class:"bcm-muted"},Th={key:0},$h={key:0,class:"bcm-text"},Oh={key:0,class:"bcm-text"},Eh={key:0,class:"bcm-note bcm-text"},Mh={class:"bcm-facts"},Nh={class:"bcm-text"},Ph={class:"bcm-facts"},Rh=["aria-labelledby"],jh=["id"],zh={key:0,class:"bcm-muted"},Lh={class:"bcm-row"},Dh=["disabled"],Uh={class:"bcm-muted"},Fh={class:"bcm-field"},qh=["for"],Hh=["id","aria-describedby","aria-invalid"],Vh=["id"],Bh={key:0,class:"bcm-error",role:"alert"},Kh={class:"bcm-row"},Wh=["disabled"],Yh={key:0,class:"bcm-muted"},Gh=Me({__name:"StatementView",props:{statement:{},appeal:{},withdrawing:{type:Boolean}},emits:["appeal","withdraw"],setup(e,{emit:t}){const n=e,o=t,{t:s,lang:i}=It(),a=ct("bcm-statement"),l=U(()=>n.statement),c=U(()=>tt(`restriction.${l.value.restriction}`)),m=U(()=>tt(`basis.${l.value.basis}`)),u=U(()=>tt(`category.${l.value.category}`)),_=U(()=>Zd(i.value,l.value.territorialScope)),T=U(()=>l.value.appeal?tt(`appealStatus.${l.value.appeal.status}`):null),S=U(()=>l.value.subject.kind==="message"?"statement.subjectMessage":l.value.subject.kind==="article"?"statement.subjectArticle":"statement.subjectProfile"),A=U(()=>{const b=l.value.subject;return b.kind==="message"&&b.message?b.message.body??b.message.displayBody:null}),v=U(()=>l.value.appeal?.status==="open"),w=U(()=>la(l.value.appealWindowClosesAt)),C=U(()=>lt(et(n.appeal.body))),E=U(()=>!n.appeal.sending&&C.value>0&&C.value<=Bt),j=U(()=>{const b=n.appeal.failure;if(!b)return"";const I=Re(b,i.value);return s(I.key,I.params)});return(b,I)=>(h(),g("article",{class:"bcm-section","aria-labelledby":`${r(a)}-title`},[f("h3",{id:`${r(a)}-title`},p(r(s)("statement.title")),9,Sh),f("p",Ih,p(r(s)("statement.decidedAt",{date:r(Pe)(r(i),l.value.decidedAt)})),1),f("p",null,p(r(s)("statement.provider",{entity:l.value.providerEntity})),1),f("dl",Ch,[c.value?(h(),g(K,{key:0},[f("dt",null,p(r(s)("statement.restriction")),1),f("dd",null,[Et(p(r(s)(c.value))+" ",1),l.value.restrictionUntil?(h(),g("span",Ah,p(r(s)("statement.until",{date:r(Pe)(r(i),l.value.restrictionUntil)})),1)):N("",!0)])],64)):N("",!0),u.value?(h(),g(K,{key:1},[f("dt",null,p(r(s)("report.category")),1),f("dd",null,p(r(s)(u.value)),1)],64)):N("",!0),_.value?(h(),g(K,{key:2},[f("dt",null,p(r(s)("statement.scope")),1),f("dd",null,p(_.value),1)],64)):N("",!0),m.value?(h(),g(K,{key:3},[f("dt",null,p(r(s)("statement.basis")),1),f("dd",null,p(r(s)(m.value)),1)],64)):N("",!0),f("dt",null,p(r(s)("statement.automation")),1),f("dd",null,[l.value.automatedDetection?(h(),g("span",Th,p(r(s)("statement.automatedDetection")),1)):N("",!0),f("span",null,p(l.value.automated?r(s)("statement.automatedDecision"):r(s)("statement.humanDecision")),1)]),l.value.legalGround?(h(),g(K,{key:4},[f("dt",null,p(r(s)("statement.legalGround")),1),f("dd",null,[f("p",null,p(l.value.legalGround),1),l.value.legalExplanation?(h(),g("p",$h,p(l.value.legalExplanation),1)):N("",!0)])],64)):N("",!0),l.value.contractualGround?(h(),g(K,{key:5},[f("dt",null,p(r(s)("statement.contractualGround")),1),f("dd",null,[f("p",null,p(l.value.contractualGround),1),l.value.contractualExplanation?(h(),g("p",Oh,p(l.value.contractualExplanation),1)):N("",!0)])],64)):N("",!0),f("dt",null,p(r(s)("statement.subject")),1),f("dd",null,[f("p",null,p(r(s)(S.value)),1),A.value?(h(),g("p",Eh,[Ie(ba,{text:A.value},null,8,["text"])])):N("",!0)])]),f("h4",null,p(r(s)("statement.facts")),1),f("pre",Mh,p(l.value.facts),1),f("h4",null,p(r(s)("statement.redress")),1),f("p",Nh,p(l.value.redress),1),f("details",null,[f("summary",null,p(r(s)("statement.full")),1),f("pre",Ph,p(l.value.statement),1)]),f("section",{class:"bcm-card","aria-labelledby":`${r(a)}-appeal`},[f("h4",{id:`${r(a)}-appeal`},p(r(s)("statement.appealTitle")),9,jh),v.value?(h(),g(K,{key:0},[f("p",null,p(r(s)("statement.appealOpen")),1),T.value?(h(),g("p",zh,p(r(s)(T.value)),1)):N("",!0),f("div",Lh,[f("button",{type:"button",class:"bcm-btn",disabled:e.withdrawing,onClick:I[0]||(I[0]=q=>o("withdraw"))},p(r(s)("statement.appealWithdraw")),9,Dh)])],64)):l.value.canAppeal?(h(),g(K,{key:1},[f("p",null,p(r(s)("statement.appealLede")),1),f("p",Uh,p(r(s)("statement.appealUntil",{date:r(Pe)(r(i),l.value.appealWindowClosesAt)})),1),f("form",{class:"bcm-form",novalidate:"",onSubmit:I[2]||(I[2]=Pt(q=>E.value&&o("appeal"),["prevent"]))},[f("div",Fh,[f("label",{for:`${r(a)}-body`},p(r(s)("statement.appealBody")),9,qh),_e(f("textarea",{id:`${r(a)}-body`,"onUpdate:modelValue":I[1]||(I[1]=q=>e.appeal.body=q),class:"bcm-input bcm-textarea",rows:"5","aria-describedby":`${r(a)}-counter`,"aria-invalid":C.value>r(Bt)},null,8,Hh),[[Qe,e.appeal.body]]),f("p",{id:`${r(a)}-counter`,class:"bcm-counter"},p(r(s)("statement.appealCounter",{length:C.value,max:r(Bt)})),9,Vh)]),j.value?(h(),g("p",Bh,p(j.value),1)):N("",!0),f("div",Kh,[f("button",{type:"submit",class:"bcm-btn bcm-primary",disabled:!E.value},p(e.appeal.sending?r(s)("statement.appealSending"):r(s)("statement.appealSubmit")),9,Wh)])],32)],64)):(h(),g(K,{key:2},[T.value?(h(),g("p",Yh,p(r(s)(T.value)),1)):N("",!0),f("p",null,p(w.value?r(s)("statement.appealClosed"):r(s)("statement.appealUnavailable")),1)],64))],8,Rh)],8,xh))}}),Zh=["lang","aria-labelledby"],Jh=["id"],Xh={key:0,class:"bcm-note",role:"alert"},Qh={key:1,class:"bcm-muted",role:"status"},eb={key:2,class:"bcm-error",role:"alert"},tb={key:0,class:"bcm-muted",role:"status"},nb={key:1,class:"bcm-row"},sb=["href"],ob={key:2,class:"bcm-error",role:"alert"},ib=["href"],rb={key:0,class:"bcm-muted",role:"status"},ab={key:1,class:"bcm-row"},lb=["href"],cb={key:2,class:"bcm-error",role:"alert"},ub=["aria-labelledby"],db=["id"],fb={key:0,class:"bcm-msg"},pb={class:"bcm-msg-main"},mb={class:"bcm-author"},hb={class:"bcm-handle"},bb={class:"bcm-row"},gb={class:"bcm-field"},yb=["for"],vb=["id","aria-invalid"],_b={class:"bcm-hint"},kb={class:"bcm-field"},wb=["for"],xb=["id","maxlength","aria-invalid"],Sb={class:"bcm-hint"},Ib={class:"bcm-choices"},Cb={class:"bcm-choice"},Ab=["name"],Tb=["name","value"],$b={key:0,class:"bcm-error",role:"alert"},Ob={class:"bcm-row"},Eb=["disabled"],Mb=["disabled"],Nb=["aria-labelledby"],Pb={class:"bcm-row"},Rb=["id"],jb={key:0,class:"bcm-badge"},zb=["disabled"],Lb={key:0,class:"bcm-muted"},Db={key:1,class:"bcm-list"},Ub={key:0},Fb=["datetime"],qb=["href"],Hb=["aria-labelledby"],Vb=["id"],Bb={key:0,class:"bcm-muted"},Kb={key:1,class:"bcm-list"},Wb={key:0},Yb={key:1,class:"bcm-muted"},Gb={class:"bcm-muted"},Zb={key:2,class:"bcm-muted"},Jb={key:3,class:"bcm-muted"},Xb=["href"],Qb=["aria-labelledby"],eg=["id"],tg={key:0,class:"bcm-muted"},ng={key:1,class:"bcm-list"},sg={key:0},og={key:1},ig=["datetime"],rg={key:2,class:"bcm-muted"},ag=["aria-labelledby"],lg=["id"],cg={key:0,class:"bcm-muted"},ug={key:1,class:"bcm-list"},dg=["disabled","onClick"],fg=["aria-labelledby"],pg=["id"],mg={class:"bcm-row"},hg=["disabled"],bg={key:1},gg=["aria-labelledby"],yg=["id"],vg={class:"bcm-hint"},_g={class:"bcm-row"},kg=["disabled"],wg=["aria-labelledby"],xg=["id"],Sg={class:"bcm-row"},Ig=["disabled"],Cg={class:"bcm-hint"},Ag={class:"bcm-row"},Tg=["disabled"],$g={class:"bcm-sr","aria-live":"polite"},Og=Me({inheritAttrs:!1,__name:"MyCommunityView",props:{apiBase:{},siteBase:{},lang:{},decisionId:{},routes:{},signInHref:{},transport:{type:Function}},setup(e){const t=e,n=ve(Ss(t.lang,Is())),{t:o,text:s}=Mo(n),i=ct("bcm-panel"),a=ve(null),l=To(t.siteBase),c=l===null?null:$o(t.apiBase,t.transport,l),m=c?eh({client:c,lang:n.value}):null,u=m?.state??null,_=U(()=>Ao(Co(t.routes),u?.me?.links,l??"")),T=U(()=>!!t.decisionId),S=ve(!1),A=ve(null),v=po();Cn(()=>{if(!m)return;const H=th(v);H!==void 0&&(S.value=!0,m.loadNotice(H)),t.decisionId?m.loadStatement(t.decisionId):m.loadMember()}),Xe(()=>t.decisionId,(H,V)=>{!m||H===V||(H?m.loadStatement(H):u?.phase==="idle"&&m.loadMember())}),sn(()=>m?.dispose());const w=U(()=>{const H=u?.failure;if(!H)return"";const V=Re(H,n.value);return o(V.key,V.params)}),C=U(()=>{const H=u?.statement.failure;if(!H)return"";const V=Re(H,n.value);return o(V.key,V.params)}),E=U(()=>{const H=u?.notice.failure;if(!H)return"";const V=Re(H,n.value);return o(V.key,V.params)});function j(){return Gr(t.signInHref,typeof location>"u"?null:location.pathname)}const b=H=>ko(_.value.statementPath,H),I=H=>tt(`notification.${H.code}`),q=H=>tt(`restriction.${H}`),G=H=>tt(`category.${H}`),D=H=>tt(`caseStatus.${H}`),W=H=>{const V=u?.appeals.find($=>$.decisionId===H);return V?tt(`appealStatus.${V.status}`):null},Q=U(()=>u?.me?.acceptances.art9Consent??null),ae=U(()=>u?.me?.member??null),ge=U(()=>u?.me?.profile??null);function we(){m?.exportData(H=>Xm(H,Qm(o("panel.exportFileName"))))}async function X(){m&&(A.value==="consent"?await m.withdrawConsent():A.value==="erase"&&await m.erase(),A.value=null)}const Y=ve("");return Xe(()=>u?.announceId,()=>{Y.value="";const H=s(u?.announcement);We(()=>{Y.value=H})}),(H,V)=>r(m)&&r(u)?(h(),g("section",{key:0,class:"bcm bcm-panel",lang:n.value,"aria-labelledby":`${r(i)}-title`},[f("h2",{id:`${r(i)}-title`,ref_key:"heading",ref:a,tabindex:"-1"},p(T.value?r(o)("statement.title"):r(o)("panel.title")),9,Jh),S.value?(h(),g(K,{key:0},[r(u).notice.phase==="missing"?(h(),g("p",Xh,p(r(o)("notice.receiptMissing")),1)):r(u).notice.phase==="loading"?(h(),g("p",Qh,p(r(o)("common.loading")),1)):r(u).notice.phase==="failed"?(h(),g("p",eb,p(E.value),1)):r(u).notice.value?(h(),Ne(wh,{key:3,notice:r(u).notice.value,appeal:r(u).notice.appeal,withdrawing:!!r(u).busy.noticeWithdraw,onAppeal:V[0]||(V[0]=$=>r(m).fileNoticeAppeal()),onWithdraw:V[1]||(V[1]=$=>r(m).withdrawNoticeAppeal())},null,8,["notice","appeal","withdrawing"])):N("",!0)],64)):N("",!0),T.value?(h(),g(K,{key:1},[r(u).statement.phase==="loading"?(h(),g("p",tb,p(r(o)("common.loading")),1)):r(u).statement.phase==="signIn"?(h(),g("div",nb,[f("p",null,p(r(o)("panel.signIn")),1),j()?(h(),g("a",{key:0,class:"bcm-btn bcm-primary",href:j()??void 0},p(r(o)("common.signIn")),9,sb)):N("",!0)])):r(u).statement.phase==="failed"?(h(),g("p",ob,p(C.value),1)):r(u).statement.value?(h(),Ne(Gh,{key:3,statement:r(u).statement.value,appeal:r(u).statement.appeal,withdrawing:!!r(u).busy.withdraw,onAppeal:V[2]||(V[2]=$=>r(m).fileAppeal()),onWithdraw:V[3]||(V[3]=$=>r(m).withdrawAppeal())},null,8,["statement","appeal","withdrawing"])):N("",!0),f("p",null,[f("a",{href:_.value.myCommunityPath},p(r(o)("common.back")),9,ib)])],64)):(h(),g(K,{key:2},[r(u).phase==="loading"?(h(),g("p",rb,p(r(o)("common.loading")),1)):r(u).phase==="signIn"&&!S.value?(h(),g("div",ab,[f("p",null,p(r(o)("panel.signIn")),1),j()?(h(),g("a",{key:0,class:"bcm-btn bcm-primary",href:j()??void 0},p(r(o)("common.signIn")),9,lb)):N("",!0)])):r(u).phase==="failed"?(h(),g("p",cb,p(w.value),1)):r(u).phase==="ready"?(h(),g(K,{key:3},[ge.value&&ae.value?(h(),g("section",{key:0,class:"bcm-section","aria-labelledby":`${r(i)}-profile`},[f("h3",{id:`${r(i)}-profile`},p(r(o)("panel.profile")),9,db),r(u).profile?(h(),g("form",{key:1,class:"bcm-form bcm-card",novalidate:"",onSubmit:V[10]||(V[10]=Pt($=>r(m).saveProfile(),["prevent"]))},[f("div",gb,[f("label",{for:`${r(i)}-name`},p(r(o)("onboarding.displayName")),9,yb),_e(f("input",{id:`${r(i)}-name`,"onUpdate:modelValue":V[5]||(V[5]=$=>r(u).profile.displayName=$),class:"bcm-input",autocomplete:"nickname","aria-invalid":r(u).profile.fields.includes("displayName")},null,8,vb),[[Qe,r(u).profile.displayName]]),f("p",_b,p(r(o)("onboarding.displayNameHint")),1)]),f("div",kb,[f("label",{for:`${r(i)}-handle`},p(r(o)("onboarding.handle")),9,wb),_e(f("input",{id:`${r(i)}-handle`,"onUpdate:modelValue":V[6]||(V[6]=$=>r(u).profile.handle=$),class:"bcm-input",autocomplete:"username",autocapitalize:"none",spellcheck:"false",maxlength:r(xs),"aria-invalid":r(u).profile.fields.includes("handle")},null,8,xb),[[Qe,r(u).profile.handle]]),f("p",Sb,p(r(o)("onboarding.handleHint",{min:r(ia),max:r(xs),days:r(Mr)})),1)]),f("fieldset",Ib,[f("legend",null,p(r(o)("onboarding.avatar")),1),f("label",Cb,[_e(f("input",{"onUpdate:modelValue":V[7]||(V[7]=$=>r(u).profile.avatarPreset=$),type:"radio",name:`${r(i)}-avatar`,value:null},null,8,Ab),[[an,r(u).profile.avatarPreset]]),f("span",null,p(r(o)("onboarding.avatarNone")),1)]),(h(!0),g(K,null,ke(r(Ro),$=>(h(),g("label",{key:$.id,class:"bcm-choice"},[_e(f("input",{"onUpdate:modelValue":V[8]||(V[8]=J=>r(u).profile.avatarPreset=J),type:"radio",name:`${r(i)}-avatar`,value:$.id},null,8,Tb),[[an,r(u).profile.avatarPreset]]),f("span",null,p($.emoji),1)]))),128))]),r(u).profile.failure?(h(),g("p",$b,p(r(s)(r(Re)(r(u).profile.failure,n.value))),1)):N("",!0),f("div",Ob,[V[20]||(V[20]=f("span",{class:"bcm-spacer"},null,-1)),f("button",{type:"button",class:"bcm-btn",disabled:r(u).profile.sending,onClick:V[9]||(V[9]=$=>r(m).cancelProfile())},p(r(o)("composer.cancel")),9,Eb),f("button",{type:"submit",class:"bcm-btn bcm-primary",disabled:r(u).profile.sending},p(r(u).profile.sending?r(o)("composer.sending"):r(o)("composer.save")),9,Mb)])],32)):(h(),g("div",fb,[Ie(ha,{author:{kind:"member",memberId:ae.value.memberId,displayName:ge.value.displayName,avatarPreset:ge.value.avatarPreset}},null,8,["author"]),f("div",pb,[f("span",mb,p(ge.value.displayName),1),f("span",hb,p(ge.value.handle),1),f("div",bb,[f("button",{type:"button",class:"bcm-btn bcm-small",onClick:V[4]||(V[4]=$=>r(m).editProfile())},p(r(o)("panel.profileEdit")),1)])])]))],8,ub)):N("",!0),f("section",{class:"bcm-section","aria-labelledby":`${r(i)}-notifications`},[f("div",Pb,[f("h3",{id:`${r(i)}-notifications`},p(r(o)("panel.notifications")),9,Rb),r(m).unreadCount()>0?(h(),g("span",jb,p(r(o)("panel.unread",{count:r(m).unreadCount()})),1)):N("",!0),V[21]||(V[21]=f("span",{class:"bcm-spacer"},null,-1)),r(m).unreadCount()>0?(h(),g("button",{key:1,type:"button",class:"bcm-btn bcm-small",disabled:!!r(u).busy.markRead,onClick:V[11]||(V[11]=$=>r(m).markAllRead())},p(r(o)("panel.markRead")),9,zb)):N("",!0)]),r(u).notifications.length===0?(h(),g("p",Lb,p(r(o)("panel.notificationsEmpty")),1)):(h(),g("ul",Db,[(h(!0),g(K,null,ke(r(u).notifications,$=>(h(),g("li",{key:$.id,class:nt({"bcm-unread":$.readAt===null})},[I($)?(h(),g("p",Ub,p(r(o)(I($))),1)):N("",!0),f("time",{class:"bcm-time",datetime:$.createdAt},p(r(Pe)(n.value,$.createdAt)),9,Fb),$.decisionId&&b($.decisionId)?(h(),g("a",{key:1,href:b($.decisionId)??void 0},p(r(o)("sanction.statement")),9,qb)):N("",!0)],2))),128))]))],8,Nb),f("section",{class:"bcm-section","aria-labelledby":`${r(i)}-statements`},[f("h3",{id:`${r(i)}-statements`},p(r(o)("panel.statements")),9,Vb),r(u).decisions.length===0?(h(),g("p",Bb,p(r(o)("panel.statementsEmpty")),1)):(h(),g("ul",Kb,[(h(!0),g(K,null,ke(r(u).decisions,$=>(h(),g("li",{key:$.decisionId},[q($.restriction)?(h(),g("p",Wb,[f("strong",null,p(r(o)(q($.restriction))),1)])):N("",!0),G($.category)?(h(),g("p",Yb,p(r(o)(G($.category))),1)):N("",!0),f("p",Gb,p(r(o)("statement.decidedAt",{date:r(Pe)(n.value,$.decidedAt)})),1),W($.decisionId)?(h(),g("p",Zb,p(r(o)(W($.decisionId))),1)):$.canAppeal?(h(),g("p",Jb,p(r(o)("statement.appealUntil",{date:r(Pe)(n.value,$.appealWindowClosesAt)})),1)):N("",!0),b($.decisionId)?(h(),g("a",{key:4,href:b($.decisionId)??void 0},p(r(o)("sanction.statement")),9,Xb)):N("",!0)]))),128))]))],8,Hb),f("section",{class:"bcm-section","aria-labelledby":`${r(i)}-reports`},[f("h3",{id:`${r(i)}-reports`},p(r(o)("panel.reports")),9,eg),r(u).reports.length===0?(h(),g("p",tg,p(r(o)("panel.reportsEmpty")),1)):(h(),g("ul",ng,[(h(!0),g(K,null,ke(r(u).reports,$=>(h(),g("li",{key:$.caseId},[G($.category)?(h(),g("p",sg,[f("strong",null,p(r(o)(G($.category))),1)])):N("",!0),D($.status)?(h(),g("p",og,p(r(o)(D($.status))),1)):N("",!0),f("time",{class:"bcm-time",datetime:$.reportedAt},p(r(Pe)(n.value,$.reportedAt)),9,ig),$.decidedAt?(h(),g("p",rg,p(r(o)("statement.decidedAt",{date:r(Pe)(n.value,$.decidedAt)})),1)):N("",!0)]))),128))]))],8,Qb),ae.value?(h(),g("section",{key:1,class:"bcm-section","aria-labelledby":`${r(i)}-blocks`},[f("h3",{id:`${r(i)}-blocks`},p(r(o)("panel.blocks")),9,lg),r(u).blocks.length===0?(h(),g("p",cg,p(r(o)("panel.blocksEmpty")),1)):(h(),g("ul",ug,[(h(!0),g(K,null,ke(r(u).blocks,$=>(h(),g("li",{key:$.memberId,class:"bcm-row"},[f("span",null,p($.author.kind==="member"&&"displayName"in $.author&&$.author.displayName?$.author.displayName:r(o)("author.deleted")),1),V[22]||(V[22]=f("span",{class:"bcm-spacer"},null,-1)),f("button",{type:"button",class:"bcm-btn bcm-small",disabled:!!r(u).busy[`block:${$.memberId}`],onClick:J=>r(m).unblock($.memberId)},p(r(o)("discussion.unblock")),9,dg)]))),128))]))],8,ag)):N("",!0),ae.value&&Q.value!==null?(h(),g("section",{key:2,class:"bcm-section","aria-labelledby":`${r(i)}-consents`},[f("h3",{id:`${r(i)}-consents`},p(r(o)("panel.consents")),9,pg),Q.value==="accepted"?(h(),g(K,{key:0},[f("p",null,p(r(o)("panel.art9Given")),1),f("div",mg,[f("button",{type:"button",class:"bcm-btn",disabled:!!r(u).busy.consent,onClick:V[12]||(V[12]=$=>A.value="consent")},p(r(o)("panel.art9Withdraw")),9,hg)])],64)):(h(),g("p",bg,p(r(o)("panel.art9NotGiven")),1))],8,fg)):N("",!0),ae.value?(h(),g("section",{key:3,class:"bcm-section","aria-labelledby":`${r(i)}-export`},[f("h3",{id:`${r(i)}-export`},p(r(o)("panel.export")),9,yg),f("p",vg,p(r(o)("panel.exportHint")),1),f("div",_g,[f("button",{type:"button",class:"bcm-btn",disabled:r(u).exporting,onClick:V[13]||(V[13]=$=>we())},p(r(u).exporting?r(o)("panel.exporting"):r(o)("panel.export")),9,kg)])],8,gg)):N("",!0),ae.value?(h(),g("section",{key:4,class:"bcm-section","aria-labelledby":`${r(i)}-erase`},[f("h3",{id:`${r(i)}-erase`},p(r(o)("panel.erase")),9,xg),r(m).erasing()?(h(),g(K,{key:0},[f("p",null,p(r(u).purgeAfter?r(o)("panel.eraseScheduled",{date:r(Pe)(n.value,r(u).purgeAfter)}):r(o)("notification.erasure_scheduled")),1),f("div",Sg,[f("button",{type:"button",class:"bcm-btn bcm-primary",disabled:!!r(u).busy.erase,onClick:V[14]||(V[14]=$=>r(m).cancelErase())},p(r(o)("panel.eraseCancel")),9,Ig)])],64)):(h(),g(K,{key:1},[f("p",Cg,p(r(o)("panel.eraseExplain")),1),f("div",Ag,[f("button",{type:"button",class:"bcm-btn bcm-danger",disabled:!!r(u).busy.erase,onClick:V[15]||(V[15]=$=>A.value="erase")},p(r(o)("panel.erase")),9,Tg)])],64))],8,wg)):N("",!0)],64)):N("",!0)],64)),f("p",$g,p(Y.value),1),A.value==="consent"?(h(),Ne(No,{key:3,title:"panel.art9WithdrawTitle",explain:"panel.art9WithdrawExplain",confirm:"panel.art9WithdrawConfirm",cancel:"panel.art9WithdrawCancel",busy:!!r(u).busy.consent,"fallback-focus":()=>a.value,onConfirm:V[16]||(V[16]=$=>X()),onCancel:V[17]||(V[17]=$=>A.value=null)},null,8,["busy","fallback-focus"])):N("",!0),A.value==="erase"?(h(),Ne(No,{key:4,title:"panel.eraseTitle",explain:"panel.eraseExplain",confirm:"panel.eraseConfirm",cancel:"panel.eraseKeep",danger:"",busy:!!r(u).busy.erase,"fallback-focus":()=>a.value,onConfirm:V[18]||(V[18]=$=>X()),onCancel:V[19]||(V[19]=$=>A.value=null)},null,8,["busy","fallback-focus"])):N("",!0)],8,Zh)):N("",!0)}});function Eg(e){const t=new AbortController,n={signal:t.signal},o=gt({target:e.target,category:"",ruleId:"",rules:null,description:"",name:"",email:"",goodFaith:!1,captcha:e.captcha?"loading":"off",token:null,resetSignal:0,sending:!1,failure:null,receipt:null,statusLink:null});let s=!1;const i=()=>o.category!==gu,a=()=>lt(et(o.description));function l(){const u=a();return!o.sending&&o.receipt===null&&o.target!==null&&o.category!==""&&u>0&&u<=ho&<(o.name.trim())<=$r&&o.goodFaith&&(o.captcha==="off"||o.captcha==="ready"&&o.token!==null)}function c(){s||(s=!0,e.client.legal.current({kind:"rules",locale:e.lang},n).then(u=>{o.rules=u.ok?go(u.value.bodyJson):[]}))}async function m(){if(!l()||!o.target||o.category==="")return;o.sending=!0,o.failure=null;const u={category:o.category,target:o.target,description:et(o.description),confirmations:[au]};o.category==="rules"&&o.ruleId!==""&&(u.ruleId=o.ruleId);const _=o.name.trim(),T=o.email.trim();i()&&(_!==""||T!=="")&&(u.notifier={name:_||null,email:T||null,locale:e.lang}),o.token!==null&&(u.turnstileToken=o.token),o.token=null;const S=await e.client.notices.submit(u,n);if(o.sending=!1,S.ok){o.receipt=S.value,o.statusLink=td(e.noticesPath,S.value.receipt),e.onSubmitted?.({contactKept:S.value.contactKept});return}o.failure=S,o.captcha!=="off"&&(o.resetSignal+=1)}return{state:o,contactAllowed:i,canSubmit:l,descriptionLength:a,setCategory(u){o.category=u,u!=="rules"?o.ruleId="":c()},setToken(u){o.token=u,u!==null&&o.captcha==="loading"&&(o.captcha="ready")},setCaptcha(u){o.captcha!=="off"&&(o.captcha=u)},submit:m,dispose(){t.abort()}}}const Mg="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit";let zn=null;function Ng(e){const t=window;return t.turnstile?Promise.resolve(t.turnstile):zn||(zn=new Promise((n,o)=>{const s=document.createElement("script");s.src=Mg,s.async=!0,s.defer=!0,e&&(s.nonce=e),s.onload=()=>t.turnstile?n(t.turnstile):o(new Error("[blogmcp-community] the Turnstile script loaded without its API")),s.onerror=()=>o(new Error("[blogmcp-community] the Turnstile script failed to load")),document.head.appendChild(s)}).catch(n=>{throw zn=null,n}),zn)}async function Pg(e,t){const n=await Ng(t.nonce),o=n.render(e,{sitekey:t.siteKey,action:ru,language:t.language,appearance:"interaction-only",callback:i=>t.onToken(i),"expired-callback":()=>t.onToken(null),"error-callback":()=>t.onToken(null),"timeout-callback":()=>t.onToken(null)});let s=!1;return{reset(){s||(t.onToken(null),n.reset(o))},remove(){s||(s=!0,n.remove(o))}}}const Rg=["lang","aria-labelledby"],jg=["id"],zg={key:0},Lg=["href"],Dg=["value","aria-label"],Ug={key:2,class:"bcm-note"},Fg={class:"bcm-field"},qg={class:"bcm-label"},Hg={class:"bcm-choices"},Vg=["name","value","checked","onChange"],Bg={key:0,class:"bcm-field"},Kg=["for"],Wg=["id"],Yg=["value"],Gg={class:"bcm-field"},Zg=["for"],Jg=["id","aria-describedby","aria-invalid"],Xg=["id"],Qg={key:1,class:"bcm-fieldset"},ey={class:"bcm-hint"},ty={class:"bcm-field"},ny=["for"],sy=["id","maxlength"],oy={class:"bcm-field"},iy=["for"],ry=["id","aria-invalid"],ay={key:2,class:"bcm-note"},ly={key:3,class:"bcm-turnstile"},cy={key:0,class:"bcm-error",role:"alert"},uy={class:"bcm-check"},dy={key:4,class:"bcm-error",role:"alert"},fy={class:"bcm-row"},py=["disabled"],my=["lang","aria-labelledby"],hy=["id"],by=["href"],gy=Me({inheritAttrs:!1,__name:"NoticeFormView",props:{apiBase:{},siteBase:{},lang:{},turnstileSiteKey:{},target:{},articleId:{},routes:{},transport:{type:Function}},setup(e){const t=e,n=po(),o=ve(Ss(t.lang,Is())),{t:s}=Mo(o),i=ct("bcm-notice"),a=ve(null),l=ve(null);function c(){const D=_s(t.target);return D||(t.articleId?_s({articleId:t.articleId}):typeof location>"u"?null:wd(location.hash))}const m=To(t.siteBase),u=U(()=>Ao(Co(t.routes),null,m??"")),_=Ks(null),T=m===null?null:$o(t.apiBase,t.transport,m),S=c(),A=!!T&&!S;A&&fn("notice-target","[blogmcp-community] <blogmcp-notice-form> has no target (a target, an article-id or the report link’s #c=…&s= fragment): it shows where a report starts instead of the form"),T&&S&&(_.value=Eg({client:T,lang:o.value,target:S,captcha:!!t.turnstileSiteKey,noticesPath:u.value.noticesPath,onSubmitted:D=>n?.dispatchEvent(new CustomEvent("bcm-notice-submitted",{detail:D,bubbles:!0,composed:!0}))}));const v=U(()=>_.value?.state??null),w=U(()=>v.value?.target?_d(v.value.target):null),C=U(()=>w.value==="message"?s("notice.targetMessage"):w.value==="article"?s("notice.targetArticle"):s("notice.targetProfile")),E=D=>`category.${D}`,j=U(()=>{const D=v.value?.failure;if(!D)return"";const W=Re(D,o.value);return s(W.key,W.params)}),b=U(()=>{const D=v.value?.statusLink;return D&&typeof location<"u"?`${location.origin}${D}`:D??""});let I=null,q=null,G=!1;return Cn(async()=>{const D=_.value;if(!(!D||!t.turnstileSiteKey||!n)){q=document.createElement("div"),q.slot="turnstile",n.appendChild(q);try{const W=n.nonce||n.getAttribute("nonce")||void 0,Q=await Pg(q,{siteKey:t.turnstileSiteKey,language:o.value,onToken:ae=>D.setToken(ae),nonce:W});if(G){Q.remove();return}I=Q,D.setCaptcha("ready")}catch{D.setCaptcha("unavailable")}}}),Xe(()=>v.value?.resetSignal,(D,W)=>{D!==void 0&&W!==void 0&&D!==W&&I?.reset()}),Xe(()=>v.value?.receipt,D=>{D&&(I?.remove(),I=null,We(()=>l.value?.focus()))}),sn(()=>{G=!0,I?.remove(),I=null,q?.remove(),q=null,_.value?.dispose()}),(D,W)=>_.value&&v.value?(h(),g("section",{key:0,class:"bcm bcm-notice",lang:o.value,"aria-labelledby":`${r(i)}-title`},[f("h2",{id:`${r(i)}-title`,ref_key:"heading",ref:a,tabindex:"-1"},p(r(s)("notice.title")),9,jg),v.value.receipt?(h(),g("div",{key:0,ref_key:"done",ref:l,class:"bcm-receipt",role:"status",tabindex:"-1"},[f("p",null,p(r(s)("notice.done")),1),f("p",null,p(r(s)("notice.receiptLede")),1),v.value.statusLink?(h(),g("p",zg,[f("a",{href:v.value.statusLink},p(r(s)("notice.statusLink")),9,Lg)])):N("",!0),b.value?(h(),g("input",{key:1,class:"bcm-input",readonly:"",value:b.value,"aria-label":r(s)("notice.statusLink"),onFocus:W[0]||(W[0]=Q=>Q.target.select())},null,40,Dg)):N("",!0),v.value.receipt.contactKept?N("",!0):(h(),g("p",Ug,p(r(s)("notice.noContactKept")),1))],512)):(h(),g("form",{key:1,class:"bcm-form",novalidate:"",onSubmit:W[6]||(W[6]=Pt(Q=>_.value.submit(),["prevent"]))},[f("p",null,p(r(s)("notice.lede")),1),f("div",Fg,[f("span",qg,p(r(s)("notice.target")),1),f("span",null,p(C.value),1)]),f("fieldset",Hg,[f("legend",null,p(r(s)("notice.category")),1),(h(!0),g(K,null,ke(r(Nr),Q=>(h(),g("label",{key:Q,class:"bcm-choice"},[f("input",{type:"radio",name:`${r(i)}-category`,value:Q,checked:v.value.category===Q,onChange:ae=>_.value.setCategory(Q)},null,40,Vg),f("span",null,p(r(s)(E(Q))),1)]))),128))]),v.value.category==="rules"&&v.value.rules&&v.value.rules.length?(h(),g("div",Bg,[f("label",{for:`${r(i)}-rule`},p(r(s)("notice.rule")),9,Kg),_e(f("select",{id:`${r(i)}-rule`,"onUpdate:modelValue":W[1]||(W[1]=Q=>v.value.ruleId=Q),class:"bcm-input"},[W[7]||(W[7]=f("option",{value:""},null,-1)),(h(!0),g(K,null,ke(v.value.rules,Q=>(h(),g("option",{key:Q.id,value:Q.id},p(Q.title),9,Yg))),128))],8,Wg),[[gr,v.value.ruleId]])])):N("",!0),f("div",Gg,[f("label",{for:`${r(i)}-description`},p(r(s)("notice.description")),9,Zg),_e(f("textarea",{id:`${r(i)}-description`,"onUpdate:modelValue":W[2]||(W[2]=Q=>v.value.description=Q),class:"bcm-input bcm-textarea",rows:"5","aria-describedby":`${r(i)}-description-hint`,"aria-invalid":_.value.descriptionLength()>r(ho)},null,8,Jg),[[Qe,v.value.description]]),f("p",{id:`${r(i)}-description-hint`,class:"bcm-hint"},p(r(s)("notice.descriptionHint"))+" "+p(r(s)("notice.counter",{length:_.value.descriptionLength(),max:r(ho)})),9,Xg)]),_.value.contactAllowed()?(h(),g("fieldset",Qg,[f("legend",null,p(r(s)("notice.contactTitle")),1),f("p",ey,p(r(s)("notice.contactHint")),1),f("div",ty,[f("label",{for:`${r(i)}-name`},p(r(s)("notice.name")),9,ny),_e(f("input",{id:`${r(i)}-name`,"onUpdate:modelValue":W[3]||(W[3]=Q=>v.value.name=Q),class:"bcm-input",autocomplete:"name",maxlength:r($r)},null,8,sy),[[Qe,v.value.name]])]),f("div",oy,[f("label",{for:`${r(i)}-email`},p(r(s)("notice.email")),9,iy),_e(f("input",{id:`${r(i)}-email`,"onUpdate:modelValue":W[4]||(W[4]=Q=>v.value.email=Q),class:"bcm-input",type:"email",autocomplete:"email","aria-invalid":!!v.value.failure?.fields?.includes("notifier.email")},null,8,ry),[[Qe,v.value.email]])])])):(h(),g("p",ay,p(r(s)("notice.childAtRisk")),1)),v.value.captcha!=="off"?(h(),g("div",ly,[Ml(D.$slots,"turnstile"),v.value.captcha==="unavailable"?(h(),g("p",cy,p(r(s)("notice.captchaUnavailable")),1)):N("",!0)])):N("",!0),f("label",uy,[_e(f("input",{"onUpdate:modelValue":W[5]||(W[5]=Q=>v.value.goodFaith=Q),type:"checkbox"},null,512),[[mo,v.value.goodFaith]]),f("span",null,p(r(s)("confirm.good_faith")),1)]),j.value?(h(),g("p",dy,p(j.value),1)):N("",!0),f("div",fy,[W[8]||(W[8]=f("span",{class:"bcm-spacer"},null,-1)),f("button",{type:"submit",class:"bcm-btn bcm-primary",disabled:!_.value.canSubmit()},p(v.value.sending?r(s)("notice.sending"):r(s)("notice.submit")),9,py)])],32))],8,Rg)):r(A)?(h(),g("section",{key:1,class:"bcm bcm-notice",lang:o.value,"aria-labelledby":`${r(i)}-title`},[f("h2",{id:`${r(i)}-title`},p(r(s)("notice.title")),9,hy),f("p",null,p(r(s)("notice.noTarget")),1),f("p",null,[f("a",{href:u.value.rulesPath},p(r(s)("onboarding.rulesTitle")),9,by)])],8,my)):N("",!0)}}),yy=':host{all:initial;display:block;--bcm-bg: #ffffff;--bcm-fg: #1d1f23;--bcm-muted: #5f6672;--bcm-line: #dfe2e7;--bcm-soft: #f4f5f7;--bcm-accent: #2457d6;--bcm-accent-fg: #ffffff;--bcm-danger: #b42318;--bcm-ok: #1f7a3f;--bcm-warn-bg: #fff6d6;--bcm-shadow: 0 8px 28px rgba(16, 24, 40, .18);--bcm-z: 20;color-scheme:light dark;font:var(--bcm-font-size, 16px) / 1.5 var(--bcm-font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);color:var(--bcm-fg)}:host([hidden]){display:none}@media(prefers-color-scheme:dark){:host{--bcm-bg: #1c1f24;--bcm-fg: #eceef1;--bcm-muted: #a4abb6;--bcm-line: #343943;--bcm-soft: #262a31;--bcm-accent: #6d93ff;--bcm-accent-fg: #0d1117;--bcm-danger: #ff8a7a;--bcm-ok: #6fd08e;--bcm-warn-bg: #3a3420;--bcm-shadow: 0 8px 28px rgba(0, 0, 0, .5)}}*{box-sizing:border-box}h2,h3,h4{margin:0;font-weight:650;line-height:1.3}h2{font-size:1.25em}h3{font-size:1.05em}h4{font-size:1em}p{margin:0}ul,ol{margin:0;padding:0}a{color:var(--bcm-accent)}.bcm{background:var(--bcm-bg);color:var(--bcm-fg);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:16px;max-width:100%;overflow-wrap:anywhere}.bcm-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.bcm-btn{font:inherit;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:6px 14px;border-radius:8px;border:1px solid var(--bcm-line);background:var(--bcm-bg);color:var(--bcm-fg);cursor:pointer;text-decoration:none}.bcm-btn:hover:not(:disabled){background:var(--bcm-soft)}.bcm-btn:disabled{opacity:.55;cursor:default}.bcm-primary{background:var(--bcm-accent);border-color:var(--bcm-accent);color:var(--bcm-accent-fg)}.bcm-primary:hover:not(:disabled){background:var(--bcm-accent);filter:brightness(1.08)}.bcm-danger{color:var(--bcm-danger)}.bcm-primary.bcm-danger{background:var(--bcm-danger);border-color:var(--bcm-danger);color:var(--bcm-bg)}.bcm-small{min-height:30px;padding:2px 10px;font-size:.875em}.bcm-link{font:inherit;border:0;background:none;padding:0;color:var(--bcm-accent);cursor:pointer;text-align:left;text-decoration:underline}.bcm-quiet{font:inherit;border:0;background:none;padding:4px 6px;color:var(--bcm-muted);cursor:pointer;border-radius:6px;min-height:30px}.bcm-quiet:hover:not(:disabled){background:var(--bcm-soft);color:var(--bcm-fg)}.bcm-btn:focus-visible,.bcm-link:focus-visible,.bcm-quiet:focus-visible,.bcm-input:focus-visible,.bcm-react:focus-visible,a:focus-visible,.bcm-choice input:focus-visible+span{outline:2px solid var(--bcm-accent);outline-offset:2px}.bcm-input{font:inherit;width:100%;padding:8px 10px;border-radius:8px;border:1px solid var(--bcm-line);background:var(--bcm-bg);color:var(--bcm-fg)}.bcm-input[aria-invalid=true]{border-color:var(--bcm-danger);border-width:2px}.bcm-textarea{resize:vertical;min-height:96px}.bcm-field{display:flex;flex-direction:column;gap:4px}.bcm-field>label,.bcm-label{font-weight:600}.bcm-check{display:flex;gap:8px;align-items:flex-start}.bcm-check input{margin-top:.3em;width:18px;height:18px;flex:none}.bcm-choices{display:flex;flex-wrap:wrap;gap:8px;border:0;margin:0;padding:0;min-width:0}.bcm-choices legend,.bcm-fieldset legend{font-weight:600;padding:0;margin-bottom:6px}.bcm-fieldset{border:0;margin:0;padding:0;min-width:0;display:flex;flex-direction:column;gap:8px}.bcm-choice{position:relative;display:inline-flex}.bcm-choice input{position:absolute;opacity:0;width:1px;height:1px}.bcm-choice span{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;min-width:40px;padding:6px 12px;border:1px solid var(--bcm-line);border-radius:999px;cursor:pointer;background:var(--bcm-bg)}.bcm-choice input:checked+span{border:2px solid var(--bcm-accent);font-weight:650}.bcm-choice input:checked+span:before{content:"✓"}.bcm-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.bcm-spacer{flex:1}.bcm-full{flex-basis:100%}.bcm-muted,.bcm-hint{color:var(--bcm-muted);font-size:.875em}.bcm-error{color:var(--bcm-danger)}.bcm-ok{color:var(--bcm-ok)}.bcm-note{background:var(--bcm-soft);border-radius:8px;padding:8px 12px;font-size:.9375em}.bcm-warning{background:var(--bcm-warn-bg);border-radius:8px;padding:8px 12px;font-size:.9375em}.bcm-banner{background:var(--bcm-warn-bg);border-radius:10px;padding:10px 12px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.bcm-text{white-space:pre-wrap;overflow-wrap:anywhere}.bcm-facts{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;background:var(--bcm-soft);border-radius:8px;padding:10px 12px}.bcm-badge{display:inline-flex;align-items:center;gap:4px;border:1px solid currentColor;border-radius:999px;padding:0 8px;font-size:.8125em;line-height:1.6}.bcm-badge-team{color:var(--bcm-accent);font-weight:650}.bcm-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.bcm-count{color:var(--bcm-muted)}.bcm-thread,.bcm-replies{list-style:none;display:flex;flex-direction:column;gap:12px}.bcm-replies{margin-top:12px;padding-left:20px;border-left:2px solid var(--bcm-line)}.bcm-msg{display:flex;gap:10px;align-items:flex-start}.bcm-msg-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}.bcm-msg-pending{opacity:.65}.bcm-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;font-size:.875em}.bcm-author{font-weight:650}.bcm-handle,.bcm-time{color:var(--bcm-muted)}.bcm-handle:before{content:"@"}.bcm-placeholder{color:var(--bcm-muted);font-style:italic}.bcm-own-state{border-left:3px solid var(--bcm-line);padding-left:10px;display:flex;flex-direction:column;gap:4px}.bcm-actions{display:flex;align-items:center;flex-wrap:wrap;gap:2px 6px}.bcm-avatar{flex:none;width:36px;height:36px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:var(--bcm-soft);font-size:20px;line-height:1;-webkit-user-select:none;user-select:none}.bcm-avatar-initial{color:#fff;font-size:16px;font-weight:650}.bcm-reactions{display:flex;flex-wrap:wrap;gap:6px}.bcm-react{font:inherit;display:inline-flex;align-items:center;gap:4px;min-height:32px;padding:2px 10px;border-radius:999px;border:1px solid var(--bcm-line);background:var(--bcm-bg);color:var(--bcm-fg);cursor:pointer}button.bcm-react:hover:not(:disabled){background:var(--bcm-soft)}.bcm-react[aria-pressed=true]{border:2px solid var(--bcm-accent);font-weight:700}span.bcm-react{cursor:default}.bcm-menu{position:relative;display:inline-flex}.bcm-menu-list{position:absolute;right:0;top:calc(100% + 4px);z-index:var(--bcm-z);min-width:200px;display:flex;flex-direction:column;padding:4px;background:var(--bcm-bg);border:1px solid var(--bcm-line);border-radius:10px;box-shadow:var(--bcm-shadow)}.bcm-menu-list button,.bcm-menu-list a{font:inherit;text-align:left;border:0;background:none;color:var(--bcm-fg);padding:8px 10px;border-radius:6px;cursor:pointer;text-decoration:none;min-height:36px}.bcm-menu-list button:hover,.bcm-menu-list a:hover{background:var(--bcm-soft)}.bcm-composer{display:flex;flex-direction:column;gap:8px}.bcm-composer-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.bcm-counter{color:var(--bcm-muted);font-size:.8125em;font-variant-numeric:tabular-nums}.bcm-counter-over{color:var(--bcm-danger);font-weight:650}.bcm-confirm{border:2px solid var(--bcm-accent);border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:10px}.bcm-card{border:1px solid var(--bcm-line);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:12px}.bcm-steps{color:var(--bcm-muted);font-size:.875em}.bcm-rules{list-style:none;display:flex;flex-direction:column;gap:8px}.bcm-rules li{display:flex;flex-direction:column;gap:2px}.bcm-consent{max-height:260px;overflow:auto;border:1px solid var(--bcm-line);border-radius:8px;padding:10px 12px;display:flex;flex-direction:column;gap:8px}.bcm-form{display:flex;flex-direction:column;gap:14px}.bcm-section{display:flex;flex-direction:column;gap:10px}.bcm-list{list-style:none;display:flex;flex-direction:column;gap:8px}.bcm-list>li{border:1px solid var(--bcm-line);border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:4px}.bcm-unread{border-left:4px solid var(--bcm-accent)!important}.bcm-dl{display:grid;grid-template-columns:minmax(120px,max-content) 1fr;gap:6px 14px;margin:0}.bcm-dl dt{font-weight:600}.bcm-dl dd{margin:0}.bcm-receipt{display:flex;flex-direction:column;gap:8px}.bcm-turnstile{min-height:0}.bcm-dialog{border:1px solid var(--bcm-line);border-radius:14px;padding:0;width:min(520px,calc(100vw - 32px));max-height:calc(100vh - 32px);background:var(--bcm-bg);color:var(--bcm-fg);box-shadow:var(--bcm-shadow)}.bcm-dialog::backdrop{background:#0a0c1073}.bcm-dialog-body{padding:16px;display:flex;flex-direction:column;gap:12px}@media(max-width:480px){.bcm{padding:12px;border-radius:0}.bcm-replies{padding-left:12px}.bcm-avatar{width:30px;height:30px;font-size:17px}.bcm-dl{grid-template-columns:1fr}.bcm-dialog{width:100vw;max-width:100vw;margin:auto 0 0;border-radius:16px 16px 0 0}}@media(prefers-reduced-motion:no-preference){.bcm-dialog[open]{animation:bcm-in .14s ease-out}@keyframes bcm-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}}';function vy(){const e=globalThis,t={__VUE_OPTIONS_API__:!0,__VUE_PROD_DEVTOOLS__:!1,__VUE_PROD_HYDRATION_MISMATCH_DETAILS__:!1};for(const[n,o]of Object.entries(t))typeof e[n]>"u"&&(e[n]=o)}const _a="blogmcp-discussion",ka="blogmcp-notice-form",wa="blogmcp-my-community";function _y(e){const t=e.nonce;return typeof t=="string"&&t!==""?t:e.getAttribute("nonce")||void 0}function ky(e,t){const n=zc(e);return class extends n{connectedCallback(){const s=_y(this),i=t||s;i&&!s&&(this.nonce=i);const a=this.shadowRoot;if(a&&!a.querySelector("style[data-bcm]")){const l=document.createElement("style");l.setAttribute("data-bcm",""),i&&l.setAttribute("nonce",i),l.textContent=yy,a.prepend(l)}super.connectedCallback()}}}function Lo(e,t,n){typeof customElements>"u"||customElements.get(e)||(vy(),customElements.define(e,ky(t,n)))}function xa(e={}){Lo(e.tag??_a,Jm,e.nonce)}function Sa(e={}){Lo(e.tag??ka,gy,e.nonce)}function Ia(e={}){Lo(e.tag??wa,Og,e.nonce)}function Ca(e={}){xa({tag:e.tags?.discussion,nonce:e.nonce}),Sa({tag:e.tags?.noticeForm,nonce:e.nonce}),Ia({tag:e.tags?.myCommunity,nonce:e.nonce})}function Do(e,t){for(const[n,o]of Object.entries(t))o!=null&&o!==""&&e.setAttribute(n,String(o))}function Uo(e,t){return t.transport&&(e.transport=t.transport),(t.container??document.body).appendChild(e),()=>e.remove()}function wy(e){if(typeof document>"u")return()=>{};xa({nonce:e.nonce});const t=document.createElement(_a);return Do(t,{"article-id":e.articleId,"api-base":e.apiBase,"site-base":e.siteBase,lang:e.lang,"sign-in-href":e.signInHref,routes:e.routes?JSON.stringify(e.routes):void 0,"poll-ms":e.pollMs,nonce:e.nonce}),Uo(t,e)}function xy(e){if(typeof document>"u")return()=>{};Sa({nonce:e.nonce});const t=document.createElement(ka);return Do(t,{"api-base":e.apiBase,"site-base":e.siteBase,lang:e.lang,"turnstile-site-key":e.turnstileSiteKey,target:e.target?JSON.stringify(e.target):void 0,"article-id":e.articleId,routes:e.routes?JSON.stringify(e.routes):void 0,nonce:e.nonce}),Uo(t,e)}function Sy(e={}){if(typeof document>"u")return()=>{};Ia({nonce:e.nonce});const t=document.createElement(wa);return Do(t,{"api-base":e.apiBase,"site-base":e.siteBase,lang:e.lang,"decision-id":e.decisionId,routes:e.routes?JSON.stringify(e.routes):void 0,"sign-in-href":e.signInHref,nonce:e.nonce}),Uo(t,e)}const Iy="0.1.0",Cy=typeof document<"u"?document.currentScript:null;return Ca({nonce:Cy?.nonce||void 0}),zt.VERSION=Iy,zt.defineCommunityElements=Ca,zt.mountDiscussion=wy,zt.mountMyCommunity=Sy,zt.mountNoticeForm=xy,Object.defineProperty(zt,Symbol.toStringTag,{value:"Module"}),zt})({});
|