@forsion/extend 0.10.8 → 0.10.11

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/dist/main.js CHANGED
@@ -1,40 +1,40 @@
1
- "use strict";var __fxExtend=(()=>{var ri=Object.defineProperty;var lg=Object.getOwnPropertyDescriptor;var cg=Object.getOwnPropertyNames;var dg=Object.prototype.hasOwnProperty;var ug=(e,t)=>{for(var o in t)ri(e,o,{get:t[o],enumerable:!0})},pg=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of cg(t))!dg.call(e,a)&&a!==o&&ri(e,a,{get:()=>t[a],enumerable:!(r=lg(t,a))||r.enumerable});return e};var fg=e=>pg(ri({},"__esModule",{value:!0}),e);var Jk={};ug(Jk,{dispose:()=>Km});function mg(e,t){this.v=e,this.k=t}function jl(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=Array(t);o<t;o++)r[o]=e[o];return r}function gg(e){if(Array.isArray(e))return e}function hg(e,t){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var r,a,i,s,l=[],c=!0,d=!1;try{if(i=(o=o.call(e)).next,t===0){if(Object(o)!==o)return;c=!1}else for(;!(c=(r=i.call(o)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(p){d=!0,a=p}finally{try{if(!c&&o.return!=null&&(s=o.return(),Object(s)!==s))return}finally{if(d)throw a}}return l}}function bg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vg(e,t){return gg(e)||hg(e,t)||yg(e,t)||bg()}function yg(e,t){if(e){if(typeof e=="string")return jl(e,t);var o={}.toString.call(e).slice(8,-1);return o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set"?Array.from(e):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?jl(e,t):void 0}}function jr(e){var t,o;function r(i,s){try{var l=e[i](s),c=l.value,d=c instanceof mg;Promise.resolve(d?c.v:c).then(function(p){if(d){var u=i==="return"&&c.k?i:"next";if(!c.k||p.done)return r(u,p);p=e[u](p).value}a(!!l.done,p)},function(p){r("throw",p)})}catch(p){a(2,p)}}function a(i,s){i===2?t.reject(s):t.resolve({value:s,done:i}),(t=t.next)?r(t.key,t.arg):o=null}this._invoke=function(i,s){return new Promise(function(l,c){var d={key:i,arg:s,resolve:l,reject:c,next:null};o?o=o.next=d:(t=o=d,r(i,s))})},typeof e.return!="function"&&(this.return=void 0)}jr.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},jr.prototype.next=function(e){return this._invoke("next",e)},jr.prototype.throw=function(e){return this._invoke("throw",e)},jr.prototype.return=function(e){return this._invoke("return",e)};var sc=Object.entries,Gl=Object.setPrototypeOf,xg=Object.isFrozen,kg=Object.getPrototypeOf,wg=Object.getOwnPropertyDescriptor,Pt=Object.freeze,Mt=Object.seal,Do=Object.create,lc=typeof Reflect<"u"&&Reflect,ui=lc.apply,pi=lc.construct;Pt||(Pt=function(t){return t});Mt||(Mt=function(t){return t});ui||(ui=function(t,o){for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;i<r;i++)a[i-2]=arguments[i];return t.apply(o,a)});pi||(pi=function(t){for(var o=arguments.length,r=new Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];return new t(...r)});var so=Tt(Array.prototype.forEach);Array.prototype.indexOf;var zg=Tt(Array.prototype.lastIndexOf),Jl=Tt(Array.prototype.pop),or=Tt(Array.prototype.push);Array.prototype.slice;var Sg=Tt(Array.prototype.splice),No=Array.isArray,ir=Tt(String.prototype.toLowerCase),ai=Tt(String.prototype.toString),Xl=Tt(String.prototype.match),rr=Tt(String.prototype.replace),Kl=Tt(String.prototype.indexOf),Cg=Tt(String.prototype.trim),_g=Tt(Number.prototype.toString),Ag=Tt(Boolean.prototype.toString),Yl=typeof BigInt>"u"?null:Tt(BigInt.prototype.toString),Zl=typeof Symbol>"u"?null:Tt(Symbol.prototype.toString),on=Tt(Object.prototype.hasOwnProperty),ar=Tt(Object.prototype.toString),Wt=Tt(RegExp.prototype.test),Gn=Tg(TypeError);function Tt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var o=arguments.length,r=new Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];return ui(e,t,r)}}function Tg(e){return function(){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return pi(e,o)}}function We(e,t){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ir;if(Gl&&Gl(e,null),!No(t))return e;let r=t.length;for(;r--;){let a=t[r];if(typeof a=="string"){let i=o(a);i!==a&&(xg(t)||(t[r]=i),a=i)}e[a]=!0}return e}function Eg(e){for(let t=0;t<e.length;t++)on(e,t)||(e[t]=null);return e}function cn(e){let t=Do(null);for(let r of sc(e)){var o=vg(r,2);let a=o[0],i=o[1];on(e,a)&&(No(i)?t[a]=Eg(i):i&&typeof i=="object"&&i.constructor===Object?t[a]=cn(i):t[a]=i)}return t}function Pg(e){switch(typeof e){case"string":return e;case"number":return _g(e);case"boolean":return Ag(e);case"bigint":return Yl?Yl(e):"0";case"symbol":return Zl?Zl(e):"Symbol()";case"undefined":return ar(e);case"function":case"object":{if(e===null)return ar(e);let t=e,o=bn(t,"toString");if(typeof o=="function"){let r=o(t);return typeof r=="string"?r:ar(r)}return ar(e)}default:return ar(e)}}function bn(e,t){for(;e!==null;){let r=wg(e,t);if(r){if(r.get)return Tt(r.get);if(typeof r.value=="function")return Tt(r.value)}e=kg(e)}function o(){return null}return o}function Ig(e){try{return Wt(e,""),!0}catch{return!1}}var Ql=Pt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ii=Pt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),si=Pt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Rg=Pt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),li=Pt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Mg=Pt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ec=Pt(["#text"]),tc=Pt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ci=Pt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),nc=Pt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Gr=Pt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Lg=Mt(/{{[\w\W]*|^[\w\W]*}}/g),Dg=Mt(/<%[\w\W]*|^[\w\W]*%>/g),Ng=Mt(/\${[\w\W]*/g),Og=Mt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Fg=Mt(/^aria-[\-\w]+$/),oc=Mt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Bg=Mt(/^(?:\w+script|data):/i),$g=Mt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ug=Mt(/^html$/i),Hg=Mt(/^[a-z][.\w]*(-[.\w]+)+$/i),rc=Mt(/<[/\w!]/g),ac=Mt(/<[/\w]/g),qg=Mt(/<\/no(script|embed|frames)/i),Wg=Mt(/\/>/i),ln={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},cc=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Vg=Pt(We({},cc)),jg=(function(){let e={};return so(cc,t=>{e[t]=Mt(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),Pt(e)})(),Gg=function(){return typeof window>"u"?null:window},Jg=function(t,o){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null,a="data-tt-policy-suffix";o&&o.hasAttribute(a)&&(r=o.getAttribute(a));let i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},ic=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Jn=function(t,o,r,a){return on(t,o)&&No(t[o])?We(a.base?cn(a.base):{},t[o],a.transform):r},di=function(t,o,r){let a=on(t,o)?t[o]:void 0;return a&&typeof a=="object"?cn(a):r()};function dc(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Gg(),t=Y=>dc(Y);if(t.version="3.4.16",t.removed=[],!e||!e.document||e.document.nodeType!==ln.document||!e.Element)return t.isSupported=!1,t;let o=e.document,r=o,a=r.currentScript;e.DocumentFragment;let i=e.HTMLTemplateElement,s=e.Node,l=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let d=e.DOMParser,p=e.trustedTypes,u=l.prototype,f=bn(u,"cloneNode"),m=bn(u,"remove"),g=bn(u,"removeAttributeNode"),h=bn(u,"nextSibling"),v=bn(u,"childNodes"),b=bn(u,"parentNode"),x=bn(u,"shadowRoot"),w=bn(u,"attributes"),S=s&&s.prototype?bn(s.prototype,"nodeType"):null,T=s&&s.prototype?bn(s.prototype,"nodeName"):null,F=s&&s.prototype?bn(s.prototype,"ownerDocument"):null,B=function(y){return S?S(y):y.nodeType},N=function(y){return T?T(y):y.nodeName};if(typeof i=="function"){let Y=o.createElement("template");Y.content&&Y.content.ownerDocument&&(o=Y.content.ownerDocument)}let j,_="",L,$=!1,P=0,K=function(){if(P>0)throw Gn('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},z=function(y){K(),P++;try{return j.createHTML(y)}finally{P--}},A=function(y){K(),P++;try{return j.createScriptURL(y)}finally{P--}},R=function(){return $||(L=Jg(p,a),$=!0),L},X=o,Q=X.implementation,H=X.createNodeIterator,te=X.createDocumentFragment,pe=X.getElementsByTagName,Ue=r.importNode,me=ic();t.isSupported=typeof sc=="function"&&typeof b=="function"&&Q&&Q.createHTMLDocument!==void 0;let Ie=Lg,Ze=Dg,be=Ng,Qe=Og,St=Fg,G=Bg,ge=$g,ye=Hg,Me=oc,he=null,rt=We({},[...Ql,...ii,...si,...li,...ec]),Ce=null,lt=We({},[...tc,...ci,...nc,...Gr]),st=Object.seal(Do(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Jt=null,$t=null,Ut=Object.seal(Do(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ut=!0,ie=!0,_e=!1,gt=!0,ot=!1,Ve=!0,Rt=!1,Xt=!1,pt=null,nn=null,Ke=!1,et=!1,ue=!1,je=!1,Ye=!0,an=!1,ht="user-content-",O=!0,ce=!1,Ae={},tt=null,Ht=We({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),Ct=null,ft=We({},["audio","video","img","source","image","track"]),yn=null,Re=We({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),bt="http://www.w3.org/1998/Math/MathML",qt="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml",Ot=Je,gn=!1,ro=null,ei=We({},[bt,qt,Je],ai),Fr=Pt(["mi","mo","mn","ms","mtext"]),k=We({},Fr),I=Pt(["annotation-xml"]),D=We({},I),re=We({},["title","style","font","a","script"]),Z=null,xe=["application/xhtml+xml","text/html"],Le="text/html",fe=null,Be=null,Br=o.createElement("form"),ao=function(y){return y instanceof RegExp||y instanceof Function},Io=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Be&&Be===y)return;(!y||typeof y!="object")&&(y={}),y=cn(y),Z=xe.indexOf(y.PARSER_MEDIA_TYPE)===-1?Le:y.PARSER_MEDIA_TYPE,fe=Z==="application/xhtml+xml"?ai:ir,he=Jn(y,"ALLOWED_TAGS",rt,{transform:fe}),Ce=Jn(y,"ALLOWED_ATTR",lt,{transform:fe}),ro=Jn(y,"ALLOWED_NAMESPACES",ei,{transform:ai}),yn=Jn(y,"ADD_URI_SAFE_ATTR",Re,{transform:fe,base:Re}),Ct=Jn(y,"ADD_DATA_URI_TAGS",ft,{transform:fe,base:ft}),tt=Jn(y,"FORBID_CONTENTS",Ht,{transform:fe}),Jt=Jn(y,"FORBID_TAGS",cn({}),{transform:fe}),$t=Jn(y,"FORBID_ATTR",cn({}),{transform:fe}),Ae=on(y,"USE_PROFILES")?y.USE_PROFILES&&typeof y.USE_PROFILES=="object"?cn(y.USE_PROFILES):y.USE_PROFILES:!1,ut=y.ALLOW_ARIA_ATTR!==!1,ie=y.ALLOW_DATA_ATTR!==!1,_e=y.ALLOW_UNKNOWN_PROTOCOLS||!1,gt=y.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ot=y.SAFE_FOR_TEMPLATES||!1,Ve=y.SAFE_FOR_XML!==!1,Rt=y.WHOLE_DOCUMENT||!1,et=y.RETURN_DOM||!1,ue=y.RETURN_DOM_FRAGMENT||!1,je=y.RETURN_TRUSTED_TYPE||!1,Ke=y.FORCE_BODY||!1,Ye=y.SANITIZE_DOM!==!1,an=y.SANITIZE_NAMED_PROPS||!1,O=y.KEEP_CONTENT!==!1,ce=y.IN_PLACE||!1,Me=Ig(y.ALLOWED_URI_REGEXP)?y.ALLOWED_URI_REGEXP:oc,Ot=typeof y.NAMESPACE=="string"?y.NAMESPACE:Je,k=di(y,"MATHML_TEXT_INTEGRATION_POINTS",()=>We({},Fr)),D=di(y,"HTML_INTEGRATION_POINTS",()=>We({},I));let E=di(y,"CUSTOM_ELEMENT_HANDLING",()=>Do(null));if(st=Do(null),on(E,"tagNameCheck")&&ao(E.tagNameCheck)&&(st.tagNameCheck=E.tagNameCheck),on(E,"attributeNameCheck")&&ao(E.attributeNameCheck)&&(st.attributeNameCheck=E.attributeNameCheck),on(E,"allowCustomizedBuiltInElements")&&typeof E.allowCustomizedBuiltInElements=="boolean"&&(st.allowCustomizedBuiltInElements=E.allowCustomizedBuiltInElements),Mt(st),ot&&(ie=!1),ue&&(et=!0),Ae&&(he=We({},ec),Ce=Do(null),Ae.html===!0&&(We(he,Ql),We(Ce,tc)),Ae.svg===!0&&(We(he,ii),We(Ce,ci),We(Ce,Gr)),Ae.svgFilters===!0&&(We(he,si),We(Ce,ci),We(Ce,Gr)),Ae.mathMl===!0&&(We(he,li),We(Ce,nc),We(Ce,Gr))),Ut.tagCheck=null,Ut.attributeCheck=null,on(y,"ADD_TAGS")&&(typeof y.ADD_TAGS=="function"?Ut.tagCheck=y.ADD_TAGS:No(y.ADD_TAGS)&&(he===rt&&(he=cn(he)),We(he,y.ADD_TAGS,fe))),on(y,"ADD_ATTR")&&(typeof y.ADD_ATTR=="function"?Ut.attributeCheck=y.ADD_ATTR:No(y.ADD_ATTR)&&(Ce===lt&&(Ce=cn(Ce)),We(Ce,y.ADD_ATTR,fe))),on(y,"ADD_FORBID_CONTENTS")&&No(y.ADD_FORBID_CONTENTS)&&(tt===Ht&&(tt=cn(tt)),We(tt,y.ADD_FORBID_CONTENTS,fe)),O&&(he["#text"]=!0),Rt&&We(he,["html","head","body"]),he.table&&(We(he,["tbody"]),delete Jt.tbody),y.TRUSTED_TYPES_POLICY){if(typeof y.TRUSTED_TYPES_POLICY.createHTML!="function")throw Gn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof y.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Gn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let J=j;j=y.TRUSTED_TYPES_POLICY;try{_=z("")}catch(ne){throw j=J,ne}}else y.TRUSTED_TYPES_POLICY===null?(j=void 0,_=""):(j===void 0&&(j=R()),j&&typeof _=="string"&&(_=z("")));Pt&&Pt(y),Be=y},Vn=We({},[...ii,...si,...Rg]),Dl=We({},[...li,...Mg]),Ym=function(y,E,J){return E.namespaceURI===Je?y==="svg":E.namespaceURI===bt?y==="svg"&&(J==="annotation-xml"||k[J]):!!Vn[y]},Zm=function(y,E,J){return E.namespaceURI===Je?y==="math":E.namespaceURI===qt?y==="math"&&D[J]:!!Dl[y]},Qm=function(y,E,J){return E.namespaceURI===qt&&!D[J]||E.namespaceURI===bt&&!k[J]?!1:!Dl[y]&&(re[y]||!Vn[y])},eg=function(y){let E=b(y);(!E||!E.tagName)&&(E={namespaceURI:Ot,tagName:"template"});let J=ir(y.tagName),ne=ir(E.tagName);return ro[y.namespaceURI]?y.namespaceURI===qt?Ym(J,E,ne):y.namespaceURI===bt?Zm(J,E,ne):y.namespaceURI===Je?Qm(J,E,ne):!!(Z==="application/xhtml+xml"&&ro[y.namespaceURI]):!1},jn=function(y){or(t.removed,{element:y});try{b(y).removeChild(y)}catch{if(m(y),!b(y))throw Gn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Nl=function(y,E,J){try{g(y,E)}catch{try{y.removeAttribute(J)}catch{}}},$r=function(y){Ur(y);let E=v(y);if(E){let ne=[];so(E,we=>{or(ne,we)}),so(ne,we=>{try{m(we)}catch{}})}let J=w(y);if(J)for(let ne=J.length-1;ne>=0;--ne){let we=J[ne],Fe=we&&we.name;typeof Fe=="string"&&Nl(y,we,Fe)}},io=function(y,E,J){if(!J)try{J=E.getAttributeNode(y)}catch{J=null}or(t.removed,{attribute:J||null,from:E});try{J?g(E,J):E.removeAttribute(y)}catch{try{E.removeAttribute(y)}catch{}}if(y==="is")if(et||ue)try{jn(E)}catch{}else try{E.setAttribute(y,"")}catch{}},tg=function(y){let E=w(y);if(E)for(let J=E.length-1;J>=0;--J){let ne=E[J],we=ne&&ne.name;typeof we!="string"||Ce[fe(we)]||Nl(y,ne,we)}},Ur=function(y){let E=[y];for(;E.length>0;){let J=E.pop();B(J)===ln.element&&tg(J);let ne=v(J);if(ne)for(let we=ne.length-1;we>=0;--we)E.push(ne[we])}},Ol=function(y,E){return Ve?y==="patchsrc"?!0:y==="for"&&E!=="label"&&E!=="output":!1},ng=function(y){if(!Ve)return;let E=[y];for(;E.length>0;){let J=E.pop(),ne=B(J);if(ne===ln.processingInstruction||ne===ln.comment&&Wt(ac,J.data)){try{m(J)}catch{}continue}if(ne===ln.element){let Fe=J,He=fe(N(J));try{Fe.hasAttribute&&Fe.hasAttribute("patchsrc")&&Fe.removeAttribute("patchsrc"),Fe.hasAttribute&&Fe.hasAttribute("for")&&Ol("for",He)&&Fe.removeAttribute("for")}catch{}}let we=v(J);if(we)for(let Fe=we.length-1;Fe>=0;--Fe)E.push(we[Fe])}},Fl=function(y){let E=null,J=null;if(Ke)y="<remove></remove>"+y;else{let Fe=Xl(y,/^[\r\n\t ]+/);J=Fe&&Fe[0]}Z==="application/xhtml+xml"&&Ot===Je&&(y='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+y+"</body></html>");let ne=j?z(y):y;if(Ot===Je)try{E=new d().parseFromString(ne,Z)}catch{}if(!E||!E.documentElement){E=Q.createDocument(Ot,"template",null);try{E.documentElement.innerHTML=gn?_:ne}catch{}}let we=E.body||E.documentElement;return y&&J&&we.insertBefore(o.createTextNode(J),we.childNodes[0]||null),Ot===Je?pe.call(E,Rt?"html":"body")[0]:Rt?E.documentElement:we},Bl=function(y){let E=F?F(y):y.ownerDocument;return H.call(E||y,y,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Hr=function(y){return y=rr(y,Ie," "),y=rr(y,Ze," "),y=rr(y,be," "),y},ti=function(y){var E;y.normalize();let J=F?F(y):y.ownerDocument,ne=H.call(J||y,y,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),we=ne.nextNode();for(;we;)we.data=Hr(we.data),we=ne.nextNode();let Fe=(E=y.querySelectorAll)===null||E===void 0?void 0:E.call(y,"template");Fe&&so(Fe,He=>{Ro(He.content)&&ti(He.content)})},qr=function(y){let E=T?T(y):null;return typeof E!="string"||fe(E)!=="form"?!1:typeof y.nodeName!="string"||typeof y.textContent!="string"||typeof y.removeChild!="function"||y.attributes!==w(y)||typeof y.removeAttribute!="function"||typeof y.removeAttributeNode!="function"||typeof y.getAttributeNode!="function"||typeof y.setAttribute!="function"||typeof y.namespaceURI!="string"||typeof y.insertBefore!="function"||typeof y.hasChildNodes!="function"||y.nodeType!==S(y)||y.childNodes!==v(y)},Ro=function(y){if(!S||typeof y!="object"||y===null)return!1;try{return S(y)===ln.documentFragment}catch{return!1}},nr=function(y){if(!S||typeof y!="object"||y===null)return!1;try{return typeof S(y)=="number"}catch{return!1}};function Rn(Y,y,E){Y.length!==0&&so(Y,J=>{J.call(t,y,E,Be)})}let og=function(y,E){return!!(Ve&&y.hasChildNodes()&&!nr(y.firstElementChild)&&Wt(rc,y.textContent)&&Wt(rc,y.innerHTML)||Ve&&y.namespaceURI===Je&&Vg[E]&&(nr(y.firstElementChild)||typeof y.textContent=="string"&&Wt(jg[E],y.textContent))||y.nodeType===ln.processingInstruction||Ve&&y.nodeType===ln.comment&&Wt(ac,y.data))},Wr=function(y,E){if(y instanceof RegExp)return Wt(y,E);if(y instanceof Function){for(var J=arguments.length,ne=new Array(J>2?J-2:0),we=2;we<J;we++)ne[we-2]=arguments[we];return!!y(E,...ne)}return!1},rg=function(y,E,J){if(!Jt[E]&&ql(E)&&Wr(st.tagNameCheck,E))return!1;if(O&&!tt[E]){let ne=b(y),we=v(y);if(we&&ne){let Fe=we.length;for(let He=Fe-1;He>=0;--He){let xt=y===J?f(we[He],!0):we[He];ne.insertBefore(xt,h(y))}}}return jn(y),!0},$l=function(y,E,J,ne){return y.length===0?E:E===J||E===ne?cn(E):E},Mo=function(y,E){return y===E||b(y)!==null?!1:(ce&&Ur(y),!0)},Ul=function(y,E){if(Rn(me.beforeSanitizeElements,y,null),Mo(y,E))return!0;if(qr(y))return jn(y),!0;let J=fe(N(y));if(he=$l(me.uponSanitizeElement,he,rt,pt),Rn(me.uponSanitizeElement,y,{tagName:J,allowedTags:he}),Mo(y,E))return!0;if(og(y,J))return jn(y),!0;if(Jt[J]||!(Ut.tagCheck instanceof Function&&Ut.tagCheck(J))&&!he[J]){let ne=rg(y,J,E);return ne===!1&&(Rn(me.afterSanitizeElements,y,null),Mo(y,E))?!0:ne}if(B(y)===ln.element&&!eg(y)||(J==="noscript"||J==="noembed"||J==="noframes")&&Wt(qg,y.innerHTML))return jn(y),!0;if(ot&&y.nodeType===ln.text){let ne=Hr(y.textContent);y.textContent!==ne&&(or(t.removed,{element:y.cloneNode()}),y.textContent=ne)}return Rn(me.afterSanitizeElements,y,null),Mo(y,E)},Hl=function(y,E,J){if($t[E]||Ol(E,y)||Ye&&(E==="id"||E==="name")&&(J in o||J in Br))return!1;let ne=Ce[E]||Ut.attributeCheck instanceof Function&&Ut.attributeCheck(E,y);return ie&&Wt(Qe,E)||ut&&Wt(St,E)?!0:ne?yn[E]||Wt(Me,rr(J,ge,""))||(E==="src"||E==="xlink:href"||E==="href")&&y!=="script"&&Kl(J,"data:")===0&&Ct[y]||_e&&!Wt(G,rr(J,ge,""))?!0:!J:ql(y)&&Wr(st.tagNameCheck,y)&&Wr(st.attributeNameCheck,E,y)||E==="is"&&st.allowCustomizedBuiltInElements&&Wr(st.tagNameCheck,J)},ag=We({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ql=function(y){return!ag[ir(y)]&&Wt(ye,y)},ig=function(y,E,J,ne){if(j&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!J)switch(p.getAttributeType(y,E)){case"TrustedHTML":return z(ne);case"TrustedScriptURL":return A(ne)}return ne},sg=function(y,E,J,ne){try{return J?y.setAttributeNS(J,E,ne):y.setAttribute(E,ne),qr(y)?(jn(y),!1):!0}catch{return io(E,y),!1}},Wl=function(y,E){if(Rn(me.beforeSanitizeAttributes,y,null),Mo(y,E))return;let J=y.attributes;if(!J||qr(y))return;Ce=$l(me.uponSanitizeAttribute,Ce,lt,nn);let ne={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ce,forceKeepAttr:void 0},we=J.length,Fe=fe(y.nodeName);for(;we--;){let He=J[we],xt=He.name,hn=He.namespaceURI,sn=He.value,Lo=fe(xt),oi=sn,Kt=xt==="value"?oi:Cg(oi),Vl=!1;if(ne.attrName=Lo,ne.attrValue=Kt,ne.keepAttr=!0,ne.forceKeepAttr=void 0,Rn(me.uponSanitizeAttribute,y,ne),Kt=ne.attrValue,an&&(Lo==="id"||Lo==="name")&&Kl(Kt,ht)!==0&&(io(xt,y,He),Kt=ht+Kt,Vl=!0),Ve&&Wt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Kt)){io(xt,y,He);continue}if(Lo==="attributename"&&Xl(Kt,"href")){io(xt,y,He);continue}if(!ne.forceKeepAttr){if(!ne.keepAttr){io(xt,y,He);continue}if(!gt&&Wt(Wg,Kt)){io(xt,y,He);continue}if(ot&&(Kt=Hr(Kt)),!Hl(Fe,Lo,Kt)){io(xt,y,He);continue}Kt=ig(Fe,Lo,hn,Kt),Kt!==oi&&sg(y,xt,hn,Kt)&&Vl&&Jl(t.removed)}}Rn(me.afterSanitizeAttributes,y,null),Mo(y,E)},Vr=function(y){let E=null,J=Bl(y);for(Rn(me.beforeSanitizeShadowDOM,y,null);E=J.nextNode();)if(Rn(me.uponSanitizeShadowNode,E,null),Ul(E,y),Wl(E,y),Ro(E.content)&&Vr(E.content),B(E)===ln.element){let ne=x(E);Ro(ne)&&(ni(ne),Vr(ne))}Rn(me.afterSanitizeShadowDOM,y,null)},ni=function(y){let E=[{node:y,shadow:null}];for(;E.length>0;){let J=E.pop();if(J.shadow){Vr(J.shadow);continue}let ne=J.node,we=B(ne)===ln.element,Fe=v(ne);if(Fe)for(let He=Fe.length-1;He>=0;--He)E.push({node:Fe[He],shadow:null});if(we){let He=T?T(ne):null;if(typeof He=="string"&&fe(He)==="template"){let xt=ne.content;Ro(xt)&&E.push({node:xt,shadow:null})}}if(we){let He=x(ne);Ro(He)&&E.push({node:null,shadow:He},{node:He,shadow:null})}}};return t.sanitize=function(Y){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=null,J=null,ne=null,we=null;if(gn=!Y,gn&&(Y="<!-->"),typeof Y!="string"&&!nr(Y)&&(Y=Pg(Y),typeof Y!="string"))throw Gn("dirty is not a string, aborting");if(!t.isSupported)return Y;Xt?(he=pt,Ce=nn):Io(y),(me.uponSanitizeElement.length>0||me.uponSanitizeAttribute.length>0)&&(he=cn(he)),me.uponSanitizeAttribute.length>0&&(Ce=cn(Ce)),t.removed=[];let Fe=ce&&typeof Y!="string"&&nr(Y);if(Fe){ng(Y);let hn=N(Y);if(typeof hn=="string"){let sn=fe(hn);if(!he[sn]||Jt[sn])throw $r(Y),Gn("root node is forbidden and cannot be sanitized in-place")}if(qr(Y))throw $r(Y),Gn("root node is clobbered and cannot be sanitized in-place");try{ni(Y)}catch(sn){throw $r(Y),sn}}else if(nr(Y))E=Fl("<!---->"),J=E.ownerDocument.importNode(Y,!0),J.nodeType===ln.element&&J.nodeName==="BODY"||J.nodeName==="HTML"?E=J:E.appendChild(J),ni(E);else{if(!et&&!ot&&!Rt&&Y.indexOf("<")===-1)return j&&je?z(Y):Y;if(E=Fl(Y),!E)return et?null:je?_:""}E&&Ke&&jn(E.firstChild);let He=Fe?Y:E;try{let hn=Bl(He);for(;ne=hn.nextNode();)Ul(ne,He),Wl(ne,He),Ro(ne.content)&&Vr(ne.content)}catch(hn){throw Fe&&($r(Y),so(t.removed,sn=>{sn.element&&Ur(sn.element)})),hn}if(Fe){let hn=!1;if(so(t.removed,sn=>{sn.element&&(sn.element===Y&&(hn=!0),Ur(sn.element))}),hn)throw Gn("a node selected for removal could not be safely returned; refusing to sanitize in place");return ot&&ti(Y),Y}if(et){if(ot&&ti(E),ue)for(we=te.call(E.ownerDocument);E.firstChild;)we.appendChild(E.firstChild);else we=E;return(Ce.shadowroot||Ce.shadowrootmode)&&(we=Ue.call(r,we,!0)),we}let xt=Rt?E.outerHTML:E.innerHTML;return Rt&&he["!doctype"]&&E.ownerDocument&&E.ownerDocument.doctype&&E.ownerDocument.doctype.name&&Wt(Ug,E.ownerDocument.doctype.name)&&(xt="<!DOCTYPE "+E.ownerDocument.doctype.name+`>
3
- `+xt),ot&&(xt=Hr(xt)),j&&je?z(xt):xt},t.setConfig=function(){let Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Io(Y),Xt=!0,pt=he,nn=Ce},t.clearConfig=function(){Be=null,Xt=!1,pt=null,nn=null,j=L,_=""},t.isValidAttribute=function(Y,y,E){Be||Io({});let J=fe(Y),ne=fe(y);return Hl(J,ne,E)},t.addHook=function(Y,y){typeof y=="function"&&on(me,Y)&&or(me[Y],y)},t.removeHook=function(Y,y){if(on(me,Y)){if(y!==void 0){let E=zg(me[Y],y);return E===-1?void 0:Sg(me[Y],E,1)[0]}return Jl(me[Y])}},t.removeHooks=function(Y){on(me,Y)&&(me[Y]=[])},t.removeAllHooks=function(){me=ic()},t}var fi=dc();function bi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var uo=bi();function kc(e){uo=e}var lo={exec:()=>null};function Oo(e){let t=[];return o=>{let r=Math.max(0,Math.min(3,o-1)),a=t[r];return a||(a=e(r),t[r]=a),a}}function Ee(e,t=""){let o=typeof e=="string"?e:e.source,r={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Ft.caret,"$1"),o=o.replace(a,s),r},getRegex:()=>new RegExp(o,t)};return r}var Xg=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),Ft={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Oo(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Oo(e=>new RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:Oo(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Oo(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Oo(e=>new RegExp(`^ {0,${e}}(?:</?(?:${dr})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:Oo(e=>new RegExp(`^ {0,${e}}>`))},Kg=/^(?:[ \t]*(?:\n|$))+/,Yg=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Zg=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,cr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Qg=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,vi=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,wc=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,zc=Ee(wc).replace(/bull/g,vi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),eh=Ee(wc).replace(/bull/g,vi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),yi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,th=/^[^\n]+/,xi=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,nh=Ee(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",xi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),oh=Ee(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,vi).getRegex(),dr="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ki=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,rh=Ee("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ki).replace("tag",dr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Sc=e=>Ee(yi).replace("hr",cr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",e).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",dr).getRegex(),ah=Sc(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),ih=Sc(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),sh=Ee(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ih).getRegex(),wi={blockquote:sh,code:Yg,def:nh,fences:Zg,heading:Qg,hr:cr,html:rh,lheading:zc,list:oh,newline:Kg,paragraph:ah,table:lo,text:th},uc=Ee("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",cr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",dr).getRegex(),lh={...wi,lheading:eh,table:uc,paragraph:Ee(yi).replace("hr",cr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",uc).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",dr).getRegex()},ch={...wi,html:Ee(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ki).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:lo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ee(yi).replace("hr",cr).replace("heading",` *#{1,6} *[^
4
- ]`).replace("lheading",zc).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},dh=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,uh=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Cc=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,ph=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,On=/[\p{P}\p{S}]/u,Fo=/[\s\p{P}\p{S}]/u,ur=/[^\s\p{P}\p{S}]/u,fh=Ee(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Fo).getRegex(),mh=/[\p{Pi}\p{Ps}"']/u,_c=/(?!~)[\p{P}\p{S}]/u,gh=/(?!~)[\s\p{P}\p{S}]/u,hh=/(?:[^\s\p{P}\p{S}]|~)/u,bh=Ee(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Xg?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ac=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,vh=Ee(Ac,"u").replace(/punct/g,On).getRegex(),yh=Ee(Ac,"u").replace(/punct/g,_c).getRegex(),xh=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,kh=Ee(xh,"u").replace(/openQuote/g,mh).replace(/punct/g,On).getRegex(),Tc="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",wh=Ee(Tc,"gu").replace(/notPunctSpace/g,ur).replace(/punctSpace/g,Fo).replace(/punct/g,On).getRegex(),zh=Ee(Tc,"gu").replace(/notPunctSpace/g,hh).replace(/punctSpace/g,gh).replace(/punct/g,_c).getRegex(),Sh="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Ch=Ee(Sh,"gu").replace(/notPunctSpace/g,ur).replace(/punctSpace/g,Fo).replace(/punct/g,On).getRegex(),_h=Ee("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,ur).replace(/punctSpace/g,Fo).replace(/punct/g,On).getRegex(),Ah="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Th=Ee(Ah,"gu").replace(/notPunctSpace/g,ur).replace(/punctSpace/g,Fo).replace(/punct/g,On).getRegex(),Eh=Ee(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,On).getRegex(),Ph="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Ih=Ee(Ph,"gu").replace(/notPunctSpace/g,ur).replace(/punctSpace/g,Fo).replace(/punct/g,On).getRegex(),Rh=Ee(/\\(punct)/,"gu").replace(/punct/g,On).getRegex(),Mh=Ee(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Lh=Ee(ki).replace("(?:-->|$)","-->").getRegex(),Dh=Ee("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Lh).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ec=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,Xr=Ee(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",Ec).getRegex(),Nh=Ee(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Xr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Oh=Ee(/^!?\[(label)\]\[(ref)\]/).replace("label",Xr).replace("ref",xi).getRegex(),Fh=Ee(/^!?\[(ref)\](?:\[\])?/).replace("ref",xi).getRegex(),pc=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,Bh=Ee(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",Ec).getRegex(),$h=Ee("reflink|nolink(?!\\()","g").replace("reflink",Ee(/^!?\[(label)\]\[(ref)\]/).replace("label",Bh).replace("ref",pc).getRegex()).replace("nolink",Ee(/^!?\[(ref)\](?:\[\])?/).replace("ref",pc).getRegex()).getRegex(),fc=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Uh=/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/,Hh=Ee(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,Uh).getRegex(),zi={_backpedal:lo,anyPunctuation:Rh,autolink:Mh,blockSkip:bh,br:Cc,code:uh,del:lo,delLDelim:lo,delRDelim:lo,emStrongLDelim:vh,emStrongRDelimAst:wh,emStrongRDelimUnd:_h,escape:dh,link:Nh,nolink:Fh,punctuation:fh,reflink:Oh,reflinkSearch:$h,tag:Dh,text:ph,url:lo},qh={...zi,emStrongLDelim:kh,emStrongRDelimAst:Ch,emStrongRDelimUnd:Th,link:Ee(/^!?\[(label)\]\((.*?)\)/).replace("label",Xr).getRegex(),reflink:Ee(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Xr).getRegex()},mi={...zi,emStrongRDelimAst:zh,emStrongLDelim:yh,delLDelim:Eh,delRDelim:Ih,url:Ee(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol",Hh).replace("protocol",fc).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ee(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol",fc).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},Wh={...mi,br:Ee(Cc).replace("{2,}","*").getRegex(),text:Ee(mi.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Jr={normal:wi,gfm:lh,pedantic:ch},sr={normal:zi,gfm:mi,breaks:Wh,pedantic:qh},Vh={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},mc=e=>Vh[e];function dn(e,t){if(t){if(Ft.escapeTest.test(e))return e.replace(Ft.escapeReplace,mc)}else if(Ft.escapeTestNoEncode.test(e))return e.replace(Ft.escapeReplaceNoEncode,mc);return e}function jh(e){return e.replace(Ft.numericCharacterReference,(t,o,r)=>{let a=o===void 0?Number.parseInt(r,16):Number.parseInt(o,10);return a===0||a>1114111||a>=55296&&a<=57343?"\uFFFD":String.fromCodePoint(a)})}function gc(e){try{e=encodeURI(e).replace(Ft.percentDecode,"%")}catch{return null}return e}function hc(e,t){let o=e.replace(Ft.findPipe,(i,s,l)=>{let c=!1,d=s;for(;--d>=0&&l[d]==="\\";)c=!c;return c?"|":" |"}),r=o.split(Ft.splitPipe),a=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;a<r.length;a++)r[a]=r[a].trim().replace(Ft.slashPipe,"|");return r}function Xn(e,t,o){let r=e.length;if(r===0)return"";let a=0;for(;a<r;){let i=e.charAt(r-a-1);if(i===t&&!o)a++;else if(i!==t&&o)a++;else break}return e.slice(0,r-a)}function bc(e){let t=e.split(`
5
- `),o=t.length-1;for(;o>=0&&Ft.blankLine.test(t[o]);)o--;return t.length-o<=2?e:t.slice(0,o+1).join(`
6
- `)}function Kr(e){return e.trim().toLowerCase().toUpperCase().toLowerCase()}function Gh(e,t){if(e.indexOf(t[1])===-1)return-1;let o=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])o++;else if(e[r]===t[1]&&(o--,o<0))return r;return o>0?-2:-1}function vc(e,t=0){let o=t,r="";for(let a of e)if(a===" "){let i=4-o%4;r+=" ".repeat(i),o+=i}else r+=a,o++;return r}function yc(e,t,o,r,a){let i=t.href,s=t.title||null,l=e[1].replace(a.other.outputLinkReplace,"$1"),c=e[0].charAt(0)==="!";r.state.inLink=!0;let d=r.state.linkEmitted,p=r.state.inRawBlock;r.state.linkEmitted=!1;let u=r.inlineTokens(l),f=r.state.linkEmitted;if(r.state.linkEmitted=d,r.state.inLink=!1,!c){if(f){r.state.inRawBlock=p;return}r.state.linkEmitted=!0}return{type:c?"image":"link",raw:o,href:i,title:s,text:l,tokens:u}}function Jh(e,t,o){let r=e.match(o.other.indentCodeCompensation);if(r===null)return t;let a=r[1];return t.split(`
1
+ "use strict";var __fxExtend=(()=>{var di=Object.defineProperty;var Ag=Object.getOwnPropertyDescriptor;var Tg=Object.getOwnPropertyNames;var Eg=Object.prototype.hasOwnProperty;var Pg=(e,t)=>{for(var o in t)di(e,o,{get:t[o],enumerable:!0})},Rg=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Tg(t))!Eg.call(e,a)&&a!==o&&di(e,a,{get:()=>t[a],enumerable:!(r=Ag(t,a))||r.enumerable});return e};var Ig=e=>Rg(di({},"__esModule",{value:!0}),e);var Pw={};Pg(Pw,{dispose:()=>gg});function Mg(e,t){this.v=e,this.k=t}function Yl(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,r=Array(t);o<t;o++)r[o]=e[o];return r}function Lg(e){if(Array.isArray(e))return e}function Dg(e,t){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var r,a,i,s,l=[],c=!0,d=!1;try{if(i=(o=o.call(e)).next,t===0){if(Object(o)!==o)return;c=!1}else for(;!(c=(r=i.call(o)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(p){d=!0,a=p}finally{try{if(!c&&o.return!=null&&(s=o.return(),Object(s)!==s))return}finally{if(d)throw a}}return l}}function Ng(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Og(e,t){return Lg(e)||Dg(e,t)||Fg(e,t)||Ng()}function Fg(e,t){if(e){if(typeof e=="string")return Yl(e,t);var o={}.toString.call(e).slice(8,-1);return o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set"?Array.from(e):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?Yl(e,t):void 0}}function Kr(e){var t,o;function r(i,s){try{var l=e[i](s),c=l.value,d=c instanceof Mg;Promise.resolve(d?c.v:c).then(function(p){if(d){var u=i==="return"&&c.k?i:"next";if(!c.k||p.done)return r(u,p);p=e[u](p).value}a(!!l.done,p)},function(p){r("throw",p)})}catch(p){a(2,p)}}function a(i,s){i===2?t.reject(s):t.resolve({value:s,done:i}),(t=t.next)?r(t.key,t.arg):o=null}this._invoke=function(i,s){return new Promise(function(l,c){var d={key:i,arg:s,resolve:l,reject:c,next:null};o?o=o.next=d:(t=o=d,r(i,s))})},typeof e.return!="function"&&(this.return=void 0)}Kr.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Kr.prototype.next=function(e){return this._invoke("next",e)},Kr.prototype.throw=function(e){return this._invoke("throw",e)},Kr.prototype.return=function(e){return this._invoke("return",e)};var pc=Object.entries,Zl=Object.setPrototypeOf,Bg=Object.isFrozen,Ug=Object.getPrototypeOf,$g=Object.getOwnPropertyDescriptor,Rt=Object.freeze,Nt=Object.seal,Oo=Object.create,fc=typeof Reflect<"u"&&Reflect,bi=fc.apply,vi=fc.construct;Rt||(Rt=function(t){return t});Nt||(Nt=function(t){return t});bi||(bi=function(t,o){for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;i<r;i++)a[i-2]=arguments[i];return t.apply(o,a)});vi||(vi=function(t){for(var o=arguments.length,r=new Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];return new t(...r)});var co=Et(Array.prototype.forEach);Array.prototype.indexOf;var Hg=Et(Array.prototype.lastIndexOf),Ql=Et(Array.prototype.pop),ir=Et(Array.prototype.push);Array.prototype.slice;var qg=Et(Array.prototype.splice),Fo=Array.isArray,cr=Et(String.prototype.toLowerCase),ui=Et(String.prototype.toString),ec=Et(String.prototype.match),sr=Et(String.prototype.replace),tc=Et(String.prototype.indexOf),Wg=Et(String.prototype.trim),Vg=Et(Number.prototype.toString),jg=Et(Boolean.prototype.toString),nc=typeof BigInt>"u"?null:Et(BigInt.prototype.toString),oc=typeof Symbol>"u"?null:Et(Symbol.prototype.toString),on=Et(Object.prototype.hasOwnProperty),lr=Et(Object.prototype.toString),Vt=Et(RegExp.prototype.test),Xn=Gg(TypeError);function Et(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var o=arguments.length,r=new Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];return bi(e,t,r)}}function Gg(e){return function(){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return vi(e,o)}}function Ve(e,t){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:cr;if(Zl&&Zl(e,null),!Fo(t))return e;let r=t.length;for(;r--;){let a=t[r];if(typeof a=="string"){let i=o(a);i!==a&&(Bg(t)||(t[r]=i),a=i)}e[a]=!0}return e}function Jg(e){for(let t=0;t<e.length;t++)on(e,t)||(e[t]=null);return e}function cn(e){let t=Oo(null);for(let r of pc(e)){var o=Og(r,2);let a=o[0],i=o[1];on(e,a)&&(Fo(i)?t[a]=Jg(i):i&&typeof i=="object"&&i.constructor===Object?t[a]=cn(i):t[a]=i)}return t}function Xg(e){switch(typeof e){case"string":return e;case"number":return Vg(e);case"boolean":return jg(e);case"bigint":return nc?nc(e):"0";case"symbol":return oc?oc(e):"Symbol()";case"undefined":return lr(e);case"function":case"object":{if(e===null)return lr(e);let t=e,o=vn(t,"toString");if(typeof o=="function"){let r=o(t);return typeof r=="string"?r:lr(r)}return lr(e)}default:return lr(e)}}function vn(e,t){for(;e!==null;){let r=$g(e,t);if(r){if(r.get)return Et(r.get);if(typeof r.value=="function")return Et(r.value)}e=Ug(e)}function o(){return null}return o}function Kg(e){try{return Vt(e,""),!0}catch{return!1}}var rc=Rt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),pi=Rt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),fi=Rt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Yg=Rt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),mi=Rt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Zg=Rt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ac=Rt(["#text"]),ic=Rt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),gi=Rt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),sc=Rt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Yr=Rt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Qg=Nt(/{{[\w\W]*|^[\w\W]*}}/g),eh=Nt(/<%[\w\W]*|^[\w\W]*%>/g),th=Nt(/\${[\w\W]*/g),nh=Nt(/^data-[\-\w.\u00B7-\uFFFF]+$/),oh=Nt(/^aria-[\-\w]+$/),lc=Nt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),rh=Nt(/^(?:\w+script|data):/i),ah=Nt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ih=Nt(/^html$/i),sh=Nt(/^[a-z][.\w]*(-[.\w]+)+$/i),cc=Nt(/<[/\w!]/g),dc=Nt(/<[/\w]/g),lh=Nt(/<\/no(script|embed|frames)/i),ch=Nt(/\/>/i),ln={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},mc=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],dh=Rt(Ve({},mc)),uh=(function(){let e={};return co(mc,t=>{e[t]=Nt(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),Rt(e)})(),ph=function(){return typeof window>"u"?null:window},fh=function(t,o){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null,a="data-tt-policy-suffix";o&&o.hasAttribute(a)&&(r=o.getAttribute(a));let i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},uc=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Kn=function(t,o,r,a){return on(t,o)&&Fo(t[o])?Ve(a.base?cn(a.base):{},t[o],a.transform):r},hi=function(t,o,r){let a=on(t,o)?t[o]:void 0;return a&&typeof a=="object"?cn(a):r()};function gc(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ph(),t=Z=>gc(Z);if(t.version="3.4.16",t.removed=[],!e||!e.document||e.document.nodeType!==ln.document||!e.Element)return t.isSupported=!1,t;let o=e.document,r=o,a=r.currentScript;e.DocumentFragment;let i=e.HTMLTemplateElement,s=e.Node,l=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let d=e.DOMParser,p=e.trustedTypes,u=l.prototype,m=vn(u,"cloneNode"),f=vn(u,"remove"),g=vn(u,"removeAttributeNode"),h=vn(u,"nextSibling"),b=vn(u,"childNodes"),v=vn(u,"parentNode"),w=vn(u,"shadowRoot"),k=vn(u,"attributes"),x=s&&s.prototype?vn(s.prototype,"nodeType"):null,T=s&&s.prototype?vn(s.prototype,"nodeName"):null,F=s&&s.prototype?vn(s.prototype,"ownerDocument"):null,V=function(y){return x?x(y):y.nodeType},D=function(y){return T?T(y):y.nodeName};if(typeof i=="function"){let Z=o.createElement("template");Z.content&&Z.content.ownerDocument&&(o=Z.content.ownerDocument)}let j,A="",L,U=!1,N=0,oe=function(){if(N>0)throw Xn('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},_=function(y){oe(),N++;try{return j.createHTML(y)}finally{N--}},C=function(y){oe(),N++;try{return j.createScriptURL(y)}finally{N--}},P=function(){return U||(L=fh(p,a),U=!0),L},G=o,Y=G.implementation,q=G.createNodeIterator,te=G.createDocumentFragment,pe=G.getElementsByTagName,qe=r.importNode,ge=uc();t.isSupported=typeof pc=="function"&&typeof v=="function"&&Y&&Y.createHTMLDocument!==void 0;let Ie=Qg,Ze=eh,ve=th,Qe=nh,Ct=oh,J=rh,he=ah,xe=sh,De=lc,be=null,rt=Ve({},[...rc,...pi,...fi,...mi,...ac]),_e=null,ct=Ve({},[...ic,...gi,...sc,...Yr]),lt=Object.seal(Oo(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Xt=null,$t=null,Ht=Object.seal(Oo(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ft=!0,le=!0,Ae=!1,vt=!0,ot=!1,je=!0,Dt=!1,Kt=!1,mt=null,nn=null,Ke=!1,et=!1,ue=!1,Ge=!1,Ye=!0,an=!1,yt="user-content-",O=!0,de=!1,Te={},tt=null,qt=Ve({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),_t=null,gt=Ve({},["audio","video","img","source","image","track"]),xn=null,Me=Ve({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),xt="http://www.w3.org/1998/Math/MathML",Wt="http://www.w3.org/2000/svg",Xe="http://www.w3.org/1999/xhtml",Bt=Xe,hn=!1,io=null,ii=Ve({},[xt,Wt,Xe],ui),Hr=Rt(["mi","mo","mn","ms","mtext"]),z=Ve({},Hr),R=Rt(["annotation-xml"]),M=Ve({},R),re=Ve({},["title","style","font","a","script"]),ee=null,ke=["application/xhtml+xml","text/html"],Ne="text/html",fe=null,He=null,qr=o.createElement("form"),so=function(y){return y instanceof RegExp||y instanceof Function},Mo=function(){let y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(He&&He===y)return;(!y||typeof y!="object")&&(y={}),y=cn(y),ee=ke.indexOf(y.PARSER_MEDIA_TYPE)===-1?Ne:y.PARSER_MEDIA_TYPE,fe=ee==="application/xhtml+xml"?ui:cr,be=Kn(y,"ALLOWED_TAGS",rt,{transform:fe}),_e=Kn(y,"ALLOWED_ATTR",ct,{transform:fe}),io=Kn(y,"ALLOWED_NAMESPACES",ii,{transform:ui}),xn=Kn(y,"ADD_URI_SAFE_ATTR",Me,{transform:fe,base:Me}),_t=Kn(y,"ADD_DATA_URI_TAGS",gt,{transform:fe,base:gt}),tt=Kn(y,"FORBID_CONTENTS",qt,{transform:fe}),Xt=Kn(y,"FORBID_TAGS",cn({}),{transform:fe}),$t=Kn(y,"FORBID_ATTR",cn({}),{transform:fe}),Te=on(y,"USE_PROFILES")?y.USE_PROFILES&&typeof y.USE_PROFILES=="object"?cn(y.USE_PROFILES):y.USE_PROFILES:!1,ft=y.ALLOW_ARIA_ATTR!==!1,le=y.ALLOW_DATA_ATTR!==!1,Ae=y.ALLOW_UNKNOWN_PROTOCOLS||!1,vt=y.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ot=y.SAFE_FOR_TEMPLATES||!1,je=y.SAFE_FOR_XML!==!1,Dt=y.WHOLE_DOCUMENT||!1,et=y.RETURN_DOM||!1,ue=y.RETURN_DOM_FRAGMENT||!1,Ge=y.RETURN_TRUSTED_TYPE||!1,Ke=y.FORCE_BODY||!1,Ye=y.SANITIZE_DOM!==!1,an=y.SANITIZE_NAMED_PROPS||!1,O=y.KEEP_CONTENT!==!1,de=y.IN_PLACE||!1,De=Kg(y.ALLOWED_URI_REGEXP)?y.ALLOWED_URI_REGEXP:lc,Bt=typeof y.NAMESPACE=="string"?y.NAMESPACE:Xe,z=hi(y,"MATHML_TEXT_INTEGRATION_POINTS",()=>Ve({},Hr)),M=hi(y,"HTML_INTEGRATION_POINTS",()=>Ve({},R));let E=hi(y,"CUSTOM_ELEMENT_HANDLING",()=>Oo(null));if(lt=Oo(null),on(E,"tagNameCheck")&&so(E.tagNameCheck)&&(lt.tagNameCheck=E.tagNameCheck),on(E,"attributeNameCheck")&&so(E.attributeNameCheck)&&(lt.attributeNameCheck=E.attributeNameCheck),on(E,"allowCustomizedBuiltInElements")&&typeof E.allowCustomizedBuiltInElements=="boolean"&&(lt.allowCustomizedBuiltInElements=E.allowCustomizedBuiltInElements),Nt(lt),ot&&(le=!1),ue&&(et=!0),Te&&(be=Ve({},ac),_e=Oo(null),Te.html===!0&&(Ve(be,rc),Ve(_e,ic)),Te.svg===!0&&(Ve(be,pi),Ve(_e,gi),Ve(_e,Yr)),Te.svgFilters===!0&&(Ve(be,fi),Ve(_e,gi),Ve(_e,Yr)),Te.mathMl===!0&&(Ve(be,mi),Ve(_e,sc),Ve(_e,Yr))),Ht.tagCheck=null,Ht.attributeCheck=null,on(y,"ADD_TAGS")&&(typeof y.ADD_TAGS=="function"?Ht.tagCheck=y.ADD_TAGS:Fo(y.ADD_TAGS)&&(be===rt&&(be=cn(be)),Ve(be,y.ADD_TAGS,fe))),on(y,"ADD_ATTR")&&(typeof y.ADD_ATTR=="function"?Ht.attributeCheck=y.ADD_ATTR:Fo(y.ADD_ATTR)&&(_e===ct&&(_e=cn(_e)),Ve(_e,y.ADD_ATTR,fe))),on(y,"ADD_FORBID_CONTENTS")&&Fo(y.ADD_FORBID_CONTENTS)&&(tt===qt&&(tt=cn(tt)),Ve(tt,y.ADD_FORBID_CONTENTS,fe)),O&&(be["#text"]=!0),Dt&&Ve(be,["html","head","body"]),be.table&&(Ve(be,["tbody"]),delete Xt.tbody),y.TRUSTED_TYPES_POLICY){if(typeof y.TRUSTED_TYPES_POLICY.createHTML!="function")throw Xn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof y.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Xn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let X=j;j=y.TRUSTED_TYPES_POLICY;try{A=_("")}catch(ne){throw j=X,ne}}else y.TRUSTED_TYPES_POLICY===null?(j=void 0,A=""):(j===void 0&&(j=P()),j&&typeof A=="string"&&(A=_("")));Rt&&Rt(y),He=y},Gn=Ve({},[...pi,...fi,...Yg]),Ul=Ve({},[...mi,...Zg]),hg=function(y,E,X){return E.namespaceURI===Xe?y==="svg":E.namespaceURI===xt?y==="svg"&&(X==="annotation-xml"||z[X]):!!Gn[y]},bg=function(y,E,X){return E.namespaceURI===Xe?y==="math":E.namespaceURI===Wt?y==="math"&&M[X]:!!Ul[y]},vg=function(y,E,X){return E.namespaceURI===Wt&&!M[X]||E.namespaceURI===xt&&!z[X]?!1:!Ul[y]&&(re[y]||!Gn[y])},yg=function(y){let E=v(y);(!E||!E.tagName)&&(E={namespaceURI:Bt,tagName:"template"});let X=cr(y.tagName),ne=cr(E.tagName);return io[y.namespaceURI]?y.namespaceURI===Wt?hg(X,E,ne):y.namespaceURI===xt?bg(X,E,ne):y.namespaceURI===Xe?vg(X,E,ne):!!(ee==="application/xhtml+xml"&&io[y.namespaceURI]):!1},Jn=function(y){ir(t.removed,{element:y});try{v(y).removeChild(y)}catch{if(f(y),!v(y))throw Xn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},$l=function(y,E,X){try{g(y,E)}catch{try{y.removeAttribute(X)}catch{}}},Wr=function(y){Vr(y);let E=b(y);if(E){let ne=[];co(E,we=>{ir(ne,we)}),co(ne,we=>{try{f(we)}catch{}})}let X=k(y);if(X)for(let ne=X.length-1;ne>=0;--ne){let we=X[ne],Ue=we&&we.name;typeof Ue=="string"&&$l(y,we,Ue)}},lo=function(y,E,X){if(!X)try{X=E.getAttributeNode(y)}catch{X=null}ir(t.removed,{attribute:X||null,from:E});try{X?g(E,X):E.removeAttribute(y)}catch{try{E.removeAttribute(y)}catch{}}if(y==="is")if(et||ue)try{Jn(E)}catch{}else try{E.setAttribute(y,"")}catch{}},xg=function(y){let E=k(y);if(E)for(let X=E.length-1;X>=0;--X){let ne=E[X],we=ne&&ne.name;typeof we!="string"||_e[fe(we)]||$l(y,ne,we)}},Vr=function(y){let E=[y];for(;E.length>0;){let X=E.pop();V(X)===ln.element&&xg(X);let ne=b(X);if(ne)for(let we=ne.length-1;we>=0;--we)E.push(ne[we])}},Hl=function(y,E){return je?y==="patchsrc"?!0:y==="for"&&E!=="label"&&E!=="output":!1},kg=function(y){if(!je)return;let E=[y];for(;E.length>0;){let X=E.pop(),ne=V(X);if(ne===ln.processingInstruction||ne===ln.comment&&Vt(dc,X.data)){try{f(X)}catch{}continue}if(ne===ln.element){let Ue=X,We=fe(D(X));try{Ue.hasAttribute&&Ue.hasAttribute("patchsrc")&&Ue.removeAttribute("patchsrc"),Ue.hasAttribute&&Ue.hasAttribute("for")&&Hl("for",We)&&Ue.removeAttribute("for")}catch{}}let we=b(X);if(we)for(let Ue=we.length-1;Ue>=0;--Ue)E.push(we[Ue])}},ql=function(y){let E=null,X=null;if(Ke)y="<remove></remove>"+y;else{let Ue=ec(y,/^[\r\n\t ]+/);X=Ue&&Ue[0]}ee==="application/xhtml+xml"&&Bt===Xe&&(y='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+y+"</body></html>");let ne=j?_(y):y;if(Bt===Xe)try{E=new d().parseFromString(ne,ee)}catch{}if(!E||!E.documentElement){E=Y.createDocument(Bt,"template",null);try{E.documentElement.innerHTML=hn?A:ne}catch{}}let we=E.body||E.documentElement;return y&&X&&we.insertBefore(o.createTextNode(X),we.childNodes[0]||null),Bt===Xe?pe.call(E,Dt?"html":"body")[0]:Dt?E.documentElement:we},Wl=function(y){let E=F?F(y):y.ownerDocument;return q.call(E||y,y,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},jr=function(y){return y=sr(y,Ie," "),y=sr(y,Ze," "),y=sr(y,ve," "),y},si=function(y){var E;y.normalize();let X=F?F(y):y.ownerDocument,ne=q.call(X||y,y,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),we=ne.nextNode();for(;we;)we.data=jr(we.data),we=ne.nextNode();let Ue=(E=y.querySelectorAll)===null||E===void 0?void 0:E.call(y,"template");Ue&&co(Ue,We=>{Lo(We.content)&&si(We.content)})},Gr=function(y){let E=T?T(y):null;return typeof E!="string"||fe(E)!=="form"?!1:typeof y.nodeName!="string"||typeof y.textContent!="string"||typeof y.removeChild!="function"||y.attributes!==k(y)||typeof y.removeAttribute!="function"||typeof y.removeAttributeNode!="function"||typeof y.getAttributeNode!="function"||typeof y.setAttribute!="function"||typeof y.namespaceURI!="string"||typeof y.insertBefore!="function"||typeof y.hasChildNodes!="function"||y.nodeType!==x(y)||y.childNodes!==b(y)},Lo=function(y){if(!x||typeof y!="object"||y===null)return!1;try{return x(y)===ln.documentFragment}catch{return!1}},ar=function(y){if(!x||typeof y!="object"||y===null)return!1;try{return typeof x(y)=="number"}catch{return!1}};function Mn(Z,y,E){Z.length!==0&&co(Z,X=>{X.call(t,y,E,He)})}let wg=function(y,E){return!!(je&&y.hasChildNodes()&&!ar(y.firstElementChild)&&Vt(cc,y.textContent)&&Vt(cc,y.innerHTML)||je&&y.namespaceURI===Xe&&dh[E]&&(ar(y.firstElementChild)||typeof y.textContent=="string"&&Vt(uh[E],y.textContent))||y.nodeType===ln.processingInstruction||je&&y.nodeType===ln.comment&&Vt(dc,y.data))},Jr=function(y,E){if(y instanceof RegExp)return Vt(y,E);if(y instanceof Function){for(var X=arguments.length,ne=new Array(X>2?X-2:0),we=2;we<X;we++)ne[we-2]=arguments[we];return!!y(E,...ne)}return!1},zg=function(y,E,X){if(!Xt[E]&&Jl(E)&&Jr(lt.tagNameCheck,E))return!1;if(O&&!tt[E]){let ne=v(y),we=b(y);if(we&&ne){let Ue=we.length;for(let We=Ue-1;We>=0;--We){let zt=y===X?m(we[We],!0):we[We];ne.insertBefore(zt,h(y))}}}return Jn(y),!0},Vl=function(y,E,X,ne){return y.length===0?E:E===X||E===ne?cn(E):E},Do=function(y,E){return y===E||v(y)!==null?!1:(de&&Vr(y),!0)},jl=function(y,E){if(Mn(ge.beforeSanitizeElements,y,null),Do(y,E))return!0;if(Gr(y))return Jn(y),!0;let X=fe(D(y));if(be=Vl(ge.uponSanitizeElement,be,rt,mt),Mn(ge.uponSanitizeElement,y,{tagName:X,allowedTags:be}),Do(y,E))return!0;if(wg(y,X))return Jn(y),!0;if(Xt[X]||!(Ht.tagCheck instanceof Function&&Ht.tagCheck(X))&&!be[X]){let ne=zg(y,X,E);return ne===!1&&(Mn(ge.afterSanitizeElements,y,null),Do(y,E))?!0:ne}if(V(y)===ln.element&&!yg(y)||(X==="noscript"||X==="noembed"||X==="noframes")&&Vt(lh,y.innerHTML))return Jn(y),!0;if(ot&&y.nodeType===ln.text){let ne=jr(y.textContent);y.textContent!==ne&&(ir(t.removed,{element:y.cloneNode()}),y.textContent=ne)}return Mn(ge.afterSanitizeElements,y,null),Do(y,E)},Gl=function(y,E,X){if($t[E]||Hl(E,y)||Ye&&(E==="id"||E==="name")&&(X in o||X in qr))return!1;let ne=_e[E]||Ht.attributeCheck instanceof Function&&Ht.attributeCheck(E,y);return le&&Vt(Qe,E)||ft&&Vt(Ct,E)?!0:ne?xn[E]||Vt(De,sr(X,he,""))||(E==="src"||E==="xlink:href"||E==="href")&&y!=="script"&&tc(X,"data:")===0&&_t[y]||Ae&&!Vt(J,sr(X,he,""))?!0:!X:Jl(y)&&Jr(lt.tagNameCheck,y)&&Jr(lt.attributeNameCheck,E,y)||E==="is"&&lt.allowCustomizedBuiltInElements&&Jr(lt.tagNameCheck,X)},Sg=Ve({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Jl=function(y){return!Sg[cr(y)]&&Vt(xe,y)},Cg=function(y,E,X,ne){if(j&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!X)switch(p.getAttributeType(y,E)){case"TrustedHTML":return _(ne);case"TrustedScriptURL":return C(ne)}return ne},_g=function(y,E,X,ne){try{return X?y.setAttributeNS(X,E,ne):y.setAttribute(E,ne),Gr(y)?(Jn(y),!1):!0}catch{return lo(E,y),!1}},Xl=function(y,E){if(Mn(ge.beforeSanitizeAttributes,y,null),Do(y,E))return;let X=y.attributes;if(!X||Gr(y))return;_e=Vl(ge.uponSanitizeAttribute,_e,ct,nn);let ne={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_e,forceKeepAttr:void 0},we=X.length,Ue=fe(y.nodeName);for(;we--;){let We=X[we],zt=We.name,bn=We.namespaceURI,sn=We.value,No=fe(zt),ci=sn,Yt=zt==="value"?ci:Wg(ci),Kl=!1;if(ne.attrName=No,ne.attrValue=Yt,ne.keepAttr=!0,ne.forceKeepAttr=void 0,Mn(ge.uponSanitizeAttribute,y,ne),Yt=ne.attrValue,an&&(No==="id"||No==="name")&&tc(Yt,yt)!==0&&(lo(zt,y,We),Yt=yt+Yt,Kl=!0),je&&Vt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Yt)){lo(zt,y,We);continue}if(No==="attributename"&&ec(Yt,"href")){lo(zt,y,We);continue}if(!ne.forceKeepAttr){if(!ne.keepAttr){lo(zt,y,We);continue}if(!vt&&Vt(ch,Yt)){lo(zt,y,We);continue}if(ot&&(Yt=jr(Yt)),!Gl(Ue,No,Yt)){lo(zt,y,We);continue}Yt=Cg(Ue,No,bn,Yt),Yt!==ci&&_g(y,zt,bn,Yt)&&Kl&&Ql(t.removed)}}Mn(ge.afterSanitizeAttributes,y,null),Do(y,E)},Xr=function(y){let E=null,X=Wl(y);for(Mn(ge.beforeSanitizeShadowDOM,y,null);E=X.nextNode();)if(Mn(ge.uponSanitizeShadowNode,E,null),jl(E,y),Xl(E,y),Lo(E.content)&&Xr(E.content),V(E)===ln.element){let ne=w(E);Lo(ne)&&(li(ne),Xr(ne))}Mn(ge.afterSanitizeShadowDOM,y,null)},li=function(y){let E=[{node:y,shadow:null}];for(;E.length>0;){let X=E.pop();if(X.shadow){Xr(X.shadow);continue}let ne=X.node,we=V(ne)===ln.element,Ue=b(ne);if(Ue)for(let We=Ue.length-1;We>=0;--We)E.push({node:Ue[We],shadow:null});if(we){let We=T?T(ne):null;if(typeof We=="string"&&fe(We)==="template"){let zt=ne.content;Lo(zt)&&E.push({node:zt,shadow:null})}}if(we){let We=w(ne);Lo(We)&&E.push({node:null,shadow:We},{node:We,shadow:null})}}};return t.sanitize=function(Z){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=null,X=null,ne=null,we=null;if(hn=!Z,hn&&(Z="<!-->"),typeof Z!="string"&&!ar(Z)&&(Z=Xg(Z),typeof Z!="string"))throw Xn("dirty is not a string, aborting");if(!t.isSupported)return Z;Kt?(be=mt,_e=nn):Mo(y),(ge.uponSanitizeElement.length>0||ge.uponSanitizeAttribute.length>0)&&(be=cn(be)),ge.uponSanitizeAttribute.length>0&&(_e=cn(_e)),t.removed=[];let Ue=de&&typeof Z!="string"&&ar(Z);if(Ue){kg(Z);let bn=D(Z);if(typeof bn=="string"){let sn=fe(bn);if(!be[sn]||Xt[sn])throw Wr(Z),Xn("root node is forbidden and cannot be sanitized in-place")}if(Gr(Z))throw Wr(Z),Xn("root node is clobbered and cannot be sanitized in-place");try{li(Z)}catch(sn){throw Wr(Z),sn}}else if(ar(Z))E=ql("<!---->"),X=E.ownerDocument.importNode(Z,!0),X.nodeType===ln.element&&X.nodeName==="BODY"||X.nodeName==="HTML"?E=X:E.appendChild(X),li(E);else{if(!et&&!ot&&!Dt&&Z.indexOf("<")===-1)return j&&Ge?_(Z):Z;if(E=ql(Z),!E)return et?null:Ge?A:""}E&&Ke&&Jn(E.firstChild);let We=Ue?Z:E;try{let bn=Wl(We);for(;ne=bn.nextNode();)jl(ne,We),Xl(ne,We),Lo(ne.content)&&Xr(ne.content)}catch(bn){throw Ue&&(Wr(Z),co(t.removed,sn=>{sn.element&&Vr(sn.element)})),bn}if(Ue){let bn=!1;if(co(t.removed,sn=>{sn.element&&(sn.element===Z&&(bn=!0),Vr(sn.element))}),bn)throw Xn("a node selected for removal could not be safely returned; refusing to sanitize in place");return ot&&si(Z),Z}if(et){if(ot&&si(E),ue)for(we=te.call(E.ownerDocument);E.firstChild;)we.appendChild(E.firstChild);else we=E;return(_e.shadowroot||_e.shadowrootmode)&&(we=qe.call(r,we,!0)),we}let zt=Dt?E.outerHTML:E.innerHTML;return Dt&&be["!doctype"]&&E.ownerDocument&&E.ownerDocument.doctype&&E.ownerDocument.doctype.name&&Vt(ih,E.ownerDocument.doctype.name)&&(zt="<!DOCTYPE "+E.ownerDocument.doctype.name+`>
3
+ `+zt),ot&&(zt=jr(zt)),j&&Ge?_(zt):zt},t.setConfig=function(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Mo(Z),Kt=!0,mt=be,nn=_e},t.clearConfig=function(){He=null,Kt=!1,mt=null,nn=null,j=L,A=""},t.isValidAttribute=function(Z,y,E){He||Mo({});let X=fe(Z),ne=fe(y);return Gl(X,ne,E)},t.addHook=function(Z,y){typeof y=="function"&&on(ge,Z)&&ir(ge[Z],y)},t.removeHook=function(Z,y){if(on(ge,Z)){if(y!==void 0){let E=Hg(ge[Z],y);return E===-1?void 0:qg(ge[Z],E,1)[0]}return Ql(ge[Z])}},t.removeHooks=function(Z){on(ge,Z)&&(ge[Z]=[])},t.removeAllHooks=function(){ge=uc()},t}var yi=gc();function zi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var fo=zi();function _c(e){fo=e}var uo={exec:()=>null};function Bo(e){let t=[];return o=>{let r=Math.max(0,Math.min(3,o-1)),a=t[r];return a||(a=e(r),t[r]=a),a}}function Pe(e,t=""){let o=typeof e=="string"?e:e.source,r={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Ut.caret,"$1"),o=o.replace(a,s),r},getRegex:()=>new RegExp(o,t)};return r}var mh=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),Ut={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Bo(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Bo(e=>new RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:Bo(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Bo(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Bo(e=>new RegExp(`^ {0,${e}}(?:</?(?:${fr})(?: +|$|/?>)|<(?:script|pre|style|textarea|!--))`,"i")),blockquoteBeginRegex:Bo(e=>new RegExp(`^ {0,${e}}>`))},gh=/^(?:[ \t]*(?:\n|$))+/,hh=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,bh=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,pr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,vh=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Si=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Ac=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Tc=Pe(Ac).replace(/bull/g,Si).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),yh=Pe(Ac).replace(/bull/g,Si).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ci=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,xh=/^[^\n]+/,_i=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,kh=Pe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",_i).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),wh=Pe(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Si).getRegex(),fr="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ai=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,zh=Pe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ai).replace("tag",fr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ec=e=>Pe(Ci).replace("hr",pr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",e).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",fr).getRegex(),Sh=Ec(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Ch=Ec(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),_h=Pe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ch).getRegex(),Ti={blockquote:_h,code:hh,def:kh,fences:bh,heading:vh,hr:pr,html:zh,lheading:Tc,list:wh,newline:gh,paragraph:Sh,table:uo,text:xh},hc=Pe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",pr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",fr).getRegex(),Ah={...Ti,lheading:yh,table:hc,paragraph:Pe(Ci).replace("hr",pr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",hc).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",fr).getRegex()},Th={...Ti,html:Pe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ai).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:uo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Pe(Ci).replace("hr",pr).replace("heading",` *#{1,6} *[^
4
+ ]`).replace("lheading",Tc).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Eh=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ph=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Pc=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,Rh=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Fn=/[\p{P}\p{S}]/u,Uo=/[\s\p{P}\p{S}]/u,mr=/[^\s\p{P}\p{S}]/u,Ih=Pe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Uo).getRegex(),Mh=/[\p{Pi}\p{Ps}"']/u,Rc=/(?!~)[\p{P}\p{S}]/u,Lh=/(?!~)[\s\p{P}\p{S}]/u,Dh=/(?:[^\s\p{P}\p{S}]|~)/u,Nh=Pe(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",mh?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ic=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Oh=Pe(Ic,"u").replace(/punct/g,Fn).getRegex(),Fh=Pe(Ic,"u").replace(/punct/g,Rc).getRegex(),Bh=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Uh=Pe(Bh,"u").replace(/openQuote/g,Mh).replace(/punct/g,Fn).getRegex(),Mc="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",$h=Pe(Mc,"gu").replace(/notPunctSpace/g,mr).replace(/punctSpace/g,Uo).replace(/punct/g,Fn).getRegex(),Hh=Pe(Mc,"gu").replace(/notPunctSpace/g,Dh).replace(/punctSpace/g,Lh).replace(/punct/g,Rc).getRegex(),qh="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Wh=Pe(qh,"gu").replace(/notPunctSpace/g,mr).replace(/punctSpace/g,Uo).replace(/punct/g,Fn).getRegex(),Vh=Pe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,mr).replace(/punctSpace/g,Uo).replace(/punct/g,Fn).getRegex(),jh="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Gh=Pe(jh,"gu").replace(/notPunctSpace/g,mr).replace(/punctSpace/g,Uo).replace(/punct/g,Fn).getRegex(),Jh=Pe(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Fn).getRegex(),Xh="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Kh=Pe(Xh,"gu").replace(/notPunctSpace/g,mr).replace(/punctSpace/g,Uo).replace(/punct/g,Fn).getRegex(),Yh=Pe(/\\(punct)/,"gu").replace(/punct/g,Fn).getRegex(),Zh=Pe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Qh=Pe(Ai).replace("(?:-->|$)","-->").getRegex(),eb=Pe("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Qh).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Lc=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,Qr=Pe(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",Lc).getRegex(),tb=Pe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Qr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),nb=Pe(/^!?\[(label)\]\[(ref)\]/).replace("label",Qr).replace("ref",_i).getRegex(),ob=Pe(/^!?\[(ref)\](?:\[\])?/).replace("ref",_i).getRegex(),bc=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,rb=Pe(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",Lc).getRegex(),ab=Pe("reflink|nolink(?!\\()","g").replace("reflink",Pe(/^!?\[(label)\]\[(ref)\]/).replace("label",rb).replace("ref",bc).getRegex()).replace("nolink",Pe(/^!?\[(ref)\](?:\[\])?/).replace("ref",bc).getRegex()).getRegex(),vc=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,ib=/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/,sb=Pe(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,ib).getRegex(),Ei={_backpedal:uo,anyPunctuation:Yh,autolink:Zh,blockSkip:Nh,br:Pc,code:Ph,del:uo,delLDelim:uo,delRDelim:uo,emStrongLDelim:Oh,emStrongRDelimAst:$h,emStrongRDelimUnd:Vh,escape:Eh,link:tb,nolink:ob,punctuation:Ih,reflink:nb,reflinkSearch:ab,tag:eb,text:Rh,url:uo},lb={...Ei,emStrongLDelim:Uh,emStrongRDelimAst:Wh,emStrongRDelimUnd:Gh,link:Pe(/^!?\[(label)\]\((.*?)\)/).replace("label",Qr).getRegex(),reflink:Pe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Qr).getRegex()},xi={...Ei,emStrongRDelimAst:Hh,emStrongLDelim:Fh,delLDelim:Jh,delRDelim:Kh,url:Pe(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol",sb).replace("protocol",vc).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Pe(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol",vc).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},cb={...xi,br:Pe(Pc).replace("{2,}","*").getRegex(),text:Pe(xi.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Zr={normal:Ti,gfm:Ah,pedantic:Th},dr={normal:Ei,gfm:xi,breaks:cb,pedantic:lb},db={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},yc=e=>db[e];function dn(e,t){if(t){if(Ut.escapeTest.test(e))return e.replace(Ut.escapeReplace,yc)}else if(Ut.escapeTestNoEncode.test(e))return e.replace(Ut.escapeReplaceNoEncode,yc);return e}function ub(e){return e.replace(Ut.numericCharacterReference,(t,o,r)=>{let a=o===void 0?Number.parseInt(r,16):Number.parseInt(o,10);return a===0||a>1114111||a>=55296&&a<=57343?"\uFFFD":String.fromCodePoint(a)})}function xc(e){try{e=encodeURI(e).replace(Ut.percentDecode,"%")}catch{return null}return e}function kc(e,t){let o=e.replace(Ut.findPipe,(i,s,l)=>{let c=!1,d=s;for(;--d>=0&&l[d]==="\\";)c=!c;return c?"|":" |"}),r=o.split(Ut.splitPipe),a=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;a<r.length;a++)r[a]=r[a].trim().replace(Ut.slashPipe,"|");return r}function Yn(e,t,o){let r=e.length;if(r===0)return"";let a=0;for(;a<r;){let i=e.charAt(r-a-1);if(i===t&&!o)a++;else if(i!==t&&o)a++;else break}return e.slice(0,r-a)}function wc(e){let t=e.split(`
5
+ `),o=t.length-1;for(;o>=0&&Ut.blankLine.test(t[o]);)o--;return t.length-o<=2?e:t.slice(0,o+1).join(`
6
+ `)}function ea(e){return e.trim().toLowerCase().toUpperCase().toLowerCase()}function pb(e,t){if(e.indexOf(t[1])===-1)return-1;let o=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])o++;else if(e[r]===t[1]&&(o--,o<0))return r;return o>0?-2:-1}function zc(e,t=0){let o=t,r="";for(let a of e)if(a===" "){let i=4-o%4;r+=" ".repeat(i),o+=i}else r+=a,o++;return r}function Sc(e,t,o,r,a){let i=t.href,s=t.title||null,l=e[1].replace(a.other.outputLinkReplace,"$1"),c=e[0].charAt(0)==="!";r.state.inLink=!0;let d=r.state.linkEmitted,p=r.state.inRawBlock;r.state.linkEmitted=!1;let u=r.inlineTokens(l),m=r.state.linkEmitted;if(r.state.linkEmitted=d,r.state.inLink=!1,!c){if(m){r.state.inRawBlock=p;return}r.state.linkEmitted=!0}return{type:c?"image":"link",raw:o,href:i,title:s,text:l,tokens:u}}function fb(e,t,o){let r=e.match(o.other.indentCodeCompensation);if(r===null)return t;let a=r[1];return t.split(`
7
7
  `).map(i=>{let s=i.match(o.other.beginningSpace);if(s===null)return i;let[l]=s;return i.slice(Math.min(l.length,a.length))}).join(`
8
- `)}function xc(e,t,o,r){if(!t.includes("<"))return!1;for(let a=0;a<t.length;a++){if(t[a]==="\\"){a++;continue}if(t[a]==="`"){let l=r.inline.code.exec(t.slice(a));if(l){a+=l[0].length-1;continue}}if(t[a]!=="<")continue;let i=e.slice(o+a),s=r.inline.tag.exec(i)||r.inline.autolink.exec(i);if(s){if(s[0].length>t.length-a)return!0;a+=s[0].length-1}}return!1}var Yr=class{options;rules;lexer;constructor(e){this.options=e||uo}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let o=this.options.pedantic?t[0]:bc(t[0]),r=o.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:o,codeBlockStyle:"indented",text:r}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let o=t[0],r=Jh(o,t[3]||"",this.rules);return{type:"code",raw:o,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let o=t[2].trim();if(this.rules.other.endingHash.test(o)){let r=Xn(o,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceTabChar.test(r))&&(o=r.trim())}return{type:"heading",raw:Xn(t[0],`
9
- `),depth:t[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Xn(t[0],`
10
- `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let o=Xn(t[0],`
8
+ `)}function Cc(e,t,o,r){if(!t.includes("<"))return!1;for(let a=0;a<t.length;a++){if(t[a]==="\\"){a++;continue}if(t[a]==="`"){let l=r.inline.code.exec(t.slice(a));if(l){a+=l[0].length-1;continue}}if(t[a]!=="<")continue;let i=e.slice(o+a),s=r.inline.tag.exec(i)||r.inline.autolink.exec(i);if(s){if(s[0].length>t.length-a)return!0;a+=s[0].length-1}}return!1}var ta=class{options;rules;lexer;constructor(e){this.options=e||fo}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let o=this.options.pedantic?t[0]:wc(t[0]),r=o.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:o,codeBlockStyle:"indented",text:r}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let o=t[0],r=fb(o,t[3]||"",this.rules);return{type:"code",raw:o,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let o=t[2].trim();if(this.rules.other.endingHash.test(o)){let r=Yn(o,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceTabChar.test(r))&&(o=r.trim())}return{type:"heading",raw:Yn(t[0],`
9
+ `),depth:t[1].length,text:o,tokens:this.lexer.inline(o)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Yn(t[0],`
10
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let o=Yn(t[0],`
11
11
  `).split(`
12
12
  `),r="",a="",i=[];for(;o.length>0;){let s=!1,l=[],c;for(c=0;c<o.length;c++)if(this.rules.other.blockquoteStart.test(o[c]))l.push(o[c]),s=!0;else if(!s)l.push(o[c]);else break;o=o.slice(c);let d=l.join(`
13
13
  `),p=d.replace(this.rules.other.blockquoteSetextReplace,`
14
14
  $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
15
15
  ${d}`:d,a=a?`${a}
16
- ${p}`:p;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,i,!0),this.lexer.state.top=u,o.length===0)break;let f=i.at(-1);if(f?.type==="code")break;if(f?.type==="blockquote"){let m=f,g=o.join(`
17
- `),h=m.raw+`
18
- `+g.replace(this.rules.other.blockquoteSetextReplace2,""),v=this.blockquote(h);i[i.length-1]=v;let b=h.substring(v.raw.length).replace(/^\n/,""),x=b?b.split(`
19
- `).length:0,w=x?o.slice(0,-x):o;w.length>0&&(r=`${r}
20
- ${w.join(`
21
- `)}`),a=a.substring(0,a.length-m.text.length)+v.text;break}else if(f?.type==="list"){let m=f,g=m.raw+`
16
+ ${p}`:p;let u=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(p,i,!0),this.lexer.state.top=u,o.length===0)break;let m=i.at(-1);if(m?.type==="code")break;if(m?.type==="blockquote"){let f=m,g=o.join(`
17
+ `),h=f.raw+`
18
+ `+g.replace(this.rules.other.blockquoteSetextReplace2,""),b=this.blockquote(h);i[i.length-1]=b;let v=h.substring(b.raw.length).replace(/^\n/,""),w=v?v.split(`
19
+ `).length:0,k=w?o.slice(0,-w):o;k.length>0&&(r=`${r}
20
+ ${k.join(`
21
+ `)}`),a=a.substring(0,a.length-f.text.length)+b.text;break}else if(m?.type==="list"){let f=m,g=f.raw+`
22
22
  `+o.join(`
23
- `),h=this.list(g);i[i.length-1]=h,r=r.substring(0,r.length-f.raw.length)+h.raw,a=a.substring(0,a.length-m.raw.length)+h.raw,o=g.substring(i.at(-1).raw.length).split(`
23
+ `),h=this.list(g);i[i.length-1]=h,r=r.substring(0,r.length-m.raw.length)+h.raw,a=a.substring(0,a.length-f.raw.length)+h.raw,o=g.substring(i.at(-1).raw.length).split(`
24
24
  `);continue}}return{type:"blockquote",raw:r,tokens:i,text:a}}}list(e){let t=this.rules.block.list.exec(e);if(t){let o=t[1].trim(),r=o.length>1,a={type:"list",raw:"",ordered:r,start:r?+o.slice(0,-1):"",loose:!1,items:[]};o=r?`\\d{1,9}\\${o.slice(-1)}`:`\\${o}`,this.options.pedantic&&(o=r?o:"[*+-]");let i=this.rules.other.listItemRegex(o),s=!1;for(;e;){let c=!1,d="",p="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;d=t[0],e=e.substring(d.length);let u=t[2].split(`
25
- `,1)[0],f=t[1].length,m=this.options.pedantic?vc(u,f):u.replace(this.rules.other.leadingSpaceTab,b=>vc(b,f)),g=e.split(`
26
- `,1)[0],h=!m.trim(),v=0;if(this.options.pedantic?(v=2,p=m.trimStart()):h?v=f+1:(v=m.search(this.rules.other.nonSpaceChar),v=v>4?1:v,p=m.slice(v),v+=f),h&&this.rules.other.blankLine.test(g)&&(d+=g+`
27
- `,e=e.substring(g.length+1),c=!0),!c){let b=this.rules.other.nextBulletRegex(v),x=this.rules.other.hrRegex(v),w=this.rules.other.fencesBeginRegex(v),S=this.rules.other.headingBeginRegex(v),T=this.rules.other.htmlBeginRegex(v),F=this.rules.other.blockquoteBeginRegex(v);for(;e;){let B=e.split(`
28
- `,1)[0],N;if(g=B,this.options.pedantic?(g=g.replace(this.rules.other.listReplaceNesting," "),N=g):N=g.replace(this.rules.other.leadingSpaceTab,j=>j.replace(this.rules.other.tabCharGlobal," ")),w.test(g)||S.test(g)||T.test(g)||F.test(g)||b.test(g)||x.test(g))break;if(N.search(this.rules.other.nonSpaceChar)>=v||!g.trim())p+=`
29
- `+N.slice(v);else{if(h||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||w.test(m)||S.test(m)||x.test(m))break;p+=`
30
- `+g}h=!g.trim(),d+=B+`
31
- `,e=e.substring(B.length+1),m=N.slice(v)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(s=!0)),a.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(p),loose:!1,text:p,tokens:[]}),a.raw+=d}let l=a.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let c of a.items)if(this.lexer.state.top=!1,c.tokens=this.lexer.blockTokens(c.text,[]),!a.loose){let d=c.tokens.filter(u=>u.type==="space"),p=d.length>0&&d.some(u=>this.rules.other.anyLine.test(u.raw));a.loose=p}for(let c of a.items){let d=c.tokens[0];if(c.task&&(d?.type==="text"||d?.type==="paragraph")){c.text=c.text.replace(this.rules.other.listReplaceTask,""),d.raw=d.raw.replace(this.rules.other.listReplaceTask,""),d.text=d.text.replace(this.rules.other.listReplaceTask,"");for(let u=this.lexer.inlineQueue.length-1;u>=0;u--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[u].src)){this.lexer.inlineQueue[u].src=this.lexer.inlineQueue[u].src.replace(this.rules.other.listReplaceTask,"");break}let p=this.rules.other.listTaskCheckbox.exec(c.raw);if(p){let u={type:"checkbox",raw:p[0]+" ",checked:p[0]!=="[ ]"};c.checked=u.checked,a.loose?c.tokens[0]&&["paragraph","text"].includes(c.tokens[0].type)&&"tokens"in c.tokens[0]&&c.tokens[0].tokens?(c.tokens[0].raw=u.raw+c.tokens[0].raw,c.tokens[0].text=u.raw+c.tokens[0].text,c.tokens[0].tokens.unshift(u)):c.tokens.unshift({type:"paragraph",raw:u.raw,text:u.raw,tokens:[u]}):c.tokens.unshift(u)}}else c.task&&(c.task=!1)}if(a.loose)for(let c of a.items){c.loose=!0;for(let d of c.tokens)d.type==="text"&&(d.type="paragraph")}return a}}html(e){let t=this.rules.block.html.exec(e);if(t){let o=bc(t[0]);return{type:"html",block:!0,raw:o,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:o}}}def(e){let t=this.rules.block.def.exec(e);if(t){let o=Kr(t[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:o,raw:Xn(t[0],`
32
- `),href:r,title:a}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let o=hc(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
33
- `):[],i={type:"table",raw:Xn(t[0],`
34
- `),header:[],align:[],rows:[]};if(o.length===r.length){for(let s of r)this.rules.other.tableAlignRight.test(s)?i.align.push("right"):this.rules.other.tableAlignCenter.test(s)?i.align.push("center"):this.rules.other.tableAlignLeft.test(s)?i.align.push("left"):i.align.push(null);for(let s=0;s<o.length;s++)i.header.push({text:o[s],tokens:this.lexer.inline(o[s]),header:!0,align:i.align[s]});for(let s of a)i.rows.push(hc(s,i.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:i.align[c]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let o=t[1].trim();return{type:"heading",raw:Xn(t[0],`
25
+ `,1)[0],m=t[1].length,f=this.options.pedantic?zc(u,m):u.replace(this.rules.other.leadingSpaceTab,v=>zc(v,m)),g=e.split(`
26
+ `,1)[0],h=!f.trim(),b=0;if(this.options.pedantic?(b=2,p=f.trimStart()):h?b=m+1:(b=f.search(this.rules.other.nonSpaceChar),b=b>4?1:b,p=f.slice(b),b+=m),h&&this.rules.other.blankLine.test(g)&&(d+=g+`
27
+ `,e=e.substring(g.length+1),c=!0),!c){let v=this.rules.other.nextBulletRegex(b),w=this.rules.other.hrRegex(b),k=this.rules.other.fencesBeginRegex(b),x=this.rules.other.headingBeginRegex(b),T=this.rules.other.htmlBeginRegex(b),F=this.rules.other.blockquoteBeginRegex(b);for(;e;){let V=e.split(`
28
+ `,1)[0],D;if(g=V,this.options.pedantic?(g=g.replace(this.rules.other.listReplaceNesting," "),D=g):D=g.replace(this.rules.other.leadingSpaceTab,j=>j.replace(this.rules.other.tabCharGlobal," ")),k.test(g)||x.test(g)||T.test(g)||F.test(g)||v.test(g)||w.test(g))break;if(D.search(this.rules.other.nonSpaceChar)>=b||!g.trim())p+=`
29
+ `+D.slice(b);else{if(h||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(f)||x.test(f)||w.test(f))break;p+=`
30
+ `+g}h=!g.trim(),d+=V+`
31
+ `,e=e.substring(V.length+1),f=D.slice(b)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(d)&&(s=!0)),a.items.push({type:"list_item",raw:d,task:!!this.options.gfm&&this.rules.other.listIsTask.test(p),loose:!1,text:p,tokens:[]}),a.raw+=d}let l=a.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let c of a.items)if(this.lexer.state.top=!1,c.tokens=this.lexer.blockTokens(c.text,[]),!a.loose){let d=c.tokens.filter(u=>u.type==="space"),p=d.length>0&&d.some(u=>this.rules.other.anyLine.test(u.raw));a.loose=p}for(let c of a.items){let d=c.tokens[0];if(c.task&&(d?.type==="text"||d?.type==="paragraph")){c.text=c.text.replace(this.rules.other.listReplaceTask,""),d.raw=d.raw.replace(this.rules.other.listReplaceTask,""),d.text=d.text.replace(this.rules.other.listReplaceTask,"");for(let u=this.lexer.inlineQueue.length-1;u>=0;u--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[u].src)){this.lexer.inlineQueue[u].src=this.lexer.inlineQueue[u].src.replace(this.rules.other.listReplaceTask,"");break}let p=this.rules.other.listTaskCheckbox.exec(c.raw);if(p){let u={type:"checkbox",raw:p[0]+" ",checked:p[0]!=="[ ]"};c.checked=u.checked,a.loose?c.tokens[0]&&["paragraph","text"].includes(c.tokens[0].type)&&"tokens"in c.tokens[0]&&c.tokens[0].tokens?(c.tokens[0].raw=u.raw+c.tokens[0].raw,c.tokens[0].text=u.raw+c.tokens[0].text,c.tokens[0].tokens.unshift(u)):c.tokens.unshift({type:"paragraph",raw:u.raw,text:u.raw,tokens:[u]}):c.tokens.unshift(u)}}else c.task&&(c.task=!1)}if(a.loose)for(let c of a.items){c.loose=!0;for(let d of c.tokens)d.type==="text"&&(d.type="paragraph")}return a}}html(e){let t=this.rules.block.html.exec(e);if(t){let o=wc(t[0]);return{type:"html",block:!0,raw:o,pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:o}}}def(e){let t=this.rules.block.def.exec(e);if(t){let o=ea(t[1]).replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:o,raw:Yn(t[0],`
32
+ `),href:r,title:a}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let o=kc(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
33
+ `):[],i={type:"table",raw:Yn(t[0],`
34
+ `),header:[],align:[],rows:[]};if(o.length===r.length){for(let s of r)this.rules.other.tableAlignRight.test(s)?i.align.push("right"):this.rules.other.tableAlignCenter.test(s)?i.align.push("center"):this.rules.other.tableAlignLeft.test(s)?i.align.push("left"):i.align.push(null);for(let s=0;s<o.length;s++)i.header.push({text:o[s],tokens:this.lexer.inline(o[s]),header:!0,align:i.align[s]});for(let s of a)i.rows.push(kc(s,i.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:i.align[c]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let o=t[1].trim();return{type:"heading",raw:Yn(t[0],`
35
35
  `),depth:t[2].charAt(0)==="="?1:2,text:o,tokens:this.lexer.inline(o)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let o=t[1].charAt(t[1].length-1)===`
36
- `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:o,tokens:this.lexer.inline(o)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let o=t[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&xc(e,t[1],o,this.rules))return;let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let s=Xn(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{let s=Gh(t[2],"()");if(s===-2)return;if(s>-1){let l=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let a=t[2],i="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(a);s&&(a=s[1],i=s[3])}else i=t[3]?t[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?a=a.slice(1):a=a.slice(1,-1)),yc(t,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let o;if((o=this.rules.inline.reflink.exec(e))||(o=this.rules.inline.nolink.exec(e))){let r=o[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&xc(e,o[1],r,this.rules))return;let a=(o[2]||o[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[Kr(a)];if(!i){let s=o[0].charAt(0);return{type:"text",raw:s,text:s}}return yc(o,i,o[0],this.lexer,this.rules)}}emStrong(e,t,o=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&o.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!o||this.rules.inline.punctuation.exec(o))){let a=[...r[0]].length-1,i,s,l=a,c=0,d=r[0][0],p=o===d,u=d==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+a);(r=u.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(s=[...i].length,r[3]||r[4]){l+=s;continue}else if(r[5]||r[6]){if(a%3&&!((a+s)%3)){c+=s;continue}if(p)break}if(l-=s,l>0)continue;s=Math.min(s,s+l+c);let f=[...r[0]][0].length,m=e.slice(0,a+r.index+f+s);if(Math.min(a,s)%2){let h=m.slice(1,-1);return{type:"em",raw:m,text:h,tokens:this.lexer.inlineTokens(h)}}let g=m.slice(2,-2);return{type:"strong",raw:m,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let o=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(o),a=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return r&&a&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:t[0],text:o}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,o=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!o||this.rules.inline.punctuation.exec(o))){let a=[...r[0]].length-1,i,s,l=a,c=this.rules.inline.delRDelim;for(c.lastIndex=0,t=t.slice(-1*e.length+a);(r=c.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(s=[...i].length,s!==a))continue;if(r[3]||r[4]){l+=s;continue}if(l-=s,l>0)continue;s=Math.min(s,s+l);let d=[...r[0]][0].length,p=e.slice(0,a+r.index+d+s),u=p.slice(a,-a);return{type:"del",raw:p,text:u,tokens:this.lexer.inlineTokens(u)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let o,r;return t[2]==="@"?(o=t[1],r="mailto:"+o):(o=t[1],r=o),{type:"link",raw:t[0],text:o,href:r,autolink:!0,tokens:[{type:"text",raw:o,text:o}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let o,r;if(t[2]==="@")o=t[0],r="mailto:"+o;else{let a;do a=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(a!==t[0]);o=t[0],t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:o,href:r,autolink:!0,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let o=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:o?t[0]:jh(t[0]),escaped:o}}}},xn=class gi{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||uo,this.options.tokenizer=this.options.tokenizer||new Yr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let o={other:Ft,block:Jr.normal,inline:sr.normal};this.options.pedantic?(o.block=Jr.pedantic,o.inline=sr.pedantic):this.options.gfm&&(o.block=Jr.gfm,this.options.breaks?o.inline=sr.breaks:o.inline=sr.gfm),this.tokenizer.rules=o}static get rules(){return{block:Jr,inline:sr}}static lex(t,o){return new gi(o).lex(t)}static lexInline(t,o){return new gi(o).inlineTokens(t)}lex(t){t=t.replace(Ft.carriageReturn,`
37
- `),this.blockTokens(t,this.tokens);for(let o=0;o<this.inlineQueue.length;o++){let r=this.inlineQueue[o];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,o=[],r=!1){this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(Ft.tabCharGlobal," ").replace(Ft.spaceLine,""));let a=1/0;for(;t;){if(t.length<a)a=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(l=>(i=l.call({lexer:this},t,o))?(t=t.substring(i.raw.length),o.push(i),!0):!1))continue;if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length);let l=o.at(-1);i.raw.length===1&&l!==void 0?l.raw+=`
36
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:o,tokens:this.lexer.inline(o)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let o=t[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&Cc(e,t[1],o,this.rules))return;let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let s=Yn(r.slice(0,-1),"\\");if((r.length-s.length)%2===0)return}else{let s=pb(t[2],"()");if(s===-2)return;if(s>-1){let l=(t[0].indexOf("!")===0?5:4)+t[1].length+s;t[2]=t[2].substring(0,s),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let a=t[2],i="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(a);s&&(a=s[1],i=s[3])}else i=t[3]?t[3].slice(1,-1):"";return a=a.trim(),this.rules.other.startAngleBracket.test(a)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?a=a.slice(1):a=a.slice(1,-1)),Sc(t,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let o;if((o=this.rules.inline.reflink.exec(e))||(o=this.rules.inline.nolink.exec(e))){let r=o[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&Cc(e,o[1],r,this.rules))return;let a=(o[2]||o[1]).replace(this.rules.other.multipleSpaceGlobal," "),i=t[ea(a)];if(!i){let s=o[0].charAt(0);return{type:"text",raw:s,text:s}}return Sc(o,i,o[0],this.lexer,this.rules)}}emStrong(e,t,o=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&o.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!o||this.rules.inline.punctuation.exec(o))){let a=[...r[0]].length-1,i,s,l=a,c=0,d=r[0][0],p=o===d,u=d==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+a);(r=u.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(s=[...i].length,r[3]||r[4]){l+=s;continue}else if(r[5]||r[6]){if(a%3&&!((a+s)%3)){c+=s;continue}if(p)break}if(l-=s,l>0)continue;s=Math.min(s,s+l+c);let m=[...r[0]][0].length,f=e.slice(0,a+r.index+m+s);if(Math.min(a,s)%2){let h=f.slice(1,-1);return{type:"em",raw:f,text:h,tokens:this.lexer.inlineTokens(h)}}let g=f.slice(2,-2);return{type:"strong",raw:f,text:g,tokens:this.lexer.inlineTokens(g)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let o=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(o),a=this.rules.other.startingSpaceChar.test(o)&&this.rules.other.endingSpaceChar.test(o);return r&&a&&(o=o.substring(1,o.length-1)),{type:"codespan",raw:t[0],text:o}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,o=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!o||this.rules.inline.punctuation.exec(o))){let a=[...r[0]].length-1,i,s,l=a,c=this.rules.inline.delRDelim;for(c.lastIndex=0,t=t.slice(-1*e.length+a);(r=c.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(s=[...i].length,s!==a))continue;if(r[3]||r[4]){l+=s;continue}if(l-=s,l>0)continue;s=Math.min(s,s+l);let d=[...r[0]][0].length,p=e.slice(0,a+r.index+d+s),u=p.slice(a,-a);return{type:"del",raw:p,text:u,tokens:this.lexer.inlineTokens(u)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let o,r;return t[2]==="@"?(o=t[1],r="mailto:"+o):(o=t[1],r=o),{type:"link",raw:t[0],text:o,href:r,autolink:!0,tokens:[{type:"text",raw:o,text:o}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let o,r;if(t[2]==="@")o=t[0],r="mailto:"+o;else{let a;do a=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(a!==t[0]);o=t[0],t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:o,href:r,autolink:!0,tokens:[{type:"text",raw:o,text:o}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let o=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:o?t[0]:ub(t[0]),escaped:o}}}},kn=class ki{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||fo,this.options.tokenizer=this.options.tokenizer||new ta,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,top:!0};let o={other:Ut,block:Zr.normal,inline:dr.normal};this.options.pedantic?(o.block=Zr.pedantic,o.inline=dr.pedantic):this.options.gfm&&(o.block=Zr.gfm,this.options.breaks?o.inline=dr.breaks:o.inline=dr.gfm),this.tokenizer.rules=o}static get rules(){return{block:Zr,inline:dr}}static lex(t,o){return new ki(o).lex(t)}static lexInline(t,o){return new ki(o).inlineTokens(t)}lex(t){t=t.replace(Ut.carriageReturn,`
37
+ `),this.blockTokens(t,this.tokens);for(let o=0;o<this.inlineQueue.length;o++){let r=this.inlineQueue[o];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,o=[],r=!1){this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(Ut.tabCharGlobal," ").replace(Ut.spaceLine,""));let a=1/0;for(;t;){if(t.length<a)a=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(l=>(i=l.call({lexer:this},t,o))?(t=t.substring(i.raw.length),o.push(i),!0):!1))continue;if(i=this.tokenizer.space(t)){t=t.substring(i.raw.length);let l=o.at(-1);i.raw.length===1&&l!==void 0?l.raw+=`
38
38
  `:o.push(i);continue}if(i=this.tokenizer.code(t)){t=t.substring(i.raw.length);let l=o.at(-1);l?.type==="paragraph"||l?.type==="text"?(l.raw+=(l.raw.endsWith(`
39
39
  `)?"":`
40
40
  `)+i.raw,l.text+=`
@@ -47,7 +47,7 @@ ${w.join(`
47
47
  `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):o.push(i),r=s.length!==t.length,t=t.substring(i.raw.length);continue}if(i=this.tokenizer.text(t)){t=t.substring(i.raw.length);let l=o.at(-1);l?.type==="text"?(l.raw+=(l.raw.endsWith(`
48
48
  `)?"":`
49
49
  `)+i.raw,l.text+=`
50
- `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):o.push(i);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,o}inline(t,o=[]){return this.inlineQueue.push({src:t,tokens:o}),o}linkInText(t){if(!t.includes("["))return!1;let o=this.tokenizer.rules.inline.link;for(let r of t.matchAll(this.tokenizer.rules.inline.blockSkip))if(o.test(r[0])&&t.charAt(r.index-1)!=="!")return!0;for(let r of t.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let a=r[0],i=a.lastIndexOf("[");if(!(a.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,Kr(a.slice(i+1,-1))))&&!(i>1&&this.linkInText(a.slice(1,i-1))))return!0}return!1}inlineTokens(t,o=[]){this.tokenizer.lexer=this;let r=t;if(this.tokens.links&&t.includes("[")){let l=this.tokenizer.rules.inline.reflinkSearch,c=d=>{let p=d.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,Kr(d.slice(p+1,-1))))return d;if(p>1&&d.charAt(0)!=="!"){let u=d.slice(1,p-1);if(this.linkInText(u))return"["+u.replace(l,c)+"]["+"a".repeat(d.length-p-2)+"]"}return"["+"a".repeat(d.length-2)+"]"};r=r.replace(l,c)}r=r.replace(this.tokenizer.rules.inline.anyPunctuation,l=>"+".repeat(l.length)),r=r.replace(this.tokenizer.rules.inline.blockSkip,(l,c,d)=>{let p=d?d.length:0;return l.slice(0,p)+"["+"a".repeat(l.length-p-2)+"]"}),r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let a=!1,i="",s=1/0;for(;t;){if(t.length<s)s=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}a||(i=""),a=!1;let l;if(this.options.extensions?.inline?.some(d=>(l=d.call({lexer:this},t,o))?(t=t.substring(l.raw.length),o.push(l),!0):!1))continue;if(l=this.tokenizer.escape(t)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.tag(t)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.link(t)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(l.raw.length);let d=o.at(-1);l.type==="text"&&d?.type==="text"?(d.raw+=l.raw,d.text+=l.text):o.push(l);continue}if(l=this.tokenizer.emStrong(t,r,i)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.codespan(t)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.br(t)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.del(t,r,i)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.autolink(t)){t=t.substring(l.raw.length),o.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(t))){t=t.substring(l.raw.length),o.push(l);continue}let c=t;if(this.options.extensions?.startInline){let d=1/0,p=t.slice(1),u;this.options.extensions.startInline.forEach(f=>{u=f.call({lexer:this},p),typeof u=="number"&&u>=0&&(d=Math.min(d,u))}),d<1/0&&d>=0&&(c=t.substring(0,d+1))}if(l=this.tokenizer.inlineText(c)){t=t.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(i=l.raw.slice(-1)),a=!0;let d=o.at(-1);d?.type==="text"?(d.raw+=l.raw,d.text+=l.text):o.push(l);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return o}infiniteLoopError(t){let o="Infinite loop on byte: "+t;if(this.options.silent)console.error(o);else throw new Error(o)}},Zr=class{options;parser;constructor(e){this.options=e||uo}space(e){return""}code({text:e,lang:t,escaped:o}){let r=(t||"").match(Ft.notSpaceStart)?.[0],a=e?e.replace(Ft.endingNewline,"")+`
50
+ `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=l.text):o.push(i);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return this.state.top=!0,o}inline(t,o=[]){return this.inlineQueue.push({src:t,tokens:o}),o}linkInText(t){if(!t.includes("["))return!1;let o=this.tokenizer.rules.inline.link;for(let r of t.matchAll(this.tokenizer.rules.inline.blockSkip))if(o.test(r[0])&&t.charAt(r.index-1)!=="!")return!0;for(let r of t.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let a=r[0],i=a.lastIndexOf("[");if(!(a.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,ea(a.slice(i+1,-1))))&&!(i>1&&this.linkInText(a.slice(1,i-1))))return!0}return!1}inlineTokens(t,o=[]){this.tokenizer.lexer=this;let r=t;if(this.tokens.links&&t.includes("[")){let l=this.tokenizer.rules.inline.reflinkSearch,c=d=>{let p=d.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,ea(d.slice(p+1,-1))))return d;if(p>1&&d.charAt(0)!=="!"){let u=d.slice(1,p-1);if(this.linkInText(u))return"["+u.replace(l,c)+"]["+"a".repeat(d.length-p-2)+"]"}return"["+"a".repeat(d.length-2)+"]"};r=r.replace(l,c)}r=r.replace(this.tokenizer.rules.inline.anyPunctuation,l=>"+".repeat(l.length)),r=r.replace(this.tokenizer.rules.inline.blockSkip,(l,c,d)=>{let p=d?d.length:0;return l.slice(0,p)+"["+"a".repeat(l.length-p-2)+"]"}),r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let a=!1,i="",s=1/0;for(;t;){if(t.length<s)s=t.length;else{this.infiniteLoopError(t.charCodeAt(0));break}a||(i=""),a=!1;let l;if(this.options.extensions?.inline?.some(d=>(l=d.call({lexer:this},t,o))?(t=t.substring(l.raw.length),o.push(l),!0):!1))continue;if(l=this.tokenizer.escape(t)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.tag(t)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.link(t)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(l.raw.length);let d=o.at(-1);l.type==="text"&&d?.type==="text"?(d.raw+=l.raw,d.text+=l.text):o.push(l);continue}if(l=this.tokenizer.emStrong(t,r,i)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.codespan(t)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.br(t)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.del(t,r,i)){t=t.substring(l.raw.length),o.push(l);continue}if(l=this.tokenizer.autolink(t)){t=t.substring(l.raw.length),o.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(t))){t=t.substring(l.raw.length),o.push(l);continue}let c=t;if(this.options.extensions?.startInline){let d=1/0,p=t.slice(1),u;this.options.extensions.startInline.forEach(m=>{u=m.call({lexer:this},p),typeof u=="number"&&u>=0&&(d=Math.min(d,u))}),d<1/0&&d>=0&&(c=t.substring(0,d+1))}if(l=this.tokenizer.inlineText(c)){t=t.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(i=l.raw.slice(-1)),a=!0;let d=o.at(-1);d?.type==="text"?(d.raw+=l.raw,d.text+=l.text):o.push(l);continue}if(t){this.infiniteLoopError(t.charCodeAt(0));break}}return o}infiniteLoopError(t){let o="Infinite loop on byte: "+t;if(this.options.silent)console.error(o);else throw new Error(o)}},na=class{options;parser;constructor(e){this.options=e||fo}space(e){return""}code({text:e,lang:t,escaped:o}){let r=(t||"").match(Ut.notSpaceStart)?.[0],a=e?e.replace(Ut.endingNewline,"")+`
51
51
  `:"";return r?'<pre><code class="language-'+dn(r)+'">'+(o?a:dn(a,!0))+`</code></pre>
52
52
  `:"<pre><code>"+(o?a:dn(a,!0))+`</code></pre>
53
53
  `}blockquote({tokens:e}){return`<blockquote>
@@ -65,8 +65,8 @@ ${this.parser.parse(e)}</blockquote>
65
65
  `}tablerow({text:e}){return`<tr>
66
66
  ${e}</tr>
67
67
  `}tablecell(e){let t=this.parser.parseInline(e.tokens),o=e.header?"th":"td";return(e.align?`<${o} align="${e.align}">`:`<${o}>`)+t+`</${o}>
68
- `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${dn(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,text:o,tokens:r,autolink:a}){let i=a?dn(o,!0):this.parser.parseInline(r),s=gc(e);if(s===null)return i;e=dn(s,a);let l='<a href="'+e+'"';return t&&(l+=' title="'+dn(t)+'"'),l+=">"+i+"</a>",l}image({href:e,title:t,text:o,tokens:r}){r&&(o=this.parser.parseInline(r,this.parser.textRenderer));let a=gc(e);if(a===null)return dn(o);e=a;let i=`<img src="${dn(e)}" alt="${dn(o)}"`;return t&&(i+=` title="${dn(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:dn(e.text)}},Si=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},kn=class hi{options;renderer;textRenderer;constructor(t){this.options=t||uo,this.options.renderer=this.options.renderer||new Zr,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Si}static parse(t,o){return new hi(o).parse(t)}static parseInline(t,o){return new hi(o).parseInline(t)}parse(t){this.renderer.parser=this;let o="";for(let r=0;r<t.length;r++){let a=t[r];if(this.options.extensions?.renderers?.[a.type]){let s=a,l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(s.type)){o+=l||"";continue}}let i=a;switch(i.type){case"space":{o+=this.renderer.space(i);break}case"hr":{o+=this.renderer.hr(i);break}case"heading":{o+=this.renderer.heading(i);break}case"code":{o+=this.renderer.code(i);break}case"table":{o+=this.renderer.table(i);break}case"blockquote":{o+=this.renderer.blockquote(i);break}case"list":{o+=this.renderer.list(i);break}case"checkbox":{o+=this.renderer.checkbox(i);break}case"html":{o+=this.renderer.html(i);break}case"def":{o+=this.renderer.def(i);break}case"paragraph":{o+=this.renderer.paragraph(i);break}case"text":{o+=this.renderer.text(i);break}default:{let s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return o}parseInline(t,o=this.renderer){this.renderer.parser=this;let r="";for(let a=0;a<t.length;a++){let i=t[a];if(this.options.extensions?.renderers?.[i.type]){let l=this.options.extensions.renderers[i.type].call({parser:this},i);if(l!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(i.type)){r+=l||"";continue}}let s=i;switch(s.type){case"escape":{r+=o.text(s);break}case"html":{r+=o.html(s);break}case"link":{r+=o.link(s);break}case"image":{r+=o.image(s);break}case"checkbox":{r+=o.checkbox(s);break}case"strong":{r+=o.strong(s);break}case"em":{r+=o.em(s);break}case"codespan":{r+=o.codespan(s);break}case"br":{r+=o.br(s);break}case"del":{r+=o.del(s);break}case"text":{r+=o.text(s);break}default:{let l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return r}},lr=class{options;block;constructor(e){this.options=e||uo}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?xn.lex:xn.lexInline}provideParser(e=this.block){return e?kn.parse:kn.parseInline}},Ci=class{defaults=bi();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=kn;Renderer=Zr;TextRenderer=Si;Lexer=xn;Tokenizer=Yr;Hooks=lr;constructor(...e){this.use(...e)}walkTokens(e,t){let o=[];for(let r of e)switch(o=o.concat(t.call(this,r)),r.type){case"table":{let a=r;for(let i of a.header)o=o.concat(this.walkTokens(i.tokens,t));for(let i of a.rows)for(let s of i)o=o.concat(this.walkTokens(s.tokens,t));break}case"list":{let a=r;o=o.concat(this.walkTokens(a.items,t));break}default:{let a=r;this.defaults.extensions?.childTokens?.[a.type]?this.defaults.extensions.childTokens[a.type].forEach(i=>{let s=a[i].flat(1/0);o=o.concat(this.walkTokens(s,t))}):a.tokens&&(o=o.concat(this.walkTokens(a.tokens,t)))}}return o}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(o=>{let r={...o};if(r.async=this.defaults.async||r.async||!1,o.extensions&&(o.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let i=t.renderers[a.name];i?t.renderers[a.name]=function(...s){let l=a.renderer.apply(this,s);return l===!1&&(l=i.apply(this,s)),l}:t.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=t[a.level];i?i.unshift(a.tokenizer):t[a.level]=[a.tokenizer],a.start&&(a.level==="block"?t.startBlock?t.startBlock.push(a.start):t.startBlock=[a.start]:a.level==="inline"&&(t.startInline?t.startInline.push(a.start):t.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(t.childTokens[a.name]=a.childTokens)}),r.extensions=t),o.renderer){let a=this.defaults.renderer||new Zr(this.defaults);for(let i in o.renderer){if(!(i in a))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let s=i,l=o.renderer[s],c=a[s];a[s]=(...d)=>{let p=l.apply(a,d);return p===!1&&(p=c.apply(a,d)),p||""}}r.renderer=a}if(o.tokenizer){let a=this.defaults.tokenizer||new Yr(this.defaults);for(let i in o.tokenizer){if(!(i in a))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let s=i,l=o.tokenizer[s],c=a[s];a[s]=(...d)=>{let p=l.apply(a,d);return p===!1&&(p=c.apply(a,d)),p}}r.tokenizer=a}if(o.hooks){let a=this.defaults.hooks||new lr;for(let i in o.hooks){if(!(i in a))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let s=i,l=o.hooks[s],c=a[s];lr.passThroughHooks.has(i)?a[s]=d=>{if(this.defaults.async&&lr.passThroughHooksRespectAsync.has(i))return(async()=>{let u=await l.call(a,d);return c.call(a,u)})();let p=l.call(a,d);return c.call(a,p)}:a[s]=(...d)=>{if(this.defaults.async)return(async()=>{let u=await l.apply(a,d);return u===!1&&(u=await c.apply(a,d)),u})();let p=l.apply(a,d);return p===!1&&(p=c.apply(a,d)),p}}r.hooks=a}if(o.walkTokens){let a=this.defaults.walkTokens,i=o.walkTokens;r.walkTokens=function(s){let l=[];return l.push(i.call(this,s)),a&&(l=l.concat(a.call(this,s))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return xn.lex(e,t??this.defaults)}parser(e,t){return kn.parse(e,t??this.defaults)}parseMarkdown(e){return(t,o)=>{let r={...o},a={...this.defaults,...r},i=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&r.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=e),a.async)return(async()=>{let s=a.hooks?await a.hooks.preprocess(t):t,l=await(a.hooks?await a.hooks.provideLexer(e):e?xn.lex:xn.lexInline)(s,a),c=a.hooks?await a.hooks.processAllTokens(l):l;a.walkTokens&&await Promise.all(this.walkTokens(c,a.walkTokens));let d=await(a.hooks?await a.hooks.provideParser(e):e?kn.parse:kn.parseInline)(c,a);return a.hooks?await a.hooks.postprocess(d):d})().catch(i);try{a.hooks&&(t=a.hooks.preprocess(t));let s=(a.hooks?a.hooks.provideLexer(e):e?xn.lex:xn.lexInline)(t,a);a.hooks&&(s=a.hooks.processAllTokens(s)),a.walkTokens&&this.walkTokens(s,a.walkTokens);let l=(a.hooks?a.hooks.provideParser(e):e?kn.parse:kn.parseInline)(s,a);return a.hooks&&(l=a.hooks.postprocess(l)),l}catch(s){return i(s)}}}onError(e,t){return o=>{if(o.message+=`
69
- Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+dn(o.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(o);throw o}}},co=new Ci;function at(e,t){return co.parse(e,t)}at.options=at.setOptions=function(e){return co.setOptions(e),at.defaults=co.defaults,kc(at.defaults),at};at.getDefaults=bi;at.defaults=uo;function Xh(...e){return co.use(...e),at.defaults=co.defaults,kc(at.defaults),at}at.use=Xh;at.walkTokens=function(e,t){return co.walkTokens(e,t)};at.parseInline=co.parseInline;at.Parser=kn;at.parser=kn.parse;at.Renderer=Zr;at.TextRenderer=Si;at.Lexer=xn;at.lexer=xn.lex;at.Tokenizer=Yr;at.Hooks=lr;at.parse=at;var Yk=at.options,Zk=at.setOptions,Qk=at.walkTokens,ew=at.parseInline;var tw=kn.parse,nw=xn.lex;var aa,Te,Mc,Kh,Kn,Pc,Lc,Dc,_i,ea,pr,Nc,Pi,Ai,Ti,Oc,na={},oa=[],Yh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,fr=Array.isArray;function Fn(e,t){for(var o in t)e[o]=t[o];return e}function Ii(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function fo(e,t,o){var r,a,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?aa.call(arguments,2):o),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return ta(e,s,r,a,null)}function ta(e,t,o,r,a){var i={type:e,props:t,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:a??++Mc,__i:-1,__u:0};return a==null&&Te.vnode!=null&&Te.vnode(i),i}function M(e){return e.children}function wn(e,t){this.props=e,this.context=t}function po(e,t){if(t==null)return e.__?po(e.__,e.__i+1):null;for(var o;t<e.__k.length;t++)if((o=e.__k[t])!=null&&o.__e!=null)return o.__e;return typeof e.type=="function"?po(e):null}function Zh(e){if(e.__P&&e.__d){var t=e.__v,o=t.__e,r=[],a=[],i=Fn({},t);i.__v=t.__v+1,Te.vnode&&Te.vnode(i),Ri(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[o]:null,r,o??po(t),!!(32&t.__u),a),i.__v=t.__v,i.__.__k[i.__i]=i,Hc(r,i,a),t.__e=t.__=null,i.__e!=o&&Fc(i)}}function Fc(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),Fc(e)}function Ei(e){(!e.__d&&(e.__d=!0)&&Kn.push(e)&&!ra.__r++||Pc!=Te.debounceRendering)&&((Pc=Te.debounceRendering)||Lc)(ra)}function ra(){try{for(var e,t=1;Kn.length;)Kn.length>t&&Kn.sort(Dc),e=Kn.shift(),t=Kn.length,Zh(e)}finally{Kn.length=ra.__r=0}}function Bc(e,t,o,r,a,i,s,l,c,d,p){var u,f,m,g,h,v,b=r&&r.__k||oa,x=t.length;for(c=Qh(o,t,b,c,x),u=0;u<x;u++)(m=o.__k[u])!=null&&(f=m.__i!=-1&&b[m.__i]||na,m.__i=u,v=Ri(e,m,f,a,i,s,l,c,d,p),g=m.__e,m.ref&&f.ref!=m.ref&&(f.ref&&Mi(f.ref,null,m),p.push(m.ref,m.__c||g,m)),h==null&&g!=null&&(h=g),4&m.__u?(c=$c(m,c,e),f.__e&&(f.__e=null)):typeof m.type=="function"&&v!==void 0?c=v:g&&(c=g.nextSibling),m.__u&=-7);return o.__e=h,c}function Qh(e,t,o,r,a){var i,s,l,c,d,p=o.length,u=p,f=0;for(e.__k=new Array(a),i=0;i<a;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?s=e.__k[i]=ta(null,s,null,null,null):fr(s)?s=e.__k[i]=ta(M,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?s=e.__k[i]=ta(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[i]=s,c=i+f,s.__=e,s.__b=e.__b+1,l=null,(d=s.__i=eb(s,o,c,u))!=-1&&(u--,(l=o[d])&&(l.__u|=2)),l==null||l.__v==null?(d==-1&&(a>p?f--:a<p&&f++),typeof s.type!="function"&&(s.__u|=4)):d!=c&&(d==c-1?f--:d==c+1?f++:(d>c?f--:f++,s.__u|=4))):e.__k[i]=null;if(u)for(i=0;i<p;i++)(l=o[i])!=null&&(2&l.__u)==0&&(l.__e==r&&(r=po(l)),Wc(l,l));return r}function $c(e,t,o){var r,a;if(typeof e.type=="function"){for(r=e.__k,a=0;r&&a<r.length;a++)r[a]&&(r[a].__=e,t=$c(r[a],t,o));return t}e.__e!=t&&(t&&e.type&&!t.parentNode&&(t=po(e)),t=o.insertBefore(e.__e,t||null));do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function mr(e,t){return t=t||[],e==null||typeof e=="boolean"||(fr(e)?e.some(function(o){mr(o,t)}):t.push(e)),t}function eb(e,t,o,r){var a,i,s,l=e.key,c=e.type,d=t[o],p=d!=null&&(2&d.__u)==0;if(d===null&&l==null||p&&l==d.key&&c==d.type)return o;if(r>(p?1:0)){for(a=o-1,i=o+1;a>=0||i<t.length;)if((d=t[s=a>=0?a--:i++])!=null&&(2&d.__u)==0&&l==d.key&&c==d.type)return s}return-1}function Ic(e,t,o){t[0]=="-"?e.setProperty(t,o??""):e[t]=o==null?"":typeof o!="number"||Yh.test(t)?o:o+"px"}function Qr(e,t,o,r,a){var i,s;e:if(t=="style")if(typeof o=="string")e.style.cssText=o;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)o&&t in o||Ic(e.style,t,"");if(o)for(t in o)r&&o[t]==r[t]||Ic(e.style,t,o[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Nc,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=o,o?r?o[pr]=r[pr]:(o[pr]=Pi,e.addEventListener(t,i?Ti:Ai,i)):e.removeEventListener(t,i?Ti:Ai,i);else{if(a=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=o??"";break e}catch{}typeof o=="function"||(o==null||o===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&o==1?"":o))}}function Rc(e){return function(t){if(this.l){var o=this.l[t.type+e];if(t[ea]==null)t[ea]=Pi++;else if(t[ea]<o[pr])return;return o(Te.event?Te.event(t):t)}}}function Ri(e,t,o,r,a,i,s,l,c,d){var p,u,f,m,g,h,v,b,x,w,S,T,F,B,N,j,_=t.type;if(t.constructor!==void 0)return null;128&o.__u&&(c=!!(32&o.__u),i=[l=t.__e=o.__e]),(p=Te.__b)&&p(t);e:if(typeof _=="function"){u=s.length;try{if(x=t.props,w=_.prototype&&_.prototype.render,S=(p=_.contextType)&&r[p.__c],T=p?S?S.props.value:p.__:r,o.__c?b=(f=t.__c=o.__c).__=f.__E:(w?t.__c=f=new _(x,T):(t.__c=f=new wn(x,T),f.constructor=_,f.render=nb),S&&S.sub(f),f.state||(f.state={}),f.__n=r,m=f.__d=!0,f.__h=[],f._sb=[]),w&&f.__s==null&&(f.__s=f.state),w&&_.getDerivedStateFromProps!=null&&(f.__s==f.state&&(f.__s=Fn({},f.__s)),Fn(f.__s,_.getDerivedStateFromProps(x,f.__s))),g=f.props,h=f.state,f.__v=t,m)w&&_.getDerivedStateFromProps==null&&f.componentWillMount!=null&&f.componentWillMount(),w&&f.componentDidMount!=null&&f.__h.push(f.componentDidMount);else{if(w&&_.getDerivedStateFromProps==null&&x!==g&&f.componentWillReceiveProps!=null&&f.componentWillReceiveProps(x,T),t.__v==o.__v||!f.__e&&f.shouldComponentUpdate!=null&&f.shouldComponentUpdate(x,f.__s,T)===!1){t.__v!=o.__v&&(f.props=x,f.state=f.__s,f.__d=!1),t.__e=o.__e,t.__k=o.__k,t.__k.some(function(L){L&&(L.__=t)}),oa.push.apply(f.__h,f._sb),f._sb=[],f.__h.length&&s.push(f),l=po(o);break e}f.componentWillUpdate!=null&&f.componentWillUpdate(x,f.__s,T),w&&f.componentDidUpdate!=null&&f.__h.push(function(){f.componentDidUpdate(g,h,v)})}if(f.context=T,f.props=x,f.__P=e,f.__e=!1,F=Te.__r,B=0,w)f.state=f.__s,f.__d=!1,F&&F(t),p=f.render(f.props,f.state,f.context),oa.push.apply(f.__h,f._sb),f._sb=[];else do f.__d=!1,F&&F(t),p=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++B<25);f.state=f.__s,f.getChildContext!=null&&(r=Fn(Fn({},r),f.getChildContext())),w&&!m&&f.getSnapshotBeforeUpdate!=null&&(v=f.getSnapshotBeforeUpdate(g,h)),N=p!=null&&p.type===M&&p.key==null?qc(p.props.children):p,l=Bc(e,fr(N)?N:[N],t,o,r,a,i,s,l,c,d),f.base=t.__e,t.__u&=-161,f.__h.length&&s.push(f),b&&(f.__E=f.__=null)}catch(L){if(s.length=u,t.__v=null,c||i!=null){if(L.then){for(t.__u|=c?160:128;l&&l.nodeType==8&&l.nextSibling;)l=l.nextSibling;i!=null&&(i[i.indexOf(l)]=null),t.__e=l}else if(i!=null)for(j=i.length;j--;)Ii(i[j])}else t.__e=o.__e;t.__k==null&&(t.__k=o.__k||[]),L.then||Uc(t),Te.__e(L,t,o)}}else i==null&&t.__v==o.__v?(t.__k=o.__k,t.__e=o.__e):l=t.__e=tb(o.__e,t,o,r,a,i,s,c,d);return(p=Te.diffed)&&p(t),128&t.__u?void 0:l}function Uc(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(Uc))}function Hc(e,t,o){for(var r=0;r<o.length;r++)Mi(o[r],o[++r],o[++r]);Te.__c&&Te.__c(t,e),e.some(function(a){try{e=a.__h,a.__h=[],e.some(function(i){i.call(a)})}catch(i){Te.__e(i,a.__v)}})}function qc(e){return typeof e!="object"||e==null||e.__b>0?e:fr(e)?e.map(qc):e.constructor!==void 0?null:Fn({},e)}function tb(e,t,o,r,a,i,s,l,c){var d,p,u,f,m,g,h,v=o.props||na,b=t.props,x=t.type;if(x=="svg"?a="http://www.w3.org/2000/svg":x=="math"?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),i!=null){for(d=0;d<i.length;d++)if((m=i[d])&&"setAttribute"in m==!!x&&(x?m.localName==x:m.nodeType==3)){e=m,i[d]=null;break}}if(e==null){if(x==null)return document.createTextNode(b);e=document.createElementNS(a,x,b.is&&b),l&&(Te.__m&&Te.__m(t,i),l=!1),i=null}if(x==null)v===b||l&&e.data==b||(e.data=b);else{if(i=x=="textarea"&&b.defaultValue!=null?null:i&&aa.call(e.childNodes),!l&&i!=null)for(v={},d=0;d<e.attributes.length;d++)v[(m=e.attributes[d]).name]=m.value;for(d in v)m=v[d],d=="dangerouslySetInnerHTML"?u=m:d=="children"||d in b||d=="value"&&"defaultValue"in b||d=="checked"&&"defaultChecked"in b||Qr(e,d,null,m,a);for(d in b)m=b[d],d=="children"?f=m:d=="dangerouslySetInnerHTML"?p=m:d=="value"?g=m:d=="checked"?h=m:l&&typeof m!="function"||v[d]===m||Qr(e,d,m,v[d],a);if(p)l||u&&(p.__html==u.__html||p.__html==e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(u&&(e.innerHTML=""),Bc(t.type=="template"?e.content:e,fr(f)?f:[f],t,o,r,x=="foreignObject"?"http://www.w3.org/1999/xhtml":a,i,s,i?i[0]:o.__k&&po(o,0),l,c),i!=null)for(d=i.length;d--;)Ii(i[d]);l&&x!="textarea"||(d="value",x=="progress"&&g==null?e.removeAttribute("value"):g!=null&&(g!==e[d]||x=="progress"&&!g||x=="option"&&g!=v[d])&&Qr(e,d,g,v[d],a),d="checked",h!=null&&h!=e[d]&&Qr(e,d,h,v[d],a))}return e}function Mi(e,t,o){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(a){Te.__e(a,o)}}function Wc(e,t,o){var r,a;if(Te.unmount&&Te.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Mi(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){Te.__e(i,t)}r.base=r.__P=r.__n=null}if(r=e.__k)for(a=0;a<r.length;a++)r[a]&&Wc(r[a],t,o||typeof e.type!="function");o||Ii(e.__e),e.__c=e.__=e.__e=void 0}function nb(e,t,o){return this.constructor(e,o)}function Oe(e,t,o){var r,a,i,s;t==document&&(t=document.documentElement),Te.__&&Te.__(e,t),a=(r=typeof o=="function")?null:o&&o.__k||t.__k,i=[],s=[],Ri(t,e=(!r&&o||t).__k=fo(M,null,[e]),a||na,na,t.namespaceURI,!r&&o?[o]:a?null:t.firstChild?aa.call(t.childNodes):null,i,!r&&o?o:a?a.__e:t.firstChild,r,s),Hc(i,e,s),e.props.children=null}function ia(e){function t(o){var r,a;return this.getChildContext||(r=new Set,(a={})[t.__c]=this,this.getChildContext=function(){return a},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&r.forEach(function(s){s.__e=!0,Ei(s)})},this.sub=function(i){r.add(i);var s=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),s&&s.call(i)}}),o.children}return t.__c="__cC"+Oc++,t.__=e,t.Provider=t.__l=(t.Consumer=function(o,r){return o.children(r)}).contextType=t,t}aa=oa.slice,Te={__e:function(e,t,o,r){for(var a,i,s;t=t.__;)if((a=t.__c)&&!a.__)try{if((i=a.constructor)&&i.getDerivedStateFromError!=null&&(a.setState(i.getDerivedStateFromError(e)),s=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(e,r||{}),s=a.__d),s)return a.__E=a}catch(l){e=l}throw e}},Mc=0,Kh=function(e){return e!=null&&e.constructor===void 0},wn.prototype.setState=function(e,t){var o;o=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Fn({},this.state),typeof e=="function"&&(e=e(Fn({},o),this.props)),e&&Fn(o,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ei(this))},wn.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ei(this))},wn.prototype.render=M,Kn=[],Lc=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Dc=function(e,t){return e.__v.__b-t.__v.__b},ra.__r=0,_i=Math.random().toString(8),ea="__d"+_i,pr="__a"+_i,Nc=/(PointerCapture)$|Capture$/i,Pi=0,Ai=Rc(!1),Ti=Rc(!0),Oc=0;var Yn,ct,Li,Vc,gr=0,Qc=[],_t=Te,jc=_t.__b,Gc=_t.__r,Jc=_t.diffed,Xc=_t.__c,Kc=_t.unmount,Yc=_t.__;function Bo(e,t){_t.__h&&_t.__h(ct,e,gr||t),gr=0;var o=ct.__H||(ct.__H={__:[],__h:[]});return e>=o.__.length&&o.__.push({}),o.__[e]}function C(e){return gr=1,ed(td,e)}function ed(e,t,o){var r=Bo(Yn++,2);if(r.t=e,!r.__c&&(r.__=[o?o(t):td(void 0,t),function(l){var c=r.__N?r.__N[0]:r.__[0],d=r.t(c,l);c!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=ct,!ct.__f)){var a=function(l,c,d){if(!r.__c.__H)return!0;var p=!1,u=r.__c.props!==l;if(r.__c.__H.__.some(function(m){if(m.__N){p=!0;var g=m.__[0];m.__=m.__N,m.__N=void 0,g!==m.__[0]&&(u=!0)}}),i){var f=i.call(this,l,c,d);return p?f||u:f}return!p||u};ct.__f=!0;var i=ct.shouldComponentUpdate,s=ct.componentWillUpdate;ct.componentWillUpdate=function(l,c,d){if(this.__e){var p=i;i=void 0,a(l,c,d),i=p}s&&s.call(this,l,c,d)},ct.shouldComponentUpdate=a}return r.__N||r.__}function W(e,t){var o=Bo(Yn++,3);!_t.__s&&Oi(o.__H,t)&&(o.__=e,o.u=t,ct.__H.__h.push(o))}function Zn(e,t){var o=Bo(Yn++,4);!_t.__s&&Oi(o.__H,t)&&(o.__=e,o.u=t,ct.__h.push(o))}function oe(e){return gr=5,Yt(function(){return{current:e}},[])}function Yt(e,t){var o=Bo(Yn++,7);return Oi(o.__H,t)&&(o.__=e(),o.__H=t,o.__h=e),o.__}function Bt(e,t){return gr=8,Yt(function(){return e},t)}function Ni(e){var t=ct.context[e.__c],o=Bo(Yn++,9);return o.c=e,t?(o.__==null&&(o.__=!0,t.sub(ct)),t.props.value):e.__}function Mn(){var e=Bo(Yn++,11);if(!e.__){for(var t=ct.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var o=t.__m||(t.__m=[0,0]);e.__="P"+o[0]+"-"+o[1]++}return e.__}function ob(){for(var e;e=Qc.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(sa),t.__h.some(Di),t.__h=[]}catch(o){t.__h=[],_t.__e(o,e.__v)}}}_t.__b=function(e){ct=null,jc&&jc(e)},_t.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Yc&&Yc(e,t)},_t.__r=function(e){Gc&&Gc(e),Yn=0;var t=(ct=e.__c).__H;t&&(Li===ct?(t.__h=[],ct.__h=[],t.__.some(function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):(t.__h.some(sa),t.__h.some(Di),t.__h=[],Yn=0)),Li=ct},_t.diffed=function(e){Jc&&Jc(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Qc.push(t)!==1&&Vc===_t.requestAnimationFrame||((Vc=_t.requestAnimationFrame)||rb)(ob)),t.__H.__.some(function(o){o.u&&(o.__H=o.u,o.u=void 0)})),Li=ct=null},_t.__c=function(e,t){t.some(function(o){try{o.__h.some(sa),o.__h=o.__h.filter(function(r){return!r.__||Di(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],_t.__e(r,o.__v)}}),Xc&&Xc(e,t)},_t.unmount=function(e){Kc&&Kc(e);var t,o=e.__c;o&&o.__H&&(o.__H.__.some(function(r){try{sa(r)}catch(a){t=a}}),o.__H=void 0,t&&_t.__e(t,o.__v))};var Zc=typeof requestAnimationFrame=="function";function rb(e){var t,o=function(){clearTimeout(r),Zc&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(o,35);Zc&&(t=requestAnimationFrame(o))}function sa(e){var t=ct,o=e.__c;typeof o=="function"&&(e.__c=void 0,o()),ct=t}function Di(e){var t=ct;e.__c=e.__(),ct=t}function Oi(e,t){return!e||e.length!==t.length||t.some(function(o,r){return o!==e[r]})}function td(e,t){return typeof t=="function"?t(e):t}var Fi=null;function nd(e){Fi=e}function un(e){return Fi&&e&&typeof window<"u"&&e===window.tangu?{...e,...Fi}:e}var zn=e=>!!(e?.unitPage&&e.unitPublicEntry||e?.mobile&&e.extendMobile),pn=e=>!!e&&(!e.unitPage||!!e.unitPublicEntry),ee=()=>un(typeof window<"u"?window.tangu:void 0)||{};function la(e){let t=typeof e?.status=="number"?e.status:0;if(t>=200&&t<300)return{ok:!0,status:t,data:e?.json??null};let o=e?.json&&typeof e.json=="object"?e.json:null,r=typeof o?.error=="string"?o.error:typeof o?.code=="string"?o.code:null,a=typeof o?.detail=="string"?o.detail:typeof o?.message=="string"?o.message:null;return{ok:!1,status:t,code:r,detail:a,transport:typeof e?.error=="string"?e.error:null}}var Bi=e=>({ok:!1,status:0,code:null,detail:null,transport:e});async function q(e,t={}){let o=ee().cloudFetch;if(!o)return Bi("no_bridge");try{return la(await o({path:e,...t}))}catch(r){return Bi(String(r?.message||r))}}async function hr(e,t){if(!e)return t();try{return la(await e())}catch(o){return Bi(String(o?.message||o))}}var Bn=e=>e.status===401&&(e.transport==="not_signed_in"||e.code===null&&e.detail===null&&e.transport===null);function kt(e){return String(e?.message??e??"").replace(/^Error invoking remote method '[^']*':\s*/,"").replace(/^(?:[A-Za-z]*Error):\s*/,"").trim()}async function Sn(e,t,o){let r=ee().cloudInvoke;if(!r)return!1;let a=e==="membership"&&t?o?[e,t,o]:[e,t]:[e];try{return!!(await r("auth:openPayCenter",...a))?.ok}catch{return!1}}async function mo(e){let t=ee().openAccountCenter;if(!t)return!1;try{return!!(await t(e)).ok}catch{return!1}}var ab=0;function n(e,t,o,r,a,i){t||(t={});var s,l,c=t;if("ref"in c)for(l in c={},t)l=="ref"?s=t[l]:c[l]=t[l];var d={type:e,props:c,key:o,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--ab,__i:-1,__u:0,__source:a,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(l in s)c[l]===void 0&&(c[l]=s[l]);return Te.vnode&&Te.vnode(d),d}var ib={user:"M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z M4 20c.8-3.5 4-5.5 8-5.5s7.2 2 8 5.5",backpack:"M9 5V3h6v2 M6 8a6 6 0 0 1 12 0v12H6V8Z M9 13h6v5H9z M3 11h3v7H3z M18 11h3v7h-3 M10 8h4",gauge:"M4 16a8 8 0 1 1 16 0 M12 16l4-5 M12 16h.01",bug:"M8.5 9.5a3.5 3.5 0 0 1 7 0V15a3.5 3.5 0 0 1-7 0V9.5Z M12 10v8 M4 13h4.5 M15.5 13H20 M5 8.5l3.5 2 M19 8.5l-3.5 2 M5 18.5l3.5-2 M19 18.5l-3.5-2 M10 6L9 4 M14 6l1-2",pointer:"M5 4l13 6.5-5.5 1.5L10.5 18 5 4Z",shield:"M12 3l7 3v5c0 4.5-3 8.2-7 10-4-1.8-7-5.5-7-10V6l7-3Z",chart:"M4 20V10 M10 20V4 M16 20v-7 M21 20H3",message:"M5 4h14a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-7l-5 4v-4H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Z",card:"M4 6h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1Z M3 10h18 M7 15h4",coins:"M9 11a5 5 0 1 0 0-10 5 5 0 0 0 0 10Z M15.5 9.2A5 5 0 1 1 9.8 16",clock:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z M12 7v5l3 2",gift:"M4 11h16v9H4z M3 7h18v4H3z M12 7v13 M12 7c-1.5-3-5-3-5-1s3 1 5 1c2 0 5 1 5-1s-3.5-2-5 1",key:"M8 15a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z M11 11h10 M17 11v3 M20 11v2",laptop:"M5 5h14v10H5z M3 19h18",alert:"M12 4l9 16H3l9-16Z M12 10v4 M12 17h.01",external:"M14 4h6v6 M20 4l-9 9 M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5",copy:"M9 9h11v11H9z M5 15H4V4h11v1",check:"M5 12.5l4.5 4.5L19 7.5",checkin:"M5 5h14v15H5z M5 10h14 M9 3v4 M15 3v4 M9 15l2 2 4-4",tasks:"M4 6l2 2 3-3 M4 16l2 2 3-3 M12 7h9 M12 17h9",gamepad:"M6 8h12a4 4 0 0 1 4 4v3a3 3 0 0 1-5.4 1.8L15 15H9l-1.6 1.8A3 3 0 0 1 2 15v-3a4 4 0 0 1 4-4Z M7 11v3 M5.5 12.5h3 M15.5 12h.01 M18 13.5h.01",megaphone:"M4 10v4h3l9 4V6l-9 4H4Z M19 10a3 3 0 0 1 0 4 M8 14.5V19h3v-3",play:"M7 5l12 7-12 7V5Z",chevron:"M9 6l6 6-6 6",back:"M15 6l-6 6 6 6",arrowLeft:"M19 12H5M11 6l-6 6 6 6",pencil:"M4 20h4L19 9l-4-4L4 16v4Z M13.5 6.5l4 4",plus:"M12 5v14 M5 12h14",refresh:"M20 11a8 8 0 0 0-14.3-4.9L4 8 M4 4v4h4 M4 13a8 8 0 0 0 14.3 4.9L20 16 M20 20v-4h-4",phone:"M8 3h8a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M11 18h2",mail:"M4 6h16v12H4z M4 7l8 6 8-6",image:"M4 5h16v14H4z M4 16l5-5 4 4 3-3 4 4 M15.5 9.5h.01",x:"M6 6l12 12 M18 6L6 18",logout:"M15 4h4v16h-4 M10 8l-4 4 4 4 M6 12h10",globe:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z M3 12h18 M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3Z",lock:"M6 11h12v9H6z M8.5 11V8a3.5 3.5 0 0 1 7 0v3",palette:"M12 3a9 9 0 0 0 0 18c1.2 0 2-.8 2-1.9 0-.5-.2-.9-.5-1.3-.3-.4-.5-.8-.5-1.3 0-1 .8-1.8 1.8-1.8H17a4 4 0 0 0 4-4c0-4.3-4-7.7-9-7.7Z M7.5 12.5h.01 M9 8.5h.01 M14 7.5h.01",calendar:"M5 5h14v15H5z M5 10h14 M9 3v4 M15 3v4",link:"M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1 M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1",flame:"M12 21a6 6 0 0 0 6-6c0-2.5-1.4-4.4-3-6-.3 1.5-1 2.5-2 3 .3-3-1-6-3.5-8 .2 3-1 4.8-2.2 6.3C6.4 11.5 6 13.2 6 15a6 6 0 0 0 6 6Z",trophy:"M8 4h8v6a4 4 0 0 1-8 0V4Z M8 6H5v1a3 3 0 0 0 3 3 M16 6h3v1a3 3 0 0 1-3 3 M12 14v4 M8.5 20h7",sprout:"M12 20v-8 M12 12c0-3-2-5-6-5 0 3.5 2 5 6 5Z M12 14c0-3 2-5 6-5 0 3.5-2 5-6 5Z",eye:"M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z M12 14.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z",download:"M12 4v11 M7.5 11l4.5 4.5 4.5-4.5 M5 20h14",upload:"M12 16V5 M7.5 9.5 12 5l4.5 4.5 M5 20h14",up:"M12 19V5 M6 11l6-6 6 6",down:"M12 5v14 M6 13l6 6 6-6",sparkles:"M12 4l1.8 4.7 4.7 1.8-4.7 1.8L12 17l-1.8-4.7-4.7-1.8 4.7-1.8L12 4Z M18.5 15.5v4 M16.5 17.5h4",bot:"M6 9h12v10H6z M12 9V5 M12 4.5h.01 M9.5 13.5h.01 M14.5 13.5h.01 M3.5 13v3 M20.5 13v3",box:"M12 3l8 4.5v9L12 21l-8-4.5v-9L12 3Z M4 7.5l8 4.5 8-4.5 M12 12v9",grid:"M4 4h7v7H4z M13 4h7v7h-7z M4 13h7v7H4z M13 13h7v7h-7z",note:"M6 3h9l4 4v14H6z M15 3v4h4 M9 12h6 M9 16h4",puzzle:"M9 3H4v6a3 3 0 1 0 0 6v5h6a3 3 0 1 1 6 0h4v-6a3 3 0 1 0 0-6V3h-5a3 3 0 1 1-6 0Z",home:"M4 11l8-7 8 7 M6 9.5V20h4v-5h4v5h4V9.5",info:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z M12 11v5 M12 8h.01",ticket:"M3 8a2 2 0 0 0 0 4v0a2 2 0 0 1 0 4v2h18v-2a2 2 0 0 1 0-4 2 2 0 0 0 0-4V6H3v2Z M14 6v12",at:"M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z M16 12v1.5a2.5 2.5 0 0 0 5 0V12a9 9 0 1 0-3.6 7.2",heart:"M19 14c1.5-1.5 3-3.2 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.8 0-3 .5-4.5 2-1.5-1.5-2.7-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4 3 5.5l7 7 7-7Z",star:"M12 3l2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3l-5.6 2.9 1.1-6.2L3 9.6l6.2-.9L12 3Z",rocket:"M4.5 16.5c-1.5 1.3-2 5-2 5s3.7-.5 5-2c.7-.8.7-2.1-.1-2.9a2.2 2.2 0 0 0-2.9-.1Z M12 15l-3-3a22 22 0 0 1 2-4A12.9 12.9 0 0 1 22 2c0 2.7-.8 7.5-6 11a22.4 22.4 0 0 1-4 2Z M9 12H4s.6-3 2-4c1.6-1.1 5 0 5 0 M12 15v5s3-.6 4-2c1.1-1.6 0-5 0-5",store:"M4 4h16l1 5H3l1-5Z M3 9a3 3 0 0 0 6 0 3 3 0 0 0 6 0 3 3 0 0 0 6 0 M5 11.5V20h14v-8.5 M10 20v-5h4v5"};function U({name:e,size:t=14,class:o}){return n("svg",{class:o,width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true",focusable:"false",children:n("path",{d:ib[e]})})}function Zt({size:e=12}){return n("svg",{class:"spin",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","aria-hidden":"true",focusable:"false",children:n("path",{d:"M21 12a9 9 0 1 1-6.2-8.56"})})}var sb={"events.title":"\u6D3B\u52A8","events.back":"\u8FD4\u56DE\u5E94\u7528","events.count":"{n} \u573A\u8FDB\u884C\u4E2D","events.group.active":"\u8FDB\u884C\u4E2D","events.group.notice":"\u516C\u544A","events.group.upcoming":"\u9884\u544A","events.ended":"\u5DF2\u7ED3\u675F\u7684\u6D3B\u52A8","events.endedEmpty":"\u8FD8\u6CA1\u6709\u7ED3\u675F\u7684\u6D3B\u52A8","events.list":"\u5168\u90E8\u6D3B\u52A8","events.kind.checkin":"\u7B7E\u5230","events.kind.tasks":"\u4EFB\u52A1","events.kind.game":"\u5C0F\u6E38\u620F","events.kind.notice":"\u516C\u544A","events.left.days":"\u5269 {n} \u5929","events.left.hours":"\u5269 {n} \u5C0F\u65F6","events.left.long":"\u5269\u4F59 {d} \u5929 {h} \u5C0F\u65F6","events.left.longHours":"\u5269\u4F59 {h} \u5C0F\u65F6","events.time.start":"{date} \u5F00\u59CB","events.time.claim":"\u6D3B\u52A8\u5DF2\u7ED3\u675F\uFF0C{date} \u524D\u9886\u53D6","events.time.claimShort":"{date} \u524D\u9886\u53D6","events.time.ended":"\u5DF2\u4E8E {date} \u7ED3\u675F","events.time.published":"{date} \u53D1\u5E03","events.rewards":"\u6D3B\u52A8\u5956\u52B1","events.checkin.signed":"\u5DF2\u7B7E {n}/{total}","events.checkin.today":"\u4ECA\u5929","events.checkin.day":"\u7B2C {n} \u5929","events.checkin.do":"\u4ECA\u65E5\u7B7E\u5230","events.checkin.done":"\u4ECA\u65E5\u5DF2\u7B7E","events.checkin.finished":"\u5DF2\u5168\u90E8\u7B7E\u5B8C","events.tasks.progress":"\u4EFB\u52A1\u8FDB\u5EA6","events.tasks.claim":"\u9886\u53D6","events.tasks.claimAll":"\u5168\u90E8\u9886\u53D6 ({n})","events.tasks.go":"\u53BB\u5B8C\u6210","events.tasks.closed":"\u6D3B\u52A8\u5DF2\u7ED3\u675F","events.game.board":"\u6392\u884C\u699C","events.game.me":"\u6211","events.game.anon":"\u533F\u540D\u73A9\u5BB6","events.game.enter":"\u8FDB\u5165\u6E38\u620F","events.game.install":"\u53BB\u5546\u5E97\u5B89\u88C5","events.game.empty":"\u8FD8\u6CA1\u6709\u4EBA\u4E0A\u699C","events.notice.more":"\u67E5\u770B\u8BE6\u60C5","events.toast.checkin":"\u5DF2\u7B7E\u5230\uFF0C{reward}","events.toast.claimed":"\u5DF2\u9886\u53D6 {reward}","events.toast.partial":"\u9886\u5230 {n} \u9879\uFF0C{m} \u9879\u6CA1\u9886\u5230\uFF0C\u7A0D\u540E\u518D\u8BD5","events.toast.backpack":"\u67E5\u770B\u80CC\u5305","events.err.failed":"\u6CA1\u9886\u5230\uFF0C\u7F51\u7EDC\u6062\u590D\u540E\u518D\u8BD5\u4E00\u6B21","events.err.notLive":"\u8FD9\u573A\u6D3B\u52A8\u5DF2\u7ECF\u7ED3\u675F","events.err.completed":"\u5DF2\u7ECF\u5168\u90E8\u7B7E\u5B8C","events.err.grantFailed":"\u5956\u52B1\u6CA1\u53D1\u51FA\u53BB\uFF0C\u5DF2\u767B\u8BB0\u8865\u53D1\uFF0C\u4E0D\u7528\u91CD\u590D\u9886\u53D6","events.login.title":"\u767B\u5F55\u540E\u53C2\u4E0E\u6D3B\u52A8","events.login.do":"\u767B\u5F55 Forsion","events.empty":"\u6682\u65F6\u6CA1\u6709\u8FDB\u884C\u4E2D\u7684\u6D3B\u52A8","events.error":"\u6D3B\u52A8\u6CA1\u6709\u52A0\u8F7D\u51FA\u6765","events.retry":"\u91CD\u8BD5","events.dot":"\u6709\u5956\u52B1\u53EF\u9886\u6216\u65B0\u6D3B\u52A8","penzor.rules.default":"\u4E91\u7AEF\u9ED8\u8BA4","penzor.rules.off":"\u4E0D\u540C\u6B65","penzor.rules.device":"\u8BBE\u5907","penzor.rules.run":"\u7ACB\u5373\u540C\u6B65","penzor.rules.twoWay":"\u53CC\u5411","penzor.rules.defaultForWeb":"\u9ED8\u8BA4\u76EE\u5F55\u4F9B\u7F51\u9875\u7AEF\u4F7F\u7528","penzor.rules.tab.rules":"\u540C\u6B65\u89C4\u5219","penzor.rules.tab.active":"\u6B63\u5728\u4F20\u8F93","penzor.rules.tab.history":"\u5386\u53F2\u8BB0\u5F55","penzor.rules.enable":"\u5F00\u542F\u5185\u5BB9\u540C\u6B65","penzor.rules.add":"\u6DFB\u52A0\u89C4\u5219","penzor.rules.source":"\u672C\u673A\u6765\u6E90","penzor.rules.destination":"\u4E91\u7AEF\u76EE\u6807","penzor.rules.direction":"\u65B9\u5411","penzor.rules.remove":"\u5220\u9664\u89C4\u5219","penzor.rules.inherit":"\u7A7A\u8DEF\u5F84\u4EE3\u8868\u6574\u4E2A Forsion\u3002\u5B50\u9879\u7EE7\u627F\u4E0A\u7EA7\u89C4\u5219\uFF0C\u6700\u5177\u4F53\u7684\u8DEF\u5F84\u4F18\u5148\uFF1B\u6CA1\u6709\u5339\u914D\u89C4\u5219\u7684\u5185\u5BB9\u4E0D\u540C\u6B65\u3002","penzor.rules.namespace":"\u9ED8\u8BA4\uFF1A\u4E91\u7AEF /Forsion/\uFF1B\u8BBE\u5907\u76EE\u5F55\uFF1A\u4E91\u7AEF /Forsion-\u8BBE\u5907ID/\u3002","penzor.rules.human":"human \u72EC\u7ACB\u9009\u62E9\u8303\u56F4\uFF1B\u9ED8\u8BA4\u65E5\u5386\u4F7F\u7528 human/CALENDAR.db\u3002\u6539\u5230\u8BBE\u5907\u76EE\u5F55\u540E\uFF0C\u7F51\u9875\u9ED8\u8BA4\u65E5\u5386\u4E0D\u8DDF\u968F\u5207\u6362\u3002","penzor.rules.preview":"\u9884\u89C8\u53D8\u66F4","penzor.rules.previewTitle":"\u786E\u8BA4\u672C\u6B21\u540C\u6B65\u8303\u56F4","penzor.rules.previewCounts":"\u4E0A\u4F20 {up} \u9879\uFF0C\u4E0B\u8F7D {down} \u9879\uFF0C{conflicts} \u9879\u5DF2\u6709\u4E0D\u540C\u5185\u5BB9\u9700\u5408\u5E76\u6216\u4FDD\u7559\u7248\u672C\u3002","penzor.rules.retain":"\u65E7\u76EE\u6807\u4E2D\u7684\u5185\u5BB9\u4FDD\u7559\u3002\u5173\u95ED\u540C\u6B65\u4E0D\u4F1A\u5220\u9664\u672C\u673A\u6216\u4E91\u7AEF\u6587\u4EF6\uFF1B\u6E90\u6587\u4EF6\u53D8\u5316\u540E\u9700\u91CD\u65B0\u9884\u89C8\u3002","penzor.rules.back":"\u8FD4\u56DE\u4FEE\u6539","penzor.rules.apply":"\u786E\u8BA4\u5E76\u5F00\u59CB","penzor.rules.pause":"\u6682\u505C","penzor.rules.resume":"\u7EE7\u7EED","penzor.rules.noActive":"\u5F53\u524D\u6CA1\u6709\u6587\u4EF6\u6B63\u5728\u4F20\u8F93\u3002","penzor.rules.manual":"\u624B\u52A8\u4E0A\u4F20\u4E0E\u4E0B\u8F7D","penzor.rules.historyNote":"\u4FDD\u7559\u6700\u8FD1 200 \u9879\u3002\u51B2\u7A81\u65F6\u4FDD\u7559\u4E24\u4E2A\u7248\u672C\uFF0C\u5176\u4F59\u5185\u5BB9\u7EE7\u7EED\u540C\u6B65\u3002","penzor.rules.retry":"\u91CD\u8BD5\u5931\u8D25\u9879","penzor.rules.noHistory":"\u8FD8\u6CA1\u6709\u540C\u6B65\u8BB0\u5F55\u3002","penzor.rules.details":"\u67E5\u770B\u4F20\u8F93","penzor.rules.plugins":"\u63D2\u4EF6\u6570\u636E\u4ECD\u7531\u5404\u63D2\u4EF6\u7684\u6570\u636E\u540C\u6B65\u7BA1\u7406\u3002","penzor.rules.turnOff":"\u5173\u95ED\u63D2\u4EF6\u6570\u636E\u540C\u6B65","penzor.rules.turnOn":"\u5F00\u542F\u63D2\u4EF6\u6570\u636E\u540C\u6B65","penzor.rules.phase.idle":"\u7B49\u5F85\u4E0B\u6B21\u540C\u6B65","penzor.rules.phase.scanning":"\u6B63\u5728\u6838\u5BF9\u6587\u4EF6","penzor.rules.phase.syncing":"\u6B63\u5728\u540C\u6B65","penzor.rules.phase.paused":"\u5DF2\u6682\u505C","penzor.rules.state.queued":"\u7B49\u5F85\u4E2D","penzor.rules.state.active":"\u4F20\u8F93\u4E2D","penzor.rules.state.done":"\u5DF2\u5B8C\u6210","penzor.rules.state.failed":"\u5931\u8D25","penzor.rules.state.paused":"\u5DF2\u6682\u505C","penzor.rules.state.conflict":"\u5DF2\u4FDD\u7559\u51B2\u7A81\u7248\u672C","penzor.tree.synced":"\u540C\u6B65\u7684\u5185\u5BB9","penzor.tree.thisBackup":"\u8FD9\u53F0\u7535\u8111 \xB7 \u53EA\u5907\u4EFD","penzor.tree.byApp":"\u6309\u5E94\u7528\u770B","penzor.tree.legacy":"\u65E7\u7248\u667A\u5E93\u540C\u6B65","penzor.quota.sourceLimit":"\u8FD9\u4E00\u7C7B\u8FD8\u6709\u5355\u72EC\u4E0A\u9650 {max}\uFF0C\u5DF2\u7528 {used}","penzor.ov.mine":"\u4F60\u653E\u7684","penzor.ov.synced":"\u540C\u6B65\u4E0A\u6765\u7684","penzor.ov.stale":"\u4E0D\u518D\u66F4\u65B0","penzor.ov.uploads":"\u4F60\u81EA\u5DF1\u4E0A\u4F20\u548C\u6574\u7406\u7684\u6587\u4EF6\uFF0C\u53EF\u4EE5\u968F\u4FBF\u6539","penzor.ov.all":"\u7B14\u8BB0\u3001Agents\u3001\u6211\u7684\u8D44\u6599\u3001\u63D2\u4EF6","penzor.ov.allLast":"\u7B14\u8BB0\u3001Agents\u3001\u6211\u7684\u8D44\u6599\u3001\u63D2\u4EF6 \xB7 \u4E0A\u6B21\u540C\u6B65 {time}","penzor.ov.self":"\u53EA\u6709\u8FD9\u53F0\u7535\u8111\u7528\u7684\u90A3\u4EFD","penzor.ov.device":"\u53EA\u5728\u8FD9\u53F0\u7535\u8111\u548C\u5B83\u4E4B\u95F4\u5171\u7528","penzor.ov.agents":"Agent \u7684\u8BBE\u7F6E\u3001\u8BB0\u5FC6\u548C\u65E5\u5FD7","penzor.ov.profile":"\u4F60\u7684\u8D44\u6599\u548C\u9ED8\u8BA4\u65E5\u5386","penzor.ov.sync":"\u7535\u8111\u540C\u6B65\u4E0A\u6765\u7684\u667A\u5E93","penzor.ov.legacy":"\u8FD9\u53F0\u7535\u8111\u5F00\u4E86\u65B0\u540C\u6B65\u540E\u4E0D\u518D\u5199\u5165\uFF0C\u7559\u7740\u4E0D\u5220","penzor.ov.ama":"\u7F51\u9875\u7248\u7684\u7B14\u8BB0\uFF0C\u548C\u540C\u6B65\u4E0A\u6765\u7684\u7B14\u8BB0","penzor.ov.apps":"\u5404\u5E94\u7528\u5B58\u7684\u6587\u4EF6\uFF0C\u53EF\u4EE5\u5220\u3001\u6539\u540D","penzor.ov.plugins":"\u63D2\u4EF6\u81EA\u5DF1\u5B58\u7684\u8BBE\u7F6E\uFF0C\u8FD9\u91CC\u53EA\u663E\u793A\u5360\u7528","penzor.ov.exports":"\u5BFC\u51FA\u7684\u6587\u4EF6\uFF0C\u53EF\u4EE5\u4E0B\u8F7D\u3001\u5220\u9664","penzor.ov.segNotes":"\u7B14\u8BB0","penzor.ov.segSync":"\u8BBE\u5907\u540C\u6B65","penzor.ov.segOther":"\u5176\u4ED6","penzor.content.badge":"\u65B0\u540C\u6B65\u7EF4\u62A4","penzor.content.badgeLast":"\u65B0\u540C\u6B65\u7EF4\u62A4 \xB7 \u4E0A\u6B21\u540C\u6B65 {time}","penzor.content.noteAll":"\u8FD9\u662F\u4E91\u7AEF\u7684\u90A3\u4E00\u4EFD\uFF0C\u4F60\u767B\u5F55\u7684\u6BCF\u53F0\u8BBE\u5907\u548C\u7F51\u9875\u7248\u770B\u5230\u7684\u90FD\u662F\u5B83\u3002\u8981\u6539\u6587\u4EF6\uFF0C\u5728\u7535\u8111\u4E0A\u7684\u7B14\u8BB0\u3001Agents \u91CC\u6539\uFF0C\u6539\u5B8C\u4F1A\u81EA\u52A8\u540C\u6B65\u4E0A\u6765\uFF1B\u8FD9\u91CC\u53EF\u4EE5\u4E0B\u8F7D\u3002","penzor.content.noteSelf":"\u53EA\u6709\u8FD9\u53F0\u7535\u8111\u7528\u7684\u90A3\u4E00\u4EFD\uFF0C\u522B\u7684\u8BBE\u5907\u770B\u4E0D\u5230\u3002\u8981\u6539\u6587\u4EF6\u5728\u8FD9\u53F0\u7535\u8111\u4E0A\u6539\uFF1B\u8FD9\u91CC\u53EF\u4EE5\u4E0B\u8F7D\u3002","penzor.content.noteDevice":"\u53EA\u5728\u8FD9\u53F0\u7535\u8111\u548C {name} \u4E4B\u95F4\u5171\u7528\u3002\u8981\u6539\u6587\u4EF6\u5728\u7535\u8111\u4E0A\u6539\uFF1B\u8FD9\u91CC\u53EF\u4EE5\u4E0B\u8F7D\u3002","penzor.legacy.title":"\u8FD9\u53F0\u7535\u8111\u5F00\u4E86\u65B0\u540C\u6B65\u540E\uFF0C\u5C31\u4E0D\u518D\u5F80\u8FD9\u4E2A\u5E93\u5199\u4E86","penzor.legacy.body":"\u8FD9\u53F0\u7535\u8111\u7684\u7B14\u8BB0\u73B0\u5728\u5728\u300C\u6240\u6709\u8BBE\u5907\u5171\u7528 \u203A \u7B14\u8BB0\u300D\u91CC\u3002\u8FD8\u6CA1\u5347\u7EA7\u7684\u65E7\u7248\u684C\u9762\u53EF\u80FD\u4ECD\u4F1A\u5199\u5230\u8FD9\u91CC\uFF0C\u6240\u4EE5\u8FD9\u4EFD\u7559\u7740\u3001\u4E0D\u5220\u3002","penzor.legacy.go":"\u53BB\u770B\u65B0\u7684\u90A3\u4EFD","penzor.drive.total":"\u6574\u4E2A\u84EC\u6D32\u4E91\u5DF2\u7528 {used} / {max}","penzor.drive.seeAll":"\u67E5\u770B","penzor.cs.statusOff":"\u672A\u5F00","penzor.cs.statusPaused":"\u5DF2\u6682\u505C","penzor.cs.statusRun":"\u540C\u6B65\u4E2D {pct}%","penzor.cs.statusScan":"\u6B63\u5728\u6838\u5BF9\u6587\u4EF6","penzor.cs.statusWarn":"{n} \u9879\u8981\u5904\u7406","penzor.cs.statusOk":"\u5DF2\u540C\u6B65","penzor.cs.statusOkAgo":"\u5DF2\u540C\u6B65 \xB7 {time}","penzor.widget.signedOut":"\u672A\u767B\u5F55 Forsion \u8D26\u53F7","penzor.widget.signInHint":"\u767B\u5F55\u540E\u624D\u80FD\u540C\u6B65","penzor.widget.off":"\u4E91\u540C\u6B65\u6CA1\u5F00","penzor.widget.paused":"\u540C\u6B65\u5DF2\u6682\u505C","penzor.widget.running":"\u6B63\u5728\u540C\u6B65","penzor.widget.problem":"\u540C\u6B65\u9047\u5230\u95EE\u9898","penzor.widget.active":"\u6B63\u5728\u4F20 {n} \u9879","penzor.widget.queued":"\u8FD8\u6709 {n} \u9879\u6392\u961F","penzor.widget.waiting":"{n} \u9879\u7B49\u5F85\u540C\u6B65","penzor.widget.failed":"\u6CA1\u540C\u6B65\u6210\u529F","penzor.widget.error":"\u540C\u6B65\u51FA\u9519\u4E86","penzor.widget.errorMeta":"\u51FA\u9519","penzor.widget.conflict":"\u51B2\u7A81\uFF0C\u4E24\u4EFD\u90FD\u7559\u7740","penzor.widget.more":"\u8FD8\u6709 {n} \u9879\u8981\u770B","penzor.widget.last":"\u4E0A\u6B21\u540C\u6B65 {time}","penzor.widget.pending":"\u4E91\u7AEF\u5DF2\u6709\u4E00\u4EFD\u7B14\u8BB0","penzor.widget.notesFailed":"\u7B14\u8BB0\u5E93\u4E0A\u6B21\u6CA1\u540C\u6B65\u6210\u529F","penzor.widget.agentsFailed":"Agent \u4E0A\u6B21\u6CA1\u540C\u6B65\u6210\u529F","penzor.cs.thisComputer":"\u8FD9\u53F0\u7535\u8111\uFF1A{name}","penzor.cs.thisComputerLabel":"\u8FD9\u53F0\u7535\u8111\uFF1A","penzor.cs.rename":"\u6539\u8FD9\u53F0\u7535\u8111\u7684\u540D\u5B57","penzor.cs.renameHint":"\u6539\u4E86\u4EE5\u540E\uFF0C\u522B\u7684\u8BBE\u5907\u4E0A\u4E5F\u663E\u793A\u8FD9\u4E2A\u540D\u5B57 \xB7 \u56DE\u8F66\u4FDD\u5B58","penzor.cs.name.taken":"\u53E6\u4E00\u53F0\u8BBE\u5907\u5DF2\u7ECF\u53EB\u8FD9\u4E2A\u540D\u5B57\uFF0C\u6362\u4E00\u4E2A\u5427","penzor.cs.name.reserved":"macOS\u3001Windows\u3001Linux \u7559\u7ED9\u7CFB\u7EDF\uFF0C\u6362\u4E00\u4E2A\u540D\u5B57\u5427","penzor.cs.name.invalid":"\u540D\u5B57\u6700\u591A 64 \u4E2A\u5B57\uFF0C\u4E0D\u80FD\u5E26\u65B9\u62EC\u53F7","penzor.cs.othersN":"\u53E6\u5916 {n} \u53F0\uFF1A{names}","penzor.cs.noOthers":"\u8FD8\u6CA1\u6709\u522B\u7684\u8BBE\u5907\u767B\u5F55\u8FD9\u4E2A\u8D26\u53F7","penzor.cs.log":"\u6700\u8FD1\u8BB0\u5F55","penzor.cs.more":"\u66F4\u591A","penzor.cs.advanced":"\u9AD8\u7EA7\uFF1A\u6309\u89C4\u5219\u7F16\u8F91","penzor.cs.backSimple":"\u8FD4\u56DE\u540C\u6B65","penzor.cs.firstTitle":"\u628A\u8FD9\u53F0\u7535\u8111\u540C\u6B65\u5230\u84EC\u6D32\u4E91","penzor.cs.firstBody":"\u4E0B\u9762\u662F\u5EFA\u8BAE\u7684\u8303\u56F4\uFF0C\u53EF\u4EE5\u5148\u6539\u3002\u70B9\u300C\u5F00\u59CB\u540C\u6B65\u300D\u4E4B\u524D\u4E0D\u4F1A\u4F20\u4EFB\u4F55\u4E1C\u897F\uFF1B\u4E91\u7AEF\u5DF2\u6709\u7684\u4E0D\u4F1A\u88AB\u8986\u76D6\u6216\u5220\u9664\u3002","penzor.cs.note":"\u60F3\u8BA9\u67D0\u4E2A\u7B14\u8BB0\u6587\u4EF6\u5939\u6216 Agent \u5355\u72EC\u5904\u7406\uFF0C\u70B9\u5B83\u4E0B\u9762\u90A3\u884C\u5C0F\u5B57\u5C31\u80FD\u6539\u3002\u5173\u6389\u5F00\u5173\u53EA\u662F\u4E0D\u518D\u540C\u6B65\uFF0C\u4E0D\u5220\u9664\u4EFB\u4F55\u6587\u4EF6\u3002","penzor.cs.barFirst":"\u6253\u5F00\u540C\u6B65\u4F1A\u4E0A\u4F20 {up} \u4E2A\u6587\u4EF6\u3001\u4E0B\u8F7D {down} \u4E2A","penzor.cs.barChanged":"\u6539\u4E86 {n} \u5904","penzor.cs.barOne":"\u6539\u4E86 1 \u5904\uFF1A\u300C{name}\u300D\u6539\u6210{scope}","penzor.cs.offName":"\u4E0D\u540C\u6B65","penzor.cs.barCounts":"\u4F1A\u4E0A\u4F20 {up} \u4E2A\u6587\u4EF6\u3001\u4E0B\u8F7D {down} \u4E2A \xB7 \u4E0D\u5220\u9664\u4EFB\u4F55\u6587\u4EF6","penzor.cs.barSize":"\u5171 {size}","penzor.cs.noDelete":"\u4E0D\u4F1A\u5220\u9664\u4EFB\u4F55\u6587\u4EF6","penzor.cs.barConflicts":"{n} \u4E2A\u4E24\u8FB9\u90FD\u6539\u8FC7\uFF0C\u4F1A\u5404\u7559\u4E00\u4EFD","penzor.cs.barCounting":"\u6B63\u5728\u7B97\u8981\u4F20\u591A\u5C11\u2026","penzor.cs.barRecount":"\u6587\u4EF6\u521A\u6709\u53D8\u5316\uFF0C\u5DF2\u7ECF\u91CD\u65B0\u7B97\u8FC7\uFF0C\u8BF7\u518D\u786E\u8BA4\u4E00\u6B21","penzor.cs.later":"\u5148\u4E0D\u5F00","penzor.cs.start":"\u5F00\u59CB\u540C\u6B65","penzor.cs.undo":"\u64A4\u9500","penzor.cs.confirm":"\u786E\u8BA4","penzor.cs.up":"\u6B63\u5728\u4E0A\u4F20\u300C{name}\u300D","penzor.cs.down":"\u6B63\u5728\u4E0B\u8F7D\u300C{name}\u300D","penzor.cs.waiting":"\u8FD8\u6709 {n} \u4E2A\u6587\u4EF6\u7B49\u7740\u4F20","penzor.cs.failedN":"{n} \u4E2A\u6587\u4EF6\u6CA1\u4F20\u6210\u529F","penzor.cs.retry":"\u91CD\u8BD5","penzor.cs.seeLog":"\u770B\u8BB0\u5F55","penzor.cs.logEmpty":"\u8FD8\u6CA1\u6709\u540C\u6B65\u8BB0\u5F55\u3002","penzor.cs.logNote":"\u4FDD\u7559\u6700\u8FD1 200 \u9879\u3002\u4E24\u8FB9\u90FD\u6539\u8FC7\u65F6\u4F1A\u5404\u7559\u4E00\u4EFD\u3002","penzor.cat.notes":"\u7B14\u8BB0","penzor.cat.notesDesc":"Amadeus \u91CC\u7684\u667A\u5E93","penzor.cat.agents":"Agents \u4E0E\u8BB0\u5FC6","penzor.cat.agentsDesc":"\u6BCF\u4E2A Agent \u7684\u8BBE\u7F6E\u3001\u8BB0\u5FC6\u548C\u65E5\u5FD7","penzor.cat.profile":"\u6211\u7684\u8D44\u6599","penzor.cat.profileDesc":"\u4F60\u7684\u8D44\u6599\u548C\u9ED8\u8BA4\u65E5\u5386","penzor.cat.profileOn":"\u542B\u9ED8\u8BA4\u65E5\u5386","penzor.cat.plugins":"\u63D2\u4EF6","penzor.cat.pluginsDesc":"\u63D2\u4EF6\u7684\u6587\u4EF6\u5939\u548C\u8BBE\u7F6E","penzor.cat.others":"\u5176\u4ED6\u6587\u4EF6","penzor.cat.othersDesc":"\u5DE5\u4F5C\u6587\u4EF6\u5939\u91CC\u4E0D\u5C5E\u4E8E\u4E0A\u9762\u51E0\u7C7B\u7684\u6587\u4EF6","penzor.cat.files":"{n} \u4E2A\u6587\u4EF6 \xB7 {size}","penzor.agents.pickHint":"\u9010\u4E2A\u9009\uFF0C\u65B0\u5EFA\u7684 Agent \u9ED8\u8BA4\u4E0D\u540C\u6B65 \xB7 \u5DF2\u9009 {n} \u4E2A","penzor.agents.legacyHint":"\u6309\u65E7\u8BBE\u7F6E\uFF0C\u65B0\u5EFA\u7684 Agent \u4E5F\u4F1A\u540C\u6B65 \xB7 \u5DF2\u9009 {n} \u4E2A","penzor.agents.none":"\u8FD9\u53F0\u7535\u8111\u4E0A\u8FD8\u6CA1\u6709 Agent","penzor.agents.muse":"\u535C\u7B97\u5B50","penzor.agents.museDesc":"\u540E\u53F0 Agent\uFF0C\u6BCF\u53F0\u7535\u8111\u5404\u8DD1\u5404\u7684","penzor.agents.locked":"\u6682\u4E0D\u5F00\u653E\u540C\u6B65","penzor.agents.cloudOnly":"\u5728\u4E91\u7AEF \xB7 \u8FD9\u53F0\u7535\u8111\u8FD8\u6CA1\u6709\uFF0C\u6253\u5F00\u5C31\u4E0B\u8F7D","penzor.agents.historianNote":"Historian \u7684\u590D\u76D8\u8349\u7A3F\u7559\u5728\u6BCF\u53F0\u7535\u8111\u4E0A\uFF0C\u4E0D\u540C\u6B65\uFF1B\u5B83\u8BB0\u8FDB\u5404\u4E2A Agent \u65E5\u5FD7\u91CC\u7684\u5185\u5BB9\uFF0C\u8DDF\u7740\u90A3\u4E2A Agent \u8D70\u3002","penzor.agents.archiveRunning":"\u4E91\u7AEF\u7684 Agent \u6B63\u5728\u5B58\u6863\uFF0C\u7A0D\u7B49\u4E00\u4F1A\u513F\u518D\u6253\u5F00","penzor.cs.accountReview":"\u8D26\u53F7\u5DF2\u5207\u6362\u3002\u672C\u673A\u6587\u4EF6\u53EF\u80FD\u5305\u542B\u53E6\u4E00\u4E2A\u8D26\u53F7\u7684\u5185\u5BB9\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u540C\u6B65\u8303\u56F4\u5E76\u786E\u8BA4\u540E\u518D\u540C\u6B65\u3002","penzor.agents.openFailed":"\u6CA1\u80FD\u6253\u5F00\u8FD9\u4E2A Agent \u7684\u540C\u6B65\uFF0C\u5148\u4FDD\u6301\u4E0D\u540C\u6B65\uFF1A{reason}","penzor.archive.title":"Agent \u540C\u6B65\u6539\u6210\u9010\u4E2A\u9009\u4E86","penzor.archive.body":"\u4E4B\u524D\u8DDF\u7740\u603B\u5F00\u5173\u540C\u6B65\u7684 Agent \u90FD\u5DF2\u505C\u4E0B\uFF0C\u4E91\u7AEF\u90A3\u4EFD\u5B58\u8FDB\u4E86\u300C\u6211\u7684\u4E91\u76D8 \u203A {shelf} \u203A {name}\u300D\uFF0C\u53EA\u8BFB\uFF0C\u80FD\u4E0B\u8F7D\u3002\u60F3\u7EE7\u7EED\u540C\u6B65\u7684\uFF0C\u5728\u4E0B\u9762\u9010\u4E2A\u6253\u5F00\u3002","penzor.archive.shelf":"\u5B58\u6863","penzor.archive.ok":"\u77E5\u9053\u4E86","penzor.archive.open":"\u6253\u5F00\u5B58\u6863","penzor.archive.note":"\u8FD9\u662F Agent \u540C\u6B65\u7684\u5B58\u6863\uFF0C\u53EA\u8BFB\uFF1A\u80FD\u4E0B\u8F7D\uFF0C\u80FD\u6574\u4EFD\u5220\u9664\u3002","penzor.ask.title":"{name} \u5728\u4E91\u7AEF\u5DF2\u7ECF\u6709\u4E00\u4EFD","penzor.ask.when":"\u4E91\u7AEF\u90A3\u4EFD\u6700\u540E\u6539\u4E8E {cloud}\uFF0C\u8FD9\u53F0\u6700\u540E\u6539\u4E8E {local}\u3002\u6253\u5F00\u540C\u6B65\u524D\u9009\u4E00\u6B21\uFF0C\u4EE5\u540E\u81EA\u52A8\u5408\u3002","penzor.ask.merge":"\u5408\u5728\u4E00\u8D77","penzor.ask.mergeDesc":"\u8BB0\u5FC6\u3001\u65E5\u5FD7\u3001\u65E5\u7A0B\u6309\u6761\u5408\u5E76\uFF1B\u8BBE\u7F6E\u3001\u6027\u683C\u8FD9\u7C7B\u4E24\u8FB9\u90FD\u6539\u4E86\u7684\uFF0C\u7528\u8F83\u65B0\u7684\u90A3\u4EFD\uFF0C\u53E6\u4E00\u4EFD\u653E\u8FDB\u672C\u673A\u56DE\u6536","penzor.ask.cloud":"\u4EE5\u4E91\u7AEF\u4E3A\u51C6","penzor.ask.cloudDesc":"\u8FD9\u53F0\u7684\u6574\u4EFD\u5148\u653E\u8FDB\u672C\u673A\u56DE\u6536\uFF0C\u518D\u6362\u6210\u4E91\u7AEF\u90A3\u4EFD","penzor.ask.local":"\u4EE5\u8FD9\u53F0\u4E3A\u51C6","penzor.ask.localDesc":"\u4E91\u7AEF\u90A3\u4EFD\u5148\u8FDB\u5B58\u6863\uFF0C\u518D\u6362\u6210\u8FD9\u53F0\u7684","penzor.ask.recommended":"\u5EFA\u8BAE","penzor.ask.foot":"\u56DE\u6536\u5728 agents/.removed\uFF0C\u80FD\u627E\u56DE","penzor.ask.cancel":"\u53D6\u6D88","penzor.ask.confirm":"\u6253\u5F00\u540C\u6B65","penzor.cat.pluginsN":"{n} \u4E2A\u63D2\u4EF6","penzor.cat.custom":"\u53E6\u6709 {n} \u6761\u81EA\u5B9A\u4E49\u89C4\u5219","penzor.cat.notSynced":"\u4E0D\u540C\u6B65 \xB7 \u53EA\u7559\u5728\u8FD9\u53F0\u7535\u8111","penzor.scope.all":"\u6240\u6709\u8BBE\u5907\u5171\u7528","penzor.scope.allDesc":"\u6BCF\u53F0\u767B\u5F55\u7684\u8BBE\u5907\u548C\u7F51\u9875\u7248\u90FD\u662F\u540C\u4E00\u4EFD","penzor.scope.self":"\u53EA\u5907\u4EFD\u8FD9\u53F0\u7535\u8111","penzor.scope.selfDesc":"\u4E91\u7AEF\u5355\u72EC\u5B58\u4E00\u4EFD\uFF0C\u522B\u7684\u8BBE\u5907\u770B\u4E0D\u5230","penzor.scope.with":"\u53EA\u548C {name} \u5171\u7528","penzor.scope.menuTitle":"\u300C{name}\u300D\u548C\u8C01\u5171\u7528","penzor.scope.menuFoot":"\u4E0D\u60F3\u4E0A\u4E91\u5C31\u5173\u6389\u53F3\u8FB9\u7684\u5F00\u5173","penzor.scope.calendarNote":"\u7F51\u9875\u7248\u7684\u9ED8\u8BA4\u65E5\u5386\u4E0D\u4F1A\u8DDF\u7740\u53D8","penzor.unified.stale":"\u5237\u65B0\u5931\u8D25\uFF0C\u4EE5\u4E0B\u4FDD\u7559\u4E0A\u6B21\u7EDF\u8BA1\uFF1B\u5F53\u524D\u7528\u91CF\u672A\u77E5\uFF0C\u8BF7\u91CD\u8BD5\u3002","penzor.unified.uploadTo":"\u4E0A\u4F20\u5230\u300C\u6211\u7684\u6587\u4EF6\u300D","penzor.unified.apps":"\u666E\u901A\u6587\u4EF6\u53EF\u7BA1\u7406 \xB7 \u6765\u6E90\u9650\u5236\u4F18\u5148","penzor.trash.ama":"Amadeus \xB7 \u5F85\u6E05\u7406\u5FEB\u7167","penzor.trash.amaNote":"\u88AB\u5220\u7684\u5F53\u524D\u6587\u4EF6\u4ECD\u8BA1\u5165\u989D\u5EA6\uFF0C\u5386\u53F2\u7248\u672C\u4E0D\u91CD\u590D\u8BA1\u5165\u300230 \u5929\u540E\u7B49\u5F85\u7CFB\u7EDF\u6E05\u7406\uFF1B\u6B64\u5904\u53EA\u8BFB\uFF0C\u4E0D\u53D7\u300C\u6E05\u7A7A\u56DE\u6536\u7AD9\u300D\u5F71\u54CD\u3002","penzor.trash.expires":"\u53EF\u6E05\u7406\u65E5\u671F","penzor.source.openAgents":"\u5728 Agents \u4E2D\u6253\u5F00","penzor.source.openCalendar":"\u6253\u5F00\u65E5\u5386","penzor.source.entryUnavailable":"\u6B64\u5BBF\u4E3B\u6682\u672A\u63D0\u4F9B\u8BE5\u5165\u53E3","penzor.uploads":"\u6211\u7684\u6587\u4EF6","penzor.source.agents":"Agents","penzor.source.profile":"\u6211\u7684\u8D44\u6599","penzor.source.plugins":"\u63D2\u4EF6\u6570\u636E","penzor.source.readonly":"\u540C\u6B65\u6765\u6E90\u4E3A\u53EA\u8BFB\uFF0C\u8BF7\u5728\u539F\u4F4D\u7F6E\u7F16\u8F91\u6216\u5220\u9664\uFF1B\u6B64\u5904\u53EF\u4E0B\u8F7D\u5DF2\u540C\u6B65\u7684\u6587\u4EF6\u3002","penzor.source.appNote":"\u5E94\u7528\u6587\u4EF6\u7531\u539F\u5E94\u7528\u7BA1\u7406\uFF0C\u8BF7\u5728\u5E94\u7528\u4E2D\u7F16\u8F91\u6216\u5220\u9664\u3002","penzor.source.market":"\u5546\u5E97\u6295\u7A3F","penzor.ov.market":"\u4F60\u6295\u5230\u5546\u5E97\u7684\u63D2\u4EF6\u3001\u6280\u80FD\u548C Agent \u5305\uFF0C\u8DDF\u7740\u5546\u5E97\u6761\u76EE\u8D70","penzor.source.marketNote":"\u8FD9\u91CC\u7684\u5305\u8DDF\u7740\u5546\u5E97\u6761\u76EE\u8D70\uFF1A\u5728\u300C\u5546\u5E97 \u2192 \u6211\u7684\u6295\u7A3F\u300D\u5220\u6389\u6761\u76EE\u624D\u4F1A\u91CA\u653E\u3002\u4ECE GitHub\u3001npm \u62C9\u6765\u7684\u5305\u7531\u5546\u5E97\u4EE3\u5B58\uFF0C\u4E0D\u7B97\u4F60\u7684\u7A7A\u95F4\u3002","penzor.market.badge":"\u7531\u5546\u5E97\u7BA1\u7406","penzor.market.meta":"{size} \xB7 {n} \u4E2A\u5305","penzor.market.history":"\u65E7\u7248\u672C {size}\uFF0C\u548C\u522B\u5904\u4E00\u6837\u4E0D\u7B97","penzor.market.older":"\u53E6\u6709\u65E7\u7248\u672C {size}","penzor.market.updating":"\u66F4\u65B0\u5F85\u5BA1\u6838","penzor.market.notCounted":"\u4E0D\u7B97","penzor.market.fromGithub":"\u4ECE GitHub \u62C9\u53D6 \xB7 \u5546\u5E97\u4EE3\u5B58","penzor.market.fromNpm":"\u4ECE npm \u62C9\u53D6 \xB7 \u5546\u5E97\u4EE3\u5B58","penzor.market.type.plugin":"\u63D2\u4EF6","penzor.market.type.skill":"\u6280\u80FD","penzor.market.type.agent":"Agent","penzor.market.type.space":"Space","penzor.market.type.theme":"\u4E3B\u9898","penzor.market.type.amadeusPlugin":"Amadeus \u63D2\u4EF6","penzor.market.status.approved":"\u5DF2\u4E0A\u67B6","penzor.market.status.pending":"\u5F85\u5BA1\u6838","penzor.market.status.rejected":"\u672A\u901A\u8FC7","penzor.col.type":"\u7C7B\u578B","penzor.col.status":"\u72B6\u6001","penzor.source.pluginNote":"\u4EC5\u5C55\u793A\u63D2\u4EF6\u540D\u79F0\u548C\u5360\u7528\uFF1B\u6570\u636E\u53EF\u80FD\u542B\u914D\u7F6E\u6216\u51ED\u636E\uFF0C\u4E0D\u76F4\u63A5\u9884\u89C8\u6216\u4E0B\u8F7D\u3002","penzor.unified.unavailable":"\u7EDF\u8BA1\u4E0D\u53EF\u7528","penzor.unified.incomplete":"\u7EDF\u4E00\u7528\u91CF\u5C1A\u672A\u7EDF\u8BA1\u5B8C\u6574\uFF0C\u4E0D\u80FD\u636E\u6B64\u5224\u65AD\u662F\u5426\u8D85\u989D\u3002\u8BF7\u5237\u65B0\u91CD\u8BD5\u3002","penzor.unified.enforced":"\u7EDF\u4E00\u989D\u5EA6\u5DF2\u542F\u7528\uFF1A\u8D85\u989D\u65F6\u6682\u505C\u65B0\u589E\u5185\u5BB9\u548C\u53D8\u5927\u7684\u6587\u4EF6\uFF1B\u4E0B\u8F7D\u3001\u5220\u9664\u53CA\u4E0D\u589E\u5927\u7684\u8986\u76D6\u4ECD\u53EF\u7528\u3002","penzor.unified.grace":"\u901A\u77E5\u5BBD\u9650\u671F\u81F3 {date}\uFF0C\u76EE\u524D\u4E0D\u65B0\u589E\u7EDF\u4E00\u989D\u5EA6\u62E6\u622A\u3002","penzor.unified.rolloutPolicy":"\u5BB9\u91CF\u653F\u7B56\u901A\u77E5\uFF1A\u6700\u65E9\u5728\u786E\u8BA4\u901A\u77E5 30 \u5929\u540E\uFF0C\u7EDF\u4E00\u989D\u5EA6\u624D\u53EF\u80FD\u9650\u5236\u589E\u957F\u5199\u5165\uFF1B\u5E94\u7528\u6587\u4EF6\u5386\u53F2\u5C06\u4EC5\u4FDD\u7559\u6700\u8FD1 30 \u5929\u5185\u6700\u591A 50 \u4EFD\u3002\u5386\u53F2\u4E0D\u8BA1\u5957\u9910\uFF0C\u6E05\u7406\u524D\u4ECD\u53EF\u4E0B\u8F7D\u5907\u4EFD\uFF0C\u5F53\u524D\u6587\u4EF6\u4E0D\u53D7\u5386\u53F2\u6E05\u7406\u5F71\u54CD\u3002","penzor.unified.ack":"\u5DF2\u9605\u8BFB\u5BB9\u91CF\u4E0E\u5386\u53F2\u4FDD\u7559\u901A\u77E5","penzor.unified.notice":"\u73B0\u5728\u53EA\u662F\u63D0\u9192\uFF0C\u8D85\u4E86\u4E5F\u4E0D\u4F1A\u505C\u6389\u540C\u6B65\u6216\u4E0A\u4F20","penzor.unified.over":"\u5DF2\u8D85\u8FC7\u7EDF\u4E00\u989D\u5EA6\u3002\u76EE\u524D\u53EA\u63D0\u9192\uFF0C\u4E0D\u65B0\u589E\u540C\u6B65\u6216\u4E0A\u4F20\u62E6\u622A\uFF1B\u53EF\u6E05\u7406\u6587\u4EF6\u6216\u5347\u7EA7\u5957\u9910\u3002","penzor.unified.warn":"\u7EDF\u4E00\u7A7A\u95F4\u5373\u5C06\u7528\u6EE1\u3002\u76EE\u524D\u53EA\u63D0\u9192\uFF0C\u4E0D\u65B0\u589E\u540C\u6B65\u6216\u4E0A\u4F20\u62E6\u622A\u3002","penzor.unified.accounting":"\u542B\u56DE\u6536\u7AD9 {trash}\uFF0C\u5386\u53F2\u7248\u672C\u4E0D\u7B97","penzor.unified.writable":"\u53EF\u4E0A\u4F20\u3001\u65B0\u5EFA\u3001\u91CD\u547D\u540D\u548C\u5220\u9664","penzor.unified.readonly":"\u53EA\u8BFB \xB7 \u7531\u6765\u6E90\u7BA1\u7406","penzor.unified.export":"\u53EF\u4E0B\u8F7D\u3001\u91CD\u547D\u540D\u548C\u6C38\u4E45\u5220\u9664","penzor.unified.counted":"\u8BA1\u5165\u7EDF\u4E00\u7528\u91CF \xB7 \u63D0\u9192\u9636\u6BB5","penzor.unified.policy":"\u771F\u8981\u9650\u5236\u4E4B\u524D\uFF0C\u81F3\u5C11\u63D0\u524D 30 \u5929\u544A\u8BC9\u4F60\u3002","penzor.unified.legacySync":"\u539F\u8BBE\u5907\u540C\u6B65\u9650\u5236\uFF1A{used} / {max}","penzor.unified.legacyApps":"\u539F\u5E94\u7528\u6587\u4EF6\u9650\u5236\uFF1A{used} / {max}","sub.identity":"\u63D2\u4EF6 ID","sub.identityHint":"\u63D0\u4EA4\u540E\u81EA\u52A8\u5206\u914D\u552F\u4E00 ID\u3002\u540D\u79F0\u53EF\u4EE5\u91CD\u590D\uFF0C\u66F4\u65B0\u6CBF\u7528\u540C\u4E00\u4E2A ID\u3002","sub.description":"\u8BE6\u7EC6\u63CF\u8FF0","sub.tags":"\u6807\u7B7E","sub.tagsHint":"\u4EE5\u9017\u53F7\u5206\u9694\uFF0C\u6700\u591A 8 \u4E2A","sub.minAppVersion":"\u6700\u4F4E Forsion \u7248\u672C","sub.maxAppVersion":"\u6700\u9AD8\u7248\u672C\uFF08\u4E0D\u542B\uFF09","sub.optional":"\u9009\u586B","sub.platforms":"\u652F\u6301\u7684\u7AEF","sub.requirementsHint":"\u652F\u6301 desktop\u3001macos\u3001windows\u3001linux\u3001android\u3001ios\u3001web\u3002\u7559\u7A7A\u8868\u793A\u672A\u58F0\u660E\u3002ZIP \u6E05\u5355\u4E2D\u7684\u8981\u6C42\u4F1A\u81EA\u52A8\u8BFB\u53D6\uFF0C\u624B\u586B\u503C\u987B\u4E0E\u6E05\u5355\u4E00\u81F4\u3002","sub.err.market_requirements_invalid":"\u7248\u672C\u8981\u6C42\u6216\u5E73\u53F0\u65E0\u6548\u3002","sub.err.market_requirements_mismatch":"\u624B\u586B\u7248\u672C\u8981\u6C42\u4E0E ZIP \u6E05\u5355\u4E0D\u4E00\u81F4\u3002","sub.mine":"\u6211\u7684\u6295\u7A3F","page.submission":"\u63D2\u4EF6\u6295\u7A3F","page.webPages":"\u6211\u7684\u7F51\u9875","web.title":"\u6211\u7684\u7F51\u9875","web.desc":"\u7528 Tangu \u6216 Coding Space \u53D1\u5E03\u7684\u7F51\u9875\u90FD\u5728\u8FD9\u91CC\u3002\u62FF\u5230\u94FE\u63A5\u7684\u4EBA\u90FD\u80FD\u6253\u5F00\uFF1B\u9875\u9762\u5728\u6C99\u7BB1\u91CC\u8FD0\u884C\uFF0C\u62FF\u4E0D\u5230\u8BBF\u5BA2\u7684 Forsion \u767B\u5F55\u6001\u3002","web.refresh":"\u5237\u65B0","web.used":"\u5DF2\u53D1\u5E03 {used} / {limit} \u4E2A","web.full":"\u540D\u989D\u5DF2\u6EE1\uFF0C\u4E0B\u7EBF\u4E00\u4E2A\u6216\u5347\u7EA7\u4F1A\u5458\u540E\u624D\u80FD\u53D1\u65B0\u7684","web.empty":"\u8FD8\u6CA1\u6709\u53D1\u5E03\u8FC7\u7F51\u9875","web.emptyHint":"\u5728\u5BF9\u8BDD\u91CC\u8BA9 Tangu \u628A\u7F51\u9875\u53D1\u5E03\u51FA\u53BB\uFF0C\u6BD4\u5982\u300C\u628A\u8FD9\u4E2A\u9875\u9762\u53D1\u5E03\u6210\u7F51\u9875\u300D\uFF1BCoding Space \u91CC\u7684\u9879\u76EE\u4E5F\u53EF\u4EE5\u70B9\u300C\u53D1\u5E03\u300D\u3002","web.updated":"\u66F4\u65B0\u4E8E {date}","web.disabled":"\u5DF2\u505C\u7528","web.disabledHint":"\u8FD9\u4E2A\u7F51\u9875\u88AB\u7BA1\u7406\u5458\u505C\u7528\u4E86\uFF0C\u94FE\u63A5\u6253\u4E0D\u5F00\uFF0C\u4E5F\u4E0D\u80FD\u66F4\u65B0\u3002","web.copy":"\u590D\u5236\u94FE\u63A5","web.unpublish":"\u4E0B\u7EBF","web.unpublishConfirm":"\u786E\u8BA4\u4E0B\u7EBF","web.listingPending":"\u4E0A\u67B6\u5BA1\u6838\u4E2D","web.listingApproved":"\u5DF2\u4E0A\u67B6","web.listingRejected":"\u4E0A\u67B6\u88AB\u9A73\u56DE","web.listingNote":"\u9A73\u56DE\u539F\u56E0\uFF1A{note}","web.listingApply":"\u7533\u8BF7\u4E0A\u67B6","web.listingReapply":"\u91CD\u65B0\u7533\u8BF7","web.listingWithdraw":"\u64A4\u56DE\u7533\u8BF7","web.listingDelist":"\u4E0B\u67B6","web.listingDelistConfirm":"\u786E\u8BA4\u4E0B\u67B6","web.listingSummary":"\u5546\u5E97\u7B80\u4ECB","web.listingSummaryPh":"\u4E00\u53E5\u8BDD\u4ECB\u7ECD\u8FD9\u4E2A\u7F51\u9875","web.listingHint":"\u5BA1\u6838\u901A\u8FC7\u540E\u5728\u5546\u5E97\u300C\u7F51\u7AD9\u5E94\u7528\u300D\u91CC\u516C\u5F00\u5C55\u793A\uFF0C300 \u5B57\u4EE5\u5185\u3002","web.listingSubmit":"\u63D0\u4EA4\u7533\u8BF7","pub.cmd":"\u53D1\u5E03\u7F51\u9875\u5230 Forsion","pub.cmdNoArgs":"\u4ECE\u7F16\u7801\u5DE5\u4F5C\u5BA4\u6253\u5F00\u8981\u53D1\u5E03\u7684\u9879\u76EE","pub.title":"\u53D1\u5E03\u5230 Forsion\uFF1A{name}","pub.titleTerms":"\u53D1\u5E03\u4E3A\u516C\u5F00\u9875\u9762","pub.close":"\u5173\u95ED","pub.desc":"\u628A\u8FD9\u4E2A\u7F51\u9875\u53D1\u5E03\u6210\u516C\u5F00\u94FE\u63A5\uFF0C\u62FF\u5230\u94FE\u63A5\u7684\u4EBA\u90FD\u80FD\u6253\u5F00\u3002","pub.descPublished":"\u5DF2\u53D1\u5E03\u3002\u6539\u4E86\u4F5C\u54C1\u4E4B\u540E\u56DE\u6765\u70B9\u300C\u66F4\u65B0\u53D1\u5E03\u300D\uFF0C\u94FE\u63A5\u4E0D\u53D8\u3002","pub.needLogin":"\u53D1\u5E03\u9700\u8981\u767B\u5F55 Forsion \u8D26\u53F7","pub.login":"\u767B\u5F55 Forsion","pub.loginWaiting":"\u7B49\u5F85\u6D4F\u89C8\u5668\u5B8C\u6210\u6388\u6743\u2026","pub.name":"\u540D\u79F0","pub.slug":"\u94FE\u63A5\u6807\u8BC6","pub.slugHint":"3\u201332 \u4F4D\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u6216\u4E2D\u5212\u7EBF","pub.entry":"\u5165\u53E3\u9875\u9762","pub.noEntry":"\u9879\u76EE\u91CC\u8FD8\u6CA1\u6709 .html \u5165\u53E3\uFF0C\u5148\u8BA9 AI \u751F\u6210\u9875\u9762\u518D\u53D1\u5E03\u3002","pub.slots":"\u5DF2\u53D1\u5E03 {used} / {limit} \u4E2A\uFF08{tier}\uFF09","pub.hint":"\u8D44\u6E90\u8BF7\u7528\u76F8\u5BF9\u8DEF\u5F84\u5F15\u7528\uFF1B.ts / .tsx \u53D1\u5E03\u65F6\u81EA\u52A8\u8F6C\u8BD1\uFF0C\u4E0D\u7528\u6784\u5EFA\u3002","pub.anyone":"\u62FF\u5230\u94FE\u63A5\u7684\u4EBA\u90FD\u80FD\u6253\u5F00","pub.likes":"{n} \u4E2A\u8D5E","pub.saves":"{n} \u4EBA\u6536\u85CF","pub.copy":"\u590D\u5236\u94FE\u63A5","pub.copied":"\u5DF2\u590D\u5236","pub.open":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00","pub.publish":"\u53D1\u5E03","pub.update":"\u66F4\u65B0\u53D1\u5E03","pub.saveUpdate":"\u4FDD\u5B58\u5E76\u66F4\u65B0","pub.publishing":"\u53D1\u5E03\u4E2D\u2026","pub.listingTitle":"\u5546\u5E97\u300C\u7F51\u7AD9\u5E94\u7528\u300D","pub.listingNone":"\u672A\u4E0A\u67B6","pub.listingPending":"\u5BA1\u6838\u4E2D","pub.listingApproved":"\u5DF2\u4E0A\u67B6","pub.listingRejected":"\u5DF2\u9A73\u56DE","pub.listingHint":"\u4E0A\u67B6\u540E\u5728\u5546\u5E97\u300C\u7F51\u7AD9\u5E94\u7528\u300D\u91CC\u516C\u5F00\u5C55\u793A\uFF0C\u8981\u5E73\u53F0\u5BA1\u6838\u3002","pub.termsIntro":"\u53D1\u5E03\u540E\uFF0C\u4EFB\u4F55\u62FF\u5230\u94FE\u63A5\u7684\u4EBA\u90FD\u80FD\u67E5\u770B\u8FD9\u4E2A\u9875\u9762\uFF0C\u5B83\u4E5F\u53EF\u80FD\u88AB\u8F6C\u53D1\u6216\u88AB\u641C\u7D22\u5F15\u64CE\u6536\u5F55\u3002\u8BF7\u786E\u8BA4\uFF1A","pub.termsLi1":"\u4F60\u6709\u6743\u53D1\u5E03\u9875\u9762\u91CC\u7684\u6587\u5B57\u3001\u56FE\u7247\u3001\u97F3\u89C6\u9891\u548C\u5176\u4ED6\u5185\u5BB9\uFF1B","pub.termsLi2":"\u9875\u9762\u4E0D\u5305\u542B\u8FDD\u6CD5\u4FE1\u606F\u3001\u4FB5\u6743\u5185\u5BB9\u6216\u672A\u7ECF\u8BB8\u53EF\u62AB\u9732\u7684\u4E2A\u4EBA\u4FE1\u606F\uFF1B","pub.termsLi3":"\u4F60\u5BF9\u81EA\u5DF1\u53D1\u5E03\u7684\u5185\u5BB9\u627F\u62C5\u76F8\u5E94\u8D23\u4EFB\u3002","pub.termsManage":"\u5E73\u53F0\u4F9D\u636E\u6CD5\u5F8B\u6CD5\u89C4\u548C\u300A\u5185\u5BB9\u53D1\u5E03\u89C4\u8303\u300B\u7BA1\u7406\u516C\u5F00\u5185\u5BB9\uFF0C\u5BF9\u8FDD\u89C4\u5185\u5BB9\u53EF\u80FD\u9650\u5236\u8BBF\u95EE\u3001\u505C\u6B62\u5C55\u793A\u6216\u5220\u9664\u3002","pub.termsAgreePre":"\u6211\u5DF2\u9605\u8BFB\u5E76\u540C\u610F","pub.termsGuidelines":"\u300A\u5185\u5BB9\u53D1\u5E03\u89C4\u8303\u300B","pub.termsConfirm":"\u786E\u8BA4\u53D1\u5E03","pub.aiSaveFailed":"\u5DF2\u53D1\u5E03\uFF0C\u4F46 AI \u8BBE\u7F6E\u6CA1\u4FDD\u5B58\uFF1A{reason}","ai.whoPays":"\u8C01\u6765\u4ED8","ai.payer.visitor":"\u8BBF\u5BA2\u81EA\u5DF1\u4ED8","ai.payer.author":"\u6211\u6765\u4ED8","ai.perVisitor":"\u6BCF\u4F4D\u8BBF\u5BA2","ai.perVisitorPre":"\u6BCF\u4EBA\u6BCF\u5929\u6700\u591A","ai.perVisitorPost":"\u6B21","ai.page":"\u8FD9\u4E2A\u7F51\u9875","ai.pagePre":"\u6BCF\u5929\u6700\u591A","ai.pagePost":"\u79EF\u5206","ai.max":"\u6700\u591A {n}","ai.whenUsedUp":"\u7528\u5B8C\u4EE5\u540E","ai.exhausted.visitor":"\u6539\u7528\u8BBF\u5BA2\u81EA\u5DF1\u7684\u989D\u5EA6","ai.exhausted.pause":"AI \u6682\u505C\u5230\u660E\u5929","ai.models":"\u53EF\u7528\u6A21\u578B","ai.modelDefault":"\u9ED8\u8BA4","ai.modelImage":"\u56FE\u50CF","ai.balance":"\u989D\u5EA6\u5305\u4F59\u989D","ai.points":"{n} \u79EF\u5206","ai.buy":"\u4E70\u989D\u5EA6\u5305","ai.noteAuthor":"\u8BBF\u5BA2\u7528 AI \u524D\u8981\u767B\u5F55 Forsion \u8D26\u53F7\uFF0C\u53EA\u7528\u6765\u6309\u4EBA\u8BB0\u6B21\u6570\uFF0C\u4E0D\u6263\u4ED6\u4EEC\u7684\u989D\u5EA6\u3002\u6309\u540E\u53F0\u7684\u6A21\u578B\u70B9\u6570\u6263\uFF0C\u548C\u8BBF\u5BA2\u81EA\u5DF1\u4ED8\u65F6\u4E00\u6837\u591A\uFF1B\u4E0D\u78B0\u4F60\u81EA\u5DF1\u7684 AI \u989D\u5EA6\u548C\u79EF\u5206\u4F59\u989D\u3002","ai.noteVisitor":"\u770B\u7F51\u9875\u4E0D\u7528\u767B\u5F55\uFF1B\u8BBF\u5BA2\u7528\u5230 AI \u65F6\u518D\u767B\u5F55 Forsion \u8D26\u53F7\uFF0C\u6263\u4ED6\u4EEC\u81EA\u5DF1\u7684\u989D\u5EA6\u3002","ai.noteOff":"\u300C\u6211\u6765\u4ED8\u300D\u6682\u672A\u5F00\u653E\uFF0CAI \u7531\u8BBF\u5BA2\u81EA\u5DF1\u4ED8\u3002","ai.agentNote":"forsion.ai.agent \u8FD9\u4E00\u671F\u4ECD\u6263\u8BBF\u5BA2\u81EA\u5DF1\u7684\u989D\u5EA6\uFF0C\u8BBF\u5BA2\u7B2C\u4E00\u6B21\u7528\u65F6\u4F1A\u5148\u786E\u8BA4\u3002","ai.cooldownNew":"\u65B0\u7F51\u9875\u53D1\u5E03\u6EE1 {h} \u5C0F\u65F6\u540E\u624D\u7531\u4F60\u6765\u4ED8\uFF0C\u5728\u90A3\u4E4B\u524D\u8BBF\u5BA2\u81EA\u5DF1\u4ED8\u3002","ai.cooldownUntil":"{time} \u8D77\u7531\u4F60\u6765\u4ED8\uFF0C\u5728\u90A3\u4E4B\u524D\u8BBF\u5BA2\u81EA\u5DF1\u4ED8\u3002","ai.save":"\u4FDD\u5B58","ai.saved":"AI \u8BBE\u7F6E\u5DF2\u4FDD\u5B58","web.tabMine":"\u6211\u53D1\u5E03\u7684 {n}","web.tabSaved":"\u6211\u6536\u85CF\u7684","web.tabSavedN":"\u6211\u6536\u85CF\u7684 {n}","web.ai.author":"AI \xB7 \u6211\u6765\u4ED8","web.ai.visitor":"AI \xB7 \u8BBF\u5BA2\u81EA\u5DF1\u4ED8","web.ai.paused":"AI \xB7 \u6211\u6765\u4ED8 \xB7 \u5DF2\u6682\u505C","web.ai.pausedSpike":"1 \u5C0F\u65F6\u5185\u7528\u5F97\u592A\u5FEB\uFF0C\u5DF2\u81EA\u52A8\u6539\u56DE\u8BBF\u5BA2\u4ED8","web.ai.pausedAdmin":"\u88AB\u7BA1\u7406\u5458\u6682\u505C\uFF0C\u73B0\u5728\u8BBF\u5BA2\u81EA\u5DF1\u4ED8","web.ai.resume":"\u6062\u590D\u6211\u6765\u4ED8","web.ai.todayAuthor":"\u4ECA\u5929 {calls} \u6B21 \xB7 {visitors} \u4F4D\u8BBF\u5BA2","web.ai.todayVisitor":"\u4ECA\u5929 {calls} \u6B21","web.ai.cap":"\u4ECA\u65E5\u4E0A\u9650","web.ai.none":"\u6CA1\u7528\u5230 AI","web.ai.settings":"AI \u8BBE\u7F6E","web.ai.cooldown":"{time} \u8D77\u7531\u4F60\u6765\u4ED8","pack.points":"\u79EF\u5206","pack.note":"\u9009\u4E86\u300C\u6211\u6765\u4ED8\u300D\u7684\u7F51\u9875\u4ECE\u8FD9\u91CC\u6263\uFF0C\u6309\u540E\u53F0\u7684\u6A21\u578B\u70B9\u6570\u8BA1\uFF1B\u4E0D\u78B0\u4F60\u81EA\u5DF1\u7684 AI \u989D\u5EA6\u548C\u79EF\u5206\u4F59\u989D\u3002","pack.lowNote":"\u5FEB\u7528\u5B8C\u4E86\u3002\u7528\u5B8C\u540E\u300C\u6211\u6765\u4ED8\u300D\u7684\u7F51\u9875\u6309\u5404\u81EA\u7684\u8BBE\u7F6E\uFF1A\u6539\u7528\u8BBF\u5BA2\u81EA\u5DF1\u7684\u989D\u5EA6\uFF0C\u6216\u6682\u505C\u5230\u660E\u5929\u3002","pack.monthSpent":"\u672C\u6708\u7528\u6389","pack.lastTopUp":"\u4E0A\u6B21\u5145\u503C","pack.topUp":"{date} +{n}","pack.usage":"\u7528\u91CF\u660E\u7EC6","pack.usageTitle":"\u6700\u8FD1 30 \u5929\u300C\u6211\u6765\u4ED8\u300D\u7684\u7528\u91CF","pack.usageEmpty":"\u6700\u8FD1 30 \u5929\u6CA1\u6709\u300C\u6211\u6765\u4ED8\u300D\u7684\u8C03\u7528","pack.col.day":"\u65E5\u671F","pack.col.page":"\u7F51\u9875","pack.col.calls":"\u6B21\u6570","pack.col.visitors":"\u8BBF\u5BA2","pack.col.points":"\u79EF\u5206","pack.storeTitle":"\u5546\u5E97","pack.storeUnavailable":"\u6253\u5F00\u300C\u5546\u5E97 \u203A \u7269\u54C1\u300D\u4E70\u989D\u5EA6\u5305","saved.empty":"\u8FD8\u6CA1\u6709\u6536\u85CF\u7684\u7F51\u9875","saved.emptyHint":"\u5728\u522B\u4EBA\u53D1\u5E03\u7684\u7F51\u9875\u53F3\u8FB9\u70B9\u661F\u6807\uFF0C\u5C31\u4F1A\u6536\u5230\u8FD9\u91CC\u3002","saved.open":"\u6253\u5F00","saved.author":"\u4F5C\u8005\u4E3B\u9875","saved.unsave":"\u53D6\u6D88\u6536\u85CF","saved.aiAuthor":"AI \u4F5C\u8005\u8BF7\u5BA2","saved.aiVisitor":"AI \u8BBF\u5BA2\u81EA\u5DF1\u4ED8","backpack.effect.connectPack":"\u989D\u5EA6\u5305\u4F59\u989D +{n} \u79EF\u5206","backpack.effect.other":"\u5176\u4ED6\u6548\u679C","backpack.packUsed":"\u5DF2\u5145\u8FDB\u989D\u5EA6\u5305\u4F59\u989D","backpack.packUsedLine":"+{n} \u79EF\u5206 \xB7 \u73B0\u5728 {balance} \u79EF\u5206","sub.desc":"\u7BA1\u7406\u4F60\u6295\u7A3F\u7684\u5185\u5BB9\u3001\u5BA1\u6838\u7ED3\u679C\u548C\u7248\u672C\u66F4\u65B0\u3002","sub.new":"\u65B0\u6295\u7A3F","sub.refresh":"\u5237\u65B0","sub.empty":"\u8FD8\u6CA1\u6709\u6295\u7A3F","sub.emptyHint":"\u628A\u4F60\u7684\u63D2\u4EF6\u3001\u6280\u80FD\u3001Agent \u6216 Space \u5206\u4EAB\u5230\u5E94\u7528\u5E02\u573A\u3002","sub.name":"\u540D\u79F0","sub.summary":"\u7B80\u4ECB","sub.type":"\u5185\u5BB9\u7C7B\u578B","sub.source":"\u53D1\u5E03\u6E20\u9053","sub.type.skill":"\u6280\u80FD","sub.type.agent":"Agent","sub.type.plugin":"\u63D2\u4EF6","sub.type.space":"Space","sub.type.theme":"\u4E3B\u9898","sub.type.amadeus_plugin":"Amadeus \u63D2\u4EF6","sub.pending":"\u5F85\u5BA1\u6838","sub.approved":"\u5DF2\u4E0A\u67B6","sub.rejected":"\u5DF2\u9A73\u56DE","sub.pendingVersion":"v{version} \u66F4\u65B0\u5F85\u5BA1\u6838","sub.rejectedVersion":"v{version} \u66F4\u65B0\u5DF2\u9A73\u56DE","sub.submit":"\u63D0\u4EA4\u5BA1\u6838","sub.submitted":"\u6295\u7A3F\u5DF2\u63D0\u4EA4\uFF0C\u5BA1\u6838\u7ED3\u679C\u4F1A\u663E\u793A\u5728\u8FD9\u91CC\u548C\u4F60\u7684\u6536\u4EF6\u7BB1\u91CC\u3002","sub.updated":"\u65B0\u7248\u672C\u5DF2\u63D0\u4EA4\u5BA1\u6838\u3002\u5BA1\u6838\u901A\u8FC7\u524D\u5546\u5E97\u7167\u65E7\u63D0\u4F9B\u5DF2\u4E0A\u67B6\u7684\u7248\u672C\uFF0C\u7ED3\u679C\u4F1A\u53D1\u5230\u4F60\u7684\u6536\u4EF6\u7BB1\u3002","sub.repo":"GitHub \u516C\u5F00\u4ED3\u5E93","sub.npm":"npm \u516C\u5F00\u5305","sub.repoHint":"\u4ECE\u4ED3\u5E93\u8BFB\u53D6 README \u548C Release\uFF1B\u4ED3\u5E93\u4F5C\u8005\u663E\u793A\u4E3A\u53D1\u5E03\u4EBA\u3002","sub.npmHint":"\u4ECE npm \u8BFB\u53D6\u5305\u4FE1\u606F\uFF1B\u5BF9\u5E94\u516C\u5F00\u4ED3\u5E93\u7684\u4F5C\u8005\u663E\u793A\u4E3A\u53D1\u5E03\u4EBA\u3002","sub.reviewHint":"\u65B0\u7248\u672C\u9700\u91CD\u65B0\u5BA1\u6838\uFF0C\u5BA1\u6838\u901A\u8FC7\u540E\u624D\u5411\u7528\u6237\u63D0\u4F9B\u3002\u4F60\u7684 Forsion \u8D26\u53F7\u7528\u4E8E\u7BA1\u7406\u6295\u7A3F\u3002","sub.zipHint":"\u6700\u5927 50 MB\uFF0C\u5305\u5185\u5305\u542B\u5BF9\u5E94\u7684 manifest \u4E0E\u5165\u53E3\u6587\u4EF6\u3002","sub.filter":"\u6309\u72B6\u6001\u7B5B\u9009","sub.all":"\u5168\u90E8","sub.noResults":"\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684\u6295\u7A3F","sub.downloads":"{n} \u6B21\u4E0B\u8F7D","sub.errName":"\u8BF7\u586B\u5199\u540D\u79F0\u3002","sub.errSource":"\u8BF7\u586B\u5199\u516C\u5F00\u4ED3\u5E93\u5730\u5740\u6216 npm \u5305\u540D\u3002","sub.errZip":"\u8BF7\u9009\u62E9 ZIP \u5305\u3002","sub.errLarge":"ZIP \u5305\u4E0D\u80FD\u8D85\u8FC7 50 MB\u3002","sub.err.market_npm_invalid":"npm \u5305\u4E0D\u5B58\u5728\u6216\u4E0D\u7B26\u5408\u63D2\u4EF6\u53D1\u5E03\u89C4\u8303\u3002","sub.err.market_npm_source":"\u8BF7\u901A\u8FC7 npm \u53D1\u5E03\u5E76\u91CD\u65B0\u5BA1\u6838\u65B0\u7248\u3002","sub.err.market_github_source":"\u8BF7\u5728 GitHub \u53D1\u5E03 Release \u5E76\u91CD\u65B0\u5BA1\u6838\u65B0\u7248\u3002","sub.err.market_not_found":"\u6295\u7A3F\u4E0D\u5B58\u5728\uFF0C\u8BF7\u5237\u65B0\u540E\u91CD\u8BD5\u3002","sub.err.market_zip_required":"\u8BF7\u9009\u62E9 ZIP \u5305\u3002","sub.err.market_zip_invalid":"ZIP \u5305\u7ED3\u6784\u4E0D\u7B26\u5408\u53D1\u5E03\u89C4\u8303\u3002","sub.err.market_zip_too_large":"ZIP \u5305\u4E0D\u80FD\u8D85\u8FC7 50 MB\u3002","sub.err.market_version_required":"\u5305\u91CC\u6CA1\u5199\u7248\u672C\u53F7\u3002\u5728 manifest \u91CC\u5199\u4E0A\u7248\u672C\u53F7\uFF08\u6280\u80FD\u5199\u5728 SKILL.md \u7684 version \u6216 metadata.version\uFF09\u518D\u6253\u5305\u3002","sub.err.market_version_invalid":"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u7248\u672C\u53F7\u3002","sub.err.market_version_mismatch":"\u7248\u672C\u53F7\u4E0E\u5305\u5185 manifest \u4E0D\u4E00\u81F4\u3002","sub.err.market_version_not_newer":"\u65B0\u7248\u987B\u9AD8\u4E8E\u5F53\u524D\u5DF2\u4E0A\u67B6\u7248\u672C\u3002","sub.err.market_icon_invalid":"\u56FE\u6807\u5E94\u4E3A 64\u2013512 px \u7684\u6B63\u65B9\u5F62 PNG\u3002","sub.err.market_duplicate":"\u8BE5\u5185\u5BB9\u5DF2\u6709\u6295\u7A3F\uFF0C\u8BF7\u7BA1\u7406\u73B0\u6709\u6295\u7A3F\u3002","sub.err.market_update_pending":"\u5DF2\u6709\u65B0\u7248\u7B49\u5F85\u5BA1\u6838\uFF0C\u8BF7\u5148\u7B49\u5F85\u5BA1\u6838\u7ED3\u679C\u3002","sub.err.market_stale":"\u6295\u7A3F\u5DF2\u53D1\u751F\u53D8\u5316\uFF0C\u8BF7\u5237\u65B0\u540E\u91CD\u8BD5\u3002","sub.notNewer":"\u5305\u91CC\u7684\u7248\u672C\u662F v{version}\uFF0C\u8981\u9AD8\u4E8E\u5546\u5E97\u5F53\u524D\u7684 v{current}\u3002","sub.reqNone":"\u6CA1\u6709\u58F0\u660E\u7248\u672C\u8981\u6C42\u548C\u5E73\u53F0","sub.dropTitle":"\u628A ZIP \u62D6\u5230\u8FD9\u91CC\uFF0C\u6216\u70B9\u8FD9\u91CC\u9009\u62E9","sub.dropHint":"\u6700\u5927 50 MB\u3002\u9009\u597D\u540E\u5148\u68C0\u67E5\uFF0C\u4E0D\u4F1A\u76F4\u63A5\u63D0\u4EA4\u3002","sub.dropReplace":"{size} \xB7 \u62D6\u5165\u6216\u70B9\u8FD9\u91CC\u6362\u4E00\u4E2A","sub.checkType":"\u7C7B\u578B","sub.checkVersion":"\u7248\u672C","sub.checkIcon":"\u56FE\u6807","sub.checkReadme":"\u8BF4\u660E\u6587\u6863","sub.checkReq":"\u8981\u6C42","sub.checkWarn":"\u6CE8\u610F","sub.iconYes":"\u5305\u91CC\u6709 icon.png","sub.iconNo":"\u5305\u91CC\u6CA1\u6709 icon.png\uFF0C\u5361\u7247\u663E\u793A\u7C7B\u578B\u56FE\u6807","sub.readmeYes":"\u53D6\u5305\u91CC\u7684 README.md","sub.readmeKeep":"\u5305\u91CC\u6CA1\u6709 README.md\uFF0C\u6CBF\u7528\u73B0\u5728\u7684\u8BF4\u660E","sub.readmeNo":"\u5305\u91CC\u6CA1\u6709 README.md","sub.warn.no_manifest":"\u5305\u91CC\u6CA1\u627E\u5230\u6E05\u5355\u6587\u4EF6\uFF08manifest\uFF09","sub.warn.type_mismatch":"\u5305\u91CC\u7684\u7C7B\u578B\u548C\u8FD9\u6761\u6295\u7A3F\u7684\u7C7B\u578B\u4E0D\u4E00\u81F4","sub.warn.tag_version_mismatch":"Release \u6807\u7B7E\u548C\u5305\u91CC\u7684\u7248\u672C\u53F7\u4E0D\u4E00\u81F4","sub.warn.id_slug_mismatch":"\u5305\u91CC\u7684 id \u548C\u5B89\u88C5\u76EE\u5F55\u540D\u4E0D\u540C\u3002\u4E0D\u5F71\u54CD\u7528\u6237\uFF1A\u66F4\u65B0\u7167\u5E38\u88C5\u56DE\u539F\u76EE\u5F55\uFF0C\u4E0D\u4F1A\u591A\u51FA\u4E00\u4EFD\uFF1B\u5B89\u88C5\u76EE\u5F55\u540D\u4E0A\u67B6\u540E\u4E0D\u80FD\u6539","sub.warn.engine_slug_mismatch":"\u5F15\u64CE\u63D2\u4EF6\u7684\u76EE\u5F55\u540D\u548C\u5B83\u7684 id \u4E0D\u4E00\u81F4","sub.warn.no_entry":"Amadeus \u63D2\u4EF6\u7F3A\u5C11\u5165\u53E3 main.js","sub.warn.has_node_modules":"\u5305\u91CC\u5E26\u4E86 node_modules\uFF0C\u4F53\u79EF\u5927\uFF0C\u901A\u5E38\u4E5F\u7528\u4E0D\u4E0A","sub.zipListedNote":"\u5BA1\u6838\u901A\u8FC7\u524D\uFF0C\u5546\u5E97\u7EE7\u7EED\u63D0\u4F9B\u5DF2\u4E0A\u67B6\u7684\u7248\u672C\u3002\u5BA1\u6838\u7ED3\u679C\u4F1A\u53D1\u5230\u4F60\u7684\u6536\u4EF6\u7BB1\u3002","sub.zipUnlistedNote":"\u63D0\u4EA4\u540E\u66FF\u6362\u73B0\u5728\u8FD9\u4EFD\u5305\uFF0C\u91CD\u65B0\u8FDB\u5165\u5BA1\u6838\u3002","sub.submitVersion":"\u63D0\u4EA4 v{version} \u5BA1\u6838","sub.checkNew":"\u68C0\u67E5\u65B0\u7248\u672C","sub.checkAgain":"\u518D\u68C0\u67E5\u4E00\u6B21","sub.upToDate":"\u4E0A\u6E38\u6700\u65B0\u662F v{version}\uFF0C\u5546\u5E97\u5DF2\u662F v{current}\uFF0C\u6CA1\u6709\u65B0\u7248\u672C\u3002\u53D1\u5E03\u65B0\u7248\u672C\u540E\u518D\u6765\u68C0\u67E5\u3002","sub.upstreamLatest":"\u4E0A\u6E38\u6700\u65B0\uFF1Av{version}","sub.releaseTag":"Release {tag}","sub.storeHas":"\u5546\u5E97\u5F53\u524D v{version}","sub.githubNote":"\u901A\u8FC7\u540E\u5546\u5E97\u9501\u5B9A\u5230 v{version}\u3002\u4EE5\u540E\u5728 GitHub \u53D1\u4E86\u65B0 Release\uFF0C\u56DE\u5230\u8FD9\u91CC\u518D\u68C0\u67E5\u4E00\u6B21\u3002","sub.npmNote":"\u901A\u8FC7\u540E\u5546\u5E97\u9501\u5B9A\u5230 v{version}\u3002\u4EE5\u540E\u5728 npm \u53D1\u4E86\u65B0\u7248\u672C\uFF0C\u56DE\u5230\u8FD9\u91CC\u518D\u68C0\u67E5\u4E00\u6B21\u3002","sub.secVersion":"\u7248\u672C","sub.secInfo":"\u5546\u5E97\u4FE1\u606F","sub.secHistory":"\u8BB0\u5F55","sub.edit":"\u7F16\u8F91","sub.unset":"\u672A\u586B\u5199","sub.infoNote":"\u4E0D\u7528\u4F20\u5305\u3001\u4E0D\u7528\u5347\u7248\u672C\u3002\u5DF2\u4E0A\u67B6\u7684\u4FEE\u6539\u540C\u6837\u8981\u8FC7\u5BA1\u6838\uFF0C\u5BA1\u6838\u524D\u5546\u5E97\u7167\u65E7\u663E\u793A\u539F\u6765\u7684\u4FE1\u606F\u3002","sub.submitInfo":"\u63D0\u4EA4\u4FEE\u6539","sub.back":"\u8FD4\u56DE\u5217\u8868","sub.pendingInfo":"\u5546\u5E97\u4FE1\u606F\u4FEE\u6539\u5F85\u5BA1\u6838","sub.rejectedInfo":"\u5546\u5E97\u4FE1\u606F\u4FEE\u6539\u5DF2\u9A73\u56DE","sub.pendingHint":"\u5BA1\u6838\u901A\u8FC7\u524D\u5546\u5E97\u7167\u65E7\uFF0C\u5BA1\u6838\u7ED3\u679C\u4F1A\u53D1\u5230\u4F60\u7684\u6536\u4EF6\u7BB1\u3002","sub.inReview":"\u6B63\u5728\u7B49\u5F85\u9996\u6B21\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u4F1A\u53D1\u5230\u4F60\u7684\u6536\u4EF6\u7BB1\u3002","sub.histApproved":"v{version} \u5BA1\u6838\u901A\u8FC7","sub.histSubmitted":"\u6295\u7A3F","sub.resubmitted":"\u5DF2\u91CD\u65B0\u63D0\u4EA4\u5BA1\u6838\uFF0C\u7ED3\u679C\u4F1A\u53D1\u5230\u4F60\u7684\u6536\u4EF6\u7BB1\u3002","sub.infoSubmitted":"\u4FEE\u6539\u5DF2\u63D0\u4EA4\u5BA1\u6838\uFF0C\u5BA1\u6838\u524D\u5546\u5E97\u7167\u65E7\u663E\u793A\u539F\u6765\u7684\u4FE1\u606F\u3002","sub.err.market_no_release":"\u8FD9\u4E2A\u4ED3\u5E93\u8FD8\u6CA1\u6709 GitHub Release\u3002\u5546\u5E97\u8981\u9501\u5B9A\u4E00\u4E2A\u7248\u672C\uFF0C\u5148\u5728 GitHub \u53D1\u4E00\u4E2A Release\uFF0C\u518D\u56DE\u6765\u68C0\u67E5\u3002","sub.err.market_no_changes":"\u6CA1\u6709\u6539\u52A8\u3002","sub.err.market_dryrun_unsupported":"GitHub \u548C npm \u6295\u7A3F\u6CA1\u6CD5\u63D0\u524D\u68C0\u67E5\uFF0C\u76F4\u63A5\u63D0\u4EA4\u5BA1\u6838\u5373\u53EF\u3002","sub.capReason":"\u5185\u90E8\u63A5\u53E3\u7533\u8BF7\u7406\u7531","sub.capReasonHint":"\u63D2\u4EF6\u58F0\u660E\u4E86 internals-raw\uFF08\u76F4\u63A5\u64CD\u4F5C Forsion \u5185\u90E8\u5BF9\u8C61\uFF09\u65F6\u5FC5\u586B\uFF1A\u5199\u660E\u8981\u7528\u54EA\u4E9B\u5185\u90E8\u6A21\u5757\u3001\u4E3A\u4EC0\u4E48\u6B63\u5F0F\u63A5\u53E3\u4E0D\u591F\u3002","sub.capReasonRequired":"\u8FD9\u4E2A\u5305\u58F0\u660E\u4E86 internals-raw\uFF0C\u7533\u8BF7\u7406\u7531\u5FC5\u586B\u3002\u5BA1\u6838\u53EA\u653E\u884C\u8FD9\u4E00\u4E2A\u7248\u672C\uFF0C\u4E4B\u540E\u7684\u7248\u672C\u4ECD\u58F0\u660E\u5B83\u7684\u7167\u5E38\u8981\u5BA1\u6838\u3002","sub.err.internals_raw_reason_required":"\u63D2\u4EF6\u58F0\u660E\u4E86 internals-raw\uFF0C\u8BF7\u586B\u5199\u5185\u90E8\u63A5\u53E3\u7533\u8BF7\u7406\u7531\uFF1A\u8981\u7528\u54EA\u4E9B\u5185\u90E8\u6A21\u5757\u3001\u4E3A\u4EC0\u4E48\u6B63\u5F0F\u63A5\u53E3\u4E0D\u591F\u3002","sub.err.internals_raw_needs_release":"\u58F0\u660E\u4E86 internals-raw \u7684 GitHub \u63D2\u4EF6\u8981\u5148\u53D1\u4E00\u4E2A Release\uFF1A\u5BA1\u6838\u7ED1\u5B9A\u5728\u4E00\u4E2A\u7248\u672C\u4E0A\u3002\u5728 GitHub \u53D1\u5E03 Release \u540E\u518D\u63D0\u4EA4\u3002","page.account":"\u8D26\u53F7","page.membershipUsage":"\u4F1A\u5458\u4E0E\u7528\u91CF","page.membershipQuota":"\u4F1A\u5458\u4E0E\u989D\u5EA6","page.pointsInvite":"\u79EF\u5206\u4E0E\u9080\u8BF7","account.details.title":"\u767B\u5F55\u4E0E\u8D44\u6599","account.details.desc":"\u5934\u50CF\u3001\u6635\u79F0\u4E0E\u7B80\u4ECB\u5728\u300C\u4E2A\u4EBA\u4E3B\u9875\u300D\u4E2D\u7F16\u8F91\u3002","account.details.username":"\u7528\u6237\u540D","diag.unavailable":"\u5F53\u524D\u5BBF\u4E3B\u4E0D\u652F\u6301\u8BCA\u65AD\u6570\u636E\uFF0C\u8BF7\u66F4\u65B0 Forsion \u540E\u91CD\u8BD5\u3002","page.profile":"\u4E2A\u4EBA\u4E3B\u9875","page.quota":"\u989D\u5EA6\u4E0E\u79EF\u5206","page.backpack":"\u80CC\u5305","page.security":"\u5B89\u5168","page.usage":"\u7528\u91CF\u8BB0\u5F55","page.feedback":"\u53CD\u9988","store.group":"\u4F1A\u5458\u4E0E\u79EF\u5206","store.membership":"\u4F1A\u5458","store.membership.desc":"\u5347\u7EA7\u6863\u4F4D\uFF0C\u83B7\u5F97\u66F4\u591A\u6BCF\u65E5\u4E0E\u6BCF\u5468\u989D\u5EA6","store.points":"\u79EF\u5206","store.points.desc":"\u5145\u503C\u79EF\u5206\uFF0C\u7528\u6765\u5151\u6362\u7269\u54C1","store.items":"\u7269\u54C1","store.items.desc":"\u7528\u79EF\u5206\u5151\u6362\u7684\u7269\u54C1\uFF0C\u5151\u6362\u540E\u8FDB\u80CC\u5305","store.status":"\u6863\u4F4D\u4E0E\u79EF\u5206","store.tier":"\u5F53\u524D\u6863\u4F4D","store.balance":"\u79EF\u5206\u4F59\u989D","store.choosePlan":"\u9009\u62E9\u6863\u4F4D","store.payHint":"\u4ED8\u6B3E\u5728\u6D4F\u89C8\u5668\u7684\u652F\u4ED8\u9875\u5B8C\u6210\uFF0C\u56DE\u5230\u5E94\u7528\u540E\u81EA\u52A8\u5237\u65B0","store.payOff":"\u6682\u65F6\u4E0D\u80FD\u8D2D\u4E70","store.period":"\u4ED8\u8D39\u5468\u671F","store.period.monthly":"\u6708\u4ED8","store.period.quarterly":"\u5B63\u4ED8","store.period.yearly":"\u5E74\u4ED8","store.per.monthly":"/ \u6708","store.per.quarterly":"/ \u5B63","store.per.yearly":"/ \u5E74","store.currentTier":"\u5F53\u524D\u6863\u4F4D","store.pay":"\u53BB\u652F\u4ED8","store.payPrice":"{price} \u53BB\u652F\u4ED8","store.noPlans":"\u6682\u65F6\u6CA1\u6709\u53EF\u9009\u7684\u6863\u4F4D","store.packs":"\u79EF\u5206\u5305","store.packsHint":"\u4ED8\u6B3E\u5728\u6D4F\u89C8\u5668\u7684\u652F\u4ED8\u9875\u5B8C\u6210\uFF0C\u4ED8\u6B3E\u540E\u79EF\u5206\u5373\u65F6\u5230\u8D26","store.noPacks":"\u6682\u65F6\u6CA1\u6709\u79EF\u5206\u5305","store.kind.pack":"\u79EF\u5206\u5305","store.kind.card":"\u9053\u5177","store.kind.code":"\u5151\u6362\u7801","store.kind.item":"\u7269\u54C1","store.nPoints":"{n} \u79EF\u5206","store.instant":"\u4ED8\u6B3E\u540E\u5373\u65F6\u5230\u8D26","store.kind.custom":"\u81EA\u5B9A\u4E49","store.customPack":"\u81EA\u5B9A\u4E49\u6570\u91CF","store.customPackHint":"{min} \u79EF\u5206\u8D77\u5145\uFF0C\u5728\u652F\u4ED8\u9875\u586B\u5199\u8981\u5145\u7684\u79EF\u5206\u6570","store.customPackPay":"\u586B\u5199\u6570\u91CF","store.pricingTitle":"\u53C2\u8003\u6D88\u8017\uFF081\xD7 \u500D\u7387\uFF09","store.pricingFormula":"\u6D88\u8017\u79EF\u5206 \u2248\uFF08\u672A\u547D\u4E2D\u7F13\u5B58\u7684\u8F93\u5165 token \xD7 {input} + \u8F93\u51FA token \xD7 {output} + \u7F13\u5B58\u547D\u4E2D\u7684\u8F93\u5165 token \xD7 {cached}\uFF09\xF7 1,000,000 \xD7 \u6A21\u578B\u500D\u7387","store.pricingExample":"\u4F8B\uFF1A\u4E00\u6B21\u8F93\u5165 1 \u4E07 token\u3001\u8F93\u51FA 2 \u5343 token\uFF0C1\xD7 \u6A21\u578B\u7EA6\u6D88\u8017 {n} \u79EF\u5206\u3002","store.redeemTitle":"\u79EF\u5206\u5151\u6362","store.redeemHint":"\u7528\u79EF\u5206\u5151\u6362\u5728\u5E94\u7528\u5185\u76F4\u63A5\u5B8C\u6210\uFF0C\u5151\u6362\u540E\u7269\u54C1\u8FDB\u80CC\u5305","store.redeem":"{n} \u79EF\u5206\u5151\u6362","store.redeemConfirm":"\u786E\u8BA4\u82B1 {n} \u79EF\u5206","store.redeemed":"\u5DF2\u5151\u6362\uFF0C\u7269\u54C1\u5728\u80CC\u5305\u91CC","store.uncertain":"\u6CA1\u6536\u5230\u7ED3\u679C\u3002\u5148\u5230\u80CC\u5305\u770B\u4E00\u4E0B\u6709\u6CA1\u6709\u5230\u8D26\uFF0C\u518D\u51B3\u5B9A\u8981\u4E0D\u8981\u91CD\u8BD5\u3002","store.soldOut":"\u5DF2\u552E\u7F44","store.left":"\u4F59 {n}","store.toBackpack":"\u5151\u6362\u540E\u8FDB\u80CC\u5305","store.limitReached":"\u5DF2\u8FBE\u8D2D\u4E70\u4E0A\u9650","store.unavailable":"\u8FD9\u4EF6\u7269\u54C1\u6682\u65F6\u4E0D\u80FD\u5151\u6362","store.noItems":"\u6682\u65F6\u6CA1\u6709\u53EF\u5151\u6362\u7684\u7269\u54C1","store.itemsOff":"\u7269\u54C1\u5151\u6362\u6682\u672A\u5F00\u653E","store.openBackpack":"\u6253\u5F00\u80CC\u5305","backpack.desc":"\u5728\u8FD9\u91CC\u67E5\u770B\u4F60\u83B7\u5F97\u7684\u7269\u54C1\uFF0C\u70B9\u51FB\u683C\u5B50\u67E5\u770B\u8BE6\u60C5\u3002","backpack.refresh":"\u5237\u65B0","backpack.total":"\u5171 {n} \u4EF6\u7269\u54C1","backpack.grid":"\u80CC\u5305\u7269\u54C1","backpack.slot":"{name}\uFF0C\u6570\u91CF {n}","backpack.item":"\u7269\u54C1","backpack.empty":"\u80CC\u5305\u8FD8\u662F\u7A7A\u7684","backpack.emptyHint":"\u5151\u6362\u6216\u83B7\u8D60\u7684\u7269\u54C1\u4F1A\u51FA\u73B0\u5728\u8FD9\u91CC\u3002","backpack.select":"\u70B9\u51FB\u7269\u54C1\u67E5\u770B\u8BE6\u60C5","backpack.details":"\u7269\u54C1\u8BE6\u60C5","backpack.quantity":"\u6301\u6709\u6570\u91CF","backpack.acquired":"\u83B7\u5F97\u65F6\u95F4","backpack.source":"\u83B7\u5F97\u65B9\u5F0F","backpack.source.points":"\u79EF\u5206\u5151\u6362","backpack.source.admin":"\u8D60\u9001","backpack.source.reward":"\u5956\u52B1","backpack.source.other":"\u4E91\u7AEF\u53D1\u653E","backpack.consumable":"\u6D88\u8017\u54C1","backpack.voucher":"\u5361\u5238","backpack.getCards":"\u67E5\u770B\u989D\u5EA6","backpack.manageCards":"\u53BB\u4F7F\u7528","backpack.reveal":"\u67E5\u770B\u5361\u5BC6","backpack.copyKey":"\u590D\u5236\u5361\u5BC6","backpack.noKey":"\u8FD9\u4EF6\u7269\u54C1\u6CA1\u6709\u5361\u5BC6\u3002","backpack.use":"\u4F7F\u7528","backpack.confirmUse":"\u786E\u8BA4\u4F7F\u7528","backpack.consumeConfirm":"\u4F7F\u7528\u540E\u6D88\u8017 1 \u4EF6\u7269\u54C1\u3002","backpack.collectible":"\u7EAA\u5FF5\u54C1","backpack.effect.points":"+{n} \u79EF\u5206","backpack.effect.cards":"+{n} \u5F20\u91CD\u7F6E\u5361","backpack.effect.quota":"\u91CD\u7F6E\u4ECA\u65E5\u4E0E\u672C\u5468\u989D\u5EA6","backpack.rarity.common":"\u666E\u901A","backpack.rarity.rare":"\u7A00\u6709","backpack.rarity.epic":"\u53F2\u8BD7","backpack.rarity.legendary":"\u4F20\u8BF4","backpack.unavailable":"\u8FD9\u4EF6\u7269\u54C1\u5DF2\u4E0D\u53EF\u7528\uFF0C\u8BF7\u5237\u65B0\u80CC\u5305\u3002","backpack.notUsable":"\u8FD9\u4EF6\u7269\u54C1\u4E0D\u80FD\u4F7F\u7528\u3002","backpack.quotaUnavailable":"\u8BF7\u5148\u4F7F\u7528\u4E91\u7AEF AI \u521D\u59CB\u5316\u989D\u5EA6\uFF0C\u518D\u4F7F\u7528\u8FD9\u4EF6\u7269\u54C1\u3002","common.cancel":"\u53D6\u6D88","common.copied":"\u5DF2\u590D\u5236","common.copyFailed":"\u590D\u5236\u5931\u8D25","common.done":"\u5B8C\u6210","common.loadFailed":"\u6CA1\u80FD\u52A0\u8F7D","common.loadMore":"\u52A0\u8F7D\u66F4\u591A","common.loading":"\u52A0\u8F7D\u4E2D\u2026","common.openInBrowser":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00","common.retry":"\u91CD\u8BD5","common.save":"\u4FDD\u5B58","common.thisWeek":"\u672C\u5468","common.today":"\u4ECA\u65E5","common.unlimited":"\u4E0D\u9650","ann.eyebrow":"FORSION \xB7 \u516C\u544A","ann.close":"\u5173\u95ED","ann.ok":"\u77E5\u9053\u4E86","signin.button":"\u767B\u5F55 Forsion","signin.desc":"\u767B\u5F55 Forsion \u8D26\u53F7\u540E\uFF0C\u53EF\u4EE5\u5728\u8FD9\u91CC\u7BA1\u7406\u8D26\u53F7\u3001\u989D\u5EA6\u3001\u5B89\u5168\u3001\u6295\u7A3F\u4E0E\u53CD\u9988\u3002","signin.pending":"\u7B49\u5F85\u5728\u6D4F\u89C8\u5668\u4E2D\u5B8C\u6210\u767B\u5F55\u2026","signin.deviceHint":"\u6D4F\u89C8\u5668\u4F1A\u81EA\u52A8\u6253\u5F00\u767B\u5F55\u9875\uFF1B\u6CA1\u6709\u6253\u5F00\u7684\u8BDD\uFF0C\u7528\u624B\u673A\u626B\u7801\u6216\u6253\u5F00\u4E0B\u9762\u7684\u94FE\u63A5\uFF0C\u5E76\u6838\u5BF9\u9A8C\u8BC1\u7801\u3002","signin.code":"\u9A8C\u8BC1\u7801","signin.openLink":"\u6253\u5F00\u767B\u5F55\u9875","signin.copyLink":"\u590D\u5236\u94FE\u63A5","signin.qrLabel":"\u767B\u5F55\u4E8C\u7EF4\u7801","account.profile.title":"\u4E2A\u4EBA\u8D44\u6599","account.profile.desc":"\u5934\u50CF\u3001\u6635\u79F0\uFF0C\u4EE5\u53CA\u7ED1\u5B9A\u7684\u624B\u673A\u548C\u90AE\u7BB1","account.avatar.change":"\u66F4\u6362\u5934\u50CF","account.avatar.saved":"\u5934\u50CF\u5DF2\u66F4\u65B0","account.nickname.edit":"\u4FEE\u6539\u6635\u79F0","account.nickname.label":"\u6635\u79F0","account.nickname.saved":"\u6635\u79F0\u5DF2\u66F4\u65B0","account.role.admin":"\u7BA1\u7406\u5458","account.username":"\u7528\u6237\u540D {name}","account.contact.phone":"\u624B\u673A","account.contact.email":"\u90AE\u7BB1","account.contact.unbound":"\u672A\u7ED1\u5B9A","account.contact.manage":"\u53BB\u5B89\u5168\u9875\u7BA1\u7406","account.web.open":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00\u4E2A\u4EBA\u4E2D\u5FC3","account.web.desc":"\u4E91\u7A7A\u95F4\u3001AI \u5927\u8111\u4E0E\u4E3B\u9898\u5728\u7F51\u9875\u4E2A\u4EBA\u4E2D\u5FC3\u7BA1\u7406\u3002","wechat.title":"\u5FAE\u4FE1\u526A\u85CF\u52A9\u624B","wechat.desc":"\u628A\u5C0F\u7EA2\u4E66\u3001B \u7AD9\u3001X \u548C\u7F51\u9875\u94FE\u63A5\u53D1\u7ED9 Forsion \u4F01\u4E1A\u5FAE\u4FE1\u53F7\uFF0C\u81EA\u52A8\u526A\u85CF\u8FDB\u4F60\u4E91\u7AEF\u667A\u5E93\u7684 Plugins/wechat-helper \u6587\u4EF6\u5939\uFF1B\u5176\u4ED6\u6D88\u606F\u6309\u5929\u8BB0\u8FDB\u65E5\u8BB0\u3002","wechat.status":"\u7ED1\u5B9A\u72B6\u6001","wechat.bound":"\u5DF2\u7ED1\u5B9A","wechat.boundAt":"{date} \u7ED1\u5B9A","wechat.where":"\u53D1\u7ED9\u4F01\u4E1A\u5FAE\u4FE1\u53F7\u7684\u94FE\u63A5\u4F1A\u51FA\u73B0\u5728\u667A\u5E93\u7684 Plugins/wechat-helper \u91CC\uFF0C\u4E00\u822C\u4E00\u5206\u949F\u5185\u5230\u3002","wechat.notEligible":"\u4F60\u5F53\u524D\u7684\u4F1A\u5458\u6863\u6682\u4E0D\u80FD\u4F7F\u7528\u5FAE\u4FE1\u526A\u85CF\u52A9\u624B\u3002","wechat.disabled":"\u5FAE\u4FE1\u526A\u85CF\u52A9\u624B\u6682\u672A\u5F00\u653E\u3002","wechat.code":"\u7ED1\u5B9A\u7801","wechat.contact":"\u5148\u5728\u5FAE\u4FE1\u91CC\u6DFB\u52A0\u300C{contact}\u300D","wechat.contactUnknown":"\u5148\u5728\u5FAE\u4FE1\u91CC\u6DFB\u52A0 Forsion \u4F01\u4E1A\u5FAE\u4FE1\u53F7","wechat.getCode":"\u83B7\u53D6\u7ED1\u5B9A\u7801","wechat.newCode":"\u6362\u4E00\u4E2A","wechat.copy":"\u590D\u5236\u7ED1\u5B9A\u7801","wechat.send":"{contact}\uFF0C\u518D\u628A\u8FD9\u4E32\u6570\u5B57\u53D1\u7ED9\u5B83\u3002","wechat.waiting":"\u7B49\u5F85\u7ED1\u5B9A\u2026\u7ED1\u5B9A\u7801\u5728 {time} \u524D\u6709\u6548\u3002\u4F01\u4E1A\u5FAE\u4FE1\u90A3\u8FB9\u4E0D\u4F1A\u56DE\u590D\uFF0C\u7ED1\u4E0A\u540E\u8FD9\u91CC\u4F1A\u81EA\u52A8\u66F4\u65B0\u3002","wechat.unbind":"\u89E3\u7ED1","wechat.unbindConfirm":"\u786E\u8BA4\u89E3\u7ED1","address.label":"\u4E3B\u9875\u5730\u5740","address.change":"\u6539\u5730\u5740","address.title":"\u6539\u4E3B\u9875\u5730\u5740","address.desc":"\u4F60\u53D1\u5E03\u7684\u4F5C\u54C1\u90FD\u5728\u8FD9\u4E2A\u5730\u5740\u4E0B\u9762\u3002\u6539\u4E86\u4E4B\u540E\uFF0C\u65E7\u5730\u5740\u4F1A\u4E00\u76F4\u8DF3\u8F6C\u5230\u65B0\u5730\u5740\uFF0C\u4E5F\u4E0D\u4F1A\u88AB\u522B\u4EBA\u62FF\u53BB\u7528\u3002","address.now":"\u73B0\u5728","address.new":"\u6539\u6210","address.rule":"3\u201330 \u4F4D\uFF0C\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u6216\u300C-\u300D","address.checking":"\u6B63\u5728\u67E5\u80FD\u4E0D\u80FD\u7528\u2026","address.ok":"\u53EF\u4EE5\u7528","address.bad":"\u8FD9\u4E2A\u5730\u5740\u4E0D\u80FD\u7528","address.same":"\u8FD9\u5C31\u662F\u4F60\u73B0\u5728\u7684\u5730\u5740","address.freeOne":"\u8FD9\u662F\u4F60\u7684\u4E00\u6B21\u514D\u8D39\u4FEE\u6539","address.freeN":"\u8FD9\u6B21\u514D\u8D39\uFF08\u4F60\u6709 {n} \u6B21\u514D\u8D39\u4FEE\u6539\uFF09","address.freeAfter":"\u4E4B\u540E\u6539\u5730\u5740\u8981\u7528\u5730\u5740\u6539\u540D\u5361","address.card":"\u7528\u6389 1 \u5F20\u5730\u5740\u6539\u540D\u5361","address.cardHave":"\u4F60\u6709 {n} \u5F20","address.need":"\u6539\u5730\u5740\u8981 1 \u5F20\u5730\u5740\u6539\u540D\u5361\uFF0C\u4F60\u8FD8\u6CA1\u6709","address.price":"{price} \u79EF\u5206 \xB7 \u4F59\u989D {balance}","address.soldout":"\u73B0\u5728\u4E70\u4E0D\u5230\u5730\u5740\u6539\u540D\u5361","address.cooldown":"\u4E24\u6B21\u6539\u5730\u5740\u81F3\u5C11\u9694 {days} \u5929","address.cooldownUntil":"{date} \u4E4B\u540E\u53EF\u4EE5\u518D\u6539","address.go":"\u6539\u5730\u5740","address.goCard":"\u7528\u5361\u6539\u5730\u5740","address.goBuy":"\u7528 {price} \u79EF\u5206\u4E70\u4E00\u5F20\u5E76\u6539","address.shop":"\u53BB\u5546\u5E97\u770B\u770B","address.done":"\u4E3B\u9875\u5730\u5740\u6539\u6210\u4E86 {url}","address.loadFailed":"\u5730\u5740\u4FE1\u606F\u6682\u65F6\u62FF\u4E0D\u5230\u3002","address.errTaken":"\u8FD9\u4E2A\u5730\u5740\u521A\u88AB\u522B\u4EBA\u7528\u4E86\uFF0C\u6362\u4E00\u4E2A\u5427\u3002","address.errNeedCard":"\u514D\u8D39\u6B21\u6570\u7528\u5B8C\u4E86\uFF0C\u6539\u5730\u5740\u8981\u4E00\u5F20\u5730\u5740\u6539\u540D\u5361\u3002","address.errCooldown":"\u8FD8\u6CA1\u5230\u80FD\u6539\u7684\u65F6\u5019\uFF1A{date} \u4E4B\u540E\u53EF\u4EE5\u518D\u6539\u3002","address.errPoints":"\u79EF\u5206\u4E0D\u591F\u4E70\u8FD9\u5F20\u5361\u3002","address.errBought":"\u5361\u5DF2\u7ECF\u4E70\u597D\u653E\u8FDB\u80CC\u5305\u4E86\uFF0C\u4F46\u5730\u5740\u6CA1\u6539\u6210\uFF1A{reason}","address.errSoldout":"\u5730\u5740\u6539\u540D\u5361\u521A\u4E0B\u67B6\u4E86\uFF0C\u73B0\u5728\u4E70\u4E0D\u5230\u3002","address.errLimit":"\u5730\u5740\u6539\u540D\u5361\u5DF2\u7ECF\u4E70\u5230\u4E0A\u9650\u4E86\u3002","address.errUnknown":"\u6CA1\u786E\u8BA4\u5230\u6539\u6CA1\u6539\u6210\uFF0C\u7A0D\u540E\u5237\u65B0\u770B\u770B\u518D\u8BF4\u3002","backpack.addressCard":"\u5730\u5740\u6539\u540D\u5361","backpack.addressCard.desc":"\u514D\u8D39\u6B21\u6570\u7528\u5B8C\u540E\uFF0C\u6539\u4E00\u6B21\u4E3B\u9875\u5730\u5740\u7528\u4E00\u5F20\u3002\u65E7\u5730\u5740\u4F1A\u4E00\u76F4\u8DF3\u8F6C\u5230\u65B0\u5730\u5740\uFF0C\u4E0D\u4F1A\u88AB\u522B\u4EBA\u62FF\u8D70\u3002","backpack.addressCard.use":"\u53BB\u6539\u5730\u5740","member.title":"\u4F1A\u5458","member.desc":"\u5F53\u524D\u6863\u4F4D\u3001\u65B9\u6848\u4E0E\u5230\u671F\u65E5","member.upgrade":"\u5347\u7EA7\u4F1A\u5458","member.renew":"\u7EED\u8D39","member.freeName":"\u514D\u8D39\u7248","member.freeHint":"\u5347\u7EA7\u4F1A\u5458\u53EF\u4EE5\u83B7\u5F97\u66F4\u591A AI \u989D\u5EA6","member.expires":"{date} \u5230\u671F","member.noExpiry":"\u957F\u671F\u6709\u6548","member.loadFailed":"\u4F1A\u5458\u4FE1\u606F\u6682\u65F6\u62FF\u4E0D\u5230\u3002","session.title":"\u767B\u5F55","session.desc":"\u7BA1\u7406\u8FD9\u53F0\u8BBE\u5907\u4E0A\u7684\u767B\u5F55\u72B6\u6001","local.title":"\u8FD9\u53F0\u7535\u8111\u4E0A\u7684\u8D26\u53F7","local.desc":"\u5728\u767B\u5F55\u8FC7\u7684\u8D26\u53F7\u4E4B\u95F4\u5207\u6362","local.current":"\u5F53\u524D","local.switch":"\u5207\u6362","local.add":"\u767B\u5F55\u5176\u4ED6\u8D26\u53F7","local.signOut":"\u9000\u51FA\u767B\u5F55","local.empty":"\u8FD8\u6CA1\u6709\u4FDD\u5B58\u7684\u8D26\u53F7","local.loadFailed":"\u8D26\u53F7\u5217\u8868\u6682\u65F6\u8BFB\u4E0D\u5230","diag.title":"\u8BCA\u65AD\u6570\u636E","diag.desc":"\u5E2E\u52A9\u6211\u4EEC\u6392\u67E5\u95EE\u9898\u3001\u6539\u8FDB Forsion\u3002\u9ED8\u8BA4\u5173\u95ED\u3002","diag.enable":"\u4E0A\u4F20\u8BCA\u65AD\u6570\u636E","diag.enableDesc":"\u6253\u5F00\u540E\uFF0C\u8FD9\u53F0\u7535\u8111\u4F1A\u5B9A\u671F\u4E0A\u4F20\u4E00\u4EFD Forsion \u4FE1\u606F\u5FEB\u7167\u5230\u4F60\u7684 Forsion \u8D26\u53F7\uFF0CForsion \u56E2\u961F\u53EF\u4EE5\u67E5\u770B\u3002\u591A\u4E45\u4E0A\u4F20\u4E00\u6B21\u7531 Forsion \u56E2\u961F\u8BBE\u5B9A\uFF0C\u9ED8\u8BA4\u6BCF\u5929\u4E00\u6B21\u3002\u968F\u65F6\u53EF\u4EE5\u5173\u95ED\u3002","diag.collected":"\u4F1A\u4E0A\u4F20","diag.item.app":"\u5E94\u7528\u4E0E\u7CFB\u7EDF\u7684\u7248\u672C\uFF0C\u8FD9\u53F0\u7535\u8111\u7684\u540D\u5B57\u3001\u5185\u5B58\u4E0E\u78C1\u76D8\u4F59\u91CF","diag.item.settings":"\u6A21\u578B\u4E0E\u8BED\u97F3\u7684\u9009\u62E9\uFF0C\u540E\u53F0 Agent \u4E0E\u63D2\u4EF6\u8BBE\u7F6E\u91CC\u7684\u5F00\u5173\u548C\u6570\u503C\uFF0CMCP \u670D\u52A1\u4E0E\u6D88\u606F\u901A\u9053\u7684\u540D\u5B57\u548C\u5F00\u5173","diag.item.agents":"Agent \u4E0E\u56E2\u961F\u7684\u914D\u7F6E\uFF08\u540D\u5B57\u3001\u6A21\u578B\u8FD9\u7C7B\u9009\u9879\uFF1B\u63CF\u8FF0\u4E0E\u63D0\u793A\u8BCD\u53EA\u8BB0\u957F\u5EA6\uFF0C\u6B63\u6587\u5F52\u4E0B\u9762\u300C\u4EBA\u8BBE\u3001\u8BB0\u5FC6\u4E0E\u8FDB\u5316\u8BB0\u5F55\u300D\u90A3\u4E2A\u5F00\u5173\uFF09","diag.item.plugins":"\u5DF2\u5B89\u88C5\u7684\u63D2\u4EF6\u3001\u6280\u80FD\u3001\u4E3B\u9898\u548C Space \u7684\u540D\u5B57\u4E0E\u7248\u672C","diag.item.runs":"\u6700\u8FD1 7 \u5929\u7684\u8FD0\u884C\u8BB0\u5F55\uFF1A\u6BCF\u6B21\u8FD0\u884C\u7684\u72B6\u6001\u548C\u62A5\u9519\u539F\u56E0\uFF0C\u6A21\u578B\u8C03\u7528\u4E0E\u5DE5\u5177\u7684\u7528\u91CF\u3001\u8017\u65F6\uFF08\u4E0D\u5E26\u5BF9\u8BDD\u5185\u5BB9\u548C\u5DE5\u5177\u8BFB\u5199\u7684\u5185\u5BB9\uFF09\uFF0C\u4EE5\u53CA\u5F15\u64CE\u6700\u8FD1\u7684\u8FD0\u884C\u65E5\u5FD7","diag.item.sync":"\u4E91\u540C\u6B65\u7684\u72B6\u6001\uFF1A\u540C\u6B65\u89C4\u5219\u5F00\u5728\u54EA\u51E0\u7C7B\u4E0A\uFF0C\u6700\u8FD1\u51E0\u8F6E\u4E0A\u4F20\u3001\u4E0B\u8F7D\u3001\u5220\u9664\u548C\u51B2\u7A81\u526F\u672C\u7684\u4E2A\u6570\uFF0C\u4EE5\u53CA\u540C\u6B65\u7684\u62A5\u9519\u539F\u56E0\uFF08\u8DEF\u5F84\u4F1A\u906E\u6389\uFF0C\u4E0D\u5E26\u6587\u4EF6\u540D\u548C\u6587\u4EF6\u5185\u5BB9\uFF09","diag.notCollected":"\u4E0D\u4F1A\u4E0A\u4F20\uFF1A\u4FDD\u5B58\u5728\u8FD9\u53F0\u7535\u8111\u4E0A\u7684\u767B\u5F55\u51ED\u636E\u4E0E API \u5BC6\u94A5\u3001\u7B14\u8BB0\u6587\u4EF6\u3001Agent \u7684\u8D44\u6599\u5E93\u3001\u63D2\u4EF6\u6570\u636E\u3002","diag.sessions":"\u5305\u542B\u4F1A\u8BDD\u5185\u5BB9","diag.sessionsDesc":"\u8FD9\u53F0\u7535\u8111\u4E0A\u7684\u5BF9\u8BDD\uFF1A\u4F60\u548C Agent \u7684\u6D88\u606F\u6587\u5B57\u3001Agent \u7684\u601D\u8003\u8FC7\u7A0B\u548C\u7528\u5230\u7684\u5DE5\u5177\u540D\uFF0C\u5305\u62EC\u56E2\u961F\u6210\u5458\u3001\u8BA8\u8BBA\u3001\u59D4\u6D3E\u5728\u540E\u53F0\u505A\u7684\u90A3\u90E8\u5206\u3002\u6BCF\u6B21\u53EA\u4E0A\u4F20\u8FD8\u6CA1\u4E0A\u4F20\u8FC7\u7684\u90E8\u5206\uFF0C\u6700\u591A\u5F80\u524D 7 \u5929\u3002\u5DE5\u5177\u8BFB\u5199\u7684\u5185\u5BB9\u548C\u9644\u4EF6\u672C\u8EAB\u4E0D\u5E26\uFF1B\u6D88\u606F\u91CC\u51FA\u73B0\u7684\u6587\u4EF6\u540D\u3001Agent \u5728\u56DE\u590D\u91CC\u590D\u8FF0\u7684\u7B14\u8BB0\u6216\u6587\u4EF6\u5185\u5BB9\u4F1A\u5728\u5176\u4E2D\u3002\u5E38\u89C1\u683C\u5F0F\u7684\u5BC6\u94A5\u4F1A\u906E\u6389\uFF0C\u5176\u4F59\u539F\u6837\u4E0A\u4F20\u3002\u4E0D\u60F3\u63D0\u4F9B\u53EF\u4EE5\u5148\u5173\u6389\u518D\u6253\u5F00\u4E0A\u4F20\u3002","diag.memory":"\u5305\u542B Agent \u7684\u4EBA\u8BBE\u3001\u8BB0\u5FC6\u4E0E\u8FDB\u5316\u8BB0\u5F55","diag.memoryDesc":"\u6BCF\u4E2A Agent \u7684\u4EBA\u8BBE\uFF08\u5305\u62EC\u914D\u7F6E\u91CC\u7684\u63CF\u8FF0\u548C\u5F00\u53D1\u8005\u6307\u4EE4\uFF09\uFF0C\u548C\u5B83\u81EA\u5DF1\u6512\u4E0B\u6765\u7684\u5185\u5BB9\uFF1A\u8BB0\u5FC6\u548C\u8FD8\u6CA1\u6574\u7406\u7684\u8BB0\u5FC6\u5019\u9009\u3001\u8FDB\u5316\u8BB0\u5F55\u3001\u5199\u7ED9\u4F60\u7684\u534F\u4F5C\u8BF4\u660E\u3001\u6700\u8FD1 7 \u5929\u7684\u65E5\u5FD7\u548C\u8BB0\u5FC6\u6574\u7406\u8BB0\u5F55\uFF0C\u4EE5\u53CA\u9879\u76EE\u8BB0\u5FC6\uFF1B\u8FD8\u6709\u56E2\u961F\u7684\u8BBE\u5B9A\u548C\u4F60\u7684\u7528\u6237\u753B\u50CF\u3002\u8FD9\u4E9B\u662F\u4F60\u7ED9 Agent \u548C\u56E2\u961F\u5199\u7684\u8BBE\u5B9A\uFF0C\u548C Agent \u4ECE\u5BF9\u8BDD\u91CC\u8BB0\u4E0B\u7684\u5173\u4E8E\u4F60\u548C\u4F60\u7684\u5DE5\u4F5C\u7684\u4E8B\u5B9E\uFF0C\u6BCF\u6B21\u4E0A\u4F20\u5B83\u4EEC\u5F53\u524D\u7684\u5185\u5BB9\uFF08\u5F88\u957F\u7684\u4F1A\u622A\u65AD\uFF09\u3002\u5E38\u89C1\u683C\u5F0F\u7684\u5BC6\u94A5\u4F1A\u906E\u6389\uFF0C\u5176\u4F59\u539F\u6837\u4E0A\u4F20\u3002\u4E0D\u60F3\u63D0\u4F9B\u53EF\u4EE5\u5148\u5173\u6389\u518D\u6253\u5F00\u4E0A\u4F20\u3002","diag.activity":"\u5305\u542B\u6D3B\u52A8\u65E5\u5FD7","diag.activityDesc":"\u6D3B\u52A8\u8BB0\u5F55\u91CC\u6709\u5BF9\u8BDD\u5F00\u5934\u7684\u51E0\u5341\u4E2A\u5B57\u548C\u7B14\u8BB0\u6587\u4EF6\u540D\u3002\u6BCF\u6B21\u53EA\u4E0A\u4F20\u8FD8\u6CA1\u4E0A\u4F20\u8FC7\u7684\u90E8\u5206\uFF0C\u6700\u591A\u5F80\u524D 7 \u5929\u3002\u4E0D\u60F3\u63D0\u4F9B\u53EF\u4EE5\u5148\u5173\u6389\u518D\u6253\u5F00\u4E0A\u4F20\u3002","diag.last":"\u4E0A\u6B21\u4E0A\u4F20\uFF1A{time}","diag.noUpload":"\u8FD8\u6CA1\u6709\u4E0A\u4F20\u8FC7","diag.freq.hour":"\u6BCF\u5C0F\u65F6\u4E00\u6B21","diag.freq.hours":"\u6BCF {n} \u5C0F\u65F6\u4E00\u6B21","diag.freq.day":"\u6BCF\u5929\u4E00\u6B21","diag.freq.days":"\u6BCF {n} \u5929\u4E00\u6B21","diag.freq.manual":"Forsion \u56E2\u961F\u9700\u8981\u65F6\u624D\u91C7\u96C6","diag.retention":"\u4E91\u7AEF\u4FDD\u7559\u8FD9\u53F0\u7535\u8111\u6700\u8FD1 {n} \u5929\u7684\u5FEB\u7167\u3002\u5173\u95ED\u540E\u4E0D\u518D\u4E0A\u4F20\uFF1B\u5DF2\u4E0A\u4F20\u7684\u5FEB\u7167\u4ECD\u7559\u5728\u4E91\u7AEF\uFF0C\u9700\u8981\u5220\u9664\u53EF\u4EE5\u5728\u300C\u53CD\u9988\u300D\u91CC\u544A\u8BC9\u6211\u4EEC\u3002","page.privacy":"\u9690\u79C1\u4E0E\u6570\u636E","privacy.tab":"\u5E2E\u52A9\u6539\u8FDB","privacy.unavailable":"\u5F53\u524D\u5BBF\u4E3B\u4E0D\u652F\u6301\u5E2E\u52A9\u6539\u8FDB Forsion\uFF0C\u8BF7\u66F4\u65B0 Forsion \u540E\u91CD\u8BD5\u3002","privacy.needUpdate":"\u8FD9\u4E2A\u7248\u672C\u7684 Forsion \u8FD8\u4E0D\u4F1A\u53D1\u9001\u8FD9\u4E9B\u6570\u636E\uFF0C\u66F4\u65B0 Forsion \u540E\u624D\u4F1A\u751F\u6548\u3002","privacy.devBuild":"\u5F00\u53D1\u7248\u4E0D\u53D1\u9001\u4EFB\u4F55\u6570\u636E\u3002","privacy.signInFirst":"\u767B\u5F55\u540E\u624D\u80FD\u5F00\u3002\u6CA1\u767B\u5F55\u65F6\u4E0D\u53D1\u9001\u4EFB\u4F55\u6570\u636E\u3002","privacy.improve.title":"\u5E2E\u52A9\u6539\u8FDB Forsion","privacy.improve.desc":"\u53EA\u53D1\u5143\u6570\u636E\uFF0C\u7528\u6765\u5B9A\u4F4D\u6545\u969C\u3001\u770B\u54EA\u91CC\u6162\u3002\u767B\u5F55 Forsion \u8D26\u53F7\u65F6\u624D\u4F1A\u53D1\u9001\uFF0C\u4F46\u4E0D\u5173\u8054\u4F60\u7684\u8D26\u53F7\u3002","privacy.improve.switch":"\u53D1\u9001\u5D29\u6E83\u62A5\u544A\u548C\u4F7F\u7528\u7EDF\u8BA1","privacy.improve.switchHint":"\u5173\u6389\u540E\u7ACB\u523B\u505C\u6B62\u53D1\u9001\uFF0C\u672C\u673A\u8FD8\u6CA1\u53D1\u51FA\u53BB\u7684\u4E5F\u4E00\u5E76\u4E22\u6389\u3002","privacy.policyLink":"\u6536\u96C6\u54EA\u4E9B\u6570\u636E\u3001\u4FDD\u5B58\u591A\u4E45\uFF0C\u89C1\u9690\u79C1\u653F\u7B56","privacy.sent.title":"\u6700\u8FD1 7 \u5929\u53D1\u51FA\u53BB\u7684\u5185\u5BB9","privacy.sent.hint":"\u539F\u6837\u5B58\u5728\u672C\u673A\uFF0C\u53EF\u4EE5\u9010\u6761\u770B\u3002","privacy.sent.last":"\u539F\u6837\u5B58\u5728\u672C\u673A\uFF0C\u53EF\u4EE5\u9010\u6761\u770B\u3002\u4E0A\u6B21\u53D1\u9001\uFF1A{time}","privacy.sent.view":"\u67E5\u770B","privacy.sent.empty":"\u6700\u8FD1 7 \u5929\u8FD8\u6CA1\u6709\u53D1\u9001\u8FC7\u3002","privacy.delete.title":"\u5220\u9664\u5DF2\u53D1\u9001\u7684\u6570\u636E","privacy.delete.hint":"\u6309\u8FD9\u53F0\u8BBE\u5907\u7684\u5B89\u88C5\u6807\u8BC6\u5220\u6389\u670D\u52A1\u5668\u4E0A\u7684\u5168\u90E8\u8BB0\u5F55\uFF0C\u5E76\u6362\u4E00\u4E2A\u65B0\u6807\u8BC6\u3002","privacy.delete.button":"\u5220\u9664","privacy.delete.confirm":"\u786E\u8BA4\u5220\u9664","privacy.delete.done":"\u5DF2\u5220\u9664\uFF0C\u5E76\u6362\u4E86\u65B0\u7684\u5B89\u88C5\u6807\u8BC6\u3002","privacy.delete.failed":"\u6CA1\u5220\u6210\uFF1A{reason}","privacy.installId":"\u5B89\u88C5\u6807\u8BC6 {id} \xB7 \u548C\u4F60\u7684\u8D26\u53F7\u65E0\u5173","diag.uploadNow":"\u7ACB\u5373\u4E0A\u4F20","diag.uploaded":"\u5DF2\u4E0A\u4F20","diag.failed":"\u4E0A\u4F20\u5931\u8D25\uFF1A{reason}","quota.ai.title":"AI \u989D\u5EA6","quota.ai.desc":"\u4ECA\u65E5\u548C\u672C\u5468\u5404\u8FD8\u5269\u591A\u5C11\uFF1B\u7528\u5B8C\u540E\u53EF\u4EE5\u7528\u989D\u5EA6\u91CD\u7F6E\u5361\u6062\u590D\uFF0C\u6216\u7528\u79EF\u5206\u7EE7\u7EED","quota.resetDaily":"\u6BCF\u5929 0:00 \u91CD\u7F6E\uFF08\u5317\u4EAC\u65F6\u95F4\uFF09","quota.resetWeekly":"{date} 0:00 \u91CD\u7F6E\uFF08\u5317\u4EAC\u65F6\u95F4\uFF09","card.title":"\u989D\u5EA6\u91CD\u7F6E\u5361","card.desc":"\u628A\u4ECA\u65E5\u548C\u672C\u5468\u7684 AI \u989D\u5EA6\u6062\u590D\u5230 100%","card.owned":"\u6301\u6709 {n} \u5F20","card.use":"\u4F7F\u7528\u4E00\u5F20","card.useConfirm":"\u786E\u8BA4\u4F7F\u7528","card.used":"\u5DF2\u4F7F\u7528 1 \u5F20\u989D\u5EA6\u91CD\u7F6E\u5361","card.left":"\u8FD8\u5269 {n} \u5F20","card.noneHint":"\u6CA1\u6709\u989D\u5EA6\u91CD\u7F6E\u5361\u4E86\u3002\u9080\u8BF7\u3001\u6210\u5C31\u548C\u6D3B\u52A8\u5956\u52B1\u91CC\u4F1A\u53D1\u653E\u3002","fallback.title":"\u989D\u5EA6\u7528\u5B8C\u540E\u7528\u79EF\u5206\u7EE7\u7EED","fallback.desc":"\u6253\u5F00\u540E\uFF0C\u989D\u5EA6\u7528\u5B8C\u65F6\u8D85\u51FA\u7684\u7528\u91CF\u4ECE\u79EF\u5206\u4F59\u989D\u6263\uFF1B\u540E\u53F0\u4EFB\u52A1\u4E0D\u4F1A\u6263\u79EF\u5206\u3002","fallback.balance":"\u79EF\u5206\u4F59\u989D {n}","fallback.pricing":"\u6309 1\xD7 \u500D\u7387\u7684\u6A21\u578B\u7B97\uFF0C\u6BCF\u767E\u4E07 token\uFF1A\u8F93\u5165 {input} \u79EF\u5206\u3001\u8F93\u51FA {output} \u79EF\u5206\u3001\u7F13\u5B58\u547D\u4E2D {cached} \u79EF\u5206\u3002\u500D\u7387 N\xD7 \u7684\u6A21\u578B\u7EA6\u4E3A N \u500D\uFF0C\u4EE5\u5404\u6A21\u578B\u5B9E\u9645\u8BA1\u4EF7\u4E3A\u51C6\u3002","fallback.unknown":"\u72B6\u6001\u672A\u77E5\uFF0C\u8BF7\u91CD\u8BD5","quota.out.cardOrPoints":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\u3002\u53EF\u4EE5\u7528\u4E00\u5F20\u91CD\u7F6E\u5361\u6062\u590D\uFF0C\u6216\u6253\u5F00\u4E0B\u9762\u7684\u300C\u989D\u5EA6\u7528\u5B8C\u540E\u7528\u79EF\u5206\u7EE7\u7EED\u300D\u3002","quota.out.points":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\u3002\u53EF\u4EE5\u6253\u5F00\u4E0B\u9762\u7684\u300C\u989D\u5EA6\u7528\u5B8C\u540E\u7528\u79EF\u5206\u7EE7\u7EED\u300D\u3002","quota.out.cardOrTopUp":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\u3002\u53EF\u4EE5\u7528\u4E00\u5F20\u91CD\u7F6E\u5361\u6062\u590D\uFF0C\u6216\u5145\u503C\u79EF\u5206\u540E\u6253\u5F00\u300C\u989D\u5EA6\u7528\u5B8C\u540E\u7528\u79EF\u5206\u7EE7\u7EED\u300D\u3002","quota.out.topUp":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\u3002\u5145\u503C\u79EF\u5206\u540E\uFF0C\u53EF\u4EE5\u6253\u5F00\u300C\u989D\u5EA6\u7528\u5B8C\u540E\u7528\u79EF\u5206\u7EE7\u7EED\u300D\u3002","quota.out.card":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\u3002\u53EF\u4EE5\u7528\u4E00\u5F20\u91CD\u7F6E\u5361\u6062\u590D\u3002","quota.out.usingPoints":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\uFF0C\u6B63\u5728\u7528\u79EF\u5206\u7EE7\u7EED\u3002","quota.out.pointsGone":"AI \u989D\u5EA6\u548C\u79EF\u5206\u90FD\u7528\u5B8C\u4E86\u3002\u5145\u503C\u79EF\u5206\u6216\u5347\u7EA7\u4F1A\u5458\u540E\u53EF\u4EE5\u7EE7\u7EED\u3002","err.pointsFallbackUnavailable":"\u6682\u65F6\u4E0D\u53EF\u7528\uFF0C\u7A0D\u540E\u518D\u8BD5","member.modelsAll":"\u53EF\u7528\u5168\u90E8\u6A21\u578B","member.modelsCap":"\u53EF\u7528\u500D\u7387\u4E0D\u8D85\u8FC7 {cap}\xD7 \u7684\u6A21\u578B","points.title":"\u79EF\u5206","points.desc":"\u79EF\u5206\u53EF\u4EE5\u5728\u5546\u5E97\u5151\u6362\u7269\u54C1\uFF0C\u4E5F\u80FD\u5728 AI \u989D\u5EA6\u7528\u5B8C\u540E\u7EE7\u7EED\u4F7F\u7528","points.balance":"\u4F59\u989D","points.balanceFailed":"\u4F59\u989D\u6682\u65F6\u62FF\u4E0D\u5230","points.recharge":"\u5145\u503C\u79EF\u5206","bg.title":"\u540E\u53F0\u989D\u5EA6","bg.desc":"Muse \u4E0E\u81EA\u52A8\u5316\u4F7F\u7528\uFF0C\u548C AI \u989D\u5EA6\u5206\u5F00\u8BA1\u7B97","bg.autoMain":"\u7528\u5B8C\u540E\u6539\u7528 AI \u989D\u5EA6\u7EE7\u7EED","bg.autoMainDesc":"\u5173\u7740\u65F6\uFF0C\u540E\u53F0\u989D\u5EA6\u7528\u5B8C\u540E Muse \u4E0E\u81EA\u52A8\u5316\u4F1A\u6682\u505C","bg.convert":"\u4ECE AI \u989D\u5EA6\u8F6C\u5165","bg.convertDesc":"\u6309 AI \u989D\u5EA6\u4E0A\u9650\u7684\u6BD4\u4F8B\u8F6C\u5165\uFF0C\u672C\u5468\u671F\u5185\u6709\u6548","bg.convertConfirm":"\u786E\u8BA4\u8F6C\u5165 {pct}%","bg.converted":"\u5DF2\u4ECE AI \u989D\u5EA6\u8F6C\u5165 {pct}%","invite.title":"\u9080\u8BF7\u4E0E\u5151\u6362","invite.desc":"\u9080\u8BF7\u597D\u53CB\u6CE8\u518C\uFF0C\u6216\u5151\u6362\u4F60\u6536\u5230\u7684\u7801","invite.myCode":"\u6211\u7684\u9080\u8BF7\u7801","invite.count":"\u5DF2\u9080\u8BF7 {n} \u4EBA","invite.copyCode":"\u590D\u5236\u9080\u8BF7\u7801","invite.copyLink":"\u590D\u5236\u9080\u8BF7\u94FE\u63A5","invite.loadFailed":"\u9080\u8BF7\u7801\u6682\u65F6\u62FF\u4E0D\u5230","invite.claim":"\u586B\u5199\u9080\u8BF7\u7801","invite.claimDesc":"\u6CE8\u518C\u540E 7 \u5929\u5185\uFF0C\u53EF\u4EE5\u8865\u586B\u597D\u53CB\u7684\u9080\u8BF7\u7801","invite.claimPlaceholder":"\u597D\u53CB\u7684\u9080\u8BF7\u7801","invite.claimSubmit":"\u63D0\u4EA4","invite.claimed":"\u9080\u8BF7\u7801\u5DF2\u751F\u6548","redeem.title":"\u5151\u6362\u7801","redeem.desc":"\u5151\u6362\u79EF\u5206\u3001\u4F1A\u5458\u6216\u5176\u4ED6\u5956\u52B1","redeem.placeholder":"\u8F93\u5165\u5151\u6362\u7801","redeem.submit":"\u5151\u6362","redeem.success":"\u5151\u6362\u6210\u529F","redeem.successWith":"\u5151\u6362\u6210\u529F\uFF1A{what}","redeem.gotPoints":"{n} \u79EF\u5206","redeem.gotMembership":"\u4F1A\u5458","sec.methods.title":"\u767B\u5F55\u65B9\u5F0F","sec.methods.desc":"\u624B\u673A\u548C\u90AE\u7BB1\u53EF\u4EE5\u7528\u6765\u767B\u5F55\u3001\u627E\u56DE\u5BC6\u7801","sec.bind":"\u7ED1\u5B9A","sec.change":"\u66F4\u6362","sec.phone":"\u624B\u673A\u53F7","sec.email":"\u90AE\u7BB1\u5730\u5740","sec.newPhone":"\u65B0\u624B\u673A\u53F7","sec.newEmail":"\u65B0\u90AE\u7BB1\u5730\u5740","sec.phonePlaceholder":"\u4E2D\u56FD\u5927\u9646\u53F7\u7801\u76F4\u63A5\u586B\uFF0C\u5176\u4ED6\u5730\u533A\u5E26 +\u533A\u53F7","sec.emailPlaceholder":"name@example.com","sec.code":"\u9A8C\u8BC1\u7801","sec.codePlaceholder":"\u8F93\u5165\u9A8C\u8BC1\u7801","sec.sendCode":"\u53D1\u9001\u9A8C\u8BC1\u7801","sec.resendIn":"{s} \u79D2\u540E\u91CD\u53D1","sec.codeSent":"\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001","sec.bindSubmit":"\u786E\u8BA4\u7ED1\u5B9A","sec.phoneBound":"\u624B\u673A\u5DF2\u7ED1\u5B9A","sec.emailBound":"\u90AE\u7BB1\u5DF2\u7ED1\u5B9A","sec.devices.title":"\u767B\u5F55\u8BBE\u5907","sec.devices.desc":"\u62C5\u5FC3\u8D26\u53F7\u88AB\u522B\u4EBA\u7528\u4E86\uFF0C\u53EF\u4EE5\u8BA9\u6240\u6709\u8BBE\u5907\u91CD\u65B0\u767B\u5F55","sec.logoutAll":"\u9000\u51FA\u6240\u6709\u8BBE\u5907","sec.logoutAllDesc":"\u5305\u62EC\u8FD9\u53F0\u8BBE\u5907\uFF0C\u6240\u6709\u8BBE\u5907\u90FD\u8981\u91CD\u65B0\u767B\u5F55","sec.logoutAllConfirm":"\u786E\u8BA4\u9000\u51FA\u6240\u6709\u8BBE\u5907","sec.logoutAllDone":"\u5DF2\u9000\u51FA\u6240\u6709\u8BBE\u5907","pw.title":"\u5BC6\u7801","pw.desc":"{min}\u2013{max} \u4F4D\uFF0C\u542B\u5C0F\u5199\u5B57\u6BCD\u3001\u5927\u5199\u5B57\u6BCD\u548C\u7279\u6B8A\u5B57\u7B26\uFF0C\u4E0D\u80FD\u6709\u7A7A\u683C","pw.change":"\u4FEE\u6539\u5BC6\u7801","pw.modeLabel":"\u4FEE\u6539\u65B9\u5F0F","pw.mode.current":"\u7528\u5F53\u524D\u5BC6\u7801","pw.mode.code":"\u7528\u9A8C\u8BC1\u7801","pw.current":"\u5F53\u524D\u5BC6\u7801","pw.currentRequired":"\u8BF7\u8F93\u5165\u5F53\u524D\u5BC6\u7801","pw.new":"\u65B0\u5BC6\u7801","pw.confirm":"\u518D\u8F93\u4E00\u6B21\u65B0\u5BC6\u7801","pw.mismatch":"\u4E24\u6B21\u8F93\u5165\u7684\u65B0\u5BC6\u7801\u4E0D\u4E00\u81F4","pw.submit":"\u4FEE\u6539\u5BC6\u7801","pw.submitReset":"\u8BBE\u7F6E\u65B0\u5BC6\u7801","pw.changed":"\u5BC6\u7801\u5DF2\u66F4\u65B0","pw.noPasswordYet":"\u8FD9\u4E2A\u8D26\u53F7\u8FD8\u6CA1\u6709\u8BBE\u7F6E\u5BC6\u7801\uFF0C\u8BF7\u6539\u7528\u9A8C\u8BC1\u7801\u8BBE\u7F6E\u3002","pw.codeNeedsContact":"\u7ED1\u5B9A\u624B\u673A\u6216\u90AE\u7BB1\u540E\uFF0C\u624D\u80FD\u7528\u9A8C\u8BC1\u7801\u8BBE\u7F6E\u5BC6\u7801\u3002","pw.via":"\u9A8C\u8BC1\u7801\u53D1\u5230","pw.codeTo":"\u9A8C\u8BC1\u7801\u4F1A\u53D1\u5230 {target}","pw.rulesLabel":"\u5BC6\u7801\u89C4\u5219","pw.req.length":"{min}\u2013{max} \u4F4D","pw.req.lower":"\u542B\u5C0F\u5199\u5B57\u6BCD","pw.req.upper":"\u542B\u5927\u5199\u5B57\u6BCD","pw.req.special":"\u542B\u7279\u6B8A\u5B57\u7B26","pw.req.space":"\u4E0D\u542B\u7A7A\u683C","pw.rule.format":"\u5BC6\u7801\u683C\u5F0F\u4E0D\u6B63\u786E","pw.rule.min":"\u5BC6\u7801\u81F3\u5C11 8 \u4F4D","pw.rule.max":"\u5BC6\u7801\u4E0D\u80FD\u8D85\u8FC7 64 \u4F4D","pw.rule.space":"\u5BC6\u7801\u4E0D\u80FD\u5305\u542B\u7A7A\u683C","pw.rule.lower":"\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u5C0F\u5199\u5B57\u6BCD","pw.rule.upper":"\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u5927\u5199\u5B57\u6BCD","pw.rule.special":"\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u7279\u6B8A\u5B57\u7B26","del.title":"\u6CE8\u9500\u8D26\u53F7","del.desc":"\u6C38\u4E45\u5220\u9664\u8D26\u53F7\u548C\u5168\u90E8\u6570\u636E\uFF0C\u65E0\u6CD5\u6062\u590D","del.start":"\u6CE8\u9500\u8D26\u53F7","del.warn":"\u6CE8\u9500\u540E\uFF0C\u8D26\u53F7\u3001\u79EF\u5206\u3001\u4F1A\u5458\u3001\u4E91\u7A7A\u95F4\u548C\u5168\u90E8\u6570\u636E\u90FD\u4F1A\u88AB\u5220\u9664\uFF0C\u65E0\u6CD5\u627E\u56DE\u3002","del.methodLabel":"\u9A8C\u8BC1\u65B9\u5F0F","del.byCode":"\u9A8C\u8BC1\u7801","del.byPassword":"\u5BC6\u7801","del.codeLabel":"\u53D1\u5230 {target} \u7684\u9A8C\u8BC1\u7801","del.passwordLabel":"\u8D26\u53F7\u5BC6\u7801","del.submit":"\u6CE8\u9500\u8D26\u53F7","del.confirm":"\u786E\u8BA4\u6C38\u4E45\u6CE8\u9500","del.done":"\u8D26\u53F7\u5DF2\u6CE8\u9500","usage.overview.title":"\u7528\u91CF\u6982\u89C8","usage.overview.desc":"\u6240\u9009\u65F6\u95F4\u6BB5\u5185\u7684\u8BF7\u6C42\u4E0E AI \u989D\u5EA6\u6D88\u8017","usage.range":"\u65F6\u95F4\u8303\u56F4","usage.days":"{n} \u5929","usage.requests":"\u8BF7\u6C42\u6B21\u6570","usage.successRate":"\u6210\u529F\u7387","usage.consumption":"AI \u989D\u5EA6\u6D88\u8017","usage.ofToday":"\u5360\u4ECA\u65E5\u989D\u5EA6\u4E0A\u9650","usage.unlimitedNote":"\u4F60\u7684 AI \u989D\u5EA6\u4E0D\u9650\uFF0C\u6D88\u8017\u65E0\u6CD5\u6298\u7B97\u6210\u767E\u5206\u6BD4\u3002","usage.noLimitNote":"\u4ECA\u65E5\u989D\u5EA6\u4E0A\u9650\u4E3A 0 \u6216\u6682\u65F6\u62FF\u4E0D\u5230\uFF0C\u6D88\u8017\u65E0\u6CD5\u6298\u7B97\u6210\u767E\u5206\u6BD4\u3002","usage.byModel.title":"\u6309\u6A21\u578B","usage.byModel.desc":"\u5404\u6A21\u578B\u7684\u8BF7\u6C42\u6570\u4E0E\u989D\u5EA6\u6D88\u8017","usage.byApp.title":"\u6309\u5E94\u7528","usage.byApp.desc":"\u5404\u5E94\u7528\u7684\u8BF7\u6C42\u6570\u4E0E\u989D\u5EA6\u6D88\u8017","usage.col.model":"\u6A21\u578B","usage.col.app":"\u5E94\u7528","usage.col.requests":"\u8BF7\u6C42","usage.col.consumption":"\u989D\u5EA6\u6D88\u8017","usage.empty":"\u8FD9\u6BB5\u65F6\u95F4\u6CA1\u6709\u7528\u91CF","usage.appUnknown":"\u5176\u4ED6","usage.recent.title":"\u6700\u8FD1\u6D88\u8017","usage.recent.desc":"\u6BCF\u6B21\u8C03\u7528\u5360\u4ECA\u65E5\u989D\u5EA6\u4E0A\u9650\u7684\u6BD4\u4F8B","usage.recentEmpty":"\u8FD8\u6CA1\u6709\u6D88\u8017\u8BB0\u5F55","usage.failed":"\u5931\u8D25","usage.shown":"\u5DF2\u663E\u793A {shown} / {total} \u6761","fb.list.title":"\u6211\u7684\u53CD\u9988","fb.list.desc":"\u63D0\u4EA4\u8FC7\u7684\u95EE\u9898\u548C\u5EFA\u8BAE\uFF0C\u56DE\u590D\u4F1A\u663E\u793A\u5728\u8FD9\u91CC","fb.new":"\u65B0\u5EFA\u53CD\u9988","fb.empty":"\u8FD8\u6CA1\u6709\u53CD\u9988","fb.untitled":"\u672A\u547D\u540D\u53CD\u9988","fb.unread":"\u6709\u65B0\u56DE\u590D","fb.shown":"\u5DF2\u663E\u793A {n} \u6761","fb.submitted":"\u5DF2\u63D0\u4EA4\uFF0C\u6211\u4EEC\u4F1A\u5C3D\u5FEB\u56DE\u590D","fb.descLabel":"\u63CF\u8FF0\u95EE\u9898\u6216\u5EFA\u8BAE","fb.descPlaceholder":"\u53D1\u751F\u4E86\u4EC0\u4E48\uFF0C\u4F60\u671F\u671B\u600E\u6837\u2026\u2026","fb.imagesHint":"\u6700\u591A\u9644 {n} \u5F20\u622A\u56FE\uFF08\u6BCF\u5F20\u4E0D\u8D85\u8FC7 5MB\uFF09\uFF0C\u53EF\u4EE5\u7C98\u8D34\u6216\u62D6\u8FDB\u6765\u3002","fb.addImages":"\u6DFB\u52A0\u622A\u56FE","fb.removeImage":"\u79FB\u9664\u8FD9\u5F20\u56FE","fb.submit":"\u63D0\u4EA4","fb.back":"\u8FD4\u56DE\u5217\u8868","fb.you":"\u4F60","fb.support":"Forsion \u56E2\u961F","fb.attachment":"\u9644\u4EF6","fb.imagePreview":"\u67E5\u770B\u5927\u56FE","fb.closedNote":"\u8FD9\u4E2A\u5DE5\u5355\u5DF2\u5173\u95ED\uFF0C\u4E0D\u80FD\u518D\u56DE\u590D\u3002\u6709\u65B0\u95EE\u9898\u8BF7\u65B0\u5EFA\u53CD\u9988\u3002","fb.replyPlaceholder":"\u56DE\u590D\u2026","fb.replySend":"\u53D1\u9001\u56DE\u590D","fb.replySent":"\u56DE\u590D\u5DF2\u53D1\u9001","fb.status.open":"\u5F85\u5904\u7406","fb.status.in_progress":"\u5904\u7406\u4E2D","fb.status.resolved":"\u5DF2\u89E3\u51B3","fb.status.closed":"\u5DF2\u5173\u95ED","af.title":"\u53CD\u9988\u7ED9 Forsion","af.kind":"\u53CD\u9988\u7C7B\u578B","af.kind.bug":"\u9047\u5230\u95EE\u9898","af.kind.idea":"\u529F\u80FD\u5EFA\u8BAE","af.kind.other":"\u5176\u4ED6\u53CD\u9988","af.titleLabel":"\u6807\u9898","af.descLabel":"\u63CF\u8FF0","af.includes":"\u9644\u5E26","af.optErrors":"\u8FD9\u6B21\u8FD0\u884C\u7684\u62A5\u9519","af.optErrorsHint":"\u540C\u4E00\u6761\u56DE\u590D\u91CC\u5931\u8D25\u7684\u5DE5\u5177\u8C03\u7528\uFF0C\u5E26\u53C2\u6570\u4E0E\u62A5\u9519\u539F\u6587","af.optLogs":"\u5E94\u7528\u4E0E\u8FD0\u884C\u65E5\u5FD7","af.optLogsHint":"\u7248\u672C\u3001\u9519\u8BEF\u3001\u8FD0\u884C\u65F6\u95F4\u7EBF\u4E0E\u7528\u91CF\uFF1B\u8FDB\u7A0B\u65E5\u5FD7\u53EF\u80FD\u6D89\u53CA\u5176\u4ED6\u4F1A\u8BDD\u3002","af.optConversation":"\u5F53\u524D\u4F1A\u8BDD\u5185\u5BB9","af.optConversationHint":"\u6574\u6BB5\u5BF9\u8BDD\uFF0C\u5305\u542B\u5DE5\u5177\u8F93\u5165\u4E0E\u8F93\u51FA\u3002","af.optConversationAuto":"\u76F4\u63A5\u53D1\u9001\u65F6\u4E0D\u5E26\u4F1A\u8BDD\u5185\u5BB9\u3002","af.redacted":"\u5DF2\u8FC7\u6EE4\u5E38\u89C1\u51ED\u636E\u5B57\u6BB5","af.sendingAuto":"\u6B63\u5728\u6309\u4F60\u7684\u8BBE\u7F6E\u76F4\u63A5\u53D1\u9001\u2026","af.preview":"\u9884\u89C8\u9644\u4EF6","af.hidePreview":"\u6536\u8D77\u9884\u89C8","af.dismiss":"\u4E0D\u53D1\u4E86","af.send":"\u53D1\u9001","af.sending":"\u6B63\u5728\u53D1\u9001\u2026","af.appendTo":"\u8865\u5145\u5230 {id}","af.dup":"\u4F60\u4E4B\u524D\u62A5\u8FC7\u540C\u4E00\u4E2A\u95EE\u9898\uFF08{id}\uFF0C\u8FD8\u6CA1\u5904\u7406\u5B8C\uFF09\u3002\u53D1\u9001\u4F1A\u8865\u5145\u5230\u90A3\u4E00\u6761\uFF0C\u4E0D\u53E6\u5F00\u65B0\u53CD\u9988\u3002","af.dupAuto":"\u4F60\u4E4B\u524D\u62A5\u8FC7\u540C\u4E00\u4E2A\u95EE\u9898\uFF08{id}\uFF0C\u8FD8\u6CA1\u5904\u7406\u5B8C\uFF09\uFF0C\u8FD9\u6B21\u6CA1\u6709\u81EA\u52A8\u53D1\u9001\u3002\u8981\u8865\u5145\u5C31\u70B9\u4E0B\u9762\u7684\u6309\u94AE\u3002","af.staleAuto":"\u8FD9\u4EFD\u8349\u7A3F\u8D77\u8349\u65F6\u95F4\u8F83\u65E9\uFF0C\u6CA1\u6709\u81EA\u52A8\u53D1\u9001\u3002\u8981\u53D1\u5C31\u70B9\u300C\u53D1\u9001\u300D\u3002","af.errorCount":"{n} \u6B21\u5931\u8D25\u8C03\u7528","af.errReport":"\u9644\u4EF6\u6CA1\u5907\u597D\uFF0C\u53EF\u80FD\u662F\u8FD9\u6BB5\u5BF9\u8BDD\u5DF2\u7ECF\u4E0D\u5728\u5F53\u524D\u7A97\u53E3\u91CC\u3002","af.sendTextOnly":"\u53EA\u53D1\u6587\u5B57","af.errSend":"\u53D1\u9001\u5931\u8D25\uFF1A{err}","af.errWithdrawLate":"\u8D85\u8FC7 10 \u5206\u949F\u6216\u56E2\u961F\u5DF2\u7ECF\u56DE\u590D\uFF0C\u64A4\u4E0D\u56DE\u4E86\u3002","af.needLogin":"\u767B\u5F55 Forsion \u8D26\u53F7\u540E\u624D\u80FD\u53D1\u9001\uFF0C\u8349\u7A3F\u4F1A\u7559\u5728\u8FD9\u91CC\u3002","af.login":"\u53BB\u767B\u5F55","af.prefLead":"\u4EE5\u540E\u9047\u5230 Forsion \u7684\u95EE\u9898\uFF1A","af.modeAsk":"\u8D77\u8349\uFF0C\u6BCF\u6B21\u5148\u95EE\u6211","af.modeAuto":"\u8D77\u8349\u5E76\u76F4\u63A5\u53D1\u9001","af.change":"\u66F4\u6539","af.replied":"\u5DF2\u56DE\u590D","af.appended":"\u5DF2\u8865\u5145\u5230\u53CD\u9988 {id}","af.sent":"\u5DF2\u53D1\u9001 \xB7 \u53CD\u9988 {id}","af.sentAuto":"\u5DF2\u81EA\u52A8\u53D1\u9001 \xB7 \u53CD\u9988 {id} \xB7 \u4E0D\u542B\u4F1A\u8BDD\u5185\u5BB9","af.withdrawLeft":"\u8FD8\u80FD\u64A4\u56DE {n} \u5206\u949F","af.replyInbox":"\u56E2\u961F\u7684\u56DE\u590D\u4F1A\u53D1\u5230\u6536\u4EF6\u7BB1","af.withdraw":"\u64A4\u56DE","af.openFeedback":"\u5728\u53CD\u9988\u4E2D\u67E5\u770B","af.withdrawn":"\u5DF2\u64A4\u56DE","af.dismissed":"\u6CA1\u6709\u53D1\u9001","af.sendAnyway":"\u8FD8\u662F\u53D1\u5427","af.errAccount":"\u51C6\u5907\u9644\u4EF6\u65F6\u6362\u4E86\u8D26\u53F7\uFF0C\u8FD9\u6B21\u6CA1\u6709\u53D1\u9001\u3002\u786E\u8BA4\u8D26\u53F7\u540E\u518D\u70B9\u53D1\u9001\u3002","af.matchFailed":"\u6682\u65F6\u67E5\u4E0D\u5230\u4F60\u4E4B\u524D\u6709\u6CA1\u6709\u62A5\u8FC7\u540C\u4E00\u4E2A\u95EE\u9898\uFF0C\u8FD9\u6B21\u6CA1\u6709\u81EA\u52A8\u53D1\u9001\u3002\u8981\u53D1\u5C31\u70B9\u300C\u53D1\u9001\u300D\u3002","err.accountGone":"\u8FD9\u4E2A\u8D26\u53F7\u5DF2\u9000\u51FA\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55","err.adminCannotDelete":"\u7BA1\u7406\u5458\u8D26\u53F7\u4E0D\u80FD\u81EA\u52A9\u6CE8\u9500","err.avatarInvalid":"\u8FD9\u5F20\u56FE\u7247\u8BFB\u4E0D\u51FA\u6765\uFF0C\u6362\u4E00\u5F20\u8BD5\u8BD5","err.avatarTooLarge":"\u56FE\u7247\u592A\u5927\u4E86\uFF0C\u6362\u4E00\u5F20\u5C0F\u4E00\u70B9\u7684","err.backgroundUnavailable":"\u540E\u53F0\u989D\u5EA6\u6682\u65F6\u4E0D\u53EF\u7528","err.captcha":"\u9700\u8981\u5728\u6D4F\u89C8\u5668\u4E2D\u5B8C\u6210\u4EBA\u673A\u9A8C\u8BC1","err.codeCooldown":"\u53D1\u9001\u592A\u9891\u7E41\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5","err.codeInvalid":"\u9A8C\u8BC1\u7801\u4E0D\u5BF9\u6216\u5DF2\u8FC7\u671F","err.codeRequired":"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801","err.codeSendFailed":"\u9A8C\u8BC1\u7801\u6CA1\u53D1\u51FA\u53BB\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5","err.currentPasswordWrong":"\u5F53\u524D\u5BC6\u7801\u4E0D\u5BF9","err.deleteTargetInvalid":"\u9A8C\u8BC1\u7801\u53EA\u80FD\u53D1\u5230\u8D26\u53F7\u7ED1\u5B9A\u7684\u624B\u673A\u6216\u90AE\u7BB1","err.deleteVerifyFailed":"\u9A8C\u8BC1\u6CA1\u901A\u8FC7\uFF0C\u8D26\u53F7\u6CA1\u6709\u6CE8\u9500","err.emailInUse":"\u8FD9\u4E2A\u90AE\u7BB1\u5DF2\u88AB\u5176\u4ED6\u8D26\u53F7\u4F7F\u7528","err.emailInvalid":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u5BF9","err.featureDisabled":"\u8FD9\u9879\u529F\u80FD\u6682\u65F6\u5173\u95ED\u4E86","err.feedbackEmpty":"\u8BF7\u5199\u4E00\u4E0B\u95EE\u9898\u6216\u5EFA\u8BAE","err.feedbackTooLong":"\u63CF\u8FF0\u592A\u957F\u4E86\uFF08\u6700\u591A 10000 \u5B57\uFF09","err.generic":"\u64CD\u4F5C\u6CA1\u6709\u6210\u529F\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5","err.imageRead":"\u56FE\u7247\u8BFB\u4E0D\u51FA\u6765","err.imageTooLarge":"\u6BCF\u5F20\u56FE\u7247\u4E0D\u80FD\u8D85\u8FC7 5MB","err.imageType":"\u53EA\u80FD\u6DFB\u52A0\u56FE\u7247","err.insufficientMainQuota":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\uFF0C\u6CA1\u6709\u53EF\u8F6C\u5165\u7684\u989D\u5EA6","err.insufficientPoints":"\u79EF\u5206\u4E0D\u591F","err.invalidInviteCode":"\u9080\u8BF7\u7801\u65E0\u6548\u6216\u5DF2\u5931\u6548","err.inviteAlreadyUsed":"\u4F60\u5DF2\u7ECF\u7528\u8FC7\u9080\u8BF7\u7801\u4E86","err.inviteEmpty":"\u8BF7\u8F93\u5165\u9080\u8BF7\u7801","err.inviteOwnCode":"\u4E0D\u80FD\u586B\u81EA\u5DF1\u7684\u9080\u8BF7\u7801","err.inviteWindowExpired":"\u5DF2\u8D85\u8FC7\u6CE8\u518C\u540E 7 \u5929\u7684\u8865\u586B\u671F","err.loginCodeExpired":"\u767B\u5F55\u7801\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55","err.loginInProgress":"\u6B63\u5728\u767B\u5F55\u4E2D","err.loginTimeout":"\u767B\u5F55\u8D85\u65F6\uFF0C\u8BF7\u91CD\u8BD5","err.loginUnsupported":"\u8FD9\u4E2A\u4E91\u7AEF\u4E0D\u652F\u6301\u684C\u9762\u7AEF\u767B\u5F55","err.network":"\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","err.noCloudUrl":"\u8BF7\u5148\u5728\u300C\u8FDE\u63A5\u300D\u91CC\u586B\u5199\u4E91\u7AEF\u5730\u5740","err.noResetCard":"\u6CA1\u6709\u53EF\u7528\u7684\u989D\u5EA6\u91CD\u7F6E\u5361","err.openFailed":"\u6CA1\u80FD\u6253\u5F00\u6D4F\u89C8\u5668","err.passwordRequired":"\u8BF7\u586B\u5199\u5F53\u524D\u5BC6\u7801\u548C\u65B0\u5BC6\u7801","err.phoneInUse":"\u8FD9\u4E2A\u624B\u673A\u53F7\u5DF2\u88AB\u5176\u4ED6\u8D26\u53F7\u4F7F\u7528","err.phoneInvalid":"\u624B\u673A\u53F7\u683C\u5F0F\u4E0D\u5BF9\uFF08\u5176\u4ED6\u5730\u533A\u8BF7\u5E26 +\u533A\u53F7\uFF09","err.redeemEmpty":"\u8BF7\u8F93\u5165\u5151\u6362\u7801","err.redeemExpired":"\u5151\u6362\u7801\u5DF2\u8FC7\u671F","err.redeemInactive":"\u5151\u6362\u7801\u5DF2\u505C\u7528","err.redeemNotFound":"\u5151\u6362\u7801\u4E0D\u5B58\u5728","err.redeemUsedUp":"\u5151\u6362\u7801\u5DF2\u88AB\u7528\u5B8C","err.redeemUserLimit":"\u4F60\u5DF2\u7ECF\u5151\u6362\u8FC7\u8FD9\u4E2A\u7801\u4E86","err.replyEmpty":"\u8BF7\u8F93\u5165\u56DE\u590D\u5185\u5BB9","err.replyTooLong":"\u56DE\u590D\u592A\u957F\u4E86\uFF08\u6700\u591A 10000 \u5B57\uFF09","err.server":"\u670D\u52A1\u5668\u51FA\u9519\u4E86\uFF08{status}\uFF09\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5","err.session":"\u767B\u5F55\u72B6\u6001\u5DF2\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55","err.signedOut":"\u8BF7\u5148\u767B\u5F55 Forsion","err.targetInvalid":"\u624B\u673A\u53F7\u6216\u90AE\u7BB1\u683C\u5F0F\u4E0D\u5BF9","err.ticketNotFound":"\u8FD9\u6761\u53CD\u9988\u4E0D\u5B58\u5728\u6216\u5DF2\u5220\u9664","err.webPageGone":"\u8FD9\u4E2A\u7F51\u9875\u4E0D\u5B58\u5728\u6216\u5DF2\u4E0B\u7EBF","err.listingGone":"\u8FD9\u4E2A\u7F51\u9875\u6CA1\u6709\u4E0A\u67B6\u7533\u8BF7","err.listingSummary":"\u8BF7\u586B\u5199\u5546\u5E97\u7B80\u4ECB\uFF08300 \u5B57\u4EE5\u5185\uFF09","err.tooFrequent":"\u64CD\u4F5C\u592A\u9891\u7E41\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5","err.tooManyImages":"\u6700\u591A\u6DFB\u52A0 5 \u5F20\u56FE\u7247","err.unavailable":"\u8FD9\u4E2A\u7248\u672C\u8FD8\u4E0D\u652F\u6301\u8FD9\u4E2A\u64CD\u4F5C\uFF0C\u8BF7\u66F4\u65B0 Forsion","profile.unsupported":"\u8FD9\u4E2A\u670D\u52A1\u7AEF\u8FD8\u6CA1\u6709\u4E2A\u4EBA\u4E3B\u9875\u529F\u80FD","profile.state.private":"\u4EC5\u81EA\u5DF1\u53EF\u89C1","profile.state.public":"\u5DF2\u516C\u5F00","profile.state.privateDesc":"\u516C\u5F00\u540E\uFF0C\u4EFB\u4F55\u4EBA\u6253\u5F00\u5730\u5740\u90FD\u80FD\u770B\u5230\u4F60\u7684\u4E3B\u9875\uFF0C\u4E0D\u9700\u8981\u767B\u5F55","profile.linkUnavailable":"\u6682\u672A\u83B7\u53D6\u5230\u516C\u5F00\u94FE\u63A5","profile.decorate":"\u88C5\u9970","profile.publish":"\u516C\u5F00\u4E3B\u9875","profile.makePrivate":"\u8BBE\u4E3A\u79C1\u6709","profile.copyLink":"\u590D\u5236\u94FE\u63A5","profile.openPublic":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00\u516C\u5F00\u4E3B\u9875","profile.nowPublic":"\u4E3B\u9875\u5DF2\u516C\u5F00","profile.nowPrivate":"\u4E3B\u9875\u5DF2\u8BBE\u4E3A\u79C1\u6709\uFF0C\u516C\u5F00\u5730\u5740\u4E0D\u518D\u80FD\u6253\u5F00","profile.bio":"\u7B80\u4ECB","profile.bioPlaceholder":"\u5199\u4E00\u53E5\u7B80\u4ECB","profile.linkAdd":"\u6DFB\u52A0\u94FE\u63A5","profile.linkRemove":"\u79FB\u9664\u94FE\u63A5","profile.linkInvalid":"\u94FE\u63A5\u8981\u4EE5 http:// \u6216 https:// \u5F00\u5934\uFF0C\u6216\u76F4\u63A5\u5199\u57DF\u540D","profile.joined":"{date}\u52A0\u5165","profile.stat.tokens":"\u7D2F\u8BA1 Token","profile.stat.activeDays":"\u6D3B\u8DC3\u5929\u6570","profile.stat.longest":"\u6700\u957F\u8FDE\u7EED","profile.stat.current":"\u5F53\u524D\u8FDE\u7EED","profile.stat.installs":"\u4F5C\u54C1\u88AB\u5B89\u88C5","profile.unit.days":"\u5929","profile.works":"\u7CBE\u9009\u4F5C\u54C1","profile.worksPick":"\u9009\u62E9","profile.worksEmpty":"\u8FD8\u6CA1\u6709\u4E0A\u67B6\u7684\u4F5C\u54C1\u3002\u4E0A\u67B6\u5230\u5546\u5E97\u6216\u53D1\u5E03\u6210\u7F51\u9875\u5E94\u7528\u540E\uFF0C\u53EF\u4EE5\u653E\u5230\u8FD9\u91CC\u3002","profile.worksNone":"\u8FD8\u6CA1\u6709\u53EF\u4EE5\u653E\u4E0A\u4E3B\u9875\u7684\u4F5C\u54C1\u3002\u4F5C\u54C1\u4E0A\u67B6\u5230\u5546\u5E97\u3001\u6216\u53D1\u5E03\u6210\u7F51\u9875\u5E94\u7528\u540E\u4F1A\u51FA\u73B0\u5728\u8FD9\u91CC\u3002","profile.worksPicked":"\u5DF2\u9009 {n} / {max} \u4EF6","profile.worksAuto":"\u4E0D\u9009\u7684\u8BDD\uFF0C\u6309\u5B89\u88C5\u91CF\u81EA\u52A8\u53D6\u524D\u51E0\u4EF6","profile.goSubmit":"\u53BB\u6295\u7A3F","profile.workInstalls":"{n} \u6B21\u5B89\u88C5","profile.workVisits":"{n} \u6B21\u8BBF\u95EE","profile.work.skill":"\u6280\u80FD","profile.work.agent":"Agent","profile.work.plugin":"\u63D2\u4EF6","profile.work.space":"Space","profile.work.theme":"\u4E3B\u9898","profile.work.note":"\u7B14\u8BB0\u63D2\u4EF6","profile.work.webapp":"\u7F51\u9875\u5E94\u7528","profile.activity":"\u6D3B\u52A8","profile.activityDays":"\u8FC7\u53BB\u4E00\u5E74\u6709 {n} \u5929\u5728\u7528","profile.less":"\u5C11","profile.more":"\u591A","profile.badges":"\u5FBD\u7AE0","profile.badgesEmpty":"\u8FD8\u6CA1\u6709\u5FBD\u7AE0\u3002\u8FDE\u7EED\u4F7F\u7528\u3001\u4E0A\u67B6\u4F5C\u54C1\u3001\u9080\u8BF7\u670B\u53CB\u90FD\u4F1A\u70B9\u4EAE\u3002","profile.badge.early":"\u65E9\u671F\u7528\u6237","profile.badge.streak":"\u8FDE\u7EED 30 \u5929","profile.badge.author":"\u4F5C\u8005","profile.badge.inviter":"\u9080\u8BF7\u8FBE\u4EBA","profile.badge.event":"\u6D3B\u52A8\u7EAA\u5FF5","profile.badgeSub.early":"{value} \u5E74\u52A0\u5165","profile.badgeSub.streak":"\u6700\u957F\u8FDE\u7EED {value} \u5929","profile.badgeSub.author":"\u4E0A\u67B6\u4E86 {value} \u4EF6\u4F5C\u54C1","profile.badgeSub.inviter":"\u9080\u8BF7\u4E86 {value} \u4F4D\u670B\u53CB","profile.badgeSub.event":"\u53C2\u52A0\u8FC7 Forsion \u7684\u6D3B\u52A8{value}","profile.insights":"\u6D1E\u5BDF","profile.insightsEmpty":"\u7528\u5F97\u8FD8\u4E0D\u591F\u591A\uFF0C\u8FC7\u51E0\u5929\u518D\u6765\u770B\u3002","profile.insightModel":"\u6700\u5E38\u7528\u6A21\u578B","profile.insightHours":"\u6700\u6D3B\u8DC3\u65F6\u6BB5","profile.deco.skin":"\u516C\u5F00\u9875\u7684\u914D\u8272","profile.deco.mode":"\u516C\u5F00\u9875\u7684\u660E\u6697","profile.deco.publicHint":"\u8FD9\u4E24\u9879\u53EA\u7BA1\u8BBF\u5BA2\u5728\u516C\u5F00\u9875\u4E0A\u770B\u5230\u7684\u3002\u5728\u8FD9\u91CC\uFF0C\u4E3B\u9875\u8DDF Forsion \u5F53\u524D\u7684\u4E3B\u9898\u8D70\u3002","profile.deco.cover":"\u5C01\u9762","profile.deco.frame":"\u5934\u50CF\u6846","profile.deco.modules":"\u6A21\u5757","profile.skin.cream":"\u7ECF\u5178","profile.skin.coral":"\u73CA\u745A","profile.skin.teal":"\u67D4\u9752","profile.skin.lavender":"\u85B0\u8863\u8349","profile.mode.auto":"\u8DDF\u968F\u8BBF\u5BA2","profile.mode.light":"\u6D45\u8272","profile.mode.dark":"\u6DF1\u8272","profile.cover.none":"\u65E0","profile.cover.mist":"\u6668\u96FE","profile.cover.contour":"\u7B49\u9AD8\u7EBF","profile.cover.dots":"\u7F51\u70B9","profile.frame.none":"\u65E0","profile.frame.ring":"\u7EC6\u73AF","profile.frame.pro":"\u4F1A\u5458\u73AF","profile.frameProHint":"\u4F1A\u5458\u73AF\u662F\u4ED8\u8D39\u4F1A\u5458\u4E13\u5C5E\u3002","profile.col.show":"\u663E\u793A","profile.col.public":"\u516C\u5F00","profile.moveUp":"\u4E0A\u79FB","profile.moveDown":"\u4E0B\u79FB","profile.modulesHint":"\u300C\u663E\u793A\u300D\u51B3\u5B9A\u4E3B\u9875\u4E0A\u6709\u6CA1\u6709\u8FD9\u4E00\u5757\uFF1B\u300C\u516C\u5F00\u300D\u51B3\u5B9A\u8BBF\u5BA2\u80FD\u4E0D\u80FD\u770B\u5230\uFF0C\u4E3B\u9875\u516C\u5F00\u540E\u624D\u8D77\u4F5C\u7528\u3002","profile.mod.stats":"\u6570\u636E","profile.mod.works":"\u7CBE\u9009\u4F5C\u54C1","profile.mod.activity":"\u6D3B\u52A8","profile.mod.badges":"\u5FBD\u7AE0","profile.mod.insights":"\u6D1E\u5BDF","profile.modDesc.stats":"\u7D2F\u8BA1 Token\u3001\u6D3B\u8DC3\u5929\u6570\u3001\u8FDE\u7EED\u5929\u6570\u3001\u4F5C\u54C1\u5B89\u88C5\u91CF","profile.modDesc.works":"\u4F60\u4E0A\u67B6\u7684\u4F5C\u54C1\uFF0C\u6700\u591A 6 \u4EF6","profile.modDesc.activity":"\u8FC7\u53BB\u4E00\u5E74\u6BCF\u5929\u7528\u6CA1\u7528\u3001\u7528\u5F97\u591A\u4E0D\u591A\uFF08\u53EA\u6709\u6DF1\u6D45\uFF0C\u6CA1\u6709\u5177\u4F53\u6570\u5B57\uFF09","profile.modDesc.badges":"\u52A0\u5165\u5E74\u4EFD\u3001\u8FDE\u7EED\u5929\u6570\u3001\u4E0A\u67B6\u3001\u9080\u8BF7\u3001\u6D3B\u52A8","profile.modDesc.insights":"\u6700\u5E38\u7528\u7684\u6A21\u578B\u3001\u6700\u6D3B\u8DC3\u7684\u65F6\u6BB5","profile.publishDesc":"\u516C\u5F00\u540E\uFF0C\u4EFB\u4F55\u4EBA\u6253\u5F00\u8FD9\u4E2A\u5730\u5740\u90FD\u80FD\u770B\u5230\u4F60\u7684\u4E3B\u9875\uFF0C\u4E0D\u9700\u8981\u767B\u5F55\u3002\u4E0B\u9762\u6BCF\u4E00\u5757\u53EF\u4EE5\u5355\u72EC\u51B3\u5B9A\u7ED9\u4E0D\u7ED9\u8BBF\u5BA2\u770B\u3002","profile.publishNever":"\u5934\u50CF\u3001\u6635\u79F0\u3001\u7528\u6237\u540D\u3001\u7B80\u4ECB\u548C\u94FE\u63A5\u4F1A\u4E00\u8D77\u516C\u5F00\u3002\u90AE\u7BB1\u3001\u624B\u673A\u53F7\u3001\u4F1A\u5458\u5230\u671F\u65E5\u3001\u79EF\u5206\u548C\u989D\u5EA6\u4E0D\u4F1A\u51FA\u73B0\u5728\u4E3B\u9875\u4E0A\u3002","profile.publishConfirm":"\u516C\u5F00","profile.blocked.machineUsername":"\u4F60\u73B0\u5728\u7684\u7528\u6237\u540D\u662F\u7CFB\u7EDF\u751F\u6210\u7684\uFF0C\u91CC\u9762\u5E26\u7740\u624B\u673A\u53F7\u6216\u90AE\u7BB1\u7684\u4E00\u90E8\u5206\uFF0C\u516C\u5F00\u4F1A\u628A\u5B83\u9732\u51FA\u53BB\u3002\u5148\u5230\u7F51\u9875\u4E2A\u4EBA\u4E2D\u5FC3\u7684\u300C\u8D26\u53F7\u300D\u9875\u6539\u4E00\u4E2A\u7528\u6237\u540D\uFF08\u6BCF\u4E2A\u8D26\u53F7\u53EF\u4EE5\u6539\u4E00\u6B21\uFF09\uFF0C\u518D\u56DE\u6765\u516C\u5F00\u3002","profile.blocked.publishBlocked":"\u8FD9\u4E2A\u4E3B\u9875\u5DF2\u88AB\u7BA1\u7406\u5458\u505C\u6B62\u516C\u5F00\u3002\u6709\u7591\u95EE\u8BF7\u901A\u8FC7\u300C\u53CD\u9988\u300D\u8054\u7CFB\u6211\u4EEC\u3002","profile.goRename":"\u53BB\u6539\u7528\u6237\u540D","profile.invalid":"\u8FD9\u9879\u5185\u5BB9\u6CA1\u80FD\u4FDD\u5B58\uFF0C\u8BF7\u68C0\u67E5\u540E\u518D\u8BD5","guide.title":"\u4F7F\u7528\u6307\u5357","guide.readOnly":"\u53EA\u8BFB","guide.more":"\u66F4\u591A","guide.unlockAll":"\u5168\u90E8\u89E3\u9501","guide.relock":"\u6539\u56DE\u6309\u7B49\u7EA7\u89E3\u9501","guide.reminders":"\u4F7F\u7528\u6307\u5357\u63D0\u9192","guide.spotlight":"\u73B0\u573A\u6307\u5F15","guide.spotStep":"\u7B2C {n} \u6B65\uFF0C\u5171 {total} \u6B65","guide.figure":"\u793A\u610F\u56FE","guide.openAchievements":"\u6253\u5F00\u6210\u5C31","guide.tasks":"\u672C\u7AE0\u4EFB\u52A1","guide.go":"\u5E26\u6211\u53BB","guide.desktopOnly":"\u5728\u7535\u8111\u4E0A\u505A","guide.taskDone":"\u5DF2\u5B8C\u6210","guide.askTangu":"\u95EE Tangu","guide.progress":"\u8FDB\u5EA6","guide.justUnlocked":"\u521A\u89E3\u9501","guide.lockedHint":"\u672A\u89E3\u9501","guide.whatsNew":"\u65B0\u7248\u672C \xB7 {version}","guide.level.lv1":"Lv.1 \u521D\u6765\u4E4D\u5230","guide.level.lv2":"Lv.2 \u719F\u95E8\u719F\u8DEF","guide.level.lv3":"Lv.3 \u5F97\u5FC3\u5E94\u624B","guide.level.lv4":"Lv.4 \u878D\u4F1A\u8D2F\u901A","guide.locked.title":"\u8FD9\u4E00\u7AE0\u8FD8\u6CA1\u89E3\u9501","guide.locked.body":"\u505A\u5B8C\u300C{level}\u300D\u7684\u4EFB\u52A1\u5C31\u80FD\u8BFB\u5168\u6587\u3002","guide.locked.left":"\u8FD8\u5DEE\u8FD9\u51E0\u9879\uFF1A","guide.locked.hint":"\u7528\u8FC7\u4E00\u9635\u4E86\uFF1F\u53F3\u4E0A\u89D2\u300C\xB7\xB7\xB7\u300D\u91CC\u53EF\u4EE5\u5168\u90E8\u89E3\u9501\u3002","guide.levelProgress":"\u672C\u7EA7\u8FDB\u5EA6 {done}/{total}","guide.next":"\u4E0B\u4E00\u7EA7","guide.allDone":"\u5168\u90E8\u5B8C\u6210","guide.allDoneBody":"\u6307\u5357\u91CC\u7684\u4EFB\u52A1\u90FD\u505A\u5B8C\u4E86\uFF0C\u968F\u65F6\u56DE\u6765\u7FFB\u770B\u3002","guide.review":"\u56DE\u770B","guide.ask.hint":"\u5BF9\u300C{chapter}\u300D\u6709\u7591\u95EE\uFF1F\u95EE Tangu \u4F1A\u5F00\u4E00\u4E2A\u5E26\u4E0A\u672C\u7AE0\u5185\u5BB9\u7684\u65B0\u5BF9\u8BDD\u3002","guide.ask.placeholder":"\u60F3\u95EE\u4EC0\u4E48\uFF1F","guide.ask.send":"\u5F00\u59CB\u5BF9\u8BDD","guide.ask.prompt":"\u6211\u6B63\u5728\u8BFB Forsion \u4F7F\u7528\u6307\u5357\u91CC\u300C{chapter}\u300D\u8FD9\u4E00\u7AE0\uFF0C\u5185\u5BB9\u9644\u5728\u4E0B\u9762\u3002{question}","guide.ask.unavailable":"\u8FD9\u91CC\u5F00\u4E0D\u4E86\u5BF9\u8BDD","guide.ask.chatTitle":"\u4F7F\u7528\u6307\u5357\u95EE\u7B54","guide.companion.back":"\u56DE\u5230\u6307\u5357","guide.companion.close":"\u6536\u8D77","guide.toast.taskDone":"\u5B8C\u6210\uFF1A{task}","guide.letter.levelTitle":"{level} \u5DF2\u89E3\u9501\uFF1A\u63A5\u4E0B\u6765\u8BD5\u8BD5\u8FD9\u51E0\u4EF6\u4E8B","guide.letter.levelBody":"\u4E0A\u4E00\u7EA7\u7684\u4EFB\u52A1\u90FD\u505A\u5B8C\u4E86\uFF0C\u4E0B\u9762\u8FD9\u51E0\u7AE0\u73B0\u5728\u53EF\u4EE5\u8BFB\u4E86\u3002\u6BCF\u9879\u4EFB\u52A1\u90FD\u80FD\u300C\u5E26\u6211\u53BB\u300D\u3002","guide.letter.versionTitle":"{version} \u6709 {n} \u4EF6\u65B0\u4E1C\u897F\u53EF\u4EE5\u4F53\u9A8C","guide.letter.versionBody":"\u8FD9\u4E2A\u7248\u672C\u65B0\u52A0\u7684\uFF0C\u53EF\u4EE5\u76F4\u63A5\u4E0A\u624B\uFF1A","guide.letter.open":"\u6253\u5F00\u6307\u5357","guide.status.done":"\u5DF2\u5B8C\u6210","guide.cmd.open":"\u6253\u5F00\u4F7F\u7528\u6307\u5357","penzor.title":"\u84EC\u6D32\u4E91","penzor.overview":"\u6982\u89C8","penzor.places":"\u4F4D\u7F6E","penzor.details":"\u8BE6\u60C5","penzor.ledger.sync":"\u667A\u5E93\u540C\u6B65","penzor.ledger.ama":"Amadeus Cloud","penzor.ledger.apps":"\u5E94\u7528\u6587\u4EF6","penzor.ledger.exports":"\u5BFC\u51FA","penzor.trash":"\u56DE\u6536\u7AD9","penzor.items":"{n} \u9879","penzor.total.sub":"\u5B58\u5728 Forsion \u4E91\u7AEF \xB7 {time}\u66F4\u65B0","penzor.justNow":"\u521A\u521A","penzor.ofMax":"/ {max}","penzor.card.syncSub":"{n} \u4E2A\u5E93 \xB7 \u4E0A\u6B21\u5199\u5165 {time}","penzor.card.syncSubNone":"{n} \u4E2A\u5E93","penzor.card.syncFoot":"\u5355\u4E2A\u6587\u4EF6\u8D85\u8FC7 {size} \u4E0D\u4E0A\u4F20","penzor.card.syncWarn":"\u5FEB\u6EE1\u4E86\uFF1A\u6EE1 {max} \u540E\u65B0\u6587\u4EF6\u4E0D\u518D\u4E0A\u4F20\uFF0C\u5DF2\u5728\u4E91\u7AEF\u7684\u7167\u5E38\u540C\u6B65","penzor.card.amaSmall":"\u4E0D\u7B97\u5728\u989D\u5EA6\u91CC","penzor.card.amaSub":"{n} \u4E2A\u4E91\u7AEF\u667A\u5E93","penzor.card.amaFoot":"\u7B14\u8BB0\u548C\u9644\u4EF6\u5728 Amadeus \u7684 Cloud \u4FA7","penzor.card.appsFoot":"\u56DE\u6536\u7AD9 {n} \u9879 \xB7 {size}","penzor.card.appsWarn":"\u5FEB\u6EE1\u4E86\uFF1A\u6EE1 {max} \u540E\u5E94\u7528\u4E0D\u80FD\u518D\u5B58\u65B0\u6587\u4EF6\uFF1B\u56DE\u6536\u7AD9\u91CC\u7684\u4E5F\u7B97\uFF0C\u6E05\u7A7A\u80FD\u817E\u51FA\u7A7A\u95F4","penzor.card.expSmall":"{n} \u4E2A\u6587\u4EF6","penzor.card.expSub":"\u6700\u8FD1\uFF1A{name} \xB7 {time}","penzor.card.expFoot":"\u5404\u5E94\u7528\u5BFC\u51FA\u7684\u6587\u4EF6","penzor.card.none":"\u8FD8\u6CA1\u6709\u4E1C\u897F","penzor.largest":"\u5360\u7528\u6700\u591A","penzor.col.name":"\u540D\u79F0","penzor.col.size":"\u5927\u5C0F","penzor.col.mtime":"\u4FEE\u6539\u65F6\u95F4","penzor.col.device":"\u5199\u5165\u8BBE\u5907","penzor.col.deleted":"\u5220\u9664\u4E8E","penzor.col.origin":"\u539F\u4F4D\u7F6E","penzor.col.app":"\u6765\u6E90","penzor.sort.mtime":"\u6309\u4FEE\u6539\u65F6\u95F4","penzor.sort.size":"\u6309\u5927\u5C0F","penzor.sort.name":"\u6309\u540D\u79F0","penzor.search":"\u641C\u7D22\u8FD9\u91CC\u7684\u6587\u4EF6\u540D","penzor.sync.thisDevice":"\u672C\u673A\u5728\u540C\u6B65","penzor.meta.files":"{size} \xB7 {n} \u4E2A\u6587\u4EF6","penzor.sync.last":"\u4E0A\u6B21\u5199\u5165 {time} \xB7 {device}","penzor.sync.lastNoDevice":"\u4E0A\u6B21\u5199\u5165 {time}","penzor.sync.devices":"{n} \u53F0\u8BBE\u5907\u540C\u6B65\u8FD9\u4E2A\u5E93","penzor.sync.meter":"\u667A\u5E93\u540C\u6B65\u5171\u7528 {max}\uFF0C\u5DF2\u7528 {used}","penzor.apps.meter":"\u5E94\u7528\u6587\u4EF6\u5171\u7528 {max}\uFF0C\u5DF2\u7528 {used}\uFF08\u56DE\u6536\u7AD9\u91CC\u7684\u4E5F\u7B97\uFF09","penzor.apps.by":"\u7531 {app} \u5199\u5165","penzor.ama.notCounted":"\u4E0D\u7B97\u5728\u989D\u5EA6\u91CC","penzor.ama.open":"\u5728 Amadeus \u4E2D\u6253\u5F00","penzor.hosted.open":"\u7BA1\u7406\u6211\u7684\u7F51\u9875","penzor.hosted.note":"\u8FD9\u662F\u5DF2\u53D1\u5E03\u7F51\u9875\u7684\u6587\u4EF6\u3002\u8981\u6539\u5185\u5BB9\u8BF7\u91CD\u65B0\u53D1\u5E03\uFF0C\u8981\u5220\u9664\u8BF7\u5230\u300C\u6211\u7684\u7F51\u9875\u300D\u4E0B\u7EBF\u3002","penzor.trash.meta":"{n} \u9879 \xB7 {size}","penzor.trash.note":"\u6C38\u4E45\u5220\u9664\u540E\u624D\u817E\u51FA\u7A7A\u95F4","penzor.trash.emptyBtn":"\u6E05\u7A7A\u56DE\u6536\u7AD9","penzor.act.download":"\u4E0B\u8F7D","penzor.act.rename":"\u91CD\u547D\u540D","penzor.act.move":"\u79FB\u52A8\u5230\u2026","penzor.act.trash":"\u79FB\u5230\u56DE\u6536\u7AD9","penzor.act.delete":"\u5220\u9664","penzor.act.restore":"\u6062\u590D","penzor.act.purge":"\u6C38\u4E45\u5220\u9664","penzor.act.copyName":"\u590D\u5236\u5E93\u540D","penzor.act.openSync":"\u5728\u8BBE\u7F6E\u4E2D\u6253\u5F00\u540C\u6B65","penzor.act.refresh":"\u5237\u65B0","penzor.act.up":"\u4E0A\u4E00\u7EA7","penzor.toast.trashed":"\u5DF2\u628A\u300C{name}\u300D\u79FB\u5230\u56DE\u6536\u7AD9","penzor.toast.restored":"\u5DF2\u6062\u590D\u300C{name}\u300D","penzor.toast.purged":"\u5DF2\u6C38\u4E45\u5220\u9664\u300C{name}\u300D","penzor.toast.emptied":"\u5DF2\u6E05\u7A7A\u56DE\u6536\u7AD9","penzor.toast.downloaded":"\u5DF2\u5B58\u5230\u300C\u4E0B\u8F7D\u300D\uFF1A{name}","penzor.toast.renamed":"\u5DF2\u6539\u540D\u4E3A\u300C{name}\u300D","penzor.toast.moved":"\u5DF2\u79FB\u5230\u300C{name}\u300D","penzor.toast.versionRestored":"\u5DF2\u6062\u590D\u5230\u7B2C {n} \u7248","penzor.toast.copied":"\u5DF2\u590D\u5236\u5E93\u540D","penzor.toast.failed":"\u6CA1\u6210\u529F\uFF1A{reason}","penzor.confirm.purge":"\u6C38\u4E45\u5220\u9664\u300C{name}\u300D\uFF1F\u5220\u4E86\u5C31\u627E\u4E0D\u56DE\u6765\u4E86\u3002","penzor.confirm.empty":"\u6E05\u7A7A\u56DE\u6536\u7AD9\uFF1F{n} \u9879\u4F1A\u88AB\u6C38\u4E45\u5220\u9664\uFF0C\u627E\u4E0D\u56DE\u6765\u3002","penzor.confirm.deleteExport":"\u5220\u9664\u300C{name}\u300D\uFF1F\u5BFC\u51FA\u7684\u6587\u4EF6\u6CA1\u6709\u56DE\u6536\u7AD9\uFF0C\u5220\u4E86\u5C31\u627E\u4E0D\u56DE\u6765\u4E86\u3002","penzor.cancel":"\u53D6\u6D88","penzor.side.where":"\u4F4D\u7F6E","penzor.side.mtime":"\u4FEE\u6539","penzor.side.device":"\u5199\u5165\u8BBE\u5907","penzor.side.thisDevice":"{name}\uFF08\u672C\u673A\uFF09","penzor.side.from":"\u6765\u6E90","penzor.side.versions":"\u5386\u53F2\u7248\u672C","penzor.side.versionsNone":"\u6CA1\u6709","penzor.side.versionRow":"\u7B2C {n} \u7248 \xB7 {time} \xB7 {size}","penzor.side.restoreVersion":"\u6062\u590D\u8FD9\u4E00\u7248","penzor.side.deletedAt":"\u5220\u9664\u4E8E","penzor.side.origin":"\u539F\u4F4D\u7F6E","penzor.side.inner":"\u91CC\u9762\u8FD8\u6709 {n} \u9879\uFF0C\u6062\u590D\u65F6\u4E00\u8D77\u56DE\u6765","penzor.side.inTrash":"\u5728\u56DE\u6536\u7AD9 \xB7 {size}","penzor.side.readonlySync":"\u540C\u6B65\u5E93\u91CC\u7684\u6587\u4EF6\u53EA\u5728\u8BBE\u5907\u4E0A\u5220\u6539\u3002\u5728\u8FD9\u91CC\u5220\u6389\u4E00\u4E2A\u6587\u4EF6\uFF0C\u6BCF\u53F0\u540C\u6B65 {vault} \u7684\u8BBE\u5907\u4E0B\u6B21\u540C\u6B65\u65F6\u90FD\u4F1A\u8DDF\u7740\u5220\u6389\uFF0C\u6240\u4EE5\u8FD9\u91CC\u53EA\u80FD\u770B\u548C\u4E0B\u8F7D\u3002","penzor.side.readonlyAma":"\u7B14\u8BB0\u548C\u9644\u4EF6\u5728 Amadeus \u91CC\u6539\u3002\u5728\u8FD9\u91CC\u5220\u6389\u4E00\u4E2A\u9644\u4EF6\uFF0C\u5F15\u7528\u5B83\u7684\u7B14\u8BB0\u4F1A\u7F3A\u56FE\uFF0C\u6240\u4EE5\u8FD9\u91CC\u53EA\u80FD\u770B\u548C\u4E0B\u8F7D\u3002","penzor.side.exportNote":"\u5BFC\u51FA\u7684\u6587\u4EF6\u6CA1\u6709\u56DE\u6536\u7AD9\uFF1A\u5220\u9664\u5C31\u662F\u6C38\u4E45\u5220\u9664\u3002","penzor.side.none":"\u9009\u4E00\u4E2A\u6587\u4EF6\u770B\u8BE6\u60C5","penzor.side.folder":"\u6587\u4EF6\u5939 \xB7 {n} \u9879","penzor.side.folderPlain":"\u6587\u4EF6\u5939","penzor.move.title":"\u79FB\u5230\u54EA\u91CC","penzor.move.root":"{app} \u6700\u4E0A\u5C42","penzor.move.here":"\u79FB\u5230\u8FD9\u91CC","penzor.move.noFolders":"\u8FD9\u4E00\u5C42\u6CA1\u6709\u6587\u4EF6\u5939","penzor.rename.save":"\u4FDD\u5B58","penzor.empty.title":"\u84EC\u6D32\u4E91\u91CC\u8FD8\u6CA1\u6709\u4E1C\u897F","penzor.empty.lead":"\u8FD9\u4E9B\u4E1C\u897F\u5B58\u8FDB\u4E91\u7AEF\u540E\u4F1A\u51FA\u73B0\u5728\u8FD9\u91CC\uFF1A","penzor.empty.sync":"\u5728\u300C\u8BBE\u7F6E \u203A \u540C\u6B65\u300D\u91CC\u628A\u8FDC\u7A0B\u670D\u52A1\u9009\u6210\u300C\u84EC\u6D32\u4E91\u300D\uFF0C\u672C\u5730\u667A\u5E93\u5C31\u540C\u6B65\u5230\u8FD9\u91CC","penzor.empty.ama":"Amadeus \u5207\u5230 Cloud \u4FA7\u5199\u7684\u7B14\u8BB0","penzor.empty.apps":"\u5404\u5E94\u7528\u5B58\u5230\u4E91\u7AEF\u6216\u5BFC\u51FA\u7684\u6587\u4EF6","penzor.empty.openSync":"\u6253\u5F00\u540C\u6B65\u8BBE\u7F6E","penzor.out.title":"\u767B\u5F55\u540E\u67E5\u770B\u4F60\u7684\u84EC\u6D32\u4E91","penzor.out.lead":"\u84EC\u6D32\u4E91\u653E\u7740\u4F60\u540C\u6B65\u5230 Forsion \u4E91\u7AEF\u7684\u5E93\u3001Amadeus Cloud \u7684\u7B14\u8BB0\uFF0C\u548C\u5404\u5E94\u7528\u5B58\u5728\u4E91\u7AEF\u7684\u6587\u4EF6\u3002","penzor.out.signIn":"\u767B\u5F55 Forsion \u8D26\u53F7","penzor.loading":"\u6B63\u5728\u8BFB\u53D6\u2026","penzor.err":"\u6CA1\u8BFB\u5230\uFF1A{reason}","penzor.folderEmpty":"\u8FD9\u91CC\u6CA1\u6709\u6587\u4EF6","penzor.noMatch":"\u6CA1\u6709\u540D\u5B57\u91CC\u5E26\u300C{q}\u300D\u7684\u6587\u4EF6","penzor.cmd.open":"\u6253\u5F00\u84EC\u6D32\u4E91","penzor.unreachable":"\u8FDE\u4E0D\u4E0A Forsion \u4E91\u7AEF\uFF0C\u7A0D\u540E\u518D\u8BD5","penzor.toast.emptyPartial":"\u56DE\u6536\u7AD9\u91CC\u8FD8\u6709 {n} \u9879\u6CA1\u5220\u6389","penzor.sort.deleted":"\u6309\u5220\u9664\u65F6\u95F4","penzor.side.versionsN":"{n} \u4E2A","penzor.drive":"\u6211\u7684\u4E91\u76D8","penzor.drive.meta":"\u7B97\u5728\u5E94\u7528\u6587\u4EF6\u7684 {max} \u91CC","penzor.drive.empty":"\u8FD9\u91CC\u8FD8\u7A7A\u7740\u3002\u628A\u6587\u4EF6\u62D6\u8FDB\u6765\uFF0C\u6216\u8005\u70B9\u300C\u4E0A\u4F20\u300D\u3002","penzor.act.upload":"\u4E0A\u4F20","penzor.act.uploadMore":"\u66F4\u591A\u4E0A\u4F20\u65B9\u5F0F","penzor.act.uploadFiles":"\u4E0A\u4F20\u6587\u4EF6\u2026","penzor.act.uploadFolder":"\u4E0A\u4F20\u6587\u4EF6\u5939\u2026","penzor.act.uploadHere":"\u4E0A\u4F20\u5230\u8FD9\u91CC\u2026","penzor.act.newFolder":"\u65B0\u5EFA\u6587\u4EF6\u5939","penzor.act.clearSel":"\u53D6\u6D88\u9009\u62E9","penzor.newFolder.default":"\u65B0\u5EFA\u6587\u4EF6\u5939","penzor.sel.bar":"\u5DF2\u9009 {n} \u9879 \xB7 {size}","penzor.sel.title":"\u5DF2\u9009 {n} \u9879","penzor.sel.sub":"{size} \xB7 {files} \u4E2A\u6587\u4EF6","penzor.sel.subDirs":"{size} \xB7 {files} \u4E2A\u6587\u4EF6\u3001{dirs} \u4E2A\u6587\u4EF6\u5939","penzor.sel.download":"\u4E0B\u8F7D {n} \u9879","penzor.sel.saveTo":"\u4E0B\u8F7D\u5230","penzor.sel.saveToValue":"\u4E0B\u8F7D / {folder}","penzor.sel.noDirs":"\u6587\u4EF6\u5939\u8FD9\u4E00\u7248\u8FD8\u4E0D\u80FD\u4E0B\u8F7D\uFF0C\u53EA\u4E0B\u8F7D\u9009\u4E2D\u7684\u6587\u4EF6\u3002","penzor.download.folder":"\u84EC\u6D32\u4E91 {date}","penzor.drop.to":"\u677E\u624B\u4E0A\u4F20\u5230\u300C{place}\u300D","penzor.tx.busy":"\u6B63\u5728\u4F20\u8F93 {n} \u9879","penzor.tx.allDone":"\u5168\u90E8\u4F20\u5B8C","penzor.tx.failedN":"{n} \u9879\u6CA1\u4F20\u5B8C","penzor.tx.counts":"\u4E0A\u4F20 {up} \xB7 \u4E0B\u8F7D {down}","penzor.tx.eta":"\u5269\u7EA6 {eta}","penzor.tx.doneN":"{n} \u9879\u5DF2\u4F20\u5B8C","penzor.tx.restDone":"\u5176\u4F59 {n} \u9879\u5DF2\u4F20\u5B8C","penzor.tx.pill":"{counts} \xB7 {pct}%","penzor.tx.queued":"\u6392\u961F\u4E2D","penzor.tx.paused":"\u5DF2\u6682\u505C \xB7 \u7EE7\u7EED\u4F1A\u4ECE\u5934\u4F20","penzor.tx.uploaded":"\u5DF2\u4E0A\u4F20 \xB7 {time}","penzor.tx.downloaded":"\u5DF2\u4E0B\u8F7D \xB7 {time}","penzor.tx.canceled":"\u5DF2\u53D6\u6D88","penzor.tx.left":"\u5269 {eta}","penzor.tx.sec":"{n} \u79D2","penzor.tx.min":"{n} \u5206\u949F","penzor.tx.pause":"\u6682\u505C","penzor.tx.resume":"\u7EE7\u7EED","penzor.tx.cancel":"\u53D6\u6D88","penzor.tx.retry":"\u91CD\u8BD5","penzor.tx.remove":"\u79FB\u9664","penzor.tx.locate":"\u5B9A\u4F4D","penzor.tx.reveal":"\u5728\u6587\u4EF6\u5939\u4E2D\u663E\u793A","penzor.tx.pauseAll":"\u5168\u90E8\u6682\u505C","penzor.tx.resumeAll":"\u5168\u90E8\u7EE7\u7EED","penzor.tx.retryAll":"\u5168\u90E8\u91CD\u8BD5","penzor.tx.clearDone":"\u6E05\u9664\u5DF2\u5B8C\u6210","penzor.tx.clear":"\u6E05\u9664","penzor.tx.collapse":"\u6536\u8D77","penzor.tx.expand":"\u5C55\u5F00\u4F20\u8F93\u5217\u8868","penzor.tx.quota":"\u7A7A\u95F4\u4E0D\u591F\uFF0C\u8FD8\u5DEE {size}","penzor.tx.quotaSub":"\u8FD9\u4E00\u6279\u4E00\u4E2A\u90FD\u6CA1\u5F00\u59CB\u4F20","penzor.tx.freeSpace":"\u53BB\u56DE\u6536\u7AD9\u817E\u5730\u65B9","penzor.err.too_large":"\u5355\u4E2A\u6587\u4EF6\u8D85\u8FC7 50 MB\uFF08\u8FD9\u4E2A {size}\uFF09\uFF0C\u8FD9\u4E00\u7248\u4F20\u4E0D\u4E86","penzor.err.quota":"\u4E91\u7AEF\u7A7A\u95F4\u4E0D\u591F","penzor.err.network":"\u7F51\u7EDC\u65AD\u4E86\uFF0C\u4F20\u5230 {pct}% \u505C\u4E0B","penzor.err.account_changed":"\u6362\u4E86\u8D26\u53F7\uFF0C\u8FD9\u4E00\u9879\u6CA1\u6709\u63A5\u7740\u4F20","penzor.err.download_unavailable":"\u6B64\u5BBF\u4E3B\u6682\u4E0D\u652F\u6301\u4FDD\u5B58\u4E0B\u8F7D\uFF0C\u8BF7\u66F4\u65B0 Forsion","penzor.err.download_failed":"\u6587\u4EF6\u672A\u4FDD\u5B58\uFF0C\u8BF7\u91CD\u8BD5\u4E0B\u8F7D","penzor.err.not_signed_in":"\u6CA1\u767B\u5F55","penzor.err.gone":"\u672C\u673A\u4E0A\u627E\u4E0D\u5230\u8FD9\u4E2A\u6587\u4EF6\u4E86","penzor.err.popup_blocked":"\u6D4F\u89C8\u5668\u62E6\u4E0B\u4E86\u65B0\u6807\u7B7E\u9875\uFF0C\u5141\u8BB8\u672C\u7AD9\u5F39\u51FA\u7A97\u53E3\u540E\u518D\u8BD5\u4E00\u6B21","penzor.err.changed":"\u4F20\u7684\u65F6\u5019\u6587\u4EF6\u6539\u52A8\u4E86\uFF0C\u91CD\u8BD5\u4E00\u6B21","penzor.err.storage_unavailable":"\u4E91\u7AEF\u5B58\u50A8\u6682\u65F6\u4E0D\u53EF\u7528","penzor.err.other":"\u6CA1\u4F20\u5B8C\uFF08{code}\uFF09","penzor.err.too_many":"\u4E00\u6B21\u6700\u591A {n} \u4E2A\u6587\u4EF6\uFF0C\u5206\u51E0\u6B21\u62D6\u8FDB\u6765","penzor.toast.upDoneOne":"\u5DF2\u4E0A\u4F20\u300C{name}\u300D","penzor.toast.upDoneMany":"\u5DF2\u4E0A\u4F20 {n} \u4E2A\u6587\u4EF6","penzor.toast.downDoneMany":"\u5DF2\u4E0B\u8F7D {n} \u4E2A\u6587\u4EF6\u5230\u300C\u4E0B\u8F7D\u300D","penzor.toast.txFailed":"{n} \u9879\u6CA1\u4F20\u5B8C\uFF0C\u56DE\u84EC\u6D32\u4E91\u770B\u770B","penzor.toast.folderExists":"\u5DF2\u7ECF\u6709\u53EB\u300C{name}\u300D\u7684\u6587\u4EF6\u5939\u4E86","penzor.toast.trashedN":"\u5DF2\u628A {n} \u9879\u79FB\u5230\u56DE\u6536\u7AD9","penzor.toast.movedN":"\u5DF2\u628A {n} \u9879\u79FB\u5230\u300C{name}\u300D","penzor.toast.batchPartial":"\u6709 {n} \u9879\u6CA1\u6210\u529F","penzor.sync.title":"\u540C\u6B65","penzor.sync.onN":"{n} \u9879\u5DF2\u5F00","penzor.sync.allOff":"\u90FD\u6CA1\u5F00","penzor.sync.waiting":"\u7B49\u4F60\u51B3\u5B9A","penzor.sync.badgeWaiting":"{n} \u9879\u5DF2\u5F00 \xB7 1 \u9879\u7B49\u4F60\u51B3\u5B9A","penzor.sync.running":"\u540C\u6B65\u4E2D {pct}%","penzor.sync.runningPlain":"\u540C\u6B65\u4E2D","penzor.sync.metaDevice":"\u8FD9\u53F0 {name}","penzor.sync.metaLast":"\u4E0A\u6B21\u540C\u6B65 {time}","penzor.sync.metaNever":"\u8FD8\u6CA1\u540C\u6B65\u8FC7","penzor.sync.every":"\u6BCF {n} \u5206\u949F","penzor.sync.everyHours":"\u6BCF {n} \u5C0F\u65F6","penzor.sync.manual":"\u624B\u52A8","penzor.sync.onStart":"\u5F00\u673A\u65F6\u4E00\u6B21","penzor.sync.minAgo":"{n} \u5206\u949F\u524D","penzor.sync.hoursAgo":"{n} \u5C0F\u65F6\u524D","penzor.sync.notesNamed":"\u667A\u5E93\u300C{name}\u300D","penzor.sync.notesPlain":"\u8FD9\u53F0\u7535\u8111\u7684\u667A\u5E93","penzor.sync.notesDesc":"\u6574\u4E2A\u672C\u673A\u667A\u5E93\uFF0C\u548C\u4F60\u7684\u5176\u4ED6\u7535\u8111\u4FDD\u6301\u4E00\u81F4","penzor.sync.agents":"Agents \u4E0E\u8BB0\u5FC6","penzor.sync.agentsDesc":"Agents \u7684\u8BB0\u5FC6\u3001\u65E5\u5FD7\u3001\u6280\u80FD\u548C\u534F\u4F5C\u8BF4\u660E\uFF0C\u8FD8\u6709\u4F60\u7684\u8D44\u6599\u548C\u9ED8\u8BA4\u65E5\u5386","penzor.sync.conflictsN":"{n} \u4E2A\u51B2\u7A81\u526F\u672C","penzor.sync.conflictsHint":"\u4E24\u8FB9\u90FD\u6539\u8FC7\u7684\u6587\u4EF6\u4E24\u4EFD\u90FD\u7559\u7740\uFF1A\u53E6\u4E00\u4EFD\u5B58\u6210\u6587\u4EF6\u540D\u5E26\u300Cconflict\u300D\u7684\u526F\u672C\uFF0C\u5728\u5BF9\u5E94 Agent \u7684\u6587\u4EF6\u5939\uFF08\u6216\u4F60\u7684\u8D44\u6599\u6587\u4EF6\u5939\uFF09\u91CC","penzor.sync.pluginsPending":"{n} \u4E2A\u63D2\u4EF6\u7684\u6539\u52A8\u8FD8\u6CA1\u4F20\u4E0A\u53BB","penzor.sync.agentsN":"{n} \u4E2A Agent","penzor.sync.plugins":"\u63D2\u4EF6\u6570\u636E","penzor.sync.pluginsDesc":"\u63D2\u4EF6\u81EA\u5DF1\u5B58\u7684\u8BBE\u7F6E\u548C\u6570\u636E","penzor.sync.pluginsN":"{n} \u4E2A\u63D2\u4EF6","penzor.sync.off":"\u6CA1\u5F00","penzor.sync.done":"\u5DF2\u540C\u6B65","penzor.sync.doneSize":"\u5DF2\u540C\u6B65 \xB7 {size}","penzor.sync.firstPending":"\u7B49\u7B2C\u4E00\u6B21\u540C\u6B65","penzor.sync.failed":"\u4E0A\u6B21\u6CA1\u540C\u6B65\u6210\u529F","penzor.sync.overQuota":"\u8D85\u51FA\u989D\u5EA6\uFF0C\u6709\u7684\u6CA1\u4F20","penzor.sync.to":"\u540C\u6B65\u5230 {name}","penzor.sync.toFolder":"\u540C\u6B65\u5230\u672C\u673A\u6587\u4EF6\u5939","penzor.sync.decideAbove":"\u5728\u4E0A\u9762\u90A3\u5F20\u5361\u91CC\u9009","penzor.sync.kvSchedule":"\u540C\u6B65\u8BA1\u5212","penzor.sync.kvDirection":"\u65B9\u5411","penzor.sync.kvSkipped":"\u6CA1\u4F20\u7684","penzor.sync.kvWhere":"\u4E91\u7AEF\u4F4D\u7F6E","penzor.sync.change":"\u6539","penzor.sync.open":"\u6253\u5F00","penzor.sync.dir.both":"\u53CC\u5411","penzor.sync.dir.push":"\u4EC5\u4E0A\u4F20","penzor.sync.dir.pull":"\u4EC5\u4E0B\u8F7D","penzor.sync.skippedN":"{n} \u4E2A\u8D85\u8FC7 {size} \u7684\u6587\u4EF6","penzor.sync.where":"{ledger} \u203A {vault}","penzor.sync.whereUsed":"{ledger} \u203A {vault} \xB7 {used} / {max}","penzor.sync.devicesTitle":"\u5728\u540C\u6B65\u7684\u8BBE\u5907","penzor.sync.thisOne":"\u8FD9\u53F0","penzor.sync.lastWrite":"\u4E0A\u6B21\u5199\u5165 {time}","penzor.sync.noDevices":"\u8FD8\u6CA1\u6709\u8BBE\u5907\u5728\u540C\u6B65","penzor.sync.phoneTitle":"\u624B\u673A\u548C\u7F51\u9875\u770B\u5230\u7684\u90A3\u4E00\u4EFD","penzor.sync.phoneTip":"\u624B\u673A\u548C\u7F51\u9875\u76F4\u63A5\u8BFB\u300C\u4E91\u7AEF\u667A\u5E93\u300D\uFF08Amadeus \u7684\u4E91\u7AEF\u4FA7\uFF0C{size}\uFF09\uFF0C\u5B83\u4E00\u76F4\u5728\u540C\u6B65\uFF0C\u548C\u4E0A\u9762\u8FD9\u53F0\u7535\u8111\u7684\u667A\u5E93\u662F\u4E24\u4EFD\u3002\u60F3\u5728\u624B\u673A\u4E0A\u770B\u8FD9\u53F0\u7684\u67D0\u4E2A\u6587\u4EF6\u5939\uFF1A\u5728\u7B14\u8BB0\u91CC\u53F3\u952E\u90A3\u4E2A\u6587\u4EF6\u5939\uFF0C\u628A\u5B83\u540C\u6B65\u5230\u4E91\u7AEF\u667A\u5E93\u3002","penzor.sync.phoneTipPlain":"\u624B\u673A\u548C\u7F51\u9875\u76F4\u63A5\u8BFB\u300C\u4E91\u7AEF\u667A\u5E93\u300D\uFF08Amadeus \u7684\u4E91\u7AEF\u4FA7\uFF09\uFF0C\u5B83\u4E00\u76F4\u5728\u540C\u6B65\uFF0C\u548C\u4E0A\u9762\u8FD9\u53F0\u7535\u8111\u7684\u667A\u5E93\u662F\u4E24\u4EFD\u3002\u60F3\u5728\u624B\u673A\u4E0A\u770B\u8FD9\u53F0\u7684\u67D0\u4E2A\u6587\u4EF6\u5939\uFF1A\u5728\u7B14\u8BB0\u91CC\u53F3\u952E\u90A3\u4E2A\u6587\u4EF6\u5939\uFF0C\u628A\u5B83\u540C\u6B65\u5230\u4E91\u7AEF\u667A\u5E93\u3002","penzor.sync.foot":"\u540C\u6B65\u8BA1\u5212\u3001\u65B9\u5411\u548C\u5176\u4ED6\u5B58\u50A8\uFF08Dropbox / S3 / WebDAV\uFF09\u5728","penzor.sync.footLink":"\u8BBE\u7F6E \u203A \u540C\u6B65","penzor.sync.askTitle":"\u4E91\u7AEF\u5DF2\u7ECF\u6709\u4E00\u4EFD\u667A\u5E93","penzor.sync.askCloud":"\u4E91\u7AEF\u90A3\u4EFD\u6765\u81EA {device}\uFF1A{files} \u4E2A\u6587\u4EF6 \xB7 {size}\u3002","penzor.sync.askCloudNoDevice":"\u4E91\u7AEF\u90A3\u4EFD\uFF1A{files} \u4E2A\u6587\u4EF6 \xB7 {size}\u3002","penzor.sync.askLocal":"\u8FD9\u53F0\u6709 {local} \u4E2A\u6587\u4EF6\u4E91\u7AEF\u6CA1\u6709\uFF0C{conflicts} \u4E2A\u4E24\u8FB9\u5185\u5BB9\u4E0D\u540C\u3002","penzor.sync.askMerge":"\u5408\u5E76\u4E24\u8FB9","penzor.sync.askCloudBtn":"\u7528\u4E91\u7AEF\u90A3\u4EFD","penzor.sync.askSkip":"\u8FD9\u53F0\u5148\u4E0D\u540C\u6B65\u667A\u5E93","penzor.sync.askExplain":"\u5408\u5E76\uFF1A\u4E24\u8FB9\u90FD\u7559\u7740\uFF0C\u5185\u5BB9\u4E0D\u540C\u7684\u53E6\u5B58\u4E00\u4EFD\u300C\uFF08\u51B2\u7A81\uFF09\u300D\u3002\u7528\u4E91\u7AEF\u90A3\u4EFD\uFF1A\u8FD9\u53F0\u548C\u4E91\u7AEF\u4E0D\u4E00\u6837\u7684\u6587\u4EF6\u5148\u632A\u8FDB\u65C1\u8FB9\u7684\u300C{backup}\u300D\u6587\u4EF6\u5939\uFF0C\u518D\u4E0B\u8F7D\u4E91\u7AEF\u90A3\u4EFD\u3002","penzor.sync.askConfirm":"\u8FD9\u53F0\u548C\u4E91\u7AEF\u4E0D\u4E00\u6837\u7684\u6587\u4EF6\u4F1A\u5148\u632A\u8FDB\u300C{backup}\u300D\uFF0C\u518D\u6362\u6210\u4E91\u7AEF\u90A3\u4EFD\u3002","penzor.sync.askConfirmGo":"\u632A\u8D70\u5E76\u7528\u4E91\u7AEF\u90A3\u4EFD","penzor.sync.backupName":"{name} \u540C\u6B65\u524D\u5907\u4EFD {date}","penzor.sync.quotaTitle":"\u667A\u5E93 {size}\uFF0C\u8D85\u8FC7\u4E86\u300C{ledger}\u300D\u7684 {max} \u4E0A\u9650","penzor.sync.quotaTitlePlain":"\u667A\u5E93\u8D85\u8FC7\u4E86\u300C{ledger}\u300D\u7684\u4E0A\u9650","penzor.sync.quotaBody":"\u653E\u4E0D\u4E0B\u7684\u6587\u4EF6\u7559\u5728\u8FD9\u53F0\u7535\u8111\u4E0A\uFF0C\u6CA1\u6709\u5220\uFF0C\u4E5F\u6CA1\u6709\u4F20\uFF1B\u5176\u4F59\u51E0\u9879\u7167\u5E38\u540C\u6B65\u3002","penzor.sync.quotaLarge":"\u8D85\u8FC7 {size} \u7684\u5355\u4E2A\u6587\u4EF6\u4E00\u76F4\u4E0D\u4F20\uFF08{n} \u4E2A\uFF09\u3002","penzor.sync.quotaSee":"\u770B\u770B\u6CA1\u4F20\u7684\u6587\u4EF6","su.title":"\u5546\u5E97\u66F4\u65B0","su.source.github":"GitHub \u6765\u6E90","su.source.npm":"npm \u6765\u6E90","su.source.zip":"ZIP \u4E0A\u4F20","su.review":"\u5F85\u5BA1\u6838","su.approved":"\u5DF2\u901A\u8FC7","su.rejected":"\u6CA1\u901A\u8FC7","su.viaGithub":"GitHub Release {tag}","su.viaNpm":"npm {version}","su.metaReview":"{time} \u63D0\u4EA4 \xB7 \u5BA1\u6838\u7ED3\u679C\u4F1A\u53D1\u5230\u6536\u4EF6\u7BB1","su.metaReviewNoTime":"\u5BA1\u6838\u7ED3\u679C\u4F1A\u53D1\u5230\u6536\u4EF6\u7BB1","su.metaApproved":"\u5546\u5E97\u73B0\u5728\u663E\u793A {version}","su.metaApprovedInfo":"\u5546\u5E97\u4FE1\u606F\u5DF2\u66F4\u65B0","su.metaRejected":"\u5546\u5E97\u7167\u65E7\u663E\u793A {version}","su.metaRejectedUnlisted":"\u8FD8\u6CA1\u6709\u4E0A\u67B6","su.infoOnly":"\u53EA\u6539\u5546\u5E97\u4FE1\u606F","su.listSep":"\u3001","su.openSubmission":"\u5728\u6295\u7A3F\u4E2D\u67E5\u770B","wc.title":"\u7F51\u9875","wc.pill.published":"\u5DF2\u53D1\u5E03","wc.pill.live":"\u5DF2\u4E0A\u7EBF","wc.pill.review":"\u4E0A\u67B6\u5BA1\u6838\u4E2D","wc.pill.listed":"\u5DF2\u4E0A\u67B6","wc.pill.rejected":"\u4E0A\u67B6\u672A\u901A\u8FC7","wc.pill.gone":"\u5DF2\u4E0B\u7EBF","wc.justPublished":"\u521A\u521A\u53D1\u5E03","wc.anyone":"\u62FF\u5230\u94FE\u63A5\u7684\u4EBA\u90FD\u80FD\u6253\u5F00","wc.open":"\u6253\u5F00","wc.viewInPages":"\u5728\u6211\u7684\u7F51\u9875\u4E2D\u67E5\u770B","wc.manage":"\u5728\u6211\u7684\u7F51\u9875\u4E2D\u7BA1\u7406","wc.total":"\u5DF2\u53D1\u5E03 {n} \u4E2A","wc.more":"\u8FD8\u6709 {n} \u4E2A","wc.unpublishTitle":"\u4E0B\u7EBF\u300C{name}\u300D\uFF1F","wc.unpublishBody":"\u94FE\u63A5\u4F1A\u5931\u6548\uFF0C\u7F51\u9875\u7684\u6587\u4EF6\u4E5F\u4F1A\u4ECE\u4E91\u76D8\u5220\u9664\u3002","wc.unpublishAgain":"\u518D\u70B9\u4E00\u6B21\u4E0B\u7EBF"},lb={"events.title":"Events","events.back":"Back to app","events.count":"{n} live","events.group.active":"Live","events.group.notice":"Notices","events.group.upcoming":"Coming up","events.ended":"Past events","events.endedEmpty":"No past events yet","events.list":"All events","events.kind.checkin":"Check-in","events.kind.tasks":"Quests","events.kind.game":"Mini game","events.kind.notice":"Notice","events.left.days":"{n}d left","events.left.hours":"{n}h left","events.left.long":"{d}d {h}h left","events.left.longHours":"{h}h left","events.time.start":"Starts {date}","events.time.claim":"Ended. Claim by {date}","events.time.claimShort":"Claim by {date}","events.time.ended":"Ended {date}","events.time.published":"Published {date}","events.rewards":"Rewards","events.checkin.signed":"{n} of {total} days","events.checkin.today":"Today","events.checkin.day":"Day {n}","events.checkin.do":"Check in","events.checkin.done":"Checked in today","events.checkin.finished":"All days complete","events.tasks.progress":"Progress","events.tasks.claim":"Claim","events.tasks.claimAll":"Claim all ({n})","events.tasks.go":"Go","events.tasks.closed":"Event ended","events.game.board":"Leaderboard","events.game.me":"You","events.game.anon":"Anonymous","events.game.enter":"Play","events.game.install":"Get it in the Store","events.game.empty":"No scores yet","events.notice.more":"Learn more","events.toast.checkin":"Checked in: {reward}","events.toast.claimed":"Claimed {reward}","events.toast.partial":"{n} claimed, {m} failed. Try again later","events.toast.backpack":"Open backpack","events.err.failed":"Not claimed. Try again when you're back online","events.err.notLive":"This event has ended","events.err.completed":"You've completed every day","events.err.grantFailed":"The reward didn't go through. It's logged for manual delivery, so there's no need to claim again","events.login.title":"Sign in to join events","events.login.do":"Sign in to Forsion","events.empty":"No events right now","events.error":"Couldn't load events","events.retry":"Try again","events.dot":"Rewards to claim or new events","penzor.rules.default":"Cloud default","penzor.rules.off":"Do not sync","penzor.rules.device":"Device","penzor.rules.run":"Sync now","penzor.rules.twoWay":"Two-way","penzor.rules.defaultForWeb":"The web uses the default folder","penzor.rules.tab.rules":"Sync rules","penzor.rules.tab.active":"Transfers","penzor.rules.tab.history":"History","penzor.rules.enable":"Enable content sync","penzor.rules.add":"Add rule","penzor.rules.source":"Local source","penzor.rules.destination":"Cloud destination","penzor.rules.direction":"Direction","penzor.rules.remove":"Remove rule","penzor.rules.inherit":"An empty path covers all of Forsion. Children inherit; the most specific path wins. Unmatched content stays on this device.","penzor.rules.namespace":"Default: Cloud /Forsion/. Device folders: Cloud /Forsion-deviceID/.","penzor.rules.human":"Choose human independently. The default calendar uses human/CALENDAR.db. A device destination does not replace the web default.","penzor.rules.preview":"Preview changes","penzor.rules.previewTitle":"Review sync scope","penzor.rules.previewCounts":"Upload {up}, download {down}; {conflicts} existing items need merging or preserved versions.","penzor.rules.retain":"Previous destinations are retained. Turning sync off deletes no files. If sources change, preview again.","penzor.rules.back":"Back","penzor.rules.apply":"Confirm and start","penzor.rules.pause":"Pause","penzor.rules.resume":"Continue","penzor.rules.noActive":"No files are transferring.","penzor.rules.manual":"Manual uploads and downloads","penzor.rules.historyNote":"The latest 200 items. Conflicts preserve both versions; other content continues syncing.","penzor.rules.retry":"Retry failed items","penzor.rules.noHistory":"No sync history yet.","penzor.rules.details":"View transfers","penzor.rules.plugins":"Plugin data keeps its own sync management.","penzor.rules.turnOff":"Turn off plugin data sync","penzor.rules.turnOn":"Turn on plugin data sync","penzor.rules.phase.idle":"Waiting for the next sync","penzor.rules.phase.scanning":"Checking files","penzor.rules.phase.syncing":"Syncing","penzor.rules.phase.paused":"Paused","penzor.rules.state.queued":"Queued","penzor.rules.state.active":"Transferring","penzor.rules.state.done":"Done","penzor.rules.state.failed":"Failed","penzor.rules.state.paused":"Paused","penzor.rules.state.conflict":"Conflict versions preserved","penzor.tree.synced":"Synced","penzor.tree.thisBackup":"This computer \xB7 backup only","penzor.tree.byApp":"By app","penzor.tree.legacy":"Legacy vault sync","penzor.quota.sourceLimit":"This kind also has its own limit of {max}; {used} used","penzor.ov.mine":"Yours","penzor.ov.synced":"Synced from your devices","penzor.ov.stale":"No longer updated","penzor.ov.uploads":"Files you upload and organize; change them freely","penzor.ov.all":"Notes, agents, about me and plugins","penzor.ov.allLast":"Notes, agents, about me and plugins \xB7 last synced {time}","penzor.ov.self":"The copy only this computer uses","penzor.ov.device":"Shared only between this computer and that one","penzor.ov.agents":"Agent settings, memory and logs","penzor.ov.profile":"Your profile and default calendar","penzor.ov.sync":"Vaults your computers sync up","penzor.ov.legacy":"No longer written once this computer uses the new sync; kept, not deleted","penzor.ov.ama":"Notes from the web and synced notes","penzor.ov.apps":"Files your apps store; delete or rename them","penzor.ov.plugins":"Settings plugins store; usage only","penzor.ov.exports":"Exported files; download or delete them","penzor.ov.segNotes":"Notes","penzor.ov.segSync":"Device sync","penzor.ov.segOther":"Other","penzor.content.badge":"Kept by the new sync","penzor.content.badgeLast":"Kept by the new sync \xB7 last synced {time}","penzor.content.noteAll":"This is the cloud copy every signed-in device and the web see. To change files, edit them in Notes or Agents on a computer and they sync up; you can download them here.","penzor.content.noteSelf":"The copy only this computer uses; other devices don\u2019t see it. Change files on this computer; you can download them here.","penzor.content.noteDevice":"Shared only between this computer and {name}. Change files on a computer; you can download them here.","penzor.legacy.title":"This computer stopped writing to this vault when it switched to the new sync","penzor.legacy.body":"This computer\u2019s notes now live in Shared with all devices \u203A Notes. Older desktop versions may still write here, so this copy is kept, not deleted.","penzor.legacy.go":"See the new copy","penzor.drive.total":"All of Penzor Cloud: {used} / {max} used","penzor.drive.seeAll":"View","penzor.cs.statusOff":"Off","penzor.cs.statusPaused":"Paused","penzor.cs.statusRun":"Syncing {pct}%","penzor.cs.statusScan":"Checking files","penzor.cs.statusWarn":"{n} to review","penzor.cs.statusOk":"Up to date","penzor.cs.statusOkAgo":"Up to date \xB7 {time}","penzor.widget.signedOut":"Not signed in to Forsion","penzor.widget.signInHint":"Sign in to sync","penzor.widget.off":"Cloud sync is off","penzor.widget.paused":"Sync is paused","penzor.widget.running":"Syncing","penzor.widget.problem":"Sync needs attention","penzor.widget.active":"Transferring {n}","penzor.widget.queued":"{n} more queued","penzor.widget.waiting":"{n} waiting to sync","penzor.widget.failed":"Failed","penzor.widget.error":"Sync ran into an error","penzor.widget.errorMeta":"Error","penzor.widget.conflict":"Conflict, both kept","penzor.widget.more":"{n} more to check","penzor.widget.last":"Last synced {time}","penzor.widget.pending":"Notes are already in the cloud","penzor.widget.notesFailed":"Last note sync failed","penzor.widget.agentsFailed":"Last agent sync failed","penzor.cs.thisComputer":"This computer: {name}","penzor.cs.thisComputerLabel":"This computer:","penzor.cs.rename":"Rename this computer","penzor.cs.renameHint":"Other devices will show this name \xB7 Enter to save","penzor.cs.name.taken":"Another device already uses this name. Pick another one.","penzor.cs.name.reserved":"macOS, Windows and Linux are kept for systems. Pick another name.","penzor.cs.name.invalid":"Names can have up to 64 characters and no square brackets.","penzor.cs.othersN":"{n} others: {names}","penzor.cs.noOthers":"No other devices on this account yet","penzor.cs.log":"Recent activity","penzor.cs.more":"More","penzor.cs.advanced":"Advanced: edit rules","penzor.cs.backSimple":"Back to sync","penzor.cs.firstTitle":"Sync this computer to Penzor Cloud","penzor.cs.firstBody":"Here is a suggested setup; change anything first. Nothing moves until you press Start syncing, and nothing already in the cloud is overwritten or deleted.","penzor.cs.note":"To treat one notes folder or agent differently, click the small line under it. Turning a switch off just stops syncing; nothing is deleted.","penzor.cs.barFirst":"Turning sync on uploads {up} files and downloads {down}","penzor.cs.barChanged":"{n} changes","penzor.cs.barOne":"1 change: \u201C{name}\u201D \u2192 {scope}","penzor.cs.offName":"not synced","penzor.cs.barCounts":"Uploads {up} files and downloads {down} \xB7 nothing is deleted","penzor.cs.barSize":"{size} in total","penzor.cs.noDelete":"nothing will be deleted","penzor.cs.barConflicts":"{n} changed on both sides; both copies are kept","penzor.cs.barCounting":"Working out what will move\u2026","penzor.cs.barRecount":"Files just changed, so this was recalculated. Please confirm again.","penzor.cs.later":"Not now","penzor.cs.start":"Start syncing","penzor.cs.undo":"Undo","penzor.cs.confirm":"Confirm","penzor.cs.up":"Uploading \u201C{name}\u201D","penzor.cs.down":"Downloading \u201C{name}\u201D","penzor.cs.waiting":"{n} more files waiting","penzor.cs.failedN":"{n} files didn\u2019t sync","penzor.cs.retry":"Retry","penzor.cs.seeLog":"See activity","penzor.cs.logEmpty":"No sync activity yet.","penzor.cs.logNote":"Keeps the latest 200 items. When both sides changed, both copies are kept.","penzor.cat.notes":"Notes","penzor.cat.notesDesc":"Your Amadeus vault","penzor.cat.agents":"Agents & memory","penzor.cat.agentsDesc":"Each agent\u2019s settings, memory and logs","penzor.cat.profile":"About me","penzor.cat.profileDesc":"Your profile and default calendar","penzor.cat.profileOn":"Includes your default calendar","penzor.cat.plugins":"Plugins","penzor.cat.pluginsDesc":"Plugin folders and settings","penzor.cat.others":"Other files","penzor.cat.othersDesc":"Files in your workspace outside the groups above","penzor.cat.files":"{n} files \xB7 {size}","penzor.agents.pickHint":"Choose each one; new agents aren\u2019t synced \xB7 {n} selected","penzor.agents.legacyHint":"Older setting: new agents sync too \xB7 {n} selected","penzor.agents.none":"No agents on this computer yet","penzor.agents.muse":"Muse","penzor.agents.museDesc":"Background agent; runs separately on each computer","penzor.agents.locked":"Sync not available yet","penzor.agents.cloudOnly":"In the cloud \xB7 not on this computer yet; turn on to download","penzor.agents.historianNote":"Historian\u2019s drafts stay on each computer. What it writes into an agent\u2019s log syncs with that agent.","penzor.agents.archiveRunning":"Cloud agents are being archived. Try again in a moment.","penzor.cs.accountReview":"Account changed. Local files may contain content from another account. Review and confirm the sync selection before syncing again.","penzor.agents.openFailed":"Couldn\u2019t turn on sync for this agent, so it stays off: {reason}","penzor.archive.title":"Agents now sync one by one","penzor.archive.body":"Agents that synced with the old all-agents switch have stopped. Their cloud copy is in \u201CMy drive \u203A {shelf} \u203A {name}\u201D, read-only and downloadable. Turn on the ones you still want, one at a time.","penzor.archive.shelf":"Archive","penzor.archive.ok":"Got it","penzor.archive.open":"Open archive","penzor.archive.note":"This is an agent sync archive. It\u2019s read-only: you can download it or delete the whole archive.","penzor.ask.title":"{name} already has a copy in the cloud","penzor.ask.when":"Cloud copy last changed: {cloud}. This computer: {local}. Choose once before turning sync on; after that it merges automatically.","penzor.ask.merge":"Merge them","penzor.ask.mergeDesc":"Memory, logs and schedules merge entry by entry. Where both sides changed settings or personality, the newer copy wins and the other goes to this computer\u2019s recycle folder","penzor.ask.cloud":"Use the cloud copy","penzor.ask.cloudDesc":"This computer\u2019s copy goes to the recycle folder first, then the cloud copy replaces it","penzor.ask.local":"Use this computer\u2019s copy","penzor.ask.localDesc":"The cloud copy is archived first, then replaced with this computer\u2019s","penzor.ask.recommended":"Recommended","penzor.ask.foot":"Recycled files are in agents/.removed and can be recovered","penzor.ask.cancel":"Cancel","penzor.ask.confirm":"Turn on sync","penzor.cat.pluginsN":"{n} plugins","penzor.cat.custom":"{n} custom rules","penzor.cat.notSynced":"Not synced \xB7 stays on this computer","penzor.scope.all":"Shared with all devices","penzor.scope.allDesc":"Every signed-in device and the web see one copy","penzor.scope.self":"Back up this computer only","penzor.scope.selfDesc":"Kept in its own cloud copy other devices don\u2019t see","penzor.scope.with":"Only with {name}","penzor.scope.menuTitle":"Who shares \u201C{name}\u201D","penzor.scope.menuFoot":"To stop syncing it, turn off the switch","penzor.scope.calendarNote":"The web\u2019s default calendar doesn\u2019t follow this","penzor.unified.stale":"Refresh failed. Showing the last sample; current usage is unknown. Please retry.","penzor.unified.uploadTo":"Upload to My files","penzor.unified.apps":"Manage ordinary files \xB7 source restrictions apply","penzor.trash.ama":"Amadeus \xB7 pending cleanup","penzor.trash.amaNote":"Deleted current files still count; history is not counted again. Eligible for system cleanup after 30 days. Read-only here; Empty trash does not affect these snapshots.","penzor.trash.expires":"Cleanup eligible from","penzor.source.openAgents":"Open Agents","penzor.source.openCalendar":"Open calendar","penzor.source.entryUnavailable":"This host does not provide that destination","penzor.uploads":"My files","penzor.source.agents":"Agents","penzor.source.profile":"My profile","penzor.source.plugins":"Plugin data","penzor.source.readonly":"Synced sources are read-only. Edit or delete in the source; download synced files here.","penzor.source.appNote":"App files are managed by their app. Edit or delete them there.","penzor.source.market":"Store submissions","penzor.ov.market":"Plugins, skills and Agents you submitted to the Store; they follow their listings","penzor.source.marketNote":"These packages follow their Store listings: delete a listing in Store \u203A My submissions to free its space. Packages fetched from GitHub or npm are stored by the Store and don't count toward your storage.","penzor.market.badge":"Managed by the Store","penzor.market.meta":"{size} \xB7 {n} packages","penzor.market.history":"Older versions {size}, not counted (same as elsewhere)","penzor.market.older":"older versions {size}","penzor.market.updating":"update in review","penzor.market.notCounted":"Not counted","penzor.market.fromGithub":"From GitHub \xB7 stored by the Store","penzor.market.fromNpm":"From npm \xB7 stored by the Store","penzor.market.type.plugin":"Plugin","penzor.market.type.skill":"Skill","penzor.market.type.agent":"Agent","penzor.market.type.space":"Space","penzor.market.type.theme":"Theme","penzor.market.type.amadeusPlugin":"Amadeus plugin","penzor.market.status.approved":"Listed","penzor.market.status.pending":"In review","penzor.market.status.rejected":"Not approved","penzor.col.type":"Type","penzor.col.status":"Status","penzor.source.pluginNote":"Names and usage only. Data may contain settings or credentials, so preview and download are unavailable.","penzor.unified.unavailable":"Usage unavailable","penzor.unified.incomplete":"Unified usage is incomplete, so quota status is unknown. Refresh to retry.","penzor.unified.enforced":"Unified quota is active. Over quota, new content and larger replacements are paused; downloads, deletions and non-growing replacements remain available.","penzor.unified.grace":"Notice grace period ends {date}. Unified quota does not add restrictions yet.","penzor.unified.rolloutPolicy":"Storage policy notice: growth limits may start no earlier than 30 days after acknowledgement. App file history will retain at most 50 versions from the last 30 days. History is excluded from your plan; download backups before cleanup. Current files are not removed by history cleanup.","penzor.unified.ack":"I have read the storage and history notice","penzor.unified.notice":"This is only a notice. Going over won\u2019t stop sync or uploads","penzor.unified.over":"Unified quota exceeded. This is a notice only; no new sync or upload restrictions apply. Clear files or upgrade your plan.","penzor.unified.warn":"Unified storage is nearly full. This is a notice only; no new sync or upload restrictions apply.","penzor.unified.accounting":"includes {trash} in trash; history doesn\u2019t count","penzor.unified.writable":"Upload, create, rename and delete","penzor.unified.readonly":"Read-only \xB7 managed at source","penzor.unified.export":"Download, rename and permanently delete","penzor.unified.counted":"Included in unified usage \xB7 notice phase","penzor.unified.policy":"If limits are ever enforced, you\u2019ll hear at least 30 days ahead.","penzor.unified.legacySync":"Existing device sync limit: {used} / {max}","penzor.unified.legacyApps":"Existing app file limit: {used} / {max}","sub.identity":"Plugin ID","sub.identityHint":"A unique ID is assigned after submission. Names may repeat; updates keep the same ID.","sub.description":"Detailed description","sub.tags":"Tags","sub.tagsHint":"Comma separated, up to 8","sub.minAppVersion":"Minimum Forsion version","sub.maxAppVersion":"Maximum version (exclusive)","sub.optional":"Optional","sub.platforms":"Supported platforms","sub.requirementsHint":"Supported: desktop, macos, windows, linux, android, ios, web. Leave blank if unspecified. ZIP requirements are read from the manifest; supplied values must match it.","sub.err.market_requirements_invalid":"Invalid version requirements or platforms.","sub.err.market_requirements_mismatch":"Supplied requirements differ from the ZIP manifest.","sub.mine":"My submissions","page.submission":"Submissions","page.webPages":"My web pages","web.title":"My web pages","web.desc":"Pages you published with Tangu or Coding Space. Anyone with the link can open them; they run sandboxed and can't read visitors' Forsion sign-in.","web.refresh":"Refresh","web.used":"{used} of {limit} published","web.full":"All slots are used. Take one down or upgrade to publish another","web.empty":"No published pages yet","web.emptyHint":'Ask Tangu in a chat to publish a page, for example "publish this page", or choose Publish on a Coding Space project.',"web.updated":"Updated {date}","web.disabled":"Disabled","web.disabledHint":"An administrator disabled this page. Its link doesn't open and it can't be updated.","web.copy":"Copy link","web.unpublish":"Take down","web.unpublishConfirm":"Confirm take down","web.listingPending":"Store listing in review","web.listingApproved":"Listed in store","web.listingRejected":"Store listing rejected","web.listingNote":"Reason: {note}","web.listingApply":"Apply for store listing","web.listingReapply":"Apply again","web.listingWithdraw":"Withdraw application","web.listingDelist":"Remove from store","web.listingDelistConfirm":"Confirm removal","web.listingSummary":"Store summary","web.listingSummaryPh":"One sentence about this page","web.listingHint":"Shown in the store under Web apps after review. Up to 300 characters.","web.listingSubmit":"Submit application","pub.cmd":"Publish web page to Forsion","pub.cmdNoArgs":"Open the project you want to publish from Coding Studio","pub.title":"Publish to Forsion: {name}","pub.titleTerms":"Publish as a public page","pub.close":"Close","pub.desc":"Publish this page as a public link. Anyone with the link can open it.","pub.descPublished":"Published. Come back and choose Update after changes; the link stays the same.","pub.needLogin":"Sign in with Forsion to publish","pub.login":"Sign in to Forsion","pub.loginWaiting":"Waiting for the browser to finish\u2026","pub.name":"Name","pub.slug":"Link slug","pub.slugHint":"3\u201332 lowercase letters, digits or hyphens","pub.entry":"Entry page","pub.noEntry":"This project has no .html entry yet. Generate a page first.","pub.slots":"{used} of {limit} published ({tier})","pub.hint":"Use relative paths for assets. .ts and .tsx are transpiled on publish, no build step.","pub.anyone":"Anyone with the link can open it","pub.likes":"{n} likes","pub.saves":"{n} saves","pub.copy":"Copy link","pub.copied":"Copied","pub.open":"Open in browser","pub.publish":"Publish","pub.update":"Update","pub.saveUpdate":"Save and update","pub.publishing":"Publishing\u2026","pub.listingTitle":"Store \xB7 Web apps","pub.listingNone":"Not listed","pub.listingPending":"In review","pub.listingApproved":"Listed","pub.listingRejected":"Rejected","pub.listingHint":"Listed pages appear under Web apps in the Store after review.","pub.termsIntro":"Once published, anyone with the link can view this page, and it may be shared or indexed by search engines. Please confirm:","pub.termsLi1":"You have the right to publish all text, images, audio, video and other content on the page;","pub.termsLi2":"The page contains no illegal information, infringing content or personal information disclosed without permission;","pub.termsLi3":"You take responsibility for the content you publish.","pub.termsManage":"The platform manages public content under applicable laws and the Content Publishing Guidelines, and may restrict access to, stop showing or remove violating content.","pub.termsAgreePre":"I have read and agree to the ","pub.termsGuidelines":"Content Publishing Guidelines","pub.termsConfirm":"Confirm and publish","pub.aiSaveFailed":"Published, but the AI settings weren\u2019t saved: {reason}","ai.whoPays":"Who pays","ai.payer.visitor":"Visitors","ai.payer.author":"I pay","ai.perVisitor":"Per visitor","ai.perVisitorPre":"Up to","ai.perVisitorPost":"calls a day","ai.page":"This page","ai.pagePre":"Up to","ai.pagePost":"points a day","ai.max":"Up to {n}","ai.whenUsedUp":"When used up","ai.exhausted.visitor":"Switch to visitors\u2019 own quota","ai.exhausted.pause":"Pause AI until tomorrow","ai.models":"Models","ai.modelDefault":"default","ai.modelImage":"Image","ai.balance":"Pack balance","ai.points":"{n} points","ai.buy":"Buy a pack","ai.noteAuthor":"Visitors sign in with Forsion before using AI; it only counts calls per person and doesn\u2019t use their quota. Charged at the same model rates as when visitors pay; your own AI quota and points balance are never touched.","ai.noteVisitor":"Viewing needs no sign-in. Visitors sign in with Forsion when they use AI, and their own quota is used.","ai.noteOff":"\u201CI pay\u201D isn\u2019t available yet, so visitors pay for AI.","ai.agentNote":"forsion.ai.agent still uses the visitor\u2019s own quota for now; visitors confirm before the first use.","ai.cooldownNew":"New pages switch to you paying {h} hours after publishing; until then visitors pay.","ai.cooldownUntil":"You pay from {time}; until then visitors pay.","ai.save":"Save","ai.saved":"AI settings saved","web.tabMine":"Published {n}","web.tabSaved":"Saved","web.tabSavedN":"Saved {n}","web.ai.author":"AI \xB7 I pay","web.ai.visitor":"AI \xB7 Visitors pay","web.ai.paused":"AI \xB7 I pay \xB7 paused","web.ai.pausedSpike":"Spending spiked within an hour, so visitors pay again","web.ai.pausedAdmin":"Paused by an administrator; visitors pay for now","web.ai.resume":"Resume I pay","web.ai.todayAuthor":"{calls} calls today \xB7 {visitors} visitors","web.ai.todayVisitor":"{calls} calls today","web.ai.cap":"Daily cap","web.ai.none":"No AI","web.ai.settings":"AI settings","web.ai.cooldown":"You pay from {time}","pack.points":"points","pack.note":"Pages set to \u201CI pay\u201D draw from here at the model rates. Your own AI quota and points balance are never touched.","pack.lowNote":"Almost used up. Then each \u201CI pay\u201D page follows its setting: visitors use their own quota, or AI pauses until tomorrow.","pack.monthSpent":"Used this month","pack.lastTopUp":"Last top-up","pack.topUp":"{date} \xB7 +{n}","pack.usage":"Usage","pack.usageTitle":"\u201CI pay\u201D usage in the last 30 days","pack.usageEmpty":"No \u201CI pay\u201D calls in the last 30 days","pack.col.day":"Date","pack.col.page":"Page","pack.col.calls":"Calls","pack.col.visitors":"Visitors","pack.col.points":"Points","pack.storeTitle":"Store","pack.storeUnavailable":"Open Store \u203A Items to buy a pack","saved.empty":"No saved pages yet","saved.emptyHint":"Tap the star beside someone\u2019s page to save it here.","saved.open":"Open","saved.author":"Author page","saved.unsave":"Unsave","saved.aiAuthor":"AI on the author","saved.aiVisitor":"AI \xB7 you pay","backpack.effect.connectPack":"Pack balance +{n} points","backpack.effect.other":"Other effect","backpack.packUsed":"Added to your pack balance","backpack.packUsedLine":"+{n} points \xB7 {balance} points now","sub.desc":"Manage your submissions, review results and version updates.","sub.new":"New submission","sub.refresh":"Refresh","sub.empty":"No submissions yet","sub.emptyHint":"Share your plugins, skills, Agents or Spaces in the marketplace.","sub.name":"Name","sub.summary":"Summary","sub.type":"Content type","sub.source":"Source","sub.type.skill":"Skill","sub.type.agent":"Agent","sub.type.plugin":"Plugin","sub.type.space":"Space","sub.type.theme":"Theme","sub.type.amadeus_plugin":"Amadeus plugin","sub.pending":"Pending review","sub.approved":"Published","sub.rejected":"Rejected","sub.pendingVersion":"v{version} update pending review","sub.rejectedVersion":"v{version} update rejected","sub.submit":"Submit for review","sub.submitted":"Submitted. The review result appears here and in your inbox.","sub.updated":"Update submitted for review. The published version stays available until then; the result goes to your inbox.","sub.repo":"Public GitHub repository","sub.npm":"Public npm package","sub.repoHint":"README and Releases come from the repository; its owner is shown as the publisher.","sub.npmHint":"Package metadata comes from npm; the public repository owner is shown as the publisher.","sub.reviewHint":"New versions require review before distribution. Your Forsion account manages the submission.","sub.zipHint":"Up to 50 MB. Include the required manifest and entry files.","sub.filter":"Filter by status","sub.all":"All","sub.noResults":"No matching submissions","sub.downloads":"{n} downloads","sub.errName":"Enter a name.","sub.errSource":"Enter a public repository URL or npm package name.","sub.errZip":"Choose a ZIP archive.","sub.errLarge":"ZIP archives must not exceed 50 MB.","sub.err.market_npm_invalid":"The npm package is unavailable or does not meet the plugin requirements.","sub.err.market_npm_source":"Publish the new version on npm for review.","sub.err.market_github_source":"Publish a GitHub Release for review.","sub.err.market_not_found":"Submission unavailable. Refresh and retry.","sub.err.market_zip_required":"Choose a ZIP archive.","sub.err.market_zip_invalid":"The ZIP structure does not meet the publishing requirements.","sub.err.market_zip_too_large":"ZIP archives must not exceed 50 MB.","sub.err.market_version_required":"The package has no version. Add one to the manifest (for skills, version or metadata.version in SKILL.md) and repackage.","sub.err.market_version_invalid":"Enter a valid version.","sub.err.market_version_mismatch":"The version does not match the manifest.","sub.err.market_version_not_newer":"The new version must be newer than the published version.","sub.err.market_icon_invalid":"Use a square PNG icon between 64 and 512 px.","sub.err.market_duplicate":"This content has already been submitted. Manage the existing submission.","sub.err.market_update_pending":"An update is already awaiting review.","sub.err.market_stale":"The submission has changed. Refresh and retry.","sub.notNewer":"The package says v{version}; it must be newer than the Store\u2019s v{current}.","sub.reqNone":"No version range or platforms declared","sub.dropTitle":"Drop a ZIP here, or click to choose one","sub.dropHint":"Up to 50 MB. It is checked first, not submitted yet.","sub.dropReplace":"{size} \xB7 Drop or click to replace","sub.checkType":"Type","sub.checkVersion":"Version","sub.checkIcon":"Icon","sub.checkReadme":"README","sub.checkReq":"Requirements","sub.checkWarn":"Note","sub.iconYes":"icon.png found in the package","sub.iconNo":"No icon.png; the card shows the type icon","sub.readmeYes":"Uses README.md from the package","sub.readmeKeep":"No README.md in the package; the current one stays","sub.readmeNo":"No README.md in the package","sub.warn.no_manifest":"No manifest found in the package","sub.warn.type_mismatch":"The package type differs from this submission\u2019s type","sub.warn.tag_version_mismatch":"The release tag differs from the package version","sub.warn.id_slug_mismatch":"The package id differs from the install folder name. Users are not affected: updates go to the same folder and no second copy appears. The folder name cannot change after listing","sub.warn.engine_slug_mismatch":"The engine plugin folder name differs from its id","sub.warn.no_entry":"The Amadeus plugin has no main.js entry","sub.warn.has_node_modules":"The package includes node_modules, which is large and usually unneeded","sub.zipListedNote":"Until it\u2019s approved, the Store keeps serving the published version. The review result goes to your inbox.","sub.zipUnlistedNote":"Submitting replaces the current package and sends it back for review.","sub.submitVersion":"Submit v{version} for review","sub.checkNew":"Check for a new version","sub.checkAgain":"Check again","sub.upToDate":"The latest upstream version is v{version} and the Store has v{current}. Publish a new version, then check again.","sub.upstreamLatest":"Latest upstream: v{version}","sub.releaseTag":"Release {tag}","sub.storeHas":"Store has v{version}","sub.githubNote":"Once approved, the Store pins v{version}. After your next GitHub release, come back and check again.","sub.npmNote":"Once approved, the Store pins v{version}. After your next npm release, come back and check again.","sub.secVersion":"Version","sub.secInfo":"Store details","sub.secHistory":"History","sub.edit":"Edit","sub.unset":"Not set","sub.infoNote":"No package or new version needed. Changes to a published item are reviewed too; until then the Store shows the current details.","sub.submitInfo":"Submit changes","sub.back":"Back to list","sub.pendingInfo":"Details change pending review","sub.rejectedInfo":"Details change rejected","sub.pendingHint":"The Store stays unchanged until approval. The review result goes to your inbox.","sub.inReview":"Waiting for its first review. The result goes to your inbox.","sub.histApproved":"v{version} approved","sub.histSubmitted":"Submitted","sub.resubmitted":"Resubmitted for review. The result goes to your inbox.","sub.infoSubmitted":"Changes submitted for review. The Store shows the current details until then.","sub.err.market_no_release":"This repository has no GitHub release yet. The Store pins a version, so publish a release on GitHub, then check again.","sub.err.market_no_changes":"Nothing changed.","sub.err.market_dryrun_unsupported":"GitHub and npm submissions can\u2019t be checked in advance. Submit them for review.","sub.capReason":"Reason for internals access","sub.capReasonHint":"Required if the plugin declares internals-raw (works on Forsion internals directly): which internal modules it needs and why the public APIs are not enough.","sub.capReasonRequired":"This package declares internals-raw, so a reason is required. Approval covers this version only; later versions that still declare it are reviewed again.","sub.err.internals_raw_reason_required":"The plugin declares internals-raw. Add a reason: which internal modules it needs and why the public APIs are not enough.","sub.err.internals_raw_needs_release":"A GitHub plugin that declares internals-raw needs a release first, because approval is bound to one version. Publish a release on GitHub, then submit again.","page.account":"Account","page.membershipUsage":"Membership & usage","page.membershipQuota":"Membership & quota","page.pointsInvite":"Points & invites","account.details.title":"Sign-in & details","account.details.desc":"Edit your photo, nickname and bio under Profile.","account.details.username":"Username","diag.unavailable":"This host does not support diagnostic data. Update Forsion and try again.","page.profile":"Profile","page.quota":"Quota & points","page.backpack":"Backpack","page.security":"Security","page.usage":"Usage","page.feedback":"Feedback","store.group":"Membership & points","store.membership":"Membership","store.membership.desc":"Upgrade your plan for more daily and weekly quota","store.points":"Points","store.points.desc":"Buy points and use them to redeem items","store.items":"Items","store.items.desc":"Items you can redeem with points. Redeemed items go to your backpack","store.status":"Plan and points","store.tier":"Current plan","store.balance":"Points balance","store.choosePlan":"Choose a plan","store.payHint":"You pay on the payment page in your browser. This page refreshes when you come back","store.payOff":"Purchases are unavailable right now","store.period":"Billing period","store.period.monthly":"Monthly","store.period.quarterly":"Quarterly","store.period.yearly":"Yearly","store.per.monthly":"/ month","store.per.quarterly":"/ quarter","store.per.yearly":"/ year","store.currentTier":"Current plan","store.pay":"Pay","store.payPrice":"Pay {price}","store.noPlans":"No plans are available right now","store.packs":"Point packs","store.packsHint":"You pay on the payment page in your browser. Points arrive right after payment","store.noPacks":"No point packs are available right now","store.kind.pack":"Point pack","store.kind.card":"Consumable","store.kind.code":"Redeem code","store.kind.item":"Item","store.nPoints":"{n} points","store.instant":"Arrives right after payment","store.kind.custom":"Custom","store.customPack":"Custom amount","store.customPackHint":"Minimum {min} points. Enter the amount on the payment page","store.customPackPay":"Enter amount","store.pricingTitle":"Reference usage (1\xD7 model)","store.pricingFormula":"Points \u2248 (uncached input tokens \xD7 {input} + output tokens \xD7 {output} + cached input tokens \xD7 {cached}) \xF7 1,000,000 \xD7 model multiplier","store.pricingExample":"Example: 10,000 input tokens and 2,000 output tokens on a 1\xD7 model cost about {n} points.","store.redeemTitle":"Redeem with points","store.redeemHint":"Redeeming with points completes right here. Items go to your backpack","store.redeem":"Redeem for {n} points","store.redeemConfirm":"Confirm: spend {n} points","store.redeemed":"Redeemed. The item is in your backpack","store.uncertain":"No response came back. Check your backpack before you try again","store.soldOut":"Sold out","store.left":"{n} left","store.toBackpack":"Goes to your backpack","store.limitReached":"You've reached the purchase limit","store.unavailable":"This item can't be redeemed right now","store.noItems":"Nothing to redeem right now","store.itemsOff":"Item redemption isn't available yet","store.openBackpack":"Open backpack","backpack.desc":"View the items you have collected. Select a slot for details.","backpack.refresh":"Refresh","backpack.total":"{n} items","backpack.grid":"Backpack items","backpack.slot":"{name}, quantity {n}","backpack.item":"Item","backpack.empty":"Your backpack is empty","backpack.emptyHint":"Items you redeem or receive will appear here.","backpack.select":"Select an item to view details","backpack.details":"Item details","backpack.quantity":"Quantity","backpack.acquired":"Acquired","backpack.source":"Received through","backpack.source.points":"Points exchange","backpack.source.admin":"Gift","backpack.source.reward":"Reward","backpack.source.other":"Cloud account","backpack.consumable":"Consumable","backpack.voucher":"Voucher","backpack.getCards":"View quota","backpack.manageCards":"Use it","backpack.reveal":"Reveal key","backpack.copyKey":"Copy key","backpack.noKey":"This item has no key.","backpack.use":"Use","backpack.confirmUse":"Confirm use","backpack.consumeConfirm":"Using this item consumes one copy.","backpack.collectible":"Collectible","backpack.effect.points":"+{n} points","backpack.effect.cards":"+{n} reset cards","backpack.effect.quota":"Reset daily and weekly quota","backpack.rarity.common":"Common","backpack.rarity.rare":"Rare","backpack.rarity.epic":"Epic","backpack.rarity.legendary":"Legendary","backpack.unavailable":"This item is no longer available. Refresh your backpack.","backpack.notUsable":"This item cannot be used.","backpack.quotaUnavailable":"Use cloud AI to initialize your quota before using this item.","common.cancel":"Cancel","common.copied":"Copied","common.copyFailed":"Couldn't copy","common.done":"Done","common.loadFailed":"Couldn't load","common.loadMore":"Load more","common.loading":"Loading\u2026","common.openInBrowser":"Open in browser","common.retry":"Retry","common.save":"Save","common.thisWeek":"This week","common.today":"Today","common.unlimited":"Unlimited","ann.eyebrow":"FORSION \xB7 Announcement","ann.close":"Close","ann.ok":"Got it","signin.button":"Sign in to Forsion","signin.desc":"Sign in to your Forsion account to manage your account, quota, security, submissions and feedback here.","signin.pending":"Waiting for you to finish in your browser\u2026","signin.deviceHint":"Your browser opens the sign-in page on its own. If it doesn't, scan the code with your phone or open the link below, and check that the code matches.","signin.code":"Code","signin.openLink":"Open sign-in page","signin.copyLink":"Copy link","signin.qrLabel":"Sign-in QR code","account.profile.title":"Profile","account.profile.desc":"Your photo and nickname, plus the phone and email linked to your account","account.avatar.change":"Change photo","account.avatar.saved":"Photo updated","account.nickname.edit":"Edit nickname","account.nickname.label":"Nickname","account.nickname.saved":"Nickname updated","account.role.admin":"Admin","account.username":"Username {name}","account.contact.phone":"Phone","account.contact.email":"Email","account.contact.unbound":"Not linked","account.contact.manage":"Manage in Security","account.web.open":"Open the account center in your browser","account.web.desc":"Cloud storage, AI Brain and themes are managed in the web account center.","wechat.title":"WeChat Helper","wechat.desc":"Send Xiaohongshu, Bilibili, X or web links to the Forsion WeCom account and they are clipped into Plugins/wechat-helper in your cloud vault. Other messages go into a daily note.","wechat.status":"Status","wechat.bound":"Bound","wechat.boundAt":"Bound on {date}","wechat.where":"Links you send to the WeCom account appear in Plugins/wechat-helper in your vault, usually within a minute.","wechat.notEligible":"Your current membership tier cannot use WeChat Helper.","wechat.disabled":"WeChat Helper is not available yet.","wechat.code":"Binding code","wechat.contact":"First add {contact} in WeChat","wechat.contactUnknown":"First add the Forsion WeCom account in WeChat","wechat.getCode":"Get binding code","wechat.newCode":"New code","wechat.copy":"Copy binding code","wechat.send":"{contact}, then send it these digits.","wechat.waiting":"Waiting for binding\u2026 The code is valid until {time}. WeCom won't reply; this updates once you are bound.","wechat.unbind":"Unbind","wechat.unbindConfirm":"Confirm unbind","address.label":"Page address","address.change":"Change","address.title":"Change your page address","address.desc":"Everything you publish lives under this address. After a change, the old address keeps redirecting to the new one and nobody else can take it.","address.now":"Now","address.new":"New","address.rule":'3\u201330 characters: lowercase letters, digits or "-"',"address.checking":"Checking\u2026","address.ok":"Available","address.bad":"Not available","address.same":"This is already your address","address.freeOne":"This is your one free change","address.freeN":"This one is free (you have {n} free changes)","address.freeAfter":"After that, an address rename card","address.card":"Uses 1 address rename card","address.cardHave":"You have {n}","address.need":"Changing needs 1 address rename card. You have none","address.price":"{price} points \xB7 balance {balance}","address.soldout":"Address rename cards are not on sale right now","address.cooldown":"Address changes need {days} days in between","address.cooldownUntil":"You can change it again after {date}","address.go":"Change address","address.goCard":"Use a card","address.goBuy":"Buy one for {price} points","address.shop":"Open the shop","address.done":"Your page address is now {url}","address.loadFailed":"Could not load your address right now.","address.errTaken":"Someone just took this address. Try another one.","address.errNeedCard":"No free changes left. Changing needs an address rename card.","address.errCooldown":"Not yet: you can change it again after {date}.","address.errPoints":"Not enough points for the card.","address.errBought":"The card is in your backpack, but the address was not changed: {reason}","address.errSoldout":"Address rename cards were just taken off sale.","address.errLimit":"You have reached the purchase limit for address rename cards.","address.errUnknown":"Could not confirm whether the address changed. Refresh in a moment to check.","backpack.addressCard":"Address rename card","backpack.addressCard.desc":"Once your free changes are used up, each change of your page address takes one card. The old address keeps redirecting and nobody else can take it.","backpack.addressCard.use":"Change address","member.title":"Membership","member.desc":"Your tier, plan and expiry date","member.upgrade":"Upgrade membership","member.renew":"Renew","member.freeName":"Free plan","member.freeHint":"Upgrade to get more AI quota","member.expires":"Expires {date}","member.noExpiry":"No expiry","member.loadFailed":"Couldn't load your membership.","session.title":"Sign-in","session.desc":"Manage your sign-in on this device","local.title":"Accounts on this computer","local.desc":"Switch between accounts you've signed in with","local.current":"Current","local.switch":"Switch","local.add":"Sign in to another account","local.signOut":"Sign out","local.empty":"No saved accounts yet","local.loadFailed":"Couldn't read the account list","diag.title":"Diagnostic data","diag.desc":"Helps us troubleshoot problems and improve Forsion. Off by default.","diag.enable":"Upload diagnostic data","diag.enableDesc":"When this is on, this computer periodically uploads a snapshot of its Forsion setup to your Forsion account, where the Forsion team can view it. The Forsion team sets how often, once a day by default. You can turn it off at any time.","diag.collected":"What's uploaded","diag.item.app":"App and system versions, this computer's name, and its free memory and disk space","diag.item.settings":"Your model and voice choices, the switches and numeric values in background agent and plugin settings, and the names and on/off state of MCP servers and message channels","diag.item.agents":"Agent and team configuration (options such as name and model; descriptions and prompts are recorded by length only, and their text falls under the personas, memory and evolution switch below)","diag.item.plugins":"Names and versions of installed plugins, skills, themes and Spaces","diag.item.runs":"Run records from the last 7 days: each run's status and error reason, usage and timing of model calls and tools (no conversation text, and nothing those tools read or wrote), and the engine's recent log output","diag.item.sync":"Cloud sync status: which categories your sync rules cover, how many files recent sync rounds uploaded, downloaded, deleted or saved as conflict copies, and why syncing failed (paths are masked; no file names or file contents)","diag.notCollected":"Never uploaded: the sign-in credentials and API keys saved on this computer, your note files, agent libraries, or plugin data.","diag.sessions":"Include conversations","diag.sessionsDesc":"Conversations on this computer: the text of your messages and the agent's replies, the agent's reasoning and the names of the tools it used, including the background work of team members, discussions and delegated tasks. Each upload only includes what hasn't been uploaded yet, going back at most 7 days. What those tools read or wrote and the attachments themselves are left out; file names that appear in messages, and anything the agent repeated from your notes or files in its replies, are included. Keys in common formats are masked; everything else is uploaded as is. If you'd rather not share them, turn this off before you turn uploads on.","diag.memory":"Include agent personas, memory and evolution records","diag.memoryDesc":"Each agent's persona (including the description and developer instructions in its configuration), and what the agent has built up on its own: its memory and the memory candidates it hasn't consolidated yet, its evolution record, its collaboration notes for you, the last 7 days of its logs and memory-consolidation activity, and project memory; plus your teams' charters and your user profile. These are the instructions you wrote for your agents and teams, and the facts they noted about you and your work from conversations. Each upload carries their current content (very long ones are cut short). Keys in common formats are masked; everything else is uploaded as is. If you'd rather not share them, turn this off before you turn uploads on.","diag.activity":"Include activity log","diag.activityDesc":"Your activity records, which include the first few dozen characters of conversations and the names of note files. Each upload only includes what hasn't been uploaded yet, going back at most 7 days. If you'd rather not share them, turn this off before you turn uploads on.","diag.last":"Last upload: {time}","diag.noUpload":"Nothing uploaded yet","diag.freq.hour":"every hour","diag.freq.hours":"every {n} hours","diag.freq.day":"once a day","diag.freq.days":"every {n} days","diag.freq.manual":"only when the Forsion team requests it","diag.retention":"The cloud keeps this computer's snapshots from the last {n} days. Turning this off stops uploads; snapshots already uploaded stay in the cloud. To have them deleted, let us know under Feedback.","page.privacy":"Privacy and data","privacy.tab":"Help improve","privacy.unavailable":"This version of Forsion does not support helping improve Forsion. Update Forsion and try again.","privacy.needUpdate":"This version of Forsion does not send this data yet. It takes effect after you update Forsion.","privacy.devBuild":"Development builds never send any data.","privacy.signInFirst":"Sign in to turn this on. Nothing is sent while you are signed out.","privacy.improve.title":"Help improve Forsion","privacy.improve.desc":"Sends metadata only, so we can find bugs and slow spots. It only sends while you are signed in to Forsion, and it is not linked to your account.","privacy.improve.switch":"Send crash reports and usage statistics","privacy.improve.switchHint":"Turning this off stops sending right away and discards anything still queued on this device.","privacy.policyLink":"See the Privacy Policy for what is collected and how long it is kept","privacy.sent.title":"Sent in the last 7 days","privacy.sent.hint":"A copy stays on this device so you can read every event.","privacy.sent.last":"A copy stays on this device so you can read every event. Last sent: {time}","privacy.sent.view":"View","privacy.sent.empty":"Nothing has been sent in the last 7 days.","privacy.delete.title":"Delete sent data","privacy.delete.hint":"Removes every record for this device's install ID from our servers and issues a new ID.","privacy.delete.button":"Delete","privacy.delete.confirm":"Confirm delete","privacy.delete.done":"Deleted. This device now has a new install ID.","privacy.delete.failed":"Could not delete: {reason}","privacy.installId":"Install ID {id} \xB7 not linked to your account","diag.uploadNow":"Upload now","diag.uploaded":"Uploaded","diag.failed":"Upload failed: {reason}","quota.ai.title":"AI quota","quota.ai.desc":"What's left today and this week; when it runs out, use a quota reset card or continue with points","quota.resetDaily":"Resets daily at 0:00 (Beijing time)","quota.resetWeekly":"Resets {date} at 0:00 (Beijing time)","card.title":"Quota reset card","card.desc":"Restores today's and this week's AI quota to 100%","card.owned":"You have {n}","card.use":"Use one","card.useConfirm":"Confirm","card.used":"Used 1 quota reset card","card.left":"{n} left","card.noneHint":"You have no quota reset cards left. They come from invitations, achievements and event rewards.","fallback.title":"Continue with points when quota runs out","fallback.desc":"When on, usage beyond your quota is paid from your points balance. Background tasks never use points.","fallback.balance":"Points balance {n}","fallback.pricing":"For a 1\xD7 model, each million tokens costs {input} points for input, {output} for output and {cached} for cache hits. An N\xD7 model costs about N times as much; each model's own pricing applies.","fallback.unknown":"Status unknown. Try again","quota.out.cardOrPoints":"Your AI quota is used up. Use a reset card to restore it, or turn on Continue with points below.","quota.out.points":"Your AI quota is used up. Turn on Continue with points below to keep going.","quota.out.cardOrTopUp":"Your AI quota is used up. Use a reset card to restore it, or buy points and turn on Continue with points.","quota.out.topUp":"Your AI quota is used up. Buy points, then turn on Continue with points to keep going.","quota.out.card":"Your AI quota is used up. Use a reset card to restore it.","quota.out.usingPoints":"Your AI quota is used up. Continuing with points.","quota.out.pointsGone":"Your AI quota and points are both used up. Buy points or upgrade your plan to continue.","err.pointsFallbackUnavailable":"Not available right now. Try again later","member.modelsAll":"All models available","member.modelsCap":"Models up to {cap}\xD7 rate","points.title":"Points","points.desc":"Redeem items in the Store, or keep using AI after your quota runs out","points.balance":"Balance","points.balanceFailed":"Couldn't load your balance","points.recharge":"Buy points","bg.title":"Background quota","bg.desc":"Used by Muse and automations, counted separately from your AI quota","bg.autoMain":"Continue with AI quota when used up","bg.autoMainDesc":"When off, Muse and automations pause once the background quota runs out","bg.convert":"Move from AI quota","bg.convertDesc":"Moves a share of your AI quota limit, valid for the current period","bg.convertConfirm":"Move {pct}%","bg.converted":"Moved {pct}% from your AI quota","invite.title":"Invites & codes","invite.desc":"Invite friends to join, or redeem a code you received","invite.myCode":"My invite code","invite.count":"{n} invited","invite.copyCode":"Copy code","invite.copyLink":"Copy invite link","invite.loadFailed":"Couldn't load your invite code","invite.claim":"Enter an invite code","invite.claimDesc":"Within 7 days of signing up, you can enter a friend's invite code","invite.claimPlaceholder":"Friend's invite code","invite.claimSubmit":"Submit","invite.claimed":"Invite code applied","redeem.title":"Redemption code","redeem.desc":"Redeem points, membership or other rewards","redeem.placeholder":"Enter a code","redeem.submit":"Redeem","redeem.success":"Redeemed","redeem.successWith":"Redeemed: {what}","redeem.gotPoints":"{n} points","redeem.gotMembership":"membership","sec.methods.title":"Sign-in methods","sec.methods.desc":"Your phone and email can be used to sign in and reset your password","sec.bind":"Link","sec.change":"Change","sec.phone":"Phone number","sec.email":"Email address","sec.newPhone":"New phone number","sec.newEmail":"New email address","sec.phonePlaceholder":"Mainland China numbers as is; others with +country code","sec.emailPlaceholder":"name@example.com","sec.code":"Verification code","sec.codePlaceholder":"Enter the code","sec.sendCode":"Send code","sec.resendIn":"Resend in {s}s","sec.codeSent":"Code sent","sec.bindSubmit":"Link","sec.phoneBound":"Phone linked","sec.emailBound":"Email linked","sec.devices.title":"Signed-in devices","sec.devices.desc":"If you think someone else is using your account, sign out on every device","sec.logoutAll":"Sign out everywhere","sec.logoutAllDesc":"Including this device: every device has to sign in again","sec.logoutAllConfirm":"Confirm sign out everywhere","sec.logoutAllDone":"Signed out everywhere","pw.title":"Password","pw.desc":"{min}\u2013{max} characters, with a lowercase letter, an uppercase letter and a special character, and no spaces","pw.change":"Change password","pw.modeLabel":"How to change it","pw.mode.current":"With current password","pw.mode.code":"With a verification code","pw.current":"Current password","pw.currentRequired":"Enter your current password","pw.new":"New password","pw.confirm":"Confirm new password","pw.mismatch":"The new passwords don't match","pw.submit":"Change password","pw.submitReset":"Set new password","pw.changed":"Password updated","pw.noPasswordYet":"This account doesn't have a password yet. Set one with a verification code instead.","pw.codeNeedsContact":"Link a phone or email first to set a password with a verification code.","pw.via":"Send the code to","pw.codeTo":"The code goes to {target}","pw.rulesLabel":"Password rules","pw.req.length":"{min}\u2013{max} characters","pw.req.lower":"A lowercase letter","pw.req.upper":"An uppercase letter","pw.req.special":"A special character","pw.req.space":"No spaces","pw.rule.format":"Invalid password","pw.rule.min":"Password must be at least 8 characters","pw.rule.max":"Password can't be longer than 64 characters","pw.rule.space":"Password can't contain spaces","pw.rule.lower":"Password needs a lowercase letter","pw.rule.upper":"Password needs an uppercase letter","pw.rule.special":"Password needs a special character","del.title":"Delete account","del.desc":"Permanently delete your account and all its data. This can't be undone","del.start":"Delete account","del.warn":"Deleting your account removes your account, points, membership, cloud storage and all other data for good.","del.methodLabel":"Verify with","del.byCode":"Verification code","del.byPassword":"Password","del.codeLabel":"Code sent to {target}","del.passwordLabel":"Account password","del.submit":"Delete account","del.confirm":"Delete permanently","del.done":"Account deleted","usage.overview.title":"Overview","usage.overview.desc":"Requests and AI quota used in the selected period","usage.range":"Time range","usage.days":"{n} days","usage.requests":"Requests","usage.successRate":"Success rate","usage.consumption":"AI quota used","usage.ofToday":"Of your daily limit","usage.unlimitedNote":"Your AI quota is unlimited, so usage isn't shown as a percentage.","usage.noLimitNote":"Your daily limit is 0 or unavailable right now, so usage isn't shown as a percentage.","usage.byModel.title":"By model","usage.byModel.desc":"Requests and quota used per model","usage.byApp.title":"By app","usage.byApp.desc":"Requests and quota used per app","usage.col.model":"Model","usage.col.app":"App","usage.col.requests":"Requests","usage.col.consumption":"Quota used","usage.empty":"No usage in this period","usage.appUnknown":"Other","usage.recent.title":"Recent usage","usage.recent.desc":"Each call as a share of your daily limit","usage.recentEmpty":"No usage yet","usage.failed":"Failed","usage.shown":"Showing {shown} of {total}","fb.list.title":"My feedback","fb.list.desc":"Issues and suggestions you've sent; replies show up here","fb.new":"New feedback","fb.empty":"No feedback yet","fb.untitled":"Untitled feedback","fb.unread":"New reply","fb.shown":"Showing {n}","fb.submitted":"Sent. We'll reply as soon as we can","fb.descLabel":"Describe the issue or suggestion","fb.descPlaceholder":"What happened, and what did you expect?","fb.imagesHint":"Attach up to {n} screenshots (5 MB each). You can paste or drop them here.","fb.addImages":"Add screenshots","fb.removeImage":"Remove this image","fb.submit":"Send","fb.back":"Back to list","fb.you":"You","fb.support":"Forsion team","fb.attachment":"Attachment","fb.imagePreview":"View image","fb.closedNote":"This ticket is closed and can't take replies. Send new feedback for a new issue.","fb.replyPlaceholder":"Reply\u2026","fb.replySend":"Send reply","fb.replySent":"Reply sent","fb.status.open":"Open","fb.status.in_progress":"In progress","fb.status.resolved":"Resolved","fb.status.closed":"Closed","af.title":"Feedback to Forsion","af.kind":"Feedback type","af.kind.bug":"Report a problem","af.kind.idea":"Suggest a feature","af.kind.other":"Something else","af.titleLabel":"Title","af.descLabel":"Description","af.includes":"Includes","af.optErrors":"Errors from this run","af.optErrorsHint":"Failed tool calls in the same reply, with their arguments and error text","af.optLogs":"App and runtime logs","af.optLogsHint":"Version, errors, run timeline and usage. Process logs may include other sessions.","af.optConversation":"Current conversation","af.optConversationHint":"The whole conversation, including tool inputs and outputs.","af.optConversationAuto":"Never included when sending automatically.","af.redacted":"Common credential fields are filtered","af.sendingAuto":"Sending automatically, as set in your settings\u2026","af.preview":"Preview","af.hidePreview":"Hide preview","af.dismiss":"Don\u2019t send","af.send":"Send","af.sending":"Sending\u2026","af.appendTo":"Add to {id}","af.dup":"You already reported this problem ({id}, still open). Sending adds to that report instead of opening a new one.","af.dupAuto":"You already reported this problem ({id}, still open), so this was not sent automatically. Use the button below to add to it.","af.staleAuto":"This draft is not recent, so it was not sent automatically. Click Send to send it.","af.errorCount":"{n} failed calls","af.errReport":"The attachment could not be prepared. This conversation may no longer be open in this window.","af.sendTextOnly":"Send text only","af.errSend":"Couldn\u2019t send: {err}","af.errWithdrawLate":"It can\u2019t be withdrawn after 10 minutes or once the team has replied.","af.needLogin":"Sign in to your Forsion account to send. The draft stays here.","af.login":"Sign in","af.prefLead":"Next time Forsion has a problem:","af.modeAsk":"Draft and ask me first","af.modeAuto":"Draft and send automatically","af.change":"Change","af.replied":"Replied","af.appended":"Added to feedback {id}","af.sent":"Sent \xB7 Feedback {id}","af.sentAuto":"Sent automatically \xB7 Feedback {id} \xB7 No conversation","af.withdrawLeft":"You can withdraw it for {n} more min","af.replyInbox":"Replies from the team arrive in your inbox","af.withdraw":"Withdraw","af.openFeedback":"Open in Feedback","af.withdrawn":"Withdrawn","af.dismissed":"Not sent","af.sendAnyway":"Send anyway","af.errAccount":"The account changed while the attachment was being prepared, so nothing was sent. Check the account and click Send again.","af.matchFailed":"Couldn\u2019t check whether you already reported this problem, so it was not sent automatically. Click Send to send it.","err.accountGone":"This account is signed out. Sign in again","err.adminCannotDelete":"Admin accounts can't be deleted here","err.avatarInvalid":"Couldn't read this image. Try another one","err.avatarTooLarge":"This image is too large. Try a smaller one","err.backgroundUnavailable":"Background quota is unavailable right now","err.captcha":"You need to finish a verification check in your browser","err.codeCooldown":"Too many codes requested. Try again shortly","err.codeInvalid":"The code is wrong or has expired","err.codeRequired":"Enter the verification code","err.codeSendFailed":"Couldn't send the code. Try again later","err.currentPasswordWrong":"Your current password is incorrect","err.deleteTargetInvalid":"Codes can only go to the phone or email linked to your account","err.deleteVerifyFailed":"Verification failed, so your account wasn't deleted","err.emailInUse":"This email is already used by another account","err.emailInvalid":"Enter a valid email address","err.featureDisabled":"This feature is turned off for now","err.feedbackEmpty":"Describe the issue or suggestion first","err.feedbackTooLong":"The description is too long (10,000 characters max)","err.generic":"That didn't work. Try again later","err.imageRead":"Couldn't read the image","err.imageTooLarge":"Each image must be 5 MB or less","err.imageType":"Only images can be added","err.insufficientMainQuota":"Your AI quota is used up, so there's nothing to move","err.insufficientPoints":"Not enough points","err.invalidInviteCode":"This invite code is invalid or has expired","err.inviteAlreadyUsed":"You've already used an invite code","err.inviteEmpty":"Enter an invite code","err.inviteOwnCode":"You can't use your own invite code","err.inviteWindowExpired":"The 7-day window after sign-up has passed","err.loginCodeExpired":"The sign-in code expired. Sign in again","err.loginInProgress":"A sign-in is already in progress","err.loginTimeout":"Sign-in timed out. Try again","err.loginUnsupported":"This cloud doesn't support desktop sign-in","err.network":"Network error. Check your connection and try again","err.noCloudUrl":"Set the cloud address under Connection first","err.noResetCard":"You have no quota reset cards","err.openFailed":"Couldn't open the browser","err.passwordRequired":"Enter your current and new password","err.phoneInUse":"This phone number is already used by another account","err.phoneInvalid":"Enter a valid phone number (with +country code outside mainland China)","err.redeemEmpty":"Enter a code","err.redeemExpired":"This code has expired","err.redeemInactive":"This code is no longer active","err.redeemNotFound":"This code doesn't exist","err.redeemUsedUp":"This code has been used up","err.redeemUserLimit":"You've already redeemed this code","err.replyEmpty":"Write a reply first","err.replyTooLong":"The reply is too long (10,000 characters max)","err.server":"Server error ({status}). Try again later","err.session":"You've been signed out. Sign in again","err.signedOut":"Sign in to Forsion first","err.targetInvalid":"Enter a valid phone number or email","err.ticketNotFound":"This feedback doesn't exist or was deleted","err.webPageGone":"This page doesn't exist or was taken down","err.listingGone":"This page has no store listing","err.listingSummary":"Add a store summary (up to 300 characters)","err.tooFrequent":"Too many attempts. Try again shortly","err.tooManyImages":"You can add up to 5 images","err.unavailable":"This version of Forsion can't do that yet. Update Forsion","profile.unsupported":"This server doesn't have profiles yet","profile.state.private":"Only you can see this","profile.state.public":"Public","profile.state.privateDesc":"Once public, anyone with the address can see your profile without signing in","profile.linkUnavailable":"Public link unavailable","profile.decorate":"Decorate","profile.publish":"Make public","profile.makePrivate":"Make private","profile.copyLink":"Copy link","profile.openPublic":"Open public profile in browser","profile.nowPublic":"Your profile is now public","profile.nowPrivate":"Your profile is private. The public address no longer opens","profile.bio":"Bio","profile.bioPlaceholder":"Add a short bio","profile.linkAdd":"Add a link","profile.linkRemove":"Remove link","profile.linkInvalid":"Links must start with http:// or https://, or be a plain domain","profile.joined":"Joined {date}","profile.stat.tokens":"Total tokens","profile.stat.activeDays":"Active days","profile.stat.longest":"Longest streak","profile.stat.current":"Current streak","profile.stat.installs":"Work installs","profile.unit.days":"d","profile.works":"Featured works","profile.worksPick":"Choose","profile.worksEmpty":"No published works yet. Publish to the store or as a web app, and they can go here.","profile.worksNone":"Nothing to feature yet. Works appear here once they are in the store or published as a web app.","profile.worksPicked":"{n} of {max} selected","profile.worksAuto":"With none selected, the most installed ones are shown","profile.goSubmit":"Submit a work","profile.workInstalls":"{n} installs","profile.workVisits":"{n} visits","profile.work.skill":"Skill","profile.work.agent":"Agent","profile.work.plugin":"Plugin","profile.work.space":"Space","profile.work.theme":"Theme","profile.work.note":"Notes plugin","profile.work.webapp":"Web app","profile.activity":"Activity","profile.activityDays":"Active on {n} days in the past year","profile.less":"Less","profile.more":"More","profile.badges":"Badges","profile.badgesEmpty":"No badges yet. Streaks, published works and invites all earn one.","profile.badge.early":"Early user","profile.badge.streak":"30-day streak","profile.badge.author":"Author","profile.badge.inviter":"Top inviter","profile.badge.event":"Event keepsake","profile.badgeSub.early":"Joined in {value}","profile.badgeSub.streak":"Longest streak: {value} days","profile.badgeSub.author":"{value} published works","profile.badgeSub.inviter":"Invited {value} friends","profile.badgeSub.event":"Took part in a Forsion event{value}","profile.insights":"Insights","profile.insightsEmpty":"Not enough usage yet. Check back in a few days.","profile.insightModel":"Most used model","profile.insightHours":"Most active hours","profile.deco.skin":"Public page color scheme","profile.deco.mode":"Public page appearance","profile.deco.publicHint":"These two only set what visitors see on the public page. Here the profile follows Forsion's current theme.","profile.deco.cover":"Cover","profile.deco.frame":"Avatar frame","profile.deco.modules":"Sections","profile.skin.cream":"Classic","profile.skin.coral":"Coral","profile.skin.teal":"Teal","profile.skin.lavender":"Lavender","profile.mode.auto":"Auto","profile.mode.light":"Light","profile.mode.dark":"Dark","profile.cover.none":"None","profile.cover.mist":"Mist","profile.cover.contour":"Contour","profile.cover.dots":"Dots","profile.frame.none":"None","profile.frame.ring":"Ring","profile.frame.pro":"Member ring","profile.frameProHint":"The member ring is for paid members.","profile.col.show":"Show","profile.col.public":"Public","profile.moveUp":"Move up","profile.moveDown":"Move down","profile.modulesHint":'"Show" decides whether a section is on your profile. "Public" decides whether visitors see it, once your profile is public.',"profile.mod.stats":"Stats","profile.mod.works":"Works","profile.mod.activity":"Activity","profile.mod.badges":"Badges","profile.mod.insights":"Insights","profile.modDesc.stats":"Total tokens, active days, streaks and installs of your works","profile.modDesc.works":"Works you have published, up to 6","profile.modDesc.activity":"Which days you were active in the past year (shades only, no numbers)","profile.modDesc.badges":"Join year, streaks, publishing, invites and events","profile.modDesc.insights":"Your most used model and most active hours","profile.publishDesc":"Once public, anyone with this address can see your profile without signing in. You decide section by section what visitors see.","profile.publishNever":"Your avatar, nickname, username, bio and links become public too. Your email, phone number, membership expiry, points and quota never appear on your profile.","profile.publishConfirm":"Make public","profile.blocked.machineUsername":"Your current username was generated by the system and contains part of your phone number or email, so making it public would expose that. Change your username on the Account page of the web account center first (each account can do this once), then come back.","profile.blocked.publishBlocked":"An administrator has stopped this profile from being public. Contact us through Feedback if you have questions.","profile.goRename":"Change username","profile.invalid":"This couldn't be saved. Check it and try again","guide.title":"Guide","guide.readOnly":"Read-only","guide.more":"More","guide.unlockAll":"Unlock all","guide.relock":"Unlock level by level","guide.reminders":"Guide reminders","guide.spotlight":"On-screen hints","guide.spotStep":"Step {n} of {total}","guide.figure":"Diagram","guide.openAchievements":"Open achievements","guide.tasks":"Tasks in this chapter","guide.go":"Take me there","guide.desktopOnly":"Do it on your computer","guide.taskDone":"Done","guide.askTangu":"Ask Tangu","guide.progress":"Progress","guide.justUnlocked":"Just unlocked","guide.lockedHint":"Locked","guide.whatsNew":"What's new in {version}","guide.level.lv1":"Lv.1 Getting started","guide.level.lv2":"Lv.2 Finding your way","guide.level.lv3":"Lv.3 Making it yours","guide.level.lv4":"Lv.4 Going further","guide.locked.title":"This chapter is still locked","guide.locked.body":"Finish the tasks in {level} to read the rest.","guide.locked.left":"Still to do:","guide.locked.hint":"Been around a while? Unlock everything from the \xB7\xB7\xB7 menu.","guide.levelProgress":"This level: {done}/{total}","guide.next":"Next level","guide.allDone":"All done","guide.allDoneBody":"You've done every task in the guide. Come back any time.","guide.review":"Look back","guide.ask.hint":'Questions about "{chapter}"? Ask Tangu opens a new chat with this chapter attached.',"guide.ask.placeholder":"What would you like to know?","guide.ask.send":"Start a chat","guide.ask.prompt":`I'm reading the "{chapter}" chapter of the Forsion guide; it's attached below. {question}`,"guide.ask.unavailable":"Chat isn't available here","guide.ask.chatTitle":"Guide Q&A","guide.companion.back":"Back to the guide","guide.companion.close":"Close","guide.toast.taskDone":"Done: {task}","guide.letter.levelTitle":"{level} unlocked: try these next","guide.letter.levelBody":'You finished the previous level, so these chapters are open now. Every task has a "Take me there" button.',"guide.letter.versionTitle":"{n} new things to try in {version}","guide.letter.versionBody":"New in this version, ready to try:","guide.letter.open":"Open the guide","guide.status.done":"Done","guide.cmd.open":"Open the guide","penzor.title":"Penzor Cloud","penzor.overview":"Overview","penzor.places":"Places","penzor.details":"Details","penzor.ledger.sync":"Vault sync","penzor.ledger.ama":"Amadeus Cloud","penzor.ledger.apps":"App files","penzor.ledger.exports":"Exports","penzor.trash":"Trash","penzor.items":"{n} items","penzor.total.sub":"Stored in Forsion Cloud \xB7 updated {time}","penzor.justNow":"just now","penzor.ofMax":"/ {max}","penzor.card.syncSub":"{n} vaults \xB7 last write {time}","penzor.card.syncSubNone":"{n} vaults","penzor.card.syncFoot":"Files over {size} are not uploaded","penzor.card.syncWarn":"Almost full: after {max}, new files stop uploading; files already in the cloud keep syncing","penzor.card.amaSmall":"Not counted in your quota","penzor.card.amaSub":"{n} cloud vaults","penzor.card.amaFoot":"Notes and attachments on the Cloud side of Amadeus","penzor.card.appsFoot":"Trash: {n} items \xB7 {size}","penzor.card.appsWarn":"Almost full: after {max}, apps can't save new files. Trash counts too, so emptying it frees space","penzor.card.expSmall":"{n} files","penzor.card.expSub":"Latest: {name} \xB7 {time}","penzor.card.expFoot":"Files exported from apps","penzor.card.none":"Nothing yet","penzor.largest":"Largest files","penzor.col.name":"Name","penzor.col.size":"Size","penzor.col.mtime":"Modified","penzor.col.device":"Written by","penzor.col.deleted":"Deleted","penzor.col.origin":"Original location","penzor.col.app":"From","penzor.sort.mtime":"By modified","penzor.sort.size":"By size","penzor.sort.name":"By name","penzor.search":"Search file names here","penzor.sync.thisDevice":"Syncing on this device","penzor.meta.files":"{size} \xB7 {n} files","penzor.sync.last":"Last write {time} \xB7 {device}","penzor.sync.lastNoDevice":"Last write {time}","penzor.sync.devices":"{n} devices sync this vault","penzor.sync.meter":"Vault sync shares {max}; {used} used","penzor.apps.meter":"App files share {max}; {used} used (trash included)","penzor.apps.by":"Written by {app}","penzor.ama.notCounted":"Not counted in your quota","penzor.ama.open":"Open in Amadeus","penzor.hosted.open":"Manage my web pages","penzor.hosted.note":"These files belong to a published web page. Republish to change them, or take the page down in My web pages.","penzor.trash.meta":"{n} items \xB7 {size}","penzor.trash.note":"Space frees up once items are deleted permanently","penzor.trash.emptyBtn":"Empty trash","penzor.act.download":"Download","penzor.act.rename":"Rename","penzor.act.move":"Move to\u2026","penzor.act.trash":"Move to trash","penzor.act.delete":"Delete","penzor.act.restore":"Restore","penzor.act.purge":"Delete permanently","penzor.act.copyName":"Copy vault name","penzor.act.openSync":"Open sync settings","penzor.act.refresh":"Refresh","penzor.act.up":"Up one level","penzor.toast.trashed":"Moved \u201C{name}\u201D to trash","penzor.toast.restored":"Restored \u201C{name}\u201D","penzor.toast.purged":"Deleted \u201C{name}\u201D permanently","penzor.toast.emptied":"Trash emptied","penzor.toast.downloaded":"Saved to Downloads: {name}","penzor.toast.renamed":"Renamed to \u201C{name}\u201D","penzor.toast.moved":"Moved to \u201C{name}\u201D","penzor.toast.versionRestored":"Restored version {n}","penzor.toast.copied":"Vault name copied","penzor.toast.failed":"That didn't work: {reason}","penzor.confirm.purge":"Delete \u201C{name}\u201D permanently? This can't be undone.","penzor.confirm.empty":"Empty the trash? {n} items will be deleted permanently.","penzor.confirm.deleteExport":"Delete \u201C{name}\u201D? Exports have no trash, so this can't be undone.","penzor.cancel":"Cancel","penzor.side.where":"Location","penzor.side.mtime":"Modified","penzor.side.device":"Written by","penzor.side.thisDevice":"{name} (this device)","penzor.side.from":"From","penzor.side.versions":"Versions","penzor.side.versionsNone":"None","penzor.side.versionRow":"Version {n} \xB7 {time} \xB7 {size}","penzor.side.restoreVersion":"Restore this version","penzor.side.deletedAt":"Deleted","penzor.side.origin":"Original location","penzor.side.inner":"{n} more items inside come back with it","penzor.side.inTrash":"In trash \xB7 {size}","penzor.side.readonlySync":"Files in a synced vault are changed on your devices. Deleting one here would delete it on every device that syncs {vault}, so here you can only view and download.","penzor.side.readonlyAma":"Notes and attachments are changed in Amadeus. Deleting an attachment here would leave the notes that use it with missing images, so here you can only view and download.","penzor.side.exportNote":"Exports have no trash: deleting is permanent.","penzor.side.none":"Select a file to see its details","penzor.side.folder":"Folder \xB7 {n} items","penzor.side.folderPlain":"Folder","penzor.move.title":"Move to","penzor.move.root":"Top of {app}","penzor.move.here":"Move here","penzor.move.noFolders":"No folders at this level","penzor.rename.save":"Save","penzor.empty.title":"Nothing in Penzor Cloud yet","penzor.empty.lead":"These show up here once they're in the cloud:","penzor.empty.sync":"Pick Penzor Cloud as the remote service in Settings \u203A Sync, and your local vault syncs here","penzor.empty.ama":"Notes you write on the Cloud side of Amadeus","penzor.empty.apps":"Files apps save to the cloud or export","penzor.empty.openSync":"Open sync settings","penzor.out.title":"Sign in to see your Penzor Cloud","penzor.out.lead":"Penzor Cloud holds the vaults you sync to Forsion Cloud, your Amadeus Cloud notes and the files apps keep in the cloud.","penzor.out.signIn":"Sign in to Forsion","penzor.loading":"Loading\u2026","penzor.err":"Couldn't load: {reason}","penzor.folderEmpty":"No files here","penzor.noMatch":"No file names contain \u201C{q}\u201D","penzor.cmd.open":"Open Penzor Cloud","penzor.unreachable":"Can\u2019t reach Forsion Cloud. Try again later","penzor.toast.emptyPartial":"{n} items in the trash couldn\u2019t be deleted","penzor.sort.deleted":"By deleted","penzor.side.versionsN":"{n}","penzor.drive":"My drive","penzor.drive.meta":"Counts toward the {max} for app files","penzor.drive.empty":"Nothing here yet. Drag files in, or click Upload.","penzor.act.upload":"Upload","penzor.act.uploadMore":"More upload options","penzor.act.uploadFiles":"Upload files\u2026","penzor.act.uploadFolder":"Upload folder\u2026","penzor.act.uploadHere":"Upload here\u2026","penzor.act.newFolder":"New folder","penzor.act.clearSel":"Clear selection","penzor.newFolder.default":"New folder","penzor.sel.bar":"{n} selected \xB7 {size}","penzor.sel.title":"{n} selected","penzor.sel.sub":"{size} \xB7 {files} files","penzor.sel.subDirs":"{size} \xB7 {files} files, {dirs} folders","penzor.sel.download":"Download {n}","penzor.sel.saveTo":"Saves to","penzor.sel.saveToValue":"Downloads / {folder}","penzor.sel.noDirs":"Folders can\u2019t be downloaded yet; only the selected files will be.","penzor.download.folder":"Penzor Cloud {date}","penzor.drop.to":"Drop to upload to \u201C{place}\u201D","penzor.tx.busy":"Transferring {n}","penzor.tx.allDone":"All done","penzor.tx.failedN":"{n} didn\u2019t finish","penzor.tx.counts":"{up} up \xB7 {down} down","penzor.tx.eta":"about {eta} left","penzor.tx.doneN":"{n} finished","penzor.tx.restDone":"The other {n} finished","penzor.tx.pill":"{counts} \xB7 {pct}%","penzor.tx.queued":"Queued","penzor.tx.paused":"Paused \xB7 resumes from the start","penzor.tx.uploaded":"Uploaded \xB7 {time}","penzor.tx.downloaded":"Downloaded \xB7 {time}","penzor.tx.canceled":"Canceled","penzor.tx.left":"{eta} left","penzor.tx.sec":"{n}s","penzor.tx.min":"{n} min","penzor.tx.pause":"Pause","penzor.tx.resume":"Resume","penzor.tx.cancel":"Cancel","penzor.tx.retry":"Retry","penzor.tx.remove":"Remove","penzor.tx.locate":"Show","penzor.tx.reveal":"Show in folder","penzor.tx.pauseAll":"Pause all","penzor.tx.resumeAll":"Resume all","penzor.tx.retryAll":"Retry all","penzor.tx.clearDone":"Clear finished","penzor.tx.clear":"Clear","penzor.tx.collapse":"Collapse","penzor.tx.expand":"Show transfers","penzor.tx.quota":"Not enough space: {size} short","penzor.tx.quotaSub":"Nothing in this batch was started","penzor.tx.freeSpace":"Free up space in Trash","penzor.err.too_large":"Over the 50 MB per-file limit ({size}); can\u2019t upload it yet","penzor.err.quota":"Not enough cloud space","penzor.err.network":"Connection lost at {pct}%","penzor.err.account_changed":"You switched accounts, so this one stopped","penzor.err.download_unavailable":"This host cannot save downloads yet. Update Forsion","penzor.err.download_failed":"The file was not saved. Try downloading it again","penzor.err.not_signed_in":"Not signed in","penzor.err.gone":"The file is no longer on this device","penzor.err.popup_blocked":"Your browser blocked the new tab. Allow pop-ups for this site and try again","penzor.err.changed":"The file changed while uploading. Try again","penzor.err.storage_unavailable":"Cloud storage is unavailable right now","penzor.err.other":"Didn\u2019t finish ({code})","penzor.err.too_many":"Up to {n} files at a time. Add them in smaller batches","penzor.toast.upDoneOne":"Uploaded \u201C{name}\u201D","penzor.toast.upDoneMany":"Uploaded {n} files","penzor.toast.downDoneMany":"Downloaded {n} files to Downloads","penzor.toast.txFailed":"{n} transfers didn\u2019t finish. Open Penzor Cloud to check","penzor.toast.folderExists":"There\u2019s already a folder called \u201C{name}\u201D","penzor.toast.trashedN":"Moved {n} items to the trash","penzor.toast.movedN":"Moved {n} items to \u201C{name}\u201D","penzor.toast.batchPartial":"{n} items didn\u2019t go through","penzor.sync.title":"Sync","penzor.sync.onN":"{n} on","penzor.sync.allOff":"All off","penzor.sync.waiting":"Waiting for you","penzor.sync.badgeWaiting":"{n} on \xB7 1 waiting for you","penzor.sync.running":"Syncing {pct}%","penzor.sync.runningPlain":"Syncing","penzor.sync.metaDevice":"This computer: {name}","penzor.sync.metaLast":"Last synced {time}","penzor.sync.metaNever":"Not synced yet","penzor.sync.every":"Every {n} min","penzor.sync.everyHours":"Every {n} h","penzor.sync.manual":"Manual","penzor.sync.onStart":"once at startup","penzor.sync.minAgo":"{n} min ago","penzor.sync.hoursAgo":"{n} h ago","penzor.sync.notesNamed":"Notes vault \u201C{name}\u201D","penzor.sync.notesPlain":"This computer\u2019s notes vault","penzor.sync.notesDesc":"The whole local vault, kept the same on your other computers","penzor.sync.agents":"Agents & memory","penzor.sync.agentsDesc":"Your agents\u2019 memory, logs, skills and working notes, plus your profile and default calendar","penzor.sync.conflictsN":"Conflict copies: {n}","penzor.sync.conflictsHint":"Files changed on both sides are kept twice: the other version is saved as a copy with \u201Cconflict\u201D in its name, in that agent\u2019s folder (or your profile folder)","penzor.sync.pluginsPending":"Changes not uploaded yet: {n} plugins","penzor.sync.agentsN":"Agents: {n}","penzor.sync.plugins":"Plugin data","penzor.sync.pluginsDesc":"Settings and data your plugins keep","penzor.sync.pluginsN":"Plugins: {n}","penzor.sync.off":"Off","penzor.sync.done":"Synced","penzor.sync.doneSize":"Synced \xB7 {size}","penzor.sync.firstPending":"Waiting for the first sync","penzor.sync.failed":"Last sync failed","penzor.sync.overQuota":"Over the limit, some files not uploaded","penzor.sync.to":"Syncing to {name}","penzor.sync.toFolder":"Syncing to a local folder","penzor.sync.decideAbove":"Choose in the card above","penzor.sync.kvSchedule":"Schedule","penzor.sync.kvDirection":"Direction","penzor.sync.kvSkipped":"Not uploaded","penzor.sync.kvWhere":"In the cloud","penzor.sync.change":"Change","penzor.sync.open":"Open","penzor.sync.dir.both":"Both ways","penzor.sync.dir.push":"Upload only","penzor.sync.dir.pull":"Download only","penzor.sync.skippedN":"{n} files over {size}","penzor.sync.where":"{ledger} \u203A {vault}","penzor.sync.whereUsed":"{ledger} \u203A {vault} \xB7 {used} / {max}","penzor.sync.devicesTitle":"Devices syncing","penzor.sync.thisOne":"This computer","penzor.sync.lastWrite":"Last write {time}","penzor.sync.noDevices":"No devices are syncing yet","penzor.sync.phoneTitle":"What your phone and the web see","penzor.sync.phoneTip":"Your phone and the web read the cloud vault (the cloud side of Amadeus, {size}) directly. It always syncs, and it\u2019s a separate copy from this computer\u2019s notes vault above. To see a folder from this computer on your phone, right-click it in your notes and sync it to the cloud vault.","penzor.sync.phoneTipPlain":"Your phone and the web read the cloud vault (the cloud side of Amadeus) directly. It always syncs, and it\u2019s a separate copy from this computer\u2019s notes vault above. To see a folder from this computer on your phone, right-click it in your notes and sync it to the cloud vault.","penzor.sync.foot":"Schedule, direction and other storage (Dropbox / S3 / WebDAV) are in","penzor.sync.footLink":"Settings \u203A Sync","penzor.sync.askTitle":"There\u2019s already a notes vault in the cloud","penzor.sync.askCloud":"The cloud copy is from {device}: {files} files \xB7 {size}.","penzor.sync.askCloudNoDevice":"The cloud copy: {files} files \xB7 {size}.","penzor.sync.askLocal":"This computer has {local} files the cloud copy doesn\u2019t, and {conflicts} that differ.","penzor.sync.askMerge":"Merge both","penzor.sync.askCloudBtn":"Use the cloud copy","penzor.sync.askSkip":"Don\u2019t sync notes on this computer yet","penzor.sync.askExplain":"Merge keeps both sides; files that differ are saved again as a \u201C(conflict)\u201D copy. Use the cloud copy first moves this computer\u2019s differing files into a \u201C{backup}\u201D folder next to the vault, then downloads the cloud copy.","penzor.sync.askConfirm":"This computer\u2019s differing files move to \u201C{backup}\u201D first, then the cloud copy replaces them.","penzor.sync.askConfirmGo":"Move them and use the cloud copy","penzor.sync.backupName":"{name} backup before sync {date}","penzor.sync.quotaTitle":"Your notes vault is {size}, over the {max} limit of {ledger}","penzor.sync.quotaTitlePlain":"Your notes vault is over the {ledger} limit","penzor.sync.quotaBody":"Files that don\u2019t fit stay on this computer. Nothing is deleted, they just aren\u2019t uploaded, and everything else keeps syncing.","penzor.sync.quotaLarge":"Single files over {size} are never uploaded ({n}).","penzor.sync.quotaSee":"See what\u2019s not uploaded","su.title":"Store update","su.source.github":"GitHub source","su.source.npm":"npm source","su.source.zip":"ZIP upload","su.review":"In review","su.approved":"Approved","su.rejected":"Not approved","su.viaGithub":"GitHub release {tag}","su.viaNpm":"npm {version}","su.metaReview":"Submitted {time} \xB7 The result will arrive in your inbox","su.metaReviewNoTime":"The result will arrive in your inbox","su.metaApproved":"The Store now shows {version}","su.metaApprovedInfo":"The Store info is updated","su.metaRejected":"The Store keeps {version}","su.metaRejectedUnlisted":"Not listed yet","su.infoOnly":"Store info only","su.listSep":", ","su.openSubmission":"Open in Submissions","wc.title":"Web page","wc.pill.published":"Published","wc.pill.live":"Live","wc.pill.review":"Store review","wc.pill.listed":"In the Store","wc.pill.rejected":"Not accepted in the Store","wc.pill.gone":"Taken down","wc.justPublished":"Just published","wc.anyone":"Anyone with the link can open it","wc.open":"Open","wc.viewInPages":"View in My web pages","wc.manage":"Manage in My web pages","wc.total":"{n} published","wc.more":"{n} more","wc.unpublishTitle":"Take down {name}?","wc.unpublishBody":"The link stops working and the page's files are deleted from your cloud drive.","wc.unpublishAgain":"Click again to take down"},od={zh:sb,en:lb},De=e=>e==="en"?"en":"zh";function Se(e,t,o){let r=od[e][t]??od.zh[t]??t;return o?r.replace(/\{(\w+)\}/g,(a,i)=>i in o?String(o[i]):a):r}var Cn=e=>(t,o)=>Se(e,t,o),wt=(e,t)=>"raw"in e?e.raw:t(e.key,e.vars);var rd=`
68
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${dn(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,text:o,tokens:r,autolink:a}){let i=a?dn(o,!0):this.parser.parseInline(r),s=xc(e);if(s===null)return i;e=dn(s,a);let l='<a href="'+e+'"';return t&&(l+=' title="'+dn(t)+'"'),l+=">"+i+"</a>",l}image({href:e,title:t,text:o,tokens:r}){r&&(o=this.parser.parseInline(r,this.parser.textRenderer));let a=xc(e);if(a===null)return dn(o);e=a;let i=`<img src="${dn(e)}" alt="${dn(o)}"`;return t&&(i+=` title="${dn(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:dn(e.text)}},Pi=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},wn=class wi{options;renderer;textRenderer;constructor(t){this.options=t||fo,this.options.renderer=this.options.renderer||new na,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Pi}static parse(t,o){return new wi(o).parse(t)}static parseInline(t,o){return new wi(o).parseInline(t)}parse(t){this.renderer.parser=this;let o="";for(let r=0;r<t.length;r++){let a=t[r];if(this.options.extensions?.renderers?.[a.type]){let s=a,l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(s.type)){o+=l||"";continue}}let i=a;switch(i.type){case"space":{o+=this.renderer.space(i);break}case"hr":{o+=this.renderer.hr(i);break}case"heading":{o+=this.renderer.heading(i);break}case"code":{o+=this.renderer.code(i);break}case"table":{o+=this.renderer.table(i);break}case"blockquote":{o+=this.renderer.blockquote(i);break}case"list":{o+=this.renderer.list(i);break}case"checkbox":{o+=this.renderer.checkbox(i);break}case"html":{o+=this.renderer.html(i);break}case"def":{o+=this.renderer.def(i);break}case"paragraph":{o+=this.renderer.paragraph(i);break}case"text":{o+=this.renderer.text(i);break}default:{let s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return o}parseInline(t,o=this.renderer){this.renderer.parser=this;let r="";for(let a=0;a<t.length;a++){let i=t[a];if(this.options.extensions?.renderers?.[i.type]){let l=this.options.extensions.renderers[i.type].call({parser:this},i);if(l!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(i.type)){r+=l||"";continue}}let s=i;switch(s.type){case"escape":{r+=o.text(s);break}case"html":{r+=o.html(s);break}case"link":{r+=o.link(s);break}case"image":{r+=o.image(s);break}case"checkbox":{r+=o.checkbox(s);break}case"strong":{r+=o.strong(s);break}case"em":{r+=o.em(s);break}case"codespan":{r+=o.codespan(s);break}case"br":{r+=o.br(s);break}case"del":{r+=o.del(s);break}case"text":{r+=o.text(s);break}default:{let l='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return r}},ur=class{options;block;constructor(e){this.options=e||fo}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?kn.lex:kn.lexInline}provideParser(e=this.block){return e?wn.parse:wn.parseInline}},Ri=class{defaults=zi();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=wn;Renderer=na;TextRenderer=Pi;Lexer=kn;Tokenizer=ta;Hooks=ur;constructor(...e){this.use(...e)}walkTokens(e,t){let o=[];for(let r of e)switch(o=o.concat(t.call(this,r)),r.type){case"table":{let a=r;for(let i of a.header)o=o.concat(this.walkTokens(i.tokens,t));for(let i of a.rows)for(let s of i)o=o.concat(this.walkTokens(s.tokens,t));break}case"list":{let a=r;o=o.concat(this.walkTokens(a.items,t));break}default:{let a=r;this.defaults.extensions?.childTokens?.[a.type]?this.defaults.extensions.childTokens[a.type].forEach(i=>{let s=a[i].flat(1/0);o=o.concat(this.walkTokens(s,t))}):a.tokens&&(o=o.concat(this.walkTokens(a.tokens,t)))}}return o}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(o=>{let r={...o};if(r.async=this.defaults.async||r.async||!1,o.extensions&&(o.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let i=t.renderers[a.name];i?t.renderers[a.name]=function(...s){let l=a.renderer.apply(this,s);return l===!1&&(l=i.apply(this,s)),l}:t.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let i=t[a.level];i?i.unshift(a.tokenizer):t[a.level]=[a.tokenizer],a.start&&(a.level==="block"?t.startBlock?t.startBlock.push(a.start):t.startBlock=[a.start]:a.level==="inline"&&(t.startInline?t.startInline.push(a.start):t.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(t.childTokens[a.name]=a.childTokens)}),r.extensions=t),o.renderer){let a=this.defaults.renderer||new na(this.defaults);for(let i in o.renderer){if(!(i in a))throw new Error(`renderer '${i}' does not exist`);if(["options","parser"].includes(i))continue;let s=i,l=o.renderer[s],c=a[s];a[s]=(...d)=>{let p=l.apply(a,d);return p===!1&&(p=c.apply(a,d)),p||""}}r.renderer=a}if(o.tokenizer){let a=this.defaults.tokenizer||new ta(this.defaults);for(let i in o.tokenizer){if(!(i in a))throw new Error(`tokenizer '${i}' does not exist`);if(["options","rules","lexer"].includes(i))continue;let s=i,l=o.tokenizer[s],c=a[s];a[s]=(...d)=>{let p=l.apply(a,d);return p===!1&&(p=c.apply(a,d)),p}}r.tokenizer=a}if(o.hooks){let a=this.defaults.hooks||new ur;for(let i in o.hooks){if(!(i in a))throw new Error(`hook '${i}' does not exist`);if(["options","block"].includes(i))continue;let s=i,l=o.hooks[s],c=a[s];ur.passThroughHooks.has(i)?a[s]=d=>{if(this.defaults.async&&ur.passThroughHooksRespectAsync.has(i))return(async()=>{let u=await l.call(a,d);return c.call(a,u)})();let p=l.call(a,d);return c.call(a,p)}:a[s]=(...d)=>{if(this.defaults.async)return(async()=>{let u=await l.apply(a,d);return u===!1&&(u=await c.apply(a,d)),u})();let p=l.apply(a,d);return p===!1&&(p=c.apply(a,d)),p}}r.hooks=a}if(o.walkTokens){let a=this.defaults.walkTokens,i=o.walkTokens;r.walkTokens=function(s){let l=[];return l.push(i.call(this,s)),a&&(l=l.concat(a.call(this,s))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return kn.lex(e,t??this.defaults)}parser(e,t){return wn.parse(e,t??this.defaults)}parseMarkdown(e){return(t,o)=>{let r={...o},a={...this.defaults,...r},i=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&r.async===!1)return i(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||t===null)return i(new Error("marked(): input parameter is undefined or null"));if(typeof t!="string")return i(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=e),a.async)return(async()=>{let s=a.hooks?await a.hooks.preprocess(t):t,l=await(a.hooks?await a.hooks.provideLexer(e):e?kn.lex:kn.lexInline)(s,a),c=a.hooks?await a.hooks.processAllTokens(l):l;a.walkTokens&&await Promise.all(this.walkTokens(c,a.walkTokens));let d=await(a.hooks?await a.hooks.provideParser(e):e?wn.parse:wn.parseInline)(c,a);return a.hooks?await a.hooks.postprocess(d):d})().catch(i);try{a.hooks&&(t=a.hooks.preprocess(t));let s=(a.hooks?a.hooks.provideLexer(e):e?kn.lex:kn.lexInline)(t,a);a.hooks&&(s=a.hooks.processAllTokens(s)),a.walkTokens&&this.walkTokens(s,a.walkTokens);let l=(a.hooks?a.hooks.provideParser(e):e?wn.parse:wn.parseInline)(s,a);return a.hooks&&(l=a.hooks.postprocess(l)),l}catch(s){return i(s)}}}onError(e,t){return o=>{if(o.message+=`
69
+ Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error occurred:</p><pre>"+dn(o.message+"",!0)+"</pre>";return t?Promise.resolve(r):r}if(t)return Promise.reject(o);throw o}}},po=new Ri;function at(e,t){return po.parse(e,t)}at.options=at.setOptions=function(e){return po.setOptions(e),at.defaults=po.defaults,_c(at.defaults),at};at.getDefaults=zi;at.defaults=fo;function mb(...e){return po.use(...e),at.defaults=po.defaults,_c(at.defaults),at}at.use=mb;at.walkTokens=function(e,t){return po.walkTokens(e,t)};at.parseInline=po.parseInline;at.Parser=wn;at.parser=wn.parse;at.Renderer=na;at.TextRenderer=Pi;at.Lexer=kn;at.lexer=kn.lex;at.Tokenizer=ta;at.Hooks=ur;at.parse=at;var Mw=at.options,Lw=at.setOptions,Dw=at.walkTokens,Nw=at.parseInline;var Ow=wn.parse,Fw=kn.lex;var ca,Ee,Fc,gb,Zn,Dc,Bc,Uc,Ii,ra,gr,$c,Ni,Mi,Li,Hc,ia={},sa=[],hb=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,hr=Array.isArray;function Bn(e,t){for(var o in t)e[o]=t[o];return e}function Oi(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function go(e,t,o){var r,a,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?a=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?ca.call(arguments,2):o),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return aa(e,s,r,a,null)}function aa(e,t,o,r,a){var i={type:e,props:t,key:o,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:a??++Fc,__i:-1,__u:0};return a==null&&Ee.vnode!=null&&Ee.vnode(i),i}function I(e){return e.children}function zn(e,t){this.props=e,this.context=t}function mo(e,t){if(t==null)return e.__?mo(e.__,e.__i+1):null;for(var o;t<e.__k.length;t++)if((o=e.__k[t])!=null&&o.__e!=null)return o.__e;return typeof e.type=="function"?mo(e):null}function bb(e){if(e.__P&&e.__d){var t=e.__v,o=t.__e,r=[],a=[],i=Bn({},t);i.__v=t.__v+1,Ee.vnode&&Ee.vnode(i),Fi(e.__P,i,t,e.__n,e.__P.namespaceURI,32&t.__u?[o]:null,r,o??mo(t),!!(32&t.__u),a),i.__v=t.__v,i.__.__k[i.__i]=i,Gc(r,i,a),t.__e=t.__=null,i.__e!=o&&qc(i)}}function qc(e){if((e=e.__)!=null&&e.__c!=null)return e.__e=e.__c.base=null,e.__k.some(function(t){if(t!=null&&t.__e!=null)return e.__e=e.__c.base=t.__e}),qc(e)}function Di(e){(!e.__d&&(e.__d=!0)&&Zn.push(e)&&!la.__r++||Dc!=Ee.debounceRendering)&&((Dc=Ee.debounceRendering)||Bc)(la)}function la(){try{for(var e,t=1;Zn.length;)Zn.length>t&&Zn.sort(Uc),e=Zn.shift(),t=Zn.length,bb(e)}finally{Zn.length=la.__r=0}}function Wc(e,t,o,r,a,i,s,l,c,d,p){var u,m,f,g,h,b,v=r&&r.__k||sa,w=t.length;for(c=vb(o,t,v,c,w),u=0;u<w;u++)(f=o.__k[u])!=null&&(m=f.__i!=-1&&v[f.__i]||ia,f.__i=u,b=Fi(e,f,m,a,i,s,l,c,d,p),g=f.__e,f.ref&&m.ref!=f.ref&&(m.ref&&Bi(m.ref,null,f),p.push(f.ref,f.__c||g,f)),h==null&&g!=null&&(h=g),4&f.__u?(c=Vc(f,c,e),m.__e&&(m.__e=null)):typeof f.type=="function"&&b!==void 0?c=b:g&&(c=g.nextSibling),f.__u&=-7);return o.__e=h,c}function vb(e,t,o,r,a){var i,s,l,c,d,p=o.length,u=p,m=0;for(e.__k=new Array(a),i=0;i<a;i++)(s=t[i])!=null&&typeof s!="boolean"&&typeof s!="function"?(typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?s=e.__k[i]=aa(null,s,null,null,null):hr(s)?s=e.__k[i]=aa(I,{children:s},null,null,null):s.constructor===void 0&&s.__b>0?s=e.__k[i]=aa(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[i]=s,c=i+m,s.__=e,s.__b=e.__b+1,l=null,(d=s.__i=yb(s,o,c,u))!=-1&&(u--,(l=o[d])&&(l.__u|=2)),l==null||l.__v==null?(d==-1&&(a>p?m--:a<p&&m++),typeof s.type!="function"&&(s.__u|=4)):d!=c&&(d==c-1?m--:d==c+1?m++:(d>c?m--:m++,s.__u|=4))):e.__k[i]=null;if(u)for(i=0;i<p;i++)(l=o[i])!=null&&(2&l.__u)==0&&(l.__e==r&&(r=mo(l)),Xc(l,l));return r}function Vc(e,t,o){var r,a;if(typeof e.type=="function"){for(r=e.__k,a=0;r&&a<r.length;a++)r[a]&&(r[a].__=e,t=Vc(r[a],t,o));return t}e.__e!=t&&(t&&e.type&&!t.parentNode&&(t=mo(e)),t=o.insertBefore(e.__e,t||null));do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function br(e,t){return t=t||[],e==null||typeof e=="boolean"||(hr(e)?e.some(function(o){br(o,t)}):t.push(e)),t}function yb(e,t,o,r){var a,i,s,l=e.key,c=e.type,d=t[o],p=d!=null&&(2&d.__u)==0;if(d===null&&l==null||p&&l==d.key&&c==d.type)return o;if(r>(p?1:0)){for(a=o-1,i=o+1;a>=0||i<t.length;)if((d=t[s=a>=0?a--:i++])!=null&&(2&d.__u)==0&&l==d.key&&c==d.type)return s}return-1}function Nc(e,t,o){t[0]=="-"?e.setProperty(t,o??""):e[t]=o==null?"":typeof o!="number"||hb.test(t)?o:o+"px"}function oa(e,t,o,r,a){var i,s;e:if(t=="style")if(typeof o=="string")e.style.cssText=o;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)o&&t in o||Nc(e.style,t,"");if(o)for(t in o)r&&o[t]==r[t]||Nc(e.style,t,o[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace($c,"$1")),s=t.toLowerCase(),t=s in e||t=="onFocusOut"||t=="onFocusIn"?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=o,o?r?o[gr]=r[gr]:(o[gr]=Ni,e.addEventListener(t,i?Li:Mi,i)):e.removeEventListener(t,i?Li:Mi,i);else{if(a=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=o??"";break e}catch{}typeof o=="function"||(o==null||o===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&o==1?"":o))}}function Oc(e){return function(t){if(this.l){var o=this.l[t.type+e];if(t[ra]==null)t[ra]=Ni++;else if(t[ra]<o[gr])return;return o(Ee.event?Ee.event(t):t)}}}function Fi(e,t,o,r,a,i,s,l,c,d){var p,u,m,f,g,h,b,v,w,k,x,T,F,V,D,j,A=t.type;if(t.constructor!==void 0)return null;128&o.__u&&(c=!!(32&o.__u),i=[l=t.__e=o.__e]),(p=Ee.__b)&&p(t);e:if(typeof A=="function"){u=s.length;try{if(w=t.props,k=A.prototype&&A.prototype.render,x=(p=A.contextType)&&r[p.__c],T=p?x?x.props.value:p.__:r,o.__c?v=(m=t.__c=o.__c).__=m.__E:(k?t.__c=m=new A(w,T):(t.__c=m=new zn(w,T),m.constructor=A,m.render=kb),x&&x.sub(m),m.state||(m.state={}),m.__n=r,f=m.__d=!0,m.__h=[],m._sb=[]),k&&m.__s==null&&(m.__s=m.state),k&&A.getDerivedStateFromProps!=null&&(m.__s==m.state&&(m.__s=Bn({},m.__s)),Bn(m.__s,A.getDerivedStateFromProps(w,m.__s))),g=m.props,h=m.state,m.__v=t,f)k&&A.getDerivedStateFromProps==null&&m.componentWillMount!=null&&m.componentWillMount(),k&&m.componentDidMount!=null&&m.__h.push(m.componentDidMount);else{if(k&&A.getDerivedStateFromProps==null&&w!==g&&m.componentWillReceiveProps!=null&&m.componentWillReceiveProps(w,T),t.__v==o.__v||!m.__e&&m.shouldComponentUpdate!=null&&m.shouldComponentUpdate(w,m.__s,T)===!1){t.__v!=o.__v&&(m.props=w,m.state=m.__s,m.__d=!1),t.__e=o.__e,t.__k=o.__k,t.__k.some(function(L){L&&(L.__=t)}),sa.push.apply(m.__h,m._sb),m._sb=[],m.__h.length&&s.push(m),l=mo(o);break e}m.componentWillUpdate!=null&&m.componentWillUpdate(w,m.__s,T),k&&m.componentDidUpdate!=null&&m.__h.push(function(){m.componentDidUpdate(g,h,b)})}if(m.context=T,m.props=w,m.__P=e,m.__e=!1,F=Ee.__r,V=0,k)m.state=m.__s,m.__d=!1,F&&F(t),p=m.render(m.props,m.state,m.context),sa.push.apply(m.__h,m._sb),m._sb=[];else do m.__d=!1,F&&F(t),p=m.render(m.props,m.state,m.context),m.state=m.__s;while(m.__d&&++V<25);m.state=m.__s,m.getChildContext!=null&&(r=Bn(Bn({},r),m.getChildContext())),k&&!f&&m.getSnapshotBeforeUpdate!=null&&(b=m.getSnapshotBeforeUpdate(g,h)),D=p!=null&&p.type===I&&p.key==null?Jc(p.props.children):p,l=Wc(e,hr(D)?D:[D],t,o,r,a,i,s,l,c,d),m.base=t.__e,t.__u&=-161,m.__h.length&&s.push(m),v&&(m.__E=m.__=null)}catch(L){if(s.length=u,t.__v=null,c||i!=null){if(L.then){for(t.__u|=c?160:128;l&&l.nodeType==8&&l.nextSibling;)l=l.nextSibling;i!=null&&(i[i.indexOf(l)]=null),t.__e=l}else if(i!=null)for(j=i.length;j--;)Oi(i[j])}else t.__e=o.__e;t.__k==null&&(t.__k=o.__k||[]),L.then||jc(t),Ee.__e(L,t,o)}}else i==null&&t.__v==o.__v?(t.__k=o.__k,t.__e=o.__e):l=t.__e=xb(o.__e,t,o,r,a,i,s,c,d);return(p=Ee.diffed)&&p(t),128&t.__u?void 0:l}function jc(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(jc))}function Gc(e,t,o){for(var r=0;r<o.length;r++)Bi(o[r],o[++r],o[++r]);Ee.__c&&Ee.__c(t,e),e.some(function(a){try{e=a.__h,a.__h=[],e.some(function(i){i.call(a)})}catch(i){Ee.__e(i,a.__v)}})}function Jc(e){return typeof e!="object"||e==null||e.__b>0?e:hr(e)?e.map(Jc):e.constructor!==void 0?null:Bn({},e)}function xb(e,t,o,r,a,i,s,l,c){var d,p,u,m,f,g,h,b=o.props||ia,v=t.props,w=t.type;if(w=="svg"?a="http://www.w3.org/2000/svg":w=="math"?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),i!=null){for(d=0;d<i.length;d++)if((f=i[d])&&"setAttribute"in f==!!w&&(w?f.localName==w:f.nodeType==3)){e=f,i[d]=null;break}}if(e==null){if(w==null)return document.createTextNode(v);e=document.createElementNS(a,w,v.is&&v),l&&(Ee.__m&&Ee.__m(t,i),l=!1),i=null}if(w==null)b===v||l&&e.data==v||(e.data=v);else{if(i=w=="textarea"&&v.defaultValue!=null?null:i&&ca.call(e.childNodes),!l&&i!=null)for(b={},d=0;d<e.attributes.length;d++)b[(f=e.attributes[d]).name]=f.value;for(d in b)f=b[d],d=="dangerouslySetInnerHTML"?u=f:d=="children"||d in v||d=="value"&&"defaultValue"in v||d=="checked"&&"defaultChecked"in v||oa(e,d,null,f,a);for(d in v)f=v[d],d=="children"?m=f:d=="dangerouslySetInnerHTML"?p=f:d=="value"?g=f:d=="checked"?h=f:l&&typeof f!="function"||b[d]===f||oa(e,d,f,b[d],a);if(p)l||u&&(p.__html==u.__html||p.__html==e.innerHTML)||(e.innerHTML=p.__html),t.__k=[];else if(u&&(e.innerHTML=""),Wc(t.type=="template"?e.content:e,hr(m)?m:[m],t,o,r,w=="foreignObject"?"http://www.w3.org/1999/xhtml":a,i,s,i?i[0]:o.__k&&mo(o,0),l,c),i!=null)for(d=i.length;d--;)Oi(i[d]);l&&w!="textarea"||(d="value",w=="progress"&&g==null?e.removeAttribute("value"):g!=null&&(g!==e[d]||w=="progress"&&!g||w=="option"&&g!=b[d])&&oa(e,d,g,b[d],a),d="checked",h!=null&&h!=e[d]&&oa(e,d,h,b[d],a))}return e}function Bi(e,t,o){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(a){Ee.__e(a,o)}}function Xc(e,t,o){var r,a;if(Ee.unmount&&Ee.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||Bi(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){Ee.__e(i,t)}r.base=r.__P=r.__n=null}if(r=e.__k)for(a=0;a<r.length;a++)r[a]&&Xc(r[a],t,o||typeof e.type!="function");o||Oi(e.__e),e.__c=e.__=e.__e=void 0}function kb(e,t,o){return this.constructor(e,o)}function Fe(e,t,o){var r,a,i,s;t==document&&(t=document.documentElement),Ee.__&&Ee.__(e,t),a=(r=typeof o=="function")?null:o&&o.__k||t.__k,i=[],s=[],Fi(t,e=(!r&&o||t).__k=go(I,null,[e]),a||ia,ia,t.namespaceURI,!r&&o?[o]:a?null:t.firstChild?ca.call(t.childNodes):null,i,!r&&o?o:a?a.__e:t.firstChild,r,s),Gc(i,e,s),e.props.children=null}function da(e){function t(o){var r,a;return this.getChildContext||(r=new Set,(a={})[t.__c]=this,this.getChildContext=function(){return a},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(i){this.props.value!=i.value&&r.forEach(function(s){s.__e=!0,Di(s)})},this.sub=function(i){r.add(i);var s=i.componentWillUnmount;i.componentWillUnmount=function(){r&&r.delete(i),s&&s.call(i)}}),o.children}return t.__c="__cC"+Hc++,t.__=e,t.Provider=t.__l=(t.Consumer=function(o,r){return o.children(r)}).contextType=t,t}ca=sa.slice,Ee={__e:function(e,t,o,r){for(var a,i,s;t=t.__;)if((a=t.__c)&&!a.__)try{if((i=a.constructor)&&i.getDerivedStateFromError!=null&&(a.setState(i.getDerivedStateFromError(e)),s=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(e,r||{}),s=a.__d),s)return a.__E=a}catch(l){e=l}throw e}},Fc=0,gb=function(e){return e!=null&&e.constructor===void 0},zn.prototype.setState=function(e,t){var o;o=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Bn({},this.state),typeof e=="function"&&(e=e(Bn({},o),this.props)),e&&Bn(o,e),e!=null&&this.__v&&(t&&this._sb.push(t),Di(this))},zn.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Di(this))},zn.prototype.render=I,Zn=[],Bc=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Uc=function(e,t){return e.__v.__b-t.__v.__b},la.__r=0,Ii=Math.random().toString(8),ra="__d"+Ii,gr="__a"+Ii,$c=/(PointerCapture)$|Capture$/i,Ni=0,Mi=Oc(!1),Li=Oc(!0),Hc=0;var Qn,dt,Ui,Kc,vr=0,rd=[],At=Ee,Yc=At.__b,Zc=At.__r,Qc=At.diffed,ed=At.__c,td=At.unmount,nd=At.__;function $o(e,t){At.__h&&At.__h(dt,e,vr||t),vr=0;var o=dt.__H||(dt.__H={__:[],__h:[]});return e>=o.__.length&&o.__.push({}),o.__[e]}function S(e){return vr=1,ad(id,e)}function ad(e,t,o){var r=$o(Qn++,2);if(r.t=e,!r.__c&&(r.__=[o?o(t):id(void 0,t),function(l){var c=r.__N?r.__N[0]:r.__[0],d=r.t(c,l);c!==d&&(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=dt,!dt.__f)){var a=function(l,c,d){if(!r.__c.__H)return!0;var p=!1,u=r.__c.props!==l;if(r.__c.__H.__.some(function(f){if(f.__N){p=!0;var g=f.__[0];f.__=f.__N,f.__N=void 0,g!==f.__[0]&&(u=!0)}}),i){var m=i.call(this,l,c,d);return p?m||u:m}return!p||u};dt.__f=!0;var i=dt.shouldComponentUpdate,s=dt.componentWillUpdate;dt.componentWillUpdate=function(l,c,d){if(this.__e){var p=i;i=void 0,a(l,c,d),i=p}s&&s.call(this,l,c,d)},dt.shouldComponentUpdate=a}return r.__N||r.__}function $(e,t){var o=$o(Qn++,3);!At.__s&&qi(o.__H,t)&&(o.__=e,o.u=t,dt.__H.__h.push(o))}function eo(e,t){var o=$o(Qn++,4);!At.__s&&qi(o.__H,t)&&(o.__=e,o.u=t,dt.__h.push(o))}function K(e){return vr=5,Zt(function(){return{current:e}},[])}function Zt(e,t){var o=$o(Qn++,7);return qi(o.__H,t)&&(o.__=e(),o.__H=t,o.__h=e),o.__}function it(e,t){return vr=8,Zt(function(){return e},t)}function Hi(e){var t=dt.context[e.__c],o=$o(Qn++,9);return o.c=e,t?(o.__==null&&(o.__=!0,t.sub(dt)),t.props.value):e.__}function Ln(){var e=$o(Qn++,11);if(!e.__){for(var t=dt.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var o=t.__m||(t.__m=[0,0]);e.__="P"+o[0]+"-"+o[1]++}return e.__}function wb(){for(var e;e=rd.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(ua),t.__h.some($i),t.__h=[]}catch(o){t.__h=[],At.__e(o,e.__v)}}}At.__b=function(e){dt=null,Yc&&Yc(e)},At.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),nd&&nd(e,t)},At.__r=function(e){Zc&&Zc(e),Qn=0;var t=(dt=e.__c).__H;t&&(Ui===dt?(t.__h=[],dt.__h=[],t.__.some(function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):(t.__h.some(ua),t.__h.some($i),t.__h=[],Qn=0)),Ui=dt},At.diffed=function(e){Qc&&Qc(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(rd.push(t)!==1&&Kc===At.requestAnimationFrame||((Kc=At.requestAnimationFrame)||zb)(wb)),t.__H.__.some(function(o){o.u&&(o.__H=o.u,o.u=void 0)})),Ui=dt=null},At.__c=function(e,t){t.some(function(o){try{o.__h.some(ua),o.__h=o.__h.filter(function(r){return!r.__||$i(r)})}catch(r){t.some(function(a){a.__h&&(a.__h=[])}),t=[],At.__e(r,o.__v)}}),ed&&ed(e,t)},At.unmount=function(e){td&&td(e);var t,o=e.__c;o&&o.__H&&(o.__H.__.some(function(r){try{ua(r)}catch(a){t=a}}),o.__H=void 0,t&&At.__e(t,o.__v))};var od=typeof requestAnimationFrame=="function";function zb(e){var t,o=function(){clearTimeout(r),od&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(o,35);od&&(t=requestAnimationFrame(o))}function ua(e){var t=dt,o=e.__c;typeof o=="function"&&(e.__c=void 0,o()),dt=t}function $i(e){var t=dt;e.__c=e.__(),dt=t}function qi(e,t){return!e||e.length!==t.length||t.some(function(o,r){return o!==e[r]})}function id(e,t){return typeof t=="function"?t(e):t}var Wi=null;function sd(e){Wi=e}function un(e){return Wi&&e&&typeof window<"u"&&e===window.tangu?{...e,...Wi}:e}var Sn=e=>!!(e?.unitPage&&e.unitPublicEntry||e?.mobile&&e.extendMobile),pn=e=>!!e&&(!e.unitPage||!!e.unitPublicEntry),Q=()=>un(typeof window<"u"?window.tangu:void 0)||{};function pa(e){let t=typeof e?.status=="number"?e.status:0;if(t>=200&&t<300)return{ok:!0,status:t,data:e?.json??null};let o=e?.json&&typeof e.json=="object"?e.json:null,r=typeof o?.error=="string"?o.error:typeof o?.code=="string"?o.code:null,a=typeof o?.detail=="string"?o.detail:typeof o?.message=="string"?o.message:null;return{ok:!1,status:t,code:r,detail:a,transport:typeof e?.error=="string"?e.error:null}}var Vi=e=>({ok:!1,status:0,code:null,detail:null,transport:e});async function H(e,t={}){let o=Q().cloudFetch;if(!o)return Vi("no_bridge");try{return pa(await o({path:e,...t}))}catch(r){return Vi(String(r?.message||r))}}async function yr(e,t){if(!e)return t();try{return pa(await e())}catch(o){return Vi(String(o?.message||o))}}var Un=e=>e.status===401&&(e.transport==="not_signed_in"||e.code===null&&e.detail===null&&e.transport===null);function St(e){return String(e?.message??e??"").replace(/^Error invoking remote method '[^']*':\s*/,"").replace(/^(?:[A-Za-z]*Error):\s*/,"").trim()}async function Cn(e,t,o,r){let a=Q().cloudInvoke;if(!a)return!1;let i=e==="membership"&&t?t:void 0,s=i?o:void 0,l=r?[e,i,s,r]:i?s?[e,i,s]:[e,i]:[e];try{return!!(await a("auth:openPayCenter",...l))?.ok}catch{return!1}}async function ld(){let e=Q().cloudInvoke;if(!e)return!1;try{return!!(await e("auth:resumeAutoRenew"))?.ok}catch{return!1}}async function $n(e){let t=Q().openAccountCenter;if(!t)return!1;try{return!!(await t(e)).ok}catch{return!1}}var Sb=0;function n(e,t,o,r,a,i){t||(t={});var s,l,c=t;if("ref"in c)for(l in c={},t)l=="ref"?s=t[l]:c[l]=t[l];var d={type:e,props:c,key:o,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Sb,__i:-1,__u:0,__source:a,__self:i};if(typeof e=="function"&&(s=e.defaultProps))for(l in s)c[l]===void 0&&(c[l]=s[l]);return Ee.vnode&&Ee.vnode(d),d}var Cb={user:"M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z M4 20c.8-3.5 4-5.5 8-5.5s7.2 2 8 5.5",backpack:"M9 5V3h6v2 M6 8a6 6 0 0 1 12 0v12H6V8Z M9 13h6v5H9z M3 11h3v7H3z M18 11h3v7h-3 M10 8h4",gauge:"M4 16a8 8 0 1 1 16 0 M12 16l4-5 M12 16h.01",bug:"M8.5 9.5a3.5 3.5 0 0 1 7 0V15a3.5 3.5 0 0 1-7 0V9.5Z M12 10v8 M4 13h4.5 M15.5 13H20 M5 8.5l3.5 2 M19 8.5l-3.5 2 M5 18.5l3.5-2 M19 18.5l-3.5-2 M10 6L9 4 M14 6l1-2",pointer:"M5 4l13 6.5-5.5 1.5L10.5 18 5 4Z",shield:"M12 3l7 3v5c0 4.5-3 8.2-7 10-4-1.8-7-5.5-7-10V6l7-3Z",chart:"M4 20V10 M10 20V4 M16 20v-7 M21 20H3",message:"M5 4h14a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-7l-5 4v-4H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1Z",card:"M4 6h16a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1Z M3 10h18 M7 15h4",coins:"M9 11a5 5 0 1 0 0-10 5 5 0 0 0 0 10Z M15.5 9.2A5 5 0 1 1 9.8 16",clock:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z M12 7v5l3 2",gift:"M4 11h16v9H4z M3 7h18v4H3z M12 7v13 M12 7c-1.5-3-5-3-5-1s3 1 5 1c2 0 5 1 5-1s-3.5-2-5 1",key:"M8 15a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z M11 11h10 M17 11v3 M20 11v2",laptop:"M5 5h14v10H5z M3 19h18",alert:"M12 4l9 16H3l9-16Z M12 10v4 M12 17h.01",external:"M14 4h6v6 M20 4l-9 9 M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5",copy:"M9 9h11v11H9z M5 15H4V4h11v1",check:"M5 12.5l4.5 4.5L19 7.5",checkin:"M5 5h14v15H5z M5 10h14 M9 3v4 M15 3v4 M9 15l2 2 4-4",tasks:"M4 6l2 2 3-3 M4 16l2 2 3-3 M12 7h9 M12 17h9",gamepad:"M6 8h12a4 4 0 0 1 4 4v3a3 3 0 0 1-5.4 1.8L15 15H9l-1.6 1.8A3 3 0 0 1 2 15v-3a4 4 0 0 1 4-4Z M7 11v3 M5.5 12.5h3 M15.5 12h.01 M18 13.5h.01",megaphone:"M4 10v4h3l9 4V6l-9 4H4Z M19 10a3 3 0 0 1 0 4 M8 14.5V19h3v-3",play:"M7 5l12 7-12 7V5Z",chevron:"M9 6l6 6-6 6",back:"M15 6l-6 6 6 6",arrowLeft:"M19 12H5M11 6l-6 6 6 6",pencil:"M4 20h4L19 9l-4-4L4 16v4Z M13.5 6.5l4 4",plus:"M12 5v14 M5 12h14",refresh:"M20 11a8 8 0 0 0-14.3-4.9L4 8 M4 4v4h4 M4 13a8 8 0 0 0 14.3 4.9L20 16 M20 20v-4h-4",phone:"M8 3h8a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1Z M11 18h2",mail:"M4 6h16v12H4z M4 7l8 6 8-6",image:"M4 5h16v14H4z M4 16l5-5 4 4 3-3 4 4 M15.5 9.5h.01",x:"M6 6l12 12 M18 6L6 18",logout:"M15 4h4v16h-4 M10 8l-4 4 4 4 M6 12h10",globe:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z M3 12h18 M12 3c2.5 2.6 3.8 5.6 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.6-3.8-9S9.5 5.6 12 3Z",lock:"M6 11h12v9H6z M8.5 11V8a3.5 3.5 0 0 1 7 0v3",palette:"M12 3a9 9 0 0 0 0 18c1.2 0 2-.8 2-1.9 0-.5-.2-.9-.5-1.3-.3-.4-.5-.8-.5-1.3 0-1 .8-1.8 1.8-1.8H17a4 4 0 0 0 4-4c0-4.3-4-7.7-9-7.7Z M7.5 12.5h.01 M9 8.5h.01 M14 7.5h.01",calendar:"M5 5h14v15H5z M5 10h14 M9 3v4 M15 3v4",link:"M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1 M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1",flame:"M12 21a6 6 0 0 0 6-6c0-2.5-1.4-4.4-3-6-.3 1.5-1 2.5-2 3 .3-3-1-6-3.5-8 .2 3-1 4.8-2.2 6.3C6.4 11.5 6 13.2 6 15a6 6 0 0 0 6 6Z",trophy:"M8 4h8v6a4 4 0 0 1-8 0V4Z M8 6H5v1a3 3 0 0 0 3 3 M16 6h3v1a3 3 0 0 1-3 3 M12 14v4 M8.5 20h7",sprout:"M12 20v-8 M12 12c0-3-2-5-6-5 0 3.5 2 5 6 5Z M12 14c0-3 2-5 6-5 0 3.5-2 5-6 5Z",eye:"M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12Z M12 14.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z",download:"M12 4v11 M7.5 11l4.5 4.5 4.5-4.5 M5 20h14",upload:"M12 16V5 M7.5 9.5 12 5l4.5 4.5 M5 20h14",up:"M12 19V5 M6 11l6-6 6 6",down:"M12 5v14 M6 13l6 6 6-6",sparkles:"M12 4l1.8 4.7 4.7 1.8-4.7 1.8L12 17l-1.8-4.7-4.7-1.8 4.7-1.8L12 4Z M18.5 15.5v4 M16.5 17.5h4",bot:"M6 9h12v10H6z M12 9V5 M12 4.5h.01 M9.5 13.5h.01 M14.5 13.5h.01 M3.5 13v3 M20.5 13v3",box:"M12 3l8 4.5v9L12 21l-8-4.5v-9L12 3Z M4 7.5l8 4.5 8-4.5 M12 12v9",grid:"M4 4h7v7H4z M13 4h7v7h-7z M4 13h7v7H4z M13 13h7v7h-7z",note:"M6 3h9l4 4v14H6z M15 3v4h4 M9 12h6 M9 16h4",puzzle:"M9 3H4v6a3 3 0 1 0 0 6v5h6a3 3 0 1 1 6 0h4v-6a3 3 0 1 0 0-6V3h-5a3 3 0 1 1-6 0Z",home:"M4 11l8-7 8 7 M6 9.5V20h4v-5h4v5h4V9.5",info:"M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z M12 11v5 M12 8h.01",ticket:"M3 8a2 2 0 0 0 0 4v0a2 2 0 0 1 0 4v2h18v-2a2 2 0 0 1 0-4 2 2 0 0 0 0-4V6H3v2Z M14 6v12",at:"M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z M16 12v1.5a2.5 2.5 0 0 0 5 0V12a9 9 0 1 0-3.6 7.2",heart:"M19 14c1.5-1.5 3-3.2 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.8 0-3 .5-4.5 2-1.5-1.5-2.7-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4 3 5.5l7 7 7-7Z",star:"M12 3l2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3l-5.6 2.9 1.1-6.2L3 9.6l6.2-.9L12 3Z",rocket:"M4.5 16.5c-1.5 1.3-2 5-2 5s3.7-.5 5-2c.7-.8.7-2.1-.1-2.9a2.2 2.2 0 0 0-2.9-.1Z M12 15l-3-3a22 22 0 0 1 2-4A12.9 12.9 0 0 1 22 2c0 2.7-.8 7.5-6 11a22.4 22.4 0 0 1-4 2Z M9 12H4s.6-3 2-4c1.6-1.1 5 0 5 0 M12 15v5s3-.6 4-2c1.1-1.6 0-5 0-5",store:"M4 4h16l1 5H3l1-5Z M3 9a3 3 0 0 0 6 0 3 3 0 0 0 6 0 3 3 0 0 0 6 0 M5 11.5V20h14v-8.5 M10 20v-5h4v5"};function B({name:e,size:t=14,class:o}){return n("svg",{class:o,width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true",focusable:"false",children:n("path",{d:Cb[e]})})}function Qt({size:e=12}){return n("svg",{class:"spin",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","aria-hidden":"true",focusable:"false",children:n("path",{d:"M21 12a9 9 0 1 1-6.2-8.56"})})}var _b={"events.title":"\u6D3B\u52A8","events.back":"\u8FD4\u56DE\u5E94\u7528","events.count":"{n} \u573A\u8FDB\u884C\u4E2D","events.group.active":"\u8FDB\u884C\u4E2D","events.group.notice":"\u516C\u544A","events.group.upcoming":"\u9884\u544A","events.ended":"\u5DF2\u7ED3\u675F\u7684\u6D3B\u52A8","events.endedEmpty":"\u8FD8\u6CA1\u6709\u7ED3\u675F\u7684\u6D3B\u52A8","events.list":"\u5168\u90E8\u6D3B\u52A8","events.kind.checkin":"\u7B7E\u5230","events.kind.tasks":"\u4EFB\u52A1","events.kind.game":"\u5C0F\u6E38\u620F","events.kind.notice":"\u516C\u544A","events.left.days":"\u5269 {n} \u5929","events.left.hours":"\u5269 {n} \u5C0F\u65F6","events.left.long":"\u5269\u4F59 {d} \u5929 {h} \u5C0F\u65F6","events.left.longHours":"\u5269\u4F59 {h} \u5C0F\u65F6","events.time.start":"{date} \u5F00\u59CB","events.time.claim":"\u6D3B\u52A8\u5DF2\u7ED3\u675F\uFF0C{date} \u524D\u9886\u53D6","events.time.claimShort":"{date} \u524D\u9886\u53D6","events.time.ended":"\u5DF2\u4E8E {date} \u7ED3\u675F","events.time.published":"{date} \u53D1\u5E03","events.rewards":"\u6D3B\u52A8\u5956\u52B1","events.checkin.signed":"\u5DF2\u7B7E {n}/{total}","events.checkin.today":"\u4ECA\u5929","events.checkin.day":"\u7B2C {n} \u5929","events.checkin.do":"\u4ECA\u65E5\u7B7E\u5230","events.checkin.done":"\u4ECA\u65E5\u5DF2\u7B7E","events.checkin.finished":"\u5DF2\u5168\u90E8\u7B7E\u5B8C","events.tasks.progress":"\u4EFB\u52A1\u8FDB\u5EA6","events.tasks.claim":"\u9886\u53D6","events.tasks.claimAll":"\u5168\u90E8\u9886\u53D6 ({n})","events.tasks.go":"\u53BB\u5B8C\u6210","events.tasks.closed":"\u6D3B\u52A8\u5DF2\u7ED3\u675F","events.game.board":"\u6392\u884C\u699C","events.game.me":"\u6211","events.game.anon":"\u533F\u540D\u73A9\u5BB6","events.game.enter":"\u8FDB\u5165\u6E38\u620F","events.game.install":"\u53BB\u5546\u5E97\u5B89\u88C5","events.game.empty":"\u8FD8\u6CA1\u6709\u4EBA\u4E0A\u699C","events.notice.more":"\u67E5\u770B\u8BE6\u60C5","events.toast.checkin":"\u5DF2\u7B7E\u5230\uFF0C{reward}","events.toast.claimed":"\u5DF2\u9886\u53D6 {reward}","events.toast.partial":"\u9886\u5230 {n} \u9879\uFF0C{m} \u9879\u6CA1\u9886\u5230\uFF0C\u7A0D\u540E\u518D\u8BD5","events.toast.backpack":"\u67E5\u770B\u80CC\u5305","events.err.failed":"\u6CA1\u9886\u5230\uFF0C\u7F51\u7EDC\u6062\u590D\u540E\u518D\u8BD5\u4E00\u6B21","events.err.notLive":"\u8FD9\u573A\u6D3B\u52A8\u5DF2\u7ECF\u7ED3\u675F","events.err.completed":"\u5DF2\u7ECF\u5168\u90E8\u7B7E\u5B8C","events.err.grantFailed":"\u5956\u52B1\u6CA1\u53D1\u51FA\u53BB\uFF0C\u5DF2\u767B\u8BB0\u8865\u53D1\uFF0C\u4E0D\u7528\u91CD\u590D\u9886\u53D6","events.login.title":"\u767B\u5F55\u540E\u53C2\u4E0E\u6D3B\u52A8","events.login.do":"\u767B\u5F55 Forsion","events.empty":"\u6682\u65F6\u6CA1\u6709\u8FDB\u884C\u4E2D\u7684\u6D3B\u52A8","events.error":"\u6D3B\u52A8\u6CA1\u6709\u52A0\u8F7D\u51FA\u6765","events.retry":"\u91CD\u8BD5","events.dot":"\u6709\u5956\u52B1\u53EF\u9886\u6216\u65B0\u6D3B\u52A8","penzor.rules.default":"\u4E91\u7AEF\u9ED8\u8BA4","penzor.rules.off":"\u4E0D\u540C\u6B65","penzor.rules.device":"\u8BBE\u5907","penzor.rules.run":"\u7ACB\u5373\u540C\u6B65","penzor.rules.twoWay":"\u53CC\u5411","penzor.rules.defaultForWeb":"\u9ED8\u8BA4\u76EE\u5F55\u4F9B\u7F51\u9875\u7AEF\u4F7F\u7528","penzor.rules.tab.rules":"\u540C\u6B65\u89C4\u5219","penzor.rules.tab.active":"\u6B63\u5728\u4F20\u8F93","penzor.rules.tab.history":"\u5386\u53F2\u8BB0\u5F55","penzor.rules.enable":"\u5F00\u542F\u5185\u5BB9\u540C\u6B65","penzor.rules.add":"\u6DFB\u52A0\u89C4\u5219","penzor.rules.source":"\u672C\u673A\u6765\u6E90","penzor.rules.destination":"\u4E91\u7AEF\u76EE\u6807","penzor.rules.direction":"\u65B9\u5411","penzor.rules.remove":"\u5220\u9664\u89C4\u5219","penzor.rules.inherit":"\u7A7A\u8DEF\u5F84\u4EE3\u8868\u6574\u4E2A Forsion\u3002\u5B50\u9879\u7EE7\u627F\u4E0A\u7EA7\u89C4\u5219\uFF0C\u6700\u5177\u4F53\u7684\u8DEF\u5F84\u4F18\u5148\uFF1B\u6CA1\u6709\u5339\u914D\u89C4\u5219\u7684\u5185\u5BB9\u4E0D\u540C\u6B65\u3002","penzor.rules.namespace":"\u9ED8\u8BA4\uFF1A\u4E91\u7AEF /Forsion/\uFF1B\u8BBE\u5907\u76EE\u5F55\uFF1A\u4E91\u7AEF /Forsion-\u8BBE\u5907ID/\u3002","penzor.rules.human":"human \u72EC\u7ACB\u9009\u62E9\u8303\u56F4\uFF1B\u9ED8\u8BA4\u65E5\u5386\u4F7F\u7528 human/CALENDAR.db\u3002\u6539\u5230\u8BBE\u5907\u76EE\u5F55\u540E\uFF0C\u7F51\u9875\u9ED8\u8BA4\u65E5\u5386\u4E0D\u8DDF\u968F\u5207\u6362\u3002","penzor.rules.preview":"\u9884\u89C8\u53D8\u66F4","penzor.rules.previewTitle":"\u786E\u8BA4\u672C\u6B21\u540C\u6B65\u8303\u56F4","penzor.rules.previewCounts":"\u4E0A\u4F20 {up} \u9879\uFF0C\u4E0B\u8F7D {down} \u9879\uFF0C{conflicts} \u9879\u5DF2\u6709\u4E0D\u540C\u5185\u5BB9\u9700\u5408\u5E76\u6216\u4FDD\u7559\u7248\u672C\u3002","penzor.rules.retain":"\u65E7\u76EE\u6807\u4E2D\u7684\u5185\u5BB9\u4FDD\u7559\u3002\u5173\u95ED\u540C\u6B65\u4E0D\u4F1A\u5220\u9664\u672C\u673A\u6216\u4E91\u7AEF\u6587\u4EF6\uFF1B\u6E90\u6587\u4EF6\u53D8\u5316\u540E\u9700\u91CD\u65B0\u9884\u89C8\u3002","penzor.rules.back":"\u8FD4\u56DE\u4FEE\u6539","penzor.rules.apply":"\u786E\u8BA4\u5E76\u5F00\u59CB","penzor.rules.pause":"\u6682\u505C","penzor.rules.resume":"\u7EE7\u7EED","penzor.rules.noActive":"\u5F53\u524D\u6CA1\u6709\u6587\u4EF6\u6B63\u5728\u4F20\u8F93\u3002","penzor.rules.manual":"\u624B\u52A8\u4E0A\u4F20\u4E0E\u4E0B\u8F7D","penzor.rules.historyNote":"\u4FDD\u7559\u6700\u8FD1 200 \u9879\u3002\u51B2\u7A81\u65F6\u4FDD\u7559\u4E24\u4E2A\u7248\u672C\uFF0C\u5176\u4F59\u5185\u5BB9\u7EE7\u7EED\u540C\u6B65\u3002","penzor.rules.retry":"\u91CD\u8BD5\u5931\u8D25\u9879","penzor.rules.noHistory":"\u8FD8\u6CA1\u6709\u540C\u6B65\u8BB0\u5F55\u3002","penzor.rules.details":"\u67E5\u770B\u4F20\u8F93","penzor.rules.plugins":"\u63D2\u4EF6\u6570\u636E\u4ECD\u7531\u5404\u63D2\u4EF6\u7684\u6570\u636E\u540C\u6B65\u7BA1\u7406\u3002","penzor.rules.turnOff":"\u5173\u95ED\u63D2\u4EF6\u6570\u636E\u540C\u6B65","penzor.rules.turnOn":"\u5F00\u542F\u63D2\u4EF6\u6570\u636E\u540C\u6B65","penzor.rules.phase.idle":"\u7B49\u5F85\u4E0B\u6B21\u540C\u6B65","penzor.rules.phase.scanning":"\u6B63\u5728\u6838\u5BF9\u6587\u4EF6","penzor.rules.phase.syncing":"\u6B63\u5728\u540C\u6B65","penzor.rules.phase.paused":"\u5DF2\u6682\u505C","penzor.rules.state.queued":"\u7B49\u5F85\u4E2D","penzor.rules.state.active":"\u4F20\u8F93\u4E2D","penzor.rules.state.done":"\u5DF2\u5B8C\u6210","penzor.rules.state.failed":"\u5931\u8D25","penzor.rules.state.paused":"\u5DF2\u6682\u505C","penzor.rules.state.conflict":"\u5DF2\u4FDD\u7559\u51B2\u7A81\u7248\u672C","penzor.tree.synced":"\u540C\u6B65\u7684\u5185\u5BB9","penzor.tree.thisBackup":"\u8FD9\u53F0\u7535\u8111 \xB7 \u53EA\u5907\u4EFD","penzor.tree.byApp":"\u6309\u5E94\u7528\u770B","penzor.tree.legacy":"\u65E7\u7248\u667A\u5E93\u540C\u6B65","penzor.quota.sourceLimit":"\u8FD9\u4E00\u7C7B\u8FD8\u6709\u5355\u72EC\u4E0A\u9650 {max}\uFF0C\u5DF2\u7528 {used}","penzor.ov.mine":"\u4F60\u653E\u7684","penzor.ov.synced":"\u540C\u6B65\u4E0A\u6765\u7684","penzor.ov.stale":"\u4E0D\u518D\u66F4\u65B0","penzor.ov.uploads":"\u4F60\u81EA\u5DF1\u4E0A\u4F20\u548C\u6574\u7406\u7684\u6587\u4EF6\uFF0C\u53EF\u4EE5\u968F\u4FBF\u6539","penzor.ov.all":"\u7B14\u8BB0\u3001Agents\u3001\u6211\u7684\u8D44\u6599\u3001\u63D2\u4EF6","penzor.ov.allLast":"\u7B14\u8BB0\u3001Agents\u3001\u6211\u7684\u8D44\u6599\u3001\u63D2\u4EF6 \xB7 \u4E0A\u6B21\u540C\u6B65 {time}","penzor.ov.self":"\u53EA\u6709\u8FD9\u53F0\u7535\u8111\u7528\u7684\u90A3\u4EFD","penzor.ov.device":"\u53EA\u5728\u8FD9\u53F0\u7535\u8111\u548C\u5B83\u4E4B\u95F4\u5171\u7528","penzor.ov.agents":"Agent \u7684\u8BBE\u7F6E\u3001\u8BB0\u5FC6\u548C\u65E5\u5FD7","penzor.ov.profile":"\u4F60\u7684\u8D44\u6599\u548C\u9ED8\u8BA4\u65E5\u5386","penzor.ov.sync":"\u7535\u8111\u540C\u6B65\u4E0A\u6765\u7684\u667A\u5E93","penzor.ov.legacy":"\u8FD9\u53F0\u7535\u8111\u5F00\u4E86\u65B0\u540C\u6B65\u540E\u4E0D\u518D\u5199\u5165\uFF0C\u7559\u7740\u4E0D\u5220","penzor.ov.ama":"\u7F51\u9875\u7248\u7684\u7B14\u8BB0\uFF0C\u548C\u540C\u6B65\u4E0A\u6765\u7684\u7B14\u8BB0","penzor.ov.apps":"\u5404\u5E94\u7528\u5B58\u7684\u6587\u4EF6\uFF0C\u53EF\u4EE5\u5220\u3001\u6539\u540D","penzor.ov.plugins":"\u63D2\u4EF6\u81EA\u5DF1\u5B58\u7684\u8BBE\u7F6E\uFF0C\u8FD9\u91CC\u53EA\u663E\u793A\u5360\u7528","penzor.ov.exports":"\u5BFC\u51FA\u7684\u6587\u4EF6\uFF0C\u53EF\u4EE5\u4E0B\u8F7D\u3001\u5220\u9664","penzor.ov.segNotes":"\u7B14\u8BB0","penzor.ov.segSync":"\u8BBE\u5907\u540C\u6B65","penzor.ov.segOther":"\u5176\u4ED6","penzor.content.badge":"\u65B0\u540C\u6B65\u7EF4\u62A4","penzor.content.badgeLast":"\u65B0\u540C\u6B65\u7EF4\u62A4 \xB7 \u4E0A\u6B21\u540C\u6B65 {time}","penzor.content.noteAll":"\u8FD9\u662F\u4E91\u7AEF\u7684\u90A3\u4E00\u4EFD\uFF0C\u4F60\u767B\u5F55\u7684\u6BCF\u53F0\u8BBE\u5907\u548C\u7F51\u9875\u7248\u770B\u5230\u7684\u90FD\u662F\u5B83\u3002\u8981\u6539\u6587\u4EF6\uFF0C\u5728\u7535\u8111\u4E0A\u7684\u7B14\u8BB0\u3001Agents \u91CC\u6539\uFF0C\u6539\u5B8C\u4F1A\u81EA\u52A8\u540C\u6B65\u4E0A\u6765\uFF1B\u8FD9\u91CC\u53EF\u4EE5\u4E0B\u8F7D\u3002","penzor.content.noteSelf":"\u53EA\u6709\u8FD9\u53F0\u7535\u8111\u7528\u7684\u90A3\u4E00\u4EFD\uFF0C\u522B\u7684\u8BBE\u5907\u770B\u4E0D\u5230\u3002\u8981\u6539\u6587\u4EF6\u5728\u8FD9\u53F0\u7535\u8111\u4E0A\u6539\uFF1B\u8FD9\u91CC\u53EF\u4EE5\u4E0B\u8F7D\u3002","penzor.content.noteDevice":"\u53EA\u5728\u8FD9\u53F0\u7535\u8111\u548C {name} \u4E4B\u95F4\u5171\u7528\u3002\u8981\u6539\u6587\u4EF6\u5728\u7535\u8111\u4E0A\u6539\uFF1B\u8FD9\u91CC\u53EF\u4EE5\u4E0B\u8F7D\u3002","penzor.legacy.title":"\u8FD9\u53F0\u7535\u8111\u5F00\u4E86\u65B0\u540C\u6B65\u540E\uFF0C\u5C31\u4E0D\u518D\u5F80\u8FD9\u4E2A\u5E93\u5199\u4E86","penzor.legacy.body":"\u8FD9\u53F0\u7535\u8111\u7684\u7B14\u8BB0\u73B0\u5728\u5728\u300C\u6240\u6709\u8BBE\u5907\u5171\u7528 \u203A \u7B14\u8BB0\u300D\u91CC\u3002\u8FD8\u6CA1\u5347\u7EA7\u7684\u65E7\u7248\u684C\u9762\u53EF\u80FD\u4ECD\u4F1A\u5199\u5230\u8FD9\u91CC\uFF0C\u6240\u4EE5\u8FD9\u4EFD\u7559\u7740\u3001\u4E0D\u5220\u3002","penzor.legacy.go":"\u53BB\u770B\u65B0\u7684\u90A3\u4EFD","penzor.drive.total":"\u6574\u4E2A\u84EC\u6D32\u4E91\u5DF2\u7528 {used} / {max}","penzor.drive.seeAll":"\u67E5\u770B","penzor.cs.statusOff":"\u672A\u5F00","penzor.cs.statusPaused":"\u5DF2\u6682\u505C","penzor.cs.statusRun":"\u540C\u6B65\u4E2D {pct}%","penzor.cs.statusScan":"\u6B63\u5728\u6838\u5BF9\u6587\u4EF6","penzor.cs.statusWarn":"{n} \u9879\u8981\u5904\u7406","penzor.cs.statusOk":"\u5DF2\u540C\u6B65","penzor.cs.statusOkAgo":"\u5DF2\u540C\u6B65 \xB7 {time}","penzor.widget.signedOut":"\u672A\u767B\u5F55 Forsion \u8D26\u53F7","penzor.widget.signInHint":"\u767B\u5F55\u540E\u624D\u80FD\u540C\u6B65","penzor.widget.off":"\u4E91\u540C\u6B65\u6CA1\u5F00","penzor.widget.paused":"\u540C\u6B65\u5DF2\u6682\u505C","penzor.widget.running":"\u6B63\u5728\u540C\u6B65","penzor.widget.problem":"\u540C\u6B65\u9047\u5230\u95EE\u9898","penzor.widget.active":"\u6B63\u5728\u4F20 {n} \u9879","penzor.widget.queued":"\u8FD8\u6709 {n} \u9879\u6392\u961F","penzor.widget.waiting":"{n} \u9879\u7B49\u5F85\u540C\u6B65","penzor.widget.failed":"\u6CA1\u540C\u6B65\u6210\u529F","penzor.widget.error":"\u540C\u6B65\u51FA\u9519\u4E86","penzor.widget.errorMeta":"\u51FA\u9519","penzor.widget.conflict":"\u51B2\u7A81\uFF0C\u4E24\u4EFD\u90FD\u7559\u7740","penzor.widget.more":"\u8FD8\u6709 {n} \u9879\u8981\u770B","penzor.widget.last":"\u4E0A\u6B21\u540C\u6B65 {time}","penzor.widget.pending":"\u4E91\u7AEF\u5DF2\u6709\u4E00\u4EFD\u7B14\u8BB0","penzor.widget.notesFailed":"\u7B14\u8BB0\u5E93\u4E0A\u6B21\u6CA1\u540C\u6B65\u6210\u529F","penzor.widget.agentsFailed":"Agent \u4E0A\u6B21\u6CA1\u540C\u6B65\u6210\u529F","penzor.cs.thisComputer":"\u8FD9\u53F0\u7535\u8111\uFF1A{name}","penzor.cs.thisComputerLabel":"\u8FD9\u53F0\u7535\u8111\uFF1A","penzor.cs.rename":"\u6539\u8FD9\u53F0\u7535\u8111\u7684\u540D\u5B57","penzor.cs.renameHint":"\u6539\u4E86\u4EE5\u540E\uFF0C\u522B\u7684\u8BBE\u5907\u4E0A\u4E5F\u663E\u793A\u8FD9\u4E2A\u540D\u5B57 \xB7 \u56DE\u8F66\u4FDD\u5B58","penzor.cs.name.taken":"\u53E6\u4E00\u53F0\u8BBE\u5907\u5DF2\u7ECF\u53EB\u8FD9\u4E2A\u540D\u5B57\uFF0C\u6362\u4E00\u4E2A\u5427","penzor.cs.name.reserved":"macOS\u3001Windows\u3001Linux \u7559\u7ED9\u7CFB\u7EDF\uFF0C\u6362\u4E00\u4E2A\u540D\u5B57\u5427","penzor.cs.name.invalid":"\u540D\u5B57\u6700\u591A 64 \u4E2A\u5B57\uFF0C\u4E0D\u80FD\u5E26\u65B9\u62EC\u53F7","penzor.cs.othersN":"\u53E6\u5916 {n} \u53F0\uFF1A{names}","penzor.cs.noOthers":"\u8FD8\u6CA1\u6709\u522B\u7684\u8BBE\u5907\u767B\u5F55\u8FD9\u4E2A\u8D26\u53F7","penzor.cs.log":"\u6700\u8FD1\u8BB0\u5F55","penzor.cs.more":"\u66F4\u591A","penzor.cs.advanced":"\u9AD8\u7EA7\uFF1A\u6309\u89C4\u5219\u7F16\u8F91","penzor.cs.backSimple":"\u8FD4\u56DE\u540C\u6B65","penzor.cs.firstTitle":"\u628A\u8FD9\u53F0\u7535\u8111\u540C\u6B65\u5230\u84EC\u6D32\u4E91","penzor.cs.firstBody":"\u4E0B\u9762\u662F\u5EFA\u8BAE\u7684\u8303\u56F4\uFF0C\u53EF\u4EE5\u5148\u6539\u3002\u70B9\u300C\u5F00\u59CB\u540C\u6B65\u300D\u4E4B\u524D\u4E0D\u4F1A\u4F20\u4EFB\u4F55\u4E1C\u897F\uFF1B\u4E91\u7AEF\u5DF2\u6709\u7684\u4E0D\u4F1A\u88AB\u8986\u76D6\u6216\u5220\u9664\u3002","penzor.cs.note":"\u60F3\u8BA9\u67D0\u4E2A\u7B14\u8BB0\u6587\u4EF6\u5939\u6216 Agent \u5355\u72EC\u5904\u7406\uFF0C\u70B9\u5B83\u4E0B\u9762\u90A3\u884C\u5C0F\u5B57\u5C31\u80FD\u6539\u3002\u5173\u6389\u5F00\u5173\u53EA\u662F\u4E0D\u518D\u540C\u6B65\uFF0C\u4E0D\u5220\u9664\u4EFB\u4F55\u6587\u4EF6\u3002","penzor.cs.barFirst":"\u6253\u5F00\u540C\u6B65\u4F1A\u4E0A\u4F20 {up} \u4E2A\u6587\u4EF6\u3001\u4E0B\u8F7D {down} \u4E2A","penzor.cs.barChanged":"\u6539\u4E86 {n} \u5904","penzor.cs.barOne":"\u6539\u4E86 1 \u5904\uFF1A\u300C{name}\u300D\u6539\u6210{scope}","penzor.cs.offName":"\u4E0D\u540C\u6B65","penzor.cs.barCounts":"\u4F1A\u4E0A\u4F20 {up} \u4E2A\u6587\u4EF6\u3001\u4E0B\u8F7D {down} \u4E2A \xB7 \u4E0D\u5220\u9664\u4EFB\u4F55\u6587\u4EF6","penzor.cs.barSize":"\u5171 {size}","penzor.cs.noDelete":"\u4E0D\u4F1A\u5220\u9664\u4EFB\u4F55\u6587\u4EF6","penzor.cs.barConflicts":"{n} \u4E2A\u4E24\u8FB9\u90FD\u6539\u8FC7\uFF0C\u4F1A\u5404\u7559\u4E00\u4EFD","penzor.cs.barCounting":"\u6B63\u5728\u7B97\u8981\u4F20\u591A\u5C11\u2026","penzor.cs.barRecount":"\u6587\u4EF6\u521A\u6709\u53D8\u5316\uFF0C\u5DF2\u7ECF\u91CD\u65B0\u7B97\u8FC7\uFF0C\u8BF7\u518D\u786E\u8BA4\u4E00\u6B21","penzor.cs.later":"\u5148\u4E0D\u5F00","penzor.cs.start":"\u5F00\u59CB\u540C\u6B65","penzor.cs.undo":"\u64A4\u9500","penzor.cs.confirm":"\u786E\u8BA4","penzor.cs.up":"\u6B63\u5728\u4E0A\u4F20\u300C{name}\u300D","penzor.cs.down":"\u6B63\u5728\u4E0B\u8F7D\u300C{name}\u300D","penzor.cs.waiting":"\u8FD8\u6709 {n} \u4E2A\u6587\u4EF6\u7B49\u7740\u4F20","penzor.cs.failedN":"{n} \u4E2A\u6587\u4EF6\u6CA1\u4F20\u6210\u529F","penzor.cs.retry":"\u91CD\u8BD5","penzor.cs.seeLog":"\u770B\u8BB0\u5F55","penzor.cs.logEmpty":"\u8FD8\u6CA1\u6709\u540C\u6B65\u8BB0\u5F55\u3002","penzor.cs.logNote":"\u4FDD\u7559\u6700\u8FD1 200 \u9879\u3002\u4E24\u8FB9\u90FD\u6539\u8FC7\u65F6\u4F1A\u5404\u7559\u4E00\u4EFD\u3002","penzor.cat.notes":"\u7B14\u8BB0","penzor.cat.notesDesc":"Amadeus \u91CC\u7684\u667A\u5E93","penzor.cat.agents":"Agents \u4E0E\u8BB0\u5FC6","penzor.cat.agentsDesc":"\u6BCF\u4E2A Agent \u7684\u8BBE\u7F6E\u3001\u8BB0\u5FC6\u548C\u65E5\u5FD7","penzor.cat.profile":"\u6211\u7684\u8D44\u6599","penzor.cat.profileDesc":"\u4F60\u7684\u8D44\u6599\u548C\u9ED8\u8BA4\u65E5\u5386","penzor.cat.profileOn":"\u542B\u9ED8\u8BA4\u65E5\u5386","penzor.cat.plugins":"\u63D2\u4EF6","penzor.cat.pluginsDesc":"\u63D2\u4EF6\u7684\u6587\u4EF6\u5939\u548C\u8BBE\u7F6E","penzor.cat.others":"\u5176\u4ED6\u6587\u4EF6","penzor.cat.othersDesc":"\u5DE5\u4F5C\u6587\u4EF6\u5939\u91CC\u4E0D\u5C5E\u4E8E\u4E0A\u9762\u51E0\u7C7B\u7684\u6587\u4EF6","penzor.cat.files":"{n} \u4E2A\u6587\u4EF6 \xB7 {size}","penzor.agents.pickHint":"\u9010\u4E2A\u9009\uFF0C\u65B0\u5EFA\u7684 Agent \u9ED8\u8BA4\u4E0D\u540C\u6B65 \xB7 \u5DF2\u9009 {n} \u4E2A","penzor.agents.legacyHint":"\u6309\u65E7\u8BBE\u7F6E\uFF0C\u65B0\u5EFA\u7684 Agent \u4E5F\u4F1A\u540C\u6B65 \xB7 \u5DF2\u9009 {n} \u4E2A","penzor.agents.none":"\u8FD9\u53F0\u7535\u8111\u4E0A\u8FD8\u6CA1\u6709 Agent","penzor.agents.muse":"\u535C\u7B97\u5B50","penzor.agents.museDesc":"\u540E\u53F0 Agent\uFF0C\u6BCF\u53F0\u7535\u8111\u5404\u8DD1\u5404\u7684","penzor.agents.locked":"\u6682\u4E0D\u5F00\u653E\u540C\u6B65","penzor.agents.cloudOnly":"\u5728\u4E91\u7AEF \xB7 \u8FD9\u53F0\u7535\u8111\u8FD8\u6CA1\u6709\uFF0C\u6253\u5F00\u5C31\u4E0B\u8F7D","penzor.agents.historianNote":"Historian \u7684\u590D\u76D8\u8349\u7A3F\u7559\u5728\u6BCF\u53F0\u7535\u8111\u4E0A\uFF0C\u4E0D\u540C\u6B65\uFF1B\u5B83\u8BB0\u8FDB\u5404\u4E2A Agent \u65E5\u5FD7\u91CC\u7684\u5185\u5BB9\uFF0C\u8DDF\u7740\u90A3\u4E2A Agent \u8D70\u3002","penzor.agents.archiveRunning":"\u4E91\u7AEF\u7684 Agent \u6B63\u5728\u5B58\u6863\uFF0C\u7A0D\u7B49\u4E00\u4F1A\u513F\u518D\u6253\u5F00","penzor.cs.accountReview":"\u8D26\u53F7\u5DF2\u5207\u6362\u3002\u672C\u673A\u6587\u4EF6\u53EF\u80FD\u5305\u542B\u53E6\u4E00\u4E2A\u8D26\u53F7\u7684\u5185\u5BB9\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u540C\u6B65\u8303\u56F4\u5E76\u786E\u8BA4\u540E\u518D\u540C\u6B65\u3002","penzor.agents.openFailed":"\u6CA1\u80FD\u6253\u5F00\u8FD9\u4E2A Agent \u7684\u540C\u6B65\uFF0C\u5148\u4FDD\u6301\u4E0D\u540C\u6B65\uFF1A{reason}","penzor.archive.title":"Agent \u540C\u6B65\u6539\u6210\u9010\u4E2A\u9009\u4E86","penzor.archive.body":"\u4E4B\u524D\u8DDF\u7740\u603B\u5F00\u5173\u540C\u6B65\u7684 Agent \u90FD\u5DF2\u505C\u4E0B\uFF0C\u4E91\u7AEF\u90A3\u4EFD\u5B58\u8FDB\u4E86\u300C\u6211\u7684\u4E91\u76D8 \u203A {shelf} \u203A {name}\u300D\uFF0C\u53EA\u8BFB\uFF0C\u80FD\u4E0B\u8F7D\u3002\u60F3\u7EE7\u7EED\u540C\u6B65\u7684\uFF0C\u5728\u4E0B\u9762\u9010\u4E2A\u6253\u5F00\u3002","penzor.archive.shelf":"\u5B58\u6863","penzor.archive.ok":"\u77E5\u9053\u4E86","penzor.archive.open":"\u6253\u5F00\u5B58\u6863","penzor.archive.note":"\u8FD9\u662F Agent \u540C\u6B65\u7684\u5B58\u6863\uFF0C\u53EA\u8BFB\uFF1A\u80FD\u4E0B\u8F7D\uFF0C\u80FD\u6574\u4EFD\u5220\u9664\u3002","penzor.ask.title":"{name} \u5728\u4E91\u7AEF\u5DF2\u7ECF\u6709\u4E00\u4EFD","penzor.ask.when":"\u4E91\u7AEF\u90A3\u4EFD\u6700\u540E\u6539\u4E8E {cloud}\uFF0C\u8FD9\u53F0\u6700\u540E\u6539\u4E8E {local}\u3002\u6253\u5F00\u540C\u6B65\u524D\u9009\u4E00\u6B21\uFF0C\u4EE5\u540E\u81EA\u52A8\u5408\u3002","penzor.ask.merge":"\u5408\u5728\u4E00\u8D77","penzor.ask.mergeDesc":"\u8BB0\u5FC6\u3001\u65E5\u5FD7\u3001\u65E5\u7A0B\u6309\u6761\u5408\u5E76\uFF1B\u8BBE\u7F6E\u3001\u6027\u683C\u8FD9\u7C7B\u4E24\u8FB9\u90FD\u6539\u4E86\u7684\uFF0C\u7528\u8F83\u65B0\u7684\u90A3\u4EFD\uFF0C\u53E6\u4E00\u4EFD\u653E\u8FDB\u672C\u673A\u56DE\u6536","penzor.ask.cloud":"\u4EE5\u4E91\u7AEF\u4E3A\u51C6","penzor.ask.cloudDesc":"\u8FD9\u53F0\u7684\u6574\u4EFD\u5148\u653E\u8FDB\u672C\u673A\u56DE\u6536\uFF0C\u518D\u6362\u6210\u4E91\u7AEF\u90A3\u4EFD","penzor.ask.local":"\u4EE5\u8FD9\u53F0\u4E3A\u51C6","penzor.ask.localDesc":"\u4E91\u7AEF\u90A3\u4EFD\u5148\u8FDB\u5B58\u6863\uFF0C\u518D\u6362\u6210\u8FD9\u53F0\u7684","penzor.ask.recommended":"\u5EFA\u8BAE","penzor.ask.foot":"\u56DE\u6536\u5728 agents/.removed\uFF0C\u80FD\u627E\u56DE","penzor.ask.cancel":"\u53D6\u6D88","penzor.ask.confirm":"\u6253\u5F00\u540C\u6B65","penzor.cat.pluginsN":"{n} \u4E2A\u63D2\u4EF6","penzor.cat.custom":"\u53E6\u6709 {n} \u6761\u81EA\u5B9A\u4E49\u89C4\u5219","penzor.cat.notSynced":"\u4E0D\u540C\u6B65 \xB7 \u53EA\u7559\u5728\u8FD9\u53F0\u7535\u8111","penzor.scope.all":"\u6240\u6709\u8BBE\u5907\u5171\u7528","penzor.scope.allDesc":"\u6BCF\u53F0\u767B\u5F55\u7684\u8BBE\u5907\u548C\u7F51\u9875\u7248\u90FD\u662F\u540C\u4E00\u4EFD","penzor.scope.self":"\u53EA\u5907\u4EFD\u8FD9\u53F0\u7535\u8111","penzor.scope.selfDesc":"\u4E91\u7AEF\u5355\u72EC\u5B58\u4E00\u4EFD\uFF0C\u522B\u7684\u8BBE\u5907\u770B\u4E0D\u5230","penzor.scope.with":"\u53EA\u548C {name} \u5171\u7528","penzor.scope.menuTitle":"\u300C{name}\u300D\u548C\u8C01\u5171\u7528","penzor.scope.menuFoot":"\u4E0D\u60F3\u4E0A\u4E91\u5C31\u5173\u6389\u53F3\u8FB9\u7684\u5F00\u5173","penzor.scope.calendarNote":"\u7F51\u9875\u7248\u7684\u9ED8\u8BA4\u65E5\u5386\u4E0D\u4F1A\u8DDF\u7740\u53D8","penzor.unified.stale":"\u5237\u65B0\u5931\u8D25\uFF0C\u4EE5\u4E0B\u4FDD\u7559\u4E0A\u6B21\u7EDF\u8BA1\uFF1B\u5F53\u524D\u7528\u91CF\u672A\u77E5\uFF0C\u8BF7\u91CD\u8BD5\u3002","penzor.unified.uploadTo":"\u4E0A\u4F20\u5230\u300C\u6211\u7684\u6587\u4EF6\u300D","penzor.unified.apps":"\u666E\u901A\u6587\u4EF6\u53EF\u7BA1\u7406 \xB7 \u6765\u6E90\u9650\u5236\u4F18\u5148","penzor.trash.ama":"Amadeus \xB7 \u5F85\u6E05\u7406\u5FEB\u7167","penzor.trash.amaNote":"\u88AB\u5220\u7684\u5F53\u524D\u6587\u4EF6\u4ECD\u8BA1\u5165\u989D\u5EA6\uFF0C\u5386\u53F2\u7248\u672C\u4E0D\u91CD\u590D\u8BA1\u5165\u300230 \u5929\u540E\u7B49\u5F85\u7CFB\u7EDF\u6E05\u7406\uFF1B\u6B64\u5904\u53EA\u8BFB\uFF0C\u4E0D\u53D7\u300C\u6E05\u7A7A\u56DE\u6536\u7AD9\u300D\u5F71\u54CD\u3002","penzor.trash.expires":"\u53EF\u6E05\u7406\u65E5\u671F","penzor.source.openAgents":"\u5728 Agents \u4E2D\u6253\u5F00","penzor.source.openCalendar":"\u6253\u5F00\u65E5\u5386","penzor.source.entryUnavailable":"\u6B64\u5BBF\u4E3B\u6682\u672A\u63D0\u4F9B\u8BE5\u5165\u53E3","penzor.uploads":"\u6211\u7684\u6587\u4EF6","penzor.source.agents":"Agents","penzor.source.profile":"\u6211\u7684\u8D44\u6599","penzor.source.plugins":"\u63D2\u4EF6\u6570\u636E","penzor.source.readonly":"\u540C\u6B65\u6765\u6E90\u4E3A\u53EA\u8BFB\uFF0C\u8BF7\u5728\u539F\u4F4D\u7F6E\u7F16\u8F91\u6216\u5220\u9664\uFF1B\u6B64\u5904\u53EF\u4E0B\u8F7D\u5DF2\u540C\u6B65\u7684\u6587\u4EF6\u3002","penzor.source.appNote":"\u5E94\u7528\u6587\u4EF6\u7531\u539F\u5E94\u7528\u7BA1\u7406\uFF0C\u8BF7\u5728\u5E94\u7528\u4E2D\u7F16\u8F91\u6216\u5220\u9664\u3002","penzor.source.market":"\u5546\u5E97\u6295\u7A3F","penzor.ov.market":"\u4F60\u6295\u5230\u5546\u5E97\u7684\u63D2\u4EF6\u3001\u6280\u80FD\u548C Agent \u5305\uFF0C\u8DDF\u7740\u5546\u5E97\u6761\u76EE\u8D70","penzor.source.marketNote":"\u8FD9\u91CC\u7684\u5305\u8DDF\u7740\u5546\u5E97\u6761\u76EE\u8D70\uFF1A\u5728\u300C\u5546\u5E97 \u2192 \u6211\u7684\u6295\u7A3F\u300D\u5220\u6389\u6761\u76EE\u624D\u4F1A\u91CA\u653E\u3002\u4ECE GitHub\u3001npm \u62C9\u6765\u7684\u5305\u7531\u5546\u5E97\u4EE3\u5B58\uFF0C\u4E0D\u7B97\u4F60\u7684\u7A7A\u95F4\u3002","penzor.market.badge":"\u7531\u5546\u5E97\u7BA1\u7406","penzor.market.meta":"{size} \xB7 {n} \u4E2A\u5305","penzor.market.history":"\u65E7\u7248\u672C {size}\uFF0C\u548C\u522B\u5904\u4E00\u6837\u4E0D\u7B97","penzor.market.older":"\u53E6\u6709\u65E7\u7248\u672C {size}","penzor.market.updating":"\u66F4\u65B0\u5F85\u5BA1\u6838","penzor.market.notCounted":"\u4E0D\u7B97","penzor.market.fromGithub":"\u4ECE GitHub \u62C9\u53D6 \xB7 \u5546\u5E97\u4EE3\u5B58","penzor.market.fromNpm":"\u4ECE npm \u62C9\u53D6 \xB7 \u5546\u5E97\u4EE3\u5B58","penzor.market.type.plugin":"\u63D2\u4EF6","penzor.market.type.skill":"\u6280\u80FD","penzor.market.type.agent":"Agent","penzor.market.type.space":"Space","penzor.market.type.theme":"\u4E3B\u9898","penzor.market.type.amadeusPlugin":"Amadeus \u63D2\u4EF6","penzor.market.status.approved":"\u5DF2\u4E0A\u67B6","penzor.market.status.pending":"\u5F85\u5BA1\u6838","penzor.market.status.rejected":"\u672A\u901A\u8FC7","penzor.col.type":"\u7C7B\u578B","penzor.col.status":"\u72B6\u6001","penzor.source.pluginNote":"\u4EC5\u5C55\u793A\u63D2\u4EF6\u540D\u79F0\u548C\u5360\u7528\uFF1B\u6570\u636E\u53EF\u80FD\u542B\u914D\u7F6E\u6216\u51ED\u636E\uFF0C\u4E0D\u76F4\u63A5\u9884\u89C8\u6216\u4E0B\u8F7D\u3002","penzor.unified.unavailable":"\u7EDF\u8BA1\u4E0D\u53EF\u7528","penzor.unified.incomplete":"\u7EDF\u4E00\u7528\u91CF\u5C1A\u672A\u7EDF\u8BA1\u5B8C\u6574\uFF0C\u4E0D\u80FD\u636E\u6B64\u5224\u65AD\u662F\u5426\u8D85\u989D\u3002\u8BF7\u5237\u65B0\u91CD\u8BD5\u3002","penzor.unified.enforced":"\u7EDF\u4E00\u989D\u5EA6\u5DF2\u542F\u7528\uFF1A\u8D85\u989D\u65F6\u6682\u505C\u65B0\u589E\u5185\u5BB9\u548C\u53D8\u5927\u7684\u6587\u4EF6\uFF1B\u4E0B\u8F7D\u3001\u5220\u9664\u53CA\u4E0D\u589E\u5927\u7684\u8986\u76D6\u4ECD\u53EF\u7528\u3002","penzor.unified.grace":"\u901A\u77E5\u5BBD\u9650\u671F\u81F3 {date}\uFF0C\u76EE\u524D\u4E0D\u65B0\u589E\u7EDF\u4E00\u989D\u5EA6\u62E6\u622A\u3002","penzor.unified.rolloutPolicy":"\u5BB9\u91CF\u653F\u7B56\u901A\u77E5\uFF1A\u6700\u65E9\u5728\u786E\u8BA4\u901A\u77E5 30 \u5929\u540E\uFF0C\u7EDF\u4E00\u989D\u5EA6\u624D\u53EF\u80FD\u9650\u5236\u589E\u957F\u5199\u5165\uFF1B\u5E94\u7528\u6587\u4EF6\u5386\u53F2\u5C06\u4EC5\u4FDD\u7559\u6700\u8FD1 30 \u5929\u5185\u6700\u591A 50 \u4EFD\u3002\u5386\u53F2\u4E0D\u8BA1\u5957\u9910\uFF0C\u6E05\u7406\u524D\u4ECD\u53EF\u4E0B\u8F7D\u5907\u4EFD\uFF0C\u5F53\u524D\u6587\u4EF6\u4E0D\u53D7\u5386\u53F2\u6E05\u7406\u5F71\u54CD\u3002","penzor.unified.ack":"\u5DF2\u9605\u8BFB\u5BB9\u91CF\u4E0E\u5386\u53F2\u4FDD\u7559\u901A\u77E5","penzor.unified.notice":"\u73B0\u5728\u53EA\u662F\u63D0\u9192\uFF0C\u8D85\u4E86\u4E5F\u4E0D\u4F1A\u505C\u6389\u540C\u6B65\u6216\u4E0A\u4F20","penzor.unified.over":"\u5DF2\u8D85\u8FC7\u7EDF\u4E00\u989D\u5EA6\u3002\u76EE\u524D\u53EA\u63D0\u9192\uFF0C\u4E0D\u65B0\u589E\u540C\u6B65\u6216\u4E0A\u4F20\u62E6\u622A\uFF1B\u53EF\u6E05\u7406\u6587\u4EF6\u6216\u5347\u7EA7\u5957\u9910\u3002","penzor.unified.warn":"\u7EDF\u4E00\u7A7A\u95F4\u5373\u5C06\u7528\u6EE1\u3002\u76EE\u524D\u53EA\u63D0\u9192\uFF0C\u4E0D\u65B0\u589E\u540C\u6B65\u6216\u4E0A\u4F20\u62E6\u622A\u3002","penzor.unified.accounting":"\u542B\u56DE\u6536\u7AD9 {trash}\uFF0C\u5386\u53F2\u7248\u672C\u4E0D\u7B97","penzor.unified.writable":"\u53EF\u4E0A\u4F20\u3001\u65B0\u5EFA\u3001\u91CD\u547D\u540D\u548C\u5220\u9664","penzor.unified.readonly":"\u53EA\u8BFB \xB7 \u7531\u6765\u6E90\u7BA1\u7406","penzor.unified.export":"\u53EF\u4E0B\u8F7D\u3001\u91CD\u547D\u540D\u548C\u6C38\u4E45\u5220\u9664","penzor.unified.counted":"\u8BA1\u5165\u7EDF\u4E00\u7528\u91CF \xB7 \u63D0\u9192\u9636\u6BB5","penzor.unified.policy":"\u771F\u8981\u9650\u5236\u4E4B\u524D\uFF0C\u81F3\u5C11\u63D0\u524D 30 \u5929\u544A\u8BC9\u4F60\u3002","penzor.unified.legacySync":"\u539F\u8BBE\u5907\u540C\u6B65\u9650\u5236\uFF1A{used} / {max}","penzor.unified.legacyApps":"\u539F\u5E94\u7528\u6587\u4EF6\u9650\u5236\uFF1A{used} / {max}","sub.identity":"\u63D2\u4EF6 ID","sub.identityHint":"\u63D0\u4EA4\u540E\u81EA\u52A8\u5206\u914D\u552F\u4E00 ID\u3002\u540D\u79F0\u53EF\u4EE5\u91CD\u590D\uFF0C\u66F4\u65B0\u6CBF\u7528\u540C\u4E00\u4E2A ID\u3002","sub.description":"\u8BE6\u7EC6\u63CF\u8FF0","sub.tags":"\u6807\u7B7E","sub.tagsHint":"\u4EE5\u9017\u53F7\u5206\u9694\uFF0C\u6700\u591A 8 \u4E2A","sub.minAppVersion":"\u6700\u4F4E Forsion \u7248\u672C","sub.maxAppVersion":"\u6700\u9AD8\u7248\u672C\uFF08\u4E0D\u542B\uFF09","sub.optional":"\u9009\u586B","sub.platforms":"\u652F\u6301\u7684\u7AEF","sub.requirementsHint":"\u652F\u6301 desktop\u3001macos\u3001windows\u3001linux\u3001android\u3001ios\u3001web\u3002\u7559\u7A7A\u8868\u793A\u672A\u58F0\u660E\u3002ZIP \u6E05\u5355\u4E2D\u7684\u8981\u6C42\u4F1A\u81EA\u52A8\u8BFB\u53D6\uFF0C\u624B\u586B\u503C\u987B\u4E0E\u6E05\u5355\u4E00\u81F4\u3002","sub.err.market_requirements_invalid":"\u7248\u672C\u8981\u6C42\u6216\u5E73\u53F0\u65E0\u6548\u3002","sub.err.market_requirements_mismatch":"\u624B\u586B\u7248\u672C\u8981\u6C42\u4E0E ZIP \u6E05\u5355\u4E0D\u4E00\u81F4\u3002","sub.mine":"\u6211\u7684\u6295\u7A3F","page.submission":"\u63D2\u4EF6\u6295\u7A3F","page.webPages":"\u6211\u7684\u7F51\u9875","web.title":"\u6211\u7684\u7F51\u9875","web.desc":"\u7528 Tangu \u6216 Coding Space \u53D1\u5E03\u7684\u7F51\u9875\u90FD\u5728\u8FD9\u91CC\u3002\u62FF\u5230\u94FE\u63A5\u7684\u4EBA\u90FD\u80FD\u6253\u5F00\uFF1B\u9875\u9762\u5728\u6C99\u7BB1\u91CC\u8FD0\u884C\uFF0C\u62FF\u4E0D\u5230\u8BBF\u5BA2\u7684 Forsion \u767B\u5F55\u6001\u3002","web.refresh":"\u5237\u65B0","web.used":"\u5DF2\u53D1\u5E03 {used} / {limit} \u4E2A","web.full":"\u540D\u989D\u5DF2\u6EE1\uFF0C\u4E0B\u7EBF\u4E00\u4E2A\u6216\u5347\u7EA7\u4F1A\u5458\u540E\u624D\u80FD\u53D1\u65B0\u7684","web.empty":"\u8FD8\u6CA1\u6709\u53D1\u5E03\u8FC7\u7F51\u9875","web.emptyHint":"\u5728\u5BF9\u8BDD\u91CC\u8BA9 Tangu \u628A\u7F51\u9875\u53D1\u5E03\u51FA\u53BB\uFF0C\u6BD4\u5982\u300C\u628A\u8FD9\u4E2A\u9875\u9762\u53D1\u5E03\u6210\u7F51\u9875\u300D\uFF1BCoding Space \u91CC\u7684\u9879\u76EE\u4E5F\u53EF\u4EE5\u70B9\u300C\u53D1\u5E03\u300D\u3002","web.updated":"\u66F4\u65B0\u4E8E {date}","web.disabled":"\u5DF2\u505C\u7528","web.disabledHint":"\u8FD9\u4E2A\u7F51\u9875\u88AB\u7BA1\u7406\u5458\u505C\u7528\u4E86\uFF0C\u94FE\u63A5\u6253\u4E0D\u5F00\uFF0C\u4E5F\u4E0D\u80FD\u66F4\u65B0\u3002","web.copy":"\u590D\u5236\u94FE\u63A5","web.unpublish":"\u4E0B\u7EBF","web.unpublishConfirm":"\u786E\u8BA4\u4E0B\u7EBF","web.listingPending":"\u4E0A\u67B6\u5BA1\u6838\u4E2D","web.listingApproved":"\u5DF2\u4E0A\u67B6","web.listingRejected":"\u4E0A\u67B6\u88AB\u9A73\u56DE","web.listingNote":"\u9A73\u56DE\u539F\u56E0\uFF1A{note}","web.listingApply":"\u7533\u8BF7\u4E0A\u67B6","web.listingReapply":"\u91CD\u65B0\u7533\u8BF7","web.listingWithdraw":"\u64A4\u56DE\u7533\u8BF7","web.listingDelist":"\u4E0B\u67B6","web.listingDelistConfirm":"\u786E\u8BA4\u4E0B\u67B6","web.listingSummary":"\u5546\u5E97\u7B80\u4ECB","web.listingSummaryPh":"\u4E00\u53E5\u8BDD\u4ECB\u7ECD\u8FD9\u4E2A\u7F51\u9875","web.listingHint":"\u5BA1\u6838\u901A\u8FC7\u540E\u5728\u5546\u5E97\u300C\u7F51\u7AD9\u5E94\u7528\u300D\u91CC\u516C\u5F00\u5C55\u793A\uFF0C300 \u5B57\u4EE5\u5185\u3002","web.listingSubmit":"\u63D0\u4EA4\u7533\u8BF7","pub.cmd":"\u53D1\u5E03\u7F51\u9875\u5230 Forsion","pub.cmdNoArgs":"\u4ECE\u7F16\u7801\u5DE5\u4F5C\u5BA4\u6253\u5F00\u8981\u53D1\u5E03\u7684\u9879\u76EE","pub.title":"\u53D1\u5E03\u5230 Forsion\uFF1A{name}","pub.titleTerms":"\u53D1\u5E03\u4E3A\u516C\u5F00\u9875\u9762","pub.close":"\u5173\u95ED","pub.desc":"\u628A\u8FD9\u4E2A\u7F51\u9875\u53D1\u5E03\u6210\u516C\u5F00\u94FE\u63A5\uFF0C\u62FF\u5230\u94FE\u63A5\u7684\u4EBA\u90FD\u80FD\u6253\u5F00\u3002","pub.descPublished":"\u5DF2\u53D1\u5E03\u3002\u6539\u4E86\u4F5C\u54C1\u4E4B\u540E\u56DE\u6765\u70B9\u300C\u66F4\u65B0\u53D1\u5E03\u300D\uFF0C\u94FE\u63A5\u4E0D\u53D8\u3002","pub.needLogin":"\u53D1\u5E03\u9700\u8981\u767B\u5F55 Forsion \u8D26\u53F7","pub.login":"\u767B\u5F55 Forsion","pub.loginWaiting":"\u7B49\u5F85\u6D4F\u89C8\u5668\u5B8C\u6210\u6388\u6743\u2026","pub.name":"\u540D\u79F0","pub.slug":"\u94FE\u63A5\u6807\u8BC6","pub.slugHint":"3\u201332 \u4F4D\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u6216\u4E2D\u5212\u7EBF","pub.entry":"\u5165\u53E3\u9875\u9762","pub.noEntry":"\u9879\u76EE\u91CC\u8FD8\u6CA1\u6709 .html \u5165\u53E3\uFF0C\u5148\u8BA9 AI \u751F\u6210\u9875\u9762\u518D\u53D1\u5E03\u3002","pub.slots":"\u5DF2\u53D1\u5E03 {used} / {limit} \u4E2A\uFF08{tier}\uFF09","pub.hint":"\u8D44\u6E90\u8BF7\u7528\u76F8\u5BF9\u8DEF\u5F84\u5F15\u7528\uFF1B.ts / .tsx \u53D1\u5E03\u65F6\u81EA\u52A8\u8F6C\u8BD1\uFF0C\u4E0D\u7528\u6784\u5EFA\u3002","pub.anyone":"\u62FF\u5230\u94FE\u63A5\u7684\u4EBA\u90FD\u80FD\u6253\u5F00","pub.likes":"{n} \u4E2A\u8D5E","pub.saves":"{n} \u4EBA\u6536\u85CF","pub.copy":"\u590D\u5236\u94FE\u63A5","pub.copied":"\u5DF2\u590D\u5236","pub.open":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00","pub.publish":"\u53D1\u5E03","pub.update":"\u66F4\u65B0\u53D1\u5E03","pub.saveUpdate":"\u4FDD\u5B58\u5E76\u66F4\u65B0","pub.publishing":"\u53D1\u5E03\u4E2D\u2026","pub.listingTitle":"\u5546\u5E97\u300C\u7F51\u7AD9\u5E94\u7528\u300D","pub.listingNone":"\u672A\u4E0A\u67B6","pub.listingPending":"\u5BA1\u6838\u4E2D","pub.listingApproved":"\u5DF2\u4E0A\u67B6","pub.listingRejected":"\u5DF2\u9A73\u56DE","pub.listingHint":"\u4E0A\u67B6\u540E\u5728\u5546\u5E97\u300C\u7F51\u7AD9\u5E94\u7528\u300D\u91CC\u516C\u5F00\u5C55\u793A\uFF0C\u8981\u5E73\u53F0\u5BA1\u6838\u3002","pub.termsIntro":"\u53D1\u5E03\u540E\uFF0C\u4EFB\u4F55\u62FF\u5230\u94FE\u63A5\u7684\u4EBA\u90FD\u80FD\u67E5\u770B\u8FD9\u4E2A\u9875\u9762\uFF0C\u5B83\u4E5F\u53EF\u80FD\u88AB\u8F6C\u53D1\u6216\u88AB\u641C\u7D22\u5F15\u64CE\u6536\u5F55\u3002\u8BF7\u786E\u8BA4\uFF1A","pub.termsLi1":"\u4F60\u6709\u6743\u53D1\u5E03\u9875\u9762\u91CC\u7684\u6587\u5B57\u3001\u56FE\u7247\u3001\u97F3\u89C6\u9891\u548C\u5176\u4ED6\u5185\u5BB9\uFF1B","pub.termsLi2":"\u9875\u9762\u4E0D\u5305\u542B\u8FDD\u6CD5\u4FE1\u606F\u3001\u4FB5\u6743\u5185\u5BB9\u6216\u672A\u7ECF\u8BB8\u53EF\u62AB\u9732\u7684\u4E2A\u4EBA\u4FE1\u606F\uFF1B","pub.termsLi3":"\u4F60\u5BF9\u81EA\u5DF1\u53D1\u5E03\u7684\u5185\u5BB9\u627F\u62C5\u76F8\u5E94\u8D23\u4EFB\u3002","pub.termsManage":"\u5E73\u53F0\u4F9D\u636E\u6CD5\u5F8B\u6CD5\u89C4\u548C\u300A\u5185\u5BB9\u53D1\u5E03\u89C4\u8303\u300B\u7BA1\u7406\u516C\u5F00\u5185\u5BB9\uFF0C\u5BF9\u8FDD\u89C4\u5185\u5BB9\u53EF\u80FD\u9650\u5236\u8BBF\u95EE\u3001\u505C\u6B62\u5C55\u793A\u6216\u5220\u9664\u3002","pub.termsAgreePre":"\u6211\u5DF2\u9605\u8BFB\u5E76\u540C\u610F","pub.termsGuidelines":"\u300A\u5185\u5BB9\u53D1\u5E03\u89C4\u8303\u300B","pub.termsConfirm":"\u786E\u8BA4\u53D1\u5E03","pub.aiSaveFailed":"\u5DF2\u53D1\u5E03\uFF0C\u4F46 AI \u8BBE\u7F6E\u6CA1\u4FDD\u5B58\uFF1A{reason}","ai.whoPays":"\u8C01\u6765\u4ED8","ai.payer.visitor":"\u8BBF\u5BA2\u81EA\u5DF1\u4ED8","ai.payer.author":"\u6211\u6765\u4ED8","ai.perVisitor":"\u6BCF\u4F4D\u8BBF\u5BA2","ai.perVisitorPre":"\u6BCF\u4EBA\u6BCF\u5929\u6700\u591A","ai.perVisitorPost":"\u6B21","ai.page":"\u8FD9\u4E2A\u7F51\u9875","ai.pagePre":"\u6BCF\u5929\u6700\u591A","ai.pagePost":"\u79EF\u5206","ai.max":"\u6700\u591A {n}","ai.whenUsedUp":"\u7528\u5B8C\u4EE5\u540E","ai.exhausted.visitor":"\u6539\u7528\u8BBF\u5BA2\u81EA\u5DF1\u7684\u989D\u5EA6","ai.exhausted.pause":"AI \u6682\u505C\u5230\u660E\u5929","ai.models":"\u53EF\u7528\u6A21\u578B","ai.modelDefault":"\u9ED8\u8BA4","ai.modelImage":"\u56FE\u50CF","ai.balance":"\u989D\u5EA6\u5305\u4F59\u989D","ai.points":"{n} \u79EF\u5206","ai.buy":"\u4E70\u989D\u5EA6\u5305","ai.noteAuthor":"\u8BBF\u5BA2\u7528 AI \u524D\u8981\u767B\u5F55 Forsion \u8D26\u53F7\uFF0C\u53EA\u7528\u6765\u6309\u4EBA\u8BB0\u6B21\u6570\uFF0C\u4E0D\u6263\u4ED6\u4EEC\u7684\u989D\u5EA6\u3002\u6309\u540E\u53F0\u7684\u6A21\u578B\u70B9\u6570\u6263\uFF0C\u548C\u8BBF\u5BA2\u81EA\u5DF1\u4ED8\u65F6\u4E00\u6837\u591A\uFF1B\u4E0D\u78B0\u4F60\u81EA\u5DF1\u7684 AI \u989D\u5EA6\u548C\u79EF\u5206\u4F59\u989D\u3002","ai.noteVisitor":"\u770B\u7F51\u9875\u4E0D\u7528\u767B\u5F55\uFF1B\u8BBF\u5BA2\u7528\u5230 AI \u65F6\u518D\u767B\u5F55 Forsion \u8D26\u53F7\uFF0C\u6263\u4ED6\u4EEC\u81EA\u5DF1\u7684\u989D\u5EA6\u3002","ai.noteOff":"\u300C\u6211\u6765\u4ED8\u300D\u6682\u672A\u5F00\u653E\uFF0CAI \u7531\u8BBF\u5BA2\u81EA\u5DF1\u4ED8\u3002","ai.agentNote":"forsion.ai.agent \u8FD9\u4E00\u671F\u4ECD\u6263\u8BBF\u5BA2\u81EA\u5DF1\u7684\u989D\u5EA6\uFF0C\u8BBF\u5BA2\u7B2C\u4E00\u6B21\u7528\u65F6\u4F1A\u5148\u786E\u8BA4\u3002","ai.cooldownNew":"\u65B0\u7F51\u9875\u53D1\u5E03\u6EE1 {h} \u5C0F\u65F6\u540E\u624D\u7531\u4F60\u6765\u4ED8\uFF0C\u5728\u90A3\u4E4B\u524D\u8BBF\u5BA2\u81EA\u5DF1\u4ED8\u3002","ai.cooldownUntil":"{time} \u8D77\u7531\u4F60\u6765\u4ED8\uFF0C\u5728\u90A3\u4E4B\u524D\u8BBF\u5BA2\u81EA\u5DF1\u4ED8\u3002","ai.save":"\u4FDD\u5B58","ai.saved":"AI \u8BBE\u7F6E\u5DF2\u4FDD\u5B58","web.tabMine":"\u6211\u53D1\u5E03\u7684 {n}","web.tabSaved":"\u6211\u6536\u85CF\u7684","web.tabSavedN":"\u6211\u6536\u85CF\u7684 {n}","web.ai.author":"AI \xB7 \u6211\u6765\u4ED8","web.ai.visitor":"AI \xB7 \u8BBF\u5BA2\u81EA\u5DF1\u4ED8","web.ai.paused":"AI \xB7 \u6211\u6765\u4ED8 \xB7 \u5DF2\u6682\u505C","web.ai.pausedSpike":"1 \u5C0F\u65F6\u5185\u7528\u5F97\u592A\u5FEB\uFF0C\u5DF2\u81EA\u52A8\u6539\u56DE\u8BBF\u5BA2\u4ED8","web.ai.pausedAdmin":"\u88AB\u7BA1\u7406\u5458\u6682\u505C\uFF0C\u73B0\u5728\u8BBF\u5BA2\u81EA\u5DF1\u4ED8","web.ai.resume":"\u6062\u590D\u6211\u6765\u4ED8","web.ai.todayAuthor":"\u4ECA\u5929 {calls} \u6B21 \xB7 {visitors} \u4F4D\u8BBF\u5BA2","web.ai.todayVisitor":"\u4ECA\u5929 {calls} \u6B21","web.ai.cap":"\u4ECA\u65E5\u4E0A\u9650","web.ai.none":"\u6CA1\u7528\u5230 AI","web.ai.settings":"AI \u8BBE\u7F6E","web.ai.cooldown":"{time} \u8D77\u7531\u4F60\u6765\u4ED8","pack.points":"\u79EF\u5206","pack.note":"\u9009\u4E86\u300C\u6211\u6765\u4ED8\u300D\u7684\u7F51\u9875\u4ECE\u8FD9\u91CC\u6263\uFF0C\u6309\u540E\u53F0\u7684\u6A21\u578B\u70B9\u6570\u8BA1\uFF1B\u4E0D\u78B0\u4F60\u81EA\u5DF1\u7684 AI \u989D\u5EA6\u548C\u79EF\u5206\u4F59\u989D\u3002","pack.lowNote":"\u5FEB\u7528\u5B8C\u4E86\u3002\u7528\u5B8C\u540E\u300C\u6211\u6765\u4ED8\u300D\u7684\u7F51\u9875\u6309\u5404\u81EA\u7684\u8BBE\u7F6E\uFF1A\u6539\u7528\u8BBF\u5BA2\u81EA\u5DF1\u7684\u989D\u5EA6\uFF0C\u6216\u6682\u505C\u5230\u660E\u5929\u3002","pack.monthSpent":"\u672C\u6708\u7528\u6389","pack.lastTopUp":"\u4E0A\u6B21\u5145\u503C","pack.topUp":"{date} +{n}","pack.usage":"\u7528\u91CF\u660E\u7EC6","pack.usageTitle":"\u6700\u8FD1 30 \u5929\u300C\u6211\u6765\u4ED8\u300D\u7684\u7528\u91CF","pack.usageEmpty":"\u6700\u8FD1 30 \u5929\u6CA1\u6709\u300C\u6211\u6765\u4ED8\u300D\u7684\u8C03\u7528","pack.col.day":"\u65E5\u671F","pack.col.page":"\u7F51\u9875","pack.col.calls":"\u6B21\u6570","pack.col.visitors":"\u8BBF\u5BA2","pack.col.points":"\u79EF\u5206","pack.storeTitle":"\u5546\u5E97","pack.storeUnavailable":"\u6253\u5F00\u300C\u5546\u5E97 \u203A \u7269\u54C1\u300D\u4E70\u989D\u5EA6\u5305","saved.empty":"\u8FD8\u6CA1\u6709\u6536\u85CF\u7684\u7F51\u9875","saved.emptyHint":"\u5728\u522B\u4EBA\u53D1\u5E03\u7684\u7F51\u9875\u53F3\u8FB9\u70B9\u661F\u6807\uFF0C\u5C31\u4F1A\u6536\u5230\u8FD9\u91CC\u3002","saved.open":"\u6253\u5F00","saved.author":"\u4F5C\u8005\u4E3B\u9875","saved.unsave":"\u53D6\u6D88\u6536\u85CF","saved.aiAuthor":"AI \u4F5C\u8005\u8BF7\u5BA2","saved.aiVisitor":"AI \u8BBF\u5BA2\u81EA\u5DF1\u4ED8","backpack.effect.connectPack":"\u989D\u5EA6\u5305\u4F59\u989D +{n} \u79EF\u5206","backpack.effect.other":"\u5176\u4ED6\u6548\u679C","backpack.packUsed":"\u5DF2\u5145\u8FDB\u989D\u5EA6\u5305\u4F59\u989D","backpack.packUsedLine":"+{n} \u79EF\u5206 \xB7 \u73B0\u5728 {balance} \u79EF\u5206","sub.desc":"\u7BA1\u7406\u4F60\u6295\u7A3F\u7684\u5185\u5BB9\u3001\u5BA1\u6838\u7ED3\u679C\u548C\u7248\u672C\u66F4\u65B0\u3002","sub.new":"\u65B0\u6295\u7A3F","sub.refresh":"\u5237\u65B0","sub.empty":"\u8FD8\u6CA1\u6709\u6295\u7A3F","sub.emptyHint":"\u628A\u4F60\u7684\u63D2\u4EF6\u3001\u6280\u80FD\u3001Agent \u6216 Space \u5206\u4EAB\u5230\u5E94\u7528\u5E02\u573A\u3002","sub.name":"\u540D\u79F0","sub.summary":"\u7B80\u4ECB","sub.type":"\u5185\u5BB9\u7C7B\u578B","sub.source":"\u53D1\u5E03\u6E20\u9053","sub.type.skill":"\u6280\u80FD","sub.type.agent":"Agent","sub.type.plugin":"\u63D2\u4EF6","sub.type.space":"Space","sub.type.theme":"\u4E3B\u9898","sub.type.amadeus_plugin":"Amadeus \u63D2\u4EF6","sub.pending":"\u5F85\u5BA1\u6838","sub.approved":"\u5DF2\u4E0A\u67B6","sub.rejected":"\u5DF2\u9A73\u56DE","sub.pendingVersion":"v{version} \u66F4\u65B0\u5F85\u5BA1\u6838","sub.rejectedVersion":"v{version} \u66F4\u65B0\u5DF2\u9A73\u56DE","sub.submit":"\u63D0\u4EA4\u5BA1\u6838","sub.submitted":"\u6295\u7A3F\u5DF2\u63D0\u4EA4\uFF0C\u5BA1\u6838\u7ED3\u679C\u4F1A\u663E\u793A\u5728\u8FD9\u91CC\u548C\u4F60\u7684\u6536\u4EF6\u7BB1\u91CC\u3002","sub.updated":"\u65B0\u7248\u672C\u5DF2\u63D0\u4EA4\u5BA1\u6838\u3002\u5BA1\u6838\u901A\u8FC7\u524D\u5546\u5E97\u7167\u65E7\u63D0\u4F9B\u5DF2\u4E0A\u67B6\u7684\u7248\u672C\uFF0C\u7ED3\u679C\u4F1A\u53D1\u5230\u4F60\u7684\u6536\u4EF6\u7BB1\u3002","sub.repo":"GitHub \u516C\u5F00\u4ED3\u5E93","sub.npm":"npm \u516C\u5F00\u5305","sub.repoHint":"\u4ECE\u4ED3\u5E93\u8BFB\u53D6 README \u548C Release\uFF1B\u4ED3\u5E93\u4F5C\u8005\u663E\u793A\u4E3A\u53D1\u5E03\u4EBA\u3002","sub.npmHint":"\u4ECE npm \u8BFB\u53D6\u5305\u4FE1\u606F\uFF1B\u5BF9\u5E94\u516C\u5F00\u4ED3\u5E93\u7684\u4F5C\u8005\u663E\u793A\u4E3A\u53D1\u5E03\u4EBA\u3002","sub.reviewHint":"\u65B0\u7248\u672C\u9700\u91CD\u65B0\u5BA1\u6838\uFF0C\u5BA1\u6838\u901A\u8FC7\u540E\u624D\u5411\u7528\u6237\u63D0\u4F9B\u3002\u4F60\u7684 Forsion \u8D26\u53F7\u7528\u4E8E\u7BA1\u7406\u6295\u7A3F\u3002","sub.zipHint":"\u6700\u5927 50 MB\uFF0C\u5305\u5185\u5305\u542B\u5BF9\u5E94\u7684 manifest \u4E0E\u5165\u53E3\u6587\u4EF6\u3002","sub.filter":"\u6309\u72B6\u6001\u7B5B\u9009","sub.all":"\u5168\u90E8","sub.noResults":"\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684\u6295\u7A3F","sub.downloads":"{n} \u6B21\u4E0B\u8F7D","sub.errName":"\u8BF7\u586B\u5199\u540D\u79F0\u3002","sub.errSource":"\u8BF7\u586B\u5199\u516C\u5F00\u4ED3\u5E93\u5730\u5740\u6216 npm \u5305\u540D\u3002","sub.errZip":"\u8BF7\u9009\u62E9 ZIP \u5305\u3002","sub.errLarge":"ZIP \u5305\u4E0D\u80FD\u8D85\u8FC7 50 MB\u3002","sub.err.market_npm_invalid":"npm \u5305\u4E0D\u5B58\u5728\u6216\u4E0D\u7B26\u5408\u63D2\u4EF6\u53D1\u5E03\u89C4\u8303\u3002","sub.err.market_npm_source":"\u8BF7\u901A\u8FC7 npm \u53D1\u5E03\u5E76\u91CD\u65B0\u5BA1\u6838\u65B0\u7248\u3002","sub.err.market_github_source":"\u8BF7\u5728 GitHub \u53D1\u5E03 Release \u5E76\u91CD\u65B0\u5BA1\u6838\u65B0\u7248\u3002","sub.err.market_not_found":"\u6295\u7A3F\u4E0D\u5B58\u5728\uFF0C\u8BF7\u5237\u65B0\u540E\u91CD\u8BD5\u3002","sub.err.market_zip_required":"\u8BF7\u9009\u62E9 ZIP \u5305\u3002","sub.err.market_zip_invalid":"ZIP \u5305\u7ED3\u6784\u4E0D\u7B26\u5408\u53D1\u5E03\u89C4\u8303\u3002","sub.err.market_zip_too_large":"ZIP \u5305\u4E0D\u80FD\u8D85\u8FC7 50 MB\u3002","sub.err.market_version_required":"\u5305\u91CC\u6CA1\u5199\u7248\u672C\u53F7\u3002\u5728 manifest \u91CC\u5199\u4E0A\u7248\u672C\u53F7\uFF08\u6280\u80FD\u5199\u5728 SKILL.md \u7684 version \u6216 metadata.version\uFF09\u518D\u6253\u5305\u3002","sub.err.market_version_invalid":"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u7248\u672C\u53F7\u3002","sub.err.market_version_mismatch":"\u7248\u672C\u53F7\u4E0E\u5305\u5185 manifest \u4E0D\u4E00\u81F4\u3002","sub.err.market_version_not_newer":"\u65B0\u7248\u987B\u9AD8\u4E8E\u5F53\u524D\u5DF2\u4E0A\u67B6\u7248\u672C\u3002","sub.err.market_icon_invalid":"\u56FE\u6807\u5E94\u4E3A 64\u2013512 px \u7684\u6B63\u65B9\u5F62 PNG\u3002","sub.err.market_duplicate":"\u8BE5\u5185\u5BB9\u5DF2\u6709\u6295\u7A3F\uFF0C\u8BF7\u7BA1\u7406\u73B0\u6709\u6295\u7A3F\u3002","sub.err.market_update_pending":"\u5DF2\u6709\u65B0\u7248\u7B49\u5F85\u5BA1\u6838\uFF0C\u8BF7\u5148\u7B49\u5F85\u5BA1\u6838\u7ED3\u679C\u3002","sub.err.market_stale":"\u6295\u7A3F\u5DF2\u53D1\u751F\u53D8\u5316\uFF0C\u8BF7\u5237\u65B0\u540E\u91CD\u8BD5\u3002","sub.notNewer":"\u5305\u91CC\u7684\u7248\u672C\u662F v{version}\uFF0C\u8981\u9AD8\u4E8E\u5546\u5E97\u5F53\u524D\u7684 v{current}\u3002","sub.reqNone":"\u6CA1\u6709\u58F0\u660E\u7248\u672C\u8981\u6C42\u548C\u5E73\u53F0","sub.dropTitle":"\u628A ZIP \u62D6\u5230\u8FD9\u91CC\uFF0C\u6216\u70B9\u8FD9\u91CC\u9009\u62E9","sub.dropHint":"\u6700\u5927 50 MB\u3002\u9009\u597D\u540E\u5148\u68C0\u67E5\uFF0C\u4E0D\u4F1A\u76F4\u63A5\u63D0\u4EA4\u3002","sub.dropReplace":"{size} \xB7 \u62D6\u5165\u6216\u70B9\u8FD9\u91CC\u6362\u4E00\u4E2A","sub.checkType":"\u7C7B\u578B","sub.checkVersion":"\u7248\u672C","sub.checkIcon":"\u56FE\u6807","sub.checkReadme":"\u8BF4\u660E\u6587\u6863","sub.checkReq":"\u8981\u6C42","sub.checkWarn":"\u6CE8\u610F","sub.iconYes":"\u5305\u91CC\u6709 icon.png","sub.iconNo":"\u5305\u91CC\u6CA1\u6709 icon.png\uFF0C\u5361\u7247\u663E\u793A\u7C7B\u578B\u56FE\u6807","sub.readmeYes":"\u53D6\u5305\u91CC\u7684 README.md","sub.readmeKeep":"\u5305\u91CC\u6CA1\u6709 README.md\uFF0C\u6CBF\u7528\u73B0\u5728\u7684\u8BF4\u660E","sub.readmeNo":"\u5305\u91CC\u6CA1\u6709 README.md","sub.warn.no_manifest":"\u5305\u91CC\u6CA1\u627E\u5230\u6E05\u5355\u6587\u4EF6\uFF08manifest\uFF09","sub.warn.type_mismatch":"\u5305\u91CC\u7684\u7C7B\u578B\u548C\u8FD9\u6761\u6295\u7A3F\u7684\u7C7B\u578B\u4E0D\u4E00\u81F4","sub.warn.tag_version_mismatch":"Release \u6807\u7B7E\u548C\u5305\u91CC\u7684\u7248\u672C\u53F7\u4E0D\u4E00\u81F4","sub.warn.id_slug_mismatch":"\u5305\u91CC\u7684 id \u548C\u5B89\u88C5\u76EE\u5F55\u540D\u4E0D\u540C\u3002\u4E0D\u5F71\u54CD\u7528\u6237\uFF1A\u66F4\u65B0\u7167\u5E38\u88C5\u56DE\u539F\u76EE\u5F55\uFF0C\u4E0D\u4F1A\u591A\u51FA\u4E00\u4EFD\uFF1B\u5B89\u88C5\u76EE\u5F55\u540D\u4E0A\u67B6\u540E\u4E0D\u80FD\u6539","sub.warn.engine_slug_mismatch":"\u5F15\u64CE\u63D2\u4EF6\u7684\u76EE\u5F55\u540D\u548C\u5B83\u7684 id \u4E0D\u4E00\u81F4","sub.warn.no_entry":"Amadeus \u63D2\u4EF6\u7F3A\u5C11\u5165\u53E3 main.js","sub.warn.has_node_modules":"\u5305\u91CC\u5E26\u4E86 node_modules\uFF0C\u4F53\u79EF\u5927\uFF0C\u901A\u5E38\u4E5F\u7528\u4E0D\u4E0A","sub.zipListedNote":"\u5BA1\u6838\u901A\u8FC7\u524D\uFF0C\u5546\u5E97\u7EE7\u7EED\u63D0\u4F9B\u5DF2\u4E0A\u67B6\u7684\u7248\u672C\u3002\u5BA1\u6838\u7ED3\u679C\u4F1A\u53D1\u5230\u4F60\u7684\u6536\u4EF6\u7BB1\u3002","sub.zipUnlistedNote":"\u63D0\u4EA4\u540E\u66FF\u6362\u73B0\u5728\u8FD9\u4EFD\u5305\uFF0C\u91CD\u65B0\u8FDB\u5165\u5BA1\u6838\u3002","sub.submitVersion":"\u63D0\u4EA4 v{version} \u5BA1\u6838","sub.checkNew":"\u68C0\u67E5\u65B0\u7248\u672C","sub.checkAgain":"\u518D\u68C0\u67E5\u4E00\u6B21","sub.upToDate":"\u4E0A\u6E38\u6700\u65B0\u662F v{version}\uFF0C\u5546\u5E97\u5DF2\u662F v{current}\uFF0C\u6CA1\u6709\u65B0\u7248\u672C\u3002\u53D1\u5E03\u65B0\u7248\u672C\u540E\u518D\u6765\u68C0\u67E5\u3002","sub.upstreamLatest":"\u4E0A\u6E38\u6700\u65B0\uFF1Av{version}","sub.releaseTag":"Release {tag}","sub.storeHas":"\u5546\u5E97\u5F53\u524D v{version}","sub.githubNote":"\u901A\u8FC7\u540E\u5546\u5E97\u9501\u5B9A\u5230 v{version}\u3002\u4EE5\u540E\u5728 GitHub \u53D1\u4E86\u65B0 Release\uFF0C\u56DE\u5230\u8FD9\u91CC\u518D\u68C0\u67E5\u4E00\u6B21\u3002","sub.npmNote":"\u901A\u8FC7\u540E\u5546\u5E97\u9501\u5B9A\u5230 v{version}\u3002\u4EE5\u540E\u5728 npm \u53D1\u4E86\u65B0\u7248\u672C\uFF0C\u56DE\u5230\u8FD9\u91CC\u518D\u68C0\u67E5\u4E00\u6B21\u3002","sub.secVersion":"\u7248\u672C","sub.secInfo":"\u5546\u5E97\u4FE1\u606F","sub.secHistory":"\u8BB0\u5F55","sub.edit":"\u7F16\u8F91","sub.unset":"\u672A\u586B\u5199","sub.infoNote":"\u4E0D\u7528\u4F20\u5305\u3001\u4E0D\u7528\u5347\u7248\u672C\u3002\u5DF2\u4E0A\u67B6\u7684\u4FEE\u6539\u540C\u6837\u8981\u8FC7\u5BA1\u6838\uFF0C\u5BA1\u6838\u524D\u5546\u5E97\u7167\u65E7\u663E\u793A\u539F\u6765\u7684\u4FE1\u606F\u3002","sub.submitInfo":"\u63D0\u4EA4\u4FEE\u6539","sub.back":"\u8FD4\u56DE\u5217\u8868","sub.pendingInfo":"\u5546\u5E97\u4FE1\u606F\u4FEE\u6539\u5F85\u5BA1\u6838","sub.rejectedInfo":"\u5546\u5E97\u4FE1\u606F\u4FEE\u6539\u5DF2\u9A73\u56DE","sub.pendingHint":"\u5BA1\u6838\u901A\u8FC7\u524D\u5546\u5E97\u7167\u65E7\uFF0C\u5BA1\u6838\u7ED3\u679C\u4F1A\u53D1\u5230\u4F60\u7684\u6536\u4EF6\u7BB1\u3002","sub.inReview":"\u6B63\u5728\u7B49\u5F85\u9996\u6B21\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u4F1A\u53D1\u5230\u4F60\u7684\u6536\u4EF6\u7BB1\u3002","sub.histApproved":"v{version} \u5BA1\u6838\u901A\u8FC7","sub.histSubmitted":"\u6295\u7A3F","sub.resubmitted":"\u5DF2\u91CD\u65B0\u63D0\u4EA4\u5BA1\u6838\uFF0C\u7ED3\u679C\u4F1A\u53D1\u5230\u4F60\u7684\u6536\u4EF6\u7BB1\u3002","sub.infoSubmitted":"\u4FEE\u6539\u5DF2\u63D0\u4EA4\u5BA1\u6838\uFF0C\u5BA1\u6838\u524D\u5546\u5E97\u7167\u65E7\u663E\u793A\u539F\u6765\u7684\u4FE1\u606F\u3002","sub.err.market_no_release":"\u8FD9\u4E2A\u4ED3\u5E93\u8FD8\u6CA1\u6709 GitHub Release\u3002\u5546\u5E97\u8981\u9501\u5B9A\u4E00\u4E2A\u7248\u672C\uFF0C\u5148\u5728 GitHub \u53D1\u4E00\u4E2A Release\uFF0C\u518D\u56DE\u6765\u68C0\u67E5\u3002","sub.err.market_no_changes":"\u6CA1\u6709\u6539\u52A8\u3002","sub.err.market_dryrun_unsupported":"GitHub \u548C npm \u6295\u7A3F\u6CA1\u6CD5\u63D0\u524D\u68C0\u67E5\uFF0C\u76F4\u63A5\u63D0\u4EA4\u5BA1\u6838\u5373\u53EF\u3002","sub.capReason":"\u5185\u90E8\u63A5\u53E3\u7533\u8BF7\u7406\u7531","sub.capReasonHint":"\u63D2\u4EF6\u58F0\u660E\u4E86 internals-raw\uFF08\u76F4\u63A5\u64CD\u4F5C Forsion \u5185\u90E8\u5BF9\u8C61\uFF09\u65F6\u5FC5\u586B\uFF1A\u5199\u660E\u8981\u7528\u54EA\u4E9B\u5185\u90E8\u6A21\u5757\u3001\u4E3A\u4EC0\u4E48\u6B63\u5F0F\u63A5\u53E3\u4E0D\u591F\u3002","sub.capReasonRequired":"\u8FD9\u4E2A\u5305\u58F0\u660E\u4E86 internals-raw\uFF0C\u7533\u8BF7\u7406\u7531\u5FC5\u586B\u3002\u5BA1\u6838\u53EA\u653E\u884C\u8FD9\u4E00\u4E2A\u7248\u672C\uFF0C\u4E4B\u540E\u7684\u7248\u672C\u4ECD\u58F0\u660E\u5B83\u7684\u7167\u5E38\u8981\u5BA1\u6838\u3002","sub.err.internals_raw_reason_required":"\u63D2\u4EF6\u58F0\u660E\u4E86 internals-raw\uFF0C\u8BF7\u586B\u5199\u5185\u90E8\u63A5\u53E3\u7533\u8BF7\u7406\u7531\uFF1A\u8981\u7528\u54EA\u4E9B\u5185\u90E8\u6A21\u5757\u3001\u4E3A\u4EC0\u4E48\u6B63\u5F0F\u63A5\u53E3\u4E0D\u591F\u3002","sub.err.internals_raw_needs_release":"\u58F0\u660E\u4E86 internals-raw \u7684 GitHub \u63D2\u4EF6\u8981\u5148\u53D1\u4E00\u4E2A Release\uFF1A\u5BA1\u6838\u7ED1\u5B9A\u5728\u4E00\u4E2A\u7248\u672C\u4E0A\u3002\u5728 GitHub \u53D1\u5E03 Release \u540E\u518D\u63D0\u4EA4\u3002","page.account":"\u8D26\u53F7","page.membershipUsage":"\u4F1A\u5458\u4E0E\u7528\u91CF","page.membershipQuota":"\u4F1A\u5458\u4E0E\u989D\u5EA6","page.pointsInvite":"\u79EF\u5206\u4E0E\u9080\u8BF7","account.details.title":"\u767B\u5F55\u4E0E\u8D44\u6599","account.details.desc":"\u5934\u50CF\u3001\u6635\u79F0\u4E0E\u7B80\u4ECB\u5728\u300C\u4E2A\u4EBA\u4E3B\u9875\u300D\u4E2D\u7F16\u8F91\u3002","account.details.username":"\u7528\u6237\u540D","diag.unavailable":"\u5F53\u524D\u5BBF\u4E3B\u4E0D\u652F\u6301\u8BCA\u65AD\u6570\u636E\uFF0C\u8BF7\u66F4\u65B0 Forsion \u540E\u91CD\u8BD5\u3002","page.profile":"\u4E2A\u4EBA\u4E3B\u9875","page.quota":"\u989D\u5EA6\u4E0E\u79EF\u5206","page.backpack":"\u80CC\u5305","page.security":"\u5B89\u5168","page.usage":"\u7528\u91CF\u8BB0\u5F55","page.feedback":"\u53CD\u9988","store.group":"\u4F1A\u5458\u4E0E\u79EF\u5206","store.membership":"\u4F1A\u5458","store.membership.desc":"\u5347\u7EA7\u6863\u4F4D\uFF0C\u83B7\u5F97\u66F4\u591A\u6BCF\u65E5\u4E0E\u6BCF\u5468\u989D\u5EA6","store.points":"\u79EF\u5206","store.points.desc":"\u5145\u503C\u79EF\u5206\uFF0C\u7528\u6765\u5151\u6362\u7269\u54C1","store.items":"\u7269\u54C1","store.items.desc":"\u7528\u79EF\u5206\u5151\u6362\u7684\u7269\u54C1\uFF0C\u5151\u6362\u540E\u8FDB\u80CC\u5305","store.status":"\u6863\u4F4D\u4E0E\u79EF\u5206","store.tier":"\u5F53\u524D\u6863\u4F4D","store.balance":"\u79EF\u5206\u4F59\u989D","store.choosePlan":"\u9009\u62E9\u6863\u4F4D","store.payHint":"\u4ED8\u6B3E\u5728\u6D4F\u89C8\u5668\u7684\u652F\u4ED8\u9875\u5B8C\u6210\uFF0C\u56DE\u5230\u5E94\u7528\u540E\u81EA\u52A8\u5237\u65B0","store.payOff":"\u6682\u65F6\u4E0D\u80FD\u8D2D\u4E70","store.period":"\u4ED8\u8D39\u5468\u671F","store.period.monthly":"\u6708\u4ED8","store.period.quarterly":"\u5B63\u4ED8","store.period.yearly":"\u5E74\u4ED8","store.per.monthly":"/ \u6708","store.per.quarterly":"/ \u5B63","store.per.yearly":"/ \u5E74","store.currentTier":"\u5F53\u524D\u6863\u4F4D","store.pay":"\u53BB\u652F\u4ED8","store.payPrice":"{price} \u53BB\u652F\u4ED8","store.noPlans":"\u6682\u65F6\u6CA1\u6709\u53EF\u9009\u7684\u6863\u4F4D","store.packs":"\u79EF\u5206\u5305","store.packsHint":"\u4ED8\u6B3E\u5728\u6D4F\u89C8\u5668\u7684\u652F\u4ED8\u9875\u5B8C\u6210\uFF0C\u4ED8\u6B3E\u540E\u79EF\u5206\u5373\u65F6\u5230\u8D26","store.noPacks":"\u6682\u65F6\u6CA1\u6709\u79EF\u5206\u5305","store.kind.pack":"\u79EF\u5206\u5305","store.kind.card":"\u9053\u5177","store.kind.code":"\u5151\u6362\u7801","store.kind.item":"\u7269\u54C1","store.nPoints":"{n} \u79EF\u5206","store.instant":"\u4ED8\u6B3E\u540E\u5373\u65F6\u5230\u8D26","store.kind.custom":"\u81EA\u5B9A\u4E49","store.customPack":"\u81EA\u5B9A\u4E49\u6570\u91CF","store.customPackHint":"{min} \u79EF\u5206\u8D77\u5145\uFF0C\u5728\u652F\u4ED8\u9875\u586B\u5199\u8981\u5145\u7684\u79EF\u5206\u6570","store.customPackPay":"\u586B\u5199\u6570\u91CF","store.pricingTitle":"\u53C2\u8003\u6D88\u8017\uFF081\xD7 \u500D\u7387\uFF09","store.pricingFormula":"\u6D88\u8017\u79EF\u5206 \u2248\uFF08\u672A\u547D\u4E2D\u7F13\u5B58\u7684\u8F93\u5165 token \xD7 {input} + \u8F93\u51FA token \xD7 {output} + \u7F13\u5B58\u547D\u4E2D\u7684\u8F93\u5165 token \xD7 {cached}\uFF09\xF7 1,000,000 \xD7 \u6A21\u578B\u500D\u7387","store.pricingExample":"\u4F8B\uFF1A\u4E00\u6B21\u8F93\u5165 1 \u4E07 token\u3001\u8F93\u51FA 2 \u5343 token\uFF0C1\xD7 \u6A21\u578B\u7EA6\u6D88\u8017 {n} \u79EF\u5206\u3002","store.redeemTitle":"\u79EF\u5206\u5151\u6362","store.redeemHint":"\u7528\u79EF\u5206\u5151\u6362\u5728\u5E94\u7528\u5185\u76F4\u63A5\u5B8C\u6210\uFF0C\u5151\u6362\u540E\u7269\u54C1\u8FDB\u80CC\u5305","store.redeem":"{n} \u79EF\u5206\u5151\u6362","store.redeemConfirm":"\u786E\u8BA4\u82B1 {n} \u79EF\u5206","store.redeemed":"\u5DF2\u5151\u6362\uFF0C\u7269\u54C1\u5728\u80CC\u5305\u91CC","store.uncertain":"\u6CA1\u6536\u5230\u7ED3\u679C\u3002\u5148\u5230\u80CC\u5305\u770B\u4E00\u4E0B\u6709\u6CA1\u6709\u5230\u8D26\uFF0C\u518D\u51B3\u5B9A\u8981\u4E0D\u8981\u91CD\u8BD5\u3002","store.soldOut":"\u5DF2\u552E\u7F44","store.left":"\u4F59 {n}","store.toBackpack":"\u5151\u6362\u540E\u8FDB\u80CC\u5305","store.limitReached":"\u5DF2\u8FBE\u8D2D\u4E70\u4E0A\u9650","store.unavailable":"\u8FD9\u4EF6\u7269\u54C1\u6682\u65F6\u4E0D\u80FD\u5151\u6362","store.noItems":"\u6682\u65F6\u6CA1\u6709\u53EF\u5151\u6362\u7684\u7269\u54C1","store.itemsOff":"\u7269\u54C1\u5151\u6362\u6682\u672A\u5F00\u653E","store.openBackpack":"\u6253\u5F00\u80CC\u5305","backpack.desc":"\u5728\u8FD9\u91CC\u67E5\u770B\u4F60\u83B7\u5F97\u7684\u7269\u54C1\uFF0C\u70B9\u51FB\u683C\u5B50\u67E5\u770B\u8BE6\u60C5\u3002","backpack.refresh":"\u5237\u65B0","backpack.total":"\u5171 {n} \u4EF6\u7269\u54C1","backpack.grid":"\u80CC\u5305\u7269\u54C1","backpack.slot":"{name}\uFF0C\u6570\u91CF {n}","backpack.item":"\u7269\u54C1","backpack.empty":"\u80CC\u5305\u8FD8\u662F\u7A7A\u7684","backpack.emptyHint":"\u5151\u6362\u6216\u83B7\u8D60\u7684\u7269\u54C1\u4F1A\u51FA\u73B0\u5728\u8FD9\u91CC\u3002","backpack.select":"\u70B9\u51FB\u7269\u54C1\u67E5\u770B\u8BE6\u60C5","backpack.details":"\u7269\u54C1\u8BE6\u60C5","backpack.quantity":"\u6301\u6709\u6570\u91CF","backpack.acquired":"\u83B7\u5F97\u65F6\u95F4","backpack.source":"\u83B7\u5F97\u65B9\u5F0F","backpack.source.points":"\u79EF\u5206\u5151\u6362","backpack.source.admin":"\u8D60\u9001","backpack.source.reward":"\u5956\u52B1","backpack.source.other":"\u4E91\u7AEF\u53D1\u653E","backpack.consumable":"\u6D88\u8017\u54C1","backpack.voucher":"\u5361\u5238","backpack.getCards":"\u67E5\u770B\u989D\u5EA6","backpack.manageCards":"\u53BB\u4F7F\u7528","backpack.reveal":"\u67E5\u770B\u5361\u5BC6","backpack.copyKey":"\u590D\u5236\u5361\u5BC6","backpack.noKey":"\u8FD9\u4EF6\u7269\u54C1\u6CA1\u6709\u5361\u5BC6\u3002","backpack.use":"\u4F7F\u7528","backpack.confirmUse":"\u786E\u8BA4\u4F7F\u7528","backpack.consumeConfirm":"\u4F7F\u7528\u540E\u6D88\u8017 1 \u4EF6\u7269\u54C1\u3002","backpack.collectible":"\u7EAA\u5FF5\u54C1","backpack.effect.points":"+{n} \u79EF\u5206","backpack.effect.cards":"+{n} \u5F20\u91CD\u7F6E\u5361","backpack.effect.quota":"\u91CD\u7F6E\u4ECA\u65E5\u4E0E\u672C\u5468\u989D\u5EA6","backpack.rarity.common":"\u666E\u901A","backpack.rarity.rare":"\u7A00\u6709","backpack.rarity.epic":"\u53F2\u8BD7","backpack.rarity.legendary":"\u4F20\u8BF4","backpack.unavailable":"\u8FD9\u4EF6\u7269\u54C1\u5DF2\u4E0D\u53EF\u7528\uFF0C\u8BF7\u5237\u65B0\u80CC\u5305\u3002","backpack.notUsable":"\u8FD9\u4EF6\u7269\u54C1\u4E0D\u80FD\u4F7F\u7528\u3002","backpack.quotaUnavailable":"\u8BF7\u5148\u4F7F\u7528\u4E91\u7AEF AI \u521D\u59CB\u5316\u989D\u5EA6\uFF0C\u518D\u4F7F\u7528\u8FD9\u4EF6\u7269\u54C1\u3002","common.cancel":"\u53D6\u6D88","common.copied":"\u5DF2\u590D\u5236","common.copyFailed":"\u590D\u5236\u5931\u8D25","common.done":"\u5B8C\u6210","common.loadFailed":"\u6CA1\u80FD\u52A0\u8F7D","common.loadMore":"\u52A0\u8F7D\u66F4\u591A","common.loading":"\u52A0\u8F7D\u4E2D\u2026","common.openInBrowser":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00","common.retry":"\u91CD\u8BD5","common.save":"\u4FDD\u5B58","common.thisWeek":"\u672C\u5468","common.today":"\u4ECA\u65E5","common.unlimited":"\u4E0D\u9650","ann.eyebrow":"FORSION \xB7 \u516C\u544A","ann.close":"\u5173\u95ED","ann.ok":"\u77E5\u9053\u4E86","signin.button":"\u767B\u5F55 Forsion","signin.desc":"\u767B\u5F55 Forsion \u8D26\u53F7\u540E\uFF0C\u53EF\u4EE5\u5728\u8FD9\u91CC\u7BA1\u7406\u8D26\u53F7\u3001\u989D\u5EA6\u3001\u5B89\u5168\u3001\u6295\u7A3F\u4E0E\u53CD\u9988\u3002","signin.pending":"\u7B49\u5F85\u5728\u6D4F\u89C8\u5668\u4E2D\u5B8C\u6210\u767B\u5F55\u2026","signin.deviceHint":"\u6D4F\u89C8\u5668\u4F1A\u81EA\u52A8\u6253\u5F00\u767B\u5F55\u9875\uFF1B\u6CA1\u6709\u6253\u5F00\u7684\u8BDD\uFF0C\u7528\u624B\u673A\u626B\u7801\u6216\u6253\u5F00\u4E0B\u9762\u7684\u94FE\u63A5\uFF0C\u5E76\u6838\u5BF9\u9A8C\u8BC1\u7801\u3002","signin.code":"\u9A8C\u8BC1\u7801","signin.openLink":"\u6253\u5F00\u767B\u5F55\u9875","signin.copyLink":"\u590D\u5236\u94FE\u63A5","signin.qrLabel":"\u767B\u5F55\u4E8C\u7EF4\u7801","account.profile.title":"\u4E2A\u4EBA\u8D44\u6599","account.profile.desc":"\u5934\u50CF\u3001\u6635\u79F0\uFF0C\u4EE5\u53CA\u7ED1\u5B9A\u7684\u624B\u673A\u548C\u90AE\u7BB1","account.avatar.change":"\u66F4\u6362\u5934\u50CF","account.avatar.saved":"\u5934\u50CF\u5DF2\u66F4\u65B0","account.nickname.edit":"\u4FEE\u6539\u6635\u79F0","account.nickname.label":"\u6635\u79F0","account.nickname.saved":"\u6635\u79F0\u5DF2\u66F4\u65B0","account.role.admin":"\u7BA1\u7406\u5458","account.username":"\u7528\u6237\u540D {name}","account.contact.phone":"\u624B\u673A","account.contact.email":"\u90AE\u7BB1","account.contact.unbound":"\u672A\u7ED1\u5B9A","account.contact.manage":"\u53BB\u5B89\u5168\u9875\u7BA1\u7406","account.web.open":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00\u4E2A\u4EBA\u4E2D\u5FC3","account.web.desc":"AI \u5927\u8111\u4E0E\u7F51\u9875\u4E3B\u9898\u5728\u7F51\u9875\u4E2A\u4EBA\u4E2D\u5FC3\u7BA1\u7406\u3002","wechat.title":"\u5FAE\u4FE1\u526A\u85CF\u52A9\u624B","wechat.desc":"\u628A\u5C0F\u7EA2\u4E66\u3001B \u7AD9\u3001X \u548C\u7F51\u9875\u94FE\u63A5\u53D1\u7ED9 Forsion \u4F01\u4E1A\u5FAE\u4FE1\u53F7\uFF0C\u81EA\u52A8\u526A\u85CF\u8FDB\u4F60\u4E91\u7AEF\u667A\u5E93\u7684 Plugins/wechat-helper \u6587\u4EF6\u5939\uFF1B\u5176\u4ED6\u6D88\u606F\u6309\u5929\u8BB0\u8FDB\u65E5\u8BB0\u3002","wechat.status":"\u7ED1\u5B9A\u72B6\u6001","wechat.bound":"\u5DF2\u7ED1\u5B9A","wechat.boundAt":"{date} \u7ED1\u5B9A","wechat.where":"\u53D1\u7ED9\u4F01\u4E1A\u5FAE\u4FE1\u53F7\u7684\u94FE\u63A5\u4F1A\u51FA\u73B0\u5728\u667A\u5E93\u7684 Plugins/wechat-helper \u91CC\uFF0C\u4E00\u822C\u4E00\u5206\u949F\u5185\u5230\u3002","wechat.notEligible":"\u4F60\u5F53\u524D\u7684\u4F1A\u5458\u6863\u6682\u4E0D\u80FD\u4F7F\u7528\u5FAE\u4FE1\u526A\u85CF\u52A9\u624B\u3002","wechat.disabled":"\u5FAE\u4FE1\u526A\u85CF\u52A9\u624B\u6682\u672A\u5F00\u653E\u3002","wechat.code":"\u7ED1\u5B9A\u7801","wechat.contact":"\u5148\u5728\u5FAE\u4FE1\u91CC\u6DFB\u52A0\u300C{contact}\u300D","wechat.contactUnknown":"\u5148\u5728\u5FAE\u4FE1\u91CC\u6DFB\u52A0 Forsion \u4F01\u4E1A\u5FAE\u4FE1\u53F7","wechat.getCode":"\u83B7\u53D6\u7ED1\u5B9A\u7801","wechat.newCode":"\u6362\u4E00\u4E2A","wechat.copy":"\u590D\u5236\u7ED1\u5B9A\u7801","wechat.send":"{contact}\uFF0C\u518D\u628A\u8FD9\u4E32\u6570\u5B57\u53D1\u7ED9\u5B83\u3002","wechat.waiting":"\u7B49\u5F85\u7ED1\u5B9A\u2026\u7ED1\u5B9A\u7801\u5728 {time} \u524D\u6709\u6548\u3002\u4F01\u4E1A\u5FAE\u4FE1\u90A3\u8FB9\u4E0D\u4F1A\u56DE\u590D\uFF0C\u7ED1\u4E0A\u540E\u8FD9\u91CC\u4F1A\u81EA\u52A8\u66F4\u65B0\u3002","wechat.unbind":"\u89E3\u7ED1","wechat.unbindConfirm":"\u786E\u8BA4\u89E3\u7ED1","address.label":"\u4E3B\u9875\u5730\u5740","address.change":"\u6539\u5730\u5740","address.title":"\u6539\u4E3B\u9875\u5730\u5740","address.desc":"\u4F60\u53D1\u5E03\u7684\u4F5C\u54C1\u90FD\u5728\u8FD9\u4E2A\u5730\u5740\u4E0B\u9762\u3002\u6539\u4E86\u4E4B\u540E\uFF0C\u65E7\u5730\u5740\u4F1A\u4E00\u76F4\u8DF3\u8F6C\u5230\u65B0\u5730\u5740\uFF0C\u4E5F\u4E0D\u4F1A\u88AB\u522B\u4EBA\u62FF\u53BB\u7528\u3002","address.now":"\u73B0\u5728","address.new":"\u6539\u6210","address.rule":"3\u201330 \u4F4D\uFF0C\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u6216\u300C-\u300D","address.checking":"\u6B63\u5728\u67E5\u80FD\u4E0D\u80FD\u7528\u2026","address.ok":"\u53EF\u4EE5\u7528","address.bad":"\u8FD9\u4E2A\u5730\u5740\u4E0D\u80FD\u7528","address.same":"\u8FD9\u5C31\u662F\u4F60\u73B0\u5728\u7684\u5730\u5740","address.freeOne":"\u8FD9\u662F\u4F60\u7684\u4E00\u6B21\u514D\u8D39\u4FEE\u6539","address.freeN":"\u8FD9\u6B21\u514D\u8D39\uFF08\u4F60\u6709 {n} \u6B21\u514D\u8D39\u4FEE\u6539\uFF09","address.freeAfter":"\u4E4B\u540E\u6539\u5730\u5740\u8981\u7528\u5730\u5740\u6539\u540D\u5361","address.card":"\u7528\u6389 1 \u5F20\u5730\u5740\u6539\u540D\u5361","address.cardHave":"\u4F60\u6709 {n} \u5F20","address.need":"\u6539\u5730\u5740\u8981 1 \u5F20\u5730\u5740\u6539\u540D\u5361\uFF0C\u4F60\u8FD8\u6CA1\u6709","address.price":"{price} \u79EF\u5206 \xB7 \u4F59\u989D {balance}","address.soldout":"\u73B0\u5728\u4E70\u4E0D\u5230\u5730\u5740\u6539\u540D\u5361","address.cooldown":"\u4E24\u6B21\u6539\u5730\u5740\u81F3\u5C11\u9694 {days} \u5929","address.cooldownUntil":"{date} \u4E4B\u540E\u53EF\u4EE5\u518D\u6539","address.go":"\u6539\u5730\u5740","address.goCard":"\u7528\u5361\u6539\u5730\u5740","address.goBuy":"\u7528 {price} \u79EF\u5206\u4E70\u4E00\u5F20\u5E76\u6539","address.shop":"\u53BB\u5546\u5E97\u770B\u770B","address.done":"\u4E3B\u9875\u5730\u5740\u6539\u6210\u4E86 {url}","address.loadFailed":"\u5730\u5740\u4FE1\u606F\u6682\u65F6\u62FF\u4E0D\u5230\u3002","address.errTaken":"\u8FD9\u4E2A\u5730\u5740\u521A\u88AB\u522B\u4EBA\u7528\u4E86\uFF0C\u6362\u4E00\u4E2A\u5427\u3002","address.errNeedCard":"\u514D\u8D39\u6B21\u6570\u7528\u5B8C\u4E86\uFF0C\u6539\u5730\u5740\u8981\u4E00\u5F20\u5730\u5740\u6539\u540D\u5361\u3002","address.errCooldown":"\u8FD8\u6CA1\u5230\u80FD\u6539\u7684\u65F6\u5019\uFF1A{date} \u4E4B\u540E\u53EF\u4EE5\u518D\u6539\u3002","address.errPoints":"\u79EF\u5206\u4E0D\u591F\u4E70\u8FD9\u5F20\u5361\u3002","address.errBought":"\u5361\u5DF2\u7ECF\u4E70\u597D\u653E\u8FDB\u80CC\u5305\u4E86\uFF0C\u4F46\u5730\u5740\u6CA1\u6539\u6210\uFF1A{reason}","address.errSoldout":"\u5730\u5740\u6539\u540D\u5361\u521A\u4E0B\u67B6\u4E86\uFF0C\u73B0\u5728\u4E70\u4E0D\u5230\u3002","address.errLimit":"\u5730\u5740\u6539\u540D\u5361\u5DF2\u7ECF\u4E70\u5230\u4E0A\u9650\u4E86\u3002","address.errUnknown":"\u6CA1\u786E\u8BA4\u5230\u6539\u6CA1\u6539\u6210\uFF0C\u7A0D\u540E\u5237\u65B0\u770B\u770B\u518D\u8BF4\u3002","backpack.addressCard":"\u5730\u5740\u6539\u540D\u5361","backpack.addressCard.desc":"\u514D\u8D39\u6B21\u6570\u7528\u5B8C\u540E\uFF0C\u6539\u4E00\u6B21\u4E3B\u9875\u5730\u5740\u7528\u4E00\u5F20\u3002\u65E7\u5730\u5740\u4F1A\u4E00\u76F4\u8DF3\u8F6C\u5230\u65B0\u5730\u5740\uFF0C\u4E0D\u4F1A\u88AB\u522B\u4EBA\u62FF\u8D70\u3002","backpack.addressCard.use":"\u53BB\u6539\u5730\u5740","member.title":"\u4F1A\u5458","member.desc":"\u5F53\u524D\u6863\u4F4D\u3001\u65B9\u6848\u4E0E\u5230\u671F\u65E5","member.upgrade":"\u5347\u7EA7\u4F1A\u5458","member.renew":"\u7EED\u8D39","member.freeName":"\u514D\u8D39\u7248","member.freeHint":"\u5347\u7EA7\u4F1A\u5458\u53EF\u4EE5\u83B7\u5F97\u66F4\u591A AI \u989D\u5EA6","member.expires":"{date} \u5230\u671F","member.noExpiry":"\u957F\u671F\u6709\u6548","member.loadFailed":"\u4F1A\u5458\u4FE1\u606F\u6682\u65F6\u62FF\u4E0D\u5230\u3002","session.title":"\u767B\u5F55","session.desc":"\u7BA1\u7406\u8FD9\u53F0\u8BBE\u5907\u4E0A\u7684\u767B\u5F55\u72B6\u6001","local.title":"\u8FD9\u53F0\u7535\u8111\u4E0A\u7684\u8D26\u53F7","local.desc":"\u5728\u767B\u5F55\u8FC7\u7684\u8D26\u53F7\u4E4B\u95F4\u5207\u6362","local.current":"\u5F53\u524D","local.switch":"\u5207\u6362","local.add":"\u767B\u5F55\u5176\u4ED6\u8D26\u53F7","local.signOut":"\u9000\u51FA\u767B\u5F55","local.empty":"\u8FD8\u6CA1\u6709\u4FDD\u5B58\u7684\u8D26\u53F7","local.loadFailed":"\u8D26\u53F7\u5217\u8868\u6682\u65F6\u8BFB\u4E0D\u5230","diag.title":"\u8BCA\u65AD\u6570\u636E","diag.desc":"\u5E2E\u52A9\u6211\u4EEC\u6392\u67E5\u95EE\u9898\u3001\u6539\u8FDB Forsion\u3002\u9ED8\u8BA4\u5173\u95ED\u3002","diag.enable":"\u4E0A\u4F20\u8BCA\u65AD\u6570\u636E","diag.enableDesc":"\u6253\u5F00\u540E\uFF0C\u8FD9\u53F0\u7535\u8111\u4F1A\u5B9A\u671F\u4E0A\u4F20\u4E00\u4EFD Forsion \u4FE1\u606F\u5FEB\u7167\u5230\u4F60\u7684 Forsion \u8D26\u53F7\uFF0CForsion \u56E2\u961F\u53EF\u4EE5\u67E5\u770B\u3002\u591A\u4E45\u4E0A\u4F20\u4E00\u6B21\u7531 Forsion \u56E2\u961F\u8BBE\u5B9A\uFF0C\u9ED8\u8BA4\u6BCF\u5929\u4E00\u6B21\u3002\u968F\u65F6\u53EF\u4EE5\u5173\u95ED\u3002","diag.collected":"\u4F1A\u4E0A\u4F20","diag.item.app":"\u5E94\u7528\u4E0E\u7CFB\u7EDF\u7684\u7248\u672C\uFF0C\u8FD9\u53F0\u7535\u8111\u7684\u540D\u5B57\u3001\u5185\u5B58\u4E0E\u78C1\u76D8\u4F59\u91CF","diag.item.settings":"\u6A21\u578B\u4E0E\u8BED\u97F3\u7684\u9009\u62E9\uFF0C\u540E\u53F0 Agent \u4E0E\u63D2\u4EF6\u8BBE\u7F6E\u91CC\u7684\u5F00\u5173\u548C\u6570\u503C\uFF0CMCP \u670D\u52A1\u4E0E\u6D88\u606F\u901A\u9053\u7684\u540D\u5B57\u548C\u5F00\u5173","diag.item.agents":"Agent \u4E0E\u56E2\u961F\u7684\u914D\u7F6E\uFF08\u540D\u5B57\u3001\u6A21\u578B\u8FD9\u7C7B\u9009\u9879\uFF1B\u63CF\u8FF0\u4E0E\u63D0\u793A\u8BCD\u53EA\u8BB0\u957F\u5EA6\uFF0C\u6B63\u6587\u5F52\u4E0B\u9762\u300C\u4EBA\u8BBE\u3001\u8BB0\u5FC6\u4E0E\u8FDB\u5316\u8BB0\u5F55\u300D\u90A3\u4E2A\u5F00\u5173\uFF09","diag.item.plugins":"\u5DF2\u5B89\u88C5\u7684\u63D2\u4EF6\u3001\u6280\u80FD\u3001\u4E3B\u9898\u548C Space \u7684\u540D\u5B57\u4E0E\u7248\u672C","diag.item.runs":"\u6700\u8FD1 7 \u5929\u7684\u8FD0\u884C\u8BB0\u5F55\uFF1A\u6BCF\u6B21\u8FD0\u884C\u7684\u72B6\u6001\u548C\u62A5\u9519\u539F\u56E0\uFF0C\u6A21\u578B\u8C03\u7528\u4E0E\u5DE5\u5177\u7684\u7528\u91CF\u3001\u8017\u65F6\uFF08\u4E0D\u5E26\u5BF9\u8BDD\u5185\u5BB9\u548C\u5DE5\u5177\u8BFB\u5199\u7684\u5185\u5BB9\uFF09\uFF0C\u4EE5\u53CA\u5F15\u64CE\u6700\u8FD1\u7684\u8FD0\u884C\u65E5\u5FD7","diag.item.sync":"\u4E91\u540C\u6B65\u7684\u72B6\u6001\uFF1A\u540C\u6B65\u89C4\u5219\u5F00\u5728\u54EA\u51E0\u7C7B\u4E0A\uFF0C\u6700\u8FD1\u51E0\u8F6E\u4E0A\u4F20\u3001\u4E0B\u8F7D\u3001\u5220\u9664\u548C\u51B2\u7A81\u526F\u672C\u7684\u4E2A\u6570\uFF0C\u4EE5\u53CA\u540C\u6B65\u7684\u62A5\u9519\u539F\u56E0\uFF08\u8DEF\u5F84\u4F1A\u906E\u6389\uFF0C\u4E0D\u5E26\u6587\u4EF6\u540D\u548C\u6587\u4EF6\u5185\u5BB9\uFF09","diag.notCollected":"\u4E0D\u4F1A\u4E0A\u4F20\uFF1A\u4FDD\u5B58\u5728\u8FD9\u53F0\u7535\u8111\u4E0A\u7684\u767B\u5F55\u51ED\u636E\u4E0E API \u5BC6\u94A5\u3001\u7B14\u8BB0\u6587\u4EF6\u3001Agent \u7684\u8D44\u6599\u5E93\u3001\u63D2\u4EF6\u6570\u636E\u3002","diag.sessions":"\u5305\u542B\u4F1A\u8BDD\u5185\u5BB9","diag.sessionsDesc":"\u8FD9\u53F0\u7535\u8111\u4E0A\u7684\u5BF9\u8BDD\uFF1A\u4F60\u548C Agent \u7684\u6D88\u606F\u6587\u5B57\u3001Agent \u7684\u601D\u8003\u8FC7\u7A0B\u548C\u7528\u5230\u7684\u5DE5\u5177\u540D\uFF0C\u5305\u62EC\u56E2\u961F\u6210\u5458\u3001\u8BA8\u8BBA\u3001\u59D4\u6D3E\u5728\u540E\u53F0\u505A\u7684\u90A3\u90E8\u5206\u3002\u6BCF\u6B21\u53EA\u4E0A\u4F20\u8FD8\u6CA1\u4E0A\u4F20\u8FC7\u7684\u90E8\u5206\uFF0C\u6700\u591A\u5F80\u524D 7 \u5929\u3002\u5DE5\u5177\u8BFB\u5199\u7684\u5185\u5BB9\u548C\u9644\u4EF6\u672C\u8EAB\u4E0D\u5E26\uFF1B\u6D88\u606F\u91CC\u51FA\u73B0\u7684\u6587\u4EF6\u540D\u3001Agent \u5728\u56DE\u590D\u91CC\u590D\u8FF0\u7684\u7B14\u8BB0\u6216\u6587\u4EF6\u5185\u5BB9\u4F1A\u5728\u5176\u4E2D\u3002\u5E38\u89C1\u683C\u5F0F\u7684\u5BC6\u94A5\u4F1A\u906E\u6389\uFF0C\u5176\u4F59\u539F\u6837\u4E0A\u4F20\u3002\u4E0D\u60F3\u63D0\u4F9B\u53EF\u4EE5\u5148\u5173\u6389\u518D\u6253\u5F00\u4E0A\u4F20\u3002","diag.memory":"\u5305\u542B Agent \u7684\u4EBA\u8BBE\u3001\u8BB0\u5FC6\u4E0E\u8FDB\u5316\u8BB0\u5F55","diag.memoryDesc":"\u6BCF\u4E2A Agent \u7684\u4EBA\u8BBE\uFF08\u5305\u62EC\u914D\u7F6E\u91CC\u7684\u63CF\u8FF0\u548C\u5F00\u53D1\u8005\u6307\u4EE4\uFF09\uFF0C\u548C\u5B83\u81EA\u5DF1\u6512\u4E0B\u6765\u7684\u5185\u5BB9\uFF1A\u8BB0\u5FC6\u548C\u8FD8\u6CA1\u6574\u7406\u7684\u8BB0\u5FC6\u5019\u9009\u3001\u8FDB\u5316\u8BB0\u5F55\u3001\u5199\u7ED9\u4F60\u7684\u534F\u4F5C\u8BF4\u660E\u3001\u6700\u8FD1 7 \u5929\u7684\u65E5\u5FD7\u548C\u8BB0\u5FC6\u6574\u7406\u8BB0\u5F55\uFF0C\u4EE5\u53CA\u9879\u76EE\u8BB0\u5FC6\uFF1B\u8FD8\u6709\u56E2\u961F\u7684\u8BBE\u5B9A\u548C\u4F60\u7684\u7528\u6237\u753B\u50CF\u3002\u8FD9\u4E9B\u662F\u4F60\u7ED9 Agent \u548C\u56E2\u961F\u5199\u7684\u8BBE\u5B9A\uFF0C\u548C Agent \u4ECE\u5BF9\u8BDD\u91CC\u8BB0\u4E0B\u7684\u5173\u4E8E\u4F60\u548C\u4F60\u7684\u5DE5\u4F5C\u7684\u4E8B\u5B9E\uFF0C\u6BCF\u6B21\u4E0A\u4F20\u5B83\u4EEC\u5F53\u524D\u7684\u5185\u5BB9\uFF08\u5F88\u957F\u7684\u4F1A\u622A\u65AD\uFF09\u3002\u5E38\u89C1\u683C\u5F0F\u7684\u5BC6\u94A5\u4F1A\u906E\u6389\uFF0C\u5176\u4F59\u539F\u6837\u4E0A\u4F20\u3002\u4E0D\u60F3\u63D0\u4F9B\u53EF\u4EE5\u5148\u5173\u6389\u518D\u6253\u5F00\u4E0A\u4F20\u3002","diag.activity":"\u5305\u542B\u6D3B\u52A8\u65E5\u5FD7","diag.activityDesc":"\u6D3B\u52A8\u8BB0\u5F55\u91CC\u6709\u5BF9\u8BDD\u5F00\u5934\u7684\u51E0\u5341\u4E2A\u5B57\u548C\u7B14\u8BB0\u6587\u4EF6\u540D\u3002\u6BCF\u6B21\u53EA\u4E0A\u4F20\u8FD8\u6CA1\u4E0A\u4F20\u8FC7\u7684\u90E8\u5206\uFF0C\u6700\u591A\u5F80\u524D 7 \u5929\u3002\u4E0D\u60F3\u63D0\u4F9B\u53EF\u4EE5\u5148\u5173\u6389\u518D\u6253\u5F00\u4E0A\u4F20\u3002","diag.last":"\u4E0A\u6B21\u4E0A\u4F20\uFF1A{time}","diag.noUpload":"\u8FD8\u6CA1\u6709\u4E0A\u4F20\u8FC7","diag.freq.hour":"\u6BCF\u5C0F\u65F6\u4E00\u6B21","diag.freq.hours":"\u6BCF {n} \u5C0F\u65F6\u4E00\u6B21","diag.freq.day":"\u6BCF\u5929\u4E00\u6B21","diag.freq.days":"\u6BCF {n} \u5929\u4E00\u6B21","diag.freq.manual":"Forsion \u56E2\u961F\u9700\u8981\u65F6\u624D\u91C7\u96C6","diag.retention":"\u4E91\u7AEF\u4FDD\u7559\u8FD9\u53F0\u7535\u8111\u6700\u8FD1 {n} \u5929\u7684\u5FEB\u7167\u3002\u5173\u95ED\u540E\u4E0D\u518D\u4E0A\u4F20\uFF1B\u5DF2\u4E0A\u4F20\u7684\u5FEB\u7167\u4ECD\u7559\u5728\u4E91\u7AEF\uFF0C\u9700\u8981\u5220\u9664\u53EF\u4EE5\u5728\u300C\u53CD\u9988\u300D\u91CC\u544A\u8BC9\u6211\u4EEC\u3002","page.privacy":"\u9690\u79C1\u4E0E\u6570\u636E","privacy.tab":"\u5E2E\u52A9\u6539\u8FDB","privacy.unavailable":"\u5F53\u524D\u5BBF\u4E3B\u4E0D\u652F\u6301\u5E2E\u52A9\u6539\u8FDB Forsion\uFF0C\u8BF7\u66F4\u65B0 Forsion \u540E\u91CD\u8BD5\u3002","privacy.needUpdate":"\u8FD9\u4E2A\u7248\u672C\u7684 Forsion \u8FD8\u4E0D\u4F1A\u53D1\u9001\u8FD9\u4E9B\u6570\u636E\uFF0C\u66F4\u65B0 Forsion \u540E\u624D\u4F1A\u751F\u6548\u3002","privacy.devBuild":"\u5F00\u53D1\u7248\u4E0D\u53D1\u9001\u4EFB\u4F55\u6570\u636E\u3002","privacy.signInFirst":"\u767B\u5F55\u540E\u624D\u80FD\u5F00\u3002\u6CA1\u767B\u5F55\u65F6\u4E0D\u53D1\u9001\u4EFB\u4F55\u6570\u636E\u3002","privacy.improve.title":"\u5E2E\u52A9\u6539\u8FDB Forsion","privacy.improve.desc":"\u53EA\u53D1\u5143\u6570\u636E\uFF0C\u7528\u6765\u5B9A\u4F4D\u6545\u969C\u3001\u770B\u54EA\u91CC\u6162\u3002\u767B\u5F55 Forsion \u8D26\u53F7\u65F6\u624D\u4F1A\u53D1\u9001\uFF0C\u4F46\u4E0D\u5173\u8054\u4F60\u7684\u8D26\u53F7\u3002","privacy.improve.switch":"\u53D1\u9001\u5D29\u6E83\u62A5\u544A\u548C\u4F7F\u7528\u7EDF\u8BA1","privacy.improve.switchHint":"\u5173\u6389\u540E\u7ACB\u523B\u505C\u6B62\u53D1\u9001\uFF0C\u672C\u673A\u8FD8\u6CA1\u53D1\u51FA\u53BB\u7684\u4E5F\u4E00\u5E76\u4E22\u6389\u3002","privacy.policyLink":"\u6536\u96C6\u54EA\u4E9B\u6570\u636E\u3001\u4FDD\u5B58\u591A\u4E45\uFF0C\u89C1\u9690\u79C1\u653F\u7B56","privacy.sent.title":"\u6700\u8FD1 7 \u5929\u53D1\u51FA\u53BB\u7684\u5185\u5BB9","privacy.sent.hint":"\u539F\u6837\u5B58\u5728\u672C\u673A\uFF0C\u53EF\u4EE5\u9010\u6761\u770B\u3002","privacy.sent.last":"\u539F\u6837\u5B58\u5728\u672C\u673A\uFF0C\u53EF\u4EE5\u9010\u6761\u770B\u3002\u4E0A\u6B21\u53D1\u9001\uFF1A{time}","privacy.sent.view":"\u67E5\u770B","privacy.sent.empty":"\u6700\u8FD1 7 \u5929\u8FD8\u6CA1\u6709\u53D1\u9001\u8FC7\u3002","privacy.delete.title":"\u5220\u9664\u5DF2\u53D1\u9001\u7684\u6570\u636E","privacy.delete.hint":"\u6309\u8FD9\u53F0\u8BBE\u5907\u7684\u5B89\u88C5\u6807\u8BC6\u5220\u6389\u670D\u52A1\u5668\u4E0A\u7684\u5168\u90E8\u8BB0\u5F55\uFF0C\u5E76\u6362\u4E00\u4E2A\u65B0\u6807\u8BC6\u3002","privacy.delete.button":"\u5220\u9664","privacy.delete.confirm":"\u786E\u8BA4\u5220\u9664","privacy.delete.done":"\u5DF2\u5220\u9664\uFF0C\u5E76\u6362\u4E86\u65B0\u7684\u5B89\u88C5\u6807\u8BC6\u3002","privacy.delete.failed":"\u6CA1\u5220\u6210\uFF1A{reason}","privacy.installId":"\u5B89\u88C5\u6807\u8BC6 {id} \xB7 \u548C\u4F60\u7684\u8D26\u53F7\u65E0\u5173","diag.uploadNow":"\u7ACB\u5373\u4E0A\u4F20","diag.uploaded":"\u5DF2\u4E0A\u4F20","diag.failed":"\u4E0A\u4F20\u5931\u8D25\uFF1A{reason}","quota.ai.title":"AI \u989D\u5EA6","quota.ai.desc":"\u4ECA\u65E5\u548C\u672C\u5468\u5404\u8FD8\u5269\u591A\u5C11\uFF1B\u7528\u5B8C\u540E\u53EF\u4EE5\u7528\u989D\u5EA6\u91CD\u7F6E\u5361\u6062\u590D\uFF0C\u6216\u7528\u79EF\u5206\u7EE7\u7EED","quota.resetDaily":"\u6BCF\u5929 0:00 \u91CD\u7F6E\uFF08\u5317\u4EAC\u65F6\u95F4\uFF09","quota.resetWeekly":"{date} 0:00 \u91CD\u7F6E\uFF08\u5317\u4EAC\u65F6\u95F4\uFF09","card.title":"\u989D\u5EA6\u91CD\u7F6E\u5361","card.desc":"\u628A\u4ECA\u65E5\u548C\u672C\u5468\u7684 AI \u989D\u5EA6\u6062\u590D\u5230 100%","card.owned":"\u6301\u6709 {n} \u5F20","card.use":"\u4F7F\u7528\u4E00\u5F20","card.useConfirm":"\u786E\u8BA4\u4F7F\u7528","card.used":"\u5DF2\u4F7F\u7528 1 \u5F20\u989D\u5EA6\u91CD\u7F6E\u5361","card.left":"\u8FD8\u5269 {n} \u5F20","card.noneHint":"\u6CA1\u6709\u989D\u5EA6\u91CD\u7F6E\u5361\u4E86\u3002\u9080\u8BF7\u3001\u6210\u5C31\u548C\u6D3B\u52A8\u5956\u52B1\u91CC\u4F1A\u53D1\u653E\u3002","fallback.title":"\u989D\u5EA6\u7528\u5B8C\u540E\u7528\u79EF\u5206\u7EE7\u7EED","fallback.desc":"\u6253\u5F00\u540E\uFF0C\u989D\u5EA6\u7528\u5B8C\u65F6\u8D85\u51FA\u7684\u7528\u91CF\u4ECE\u79EF\u5206\u4F59\u989D\u6263\uFF1B\u540E\u53F0\u4EFB\u52A1\u4E0D\u4F1A\u6263\u79EF\u5206\u3002","fallback.balance":"\u79EF\u5206\u4F59\u989D {n}","fallback.pricing":"\u6309 1\xD7 \u500D\u7387\u7684\u6A21\u578B\u7B97\uFF0C\u6BCF\u767E\u4E07 token\uFF1A\u8F93\u5165 {input} \u79EF\u5206\u3001\u8F93\u51FA {output} \u79EF\u5206\u3001\u7F13\u5B58\u547D\u4E2D {cached} \u79EF\u5206\u3002\u500D\u7387 N\xD7 \u7684\u6A21\u578B\u7EA6\u4E3A N \u500D\uFF0C\u4EE5\u5404\u6A21\u578B\u5B9E\u9645\u8BA1\u4EF7\u4E3A\u51C6\u3002","fallback.unknown":"\u72B6\u6001\u672A\u77E5\uFF0C\u8BF7\u91CD\u8BD5","quota.out.cardOrPoints":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\u3002\u53EF\u4EE5\u7528\u4E00\u5F20\u91CD\u7F6E\u5361\u6062\u590D\uFF0C\u6216\u6253\u5F00\u4E0B\u9762\u7684\u300C\u989D\u5EA6\u7528\u5B8C\u540E\u7528\u79EF\u5206\u7EE7\u7EED\u300D\u3002","quota.out.points":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\u3002\u53EF\u4EE5\u6253\u5F00\u4E0B\u9762\u7684\u300C\u989D\u5EA6\u7528\u5B8C\u540E\u7528\u79EF\u5206\u7EE7\u7EED\u300D\u3002","quota.out.cardOrTopUp":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\u3002\u53EF\u4EE5\u7528\u4E00\u5F20\u91CD\u7F6E\u5361\u6062\u590D\uFF0C\u6216\u5145\u503C\u79EF\u5206\u540E\u6253\u5F00\u300C\u989D\u5EA6\u7528\u5B8C\u540E\u7528\u79EF\u5206\u7EE7\u7EED\u300D\u3002","quota.out.topUp":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\u3002\u5145\u503C\u79EF\u5206\u540E\uFF0C\u53EF\u4EE5\u6253\u5F00\u300C\u989D\u5EA6\u7528\u5B8C\u540E\u7528\u79EF\u5206\u7EE7\u7EED\u300D\u3002","quota.out.card":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\u3002\u53EF\u4EE5\u7528\u4E00\u5F20\u91CD\u7F6E\u5361\u6062\u590D\u3002","quota.out.usingPoints":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\uFF0C\u6B63\u5728\u7528\u79EF\u5206\u7EE7\u7EED\u3002","quota.out.pointsGone":"AI \u989D\u5EA6\u548C\u79EF\u5206\u90FD\u7528\u5B8C\u4E86\u3002\u5145\u503C\u79EF\u5206\u6216\u5347\u7EA7\u4F1A\u5458\u540E\u53EF\u4EE5\u7EE7\u7EED\u3002","err.pointsFallbackUnavailable":"\u6682\u65F6\u4E0D\u53EF\u7528\uFF0C\u7A0D\u540E\u518D\u8BD5","member.modelsAll":"\u53EF\u7528\u5168\u90E8\u6A21\u578B","member.modelsCap":"\u53EF\u7528\u500D\u7387\u4E0D\u8D85\u8FC7 {cap}\xD7 \u7684\u6A21\u578B","member.autorenew.title":"\u81EA\u52A8\u7EED\u8D39","member.autorenew.on":"\u5DF2\u5F00\u542F\uFF1A{cycle} \xA5{amount}\uFF0C\u672C\u671F\u5230 {date}\uFF0C\u5230\u671F\u524D\u7EA6 1 \u5929\u81EA\u52A8\u6263\u6B3E","member.autorenew.off":"\u5DF2\u53D6\u6D88\uFF1A\u4F1A\u5458\u5230 {date} \u7ED3\u675F\uFF0C\u4E0D\u518D\u6263\u6B3E","member.autorenew.cycle.monthly":"\u6BCF\u6708","member.autorenew.cycle.quarterly":"\u6BCF\u5B63","member.autorenew.cycle.yearly":"\u6BCF\u5E74","member.autorenew.cancel":"\u53D6\u6D88\u81EA\u52A8\u7EED\u8D39","member.autorenew.cancelConfirm":"\u786E\u8BA4\u53D6\u6D88","member.autorenew.canceled":"\u5DF2\u53D6\u6D88\u81EA\u52A8\u7EED\u8D39\uFF0C\u672C\u671F\u4F1A\u5458\u7167\u5E38\u5230\u671F\u3002","member.autorenew.resume":"\u6062\u590D\u81EA\u52A8\u7EED\u8D39","member.autorenew.resumeHint":"\u5DF2\u5728\u6D4F\u89C8\u5668\u6253\u5F00\uFF0C\u7528\u652F\u4ED8\u5B9D\u786E\u8BA4\u540E\u56DE\u5230\u8FD9\u91CC\u5C31\u4F1A\u66F4\u65B0\u3002","member.autorenew.refundNote":"\u6263\u6B3E\u540E 7 \u5929\u5185\u6CA1\u7528\u8FC7\u4F1A\u5458\u6743\u76CA\uFF0C\u53EF\u8054\u7CFB forsion@winemountain.cn \u5168\u989D\u9000\u6B3E\u3002","member.autorenew.err.none":"\u6CA1\u6709\u8FDB\u884C\u4E2D\u7684\u81EA\u52A8\u7EED\u8D39\uFF0C\u53EF\u80FD\u5DF2\u5728\u522B\u5904\u53D6\u6D88\u3002","member.autorenew.err.alipay":"\u652F\u4ED8\u5B9D\u6682\u65F6\u4E0D\u53EF\u7528\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002","member.autorenew.err.unavailable":"\u81EA\u52A8\u7EED\u8D39\u6682\u65F6\u4E0D\u53EF\u7528\u3002","points.title":"\u79EF\u5206","points.desc":"\u79EF\u5206\u53EF\u4EE5\u5728\u5546\u5E97\u5151\u6362\u7269\u54C1\uFF0C\u4E5F\u80FD\u5728 AI \u989D\u5EA6\u7528\u5B8C\u540E\u7EE7\u7EED\u4F7F\u7528","points.balance":"\u4F59\u989D","points.balanceFailed":"\u4F59\u989D\u6682\u65F6\u62FF\u4E0D\u5230","points.recharge":"\u5145\u503C\u79EF\u5206","bg.title":"\u540E\u53F0\u989D\u5EA6","bg.desc":"Muse \u4E0E\u81EA\u52A8\u5316\u4F7F\u7528\uFF0C\u548C AI \u989D\u5EA6\u5206\u5F00\u8BA1\u7B97","bg.autoMain":"\u7528\u5B8C\u540E\u6539\u7528 AI \u989D\u5EA6\u7EE7\u7EED","bg.autoMainDesc":"\u5173\u7740\u65F6\uFF0C\u540E\u53F0\u989D\u5EA6\u7528\u5B8C\u540E Muse \u4E0E\u81EA\u52A8\u5316\u4F1A\u6682\u505C","bg.convert":"\u4ECE AI \u989D\u5EA6\u8F6C\u5165","bg.convertDesc":"\u6309 AI \u989D\u5EA6\u4E0A\u9650\u7684\u6BD4\u4F8B\u8F6C\u5165\uFF0C\u672C\u5468\u671F\u5185\u6709\u6548","bg.convertConfirm":"\u786E\u8BA4\u8F6C\u5165 {pct}%","bg.converted":"\u5DF2\u4ECE AI \u989D\u5EA6\u8F6C\u5165 {pct}%","invite.title":"\u9080\u8BF7\u4E0E\u5151\u6362","invite.desc":"\u9080\u8BF7\u597D\u53CB\u6CE8\u518C\uFF0C\u6216\u5151\u6362\u4F60\u6536\u5230\u7684\u7801","invite.myCode":"\u6211\u7684\u9080\u8BF7\u7801","invite.count":"\u5DF2\u9080\u8BF7 {n} \u4EBA","invite.copyCode":"\u590D\u5236\u9080\u8BF7\u7801","invite.copyLink":"\u590D\u5236\u9080\u8BF7\u94FE\u63A5","invite.loadFailed":"\u9080\u8BF7\u7801\u6682\u65F6\u62FF\u4E0D\u5230","invite.claim":"\u586B\u5199\u9080\u8BF7\u7801","invite.claimDesc":"\u6CE8\u518C\u540E 7 \u5929\u5185\uFF0C\u53EF\u4EE5\u8865\u586B\u597D\u53CB\u7684\u9080\u8BF7\u7801","invite.claimPlaceholder":"\u597D\u53CB\u7684\u9080\u8BF7\u7801","invite.claimSubmit":"\u63D0\u4EA4","invite.claimed":"\u9080\u8BF7\u7801\u5DF2\u751F\u6548","redeem.title":"\u5151\u6362\u7801","redeem.desc":"\u5151\u6362\u79EF\u5206\u3001\u4F1A\u5458\u6216\u5176\u4ED6\u5956\u52B1","redeem.placeholder":"\u8F93\u5165\u5151\u6362\u7801","redeem.submit":"\u5151\u6362","redeem.success":"\u5151\u6362\u6210\u529F","redeem.successWith":"\u5151\u6362\u6210\u529F\uFF1A{what}","redeem.gotPoints":"{n} \u79EF\u5206","redeem.gotMembership":"\u4F1A\u5458","sec.methods.title":"\u767B\u5F55\u65B9\u5F0F","sec.methods.desc":"\u624B\u673A\u548C\u90AE\u7BB1\u53EF\u4EE5\u7528\u6765\u767B\u5F55\u3001\u627E\u56DE\u5BC6\u7801","sec.bind":"\u7ED1\u5B9A","sec.change":"\u66F4\u6362","sec.phone":"\u624B\u673A\u53F7","sec.email":"\u90AE\u7BB1\u5730\u5740","sec.newPhone":"\u65B0\u624B\u673A\u53F7","sec.newEmail":"\u65B0\u90AE\u7BB1\u5730\u5740","sec.phonePlaceholder":"\u4E2D\u56FD\u5927\u9646\u53F7\u7801\u76F4\u63A5\u586B\uFF0C\u5176\u4ED6\u5730\u533A\u5E26 +\u533A\u53F7","sec.emailPlaceholder":"name@example.com","sec.code":"\u9A8C\u8BC1\u7801","sec.codePlaceholder":"\u8F93\u5165\u9A8C\u8BC1\u7801","sec.sendCode":"\u53D1\u9001\u9A8C\u8BC1\u7801","sec.resendIn":"{s} \u79D2\u540E\u91CD\u53D1","sec.codeSent":"\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001","sec.bindSubmit":"\u786E\u8BA4\u7ED1\u5B9A","sec.phoneBound":"\u624B\u673A\u5DF2\u7ED1\u5B9A","sec.emailBound":"\u90AE\u7BB1\u5DF2\u7ED1\u5B9A","sec.wechat":"\u5FAE\u4FE1","sec.wechat.bound":"\u5DF2\u7ED1\u5B9A\u5FAE\u4FE1","sec.wechat.boundAs":"\u5DF2\u7ED1\u5B9A\u5FAE\u4FE1\u300C{name}\u300D","sec.wechat.linkedNote":"\u53EF\u4EE5\u7528\u8FD9\u4E2A\u5FAE\u4FE1\u626B\u7801\u767B\u5F55\u3002\u89E3\u7ED1\u540E\u7528\u624B\u673A\u53F7\u6216\u90AE\u7BB1\u9A8C\u8BC1\u7801\u767B\u5F55\u3002","sec.wechat.link":"\u53BB\u7ED1\u5B9A","sec.wechat.opened":"\u5DF2\u5728\u6D4F\u89C8\u5668\u6253\u5F00\u4E2A\u4EBA\u4E2D\u5FC3\uFF0C\u5728\u300C\u5FAE\u4FE1\u300D\u4E00\u680F\u626B\u7801\u7ED1\u5B9A\uFF0C\u56DE\u5230\u8FD9\u91CC\u4F1A\u81EA\u52A8\u5237\u65B0","sec.wechat.unlink":"\u89E3\u7ED1\u5FAE\u4FE1","sec.wechat.unlinkConfirm":"\u518D\u6B21\u70B9\u51FB\uFF0C\u786E\u8BA4\u89E3\u7ED1","sec.wechat.unlinked":"\u5DF2\u89E3\u7ED1\u5FAE\u4FE1\uFF0C\u4E4B\u540E\u7528\u624B\u673A\u53F7\u6216\u90AE\u7BB1\u9A8C\u8BC1\u7801\u767B\u5F55","sec.wechat.lastSignIn":"\u8BF7\u5148\u7ED1\u5B9A\u624B\u673A\u53F7\u6216\u90AE\u7BB1\u518D\u89E3\u7ED1\u5FAE\u4FE1\uFF0C\u5426\u5219\u53EF\u80FD\u65E0\u6CD5\u767B\u5F55","sec.wechat.bind":"\u7ED1\u5B9A","sec.wechat.qrLoading":"\u6B63\u5728\u83B7\u53D6\u4E8C\u7EF4\u7801\u2026","sec.wechat.qrTitle":"\u5FAE\u4FE1\u626B\u7801\u7ED1\u5B9A","sec.wechat.scanHint":"\u7528\u624B\u673A\u5FAE\u4FE1\u626B\u4E00\u626B\uFF0C\u5728\u624B\u673A\u4E0A\u786E\u8BA4\u540E\uFF0C\u8FD9\u91CC\u4F1A\u81EA\u52A8\u5B8C\u6210\u7ED1\u5B9A\u3002","sec.wechat.qrExpired":"\u4E8C\u7EF4\u7801\u5DF2\u8FC7\u671F","sec.wechat.qrRefresh":"\u91CD\u65B0\u83B7\u53D6\u4E8C\u7EF4\u7801","sec.wechat.linkedNow":"\u5FAE\u4FE1\u5DF2\u7ED1\u5B9A","sec.wechat.inBrowser":"\u6539\u5728\u6D4F\u89C8\u5668\u91CC\u7ED1\u5B9A","sec.wechat.inAppUnavailable":"\u8FD9\u91CC\u6682\u65F6\u4E0D\u80FD\u76F4\u63A5\u626B\u7801\u7ED1\u5B9A","sec.wechat.err.denied":"\u5DF2\u5728\u5FAE\u4FE1\u91CC\u53D6\u6D88\u6388\u6743","sec.wechat.err.codeInvalid":"\u8FD9\u6B21\u626B\u7801\u5DF2\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u83B7\u53D6\u4E8C\u7EF4\u7801","sec.wechat.err.noUnionid":"\u5FAE\u4FE1\u6CA1\u6709\u8FD4\u56DE\u8D26\u53F7\u6807\u8BC6\uFF0C\u6682\u65F6\u7ED1\u5B9A\u4E0D\u4E86","sec.wechat.err.alreadyBound":"\u8FD9\u4E2A\u5FAE\u4FE1\u5DF2\u7ED1\u5B9A\u5728\u53E6\u4E00\u4E2A Forsion \u8D26\u53F7\u4E0A","sec.wechat.err.otherBound":"\u8FD9\u4E2A\u8D26\u53F7\u5DF2\u7ED1\u5B9A\u4E86\u53E6\u4E00\u4E2A\u5FAE\u4FE1\uFF0C\u8BF7\u5148\u89E3\u7ED1","sec.wechat.err.unreachable":"\u6682\u65F6\u8FDE\u4E0D\u4E0A\u5FAE\u4FE1\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5","sec.wechat.err.unavailable":"\u5FAE\u4FE1\u7ED1\u5B9A\u6682\u65F6\u4E0D\u53EF\u7528","sec.github.desc":"\u7ED1\u5B9A\u540E\uFF0CForsion \u684C\u9762\u7AEF\u63A8\u9001\u548C\u62C9\u53D6 GitHub \u4ED3\u5E93\u65F6\u4F1A\u76F4\u63A5\u4F7F\u7528\u8FD9\u4E2A\u8D26\u53F7\uFF0C\u4E0D\u7528\u518D\u53E6\u5916\u914D\u7F6E\u51ED\u636E","sec.github.account":"GitHub \u8D26\u53F7","sec.github.bound":"\u5DF2\u7ED1\u5B9A","sec.github.boundAs":"\u5DF2\u7ED1\u5B9A {login}","sec.github.linkedNote":"Forsion \u684C\u9762\u7AEF\u63A8\u9001\u548C\u62C9\u53D6 GitHub \u4ED3\u5E93\u65F6\u4F1A\u4F7F\u7528\u8FD9\u4E2A\u8D26\u53F7\u3002\u5982\u679C\u4F60\u5728 GitHub \u4E0A\u64A4\u9500\u8FC7 Forsion \u7684\u6388\u6743\uFF0C\u89E3\u9664\u7ED1\u5B9A\u540E\u91CD\u65B0\u7ED1\u5B9A\u5373\u53EF\u6062\u590D\u3002","sec.github.link":"\u53BB\u7ED1\u5B9A","sec.github.opened":"\u5DF2\u5728\u6D4F\u89C8\u5668\u6253\u5F00\u4E2A\u4EBA\u4E2D\u5FC3\uFF0C\u5728\u300CGitHub\u300D\u4E00\u680F\u9A8C\u8BC1\u8EAB\u4EFD\u540E\u53BB GitHub \u6388\u6743\uFF0C\u56DE\u5230\u8FD9\u91CC\u4F1A\u81EA\u52A8\u5237\u65B0","sec.github.unlink":"\u89E3\u9664\u7ED1\u5B9A","sec.github.unlinkConfirm":"\u518D\u6B21\u70B9\u51FB\uFF0C\u786E\u8BA4\u89E3\u9664","sec.github.unlinked":"\u5DF2\u89E3\u9664\u7ED1\u5B9A\uFF0CForsion \u5728 GitHub \u4E0A\u7684\u6388\u6743\u4E5F\u5DF2\u64A4\u9500","sec.github.unlinkedManual":"\u5DF2\u89E3\u9664\u7ED1\u5B9A\uFF0C\u4F46\u6CA1\u80FD\u786E\u8BA4 GitHub \u4E0A\u7684\u6388\u6743\u5DF2\u7ECF\u64A4\u9500\u3002\u8BF7\u5230 GitHub \u7684\u8BBE\u7F6E\u91CC\u770B\u4E00\u4E0B\uFF0C\u5982\u679C\u8FD8\u6709 Forsion\uFF0C\u624B\u52A8\u79FB\u9664","sec.github.changed":"\u7ED1\u5B9A\u72B6\u6001\u521A\u521A\u6709\u53D8\u5316\uFF0C\u5DF2\u7ECF\u5237\u65B0","sec.github.changedUnknown":"\u7ED1\u5B9A\u72B6\u6001\u521A\u521A\u6709\u53D8\u5316\uFF0C\u4F46\u6CA1\u80FD\u5237\u65B0\uFF0C\u8BF7\u7A0D\u540E\u91CD\u65B0\u6253\u5F00\u8FD9\u4E00\u9875","sec.github.unavailable":"GitHub \u7ED1\u5B9A\u6682\u65F6\u4E0D\u53EF\u7528","sec.github.openSettings":"\u6253\u5F00 GitHub \u7684\u6388\u6743\u8BBE\u7F6E","sec.devices.title":"\u767B\u5F55\u8BBE\u5907","sec.devices.desc":"\u62C5\u5FC3\u8D26\u53F7\u88AB\u522B\u4EBA\u7528\u4E86\uFF0C\u53EF\u4EE5\u8BA9\u6240\u6709\u8BBE\u5907\u91CD\u65B0\u767B\u5F55","sec.logoutAll":"\u9000\u51FA\u6240\u6709\u8BBE\u5907","sec.logoutAllDesc":"\u5305\u62EC\u8FD9\u53F0\u8BBE\u5907\uFF0C\u6240\u6709\u8BBE\u5907\u90FD\u8981\u91CD\u65B0\u767B\u5F55","sec.logoutAllConfirm":"\u786E\u8BA4\u9000\u51FA\u6240\u6709\u8BBE\u5907","sec.logoutAllDone":"\u5DF2\u9000\u51FA\u6240\u6709\u8BBE\u5907","pw.title":"\u5BC6\u7801","pw.desc":"{min}\u2013{max} \u4F4D\uFF0C\u542B\u5C0F\u5199\u5B57\u6BCD\u3001\u5927\u5199\u5B57\u6BCD\u548C\u7279\u6B8A\u5B57\u7B26\uFF0C\u4E0D\u80FD\u6709\u7A7A\u683C","pw.change":"\u4FEE\u6539\u5BC6\u7801","pw.modeLabel":"\u4FEE\u6539\u65B9\u5F0F","pw.mode.current":"\u7528\u5F53\u524D\u5BC6\u7801","pw.mode.code":"\u7528\u9A8C\u8BC1\u7801","pw.current":"\u5F53\u524D\u5BC6\u7801","pw.currentRequired":"\u8BF7\u8F93\u5165\u5F53\u524D\u5BC6\u7801","pw.new":"\u65B0\u5BC6\u7801","pw.confirm":"\u518D\u8F93\u4E00\u6B21\u65B0\u5BC6\u7801","pw.mismatch":"\u4E24\u6B21\u8F93\u5165\u7684\u65B0\u5BC6\u7801\u4E0D\u4E00\u81F4","pw.submit":"\u4FEE\u6539\u5BC6\u7801","pw.submitReset":"\u8BBE\u7F6E\u65B0\u5BC6\u7801","pw.changed":"\u5BC6\u7801\u5DF2\u66F4\u65B0","pw.noPasswordYet":"\u8FD9\u4E2A\u8D26\u53F7\u8FD8\u6CA1\u6709\u8BBE\u7F6E\u5BC6\u7801\uFF0C\u8BF7\u6539\u7528\u9A8C\u8BC1\u7801\u8BBE\u7F6E\u3002","pw.codeNeedsContact":"\u7ED1\u5B9A\u624B\u673A\u6216\u90AE\u7BB1\u540E\uFF0C\u624D\u80FD\u7528\u9A8C\u8BC1\u7801\u8BBE\u7F6E\u5BC6\u7801\u3002","pw.via":"\u9A8C\u8BC1\u7801\u53D1\u5230","pw.codeTo":"\u9A8C\u8BC1\u7801\u4F1A\u53D1\u5230 {target}","pw.rulesLabel":"\u5BC6\u7801\u89C4\u5219","pw.req.length":"{min}\u2013{max} \u4F4D","pw.req.lower":"\u542B\u5C0F\u5199\u5B57\u6BCD","pw.req.upper":"\u542B\u5927\u5199\u5B57\u6BCD","pw.req.special":"\u542B\u7279\u6B8A\u5B57\u7B26","pw.req.space":"\u4E0D\u542B\u7A7A\u683C","pw.rule.format":"\u5BC6\u7801\u683C\u5F0F\u4E0D\u6B63\u786E","pw.rule.min":"\u5BC6\u7801\u81F3\u5C11 8 \u4F4D","pw.rule.max":"\u5BC6\u7801\u4E0D\u80FD\u8D85\u8FC7 64 \u4F4D","pw.rule.space":"\u5BC6\u7801\u4E0D\u80FD\u5305\u542B\u7A7A\u683C","pw.rule.lower":"\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u5C0F\u5199\u5B57\u6BCD","pw.rule.upper":"\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u5927\u5199\u5B57\u6BCD","pw.rule.special":"\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u7279\u6B8A\u5B57\u7B26","del.title":"\u6CE8\u9500\u8D26\u53F7","del.desc":"\u6C38\u4E45\u5220\u9664\u8D26\u53F7\u548C\u5168\u90E8\u6570\u636E\uFF0C\u65E0\u6CD5\u6062\u590D","del.start":"\u6CE8\u9500\u8D26\u53F7","del.warn":"\u6CE8\u9500\u540E\uFF0C\u8D26\u53F7\u3001\u79EF\u5206\u3001\u4F1A\u5458\u3001\u4E91\u7A7A\u95F4\u548C\u5168\u90E8\u6570\u636E\u90FD\u4F1A\u88AB\u5220\u9664\uFF0C\u65E0\u6CD5\u627E\u56DE\u3002","del.methodLabel":"\u9A8C\u8BC1\u65B9\u5F0F","del.byCode":"\u9A8C\u8BC1\u7801","del.byPassword":"\u5BC6\u7801","del.codeLabel":"\u53D1\u5230 {target} \u7684\u9A8C\u8BC1\u7801","del.passwordLabel":"\u8D26\u53F7\u5BC6\u7801","del.submit":"\u6CE8\u9500\u8D26\u53F7","del.confirm":"\u786E\u8BA4\u6C38\u4E45\u6CE8\u9500","del.done":"\u8D26\u53F7\u5DF2\u6CE8\u9500","usage.overview.title":"\u7528\u91CF\u6982\u89C8","usage.overview.desc":"\u6240\u9009\u65F6\u95F4\u6BB5\u5185\u7684\u8BF7\u6C42\u4E0E AI \u989D\u5EA6\u6D88\u8017","usage.range":"\u65F6\u95F4\u8303\u56F4","usage.days":"{n} \u5929","usage.requests":"\u8BF7\u6C42\u6B21\u6570","usage.successRate":"\u6210\u529F\u7387","usage.consumption":"AI \u989D\u5EA6\u6D88\u8017","usage.ofToday":"\u5360\u4ECA\u65E5\u989D\u5EA6\u4E0A\u9650","usage.unlimitedNote":"\u4F60\u7684 AI \u989D\u5EA6\u4E0D\u9650\uFF0C\u6D88\u8017\u65E0\u6CD5\u6298\u7B97\u6210\u767E\u5206\u6BD4\u3002","usage.noLimitNote":"\u4ECA\u65E5\u989D\u5EA6\u4E0A\u9650\u4E3A 0 \u6216\u6682\u65F6\u62FF\u4E0D\u5230\uFF0C\u6D88\u8017\u65E0\u6CD5\u6298\u7B97\u6210\u767E\u5206\u6BD4\u3002","usage.byModel.title":"\u6309\u6A21\u578B","usage.byModel.desc":"\u5404\u6A21\u578B\u7684\u8BF7\u6C42\u6570\u4E0E\u989D\u5EA6\u6D88\u8017","usage.byApp.title":"\u6309\u5E94\u7528","usage.byApp.desc":"\u5404\u5E94\u7528\u7684\u8BF7\u6C42\u6570\u4E0E\u989D\u5EA6\u6D88\u8017","usage.col.model":"\u6A21\u578B","usage.col.app":"\u5E94\u7528","usage.col.requests":"\u8BF7\u6C42","usage.col.consumption":"\u989D\u5EA6\u6D88\u8017","usage.empty":"\u8FD9\u6BB5\u65F6\u95F4\u6CA1\u6709\u7528\u91CF","usage.appUnknown":"\u5176\u4ED6","usage.recent.title":"\u6700\u8FD1\u6D88\u8017","usage.recent.desc":"\u6BCF\u6B21\u8C03\u7528\u5360\u4ECA\u65E5\u989D\u5EA6\u4E0A\u9650\u7684\u6BD4\u4F8B","usage.recentEmpty":"\u8FD8\u6CA1\u6709\u6D88\u8017\u8BB0\u5F55","usage.failed":"\u5931\u8D25","usage.shown":"\u5DF2\u663E\u793A {shown} / {total} \u6761","fb.list.title":"\u6211\u7684\u53CD\u9988","fb.list.desc":"\u63D0\u4EA4\u8FC7\u7684\u95EE\u9898\u548C\u5EFA\u8BAE\uFF0C\u56DE\u590D\u4F1A\u663E\u793A\u5728\u8FD9\u91CC","fb.new":"\u65B0\u5EFA\u53CD\u9988","fb.empty":"\u8FD8\u6CA1\u6709\u53CD\u9988","fb.untitled":"\u672A\u547D\u540D\u53CD\u9988","fb.unread":"\u6709\u65B0\u56DE\u590D","fb.shown":"\u5DF2\u663E\u793A {n} \u6761","fb.submitted":"\u5DF2\u63D0\u4EA4\uFF0C\u6211\u4EEC\u4F1A\u5C3D\u5FEB\u56DE\u590D","fb.descLabel":"\u63CF\u8FF0\u95EE\u9898\u6216\u5EFA\u8BAE","fb.descPlaceholder":"\u53D1\u751F\u4E86\u4EC0\u4E48\uFF0C\u4F60\u671F\u671B\u600E\u6837\u2026\u2026","fb.imagesHint":"\u6700\u591A\u9644 {n} \u5F20\u622A\u56FE\uFF08\u6BCF\u5F20\u4E0D\u8D85\u8FC7 5MB\uFF09\uFF0C\u53EF\u4EE5\u7C98\u8D34\u6216\u62D6\u8FDB\u6765\u3002","fb.addImages":"\u6DFB\u52A0\u622A\u56FE","fb.removeImage":"\u79FB\u9664\u8FD9\u5F20\u56FE","fb.submit":"\u63D0\u4EA4","fb.back":"\u8FD4\u56DE\u5217\u8868","fb.you":"\u4F60","fb.support":"Forsion \u56E2\u961F","fb.attachment":"\u9644\u4EF6","fb.imagePreview":"\u67E5\u770B\u5927\u56FE","fb.closedNote":"\u8FD9\u4E2A\u5DE5\u5355\u5DF2\u5173\u95ED\uFF0C\u4E0D\u80FD\u518D\u56DE\u590D\u3002\u6709\u65B0\u95EE\u9898\u8BF7\u65B0\u5EFA\u53CD\u9988\u3002","fb.replyPlaceholder":"\u56DE\u590D\u2026","fb.replySend":"\u53D1\u9001\u56DE\u590D","fb.replySent":"\u56DE\u590D\u5DF2\u53D1\u9001","fb.status.open":"\u5F85\u5904\u7406","fb.status.in_progress":"\u5904\u7406\u4E2D","fb.status.resolved":"\u5DF2\u89E3\u51B3","fb.status.closed":"\u5DF2\u5173\u95ED","af.title":"\u53CD\u9988\u7ED9 Forsion","af.kind":"\u53CD\u9988\u7C7B\u578B","af.kind.bug":"\u9047\u5230\u95EE\u9898","af.kind.idea":"\u529F\u80FD\u5EFA\u8BAE","af.kind.other":"\u5176\u4ED6\u53CD\u9988","af.titleLabel":"\u6807\u9898","af.descLabel":"\u63CF\u8FF0","af.includes":"\u9644\u5E26","af.optErrors":"\u8FD9\u6B21\u8FD0\u884C\u7684\u62A5\u9519","af.optErrorsHint":"\u540C\u4E00\u6761\u56DE\u590D\u91CC\u5931\u8D25\u7684\u5DE5\u5177\u8C03\u7528\uFF0C\u5E26\u53C2\u6570\u4E0E\u62A5\u9519\u539F\u6587","af.optLogs":"\u5E94\u7528\u4E0E\u8FD0\u884C\u65E5\u5FD7","af.optLogsHint":"\u7248\u672C\u3001\u9519\u8BEF\u3001\u8FD0\u884C\u65F6\u95F4\u7EBF\u4E0E\u7528\u91CF\uFF1B\u8FDB\u7A0B\u65E5\u5FD7\u53EF\u80FD\u6D89\u53CA\u5176\u4ED6\u4F1A\u8BDD\u3002","af.optConversation":"\u5F53\u524D\u4F1A\u8BDD\u5185\u5BB9","af.optConversationHint":"\u6574\u6BB5\u5BF9\u8BDD\uFF0C\u5305\u542B\u5DE5\u5177\u8F93\u5165\u4E0E\u8F93\u51FA\u3002","af.optConversationAuto":"\u76F4\u63A5\u53D1\u9001\u65F6\u4E0D\u5E26\u4F1A\u8BDD\u5185\u5BB9\u3002","af.redacted":"\u5DF2\u8FC7\u6EE4\u5E38\u89C1\u51ED\u636E\u5B57\u6BB5","af.sendingAuto":"\u6B63\u5728\u6309\u4F60\u7684\u8BBE\u7F6E\u76F4\u63A5\u53D1\u9001\u2026","af.preview":"\u9884\u89C8\u9644\u4EF6","af.hidePreview":"\u6536\u8D77\u9884\u89C8","af.dismiss":"\u4E0D\u53D1\u4E86","af.send":"\u53D1\u9001","af.sending":"\u6B63\u5728\u53D1\u9001\u2026","af.appendTo":"\u8865\u5145\u5230 {id}","af.dup":"\u4F60\u4E4B\u524D\u62A5\u8FC7\u540C\u4E00\u4E2A\u95EE\u9898\uFF08{id}\uFF0C\u8FD8\u6CA1\u5904\u7406\u5B8C\uFF09\u3002\u53D1\u9001\u4F1A\u8865\u5145\u5230\u90A3\u4E00\u6761\uFF0C\u4E0D\u53E6\u5F00\u65B0\u53CD\u9988\u3002","af.dupAuto":"\u4F60\u4E4B\u524D\u62A5\u8FC7\u540C\u4E00\u4E2A\u95EE\u9898\uFF08{id}\uFF0C\u8FD8\u6CA1\u5904\u7406\u5B8C\uFF09\uFF0C\u8FD9\u6B21\u6CA1\u6709\u81EA\u52A8\u53D1\u9001\u3002\u8981\u8865\u5145\u5C31\u70B9\u4E0B\u9762\u7684\u6309\u94AE\u3002","af.staleAuto":"\u8FD9\u4EFD\u8349\u7A3F\u8D77\u8349\u65F6\u95F4\u8F83\u65E9\uFF0C\u6CA1\u6709\u81EA\u52A8\u53D1\u9001\u3002\u8981\u53D1\u5C31\u70B9\u300C\u53D1\u9001\u300D\u3002","af.errorCount":"{n} \u6B21\u5931\u8D25\u8C03\u7528","af.errReport":"\u9644\u4EF6\u6CA1\u5907\u597D\uFF0C\u53EF\u80FD\u662F\u8FD9\u6BB5\u5BF9\u8BDD\u5DF2\u7ECF\u4E0D\u5728\u5F53\u524D\u7A97\u53E3\u91CC\u3002","af.sendTextOnly":"\u53EA\u53D1\u6587\u5B57","af.errSend":"\u53D1\u9001\u5931\u8D25\uFF1A{err}","af.errWithdrawLate":"\u8D85\u8FC7 10 \u5206\u949F\u6216\u56E2\u961F\u5DF2\u7ECF\u56DE\u590D\uFF0C\u64A4\u4E0D\u56DE\u4E86\u3002","af.needLogin":"\u767B\u5F55 Forsion \u8D26\u53F7\u540E\u624D\u80FD\u53D1\u9001\uFF0C\u8349\u7A3F\u4F1A\u7559\u5728\u8FD9\u91CC\u3002","af.login":"\u53BB\u767B\u5F55","af.prefLead":"\u4EE5\u540E\u9047\u5230 Forsion \u7684\u95EE\u9898\uFF1A","af.modeAsk":"\u8D77\u8349\uFF0C\u6BCF\u6B21\u5148\u95EE\u6211","af.modeAuto":"\u8D77\u8349\u5E76\u76F4\u63A5\u53D1\u9001","af.change":"\u66F4\u6539","af.replied":"\u5DF2\u56DE\u590D","af.appended":"\u5DF2\u8865\u5145\u5230\u53CD\u9988 {id}","af.sent":"\u5DF2\u53D1\u9001 \xB7 \u53CD\u9988 {id}","af.sentAuto":"\u5DF2\u81EA\u52A8\u53D1\u9001 \xB7 \u53CD\u9988 {id} \xB7 \u4E0D\u542B\u4F1A\u8BDD\u5185\u5BB9","af.withdrawLeft":"\u8FD8\u80FD\u64A4\u56DE {n} \u5206\u949F","af.replyInbox":"\u56E2\u961F\u7684\u56DE\u590D\u4F1A\u53D1\u5230\u6536\u4EF6\u7BB1","af.withdraw":"\u64A4\u56DE","af.openFeedback":"\u5728\u53CD\u9988\u4E2D\u67E5\u770B","af.withdrawn":"\u5DF2\u64A4\u56DE","af.dismissed":"\u6CA1\u6709\u53D1\u9001","af.sendAnyway":"\u8FD8\u662F\u53D1\u5427","af.errAccount":"\u51C6\u5907\u9644\u4EF6\u65F6\u6362\u4E86\u8D26\u53F7\uFF0C\u8FD9\u6B21\u6CA1\u6709\u53D1\u9001\u3002\u786E\u8BA4\u8D26\u53F7\u540E\u518D\u70B9\u53D1\u9001\u3002","af.matchFailed":"\u6682\u65F6\u67E5\u4E0D\u5230\u4F60\u4E4B\u524D\u6709\u6CA1\u6709\u62A5\u8FC7\u540C\u4E00\u4E2A\u95EE\u9898\uFF0C\u8FD9\u6B21\u6CA1\u6709\u81EA\u52A8\u53D1\u9001\u3002\u8981\u53D1\u5C31\u70B9\u300C\u53D1\u9001\u300D\u3002","err.accountGone":"\u8FD9\u4E2A\u8D26\u53F7\u5DF2\u9000\u51FA\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55","err.adminCannotDelete":"\u7BA1\u7406\u5458\u8D26\u53F7\u4E0D\u80FD\u81EA\u52A9\u6CE8\u9500","err.avatarInvalid":"\u8FD9\u5F20\u56FE\u7247\u8BFB\u4E0D\u51FA\u6765\uFF0C\u6362\u4E00\u5F20\u8BD5\u8BD5","err.avatarTooLarge":"\u56FE\u7247\u592A\u5927\u4E86\uFF0C\u6362\u4E00\u5F20\u5C0F\u4E00\u70B9\u7684","err.backgroundUnavailable":"\u540E\u53F0\u989D\u5EA6\u6682\u65F6\u4E0D\u53EF\u7528","err.captcha":"\u9700\u8981\u5728\u6D4F\u89C8\u5668\u4E2D\u5B8C\u6210\u4EBA\u673A\u9A8C\u8BC1","err.codeCooldown":"\u53D1\u9001\u592A\u9891\u7E41\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5","err.codeInvalid":"\u9A8C\u8BC1\u7801\u4E0D\u5BF9\u6216\u5DF2\u8FC7\u671F","err.codeRequired":"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801","err.codeSendFailed":"\u9A8C\u8BC1\u7801\u6CA1\u53D1\u51FA\u53BB\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5","err.currentPasswordWrong":"\u5F53\u524D\u5BC6\u7801\u4E0D\u5BF9","err.deleteTargetInvalid":"\u9A8C\u8BC1\u7801\u53EA\u80FD\u53D1\u5230\u8D26\u53F7\u7ED1\u5B9A\u7684\u624B\u673A\u6216\u90AE\u7BB1","err.deleteVerifyFailed":"\u9A8C\u8BC1\u6CA1\u901A\u8FC7\uFF0C\u8D26\u53F7\u6CA1\u6709\u6CE8\u9500","err.emailInUse":"\u8FD9\u4E2A\u90AE\u7BB1\u5DF2\u88AB\u5176\u4ED6\u8D26\u53F7\u4F7F\u7528","err.emailInvalid":"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u5BF9","err.featureDisabled":"\u8FD9\u9879\u529F\u80FD\u6682\u65F6\u5173\u95ED\u4E86","err.feedbackEmpty":"\u8BF7\u5199\u4E00\u4E0B\u95EE\u9898\u6216\u5EFA\u8BAE","err.feedbackTooLong":"\u63CF\u8FF0\u592A\u957F\u4E86\uFF08\u6700\u591A 10000 \u5B57\uFF09","err.generic":"\u64CD\u4F5C\u6CA1\u6709\u6210\u529F\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5","err.imageRead":"\u56FE\u7247\u8BFB\u4E0D\u51FA\u6765","err.imageTooLarge":"\u6BCF\u5F20\u56FE\u7247\u4E0D\u80FD\u8D85\u8FC7 5MB","err.imageType":"\u53EA\u80FD\u6DFB\u52A0\u56FE\u7247","err.insufficientMainQuota":"AI \u989D\u5EA6\u5DF2\u7528\u5B8C\uFF0C\u6CA1\u6709\u53EF\u8F6C\u5165\u7684\u989D\u5EA6","err.insufficientPoints":"\u79EF\u5206\u4E0D\u591F","err.invalidInviteCode":"\u9080\u8BF7\u7801\u65E0\u6548\u6216\u5DF2\u5931\u6548","err.inviteAlreadyUsed":"\u4F60\u5DF2\u7ECF\u7528\u8FC7\u9080\u8BF7\u7801\u4E86","err.inviteEmpty":"\u8BF7\u8F93\u5165\u9080\u8BF7\u7801","err.inviteOwnCode":"\u4E0D\u80FD\u586B\u81EA\u5DF1\u7684\u9080\u8BF7\u7801","err.inviteWindowExpired":"\u5DF2\u8D85\u8FC7\u6CE8\u518C\u540E 7 \u5929\u7684\u8865\u586B\u671F","err.loginCodeExpired":"\u767B\u5F55\u7801\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55","err.loginInProgress":"\u6B63\u5728\u767B\u5F55\u4E2D","err.loginTimeout":"\u767B\u5F55\u8D85\u65F6\uFF0C\u8BF7\u91CD\u8BD5","err.loginUnsupported":"\u8FD9\u4E2A\u4E91\u7AEF\u4E0D\u652F\u6301\u684C\u9762\u7AEF\u767B\u5F55","err.network":"\u7F51\u7EDC\u8FDE\u63A5\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5","err.noCloudUrl":"\u8BF7\u5148\u5728\u300C\u8FDE\u63A5\u300D\u91CC\u586B\u5199\u4E91\u7AEF\u5730\u5740","err.noResetCard":"\u6CA1\u6709\u53EF\u7528\u7684\u989D\u5EA6\u91CD\u7F6E\u5361","err.openFailed":"\u6CA1\u80FD\u6253\u5F00\u6D4F\u89C8\u5668","err.passwordRequired":"\u8BF7\u586B\u5199\u5F53\u524D\u5BC6\u7801\u548C\u65B0\u5BC6\u7801","err.phoneInUse":"\u8FD9\u4E2A\u624B\u673A\u53F7\u5DF2\u88AB\u5176\u4ED6\u8D26\u53F7\u4F7F\u7528","err.phoneInvalid":"\u624B\u673A\u53F7\u683C\u5F0F\u4E0D\u5BF9\uFF08\u5176\u4ED6\u5730\u533A\u8BF7\u5E26 +\u533A\u53F7\uFF09","err.redeemEmpty":"\u8BF7\u8F93\u5165\u5151\u6362\u7801","err.redeemExpired":"\u5151\u6362\u7801\u5DF2\u8FC7\u671F","err.redeemInactive":"\u5151\u6362\u7801\u5DF2\u505C\u7528","err.redeemNotFound":"\u5151\u6362\u7801\u4E0D\u5B58\u5728","err.redeemUsedUp":"\u5151\u6362\u7801\u5DF2\u88AB\u7528\u5B8C","err.redeemUserLimit":"\u4F60\u5DF2\u7ECF\u5151\u6362\u8FC7\u8FD9\u4E2A\u7801\u4E86","err.replyEmpty":"\u8BF7\u8F93\u5165\u56DE\u590D\u5185\u5BB9","err.replyTooLong":"\u56DE\u590D\u592A\u957F\u4E86\uFF08\u6700\u591A 10000 \u5B57\uFF09","err.server":"\u670D\u52A1\u5668\u51FA\u9519\u4E86\uFF08{status}\uFF09\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5","err.session":"\u767B\u5F55\u72B6\u6001\u5DF2\u5931\u6548\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55","err.signedOut":"\u8BF7\u5148\u767B\u5F55 Forsion","err.targetInvalid":"\u624B\u673A\u53F7\u6216\u90AE\u7BB1\u683C\u5F0F\u4E0D\u5BF9","err.ticketNotFound":"\u8FD9\u6761\u53CD\u9988\u4E0D\u5B58\u5728\u6216\u5DF2\u5220\u9664","err.webPageGone":"\u8FD9\u4E2A\u7F51\u9875\u4E0D\u5B58\u5728\u6216\u5DF2\u4E0B\u7EBF","err.listingGone":"\u8FD9\u4E2A\u7F51\u9875\u6CA1\u6709\u4E0A\u67B6\u7533\u8BF7","err.listingSummary":"\u8BF7\u586B\u5199\u5546\u5E97\u7B80\u4ECB\uFF08300 \u5B57\u4EE5\u5185\uFF09","err.tooFrequent":"\u64CD\u4F5C\u592A\u9891\u7E41\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5","err.tooManyImages":"\u6700\u591A\u6DFB\u52A0 5 \u5F20\u56FE\u7247","err.unavailable":"\u8FD9\u4E2A\u7248\u672C\u8FD8\u4E0D\u652F\u6301\u8FD9\u4E2A\u64CD\u4F5C\uFF0C\u8BF7\u66F4\u65B0 Forsion","profile.unsupported":"\u8FD9\u4E2A\u670D\u52A1\u7AEF\u8FD8\u6CA1\u6709\u4E2A\u4EBA\u4E3B\u9875\u529F\u80FD","profile.state.private":"\u4EC5\u81EA\u5DF1\u53EF\u89C1","profile.state.public":"\u5DF2\u516C\u5F00","profile.state.privateDesc":"\u516C\u5F00\u540E\uFF0C\u4EFB\u4F55\u4EBA\u6253\u5F00\u5730\u5740\u90FD\u80FD\u770B\u5230\u4F60\u7684\u4E3B\u9875\uFF0C\u4E0D\u9700\u8981\u767B\u5F55","profile.linkUnavailable":"\u6682\u672A\u83B7\u53D6\u5230\u516C\u5F00\u94FE\u63A5","profile.decorate":"\u88C5\u9970","profile.publish":"\u516C\u5F00\u4E3B\u9875","profile.makePrivate":"\u8BBE\u4E3A\u79C1\u6709","profile.copyLink":"\u590D\u5236\u94FE\u63A5","profile.openPublic":"\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00\u516C\u5F00\u4E3B\u9875","profile.nowPublic":"\u4E3B\u9875\u5DF2\u516C\u5F00","profile.nowPrivate":"\u4E3B\u9875\u5DF2\u8BBE\u4E3A\u79C1\u6709\uFF0C\u516C\u5F00\u5730\u5740\u4E0D\u518D\u80FD\u6253\u5F00","profile.notice.title":"\u4F60\u7684\u4E2A\u4EBA\u4E3B\u9875\u73B0\u5728\u9ED8\u8BA4\u516C\u5F00","profile.notice.body":"\u6253\u5F00 {url} \u4E0D\u7528\u767B\u5F55\u5C31\u80FD\u770B\u5230\u3002\u7F3A\u7701\u53EA\u516C\u5F00\u4F5C\u54C1\u548C\u5FBD\u7AE0\uFF1B\u6570\u636E\u3001\u6D3B\u52A8\u3001\u6D1E\u5BDF\u53EA\u6709\u4F60\u770B\u5F97\u5230\uFF0C\u5728\u300C\u88C5\u9970\u300D\u91CC\u53EF\u4EE5\u9010\u5757\u6539\u3002","profile.notice.look":"\u770B\u770B","profile.notice.private":"\u8BBE\u4E3A\u4E0D\u516C\u5F00","profile.notice.close":"\u5173\u6389","profile.bio":"\u7B80\u4ECB","profile.bioPlaceholder":"\u5199\u4E00\u53E5\u7B80\u4ECB","profile.linkAdd":"\u6DFB\u52A0\u94FE\u63A5","profile.linkRemove":"\u79FB\u9664\u94FE\u63A5","profile.linkInvalid":"\u94FE\u63A5\u8981\u4EE5 http:// \u6216 https:// \u5F00\u5934\uFF0C\u6216\u76F4\u63A5\u5199\u57DF\u540D","profile.joined":"{date}\u52A0\u5165","profile.stat.tokens":"\u7D2F\u8BA1 Token","profile.stat.activeDays":"\u6D3B\u8DC3\u5929\u6570","profile.stat.longest":"\u6700\u957F\u8FDE\u7EED","profile.stat.current":"\u5F53\u524D\u8FDE\u7EED","profile.stat.installs":"\u4F5C\u54C1\u88AB\u5B89\u88C5","profile.unit.days":"\u5929","profile.works":"\u7CBE\u9009\u4F5C\u54C1","profile.worksPick":"\u9009\u62E9","profile.worksEmpty":"\u8FD8\u6CA1\u6709\u4E0A\u67B6\u7684\u4F5C\u54C1\u3002\u4E0A\u67B6\u5230\u5546\u5E97\u6216\u53D1\u5E03\u6210\u7F51\u9875\u5E94\u7528\u540E\uFF0C\u53EF\u4EE5\u653E\u5230\u8FD9\u91CC\u3002","profile.worksNone":"\u8FD8\u6CA1\u6709\u53EF\u4EE5\u653E\u4E0A\u4E3B\u9875\u7684\u4F5C\u54C1\u3002\u4F5C\u54C1\u4E0A\u67B6\u5230\u5546\u5E97\u3001\u6216\u53D1\u5E03\u6210\u7F51\u9875\u5E94\u7528\u540E\u4F1A\u51FA\u73B0\u5728\u8FD9\u91CC\u3002","profile.worksPicked":"\u5DF2\u9009 {n} / {max} \u4EF6","profile.worksAuto":"\u4E0D\u9009\u7684\u8BDD\uFF0C\u6309\u5B89\u88C5\u91CF\u81EA\u52A8\u53D6\u524D\u51E0\u4EF6","profile.goSubmit":"\u53BB\u6295\u7A3F","profile.workInstalls":"{n} \u6B21\u5B89\u88C5","profile.workVisits":"{n} \u6B21\u8BBF\u95EE","profile.work.skill":"\u6280\u80FD","profile.work.agent":"Agent","profile.work.plugin":"\u63D2\u4EF6","profile.work.space":"Space","profile.work.theme":"\u4E3B\u9898","profile.work.note":"\u7B14\u8BB0\u63D2\u4EF6","profile.work.webapp":"\u7F51\u9875\u5E94\u7528","profile.activity":"\u6D3B\u52A8","profile.activityDays":"\u8FC7\u53BB\u4E00\u5E74\u6709 {n} \u5929\u5728\u7528","profile.less":"\u5C11","profile.more":"\u591A","profile.badges":"\u5FBD\u7AE0","profile.badgesEmpty":"\u8FD8\u6CA1\u6709\u5FBD\u7AE0\u3002\u8FDE\u7EED\u4F7F\u7528\u3001\u4E0A\u67B6\u4F5C\u54C1\u3001\u9080\u8BF7\u670B\u53CB\u90FD\u4F1A\u70B9\u4EAE\u3002","profile.badge.early":"\u65E9\u671F\u7528\u6237","profile.badge.streak":"\u8FDE\u7EED 30 \u5929","profile.badge.author":"\u4F5C\u8005","profile.badge.inviter":"\u9080\u8BF7\u8FBE\u4EBA","profile.badge.event":"\u6D3B\u52A8\u7EAA\u5FF5","profile.badgeSub.early":"{value} \u5E74\u52A0\u5165","profile.badgeSub.streak":"\u6700\u957F\u8FDE\u7EED {value} \u5929","profile.badgeSub.author":"\u4E0A\u67B6\u4E86 {value} \u4EF6\u4F5C\u54C1","profile.badgeSub.inviter":"\u9080\u8BF7\u4E86 {value} \u4F4D\u670B\u53CB","profile.badgeSub.event":"\u53C2\u52A0\u8FC7 Forsion \u7684\u6D3B\u52A8{value}","profile.insights":"\u6D1E\u5BDF","profile.insightsEmpty":"\u7528\u5F97\u8FD8\u4E0D\u591F\u591A\uFF0C\u8FC7\u51E0\u5929\u518D\u6765\u770B\u3002","profile.insightModel":"\u6700\u5E38\u7528\u6A21\u578B","profile.insightHours":"\u6700\u6D3B\u8DC3\u65F6\u6BB5","profile.deco.skin":"\u516C\u5F00\u9875\u7684\u914D\u8272","profile.deco.mode":"\u516C\u5F00\u9875\u7684\u660E\u6697","profile.deco.publicHint":"\u8FD9\u4E24\u9879\u53EA\u7BA1\u8BBF\u5BA2\u5728\u516C\u5F00\u9875\u4E0A\u770B\u5230\u7684\u3002\u5728\u8FD9\u91CC\uFF0C\u4E3B\u9875\u8DDF Forsion \u5F53\u524D\u7684\u4E3B\u9898\u8D70\u3002","profile.deco.cover":"\u5C01\u9762","profile.deco.frame":"\u5934\u50CF\u6846","profile.deco.modules":"\u6A21\u5757","profile.skin.cream":"\u7ECF\u5178","profile.skin.coral":"\u73CA\u745A","profile.skin.teal":"\u67D4\u9752","profile.skin.lavender":"\u85B0\u8863\u8349","profile.mode.auto":"\u8DDF\u968F\u8BBF\u5BA2","profile.mode.light":"\u6D45\u8272","profile.mode.dark":"\u6DF1\u8272","profile.cover.none":"\u65E0","profile.cover.mist":"\u6668\u96FE","profile.cover.contour":"\u7B49\u9AD8\u7EBF","profile.cover.dots":"\u7F51\u70B9","profile.frame.none":"\u65E0","profile.frame.ring":"\u7EC6\u73AF","profile.frame.pro":"\u4F1A\u5458\u73AF","profile.frameProHint":"\u4F1A\u5458\u73AF\u662F\u4ED8\u8D39\u4F1A\u5458\u4E13\u5C5E\u3002","profile.col.show":"\u663E\u793A","profile.col.public":"\u516C\u5F00","profile.moveUp":"\u4E0A\u79FB","profile.moveDown":"\u4E0B\u79FB","profile.modulesHint":"\u300C\u663E\u793A\u300D\u51B3\u5B9A\u4E3B\u9875\u4E0A\u6709\u6CA1\u6709\u8FD9\u4E00\u5757\uFF1B\u300C\u516C\u5F00\u300D\u51B3\u5B9A\u8BBF\u5BA2\u80FD\u4E0D\u80FD\u770B\u5230\uFF0C\u4E3B\u9875\u516C\u5F00\u540E\u624D\u8D77\u4F5C\u7528\u3002","profile.mod.stats":"\u6570\u636E","profile.mod.works":"\u7CBE\u9009\u4F5C\u54C1","profile.mod.activity":"\u6D3B\u52A8","profile.mod.badges":"\u5FBD\u7AE0","profile.mod.insights":"\u6D1E\u5BDF","profile.modDesc.stats":"\u7D2F\u8BA1 Token\u3001\u6D3B\u8DC3\u5929\u6570\u3001\u8FDE\u7EED\u5929\u6570\u3001\u4F5C\u54C1\u5B89\u88C5\u91CF","profile.modDesc.works":"\u4F60\u4E0A\u67B6\u7684\u4F5C\u54C1\uFF0C\u6700\u591A 6 \u4EF6","profile.modDesc.activity":"\u8FC7\u53BB\u4E00\u5E74\u6BCF\u5929\u7528\u6CA1\u7528\u3001\u7528\u5F97\u591A\u4E0D\u591A\uFF08\u53EA\u6709\u6DF1\u6D45\uFF0C\u6CA1\u6709\u5177\u4F53\u6570\u5B57\uFF09","profile.modDesc.badges":"\u52A0\u5165\u5E74\u4EFD\u3001\u8FDE\u7EED\u5929\u6570\u3001\u4E0A\u67B6\u3001\u9080\u8BF7\u3001\u6D3B\u52A8","profile.modDesc.insights":"\u6700\u5E38\u7528\u7684\u6A21\u578B\u3001\u6700\u6D3B\u8DC3\u7684\u65F6\u6BB5","profile.publishDesc":"\u516C\u5F00\u540E\uFF0C\u4EFB\u4F55\u4EBA\u6253\u5F00\u8FD9\u4E2A\u5730\u5740\u90FD\u80FD\u770B\u5230\u4F60\u7684\u4E3B\u9875\uFF0C\u4E0D\u9700\u8981\u767B\u5F55\u3002\u4E0B\u9762\u6BCF\u4E00\u5757\u53EF\u4EE5\u5355\u72EC\u51B3\u5B9A\u7ED9\u4E0D\u7ED9\u8BBF\u5BA2\u770B\u3002","profile.publishNever":"\u5934\u50CF\u3001\u6635\u79F0\u3001\u7528\u6237\u540D\u3001\u7B80\u4ECB\u548C\u94FE\u63A5\u4F1A\u4E00\u8D77\u516C\u5F00\u3002\u90AE\u7BB1\u3001\u624B\u673A\u53F7\u3001\u4F1A\u5458\u5230\u671F\u65E5\u3001\u79EF\u5206\u548C\u989D\u5EA6\u4E0D\u4F1A\u51FA\u73B0\u5728\u4E3B\u9875\u4E0A\u3002","profile.publishConfirm":"\u516C\u5F00","profile.blocked.machineUsername":"\u4F60\u73B0\u5728\u7684\u7528\u6237\u540D\u662F\u7CFB\u7EDF\u751F\u6210\u7684\uFF0C\u91CC\u9762\u5E26\u7740\u624B\u673A\u53F7\u6216\u90AE\u7BB1\u7684\u4E00\u90E8\u5206\uFF0C\u516C\u5F00\u4F1A\u628A\u5B83\u9732\u51FA\u53BB\u3002\u5148\u5230\u7F51\u9875\u4E2A\u4EBA\u4E2D\u5FC3\u7684\u300C\u8D26\u53F7\u300D\u9875\u6539\u4E00\u4E2A\u7528\u6237\u540D\uFF08\u6BCF\u4E2A\u8D26\u53F7\u53EF\u4EE5\u6539\u4E00\u6B21\uFF09\uFF0C\u518D\u56DE\u6765\u516C\u5F00\u3002","profile.blocked.publishBlocked":"\u8FD9\u4E2A\u4E3B\u9875\u5DF2\u88AB\u7BA1\u7406\u5458\u505C\u6B62\u516C\u5F00\u3002\u6709\u7591\u95EE\u8BF7\u901A\u8FC7\u300C\u53CD\u9988\u300D\u8054\u7CFB\u6211\u4EEC\u3002","profile.goRename":"\u53BB\u6539\u7528\u6237\u540D","profile.invalid":"\u8FD9\u9879\u5185\u5BB9\u6CA1\u80FD\u4FDD\u5B58\uFF0C\u8BF7\u68C0\u67E5\u540E\u518D\u8BD5","guide.title":"\u4F7F\u7528\u6307\u5357","guide.readOnly":"\u53EA\u8BFB","guide.more":"\u66F4\u591A","guide.unlockAll":"\u5168\u90E8\u89E3\u9501","guide.relock":"\u6539\u56DE\u6309\u7B49\u7EA7\u89E3\u9501","guide.reminders":"\u4F7F\u7528\u6307\u5357\u63D0\u9192","guide.spotlight":"\u73B0\u573A\u6307\u5F15","guide.spotStep":"\u7B2C {n} \u6B65\uFF0C\u5171 {total} \u6B65","guide.figure":"\u793A\u610F\u56FE","guide.openAchievements":"\u6253\u5F00\u6210\u5C31","guide.tasks":"\u672C\u7AE0\u4EFB\u52A1","guide.go":"\u5E26\u6211\u53BB","guide.desktopOnly":"\u5728\u7535\u8111\u4E0A\u505A","guide.taskDone":"\u5DF2\u5B8C\u6210","guide.askTangu":"\u95EE Tangu","guide.progress":"\u8FDB\u5EA6","guide.justUnlocked":"\u521A\u89E3\u9501","guide.lockedHint":"\u672A\u89E3\u9501","guide.whatsNew":"\u65B0\u7248\u672C \xB7 {version}","guide.level.lv1":"Lv.1 \u521D\u6765\u4E4D\u5230","guide.level.lv2":"Lv.2 \u719F\u95E8\u719F\u8DEF","guide.level.lv3":"Lv.3 \u5F97\u5FC3\u5E94\u624B","guide.level.lv4":"Lv.4 \u878D\u4F1A\u8D2F\u901A","guide.locked.title":"\u8FD9\u4E00\u7AE0\u8FD8\u6CA1\u89E3\u9501","guide.locked.body":"\u505A\u5B8C\u300C{level}\u300D\u7684\u4EFB\u52A1\u5C31\u80FD\u8BFB\u5168\u6587\u3002","guide.locked.left":"\u8FD8\u5DEE\u8FD9\u51E0\u9879\uFF1A","guide.locked.hint":"\u7528\u8FC7\u4E00\u9635\u4E86\uFF1F\u53F3\u4E0A\u89D2\u300C\xB7\xB7\xB7\u300D\u91CC\u53EF\u4EE5\u5168\u90E8\u89E3\u9501\u3002","guide.levelProgress":"\u672C\u7EA7\u8FDB\u5EA6 {done}/{total}","guide.next":"\u4E0B\u4E00\u7EA7","guide.allDone":"\u5168\u90E8\u5B8C\u6210","guide.allDoneBody":"\u6307\u5357\u91CC\u7684\u4EFB\u52A1\u90FD\u505A\u5B8C\u4E86\uFF0C\u968F\u65F6\u56DE\u6765\u7FFB\u770B\u3002","guide.review":"\u56DE\u770B","guide.ask.hint":"\u5BF9\u300C{chapter}\u300D\u6709\u7591\u95EE\uFF1F\u95EE Tangu \u4F1A\u5F00\u4E00\u4E2A\u5E26\u4E0A\u672C\u7AE0\u5185\u5BB9\u7684\u65B0\u5BF9\u8BDD\u3002","guide.ask.placeholder":"\u60F3\u95EE\u4EC0\u4E48\uFF1F","guide.ask.send":"\u5F00\u59CB\u5BF9\u8BDD","guide.ask.prompt":"\u6211\u6B63\u5728\u8BFB Forsion \u4F7F\u7528\u6307\u5357\u91CC\u300C{chapter}\u300D\u8FD9\u4E00\u7AE0\uFF0C\u5185\u5BB9\u9644\u5728\u4E0B\u9762\u3002{question}","guide.ask.unavailable":"\u8FD9\u91CC\u5F00\u4E0D\u4E86\u5BF9\u8BDD","guide.ask.chatTitle":"\u4F7F\u7528\u6307\u5357\u95EE\u7B54","guide.companion.back":"\u56DE\u5230\u6307\u5357","guide.companion.close":"\u6536\u8D77","guide.toast.taskDone":"\u5B8C\u6210\uFF1A{task}","guide.letter.levelTitle":"{level} \u5DF2\u89E3\u9501\uFF1A\u63A5\u4E0B\u6765\u8BD5\u8BD5\u8FD9\u51E0\u4EF6\u4E8B","guide.letter.levelBody":"\u4E0A\u4E00\u7EA7\u7684\u4EFB\u52A1\u90FD\u505A\u5B8C\u4E86\uFF0C\u4E0B\u9762\u8FD9\u51E0\u7AE0\u73B0\u5728\u53EF\u4EE5\u8BFB\u4E86\u3002\u6BCF\u9879\u4EFB\u52A1\u90FD\u80FD\u300C\u5E26\u6211\u53BB\u300D\u3002","guide.letter.versionTitle":"{version} \u6709 {n} \u4EF6\u65B0\u4E1C\u897F\u53EF\u4EE5\u4F53\u9A8C","guide.letter.versionBody":"\u8FD9\u4E2A\u7248\u672C\u65B0\u52A0\u7684\uFF0C\u53EF\u4EE5\u76F4\u63A5\u4E0A\u624B\uFF1A","guide.letter.open":"\u6253\u5F00\u6307\u5357","guide.status.done":"\u5DF2\u5B8C\u6210","guide.cmd.open":"\u6253\u5F00\u4F7F\u7528\u6307\u5357","penzor.title":"\u84EC\u6D32\u4E91","penzor.overview":"\u6982\u89C8","penzor.places":"\u4F4D\u7F6E","penzor.details":"\u8BE6\u60C5","penzor.ledger.sync":"\u667A\u5E93\u540C\u6B65","penzor.ledger.ama":"Amadeus Cloud","penzor.ledger.apps":"\u5E94\u7528\u6587\u4EF6","penzor.ledger.exports":"\u5BFC\u51FA","penzor.trash":"\u56DE\u6536\u7AD9","penzor.items":"{n} \u9879","penzor.total.sub":"\u5B58\u5728 Forsion \u4E91\u7AEF \xB7 {time}\u66F4\u65B0","penzor.justNow":"\u521A\u521A","penzor.ofMax":"/ {max}","penzor.card.syncSub":"{n} \u4E2A\u5E93 \xB7 \u4E0A\u6B21\u5199\u5165 {time}","penzor.card.syncSubNone":"{n} \u4E2A\u5E93","penzor.card.syncFoot":"\u5355\u4E2A\u6587\u4EF6\u8D85\u8FC7 {size} \u4E0D\u4E0A\u4F20","penzor.card.syncWarn":"\u5FEB\u6EE1\u4E86\uFF1A\u6EE1 {max} \u540E\u65B0\u6587\u4EF6\u4E0D\u518D\u4E0A\u4F20\uFF0C\u5DF2\u5728\u4E91\u7AEF\u7684\u7167\u5E38\u540C\u6B65","penzor.card.amaSmall":"\u4E0D\u7B97\u5728\u989D\u5EA6\u91CC","penzor.card.amaSub":"{n} \u4E2A\u4E91\u7AEF\u667A\u5E93","penzor.card.amaFoot":"\u7B14\u8BB0\u548C\u9644\u4EF6\u5728 Amadeus \u7684 Cloud \u4FA7","penzor.card.appsFoot":"\u56DE\u6536\u7AD9 {n} \u9879 \xB7 {size}","penzor.card.appsWarn":"\u5FEB\u6EE1\u4E86\uFF1A\u6EE1 {max} \u540E\u5E94\u7528\u4E0D\u80FD\u518D\u5B58\u65B0\u6587\u4EF6\uFF1B\u56DE\u6536\u7AD9\u91CC\u7684\u4E5F\u7B97\uFF0C\u6E05\u7A7A\u80FD\u817E\u51FA\u7A7A\u95F4","penzor.card.expSmall":"{n} \u4E2A\u6587\u4EF6","penzor.card.expSub":"\u6700\u8FD1\uFF1A{name} \xB7 {time}","penzor.card.expFoot":"\u5404\u5E94\u7528\u5BFC\u51FA\u7684\u6587\u4EF6","penzor.card.none":"\u8FD8\u6CA1\u6709\u4E1C\u897F","penzor.largest":"\u5360\u7528\u6700\u591A","penzor.col.name":"\u540D\u79F0","penzor.col.size":"\u5927\u5C0F","penzor.col.mtime":"\u4FEE\u6539\u65F6\u95F4","penzor.col.device":"\u5199\u5165\u8BBE\u5907","penzor.col.deleted":"\u5220\u9664\u4E8E","penzor.col.origin":"\u539F\u4F4D\u7F6E","penzor.col.app":"\u6765\u6E90","penzor.sort.mtime":"\u6309\u4FEE\u6539\u65F6\u95F4","penzor.sort.size":"\u6309\u5927\u5C0F","penzor.sort.name":"\u6309\u540D\u79F0","penzor.search":"\u641C\u7D22\u8FD9\u91CC\u7684\u6587\u4EF6\u540D","penzor.sync.thisDevice":"\u672C\u673A\u5728\u540C\u6B65","penzor.meta.files":"{size} \xB7 {n} \u4E2A\u6587\u4EF6","penzor.sync.last":"\u4E0A\u6B21\u5199\u5165 {time} \xB7 {device}","penzor.sync.lastNoDevice":"\u4E0A\u6B21\u5199\u5165 {time}","penzor.sync.devices":"{n} \u53F0\u8BBE\u5907\u540C\u6B65\u8FD9\u4E2A\u5E93","penzor.sync.meter":"\u667A\u5E93\u540C\u6B65\u5171\u7528 {max}\uFF0C\u5DF2\u7528 {used}","penzor.apps.meter":"\u5E94\u7528\u6587\u4EF6\u5171\u7528 {max}\uFF0C\u5DF2\u7528 {used}\uFF08\u56DE\u6536\u7AD9\u91CC\u7684\u4E5F\u7B97\uFF09","penzor.apps.by":"\u7531 {app} \u5199\u5165","penzor.ama.notCounted":"\u4E0D\u7B97\u5728\u989D\u5EA6\u91CC","penzor.ama.open":"\u5728 Amadeus \u4E2D\u6253\u5F00","penzor.hosted.open":"\u7BA1\u7406\u6211\u7684\u7F51\u9875","penzor.hosted.note":"\u8FD9\u662F\u5DF2\u53D1\u5E03\u7F51\u9875\u7684\u6587\u4EF6\u3002\u8981\u6539\u5185\u5BB9\u8BF7\u91CD\u65B0\u53D1\u5E03\uFF0C\u8981\u5220\u9664\u8BF7\u5230\u300C\u6211\u7684\u7F51\u9875\u300D\u4E0B\u7EBF\u3002","penzor.trash.meta":"{n} \u9879 \xB7 {size}","penzor.trash.note":"\u6C38\u4E45\u5220\u9664\u540E\u624D\u817E\u51FA\u7A7A\u95F4","penzor.trash.emptyBtn":"\u6E05\u7A7A\u56DE\u6536\u7AD9","penzor.act.download":"\u4E0B\u8F7D","penzor.act.rename":"\u91CD\u547D\u540D","penzor.act.move":"\u79FB\u52A8\u5230\u2026","penzor.act.trash":"\u79FB\u5230\u56DE\u6536\u7AD9","penzor.act.delete":"\u5220\u9664","penzor.act.restore":"\u6062\u590D","penzor.act.purge":"\u6C38\u4E45\u5220\u9664","penzor.act.copyName":"\u590D\u5236\u5E93\u540D","penzor.act.openSync":"\u5728\u8BBE\u7F6E\u4E2D\u6253\u5F00\u540C\u6B65","penzor.act.refresh":"\u5237\u65B0","penzor.act.up":"\u4E0A\u4E00\u7EA7","penzor.toast.trashed":"\u5DF2\u628A\u300C{name}\u300D\u79FB\u5230\u56DE\u6536\u7AD9","penzor.toast.restored":"\u5DF2\u6062\u590D\u300C{name}\u300D","penzor.toast.purged":"\u5DF2\u6C38\u4E45\u5220\u9664\u300C{name}\u300D","penzor.toast.emptied":"\u5DF2\u6E05\u7A7A\u56DE\u6536\u7AD9","penzor.toast.downloaded":"\u5DF2\u5B58\u5230\u300C\u4E0B\u8F7D\u300D\uFF1A{name}","penzor.toast.renamed":"\u5DF2\u6539\u540D\u4E3A\u300C{name}\u300D","penzor.toast.moved":"\u5DF2\u79FB\u5230\u300C{name}\u300D","penzor.toast.versionRestored":"\u5DF2\u6062\u590D\u5230\u7B2C {n} \u7248","penzor.toast.copied":"\u5DF2\u590D\u5236\u5E93\u540D","penzor.toast.failed":"\u6CA1\u6210\u529F\uFF1A{reason}","penzor.confirm.purge":"\u6C38\u4E45\u5220\u9664\u300C{name}\u300D\uFF1F\u5220\u4E86\u5C31\u627E\u4E0D\u56DE\u6765\u4E86\u3002","penzor.confirm.empty":"\u6E05\u7A7A\u56DE\u6536\u7AD9\uFF1F{n} \u9879\u4F1A\u88AB\u6C38\u4E45\u5220\u9664\uFF0C\u627E\u4E0D\u56DE\u6765\u3002","penzor.confirm.deleteExport":"\u5220\u9664\u300C{name}\u300D\uFF1F\u5BFC\u51FA\u7684\u6587\u4EF6\u6CA1\u6709\u56DE\u6536\u7AD9\uFF0C\u5220\u4E86\u5C31\u627E\u4E0D\u56DE\u6765\u4E86\u3002","penzor.cancel":"\u53D6\u6D88","penzor.side.where":"\u4F4D\u7F6E","penzor.side.mtime":"\u4FEE\u6539","penzor.side.device":"\u5199\u5165\u8BBE\u5907","penzor.side.thisDevice":"{name}\uFF08\u672C\u673A\uFF09","penzor.side.from":"\u6765\u6E90","penzor.side.versions":"\u5386\u53F2\u7248\u672C","penzor.side.versionsNone":"\u6CA1\u6709","penzor.side.versionRow":"\u7B2C {n} \u7248 \xB7 {time} \xB7 {size}","penzor.side.restoreVersion":"\u6062\u590D\u8FD9\u4E00\u7248","penzor.side.deletedAt":"\u5220\u9664\u4E8E","penzor.side.origin":"\u539F\u4F4D\u7F6E","penzor.side.inner":"\u91CC\u9762\u8FD8\u6709 {n} \u9879\uFF0C\u6062\u590D\u65F6\u4E00\u8D77\u56DE\u6765","penzor.side.inTrash":"\u5728\u56DE\u6536\u7AD9 \xB7 {size}","penzor.side.readonlySync":"\u540C\u6B65\u5E93\u91CC\u7684\u6587\u4EF6\u53EA\u5728\u8BBE\u5907\u4E0A\u5220\u6539\u3002\u5728\u8FD9\u91CC\u5220\u6389\u4E00\u4E2A\u6587\u4EF6\uFF0C\u6BCF\u53F0\u540C\u6B65 {vault} \u7684\u8BBE\u5907\u4E0B\u6B21\u540C\u6B65\u65F6\u90FD\u4F1A\u8DDF\u7740\u5220\u6389\uFF0C\u6240\u4EE5\u8FD9\u91CC\u53EA\u80FD\u770B\u548C\u4E0B\u8F7D\u3002","penzor.side.readonlyAma":"\u7B14\u8BB0\u548C\u9644\u4EF6\u5728 Amadeus \u91CC\u6539\u3002\u5728\u8FD9\u91CC\u5220\u6389\u4E00\u4E2A\u9644\u4EF6\uFF0C\u5F15\u7528\u5B83\u7684\u7B14\u8BB0\u4F1A\u7F3A\u56FE\uFF0C\u6240\u4EE5\u8FD9\u91CC\u53EA\u80FD\u770B\u548C\u4E0B\u8F7D\u3002","penzor.side.exportNote":"\u5BFC\u51FA\u7684\u6587\u4EF6\u6CA1\u6709\u56DE\u6536\u7AD9\uFF1A\u5220\u9664\u5C31\u662F\u6C38\u4E45\u5220\u9664\u3002","penzor.side.none":"\u9009\u4E00\u4E2A\u6587\u4EF6\u770B\u8BE6\u60C5","penzor.side.folder":"\u6587\u4EF6\u5939 \xB7 {n} \u9879","penzor.side.folderPlain":"\u6587\u4EF6\u5939","penzor.move.title":"\u79FB\u5230\u54EA\u91CC","penzor.move.root":"{app} \u6700\u4E0A\u5C42","penzor.move.here":"\u79FB\u5230\u8FD9\u91CC","penzor.move.noFolders":"\u8FD9\u4E00\u5C42\u6CA1\u6709\u6587\u4EF6\u5939","penzor.rename.save":"\u4FDD\u5B58","penzor.empty.title":"\u84EC\u6D32\u4E91\u91CC\u8FD8\u6CA1\u6709\u4E1C\u897F","penzor.empty.lead":"\u8FD9\u4E9B\u4E1C\u897F\u5B58\u8FDB\u4E91\u7AEF\u540E\u4F1A\u51FA\u73B0\u5728\u8FD9\u91CC\uFF1A","penzor.empty.sync":"\u5728\u300C\u8BBE\u7F6E \u203A \u540C\u6B65\u300D\u91CC\u628A\u8FDC\u7A0B\u670D\u52A1\u9009\u6210\u300C\u84EC\u6D32\u4E91\u300D\uFF0C\u672C\u5730\u667A\u5E93\u5C31\u540C\u6B65\u5230\u8FD9\u91CC","penzor.empty.ama":"Amadeus \u5207\u5230 Cloud \u4FA7\u5199\u7684\u7B14\u8BB0","penzor.empty.apps":"\u5404\u5E94\u7528\u5B58\u5230\u4E91\u7AEF\u6216\u5BFC\u51FA\u7684\u6587\u4EF6","penzor.empty.openSync":"\u6253\u5F00\u540C\u6B65\u8BBE\u7F6E","penzor.out.title":"\u767B\u5F55\u540E\u67E5\u770B\u4F60\u7684\u84EC\u6D32\u4E91","penzor.out.lead":"\u84EC\u6D32\u4E91\u653E\u7740\u4F60\u540C\u6B65\u5230 Forsion \u4E91\u7AEF\u7684\u5E93\u3001Amadeus Cloud \u7684\u7B14\u8BB0\uFF0C\u548C\u5404\u5E94\u7528\u5B58\u5728\u4E91\u7AEF\u7684\u6587\u4EF6\u3002","penzor.out.signIn":"\u767B\u5F55 Forsion \u8D26\u53F7","penzor.loading":"\u6B63\u5728\u8BFB\u53D6\u2026","penzor.err":"\u6CA1\u8BFB\u5230\uFF1A{reason}","penzor.folderEmpty":"\u8FD9\u91CC\u6CA1\u6709\u6587\u4EF6","penzor.noMatch":"\u6CA1\u6709\u540D\u5B57\u91CC\u5E26\u300C{q}\u300D\u7684\u6587\u4EF6","penzor.cmd.open":"\u6253\u5F00\u84EC\u6D32\u4E91","penzor.unreachable":"\u8FDE\u4E0D\u4E0A Forsion \u4E91\u7AEF\uFF0C\u7A0D\u540E\u518D\u8BD5","penzor.toast.emptyPartial":"\u56DE\u6536\u7AD9\u91CC\u8FD8\u6709 {n} \u9879\u6CA1\u5220\u6389","penzor.sort.deleted":"\u6309\u5220\u9664\u65F6\u95F4","penzor.side.versionsN":"{n} \u4E2A","penzor.drive":"\u6211\u7684\u4E91\u76D8","penzor.drive.meta":"\u7B97\u5728\u5E94\u7528\u6587\u4EF6\u7684 {max} \u91CC","penzor.drive.empty":"\u8FD9\u91CC\u8FD8\u7A7A\u7740\u3002\u628A\u6587\u4EF6\u62D6\u8FDB\u6765\uFF0C\u6216\u8005\u70B9\u300C\u4E0A\u4F20\u300D\u3002","penzor.act.upload":"\u4E0A\u4F20","penzor.act.uploadMore":"\u66F4\u591A\u4E0A\u4F20\u65B9\u5F0F","penzor.act.uploadFiles":"\u4E0A\u4F20\u6587\u4EF6\u2026","penzor.act.uploadFolder":"\u4E0A\u4F20\u6587\u4EF6\u5939\u2026","penzor.act.uploadHere":"\u4E0A\u4F20\u5230\u8FD9\u91CC\u2026","penzor.act.newFolder":"\u65B0\u5EFA\u6587\u4EF6\u5939","penzor.act.clearSel":"\u53D6\u6D88\u9009\u62E9","penzor.newFolder.default":"\u65B0\u5EFA\u6587\u4EF6\u5939","penzor.sel.bar":"\u5DF2\u9009 {n} \u9879 \xB7 {size}","penzor.sel.title":"\u5DF2\u9009 {n} \u9879","penzor.sel.sub":"{size} \xB7 {files} \u4E2A\u6587\u4EF6","penzor.sel.subDirs":"{size} \xB7 {files} \u4E2A\u6587\u4EF6\u3001{dirs} \u4E2A\u6587\u4EF6\u5939","penzor.sel.download":"\u4E0B\u8F7D {n} \u9879","penzor.sel.saveTo":"\u4E0B\u8F7D\u5230","penzor.sel.saveToValue":"\u4E0B\u8F7D / {folder}","penzor.sel.noDirs":"\u6587\u4EF6\u5939\u8FD9\u4E00\u7248\u8FD8\u4E0D\u80FD\u4E0B\u8F7D\uFF0C\u53EA\u4E0B\u8F7D\u9009\u4E2D\u7684\u6587\u4EF6\u3002","penzor.download.folder":"\u84EC\u6D32\u4E91 {date}","penzor.drop.to":"\u677E\u624B\u4E0A\u4F20\u5230\u300C{place}\u300D","penzor.tx.busy":"\u6B63\u5728\u4F20\u8F93 {n} \u9879","penzor.tx.allDone":"\u5168\u90E8\u4F20\u5B8C","penzor.tx.failedN":"{n} \u9879\u6CA1\u4F20\u5B8C","penzor.tx.counts":"\u4E0A\u4F20 {up} \xB7 \u4E0B\u8F7D {down}","penzor.tx.eta":"\u5269\u7EA6 {eta}","penzor.tx.doneN":"{n} \u9879\u5DF2\u4F20\u5B8C","penzor.tx.restDone":"\u5176\u4F59 {n} \u9879\u5DF2\u4F20\u5B8C","penzor.tx.pill":"{counts} \xB7 {pct}%","penzor.tx.queued":"\u6392\u961F\u4E2D","penzor.tx.paused":"\u5DF2\u6682\u505C \xB7 \u7EE7\u7EED\u4F1A\u4ECE\u5934\u4F20","penzor.tx.uploaded":"\u5DF2\u4E0A\u4F20 \xB7 {time}","penzor.tx.downloaded":"\u5DF2\u4E0B\u8F7D \xB7 {time}","penzor.tx.canceled":"\u5DF2\u53D6\u6D88","penzor.tx.left":"\u5269 {eta}","penzor.tx.sec":"{n} \u79D2","penzor.tx.min":"{n} \u5206\u949F","penzor.tx.pause":"\u6682\u505C","penzor.tx.resume":"\u7EE7\u7EED","penzor.tx.cancel":"\u53D6\u6D88","penzor.tx.retry":"\u91CD\u8BD5","penzor.tx.remove":"\u79FB\u9664","penzor.tx.locate":"\u5B9A\u4F4D","penzor.tx.reveal":"\u5728\u6587\u4EF6\u5939\u4E2D\u663E\u793A","penzor.tx.pauseAll":"\u5168\u90E8\u6682\u505C","penzor.tx.resumeAll":"\u5168\u90E8\u7EE7\u7EED","penzor.tx.retryAll":"\u5168\u90E8\u91CD\u8BD5","penzor.tx.clearDone":"\u6E05\u9664\u5DF2\u5B8C\u6210","penzor.tx.clear":"\u6E05\u9664","penzor.tx.collapse":"\u6536\u8D77","penzor.tx.expand":"\u5C55\u5F00\u4F20\u8F93\u5217\u8868","penzor.tx.quota":"\u7A7A\u95F4\u4E0D\u591F\uFF0C\u8FD8\u5DEE {size}","penzor.tx.quotaSub":"\u8FD9\u4E00\u6279\u4E00\u4E2A\u90FD\u6CA1\u5F00\u59CB\u4F20","penzor.tx.freeSpace":"\u53BB\u56DE\u6536\u7AD9\u817E\u5730\u65B9","penzor.err.too_large":"\u5355\u4E2A\u6587\u4EF6\u8D85\u8FC7 50 MB\uFF08\u8FD9\u4E2A {size}\uFF09\uFF0C\u8FD9\u4E00\u7248\u4F20\u4E0D\u4E86","penzor.err.quota":"\u4E91\u7AEF\u7A7A\u95F4\u4E0D\u591F","penzor.err.network":"\u7F51\u7EDC\u65AD\u4E86\uFF0C\u4F20\u5230 {pct}% \u505C\u4E0B","penzor.err.account_changed":"\u6362\u4E86\u8D26\u53F7\uFF0C\u8FD9\u4E00\u9879\u6CA1\u6709\u63A5\u7740\u4F20","penzor.err.download_unavailable":"\u6B64\u5BBF\u4E3B\u6682\u4E0D\u652F\u6301\u4FDD\u5B58\u4E0B\u8F7D\uFF0C\u8BF7\u66F4\u65B0 Forsion","penzor.err.download_failed":"\u6587\u4EF6\u672A\u4FDD\u5B58\uFF0C\u8BF7\u91CD\u8BD5\u4E0B\u8F7D","penzor.err.not_signed_in":"\u6CA1\u767B\u5F55","penzor.err.gone":"\u672C\u673A\u4E0A\u627E\u4E0D\u5230\u8FD9\u4E2A\u6587\u4EF6\u4E86","penzor.err.popup_blocked":"\u6D4F\u89C8\u5668\u62E6\u4E0B\u4E86\u65B0\u6807\u7B7E\u9875\uFF0C\u5141\u8BB8\u672C\u7AD9\u5F39\u51FA\u7A97\u53E3\u540E\u518D\u8BD5\u4E00\u6B21","penzor.err.changed":"\u4F20\u7684\u65F6\u5019\u6587\u4EF6\u6539\u52A8\u4E86\uFF0C\u91CD\u8BD5\u4E00\u6B21","penzor.err.storage_unavailable":"\u4E91\u7AEF\u5B58\u50A8\u6682\u65F6\u4E0D\u53EF\u7528","penzor.err.other":"\u6CA1\u4F20\u5B8C\uFF08{code}\uFF09","penzor.err.too_many":"\u4E00\u6B21\u6700\u591A {n} \u4E2A\u6587\u4EF6\uFF0C\u5206\u51E0\u6B21\u62D6\u8FDB\u6765","penzor.toast.upDoneOne":"\u5DF2\u4E0A\u4F20\u300C{name}\u300D","penzor.toast.upDoneMany":"\u5DF2\u4E0A\u4F20 {n} \u4E2A\u6587\u4EF6","penzor.toast.downDoneMany":"\u5DF2\u4E0B\u8F7D {n} \u4E2A\u6587\u4EF6\u5230\u300C\u4E0B\u8F7D\u300D","penzor.toast.txFailed":"{n} \u9879\u6CA1\u4F20\u5B8C\uFF0C\u56DE\u84EC\u6D32\u4E91\u770B\u770B","penzor.toast.folderExists":"\u5DF2\u7ECF\u6709\u53EB\u300C{name}\u300D\u7684\u6587\u4EF6\u5939\u4E86","penzor.toast.trashedN":"\u5DF2\u628A {n} \u9879\u79FB\u5230\u56DE\u6536\u7AD9","penzor.toast.movedN":"\u5DF2\u628A {n} \u9879\u79FB\u5230\u300C{name}\u300D","penzor.toast.batchPartial":"\u6709 {n} \u9879\u6CA1\u6210\u529F","penzor.sync.title":"\u540C\u6B65","penzor.sync.onN":"{n} \u9879\u5DF2\u5F00","penzor.sync.allOff":"\u90FD\u6CA1\u5F00","penzor.sync.waiting":"\u7B49\u4F60\u51B3\u5B9A","penzor.sync.badgeWaiting":"{n} \u9879\u5DF2\u5F00 \xB7 1 \u9879\u7B49\u4F60\u51B3\u5B9A","penzor.sync.running":"\u540C\u6B65\u4E2D {pct}%","penzor.sync.runningPlain":"\u540C\u6B65\u4E2D","penzor.sync.metaDevice":"\u8FD9\u53F0 {name}","penzor.sync.metaLast":"\u4E0A\u6B21\u540C\u6B65 {time}","penzor.sync.metaNever":"\u8FD8\u6CA1\u540C\u6B65\u8FC7","penzor.sync.every":"\u6BCF {n} \u5206\u949F","penzor.sync.everyHours":"\u6BCF {n} \u5C0F\u65F6","penzor.sync.manual":"\u624B\u52A8","penzor.sync.onStart":"\u5F00\u673A\u65F6\u4E00\u6B21","penzor.sync.minAgo":"{n} \u5206\u949F\u524D","penzor.sync.hoursAgo":"{n} \u5C0F\u65F6\u524D","penzor.sync.notesNamed":"\u667A\u5E93\u300C{name}\u300D","penzor.sync.notesPlain":"\u8FD9\u53F0\u7535\u8111\u7684\u667A\u5E93","penzor.sync.notesDesc":"\u6574\u4E2A\u672C\u673A\u667A\u5E93\uFF0C\u548C\u4F60\u7684\u5176\u4ED6\u7535\u8111\u4FDD\u6301\u4E00\u81F4","penzor.sync.agents":"Agents \u4E0E\u8BB0\u5FC6","penzor.sync.agentsDesc":"Agents \u7684\u8BB0\u5FC6\u3001\u65E5\u5FD7\u3001\u6280\u80FD\u548C\u534F\u4F5C\u8BF4\u660E\uFF0C\u8FD8\u6709\u4F60\u7684\u8D44\u6599\u548C\u9ED8\u8BA4\u65E5\u5386","penzor.sync.conflictsN":"{n} \u4E2A\u51B2\u7A81\u526F\u672C","penzor.sync.conflictsHint":"\u4E24\u8FB9\u90FD\u6539\u8FC7\u7684\u6587\u4EF6\u4E24\u4EFD\u90FD\u7559\u7740\uFF1A\u53E6\u4E00\u4EFD\u5B58\u6210\u6587\u4EF6\u540D\u5E26\u300Cconflict\u300D\u7684\u526F\u672C\uFF0C\u5728\u5BF9\u5E94 Agent \u7684\u6587\u4EF6\u5939\uFF08\u6216\u4F60\u7684\u8D44\u6599\u6587\u4EF6\u5939\uFF09\u91CC","penzor.sync.pluginsPending":"{n} \u4E2A\u63D2\u4EF6\u7684\u6539\u52A8\u8FD8\u6CA1\u4F20\u4E0A\u53BB","penzor.sync.agentsN":"{n} \u4E2A Agent","penzor.sync.plugins":"\u63D2\u4EF6\u6570\u636E","penzor.sync.pluginsDesc":"\u63D2\u4EF6\u81EA\u5DF1\u5B58\u7684\u8BBE\u7F6E\u548C\u6570\u636E","penzor.sync.pluginsN":"{n} \u4E2A\u63D2\u4EF6","penzor.sync.off":"\u6CA1\u5F00","penzor.sync.done":"\u5DF2\u540C\u6B65","penzor.sync.doneSize":"\u5DF2\u540C\u6B65 \xB7 {size}","penzor.sync.firstPending":"\u7B49\u7B2C\u4E00\u6B21\u540C\u6B65","penzor.sync.failed":"\u4E0A\u6B21\u6CA1\u540C\u6B65\u6210\u529F","penzor.sync.overQuota":"\u8D85\u51FA\u989D\u5EA6\uFF0C\u6709\u7684\u6CA1\u4F20","penzor.sync.to":"\u540C\u6B65\u5230 {name}","penzor.sync.toFolder":"\u540C\u6B65\u5230\u672C\u673A\u6587\u4EF6\u5939","penzor.sync.decideAbove":"\u5728\u4E0A\u9762\u90A3\u5F20\u5361\u91CC\u9009","penzor.sync.kvSchedule":"\u540C\u6B65\u8BA1\u5212","penzor.sync.kvDirection":"\u65B9\u5411","penzor.sync.kvSkipped":"\u6CA1\u4F20\u7684","penzor.sync.kvWhere":"\u4E91\u7AEF\u4F4D\u7F6E","penzor.sync.change":"\u6539","penzor.sync.open":"\u6253\u5F00","penzor.sync.dir.both":"\u53CC\u5411","penzor.sync.dir.push":"\u4EC5\u4E0A\u4F20","penzor.sync.dir.pull":"\u4EC5\u4E0B\u8F7D","penzor.sync.skippedN":"{n} \u4E2A\u8D85\u8FC7 {size} \u7684\u6587\u4EF6","penzor.sync.where":"{ledger} \u203A {vault}","penzor.sync.whereUsed":"{ledger} \u203A {vault} \xB7 {used} / {max}","penzor.sync.devicesTitle":"\u5728\u540C\u6B65\u7684\u8BBE\u5907","penzor.sync.thisOne":"\u8FD9\u53F0","penzor.sync.lastWrite":"\u4E0A\u6B21\u5199\u5165 {time}","penzor.sync.noDevices":"\u8FD8\u6CA1\u6709\u8BBE\u5907\u5728\u540C\u6B65","penzor.sync.phoneTitle":"\u624B\u673A\u548C\u7F51\u9875\u770B\u5230\u7684\u90A3\u4E00\u4EFD","penzor.sync.phoneTip":"\u624B\u673A\u548C\u7F51\u9875\u76F4\u63A5\u8BFB\u300C\u4E91\u7AEF\u667A\u5E93\u300D\uFF08Amadeus \u7684\u4E91\u7AEF\u4FA7\uFF0C{size}\uFF09\uFF0C\u5B83\u4E00\u76F4\u5728\u540C\u6B65\uFF0C\u548C\u4E0A\u9762\u8FD9\u53F0\u7535\u8111\u7684\u667A\u5E93\u662F\u4E24\u4EFD\u3002\u60F3\u5728\u624B\u673A\u4E0A\u770B\u8FD9\u53F0\u7684\u67D0\u4E2A\u6587\u4EF6\u5939\uFF1A\u5728\u7B14\u8BB0\u91CC\u53F3\u952E\u90A3\u4E2A\u6587\u4EF6\u5939\uFF0C\u628A\u5B83\u540C\u6B65\u5230\u4E91\u7AEF\u667A\u5E93\u3002","penzor.sync.phoneTipPlain":"\u624B\u673A\u548C\u7F51\u9875\u76F4\u63A5\u8BFB\u300C\u4E91\u7AEF\u667A\u5E93\u300D\uFF08Amadeus \u7684\u4E91\u7AEF\u4FA7\uFF09\uFF0C\u5B83\u4E00\u76F4\u5728\u540C\u6B65\uFF0C\u548C\u4E0A\u9762\u8FD9\u53F0\u7535\u8111\u7684\u667A\u5E93\u662F\u4E24\u4EFD\u3002\u60F3\u5728\u624B\u673A\u4E0A\u770B\u8FD9\u53F0\u7684\u67D0\u4E2A\u6587\u4EF6\u5939\uFF1A\u5728\u7B14\u8BB0\u91CC\u53F3\u952E\u90A3\u4E2A\u6587\u4EF6\u5939\uFF0C\u628A\u5B83\u540C\u6B65\u5230\u4E91\u7AEF\u667A\u5E93\u3002","penzor.sync.foot":"\u540C\u6B65\u8BA1\u5212\u3001\u65B9\u5411\u548C\u5176\u4ED6\u5B58\u50A8\uFF08Dropbox / S3 / WebDAV\uFF09\u5728","penzor.sync.footLink":"\u8BBE\u7F6E \u203A \u540C\u6B65","penzor.sync.askTitle":"\u4E91\u7AEF\u5DF2\u7ECF\u6709\u4E00\u4EFD\u667A\u5E93","penzor.sync.askCloud":"\u4E91\u7AEF\u90A3\u4EFD\u6765\u81EA {device}\uFF1A{files} \u4E2A\u6587\u4EF6 \xB7 {size}\u3002","penzor.sync.askCloudNoDevice":"\u4E91\u7AEF\u90A3\u4EFD\uFF1A{files} \u4E2A\u6587\u4EF6 \xB7 {size}\u3002","penzor.sync.askLocal":"\u8FD9\u53F0\u6709 {local} \u4E2A\u6587\u4EF6\u4E91\u7AEF\u6CA1\u6709\uFF0C{conflicts} \u4E2A\u4E24\u8FB9\u5185\u5BB9\u4E0D\u540C\u3002","penzor.sync.askMerge":"\u5408\u5E76\u4E24\u8FB9","penzor.sync.askCloudBtn":"\u7528\u4E91\u7AEF\u90A3\u4EFD","penzor.sync.askSkip":"\u8FD9\u53F0\u5148\u4E0D\u540C\u6B65\u667A\u5E93","penzor.sync.askExplain":"\u5408\u5E76\uFF1A\u4E24\u8FB9\u90FD\u7559\u7740\uFF0C\u5185\u5BB9\u4E0D\u540C\u7684\u53E6\u5B58\u4E00\u4EFD\u300C\uFF08\u51B2\u7A81\uFF09\u300D\u3002\u7528\u4E91\u7AEF\u90A3\u4EFD\uFF1A\u8FD9\u53F0\u548C\u4E91\u7AEF\u4E0D\u4E00\u6837\u7684\u6587\u4EF6\u5148\u632A\u8FDB\u65C1\u8FB9\u7684\u300C{backup}\u300D\u6587\u4EF6\u5939\uFF0C\u518D\u4E0B\u8F7D\u4E91\u7AEF\u90A3\u4EFD\u3002","penzor.sync.askConfirm":"\u8FD9\u53F0\u548C\u4E91\u7AEF\u4E0D\u4E00\u6837\u7684\u6587\u4EF6\u4F1A\u5148\u632A\u8FDB\u300C{backup}\u300D\uFF0C\u518D\u6362\u6210\u4E91\u7AEF\u90A3\u4EFD\u3002","penzor.sync.askConfirmGo":"\u632A\u8D70\u5E76\u7528\u4E91\u7AEF\u90A3\u4EFD","penzor.sync.backupName":"{name} \u540C\u6B65\u524D\u5907\u4EFD {date}","penzor.sync.quotaTitle":"\u667A\u5E93 {size}\uFF0C\u8D85\u8FC7\u4E86\u300C{ledger}\u300D\u7684 {max} \u4E0A\u9650","penzor.sync.quotaTitlePlain":"\u667A\u5E93\u8D85\u8FC7\u4E86\u300C{ledger}\u300D\u7684\u4E0A\u9650","penzor.sync.quotaBody":"\u653E\u4E0D\u4E0B\u7684\u6587\u4EF6\u7559\u5728\u8FD9\u53F0\u7535\u8111\u4E0A\uFF0C\u6CA1\u6709\u5220\uFF0C\u4E5F\u6CA1\u6709\u4F20\uFF1B\u5176\u4F59\u51E0\u9879\u7167\u5E38\u540C\u6B65\u3002","penzor.sync.quotaLarge":"\u8D85\u8FC7 {size} \u7684\u5355\u4E2A\u6587\u4EF6\u4E00\u76F4\u4E0D\u4F20\uFF08{n} \u4E2A\uFF09\u3002","penzor.sync.quotaSee":"\u770B\u770B\u6CA1\u4F20\u7684\u6587\u4EF6","su.title":"\u5546\u5E97\u66F4\u65B0","su.source.github":"GitHub \u6765\u6E90","su.source.npm":"npm \u6765\u6E90","su.source.zip":"ZIP \u4E0A\u4F20","su.review":"\u5F85\u5BA1\u6838","su.approved":"\u5DF2\u901A\u8FC7","su.rejected":"\u6CA1\u901A\u8FC7","su.viaGithub":"GitHub Release {tag}","su.viaNpm":"npm {version}","su.metaReview":"{time} \u63D0\u4EA4 \xB7 \u5BA1\u6838\u7ED3\u679C\u4F1A\u53D1\u5230\u6536\u4EF6\u7BB1","su.metaReviewNoTime":"\u5BA1\u6838\u7ED3\u679C\u4F1A\u53D1\u5230\u6536\u4EF6\u7BB1","su.metaApproved":"\u5546\u5E97\u73B0\u5728\u663E\u793A {version}","su.metaApprovedInfo":"\u5546\u5E97\u4FE1\u606F\u5DF2\u66F4\u65B0","su.metaRejected":"\u5546\u5E97\u7167\u65E7\u663E\u793A {version}","su.metaRejectedUnlisted":"\u8FD8\u6CA1\u6709\u4E0A\u67B6","su.infoOnly":"\u53EA\u6539\u5546\u5E97\u4FE1\u606F","su.listSep":"\u3001","su.openSubmission":"\u5728\u6295\u7A3F\u4E2D\u67E5\u770B","wc.title":"\u7F51\u9875","wc.pill.published":"\u5DF2\u53D1\u5E03","wc.pill.live":"\u5DF2\u4E0A\u7EBF","wc.pill.review":"\u4E0A\u67B6\u5BA1\u6838\u4E2D","wc.pill.listed":"\u5DF2\u4E0A\u67B6","wc.pill.rejected":"\u4E0A\u67B6\u672A\u901A\u8FC7","wc.pill.gone":"\u5DF2\u4E0B\u7EBF","wc.justPublished":"\u521A\u521A\u53D1\u5E03","wc.anyone":"\u62FF\u5230\u94FE\u63A5\u7684\u4EBA\u90FD\u80FD\u6253\u5F00","wc.open":"\u6253\u5F00","wc.viewInPages":"\u5728\u6211\u7684\u7F51\u9875\u4E2D\u67E5\u770B","wc.manage":"\u5728\u6211\u7684\u7F51\u9875\u4E2D\u7BA1\u7406","wc.total":"\u5DF2\u53D1\u5E03 {n} \u4E2A","wc.more":"\u8FD8\u6709 {n} \u4E2A","wc.unpublishTitle":"\u4E0B\u7EBF\u300C{name}\u300D\uFF1F","wc.unpublishBody":"\u94FE\u63A5\u4F1A\u5931\u6548\uFF0C\u7F51\u9875\u7684\u6587\u4EF6\u4E5F\u4F1A\u4ECE\u4E91\u76D8\u5220\u9664\u3002","wc.unpublishAgain":"\u518D\u70B9\u4E00\u6B21\u4E0B\u7EBF"},Ab={"events.title":"Events","events.back":"Back to app","events.count":"{n} live","events.group.active":"Live","events.group.notice":"Notices","events.group.upcoming":"Coming up","events.ended":"Past events","events.endedEmpty":"No past events yet","events.list":"All events","events.kind.checkin":"Check-in","events.kind.tasks":"Quests","events.kind.game":"Mini game","events.kind.notice":"Notice","events.left.days":"{n}d left","events.left.hours":"{n}h left","events.left.long":"{d}d {h}h left","events.left.longHours":"{h}h left","events.time.start":"Starts {date}","events.time.claim":"Ended. Claim by {date}","events.time.claimShort":"Claim by {date}","events.time.ended":"Ended {date}","events.time.published":"Published {date}","events.rewards":"Rewards","events.checkin.signed":"{n} of {total} days","events.checkin.today":"Today","events.checkin.day":"Day {n}","events.checkin.do":"Check in","events.checkin.done":"Checked in today","events.checkin.finished":"All days complete","events.tasks.progress":"Progress","events.tasks.claim":"Claim","events.tasks.claimAll":"Claim all ({n})","events.tasks.go":"Go","events.tasks.closed":"Event ended","events.game.board":"Leaderboard","events.game.me":"You","events.game.anon":"Anonymous","events.game.enter":"Play","events.game.install":"Get it in the Store","events.game.empty":"No scores yet","events.notice.more":"Learn more","events.toast.checkin":"Checked in: {reward}","events.toast.claimed":"Claimed {reward}","events.toast.partial":"{n} claimed, {m} failed. Try again later","events.toast.backpack":"Open backpack","events.err.failed":"Not claimed. Try again when you're back online","events.err.notLive":"This event has ended","events.err.completed":"You've completed every day","events.err.grantFailed":"The reward didn't go through. It's logged for manual delivery, so there's no need to claim again","events.login.title":"Sign in to join events","events.login.do":"Sign in to Forsion","events.empty":"No events right now","events.error":"Couldn't load events","events.retry":"Try again","events.dot":"Rewards to claim or new events","penzor.rules.default":"Cloud default","penzor.rules.off":"Do not sync","penzor.rules.device":"Device","penzor.rules.run":"Sync now","penzor.rules.twoWay":"Two-way","penzor.rules.defaultForWeb":"The web uses the default folder","penzor.rules.tab.rules":"Sync rules","penzor.rules.tab.active":"Transfers","penzor.rules.tab.history":"History","penzor.rules.enable":"Enable content sync","penzor.rules.add":"Add rule","penzor.rules.source":"Local source","penzor.rules.destination":"Cloud destination","penzor.rules.direction":"Direction","penzor.rules.remove":"Remove rule","penzor.rules.inherit":"An empty path covers all of Forsion. Children inherit; the most specific path wins. Unmatched content stays on this device.","penzor.rules.namespace":"Default: Cloud /Forsion/. Device folders: Cloud /Forsion-deviceID/.","penzor.rules.human":"Choose human independently. The default calendar uses human/CALENDAR.db. A device destination does not replace the web default.","penzor.rules.preview":"Preview changes","penzor.rules.previewTitle":"Review sync scope","penzor.rules.previewCounts":"Upload {up}, download {down}; {conflicts} existing items need merging or preserved versions.","penzor.rules.retain":"Previous destinations are retained. Turning sync off deletes no files. If sources change, preview again.","penzor.rules.back":"Back","penzor.rules.apply":"Confirm and start","penzor.rules.pause":"Pause","penzor.rules.resume":"Continue","penzor.rules.noActive":"No files are transferring.","penzor.rules.manual":"Manual uploads and downloads","penzor.rules.historyNote":"The latest 200 items. Conflicts preserve both versions; other content continues syncing.","penzor.rules.retry":"Retry failed items","penzor.rules.noHistory":"No sync history yet.","penzor.rules.details":"View transfers","penzor.rules.plugins":"Plugin data keeps its own sync management.","penzor.rules.turnOff":"Turn off plugin data sync","penzor.rules.turnOn":"Turn on plugin data sync","penzor.rules.phase.idle":"Waiting for the next sync","penzor.rules.phase.scanning":"Checking files","penzor.rules.phase.syncing":"Syncing","penzor.rules.phase.paused":"Paused","penzor.rules.state.queued":"Queued","penzor.rules.state.active":"Transferring","penzor.rules.state.done":"Done","penzor.rules.state.failed":"Failed","penzor.rules.state.paused":"Paused","penzor.rules.state.conflict":"Conflict versions preserved","penzor.tree.synced":"Synced","penzor.tree.thisBackup":"This computer \xB7 backup only","penzor.tree.byApp":"By app","penzor.tree.legacy":"Legacy vault sync","penzor.quota.sourceLimit":"This kind also has its own limit of {max}; {used} used","penzor.ov.mine":"Yours","penzor.ov.synced":"Synced from your devices","penzor.ov.stale":"No longer updated","penzor.ov.uploads":"Files you upload and organize; change them freely","penzor.ov.all":"Notes, agents, about me and plugins","penzor.ov.allLast":"Notes, agents, about me and plugins \xB7 last synced {time}","penzor.ov.self":"The copy only this computer uses","penzor.ov.device":"Shared only between this computer and that one","penzor.ov.agents":"Agent settings, memory and logs","penzor.ov.profile":"Your profile and default calendar","penzor.ov.sync":"Vaults your computers sync up","penzor.ov.legacy":"No longer written once this computer uses the new sync; kept, not deleted","penzor.ov.ama":"Notes from the web and synced notes","penzor.ov.apps":"Files your apps store; delete or rename them","penzor.ov.plugins":"Settings plugins store; usage only","penzor.ov.exports":"Exported files; download or delete them","penzor.ov.segNotes":"Notes","penzor.ov.segSync":"Device sync","penzor.ov.segOther":"Other","penzor.content.badge":"Kept by the new sync","penzor.content.badgeLast":"Kept by the new sync \xB7 last synced {time}","penzor.content.noteAll":"This is the cloud copy every signed-in device and the web see. To change files, edit them in Notes or Agents on a computer and they sync up; you can download them here.","penzor.content.noteSelf":"The copy only this computer uses; other devices don\u2019t see it. Change files on this computer; you can download them here.","penzor.content.noteDevice":"Shared only between this computer and {name}. Change files on a computer; you can download them here.","penzor.legacy.title":"This computer stopped writing to this vault when it switched to the new sync","penzor.legacy.body":"This computer\u2019s notes now live in Shared with all devices \u203A Notes. Older desktop versions may still write here, so this copy is kept, not deleted.","penzor.legacy.go":"See the new copy","penzor.drive.total":"All of Penzor Cloud: {used} / {max} used","penzor.drive.seeAll":"View","penzor.cs.statusOff":"Off","penzor.cs.statusPaused":"Paused","penzor.cs.statusRun":"Syncing {pct}%","penzor.cs.statusScan":"Checking files","penzor.cs.statusWarn":"{n} to review","penzor.cs.statusOk":"Up to date","penzor.cs.statusOkAgo":"Up to date \xB7 {time}","penzor.widget.signedOut":"Not signed in to Forsion","penzor.widget.signInHint":"Sign in to sync","penzor.widget.off":"Cloud sync is off","penzor.widget.paused":"Sync is paused","penzor.widget.running":"Syncing","penzor.widget.problem":"Sync needs attention","penzor.widget.active":"Transferring {n}","penzor.widget.queued":"{n} more queued","penzor.widget.waiting":"{n} waiting to sync","penzor.widget.failed":"Failed","penzor.widget.error":"Sync ran into an error","penzor.widget.errorMeta":"Error","penzor.widget.conflict":"Conflict, both kept","penzor.widget.more":"{n} more to check","penzor.widget.last":"Last synced {time}","penzor.widget.pending":"Notes are already in the cloud","penzor.widget.notesFailed":"Last note sync failed","penzor.widget.agentsFailed":"Last agent sync failed","penzor.cs.thisComputer":"This computer: {name}","penzor.cs.thisComputerLabel":"This computer:","penzor.cs.rename":"Rename this computer","penzor.cs.renameHint":"Other devices will show this name \xB7 Enter to save","penzor.cs.name.taken":"Another device already uses this name. Pick another one.","penzor.cs.name.reserved":"macOS, Windows and Linux are kept for systems. Pick another name.","penzor.cs.name.invalid":"Names can have up to 64 characters and no square brackets.","penzor.cs.othersN":"{n} others: {names}","penzor.cs.noOthers":"No other devices on this account yet","penzor.cs.log":"Recent activity","penzor.cs.more":"More","penzor.cs.advanced":"Advanced: edit rules","penzor.cs.backSimple":"Back to sync","penzor.cs.firstTitle":"Sync this computer to Penzor Cloud","penzor.cs.firstBody":"Here is a suggested setup; change anything first. Nothing moves until you press Start syncing, and nothing already in the cloud is overwritten or deleted.","penzor.cs.note":"To treat one notes folder or agent differently, click the small line under it. Turning a switch off just stops syncing; nothing is deleted.","penzor.cs.barFirst":"Turning sync on uploads {up} files and downloads {down}","penzor.cs.barChanged":"{n} changes","penzor.cs.barOne":"1 change: \u201C{name}\u201D \u2192 {scope}","penzor.cs.offName":"not synced","penzor.cs.barCounts":"Uploads {up} files and downloads {down} \xB7 nothing is deleted","penzor.cs.barSize":"{size} in total","penzor.cs.noDelete":"nothing will be deleted","penzor.cs.barConflicts":"{n} changed on both sides; both copies are kept","penzor.cs.barCounting":"Working out what will move\u2026","penzor.cs.barRecount":"Files just changed, so this was recalculated. Please confirm again.","penzor.cs.later":"Not now","penzor.cs.start":"Start syncing","penzor.cs.undo":"Undo","penzor.cs.confirm":"Confirm","penzor.cs.up":"Uploading \u201C{name}\u201D","penzor.cs.down":"Downloading \u201C{name}\u201D","penzor.cs.waiting":"{n} more files waiting","penzor.cs.failedN":"{n} files didn\u2019t sync","penzor.cs.retry":"Retry","penzor.cs.seeLog":"See activity","penzor.cs.logEmpty":"No sync activity yet.","penzor.cs.logNote":"Keeps the latest 200 items. When both sides changed, both copies are kept.","penzor.cat.notes":"Notes","penzor.cat.notesDesc":"Your Amadeus vault","penzor.cat.agents":"Agents & memory","penzor.cat.agentsDesc":"Each agent\u2019s settings, memory and logs","penzor.cat.profile":"About me","penzor.cat.profileDesc":"Your profile and default calendar","penzor.cat.profileOn":"Includes your default calendar","penzor.cat.plugins":"Plugins","penzor.cat.pluginsDesc":"Plugin folders and settings","penzor.cat.others":"Other files","penzor.cat.othersDesc":"Files in your workspace outside the groups above","penzor.cat.files":"{n} files \xB7 {size}","penzor.agents.pickHint":"Choose each one; new agents aren\u2019t synced \xB7 {n} selected","penzor.agents.legacyHint":"Older setting: new agents sync too \xB7 {n} selected","penzor.agents.none":"No agents on this computer yet","penzor.agents.muse":"Muse","penzor.agents.museDesc":"Background agent; runs separately on each computer","penzor.agents.locked":"Sync not available yet","penzor.agents.cloudOnly":"In the cloud \xB7 not on this computer yet; turn on to download","penzor.agents.historianNote":"Historian\u2019s drafts stay on each computer. What it writes into an agent\u2019s log syncs with that agent.","penzor.agents.archiveRunning":"Cloud agents are being archived. Try again in a moment.","penzor.cs.accountReview":"Account changed. Local files may contain content from another account. Review and confirm the sync selection before syncing again.","penzor.agents.openFailed":"Couldn\u2019t turn on sync for this agent, so it stays off: {reason}","penzor.archive.title":"Agents now sync one by one","penzor.archive.body":"Agents that synced with the old all-agents switch have stopped. Their cloud copy is in \u201CMy drive \u203A {shelf} \u203A {name}\u201D, read-only and downloadable. Turn on the ones you still want, one at a time.","penzor.archive.shelf":"Archive","penzor.archive.ok":"Got it","penzor.archive.open":"Open archive","penzor.archive.note":"This is an agent sync archive. It\u2019s read-only: you can download it or delete the whole archive.","penzor.ask.title":"{name} already has a copy in the cloud","penzor.ask.when":"Cloud copy last changed: {cloud}. This computer: {local}. Choose once before turning sync on; after that it merges automatically.","penzor.ask.merge":"Merge them","penzor.ask.mergeDesc":"Memory, logs and schedules merge entry by entry. Where both sides changed settings or personality, the newer copy wins and the other goes to this computer\u2019s recycle folder","penzor.ask.cloud":"Use the cloud copy","penzor.ask.cloudDesc":"This computer\u2019s copy goes to the recycle folder first, then the cloud copy replaces it","penzor.ask.local":"Use this computer\u2019s copy","penzor.ask.localDesc":"The cloud copy is archived first, then replaced with this computer\u2019s","penzor.ask.recommended":"Recommended","penzor.ask.foot":"Recycled files are in agents/.removed and can be recovered","penzor.ask.cancel":"Cancel","penzor.ask.confirm":"Turn on sync","penzor.cat.pluginsN":"{n} plugins","penzor.cat.custom":"{n} custom rules","penzor.cat.notSynced":"Not synced \xB7 stays on this computer","penzor.scope.all":"Shared with all devices","penzor.scope.allDesc":"Every signed-in device and the web see one copy","penzor.scope.self":"Back up this computer only","penzor.scope.selfDesc":"Kept in its own cloud copy other devices don\u2019t see","penzor.scope.with":"Only with {name}","penzor.scope.menuTitle":"Who shares \u201C{name}\u201D","penzor.scope.menuFoot":"To stop syncing it, turn off the switch","penzor.scope.calendarNote":"The web\u2019s default calendar doesn\u2019t follow this","penzor.unified.stale":"Refresh failed. Showing the last sample; current usage is unknown. Please retry.","penzor.unified.uploadTo":"Upload to My files","penzor.unified.apps":"Manage ordinary files \xB7 source restrictions apply","penzor.trash.ama":"Amadeus \xB7 pending cleanup","penzor.trash.amaNote":"Deleted current files still count; history is not counted again. Eligible for system cleanup after 30 days. Read-only here; Empty trash does not affect these snapshots.","penzor.trash.expires":"Cleanup eligible from","penzor.source.openAgents":"Open Agents","penzor.source.openCalendar":"Open calendar","penzor.source.entryUnavailable":"This host does not provide that destination","penzor.uploads":"My files","penzor.source.agents":"Agents","penzor.source.profile":"My profile","penzor.source.plugins":"Plugin data","penzor.source.readonly":"Synced sources are read-only. Edit or delete in the source; download synced files here.","penzor.source.appNote":"App files are managed by their app. Edit or delete them there.","penzor.source.market":"Store submissions","penzor.ov.market":"Plugins, skills and Agents you submitted to the Store; they follow their listings","penzor.source.marketNote":"These packages follow their Store listings: delete a listing in Store \u203A My submissions to free its space. Packages fetched from GitHub or npm are stored by the Store and don't count toward your storage.","penzor.market.badge":"Managed by the Store","penzor.market.meta":"{size} \xB7 {n} packages","penzor.market.history":"Older versions {size}, not counted (same as elsewhere)","penzor.market.older":"older versions {size}","penzor.market.updating":"update in review","penzor.market.notCounted":"Not counted","penzor.market.fromGithub":"From GitHub \xB7 stored by the Store","penzor.market.fromNpm":"From npm \xB7 stored by the Store","penzor.market.type.plugin":"Plugin","penzor.market.type.skill":"Skill","penzor.market.type.agent":"Agent","penzor.market.type.space":"Space","penzor.market.type.theme":"Theme","penzor.market.type.amadeusPlugin":"Amadeus plugin","penzor.market.status.approved":"Listed","penzor.market.status.pending":"In review","penzor.market.status.rejected":"Not approved","penzor.col.type":"Type","penzor.col.status":"Status","penzor.source.pluginNote":"Names and usage only. Data may contain settings or credentials, so preview and download are unavailable.","penzor.unified.unavailable":"Usage unavailable","penzor.unified.incomplete":"Unified usage is incomplete, so quota status is unknown. Refresh to retry.","penzor.unified.enforced":"Unified quota is active. Over quota, new content and larger replacements are paused; downloads, deletions and non-growing replacements remain available.","penzor.unified.grace":"Notice grace period ends {date}. Unified quota does not add restrictions yet.","penzor.unified.rolloutPolicy":"Storage policy notice: growth limits may start no earlier than 30 days after acknowledgement. App file history will retain at most 50 versions from the last 30 days. History is excluded from your plan; download backups before cleanup. Current files are not removed by history cleanup.","penzor.unified.ack":"I have read the storage and history notice","penzor.unified.notice":"This is only a notice. Going over won\u2019t stop sync or uploads","penzor.unified.over":"Unified quota exceeded. This is a notice only; no new sync or upload restrictions apply. Clear files or upgrade your plan.","penzor.unified.warn":"Unified storage is nearly full. This is a notice only; no new sync or upload restrictions apply.","penzor.unified.accounting":"includes {trash} in trash; history doesn\u2019t count","penzor.unified.writable":"Upload, create, rename and delete","penzor.unified.readonly":"Read-only \xB7 managed at source","penzor.unified.export":"Download, rename and permanently delete","penzor.unified.counted":"Included in unified usage \xB7 notice phase","penzor.unified.policy":"If limits are ever enforced, you\u2019ll hear at least 30 days ahead.","penzor.unified.legacySync":"Existing device sync limit: {used} / {max}","penzor.unified.legacyApps":"Existing app file limit: {used} / {max}","sub.identity":"Plugin ID","sub.identityHint":"A unique ID is assigned after submission. Names may repeat; updates keep the same ID.","sub.description":"Detailed description","sub.tags":"Tags","sub.tagsHint":"Comma separated, up to 8","sub.minAppVersion":"Minimum Forsion version","sub.maxAppVersion":"Maximum version (exclusive)","sub.optional":"Optional","sub.platforms":"Supported platforms","sub.requirementsHint":"Supported: desktop, macos, windows, linux, android, ios, web. Leave blank if unspecified. ZIP requirements are read from the manifest; supplied values must match it.","sub.err.market_requirements_invalid":"Invalid version requirements or platforms.","sub.err.market_requirements_mismatch":"Supplied requirements differ from the ZIP manifest.","sub.mine":"My submissions","page.submission":"Submissions","page.webPages":"My web pages","web.title":"My web pages","web.desc":"Pages you published with Tangu or Coding Space. Anyone with the link can open them; they run sandboxed and can't read visitors' Forsion sign-in.","web.refresh":"Refresh","web.used":"{used} of {limit} published","web.full":"All slots are used. Take one down or upgrade to publish another","web.empty":"No published pages yet","web.emptyHint":'Ask Tangu in a chat to publish a page, for example "publish this page", or choose Publish on a Coding Space project.',"web.updated":"Updated {date}","web.disabled":"Disabled","web.disabledHint":"An administrator disabled this page. Its link doesn't open and it can't be updated.","web.copy":"Copy link","web.unpublish":"Take down","web.unpublishConfirm":"Confirm take down","web.listingPending":"Store listing in review","web.listingApproved":"Listed in store","web.listingRejected":"Store listing rejected","web.listingNote":"Reason: {note}","web.listingApply":"Apply for store listing","web.listingReapply":"Apply again","web.listingWithdraw":"Withdraw application","web.listingDelist":"Remove from store","web.listingDelistConfirm":"Confirm removal","web.listingSummary":"Store summary","web.listingSummaryPh":"One sentence about this page","web.listingHint":"Shown in the store under Web apps after review. Up to 300 characters.","web.listingSubmit":"Submit application","pub.cmd":"Publish web page to Forsion","pub.cmdNoArgs":"Open the project you want to publish from Coding Studio","pub.title":"Publish to Forsion: {name}","pub.titleTerms":"Publish as a public page","pub.close":"Close","pub.desc":"Publish this page as a public link. Anyone with the link can open it.","pub.descPublished":"Published. Come back and choose Update after changes; the link stays the same.","pub.needLogin":"Sign in with Forsion to publish","pub.login":"Sign in to Forsion","pub.loginWaiting":"Waiting for the browser to finish\u2026","pub.name":"Name","pub.slug":"Link slug","pub.slugHint":"3\u201332 lowercase letters, digits or hyphens","pub.entry":"Entry page","pub.noEntry":"This project has no .html entry yet. Generate a page first.","pub.slots":"{used} of {limit} published ({tier})","pub.hint":"Use relative paths for assets. .ts and .tsx are transpiled on publish, no build step.","pub.anyone":"Anyone with the link can open it","pub.likes":"{n} likes","pub.saves":"{n} saves","pub.copy":"Copy link","pub.copied":"Copied","pub.open":"Open in browser","pub.publish":"Publish","pub.update":"Update","pub.saveUpdate":"Save and update","pub.publishing":"Publishing\u2026","pub.listingTitle":"Store \xB7 Web apps","pub.listingNone":"Not listed","pub.listingPending":"In review","pub.listingApproved":"Listed","pub.listingRejected":"Rejected","pub.listingHint":"Listed pages appear under Web apps in the Store after review.","pub.termsIntro":"Once published, anyone with the link can view this page, and it may be shared or indexed by search engines. Please confirm:","pub.termsLi1":"You have the right to publish all text, images, audio, video and other content on the page;","pub.termsLi2":"The page contains no illegal information, infringing content or personal information disclosed without permission;","pub.termsLi3":"You take responsibility for the content you publish.","pub.termsManage":"The platform manages public content under applicable laws and the Content Publishing Guidelines, and may restrict access to, stop showing or remove violating content.","pub.termsAgreePre":"I have read and agree to the ","pub.termsGuidelines":"Content Publishing Guidelines","pub.termsConfirm":"Confirm and publish","pub.aiSaveFailed":"Published, but the AI settings weren\u2019t saved: {reason}","ai.whoPays":"Who pays","ai.payer.visitor":"Visitors","ai.payer.author":"I pay","ai.perVisitor":"Per visitor","ai.perVisitorPre":"Up to","ai.perVisitorPost":"calls a day","ai.page":"This page","ai.pagePre":"Up to","ai.pagePost":"points a day","ai.max":"Up to {n}","ai.whenUsedUp":"When used up","ai.exhausted.visitor":"Switch to visitors\u2019 own quota","ai.exhausted.pause":"Pause AI until tomorrow","ai.models":"Models","ai.modelDefault":"default","ai.modelImage":"Image","ai.balance":"Pack balance","ai.points":"{n} points","ai.buy":"Buy a pack","ai.noteAuthor":"Visitors sign in with Forsion before using AI; it only counts calls per person and doesn\u2019t use their quota. Charged at the same model rates as when visitors pay; your own AI quota and points balance are never touched.","ai.noteVisitor":"Viewing needs no sign-in. Visitors sign in with Forsion when they use AI, and their own quota is used.","ai.noteOff":"\u201CI pay\u201D isn\u2019t available yet, so visitors pay for AI.","ai.agentNote":"forsion.ai.agent still uses the visitor\u2019s own quota for now; visitors confirm before the first use.","ai.cooldownNew":"New pages switch to you paying {h} hours after publishing; until then visitors pay.","ai.cooldownUntil":"You pay from {time}; until then visitors pay.","ai.save":"Save","ai.saved":"AI settings saved","web.tabMine":"Published {n}","web.tabSaved":"Saved","web.tabSavedN":"Saved {n}","web.ai.author":"AI \xB7 I pay","web.ai.visitor":"AI \xB7 Visitors pay","web.ai.paused":"AI \xB7 I pay \xB7 paused","web.ai.pausedSpike":"Spending spiked within an hour, so visitors pay again","web.ai.pausedAdmin":"Paused by an administrator; visitors pay for now","web.ai.resume":"Resume I pay","web.ai.todayAuthor":"{calls} calls today \xB7 {visitors} visitors","web.ai.todayVisitor":"{calls} calls today","web.ai.cap":"Daily cap","web.ai.none":"No AI","web.ai.settings":"AI settings","web.ai.cooldown":"You pay from {time}","pack.points":"points","pack.note":"Pages set to \u201CI pay\u201D draw from here at the model rates. Your own AI quota and points balance are never touched.","pack.lowNote":"Almost used up. Then each \u201CI pay\u201D page follows its setting: visitors use their own quota, or AI pauses until tomorrow.","pack.monthSpent":"Used this month","pack.lastTopUp":"Last top-up","pack.topUp":"{date} \xB7 +{n}","pack.usage":"Usage","pack.usageTitle":"\u201CI pay\u201D usage in the last 30 days","pack.usageEmpty":"No \u201CI pay\u201D calls in the last 30 days","pack.col.day":"Date","pack.col.page":"Page","pack.col.calls":"Calls","pack.col.visitors":"Visitors","pack.col.points":"Points","pack.storeTitle":"Store","pack.storeUnavailable":"Open Store \u203A Items to buy a pack","saved.empty":"No saved pages yet","saved.emptyHint":"Tap the star beside someone\u2019s page to save it here.","saved.open":"Open","saved.author":"Author page","saved.unsave":"Unsave","saved.aiAuthor":"AI on the author","saved.aiVisitor":"AI \xB7 you pay","backpack.effect.connectPack":"Pack balance +{n} points","backpack.effect.other":"Other effect","backpack.packUsed":"Added to your pack balance","backpack.packUsedLine":"+{n} points \xB7 {balance} points now","sub.desc":"Manage your submissions, review results and version updates.","sub.new":"New submission","sub.refresh":"Refresh","sub.empty":"No submissions yet","sub.emptyHint":"Share your plugins, skills, Agents or Spaces in the marketplace.","sub.name":"Name","sub.summary":"Summary","sub.type":"Content type","sub.source":"Source","sub.type.skill":"Skill","sub.type.agent":"Agent","sub.type.plugin":"Plugin","sub.type.space":"Space","sub.type.theme":"Theme","sub.type.amadeus_plugin":"Amadeus plugin","sub.pending":"Pending review","sub.approved":"Published","sub.rejected":"Rejected","sub.pendingVersion":"v{version} update pending review","sub.rejectedVersion":"v{version} update rejected","sub.submit":"Submit for review","sub.submitted":"Submitted. The review result appears here and in your inbox.","sub.updated":"Update submitted for review. The published version stays available until then; the result goes to your inbox.","sub.repo":"Public GitHub repository","sub.npm":"Public npm package","sub.repoHint":"README and Releases come from the repository; its owner is shown as the publisher.","sub.npmHint":"Package metadata comes from npm; the public repository owner is shown as the publisher.","sub.reviewHint":"New versions require review before distribution. Your Forsion account manages the submission.","sub.zipHint":"Up to 50 MB. Include the required manifest and entry files.","sub.filter":"Filter by status","sub.all":"All","sub.noResults":"No matching submissions","sub.downloads":"{n} downloads","sub.errName":"Enter a name.","sub.errSource":"Enter a public repository URL or npm package name.","sub.errZip":"Choose a ZIP archive.","sub.errLarge":"ZIP archives must not exceed 50 MB.","sub.err.market_npm_invalid":"The npm package is unavailable or does not meet the plugin requirements.","sub.err.market_npm_source":"Publish the new version on npm for review.","sub.err.market_github_source":"Publish a GitHub Release for review.","sub.err.market_not_found":"Submission unavailable. Refresh and retry.","sub.err.market_zip_required":"Choose a ZIP archive.","sub.err.market_zip_invalid":"The ZIP structure does not meet the publishing requirements.","sub.err.market_zip_too_large":"ZIP archives must not exceed 50 MB.","sub.err.market_version_required":"The package has no version. Add one to the manifest (for skills, version or metadata.version in SKILL.md) and repackage.","sub.err.market_version_invalid":"Enter a valid version.","sub.err.market_version_mismatch":"The version does not match the manifest.","sub.err.market_version_not_newer":"The new version must be newer than the published version.","sub.err.market_icon_invalid":"Use a square PNG icon between 64 and 512 px.","sub.err.market_duplicate":"This content has already been submitted. Manage the existing submission.","sub.err.market_update_pending":"An update is already awaiting review.","sub.err.market_stale":"The submission has changed. Refresh and retry.","sub.notNewer":"The package says v{version}; it must be newer than the Store\u2019s v{current}.","sub.reqNone":"No version range or platforms declared","sub.dropTitle":"Drop a ZIP here, or click to choose one","sub.dropHint":"Up to 50 MB. It is checked first, not submitted yet.","sub.dropReplace":"{size} \xB7 Drop or click to replace","sub.checkType":"Type","sub.checkVersion":"Version","sub.checkIcon":"Icon","sub.checkReadme":"README","sub.checkReq":"Requirements","sub.checkWarn":"Note","sub.iconYes":"icon.png found in the package","sub.iconNo":"No icon.png; the card shows the type icon","sub.readmeYes":"Uses README.md from the package","sub.readmeKeep":"No README.md in the package; the current one stays","sub.readmeNo":"No README.md in the package","sub.warn.no_manifest":"No manifest found in the package","sub.warn.type_mismatch":"The package type differs from this submission\u2019s type","sub.warn.tag_version_mismatch":"The release tag differs from the package version","sub.warn.id_slug_mismatch":"The package id differs from the install folder name. Users are not affected: updates go to the same folder and no second copy appears. The folder name cannot change after listing","sub.warn.engine_slug_mismatch":"The engine plugin folder name differs from its id","sub.warn.no_entry":"The Amadeus plugin has no main.js entry","sub.warn.has_node_modules":"The package includes node_modules, which is large and usually unneeded","sub.zipListedNote":"Until it\u2019s approved, the Store keeps serving the published version. The review result goes to your inbox.","sub.zipUnlistedNote":"Submitting replaces the current package and sends it back for review.","sub.submitVersion":"Submit v{version} for review","sub.checkNew":"Check for a new version","sub.checkAgain":"Check again","sub.upToDate":"The latest upstream version is v{version} and the Store has v{current}. Publish a new version, then check again.","sub.upstreamLatest":"Latest upstream: v{version}","sub.releaseTag":"Release {tag}","sub.storeHas":"Store has v{version}","sub.githubNote":"Once approved, the Store pins v{version}. After your next GitHub release, come back and check again.","sub.npmNote":"Once approved, the Store pins v{version}. After your next npm release, come back and check again.","sub.secVersion":"Version","sub.secInfo":"Store details","sub.secHistory":"History","sub.edit":"Edit","sub.unset":"Not set","sub.infoNote":"No package or new version needed. Changes to a published item are reviewed too; until then the Store shows the current details.","sub.submitInfo":"Submit changes","sub.back":"Back to list","sub.pendingInfo":"Details change pending review","sub.rejectedInfo":"Details change rejected","sub.pendingHint":"The Store stays unchanged until approval. The review result goes to your inbox.","sub.inReview":"Waiting for its first review. The result goes to your inbox.","sub.histApproved":"v{version} approved","sub.histSubmitted":"Submitted","sub.resubmitted":"Resubmitted for review. The result goes to your inbox.","sub.infoSubmitted":"Changes submitted for review. The Store shows the current details until then.","sub.err.market_no_release":"This repository has no GitHub release yet. The Store pins a version, so publish a release on GitHub, then check again.","sub.err.market_no_changes":"Nothing changed.","sub.err.market_dryrun_unsupported":"GitHub and npm submissions can\u2019t be checked in advance. Submit them for review.","sub.capReason":"Reason for internals access","sub.capReasonHint":"Required if the plugin declares internals-raw (works on Forsion internals directly): which internal modules it needs and why the public APIs are not enough.","sub.capReasonRequired":"This package declares internals-raw, so a reason is required. Approval covers this version only; later versions that still declare it are reviewed again.","sub.err.internals_raw_reason_required":"The plugin declares internals-raw. Add a reason: which internal modules it needs and why the public APIs are not enough.","sub.err.internals_raw_needs_release":"A GitHub plugin that declares internals-raw needs a release first, because approval is bound to one version. Publish a release on GitHub, then submit again.","page.account":"Account","page.membershipUsage":"Membership & usage","page.membershipQuota":"Membership & quota","page.pointsInvite":"Points & invites","account.details.title":"Sign-in & details","account.details.desc":"Edit your photo, nickname and bio under Profile.","account.details.username":"Username","diag.unavailable":"This host does not support diagnostic data. Update Forsion and try again.","page.profile":"Profile","page.quota":"Quota & points","page.backpack":"Backpack","page.security":"Security","page.usage":"Usage","page.feedback":"Feedback","store.group":"Membership & points","store.membership":"Membership","store.membership.desc":"Upgrade your plan for more daily and weekly quota","store.points":"Points","store.points.desc":"Buy points and use them to redeem items","store.items":"Items","store.items.desc":"Items you can redeem with points. Redeemed items go to your backpack","store.status":"Plan and points","store.tier":"Current plan","store.balance":"Points balance","store.choosePlan":"Choose a plan","store.payHint":"You pay on the payment page in your browser. This page refreshes when you come back","store.payOff":"Purchases are unavailable right now","store.period":"Billing period","store.period.monthly":"Monthly","store.period.quarterly":"Quarterly","store.period.yearly":"Yearly","store.per.monthly":"/ month","store.per.quarterly":"/ quarter","store.per.yearly":"/ year","store.currentTier":"Current plan","store.pay":"Pay","store.payPrice":"Pay {price}","store.noPlans":"No plans are available right now","store.packs":"Point packs","store.packsHint":"You pay on the payment page in your browser. Points arrive right after payment","store.noPacks":"No point packs are available right now","store.kind.pack":"Point pack","store.kind.card":"Consumable","store.kind.code":"Redeem code","store.kind.item":"Item","store.nPoints":"{n} points","store.instant":"Arrives right after payment","store.kind.custom":"Custom","store.customPack":"Custom amount","store.customPackHint":"Minimum {min} points. Enter the amount on the payment page","store.customPackPay":"Enter amount","store.pricingTitle":"Reference usage (1\xD7 model)","store.pricingFormula":"Points \u2248 (uncached input tokens \xD7 {input} + output tokens \xD7 {output} + cached input tokens \xD7 {cached}) \xF7 1,000,000 \xD7 model multiplier","store.pricingExample":"Example: 10,000 input tokens and 2,000 output tokens on a 1\xD7 model cost about {n} points.","store.redeemTitle":"Redeem with points","store.redeemHint":"Redeeming with points completes right here. Items go to your backpack","store.redeem":"Redeem for {n} points","store.redeemConfirm":"Confirm: spend {n} points","store.redeemed":"Redeemed. The item is in your backpack","store.uncertain":"No response came back. Check your backpack before you try again","store.soldOut":"Sold out","store.left":"{n} left","store.toBackpack":"Goes to your backpack","store.limitReached":"You've reached the purchase limit","store.unavailable":"This item can't be redeemed right now","store.noItems":"Nothing to redeem right now","store.itemsOff":"Item redemption isn't available yet","store.openBackpack":"Open backpack","backpack.desc":"View the items you have collected. Select a slot for details.","backpack.refresh":"Refresh","backpack.total":"{n} items","backpack.grid":"Backpack items","backpack.slot":"{name}, quantity {n}","backpack.item":"Item","backpack.empty":"Your backpack is empty","backpack.emptyHint":"Items you redeem or receive will appear here.","backpack.select":"Select an item to view details","backpack.details":"Item details","backpack.quantity":"Quantity","backpack.acquired":"Acquired","backpack.source":"Received through","backpack.source.points":"Points exchange","backpack.source.admin":"Gift","backpack.source.reward":"Reward","backpack.source.other":"Cloud account","backpack.consumable":"Consumable","backpack.voucher":"Voucher","backpack.getCards":"View quota","backpack.manageCards":"Use it","backpack.reveal":"Reveal key","backpack.copyKey":"Copy key","backpack.noKey":"This item has no key.","backpack.use":"Use","backpack.confirmUse":"Confirm use","backpack.consumeConfirm":"Using this item consumes one copy.","backpack.collectible":"Collectible","backpack.effect.points":"+{n} points","backpack.effect.cards":"+{n} reset cards","backpack.effect.quota":"Reset daily and weekly quota","backpack.rarity.common":"Common","backpack.rarity.rare":"Rare","backpack.rarity.epic":"Epic","backpack.rarity.legendary":"Legendary","backpack.unavailable":"This item is no longer available. Refresh your backpack.","backpack.notUsable":"This item cannot be used.","backpack.quotaUnavailable":"Use cloud AI to initialize your quota before using this item.","common.cancel":"Cancel","common.copied":"Copied","common.copyFailed":"Couldn't copy","common.done":"Done","common.loadFailed":"Couldn't load","common.loadMore":"Load more","common.loading":"Loading\u2026","common.openInBrowser":"Open in browser","common.retry":"Retry","common.save":"Save","common.thisWeek":"This week","common.today":"Today","common.unlimited":"Unlimited","ann.eyebrow":"FORSION \xB7 Announcement","ann.close":"Close","ann.ok":"Got it","signin.button":"Sign in to Forsion","signin.desc":"Sign in to your Forsion account to manage your account, quota, security, submissions and feedback here.","signin.pending":"Waiting for you to finish in your browser\u2026","signin.deviceHint":"Your browser opens the sign-in page on its own. If it doesn't, scan the code with your phone or open the link below, and check that the code matches.","signin.code":"Code","signin.openLink":"Open sign-in page","signin.copyLink":"Copy link","signin.qrLabel":"Sign-in QR code","account.profile.title":"Profile","account.profile.desc":"Your photo and nickname, plus the phone and email linked to your account","account.avatar.change":"Change photo","account.avatar.saved":"Photo updated","account.nickname.edit":"Edit nickname","account.nickname.label":"Nickname","account.nickname.saved":"Nickname updated","account.role.admin":"Admin","account.username":"Username {name}","account.contact.phone":"Phone","account.contact.email":"Email","account.contact.unbound":"Not linked","account.contact.manage":"Manage in Security","account.web.open":"Open the account center in your browser","account.web.desc":"AI Brain and web themes are managed in the web account center.","wechat.title":"WeChat Helper","wechat.desc":"Send Xiaohongshu, Bilibili, X or web links to the Forsion WeCom account and they are clipped into Plugins/wechat-helper in your cloud vault. Other messages go into a daily note.","wechat.status":"Status","wechat.bound":"Bound","wechat.boundAt":"Bound on {date}","wechat.where":"Links you send to the WeCom account appear in Plugins/wechat-helper in your vault, usually within a minute.","wechat.notEligible":"Your current membership tier cannot use WeChat Helper.","wechat.disabled":"WeChat Helper is not available yet.","wechat.code":"Binding code","wechat.contact":"First add {contact} in WeChat","wechat.contactUnknown":"First add the Forsion WeCom account in WeChat","wechat.getCode":"Get binding code","wechat.newCode":"New code","wechat.copy":"Copy binding code","wechat.send":"{contact}, then send it these digits.","wechat.waiting":"Waiting for binding\u2026 The code is valid until {time}. WeCom won't reply; this updates once you are bound.","wechat.unbind":"Unbind","wechat.unbindConfirm":"Confirm unbind","address.label":"Page address","address.change":"Change","address.title":"Change your page address","address.desc":"Everything you publish lives under this address. After a change, the old address keeps redirecting to the new one and nobody else can take it.","address.now":"Now","address.new":"New","address.rule":'3\u201330 characters: lowercase letters, digits or "-"',"address.checking":"Checking\u2026","address.ok":"Available","address.bad":"Not available","address.same":"This is already your address","address.freeOne":"This is your one free change","address.freeN":"This one is free (you have {n} free changes)","address.freeAfter":"After that, an address rename card","address.card":"Uses 1 address rename card","address.cardHave":"You have {n}","address.need":"Changing needs 1 address rename card. You have none","address.price":"{price} points \xB7 balance {balance}","address.soldout":"Address rename cards are not on sale right now","address.cooldown":"Address changes need {days} days in between","address.cooldownUntil":"You can change it again after {date}","address.go":"Change address","address.goCard":"Use a card","address.goBuy":"Buy one for {price} points","address.shop":"Open the shop","address.done":"Your page address is now {url}","address.loadFailed":"Could not load your address right now.","address.errTaken":"Someone just took this address. Try another one.","address.errNeedCard":"No free changes left. Changing needs an address rename card.","address.errCooldown":"Not yet: you can change it again after {date}.","address.errPoints":"Not enough points for the card.","address.errBought":"The card is in your backpack, but the address was not changed: {reason}","address.errSoldout":"Address rename cards were just taken off sale.","address.errLimit":"You have reached the purchase limit for address rename cards.","address.errUnknown":"Could not confirm whether the address changed. Refresh in a moment to check.","backpack.addressCard":"Address rename card","backpack.addressCard.desc":"Once your free changes are used up, each change of your page address takes one card. The old address keeps redirecting and nobody else can take it.","backpack.addressCard.use":"Change address","member.title":"Membership","member.desc":"Your tier, plan and expiry date","member.upgrade":"Upgrade membership","member.renew":"Renew","member.freeName":"Free plan","member.freeHint":"Upgrade to get more AI quota","member.expires":"Expires {date}","member.noExpiry":"No expiry","member.loadFailed":"Couldn't load your membership.","session.title":"Sign-in","session.desc":"Manage your sign-in on this device","local.title":"Accounts on this computer","local.desc":"Switch between accounts you've signed in with","local.current":"Current","local.switch":"Switch","local.add":"Sign in to another account","local.signOut":"Sign out","local.empty":"No saved accounts yet","local.loadFailed":"Couldn't read the account list","diag.title":"Diagnostic data","diag.desc":"Helps us troubleshoot problems and improve Forsion. Off by default.","diag.enable":"Upload diagnostic data","diag.enableDesc":"When this is on, this computer periodically uploads a snapshot of its Forsion setup to your Forsion account, where the Forsion team can view it. The Forsion team sets how often, once a day by default. You can turn it off at any time.","diag.collected":"What's uploaded","diag.item.app":"App and system versions, this computer's name, and its free memory and disk space","diag.item.settings":"Your model and voice choices, the switches and numeric values in background agent and plugin settings, and the names and on/off state of MCP servers and message channels","diag.item.agents":"Agent and team configuration (options such as name and model; descriptions and prompts are recorded by length only, and their text falls under the personas, memory and evolution switch below)","diag.item.plugins":"Names and versions of installed plugins, skills, themes and Spaces","diag.item.runs":"Run records from the last 7 days: each run's status and error reason, usage and timing of model calls and tools (no conversation text, and nothing those tools read or wrote), and the engine's recent log output","diag.item.sync":"Cloud sync status: which categories your sync rules cover, how many files recent sync rounds uploaded, downloaded, deleted or saved as conflict copies, and why syncing failed (paths are masked; no file names or file contents)","diag.notCollected":"Never uploaded: the sign-in credentials and API keys saved on this computer, your note files, agent libraries, or plugin data.","diag.sessions":"Include conversations","diag.sessionsDesc":"Conversations on this computer: the text of your messages and the agent's replies, the agent's reasoning and the names of the tools it used, including the background work of team members, discussions and delegated tasks. Each upload only includes what hasn't been uploaded yet, going back at most 7 days. What those tools read or wrote and the attachments themselves are left out; file names that appear in messages, and anything the agent repeated from your notes or files in its replies, are included. Keys in common formats are masked; everything else is uploaded as is. If you'd rather not share them, turn this off before you turn uploads on.","diag.memory":"Include agent personas, memory and evolution records","diag.memoryDesc":"Each agent's persona (including the description and developer instructions in its configuration), and what the agent has built up on its own: its memory and the memory candidates it hasn't consolidated yet, its evolution record, its collaboration notes for you, the last 7 days of its logs and memory-consolidation activity, and project memory; plus your teams' charters and your user profile. These are the instructions you wrote for your agents and teams, and the facts they noted about you and your work from conversations. Each upload carries their current content (very long ones are cut short). Keys in common formats are masked; everything else is uploaded as is. If you'd rather not share them, turn this off before you turn uploads on.","diag.activity":"Include activity log","diag.activityDesc":"Your activity records, which include the first few dozen characters of conversations and the names of note files. Each upload only includes what hasn't been uploaded yet, going back at most 7 days. If you'd rather not share them, turn this off before you turn uploads on.","diag.last":"Last upload: {time}","diag.noUpload":"Nothing uploaded yet","diag.freq.hour":"every hour","diag.freq.hours":"every {n} hours","diag.freq.day":"once a day","diag.freq.days":"every {n} days","diag.freq.manual":"only when the Forsion team requests it","diag.retention":"The cloud keeps this computer's snapshots from the last {n} days. Turning this off stops uploads; snapshots already uploaded stay in the cloud. To have them deleted, let us know under Feedback.","page.privacy":"Privacy and data","privacy.tab":"Help improve","privacy.unavailable":"This version of Forsion does not support helping improve Forsion. Update Forsion and try again.","privacy.needUpdate":"This version of Forsion does not send this data yet. It takes effect after you update Forsion.","privacy.devBuild":"Development builds never send any data.","privacy.signInFirst":"Sign in to turn this on. Nothing is sent while you are signed out.","privacy.improve.title":"Help improve Forsion","privacy.improve.desc":"Sends metadata only, so we can find bugs and slow spots. It only sends while you are signed in to Forsion, and it is not linked to your account.","privacy.improve.switch":"Send crash reports and usage statistics","privacy.improve.switchHint":"Turning this off stops sending right away and discards anything still queued on this device.","privacy.policyLink":"See the Privacy Policy for what is collected and how long it is kept","privacy.sent.title":"Sent in the last 7 days","privacy.sent.hint":"A copy stays on this device so you can read every event.","privacy.sent.last":"A copy stays on this device so you can read every event. Last sent: {time}","privacy.sent.view":"View","privacy.sent.empty":"Nothing has been sent in the last 7 days.","privacy.delete.title":"Delete sent data","privacy.delete.hint":"Removes every record for this device's install ID from our servers and issues a new ID.","privacy.delete.button":"Delete","privacy.delete.confirm":"Confirm delete","privacy.delete.done":"Deleted. This device now has a new install ID.","privacy.delete.failed":"Could not delete: {reason}","privacy.installId":"Install ID {id} \xB7 not linked to your account","diag.uploadNow":"Upload now","diag.uploaded":"Uploaded","diag.failed":"Upload failed: {reason}","quota.ai.title":"AI quota","quota.ai.desc":"What's left today and this week; when it runs out, use a quota reset card or continue with points","quota.resetDaily":"Resets daily at 0:00 (Beijing time)","quota.resetWeekly":"Resets {date} at 0:00 (Beijing time)","card.title":"Quota reset card","card.desc":"Restores today's and this week's AI quota to 100%","card.owned":"You have {n}","card.use":"Use one","card.useConfirm":"Confirm","card.used":"Used 1 quota reset card","card.left":"{n} left","card.noneHint":"You have no quota reset cards left. They come from invitations, achievements and event rewards.","fallback.title":"Continue with points when quota runs out","fallback.desc":"When on, usage beyond your quota is paid from your points balance. Background tasks never use points.","fallback.balance":"Points balance {n}","fallback.pricing":"For a 1\xD7 model, each million tokens costs {input} points for input, {output} for output and {cached} for cache hits. An N\xD7 model costs about N times as much; each model's own pricing applies.","fallback.unknown":"Status unknown. Try again","quota.out.cardOrPoints":"Your AI quota is used up. Use a reset card to restore it, or turn on Continue with points below.","quota.out.points":"Your AI quota is used up. Turn on Continue with points below to keep going.","quota.out.cardOrTopUp":"Your AI quota is used up. Use a reset card to restore it, or buy points and turn on Continue with points.","quota.out.topUp":"Your AI quota is used up. Buy points, then turn on Continue with points to keep going.","quota.out.card":"Your AI quota is used up. Use a reset card to restore it.","quota.out.usingPoints":"Your AI quota is used up. Continuing with points.","quota.out.pointsGone":"Your AI quota and points are both used up. Buy points or upgrade your plan to continue.","err.pointsFallbackUnavailable":"Not available right now. Try again later","member.modelsAll":"All models available","member.modelsCap":"Models up to {cap}\xD7 rate","member.autorenew.title":"Auto-renew","member.autorenew.on":"On: \xA5{amount} {cycle}. Current period ends {date}; you'll be charged about 1 day before.","member.autorenew.off":"Canceled: membership ends {date}, no further charges","member.autorenew.cycle.monthly":"monthly","member.autorenew.cycle.quarterly":"quarterly","member.autorenew.cycle.yearly":"yearly","member.autorenew.cancel":"Cancel auto-renew","member.autorenew.cancelConfirm":"Confirm cancel","member.autorenew.canceled":"Auto-renew canceled. Your current period stays active.","member.autorenew.resume":"Resume auto-renew","member.autorenew.resumeHint":"Opened in your browser. This updates when you come back after confirming in Alipay.","member.autorenew.refundNote":"Haven't used your membership within 7 days of a charge? Contact forsion@winemountain.cn for a full refund.","member.autorenew.err.none":"No active auto-renew. It may have been canceled elsewhere.","member.autorenew.err.alipay":"Alipay is unavailable right now. Try again later.","member.autorenew.err.unavailable":"Auto-renew is not available right now.","points.title":"Points","points.desc":"Redeem items in the Store, or keep using AI after your quota runs out","points.balance":"Balance","points.balanceFailed":"Couldn't load your balance","points.recharge":"Buy points","bg.title":"Background quota","bg.desc":"Used by Muse and automations, counted separately from your AI quota","bg.autoMain":"Continue with AI quota when used up","bg.autoMainDesc":"When off, Muse and automations pause once the background quota runs out","bg.convert":"Move from AI quota","bg.convertDesc":"Moves a share of your AI quota limit, valid for the current period","bg.convertConfirm":"Move {pct}%","bg.converted":"Moved {pct}% from your AI quota","invite.title":"Invites & codes","invite.desc":"Invite friends to join, or redeem a code you received","invite.myCode":"My invite code","invite.count":"{n} invited","invite.copyCode":"Copy code","invite.copyLink":"Copy invite link","invite.loadFailed":"Couldn't load your invite code","invite.claim":"Enter an invite code","invite.claimDesc":"Within 7 days of signing up, you can enter a friend's invite code","invite.claimPlaceholder":"Friend's invite code","invite.claimSubmit":"Submit","invite.claimed":"Invite code applied","redeem.title":"Redemption code","redeem.desc":"Redeem points, membership or other rewards","redeem.placeholder":"Enter a code","redeem.submit":"Redeem","redeem.success":"Redeemed","redeem.successWith":"Redeemed: {what}","redeem.gotPoints":"{n} points","redeem.gotMembership":"membership","sec.methods.title":"Sign-in methods","sec.methods.desc":"Your phone and email can be used to sign in and reset your password","sec.bind":"Link","sec.change":"Change","sec.phone":"Phone number","sec.email":"Email address","sec.newPhone":"New phone number","sec.newEmail":"New email address","sec.phonePlaceholder":"Mainland China numbers as is; others with +country code","sec.emailPlaceholder":"name@example.com","sec.code":"Verification code","sec.codePlaceholder":"Enter the code","sec.sendCode":"Send code","sec.resendIn":"Resend in {s}s","sec.codeSent":"Code sent","sec.bindSubmit":"Link","sec.phoneBound":"Phone linked","sec.emailBound":"Email linked","sec.wechat":"WeChat","sec.wechat.bound":"WeChat linked","sec.wechat.boundAs":'Linked WeChat "{name}"',"sec.wechat.linkedNote":"You can sign in by scanning with this WeChat account. After unlinking, sign in with a phone or email code.","sec.wechat.link":"Link","sec.wechat.opened":"Opened your account center in the browser. Link WeChat there by scanning; this page refreshes when you come back.","sec.wechat.unlink":"Unlink WeChat","sec.wechat.unlinkConfirm":"Click again to unlink","sec.wechat.unlinked":"WeChat unlinked. Sign in with a phone or email code from now on.","sec.wechat.lastSignIn":"Add a phone number or email before unlinking WeChat, or you may not be able to sign in.","sec.wechat.bind":"Link","sec.wechat.qrLoading":"Getting the QR code\u2026","sec.wechat.qrTitle":"Link WeChat by scanning","sec.wechat.scanHint":"Scan with WeChat on your phone and confirm there. Linking finishes here on its own.","sec.wechat.qrExpired":"The QR code expired","sec.wechat.qrRefresh":"Get a new QR code","sec.wechat.linkedNow":"WeChat linked","sec.wechat.inBrowser":"Link in your browser instead","sec.wechat.inAppUnavailable":"You can't link by scanning here right now","sec.wechat.err.denied":"Authorization was cancelled in WeChat","sec.wechat.err.codeInvalid":"This scan is no longer valid. Get a new QR code and try again.","sec.wechat.err.noUnionid":"WeChat didn't return an account ID, so it can't be linked right now","sec.wechat.err.alreadyBound":"This WeChat account is already linked to another Forsion account","sec.wechat.err.otherBound":"This account is already linked to another WeChat account. Unlink it first.","sec.wechat.err.unreachable":"Couldn't reach WeChat. Try again in a moment.","sec.wechat.err.unavailable":"WeChat linking is unavailable right now","sec.github.desc":"Once linked, Forsion Desktop pushes to and pulls from your GitHub repositories with this account. No separate credentials to set up.","sec.github.account":"GitHub account","sec.github.bound":"Linked","sec.github.boundAs":"Linked as {login}","sec.github.linkedNote":"Forsion Desktop uses this account to push to and pull from GitHub repositories. If you revoked Forsion's access on GitHub, unlink and link again to restore it.","sec.github.link":"Link","sec.github.opened":"Opened your account center in the browser. Confirm it's you under GitHub, then authorize on GitHub; this page refreshes when you come back.","sec.github.unlink":"Unlink","sec.github.unlinkConfirm":"Click again to unlink","sec.github.unlinked":"GitHub unlinked. Forsion's access on GitHub has been revoked too.","sec.github.unlinkedManual":"GitHub unlinked, but Forsion couldn't confirm that its access on GitHub was revoked. Check your GitHub settings and remove Forsion if it's still listed.","sec.github.changed":"The link status just changed and has been refreshed.","sec.github.changedUnknown":"The link status just changed but couldn't be refreshed. Reopen this page in a moment.","sec.github.unavailable":"GitHub linking is not available right now","sec.github.openSettings":"Open GitHub authorization settings","sec.devices.title":"Signed-in devices","sec.devices.desc":"If you think someone else is using your account, sign out on every device","sec.logoutAll":"Sign out everywhere","sec.logoutAllDesc":"Including this device: every device has to sign in again","sec.logoutAllConfirm":"Confirm sign out everywhere","sec.logoutAllDone":"Signed out everywhere","pw.title":"Password","pw.desc":"{min}\u2013{max} characters, with a lowercase letter, an uppercase letter and a special character, and no spaces","pw.change":"Change password","pw.modeLabel":"How to change it","pw.mode.current":"With current password","pw.mode.code":"With a verification code","pw.current":"Current password","pw.currentRequired":"Enter your current password","pw.new":"New password","pw.confirm":"Confirm new password","pw.mismatch":"The new passwords don't match","pw.submit":"Change password","pw.submitReset":"Set new password","pw.changed":"Password updated","pw.noPasswordYet":"This account doesn't have a password yet. Set one with a verification code instead.","pw.codeNeedsContact":"Link a phone or email first to set a password with a verification code.","pw.via":"Send the code to","pw.codeTo":"The code goes to {target}","pw.rulesLabel":"Password rules","pw.req.length":"{min}\u2013{max} characters","pw.req.lower":"A lowercase letter","pw.req.upper":"An uppercase letter","pw.req.special":"A special character","pw.req.space":"No spaces","pw.rule.format":"Invalid password","pw.rule.min":"Password must be at least 8 characters","pw.rule.max":"Password can't be longer than 64 characters","pw.rule.space":"Password can't contain spaces","pw.rule.lower":"Password needs a lowercase letter","pw.rule.upper":"Password needs an uppercase letter","pw.rule.special":"Password needs a special character","del.title":"Delete account","del.desc":"Permanently delete your account and all its data. This can't be undone","del.start":"Delete account","del.warn":"Deleting your account removes your account, points, membership, cloud storage and all other data for good.","del.methodLabel":"Verify with","del.byCode":"Verification code","del.byPassword":"Password","del.codeLabel":"Code sent to {target}","del.passwordLabel":"Account password","del.submit":"Delete account","del.confirm":"Delete permanently","del.done":"Account deleted","usage.overview.title":"Overview","usage.overview.desc":"Requests and AI quota used in the selected period","usage.range":"Time range","usage.days":"{n} days","usage.requests":"Requests","usage.successRate":"Success rate","usage.consumption":"AI quota used","usage.ofToday":"Of your daily limit","usage.unlimitedNote":"Your AI quota is unlimited, so usage isn't shown as a percentage.","usage.noLimitNote":"Your daily limit is 0 or unavailable right now, so usage isn't shown as a percentage.","usage.byModel.title":"By model","usage.byModel.desc":"Requests and quota used per model","usage.byApp.title":"By app","usage.byApp.desc":"Requests and quota used per app","usage.col.model":"Model","usage.col.app":"App","usage.col.requests":"Requests","usage.col.consumption":"Quota used","usage.empty":"No usage in this period","usage.appUnknown":"Other","usage.recent.title":"Recent usage","usage.recent.desc":"Each call as a share of your daily limit","usage.recentEmpty":"No usage yet","usage.failed":"Failed","usage.shown":"Showing {shown} of {total}","fb.list.title":"My feedback","fb.list.desc":"Issues and suggestions you've sent; replies show up here","fb.new":"New feedback","fb.empty":"No feedback yet","fb.untitled":"Untitled feedback","fb.unread":"New reply","fb.shown":"Showing {n}","fb.submitted":"Sent. We'll reply as soon as we can","fb.descLabel":"Describe the issue or suggestion","fb.descPlaceholder":"What happened, and what did you expect?","fb.imagesHint":"Attach up to {n} screenshots (5 MB each). You can paste or drop them here.","fb.addImages":"Add screenshots","fb.removeImage":"Remove this image","fb.submit":"Send","fb.back":"Back to list","fb.you":"You","fb.support":"Forsion team","fb.attachment":"Attachment","fb.imagePreview":"View image","fb.closedNote":"This ticket is closed and can't take replies. Send new feedback for a new issue.","fb.replyPlaceholder":"Reply\u2026","fb.replySend":"Send reply","fb.replySent":"Reply sent","fb.status.open":"Open","fb.status.in_progress":"In progress","fb.status.resolved":"Resolved","fb.status.closed":"Closed","af.title":"Feedback to Forsion","af.kind":"Feedback type","af.kind.bug":"Report a problem","af.kind.idea":"Suggest a feature","af.kind.other":"Something else","af.titleLabel":"Title","af.descLabel":"Description","af.includes":"Includes","af.optErrors":"Errors from this run","af.optErrorsHint":"Failed tool calls in the same reply, with their arguments and error text","af.optLogs":"App and runtime logs","af.optLogsHint":"Version, errors, run timeline and usage. Process logs may include other sessions.","af.optConversation":"Current conversation","af.optConversationHint":"The whole conversation, including tool inputs and outputs.","af.optConversationAuto":"Never included when sending automatically.","af.redacted":"Common credential fields are filtered","af.sendingAuto":"Sending automatically, as set in your settings\u2026","af.preview":"Preview","af.hidePreview":"Hide preview","af.dismiss":"Don\u2019t send","af.send":"Send","af.sending":"Sending\u2026","af.appendTo":"Add to {id}","af.dup":"You already reported this problem ({id}, still open). Sending adds to that report instead of opening a new one.","af.dupAuto":"You already reported this problem ({id}, still open), so this was not sent automatically. Use the button below to add to it.","af.staleAuto":"This draft is not recent, so it was not sent automatically. Click Send to send it.","af.errorCount":"{n} failed calls","af.errReport":"The attachment could not be prepared. This conversation may no longer be open in this window.","af.sendTextOnly":"Send text only","af.errSend":"Couldn\u2019t send: {err}","af.errWithdrawLate":"It can\u2019t be withdrawn after 10 minutes or once the team has replied.","af.needLogin":"Sign in to your Forsion account to send. The draft stays here.","af.login":"Sign in","af.prefLead":"Next time Forsion has a problem:","af.modeAsk":"Draft and ask me first","af.modeAuto":"Draft and send automatically","af.change":"Change","af.replied":"Replied","af.appended":"Added to feedback {id}","af.sent":"Sent \xB7 Feedback {id}","af.sentAuto":"Sent automatically \xB7 Feedback {id} \xB7 No conversation","af.withdrawLeft":"You can withdraw it for {n} more min","af.replyInbox":"Replies from the team arrive in your inbox","af.withdraw":"Withdraw","af.openFeedback":"Open in Feedback","af.withdrawn":"Withdrawn","af.dismissed":"Not sent","af.sendAnyway":"Send anyway","af.errAccount":"The account changed while the attachment was being prepared, so nothing was sent. Check the account and click Send again.","af.matchFailed":"Couldn\u2019t check whether you already reported this problem, so it was not sent automatically. Click Send to send it.","err.accountGone":"This account is signed out. Sign in again","err.adminCannotDelete":"Admin accounts can't be deleted here","err.avatarInvalid":"Couldn't read this image. Try another one","err.avatarTooLarge":"This image is too large. Try a smaller one","err.backgroundUnavailable":"Background quota is unavailable right now","err.captcha":"You need to finish a verification check in your browser","err.codeCooldown":"Too many codes requested. Try again shortly","err.codeInvalid":"The code is wrong or has expired","err.codeRequired":"Enter the verification code","err.codeSendFailed":"Couldn't send the code. Try again later","err.currentPasswordWrong":"Your current password is incorrect","err.deleteTargetInvalid":"Codes can only go to the phone or email linked to your account","err.deleteVerifyFailed":"Verification failed, so your account wasn't deleted","err.emailInUse":"This email is already used by another account","err.emailInvalid":"Enter a valid email address","err.featureDisabled":"This feature is turned off for now","err.feedbackEmpty":"Describe the issue or suggestion first","err.feedbackTooLong":"The description is too long (10,000 characters max)","err.generic":"That didn't work. Try again later","err.imageRead":"Couldn't read the image","err.imageTooLarge":"Each image must be 5 MB or less","err.imageType":"Only images can be added","err.insufficientMainQuota":"Your AI quota is used up, so there's nothing to move","err.insufficientPoints":"Not enough points","err.invalidInviteCode":"This invite code is invalid or has expired","err.inviteAlreadyUsed":"You've already used an invite code","err.inviteEmpty":"Enter an invite code","err.inviteOwnCode":"You can't use your own invite code","err.inviteWindowExpired":"The 7-day window after sign-up has passed","err.loginCodeExpired":"The sign-in code expired. Sign in again","err.loginInProgress":"A sign-in is already in progress","err.loginTimeout":"Sign-in timed out. Try again","err.loginUnsupported":"This cloud doesn't support desktop sign-in","err.network":"Network error. Check your connection and try again","err.noCloudUrl":"Set the cloud address under Connection first","err.noResetCard":"You have no quota reset cards","err.openFailed":"Couldn't open the browser","err.passwordRequired":"Enter your current and new password","err.phoneInUse":"This phone number is already used by another account","err.phoneInvalid":"Enter a valid phone number (with +country code outside mainland China)","err.redeemEmpty":"Enter a code","err.redeemExpired":"This code has expired","err.redeemInactive":"This code is no longer active","err.redeemNotFound":"This code doesn't exist","err.redeemUsedUp":"This code has been used up","err.redeemUserLimit":"You've already redeemed this code","err.replyEmpty":"Write a reply first","err.replyTooLong":"The reply is too long (10,000 characters max)","err.server":"Server error ({status}). Try again later","err.session":"You've been signed out. Sign in again","err.signedOut":"Sign in to Forsion first","err.targetInvalid":"Enter a valid phone number or email","err.ticketNotFound":"This feedback doesn't exist or was deleted","err.webPageGone":"This page doesn't exist or was taken down","err.listingGone":"This page has no store listing","err.listingSummary":"Add a store summary (up to 300 characters)","err.tooFrequent":"Too many attempts. Try again shortly","err.tooManyImages":"You can add up to 5 images","err.unavailable":"This version of Forsion can't do that yet. Update Forsion","profile.unsupported":"This server doesn't have profiles yet","profile.state.private":"Only you can see this","profile.state.public":"Public","profile.state.privateDesc":"Once public, anyone with the address can see your profile without signing in","profile.linkUnavailable":"Public link unavailable","profile.decorate":"Decorate","profile.publish":"Make public","profile.makePrivate":"Make private","profile.copyLink":"Copy link","profile.openPublic":"Open public profile in browser","profile.nowPublic":"Your profile is now public","profile.nowPrivate":"Your profile is private. The public address no longer opens","profile.notice.title":"Your profile is now public by default","profile.notice.body":"Anyone can open {url} without signing in. Only your works and badges are shown by default; stats, activity and insights stay visible only to you. Change each block under Decorate.","profile.notice.look":"Take a look","profile.notice.private":"Make private","profile.notice.close":"Dismiss","profile.bio":"Bio","profile.bioPlaceholder":"Add a short bio","profile.linkAdd":"Add a link","profile.linkRemove":"Remove link","profile.linkInvalid":"Links must start with http:// or https://, or be a plain domain","profile.joined":"Joined {date}","profile.stat.tokens":"Total tokens","profile.stat.activeDays":"Active days","profile.stat.longest":"Longest streak","profile.stat.current":"Current streak","profile.stat.installs":"Work installs","profile.unit.days":"d","profile.works":"Featured works","profile.worksPick":"Choose","profile.worksEmpty":"No published works yet. Publish to the store or as a web app, and they can go here.","profile.worksNone":"Nothing to feature yet. Works appear here once they are in the store or published as a web app.","profile.worksPicked":"{n} of {max} selected","profile.worksAuto":"With none selected, the most installed ones are shown","profile.goSubmit":"Submit a work","profile.workInstalls":"{n} installs","profile.workVisits":"{n} visits","profile.work.skill":"Skill","profile.work.agent":"Agent","profile.work.plugin":"Plugin","profile.work.space":"Space","profile.work.theme":"Theme","profile.work.note":"Notes plugin","profile.work.webapp":"Web app","profile.activity":"Activity","profile.activityDays":"Active on {n} days in the past year","profile.less":"Less","profile.more":"More","profile.badges":"Badges","profile.badgesEmpty":"No badges yet. Streaks, published works and invites all earn one.","profile.badge.early":"Early user","profile.badge.streak":"30-day streak","profile.badge.author":"Author","profile.badge.inviter":"Top inviter","profile.badge.event":"Event keepsake","profile.badgeSub.early":"Joined in {value}","profile.badgeSub.streak":"Longest streak: {value} days","profile.badgeSub.author":"{value} published works","profile.badgeSub.inviter":"Invited {value} friends","profile.badgeSub.event":"Took part in a Forsion event{value}","profile.insights":"Insights","profile.insightsEmpty":"Not enough usage yet. Check back in a few days.","profile.insightModel":"Most used model","profile.insightHours":"Most active hours","profile.deco.skin":"Public page color scheme","profile.deco.mode":"Public page appearance","profile.deco.publicHint":"These two only set what visitors see on the public page. Here the profile follows Forsion's current theme.","profile.deco.cover":"Cover","profile.deco.frame":"Avatar frame","profile.deco.modules":"Sections","profile.skin.cream":"Classic","profile.skin.coral":"Coral","profile.skin.teal":"Teal","profile.skin.lavender":"Lavender","profile.mode.auto":"Auto","profile.mode.light":"Light","profile.mode.dark":"Dark","profile.cover.none":"None","profile.cover.mist":"Mist","profile.cover.contour":"Contour","profile.cover.dots":"Dots","profile.frame.none":"None","profile.frame.ring":"Ring","profile.frame.pro":"Member ring","profile.frameProHint":"The member ring is for paid members.","profile.col.show":"Show","profile.col.public":"Public","profile.moveUp":"Move up","profile.moveDown":"Move down","profile.modulesHint":'"Show" decides whether a section is on your profile. "Public" decides whether visitors see it, once your profile is public.',"profile.mod.stats":"Stats","profile.mod.works":"Works","profile.mod.activity":"Activity","profile.mod.badges":"Badges","profile.mod.insights":"Insights","profile.modDesc.stats":"Total tokens, active days, streaks and installs of your works","profile.modDesc.works":"Works you have published, up to 6","profile.modDesc.activity":"Which days you were active in the past year (shades only, no numbers)","profile.modDesc.badges":"Join year, streaks, publishing, invites and events","profile.modDesc.insights":"Your most used model and most active hours","profile.publishDesc":"Once public, anyone with this address can see your profile without signing in. You decide section by section what visitors see.","profile.publishNever":"Your avatar, nickname, username, bio and links become public too. Your email, phone number, membership expiry, points and quota never appear on your profile.","profile.publishConfirm":"Make public","profile.blocked.machineUsername":"Your current username was generated by the system and contains part of your phone number or email, so making it public would expose that. Change your username on the Account page of the web account center first (each account can do this once), then come back.","profile.blocked.publishBlocked":"An administrator has stopped this profile from being public. Contact us through Feedback if you have questions.","profile.goRename":"Change username","profile.invalid":"This couldn't be saved. Check it and try again","guide.title":"Guide","guide.readOnly":"Read-only","guide.more":"More","guide.unlockAll":"Unlock all","guide.relock":"Unlock level by level","guide.reminders":"Guide reminders","guide.spotlight":"On-screen hints","guide.spotStep":"Step {n} of {total}","guide.figure":"Diagram","guide.openAchievements":"Open achievements","guide.tasks":"Tasks in this chapter","guide.go":"Take me there","guide.desktopOnly":"Do it on your computer","guide.taskDone":"Done","guide.askTangu":"Ask Tangu","guide.progress":"Progress","guide.justUnlocked":"Just unlocked","guide.lockedHint":"Locked","guide.whatsNew":"What's new in {version}","guide.level.lv1":"Lv.1 Getting started","guide.level.lv2":"Lv.2 Finding your way","guide.level.lv3":"Lv.3 Making it yours","guide.level.lv4":"Lv.4 Going further","guide.locked.title":"This chapter is still locked","guide.locked.body":"Finish the tasks in {level} to read the rest.","guide.locked.left":"Still to do:","guide.locked.hint":"Been around a while? Unlock everything from the \xB7\xB7\xB7 menu.","guide.levelProgress":"This level: {done}/{total}","guide.next":"Next level","guide.allDone":"All done","guide.allDoneBody":"You've done every task in the guide. Come back any time.","guide.review":"Look back","guide.ask.hint":'Questions about "{chapter}"? Ask Tangu opens a new chat with this chapter attached.',"guide.ask.placeholder":"What would you like to know?","guide.ask.send":"Start a chat","guide.ask.prompt":`I'm reading the "{chapter}" chapter of the Forsion guide; it's attached below. {question}`,"guide.ask.unavailable":"Chat isn't available here","guide.ask.chatTitle":"Guide Q&A","guide.companion.back":"Back to the guide","guide.companion.close":"Close","guide.toast.taskDone":"Done: {task}","guide.letter.levelTitle":"{level} unlocked: try these next","guide.letter.levelBody":'You finished the previous level, so these chapters are open now. Every task has a "Take me there" button.',"guide.letter.versionTitle":"{n} new things to try in {version}","guide.letter.versionBody":"New in this version, ready to try:","guide.letter.open":"Open the guide","guide.status.done":"Done","guide.cmd.open":"Open the guide","penzor.title":"Penzor Cloud","penzor.overview":"Overview","penzor.places":"Places","penzor.details":"Details","penzor.ledger.sync":"Vault sync","penzor.ledger.ama":"Amadeus Cloud","penzor.ledger.apps":"App files","penzor.ledger.exports":"Exports","penzor.trash":"Trash","penzor.items":"{n} items","penzor.total.sub":"Stored in Forsion Cloud \xB7 updated {time}","penzor.justNow":"just now","penzor.ofMax":"/ {max}","penzor.card.syncSub":"{n} vaults \xB7 last write {time}","penzor.card.syncSubNone":"{n} vaults","penzor.card.syncFoot":"Files over {size} are not uploaded","penzor.card.syncWarn":"Almost full: after {max}, new files stop uploading; files already in the cloud keep syncing","penzor.card.amaSmall":"Not counted in your quota","penzor.card.amaSub":"{n} cloud vaults","penzor.card.amaFoot":"Notes and attachments on the Cloud side of Amadeus","penzor.card.appsFoot":"Trash: {n} items \xB7 {size}","penzor.card.appsWarn":"Almost full: after {max}, apps can't save new files. Trash counts too, so emptying it frees space","penzor.card.expSmall":"{n} files","penzor.card.expSub":"Latest: {name} \xB7 {time}","penzor.card.expFoot":"Files exported from apps","penzor.card.none":"Nothing yet","penzor.largest":"Largest files","penzor.col.name":"Name","penzor.col.size":"Size","penzor.col.mtime":"Modified","penzor.col.device":"Written by","penzor.col.deleted":"Deleted","penzor.col.origin":"Original location","penzor.col.app":"From","penzor.sort.mtime":"By modified","penzor.sort.size":"By size","penzor.sort.name":"By name","penzor.search":"Search file names here","penzor.sync.thisDevice":"Syncing on this device","penzor.meta.files":"{size} \xB7 {n} files","penzor.sync.last":"Last write {time} \xB7 {device}","penzor.sync.lastNoDevice":"Last write {time}","penzor.sync.devices":"{n} devices sync this vault","penzor.sync.meter":"Vault sync shares {max}; {used} used","penzor.apps.meter":"App files share {max}; {used} used (trash included)","penzor.apps.by":"Written by {app}","penzor.ama.notCounted":"Not counted in your quota","penzor.ama.open":"Open in Amadeus","penzor.hosted.open":"Manage my web pages","penzor.hosted.note":"These files belong to a published web page. Republish to change them, or take the page down in My web pages.","penzor.trash.meta":"{n} items \xB7 {size}","penzor.trash.note":"Space frees up once items are deleted permanently","penzor.trash.emptyBtn":"Empty trash","penzor.act.download":"Download","penzor.act.rename":"Rename","penzor.act.move":"Move to\u2026","penzor.act.trash":"Move to trash","penzor.act.delete":"Delete","penzor.act.restore":"Restore","penzor.act.purge":"Delete permanently","penzor.act.copyName":"Copy vault name","penzor.act.openSync":"Open sync settings","penzor.act.refresh":"Refresh","penzor.act.up":"Up one level","penzor.toast.trashed":"Moved \u201C{name}\u201D to trash","penzor.toast.restored":"Restored \u201C{name}\u201D","penzor.toast.purged":"Deleted \u201C{name}\u201D permanently","penzor.toast.emptied":"Trash emptied","penzor.toast.downloaded":"Saved to Downloads: {name}","penzor.toast.renamed":"Renamed to \u201C{name}\u201D","penzor.toast.moved":"Moved to \u201C{name}\u201D","penzor.toast.versionRestored":"Restored version {n}","penzor.toast.copied":"Vault name copied","penzor.toast.failed":"That didn't work: {reason}","penzor.confirm.purge":"Delete \u201C{name}\u201D permanently? This can't be undone.","penzor.confirm.empty":"Empty the trash? {n} items will be deleted permanently.","penzor.confirm.deleteExport":"Delete \u201C{name}\u201D? Exports have no trash, so this can't be undone.","penzor.cancel":"Cancel","penzor.side.where":"Location","penzor.side.mtime":"Modified","penzor.side.device":"Written by","penzor.side.thisDevice":"{name} (this device)","penzor.side.from":"From","penzor.side.versions":"Versions","penzor.side.versionsNone":"None","penzor.side.versionRow":"Version {n} \xB7 {time} \xB7 {size}","penzor.side.restoreVersion":"Restore this version","penzor.side.deletedAt":"Deleted","penzor.side.origin":"Original location","penzor.side.inner":"{n} more items inside come back with it","penzor.side.inTrash":"In trash \xB7 {size}","penzor.side.readonlySync":"Files in a synced vault are changed on your devices. Deleting one here would delete it on every device that syncs {vault}, so here you can only view and download.","penzor.side.readonlyAma":"Notes and attachments are changed in Amadeus. Deleting an attachment here would leave the notes that use it with missing images, so here you can only view and download.","penzor.side.exportNote":"Exports have no trash: deleting is permanent.","penzor.side.none":"Select a file to see its details","penzor.side.folder":"Folder \xB7 {n} items","penzor.side.folderPlain":"Folder","penzor.move.title":"Move to","penzor.move.root":"Top of {app}","penzor.move.here":"Move here","penzor.move.noFolders":"No folders at this level","penzor.rename.save":"Save","penzor.empty.title":"Nothing in Penzor Cloud yet","penzor.empty.lead":"These show up here once they're in the cloud:","penzor.empty.sync":"Pick Penzor Cloud as the remote service in Settings \u203A Sync, and your local vault syncs here","penzor.empty.ama":"Notes you write on the Cloud side of Amadeus","penzor.empty.apps":"Files apps save to the cloud or export","penzor.empty.openSync":"Open sync settings","penzor.out.title":"Sign in to see your Penzor Cloud","penzor.out.lead":"Penzor Cloud holds the vaults you sync to Forsion Cloud, your Amadeus Cloud notes and the files apps keep in the cloud.","penzor.out.signIn":"Sign in to Forsion","penzor.loading":"Loading\u2026","penzor.err":"Couldn't load: {reason}","penzor.folderEmpty":"No files here","penzor.noMatch":"No file names contain \u201C{q}\u201D","penzor.cmd.open":"Open Penzor Cloud","penzor.unreachable":"Can\u2019t reach Forsion Cloud. Try again later","penzor.toast.emptyPartial":"{n} items in the trash couldn\u2019t be deleted","penzor.sort.deleted":"By deleted","penzor.side.versionsN":"{n}","penzor.drive":"My drive","penzor.drive.meta":"Counts toward the {max} for app files","penzor.drive.empty":"Nothing here yet. Drag files in, or click Upload.","penzor.act.upload":"Upload","penzor.act.uploadMore":"More upload options","penzor.act.uploadFiles":"Upload files\u2026","penzor.act.uploadFolder":"Upload folder\u2026","penzor.act.uploadHere":"Upload here\u2026","penzor.act.newFolder":"New folder","penzor.act.clearSel":"Clear selection","penzor.newFolder.default":"New folder","penzor.sel.bar":"{n} selected \xB7 {size}","penzor.sel.title":"{n} selected","penzor.sel.sub":"{size} \xB7 {files} files","penzor.sel.subDirs":"{size} \xB7 {files} files, {dirs} folders","penzor.sel.download":"Download {n}","penzor.sel.saveTo":"Saves to","penzor.sel.saveToValue":"Downloads / {folder}","penzor.sel.noDirs":"Folders can\u2019t be downloaded yet; only the selected files will be.","penzor.download.folder":"Penzor Cloud {date}","penzor.drop.to":"Drop to upload to \u201C{place}\u201D","penzor.tx.busy":"Transferring {n}","penzor.tx.allDone":"All done","penzor.tx.failedN":"{n} didn\u2019t finish","penzor.tx.counts":"{up} up \xB7 {down} down","penzor.tx.eta":"about {eta} left","penzor.tx.doneN":"{n} finished","penzor.tx.restDone":"The other {n} finished","penzor.tx.pill":"{counts} \xB7 {pct}%","penzor.tx.queued":"Queued","penzor.tx.paused":"Paused \xB7 resumes from the start","penzor.tx.uploaded":"Uploaded \xB7 {time}","penzor.tx.downloaded":"Downloaded \xB7 {time}","penzor.tx.canceled":"Canceled","penzor.tx.left":"{eta} left","penzor.tx.sec":"{n}s","penzor.tx.min":"{n} min","penzor.tx.pause":"Pause","penzor.tx.resume":"Resume","penzor.tx.cancel":"Cancel","penzor.tx.retry":"Retry","penzor.tx.remove":"Remove","penzor.tx.locate":"Show","penzor.tx.reveal":"Show in folder","penzor.tx.pauseAll":"Pause all","penzor.tx.resumeAll":"Resume all","penzor.tx.retryAll":"Retry all","penzor.tx.clearDone":"Clear finished","penzor.tx.clear":"Clear","penzor.tx.collapse":"Collapse","penzor.tx.expand":"Show transfers","penzor.tx.quota":"Not enough space: {size} short","penzor.tx.quotaSub":"Nothing in this batch was started","penzor.tx.freeSpace":"Free up space in Trash","penzor.err.too_large":"Over the 50 MB per-file limit ({size}); can\u2019t upload it yet","penzor.err.quota":"Not enough cloud space","penzor.err.network":"Connection lost at {pct}%","penzor.err.account_changed":"You switched accounts, so this one stopped","penzor.err.download_unavailable":"This host cannot save downloads yet. Update Forsion","penzor.err.download_failed":"The file was not saved. Try downloading it again","penzor.err.not_signed_in":"Not signed in","penzor.err.gone":"The file is no longer on this device","penzor.err.popup_blocked":"Your browser blocked the new tab. Allow pop-ups for this site and try again","penzor.err.changed":"The file changed while uploading. Try again","penzor.err.storage_unavailable":"Cloud storage is unavailable right now","penzor.err.other":"Didn\u2019t finish ({code})","penzor.err.too_many":"Up to {n} files at a time. Add them in smaller batches","penzor.toast.upDoneOne":"Uploaded \u201C{name}\u201D","penzor.toast.upDoneMany":"Uploaded {n} files","penzor.toast.downDoneMany":"Downloaded {n} files to Downloads","penzor.toast.txFailed":"{n} transfers didn\u2019t finish. Open Penzor Cloud to check","penzor.toast.folderExists":"There\u2019s already a folder called \u201C{name}\u201D","penzor.toast.trashedN":"Moved {n} items to the trash","penzor.toast.movedN":"Moved {n} items to \u201C{name}\u201D","penzor.toast.batchPartial":"{n} items didn\u2019t go through","penzor.sync.title":"Sync","penzor.sync.onN":"{n} on","penzor.sync.allOff":"All off","penzor.sync.waiting":"Waiting for you","penzor.sync.badgeWaiting":"{n} on \xB7 1 waiting for you","penzor.sync.running":"Syncing {pct}%","penzor.sync.runningPlain":"Syncing","penzor.sync.metaDevice":"This computer: {name}","penzor.sync.metaLast":"Last synced {time}","penzor.sync.metaNever":"Not synced yet","penzor.sync.every":"Every {n} min","penzor.sync.everyHours":"Every {n} h","penzor.sync.manual":"Manual","penzor.sync.onStart":"once at startup","penzor.sync.minAgo":"{n} min ago","penzor.sync.hoursAgo":"{n} h ago","penzor.sync.notesNamed":"Notes vault \u201C{name}\u201D","penzor.sync.notesPlain":"This computer\u2019s notes vault","penzor.sync.notesDesc":"The whole local vault, kept the same on your other computers","penzor.sync.agents":"Agents & memory","penzor.sync.agentsDesc":"Your agents\u2019 memory, logs, skills and working notes, plus your profile and default calendar","penzor.sync.conflictsN":"Conflict copies: {n}","penzor.sync.conflictsHint":"Files changed on both sides are kept twice: the other version is saved as a copy with \u201Cconflict\u201D in its name, in that agent\u2019s folder (or your profile folder)","penzor.sync.pluginsPending":"Changes not uploaded yet: {n} plugins","penzor.sync.agentsN":"Agents: {n}","penzor.sync.plugins":"Plugin data","penzor.sync.pluginsDesc":"Settings and data your plugins keep","penzor.sync.pluginsN":"Plugins: {n}","penzor.sync.off":"Off","penzor.sync.done":"Synced","penzor.sync.doneSize":"Synced \xB7 {size}","penzor.sync.firstPending":"Waiting for the first sync","penzor.sync.failed":"Last sync failed","penzor.sync.overQuota":"Over the limit, some files not uploaded","penzor.sync.to":"Syncing to {name}","penzor.sync.toFolder":"Syncing to a local folder","penzor.sync.decideAbove":"Choose in the card above","penzor.sync.kvSchedule":"Schedule","penzor.sync.kvDirection":"Direction","penzor.sync.kvSkipped":"Not uploaded","penzor.sync.kvWhere":"In the cloud","penzor.sync.change":"Change","penzor.sync.open":"Open","penzor.sync.dir.both":"Both ways","penzor.sync.dir.push":"Upload only","penzor.sync.dir.pull":"Download only","penzor.sync.skippedN":"{n} files over {size}","penzor.sync.where":"{ledger} \u203A {vault}","penzor.sync.whereUsed":"{ledger} \u203A {vault} \xB7 {used} / {max}","penzor.sync.devicesTitle":"Devices syncing","penzor.sync.thisOne":"This computer","penzor.sync.lastWrite":"Last write {time}","penzor.sync.noDevices":"No devices are syncing yet","penzor.sync.phoneTitle":"What your phone and the web see","penzor.sync.phoneTip":"Your phone and the web read the cloud vault (the cloud side of Amadeus, {size}) directly. It always syncs, and it\u2019s a separate copy from this computer\u2019s notes vault above. To see a folder from this computer on your phone, right-click it in your notes and sync it to the cloud vault.","penzor.sync.phoneTipPlain":"Your phone and the web read the cloud vault (the cloud side of Amadeus) directly. It always syncs, and it\u2019s a separate copy from this computer\u2019s notes vault above. To see a folder from this computer on your phone, right-click it in your notes and sync it to the cloud vault.","penzor.sync.foot":"Schedule, direction and other storage (Dropbox / S3 / WebDAV) are in","penzor.sync.footLink":"Settings \u203A Sync","penzor.sync.askTitle":"There\u2019s already a notes vault in the cloud","penzor.sync.askCloud":"The cloud copy is from {device}: {files} files \xB7 {size}.","penzor.sync.askCloudNoDevice":"The cloud copy: {files} files \xB7 {size}.","penzor.sync.askLocal":"This computer has {local} files the cloud copy doesn\u2019t, and {conflicts} that differ.","penzor.sync.askMerge":"Merge both","penzor.sync.askCloudBtn":"Use the cloud copy","penzor.sync.askSkip":"Don\u2019t sync notes on this computer yet","penzor.sync.askExplain":"Merge keeps both sides; files that differ are saved again as a \u201C(conflict)\u201D copy. Use the cloud copy first moves this computer\u2019s differing files into a \u201C{backup}\u201D folder next to the vault, then downloads the cloud copy.","penzor.sync.askConfirm":"This computer\u2019s differing files move to \u201C{backup}\u201D first, then the cloud copy replaces them.","penzor.sync.askConfirmGo":"Move them and use the cloud copy","penzor.sync.backupName":"{name} backup before sync {date}","penzor.sync.quotaTitle":"Your notes vault is {size}, over the {max} limit of {ledger}","penzor.sync.quotaTitlePlain":"Your notes vault is over the {ledger} limit","penzor.sync.quotaBody":"Files that don\u2019t fit stay on this computer. Nothing is deleted, they just aren\u2019t uploaded, and everything else keeps syncing.","penzor.sync.quotaLarge":"Single files over {size} are never uploaded ({n}).","penzor.sync.quotaSee":"See what\u2019s not uploaded","su.title":"Store update","su.source.github":"GitHub source","su.source.npm":"npm source","su.source.zip":"ZIP upload","su.review":"In review","su.approved":"Approved","su.rejected":"Not approved","su.viaGithub":"GitHub release {tag}","su.viaNpm":"npm {version}","su.metaReview":"Submitted {time} \xB7 The result will arrive in your inbox","su.metaReviewNoTime":"The result will arrive in your inbox","su.metaApproved":"The Store now shows {version}","su.metaApprovedInfo":"The Store info is updated","su.metaRejected":"The Store keeps {version}","su.metaRejectedUnlisted":"Not listed yet","su.infoOnly":"Store info only","su.listSep":", ","su.openSubmission":"Open in Submissions","wc.title":"Web page","wc.pill.published":"Published","wc.pill.live":"Live","wc.pill.review":"Store review","wc.pill.listed":"In the Store","wc.pill.rejected":"Not accepted in the Store","wc.pill.gone":"Taken down","wc.justPublished":"Just published","wc.anyone":"Anyone with the link can open it","wc.open":"Open","wc.viewInPages":"View in My web pages","wc.manage":"Manage in My web pages","wc.total":"{n} published","wc.more":"{n} more","wc.unpublishTitle":"Take down {name}?","wc.unpublishBody":"The link stops working and the page's files are deleted from your cloud drive.","wc.unpublishAgain":"Click again to take down"},cd={zh:_b,en:Ab},Oe=e=>e==="en"?"en":"zh";function Ce(e,t,o){let r=cd[e][t]??cd.zh[t]??t;return o?r.replace(/\{(\w+)\}/g,(a,i)=>i in o?String(o[i]):a):r}var _n=e=>(t,o)=>Ce(e,t,o),ht=(e,t)=>"raw"in e?e.raw:t(e.key,e.vars);var dd=`
70
70
  .fx-acct { color: var(--text); }
71
71
  .fx-acct .fx-panel > .settings-panel-head:last-child { border-bottom-color: transparent; }
72
72
  .fx-acct .fx-panel > .fx-block + .fx-block,
@@ -204,6 +204,11 @@ Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error
204
204
  .fx-acct .fx-device { max-width: 540px; display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 12px; border-radius: var(--radius-md); background: var(--overlay-subtle); text-align: left; }
205
205
  .fx-acct .fx-sub > .fx-device { margin-top: 0; }
206
206
  .fx-acct .fx-qr { flex: 0 0 auto; border-radius: var(--radius-sm); background: #fff; }
207
+ .fx-acct .fx-wxbind { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
208
+ /* \u5FAE\u4FE1\u626B\u7801\u6846:218\xD7287 \u7684\u767D\u5E95\u5361\u7247(\u540C server auth \u9875),\u6846\u4E0D\u8DDF\u4E3B\u9898\u660E\u6697(color-scheme \u9632\u6DF1\u8272\u4E0B\u57AB\u4E00\u5757\u4E0D\u900F\u660E\u767D\u5E95) */
209
+ .fx-acct .fx-wxbind-frame { flex: 0 0 auto; width: 220px; height: 290px; border-width: 0; background: transparent; color-scheme: light; }
210
+ .fx-acct .fx-wxbind-side { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
211
+ .fx-acct .fx-wxbind-end { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
207
212
  .fx-acct .fx-device-copy { min-width: 0; display: grid; gap: 8px; }
208
213
  .fx-acct .fx-device-copy > p { max-width: none; margin: 0; color: var(--text-muted); font-size: var(--ui-font-meta); line-height: var(--ui-line-meta); }
209
214
  .fx-acct .fx-device-code { display: flex; align-items: baseline; gap: 8px; color: var(--text-faint); font-size: var(--ui-font-meta); line-height: var(--ui-line-meta); }
@@ -661,7 +666,7 @@ Please report this to https://github.com/markedjs/marked.`,e){let r="<p>An error
661
666
  .fx-acct .fx-sub-back { display: inline-flex; align-items: center; }
662
667
  .fx-acct .fx-sub-detail { padding: 14px 15px 18px; }
663
668
  }
664
- `,ad=`
669
+ `,ud=`
665
670
  .fx-ann-backdrop { position: fixed; inset: 0; z-index: 1600; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(8px); animation: fx-ann-fade 300ms ease-out both; }
666
671
  .fx-ann { position: relative; display: flex; flex-direction: column; width: min(100%, 560px); max-height: calc(100dvh - 40px); overflow: auto; padding: 24px 28px 22px; border: var(--border-width) solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: var(--card-shadow); color: var(--text); font-family: var(--font-ui); text-align: left; animation: fx-ann-enter 480ms cubic-bezier(.2,.75,.15,1) both; }
667
672
  .fx-ann:focus { outline: none; }
@@ -688,7 +693,7 @@ html[data-glass='off'] .fx-ann-backdrop { backdrop-filter: none; background: var
688
693
  @media (prefers-reduced-motion: reduce) {
689
694
  .fx-ann-backdrop, .fx-ann, .fx-ann-eyebrow, .fx-ann-title, .fx-ann-body, .fx-ann-ok { animation: none; }
690
695
  }
691
- `,ca=`
696
+ `,fa=`
692
697
  :host { display: block; color: var(--text); font-family: var(--font-body, var(--font-ui)); font-size: var(--ui-font-body); line-height: 1.65; overflow-wrap: anywhere; }
693
698
  .doc > :first-child { margin-top: 0; }
694
699
  .doc > :last-child { margin-bottom: 0; }
@@ -712,7 +717,7 @@ img { border-radius: var(--radius-sm); }
712
717
  hr { margin: 16px 0; border: 0; border-top: var(--border-width) solid var(--border); }
713
718
  a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
714
719
  strong, b { font-weight: 650; }
715
- `,id=`
720
+ `,pd=`
716
721
  .fx-addr-backdrop { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(6px); }
717
722
  .fx-addr { display: flex; flex-direction: column; width: min(100%, 540px); max-height: calc(100dvh - 40px); overflow: auto; padding: 18px 22px 18px; border: var(--border-width) solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: var(--card-shadow); color: var(--text); font-family: var(--font-ui); font-size: var(--ui-font-body); line-height: var(--ui-line-body); }
718
723
  .fx-addr-head { display: flex; align-items: center; gap: 8px; }
@@ -746,7 +751,7 @@ html[data-glass='off'] .fx-addr-backdrop { backdrop-filter: none; background: co
746
751
  .fx-addr-cost { flex-wrap: wrap; }
747
752
  .fx-addr-cost em { flex-basis: 100%; text-align: left; padding-left: 23px; }
748
753
  }
749
- `;var go=e=>typeof e=="string"?e:"";function cb(e){if(!e||typeof e!="object")return null;let t=e,o=typeof t.id=="string"?t.id.trim():typeof t.id=="number"&&Number.isFinite(t.id)?String(t.id):"",r=go(t.titleZh),a=go(t.bodyZh);return!o||!r.trim()&&!a.trim()?null:{id:o,titleZh:r,titleEn:go(t.titleEn).trim()?go(t.titleEn):null,bodyZh:a,bodyEn:go(t.bodyEn).trim()?go(t.bodyEn):null,format:t.format==="html"?"html":"markdown",publishedAt:go(t.publishedAt)||null}}function db(e,t){return t==="en"&&e.bodyEn?{lang:"en",title:e.titleEn??e.titleZh,body:e.bodyEn}:{lang:"zh",title:e.titleZh,body:e.bodyZh}}var ub=new Ci({gfm:!0,breaks:!0}),pb=["script","iframe","frame","frameset","object","embed","applet","portal","form","input","textarea","select","option","button","link","meta","base","noscript"],fb=/^(?:https?:|mailto:|#)/i;function sd(e){return fi.sanitize(e,{FORCE_BODY:!0,RETURN_DOM_FRAGMENT:!0,FORBID_TAGS:pb,ALLOWED_URI_REGEXP:fb})}function $i(e,t){let o=t==="markdown"?ub.parse(e,{async:!1}):e;return sd(o)}var da=null;function Ui(){if(da===null)try{let e=sd('<p onclick="1"><a href="javascript:void 0">a</a></p><script>1<\/script><iframe></iframe>');da=fi.isSupported&&!e.querySelector("script, iframe, [onclick], a[href]")}catch{da=!1}return da}function mb(e){try{let t=new URL(String(e??"").trim());return t.protocol==="http:"||t.protocol==="https:"?t.href:null}catch{return null}}var gb="http://www.w3.org/1999/xlink";function $n(e){let t=e.target,o=t&&typeof t.closest=="function"?t.closest("a, area"):null;if(!o||(e.preventDefault(),e.type!=="click"))return;let r=mb(o.getAttribute("href")??o.getAttributeNS(gb,"href"));if(r)try{ee().openExternal?.(r)?.catch(()=>{})}catch{}}function ua(e){return e.shadowRoot??e.attachShadow({mode:"open"})}function hb(e){let{ctx:t,ann:o}=e,[r,a]=C(()=>De(t.getLocale?.()));W(()=>{a(De(t.getLocale?.()));let f=t.subscribeLocale?.(m=>a(De(m)));return()=>{typeof f=="function"&&f()}},[t]);let i=Yt(()=>Cn(r),[r]),s=db(o,r),l=oe(null),c=oe(null),d=oe(null),p=oe(null),u=oe(e.onClose);return u.current=e.onClose,W(()=>{let f=document.activeElement instanceof HTMLElement?document.activeElement:null;l.current?.focus();let m=h=>{if(h.key==="Escape"){h.preventDefault(),h.stopPropagation(),u.current();return}if(h.key!=="Tab")return;let v=c.current,b=d.current,x=l.current;if(!v||!b||!x)return;let w=document.activeElement;if(!w||!x.contains(w)){h.preventDefault(),(h.shiftKey?b:v).focus();return}h.shiftKey&&(w===v||w===x)?(h.preventDefault(),b.focus()):!h.shiftKey&&w===b&&(h.preventDefault(),v.focus())},g=h=>{let v=l.current;v&&h.target instanceof Node&&!v.contains(h.target)&&v.focus()};return window.addEventListener("keydown",m,!0),document.addEventListener("focusin",g,!0),()=>{window.removeEventListener("keydown",m,!0),document.removeEventListener("focusin",g,!0),f?.isConnected&&f.focus()}},[]),W(()=>{let f=p.current;if(!f)return;let m=ua(f);return m.addEventListener("click",$n),m.addEventListener("auxclick",$n),()=>{m.removeEventListener("click",$n),m.removeEventListener("auxclick",$n)}},[]),W(()=>{let f=p.current;if(!f)return;let m=document.createElement("style");m.textContent=ca;let g=document.createElement("div");g.className="doc",g.appendChild($i(s.body,o.format)),ua(f).replaceChildren(m,g)},[s.body,o.format]),n("div",{class:"fx-ann-backdrop",children:[n("style",{children:ad}),n("section",{ref:l,class:"fx-ann",role:"dialog","aria-modal":"true","aria-labelledby":"fx-ann-title","aria-describedby":"fx-ann-body",tabIndex:-1,lang:s.lang==="zh"?"zh-CN":"en","data-announcement-id":o.id,children:[n("button",{ref:c,type:"button",class:"fx-ann-close","aria-label":i("ann.close"),onClick:()=>u.current(),children:n(U,{name:"x",size:16})}),n("div",{class:"fx-ann-eyebrow",children:i("ann.eyebrow")}),n("h2",{id:"fx-ann-title",class:"fx-ann-title",children:s.title}),n("div",{class:"fx-ann-body",children:n("div",{ref:p,id:"fx-ann-body",class:"fx-ann-doc"})}),n("div",{class:"fx-ann-footer",children:n("button",{ref:d,type:"button",class:"fx-ann-ok",onClick:()=>u.current(),children:i("ann.ok")})})]})]})}function bb(e){try{return new URLSearchParams(e||"").has("window")}catch{return!1}}function vb(e=document,t=12e3){let o=e.getElementById("tangu-splash");return o?.parentNode?new Promise(r=>{let a=()=>{i.disconnect(),clearTimeout(s),r()},i=new MutationObserver(()=>{o.isConnected||a()});i.observe(o.parentNode,{childList:!0});let s=setTimeout(a,t)}):Promise.resolve()}function ld(e,t=window){let o=un(t?.tangu);if(!e||!o?.cloudFetch||!pn(o)||bb(t.location?.search))return null;let r=0,a=!1,i=null,s=null,l=()=>{s?.done(),s=null},c=Promise.resolve(),d=(f,m)=>{let g=document.createElement("div");g.className="fx-ann-root",document.body.appendChild(g);let h=!1,v=b=>{h||(h=!0,i?.id===f.id&&(i=null),Oe(null,g),g.remove(),m?.done(),b&&(c=q(`/announcements/${encodeURIComponent(f.id)}/seen`,{method:"POST"})))};i={id:f.id,finish:v},Oe(n(hb,{ctx:e,ann:f,onClose:()=>v(!0)}),g)},p=async()=>{let f=++r;await c;let m=await q("/announcements/pending");if(a||f!==r||!m.ok)return;let g=cb(m.data?.announcement);if(!g||i||!Ui()||(await vb(),a||f!==r||i))return;let h=e.app?.queuePopup?.();if(h&&(l(),s=h,await h.ready,s===h&&(s=null),a||f!==r||i)){h.done();return}d(g,h)},u=o.onAuthChanged?.(f=>{i?.finish(!1),l(),f?.loggedIn?p():r++});return p(),{check:p,dispose(){a=!0,r++,typeof u=="function"&&u(),i?.finish(!1),l()}}}function cd(e){return typeof e!="string"?{ok:!1,rule:"format"}:e.length<8?{ok:!1,rule:"min"}:e.length>64?{ok:!1,rule:"max"}:/\s/.test(e)?{ok:!1,rule:"space"}:/[a-z]/.test(e)?/[A-Z]/.test(e)?/[^A-Za-z0-9]/.test(e)?{ok:!0}:{ok:!1,rule:"special"}:{ok:!1,rule:"upper"}:{ok:!1,rule:"lower"}}function dd(e){return{length:e.length>=8&&e.length<=64,lower:/[a-z]/.test(e),upper:/[A-Z]/.test(e),special:/[^A-Za-z0-9]/.test(e),space:e.length>0&&!/\s/.test(e)}}var ud={\u5BC6\u7801\u683C\u5F0F\u4E0D\u6B63\u786E:"format","\u5BC6\u7801\u81F3\u5C11 8 \u4F4D":"min","\u5BC6\u7801\u4E0D\u80FD\u8D85\u8FC7 64 \u4F4D":"max",\u5BC6\u7801\u4E0D\u80FD\u5305\u542B\u7A7A\u683C:"space",\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u5C0F\u5199\u5B57\u6BCD:"lower",\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u5927\u5199\u5B57\u6BCD:"upper",\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u7279\u6B8A\u5B57\u7B26:"special"};var pd={no_reset_card:"err.noResetCard",invalid_type:"err.generic",insufficient_points:"err.insufficientPoints",insufficient_main_quota:"err.insufficientMainQuota",background_unavailable:"err.backgroundUnavailable",points_fallback_unavailable:"err.pointsFallbackUnavailable",auto_deduct_removed:"err.pointsFallbackUnavailable",invalid_percent:"err.generic",invalid_request:"err.generic",invalid_invite_code:"err.invalidInviteCode",already_used:"err.inviteAlreadyUsed",window_expired:"err.inviteWindowExpired",ITEM_NOT_FOUND:"backpack.unavailable",ITEM_NOT_ACTIVE:"backpack.unavailable",ITEM_NOT_USABLE:"backpack.notUsable",ITEM_EFFECT_UNAVAILABLE:"backpack.quotaUnavailable",FEATURE_DISABLED:"err.featureDisabled",INSUFFICIENT_POINTS:"err.insufficientPoints",OUT_OF_STOCK:"store.soldOut",LIMIT_REACHED:"store.limitReached",NOT_AVAILABLE:"store.unavailable",NOT_POINTS_PURCHASABLE:"store.unavailable",CAPTCHA_FAILED:"err.captcha",TIER_NOT_ALLOWED:"wechat.notEligible",DISABLED:"wechat.disabled",machine_username:"profile.blocked.machineUsername",publish_blocked:"profile.blocked.publishBlocked",invalid_settings:"profile.invalid"},fd={"Current password is incorrect":"err.currentPasswordWrong","Current and new password are required":"err.passwordRequired",\u9A8C\u8BC1\u7801\u65E0\u6548\u6216\u5DF2\u8FC7\u671F:"err.codeInvalid","Invalid or expired verification code":"err.codeInvalid",\u8D26\u53F7\u6216\u9A8C\u8BC1\u7801\u9519\u8BEF:"err.codeInvalid",\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801:"err.codeRequired","Email already in use":"err.emailInUse","Phone number already in use":"err.phoneInUse","Invalid email format":"err.emailInvalid","Email is required":"err.emailInvalid","Invalid phone number format":"err.phoneInvalid","Phone number is required":"err.phoneInvalid","Invalid phone number or email format":"err.targetInvalid","Please wait before requesting another code":"err.codeCooldown","Failed to send verification code":"err.codeSendFailed","Invalid target for account deletion":"err.deleteTargetInvalid","\u8EAB\u4EFD\u9A8C\u8BC1\u5931\u8D25\uFF0C\u65E0\u6CD5\u6CE8\u9500\u8D26\u6237":"err.deleteVerifyFailed",\u7BA1\u7406\u5458\u8D26\u53F7\u4E0D\u80FD\u81EA\u52A9\u6CE8\u9500:"err.adminCannotDelete",\u79EF\u5206\u4F59\u989D\u4E0D\u8DB3:"err.insufficientPoints",\u6CA1\u6709\u53EF\u7528\u7684\u91CD\u7F6E\u5361:"err.noResetCard","\u4E3B\u989D\u5EA6\u5DF2\u7528\u5B8C,\u6CA1\u6709\u53EF\u8F6C\u5165\u7684\u989D\u5EA6":"err.insufficientMainQuota",\u540E\u53F0\u989D\u5EA6\u6682\u4E0D\u53EF\u7528:"err.backgroundUnavailable",\u9080\u8BF7\u7801\u65E0\u6548\u6216\u5DF2\u5931\u6548:"err.invalidInviteCode","\u5DF2\u8D85\u8FC7\u6CE8\u518C\u540E 7 \u5929\u7684\u8865\u586B\u671F":"err.inviteWindowExpired",\u4F60\u5DF2\u4F7F\u7528\u8FC7\u9080\u8BF7\u7801:"err.inviteAlreadyUsed","You have already used an invite code":"err.inviteAlreadyUsed","Cannot use your own invite code":"err.inviteOwnCode","Invite code is required":"err.inviteEmpty","code is required":"err.redeemEmpty","Redemption code not found":"err.redeemNotFound","Redemption code is not active":"err.redeemInactive","Redemption code has expired":"err.redeemExpired","Redemption code has reached maximum uses":"err.redeemUsedUp","You have already used this code the maximum number of times":"err.redeemUserLimit",avatar_too_large:"err.avatarTooLarge","description is required":"err.feedbackEmpty","description too long (max 10000 chars)":"err.feedbackTooLong","content is required":"err.replyEmpty","content too long (max 10000 chars)":"err.replyTooLong","Ticket not found":"err.ticketNotFound","Too many attachments (max 5)":"err.tooManyImages","Attachment type not allowed (image / json / text only)":"err.imageType","\u4EBA\u673A\u9A8C\u8BC1\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5":"err.captcha",\u5E94\u7528\u4E0D\u5B58\u5728\u6216\u4E0D\u5C5E\u4E8E\u4F60:"err.webPageGone","\u5E94\u7528\u5DF2\u88AB\u505C\u7528\uFF0C\u65E0\u6CD5\u7533\u8BF7\u4E0A\u67B6":"web.disabledHint",\u6CA1\u6709\u5BF9\u5E94\u7684\u4E0A\u67B6\u7533\u8BF7:"err.listingGone","\u8BF7\u586B\u5199\u5E94\u7528\u7B80\u4ECB\uFF08300 \u5B57\u4EE5\u5185\uFF09":"err.listingSummary"},Hi={format:"pw.rule.format",min:"pw.rule.min",max:"pw.rule.max",space:"pw.rule.space",lower:"pw.rule.lower",upper:"pw.rule.upper",special:"pw.rule.special"};function yb(e){if(e.code&&pd[e.code])return pd[e.code];if(e.detail){if(fd[e.detail])return fd[e.detail];let t=ud[e.detail];if(t)return Hi[t];if(e.detail.startsWith("Attachment exceeds 5MB"))return"err.imageTooLarge"}return null}function zt(e){let t=yb(e);return t?{key:t}:Bn(e)?{key:"err.signedOut"}:e.status===0?{key:"err.network"}:e.status===401?{key:"err.session"}:e.status===429?{key:"err.tooFrequent"}:e.detail?{raw:e.detail}:e.status>=500?{key:"err.server",vars:{status:e.status}}:{key:"err.generic"}}function br(e){let t=e.trim();return t?/cancelled\.?$/i.test(t)?null:t==="A sign-in is already in progress."?{key:"err.loginInProgress"}:t.startsWith("\u767B\u5F55\u8D85\u65F6")?{key:"err.loginTimeout"}:t.startsWith("\u767B\u5F55\u7801\u5DF2\u8FC7\u671F")?{key:"err.loginCodeExpired"}:t.startsWith("\u65E0\u6CD5\u8FDE\u63A5")?{key:"err.network"}:t.startsWith("\u4E91\u7AEF\u4E0D\u652F\u6301 CLI \u767B\u5F55")?{key:"err.loginUnsupported"}:t.startsWith("\u8BF7\u5148\u586B\u5199 Forsion \u4E91\u7AEF\u5730\u5740")?{key:"err.noCloudUrl"}:t.startsWith("Account is no longer signed in")?{key:"err.accountGone"}:{raw:t}:{key:"err.generic"}}var qi=ia(null);function se(){let e=Ni(qi);if(!e)throw new Error("forsion-extend: page rendered outside its host root");return e}var vt=()=>se().t;function $e(){let e=oe(!0);return W(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var md={pending:!1,error:null,success:null,captcha:!1};function ve(){let e=$e(),[t,o]=C(md),r=oe(!1),a=Bt(async s=>{if(r.current)return;r.current=!0,o({pending:!0,error:null,success:null,captcha:!1});let l;try{l=await s()}catch(c){l={error:{raw:String(c?.message||c)}}}r.current=!1,e.current&&o({pending:!1,error:l?.error??null,success:l?.success??null,captcha:!!l?.captcha})},[]),i=Bt(()=>{r.current||o(md)},[]);return{...t,run:a,clear:i}}var qe=e=>({error:zt(e),captcha:e.status===403&&e.code==="CAPTCHA_FAILED"});function gd(){let[e,t]=C(0),o=oe(null);W(()=>()=>{o.current&&clearInterval(o.current)},[]);let r=Bt((i=60)=>{o.current&&clearInterval(o.current),t(i),o.current=setInterval(()=>{t(s=>s<=1?(o.current&&clearInterval(o.current),o.current=null,0):s-1)},1e3)},[]),a=Bt(()=>{o.current&&clearInterval(o.current),o.current=null,t(0)},[]);return{left:e,start:r,stop:a}}function dt(e){let[t,o]=C({state:"loading"}),r=oe(0),a=oe(e);a.current=e;let i=Bt((c=!1)=>{let d=++r.current;c||o({state:"loading"}),(async()=>{let p;try{p=await a.current()}catch(u){p={ok:!1,status:0,code:null,detail:null,transport:String(u?.message||u)}}d===r.current&&(p.ok?o({state:"ready",data:p.data,gen:d}):Bn(p)?o({state:"signedOut"}):(p.status===401&&ee().authStatus?.().catch(()=>{}),o({state:"error",fail:p})))})()},[]);W(()=>{i();let c=ee().onAuthChanged?.(()=>i());return()=>{r.current++,c?.()}},[i]);let s=Bt(()=>i(),[i]),l=Bt(()=>i(!0),[i]);switch(t.state){case"ready":{let c=t.gen,d=p=>o(u=>u.state==="ready"&&u.gen===c?{...u,data:p(u.data)}:u);return{state:"ready",data:t.data,reload:l,update:d}}case"error":return{state:"error",error:zt(t.fail),retry:s};default:return t}}function pa(e){let t=String(e||"").trim();if(!t)return"";let o=t.startsWith("+")?4:3;return t.length<=o+4?`${t.slice(0,2)}***`:`${t.slice(0,o)}****${t.slice(-4)}`}function fa(e){let t=String(e||"").trim(),o=t.lastIndexOf("@");if(o<=0)return t?`${t.slice(0,1)}***`:"";let r=t.slice(0,o);return`${r.slice(0,r.length<=2?1:2)}***${t.slice(o)}`}function ho(e){let t=String(e||"").trim().toLowerCase()||"free";return t.charAt(0).toUpperCase()+t.slice(1)}var $o=(e,t)=>t==="en"&&e?.nameEn||e?.name||"",hd=(e,t)=>t==="en"&&e?.descriptionEn||e?.description||"",xb=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function bd(e,t){let o=String(e||"").trim(),r,a,i=/^(\d{4})-(\d{2})-(\d{2})$/.exec(o);if(i)r=Number(i[2]),a=Number(i[3]);else{let s=new Date(o);if(!o||Number.isNaN(s.getTime()))return null;let l=new Intl.DateTimeFormat("en-US",{timeZone:"Asia/Shanghai",month:"numeric",day:"numeric"}).formatToParts(s);r=Number(l.find(c=>c.type==="month")?.value),a=Number(l.find(c=>c.type==="day")?.value)}return!(r>=1&&r<=12)||!(a>=1&&a<=31)?null:t==="zh"?`${r}\u6708${a}\u65E5`:`${xb[r-1]} ${a}`}var Wi=e=>e==="zh"?"zh-CN":"en-US";function vd(e){if(e==null||e==="")return null;let t=new Date(typeof e=="string"&&/^\d+$/.test(e)?Number(e):e);return Number.isNaN(t.getTime())?null:t}function Lt(e,t){let o=vd(e);return o?new Intl.DateTimeFormat(Wi(t),{year:"numeric",month:"short",day:"numeric"}).format(o):"\u2014"}function Et(e,t){let o=vd(e);return o?new Intl.DateTimeFormat(Wi(t),{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).format(o):"\u2014"}function ze(e,t){let o=typeof e=="number"?e:Number(e);return Number.isFinite(o)?new Intl.NumberFormat(Wi(t),{maximumFractionDigits:2}).format(o):"\u2014"}var bo=(e=>(e[e.Border=-1]="Border",e[e.Data=0]="Data",e[e.Function=1]="Function",e[e.Position=2]="Position",e[e.Timing=3]="Timing",e[e.Alignment=4]="Alignment",e))(bo||{}),kb=[0,1],xd=[1,0],kd=[2,3],wd=[3,2],wb={L:kb,M:xd,Q:kd,H:wd},zb=/^\d*$/,Sb=/^[A-Z0-9 $%*+./:-]*$/,Vi="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",Xi=1,Ki=40,yd=3,Cb=3,ma=40,_b=10,zd=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],Sd=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],ji=class{constructor(t,o,r,a){if(this.version=t,this.ecc=o,t<Xi||t>Ki)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=t*4+17;let i=Array.from({length:this.size}).fill(!1);for(let l=0;l<this.size;l++)this.modules.push(i.slice()),this.types.push(i.map(()=>0));this.drawFunctionPatterns();let s=this.addEccAndInterleave(r);if(this.drawCodewords(s),a===-1){let l=1e9;for(let c=0;c<8;c++){this.applyMask(c),this.drawFormatBits(c);let d=this.getPenaltyScore();d<l&&(a=c,l=d),this.applyMask(c)}}this.mask=a,this.applyMask(a),this.drawFormatBits(a)}size;mask;modules=[];types=[];getModule(t,o){return t>=0&&t<this.size&&o>=0&&o<this.size&&this.modules[o][t]}drawFunctionPatterns(){for(let r=0;r<this.size;r++)this.setFunctionModule(6,r,r%2===0,bo.Timing),this.setFunctionModule(r,6,r%2===0,bo.Timing);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let t=this.getAlignmentPatternPositions(),o=t.length;for(let r=0;r<o;r++)for(let a=0;a<o;a++)r===0&&a===0||r===0&&a===o-1||r===o-1&&a===0||this.drawAlignmentPattern(t[r],t[a]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(t){let o=this.ecc[1]<<3|t,r=o;for(let i=0;i<10;i++)r=r<<1^(r>>>9)*1335;let a=(o<<10|r)^21522;for(let i=0;i<=5;i++)this.setFunctionModule(8,i,Un(a,i));this.setFunctionModule(8,7,Un(a,6)),this.setFunctionModule(8,8,Un(a,7)),this.setFunctionModule(7,8,Un(a,8));for(let i=9;i<15;i++)this.setFunctionModule(14-i,8,Un(a,i));for(let i=0;i<8;i++)this.setFunctionModule(this.size-1-i,8,Un(a,i));for(let i=8;i<15;i++)this.setFunctionModule(8,this.size-15+i,Un(a,i));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let t=this.version;for(let r=0;r<12;r++)t=t<<1^(t>>>11)*7973;let o=this.version<<12|t;for(let r=0;r<18;r++){let a=Un(o,r),i=this.size-11+r%3,s=Math.floor(r/3);this.setFunctionModule(i,s,a),this.setFunctionModule(s,i,a)}}drawFinderPattern(t,o){for(let r=-4;r<=4;r++)for(let a=-4;a<=4;a++){let i=Math.max(Math.abs(a),Math.abs(r)),s=t+a,l=o+r;s>=0&&s<this.size&&l>=0&&l<this.size&&this.setFunctionModule(s,l,i!==2&&i!==4,bo.Position)}}drawAlignmentPattern(t,o){for(let r=-2;r<=2;r++)for(let a=-2;a<=2;a++)this.setFunctionModule(t+a,o+r,Math.max(Math.abs(a),Math.abs(r))!==1,bo.Alignment)}setFunctionModule(t,o,r,a=bo.Function){this.modules[o][t]=r,this.types[o][t]=a}addEccAndInterleave(t){let o=this.version,r=this.ecc;if(t.length!==ga(o,r))throw new RangeError("Invalid argument");let a=Sd[r[0]][o],i=zd[r[0]][o],s=Math.floor(Gi(o)/8),l=a-s%a,c=Math.floor(s/a),d=[],p=Db(i);for(let f=0,m=0;f<a;f++){let g=t.slice(m,m+c-i+(f<l?0:1));m+=g.length;let h=Nb(g,p);f<l&&g.push(0),d.push(g.concat(h))}let u=[];for(let f=0;f<d[0].length;f++)d.forEach((m,g)=>{(f!==c-i||g>=l)&&u.push(m[f])});return u}drawCodewords(t){if(t.length!==Math.floor(Gi(this.version)/8))throw new RangeError("Invalid argument");let o=0;for(let r=this.size-1;r>=1;r-=2){r===6&&(r=5);for(let a=0;a<this.size;a++)for(let i=0;i<2;i++){let s=r-i,c=(r+1&2)===0?this.size-1-a:a;!this.types[c][s]&&o<t.length*8&&(this.modules[c][s]=Un(t[o>>>3],7-(o&7)),o++)}}}applyMask(t){if(t<0||t>7)throw new RangeError("Mask value out of range");for(let o=0;o<this.size;o++)for(let r=0;r<this.size;r++){let a;switch(t){case 0:a=(r+o)%2===0;break;case 1:a=o%2===0;break;case 2:a=r%3===0;break;case 3:a=(r+o)%3===0;break;case 4:a=(Math.floor(r/3)+Math.floor(o/2))%2===0;break;case 5:a=r*o%2+r*o%3===0;break;case 6:a=(r*o%2+r*o%3)%2===0;break;case 7:a=((r+o)%2+r*o%3)%2===0;break;default:throw new Error("Unreachable")}!this.types[o][r]&&a&&(this.modules[o][r]=!this.modules[o][r])}}getPenaltyScore(){let t=0;for(let i=0;i<this.size;i++){let s=!1,l=0,c=[0,0,0,0,0,0,0];for(let d=0;d<this.size;d++)this.modules[i][d]===s?(l++,l===5?t+=yd:l>5&&t++):(this.finderPenaltyAddHistory(l,c),s||(t+=this.finderPenaltyCountPatterns(c)*ma),s=this.modules[i][d],l=1);t+=this.finderPenaltyTerminateAndCount(s,l,c)*ma}for(let i=0;i<this.size;i++){let s=!1,l=0,c=[0,0,0,0,0,0,0];for(let d=0;d<this.size;d++)this.modules[d][i]===s?(l++,l===5?t+=yd:l>5&&t++):(this.finderPenaltyAddHistory(l,c),s||(t+=this.finderPenaltyCountPatterns(c)*ma),s=this.modules[d][i],l=1);t+=this.finderPenaltyTerminateAndCount(s,l,c)*ma}for(let i=0;i<this.size-1;i++)for(let s=0;s<this.size-1;s++){let l=this.modules[i][s];l===this.modules[i][s+1]&&l===this.modules[i+1][s]&&l===this.modules[i+1][s+1]&&(t+=Cb)}let o=0;for(let i of this.modules)o=i.reduce((s,l)=>s+(l?1:0),o);let r=this.size*this.size,a=Math.ceil(Math.abs(o*20-r*10)/r)-1;return t+=a*_b,t}getAlignmentPatternPositions(){if(this.version===1)return[];{let t=Math.floor(this.version/7)+2,o=this.version===32?26:Math.ceil((this.version*4+4)/(t*2-2))*2,r=[6];for(let a=this.size-7;r.length<t;a-=o)r.splice(1,0,a);return r}}finderPenaltyCountPatterns(t){let o=t[1],r=o>0&&t[2]===o&&t[3]===o*3&&t[4]===o&&t[5]===o;return(r&&t[0]>=o*4&&t[6]>=o?1:0)+(r&&t[6]>=o*4&&t[0]>=o?1:0)}finderPenaltyTerminateAndCount(t,o,r){return t&&(this.finderPenaltyAddHistory(o,r),o=0),o+=this.size,this.finderPenaltyAddHistory(o,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(t,o){o[0]===0&&(t+=this.size),o.pop(),o.unshift(t)}};function Hn(e,t,o){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)o.push(e>>>r&1)}function Un(e,t){return(e>>>t&1)!==0}var vr=class{constructor(t,o,r){if(this.mode=t,this.numChars=o,this.bitData=r,o<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}getData(){return this.bitData.slice()}},Ab=[1,10,12,14],Tb=[2,9,11,13],Eb=[4,8,16,16];function Cd(e,t){return e[Math.floor((t+7)/17)+1]}function _d(e){let t=[];for(let o of e)Hn(o,8,t);return new vr(Eb,e.length,t)}function Pb(e){if(!Ad(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let o=0;o<e.length;){let r=Math.min(e.length-o,3);Hn(Number.parseInt(e.substring(o,o+r),10),r*3+1,t),o+=r}return new vr(Ab,e.length,t)}function Ib(e){if(!Td(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t=[],o;for(o=0;o+2<=e.length;o+=2){let r=Vi.indexOf(e.charAt(o))*45;r+=Vi.indexOf(e.charAt(o+1)),Hn(r,11,t)}return o<e.length&&Hn(Vi.indexOf(e.charAt(o)),6,t),new vr(Tb,e.length,t)}function Rb(e){return e===""?[]:Ad(e)?[Pb(e)]:Td(e)?[Ib(e)]:[_d(Lb(e))]}function Ad(e){return zb.test(e)}function Td(e){return Sb.test(e)}function Mb(e,t){let o=0;for(let r of e){let a=Cd(r.mode,t);if(r.numChars>=1<<a)return Number.POSITIVE_INFINITY;o+=4+a+r.bitData.length}return o}function Lb(e){e=encodeURI(e);let t=[];for(let o=0;o<e.length;o++)e.charAt(o)!=="%"?t.push(e.charCodeAt(o)):(t.push(Number.parseInt(e.substring(o+1,o+3),16)),o+=2);return t}function Gi(e){if(e<Xi||e>Ki)throw new RangeError("Version number out of range");let t=(16*e+128)*e+64;if(e>=2){let o=Math.floor(e/7)+2;t-=(25*o-10)*o-55,e>=7&&(t-=36)}return t}function ga(e,t){return Math.floor(Gi(e)/8)-zd[t[0]][e]*Sd[t[0]][e]}function Db(e){if(e<1||e>255)throw new RangeError("Degree out of range");let t=[];for(let r=0;r<e-1;r++)t.push(0);t.push(1);let o=1;for(let r=0;r<e;r++){for(let a=0;a<t.length;a++)t[a]=Ji(t[a],o),a+1<t.length&&(t[a]^=t[a+1]);o=Ji(o,2)}return t}function Nb(e,t){let o=t.map(r=>0);for(let r of e){let a=r^o.shift();o.push(0),t.forEach((i,s)=>o[s]^=Ji(i,a))}return o}function Ji(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");let o=0;for(let r=7;r>=0;r--)o=o<<1^(o>>>7)*285,o^=(t>>>r&1)*e;return o}function Ob(e,t,o=1,r=40,a=-1,i=!0){if(!(Xi<=o&&o<=r&&r<=Ki)||a<-1||a>7)throw new RangeError("Invalid value");let s,l;for(s=o;;s++){let u=ga(s,t)*8,f=Mb(e,s);if(f<=u){l=f;break}if(s>=r)throw new RangeError("Data too long")}for(let u of[xd,kd,wd])i&&l<=ga(s,u)*8&&(t=u);let c=[];for(let u of e){Hn(u.mode[0],4,c),Hn(u.numChars,Cd(u.mode,s),c);for(let f of u.getData())c.push(f)}let d=ga(s,t)*8;Hn(0,Math.min(4,d-c.length),c),Hn(0,(8-c.length%8)%8,c);for(let u=236;c.length<d;u^=253)Hn(u,8,c);let p=Array.from({length:Math.ceil(c.length/8)},()=>0);return c.forEach((u,f)=>p[f>>>3]|=u<<7-(f&7)),new ji(s,t,p,a)}function Ed(e,t){let{ecc:o="L",boostEcc:r=!1,minVersion:a=1,maxVersion:i=40,maskPattern:s=-1,border:l=1}=t||{},c=typeof e=="string"?Rb(e):Array.isArray(e)?[_d(e)]:void 0;if(!c)throw new Error(`uqr only supports encoding string and binary data, but got: ${typeof e}`);let d=Ob(c,wb[o],a,i,s,r),p=Fb({version:d.version,maskPattern:d.mask,size:d.size,data:d.modules,types:d.types},l);return t?.invert&&(p.data=p.data.map(u=>u.map(f=>!f))),t?.onEncoded?.(p),p}function Fb(e,t=1){if(!t)return e;let{size:o}=e,r=o+t*2;e.size=r,e.data.forEach(i=>{for(let s=0;s<t;s++)i.unshift(!1),i.push(!1)});for(let i=0;i<t;i++)e.data.unshift(Array.from({length:r},s=>!1)),e.data.push(Array.from({length:r},s=>!1));let a=bo.Border;e.types.forEach(i=>{for(let s=0;s<t;s++)i.unshift(a),i.push(a)});for(let i=0;i<t;i++)e.types.unshift(Array.from({length:r},s=>a)),e.types.push(Array.from({length:r},s=>a));return e}function Ne(e){return n("section",{class:`settings-panel fx-panel${e.danger?" fx-panel--danger":""}`,"aria-label":e.label,children:[n("div",{class:`settings-panel-head${e.actions?" settings-panel-head--actions":""}`,children:[e.icon&&n("span",{class:"settings-panel-icon",children:n(U,{name:e.icon,size:16})}),n("div",{children:[n("strong",{children:e.title}),e.desc&&n("p",{children:e.desc})]}),e.actions&&n("div",{class:"settings-panel-actions settings-panel-actions--wide",children:e.actions})]}),e.children]})}function Xe(e){return n("div",{class:`settings-control-row settings-setting-row fx-row fx-block${e.class?` ${e.class}`:""}`,children:[n("div",{class:"settings-control-copy",children:n("span",{children:[n("strong",{children:e.label}),e.desc&&n("small",{children:e.desc})]})}),e.children!==void 0&&e.children!==null&&n("div",{class:"settings-row-control fx-row-control",children:e.children})]})}function Pe(e){return n("div",{class:`fx-sub${e.class?` ${e.class}`:""}`,children:e.children})}function rn(e){return n("button",{type:"button",role:"switch","aria-checked":e.checked,"aria-label":e.label,class:`settings-switch${e.checked?" active":""}`,disabled:e.disabled,onClick:()=>e.onChange(!e.checked),children:n("span",{})})}function V(e){let t=e.variant??"ghost",o=t==="danger-solid"?"btn sm danger fx-danger-solid":`btn sm ${t}`;return n("button",{type:e.submit?"submit":"button",class:o,disabled:e.disabled||e.pending,"aria-busy":e.pending||void 0,"aria-label":e.label,title:e.title,"data-armed":e.armed?"true":void 0,onClick:e.onClick,children:[e.pending&&n(Zt,{}),e.children]})}var ha=5e3;function Qt(e){let[t,o]=C(!1),r=oe(null),a=()=>{r.current&&clearTimeout(r.current),r.current=null,o(!1)};W(()=>()=>{r.current&&clearTimeout(r.current)},[]),W(()=>{(e.pending||e.disabled)&&a()},[e.pending,e.disabled]);let i=()=>{if(!t){o(!0),r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{r.current=null,o(!1)},ha);return}a(),e.onConfirm()},s=e.variant??"ghost";return n(V,{variant:t?s==="danger"||s==="danger-solid"?"danger-solid":"primary":s,armed:t,pending:e.pending,disabled:e.disabled,onClick:i,children:t?e.confirmLabel:e.label})}function ke(e){let t=vt(),{a:o}=e;return o.error?n("div",{class:"fx-msg is-error",role:"alert",children:[n("span",{children:wt(o.error,t)}),o.captcha&&n("button",{type:"button",class:"fx-link",onClick:()=>void mo(e.captchaSection??"security"),children:[t("common.openInBrowser")," ",n(U,{name:"external",size:12})]})]}):o.success?n("div",{class:"fx-msg is-ok",role:"status",children:wt(o.success,t)}):null}function de(e){return n("p",{class:`fx-note${e.tone?` is-${e.tone}`:""}`,children:e.children})}function At(e){return n("div",{class:"settings-empty-row fx-block",children:e.children})}function yr(e){let t=vt(),o=e.display;return n("div",{class:`fx-quota${o.low?" is-low":""}`,children:[n("div",{class:"fx-quota-top",children:[n("span",{class:"fx-quota-label",children:e.label}),n("span",{class:"fx-quota-value",children:o.unlimited?t("common.unlimited"):o.text})]}),n("div",{class:"fx-bar",role:"progressbar","aria-label":e.label,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o.pct,"aria-valuetext":o.unlimited?t("common.unlimited"):o.text,children:n("span",{style:{width:`${o.pct}%`}})}),e.note&&n("div",{class:"fx-quota-note",children:e.note})]})}function Dt(e){return n("div",{class:"seg fx-seg",role:"radiogroup","aria-label":e.label,children:e.options.map(t=>n("button",{type:"button",role:"radio","aria-checked":t.value===e.value,class:t.value===e.value?"active":"",onClick:()=>{t.value!==e.value&&e.onChange(t.value)},children:t.label}))})}async function Uo(e){try{return await navigator.clipboard.writeText(e),!0}catch{try{let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();let o=document.execCommand("copy");return t.remove(),o}catch{return!1}}}function Vt(e){let t=vt(),[o,r]=C("idle"),a=oe(null);W(()=>()=>{a.current&&clearTimeout(a.current)},[]);let i=async()=>{let l=await Uo(e.text);r(l?"copied":"failed"),a.current&&clearTimeout(a.current),a.current=setTimeout(()=>r("idle"),1800)},s=o==="copied"?t("common.copied"):o==="failed"?t("common.copyFailed"):e.label;return n(M,{children:[n(V,{disabled:e.disabled||!e.text,onClick:()=>void i(),label:e.iconOnly?e.label:void 0,title:e.iconOnly?s:void 0,children:[n(U,{name:o==="copied"?"check":e.iconOnly&&o==="failed"?"alert":"copy",size:12}),!e.iconOnly&&s]}),e.iconOnly&&n("span",{class:"fx-sr-only",role:"status",children:o==="idle"?"":s})]})}function Bb(e){let t=Yt(()=>{try{return Ed(e.value,{ecc:"M",border:2})}catch{return null}},[e.value]);if(!t)return null;let o="";t.data.forEach((a,i)=>a.forEach((s,l)=>{s&&(o+=`M${l} ${i}h1v1h-1z`)}));let r=e.size??148;return n("svg",{class:"fx-qr",width:r,height:r,viewBox:`0 0 ${t.size} ${t.size}`,"shape-rendering":"crispEdges",role:"img","aria-label":e.label,children:[n("rect",{width:t.size,height:t.size,fill:"#fff"}),n("path",{d:o,fill:"#000"})]})}function Yi(e){let t=vt(),{device:o}=e;return n("div",{class:"fx-device",children:[n(Bb,{value:o.url,label:t("signin.qrLabel")}),n("div",{class:"fx-device-copy",children:[n("p",{children:t("signin.deviceHint")}),o.userCode&&n("div",{class:"fx-device-code",children:[n("span",{children:t("signin.code")}),n("code",{children:o.userCode})]}),n("div",{class:"fx-inline",children:[n("button",{type:"button",class:"fx-link",onClick:()=>window.open(o.url,"_blank"),children:[t("signin.openLink")," ",n(U,{name:"external",size:12})]}),n(Vt,{text:o.url,label:t("signin.copyLink")})]})]})]})}function mt(){let e=vt(),t=ve(),[o,r]=C(null);W(()=>ee().onAuthDevice?.(i=>r(i)),[]);let a=()=>void t.run(async()=>{let i=ee().forsionLogin;if(!i)return{error:{key:"err.unavailable"}};try{await i()}catch(s){r(null);let l=br(kt(s));return l?{error:l}:void 0}});return n("section",{class:"settings-panel fx-panel fx-signin","aria-label":e("signin.button"),children:n("div",{class:"settings-state fx-signin-body",children:[n("span",{class:"settings-state-icon",children:n(U,{name:"user",size:18})}),n("p",{class:"fx-signin-lead",children:e("signin.desc")}),n("div",{class:"settings-state-actions",children:n(V,{variant:"primary",pending:t.pending,onClick:a,children:t.pending?e("signin.pending"):e("signin.button")})}),o&&n(Yi,{device:o}),n(ke,{a:t})]})})}function nt(e){let t=vt(),o=e.panels??2,r=e.rows??2;return n("div",{class:"fx-skeleton","aria-busy":"true","aria-label":t("common.loading"),children:Array.from({length:o},(a,i)=>n("section",{class:"settings-panel fx-panel",children:[n("div",{class:"settings-panel-head",children:[n("span",{class:"fx-skel fx-skel--icon"}),n("div",{children:[n("span",{class:"fx-skel fx-skel--title"}),n("span",{class:"fx-skel fx-skel--line"})]})]}),Array.from({length:r},(s,l)=>n("div",{class:"settings-control-row",children:n("span",{class:"fx-skel fx-skel--row"})},l))]},i))})}function yt(e){let t=vt();return n("section",{class:"settings-panel fx-panel",children:n("div",{class:"settings-state fx-error-state",role:"alert",children:[n("span",{class:"settings-state-icon",children:n(U,{name:"alert",size:18})}),n("strong",{children:t("common.loadFailed")}),n("p",{children:wt(e.error,t)}),n("div",{class:"settings-state-actions",children:n(V,{variant:"primary",onClick:e.onRetry,children:[n(U,{name:"refresh",size:12})," ",t("common.retry")]})})]})})}function Ub(e,t){for(var o in t)e[o]=t[o];return e}function Pd(e,t){for(var o in e)if(o!=="__source"&&!(o in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Id(e,t){this.props=e,this.context=t}(Id.prototype=new wn).isPureReactComponent=!0,Id.prototype.shouldComponentUpdate=function(e,t){return Pd(this.props,e)||Pd(this.state,t)};var Rd=Te.__b;Te.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Rd&&Rd(e)};var o0=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var Hb=Te.__e;Te.__e=function(e,t,o,r){if(e.then){for(var a,i=t;i=i.__;)if((a=i.__c)&&a.__c)return t.__e==null&&(t.__e=o.__e,t.__k=o.__k||[]),a.__c(e,t)}Hb(e,t,o,r)};var Md=Te.unmount;function Bd(e,t,o){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Ub({},e)).__c!=null&&(e.__c.__P===o&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Bd(r,t,o)})),e}function $d(e,t,o){return e&&o&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return $d(r,t,o)}),e.__c&&e.__c.__P===t&&(e.__e&&o.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=o)),e}function Zi(){this.__u=0,this.o=null,this.__b=null}function Ud(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function ba(){this.i=null,this.l=null}Te.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Md&&Md(e)},(Zi.prototype=new wn).__c=function(e,t){var o=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(o);var a=Ud(r.__v),i=!1,s=function(){i||r.__z||(i=!0,o.__R=null,a?a(c):c())};o.__R=s;var l=o.__P;o.__P=null;var c=function(){if(!--r.__u){if(r.state.__a){var d=r.state.__a;r.__v.__k[0]=$d(d,d.__c.__P,d.__c.__O)}var p;for(r.setState({__a:r.__b=null});p=r.o.pop();)p.__P=l,p.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Zi.prototype.componentWillUnmount=function(){this.o=[]},Zi.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Bd(this.__b,o,r.__O=r.__P)}this.__b=null}var a=t.__a&&fo(M,null,e.fallback);return a&&(a.__u&=-33),[fo(M,null,t.__a?null:e.children),a]};var Ld=function(e,t,o){if(++o[1]===o[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(o=e.i;o;){for(;o.length>3;)o.pop()();if(o[1]<o[0])break;e.i=o=o[2]}};function qb(e){return this.getChildContext=function(){return e.context},e.children}function Wb(e){var t=this,o=e.h;if(t.componentWillUnmount=function(){Oe(null,t.v),t.v=null,t.h=null},t.h&&t.h!==o&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=o,t.v={nodeType:1,parentNode:o,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},namespaceURI:o.namespaceURI,insertBefore:function(a,i){this.childNodes.push(a),t.h.insertBefore(a,i)},removeChild:function(a){this.childNodes.splice(this.childNodes.indexOf(a)>>>1,1),t.h.removeChild(a)}}}Oe(fo(qb,{context:t.context},e.__v),t.v)}function va(e,t){var o=fo(Wb,{__v:e,h:t});return o.containerInfo=t,o}(ba.prototype=new wn).__a=function(e){var t=this,o=Ud(t.__v),r=t.l.get(e);return r[0]++,function(a){var i=function(){t.props.revealOrder?(r.push(a),Ld(t,e,r)):a()};o?o(i):i()}},ba.prototype.render=function(e){this.i=null,this.l=new Map;var t=mr(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var o=t.length;o--;)this.l.set(t[o],this.i=[1,0,this.i]);return e.children},ba.prototype.componentDidUpdate=ba.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,o){Ld(e,o,t)})};var Vb=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,jb=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Gb=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Jb=/[A-Z0-9]/g,Xb=typeof document<"u",Kb=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};wn.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(wn.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Dd=Te.event;Te.event=function(e){return Dd&&(e=Dd(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var Hd,Yb={configurable:!0,get:function(){return this.class}},Nd=Te.vnode;Te.vnode=function(e){typeof e.type=="string"&&(function(t){var o=t.props,r=t.type,a={},i=r.indexOf("-")==-1;for(var s in o){var l=o[s];if(!(s==="value"&&"defaultValue"in o&&l==null||Xb&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var c=s.toLowerCase();s==="defaultValue"&&"value"in o&&o.value==null?s="value":s==="download"&&l===!0?l="":c==="translate"&&l==="no"?l=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?s="ondblclick":c!=="onchange"||r!=="input"&&r!=="textarea"||Kb(o.type)?c==="onfocus"?s="onfocusin":c==="onblur"?s="onfocusout":Gb.test(s)&&(s=c):c=s="oninput":i&&jb.test(s)?s=s.replace(Jb,"-$&").toLowerCase():l===null&&(l=void 0),c==="oninput"&&a[s=c]&&(s="oninputCapture"),a[s]=l}}r=="select"&&(a.multiple&&Array.isArray(a.value)&&(a.value=mr(o.children).forEach(function(d){d.props.selected=a.value.indexOf(d.props.value)!=-1})),a.defaultValue!=null&&(a.value=mr(o.children).forEach(function(d){d.props.selected=a.multiple?a.defaultValue.indexOf(d.props.value)!=-1:a.defaultValue==d.props.value}))),o.class&&!o.className?(a.class=o.class,Object.defineProperty(a,"className",Yb)):o.className&&(a.class=a.className=o.className),t.props=a})(e),e.$$typeof=Vb,Nd&&Nd(e)};var Od=Te.__r;Te.__r=function(e){Od&&Od(e),Hd=e.__c};var Fd=Te.diffed;Te.diffed=function(e){Fd&&Fd(e);var t=e.props,o=e.__e;o!=null&&e.type==="textarea"&&"value"in t&&t.value!==o.value&&(o.value=t.value==null?"":t.value),Hd=null};function qd(e){return/^[a-z0-9](?:[a-z0-9-]{1,28})?[a-z0-9]$/.test(e)&&e.length>=3}var Qi=e=>e.trim().toLowerCase();function es(e,t=Date.now()){return e.cooldownUntil&&Date.parse(e.cooldownUntil)>t?{kind:"cooldown",until:e.cooldownUntil}:e.freeRenamesLeft>0?{kind:"free",left:e.freeRenamesLeft}:e.cards>0?{kind:"card",cards:e.cards}:e.card?.available&&e.card.productId?{kind:"buy",productId:e.card.productId,price:e.card.pricePoints}:{kind:"unavailable"}}function ts(e,t){let o=(t||"").replace(/\/+$/,"");return o?`${o}/${encodeURIComponent(e)}`:null}function ya(e){if(typeof e!="string"||!/^https?:\/\//i.test(e))return null;try{return new URL(e).origin}catch{return null}}var Ho=e=>e.replace(/^https?:\/\//i,"");function Wd(e){let t=(e||"").replace(/\/+$/,"");return t?`${Ho(t)}/`:"@"}var ns=!1;function jd(){ns=!0}function Zb(){let e=ns;return ns=!1,e}function Gd(){let{t:e}=se(),t=$e(),[o,r]=C(null),[a,i]=C(!1),[s,l]=C(null);if(W(()=>{(async()=>{let d=await q("/connect/handle");if(!t.current||!d.ok||!d.data?.handle)return;let p=d.data.publicOrigin||null;if(d.data.publicOrigin===void 0){let u=await q("/profile/me");if(!t.current)return;p=u.ok?ya(u.data?.profile?.profileUrl):null}r({handle:d.data.handle,pub:p}),Zb()&&i(!0)})()},[]),!o)return null;let c=ts(o.handle,o.pub);return n(M,{children:[n(Xe,{class:"fx-row--wide",label:e("address.label"),desc:s?n("span",{class:"fx-addr-done",role:"status",children:s}):void 0,children:[n("span",{class:"fx-value fx-addr-value",children:c?Ho(c):`@${o.handle}`}),n(V,{onClick:()=>{l(null),i(!0)},children:[n(U,{name:"pencil",size:12})," ",e("address.change")]})]}),a&&n(Qb,{pub:o.pub,onClose:()=>i(!1),onChanged:d=>{let p=d.publicOrigin||o.pub;r(f=>f&&{...f,handle:d.handle,pub:p});let u=ts(d.handle,p);l(e("address.done",{url:u?Ho(u):`@${d.handle}`}))}})]})}var Vd={INSUFFICIENT_POINTS:"address.errPoints",NOT_AVAILABLE:"address.errSoldout",LIMIT_REACHED:"address.errLimit"};function Qb(e){let{t,locale:o}=se(),r=$e(),[a,i]=C(null),[s,l]=C(null),[c,d]=C(""),[p,u]=C({handle:"",state:"idle"}),[f,m]=C(!1),[g,h]=C(null),[v,b]=C(0),x=oe(0),w=async()=>{let H=await q("/connect/handle");return r.current&&H.ok&&H.data?.handle?(i(H.data),b(0),H.data):null};W(()=>{w().then(te=>{!te&&r.current&&i(pe=>pe??"failed")}),q("/credits/balance").then(te=>{r.current&&te.ok&&l(Number(te.data?.balance)||0)});let H=te=>{te.key==="Escape"&&e.onClose()};return window.addEventListener("keydown",H),()=>window.removeEventListener("keydown",H)},[]);let S=a&&a!=="failed"?a.handle:"";W(()=>{let H=Qi(c),te=++x.current,pe=me=>u({handle:H,state:me});if(!H){pe("idle");return}if(!qd(H)){pe("bad");return}if(H===S){pe("same");return}pe("checking");let Ue=setTimeout(()=>{q(`/connect/handle/check?handle=${encodeURIComponent(H)}`).then(me=>{te!==x.current||!r.current||pe(me.ok?me.data?.ok?"ok":me.data?.code==="same"?"same":"bad":"idle")})},300);return()=>clearTimeout(Ue)},[c,S]);let T=n("div",{class:"fx-addr-head",children:[n(U,{name:"home",size:16}),n("strong",{children:t("address.title")}),n("button",{type:"button",class:"fx-addr-close","aria-label":t("common.cancel"),title:t("common.cancel"),onClick:e.onClose,children:n(U,{name:"x",size:15})})]}),F=H=>va(n("div",{class:"fx-addr-backdrop",onClick:te=>{te.target===te.currentTarget&&e.onClose()},children:[n("style",{children:id}),n("section",{class:"fx-addr",role:"dialog","aria-modal":"true","aria-label":t("address.title"),children:[T,H]})]}),document.body);if(a===null||a==="failed")return F(n("p",{class:"fx-addr-desc",children:t(a===null?"common.loading":"address.loadFailed")}));let B=es(a),N=B.kind==="buy"&&v>0?{kind:"card",cards:v}:B,j=Qi(c),_=p.handle===j?p.state:j?"checking":"idle",L=_==="ok",$=Wd(a.publicOrigin||e.pub||null),P=N.kind==="buy"&&s!==null&&s<N.price,K=N.kind==="cooldown"||N.kind==="unavailable",z=N.kind==="card"?t("address.goCard"):N.kind==="buy"?t("address.goBuy",{price:ze(N.price,o)}):t("address.go"),A=N.kind==="cooldown"?["clock",t("address.cooldown",{days:a.cooldownDays}),t("address.cooldownUntil",{date:Lt(N.until,o)})]:N.kind==="free"?["info",N.left>1?t("address.freeN",{n:N.left}):t("address.freeOne"),t("address.freeAfter")]:N.kind==="card"?["ticket",t("address.card"),t("address.cardHave",{n:N.cards})]:N.kind==="buy"?["ticket",t("address.need"),t("address.price",{price:ze(N.price,o),balance:s===null?"\u2014":ze(s,o)})]:["ticket",t("address.need"),t("address.soldout")],R=(H,te)=>{let pe=te?es(te):null;switch(H.code){case"taken":return{key:"address.errTaken"};case"need_card":return{key:"address.errNeedCard"};case"cooldown":return{key:"address.errCooldown",vars:{date:pe?.kind==="cooldown"?Lt(pe.until,o):"\u2014"}};case"invalid":case"reserved":case"same":return{key:"address.bad"};default:return zt(H)}},X=async()=>{let H=j;if(!L)return;m(!0),h(null);let te=!1;try{if(N.kind==="buy"){if(!r.current)return;let Ie=await q("/shop/purchase",{method:"POST",body:{productId:N.productId,payMethod:"points"}});if(!r.current)return;if(!Ie.ok){h(Ie.code&&Vd[Ie.code]?{key:Vd[Ie.code]}:zt(Ie));return}te=!0,b(Ze=>Ze+1)}if(!r.current)return;let pe=await q("/connect/handle",{method:"PUT",body:{handle:H}});if(!r.current)return;if(pe.ok&&pe.data?.handle){e.onChanged(pe.data),e.onClose();return}let Ue=await w();if(!r.current)return;if(Ue&&Ue.handle===H){e.onChanged(Ue),e.onClose();return}if(pe.ok){h({key:"err.generic"});return}(pe.code==="taken"||pe.code==="invalid"||pe.code==="reserved")&&u({handle:H,state:"bad"});let me=!Ue&&pe.status===0?{key:"address.errUnknown"}:R(pe,Ue);h(te?{key:"address.errBought",vars:{reason:wt(me,t)}}:me)}finally{r.current&&m(!1)}},Q=_==="checking"?n("span",{class:"fx-addr-check",children:t("address.checking")}):_==="ok"?n("span",{class:"fx-addr-check is-ok",children:[n(U,{name:"check",size:13}),t("address.ok")]}):_==="same"?n("span",{class:"fx-addr-check",children:t("address.same")}):_==="bad"?n("span",{class:"fx-addr-check is-bad",children:t("address.bad")}):null;return F(n(M,{children:[n("p",{class:"fx-addr-desc",children:t("address.desc")}),n("div",{class:"fx-addr-row",children:[n("label",{children:t("address.now")}),n("span",{class:"fx-addr-now",children:[$,n("b",{children:a.handle})]})]}),n("div",{class:"fx-addr-row",children:[n("label",{for:"fx-addr-input",children:t("address.new")}),n("span",{class:"fx-addr-in",children:[n("i",{children:$}),n("input",{id:"fx-addr-input",type:"text",autoFocus:!0,autoComplete:"off",spellcheck:!1,maxLength:30,value:c,placeholder:a.handle,disabled:N.kind==="cooldown"||f,onInput:H=>{d(H.target.value),h(null)},onKeyDown:H=>{H.key==="Enter"&&L&&!K&&!P&&!f&&X()}})]})]}),n("div",{class:"fx-addr-row fx-addr-under",children:[n("label",{}),n("div",{children:[Q,n("span",{class:"fx-addr-rule",children:t("address.rule")})]})]}),n("div",{class:"fx-addr-cost",children:[n(U,{name:A[0],size:15}),n("span",{children:A[1]}),n("span",{class:"fx-addr-grow"}),n("em",{children:A[2]})]}),P&&n("div",{class:"fx-addr-msg",role:"alert",children:t("address.errPoints")}),g&&n("div",{class:"fx-addr-msg",role:"alert",children:wt(g,t)}),n("div",{class:"fx-addr-foot",children:[n(V,{disabled:f,onClick:e.onClose,children:t("common.cancel")}),n("span",{class:"fx-addr-grow"}),(N.kind==="buy"||N.kind==="unavailable")&&n(V,{onClick:()=>void Sn("storefront"),children:t("address.shop")}),n(V,{variant:"primary",pending:f,disabled:K||P||!L,onClick:()=>void X(),children:z})]})]}))}var ev=5e3;function Jd(){let{t:e,locale:t}=se(),o=$e(),r=ve(),[a,i]=C(null),[s,l]=C(!1),c=oe(0),d=oe(!1),p=Bt(async()=>{let h=++c.current;d.current=!0;let v=await q("/wechat-helper/me");d.current=!1,!(!o.current||h!==c.current)&&(v.ok?(i(v.data),l(!1)):v.status===404?i(null):l(!0))},[]);W(()=>{p()},[p]);let u=!!a?.code&&!a.bound;W(()=>{if(!u)return;let h=setInterval(()=>{d.current||p()},ev);return()=>clearInterval(h)},[u,p]);let f=()=>void r.run(async()=>{c.current++;let h=await q("/wechat-helper/code",{method:"POST",body:{locale:t}});if(!h.ok)return qe(h);c.current++,o.current&&i(v=>v&&{...v,code:h.data})}),m=()=>void r.run(async()=>{c.current++;let h=await q("/wechat-helper/binding",{method:"DELETE"});if(!h.ok)return qe(h);o.current&&i(v=>v&&{...v,bound:!1,boundAt:null,code:null}),await p()});if(!a&&s)return n(Ne,{icon:"message",title:e("wechat.title"),children:[n(Pe,{children:n(de,{tone:"warn",children:e("common.loadFailed")})}),n("div",{class:"settings-panel-footer fx-footer",children:n(V,{onClick:()=>void p(),children:e("common.retry")})})]});if(!a?.enabled)return null;let g=a.contact?e("wechat.contact",{contact:a.contact}):e("wechat.contactUnknown");return n(Ne,{icon:"message",title:e("wechat.title"),desc:e("wechat.desc"),children:[a.bound?n(Xe,{label:e("wechat.status"),desc:e(a.eligible?"wechat.where":"wechat.notEligible"),children:[n("span",{class:"fx-value",children:a.boundAt?e("wechat.boundAt",{date:Lt(a.boundAt,t)}):e("wechat.bound")}),n(Qt,{label:e("wechat.unbind"),confirmLabel:e("wechat.unbindConfirm"),variant:"danger",pending:r.pending,onConfirm:m})]}):a.eligible?a.code?n(M,{children:[n(Xe,{label:e("wechat.code"),desc:e("wechat.send",{contact:g}),children:[n("code",{class:"fx-code",children:a.code.code}),n(Vt,{text:a.code.code,label:e("wechat.copy"),iconOnly:!0}),n(V,{pending:r.pending,onClick:f,children:e("wechat.newCode")})]}),n(Pe,{class:"fx-sub--tight",children:n("p",{class:"fx-muted",role:"status",children:e("wechat.waiting",{time:Et(a.code.expiresAt,t)})})})]}):n(Xe,{label:e("wechat.code"),desc:g,children:n(V,{variant:"primary",pending:r.pending,onClick:f,children:e("wechat.getCode")})}):n(Xe,{label:e("wechat.status"),children:n("span",{class:"fx-value is-empty",children:e("wechat.notEligible")})}),r.error&&n(Pe,{class:"fx-sub--tight",children:n(ke,{a:r})})]})}function Kd(){let{t:e}=se(),t=dt(()=>q("/auth/me"));if(t.state==="loading")return n(nt,{panels:2});if(t.state==="signedOut")return n(mt,{});if(t.state==="error")return n(yt,{error:t.error,onRetry:t.retry});let o=t.data;return n(M,{children:[n(Ne,{icon:"user",title:e("account.details.title"),desc:e("account.details.desc"),children:[n(Xe,{label:e("account.details.username"),children:[n("span",{class:"fx-value",children:o.username}),o.role==="ADMIN"&&n("span",{class:"fx-tag",children:e("account.role.admin")})]}),n(Gd,{}),n(Xd,{kind:"phone",value:o.phone}),n(Xd,{kind:"email",value:o.email})]}),n(Jd,{}),n(tv,{}),n(ov,{})]})}function Xd(e){let{t,goTo:o}=se(),r=!!e.value,a=r?e.kind==="phone"?pa(e.value):fa(e.value):t("account.contact.unbound"),i=e.kind==="phone"?t("account.contact.phone"):t("account.contact.email");return n(Xe,{label:i,children:o?n("button",{type:"button",class:`fx-link-row${r?"":" is-empty"}`,onClick:()=>o("security"),title:t("account.contact.manage"),children:[n("span",{children:a}),n(U,{name:"chevron",size:12})]}):n("span",{class:`fx-value${r?"":" is-empty"}`,children:a})})}function tv(){let{t:e}=se(),t=$e(),[o,r]=C(null),[a,i]=C(!1),[s,l]=C(null),[c,d]=C(null),p=ve(),u=ve(),f=ve(),m=!zn(ee()),g=m&&!!ee().authAccounts;W(()=>{let w=0,S=()=>{let B=ee().authAccounts;if(!g||!B)return;let N=++w;i(!1),B().then(j=>{N===w&&r(Array.isArray(j)?j:[])}).catch(()=>{N===w&&i(!0)})};S();let T=ee().onAuthChanged?.(S),F=ee().onAuthDevice?.(B=>d(B));return()=>{w++,T?.(),F?.()}},[]);let h=w=>{l(w),p.run(async()=>{let S=ee().forsionSwitchAccount;if(!S)return{error:{key:"err.unavailable"}};try{await S(w)}catch(T){let F=br(kt(T));return F?{error:F}:void 0}finally{t.current&&l(null)}})},v=()=>void u.run(async()=>{let w=ee().forsionLogin;if(!w)return{error:{key:"err.unavailable"}};d(null);try{await w()}catch(S){t.current&&d(null);let T=br(kt(S));return T?{error:T}:void 0}}),b=()=>void f.run(async()=>{let w=ee().forsionLogout;if(!w)return{error:{key:"err.unavailable"}};try{await w()}catch(S){return{error:{raw:kt(S)||e("err.generic")}}}}),x=p.pending||u.pending||f.pending;return n(Ne,{icon:m?"laptop":"user",title:e(m?"local.title":"session.title"),desc:e(m?"local.desc":"session.desc"),children:[g&&o===null&&!a&&n(At,{children:[n(Zt,{})," ",e("common.loading")]}),a&&n("div",{class:"fx-sub",children:n(de,{tone:"warn",children:e("local.loadFailed")})}),o&&o.length===0&&n(At,{children:e("local.empty")}),o&&o.length>0&&n("div",{class:"fx-list fx-block",role:"list",children:o.map(w=>n("div",{class:"fx-list-row",role:"listitem",children:[n("span",{class:"fx-list-icon",children:n(U,{name:"user",size:14})}),n("span",{class:"fx-list-main",children:[n("strong",{children:w.nickname||w.username||"Forsion"}),n("small",{children:[w.username&&w.nickname?w.username:null,nv(w.cloudUrl)].filter(Boolean).join(" \xB7 ")})]}),w.active?n("span",{class:"fx-tag fx-tag--accent",children:[n(U,{name:"check",size:11})," ",e("local.current")]}):n(V,{pending:s===w.id,disabled:x&&s!==w.id,onClick:()=>h(w.id),children:e("local.switch")})]},w.id))}),u.pending&&c&&n("div",{class:"fx-sub",children:n(Yi,{device:c})}),n("div",{class:"settings-panel-footer fx-footer",children:[n(V,{pending:u.pending,disabled:x&&!u.pending,onClick:v,children:[n(U,{name:"plus",size:12})," ",u.pending?e("signin.pending"):e("local.add")]}),n(V,{pending:f.pending,disabled:x&&!f.pending,onClick:b,children:[n(U,{name:"logout",size:12})," ",e("local.signOut")]})]}),(p.error||u.error||f.error)&&n("div",{class:"fx-sub fx-sub--tight",children:[n(ke,{a:p}),n(ke,{a:u}),n(ke,{a:f})]})]})}function nv(e){try{return new URL(e).host}catch{return e}}function ov(){let{t:e}=se(),t=ve();return n("div",{class:"fx-page-foot",children:[n("button",{type:"button",class:"fx-link",disabled:t.pending,onClick:()=>void t.run(async()=>await mo()?void 0:{error:{key:"err.openFailed"}}),children:[e("account.web.open")," ",n(U,{name:"external",size:12})]}),n("span",{class:"fx-muted",children:e("account.web.desc")}),n(ke,{a:t})]})}var rv=e=>!!e&&typeof e=="object"&&typeof e.enabled=="boolean";async function xa(e,t,o=rv){let r=ee().cloudInvoke;if(!r)throw new Error("no_bridge");let a=await r(e,t);if(!o(a))throw new Error(String(a?.error??"unavailable"));return a}var av="https://forsion.net/legal/privacy";function Yd(){let{t:e,locale:t}=se(),o=$e(),[r,a]=C(null),[i,s]=C(!1),[l,c]=C(null),d=ve(),p=ve(),u=ve();if(W(()=>{let b=0,x=()=>{let S=++b;xa("telemetry:get").then(T=>{o.current&&S===b&&(a(T),s(!0))},()=>{o.current&&S===b&&s(!0)})};x();let w=ee().onAuthChanged?.(()=>x());return()=>{b++,w?.()}},[]),!i)return n(nt,{panels:1});if(!r)return n(At,{children:e("privacy.unavailable")});let{signedIn:f}=r,m=r.enabled&&r.noticeSeen&&f,g=b=>void d.run(async()=>{try{let x=await xa("telemetry:set",b?{enabled:!0,noticeSeen:!0}:{enabled:!1});o.current&&(a(x),b||c(null))}catch(x){return{error:{raw:kt(x)||e("err.generic")}}}}),h=()=>void p.run(async()=>{try{let b=await xa("telemetry:sent",void 0,x=>Array.isArray(x?.batches));o.current&&c(b.batches)}catch(b){return{error:{raw:kt(b)||e("err.generic")}}}}),v=()=>void u.run(async()=>{try{let b=await xa("telemetry:delete");return o.current&&(a(b),c(null)),{success:{key:"privacy.delete.done"}}}catch(b){return{error:{key:"privacy.delete.failed",vars:{reason:kt(b)||e("err.generic")}}}}});return n(Ne,{icon:"shield",title:e("privacy.improve.title"),desc:e("privacy.improve.desc"),children:[n(Xe,{label:e("privacy.improve.switch"),desc:e("privacy.improve.switchHint"),children:n(rn,{checked:m,disabled:d.pending||!r.available||!f,label:e("privacy.improve.switch"),onChange:g})}),(!r.available||!f||!r.packaged||d.error)&&n(Pe,{children:[r.available?f?!r.packaged&&n(de,{children:e("privacy.devBuild")}):n(de,{children:e("privacy.signInFirst")}):n(de,{children:e("privacy.needUpdate")}),n(ke,{a:d})]}),n("div",{class:"settings-control-row fx-row fx-block",children:n("button",{type:"button",class:"fx-link",onClick:()=>{try{ee().openExternal?.(av)?.catch(()=>{})}catch{}},children:[e("privacy.policyLink"),n(U,{name:"chevron",size:12})]})}),n(Xe,{label:e("privacy.sent.title"),desc:r.lastSentAt?e("privacy.sent.last",{time:Et(r.lastSentAt,t)}):e("privacy.sent.hint"),children:n(V,{pending:p.pending,onClick:h,children:[n(U,{name:"eye",size:12})," ",e("privacy.sent.view")]})}),(l||p.error)&&n(Pe,{children:[n(ke,{a:p}),l&&(l.length?n("pre",{class:"fx-sent",children:JSON.stringify(l.map(b=>({at:new Date(b.at).toISOString(),...b.body})),null,2)}):n(de,{children:e("privacy.sent.empty")}))]}),n(Xe,{label:e("privacy.delete.title"),desc:e("privacy.delete.hint"),children:n(Qt,{label:e("privacy.delete.button"),confirmLabel:e("privacy.delete.confirm"),variant:"danger",pending:u.pending,onConfirm:v})}),(u.error||u.success)&&n(Pe,{children:n(ke,{a:u})}),n(Pe,{class:"fx-sub--tight",children:n("span",{class:"fx-muted",children:e("privacy.installId",{id:`${r.installId.slice(0,6)}\u2026${r.installId.slice(-4)}`})})})]})}var vo=class extends Error{};async function Zd(e,t=256){if(e.size>20971520)throw new vo;let o=URL.createObjectURL(e);try{let r=new Image;await new Promise((p,u)=>{r.onload=()=>p(),r.onerror=()=>u(new Error("image decode failed")),r.src=o});let a=r.naturalWidth,i=r.naturalHeight;if(!a||!i)throw new Error("empty image");if(a*i>5e7)throw new vo;let s=Math.min(1,t/Math.max(a,i)),l=document.createElement("canvas");l.width=Math.max(1,Math.round(a*s)),l.height=Math.max(1,Math.round(i*s));let c=l.getContext("2d");if(!c)throw new Error("canvas unavailable");c.fillStyle="#fff",c.fillRect(0,0,l.width,l.height),c.drawImage(r,0,0,l.width,l.height);let d=l.toDataURL("image/jpeg",.85);if(d.length>262144)throw new vo;return d}finally{URL.revokeObjectURL(o)}}function ka(e){let t=String(e||"").trim();if(!t)return"?";let o=Array.from(t)[0];return/[㐀-鿿]/.test(o)?o:Array.from(t).slice(0,2).join("").toUpperCase()}var Qd=["cream","coral","teal","lavender"],eu=["auto","light","dark"],tu=["none","mist","contour","dots"],nu=["none","ring","pro"],ou=["early","streak","author","inviter","event"];var os=e=>!!e&&e.toLowerCase()!=="free";function rs(e,t){let o={...e.settings,...t};return{...e,settings:o,bio:o.bio,links:o.links,skin:o.skin,mode:o.mode,cover:o.cover,frame:o.frame==="pro"&&!os(e.tier)?"none":o.frame,modules:o.modules.filter(r=>r.show).map(r=>({id:r.id}))}}function as(e,t,o){let r=e.findIndex(s=>s.id===t),a=r+o;if(r<0||a<0||a>=e.length)return e;let i=e.slice();return[i[r],i[a]]=[i[a],i[r]],i}function ru(e){let t=e.trim();if(!t)return null;let o=/^[a-z][a-z0-9+.-]*:/i.test(t)?t:`https://${t}`,r;try{r=new URL(o)}catch{return null}if(r.protocol!=="http:"&&r.protocol!=="https:"||!r.hostname.includes("."))return null;let a=r.toString();return a.length<=200?a:null}function is(e){return e.replace(/^https?:\/\//i,"").replace(/^www\./i,"").replace(/\/$/,"")}function au(e,t){let o=t==="zh"?[[1e8,"\u4EBF"],[1e4,"\u4E07"]]:[[1e9,"B"],[1e6,"M"],[1e3,"K"]];for(let[r,a]of o)if(e>=r){let i=e/r;return{value:i>=100?String(Math.round(i)):String(Math.round(i*10)/10),unit:a}}return{value:Math.round(e).toLocaleString("en-US"),unit:""}}var iu=e=>e==="zh"?"zh-CN":"en-US";function su(e,t){let[o,r]=e.split("-").map(Number);if(!o||!r)return[];let a=new Intl.DateTimeFormat(iu(t),{month:"short",timeZone:"UTC"});return Array.from({length:12},(i,s)=>a.format(new Date(Date.UTC(o,r-12+s,1))))}function lu(e,t){let[o,r]=e.split("-").map(Number);return!o||!r?"":new Intl.DateTimeFormat(iu(t),{year:"numeric",month:"short",timeZone:"UTC"}).format(new Date(Date.UTC(o,r-1,1)))}function cu([e,t]){let o=r=>`${String((r%24+24)%24).padStart(2,"0")}:00`;return`${o(e)} \u2013 ${o(t)}`}function du(e){let t=0,o=Promise.resolve(),r=async a=>{if(a===t)try{let i=await e.read();a===t&&e.apply(i)}catch(i){if(a===t)throw i}};return{read(){let a=t;return o.then(()=>r(a))},write(a){let i=++t,s=o.then(a).then(l=>{i===t&&e.apply(l)});return o=s.catch(()=>i===t?r(i).catch(()=>{}):void 0),s}}}var iv={free:{from:"#E5E7EB",to:"#D1D5DB",text:"#374151"},plus:{from:"#E6E2AC",to:"#C6C88A",text:"#3D4317"},pro:{from:"#F4DEC4",to:"#E0BD9C",text:"#552F14"},max:{from:"#D0E1C9",to:"#9CBD9F",text:"#1F4130"},ultra:{from:"#EBDDF1",to:"#C7D5F3",text:"#36336A"}},sv={from:"#6B7280",to:"#4B5563",text:"#FFFFFF"},lv=/^#[0-9a-fA-F]{6}$/,pu=e=>!!e&&[e.from,e.to,e.text].every(t=>typeof t=="string"&&lv.test(t)),uu=e=>typeof e=="string"&&e.trim()?e.trim():void 0;function wa(e){let t={},o={},r={};if(!Array.isArray(e))return t;for(let a of e){let i=typeof a?.tier=="string"?a.tier.toLowerCase():"";i&&(r[i]=(r[i]||0)+1);let s=Number(a?.priceMonthly)||0;!i||!pu(a.badge)||i in o&&o[i]<=s||(t[i]={from:a.badge.from,to:a.badge.to,text:a.badge.text,name:uu(a.name),nameEn:uu(a.nameEn)},o[i]=s)}for(let a of Object.keys(t))r[a]>1&&(t[a]={from:t[a].from,to:t[a].to,text:t[a].text});return t}function fu(e,t){if(!t||!Array.isArray(e))return null;let o=e.find(r=>r?.id===t);return o&&pu(o.badge)?{from:o.badge.from,to:o.badge.to,text:o.badge.text}:null}var yo=(e,t)=>e?.[t]??iv[t]??sv,mu=(e,t,o)=>t==="en"&&e.nameEn||e.name||o,za=e=>({background:`linear-gradient(135deg, ${e.from}, ${e.to})`,color:e.text,borderColor:"transparent"});var bu={skill:{key:"profile.work.skill",icon:"sparkles"},agent:{key:"profile.work.agent",icon:"bot"},plugin:{key:"profile.work.plugin",icon:"box"},space:{key:"profile.work.space",icon:"grid"},theme:{key:"profile.work.theme",icon:"palette"},"amadeus-plugin":{key:"profile.work.note",icon:"note"},webapp:{key:"profile.work.webapp",icon:"globe"}},hu={early:"sprout",streak:"flame",author:"box",inviter:"gift",event:"trophy"},ls=e=>!!e&&/^https?:\/\//i.test(e);function cs(e){if(!ls(e))return;let t=ee().openExternal;t?t(e).catch(()=>{}):window.open(e,"_blank","noopener")}async function uv(e,t,o){let r=await q(e,{method:t,body:o});if(!r.ok)throw r;if(!r.data?.profile)throw{ok:!1,status:r.status,code:null,detail:null,transport:"bad_response"};return r.data.profile}var vu=e=>e&&typeof e=="object"&&e.ok===!1?zt(e):{raw:String(e?.message||e)};function yu(){let{t:e}=se(),t=dt(async()=>{let[r,a,i]=await Promise.all([q("/profile/me"),q("/auth/me"),q("/membership/plans")]);return a.ok?r.ok?r.data?.profile?{ok:!0,status:r.status,data:{profile:r.data.profile,me:a.data,badges:i.ok?wa(i.data):{}}}:{ok:!0,status:404,data:null}:r.status===404?{ok:!0,status:404,data:null}:r:a});if(t.state==="loading")return n(nt,{panels:2,rows:3});if(t.state==="signedOut")return n(mt,{});if(t.state==="error")return n(yt,{error:t.error,onRetry:t.retry});if(!t.data)return n(Ne,{icon:"user",title:e("page.profile"),children:n(At,{children:e("profile.unsupported")})});let{update:o}=t;return n(pv,{data:t.data,update:r=>o(a=>a&&r(a))})}function pv(e){let{t}=se(),o=$e(),{profile:r,me:a}=e.data,[i,s]=C(null),[l,c]=C(null),[d,p]=C(!1),u=ve(),f=oe(e.update);f.current=e.update;let m=(P,K,z)=>o.current?uv(P,K,z):Promise.reject(new Error("unmounted")),g=Yt(()=>du({apply:P=>f.current(K=>({...K,profile:P})),read:()=>m("/profile/me")}),[]),h=r.handle||a.username||r.username,v={...r,username:h,nickname:a.nickname||null},b=r.settings.isPublic,{profileUrl:x}=r,w=x&&ya(x)?x:null,S=P=>{o.current&&c({tone:"error",m:vu(P)})},T=()=>{u.run(async()=>{c(null);try{await g.read()}catch(P){S(P)}})},F=P=>{c(null),e.update(K=>({...K,profile:rs(K.profile,P)})),g.write(()=>m("/profile/me","PUT",P)).catch(S)},B=async P=>{e.update(K=>({...K,profile:rs(K.profile,{modules:K.profile.settings.modules.map(z=>({...z,public:P.find(A=>A.id===z.id)?.public??z.public}))})})),await g.write(()=>m("/profile/me/visibility","POST",{public:!0,modules:P})),o.current&&(s(null),c({tone:"ok",m:{key:"profile.nowPublic"}}))},N=async()=>{p(!0),c(null);try{await g.write(()=>m("/profile/me/visibility","POST",{public:!1})),o.current&&c({tone:"ok",m:{key:"profile.nowPrivate"}})}catch(P){S(P)}finally{o.current&&p(!1)}},j=oe(Promise.resolve()),_=(P,K)=>{let z=j.current.then(async()=>{if(!o.current)return;let A=await q("/settings",{method:"PUT",body:P});if(o.current){if(!A.ok)return c({tone:"error",m:zt(A)});f.current(R=>({...R,me:{...R.me,...P}})),c({tone:"ok",m:{key:K}})}});return j.current=z,z},L=async P=>{c(null);let K;try{K=await Zd(P)}catch(z){return c({tone:"error",m:{key:z instanceof vo?"err.avatarTooLarge":"err.avatarInvalid"}})}await _({avatar:K},"account.avatar.saved")},$=P=>{c(null),s(K=>K===P?null:P)};return n("div",{class:"fx-pf-page",children:[n(Ne,{icon:b?"globe":"lock",title:t(b?"profile.state.public":"profile.state.private"),desc:b?n("span",{class:"fx-pf-share",children:w?n(M,{children:[n("a",{class:"fx-pf-share-link",href:w,target:"_blank",rel:"noopener noreferrer",title:t("profile.openPublic"),onClick:P=>{P.preventDefault(),cs(w)},children:[Ho(w)," ",n(U,{name:"external",size:12})]}),n(Vt,{text:w,label:t("profile.copyLink"),iconOnly:!0},w)]}):n(M,{children:[n("span",{children:t("profile.linkUnavailable")}),n(V,{pending:u.pending,disabled:d,onClick:T,children:t("common.retry")})]})}):t("profile.state.privateDesc"),actions:n(M,{children:[n(V,{onClick:()=>$("deco"),children:[n(U,{name:"palette",size:12})," ",t("profile.decorate")]}),b?n(V,{pending:d,onClick:()=>void N(),children:[n(U,{name:"lock",size:12})," ",t("profile.makePrivate")]}):n(V,{variant:"primary",onClick:()=>$("publish"),children:[n(U,{name:"globe",size:12})," ",t("profile.publish")]})]}),children:[i==="publish"&&!b&&n(fv,{profile:r,url:w,submit:B,onClose:()=>s(null)}),l&&n(Pe,{class:"fx-sub--tight",children:n("div",{class:`fx-msg ${l.tone==="ok"?"is-ok":"is-error"}`,role:l.tone==="ok"?"status":"alert",children:wt(l.m,t)})})]}),n("div",{class:"fx-pf-home","data-deco":i==="deco"?"":void 0,children:[n("div",{class:"fx-pf-root",children:n(bv,{view:v,badges:e.data.badges,avatar:a.avatar||null,pinned:r.settings.pinned,owner:{onAvatar:P=>void L(P),onNickname:P=>{c(null),_({nickname:P},"account.nickname.saved")},onBio:P=>F({bio:P}),onLinks:P=>F({links:P}),onPinned:P=>F({pinned:P}),onInvalidLink:()=>c({tone:"error",m:{key:"profile.linkInvalid"}})}})}),i==="deco"&&n(mv,{profile:r,onChange:F,onClose:()=>s(null)})]})]})}function fv(e){let{t}=se(),o=$e(),{profile:r}=e,[a,i]=C({}),s=r.settings.modules.filter(m=>m.show).map(m=>({...m,public:a[m.id]??m.public})),[l,c]=C(!1),[d,p]=C(null),u=r.canPublish?null:r.publishBlockedReason||"publish_blocked";if(u)return n(Pe,{children:[n(de,{children:t(u==="machine_username"?"profile.blocked.machineUsername":"profile.blocked.publishBlocked")}),n("div",{class:"fx-inline fx-pf-foot",children:[u==="machine_username"&&n(V,{variant:"primary",onClick:()=>void mo("profile"),children:[t("profile.goRename")," ",n(U,{name:"external",size:12})]}),n(V,{onClick:e.onClose,children:t("common.cancel")})]})]});let f=async()=>{c(!0),p(null);try{await e.submit(s.map(({id:m,public:g})=>({id:m,public:g})))}catch(m){if(!o.current)return;p(vu(m)),c(!1)}};return n(Pe,{children:[e.url&&n("div",{class:"fx-pf-url",children:[n(U,{name:"globe",size:14}),n("span",{children:e.url.replace(/^https?:\/\//i,"")})]}),n(de,{children:t("profile.publishDesc")}),n("div",{class:"fx-pf-checks",children:s.map(m=>n("div",{class:"fx-pf-check",children:[n("div",{children:[t(`profile.mod.${m.id}`),n("small",{children:t(`profile.modDesc.${m.id}`)})]}),n(rn,{checked:m.public,disabled:l,label:`${t(`profile.mod.${m.id}`)} \xB7 ${t("profile.col.public")}`,onChange:g=>i(h=>({...h,[m.id]:g}))})]},m.id))}),n(de,{children:t("profile.publishNever")}),d&&n("div",{class:"fx-msg is-error",role:"alert",children:wt(d,t)}),n("div",{class:"fx-inline fx-pf-foot",children:[n(V,{variant:"primary",pending:l,onClick:()=>void f(),children:t("profile.publishConfirm")}),n(V,{disabled:l,onClick:e.onClose,children:t("common.cancel")})]})]})}function mv(e){let{t}=se(),o=e.profile.settings,r=os(e.profile.tier),a=(s,l)=>e.onChange({modules:o.modules.map(c=>c.id===s?{...c,...l}:c)}),i=s=>n("span",{class:"fx-pf-thumb",children:s});return n("aside",{class:"fx-pf-deco","aria-label":t("profile.decorate"),children:n(Ne,{icon:"palette",title:t("profile.decorate"),actions:n(V,{onClick:e.onClose,children:t("common.done")}),children:n("div",{class:"fx-pf-deco-body",children:[n("h4",{children:t("profile.deco.cover")}),n("div",{class:"fx-pf-opts",children:tu.map(s=>n("button",{type:"button",class:"fx-pf-opt","aria-pressed":o.cover===s,onClick:()=>e.onChange({cover:s}),children:[i(n("span",{class:`fx-pf-cv-thumb fx-pf-cv-${s}`})),t(`profile.cover.${s}`)]},s))}),n("h4",{children:t("profile.deco.frame")}),n("div",{class:"fx-pf-opts",children:nu.map(s=>n("button",{type:"button",class:"fx-pf-opt","aria-pressed":o.frame===s,disabled:s==="pro"&&!r,title:s==="pro"&&!r?t("profile.frameProHint"):void 0,onClick:()=>e.onChange({frame:s}),children:[i(n("span",{class:`fx-pf-fr-demo fx-pf-fr-${s}`,children:n("span",{class:"fx-pf-av"})})),t(`profile.frame.${s}`)]},s))}),!r&&n(de,{children:t("profile.frameProHint")}),n("h4",{children:t("profile.deco.modules")}),n("div",{class:"fx-pf-mod-head","aria-hidden":"true",children:[n("span",{children:t("profile.col.show")}),n("span",{children:t("profile.col.public")})]}),o.modules.map((s,l)=>n("div",{class:"fx-pf-mod",children:[n("span",{children:t(`profile.mod.${s.id}`)}),n("button",{type:"button",class:"fx-icon-btn",disabled:l===0,title:t("profile.moveUp"),"aria-label":`${t(`profile.mod.${s.id}`)} \xB7 ${t("profile.moveUp")}`,onClick:()=>e.onChange({modules:as(o.modules,s.id,-1)}),children:n(U,{name:"up",size:13})}),n("button",{type:"button",class:"fx-icon-btn",disabled:l===o.modules.length-1,title:t("profile.moveDown"),"aria-label":`${t(`profile.mod.${s.id}`)} \xB7 ${t("profile.moveDown")}`,onClick:()=>e.onChange({modules:as(o.modules,s.id,1)}),children:n(U,{name:"down",size:13})}),n(rn,{checked:s.show,label:`${t(`profile.mod.${s.id}`)} \xB7 ${t("profile.col.show")}`,onChange:c=>a(s.id,{show:c})}),n(rn,{checked:s.show&&s.public,disabled:!s.show,label:`${t(`profile.mod.${s.id}`)} \xB7 ${t("profile.col.public")}`,onChange:c=>a(s.id,{public:c})})]},s.id)),n(de,{children:t("profile.modulesHint")}),n("h4",{children:t("profile.deco.skin")}),n("div",{class:"fx-pf-opts",children:Qd.map(s=>n("button",{type:"button",class:"fx-pf-opt","aria-pressed":o.skin===s,onClick:()=>e.onChange({skin:s}),children:[i(n("span",{class:"fx-pf-swatch","data-skin":s})),t(`profile.skin.${s}`)]},s))}),n("h4",{children:t("profile.deco.mode")}),n(Dt,{value:o.mode,label:t("profile.deco.mode"),onChange:s=>e.onChange({mode:s}),options:eu.map(s=>({value:s,label:t(`profile.mode.${s}`)}))}),n(de,{children:t("profile.deco.publicHint")})]})})})}function ss(e){let[t,o]=C(null),r=oe(!1),a=oe(null),i=t!==null;Zn(()=>{i&&a.current?.focus()},[i]);let s=e.class?` ${e.class}`:"";if(t===null)return n("button",{type:"button",class:`fx-pf-ed${s}${e.value?"":" is-empty"}`,title:e.label,"aria-label":e.label,onClick:()=>{r.current=!1,o(e.value)},children:[n("span",{children:e.value||e.placeholder}),n(U,{name:e.value?"pencil":"plus",size:12})]});let l=()=>{let c=t.trim();o(null),!r.current&&c!==e.value&&e.onSave(c)};return n("span",{class:`fx-pf-ed-on${s}`,children:[n("input",{ref:a,class:"fx-input",type:"text",value:t,maxLength:e.maxLength,placeholder:e.placeholder,"aria-label":e.label,onInput:c=>o(c.currentTarget.value),onBlur:l,onKeyDown:c=>{c.isComposing||(c.key==="Enter"?c.currentTarget.blur():c.key==="Escape"&&(c.preventDefault(),r.current=!0,c.currentTarget.blur()))}}),e.counter&&n("small",{children:[Array.from(t).length,"/",e.maxLength]})]})}function Sa(e){return n("section",{class:"fx-pf-sec",style:{order:e.order},children:[n("div",{class:"fx-pf-sec-h",children:[n("h3",{children:e.title}),e.action]}),e.children]})}function gv(e){let{t}=se(),{work:o}=e,r=bu[o.type],a=n(M,{children:[n("div",{class:"fx-pf-work-top",children:[n("span",{class:"fx-pf-work-ico",children:n(U,{name:r?.icon??"box",size:17})}),n("div",{children:[n("div",{class:"fx-pf-work-name",children:o.name}),n("div",{class:"fx-pf-work-type",children:r?t(r.key):o.type})]})]}),n("p",{children:o.summary}),(o.countKind!=="visits"||o.count>0)&&n("div",{class:"fx-pf-work-foot",children:[n(U,{name:o.countKind==="visits"?"eye":"download",size:12}),t(o.countKind==="visits"?"profile.workVisits":"profile.workInstalls",{n:o.count.toLocaleString("en-US")})]})]}),i=o.url;return ls(i)?n("a",{class:"fx-pf-work",href:i,onClick:s=>{s.preventDefault(),cs(i)},children:a}):n("article",{class:"fx-pf-work",children:a})}function hv(e){let{t}=se(),o=$e(),[r,a]=C(null),[i,s]=C(()=>e.pinned.map(p=>`${p.kind}:${p.id}`));W(()=>{q("/profile/me/works").then(p=>{o.current&&a(p.ok?p.data?.works??[]:"failed")})},[]);let l=p=>`${p.kind}:${p.id}`,c=p=>s(u=>u.includes(p)?u.filter(f=>f!==p):[...u,p]);if(r===null)return n("div",{class:"fx-pf-card fx-pf-empty",children:[n(Zt,{})," ",t("common.loading")]});if(r==="failed"||r.length===0)return n("div",{class:"fx-pf-card fx-pf-empty",children:[n("p",{children:t(r==="failed"?"common.loadFailed":"profile.worksNone")}),n("div",{class:"fx-inline fx-pf-foot",children:[r!=="failed"&&n(V,{variant:"primary",onClick:()=>void mo("submission"),children:[t("profile.goSubmit")," ",n(U,{name:"external",size:12})]}),n(V,{onClick:e.onClose,children:t("common.cancel")})]})]});let d=()=>{let p=new Map(r.map(u=>[l(u),u]));e.onSave(i.flatMap(u=>{let f=p.get(u);return f?[{kind:f.kind,id:f.id}]:[]})),e.onClose()};return n("div",{class:"fx-pf-card fx-pf-picker",children:[r.map(p=>{let u=l(p),f=i.includes(u),m=bu[p.type];return n("button",{type:"button",class:"fx-pf-pick","aria-pressed":f,disabled:!f&&i.length>=6,onClick:()=>c(u),children:[n("div",{children:[p.name,n("small",{children:[m?t(m.key):p.type," \xB7 ",p.summary]})]}),f&&n(U,{name:"check",size:15})]},u)}),n("div",{class:"fx-inline fx-pf-foot",children:[n("span",{class:"fx-grow",children:i.length?t("profile.worksPicked",{n:i.length,max:6}):t("profile.worksAuto")}),n(V,{variant:"primary",onClick:d,children:t("common.done")}),n(V,{onClick:e.onClose,children:t("common.cancel")})]})]})}function bv(e){let{t,locale:o}=se(),{view:r,owner:a}=e,i=oe(null),[s,l]=C(!1),c=r.nickname||r.username,d=(r.tier||"free").trim().toLowerCase()||"free",p=d==="free"?null:yo(e.badges,d),u=r.modules.map(A=>A.id),f=A=>u.indexOf(A),m=A=>f(A)>=0,g=r.stats,h=g?au(g.totalTokens,o):null,v=t("profile.unit.days"),b=g&&h?[[h.value,h.unit,t("profile.stat.tokens")],[String(g.activeDays),v,t("profile.stat.activeDays")],[String(g.longestStreak),v,t("profile.stat.longest")],[String(g.currentStreak),v,t("profile.stat.current")],[g.installs.toLocaleString("en-US"),"",t("profile.stat.installs")]]:[],x=g&&m("stats")&&n("div",{class:"fx-pf-stats",style:{order:f("stats")},children:b.map(([A,R,X])=>n("div",{class:"fx-pf-stat",children:[n("b",{children:[A,R&&n("small",{children:R})]}),n("span",{children:X})]},X))},"stats"),w=u[0]==="stats",S=r.works||[],T=m("works")&&n(Sa,{order:f("works"),title:t("profile.works"),action:!s&&n("button",{type:"button",class:"fx-link",onClick:()=>l(!0),children:t("profile.worksPick")}),children:s?n(hv,{pinned:e.pinned,onSave:a.onPinned,onClose:()=>l(!1)}):S.length?n("div",{class:"fx-pf-works",children:S.map(A=>n(gv,{work:A},`${A.kind}:${A.id}`))}):n("div",{class:"fx-pf-card fx-pf-empty",children:t("profile.worksEmpty")})},"works"),F=r.activity,B=m("activity")&&F&&n(Sa,{order:f("activity"),title:t("profile.activity"),children:n("div",{class:"fx-pf-card",children:[n("div",{class:"fx-pf-hm",role:"img","aria-label":t("profile.activityDays",{n:F.activeDays}),children:F.levels.map((A,R)=>n("i",{class:A?`l${A}`:void 0},R))}),n("div",{class:"fx-pf-hm-months","aria-hidden":"true",children:su(F.end,o).map((A,R)=>n("span",{children:A},R))}),n("div",{class:"fx-pf-hm-foot",children:[n("span",{children:t("profile.activityDays",{n:F.activeDays})}),n("span",{class:"fx-pf-hm-legend","aria-hidden":"true",children:[t("profile.less"),n("i",{}),n("i",{class:"l1"}),n("i",{class:"l2"}),n("i",{class:"l3"}),n("i",{class:"l4"}),t("profile.more")]})]})]})},"activity"),N=(r.badges||[]).filter(A=>ou.includes(A.id)),j=m("badges")&&n(Sa,{order:f("badges"),title:t("profile.badges"),children:N.length?n("div",{class:"fx-pf-card fx-pf-rows",children:N.map(A=>n("div",{class:"fx-pf-brow",children:[n("span",{class:"fx-pf-badge",children:n(U,{name:hu[A.id],size:14})}),n("div",{children:[n("b",{children:t(`profile.badge.${A.id}`)}),n("span",{children:t(`profile.badgeSub.${A.id}`,{value:A.value??""})})]})]},A.id))}):n("div",{class:"fx-pf-card fx-pf-empty",children:t("profile.badgesEmpty")})},"badges"),_=r.insights,L=[];_?.topModel&&L.push([t("profile.insightModel"),_.topModel]),_?.activeHours&&L.push([t("profile.insightHours"),cu(_.activeHours)]);let $=m("insights")&&n(Sa,{order:f("insights"),title:t("profile.insights"),children:L.length?n("div",{class:"fx-pf-card fx-pf-rows",children:L.map(([A,R])=>n("div",{class:"fx-pf-row",children:[n("span",{children:A}),n("b",{children:R})]},A))}):n("div",{class:"fx-pf-card fx-pf-empty",children:t("profile.insightsEmpty")})},"insights"),P=[!w&&x,T,B].filter(Boolean),K=[j,$].filter(Boolean),z=A=>{if(!A)return;let R=ru(A);if(!R)return a.onInvalidLink();r.links.includes(R)||a.onLinks([...r.links,R])};return n("div",{class:"fx-pf","data-cover":r.cover,"data-frame":r.frame,children:[n("div",{class:"fx-pf-cover"}),n("div",{class:"fx-pf-id",children:[n("button",{type:"button",class:"fx-pf-avatar",title:t("account.avatar.change"),"aria-label":t("account.avatar.change"),onClick:()=>i.current?.click(),children:[n("span",{class:"fx-pf-av",children:e.avatar?n("img",{src:e.avatar,alt:""}):n("span",{class:"fx-pf-av-fallback",children:ka(c)})}),n("span",{class:"fx-pf-av-mask",children:n(U,{name:"pencil",size:18})})]}),n("input",{ref:i,type:"file",accept:"image/png,image/jpeg,image/webp,image/gif,image/avif",hidden:!0,onChange:A=>{let R=A.currentTarget,X=R.files?.[0];R.value="",X&&a.onAvatar(X)}}),n("div",{class:"fx-pf-id-text",children:[n("div",{class:"fx-pf-name",children:[n(ss,{value:c,placeholder:r.username,maxLength:40,label:t("account.nickname.edit"),onSave:A=>{A&&a.onNickname(A)}}),p&&n("span",{class:"fx-tag fx-pf-tier","data-tier":d,style:za(p),children:mu(p,o,ho(d))})]}),n("div",{class:"fx-pf-handle",children:["@",r.username]})]}),N.length>0&&m("badges")&&n("div",{class:"fx-pf-badges",children:N.map(A=>n("span",{class:"fx-pf-badge",title:t(`profile.badge.${A.id}`),children:n(U,{name:hu[A.id],size:14})},A.id))})]}),n("div",{class:"fx-pf-sub",children:[n(ss,{class:"fx-pf-bio",value:r.bio,placeholder:t("profile.bioPlaceholder"),maxLength:80,label:t("profile.bio"),counter:!0,onSave:a.onBio}),n("div",{class:"fx-pf-meta",children:[r.joinedMonth&&n("span",{children:[n(U,{name:"calendar",size:13}),t("profile.joined",{date:lu(r.joinedMonth,o)})]}),r.links.map(A=>n("span",{children:[n(U,{name:"link",size:13}),ls(A)?n("a",{href:A,onClick:R=>{R.preventDefault(),cs(A)},children:is(A)}):n("span",{children:is(A)}),n("button",{type:"button",class:"fx-pf-x",title:t("profile.linkRemove"),"aria-label":t("profile.linkRemove"),onClick:()=>a.onLinks(r.links.filter(R=>R!==A)),children:n(U,{name:"x",size:11})})]},A)),r.links.length<2&&n(ss,{value:"",placeholder:t("profile.linkAdd"),maxLength:200,label:t("profile.linkAdd"),onSave:z},r.links.length)]})]}),w&&x,n("div",{class:"fx-pf-body","data-cols":P.length&&K.length?2:1,children:[n("div",{class:"fx-pf-main",children:P}),K.length>0&&n("div",{class:"fx-pf-side",children:K})]})]})}function xu(e={}){let t=dt(async()=>{let[o,r,a]=await Promise.all([q("/membership/my"),q("/features"),q("/membership/plans")]);if(!o.ok)return o;let i=o.data?.membership??null,s=String(i?.tier||"").trim().toLowerCase(),l=!s||s==="free"?null:a.ok?i?.planId?fu(a.data,i.planId)??yo(null,s):yo(wa(a.data),s):yo(null,s);return{ok:!0,status:o.status,data:{membership:i,badge:l,payment:!r.ok||r.data?.payment!==!1}}});return t.state==="loading"?n(nt,{panels:1}):t.state==="signedOut"?null:n(vv,{membership:t.state==="ready"?t.data.membership:null,badge:t.state==="ready"?t.data.badge:null,failed:t.state==="error",payment:t.state==="ready"&&t.data.payment,modelCap:e.modelCap,onRetry:t.state==="ready"?t.reload:t.retry})}function vv(e){let{t,locale:o}=se(),r=ve(),a=e.membership&&(e.membership.status===void 0||e.membership.status==="active")?e.membership:null,i=ho(a?.tier),s=i==="Free",l=()=>void r.run(async()=>await Sn("membership")?void 0:{error:{key:"err.openFailed"}});return n(Ne,{icon:"card",title:t("member.title"),desc:t("member.desc"),actions:e.payment&&!e.failed?n(V,{variant:"primary",pending:r.pending,onClick:l,children:t(s?"member.upgrade":"member.renew")}):void 0,children:[!e.failed&&n("div",{class:"fx-member fx-block",children:[n("span",{class:`fx-tier${s?" fx-tier--free":""}`,"data-tier":i.toLowerCase(),style:s?void 0:za(e.badge??yo(null,i.toLowerCase())),children:$o(a?.plan,o)||i}),n("div",{class:"fx-member-copy",children:[n("strong",{children:s?t("member.freeName"):$o(a?.plan,o)||i}),n("span",{class:"fx-muted",children:s?t("member.freeHint"):a?.expiresAt?t("member.expires",{date:Lt(a.expiresAt,o)}):t("member.noExpiry")}),typeof e.modelCap=="number"&&n("span",{class:"fx-muted","data-testid":"member-model-cap",children:e.modelCap<0?t("member.modelsAll"):t("member.modelsCap",{cap:ze(e.modelCap,o)})})]})]}),e.failed&&n("div",{class:"fx-sub",children:n(de,{tone:"warn",children:[t("member.loadFailed")," ",n("button",{type:"button",class:"fx-link",onClick:e.onRetry,children:t("common.retry")})]})}),r.error&&n("div",{class:"fx-sub fx-sub--tight",children:n(ke,{a:r})})]})}function Ge(e){if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e=="string"&&e.trim()!==""){let t=Number(e);return Number.isFinite(t)?t:null}return null}function yv(e,t){let o=Ge(t);if(o===null||o<0)return null;if(o===0)return 0;let r=Math.max(0,Ge(e)??0);return Math.min(100,Math.max(0,Math.floor(r/o*100)))}var xv=15;function xo(e,t){let o=yv(e,t);if(o===null)return{unlimited:!0,pct:100,text:null,low:!1};let r=Math.max(0,Ge(e)??0),a=o===0&&r>0&&(Ge(t)??0)>0?"<1%":`${o}%`;return{unlimited:!1,pct:o,text:a,low:o<=xv}}function Ca(e,t){let o=Ge(t);if(o===null||o<=0)return null;let r=Ge(e);if(r===null)return null;let a=Math.max(0,r);if(a===0)return"0%";let i=a/o*100;if(i<.1)return"<0.1%";let s=Math.round(i*10)/10;return s<10?`${s}%`:`${Math.round(i).toLocaleString("en-US")}%`}var ds=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0;function xr(e,t){if(!e||typeof e!="object")return null;let o=e;if(!ds(o.input)||!ds(o.output)||!ds(o.cachedInput))return null;let r=a=>ze(a+0,t);return{input:r(o.input),output:r(o.output),cached:r(o.cachedInput)}}function ku(e,t){if(!xr(e,t))return null;let o=e;return ze((1e4*o.input+2e3*o.output)/1e6+0,t)}var kv=e=>e.ok?"ok":e.status===404?"hidden":"failed";function Su(){return n(_u,{section:"points"})}function Cu(){let[e,t]=C(null);return n(M,{children:[n(xu,{modelCap:e}),n(_u,{section:"quota",onModelCap:t})]})}function _u({section:e,onModelCap:t}){let o=oe(0),r=dt(async()=>{let p=o.current,[u,f,m,g]=await Promise.all([q("/token-quota/my"),q("/credits/balance"),q("/features"),q("/invite/my-code")]);return u.ok?{ok:!0,status:u.status,data:{quota:u.data??{},balance:f.ok?Ge(f.data?.balance):null,balanceFailed:!f.ok,features:m.ok&&m.data&&typeof m.data=="object"?m.data:{},invite:g.ok?g.data:null,inviteState:kv(g),autoGen:p}}:u}),a=r.state==="ready"?Ge(r.data.quota.modelMultiplierCap):null;if(W(()=>{t?.(a)},[a]),r.state==="loading")return n(nt,{panels:3,rows:2});if(r.state==="signedOut")return n(mt,{});if(r.state==="error")return n(yt,{error:r.error,onRetry:r.retry});let{data:i,update:s}=r,l=i.quota.background,c=i.features.redemption_codes!==!1,d=i.features.payment!==!1;return n(M,{children:[e==="quota"&&n(M,{children:[n(zv,{data:i,update:s,payment:d,fallbackGen:o,onFailed:r.reload}),l?.modelId?n(Tv,{bg:l,update:s}):null]}),e==="points"&&n(_v,{data:i,payment:d,onRetry:r.reload}),e==="points"&&(i.inviteState!=="hidden"||c)&&n(Ev,{data:i,update:s,redeemEnabled:c,onRedeemed:r.reload})]})}var wu=e=>({dailyLimit:e.dailyLimit,dailyRemaining:e.dailyRemaining,weeklyLimit:e.weeklyLimit,weeklyRemaining:e.weeklyRemaining});function wv(e,t){if(typeof e?.showResetCardCeremony!="function")return!1;try{return e.showResetCardCeremony(t),!0}catch{return!1}}var zu=e=>!e.unlimited&&e.text==="0%";function zv(e){let{t,locale:o,ctx:r}=se(),a=e.data.quota,i=xo(a.dailyRemaining,a.dailyLimit),s=xo(a.weeklyRemaining,a.weeklyLimit),l=bd(a.weeklyResetAt,o),c=Math.max(0,Ge(a.resetCards)??0),d=ve(),p=ve(),[u,f]=C(null),m=typeof a.pointsAutoDeduct=="boolean"&&(Ge(a.pointsBalance)!==null||Ge(a.modelMultiplierCap)!==null),g=Ge(a.pointsBalance)??e.data.balance,h=g!==null&&g<=0,v=zu(i)||zu(s),b=xr(a.pointsPricing,o),x=Sv(!!a.pointsAutoDeduct,e.data.autoGen,e.fallbackGen,B=>{e.update(N=>({...N,quota:{...N.quota,...B,resetCards:N.quota.resetCards,pointsBalance:N.quota.pointsBalance,pointsAutoDeduct:N.quota.pointsAutoDeduct,modelMultiplierCap:N.quota.modelMultiplierCap}}))}),w=()=>void d.run(async()=>{let B={daily:i,weekly:s},N=wu(a);f(null);let j=ee(),_=await hr(j.accountUseResetCard?()=>j.accountUseResetCard("both"):null,()=>q("/token-quota/reset-card/use",{method:"POST",body:{type:"both"}}));if(!_.ok)return e.onFailed(),qe(_);let L=_.data?.quota,$=Ge(_.data?.resetCards);return e.update(P=>({...P,quota:{...P.quota,...L??{},resetCards:$??P.quota.resetCards,pointsAutoDeduct:P.quota.pointsAutoDeduct,pointsBalance:P.quota.pointsBalance,modelMultiplierCap:P.quota.modelMultiplierCap}})),L&&!wv(r.app,{before:N,after:wu(L),remainingCards:$??void 0})&&f({before:B,after:{daily:xo(L.dailyRemaining,L.dailyLimit),weekly:xo(L.weeklyRemaining,L.weeklyLimit)},cards:$}),{success:{key:"card.used"}}}),S=B=>void p.run(async()=>await Sn(B)?void 0:{error:{key:"err.openFailed"}}),T=B=>B.unlimited?t("common.unlimited"):B.text,F=null;if(v&&m&&x.phase==="idle"&&x.checked)F=h?n(Pe,{children:[n(de,{tone:"warn",children:t("quota.out.pointsGone")}),e.payment&&n("div",{class:"fx-inline fx-out-acts",children:[n(V,{variant:"primary",pending:p.pending,onClick:()=>S("credits"),children:t("points.recharge")}),n(V,{pending:p.pending,onClick:()=>S("membership"),children:t("member.upgrade")})]}),n(ke,{a:p})]}):n(Pe,{children:n(de,{children:t("quota.out.usingPoints")})});else if(v&&m&&x.phase==="idle"){let B=c>0?h?"quota.out.cardOrTopUp":"quota.out.cardOrPoints":h?"quota.out.topUp":"quota.out.points";F=n(Pe,{children:[n(de,{tone:"warn",children:t(B)}),h&&e.payment&&n("div",{class:"fx-inline fx-out-acts",children:n(V,{variant:"primary",pending:p.pending,onClick:()=>S("credits"),children:t("points.recharge")})}),n(ke,{a:p})]})}else v&&c>0&&(F=n(Pe,{children:n(de,{tone:"warn",children:t("quota.out.card")})}));return n(Ne,{icon:"gauge",title:t("quota.ai.title"),desc:t("quota.ai.desc"),children:[n("div",{class:"fx-quota-list fx-block",children:[n(yr,{label:t("common.today"),display:i,note:i.unlimited?null:t("quota.resetDaily")}),n(yr,{label:t("common.thisWeek"),display:s,note:s.unlimited||!l?null:t("quota.resetWeekly",{date:l})})]}),F,n(Xe,{label:t("card.title"),desc:t("card.desc"),children:[n("span",{class:"fx-value","data-testid":"reset-card-count",children:t("card.owned",{n:c})}),n(Qt,{label:t("card.use"),confirmLabel:t("card.useConfirm"),pending:d.pending,disabled:c<=0,onConfirm:w})]}),c<=0&&!d.success&&!F&&n(Pe,{children:n(de,{children:t("card.noneHint")})}),(d.error||d.success)&&n(Pe,{children:[n(ke,{a:d}),d.success&&u&&n("div",{class:"fx-ceremony",role:"status",children:[n("span",{children:[t("common.today")," ",n("b",{children:T(u.before.daily)})," \u2192 ",n("b",{children:T(u.after.daily)})]}),n("span",{children:[t("common.thisWeek")," ",n("b",{children:T(u.before.weekly)})," \u2192 ",n("b",{children:T(u.after.weekly)})]}),u.cards!==null&&n("span",{class:"fx-muted",children:t("card.left",{n:u.cards})})]})]}),m&&n(M,{children:[n(Xe,{label:t("fallback.title"),desc:t("fallback.desc"),children:[g!==null&&n("span",{class:"fx-value","data-testid":"fallback-points",children:t("fallback.balance",{n:ze(g,o)})}),x.phase==="unknown"?n(V,{pending:!1,onClick:x.reread,children:t("common.retry")}):n(M,{children:[x.phase!=="idle"&&n("span",{class:"fx-fallback-busy",role:"status","aria-busy":"true","aria-label":t("common.loading"),children:n(Zt,{})}),n(rn,{checked:x.checked,disabled:x.phase!=="idle",label:t("fallback.title"),onChange:x.toggle})]})]}),b&&n(Pe,{children:n(de,{children:n("span",{"data-testid":"fallback-pricing",children:t("fallback.pricing",b)})})}),x.phase==="unknown"&&n(Pe,{children:n(de,{tone:"warn",children:t("fallback.unknown")})}),x.error&&x.phase!=="unknown"&&n(Pe,{children:n("div",{class:"fx-msg is-error",role:"alert",children:n("span",{children:wt(x.error,t)})})})]})]})}function Sv(e,t,o,r){let a=$e(),[i,s]=C("idle"),[l,c]=C(null),[d,p]=C(null),u=oe(!1),f=l&&t<l.gen?l.value:e,m=x=>{c({value:x,gen:++o.current})},g=async x=>{s("verifying");let w=await q("/token-quota/my");a.current&&(w.ok&&typeof w.data?.pointsAutoDeduct=="boolean"?(m(w.data.pointsAutoDeduct),x!==null&&w.data.pointsAutoDeduct===x&&p(null),s("idle")):s("unknown"))},h=async x=>{if(!u.current){u.current=!0;try{await x()}finally{u.current=!1}}};return{checked:f,phase:i,error:d,toggle:x=>void h(async()=>{o.current++,p(null),s("pending");let w=ee(),S=await hr(w.cloudInvoke?()=>w.cloudInvoke("account:pointsAutoDeduct",x):null,()=>q("/token-quota/auto-deduct",{method:"POST",body:{enabled:x}}));if(a.current){if(S.ok&&typeof S.data?.pointsAutoDeduct=="boolean"){m(S.data.pointsAutoDeduct),S.data.quota&&r(S.data.quota),s("idle");return}if(!S.ok&&(p(zt(S)),S.status===400||S.status===410||S.status===503&&S.code==="points_fallback_unavailable")){s("idle");return}await g(x)}}),reread:()=>void h(()=>g(null))}}function Cv(e,t,o){let r=ve(),[a,i]=C(null);return{checked:a??e,toggle:l=>{i(l),r.run(async()=>{let c=await t(l);if(i(null),!c.ok)return qe(c);o(l)})},action:r}}function _v(e){let{t,locale:o}=se(),r=ve(),a=()=>void r.run(async()=>await Sn("credits")?void 0:{error:{key:"err.openFailed"}});return n(Ne,{icon:"coins",title:t("points.title"),desc:t("points.desc"),actions:e.payment?n(V,{variant:"primary",pending:r.pending,onClick:a,children:t("points.recharge")}):void 0,children:[n(Xe,{label:t("points.balance"),children:e.data.balance!==null?n("span",{class:"fx-big","data-testid":"points-balance",children:ze(e.data.balance,o)}):n("span",{class:"fx-value is-empty",children:[t("points.balanceFailed")," ",n("button",{type:"button",class:"fx-link",onClick:e.onRetry,children:t("common.retry")})]})}),r.error&&n(Pe,{children:n(ke,{a:r})})]})}var Av=[5,10,20];function Tv(e){let{t}=se(),{bg:o}=e,r=xo(o.dailyRemaining,o.dailyLimit),a=xo(o.weeklyRemaining,o.weeklyLimit),i=ve(),[s,l]=C(null),c=Cv(!!o.autoMain,p=>{let u=ee();return hr(u.accountBgAutoMain?()=>u.accountBgAutoMain(p):null,()=>q("/token-quota/background/auto-main",{method:"POST",body:{enabled:p}}))},p=>e.update(u=>({...u,quota:{...u.quota,background:{...u.quota.background??{},autoMain:p}}}))),d=p=>{l(p),i.run(async()=>{let u=ee(),f=await hr(u.accountBgConvert?()=>u.accountBgConvert(p):null,()=>q("/token-quota/background/convert",{method:"POST",body:{percent:p}}));if(l(null),!f.ok)return qe(f);let m=f.data?.quota;return m&&e.update(h=>({...h,quota:{...h.quota,...m,resetCards:h.quota.resetCards,pointsBalance:h.quota.pointsBalance,pointsAutoDeduct:h.quota.pointsAutoDeduct,modelMultiplierCap:h.quota.modelMultiplierCap}})),{success:{key:"bg.converted",vars:{pct:p}}}})};return n(Ne,{icon:"clock",title:t("bg.title"),desc:t("bg.desc"),children:[n("div",{class:"fx-quota-list fx-block",children:[n(yr,{label:t("common.today"),display:r}),n(yr,{label:t("common.thisWeek"),display:a})]}),n(Xe,{label:t("bg.autoMain"),desc:t("bg.autoMainDesc"),children:n(rn,{checked:c.checked,disabled:c.action.pending,label:t("bg.autoMain"),onChange:c.toggle})}),n(Xe,{label:t("bg.convert"),desc:t("bg.convertDesc"),class:"fx-row--wide",children:Av.map(p=>n(Qt,{label:`${p}%`,confirmLabel:t("bg.convertConfirm",{pct:p}),pending:i.pending&&s===p,disabled:i.pending&&s!==p,onConfirm:()=>d(p)},p))}),(i.error||i.success||c.action.error)&&n(Pe,{children:[n(ke,{a:c.action}),n(ke,{a:i})]})]})}function Ev(e){let{t,locale:o,anchor:r}=se(),a=oe(null);W(()=>{if(r!=="invite")return;let S=a.current;S?.scrollIntoView?.({block:"start"}),S?.focus({preventScroll:!0})},[r]);let{invite:i,inviteState:s}=e.data,[l,c]=C(null),[d,p]=C(""),[u,f]=C(""),m=ve(),g=ve(),h=ve();W(()=>{let S=!0;return ee().authStatus?.().then(T=>{S&&c(T?.cloudUrl?T.cloudUrl.replace(/\/+$/,""):null)}).catch(()=>{}),()=>{S=!1}},[]);let v=async()=>{let S=await q("/invite/my-code");return e.update(T=>({...T,invite:S.ok?S.data:T.invite,inviteState:S.ok?"ok":S.status===404?"hidden":T.inviteState})),S},b=()=>void m.run(async()=>{let S=d.trim();if(!S)return{error:{key:"err.inviteEmpty"}};let T=await q("/invite/claim",{method:"POST",body:{code:S}});return T.ok?(p(""),v(),{success:{key:"invite.claimed"}}):qe(T)}),x=()=>void g.run(async()=>{let S=u.trim();if(!S)return{error:{key:"err.redeemEmpty"}};let T=await q("/redemption/redeem",{method:"POST",body:{code:S}});if(!T.ok)return qe(T);f(""),window.dispatchEvent(new Event("forsion:account-rewards-changed")),e.onRedeemed();let F=[],B=Ge(T.data?.creditsAmount);B&&F.push(t("redeem.gotPoints",{n:ze(B,o)})),T.data?.membershipPlanId&&F.push(t("redeem.gotMembership"));for(let N of Array.isArray(T.data?.items)?T.data.items:[]){let j=(o==="zh"?N?.label?.zh:N?.label?.en)||N?.label?.zh||N?.label?.en||N?.kind;j&&F.push(j)}return{success:F.length?{key:"redeem.successWith",vars:{what:F.join(o==="zh"?"\u3001":", ")}}:{key:"redeem.success"}}}),w=i?.code&&l?`${l}/auth?invite=${encodeURIComponent(i.code)}`:"";return n("div",{ref:a,tabIndex:-1,"data-settings-anchor":"invite",children:n(Ne,{icon:"gift",title:t("invite.title"),desc:t("invite.desc"),children:[s==="ok"&&i?.code&&n(Xe,{label:t("invite.myCode"),desc:t("invite.count",{n:ze(Ge(i.invitedCount)??0,o)}),class:"fx-row--wide",children:[n("code",{class:"fx-code","data-testid":"invite-code",children:i.code}),n(Vt,{text:i.code,label:t("invite.copyCode")}),n(Vt,{text:w,label:t("invite.copyLink"),disabled:!w})]}),s==="failed"&&n(Pe,{children:n(de,{tone:"warn",children:[t("invite.loadFailed")," ",n("button",{type:"button",class:"fx-link",disabled:h.pending,onClick:()=>void h.run(async()=>{await v()}),children:t("common.retry")})]})}),s==="ok"&&i?.claim?.eligible&&n(Xe,{label:t("invite.claim"),desc:t("invite.claimDesc"),class:"fx-row--wide",children:n("form",{class:"fx-inline",onSubmit:S=>{S.preventDefault(),b()},children:[n("input",{class:"fx-input",value:d,placeholder:t("invite.claimPlaceholder"),"aria-label":t("invite.claim"),onInput:S=>p(S.currentTarget.value)}),n(V,{submit:!0,pending:m.pending,children:t("invite.claimSubmit")})]})}),(m.error||m.success)&&n(Pe,{children:n(ke,{a:m})}),e.redeemEnabled&&n(Xe,{label:t("redeem.title"),desc:t("redeem.desc"),class:"fx-row--wide",children:n("form",{class:"fx-inline",onSubmit:S=>{S.preventDefault(),x()},children:[n("input",{class:"fx-input",value:u,placeholder:t("redeem.placeholder"),"aria-label":t("redeem.title"),onInput:S=>f(S.currentTarget.value)}),n(V,{submit:!0,pending:g.pending,children:t("redeem.submit")})]})}),(g.error||g.success)&&n(Pe,{children:n(ke,{a:g})})]})})}function Pv(e){let t=[],o,r,a=new Map;for(let i of e)if(i.itemType==="reset_card")o||(o={id:"reset_card",items:[],resetCard:!0},t.push(o)),o.items.push(i);else if(i.itemType==="address_rename_card")r||(r={id:"address_rename_card",items:[],resetCard:!1,addressCard:!0},t.push(r)),r.items.push(i);else if(i.itemType==="custom_item"&&i.itemDefinition?.stackable){let s=`${i.productId||i.id}:${JSON.stringify(i.itemDefinition)}`,l=a.get(s);l||(l={id:`custom:${s}`,items:[],resetCard:!1},a.set(s,l),t.push(l)),l.items.push(i)}else t.push({id:i.id,items:[i],resetCard:!1});return t}function Au(){let e=dt(()=>q("/shop/inventory"));return e.state==="loading"?n(nt,{panels:1,rows:4}):e.state==="signedOut"?n(mt,{}):e.state==="error"?n(yt,{error:e.error,onRetry:e.retry}):n(Iv,{items:e.data??[],onRefresh:e.reload,onUsed:t=>{e.update(o=>o.filter(r=>r.id!==t.itemId)),e.reload()}})}function Iv(e){let{t,locale:o,goTo:r}=se(),[a,i]=C(null),[s,l]=C(null),c=$e(),d=Pv(e.items),p=d.find(g=>g.id===a),u=Math.max(24,Math.ceil(d.length/6)*6)-d.length,f=g=>g.resetCard?t("card.title"):g.addressCard?t("backpack.addressCard"):g.items[0].itemDefinition?.name[o]||g.items[0].displayName||t("backpack.item"),m=g=>{c.current&&(l(g),e.onUsed(g))};return n(Ne,{icon:"backpack",title:t("page.backpack"),desc:t("backpack.desc"),actions:n(V,{onClick:e.onRefresh,children:[n(U,{name:"refresh",size:13}),t("backpack.refresh")]}),children:n("div",{class:"fx-backpack fx-block",children:[n("div",{class:"fx-backpack-summary",children:[n("span",{children:t("backpack.total",{n:ze(e.items.length,o)})}),r&&n("button",{class:"fx-link",type:"button",onClick:()=>r("quota"),children:t("backpack.getCards")})]}),s&&n("div",{class:`fx-backpack-used fx-backpack-${s.animation}`,role:"status",children:[n(U,{name:"gift",size:20}),s.connectPack&&typeof s.connectPack.added=="number"?n("div",{children:[n("strong",{children:t("backpack.packUsed")}),n("div",{children:t("backpack.packUsedLine",{n:ze(s.connectPack.added,o),balance:ze(Math.round(Number(s.connectPack.balance)||0),o)})})]}):n("div",{children:[n("strong",{children:s.message?.[o]}),n("div",{children:(s.effects||[]).map(g=>Tu(g,t,o)).join(" \xB7 ")})]})]},s.itemId),n("div",{class:"fx-backpack-layout",children:[n("div",{children:[n("div",{class:"fx-backpack-grid",role:"group","aria-label":t("backpack.grid"),children:[d.map(g=>{let h=f(g);return n("button",{type:"button",class:`fx-backpack-slot${g.resetCard?" is-card":""}`,"data-rarity":g.items[0].itemDefinition?.rarity,"aria-pressed":p?.id===g.id,"aria-label":t("backpack.slot",{name:h,n:g.items.length}),title:h,onClick:()=>i(g.id),children:[n("span",{class:"fx-backpack-icon",children:g.items[0].itemDefinition?.icon?n("span",{class:"fx-backpack-emoji",children:g.items[0].itemDefinition.icon}):n(U,{name:g.resetCard?"card":g.addressCard?"at":"gift",size:30})}),n("span",{class:"fx-backpack-name",children:h}),(g.resetCard||g.addressCard||g.items[0].itemDefinition?.stackable)&&n("span",{class:"fx-backpack-count",children:["\xD7",ze(g.items.length,o)]})]},g.id)}),Array.from({length:u},(g,h)=>n("div",{class:"fx-backpack-slot is-empty","aria-hidden":"true"},`empty:${h}`))]}),!d.length&&n("p",{class:"fx-backpack-empty",children:t("backpack.empty")})]}),p?n(Rv,{slot:p,name:f(p),onUsed:m},`${p.id}:${p.items[0].id}`):n("div",{class:"fx-backpack-detail fx-backpack-prompt",children:[n(U,{name:"backpack",size:30}),n(de,{children:t(d.length?"backpack.select":"backpack.emptyHint")})]})]})]})})}function Tu(e,t,o){let r=a=>ze(Number(a)||0,o);switch(e.type){case"points":return t("backpack.effect.points",{n:r(e.amount)});case"reset_card":return t("backpack.effect.cards",{n:r(e.count)});case"reset_quota":return t("backpack.effect.quota");case"connect_pack":return t("backpack.effect.connectPack",{n:r(e.amount)});default:return t("backpack.effect.other")}}function Rv(e){let{t,locale:o,goTo:r}=se(),a=e.slot.items[0],[i,s]=C(null),l=ve(),c=ve(),[d,p]=C(!1),u=a.itemDefinition,f=$e(),m=a.source==="points"?t("backpack.source.points"):a.source==="admin"?t("backpack.source.admin"):a.source==="reward"?t("backpack.source.reward"):t("backpack.source.other"),g=()=>void l.run(async()=>{let v=await q(`/shop/inventory/${encodeURIComponent(a.id)}`);if(f.current){if(!v.ok)return qe(v);s(v.data)}}),h=()=>void c.run(async()=>{let v=await q(`/shop/inventory/${encodeURIComponent(a.id)}/use`,{method:"POST"});if(!v.ok)return qe(v);e.onUsed(v.data)});return n("section",{class:"fx-backpack-detail","aria-label":t("backpack.details"),children:[n("span",{class:`fx-backpack-detail-icon${e.slot.resetCard?" is-card":""}`,children:u?.icon?n("span",{class:"fx-backpack-emoji",children:u.icon}):n(U,{name:e.slot.resetCard?"card":e.slot.addressCard?"at":"gift",size:32})}),n("h3",{children:e.name}),n("span",{class:"fx-tag",children:[t(e.slot.resetCard||e.slot.addressCard||u?.use?"backpack.consumable":u?"backpack.collectible":"backpack.voucher"),u&&` \xB7 ${t(`backpack.rarity.${u.rarity}`)}`]}),n("dl",{class:"fx-backpack-facts",children:[n("div",{children:[n("dt",{children:t("backpack.quantity")}),n("dd",{children:ze(e.slot.items.length,o)})]}),n("div",{children:[n("dt",{children:t("backpack.acquired")}),n("dd",{children:Et(a.acquiredAt,o)})]}),!e.slot.resetCard&&n("div",{children:[n("dt",{children:t("backpack.source")}),n("dd",{children:m})]})]}),u?n(M,{children:[u.description&&n(de,{children:u.description[o]}),u.use&&n(M,{children:[n("div",{class:"fx-backpack-effects",children:u.use.effects.map((v,b)=>n("div",{children:Tu(v,t,o)},b))}),d?n(M,{children:[n(de,{children:t("backpack.consumeConfirm")}),n("div",{class:"fx-backpack-use-actions",children:[n(V,{variant:"primary",pending:c.pending,onClick:h,children:t("backpack.confirmUse")}),n(V,{disabled:c.pending,onClick:()=>p(!1),children:t("common.cancel")})]})]}):n(V,{variant:"primary",onClick:()=>p(!0),children:u.use.label?.[o]||t("backpack.use")}),n(ke,{a:c,captchaSection:"backpack"})]})]}):e.slot.addressCard?n(M,{children:[n(de,{children:t("backpack.addressCard.desc")}),r&&n(V,{variant:"primary",onClick:()=>{jd(),r("account-details")},children:t("backpack.addressCard.use")})]}):e.slot.resetCard?n(M,{children:[n(de,{children:t("card.desc")}),r&&n(V,{variant:"primary",onClick:()=>r("quota"),children:t("backpack.manageCards")})]}):i?n("div",{class:"fx-backpack-reveal",children:[i.codeName&&n("div",{class:"fx-muted",children:i.codeName}),i.key?n(M,{children:[n("code",{children:i.key}),n(Vt,{text:i.key,label:t("backpack.copyKey")})]}):n(de,{children:t("backpack.noKey")})]}):n(V,{pending:l.pending,onClick:g,children:[n(U,{name:"key",size:14}),t("backpack.reveal")]}),n(ke,{a:l,captchaSection:"backpack"})]})}var Mv=/^1[3-9]\d{9}$|^\+[1-9]\d{6,14}$/,Lv=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,Eu=(e,t)=>e==="phone"?Mv.test(t):Lv.test(t),kr=(e,t)=>e==="phone"?pa(t):fa(t);function Iu(){let e=dt(()=>q("/auth/me"));if(e.state==="loading")return n(nt,{panels:3,rows:2});if(e.state==="signedOut")return n(mt,{});if(e.state==="error")return n(yt,{error:e.error,onRetry:e.retry});let t=e.data;return n(M,{children:[n(Dv,{me:t,onBound:(o,r)=>e.update(a=>({...a,[o]:r}))}),n(Fv,{me:t}),n(Uv,{}),n(Hv,{me:t})]})}function ps(){let e=gd(),t=ve();return{cd:e,a:t,send:(a,i,s)=>t.run(async()=>{let l=await q("/auth/send-code",{method:"POST",body:{target:a,type:i,purpose:s}});return l.ok?(e.start(60),{success:{key:"sec.codeSent"}}):qe(l)}),reset:()=>{e.stop(),t.clear()}}}function Dv(e){let{t}=se(),[o,r]=C(null),[a,i]=C(null);return n(Ne,{icon:"key",title:t("sec.methods.title"),desc:t("sec.methods.desc"),children:["phone","email"].map(s=>{let l=e.me[s];return n(M,{children:[n(Xe,{label:t(s==="phone"?"account.contact.phone":"account.contact.email"),desc:l?kr(s,l):t("account.contact.unbound"),children:n(V,{onClick:()=>{i(null),r(o===s?null:s)},children:t(o===s?"common.cancel":l?"sec.change":"sec.bind")})}),o===s&&n(Nv,{kind:s,current:l??null,onDone:c=>{e.onBound(s,c),r(null),i(s)}}),a===s&&o!==s&&n(Pe,{children:n("div",{class:"fx-msg is-ok",role:"status",children:t(s==="phone"?"sec.phoneBound":"sec.emailBound")})})]},s)})})}function Nv(e){let{t}=se(),{kind:o}=e,[r,a]=C(""),[i,s]=C(""),l=ps(),c=ve(),d=r.trim(),p=o==="phone"?"err.phoneInvalid":"err.emailInvalid",u=()=>{if(!Eu(o,d)){l.a.run(async()=>({error:{key:p}}));return}l.send(d,o,"bind")},f=()=>void c.run(async()=>{if(!Eu(o,d))return{error:{key:p}};if(!i.trim())return{error:{key:"err.codeRequired"}};let m=o==="phone"?{phone:d,verification_code:i.trim()}:{email:d,verification_code:i.trim()},g=await q(o==="phone"?"/auth/bind-phone":"/auth/bind-email",{method:"POST",body:m});if(!g.ok)return qe(g);e.onDone(d)});return n(Pe,{class:"fx-form",children:[n("label",{class:"fx-field",children:[n("span",{children:e.current?t(o==="phone"?"sec.newPhone":"sec.newEmail"):t(o==="phone"?"sec.phone":"sec.email")}),n("input",{class:"fx-input",type:o==="phone"?"tel":"email",value:r,autoComplete:"off",placeholder:t(o==="phone"?"sec.phonePlaceholder":"sec.emailPlaceholder"),onInput:m=>a(m.currentTarget.value)})]}),n(fs,{code:i,setCode:s,sender:l,onSend:u}),n("div",{class:"fx-inline",children:n(V,{variant:"primary",pending:c.pending,onClick:f,children:t("sec.bindSubmit")})}),n(ke,{a:c})]})}function fs(e){let{t}=se(),{cd:o,a:r}=e.sender;return n("div",{class:"fx-field",children:[n("span",{children:e.label??t("sec.code")}),n("div",{class:"fx-inline",children:[n("input",{class:"fx-input fx-input--code",inputMode:"numeric",autoComplete:"one-time-code",value:e.code,placeholder:t("sec.codePlaceholder"),"aria-label":e.label??t("sec.code"),onInput:a=>e.setCode(a.currentTarget.value)}),n(V,{pending:r.pending,disabled:o.left>0||e.disabled,onClick:e.onSend,children:o.left>0?t("sec.resendIn",{s:o.left}):t("sec.sendCode")})]}),n(ke,{a:r})]})}function Ov(e){let{t}=se(),o=dd(e.value),r=e.value.length>0,a=[[o.length,t("pw.req.length",{min:8,max:64})],[o.lower,t("pw.req.lower")],[o.upper,t("pw.req.upper")],[o.special,t("pw.req.special")],[o.space,t("pw.req.space")]];return n("ul",{class:"fx-rules","aria-label":t("pw.rulesLabel"),children:a.map(([i,s])=>n("li",{class:i?"is-ok":r?"is-bad":"",children:[i?n(U,{name:"check",size:11}):r?n(U,{name:"x",size:11}):n("span",{class:"fx-rule-dot","aria-hidden":"true"}),n("span",{children:s})]},s))})}function Ru(e,t){let o=cd(e);return o.ok?e!==t?{error:{key:"pw.mismatch"}}:null:{error:{key:Hi[o.rule]}}}function Fv(e){let{t}=se(),o=["phone","email"].filter(l=>!!e.me[l]),[r,a]=C("current"),[i,s]=C(!1);return n(Ne,{icon:"shield",title:t("pw.title"),desc:t("pw.desc",{min:8,max:64}),actions:n(V,{onClick:()=>s(!i),children:t(i?"common.cancel":"pw.change")}),children:i&&n(Pe,{class:"fx-form",children:[n(Dt,{label:t("pw.modeLabel"),value:r,onChange:a,options:[{value:"current",label:t("pw.mode.current")},{value:"code",label:t("pw.mode.code")}]}),r==="current"?n(Bv,{onDone:()=>s(!1)}):o.length?n($v,{me:e.me,targets:o,onDone:()=>s(!1)}):n(de,{children:t("pw.codeNeedsContact")})]})})}function Mu(e){let{t}=se();return n(M,{children:[n("label",{class:"fx-field",children:[n("span",{children:t("pw.new")}),n("input",{class:"fx-input",type:"password",autoComplete:"new-password",value:e.pw,maxLength:72,onInput:o=>e.setPw(o.currentTarget.value)})]}),n(Ov,{value:e.pw}),n("label",{class:"fx-field",children:[n("span",{children:t("pw.confirm")}),n("input",{class:"fx-input",type:"password",autoComplete:"new-password",value:e.confirm,onInput:o=>e.setConfirm(o.currentTarget.value)})]})]})}function Bv(e){let{t}=se(),[o,r]=C(""),[a,i]=C(""),[s,l]=C(""),c=ve(),[d,p]=C(!1),u=()=>void c.run(async()=>{if(!o)return{error:{key:"pw.currentRequired"}};let f=Ru(a,s);if(f)return f;let m=await q("/auth/password",{method:"PUT",body:{currentPassword:o,newPassword:a}});return m.ok?(r(""),i(""),l(""),p(!0),{success:{key:"pw.changed"}}):m.status===404?{error:{key:"pw.noPasswordYet"}}:qe(m)});return n(M,{children:[n("label",{class:"fx-field",children:[n("span",{children:t("pw.current")}),n("input",{class:"fx-input",type:"password",autoComplete:"current-password",value:o,onInput:f=>r(f.currentTarget.value)})]}),n(Mu,{pw:a,setPw:i,confirm:s,setConfirm:l}),n("div",{class:"fx-inline",children:[n(V,{variant:"primary",pending:c.pending,onClick:u,children:t("pw.submit")}),d&&n(V,{onClick:e.onDone,children:t("common.done")})]}),n(ke,{a:c})]})}function $v(e){let{t}=se(),[o,r]=C(e.targets[0]),[a,i]=C(""),[s,l]=C(""),[c,d]=C(""),p=ps(),u=ve(),[f,m]=C(!1),g=e.me[o]||"",h=()=>void u.run(async()=>{if(!a.trim())return{error:{key:"err.codeRequired"}};let v=Ru(s,c);if(v)return v;let b=o==="phone"?{phone:g,code:a.trim(),newPassword:s}:{email:g,code:a.trim(),newPassword:s},x=await q("/auth/reset-password",{method:"POST",body:b});return x.ok?(i(""),l(""),d(""),m(!0),{success:{key:"pw.changed"}}):qe(x)});return n(M,{children:[e.targets.length>1?n(Dt,{label:t("pw.via"),value:o,onChange:v=>{r(v),i(""),p.reset()},options:e.targets.map(v=>({value:v,label:kr(v,e.me[v])}))}):n(de,{children:t("pw.codeTo",{target:kr(o,g)})}),n(fs,{code:a,setCode:i,sender:p,onSend:()=>void p.send(g,o,"reset_password")}),n(Mu,{pw:s,setPw:l,confirm:c,setConfirm:d}),n("div",{class:"fx-inline",children:[n(V,{variant:"primary",pending:u.pending,onClick:h,children:t("pw.submitReset")}),f&&n(V,{onClick:e.onDone,children:t("common.done")})]}),n(ke,{a:u})]})}function Uv(){let{t:e}=se(),t=ve(),o=()=>void t.run(async()=>{let r=await q("/auth/logout-all",{method:"POST"});if(!r.ok)return qe(r);try{await ee().forsionLogout?.()}catch(a){return{error:{raw:kt(a)}}}return{success:{key:"sec.logoutAllDone"}}});return n(Ne,{icon:"laptop",title:e("sec.devices.title"),desc:e("sec.devices.desc"),children:[n(Xe,{label:e("sec.logoutAll"),desc:e("sec.logoutAllDesc"),children:n(Qt,{label:e("sec.logoutAll"),confirmLabel:e("sec.logoutAllConfirm"),pending:t.pending,onConfirm:o})}),(t.error||t.success)&&n(Pe,{children:n(ke,{a:t})})]})}function Hv(e){let{t}=se(),o=["phone","email"].filter(b=>!!e.me[b]),[r,a]=C(!1),[i,s]=C(o.length?"code":"password"),[l,c]=C(o[0]??null),[d,p]=C(""),[u,f]=C(""),m=ps(),g=ve(),h=l&&e.me[l]||"",v=()=>void g.run(async()=>{if(i==="code"&&!d.trim())return{error:{key:"err.codeRequired"}};if(i==="password"&&!u)return{error:{key:"pw.currentRequired"}};let b=await q("/auth/delete-account",{method:"POST",body:i==="code"?{verification_code:d.trim()}:{password:u}});if(!b.ok)return qe(b);try{await ee().forsionLogout?.()}catch{}return{success:{key:"del.done"}}});return n(Ne,{icon:"alert",danger:!0,title:t("del.title"),desc:t("del.desc"),actions:n(V,{variant:"danger",onClick:()=>{a(!r),g.clear()},children:t(r?"common.cancel":"del.start")}),children:r&&n(Pe,{class:"fx-form",children:[n(de,{tone:"error",children:t("del.warn")}),o.length>0&&n(Dt,{label:t("del.methodLabel"),value:i,onChange:s,options:[{value:"code",label:t("del.byCode")},{value:"password",label:t("del.byPassword")}]}),i==="code"&&l?n(M,{children:[o.length>1&&n(Dt,{label:t("pw.via"),value:l,onChange:b=>{c(b),p(""),m.reset()},options:o.map(b=>({value:b,label:kr(b,e.me[b])}))}),n(fs,{code:d,setCode:p,sender:m,label:t("del.codeLabel",{target:kr(l,h)}),onSend:()=>void m.send(h,l,"delete_account")})]}):n("label",{class:"fx-field",children:[n("span",{children:t("del.passwordLabel")}),n("input",{class:"fx-input",type:"password",autoComplete:"current-password",value:u,onInput:b=>f(b.currentTarget.value)})]}),n("div",{class:"fx-inline",children:n(Qt,{variant:"danger",label:t("del.submit"),confirmLabel:t("del.confirm"),pending:g.pending,onConfirm:v})}),n(ke,{a:g})]})})}var Du=20;function Nu(){let e=dt(async()=>{let[t,o]=await Promise.all([q("/token-quota/my"),q(`/token-quota/my/logs?limit=${Du}&offset=0`)]);if(!t.ok)return t;let r=o.ok&&Array.isArray(o.data?.logs)?o.data.logs:null;return{ok:!0,status:t.status,data:{dailyLimit:Ge(t.data?.dailyLimit),logs:r,total:o.ok?Ge(o.data?.total)??r?.length??0:0,logsFail:o.ok?null:o}}});return e.state==="loading"?n(nt,{panels:3,rows:2}):e.state==="signedOut"?n(mt,{}):e.state==="error"?n(yt,{error:e.error,onRetry:e.retry}):n(M,{children:[n(qv,{dailyLimit:e.data.dailyLimit}),n(Vv,{base:e.data,onRetry:e.reload})]})}function qv(e){let{t,locale:o}=se(),[r,a]=C(30),[i,s]=C({state:"loading"}),[l,c]=C(!1),[d,p]=C(0),u=oe(0);W(()=>{let w=++u.current;return c(!0),q(`/usage/stats?days=${r}`).then(S=>{w===u.current&&(c(!1),s(S.ok?{state:"ready",data:S.data??{}}:{state:"error",fail:S}))}),()=>{u.current++}},[r,d]);let f=e.dailyLimit!==null&&e.dailyLimit<0?"usage.unlimitedNote":Ca(1,e.dailyLimit)===null?"usage.noLimitNote":null,m=w=>Ca(w,e.dailyLimit)??"\u2014",g=n(Dt,{label:t("usage.range"),value:r,onChange:a,options:[{value:7,label:t("usage.days",{n:7})},{value:30,label:t("usage.days",{n:30})},{value:90,label:t("usage.days",{n:90})}]}),h=i.state==="ready"?i.data:null,v=(h?.byModel??[]).filter(Boolean),b=(h?.byProject??[]).filter(Boolean),x=Ge(h?.successRate);return n(M,{children:[n(Ne,{icon:"chart",title:t("usage.overview.title"),desc:t("usage.overview.desc"),actions:g,children:[i.state==="error"?n("div",{class:"fx-sub",children:n("div",{class:"fx-msg is-error",role:"alert",children:[n("span",{children:wt(zt(i.fail),t)}),n("button",{type:"button",class:"fx-link",onClick:()=>p(w=>w+1),children:t("common.retry")})]})}):n("div",{class:`fx-stats fx-block${l&&h?" is-refreshing":""}`,"aria-busy":l||void 0,children:[n(ms,{label:t("usage.requests"),value:h?ze(Ge(h.totalRequests)??0,o):null,testId:"usage-requests"}),n(ms,{label:t("usage.successRate"),value:h?x===null?"\u2014":`${x.toFixed(1)}%`:null}),n(ms,{label:t("usage.consumption"),value:h?m(h.totalPointsCost):null,sub:t("usage.ofToday"),testId:"usage-consumption"})]}),f&&n("div",{class:"fx-sub fx-sub--tight",children:n(de,{children:t(f)})})]}),i.state!=="error"&&n(M,{children:[n(Ne,{icon:"gauge",title:t("usage.byModel.title"),desc:t("usage.byModel.desc"),children:n(Lu,{loading:!h,empty:t("usage.empty"),head:[t("usage.col.model"),t("usage.col.requests"),t("usage.col.consumption")],rows:v.map(w=>[w.modelName||w.modelId||"\u2014",ze(Ge(w.count)??0,o),m(w.pointsCost)])})}),n(Ne,{icon:"laptop",title:t("usage.byApp.title"),desc:t("usage.byApp.desc"),children:n(Lu,{loading:!h,empty:t("usage.empty"),head:[t("usage.col.app"),t("usage.col.requests"),t("usage.col.consumption")],rows:b.map(w=>[Ou(w.projectSource,t("usage.appUnknown")),ze(Ge(w.count)??0,o),m(w.pointsCost)])})})]})]})}var Wv={tangu:"Tangu","ai-studio":"Forsion AI Studio",desktop:"Forsion Desktop",amadeus:"Amadeus",notebase:"Notebase",calendar:"Forsion Calendar",chat:"Forsion Chat",desk:"Forsion Desk","photo-studio":"Photo Studio",connect:"Forsion Connect"},Ou=(e,t)=>!e||e==="unknown"?t:Wv[e]??e;function ms(e){return n("div",{class:"fx-stat",children:[n("span",{class:"fx-stat-label",children:e.label}),e.value===null?n("span",{class:"fx-skel fx-skel--stat"}):n("strong",{class:"fx-stat-value","data-testid":e.testId,children:e.value}),e.sub&&n("span",{class:"fx-stat-sub",children:e.sub})]})}function Lu(e){return e.loading?n("div",{class:"fx-sub",children:[n("span",{class:"fx-skel fx-skel--row"}),n("span",{class:"fx-skel fx-skel--row"})]}):e.rows.length?n("div",{class:"fx-table-wrap fx-block",children:n("table",{class:"fx-table",children:[n("thead",{children:n("tr",{children:e.head.map((t,o)=>n("th",{class:o?"is-num":"",children:t},o))})}),n("tbody",{children:e.rows.map((t,o)=>n("tr",{children:t.map((r,a)=>n("td",{class:a?"is-num":"",children:r},a))},o))})]})}):n(At,{children:e.empty})}function Vv(e){let{t,locale:o}=se(),r=$e(),[a,i]=C(e.base.logs??[]),[s,l]=C(e.base.total),c=ve();W(()=>{i(e.base.logs??[]),l(e.base.total)},[e.base]);let d=()=>void c.run(async()=>{let u=await q(`/token-quota/my/logs?limit=${Du}&offset=${a.length}`);if(!u.ok)return{error:zt(u)};let f=Array.isArray(u.data?.logs)?u.data.logs:[];r.current&&(i(m=>[...m,...f]),l(m=>f.length?Ge(u.data?.total)??m:a.length))}),p=e.base.dailyLimit;return n(Ne,{icon:"clock",title:t("usage.recent.title"),desc:t("usage.recent.desc"),children:[e.base.logsFail?n("div",{class:"fx-sub",children:n("div",{class:"fx-msg is-error",role:"alert",children:[n("span",{children:wt(zt(e.base.logsFail),t)}),n("button",{type:"button",class:"fx-link",onClick:e.onRetry,children:t("common.retry")})]})}):a.length===0?n(At,{children:t("usage.recentEmpty")}):n("div",{class:"fx-list fx-block",role:"list",children:a.map((u,f)=>n("div",{class:"fx-list-row",role:"listitem",children:[n("span",{class:"fx-list-main",children:[n("strong",{children:[u.modelName||u.modelId||"\u2014",u.success===!1&&n("span",{class:"fx-tag fx-tag--danger",children:t("usage.failed")})]}),n("small",{children:[Et(u.createdAt,o),Ou(u.projectSource,t("usage.appUnknown"))].join(" \xB7 ")})]}),n("span",{class:"fx-value",children:Ca(u.pointsCost,p)??"\u2014"})]},u.id??f))}),a.length>0&&n("div",{class:"settings-panel-footer fx-footer",children:[n("span",{class:"fx-muted",children:t("usage.shown",{shown:ze(a.length,o),total:ze(Math.max(s,a.length),o)})}),a.length<s&&n(V,{pending:c.pending,onClick:d,children:t("common.loadMore")})]}),c.error&&n("div",{class:"fx-sub fx-sub--tight",children:n(ke,{a:c})})]})}var Fu=["plugin","amadeus-plugin","skill","agent","space","theme"],jv=["zip","github","npm"],Gv=["description","tags","minAppVersion","maxAppVersion","platforms"],Jv=50*1024*1024,Xv=new Set(["market_npm_invalid","market_npm_source","market_github_source","market_not_found","market_zip_required","market_zip_invalid","market_zip_too_large","market_version_required","market_version_invalid","market_version_mismatch","market_version_not_newer","market_icon_invalid","market_duplicate","market_update_pending","market_stale","market_requirements_invalid","market_requirements_mismatch","market_no_release","market_no_changes","market_dryrun_unsupported","internals_raw_reason_required","internals_raw_needs_release"]),Kv=new Set(["no_manifest","type_mismatch","tag_version_mismatch","id_slug_mismatch","engine_slug_mismatch","no_entry","has_node_modules"]),_a=e=>`sub.type.${e.replace("-","_")}`,$u=e=>e==="approved"?"sub.approved":e==="rejected"?"sub.rejected":"sub.pending",bs=e=>e==="github"?"GitHub":e==="npm"?"npm":"ZIP",Yv=e=>e.status==="pending"||!!e.pendingUpdate,Bu=(e,t)=>t==="all"||(t==="pending"?Yv(e):e.status===t),Zv=e=>e>=1024*1024?`${(e/1024/1024).toFixed(1)} MB`:`${Math.max(1,Math.round(e/1024))} KB`,Uu=e=>e.status==="approved"?"sub.updated":"sub.resubmitted",vs=e=>!!e?.some(t=>String(t).trim().toLowerCase()==="internals-raw"),ys=e=>e.trim()?{capabilityReason:e.trim()}:{},Hu=(e,t)=>vs(e?.capabilities)&&!t.trim()?{error:{key:"sub.err.internals_raw_reason_required"}}:null;async function ko(e){let t=ee().cloudInvoke;if(!t)return{ok:!1,out:{error:{key:"err.unavailable"}},code:null,values:{}};let o=await t("cloud:marketSubmit",{...e.id?{id:e.id}:{},...e.dryRun?{dryRun:!0}:{},fields:e.fields,...e.zip?{zip:{name:e.zip.name,data:e.zip.data}}:{}}),r=la(o);if(r.ok)return{ok:!0,data:r.data};r.status===401&&ee().authStatus?.().catch(()=>{});let a=Object.fromEntries(Object.entries(o?.json?.values||{}).filter(([,s])=>typeof s=="string"||typeof s=="number").map(([s,l])=>[s,String(l)]));return{ok:!1,out:r.code==="market_version_not_newer"&&a.version&&a.current?{error:{key:"sub.notNewer",vars:a}}:Xv.has(r.code||"")?{error:{key:`sub.err.${r.code}`}}:qe(r),code:r.code,values:a}}async function qu(e){return e.size>Jv?{error:{key:"sub.errLarge"}}:{name:e.name,size:e.size,data:new Uint8Array(await e.arrayBuffer())}}function Qv(e,t){let o=[e?.minAppVersion&&`\u2265 ${e.minAppVersion}`,e?.maxAppVersion&&`< ${e.maxAppVersion}`].filter(Boolean).join(", "),r=[o&&`Forsion ${o}`,e?.platforms?.length?e.platforms.join(", "):""].filter(Boolean);return r.length?r.join(" \xB7 "):t("sub.reqNone")}function Wu({status:e}){let t=vt();return n("span",{class:`fx-tag ${e==="approved"?"fx-status--resolved":e==="rejected"?"fx-tag--danger":"fx-tag--accent"}`,children:t($u(e))})}function Vu(e){let t=`${e.id}-${e.name}`;return n("label",{class:"fx-sub-field",for:t,children:[n("span",{children:e.label}),e.rows?n("textarea",{id:t,value:e.value,rows:e.rows,maxLength:2e5,onInput:o=>e.onInput(o.currentTarget.value)}):n("input",{id:t,value:e.value,placeholder:e.placeholder,maxLength:e.name==="summary"?2e3:500,onInput:o=>e.onInput(o.currentTarget.value)})]})}function xs({id:e,value:t,required:o,onInput:r}){let a=vt(),i=`${e}-capabilityReason`;return n(M,{children:[n("label",{class:"fx-sub-field",for:i,children:[n("span",{children:a("sub.capReason")}),n("textarea",{id:i,value:t,rows:3,maxLength:2e3,"aria-required":o||void 0,onInput:s=>r(s.currentTarget.value)})]}),o&&n(de,{tone:"warn",children:a("sub.capReasonRequired")}),n(de,{children:a("sub.capReasonHint")})]})}function ju({id:e,file:t,disabled:o,onPick:r}){let a=vt(),[i,s]=C(!1);W(()=>{let c=()=>s(!1);return window.addEventListener("dragend",c),window.addEventListener("drop",c,!0),window.addEventListener("blur",c),()=>{window.removeEventListener("dragend",c),window.removeEventListener("drop",c,!0),window.removeEventListener("blur",c)}},[]);let l=c=>{c&&!o&&r(c)};return n("label",{class:`fx-sub-drop${i?" is-over":""}${t?" is-filled":""}`,for:`${e}-zip`,onDragOver:c=>{c.preventDefault(),o||s(!0)},onDragLeave:()=>s(!1),onDrop:c=>{c.preventDefault(),s(!1),l(c.dataTransfer?.files?.[0])},children:[n(U,{name:t?"box":"upload",size:18}),n("span",{class:"fx-sub-drop-text",children:[n("strong",{children:t?t.name:a("sub.dropTitle")}),n("small",{children:t?a("sub.dropReplace",{size:Zv(t.size)}):a("sub.dropHint")})]}),n("input",{id:`${e}-zip`,class:"fx-sub-file",type:"file",accept:".zip,application/zip",disabled:o,onChange:c=>{l(c.currentTarget.files?.[0]),c.currentTarget.value=""}})]})}function Gu({check:e,update:t}){let o=vt(),r=e.manifest,a=[r?[!0,"sub.checkType",`${o(_a(r.type))} \xB7 ${r.file}`]:[!1,"sub.checkType",o("sub.warn.no_manifest")],...e.version?[[!0,"sub.checkVersion",e.current?`v${e.current} \u2192 v${e.version}`:`v${e.version}`]]:[],[!0,"sub.checkIcon",o(e.icon?"sub.iconYes":"sub.iconNo")],[!0,"sub.checkReadme",o(e.readme?"sub.readmeYes":t?"sub.readmeKeep":"sub.readmeNo")],[!0,"sub.checkReq",Qv(e.metadata,o)],...(e.warnings||[]).filter(i=>i!=="no_manifest"&&Kv.has(i)).map(i=>[!1,"sub.checkWarn",o(`sub.warn.${i}`)])];return n("ul",{class:"fx-sub-checks",children:a.map(([i,s,l])=>n("li",{class:i?"is-ok":"is-warn",children:[n(U,{name:i?"check":"alert",size:14}),n("span",{class:"fx-sub-k",children:o(s)}),n("span",{children:l})]}))})}function ey({item:e,checks:t,onDone:o}){let r=vt(),a=Mn(),i=$e(),s=ve(),[l,c]=C(null),[d,p]=C(null),[u,f]=C(e.capabilityReason||""),m=h=>void s.run(async()=>{c(null),p(null);let v=await qu(h);if(!i.current)return;if(!("data"in v))return v;if(c(v),!t)return;let b=await ko({id:e.id,dryRun:!0,fields:{},zip:v});if(i.current){if(!b.ok)return b.out;p(b.data)}}),g=()=>void s.run(async()=>{if(!l)return;let h=Hu(d,u);if(h)return h;let v=await ko({id:e.id,fields:ys(u),zip:l});if(i.current){if(!v.ok)return v.out;o(Uu(e))}});return n(M,{children:[n(ju,{id:a,file:l,disabled:s.pending,onPick:m}),d&&n(Gu,{check:d,update:!0}),d&&n(de,{children:r(e.status==="approved"?"sub.zipListedNote":"sub.zipUnlistedNote")}),l&&n(xs,{id:a,value:u,required:vs(d?.capabilities),onInput:h=>{f(h),s.clear()}}),l&&n("div",{class:"fx-sub-actions",children:[n(V,{variant:"primary",pending:s.pending,disabled:t&&!d,onClick:g,children:d?.version?r("sub.submitVersion",{version:d.version}):r("sub.submit")}),n(V,{disabled:s.pending,onClick:()=>{c(null),p(null),s.clear()},children:r("common.cancel")})]}),n(ke,{a:s,captchaSection:"submission"})]})}function ty({item:e,onDone:t}){let o=vt(),r=Mn(),a=$e(),i=ve(),[s,l]=C(null),[c,d]=C(e.capabilityReason||""),[p,u]=C(null),f=()=>void i.run(async()=>{l(null),u(null);let h=await ko({id:e.id,dryRun:!0,fields:{}});if(a.current){if(!h.ok){if(h.code==="market_version_not_newer"&&h.values.version){u(h.values);return}return h.out}l(h.data)}}),m=()=>void i.run(async()=>{let h=await ko({id:e.id,fields:ys(c)});if(a.current){if(!h.ok)return h.out;t(Uu(e))}}),g=e.source==="github"?e.githubRepoUrl:e.npmPackage;return n(M,{children:[!s&&n(V,{pending:i.pending,onClick:f,children:[n(U,{name:"refresh",size:13}),o(p?"sub.checkAgain":"sub.checkNew")]}),p&&n(de,{children:o("sub.upToDate",{version:p.version,current:p.current||p.version})}),s&&n(M,{children:[n("div",{class:"fx-sub-upstream",children:[n(U,{name:e.source==="github"?"link":"box",size:18}),n("span",{children:[n("strong",{children:o("sub.upstreamLatest",{version:s.version||""})}),n("small",{children:[g,s.tag&&o("sub.releaseTag",{tag:s.tag}),s.current&&o("sub.storeHas",{version:s.current})].filter(Boolean).join(" \xB7 ")})]})]}),n(de,{children:o(e.source==="github"?"sub.githubNote":"sub.npmNote",{version:s.version||""})}),n(xs,{id:r,value:c,required:!1,onInput:h=>{d(h),i.clear()}}),n("div",{class:"fx-sub-actions",children:[n(V,{variant:"primary",pending:i.pending,onClick:m,children:o("sub.submitVersion",{version:s.version||""})}),n(V,{disabled:i.pending,onClick:()=>{l(null),i.clear()},children:o("common.cancel")})]})]}),n(ke,{a:i,captchaSection:"submission"})]})}function ny({item:e,onDone:t}){let o=vt(),r=Mn(),a=$e(),i=ve(),s=()=>({name:e.name,summary:e.summary||"",description:e.description||"",tags:(e.tags||[]).join(", "),minAppVersion:e.minAppVersion||"",maxAppVersion:e.maxAppVersion||"",platforms:(e.platforms||[]).join(", ")}),[l,c]=C(s),[d,p]=C(new Set),[u,f]=C(!1),m=b=>x=>{c(w=>({...w,[b]:x})),p(w=>new Set([...w,b])),i.clear()},g=()=>void i.run(async()=>{if(!l.name.trim())return{error:{key:"sub.errName"}};if(!d.size)return{error:{key:"sub.err.market_no_changes"}};let b=await ko({id:e.id,fields:{mode:"info",...Object.fromEntries([...d].map(x=>[x,l[x].trim()]))}});if(a.current){if(!b.ok)return b.out;f(!1),t(e.status==="approved"?"sub.infoSubmitted":"sub.resubmitted")}}),h=(b,x,w={})=>n(Vu,{id:r,name:b,label:o(x),value:l[b],onInput:m(b),...w}),v=o("sub.unset");return n("section",{class:"fx-sub-sec",children:[n("div",{class:"fx-sub-sec-bar",children:[n("h4",{children:o("sub.secInfo")}),!u&&n(V,{disabled:!!e.pendingUpdate,title:e.pendingUpdate?o("sub.err.market_update_pending"):void 0,onClick:()=>{c(s()),p(new Set),i.clear(),f(!0)},children:[n(U,{name:"pencil",size:13}),o("sub.edit")]})]}),u?n("form",{class:"fx-sub-form fx-sub-form--inline",onSubmit:b=>{b.preventDefault(),g()},children:[n("fieldset",{disabled:i.pending,children:[n("div",{class:"fx-sub-columns",children:[h("name","sub.name"),h("tags","sub.tags",{placeholder:o("sub.tagsHint")})]}),h("summary","sub.summary"),h("description","sub.description",{rows:3}),n("div",{class:"fx-sub-columns",children:[h("minAppVersion","sub.minAppVersion",{placeholder:"2.13.0"}),h("maxAppVersion","sub.maxAppVersion",{placeholder:o("sub.optional")})]}),h("platforms","sub.platforms",{placeholder:"desktop, android, ios, web"}),n(de,{children:o("sub.requirementsHint")}),n(de,{children:o("sub.infoNote")})]}),n("div",{class:"fx-sub-actions",children:[n(V,{variant:"primary",pending:i.pending,submit:!0,children:o("sub.submitInfo")}),n(V,{disabled:i.pending,onClick:()=>{f(!1),i.clear()},children:o("common.cancel")})]}),n(ke,{a:i,captchaSection:"submission"})]}):n("dl",{class:"fx-sub-kv",children:[n("dt",{children:o("sub.summary")}),n("dd",{children:e.summary||v}),n("dt",{children:o("sub.description")}),n("dd",{class:"fx-sub-clamp",children:e.description||v}),n("dt",{children:o("sub.tags")}),n("dd",{children:e.tags?.length?e.tags.join(", "):v}),n("dt",{children:o("sub.minAppVersion")}),n("dd",{children:e.minAppVersion||v}),n("dt",{children:o("sub.maxAppVersion")}),n("dd",{children:e.maxAppVersion||v}),n("dt",{children:o("sub.platforms")}),n("dd",{children:e.platforms?.length?e.platforms.join(", "):v})]})]})}function oy({item:e,checks:t,notice:o,onBack:r,onDone:a}){let i=vt(),{locale:s}=se(),l=e.pendingUpdate,c=e.rejectedUpdate;return n("div",{class:"fx-sub-detail","data-detail-id":e.id,children:[n("button",{type:"button",class:"btn sm ghost fx-sub-back",onClick:r,children:[n(U,{name:"back",size:13}),i("sub.back")]}),n("div",{class:"fx-sub-dhead",children:[n("div",{class:"fx-sub-item-head",children:[n("strong",{children:e.name}),n(Wu,{status:e.status})]}),n("div",{class:"fx-sub-meta",children:[n("span",{children:i(_a(e.type))}),n("span",{children:bs(e.source)}),e.version&&n("span",{children:["v",e.version]}),n("span",{children:i("sub.downloads",{n:e.downloads||0})})]}),n("div",{children:n(Vt,{text:e.id,label:`${i("sub.identity")} ${e.id.slice(0,8)}`})})]}),o&&n("p",{class:"fx-msg is-ok",role:"status",children:i(o)}),n("section",{class:"fx-sub-sec",children:[n("h4",{children:i("sub.secVersion")}),e.status==="rejected"&&e.reviewNote&&n(de,{tone:"error",children:e.reviewNote}),c&&n(de,{tone:"error",children:[i(c.kind==="info"?"sub.rejectedInfo":"sub.rejectedVersion",{version:c.version}),c.note?`: ${c.note}`:""]}),l?n(M,{children:[n(de,{children:i(l.kind==="info"?"sub.pendingInfo":"sub.pendingVersion",{version:l.version})}),n(de,{children:i("sub.pendingHint")})]}):e.status==="pending"&&e.source!=="zip"?n(de,{children:i("sub.inReview")}):e.source==="zip"?n(ey,{item:e,checks:t,onDone:a}):n(ty,{item:e,onDone:a})]}),n(ny,{item:e,onDone:a}),n("section",{class:"fx-sub-sec",children:[n("h4",{children:i("sub.secHistory")}),n("ul",{class:"fx-sub-time",children:[(e.versions||[]).map(d=>n("li",{children:[n("span",{children:Lt(d.createdAt,s)}),n("span",{children:i("sub.histApproved",{version:d.version})})]},`${d.version}-${d.createdAt}`)),e.createdAt&&n("li",{children:[n("span",{children:Lt(e.createdAt,s)}),n("span",{children:i("sub.histSubmitted")})]})]})]})]})}function ry({checks:e,onDone:t,onBack:o}){let r=vt(),a=Mn(),i=$e(),s=ve(),[l,c]=C("zip"),[d,p]=C({type:"plugin",name:"",summary:"",githubRepoUrl:"",npmPackage:"",description:"",tags:"",minAppVersion:"",maxAppVersion:"",platforms:"",capabilityReason:""}),[u,f]=C(new Set),[m,g]=C(null),[h,v]=C(null),b=T=>F=>{p(B=>({...B,[T]:F})),f(B=>new Set([...B,T])),s.clear()},x=T=>void s.run(async()=>{g(null),v(null);let F=await qu(T);if(!i.current)return;if(!("data"in F))return F;if(g(F),!e)return;let B=await ko({dryRun:!0,fields:{source:"zip"},zip:F});if(!i.current)return;if(!B.ok)return B.out;let N=B.data;v(N);let j=N.manifest;p(_=>({..._,type:!u.has("type")&&j&&Fu.includes(j.type)?j.type:_.type,name:!u.has("name")&&!_.name&&j?.name?j.name:_.name}))}),w=()=>void s.run(async()=>{if(!d.name.trim())return{error:{key:"sub.errName"}};if(l!=="zip"&&!(l==="github"?d.githubRepoUrl:d.npmPackage).trim())return{error:{key:"sub.errSource"}};if(l==="zip"&&!m)return{error:{key:"sub.errZip"}};let T=l==="zip"?Hu(h,d.capabilityReason):null;if(T)return T;let F=l==="github"?{githubRepoUrl:d.githubRepoUrl.trim()}:l==="npm"?{npmPackage:d.npmPackage.trim()}:{},B=await ko({fields:{type:d.type,source:l,name:d.name.trim(),summary:d.summary.trim(),...F,...Object.fromEntries(Gv.map(N=>[N,d[N].trim()])),...ys(d.capabilityReason)},zip:l==="zip"?m:null});if(i.current){if(!B.ok)return B.out;t(String(B.data?.id||""))}}),S=(T,F,B={})=>n(Vu,{id:a,name:T,label:r(F),value:d[T],onInput:b(T),...B});return n("div",{class:"fx-sub-detail",children:[n("button",{type:"button",class:"btn sm ghost fx-sub-back",onClick:o,children:[n(U,{name:"back",size:13}),r("sub.back")]}),n("div",{class:"fx-sub-dhead",children:n("div",{class:"fx-sub-item-head",children:n("strong",{children:r("sub.new")})})}),n("form",{class:"fx-sub-form fx-sub-form--inline",onSubmit:T=>{T.preventDefault(),w()},children:[n("fieldset",{disabled:s.pending,children:[n(Dt,{label:r("sub.source"),value:l,options:jv.map(T=>({value:T,label:bs(T)})),onChange:T=>{c(T),s.clear()}}),l==="zip"?n(M,{children:[n(ju,{id:a,file:m,disabled:s.pending,onPick:x}),h?n(Gu,{check:h,update:!1}):n(de,{children:r("sub.zipHint")})]}):n(M,{children:[l==="github"?S("githubRepoUrl","sub.repo",{placeholder:"https://github.com/owner/repo"}):S("npmPackage","sub.npm",{placeholder:"@scope/plugin-name"}),n(de,{children:r(l==="github"?"sub.repoHint":"sub.npmHint")})]}),n("div",{class:"fx-sub-columns",children:[n("label",{class:"fx-sub-field",for:`${a}-type`,children:[n("span",{children:r("sub.type")}),n("select",{id:`${a}-type`,value:d.type,onChange:T=>b("type")(T.currentTarget.value),children:Fu.map(T=>n("option",{value:T,children:r(_a(T))},T))})]}),S("name","sub.name")]}),S("summary","sub.summary"),S("description","sub.description",{rows:3}),S("tags","sub.tags",{placeholder:r("sub.tagsHint")}),n("div",{class:"fx-sub-columns",children:[S("minAppVersion","sub.minAppVersion",{placeholder:"2.13.0"}),S("maxAppVersion","sub.maxAppVersion",{placeholder:r("sub.optional")})]}),S("platforms","sub.platforms",{placeholder:"desktop, android, ios, web"}),n(de,{children:r("sub.requirementsHint")}),n(xs,{id:a,value:d.capabilityReason,required:l==="zip"&&vs(h?.capabilities),onInput:b("capabilityReason")}),n(de,{children:r("sub.identityHint")}),n(de,{children:r("sub.reviewHint")})]}),n("div",{class:"fx-sub-actions",children:[n(V,{variant:"primary",pending:s.pending,submit:!0,children:r("sub.submit")}),n(V,{disabled:s.pending,onClick:o,children:r("common.cancel")})]}),n(ke,{a:s,captchaSection:"submission"})]})]})}var gs=null,hs=new Set;function Ju(e){let t=!1;for(let o of hs)t=o(e)||t;gs=t?null:{id:e,at:Date.now()}}var ay=()=>{let e=gs;return gs=null,e&&Date.now()-e.at<3e4?e.id:null};function iy({items:e,checks:t,reload:o}){let r=vt(),[a,i]=C("all"),[s,l]=C(()=>{let b=ay();return b&&e.some(x=>x.id===b)?b:null}),[c,d]=C(()=>s!==null),[p,u]=C(null);W(()=>{let b=x=>e.some(w=>w.id===x)?(i("all"),l(x),d(!0),u(null),!0):!1;return hs.add(b),()=>{hs.delete(b)}},[e]);let f=e.filter(b=>Bu(b,a)),m=s==="new"?null:f.find(b=>b.id===s)||f[0]||null,g=b=>{l(b),d(!0),u(null)},h=(b,x)=>{i("all"),l(b),u({id:b,key:x}),o()},v=b=>e.filter(x=>Bu(x,b)).length;return n(Ne,{title:r("sub.mine"),desc:r("sub.desc"),actions:n(M,{children:[n(V,{variant:"primary",disabled:s==="new",onClick:()=>g("new"),children:[n(U,{name:"plus",size:13}),r("sub.new")]}),n(V,{onClick:o,children:r("sub.refresh")})]}),children:!e.length&&s!=="new"?n(At,{children:[n("strong",{children:r("sub.empty")}),n("p",{children:r("sub.emptyHint")})]}):n(M,{children:[!!e.length&&n("div",{class:"fx-sub-filter",children:n(Dt,{label:r("sub.filter"),value:a,onChange:i,options:["all","pending","approved","rejected"].map(b=>({value:b,label:`${r(b==="all"?"sub.all":$u(b))} ${v(b)}`}))})}),n("div",{class:"fx-sub-cq",children:n("div",{class:`fx-sub-split${c?" is-picked":""}`,children:[n("nav",{class:"fx-sub-list","aria-label":r("sub.mine"),children:f.length?f.map(b=>n("button",{type:"button","data-submission-id":b.id,class:`fx-sub-li${b.id===m?.id?" is-on":""}`,"aria-current":b.id===m?.id||void 0,onClick:()=>g(b.id),children:[n("span",{class:"fx-sub-li-top",children:[n("strong",{children:b.name}),n(Wu,{status:b.status})]}),n("span",{class:"fx-sub-li-meta",children:[r(_a(b.type)),bs(b.source),b.version&&`v${b.version}`].filter(Boolean).join(" \xB7 ")}),b.pendingUpdate&&n("span",{class:"fx-sub-li-meta",children:r(b.pendingUpdate.kind==="info"?"sub.pendingInfo":"sub.pendingVersion",{version:b.pendingUpdate.version})})]},b.id)):n("p",{class:"fx-note",children:r(e.length?"sub.noResults":"sub.empty")})}),s==="new"?n(ry,{checks:t,onBack:()=>{l(null),d(!1)},onDone:b=>h(b,"sub.submitted")}):m?n(oy,{item:m,checks:t,notice:p?.id===m.id?p.key:null,onBack:()=>d(!1),onDone:b=>h(m.id,b)},m.id):n("div",{class:"fx-sub-detail",children:n("p",{class:"fx-note",children:r("sub.noResults")})})]})})]})})}function Xu(){let e=dt(()=>q("/market/mine"));switch(e.state){case"loading":return n(nt,{});case"signedOut":return n(mt,{});case"error":return n(yt,{error:e.error,onRetry:e.retry});case"ready":return n(iy,{items:e.data?.items||[],checks:e.data?.dryRun===!0,reload:e.reload})}}var Qn=Object.freeze({payer:"visitor",perVisitorDaily:20,pageDailyPoints:300,onExhausted:"visitor",models:[]}),wo=(e,t)=>typeof e=="number"&&Number.isFinite(e)?Math.round(e):t,Aa=e=>!!e&&typeof e=="object"&&!Array.isArray(e);function qo(e){return{payer:e?.payer==="author"?"author":"visitor",perVisitorDaily:Math.max(1,wo(e?.perVisitorDaily,Qn.perVisitorDaily)),pageDailyPoints:Math.max(1,wo(e?.pageDailyPoints,Qn.pageDailyPoints)),onExhausted:e?.onExhausted==="pause"?"pause":"visitor",models:Array.isArray(e?.models)?e.models.filter(t=>typeof t=="string"):[]}}function Ta(e,t){return e.payer===t.payer&&e.perVisitorDaily===t.perVisitorDaily&&e.pageDailyPoints===t.pageDailyPoints&&e.onExhausted===t.onExhausted&&e.models.length===t.models.length&&e.models.every((o,r)=>o===t.models[r])}var ks=e=>Math.max(1,wo(e?.perVisitorMax,50)),Ea=e=>Math.max(1,wo(e?.pageDailyMax,2e4));function ws(e,t){return{...e,perVisitorDaily:Math.min(ks(t),Math.max(1,wo(e.perVisitorDaily,Qn.perVisitorDaily))),pageDailyPoints:Math.min(Ea(t),Math.max(1,wo(e.pageDailyPoints,Qn.pageDailyPoints)))}}var Ku=e=>(e?.models||[]).filter(t=>t?.isDefault).map(t=>t.id);function zs(e,t,o){return e.models.length?e.models.includes(o):Ku(t).includes(o)}function Yu(e,t,o){let r=new Set((t?.models||[]).map(s=>s.id)),a=(e.models.length?e.models:Ku(t)).filter(s=>r.has(s)),i=a.includes(o)?a.filter(s=>s!==o):[...a,o];return i.length?{...e,models:i}:e}var Zu=e=>e.type==="image"||e.type==="image_gen";function Qu(e,t=Date.now()){let o=e?.cooldownUntil?Date.parse(e.cooldownUntil):NaN;return Number.isFinite(o)&&o>t}function ep(e,t){let o=Math.min(Math.max(1,wo(e?.pageDailyPoints,Qn.pageDailyPoints)),Ea(t)),r=Math.max(0,Number(e?.today?.points)||0);return Math.max(0,Math.min(100,Math.round(r/o*100)))}function tp(e){let t=Number(e?.balance)||0,o=Math.max((Number(e?.balance)||0)+Math.max(0,Number(e?.monthSpent)||0),Number(e?.lastTopUp?.amount)||0);return o>0&&t<o*.1}function Pa(e,t,o){let r=ws(t,o);return q(`/connect/apps/${encodeURIComponent(e)}/ai`,{method:"PUT",body:{payer:r.payer,perVisitorDaily:r.perVisitorDaily,pageDailyPoints:r.pageDailyPoints,onExhausted:r.onExhausted,models:r.models}})}var np=e=>q(`/connect/apps/${encodeURIComponent(e)}/ai/resume`,{method:"POST"}),sy="forsion-extend:items";function wr(e){let t=De(e?.getLocale?.()),o=ee().openFloatingPanel;if(o){o({id:"market",title:Se(t,"pack.storeTitle"),builtin:"market",params:{storeView:sy,nonce:Date.now()}})?.catch?.(()=>{});return}e?.app?.runCommand?.("open-market")||e?.app?.notify?.(Se(t,"pack.storeUnavailable"))}function op(e){let{t}=se(),[o,r]=C(String(e.value));W(()=>{r(String(e.value))},[e.value]);let a=()=>{let i=Math.min(e.max,Math.max(1,parseInt(o,10)||1));r(String(i)),i!==e.value&&e.onChange(i)};return n("input",{class:e.wide?"is-wide":void 0,type:"text",inputMode:"numeric","aria-label":e.label,title:t("ai.max",{n:e.max}),value:o,disabled:e.disabled,onInput:i=>{let s=i.currentTarget.value.replace(/[^0-9]/g,"").slice(0,7);r(s);let l=parseInt(s,10);l>=1&&l<=e.max&&l!==e.value&&e.onChange(l)},onBlur:a,onKeyDown:i=>{i.key==="Enter"&&a()}})}function rp(e){let{t}=se(),o=e.model,r=n(M,{children:[e.on&&n(U,{name:"check",size:11}),Zu(o)?`${t("ai.modelImage")} \xB7 ${o.name||o.id}`:o.name||o.id,o.isDefault&&n("em",{children:t("ai.modelDefault")})]});return e.onClick?n("button",{type:"button",class:`fx-pub-chip${e.on?" is-on":""}`,"aria-pressed":e.on,disabled:e.disabled,onClick:e.onClick,children:r}):n("span",{class:`fx-pub-chip${e.on?" is-on":""}`,children:r})}function Ia(e){let{t,locale:o}=se(),r=Mn(),{draft:a,ap:i}=e,s=i.enabled!==!1,l=s&&a.payer==="author",c=h=>e.onChange(ws({...a,...h},i)),d=(i.models||[]).filter(h=>h&&typeof h.id=="string"),p=(i.visitorModels||[]).filter(h=>h&&typeof h.id=="string"),u=d.filter(h=>zs(a,i,h.id)).length,f=(e.methods||[]).filter(Boolean),m=e.cooldownUntil&&Date.parse(e.cooldownUntil)>Date.now()?e.cooldownUntil:null,g=Number(i.balance)||0;return n("div",{class:"fx-pub-ai","data-fx-ai":l?"author":"visitor",children:[n("div",{class:"fx-pub-ai-head",children:[n(U,{name:"sparkles",size:13}),n("b",{children:"AI"}),f.length>0&&n("small",{children:f.join(" \xB7 ")})]}),s&&n("div",{class:"fx-pub-row",children:[n("span",{class:"fx-pub-label",children:t("ai.whoPays")}),n(Dt,{value:a.payer,label:t("ai.whoPays"),options:[{value:"visitor",label:t("ai.payer.visitor")},{value:"author",label:t("ai.payer.author")}],onChange:h=>{e.disabled||c({payer:h})}})]}),l&&n(M,{children:[n("div",{class:"fx-pub-row",children:[n("span",{class:"fx-pub-label",children:t("ai.perVisitor")}),n("span",{class:"fx-pub-num",children:[t("ai.perVisitorPre")," ",n(op,{value:a.perVisitorDaily,max:ks(i),label:t("ai.perVisitor"),disabled:e.disabled,onChange:h=>c({perVisitorDaily:h})})," ",t("ai.perVisitorPost")]})]}),n("div",{class:"fx-pub-row",children:[n("span",{class:"fx-pub-label",children:t("ai.page")}),n("span",{class:"fx-pub-num",children:[t("ai.pagePre")," ",n(op,{wide:!0,value:a.pageDailyPoints,max:Ea(i),label:t("ai.page"),disabled:e.disabled,onChange:h=>c({pageDailyPoints:h})})," ",t("ai.pagePost")]})]}),n("div",{class:"fx-pub-row is-top",children:[n("span",{class:"fx-pub-label",id:`${r}-ex`,children:t("ai.whenUsedUp")}),n("div",{class:"fx-pub-radio",role:"radiogroup","aria-labelledby":`${r}-ex`,children:["visitor","pause"].map(h=>n("label",{children:[n("input",{type:"radio",name:`${r}-ex`,value:h,checked:a.onExhausted===h,disabled:e.disabled,onChange:()=>c({onExhausted:h})}),n("i",{"aria-hidden":"true"}),t(h==="visitor"?"ai.exhausted.visitor":"ai.exhausted.pause")]},h))})]})]}),(l?d:p).length>0&&n("div",{class:"fx-pub-row is-top",children:[n("span",{class:"fx-pub-label",children:t("ai.models")}),n("div",{class:"fx-pub-chips",role:"group","aria-label":t("ai.models"),children:l?d.map(h=>{let v=zs(a,i,h.id);return n(rp,{model:h,on:v,disabled:e.disabled||v&&u<=1,onClick:()=>e.onChange(Yu(a,i,h.id))},h.id)}):p.map(h=>n(rp,{model:h,on:!0},h.id))})]}),l&&n("div",{class:"fx-pub-budget",children:[t("ai.balance")," ",n("b",{children:t("ai.points",{n:ze(g,o)})}),n("span",{class:"fx-pub-spacer"}),n("button",{type:"button",onClick:e.onBuy,children:t("ai.buy")})]}),l&&(e.unpublished||m)&&n("p",{class:"fx-pub-note is-warn",children:[n(U,{name:"clock",size:11}),m?t("ai.cooldownUntil",{time:Et(m,o)}):t("ai.cooldownNew",{h:Math.max(0,Math.round(Number(i.cooldownHours??24)))})]}),l&&f.includes("forsion.ai.agent")&&n("p",{class:"fx-pub-note",children:[n(U,{name:"alert",size:11}),t("ai.agentNote")]}),n("p",{class:"fx-pub-note",children:[n(U,{name:l?"info":"user",size:11}),t(s?l?"ai.noteAuthor":"ai.noteVisitor":"ai.noteOff")]})]})}var Ra=`
754
+ `;var ho=e=>typeof e=="string"?e:"";function Tb(e){if(!e||typeof e!="object")return null;let t=e,o=typeof t.id=="string"?t.id.trim():typeof t.id=="number"&&Number.isFinite(t.id)?String(t.id):"",r=ho(t.titleZh),a=ho(t.bodyZh);return!o||!r.trim()&&!a.trim()?null:{id:o,titleZh:r,titleEn:ho(t.titleEn).trim()?ho(t.titleEn):null,bodyZh:a,bodyEn:ho(t.bodyEn).trim()?ho(t.bodyEn):null,format:t.format==="html"?"html":"markdown",publishedAt:ho(t.publishedAt)||null}}function Eb(e,t){return t==="en"&&e.bodyEn?{lang:"en",title:e.titleEn??e.titleZh,body:e.bodyEn}:{lang:"zh",title:e.titleZh,body:e.bodyZh}}var Pb=new Ri({gfm:!0,breaks:!0}),Rb=["script","iframe","frame","frameset","object","embed","applet","portal","form","input","textarea","select","option","button","link","meta","base","noscript"],Ib=/^(?:https?:|mailto:|#)/i;function fd(e){return yi.sanitize(e,{FORCE_BODY:!0,RETURN_DOM_FRAGMENT:!0,FORBID_TAGS:Rb,ALLOWED_URI_REGEXP:Ib})}function ji(e,t){let o=t==="markdown"?Pb.parse(e,{async:!1}):e;return fd(o)}var ma=null;function Gi(){if(ma===null)try{let e=fd('<p onclick="1"><a href="javascript:void 0">a</a></p><script>1<\/script><iframe></iframe>');ma=yi.isSupported&&!e.querySelector("script, iframe, [onclick], a[href]")}catch{ma=!1}return ma}function Mb(e){try{let t=new URL(String(e??"").trim());return t.protocol==="http:"||t.protocol==="https:"?t.href:null}catch{return null}}var Lb="http://www.w3.org/1999/xlink";function Hn(e){let t=e.target,o=t&&typeof t.closest=="function"?t.closest("a, area"):null;if(!o||(e.preventDefault(),e.type!=="click"))return;let r=Mb(o.getAttribute("href")??o.getAttributeNS(Lb,"href"));if(r)try{Q().openExternal?.(r)?.catch(()=>{})}catch{}}function ga(e){return e.shadowRoot??e.attachShadow({mode:"open"})}function Db(e){let{ctx:t,ann:o}=e,[r,a]=S(()=>Oe(t.getLocale?.()));$(()=>{a(Oe(t.getLocale?.()));let m=t.subscribeLocale?.(f=>a(Oe(f)));return()=>{typeof m=="function"&&m()}},[t]);let i=Zt(()=>_n(r),[r]),s=Eb(o,r),l=K(null),c=K(null),d=K(null),p=K(null),u=K(e.onClose);return u.current=e.onClose,$(()=>{let m=document.activeElement instanceof HTMLElement?document.activeElement:null;l.current?.focus();let f=h=>{if(h.key==="Escape"){h.preventDefault(),h.stopPropagation(),u.current();return}if(h.key!=="Tab")return;let b=c.current,v=d.current,w=l.current;if(!b||!v||!w)return;let k=document.activeElement;if(!k||!w.contains(k)){h.preventDefault(),(h.shiftKey?v:b).focus();return}h.shiftKey&&(k===b||k===w)?(h.preventDefault(),v.focus()):!h.shiftKey&&k===v&&(h.preventDefault(),b.focus())},g=h=>{let b=l.current;b&&h.target instanceof Node&&!b.contains(h.target)&&b.focus()};return window.addEventListener("keydown",f,!0),document.addEventListener("focusin",g,!0),()=>{window.removeEventListener("keydown",f,!0),document.removeEventListener("focusin",g,!0),m?.isConnected&&m.focus()}},[]),$(()=>{let m=p.current;if(!m)return;let f=ga(m);return f.addEventListener("click",Hn),f.addEventListener("auxclick",Hn),()=>{f.removeEventListener("click",Hn),f.removeEventListener("auxclick",Hn)}},[]),$(()=>{let m=p.current;if(!m)return;let f=document.createElement("style");f.textContent=fa;let g=document.createElement("div");g.className="doc",g.appendChild(ji(s.body,o.format)),ga(m).replaceChildren(f,g)},[s.body,o.format]),n("div",{class:"fx-ann-backdrop",children:[n("style",{children:ud}),n("section",{ref:l,class:"fx-ann",role:"dialog","aria-modal":"true","aria-labelledby":"fx-ann-title","aria-describedby":"fx-ann-body",tabIndex:-1,lang:s.lang==="zh"?"zh-CN":"en","data-announcement-id":o.id,children:[n("button",{ref:c,type:"button",class:"fx-ann-close","aria-label":i("ann.close"),onClick:()=>u.current(),children:n(B,{name:"x",size:16})}),n("div",{class:"fx-ann-eyebrow",children:i("ann.eyebrow")}),n("h2",{id:"fx-ann-title",class:"fx-ann-title",children:s.title}),n("div",{class:"fx-ann-body",children:n("div",{ref:p,id:"fx-ann-body",class:"fx-ann-doc"})}),n("div",{class:"fx-ann-footer",children:n("button",{ref:d,type:"button",class:"fx-ann-ok",onClick:()=>u.current(),children:i("ann.ok")})})]})]})}function Nb(e){try{return new URLSearchParams(e||"").has("window")}catch{return!1}}function Ob(e=document,t=12e3){let o=e.getElementById("tangu-splash");return o?.parentNode?new Promise(r=>{let a=()=>{i.disconnect(),clearTimeout(s),r()},i=new MutationObserver(()=>{o.isConnected||a()});i.observe(o.parentNode,{childList:!0});let s=setTimeout(a,t)}):Promise.resolve()}function md(e,t=window){let o=un(t?.tangu);if(!e||!o?.cloudFetch||!pn(o)||Nb(t.location?.search))return null;let r=0,a=!1,i=null,s=null,l=()=>{s?.done(),s=null},c=Promise.resolve(),d=(m,f)=>{let g=document.createElement("div");g.className="fx-ann-root",document.body.appendChild(g);let h=!1,b=v=>{h||(h=!0,i?.id===m.id&&(i=null),Fe(null,g),g.remove(),f?.done(),v&&(c=H(`/announcements/${encodeURIComponent(m.id)}/seen`,{method:"POST"})))};i={id:m.id,finish:b},Fe(n(Db,{ctx:e,ann:m,onClose:()=>b(!0)}),g)},p=async()=>{let m=++r;await c;let f=await H("/announcements/pending");if(a||m!==r||!f.ok)return;let g=Tb(f.data?.announcement);if(!g||i||!Gi()||(await Ob(),a||m!==r||i))return;let h=e.app?.queuePopup?.();if(h&&(l(),s=h,await h.ready,s===h&&(s=null),a||m!==r||i)){h.done();return}d(g,h)},u=o.onAuthChanged?.(m=>{i?.finish(!1),l(),m?.loggedIn?p():r++});return p(),{check:p,dispose(){a=!0,r++,typeof u=="function"&&u(),i?.finish(!1),l()}}}function gd(e){return typeof e!="string"?{ok:!1,rule:"format"}:e.length<8?{ok:!1,rule:"min"}:e.length>64?{ok:!1,rule:"max"}:/\s/.test(e)?{ok:!1,rule:"space"}:/[a-z]/.test(e)?/[A-Z]/.test(e)?/[^A-Za-z0-9]/.test(e)?{ok:!0}:{ok:!1,rule:"special"}:{ok:!1,rule:"upper"}:{ok:!1,rule:"lower"}}function hd(e){return{length:e.length>=8&&e.length<=64,lower:/[a-z]/.test(e),upper:/[A-Z]/.test(e),special:/[^A-Za-z0-9]/.test(e),space:e.length>0&&!/\s/.test(e)}}var bd={\u5BC6\u7801\u683C\u5F0F\u4E0D\u6B63\u786E:"format","\u5BC6\u7801\u81F3\u5C11 8 \u4F4D":"min","\u5BC6\u7801\u4E0D\u80FD\u8D85\u8FC7 64 \u4F4D":"max",\u5BC6\u7801\u4E0D\u80FD\u5305\u542B\u7A7A\u683C:"space",\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u5C0F\u5199\u5B57\u6BCD:"lower",\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u5927\u5199\u5B57\u6BCD:"upper",\u5BC6\u7801\u5FC5\u987B\u5305\u542B\u7279\u6B8A\u5B57\u7B26:"special"};var vd={no_reset_card:"err.noResetCard",invalid_type:"err.generic",insufficient_points:"err.insufficientPoints",insufficient_main_quota:"err.insufficientMainQuota",background_unavailable:"err.backgroundUnavailable",points_fallback_unavailable:"err.pointsFallbackUnavailable",auto_deduct_removed:"err.pointsFallbackUnavailable",invalid_percent:"err.generic",invalid_request:"err.generic",invalid_invite_code:"err.invalidInviteCode",already_used:"err.inviteAlreadyUsed",window_expired:"err.inviteWindowExpired",ITEM_NOT_FOUND:"backpack.unavailable",ITEM_NOT_ACTIVE:"backpack.unavailable",ITEM_NOT_USABLE:"backpack.notUsable",ITEM_EFFECT_UNAVAILABLE:"backpack.quotaUnavailable",FEATURE_DISABLED:"err.featureDisabled",INSUFFICIENT_POINTS:"err.insufficientPoints",OUT_OF_STOCK:"store.soldOut",LIMIT_REACHED:"store.limitReached",NOT_AVAILABLE:"store.unavailable",NOT_POINTS_PURCHASABLE:"store.unavailable",CAPTCHA_FAILED:"err.captcha",WECHAT_LAST_SIGN_IN:"sec.wechat.lastSignIn",WECHAT_DENIED:"sec.wechat.err.denied",WECHAT_CODE_INVALID:"sec.wechat.err.codeInvalid",WECHAT_NO_UNIONID:"sec.wechat.err.noUnionid",WECHAT_ALREADY_BOUND:"sec.wechat.err.alreadyBound",WECHAT_OTHER_BOUND:"sec.wechat.err.otherBound",WECHAT_UNREACHABLE:"sec.wechat.err.unreachable",WECHAT_BUSY:"sec.wechat.err.unreachable",WECHAT_LOGIN_UNAVAILABLE:"sec.wechat.err.unavailable",GITHUB_NOT_CONFIGURED:"sec.github.unavailable",TIER_NOT_ALLOWED:"wechat.notEligible",DISABLED:"wechat.disabled",machine_username:"profile.blocked.machineUsername",publish_blocked:"profile.blocked.publishBlocked",invalid_settings:"profile.invalid"},yd={"Current password is incorrect":"err.currentPasswordWrong","Current and new password are required":"err.passwordRequired",\u9A8C\u8BC1\u7801\u65E0\u6548\u6216\u5DF2\u8FC7\u671F:"err.codeInvalid","Invalid or expired verification code":"err.codeInvalid",\u8D26\u53F7\u6216\u9A8C\u8BC1\u7801\u9519\u8BEF:"err.codeInvalid",\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801:"err.codeRequired","Email already in use":"err.emailInUse","Phone number already in use":"err.phoneInUse","Invalid email format":"err.emailInvalid","Email is required":"err.emailInvalid","Invalid phone number format":"err.phoneInvalid","Phone number is required":"err.phoneInvalid","Invalid phone number or email format":"err.targetInvalid","Please wait before requesting another code":"err.codeCooldown","Failed to send verification code":"err.codeSendFailed","Invalid target for account deletion":"err.deleteTargetInvalid","\u8EAB\u4EFD\u9A8C\u8BC1\u5931\u8D25\uFF0C\u65E0\u6CD5\u6CE8\u9500\u8D26\u6237":"err.deleteVerifyFailed",\u7BA1\u7406\u5458\u8D26\u53F7\u4E0D\u80FD\u81EA\u52A9\u6CE8\u9500:"err.adminCannotDelete",\u79EF\u5206\u4F59\u989D\u4E0D\u8DB3:"err.insufficientPoints",\u6CA1\u6709\u53EF\u7528\u7684\u91CD\u7F6E\u5361:"err.noResetCard","\u4E3B\u989D\u5EA6\u5DF2\u7528\u5B8C,\u6CA1\u6709\u53EF\u8F6C\u5165\u7684\u989D\u5EA6":"err.insufficientMainQuota",\u540E\u53F0\u989D\u5EA6\u6682\u4E0D\u53EF\u7528:"err.backgroundUnavailable",\u9080\u8BF7\u7801\u65E0\u6548\u6216\u5DF2\u5931\u6548:"err.invalidInviteCode","\u5DF2\u8D85\u8FC7\u6CE8\u518C\u540E 7 \u5929\u7684\u8865\u586B\u671F":"err.inviteWindowExpired",\u4F60\u5DF2\u4F7F\u7528\u8FC7\u9080\u8BF7\u7801:"err.inviteAlreadyUsed","You have already used an invite code":"err.inviteAlreadyUsed","Cannot use your own invite code":"err.inviteOwnCode","Invite code is required":"err.inviteEmpty","code is required":"err.redeemEmpty","Redemption code not found":"err.redeemNotFound","Redemption code is not active":"err.redeemInactive","Redemption code has expired":"err.redeemExpired","Redemption code has reached maximum uses":"err.redeemUsedUp","You have already used this code the maximum number of times":"err.redeemUserLimit",avatar_too_large:"err.avatarTooLarge","description is required":"err.feedbackEmpty","description too long (max 10000 chars)":"err.feedbackTooLong","content is required":"err.replyEmpty","content too long (max 10000 chars)":"err.replyTooLong","Ticket not found":"err.ticketNotFound","Too many attachments (max 5)":"err.tooManyImages","Attachment type not allowed (image / json / text only)":"err.imageType","\u4EBA\u673A\u9A8C\u8BC1\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5":"err.captcha",\u5E94\u7528\u4E0D\u5B58\u5728\u6216\u4E0D\u5C5E\u4E8E\u4F60:"err.webPageGone","\u5E94\u7528\u5DF2\u88AB\u505C\u7528\uFF0C\u65E0\u6CD5\u7533\u8BF7\u4E0A\u67B6":"web.disabledHint",\u6CA1\u6709\u5BF9\u5E94\u7684\u4E0A\u67B6\u7533\u8BF7:"err.listingGone","\u8BF7\u586B\u5199\u5E94\u7528\u7B80\u4ECB\uFF08300 \u5B57\u4EE5\u5185\uFF09":"err.listingSummary"},Ji={format:"pw.rule.format",min:"pw.rule.min",max:"pw.rule.max",space:"pw.rule.space",lower:"pw.rule.lower",upper:"pw.rule.upper",special:"pw.rule.special"};function Fb(e){if(e.code&&vd[e.code])return vd[e.code];if(e.detail){if(yd[e.detail])return yd[e.detail];let t=bd[e.detail];if(t)return Ji[t];if(e.detail.startsWith("Attachment exceeds 5MB"))return"err.imageTooLarge"}return null}function ut(e){let t=Fb(e);return t?{key:t}:Un(e)?{key:"err.signedOut"}:e.status===0?{key:"err.network"}:e.status===401?{key:"err.session"}:e.status===429?{key:"err.tooFrequent"}:e.detail?{raw:e.detail}:e.status>=500?{key:"err.server",vars:{status:e.status}}:{key:"err.generic"}}function xr(e){let t=e.trim();return t?/cancelled\.?$/i.test(t)?null:t==="A sign-in is already in progress."?{key:"err.loginInProgress"}:t.startsWith("\u767B\u5F55\u8D85\u65F6")?{key:"err.loginTimeout"}:t.startsWith("\u767B\u5F55\u7801\u5DF2\u8FC7\u671F")?{key:"err.loginCodeExpired"}:t.startsWith("\u65E0\u6CD5\u8FDE\u63A5")?{key:"err.network"}:t.startsWith("\u4E91\u7AEF\u4E0D\u652F\u6301 CLI \u767B\u5F55")?{key:"err.loginUnsupported"}:t.startsWith("\u8BF7\u5148\u586B\u5199 Forsion \u4E91\u7AEF\u5730\u5740")?{key:"err.noCloudUrl"}:t.startsWith("Account is no longer signed in")?{key:"err.accountGone"}:{raw:t}:{key:"err.generic"}}var Xi=da(null);function ae(){let e=Hi(Xi);if(!e)throw new Error("forsion-extend: page rendered outside its host root");return e}var kt=()=>ae().t;function Le(){let e=K(!0);return $(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var xd={pending:!1,error:null,success:null,captcha:!1};function me(){let e=Le(),[t,o]=S(xd),r=K(!1),a=it(async s=>{if(r.current)return;r.current=!0,o({pending:!0,error:null,success:null,captcha:!1});let l;try{l=await s()}catch(c){l={error:{raw:String(c?.message||c)}}}r.current=!1,e.current&&o({pending:!1,error:l?.error??null,success:l?.success??null,captcha:!!l?.captcha})},[]),i=it(()=>{r.current||o(xd)},[]);return{...t,run:a,clear:i}}var Be=e=>({error:ut(e),captcha:e.status===403&&e.code==="CAPTCHA_FAILED"});function kd(){let[e,t]=S(0),o=K(null);$(()=>()=>{o.current&&clearInterval(o.current)},[]);let r=it((i=60)=>{o.current&&clearInterval(o.current),t(i),o.current=setInterval(()=>{t(s=>s<=1?(o.current&&clearInterval(o.current),o.current=null,0):s-1)},1e3)},[]),a=it(()=>{o.current&&clearInterval(o.current),o.current=null,t(0)},[]);return{left:e,start:r,stop:a}}function pt(e){let[t,o]=S({state:"loading"}),r=K(0),a=K(e);a.current=e;let i=it((c=!1)=>{let d=++r.current;c||o({state:"loading"}),(async()=>{let p;try{p=await a.current()}catch(u){p={ok:!1,status:0,code:null,detail:null,transport:String(u?.message||u)}}d===r.current&&(p.ok?o({state:"ready",data:p.data,gen:d}):Un(p)?o({state:"signedOut"}):(p.status===401&&Q().authStatus?.().catch(()=>{}),o({state:"error",fail:p})))})()},[]);$(()=>{i();let c=Q().onAuthChanged?.(()=>i());return()=>{r.current++,c?.()}},[i]);let s=it(()=>i(),[i]),l=it(()=>i(!0),[i]);switch(t.state){case"ready":{let c=t.gen,d=p=>o(u=>u.state==="ready"&&u.gen===c?{...u,data:p(u.data)}:u);return{state:"ready",data:t.data,reload:l,update:d}}case"error":return{state:"error",error:ut(t.fail),retry:s};default:return t}}var Bb=15*6e4;function Ho(e){let t=K(0),o=K(0),r=K(e);return r.current=e,$(()=>{let a=()=>{let i=Date.now();i>t.current||document.visibilityState==="hidden"||i-o.current<2e3||(o.current=i,r.current?.())};return window.addEventListener("focus",a),document.addEventListener("visibilitychange",a),()=>{window.removeEventListener("focus",a),document.removeEventListener("visibilitychange",a)}},[]),()=>{t.current=Date.now()+Bb}}function ha(e){let t=String(e||"").trim();if(!t)return"";let o=t.startsWith("+")?4:3;return t.length<=o+4?`${t.slice(0,2)}***`:`${t.slice(0,o)}****${t.slice(-4)}`}function ba(e){let t=String(e||"").trim(),o=t.lastIndexOf("@");if(o<=0)return t?`${t.slice(0,1)}***`:"";let r=t.slice(0,o);return`${r.slice(0,r.length<=2?1:2)}***${t.slice(o)}`}function bo(e){let t=String(e||"").trim().toLowerCase()||"free";return t.charAt(0).toUpperCase()+t.slice(1)}var qo=(e,t)=>t==="en"&&e?.nameEn||e?.name||"",wd=(e,t)=>t==="en"&&e?.descriptionEn||e?.description||"",Ub=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function zd(e,t){let o=String(e||"").trim(),r,a,i=/^(\d{4})-(\d{2})-(\d{2})$/.exec(o);if(i)r=Number(i[2]),a=Number(i[3]);else{let s=new Date(o);if(!o||Number.isNaN(s.getTime()))return null;let l=new Intl.DateTimeFormat("en-US",{timeZone:"Asia/Shanghai",month:"numeric",day:"numeric"}).formatToParts(s);r=Number(l.find(c=>c.type==="month")?.value),a=Number(l.find(c=>c.type==="day")?.value)}return!(r>=1&&r<=12)||!(a>=1&&a<=31)?null:t==="zh"?`${r}\u6708${a}\u65E5`:`${Ub[r-1]} ${a}`}var Ki=e=>e==="zh"?"zh-CN":"en-US";function Sd(e){if(e==null||e==="")return null;let t=new Date(typeof e=="string"&&/^\d+$/.test(e)?Number(e):e);return Number.isNaN(t.getTime())?null:t}function It(e,t){let o=Sd(e);return o?new Intl.DateTimeFormat(Ki(t),{year:"numeric",month:"short",day:"numeric"}).format(o):"\u2014"}function Pt(e,t){let o=Sd(e);return o?new Intl.DateTimeFormat(Ki(t),{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).format(o):"\u2014"}function ze(e,t){let o=typeof e=="number"?e:Number(e);return Number.isFinite(o)?new Intl.NumberFormat(Ki(t),{maximumFractionDigits:2}).format(o):"\u2014"}var vo=(e=>(e[e.Border=-1]="Border",e[e.Data=0]="Data",e[e.Function=1]="Function",e[e.Position=2]="Position",e[e.Timing=3]="Timing",e[e.Alignment=4]="Alignment",e))(vo||{}),$b=[0,1],_d=[1,0],Ad=[2,3],Td=[3,2],Hb={L:$b,M:_d,Q:Ad,H:Td},qb=/^\d*$/,Wb=/^[A-Z0-9 $%*+./:-]*$/,Yi="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:",ts=1,ns=40,Cd=3,Vb=3,va=40,jb=10,Ed=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],Pd=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],Zi=class{constructor(t,o,r,a){if(this.version=t,this.ecc=o,t<ts||t>ns)throw new RangeError("Version value out of range");if(a<-1||a>7)throw new RangeError("Mask value out of range");this.size=t*4+17;let i=Array.from({length:this.size}).fill(!1);for(let l=0;l<this.size;l++)this.modules.push(i.slice()),this.types.push(i.map(()=>0));this.drawFunctionPatterns();let s=this.addEccAndInterleave(r);if(this.drawCodewords(s),a===-1){let l=1e9;for(let c=0;c<8;c++){this.applyMask(c),this.drawFormatBits(c);let d=this.getPenaltyScore();d<l&&(a=c,l=d),this.applyMask(c)}}this.mask=a,this.applyMask(a),this.drawFormatBits(a)}size;mask;modules=[];types=[];getModule(t,o){return t>=0&&t<this.size&&o>=0&&o<this.size&&this.modules[o][t]}drawFunctionPatterns(){for(let r=0;r<this.size;r++)this.setFunctionModule(6,r,r%2===0,vo.Timing),this.setFunctionModule(r,6,r%2===0,vo.Timing);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);let t=this.getAlignmentPatternPositions(),o=t.length;for(let r=0;r<o;r++)for(let a=0;a<o;a++)r===0&&a===0||r===0&&a===o-1||r===o-1&&a===0||this.drawAlignmentPattern(t[r],t[a]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(t){let o=this.ecc[1]<<3|t,r=o;for(let i=0;i<10;i++)r=r<<1^(r>>>9)*1335;let a=(o<<10|r)^21522;for(let i=0;i<=5;i++)this.setFunctionModule(8,i,qn(a,i));this.setFunctionModule(8,7,qn(a,6)),this.setFunctionModule(8,8,qn(a,7)),this.setFunctionModule(7,8,qn(a,8));for(let i=9;i<15;i++)this.setFunctionModule(14-i,8,qn(a,i));for(let i=0;i<8;i++)this.setFunctionModule(this.size-1-i,8,qn(a,i));for(let i=8;i<15;i++)this.setFunctionModule(8,this.size-15+i,qn(a,i));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let t=this.version;for(let r=0;r<12;r++)t=t<<1^(t>>>11)*7973;let o=this.version<<12|t;for(let r=0;r<18;r++){let a=qn(o,r),i=this.size-11+r%3,s=Math.floor(r/3);this.setFunctionModule(i,s,a),this.setFunctionModule(s,i,a)}}drawFinderPattern(t,o){for(let r=-4;r<=4;r++)for(let a=-4;a<=4;a++){let i=Math.max(Math.abs(a),Math.abs(r)),s=t+a,l=o+r;s>=0&&s<this.size&&l>=0&&l<this.size&&this.setFunctionModule(s,l,i!==2&&i!==4,vo.Position)}}drawAlignmentPattern(t,o){for(let r=-2;r<=2;r++)for(let a=-2;a<=2;a++)this.setFunctionModule(t+a,o+r,Math.max(Math.abs(a),Math.abs(r))!==1,vo.Alignment)}setFunctionModule(t,o,r,a=vo.Function){this.modules[o][t]=r,this.types[o][t]=a}addEccAndInterleave(t){let o=this.version,r=this.ecc;if(t.length!==ya(o,r))throw new RangeError("Invalid argument");let a=Pd[r[0]][o],i=Ed[r[0]][o],s=Math.floor(Qi(o)/8),l=a-s%a,c=Math.floor(s/a),d=[],p=tv(i);for(let m=0,f=0;m<a;m++){let g=t.slice(f,f+c-i+(m<l?0:1));f+=g.length;let h=nv(g,p);m<l&&g.push(0),d.push(g.concat(h))}let u=[];for(let m=0;m<d[0].length;m++)d.forEach((f,g)=>{(m!==c-i||g>=l)&&u.push(f[m])});return u}drawCodewords(t){if(t.length!==Math.floor(Qi(this.version)/8))throw new RangeError("Invalid argument");let o=0;for(let r=this.size-1;r>=1;r-=2){r===6&&(r=5);for(let a=0;a<this.size;a++)for(let i=0;i<2;i++){let s=r-i,c=(r+1&2)===0?this.size-1-a:a;!this.types[c][s]&&o<t.length*8&&(this.modules[c][s]=qn(t[o>>>3],7-(o&7)),o++)}}}applyMask(t){if(t<0||t>7)throw new RangeError("Mask value out of range");for(let o=0;o<this.size;o++)for(let r=0;r<this.size;r++){let a;switch(t){case 0:a=(r+o)%2===0;break;case 1:a=o%2===0;break;case 2:a=r%3===0;break;case 3:a=(r+o)%3===0;break;case 4:a=(Math.floor(r/3)+Math.floor(o/2))%2===0;break;case 5:a=r*o%2+r*o%3===0;break;case 6:a=(r*o%2+r*o%3)%2===0;break;case 7:a=((r+o)%2+r*o%3)%2===0;break;default:throw new Error("Unreachable")}!this.types[o][r]&&a&&(this.modules[o][r]=!this.modules[o][r])}}getPenaltyScore(){let t=0;for(let i=0;i<this.size;i++){let s=!1,l=0,c=[0,0,0,0,0,0,0];for(let d=0;d<this.size;d++)this.modules[i][d]===s?(l++,l===5?t+=Cd:l>5&&t++):(this.finderPenaltyAddHistory(l,c),s||(t+=this.finderPenaltyCountPatterns(c)*va),s=this.modules[i][d],l=1);t+=this.finderPenaltyTerminateAndCount(s,l,c)*va}for(let i=0;i<this.size;i++){let s=!1,l=0,c=[0,0,0,0,0,0,0];for(let d=0;d<this.size;d++)this.modules[d][i]===s?(l++,l===5?t+=Cd:l>5&&t++):(this.finderPenaltyAddHistory(l,c),s||(t+=this.finderPenaltyCountPatterns(c)*va),s=this.modules[d][i],l=1);t+=this.finderPenaltyTerminateAndCount(s,l,c)*va}for(let i=0;i<this.size-1;i++)for(let s=0;s<this.size-1;s++){let l=this.modules[i][s];l===this.modules[i][s+1]&&l===this.modules[i+1][s]&&l===this.modules[i+1][s+1]&&(t+=Vb)}let o=0;for(let i of this.modules)o=i.reduce((s,l)=>s+(l?1:0),o);let r=this.size*this.size,a=Math.ceil(Math.abs(o*20-r*10)/r)-1;return t+=a*jb,t}getAlignmentPatternPositions(){if(this.version===1)return[];{let t=Math.floor(this.version/7)+2,o=this.version===32?26:Math.ceil((this.version*4+4)/(t*2-2))*2,r=[6];for(let a=this.size-7;r.length<t;a-=o)r.splice(1,0,a);return r}}finderPenaltyCountPatterns(t){let o=t[1],r=o>0&&t[2]===o&&t[3]===o*3&&t[4]===o&&t[5]===o;return(r&&t[0]>=o*4&&t[6]>=o?1:0)+(r&&t[6]>=o*4&&t[0]>=o?1:0)}finderPenaltyTerminateAndCount(t,o,r){return t&&(this.finderPenaltyAddHistory(o,r),o=0),o+=this.size,this.finderPenaltyAddHistory(o,r),this.finderPenaltyCountPatterns(r)}finderPenaltyAddHistory(t,o){o[0]===0&&(t+=this.size),o.pop(),o.unshift(t)}};function Wn(e,t,o){if(t<0||t>31||e>>>t)throw new RangeError("Value out of range");for(let r=t-1;r>=0;r--)o.push(e>>>r&1)}function qn(e,t){return(e>>>t&1)!==0}var kr=class{constructor(t,o,r){if(this.mode=t,this.numChars=o,this.bitData=r,o<0)throw new RangeError("Invalid argument");this.bitData=r.slice()}getData(){return this.bitData.slice()}},Gb=[1,10,12,14],Jb=[2,9,11,13],Xb=[4,8,16,16];function Rd(e,t){return e[Math.floor((t+7)/17)+1]}function Id(e){let t=[];for(let o of e)Wn(o,8,t);return new kr(Xb,e.length,t)}function Kb(e){if(!Md(e))throw new RangeError("String contains non-numeric characters");let t=[];for(let o=0;o<e.length;){let r=Math.min(e.length-o,3);Wn(Number.parseInt(e.substring(o,o+r),10),r*3+1,t),o+=r}return new kr(Gb,e.length,t)}function Yb(e){if(!Ld(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t=[],o;for(o=0;o+2<=e.length;o+=2){let r=Yi.indexOf(e.charAt(o))*45;r+=Yi.indexOf(e.charAt(o+1)),Wn(r,11,t)}return o<e.length&&Wn(Yi.indexOf(e.charAt(o)),6,t),new kr(Jb,e.length,t)}function Zb(e){return e===""?[]:Md(e)?[Kb(e)]:Ld(e)?[Yb(e)]:[Id(ev(e))]}function Md(e){return qb.test(e)}function Ld(e){return Wb.test(e)}function Qb(e,t){let o=0;for(let r of e){let a=Rd(r.mode,t);if(r.numChars>=1<<a)return Number.POSITIVE_INFINITY;o+=4+a+r.bitData.length}return o}function ev(e){e=encodeURI(e);let t=[];for(let o=0;o<e.length;o++)e.charAt(o)!=="%"?t.push(e.charCodeAt(o)):(t.push(Number.parseInt(e.substring(o+1,o+3),16)),o+=2);return t}function Qi(e){if(e<ts||e>ns)throw new RangeError("Version number out of range");let t=(16*e+128)*e+64;if(e>=2){let o=Math.floor(e/7)+2;t-=(25*o-10)*o-55,e>=7&&(t-=36)}return t}function ya(e,t){return Math.floor(Qi(e)/8)-Ed[t[0]][e]*Pd[t[0]][e]}function tv(e){if(e<1||e>255)throw new RangeError("Degree out of range");let t=[];for(let r=0;r<e-1;r++)t.push(0);t.push(1);let o=1;for(let r=0;r<e;r++){for(let a=0;a<t.length;a++)t[a]=es(t[a],o),a+1<t.length&&(t[a]^=t[a+1]);o=es(o,2)}return t}function nv(e,t){let o=t.map(r=>0);for(let r of e){let a=r^o.shift();o.push(0),t.forEach((i,s)=>o[s]^=es(i,a))}return o}function es(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");let o=0;for(let r=7;r>=0;r--)o=o<<1^(o>>>7)*285,o^=(t>>>r&1)*e;return o}function ov(e,t,o=1,r=40,a=-1,i=!0){if(!(ts<=o&&o<=r&&r<=ns)||a<-1||a>7)throw new RangeError("Invalid value");let s,l;for(s=o;;s++){let u=ya(s,t)*8,m=Qb(e,s);if(m<=u){l=m;break}if(s>=r)throw new RangeError("Data too long")}for(let u of[_d,Ad,Td])i&&l<=ya(s,u)*8&&(t=u);let c=[];for(let u of e){Wn(u.mode[0],4,c),Wn(u.numChars,Rd(u.mode,s),c);for(let m of u.getData())c.push(m)}let d=ya(s,t)*8;Wn(0,Math.min(4,d-c.length),c),Wn(0,(8-c.length%8)%8,c);for(let u=236;c.length<d;u^=253)Wn(u,8,c);let p=Array.from({length:Math.ceil(c.length/8)},()=>0);return c.forEach((u,m)=>p[m>>>3]|=u<<7-(m&7)),new Zi(s,t,p,a)}function Dd(e,t){let{ecc:o="L",boostEcc:r=!1,minVersion:a=1,maxVersion:i=40,maskPattern:s=-1,border:l=1}=t||{},c=typeof e=="string"?Zb(e):Array.isArray(e)?[Id(e)]:void 0;if(!c)throw new Error(`uqr only supports encoding string and binary data, but got: ${typeof e}`);let d=ov(c,Hb[o],a,i,s,r),p=rv({version:d.version,maskPattern:d.mask,size:d.size,data:d.modules,types:d.types},l);return t?.invert&&(p.data=p.data.map(u=>u.map(m=>!m))),t?.onEncoded?.(p),p}function rv(e,t=1){if(!t)return e;let{size:o}=e,r=o+t*2;e.size=r,e.data.forEach(i=>{for(let s=0;s<t;s++)i.unshift(!1),i.push(!1)});for(let i=0;i<t;i++)e.data.unshift(Array.from({length:r},s=>!1)),e.data.push(Array.from({length:r},s=>!1));let a=vo.Border;e.types.forEach(i=>{for(let s=0;s<t;s++)i.unshift(a),i.push(a)});for(let i=0;i<t;i++)e.types.unshift(Array.from({length:r},s=>a)),e.types.push(Array.from({length:r},s=>a));return e}function Re(e){return n("section",{class:`settings-panel fx-panel${e.danger?" fx-panel--danger":""}`,"aria-label":e.label,children:[n("div",{class:`settings-panel-head${e.actions?" settings-panel-head--actions":""}`,children:[e.icon&&n("span",{class:"settings-panel-icon",children:n(B,{name:e.icon,size:16})}),n("div",{children:[n("strong",{children:e.title}),e.desc&&n("p",{children:e.desc})]}),e.actions&&n("div",{class:"settings-panel-actions settings-panel-actions--wide",children:e.actions})]}),e.children]})}function $e(e){return n("div",{class:`settings-control-row settings-setting-row fx-row fx-block${e.class?` ${e.class}`:""}`,children:[n("div",{class:"settings-control-copy",children:n("span",{children:[n("strong",{children:e.label}),e.desc&&n("small",{children:e.desc})]})}),e.children!==void 0&&e.children!==null&&n("div",{class:"settings-row-control fx-row-control",children:e.children})]})}function Se(e){return n("div",{class:`fx-sub${e.class?` ${e.class}`:""}`,children:e.children})}function rn(e){return n("button",{type:"button",role:"switch","aria-checked":e.checked,"aria-label":e.label,class:`settings-switch${e.checked?" active":""}`,disabled:e.disabled,onClick:()=>e.onChange(!e.checked),children:n("span",{})})}function W(e){let t=e.variant??"ghost",o=t==="danger-solid"?"btn sm danger fx-danger-solid":`btn sm ${t}`;return n("button",{type:e.submit?"submit":"button",class:o,disabled:e.disabled||e.pending,"aria-busy":e.pending||void 0,"aria-label":e.label,title:e.title,"data-armed":e.armed?"true":void 0,onClick:e.onClick,children:[e.pending&&n(Qt,{}),e.children]})}var xa=5e3;function Mt(e){let[t,o]=S(!1),r=K(null),a=()=>{r.current&&clearTimeout(r.current),r.current=null,o(!1)};$(()=>()=>{r.current&&clearTimeout(r.current)},[]),$(()=>{(e.pending||e.disabled)&&a()},[e.pending,e.disabled]);let i=()=>{if(!t){o(!0),r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{r.current=null,o(!1)},xa);return}a(),e.onConfirm()},s=e.variant??"ghost";return n(W,{variant:t?s==="danger"||s==="danger-solid"?"danger-solid":"primary":s,armed:t,pending:e.pending,disabled:e.disabled,onClick:i,children:t?e.confirmLabel:e.label})}function ye(e){let t=kt(),{a:o}=e;return o.error?n("div",{class:"fx-msg is-error",role:"alert",children:[n("span",{children:ht(o.error,t)}),o.captcha&&n("button",{type:"button",class:"fx-link",onClick:()=>void $n(e.captchaSection??"security"),children:[t("common.openInBrowser")," ",n(B,{name:"external",size:12})]})]}):o.success?n("div",{class:"fx-msg is-ok",role:"status",children:ht(o.success,t)}):null}function se(e){return n("p",{class:`fx-note${e.tone?` is-${e.tone}`:""}`,children:e.children})}function Tt(e){return n("div",{class:"settings-empty-row fx-block",children:e.children})}function wr(e){let t=kt(),o=e.display;return n("div",{class:`fx-quota${o.low?" is-low":""}`,children:[n("div",{class:"fx-quota-top",children:[n("span",{class:"fx-quota-label",children:e.label}),n("span",{class:"fx-quota-value",children:o.unlimited?t("common.unlimited"):o.text})]}),n("div",{class:"fx-bar",role:"progressbar","aria-label":e.label,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":o.pct,"aria-valuetext":o.unlimited?t("common.unlimited"):o.text,children:n("span",{style:{width:`${o.pct}%`}})}),e.note&&n("div",{class:"fx-quota-note",children:e.note})]})}function Ot(e){return n("div",{class:"seg fx-seg",role:"radiogroup","aria-label":e.label,children:e.options.map(t=>n("button",{type:"button",role:"radio","aria-checked":t.value===e.value,class:t.value===e.value?"active":"",onClick:()=>{t.value!==e.value&&e.onChange(t.value)},children:t.label}))})}async function Wo(e){try{return await navigator.clipboard.writeText(e),!0}catch{try{let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();let o=document.execCommand("copy");return t.remove(),o}catch{return!1}}}function jt(e){let t=kt(),[o,r]=S("idle"),a=K(null);$(()=>()=>{a.current&&clearTimeout(a.current)},[]);let i=async()=>{let l=await Wo(e.text);r(l?"copied":"failed"),a.current&&clearTimeout(a.current),a.current=setTimeout(()=>r("idle"),1800)},s=o==="copied"?t("common.copied"):o==="failed"?t("common.copyFailed"):e.label;return n(I,{children:[n(W,{disabled:e.disabled||!e.text,onClick:()=>void i(),label:e.iconOnly?e.label:void 0,title:e.iconOnly?s:void 0,children:[n(B,{name:o==="copied"?"check":e.iconOnly&&o==="failed"?"alert":"copy",size:12}),!e.iconOnly&&s]}),e.iconOnly&&n("span",{class:"fx-sr-only",role:"status",children:o==="idle"?"":s})]})}function av(e){let t=Zt(()=>{try{return Dd(e.value,{ecc:"M",border:2})}catch{return null}},[e.value]);if(!t)return null;let o="";t.data.forEach((a,i)=>a.forEach((s,l)=>{s&&(o+=`M${l} ${i}h1v1h-1z`)}));let r=e.size??148;return n("svg",{class:"fx-qr",width:r,height:r,viewBox:`0 0 ${t.size} ${t.size}`,"shape-rendering":"crispEdges",role:"img","aria-label":e.label,children:[n("rect",{width:t.size,height:t.size,fill:"#fff"}),n("path",{d:o,fill:"#000"})]})}function os(e){let t=kt(),{device:o}=e;return n("div",{class:"fx-device",children:[n(av,{value:o.url,label:t("signin.qrLabel")}),n("div",{class:"fx-device-copy",children:[n("p",{children:t("signin.deviceHint")}),o.userCode&&n("div",{class:"fx-device-code",children:[n("span",{children:t("signin.code")}),n("code",{children:o.userCode})]}),n("div",{class:"fx-inline",children:[n("button",{type:"button",class:"fx-link",onClick:()=>window.open(o.url,"_blank"),children:[t("signin.openLink")," ",n(B,{name:"external",size:12})]}),n(jt,{text:o.url,label:t("signin.copyLink")})]})]})]})}function bt(){let e=kt(),t=me(),[o,r]=S(null);$(()=>Q().onAuthDevice?.(i=>r(i)),[]);let a=()=>void t.run(async()=>{let i=Q().forsionLogin;if(!i)return{error:{key:"err.unavailable"}};try{await i()}catch(s){r(null);let l=xr(St(s));return l?{error:l}:void 0}});return n("section",{class:"settings-panel fx-panel fx-signin","aria-label":e("signin.button"),children:n("div",{class:"settings-state fx-signin-body",children:[n("span",{class:"settings-state-icon",children:n(B,{name:"user",size:18})}),n("p",{class:"fx-signin-lead",children:e("signin.desc")}),n("div",{class:"settings-state-actions",children:n(W,{variant:"primary",pending:t.pending,onClick:a,children:t.pending?e("signin.pending"):e("signin.button")})}),o&&n(os,{device:o}),n(ye,{a:t})]})})}function nt(e){let t=kt(),o=e.panels??2,r=e.rows??2;return n("div",{class:"fx-skeleton","aria-busy":"true","aria-label":t("common.loading"),children:Array.from({length:o},(a,i)=>n("section",{class:"settings-panel fx-panel",children:[n("div",{class:"settings-panel-head",children:[n("span",{class:"fx-skel fx-skel--icon"}),n("div",{children:[n("span",{class:"fx-skel fx-skel--title"}),n("span",{class:"fx-skel fx-skel--line"})]})]}),Array.from({length:r},(s,l)=>n("div",{class:"settings-control-row",children:n("span",{class:"fx-skel fx-skel--row"})},l))]},i))})}function wt(e){let t=kt();return n("section",{class:"settings-panel fx-panel",children:n("div",{class:"settings-state fx-error-state",role:"alert",children:[n("span",{class:"settings-state-icon",children:n(B,{name:"alert",size:18})}),n("strong",{children:t("common.loadFailed")}),n("p",{children:ht(e.error,t)}),n("div",{class:"settings-state-actions",children:n(W,{variant:"primary",onClick:e.onRetry,children:[n(B,{name:"refresh",size:12})," ",t("common.retry")]})})]})})}function sv(e,t){for(var o in t)e[o]=t[o];return e}function Nd(e,t){for(var o in e)if(o!=="__source"&&!(o in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function Od(e,t){this.props=e,this.context=t}(Od.prototype=new zn).isPureReactComponent=!0,Od.prototype.shouldComponentUpdate=function(e,t){return Nd(this.props,e)||Nd(this.state,t)};var Fd=Ee.__b;Ee.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Fd&&Fd(e)};var B0=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;var lv=Ee.__e;Ee.__e=function(e,t,o,r){if(e.then){for(var a,i=t;i=i.__;)if((a=i.__c)&&a.__c)return t.__e==null&&(t.__e=o.__e,t.__k=o.__k||[]),a.__c(e,t)}lv(e,t,o,r)};var Bd=Ee.unmount;function Vd(e,t,o){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=sv({},e)).__c!=null&&(e.__c.__P===o&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Vd(r,t,o)})),e}function jd(e,t,o){return e&&o&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return jd(r,t,o)}),e.__c&&e.__c.__P===t&&(e.__e&&o.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=o)),e}function rs(){this.__u=0,this.o=null,this.__b=null}function Gd(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function ka(){this.i=null,this.l=null}Ee.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Bd&&Bd(e)},(rs.prototype=new zn).__c=function(e,t){var o=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(o);var a=Gd(r.__v),i=!1,s=function(){i||r.__z||(i=!0,o.__R=null,a?a(c):c())};o.__R=s;var l=o.__P;o.__P=null;var c=function(){if(!--r.__u){if(r.state.__a){var d=r.state.__a;r.__v.__k[0]=jd(d,d.__c.__P,d.__c.__O)}var p;for(r.setState({__a:r.__b=null});p=r.o.pop();)p.__P=l,p.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},rs.prototype.componentWillUnmount=function(){this.o=[]},rs.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var o=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Vd(this.__b,o,r.__O=r.__P)}this.__b=null}var a=t.__a&&go(I,null,e.fallback);return a&&(a.__u&=-33),[go(I,null,t.__a?null:e.children),a]};var Ud=function(e,t,o){if(++o[1]===o[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(o=e.i;o;){for(;o.length>3;)o.pop()();if(o[1]<o[0])break;e.i=o=o[2]}};function cv(e){return this.getChildContext=function(){return e.context},e.children}function dv(e){var t=this,o=e.h;if(t.componentWillUnmount=function(){Fe(null,t.v),t.v=null,t.h=null},t.h&&t.h!==o&&t.componentWillUnmount(),!t.v){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.h=o,t.v={nodeType:1,parentNode:o,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},namespaceURI:o.namespaceURI,insertBefore:function(a,i){this.childNodes.push(a),t.h.insertBefore(a,i)},removeChild:function(a){this.childNodes.splice(this.childNodes.indexOf(a)>>>1,1),t.h.removeChild(a)}}}Fe(go(cv,{context:t.context},e.__v),t.v)}function wa(e,t){var o=go(dv,{__v:e,h:t});return o.containerInfo=t,o}(ka.prototype=new zn).__a=function(e){var t=this,o=Gd(t.__v),r=t.l.get(e);return r[0]++,function(a){var i=function(){t.props.revealOrder?(r.push(a),Ud(t,e,r)):a()};o?o(i):i()}},ka.prototype.render=function(e){this.i=null,this.l=new Map;var t=br(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var o=t.length;o--;)this.l.set(t[o],this.i=[1,0,this.i]);return e.children},ka.prototype.componentDidUpdate=ka.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,o){Ud(e,o,t)})};var uv=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,pv=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,fv=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,mv=/[A-Z0-9]/g,gv=typeof document<"u",hv=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};zn.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(zn.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var $d=Ee.event;Ee.event=function(e){return $d&&(e=$d(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e};var Jd,bv={configurable:!0,get:function(){return this.class}},Hd=Ee.vnode;Ee.vnode=function(e){typeof e.type=="string"&&(function(t){var o=t.props,r=t.type,a={},i=r.indexOf("-")==-1;for(var s in o){var l=o[s];if(!(s==="value"&&"defaultValue"in o&&l==null||gv&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var c=s.toLowerCase();s==="defaultValue"&&"value"in o&&o.value==null?s="value":s==="download"&&l===!0?l="":c==="translate"&&l==="no"?l=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?s="ondblclick":c!=="onchange"||r!=="input"&&r!=="textarea"||hv(o.type)?c==="onfocus"?s="onfocusin":c==="onblur"?s="onfocusout":fv.test(s)&&(s=c):c=s="oninput":i&&pv.test(s)?s=s.replace(mv,"-$&").toLowerCase():l===null&&(l=void 0),c==="oninput"&&a[s=c]&&(s="oninputCapture"),a[s]=l}}r=="select"&&(a.multiple&&Array.isArray(a.value)&&(a.value=br(o.children).forEach(function(d){d.props.selected=a.value.indexOf(d.props.value)!=-1})),a.defaultValue!=null&&(a.value=br(o.children).forEach(function(d){d.props.selected=a.multiple?a.defaultValue.indexOf(d.props.value)!=-1:a.defaultValue==d.props.value}))),o.class&&!o.className?(a.class=o.class,Object.defineProperty(a,"className",bv)):o.className&&(a.class=a.className=o.className),t.props=a})(e),e.$$typeof=uv,Hd&&Hd(e)};var qd=Ee.__r;Ee.__r=function(e){qd&&qd(e),Jd=e.__c};var Wd=Ee.diffed;Ee.diffed=function(e){Wd&&Wd(e);var t=e.props,o=e.__e;o!=null&&e.type==="textarea"&&"value"in t&&t.value!==o.value&&(o.value=t.value==null?"":t.value),Jd=null};function Xd(e){return/^[a-z0-9](?:[a-z0-9-]{1,28})?[a-z0-9]$/.test(e)&&e.length>=3}var as=e=>e.trim().toLowerCase();function is(e,t=Date.now()){return e.cooldownUntil&&Date.parse(e.cooldownUntil)>t?{kind:"cooldown",until:e.cooldownUntil}:e.freeRenamesLeft>0?{kind:"free",left:e.freeRenamesLeft}:e.cards>0?{kind:"card",cards:e.cards}:e.card?.available&&e.card.productId?{kind:"buy",productId:e.card.productId,price:e.card.pricePoints}:{kind:"unavailable"}}function ss(e,t){let o=(t||"").replace(/\/+$/,"");return o?`${o}/${encodeURIComponent(e)}`:null}function za(e){if(typeof e!="string"||!/^https?:\/\//i.test(e))return null;try{return new URL(e).origin}catch{return null}}var yo=e=>e.replace(/^https?:\/\//i,"");function Kd(e){let t=(e||"").replace(/\/+$/,"");return t?`${yo(t)}/`:"@"}var ls=!1;function Zd(){ls=!0}function vv(){let e=ls;return ls=!1,e}function Qd(){let{t:e}=ae(),t=Le(),[o,r]=S(null),[a,i]=S(!1),[s,l]=S(null);if($(()=>{(async()=>{let d=await H("/connect/handle");if(!t.current||!d.ok||!d.data?.handle)return;let p=d.data.publicOrigin||null;if(d.data.publicOrigin===void 0){let u=await H("/profile/me");if(!t.current)return;p=u.ok?za(u.data?.profile?.profileUrl):null}r({handle:d.data.handle,pub:p}),vv()&&i(!0)})()},[]),!o)return null;let c=ss(o.handle,o.pub);return n(I,{children:[n($e,{class:"fx-row--wide",label:e("address.label"),desc:s?n("span",{class:"fx-addr-done",role:"status",children:s}):void 0,children:[n("span",{class:"fx-value fx-addr-value",children:c?yo(c):`@${o.handle}`}),n(W,{onClick:()=>{l(null),i(!0)},children:[n(B,{name:"pencil",size:12})," ",e("address.change")]})]}),a&&n(yv,{pub:o.pub,onClose:()=>i(!1),onChanged:d=>{let p=d.publicOrigin||o.pub;r(m=>m&&{...m,handle:d.handle,pub:p});let u=ss(d.handle,p);l(e("address.done",{url:u?yo(u):`@${d.handle}`}))}})]})}var Yd={INSUFFICIENT_POINTS:"address.errPoints",NOT_AVAILABLE:"address.errSoldout",LIMIT_REACHED:"address.errLimit"};function yv(e){let{t,locale:o}=ae(),r=Le(),[a,i]=S(null),[s,l]=S(null),[c,d]=S(""),[p,u]=S({handle:"",state:"idle"}),[m,f]=S(!1),[g,h]=S(null),[b,v]=S(0),w=K(0),k=async()=>{let q=await H("/connect/handle");return r.current&&q.ok&&q.data?.handle?(i(q.data),v(0),q.data):null};$(()=>{k().then(te=>{!te&&r.current&&i(pe=>pe??"failed")}),H("/credits/balance").then(te=>{r.current&&te.ok&&l(Number(te.data?.balance)||0)});let q=te=>{te.key==="Escape"&&e.onClose()};return window.addEventListener("keydown",q),()=>window.removeEventListener("keydown",q)},[]);let x=a&&a!=="failed"?a.handle:"";$(()=>{let q=as(c),te=++w.current,pe=ge=>u({handle:q,state:ge});if(!q){pe("idle");return}if(!Xd(q)){pe("bad");return}if(q===x){pe("same");return}pe("checking");let qe=setTimeout(()=>{H(`/connect/handle/check?handle=${encodeURIComponent(q)}`).then(ge=>{te!==w.current||!r.current||pe(ge.ok?ge.data?.ok?"ok":ge.data?.code==="same"?"same":"bad":"idle")})},300);return()=>clearTimeout(qe)},[c,x]);let T=n("div",{class:"fx-addr-head",children:[n(B,{name:"home",size:16}),n("strong",{children:t("address.title")}),n("button",{type:"button",class:"fx-addr-close","aria-label":t("common.cancel"),title:t("common.cancel"),onClick:e.onClose,children:n(B,{name:"x",size:15})})]}),F=q=>wa(n("div",{class:"fx-addr-backdrop",onClick:te=>{te.target===te.currentTarget&&e.onClose()},children:[n("style",{children:pd}),n("section",{class:"fx-addr",role:"dialog","aria-modal":"true","aria-label":t("address.title"),children:[T,q]})]}),document.body);if(a===null||a==="failed")return F(n("p",{class:"fx-addr-desc",children:t(a===null?"common.loading":"address.loadFailed")}));let V=is(a),D=V.kind==="buy"&&b>0?{kind:"card",cards:b}:V,j=as(c),A=p.handle===j?p.state:j?"checking":"idle",L=A==="ok",U=Kd(a.publicOrigin||e.pub||null),N=D.kind==="buy"&&s!==null&&s<D.price,oe=D.kind==="cooldown"||D.kind==="unavailable",_=D.kind==="card"?t("address.goCard"):D.kind==="buy"?t("address.goBuy",{price:ze(D.price,o)}):t("address.go"),C=D.kind==="cooldown"?["clock",t("address.cooldown",{days:a.cooldownDays}),t("address.cooldownUntil",{date:It(D.until,o)})]:D.kind==="free"?["info",D.left>1?t("address.freeN",{n:D.left}):t("address.freeOne"),t("address.freeAfter")]:D.kind==="card"?["ticket",t("address.card"),t("address.cardHave",{n:D.cards})]:D.kind==="buy"?["ticket",t("address.need"),t("address.price",{price:ze(D.price,o),balance:s===null?"\u2014":ze(s,o)})]:["ticket",t("address.need"),t("address.soldout")],P=(q,te)=>{let pe=te?is(te):null;switch(q.code){case"taken":return{key:"address.errTaken"};case"need_card":return{key:"address.errNeedCard"};case"cooldown":return{key:"address.errCooldown",vars:{date:pe?.kind==="cooldown"?It(pe.until,o):"\u2014"}};case"invalid":case"reserved":case"same":return{key:"address.bad"};default:return ut(q)}},G=async()=>{let q=j;if(!L)return;f(!0),h(null);let te=!1;try{if(D.kind==="buy"){if(!r.current)return;let Ie=await H("/shop/purchase",{method:"POST",body:{productId:D.productId,payMethod:"points"}});if(!r.current)return;if(!Ie.ok){h(Ie.code&&Yd[Ie.code]?{key:Yd[Ie.code]}:ut(Ie));return}te=!0,v(Ze=>Ze+1)}if(!r.current)return;let pe=await H("/connect/handle",{method:"PUT",body:{handle:q}});if(!r.current)return;if(pe.ok&&pe.data?.handle){e.onChanged(pe.data),e.onClose();return}let qe=await k();if(!r.current)return;if(qe&&qe.handle===q){e.onChanged(qe),e.onClose();return}if(pe.ok){h({key:"err.generic"});return}(pe.code==="taken"||pe.code==="invalid"||pe.code==="reserved")&&u({handle:q,state:"bad"});let ge=!qe&&pe.status===0?{key:"address.errUnknown"}:P(pe,qe);h(te?{key:"address.errBought",vars:{reason:ht(ge,t)}}:ge)}finally{r.current&&f(!1)}},Y=A==="checking"?n("span",{class:"fx-addr-check",children:t("address.checking")}):A==="ok"?n("span",{class:"fx-addr-check is-ok",children:[n(B,{name:"check",size:13}),t("address.ok")]}):A==="same"?n("span",{class:"fx-addr-check",children:t("address.same")}):A==="bad"?n("span",{class:"fx-addr-check is-bad",children:t("address.bad")}):null;return F(n(I,{children:[n("p",{class:"fx-addr-desc",children:t("address.desc")}),n("div",{class:"fx-addr-row",children:[n("label",{children:t("address.now")}),n("span",{class:"fx-addr-now",children:[U,n("b",{children:a.handle})]})]}),n("div",{class:"fx-addr-row",children:[n("label",{for:"fx-addr-input",children:t("address.new")}),n("span",{class:"fx-addr-in",children:[n("i",{children:U}),n("input",{id:"fx-addr-input",type:"text",autoFocus:!0,autoComplete:"off",spellcheck:!1,maxLength:30,value:c,placeholder:a.handle,disabled:D.kind==="cooldown"||m,onInput:q=>{d(q.target.value),h(null)},onKeyDown:q=>{q.key==="Enter"&&L&&!oe&&!N&&!m&&G()}})]})]}),n("div",{class:"fx-addr-row fx-addr-under",children:[n("label",{}),n("div",{children:[Y,n("span",{class:"fx-addr-rule",children:t("address.rule")})]})]}),n("div",{class:"fx-addr-cost",children:[n(B,{name:C[0],size:15}),n("span",{children:C[1]}),n("span",{class:"fx-addr-grow"}),n("em",{children:C[2]})]}),N&&n("div",{class:"fx-addr-msg",role:"alert",children:t("address.errPoints")}),g&&n("div",{class:"fx-addr-msg",role:"alert",children:ht(g,t)}),n("div",{class:"fx-addr-foot",children:[n(W,{disabled:m,onClick:e.onClose,children:t("common.cancel")}),n("span",{class:"fx-addr-grow"}),(D.kind==="buy"||D.kind==="unavailable")&&n(W,{onClick:()=>void Cn("storefront"),children:t("address.shop")}),n(W,{variant:"primary",pending:m,disabled:oe||N||!L,onClick:()=>void G(),children:_})]})]}))}var xv=5e3;function eu(){let{t:e,locale:t}=ae(),o=Le(),r=me(),[a,i]=S(null),[s,l]=S(!1),c=K(0),d=K(!1),p=it(async()=>{let h=++c.current;d.current=!0;let b=await H("/wechat-helper/me");d.current=!1,!(!o.current||h!==c.current)&&(b.ok?(i(b.data),l(!1)):b.status===404?i(null):l(!0))},[]);$(()=>{p()},[p]);let u=!!a?.code&&!a.bound;$(()=>{if(!u)return;let h=setInterval(()=>{d.current||p()},xv);return()=>clearInterval(h)},[u,p]);let m=()=>void r.run(async()=>{c.current++;let h=await H("/wechat-helper/code",{method:"POST",body:{locale:t}});if(!h.ok)return Be(h);c.current++,o.current&&i(b=>b&&{...b,code:h.data})}),f=()=>void r.run(async()=>{c.current++;let h=await H("/wechat-helper/binding",{method:"DELETE"});if(!h.ok)return Be(h);o.current&&i(b=>b&&{...b,bound:!1,boundAt:null,code:null}),await p()});if(!a&&s)return n(Re,{icon:"message",title:e("wechat.title"),children:[n(Se,{children:n(se,{tone:"warn",children:e("common.loadFailed")})}),n("div",{class:"settings-panel-footer fx-footer",children:n(W,{onClick:()=>void p(),children:e("common.retry")})})]});if(!a?.enabled)return null;let g=a.contact?e("wechat.contact",{contact:a.contact}):e("wechat.contactUnknown");return n(Re,{icon:"message",title:e("wechat.title"),desc:e("wechat.desc"),children:[a.bound?n($e,{label:e("wechat.status"),desc:e(a.eligible?"wechat.where":"wechat.notEligible"),children:[n("span",{class:"fx-value",children:a.boundAt?e("wechat.boundAt",{date:It(a.boundAt,t)}):e("wechat.bound")}),n(Mt,{label:e("wechat.unbind"),confirmLabel:e("wechat.unbindConfirm"),variant:"danger",pending:r.pending,onConfirm:f})]}):a.eligible?a.code?n(I,{children:[n($e,{label:e("wechat.code"),desc:e("wechat.send",{contact:g}),children:[n("code",{class:"fx-code",children:a.code.code}),n(jt,{text:a.code.code,label:e("wechat.copy"),iconOnly:!0}),n(W,{pending:r.pending,onClick:m,children:e("wechat.newCode")})]}),n(Se,{class:"fx-sub--tight",children:n("p",{class:"fx-muted",role:"status",children:e("wechat.waiting",{time:Pt(a.code.expiresAt,t)})})})]}):n($e,{label:e("wechat.code"),desc:g,children:n(W,{variant:"primary",pending:r.pending,onClick:m,children:e("wechat.getCode")})}):n($e,{label:e("wechat.status"),children:n("span",{class:"fx-value is-empty",children:e("wechat.notEligible")})}),r.error&&n(Se,{class:"fx-sub--tight",children:n(ye,{a:r})})]})}function nu(){let{t:e}=ae(),t=pt(()=>H("/auth/me"));if(t.state==="loading")return n(nt,{panels:2});if(t.state==="signedOut")return n(bt,{});if(t.state==="error")return n(wt,{error:t.error,onRetry:t.retry});let o=t.data;return n(I,{children:[n(Re,{icon:"user",title:e("account.details.title"),desc:e("account.details.desc"),children:[n($e,{label:e("account.details.username"),children:[n("span",{class:"fx-value",children:o.username}),o.role==="ADMIN"&&n("span",{class:"fx-tag",children:e("account.role.admin")})]}),n(Qd,{}),n(tu,{kind:"phone",value:o.phone}),n(tu,{kind:"email",value:o.email})]}),n(eu,{}),n(kv,{}),n(zv,{})]})}function tu(e){let{t,goTo:o}=ae(),r=!!e.value,a=r?e.kind==="phone"?ha(e.value):ba(e.value):t("account.contact.unbound"),i=e.kind==="phone"?t("account.contact.phone"):t("account.contact.email");return n($e,{label:i,children:o?n("button",{type:"button",class:`fx-link-row${r?"":" is-empty"}`,onClick:()=>o("security"),title:t("account.contact.manage"),children:[n("span",{children:a}),n(B,{name:"chevron",size:12})]}):n("span",{class:`fx-value${r?"":" is-empty"}`,children:a})})}function kv(){let{t:e}=ae(),t=Le(),[o,r]=S(null),[a,i]=S(!1),[s,l]=S(null),[c,d]=S(null),p=me(),u=me(),m=me(),f=!Sn(Q()),g=f&&!!Q().authAccounts;$(()=>{let k=0,x=()=>{let V=Q().authAccounts;if(!g||!V)return;let D=++k;i(!1),V().then(j=>{D===k&&r(Array.isArray(j)?j:[])}).catch(()=>{D===k&&i(!0)})};x();let T=Q().onAuthChanged?.(x),F=Q().onAuthDevice?.(V=>d(V));return()=>{k++,T?.(),F?.()}},[]);let h=k=>{l(k),p.run(async()=>{let x=Q().forsionSwitchAccount;if(!x)return{error:{key:"err.unavailable"}};try{await x(k)}catch(T){let F=xr(St(T));return F?{error:F}:void 0}finally{t.current&&l(null)}})},b=()=>void u.run(async()=>{let k=Q().forsionLogin;if(!k)return{error:{key:"err.unavailable"}};d(null);try{await k()}catch(x){t.current&&d(null);let T=xr(St(x));return T?{error:T}:void 0}}),v=()=>void m.run(async()=>{let k=Q().forsionLogout;if(!k)return{error:{key:"err.unavailable"}};try{await k()}catch(x){return{error:{raw:St(x)||e("err.generic")}}}}),w=p.pending||u.pending||m.pending;return n(Re,{icon:f?"laptop":"user",title:e(f?"local.title":"session.title"),desc:e(f?"local.desc":"session.desc"),children:[g&&o===null&&!a&&n(Tt,{children:[n(Qt,{})," ",e("common.loading")]}),a&&n("div",{class:"fx-sub",children:n(se,{tone:"warn",children:e("local.loadFailed")})}),o&&o.length===0&&n(Tt,{children:e("local.empty")}),o&&o.length>0&&n("div",{class:"fx-list fx-block",role:"list",children:o.map(k=>n("div",{class:"fx-list-row",role:"listitem",children:[n("span",{class:"fx-list-icon",children:n(B,{name:"user",size:14})}),n("span",{class:"fx-list-main",children:[n("strong",{children:k.nickname||k.username||"Forsion"}),n("small",{children:[k.username&&k.nickname?k.username:null,wv(k.cloudUrl)].filter(Boolean).join(" \xB7 ")})]}),k.active?n("span",{class:"fx-tag fx-tag--accent",children:[n(B,{name:"check",size:11})," ",e("local.current")]}):n(W,{pending:s===k.id,disabled:w&&s!==k.id,onClick:()=>h(k.id),children:e("local.switch")})]},k.id))}),u.pending&&c&&n("div",{class:"fx-sub",children:n(os,{device:c})}),n("div",{class:"settings-panel-footer fx-footer",children:[n(W,{pending:u.pending,disabled:w&&!u.pending,onClick:b,children:[n(B,{name:"plus",size:12})," ",u.pending?e("signin.pending"):e("local.add")]}),n(W,{pending:m.pending,disabled:w&&!m.pending,onClick:v,children:[n(B,{name:"logout",size:12})," ",e("local.signOut")]})]}),(p.error||u.error||m.error)&&n("div",{class:"fx-sub fx-sub--tight",children:[n(ye,{a:p}),n(ye,{a:u}),n(ye,{a:m})]})]})}function wv(e){try{return new URL(e).host}catch{return e}}function zv(){let{t:e}=ae(),t=me();return n("div",{class:"fx-page-foot",children:[n("button",{type:"button",class:"fx-link",disabled:t.pending,onClick:()=>void t.run(async()=>await $n()?void 0:{error:{key:"err.openFailed"}}),children:[e("account.web.open")," ",n(B,{name:"external",size:12})]}),n("span",{class:"fx-muted",children:e("account.web.desc")}),n(ye,{a:t})]})}var Sv=e=>!!e&&typeof e=="object"&&typeof e.enabled=="boolean";async function Sa(e,t,o=Sv){let r=Q().cloudInvoke;if(!r)throw new Error("no_bridge");let a=await r(e,t);if(!o(a))throw new Error(String(a?.error??"unavailable"));return a}var Cv="https://forsion.net/legal/privacy";function ou(){let{t:e,locale:t}=ae(),o=Le(),[r,a]=S(null),[i,s]=S(!1),[l,c]=S(null),d=me(),p=me(),u=me();if($(()=>{let v=0,w=()=>{let x=++v;Sa("telemetry:get").then(T=>{o.current&&x===v&&(a(T),s(!0))},()=>{o.current&&x===v&&s(!0)})};w();let k=Q().onAuthChanged?.(()=>w());return()=>{v++,k?.()}},[]),!i)return n(nt,{panels:1});if(!r)return n(Tt,{children:e("privacy.unavailable")});let{signedIn:m}=r,f=r.enabled&&r.noticeSeen&&m,g=v=>void d.run(async()=>{try{let w=await Sa("telemetry:set",v?{enabled:!0,noticeSeen:!0}:{enabled:!1});o.current&&(a(w),v||c(null))}catch(w){return{error:{raw:St(w)||e("err.generic")}}}}),h=()=>void p.run(async()=>{try{let v=await Sa("telemetry:sent",void 0,w=>Array.isArray(w?.batches));o.current&&c(v.batches)}catch(v){return{error:{raw:St(v)||e("err.generic")}}}}),b=()=>void u.run(async()=>{try{let v=await Sa("telemetry:delete");return o.current&&(a(v),c(null)),{success:{key:"privacy.delete.done"}}}catch(v){return{error:{key:"privacy.delete.failed",vars:{reason:St(v)||e("err.generic")}}}}});return n(Re,{icon:"shield",title:e("privacy.improve.title"),desc:e("privacy.improve.desc"),children:[n($e,{label:e("privacy.improve.switch"),desc:e("privacy.improve.switchHint"),children:n(rn,{checked:f,disabled:d.pending||!r.available||!m,label:e("privacy.improve.switch"),onChange:g})}),(!r.available||!m||!r.packaged||d.error)&&n(Se,{children:[r.available?m?!r.packaged&&n(se,{children:e("privacy.devBuild")}):n(se,{children:e("privacy.signInFirst")}):n(se,{children:e("privacy.needUpdate")}),n(ye,{a:d})]}),n("div",{class:"settings-control-row fx-row fx-block",children:n("button",{type:"button",class:"fx-link",onClick:()=>{try{Q().openExternal?.(Cv)?.catch(()=>{})}catch{}},children:[e("privacy.policyLink"),n(B,{name:"chevron",size:12})]})}),n($e,{label:e("privacy.sent.title"),desc:r.lastSentAt?e("privacy.sent.last",{time:Pt(r.lastSentAt,t)}):e("privacy.sent.hint"),children:n(W,{pending:p.pending,onClick:h,children:[n(B,{name:"eye",size:12})," ",e("privacy.sent.view")]})}),(l||p.error)&&n(Se,{children:[n(ye,{a:p}),l&&(l.length?n("pre",{class:"fx-sent",children:JSON.stringify(l.map(v=>({at:new Date(v.at).toISOString(),...v.body})),null,2)}):n(se,{children:e("privacy.sent.empty")}))]}),n($e,{label:e("privacy.delete.title"),desc:e("privacy.delete.hint"),children:n(Mt,{label:e("privacy.delete.button"),confirmLabel:e("privacy.delete.confirm"),variant:"danger",pending:u.pending,onConfirm:b})}),(u.error||u.success)&&n(Se,{children:n(ye,{a:u})}),n(Se,{class:"fx-sub--tight",children:n("span",{class:"fx-muted",children:e("privacy.installId",{id:`${r.installId.slice(0,6)}\u2026${r.installId.slice(-4)}`})})})]})}var xo=class extends Error{};async function ru(e,t=256){if(e.size>20971520)throw new xo;let o=URL.createObjectURL(e);try{let r=new Image;await new Promise((p,u)=>{r.onload=()=>p(),r.onerror=()=>u(new Error("image decode failed")),r.src=o});let a=r.naturalWidth,i=r.naturalHeight;if(!a||!i)throw new Error("empty image");if(a*i>5e7)throw new xo;let s=Math.min(1,t/Math.max(a,i)),l=document.createElement("canvas");l.width=Math.max(1,Math.round(a*s)),l.height=Math.max(1,Math.round(i*s));let c=l.getContext("2d");if(!c)throw new Error("canvas unavailable");c.fillStyle="#fff",c.fillRect(0,0,l.width,l.height),c.drawImage(r,0,0,l.width,l.height);let d=l.toDataURL("image/jpeg",.85);if(d.length>262144)throw new xo;return d}finally{URL.revokeObjectURL(o)}}function Ca(e){let t=String(e||"").trim();if(!t)return"?";let o=Array.from(t)[0];return/[㐀-鿿]/.test(o)?o:Array.from(t).slice(0,2).join("").toUpperCase()}var au=["cream","coral","teal","lavender"],iu=["auto","light","dark"],su=["none","mist","contour","dots"],lu=["none","ring","pro"],cu=["early","streak","author","inviter","event"];var cs=e=>!!e&&e.toLowerCase()!=="free";function ds(e,t){let o={...e.settings,...t};return{...e,settings:o,bio:o.bio,links:o.links,skin:o.skin,mode:o.mode,cover:o.cover,frame:o.frame==="pro"&&!cs(e.tier)?"none":o.frame,modules:o.modules.filter(r=>r.show).map(r=>({id:r.id}))}}function us(e,t,o){let r=e.findIndex(s=>s.id===t),a=r+o;if(r<0||a<0||a>=e.length)return e;let i=e.slice();return[i[r],i[a]]=[i[a],i[r]],i}function du(e){let t=e.trim();if(!t)return null;let o=/^[a-z][a-z0-9+.-]*:/i.test(t)?t:`https://${t}`,r;try{r=new URL(o)}catch{return null}if(r.protocol!=="http:"&&r.protocol!=="https:"||!r.hostname.includes("."))return null;let a=r.toString();return a.length<=200?a:null}function ps(e){return e.replace(/^https?:\/\//i,"").replace(/^www\./i,"").replace(/\/$/,"")}function uu(e,t){let o=t==="zh"?[[1e8,"\u4EBF"],[1e4,"\u4E07"]]:[[1e9,"B"],[1e6,"M"],[1e3,"K"]];for(let[r,a]of o)if(e>=r){let i=e/r;return{value:i>=100?String(Math.round(i)):String(Math.round(i*10)/10),unit:a}}return{value:Math.round(e).toLocaleString("en-US"),unit:""}}var pu=e=>e==="zh"?"zh-CN":"en-US";function fu(e,t){let[o,r]=e.split("-").map(Number);if(!o||!r)return[];let a=new Intl.DateTimeFormat(pu(t),{month:"short",timeZone:"UTC"});return Array.from({length:12},(i,s)=>a.format(new Date(Date.UTC(o,r-12+s,1))))}function mu(e,t){let[o,r]=e.split("-").map(Number);return!o||!r?"":new Intl.DateTimeFormat(pu(t),{year:"numeric",month:"short",timeZone:"UTC"}).format(new Date(Date.UTC(o,r-1,1)))}function gu([e,t]){let o=r=>`${String((r%24+24)%24).padStart(2,"0")}:00`;return`${o(e)} \u2013 ${o(t)}`}function hu(e){let t=0,o=Promise.resolve(),r=async a=>{if(a===t)try{let i=await e.read();a===t&&e.apply(i)}catch(i){if(a===t)throw i}};return{read(){let a=t;return o.then(()=>r(a))},write(a){let i=++t,s=o.then(a).then(l=>{i===t&&e.apply(l)});return o=s.catch(()=>i===t?r(i).catch(()=>{}):void 0),s}}}var _v={free:{from:"#E5E7EB",to:"#D1D5DB",text:"#374151"},plus:{from:"#E6E2AC",to:"#C6C88A",text:"#3D4317"},pro:{from:"#F4DEC4",to:"#E0BD9C",text:"#552F14"},max:{from:"#D0E1C9",to:"#9CBD9F",text:"#1F4130"},ultra:{from:"#EBDDF1",to:"#C7D5F3",text:"#36336A"}},Av={from:"#6B7280",to:"#4B5563",text:"#FFFFFF"},Tv=/^#[0-9a-fA-F]{6}$/,vu=e=>!!e&&[e.from,e.to,e.text].every(t=>typeof t=="string"&&Tv.test(t)),bu=e=>typeof e=="string"&&e.trim()?e.trim():void 0;function _a(e){let t={},o={},r={};if(!Array.isArray(e))return t;for(let a of e){let i=typeof a?.tier=="string"?a.tier.toLowerCase():"";i&&(r[i]=(r[i]||0)+1);let s=Number(a?.priceMonthly)||0;!i||!vu(a.badge)||i in o&&o[i]<=s||(t[i]={from:a.badge.from,to:a.badge.to,text:a.badge.text,name:bu(a.name),nameEn:bu(a.nameEn)},o[i]=s)}for(let a of Object.keys(t))r[a]>1&&(t[a]={from:t[a].from,to:t[a].to,text:t[a].text});return t}function yu(e,t){if(!t||!Array.isArray(e))return null;let o=e.find(r=>r?.id===t);return o&&vu(o.badge)?{from:o.badge.from,to:o.badge.to,text:o.badge.text}:null}var ko=(e,t)=>e?.[t]??_v[t]??Av,xu=(e,t,o)=>t==="en"&&e.nameEn||e.name||o,Aa=e=>({background:`linear-gradient(135deg, ${e.from}, ${e.to})`,color:e.text,borderColor:"transparent"});var zu={skill:{key:"profile.work.skill",icon:"sparkles"},agent:{key:"profile.work.agent",icon:"bot"},plugin:{key:"profile.work.plugin",icon:"box"},space:{key:"profile.work.space",icon:"grid"},theme:{key:"profile.work.theme",icon:"palette"},"amadeus-plugin":{key:"profile.work.note",icon:"note"},webapp:{key:"profile.work.webapp",icon:"globe"}},wu={early:"sprout",streak:"flame",author:"box",inviter:"gift",event:"trophy"},ms=e=>!!e&&/^https?:\/\//i.test(e);function Ea(e){if(!ms(e))return;let t=Q().openExternal;t?t(e).catch(()=>{}):window.open(e,"_blank","noopener")}async function Rv(e,t,o){let r=await H(e,{method:t,body:o});if(!r.ok)throw r;if(!r.data?.profile)throw{ok:!1,status:r.status,code:null,detail:null,transport:"bad_response"};return r.data.profile}var Su=e=>e&&typeof e=="object"&&e.ok===!1?ut(e):{raw:String(e?.message||e)};function Cu(){let{t:e}=ae(),t=pt(async()=>{let[r,a,i]=await Promise.all([H("/profile/me"),H("/auth/me"),H("/membership/plans")]);return a.ok?r.ok?r.data?.profile?{ok:!0,status:r.status,data:{profile:r.data.profile,me:a.data,badges:i.ok?_a(i.data):{}}}:{ok:!0,status:404,data:null}:r.status===404?{ok:!0,status:404,data:null}:r:a});if(t.state==="loading")return n(nt,{panels:2,rows:3});if(t.state==="signedOut")return n(bt,{});if(t.state==="error")return n(wt,{error:t.error,onRetry:t.retry});if(!t.data)return n(Re,{icon:"user",title:e("page.profile"),children:n(Tt,{children:e("profile.unsupported")})});let{update:o}=t;return n(Iv,{data:t.data,update:r=>o(a=>a&&r(a))})}function Iv(e){let{t}=ae(),o=Le(),{profile:r,me:a}=e.data,[i,s]=S(null),[l,c]=S(null),[d,p]=S(!1),[u,m]=S(!1),f=me(),g=K(e.update);g.current=e.update;let h=(C,P,G)=>o.current?Rv(C,P,G):Promise.reject(new Error("unmounted")),b=Zt(()=>hu({apply:C=>g.current(P=>({...P,profile:C})),read:()=>h("/profile/me")}),[]),v=r.handle||a.username||r.username,w={...r,username:v,nickname:a.nickname||null},k=r.settings.isPublic,{profileUrl:x}=r,T=x&&za(x)?x:null,F=C=>{o.current&&c({tone:"error",m:Su(C)})},V=()=>{f.run(async()=>{c(null);try{await b.read()}catch(C){F(C)}})},D=C=>{c(null),e.update(P=>({...P,profile:ds(P.profile,C)})),b.write(()=>h("/profile/me","PUT",C)).catch(F)},j=async C=>{e.update(P=>({...P,profile:ds(P.profile,{modules:P.profile.settings.modules.map(G=>({...G,public:C.find(Y=>Y.id===G.id)?.public??G.public}))})})),await b.write(()=>h("/profile/me/visibility","POST",{public:!0,modules:C})),o.current&&(s(null),c({tone:"ok",m:{key:"profile.nowPublic"}}))},A=async()=>{p(!0),c(null);try{return await b.write(()=>h("/profile/me/visibility","POST",{public:!1})),o.current&&c({tone:"ok",m:{key:"profile.nowPrivate"}}),!0}catch(C){return F(C),!1}finally{o.current&&p(!1)}},L=K(Promise.resolve()),U=(C,P)=>{let G=L.current.then(async()=>{if(!o.current)return;let Y=await H("/settings",{method:"PUT",body:C});if(o.current){if(!Y.ok)return c({tone:"error",m:ut(Y)});g.current(q=>({...q,me:{...q.me,...C}})),c({tone:"ok",m:{key:P}})}});return L.current=G,G},N=async C=>{c(null);let P;try{P=await ru(C)}catch(G){return c({tone:"error",m:{key:G instanceof xo?"err.avatarTooLarge":"err.avatarInvalid"}})}await U({avatar:P},"account.avatar.saved")},oe=C=>{c(null),s(P=>P===C?null:C)},_=()=>{m(!0),o.current&&H("/profile/me/notice/dismiss",{method:"POST"})};return n("div",{class:"fx-pf-page",children:[r.defaultPublicNotice&&!u&&k&&T&&n(Re,{icon:"info",label:t("profile.notice.title"),title:t("profile.notice.title"),desc:t("profile.notice.body",{url:yo(T)}),actions:n(I,{children:[n(W,{onClick:()=>{_(),Ea(T)},children:[n(B,{name:"external",size:12})," ",t("profile.notice.look")]}),n(W,{pending:d,onClick:()=>{m(!0),A().then(C=>{!C&&o.current&&m(!1)})},children:[n(B,{name:"lock",size:12})," ",t("profile.notice.private")]}),n(W,{label:t("profile.notice.close"),title:t("profile.notice.close"),onClick:_,children:n(B,{name:"x",size:12})})]})}),n(Re,{icon:k?"globe":"lock",title:t(k?"profile.state.public":"profile.state.private"),desc:k?n("span",{class:"fx-pf-share",children:T?n(I,{children:[n("a",{class:"fx-pf-share-link",href:T,target:"_blank",rel:"noopener noreferrer",title:t("profile.openPublic"),onClick:C=>{C.preventDefault(),Ea(T)},children:[yo(T)," ",n(B,{name:"external",size:12})]}),n(jt,{text:T,label:t("profile.copyLink"),iconOnly:!0},T)]}):n(I,{children:[n("span",{children:t("profile.linkUnavailable")}),n(W,{pending:f.pending,disabled:d,onClick:V,children:t("common.retry")})]})}):t("profile.state.privateDesc"),actions:n(I,{children:[n(W,{onClick:()=>oe("deco"),children:[n(B,{name:"palette",size:12})," ",t("profile.decorate")]}),k?n(W,{pending:d,onClick:()=>void A(),children:[n(B,{name:"lock",size:12})," ",t("profile.makePrivate")]}):n(W,{variant:"primary",onClick:()=>oe("publish"),children:[n(B,{name:"globe",size:12})," ",t("profile.publish")]})]}),children:[i==="publish"&&!k&&n(Mv,{profile:r,url:T,submit:j,onClose:()=>s(null)}),l&&n(Se,{class:"fx-sub--tight",children:n("div",{class:`fx-msg ${l.tone==="ok"?"is-ok":"is-error"}`,role:l.tone==="ok"?"status":"alert",children:ht(l.m,t)})})]}),n("div",{class:"fx-pf-home","data-deco":i==="deco"?"":void 0,children:[n("div",{class:"fx-pf-root",children:n(Ov,{view:w,badges:e.data.badges,avatar:a.avatar||null,pinned:r.settings.pinned,owner:{onAvatar:C=>void N(C),onNickname:C=>{c(null),U({nickname:C},"account.nickname.saved")},onBio:C=>D({bio:C}),onLinks:C=>D({links:C}),onPinned:C=>D({pinned:C}),onInvalidLink:()=>c({tone:"error",m:{key:"profile.linkInvalid"}})}})}),i==="deco"&&n(Lv,{profile:r,onChange:D,onClose:()=>s(null)})]})]})}function Mv(e){let{t}=ae(),o=Le(),{profile:r}=e,[a,i]=S({}),s=r.settings.modules.filter(f=>f.show).map(f=>({...f,public:a[f.id]??f.public})),[l,c]=S(!1),[d,p]=S(null),u=r.canPublish?null:r.publishBlockedReason||"publish_blocked";if(u)return n(Se,{children:[n(se,{children:t(u==="machine_username"?"profile.blocked.machineUsername":"profile.blocked.publishBlocked")}),n("div",{class:"fx-inline fx-pf-foot",children:[u==="machine_username"&&n(W,{variant:"primary",onClick:()=>void $n("profile"),children:[t("profile.goRename")," ",n(B,{name:"external",size:12})]}),n(W,{onClick:e.onClose,children:t("common.cancel")})]})]});let m=async()=>{c(!0),p(null);try{await e.submit(s.map(({id:f,public:g})=>({id:f,public:g})))}catch(f){if(!o.current)return;p(Su(f)),c(!1)}};return n(Se,{children:[e.url&&n("div",{class:"fx-pf-url",children:[n(B,{name:"globe",size:14}),n("span",{children:e.url.replace(/^https?:\/\//i,"")})]}),n(se,{children:t("profile.publishDesc")}),n("div",{class:"fx-pf-checks",children:s.map(f=>n("div",{class:"fx-pf-check",children:[n("div",{children:[t(`profile.mod.${f.id}`),n("small",{children:t(`profile.modDesc.${f.id}`)})]}),n(rn,{checked:f.public,disabled:l,label:`${t(`profile.mod.${f.id}`)} \xB7 ${t("profile.col.public")}`,onChange:g=>i(h=>({...h,[f.id]:g}))})]},f.id))}),n(se,{children:t("profile.publishNever")}),d&&n("div",{class:"fx-msg is-error",role:"alert",children:ht(d,t)}),n("div",{class:"fx-inline fx-pf-foot",children:[n(W,{variant:"primary",pending:l,onClick:()=>void m(),children:t("profile.publishConfirm")}),n(W,{disabled:l,onClick:e.onClose,children:t("common.cancel")})]})]})}function Lv(e){let{t}=ae(),o=e.profile.settings,r=cs(e.profile.tier),a=(s,l)=>e.onChange({modules:o.modules.map(c=>c.id===s?{...c,...l}:c)}),i=s=>n("span",{class:"fx-pf-thumb",children:s});return n("aside",{class:"fx-pf-deco","aria-label":t("profile.decorate"),children:n(Re,{icon:"palette",title:t("profile.decorate"),actions:n(W,{onClick:e.onClose,children:t("common.done")}),children:n("div",{class:"fx-pf-deco-body",children:[n("h4",{children:t("profile.deco.cover")}),n("div",{class:"fx-pf-opts",children:su.map(s=>n("button",{type:"button",class:"fx-pf-opt","aria-pressed":o.cover===s,onClick:()=>e.onChange({cover:s}),children:[i(n("span",{class:`fx-pf-cv-thumb fx-pf-cv-${s}`})),t(`profile.cover.${s}`)]},s))}),n("h4",{children:t("profile.deco.frame")}),n("div",{class:"fx-pf-opts",children:lu.map(s=>n("button",{type:"button",class:"fx-pf-opt","aria-pressed":o.frame===s,disabled:s==="pro"&&!r,title:s==="pro"&&!r?t("profile.frameProHint"):void 0,onClick:()=>e.onChange({frame:s}),children:[i(n("span",{class:`fx-pf-fr-demo fx-pf-fr-${s}`,children:n("span",{class:"fx-pf-av"})})),t(`profile.frame.${s}`)]},s))}),!r&&n(se,{children:t("profile.frameProHint")}),n("h4",{children:t("profile.deco.modules")}),n("div",{class:"fx-pf-mod-head","aria-hidden":"true",children:[n("span",{children:t("profile.col.show")}),n("span",{children:t("profile.col.public")})]}),o.modules.map((s,l)=>n("div",{class:"fx-pf-mod",children:[n("span",{children:t(`profile.mod.${s.id}`)}),n("button",{type:"button",class:"fx-icon-btn",disabled:l===0,title:t("profile.moveUp"),"aria-label":`${t(`profile.mod.${s.id}`)} \xB7 ${t("profile.moveUp")}`,onClick:()=>e.onChange({modules:us(o.modules,s.id,-1)}),children:n(B,{name:"up",size:13})}),n("button",{type:"button",class:"fx-icon-btn",disabled:l===o.modules.length-1,title:t("profile.moveDown"),"aria-label":`${t(`profile.mod.${s.id}`)} \xB7 ${t("profile.moveDown")}`,onClick:()=>e.onChange({modules:us(o.modules,s.id,1)}),children:n(B,{name:"down",size:13})}),n(rn,{checked:s.show,label:`${t(`profile.mod.${s.id}`)} \xB7 ${t("profile.col.show")}`,onChange:c=>a(s.id,{show:c})}),n(rn,{checked:s.show&&s.public,disabled:!s.show,label:`${t(`profile.mod.${s.id}`)} \xB7 ${t("profile.col.public")}`,onChange:c=>a(s.id,{public:c})})]},s.id)),n(se,{children:t("profile.modulesHint")}),n("h4",{children:t("profile.deco.skin")}),n("div",{class:"fx-pf-opts",children:au.map(s=>n("button",{type:"button",class:"fx-pf-opt","aria-pressed":o.skin===s,onClick:()=>e.onChange({skin:s}),children:[i(n("span",{class:"fx-pf-swatch","data-skin":s})),t(`profile.skin.${s}`)]},s))}),n("h4",{children:t("profile.deco.mode")}),n(Ot,{value:o.mode,label:t("profile.deco.mode"),onChange:s=>e.onChange({mode:s}),options:iu.map(s=>({value:s,label:t(`profile.mode.${s}`)}))}),n(se,{children:t("profile.deco.publicHint")})]})})})}function fs(e){let[t,o]=S(null),r=K(!1),a=K(null),i=t!==null;eo(()=>{i&&a.current?.focus()},[i]);let s=e.class?` ${e.class}`:"";if(t===null)return n("button",{type:"button",class:`fx-pf-ed${s}${e.value?"":" is-empty"}`,title:e.label,"aria-label":e.label,onClick:()=>{r.current=!1,o(e.value)},children:[n("span",{children:e.value||e.placeholder}),n(B,{name:e.value?"pencil":"plus",size:12})]});let l=()=>{let c=t.trim();o(null),!r.current&&c!==e.value&&e.onSave(c)};return n("span",{class:`fx-pf-ed-on${s}`,children:[n("input",{ref:a,class:"fx-input",type:"text",value:t,maxLength:e.maxLength,placeholder:e.placeholder,"aria-label":e.label,onInput:c=>o(c.currentTarget.value),onBlur:l,onKeyDown:c=>{c.isComposing||(c.key==="Enter"?c.currentTarget.blur():c.key==="Escape"&&(c.preventDefault(),r.current=!0,c.currentTarget.blur()))}}),e.counter&&n("small",{children:[Array.from(t).length,"/",e.maxLength]})]})}function Ta(e){return n("section",{class:"fx-pf-sec",style:{order:e.order},children:[n("div",{class:"fx-pf-sec-h",children:[n("h3",{children:e.title}),e.action]}),e.children]})}function Dv(e){let{t}=ae(),{work:o}=e,r=zu[o.type],a=n(I,{children:[n("div",{class:"fx-pf-work-top",children:[n("span",{class:"fx-pf-work-ico",children:n(B,{name:r?.icon??"box",size:17})}),n("div",{children:[n("div",{class:"fx-pf-work-name",children:o.name}),n("div",{class:"fx-pf-work-type",children:r?t(r.key):o.type})]})]}),n("p",{children:o.summary}),(o.countKind!=="visits"||o.count>0)&&n("div",{class:"fx-pf-work-foot",children:[n(B,{name:o.countKind==="visits"?"eye":"download",size:12}),t(o.countKind==="visits"?"profile.workVisits":"profile.workInstalls",{n:o.count.toLocaleString("en-US")})]})]}),i=o.url;return ms(i)?n("a",{class:"fx-pf-work",href:i,onClick:s=>{s.preventDefault(),Ea(i)},children:a}):n("article",{class:"fx-pf-work",children:a})}function Nv(e){let{t}=ae(),o=Le(),[r,a]=S(null),[i,s]=S(()=>e.pinned.map(p=>`${p.kind}:${p.id}`));$(()=>{H("/profile/me/works").then(p=>{o.current&&a(p.ok?p.data?.works??[]:"failed")})},[]);let l=p=>`${p.kind}:${p.id}`,c=p=>s(u=>u.includes(p)?u.filter(m=>m!==p):[...u,p]);if(r===null)return n("div",{class:"fx-pf-card fx-pf-empty",children:[n(Qt,{})," ",t("common.loading")]});if(r==="failed"||r.length===0)return n("div",{class:"fx-pf-card fx-pf-empty",children:[n("p",{children:t(r==="failed"?"common.loadFailed":"profile.worksNone")}),n("div",{class:"fx-inline fx-pf-foot",children:[r!=="failed"&&n(W,{variant:"primary",onClick:()=>void $n("submission"),children:[t("profile.goSubmit")," ",n(B,{name:"external",size:12})]}),n(W,{onClick:e.onClose,children:t("common.cancel")})]})]});let d=()=>{let p=new Map(r.map(u=>[l(u),u]));e.onSave(i.flatMap(u=>{let m=p.get(u);return m?[{kind:m.kind,id:m.id}]:[]})),e.onClose()};return n("div",{class:"fx-pf-card fx-pf-picker",children:[r.map(p=>{let u=l(p),m=i.includes(u),f=zu[p.type];return n("button",{type:"button",class:"fx-pf-pick","aria-pressed":m,disabled:!m&&i.length>=6,onClick:()=>c(u),children:[n("div",{children:[p.name,n("small",{children:[f?t(f.key):p.type," \xB7 ",p.summary]})]}),m&&n(B,{name:"check",size:15})]},u)}),n("div",{class:"fx-inline fx-pf-foot",children:[n("span",{class:"fx-grow",children:i.length?t("profile.worksPicked",{n:i.length,max:6}):t("profile.worksAuto")}),n(W,{variant:"primary",onClick:d,children:t("common.done")}),n(W,{onClick:e.onClose,children:t("common.cancel")})]})]})}function Ov(e){let{t,locale:o}=ae(),{view:r,owner:a}=e,i=K(null),[s,l]=S(!1),c=r.nickname||r.username,d=(r.tier||"free").trim().toLowerCase()||"free",p=d==="free"?null:ko(e.badges,d),u=r.modules.map(C=>C.id),m=C=>u.indexOf(C),f=C=>m(C)>=0,g=r.stats,h=g?uu(g.totalTokens,o):null,b=t("profile.unit.days"),v=g&&h?[[h.value,h.unit,t("profile.stat.tokens")],[String(g.activeDays),b,t("profile.stat.activeDays")],[String(g.longestStreak),b,t("profile.stat.longest")],[String(g.currentStreak),b,t("profile.stat.current")],[g.installs.toLocaleString("en-US"),"",t("profile.stat.installs")]]:[],w=g&&f("stats")&&n("div",{class:"fx-pf-stats",style:{order:m("stats")},children:v.map(([C,P,G])=>n("div",{class:"fx-pf-stat",children:[n("b",{children:[C,P&&n("small",{children:P})]}),n("span",{children:G})]},G))},"stats"),k=u[0]==="stats",x=r.works||[],T=f("works")&&n(Ta,{order:m("works"),title:t("profile.works"),action:!s&&n("button",{type:"button",class:"fx-link",onClick:()=>l(!0),children:t("profile.worksPick")}),children:s?n(Nv,{pinned:e.pinned,onSave:a.onPinned,onClose:()=>l(!1)}):x.length?n("div",{class:"fx-pf-works",children:x.map(C=>n(Dv,{work:C},`${C.kind}:${C.id}`))}):n("div",{class:"fx-pf-card fx-pf-empty",children:t("profile.worksEmpty")})},"works"),F=r.activity,V=f("activity")&&F&&n(Ta,{order:m("activity"),title:t("profile.activity"),children:n("div",{class:"fx-pf-card",children:[n("div",{class:"fx-pf-hm",role:"img","aria-label":t("profile.activityDays",{n:F.activeDays}),children:F.levels.map((C,P)=>n("i",{class:C?`l${C}`:void 0},P))}),n("div",{class:"fx-pf-hm-months","aria-hidden":"true",children:fu(F.end,o).map((C,P)=>n("span",{children:C},P))}),n("div",{class:"fx-pf-hm-foot",children:[n("span",{children:t("profile.activityDays",{n:F.activeDays})}),n("span",{class:"fx-pf-hm-legend","aria-hidden":"true",children:[t("profile.less"),n("i",{}),n("i",{class:"l1"}),n("i",{class:"l2"}),n("i",{class:"l3"}),n("i",{class:"l4"}),t("profile.more")]})]})]})},"activity"),D=(r.badges||[]).filter(C=>cu.includes(C.id)),j=f("badges")&&n(Ta,{order:m("badges"),title:t("profile.badges"),children:D.length?n("div",{class:"fx-pf-card fx-pf-rows",children:D.map(C=>n("div",{class:"fx-pf-brow",children:[n("span",{class:"fx-pf-badge",children:n(B,{name:wu[C.id],size:14})}),n("div",{children:[n("b",{children:t(`profile.badge.${C.id}`)}),n("span",{children:t(`profile.badgeSub.${C.id}`,{value:C.value??""})})]})]},C.id))}):n("div",{class:"fx-pf-card fx-pf-empty",children:t("profile.badgesEmpty")})},"badges"),A=r.insights,L=[];A?.topModel&&L.push([t("profile.insightModel"),A.topModel]),A?.activeHours&&L.push([t("profile.insightHours"),gu(A.activeHours)]);let U=f("insights")&&n(Ta,{order:m("insights"),title:t("profile.insights"),children:L.length?n("div",{class:"fx-pf-card fx-pf-rows",children:L.map(([C,P])=>n("div",{class:"fx-pf-row",children:[n("span",{children:C}),n("b",{children:P})]},C))}):n("div",{class:"fx-pf-card fx-pf-empty",children:t("profile.insightsEmpty")})},"insights"),N=[!k&&w,T,V].filter(Boolean),oe=[j,U].filter(Boolean),_=C=>{if(!C)return;let P=du(C);if(!P)return a.onInvalidLink();r.links.includes(P)||a.onLinks([...r.links,P])};return n("div",{class:"fx-pf","data-cover":r.cover,"data-frame":r.frame,children:[n("div",{class:"fx-pf-cover"}),n("div",{class:"fx-pf-id",children:[n("button",{type:"button",class:"fx-pf-avatar",title:t("account.avatar.change"),"aria-label":t("account.avatar.change"),onClick:()=>i.current?.click(),children:[n("span",{class:"fx-pf-av",children:e.avatar?n("img",{src:e.avatar,alt:""}):n("span",{class:"fx-pf-av-fallback",children:Ca(c)})}),n("span",{class:"fx-pf-av-mask",children:n(B,{name:"pencil",size:18})})]}),n("input",{ref:i,type:"file",accept:"image/png,image/jpeg,image/webp,image/gif,image/avif",hidden:!0,onChange:C=>{let P=C.currentTarget,G=P.files?.[0];P.value="",G&&a.onAvatar(G)}}),n("div",{class:"fx-pf-id-text",children:[n("div",{class:"fx-pf-name",children:[n(fs,{value:c,placeholder:r.username,maxLength:40,label:t("account.nickname.edit"),onSave:C=>{C&&a.onNickname(C)}}),p&&n("span",{class:"fx-tag fx-pf-tier","data-tier":d,style:Aa(p),children:xu(p,o,bo(d))})]}),n("div",{class:"fx-pf-handle",children:["@",r.username]})]}),D.length>0&&f("badges")&&n("div",{class:"fx-pf-badges",children:D.map(C=>n("span",{class:"fx-pf-badge",title:t(`profile.badge.${C.id}`),children:n(B,{name:wu[C.id],size:14})},C.id))})]}),n("div",{class:"fx-pf-sub",children:[n(fs,{class:"fx-pf-bio",value:r.bio,placeholder:t("profile.bioPlaceholder"),maxLength:80,label:t("profile.bio"),counter:!0,onSave:a.onBio}),n("div",{class:"fx-pf-meta",children:[r.joinedMonth&&n("span",{children:[n(B,{name:"calendar",size:13}),t("profile.joined",{date:mu(r.joinedMonth,o)})]}),r.links.map(C=>n("span",{children:[n(B,{name:"link",size:13}),ms(C)?n("a",{href:C,onClick:P=>{P.preventDefault(),Ea(C)},children:ps(C)}):n("span",{children:ps(C)}),n("button",{type:"button",class:"fx-pf-x",title:t("profile.linkRemove"),"aria-label":t("profile.linkRemove"),onClick:()=>a.onLinks(r.links.filter(P=>P!==C)),children:n(B,{name:"x",size:11})})]},C)),r.links.length<2&&n(fs,{value:"",placeholder:t("profile.linkAdd"),maxLength:200,label:t("profile.linkAdd"),onSave:_},r.links.length)]})]}),k&&w,n("div",{class:"fx-pf-body","data-cols":N.length&&oe.length?2:1,children:[n("div",{class:"fx-pf-main",children:N}),oe.length>0&&n("div",{class:"fx-pf-side",children:oe})]})]})}var Pa=null;function _u(e){let t=Q().cloudInvoke;if(t)try{Promise.resolve(t("telemetry:quotaPrompt",{entry:"quota-page",action:e})).catch(()=>{})}catch{}}function Au(e){return Pa=e,e&&_u("shown"),()=>{Pa===e&&(Pa=null)}}function Vo(e){Pa&&_u(e)}function Pu(e={}){let t=pt(async()=>{let[o,r,a]=await Promise.all([H("/membership/my"),H("/features"),H("/membership/plans")]);if(!o.ok)return o;let i=o.data?.membership??null,s=String(i?.tier||"").trim().toLowerCase(),l=!s||s==="free"?null:a.ok?i?.planId?yu(a.data,i.planId)??ko(null,s):ko(_a(a.data),s):ko(null,s);return{ok:!0,status:o.status,data:{membership:i,badge:l,payment:!r.ok||r.data?.payment!==!1}}});return t.state==="loading"?n(nt,{panels:1}):t.state==="signedOut"?null:n(Fv,{membership:t.state==="ready"?t.data.membership:null,badge:t.state==="ready"?t.data.badge:null,failed:t.state==="error",payment:t.state==="ready"&&t.data.payment,modelCap:e.modelCap,onRetry:t.state==="ready"?t.reload:t.retry})}function Fv(e){let{t,locale:o}=ae(),r=me(),a=e.membership&&(e.membership.status===void 0||e.membership.status==="active")?e.membership:null,i=bo(a?.tier),s=i==="Free",l=()=>void r.run(async()=>(Vo("upgrade"),await Cn("membership",void 0,void 0,"quota-page")?void 0:{error:{key:"err.openFailed"}}));return n(Re,{icon:"card",title:t("member.title"),desc:t("member.desc"),actions:e.payment&&!e.failed?n(W,{variant:"primary",pending:r.pending,onClick:l,children:t(s?"member.upgrade":"member.renew")}):void 0,children:[!e.failed&&n("div",{class:"fx-member fx-block",children:[n("span",{class:`fx-tier${s?" fx-tier--free":""}`,"data-tier":i.toLowerCase(),style:s?void 0:Aa(e.badge??ko(null,i.toLowerCase())),children:qo(a?.plan,o)||i}),n("div",{class:"fx-member-copy",children:[n("strong",{children:s?t("member.freeName"):qo(a?.plan,o)||i}),n("span",{class:"fx-muted",children:s?t("member.freeHint"):a?.expiresAt?t("member.expires",{date:It(a.expiresAt,o)}):t("member.noExpiry")}),typeof e.modelCap=="number"&&n("span",{class:"fx-muted","data-testid":"member-model-cap",children:e.modelCap<0?t("member.modelsAll"):t("member.modelsCap",{cap:ze(e.modelCap,o)})})]})]}),!e.failed&&!s&&n(Uv,{}),e.failed&&n("div",{class:"fx-sub",children:n(se,{tone:"warn",children:[t("member.loadFailed")," ",n("button",{type:"button",class:"fx-link",onClick:e.onRetry,children:t("common.retry")})]})}),r.error&&n("div",{class:"fx-sub fx-sub--tight",children:n(ye,{a:r})})]})}var Tu={no_subscription:"member.autorenew.err.none",alipay_error:"member.autorenew.err.alipay",payment_not_configured:"member.autorenew.err.unavailable",subscription_disabled:"member.autorenew.err.unavailable"},Bv=15*6e4,Eu=e=>{let t=e&&typeof e=="object"?e.subscription:null;return!t||typeof t!="object"||t.status!=="active"||typeof t.amount!="number"||!Number.isFinite(t.amount)||typeof t.cancelAtPeriodEnd!="boolean"||t.currentPeriodEnd!=null&&typeof t.currentPeriodEnd!="string"?null:t};function Uv(){let{t:e,locale:t}=ae(),o=Le(),r=me(),[a,i]=S(null),s=K(0),l=K(0),c=K(0),d=it(()=>{let f=++s.current;H("/payment/subscription").then(g=>{if(!o.current||f!==s.current||!g.ok)return;let h=Eu(g.data);h&&!h.cancelAtPeriodEnd&&(l.current=0),i(h)})},[]);if($(()=>{d()},[d]),$(()=>{let f=()=>{let g=Date.now();g>l.current||document.visibilityState==="hidden"||g-c.current<2e3||(c.current=g,d())};return window.addEventListener("focus",f),document.addEventListener("visibilitychange",f),()=>{window.removeEventListener("focus",f),document.removeEventListener("visibilitychange",f)}},[d]),!a)return null;let p=a.currentPeriodEnd?It(a.currentPeriodEnd,t):"\u2014",u=()=>void r.run(async()=>{s.current++;let f=await H("/payment/subscription/cancel",{method:"POST"});return s.current++,f.ok?(l.current=0,o.current&&i(Eu(f.data)),{success:{key:"member.autorenew.canceled"}}):(d(),Tu[String(f.code)]?{error:{key:Tu[String(f.code)]}}:Be(f))}),m=()=>void r.run(async()=>await ld()?(l.current=Date.now()+Bv,{success:{key:"member.autorenew.resumeHint"}}):{error:{key:"err.openFailed"}});return n(I,{children:[n($e,{class:"fx-autorenew",label:e("member.autorenew.title"),desc:a.cancelAtPeriodEnd?e("member.autorenew.off",{date:p}):e("member.autorenew.on",{cycle:e(`member.autorenew.cycle.${a.duration==="quarterly"||a.duration==="yearly"?a.duration:"monthly"}`),amount:a.amount.toFixed(2),date:p}),children:a.cancelAtPeriodEnd?n(W,{pending:r.pending,onClick:m,children:e("member.autorenew.resume")}):n(Mt,{label:e("member.autorenew.cancel"),confirmLabel:e("member.autorenew.cancelConfirm"),pending:r.pending,onConfirm:u})}),n(Se,{class:"fx-autorenew-sub",children:[n(se,{children:e("member.autorenew.refundNote")}),n(ye,{a:r})]})]})}function Je(e){if(typeof e=="number")return Number.isFinite(e)?e:null;if(typeof e=="string"&&e.trim()!==""){let t=Number(e);return Number.isFinite(t)?t:null}return null}function $v(e,t){let o=Je(t);if(o===null||o<0)return null;if(o===0)return 0;let r=Math.max(0,Je(e)??0);return Math.min(100,Math.max(0,Math.floor(r/o*100)))}var Hv=15;function wo(e,t){let o=$v(e,t);if(o===null)return{unlimited:!0,pct:100,text:null,low:!1};let r=Math.max(0,Je(e)??0),a=o===0&&r>0&&(Je(t)??0)>0?"<1%":`${o}%`;return{unlimited:!1,pct:o,text:a,low:o<=Hv}}function Ra(e,t){let o=Je(t);if(o===null||o<=0)return null;let r=Je(e);if(r===null)return null;let a=Math.max(0,r);if(a===0)return"0%";let i=a/o*100;if(i<.1)return"<0.1%";let s=Math.round(i*10)/10;return s<10?`${s}%`:`${Math.round(i).toLocaleString("en-US")}%`}var gs=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0;function zr(e,t){if(!e||typeof e!="object")return null;let o=e;if(!gs(o.input)||!gs(o.output)||!gs(o.cachedInput))return null;let r=a=>ze(a+0,t);return{input:r(o.input),output:r(o.output),cached:r(o.cachedInput)}}function Ru(e,t){if(!zr(e,t))return null;let o=e;return ze((1e4*o.input+2e3*o.output)/1e6+0,t)}var fn="quota-page",qv=e=>e.ok?"ok":e.status===404?"hidden":"failed";function Lu(){return n(Nu,{section:"points"})}function Du(){let[e,t]=S(null);return n(I,{children:[n(Pu,{modelCap:e}),n(Nu,{section:"quota",onModelCap:t})]})}function Nu({section:e,onModelCap:t}){let o=K(0),r=pt(async()=>{let p=o.current,[u,m,f,g]=await Promise.all([H("/token-quota/my"),H("/credits/balance"),H("/features"),H("/invite/my-code")]);return u.ok?{ok:!0,status:u.status,data:{quota:u.data??{},balance:m.ok?Je(m.data?.balance):null,balanceFailed:!m.ok,features:f.ok&&f.data&&typeof f.data=="object"?f.data:{},invite:g.ok?g.data:null,inviteState:qv(g),autoGen:p}}:u}),a=r.state==="ready"?Je(r.data.quota.modelMultiplierCap):null;if($(()=>{t?.(a)},[a]),r.state==="loading")return n(nt,{panels:3,rows:2});if(r.state==="signedOut")return n(bt,{});if(r.state==="error")return n(wt,{error:r.error,onRetry:r.retry});let{data:i,update:s}=r,l=i.quota.background,c=i.features.redemption_codes!==!1,d=i.features.payment!==!1;return n(I,{children:[e==="quota"&&n(I,{children:[n(Vv,{data:i,update:s,payment:d,fallbackGen:o,onFailed:r.reload}),l?.modelId?n(Kv,{bg:l,update:s}):null]}),e==="points"&&n(Jv,{data:i,payment:d,onRetry:r.reload}),e==="points"&&(i.inviteState!=="hidden"||c)&&n(Yv,{data:i,update:s,redeemEnabled:c,onRedeemed:r.reload})]})}var Iu=e=>({dailyLimit:e.dailyLimit,dailyRemaining:e.dailyRemaining,weeklyLimit:e.weeklyLimit,weeklyRemaining:e.weeklyRemaining});function Wv(e,t){if(typeof e?.showResetCardCeremony!="function")return!1;try{return e.showResetCardCeremony(t),!0}catch{return!1}}var Mu=e=>!e.unlimited&&e.text==="0%";function Vv(e){let{t,locale:o,ctx:r}=ae(),a=e.data.quota,i=wo(a.dailyRemaining,a.dailyLimit),s=wo(a.weeklyRemaining,a.weeklyLimit),l=zd(a.weeklyResetAt,o),c=Math.max(0,Je(a.resetCards)??0),d=me(),p=me(),[u,m]=S(null),f=typeof a.pointsAutoDeduct=="boolean"&&(Je(a.pointsBalance)!==null||Je(a.modelMultiplierCap)!==null),g=Je(a.pointsBalance)??e.data.balance,h=g!==null&&g<=0,b=Mu(i)||Mu(s),v=zr(a.pointsPricing,o),w=jv(!!a.pointsAutoDeduct,e.data.autoGen,e.fallbackGen,j=>{e.update(A=>({...A,quota:{...A.quota,...j,resetCards:A.quota.resetCards,pointsBalance:A.quota.pointsBalance,pointsAutoDeduct:A.quota.pointsAutoDeduct,modelMultiplierCap:A.quota.modelMultiplierCap}}))}),k=()=>void d.run(async()=>{let j={daily:i,weekly:s},A=Iu(a);m(null),Vo("card");let L=Q(),U=await yr(L.cloudInvoke?()=>L.cloudInvoke("account:useResetCard","both",fn):L.accountUseResetCard?()=>L.accountUseResetCard("both",fn):null,()=>H("/token-quota/reset-card/use",{method:"POST",body:{type:"both",entry:fn}}));if(!U.ok)return e.onFailed(),Be(U);let N=U.data?.quota,oe=Je(U.data?.resetCards);return e.update(_=>({..._,quota:{..._.quota,...N??{},resetCards:oe??_.quota.resetCards,pointsAutoDeduct:_.quota.pointsAutoDeduct,pointsBalance:_.quota.pointsBalance,modelMultiplierCap:_.quota.modelMultiplierCap}})),N&&!Wv(r.app,{before:A,after:Iu(N),remainingCards:oe??void 0})&&m({before:j,after:{daily:wo(N.dailyRemaining,N.dailyLimit),weekly:wo(N.weeklyRemaining,N.weeklyLimit)},cards:oe}),{success:{key:"card.used"}}}),x=j=>void p.run(async()=>(Vo(j==="credits"?"topup":"upgrade"),await Cn(j,void 0,void 0,fn)?void 0:{error:{key:"err.openFailed"}})),T=j=>j.unlimited?t("common.unlimited"):j.text,F=null,V=null;if(b&&f&&w.phase==="idle"&&w.checked)V=h?"quota.out.pointsGone":"quota.out.usingPoints",F=h?n(Se,{children:[n(se,{tone:"warn",children:t("quota.out.pointsGone")}),e.payment&&n("div",{class:"fx-inline fx-out-acts",children:[n(W,{variant:"primary",pending:p.pending,onClick:()=>x("credits"),children:t("points.recharge")}),n(W,{pending:p.pending,onClick:()=>x("membership"),children:t("member.upgrade")})]}),n(ye,{a:p})]}):n(Se,{children:n(se,{children:t("quota.out.usingPoints")})});else if(b&&f&&w.phase==="idle"){let j=c>0?h?"quota.out.cardOrTopUp":"quota.out.cardOrPoints":h?"quota.out.topUp":"quota.out.points";V=j,F=n(Se,{children:[n(se,{tone:"warn",children:t(j)}),h&&e.payment&&n("div",{class:"fx-inline fx-out-acts",children:n(W,{variant:"primary",pending:p.pending,onClick:()=>x("credits"),children:t("points.recharge")})}),n(ye,{a:p})]})}else b&&c>0&&(V="quota.out.card",F=n(Se,{children:n(se,{tone:"warn",children:t("quota.out.card")})}));let D=K(null);return b&&f&&w.phase!=="idle"&&(V=D.current),D.current=V,$(()=>Au(V),[V]),n(Re,{icon:"gauge",title:t("quota.ai.title"),desc:t("quota.ai.desc"),children:[n("div",{class:"fx-quota-list fx-block",children:[n(wr,{label:t("common.today"),display:i,note:i.unlimited?null:t("quota.resetDaily")}),n(wr,{label:t("common.thisWeek"),display:s,note:s.unlimited||!l?null:t("quota.resetWeekly",{date:l})})]}),F,n($e,{label:t("card.title"),desc:t("card.desc"),children:[n("span",{class:"fx-value","data-testid":"reset-card-count",children:t("card.owned",{n:c})}),n(Mt,{label:t("card.use"),confirmLabel:t("card.useConfirm"),pending:d.pending,disabled:c<=0,onConfirm:k})]}),c<=0&&!d.success&&!F&&n(Se,{children:n(se,{children:t("card.noneHint")})}),(d.error||d.success)&&n(Se,{children:[n(ye,{a:d}),d.success&&u&&n("div",{class:"fx-ceremony",role:"status",children:[n("span",{children:[t("common.today")," ",n("b",{children:T(u.before.daily)})," \u2192 ",n("b",{children:T(u.after.daily)})]}),n("span",{children:[t("common.thisWeek")," ",n("b",{children:T(u.before.weekly)})," \u2192 ",n("b",{children:T(u.after.weekly)})]}),u.cards!==null&&n("span",{class:"fx-muted",children:t("card.left",{n:u.cards})})]})]}),f&&n(I,{children:[n($e,{label:t("fallback.title"),desc:t("fallback.desc"),children:[g!==null&&n("span",{class:"fx-value","data-testid":"fallback-points",children:t("fallback.balance",{n:ze(g,o)})}),w.phase==="unknown"?n(W,{pending:!1,onClick:w.reread,children:t("common.retry")}):n(I,{children:[w.phase!=="idle"&&n("span",{class:"fx-fallback-busy",role:"status","aria-busy":"true","aria-label":t("common.loading"),children:n(Qt,{})}),n(rn,{checked:w.checked,disabled:w.phase!=="idle",label:t("fallback.title"),onChange:w.toggle})]})]}),v&&n(Se,{children:n(se,{children:n("span",{"data-testid":"fallback-pricing",children:t("fallback.pricing",v)})})}),w.phase==="unknown"&&n(Se,{children:n(se,{tone:"warn",children:t("fallback.unknown")})}),w.error&&w.phase!=="unknown"&&n(Se,{children:n("div",{class:"fx-msg is-error",role:"alert",children:n("span",{children:ht(w.error,t)})})})]})]})}function jv(e,t,o,r){let a=Le(),[i,s]=S("idle"),[l,c]=S(null),[d,p]=S(null),u=K(!1),m=l&&t<l.gen?l.value:e,f=w=>{c({value:w,gen:++o.current})},g=async w=>{s("verifying");let k=await H("/token-quota/my");a.current&&(k.ok&&typeof k.data?.pointsAutoDeduct=="boolean"?(f(k.data.pointsAutoDeduct),w!==null&&k.data.pointsAutoDeduct===w&&p(null),s("idle")):s("unknown"))},h=async w=>{if(!u.current){u.current=!0;try{await w()}finally{u.current=!1}}};return{checked:m,phase:i,error:d,toggle:w=>void h(async()=>{w&&Vo("points"),o.current++,p(null),s("pending");let k=Q(),x=await yr(k.cloudInvoke?()=>k.cloudInvoke("account:pointsAutoDeduct",w,fn):null,()=>H("/token-quota/auto-deduct",{method:"POST",body:{enabled:w,entry:fn}}));if(a.current){if(x.ok&&typeof x.data?.pointsAutoDeduct=="boolean"){f(x.data.pointsAutoDeduct),x.data.quota&&r(x.data.quota),s("idle");return}if(!x.ok&&(p(ut(x)),x.status===400||x.status===410||x.status===503&&x.code==="points_fallback_unavailable")){s("idle");return}await g(w)}}),reread:()=>void h(()=>g(null))}}function Gv(e,t,o){let r=me(),[a,i]=S(null);return{checked:a??e,toggle:l=>{i(l),r.run(async()=>{let c=await t(l);if(i(null),!c.ok)return Be(c);o(l)})},action:r}}function Jv(e){let{t,locale:o}=ae(),r=me(),a=()=>void r.run(async()=>await Cn("credits",void 0,void 0,fn)?void 0:{error:{key:"err.openFailed"}});return n(Re,{icon:"coins",title:t("points.title"),desc:t("points.desc"),actions:e.payment?n(W,{variant:"primary",pending:r.pending,onClick:a,children:t("points.recharge")}):void 0,children:[n($e,{label:t("points.balance"),children:e.data.balance!==null?n("span",{class:"fx-big","data-testid":"points-balance",children:ze(e.data.balance,o)}):n("span",{class:"fx-value is-empty",children:[t("points.balanceFailed")," ",n("button",{type:"button",class:"fx-link",onClick:e.onRetry,children:t("common.retry")})]})}),r.error&&n(Se,{children:n(ye,{a:r})})]})}var Xv=[5,10,20];function Kv(e){let{t}=ae(),{bg:o}=e,r=wo(o.dailyRemaining,o.dailyLimit),a=wo(o.weeklyRemaining,o.weeklyLimit),i=me(),[s,l]=S(null),c=Gv(!!o.autoMain,p=>{let u=Q();return yr(u.cloudInvoke?()=>u.cloudInvoke("account:bgAutoMain",p,fn):u.accountBgAutoMain?()=>u.accountBgAutoMain(p,fn):null,()=>H("/token-quota/background/auto-main",{method:"POST",body:{enabled:p,entry:fn}}))},p=>e.update(u=>({...u,quota:{...u.quota,background:{...u.quota.background??{},autoMain:p}}}))),d=p=>{l(p),i.run(async()=>{let u=Q(),m=await yr(u.cloudInvoke?()=>u.cloudInvoke("account:bgConvert",p,fn):u.accountBgConvert?()=>u.accountBgConvert(p,fn):null,()=>H("/token-quota/background/convert",{method:"POST",body:{percent:p,entry:fn}}));if(l(null),!m.ok)return Be(m);let f=m.data?.quota;return f&&e.update(h=>({...h,quota:{...h.quota,...f,resetCards:h.quota.resetCards,pointsBalance:h.quota.pointsBalance,pointsAutoDeduct:h.quota.pointsAutoDeduct,modelMultiplierCap:h.quota.modelMultiplierCap}})),{success:{key:"bg.converted",vars:{pct:p}}}})};return n(Re,{icon:"clock",title:t("bg.title"),desc:t("bg.desc"),children:[n("div",{class:"fx-quota-list fx-block",children:[n(wr,{label:t("common.today"),display:r}),n(wr,{label:t("common.thisWeek"),display:a})]}),n($e,{label:t("bg.autoMain"),desc:t("bg.autoMainDesc"),children:n(rn,{checked:c.checked,disabled:c.action.pending,label:t("bg.autoMain"),onChange:c.toggle})}),n($e,{label:t("bg.convert"),desc:t("bg.convertDesc"),class:"fx-row--wide",children:Xv.map(p=>n(Mt,{label:`${p}%`,confirmLabel:t("bg.convertConfirm",{pct:p}),pending:i.pending&&s===p,disabled:i.pending&&s!==p,onConfirm:()=>d(p)},p))}),(i.error||i.success||c.action.error)&&n(Se,{children:[n(ye,{a:c.action}),n(ye,{a:i})]})]})}function Yv(e){let{t,locale:o,anchor:r}=ae(),a=K(null);$(()=>{if(r!=="invite")return;let x=a.current;x?.scrollIntoView?.({block:"start"}),x?.focus({preventScroll:!0})},[r]);let{invite:i,inviteState:s}=e.data,[l,c]=S(null),[d,p]=S(""),[u,m]=S(""),f=me(),g=me(),h=me();$(()=>{let x=!0;return Q().authStatus?.().then(T=>{x&&c(T?.cloudUrl?T.cloudUrl.replace(/\/+$/,""):null)}).catch(()=>{}),()=>{x=!1}},[]);let b=async()=>{let x=await H("/invite/my-code");return e.update(T=>({...T,invite:x.ok?x.data:T.invite,inviteState:x.ok?"ok":x.status===404?"hidden":T.inviteState})),x},v=()=>void f.run(async()=>{let x=d.trim();if(!x)return{error:{key:"err.inviteEmpty"}};let T=await H("/invite/claim",{method:"POST",body:{code:x}});return T.ok?(p(""),b(),{success:{key:"invite.claimed"}}):Be(T)}),w=()=>void g.run(async()=>{let x=u.trim();if(!x)return{error:{key:"err.redeemEmpty"}};let T=await H("/redemption/redeem",{method:"POST",body:{code:x}});if(!T.ok)return Be(T);m(""),window.dispatchEvent(new Event("forsion:account-rewards-changed")),e.onRedeemed();let F=[],V=Je(T.data?.creditsAmount);V&&F.push(t("redeem.gotPoints",{n:ze(V,o)})),T.data?.membershipPlanId&&F.push(t("redeem.gotMembership"));for(let D of Array.isArray(T.data?.items)?T.data.items:[]){let j=(o==="zh"?D?.label?.zh:D?.label?.en)||D?.label?.zh||D?.label?.en||D?.kind;j&&F.push(j)}return{success:F.length?{key:"redeem.successWith",vars:{what:F.join(o==="zh"?"\u3001":", ")}}:{key:"redeem.success"}}}),k=i?.code&&l?`${l}/auth?invite=${encodeURIComponent(i.code)}`:"";return n("div",{ref:a,tabIndex:-1,"data-settings-anchor":"invite",children:n(Re,{icon:"gift",title:t("invite.title"),desc:t("invite.desc"),children:[s==="ok"&&i?.code&&n($e,{label:t("invite.myCode"),desc:t("invite.count",{n:ze(Je(i.invitedCount)??0,o)}),class:"fx-row--wide",children:[n("code",{class:"fx-code","data-testid":"invite-code",children:i.code}),n(jt,{text:i.code,label:t("invite.copyCode")}),n(jt,{text:k,label:t("invite.copyLink"),disabled:!k})]}),s==="failed"&&n(Se,{children:n(se,{tone:"warn",children:[t("invite.loadFailed")," ",n("button",{type:"button",class:"fx-link",disabled:h.pending,onClick:()=>void h.run(async()=>{await b()}),children:t("common.retry")})]})}),s==="ok"&&i?.claim?.eligible&&n($e,{label:t("invite.claim"),desc:t("invite.claimDesc"),class:"fx-row--wide",children:n("form",{class:"fx-inline",onSubmit:x=>{x.preventDefault(),v()},children:[n("input",{class:"fx-input",value:d,placeholder:t("invite.claimPlaceholder"),"aria-label":t("invite.claim"),onInput:x=>p(x.currentTarget.value)}),n(W,{submit:!0,pending:f.pending,children:t("invite.claimSubmit")})]})}),(f.error||f.success)&&n(Se,{children:n(ye,{a:f})}),e.redeemEnabled&&n($e,{label:t("redeem.title"),desc:t("redeem.desc"),class:"fx-row--wide",children:n("form",{class:"fx-inline",onSubmit:x=>{x.preventDefault(),w()},children:[n("input",{class:"fx-input",value:u,placeholder:t("redeem.placeholder"),"aria-label":t("redeem.title"),onInput:x=>m(x.currentTarget.value)}),n(W,{submit:!0,pending:g.pending,children:t("redeem.submit")})]})}),(g.error||g.success)&&n(Se,{children:n(ye,{a:g})})]})})}function Zv(e){let t=[],o,r,a=new Map;for(let i of e)if(i.itemType==="reset_card")o||(o={id:"reset_card",items:[],resetCard:!0},t.push(o)),o.items.push(i);else if(i.itemType==="address_rename_card")r||(r={id:"address_rename_card",items:[],resetCard:!1,addressCard:!0},t.push(r)),r.items.push(i);else if(i.itemType==="custom_item"&&i.itemDefinition?.stackable){let s=`${i.productId||i.id}:${JSON.stringify(i.itemDefinition)}`,l=a.get(s);l||(l={id:`custom:${s}`,items:[],resetCard:!1},a.set(s,l),t.push(l)),l.items.push(i)}else t.push({id:i.id,items:[i],resetCard:!1});return t}function Ou(){let e=pt(()=>H("/shop/inventory"));return e.state==="loading"?n(nt,{panels:1,rows:4}):e.state==="signedOut"?n(bt,{}):e.state==="error"?n(wt,{error:e.error,onRetry:e.retry}):n(Qv,{items:e.data??[],onRefresh:e.reload,onUsed:t=>{e.update(o=>o.filter(r=>r.id!==t.itemId)),e.reload()}})}function Qv(e){let{t,locale:o,goTo:r}=ae(),[a,i]=S(null),[s,l]=S(null),c=Le(),d=Zv(e.items),p=d.find(g=>g.id===a),u=Math.max(24,Math.ceil(d.length/6)*6)-d.length,m=g=>g.resetCard?t("card.title"):g.addressCard?t("backpack.addressCard"):g.items[0].itemDefinition?.name[o]||g.items[0].displayName||t("backpack.item"),f=g=>{c.current&&(l(g),e.onUsed(g))};return n(Re,{icon:"backpack",title:t("page.backpack"),desc:t("backpack.desc"),actions:n(W,{onClick:e.onRefresh,children:[n(B,{name:"refresh",size:13}),t("backpack.refresh")]}),children:n("div",{class:"fx-backpack fx-block",children:[n("div",{class:"fx-backpack-summary",children:[n("span",{children:t("backpack.total",{n:ze(e.items.length,o)})}),r&&n("button",{class:"fx-link",type:"button",onClick:()=>r("quota"),children:t("backpack.getCards")})]}),s&&n("div",{class:`fx-backpack-used fx-backpack-${s.animation}`,role:"status",children:[n(B,{name:"gift",size:20}),s.connectPack&&typeof s.connectPack.added=="number"?n("div",{children:[n("strong",{children:t("backpack.packUsed")}),n("div",{children:t("backpack.packUsedLine",{n:ze(s.connectPack.added,o),balance:ze(Math.round(Number(s.connectPack.balance)||0),o)})})]}):n("div",{children:[n("strong",{children:s.message?.[o]}),n("div",{children:(s.effects||[]).map(g=>Fu(g,t,o)).join(" \xB7 ")})]})]},s.itemId),n("div",{class:"fx-backpack-layout",children:[n("div",{children:[n("div",{class:"fx-backpack-grid",role:"group","aria-label":t("backpack.grid"),children:[d.map(g=>{let h=m(g);return n("button",{type:"button",class:`fx-backpack-slot${g.resetCard?" is-card":""}`,"data-rarity":g.items[0].itemDefinition?.rarity,"aria-pressed":p?.id===g.id,"aria-label":t("backpack.slot",{name:h,n:g.items.length}),title:h,onClick:()=>i(g.id),children:[n("span",{class:"fx-backpack-icon",children:g.items[0].itemDefinition?.icon?n("span",{class:"fx-backpack-emoji",children:g.items[0].itemDefinition.icon}):n(B,{name:g.resetCard?"card":g.addressCard?"at":"gift",size:30})}),n("span",{class:"fx-backpack-name",children:h}),(g.resetCard||g.addressCard||g.items[0].itemDefinition?.stackable)&&n("span",{class:"fx-backpack-count",children:["\xD7",ze(g.items.length,o)]})]},g.id)}),Array.from({length:u},(g,h)=>n("div",{class:"fx-backpack-slot is-empty","aria-hidden":"true"},`empty:${h}`))]}),!d.length&&n("p",{class:"fx-backpack-empty",children:t("backpack.empty")})]}),p?n(ey,{slot:p,name:m(p),onUsed:f},`${p.id}:${p.items[0].id}`):n("div",{class:"fx-backpack-detail fx-backpack-prompt",children:[n(B,{name:"backpack",size:30}),n(se,{children:t(d.length?"backpack.select":"backpack.emptyHint")})]})]})]})})}function Fu(e,t,o){let r=a=>ze(Number(a)||0,o);switch(e.type){case"points":return t("backpack.effect.points",{n:r(e.amount)});case"reset_card":return t("backpack.effect.cards",{n:r(e.count)});case"reset_quota":return t("backpack.effect.quota");case"connect_pack":return t("backpack.effect.connectPack",{n:r(e.amount)});default:return t("backpack.effect.other")}}function ey(e){let{t,locale:o,goTo:r}=ae(),a=e.slot.items[0],[i,s]=S(null),l=me(),c=me(),[d,p]=S(!1),u=a.itemDefinition,m=Le(),f=a.source==="points"?t("backpack.source.points"):a.source==="admin"?t("backpack.source.admin"):a.source==="reward"?t("backpack.source.reward"):t("backpack.source.other"),g=()=>void l.run(async()=>{let b=await H(`/shop/inventory/${encodeURIComponent(a.id)}`);if(m.current){if(!b.ok)return Be(b);s(b.data)}}),h=()=>void c.run(async()=>{let b=await H(`/shop/inventory/${encodeURIComponent(a.id)}/use`,{method:"POST"});if(!b.ok)return Be(b);e.onUsed(b.data)});return n("section",{class:"fx-backpack-detail","aria-label":t("backpack.details"),children:[n("span",{class:`fx-backpack-detail-icon${e.slot.resetCard?" is-card":""}`,children:u?.icon?n("span",{class:"fx-backpack-emoji",children:u.icon}):n(B,{name:e.slot.resetCard?"card":e.slot.addressCard?"at":"gift",size:32})}),n("h3",{children:e.name}),n("span",{class:"fx-tag",children:[t(e.slot.resetCard||e.slot.addressCard||u?.use?"backpack.consumable":u?"backpack.collectible":"backpack.voucher"),u&&` \xB7 ${t(`backpack.rarity.${u.rarity}`)}`]}),n("dl",{class:"fx-backpack-facts",children:[n("div",{children:[n("dt",{children:t("backpack.quantity")}),n("dd",{children:ze(e.slot.items.length,o)})]}),n("div",{children:[n("dt",{children:t("backpack.acquired")}),n("dd",{children:Pt(a.acquiredAt,o)})]}),!e.slot.resetCard&&n("div",{children:[n("dt",{children:t("backpack.source")}),n("dd",{children:f})]})]}),u?n(I,{children:[u.description&&n(se,{children:u.description[o]}),u.use&&n(I,{children:[n("div",{class:"fx-backpack-effects",children:u.use.effects.map((b,v)=>n("div",{children:Fu(b,t,o)},v))}),d?n(I,{children:[n(se,{children:t("backpack.consumeConfirm")}),n("div",{class:"fx-backpack-use-actions",children:[n(W,{variant:"primary",pending:c.pending,onClick:h,children:t("backpack.confirmUse")}),n(W,{disabled:c.pending,onClick:()=>p(!1),children:t("common.cancel")})]})]}):n(W,{variant:"primary",onClick:()=>p(!0),children:u.use.label?.[o]||t("backpack.use")}),n(ye,{a:c,captchaSection:"backpack"})]})]}):e.slot.addressCard?n(I,{children:[n(se,{children:t("backpack.addressCard.desc")}),r&&n(W,{variant:"primary",onClick:()=>{Zd(),r("account-details")},children:t("backpack.addressCard.use")})]}):e.slot.resetCard?n(I,{children:[n(se,{children:t("card.desc")}),r&&n(W,{variant:"primary",onClick:()=>r("quota"),children:t("backpack.manageCards")})]}):i?n("div",{class:"fx-backpack-reveal",children:[i.codeName&&n("div",{class:"fx-muted",children:i.codeName}),i.key?n(I,{children:[n("code",{children:i.key}),n(jt,{text:i.key,label:t("backpack.copyKey")})]}):n(se,{children:t("backpack.noKey")})]}):n(W,{pending:l.pending,onClick:g,children:[n(B,{name:"key",size:14}),t("backpack.reveal")]}),n(ye,{a:l,captchaSection:"backpack"})]})}var Ia="https://open.weixin.qq.com",ty=2e3,Bu=220;function ny(e,t){let o=new Map;for(let a of e.split(";")){let[i,...s]=a.trim().split(/\s+/);i&&!o.has(i.toLowerCase())&&o.set(i.toLowerCase(),s)}let r=o.get("frame-src")??o.get("child-src")??o.get("default-src");return r?r.some(a=>a==="*"||a===t||a.replace(/\/+$/,"")===t||a==="https:"&&t.startsWith("https://")||a==="'self'"&&t===location.origin):!0}function hs(e){let t=[];try{for(let o of Array.from(document.getElementsByTagName("meta")))(o.getAttribute("http-equiv")||"").toLowerCase()==="content-security-policy"&&t.push(o.getAttribute("content")||"")}catch{return!1}return t.length?t.every(o=>e.every(r=>ny(o,r))):!1}var oy='html,body{background:transparent!important;margin:0!important;padding:0!important}body,.impowerBox,.impowerBox .status,.impowerBox .status_txt{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Helvetica Neue","Microsoft YaHei",sans-serif!important}.impowerBox{display:block!important;max-width:218px!important}.impowerBox,.impowerBox .loginPanel{width:auto!important;padding:0!important;margin:0 auto!important}.impowerBox .title,.impowerBox .status_icon{display:none!important}.impowerBox .waiting{width:auto!important;margin:0!important;padding:16px 16px 14px!important;background:#fff!important;border:1px solid rgba(0,0,0,.08)!important;border-radius:14px!important}.impowerBox .wrp_code{margin:0!important;text-align:center!important;line-height:0!important}.impowerBox .qrcode{display:block!important;width:184px!important;height:184px!important;margin:0 auto!important;padding:0!important;border:0!important;background:none!important}.impowerBox .info{width:auto!important;margin:10px -8px 0!important;padding:0!important}.impowerBox .status{width:auto!important;height:auto!important;padding:0!important;margin:0!important;background:none!important;border-radius:0!important;box-shadow:none!important;text-align:center!important;color:#1f1f1f!important}.impowerBox .status_txt{display:block!important;width:auto!important;margin:0!important}.impowerBox .status h4,.impowerBox .status_browser p:first-child{margin:0!important;font-size:14px!important;font-weight:600!important;line-height:1.5!important;color:#1f1f1f!important}.impowerBox .status p{margin:2px 0 0!important;font-size:12.5px!important;line-height:1.5!important;color:#6e6e6e!important}',ry=e=>{let t=e;return!!t&&["appid","state","redirect_uri","scope"].every(o=>typeof t[o]=="string"&&!!t[o])};function ay(e,t){return`${Ia}/connect/qrconnect?appid=${encodeURIComponent(e.appid)}&scope=${encodeURIComponent(e.scope)}&redirect_uri=${encodeURIComponent(e.redirect_uri)}&state=${encodeURIComponent(e.state)}&login_type=jssdk&self_redirect=true&styletype=&sizetype=&bgcolor=&rst=&ts=${Date.now()}&href=data:text/css;base64,${btoa(oy)}&fast_login=0${t==="en"?"&lang=en":""}`}var Uu=e=>btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");async function iy(){let e=Uu(crypto.getRandomValues(new Uint8Array(32))),t=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(e));return{verifier:e,challenge:Uu(new Uint8Array(t))}}var sy=3*6e4,ly=e=>e.status===0||e.status===429?!1:e.status===401||e.status===403?!0:e.status>=500?!!e.code?.startsWith("WECHAT_"):!!e.code;function $u(e){let{t,locale:o}=ae(),r=Le(),[a,i]=S({kind:"starting"}),s=K(null),l=K(0),c=K(!1),d=K(e);d.current=e;let p=K(null),[u,m]=S(1),f=it(async()=>{let b=++l.current;s.current=null,i({kind:"starting"});let{verifier:v,challenge:w}=await iy(),k=await H("/auth/wechat/bind/app/start",{method:"POST",body:{challenge:w}});if(!r.current||b!==l.current)return;if(!k.ok)return k.status===404?i({kind:"unsupported"}):i({kind:"failed",msg:ut(k)});if(!ry(k.data))return i({kind:"failed",msg:{key:"err.generic"}});let x="";try{x=new URL(k.data.redirect_uri).origin}catch{}if(!x||!hs([Ia,x]))return i({kind:"unsupported"});let T=(typeof k.data.expires_in=="number"&&k.data.expires_in>0?k.data.expires_in*1e3:6e5)+sy;s.current={id:b,state:k.data.state,verifier:v,deadline:Date.now()+T},i({kind:"showing",src:ay(k.data,o)})},[o]),g=it(async()=>{let b=s.current;if(!(!b||c.current)){if(Date.now()>b.deadline){s.current=null,i({kind:"expired"});return}c.current=!0;try{let v=await H("/auth/wechat/bind/app/poll",{method:"POST",body:{state:b.state,verifier:b.verifier}});if(v.ok&&v.data?.bound===!0){s.current?.id===b.id&&(s.current=null),d.current.onBound(typeof v.data.nickname=="string"&&v.data.nickname.trim()?v.data.nickname.trim():null);return}if(!r.current||s.current?.id!==b.id||v.ok)return;if(v.status===410){s.current=null,i({kind:"expired"});return}ly(v)&&(s.current=null,i({kind:"failed",msg:ut(v)}))}finally{c.current=!1}}},[]);$(()=>{f()},[f]),$(()=>{if(a.kind!=="showing")return;let b=setInterval(()=>void g(),ty);return()=>clearInterval(b)},[a.kind,g]),$(()=>{let b=p.current;if(!b||typeof ResizeObserver>"u")return;let v=()=>{let k=b.clientWidth;m(k>0&&k<Bu?Math.max(.6,Math.floor(k/Bu*100)/100):1)};v();let w=new ResizeObserver(v);return w.observe(b),()=>w.disconnect()},[a.kind]),$(()=>()=>{l.current++,s.current=null},[]);let h=n("button",{type:"button",class:"fx-link",onClick:()=>d.current.onFallback(),children:t("sec.wechat.inBrowser")});return a.kind==="starting"?n(Se,{children:n(se,{children:t("sec.wechat.qrLoading")})}):a.kind==="unsupported"?n(Se,{children:n("div",{class:"fx-wxbind-end",children:[n(se,{children:t("sec.wechat.inAppUnavailable")}),n(W,{onClick:()=>d.current.onFallback(),children:t("sec.wechat.inBrowser")})]})}):a.kind==="expired"||a.kind==="failed"?n(Se,{children:n("div",{class:"fx-wxbind-end",children:[a.kind==="expired"?n(se,{children:t("sec.wechat.qrExpired")}):n("div",{class:"fx-msg is-error",role:"alert",children:n("span",{children:ht(a.msg,t)})}),n(W,{onClick:()=>void f(),children:t("sec.wechat.qrRefresh")})]})}):n(Se,{children:n("div",{class:"fx-wxbind",ref:p,children:[n("iframe",{class:"fx-wxbind-frame",style:u<1?{zoom:String(u)}:void 0,src:a.src,title:t("sec.wechat.qrTitle"),sandbox:"allow-scripts allow-same-origin allow-forms",onLoad:()=>void g()}),n("div",{class:"fx-wxbind-side",children:[n(se,{children:t("sec.wechat.scanHint")}),h]})]})})}var cy=/^1[3-9]\d{9}$|^\+[1-9]\d{6,14}$/,dy=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,Hu=(e,t)=>e==="phone"?cy.test(t):dy.test(t),Sr=(e,t)=>e==="phone"?ha(t):ba(t);function Wu(){let e=pt(()=>H("/auth/me")),t=py();if(e.state==="loading")return n(nt,{panels:3,rows:2});if(e.state==="signedOut")return n(bt,{});if(e.state==="error")return n(wt,{error:e.error,onRetry:e.retry});let o=e.data;return n(I,{children:[n(uy,{me:o,armGroup:t,onBound:(r,a)=>e.update(i=>({...i,[r]:a}))}),n(xy,{me:o}),n(by,{armGroup:t}),n(zy,{}),n(Sy,{me:o})]})}function vs(){let e=kd(),t=me();return{cd:e,a:t,send:(a,i,s)=>t.run(async()=>{let l=await H("/auth/send-code",{method:"POST",body:{target:a,type:i,purpose:s}});return l.ok?(e.start(60),{success:{key:"sec.codeSent"}}):Be(l)}),reset:()=>{e.stop(),t.clear()}}}function uy(e){let{t}=ae(),[o,r]=S(null),[a,i]=S(null);return n(Re,{icon:"key",title:t("sec.methods.title"),desc:t("sec.methods.desc"),children:[["phone","email"].map(s=>{let l=e.me[s];return n(I,{children:[n($e,{label:t(s==="phone"?"account.contact.phone":"account.contact.email"),desc:l?Sr(s,l):t("account.contact.unbound"),children:n(W,{onClick:()=>{i(null),r(o===s?null:s)},children:t(o===s?"common.cancel":l?"sec.change":"sec.bind")})}),o===s&&n(vy,{kind:s,current:l??null,onDone:c=>{e.onBound(s,c),r(null),i(s)}}),a===s&&o!==s&&n(Se,{children:n("div",{class:"fx-msg is-ok",role:"status",children:t(s==="phone"?"sec.phoneBound":"sec.emailBound")})})]},s)}),n(my,{armGroup:e.armGroup})]})}function Vu(e,t,o){let r=Le(),[a,i]=S(null),s=K(0),l=K(t);l.current=t;let c=it(()=>{let f=++s.current;return H(e).then(g=>{if(!r.current||f!==s.current||!g.ok)return!1;let h=l.current(g.data);return h?(i(h),!0):!1})},[e]);$(()=>{c()},[c]);let d=Ho(c),p=K(d);p.current=d,$(()=>{let f=()=>p.current();return o.add(f),()=>{o.delete(f)}},[o]);let u=it(()=>{s.current++},[]),m=it(f=>{r.current&&i(g=>g&&f(g))},[]);return{st:a,load:c,invalidate:u,set:m}}var py=()=>S(()=>new Set)[0];async function ju(e,t){for(let o of e)o();return await $n("security")?{success:{key:t}}:{error:{key:"err.openFailed"}}}function fy(e){if(!e||typeof e!="object")return null;let t=e;if(typeof t.enabled!="boolean"||typeof t.bound!="boolean")return null;let o=typeof t.nickname=="string"&&t.nickname.trim()?t.nickname.trim():null;return{enabled:t.enabled,bound:t.bound,nickname:o,appBind:t.app_bind===!0}}function my(e){let{t}=ae(),o=Vu("/auth/wechat/status",fy,e.armGroup),r=me(),a=me(),[i,s]=S(!1),[l,c]=S(!1),d=o.st;if(!d||!d.enabled)return null;let p=()=>void r.run(async()=>(a.clear(),ju(e.armGroup,"sec.wechat.opened"))),u=()=>void a.run(async()=>{r.clear(),o.invalidate();let b=await H("/auth/wechat",{method:"DELETE"});return b.ok?(o.invalidate(),o.set(v=>({...v,bound:!1,nickname:null})),{success:{key:"sec.wechat.unlinked"}}):Be(b)}),m=d.appBind&&hs([Ia]),f=b=>{o.invalidate(),o.set(v=>({...v,bound:!0,nickname:b})),s(!1),c(!0)},g=()=>{s(!1),p()};if(d.bound)return n(I,{children:[n($e,{label:t("sec.wechat"),desc:d.nickname?t("sec.wechat.boundAs",{name:d.nickname}):t("sec.wechat.bound"),children:n(Mt,{label:t("sec.wechat.unlink"),confirmLabel:t("sec.wechat.unlinkConfirm"),pending:a.pending,onConfirm:u},d.nickname??"")}),n(Se,{children:[l&&n("div",{class:"fx-msg is-ok",role:"status",children:t("sec.wechat.linkedNow")}),n(se,{children:t("sec.wechat.linkedNote")}),a.error&&n(ye,{a})]})]});let h=r.error||r.success?r:a.success?a:null;return n(I,{children:[n($e,{label:t("sec.wechat"),desc:t("account.contact.unbound"),children:m?n(W,{onClick:()=>{r.clear(),a.clear(),c(!1),s(!i)},children:t(i?"common.cancel":"sec.wechat.bind")}):n(W,{pending:r.pending,onClick:p,children:[t("sec.wechat.link")," ",n(B,{name:"external",size:12})]})}),m&&i&&n($u,{onBound:f,onFallback:g}),h&&n(Se,{children:n(ye,{a:h})})]})}function gy(e){if(!e||typeof e!="object")return null;let t=e;if(typeof t.configured!="boolean")return null;let o=t.linked===!0,r=typeof t.login=="string"&&t.login.trim()?t.login.trim():null;return{configured:t.configured,linked:o,login:r}}function hy(e){if(typeof e!="string")return null;try{let t=new URL(e);return t.protocol==="https:"||t.protocol==="http:"?t.toString():null}catch{return null}}function by(e){let{t}=ae(),o=Vu("/github/status",gy,e.armGroup),r=me(),a=me(),[i,s]=S(null),l=o.st;if(!l||!l.configured)return null;let c=Q().openExternal,d=()=>void r.run(async()=>(a.clear(),s(null),ju(e.armGroup,"sec.github.opened"))),p=()=>void a.run(async()=>{r.clear(),s(null),o.invalidate();let f=await H("/github/link",{method:"DELETE"});return f.ok?(o.invalidate(),f.data?.unlinked?(o.set(g=>({...g,linked:!1,login:null})),f.data.revoked?{success:{key:"sec.github.unlinked"}}:(s(hy(f.data.revokeUrl)),{error:{key:"sec.github.unlinkedManual"}})):await o.load()?{success:{key:"sec.github.changed"}}:{error:{key:"sec.github.changedUnknown"}}):Be(f)}),u=a.error||a.success?a:null,m=!l.linked&&(r.error||r.success)?r:u;return n(Re,{icon:"link",title:"GitHub",desc:t("sec.github.desc"),children:[n($e,{label:t("sec.github.account"),desc:l.linked?l.login?t("sec.github.boundAs",{login:l.login}):t("sec.github.bound"):t("account.contact.unbound"),children:l.linked?n(Mt,{label:t("sec.github.unlink"),confirmLabel:t("sec.github.unlinkConfirm"),pending:a.pending,onConfirm:p},l.login??""):n(W,{pending:r.pending,onClick:d,children:[t("sec.github.link")," ",n(B,{name:"external",size:12})]})}),(l.linked||m||i)&&n(Se,{children:[l.linked&&n(se,{children:t("sec.github.linkedNote")}),m&&n(ye,{a:m}),i&&c&&n("button",{type:"button",class:"fx-link",onClick:()=>void c(i).catch(()=>{}),children:[t("sec.github.openSettings")," ",n(B,{name:"external",size:12})]})]})]})}function vy(e){let{t}=ae(),{kind:o}=e,[r,a]=S(""),[i,s]=S(""),l=vs(),c=me(),d=r.trim(),p=o==="phone"?"err.phoneInvalid":"err.emailInvalid",u=()=>{if(!Hu(o,d)){l.a.run(async()=>({error:{key:p}}));return}l.send(d,o,"bind")},m=()=>void c.run(async()=>{if(!Hu(o,d))return{error:{key:p}};if(!i.trim())return{error:{key:"err.codeRequired"}};let f=o==="phone"?{phone:d,verification_code:i.trim()}:{email:d,verification_code:i.trim()},g=await H(o==="phone"?"/auth/bind-phone":"/auth/bind-email",{method:"POST",body:f});if(!g.ok)return Be(g);e.onDone(d)});return n(Se,{class:"fx-form",children:[n("label",{class:"fx-field",children:[n("span",{children:e.current?t(o==="phone"?"sec.newPhone":"sec.newEmail"):t(o==="phone"?"sec.phone":"sec.email")}),n("input",{class:"fx-input",type:o==="phone"?"tel":"email",value:r,autoComplete:"off",placeholder:t(o==="phone"?"sec.phonePlaceholder":"sec.emailPlaceholder"),onInput:f=>a(f.currentTarget.value)})]}),n(ys,{code:i,setCode:s,sender:l,onSend:u}),n("div",{class:"fx-inline",children:n(W,{variant:"primary",pending:c.pending,onClick:m,children:t("sec.bindSubmit")})}),n(ye,{a:c})]})}function ys(e){let{t}=ae(),{cd:o,a:r}=e.sender;return n("div",{class:"fx-field",children:[n("span",{children:e.label??t("sec.code")}),n("div",{class:"fx-inline",children:[n("input",{class:"fx-input fx-input--code",inputMode:"numeric",autoComplete:"one-time-code",value:e.code,placeholder:t("sec.codePlaceholder"),"aria-label":e.label??t("sec.code"),onInput:a=>e.setCode(a.currentTarget.value)}),n(W,{pending:r.pending,disabled:o.left>0||e.disabled,onClick:e.onSend,children:o.left>0?t("sec.resendIn",{s:o.left}):t("sec.sendCode")})]}),n(ye,{a:r})]})}function yy(e){let{t}=ae(),o=hd(e.value),r=e.value.length>0,a=[[o.length,t("pw.req.length",{min:8,max:64})],[o.lower,t("pw.req.lower")],[o.upper,t("pw.req.upper")],[o.special,t("pw.req.special")],[o.space,t("pw.req.space")]];return n("ul",{class:"fx-rules","aria-label":t("pw.rulesLabel"),children:a.map(([i,s])=>n("li",{class:i?"is-ok":r?"is-bad":"",children:[i?n(B,{name:"check",size:11}):r?n(B,{name:"x",size:11}):n("span",{class:"fx-rule-dot","aria-hidden":"true"}),n("span",{children:s})]},s))})}function Gu(e,t){let o=gd(e);return o.ok?e!==t?{error:{key:"pw.mismatch"}}:null:{error:{key:Ji[o.rule]}}}function xy(e){let{t}=ae(),o=["phone","email"].filter(l=>!!e.me[l]),[r,a]=S("current"),[i,s]=S(!1);return n(Re,{icon:"shield",title:t("pw.title"),desc:t("pw.desc",{min:8,max:64}),actions:n(W,{onClick:()=>s(!i),children:t(i?"common.cancel":"pw.change")}),children:i&&n(Se,{class:"fx-form",children:[n(Ot,{label:t("pw.modeLabel"),value:r,onChange:a,options:[{value:"current",label:t("pw.mode.current")},{value:"code",label:t("pw.mode.code")}]}),r==="current"?n(ky,{onDone:()=>s(!1)}):o.length?n(wy,{me:e.me,targets:o,onDone:()=>s(!1)}):n(se,{children:t("pw.codeNeedsContact")})]})})}function Ju(e){let{t}=ae();return n(I,{children:[n("label",{class:"fx-field",children:[n("span",{children:t("pw.new")}),n("input",{class:"fx-input",type:"password",autoComplete:"new-password",value:e.pw,maxLength:72,onInput:o=>e.setPw(o.currentTarget.value)})]}),n(yy,{value:e.pw}),n("label",{class:"fx-field",children:[n("span",{children:t("pw.confirm")}),n("input",{class:"fx-input",type:"password",autoComplete:"new-password",value:e.confirm,onInput:o=>e.setConfirm(o.currentTarget.value)})]})]})}function ky(e){let{t}=ae(),[o,r]=S(""),[a,i]=S(""),[s,l]=S(""),c=me(),[d,p]=S(!1),u=()=>void c.run(async()=>{if(!o)return{error:{key:"pw.currentRequired"}};let m=Gu(a,s);if(m)return m;let f=await H("/auth/password",{method:"PUT",body:{currentPassword:o,newPassword:a}});return f.ok?(r(""),i(""),l(""),p(!0),{success:{key:"pw.changed"}}):f.status===404?{error:{key:"pw.noPasswordYet"}}:Be(f)});return n(I,{children:[n("label",{class:"fx-field",children:[n("span",{children:t("pw.current")}),n("input",{class:"fx-input",type:"password",autoComplete:"current-password",value:o,onInput:m=>r(m.currentTarget.value)})]}),n(Ju,{pw:a,setPw:i,confirm:s,setConfirm:l}),n("div",{class:"fx-inline",children:[n(W,{variant:"primary",pending:c.pending,onClick:u,children:t("pw.submit")}),d&&n(W,{onClick:e.onDone,children:t("common.done")})]}),n(ye,{a:c})]})}function wy(e){let{t}=ae(),[o,r]=S(e.targets[0]),[a,i]=S(""),[s,l]=S(""),[c,d]=S(""),p=vs(),u=me(),[m,f]=S(!1),g=e.me[o]||"",h=()=>void u.run(async()=>{if(!a.trim())return{error:{key:"err.codeRequired"}};let b=Gu(s,c);if(b)return b;let v=o==="phone"?{phone:g,code:a.trim(),newPassword:s}:{email:g,code:a.trim(),newPassword:s},w=await H("/auth/reset-password",{method:"POST",body:v});return w.ok?(i(""),l(""),d(""),f(!0),{success:{key:"pw.changed"}}):Be(w)});return n(I,{children:[e.targets.length>1?n(Ot,{label:t("pw.via"),value:o,onChange:b=>{r(b),i(""),p.reset()},options:e.targets.map(b=>({value:b,label:Sr(b,e.me[b])}))}):n(se,{children:t("pw.codeTo",{target:Sr(o,g)})}),n(ys,{code:a,setCode:i,sender:p,onSend:()=>void p.send(g,o,"reset_password")}),n(Ju,{pw:s,setPw:l,confirm:c,setConfirm:d}),n("div",{class:"fx-inline",children:[n(W,{variant:"primary",pending:u.pending,onClick:h,children:t("pw.submitReset")}),m&&n(W,{onClick:e.onDone,children:t("common.done")})]}),n(ye,{a:u})]})}function zy(){let{t:e}=ae(),t=me(),o=()=>void t.run(async()=>{let r=await H("/auth/logout-all",{method:"POST"});if(!r.ok)return Be(r);try{await Q().forsionLogout?.()}catch(a){return{error:{raw:St(a)}}}return{success:{key:"sec.logoutAllDone"}}});return n(Re,{icon:"laptop",title:e("sec.devices.title"),desc:e("sec.devices.desc"),children:[n($e,{label:e("sec.logoutAll"),desc:e("sec.logoutAllDesc"),children:n(Mt,{label:e("sec.logoutAll"),confirmLabel:e("sec.logoutAllConfirm"),pending:t.pending,onConfirm:o})}),(t.error||t.success)&&n(Se,{children:n(ye,{a:t})})]})}function Sy(e){let{t}=ae(),o=["phone","email"].filter(v=>!!e.me[v]),[r,a]=S(!1),[i,s]=S(o.length?"code":"password"),[l,c]=S(o[0]??null),[d,p]=S(""),[u,m]=S(""),f=vs(),g=me(),h=l&&e.me[l]||"",b=()=>void g.run(async()=>{if(i==="code"&&!d.trim())return{error:{key:"err.codeRequired"}};if(i==="password"&&!u)return{error:{key:"pw.currentRequired"}};let v=await H("/auth/delete-account",{method:"POST",body:i==="code"?{verification_code:d.trim()}:{password:u}});if(!v.ok)return Be(v);try{await Q().forsionLogout?.()}catch{}return{success:{key:"del.done"}}});return n(Re,{icon:"alert",danger:!0,title:t("del.title"),desc:t("del.desc"),actions:n(W,{variant:"danger",onClick:()=>{a(!r),g.clear()},children:t(r?"common.cancel":"del.start")}),children:r&&n(Se,{class:"fx-form",children:[n(se,{tone:"error",children:t("del.warn")}),o.length>0&&n(Ot,{label:t("del.methodLabel"),value:i,onChange:s,options:[{value:"code",label:t("del.byCode")},{value:"password",label:t("del.byPassword")}]}),i==="code"&&l?n(I,{children:[o.length>1&&n(Ot,{label:t("pw.via"),value:l,onChange:v=>{c(v),p(""),f.reset()},options:o.map(v=>({value:v,label:Sr(v,e.me[v])}))}),n(ys,{code:d,setCode:p,sender:f,label:t("del.codeLabel",{target:Sr(l,h)}),onSend:()=>void f.send(h,l,"delete_account")})]}):n("label",{class:"fx-field",children:[n("span",{children:t("del.passwordLabel")}),n("input",{class:"fx-input",type:"password",autoComplete:"current-password",value:u,onInput:v=>m(v.currentTarget.value)})]}),n("div",{class:"fx-inline",children:n(Mt,{variant:"danger",label:t("del.submit"),confirmLabel:t("del.confirm"),pending:g.pending,onConfirm:b})}),n(ye,{a:g})]})})}var Ku=20;function Yu(){let e=pt(async()=>{let[t,o]=await Promise.all([H("/token-quota/my"),H(`/token-quota/my/logs?limit=${Ku}&offset=0`)]);if(!t.ok)return t;let r=o.ok&&Array.isArray(o.data?.logs)?o.data.logs:null;return{ok:!0,status:t.status,data:{dailyLimit:Je(t.data?.dailyLimit),logs:r,total:o.ok?Je(o.data?.total)??r?.length??0:0,logsFail:o.ok?null:o}}});return e.state==="loading"?n(nt,{panels:3,rows:2}):e.state==="signedOut"?n(bt,{}):e.state==="error"?n(wt,{error:e.error,onRetry:e.retry}):n(I,{children:[n(Cy,{dailyLimit:e.data.dailyLimit}),n(Ay,{base:e.data,onRetry:e.reload})]})}function Cy(e){let{t,locale:o}=ae(),[r,a]=S(30),[i,s]=S({state:"loading"}),[l,c]=S(!1),[d,p]=S(0),u=K(0);$(()=>{let k=++u.current;return c(!0),H(`/usage/stats?days=${r}`).then(x=>{k===u.current&&(c(!1),s(x.ok?{state:"ready",data:x.data??{}}:{state:"error",fail:x}))}),()=>{u.current++}},[r,d]);let m=e.dailyLimit!==null&&e.dailyLimit<0?"usage.unlimitedNote":Ra(1,e.dailyLimit)===null?"usage.noLimitNote":null,f=k=>Ra(k,e.dailyLimit)??"\u2014",g=n(Ot,{label:t("usage.range"),value:r,onChange:a,options:[{value:7,label:t("usage.days",{n:7})},{value:30,label:t("usage.days",{n:30})},{value:90,label:t("usage.days",{n:90})}]}),h=i.state==="ready"?i.data:null,b=(h?.byModel??[]).filter(Boolean),v=(h?.byProject??[]).filter(Boolean),w=Je(h?.successRate);return n(I,{children:[n(Re,{icon:"chart",title:t("usage.overview.title"),desc:t("usage.overview.desc"),actions:g,children:[i.state==="error"?n("div",{class:"fx-sub",children:n("div",{class:"fx-msg is-error",role:"alert",children:[n("span",{children:ht(ut(i.fail),t)}),n("button",{type:"button",class:"fx-link",onClick:()=>p(k=>k+1),children:t("common.retry")})]})}):n("div",{class:`fx-stats fx-block${l&&h?" is-refreshing":""}`,"aria-busy":l||void 0,children:[n(xs,{label:t("usage.requests"),value:h?ze(Je(h.totalRequests)??0,o):null,testId:"usage-requests"}),n(xs,{label:t("usage.successRate"),value:h?w===null?"\u2014":`${w.toFixed(1)}%`:null}),n(xs,{label:t("usage.consumption"),value:h?f(h.totalPointsCost):null,sub:t("usage.ofToday"),testId:"usage-consumption"})]}),m&&n("div",{class:"fx-sub fx-sub--tight",children:n(se,{children:t(m)})})]}),i.state!=="error"&&n(I,{children:[n(Re,{icon:"gauge",title:t("usage.byModel.title"),desc:t("usage.byModel.desc"),children:n(Xu,{loading:!h,empty:t("usage.empty"),head:[t("usage.col.model"),t("usage.col.requests"),t("usage.col.consumption")],rows:b.map(k=>[k.modelName||k.modelId||"\u2014",ze(Je(k.count)??0,o),f(k.pointsCost)])})}),n(Re,{icon:"laptop",title:t("usage.byApp.title"),desc:t("usage.byApp.desc"),children:n(Xu,{loading:!h,empty:t("usage.empty"),head:[t("usage.col.app"),t("usage.col.requests"),t("usage.col.consumption")],rows:v.map(k=>[Zu(k.projectSource,t("usage.appUnknown")),ze(Je(k.count)??0,o),f(k.pointsCost)])})})]})]})}var _y={tangu:"Tangu","ai-studio":"Forsion AI Studio",desktop:"Forsion Desktop",amadeus:"Amadeus",notebase:"Notebase",calendar:"Forsion Calendar",chat:"Forsion Chat",desk:"Forsion Desk","photo-studio":"Photo Studio",connect:"Forsion Connect"},Zu=(e,t)=>!e||e==="unknown"?t:_y[e]??e;function xs(e){return n("div",{class:"fx-stat",children:[n("span",{class:"fx-stat-label",children:e.label}),e.value===null?n("span",{class:"fx-skel fx-skel--stat"}):n("strong",{class:"fx-stat-value","data-testid":e.testId,children:e.value}),e.sub&&n("span",{class:"fx-stat-sub",children:e.sub})]})}function Xu(e){return e.loading?n("div",{class:"fx-sub",children:[n("span",{class:"fx-skel fx-skel--row"}),n("span",{class:"fx-skel fx-skel--row"})]}):e.rows.length?n("div",{class:"fx-table-wrap fx-block",children:n("table",{class:"fx-table",children:[n("thead",{children:n("tr",{children:e.head.map((t,o)=>n("th",{class:o?"is-num":"",children:t},o))})}),n("tbody",{children:e.rows.map((t,o)=>n("tr",{children:t.map((r,a)=>n("td",{class:a?"is-num":"",children:r},a))},o))})]})}):n(Tt,{children:e.empty})}function Ay(e){let{t,locale:o}=ae(),r=Le(),[a,i]=S(e.base.logs??[]),[s,l]=S(e.base.total),c=me();$(()=>{i(e.base.logs??[]),l(e.base.total)},[e.base]);let d=()=>void c.run(async()=>{let u=await H(`/token-quota/my/logs?limit=${Ku}&offset=${a.length}`);if(!u.ok)return{error:ut(u)};let m=Array.isArray(u.data?.logs)?u.data.logs:[];r.current&&(i(f=>[...f,...m]),l(f=>m.length?Je(u.data?.total)??f:a.length))}),p=e.base.dailyLimit;return n(Re,{icon:"clock",title:t("usage.recent.title"),desc:t("usage.recent.desc"),children:[e.base.logsFail?n("div",{class:"fx-sub",children:n("div",{class:"fx-msg is-error",role:"alert",children:[n("span",{children:ht(ut(e.base.logsFail),t)}),n("button",{type:"button",class:"fx-link",onClick:e.onRetry,children:t("common.retry")})]})}):a.length===0?n(Tt,{children:t("usage.recentEmpty")}):n("div",{class:"fx-list fx-block",role:"list",children:a.map((u,m)=>n("div",{class:"fx-list-row",role:"listitem",children:[n("span",{class:"fx-list-main",children:[n("strong",{children:[u.modelName||u.modelId||"\u2014",u.success===!1&&n("span",{class:"fx-tag fx-tag--danger",children:t("usage.failed")})]}),n("small",{children:[Pt(u.createdAt,o),Zu(u.projectSource,t("usage.appUnknown"))].join(" \xB7 ")})]}),n("span",{class:"fx-value",children:Ra(u.pointsCost,p)??"\u2014"})]},u.id??m))}),a.length>0&&n("div",{class:"settings-panel-footer fx-footer",children:[n("span",{class:"fx-muted",children:t("usage.shown",{shown:ze(a.length,o),total:ze(Math.max(s,a.length),o)})}),a.length<s&&n(W,{pending:c.pending,onClick:d,children:t("common.loadMore")})]}),c.error&&n("div",{class:"fx-sub fx-sub--tight",children:n(ye,{a:c})})]})}var Qu=["plugin","amadeus-plugin","skill","agent","space","theme"],Ty=["zip","github","npm"],Ey=["description","tags","minAppVersion","maxAppVersion","platforms"],Py=50*1024*1024,Ry=new Set(["market_npm_invalid","market_npm_source","market_github_source","market_not_found","market_zip_required","market_zip_invalid","market_zip_too_large","market_version_required","market_version_invalid","market_version_mismatch","market_version_not_newer","market_icon_invalid","market_duplicate","market_update_pending","market_stale","market_requirements_invalid","market_requirements_mismatch","market_no_release","market_no_changes","market_dryrun_unsupported","internals_raw_reason_required","internals_raw_needs_release"]),Iy=new Set(["no_manifest","type_mismatch","tag_version_mismatch","id_slug_mismatch","engine_slug_mismatch","no_entry","has_node_modules"]),Ma=e=>`sub.type.${e.replace("-","_")}`,tp=e=>e==="approved"?"sub.approved":e==="rejected"?"sub.rejected":"sub.pending",zs=e=>e==="github"?"GitHub":e==="npm"?"npm":"ZIP",My=e=>e.status==="pending"||!!e.pendingUpdate,ep=(e,t)=>t==="all"||(t==="pending"?My(e):e.status===t),Ly=e=>e>=1024*1024?`${(e/1024/1024).toFixed(1)} MB`:`${Math.max(1,Math.round(e/1024))} KB`,np=e=>e.status==="approved"?"sub.updated":"sub.resubmitted",Ss=e=>!!e?.some(t=>String(t).trim().toLowerCase()==="internals-raw"),Cs=e=>e.trim()?{capabilityReason:e.trim()}:{},op=(e,t)=>Ss(e?.capabilities)&&!t.trim()?{error:{key:"sub.err.internals_raw_reason_required"}}:null;async function zo(e){let t=Q().cloudInvoke;if(!t)return{ok:!1,out:{error:{key:"err.unavailable"}},code:null,values:{}};let o=await t("cloud:marketSubmit",{...e.id?{id:e.id}:{},...e.dryRun?{dryRun:!0}:{},fields:e.fields,...e.zip?{zip:{name:e.zip.name,data:e.zip.data}}:{}}),r=pa(o);if(r.ok)return{ok:!0,data:r.data};r.status===401&&Q().authStatus?.().catch(()=>{});let a=Object.fromEntries(Object.entries(o?.json?.values||{}).filter(([,s])=>typeof s=="string"||typeof s=="number").map(([s,l])=>[s,String(l)]));return{ok:!1,out:r.code==="market_version_not_newer"&&a.version&&a.current?{error:{key:"sub.notNewer",vars:a}}:Ry.has(r.code||"")?{error:{key:`sub.err.${r.code}`}}:Be(r),code:r.code,values:a}}async function rp(e){return e.size>Py?{error:{key:"sub.errLarge"}}:{name:e.name,size:e.size,data:new Uint8Array(await e.arrayBuffer())}}function Dy(e,t){let o=[e?.minAppVersion&&`\u2265 ${e.minAppVersion}`,e?.maxAppVersion&&`< ${e.maxAppVersion}`].filter(Boolean).join(", "),r=[o&&`Forsion ${o}`,e?.platforms?.length?e.platforms.join(", "):""].filter(Boolean);return r.length?r.join(" \xB7 "):t("sub.reqNone")}function ap({status:e}){let t=kt();return n("span",{class:`fx-tag ${e==="approved"?"fx-status--resolved":e==="rejected"?"fx-tag--danger":"fx-tag--accent"}`,children:t(tp(e))})}function ip(e){let t=`${e.id}-${e.name}`;return n("label",{class:"fx-sub-field",for:t,children:[n("span",{children:e.label}),e.rows?n("textarea",{id:t,value:e.value,rows:e.rows,maxLength:2e5,onInput:o=>e.onInput(o.currentTarget.value)}):n("input",{id:t,value:e.value,placeholder:e.placeholder,maxLength:e.name==="summary"?2e3:500,onInput:o=>e.onInput(o.currentTarget.value)})]})}function _s({id:e,value:t,required:o,onInput:r}){let a=kt(),i=`${e}-capabilityReason`;return n(I,{children:[n("label",{class:"fx-sub-field",for:i,children:[n("span",{children:a("sub.capReason")}),n("textarea",{id:i,value:t,rows:3,maxLength:2e3,"aria-required":o||void 0,onInput:s=>r(s.currentTarget.value)})]}),o&&n(se,{tone:"warn",children:a("sub.capReasonRequired")}),n(se,{children:a("sub.capReasonHint")})]})}function sp({id:e,file:t,disabled:o,onPick:r}){let a=kt(),[i,s]=S(!1);$(()=>{let c=()=>s(!1);return window.addEventListener("dragend",c),window.addEventListener("drop",c,!0),window.addEventListener("blur",c),()=>{window.removeEventListener("dragend",c),window.removeEventListener("drop",c,!0),window.removeEventListener("blur",c)}},[]);let l=c=>{c&&!o&&r(c)};return n("label",{class:`fx-sub-drop${i?" is-over":""}${t?" is-filled":""}`,for:`${e}-zip`,onDragOver:c=>{c.preventDefault(),o||s(!0)},onDragLeave:()=>s(!1),onDrop:c=>{c.preventDefault(),s(!1),l(c.dataTransfer?.files?.[0])},children:[n(B,{name:t?"box":"upload",size:18}),n("span",{class:"fx-sub-drop-text",children:[n("strong",{children:t?t.name:a("sub.dropTitle")}),n("small",{children:t?a("sub.dropReplace",{size:Ly(t.size)}):a("sub.dropHint")})]}),n("input",{id:`${e}-zip`,class:"fx-sub-file",type:"file",accept:".zip,application/zip",disabled:o,onChange:c=>{l(c.currentTarget.files?.[0]),c.currentTarget.value=""}})]})}function lp({check:e,update:t}){let o=kt(),r=e.manifest,a=[r?[!0,"sub.checkType",`${o(Ma(r.type))} \xB7 ${r.file}`]:[!1,"sub.checkType",o("sub.warn.no_manifest")],...e.version?[[!0,"sub.checkVersion",e.current?`v${e.current} \u2192 v${e.version}`:`v${e.version}`]]:[],[!0,"sub.checkIcon",o(e.icon?"sub.iconYes":"sub.iconNo")],[!0,"sub.checkReadme",o(e.readme?"sub.readmeYes":t?"sub.readmeKeep":"sub.readmeNo")],[!0,"sub.checkReq",Dy(e.metadata,o)],...(e.warnings||[]).filter(i=>i!=="no_manifest"&&Iy.has(i)).map(i=>[!1,"sub.checkWarn",o(`sub.warn.${i}`)])];return n("ul",{class:"fx-sub-checks",children:a.map(([i,s,l])=>n("li",{class:i?"is-ok":"is-warn",children:[n(B,{name:i?"check":"alert",size:14}),n("span",{class:"fx-sub-k",children:o(s)}),n("span",{children:l})]}))})}function Ny({item:e,checks:t,onDone:o}){let r=kt(),a=Ln(),i=Le(),s=me(),[l,c]=S(null),[d,p]=S(null),[u,m]=S(e.capabilityReason||""),f=h=>void s.run(async()=>{c(null),p(null);let b=await rp(h);if(!i.current)return;if(!("data"in b))return b;if(c(b),!t)return;let v=await zo({id:e.id,dryRun:!0,fields:{},zip:b});if(i.current){if(!v.ok)return v.out;p(v.data)}}),g=()=>void s.run(async()=>{if(!l)return;let h=op(d,u);if(h)return h;let b=await zo({id:e.id,fields:Cs(u),zip:l});if(i.current){if(!b.ok)return b.out;o(np(e))}});return n(I,{children:[n(sp,{id:a,file:l,disabled:s.pending,onPick:f}),d&&n(lp,{check:d,update:!0}),d&&n(se,{children:r(e.status==="approved"?"sub.zipListedNote":"sub.zipUnlistedNote")}),l&&n(_s,{id:a,value:u,required:Ss(d?.capabilities),onInput:h=>{m(h),s.clear()}}),l&&n("div",{class:"fx-sub-actions",children:[n(W,{variant:"primary",pending:s.pending,disabled:t&&!d,onClick:g,children:d?.version?r("sub.submitVersion",{version:d.version}):r("sub.submit")}),n(W,{disabled:s.pending,onClick:()=>{c(null),p(null),s.clear()},children:r("common.cancel")})]}),n(ye,{a:s,captchaSection:"submission"})]})}function Oy({item:e,onDone:t}){let o=kt(),r=Ln(),a=Le(),i=me(),[s,l]=S(null),[c,d]=S(e.capabilityReason||""),[p,u]=S(null),m=()=>void i.run(async()=>{l(null),u(null);let h=await zo({id:e.id,dryRun:!0,fields:{}});if(a.current){if(!h.ok){if(h.code==="market_version_not_newer"&&h.values.version){u(h.values);return}return h.out}l(h.data)}}),f=()=>void i.run(async()=>{let h=await zo({id:e.id,fields:Cs(c)});if(a.current){if(!h.ok)return h.out;t(np(e))}}),g=e.source==="github"?e.githubRepoUrl:e.npmPackage;return n(I,{children:[!s&&n(W,{pending:i.pending,onClick:m,children:[n(B,{name:"refresh",size:13}),o(p?"sub.checkAgain":"sub.checkNew")]}),p&&n(se,{children:o("sub.upToDate",{version:p.version,current:p.current||p.version})}),s&&n(I,{children:[n("div",{class:"fx-sub-upstream",children:[n(B,{name:e.source==="github"?"link":"box",size:18}),n("span",{children:[n("strong",{children:o("sub.upstreamLatest",{version:s.version||""})}),n("small",{children:[g,s.tag&&o("sub.releaseTag",{tag:s.tag}),s.current&&o("sub.storeHas",{version:s.current})].filter(Boolean).join(" \xB7 ")})]})]}),n(se,{children:o(e.source==="github"?"sub.githubNote":"sub.npmNote",{version:s.version||""})}),n(_s,{id:r,value:c,required:!1,onInput:h=>{d(h),i.clear()}}),n("div",{class:"fx-sub-actions",children:[n(W,{variant:"primary",pending:i.pending,onClick:f,children:o("sub.submitVersion",{version:s.version||""})}),n(W,{disabled:i.pending,onClick:()=>{l(null),i.clear()},children:o("common.cancel")})]})]}),n(ye,{a:i,captchaSection:"submission"})]})}function Fy({item:e,onDone:t}){let o=kt(),r=Ln(),a=Le(),i=me(),s=()=>({name:e.name,summary:e.summary||"",description:e.description||"",tags:(e.tags||[]).join(", "),minAppVersion:e.minAppVersion||"",maxAppVersion:e.maxAppVersion||"",platforms:(e.platforms||[]).join(", ")}),[l,c]=S(s),[d,p]=S(new Set),[u,m]=S(!1),f=v=>w=>{c(k=>({...k,[v]:w})),p(k=>new Set([...k,v])),i.clear()},g=()=>void i.run(async()=>{if(!l.name.trim())return{error:{key:"sub.errName"}};if(!d.size)return{error:{key:"sub.err.market_no_changes"}};let v=await zo({id:e.id,fields:{mode:"info",...Object.fromEntries([...d].map(w=>[w,l[w].trim()]))}});if(a.current){if(!v.ok)return v.out;m(!1),t(e.status==="approved"?"sub.infoSubmitted":"sub.resubmitted")}}),h=(v,w,k={})=>n(ip,{id:r,name:v,label:o(w),value:l[v],onInput:f(v),...k}),b=o("sub.unset");return n("section",{class:"fx-sub-sec",children:[n("div",{class:"fx-sub-sec-bar",children:[n("h4",{children:o("sub.secInfo")}),!u&&n(W,{disabled:!!e.pendingUpdate,title:e.pendingUpdate?o("sub.err.market_update_pending"):void 0,onClick:()=>{c(s()),p(new Set),i.clear(),m(!0)},children:[n(B,{name:"pencil",size:13}),o("sub.edit")]})]}),u?n("form",{class:"fx-sub-form fx-sub-form--inline",onSubmit:v=>{v.preventDefault(),g()},children:[n("fieldset",{disabled:i.pending,children:[n("div",{class:"fx-sub-columns",children:[h("name","sub.name"),h("tags","sub.tags",{placeholder:o("sub.tagsHint")})]}),h("summary","sub.summary"),h("description","sub.description",{rows:3}),n("div",{class:"fx-sub-columns",children:[h("minAppVersion","sub.minAppVersion",{placeholder:"2.13.0"}),h("maxAppVersion","sub.maxAppVersion",{placeholder:o("sub.optional")})]}),h("platforms","sub.platforms",{placeholder:"desktop, android, ios, web"}),n(se,{children:o("sub.requirementsHint")}),n(se,{children:o("sub.infoNote")})]}),n("div",{class:"fx-sub-actions",children:[n(W,{variant:"primary",pending:i.pending,submit:!0,children:o("sub.submitInfo")}),n(W,{disabled:i.pending,onClick:()=>{m(!1),i.clear()},children:o("common.cancel")})]}),n(ye,{a:i,captchaSection:"submission"})]}):n("dl",{class:"fx-sub-kv",children:[n("dt",{children:o("sub.summary")}),n("dd",{children:e.summary||b}),n("dt",{children:o("sub.description")}),n("dd",{class:"fx-sub-clamp",children:e.description||b}),n("dt",{children:o("sub.tags")}),n("dd",{children:e.tags?.length?e.tags.join(", "):b}),n("dt",{children:o("sub.minAppVersion")}),n("dd",{children:e.minAppVersion||b}),n("dt",{children:o("sub.maxAppVersion")}),n("dd",{children:e.maxAppVersion||b}),n("dt",{children:o("sub.platforms")}),n("dd",{children:e.platforms?.length?e.platforms.join(", "):b})]})]})}function By({item:e,checks:t,notice:o,onBack:r,onDone:a}){let i=kt(),{locale:s}=ae(),l=e.pendingUpdate,c=e.rejectedUpdate;return n("div",{class:"fx-sub-detail","data-detail-id":e.id,children:[n("button",{type:"button",class:"btn sm ghost fx-sub-back",onClick:r,children:[n(B,{name:"back",size:13}),i("sub.back")]}),n("div",{class:"fx-sub-dhead",children:[n("div",{class:"fx-sub-item-head",children:[n("strong",{children:e.name}),n(ap,{status:e.status})]}),n("div",{class:"fx-sub-meta",children:[n("span",{children:i(Ma(e.type))}),n("span",{children:zs(e.source)}),e.version&&n("span",{children:["v",e.version]}),n("span",{children:i("sub.downloads",{n:e.downloads||0})})]}),n("div",{children:n(jt,{text:e.id,label:`${i("sub.identity")} ${e.id.slice(0,8)}`})})]}),o&&n("p",{class:"fx-msg is-ok",role:"status",children:i(o)}),n("section",{class:"fx-sub-sec",children:[n("h4",{children:i("sub.secVersion")}),e.status==="rejected"&&e.reviewNote&&n(se,{tone:"error",children:e.reviewNote}),c&&n(se,{tone:"error",children:[i(c.kind==="info"?"sub.rejectedInfo":"sub.rejectedVersion",{version:c.version}),c.note?`: ${c.note}`:""]}),l?n(I,{children:[n(se,{children:i(l.kind==="info"?"sub.pendingInfo":"sub.pendingVersion",{version:l.version})}),n(se,{children:i("sub.pendingHint")})]}):e.status==="pending"&&e.source!=="zip"?n(se,{children:i("sub.inReview")}):e.source==="zip"?n(Ny,{item:e,checks:t,onDone:a}):n(Oy,{item:e,onDone:a})]}),n(Fy,{item:e,onDone:a}),n("section",{class:"fx-sub-sec",children:[n("h4",{children:i("sub.secHistory")}),n("ul",{class:"fx-sub-time",children:[(e.versions||[]).map(d=>n("li",{children:[n("span",{children:It(d.createdAt,s)}),n("span",{children:i("sub.histApproved",{version:d.version})})]},`${d.version}-${d.createdAt}`)),e.createdAt&&n("li",{children:[n("span",{children:It(e.createdAt,s)}),n("span",{children:i("sub.histSubmitted")})]})]})]})]})}function Uy({checks:e,onDone:t,onBack:o}){let r=kt(),a=Ln(),i=Le(),s=me(),[l,c]=S("zip"),[d,p]=S({type:"plugin",name:"",summary:"",githubRepoUrl:"",npmPackage:"",description:"",tags:"",minAppVersion:"",maxAppVersion:"",platforms:"",capabilityReason:""}),[u,m]=S(new Set),[f,g]=S(null),[h,b]=S(null),v=T=>F=>{p(V=>({...V,[T]:F})),m(V=>new Set([...V,T])),s.clear()},w=T=>void s.run(async()=>{g(null),b(null);let F=await rp(T);if(!i.current)return;if(!("data"in F))return F;if(g(F),!e)return;let V=await zo({dryRun:!0,fields:{source:"zip"},zip:F});if(!i.current)return;if(!V.ok)return V.out;let D=V.data;b(D);let j=D.manifest;p(A=>({...A,type:!u.has("type")&&j&&Qu.includes(j.type)?j.type:A.type,name:!u.has("name")&&!A.name&&j?.name?j.name:A.name}))}),k=()=>void s.run(async()=>{if(!d.name.trim())return{error:{key:"sub.errName"}};if(l!=="zip"&&!(l==="github"?d.githubRepoUrl:d.npmPackage).trim())return{error:{key:"sub.errSource"}};if(l==="zip"&&!f)return{error:{key:"sub.errZip"}};let T=l==="zip"?op(h,d.capabilityReason):null;if(T)return T;let F=l==="github"?{githubRepoUrl:d.githubRepoUrl.trim()}:l==="npm"?{npmPackage:d.npmPackage.trim()}:{},V=await zo({fields:{type:d.type,source:l,name:d.name.trim(),summary:d.summary.trim(),...F,...Object.fromEntries(Ey.map(D=>[D,d[D].trim()])),...Cs(d.capabilityReason)},zip:l==="zip"?f:null});if(i.current){if(!V.ok)return V.out;t(String(V.data?.id||""))}}),x=(T,F,V={})=>n(ip,{id:a,name:T,label:r(F),value:d[T],onInput:v(T),...V});return n("div",{class:"fx-sub-detail",children:[n("button",{type:"button",class:"btn sm ghost fx-sub-back",onClick:o,children:[n(B,{name:"back",size:13}),r("sub.back")]}),n("div",{class:"fx-sub-dhead",children:n("div",{class:"fx-sub-item-head",children:n("strong",{children:r("sub.new")})})}),n("form",{class:"fx-sub-form fx-sub-form--inline",onSubmit:T=>{T.preventDefault(),k()},children:[n("fieldset",{disabled:s.pending,children:[n(Ot,{label:r("sub.source"),value:l,options:Ty.map(T=>({value:T,label:zs(T)})),onChange:T=>{c(T),s.clear()}}),l==="zip"?n(I,{children:[n(sp,{id:a,file:f,disabled:s.pending,onPick:w}),h?n(lp,{check:h,update:!1}):n(se,{children:r("sub.zipHint")})]}):n(I,{children:[l==="github"?x("githubRepoUrl","sub.repo",{placeholder:"https://github.com/owner/repo"}):x("npmPackage","sub.npm",{placeholder:"@scope/plugin-name"}),n(se,{children:r(l==="github"?"sub.repoHint":"sub.npmHint")})]}),n("div",{class:"fx-sub-columns",children:[n("label",{class:"fx-sub-field",for:`${a}-type`,children:[n("span",{children:r("sub.type")}),n("select",{id:`${a}-type`,value:d.type,onChange:T=>v("type")(T.currentTarget.value),children:Qu.map(T=>n("option",{value:T,children:r(Ma(T))},T))})]}),x("name","sub.name")]}),x("summary","sub.summary"),x("description","sub.description",{rows:3}),x("tags","sub.tags",{placeholder:r("sub.tagsHint")}),n("div",{class:"fx-sub-columns",children:[x("minAppVersion","sub.minAppVersion",{placeholder:"2.13.0"}),x("maxAppVersion","sub.maxAppVersion",{placeholder:r("sub.optional")})]}),x("platforms","sub.platforms",{placeholder:"desktop, android, ios, web"}),n(se,{children:r("sub.requirementsHint")}),n(_s,{id:a,value:d.capabilityReason,required:l==="zip"&&Ss(h?.capabilities),onInput:v("capabilityReason")}),n(se,{children:r("sub.identityHint")}),n(se,{children:r("sub.reviewHint")})]}),n("div",{class:"fx-sub-actions",children:[n(W,{variant:"primary",pending:s.pending,submit:!0,children:r("sub.submit")}),n(W,{disabled:s.pending,onClick:o,children:r("common.cancel")})]}),n(ye,{a:s,captchaSection:"submission"})]})]})}var ks=null,ws=new Set;function cp(e){let t=!1;for(let o of ws)t=o(e)||t;ks=t?null:{id:e,at:Date.now()}}var $y=()=>{let e=ks;return ks=null,e&&Date.now()-e.at<3e4?e.id:null};function Hy({items:e,checks:t,reload:o}){let r=kt(),[a,i]=S("all"),[s,l]=S(()=>{let v=$y();return v&&e.some(w=>w.id===v)?v:null}),[c,d]=S(()=>s!==null),[p,u]=S(null);$(()=>{let v=w=>e.some(k=>k.id===w)?(i("all"),l(w),d(!0),u(null),!0):!1;return ws.add(v),()=>{ws.delete(v)}},[e]);let m=e.filter(v=>ep(v,a)),f=s==="new"?null:m.find(v=>v.id===s)||m[0]||null,g=v=>{l(v),d(!0),u(null)},h=(v,w)=>{i("all"),l(v),u({id:v,key:w}),o()},b=v=>e.filter(w=>ep(w,v)).length;return n(Re,{title:r("sub.mine"),desc:r("sub.desc"),actions:n(I,{children:[n(W,{variant:"primary",disabled:s==="new",onClick:()=>g("new"),children:[n(B,{name:"plus",size:13}),r("sub.new")]}),n(W,{onClick:o,children:r("sub.refresh")})]}),children:!e.length&&s!=="new"?n(Tt,{children:[n("strong",{children:r("sub.empty")}),n("p",{children:r("sub.emptyHint")})]}):n(I,{children:[!!e.length&&n("div",{class:"fx-sub-filter",children:n(Ot,{label:r("sub.filter"),value:a,onChange:i,options:["all","pending","approved","rejected"].map(v=>({value:v,label:`${r(v==="all"?"sub.all":tp(v))} ${b(v)}`}))})}),n("div",{class:"fx-sub-cq",children:n("div",{class:`fx-sub-split${c?" is-picked":""}`,children:[n("nav",{class:"fx-sub-list","aria-label":r("sub.mine"),children:m.length?m.map(v=>n("button",{type:"button","data-submission-id":v.id,class:`fx-sub-li${v.id===f?.id?" is-on":""}`,"aria-current":v.id===f?.id||void 0,onClick:()=>g(v.id),children:[n("span",{class:"fx-sub-li-top",children:[n("strong",{children:v.name}),n(ap,{status:v.status})]}),n("span",{class:"fx-sub-li-meta",children:[r(Ma(v.type)),zs(v.source),v.version&&`v${v.version}`].filter(Boolean).join(" \xB7 ")}),v.pendingUpdate&&n("span",{class:"fx-sub-li-meta",children:r(v.pendingUpdate.kind==="info"?"sub.pendingInfo":"sub.pendingVersion",{version:v.pendingUpdate.version})})]},v.id)):n("p",{class:"fx-note",children:r(e.length?"sub.noResults":"sub.empty")})}),s==="new"?n(Uy,{checks:t,onBack:()=>{l(null),d(!1)},onDone:v=>h(v,"sub.submitted")}):f?n(By,{item:f,checks:t,notice:p?.id===f.id?p.key:null,onBack:()=>d(!1),onDone:v=>h(f.id,v)},f.id):n("div",{class:"fx-sub-detail",children:n("p",{class:"fx-note",children:r("sub.noResults")})})]})})]})})}function dp(){let e=pt(()=>H("/market/mine"));switch(e.state){case"loading":return n(nt,{});case"signedOut":return n(bt,{});case"error":return n(wt,{error:e.error,onRetry:e.retry});case"ready":return n(Hy,{items:e.data?.items||[],checks:e.data?.dryRun===!0,reload:e.reload})}}var to=Object.freeze({payer:"visitor",perVisitorDaily:20,pageDailyPoints:300,onExhausted:"visitor",models:[]}),So=(e,t)=>typeof e=="number"&&Number.isFinite(e)?Math.round(e):t,La=e=>!!e&&typeof e=="object"&&!Array.isArray(e);function jo(e){return{payer:e?.payer==="author"?"author":"visitor",perVisitorDaily:Math.max(1,So(e?.perVisitorDaily,to.perVisitorDaily)),pageDailyPoints:Math.max(1,So(e?.pageDailyPoints,to.pageDailyPoints)),onExhausted:e?.onExhausted==="pause"?"pause":"visitor",models:Array.isArray(e?.models)?e.models.filter(t=>typeof t=="string"):[]}}function up(e,t){return e.payer===t.payer&&e.perVisitorDaily===t.perVisitorDaily&&e.pageDailyPoints===t.pageDailyPoints&&e.onExhausted===t.onExhausted&&e.models.length===t.models.length&&e.models.every((o,r)=>o===t.models[r])}function pp(e,t,o){let r=Cr(e,o),a=Cr(t,o),i={};return r.payer!==a.payer&&(i.payer=r.payer),r.perVisitorDaily!==a.perVisitorDaily&&(i.perVisitorDaily=r.perVisitorDaily),r.pageDailyPoints!==a.pageDailyPoints&&(i.pageDailyPoints=r.pageDailyPoints),r.onExhausted!==a.onExhausted&&(i.onExhausted=r.onExhausted),(r.models.length!==a.models.length||r.models.some((s,l)=>s!==a.models[l]))&&(i.models=r.models),i}var fp=(e,t)=>H(`/connect/apps/${encodeURIComponent(e)}/ai`,{method:"PUT",body:t}),As=e=>Math.max(1,So(e?.perVisitorMax,50)),Da=e=>Math.max(1,So(e?.pageDailyMax,2e4));function Cr(e,t){return{...e,perVisitorDaily:Math.min(As(t),Math.max(1,So(e.perVisitorDaily,to.perVisitorDaily))),pageDailyPoints:Math.min(Da(t),Math.max(1,So(e.pageDailyPoints,to.pageDailyPoints)))}}var mp=e=>(e?.models||[]).filter(t=>t?.isDefault).map(t=>t.id);function Ts(e,t,o){return e.models.length?e.models.includes(o):mp(t).includes(o)}function gp(e,t,o){let r=new Set((t?.models||[]).map(s=>s.id)),a=(e.models.length?e.models:mp(t)).filter(s=>r.has(s)),i=a.includes(o)?a.filter(s=>s!==o):[...a,o];return i.length?{...e,models:i}:e}var hp=e=>e.type==="image"||e.type==="image_gen";function bp(e,t=Date.now()){let o=e?.cooldownUntil?Date.parse(e.cooldownUntil):NaN;return Number.isFinite(o)&&o>t}function vp(e,t){let o=Math.min(Math.max(1,So(e?.pageDailyPoints,to.pageDailyPoints)),Da(t)),r=Math.max(0,Number(e?.today?.points)||0);return Math.max(0,Math.min(100,Math.round(r/o*100)))}function yp(e){let t=Number(e?.balance)||0,o=Math.max((Number(e?.balance)||0)+Math.max(0,Number(e?.monthSpent)||0),Number(e?.lastTopUp?.amount)||0);return o>0&&t<o*.1}function xp(e,t,o){let r=Cr(t,o);return H(`/connect/apps/${encodeURIComponent(e)}/ai`,{method:"PUT",body:{payer:r.payer,perVisitorDaily:r.perVisitorDaily,pageDailyPoints:r.pageDailyPoints,onExhausted:r.onExhausted,models:r.models}})}var kp=e=>H(`/connect/apps/${encodeURIComponent(e)}/ai/resume`,{method:"POST"}),qy="forsion-extend:items";function _r(e){let t=Oe(e?.getLocale?.()),o=Q().openFloatingPanel;if(o){o({id:"market",title:Ce(t,"pack.storeTitle"),builtin:"market",params:{storeView:qy,nonce:Date.now()}})?.catch?.(()=>{});return}e?.app?.runCommand?.("open-market")||e?.app?.notify?.(Ce(t,"pack.storeUnavailable"))}function wp(e){let{t}=ae(),[o,r]=S(String(e.value));$(()=>{r(String(e.value))},[e.value]);let a=()=>{let i=Math.min(e.max,Math.max(1,parseInt(o,10)||1));r(String(i)),i!==e.value&&e.onChange(i)};return n("input",{class:e.wide?"is-wide":void 0,type:"text",inputMode:"numeric","aria-label":e.label,title:t("ai.max",{n:e.max}),value:o,disabled:e.disabled,onInput:i=>{let s=i.currentTarget.value.replace(/[^0-9]/g,"").slice(0,7);r(s);let l=parseInt(s,10);l>=1&&l<=e.max&&l!==e.value&&e.onChange(l)},onBlur:a,onKeyDown:i=>{i.key==="Enter"&&a()}})}function zp(e){let{t}=ae(),o=e.model,r=n(I,{children:[e.on&&n(B,{name:"check",size:11}),hp(o)?`${t("ai.modelImage")} \xB7 ${o.name||o.id}`:o.name||o.id,o.isDefault&&n("em",{children:t("ai.modelDefault")})]});return e.onClick?n("button",{type:"button",class:`fx-pub-chip${e.on?" is-on":""}`,"aria-pressed":e.on,disabled:e.disabled,onClick:e.onClick,children:r}):n("span",{class:`fx-pub-chip${e.on?" is-on":""}`,children:r})}function Na(e){let{t,locale:o}=ae(),r=Ln(),{draft:a,ap:i}=e,s=i.enabled!==!1,l=s&&a.payer==="author",c=h=>e.onChange(Cr({...a,...h},i)),d=(i.models||[]).filter(h=>h&&typeof h.id=="string"),p=(i.visitorModels||[]).filter(h=>h&&typeof h.id=="string"),u=d.filter(h=>Ts(a,i,h.id)).length,m=(e.methods||[]).filter(Boolean),f=e.cooldownUntil&&Date.parse(e.cooldownUntil)>Date.now()?e.cooldownUntil:null,g=Number(i.balance)||0;return n("div",{class:"fx-pub-ai","data-fx-ai":l?"author":"visitor",children:[n("div",{class:"fx-pub-ai-head",children:[n(B,{name:"sparkles",size:13}),n("b",{children:"AI"}),m.length>0&&n("small",{children:m.join(" \xB7 ")})]}),s&&n("div",{class:"fx-pub-row",children:[n("span",{class:"fx-pub-label",children:t("ai.whoPays")}),n(Ot,{value:a.payer,label:t("ai.whoPays"),options:[{value:"visitor",label:t("ai.payer.visitor")},{value:"author",label:t("ai.payer.author")}],onChange:h=>{e.disabled||c({payer:h})}})]}),l&&n(I,{children:[n("div",{class:"fx-pub-row",children:[n("span",{class:"fx-pub-label",children:t("ai.perVisitor")}),n("span",{class:"fx-pub-num",children:[t("ai.perVisitorPre")," ",n(wp,{value:a.perVisitorDaily,max:As(i),label:t("ai.perVisitor"),disabled:e.disabled,onChange:h=>c({perVisitorDaily:h})})," ",t("ai.perVisitorPost")]})]}),n("div",{class:"fx-pub-row",children:[n("span",{class:"fx-pub-label",children:t("ai.page")}),n("span",{class:"fx-pub-num",children:[t("ai.pagePre")," ",n(wp,{wide:!0,value:a.pageDailyPoints,max:Da(i),label:t("ai.page"),disabled:e.disabled,onChange:h=>c({pageDailyPoints:h})})," ",t("ai.pagePost")]})]}),n("div",{class:"fx-pub-row is-top",children:[n("span",{class:"fx-pub-label",id:`${r}-ex`,children:t("ai.whenUsedUp")}),n("div",{class:"fx-pub-radio",role:"radiogroup","aria-labelledby":`${r}-ex`,children:["visitor","pause"].map(h=>n("label",{children:[n("input",{type:"radio",name:`${r}-ex`,value:h,checked:a.onExhausted===h,disabled:e.disabled,onChange:()=>c({onExhausted:h})}),n("i",{"aria-hidden":"true"}),t(h==="visitor"?"ai.exhausted.visitor":"ai.exhausted.pause")]},h))})]})]}),(l?d:p).length>0&&n("div",{class:"fx-pub-row is-top",children:[n("span",{class:"fx-pub-label",children:t("ai.models")}),n("div",{class:"fx-pub-chips",role:"group","aria-label":t("ai.models"),children:l?d.map(h=>{let b=Ts(a,i,h.id);return n(zp,{model:h,on:b,disabled:e.disabled||b&&u<=1,onClick:()=>e.onChange(gp(a,i,h.id))},h.id)}):p.map(h=>n(zp,{model:h,on:!0},h.id))})]}),l&&n("div",{class:"fx-pub-budget",children:[t("ai.balance")," ",n("b",{children:t("ai.points",{n:ze(g,o)})}),n("span",{class:"fx-pub-spacer"}),n("button",{type:"button",onClick:e.onBuy,children:t("ai.buy")})]}),l&&(e.unpublished||f)&&n("p",{class:"fx-pub-note is-warn",children:[n(B,{name:"clock",size:11}),f?t("ai.cooldownUntil",{time:Pt(f,o)}):t("ai.cooldownNew",{h:Math.max(0,Math.round(Number(i.cooldownHours??24)))})]}),l&&m.includes("forsion.ai.agent")&&n("p",{class:"fx-pub-note",children:[n(B,{name:"alert",size:11}),t("ai.agentNote")]}),n("p",{class:"fx-pub-note",children:[n(B,{name:l?"info":"user",size:11}),t(s?l?"ai.noteAuthor":"ai.noteVisitor":"ai.noteOff")]})]})}var Oa=`
750
755
  .fx-pub-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.42); }
751
756
  .fx-pub-card { box-sizing: border-box; width: 440px; max-width: calc(100vw - 40px); max-height: calc(100vh - 60px); overflow: auto; padding: 16px 18px; border: var(--border-width) solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); box-shadow: var(--card-shadow); color: var(--text); font-family: var(--font-ui); font-size: var(--ui-font-body); line-height: var(--ui-line-body); text-align: left; }
752
757
  .fx-pub-head { display: flex; align-items: center; gap: 8px; color: var(--text); }
@@ -869,7 +874,7 @@ button.fx-pub-chip:disabled { cursor: default; }
869
874
  .fx-pub-who { display: inline-flex; align-items: center; gap: 6px; }
870
875
  .fx-pub-av { display: inline-grid; place-items: center; width: 18px; height: 18px; overflow: hidden; border-radius: 50%; background: var(--accent-tint); color: var(--accent-ink); font-size: var(--ui-font-caption); line-height: 1; font-weight: 600; }
871
876
  .fx-pub-av img { width: 100%; height: 100%; object-fit: cover; }
872
- `;var Ss=300,zr=e=>e.replace(/\/+$/,"").replace(/\/api$/,""),Cs=e=>typeof e=="string"&&/^https?:\/\//i.test(e);function _s(e,t,o){let r=e.apps?.find(i=>i.slug===o);if(Cs(r?.publicUrl))return r.publicUrl;let a=e.publicBase?zr(e.publicBase):t;return a&&e.handle?`${a}/apps/${e.handle}/${o}/`:""}var As=(e=0)=>e<1024*1024?`${Math.max(1,Math.ceil(e/1024))} KB`:`${(e/1024/1024).toFixed(1)} MB`;function ap(e,t){let o=ee().openExternal;o&&(t.preventDefault(),o(e)?.catch(()=>{}))}function ly({page:e}){let{t,locale:o}=se();return typeof e.likes!="number"&&typeof e.favorites!="number"?null:n("span",{class:"fx-pub-soc","data-fx-social":!0,children:[typeof e.likes=="number"&&n("span",{title:t("pub.likes",{n:ze(e.likes,o)}),children:[n(U,{name:"heart",size:11}),ze(e.likes,o)]}),typeof e.favorites=="number"&&n("span",{title:t("pub.saves",{n:ze(e.favorites,o)}),children:[n(U,{name:"star",size:11}),ze(e.favorites,o)]})]})}function cy({page:e,ap:t,open:o,onToggle:r,reload:a}){let{t:i,locale:s}=se(),l=ve(),c=e.ai,d=n(ly,{page:e}),p=e.status==="disabled";if(!t||!c||p||e.usesSdk===!1)return!(typeof e.likes=="number"||typeof e.favorites=="number")&&!(t&&e.usesSdk===!1)?null:n("div",{class:"fx-pub-ai-line","data-fx-ai-line":"none",children:[d,t&&e.usesSdk===!1&&n("span",{children:i("web.ai.none")})]});let u=m=>ze(Math.max(0,Number(m)||0),s),f=n("button",{type:"button",class:"fx-link","aria-expanded":o,onClick:r,children:i("web.ai.settings")});if(c.payer==="author"&&c.paused){let m=c.pausedReason==="admin";return n("div",{class:"fx-pub-ai-line","data-fx-ai-line":"paused",children:[n("span",{class:"fx-pub-pill",children:[n(U,{name:"sparkles",size:11}),i("web.ai.paused")]}),n("span",{children:i(m?"web.ai.pausedAdmin":"web.ai.pausedSpike")}),d,n("span",{class:"fx-pub-grow"}),!m&&n(V,{pending:l.pending,onClick:()=>void l.run(async()=>{let g=await np(e.slug);if(!g.ok)return qe(g);a()}),children:i("web.ai.resume")}),f,n(ke,{a:l})]})}if(c.payer==="author"){let m=ep(c,t);return n("div",{class:"fx-pub-ai-line","data-fx-ai-line":"author",children:[n("span",{class:"fx-pub-pill is-on",children:[n(U,{name:"sparkles",size:11}),i("web.ai.author")]}),Qu(c)?n("span",{children:i("web.ai.cooldown",{time:Et(c.cooldownUntil,s)})}):n(M,{children:[n("span",{children:i("web.ai.todayAuthor",{calls:u(c.today?.calls),visitors:u(c.today?.visitors)})}),n("span",{class:"fx-pub-meter",role:"meter","aria-label":i("web.ai.cap"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":m,children:[i("web.ai.cap")," ",n("span",{children:n("i",{style:{width:`${m}%`}})}),m,"%"]})]}),d,n("span",{class:"fx-pub-grow"}),f]})}return n("div",{class:"fx-pub-ai-line","data-fx-ai-line":"visitor",children:[n("span",{class:"fx-pub-pill",children:[n(U,{name:"sparkles",size:11}),i("web.ai.visitor")]}),n("span",{children:i("web.ai.todayVisitor",{calls:u(c.today?.calls)})}),d,n("span",{class:"fx-pub-grow"}),f]})}function dy({page:e,ap:t,onDone:o,onBusy:r,reload:a}){let{t:i,ctx:s}=se(),l=ve(),c=qo(e.ai),[d,p]=C(c),u=!Ta(d,c);return n("div",{class:"fx-pub-inline","data-fx-ai-settings":!0,children:[n(Ia,{draft:d,onChange:p,ap:t,cooldownUntil:e.ai?.cooldownUntil,disabled:l.pending,onBuy:()=>wr(s)}),n("div",{class:"fx-pub-inline-acts",children:[n(V,{variant:"primary",pending:l.pending,disabled:!u,onClick:()=>void l.run(async()=>{r(!0);try{let f=await Pa(e.slug,d,t);if(!f.ok)return qe(f);a(),o()}finally{r(!1)}}),children:i("ai.save")}),n(V,{disabled:l.pending,onClick:o,children:i("common.cancel")})]}),n(ke,{a:l})]})}function uy({page:e,url:t,reload:o,ap:r}){let a=vt(),{locale:i}=se(),s=Mn(),l=ve(),[c,d]=C(null),[p,u]=C(!1),[f,m]=C(!1),g=e.listing_status||null,h=e.status==="disabled",v=(w,S,T,F)=>void l.run(async()=>{let B=await q(w,{method:S,body:T});if(!B.ok)return qe(B);F?.(),o()}),b=`/connect/apps/${encodeURIComponent(e.slug)}`,x=g==="pending"?["web.listingPending","fx-tag--accent"]:g==="approved"?["web.listingApproved","fx-status--resolved"]:g==="rejected"?["web.listingRejected","fx-tag--danger"]:null;return n("article",{class:"fx-sub-item","data-webpage":e.slug,children:[n("div",{class:"fx-sub-item-head",children:[n("strong",{children:e.name||e.slug}),h&&n("span",{class:"fx-tag fx-tag--danger",children:a("web.disabled")}),x&&n("span",{class:`fx-tag ${x[1]}`,children:a(x[0])})]}),t&&n("a",{class:"fx-web-url",href:t,target:"_blank",rel:"noopener noreferrer",onClick:w=>ap(t,w),children:t}),n("div",{class:"fx-sub-meta",children:[n("span",{children:e.slug}),n("span",{children:As(e.total_bytes)}),e.updated_at&&n("span",{children:a("web.updated",{date:Lt(e.updated_at,i)})})]}),n(cy,{page:e,ap:r,open:p,onToggle:()=>{f||u(w=>!w)},reload:o}),p&&r&&e.ai&&!h&&n(dy,{page:e,ap:r,onDone:()=>u(!1),onBusy:m,reload:o}),h&&n(de,{tone:"error",children:a("web.disabledHint")}),g==="rejected"&&e.listing_note&&n(de,{tone:"error",children:a("web.listingNote",{note:e.listing_note})}),c!==null&&n("form",{class:"fx-sub-form",onSubmit:w=>{w.preventDefault(),c.trim()&&v(`${b}/listing`,"PUT",{summary:c.trim()},()=>d(null))},children:[n("label",{class:"fx-sub-field",for:`${s}-summary`,children:[n("span",{children:a("web.listingSummary")}),n("textarea",{id:`${s}-summary`,rows:2,maxLength:Ss,value:c,disabled:l.pending,placeholder:a("web.listingSummaryPh"),onInput:w=>d(w.currentTarget.value)}),n("small",{children:a("web.listingHint")})]}),n("div",{class:"fx-sub-actions",children:[n(V,{variant:"primary",submit:!0,pending:l.pending,disabled:!c.trim(),children:a("web.listingSubmit")}),n(V,{disabled:l.pending,onClick:()=>d(null),children:a("common.cancel")})]})]}),c===null&&n("div",{class:"fx-web-actions",children:[t&&n(Vt,{text:t,label:a("web.copy")}),!h&&!g&&n(V,{disabled:l.pending,onClick:()=>d(""),children:a("web.listingApply")}),!h&&g==="rejected"&&n(V,{disabled:l.pending,onClick:()=>d(e.listing_summary||""),children:a("web.listingReapply")}),g==="pending"&&n(V,{pending:l.pending,onClick:()=>v(`${b}/listing`,"DELETE"),children:a("web.listingWithdraw")}),g==="approved"&&n(Qt,{label:a("web.listingDelist"),confirmLabel:a("web.listingDelistConfirm"),pending:l.pending,onConfirm:()=>v(`${b}/listing`,"DELETE")}),n(Qt,{variant:"danger",label:a("web.unpublish"),confirmLabel:a("web.unpublishConfirm"),pending:l.pending,onConfirm:()=>v(b,"DELETE")})]}),n(ke,{a:l})]})}function py(){let{t:e,locale:t}=se(),o=dt(()=>q("/connect/ai/usage?days=30"));if(o.state==="loading")return n("div",{class:"fx-pub-usage",children:n("p",{children:e("common.loading")})});if(o.state!=="ready")return n("div",{class:"fx-pub-usage",children:n(de,{tone:"error",children:o.state==="error"?e("common.loadFailed"):e("err.signedOut")})});let r=Array.isArray(o.data?.rows)?o.data.rows:[];if(!r.length)return n("div",{class:"fx-pub-usage",children:n("p",{children:e("pack.usageEmpty")})});let a=i=>ze(Math.round(Math.max(0,Number(i)||0)),t);return n("div",{class:"fx-pub-usage","data-fx-usage":!0,children:n("table",{"aria-label":e("pack.usageTitle"),children:[n("thead",{children:n("tr",{children:[n("th",{children:e("pack.col.day")}),n("th",{children:e("pack.col.page")}),n("th",{class:"is-num",children:e("pack.col.calls")}),n("th",{class:"is-num",children:e("pack.col.visitors")}),n("th",{class:"is-num",children:e("pack.col.points")})]})}),n("tbody",{children:r.map((i,s)=>n("tr",{children:[n("td",{children:i.day?Lt(i.day,t):""}),n("td",{children:i.name||i.slug}),n("td",{class:"is-num",children:a(i.calls)}),n("td",{class:"is-num",children:a(i.visitors)}),n("td",{class:"is-num",children:a(i.points)})]},`${i.day}:${i.slug}:${s}`))})]})})}function fy({ap:e}){let{t,locale:o,ctx:r}=se(),[a,i]=C(!1),s=tp(e),l=Math.round(Number(e.balance)||0),c=e.lastTopUp&&typeof e.lastTopUp.amount=="number"?e.lastTopUp:null;return n(M,{children:[n("div",{class:`fx-pub-pool${s?" is-low":""}`,"data-fx-pool":s?"low":"ok",children:[n("div",{children:[n("div",{class:"fx-pub-pool-lbl",children:t("ai.balance")}),n("div",{class:"fx-pub-pool-big",children:[ze(l,o),n("small",{children:t("pack.points")})]}),n("div",{class:"fx-pub-pool-note",children:t(s?"pack.lowNote":"pack.note")})]}),n("div",{class:"fx-pub-pool-acts",children:[n(V,{variant:s?"primary":"ghost",onClick:()=>wr(r),children:t("ai.buy")}),!s&&n(V,{onClick:()=>i(d=>!d),children:t("pack.usage")})]}),n("div",{class:"fx-pub-pool-split",children:[n("span",{children:[t("pack.monthSpent")," ",n("b",{children:t("ai.points",{n:ze(Math.round(Number(e.monthSpent)||0),o)})})]}),c&&n("span",{children:[t("pack.lastTopUp")," ",n("b",{children:t("pack.topUp",{date:c.at?Lt(c.at,o):"",n:ze(Math.round(c.amount),o)})})]})]})]}),a&&!s&&n(py,{})]})}function my({items:e,publicOrigin:t,onRemoved:o}){let{t:r,locale:a}=se();return e.length?n(M,{children:e.map(i=>n(hy,{item:i,publicOrigin:t,locale:a,onRemoved:o},`${i.handle}/${i.slug}`))}):n(At,{children:[n("strong",{children:r("saved.empty")}),n("p",{children:r("saved.emptyHint")})]})}function gy(e,t){if(!e.handle)return"";let o=typeof e.url=="string"?/^(https?:\/\/[^/]+)\/([^/]+)\//i.exec(e.url):null;return o&&o[2]===e.handle?`${o[1]}/${e.handle}`:t&&Cs(t)?`${zr(t)}/${e.handle}`:""}function hy({item:e,publicOrigin:t,locale:o,onRemoved:r}){let a=vt(),i=ve(),s=Cs(e.url)?e.url:"",l=gy(e,t),c=e.authorNickname||e.handle||"",d=p=>{let u=ee().openExternal;u?u(p)?.catch(()=>{}):window.open(p,"_blank","noopener")};return n("article",{class:"fx-sub-item","data-saved":`${e.handle}/${e.slug}`,children:[n("div",{class:"fx-sub-item-head",children:n("strong",{children:e.name||e.slug})}),s&&n("a",{class:"fx-web-url",href:s,target:"_blank",rel:"noopener noreferrer",onClick:p=>ap(s,p),children:s}),n("div",{class:"fx-sub-meta",children:[c&&n("span",{class:"fx-pub-who",children:[n("span",{class:"fx-pub-av","aria-hidden":"true",children:ka(c)}),e.handle?`@${e.handle}`:c]}),typeof e.likes=="number"&&n("span",{class:"fx-pub-soc",children:n("span",{children:[n(U,{name:"heart",size:11}),ze(e.likes,o)]})}),e.payer==="author"?n("span",{children:a("saved.aiAuthor")}):e.payer==="visitor"?n("span",{children:a("saved.aiVisitor")}):null]}),n("div",{class:"fx-web-actions",children:[s&&n(V,{onClick:()=>d(s),children:a("saved.open")}),l&&n(V,{onClick:()=>d(l),children:a("saved.author")}),e.handle&&e.slug&&n(V,{pending:i.pending,onClick:()=>void i.run(async()=>{let p=await q(`/connect/page/${encodeURIComponent(e.handle)}/${encodeURIComponent(e.slug)}/reactions/favorite`,{method:"DELETE"});if(!p.ok)return qe(p);r(e)}),children:a("saved.unsave")})]}),n(ke,{a:i})]})}function by({data:e,reload:t}){let o=vt(),r=$e(),[a,i]=C(""),[s,l]=C("mine"),[c,d]=C({state:"idle"}),p=oe(0);W(()=>{if(e.publicBase)return;let b=!0;return ee().authStatus?.().then(x=>{b&&x?.cloudUrl&&i(zr(x.cloudUrl))}).catch(()=>{}),()=>{b=!1}},[e.publicBase]);let u=Aa(e.authorPays)?e.authorPays:null,f=Bt(()=>{let b=++p.current;d(x=>x.state==="ready"?x:{state:"loading"}),q("/connect/favorites").then(x=>{!r.current||b!==p.current||d(x.ok?{state:"ready",items:Array.isArray(x.data?.items)?x.data.items:[]}:{state:"error"})})},[]);W(()=>{u&&f()},[!!u,f]);let m=e.apps||[],g=b=>_s(e,a,b),h=typeof e.limit=="number"&&m.length>=e.limit,v=()=>{t(),u&&f()};return n(Ne,{title:o("web.title"),desc:o("web.desc"),actions:n(V,{onClick:v,children:o("web.refresh")}),children:[n("style",{children:Ra}),u&&n("div",{class:"fx-pub-tabs",children:n(Dt,{value:s,label:o("web.title"),onChange:l,options:[{value:"mine",label:o("web.tabMine",{n:m.length})},{value:"saved",label:c.state==="ready"?o("web.tabSavedN",{n:c.items.length}):o("web.tabSaved")}]})}),s==="saved"&&u?c.state==="ready"?n(my,{items:c.items,publicOrigin:e.publicOrigin,onRemoved:b=>{p.current++,d(x=>x.state==="ready"?{state:"ready",items:x.items.filter(w=>!(w.handle===b.handle&&w.slug===b.slug))}:x)}}):c.state==="error"?n(At,{children:[n("strong",{children:o("common.loadFailed")}),n("p",{children:n("button",{type:"button",class:"fx-link",onClick:f,children:o("common.retry")})})]}):n(At,{children:n("p",{children:o("common.loading")})}):n(M,{children:[typeof e.limit=="number"&&n("p",{class:"fx-web-quota",children:[o("web.used",{used:m.length,limit:e.limit}),h?` \xB7 ${o("web.full")}`:""]}),u&&n(fy,{ap:u}),m.length?m.map(b=>n(uy,{page:b,url:g(b.slug),reload:t,ap:u},b.slug)):n(At,{children:[n("strong",{children:o("web.empty")}),n("p",{children:o("web.emptyHint")})]})]})]})}function ip(){let e=dt(()=>q("/connect/apps"));switch(e.state){case"loading":return n(nt,{});case"signedOut":return n(mt,{});case"error":return n(yt,{error:e.error,onRetry:e.retry});case"ready":return n(by,{data:e.data||{},reload:e.reload})}}var vy=e=>!!e&&typeof e=="object"&&typeof e.enabled=="boolean";async function Ts(e,t){let o=ee().cloudInvoke;if(!o)throw new Error("no_bridge");let r=await o(e,t);if(!vy(r))throw new Error(String(r?.error??"unavailable"));return r}var yy=["diag.item.app","diag.item.settings","diag.item.agents","diag.item.plugins","diag.item.runs","diag.item.sync"];function sp(){let[e,t]=C(0);return W(()=>ee().onAuthChanged?.(()=>t(o=>o+1)),[]),n(xy,{standalone:!0},e)}function xy({standalone:e=!1}={}){let{t,locale:o}=se(),r=$e(),[a,i]=C(null),[s,l]=C(!1),c=ve(),d=ve();if(W(()=>{let h=!1,v=0,b=()=>{let w=++v;Ts("diagnostics:get").then(S=>{!h&&w===v&&(i(S),l(!0))},()=>{!h&&w===v&&(i(null),l(!0))})};b();let x=ee().onAuthChanged?.(b);return()=>{h=!0,x?.()}},[]),!a?.signedIn)return e?s?a?n(mt,{}):n(At,{children:t("diag.unavailable")}):n(nt,{panels:1}):null;let p=()=>void d.run(async()=>{try{let h=await Ts("diagnostics:uploadNow");return r.current&&i(h),h.lastError?{error:{key:"diag.failed",vars:{reason:h.lastError}}}:h.enabled&&h.lastUploadAt?{success:{key:"diag.uploaded"}}:void 0}catch(h){return{error:{raw:kt(h)||t("err.generic")}}}}),u=async h=>{let v=!1;await c.run(async()=>{d.clear();try{let b=await Ts("diagnostics:set",h);r.current&&i(b),v=!0}catch(b){return{error:{raw:kt(b)||t("err.generic")}}}}),v&&h.enabled&&r.current&&p()},f=a.intervalHours??24,m=a.mode==="manual"?t("diag.freq.manual"):f===1?t("diag.freq.hour"):f%24===0?f===24?t("diag.freq.day"):t("diag.freq.days",{n:f/24}):t("diag.freq.hours",{n:f}),g=`${a.lastUploadAt?t("diag.last",{time:Et(a.lastUploadAt,o)}):t("diag.noUpload")} \xB7 ${m}`;return n(Ne,{icon:"chart",title:t("diag.title"),desc:t("diag.desc"),children:[n(Xe,{label:t("diag.enable"),desc:t("diag.enableDesc"),children:n(rn,{checked:a.enabled,disabled:c.pending,label:t("diag.enable"),onChange:h=>void u({enabled:h})})}),n(Pe,{class:"fx-diag",children:[n("strong",{children:t("diag.collected")}),n("ul",{children:yy.map(h=>n("li",{children:t(h)},h))}),n(de,{children:t("diag.notCollected")})]}),a.sessions!==void 0&&n(Xe,{label:t("diag.sessions"),desc:t("diag.sessionsDesc"),children:n(rn,{checked:a.sessions,disabled:c.pending,label:t("diag.sessions"),onChange:h=>void u({sessions:h})})}),a.memory!==void 0&&n(Xe,{label:t("diag.memory"),desc:t("diag.memoryDesc"),children:n(rn,{checked:a.memory,disabled:c.pending,label:t("diag.memory"),onChange:h=>void u({memory:h})})}),n(Xe,{label:t("diag.activity"),desc:t("diag.activityDesc"),children:n(rn,{checked:a.activity,disabled:c.pending,label:t("diag.activity"),onChange:h=>void u({activity:h})})}),a.enabled&&n("div",{class:"settings-panel-footer fx-footer",children:[n("span",{class:"fx-muted",children:g}),n(V,{pending:d.pending,disabled:c.pending,onClick:p,children:t("diag.uploadNow")})]}),n(Pe,{class:"fx-sub--tight",children:[n(de,{children:t("diag.retention",{n:a.retainDays})}),a.enabled&&a.lastError&&!d.error&&!d.success&&n("div",{class:"fx-msg is-error",role:"alert",children:t("diag.failed",{reason:a.lastError})}),n(ke,{a:c}),n(ke,{a:d})]})]})}var Sr=20,Ma=5,ky=5*1024*1024,La=1e4,wy={open:"fb.status.open",in_progress:"fb.status.in_progress",resolved:"fb.status.resolved",closed:"fb.status.closed"};function cp(e){let{t}=se(),o=e.status||"open",r=wy[o];return n("span",{class:`fx-tag fx-status fx-status--${o}`,children:r?t(r):o})}function dp(){let[e,t]=C(null),o=dt(async()=>{let r=await q(`/feedback?limit=${Sr}&offset=0`);return r.ok?{ok:!0,status:r.status,data:Array.isArray(r.data?.tickets)?r.data.tickets:[]}:r});return o.state==="loading"?n(nt,{panels:1,rows:3}):o.state==="signedOut"?n(mt,{}):o.state==="error"?n(yt,{error:o.error,onRetry:o.retry}):e?n(Ay,{id:e,onBack:()=>{t(null),o.reload()}}):n(zy,{first:o.data,onOpen:t,onChanged:o.reload})}function zy(e){let{t,locale:o}=se(),r=$e(),[a,i]=C(e.first),[s,l]=C(e.first.length===Sr),[c,d]=C(!1),[p,u]=C(!1),f=ve();W(()=>{i(e.first),l(e.first.length===Sr)},[e.first]);let m=()=>void f.run(async()=>{let g=await q(`/feedback?limit=${Sr}&offset=${a.length}`);if(!g.ok)return{error:zt(g)};let h=Array.isArray(g.data?.tickets)?g.data.tickets:[];r.current&&(i(v=>{let b=new Set(v.map(x=>x.id));return[...v,...h.filter(x=>!b.has(x.id))]}),l(h.length===Sr))});return n(Ne,{icon:"message",title:t("fb.list.title"),desc:t("fb.list.desc"),actions:c?void 0:n(V,{variant:"primary",onClick:()=>{u(!1),d(!0)},children:[n(U,{name:"plus",size:12})," ",t("fb.new")]}),children:[c&&n(_y,{onCancel:()=>d(!1),onSubmitted:()=>{d(!1),u(!0),e.onChanged()}}),p&&!c&&n(Pe,{children:n("div",{class:"fx-msg is-ok",role:"status",children:t("fb.submitted")})}),a.length===0?n(At,{children:t("fb.empty")}):n("div",{class:"fx-list fx-block",role:"list",children:a.map(g=>n("button",{type:"button",class:"fx-list-row fx-list-row--button",role:"listitem",onClick:()=>e.onOpen(g.id),children:[n("span",{class:`fx-dot${g.user_unread?" is-on":""}`,"aria-label":g.user_unread?t("fb.unread"):void 0}),n("span",{class:"fx-list-main",children:[n("strong",{children:g.title||(g.description||"").slice(0,60)||t("fb.untitled")}),n("small",{children:Et(g.updated_at||g.created_at,o)})]}),n(cp,{status:g.status}),n(U,{name:"chevron",size:12})]},g.id))}),a.length>0&&(s||f.error)&&n("div",{class:"settings-panel-footer fx-footer",children:[n("span",{class:"fx-muted",children:t("fb.shown",{n:ze(a.length,o)})}),s&&n(V,{pending:f.pending,onClick:m,children:t("common.loadMore")})]}),f.error&&n(Pe,{children:n(ke,{a:f})})]})}function Sy(e){return new Promise((t,o)=>{let r=new FileReader;r.onload=()=>t(String(r.result||"")),r.onerror=()=>o(r.error||new Error("read failed")),r.readAsDataURL(e)})}var Cy=0;function _y(e){let{t}=se(),o=$e(),[r,a]=C(""),[i,s]=C([]),[l,c]=C(null),[d,p]=C(!1),u=oe(null),f=ve(),[m,g]=C(0),h=oe(0);h.current=i.length;let v=async x=>{c(null);for(let w of Array.from(x||[])){if(!w.type||!w.type.startsWith("image/")){c({key:"err.imageType"});continue}if(w.size>ky){c({key:"err.imageTooLarge"});continue}if(h.current>=Ma){c({key:"err.tooManyImages"});break}h.current++,g(S=>S+1);try{let S=await Sy(w);if(!o.current)return;let T={id:`img-${++Cy}`,filename:w.name||"image",mime_type:w.type,size:w.size,data_base64:S.replace(/^data:[^;]+;base64,/,""),url:S};s(F=>F.length>=Ma?F:[...F,T])}catch{h.current--,c({key:"err.imageRead"})}finally{o.current&&g(S=>S-1)}}},b=()=>void f.run(async()=>{let x=r.trim();if(!x)return{error:{key:"err.feedbackEmpty"}};if(x.length>La)return{error:{key:"err.feedbackTooLong"}};let w=i.map(({filename:T,mime_type:F,size:B,data_base64:N})=>({filename:T,mime_type:F,size:B,data_base64:N})),S=await q("/feedback",{method:"POST",body:{description:x,attachments:w},timeoutMs:12e4});if(!S.ok)return qe(S);e.onSubmitted()});return n("div",{class:`fx-sub fx-form fx-composer${d?" is-drag":""}`,onPaste:x=>{let w=Array.from(x.clipboardData?.items||[]).filter(S=>S.kind==="file").map(S=>S.getAsFile()).filter(Boolean);w.length&&(x.preventDefault(),v(w))},onDragOver:x=>{x.preventDefault(),p(!0)},onDragLeave:()=>p(!1),onDrop:x=>{x.preventDefault(),p(!1),v(x.dataTransfer?.files)},children:[n("label",{class:"fx-field",children:[n("span",{children:t("fb.descLabel")}),n("textarea",{class:"fx-input fx-textarea",rows:5,value:r,maxLength:La,autoFocus:!0,placeholder:t("fb.descPlaceholder"),onInput:x=>a(x.currentTarget.value)})]}),n("p",{class:"fx-note",children:t("fb.imagesHint",{n:Ma})}),i.length>0&&n("div",{class:"fx-thumbs",children:i.map(x=>n("span",{class:"fx-thumb",children:[n("img",{src:x.url,alt:x.filename}),n("button",{type:"button","aria-label":t("fb.removeImage"),title:t("fb.removeImage"),onClick:()=>{s(w=>w.filter(S=>S.id!==x.id)),c(null)},children:n(U,{name:"x",size:11})})]},x.id))}),l&&n("div",{class:"fx-msg is-error",role:"alert",children:wt(l,t)}),n("input",{ref:u,type:"file",accept:"image/*",multiple:!0,hidden:!0,onChange:x=>{let w=x.currentTarget;v(w.files),w.value=""}}),n("div",{class:"fx-inline",children:[n(V,{disabled:i.length>=Ma||f.pending,onClick:()=>u.current?.click(),children:[n(U,{name:"image",size:12})," ",t("fb.addImages")]}),n("span",{class:"fx-grow"}),n(V,{disabled:f.pending,onClick:e.onCancel,children:t("common.cancel")}),n(V,{variant:"primary",pending:f.pending,disabled:m>0,onClick:b,children:t("fb.submit")})]}),n(ke,{a:f})]})}function Ay(e){let{t,locale:o}=se(),[r,a]=C({state:"loading"}),[i,s]=C(0),[l,c]=C(""),[d,p]=C(null),u=ve(),f=oe(0);W(()=>{let S=++f.current;return q(`/feedback/${encodeURIComponent(e.id)}`).then(T=>{if(S===f.current){if(!T.ok){a({state:"error",fail:T});return}a({state:"ready",data:{ticket:T.data.ticket,replies:T.data.replies??[],attachments:T.data.attachments??[]}}),q(`/feedback/${encodeURIComponent(e.id)}/read`,{method:"POST"})}}),()=>{f.current++}},[e.id,i]),W(()=>{if(!d)return;let S=T=>{T.key==="Escape"&&p(null)};return window.addEventListener("keydown",S),()=>window.removeEventListener("keydown",S)},[d]);let m=n("div",{class:"fx-back",children:n(V,{onClick:e.onBack,children:[n(U,{name:"back",size:12})," ",t("fb.back")]})});if(r.state==="loading")return n(M,{children:[m,n(nt,{panels:1,rows:3})]});if(r.state==="error")return n(M,{children:[m,n(yt,{error:zt(r.fail),onRetry:()=>{a({state:"loading"}),s(S=>S+1)}})]});let{ticket:g,replies:h,attachments:v}=r.data,b=g.status==="closed",x=S=>v.filter(T=>(T.reply_id??null)===S),w=()=>void u.run(async()=>{let S=l.trim();if(!S)return{error:{key:"err.replyEmpty"}};if(S.length>La)return{error:{key:"err.replyTooLong"}};let T=await q(`/feedback/${encodeURIComponent(g.id)}/replies`,{method:"POST",body:{content:S},timeoutMs:6e4});return T.ok?(c(""),s(F=>F+1),{success:{key:"fb.replySent"}}):qe(T)});return n(M,{children:[m,n(Ne,{icon:"message",title:g.title||t("fb.untitled"),actions:n(cp,{status:g.status}),desc:`#${String(g.id).slice(0,8)} \xB7 ${Et(g.created_at,o)}`,children:[n("div",{class:"fx-thread fx-block",children:[n(lp,{who:"user",when:g.created_at,text:g.description||"",files:x(null),onZoom:p}),h.map((S,T)=>n(lp,{who:S.author_role==="user"?"user":"admin",when:S.created_at,text:S.content||"",files:S.id?x(S.id):[],onZoom:p},S.id??T))]}),b?n(Pe,{children:n(de,{children:t("fb.closedNote")})}):n(Pe,{class:"fx-form",children:[n("textarea",{class:"fx-input fx-textarea",rows:3,value:l,maxLength:La,placeholder:t("fb.replyPlaceholder"),"aria-label":t("fb.replyPlaceholder"),onInput:S=>{c(S.currentTarget.value),u.success&&u.clear()}}),n("div",{class:"fx-inline",children:[n("span",{class:"fx-grow"}),n(V,{variant:"primary",pending:u.pending,onClick:w,children:t("fb.replySend")})]}),n(ke,{a:u})]})]}),d&&n("div",{class:"fx-lightbox",role:"dialog","aria-label":t("fb.imagePreview"),onClick:()=>p(null),children:n("img",{src:d,alt:""})})]})}function lp(e){let{t,locale:o}=se();return n("div",{class:`fx-bubble fx-bubble--${e.who}`,children:[n("div",{class:"fx-bubble-meta",children:[e.who==="user"?t("fb.you"):t("fb.support")," \xB7 ",Et(e.when,o)]}),n("div",{class:"fx-bubble-text",children:e.text}),e.files.length>0&&n("div",{class:"fx-thumbs",children:e.files.map((r,a)=>{let i=r.mime_type||"";if(i.startsWith("image/")&&r.data_base64){let s=`data:${i};base64,${r.data_base64}`;return n("button",{type:"button",class:"fx-thumb",onClick:()=>e.onZoom(s),"aria-label":t("fb.imagePreview"),children:n("img",{src:s,alt:r.filename||""})},r.id??a)}return n("span",{class:"fx-tag",children:[n(U,{name:"card",size:11})," ",r.filename||t("fb.attachment")]},r.id??a)})})]})}var fp=[{id:"monthly",field:"priceMonthly",discount:"recurringPriceMonthly"},{id:"quarterly",field:"priceQuarterly",discount:"recurringPriceQuarterly"},{id:"yearly",field:"priceYearly",discount:"recurringPriceYearly"}];function up(e,t){let o=fp.find(s=>s.id===t),r=Ge(e.priceMonthly)??0,a=(Ge(e[o.field])??0)||(t==="quarterly"?Math.round(r*300)/100:0),i=Ge(e[o.discount])??0;return i>0&&i<a?i:a}function Ps(e,t,o){let r=ze(e,o),a=String(t||"CNY").toUpperCase();return a==="CNY"?`\xA5${r}`:a==="USD"?`$${r}`:`${r} ${a}`}async function Ty(){let[e,t,o]=await Promise.all([q("/membership/my"),q("/credits/balance"),q("/features")]);return!e.ok&&Bn(e)?e:!t.ok&&Bn(t)?t:{ok:!0,status:200,data:{membership:e.ok?e.data?.membership??null:null,membershipFailed:!e.ok,balance:t.ok?Ge(t.data?.balance):null,balanceFailed:!t.ok,features:o.ok&&o.data&&typeof o.data=="object"?o.data:{}}}}async function Is(e,t){let[o,r]=await Promise.all([Ty(),q(e)]);return o.ok?r.ok?{ok:!0,status:r.status,data:{status:o.data,list:t(r.data)}}:r:o}var Rs=e=>(Array.isArray(e)?e:[]).filter(t=>!!t&&typeof t=="object"&&t.isActive!==!1),Ey=15*6e4;function Ms(e){let t=oe(0),o=oe(0),r=oe(e);return r.current=e,W(()=>{let a=()=>{let i=Date.now();i>t.current||document.visibilityState==="hidden"||i-o.current<2e3||(o.current=i,r.current?.())};return window.addEventListener("focus",a),document.addEventListener("visibilitychange",a),()=>{window.removeEventListener("focus",a),document.removeEventListener("visibilitychange",a)}},[]),()=>{t.current=Date.now()+Ey}}function mp(e){let t=e.membership;return t&&(t.status===void 0||t.status==="active")?t:null}function Ls(e){let{t,locale:o}=se(),r=e.status,a=mp(r),i=ho(a?.tier),s=i==="Free";return n("section",{class:"fx-shop-strip","aria-label":t("store.status"),children:[n("div",{class:"fx-shop-stat",children:[n("small",{children:t("store.tier")}),r.membershipFailed?n("b",{class:"is-empty",children:"\u2014"}):n("b",{"data-testid":"shop-tier",children:[s?t("member.freeName"):$o(a?.plan,o)||i,!s&&n("i",{children:a?.expiresAt?t("member.expires",{date:Lt(a.expiresAt,o)}):t("member.noExpiry")})]})]}),n("div",{class:"fx-shop-stat",children:[n("small",{children:t("store.balance")}),n("b",{class:r.balance===null?"is-empty":"","data-testid":"shop-balance",children:r.balance===null?"\u2014":ze(r.balance,o)})]}),(r.membershipFailed||r.balanceFailed)&&n("button",{type:"button",class:"fx-link",onClick:e.onRetry,children:t("common.retry")}),n("span",{class:"fx-grow"}),e.children]})}function Da(e){return n("section",{class:"fx-shop-section",children:[n("div",{class:"fx-shop-head",children:[n("div",{children:[n("h2",{children:e.title}),e.desc&&n("p",{children:e.desc})]}),e.right]}),e.children]})}function Ds(e){let t=ve(),[o,r]=C(null),a=(i,s,l,c)=>{r(i),t.run(async()=>{if(!await Sn(s,l,c))return{error:{key:"err.openFailed"}};e()})};return{a:t,payingId:t.pending?o:null,open:a}}function Na(e){return n(V,{variant:"ghost",pending:e.pending,disabled:e.disabled,onClick:e.onClick,children:[e.label,n(U,{name:"external",size:12})]})}function Ns(e){return n("div",{class:"fx-shop-empty",children:e.children})}function gp(){let{t:e,locale:t}=se(),o=dt(()=>Is("/payment/offerings",m=>Rs(m?.membershipPlans))),r=Ms(o.state==="ready"?o.reload:null),a=Ds(r),[i,s]=C("monthly");if(o.state==="loading")return n(nt,{panels:2,rows:2});if(o.state==="signedOut")return n(mt,{});if(o.state==="error")return n(yt,{error:o.error,onRetry:o.retry});let{status:l,list:c}=o.data,d=l.features.payment!==!1,p=fp.filter(m=>c.some(g=>up(g,m.id)>0)),u=p.some(m=>m.id===i)?i:p[0]?.id??"monthly",f=mp(l)?.tier?.toLowerCase()??null;return n(M,{children:[n(Ls,{status:l,onRetry:o.reload}),n(Da,{title:e("store.choosePlan"),desc:e(d?"store.payHint":"store.payOff"),right:p.length>1?n(Dt,{value:u,label:e("store.period"),onChange:s,options:p.map(m=>({value:m.id,label:e(`store.period.${m.id}`)}))}):void 0,children:[c.length===0?n(Ns,{children:e("store.noPlans")}):n("div",{class:"fx-shop-tiers",children:c.map(m=>{let g=up(m,u),h=!!f&&!l.membershipFailed&&m.tier?.toLowerCase()===f;return n("article",{class:"fx-shop-tier","data-tier":m.tier,children:[n("h3",{children:[$o(m,t)||ho(m.tier),h&&n("span",{class:"fx-shop-current",children:[n(U,{name:"check",size:12}),e("store.currentTier")]})]}),n("div",{class:"fx-shop-price",children:g>0?n(M,{children:[Ps(g,m.currency,t),n("small",{children:e(`store.per.${u}`)})]}):"\u2014"}),n("p",{children:hd(m,t)}),d&&g>0&&n(Na,{label:e(h?"member.renew":"store.pay"),pending:a.payingId===m.id,disabled:a.a.pending,onClick:()=>a.open(m.id,"membership",m.id,u)})]},m.id)})}),n(ke,{a:a.a})]})]})}var pp="__custom";function Py(e){let t=e&&typeof e=="object"?e.minCredits:void 0;return typeof t=="number"&&Number.isInteger(t)&&t>0?{minCredits:t}:null}function hp(){let{t:e,locale:t}=se(),o=dt(()=>Is("/payment/offerings",m=>({packs:Rs(m?.packages),custom:Py(m?.customTopup)}))),[r,a]=C(null);W(()=>{let m=!0;return q("/token-quota/my").then(g=>{m&&g.ok&&a(g.data?.pointsPricing??null)}),()=>{m=!1}},[]);let i=Ms(o.state==="ready"?o.reload:null),s=Ds(i);if(o.state==="loading")return n(nt,{panels:2,rows:2});if(o.state==="signedOut")return n(mt,{});if(o.state==="error")return n(yt,{error:o.error,onRetry:o.retry});let{status:l,list:{packs:c,custom:d}}=o.data,p=l.features.payment!==!1,u=xr(r,t),f=ku(r,t);return n(M,{children:[n(Ls,{status:l,onRetry:o.reload}),n(Da,{title:e("store.packs"),desc:e(p?"store.packsHint":"store.payOff"),children:[c.length===0?n(Ns,{children:e("store.noPacks")}):n("div",{class:"fx-shop-grid",children:[c.map(m=>{let g=Ge(m.price)??0;return n(Es,{icon:"coins",kind:e("store.kind.pack"),name:`${m.name||""} \xB7 ${e("store.nPoints",{n:ze(m.credits,t)})}`,desc:m.description,meta:e("store.instant"),children:p&&g>0&&n(Na,{label:e("store.payPrice",{price:Ps(g,m.currency,t)}),pending:s.payingId===m.id,disabled:s.a.pending,onClick:()=>s.open(m.id,"credits")})},m.id)}),p&&d&&n(Es,{icon:"coins",kind:e("store.kind.custom"),name:e("store.customPack"),desc:e("store.customPackHint",{min:ze(d.minCredits,t)}),meta:e("store.instant"),children:n(Na,{label:e("store.customPackPay"),pending:s.payingId===pp,disabled:s.a.pending,onClick:()=>s.open(pp,"credits")})})]}),n(ke,{a:s.a})]}),u&&n(Da,{title:e("store.pricingTitle"),children:n("div",{class:"fx-shop-pricing","data-testid":"points-pricing",children:[n(de,{children:e("fallback.pricing",u)}),n(de,{children:e("store.pricingFormula",u)}),f&&n(de,{children:e("store.pricingExample",{n:f})})]})})]})}function Es(e){return n("article",{class:"fx-shop-card",children:[n("div",{class:"fx-shop-visual","aria-hidden":"true",children:e.emoji?n("span",{class:"fx-shop-emoji",children:e.emoji}):n(U,{name:e.icon,size:18})}),n("div",{class:"fx-shop-body",children:[n("span",{class:"fx-shop-kind",children:e.kind}),n("strong",{children:e.name}),e.desc&&n("p",{children:e.desc}),n("div",{class:"fx-shop-foot",children:[n("span",{class:"fx-shop-meta",children:e.meta}),n("span",{class:"fx-shop-acts",children:e.children})]}),e.below]})]})}var Iy={reset_card:"store.kind.card",api_quota_key:"store.kind.code"};function Ry(e){let{t,locale:o}=se(),{p:r}=e,a=ve(),[i,s]=C(null),[l,c]=C(!1),d=Ge(r.pricePoints)??0,p=Ge(r.priceRmb)??0,u=typeof r.availableKeys=="number"&&r.availableKeys<=0,f=d>0&&e.balance!==null&&e.balance<d,m=()=>void a.run(async()=>{let h=await q("/shop/purchase",{method:"POST",body:{productId:r.id,payMethod:"points"},timeoutMs:3e4});return h.ok?(s(typeof h.data?.key=="string"&&h.data.key?h.data.key:null),e.onRedeemed(),{success:{key:"store.redeemed"}}):h.status===0?(c(!0),{error:{key:"store.uncertain"}}):qe(h)}),g=u?t("store.soldOut"):f?t("err.insufficientPoints"):typeof r.availableKeys=="number"?t("store.left",{n:r.availableKeys}):t("store.toBackpack");return n(Es,{icon:r.type==="api_quota_key"?"key":"gift",emoji:r.icon,kind:t(Iy[r.type||""]??"store.kind.item"),name:r.name||"",desc:r.description,meta:g,below:n(M,{children:[n(ke,{a}),i&&n("div",{class:"fx-shop-key",children:[n("code",{children:i}),n(Vt,{text:i,label:t("backpack.copyKey")})]})]}),children:[d>0&&n(Qt,{variant:"primary",pending:a.pending,disabled:u||f||l,label:t("store.redeem",{n:ze(d,o)}),confirmLabel:t("store.redeemConfirm",{n:ze(d,o)}),onConfirm:m}),e.payment&&p>0&&n(Na,{label:Ps(p,r.currency,o),pending:e.paying,disabled:e.payBusy||u,onClick:e.onPay})]})}function bp(){let{t:e,goTo:t}=se(),o=dt(()=>Is("/shop/products",d=>Rs(d))),r=Ms(o.state==="ready"?o.reload:null),a=Ds(r);if(o.state==="loading")return n(nt,{panels:2,rows:2});if(o.state==="signedOut")return n(mt,{});if(o.state==="error")return n(yt,{error:o.error,onRetry:o.retry});let{status:i,list:s}=o.data,l=i.features.payment!==!1,c=i.features.shop!==!1;return n(M,{children:[n(Ls,{status:i,onRetry:o.reload,children:t&&n(V,{onClick:()=>t("backpack"),children:e("store.openBackpack")})}),n(Da,{title:e("store.redeemTitle"),desc:e("store.redeemHint"),children:[!c||s.length===0?n(Ns,{children:e(c?"store.noItems":"store.itemsOff")}):n("div",{class:"fx-shop-grid",children:s.map(d=>n(Ry,{p:d,balance:i.balance,payment:l,paying:a.payingId===d.id,payBusy:a.a.pending,onPay:()=>a.open(d.id,"storefront"),onRedeemed:o.reload},d.id))}),n(ke,{a:a.a})]})]})}var My="forsion-extend",vp=[{id:"account",titleKey:"page.account",tabTitleKey:"page.profile",aliases:["profile"],keywords:"\u4E2A\u4EBA\u4E3B\u9875 profile avatar nickname \u5934\u50CF \u6635\u79F0",Component:yu},{id:"account-details",parent:"account",titleKey:"account.details.title",keywords:"\u767B\u5F55 \u8D44\u6599 \u624B\u673A \u90AE\u7BB1 \u5207\u6362 \u9000\u51FA \u5FAE\u4FE1 \u526A\u85CF \u4F01\u4E1A\u5FAE\u4FE1 \u7ED1\u5B9A\u7801 login sign-in email phone account switch logout wechat clip wecom",Component:Kd},{id:"security",parent:"account",titleKey:"page.security",keywords:"\u5B89\u5168 \u5BC6\u7801 \u8BBE\u5907 \u7ED1\u5B9A security password devices",Component:Iu},{id:"quota",titleKey:"page.membershipUsage",tabTitleKey:"page.membershipQuota",aliases:["membership"],keywords:"\u4F1A\u5458 \u989D\u5EA6 \u540E\u53F0 quota membership background",Component:Cu},{id:"points",parent:"quota",titleKey:"page.pointsInvite",keywords:"\u79EF\u5206 \u9080\u8BF7 \u5151\u6362 \u5145\u503C points invite redeem credits",Component:Su},{id:"usage",parent:"quota",titleKey:"page.usage",keywords:"\u7528\u91CF \u8BB0\u5F55 \u6D88\u8017 usage history tokens",Component:Nu},{id:"backpack",titleKey:"page.backpack",keywords:"\u80CC\u5305 \u5361\u5238 backpack inventory",Component:Au},{id:"submission",titleKey:"page.submission",Component:Xu},{id:"webpages",titleKey:"page.webPages",keywords:"\u7F51\u9875 \u53D1\u5E03 \u94FE\u63A5 \u4E0A\u67B6 \u7F51\u7AD9 web pages publish link site connect",Component:ip},{id:"feedback",titleKey:"page.feedback",keywords:"\u5E2E\u52A9 \u53CD\u9988 help feedback",Component:dp},{id:"privacy",titleKey:"page.privacy",tabTitleKey:"privacy.tab",keywords:"\u9690\u79C1 \u9065\u6D4B \u5D29\u6E83 \u7EDF\u8BA1 \u5E2E\u52A9\u6539\u8FDB privacy telemetry crash usage statistics improve",Component:Yd,desktopOnly:!0},{id:"diagnostics",parent:"privacy",titleKey:"diag.title",keywords:"\u8BCA\u65AD \u4E0A\u4F20 \u65E5\u5FD7 diagnostic upload logs",Component:sp,desktopOnly:!0}],yp=[{id:"membership",titleKey:"store.membership",descKey:"store.membership.desc",icon:"crown",Component:gp},{id:"points",titleKey:"store.points",descKey:"store.points.desc",icon:"coins",Component:hp},{id:"items",titleKey:"store.items",descKey:"store.items.desc",icon:"package",Component:bp}],fn=e=>`forsion/fx:${My}:${e}`;function Os(e){let{ctx:t}=e,[o,r]=C(()=>De(t.getLocale?.()));W(()=>{r(De(t.getLocale?.()));let i=t.subscribeLocale?.(s=>r(De(s)));return()=>{typeof i=="function"&&i()}},[t]);let a=Yt(()=>{let i=t.app?.openSettings;return{ctx:t,anchor:e.anchor,locale:o,t:Cn(o),goTo:typeof i=="function"?s=>i.call(t.app,fn(s)):null}},[t,o,e.anchor]);return n(qi.Provider,{value:a,children:e.children})}function Ly(e){let{locale:t}=se(),o=e.page.Component;return n("div",{class:"fx-acct","data-fx-page":e.page.id,lang:t==="zh"?"zh-CN":"en",children:[n("style",{children:rd}),n(o,{})]})}function xp(e){return n(Os,{ctx:e.ctx,anchor:e.anchor,children:n(Ly,{page:e.page})})}function kp(e,t=window){let o=un(t?.tangu);if(!e||!o?.cloudFetch||!o.cloudInvoke||!pn(o)||typeof e.registerStoreView!="function")return 0;let r=a=>()=>Se(De(e.getLocale?.()),a);for(let a of yp)e.registerStoreView({id:a.id,title:r(a.titleKey),description:r(a.descKey),group:r("store.group"),icon:a.icon,mount(i){return Oe(n(xp,{ctx:e,page:a}),i),()=>{Oe(null,i)}}});return yp.length}function wp(e,t=window){let o=un(t?.tangu);if(!e||!o?.cloudFetch||!o.cloudInvoke||!pn(o)||typeof e.registerSettingsView!="function")return 0;let r=zn(o)?vp.filter(a=>!a.desktopOnly):vp;for(let a of r)e.registerSettingsView({id:a.id,category:"forsion",parent:a.parent,tabTitle:a.tabTitleKey?()=>Se(De(e.getLocale?.()),a.tabTitleKey):void 0,aliases:a.aliases,keywords:a.keywords,title:()=>Se(De(e.getLocale?.()),zn(o)&&a.webTitleKey||a.titleKey),mount(i,s){return Oe(n(xp,{ctx:e,page:a,anchor:s?.anchor}),i),()=>{Oe(null,i)}}});return r.length}var Wo=[{id:"lv1"},{id:"lv2"},{id:"lv3"},{id:"lv4"},{id:"new",version:"2.14"}],le=(e,t)=>({zh:e,en:t}),eo=[{id:"welcome",level:"lv1",icon:"compass",title:le("\u8BA4\u8BC6 Forsion","Meet Forsion"),tasks:[{id:"guide-open",event:"own:guide.open",goal:1,title:le("\u6253\u5F00\u4F7F\u7528\u6307\u5357","Open the guide")},{id:"space-switch",event:"space.switch",goal:1,title:le("\u5728 Ribbon \u4E0A\u6362\u4E00\u4E2A Space","Switch to another Space from the ribbon"),go:{space:"amadeus"},spot:{anchor:"ribbon-spaces",here:!0,title:le("\u70B9 Ribbon \u4E0A\u4EFB\u610F\u4E00\u4E2A\u56FE\u6807","Click any icon on the ribbon"),body:le("\u6BCF\u4E2A\u56FE\u6807\u662F\u4E00\u4E2A Space\uFF0C\u70B9\u4E00\u4E0B\u5C31\u5207\u8FC7\u53BB\u3002","Each icon is a Space. One click switches to it.")}}],figure:{layout:"space",main:"doc",marks:[{slot:"ribbon",label:le("Ribbon\uFF1A\u6BCF\u4E2A\u56FE\u6807\u662F\u4E00\u4E2A Space","Ribbon: each icon is a Space")},{slot:"main-tabs",label:le("\u4E3B\u533A\u7684\u6807\u7B7E\u9875","Tabs in the main area"),text:le("\u6807\u7B7E\u9875","Tab")},{slot:["left-list","right"],label:le("\u5DE6\u53F3\u4FA7\u680F","Left and right sidebars")}]}},{id:"chat",level:"lv1",icon:"message-circle",title:le("\u548C Tangu \u8BF4\u7B2C\u4E00\u53E5\u8BDD","Say hello to Tangu"),tasks:[{id:"chat-first",event:"chat.send",goal:1,title:le("\u53D1\u51FA\u7B2C\u4E00\u6761\u6D88\u606F","Send your first message"),go:{space:"tangu",command:"new-chat"},spot:{anchor:"chat-composer",title:le("\u5728\u8FD9\u91CC\u6253\u4E2A\u62DB\u547C","Say hello here"),body:le("\u6253\u5B57\uFF0C\u6309 Enter \u53D1\u9001\uFF1BShift+Enter \u6362\u884C\u3002","Type, then press Enter to send. Shift+Enter starts a new line.")}},{id:"chat-five",event:"chat.send",goal:5,title:le("\u518D\u804A\u51E0\u53E5\uFF08\u7D2F\u8BA1 5 \u6761\uFF09","Keep talking (5 messages in all)"),go:{space:"tangu"},spot:{anchor:"chat-composer",title:le("\u63A5\u7740\u804A\u51E0\u53E5","Keep the conversation going"),body:le("\u7D2F\u8BA1\u53D1\u51FA 5 \u6761\u5C31\u7B97\u5B8C\u6210\u3002","Five messages in all and this one is done.")}}],figure:{layout:"space",main:"chat",marks:[{slot:"left-top",label:le("\u5DE6\u680F\u9876\u90E8\u300C\u65B0\u4F1A\u8BDD\u300D",'"New chat" at the top of the left sidebar'),text:le("\u65B0\u4F1A\u8BDD","New chat")},{slot:"main-bottom",label:le("\u8F93\u5165\u6846","Message box")}]}},{id:"note",level:"lv1",icon:"file-text",title:le("\u5199\u4E0B\u7B2C\u4E00\u7BC7\u7B14\u8BB0","Write your first note"),tasks:[{id:"note-create",event:"note.create",goal:1,title:le("\u65B0\u5EFA\u4E00\u7BC7\u7B14\u8BB0","Create a note"),go:{space:"amadeus",command:"amadeus-new-note"},spot:{anchor:"note-new",title:le("\u70B9\u300C\u65B0\u5EFA\u7B14\u8BB0\u300D",'Click "New note"'),body:le("\u4E5F\u53EF\u4EE5\u6309 \u2318/Ctrl+N\u3002\u6BCF\u7BC7\u7B14\u8BB0\u90FD\u662F\u667A\u5E93\u91CC\u7684\u4E00\u4E2A .md \u6587\u4EF6\u3002","Or press \u2318/Ctrl+N. Every note is a .md file in your vault.")}},{id:"note-link",event:"note.wikilink",goal:1,title:le("\u7528 [[ \u94FE\u63A5\u53E6\u4E00\u7BC7\u7B14\u8BB0","Link another note with [["),go:{space:"amadeus"},spot:{anchor:"note-body",title:le("\u5728\u6B63\u6587\u91CC\u8F93\u5165 [[","Type [[ in the note"),body:le("\u4ECE\u5F39\u51FA\u7684\u5019\u9009\u91CC\u9009\u4E00\u7BC7\u7B14\u8BB0\uFF0C\u6309 Enter\uFF0C\u4E24\u7BC7\u5C31\u8FDE\u4E0A\u4E86\u3002","Pick a note from the suggestions and press Enter to link the two.")}},{id:"note-canvas",event:"note.canvas",goal:1,title:le("\u628A\u7B14\u8BB0\u5207\u5230\u753B\u5E03","Switch a note to the canvas"),go:{space:"amadeus",command:"amadeus-toggle-canvas"},spot:{anchor:"note-canvas",title:le("\u70B9\u300C\u753B\u5E03\u300D",'Click "Canvas"'),body:le("\u540C\u4E00\u7BC7\u7B14\u8BB0\u644A\u6210\u767D\u677F\uFF0C\u968F\u624B\u6446\uFF1B\u70B9\u300C\u6587\u6863\u300D\u5207\u56DE\u6765\uFF0C\u4E00\u4E2A\u5B57\u90FD\u4E0D\u53D8\u3002",'The same note opens as a whiteboard. Click "Document" to switch back; nothing changes.')}}],figure:{layout:"space",main:"doc",marks:[{slot:"left-top",label:le("\u5DE6\u680F\u300C\u65B0\u5EFA\u7B14\u8BB0\u300D",'"New note" in the left sidebar'),text:le("\u65B0\u5EFA\u7B14\u8BB0","New note")},{slot:"main-top",label:le("\u300C\u6587\u6863 / \u753B\u5E03\u300D\u80F6\u56CA","The Document / Canvas switch")},{slot:"right",label:le("\u53F3\u680F\u91CC\u7684\u300C\u53CD\u94FE\u300D","Backlinks in the right sidebar"),text:le("\u53CD\u94FE","Backlinks")}]}},{id:"theme",level:"lv1",icon:"sparkles",title:le("\u6362\u4E00\u8EAB\u4E3B\u9898","Make it look like yours"),tasks:[{id:"theme-change",event:"theme.change",goal:1,title:le("\u6362\u4E00\u4E2A\u4E3B\u9898","Pick another theme"),go:{settings:"theme"}}],figure:{layout:"settings",marks:[{slot:"nav",label:le("\u8BBE\u7F6E\u91CC\u7684\u300C\u5916\u89C2\u300D",'"Appearance" in Settings'),text:le("\u5916\u89C2","Appearance")},{slot:"section-1",label:le("\u8BBE\u8BA1\u8BED\u8A00","Design language"),text:le("\u8BBE\u8BA1\u8BED\u8A00","Design language")},{slot:"section-2",label:le("\u4E3B\u9898\u8272\u548C\u80CC\u666F\u8272","Theme and background colors"),text:le("\u914D\u8272","Colors")}]}},{id:"database",level:"lv2",icon:"database",title:le("\u6570\u636E\u5E93\uFF1A\u628A\u7B14\u8BB0\u53D8\u6210\u8868","Databases: turn notes into a table"),tasks:[{id:"base-create",event:"base.create",goal:1,title:le("\u65B0\u5EFA\u4E00\u4E2A\u6570\u636E\u5E93","Create a database"),go:{space:"amadeus"}}],figure:{layout:"space",main:"doc",marks:[{slot:"left-list",label:le("\u7B14\u8BB0\u6811\uFF1A\u53F3\u952E \u2192\u300C\u65B0\u5EFA Base\u300D",'Note tree: right-click \u2192 "New Base"')},{slot:"main-body",label:le("\u6B63\u6587\u91CC\u8F93\u5165 /\uFF0C\u9009\u300C\u591A\u7EF4\u8868\u300D",'Type / in a note and pick "Database"')}]}},{id:"market",level:"lv2",icon:"store",title:le("\u4ECE\u5546\u5E97\u88C5\u4E00\u4E2A\u63D2\u4EF6","Install a plugin from the store"),tasks:[{id:"market-install",event:"market.install",goal:1,title:le("\u88C5\u4E00\u4E2A\u63D2\u4EF6","Install a plugin"),go:{command:"open-market"}}],figure:{layout:"space",main:"doc",marks:[{slot:"ribbon-bottom",label:le("Ribbon \u5E95\u90E8\u7684\u300C\u5546\u5E97\u300D",'"Store" at the bottom of the ribbon')}]}},{id:"space",level:"lv2",icon:"layout-grid",title:le("\u5B58\u4E0B\u81EA\u5DF1\u7684 Space","Save a Space of your own"),tasks:[{id:"space-save",event:"space.save",goal:1,title:le("\u628A\u5F53\u524D\u5E03\u5C40\u5B58\u6210 Space","Save the current layout as a Space"),go:{command:"save-as-space"}}],figure:{layout:"space",main:"doc",marks:[{slot:"ribbon-plus",label:le("Space \u533A\u7684 \uFF0B","The + under the Spaces")},{slot:"main-top-right",label:le("\u53F3\u4E0A\u89D2\u7684\u6D6E\u52A8\u6309\u94AE","Floating buttons at the top right")}]}},{id:"calendar",level:"lv2",icon:"calendar-days",title:le("\u65E5\u5386\u548C\u5F85\u529E","Calendar and to-dos"),tasks:[{id:"calendar-event",event:"calendar.event",goal:1,title:le("\u5728\u65E5\u5386\u4E0A\u5EFA\u4E00\u4E2A\u65E5\u7A0B","Add an event to the calendar"),go:{space:"calendar"}},{id:"todo-done",event:"todo.done",goal:1,title:le("\u52FE\u6389\u4E00\u6761\u5F85\u529E","Tick off a to-do"),go:{space:"calendar"}}],figure:{layout:"space",main:"grid",marks:[{slot:"left-plus",label:le("\u5DE6\u680F\u300C\u65E5\u5386\u300D\u65C1\u7684 +",'The + next to "Calendars" in the left sidebar')},{slot:"main-body",label:le("\u65F6\u95F4\u683C\uFF1A\u5355\u51FB\u5EFA\u65E5\u7A0B","Time grid: click to add an event")},{slot:"right",label:le("\u53F3\u680F\u7684\u5F85\u529E","To-dos in the right sidebar"),text:le("\u5F85\u529E","To-dos")}]}},{id:"agent",level:"lv3",icon:"bot",title:le("\u521B\u5EFA\u4F60\u7684 Agent","Create your own agent"),tasks:[{id:"agent-create",event:"agent.create",goal:1,title:le("\u65B0\u5EFA\u4E00\u4E2A Agent","Create an agent"),go:{space:"agents"},spot:{anchor:"agent-new",title:le("\u70B9\u300C\u521B\u5EFA Agent\u300D",'Click "Create agent"'),body:le("\u8D77\u4E2A\u540D\u5B57\uFF0C\u5199\u51E0\u53E5\u5B83\u8BE5\u600E\u4E48\u505A\u4E8B\u3002","Give it a name and a few lines on how it should work.")}}]},{id:"muse",level:"lv3",icon:"sparkles",title:le("Muse\uFF1A\u8BA9\u7075\u611F\u81EA\u5DF1\u957F","Muse: ideas that grow on their own"),tasks:[{id:"muse-open",event:"muse.open",goal:1,title:le("\u53BB Muse \u770B\u4E00\u773C","Take a look at Muse"),go:{space:"muse"}}]},{id:"automation",level:"lv3",icon:"zap",title:le("\u81EA\u52A8\u5316\uFF1A\u5230\u70B9\u5C31\u505A","Automations: done on schedule"),tasks:[{id:"automation-create",event:"automation.create",goal:1,title:le("\u5EFA\u4E00\u6761\u81EA\u52A8\u5316","Create an automation"),go:{space:"automation"}}]},{id:"computer",level:"lv4",icon:"terminal",title:le("\u8BA9 Tangu \u64CD\u4F5C\u7535\u8111","Let Tangu use your computer"),tasks:[{id:"cu-use",event:"computer.use",goal:1,title:le("\u8BA9 Tangu \u7528\u4E00\u6B21\u7535\u8111","Have Tangu use your computer once"),go:{settings:"computer-use"},desktopOnly:!0}]},{id:"plugin",level:"lv4",icon:"code",title:le("\u5199\u4E00\u4E2A\u81EA\u5DF1\u7684\u63D2\u4EF6","Write a plugin of your own"),tasks:[{id:"plugin-dev",event:"plugin.local",goal:1,title:le("\u4ECE\u672C\u673A\u6587\u4EF6\u5939\u8F7D\u5165\u4E00\u4E2A\u63D2\u4EF6","Load a plugin from a local folder"),go:{settings:"amadeus-plugins"},desktopOnly:!0}]},{id:"mini-capsules",level:"new",icon:"layout-grid",title:le("Mini \u9876\u680F\u4E24\u9897\u80F6\u56CA","Two capsules on the Mini bar"),tasks:[{id:"mini-open",event:"mini.open",goal:1,title:le("\u6253\u5F00\u4E00\u6B21 Mini \u7A97\u53E3","Open the Mini window"),go:{command:"open-mini"},desktopOnly:!0}]},{id:"todo-standalone",level:"new",icon:"list-tree",title:le("\u5F85\u529E\u89C6\u56FE\u5355\u72EC\u6253\u5F00","Open the to-do view on its own"),tasks:[{id:"todo-open",event:"todo.open",goal:1,title:le("\u5355\u72EC\u6253\u5F00\u4E00\u6B21\u5F85\u529E\u89C6\u56FE","Open the to-do view by itself"),go:{space:"calendar"}}]}],_n=e=>eo.filter(t=>t.level===e),to=e=>eo.find(t=>t.id===e);var mn=Wo.filter(e=>!e.version);function Ln(e,t){let o=e.event.startsWith("own:");return t.count(o?e.event.slice(4):e.event,o)>=e.goal}var Cr=(e,t)=>e.filter(o=>t.desktop||!o.desktopOnly);function zp(e,t){return _n(e).every(o=>Cr(o.tasks,t).every(r=>Ln(r,t)))}function Oa(e,t){let o=mn.findIndex(r=>r.id===e);return o<=0||t.unlockAll?!0:mn.slice(0,o).every(r=>zp(r.id,t))}function Vo(e,t){return Oa(e.level,t)?Cr(e.tasks,t).every(o=>Ln(o,t))?"done":"active":"locked"}function Fs(e){return mn.find(t=>!zp(t.id,e))?.id??null}function Sp(e){let t={...e,unlockAll:!1},o=mn[0].id;for(let r of mn)Oa(r.id,t)&&(o=r.id);return o}function Dy(e,t){let o=e.split(/[.+-]/).map(a=>Number.parseInt(a,10)||0),r=t.split(/[.+-]/).map(a=>Number.parseInt(a,10)||0);for(let a=0;a<Math.max(o.length,r.length);a++){let i=(o[a]??0)-(r[a]??0);if(i)return i<0?-1:1}return 0}function Bs(e){let t=Wo.find(o=>o.version);return t?.version&&e.appVersion&&Dy(e.appVersion,t.version)>=0?t.version:null}var Cp=e=>eo.filter(t=>t.level!=="new"||!!Bs(e));function _p(e,t){let o=Cr(_n(e).flatMap(r=>r.tasks),t);return{done:o.filter(r=>Ln(r,t)).length,total:o.length}}var $s={zh:{agent:`\u9664\u4E86\u9ED8\u8BA4\u7684 Tangu\uFF0C\u4F60\u53EF\u4EE5\u6309\u7528\u9014\u5EFA\u81EA\u5DF1\u7684 Agent\uFF1A\u7ED9\u5B83\u540D\u5B57\u3001\u5DE5\u4F5C\u6307\u4EE4\u548C\u81EA\u5DF1\u7684\u8BB0\u5FC6\uFF0C\u8BA9\u5B83\u4E13\u95E8\u505A\u4E00\u7C7B\u4E8B\u3002
877
+ `;var Es=300,Ar=e=>e.replace(/\/+$/,"").replace(/\/api$/,""),Ps=e=>typeof e=="string"&&/^https?:\/\//i.test(e);function Rs(e,t,o){let r=e.apps?.find(i=>i.slug===o);if(Ps(r?.publicUrl))return r.publicUrl;let a=e.publicBase?Ar(e.publicBase):t;return a&&e.handle?`${a}/apps/${e.handle}/${o}/`:""}var Is=(e=0)=>e<1024*1024?`${Math.max(1,Math.ceil(e/1024))} KB`:`${(e/1024/1024).toFixed(1)} MB`;function Sp(e,t){let o=Q().openExternal;o&&(t.preventDefault(),o(e)?.catch(()=>{}))}function Wy({page:e}){let{t,locale:o}=ae();return typeof e.likes!="number"&&typeof e.favorites!="number"?null:n("span",{class:"fx-pub-soc","data-fx-social":!0,children:[typeof e.likes=="number"&&n("span",{title:t("pub.likes",{n:ze(e.likes,o)}),children:[n(B,{name:"heart",size:11}),ze(e.likes,o)]}),typeof e.favorites=="number"&&n("span",{title:t("pub.saves",{n:ze(e.favorites,o)}),children:[n(B,{name:"star",size:11}),ze(e.favorites,o)]})]})}function Vy({page:e,ap:t,open:o,onToggle:r,reload:a}){let{t:i,locale:s}=ae(),l=me(),c=e.ai,d=n(Wy,{page:e}),p=e.status==="disabled";if(!t||!c||p||e.usesSdk===!1)return!(typeof e.likes=="number"||typeof e.favorites=="number")&&!(t&&e.usesSdk===!1)?null:n("div",{class:"fx-pub-ai-line","data-fx-ai-line":"none",children:[d,t&&e.usesSdk===!1&&n("span",{children:i("web.ai.none")})]});let u=g=>ze(Math.max(0,Number(g)||0),s),m=n("button",{type:"button",class:"fx-link","aria-expanded":o,onClick:r,children:i("web.ai.settings")}),f=t.enabled!==!1&&c.payer==="author";if(f&&c.paused){let g=c.pausedReason==="admin";return n("div",{class:"fx-pub-ai-line","data-fx-ai-line":"paused",children:[n("span",{class:"fx-pub-pill",children:[n(B,{name:"sparkles",size:11}),i("web.ai.paused")]}),n("span",{children:i(g?"web.ai.pausedAdmin":"web.ai.pausedSpike")}),d,n("span",{class:"fx-pub-grow"}),!g&&n(W,{pending:l.pending,onClick:()=>void l.run(async()=>{let h=await kp(e.slug);if(!h.ok)return Be(h);a()}),children:i("web.ai.resume")}),m,n(ye,{a:l})]})}if(f){let g=vp(c,t);return n("div",{class:"fx-pub-ai-line","data-fx-ai-line":"author",children:[n("span",{class:"fx-pub-pill is-on",children:[n(B,{name:"sparkles",size:11}),i("web.ai.author")]}),bp(c)?n("span",{children:i("web.ai.cooldown",{time:Pt(c.cooldownUntil,s)})}):n(I,{children:[n("span",{children:i("web.ai.todayAuthor",{calls:u(c.today?.calls),visitors:u(c.today?.visitors)})}),n("span",{class:"fx-pub-meter",role:"meter","aria-label":i("web.ai.cap"),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":g,children:[i("web.ai.cap")," ",n("span",{children:n("i",{style:{width:`${g}%`}})}),g,"%"]})]}),d,n("span",{class:"fx-pub-grow"}),m]})}return n("div",{class:"fx-pub-ai-line","data-fx-ai-line":"visitor",children:[n("span",{class:"fx-pub-pill",children:[n(B,{name:"sparkles",size:11}),i("web.ai.visitor")]}),n("span",{children:i("web.ai.todayVisitor",{calls:u(c.today?.calls)})}),d,n("span",{class:"fx-pub-grow"}),m]})}function jy({page:e,ap:t,onDone:o,onBusy:r,reload:a}){let{t:i,ctx:s}=ae(),l=me(),[c]=S(()=>jo(e.ai)),[d,p]=S(c),u=pp(d,c,t),m=Object.keys(u).length>0;return n("div",{class:"fx-pub-inline","data-fx-ai-settings":!0,children:[n(Na,{draft:d,onChange:p,ap:t,cooldownUntil:e.ai?.cooldownUntil,disabled:l.pending,onBuy:()=>_r(s)}),n("div",{class:"fx-pub-inline-acts",children:[n(W,{variant:"primary",pending:l.pending,disabled:!m,onClick:()=>void l.run(async()=>{r(!0);try{let f=await fp(e.slug,u);if(!f.ok)return Be(f);a(),o()}finally{r(!1)}}),children:i("ai.save")}),n(W,{disabled:l.pending,onClick:o,children:i("common.cancel")})]}),n(ye,{a:l})]})}function Gy({page:e,url:t,reload:o,ap:r,onGone:a}){let i=kt(),{locale:s}=ae(),l=Ln(),c=me(),[d,p]=S(null),[u,m]=S(!1),[f,g]=S(!1),h=e.listing_status||null,b=e.status==="disabled",v=(x,T,F,V)=>void c.run(async()=>{let D=await H(x,{method:T,body:F});if(!D.ok)return Be(D);V?.(),o()}),w=`/connect/apps/${encodeURIComponent(e.slug)}`,k=h==="pending"?["web.listingPending","fx-tag--accent"]:h==="approved"?["web.listingApproved","fx-status--resolved"]:h==="rejected"?["web.listingRejected","fx-tag--danger"]:null;return n("article",{class:"fx-sub-item","data-webpage":e.slug,children:[n("div",{class:"fx-sub-item-head",children:[n("strong",{children:e.name||e.slug}),b&&n("span",{class:"fx-tag fx-tag--danger",children:i("web.disabled")}),k&&n("span",{class:`fx-tag ${k[1]}`,children:i(k[0])})]}),t&&n("a",{class:"fx-web-url",href:t,target:"_blank",rel:"noopener noreferrer",onClick:x=>Sp(t,x),children:t}),n("div",{class:"fx-sub-meta",children:[n("span",{children:e.slug}),n("span",{children:Is(e.total_bytes)}),e.updated_at&&n("span",{children:i("web.updated",{date:It(e.updated_at,s)})})]}),n(Vy,{page:e,ap:r,open:u,onToggle:()=>{f||m(x=>!x)},reload:o}),u&&r&&e.ai&&!b&&n(jy,{page:e,ap:r,onDone:()=>m(!1),onBusy:g,reload:o}),b&&n(se,{tone:"error",children:i("web.disabledHint")}),h==="rejected"&&e.listing_note&&n(se,{tone:"error",children:i("web.listingNote",{note:e.listing_note})}),d!==null&&n("form",{class:"fx-sub-form",onSubmit:x=>{x.preventDefault(),d.trim()&&v(`${w}/listing`,"PUT",{summary:d.trim()},()=>p(null))},children:[n("label",{class:"fx-sub-field",for:`${l}-summary`,children:[n("span",{children:i("web.listingSummary")}),n("textarea",{id:`${l}-summary`,rows:2,maxLength:Es,value:d,disabled:c.pending,placeholder:i("web.listingSummaryPh"),onInput:x=>p(x.currentTarget.value)}),n("small",{children:i("web.listingHint")})]}),n("div",{class:"fx-sub-actions",children:[n(W,{variant:"primary",submit:!0,pending:c.pending,disabled:!d.trim(),children:i("web.listingSubmit")}),n(W,{disabled:c.pending,onClick:()=>p(null),children:i("common.cancel")})]})]}),d===null&&n("div",{class:"fx-web-actions",children:[t&&n(jt,{text:t,label:i("web.copy")}),!b&&!h&&n(W,{disabled:c.pending,onClick:()=>p(""),children:i("web.listingApply")}),!b&&h==="rejected"&&n(W,{disabled:c.pending,onClick:()=>p(e.listing_summary||""),children:i("web.listingReapply")}),h==="pending"&&n(W,{pending:c.pending,onClick:()=>v(`${w}/listing`,"DELETE"),children:i("web.listingWithdraw")}),h==="approved"&&n(Mt,{label:i("web.listingDelist"),confirmLabel:i("web.listingDelistConfirm"),pending:c.pending,onConfirm:()=>v(`${w}/listing`,"DELETE")}),n(Mt,{variant:"danger",label:i("web.unpublish"),confirmLabel:i("web.unpublishConfirm"),pending:c.pending,onConfirm:()=>v(w,"DELETE",void 0,()=>a(e.slug))})]}),n(ye,{a:c})]})}function Jy(){let{t:e,locale:t}=ae(),o=pt(()=>H("/connect/ai/usage?days=30"));if(o.state==="loading")return n("div",{class:"fx-pub-usage",children:n("p",{children:e("common.loading")})});if(o.state!=="ready")return n("div",{class:"fx-pub-usage",children:n(se,{tone:"error",children:o.state==="error"?e("common.loadFailed"):e("err.signedOut")})});let r=Array.isArray(o.data?.rows)?o.data.rows:[];if(!r.length)return n("div",{class:"fx-pub-usage",children:n("p",{children:e("pack.usageEmpty")})});let a=i=>ze(Math.round(Math.max(0,Number(i)||0)),t);return n("div",{class:"fx-pub-usage","data-fx-usage":!0,children:n("table",{"aria-label":e("pack.usageTitle"),children:[n("thead",{children:n("tr",{children:[n("th",{children:e("pack.col.day")}),n("th",{children:e("pack.col.page")}),n("th",{class:"is-num",children:e("pack.col.calls")}),n("th",{class:"is-num",children:e("pack.col.visitors")}),n("th",{class:"is-num",children:e("pack.col.points")})]})}),n("tbody",{children:r.map((i,s)=>n("tr",{children:[n("td",{children:i.day?It(i.day,t):""}),n("td",{children:i.name||i.slug}),n("td",{class:"is-num",children:a(i.calls)}),n("td",{class:"is-num",children:a(i.visitors)}),n("td",{class:"is-num",children:a(i.points)})]},`${i.day}:${i.slug}:${s}`))})]})})}function Xy({ap:e}){let{t,locale:o,ctx:r}=ae(),[a,i]=S(!1),s=yp(e),l=Math.round(Number(e.balance)||0),c=e.lastTopUp&&typeof e.lastTopUp.amount=="number"?e.lastTopUp:null;return n(I,{children:[n("div",{class:`fx-pub-pool${s?" is-low":""}`,"data-fx-pool":s?"low":"ok",children:[n("div",{children:[n("div",{class:"fx-pub-pool-lbl",children:t("ai.balance")}),n("div",{class:"fx-pub-pool-big",children:[ze(l,o),n("small",{children:t("pack.points")})]}),n("div",{class:"fx-pub-pool-note",children:t(s?"pack.lowNote":"pack.note")})]}),n("div",{class:"fx-pub-pool-acts",children:[n(W,{variant:s?"primary":"ghost",onClick:()=>_r(r),children:t("ai.buy")}),!s&&n(W,{onClick:()=>i(d=>!d),children:t("pack.usage")})]}),n("div",{class:"fx-pub-pool-split",children:[n("span",{children:[t("pack.monthSpent")," ",n("b",{children:t("ai.points",{n:ze(Math.round(Number(e.monthSpent)||0),o)})})]}),c&&n("span",{children:[t("pack.lastTopUp")," ",n("b",{children:t("pack.topUp",{date:c.at?It(c.at,o):"",n:ze(Math.round(c.amount),o)})})]})]})]}),a&&!s&&n(Jy,{})]})}function Ky({items:e,publicOrigin:t,onRemoved:o}){let{t:r,locale:a}=ae();return e.length?n(I,{children:e.map(i=>n(Zy,{item:i,publicOrigin:t,locale:a,onRemoved:o},`${i.handle}/${i.slug}`))}):n(Tt,{children:[n("strong",{children:r("saved.empty")}),n("p",{children:r("saved.emptyHint")})]})}function Yy(e,t){if(!e.handle)return"";let o=typeof e.url=="string"?/^(https?:\/\/[^/]+)\/([^/]+)\//i.exec(e.url):null;return o&&o[2]===e.handle?`${o[1]}/${e.handle}`:t&&Ps(t)?`${Ar(t)}/${e.handle}`:""}function Zy({item:e,publicOrigin:t,locale:o,onRemoved:r}){let a=kt(),i=me(),s=Ps(e.url)?e.url:"",l=Yy(e,t),c=e.authorNickname||e.handle||"",d=p=>{let u=Q().openExternal;u?u(p)?.catch(()=>{}):window.open(p,"_blank","noopener")};return n("article",{class:"fx-sub-item","data-saved":`${e.handle}/${e.slug}`,children:[n("div",{class:"fx-sub-item-head",children:n("strong",{children:e.name||e.slug})}),s&&n("a",{class:"fx-web-url",href:s,target:"_blank",rel:"noopener noreferrer",onClick:p=>Sp(s,p),children:s}),n("div",{class:"fx-sub-meta",children:[c&&n("span",{class:"fx-pub-who",children:[n("span",{class:"fx-pub-av","aria-hidden":"true",children:Ca(c)}),e.handle?`@${e.handle}`:c]}),typeof e.likes=="number"&&n("span",{class:"fx-pub-soc",children:n("span",{children:[n(B,{name:"heart",size:11}),ze(e.likes,o)]})}),e.payer==="author"?n("span",{children:a("saved.aiAuthor")}):e.payer==="visitor"?n("span",{children:a("saved.aiVisitor")}):null]}),n("div",{class:"fx-web-actions",children:[s&&n(W,{onClick:()=>d(s),children:a("saved.open")}),l&&n(W,{onClick:()=>d(l),children:a("saved.author")}),e.handle&&e.slug&&n(W,{pending:i.pending,onClick:()=>void i.run(async()=>{let p=await H(`/connect/page/${encodeURIComponent(e.handle)}/${encodeURIComponent(e.slug)}/reactions/favorite`,{method:"DELETE"});if(!p.ok)return Be(p);r(e)}),children:a("saved.unsave")})]}),n(ye,{a:i})]})}function Qy({data:e,reload:t,update:o}){let r=kt(),a=Le(),[i,s]=S(""),[l,c]=S("mine"),[d,p]=S({state:"idle"}),u=K(0);$(()=>{if(e.publicBase)return;let x=!0;return Q().authStatus?.().then(T=>{x&&T?.cloudUrl&&s(Ar(T.cloudUrl))}).catch(()=>{}),()=>{x=!1}},[e.publicBase]);let m=La(e.authorPays)?e.authorPays:null,f=it(()=>{let x=++u.current;p(T=>T.state==="ready"?T:{state:"loading"}),H("/connect/favorites").then(T=>{!a.current||x!==u.current||p(T.ok?{state:"ready",items:Array.isArray(T.data?.items)?T.data.items:[]}:{state:"error"})})},[]);$(()=>{m&&f()},[!!m,f]);let g=e.apps||[],h=x=>Rs(e,i,x),b=typeof e.limit=="number"&&g.length>=e.limit,v=()=>{t(),m&&f()},w=K(o);w.current=o;let k=it(x=>{w.current(T=>({...T,apps:(Array.isArray(T.apps)?T.apps:[]).filter(F=>F.slug!==x)}))},[]);return n(Re,{title:r("web.title"),desc:r("web.desc"),actions:n(W,{onClick:v,children:r("web.refresh")}),children:[n("style",{children:Oa}),m&&n("div",{class:"fx-pub-tabs",children:n(Ot,{value:l,label:r("web.title"),onChange:c,options:[{value:"mine",label:r("web.tabMine",{n:g.length})},{value:"saved",label:d.state==="ready"?r("web.tabSavedN",{n:d.items.length}):r("web.tabSaved")}]})}),l==="saved"&&m?d.state==="ready"?n(Ky,{items:d.items,publicOrigin:e.publicOrigin,onRemoved:x=>{u.current++,p(T=>T.state==="ready"?{state:"ready",items:T.items.filter(F=>!(F.handle===x.handle&&F.slug===x.slug))}:T)}}):d.state==="error"?n(Tt,{children:[n("strong",{children:r("common.loadFailed")}),n("p",{children:n("button",{type:"button",class:"fx-link",onClick:f,children:r("common.retry")})})]}):n(Tt,{children:n("p",{children:r("common.loading")})}):n(I,{children:[typeof e.limit=="number"&&n("p",{class:"fx-web-quota",children:[r("web.used",{used:g.length,limit:e.limit}),b?` \xB7 ${r("web.full")}`:""]}),m&&n(Xy,{ap:m}),g.length?g.map(x=>n(Gy,{page:x,url:h(x.slug),reload:t,ap:m,onGone:k},x.slug)):n(Tt,{children:[n("strong",{children:r("web.empty")}),n("p",{children:r("web.emptyHint")})]})]})]})}function Cp(){let e=pt(()=>H("/connect/apps"));switch(e.state){case"loading":return n(nt,{});case"signedOut":return n(bt,{});case"error":return n(wt,{error:e.error,onRetry:e.retry});case"ready":return n(Qy,{data:e.data||{},reload:e.reload,update:e.update})}}var ex=e=>!!e&&typeof e=="object"&&typeof e.enabled=="boolean";async function Ms(e,t){let o=Q().cloudInvoke;if(!o)throw new Error("no_bridge");let r=await o(e,t);if(!ex(r))throw new Error(String(r?.error??"unavailable"));return r}var tx=["diag.item.app","diag.item.settings","diag.item.agents","diag.item.plugins","diag.item.runs","diag.item.sync"];function _p(){let[e,t]=S(0);return $(()=>Q().onAuthChanged?.(()=>t(o=>o+1)),[]),n(nx,{standalone:!0},e)}function nx({standalone:e=!1}={}){let{t,locale:o}=ae(),r=Le(),[a,i]=S(null),[s,l]=S(!1),c=me(),d=me();if($(()=>{let h=!1,b=0,v=()=>{let k=++b;Ms("diagnostics:get").then(x=>{!h&&k===b&&(i(x),l(!0))},()=>{!h&&k===b&&(i(null),l(!0))})};v();let w=Q().onAuthChanged?.(v);return()=>{h=!0,w?.()}},[]),!a?.signedIn)return e?s?a?n(bt,{}):n(Tt,{children:t("diag.unavailable")}):n(nt,{panels:1}):null;let p=()=>void d.run(async()=>{try{let h=await Ms("diagnostics:uploadNow");return r.current&&i(h),h.lastError?{error:{key:"diag.failed",vars:{reason:h.lastError}}}:h.enabled&&h.lastUploadAt?{success:{key:"diag.uploaded"}}:void 0}catch(h){return{error:{raw:St(h)||t("err.generic")}}}}),u=async h=>{let b=!1;await c.run(async()=>{d.clear();try{let v=await Ms("diagnostics:set",h);r.current&&i(v),b=!0}catch(v){return{error:{raw:St(v)||t("err.generic")}}}}),b&&h.enabled&&r.current&&p()},m=a.intervalHours??24,f=a.mode==="manual"?t("diag.freq.manual"):m===1?t("diag.freq.hour"):m%24===0?m===24?t("diag.freq.day"):t("diag.freq.days",{n:m/24}):t("diag.freq.hours",{n:m}),g=`${a.lastUploadAt?t("diag.last",{time:Pt(a.lastUploadAt,o)}):t("diag.noUpload")} \xB7 ${f}`;return n(Re,{icon:"chart",title:t("diag.title"),desc:t("diag.desc"),children:[n($e,{label:t("diag.enable"),desc:t("diag.enableDesc"),children:n(rn,{checked:a.enabled,disabled:c.pending,label:t("diag.enable"),onChange:h=>void u({enabled:h})})}),n(Se,{class:"fx-diag",children:[n("strong",{children:t("diag.collected")}),n("ul",{children:tx.map(h=>n("li",{children:t(h)},h))}),n(se,{children:t("diag.notCollected")})]}),a.sessions!==void 0&&n($e,{label:t("diag.sessions"),desc:t("diag.sessionsDesc"),children:n(rn,{checked:a.sessions,disabled:c.pending,label:t("diag.sessions"),onChange:h=>void u({sessions:h})})}),a.memory!==void 0&&n($e,{label:t("diag.memory"),desc:t("diag.memoryDesc"),children:n(rn,{checked:a.memory,disabled:c.pending,label:t("diag.memory"),onChange:h=>void u({memory:h})})}),n($e,{label:t("diag.activity"),desc:t("diag.activityDesc"),children:n(rn,{checked:a.activity,disabled:c.pending,label:t("diag.activity"),onChange:h=>void u({activity:h})})}),a.enabled&&n("div",{class:"settings-panel-footer fx-footer",children:[n("span",{class:"fx-muted",children:g}),n(W,{pending:d.pending,disabled:c.pending,onClick:p,children:t("diag.uploadNow")})]}),n(Se,{class:"fx-sub--tight",children:[n(se,{children:t("diag.retention",{n:a.retainDays})}),a.enabled&&a.lastError&&!d.error&&!d.success&&n("div",{class:"fx-msg is-error",role:"alert",children:t("diag.failed",{reason:a.lastError})}),n(ye,{a:c}),n(ye,{a:d})]})]})}var Tr=20,Fa=5,ox=5*1024*1024,Ba=1e4,rx={open:"fb.status.open",in_progress:"fb.status.in_progress",resolved:"fb.status.resolved",closed:"fb.status.closed"};function Tp(e){let{t}=ae(),o=e.status||"open",r=rx[o];return n("span",{class:`fx-tag fx-status fx-status--${o}`,children:r?t(r):o})}function Ep(){let[e,t]=S(null),o=pt(async()=>{let r=await H(`/feedback?limit=${Tr}&offset=0`);return r.ok?{ok:!0,status:r.status,data:Array.isArray(r.data?.tickets)?r.data.tickets:[]}:r});return o.state==="loading"?n(nt,{panels:1,rows:3}):o.state==="signedOut"?n(bt,{}):o.state==="error"?n(wt,{error:o.error,onRetry:o.retry}):e?n(cx,{id:e,onBack:()=>{t(null),o.reload()}}):n(ax,{first:o.data,onOpen:t,onChanged:o.reload})}function ax(e){let{t,locale:o}=ae(),r=Le(),[a,i]=S(e.first),[s,l]=S(e.first.length===Tr),[c,d]=S(!1),[p,u]=S(!1),m=me();$(()=>{i(e.first),l(e.first.length===Tr)},[e.first]);let f=()=>void m.run(async()=>{let g=await H(`/feedback?limit=${Tr}&offset=${a.length}`);if(!g.ok)return{error:ut(g)};let h=Array.isArray(g.data?.tickets)?g.data.tickets:[];r.current&&(i(b=>{let v=new Set(b.map(w=>w.id));return[...b,...h.filter(w=>!v.has(w.id))]}),l(h.length===Tr))});return n(Re,{icon:"message",title:t("fb.list.title"),desc:t("fb.list.desc"),actions:c?void 0:n(W,{variant:"primary",onClick:()=>{u(!1),d(!0)},children:[n(B,{name:"plus",size:12})," ",t("fb.new")]}),children:[c&&n(lx,{onCancel:()=>d(!1),onSubmitted:()=>{d(!1),u(!0),e.onChanged()}}),p&&!c&&n(Se,{children:n("div",{class:"fx-msg is-ok",role:"status",children:t("fb.submitted")})}),a.length===0?n(Tt,{children:t("fb.empty")}):n("div",{class:"fx-list fx-block",role:"list",children:a.map(g=>n("button",{type:"button",class:"fx-list-row fx-list-row--button",role:"listitem",onClick:()=>e.onOpen(g.id),children:[n("span",{class:`fx-dot${g.user_unread?" is-on":""}`,"aria-label":g.user_unread?t("fb.unread"):void 0}),n("span",{class:"fx-list-main",children:[n("strong",{children:g.title||(g.description||"").slice(0,60)||t("fb.untitled")}),n("small",{children:Pt(g.updated_at||g.created_at,o)})]}),n(Tp,{status:g.status}),n(B,{name:"chevron",size:12})]},g.id))}),a.length>0&&(s||m.error)&&n("div",{class:"settings-panel-footer fx-footer",children:[n("span",{class:"fx-muted",children:t("fb.shown",{n:ze(a.length,o)})}),s&&n(W,{pending:m.pending,onClick:f,children:t("common.loadMore")})]}),m.error&&n(Se,{children:n(ye,{a:m})})]})}function ix(e){return new Promise((t,o)=>{let r=new FileReader;r.onload=()=>t(String(r.result||"")),r.onerror=()=>o(r.error||new Error("read failed")),r.readAsDataURL(e)})}var sx=0;function lx(e){let{t}=ae(),o=Le(),[r,a]=S(""),[i,s]=S([]),[l,c]=S(null),[d,p]=S(!1),u=K(null),m=me(),[f,g]=S(0),h=K(0);h.current=i.length;let b=async w=>{c(null);for(let k of Array.from(w||[])){if(!k.type||!k.type.startsWith("image/")){c({key:"err.imageType"});continue}if(k.size>ox){c({key:"err.imageTooLarge"});continue}if(h.current>=Fa){c({key:"err.tooManyImages"});break}h.current++,g(x=>x+1);try{let x=await ix(k);if(!o.current)return;let T={id:`img-${++sx}`,filename:k.name||"image",mime_type:k.type,size:k.size,data_base64:x.replace(/^data:[^;]+;base64,/,""),url:x};s(F=>F.length>=Fa?F:[...F,T])}catch{h.current--,c({key:"err.imageRead"})}finally{o.current&&g(x=>x-1)}}},v=()=>void m.run(async()=>{let w=r.trim();if(!w)return{error:{key:"err.feedbackEmpty"}};if(w.length>Ba)return{error:{key:"err.feedbackTooLong"}};let k=i.map(({filename:T,mime_type:F,size:V,data_base64:D})=>({filename:T,mime_type:F,size:V,data_base64:D})),x=await H("/feedback",{method:"POST",body:{description:w,attachments:k},timeoutMs:12e4});if(!x.ok)return Be(x);e.onSubmitted()});return n("div",{class:`fx-sub fx-form fx-composer${d?" is-drag":""}`,onPaste:w=>{let k=Array.from(w.clipboardData?.items||[]).filter(x=>x.kind==="file").map(x=>x.getAsFile()).filter(Boolean);k.length&&(w.preventDefault(),b(k))},onDragOver:w=>{w.preventDefault(),p(!0)},onDragLeave:()=>p(!1),onDrop:w=>{w.preventDefault(),p(!1),b(w.dataTransfer?.files)},children:[n("label",{class:"fx-field",children:[n("span",{children:t("fb.descLabel")}),n("textarea",{class:"fx-input fx-textarea",rows:5,value:r,maxLength:Ba,autoFocus:!0,placeholder:t("fb.descPlaceholder"),onInput:w=>a(w.currentTarget.value)})]}),n("p",{class:"fx-note",children:t("fb.imagesHint",{n:Fa})}),i.length>0&&n("div",{class:"fx-thumbs",children:i.map(w=>n("span",{class:"fx-thumb",children:[n("img",{src:w.url,alt:w.filename}),n("button",{type:"button","aria-label":t("fb.removeImage"),title:t("fb.removeImage"),onClick:()=>{s(k=>k.filter(x=>x.id!==w.id)),c(null)},children:n(B,{name:"x",size:11})})]},w.id))}),l&&n("div",{class:"fx-msg is-error",role:"alert",children:ht(l,t)}),n("input",{ref:u,type:"file",accept:"image/*",multiple:!0,hidden:!0,onChange:w=>{let k=w.currentTarget;b(k.files),k.value=""}}),n("div",{class:"fx-inline",children:[n(W,{disabled:i.length>=Fa||m.pending,onClick:()=>u.current?.click(),children:[n(B,{name:"image",size:12})," ",t("fb.addImages")]}),n("span",{class:"fx-grow"}),n(W,{disabled:m.pending,onClick:e.onCancel,children:t("common.cancel")}),n(W,{variant:"primary",pending:m.pending,disabled:f>0,onClick:v,children:t("fb.submit")})]}),n(ye,{a:m})]})}function cx(e){let{t,locale:o}=ae(),[r,a]=S({state:"loading"}),[i,s]=S(0),[l,c]=S(""),[d,p]=S(null),u=me(),m=K(0);$(()=>{let x=++m.current;return H(`/feedback/${encodeURIComponent(e.id)}`).then(T=>{if(x===m.current){if(!T.ok){a({state:"error",fail:T});return}a({state:"ready",data:{ticket:T.data.ticket,replies:T.data.replies??[],attachments:T.data.attachments??[]}}),H(`/feedback/${encodeURIComponent(e.id)}/read`,{method:"POST"})}}),()=>{m.current++}},[e.id,i]),$(()=>{if(!d)return;let x=T=>{T.key==="Escape"&&p(null)};return window.addEventListener("keydown",x),()=>window.removeEventListener("keydown",x)},[d]);let f=n("div",{class:"fx-back",children:n(W,{onClick:e.onBack,children:[n(B,{name:"back",size:12})," ",t("fb.back")]})});if(r.state==="loading")return n(I,{children:[f,n(nt,{panels:1,rows:3})]});if(r.state==="error")return n(I,{children:[f,n(wt,{error:ut(r.fail),onRetry:()=>{a({state:"loading"}),s(x=>x+1)}})]});let{ticket:g,replies:h,attachments:b}=r.data,v=g.status==="closed",w=x=>b.filter(T=>(T.reply_id??null)===x),k=()=>void u.run(async()=>{let x=l.trim();if(!x)return{error:{key:"err.replyEmpty"}};if(x.length>Ba)return{error:{key:"err.replyTooLong"}};let T=await H(`/feedback/${encodeURIComponent(g.id)}/replies`,{method:"POST",body:{content:x},timeoutMs:6e4});return T.ok?(c(""),s(F=>F+1),{success:{key:"fb.replySent"}}):Be(T)});return n(I,{children:[f,n(Re,{icon:"message",title:g.title||t("fb.untitled"),actions:n(Tp,{status:g.status}),desc:`#${String(g.id).slice(0,8)} \xB7 ${Pt(g.created_at,o)}`,children:[n("div",{class:"fx-thread fx-block",children:[n(Ap,{who:"user",when:g.created_at,text:g.description||"",files:w(null),onZoom:p}),h.map((x,T)=>n(Ap,{who:x.author_role==="user"?"user":"admin",when:x.created_at,text:x.content||"",files:x.id?w(x.id):[],onZoom:p},x.id??T))]}),v?n(Se,{children:n(se,{children:t("fb.closedNote")})}):n(Se,{class:"fx-form",children:[n("textarea",{class:"fx-input fx-textarea",rows:3,value:l,maxLength:Ba,placeholder:t("fb.replyPlaceholder"),"aria-label":t("fb.replyPlaceholder"),onInput:x=>{c(x.currentTarget.value),u.success&&u.clear()}}),n("div",{class:"fx-inline",children:[n("span",{class:"fx-grow"}),n(W,{variant:"primary",pending:u.pending,onClick:k,children:t("fb.replySend")})]}),n(ye,{a:u})]})]}),d&&n("div",{class:"fx-lightbox",role:"dialog","aria-label":t("fb.imagePreview"),onClick:()=>p(null),children:n("img",{src:d,alt:""})})]})}function Ap(e){let{t,locale:o}=ae();return n("div",{class:`fx-bubble fx-bubble--${e.who}`,children:[n("div",{class:"fx-bubble-meta",children:[e.who==="user"?t("fb.you"):t("fb.support")," \xB7 ",Pt(e.when,o)]}),n("div",{class:"fx-bubble-text",children:e.text}),e.files.length>0&&n("div",{class:"fx-thumbs",children:e.files.map((r,a)=>{let i=r.mime_type||"";if(i.startsWith("image/")&&r.data_base64){let s=`data:${i};base64,${r.data_base64}`;return n("button",{type:"button",class:"fx-thumb",onClick:()=>e.onZoom(s),"aria-label":t("fb.imagePreview"),children:n("img",{src:s,alt:r.filename||""})},r.id??a)}return n("span",{class:"fx-tag",children:[n(B,{name:"card",size:11})," ",r.filename||t("fb.attachment")]},r.id??a)})})]})}var Ip=[{id:"monthly",field:"priceMonthly",discount:"recurringPriceMonthly"},{id:"quarterly",field:"priceQuarterly",discount:"recurringPriceQuarterly"},{id:"yearly",field:"priceYearly",discount:"recurringPriceYearly"}];function Pp(e,t){let o=Ip.find(s=>s.id===t),r=Je(e.priceMonthly)??0,a=(Je(e[o.field])??0)||(t==="quarterly"?Math.round(r*300)/100:0),i=Je(e[o.discount])??0;return i>0&&i<a?i:a}function Ds(e,t,o){let r=ze(e,o),a=String(t||"CNY").toUpperCase();return a==="CNY"?`\xA5${r}`:a==="USD"?`$${r}`:`${r} ${a}`}async function dx(){let[e,t,o]=await Promise.all([H("/membership/my"),H("/credits/balance"),H("/features")]);return!e.ok&&Un(e)?e:!t.ok&&Un(t)?t:{ok:!0,status:200,data:{membership:e.ok?e.data?.membership??null:null,membershipFailed:!e.ok,balance:t.ok?Je(t.data?.balance):null,balanceFailed:!t.ok,features:o.ok&&o.data&&typeof o.data=="object"?o.data:{}}}}async function Ns(e,t){let[o,r]=await Promise.all([dx(),H(e)]);return o.ok?r.ok?{ok:!0,status:r.status,data:{status:o.data,list:t(r.data)}}:r:o}var Os=e=>(Array.isArray(e)?e:[]).filter(t=>!!t&&typeof t=="object"&&t.isActive!==!1);function Mp(e){let t=e.membership;return t&&(t.status===void 0||t.status==="active")?t:null}function Fs(e){let{t,locale:o}=ae(),r=e.status,a=Mp(r),i=bo(a?.tier),s=i==="Free";return n("section",{class:"fx-shop-strip","aria-label":t("store.status"),children:[n("div",{class:"fx-shop-stat",children:[n("small",{children:t("store.tier")}),r.membershipFailed?n("b",{class:"is-empty",children:"\u2014"}):n("b",{"data-testid":"shop-tier",children:[s?t("member.freeName"):qo(a?.plan,o)||i,!s&&n("i",{children:a?.expiresAt?t("member.expires",{date:It(a.expiresAt,o)}):t("member.noExpiry")})]})]}),n("div",{class:"fx-shop-stat",children:[n("small",{children:t("store.balance")}),n("b",{class:r.balance===null?"is-empty":"","data-testid":"shop-balance",children:r.balance===null?"\u2014":ze(r.balance,o)})]}),(r.membershipFailed||r.balanceFailed)&&n("button",{type:"button",class:"fx-link",onClick:e.onRetry,children:t("common.retry")}),n("span",{class:"fx-grow"}),e.children]})}function Ua(e){return n("section",{class:"fx-shop-section",children:[n("div",{class:"fx-shop-head",children:[n("div",{children:[n("h2",{children:e.title}),e.desc&&n("p",{children:e.desc})]}),e.right]}),e.children]})}function Bs(e){let t=me(),[o,r]=S(null),a=(i,s,l,c)=>{r(i),t.run(async()=>{if(!await Cn(s,l,c))return{error:{key:"err.openFailed"}};e()})};return{a:t,payingId:t.pending?o:null,open:a}}function $a(e){return n(W,{variant:"ghost",pending:e.pending,disabled:e.disabled,onClick:e.onClick,children:[e.label,n(B,{name:"external",size:12})]})}function Us(e){return n("div",{class:"fx-shop-empty",children:e.children})}function Lp(){let{t:e,locale:t}=ae(),o=pt(()=>Ns("/payment/offerings",f=>Os(f?.membershipPlans))),r=Ho(o.state==="ready"?o.reload:null),a=Bs(r),[i,s]=S("monthly");if(o.state==="loading")return n(nt,{panels:2,rows:2});if(o.state==="signedOut")return n(bt,{});if(o.state==="error")return n(wt,{error:o.error,onRetry:o.retry});let{status:l,list:c}=o.data,d=l.features.payment!==!1,p=Ip.filter(f=>c.some(g=>Pp(g,f.id)>0)),u=p.some(f=>f.id===i)?i:p[0]?.id??"monthly",m=Mp(l)?.tier?.toLowerCase()??null;return n(I,{children:[n(Fs,{status:l,onRetry:o.reload}),n(Ua,{title:e("store.choosePlan"),desc:e(d?"store.payHint":"store.payOff"),right:p.length>1?n(Ot,{value:u,label:e("store.period"),onChange:s,options:p.map(f=>({value:f.id,label:e(`store.period.${f.id}`)}))}):void 0,children:[c.length===0?n(Us,{children:e("store.noPlans")}):n("div",{class:"fx-shop-tiers",children:c.map(f=>{let g=Pp(f,u),h=!!m&&!l.membershipFailed&&f.tier?.toLowerCase()===m;return n("article",{class:"fx-shop-tier","data-tier":f.tier,children:[n("h3",{children:[qo(f,t)||bo(f.tier),h&&n("span",{class:"fx-shop-current",children:[n(B,{name:"check",size:12}),e("store.currentTier")]})]}),n("div",{class:"fx-shop-price",children:g>0?n(I,{children:[Ds(g,f.currency,t),n("small",{children:e(`store.per.${u}`)})]}):"\u2014"}),n("p",{children:wd(f,t)}),d&&g>0&&n($a,{label:e(h?"member.renew":"store.pay"),pending:a.payingId===f.id,disabled:a.a.pending,onClick:()=>a.open(f.id,"membership",f.id,u)})]},f.id)})}),n(ye,{a:a.a})]})]})}var Rp="__custom";function ux(e){let t=e&&typeof e=="object"?e.minCredits:void 0;return typeof t=="number"&&Number.isInteger(t)&&t>0?{minCredits:t}:null}function Dp(){let{t:e,locale:t}=ae(),o=pt(()=>Ns("/payment/offerings",f=>({packs:Os(f?.packages),custom:ux(f?.customTopup)}))),[r,a]=S(null);$(()=>{let f=!0;return H("/token-quota/my").then(g=>{f&&g.ok&&a(g.data?.pointsPricing??null)}),()=>{f=!1}},[]);let i=Ho(o.state==="ready"?o.reload:null),s=Bs(i);if(o.state==="loading")return n(nt,{panels:2,rows:2});if(o.state==="signedOut")return n(bt,{});if(o.state==="error")return n(wt,{error:o.error,onRetry:o.retry});let{status:l,list:{packs:c,custom:d}}=o.data,p=l.features.payment!==!1,u=zr(r,t),m=Ru(r,t);return n(I,{children:[n(Fs,{status:l,onRetry:o.reload}),n(Ua,{title:e("store.packs"),desc:e(p?"store.packsHint":"store.payOff"),children:[c.length===0?n(Us,{children:e("store.noPacks")}):n("div",{class:"fx-shop-grid",children:[c.map(f=>{let g=Je(f.price)??0;return n(Ls,{icon:"coins",kind:e("store.kind.pack"),name:`${f.name||""} \xB7 ${e("store.nPoints",{n:ze(f.credits,t)})}`,desc:f.description,meta:e("store.instant"),children:p&&g>0&&n($a,{label:e("store.payPrice",{price:Ds(g,f.currency,t)}),pending:s.payingId===f.id,disabled:s.a.pending,onClick:()=>s.open(f.id,"credits")})},f.id)}),p&&d&&n(Ls,{icon:"coins",kind:e("store.kind.custom"),name:e("store.customPack"),desc:e("store.customPackHint",{min:ze(d.minCredits,t)}),meta:e("store.instant"),children:n($a,{label:e("store.customPackPay"),pending:s.payingId===Rp,disabled:s.a.pending,onClick:()=>s.open(Rp,"credits")})})]}),n(ye,{a:s.a})]}),u&&n(Ua,{title:e("store.pricingTitle"),children:n("div",{class:"fx-shop-pricing","data-testid":"points-pricing",children:[n(se,{children:e("fallback.pricing",u)}),n(se,{children:e("store.pricingFormula",u)}),m&&n(se,{children:e("store.pricingExample",{n:m})})]})})]})}function Ls(e){return n("article",{class:"fx-shop-card",children:[n("div",{class:"fx-shop-visual","aria-hidden":"true",children:e.emoji?n("span",{class:"fx-shop-emoji",children:e.emoji}):n(B,{name:e.icon,size:18})}),n("div",{class:"fx-shop-body",children:[n("span",{class:"fx-shop-kind",children:e.kind}),n("strong",{children:e.name}),e.desc&&n("p",{children:e.desc}),n("div",{class:"fx-shop-foot",children:[n("span",{class:"fx-shop-meta",children:e.meta}),n("span",{class:"fx-shop-acts",children:e.children})]}),e.below]})]})}var px={reset_card:"store.kind.card",api_quota_key:"store.kind.code"};function fx(e){let{t,locale:o}=ae(),{p:r}=e,a=me(),[i,s]=S(null),[l,c]=S(!1),d=Je(r.pricePoints)??0,p=Je(r.priceRmb)??0,u=typeof r.availableKeys=="number"&&r.availableKeys<=0,m=d>0&&e.balance!==null&&e.balance<d,f=()=>void a.run(async()=>{let h=await H("/shop/purchase",{method:"POST",body:{productId:r.id,payMethod:"points"},timeoutMs:3e4});return h.ok?(s(typeof h.data?.key=="string"&&h.data.key?h.data.key:null),e.onRedeemed(),{success:{key:"store.redeemed"}}):h.status===0?(c(!0),{error:{key:"store.uncertain"}}):Be(h)}),g=u?t("store.soldOut"):m?t("err.insufficientPoints"):typeof r.availableKeys=="number"?t("store.left",{n:r.availableKeys}):t("store.toBackpack");return n(Ls,{icon:r.type==="api_quota_key"?"key":"gift",emoji:r.icon,kind:t(px[r.type||""]??"store.kind.item"),name:r.name||"",desc:r.description,meta:g,below:n(I,{children:[n(ye,{a}),i&&n("div",{class:"fx-shop-key",children:[n("code",{children:i}),n(jt,{text:i,label:t("backpack.copyKey")})]})]}),children:[d>0&&n(Mt,{variant:"primary",pending:a.pending,disabled:u||m||l,label:t("store.redeem",{n:ze(d,o)}),confirmLabel:t("store.redeemConfirm",{n:ze(d,o)}),onConfirm:f}),e.payment&&p>0&&n($a,{label:Ds(p,r.currency,o),pending:e.paying,disabled:e.payBusy||u,onClick:e.onPay})]})}function Np(){let{t:e,goTo:t}=ae(),o=pt(()=>Ns("/shop/products",d=>Os(d))),r=Ho(o.state==="ready"?o.reload:null),a=Bs(r);if(o.state==="loading")return n(nt,{panels:2,rows:2});if(o.state==="signedOut")return n(bt,{});if(o.state==="error")return n(wt,{error:o.error,onRetry:o.retry});let{status:i,list:s}=o.data,l=i.features.payment!==!1,c=i.features.shop!==!1;return n(I,{children:[n(Fs,{status:i,onRetry:o.reload,children:t&&n(W,{onClick:()=>t("backpack"),children:e("store.openBackpack")})}),n(Ua,{title:e("store.redeemTitle"),desc:e("store.redeemHint"),children:[!c||s.length===0?n(Us,{children:e(c?"store.noItems":"store.itemsOff")}):n("div",{class:"fx-shop-grid",children:s.map(d=>n(fx,{p:d,balance:i.balance,payment:l,paying:a.payingId===d.id,payBusy:a.a.pending,onPay:()=>a.open(d.id,"storefront"),onRedeemed:o.reload},d.id))}),n(ye,{a:a.a})]})]})}var mx="forsion-extend",Op=[{id:"account",titleKey:"page.account",tabTitleKey:"page.profile",aliases:["profile"],keywords:"\u4E2A\u4EBA\u4E3B\u9875 profile avatar nickname \u5934\u50CF \u6635\u79F0",Component:Cu},{id:"account-details",parent:"account",titleKey:"account.details.title",keywords:"\u767B\u5F55 \u8D44\u6599 \u624B\u673A \u90AE\u7BB1 \u5207\u6362 \u9000\u51FA \u5FAE\u4FE1 \u526A\u85CF \u4F01\u4E1A\u5FAE\u4FE1 \u7ED1\u5B9A\u7801 login sign-in email phone account switch logout wechat clip wecom",Component:nu},{id:"security",parent:"account",titleKey:"page.security",keywords:"\u5B89\u5168 \u5BC6\u7801 \u8BBE\u5907 \u7ED1\u5B9A security password devices",Component:Wu},{id:"quota",titleKey:"page.membershipUsage",tabTitleKey:"page.membershipQuota",aliases:["membership"],keywords:"\u4F1A\u5458 \u989D\u5EA6 \u540E\u53F0 quota membership background",Component:Du},{id:"points",parent:"quota",titleKey:"page.pointsInvite",keywords:"\u79EF\u5206 \u9080\u8BF7 \u5151\u6362 \u5145\u503C points invite redeem credits",Component:Lu},{id:"usage",parent:"quota",titleKey:"page.usage",keywords:"\u7528\u91CF \u8BB0\u5F55 \u6D88\u8017 usage history tokens",Component:Yu},{id:"backpack",titleKey:"page.backpack",keywords:"\u80CC\u5305 \u5361\u5238 backpack inventory",Component:Ou},{id:"submission",titleKey:"page.submission",Component:dp},{id:"webpages",titleKey:"page.webPages",keywords:"\u7F51\u9875 \u53D1\u5E03 \u94FE\u63A5 \u4E0A\u67B6 \u7F51\u7AD9 web pages publish link site connect",Component:Cp},{id:"feedback",titleKey:"page.feedback",keywords:"\u5E2E\u52A9 \u53CD\u9988 help feedback",Component:Ep},{id:"privacy",titleKey:"page.privacy",tabTitleKey:"privacy.tab",keywords:"\u9690\u79C1 \u9065\u6D4B \u5D29\u6E83 \u7EDF\u8BA1 \u5E2E\u52A9\u6539\u8FDB privacy telemetry crash usage statistics improve",Component:ou,desktopOnly:!0},{id:"diagnostics",parent:"privacy",titleKey:"diag.title",keywords:"\u8BCA\u65AD \u4E0A\u4F20 \u65E5\u5FD7 diagnostic upload logs",Component:_p,desktopOnly:!0}],Fp=[{id:"membership",titleKey:"store.membership",descKey:"store.membership.desc",icon:"crown",Component:Lp},{id:"points",titleKey:"store.points",descKey:"store.points.desc",icon:"coins",Component:Dp},{id:"items",titleKey:"store.items",descKey:"store.items.desc",icon:"package",Component:Np}],mn=e=>`forsion/fx:${mx}:${e}`;function $s(e){let{ctx:t}=e,[o,r]=S(()=>Oe(t.getLocale?.()));$(()=>{r(Oe(t.getLocale?.()));let i=t.subscribeLocale?.(s=>r(Oe(s)));return()=>{typeof i=="function"&&i()}},[t]);let a=Zt(()=>{let i=t.app?.openSettings;return{ctx:t,anchor:e.anchor,locale:o,t:_n(o),goTo:typeof i=="function"?s=>i.call(t.app,mn(s)):null}},[t,o,e.anchor]);return n(Xi.Provider,{value:a,children:e.children})}function gx(e){let{locale:t}=ae(),o=e.page.Component;return n("div",{class:"fx-acct","data-fx-page":e.page.id,lang:t==="zh"?"zh-CN":"en",children:[n("style",{children:dd}),n(o,{})]})}function Bp(e){return n($s,{ctx:e.ctx,anchor:e.anchor,children:n(gx,{page:e.page})})}function Up(e,t=window){let o=un(t?.tangu);if(!e||!o?.cloudFetch||!o.cloudInvoke||!pn(o)||typeof e.registerStoreView!="function")return 0;let r=a=>()=>Ce(Oe(e.getLocale?.()),a);for(let a of Fp)e.registerStoreView({id:a.id,title:r(a.titleKey),description:r(a.descKey),group:r("store.group"),icon:a.icon,mount(i){return Fe(n(Bp,{ctx:e,page:a}),i),()=>{Fe(null,i)}}});return Fp.length}function $p(e,t=window){let o=un(t?.tangu);if(!e||!o?.cloudFetch||!o.cloudInvoke||!pn(o)||typeof e.registerSettingsView!="function")return 0;let r=Sn(o)?Op.filter(a=>!a.desktopOnly):Op;for(let a of r)e.registerSettingsView({id:a.id,category:"forsion",parent:a.parent,tabTitle:a.tabTitleKey?()=>Ce(Oe(e.getLocale?.()),a.tabTitleKey):void 0,aliases:a.aliases,keywords:a.keywords,title:()=>Ce(Oe(e.getLocale?.()),Sn(o)&&a.webTitleKey||a.titleKey),mount(i,s){return Fe(n(Bp,{ctx:e,page:a,anchor:s?.anchor}),i),()=>{Fe(null,i)}}});return r.length}var Go=[{id:"lv1"},{id:"lv2"},{id:"lv3"},{id:"lv4"},{id:"new",version:"2.14"}],ce=(e,t)=>({zh:e,en:t}),no=[{id:"welcome",level:"lv1",icon:"compass",title:ce("\u8BA4\u8BC6 Forsion","Meet Forsion"),tasks:[{id:"guide-open",event:"own:guide.open",goal:1,title:ce("\u6253\u5F00\u4F7F\u7528\u6307\u5357","Open the guide")},{id:"space-switch",event:"space.switch",goal:1,title:ce("\u5728 Ribbon \u4E0A\u6362\u4E00\u4E2A Space","Switch to another Space from the ribbon"),go:{space:"amadeus"},spot:{anchor:"ribbon-spaces",here:!0,title:ce("\u70B9 Ribbon \u4E0A\u4EFB\u610F\u4E00\u4E2A\u56FE\u6807","Click any icon on the ribbon"),body:ce("\u6BCF\u4E2A\u56FE\u6807\u662F\u4E00\u4E2A Space\uFF0C\u70B9\u4E00\u4E0B\u5C31\u5207\u8FC7\u53BB\u3002","Each icon is a Space. One click switches to it.")}}],figure:{layout:"space",main:"doc",marks:[{slot:"ribbon",label:ce("Ribbon\uFF1A\u6BCF\u4E2A\u56FE\u6807\u662F\u4E00\u4E2A Space","Ribbon: each icon is a Space")},{slot:"main-tabs",label:ce("\u4E3B\u533A\u7684\u6807\u7B7E\u9875","Tabs in the main area"),text:ce("\u6807\u7B7E\u9875","Tab")},{slot:["left-list","right"],label:ce("\u5DE6\u53F3\u4FA7\u680F","Left and right sidebars")}]}},{id:"chat",level:"lv1",icon:"message-circle",title:ce("\u548C Tangu \u8BF4\u7B2C\u4E00\u53E5\u8BDD","Say hello to Tangu"),tasks:[{id:"chat-first",event:"chat.send",goal:1,title:ce("\u53D1\u51FA\u7B2C\u4E00\u6761\u6D88\u606F","Send your first message"),go:{space:"tangu",command:"new-chat"},spot:{anchor:"chat-composer",title:ce("\u5728\u8FD9\u91CC\u6253\u4E2A\u62DB\u547C","Say hello here"),body:ce("\u6253\u5B57\uFF0C\u6309 Enter \u53D1\u9001\uFF1BShift+Enter \u6362\u884C\u3002","Type, then press Enter to send. Shift+Enter starts a new line.")}},{id:"chat-five",event:"chat.send",goal:5,title:ce("\u518D\u804A\u51E0\u53E5\uFF08\u7D2F\u8BA1 5 \u6761\uFF09","Keep talking (5 messages in all)"),go:{space:"tangu"},spot:{anchor:"chat-composer",title:ce("\u63A5\u7740\u804A\u51E0\u53E5","Keep the conversation going"),body:ce("\u7D2F\u8BA1\u53D1\u51FA 5 \u6761\u5C31\u7B97\u5B8C\u6210\u3002","Five messages in all and this one is done.")}}],figure:{layout:"space",main:"chat",marks:[{slot:"left-top",label:ce("\u5DE6\u680F\u9876\u90E8\u300C\u65B0\u4F1A\u8BDD\u300D",'"New chat" at the top of the left sidebar'),text:ce("\u65B0\u4F1A\u8BDD","New chat")},{slot:"main-bottom",label:ce("\u8F93\u5165\u6846","Message box")}]}},{id:"note",level:"lv1",icon:"file-text",title:ce("\u5199\u4E0B\u7B2C\u4E00\u7BC7\u7B14\u8BB0","Write your first note"),tasks:[{id:"note-create",event:"note.create",goal:1,title:ce("\u65B0\u5EFA\u4E00\u7BC7\u7B14\u8BB0","Create a note"),go:{space:"amadeus",command:"amadeus-new-note"},spot:{anchor:"note-new",title:ce("\u70B9\u300C\u65B0\u5EFA\u7B14\u8BB0\u300D",'Click "New note"'),body:ce("\u4E5F\u53EF\u4EE5\u6309 \u2318/Ctrl+N\u3002\u6BCF\u7BC7\u7B14\u8BB0\u90FD\u662F\u667A\u5E93\u91CC\u7684\u4E00\u4E2A .md \u6587\u4EF6\u3002","Or press \u2318/Ctrl+N. Every note is a .md file in your vault.")}},{id:"note-link",event:"note.wikilink",goal:1,title:ce("\u7528 [[ \u94FE\u63A5\u53E6\u4E00\u7BC7\u7B14\u8BB0","Link another note with [["),go:{space:"amadeus"},spot:{anchor:"note-body",title:ce("\u5728\u6B63\u6587\u91CC\u8F93\u5165 [[","Type [[ in the note"),body:ce("\u4ECE\u5F39\u51FA\u7684\u5019\u9009\u91CC\u9009\u4E00\u7BC7\u7B14\u8BB0\uFF0C\u6309 Enter\uFF0C\u4E24\u7BC7\u5C31\u8FDE\u4E0A\u4E86\u3002","Pick a note from the suggestions and press Enter to link the two.")}},{id:"note-canvas",event:"note.canvas",goal:1,title:ce("\u628A\u7B14\u8BB0\u5207\u5230\u753B\u5E03","Switch a note to the canvas"),go:{space:"amadeus",command:"amadeus-toggle-canvas"},spot:{anchor:"note-canvas",title:ce("\u70B9\u300C\u753B\u5E03\u300D",'Click "Canvas"'),body:ce("\u540C\u4E00\u7BC7\u7B14\u8BB0\u644A\u6210\u767D\u677F\uFF0C\u968F\u624B\u6446\uFF1B\u70B9\u300C\u6587\u6863\u300D\u5207\u56DE\u6765\uFF0C\u4E00\u4E2A\u5B57\u90FD\u4E0D\u53D8\u3002",'The same note opens as a whiteboard. Click "Document" to switch back; nothing changes.')}}],figure:{layout:"space",main:"doc",marks:[{slot:"left-top",label:ce("\u5DE6\u680F\u300C\u65B0\u5EFA\u7B14\u8BB0\u300D",'"New note" in the left sidebar'),text:ce("\u65B0\u5EFA\u7B14\u8BB0","New note")},{slot:"main-top",label:ce("\u300C\u6587\u6863 / \u753B\u5E03\u300D\u80F6\u56CA","The Document / Canvas switch")},{slot:"right",label:ce("\u53F3\u680F\u91CC\u7684\u300C\u53CD\u94FE\u300D","Backlinks in the right sidebar"),text:ce("\u53CD\u94FE","Backlinks")}]}},{id:"theme",level:"lv1",icon:"sparkles",title:ce("\u6362\u4E00\u8EAB\u4E3B\u9898","Make it look like yours"),tasks:[{id:"theme-change",event:"theme.change",goal:1,title:ce("\u6362\u4E00\u4E2A\u4E3B\u9898","Pick another theme"),go:{settings:"theme"}}],figure:{layout:"settings",marks:[{slot:"nav",label:ce("\u8BBE\u7F6E\u91CC\u7684\u300C\u5916\u89C2\u300D",'"Appearance" in Settings'),text:ce("\u5916\u89C2","Appearance")},{slot:"section-1",label:ce("\u8BBE\u8BA1\u8BED\u8A00","Design language"),text:ce("\u8BBE\u8BA1\u8BED\u8A00","Design language")},{slot:"section-2",label:ce("\u4E3B\u9898\u8272\u548C\u80CC\u666F\u8272","Theme and background colors"),text:ce("\u914D\u8272","Colors")}]}},{id:"database",level:"lv2",icon:"database",title:ce("\u6570\u636E\u5E93\uFF1A\u628A\u7B14\u8BB0\u53D8\u6210\u8868","Databases: turn notes into a table"),tasks:[{id:"base-create",event:"base.create",goal:1,title:ce("\u65B0\u5EFA\u4E00\u4E2A\u6570\u636E\u5E93","Create a database"),go:{space:"amadeus"}}],figure:{layout:"space",main:"doc",marks:[{slot:"left-list",label:ce("\u7B14\u8BB0\u6811\uFF1A\u53F3\u952E \u2192\u300C\u65B0\u5EFA Base\u300D",'Note tree: right-click \u2192 "New Base"')},{slot:"main-body",label:ce("\u6B63\u6587\u91CC\u8F93\u5165 /\uFF0C\u9009\u300C\u591A\u7EF4\u8868\u300D",'Type / in a note and pick "Database"')}]}},{id:"market",level:"lv2",icon:"store",title:ce("\u4ECE\u5546\u5E97\u88C5\u4E00\u4E2A\u63D2\u4EF6","Install a plugin from the store"),tasks:[{id:"market-install",event:"market.install",goal:1,title:ce("\u88C5\u4E00\u4E2A\u63D2\u4EF6","Install a plugin"),go:{command:"open-market"}}],figure:{layout:"space",main:"doc",marks:[{slot:"ribbon-bottom",label:ce("Ribbon \u5E95\u90E8\u7684\u300C\u5546\u5E97\u300D",'"Store" at the bottom of the ribbon')}]}},{id:"space",level:"lv2",icon:"layout-grid",title:ce("\u5B58\u4E0B\u81EA\u5DF1\u7684 Space","Save a Space of your own"),tasks:[{id:"space-save",event:"space.save",goal:1,title:ce("\u628A\u5F53\u524D\u5E03\u5C40\u5B58\u6210 Space","Save the current layout as a Space"),go:{command:"save-as-space"}}],figure:{layout:"space",main:"doc",marks:[{slot:"ribbon-plus",label:ce("Space \u533A\u7684 \uFF0B","The + under the Spaces")},{slot:"main-top-right",label:ce("\u53F3\u4E0A\u89D2\u7684\u6D6E\u52A8\u6309\u94AE","Floating buttons at the top right")}]}},{id:"calendar",level:"lv2",icon:"calendar-days",title:ce("\u65E5\u5386\u548C\u5F85\u529E","Calendar and to-dos"),tasks:[{id:"calendar-event",event:"calendar.event",goal:1,title:ce("\u5728\u65E5\u5386\u4E0A\u5EFA\u4E00\u4E2A\u65E5\u7A0B","Add an event to the calendar"),go:{space:"calendar"}},{id:"todo-done",event:"todo.done",goal:1,title:ce("\u52FE\u6389\u4E00\u6761\u5F85\u529E","Tick off a to-do"),go:{space:"calendar"}}],figure:{layout:"space",main:"grid",marks:[{slot:"left-plus",label:ce("\u5DE6\u680F\u300C\u65E5\u5386\u300D\u65C1\u7684 +",'The + next to "Calendars" in the left sidebar')},{slot:"main-body",label:ce("\u65F6\u95F4\u683C\uFF1A\u5355\u51FB\u5EFA\u65E5\u7A0B","Time grid: click to add an event")},{slot:"right",label:ce("\u53F3\u680F\u7684\u5F85\u529E","To-dos in the right sidebar"),text:ce("\u5F85\u529E","To-dos")}]}},{id:"agent",level:"lv3",icon:"bot",title:ce("\u521B\u5EFA\u4F60\u7684 Agent","Create your own agent"),tasks:[{id:"agent-create",event:"agent.create",goal:1,title:ce("\u65B0\u5EFA\u4E00\u4E2A Agent","Create an agent"),go:{space:"agents"},spot:{anchor:"agent-new",title:ce("\u70B9\u300C\u521B\u5EFA Agent\u300D",'Click "Create agent"'),body:ce("\u8D77\u4E2A\u540D\u5B57\uFF0C\u5199\u51E0\u53E5\u5B83\u8BE5\u600E\u4E48\u505A\u4E8B\u3002","Give it a name and a few lines on how it should work.")}}]},{id:"muse",level:"lv3",icon:"sparkles",title:ce("Muse\uFF1A\u8BA9\u7075\u611F\u81EA\u5DF1\u957F","Muse: ideas that grow on their own"),tasks:[{id:"muse-open",event:"muse.open",goal:1,title:ce("\u53BB Muse \u770B\u4E00\u773C","Take a look at Muse"),go:{space:"muse"}}]},{id:"automation",level:"lv3",icon:"zap",title:ce("\u81EA\u52A8\u5316\uFF1A\u5230\u70B9\u5C31\u505A","Automations: done on schedule"),tasks:[{id:"automation-create",event:"automation.create",goal:1,title:ce("\u5EFA\u4E00\u6761\u81EA\u52A8\u5316","Create an automation"),go:{space:"automation"}}]},{id:"computer",level:"lv4",icon:"terminal",title:ce("\u8BA9 Tangu \u64CD\u4F5C\u7535\u8111","Let Tangu use your computer"),tasks:[{id:"cu-use",event:"computer.use",goal:1,title:ce("\u8BA9 Tangu \u7528\u4E00\u6B21\u7535\u8111","Have Tangu use your computer once"),go:{settings:"computer-use"},desktopOnly:!0}]},{id:"plugin",level:"lv4",icon:"code",title:ce("\u5199\u4E00\u4E2A\u81EA\u5DF1\u7684\u63D2\u4EF6","Write a plugin of your own"),tasks:[{id:"plugin-dev",event:"plugin.local",goal:1,title:ce("\u4ECE\u672C\u673A\u6587\u4EF6\u5939\u8F7D\u5165\u4E00\u4E2A\u63D2\u4EF6","Load a plugin from a local folder"),go:{settings:"amadeus-plugins"},desktopOnly:!0}]},{id:"mini-capsules",level:"new",icon:"layout-grid",title:ce("Mini \u9876\u680F\u4E24\u9897\u80F6\u56CA","Two capsules on the Mini bar"),tasks:[{id:"mini-open",event:"mini.open",goal:1,title:ce("\u6253\u5F00\u4E00\u6B21 Mini \u7A97\u53E3","Open the Mini window"),go:{command:"open-mini"},desktopOnly:!0}]},{id:"todo-standalone",level:"new",icon:"list-tree",title:ce("\u5F85\u529E\u89C6\u56FE\u5355\u72EC\u6253\u5F00","Open the to-do view on its own"),tasks:[{id:"todo-open",event:"todo.open",goal:1,title:ce("\u5355\u72EC\u6253\u5F00\u4E00\u6B21\u5F85\u529E\u89C6\u56FE","Open the to-do view by itself"),go:{space:"calendar"}}]}],An=e=>no.filter(t=>t.level===e),oo=e=>no.find(t=>t.id===e);var gn=Go.filter(e=>!e.version);function Dn(e,t){let o=e.event.startsWith("own:");return t.count(o?e.event.slice(4):e.event,o)>=e.goal}var Er=(e,t)=>e.filter(o=>t.desktop||!o.desktopOnly);function Hp(e,t){return An(e).every(o=>Er(o.tasks,t).every(r=>Dn(r,t)))}function Ha(e,t){let o=gn.findIndex(r=>r.id===e);return o<=0||t.unlockAll?!0:gn.slice(0,o).every(r=>Hp(r.id,t))}function Jo(e,t){return Ha(e.level,t)?Er(e.tasks,t).every(o=>Dn(o,t))?"done":"active":"locked"}function Hs(e){return gn.find(t=>!Hp(t.id,e))?.id??null}function qp(e){let t={...e,unlockAll:!1},o=gn[0].id;for(let r of gn)Ha(r.id,t)&&(o=r.id);return o}function hx(e,t){let o=e.split(/[.+-]/).map(a=>Number.parseInt(a,10)||0),r=t.split(/[.+-]/).map(a=>Number.parseInt(a,10)||0);for(let a=0;a<Math.max(o.length,r.length);a++){let i=(o[a]??0)-(r[a]??0);if(i)return i<0?-1:1}return 0}function qs(e){let t=Go.find(o=>o.version);return t?.version&&e.appVersion&&hx(e.appVersion,t.version)>=0?t.version:null}var Wp=e=>no.filter(t=>t.level!=="new"||!!qs(e));function Vp(e,t){let o=Er(An(e).flatMap(r=>r.tasks),t);return{done:o.filter(r=>Dn(r,t)).length,total:o.length}}var Ws={zh:{agent:`\u9664\u4E86\u9ED8\u8BA4\u7684 Tangu\uFF0C\u4F60\u53EF\u4EE5\u6309\u7528\u9014\u5EFA\u81EA\u5DF1\u7684 Agent\uFF1A\u7ED9\u5B83\u540D\u5B57\u3001\u5DE5\u4F5C\u6307\u4EE4\u548C\u81EA\u5DF1\u7684\u8BB0\u5FC6\uFF0C\u8BA9\u5B83\u4E13\u95E8\u505A\u4E00\u7C7B\u4E8B\u3002
873
878
 
874
879
  ## \u521B\u5EFA
875
880
 
@@ -1279,12 +1284,12 @@ In the Calendar's right panel or the Mini window, the filters and the list choic
1279
1284
  - Things you have already done count right away, and progress is kept on this device. Been around a while? Unlock everything from the \xB7\xB7\xB7 menu at the top right.
1280
1285
 
1281
1286
  > [!tip]
1282
- > Can't find something? Press \`\u2318/Ctrl+K\` to open the command palette and search for it by name.`}};var Ap="forsion-guide",An={reader:"guide",side:"guide-side",companion:"guide-companion"},Us="guide-chapters",Tp=e=>`forsion-extend.guide.${e}`;function Nt(e,t){try{let o=localStorage.getItem(Tp(e));return o===null?t:JSON.parse(o)}catch{return t}}function jt(e,t){try{localStorage.setItem(Tp(e),JSON.stringify(t))}catch{}}function Ep(e,t){let o=new Set,r=Nt("unlockAll",!1),a=null,i=Nt("chapter","welcome"),s=Nt("companion","welcome"),l=null,c=null,d=!1,p,u=[],f=()=>De(e.getLocale?.()),m=(z,A)=>Se(f(),z,A),g=(z,A)=>e.achievements?.count?.(z,A?{own:!0}:void 0)??0,h=()=>({count:g,unlockAll:r,desktop:t.desktop,appVersion:a}),v=z=>z.title[f()]||z.title.zh,b=z=>z==="new"?m("guide.whatsNew",{version:Wo.find(A=>A.version)?.version??""}):m(`guide.level.${z}`),x=()=>{for(let z of[...o])try{z()}catch(A){console.error("[guide] listener failed",A)}},w=()=>{let z=h(),A=new Set(eo.flatMap(Q=>Q.tasks.filter(H=>Ln(H,z)).map(H=>H.id)));if(l)for(let Q of eo)for(let H of Q.tasks)A.has(H.id)&&!l.has(H.id)&&e.app?.notify?.(m("guide.toast.taskDone",{task:v(H)}));l=A,F(z);let R=Sp(z),X=Nt("reached",null);X===null?jt("reached",R):mn.findIndex(Q=>Q.id===R)>mn.findIndex(Q=>Q.id===X)&&(jt("reached",R),jt("justUnlocked",R),N({kind:"level",level:R})),Nt("pendingLetter",null)&&j()},S=z=>!!z.spot&&!!e.app?.spotlight&&Nt("spotlight",!0)&&(t.desktop||!z.desktopOnly),T=(z,A,R)=>{let X=z.spot;c={chapter:A.id,task:z.id},x();let Q=A.tasks.length>1?m("guide.spotStep",{n:A.tasks.indexOf(z)+1,total:A.tasks.length}):void 0;e.app.spotlight({anchor:X.anchor,title:v(X),body:X.body[f()]||X.body.zh,step:Q}).then(async H=>{d||(c?.task===z.id&&H!=="replaced"&&(c=null,x()),H==="mute"&&$.setSpotlight(!1),H==="missing"&&R&&(X.here&&z.go?.space&&await e.app?.openSpace?.(z.go.space),z.go?.command&&e.app?.runCommand?.(z.go.command)))})},F=z=>{let A=c&&to(c.chapter),R=A&&A.tasks.find(Q=>Q.id===c.task);if(!A||!R||!Ln(R,z))return;let X=A.tasks.find(Q=>!Ln(Q,z)&&S(Q)&&!Q.spot.here&&(Q.go?.space??"")===(R.go?.space??""));X?T(X,A,!1):(c=null,e.app?.spotlight?.(null))},B=Promise.resolve(),N=z=>{!e.inbox||!Nt("reminders",!0)||(jt("pendingLetter",z),j())},j=()=>{B=B.then(_,_)},_=async()=>{let z=Nt("pendingLetter",null);if(d||!z||!e.inbox)return;let A=z.kind==="level"?_n(z.level):_n("new"),R=A.map(te=>`- ${v(te)}`).join(`
1283
- `),X=z.kind==="level"?{title:m("guide.letter.levelTitle",{level:b(z.level)}),body:`${m("guide.letter.levelBody")}
1287
+ > Can't find something? Press \`\u2318/Ctrl+K\` to open the command palette and search for it by name.`}};var jp="forsion-guide",Tn={reader:"guide",side:"guide-side",companion:"guide-companion"},Vs="guide-chapters",Gp=e=>`forsion-extend.guide.${e}`;function Ft(e,t){try{let o=localStorage.getItem(Gp(e));return o===null?t:JSON.parse(o)}catch{return t}}function Gt(e,t){try{localStorage.setItem(Gp(e),JSON.stringify(t))}catch{}}function Jp(e,t){let o=new Set,r=Ft("unlockAll",!1),a=null,i=Ft("chapter","welcome"),s=Ft("companion","welcome"),l=null,c=null,d=!1,p,u=[],m=()=>Oe(e.getLocale?.()),f=(_,C)=>Ce(m(),_,C),g=(_,C)=>e.achievements?.count?.(_,C?{own:!0}:void 0)??0,h=()=>({count:g,unlockAll:r,desktop:t.desktop,appVersion:a}),b=_=>_.title[m()]||_.title.zh,v=_=>_==="new"?f("guide.whatsNew",{version:Go.find(C=>C.version)?.version??""}):f(`guide.level.${_}`),w=()=>{for(let _ of[...o])try{_()}catch(C){console.error("[guide] listener failed",C)}},k=()=>{let _=h(),C=new Set(no.flatMap(Y=>Y.tasks.filter(q=>Dn(q,_)).map(q=>q.id)));if(l)for(let Y of no)for(let q of Y.tasks)C.has(q.id)&&!l.has(q.id)&&e.app?.notify?.(f("guide.toast.taskDone",{task:b(q)}));l=C,F(_);let P=qp(_),G=Ft("reached",null);G===null?Gt("reached",P):gn.findIndex(Y=>Y.id===P)>gn.findIndex(Y=>Y.id===G)&&(Gt("reached",P),Gt("justUnlocked",P),D({kind:"level",level:P})),Ft("pendingLetter",null)&&j()},x=_=>!!_.spot&&!!e.app?.spotlight&&Ft("spotlight",!0)&&(t.desktop||!_.desktopOnly),T=(_,C,P)=>{let G=_.spot;c={chapter:C.id,task:_.id},w();let Y=C.tasks.length>1?f("guide.spotStep",{n:C.tasks.indexOf(_)+1,total:C.tasks.length}):void 0;e.app.spotlight({anchor:G.anchor,title:b(G),body:G.body[m()]||G.body.zh,step:Y}).then(async q=>{d||(c?.task===_.id&&q!=="replaced"&&(c=null,w()),q==="mute"&&U.setSpotlight(!1),q==="missing"&&P&&(G.here&&_.go?.space&&await e.app?.openSpace?.(_.go.space),_.go?.command&&e.app?.runCommand?.(_.go.command)))})},F=_=>{let C=c&&oo(c.chapter),P=C&&C.tasks.find(Y=>Y.id===c.task);if(!C||!P||!Dn(P,_))return;let G=C.tasks.find(Y=>!Dn(Y,_)&&x(Y)&&!Y.spot.here&&(Y.go?.space??"")===(P.go?.space??""));G?T(G,C,!1):(c=null,e.app?.spotlight?.(null))},V=Promise.resolve(),D=_=>{!e.inbox||!Ft("reminders",!0)||(Gt("pendingLetter",_),j())},j=()=>{V=V.then(A,A)},A=async()=>{let _=Ft("pendingLetter",null);if(d||!_||!e.inbox)return;let C=_.kind==="level"?An(_.level):An("new"),P=C.map(te=>`- ${b(te)}`).join(`
1288
+ `),G=_.kind==="level"?{title:f("guide.letter.levelTitle",{level:v(_.level)}),body:`${f("guide.letter.levelBody")}
1284
1289
 
1285
- ${R}`}:{title:m("guide.letter.versionTitle",{version:z.version,n:A.length}),body:`${m("guide.letter.versionBody")}
1290
+ ${P}`}:{title:f("guide.letter.versionTitle",{version:_.version,n:C.length}),body:`${f("guide.letter.versionBody")}
1286
1291
 
1287
- ${R}`},Q=await e.inbox.post(X);if(!Q||d)return;let H=Nt("lastLetter",null);jt("lastLetter",Q),jt("letters",{...Nt("letters",{}),[Q]:z}),JSON.stringify(Nt("pendingLetter",null))===JSON.stringify(z)&&jt("pendingLetter",null),H&&H!==Q&&await e.inbox.archive(H)},L=()=>{let z=Bs(h());if(!z||Nt("seenVersion",null)===z)return;if(!(Nt("seenVersion",null)!==null||g("chat.send",!1)+g("note.create",!1)>0)){jt("seenVersion",z);return}let R=Date.now(),X=()=>{if(!d){if(document.querySelector(".ob-rail")&&Date.now()-R<6e5){p=window.setTimeout(X,3e3);return}jt("seenVersion",z),N({kind:"version",version:z})}};p=window.setTimeout(X,3e3)},$={ctx:e,locale:f,t:m,env:h,title:v,levelName:b,subscribe(z){return o.add(z),()=>{o.delete(z)}},selected:()=>to(i)??eo[0],select(z){!to(z)||z===i||(i=z,jt("chapter",z),to(z).level===Nt("justUnlocked",null)&&jt("justUnlocked",null),x())},companionChapter:()=>to(s)??$.selected(),async go(z,A){let R=z.go;if(!R||z.desktopOnly&&!t.desktop)return;s=A.id,jt("companion",A.id);let X=S(z);c&&(c=null,X||e.app?.spotlight?.(null)),R.space&&!(X&&z.spot.here)&&await e.app?.openSpace?.(R.space)&&R.space!==Ap&&e.openView?.(An.companion,{location:"right"}),X?T(z,A,!0):R.command&&e.app?.runCommand?.(R.command),R.settings&&e.app?.openSettings?.(R.settings),x()},markdown(z){let A=$s[f()]?.[z.id]||$s.zh[z.id]||"",R=A.search(/\n\s*\n/);return R<0?{intro:A.trim(),body:""}:{intro:A.slice(0,R).trim(),body:A.slice(R).trim()}},justUnlocked:()=>Nt("justUnlocked",null),setUnlockAll(z){r=z,jt("unlockAll",z),x()},reminders:()=>Nt("reminders",!0),setReminders(z){jt("reminders",z),x()},spotlightOn:()=>!!e.app?.spotlight&&Nt("spotlight",!0),setSpotlight(z){jt("spotlight",z),!z&&c&&(c=null,e.app?.spotlight?.(null)),x()},spotTask:()=>c?.task??null,letter:z=>Nt("letters",{})[z]??null,async openGuide(z){z&&$.select(z),jt("justUnlocked",null),await e.app?.openSpace?.(Ap),x()},dispose(){c&&e.app?.spotlight?.(null),d=!0,window.clearTimeout(p);for(let z of u.splice(0))z();o.clear()}},P=e.achievements?.subscribe?.(()=>{w(),x()});P&&u.push(P);let K=e.subscribeLocale?.(()=>x());return typeof K=="function"&&u.push(K),w(),t.appVersion.then(z=>{d||(a=z,L(),x())}),$}function Fa(e){let t=Cp(e.env());return Wo.map(o=>({level:o.id,chapters:t.filter(r=>r.level===o.id)})).filter(o=>o.chapters.length)}function Pp(e,t){switch(e){case"ribbon":return{x:5,y:10,w:28,h:168};case"ribbon-plus":return{x:5,y:180,w:28,h:26};case"ribbon-bottom":return{x:5,y:208,w:28,h:26};case"left-top":return{x:48,y:14,w:128,h:28};case"left-plus":return{x:180,y:16,w:22,h:24};case"left-list":return{x:48,y:54,w:154,h:122};case"main-tabs":return{x:224,y:14,w:96,h:22};case"main-top":return{x:226,y:44,w:104,h:24};case"main-top-right":return{x:498,y:44,w:60,h:24};case"main-body":return t.main==="grid"?{x:232,y:78,w:328,h:170}:{x:244,y:80,w:304,h:112};case"main-bottom":return{x:236,y:208,w:312,h:42};case"right":return{x:588,y:16,w:116,h:76};case"nav":return{x:14,y:92,w:172,h:28};case"section-1":return{x:224,y:60,w:476,h:86};case"section-2":return{x:224,y:160,w:476,h:90}}}var it=e=>({style:e}),It=(e,t,o,r=7)=>n("rect",{x:e,y:t,width:o,height:r,rx:r/2,...it("fill:var(--overlay-medium)")}),jo=(e,t,o=12,r=!1)=>n("rect",{x:e,y:t,width:o,height:o,rx:3,...it(r?"fill:var(--text-muted)":"fill:var(--overlay-strong)")}),Go=(e,t,o,r="")=>n("text",{x:e,y:t,...it(`fill:var(--text);font:500 12px var(--font-ui);${r}`),children:o});function Ip({g:e,figure:t}){let o=e.locale(),r=new Map;for(let u of t.marks)if(u.text)for(let f of[].concat(u.slot))r.set(f,u.text[o]||u.text.zh);let a=new Set(t.marks.flatMap(u=>[].concat(u.slot))),i=t.marks.flatMap(u=>[].concat(u.slot).map(f=>Pp(f,t))),s=t.marks.map((u,f)=>{let m=Pp([].concat(u.slot)[0],t);return{n:f+1,x:Math.min(m.x+m.w+4,712),y:Math.max(m.y-4,12)}}),l=t.marks.map(u=>u.label[o]||u.label.zh),c=()=>n(M,{children:[[16,44,72,100,128,156].map((u,f)=>n("g",{children:jo(11,u,16,f===2)},u)),n("path",{d:"M19 186v14M12 193h14",...it("stroke:var(--text-faint);stroke-width:2;stroke-linecap:round")}),jo(11,213,16,a.has("ribbon-bottom")),jo(11,240,16),n("rect",{x:38,y:1,width:1,height:266,...it("fill:var(--border)")}),jo(56,22,12,a.has("left-top")),r.has("left-top")?Go(76,32,r.get("left-top")):It(76,25,70),a.has("left-plus")&&n("path",{d:"M191 21v14M184 28h14",...it("stroke:var(--text-muted);stroke-width:2;stroke-linecap:round")}),[62,86,110,134,158].map((u,f)=>n("g",{children:[jo(58,u,10),It(76,u+1.5,[74,56,88,48,66][f])]},u)),r.has("right")?Go(598,38,r.get("right")):It(598,30,52),It(598,52,84),It(598,68,62),It(598,116,92),It(598,132,70)]}),d=()=>n(M,{children:[n("rect",{x:228,y:16,width:88,height:18,rx:6,...it("fill:var(--bg-card)")}),r.has("main-tabs")?Go(240,29,r.get("main-tabs"),"font-size:11px"):It(238,22,52,6),n("rect",{x:230,y:47,width:48,height:18,rx:9,...it("fill:var(--bg-card)")}),It(242,53,24,6),It(290,53,26,6),[506,524,542].map(u=>n("rect",{x:u,y:50,width:12,height:12,rx:3,...it("fill:var(--overlay-strong)")},u)),t.main==="grid"?n(M,{children:[[0,1,2,3,4,5,6].map(u=>n("g",{children:It(244+u*46,86,22,6)},u)),[104,140,176,212].map(u=>n("rect",{x:238,y:u,width:316,height:1,...it("fill:var(--border)")},u)),[1,2,3,4,5,6].map(u=>n("rect",{x:238+u*45,y:98,width:1,height:146,...it("fill:var(--border)")},u)),n("rect",{x:286,y:146,width:40,height:24,rx:4,...it("fill:var(--overlay-medium)")}),n("rect",{x:376,y:182,width:40,height:18,rx:4,...it("fill:var(--overlay-medium)")})]}):t.main==="chat"?n(M,{children:[n("rect",{x:412,y:84,width:132,height:26,rx:10,...it("fill:var(--overlay-light)")}),It(252,128,260),It(252,144,230),It(252,160,150),n("rect",{x:240,y:212,width:304,height:34,rx:10,...it("fill:var(--bg-card);stroke:var(--border)")}),It(254,226,120),n("circle",{cx:528,cy:229,r:8,...it("fill:var(--overlay-strong)")})]}):n(M,{children:[n("rect",{x:252,y:86,width:120,height:12,rx:4,...it("fill:var(--overlay-strong)")}),[110,126,142,166,182,206,222].map((u,f)=>n("g",{children:It(252,u,[292,270,200,286,240,280,150][f])},u))]})]}),p=()=>n(M,{children:[[36,64,92,120,148,176].map((u,f)=>n("g",{children:[jo(24,u+8,12,f===2&&a.has("nav")),f===2&&r.has("nav")?Go(44,u+18,r.get("nav")):It(44,u+11,[64,52,58,70,46,60][f])]},u)),n("rect",{x:232,y:28,width:110,height:12,rx:4,...it("fill:var(--overlay-strong)")}),r.has("section-1")?Go(234,82,r.get("section-1")):It(234,74,70),[0,1,2].map(u=>n("rect",{x:234+u*150,y:94,width:136,height:42,rx:8,...it(u===0?"fill:var(--bg-card);stroke:var(--accent)":"fill:var(--bg-card);stroke:var(--border)")},u)),r.has("section-2")?Go(234,182,r.get("section-2")):It(234,174,70),[0,1,2,3,4,5,6].map(u=>n("circle",{cx:246+u*30,cy:210,r:10,...it(u===0?"fill:var(--accent)":"fill:var(--overlay-strong)")},u)),[0,1,2,3,4,5,6].map(u=>n("circle",{cx:246+u*30,cy:236,r:8,...it("fill:var(--overlay-medium)")},`b${u}`))]});return n("figure",{class:"fxg-figure",children:[n("svg",{class:"fxg-figure-svg",viewBox:"0 0 724 268",role:"img","aria-label":`${e.t("guide.figure")}: ${l.map((u,f)=>`${f+1} ${u}`).join("; ")}`,children:[n("rect",{x:.5,y:.5,width:723,height:267,rx:10,...it("fill:var(--sidebar-bg, var(--bg));stroke:var(--border)")}),t.layout==="settings"?n("rect",{x:200,y:1,width:523,height:266,...it("fill:var(--bg)")}):n("rect",{x:216,y:8,width:352,height:252,rx:8,...it("fill:var(--bg)")}),i.map((u,f)=>n("rect",{x:u.x-4,y:u.y-4,width:u.w+8,height:u.h+8,rx:7,...it("fill:var(--accent-wash);stroke:var(--accent);stroke-width:2")},`r${f}`)),t.layout==="settings"?p():n(M,{children:[c(),d()]}),s.map(u=>n("g",{children:[n("circle",{cx:u.x,cy:u.y,r:10,...it("fill:var(--accent)")}),n("text",{x:u.x,y:u.y+4,"text-anchor":"middle",...it("fill:var(--on-accent);font:600 12px var(--font-ui)"),children:u.n})]},u.n))]}),n("figcaption",{class:"fxg-figure-cap",children:l.map((u,f)=>n("span",{children:[n("b",{children:f+1}),u]},f))})]})}var Rp=`
1292
+ ${P}`},Y=await e.inbox.post(G);if(!Y||d)return;let q=Ft("lastLetter",null);Gt("lastLetter",Y),Gt("letters",{...Ft("letters",{}),[Y]:_}),JSON.stringify(Ft("pendingLetter",null))===JSON.stringify(_)&&Gt("pendingLetter",null),q&&q!==Y&&await e.inbox.archive(q)},L=()=>{let _=qs(h());if(!_||Ft("seenVersion",null)===_)return;if(!(Ft("seenVersion",null)!==null||g("chat.send",!1)+g("note.create",!1)>0)){Gt("seenVersion",_);return}let P=Date.now(),G=()=>{if(!d){if(document.querySelector(".ob-rail")&&Date.now()-P<6e5){p=window.setTimeout(G,3e3);return}Gt("seenVersion",_),D({kind:"version",version:_})}};p=window.setTimeout(G,3e3)},U={ctx:e,locale:m,t:f,env:h,title:b,levelName:v,subscribe(_){return o.add(_),()=>{o.delete(_)}},selected:()=>oo(i)??no[0],select(_){!oo(_)||_===i||(i=_,Gt("chapter",_),oo(_).level===Ft("justUnlocked",null)&&Gt("justUnlocked",null),w())},companionChapter:()=>oo(s)??U.selected(),async go(_,C){let P=_.go;if(!P||_.desktopOnly&&!t.desktop)return;s=C.id,Gt("companion",C.id);let G=x(_);c&&(c=null,G||e.app?.spotlight?.(null)),P.space&&!(G&&_.spot.here)&&await e.app?.openSpace?.(P.space)&&P.space!==jp&&e.openView?.(Tn.companion,{location:"right"}),G?T(_,C,!0):P.command&&e.app?.runCommand?.(P.command),P.settings&&e.app?.openSettings?.(P.settings),w()},markdown(_){let C=Ws[m()]?.[_.id]||Ws.zh[_.id]||"",P=C.search(/\n\s*\n/);return P<0?{intro:C.trim(),body:""}:{intro:C.slice(0,P).trim(),body:C.slice(P).trim()}},justUnlocked:()=>Ft("justUnlocked",null),setUnlockAll(_){r=_,Gt("unlockAll",_),w()},reminders:()=>Ft("reminders",!0),setReminders(_){Gt("reminders",_),w()},spotlightOn:()=>!!e.app?.spotlight&&Ft("spotlight",!0),setSpotlight(_){Gt("spotlight",_),!_&&c&&(c=null,e.app?.spotlight?.(null)),w()},spotTask:()=>c?.task??null,letter:_=>Ft("letters",{})[_]??null,async openGuide(_){_&&U.select(_),Gt("justUnlocked",null),await e.app?.openSpace?.(jp),w()},dispose(){c&&e.app?.spotlight?.(null),d=!0,window.clearTimeout(p);for(let _ of u.splice(0))_();o.clear()}},N=e.achievements?.subscribe?.(()=>{k(),w()});N&&u.push(N);let oe=e.subscribeLocale?.(()=>w());return typeof oe=="function"&&u.push(oe),k(),t.appVersion.then(_=>{d||(a=_,L(),w())}),U}function qa(e){let t=Wp(e.env());return Go.map(o=>({level:o.id,chapters:t.filter(r=>r.level===o.id)})).filter(o=>o.chapters.length)}function Xp(e,t){switch(e){case"ribbon":return{x:5,y:10,w:28,h:168};case"ribbon-plus":return{x:5,y:180,w:28,h:26};case"ribbon-bottom":return{x:5,y:208,w:28,h:26};case"left-top":return{x:48,y:14,w:128,h:28};case"left-plus":return{x:180,y:16,w:22,h:24};case"left-list":return{x:48,y:54,w:154,h:122};case"main-tabs":return{x:224,y:14,w:96,h:22};case"main-top":return{x:226,y:44,w:104,h:24};case"main-top-right":return{x:498,y:44,w:60,h:24};case"main-body":return t.main==="grid"?{x:232,y:78,w:328,h:170}:{x:244,y:80,w:304,h:112};case"main-bottom":return{x:236,y:208,w:312,h:42};case"right":return{x:588,y:16,w:116,h:76};case"nav":return{x:14,y:92,w:172,h:28};case"section-1":return{x:224,y:60,w:476,h:86};case"section-2":return{x:224,y:160,w:476,h:90}}}var st=e=>({style:e}),Lt=(e,t,o,r=7)=>n("rect",{x:e,y:t,width:o,height:r,rx:r/2,...st("fill:var(--overlay-medium)")}),Xo=(e,t,o=12,r=!1)=>n("rect",{x:e,y:t,width:o,height:o,rx:3,...st(r?"fill:var(--text-muted)":"fill:var(--overlay-strong)")}),Ko=(e,t,o,r="")=>n("text",{x:e,y:t,...st(`fill:var(--text);font:500 12px var(--font-ui);${r}`),children:o});function Kp({g:e,figure:t}){let o=e.locale(),r=new Map;for(let u of t.marks)if(u.text)for(let m of[].concat(u.slot))r.set(m,u.text[o]||u.text.zh);let a=new Set(t.marks.flatMap(u=>[].concat(u.slot))),i=t.marks.flatMap(u=>[].concat(u.slot).map(m=>Xp(m,t))),s=t.marks.map((u,m)=>{let f=Xp([].concat(u.slot)[0],t);return{n:m+1,x:Math.min(f.x+f.w+4,712),y:Math.max(f.y-4,12)}}),l=t.marks.map(u=>u.label[o]||u.label.zh),c=()=>n(I,{children:[[16,44,72,100,128,156].map((u,m)=>n("g",{children:Xo(11,u,16,m===2)},u)),n("path",{d:"M19 186v14M12 193h14",...st("stroke:var(--text-faint);stroke-width:2;stroke-linecap:round")}),Xo(11,213,16,a.has("ribbon-bottom")),Xo(11,240,16),n("rect",{x:38,y:1,width:1,height:266,...st("fill:var(--border)")}),Xo(56,22,12,a.has("left-top")),r.has("left-top")?Ko(76,32,r.get("left-top")):Lt(76,25,70),a.has("left-plus")&&n("path",{d:"M191 21v14M184 28h14",...st("stroke:var(--text-muted);stroke-width:2;stroke-linecap:round")}),[62,86,110,134,158].map((u,m)=>n("g",{children:[Xo(58,u,10),Lt(76,u+1.5,[74,56,88,48,66][m])]},u)),r.has("right")?Ko(598,38,r.get("right")):Lt(598,30,52),Lt(598,52,84),Lt(598,68,62),Lt(598,116,92),Lt(598,132,70)]}),d=()=>n(I,{children:[n("rect",{x:228,y:16,width:88,height:18,rx:6,...st("fill:var(--bg-card)")}),r.has("main-tabs")?Ko(240,29,r.get("main-tabs"),"font-size:11px"):Lt(238,22,52,6),n("rect",{x:230,y:47,width:48,height:18,rx:9,...st("fill:var(--bg-card)")}),Lt(242,53,24,6),Lt(290,53,26,6),[506,524,542].map(u=>n("rect",{x:u,y:50,width:12,height:12,rx:3,...st("fill:var(--overlay-strong)")},u)),t.main==="grid"?n(I,{children:[[0,1,2,3,4,5,6].map(u=>n("g",{children:Lt(244+u*46,86,22,6)},u)),[104,140,176,212].map(u=>n("rect",{x:238,y:u,width:316,height:1,...st("fill:var(--border)")},u)),[1,2,3,4,5,6].map(u=>n("rect",{x:238+u*45,y:98,width:1,height:146,...st("fill:var(--border)")},u)),n("rect",{x:286,y:146,width:40,height:24,rx:4,...st("fill:var(--overlay-medium)")}),n("rect",{x:376,y:182,width:40,height:18,rx:4,...st("fill:var(--overlay-medium)")})]}):t.main==="chat"?n(I,{children:[n("rect",{x:412,y:84,width:132,height:26,rx:10,...st("fill:var(--overlay-light)")}),Lt(252,128,260),Lt(252,144,230),Lt(252,160,150),n("rect",{x:240,y:212,width:304,height:34,rx:10,...st("fill:var(--bg-card);stroke:var(--border)")}),Lt(254,226,120),n("circle",{cx:528,cy:229,r:8,...st("fill:var(--overlay-strong)")})]}):n(I,{children:[n("rect",{x:252,y:86,width:120,height:12,rx:4,...st("fill:var(--overlay-strong)")}),[110,126,142,166,182,206,222].map((u,m)=>n("g",{children:Lt(252,u,[292,270,200,286,240,280,150][m])},u))]})]}),p=()=>n(I,{children:[[36,64,92,120,148,176].map((u,m)=>n("g",{children:[Xo(24,u+8,12,m===2&&a.has("nav")),m===2&&r.has("nav")?Ko(44,u+18,r.get("nav")):Lt(44,u+11,[64,52,58,70,46,60][m])]},u)),n("rect",{x:232,y:28,width:110,height:12,rx:4,...st("fill:var(--overlay-strong)")}),r.has("section-1")?Ko(234,82,r.get("section-1")):Lt(234,74,70),[0,1,2].map(u=>n("rect",{x:234+u*150,y:94,width:136,height:42,rx:8,...st(u===0?"fill:var(--bg-card);stroke:var(--accent)":"fill:var(--bg-card);stroke:var(--border)")},u)),r.has("section-2")?Ko(234,182,r.get("section-2")):Lt(234,174,70),[0,1,2,3,4,5,6].map(u=>n("circle",{cx:246+u*30,cy:210,r:10,...st(u===0?"fill:var(--accent)":"fill:var(--overlay-strong)")},u)),[0,1,2,3,4,5,6].map(u=>n("circle",{cx:246+u*30,cy:236,r:8,...st("fill:var(--overlay-medium)")},`b${u}`))]});return n("figure",{class:"fxg-figure",children:[n("svg",{class:"fxg-figure-svg",viewBox:"0 0 724 268",role:"img","aria-label":`${e.t("guide.figure")}: ${l.map((u,m)=>`${m+1} ${u}`).join("; ")}`,children:[n("rect",{x:.5,y:.5,width:723,height:267,rx:10,...st("fill:var(--sidebar-bg, var(--bg));stroke:var(--border)")}),t.layout==="settings"?n("rect",{x:200,y:1,width:523,height:266,...st("fill:var(--bg)")}):n("rect",{x:216,y:8,width:352,height:252,rx:8,...st("fill:var(--bg)")}),i.map((u,m)=>n("rect",{x:u.x-4,y:u.y-4,width:u.w+8,height:u.h+8,rx:7,...st("fill:var(--accent-wash);stroke:var(--accent);stroke-width:2")},`r${m}`)),t.layout==="settings"?p():n(I,{children:[c(),d()]}),s.map(u=>n("g",{children:[n("circle",{cx:u.x,cy:u.y,r:10,...st("fill:var(--accent)")}),n("text",{x:u.x,y:u.y+4,"text-anchor":"middle",...st("fill:var(--on-accent);font:600 12px var(--font-ui)"),children:u.n})]},u.n))]}),n("figcaption",{class:"fxg-figure-cap",children:l.map((u,m)=>n("span",{children:[n("b",{children:m+1}),u]},m))})]})}var Yp=`
1288
1293
  .fxg { color: var(--text); font-size: var(--ui-font-body); line-height: var(--ui-line-body); height: 100%; min-height: 0; display: flex; flex-direction: column; }
1289
1294
  .fxg button { font: inherit; }
1290
1295
  .fxg .fx-link { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
@@ -1351,16 +1356,16 @@ ${R}`},Q=await e.inbox.post(X);if(!Q||d)return;let H=Nt("lastLetter",null);jt("l
1351
1356
  .fxg-letter .fxg-letter-chapter { display: grid; gap: 4px; }
1352
1357
  .fxg-letter .fxg-letter-title { padding: 0; border: 0; background: transparent; color: var(--text); font-weight: 600; text-align: left; cursor: pointer; }
1353
1358
  .fxg-letter > .btn { align-self: flex-start; }
1354
- `;function Ba(e){let[,t]=C(0);W(()=>{let o=e.subscribe(()=>t(r=>r+1));return t(r=>r+1),o},[e])}function $a(e){return n("div",{class:`fxg fxg-${e.kind}`,lang:e.g.locale()==="zh"?"zh-CN":"en",children:[n("style",{children:Rp}),e.children]})}var Ua=({on:e})=>n("span",{class:`fxg-check${e?" is-on":""}`,"aria-hidden":"true",children:e&&n("svg",{viewBox:"0 0 16 16",width:"10",height:"10",children:n("path",{d:"M3.5 8.5l3 3 6-7",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})})});function Dp({g:e,task:t,chapter:o}){let r=e.env(),a=Ln(t,r),i=!!t.desktopOnly&&!r.desktop;return n("li",{class:`fxg-task${a?" is-done":""}${!a&&e.spotTask()===t.id?" is-current":""}`,"data-task":t.id,children:[n(Ua,{on:a}),n("span",{class:"fxg-task-title",children:e.title(t)}),a?n("span",{class:"fxg-task-state",children:e.t("guide.taskDone")}):i?n("span",{class:"fxg-task-state",children:e.t("guide.desktopOnly")}):t.go?n("button",{type:"button",class:"btn ghost sm fxg-go",onClick:()=>void e.go(t,o),children:e.t("guide.go")}):null]})}function Hs({g:e,chapter:t}){return n("ul",{class:"fxg-tasks",children:t.tasks.map(o=>n(Dp,{g:e,task:o,chapter:t},o.id))})}function Mp({g:e,value:t,label:o}){let r=oe(null),a=oe(null);return W(()=>{if(!(!r.current||!e.ctx.ui?.mountMarkdownEditor))return a.current=e.ctx.ui.mountMarkdownEditor(r.current,{value:t,label:o,readOnly:!0,modes:!1}),()=>{a.current?.dispose(),a.current=null}},[e]),W(()=>{a.current?.update({value:t})},[t]),n("div",{class:"fxg-doc",ref:r})}function Oy({g:e}){let[t,o]=C(!1),r=oe(null);W(()=>{if(!t)return;let s=c=>{r.current?.contains(c.target)||o(!1)},l=c=>{c.key==="Escape"&&o(!1)};return document.addEventListener("pointerdown",s,!0),document.addEventListener("keydown",l),()=>{document.removeEventListener("pointerdown",s,!0),document.removeEventListener("keydown",l)}},[t]);let a=e.env(),i=(s,l,c)=>n("button",{type:"button",role:c===void 0?"menuitem":"menuitemcheckbox","aria-checked":c,class:"fxg-menu-item",onClick:()=>{o(!1),l()},children:[n("span",{children:s}),c&&n(Ua,{on:!0})]});return n("div",{class:"fxg-more",ref:r,children:[n("button",{type:"button",class:"fxg-icon-btn","aria-label":e.t("guide.more"),"aria-haspopup":"menu","aria-expanded":t,onClick:()=>o(!t),children:"\xB7\xB7\xB7"}),t&&n("div",{class:"fxg-menu",role:"menu",children:[i(a.unlockAll?e.t("guide.relock"):e.t("guide.unlockAll"),()=>e.setUnlockAll(!a.unlockAll)),i(e.t("guide.reminders"),()=>e.setReminders(!e.reminders()),e.reminders()),e.ctx.app?.spotlight&&i(e.t("guide.spotlight"),()=>e.setSpotlight(!e.spotlightOn()),e.spotlightOn()),e.ctx.app?.runCommand&&i(e.t("guide.openAchievements"),()=>{e.ctx.app?.runCommand?.("open-achievements")})]})]})}function Np({g:e}){Ba(e),W(()=>{e.ctx.achievements?.track("guide.open")},[e]);let t=e.selected(),o=e.env(),r=Vo(t,o),{intro:a,body:i}=e.markdown(t),s=r!=="locked",l=mn[mn.findIndex(c=>c.id===t.level)-1];return n($a,{g:e,kind:"reader",children:[n("div",{class:"fxg-bar",children:[n("span",{class:"fx-tag fxg-ro",children:e.t("guide.readOnly")}),n(Oy,{g:e})]}),n("div",{class:"fxg-scroll",children:n("div",{class:"fxg-col",children:[n(Mp,{g:e,value:`# ${e.title(t)}
1359
+ `;function Wa(e){let[,t]=S(0);$(()=>{let o=e.subscribe(()=>t(r=>r+1));return t(r=>r+1),o},[e])}function Va(e){return n("div",{class:`fxg fxg-${e.kind}`,lang:e.g.locale()==="zh"?"zh-CN":"en",children:[n("style",{children:Yp}),e.children]})}var ja=({on:e})=>n("span",{class:`fxg-check${e?" is-on":""}`,"aria-hidden":"true",children:e&&n("svg",{viewBox:"0 0 16 16",width:"10",height:"10",children:n("path",{d:"M3.5 8.5l3 3 6-7",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})})});function ef({g:e,task:t,chapter:o}){let r=e.env(),a=Dn(t,r),i=!!t.desktopOnly&&!r.desktop;return n("li",{class:`fxg-task${a?" is-done":""}${!a&&e.spotTask()===t.id?" is-current":""}`,"data-task":t.id,children:[n(ja,{on:a}),n("span",{class:"fxg-task-title",children:e.title(t)}),a?n("span",{class:"fxg-task-state",children:e.t("guide.taskDone")}):i?n("span",{class:"fxg-task-state",children:e.t("guide.desktopOnly")}):t.go?n("button",{type:"button",class:"btn ghost sm fxg-go",onClick:()=>void e.go(t,o),children:e.t("guide.go")}):null]})}function js({g:e,chapter:t}){return n("ul",{class:"fxg-tasks",children:t.tasks.map(o=>n(ef,{g:e,task:o,chapter:t},o.id))})}function Zp({g:e,value:t,label:o}){let r=K(null),a=K(null);return $(()=>{if(!(!r.current||!e.ctx.ui?.mountMarkdownEditor))return a.current=e.ctx.ui.mountMarkdownEditor(r.current,{value:t,label:o,readOnly:!0,modes:!1}),()=>{a.current?.dispose(),a.current=null}},[e]),$(()=>{a.current?.update({value:t})},[t]),n("div",{class:"fxg-doc",ref:r})}function vx({g:e}){let[t,o]=S(!1),r=K(null);$(()=>{if(!t)return;let s=c=>{r.current?.contains(c.target)||o(!1)},l=c=>{c.key==="Escape"&&o(!1)};return document.addEventListener("pointerdown",s,!0),document.addEventListener("keydown",l),()=>{document.removeEventListener("pointerdown",s,!0),document.removeEventListener("keydown",l)}},[t]);let a=e.env(),i=(s,l,c)=>n("button",{type:"button",role:c===void 0?"menuitem":"menuitemcheckbox","aria-checked":c,class:"fxg-menu-item",onClick:()=>{o(!1),l()},children:[n("span",{children:s}),c&&n(ja,{on:!0})]});return n("div",{class:"fxg-more",ref:r,children:[n("button",{type:"button",class:"fxg-icon-btn","aria-label":e.t("guide.more"),"aria-haspopup":"menu","aria-expanded":t,onClick:()=>o(!t),children:"\xB7\xB7\xB7"}),t&&n("div",{class:"fxg-menu",role:"menu",children:[i(a.unlockAll?e.t("guide.relock"):e.t("guide.unlockAll"),()=>e.setUnlockAll(!a.unlockAll)),i(e.t("guide.reminders"),()=>e.setReminders(!e.reminders()),e.reminders()),e.ctx.app?.spotlight&&i(e.t("guide.spotlight"),()=>e.setSpotlight(!e.spotlightOn()),e.spotlightOn()),e.ctx.app?.runCommand&&i(e.t("guide.openAchievements"),()=>{e.ctx.app?.runCommand?.("open-achievements")})]})]})}function tf({g:e}){Wa(e),$(()=>{e.ctx.achievements?.track("guide.open")},[e]);let t=e.selected(),o=e.env(),r=Jo(t,o),{intro:a,body:i}=e.markdown(t),s=r!=="locked",l=gn[gn.findIndex(c=>c.id===t.level)-1];return n(Va,{g:e,kind:"reader",children:[n("div",{class:"fxg-bar",children:[n("span",{class:"fx-tag fxg-ro",children:e.t("guide.readOnly")}),n(vx,{g:e})]}),n("div",{class:"fxg-scroll",children:n("div",{class:"fxg-col",children:[n(Zp,{g:e,value:`# ${e.title(t)}
1355
1360
 
1356
- ${a}`,label:e.title(t)}),s&&t.figure&&n(Ip,{g:e,figure:t.figure}),s&&i&&n(Mp,{g:e,value:i,label:e.title(t)}),r==="locked"&&l?n("div",{class:"fxg-lock","data-locked":!0,children:[n("div",{class:"fxg-lock-title",children:e.t("guide.locked.title")}),n("p",{children:e.t("guide.locked.body",{level:e.levelName(l.id)})}),n("p",{class:"fxg-muted",children:e.t("guide.locked.left")}),n("ul",{class:"fxg-tasks",children:_n(l.id).flatMap(c=>Cr(c.tasks,o).filter(d=>!Ln(d,o)).map(d=>n(Dp,{g:e,task:d,chapter:c},d.id)))}),n("p",{class:"fxg-muted",children:e.t("guide.locked.hint")})]}):n("section",{class:"fxg-section","data-guide-tasks":!0,children:[n("h2",{children:e.t("guide.tasks")}),n(Hs,{g:e,chapter:t})]})]})})]})}function Fy({done:e,total:t}){return n("div",{class:"fxg-bar-track",role:"progressbar","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":e,children:n("i",{style:{width:`${t?Math.round(e/t*100):0}%`}})})}function Lp({g:e,c:t}){let o=Vo(t,e.env());return n("button",{type:"button",class:`fxg-line is-${o}${e.selected().id===t.id?" is-active":""}`,onClick:()=>{e.select(t.id),e.ctx.openView?.(An.reader)},children:[n(Ua,{on:o==="done"}),n("span",{children:e.title(t)}),o==="locked"&&n("span",{class:"fxg-task-state",children:e.t("guide.lockedHint")})]})}function By({g:e}){let t=e.env(),o=Fs(t);if(!o)return n("div",{class:"fxg-pane",children:[n("div",{class:"fxg-h",children:e.t("guide.allDone")}),n("p",{class:"fxg-muted",children:e.t("guide.allDoneBody")}),n("div",{class:"fxg-sub",children:e.t("guide.review")}),Fa(e).map(({level:s,chapters:l})=>n("button",{type:"button",class:"fxg-line",onClick:()=>{e.select(l[0].id),e.ctx.openView?.(An.reader)},children:[n(Ua,{on:!0}),n("span",{children:e.levelName(s)})]},s))]});let{done:r,total:a}=_p(o,t),i=mn[mn.findIndex(s=>s.id===o)+1];return n("div",{class:"fxg-pane",children:[n("div",{class:"fxg-h",children:e.levelName(o)}),n("div",{class:"fxg-muted",children:e.t("guide.levelProgress",{done:r,total:a})}),n(Fy,{done:r,total:a}),n("div",{class:"fxg-lines",children:_n(o).map(s=>n(Lp,{g:e,c:s},s.id))}),i&&n(M,{children:[n("div",{class:"fxg-sub",children:e.t("guide.next")}),n("div",{class:"fxg-lines",children:_n(i.id).map(s=>n(Lp,{g:e,c:s},s.id))})]})]})}function Op(e,t){let{intro:o,body:r}=e.markdown(t);return`# ${e.title(t)}
1361
+ ${a}`,label:e.title(t)}),s&&t.figure&&n(Kp,{g:e,figure:t.figure}),s&&i&&n(Zp,{g:e,value:i,label:e.title(t)}),r==="locked"&&l?n("div",{class:"fxg-lock","data-locked":!0,children:[n("div",{class:"fxg-lock-title",children:e.t("guide.locked.title")}),n("p",{children:e.t("guide.locked.body",{level:e.levelName(l.id)})}),n("p",{class:"fxg-muted",children:e.t("guide.locked.left")}),n("ul",{class:"fxg-tasks",children:An(l.id).flatMap(c=>Er(c.tasks,o).filter(d=>!Dn(d,o)).map(d=>n(ef,{g:e,task:d,chapter:c},d.id)))}),n("p",{class:"fxg-muted",children:e.t("guide.locked.hint")})]}):n("section",{class:"fxg-section","data-guide-tasks":!0,children:[n("h2",{children:e.t("guide.tasks")}),n(js,{g:e,chapter:t})]})]})})]})}function yx({done:e,total:t}){return n("div",{class:"fxg-bar-track",role:"progressbar","aria-valuemin":0,"aria-valuemax":t,"aria-valuenow":e,children:n("i",{style:{width:`${t?Math.round(e/t*100):0}%`}})})}function Qp({g:e,c:t}){let o=Jo(t,e.env());return n("button",{type:"button",class:`fxg-line is-${o}${e.selected().id===t.id?" is-active":""}`,onClick:()=>{e.select(t.id),e.ctx.openView?.(Tn.reader)},children:[n(ja,{on:o==="done"}),n("span",{children:e.title(t)}),o==="locked"&&n("span",{class:"fxg-task-state",children:e.t("guide.lockedHint")})]})}function xx({g:e}){let t=e.env(),o=Hs(t);if(!o)return n("div",{class:"fxg-pane",children:[n("div",{class:"fxg-h",children:e.t("guide.allDone")}),n("p",{class:"fxg-muted",children:e.t("guide.allDoneBody")}),n("div",{class:"fxg-sub",children:e.t("guide.review")}),qa(e).map(({level:s,chapters:l})=>n("button",{type:"button",class:"fxg-line",onClick:()=>{e.select(l[0].id),e.ctx.openView?.(Tn.reader)},children:[n(ja,{on:!0}),n("span",{children:e.levelName(s)})]},s))]});let{done:r,total:a}=Vp(o,t),i=gn[gn.findIndex(s=>s.id===o)+1];return n("div",{class:"fxg-pane",children:[n("div",{class:"fxg-h",children:e.levelName(o)}),n("div",{class:"fxg-muted",children:e.t("guide.levelProgress",{done:r,total:a})}),n(yx,{done:r,total:a}),n("div",{class:"fxg-lines",children:An(o).map(s=>n(Qp,{g:e,c:s},s.id))}),i&&n(I,{children:[n("div",{class:"fxg-sub",children:e.t("guide.next")}),n("div",{class:"fxg-lines",children:An(i.id).map(s=>n(Qp,{g:e,c:s},s.id))})]})]})}function nf(e,t){let{intro:o,body:r}=e.markdown(t);return`# ${e.title(t)}
1357
1362
 
1358
1363
  ${o}
1359
1364
 
1360
- ${r}`.trim()}function $y({g:e}){let t=e.selected(),o=e.ctx.tangu?.mountChat;return o?n(Uy,{g:e,c:t,mount:o},`${t.id}:${e.locale()}`):n(Hy,{g:e,c:t})}function Uy({g:e,c:t,mount:o}){let r=oe(null);return W(()=>{let a=o(r.current,{title:e.t("guide.ask.chatTitle")});return a.quote(Op(e,t)),()=>a.dispose()},[]),n("div",{class:"fxg-chat",ref:r})}function Hy({g:e,c:t}){let[o,r]=C(""),[a,i]=C(""),s=e.ctx.tangu?.startChat,l=async()=>{if(!s)return;let c=`${e.t("guide.ask.prompt",{chapter:e.title(t),question:o.trim()})}
1365
+ ${r}`.trim()}function kx({g:e}){let t=e.selected(),o=e.ctx.tangu?.mountChat;return o?n(wx,{g:e,c:t,mount:o},`${t.id}:${e.locale()}`):n(zx,{g:e,c:t})}function wx({g:e,c:t,mount:o}){let r=K(null);return $(()=>{let a=o(r.current,{title:e.t("guide.ask.chatTitle")});return a.quote(nf(e,t)),()=>a.dispose()},[]),n("div",{class:"fxg-chat",ref:r})}function zx({g:e,c:t}){let[o,r]=S(""),[a,i]=S(""),s=e.ctx.tangu?.startChat,l=async()=>{if(!s)return;let c=`${e.t("guide.ask.prompt",{chapter:e.title(t),question:o.trim()})}
1361
1366
 
1362
1367
  ---
1363
- ${Op(e,t)}`,d=await s({prompt:c,send:!1});d?.ok?r(""):i(d?.error||e.t("guide.ask.unavailable"))};return n("div",{class:"fxg-pane",children:[n("p",{class:"fxg-muted",children:e.t("guide.ask.hint",{chapter:e.title(t)})}),n("textarea",{class:"fxg-input",rows:4,value:o,placeholder:e.t("guide.ask.placeholder"),onInput:c=>r(c.target.value)}),n("button",{type:"button",class:"btn sm",disabled:!s,onClick:()=>void l(),children:e.t("guide.ask.send")}),(!s||a)&&n("p",{class:"fxg-muted",children:a||e.t("guide.ask.unavailable")})]})}function Fp({g:e}){Ba(e);let[t,o]=C("progress");return n($a,{g:e,kind:"side",children:[n("div",{class:"fxg-tabs",role:"tablist",children:["progress","ask"].map(r=>n("button",{type:"button",role:"tab","aria-selected":t===r,class:t===r?"is-on":"",onClick:()=>o(r),children:e.t(r==="progress"?"guide.progress":"guide.askTangu")},r))}),t==="progress"?n(By,{g:e}):n($y,{g:e})]})}function Bp({g:e}){Ba(e);let t=e.companionChapter(),o=Vo(t,e.env())==="done",r=oe(o);return W(()=>{if(o&&!r.current){let a=window.setTimeout(()=>e.ctx.closeView?.(An.companion),1500);return()=>window.clearTimeout(a)}r.current=o},[o]),n($a,{g:e,kind:"companion",children:n("div",{class:"fxg-pane",children:[n("div",{class:"fxg-companion-head",children:[n("span",{class:"fxg-sub",children:e.t("guide.title")}),e.ctx.closeView&&n("button",{type:"button",class:"fxg-icon-btn","aria-label":e.t("guide.companion.close"),onClick:()=>e.ctx.closeView?.(An.companion),children:"\xD7"})]}),n("div",{class:"fxg-h",children:e.title(t)}),n("div",{class:"fxg-sub",children:e.t("guide.tasks")}),n(Hs,{g:e,chapter:t}),n("button",{type:"button",class:"fx-link fxg-back",onClick:()=>void e.openGuide(t.id),children:e.t("guide.companion.back")})]})})}function $p({g:e,letter:t}){Ba(e);let o=t?t.kind==="level"?t.level:"new":null,r=o&&(o==="new"||Oa(o,e.env()))?_n(o):[];return n($a,{g:e,kind:"letter",children:[r.map(a=>n("div",{class:"fxg-letter-chapter",children:[n("button",{type:"button",class:"fxg-letter-title",onClick:()=>void e.openGuide(a.id),children:e.title(a)}),n(Hs,{g:e,chapter:a})]},a.id)),n("button",{type:"button",class:"btn sm",onClick:()=>void e.openGuide(r[0]?.id??to("welcome")?.id),children:e.t("guide.letter.open")})]})}function qy(e){return!!e&&typeof e.registerView=="function"&&typeof e.registerListSource=="function"&&typeof e.openView=="function"&&typeof e.achievements?.count=="function"&&typeof e.achievements.subscribe=="function"&&typeof e.app?.openSpace=="function"&&typeof e.ui?.mountMarkdownEditor=="function"}function Up(e,t=window){if(!qy(e)||t.tangu?.unitPage)return null;let o=t.tangu,r=Ep(e,{desktop:typeof o?.appVersion=="function"&&!o.mobile,appVersion:typeof o?.appVersion=="function"?o.appVersion().catch(()=>null):Promise.resolve(null)}),a=i=>s=>(Oe(n(i,{g:r}),s),()=>{Oe(null,s)});return e.registerView({id:An.reader,title:r.t("guide.title"),icon:"page",workspaceSource:Us,mount:a(Np)}),e.registerView({id:An.side,title:r.t("guide.progress"),icon:"list-view",mount:a(Fp)}),e.registerView({id:An.companion,title:r.t("guide.title"),icon:"todo",mount:a(Bp)}),e.registerListSource({id:Us,title:r.t("guide.title"),search:!0,items:i=>{let s=r.env(),l=i?.query?.trim().toLowerCase()??"",c=r.justUnlocked();return Fa(r).flatMap(({level:d,chapters:p})=>p.map(u=>{let f=Vo(u,s);return{key:u.id,title:r.title(u),group:r.levelName(d),icon:f==="done"?"circle-check":f==="locked"?"lock":"circle",hint:d===c&&f!=="locked"?r.t("guide.justUnlocked"):void 0}})).filter(d=>!l||d.title.toLowerCase().includes(l))},subscribe:i=>r.subscribe(i),activeKey:()=>r.selected().id,open:i=>{r.select(i.key),e.openView(An.reader)}}),e.registerCommand?.({id:"open-guide",title:()=>r.t("guide.cmd.open"),keywords:"guide manual help tutorial levels \u4F7F\u7528\u6307\u5357 \u8BF4\u660E\u4E66 \u6559\u7A0B \u5E2E\u52A9 \u7B49\u7EA7 \u4EFB\u52A1",run:()=>{r.openGuide()}}),e.inbox?.registerCard({sender:()=>r.t("guide.title"),mount(i,s){return Oe(n($p,{g:r,letter:r.letter(s.id)}),i),()=>{Oe(null,i)}}}),r}var Wy=["uploads","ama","sync","agents","profile","apps","plugins","exports","market"],Ar={uploads:"penzor.uploads",ama:"penzor.ledger.ama",sync:"penzor.ledger.sync",agents:"penzor.source.agents",profile:"penzor.source.profile",apps:"penzor.ledger.apps",plugins:"penzor.source.plugins",exports:"penzor.ledger.exports",market:"penzor.source.market"},qs=e=>e==="uploads"?"app:penzor":e==="exports"?"exports":`source:${e}`,Ws=e=>{let t=e?.sources.find(o=>o.id==="market");return t?.status==="ready"&&((t.fileCount??0)>0||(t.liveBytes??0)>0)},no=e=>Number.isFinite(Number(e))?Number(e):0,Tn="penzor";var qp=500;async function Vy(e,t){let o=Math.min(20,no(t.totalPages));if(o<=1)return t.files;let r=await Promise.all(Array.from({length:o-1},(a,i)=>e(`/exports/list?pageSize=${qp}&sortBy=date&sortOrder=desc&page=${i+2}`)));return[...t.files,...r.flatMap(a=>a.ok&&Array.isArray(a.data?.files)?a.data.files:[])]}async function Wp(e){let[t,o,r,a,i,s,l,c,d]=await Promise.all([e("/remotesync/vaults"),e("/amadeus/vaults"),e("/storage/quota"),e("/storage/files-by-app"),e(`/exports/list?pageSize=${qp}&sortBy=date&sortOrder=desc`),e("/trash?all=1"),e("/storage/ledger"),e("/storage/source-trash/ama"),e("/remotesync/content/devices")]),u=[t,o,r,a,i,s].every(m=>!m.ok&&m.status===401);return{snap:{contentDevices:d.ok&&Array.isArray(d.data?.devices)?d.data.devices:null,amaTrash:c.ok&&Array.isArray(c.data?.entries)?c.data.entries:null,ledger:l.ok&&l.data?.schemaVersion===1?l.data:null,sync:t.ok&&Array.isArray(t.data?.vaults)?{...t.data,vaults:t.data.vaults.filter(m=>m.vault!=="forsion-content")}:null,ama:o.ok&&Array.isArray(o.data?.vaults)?o.data.vaults.filter(m=>(m.role??"owner")==="owner").map(m=>({id:m.id,name:m.name,sizeBytes:no(m.sizeBytes)})):null,apps:r.ok&&a.ok&&Array.isArray(a.data?.apps)?{used:no(r.data?.used),quota:no(r.data?.quota),apps:a.data.apps,largest:a.data.largest??[]}:null,exports:i.ok&&Array.isArray(i.data?.files)?{files:await Vy(e,i.data),total:no(i.data.total),totalBytes:no(i.data.totalBytes)}:null,trash:s.ok&&Array.isArray(s.data)?s.data:null,at:Date.now()},signedOut:u}}var jy={"ai-studio":"AI Studio","photo-studio":"Photo Studio",notebase:"Notebase",chat:"Forsion Chat",connect:"Forsion Connect","video-studio":"Video Studio",bluebird:"Bluebird",cnti:"CNTI"},Vs=e=>e?jy[e]??e.split(/[-_]/).filter(Boolean).map(t=>t[0].toUpperCase()+t.slice(1)).join(" "):"\u2014",zo=e=>e.kind==="content"?`content:${e.namespace}`:e.kind==="source"?`source:${e.source}`:e.kind==="sync"?`sync:${e.vault}`:e.kind==="ama"?`ama:${e.vaultId}`:e.kind==="app"?`app:${e.appId}`:e.kind==="overview"?"ov":e.kind,So=e=>e.kind==="overview"||e.kind==="sync-home";function Vp(e){if(e==="ov")return{kind:"overview"};if(e==="sync-home"||e==="exports"||e==="trash")return{kind:e};let t=e.indexOf(":"),o=t<0?e:e.slice(0,t),r=t<0?"":e.slice(t+1);return r?o==="source"&&Wy.includes(r)?{kind:"source",source:r}:o==="content"&&/^(default|device-[A-Za-z0-9_-]{1,64})$/.test(r)?{kind:"content",namespace:r}:o==="sync"?{kind:"sync",vault:r}:o==="ama"?{kind:"ama",vaultId:r}:o==="app"?{kind:"app",appId:r}:null:null}var js=(e,t)=>t?t.config.enabled||t.config.revision>0:!!e?.contentDevices?.length;function jp(e,t,o,r=null){let a=m=>Se(o,Ar[m]),i=m=>_r(m,o),s=m=>{let g=e?.ledger?.sources.find(h=>h.id===m);return g?.status==="ready"?g.liveBytes+g.trashBytes:null},l=m=>{let g=s(m);return g==null?"\u2014":`${e?.ledgerStale?"~ ":""}${i(g)}`},c=js(e,r),d=[{key:"drive-root",title:t.drive,kind:"folder",icon:t.driveIcon},{key:"ov",title:t.overview,parent:"drive-root",icon:"layout"},{key:qs("uploads"),title:t.files,parent:"drive-root",icon:"folder",hint:l("uploads")}];if(Ws(e?.ledger)&&d.push({key:qs("market"),title:a("market"),parent:"drive-root",icon:"boxes",hint:l("market")}),c&&e?.contentDevices){d.push({key:"synced",title:t.synced,kind:"folder",icon:"cloud"},{key:"content:default",title:t.all,parent:"synced",icon:"cloud"});let m=r?.deviceId;m&&d.push({key:`content:device-${m}`,title:t.thisBackup,parent:"synced",icon:"lock"});for(let g of e.contentDevices.filter(h=>h.id!==m))d.push({key:`content:device-${g.id}`,title:g.name||`Forsion-${g.id.slice(0,8)}`,parent:"synced",icon:"link"})}let p=["ama","apps","plugins","exports",...c?[]:["agents","profile"]],u=p.reduce((m,g)=>m==null||s(g)==null?null:m+s(g),0);d.push({key:"by-app",title:t.byApp,kind:"folder",icon:"package",hint:u==null?"\u2014":i(u)});let f=(m,g,h=a(m))=>{let v=m==="ama"||m==="sync"||m==="apps",b=qs(m);if(d.push({key:v?b+":group":b,parent:g,title:h,icon:m==="sync"?"clock":"folder",...v?{kind:"folder"}:{},hint:l(m)}),v&&d.push({key:`source:${m}`,parent:b+":group",title:t.overview,icon:"layout"}),m==="sync")for(let x of e?.sync?.vaults??[])d.push({key:`sync:${x.vault}`,parent:b+":group",title:x.vault,icon:"database",hint:i(x.bytes)});if(m==="ama")for(let x of e?.ama??[])d.push({key:`ama:${x.id}`,parent:b+":group",title:x.name,icon:"page",hint:i(x.sizeBytes)});if(m==="apps")for(let x of e?.apps?.apps.filter(w=>w.appId!==Tn&&w.files>0)??[])d.push({key:`app:${x.appId}`,parent:b+":group",title:Vs(x.appId),icon:"archive",hint:i(x.bytes)})};for(let m of p)f(m,"by-app");return f("sync","",c?t.legacy:a("sync")),d.push({key:"trash",title:t.trash,icon:"trash",hint:e?.trash?t.items(Gs(e.trash).length):"\u2014"}),d.map(m=>m.parent===""?(({parent:g,...h})=>h)(m):m)}function Gs(e){let t=new Map(e.map(a=>[a.id,a])),o=a=>{let i=a;for(let s=0;s<64&&i.parentId&&t.has(i.parentId);s++)i=t.get(i.parentId);return i},r=new Map;for(let a of e){let i=o(a),s=r.get(i.id)??{inner:0,innerBytes:0};i.id!==a.id&&s.inner++,s.innerBytes+=no(a.fileSize),r.set(i.id,s)}return e.filter(a=>!(a.parentId&&t.has(a.parentId))).map(a=>({...a,...r.get(a.id)}))}function Js(e,t){let o=t?`${t}/`:"",r=new Map,a=[];for(let i of e){if(o&&!i.path.startsWith(o))continue;let s=i.path.slice(o.length),l=s.indexOf("/");if(l<0){a.push({key:i.path,name:s,dir:!1,size:i.size,mtime:i.mtime,col4:i.who??null,ref:i.ref});continue}let c=s.slice(0,l),d=o+c,p=r.get(d)??{key:d,name:c,dir:!0,size:0,mtime:null,count:0};p.size+=i.size,p.count=(p.count??0)+1,i.mtime!=null&&(p.mtime==null||i.mtime>p.mtime)&&(p.mtime=i.mtime),r.set(d,p)}return[...Ha([...r.values()]),...Ha(a)]}var Ha=e=>e.sort((t,o)=>(o.mtime??-1)-(t.mtime??-1)||t.name.localeCompare(o.name)),Gp=e=>[...Ha(e.filter(t=>t.dir)),...Ha(e.filter(t=>!t.dir))];function _r(e,t){let o=Math.max(0,no(e));if(o<1024)return`${o} B`;if(o<1024*1024)return`${Math.round(o/1024)} KB`;if(o<1024**3){let r=o/1048576;return`${r<100?Number(r.toFixed(1)):Math.round(r)} MB`}return`${Number((o/1024**3).toFixed(2))} GB`}function Xs(e,t,o){let r=_r(e,o),a=_r(t,o),i=a.slice(a.indexOf(" "));return`${r.endsWith(i)?r.slice(0,-i.length):r} / ${a}`}var Gy=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Hp=e=>String(e).padStart(2,"0");function en(e,t,o=Date.now()){if(e==null||!Number.isFinite(e))return"\u2014";let r=new Date(e),a=new Date(o);a.setHours(0,0,0,0);let i=new Date(r);i.setHours(0,0,0,0);let s=Math.round((a.getTime()-i.getTime())/864e5),l=`${Hp(r.getHours())}:${Hp(r.getMinutes())}`;if(s===0)return t==="zh"?`\u4ECA\u5929 ${l}`:`Today ${l}`;if(s===1)return t==="zh"?`\u6628\u5929 ${l}`:`Yesterday ${l}`;let c=r.getFullYear()===a.getFullYear();return t==="zh"?`${c?"":`${r.getFullYear()} \u5E74 `}${r.getMonth()+1} \u6708 ${r.getDate()} \u65E5`:`${Gy[r.getMonth()]} ${r.getDate()}${c?"":`, ${r.getFullYear()}`}`}function Co(e){if(e==null||e==="")return null;if(typeof e=="number")return e<1e12?e*1e3:e;let t=Number(e);if(Number.isFinite(t))return t<1e12?t*1e3:t;let o=Date.parse(String(e));return Number.isNaN(o)?null:o}var qa=e=>[e.notes.on&&!e.notes.pending,e.agents.on,e.plugins.on].filter(Boolean).length;function Tr(e){let t=e.notes.last;return!!t&&t.ok===!1&&!(t.errors.length>0&&t.errors.every(o=>o.includes("already-running")))}var Wa=e=>!!e&&e.signedIn&&(!!e.notes.pending||e.notes.on&&Tr(e)),Jy=e=>/"code"\s*:\s*"QUOTA"/.test(e),Jp=(e,t)=>e.notes.on&&!e.notes.pending&&e.notes.backend==="penzor"&&(t>0&&(e.notes.localBytes??0)>t||!!e.notes.last?.errors.some(Jy));function _o(e){if(!e?.notes.running)return null;let t=e.notes.progress;return t&&t.total>0?Math.min(1,Math.max(0,t.done/t.total)):0}function Xp(e,t){if(!e||!e.signedIn)return;let o=_o(e);if(o!=null)return o>0?Se(t,"penzor.sync.running",{pct:Math.round(o*100)}):Se(t,"penzor.sync.runningPlain");if(e.notes.pending)return Se(t,"penzor.sync.waiting");let r=qa(e);return r?Se(t,"penzor.sync.onN",{n:r}):Se(t,"penzor.sync.allOff")}var Er=e=>e.jobs.filter(t=>t.state==="failed"&&!e.jobs.some(o=>o.path===t.path&&o.at>t.at&&o.state==="done"));function En(e){if(!e.config.enabled)return{kind:"off"};if(e.paused)return{kind:"paused"};let t=e.jobs.filter(a=>a.state==="queued"||a.state==="active");if(t.length){let a=t.reduce((s,l)=>s+(l.size??0),0),i=t.reduce((s,l)=>s+l.done,0);return{kind:"run",pct:a>0?Math.min(99,Math.round(i/a*100)):0}}if(e.phase==="scanning"||e.phase==="syncing")return{kind:"scan"};let o=Er(e).length+(e.error?1:0);if(o)return{kind:"warn",n:o};let r=e.jobs.filter(a=>a.state==="done").map(a=>a.finishedAt??a.at);return{kind:"ok",at:r.length?Math.max(...r):null}}function Kp(e,t){return e.kind==="off"?Se(t,"penzor.cs.statusOff"):e.kind==="paused"?Se(t,"penzor.cs.statusPaused"):e.kind==="run"?`${e.pct}%`:e.kind==="scan"?Se(t,"penzor.sync.runningPlain"):e.kind==="warn"?Se(t,"penzor.cs.statusWarn",{n:e.n}):Se(t,"penzor.cs.statusOk")}function Yp(e,t){let o=qa(e);return e.notes.pending?Se(t,"penzor.sync.badgeWaiting",{n:o}):o?Se(t,"penzor.sync.onN",{n:o}):Se(t,"penzor.sync.allOff")}function Ks(e,t){let o=Math.max(0,Math.round(e.intervalMin)),r=o?o%60===0?Se(t,"penzor.sync.everyHours",{n:o/60}):Se(t,"penzor.sync.every",{n:o}):Se(t,"penzor.sync.manual");return e.syncOnStart?`${r} \xB7 ${Se(t,"penzor.sync.onStart")}`:r}function Pn(e,t,o=Date.now()){if(e==null||!Number.isFinite(e))return"\u2014";let r=Math.max(0,o-e);return r<6e4?Se(t,"penzor.justNow"):r<36e5?Se(t,"penzor.sync.minAgo",{n:Math.floor(r/6e4)}):r<6*36e5?Se(t,"penzor.sync.hoursAgo",{n:Math.floor(r/36e5)}):en(e,t,o)}function Va(e,t=!1){return t?"folder":/\.(png|jpe?g|gif|webp|heic|dng|svg|bmp|tiff?)$/i.test(e)?"image":/\.(md|txt|pdf|docx?|rtf)$/i.test(e)?"page":/\.db$/i.test(e)?"database":"attachment"}function Qp(e,t){let o=null;for(let r of t)(!r.source||e===r.source||e.startsWith(r.source+"/"))&&(!o||r.source.length>o.source.length)&&(o=r);return o}var Gt={get:"penzor:sync:get",preview:"penzor:sync:preview",apply:"penzor:sync:apply",run:"penzor:sync:run",pause:"penzor:sync:pause",retry:"penzor:sync:retry",rename:"penzor:sync:rename",setup:"penzor:sync:setup",archiveSeen:"penzor:sync:archiveSeen"};var Zp=e=>String(e??"").normalize("NFC").trim().replace(/\s+/g," ").toLowerCase(),Ys=(e,t,o)=>{let r=Zp(e);return r?/[\[\]]/.test(e)||e.trim().length>64?"invalid":r==="macos"||r==="windows"||r==="linux"?"reserved":t.some(a=>a.id!==o&&Zp(a.name)===r)?"taken":null:null};var vn="forsion-penzor",Dn={main:"penzor",info:"penzor-info"},Zs="penzor-places",Qs="forsion-extend.penzor.ready",ef="forsion-extend.penzor.focus",ja=e=>e.state==="active"||e.state==="queued",Jo=e=>e.ok?"":e.detail||e.code||e.transport||(e.status?`HTTP ${e.status}`:"offline"),Xy=e=>e.slice(e.lastIndexOf("/")+1);function tf(e,t={}){let o=t.api??q,r=new Set,a=()=>{for(let k of[...r])try{k()}catch(I){console.error("[penzor] listener failed",I)}},i=()=>De(e.getLocale?.()),s=(k,I)=>Se(i(),k,I),l=k=>_r(k,i()),c=k=>e.app?.notify?.(k),d=k=>c(s("penzor.toast.failed",{reason:typeof k=="string"?k:Jo(k)})),p="unknown",u=!1,f=null,m=null,g={kind:"overview"},h="",v=[],b=null,x=null,w=null,S="mtime",T="",F=null,B={kind:"view"},N=!1,j=null,_=null,L=0,$=0,P=0,K=t.device??null,z=new Map,A=new Set,R=null,X=null,Q=[],H=[],te="hidden",pe=0,Ue=!1,me=0,Ie=!1,Ze=null,be=!1,Qe=null,St=new Map,G=null,ge=!ee().mobile&&typeof e.app?.sync?.get=="function"?e.app.sync:null,ye=new Map,Me=new Set,he=!1,rt=!1,Ce=1e4,lt=4e3,st=k=>{let I=S==="size"?(D,re)=>re.size-D.size:S==="name"?(D,re)=>D.name.localeCompare(re.name):null;return I?[...k.filter(D=>D.dir).sort(I),...k.filter(D=>!D.dir).sort(I)]:Gp([...k])};async function Jt(){let k=++L,I=g;if(x=null,I.kind==="overview"||I.kind==="sync-home"){b=null;return}if(I.kind==="exports"){b=(m?.exports?.files??[]).map(Z=>({key:Z.fileId,name:Z.fileName,dir:!1,size:Z.size,mtime:Co(Z.createdAt),col4:ie(Z.appId),ref:Z}));return}if(I.kind==="trash"){b=Gs(m?.trash??[]).map(Z=>({key:Z.id,name:Z.name,dir:Z.fileType==="directory",size:Z.fileType==="directory"?Z.innerBytes:Z.fileSize,mtime:Co(Z.deletedAt),col4:Z.parentName?`${ie(Z.appId)} / ${Z.parentName}`:ie(Z.appId),count:Z.fileType==="directory"?Z.inner:void 0,ref:Z}));return}if(b=null,a(),I.kind==="content"){let Z=await o(`/remotesync/content/${encodeURIComponent(I.namespace)}`);if(k!==L)return;if(!Z.ok){x=Jo(Z),a();return}if(Z.data.schemaVersion!==1||!Array.isArray(Z.data.nodes)){x=s("penzor.unreachable");return}let xe=Z.data.nodes.filter(Be=>!Be.deleted),Le=xe.filter(Be=>Be.kind==="file"&&Be.version).map(Be=>({path:Be.path,size:Be.size??0,mtime:Be.mtime??null,ref:Be}));z.set(zo(I),Le);let fe=Be=>{let Br=0,ao=null,Io=0;for(let Vn of Le)Vn.path.startsWith(Be+"/")&&(Br+=Vn.size,Io++,Vn.mtime!=null&&(ao==null||Vn.mtime>ao)&&(ao=Vn.mtime));return{size:Br,mtime:ao,count:Io}};b=xe.filter(Be=>(Be.path.includes("/")?Be.path.slice(0,Be.path.lastIndexOf("/")):"")===h).map(Be=>Be.kind==="folder"?{key:Be.path,name:Be.name,dir:!0,...fe(Be.path),ref:Be}:{key:Be.path,name:Be.name,dir:!1,size:Be.size??0,mtime:Be.mtime??null,ref:Be});return}if(I.kind==="sync"||I.kind==="ama"){let Z=zo(I),xe=z.get(Z);if(!xe){if(I.kind==="sync"){let Le=await o(`/remotesync/vaults/${encodeURIComponent(I.vault)}/manifest`);if(k!==L)return;if(!Le.ok){x=Jo(Le),a();return}xe=Le.data.files.map(fe=>({path:fe.path,size:fe.size,mtime:Co(fe.mtimeMs),who:fe.device??null,ref:fe}))}else{let Le=await o(`/amadeus/vaults/${encodeURIComponent(I.vaultId)}/tree`);if(k!==L)return;if(!Le.ok){x=Jo(Le),a();return}xe=(Le.data.entries??[]).map(fe=>({path:fe.path,size:fe.size,mtime:Co(fe.updatedAt),ref:fe}))}z.set(Z,xe)}b=Js(xe,h);return}if(I.kind==="source"){let Z=(Le,fe,Be)=>({key:Le,name:fe,size:Be,dir:!0,mtime:null,ref:{go:Le}});if(I.source==="sync"||I.source==="ama"||I.source==="apps"){if(!(I.source==="sync"?m?.sync:I.source==="ama"?m?.ama:m?.apps)){x=s("penzor.unreachable");return}b=I.source==="sync"?(m?.sync?.vaults??[]).map(fe=>Z(`sync:${fe.vault}`,fe.vault,fe.bytes)):I.source==="ama"?(m?.ama??[]).map(fe=>Z(`ama:${fe.id}`,fe.name,fe.sizeBytes)):(m?.apps?.apps??[]).filter(fe=>fe.appId!==Tn&&fe.files>0).map(fe=>Z(`app:${fe.appId}`,ie(fe.appId),fe.bytes));return}let xe=await o(`/storage/source-files/${I.source}`);if(k!==L)return;if(!xe.ok){x=Jo(xe),a();return}b=I.source==="market"?xe.data.entries.map(Le=>({key:Le.slug??Le.path,name:Le.path,dir:!1,size:Le.size,mtime:Le.mtime,ref:Le})):Js(xe.data.entries.map(Le=>({...Le,ref:Le})),h);return}let D=v[v.length-1]?.id,re=await o(`/files${D?`?parentId=${encodeURIComponent(D)}`:""}`,{projectSource:I.appId});if(k===L){if(!re.ok){x=Jo(re),a();return}b=re.data.map(Z=>({key:Z.id,name:Z.displayName||Z.name,dir:Z.fileType==="directory",size:Number(Z.fileSize)||0,mtime:Co(Z.updatedAt),managed:Z.managed===!0||Z.archive==="item",...Z.archive?{archive:Z.archive}:{},ref:Z}))}}let $t=()=>{if(!b)return null;let k=T.trim().toLowerCase(),I=k?b.filter(D=>D.name.toLowerCase().includes(k)):b;return st(I)},Ut=()=>{let k=$t()??[],I=new Set(k.map(D=>D.key));if(A=new Set([...A].filter(D=>I.has(D))),w&&I.has(w)){A.add(w);return}w=(k.find(D=>!D.dir)??k[0])?.key??null,A=new Set(w?[w]:[]),R=w,tt()},ut=()=>{w=null,A=new Set,R=null,X=null},ie=k=>k===Tn?s("penzor.uploads"):Vs(k),_e=()=>g.kind==="app"&&g.appId===Tn&&!v.some(k=>k.archive),gt=k=>!!m?.apps&&m.apps.apps.find(I=>I.appId===k)?.canManage!==!1,ot=()=>g.kind==="app"&&gt(g.appId),Ve=k=>g.kind==="trash"?gt(k.ref.appId):ot()&&!k.managed,Rt=()=>!!m?.apps&&!!m.trash?.length&&m.trash.every(k=>gt(k.appId)),Xt=()=>g.kind==="app"||g.kind==="sync"||g.kind==="ama"||g.kind==="content",pt=()=>g.kind==="app"?v[v.length-1]?.id??"ROOT":"ROOT",nn=()=>($t()??[]).filter(k=>A.has(k.key)),Ke=(k,I)=>{let D=ee().cloudInvoke;return D?D(k,I).catch(re=>({ok:!1,error:String(re?.message||re)})):Promise.resolve({ok:!1,error:"no_bridge"})};function et(k=500){Ze||be||(Ze=setTimeout(()=>{Ze=null,ue()},k))}async function ue(){let k=$,I=await Ke("penzor:transfers");if(k!==$||be)return;let D=new Map(Q.map(fe=>[fe.id,fe.state]));I?.ok&&Array.isArray(I.items)&&(Q=I.items);let re=Date.now(),Z=Q.some(ja);Q.some(fe=>fe.kind==="up"&&fe.state==="done"&&D.get(fe.id)!=="done")&&(G&&clearTimeout(G),G=setTimeout(()=>{G=null,ft()},300)),Z?(Qe==null&&(Qe=re),me=0,te==="hidden"&&(te="open",pe=re),te==="open"&&!Ue&&re-pe>Ce&&(te="pill")):Qe!=null&&(je(Qe),Qe=null);let xe=Q.some(fe=>fe.state==="failed")||H.length>0,Le=Q.some(fe=>fe.state==="paused");!Z&&!Le&&Q.length&&!xe&&te!=="hidden"&&(me?re-me>lt&&!Ue&&(te="hidden",me=0,bt.txClear("finished")):(me=re,te==="pill"&&(te="open"))),!Z&&xe&&te==="pill"&&(te="open"),!Q.length&&!H.length&&(te="hidden"),Ye(),a(),(Z||te!=="hidden"&&me)&&et()}function je(k){let I=Q.filter(xe=>(xe.finishedAt??0)>=k),D=I.filter(xe=>xe.kind==="up"&&xe.state==="done"),re=I.filter(xe=>xe.kind==="down"&&xe.state==="done"),Z=I.filter(xe=>xe.state==="failed");Ie||(Z.length?c(s("penzor.toast.txFailed",{n:Z.length})):D.length?c(D.length===1?s("penzor.toast.upDoneOne",{name:D[0].name}):s("penzor.toast.upDoneMany",{n:D.length})):re.length&&c(re.length===1?s("penzor.toast.downloaded",{name:re[0].name}):s("penzor.toast.downDoneMany",{n:re.length})))}function Ye(){let k=Q.filter(ja),I=k.reduce((re,Z)=>re+Math.max(Z.size,Z.done),0),D=k.length?I>0?Math.min(1,k.reduce((re,Z)=>re+Z.done,0)/I):0:null;e.app?.setSpaceProgress?.(vn,D??_o(ge?.get()??null))}function an(){if(!ge)return;let k=Wa(ge.get());k!==rt&&(rt=k,e.app?.setSpaceDot?.(vn,k))}function ht(){ge?.get()?.notes.pending||(he=!1),Ye(),an(),a()}let O=()=>{let k=ge?.get()??null;if(!k||!ye.size)return k;let I=(D,re)=>ye.has(D)?{...re,on:ye.get(D)}:re;return{...k,notes:I("notes",k.notes),agents:I("agents",k.agents),plugins:I("plugins",k.plugins)}},ce=async k=>{try{return await k()??{ok:!1}}catch(I){return{ok:!1,error:String(I?.message||I)}}},Ae=()=>{te="open",pe=Date.now(),me=0};async function tt(){j=null;let k=Ht();if(g.kind!=="app"||!k||k.dir){a();return}let I=k.key,D=await o(`/files/${encodeURIComponent(I)}/versions`);w===I&&(j=D.ok&&Array.isArray(D.data)?D.data.map(re=>({versionNumber:re.versionNumber,fileSize:Number(re.fileSize)||0,createdAt:Co(re.createdAt)})):[],a())}let Ht=()=>w?(b??[]).find(k=>k.key===w)??null:null;async function Ct(){await Jt(),Ut(),a()}async function ft(){let k=++P;u=!0,f=null,a();let I=await ee().authStatus?.().catch(()=>null);if(k!==P)return;if(I&&!I.loggedIn){p="out",m=null,u=!1,a();return}let{snap:D,signedOut:re}=await Wp(o);if(k===P){if(u=!1,re){p="out",m=null,a();return}p="in",!D.ledger&&m?.ledger&&(D.ledger=m.ledger,D.ledgerStale=!0),m=D,z.clear(),f=!D.ledger&&!D.sync&&!D.ama&&!D.apps&&!D.exports&&!D.trash?s("penzor.unreachable"):null,!So(g)&&g.kind!=="exports"&&g.kind!=="trash"&&g.kind!=="source"&&((g.kind==="content"?D.contentDevices!=null:g.kind==="sync"?D.sync?.vaults.some(xe=>xe.vault===g.vault):g.kind==="ama"?D.ama?.some(xe=>xe.id===g.vaultId):g.appId===Tn?D.apps:D.apps?.apps.some(xe=>xe.appId===g.appId&&xe.files>0))||(g={kind:"overview"},h="",v=[],ut())),await Ct()}}async function yn(k,I={},D=g){let re=D.kind==="content"?{path:`/remotesync/content/${encodeURIComponent(D.namespace)}/nodes/${encodeURIComponent(k.ref.id)}/content`,mode:"bytes"}:D.kind==="sync"?{path:`/remotesync/vaults/${encodeURIComponent(D.vault)}/file?path=${encodeURIComponent(k.key)}`,mode:"signed"}:D.kind==="ama"?k.ref.kind==="binary"?{path:`/amadeus/vaults/${encodeURIComponent(D.vaultId)}/asset?ref=${encodeURIComponent(k.key)}`,mode:"bytes"}:{path:`/amadeus/vaults/${encodeURIComponent(D.vaultId)}/file?path=${encodeURIComponent(k.key)}`,mode:"text"}:D.kind==="app"?{path:`/files/${encodeURIComponent(k.key)}/content`,mode:"bytes"}:D.kind==="source"&&k.ref?.downloadPath?{path:k.ref.downloadPath,mode:"bytes"}:D.kind==="exports"?{path:`/exports/${encodeURIComponent(k.key)}/url`,mode:"signed"}:null;if(!re)return;let Z=await Ke("penzor:download",{...re,name:Xy(k.name),size:k.size,...I});if(!Z?.ok){d(Z?.error||"download");return}Ae(),et(0),a()}let Re=()=>{So(g)?e.closeView?.(Dn.info,{collapse:!0}):e.openView?.(Dn.info,{location:"right"})},bt={ctx:e,locale:i,t:s,b:l,subscribe(k){return r.add(k),()=>{r.delete(k)}},auth:()=>p,loading:()=>u,error:()=>f,snap:()=>m,loc:()=>g,path:()=>h,appStack:()=>v,rows:$t,rowsError:()=>x,selected:Ht,sort:()=>S,query:()=>T,menu:()=>F,side:()=>B,confirmEmpty:()=>N,versions:()=>j,moveFolders:()=>_,thisDevice:()=>K,setDevice(k){K=k,a()},appLabel:ie,canManageRow:Ve,canEmptyTrash:Rt,canManage:ot,canWrite:_e,canMulti:Xt,folderId:pt,selection:nn,isSelected:k=>A.has(k),selectAll(){if(!Xt())return;let k=$t()??[];A=new Set(k.map(I=>I.key)),!w&&k[0]&&(w=k[0].key),F=null,a()},newFolder:()=>X,startNewFolder(){if(!_e())return;let k=s("penzor.newFolder.default"),I=new Set((b??[]).filter(re=>re.dir).map(re=>re.name)),D=k;for(let re=1;I.has(D)&&re<1e3;re++)D=`${k} (${re})`;X=D,F=null,a()},cancelNewFolder(){X!=null&&(X=null,a())},async createFolder(k){let I=k.trim();if(X=null,!I||!_e()){a();return}a();let D=await o("/files",{method:"POST",body:{type:"directory",parentId:pt(),name:I},projectSource:Tn});if(!D.ok){D.status===409?c(s("penzor.toast.folderExists",{name:I})):d(D);return}D.data?.id&&(w=D.data.id,A=new Set([D.data.id]),R=D.data.id),await Ct()},transfers:()=>Q,notices:()=>H,async acknowledgeStorageNotice(){let k=m?.ledger?.rollout;if(!k||k.acknowledgedAt||m?.ledgerStale)return;let I=await o("/storage/notice/ack",{method:"POST",body:{revision:k.revision}});if(!I.ok){d(I);return}await ft()},txRows(){if(!_e())return[];let k=pt();return Q.filter(I=>I.kind==="up"&&I.projectSource===Tn&&I.parentId===k&&(ja(I)||I.state==="paused")).map(I=>({key:`tx:${I.id}`,id:I.id,name:I.name,size:I.size,done:I.done,state:I.state}))},card:()=>te,setCard(k){te=k,pe=Date.now(),k!=="hidden"&&et(0),a()},holdCard(k){Ue=k,pe=Date.now(),k||et()},async upload(k,I){if(!_e())return;let D=$,re=I?.id??pt(),Z=I?[...v,I]:[...v],xe=await k;if(D!==$||be||!xe.length)return;St.set(re,Z);let Le=await Ke("penzor:upload",{...typeof xe[0]=="string"?{paths:xe}:{files:xe},parentId:re,projectSource:Tn});if(!(D!==$||be)){if(Le?.ok){Ae(),et(0),a();return}if(Le?.error==="quota"){H=[...H,{id:String(Date.now()),kind:"quota",short:Number(Le.short)||0}],Ae(),a();return}if(Le?.error==="too_many"){c(s("penzor.err.too_many",{n:Number(Le.max)||2e3}));return}Le?.error!=="no_files"&&d(Le?.error==="account_changed"?s("penzor.err.account_changed"):Le?.error==="not_signed_in"?s("penzor.err.not_signed_in"):Le?.error||"upload")}},async txOp(k,I){await Ke("penzor:transfer",{id:k,op:I}),pe=Date.now(),await ue()},async txAll(k){let I=k==="pause"?D=>ja(D):k==="resume"?D=>D.state==="paused":D=>D.state==="failed"||D.state==="canceled";for(let D of Q.filter(I))await Ke("penzor:transfer",{id:D.id,op:k});k==="retry"&&(H=[]),pe=Date.now(),await ue()},async txClear(k){await Ke("penzor:transfers:clear",{which:k}),k==="all"&&(H=[]),await ue()},dismissNotice(k){H=H.filter(I=>I.id!==k),!Q.length&&!H.length&&(te="hidden"),a()},locate(k){if(k.kind==="down"){k.localPath&&ee().revealHostPath?.(k.localPath);return}let I=St.get(k.targetId??"")??[];g={kind:"app",appId:Tn},v=I,h="",T="",B={kind:"view"},F=null,ut(),k.fileId&&k.parentId===k.targetId&&(w=k.fileId,A=new Set([k.fileId])),a(),e.app?.openSpace?.(vn).then(()=>{e.openView?.(Dn.main),Re()}),Ct()},async downloadMany(k){let I=k.filter(fe=>!fe.dir);if(I.length<=1){I[0]&&await bt.download(I[0]);return}let D=new Date,re=s("penzor.download.folder",{date:`${D.getFullYear()}-${String(D.getMonth()+1).padStart(2,"0")}-${String(D.getDate()).padStart(2,"0")}`}),Z=`${Date.now()}`,xe=g,Le=$;for(let fe of I){if($!==Le)break;await yn(fe,{subdir:re,batch:Z},xe)}},async trashMany(k){if(g.kind!=="app"||!k.length||!k.every(Ve))return;if(k.length===1){await bt.trash(k[0]);return}let I=await o("/files/batch/delete",{method:"POST",body:{ids:k.map(re=>re.key)},projectSource:g.appId});if(!I.ok){d(I);return}let D=(I.data?.results??[]).filter(re=>re.success===!1).length;c(D?s("penzor.toast.batchPartial",{n:D}):s("penzor.toast.trashedN",{n:k.length})),ut(),await ft()},async moveMany(k,I){if(g.kind!=="app"||!k.length||!k.every(Ve))return;B={kind:"view"};let D=k.map(xe=>xe.key).filter(xe=>xe!==I.id),re=await o("/files/batch/move",{method:"POST",body:{ids:D,parentId:I.id},projectSource:g.appId});if(!re.ok){d(re),a();return}let Z=(re.data?.results??[]).filter(xe=>xe.success===!1).length;c(Z?s("penzor.toast.batchPartial",{n:Z}):s("penzor.toast.movedN",{n:D.length,name:I.name})),ut(),await ft()},setVisible(k){Ie=k},picker:{},refresh:ft,go(k){let I=Vp(k);if(!I)return;let D=zo(I)===zo(g);g=I,D||(h="",v=[],ut(),T="",B={kind:"view"},N=!1),F=null,a(),e.openView?.(Dn.main),Re(),Ct()},openFolder(k){g={kind:"app",appId:Tn},v=k,h="",T="",B={kind:"view"},F=null,N=!1,ut(),a(),e.openView?.(Dn.main),Re(),Ct()},openDir(k){if(!(!k.dir||g.kind==="exports"||g.kind==="trash")){if(g.kind==="source"&&k.ref?.go){bt.go(k.ref.go);return}g.kind==="app"?v=[...v,{id:k.key,name:k.name,...k.archive?{archive:!0}:{}}]:h=k.key,ut(),T="",B={kind:"view"},Ct()}},up(k){if(g.kind==="app")v=v.slice(0,k??Math.max(0,v.length-1));else{let I=h?h.split("/"):[];h=I.slice(0,k??Math.max(0,I.length-1)).join("/")}ut(),B={kind:"view"},Ct()},select(k,I){let D=$t()??[];if(k&&I?.range&&Xt()&&R&&D.some(re=>re.key===R)){let re=D.findIndex(xe=>xe.key===R),Z=D.findIndex(xe=>xe.key===k.key);A=new Set(D.slice(Math.min(re,Z),Math.max(re,Z)+1).map(xe=>xe.key)),w=k.key}else k&&I?.toggle&&Xt()?(A.has(k.key)&&A.size>1?(A.delete(k.key),w===k.key&&(w=[...A].pop()??null)):(A.add(k.key),w=k.key),R=k.key):(w=k?.key??null,A=new Set(w?[w]:[]),R=w);X=null,B={kind:"view"},F=null,k&&!So(g)&&e.openView?.(Dn.info,{location:"right"}),tt(),a()},setSort(k){S=k,a()},setQuery(k){T=k,a()},openMenu(k,I,D){D&&!A.has(D.key)&&(w=D.key,A=new Set([D.key]),R=D.key,tt()),F={x:k,y:I,row:D},B={kind:"view"},a()},closeMenu(){F&&(F=null,a())},setSide(k){B=k,F=null,k.kind==="move"&&(_=null,bt.moveBrowse(k.at)),e.openView?.(Dn.info,{location:"right"}),a()},setConfirmEmpty(k){N=k,a()},async download(k){k.dir||(F=null,await yn(k))},async trash(k){if(g.kind!=="app"||!Ve(k))return;let I=$t()??[],D=I.findIndex(xe=>xe.key===k.key),re=await o(`/files/${encodeURIComponent(k.key)}`,{method:"DELETE",projectSource:g.appId});if(!re.ok){d(re);return}c(s("penzor.toast.trashed",{name:k.name}));let Z=I[D+1]??I[D-1];w=Z&&Z.key!==k.key?Z.key:null,F=null,await ft()},async restore(k){if(!m||g.kind!=="trash"||!Ve(k))return;let I=await o(`/trash/${encodeURIComponent(k.key)}/restore`,{method:"POST",body:{}});if(!I.ok){d(I);return}c(s("penzor.toast.restored",{name:k.name})),w=null,await ft()},async purge(k){if(!m||g.kind!=="trash"||!Ve(k))return;let I=await o(`/trash/${encodeURIComponent(k.key)}`,{method:"DELETE"});if(B={kind:"view"},!I.ok){d(I),a();return}c(s("penzor.toast.purged",{name:k.name})),w=null,await ft()},async emptyTrash(){if(!m||!Rt())return;let k=await o("/trash?all=1",{method:"DELETE"});if(N=!1,!k.ok){d(k),a();return}let I=(k.data?.results??[]).filter(D=>D.success===!1).length;c(I?s("penzor.toast.emptyPartial",{n:I}):s("penzor.toast.emptied")),w=null,await ft()},async rename(k,I){let D=I.trim();if(B={kind:"view"},!D||D===k.name){a();return}let re=g.kind==="exports"?await o(`/exports/${encodeURIComponent(k.key)}/rename`,{method:"PUT",body:{newFileName:D}}):g.kind==="app"&&Ve(k)?await o(`/files/${encodeURIComponent(k.key)}/rename`,{method:"PATCH",body:{name:D},projectSource:g.appId}):null;if(re){if(!re.ok){d(re),a();return}c(s("penzor.toast.renamed",{name:D})),await ft()}},moveBrowse(k){if(g.kind!=="app"||!ot())return;B={kind:"move",at:k},_=null,a();let I=k[k.length-1]?.id,D=g.appId;o(`/files${I?`?parentId=${encodeURIComponent(I)}`:""}`,{projectSource:D}).then(re=>{B.kind!=="move"||B.at!==k||(_=re.ok?re.data.filter(Z=>Z.fileType==="directory").map(Z=>({id:Z.id,name:Z.name})):[],a())})},async moveTo(k,I){if(g.kind!=="app"||!Ve(k))return;if(B={kind:"view"},I.id===k.key){a();return}let D=await o(`/files/${encodeURIComponent(k.key)}/move`,{method:"PATCH",body:{parentId:I.id},projectSource:g.appId});if(!D.ok){d(D),a();return}c(s("penzor.toast.moved",{name:I.name})),w=null,await ft()},async restoreVersion(k,I){if(!Ve(k))return;let D=await o(`/files/${encodeURIComponent(k.key)}/restore/${I.versionNumber}`,{method:"POST",body:{}});if(!D.ok){d(D);return}c(s("penzor.toast.versionRestored",{n:I.versionNumber})),await ft(),tt()},async deleteExport(k){if(!m)return;let I=await o(`/exports/${encodeURIComponent(k.key)}`,{method:"DELETE"});if(B={kind:"view"},!I.ok){d(I),a();return}c(s("penzor.toast.purged",{name:k.name})),w=null,await ft()},signIn(){ee().forsionLogin?.()},openSync(){e.app?.openSettings?.("sync/s-remote")},async focusVault(k){await e.app?.openSpace?.(vn),m||await ft(),bt.go(`sync:${k}`)},hasSync:()=>!!ge,content:()=>qt,syncState:O,syncBusy:k=>Me.has(k),async setSync(k,I){if(!ge||Me.has(k))return;Me.add(k),ye.set(k,I),a();let D=await ce(()=>ge.set(k,I));Me.delete(k),ye.delete(k),!be&&(D.ok||d(D.error||"sync"),ht())},async resolveNotes(k){if(!ge||Me.has("resolve"))return;Me.add("resolve"),a();let I=await ce(()=>ge.resolveNotes(k));Me.delete("resolve"),he=!1,!be&&(I.ok||d(I.error||"sync"),ht())},confirmCloud:()=>he,setConfirmCloud(k){he=k,a()},enter(){},dispose(){be=!0,clearInterval(gn),Ze&&clearTimeout(Ze),G&&clearTimeout(G),e.app?.setSpaceProgress?.(vn,null),rt&&e.app?.setSpaceDot?.(vn,!1),r.clear(),ro?.(),Fr?.(),ei?.()}},qt=null,Je="",Ot=async()=>{let k=ee().cloudInvoke;if(!k){clearInterval(gn);return}let I=typeof document<"u"&&typeof document.hasFocus=="function"?document.hasFocus():void 0,D=await k(Gt.get,null,{focused:I}).catch(xe=>({ok:!1,error:String(xe)}));if(be)return;!D?.ok&&/unavailable|not a Forsion Extend channel/i.test(D?.error??"")&&clearInterval(gn);let re=D?.ok&&D.value?.available?D.value:null,Z=re?JSON.stringify([En(re),re.config.enabled,re.deviceId,re.devices]):"";qt=re,Z!==Je&&(Je=Z,a())},gn=setInterval(()=>void Ot(),5e3);Ot();let ro=e.subscribeLocale?.(()=>a()),ei=ge?.subscribe(ht);an(),ue();let Fr=ee().onAuthChanged?.(()=>{++L,++P,++$,m=null,b=null,x=null,z.clear(),ut(),F=null,B={kind:"view"},N=!1,j=null,_=null,g={kind:"overview"},h="",v=[],T="",St.clear(),H=[],Q=[],te="hidden",Qe=null,me=0,G&&(clearTimeout(G),G=null),e.app?.setSpaceProgress?.(vn,null),he=!1,ye.clear(),a(),ft()});return bt}var nf=e=>e.kind==="content"?"penzor.source.readonly":e.kind==="sync"?"penzor.side.readonlySync":e.kind==="ama"?"penzor.side.readonlyAma":e.kind==="source"?e.source==="plugins"?"penzor.source.pluginNote":e.source==="market"?"penzor.source.marketNote":"penzor.source.readonly":null;var of=`
1368
+ ${nf(e,t)}`,d=await s({prompt:c,send:!1});d?.ok?r(""):i(d?.error||e.t("guide.ask.unavailable"))};return n("div",{class:"fxg-pane",children:[n("p",{class:"fxg-muted",children:e.t("guide.ask.hint",{chapter:e.title(t)})}),n("textarea",{class:"fxg-input",rows:4,value:o,placeholder:e.t("guide.ask.placeholder"),onInput:c=>r(c.target.value)}),n("button",{type:"button",class:"btn sm",disabled:!s,onClick:()=>void l(),children:e.t("guide.ask.send")}),(!s||a)&&n("p",{class:"fxg-muted",children:a||e.t("guide.ask.unavailable")})]})}function of({g:e}){Wa(e);let[t,o]=S("progress");return n(Va,{g:e,kind:"side",children:[n("div",{class:"fxg-tabs",role:"tablist",children:["progress","ask"].map(r=>n("button",{type:"button",role:"tab","aria-selected":t===r,class:t===r?"is-on":"",onClick:()=>o(r),children:e.t(r==="progress"?"guide.progress":"guide.askTangu")},r))}),t==="progress"?n(xx,{g:e}):n(kx,{g:e})]})}function rf({g:e}){Wa(e);let t=e.companionChapter(),o=Jo(t,e.env())==="done",r=K(o);return $(()=>{if(o&&!r.current){let a=window.setTimeout(()=>e.ctx.closeView?.(Tn.companion),1500);return()=>window.clearTimeout(a)}r.current=o},[o]),n(Va,{g:e,kind:"companion",children:n("div",{class:"fxg-pane",children:[n("div",{class:"fxg-companion-head",children:[n("span",{class:"fxg-sub",children:e.t("guide.title")}),e.ctx.closeView&&n("button",{type:"button",class:"fxg-icon-btn","aria-label":e.t("guide.companion.close"),onClick:()=>e.ctx.closeView?.(Tn.companion),children:"\xD7"})]}),n("div",{class:"fxg-h",children:e.title(t)}),n("div",{class:"fxg-sub",children:e.t("guide.tasks")}),n(js,{g:e,chapter:t}),n("button",{type:"button",class:"fx-link fxg-back",onClick:()=>void e.openGuide(t.id),children:e.t("guide.companion.back")})]})})}function af({g:e,letter:t}){Wa(e);let o=t?t.kind==="level"?t.level:"new":null,r=o&&(o==="new"||Ha(o,e.env()))?An(o):[];return n(Va,{g:e,kind:"letter",children:[r.map(a=>n("div",{class:"fxg-letter-chapter",children:[n("button",{type:"button",class:"fxg-letter-title",onClick:()=>void e.openGuide(a.id),children:e.title(a)}),n(js,{g:e,chapter:a})]},a.id)),n("button",{type:"button",class:"btn sm",onClick:()=>void e.openGuide(r[0]?.id??oo("welcome")?.id),children:e.t("guide.letter.open")})]})}function Sx(e){return!!e&&typeof e.registerView=="function"&&typeof e.registerListSource=="function"&&typeof e.openView=="function"&&typeof e.achievements?.count=="function"&&typeof e.achievements.subscribe=="function"&&typeof e.app?.openSpace=="function"&&typeof e.ui?.mountMarkdownEditor=="function"}function sf(e,t=window){if(!Sx(e)||t.tangu?.unitPage)return null;let o=t.tangu,r=Jp(e,{desktop:typeof o?.appVersion=="function"&&!o.mobile,appVersion:typeof o?.appVersion=="function"?o.appVersion().catch(()=>null):Promise.resolve(null)}),a=i=>s=>(Fe(n(i,{g:r}),s),()=>{Fe(null,s)});return e.registerView({id:Tn.reader,title:r.t("guide.title"),icon:"page",workspaceSource:Vs,mount:a(tf)}),e.registerView({id:Tn.side,title:r.t("guide.progress"),icon:"list-view",mount:a(of)}),e.registerView({id:Tn.companion,title:r.t("guide.title"),icon:"todo",mount:a(rf)}),e.registerListSource({id:Vs,title:r.t("guide.title"),search:!0,items:i=>{let s=r.env(),l=i?.query?.trim().toLowerCase()??"",c=r.justUnlocked();return qa(r).flatMap(({level:d,chapters:p})=>p.map(u=>{let m=Jo(u,s);return{key:u.id,title:r.title(u),group:r.levelName(d),icon:m==="done"?"circle-check":m==="locked"?"lock":"circle",hint:d===c&&m!=="locked"?r.t("guide.justUnlocked"):void 0}})).filter(d=>!l||d.title.toLowerCase().includes(l))},subscribe:i=>r.subscribe(i),activeKey:()=>r.selected().id,open:i=>{r.select(i.key),e.openView(Tn.reader)}}),e.registerCommand?.({id:"open-guide",title:()=>r.t("guide.cmd.open"),keywords:"guide manual help tutorial levels \u4F7F\u7528\u6307\u5357 \u8BF4\u660E\u4E66 \u6559\u7A0B \u5E2E\u52A9 \u7B49\u7EA7 \u4EFB\u52A1",run:()=>{r.openGuide()}}),e.inbox?.registerCard({sender:()=>r.t("guide.title"),mount(i,s){return Fe(n(af,{g:r,letter:r.letter(s.id)}),i),()=>{Fe(null,i)}}}),r}var Cx=["uploads","ama","sync","agents","profile","apps","plugins","exports","market"],Rr={uploads:"penzor.uploads",ama:"penzor.ledger.ama",sync:"penzor.ledger.sync",agents:"penzor.source.agents",profile:"penzor.source.profile",apps:"penzor.ledger.apps",plugins:"penzor.source.plugins",exports:"penzor.ledger.exports",market:"penzor.source.market"},Gs=e=>e==="uploads"?"app:penzor":e==="exports"?"exports":`source:${e}`,Js=e=>{let t=e?.sources.find(o=>o.id==="market");return t?.status==="ready"&&((t.fileCount??0)>0||(t.liveBytes??0)>0)},ro=e=>Number.isFinite(Number(e))?Number(e):0,En="penzor";var cf=500;async function _x(e,t){let o=Math.min(20,ro(t.totalPages));if(o<=1)return t.files;let r=await Promise.all(Array.from({length:o-1},(a,i)=>e(`/exports/list?pageSize=${cf}&sortBy=date&sortOrder=desc&page=${i+2}`)));return[...t.files,...r.flatMap(a=>a.ok&&Array.isArray(a.data?.files)?a.data.files:[])]}async function df(e){let[t,o,r,a,i,s,l,c,d]=await Promise.all([e("/remotesync/vaults"),e("/amadeus/vaults"),e("/storage/quota"),e("/storage/files-by-app"),e(`/exports/list?pageSize=${cf}&sortBy=date&sortOrder=desc`),e("/trash?all=1"),e("/storage/ledger"),e("/storage/source-trash/ama"),e("/remotesync/content/devices")]),u=[t,o,r,a,i,s].every(f=>!f.ok&&f.status===401);return{snap:{contentDevices:d.ok&&Array.isArray(d.data?.devices)?d.data.devices:null,amaTrash:c.ok&&Array.isArray(c.data?.entries)?c.data.entries:null,ledger:l.ok&&l.data?.schemaVersion===1?l.data:null,sync:t.ok&&Array.isArray(t.data?.vaults)?{...t.data,vaults:t.data.vaults.filter(f=>f.vault!=="forsion-content")}:null,ama:o.ok&&Array.isArray(o.data?.vaults)?o.data.vaults.filter(f=>(f.role??"owner")==="owner").map(f=>({id:f.id,name:f.name,sizeBytes:ro(f.sizeBytes)})):null,apps:r.ok&&a.ok&&Array.isArray(a.data?.apps)?{used:ro(r.data?.used),quota:ro(r.data?.quota),apps:a.data.apps,largest:a.data.largest??[]}:null,exports:i.ok&&Array.isArray(i.data?.files)?{files:await _x(e,i.data),total:ro(i.data.total),totalBytes:ro(i.data.totalBytes)}:null,trash:s.ok&&Array.isArray(s.data)?s.data:null,at:Date.now()},signedOut:u}}var Ax={"ai-studio":"AI Studio","photo-studio":"Photo Studio",notebase:"Notebase",chat:"Forsion Chat",connect:"Forsion Connect","video-studio":"Video Studio",bluebird:"Bluebird",cnti:"CNTI"},Xs=e=>e?Ax[e]??e.split(/[-_]/).filter(Boolean).map(t=>t[0].toUpperCase()+t.slice(1)).join(" "):"\u2014",Co=e=>e.kind==="content"?`content:${e.namespace}`:e.kind==="source"?`source:${e.source}`:e.kind==="sync"?`sync:${e.vault}`:e.kind==="ama"?`ama:${e.vaultId}`:e.kind==="app"?`app:${e.appId}`:e.kind==="overview"?"ov":e.kind,_o=e=>e.kind==="overview"||e.kind==="sync-home";function uf(e){if(e==="ov")return{kind:"overview"};if(e==="sync-home"||e==="exports"||e==="trash")return{kind:e};let t=e.indexOf(":"),o=t<0?e:e.slice(0,t),r=t<0?"":e.slice(t+1);return r?o==="source"&&Cx.includes(r)?{kind:"source",source:r}:o==="content"&&/^(default|device-[A-Za-z0-9_-]{1,64})$/.test(r)?{kind:"content",namespace:r}:o==="sync"?{kind:"sync",vault:r}:o==="ama"?{kind:"ama",vaultId:r}:o==="app"?{kind:"app",appId:r}:null:null}var Ks=(e,t)=>t?t.config.enabled||t.config.revision>0:!!e?.contentDevices?.length;function pf(e,t,o,r=null){let a=f=>Ce(o,Rr[f]),i=f=>Pr(f,o),s=f=>{let g=e?.ledger?.sources.find(h=>h.id===f);return g?.status==="ready"?g.liveBytes+g.trashBytes:null},l=f=>{let g=s(f);return g==null?"\u2014":`${e?.ledgerStale?"~ ":""}${i(g)}`},c=Ks(e,r),d=[{key:"drive-root",title:t.drive,kind:"folder",icon:t.driveIcon},{key:"ov",title:t.overview,parent:"drive-root",icon:"layout"},{key:Gs("uploads"),title:t.files,parent:"drive-root",icon:"folder",hint:l("uploads")}];if(Js(e?.ledger)&&d.push({key:Gs("market"),title:a("market"),parent:"drive-root",icon:"boxes",hint:l("market")}),c&&e?.contentDevices){d.push({key:"synced",title:t.synced,kind:"folder",icon:"cloud"},{key:"content:default",title:t.all,parent:"synced",icon:"cloud"});let f=r?.deviceId;f&&d.push({key:`content:device-${f}`,title:t.thisBackup,parent:"synced",icon:"lock"});for(let g of e.contentDevices.filter(h=>h.id!==f))d.push({key:`content:device-${g.id}`,title:g.name||`Forsion-${g.id.slice(0,8)}`,parent:"synced",icon:"link"})}let p=["ama","apps","plugins","exports",...c?[]:["agents","profile"]],u=p.reduce((f,g)=>f==null||s(g)==null?null:f+s(g),0);d.push({key:"by-app",title:t.byApp,kind:"folder",icon:"package",hint:u==null?"\u2014":i(u)});let m=(f,g,h=a(f))=>{let b=f==="ama"||f==="sync"||f==="apps",v=Gs(f);if(d.push({key:b?v+":group":v,parent:g,title:h,icon:f==="sync"?"clock":"folder",...b?{kind:"folder"}:{},hint:l(f)}),b&&d.push({key:`source:${f}`,parent:v+":group",title:t.overview,icon:"layout"}),f==="sync")for(let w of e?.sync?.vaults??[])d.push({key:`sync:${w.vault}`,parent:v+":group",title:w.vault,icon:"database",hint:i(w.bytes)});if(f==="ama")for(let w of e?.ama??[])d.push({key:`ama:${w.id}`,parent:v+":group",title:w.name,icon:"page",hint:i(w.sizeBytes)});if(f==="apps")for(let w of e?.apps?.apps.filter(k=>k.appId!==En&&k.files>0)??[])d.push({key:`app:${w.appId}`,parent:v+":group",title:Xs(w.appId),icon:"archive",hint:i(w.bytes)})};for(let f of p)m(f,"by-app");return m("sync","",c?t.legacy:a("sync")),d.push({key:"trash",title:t.trash,icon:"trash",hint:e?.trash?t.items(Ys(e.trash).length):"\u2014"}),d.map(f=>f.parent===""?(({parent:g,...h})=>h)(f):f)}function Ys(e){let t=new Map(e.map(a=>[a.id,a])),o=a=>{let i=a;for(let s=0;s<64&&i.parentId&&t.has(i.parentId);s++)i=t.get(i.parentId);return i},r=new Map;for(let a of e){let i=o(a),s=r.get(i.id)??{inner:0,innerBytes:0};i.id!==a.id&&s.inner++,s.innerBytes+=ro(a.fileSize),r.set(i.id,s)}return e.filter(a=>!(a.parentId&&t.has(a.parentId))).map(a=>({...a,...r.get(a.id)}))}function Zs(e,t){let o=t?`${t}/`:"",r=new Map,a=[];for(let i of e){if(o&&!i.path.startsWith(o))continue;let s=i.path.slice(o.length),l=s.indexOf("/");if(l<0){a.push({key:i.path,name:s,dir:!1,size:i.size,mtime:i.mtime,col4:i.who??null,ref:i.ref});continue}let c=s.slice(0,l),d=o+c,p=r.get(d)??{key:d,name:c,dir:!0,size:0,mtime:null,count:0};p.size+=i.size,p.count=(p.count??0)+1,i.mtime!=null&&(p.mtime==null||i.mtime>p.mtime)&&(p.mtime=i.mtime),r.set(d,p)}return[...Ga([...r.values()]),...Ga(a)]}var Ga=e=>e.sort((t,o)=>(o.mtime??-1)-(t.mtime??-1)||t.name.localeCompare(o.name)),ff=e=>[...Ga(e.filter(t=>t.dir)),...Ga(e.filter(t=>!t.dir))];function Pr(e,t){let o=Math.max(0,ro(e));if(o<1024)return`${o} B`;if(o<1024*1024)return`${Math.round(o/1024)} KB`;if(o<1024**3){let r=o/1048576;return`${r<100?Number(r.toFixed(1)):Math.round(r)} MB`}return`${Number((o/1024**3).toFixed(2))} GB`}function Qs(e,t,o){let r=Pr(e,o),a=Pr(t,o),i=a.slice(a.indexOf(" "));return`${r.endsWith(i)?r.slice(0,-i.length):r} / ${a}`}var Tx=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],lf=e=>String(e).padStart(2,"0");function en(e,t,o=Date.now()){if(e==null||!Number.isFinite(e))return"\u2014";let r=new Date(e),a=new Date(o);a.setHours(0,0,0,0);let i=new Date(r);i.setHours(0,0,0,0);let s=Math.round((a.getTime()-i.getTime())/864e5),l=`${lf(r.getHours())}:${lf(r.getMinutes())}`;if(s===0)return t==="zh"?`\u4ECA\u5929 ${l}`:`Today ${l}`;if(s===1)return t==="zh"?`\u6628\u5929 ${l}`:`Yesterday ${l}`;let c=r.getFullYear()===a.getFullYear();return t==="zh"?`${c?"":`${r.getFullYear()} \u5E74 `}${r.getMonth()+1} \u6708 ${r.getDate()} \u65E5`:`${Tx[r.getMonth()]} ${r.getDate()}${c?"":`, ${r.getFullYear()}`}`}function Ao(e){if(e==null||e==="")return null;if(typeof e=="number")return e<1e12?e*1e3:e;let t=Number(e);if(Number.isFinite(t))return t<1e12?t*1e3:t;let o=Date.parse(String(e));return Number.isNaN(o)?null:o}var Ja=e=>[e.notes.on&&!e.notes.pending,e.agents.on,e.plugins.on].filter(Boolean).length;function Ir(e){let t=e.notes.last;return!!t&&t.ok===!1&&!(t.errors.length>0&&t.errors.every(o=>o.includes("already-running")))}var Xa=e=>!!e&&e.signedIn&&(!!e.notes.pending||e.notes.on&&Ir(e)),Ex=e=>/"code"\s*:\s*"QUOTA"/.test(e),mf=(e,t)=>e.notes.on&&!e.notes.pending&&e.notes.backend==="penzor"&&(t>0&&(e.notes.localBytes??0)>t||!!e.notes.last?.errors.some(Ex));function To(e){if(!e?.notes.running)return null;let t=e.notes.progress;return t&&t.total>0?Math.min(1,Math.max(0,t.done/t.total)):0}function gf(e,t){if(!e||!e.signedIn)return;let o=To(e);if(o!=null)return o>0?Ce(t,"penzor.sync.running",{pct:Math.round(o*100)}):Ce(t,"penzor.sync.runningPlain");if(e.notes.pending)return Ce(t,"penzor.sync.waiting");let r=Ja(e);return r?Ce(t,"penzor.sync.onN",{n:r}):Ce(t,"penzor.sync.allOff")}var Mr=e=>e.jobs.filter(t=>t.state==="failed"&&!e.jobs.some(o=>o.path===t.path&&o.at>t.at&&o.state==="done"));function Pn(e){if(!e.config.enabled)return{kind:"off"};if(e.paused)return{kind:"paused"};let t=e.jobs.filter(a=>a.state==="queued"||a.state==="active");if(t.length){let a=t.reduce((s,l)=>s+(l.size??0),0),i=t.reduce((s,l)=>s+l.done,0);return{kind:"run",pct:a>0?Math.min(99,Math.round(i/a*100)):0}}if(e.phase==="scanning"||e.phase==="syncing")return{kind:"scan"};let o=Mr(e).length+(e.error?1:0);if(o)return{kind:"warn",n:o};let r=e.jobs.filter(a=>a.state==="done").map(a=>a.finishedAt??a.at);return{kind:"ok",at:r.length?Math.max(...r):null}}function hf(e,t){return e.kind==="off"?Ce(t,"penzor.cs.statusOff"):e.kind==="paused"?Ce(t,"penzor.cs.statusPaused"):e.kind==="run"?`${e.pct}%`:e.kind==="scan"?Ce(t,"penzor.sync.runningPlain"):e.kind==="warn"?Ce(t,"penzor.cs.statusWarn",{n:e.n}):Ce(t,"penzor.cs.statusOk")}function bf(e,t){let o=Ja(e);return e.notes.pending?Ce(t,"penzor.sync.badgeWaiting",{n:o}):o?Ce(t,"penzor.sync.onN",{n:o}):Ce(t,"penzor.sync.allOff")}function el(e,t){let o=Math.max(0,Math.round(e.intervalMin)),r=o?o%60===0?Ce(t,"penzor.sync.everyHours",{n:o/60}):Ce(t,"penzor.sync.every",{n:o}):Ce(t,"penzor.sync.manual");return e.syncOnStart?`${r} \xB7 ${Ce(t,"penzor.sync.onStart")}`:r}function Rn(e,t,o=Date.now()){if(e==null||!Number.isFinite(e))return"\u2014";let r=Math.max(0,o-e);return r<6e4?Ce(t,"penzor.justNow"):r<36e5?Ce(t,"penzor.sync.minAgo",{n:Math.floor(r/6e4)}):r<6*36e5?Ce(t,"penzor.sync.hoursAgo",{n:Math.floor(r/36e5)}):en(e,t,o)}function Ka(e,t=!1){return t?"folder":/\.(png|jpe?g|gif|webp|heic|dng|svg|bmp|tiff?)$/i.test(e)?"image":/\.(md|txt|pdf|docx?|rtf)$/i.test(e)?"page":/\.db$/i.test(e)?"database":"attachment"}function yf(e,t){let o=null;for(let r of t)(!r.source||e===r.source||e.startsWith(r.source+"/"))&&(!o||r.source.length>o.source.length)&&(o=r);return o}var Jt={get:"penzor:sync:get",preview:"penzor:sync:preview",apply:"penzor:sync:apply",run:"penzor:sync:run",pause:"penzor:sync:pause",retry:"penzor:sync:retry",rename:"penzor:sync:rename",setup:"penzor:sync:setup",archiveSeen:"penzor:sync:archiveSeen"};var vf=e=>String(e??"").normalize("NFC").trim().replace(/\s+/g," ").toLowerCase(),tl=(e,t,o)=>{let r=vf(e);return r?/[\[\]]/.test(e)||e.trim().length>64?"invalid":r==="macos"||r==="windows"||r==="linux"?"reserved":t.some(a=>a.id!==o&&vf(a.name)===r)?"taken":null:null};var yn="forsion-penzor",Nn={main:"penzor",info:"penzor-info"},nl="penzor-places",ol="forsion-extend.penzor.ready",xf="forsion-extend.penzor.focus",Ya=e=>e.state==="active"||e.state==="queued",Yo=e=>e.ok?"":e.detail||e.code||e.transport||(e.status?`HTTP ${e.status}`:"offline"),Px=e=>e.slice(e.lastIndexOf("/")+1);function kf(e,t={}){let o=t.api??H,r=new Set,a=()=>{for(let z of[...r])try{z()}catch(R){console.error("[penzor] listener failed",R)}},i=()=>Oe(e.getLocale?.()),s=(z,R)=>Ce(i(),z,R),l=z=>Pr(z,i()),c=z=>e.app?.notify?.(z),d=z=>c(s("penzor.toast.failed",{reason:typeof z=="string"?z:Yo(z)})),p="unknown",u=!1,m=null,f=null,g={kind:"overview"},h="",b=[],v=null,w=null,k=null,x="mtime",T="",F=null,V={kind:"view"},D=!1,j=null,A=null,L=0,U=0,N=0,oe=t.device??null,_=new Map,C=new Set,P=null,G=null,Y=[],q=[],te="hidden",pe=0,qe=!1,ge=0,Ie=!1,Ze=null,ve=!1,Qe=null,Ct=new Map,J=null,he=!Q().mobile&&typeof e.app?.sync?.get=="function"?e.app.sync:null,xe=new Map,De=new Set,be=!1,rt=!1,_e=1e4,ct=4e3,lt=z=>{let R=x==="size"?(M,re)=>re.size-M.size:x==="name"?(M,re)=>M.name.localeCompare(re.name):null;return R?[...z.filter(M=>M.dir).sort(R),...z.filter(M=>!M.dir).sort(R)]:ff([...z])};async function Xt(){let z=++L,R=g;if(w=null,R.kind==="overview"||R.kind==="sync-home"){v=null;return}if(R.kind==="exports"){v=(f?.exports?.files??[]).map(ee=>({key:ee.fileId,name:ee.fileName,dir:!1,size:ee.size,mtime:Ao(ee.createdAt),col4:le(ee.appId),ref:ee}));return}if(R.kind==="trash"){v=Ys(f?.trash??[]).map(ee=>({key:ee.id,name:ee.name,dir:ee.fileType==="directory",size:ee.fileType==="directory"?ee.innerBytes:ee.fileSize,mtime:Ao(ee.deletedAt),col4:ee.parentName?`${le(ee.appId)} / ${ee.parentName}`:le(ee.appId),count:ee.fileType==="directory"?ee.inner:void 0,ref:ee}));return}if(v=null,a(),R.kind==="content"){let ee=await o(`/remotesync/content/${encodeURIComponent(R.namespace)}`);if(z!==L)return;if(!ee.ok){w=Yo(ee),a();return}if(ee.data.schemaVersion!==1||!Array.isArray(ee.data.nodes)){w=s("penzor.unreachable");return}let ke=ee.data.nodes.filter(He=>!He.deleted),Ne=ke.filter(He=>He.kind==="file"&&He.version).map(He=>({path:He.path,size:He.size??0,mtime:He.mtime??null,ref:He}));_.set(Co(R),Ne);let fe=He=>{let qr=0,so=null,Mo=0;for(let Gn of Ne)Gn.path.startsWith(He+"/")&&(qr+=Gn.size,Mo++,Gn.mtime!=null&&(so==null||Gn.mtime>so)&&(so=Gn.mtime));return{size:qr,mtime:so,count:Mo}};v=ke.filter(He=>(He.path.includes("/")?He.path.slice(0,He.path.lastIndexOf("/")):"")===h).map(He=>He.kind==="folder"?{key:He.path,name:He.name,dir:!0,...fe(He.path),ref:He}:{key:He.path,name:He.name,dir:!1,size:He.size??0,mtime:He.mtime??null,ref:He});return}if(R.kind==="sync"||R.kind==="ama"){let ee=Co(R),ke=_.get(ee);if(!ke){if(R.kind==="sync"){let Ne=await o(`/remotesync/vaults/${encodeURIComponent(R.vault)}/manifest`);if(z!==L)return;if(!Ne.ok){w=Yo(Ne),a();return}ke=Ne.data.files.map(fe=>({path:fe.path,size:fe.size,mtime:Ao(fe.mtimeMs),who:fe.device??null,ref:fe}))}else{let Ne=await o(`/amadeus/vaults/${encodeURIComponent(R.vaultId)}/tree`);if(z!==L)return;if(!Ne.ok){w=Yo(Ne),a();return}ke=(Ne.data.entries??[]).map(fe=>({path:fe.path,size:fe.size,mtime:Ao(fe.updatedAt),ref:fe}))}_.set(ee,ke)}v=Zs(ke,h);return}if(R.kind==="source"){let ee=(Ne,fe,He)=>({key:Ne,name:fe,size:He,dir:!0,mtime:null,ref:{go:Ne}});if(R.source==="sync"||R.source==="ama"||R.source==="apps"){if(!(R.source==="sync"?f?.sync:R.source==="ama"?f?.ama:f?.apps)){w=s("penzor.unreachable");return}v=R.source==="sync"?(f?.sync?.vaults??[]).map(fe=>ee(`sync:${fe.vault}`,fe.vault,fe.bytes)):R.source==="ama"?(f?.ama??[]).map(fe=>ee(`ama:${fe.id}`,fe.name,fe.sizeBytes)):(f?.apps?.apps??[]).filter(fe=>fe.appId!==En&&fe.files>0).map(fe=>ee(`app:${fe.appId}`,le(fe.appId),fe.bytes));return}let ke=await o(`/storage/source-files/${R.source}`);if(z!==L)return;if(!ke.ok){w=Yo(ke),a();return}v=R.source==="market"?ke.data.entries.map(Ne=>({key:Ne.slug??Ne.path,name:Ne.path,dir:!1,size:Ne.size,mtime:Ne.mtime,ref:Ne})):Zs(ke.data.entries.map(Ne=>({...Ne,ref:Ne})),h);return}let M=b[b.length-1]?.id,re=await o(`/files${M?`?parentId=${encodeURIComponent(M)}`:""}`,{projectSource:R.appId});if(z===L){if(!re.ok){w=Yo(re),a();return}v=re.data.map(ee=>({key:ee.id,name:ee.displayName||ee.name,dir:ee.fileType==="directory",size:Number(ee.fileSize)||0,mtime:Ao(ee.updatedAt),managed:ee.managed===!0||ee.archive==="item",...ee.archive?{archive:ee.archive}:{},ref:ee}))}}let $t=()=>{if(!v)return null;let z=T.trim().toLowerCase(),R=z?v.filter(M=>M.name.toLowerCase().includes(z)):v;return lt(R)},Ht=()=>{let z=$t()??[],R=new Set(z.map(M=>M.key));if(C=new Set([...C].filter(M=>R.has(M))),k&&R.has(k)){C.add(k);return}k=(z.find(M=>!M.dir)??z[0])?.key??null,C=new Set(k?[k]:[]),P=k,tt()},ft=()=>{k=null,C=new Set,P=null,G=null},le=z=>z===En?s("penzor.uploads"):Xs(z),Ae=()=>g.kind==="app"&&g.appId===En&&!b.some(z=>z.archive),vt=z=>!!f?.apps&&f.apps.apps.find(R=>R.appId===z)?.canManage!==!1,ot=()=>g.kind==="app"&&vt(g.appId),je=z=>g.kind==="trash"?vt(z.ref.appId):ot()&&!z.managed,Dt=()=>!!f?.apps&&!!f.trash?.length&&f.trash.every(z=>vt(z.appId)),Kt=()=>g.kind==="app"||g.kind==="sync"||g.kind==="ama"||g.kind==="content",mt=()=>g.kind==="app"?b[b.length-1]?.id??"ROOT":"ROOT",nn=()=>($t()??[]).filter(z=>C.has(z.key)),Ke=(z,R)=>{let M=Q().cloudInvoke;return M?M(z,R).catch(re=>({ok:!1,error:String(re?.message||re)})):Promise.resolve({ok:!1,error:"no_bridge"})};function et(z=500){Ze||ve||(Ze=setTimeout(()=>{Ze=null,ue()},z))}async function ue(){let z=U,R=await Ke("penzor:transfers");if(z!==U||ve)return;let M=new Map(Y.map(fe=>[fe.id,fe.state]));R?.ok&&Array.isArray(R.items)&&(Y=R.items);let re=Date.now(),ee=Y.some(Ya);Y.some(fe=>fe.kind==="up"&&fe.state==="done"&&M.get(fe.id)!=="done")&&(J&&clearTimeout(J),J=setTimeout(()=>{J=null,gt()},300)),ee?(Qe==null&&(Qe=re),ge=0,te==="hidden"&&(te="open",pe=re),te==="open"&&!qe&&re-pe>_e&&(te="pill")):Qe!=null&&(Ge(Qe),Qe=null);let ke=Y.some(fe=>fe.state==="failed")||q.length>0,Ne=Y.some(fe=>fe.state==="paused");!ee&&!Ne&&Y.length&&!ke&&te!=="hidden"&&(ge?re-ge>ct&&!qe&&(te="hidden",ge=0,xt.txClear("finished")):(ge=re,te==="pill"&&(te="open"))),!ee&&ke&&te==="pill"&&(te="open"),!Y.length&&!q.length&&(te="hidden"),Ye(),a(),(ee||te!=="hidden"&&ge)&&et()}function Ge(z){let R=Y.filter(ke=>(ke.finishedAt??0)>=z),M=R.filter(ke=>ke.kind==="up"&&ke.state==="done"),re=R.filter(ke=>ke.kind==="down"&&ke.state==="done"),ee=R.filter(ke=>ke.state==="failed");Ie||(ee.length?c(s("penzor.toast.txFailed",{n:ee.length})):M.length?c(M.length===1?s("penzor.toast.upDoneOne",{name:M[0].name}):s("penzor.toast.upDoneMany",{n:M.length})):re.length&&c(re.length===1?s("penzor.toast.downloaded",{name:re[0].name}):s("penzor.toast.downDoneMany",{n:re.length})))}function Ye(){let z=Y.filter(Ya),R=z.reduce((re,ee)=>re+Math.max(ee.size,ee.done),0),M=z.length?R>0?Math.min(1,z.reduce((re,ee)=>re+ee.done,0)/R):0:null;e.app?.setSpaceProgress?.(yn,M??To(he?.get()??null))}function an(){if(!he)return;let z=Xa(he.get());z!==rt&&(rt=z,e.app?.setSpaceDot?.(yn,z))}function yt(){he?.get()?.notes.pending||(be=!1),Ye(),an(),a()}let O=()=>{let z=he?.get()??null;if(!z||!xe.size)return z;let R=(M,re)=>xe.has(M)?{...re,on:xe.get(M)}:re;return{...z,notes:R("notes",z.notes),agents:R("agents",z.agents),plugins:R("plugins",z.plugins)}},de=async z=>{try{return await z()??{ok:!1}}catch(R){return{ok:!1,error:String(R?.message||R)}}},Te=()=>{te="open",pe=Date.now(),ge=0};async function tt(){j=null;let z=qt();if(g.kind!=="app"||!z||z.dir){a();return}let R=z.key,M=await o(`/files/${encodeURIComponent(R)}/versions`);k===R&&(j=M.ok&&Array.isArray(M.data)?M.data.map(re=>({versionNumber:re.versionNumber,fileSize:Number(re.fileSize)||0,createdAt:Ao(re.createdAt)})):[],a())}let qt=()=>k?(v??[]).find(z=>z.key===k)??null:null;async function _t(){await Xt(),Ht(),a()}async function gt(){let z=++N;u=!0,m=null,a();let R=await Q().authStatus?.().catch(()=>null);if(z!==N)return;if(R&&!R.loggedIn){p="out",f=null,u=!1,a();return}let{snap:M,signedOut:re}=await df(o);if(z===N){if(u=!1,re){p="out",f=null,a();return}p="in",!M.ledger&&f?.ledger&&(M.ledger=f.ledger,M.ledgerStale=!0),f=M,_.clear(),m=!M.ledger&&!M.sync&&!M.ama&&!M.apps&&!M.exports&&!M.trash?s("penzor.unreachable"):null,!_o(g)&&g.kind!=="exports"&&g.kind!=="trash"&&g.kind!=="source"&&((g.kind==="content"?M.contentDevices!=null:g.kind==="sync"?M.sync?.vaults.some(ke=>ke.vault===g.vault):g.kind==="ama"?M.ama?.some(ke=>ke.id===g.vaultId):g.appId===En?M.apps:M.apps?.apps.some(ke=>ke.appId===g.appId&&ke.files>0))||(g={kind:"overview"},h="",b=[],ft())),await _t()}}async function xn(z,R={},M=g){let re=M.kind==="content"?{path:`/remotesync/content/${encodeURIComponent(M.namespace)}/nodes/${encodeURIComponent(z.ref.id)}/content`,mode:"bytes"}:M.kind==="sync"?{path:`/remotesync/vaults/${encodeURIComponent(M.vault)}/file?path=${encodeURIComponent(z.key)}`,mode:"signed"}:M.kind==="ama"?z.ref.kind==="binary"?{path:`/amadeus/vaults/${encodeURIComponent(M.vaultId)}/asset?ref=${encodeURIComponent(z.key)}`,mode:"bytes"}:{path:`/amadeus/vaults/${encodeURIComponent(M.vaultId)}/file?path=${encodeURIComponent(z.key)}`,mode:"text"}:M.kind==="app"?{path:`/files/${encodeURIComponent(z.key)}/content`,mode:"bytes"}:M.kind==="source"&&z.ref?.downloadPath?{path:z.ref.downloadPath,mode:"bytes"}:M.kind==="exports"?{path:`/exports/${encodeURIComponent(z.key)}/url`,mode:"signed"}:null;if(!re)return;let ee=await Ke("penzor:download",{...re,name:Px(z.name),size:z.size,...R});if(!ee?.ok){d(ee?.error||"download");return}Te(),et(0),a()}let Me=()=>{_o(g)?e.closeView?.(Nn.info,{collapse:!0}):e.openView?.(Nn.info,{location:"right"})},xt={ctx:e,locale:i,t:s,b:l,subscribe(z){return r.add(z),()=>{r.delete(z)}},auth:()=>p,loading:()=>u,error:()=>m,snap:()=>f,loc:()=>g,path:()=>h,appStack:()=>b,rows:$t,rowsError:()=>w,selected:qt,sort:()=>x,query:()=>T,menu:()=>F,side:()=>V,confirmEmpty:()=>D,versions:()=>j,moveFolders:()=>A,thisDevice:()=>oe,setDevice(z){oe=z,a()},appLabel:le,canManageRow:je,canEmptyTrash:Dt,canManage:ot,canWrite:Ae,canMulti:Kt,folderId:mt,selection:nn,isSelected:z=>C.has(z),selectAll(){if(!Kt())return;let z=$t()??[];C=new Set(z.map(R=>R.key)),!k&&z[0]&&(k=z[0].key),F=null,a()},newFolder:()=>G,startNewFolder(){if(!Ae())return;let z=s("penzor.newFolder.default"),R=new Set((v??[]).filter(re=>re.dir).map(re=>re.name)),M=z;for(let re=1;R.has(M)&&re<1e3;re++)M=`${z} (${re})`;G=M,F=null,a()},cancelNewFolder(){G!=null&&(G=null,a())},async createFolder(z){let R=z.trim();if(G=null,!R||!Ae()){a();return}a();let M=await o("/files",{method:"POST",body:{type:"directory",parentId:mt(),name:R},projectSource:En});if(!M.ok){M.status===409?c(s("penzor.toast.folderExists",{name:R})):d(M);return}M.data?.id&&(k=M.data.id,C=new Set([M.data.id]),P=M.data.id),await _t()},transfers:()=>Y,notices:()=>q,async acknowledgeStorageNotice(){let z=f?.ledger?.rollout;if(!z||z.acknowledgedAt||f?.ledgerStale)return;let R=await o("/storage/notice/ack",{method:"POST",body:{revision:z.revision}});if(!R.ok){d(R);return}await gt()},txRows(){if(!Ae())return[];let z=mt();return Y.filter(R=>R.kind==="up"&&R.projectSource===En&&R.parentId===z&&(Ya(R)||R.state==="paused")).map(R=>({key:`tx:${R.id}`,id:R.id,name:R.name,size:R.size,done:R.done,state:R.state}))},card:()=>te,setCard(z){te=z,pe=Date.now(),z!=="hidden"&&et(0),a()},holdCard(z){qe=z,pe=Date.now(),z||et()},async upload(z,R){if(!Ae())return;let M=U,re=R?.id??mt(),ee=R?[...b,R]:[...b],ke=await z;if(M!==U||ve||!ke.length)return;Ct.set(re,ee);let Ne=await Ke("penzor:upload",{...typeof ke[0]=="string"?{paths:ke}:{files:ke},parentId:re,projectSource:En});if(!(M!==U||ve)){if(Ne?.ok){Te(),et(0),a();return}if(Ne?.error==="quota"){q=[...q,{id:String(Date.now()),kind:"quota",short:Number(Ne.short)||0}],Te(),a();return}if(Ne?.error==="too_many"){c(s("penzor.err.too_many",{n:Number(Ne.max)||2e3}));return}Ne?.error!=="no_files"&&d(Ne?.error==="account_changed"?s("penzor.err.account_changed"):Ne?.error==="not_signed_in"?s("penzor.err.not_signed_in"):Ne?.error||"upload")}},async txOp(z,R){await Ke("penzor:transfer",{id:z,op:R}),pe=Date.now(),await ue()},async txAll(z){let R=z==="pause"?M=>Ya(M):z==="resume"?M=>M.state==="paused":M=>M.state==="failed"||M.state==="canceled";for(let M of Y.filter(R))await Ke("penzor:transfer",{id:M.id,op:z});z==="retry"&&(q=[]),pe=Date.now(),await ue()},async txClear(z){await Ke("penzor:transfers:clear",{which:z}),z==="all"&&(q=[]),await ue()},dismissNotice(z){q=q.filter(R=>R.id!==z),!Y.length&&!q.length&&(te="hidden"),a()},locate(z){if(z.kind==="down"){z.localPath&&Q().revealHostPath?.(z.localPath);return}let R=Ct.get(z.targetId??"")??[];g={kind:"app",appId:En},b=R,h="",T="",V={kind:"view"},F=null,ft(),z.fileId&&z.parentId===z.targetId&&(k=z.fileId,C=new Set([z.fileId])),a(),e.app?.openSpace?.(yn).then(()=>{e.openView?.(Nn.main),Me()}),_t()},async downloadMany(z){let R=z.filter(fe=>!fe.dir);if(R.length<=1){R[0]&&await xt.download(R[0]);return}let M=new Date,re=s("penzor.download.folder",{date:`${M.getFullYear()}-${String(M.getMonth()+1).padStart(2,"0")}-${String(M.getDate()).padStart(2,"0")}`}),ee=`${Date.now()}`,ke=g,Ne=U;for(let fe of R){if(U!==Ne)break;await xn(fe,{subdir:re,batch:ee},ke)}},async trashMany(z){if(g.kind!=="app"||!z.length||!z.every(je))return;if(z.length===1){await xt.trash(z[0]);return}let R=await o("/files/batch/delete",{method:"POST",body:{ids:z.map(re=>re.key)},projectSource:g.appId});if(!R.ok){d(R);return}let M=(R.data?.results??[]).filter(re=>re.success===!1).length;c(M?s("penzor.toast.batchPartial",{n:M}):s("penzor.toast.trashedN",{n:z.length})),ft(),await gt()},async moveMany(z,R){if(g.kind!=="app"||!z.length||!z.every(je))return;V={kind:"view"};let M=z.map(ke=>ke.key).filter(ke=>ke!==R.id),re=await o("/files/batch/move",{method:"POST",body:{ids:M,parentId:R.id},projectSource:g.appId});if(!re.ok){d(re),a();return}let ee=(re.data?.results??[]).filter(ke=>ke.success===!1).length;c(ee?s("penzor.toast.batchPartial",{n:ee}):s("penzor.toast.movedN",{n:M.length,name:R.name})),ft(),await gt()},setVisible(z){Ie=z},picker:{},refresh:gt,go(z){let R=uf(z);if(!R)return;let M=Co(R)===Co(g);g=R,M||(h="",b=[],ft(),T="",V={kind:"view"},D=!1),F=null,a(),e.openView?.(Nn.main),Me(),_t()},openFolder(z){g={kind:"app",appId:En},b=z,h="",T="",V={kind:"view"},F=null,D=!1,ft(),a(),e.openView?.(Nn.main),Me(),_t()},openDir(z){if(!(!z.dir||g.kind==="exports"||g.kind==="trash")){if(g.kind==="source"&&z.ref?.go){xt.go(z.ref.go);return}g.kind==="app"?b=[...b,{id:z.key,name:z.name,...z.archive?{archive:!0}:{}}]:h=z.key,ft(),T="",V={kind:"view"},_t()}},up(z){if(g.kind==="app")b=b.slice(0,z??Math.max(0,b.length-1));else{let R=h?h.split("/"):[];h=R.slice(0,z??Math.max(0,R.length-1)).join("/")}ft(),V={kind:"view"},_t()},select(z,R){let M=$t()??[];if(z&&R?.range&&Kt()&&P&&M.some(re=>re.key===P)){let re=M.findIndex(ke=>ke.key===P),ee=M.findIndex(ke=>ke.key===z.key);C=new Set(M.slice(Math.min(re,ee),Math.max(re,ee)+1).map(ke=>ke.key)),k=z.key}else z&&R?.toggle&&Kt()?(C.has(z.key)&&C.size>1?(C.delete(z.key),k===z.key&&(k=[...C].pop()??null)):(C.add(z.key),k=z.key),P=z.key):(k=z?.key??null,C=new Set(k?[k]:[]),P=k);G=null,V={kind:"view"},F=null,z&&!_o(g)&&e.openView?.(Nn.info,{location:"right"}),tt(),a()},setSort(z){x=z,a()},setQuery(z){T=z,a()},openMenu(z,R,M){M&&!C.has(M.key)&&(k=M.key,C=new Set([M.key]),P=M.key,tt()),F={x:z,y:R,row:M},V={kind:"view"},a()},closeMenu(){F&&(F=null,a())},setSide(z){V=z,F=null,z.kind==="move"&&(A=null,xt.moveBrowse(z.at)),e.openView?.(Nn.info,{location:"right"}),a()},setConfirmEmpty(z){D=z,a()},async download(z){z.dir||(F=null,await xn(z))},async trash(z){if(g.kind!=="app"||!je(z))return;let R=$t()??[],M=R.findIndex(ke=>ke.key===z.key),re=await o(`/files/${encodeURIComponent(z.key)}`,{method:"DELETE",projectSource:g.appId});if(!re.ok){d(re);return}c(s("penzor.toast.trashed",{name:z.name}));let ee=R[M+1]??R[M-1];k=ee&&ee.key!==z.key?ee.key:null,F=null,await gt()},async restore(z){if(!f||g.kind!=="trash"||!je(z))return;let R=await o(`/trash/${encodeURIComponent(z.key)}/restore`,{method:"POST",body:{}});if(!R.ok){d(R);return}c(s("penzor.toast.restored",{name:z.name})),k=null,await gt()},async purge(z){if(!f||g.kind!=="trash"||!je(z))return;let R=await o(`/trash/${encodeURIComponent(z.key)}`,{method:"DELETE"});if(V={kind:"view"},!R.ok){d(R),a();return}c(s("penzor.toast.purged",{name:z.name})),k=null,await gt()},async emptyTrash(){if(!f||!Dt())return;let z=await o("/trash?all=1",{method:"DELETE"});if(D=!1,!z.ok){d(z),a();return}let R=(z.data?.results??[]).filter(M=>M.success===!1).length;c(R?s("penzor.toast.emptyPartial",{n:R}):s("penzor.toast.emptied")),k=null,await gt()},async rename(z,R){let M=R.trim();if(V={kind:"view"},!M||M===z.name){a();return}let re=g.kind==="exports"?await o(`/exports/${encodeURIComponent(z.key)}/rename`,{method:"PUT",body:{newFileName:M}}):g.kind==="app"&&je(z)?await o(`/files/${encodeURIComponent(z.key)}/rename`,{method:"PATCH",body:{name:M},projectSource:g.appId}):null;if(re){if(!re.ok){d(re),a();return}c(s("penzor.toast.renamed",{name:M})),await gt()}},moveBrowse(z){if(g.kind!=="app"||!ot())return;V={kind:"move",at:z},A=null,a();let R=z[z.length-1]?.id,M=g.appId;o(`/files${R?`?parentId=${encodeURIComponent(R)}`:""}`,{projectSource:M}).then(re=>{V.kind!=="move"||V.at!==z||(A=re.ok?re.data.filter(ee=>ee.fileType==="directory").map(ee=>({id:ee.id,name:ee.name})):[],a())})},async moveTo(z,R){if(g.kind!=="app"||!je(z))return;if(V={kind:"view"},R.id===z.key){a();return}let M=await o(`/files/${encodeURIComponent(z.key)}/move`,{method:"PATCH",body:{parentId:R.id},projectSource:g.appId});if(!M.ok){d(M),a();return}c(s("penzor.toast.moved",{name:R.name})),k=null,await gt()},async restoreVersion(z,R){if(!je(z))return;let M=await o(`/files/${encodeURIComponent(z.key)}/restore/${R.versionNumber}`,{method:"POST",body:{}});if(!M.ok){d(M);return}c(s("penzor.toast.versionRestored",{n:R.versionNumber})),await gt(),tt()},async deleteExport(z){if(!f)return;let R=await o(`/exports/${encodeURIComponent(z.key)}`,{method:"DELETE"});if(V={kind:"view"},!R.ok){d(R),a();return}c(s("penzor.toast.purged",{name:z.name})),k=null,await gt()},signIn(){Q().forsionLogin?.()},openSync(){e.app?.openSettings?.("sync/s-remote")},async focusVault(z){await e.app?.openSpace?.(yn),f||await gt(),xt.go(`sync:${z}`)},hasSync:()=>!!he,content:()=>Wt,syncState:O,syncBusy:z=>De.has(z),async setSync(z,R){if(!he||De.has(z))return;De.add(z),xe.set(z,R),a();let M=await de(()=>he.set(z,R));De.delete(z),xe.delete(z),!ve&&(M.ok||d(M.error||"sync"),yt())},async resolveNotes(z){if(!he||De.has("resolve"))return;De.add("resolve"),a();let R=await de(()=>he.resolveNotes(z));De.delete("resolve"),be=!1,!ve&&(R.ok||d(R.error||"sync"),yt())},confirmCloud:()=>be,setConfirmCloud(z){be=z,a()},enter(){},dispose(){ve=!0,clearInterval(hn),Ze&&clearTimeout(Ze),J&&clearTimeout(J),e.app?.setSpaceProgress?.(yn,null),rt&&e.app?.setSpaceDot?.(yn,!1),r.clear(),io?.(),Hr?.(),ii?.()}},Wt=null,Xe="",Bt=async()=>{let z=Q().cloudInvoke;if(!z){clearInterval(hn);return}let R=typeof document<"u"&&typeof document.hasFocus=="function"?document.hasFocus():void 0,M=await z(Jt.get,null,{focused:R}).catch(ke=>({ok:!1,error:String(ke)}));if(ve)return;!M?.ok&&/unavailable|not a Forsion Extend channel/i.test(M?.error??"")&&clearInterval(hn);let re=M?.ok&&M.value?.available?M.value:null,ee=re?JSON.stringify([Pn(re),re.config.enabled,re.deviceId,re.devices]):"";Wt=re,ee!==Xe&&(Xe=ee,a())},hn=setInterval(()=>void Bt(),5e3);Bt();let io=e.subscribeLocale?.(()=>a()),ii=he?.subscribe(yt);an(),ue();let Hr=Q().onAuthChanged?.(()=>{++L,++N,++U,f=null,v=null,w=null,_.clear(),ft(),F=null,V={kind:"view"},D=!1,j=null,A=null,g={kind:"overview"},h="",b=[],T="",Ct.clear(),q=[],Y=[],te="hidden",Qe=null,ge=0,J&&(clearTimeout(J),J=null),e.app?.setSpaceProgress?.(yn,null),be=!1,xe.clear(),a(),gt()});return xt}var wf=e=>e.kind==="content"?"penzor.source.readonly":e.kind==="sync"?"penzor.side.readonlySync":e.kind==="ama"?"penzor.side.readonlyAma":e.kind==="source"?e.source==="plugins"?"penzor.source.pluginNote":e.source==="market"?"penzor.source.marketNote":"penzor.source.readonly":null;var zf=`
1364
1369
  .pz, .pz-side { color: var(--text); font-family: var(--font-ui); font-size: var(--ui-font-body); line-height: var(--ui-line-body); }
1365
1370
  .pz { height: 100%; min-height: 0; display: flex; flex-direction: column; }
1366
1371
  .pz-side { height: 100%; min-height: 0; overflow: auto; box-sizing: border-box; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
@@ -1576,7 +1581,7 @@ ${Op(e,t)}`,d=await s({prompt:c,send:!1});d?.ok?r(""):i(d?.error||e.t("guide.ask
1576
1581
  .pz-legacy > svg { color: var(--text-muted); }
1577
1582
  .pz-legacy > span { flex: 1; min-width: 0; }
1578
1583
  .pz-legacy small { display: block; margin-top: 2px; color: var(--text-muted); font-size: var(--ui-font-meta); line-height: var(--ui-line-meta); }
1579
- `;function qn(e,t,o){return e.fetch?e.fetch(t,o):fetch(t,{...o,headers:{Authorization:`Bearer ${e.token}`,...o.headers}})}async function Ao(e,t,o,r,a=6e4){let i=await(e.fetch??fetch)(e.base+o,{method:t,headers:{"Content-Type":"application/json","X-Project-Source":"connect",...e.token&&!e.fetch?{Authorization:`Bearer ${e.token}`}:{}},body:r===void 0?void 0:JSON.stringify(r),signal:AbortSignal.timeout(a)}),s=await i.json().catch(()=>({}));return{status:i.status,json:s}}function Wn(e,t){if(typeof t!="string"||!t.startsWith("/"))return null;let o=String(e||"").replace(/\/+$/,"").replace(/\/api$/,"");if(!o)return null;let r,a;try{r=new URL(o),a=new URL(o+"/api"+t)}catch{return null}return r.protocol!=="http:"&&r.protocol!=="https:"||a.origin!==r.origin||!a.pathname.startsWith("/api/")?null:a.toString()}var rf=["bytes","signed","text"],af=/^[A-Za-z0-9_-]{1,64}$/,sf=/^[a-z0-9][a-z0-9-]{0,63}$/;function lf(e){if(typeof e!="string")return null;let o=(e.split(/[\\/]/).pop()??"").replace(/[\u0000-\u001f<>:"|?*]/g,"").trim().slice(0,200);return o&&o!=="."&&o!==".."?o:null}var Ky={".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".heic":"image/heic",".svg":"image/svg+xml",".pdf":"application/pdf",".txt":"text/plain",".md":"text/markdown",".json":"application/json",".csv":"text/csv",".mp4":"video/mp4",".mov":"video/quicktime",".mp3":"audio/mpeg",".zip":"application/zip",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".xlsx":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",".pptx":"application/vnd.openxmlformats-officedocument.presentationml.presentation"};function el(e){let t=e.lastIndexOf(".");return Ky[t>0?e.slice(t).toLowerCase():""]??"application/octet-stream"}function cf(e,t,o,r){let a=o.replace(/[^\x20-\x7e]/g,"_").replace(/["\\]/g,"_")||"file",i=encodeURIComponent(o).replace(/['()*]/g,l=>`%${l.charCodeAt(0).toString(16).toUpperCase()}`),s="";for(let[l,c]of Object.entries(t))s+=`--${e}\r
1584
+ `;function Vn(e,t,o){return e.fetch?e.fetch(t,o):fetch(t,{...o,headers:{Authorization:`Bearer ${e.token}`,...o.headers}})}async function Eo(e,t,o,r,a=6e4){let i=await(e.fetch??fetch)(e.base+o,{method:t,headers:{"Content-Type":"application/json","X-Project-Source":"connect",...e.token&&!e.fetch?{Authorization:`Bearer ${e.token}`}:{}},body:r===void 0?void 0:JSON.stringify(r),signal:AbortSignal.timeout(a)}),s=await i.json().catch(()=>({}));return{status:i.status,json:s}}function jn(e,t){if(typeof t!="string"||!t.startsWith("/"))return null;let o=String(e||"").replace(/\/+$/,"").replace(/\/api$/,"");if(!o)return null;let r,a;try{r=new URL(o),a=new URL(o+"/api"+t)}catch{return null}return r.protocol!=="http:"&&r.protocol!=="https:"||a.origin!==r.origin||!a.pathname.startsWith("/api/")?null:a.toString()}var Sf=["bytes","signed","text"],Cf=/^[A-Za-z0-9_-]{1,64}$/,_f=/^[a-z0-9][a-z0-9-]{0,63}$/;function Af(e){if(typeof e!="string")return null;let o=(e.split(/[\\/]/).pop()??"").replace(/[\u0000-\u001f<>:"|?*]/g,"").trim().slice(0,200);return o&&o!=="."&&o!==".."?o:null}var Rx={".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".webp":"image/webp",".heic":"image/heic",".svg":"image/svg+xml",".pdf":"application/pdf",".txt":"text/plain",".md":"text/markdown",".json":"application/json",".csv":"text/csv",".mp4":"video/mp4",".mov":"video/quicktime",".mp3":"audio/mpeg",".zip":"application/zip",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".xlsx":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",".pptx":"application/vnd.openxmlformats-officedocument.presentationml.presentation"};function rl(e){let t=e.lastIndexOf(".");return Rx[t>0?e.slice(t).toLowerCase():""]??"application/octet-stream"}function Tf(e,t,o,r){let a=o.replace(/[^\x20-\x7e]/g,"_").replace(/["\\]/g,"_")||"file",i=encodeURIComponent(o).replace(/['()*]/g,l=>`%${l.charCodeAt(0).toString(16).toUpperCase()}`),s="";for(let[l,c]of Object.entries(t))s+=`--${e}\r
1580
1585
  Content-Disposition: form-data; name="${l}"\r
1581
1586
  \r
1582
1587
  ${c}\r
@@ -1586,7 +1591,7 @@ Content-Type: ${r}\r
1586
1591
  \r
1587
1592
  `,{head:s,tail:`\r
1588
1593
  --${e}--\r
1589
- `}}function df(e,t){let o=e.filter(([l])=>t-l<=3e3);if(o.length<2)return 0;let[r,a]=o[0],[i,s]=o[o.length-1];return i>r?Math.max(0,(s-a)/(i-r)*1e3):0}function uf(e,t){let o=t??{};return e===401?"not_signed_in":o.code==="STORAGE_QUOTA_EXCEEDED"?"quota":o.code==="STORAGE_BUSY"||o.code==="STORAGE_RECONCILIATION_REQUIRED"?"storage_unavailable":o.code==="FILE_TOO_LARGE"||e===413?"too_large":typeof o.detail=="string"&&/quota exceeded/i.test(o.detail)?"quota":o.code==="STORAGE_NOT_CONFIGURED"?"storage_unavailable":`http_${e}`}var Yy=3,Zy=200,ol=32,Qy=e=>typeof e=="string"&&!!e&&e!=="."&&e!==".."&&!/[\\/]/.test(e);function rl(e,t){return t?e.flatMap(o=>{let r=(o.webkitRelativePath||o.name).split("/");return r.slice(1).some(a=>a.startsWith("."))||r.length-1>ol?[]:[{file:o,relDir:r.slice(0,-1)}]}):e.map(o=>({file:o,relDir:[]}))}function pf(e){let t=Array.from(e.items??[]).filter(a=>a.kind==="file").map(a=>({entry:a.webkitGetAsEntry?.()??null,file:a.getAsFile()})),o=[],r=async(a,i)=>{if(i.length>ol)return!0;if(a.isFile){let c=await new Promise(d=>a.file(d,()=>d(null)));return c&&o.push({file:c,relDir:i}),o.length<=2e3}if(!a.isDirectory)return!0;let s=a.createReader(),l=[];for(;;){let c=await new Promise(d=>s.readEntries(d,()=>d([])));if(!c.length)break;l.push(...c)}l.sort((c,d)=>c.name<d.name?-1:c.name>d.name?1:0);for(let c of l)if(!c.name.startsWith(".")&&!await r(c,[...i,a.name]))return!1;return!0};return(async()=>{for(let a of t)if(a.entry){if(!await r(a.entry,[]))break}else a.file&&o.push({file:a.file,relDir:[]});return o})()}function ff(e,t=window,o={}){let r=[],a=new Map,i=!1,s=0,l=()=>Date.now(),c=()=>Array.from(t.crypto.getRandomValues(new Uint8Array(16)),_=>_.toString(16).padStart(2,"0")).join("");async function d(){let _=await e.getCloud();if(!_.token)throw new Error("not_signed_in");return _}async function p(_,L={}){let $=await d(),P=Wn($.base,_);if(!P)throw new Error("bad_path");let K=await qn($,P,{method:L.method??"GET",headers:{...L.body!==void 0?{"Content-Type":"application/json"}:{},...L.projectSource?{"X-Project-Source":L.projectSource}:{}},body:L.body!==void 0?JSON.stringify(L.body):void 0,signal:AbortSignal.timeout(3e4)});return{status:K.status,json:await K.json().catch(()=>null)}}let u=_=>{let{attempt:L,relDir:$,abort:P,samples:K,file:z,dl:A,...R}=_;return{...R,speed:_.state==="active"?df(K,l()):0}},f=_=>_.state==="active"||_.state==="queued"||_.state==="paused",m=(_,L,$=null)=>{_.state=L,_.error=$,_.abort=null,_.finishedAt=l(),_.samples=[];let P=r.filter(K=>K.state==="done"||K.state==="canceled");for(let K of P.slice(0,Math.max(0,P.length-Zy)))r.splice(r.indexOf(K),1);h()},g=_=>{let L=String(_?.message||_);return["too_large","quota","not_signed_in","bad_response","popup_blocked","download_unavailable","download_failed"].includes(L)||L.startsWith("http_")?L:"network"};function h(){if(!i)for(let _ of["up","down"]){let L=r.filter($=>$.kind===_&&$.state==="active").length;for(let $ of r){if(L>=Yy)break;if($.kind!==_||$.state!=="queued")continue;L++,$.state="active",$.startedAt=l(),$.done=0,$.samples=[[l(),0]],$.abort=new AbortController;let P=$.abort.signal,K=++$.attempt,z=()=>$.attempt===K&&$.state==="active";(_==="up"?x($,z,P):F($,z,P)).catch(A=>{z()&&m($,"failed",g(A))})}}}let v=(_,L)=>{_.done=L;let $=l(),P=_.samples[_.samples.length-1];for((!P||$-P[0]>=200)&&_.samples.push([$,L]);_.samples.length>2&&$-_.samples[0][0]>3500;)_.samples.shift()};function b(_){let L=s,$=()=>{if(i||L!==s)throw new Error("account_changed")};if(!_.relDir.length)return Promise.resolve(_.targetId);let P=a.get(_.batch);P||a.set(_.batch,P=new Map);let K=P,z=A=>{if(A===0)return Promise.resolve(_.targetId);let R=_.relDir.slice(0,A).join("/"),X=K.get(R);return X||(X=z(A-1).then(async Q=>{$();let H=_.relDir[A-1],te=await p("/files",{method:"POST",body:{type:"directory",parentId:Q,name:H},projectSource:_.projectSource});if($(),te.status===201&&typeof te.json?.id=="string")return te.json.id;if(te.status===409){let pe=await p(`/files${Q==="ROOT"?"":`?parentId=${encodeURIComponent(Q)}`}`,{projectSource:_.projectSource}),Ue=Array.isArray(pe.json)?pe.json.find(me=>me?.fileType==="directory"&&me?.name===H):null;if(Ue?.id)return String(Ue.id)}throw new Error(te.status===401?"not_signed_in":`http_${te.status}`)}),X.catch(()=>K.delete(R)),K.set(R,X)),X};return z(_.relDir.length)}async function x(_,L,$){let P=_.file;if(P.size>52428800)throw new Error("too_large");let K=await b(_);if(!L())return;_.parentId=K;let z=await d();if(!L())return;let A=Wn(z.base,"/files/upload");if(!A)throw new Error("bad_path");let R=`----penzor${c()}`,{head:X,tail:Q}=cf(R,{parentId:K,autoRename:"true"},_.name,P.type||el(_.name)),H=await qn(z,A,{method:"POST",headers:{"Content-Type":`multipart/form-data; boundary=${R}`,..._.projectSource?{"X-Project-Source":_.projectSource}:{}},body:new Blob([X,P,Q]),signal:$}),te=await H.json().catch(()=>null);L()&&(H.status===201||H.status===200?(_.fileId=typeof te?.id=="string"?te.id:null,v(_,_.size),m(_,"done")):m(_,"failed",uf(H.status,te)))}async function w(_,L,$){L.size=Number(_.headers.get("content-length"))||L.size;let P=_.headers.get("content-type")||"";if(!_.body)return _.blob();let K=_.body.getReader(),z=[],A=0;for(;;){let{done:R,value:X}=await K.read();if(R)break;if(!$())throw K.cancel().catch(()=>{}),new Error("aborted");z.push(X),A+=X.length,v(L,A)}return A>L.size&&(L.size=A),new Blob(z,{type:P})}let S=(_,L)=>{let $=URL.createObjectURL(_),P=t.document.createElement("a");P.href=$,P.download=L,t.document.body.appendChild(P),P.click(),P.remove(),setTimeout(()=>URL.revokeObjectURL($),6e4)},T=_=>{let L=t.open("","_blank");return L?(L.opener=null,L.location.replace(_),!0):!1};async function F(_,L,$){let P=_.dl,K=await d();if(!L())return;let z=Wn(K.base,P.path);if(!z)throw new Error("bad_path");let A=await qn(K,z,{signal:$});if(!A.ok)throw new Error(A.status===401?"not_signed_in":`http_${A.status}`);let R;if(P.mode==="bytes")R=await w(A,_,L);else{let X=await A.json().catch(()=>null);if(P.mode==="text"){if(typeof X?.content!="string")throw new Error("bad_response");R=new Blob([X.content],{type:el(P.name)}),_.size=R.size,v(_,R.size)}else{if(typeof X?.url!="string"||!/^https?:\/\//i.test(X.url))throw new Error("bad_response");let Q=await fetch(X.url,{signal:$,credentials:"omit"}).catch(H=>{if($.aborted)throw H;return null});if(!Q){if(!L())return;if(o.openExternal)await o.openExternal(X.url);else if(!T(X.url))throw new Error("popup_blocked");if(!L())return;m(_,"done");return}if(!Q.ok)throw new Error(`http_${Q.status}`);R=await w(Q,_,L)}}L()&&(o.saveDownload?await o.saveDownload(R,P.name):S(R,P.name),L()&&m(_,"done"))}let B=(_,L)=>{let $={projectSource:void 0,parentId:void 0,targetId:void 0,fileId:null,localPath:null,..._,id:c(),attempt:0,done:0,state:L?"failed":"queued",error:L??null,abort:null,samples:[],speed:0,startedAt:null,finishedAt:L?l():null};return r.push($),$};e.handle("penzor:upload",async(_,L)=>{let $=s,P=L??{},K=(Array.isArray(P.files)?P.files:[]).filter(H=>!!H&&H.file instanceof Blob&&typeof H.file.name=="string"&&Array.isArray(H.relDir)&&H.relDir.length<=ol&&H.relDir.every(Qy)),z=typeof P.parentId=="string"&&af.test(P.parentId)?P.parentId:null,A=typeof P.projectSource=="string"&&sf.test(P.projectSource)?P.projectSource:null;if(!K.length)return{ok:!1,error:"no_files"};if(!z||!A)return{ok:!1,error:"bad_target"};if(K.length>2e3)return{ok:!1,error:"too_many",max:2e3};if(!(await e.getCloud()).token)return{ok:!1,error:"not_signed_in"};if($!==s)return{ok:!1,error:"account_changed"};let R=K.filter(H=>H.file.size<=52428800).reduce((H,te)=>H+te.file.size,0);try{let H=await p("/storage/quota"),te=Number(H.json?.used),pe=Number(H.json?.quota);if(H.status===200&&pe>0&&te+R>pe)return{ok:!1,error:"quota",short:te+R-pe}}catch{}if($!==s)return{ok:!1,error:"account_changed"};if(i)return{ok:!1,error:"disposed"};let X=c(),Q=K.map(H=>B({kind:"up",name:H.file.name,size:H.file.size,projectSource:A,parentId:H.relDir.length?null:z,targetId:z,batch:X,relDir:H.relDir,file:H.file},H.file.size>52428800?"too_large":void 0).id);return h(),{ok:!0,ids:Q,batch:X}}),e.handle("penzor:download",async(_,L)=>{let $=s,P=L??{},K=rf.includes(P.mode)?P.mode:null,z=lf(P.name);if(!K)return{ok:!1,error:"bad_mode"};if(!z)return{ok:!1,error:"bad_name"};let A=await e.getCloud();if($!==s)return{ok:!1,error:"account_changed"};if(typeof P.path!="string"||!Wn(A.base,P.path))return{ok:!1,error:"bad_path"};if(!A.token)return{ok:!1,error:"not_signed_in"};if(i)return{ok:!1,error:"disposed"};let R=B({kind:"down",name:z,size:Math.max(0,Number(P.size)||0),relDir:[],batch:typeof P.batch=="string"&&P.batch.length<=64?P.batch:c(),dl:{path:P.path,mode:K,name:z}});return h(),{ok:!0,id:R.id}}),e.handle("penzor:transfers",()=>({ok:!0,items:r.map(u)})),e.handle("penzor:transfer",(_,L)=>{let $=L??{},P=r.find(z=>z.id===$.id);if(!P)return{ok:!1,error:"not_found"};let K=()=>{P.abort?.abort(),P.abort=null,P.done=0,P.samples=[]};switch($.op){case"pause":(P.state==="active"||P.state==="queued")&&(K(),P.state="paused",h());break;case"resume":P.state==="paused"&&(P.state="queued",h());break;case"cancel":f(P)&&(K(),m(P,"canceled"));break;case"retry":(P.state==="failed"||P.state==="canceled")&&(P.state="queued",P.error=null,P.finishedAt=null,P.done=0,h());break;case"dismiss":P.state!=="active"&&P.state!=="queued"&&r.splice(r.indexOf(P),1);break;default:return{ok:!1,error:"bad_op"}}return{ok:!0}}),e.handle("penzor:transfers:clear",(_,L)=>{let $=L?.which==="all";for(let P of[...r])(P.state==="done"||P.state==="canceled"||$&&P.state==="failed")&&r.splice(r.indexOf(P),1);return{ok:!0}});let N=_=>{r.some(f)&&(_.preventDefault(),_.returnValue="")};t.addEventListener("beforeunload",N);let j=()=>{s++;for(let _ of r)_.state="canceled",_.abort?.abort();r.length=0,a.clear()};return{reset:j,dispose(){i=!0,t.removeEventListener("beforeunload",N),j()}}}var Xo=[{id:"notes",path:"Amadeus"},{id:"agents",path:"agents"},{id:"profile",path:"human"},{id:"plugins",path:"Plugins"}],al=new Set(["Amadeus","agents"]);var To=new Set(["muse"]);var ex=e=>[...To].some(t=>il(e,`agents/${t}`));var Pr=(e,t)=>Qp(t,e)?.target??"off",il=(e,t)=>e===t||e.startsWith(t+"/"),tx=e=>Xo.some(t=>il(e,t.path)),sl=e=>e.some(t=>t.id==="default")?Ga():"default",tn=(e,t)=>e.enabled?Pr(e.rules,t):"off";function mf(e,t,o){o==="off"&&(e=e.filter(i=>t?!i.source.startsWith(t+"/"):!i.source||tx(i.source)));let r=e.find(i=>i.source===t),a=e.filter(i=>i!==r);return t&&Pr(a,t)===o?a:r?e.map(i=>i===r?{...i,target:o}:i):[...e,{id:t?Ga():sl(e),source:t,target:o}]}function gf(e,t,o,r=!1){if(ex(t))return e;let a=e.rules;if(!e.enabled){let i=a.find(l=>!l.source),s=t?a.filter(l=>l.source&&il(l.source,t)):[];a=[{id:i?.id??sl(s),source:"",target:"off"},...s],t!=="agents"&&(a=bf(a,"agents","off"))}if(!t)for(let i of Xo)a.some(s=>s.source===i.path)||(a=[...a,{id:Ga(),source:i.path,target:Pr(a,i.path)}]);return nx({...e,rules:mf(a,t,o)},r)}function nx(e,t=!1){let o=r=>Pr(e.rules,r)!=="off";return{...e,enabled:Xo.some(r=>o(r.path))||e.rules.some(r=>r.source&&r.target!=="off")||t&&o("")}}function hf(e){let t=e.rules.some(o=>o.source==="")?e.rules:[{id:sl(e.rules),source:"",target:"default"},...e.rules];for(let o of Xo)o.id!=="agents"&&Pr(t,o.path)==="off"&&(t=mf(t,o.path,"default"));return t=bf(t,"agents","off"),{...e,enabled:!0,rules:t}}function bf(e,t,o){let r=e.find(a=>a.source===t);return r?e.map(a=>a===r?{...a,target:o}:a):[...e,{id:Ga(),source:t,target:o}]}function ll(e,t){return e.rules.filter(o=>o.source.startsWith(t+"/")&&(!al.has(t)||o.source.split("/").length>2)).length}function cl(e,t){let o=s=>new Map(s.rules.map(l=>[l.source,l.target])),r=o(e),a=o(t),i=e.enabled!==t.enabled?1:0;for(let s of new Set([...r.keys(),...a.keys()]))r.get(s)!==a.get(s)&&i++;return i}var ox=0,Ga=()=>`rule-${Date.now().toString(36)}-${(ox++).toString(36)}`;var vf={globe:'<circle cx="12" cy="12" r="9"/><path d="M3 12h18"/><path d="M12 3a14 14 0 0 1 0 18a14 14 0 0 1 0-18"/>',"user-round":'<circle cx="12" cy="8" r="5"/><path d="M20 21a8 8 0 0 0-16 0"/>',monitor:'<rect width="20" height="14" x="2" y="3" rx="2"/><line x1="8" x2="16" y1="21" y2="21"/><line x1="12" x2="12" y1="17" y2="21"/>',history:'<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/><path d="M12 7v5l4 2"/>',more:'<circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/>',"cloud-off":'<path d="m2 2 20 20"/><path d="M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193"/><path d="M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07"/>',"cloud-check":'<path d="m17 15-5.5 5.5L9 18"/><path d="M5 17.743A7 7 0 1 1 15.71 10h1.79a4.5 4.5 0 0 1 1.5 8.742"/>',"tx-sync":'<path d="m17 2 4 4-4 4"/><path d="M3 11v-1a4 4 0 0 1 4-4h14"/><path d="m7 22-4-4 4-4"/><path d="M21 13v1a4 4 0 0 1-4 4H3"/>',search:'<circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/>',down:'<path d="m6 9 6 6 6-6"/>',right:'<path d="m9 18 6-6-6-6"/>',folder:'<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>',page:'<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M10 9H8"/><path d="M16 13H8"/><path d="M16 17H8"/>',image:'<rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/>',database:'<ellipse cx="12" cy="5" rx="9" ry="3"/><path d="M3 5V19A9 3 0 0 0 21 19V5"/><path d="M3 12A9 3 0 0 0 21 12"/>',attachment:'<path d="m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"/>',download:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" x2="12" y1="15" y2="3"/>',trash:'<path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/>',refresh:'<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/>',cloud:'<path d="M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z"/>',archive:'<rect width="20" height="5" x="2" y="3" rx="1"/><path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"/><path d="M10 12h4"/>',store:'<path d="M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5"/><path d="M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244"/><path d="M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05"/>',sparkles:'<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"/><path d="M20 2v4"/><path d="M22 4h-4"/><circle cx="4" cy="20" r="2"/>',palette:'<path d="M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z"/><circle cx="13.5" cy="6.5" r=".5" fill="currentColor"/><circle cx="17.5" cy="10.5" r=".5" fill="currentColor"/><circle cx="6.5" cy="12.5" r=".5" fill="currentColor"/><circle cx="8.5" cy="7.5" r=".5" fill="currentColor"/>',lock:'<rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/>',undo:'<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/>',pen:'<path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"/>',move:'<path d="M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1"/><path d="M2 13h10"/><path d="m9 16 3-3-3-3"/>',book:'<path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20"/>',login:'<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" x2="3" y1="12" y2="12"/>',gear:'<circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/>',up:'<path d="m18 15-6-6-6 6"/>',upload:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="17 8 12 3 7 8"/><line x1="12" x2="12" y1="3" y2="15"/>',"folder-plus":'<path d="M12 10v6"/><path d="M9 13h6"/><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>',"folder-open":'<path d="m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"/>',pause:'<rect x="14" y="4" width="4" height="16" rx="1"/><rect x="6" y="4" width="4" height="16" rx="1"/>',play:'<polygon points="6 3 20 12 6 21 6 3"/>',x:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',check:'<path d="M20 6 9 17l-5-5"/>',alert:'<circle cx="12" cy="12" r="10"/><line x1="12" x2="12" y1="8" y2="12"/><line x1="12" x2="12.01" y1="16" y2="16"/>',"tx-up":'<path d="m18 9-6-6-6 6"/><path d="M12 3v14"/><path d="M5 21h14"/>',"tx-down":'<path d="M12 17V3"/><path d="m6 11 6 6 6-6"/><path d="M19 21H5"/>',files:'<path d="M20 7h-3a2 2 0 0 1-2-2V2"/><path d="M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z"/><path d="M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8"/>',notebook:'<path d="M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4"/><path d="M2 6h4"/><path d="M2 10h4"/><path d="M2 14h4"/><path d="M2 18h4"/><path d="M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z"/>',bot:'<path d="M12 8V4H8"/><rect width="16" height="12" x="4" y="8" rx="2"/><path d="M2 14h2"/><path d="M20 14h2"/><path d="M15 13v2"/><path d="M9 13v2"/>',puzzle:'<path d="M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z"/>',laptop:'<path d="M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z"/><path d="M20.054 15.987H3.946"/>',info:'<circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/>',penzor:'<path d="M3 18.5h13.5a4.25 4.25 0 0 0 0-8.5 4.75 4.75 0 0 0-9.5 0 2.5 2.5 0 0 0 5 0"/>'},Ir=({p:e})=>n("div",{class:"pz-ov-kick pz-brand",children:[n(ae,{n:"penzor"}),n("b",{children:e.t("penzor.title")}),e.locale()==="zh"&&n("span",{children:Se("en","penzor.title")})]}),ae=({n:e})=>n("svg",{viewBox:"0 0 24 24","aria-hidden":"true",dangerouslySetInnerHTML:{__html:vf[e]??vf.attachment}});var xf=`
1594
+ `}}function Ef(e,t){let o=e.filter(([l])=>t-l<=3e3);if(o.length<2)return 0;let[r,a]=o[0],[i,s]=o[o.length-1];return i>r?Math.max(0,(s-a)/(i-r)*1e3):0}function Pf(e,t){let o=t??{};return e===401?"not_signed_in":o.code==="STORAGE_QUOTA_EXCEEDED"?"quota":o.code==="STORAGE_BUSY"||o.code==="STORAGE_RECONCILIATION_REQUIRED"?"storage_unavailable":o.code==="FILE_TOO_LARGE"||e===413?"too_large":typeof o.detail=="string"&&/quota exceeded/i.test(o.detail)?"quota":o.code==="STORAGE_NOT_CONFIGURED"?"storage_unavailable":`http_${e}`}var Ix=3,Mx=200,sl=32,Lx=e=>typeof e=="string"&&!!e&&e!=="."&&e!==".."&&!/[\\/]/.test(e);function ll(e,t){return t?e.flatMap(o=>{let r=(o.webkitRelativePath||o.name).split("/");return r.slice(1).some(a=>a.startsWith("."))||r.length-1>sl?[]:[{file:o,relDir:r.slice(0,-1)}]}):e.map(o=>({file:o,relDir:[]}))}function Rf(e){let t=Array.from(e.items??[]).filter(a=>a.kind==="file").map(a=>({entry:a.webkitGetAsEntry?.()??null,file:a.getAsFile()})),o=[],r=async(a,i)=>{if(i.length>sl)return!0;if(a.isFile){let c=await new Promise(d=>a.file(d,()=>d(null)));return c&&o.push({file:c,relDir:i}),o.length<=2e3}if(!a.isDirectory)return!0;let s=a.createReader(),l=[];for(;;){let c=await new Promise(d=>s.readEntries(d,()=>d([])));if(!c.length)break;l.push(...c)}l.sort((c,d)=>c.name<d.name?-1:c.name>d.name?1:0);for(let c of l)if(!c.name.startsWith(".")&&!await r(c,[...i,a.name]))return!1;return!0};return(async()=>{for(let a of t)if(a.entry){if(!await r(a.entry,[]))break}else a.file&&o.push({file:a.file,relDir:[]});return o})()}function If(e,t=window,o={}){let r=[],a=new Map,i=!1,s=0,l=()=>Date.now(),c=()=>Array.from(t.crypto.getRandomValues(new Uint8Array(16)),A=>A.toString(16).padStart(2,"0")).join("");async function d(){let A=await e.getCloud();if(!A.token)throw new Error("not_signed_in");return A}async function p(A,L={}){let U=await d(),N=jn(U.base,A);if(!N)throw new Error("bad_path");let oe=await Vn(U,N,{method:L.method??"GET",headers:{...L.body!==void 0?{"Content-Type":"application/json"}:{},...L.projectSource?{"X-Project-Source":L.projectSource}:{}},body:L.body!==void 0?JSON.stringify(L.body):void 0,signal:AbortSignal.timeout(3e4)});return{status:oe.status,json:await oe.json().catch(()=>null)}}let u=A=>{let{attempt:L,relDir:U,abort:N,samples:oe,file:_,dl:C,...P}=A;return{...P,speed:A.state==="active"?Ef(oe,l()):0}},m=A=>A.state==="active"||A.state==="queued"||A.state==="paused",f=(A,L,U=null)=>{A.state=L,A.error=U,A.abort=null,A.finishedAt=l(),A.samples=[];let N=r.filter(oe=>oe.state==="done"||oe.state==="canceled");for(let oe of N.slice(0,Math.max(0,N.length-Mx)))r.splice(r.indexOf(oe),1);h()},g=A=>{let L=String(A?.message||A);return["too_large","quota","not_signed_in","bad_response","popup_blocked","download_unavailable","download_failed"].includes(L)||L.startsWith("http_")?L:"network"};function h(){if(!i)for(let A of["up","down"]){let L=r.filter(U=>U.kind===A&&U.state==="active").length;for(let U of r){if(L>=Ix)break;if(U.kind!==A||U.state!=="queued")continue;L++,U.state="active",U.startedAt=l(),U.done=0,U.samples=[[l(),0]],U.abort=new AbortController;let N=U.abort.signal,oe=++U.attempt,_=()=>U.attempt===oe&&U.state==="active";(A==="up"?w(U,_,N):F(U,_,N)).catch(C=>{_()&&f(U,"failed",g(C))})}}}let b=(A,L)=>{A.done=L;let U=l(),N=A.samples[A.samples.length-1];for((!N||U-N[0]>=200)&&A.samples.push([U,L]);A.samples.length>2&&U-A.samples[0][0]>3500;)A.samples.shift()};function v(A){let L=s,U=()=>{if(i||L!==s)throw new Error("account_changed")};if(!A.relDir.length)return Promise.resolve(A.targetId);let N=a.get(A.batch);N||a.set(A.batch,N=new Map);let oe=N,_=C=>{if(C===0)return Promise.resolve(A.targetId);let P=A.relDir.slice(0,C).join("/"),G=oe.get(P);return G||(G=_(C-1).then(async Y=>{U();let q=A.relDir[C-1],te=await p("/files",{method:"POST",body:{type:"directory",parentId:Y,name:q},projectSource:A.projectSource});if(U(),te.status===201&&typeof te.json?.id=="string")return te.json.id;if(te.status===409){let pe=await p(`/files${Y==="ROOT"?"":`?parentId=${encodeURIComponent(Y)}`}`,{projectSource:A.projectSource}),qe=Array.isArray(pe.json)?pe.json.find(ge=>ge?.fileType==="directory"&&ge?.name===q):null;if(qe?.id)return String(qe.id)}throw new Error(te.status===401?"not_signed_in":`http_${te.status}`)}),G.catch(()=>oe.delete(P)),oe.set(P,G)),G};return _(A.relDir.length)}async function w(A,L,U){let N=A.file;if(N.size>52428800)throw new Error("too_large");let oe=await v(A);if(!L())return;A.parentId=oe;let _=await d();if(!L())return;let C=jn(_.base,"/files/upload");if(!C)throw new Error("bad_path");let P=`----penzor${c()}`,{head:G,tail:Y}=Tf(P,{parentId:oe,autoRename:"true"},A.name,N.type||rl(A.name)),q=await Vn(_,C,{method:"POST",headers:{"Content-Type":`multipart/form-data; boundary=${P}`,...A.projectSource?{"X-Project-Source":A.projectSource}:{}},body:new Blob([G,N,Y]),signal:U}),te=await q.json().catch(()=>null);L()&&(q.status===201||q.status===200?(A.fileId=typeof te?.id=="string"?te.id:null,b(A,A.size),f(A,"done")):f(A,"failed",Pf(q.status,te)))}async function k(A,L,U){L.size=Number(A.headers.get("content-length"))||L.size;let N=A.headers.get("content-type")||"";if(!A.body)return A.blob();let oe=A.body.getReader(),_=[],C=0;for(;;){let{done:P,value:G}=await oe.read();if(P)break;if(!U())throw oe.cancel().catch(()=>{}),new Error("aborted");_.push(G),C+=G.length,b(L,C)}return C>L.size&&(L.size=C),new Blob(_,{type:N})}let x=(A,L)=>{let U=URL.createObjectURL(A),N=t.document.createElement("a");N.href=U,N.download=L,t.document.body.appendChild(N),N.click(),N.remove(),setTimeout(()=>URL.revokeObjectURL(U),6e4)},T=A=>{let L=t.open("","_blank");return L?(L.opener=null,L.location.replace(A),!0):!1};async function F(A,L,U){let N=A.dl,oe=await d();if(!L())return;let _=jn(oe.base,N.path);if(!_)throw new Error("bad_path");let C=await Vn(oe,_,{signal:U});if(!C.ok)throw new Error(C.status===401?"not_signed_in":`http_${C.status}`);let P;if(N.mode==="bytes")P=await k(C,A,L);else{let G=await C.json().catch(()=>null);if(N.mode==="text"){if(typeof G?.content!="string")throw new Error("bad_response");P=new Blob([G.content],{type:rl(N.name)}),A.size=P.size,b(A,P.size)}else{if(typeof G?.url!="string"||!/^https?:\/\//i.test(G.url))throw new Error("bad_response");let Y=await fetch(G.url,{signal:U,credentials:"omit"}).catch(q=>{if(U.aborted)throw q;return null});if(!Y){if(!L())return;if(o.openExternal)await o.openExternal(G.url);else if(!T(G.url))throw new Error("popup_blocked");if(!L())return;f(A,"done");return}if(!Y.ok)throw new Error(`http_${Y.status}`);P=await k(Y,A,L)}}L()&&(o.saveDownload?await o.saveDownload(P,N.name):x(P,N.name),L()&&f(A,"done"))}let V=(A,L)=>{let U={projectSource:void 0,parentId:void 0,targetId:void 0,fileId:null,localPath:null,...A,id:c(),attempt:0,done:0,state:L?"failed":"queued",error:L??null,abort:null,samples:[],speed:0,startedAt:null,finishedAt:L?l():null};return r.push(U),U};e.handle("penzor:upload",async(A,L)=>{let U=s,N=L??{},oe=(Array.isArray(N.files)?N.files:[]).filter(q=>!!q&&q.file instanceof Blob&&typeof q.file.name=="string"&&Array.isArray(q.relDir)&&q.relDir.length<=sl&&q.relDir.every(Lx)),_=typeof N.parentId=="string"&&Cf.test(N.parentId)?N.parentId:null,C=typeof N.projectSource=="string"&&_f.test(N.projectSource)?N.projectSource:null;if(!oe.length)return{ok:!1,error:"no_files"};if(!_||!C)return{ok:!1,error:"bad_target"};if(oe.length>2e3)return{ok:!1,error:"too_many",max:2e3};if(!(await e.getCloud()).token)return{ok:!1,error:"not_signed_in"};if(U!==s)return{ok:!1,error:"account_changed"};let P=oe.filter(q=>q.file.size<=52428800).reduce((q,te)=>q+te.file.size,0);try{let q=await p("/storage/quota"),te=Number(q.json?.used),pe=Number(q.json?.quota);if(q.status===200&&pe>0&&te+P>pe)return{ok:!1,error:"quota",short:te+P-pe}}catch{}if(U!==s)return{ok:!1,error:"account_changed"};if(i)return{ok:!1,error:"disposed"};let G=c(),Y=oe.map(q=>V({kind:"up",name:q.file.name,size:q.file.size,projectSource:C,parentId:q.relDir.length?null:_,targetId:_,batch:G,relDir:q.relDir,file:q.file},q.file.size>52428800?"too_large":void 0).id);return h(),{ok:!0,ids:Y,batch:G}}),e.handle("penzor:download",async(A,L)=>{let U=s,N=L??{},oe=Sf.includes(N.mode)?N.mode:null,_=Af(N.name);if(!oe)return{ok:!1,error:"bad_mode"};if(!_)return{ok:!1,error:"bad_name"};let C=await e.getCloud();if(U!==s)return{ok:!1,error:"account_changed"};if(typeof N.path!="string"||!jn(C.base,N.path))return{ok:!1,error:"bad_path"};if(!C.token)return{ok:!1,error:"not_signed_in"};if(i)return{ok:!1,error:"disposed"};let P=V({kind:"down",name:_,size:Math.max(0,Number(N.size)||0),relDir:[],batch:typeof N.batch=="string"&&N.batch.length<=64?N.batch:c(),dl:{path:N.path,mode:oe,name:_}});return h(),{ok:!0,id:P.id}}),e.handle("penzor:transfers",()=>({ok:!0,items:r.map(u)})),e.handle("penzor:transfer",(A,L)=>{let U=L??{},N=r.find(_=>_.id===U.id);if(!N)return{ok:!1,error:"not_found"};let oe=()=>{N.abort?.abort(),N.abort=null,N.done=0,N.samples=[]};switch(U.op){case"pause":(N.state==="active"||N.state==="queued")&&(oe(),N.state="paused",h());break;case"resume":N.state==="paused"&&(N.state="queued",h());break;case"cancel":m(N)&&(oe(),f(N,"canceled"));break;case"retry":(N.state==="failed"||N.state==="canceled")&&(N.state="queued",N.error=null,N.finishedAt=null,N.done=0,h());break;case"dismiss":N.state!=="active"&&N.state!=="queued"&&r.splice(r.indexOf(N),1);break;default:return{ok:!1,error:"bad_op"}}return{ok:!0}}),e.handle("penzor:transfers:clear",(A,L)=>{let U=L?.which==="all";for(let N of[...r])(N.state==="done"||N.state==="canceled"||U&&N.state==="failed")&&r.splice(r.indexOf(N),1);return{ok:!0}});let D=A=>{r.some(m)&&(A.preventDefault(),A.returnValue="")};t.addEventListener("beforeunload",D);let j=()=>{s++;for(let A of r)A.state="canceled",A.abort?.abort();r.length=0,a.clear()};return{reset:j,dispose(){i=!0,t.removeEventListener("beforeunload",D),j()}}}var Zo=[{id:"notes",path:"Amadeus"},{id:"agents",path:"agents"},{id:"profile",path:"human"},{id:"plugins",path:"Plugins"}],cl=new Set(["Amadeus","agents"]);var Po=new Set(["muse"]);var Dx=e=>[...Po].some(t=>dl(e,`agents/${t}`));var Lr=(e,t)=>yf(t,e)?.target??"off",dl=(e,t)=>e===t||e.startsWith(t+"/"),Nx=e=>Zo.some(t=>dl(e,t.path)),ul=e=>e.some(t=>t.id==="default")?Za():"default",tn=(e,t)=>e.enabled?Lr(e.rules,t):"off";function Mf(e,t,o){o==="off"&&(e=e.filter(i=>t?!i.source.startsWith(t+"/"):!i.source||Nx(i.source)));let r=e.find(i=>i.source===t),a=e.filter(i=>i!==r);return t&&Lr(a,t)===o?a:r?e.map(i=>i===r?{...i,target:o}:i):[...e,{id:t?Za():ul(e),source:t,target:o}]}function Lf(e,t,o,r=!1){if(Dx(t))return e;let a=e.rules;if(!e.enabled){let i=a.find(l=>!l.source),s=t?a.filter(l=>l.source&&dl(l.source,t)):[];a=[{id:i?.id??ul(s),source:"",target:"off"},...s],t!=="agents"&&(a=Nf(a,"agents","off"))}if(!t)for(let i of Zo)a.some(s=>s.source===i.path)||(a=[...a,{id:Za(),source:i.path,target:Lr(a,i.path)}]);return Ox({...e,rules:Mf(a,t,o)},r)}function Ox(e,t=!1){let o=r=>Lr(e.rules,r)!=="off";return{...e,enabled:Zo.some(r=>o(r.path))||e.rules.some(r=>r.source&&r.target!=="off")||t&&o("")}}function Df(e){let t=e.rules.some(o=>o.source==="")?e.rules:[{id:ul(e.rules),source:"",target:"default"},...e.rules];for(let o of Zo)o.id!=="agents"&&Lr(t,o.path)==="off"&&(t=Mf(t,o.path,"default"));return t=Nf(t,"agents","off"),{...e,enabled:!0,rules:t}}function Nf(e,t,o){let r=e.find(a=>a.source===t);return r?e.map(a=>a===r?{...a,target:o}:a):[...e,{id:Za(),source:t,target:o}]}function pl(e,t){return e.rules.filter(o=>o.source.startsWith(t+"/")&&(!cl.has(t)||o.source.split("/").length>2)).length}function fl(e,t){let o=s=>new Map(s.rules.map(l=>[l.source,l.target])),r=o(e),a=o(t),i=e.enabled!==t.enabled?1:0;for(let s of new Set([...r.keys(),...a.keys()]))r.get(s)!==a.get(s)&&i++;return i}var Fx=0,Za=()=>`rule-${Date.now().toString(36)}-${(Fx++).toString(36)}`;var Of={globe:'<circle cx="12" cy="12" r="9"/><path d="M3 12h18"/><path d="M12 3a14 14 0 0 1 0 18a14 14 0 0 1 0-18"/>',"user-round":'<circle cx="12" cy="8" r="5"/><path d="M20 21a8 8 0 0 0-16 0"/>',monitor:'<rect width="20" height="14" x="2" y="3" rx="2"/><line x1="8" x2="16" y1="21" y2="21"/><line x1="12" x2="12" y1="17" y2="21"/>',history:'<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/><path d="M12 7v5l4 2"/>',more:'<circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/>',"cloud-off":'<path d="m2 2 20 20"/><path d="M5.782 5.782A7 7 0 0 0 9 19h8.5a4.5 4.5 0 0 0 1.307-.193"/><path d="M21.532 16.5A4.5 4.5 0 0 0 17.5 10h-1.79A7.008 7.008 0 0 0 10 5.07"/>',"cloud-check":'<path d="m17 15-5.5 5.5L9 18"/><path d="M5 17.743A7 7 0 1 1 15.71 10h1.79a4.5 4.5 0 0 1 1.5 8.742"/>',"tx-sync":'<path d="m17 2 4 4-4 4"/><path d="M3 11v-1a4 4 0 0 1 4-4h14"/><path d="m7 22-4-4 4-4"/><path d="M21 13v1a4 4 0 0 1-4 4H3"/>',search:'<circle cx="11" cy="11" r="8"/><path d="m21 21-4.3-4.3"/>',down:'<path d="m6 9 6 6 6-6"/>',right:'<path d="m9 18 6-6-6-6"/>',folder:'<path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>',page:'<path d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path d="M14 2v4a2 2 0 0 0 2 2h4"/><path d="M10 9H8"/><path d="M16 13H8"/><path d="M16 17H8"/>',image:'<rect width="18" height="18" x="3" y="3" rx="2" ry="2"/><circle cx="9" cy="9" r="2"/><path d="m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21"/>',database:'<ellipse cx="12" cy="5" rx="9" ry="3"/><path d="M3 5V19A9 3 0 0 0 21 19V5"/><path d="M3 12A9 3 0 0 0 21 12"/>',attachment:'<path d="m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48"/>',download:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" x2="12" y1="15" y2="3"/>',trash:'<path d="M3 6h18"/><path d="M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6"/><path d="M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2"/><line x1="10" x2="10" y1="11" y2="17"/><line x1="14" x2="14" y1="11" y2="17"/>',refresh:'<path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"/><path d="M21 3v5h-5"/><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"/><path d="M8 16H3v5"/>',cloud:'<path d="M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z"/>',archive:'<rect width="20" height="5" x="2" y="3" rx="1"/><path d="M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8"/><path d="M10 12h4"/>',store:'<path d="M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5"/><path d="M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244"/><path d="M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05"/>',sparkles:'<path d="M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z"/><path d="M20 2v4"/><path d="M22 4h-4"/><circle cx="4" cy="20" r="2"/>',palette:'<path d="M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z"/><circle cx="13.5" cy="6.5" r=".5" fill="currentColor"/><circle cx="17.5" cy="10.5" r=".5" fill="currentColor"/><circle cx="6.5" cy="12.5" r=".5" fill="currentColor"/><circle cx="8.5" cy="7.5" r=".5" fill="currentColor"/>',lock:'<rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/>',undo:'<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/>',pen:'<path d="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"/>',move:'<path d="M2 9V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1"/><path d="M2 13h10"/><path d="m9 16 3-3-3-3"/>',book:'<path d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5a2.5 2.5 0 0 1 0-5H20"/>',login:'<path d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"/><polyline points="10 17 15 12 10 7"/><line x1="15" x2="3" y1="12" y2="12"/>',gear:'<circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/>',up:'<path d="m18 15-6-6-6 6"/>',upload:'<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="17 8 12 3 7 8"/><line x1="12" x2="12" y1="3" y2="15"/>',"folder-plus":'<path d="M12 10v6"/><path d="M9 13h6"/><path d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>',"folder-open":'<path d="m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"/>',pause:'<rect x="14" y="4" width="4" height="16" rx="1"/><rect x="6" y="4" width="4" height="16" rx="1"/>',play:'<polygon points="6 3 20 12 6 21 6 3"/>',x:'<path d="M18 6 6 18"/><path d="m6 6 12 12"/>',check:'<path d="M20 6 9 17l-5-5"/>',alert:'<circle cx="12" cy="12" r="10"/><line x1="12" x2="12" y1="8" y2="12"/><line x1="12" x2="12.01" y1="16" y2="16"/>',"tx-up":'<path d="m18 9-6-6-6 6"/><path d="M12 3v14"/><path d="M5 21h14"/>',"tx-down":'<path d="M12 17V3"/><path d="m6 11 6 6 6-6"/><path d="M19 21H5"/>',files:'<path d="M20 7h-3a2 2 0 0 1-2-2V2"/><path d="M9 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h7l4 4v10a2 2 0 0 1-2 2Z"/><path d="M3 7.6v12.8A1.6 1.6 0 0 0 4.6 22h9.8"/>',notebook:'<path d="M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4"/><path d="M2 6h4"/><path d="M2 10h4"/><path d="M2 14h4"/><path d="M2 18h4"/><path d="M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z"/>',bot:'<path d="M12 8V4H8"/><rect width="16" height="12" x="4" y="8" rx="2"/><path d="M2 14h2"/><path d="M20 14h2"/><path d="M15 13v2"/><path d="M9 13v2"/>',puzzle:'<path d="M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z"/>',laptop:'<path d="M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z"/><path d="M20.054 15.987H3.946"/>',info:'<circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/>',penzor:'<path d="M3 18.5h13.5a4.25 4.25 0 0 0 0-8.5 4.75 4.75 0 0 0-9.5 0 2.5 2.5 0 0 0 5 0"/>'},Dr=({p:e})=>n("div",{class:"pz-ov-kick pz-brand",children:[n(ie,{n:"penzor"}),n("b",{children:e.t("penzor.title")}),e.locale()==="zh"&&n("span",{children:Ce("en","penzor.title")})]}),ie=({n:e})=>n("svg",{viewBox:"0 0 24 24","aria-hidden":"true",dangerouslySetInnerHTML:{__html:Of[e]??Of.attachment}});var Bf=`
1590
1595
  .pz-rules{max-width:960px}.pz-rules .pz-rule-head,.pz-rules .pz-rule-tools{display:flex;gap:12px;align-items:center;justify-content:space-between}
1591
1596
  .pz-rules .pz-rule-head h1{margin:0}.pz-rules .pz-rule-meta{color:var(--text-muted);font-size:var(--ui-font-meta);margin:6px 0 16px}
1592
1597
  .pz-rules .pz-rule-tools{margin-bottom:12px}.pz-rules .pz-rule-enable{display:flex;gap:8px;align-items:center;font-size:var(--ui-font-body)}.pz-rules input[type=checkbox]{accent-color:var(--signal-mark)}
@@ -1628,7 +1633,7 @@ Content-Type: ${r}\r
1628
1633
  .pz-cs .pz-ask-foot{display:flex;align-items:center;gap:8px;margin-top:14px}.pz-cs .pz-ask-foot small{flex:1;color:var(--text-faint);font-size:var(--ui-font-meta)}
1629
1634
  .pz-cs h3.pz-cs-sec{display:flex;align-items:center;gap:10px;margin:26px 0 0;font-size:var(--ui-font-heading);font-weight:600}
1630
1635
  @media(max-width:720px){.pz-cs .pz-cs-child,.pz-cs .pz-cs-subnote{padding-left:16px}.pz-cs .pz-cs-bar{flex-wrap:wrap}.pz-cs .pz-cs-bar .txt{flex-basis:calc(100% - 30px)}}
1631
- `;async function In(e,...t){let o=ee().cloudInvoke;if(!o)throw Error("content_sync_unavailable");let r=await o(e,...t);if(!r?.ok)throw Error(r?.error??"content_sync_unavailable");return r.value}var Ko=e=>e instanceof Error?e.message:String(e),rx=["merge","cloud","local"],yf={notes:{icon:"notebook",title:"penzor.cat.notes",desc:"penzor.cat.notesDesc"},agents:{icon:"bot",title:"penzor.cat.agents",desc:"penzor.cat.agentsDesc"},profile:{icon:"user-round",title:"penzor.cat.profile",desc:"penzor.cat.profileDesc"},plugins:{icon:"puzzle",title:"penzor.cat.plugins",desc:"penzor.cat.pluginsDesc"}};function Ja({on:e,disabled:t,label:o,onToggle:r}){return n("button",{type:"button",role:"switch",class:`settings-switch${e?" active":""}`,"aria-checked":e,"aria-label":o,disabled:t,onClick:a=>{a.stopPropagation(),r(!e)},children:n("span",{})})}function kf({p:e,legacy:t}){let o=e.t,[r,a]=C(null),[i,s]=C(!0),[l,c]=C(null),[d,p]=C(null),[u,f]=C(0),[m,g]=C(!1),[h,v]=C(!1),[b,x]=C(null),[w,S]=C(!1),[T,F]=C(!1),[B,N]=C(!1),[j,_]=C({}),[L,$]=C(null),[P,K]=C(!1),[z,A]=C(null),[R,X]=C(null),[Q,H]=C(null),te=oe(!0),pe=oe(!1),Ue=oe(null),me=async()=>{try{let O=await In(Gt.get,e.locale(),{devices:!0});if(!O?.available){te.current&&s(!1);return}te.current&&(pe.current=!0,a(O),s(!0))}catch(O){te.current&&(!pe.current&&/unavailable|not a Forsion Extend channel/i.test(String(O))?s(!1):x(Ko(O)))}};W(()=>{te.current=!0,me();let O=setInterval(()=>void me(),1e3);return()=>{te.current=!1,clearInterval(O)}},[]),W(()=>{if(!L&&!P)return;let O=ce=>{ce instanceof KeyboardEvent&&ce.key!=="Escape"||ce.type==="mousedown"&&ce.target?.closest?.(".pz-cs-menu")||($(null),K(!1))};return document.addEventListener("mousedown",O),document.addEventListener("keydown",O),()=>{document.removeEventListener("mousedown",O),document.removeEventListener("keydown",O)}},[L,P]);let Ie=!!r&&!r.config.enabled&&r.config.revision===0&&!T,Ze=Yt(()=>r&&Ie?hf(r.config):null,[Ie,r?.config.revision]),be=r?l??Ze??r.config:null,Qe=!!r&&!w&&(Ie||!!l&&cl(r.config,l)>0),St=Qe&&be?JSON.stringify(be)+"#"+u:"";if(W(()=>{if(p(null),H(null),!St)return;let O=!0,ce=setTimeout(()=>{In(Gt.preview,be).then(Ae=>{O&&te.current&&p(Ae)},Ae=>{!O||!te.current||(/config_changed/.test(Ko(Ae))?c(null):x(Ko(Ae)))})},400);return()=>{O=!1,clearTimeout(ce)}},[St]),!i)return t;if(!r||!be)return n("div",{class:"pz-scroll",children:n("p",{class:"pz-note",children:b??o("penzor.loading")})});if(w)return n(ax,{p:e,snap:r,refresh:me,back:()=>S(!1)});let G=`device-${r.deviceId}`,ge=r.devices.filter(O=>O.id!==r.deviceId),ye=(r.others?.files??0)>0,Me=O=>r.sources.find(ce=>ce.path===O),he=O=>r.sources.filter(ce=>ce.path.startsWith(O+"/")&&!ce.path.slice(O.length+1).includes("/")),rt=O=>O==="default"?o("penzor.scope.all"):O===G?o("penzor.scope.self"):o("penzor.scope.with",{name:r.devices.find(ce=>`device-${ce.id}`===O)?.name??O.slice(7,15)}),Ce=(O,ce,Ae)=>{c(gf(be,O,ce,ye)),X({path:O,name:Ae,target:ce}),$(null),x(null),g(!1)},lt=async O=>{v(!0),x(null);try{await O(),await me()}catch(ce){x(Ko(ce))}finally{v(!1)}},st=d?.agentAsks??[],Jt=()=>{if(st.length&&!Q){H(Object.fromEntries(st.map(O=>[O.slug,"merge"])));return}$t(Q??{})},$t=O=>void lt(async()=>{try{await In(Gt.apply,d.token,...Object.keys(O).length?[O]:[])}catch(tt){if(H(null),/preview_(changed|expired)/.test(Ko(tt))){g(!0),f(Ht=>Ht+1);return}throw tt}H(null);let ce=tn(be,"Plugins")==="default",Ae=e.syncState()?.plugins;e.hasSync()&&Ae&&Ae.on!==ce&&e.setSync("plugins",ce),c(null),F(!1),g(!1)}),Ut=(O,ce,Ae)=>{O.stopPropagation();let tt=O.currentTarget.getBoundingClientRect(),Ht=Ue.current.getBoundingClientRect(),Ct=document.body.currentCSSZoom||1;$(L?.path===ce?null:{path:ce,name:Ae,x:(tt.left-Ht.left)/Ct-4,y:(tt.bottom-Ht.top)/Ct+4})},ut=({path:O,name:ce})=>{let Ae=tn(be,O);return n("button",{type:"button",class:`pz-scope${Ae!=="default"?" is-alt":""}`,"aria-haspopup":"menu","aria-expanded":L?.path===O,onClick:tt=>Ut(tt,O,ce),children:[n(ae,{n:Ae==="default"?"cloud":Ae===G?"laptop":"monitor"}),rt(Ae),n(ae,{n:"down"})]})},ie=En(r),_e=r.jobs.filter(O=>O.state==="queued"||O.state==="active"||O.state==="paused"),gt=Er(r),ot=ie.kind==="off"?n("span",{class:"pz-cs-status",children:[n(ae,{n:"cloud-off"}),o("penzor.cs.statusOff")]}):ie.kind==="paused"?n("span",{class:"pz-cs-status",children:[n(ae,{n:"pause"}),o("penzor.cs.statusPaused")]}):ie.kind==="run"?n("span",{class:"pz-cs-status is-ok",children:[n("span",{class:"pz-ring",style:`--p:${ie.pct}`}),o("penzor.cs.statusRun",{pct:ie.pct})]}):ie.kind==="scan"?n("span",{class:"pz-cs-status is-ok",children:[n(ae,{n:"refresh"}),o("penzor.cs.statusScan")]}):ie.kind==="warn"?n("span",{class:"pz-cs-status is-warn",children:[n(ae,{n:"alert"}),o("penzor.cs.statusWarn",{n:ie.n})]}):n("span",{class:"pz-cs-status is-ok",children:[n(ae,{n:"cloud-check"}),ie.at?o("penzor.cs.statusOkAgo",{time:Pn(ie.at,e.locale())}):o("penzor.cs.statusOk")]}),Ve=z!=null&&z.trim()!==r.deviceName?Ys(z.trim(),r.devices,r.deviceId):null,Rt=(O=!1)=>{let ce=z;if(ce==null)return;let Ae=ce.trim();if(Ae!==r.deviceName&&Ys(Ae,r.devices,r.deviceId)){O&&A(null);return}A(null),Ae!==r.deviceName&&lt(()=>In(Gt.rename,Ae))},Xt=O=>{let ce=/device_name_(taken|reserved|invalid)/.exec(O);return ce?o(`penzor.cs.name.${ce[1]}`):O},pt=_e.find(O=>O.state==="active")??_e[0],nn=(O,ce)=>{let Ae=yf[O],tt=tn(be,ce)!=="off",Ht=al.has(ce)&&he(ce).length>0,Ct=!!j[ce]&&tt,ft=ll(be,ce),yn=Me(ce),Re=O==="notes"?yn?o("penzor.cat.files",{n:(yn.files??0).toLocaleString(),size:e.b(yn.size)}):"":O==="profile"?o("penzor.cat.profileOn"):o("penzor.cat.pluginsN",{n:he(ce).length}),bt=n("b",{children:[o(Ae.title),Ht&&n("span",{class:"pz-cs-chev",children:n(ae,{n:"right"})})]}),qt=n("small",{children:tt?n(M,{children:[n(ut,{path:ce,name:o(Ae.title)}),Re&&n(M,{children:[n("span",{class:"pz-sep",children:"\xB7"}),n("span",{children:Re})]}),ft>0&&n(M,{children:[n("span",{class:"pz-sep",children:"\xB7"}),n("button",{class:"pz-link",onClick:()=>S(!0),children:o("penzor.cat.custom",{n:ft})})]})]}):o(Ae.desc)});return n(M,{children:[n("div",{class:`pz-sync-row${Ht&&tt?" is-click":""}${Ct?" is-open":""}`,children:[Ht&&tt?n("div",{class:"pz-sync-main",role:"button",tabIndex:0,"aria-expanded":Ct,onClick:()=>_({...j,[ce]:!Ct}),onKeyDown:Je=>{Je.key==="Enter"&&_({...j,[ce]:!Ct})},children:[n("span",{class:"pz-tile",children:n(ae,{n:Ae.icon})}),n("span",{class:"pz-sync-txt",children:[bt,qt]})]}):n("div",{class:"pz-sync-main",children:[n("span",{class:"pz-tile",children:n(ae,{n:Ae.icon})}),n("span",{class:"pz-sync-txt",children:[bt,qt]})]}),n(Ja,{on:tt,label:o(Ae.title),disabled:h,onToggle:Je=>Ce(ce,Je?"default":"off",o(Ae.title))})]}),Ct&&he(ce).map(Je=>{let Ot=Je.path.slice(ce.length+1),gn=tn(be,Je.path)!=="off";return n("div",{class:"pz-cs-child",title:Je.path,children:[n("span",{children:[n("b",{children:[Ot,O==="notes"&&n("span",{class:"pz-cs-faint",children:o("penzor.cat.files",{n:(Je.files??0).toLocaleString(),size:e.b(Je.size)})})]}),gn?n(ut,{path:Je.path,name:Ot}):n("span",{class:"pz-cs-faint",children:o("penzor.cat.notSynced")})]}),n(Ja,{on:gn,label:Ot,disabled:h,onToggle:ro=>Ce(Je.path,ro?tn(be,ce):"off",Ot)})]},Je.path)})]},ce)},Ke=()=>{let O=yf.agents,ce=r.sources.filter(Re=>Re.agent),Ae=new Set(ce.map(Re=>Re.path.slice(7))),tt=[...ce.map(Re=>({slug:Re.path.slice(7),name:Re.name,nameEn:Re.nameEn,here:!0})),...(r.cloudAgents??[]).filter(Re=>!Ae.has(Re)).map(Re=>({slug:Re,name:void 0,nameEn:void 0,here:!1}))].sort((Re,bt)=>Number(To.has(Re.slug))-Number(To.has(bt.slug))),Ht=Re=>To.has(Re.slug)?o("penzor.agents.muse"):(e.locale()==="en"?Re.nameEn??Re.name:Re.name??Re.nameEn)??Re.slug,Ct=tt.filter(Re=>!To.has(Re.slug)&&tn(be,`agents/${Re.slug}`)!=="off").length,ft=ll(be,"agents"),yn=tt.length?o(tn(be,"agents")==="off"?"penzor.agents.pickHint":"penzor.agents.legacyHint",{n:Ct}):o("penzor.agents.none");return n(M,{children:[n("div",{class:"pz-sync-row pz-cs-group",children:n("div",{class:"pz-sync-main",children:[n("span",{class:"pz-tile",children:n(ae,{n:O.icon})}),n("span",{class:"pz-sync-txt",children:[n("b",{children:o(O.title)}),n("small",{children:[yn,ft>0&&n(M,{children:[n("span",{class:"pz-sep",children:"\xB7"}),n("button",{class:"pz-link",onClick:()=>S(!0),children:o("penzor.cat.custom",{n:ft})})]})]})]})]})}),tt.map(Re=>{let bt=`agents/${Re.slug}`,qt=Ht(Re),Je=To.has(Re.slug),Ot=!Je&&tn(be,bt)!=="off";return n("div",{class:`pz-cs-child${Je?" is-locked":""}`,title:bt,"data-agent":Re.slug,children:[n("span",{children:[n("b",{children:[qt,qt.toLowerCase()!==Re.slug&&n("span",{class:"pz-cs-slug",children:Re.slug})]}),Je?n("span",{class:"pz-cs-faint",children:o("penzor.agents.museDesc")}):Ot?n(ut,{path:bt,name:qt}):n("span",{class:"pz-cs-faint",children:o(Re.here?"penzor.cat.notSynced":"penzor.agents.cloudOnly")})]}),Je?n("span",{class:"pz-cs-lock",role:"note",children:[n(ae,{n:"lock"}),o("penzor.agents.locked")]}):n(Ja,{on:Ot,label:qt,disabled:h,onToggle:gn=>Ce(bt,gn?"default":"off",qt)})]},bt)}),n("div",{class:"pz-cs-subnote",children:o("penzor.agents.historianNote")})]},"agents")},et=Qe&&n("div",{class:"pz-cs-bar",role:"region","aria-label":o("penzor.rules.previewTitle"),children:[n(ae,{n:"alert"}),n("span",{class:"txt",children:[Ie?d?o("penzor.cs.barFirst",{up:d.upload,down:d.download}):o("penzor.cs.firstTitle"):(()=>{let O=cl(r.config,be);return O===1&&R&&tn(be,R.path)===R.target&&tn(r.config,R.path)!==R.target?o("penzor.cs.barOne",{name:R.name,scope:R.target==="off"?o("penzor.cs.offName"):rt(R.target)}):o("penzor.cs.barChanged",{n:O})})(),n("small",{children:m?o("penzor.cs.barRecount"):d?[Ie?o("penzor.cs.barSize",{size:e.b(d.bytes)}):o("penzor.cs.barCounts",{up:d.upload,down:d.download}),d.conflicts>0?o("penzor.cs.barConflicts",{n:d.conflicts}):"",Ie?o("penzor.cs.noDelete"):""].filter(Boolean).join(" \xB7 "):o("penzor.cs.barCounting")})]}),n("button",{class:"pz-btn",disabled:h,onClick:()=>{Ie&&F(!0),c(null),g(!1)},children:o(Ie?"penzor.cs.later":"penzor.cs.undo")}),n("button",{class:"pz-btn pri",disabled:h||!d||r.running,onClick:Jt,children:o(Ie?"penzor.cs.start":"penzor.cs.confirm")})]}),ue=r.agentArchive?.state==="done"&&!r.agentArchive.seen&&r.agentArchive.folderId?r.agentArchive:null,je=O=>O==="content_account_changed_preview_required"?o("penzor.cs.accountReview"):O==="agent_archive_running"?o("penzor.agents.archiveRunning"):O.startsWith("agent_open_failed: ")?o("penzor.agents.openFailed",{reason:O.slice(19)}):Xt(O),Ye=O=>{let ce=r.sources.find(Ae=>Ae.agent&&Ae.path===`agents/${O}`);return(e.locale()==="en"?ce?.nameEn??ce?.name:ce?.name??ce?.nameEn)??O},an=Q&&d&&st.length>0&&n("div",{class:"pz-sync-ask pz-ask-card",role:"dialog","aria-modal":"false","aria-label":o("penzor.ask.confirm"),children:[st.map(O=>n("div",{class:"pz-ask-agent",role:"radiogroup","aria-label":Ye(O.slug),children:[n("b",{children:o("penzor.ask.title",{name:Ye(O.slug)})}),n("small",{children:o("penzor.ask.when",{cloud:en(O.cloudMtime,e.locale()),local:en(O.localMtime,e.locale())})}),rx.map(ce=>n("label",{class:"pz-ask-opt",children:[n("input",{type:"radio",name:`ask-${O.slug}`,checked:Q[O.slug]===ce,onChange:()=>H({...Q,[O.slug]:ce})}),n("span",{children:[n("b",{children:o(`penzor.ask.${ce}`)}),ce==="merge"&&n("em",{children:o("penzor.ask.recommended")}),n("small",{children:o(`penzor.ask.${ce}Desc`)})]})]},ce))]},O.slug)),n("div",{class:"pz-ask-foot",children:[n("small",{children:o("penzor.ask.foot")}),n("button",{class:"pz-btn",disabled:h,onClick:()=>H(null),children:o("penzor.ask.cancel")}),n("button",{class:"pz-btn pri",disabled:h||r.running,onClick:()=>$t(Q),children:o("penzor.ask.confirm")})]})]}),ht=O=>O.direction==="upload"?"tx-up":O.direction==="download"?"tx-down":"tx-sync";return n("div",{class:"pz-scroll",children:[n("style",{children:xf}),n("div",{class:"pz-col pz-cs",ref:Ue,children:[n(Ir,{p:e}),n("div",{class:"pz-cs-head",children:[n("h1",{class:"pz-h1",children:o("penzor.sync.title")}),ot,n("span",{class:"grow"}),n("button",{class:"pz-btn",disabled:h||r.running||!r.config.enabled,onClick:()=>void lt(()=>In(Gt.run)),children:[n(ae,{n:"refresh"}),o("penzor.rules.run")]}),n("button",{class:"pz-btn","aria-label":o("penzor.cs.more"),"aria-haspopup":"menu",onClick:O=>{O.stopPropagation(),K(!P)},children:n(ae,{n:"more"})})]}),P&&n("div",{class:"pz-cs-menu",style:"right:0;top:64px",role:"menu",children:n("button",{class:"it",role:"menuitem",onClick:()=>{K(!1),S(!0)},children:[n(ae,{n:"gear"}),n("span",{children:n("b",{children:o("penzor.cs.advanced")})}),n("span",{})]})}),n("div",{class:"pz-cs-meta",children:[n("span",{class:"pz-cs-dev",children:[n(ae,{n:"laptop"}),z!=null?n(M,{children:[o("penzor.cs.thisComputerLabel"),n("input",{value:z,maxLength:64,"aria-label":o("penzor.cs.rename"),ref:O=>O?.focus(),onInput:O=>A(O.currentTarget.value),"aria-invalid":!!Ve,onKeyDown:O=>{O.key==="Enter"&&Rt(),O.key==="Escape"&&A(null)},onBlur:()=>Rt(!0)}),Ve?n("span",{class:"pz-cs-warn",role:"alert",children:o(`penzor.cs.name.${Ve}`)}):n("span",{class:"pz-cs-faint",children:o("penzor.cs.renameHint")})]}):n(M,{children:[o("penzor.cs.thisComputer",{name:r.deviceName}),n("button",{class:"pz-link","aria-label":o("penzor.cs.rename"),title:o("penzor.cs.rename"),onClick:()=>A(r.deviceName),children:n(ae,{n:"pen"})})]})]}),n("span",{children:ge.length?o("penzor.cs.othersN",{n:ge.length,names:ge.map(O=>O.name).join(e.locale()==="zh"?"\u3001":", ")}):o("penzor.cs.noOthers")}),n("button",{class:"pz-link",onClick:()=>N(!B),children:[n(ae,{n:"history"})," ",o("penzor.cs.log")]})]}),(b||r.error)&&n("p",{role:"alert",class:"pz-rule-error",style:"margin-top:14px",children:je(b??r.error??"")}),ue&&n("div",{class:"pz-sync-ask",role:"region","aria-label":o("penzor.archive.title"),children:[n("h4",{children:o("penzor.archive.title")}),n("p",{children:o("penzor.archive.body",{shelf:ue.shelfName??o("penzor.archive.shelf"),name:ue.name??""})}),n("div",{class:"pz-acts",children:[n("button",{class:"pz-btn",disabled:h,onClick:()=>void lt(()=>In(Gt.archiveSeen)),children:o("penzor.archive.ok")}),ue.shelfId&&n("button",{class:"pz-btn pri",onClick:()=>e.openFolder([{id:ue.shelfId,name:ue.shelfName??o("penzor.archive.shelf")},{id:ue.folderId,name:ue.name??"",archive:!0}]),children:o("penzor.archive.open")})]})]}),Ie&&n("div",{class:"pz-sync-ask",children:[n("h4",{children:o("penzor.cs.firstTitle")}),n("p",{children:o("penzor.cs.firstBody")})]}),pt&&n("div",{class:"pz-cs-act",children:[n("div",{class:"row1",children:[n(ae,{n:ht(pt)}),n("span",{class:"grow",children:[o(pt.direction==="download"?"penzor.cs.down":"penzor.cs.up",{name:pt.path.slice(pt.path.lastIndexOf("/")+1)}),pt.size!=null&&n("small",{children:[" ",e.b(pt.done)," / ",e.b(pt.size)]})]}),n("button",{class:"pz-btn",disabled:h,onClick:()=>void lt(()=>In(Gt.pause,!r.paused)),children:[n(ae,{n:r.paused?"play":"pause"}),o(r.paused?"penzor.rules.resume":"penzor.rules.pause")]})]}),ie.kind==="run"&&n("div",{class:"pz-bar",children:n("span",{style:`width:${ie.pct}%`})}),_e.length>1&&n("div",{class:"more",children:o("penzor.cs.waiting",{n:_e.length-1})})]}),gt.length>0&&!pt&&n("div",{class:"pz-cs-act is-warn",children:n("div",{class:"row1",children:[n(ae,{n:"alert"}),n("span",{class:"grow",children:[o("penzor.cs.failedN",{n:gt.length}),n("small",{children:[" ",gt[0].error??""]})]}),n("button",{class:"pz-btn",disabled:h||r.running,onClick:()=>void lt(()=>In(Gt.retry)),children:o("penzor.cs.retry")}),n("button",{class:"pz-btn",onClick:()=>N(!0),children:o("penzor.cs.seeLog")})]})}),n("div",{class:"pz-sync-card",children:[Xo.map(O=>O.id==="agents"?Ke():nn(O.id,O.path)),ye&&n("div",{class:"pz-sync-row",children:[n("div",{class:"pz-sync-main",children:[n("span",{class:"pz-tile",children:n(ae,{n:"folder"})}),n("span",{class:"pz-sync-txt",children:[n("b",{children:o("penzor.cat.others")}),n("small",{children:tn(be,"")!=="off"?n(M,{children:[n(ut,{path:"",name:o("penzor.cat.others")}),n("span",{class:"pz-sep",children:"\xB7"}),n("span",{children:o("penzor.cat.files",{n:r.others.files.toLocaleString(),size:e.b(r.others.size)})})]}):o("penzor.cat.othersDesc")})]})]}),n(Ja,{on:tn(be,"")!=="off",label:o("penzor.cat.others"),disabled:h,onToggle:O=>Ce("",O?"default":"off",o("penzor.cat.others"))})]})]}),n("p",{class:"pz-cs-note",children:o("penzor.cs.note")}),B&&n(M,{children:[n("h3",{class:"pz-cs-sec",children:[o("penzor.cs.log"),n("span",{class:"grow"}),gt.length>0&&n("button",{class:"pz-btn",disabled:h||r.running,onClick:()=>void lt(()=>In(Gt.retry)),children:o("penzor.cs.retry")})]}),n("div",{class:"pz-cs-log",children:r.jobs.length?r.jobs.slice(-30).reverse().map(O=>n("div",{class:"f",children:[n(ae,{n:ht(O)}),n("span",{children:[O.path,O.error&&n("small",{children:[" \xB7 ",O.error]})]}),n("small",{children:[o(`penzor.rules.state.${O.state}`)," \xB7 ",Pn(O.finishedAt??O.at,e.locale())]})]},O.id)):n("p",{class:"pz-cs-note",children:o("penzor.cs.logEmpty")})}),n("p",{class:"pz-cs-note",children:o("penzor.cs.logNote")})]}),an,!Q&&et,L&&n("div",{class:"pz-cs-menu",role:"menu",style:`left:${L.x}px;top:${L.y}px`,children:[n("div",{class:"cap",children:o("penzor.scope.menuTitle",{name:L.name})}),["default",G,...ge.map(O=>`device-${O.id}`)].map((O,ce)=>n(M,{children:[ce===2&&n("hr",{}),n("button",{class:"it",role:"menuitemradio","aria-checked":tn(be,L.path)===O,onClick:()=>Ce(L.path,O,L.name),children:[n(ae,{n:O==="default"?"cloud":O===G?"laptop":"monitor"}),n("span",{children:[n("b",{children:rt(O)}),ce<2&&n("small",{children:o(ce===0?"penzor.scope.allDesc":"penzor.scope.selfDesc")})]}),tn(be,L.path)===O?n("span",{class:"tick",children:n(ae,{n:"check"})}):n("span",{})]})]},O)),L.path==="human"&&n("div",{class:"cap",children:o("penzor.scope.calendarNote")}),n("div",{class:"cap",children:o("penzor.scope.menuFoot")})]})]})]})}function ax({p:e,snap:t,refresh:o,back:r}){let a=e.t,[i,s]=C(null),[l,c]=C(null),[d,p]=C(!1),[u,f]=C(null),m=i??t.config,g=!!i,h=w=>w==="default"?a("penzor.rules.default"):w==="off"?a("penzor.rules.off"):t.devices.find(S=>"device-"+S.id===w)?.name??`${a("penzor.rules.device")} ${w.slice(7)}`,v=w=>{let S=structuredClone(m);w(S),s(S),c(null),f(null)},b=async w=>{p(!0),f(null);try{await w(),await o()}catch(S){f(Ko(S))}finally{p(!1)}},x=[...new Set(["default",`device-${t.deviceId}`,...t.devices.map(w=>`device-${w.id}`),...m.rules.map(w=>w.target),"off"])];return n("div",{class:"pz-scroll",children:[n("style",{children:xf}),n("div",{class:"pz-col pz-rules",children:[n("button",{class:"pz-link",onClick:r,children:["\u2190 ",a("penzor.cs.backSimple")]}),n("div",{class:"pz-rule-head",children:n("h1",{class:"pz-h1",children:a("penzor.cs.advanced")})}),n("p",{class:"pz-rule-meta",children:t.deviceName}),u&&n("p",{role:"alert",class:"pz-rule-error",children:u}),n("div",{class:"pz-rule-tools",children:[n("label",{class:"pz-rule-enable",children:[n("input",{type:"checkbox",checked:m.enabled,onChange:w=>v(S=>{S.enabled=w.currentTarget.checked})}),a("penzor.rules.enable")]}),n("button",{class:"pz-btn",onClick:()=>v(w=>w.rules.push({id:`rule-${crypto.randomUUID()}`,source:"",target:"default"})),children:a("penzor.rules.add")})]}),n("div",{class:"pz-rule-table",children:[n("div",{class:"pz-rule-row pz-rule-label",children:[n("span",{children:a("penzor.rules.source")}),n("span",{children:a("penzor.rules.destination")}),n("span",{})]}),m.rules.map((w,S)=>n("div",{class:"pz-rule-row",children:[n("input",{"aria-label":`${a("penzor.rules.source")} ${S+1}`,list:"pz-content-sources",placeholder:"Forsion",value:w.source,onInput:T=>v(F=>{F.rules[S].source=T.currentTarget.value,delete F.rules[S].sourceId})}),n("select",{"aria-label":`${a("penzor.rules.destination")} ${S+1}`,value:w.target,onChange:T=>v(F=>{F.rules[S].target=T.currentTarget.value}),children:x.map(T=>n("option",{value:T,children:h(T)},T))}),n("button",{class:"pz-btn","aria-label":`${a("penzor.rules.remove")} ${S+1}`,onClick:()=>v(T=>{T.rules.splice(S,1)}),children:"\xD7"})]},w.id))]}),n("datalist",{id:"pz-content-sources",children:t.sources.filter(w=>w.kind==="folder").map(w=>n("option",{value:w.path},w.path))}),n("p",{class:"pz-rule-note",children:[a("penzor.rules.inherit"),n("br",{}),a("penzor.rules.namespace"),n("br",{}),a("penzor.rules.human")]}),n("div",{class:"pz-rule-actions",children:[g&&n("button",{class:"pz-btn",onClick:()=>{s(null),c(null)},children:a("penzor.cancel")}),n("button",{class:"pz-btn pri",disabled:d||t.running,onClick:()=>void b(async()=>c(await In(Gt.preview,m))),children:a("penzor.rules.preview")})]}),l&&n("div",{class:"pz-rule-preview",role:"region","aria-label":a("penzor.rules.previewTitle"),children:[n("h2",{children:a("penzor.rules.previewTitle")}),n("p",{children:a("penzor.rules.previewCounts",{up:l.upload,down:l.download,conflicts:l.conflicts})}),n("p",{class:"pz-rule-note",children:a("penzor.rules.retain")}),n("div",{class:"pz-rule-actions",children:[n("button",{class:"pz-btn",onClick:()=>c(null),children:a("penzor.rules.back")}),n("button",{class:"pz-btn pri",disabled:d,onClick:()=>void b(async()=>{await In(Gt.apply,l.token),s(null),c(null)}),children:a("penzor.rules.apply")})]})]})]})]})}function fl(e){let[,t]=C(0);W(()=>{let o=e.subscribe(()=>t(r=>r+1));return t(r=>r+1),o},[e])}function Rr(e){return n("div",{ref:e.rootRef,class:`${e.side?"pz-side":"pz"}${e.extra?` ${e.extra}`:""}`,lang:e.p.locale()==="zh"?"zh-CN":"en",...e.on,children:[n("style",{children:of}),e.children]})}var Yo=({pct:e,warn:t})=>n("div",{class:`pz-bar${t?" is-low":""}`,children:n("span",{style:{width:`${Math.max(0,Math.min(100,e)).toFixed(1)}%`}})});function _f({p:e}){fl(e);let t=oe(null),o=oe(null);W(()=>{e.enter(),e.refresh(),So(e.loc())&&e.ctx.closeView?.("penzor-info",{collapse:!0});let f=t.current;if(!f||typeof IntersectionObserver>"u")return;let m=!0;e.setVisible(!0);let g=new IntersectionObserver(h=>{let v=h.some(b=>b.isIntersecting);v&&!m&&(e.enter(),e.refresh()),m=v,e.setVisible(v)});return g.observe(f),()=>{g.disconnect(),e.setVisible(!1)}},[e]);let[r,a]=C(null),i=f=>Array.from(f.dataTransfer?.types??[]).includes("Files"),s=f=>{let m=f.target?.closest?.("tr[data-dir-id]");return m?{id:m.dataset.dirId,name:m.dataset.dirName??""}:null},l=()=>e.appStack()[e.appStack().length-1]?.name??e.t("penzor.drive"),c=e.canWrite()&&e.auth()==="in"?{onDragOver:f=>{if(!i(f))return;f.preventDefault(),f.stopPropagation(),f.dataTransfer&&(f.dataTransfer.dropEffect="copy");let m=s(f),g=m?.name||l();(r?.place!==g||r?.target?.id!==m?.id)&&a({place:g,target:m})},onDragLeave:f=>{t.current?.contains(f.relatedTarget)||a(null)},onDrop:f=>{if(!i(f))return;f.preventDefault(),f.stopPropagation();let m=s(f);a(null);let g=ee().getPathForFile;if(!g){f.dataTransfer&&e.upload(pf(f.dataTransfer),m);return}let h=Array.from(f.dataTransfer?.files??[]).map(v=>{try{return g(v)}catch{return""}}).filter(Boolean);e.upload(h,m)}}:{};W(()=>{e.canWrite()||a(null)},[e.canWrite()]);let d=e.t,p=e.auth(),u;return p==="out"?u=n(Af,{p:e}):e.loc().kind==="sync-home"?u=n(kf,{p:e,legacy:n(sx,{p:e})}):e.snap()?e.error()?u=n("div",{class:"pz-scroll",children:n("p",{class:"pz-note",children:e.error()})}):e.loc().kind==="overview"?u=n(dx,{p:e,upload:()=>{e.go("app:penzor"),o.current?.click()}}):u=n(px,{p:e,dropDir:r?.target?.id??null}):u=n("div",{class:"pz-scroll",children:n("p",{class:"pz-note",children:e.error()??d("penzor.loading")})}),n(Rr,{p:e,rootRef:t,extra:r?"pz-drop":"",on:c,children:[n("input",{class:"pz-root-upload",ref:o,type:"file",multiple:!0,hidden:!0,onChange:f=>{let m=f.currentTarget,g=ee().getPathForFile,h=g?Array.from(m.files??[]).map(v=>g(v)).filter(Boolean):rl(Array.from(m.files??[]),!1);e.go("app:penzor"),e.upload(h),m.value=""}}),u,r&&n("div",{class:"pz-dropbar",children:n("span",{children:[n(ae,{n:"upload"}),d("penzor.drop.to",{place:r.place})]})}),e.menu()&&n(vx,{p:e}),!pl&&n(Nf,{p:e})]})}var ix={dropbox:"Dropbox",s3:"S3",webdav:"WebDAV"};function dl({on:e,disabled:t,label:o,title:r,onToggle:a}){return n("button",{type:"button",role:"switch",class:`settings-switch${e?" active":""}`,"aria-checked":e,"aria-label":o,title:r,disabled:t,onClick:i=>{i.stopPropagation(),a(!e)},children:n("span",{})})}var ul=({tone:e,text:t,title:o})=>n("span",{class:`pz-sync-state is-${e}`,title:o,children:[e!=="off"&&n("i",{}),t]});function sx({p:e}){let t=e.t,o=e.syncState(),[r,a]=C(!1);if(!o)return n("div",{class:"pz-scroll",children:n("p",{class:"pz-note",children:t("penzor.loading")})});if(!o.signedIn)return n(Af,{p:e});let i=e.snap(),s=o.notes,l=t("penzor.ledger.sync"),c=s.maxBytes??i?.sync?.maxBytes??0,d=i?.sync?.maxFileBytes||50*1024*1024,p=s.vault?i?.sync?.vaults.find(_=>_.vault===s.vault)??null:null,u=Jp(o,c),f=s.on?s.last?.skippedLarge??0:0,m=s.rootName?t("penzor.sync.notesNamed",{name:s.rootName}):t("penzor.sync.notesPlain"),g=()=>e.openSync(),h=()=>{if(s.pending)return{tone:"wait",text:t("penzor.sync.waiting")};if(!s.on)return{tone:"off",text:t("penzor.sync.off")};let _=_o(o);if(_!=null)return{tone:"ok",text:_>0?t("penzor.sync.running",{pct:Math.round(_*100)}):t("penzor.sync.runningPlain")};if(u)return{tone:"warn",text:t("penzor.sync.overQuota")};if(Tr(o))return{tone:"warn",text:t("penzor.sync.failed")};if(s.backend==="folder")return{tone:"ok",text:t("penzor.sync.toFolder")};let L=ix[s.backend];return L?{tone:"ok",text:t("penzor.sync.to",{name:L})}:s.last?{tone:"ok",text:s.localBytes!=null?t("penzor.sync.doneSize",{size:e.b(s.localBytes)}):t("penzor.sync.done")}:{tone:"ok",text:t("penzor.sync.firstPending")}},v={tone:"off",text:t("penzor.sync.off")},b=(_,L)=>L?`${_} \xB7 ${t("penzor.sync.metaLast",{time:Pn(L,e.locale())})}`:_,x=()=>{let _=o.agents;if(!_.on)return v;if(_.running)return{tone:"ok",text:t("penzor.sync.runningPlain")};let L=t("penzor.sync.agentsN",{n:_.count});return _.last&&!_.last.ok?{tone:"warn",text:t("penzor.sync.failed"),title:_.last.error}:_.last&&_.last.conflicts>0?{tone:"warn",text:t("penzor.sync.conflictsN",{n:_.last.conflicts}),title:t("penzor.sync.conflictsHint")}:{tone:"ok",text:b(L,_.last?.at)}},w=()=>{let _=o.plugins;return _.on?(_.pending??0)>0?{tone:"wait",text:t("penzor.sync.pluginsPending",{n:_.pending})}:{tone:"ok",text:b(t("penzor.sync.pluginsN",{n:_.count}),_.lastAt)}:v},S=_=>L=>{e.setSync(_,L)},T=s.available===!1&&!s.on&&(s.backend==="off"||s.backend==="penzor"),F=[e.thisDevice()?t("penzor.sync.metaDevice",{name:e.thisDevice()}):null,s.on?s.last?t("penzor.sync.metaLast",{time:Pn(s.last.at,e.locale())}):t("penzor.sync.metaNever"):null,s.on&&s.backend!=="off"?Ks(s,e.locale()):null].filter(_=>!!_),B=h(),N=p?[...new Set([...p.devices,...p.device?[p.device]:[]])]:[],j=i?.ama?i.ama.reduce((_,L)=>_+L.sizeBytes,0):null;return n("div",{class:"pz-scroll",children:n("div",{class:"pz-col",children:[n(Ir,{p:e}),n("div",{class:"pz-title pz-sync-head",children:[n("h1",{class:"pz-h1",children:t("penzor.sync.title")}),n("span",{class:"pz-badge",children:[n(ae,{n:"check"}),Yp(o,e.locale())]})]}),F.length>0&&n("div",{class:"pz-meta",children:F.map(_=>n("span",{children:_},_))}),s.pending&&n(lx,{p:e,s:o}),u&&n("div",{class:"pz-sync-ask is-warn",role:"region",children:[n("h4",{children:s.localBytes!=null&&c>0?t("penzor.sync.quotaTitle",{size:e.b(s.localBytes),ledger:l,max:e.b(c)}):t("penzor.sync.quotaTitlePlain",{ledger:l})}),n("p",{children:[t("penzor.sync.quotaBody"),f>0&&` ${t("penzor.sync.quotaLarge",{size:e.b(d),n:f})}`]}),n("div",{class:"pz-acts",children:[n("button",{class:"pz-btn pri",onClick:()=>void Sn("membership").then(_=>{_||e.ctx.app?.notify?.(t("err.openFailed"))}),children:t("member.upgrade")}),p&&n("button",{class:"pz-btn",onClick:()=>e.go(`sync:${p.vault}`),children:t("penzor.sync.quotaSee")})]})]}),n("div",{class:"pz-sync-card",children:[n("div",{class:`pz-sync-row is-click${r?" is-open":""}`,children:[n("button",{type:"button",class:"pz-sync-main","aria-expanded":r,onClick:()=>a(!r),children:[n("span",{class:"pz-tile",children:n(ae,{n:"notebook"})}),n("span",{class:"pz-sync-txt",children:[n("b",{children:m}),n("small",{children:t("penzor.sync.notesDesc")})]}),n(ul,{...B})]}),n(dl,{on:s.on&&!s.pending,label:m,disabled:!!s.pending||T||e.syncBusy("notes"),title:s.pending?t("penzor.sync.decideAbove"):void 0,onToggle:S("notes")})]}),r&&n("div",{class:"pz-sync-sub",children:[n("div",{class:"kv",children:[n("span",{children:t("penzor.sync.kvSchedule")}),n("span",{children:Ks(s,e.locale())}),n("button",{class:"pz-link",onClick:g,children:t("penzor.sync.change")})]}),n("div",{class:"kv",children:[n("span",{children:t("penzor.sync.kvDirection")}),n("span",{children:t(`penzor.sync.dir.${s.direction}`)}),n("button",{class:"pz-link",onClick:g,children:t("penzor.sync.change")})]}),f>0&&n("div",{class:"kv",children:[n("span",{children:t("penzor.sync.kvSkipped")}),n("span",{children:t("penzor.sync.skippedN",{n:f,size:e.b(d)})}),n("span",{})]}),s.backend==="penzor"&&s.vault&&n("div",{class:"kv",children:[n("span",{children:t("penzor.sync.kvWhere")}),n("span",{children:i?.sync&&c>0?t("penzor.sync.whereUsed",{ledger:l,vault:s.vault,used:e.b(i.sync.usedBytes),max:e.b(c)}):t("penzor.sync.where",{ledger:l,vault:s.vault})}),p?n("button",{class:"pz-link",onClick:()=>e.go(`sync:${p.vault}`),children:t("penzor.sync.open")}):n("span",{})]})]}),n("div",{class:"pz-sync-row",children:[n("div",{class:"pz-sync-main",children:[n("span",{class:"pz-tile",children:n(ae,{n:"bot"})}),n("span",{class:"pz-sync-txt",children:[n("b",{children:t("penzor.sync.agents")}),n("small",{children:t("penzor.sync.agentsDesc")})]}),n(ul,{...x()})]}),n(dl,{on:o.agents.on,label:t("penzor.sync.agents"),disabled:e.syncBusy("agents"),onToggle:S("agents")})]}),n("div",{class:"pz-sync-row",children:[n("div",{class:"pz-sync-main",children:[n("span",{class:"pz-tile",children:n(ae,{n:"puzzle"})}),n("span",{class:"pz-sync-txt",children:[n("b",{children:t("penzor.sync.plugins")}),n("small",{children:t("penzor.sync.pluginsDesc")})]}),n(ul,{...w()})]}),n(dl,{on:o.plugins.on,label:t("penzor.sync.plugins"),disabled:e.syncBusy("plugins"),onToggle:S("plugins")})]})]}),n("div",{class:"pz-h3",children:t("penzor.sync.devicesTitle")}),i?N.length===0?n("p",{class:"pz-sync-none",children:t("penzor.sync.noDevices")}):n("div",{class:"pz-rows pz-sync-dev",children:N.map(_=>n("div",{class:"row",children:[n(ae,{n:"laptop"}),n("span",{class:"t",children:[_,_===e.thisDevice()&&n("em",{children:t("penzor.sync.thisOne")})]}),n("span",{class:"s",children:p?.device===_&&p.updatedAt?t("penzor.sync.lastWrite",{time:Pn(Date.parse(p.updatedAt),e.locale())}):""})]},_))}):n("p",{class:"pz-sync-none",children:t("penzor.loading")}),n("div",{class:"pz-h3",children:t("penzor.sync.phoneTitle")}),n("div",{class:"pz-tip",children:[n(ae,{n:"info"}),n("span",{children:j!=null?t("penzor.sync.phoneTip",{size:e.b(j)}):t("penzor.sync.phoneTipPlain")})]}),n("p",{class:"pz-note",children:[t("penzor.sync.foot"),n("button",{class:"pz-link",onClick:g,children:t("penzor.sync.footLink")})]})]})})}function lx({p:e,s:t}){let o=e.t,r=t.notes.pending,a=e.syncBusy("resolve"),i=new Date,s=o("penzor.sync.backupName",{name:t.notes.rootName??o("penzor.sync.notesPlain"),date:`${i.getFullYear()}-${String(i.getMonth()+1).padStart(2,"0")}-${String(i.getDate()).padStart(2,"0")}`}),l=r.cloudDevice?o("penzor.sync.askCloud",{device:r.cloudDevice,files:r.cloudFiles.toLocaleString(),size:e.b(r.cloudBytes)}):o("penzor.sync.askCloudNoDevice",{files:r.cloudFiles.toLocaleString(),size:e.b(r.cloudBytes)});return n("div",{class:"pz-sync-ask",role:"region","aria-label":o("penzor.sync.askTitle"),children:[n("h4",{children:o("penzor.sync.askTitle")}),n("p",{children:[l," ",o("penzor.sync.askLocal",{local:r.localOnly.toLocaleString(),conflicts:r.conflicts.toLocaleString()})]}),e.confirmCloud()?n("div",{class:"pz-confirm",children:[n("span",{children:o("penzor.sync.askConfirm",{backup:s})}),n("button",{class:"pz-btn pri",disabled:a,onClick:()=>void e.resolveNotes("cloud"),children:o("penzor.sync.askConfirmGo")}),n("button",{class:"pz-btn",disabled:a,onClick:()=>e.setConfirmCloud(!1),children:o("penzor.cancel")})]}):n("div",{class:"pz-acts",children:[n("button",{class:"pz-btn pri",disabled:a,onClick:()=>void e.resolveNotes("merge"),children:o("penzor.sync.askMerge")}),n("button",{class:"pz-btn",disabled:a,onClick:()=>e.setConfirmCloud(!0),children:o("penzor.sync.askCloudBtn")}),n("button",{class:"pz-btn",disabled:a,onClick:()=>void e.resolveNotes("skip"),children:o("penzor.sync.askSkip")})]}),n("p",{class:"pz-sync-explain",children:o("penzor.sync.askExplain",{backup:s})})]})}function Af({p:e}){let t=e.t;return n("div",{class:"pz-scroll",children:n("div",{class:"pz-empty",children:[n("span",{class:"ic",children:n(ae,{n:"cloud"})}),n("h2",{children:t("penzor.out.title")}),n("p",{children:t("penzor.out.lead")}),n("button",{class:"pz-btn pri",onClick:()=>e.signIn(),children:[n(ae,{n:"login"}),t("penzor.out.signIn")]})]})})}function cx({p:e}){let t=e.t,o=e.snap()?.ledger,r=e.snap()?.ledgerStale,a=!!o?.complete&&o.usage.usedBytes!=null;return n("div",{class:"pz-unified-quota",role:"status",children:[n("div",{class:"pz-total",children:[n("b",{children:a?e.b(o.usage.usedBytes):"\u2014"}),n("span",{children:o?t("penzor.ofMax",{max:e.b(o.quota.limitBytes)}):t("penzor.unified.unavailable")})]}),a&&(o.state==="warn"||o.state==="over"?n(Yo,{pct:o.quota.limitBytes>0?o.usage.usedBytes/o.quota.limitBytes*100:100,warn:!0}):n(ux,{p:e})),n("p",{class:"pz-note",children:r?t("penzor.unified.stale"):a?o.enforcement?t("penzor.unified.enforced"):o.phase==="grace"?t("penzor.unified.grace",{date:en(Math.max(Date.parse(o.rollout?.graceUntil??""),Date.parse(o.rollout?.compatibilityUntil??"")||0),e.locale())}):o.state==="over"?t("penzor.unified.over"):o.state==="warn"?t("penzor.unified.warn"):`${t("penzor.unified.notice")} \xB7 ${t("penzor.unified.accounting",{trash:e.b(o.usage.trashBytes)})}`:t("penzor.unified.incomplete")}),o?.rollout&&!r&&n("div",{class:"pz-tip",children:[n("p",{children:t("penzor.unified.rolloutPolicy")}),!o.rollout.acknowledgedAt&&n("button",{class:"pz-btn",onClick:()=>void e.acknowledgeStorageNotice(),children:t("penzor.unified.ack")})]})]})}var Xa=(e,t)=>t>0&&e/t>=.8;function dx({p:e,upload:t}){let o=e.t,r=e.snap(),a=r?.ledger,i=e.content(),s=js(r,i),l=b=>{let x=a?.sources.find(w=>w.id===b);return x?.status==="ready"?x.liveBytes+x.trashBytes:null},c=b=>{let x=l(b);return x==null?o("penzor.unified.unavailable"):e.b(x)},d=b=>()=>e.go(b),p=(b,x,w,S,T,F="folder")=>n("button",{class:`row${T?" is-warn":""}`,onClick:d(b),children:[n(ae,{n:F}),n("span",{class:"t",children:[x,n("em",{children:T??w})]}),n("span",{class:"s",children:S}),n(ae,{n:"right"})]},b),u=r?.apps&&Xa(r.apps.used,r.apps.quota)?o("penzor.quota.sourceLimit",{max:e.b(r.apps.quota),used:e.b(r.apps.used)}):void 0,f=r?.sync&&Xa(r.sync.usedBytes,r.sync.maxBytes)?o("penzor.quota.sourceLimit",{max:e.b(r.sync.maxBytes),used:e.b(r.sync.usedBytes)}):void 0,m=i?En(i):null,g=i?.deviceId,h=(r?.contentDevices??[]).filter(b=>b.id!==g),v=p("source:sync",o(s?"penzor.tree.legacy":"penzor.ledger.sync"),o(s?"penzor.ov.legacy":"penzor.ov.sync"),c("sync"),f);return n("div",{class:"pz-scroll",children:n("div",{class:"pz-col",children:[n(Ir,{p:e}),n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:o("penzor.drive")}),n("button",{class:"pz-btn",onClick:t,children:[n(ae,{n:"upload"}),o("penzor.unified.uploadTo")]})]}),n(cx,{p:e}),n("div",{class:"pz-ov-group",children:o("penzor.ov.mine")}),n("div",{class:"pz-rows",children:[p("app:penzor",o("penzor.uploads"),o("penzor.ov.uploads"),c("uploads")),Ws(a)&&p("source:market",o("penzor.source.market"),o("penzor.ov.market"),c("market"),void 0,"store")]}),n("div",{class:"pz-ov-group",children:o("penzor.ov.synced")}),n("div",{class:"pz-rows",children:s&&r?.contentDevices?n(M,{children:[p("content:default",o("penzor.scope.all"),m?.kind==="ok"&&m.at?o("penzor.ov.allLast",{time:Pn(m.at,e.locale())}):o("penzor.ov.all"),""),g&&p(`content:device-${g}`,o("penzor.tree.thisBackup"),o("penzor.ov.self"),""),h.map(b=>p(`content:device-${b.id}`,b.name,o("penzor.ov.device"),""))]}):n(M,{children:[v,p("source:agents",o("penzor.source.agents"),o("penzor.ov.agents"),c("agents")),p("source:profile",o("penzor.source.profile"),o("penzor.ov.profile"),c("profile"))]})}),n("div",{class:"pz-ov-group",children:o("penzor.tree.byApp")}),n("div",{class:"pz-rows",children:[p("source:ama",o("penzor.ledger.ama"),o("penzor.ov.ama"),c("ama")),p("source:apps",o("penzor.ledger.apps"),o("penzor.ov.apps"),c("apps"),u),p("source:plugins",o("penzor.source.plugins"),o("penzor.ov.plugins"),c("plugins")),p("exports",o("penzor.ledger.exports"),o("penzor.ov.exports"),c("exports"))]}),s&&n(M,{children:[n("div",{class:"pz-ov-group",children:o("penzor.ov.stale")}),n("div",{class:"pz-rows is-stale",children:v})]}),n("p",{class:"pz-note",children:o("penzor.unified.policy")})]})})}function ux({p:e}){let t=e.snap()?.ledger;if(!t?.complete||t.usage.usedBytes==null||t.quota.limitBytes<=0)return null;let o=e.t,r=s=>{let l=t.sources.find(c=>c.id===s);return l?.status==="ready"?l.liveBytes+l.trashBytes:0},a=[[o("penzor.ov.segNotes"),r("ama")],[o("penzor.ledger.apps"),r("apps")],[o("penzor.ov.segSync"),r("sync")],[o("penzor.uploads"),r("uploads")]];a.push([o("penzor.ov.segOther"),Math.max(0,t.usage.usedBytes-a.reduce((s,[,l])=>s+l,0))]);let i=a.filter(([,s])=>s>0);return n(M,{children:[n("div",{class:"pz-seg",role:"img","aria-label":i.map(([s,l])=>`${s} ${e.b(l)}`).join(", "),children:i.map(([s,l],c)=>n("span",{class:`c${c}`,style:{width:`${Math.max(.6,l/t.quota.limitBytes*100)}%`}},s))}),n("div",{class:"pz-legend",children:i.map(([s,l],c)=>n("span",{children:[n("i",{class:`c${c}`}),s," ",n("b",{children:e.b(l)})]},s))})]})}function px({p:e,dropDir:t}){let o=e.t,r=e.loc(),a=e.snap(),i=e.rows(),[s,l]=C(!1),[c,d]=C(null),p=oe(null),u=oe(null),f=oe(null),m=e.canWrite(),g=e.selection();W(()=>(e.picker.files=()=>p.current?.click(),e.picker.folder=()=>u.current?.click(),()=>{e.picker.files=void 0,e.picker.folder=void 0}),[e]);let h=(z,A)=>{let R=z.currentTarget,X=ee().getPathForFile,Q=Array.from(R.files??[]);if(!X){R.value="",e.upload(rl(Q,A));return}let H=Q.map(pe=>{try{return X(pe)}catch{return""}}),te=H.filter(Boolean);if(A){let pe=new Set;Q.forEach((Ue,me)=>{let Ie=Ue.webkitRelativePath??"",Ze=H[me];!Ie||!Ze||Ze.length<Ie.length||pe.add(Ze.slice(0,Ze.length-Ie.length)+Ie.split("/")[0])}),te=[...pe]}R.value="",e.upload(te)},v=(z,A)=>{e.select(A,{toggle:z.metaKey||z.ctrlKey,range:z.shiftKey}),f.current?.focus({preventScroll:!0})},b=z=>{if(z.target?.tagName!=="INPUT"){if((z.metaKey||z.ctrlKey)&&z.key.toLowerCase()==="a"&&e.canMulti())z.preventDefault(),e.selectAll();else if(z.key==="Escape"&&g.length>1){z.preventDefault();let A=e.selected();e.select(A)}}},x=r.kind==="sync"?o(e.content()?.config.enabled?"penzor.tree.legacy":"penzor.ledger.sync"):r.kind==="ama"?o("penzor.ledger.ama"):r.kind==="app"&&!e.canWrite()?o("penzor.ledger.apps"):null,w=r.kind==="content"?Tf(e,r.namespace):r.kind==="sync"?r.vault:r.kind==="ama"?a.ama?.find(z=>z.id===r.vaultId)?.name??"":r.kind==="app"?e.appLabel(r.appId):r.kind==="source"?o(Ar[r.source]):r.kind==="exports"?o("penzor.ledger.exports"):o("penzor.trash"),S=r.kind==="app"?e.appStack().map(z=>z.name):e.path()?e.path().split("/"):[],T=[...x?[{label:x,depth:null}]:[],{label:w,depth:0},...S.map((z,A)=>({label:z,depth:A+1}))],F=["mtime","size","name"],B=()=>e.setSort(F[(F.indexOf(e.sort())+1)%F.length]),N=r.kind==="sync"?o("penzor.col.device"):r.kind==="trash"?o("penzor.col.origin"):r.kind==="exports"?o("penzor.col.app"):null,j=r.kind==="trash"?o("penzor.col.deleted"):o("penzor.col.mtime"),_=()=>{if(r.kind==="content"){let A=e.content()?En(e.content()):null,R=e.content()?.deviceId,X=r.namespace==="default"?o("penzor.content.noteAll"):r.namespace===`device-${R}`?o("penzor.content.noteSelf"):o("penzor.content.noteDevice",{name:w});return n(M,{children:[n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:w}),n("span",{class:"pz-badge",children:[n(ae,{n:"cloud"}),A?.kind==="ok"&&A.at?o("penzor.content.badgeLast",{time:Pn(A.at,e.locale())}):o("penzor.content.badge")]})]}),n("p",{class:"pz-note",children:X})]})}if(r.kind==="source"&&r.source==="market"){let A=a.ledger?.sources.find(X=>X.id==="market"),R=A?.status==="ready";return n(M,{children:[n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:o("penzor.source.market")}),n("span",{class:"pz-badge",children:[n(ae,{n:"store"}),o("penzor.market.badge")]})]}),R&&n("div",{class:"pz-meta",children:[n("span",{children:o("penzor.market.meta",{size:e.b(A.liveBytes+A.trashBytes),n:(A.fileCount??0).toLocaleString()})}),(A.historyBytesExcluded??0)>0&&n("span",{children:o("penzor.market.history",{size:e.b(A.historyBytesExcluded)})})]}),n("p",{class:"pz-note",children:o("penzor.source.marketNote")})]})}if(r.kind==="source")return n(M,{children:[n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:o(Ar[r.source])}),n("span",{class:"pz-badge",children:[n(ae,{n:"lock"}),o("penzor.unified.readonly")]})]}),n("p",{class:"pz-note",children:o(r.source==="plugins"?"penzor.source.pluginNote":"penzor.source.readonly")})]});if(r.kind==="sync"){let A=a.sync?.vaults.find(Q=>Q.vault===r.vault);if(!A)return null;let R=!!e.thisDevice()&&A.devices.includes(e.thisDevice()),X=a.sync;return n(M,{children:[n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:A.vault}),R&&!e.content()?.config.enabled&&n("span",{class:"pz-badge",children:[n(ae,{n:"refresh"}),o("penzor.sync.thisDevice")]})]}),e.content()?.config.enabled&&n("div",{class:"pz-legacy",children:[n(ae,{n:"history"}),n("span",{children:[o("penzor.legacy.title"),n("small",{children:o("penzor.legacy.body")})]}),n("button",{class:"pz-btn",onClick:()=>e.go("content:default"),children:o("penzor.legacy.go")})]}),n("div",{class:"pz-meta",children:[n("span",{children:o("penzor.meta.files",{size:e.b(A.bytes),n:A.files.toLocaleString()})}),A.updatedAt&&n("span",{children:A.device?o("penzor.sync.last",{time:en(Date.parse(A.updatedAt),e.locale()),device:A.device}):o("penzor.sync.lastNoDevice",{time:en(Date.parse(A.updatedAt),e.locale())})}),A.devices.length>0&&n("span",{children:o("penzor.sync.devices",{n:A.devices.length})})]}),Xa(X.usedBytes,X.maxBytes)&&n("div",{class:"pz-meter",children:[n(Yo,{pct:X.usedBytes/X.maxBytes*100,warn:X.usedBytes/X.maxBytes>=.9}),n("span",{children:o("penzor.quota.sourceLimit",{max:e.b(X.maxBytes),used:e.b(X.usedBytes)})})]})]})}if(r.kind==="ama"){let A=a.ama?.find(R=>R.id===r.vaultId);return n(M,{children:[n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:A?.name}),n("span",{class:"pz-badge",children:[n(ae,{n:"cloud"}),"Amadeus Cloud"]})]}),n("div",{class:"pz-meta",children:[n("span",{children:e.b(A?.sizeBytes??0)}),n("span",{children:o("penzor.unified.counted")})]})]})}if(r.kind==="app"){let A=a.apps?.apps.find(X=>X.appId===r.appId),R=a.apps;return n(M,{children:[n("div",{class:"pz-title",children:n("h1",{class:"pz-h1",children:e.appLabel(r.appId)})}),n("div",{class:"pz-meta",children:[n("span",{children:o("penzor.meta.files",{size:e.b(A?.bytes??0),n:(A?.files??0).toLocaleString()})}),!e.canWrite()&&n("span",{children:o("penzor.apps.by",{app:e.appLabel(r.appId)})})]}),e.canWrite()&&n("div",{class:"pz-meta",children:a.ledger?.complete&&a.ledger.usage.usedBytes!=null?n(M,{children:[n("span",{children:o("penzor.drive.total",{used:e.b(a.ledger.usage.usedBytes),max:e.b(a.ledger.quota.limitBytes)})}),n("button",{class:"pz-link",onClick:()=>e.go("ov"),children:o("penzor.drive.seeAll")})]}):n("span",{children:o("penzor.unified.unavailable")})}),R&&Xa(R.used,R.quota)&&n("div",{class:"pz-meter",children:[n(Yo,{pct:R.used/R.quota*100,warn:R.used/R.quota>=.9}),n("span",{children:o("penzor.quota.sourceLimit",{max:e.b(R.quota),used:e.b(R.used)})})]})]})}if(r.kind==="exports")return n(M,{children:[n("div",{class:"pz-title",children:n("h1",{class:"pz-h1",children:o("penzor.ledger.exports")})}),n("div",{class:"pz-meta",children:[n("span",{children:o("penzor.meta.files",{size:e.b(a.exports?.totalBytes??0),n:(a.exports?.total??0).toLocaleString()})}),n("span",{children:o("penzor.card.expFoot")})]})]});let z=i??[];return n(M,{children:[n("div",{class:"pz-title",children:n("h1",{class:"pz-h1",children:o("penzor.trash")})}),n("div",{class:"pz-meta",children:[n("span",{children:o("penzor.trash.meta",{n:z.length,size:e.b((a.trash??[]).reduce((A,R)=>A+(Number(R.fileSize)||0),0))})}),n("span",{children:o("penzor.trash.note")})]}),e.confirmEmpty()&&n("div",{class:"pz-confirm",children:[n("span",{children:o("penzor.confirm.empty",{n:z.length})}),n("button",{class:"pz-btn danger solid",onClick:()=>void e.emptyTrash(),children:o("penzor.trash.emptyBtn")}),n("button",{class:"pz-btn",onClick:()=>e.setConfirmEmpty(!1),children:o("penzor.cancel")})]})]})},L=e.selected(),$=g.length>1,P=g.reduce((z,A)=>z+(A.dir?0:A.size),0),K=e.txRows();return n(M,{children:[n("div",{class:"pz-top",children:[n("nav",{class:"pz-crumb",children:T.map((z,A)=>{let R=A===T.length-1,X=R?n("b",{children:z.label}):z.depth==null?n("span",{children:z.label}):n("button",{onClick:()=>e.up(z.depth),children:z.label});return n("span",{style:{display:"contents"},children:[X,!R&&n("i",{children:"\u203A"})]},A)})}),n("span",{class:"pz-sp"}),$?n(M,{children:[n("span",{class:"pz-selbar",children:o("penzor.sel.bar",{n:g.length,size:e.b(P)})}),g.some(z=>!z.dir)&&n("button",{class:"pz-btn",onClick:()=>void e.downloadMany(g),children:[n(ae,{n:"download"}),o("penzor.act.download")]}),g.every(e.canManageRow)&&n("button",{class:"pz-btn",onClick:()=>e.setSide({kind:"move",at:[]}),children:[n(ae,{n:"move"}),o("penzor.act.move")]}),g.every(e.canManageRow)&&n("button",{class:"pz-btn danger",onClick:()=>void e.trashMany(g),children:[n(ae,{n:"trash"}),o("penzor.act.trash")]}),n("button",{class:"pz-ibtn",title:o("penzor.act.clearSel"),onClick:()=>e.select(L),children:n(ae,{n:"x"})})]}):n(M,{children:[S.length>0&&n("button",{class:"pz-ibtn",title:o("penzor.act.up"),onClick:()=>e.up(),children:n(ae,{n:"up"})}),r.kind==="source"&&(r.source==="agents"||r.source==="profile")&&n("button",{class:"pz-chip",onClick:()=>void e.ctx.app?.openSpace?.(r.source==="agents"?"agents":"calendar").then(z=>{z||e.ctx.app?.notify?.(o("penzor.source.entryUnavailable"))}),children:o(r.source==="agents"?"penzor.source.openAgents":"penzor.source.openCalendar")}),r.kind==="ama"&&n("button",{class:"pz-chip",onClick:()=>void e.ctx.app?.openSpace?.("amadeus"),children:[n(ae,{n:"book"}),o("penzor.ama.open")]}),r.kind==="app"&&r.appId==="connect"&&e.ctx.app?.openSettings&&n("button",{class:"pz-chip",onClick:()=>e.ctx.app?.openSettings?.(fn("webpages")),children:[n(ae,{n:"globe"}),o("penzor.hosted.open")]}),r.kind==="trash"&&e.canEmptyTrash()&&n("button",{class:"pz-btn danger",onClick:()=>e.setConfirmEmpty(!0),children:[n(ae,{n:"trash"}),o("penzor.trash.emptyBtn")]}),m&&n("span",{class:"pz-split",children:[n("button",{class:"pz-btn pri",onClick:()=>e.picker.files?.(),children:[n(ae,{n:"upload"}),o("penzor.act.upload")]}),n("button",{class:"pz-btn pri more",title:o("penzor.act.uploadMore"),"aria-label":o("penzor.act.uploadMore"),onClick:z=>{let A=z.currentTarget.getBoundingClientRect();d({x:A.right,y:A.bottom+4})},children:n(ae,{n:"down"})})]}),m&&n("button",{class:"pz-ibtn",title:o("penzor.act.newFolder"),onClick:()=>e.startNewFolder(),children:n(ae,{n:"folder-plus"})}),s||e.query()?n("input",{class:"pz-find",placeholder:o("penzor.search"),value:e.query(),autoFocus:!0,onInput:z=>e.setQuery(z.currentTarget.value),onKeyDown:z=>{z.key==="Escape"&&(e.setQuery(""),l(!1))},onBlur:()=>{e.query()||l(!1)}}):n("button",{class:"pz-ibtn",title:o("penzor.search"),onClick:()=>l(!0),children:n(ae,{n:"search"})}),n("button",{class:"pz-chip",onClick:B,children:[r.kind==="trash"&&e.sort()==="mtime"?o("penzor.sort.deleted"):o(`penzor.sort.${e.sort()}`),n(ae,{n:"down"})]})]})]}),m&&n(M,{children:[n("input",{ref:p,type:"file",multiple:!0,hidden:!0,onChange:z=>h(z,!1)}),n("input",{ref:u,type:"file",hidden:!0,webkitdirectory:!0,onChange:z=>h(z,!0)})]}),c&&n(If,{x:c.x,y:c.y,alignRight:!0,onClose:()=>d(null),items:[{id:"files",label:o("penzor.act.uploadFiles"),icon:"upload",run:()=>e.picker.files?.()},{id:"folder",label:o("penzor.act.uploadFolder"),icon:"folder",run:()=>e.picker.folder?.()}]}),n("div",{class:"pz-scroll",ref:f,tabIndex:-1,onKeyDown:b,onContextMenu:z=>{!m||z.target.closest("tr")||(z.preventDefault(),e.openMenu(z.clientX,z.clientY,null))},children:n("div",{class:"pz-col",children:[_(),e.rowsError()?n("p",{class:"pz-note",children:o("penzor.err",{reason:e.rowsError()})}):i?i.length===0&&!K.length&&e.newFolder()==null?n("p",{class:"pz-note",children:e.query()?o("penzor.noMatch",{q:e.query()}):m&&!S.length?o("penzor.drive.empty"):o("penzor.folderEmpty")}):r.kind==="source"&&r.source==="market"?n(mx,{p:e,rows:i}):n("table",{class:"pz-table",children:[n("thead",{children:n("tr",{children:[n("th",{children:o("penzor.col.name")}),n("th",{class:"r",children:o("penzor.col.size")}),n("th",{children:j}),N&&n("th",{children:N})]})}),n("tbody",{children:[e.newFolder()!=null&&n(hx,{p:e,cols:N?4:3}),i.map((z,A)=>n(M,{children:[!z.dir&&(A===0||i[A-1].dir)&&K.map(R=>n(Cf,{p:e,x:R},R.key)),n("tr",{class:`${e.isSelected(z.key)?"sel":""}${t&&t===z.key?" drop":""}`,"data-dir-id":m&&z.dir?z.key:void 0,"data-dir-name":m&&z.dir?z.name:void 0,onMouseDown:R=>{R.shiftKey&&R.preventDefault()},onClick:R=>v(R,z),onDblClick:()=>{z.dir?e.openDir(z):e.download(z)},onContextMenu:R=>{R.preventDefault(),e.openMenu(R.clientX,R.clientY,z)},children:[n("td",{class:"n",children:n("span",{children:[n(ae,{n:Va(z.name,z.dir)}),r.kind==="content"&&!S.length&&Sf[z.name]?n(M,{children:[n("b",{children:o(Sf[z.name])}),n("em",{class:"cnt",children:[z.name,(z.count??0)>0&&` \xB7 ${o("penzor.card.expSmall",{n:z.count.toLocaleString()})}`]})]}):n(M,{children:[n("b",{children:z.name}),z.count!=null&&z.count>0&&n("em",{class:"cnt",children:z.count.toLocaleString()})]})]})}),n("td",{class:"r",children:z.dir&&r.kind==="app"?"\u2014":e.b(z.size)}),n("td",{children:en(z.mtime,e.locale())}),N&&n("td",{class:z.col4?"":"dim",children:z.col4?z.col4===e.thisDevice()?o("penzor.side.thisDevice",{name:z.col4}):z.col4:"\u2014"})]})]},z.key)),(i.length===0||i[i.length-1].dir)&&K.map(z=>n(Cf,{p:e,x:z},z.key))]})]}):n("p",{class:"pz-note",children:o("penzor.loading")}),r.kind==="trash"&&!!e.snap()?.amaTrash?.length&&n(gx,{p:e})]})})]})}var wf={plugin:"penzor.market.type.plugin",skill:"penzor.market.type.skill",agent:"penzor.market.type.agent",space:"penzor.market.type.space",theme:"penzor.market.type.theme","amadeus-plugin":"penzor.market.type.amadeusPlugin"},zf={approved:"penzor.market.status.approved",pending:"penzor.market.status.pending",rejected:"penzor.market.status.rejected"},fx={plugin:"puzzle","amadeus-plugin":"puzzle",skill:"sparkles",agent:"bot",theme:"palette",space:"archive"};function mx({p:e,rows:t}){let o=e.t;return n("table",{class:"pz-table pz-market",children:[n("thead",{children:n("tr",{children:[n("th",{children:o("penzor.col.name")}),n("th",{children:o("penzor.col.type")}),n("th",{children:o("penzor.col.status")}),n("th",{class:"r",children:o("penzor.col.size")}),n("th",{children:o("penzor.col.mtime")})]})}),n("tbody",{children:t.map(r=>{let a=r.ref?.market,i=a?a.counted?[a.version?`v${a.version.replace(/^v/i,"")}`:"",a.pending?o("penzor.market.updating"):"",a.historyBytes>0?o("penzor.market.older",{size:e.b(a.historyBytes)}):""].filter(Boolean).join(" \xB7 "):o(a.source==="npm"?"penzor.market.fromNpm":"penzor.market.fromGithub"):"";return n("tr",{children:[n("td",{class:"n",children:n("span",{children:[n(ae,{n:fx[a?.type??""]??"archive"}),n("b",{children:r.name}),i&&n("em",{class:"cnt",children:i})]})}),n("td",{children:a&&wf[a.type]?o(wf[a.type]):a?.type??"\u2014"}),n("td",{children:a&&n("span",{class:`pz-badge${a.status==="rejected"?" is-warn":""}`,children:zf[a.status]?o(zf[a.status]):a.status})}),n("td",{class:"r",children:a&&!a.counted?o("penzor.market.notCounted"):e.b(r.size)}),n("td",{children:en(r.mtime,e.locale())})]},r.key)})})]})}function Tf(e,t){return t==="default"?e.t("penzor.scope.all"):t===`device-${e.content()?.deviceId}`?e.t("penzor.tree.thisBackup"):e.snap()?.contentDevices?.find(r=>`device-${r.id}`===t)?.name||`Forsion-${t.slice(7,15)}`}var Sf={Amadeus:"penzor.cat.notes",agents:"penzor.source.agents",human:"penzor.cat.profile",Plugins:"penzor.cat.plugins"};function gx({p:e}){let t=e.snap()?.amaTrash;return n("section",{class:"pz-ama-trash",children:[n("h3",{class:"pz-h3",children:e.t("penzor.trash.ama")}),n("p",{class:"pz-note",children:e.t("penzor.trash.amaNote")}),t?t.length?n("table",{class:"pz-table",children:[n("thead",{children:n("tr",{children:[n("th",{children:e.t("penzor.col.name")}),n("th",{children:e.t("penzor.col.size")}),n("th",{children:e.t("penzor.trash.expires")})]})}),n("tbody",{children:t.map(o=>n("tr",{children:[n("td",{children:[o.vaultName," / ",o.path]}),n("td",{children:e.b(o.size)}),n("td",{children:en(Date.parse(o.expiresAt),e.locale())})]},o.id))})]}):n("p",{class:"pz-note",children:e.t("penzor.folderEmpty")}):n("p",{class:"pz-note",children:e.t("penzor.unified.unavailable")})]})}function hx({p:e,cols:t}){let[o,r]=C(e.newFolder()??""),a=oe(null),i=oe(!1);Zn(()=>{a.current?.focus(),a.current?.select()},[]);let s=()=>{i.current||(i.current=!0,e.createFolder(o))};return n("tr",{class:"sel",children:[n("td",{class:"n",children:n("span",{children:[n(ae,{n:"folder-open"}),n("input",{ref:a,class:"pz-newname",value:o,onInput:l=>r(l.currentTarget.value),onKeyDown:l=>{l.key==="Enter"?s():l.key==="Escape"&&(i.current=!0,e.cancelNewFolder())},onBlur:s})]})}),n("td",{class:"r",children:"\u2014"}),n("td",{children:e.t("penzor.justNow")}),t>3&&n("td",{})]})}function Cf({p:e,x:t}){let o=t.size>0?Math.min(100,Math.round(t.done/t.size*100)):0;return n("tr",{class:`pz-txrow ${t.state}`,title:t.state==="paused"?e.t("penzor.tx.paused"):void 0,children:[n("td",{class:"n",children:n("span",{children:[n(ae,{n:Va(t.name)}),n("b",{children:t.name})]})}),n("td",{class:"r",children:t.state==="active"?Xs(t.done,t.size,e.locale()):e.b(t.size)}),n("td",{children:t.state==="queued"?n("span",{class:"pz-inl",children:e.t("penzor.tx.queued")}):n("span",{class:"pz-inl",children:[n(Yo,{pct:o}),t.state==="paused"?e.t("penzor.tx.pause"):`${o}%`]})})]})}function Ef(e,t){let o=e.t,r=e.loc().kind,a={id:"download",label:o("penzor.act.download"),icon:"download",run:()=>void e.download(t)};return r==="source"?t.dir||!t.ref?.downloadPath?[]:[a]:r==="app"&&!e.canManageRow(t)?t.dir?[]:[a]:r==="sync"||r==="ama"?t.dir?[]:[a]:r==="app"?[...t.dir?[]:[a],{id:"rename",label:o("penzor.act.rename"),icon:"pen",run:()=>{e.select(t),e.setSide({kind:"rename"})}},{id:"move",label:o("penzor.act.move"),icon:"move",run:()=>{e.select(t),e.setSide({kind:"move",at:[]})}},{id:"trash",label:o("penzor.act.trash"),icon:"trash",danger:!0,run:()=>void e.trash(t)}]:r==="exports"?[a,{id:"rename",label:o("penzor.act.rename"),icon:"pen",run:()=>{e.select(t),e.setSide({kind:"rename"})}},{id:"delete",label:o("penzor.act.delete"),icon:"trash",danger:!0,run:()=>{e.select(t),e.setSide({kind:"confirm",what:"deleteExport"})}}]:r==="trash"&&e.canManageRow(t)?[{id:"restore",label:o("penzor.act.restore"),icon:"undo",run:()=>void e.restore(t)},{id:"purge",label:o("penzor.act.purge"),icon:"trash",danger:!0,run:()=>{e.select(t),e.setSide({kind:"confirm",what:"purge"})}}]:[]}function bx(e,t){let o=e.t;if(!t)return e.canWrite()?[{id:"upload",label:o("penzor.act.uploadHere"),icon:"upload",run:()=>e.picker.files?.()},{id:"new-folder",label:o("penzor.act.newFolder"),icon:"folder-plus",run:()=>e.startNewFolder()}]:[];let r=e.selection();return r.length>1&&r.some(a=>a.key===t.key)?Pf(e,r):Ef(e,t)}function Pf(e,t){let o=e.t,r=e.loc().kind,a=t.filter(i=>!i.dir).length;return[...a?[{id:"download",label:o("penzor.sel.download",{n:a}),icon:"download",run:()=>void e.downloadMany(t)}]:[],...t.every(e.canManageRow)?[{id:"move",label:o("penzor.act.move"),icon:"move",run:()=>e.setSide({kind:"move",at:[]})},{id:"trash",label:o("penzor.act.trash"),icon:"trash",danger:!0,run:()=>void e.trashMany(t)}]:[]]}function If({x:e,y:t,items:o,onClose:r,alignRight:a}){let i=oe(null),[s,l]=C({x:e,y:t});return W(()=>{let c=i.current;if(c){let u=c.getBoundingClientRect(),f=a?e-u.width:e;l({x:Math.max(8,Math.min(f,window.innerWidth-u.width-8)),y:t+u.height>window.innerHeight-8?Math.max(8,t-u.height):t})}let d=u=>{u.target instanceof Node&&c?.contains(u.target)||r()},p=u=>{u.key==="Escape"&&r()};return window.addEventListener("pointerdown",d,!0),window.addEventListener("keydown",p,!0),window.addEventListener("blur",r),window.addEventListener("wheel",r,{passive:!0}),()=>{window.removeEventListener("pointerdown",d,!0),window.removeEventListener("keydown",p,!0),window.removeEventListener("blur",r),window.removeEventListener("wheel",r)}},[e,t]),o.length?va(n("div",{ref:i,class:"ctx-menu pz-menu",role:"menu",style:{left:`${s.x}px`,top:`${s.y}px`},children:o.map((c,d)=>n(M,{children:[c.danger&&d>0&&n("div",{class:"ctx-separator"}),n("button",{role:"menuitem",class:c.danger?"danger":"",onClick:()=>{r(),c.run()},children:[n(ae,{n:c.icon}),c.label]})]},c.id))}),document.body):(queueMicrotask(r),null)}function vx({p:e}){let t=e.menu();return n(If,{x:t.x,y:t.y,items:bx(e,t.row),onClose:e.closeMenu})}function Rf({p:e}){fl(e);let t=e.t,o=e.loc(),r=e.selected();if(So(o)||!r)return n(Rr,{p:e,side:!0,children:n("p",{class:"pz-side-none",children:t("penzor.side.none")})});let a=e.snap(),i=e.side(),s=e.selection();if(s.length>1)return n(xx,{p:e,sel:s});let l=o.kind==="content"?`${Tf(e,o.namespace)} / ${r.key}`:o.kind==="sync"?`${o.vault} / ${r.key}`:o.kind==="ama"?`${a?.ama?.find(g=>g.id===o.vaultId)?.name??""} / ${r.key}`:o.kind==="app"?[e.appLabel(o.appId),...e.appStack().map(g=>g.name),r.name].join(" / "):o.kind==="source"?`${t(Ar[o.source])} / ${r.key}`:o.kind==="exports"?`${t("penzor.ledger.exports")} / ${r.name}`:r.col4??"",c=r.dir?"":(r.name.match(/\.([A-Za-z0-9]{1,8})$/)?.[1]??"").toUpperCase(),d=o.kind==="trash"?t("penzor.side.inTrash",{size:e.b(r.size)}):r.dir?r.count!=null?t("penzor.side.folder",{n:r.count.toLocaleString()}):t("penzor.side.folderPlain"):[c,e.b(r.size)].filter(Boolean).join(" \xB7 "),p=o.kind==="trash"?[[t("penzor.side.origin"),l],[t("penzor.side.deletedAt"),en(r.mtime,e.locale())]]:[[t("penzor.side.where"),l],[t("penzor.side.mtime"),en(r.mtime,e.locale())]];o.kind==="sync"&&!r.dir&&p.push([t("penzor.side.device"),r.col4?r.col4===e.thisDevice()?t("penzor.side.thisDevice",{name:r.col4}):r.col4:"\u2014"]),o.kind==="app"&&!r.dir&&!e.canWrite()&&p.push([t("penzor.side.from"),e.appLabel(o.appId)]),o.kind==="exports"&&p.push([t("penzor.side.from"),r.col4??"\u2014"]);let u=o.kind==="app"&&!e.canManageRow(r)?r.archive?"penzor.archive.note":r.managed?"penzor.hosted.note":"penzor.source.appNote":nf(o),f=Ef(e,r),m=e.versions();return n(Rr,{p:e,side:!0,children:[n("div",{class:"pz-thumb",children:n(ae,{n:Va(r.name,r.dir)})}),i.kind==="rename"?n(yx,{p:e,row:r}):n("div",{class:"pz-fname",children:r.name}),n("div",{class:"pz-fsub",children:d}),i.kind==="confirm"?n("div",{class:"pz-confirm",style:{margin:0},children:[n("span",{children:t(i.what==="purge"?"penzor.confirm.purge":"penzor.confirm.deleteExport",{name:r.name})}),n("button",{class:"pz-btn danger solid",onClick:()=>void(i.what==="purge"?e.purge(r):e.deleteExport(r)),children:t(i.what==="purge"?"penzor.act.purge":"penzor.act.delete")}),n("button",{class:"pz-btn",onClick:()=>e.setSide({kind:"view"}),children:t("penzor.cancel")})]}):f.length>0&&n("div",{class:"pz-acts",children:f.filter(g=>g.id!=="move").map(g=>n("button",{class:`pz-btn${g.danger?" danger":""}${g.id==="restore"?" pri":""}`,onClick:()=>g.run(),children:[n(ae,{n:g.icon}),g.id==="trash"?t("penzor.act.delete"):g.label]},g.id))}),i.kind==="move"&&n(Mf,{p:e,row:r,at:i.at}),n("dl",{class:"pz-dl",children:[p.map(([g,h])=>n(M,{children:[n("dt",{children:g}),n("dd",{children:h})]},g)),o.kind==="app"&&!r.dir&&n(M,{children:[n("dt",{children:t("penzor.side.versions")}),n("dd",{children:m==null?"\u2026":m.length?t("penzor.side.versionsN",{n:m.length}):t("penzor.side.versionsNone")})]})]}),e.canManageRow(r)&&!r.dir&&m&&m.length>0&&n("div",{class:"pz-vers",children:m.map(g=>n("div",{children:[n("span",{children:t("penzor.side.versionRow",{n:g.versionNumber,time:en(g.createdAt,e.locale()),size:e.b(g.fileSize)})}),n("button",{class:"pz-link",onClick:()=>void e.restoreVersion(r,g),children:t("penzor.side.restoreVersion")})]},g.versionNumber))}),o.kind==="trash"&&r.dir&&(r.count??0)>0&&n("div",{class:"pz-tip",children:[n(ae,{n:"undo"}),n("span",{children:t("penzor.side.inner",{n:r.count})})]}),o.kind==="exports"&&n("div",{class:"pz-tip",children:[n(ae,{n:"trash"}),n("span",{children:t("penzor.side.exportNote")})]}),u&&n("div",{class:"pz-tip",children:[n(ae,{n:"lock"}),n("span",{children:t(u,{vault:o.kind==="sync"?o.vault:""})})]})]})}function yx({p:e,row:t}){let[o,r]=C(t.name),a=oe(null),i=oe(!1),s=()=>{i.current||(i.current=!0,e.rename(t,o))};return W(()=>{let l=a.current;if(!l)return;l.focus();let c=t.dir?-1:t.name.lastIndexOf(".");l.setSelectionRange(0,c>0?c:t.name.length)},[t.key]),n("input",{ref:a,class:"pz-input",value:o,onInput:l=>r(l.currentTarget.value),onKeyDown:l=>{l.key==="Enter"?s():l.key==="Escape"&&(i.current=!0,e.setSide({kind:"view"}))},onBlur:s})}function Mf({p:e,row:t,at:o}){let r=e.t,a=e.loc(),i=a.kind==="app"?e.appLabel(a.appId):"",s=e.selection(),l=s.length>1,c=new Set(l?s.map(u=>u.key):[t.key]),d=(e.moveFolders()??[]).filter(u=>!c.has(u.id)),p=o[o.length-1]??{id:"ROOT",name:r("penzor.move.root",{app:i})};return n("div",{class:"pz-tip",style:{flexDirection:"column"},children:[n("div",{class:"pz-sh",style:{margin:0},children:r("penzor.move.title")}),n("div",{class:"pz-pick",children:[o.length>0&&n("button",{onClick:()=>e.moveBrowse(o.slice(0,-1)),children:[n(ae,{n:"up"}),o.length>1?o[o.length-2].name:r("penzor.move.root",{app:i})]}),e.moveFolders()==null?n("span",{children:"\u2026"}):d.length===0?n("span",{children:r("penzor.move.noFolders")}):d.map(u=>n("button",{onClick:()=>e.moveBrowse([...o,u]),children:[n(ae,{n:"folder"}),u.name]},u.id))]}),n("div",{class:"pz-acts",children:[n("button",{class:"pz-btn pri",onClick:()=>void(l?e.moveMany(s,p):e.moveTo(t,p)),children:r("penzor.move.here")}),n("button",{class:"pz-btn",onClick:()=>e.setSide({kind:"view"}),children:r("penzor.cancel")})]})]})}function xx({p:e,sel:t}){let o=e.t,r=e.loc(),a=t.filter(u=>!u.dir),i=t.length-a.length,s=a.reduce((u,f)=>u+f.size,0),l=new Date,c=o("penzor.download.folder",{date:`${l.getFullYear()}-${String(l.getMonth()+1).padStart(2,"0")}-${String(l.getDate()).padStart(2,"0")}`}),d=r.kind==="app"?[e.appLabel(r.appId),...e.appStack().map(u=>u.name)].join(" / "):r.kind==="sync"?[r.vault,...e.path()?e.path().split("/"):[]].join(" / "):r.kind==="ama"?[e.snap()?.ama?.find(u=>u.id===r.vaultId)?.name??"",...e.path()?e.path().split("/"):[]].join(" / "):"",p=e.side();return n(Rr,{p:e,side:!0,children:[n("div",{class:"pz-thumb",children:n(ae,{n:"files"})}),n("div",{class:"pz-fname",children:o("penzor.sel.title",{n:t.length})}),n("div",{class:"pz-fsub",children:i?o("penzor.sel.subDirs",{size:e.b(s),files:a.length,dirs:i}):o("penzor.sel.sub",{size:e.b(s),files:a.length})}),n("div",{class:"pz-acts",children:Pf(e,t).map(u=>n("button",{class:`pz-btn${u.danger?" danger":""}`,onClick:()=>u.run(),children:[n(ae,{n:u.icon}),u.id==="trash"?o("penzor.act.delete"):u.label]},u.id))}),p.kind==="move"&&n(Mf,{p:e,row:t[0],at:p.at}),n("dl",{class:"pz-dl",children:[n("dt",{children:o("penzor.side.where")}),n("dd",{children:d}),a.length>1&&n(M,{children:[n("dt",{children:o("penzor.sel.saveTo")}),n("dd",{children:o("penzor.sel.saveToValue",{folder:c})})]})]}),i>0&&a.length>0&&n("div",{class:"pz-tip",children:[n(ae,{n:"folder"}),n("span",{children:o("penzor.sel.noDirs")})]})]})}var Lf=(e,t)=>t<60?e.t("penzor.tx.sec",{n:Math.max(1,Math.round(t))}):e.t("penzor.tx.min",{n:Math.ceil(t/60)}),kx=(e,t)=>t!=null&&Date.now()-t<6e4?e.t("penzor.justNow"):en(t,e.locale()),wx=(e,t)=>{let o=t.error??"";return o==="too_large"?e.t("penzor.err.too_large",{size:e.b(t.size)}):o==="network"?e.t("penzor.err.network",{pct:t.size?Math.round(t.done/t.size*100):0}):o==="quota"||o==="account_changed"||o==="not_signed_in"||o==="gone"||o==="changed"||o==="storage_unavailable"||o==="popup_blocked"||o==="download_unavailable"||o==="download_failed"?e.t(`penzor.err.${o}`):e.t("penzor.err.other",{code:o||"?"})};function zx(e){let t=e.filter(l=>l.state==="active"||l.state==="queued"||l.state==="paused"),o=t.filter(l=>l.state!=="paused"),r=o.reduce((l,c)=>l+Math.max(c.size,c.done),0),a=o.reduce((l,c)=>l+c.done,0),i=o.reduce((l,c)=>l+c.speed,0),s=i>0?(r-a)/i:null;return{live:t,failed:e.filter(l=>l.state==="failed"),done:e.filter(l=>l.state==="done"),up:t.filter(l=>l.kind==="up").length,down:t.filter(l=>l.kind==="down").length,pct:r>0?Math.min(100,Math.round(a/r*100)):0,eta:s!=null&&s>=5?s:null}}var pl=!1;function Df(e,t){let o=t.ui?.float;if(typeof o!="function")return null;pl=!0;let r=null,a=()=>e.card()!=="hidden"&&(e.transfers().length>0||e.notices().length>0),i=()=>{if(a()&&!r){try{r=o({scope:"space",space:vn,anchor:"bottom-end",role:"panel",id:"transfers",bare:!0})}catch(l){console.error("[penzor] transfer float failed",l);return}Oe(n(Sx,{p:e}),r.el)}else if(!a()&&r){let l=r;r=null,l.close(),Oe(null,l.el)}},s=e.subscribe(i);return i(),()=>{if(s(),pl=!1,r){let l=r;r=null,l.close(),Oe(null,l.el)}}}function Sx({p:e}){return fl(e),n(Rr,{p:e,extra:"pz-txfloat",children:n(Nf,{p:e})})}function Nf({p:e}){let t=e.t,o=e.card(),r=e.transfers(),a=e.notices();if(o==="hidden"||!r.length&&!a.length)return null;let i=zx(r),s=i.failed.length+a.length,l=t("penzor.tx.counts",{up:i.up,down:i.down}),c=i.live.length?t("penzor.tx.busy",{n:i.live.length}):s?t("penzor.tx.failedN",{n:s}):t("penzor.tx.allDone"),d=i.live.length?[l,i.eta!=null?t("penzor.tx.eta",{eta:Lf(e,i.eta)}):""].filter(Boolean).join(" \xB7 "):s?i.done.length?t("penzor.tx.restDone",{n:i.done.length}):"":t("penzor.tx.doneN",{n:i.done.length}),p={onMouseEnter:()=>e.holdCard(!0),onMouseLeave:()=>e.holdCard(!1)};if(o==="pill")return n("button",{class:"ui-popover pz-txpill",...p,onClick:()=>e.setCard("open"),title:t("penzor.tx.expand"),"aria-label":t("penzor.tx.expand"),children:[i.live.length?n("span",{class:"pz-ring",style:{"--p":i.pct}}):n(ae,{n:s?"alert":"check"}),n("span",{children:i.live.length?t("penzor.tx.pill",{counts:l,pct:i.pct}):c}),n(ae,{n:"up"})]});let u=g=>g.state==="failed"?0:g.state==="active"?1:g.state==="queued"||g.state==="paused"?2:3,f=[...r].filter(g=>g.state!=="canceled").sort((g,h)=>u(g)-u(h)||(u(g)===3?(h.finishedAt??0)-(g.finishedAt??0):0)),m=i.live.length>0&&i.live.every(g=>g.state==="paused");return n("div",{class:"ui-popover pz-txcard",role:"region","aria-label":c,...p,children:[n("div",{class:"pz-txhead",children:[n("b",{children:c}),n("span",{children:d}),n("i",{class:"sp"}),n("button",{class:"pz-ib",title:t("penzor.tx.collapse"),"aria-label":t("penzor.tx.collapse"),onClick:()=>e.setCard(i.live.length||s?"pill":"hidden"),children:n(ae,{n:"down"})})]}),i.live.length>0&&n("div",{class:"pz-txall",children:n(Yo,{pct:i.pct})}),n("div",{class:"pz-txlist",children:[a.map(g=>n("div",{class:"pz-txrow2 is-fail",children:[n(ae,{n:"alert"}),n("span",{class:"nm",children:t("penzor.tx.quota",{size:e.b(g.short)})}),n("span",{class:"acts",children:n("button",{class:"pz-ib",title:t("penzor.tx.remove"),onClick:()=>e.dismissNotice(g.id),children:n(ae,{n:"x"})})}),n("span",{class:"sub",children:[n("span",{class:"err",children:t("penzor.tx.quotaSub")}),n("button",{class:"pz-link",onClick:()=>{e.dismissNotice(g.id),e.go("trash")},children:t("penzor.tx.freeSpace")})]})]},g.id)),f.map(g=>n(Cx,{p:e,x:g},g.id))]}),n("div",{class:"pz-txfoot",children:[i.live.length>0&&n("button",{onClick:()=>void e.txAll(m?"resume":"pause"),children:t(m?"penzor.tx.resumeAll":"penzor.tx.pauseAll")}),i.failed.length>0&&!i.live.length&&n("button",{onClick:()=>void e.txAll("retry"),children:t("penzor.tx.retryAll")}),i.done.length>0&&i.live.length>0&&n("button",{onClick:()=>void e.txClear("finished"),children:t("penzor.tx.clearDone")}),!i.live.length&&n("button",{onClick:()=>void e.txClear(s?"all":"finished"),children:t(s?"penzor.tx.clear":"penzor.tx.clearDone")})]})]})}function Cx({p:e,x:t}){let o=e.t,r=t.size>0?Math.min(100,t.done/t.size*100):0,a=t.state==="done"?"check":t.state==="failed"?"alert":t.kind==="up"?"tx-up":"tx-down",i=(l,c,d)=>n("button",{class:"pz-ib",title:c,"aria-label":c,onClick:d,children:n(ae,{n:l})}),s;if(t.state==="failed")s=n("span",{class:"err",children:wx(e,t)});else if(t.state==="done")s=n(M,{children:[n("span",{children:e.b(t.size)}),n("span",{children:o(t.kind==="up"?"penzor.tx.uploaded":"penzor.tx.downloaded",{time:kx(e,t.finishedAt)})})]});else if(t.state==="queued")s=n(M,{children:[n("span",{children:e.b(t.size)}),n("span",{children:o("penzor.tx.queued")})]});else if(t.state==="paused")s=n(M,{children:[n("span",{children:e.b(t.size)}),n("span",{children:o("penzor.tx.paused")})]});else{let l=t.speed>0?(t.size-t.done)/t.speed:null;s=n(M,{children:[n("span",{children:Xs(t.done,t.size,e.locale())}),t.speed>0&&n("span",{children:[e.b(t.speed),"/s"]}),l!=null&&l>=5&&n("span",{children:o("penzor.tx.left",{eta:Lf(e,l)})})]})}return n("div",{class:`pz-txrow2${t.state==="done"?" is-done":t.state==="failed"?" is-fail":""}`,children:[n(ae,{n:a}),n("span",{class:"nm",title:t.name,children:t.name}),n("span",{class:"acts",children:[(t.state==="active"||t.state==="queued")&&i("pause",o("penzor.tx.pause"),()=>void e.txOp(t.id,"pause")),t.state==="paused"&&i("play",o("penzor.tx.resume"),()=>void e.txOp(t.id,"resume")),(t.state==="active"||t.state==="queued"||t.state==="paused")&&i("x",o("penzor.tx.cancel"),()=>void e.txOp(t.id,"cancel")),t.state==="failed"&&t.error!=="too_large"&&n("button",{class:"pz-link",onClick:()=>void e.txOp(t.id,"retry"),children:o("penzor.tx.retry")}),t.state==="failed"&&i("x",o("penzor.tx.remove"),()=>void e.txOp(t.id,"dismiss")),t.state==="done"&&(t.kind==="up"||t.localPath)&&n("button",{class:"pz-link",onClick:()=>e.locate(t),children:o(t.kind==="down"?"penzor.tx.reveal":"penzor.tx.locate")})]}),(t.state==="active"||t.state==="paused"||t.state==="queued")&&n(Yo,{pct:r}),n("span",{class:"sub",children:s})]})}function _x(e,t){let o=un(t.tangu);return!!e&&typeof e.registerView=="function"&&typeof e.registerListSource=="function"&&typeof e.openView=="function"&&typeof e.app?.openSpace=="function"&&typeof o?.cloudInvoke=="function"&&(!o.mobile||!!o.extendMobile)&&pn(o)}function Of(e,t=window){if(!_x(e,t))return null;let o=un(t.tangu),r=tf(e);Df(r,e),zn(o)||o.cloudInvoke("penzor:device").then(f=>{let m=f?.name;typeof m=="string"&&m&&r.setDevice(m)}).catch(()=>{});let a=f=>m=>(Oe(n(f,{p:r}),m),()=>{Oe(null,m)});e.registerView({id:Dn.main,title:r.t("penzor.title"),icon:"penzor",workspaceSource:Zs,mount:a(_f)}),e.registerView({id:Dn.info,title:r.t("penzor.details"),icon:"page",mount:a(Rf)});let i=e.listCapabilities?.includes("tree")??!1,s=typeof e.app?.setSpaceProgress=="function"?"hard-drive":"archive",l=()=>({overview:r.t("penzor.overview"),drive:r.t("penzor.drive"),driveIcon:s,sync:r.t("penzor.ledger.sync"),ama:r.t("penzor.ledger.ama"),apps:r.t("penzor.ledger.apps"),exports:r.t("penzor.ledger.exports"),trash:r.t("penzor.trash"),items:f=>r.t("penzor.items",{n:f}),files:r.t("penzor.uploads"),synced:r.t("penzor.tree.synced"),all:r.t("penzor.scope.all"),thisBackup:r.t("penzor.tree.thisBackup"),byApp:r.t("penzor.tree.byApp"),legacy:r.t("penzor.tree.legacy")}),c=()=>{let f=r.content();if(f){let g=En(f);return[{key:"sync-home",title:r.t("penzor.sync.title"),icon:"refresh",hint:Kp(g,r.locale()),...g.kind==="warn"?{unread:!0}:{}}]}if(!r.hasSync())return[];let m=r.syncState();return[{key:"sync-home",title:r.t("penzor.sync.title"),icon:"refresh",hint:Xp(m,r.locale()),...Wa(m)?{unread:!0}:{}}]};e.registerListSource({id:Zs,title:r.t("penzor.title"),search:!0,items:f=>{let m=[...c(),...jp(r.snap(),l(),r.locale(),r.content())],g=f?.query?.trim().toLowerCase()??"";if(g)return m.filter(v=>v.kind!=="folder"&&v.title.toLowerCase().includes(g)).map(({parent:v,...b})=>b);if(i)return m;let h=new Map(m.filter(v=>v.kind==="folder").map(v=>[v.key,v.title]));return m.filter(v=>v.kind!=="folder").map(({parent:v,...b})=>({...b,group:v?h.get(v):void 0}))},subscribe:f=>r.subscribe(f),activeKey:()=>zo(r.loc()),open:f=>r.go(f.key),actions:[{id:"refresh",label:r.t("penzor.act.refresh"),icon:"refresh",primary:!0,run:()=>{r.refresh(),e.app?.sync?.refresh?.().catch(()=>{})}}],itemMenu:f=>{if(f.key.startsWith("sync:")){let m=f.key.slice(5);return[{id:"open-sync",label:r.t("penzor.act.openSync"),icon:"gear",run:()=>r.openSync()},{id:"copy-name",label:r.t("penzor.act.copyName"),icon:"copy",run:()=>{navigator.clipboard?.writeText(m).then(()=>e.app?.notify?.(r.t("penzor.toast.copied")))}}]}return f.key==="trash"&&r.canEmptyTrash()?[{id:"empty-trash",label:r.t("penzor.trash.emptyBtn"),icon:"trash",danger:!0,run:()=>{r.go("trash"),r.setConfirmEmpty(!0)}}]:[]}}),e.registerCommand?.({id:"open-penzor",title:()=>r.t("penzor.cmd.open"),keywords:"penzor cloud storage quota sync files trash drive upload \u84EC\u6D32\u4E91 \u4E91\u7A7A\u95F4 \u4E91\u76D8 \u7F51\u76D8 \u4E0A\u4F20 \u989D\u5EA6 \u540C\u6B65 \u56DE\u6536\u7AD9",run:()=>{e.app?.openSpace?.(vn)}});let d=f=>{if(!(f.key!==ef||!f.newValue))try{let m=JSON.parse(f.newValue);m.page==="sync"&&r.hasSync()?e.app?.openSpace?.(vn).then(()=>r.go("sync-home")):typeof m.vault=="string"&&m.vault&&r.focusVault(m.vault)}catch{}},p=(()=>{try{return!new URLSearchParams(t.location.search).get("window")}catch{return!1}})();if(p){t.addEventListener("storage",d);try{t.localStorage.setItem(Qs,"1")}catch{}}let u=r.dispose;return r.dispose=()=>{if(p){t.removeEventListener("storage",d);try{t.localStorage.removeItem(Qs)}catch{}}u()},r}var Ff="sync",ml=3,Ax=24*36e5,Tx=5e3,Ex=15e4,Bf=e=>e.split("/").filter(Boolean).pop()||e,Mr=(e,t,o)=>e!=null&&Number.isFinite(e)?Pn(e,t,o):void 0;function Px(e,t){let o=new Map;for(let r of e.jobs){if(r.state!=="conflict"||t-r.at>Ax||e.jobs.some(i=>i.path===r.path&&i.at>r.at&&i.state==="done"&&i.direction!=="merge"))continue;let a=o.get(r.path);(!a||r.at>a.at)&&o.set(r.path,r)}return[...o.values()].sort((r,a)=>a.at-r.at)}var Ix=e=>{let t=e.jobs.filter(o=>o.state==="done").map(o=>o.finishedAt??o.at);return t.length?Math.max(...t):null};function Rx(e,t,o,r){let a=En(e);if(a.kind==="off")return{rows:[{id:"status",title:t("penzor.widget.off"),meta:t("penzor.cs.statusOff")}]};let i=[],s=Ix(e);i.push(a.kind==="paused"?{id:"status",title:t("penzor.widget.paused"),meta:t("penzor.cs.statusPaused")}:a.kind==="run"?{id:"status",title:t("penzor.widget.running"),meta:`${a.pct}%`,tone:"accent",now:!0}:a.kind==="scan"?{id:"status",title:t("penzor.cs.statusScan"),now:!0}:a.kind==="warn"?{id:"status",title:t("penzor.widget.problem"),meta:t("penzor.cs.statusWarn",{n:a.n}),tone:"warn"}:{id:"status",title:t("penzor.cs.statusOk"),...Mr(a.at,o,r)?{meta:Mr(a.at,o,r)}:{}});let l=e.jobs.filter(u=>u.state==="active").length,c=e.jobs.filter(u=>u.state==="queued"||u.state==="paused").length;l?i.push({id:"queue",title:t("penzor.widget.active",{n:l}),...c?{meta:t("penzor.widget.queued",{n:c})}:{}}):c&&i.push({id:"queue",title:t("penzor.widget.waiting",{n:c})});let d=[...e.error?[{id:"error",title:t("penzor.widget.error"),meta:t("penzor.widget.errorMeta"),tone:"warn"}]:[],...Er(e).sort((u,f)=>f.at-u.at).map(u=>({id:`failed:${u.id}`,title:Bf(u.path),meta:t("penzor.widget.failed"),tone:"warn"})),...Px(e,r).map(u=>({id:`conflict:${u.id}`,title:Bf(u.path),meta:t("penzor.widget.conflict"),tone:"warn"}))];i.push(...d.slice(0,ml));let p=[...d.length>ml?[t("penzor.widget.more",{n:d.length-ml})]:[],...a.kind!=="ok"&&Mr(s,o,r)?[t("penzor.widget.last",{time:Mr(s,o,r)})]:[]];return{rows:i,...p.length?{footer:p.join(" \xB7 ")}:{}}}function Mx(e,t,o,r){if(!e.signedIn)return Hf(t);let a=e.notes;if(a.pending)return{rows:[{id:"pending",title:t("penzor.widget.pending"),meta:t("penzor.sync.waiting"),tone:"warn"}]};if(!qa(e))return{rows:[{id:"status",title:t("penzor.widget.off"),meta:t("penzor.cs.statusOff")}]};let i=[],s=_o(e)??(e.agents.on&&e.agents.running?0:null),l=Math.max(...[a.last?.ok?a.last.at:null,e.agents.last?.ok?e.agents.last.at:null,e.plugins.lastAt??null].filter(c=>typeof c=="number"),-1);return s!=null?i.push({id:"status",title:t("penzor.widget.running"),...s>0?{meta:`${Math.round(s*100)}%`}:{},tone:"accent",now:!0}):i.push({id:"status",title:t("penzor.cs.statusOk"),...l>0?{meta:Mr(l,o,r)}:{}}),a.on&&Tr(e)&&i.push({id:"notes-failed",title:t("penzor.widget.notesFailed"),meta:t("penzor.widget.errorMeta"),tone:"warn"}),e.agents.on&&e.agents.last?.ok===!1&&i.push({id:"agents-failed",title:t("penzor.widget.agentsFailed"),meta:t("penzor.widget.errorMeta"),tone:"warn"}),e.plugins.on&&(e.plugins.pending??0)>0&&i.push({id:"plugins",title:t("penzor.widget.waiting",{n:e.plugins.pending})}),{rows:i}}var Hf=e=>({rows:[{id:"signin",title:e("penzor.widget.signedOut"),meta:e("penzor.widget.signInHint")}]});function $f(e,t,o=Date.now()){let r=(a,i)=>Se(t,a,i);return e.kind==="signedOut"?Hf(r):e.kind==="content"?Rx(e.snap,r,t,o):Mx(e.snap,r,t,o)}var Lx=/not a Forsion Extend channel/;async function Uf(e,t){let o=ee();if(!pn(o))throw new Error("sync status is not available on this page");if(!t.noChannel&&typeof o.cloudInvoke=="function"){let i;try{i=await o.cloudInvoke(Gt.get)}catch(s){i={ok:!1,error:s instanceof Error?s.message:String(s)}}if(i?.ok&&i.value?.available)return{kind:"content",snap:i.value};if(!i?.ok&&i?.error==="not_signed_in")return{kind:"signedOut"};if(i?.ok||!Lx.test(i?.error??""))throw new Error(i?.error||"sync status unavailable");t.noChannel=!0}let r=!o.mobile&&typeof e.app?.sync?.get=="function"?e.app.sync:null,a=r?.get()??null;if(!a)throw new Error(r?"sync status is still loading":"sync status unavailable");return{kind:"legacy",snap:a}}var Dx=8e3;function qf(e){let t=e?.widgets;if(!e||!t||typeof t.provide!="function")return null;let o=()=>De(e.getLocale?.()),r={noChannel:!1},a=null,i=null,s=1,l=null,c=null,d,p,u=!1,f=0,m=()=>{u||t.invalidate(Ff)},g=S=>S?JSON.stringify($f(S,o())):"error",h=S=>{let T;return Promise.race([S,new Promise((F,B)=>{T=setTimeout(()=>B(new Error("timed out")),Dx)})]).finally(()=>clearTimeout(T))},v=async()=>{let S=s;if(!(u||f===S)){f=S;try{let T=g(await h(Uf(e,r)).catch(()=>null));if(u||S!==s)return;T!==a&&T!==i&&(i=T,m())}finally{f===S&&(f=0)}}},b=()=>{s++,f=0,l&&clearInterval(l),c&&clearTimeout(c),l=null,c=null,d?.(),d=void 0,p?.(),p=void 0},x=()=>{if(c&&clearTimeout(c),c=setTimeout(b,Ex),l)return;l=setInterval(()=>void v(),Tx),d=ee().onAuthChanged?.(()=>{i=null,m()}),p=(!ee().mobile&&typeof e.app?.sync?.subscribe=="function"?e.app.sync:null)?.subscribe(()=>void v())},w=t.provide(Ff,async(S,T)=>{if(u)throw new Error("disposed");x(),i=null;let F=T?.signal,B;try{B=$f(await Uf(e,r),o())}catch(N){throw F?.aborted||(a="error"),N}return F?.aborted||(a=JSON.stringify(B)),B});return{dispose(){u=!0,b(),w?.dispose?.()}}}var Ka="events",Nx="forsion-extend.events.seen",Wf="forsion-extend.events.seen.migrated",Ox="forsion-extend.events.seen.v2",Fx="forsion-extend.events.feed",Vf="forsion-extend.events.last",jf="forsion-extend.events.ping",Bx=200,$x=3e4,Qo=36e5,gl=864e5,Gf=8*Qo,Ux=1e3,Jf={newEvent:!0,claimable:"always",beforeEndHours:0,revision:0},Nn=(e,t)=>e&&(e[t]||e.zh||e.en)||"",Nr=(e,t)=>(e??[]).map(o=>Nn(o.label,t)||o.kind).join(" \xB7 "),hl=(e,t)=>e.sort-t.sort||(e.endsAt??"~").localeCompare(t.endsAt??"~");function Hx(e){let t=o=>o.kind==="notice";return{active:e.filter(o=>!t(o)&&(o.state==="live"||o.state==="claiming")).sort(hl),notices:e.filter(o=>t(o)&&o.state==="live").sort(hl),upcoming:e.filter(o=>o.state==="upcoming").sort(hl),ended:e.filter(o=>o.state==="ended"||t(o)&&o.state==="claiming").sort((o,r)=>(r.endsAt??"").localeCompare(o.endsAt??""))}}var Zo=(e,t)=>{let o=new Date(e),r=a=>String(a).padStart(2,"0");return`${r(o.getMonth()+1)}-${r(o.getDate())}${t?` ${r(o.getHours())}:${r(o.getMinutes())}`:""}`};function vl(e,t,o){let r=(l,c)=>Se(o,l,c);if(e.state==="upcoming")return{short:r("events.time.start",{date:Zo(e.startsAt,!1)}),long:r("events.time.start",{date:Zo(e.startsAt,!0)}),warn:!1};if(e.kind==="notice"){let l=r("events.time.published",{date:Zo(e.startsAt,!1)});return{short:l,long:l,warn:!1}}if(e.state==="claiming"&&e.claimUntil)return{short:r("events.time.claimShort",{date:Zo(e.claimUntil,!1)}),long:r("events.time.claim",{date:Zo(e.claimUntil,!0)}),warn:!1};if(e.state==="ended"||!e.endsAt){let l=e.endsAt?r("events.time.ended",{date:Zo(e.claimUntil??e.endsAt,!1)}):"";return{short:l,long:l,warn:!1}}let a=new Date(e.endsAt).getTime()-new Date(t).getTime(),i=Math.max(1,Math.ceil(a/Qo));if(i<=24)return{short:r("events.left.hours",{n:i}),long:r("events.left.longHours",{h:i}),warn:!0};let s=Math.floor(i/24);return{short:r("events.left.days",{n:s}),long:r("events.left.long",{d:s,h:i%24}),warn:!1}}function Ya(e){let t=e.remind;return!t||typeof t!="object"?Jf:{newEvent:typeof t.newEvent=="boolean"?t.newEvent:Jf.newEvent,claimable:t.claimable==="daily"||t.claimable==="off"?t.claimable:"always",beforeEndHours:Number.isFinite(t.beforeEndHours)&&t.beforeEndHours>0?t.beforeEndHours:0,revision:Number.isFinite(t.revision)?t.revision:0}}function bl(e,t){return e?t?{revision:Math.max(e.revision,t.revision),day:e.day>t.day?e.day:t.day}:e:t??null}function Xf(e){let t=e.state==="live"?e.endsAt:e.state==="claiming"?e.claimUntil:null,o=t?new Date(t).getTime():NaN;return Number.isFinite(o)?o:null}var yl=e=>e.state==="live"||e.state==="claiming"&&e.kind!=="notice";function qx(e,t,o,r){if(!yl(e))return{fresh:!1,claim:!1,ending:!1};let a=Ya(e),i=e.state==="live"&&a.newEvent&&(!t||t.revision<a.revision),s=e.claimable>0&&(a.claimable==="always"||a.claimable==="daily"&&t?.day!==o),l=Xf(e),c=l===null?NaN:l-r,d=a.beforeEndHours>0&&e.claimable>0&&c>0&&c<=a.beforeEndHours*Qo;return{fresh:i,claim:s,ending:d}}var Wx=(e,t,o,r)=>{let a=qx(e,t,o,r);return a.fresh||a.claim||a.ending};function Vx(e,t){let o=[Math.floor((t+Gf)/gl)*gl+gl-Gf];for(let r of e){if(!yl(r))continue;let a=Xf(r);if(a===null)continue;a>t&&o.push(a);let i=Ya(r);i.beforeEndHours>0&&r.claimable>0&&a-i.beforeEndHours*Qo>t&&o.push(a-i.beforeEndHours*Qo)}return o.length?Math.min(...o):null}function Kf(e,t){return e?/^(https:|data:image\/)/i.test(e)?e:e.startsWith("/")&&t?`${t.replace(/\/+$/,"")}${e}`:null:null}function Lr(e,t){try{let o=localStorage.getItem(e);return o===null?t:JSON.parse(o)}catch{return t}}function Dr(e,t){try{localStorage.setItem(e,t)}catch{}}function jx(e){try{localStorage.removeItem(e)}catch{}}var Gx={not_live:"events.err.notLive",completed:"events.err.completed",grant_failed:"events.err.grantFailed"};function Yf(e,t){let o=new Set,r=()=>{o.forEach(G=>G())},a=De(e.getLocale?.()),i="loading",s=null,l="",c=null,d="",p={},u=!1,f=0,m=null,g=!1,h=null,v=0,b,x=(G,ge)=>Se(a,G,ge),w=()=>Hx(s?.events??[]),S=()=>`${Ox}:${d}`,T=()=>`${Fx}:${d}`,F=G=>bl(p[G.id],G.seen??null),B=()=>s?.today??"",N=()=>Date.now(),j=G=>Wx(G,F(G),B(),N()),_=G=>{if(!yl(G))return!1;let ge=Ya(G),ye=F(G);return!ye||ye.revision<ge.revision||ye.day!==B()},L=()=>{let G=Lr(S(),null),ge={};if(G&&typeof G=="object"&&!Array.isArray(G))for(let[ye,Me]of Object.entries(G))Me&&Number.isFinite(Me.r)&&typeof Me.d=="string"&&(ge[ye]={revision:Me.r,day:Me.d});else if(G===null&&Lr(Wf,null)===null){let ye=Lr(Nx,[]);if(Array.isArray(ye))for(let Me of ye)typeof Me=="string"&&(ge[Me]={revision:0,day:""});p=ge,$(),Dr(Wf,JSON.stringify(d));return}p=ge},$=()=>{if(!d)return;let G=Object.entries(p).slice(-Bx);Dr(S(),JSON.stringify(Object.fromEntries(G.map(([ge,ye])=>[ge,{r:ye.revision,d:ye.day}]))))},P=async()=>{if(d)return;let G=f,ge;try{ge=await ee().authStatus?.()}catch{}if(G!==f)return;l||(l=ge?.cloudUrl??"");let ye=ge?.accountId||ge?.username;if(!(!ge?.cloudUrl||!ye||d)){if(d=`${ge.cloudUrl}|${ye}`,L(),!s){let Me=Lr(T(),null);Me&&typeof Me=="object"&&Array.isArray(Me.events)&&(s=Me,i="ready",u=!1)}r()}},K=()=>{if(m&&(clearTimeout(m),m=null),!s)return;let G=Vx(s.events,N());G!==null&&(m=setTimeout(()=>{m=null,Q()},Math.max(Ux,Math.min(G-N()+500,6*Qo))))},z=()=>{Dr(jf,String(Date.now()))},A=G=>{G&&Array.isArray(G.events)&&(s=G,i="ready")},R=G=>x(G.code&&Gx[G.code]||"events.err.failed"),X=0,Q=async G=>{G!==void 0&&(b=G||void 0),v=Date.now();let ge=++X;if(await P(),ge!==X)return;let ye=await q(b?`/events/feed?preview=${encodeURIComponent(b)}`:"/events/feed");ge===X&&(ye.ok?(A(ye.data),s===ye.data&&(u=!0,d&&!b&&Dr(T(),JSON.stringify(ye.data)))):Bn(ye)||ye.status===401?(s=null,i="signedOut",u=!1,d&&jx(T())):ye.status===404?(s=null,i="unavailable",u=!1):s||(i="error"),K(),r())},H=async G=>{if(!g){g=!0,h=null,r(),X++;try{await G()}finally{g=!1,X++,z(),r()}}},te=G=>H(async()=>{let ge=await q(`/events/${encodeURIComponent(G.id)}/checkin`,{method:"POST",body:{}});if(!ge.ok){h={ok:!1,text:R(ge),backpack:!1};return}A(ge.data.feed);let ye=Nr(ge.data.reward,a);h={ok:!0,text:ye?x("events.toast.checkin",{reward:ye}):x("events.checkin.done"),backpack:!!ye}}),pe=(G,ge)=>H(async()=>{let ye=await q(`/events/${encodeURIComponent(G.id)}/tasks/claim`,{method:"POST",body:{ids:ge}});if(!ye.ok){h={ok:!1,text:R(ye),backpack:!1};return}A(ye.data.feed);let Me=ye.data.results.filter(Ce=>Ce.ok&&!Ce.alreadyClaimed),he=ye.data.results.filter(Ce=>!Ce.ok).length,rt=Me.flatMap(Ce=>Ce.reward??[]);he?h={ok:!1,text:x("events.toast.partial",{n:Me.length,m:he}),backpack:!1}:Me.length&&(h={ok:!0,text:x("events.toast.claimed",{reward:Nr(rt,a)}),backpack:rt.length>0})}),Ue=G=>{let ge=(s?.events??[]).find(lt=>lt.id===G);if(!ge||!_(ge))return;let ye=Ya(ge).revision,{[G]:Me,...he}=p;p={...he,[G]:bl(Me,{revision:ye,day:B()})},$(),z();let rt=f,Ce=d;q(`/events/${encodeURIComponent(G)}/seen`,{method:"POST",body:{revision:ye}}).then(lt=>{if(rt!==f||Ce!==d||!lt.ok||!lt.data?.seen)return;let st=bl(p[G],lt.data.seen);st&&(st.revision!==p[G]?.revision||st.day!==p[G]?.day)&&(p={...p,[G]:st},$(),r())})},me=()=>{let G=w(),ge=[...G.active,...G.notices],ye=[...ge,...G.upcoming,...G.ended],Me=Lr(Vf,null);return ye.find(he=>he.id===Me)??ge.find(j)??ye[0]??null},Ie=e.subscribeLocale?.(G=>{a=De(G),r()}),Ze=G=>{d&&G.key===S()&&(L(),r()),G.key===jf&&Q()},be=()=>{Date.now()-v>$x&&Q()};window.addEventListener("storage",Ze),window.addEventListener("focus",be);let Qe=ee().onAuthChanged?.(()=>{f++,X++,l="",d="",p={},s=null,u=!1,i="loading",Q()}),St=t.fetchOnStart?setTimeout(()=>{Q()},3e3):null;return P(),{locale:()=>a,t:x,status:()=>i,feed:()=>s,origin:()=>l,groups:w,selected:()=>(s?.events??[]).find(G=>G.id===c)??me(),select:G=>{c=G,h=null,Dr(Vf,JSON.stringify(G)),Ue(G),r()},dotFor:j,needsSeen:_,fresh:()=>u,hasDot:()=>(s?.events??[]).some(j),active:()=>{let G=w();return i==="ready"&&G.active.length+G.notices.length>0},busy:()=>g,notice:()=>h,clearNotice:()=>{h=null,r()},refresh:Q,checkin:te,claim:pe,open:G=>{let ge=G?{id:G}:void 0;e.openFloatingPanel?e.openFloatingPanel(Ka,{title:x("events.title"),params:ge,width:1040,height:720,minWidth:720,minHeight:520}):e.openView?.(Ka,{location:"main",params:ge})},subscribe:G=>(o.add(G),()=>{o.delete(G)}),dispose:()=>{St&&clearTimeout(St),m&&clearTimeout(m),Ie?.(),Qe?.(),window.removeEventListener("storage",Ze),window.removeEventListener("focus",be),o.clear()}}}var Zf=`
1636
+ `;async function In(e,...t){let o=Q().cloudInvoke;if(!o)throw Error("content_sync_unavailable");let r=await o(e,...t);if(!r?.ok)throw Error(r?.error??"content_sync_unavailable");return r.value}var Qo=e=>e instanceof Error?e.message:String(e),Bx=["merge","cloud","local"],Ff={notes:{icon:"notebook",title:"penzor.cat.notes",desc:"penzor.cat.notesDesc"},agents:{icon:"bot",title:"penzor.cat.agents",desc:"penzor.cat.agentsDesc"},profile:{icon:"user-round",title:"penzor.cat.profile",desc:"penzor.cat.profileDesc"},plugins:{icon:"puzzle",title:"penzor.cat.plugins",desc:"penzor.cat.pluginsDesc"}};function Qa({on:e,disabled:t,label:o,onToggle:r}){return n("button",{type:"button",role:"switch",class:`settings-switch${e?" active":""}`,"aria-checked":e,"aria-label":o,disabled:t,onClick:a=>{a.stopPropagation(),r(!e)},children:n("span",{})})}function Uf({p:e,legacy:t}){let o=e.t,[r,a]=S(null),[i,s]=S(!0),[l,c]=S(null),[d,p]=S(null),[u,m]=S(0),[f,g]=S(!1),[h,b]=S(!1),[v,w]=S(null),[k,x]=S(!1),[T,F]=S(!1),[V,D]=S(!1),[j,A]=S({}),[L,U]=S(null),[N,oe]=S(!1),[_,C]=S(null),[P,G]=S(null),[Y,q]=S(null),te=K(!0),pe=K(!1),qe=K(null),ge=async()=>{try{let O=await In(Jt.get,e.locale(),{devices:!0});if(!O?.available){te.current&&s(!1);return}te.current&&(pe.current=!0,a(O),s(!0))}catch(O){te.current&&(!pe.current&&/unavailable|not a Forsion Extend channel/i.test(String(O))?s(!1):w(Qo(O)))}};$(()=>{te.current=!0,ge();let O=setInterval(()=>void ge(),1e3);return()=>{te.current=!1,clearInterval(O)}},[]),$(()=>{if(!L&&!N)return;let O=de=>{de instanceof KeyboardEvent&&de.key!=="Escape"||de.type==="mousedown"&&de.target?.closest?.(".pz-cs-menu")||(U(null),oe(!1))};return document.addEventListener("mousedown",O),document.addEventListener("keydown",O),()=>{document.removeEventListener("mousedown",O),document.removeEventListener("keydown",O)}},[L,N]);let Ie=!!r&&!r.config.enabled&&r.config.revision===0&&!T,Ze=Zt(()=>r&&Ie?Df(r.config):null,[Ie,r?.config.revision]),ve=r?l??Ze??r.config:null,Qe=!!r&&!k&&(Ie||!!l&&fl(r.config,l)>0),Ct=Qe&&ve?JSON.stringify(ve)+"#"+u:"";if($(()=>{if(p(null),q(null),!Ct)return;let O=!0,de=setTimeout(()=>{In(Jt.preview,ve).then(Te=>{O&&te.current&&p(Te)},Te=>{!O||!te.current||(/config_changed/.test(Qo(Te))?c(null):w(Qo(Te)))})},400);return()=>{O=!1,clearTimeout(de)}},[Ct]),!i)return t;if(!r||!ve)return n("div",{class:"pz-scroll",children:n("p",{class:"pz-note",children:v??o("penzor.loading")})});if(k)return n(Ux,{p:e,snap:r,refresh:ge,back:()=>x(!1)});let J=`device-${r.deviceId}`,he=r.devices.filter(O=>O.id!==r.deviceId),xe=(r.others?.files??0)>0,De=O=>r.sources.find(de=>de.path===O),be=O=>r.sources.filter(de=>de.path.startsWith(O+"/")&&!de.path.slice(O.length+1).includes("/")),rt=O=>O==="default"?o("penzor.scope.all"):O===J?o("penzor.scope.self"):o("penzor.scope.with",{name:r.devices.find(de=>`device-${de.id}`===O)?.name??O.slice(7,15)}),_e=(O,de,Te)=>{c(Lf(ve,O,de,xe)),G({path:O,name:Te,target:de}),U(null),w(null),g(!1)},ct=async O=>{b(!0),w(null);try{await O(),await ge()}catch(de){w(Qo(de))}finally{b(!1)}},lt=d?.agentAsks??[],Xt=()=>{if(lt.length&&!Y){q(Object.fromEntries(lt.map(O=>[O.slug,"merge"])));return}$t(Y??{})},$t=O=>void ct(async()=>{try{await In(Jt.apply,d.token,...Object.keys(O).length?[O]:[])}catch(tt){if(q(null),/preview_(changed|expired)/.test(Qo(tt))){g(!0),m(qt=>qt+1);return}throw tt}q(null);let de=tn(ve,"Plugins")==="default",Te=e.syncState()?.plugins;e.hasSync()&&Te&&Te.on!==de&&e.setSync("plugins",de),c(null),F(!1),g(!1)}),Ht=(O,de,Te)=>{O.stopPropagation();let tt=O.currentTarget.getBoundingClientRect(),qt=qe.current.getBoundingClientRect(),_t=document.body.currentCSSZoom||1;U(L?.path===de?null:{path:de,name:Te,x:(tt.left-qt.left)/_t-4,y:(tt.bottom-qt.top)/_t+4})},ft=({path:O,name:de})=>{let Te=tn(ve,O);return n("button",{type:"button",class:`pz-scope${Te!=="default"?" is-alt":""}`,"aria-haspopup":"menu","aria-expanded":L?.path===O,onClick:tt=>Ht(tt,O,de),children:[n(ie,{n:Te==="default"?"cloud":Te===J?"laptop":"monitor"}),rt(Te),n(ie,{n:"down"})]})},le=Pn(r),Ae=r.jobs.filter(O=>O.state==="queued"||O.state==="active"||O.state==="paused"),vt=Mr(r),ot=le.kind==="off"?n("span",{class:"pz-cs-status",children:[n(ie,{n:"cloud-off"}),o("penzor.cs.statusOff")]}):le.kind==="paused"?n("span",{class:"pz-cs-status",children:[n(ie,{n:"pause"}),o("penzor.cs.statusPaused")]}):le.kind==="run"?n("span",{class:"pz-cs-status is-ok",children:[n("span",{class:"pz-ring",style:`--p:${le.pct}`}),o("penzor.cs.statusRun",{pct:le.pct})]}):le.kind==="scan"?n("span",{class:"pz-cs-status is-ok",children:[n(ie,{n:"refresh"}),o("penzor.cs.statusScan")]}):le.kind==="warn"?n("span",{class:"pz-cs-status is-warn",children:[n(ie,{n:"alert"}),o("penzor.cs.statusWarn",{n:le.n})]}):n("span",{class:"pz-cs-status is-ok",children:[n(ie,{n:"cloud-check"}),le.at?o("penzor.cs.statusOkAgo",{time:Rn(le.at,e.locale())}):o("penzor.cs.statusOk")]}),je=_!=null&&_.trim()!==r.deviceName?tl(_.trim(),r.devices,r.deviceId):null,Dt=(O=!1)=>{let de=_;if(de==null)return;let Te=de.trim();if(Te!==r.deviceName&&tl(Te,r.devices,r.deviceId)){O&&C(null);return}C(null),Te!==r.deviceName&&ct(()=>In(Jt.rename,Te))},Kt=O=>{let de=/device_name_(taken|reserved|invalid)/.exec(O);return de?o(`penzor.cs.name.${de[1]}`):O},mt=Ae.find(O=>O.state==="active")??Ae[0],nn=(O,de)=>{let Te=Ff[O],tt=tn(ve,de)!=="off",qt=cl.has(de)&&be(de).length>0,_t=!!j[de]&&tt,gt=pl(ve,de),xn=De(de),Me=O==="notes"?xn?o("penzor.cat.files",{n:(xn.files??0).toLocaleString(),size:e.b(xn.size)}):"":O==="profile"?o("penzor.cat.profileOn"):o("penzor.cat.pluginsN",{n:be(de).length}),xt=n("b",{children:[o(Te.title),qt&&n("span",{class:"pz-cs-chev",children:n(ie,{n:"right"})})]}),Wt=n("small",{children:tt?n(I,{children:[n(ft,{path:de,name:o(Te.title)}),Me&&n(I,{children:[n("span",{class:"pz-sep",children:"\xB7"}),n("span",{children:Me})]}),gt>0&&n(I,{children:[n("span",{class:"pz-sep",children:"\xB7"}),n("button",{class:"pz-link",onClick:()=>x(!0),children:o("penzor.cat.custom",{n:gt})})]})]}):o(Te.desc)});return n(I,{children:[n("div",{class:`pz-sync-row${qt&&tt?" is-click":""}${_t?" is-open":""}`,children:[qt&&tt?n("div",{class:"pz-sync-main",role:"button",tabIndex:0,"aria-expanded":_t,onClick:()=>A({...j,[de]:!_t}),onKeyDown:Xe=>{Xe.key==="Enter"&&A({...j,[de]:!_t})},children:[n("span",{class:"pz-tile",children:n(ie,{n:Te.icon})}),n("span",{class:"pz-sync-txt",children:[xt,Wt]})]}):n("div",{class:"pz-sync-main",children:[n("span",{class:"pz-tile",children:n(ie,{n:Te.icon})}),n("span",{class:"pz-sync-txt",children:[xt,Wt]})]}),n(Qa,{on:tt,label:o(Te.title),disabled:h,onToggle:Xe=>_e(de,Xe?"default":"off",o(Te.title))})]}),_t&&be(de).map(Xe=>{let Bt=Xe.path.slice(de.length+1),hn=tn(ve,Xe.path)!=="off";return n("div",{class:"pz-cs-child",title:Xe.path,children:[n("span",{children:[n("b",{children:[Bt,O==="notes"&&n("span",{class:"pz-cs-faint",children:o("penzor.cat.files",{n:(Xe.files??0).toLocaleString(),size:e.b(Xe.size)})})]}),hn?n(ft,{path:Xe.path,name:Bt}):n("span",{class:"pz-cs-faint",children:o("penzor.cat.notSynced")})]}),n(Qa,{on:hn,label:Bt,disabled:h,onToggle:io=>_e(Xe.path,io?tn(ve,de):"off",Bt)})]},Xe.path)})]},de)},Ke=()=>{let O=Ff.agents,de=r.sources.filter(Me=>Me.agent),Te=new Set(de.map(Me=>Me.path.slice(7))),tt=[...de.map(Me=>({slug:Me.path.slice(7),name:Me.name,nameEn:Me.nameEn,here:!0})),...(r.cloudAgents??[]).filter(Me=>!Te.has(Me)).map(Me=>({slug:Me,name:void 0,nameEn:void 0,here:!1}))].sort((Me,xt)=>Number(Po.has(Me.slug))-Number(Po.has(xt.slug))),qt=Me=>Po.has(Me.slug)?o("penzor.agents.muse"):(e.locale()==="en"?Me.nameEn??Me.name:Me.name??Me.nameEn)??Me.slug,_t=tt.filter(Me=>!Po.has(Me.slug)&&tn(ve,`agents/${Me.slug}`)!=="off").length,gt=pl(ve,"agents"),xn=tt.length?o(tn(ve,"agents")==="off"?"penzor.agents.pickHint":"penzor.agents.legacyHint",{n:_t}):o("penzor.agents.none");return n(I,{children:[n("div",{class:"pz-sync-row pz-cs-group",children:n("div",{class:"pz-sync-main",children:[n("span",{class:"pz-tile",children:n(ie,{n:O.icon})}),n("span",{class:"pz-sync-txt",children:[n("b",{children:o(O.title)}),n("small",{children:[xn,gt>0&&n(I,{children:[n("span",{class:"pz-sep",children:"\xB7"}),n("button",{class:"pz-link",onClick:()=>x(!0),children:o("penzor.cat.custom",{n:gt})})]})]})]})]})}),tt.map(Me=>{let xt=`agents/${Me.slug}`,Wt=qt(Me),Xe=Po.has(Me.slug),Bt=!Xe&&tn(ve,xt)!=="off";return n("div",{class:`pz-cs-child${Xe?" is-locked":""}`,title:xt,"data-agent":Me.slug,children:[n("span",{children:[n("b",{children:[Wt,Wt.toLowerCase()!==Me.slug&&n("span",{class:"pz-cs-slug",children:Me.slug})]}),Xe?n("span",{class:"pz-cs-faint",children:o("penzor.agents.museDesc")}):Bt?n(ft,{path:xt,name:Wt}):n("span",{class:"pz-cs-faint",children:o(Me.here?"penzor.cat.notSynced":"penzor.agents.cloudOnly")})]}),Xe?n("span",{class:"pz-cs-lock",role:"note",children:[n(ie,{n:"lock"}),o("penzor.agents.locked")]}):n(Qa,{on:Bt,label:Wt,disabled:h,onToggle:hn=>_e(xt,hn?"default":"off",Wt)})]},xt)}),n("div",{class:"pz-cs-subnote",children:o("penzor.agents.historianNote")})]},"agents")},et=Qe&&n("div",{class:"pz-cs-bar",role:"region","aria-label":o("penzor.rules.previewTitle"),children:[n(ie,{n:"alert"}),n("span",{class:"txt",children:[Ie?d?o("penzor.cs.barFirst",{up:d.upload,down:d.download}):o("penzor.cs.firstTitle"):(()=>{let O=fl(r.config,ve);return O===1&&P&&tn(ve,P.path)===P.target&&tn(r.config,P.path)!==P.target?o("penzor.cs.barOne",{name:P.name,scope:P.target==="off"?o("penzor.cs.offName"):rt(P.target)}):o("penzor.cs.barChanged",{n:O})})(),n("small",{children:f?o("penzor.cs.barRecount"):d?[Ie?o("penzor.cs.barSize",{size:e.b(d.bytes)}):o("penzor.cs.barCounts",{up:d.upload,down:d.download}),d.conflicts>0?o("penzor.cs.barConflicts",{n:d.conflicts}):"",Ie?o("penzor.cs.noDelete"):""].filter(Boolean).join(" \xB7 "):o("penzor.cs.barCounting")})]}),n("button",{class:"pz-btn",disabled:h,onClick:()=>{Ie&&F(!0),c(null),g(!1)},children:o(Ie?"penzor.cs.later":"penzor.cs.undo")}),n("button",{class:"pz-btn pri",disabled:h||!d||r.running,onClick:Xt,children:o(Ie?"penzor.cs.start":"penzor.cs.confirm")})]}),ue=r.agentArchive?.state==="done"&&!r.agentArchive.seen&&r.agentArchive.folderId?r.agentArchive:null,Ge=O=>O==="content_account_changed_preview_required"?o("penzor.cs.accountReview"):O==="agent_archive_running"?o("penzor.agents.archiveRunning"):O.startsWith("agent_open_failed: ")?o("penzor.agents.openFailed",{reason:O.slice(19)}):Kt(O),Ye=O=>{let de=r.sources.find(Te=>Te.agent&&Te.path===`agents/${O}`);return(e.locale()==="en"?de?.nameEn??de?.name:de?.name??de?.nameEn)??O},an=Y&&d&&lt.length>0&&n("div",{class:"pz-sync-ask pz-ask-card",role:"dialog","aria-modal":"false","aria-label":o("penzor.ask.confirm"),children:[lt.map(O=>n("div",{class:"pz-ask-agent",role:"radiogroup","aria-label":Ye(O.slug),children:[n("b",{children:o("penzor.ask.title",{name:Ye(O.slug)})}),n("small",{children:o("penzor.ask.when",{cloud:en(O.cloudMtime,e.locale()),local:en(O.localMtime,e.locale())})}),Bx.map(de=>n("label",{class:"pz-ask-opt",children:[n("input",{type:"radio",name:`ask-${O.slug}`,checked:Y[O.slug]===de,onChange:()=>q({...Y,[O.slug]:de})}),n("span",{children:[n("b",{children:o(`penzor.ask.${de}`)}),de==="merge"&&n("em",{children:o("penzor.ask.recommended")}),n("small",{children:o(`penzor.ask.${de}Desc`)})]})]},de))]},O.slug)),n("div",{class:"pz-ask-foot",children:[n("small",{children:o("penzor.ask.foot")}),n("button",{class:"pz-btn",disabled:h,onClick:()=>q(null),children:o("penzor.ask.cancel")}),n("button",{class:"pz-btn pri",disabled:h||r.running,onClick:()=>$t(Y),children:o("penzor.ask.confirm")})]})]}),yt=O=>O.direction==="upload"?"tx-up":O.direction==="download"?"tx-down":"tx-sync";return n("div",{class:"pz-scroll",children:[n("style",{children:Bf}),n("div",{class:"pz-col pz-cs",ref:qe,children:[n(Dr,{p:e}),n("div",{class:"pz-cs-head",children:[n("h1",{class:"pz-h1",children:o("penzor.sync.title")}),ot,n("span",{class:"grow"}),n("button",{class:"pz-btn",disabled:h||r.running||!r.config.enabled,onClick:()=>void ct(()=>In(Jt.run)),children:[n(ie,{n:"refresh"}),o("penzor.rules.run")]}),n("button",{class:"pz-btn","aria-label":o("penzor.cs.more"),"aria-haspopup":"menu",onClick:O=>{O.stopPropagation(),oe(!N)},children:n(ie,{n:"more"})})]}),N&&n("div",{class:"pz-cs-menu",style:"right:0;top:64px",role:"menu",children:n("button",{class:"it",role:"menuitem",onClick:()=>{oe(!1),x(!0)},children:[n(ie,{n:"gear"}),n("span",{children:n("b",{children:o("penzor.cs.advanced")})}),n("span",{})]})}),n("div",{class:"pz-cs-meta",children:[n("span",{class:"pz-cs-dev",children:[n(ie,{n:"laptop"}),_!=null?n(I,{children:[o("penzor.cs.thisComputerLabel"),n("input",{value:_,maxLength:64,"aria-label":o("penzor.cs.rename"),ref:O=>O?.focus(),onInput:O=>C(O.currentTarget.value),"aria-invalid":!!je,onKeyDown:O=>{O.key==="Enter"&&Dt(),O.key==="Escape"&&C(null)},onBlur:()=>Dt(!0)}),je?n("span",{class:"pz-cs-warn",role:"alert",children:o(`penzor.cs.name.${je}`)}):n("span",{class:"pz-cs-faint",children:o("penzor.cs.renameHint")})]}):n(I,{children:[o("penzor.cs.thisComputer",{name:r.deviceName}),n("button",{class:"pz-link","aria-label":o("penzor.cs.rename"),title:o("penzor.cs.rename"),onClick:()=>C(r.deviceName),children:n(ie,{n:"pen"})})]})]}),n("span",{children:he.length?o("penzor.cs.othersN",{n:he.length,names:he.map(O=>O.name).join(e.locale()==="zh"?"\u3001":", ")}):o("penzor.cs.noOthers")}),n("button",{class:"pz-link",onClick:()=>D(!V),children:[n(ie,{n:"history"})," ",o("penzor.cs.log")]})]}),(v||r.error)&&n("p",{role:"alert",class:"pz-rule-error",style:"margin-top:14px",children:Ge(v??r.error??"")}),ue&&n("div",{class:"pz-sync-ask",role:"region","aria-label":o("penzor.archive.title"),children:[n("h4",{children:o("penzor.archive.title")}),n("p",{children:o("penzor.archive.body",{shelf:ue.shelfName??o("penzor.archive.shelf"),name:ue.name??""})}),n("div",{class:"pz-acts",children:[n("button",{class:"pz-btn",disabled:h,onClick:()=>void ct(()=>In(Jt.archiveSeen)),children:o("penzor.archive.ok")}),ue.shelfId&&n("button",{class:"pz-btn pri",onClick:()=>e.openFolder([{id:ue.shelfId,name:ue.shelfName??o("penzor.archive.shelf")},{id:ue.folderId,name:ue.name??"",archive:!0}]),children:o("penzor.archive.open")})]})]}),Ie&&n("div",{class:"pz-sync-ask",children:[n("h4",{children:o("penzor.cs.firstTitle")}),n("p",{children:o("penzor.cs.firstBody")})]}),mt&&n("div",{class:"pz-cs-act",children:[n("div",{class:"row1",children:[n(ie,{n:yt(mt)}),n("span",{class:"grow",children:[o(mt.direction==="download"?"penzor.cs.down":"penzor.cs.up",{name:mt.path.slice(mt.path.lastIndexOf("/")+1)}),mt.size!=null&&n("small",{children:[" ",e.b(mt.done)," / ",e.b(mt.size)]})]}),n("button",{class:"pz-btn",disabled:h,onClick:()=>void ct(()=>In(Jt.pause,!r.paused)),children:[n(ie,{n:r.paused?"play":"pause"}),o(r.paused?"penzor.rules.resume":"penzor.rules.pause")]})]}),le.kind==="run"&&n("div",{class:"pz-bar",children:n("span",{style:`width:${le.pct}%`})}),Ae.length>1&&n("div",{class:"more",children:o("penzor.cs.waiting",{n:Ae.length-1})})]}),vt.length>0&&!mt&&n("div",{class:"pz-cs-act is-warn",children:n("div",{class:"row1",children:[n(ie,{n:"alert"}),n("span",{class:"grow",children:[o("penzor.cs.failedN",{n:vt.length}),n("small",{children:[" ",vt[0].error??""]})]}),n("button",{class:"pz-btn",disabled:h||r.running,onClick:()=>void ct(()=>In(Jt.retry)),children:o("penzor.cs.retry")}),n("button",{class:"pz-btn",onClick:()=>D(!0),children:o("penzor.cs.seeLog")})]})}),n("div",{class:"pz-sync-card",children:[Zo.map(O=>O.id==="agents"?Ke():nn(O.id,O.path)),xe&&n("div",{class:"pz-sync-row",children:[n("div",{class:"pz-sync-main",children:[n("span",{class:"pz-tile",children:n(ie,{n:"folder"})}),n("span",{class:"pz-sync-txt",children:[n("b",{children:o("penzor.cat.others")}),n("small",{children:tn(ve,"")!=="off"?n(I,{children:[n(ft,{path:"",name:o("penzor.cat.others")}),n("span",{class:"pz-sep",children:"\xB7"}),n("span",{children:o("penzor.cat.files",{n:r.others.files.toLocaleString(),size:e.b(r.others.size)})})]}):o("penzor.cat.othersDesc")})]})]}),n(Qa,{on:tn(ve,"")!=="off",label:o("penzor.cat.others"),disabled:h,onToggle:O=>_e("",O?"default":"off",o("penzor.cat.others"))})]})]}),n("p",{class:"pz-cs-note",children:o("penzor.cs.note")}),V&&n(I,{children:[n("h3",{class:"pz-cs-sec",children:[o("penzor.cs.log"),n("span",{class:"grow"}),vt.length>0&&n("button",{class:"pz-btn",disabled:h||r.running,onClick:()=>void ct(()=>In(Jt.retry)),children:o("penzor.cs.retry")})]}),n("div",{class:"pz-cs-log",children:r.jobs.length?r.jobs.slice(-30).reverse().map(O=>n("div",{class:"f",children:[n(ie,{n:yt(O)}),n("span",{children:[O.path,O.error&&n("small",{children:[" \xB7 ",O.error]})]}),n("small",{children:[o(`penzor.rules.state.${O.state}`)," \xB7 ",Rn(O.finishedAt??O.at,e.locale())]})]},O.id)):n("p",{class:"pz-cs-note",children:o("penzor.cs.logEmpty")})}),n("p",{class:"pz-cs-note",children:o("penzor.cs.logNote")})]}),an,!Y&&et,L&&n("div",{class:"pz-cs-menu",role:"menu",style:`left:${L.x}px;top:${L.y}px`,children:[n("div",{class:"cap",children:o("penzor.scope.menuTitle",{name:L.name})}),["default",J,...he.map(O=>`device-${O.id}`)].map((O,de)=>n(I,{children:[de===2&&n("hr",{}),n("button",{class:"it",role:"menuitemradio","aria-checked":tn(ve,L.path)===O,onClick:()=>_e(L.path,O,L.name),children:[n(ie,{n:O==="default"?"cloud":O===J?"laptop":"monitor"}),n("span",{children:[n("b",{children:rt(O)}),de<2&&n("small",{children:o(de===0?"penzor.scope.allDesc":"penzor.scope.selfDesc")})]}),tn(ve,L.path)===O?n("span",{class:"tick",children:n(ie,{n:"check"})}):n("span",{})]})]},O)),L.path==="human"&&n("div",{class:"cap",children:o("penzor.scope.calendarNote")}),n("div",{class:"cap",children:o("penzor.scope.menuFoot")})]})]})]})}function Ux({p:e,snap:t,refresh:o,back:r}){let a=e.t,[i,s]=S(null),[l,c]=S(null),[d,p]=S(!1),[u,m]=S(null),f=i??t.config,g=!!i,h=k=>k==="default"?a("penzor.rules.default"):k==="off"?a("penzor.rules.off"):t.devices.find(x=>"device-"+x.id===k)?.name??`${a("penzor.rules.device")} ${k.slice(7)}`,b=k=>{let x=structuredClone(f);k(x),s(x),c(null),m(null)},v=async k=>{p(!0),m(null);try{await k(),await o()}catch(x){m(Qo(x))}finally{p(!1)}},w=[...new Set(["default",`device-${t.deviceId}`,...t.devices.map(k=>`device-${k.id}`),...f.rules.map(k=>k.target),"off"])];return n("div",{class:"pz-scroll",children:[n("style",{children:Bf}),n("div",{class:"pz-col pz-rules",children:[n("button",{class:"pz-link",onClick:r,children:["\u2190 ",a("penzor.cs.backSimple")]}),n("div",{class:"pz-rule-head",children:n("h1",{class:"pz-h1",children:a("penzor.cs.advanced")})}),n("p",{class:"pz-rule-meta",children:t.deviceName}),u&&n("p",{role:"alert",class:"pz-rule-error",children:u}),n("div",{class:"pz-rule-tools",children:[n("label",{class:"pz-rule-enable",children:[n("input",{type:"checkbox",checked:f.enabled,onChange:k=>b(x=>{x.enabled=k.currentTarget.checked})}),a("penzor.rules.enable")]}),n("button",{class:"pz-btn",onClick:()=>b(k=>k.rules.push({id:`rule-${crypto.randomUUID()}`,source:"",target:"default"})),children:a("penzor.rules.add")})]}),n("div",{class:"pz-rule-table",children:[n("div",{class:"pz-rule-row pz-rule-label",children:[n("span",{children:a("penzor.rules.source")}),n("span",{children:a("penzor.rules.destination")}),n("span",{})]}),f.rules.map((k,x)=>n("div",{class:"pz-rule-row",children:[n("input",{"aria-label":`${a("penzor.rules.source")} ${x+1}`,list:"pz-content-sources",placeholder:"Forsion",value:k.source,onInput:T=>b(F=>{F.rules[x].source=T.currentTarget.value,delete F.rules[x].sourceId})}),n("select",{"aria-label":`${a("penzor.rules.destination")} ${x+1}`,value:k.target,onChange:T=>b(F=>{F.rules[x].target=T.currentTarget.value}),children:w.map(T=>n("option",{value:T,children:h(T)},T))}),n("button",{class:"pz-btn","aria-label":`${a("penzor.rules.remove")} ${x+1}`,onClick:()=>b(T=>{T.rules.splice(x,1)}),children:"\xD7"})]},k.id))]}),n("datalist",{id:"pz-content-sources",children:t.sources.filter(k=>k.kind==="folder").map(k=>n("option",{value:k.path},k.path))}),n("p",{class:"pz-rule-note",children:[a("penzor.rules.inherit"),n("br",{}),a("penzor.rules.namespace"),n("br",{}),a("penzor.rules.human")]}),n("div",{class:"pz-rule-actions",children:[g&&n("button",{class:"pz-btn",onClick:()=>{s(null),c(null)},children:a("penzor.cancel")}),n("button",{class:"pz-btn pri",disabled:d||t.running,onClick:()=>void v(async()=>c(await In(Jt.preview,f))),children:a("penzor.rules.preview")})]}),l&&n("div",{class:"pz-rule-preview",role:"region","aria-label":a("penzor.rules.previewTitle"),children:[n("h2",{children:a("penzor.rules.previewTitle")}),n("p",{children:a("penzor.rules.previewCounts",{up:l.upload,down:l.download,conflicts:l.conflicts})}),n("p",{class:"pz-rule-note",children:a("penzor.rules.retain")}),n("div",{class:"pz-rule-actions",children:[n("button",{class:"pz-btn",onClick:()=>c(null),children:a("penzor.rules.back")}),n("button",{class:"pz-btn pri",disabled:d,onClick:()=>void v(async()=>{await In(Jt.apply,l.token),s(null),c(null)}),children:a("penzor.rules.apply")})]})]})]})]})}function bl(e){let[,t]=S(0);$(()=>{let o=e.subscribe(()=>t(r=>r+1));return t(r=>r+1),o},[e])}function Nr(e){return n("div",{ref:e.rootRef,class:`${e.side?"pz-side":"pz"}${e.extra?` ${e.extra}`:""}`,lang:e.p.locale()==="zh"?"zh-CN":"en",...e.on,children:[n("style",{children:zf}),e.children]})}var er=({pct:e,warn:t})=>n("div",{class:`pz-bar${t?" is-low":""}`,children:n("span",{style:{width:`${Math.max(0,Math.min(100,e)).toFixed(1)}%`}})});function Vf({p:e}){bl(e);let t=K(null),o=K(null);$(()=>{e.enter(),e.refresh(),_o(e.loc())&&e.ctx.closeView?.("penzor-info",{collapse:!0});let m=t.current;if(!m||typeof IntersectionObserver>"u")return;let f=!0;e.setVisible(!0);let g=new IntersectionObserver(h=>{let b=h.some(v=>v.isIntersecting);b&&!f&&(e.enter(),e.refresh()),f=b,e.setVisible(b)});return g.observe(m),()=>{g.disconnect(),e.setVisible(!1)}},[e]);let[r,a]=S(null),i=m=>Array.from(m.dataTransfer?.types??[]).includes("Files"),s=m=>{let f=m.target?.closest?.("tr[data-dir-id]");return f?{id:f.dataset.dirId,name:f.dataset.dirName??""}:null},l=()=>e.appStack()[e.appStack().length-1]?.name??e.t("penzor.drive"),c=e.canWrite()&&e.auth()==="in"?{onDragOver:m=>{if(!i(m))return;m.preventDefault(),m.stopPropagation(),m.dataTransfer&&(m.dataTransfer.dropEffect="copy");let f=s(m),g=f?.name||l();(r?.place!==g||r?.target?.id!==f?.id)&&a({place:g,target:f})},onDragLeave:m=>{t.current?.contains(m.relatedTarget)||a(null)},onDrop:m=>{if(!i(m))return;m.preventDefault(),m.stopPropagation();let f=s(m);a(null);let g=Q().getPathForFile;if(!g){m.dataTransfer&&e.upload(Rf(m.dataTransfer),f);return}let h=Array.from(m.dataTransfer?.files??[]).map(b=>{try{return g(b)}catch{return""}}).filter(Boolean);e.upload(h,f)}}:{};$(()=>{e.canWrite()||a(null)},[e.canWrite()]);let d=e.t,p=e.auth(),u;return p==="out"?u=n(jf,{p:e}):e.loc().kind==="sync-home"?u=n(Uf,{p:e,legacy:n(Hx,{p:e})}):e.snap()?e.error()?u=n("div",{class:"pz-scroll",children:n("p",{class:"pz-note",children:e.error()})}):e.loc().kind==="overview"?u=n(Vx,{p:e,upload:()=>{e.go("app:penzor"),o.current?.click()}}):u=n(Gx,{p:e,dropDir:r?.target?.id??null}):u=n("div",{class:"pz-scroll",children:n("p",{class:"pz-note",children:e.error()??d("penzor.loading")})}),n(Nr,{p:e,rootRef:t,extra:r?"pz-drop":"",on:c,children:[n("input",{class:"pz-root-upload",ref:o,type:"file",multiple:!0,hidden:!0,onChange:m=>{let f=m.currentTarget,g=Q().getPathForFile,h=g?Array.from(f.files??[]).map(b=>g(b)).filter(Boolean):ll(Array.from(f.files??[]),!1);e.go("app:penzor"),e.upload(h),f.value=""}}),u,r&&n("div",{class:"pz-dropbar",children:n("span",{children:[n(ie,{n:"upload"}),d("penzor.drop.to",{place:r.place})]})}),e.menu()&&n(Qx,{p:e}),!hl&&n(tm,{p:e})]})}var $x={dropbox:"Dropbox",s3:"S3",webdav:"WebDAV"};function ml({on:e,disabled:t,label:o,title:r,onToggle:a}){return n("button",{type:"button",role:"switch",class:`settings-switch${e?" active":""}`,"aria-checked":e,"aria-label":o,title:r,disabled:t,onClick:i=>{i.stopPropagation(),a(!e)},children:n("span",{})})}var gl=({tone:e,text:t,title:o})=>n("span",{class:`pz-sync-state is-${e}`,title:o,children:[e!=="off"&&n("i",{}),t]});function Hx({p:e}){let t=e.t,o=e.syncState(),[r,a]=S(!1);if(!o)return n("div",{class:"pz-scroll",children:n("p",{class:"pz-note",children:t("penzor.loading")})});if(!o.signedIn)return n(jf,{p:e});let i=e.snap(),s=o.notes,l=t("penzor.ledger.sync"),c=s.maxBytes??i?.sync?.maxBytes??0,d=i?.sync?.maxFileBytes||50*1024*1024,p=s.vault?i?.sync?.vaults.find(A=>A.vault===s.vault)??null:null,u=mf(o,c),m=s.on?s.last?.skippedLarge??0:0,f=s.rootName?t("penzor.sync.notesNamed",{name:s.rootName}):t("penzor.sync.notesPlain"),g=()=>e.openSync(),h=()=>{if(s.pending)return{tone:"wait",text:t("penzor.sync.waiting")};if(!s.on)return{tone:"off",text:t("penzor.sync.off")};let A=To(o);if(A!=null)return{tone:"ok",text:A>0?t("penzor.sync.running",{pct:Math.round(A*100)}):t("penzor.sync.runningPlain")};if(u)return{tone:"warn",text:t("penzor.sync.overQuota")};if(Ir(o))return{tone:"warn",text:t("penzor.sync.failed")};if(s.backend==="folder")return{tone:"ok",text:t("penzor.sync.toFolder")};let L=$x[s.backend];return L?{tone:"ok",text:t("penzor.sync.to",{name:L})}:s.last?{tone:"ok",text:s.localBytes!=null?t("penzor.sync.doneSize",{size:e.b(s.localBytes)}):t("penzor.sync.done")}:{tone:"ok",text:t("penzor.sync.firstPending")}},b={tone:"off",text:t("penzor.sync.off")},v=(A,L)=>L?`${A} \xB7 ${t("penzor.sync.metaLast",{time:Rn(L,e.locale())})}`:A,w=()=>{let A=o.agents;if(!A.on)return b;if(A.running)return{tone:"ok",text:t("penzor.sync.runningPlain")};let L=t("penzor.sync.agentsN",{n:A.count});return A.last&&!A.last.ok?{tone:"warn",text:t("penzor.sync.failed"),title:A.last.error}:A.last&&A.last.conflicts>0?{tone:"warn",text:t("penzor.sync.conflictsN",{n:A.last.conflicts}),title:t("penzor.sync.conflictsHint")}:{tone:"ok",text:v(L,A.last?.at)}},k=()=>{let A=o.plugins;return A.on?(A.pending??0)>0?{tone:"wait",text:t("penzor.sync.pluginsPending",{n:A.pending})}:{tone:"ok",text:v(t("penzor.sync.pluginsN",{n:A.count}),A.lastAt)}:b},x=A=>L=>{e.setSync(A,L)},T=s.available===!1&&!s.on&&(s.backend==="off"||s.backend==="penzor"),F=[e.thisDevice()?t("penzor.sync.metaDevice",{name:e.thisDevice()}):null,s.on?s.last?t("penzor.sync.metaLast",{time:Rn(s.last.at,e.locale())}):t("penzor.sync.metaNever"):null,s.on&&s.backend!=="off"?el(s,e.locale()):null].filter(A=>!!A),V=h(),D=p?[...new Set([...p.devices,...p.device?[p.device]:[]])]:[],j=i?.ama?i.ama.reduce((A,L)=>A+L.sizeBytes,0):null;return n("div",{class:"pz-scroll",children:n("div",{class:"pz-col",children:[n(Dr,{p:e}),n("div",{class:"pz-title pz-sync-head",children:[n("h1",{class:"pz-h1",children:t("penzor.sync.title")}),n("span",{class:"pz-badge",children:[n(ie,{n:"check"}),bf(o,e.locale())]})]}),F.length>0&&n("div",{class:"pz-meta",children:F.map(A=>n("span",{children:A},A))}),s.pending&&n(qx,{p:e,s:o}),u&&n("div",{class:"pz-sync-ask is-warn",role:"region",children:[n("h4",{children:s.localBytes!=null&&c>0?t("penzor.sync.quotaTitle",{size:e.b(s.localBytes),ledger:l,max:e.b(c)}):t("penzor.sync.quotaTitlePlain",{ledger:l})}),n("p",{children:[t("penzor.sync.quotaBody"),m>0&&` ${t("penzor.sync.quotaLarge",{size:e.b(d),n:m})}`]}),n("div",{class:"pz-acts",children:[n("button",{class:"pz-btn pri",onClick:()=>void Cn("membership").then(A=>{A||e.ctx.app?.notify?.(t("err.openFailed"))}),children:t("member.upgrade")}),p&&n("button",{class:"pz-btn",onClick:()=>e.go(`sync:${p.vault}`),children:t("penzor.sync.quotaSee")})]})]}),n("div",{class:"pz-sync-card",children:[n("div",{class:`pz-sync-row is-click${r?" is-open":""}`,children:[n("button",{type:"button",class:"pz-sync-main","aria-expanded":r,onClick:()=>a(!r),children:[n("span",{class:"pz-tile",children:n(ie,{n:"notebook"})}),n("span",{class:"pz-sync-txt",children:[n("b",{children:f}),n("small",{children:t("penzor.sync.notesDesc")})]}),n(gl,{...V})]}),n(ml,{on:s.on&&!s.pending,label:f,disabled:!!s.pending||T||e.syncBusy("notes"),title:s.pending?t("penzor.sync.decideAbove"):void 0,onToggle:x("notes")})]}),r&&n("div",{class:"pz-sync-sub",children:[n("div",{class:"kv",children:[n("span",{children:t("penzor.sync.kvSchedule")}),n("span",{children:el(s,e.locale())}),n("button",{class:"pz-link",onClick:g,children:t("penzor.sync.change")})]}),n("div",{class:"kv",children:[n("span",{children:t("penzor.sync.kvDirection")}),n("span",{children:t(`penzor.sync.dir.${s.direction}`)}),n("button",{class:"pz-link",onClick:g,children:t("penzor.sync.change")})]}),m>0&&n("div",{class:"kv",children:[n("span",{children:t("penzor.sync.kvSkipped")}),n("span",{children:t("penzor.sync.skippedN",{n:m,size:e.b(d)})}),n("span",{})]}),s.backend==="penzor"&&s.vault&&n("div",{class:"kv",children:[n("span",{children:t("penzor.sync.kvWhere")}),n("span",{children:i?.sync&&c>0?t("penzor.sync.whereUsed",{ledger:l,vault:s.vault,used:e.b(i.sync.usedBytes),max:e.b(c)}):t("penzor.sync.where",{ledger:l,vault:s.vault})}),p?n("button",{class:"pz-link",onClick:()=>e.go(`sync:${p.vault}`),children:t("penzor.sync.open")}):n("span",{})]})]}),n("div",{class:"pz-sync-row",children:[n("div",{class:"pz-sync-main",children:[n("span",{class:"pz-tile",children:n(ie,{n:"bot"})}),n("span",{class:"pz-sync-txt",children:[n("b",{children:t("penzor.sync.agents")}),n("small",{children:t("penzor.sync.agentsDesc")})]}),n(gl,{...w()})]}),n(ml,{on:o.agents.on,label:t("penzor.sync.agents"),disabled:e.syncBusy("agents"),onToggle:x("agents")})]}),n("div",{class:"pz-sync-row",children:[n("div",{class:"pz-sync-main",children:[n("span",{class:"pz-tile",children:n(ie,{n:"puzzle"})}),n("span",{class:"pz-sync-txt",children:[n("b",{children:t("penzor.sync.plugins")}),n("small",{children:t("penzor.sync.pluginsDesc")})]}),n(gl,{...k()})]}),n(ml,{on:o.plugins.on,label:t("penzor.sync.plugins"),disabled:e.syncBusy("plugins"),onToggle:x("plugins")})]})]}),n("div",{class:"pz-h3",children:t("penzor.sync.devicesTitle")}),i?D.length===0?n("p",{class:"pz-sync-none",children:t("penzor.sync.noDevices")}):n("div",{class:"pz-rows pz-sync-dev",children:D.map(A=>n("div",{class:"row",children:[n(ie,{n:"laptop"}),n("span",{class:"t",children:[A,A===e.thisDevice()&&n("em",{children:t("penzor.sync.thisOne")})]}),n("span",{class:"s",children:p?.device===A&&p.updatedAt?t("penzor.sync.lastWrite",{time:Rn(Date.parse(p.updatedAt),e.locale())}):""})]},A))}):n("p",{class:"pz-sync-none",children:t("penzor.loading")}),n("div",{class:"pz-h3",children:t("penzor.sync.phoneTitle")}),n("div",{class:"pz-tip",children:[n(ie,{n:"info"}),n("span",{children:j!=null?t("penzor.sync.phoneTip",{size:e.b(j)}):t("penzor.sync.phoneTipPlain")})]}),n("p",{class:"pz-note",children:[t("penzor.sync.foot"),n("button",{class:"pz-link",onClick:g,children:t("penzor.sync.footLink")})]})]})})}function qx({p:e,s:t}){let o=e.t,r=t.notes.pending,a=e.syncBusy("resolve"),i=new Date,s=o("penzor.sync.backupName",{name:t.notes.rootName??o("penzor.sync.notesPlain"),date:`${i.getFullYear()}-${String(i.getMonth()+1).padStart(2,"0")}-${String(i.getDate()).padStart(2,"0")}`}),l=r.cloudDevice?o("penzor.sync.askCloud",{device:r.cloudDevice,files:r.cloudFiles.toLocaleString(),size:e.b(r.cloudBytes)}):o("penzor.sync.askCloudNoDevice",{files:r.cloudFiles.toLocaleString(),size:e.b(r.cloudBytes)});return n("div",{class:"pz-sync-ask",role:"region","aria-label":o("penzor.sync.askTitle"),children:[n("h4",{children:o("penzor.sync.askTitle")}),n("p",{children:[l," ",o("penzor.sync.askLocal",{local:r.localOnly.toLocaleString(),conflicts:r.conflicts.toLocaleString()})]}),e.confirmCloud()?n("div",{class:"pz-confirm",children:[n("span",{children:o("penzor.sync.askConfirm",{backup:s})}),n("button",{class:"pz-btn pri",disabled:a,onClick:()=>void e.resolveNotes("cloud"),children:o("penzor.sync.askConfirmGo")}),n("button",{class:"pz-btn",disabled:a,onClick:()=>e.setConfirmCloud(!1),children:o("penzor.cancel")})]}):n("div",{class:"pz-acts",children:[n("button",{class:"pz-btn pri",disabled:a,onClick:()=>void e.resolveNotes("merge"),children:o("penzor.sync.askMerge")}),n("button",{class:"pz-btn",disabled:a,onClick:()=>e.setConfirmCloud(!0),children:o("penzor.sync.askCloudBtn")}),n("button",{class:"pz-btn",disabled:a,onClick:()=>void e.resolveNotes("skip"),children:o("penzor.sync.askSkip")})]}),n("p",{class:"pz-sync-explain",children:o("penzor.sync.askExplain",{backup:s})})]})}function jf({p:e}){let t=e.t;return n("div",{class:"pz-scroll",children:n("div",{class:"pz-empty",children:[n("span",{class:"ic",children:n(ie,{n:"cloud"})}),n("h2",{children:t("penzor.out.title")}),n("p",{children:t("penzor.out.lead")}),n("button",{class:"pz-btn pri",onClick:()=>e.signIn(),children:[n(ie,{n:"login"}),t("penzor.out.signIn")]})]})})}function Wx({p:e}){let t=e.t,o=e.snap()?.ledger,r=e.snap()?.ledgerStale,a=!!o?.complete&&o.usage.usedBytes!=null;return n("div",{class:"pz-unified-quota",role:"status",children:[n("div",{class:"pz-total",children:[n("b",{children:a?e.b(o.usage.usedBytes):"\u2014"}),n("span",{children:o?t("penzor.ofMax",{max:e.b(o.quota.limitBytes)}):t("penzor.unified.unavailable")})]}),a&&(o.state==="warn"||o.state==="over"?n(er,{pct:o.quota.limitBytes>0?o.usage.usedBytes/o.quota.limitBytes*100:100,warn:!0}):n(jx,{p:e})),n("p",{class:"pz-note",children:r?t("penzor.unified.stale"):a?o.enforcement?t("penzor.unified.enforced"):o.phase==="grace"?t("penzor.unified.grace",{date:en(Math.max(Date.parse(o.rollout?.graceUntil??""),Date.parse(o.rollout?.compatibilityUntil??"")||0),e.locale())}):o.state==="over"?t("penzor.unified.over"):o.state==="warn"?t("penzor.unified.warn"):`${t("penzor.unified.notice")} \xB7 ${t("penzor.unified.accounting",{trash:e.b(o.usage.trashBytes)})}`:t("penzor.unified.incomplete")}),o?.rollout&&!r&&n("div",{class:"pz-tip",children:[n("p",{children:t("penzor.unified.rolloutPolicy")}),!o.rollout.acknowledgedAt&&n("button",{class:"pz-btn",onClick:()=>void e.acknowledgeStorageNotice(),children:t("penzor.unified.ack")})]})]})}var ei=(e,t)=>t>0&&e/t>=.8;function Vx({p:e,upload:t}){let o=e.t,r=e.snap(),a=r?.ledger,i=e.content(),s=Ks(r,i),l=v=>{let w=a?.sources.find(k=>k.id===v);return w?.status==="ready"?w.liveBytes+w.trashBytes:null},c=v=>{let w=l(v);return w==null?o("penzor.unified.unavailable"):e.b(w)},d=v=>()=>e.go(v),p=(v,w,k,x,T,F="folder")=>n("button",{class:`row${T?" is-warn":""}`,onClick:d(v),children:[n(ie,{n:F}),n("span",{class:"t",children:[w,n("em",{children:T??k})]}),n("span",{class:"s",children:x}),n(ie,{n:"right"})]},v),u=r?.apps&&ei(r.apps.used,r.apps.quota)?o("penzor.quota.sourceLimit",{max:e.b(r.apps.quota),used:e.b(r.apps.used)}):void 0,m=r?.sync&&ei(r.sync.usedBytes,r.sync.maxBytes)?o("penzor.quota.sourceLimit",{max:e.b(r.sync.maxBytes),used:e.b(r.sync.usedBytes)}):void 0,f=i?Pn(i):null,g=i?.deviceId,h=(r?.contentDevices??[]).filter(v=>v.id!==g),b=p("source:sync",o(s?"penzor.tree.legacy":"penzor.ledger.sync"),o(s?"penzor.ov.legacy":"penzor.ov.sync"),c("sync"),m);return n("div",{class:"pz-scroll",children:n("div",{class:"pz-col",children:[n(Dr,{p:e}),n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:o("penzor.drive")}),n("button",{class:"pz-btn",onClick:t,children:[n(ie,{n:"upload"}),o("penzor.unified.uploadTo")]})]}),n(Wx,{p:e}),n("div",{class:"pz-ov-group",children:o("penzor.ov.mine")}),n("div",{class:"pz-rows",children:[p("app:penzor",o("penzor.uploads"),o("penzor.ov.uploads"),c("uploads")),Js(a)&&p("source:market",o("penzor.source.market"),o("penzor.ov.market"),c("market"),void 0,"store")]}),n("div",{class:"pz-ov-group",children:o("penzor.ov.synced")}),n("div",{class:"pz-rows",children:s&&r?.contentDevices?n(I,{children:[p("content:default",o("penzor.scope.all"),f?.kind==="ok"&&f.at?o("penzor.ov.allLast",{time:Rn(f.at,e.locale())}):o("penzor.ov.all"),""),g&&p(`content:device-${g}`,o("penzor.tree.thisBackup"),o("penzor.ov.self"),""),h.map(v=>p(`content:device-${v.id}`,v.name,o("penzor.ov.device"),""))]}):n(I,{children:[b,p("source:agents",o("penzor.source.agents"),o("penzor.ov.agents"),c("agents")),p("source:profile",o("penzor.source.profile"),o("penzor.ov.profile"),c("profile"))]})}),n("div",{class:"pz-ov-group",children:o("penzor.tree.byApp")}),n("div",{class:"pz-rows",children:[p("source:ama",o("penzor.ledger.ama"),o("penzor.ov.ama"),c("ama")),p("source:apps",o("penzor.ledger.apps"),o("penzor.ov.apps"),c("apps"),u),p("source:plugins",o("penzor.source.plugins"),o("penzor.ov.plugins"),c("plugins")),p("exports",o("penzor.ledger.exports"),o("penzor.ov.exports"),c("exports"))]}),s&&n(I,{children:[n("div",{class:"pz-ov-group",children:o("penzor.ov.stale")}),n("div",{class:"pz-rows is-stale",children:b})]}),n("p",{class:"pz-note",children:o("penzor.unified.policy")})]})})}function jx({p:e}){let t=e.snap()?.ledger;if(!t?.complete||t.usage.usedBytes==null||t.quota.limitBytes<=0)return null;let o=e.t,r=s=>{let l=t.sources.find(c=>c.id===s);return l?.status==="ready"?l.liveBytes+l.trashBytes:0},a=[[o("penzor.ov.segNotes"),r("ama")],[o("penzor.ledger.apps"),r("apps")],[o("penzor.ov.segSync"),r("sync")],[o("penzor.uploads"),r("uploads")]];a.push([o("penzor.ov.segOther"),Math.max(0,t.usage.usedBytes-a.reduce((s,[,l])=>s+l,0))]);let i=a.filter(([,s])=>s>0);return n(I,{children:[n("div",{class:"pz-seg",role:"img","aria-label":i.map(([s,l])=>`${s} ${e.b(l)}`).join(", "),children:i.map(([s,l],c)=>n("span",{class:`c${c}`,style:{width:`${Math.max(.6,l/t.quota.limitBytes*100)}%`}},s))}),n("div",{class:"pz-legend",children:i.map(([s,l],c)=>n("span",{children:[n("i",{class:`c${c}`}),s," ",n("b",{children:e.b(l)})]},s))})]})}function Gx({p:e,dropDir:t}){let o=e.t,r=e.loc(),a=e.snap(),i=e.rows(),[s,l]=S(!1),[c,d]=S(null),p=K(null),u=K(null),m=K(null),f=e.canWrite(),g=e.selection();$(()=>(e.picker.files=()=>p.current?.click(),e.picker.folder=()=>u.current?.click(),()=>{e.picker.files=void 0,e.picker.folder=void 0}),[e]);let h=(_,C)=>{let P=_.currentTarget,G=Q().getPathForFile,Y=Array.from(P.files??[]);if(!G){P.value="",e.upload(ll(Y,C));return}let q=Y.map(pe=>{try{return G(pe)}catch{return""}}),te=q.filter(Boolean);if(C){let pe=new Set;Y.forEach((qe,ge)=>{let Ie=qe.webkitRelativePath??"",Ze=q[ge];!Ie||!Ze||Ze.length<Ie.length||pe.add(Ze.slice(0,Ze.length-Ie.length)+Ie.split("/")[0])}),te=[...pe]}P.value="",e.upload(te)},b=(_,C)=>{e.select(C,{toggle:_.metaKey||_.ctrlKey,range:_.shiftKey}),m.current?.focus({preventScroll:!0})},v=_=>{if(_.target?.tagName!=="INPUT"){if((_.metaKey||_.ctrlKey)&&_.key.toLowerCase()==="a"&&e.canMulti())_.preventDefault(),e.selectAll();else if(_.key==="Escape"&&g.length>1){_.preventDefault();let C=e.selected();e.select(C)}}},w=r.kind==="sync"?o(e.content()?.config.enabled?"penzor.tree.legacy":"penzor.ledger.sync"):r.kind==="ama"?o("penzor.ledger.ama"):r.kind==="app"&&!e.canWrite()?o("penzor.ledger.apps"):null,k=r.kind==="content"?Gf(e,r.namespace):r.kind==="sync"?r.vault:r.kind==="ama"?a.ama?.find(_=>_.id===r.vaultId)?.name??"":r.kind==="app"?e.appLabel(r.appId):r.kind==="source"?o(Rr[r.source]):r.kind==="exports"?o("penzor.ledger.exports"):o("penzor.trash"),x=r.kind==="app"?e.appStack().map(_=>_.name):e.path()?e.path().split("/"):[],T=[...w?[{label:w,depth:null}]:[],{label:k,depth:0},...x.map((_,C)=>({label:_,depth:C+1}))],F=["mtime","size","name"],V=()=>e.setSort(F[(F.indexOf(e.sort())+1)%F.length]),D=r.kind==="sync"?o("penzor.col.device"):r.kind==="trash"?o("penzor.col.origin"):r.kind==="exports"?o("penzor.col.app"):null,j=r.kind==="trash"?o("penzor.col.deleted"):o("penzor.col.mtime"),A=()=>{if(r.kind==="content"){let C=e.content()?Pn(e.content()):null,P=e.content()?.deviceId,G=r.namespace==="default"?o("penzor.content.noteAll"):r.namespace===`device-${P}`?o("penzor.content.noteSelf"):o("penzor.content.noteDevice",{name:k});return n(I,{children:[n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:k}),n("span",{class:"pz-badge",children:[n(ie,{n:"cloud"}),C?.kind==="ok"&&C.at?o("penzor.content.badgeLast",{time:Rn(C.at,e.locale())}):o("penzor.content.badge")]})]}),n("p",{class:"pz-note",children:G})]})}if(r.kind==="source"&&r.source==="market"){let C=a.ledger?.sources.find(G=>G.id==="market"),P=C?.status==="ready";return n(I,{children:[n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:o("penzor.source.market")}),n("span",{class:"pz-badge",children:[n(ie,{n:"store"}),o("penzor.market.badge")]})]}),P&&n("div",{class:"pz-meta",children:[n("span",{children:o("penzor.market.meta",{size:e.b(C.liveBytes+C.trashBytes),n:(C.fileCount??0).toLocaleString()})}),(C.historyBytesExcluded??0)>0&&n("span",{children:o("penzor.market.history",{size:e.b(C.historyBytesExcluded)})})]}),n("p",{class:"pz-note",children:o("penzor.source.marketNote")})]})}if(r.kind==="source")return n(I,{children:[n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:o(Rr[r.source])}),n("span",{class:"pz-badge",children:[n(ie,{n:"lock"}),o("penzor.unified.readonly")]})]}),n("p",{class:"pz-note",children:o(r.source==="plugins"?"penzor.source.pluginNote":"penzor.source.readonly")})]});if(r.kind==="sync"){let C=a.sync?.vaults.find(Y=>Y.vault===r.vault);if(!C)return null;let P=!!e.thisDevice()&&C.devices.includes(e.thisDevice()),G=a.sync;return n(I,{children:[n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:C.vault}),P&&!e.content()?.config.enabled&&n("span",{class:"pz-badge",children:[n(ie,{n:"refresh"}),o("penzor.sync.thisDevice")]})]}),e.content()?.config.enabled&&n("div",{class:"pz-legacy",children:[n(ie,{n:"history"}),n("span",{children:[o("penzor.legacy.title"),n("small",{children:o("penzor.legacy.body")})]}),n("button",{class:"pz-btn",onClick:()=>e.go("content:default"),children:o("penzor.legacy.go")})]}),n("div",{class:"pz-meta",children:[n("span",{children:o("penzor.meta.files",{size:e.b(C.bytes),n:C.files.toLocaleString()})}),C.updatedAt&&n("span",{children:C.device?o("penzor.sync.last",{time:en(Date.parse(C.updatedAt),e.locale()),device:C.device}):o("penzor.sync.lastNoDevice",{time:en(Date.parse(C.updatedAt),e.locale())})}),C.devices.length>0&&n("span",{children:o("penzor.sync.devices",{n:C.devices.length})})]}),ei(G.usedBytes,G.maxBytes)&&n("div",{class:"pz-meter",children:[n(er,{pct:G.usedBytes/G.maxBytes*100,warn:G.usedBytes/G.maxBytes>=.9}),n("span",{children:o("penzor.quota.sourceLimit",{max:e.b(G.maxBytes),used:e.b(G.usedBytes)})})]})]})}if(r.kind==="ama"){let C=a.ama?.find(P=>P.id===r.vaultId);return n(I,{children:[n("div",{class:"pz-title",children:[n("h1",{class:"pz-h1",children:C?.name}),n("span",{class:"pz-badge",children:[n(ie,{n:"cloud"}),"Amadeus Cloud"]})]}),n("div",{class:"pz-meta",children:[n("span",{children:e.b(C?.sizeBytes??0)}),n("span",{children:o("penzor.unified.counted")})]})]})}if(r.kind==="app"){let C=a.apps?.apps.find(G=>G.appId===r.appId),P=a.apps;return n(I,{children:[n("div",{class:"pz-title",children:n("h1",{class:"pz-h1",children:e.appLabel(r.appId)})}),n("div",{class:"pz-meta",children:[n("span",{children:o("penzor.meta.files",{size:e.b(C?.bytes??0),n:(C?.files??0).toLocaleString()})}),!e.canWrite()&&n("span",{children:o("penzor.apps.by",{app:e.appLabel(r.appId)})})]}),e.canWrite()&&n("div",{class:"pz-meta",children:a.ledger?.complete&&a.ledger.usage.usedBytes!=null?n(I,{children:[n("span",{children:o("penzor.drive.total",{used:e.b(a.ledger.usage.usedBytes),max:e.b(a.ledger.quota.limitBytes)})}),n("button",{class:"pz-link",onClick:()=>e.go("ov"),children:o("penzor.drive.seeAll")})]}):n("span",{children:o("penzor.unified.unavailable")})}),P&&ei(P.used,P.quota)&&n("div",{class:"pz-meter",children:[n(er,{pct:P.used/P.quota*100,warn:P.used/P.quota>=.9}),n("span",{children:o("penzor.quota.sourceLimit",{max:e.b(P.quota),used:e.b(P.used)})})]})]})}if(r.kind==="exports")return n(I,{children:[n("div",{class:"pz-title",children:n("h1",{class:"pz-h1",children:o("penzor.ledger.exports")})}),n("div",{class:"pz-meta",children:[n("span",{children:o("penzor.meta.files",{size:e.b(a.exports?.totalBytes??0),n:(a.exports?.total??0).toLocaleString()})}),n("span",{children:o("penzor.card.expFoot")})]})]});let _=i??[];return n(I,{children:[n("div",{class:"pz-title",children:n("h1",{class:"pz-h1",children:o("penzor.trash")})}),n("div",{class:"pz-meta",children:[n("span",{children:o("penzor.trash.meta",{n:_.length,size:e.b((a.trash??[]).reduce((C,P)=>C+(Number(P.fileSize)||0),0))})}),n("span",{children:o("penzor.trash.note")})]}),e.confirmEmpty()&&n("div",{class:"pz-confirm",children:[n("span",{children:o("penzor.confirm.empty",{n:_.length})}),n("button",{class:"pz-btn danger solid",onClick:()=>void e.emptyTrash(),children:o("penzor.trash.emptyBtn")}),n("button",{class:"pz-btn",onClick:()=>e.setConfirmEmpty(!1),children:o("penzor.cancel")})]})]})},L=e.selected(),U=g.length>1,N=g.reduce((_,C)=>_+(C.dir?0:C.size),0),oe=e.txRows();return n(I,{children:[n("div",{class:"pz-top",children:[n("nav",{class:"pz-crumb",children:T.map((_,C)=>{let P=C===T.length-1,G=P?n("b",{children:_.label}):_.depth==null?n("span",{children:_.label}):n("button",{onClick:()=>e.up(_.depth),children:_.label});return n("span",{style:{display:"contents"},children:[G,!P&&n("i",{children:"\u203A"})]},C)})}),n("span",{class:"pz-sp"}),U?n(I,{children:[n("span",{class:"pz-selbar",children:o("penzor.sel.bar",{n:g.length,size:e.b(N)})}),g.some(_=>!_.dir)&&n("button",{class:"pz-btn",onClick:()=>void e.downloadMany(g),children:[n(ie,{n:"download"}),o("penzor.act.download")]}),g.every(e.canManageRow)&&n("button",{class:"pz-btn",onClick:()=>e.setSide({kind:"move",at:[]}),children:[n(ie,{n:"move"}),o("penzor.act.move")]}),g.every(e.canManageRow)&&n("button",{class:"pz-btn danger",onClick:()=>void e.trashMany(g),children:[n(ie,{n:"trash"}),o("penzor.act.trash")]}),n("button",{class:"pz-ibtn",title:o("penzor.act.clearSel"),onClick:()=>e.select(L),children:n(ie,{n:"x"})})]}):n(I,{children:[x.length>0&&n("button",{class:"pz-ibtn",title:o("penzor.act.up"),onClick:()=>e.up(),children:n(ie,{n:"up"})}),r.kind==="source"&&(r.source==="agents"||r.source==="profile")&&n("button",{class:"pz-chip",onClick:()=>void e.ctx.app?.openSpace?.(r.source==="agents"?"agents":"calendar").then(_=>{_||e.ctx.app?.notify?.(o("penzor.source.entryUnavailable"))}),children:o(r.source==="agents"?"penzor.source.openAgents":"penzor.source.openCalendar")}),r.kind==="ama"&&n("button",{class:"pz-chip",onClick:()=>void e.ctx.app?.openSpace?.("amadeus"),children:[n(ie,{n:"book"}),o("penzor.ama.open")]}),r.kind==="app"&&r.appId==="connect"&&e.ctx.app?.openSettings&&n("button",{class:"pz-chip",onClick:()=>e.ctx.app?.openSettings?.(mn("webpages")),children:[n(ie,{n:"globe"}),o("penzor.hosted.open")]}),r.kind==="trash"&&e.canEmptyTrash()&&n("button",{class:"pz-btn danger",onClick:()=>e.setConfirmEmpty(!0),children:[n(ie,{n:"trash"}),o("penzor.trash.emptyBtn")]}),f&&n("span",{class:"pz-split",children:[n("button",{class:"pz-btn pri",onClick:()=>e.picker.files?.(),children:[n(ie,{n:"upload"}),o("penzor.act.upload")]}),n("button",{class:"pz-btn pri more",title:o("penzor.act.uploadMore"),"aria-label":o("penzor.act.uploadMore"),onClick:_=>{let C=_.currentTarget.getBoundingClientRect();d({x:C.right,y:C.bottom+4})},children:n(ie,{n:"down"})})]}),f&&n("button",{class:"pz-ibtn",title:o("penzor.act.newFolder"),onClick:()=>e.startNewFolder(),children:n(ie,{n:"folder-plus"})}),s||e.query()?n("input",{class:"pz-find",placeholder:o("penzor.search"),value:e.query(),autoFocus:!0,onInput:_=>e.setQuery(_.currentTarget.value),onKeyDown:_=>{_.key==="Escape"&&(e.setQuery(""),l(!1))},onBlur:()=>{e.query()||l(!1)}}):n("button",{class:"pz-ibtn",title:o("penzor.search"),onClick:()=>l(!0),children:n(ie,{n:"search"})}),n("button",{class:"pz-chip",onClick:V,children:[r.kind==="trash"&&e.sort()==="mtime"?o("penzor.sort.deleted"):o(`penzor.sort.${e.sort()}`),n(ie,{n:"down"})]})]})]}),f&&n(I,{children:[n("input",{ref:p,type:"file",multiple:!0,hidden:!0,onChange:_=>h(_,!1)}),n("input",{ref:u,type:"file",hidden:!0,webkitdirectory:!0,onChange:_=>h(_,!0)})]}),c&&n(Kf,{x:c.x,y:c.y,alignRight:!0,onClose:()=>d(null),items:[{id:"files",label:o("penzor.act.uploadFiles"),icon:"upload",run:()=>e.picker.files?.()},{id:"folder",label:o("penzor.act.uploadFolder"),icon:"folder",run:()=>e.picker.folder?.()}]}),n("div",{class:"pz-scroll",ref:m,tabIndex:-1,onKeyDown:v,onContextMenu:_=>{!f||_.target.closest("tr")||(_.preventDefault(),e.openMenu(_.clientX,_.clientY,null))},children:n("div",{class:"pz-col",children:[A(),e.rowsError()?n("p",{class:"pz-note",children:o("penzor.err",{reason:e.rowsError()})}):i?i.length===0&&!oe.length&&e.newFolder()==null?n("p",{class:"pz-note",children:e.query()?o("penzor.noMatch",{q:e.query()}):f&&!x.length?o("penzor.drive.empty"):o("penzor.folderEmpty")}):r.kind==="source"&&r.source==="market"?n(Xx,{p:e,rows:i}):n("table",{class:"pz-table",children:[n("thead",{children:n("tr",{children:[n("th",{children:o("penzor.col.name")}),n("th",{class:"r",children:o("penzor.col.size")}),n("th",{children:j}),D&&n("th",{children:D})]})}),n("tbody",{children:[e.newFolder()!=null&&n(Yx,{p:e,cols:D?4:3}),i.map((_,C)=>n(I,{children:[!_.dir&&(C===0||i[C-1].dir)&&oe.map(P=>n(Wf,{p:e,x:P},P.key)),n("tr",{class:`${e.isSelected(_.key)?"sel":""}${t&&t===_.key?" drop":""}`,"data-dir-id":f&&_.dir?_.key:void 0,"data-dir-name":f&&_.dir?_.name:void 0,onMouseDown:P=>{P.shiftKey&&P.preventDefault()},onClick:P=>b(P,_),onDblClick:()=>{_.dir?e.openDir(_):e.download(_)},onContextMenu:P=>{P.preventDefault(),e.openMenu(P.clientX,P.clientY,_)},children:[n("td",{class:"n",children:n("span",{children:[n(ie,{n:Ka(_.name,_.dir)}),r.kind==="content"&&!x.length&&qf[_.name]?n(I,{children:[n("b",{children:o(qf[_.name])}),n("em",{class:"cnt",children:[_.name,(_.count??0)>0&&` \xB7 ${o("penzor.card.expSmall",{n:_.count.toLocaleString()})}`]})]}):n(I,{children:[n("b",{children:_.name}),_.count!=null&&_.count>0&&n("em",{class:"cnt",children:_.count.toLocaleString()})]})]})}),n("td",{class:"r",children:_.dir&&r.kind==="app"?"\u2014":e.b(_.size)}),n("td",{children:en(_.mtime,e.locale())}),D&&n("td",{class:_.col4?"":"dim",children:_.col4?_.col4===e.thisDevice()?o("penzor.side.thisDevice",{name:_.col4}):_.col4:"\u2014"})]})]},_.key)),(i.length===0||i[i.length-1].dir)&&oe.map(_=>n(Wf,{p:e,x:_},_.key))]})]}):n("p",{class:"pz-note",children:o("penzor.loading")}),r.kind==="trash"&&!!e.snap()?.amaTrash?.length&&n(Kx,{p:e})]})})]})}var $f={plugin:"penzor.market.type.plugin",skill:"penzor.market.type.skill",agent:"penzor.market.type.agent",space:"penzor.market.type.space",theme:"penzor.market.type.theme","amadeus-plugin":"penzor.market.type.amadeusPlugin"},Hf={approved:"penzor.market.status.approved",pending:"penzor.market.status.pending",rejected:"penzor.market.status.rejected"},Jx={plugin:"puzzle","amadeus-plugin":"puzzle",skill:"sparkles",agent:"bot",theme:"palette",space:"archive"};function Xx({p:e,rows:t}){let o=e.t;return n("table",{class:"pz-table pz-market",children:[n("thead",{children:n("tr",{children:[n("th",{children:o("penzor.col.name")}),n("th",{children:o("penzor.col.type")}),n("th",{children:o("penzor.col.status")}),n("th",{class:"r",children:o("penzor.col.size")}),n("th",{children:o("penzor.col.mtime")})]})}),n("tbody",{children:t.map(r=>{let a=r.ref?.market,i=a?a.counted?[a.version?`v${a.version.replace(/^v/i,"")}`:"",a.pending?o("penzor.market.updating"):"",a.historyBytes>0?o("penzor.market.older",{size:e.b(a.historyBytes)}):""].filter(Boolean).join(" \xB7 "):o(a.source==="npm"?"penzor.market.fromNpm":"penzor.market.fromGithub"):"";return n("tr",{children:[n("td",{class:"n",children:n("span",{children:[n(ie,{n:Jx[a?.type??""]??"archive"}),n("b",{children:r.name}),i&&n("em",{class:"cnt",children:i})]})}),n("td",{children:a&&$f[a.type]?o($f[a.type]):a?.type??"\u2014"}),n("td",{children:a&&n("span",{class:`pz-badge${a.status==="rejected"?" is-warn":""}`,children:Hf[a.status]?o(Hf[a.status]):a.status})}),n("td",{class:"r",children:a&&!a.counted?o("penzor.market.notCounted"):e.b(r.size)}),n("td",{children:en(r.mtime,e.locale())})]},r.key)})})]})}function Gf(e,t){return t==="default"?e.t("penzor.scope.all"):t===`device-${e.content()?.deviceId}`?e.t("penzor.tree.thisBackup"):e.snap()?.contentDevices?.find(r=>`device-${r.id}`===t)?.name||`Forsion-${t.slice(7,15)}`}var qf={Amadeus:"penzor.cat.notes",agents:"penzor.source.agents",human:"penzor.cat.profile",Plugins:"penzor.cat.plugins"};function Kx({p:e}){let t=e.snap()?.amaTrash;return n("section",{class:"pz-ama-trash",children:[n("h3",{class:"pz-h3",children:e.t("penzor.trash.ama")}),n("p",{class:"pz-note",children:e.t("penzor.trash.amaNote")}),t?t.length?n("table",{class:"pz-table",children:[n("thead",{children:n("tr",{children:[n("th",{children:e.t("penzor.col.name")}),n("th",{children:e.t("penzor.col.size")}),n("th",{children:e.t("penzor.trash.expires")})]})}),n("tbody",{children:t.map(o=>n("tr",{children:[n("td",{children:[o.vaultName," / ",o.path]}),n("td",{children:e.b(o.size)}),n("td",{children:en(Date.parse(o.expiresAt),e.locale())})]},o.id))})]}):n("p",{class:"pz-note",children:e.t("penzor.folderEmpty")}):n("p",{class:"pz-note",children:e.t("penzor.unified.unavailable")})]})}function Yx({p:e,cols:t}){let[o,r]=S(e.newFolder()??""),a=K(null),i=K(!1);eo(()=>{a.current?.focus(),a.current?.select()},[]);let s=()=>{i.current||(i.current=!0,e.createFolder(o))};return n("tr",{class:"sel",children:[n("td",{class:"n",children:n("span",{children:[n(ie,{n:"folder-open"}),n("input",{ref:a,class:"pz-newname",value:o,onInput:l=>r(l.currentTarget.value),onKeyDown:l=>{l.key==="Enter"?s():l.key==="Escape"&&(i.current=!0,e.cancelNewFolder())},onBlur:s})]})}),n("td",{class:"r",children:"\u2014"}),n("td",{children:e.t("penzor.justNow")}),t>3&&n("td",{})]})}function Wf({p:e,x:t}){let o=t.size>0?Math.min(100,Math.round(t.done/t.size*100)):0;return n("tr",{class:`pz-txrow ${t.state}`,title:t.state==="paused"?e.t("penzor.tx.paused"):void 0,children:[n("td",{class:"n",children:n("span",{children:[n(ie,{n:Ka(t.name)}),n("b",{children:t.name})]})}),n("td",{class:"r",children:t.state==="active"?Qs(t.done,t.size,e.locale()):e.b(t.size)}),n("td",{children:t.state==="queued"?n("span",{class:"pz-inl",children:e.t("penzor.tx.queued")}):n("span",{class:"pz-inl",children:[n(er,{pct:o}),t.state==="paused"?e.t("penzor.tx.pause"):`${o}%`]})})]})}function Jf(e,t){let o=e.t,r=e.loc().kind,a={id:"download",label:o("penzor.act.download"),icon:"download",run:()=>void e.download(t)};return r==="source"?t.dir||!t.ref?.downloadPath?[]:[a]:r==="app"&&!e.canManageRow(t)?t.dir?[]:[a]:r==="sync"||r==="ama"?t.dir?[]:[a]:r==="app"?[...t.dir?[]:[a],{id:"rename",label:o("penzor.act.rename"),icon:"pen",run:()=>{e.select(t),e.setSide({kind:"rename"})}},{id:"move",label:o("penzor.act.move"),icon:"move",run:()=>{e.select(t),e.setSide({kind:"move",at:[]})}},{id:"trash",label:o("penzor.act.trash"),icon:"trash",danger:!0,run:()=>void e.trash(t)}]:r==="exports"?[a,{id:"rename",label:o("penzor.act.rename"),icon:"pen",run:()=>{e.select(t),e.setSide({kind:"rename"})}},{id:"delete",label:o("penzor.act.delete"),icon:"trash",danger:!0,run:()=>{e.select(t),e.setSide({kind:"confirm",what:"deleteExport"})}}]:r==="trash"&&e.canManageRow(t)?[{id:"restore",label:o("penzor.act.restore"),icon:"undo",run:()=>void e.restore(t)},{id:"purge",label:o("penzor.act.purge"),icon:"trash",danger:!0,run:()=>{e.select(t),e.setSide({kind:"confirm",what:"purge"})}}]:[]}function Zx(e,t){let o=e.t;if(!t)return e.canWrite()?[{id:"upload",label:o("penzor.act.uploadHere"),icon:"upload",run:()=>e.picker.files?.()},{id:"new-folder",label:o("penzor.act.newFolder"),icon:"folder-plus",run:()=>e.startNewFolder()}]:[];let r=e.selection();return r.length>1&&r.some(a=>a.key===t.key)?Xf(e,r):Jf(e,t)}function Xf(e,t){let o=e.t,r=e.loc().kind,a=t.filter(i=>!i.dir).length;return[...a?[{id:"download",label:o("penzor.sel.download",{n:a}),icon:"download",run:()=>void e.downloadMany(t)}]:[],...t.every(e.canManageRow)?[{id:"move",label:o("penzor.act.move"),icon:"move",run:()=>e.setSide({kind:"move",at:[]})},{id:"trash",label:o("penzor.act.trash"),icon:"trash",danger:!0,run:()=>void e.trashMany(t)}]:[]]}function Kf({x:e,y:t,items:o,onClose:r,alignRight:a}){let i=K(null),[s,l]=S({x:e,y:t});return $(()=>{let c=i.current;if(c){let u=c.getBoundingClientRect(),m=a?e-u.width:e;l({x:Math.max(8,Math.min(m,window.innerWidth-u.width-8)),y:t+u.height>window.innerHeight-8?Math.max(8,t-u.height):t})}let d=u=>{u.target instanceof Node&&c?.contains(u.target)||r()},p=u=>{u.key==="Escape"&&r()};return window.addEventListener("pointerdown",d,!0),window.addEventListener("keydown",p,!0),window.addEventListener("blur",r),window.addEventListener("wheel",r,{passive:!0}),()=>{window.removeEventListener("pointerdown",d,!0),window.removeEventListener("keydown",p,!0),window.removeEventListener("blur",r),window.removeEventListener("wheel",r)}},[e,t]),o.length?wa(n("div",{ref:i,class:"ctx-menu pz-menu",role:"menu",style:{left:`${s.x}px`,top:`${s.y}px`},children:o.map((c,d)=>n(I,{children:[c.danger&&d>0&&n("div",{class:"ctx-separator"}),n("button",{role:"menuitem",class:c.danger?"danger":"",onClick:()=>{r(),c.run()},children:[n(ie,{n:c.icon}),c.label]})]},c.id))}),document.body):(queueMicrotask(r),null)}function Qx({p:e}){let t=e.menu();return n(Kf,{x:t.x,y:t.y,items:Zx(e,t.row),onClose:e.closeMenu})}function Yf({p:e}){bl(e);let t=e.t,o=e.loc(),r=e.selected();if(_o(o)||!r)return n(Nr,{p:e,side:!0,children:n("p",{class:"pz-side-none",children:t("penzor.side.none")})});let a=e.snap(),i=e.side(),s=e.selection();if(s.length>1)return n(tk,{p:e,sel:s});let l=o.kind==="content"?`${Gf(e,o.namespace)} / ${r.key}`:o.kind==="sync"?`${o.vault} / ${r.key}`:o.kind==="ama"?`${a?.ama?.find(g=>g.id===o.vaultId)?.name??""} / ${r.key}`:o.kind==="app"?[e.appLabel(o.appId),...e.appStack().map(g=>g.name),r.name].join(" / "):o.kind==="source"?`${t(Rr[o.source])} / ${r.key}`:o.kind==="exports"?`${t("penzor.ledger.exports")} / ${r.name}`:r.col4??"",c=r.dir?"":(r.name.match(/\.([A-Za-z0-9]{1,8})$/)?.[1]??"").toUpperCase(),d=o.kind==="trash"?t("penzor.side.inTrash",{size:e.b(r.size)}):r.dir?r.count!=null?t("penzor.side.folder",{n:r.count.toLocaleString()}):t("penzor.side.folderPlain"):[c,e.b(r.size)].filter(Boolean).join(" \xB7 "),p=o.kind==="trash"?[[t("penzor.side.origin"),l],[t("penzor.side.deletedAt"),en(r.mtime,e.locale())]]:[[t("penzor.side.where"),l],[t("penzor.side.mtime"),en(r.mtime,e.locale())]];o.kind==="sync"&&!r.dir&&p.push([t("penzor.side.device"),r.col4?r.col4===e.thisDevice()?t("penzor.side.thisDevice",{name:r.col4}):r.col4:"\u2014"]),o.kind==="app"&&!r.dir&&!e.canWrite()&&p.push([t("penzor.side.from"),e.appLabel(o.appId)]),o.kind==="exports"&&p.push([t("penzor.side.from"),r.col4??"\u2014"]);let u=o.kind==="app"&&!e.canManageRow(r)?r.archive?"penzor.archive.note":r.managed?"penzor.hosted.note":"penzor.source.appNote":wf(o),m=Jf(e,r),f=e.versions();return n(Nr,{p:e,side:!0,children:[n("div",{class:"pz-thumb",children:n(ie,{n:Ka(r.name,r.dir)})}),i.kind==="rename"?n(ek,{p:e,row:r}):n("div",{class:"pz-fname",children:r.name}),n("div",{class:"pz-fsub",children:d}),i.kind==="confirm"?n("div",{class:"pz-confirm",style:{margin:0},children:[n("span",{children:t(i.what==="purge"?"penzor.confirm.purge":"penzor.confirm.deleteExport",{name:r.name})}),n("button",{class:"pz-btn danger solid",onClick:()=>void(i.what==="purge"?e.purge(r):e.deleteExport(r)),children:t(i.what==="purge"?"penzor.act.purge":"penzor.act.delete")}),n("button",{class:"pz-btn",onClick:()=>e.setSide({kind:"view"}),children:t("penzor.cancel")})]}):m.length>0&&n("div",{class:"pz-acts",children:m.filter(g=>g.id!=="move").map(g=>n("button",{class:`pz-btn${g.danger?" danger":""}${g.id==="restore"?" pri":""}`,onClick:()=>g.run(),children:[n(ie,{n:g.icon}),g.id==="trash"?t("penzor.act.delete"):g.label]},g.id))}),i.kind==="move"&&n(Zf,{p:e,row:r,at:i.at}),n("dl",{class:"pz-dl",children:[p.map(([g,h])=>n(I,{children:[n("dt",{children:g}),n("dd",{children:h})]},g)),o.kind==="app"&&!r.dir&&n(I,{children:[n("dt",{children:t("penzor.side.versions")}),n("dd",{children:f==null?"\u2026":f.length?t("penzor.side.versionsN",{n:f.length}):t("penzor.side.versionsNone")})]})]}),e.canManageRow(r)&&!r.dir&&f&&f.length>0&&n("div",{class:"pz-vers",children:f.map(g=>n("div",{children:[n("span",{children:t("penzor.side.versionRow",{n:g.versionNumber,time:en(g.createdAt,e.locale()),size:e.b(g.fileSize)})}),n("button",{class:"pz-link",onClick:()=>void e.restoreVersion(r,g),children:t("penzor.side.restoreVersion")})]},g.versionNumber))}),o.kind==="trash"&&r.dir&&(r.count??0)>0&&n("div",{class:"pz-tip",children:[n(ie,{n:"undo"}),n("span",{children:t("penzor.side.inner",{n:r.count})})]}),o.kind==="exports"&&n("div",{class:"pz-tip",children:[n(ie,{n:"trash"}),n("span",{children:t("penzor.side.exportNote")})]}),u&&n("div",{class:"pz-tip",children:[n(ie,{n:"lock"}),n("span",{children:t(u,{vault:o.kind==="sync"?o.vault:""})})]})]})}function ek({p:e,row:t}){let[o,r]=S(t.name),a=K(null),i=K(!1),s=()=>{i.current||(i.current=!0,e.rename(t,o))};return $(()=>{let l=a.current;if(!l)return;l.focus();let c=t.dir?-1:t.name.lastIndexOf(".");l.setSelectionRange(0,c>0?c:t.name.length)},[t.key]),n("input",{ref:a,class:"pz-input",value:o,onInput:l=>r(l.currentTarget.value),onKeyDown:l=>{l.key==="Enter"?s():l.key==="Escape"&&(i.current=!0,e.setSide({kind:"view"}))},onBlur:s})}function Zf({p:e,row:t,at:o}){let r=e.t,a=e.loc(),i=a.kind==="app"?e.appLabel(a.appId):"",s=e.selection(),l=s.length>1,c=new Set(l?s.map(u=>u.key):[t.key]),d=(e.moveFolders()??[]).filter(u=>!c.has(u.id)),p=o[o.length-1]??{id:"ROOT",name:r("penzor.move.root",{app:i})};return n("div",{class:"pz-tip",style:{flexDirection:"column"},children:[n("div",{class:"pz-sh",style:{margin:0},children:r("penzor.move.title")}),n("div",{class:"pz-pick",children:[o.length>0&&n("button",{onClick:()=>e.moveBrowse(o.slice(0,-1)),children:[n(ie,{n:"up"}),o.length>1?o[o.length-2].name:r("penzor.move.root",{app:i})]}),e.moveFolders()==null?n("span",{children:"\u2026"}):d.length===0?n("span",{children:r("penzor.move.noFolders")}):d.map(u=>n("button",{onClick:()=>e.moveBrowse([...o,u]),children:[n(ie,{n:"folder"}),u.name]},u.id))]}),n("div",{class:"pz-acts",children:[n("button",{class:"pz-btn pri",onClick:()=>void(l?e.moveMany(s,p):e.moveTo(t,p)),children:r("penzor.move.here")}),n("button",{class:"pz-btn",onClick:()=>e.setSide({kind:"view"}),children:r("penzor.cancel")})]})]})}function tk({p:e,sel:t}){let o=e.t,r=e.loc(),a=t.filter(u=>!u.dir),i=t.length-a.length,s=a.reduce((u,m)=>u+m.size,0),l=new Date,c=o("penzor.download.folder",{date:`${l.getFullYear()}-${String(l.getMonth()+1).padStart(2,"0")}-${String(l.getDate()).padStart(2,"0")}`}),d=r.kind==="app"?[e.appLabel(r.appId),...e.appStack().map(u=>u.name)].join(" / "):r.kind==="sync"?[r.vault,...e.path()?e.path().split("/"):[]].join(" / "):r.kind==="ama"?[e.snap()?.ama?.find(u=>u.id===r.vaultId)?.name??"",...e.path()?e.path().split("/"):[]].join(" / "):"",p=e.side();return n(Nr,{p:e,side:!0,children:[n("div",{class:"pz-thumb",children:n(ie,{n:"files"})}),n("div",{class:"pz-fname",children:o("penzor.sel.title",{n:t.length})}),n("div",{class:"pz-fsub",children:i?o("penzor.sel.subDirs",{size:e.b(s),files:a.length,dirs:i}):o("penzor.sel.sub",{size:e.b(s),files:a.length})}),n("div",{class:"pz-acts",children:Xf(e,t).map(u=>n("button",{class:`pz-btn${u.danger?" danger":""}`,onClick:()=>u.run(),children:[n(ie,{n:u.icon}),u.id==="trash"?o("penzor.act.delete"):u.label]},u.id))}),p.kind==="move"&&n(Zf,{p:e,row:t[0],at:p.at}),n("dl",{class:"pz-dl",children:[n("dt",{children:o("penzor.side.where")}),n("dd",{children:d}),a.length>1&&n(I,{children:[n("dt",{children:o("penzor.sel.saveTo")}),n("dd",{children:o("penzor.sel.saveToValue",{folder:c})})]})]}),i>0&&a.length>0&&n("div",{class:"pz-tip",children:[n(ie,{n:"folder"}),n("span",{children:o("penzor.sel.noDirs")})]})]})}var Qf=(e,t)=>t<60?e.t("penzor.tx.sec",{n:Math.max(1,Math.round(t))}):e.t("penzor.tx.min",{n:Math.ceil(t/60)}),nk=(e,t)=>t!=null&&Date.now()-t<6e4?e.t("penzor.justNow"):en(t,e.locale()),ok=(e,t)=>{let o=t.error??"";return o==="too_large"?e.t("penzor.err.too_large",{size:e.b(t.size)}):o==="network"?e.t("penzor.err.network",{pct:t.size?Math.round(t.done/t.size*100):0}):o==="quota"||o==="account_changed"||o==="not_signed_in"||o==="gone"||o==="changed"||o==="storage_unavailable"||o==="popup_blocked"||o==="download_unavailable"||o==="download_failed"?e.t(`penzor.err.${o}`):e.t("penzor.err.other",{code:o||"?"})};function rk(e){let t=e.filter(l=>l.state==="active"||l.state==="queued"||l.state==="paused"),o=t.filter(l=>l.state!=="paused"),r=o.reduce((l,c)=>l+Math.max(c.size,c.done),0),a=o.reduce((l,c)=>l+c.done,0),i=o.reduce((l,c)=>l+c.speed,0),s=i>0?(r-a)/i:null;return{live:t,failed:e.filter(l=>l.state==="failed"),done:e.filter(l=>l.state==="done"),up:t.filter(l=>l.kind==="up").length,down:t.filter(l=>l.kind==="down").length,pct:r>0?Math.min(100,Math.round(a/r*100)):0,eta:s!=null&&s>=5?s:null}}var hl=!1;function em(e,t){let o=t.ui?.float;if(typeof o!="function")return null;hl=!0;let r=null,a=()=>e.card()!=="hidden"&&(e.transfers().length>0||e.notices().length>0),i=()=>{if(a()&&!r){try{r=o({scope:"space",space:yn,anchor:"bottom-end",role:"panel",id:"transfers",bare:!0})}catch(l){console.error("[penzor] transfer float failed",l);return}Fe(n(ak,{p:e}),r.el)}else if(!a()&&r){let l=r;r=null,l.close(),Fe(null,l.el)}},s=e.subscribe(i);return i(),()=>{if(s(),hl=!1,r){let l=r;r=null,l.close(),Fe(null,l.el)}}}function ak({p:e}){return bl(e),n(Nr,{p:e,extra:"pz-txfloat",children:n(tm,{p:e})})}function tm({p:e}){let t=e.t,o=e.card(),r=e.transfers(),a=e.notices();if(o==="hidden"||!r.length&&!a.length)return null;let i=rk(r),s=i.failed.length+a.length,l=t("penzor.tx.counts",{up:i.up,down:i.down}),c=i.live.length?t("penzor.tx.busy",{n:i.live.length}):s?t("penzor.tx.failedN",{n:s}):t("penzor.tx.allDone"),d=i.live.length?[l,i.eta!=null?t("penzor.tx.eta",{eta:Qf(e,i.eta)}):""].filter(Boolean).join(" \xB7 "):s?i.done.length?t("penzor.tx.restDone",{n:i.done.length}):"":t("penzor.tx.doneN",{n:i.done.length}),p={onMouseEnter:()=>e.holdCard(!0),onMouseLeave:()=>e.holdCard(!1)};if(o==="pill")return n("button",{class:"ui-popover pz-txpill",...p,onClick:()=>e.setCard("open"),title:t("penzor.tx.expand"),"aria-label":t("penzor.tx.expand"),children:[i.live.length?n("span",{class:"pz-ring",style:{"--p":i.pct}}):n(ie,{n:s?"alert":"check"}),n("span",{children:i.live.length?t("penzor.tx.pill",{counts:l,pct:i.pct}):c}),n(ie,{n:"up"})]});let u=g=>g.state==="failed"?0:g.state==="active"?1:g.state==="queued"||g.state==="paused"?2:3,m=[...r].filter(g=>g.state!=="canceled").sort((g,h)=>u(g)-u(h)||(u(g)===3?(h.finishedAt??0)-(g.finishedAt??0):0)),f=i.live.length>0&&i.live.every(g=>g.state==="paused");return n("div",{class:"ui-popover pz-txcard",role:"region","aria-label":c,...p,children:[n("div",{class:"pz-txhead",children:[n("b",{children:c}),n("span",{children:d}),n("i",{class:"sp"}),n("button",{class:"pz-ib",title:t("penzor.tx.collapse"),"aria-label":t("penzor.tx.collapse"),onClick:()=>e.setCard(i.live.length||s?"pill":"hidden"),children:n(ie,{n:"down"})})]}),i.live.length>0&&n("div",{class:"pz-txall",children:n(er,{pct:i.pct})}),n("div",{class:"pz-txlist",children:[a.map(g=>n("div",{class:"pz-txrow2 is-fail",children:[n(ie,{n:"alert"}),n("span",{class:"nm",children:t("penzor.tx.quota",{size:e.b(g.short)})}),n("span",{class:"acts",children:n("button",{class:"pz-ib",title:t("penzor.tx.remove"),onClick:()=>e.dismissNotice(g.id),children:n(ie,{n:"x"})})}),n("span",{class:"sub",children:[n("span",{class:"err",children:t("penzor.tx.quotaSub")}),n("button",{class:"pz-link",onClick:()=>{e.dismissNotice(g.id),e.go("trash")},children:t("penzor.tx.freeSpace")})]})]},g.id)),m.map(g=>n(ik,{p:e,x:g},g.id))]}),n("div",{class:"pz-txfoot",children:[i.live.length>0&&n("button",{onClick:()=>void e.txAll(f?"resume":"pause"),children:t(f?"penzor.tx.resumeAll":"penzor.tx.pauseAll")}),i.failed.length>0&&!i.live.length&&n("button",{onClick:()=>void e.txAll("retry"),children:t("penzor.tx.retryAll")}),i.done.length>0&&i.live.length>0&&n("button",{onClick:()=>void e.txClear("finished"),children:t("penzor.tx.clearDone")}),!i.live.length&&n("button",{onClick:()=>void e.txClear(s?"all":"finished"),children:t(s?"penzor.tx.clear":"penzor.tx.clearDone")})]})]})}function ik({p:e,x:t}){let o=e.t,r=t.size>0?Math.min(100,t.done/t.size*100):0,a=t.state==="done"?"check":t.state==="failed"?"alert":t.kind==="up"?"tx-up":"tx-down",i=(l,c,d)=>n("button",{class:"pz-ib",title:c,"aria-label":c,onClick:d,children:n(ie,{n:l})}),s;if(t.state==="failed")s=n("span",{class:"err",children:ok(e,t)});else if(t.state==="done")s=n(I,{children:[n("span",{children:e.b(t.size)}),n("span",{children:o(t.kind==="up"?"penzor.tx.uploaded":"penzor.tx.downloaded",{time:nk(e,t.finishedAt)})})]});else if(t.state==="queued")s=n(I,{children:[n("span",{children:e.b(t.size)}),n("span",{children:o("penzor.tx.queued")})]});else if(t.state==="paused")s=n(I,{children:[n("span",{children:e.b(t.size)}),n("span",{children:o("penzor.tx.paused")})]});else{let l=t.speed>0?(t.size-t.done)/t.speed:null;s=n(I,{children:[n("span",{children:Qs(t.done,t.size,e.locale())}),t.speed>0&&n("span",{children:[e.b(t.speed),"/s"]}),l!=null&&l>=5&&n("span",{children:o("penzor.tx.left",{eta:Qf(e,l)})})]})}return n("div",{class:`pz-txrow2${t.state==="done"?" is-done":t.state==="failed"?" is-fail":""}`,children:[n(ie,{n:a}),n("span",{class:"nm",title:t.name,children:t.name}),n("span",{class:"acts",children:[(t.state==="active"||t.state==="queued")&&i("pause",o("penzor.tx.pause"),()=>void e.txOp(t.id,"pause")),t.state==="paused"&&i("play",o("penzor.tx.resume"),()=>void e.txOp(t.id,"resume")),(t.state==="active"||t.state==="queued"||t.state==="paused")&&i("x",o("penzor.tx.cancel"),()=>void e.txOp(t.id,"cancel")),t.state==="failed"&&t.error!=="too_large"&&n("button",{class:"pz-link",onClick:()=>void e.txOp(t.id,"retry"),children:o("penzor.tx.retry")}),t.state==="failed"&&i("x",o("penzor.tx.remove"),()=>void e.txOp(t.id,"dismiss")),t.state==="done"&&(t.kind==="up"||t.localPath)&&n("button",{class:"pz-link",onClick:()=>e.locate(t),children:o(t.kind==="down"?"penzor.tx.reveal":"penzor.tx.locate")})]}),(t.state==="active"||t.state==="paused"||t.state==="queued")&&n(er,{pct:r}),n("span",{class:"sub",children:s})]})}function sk(e,t){let o=un(t.tangu);return!!e&&typeof e.registerView=="function"&&typeof e.registerListSource=="function"&&typeof e.openView=="function"&&typeof e.app?.openSpace=="function"&&typeof o?.cloudInvoke=="function"&&(!o.mobile||!!o.extendMobile)&&pn(o)}function nm(e,t=window){if(!sk(e,t))return null;let o=un(t.tangu),r=kf(e);em(r,e),Sn(o)||o.cloudInvoke("penzor:device").then(m=>{let f=m?.name;typeof f=="string"&&f&&r.setDevice(f)}).catch(()=>{});let a=m=>f=>(Fe(n(m,{p:r}),f),()=>{Fe(null,f)});e.registerView({id:Nn.main,title:r.t("penzor.title"),icon:"penzor",workspaceSource:nl,mount:a(Vf)}),e.registerView({id:Nn.info,title:r.t("penzor.details"),icon:"page",mount:a(Yf)});let i=e.listCapabilities?.includes("tree")??!1,s=typeof e.app?.setSpaceProgress=="function"?"hard-drive":"archive",l=()=>({overview:r.t("penzor.overview"),drive:r.t("penzor.drive"),driveIcon:s,sync:r.t("penzor.ledger.sync"),ama:r.t("penzor.ledger.ama"),apps:r.t("penzor.ledger.apps"),exports:r.t("penzor.ledger.exports"),trash:r.t("penzor.trash"),items:m=>r.t("penzor.items",{n:m}),files:r.t("penzor.uploads"),synced:r.t("penzor.tree.synced"),all:r.t("penzor.scope.all"),thisBackup:r.t("penzor.tree.thisBackup"),byApp:r.t("penzor.tree.byApp"),legacy:r.t("penzor.tree.legacy")}),c=()=>{let m=r.content();if(m){let g=Pn(m);return[{key:"sync-home",title:r.t("penzor.sync.title"),icon:"refresh",hint:hf(g,r.locale()),...g.kind==="warn"?{unread:!0}:{}}]}if(!r.hasSync())return[];let f=r.syncState();return[{key:"sync-home",title:r.t("penzor.sync.title"),icon:"refresh",hint:gf(f,r.locale()),...Xa(f)?{unread:!0}:{}}]};e.registerListSource({id:nl,title:r.t("penzor.title"),search:!0,items:m=>{let f=[...c(),...pf(r.snap(),l(),r.locale(),r.content())],g=m?.query?.trim().toLowerCase()??"";if(g)return f.filter(b=>b.kind!=="folder"&&b.title.toLowerCase().includes(g)).map(({parent:b,...v})=>v);if(i)return f;let h=new Map(f.filter(b=>b.kind==="folder").map(b=>[b.key,b.title]));return f.filter(b=>b.kind!=="folder").map(({parent:b,...v})=>({...v,group:b?h.get(b):void 0}))},subscribe:m=>r.subscribe(m),activeKey:()=>Co(r.loc()),open:m=>r.go(m.key),actions:[{id:"refresh",label:r.t("penzor.act.refresh"),icon:"refresh",primary:!0,run:()=>{r.refresh(),e.app?.sync?.refresh?.().catch(()=>{})}}],itemMenu:m=>{if(m.key.startsWith("sync:")){let f=m.key.slice(5);return[{id:"open-sync",label:r.t("penzor.act.openSync"),icon:"gear",run:()=>r.openSync()},{id:"copy-name",label:r.t("penzor.act.copyName"),icon:"copy",run:()=>{navigator.clipboard?.writeText(f).then(()=>e.app?.notify?.(r.t("penzor.toast.copied")))}}]}return m.key==="trash"&&r.canEmptyTrash()?[{id:"empty-trash",label:r.t("penzor.trash.emptyBtn"),icon:"trash",danger:!0,run:()=>{r.go("trash"),r.setConfirmEmpty(!0)}}]:[]}}),e.registerCommand?.({id:"open-penzor",title:()=>r.t("penzor.cmd.open"),keywords:"penzor cloud storage quota sync files trash drive upload \u84EC\u6D32\u4E91 \u4E91\u7A7A\u95F4 \u4E91\u76D8 \u7F51\u76D8 \u4E0A\u4F20 \u989D\u5EA6 \u540C\u6B65 \u56DE\u6536\u7AD9",run:()=>{e.app?.openSpace?.(yn)}});let d=m=>{if(!(m.key!==xf||!m.newValue))try{let f=JSON.parse(m.newValue);f.page==="sync"&&r.hasSync()?e.app?.openSpace?.(yn).then(()=>r.go("sync-home")):typeof f.vault=="string"&&f.vault&&r.focusVault(f.vault)}catch{}},p=(()=>{try{return!new URLSearchParams(t.location.search).get("window")}catch{return!1}})();if(p){t.addEventListener("storage",d);try{t.localStorage.setItem(ol,"1")}catch{}}let u=r.dispose;return r.dispose=()=>{if(p){t.removeEventListener("storage",d);try{t.localStorage.removeItem(ol)}catch{}}u()},r}var om="sync",vl=3,lk=24*36e5,ck=5e3,dk=15e4,rm=e=>e.split("/").filter(Boolean).pop()||e,Or=(e,t,o)=>e!=null&&Number.isFinite(e)?Rn(e,t,o):void 0;function uk(e,t){let o=new Map;for(let r of e.jobs){if(r.state!=="conflict"||t-r.at>lk||e.jobs.some(i=>i.path===r.path&&i.at>r.at&&i.state==="done"&&i.direction!=="merge"))continue;let a=o.get(r.path);(!a||r.at>a.at)&&o.set(r.path,r)}return[...o.values()].sort((r,a)=>a.at-r.at)}var pk=e=>{let t=e.jobs.filter(o=>o.state==="done").map(o=>o.finishedAt??o.at);return t.length?Math.max(...t):null};function fk(e,t,o,r){let a=Pn(e);if(a.kind==="off")return{rows:[{id:"status",title:t("penzor.widget.off"),meta:t("penzor.cs.statusOff")}]};let i=[],s=pk(e);i.push(a.kind==="paused"?{id:"status",title:t("penzor.widget.paused"),meta:t("penzor.cs.statusPaused")}:a.kind==="run"?{id:"status",title:t("penzor.widget.running"),meta:`${a.pct}%`,tone:"accent",now:!0}:a.kind==="scan"?{id:"status",title:t("penzor.cs.statusScan"),now:!0}:a.kind==="warn"?{id:"status",title:t("penzor.widget.problem"),meta:t("penzor.cs.statusWarn",{n:a.n}),tone:"warn"}:{id:"status",title:t("penzor.cs.statusOk"),...Or(a.at,o,r)?{meta:Or(a.at,o,r)}:{}});let l=e.jobs.filter(u=>u.state==="active").length,c=e.jobs.filter(u=>u.state==="queued"||u.state==="paused").length;l?i.push({id:"queue",title:t("penzor.widget.active",{n:l}),...c?{meta:t("penzor.widget.queued",{n:c})}:{}}):c&&i.push({id:"queue",title:t("penzor.widget.waiting",{n:c})});let d=[...e.error?[{id:"error",title:t("penzor.widget.error"),meta:t("penzor.widget.errorMeta"),tone:"warn"}]:[],...Mr(e).sort((u,m)=>m.at-u.at).map(u=>({id:`failed:${u.id}`,title:rm(u.path),meta:t("penzor.widget.failed"),tone:"warn"})),...uk(e,r).map(u=>({id:`conflict:${u.id}`,title:rm(u.path),meta:t("penzor.widget.conflict"),tone:"warn"}))];i.push(...d.slice(0,vl));let p=[...d.length>vl?[t("penzor.widget.more",{n:d.length-vl})]:[],...a.kind!=="ok"&&Or(s,o,r)?[t("penzor.widget.last",{time:Or(s,o,r)})]:[]];return{rows:i,...p.length?{footer:p.join(" \xB7 ")}:{}}}function mk(e,t,o,r){if(!e.signedIn)return sm(t);let a=e.notes;if(a.pending)return{rows:[{id:"pending",title:t("penzor.widget.pending"),meta:t("penzor.sync.waiting"),tone:"warn"}]};if(!Ja(e))return{rows:[{id:"status",title:t("penzor.widget.off"),meta:t("penzor.cs.statusOff")}]};let i=[],s=To(e)??(e.agents.on&&e.agents.running?0:null),l=Math.max(...[a.last?.ok?a.last.at:null,e.agents.last?.ok?e.agents.last.at:null,e.plugins.lastAt??null].filter(c=>typeof c=="number"),-1);return s!=null?i.push({id:"status",title:t("penzor.widget.running"),...s>0?{meta:`${Math.round(s*100)}%`}:{},tone:"accent",now:!0}):i.push({id:"status",title:t("penzor.cs.statusOk"),...l>0?{meta:Or(l,o,r)}:{}}),a.on&&Ir(e)&&i.push({id:"notes-failed",title:t("penzor.widget.notesFailed"),meta:t("penzor.widget.errorMeta"),tone:"warn"}),e.agents.on&&e.agents.last?.ok===!1&&i.push({id:"agents-failed",title:t("penzor.widget.agentsFailed"),meta:t("penzor.widget.errorMeta"),tone:"warn"}),e.plugins.on&&(e.plugins.pending??0)>0&&i.push({id:"plugins",title:t("penzor.widget.waiting",{n:e.plugins.pending})}),{rows:i}}var sm=e=>({rows:[{id:"signin",title:e("penzor.widget.signedOut"),meta:e("penzor.widget.signInHint")}]});function am(e,t,o=Date.now()){let r=(a,i)=>Ce(t,a,i);return e.kind==="signedOut"?sm(r):e.kind==="content"?fk(e.snap,r,t,o):mk(e.snap,r,t,o)}var gk=/not a Forsion Extend channel/;async function im(e,t){let o=Q();if(!pn(o))throw new Error("sync status is not available on this page");if(!t.noChannel&&typeof o.cloudInvoke=="function"){let i;try{i=await o.cloudInvoke(Jt.get)}catch(s){i={ok:!1,error:s instanceof Error?s.message:String(s)}}if(i?.ok&&i.value?.available)return{kind:"content",snap:i.value};if(!i?.ok&&i?.error==="not_signed_in")return{kind:"signedOut"};if(i?.ok||!gk.test(i?.error??""))throw new Error(i?.error||"sync status unavailable");t.noChannel=!0}let r=!o.mobile&&typeof e.app?.sync?.get=="function"?e.app.sync:null,a=r?.get()??null;if(!a)throw new Error(r?"sync status is still loading":"sync status unavailable");return{kind:"legacy",snap:a}}var hk=8e3;function lm(e){let t=e?.widgets;if(!e||!t||typeof t.provide!="function")return null;let o=()=>Oe(e.getLocale?.()),r={noChannel:!1},a=null,i=null,s=1,l=null,c=null,d,p,u=!1,m=0,f=()=>{u||t.invalidate(om)},g=x=>x?JSON.stringify(am(x,o())):"error",h=x=>{let T;return Promise.race([x,new Promise((F,V)=>{T=setTimeout(()=>V(new Error("timed out")),hk)})]).finally(()=>clearTimeout(T))},b=async()=>{let x=s;if(!(u||m===x)){m=x;try{let T=g(await h(im(e,r)).catch(()=>null));if(u||x!==s)return;T!==a&&T!==i&&(i=T,f())}finally{m===x&&(m=0)}}},v=()=>{s++,m=0,l&&clearInterval(l),c&&clearTimeout(c),l=null,c=null,d?.(),d=void 0,p?.(),p=void 0},w=()=>{if(c&&clearTimeout(c),c=setTimeout(v,dk),l)return;l=setInterval(()=>void b(),ck),d=Q().onAuthChanged?.(()=>{i=null,f()}),p=(!Q().mobile&&typeof e.app?.sync?.subscribe=="function"?e.app.sync:null)?.subscribe(()=>void b())},k=t.provide(om,async(x,T)=>{if(u)throw new Error("disposed");w(),i=null;let F=T?.signal,V;try{V=am(await im(e,r),o())}catch(D){throw F?.aborted||(a="error"),D}return F?.aborted||(a=JSON.stringify(V)),V});return{dispose(){u=!0,v(),k?.dispose?.()}}}var ti="events",bk="forsion-extend.events.seen",cm="forsion-extend.events.seen.migrated",vk="forsion-extend.events.seen.v2",yk="forsion-extend.events.feed",dm="forsion-extend.events.last",um="forsion-extend.events.ping",xk=200,kk=3e4,nr=36e5,yl=864e5,pm=8*nr,wk=1e3,fm={newEvent:!0,claimable:"always",beforeEndHours:0,revision:0},On=(e,t)=>e&&(e[t]||e.zh||e.en)||"",Ur=(e,t)=>(e??[]).map(o=>On(o.label,t)||o.kind).join(" \xB7 "),xl=(e,t)=>e.sort-t.sort||(e.endsAt??"~").localeCompare(t.endsAt??"~");function zk(e){let t=o=>o.kind==="notice";return{active:e.filter(o=>!t(o)&&(o.state==="live"||o.state==="claiming")).sort(xl),notices:e.filter(o=>t(o)&&o.state==="live").sort(xl),upcoming:e.filter(o=>o.state==="upcoming").sort(xl),ended:e.filter(o=>o.state==="ended"||t(o)&&o.state==="claiming").sort((o,r)=>(r.endsAt??"").localeCompare(o.endsAt??""))}}var tr=(e,t)=>{let o=new Date(e),r=a=>String(a).padStart(2,"0");return`${r(o.getMonth()+1)}-${r(o.getDate())}${t?` ${r(o.getHours())}:${r(o.getMinutes())}`:""}`};function wl(e,t,o){let r=(l,c)=>Ce(o,l,c);if(e.state==="upcoming")return{short:r("events.time.start",{date:tr(e.startsAt,!1)}),long:r("events.time.start",{date:tr(e.startsAt,!0)}),warn:!1};if(e.kind==="notice"){let l=r("events.time.published",{date:tr(e.startsAt,!1)});return{short:l,long:l,warn:!1}}if(e.state==="claiming"&&e.claimUntil)return{short:r("events.time.claimShort",{date:tr(e.claimUntil,!1)}),long:r("events.time.claim",{date:tr(e.claimUntil,!0)}),warn:!1};if(e.state==="ended"||!e.endsAt){let l=e.endsAt?r("events.time.ended",{date:tr(e.claimUntil??e.endsAt,!1)}):"";return{short:l,long:l,warn:!1}}let a=new Date(e.endsAt).getTime()-new Date(t).getTime(),i=Math.max(1,Math.ceil(a/nr));if(i<=24)return{short:r("events.left.hours",{n:i}),long:r("events.left.longHours",{h:i}),warn:!0};let s=Math.floor(i/24);return{short:r("events.left.days",{n:s}),long:r("events.left.long",{d:s,h:i%24}),warn:!1}}function ni(e){let t=e.remind;return!t||typeof t!="object"?fm:{newEvent:typeof t.newEvent=="boolean"?t.newEvent:fm.newEvent,claimable:t.claimable==="daily"||t.claimable==="off"?t.claimable:"always",beforeEndHours:Number.isFinite(t.beforeEndHours)&&t.beforeEndHours>0?t.beforeEndHours:0,revision:Number.isFinite(t.revision)?t.revision:0}}function kl(e,t){return e?t?{revision:Math.max(e.revision,t.revision),day:e.day>t.day?e.day:t.day}:e:t??null}function mm(e){let t=e.state==="live"?e.endsAt:e.state==="claiming"?e.claimUntil:null,o=t?new Date(t).getTime():NaN;return Number.isFinite(o)?o:null}var zl=e=>e.state==="live"||e.state==="claiming"&&e.kind!=="notice";function Sk(e,t,o,r){if(!zl(e))return{fresh:!1,claim:!1,ending:!1};let a=ni(e),i=e.state==="live"&&a.newEvent&&(!t||t.revision<a.revision),s=e.claimable>0&&(a.claimable==="always"||a.claimable==="daily"&&t?.day!==o),l=mm(e),c=l===null?NaN:l-r,d=a.beforeEndHours>0&&e.claimable>0&&c>0&&c<=a.beforeEndHours*nr;return{fresh:i,claim:s,ending:d}}var Ck=(e,t,o,r)=>{let a=Sk(e,t,o,r);return a.fresh||a.claim||a.ending};function _k(e,t){let o=[Math.floor((t+pm)/yl)*yl+yl-pm];for(let r of e){if(!zl(r))continue;let a=mm(r);if(a===null)continue;a>t&&o.push(a);let i=ni(r);i.beforeEndHours>0&&r.claimable>0&&a-i.beforeEndHours*nr>t&&o.push(a-i.beforeEndHours*nr)}return o.length?Math.min(...o):null}function gm(e,t){return e?/^(https:|data:image\/)/i.test(e)?e:e.startsWith("/")&&t?`${t.replace(/\/+$/,"")}${e}`:null:null}function Fr(e,t){try{let o=localStorage.getItem(e);return o===null?t:JSON.parse(o)}catch{return t}}function Br(e,t){try{localStorage.setItem(e,t)}catch{}}function Ak(e){try{localStorage.removeItem(e)}catch{}}var Tk={not_live:"events.err.notLive",completed:"events.err.completed",grant_failed:"events.err.grantFailed"};function hm(e,t){let o=new Set,r=()=>{o.forEach(J=>J())},a=Oe(e.getLocale?.()),i="loading",s=null,l="",c=null,d="",p={},u=!1,m=0,f=null,g=!1,h=null,b=0,v,w=(J,he)=>Ce(a,J,he),k=()=>zk(s?.events??[]),x=()=>`${vk}:${d}`,T=()=>`${yk}:${d}`,F=J=>kl(p[J.id],J.seen??null),V=()=>s?.today??"",D=()=>Date.now(),j=J=>Ck(J,F(J),V(),D()),A=J=>{if(!zl(J))return!1;let he=ni(J),xe=F(J);return!xe||xe.revision<he.revision||xe.day!==V()},L=()=>{let J=Fr(x(),null),he={};if(J&&typeof J=="object"&&!Array.isArray(J))for(let[xe,De]of Object.entries(J))De&&Number.isFinite(De.r)&&typeof De.d=="string"&&(he[xe]={revision:De.r,day:De.d});else if(J===null&&Fr(cm,null)===null){let xe=Fr(bk,[]);if(Array.isArray(xe))for(let De of xe)typeof De=="string"&&(he[De]={revision:0,day:""});p=he,U(),Br(cm,JSON.stringify(d));return}p=he},U=()=>{if(!d)return;let J=Object.entries(p).slice(-xk);Br(x(),JSON.stringify(Object.fromEntries(J.map(([he,xe])=>[he,{r:xe.revision,d:xe.day}]))))},N=async()=>{if(d)return;let J=m,he;try{he=await Q().authStatus?.()}catch{}if(J!==m)return;l||(l=he?.cloudUrl??"");let xe=he?.accountId||he?.username;if(!(!he?.cloudUrl||!xe||d)){if(d=`${he.cloudUrl}|${xe}`,L(),!s){let De=Fr(T(),null);De&&typeof De=="object"&&Array.isArray(De.events)&&(s=De,i="ready",u=!1)}r()}},oe=()=>{if(f&&(clearTimeout(f),f=null),!s)return;let J=_k(s.events,D());J!==null&&(f=setTimeout(()=>{f=null,Y()},Math.max(wk,Math.min(J-D()+500,6*nr))))},_=()=>{Br(um,String(Date.now()))},C=J=>{J&&Array.isArray(J.events)&&(s=J,i="ready")},P=J=>w(J.code&&Tk[J.code]||"events.err.failed"),G=0,Y=async J=>{J!==void 0&&(v=J||void 0),b=Date.now();let he=++G;if(await N(),he!==G)return;let xe=await H(v?`/events/feed?preview=${encodeURIComponent(v)}`:"/events/feed");he===G&&(xe.ok?(C(xe.data),s===xe.data&&(u=!0,d&&!v&&Br(T(),JSON.stringify(xe.data)))):Un(xe)||xe.status===401?(s=null,i="signedOut",u=!1,d&&Ak(T())):xe.status===404?(s=null,i="unavailable",u=!1):s||(i="error"),oe(),r())},q=async J=>{if(!g){g=!0,h=null,r(),G++;try{await J()}finally{g=!1,G++,_(),r()}}},te=J=>q(async()=>{let he=await H(`/events/${encodeURIComponent(J.id)}/checkin`,{method:"POST",body:{}});if(!he.ok){h={ok:!1,text:P(he),backpack:!1};return}C(he.data.feed);let xe=Ur(he.data.reward,a);h={ok:!0,text:xe?w("events.toast.checkin",{reward:xe}):w("events.checkin.done"),backpack:!!xe}}),pe=(J,he)=>q(async()=>{let xe=await H(`/events/${encodeURIComponent(J.id)}/tasks/claim`,{method:"POST",body:{ids:he}});if(!xe.ok){h={ok:!1,text:P(xe),backpack:!1};return}C(xe.data.feed);let De=xe.data.results.filter(_e=>_e.ok&&!_e.alreadyClaimed),be=xe.data.results.filter(_e=>!_e.ok).length,rt=De.flatMap(_e=>_e.reward??[]);be?h={ok:!1,text:w("events.toast.partial",{n:De.length,m:be}),backpack:!1}:De.length&&(h={ok:!0,text:w("events.toast.claimed",{reward:Ur(rt,a)}),backpack:rt.length>0})}),qe=J=>{let he=(s?.events??[]).find(ct=>ct.id===J);if(!he||!A(he))return;let xe=ni(he).revision,{[J]:De,...be}=p;p={...be,[J]:kl(De,{revision:xe,day:V()})},U(),_();let rt=m,_e=d;H(`/events/${encodeURIComponent(J)}/seen`,{method:"POST",body:{revision:xe}}).then(ct=>{if(rt!==m||_e!==d||!ct.ok||!ct.data?.seen)return;let lt=kl(p[J],ct.data.seen);lt&&(lt.revision!==p[J]?.revision||lt.day!==p[J]?.day)&&(p={...p,[J]:lt},U(),r())})},ge=()=>{let J=k(),he=[...J.active,...J.notices],xe=[...he,...J.upcoming,...J.ended],De=Fr(dm,null);return xe.find(be=>be.id===De)??he.find(j)??xe[0]??null},Ie=e.subscribeLocale?.(J=>{a=Oe(J),r()}),Ze=J=>{d&&J.key===x()&&(L(),r()),J.key===um&&Y()},ve=()=>{Date.now()-b>kk&&Y()};window.addEventListener("storage",Ze),window.addEventListener("focus",ve);let Qe=Q().onAuthChanged?.(()=>{m++,G++,l="",d="",p={},s=null,u=!1,i="loading",Y()}),Ct=t.fetchOnStart?setTimeout(()=>{Y()},3e3):null;return N(),{locale:()=>a,t:w,status:()=>i,feed:()=>s,origin:()=>l,groups:k,selected:()=>(s?.events??[]).find(J=>J.id===c)??ge(),select:J=>{c=J,h=null,Br(dm,JSON.stringify(J)),qe(J),r()},dotFor:j,needsSeen:A,fresh:()=>u,hasDot:()=>(s?.events??[]).some(j),active:()=>{let J=k();return i==="ready"&&J.active.length+J.notices.length>0},busy:()=>g,notice:()=>h,clearNotice:()=>{h=null,r()},refresh:Y,checkin:te,claim:pe,open:J=>{let he=J?{id:J}:void 0;e.openFloatingPanel?e.openFloatingPanel(ti,{title:w("events.title"),params:he,width:1040,height:720,minWidth:720,minHeight:520}):e.openView?.(ti,{location:"main",params:he})},subscribe:J=>(o.add(J),()=>{o.delete(J)}),dispose:()=>{Ct&&clearTimeout(Ct),f&&clearTimeout(f),Ie?.(),Qe?.(),window.removeEventListener("storage",Ze),window.removeEventListener("focus",ve),o.clear()}}}var bm=`
1632
1637
  .ev-root { --ev-sk: color-mix(in srgb, var(--text) 8%, var(--bg)); position: relative; container-type: inline-size; width: 100%; height: 100%; min-height: 0; background: var(--bg); color: var(--text); font-size: var(--ui-font-body); line-height: var(--ui-line-body); }
1633
1638
  .ev-root *, .ev-root *::before, .ev-root *::after { box-sizing: border-box; }
1634
1639
  .ev-root button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
@@ -1767,7 +1772,7 @@ Content-Type: ${r}\r
1767
1772
  .ev-rail { padding: 8px; }
1768
1773
  }
1769
1774
  .ev-root .ev-phone-back { position: absolute; z-index: 2; top: 12px; left: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-card); box-shadow: var(--card-shadow); color: var(--text-muted); }
1770
- `;var Jx={checkin:"checkin",tasks:"tasks",game:"gamepad",notice:"megaphone"},Xx=560;function er({ev:e,e:t}){let[o,r]=C(!1),a=Kf(t.artUrl,e.origin());return W(()=>r(!1),[a]),!a||o?n("div",{class:"ev-art ev-art-empty"}):n("img",{class:"ev-art",src:a,alt:"",style:{objectPosition:`${t.focus.x*100}% ${t.focus.y*100}%`},onError:()=>r(!0)})}function Or({ev:e,e:t}){let o=e.locale(),r=vl(t,e.feed()?.now??new Date().toISOString(),o);return n("div",{class:"ev-hd",children:[n("span",{class:"ev-kind",children:[n(U,{name:Jx[t.kind],size:13}),e.t(`events.kind.${t.kind}`)]}),n("h3",{children:Nn(t.title,o)}),r.long&&n("span",{class:`ev-time${r.warn?" warn":""}`,children:[n(U,{name:"clock",size:13}),r.long]}),n("p",{class:"ev-summary",children:Nn(t.summary,o)})]})}function wl({ev:e,items:t}){return t.length?n("div",{class:"ev-tiles","aria-label":e.t("events.rewards"),children:t.map((o,r)=>{let a=Nn(o.label,e.locale())||o.kind,i=a.match(/^(.+?)\s*(×\d+)$/);return n("div",{class:"ev-tile",children:[n(U,{name:"gift",size:18}),i?n(M,{children:[n("b",{children:i[2]}),n("span",{children:i[1]})]}):n("b",{children:a})]},r)})}):null}function Kx({ev:e,e:t}){let o=t.checkin,r=e.locale();return n("div",{class:`ev-days${o.days>7?" two":""}`,children:Array.from({length:o.days},(a,i)=>{let s=i<o.signed,l=i===o.signed&&!o.signedToday&&t.state==="live";return n("div",{class:`ev-day${s?" done":""}${l?" today":""}${i===o.days-1?" big":""}`,children:[n("small",{children:l?e.t("events.checkin.today"):e.t("events.checkin.day",{n:i+1})}),n("span",{class:"ev-day-ic",children:n(U,{name:s?"check":"gift",size:15})}),n("b",{children:Nr(o.rewards[i],r)})]},i)})})}function Yx({ev:e,e:t}){let o=t.checkin,r=o.signed>=o.days,a=t.state==="live"&&!o.signedToday&&!r;return n("section",{class:`ev-stage ev-checkin${o.days>7?" two":""}`,children:[n("div",{class:"ev-pic",children:[n(er,{ev:e,e:t}),n("div",{class:"ev-scrim hi"})]}),n("div",{class:"ev-flow",children:[n("div",{class:"ev-row",children:[n(Or,{ev:e,e:t}),n("div",{class:"ev-act",children:[n("small",{children:e.t("events.checkin.signed",{n:o.signed,total:o.days})}),n("button",{type:"button",class:"ev-btn pri",disabled:!a||e.busy(),onClick:()=>void e.checkin(t),children:r?e.t("events.checkin.finished"):o.signedToday?e.t("events.checkin.done"):e.t("events.checkin.do")})]})]}),n(Kx,{ev:e,e:t})]})]})}function Zx({ev:e,ctx:t,view:o,e:r,x:a}){let i=e.locale(),s=a.progress>=a.goal,l=r.state==="live",c=Math.round(Math.min(a.progress,a.goal)/a.goal*100),d=()=>{a.jump&&t.app?.openLink?.(a.jump).then(p=>{p&&o?.close?.()})};return n("div",{class:`ev-task${a.claimed||!s&&!l?" muted":""}`,children:[n("div",{class:"ev-task-m",children:[n("b",{children:Nn(a.title,i)}),n("em",{children:Nn(a.desc,i)}),!a.claimed&&c>0&&c<100&&n("div",{class:"ev-bar",children:n("i",{style:{width:`${c}%`}})})]}),n("div",{class:"ev-task-e",children:[a.reward?.length?n("span",{class:"ev-reward",children:Nr(a.reward,i)}):null,n("small",{children:`${Qf(a.progress)}/${Qf(a.goal)}`})]}),a.claimed?n("span",{class:"ev-got",title:e.t("events.tasks.claim"),children:n(U,{name:"check",size:15})}):s?n("button",{type:"button",class:"ev-btn pri sm",disabled:e.busy(),onClick:()=>void e.claim(r,[a.id]),children:e.t("events.tasks.claim")}):l&&a.jump&&t.app?.openLink?n("button",{type:"button",class:"ev-btn sm",onClick:d,children:e.t("events.tasks.go")}):n("span",{class:"ev-got"})]})}var Qf=e=>e>=1e3?`${Math.round(e/100)/10}k`:String(e);function Qx(e){let{ev:t,e:o}=e,r=o.tasks??[],a=r.filter(s=>s.progress>=s.goal&&!s.claimed),i=r.filter(s=>s.claimed).length;return n("section",{class:"ev-stage",children:[n("div",{class:"ev-pic",children:[n(er,{ev:t,e:o}),n("div",{class:"ev-scrim"})]}),n("div",{class:"ev-left",children:[n(Or,{ev:t,e:o}),n(wl,{ev:t,items:o.rewards})]}),n("div",{class:"ev-card",children:[n("div",{class:"ev-card-h",children:[n("b",{children:t.t("events.tasks.progress")}),n("small",{children:[i,"/",r.length]}),n("div",{class:"ev-bar",children:n("i",{style:{width:`${r.length?Math.round(i/r.length*100):0}%`}})})]}),n("div",{class:"ev-card-b",children:r.map(s=>n(Zx,{...e,x:s},s.id))}),a.length>1&&n("div",{class:"ev-card-f",children:n("button",{type:"button",class:"ev-btn pri wide",disabled:e.ev.busy(),onClick:()=>void t.claim(o,a.map(s=>s.id)),children:t.t("events.tasks.claimAll",{n:a.length})})})]})]})}function ek(e){let[t,o]=C(!0);return W(()=>{let r=!0,a=window.amadeus?.listPlugins;return a?.().then(i=>{r&&o(i.some(s=>s.id===e))}).catch(()=>{}),()=>{r=!1}},[e]),t}function tk({ev:e,ctx:t,view:o,e:r}){let a=r.game,i=ek(a.pluginId),s=()=>{t.app?.openLink?.(`forsion://space/${a.spaceId}`).then(c=>{c&&o?.close?.()})},l=()=>{let c=ee().openFloatingPanel;c?c({id:"market",title:e.t("events.title"),builtin:"market",params:{q:a.marketSlug}}):t.app?.runCommand?.("open-market")};return n("section",{class:"ev-stage",children:[n("div",{class:"ev-pic",children:[n(er,{ev:e,e:r}),n("div",{class:"ev-scrim"})]}),n("div",{class:"ev-left",children:[n(Or,{ev:e,e:r}),n(wl,{ev:e,items:r.rewards})]}),n("div",{class:"ev-card narrow",children:[n("div",{class:"ev-card-h solo",children:n("b",{children:e.t("events.game.board")})}),n("div",{class:"ev-card-b",children:[a.leaderboard.length===0&&n("p",{class:"ev-empty-line",children:e.t("events.game.empty")}),a.leaderboard.map(c=>{let d=c.rank===a.me?.rank;return n("div",{class:`ev-rank${d?" me":""}`,children:[n("span",{children:c.rank}),n("em",{children:d?e.t("events.game.me"):c.name||e.t("events.game.anon")}),n("b",{children:c.score})]},c.rank)}),a.me&&!a.leaderboard.some(c=>c.rank===a.me?.rank)&&n("div",{class:"ev-rank me",children:[n("span",{children:a.me.rank}),n("em",{children:e.t("events.game.me")}),n("b",{children:a.me.score})]})]}),r.state==="live"&&n("div",{class:"ev-card-f",children:i?n("button",{type:"button",class:"ev-btn pri lg",onClick:s,children:[n(U,{name:"play",size:15}),e.t("events.game.enter")]}):n("button",{type:"button",class:"ev-btn lg",onClick:l,children:e.t("events.game.install")})})]})]})}function nk({ev:e,e:t}){let o=oe(null),r=Nn(t.body,e.locale());return W(()=>{let a=o.current;if(!a||!Ui())return;let i=ua(a),s=document.createElement("style");s.textContent=ca;let l=document.createElement("div");return l.className="doc",l.appendChild($i(r,"markdown")),i.replaceChildren(s,l),i.addEventListener("click",$n),i.addEventListener("auxclick",$n),()=>{i.removeEventListener("click",$n),i.removeEventListener("auxclick",$n)}},[r]),n("div",{ref:o})}function ok({ev:e,ctx:t,view:o,e:r}){let a=()=>{let i=r.cta?.url;i&&(i.startsWith("forsion://")?t.app?.openLink?.(i).then(s=>{s&&o?.close?.()}):ee().openExternal?.(i))};return n("section",{class:"ev-stage",children:[n("div",{class:"ev-pic",children:[n(er,{ev:e,e:r}),n("div",{class:"ev-scrim"})]}),n("div",{class:"ev-left short",children:n(Or,{ev:e,e:r})}),n("div",{class:"ev-card wide",children:[n("div",{class:"ev-card-b",children:n(nk,{ev:e,e:r})}),r.cta&&n("div",{class:"ev-card-f",children:n("button",{type:"button",class:"ev-btn wide",onClick:a,children:Nn(r.cta.label,e.locale())||e.t("events.notice.more")})})]})]})}function xl({ev:e,e:t}){return n("section",{class:"ev-stage ev-plain",children:[n("div",{class:"ev-pic",children:[n(er,{ev:e,e:t}),n("div",{class:"ev-scrim hi"})]}),n("div",{class:"ev-left wide",children:[n(Or,{ev:e,e:t}),n(wl,{ev:e,items:t.rewards})]})]})}function rk(e){let{e:t}=e;return t.state==="upcoming"?n(xl,{...e}):t.kind==="checkin"&&t.checkin?t.state==="live"?n(Yx,{...e}):n(xl,{...e}):t.kind==="tasks"?n(Qx,{...e}):t.kind==="game"&&t.game?n(tk,{...e}):t.kind==="notice"?n(ok,{...e}):n(xl,{...e})}function ak({ev:e,e:t,on:o,select:r}){let a=e.locale(),i=vl(t,e.feed()?.now??new Date().toISOString(),a),s=e.dotFor(t);return n("button",{type:"button",class:`ev-ri${o?" on":""}`,"aria-current":o?"true":void 0,onClick:r,children:[n("span",{class:"ev-th",children:n(er,{ev:e,e:t})}),n("span",{class:"ev-rt",children:[n("b",{children:Nn(t.title,a)}),n("em",{class:i.warn?"warn":"",children:i.short})]}),s&&n("i",{class:"ev-dot","aria-label":e.t("events.dot")})]})}function ik({ev:e,view:t,pane:o,setPane:r,select:a,current:i}){let s=e.groups(),l=d=>n(ak,{ev:e,e:d,on:i?.id===d.id,select:()=>a(d)},d.id),c=(d,p)=>p.length?n("div",{class:"ev-group",children:[n("div",{class:"ev-gh",children:e.t(d)}),p.map(l)]}):null;return n("aside",{class:"ev-rail",children:[t?.surface==="floating"&&n("button",{type:"button",class:"ev-back",onClick:()=>t.close?.(),children:[n(U,{name:"arrowLeft",size:15}),e.t("events.back")]}),n("div",{class:"ev-brand",children:[n("span",{class:"ev-bi",children:n(U,{name:"gift",size:16})}),n("div",{children:[n("strong",{children:e.t("events.title")}),n("small",{children:e.t("events.count",{n:s.active.length})})]})]}),o==="list"?n("div",{class:"ev-list",children:[c("events.group.active",s.active),c("events.group.notice",s.notices),c("events.group.upcoming",s.upcoming)]}):n("div",{class:"ev-list",children:n("div",{class:"ev-group",children:[n("div",{class:"ev-gh",children:e.t("events.ended")}),s.ended.map(l),s.ended.length===0&&n("p",{class:"ev-empty-line",children:e.t("events.endedEmpty")})]})}),n("button",{type:"button",class:"ev-foot",onClick:()=>r(o==="list"?"ended":"list"),children:o==="list"?n(M,{children:[e.t("events.ended"),n("span",{children:s.ended.length}),n(U,{name:"chevron",size:14})]}):n(M,{children:[n(U,{name:"back",size:14}),e.t("events.list")]})})]})}function sk({ev:e,ctx:t}){let o=e.notice();if(!o)return null;let r=ee().openFloatingPanel,a=()=>{r?r({id:"settings",title:e.t("events.title"),builtin:"settings",params:{tab:fn("backpack")}}):t.app?.openSettings?.(fn("backpack"))};return n("div",{class:`ev-notice${o.ok?"":" bad"}`,role:"status",children:[n(U,{name:o.ok?"check":"alert",size:15}),n("span",{children:o.text}),o.backpack&&(r||t.app?.openSettings)&&n("button",{type:"button",onClick:a,children:e.t("events.toast.backpack")}),n("button",{type:"button",class:"ev-x","aria-label":"\xD7",onClick:()=>e.clearNotice(),children:n(U,{name:"x",size:14})})]})}function kl({ev:e,icon:t,text:o,action:r,run:a}){return n("div",{class:"ev-msg",children:[n(U,{name:t,size:20}),n("span",{children:o}),r&&n("button",{type:"button",class:"ev-btn pri",disabled:e.busy(),onClick:a,children:r})]})}function em(e){let{ev:t,view:o}=e,r=oe(null),[,a]=C(0),[i,s]=C(!1),[l,c]=C(!1),[d,p]=C("list");W(()=>t.subscribe(()=>a(v=>v+1)),[t]),W(()=>{let v=b=>{let x=typeof b?.id=="string"?b.id:"";t.refresh(b?.preview?x:"").then(()=>{x&&(t.select(x),c(!0))})};return v(o?.getParams?.()),o?.onParamsChanged?.(v)},[t,o]),W(()=>{let v=r.current;if(!v||typeof ResizeObserver>"u")return;let b=new ResizeObserver(()=>s(v.clientWidth<Xx));return b.observe(v),()=>b.disconnect()},[]);let u=t.status(),f=t.selected(),m=t.fresh();W(()=>{f&&u==="ready"&&m&&t.needsSeen(f)&&t.select(f.id)},[f?.id,u,m]);let g=v=>{t.select(v.id),c(!0)},h;if(u==="signedOut")h=n(kl,{ev:t,icon:"lock",text:t.t("events.login.title"),action:t.t("events.login.do"),run:()=>void ee().forsionLogin?.()});else if(u==="error"||u==="unavailable")h=n(kl,{ev:t,icon:"alert",text:t.t("events.error"),action:t.t("events.retry"),run:()=>void t.refresh()});else if(u==="loading")h=n("div",{class:"ev-loading"});else if(!f)h=n(kl,{ev:t,icon:"gift",text:t.t("events.empty")});else{let v=!i||!l,b=!i||l;h=n("div",{class:`ev-body${i?" phone":""}`,children:[v&&n(ik,{...e,pane:d,setPane:p,select:g,current:i?null:f}),b&&n("div",{class:"ev-main",children:[i&&n("button",{type:"button",class:"ev-phone-back","aria-label":t.t("events.list"),onClick:()=>c(!1),children:n(U,{name:"back",size:17})}),n(rk,{...e,e:f},f.id),n(sk,{...e})]})]})}return n("div",{ref:r,class:"ev-root",children:[n("style",{children:Zf}),h]})}var lk=()=>{let e=document.documentElement.dataset.window;return!e||e==="main"};function ck(e,t){let o=un(t.tangu);return!!e&&typeof e.registerView=="function"&&typeof o?.cloudFetch=="function"&&pn(o)&&(!o.mobile||!!o.extendMobile)&&(typeof e.openFloatingPanel=="function"||typeof e.openView=="function")}function tm(e,t=window){if(!ck(e,t))return null;let o=lk(),r=Yf(e,{fetchOnStart:o});e.registerView({id:Ka,title:r.t("events.title"),icon:"gift",mount:(l,c)=>(Oe(n(em,{ev:r,ctx:e,view:c}),l),()=>{Oe(null,l)})}),e.registerCommand?.({id:"events-open",title:()=>r.t("events.title"),keywords:"\u6D3B\u52A8 \u7B7E\u5230 \u4EFB\u52A1 \u9886\u5956 event events check-in quests",run:()=>r.open()});let a=e.app?.registerRibbonAction,i=o&&a?a({id:"events",icon:"gift",title:()=>r.t("events.title"),run:()=>r.open(),dot:{get:()=>r.hasDot(),subscribe:l=>r.subscribe(l),label:()=>r.t("events.dot")}}):null,s=r.dispose;return{...r,dispose:()=>{i?.(),s()}}}var dk=new TextEncoder,T_=new TextDecoder("utf-8",{ignoreBOM:!0}),nm=e=>dk.encode(e);function om(e){let t="";for(let o=0;o<e.length;o+=32768)t+=String.fromCharCode(...e.subarray(o,o+32768));return btoa(t)}function rm(e,t){try{let o=new URL(e);if(o.protocol!=="https:"&&o.protocol!=="http:")return null;let r=t.split(".")[1];if(!r)return null;let a=r.replace(/-/g,"+").replace(/_/g,"/"),i=Uint8Array.from(atob(a),c=>c.charCodeAt(0)),s=JSON.parse(new TextDecoder().decode(i)),l=s.userId??s.sub;return typeof l!="string"&&typeof l!="number"||!String(l).trim()?null:`${o.origin}${o.pathname.replace(/\/+$/,"")}::${String(l)}`}catch{return null}}var uk=50*1024*1024,pk=new Set(["mode","type","source","name","summary","githubRepoUrl","npmPackage","version","readme","description","tags","minAppVersion","maxAppVersion","platforms","capabilityReason"]);function fk(e){if(!e||typeof e!="object")return null;let t=e;if(t.id!==void 0&&(typeof t.id!="string"||!/^[a-zA-Z0-9_-]{1,128}$/.test(t.id))||!t.fields||typeof t.fields!="object"||Array.isArray(t.fields))return null;let o=new FormData,r=0;for(let[a,i]of Object.entries(t.fields)){if(!pk.has(a)||typeof i!="string"||(r+=i.length,r>25e4)||t.id&&!["mode","name","summary","version","readme","description","tags","minAppVersion","maxAppVersion","platforms","capabilityReason"].includes(a))return null;o.append(a,i)}if(t.zip!==void 0){if(!t.zip||typeof t.zip.name!="string"||!/\.zip$/i.test(t.zip.name)||!(t.zip.data instanceof Uint8Array)||!t.zip.data.byteLength||t.zip.data.byteLength>uk)return null;o.append("zip",new Blob([new Uint8Array(t.zip.data)],{type:"application/zip"}),t.zip.name.replace(/[\\/]/g,"_").slice(-255))}return{path:`${t.id?`/market/mine/${t.id}/update`:"/market/submit"}${t.dryRun===!0?"?dryRun=1":""}`,body:o}}function am(e){e.handle("cloud:marketSubmit",async(t,o)=>{if(!e.isTrustedSender(t))return{status:0,error:"untrusted"};let r=fk(o);if(!r)return{status:400,json:{error:"invalid_request"}};let a=await e.getCloud();if(!a.token)return{status:401,error:"not_signed_in"};let i=Wn(a.base,r.path);if(!i)return{status:0,error:"no_cloud_url"};try{let s=await qn(a,i,{method:"POST",body:r.body,redirect:"error",signal:AbortSignal.timeout(12e4)});return{status:s.status,json:await s.json().catch(()=>null)}}catch(s){return{status:0,error:String(s?.message||s)}}})}async function im(e){if(!e.token)return"";try{let t=await Ao(e,"POST","/api/auth/handoff",{},5e3);if(t.status===200&&typeof t.json?.code=="string"&&t.json.code)return`code=${encodeURIComponent(t.json.code)}`;if((t.status===404||t.status===405)&&!e.fetch)return`token=${encodeURIComponent(e.token)}`}catch{}return""}var mk=["membership","credits","storefront"],gk=["monthly","quarterly","yearly"],hk=/^[A-Za-z0-9_-]{1,64}$/;function sm(e){let t={status:0,error:"untrusted"},o={ok:!1,error:"untrusted"};e.handle("auth:openAccountCenter",async(a,i)=>{if(!e.isTrustedSender(a))return o;let s=await e.getCloud(),l=s.base;if(!l)return{ok:!1};let c=i&&/^[a-z0-9-]+$/i.test(i)?`#${i}`:"",d=await im(s),p=`${l}/account${d?`?${d}`:""}${c}`;return s.signal?.throwIfAborted(),await e.openExternal(p),{ok:!0}}),e.handle("auth:openPayCenter",async(a,i,s,l)=>{if(!e.isTrustedSender(a))return o;if(i!==void 0&&!mk.includes(i))return{ok:!1,error:"invalid_tab"};if(s!==void 0&&(typeof s!="string"||!hk.test(s)))return{ok:!1,error:"invalid_plan"};if(l!==void 0&&!gk.includes(l))return{ok:!1,error:"invalid_period"};let c=(i??"membership")==="membership"&&s?`&plan=${encodeURIComponent(s)}${l?`&period=${l}`:""}`:"",d=await e.getCloud(),p=d.base;if(!p)return{ok:!1};let u=await im(d),f=`${p}/pay?tab=${i??"membership"}${c}${u?`&${u}`:""}&redirect=${encodeURIComponent(`${p}/account`)}`;return d.signal?.throwIfAborted(),await e.openExternal(f),{ok:!0}}),e.handle("profile:publicOrigin",async a=>{if(!e.isTrustedSender(a))return o;let{base:i}=await e.getCloud();if(!i)return{ok:!1};try{let s=await fetch(`${i}/account`,{redirect:"manual",signal:AbortSignal.timeout(4e3)});s.body?.cancel().catch(()=>{});let l=s.status>=300&&s.status<400?s.headers.get("location"):null;return l&&/^https?:\/\//i.test(l)?{ok:!0,origin:new URL(l).origin}:{ok:!1}}catch{return{ok:!1}}});let r=()=>e.getCloud();e.handle("account:quota",async a=>{if(!e.isTrustedSender(a))return t;let i=await r();if(!i.token)return{status:401,json:null};try{return await Ao(i,"GET","/api/token-quota/my",void 0,15e3)}catch(s){return{status:0,json:{detail:String(s?.message||s)}}}}),e.handle("account:useResetCard",async(a,i)=>{if(!e.isTrustedSender(a))return t;let s=await r();if(!s.token)return{status:401,json:null};if(i!==void 0&&i!=="both")return{status:400,json:{error:"invalid_type",detail:`invalid reset card type: ${i}`}};let l=i??"both";try{return await Ao(s,"POST","/api/token-quota/reset-card/use",{type:l},15e3)}catch(c){return{status:0,json:{detail:String(c?.message||c)}}}}),e.handle("account:bgConvert",async(a,i)=>{if(!e.isTrustedSender(a))return t;let s=await r();if(!s.token)return{status:401,json:null};if(!Number.isInteger(i)||i<1||i>100)return{status:400,json:{error:"invalid_percent"}};try{return await Ao(s,"POST","/api/token-quota/background/convert",{percent:i},15e3)}catch(l){return{status:0,json:{detail:String(l?.message||l)}}}}),e.handle("account:pointsAutoDeduct",async(a,i)=>{if(!e.isTrustedSender(a))return t;let s=await r();if(!s.token)return{status:401,json:null};if(typeof i!="boolean")return{status:400,json:{error:"invalid_request"}};try{return await Ao(s,"POST","/api/token-quota/auto-deduct",{enabled:i},15e3)}catch(l){return{status:0,json:{detail:String(l?.message||l)}}}}),e.handle("account:bgAutoMain",async(a,i)=>{if(!e.isTrustedSender(a))return t;let s=await r();if(!s.token)return{status:401,json:null};if(typeof i!="boolean")return{status:400,json:{error:"invalid_request"}};try{return await Ao(s,"POST","/api/token-quota/background/auto-main",{enabled:i},15e3)}catch(l){return{status:0,json:{detail:String(l?.message||l)}}}}),e.handle("feedback:submit",async(a,i)=>{if(!e.isTrustedSender(a))return o;let s=await e.getCloud();if(!s.base||!s.token)return{ok:!1,error:"not-logged-in"};if(i?.expectedAccountId!==void 0){let p=i.expectedAccountId;if(typeof p!="string"||!p||rm(s.base,s.token)!==p)return{ok:!1,error:"account-changed"}}let l=(i?.description||"").trim();if(!l)return{ok:!1,error:"empty"};if(l.length>1e4)return{ok:!1,error:"description-too-long"};let c=[],d=!1;if(i?.sessionLogJson){let p=nm(i.sessionLogJson);if(p.length>5*1024*1024)return{ok:!1,error:"attachment-too-large"};c.push({filename:i.sessionLogName||"tangu-session.json",mime_type:"application/json",size:p.length,data_base64:om(p)})}try{let p=await qn(s,`${s.base}/api/feedback`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({description:l,attachments:c}),signal:AbortSignal.timeout(2e4)});if(!p.ok){let f=`HTTP ${p.status}`;try{f=(await p.json())?.detail||f}catch{}return{ok:!1,error:f}}return{ok:!0,id:(await p.json().catch(()=>({})))?.id??null,attachmentSkipped:d}}catch(p){return{ok:!1,error:p?.message||String(p)}}}),e.handle("cloud:fetch",async(a,i)=>{if(!e.isTrustedSender(a))return{status:0,error:"untrusted"};let s=i??{},l=typeof s.path=="string"?s.path:"",c=s.projectSource===void 0?null:s.projectSource;if(c!==null&&(typeof c!="string"||!/^[a-z0-9][a-z0-9-]{0,63}$/.test(c)))return{status:0,error:"bad_project_source"};let d=Math.min(12e4,Math.max(1e3,Number(s.timeoutMs)||15e3)),p=typeof s.method=="string"?s.method.toUpperCase():"GET";if(!/^(GET|POST|PUT|PATCH|DELETE)$/.test(p))return{status:0,error:"bad_method"};if(!l.startsWith("/"))return{status:0,error:"bad_path"};let u=await e.getCloud();if(!String(u.base||""))return{status:0,error:"no_cloud_url"};let f=Wn(u.base,l);if(!f)return{status:0,error:"bad_path"};if(!u.token)return{status:401,error:"not_signed_in"};let m=s.body!==void 0&&p!=="GET"&&p!=="DELETE",g=new AbortController,h=setTimeout(()=>g.abort(),d);try{let v=await qn(u,f,{method:p,headers:{...m?{"Content-Type":"application/json"}:{},...c?{"X-Project-Source":c}:{}},body:m?JSON.stringify(s.body):void 0,signal:g.signal});return{status:v.status,json:await v.json().catch(()=>null)}}catch(v){return{status:0,error:String(v?.message||v)}}finally{clearTimeout(h)}}),am(e)}var zl={sender:"web"},bk=new Set(["auth:openAccountCenter","auth:openPayCenter"]),lm=(e,t)=>new URL(typeof e=="string"&&e?e:t.location.origin,t.location.href).origin;function vk(e,t=window){let o=new Map,r=!!(t.tangu?.mobile&&t.tangu.extendMobile),a=0,i=!1,s=new AbortController,l=g=>{if(i||g!==a)throw new Error("account_changed")},c=[],d={async getCloud(){let g=a,h=s.signal,v=await e.status().catch(()=>null);return l(g),{base:lm(v?.cloudUrl,t),token:v?.loggedIn?"session":"",signal:h,fetch:async(b,x)=>{l(g);let w=await e.request(b,{...x,signal:x.signal?AbortSignal.any([x.signal,h]):h});return l(g),w}}},handle:(g,h)=>{o.set(g,h)},async openExternal(g){if(r){if(!t.tangu?.openExternal)throw new Error("no_external_browser");await t.tangu.openExternal(g);return}let h=c.shift();h&&!h.closed?h.location.replace(g):t.open(g,"_blank","noopener,noreferrer")},isTrustedSender:()=>!0,log:g=>console.info("[forsion-extend]",g)};sm(d);let p=ff(d,t,{...r?{saveDownload:async(g,h)=>{if(!e.saveDownload)throw new Error("download_unavailable");let v=await e.saveDownload(g,h);if(!v.ok)throw new Error(v.error||"download_failed")},openExternal:g=>d.openExternal(g)}:{}}),u=t.tangu?.onAuthChanged?.(()=>{a++,s.abort(),s=new AbortController,p.reset();for(let g of c.splice(0))g.close()}),f=async(g,...h)=>{let v=o.get(g);if(!v)throw new Error(`No handler registered for '${g}'`);if(g==="penzor:transfers")return v(zl,...h);let b=a;if(i)return{ok:!1,error:"disposed"};let x=S=>b===a&&!i?S:{ok:!1,error:"account_changed"};if(!bk.has(g)||r)return x(await v(zl,...h));let w=t.open("","_blank");w&&(w.opener=null,c.push(w));try{return x(await v(zl,...h))}finally{let S=w?c.indexOf(w):-1;S>=0&&(c.splice(S,1),w.close())}},m=t.tangu?.authStatus;return{...m?{authStatus:async()=>{let g=await m();return{...g,cloudUrl:g?.cloudUrl?lm(g.cloudUrl,t):g?.cloudUrl}}}:{},cloudInvoke:f,cloudFetch:g=>f("cloud:fetch",g),openAccountCenter:r&&t.tangu?.openAccountCenter?g=>t.tangu.openAccountCenter(g):g=>f("auth:openAccountCenter",g),openExternal:async g=>{/^https?:\/\//i.test(g)&&(r?await d.openExternal(g):t.open(g,"_blank","noopener,noreferrer"))},dispose(){i=!0,a++,s.abort(),u?.();for(let g of c.splice(0))g.close();p.dispose()}}}function cm(e,t=window){let o=t.tangu;if(!zn(o)||typeof e?.account?.request!="function"||typeof e.account.status!="function")return null;let{dispose:r,...a}=vk(e.account,t);nd(a);let i=e.app,s=!1;try{s=typeof i?.provideFeedbackChannel=="function"&&i.provideFeedbackChannel(yk(a.cloudInvoke))===!0}catch{}return()=>{if(s)try{i.provideFeedbackChannel(null)}catch{}r()}}function yk(e){return async t=>{try{let o=await e("feedback:submit",t);return!o||typeof o!="object"?{ok:!1,error:"unavailable"}:o.error==="account_changed"||o.error==="disposed"?{ok:!1,error:"account-changed"}:o}catch(o){let r=String(o?.message||o);return{ok:!1,error:r==="account_changed"?"account-changed":r}}}}function xk(e=q){let t=!0,o=async(a,i="GET",s)=>{if(!t)throw new Error("Inbox account changed");let l=await e(a,{method:i,...s===void 0?{}:{body:s}});if(!t)throw new Error("Inbox account changed");if(!l.ok)throw l.status===401?Object.assign(new Error("Sign in to read official messages"),{code:"not_signed_in"}):Object.assign(new Error(l.detail||l.transport||"Cloud inbox unavailable"),{code:l.code});return l.data},r=a=>{if(!/^cloud:[0-9a-zA-Z-]{1,64}$/.test(a))throw new Error("Invalid cloud message id");return encodeURIComponent(a.slice(6))};return{retire(){t=!1},async list(a){let i=[],s=null,l=new Set;do{let c;try{c=await o(`/brain/inbox/messages?filter=${a}${s?`&before=${encodeURIComponent(s)}`:""}`)}catch(d){if(d?.code==="not_signed_in")return[];throw d}if(!Array.isArray(c.messages))throw new Error("Invalid cloud inbox response");if(i.push(...c.messages),s=c.nextCursor??null,s&&l.has(s))throw new Error("Repeated cloud inbox cursor");s&&l.add(s)}while(s);return i},async unreadCount(){try{return await o("/brain/inbox/messages/unread-count")}catch(a){if(a?.code==="not_signed_in")return{count:0,latestId:null,revision:"signed-out"};throw a}},patch:(a,i)=>o(`/brain/inbox/messages/${r(a)}`,"PATCH",i),async importLegacy(a){let i=await ee().authStatus?.();if(!(!t||!i?.loggedIn||i.tokenValid===!1||!i.accountId)){try{let s="forsion.inbox.legacyOwner",l=localStorage.getItem(s);if(l&&l!==i.accountId)return;l||localStorage.setItem(s,i.accountId)}catch{return}for(let s=0;s<a.length;s+=200)await o("/brain/inbox/messages/import","POST",{messages:a.slice(s,s+200).map(l=>({id:l.origin_broadcast_id,read:!!l.read_at,archived:!!l.archived_at}))})}},async readAll(){try{return await o("/brain/inbox/messages/read-all","POST",{})}catch(a){if(a?.code==="not_signed_in")return{ok:!0};throw a}},remove:a=>o(`/brain/inbox/messages/${r(a)}`,"DELETE"),async claim(a,i){let s=await o(`/brain/inbox/broadcasts/${r(a)}/claim`,"POST",{client:i});return{ok:s.claimed===!0,alreadyClaimed:s.alreadyClaimed===!0}}}}function dm(e){if(typeof e?.app?.provideInboxChannel!="function"||!ee().cloudFetch)return;let t,o=()=>{t?.retire(),t=xk(),e.app.provideInboxChannel(t)};o();let r=ee().onAuthChanged?.(o);return()=>{r?.(),t?.retire(),e.app.provideInboxChannel(null)}}var oo=e=>typeof e=="string"&&e.trim()?e.trim():null,Eo=e=>(oo(e)||"").replace(/^v(?=\d)/i,"");function kk(e,t){let o=i=>{let s=Eo(i).split("+")[0],l=s.indexOf("-");return{core:(l<0?s:s.slice(0,l)).split(".").map(d=>/^\d+$/.test(d)?Number(d):NaN),pre:l<0?[]:s.slice(l+1).split(".")}};if(!Eo(e)||!Eo(t))return null;let r=o(e),a=o(t);if(r.core.some(i=>!Number.isFinite(i))||a.core.some(i=>!Number.isFinite(i)))return null;for(let i=0;i<Math.max(r.core.length,a.core.length);i++){let s=(r.core[i]||0)-(a.core[i]||0);if(s)return s>0?1:-1}if(!r.pre.length||!a.pre.length)return r.pre.length===a.pre.length?0:r.pre.length?-1:1;for(let i=0;i<Math.max(r.pre.length,a.pre.length);i++){let s=r.pre[i],l=a.pre[i];if(s===void 0||l===void 0)return s===void 0?-1:1;if(s===l)continue;let c=/^\d+$/.test(s),d=/^\d+$/.test(l);return c&&d?Number(s)>Number(l)?1:-1:c!==d?c?-1:1:s>l?1:-1}return 0}var wk=2*6e4,zk=(e,t)=>{let o=Date.parse(String(e??"")),r=Date.parse(String(t??""));return Number.isFinite(o)&&Number.isFinite(r)&&o-r>wk};function um(e){let t=e;if(typeof e=="string")try{t=JSON.parse(e)}catch{return null}return!t||typeof t!="object"||typeof t.itemId!="string"||typeof t.name!="string"?null:{itemId:t.itemId,name:t.name,type:oo(t.type)||void 0,source:oo(t.source)||void 0,mode:t.mode==="info"?"info":"package",from:oo(t.from),to:oo(t.to),tag:oo(t.tag),fields:Array.isArray(t.fields)?t.fields.filter(o=>typeof o=="string"):void 0,listed:t.listed===!0,submittedAt:oo(t.submittedAt)||void 0}}function pm(e,t){let o={status:"review",note:null,storeVersion:e.from,listed:!!e.listed};if(!t)return o;let r=e.mode==="info",a=t.status==="approved",i=oo(t.version)??e.from,s=p=>!!p&&(r?p.kind==="info":p.kind!=="info"&&Eo(p.version)===Eo(e.to)),l=s(t.pendingUpdate)&&!zk(t.pendingUpdate?.submittedAt,e.submittedAt),c=s(t.rejectedUpdate)&&!t.pendingUpdate,d=(p,u=null)=>({status:p,note:u&&u.trim()?u.trim():null,storeVersion:i,listed:a});if(!a)return t.status==="rejected"?d("rejected",t.reviewNote||null):d("review");if(e.listed===!1)return d("approved");if(l)return d("review");if(c)return d("rejected",t.rejectedUpdate?.note||null);if(!r){let p=kk(t.version,e.to);return p!==null&&p>=0||(t.versions||[]).some(u=>Eo(u.version)===Eo(e.to))?d("approved"):d("rejected")}return d("approved")}var Sk="store_submit_update",Ck=`
1775
+ `;var Ek={checkin:"checkin",tasks:"tasks",game:"gamepad",notice:"megaphone"},Pk=560;function or({ev:e,e:t}){let[o,r]=S(!1),a=gm(t.artUrl,e.origin());return $(()=>r(!1),[a]),!a||o?n("div",{class:"ev-art ev-art-empty"}):n("img",{class:"ev-art",src:a,alt:"",style:{objectPosition:`${t.focus.x*100}% ${t.focus.y*100}%`},onError:()=>r(!0)})}function $r({ev:e,e:t}){let o=e.locale(),r=wl(t,e.feed()?.now??new Date().toISOString(),o);return n("div",{class:"ev-hd",children:[n("span",{class:"ev-kind",children:[n(B,{name:Ek[t.kind],size:13}),e.t(`events.kind.${t.kind}`)]}),n("h3",{children:On(t.title,o)}),r.long&&n("span",{class:`ev-time${r.warn?" warn":""}`,children:[n(B,{name:"clock",size:13}),r.long]}),n("p",{class:"ev-summary",children:On(t.summary,o)})]})}function _l({ev:e,items:t}){return t.length?n("div",{class:"ev-tiles","aria-label":e.t("events.rewards"),children:t.map((o,r)=>{let a=On(o.label,e.locale())||o.kind,i=a.match(/^(.+?)\s*(×\d+)$/);return n("div",{class:"ev-tile",children:[n(B,{name:"gift",size:18}),i?n(I,{children:[n("b",{children:i[2]}),n("span",{children:i[1]})]}):n("b",{children:a})]},r)})}):null}function Rk({ev:e,e:t}){let o=t.checkin,r=e.locale();return n("div",{class:`ev-days${o.days>7?" two":""}`,children:Array.from({length:o.days},(a,i)=>{let s=i<o.signed,l=i===o.signed&&!o.signedToday&&t.state==="live";return n("div",{class:`ev-day${s?" done":""}${l?" today":""}${i===o.days-1?" big":""}`,children:[n("small",{children:l?e.t("events.checkin.today"):e.t("events.checkin.day",{n:i+1})}),n("span",{class:"ev-day-ic",children:n(B,{name:s?"check":"gift",size:15})}),n("b",{children:Ur(o.rewards[i],r)})]},i)})})}function Ik({ev:e,e:t}){let o=t.checkin,r=o.signed>=o.days,a=t.state==="live"&&!o.signedToday&&!r;return n("section",{class:`ev-stage ev-checkin${o.days>7?" two":""}`,children:[n("div",{class:"ev-pic",children:[n(or,{ev:e,e:t}),n("div",{class:"ev-scrim hi"})]}),n("div",{class:"ev-flow",children:[n("div",{class:"ev-row",children:[n($r,{ev:e,e:t}),n("div",{class:"ev-act",children:[n("small",{children:e.t("events.checkin.signed",{n:o.signed,total:o.days})}),n("button",{type:"button",class:"ev-btn pri",disabled:!a||e.busy(),onClick:()=>void e.checkin(t),children:r?e.t("events.checkin.finished"):o.signedToday?e.t("events.checkin.done"):e.t("events.checkin.do")})]})]}),n(Rk,{ev:e,e:t})]})]})}function Mk({ev:e,ctx:t,view:o,e:r,x:a}){let i=e.locale(),s=a.progress>=a.goal,l=r.state==="live",c=Math.round(Math.min(a.progress,a.goal)/a.goal*100),d=()=>{a.jump&&t.app?.openLink?.(a.jump).then(p=>{p&&o?.close?.()})};return n("div",{class:`ev-task${a.claimed||!s&&!l?" muted":""}`,children:[n("div",{class:"ev-task-m",children:[n("b",{children:On(a.title,i)}),n("em",{children:On(a.desc,i)}),!a.claimed&&c>0&&c<100&&n("div",{class:"ev-bar",children:n("i",{style:{width:`${c}%`}})})]}),n("div",{class:"ev-task-e",children:[a.reward?.length?n("span",{class:"ev-reward",children:Ur(a.reward,i)}):null,n("small",{children:`${vm(a.progress)}/${vm(a.goal)}`})]}),a.claimed?n("span",{class:"ev-got",title:e.t("events.tasks.claim"),children:n(B,{name:"check",size:15})}):s?n("button",{type:"button",class:"ev-btn pri sm",disabled:e.busy(),onClick:()=>void e.claim(r,[a.id]),children:e.t("events.tasks.claim")}):l&&a.jump&&t.app?.openLink?n("button",{type:"button",class:"ev-btn sm",onClick:d,children:e.t("events.tasks.go")}):n("span",{class:"ev-got"})]})}var vm=e=>e>=1e3?`${Math.round(e/100)/10}k`:String(e);function Lk(e){let{ev:t,e:o}=e,r=o.tasks??[],a=r.filter(s=>s.progress>=s.goal&&!s.claimed),i=r.filter(s=>s.claimed).length;return n("section",{class:"ev-stage",children:[n("div",{class:"ev-pic",children:[n(or,{ev:t,e:o}),n("div",{class:"ev-scrim"})]}),n("div",{class:"ev-left",children:[n($r,{ev:t,e:o}),n(_l,{ev:t,items:o.rewards})]}),n("div",{class:"ev-card",children:[n("div",{class:"ev-card-h",children:[n("b",{children:t.t("events.tasks.progress")}),n("small",{children:[i,"/",r.length]}),n("div",{class:"ev-bar",children:n("i",{style:{width:`${r.length?Math.round(i/r.length*100):0}%`}})})]}),n("div",{class:"ev-card-b",children:r.map(s=>n(Mk,{...e,x:s},s.id))}),a.length>1&&n("div",{class:"ev-card-f",children:n("button",{type:"button",class:"ev-btn pri wide",disabled:e.ev.busy(),onClick:()=>void t.claim(o,a.map(s=>s.id)),children:t.t("events.tasks.claimAll",{n:a.length})})})]})]})}function Dk(e){let[t,o]=S(!0);return $(()=>{let r=!0,a=window.amadeus?.listPlugins;return a?.().then(i=>{r&&o(i.some(s=>s.id===e))}).catch(()=>{}),()=>{r=!1}},[e]),t}function Nk({ev:e,ctx:t,view:o,e:r}){let a=r.game,i=Dk(a.pluginId),s=()=>{t.app?.openLink?.(`forsion://space/${a.spaceId}`).then(c=>{c&&o?.close?.()})},l=()=>{let c=Q().openFloatingPanel;c?c({id:"market",title:e.t("events.title"),builtin:"market",params:{q:a.marketSlug}}):t.app?.runCommand?.("open-market")};return n("section",{class:"ev-stage",children:[n("div",{class:"ev-pic",children:[n(or,{ev:e,e:r}),n("div",{class:"ev-scrim"})]}),n("div",{class:"ev-left",children:[n($r,{ev:e,e:r}),n(_l,{ev:e,items:r.rewards})]}),n("div",{class:"ev-card narrow",children:[n("div",{class:"ev-card-h solo",children:n("b",{children:e.t("events.game.board")})}),n("div",{class:"ev-card-b",children:[a.leaderboard.length===0&&n("p",{class:"ev-empty-line",children:e.t("events.game.empty")}),a.leaderboard.map(c=>{let d=c.rank===a.me?.rank;return n("div",{class:`ev-rank${d?" me":""}`,children:[n("span",{children:c.rank}),n("em",{children:d?e.t("events.game.me"):c.name||e.t("events.game.anon")}),n("b",{children:c.score})]},c.rank)}),a.me&&!a.leaderboard.some(c=>c.rank===a.me?.rank)&&n("div",{class:"ev-rank me",children:[n("span",{children:a.me.rank}),n("em",{children:e.t("events.game.me")}),n("b",{children:a.me.score})]})]}),r.state==="live"&&n("div",{class:"ev-card-f",children:i?n("button",{type:"button",class:"ev-btn pri lg",onClick:s,children:[n(B,{name:"play",size:15}),e.t("events.game.enter")]}):n("button",{type:"button",class:"ev-btn lg",onClick:l,children:e.t("events.game.install")})})]})]})}function Ok({ev:e,e:t}){let o=K(null),r=On(t.body,e.locale());return $(()=>{let a=o.current;if(!a||!Gi())return;let i=ga(a),s=document.createElement("style");s.textContent=fa;let l=document.createElement("div");return l.className="doc",l.appendChild(ji(r,"markdown")),i.replaceChildren(s,l),i.addEventListener("click",Hn),i.addEventListener("auxclick",Hn),()=>{i.removeEventListener("click",Hn),i.removeEventListener("auxclick",Hn)}},[r]),n("div",{ref:o})}function Fk({ev:e,ctx:t,view:o,e:r}){let a=()=>{let i=r.cta?.url;i&&(i.startsWith("forsion://")?t.app?.openLink?.(i).then(s=>{s&&o?.close?.()}):Q().openExternal?.(i))};return n("section",{class:"ev-stage",children:[n("div",{class:"ev-pic",children:[n(or,{ev:e,e:r}),n("div",{class:"ev-scrim"})]}),n("div",{class:"ev-left short",children:n($r,{ev:e,e:r})}),n("div",{class:"ev-card wide",children:[n("div",{class:"ev-card-b",children:n(Ok,{ev:e,e:r})}),r.cta&&n("div",{class:"ev-card-f",children:n("button",{type:"button",class:"ev-btn wide",onClick:a,children:On(r.cta.label,e.locale())||e.t("events.notice.more")})})]})]})}function Sl({ev:e,e:t}){return n("section",{class:"ev-stage ev-plain",children:[n("div",{class:"ev-pic",children:[n(or,{ev:e,e:t}),n("div",{class:"ev-scrim hi"})]}),n("div",{class:"ev-left wide",children:[n($r,{ev:e,e:t}),n(_l,{ev:e,items:t.rewards})]})]})}function Bk(e){let{e:t}=e;return t.state==="upcoming"?n(Sl,{...e}):t.kind==="checkin"&&t.checkin?t.state==="live"?n(Ik,{...e}):n(Sl,{...e}):t.kind==="tasks"?n(Lk,{...e}):t.kind==="game"&&t.game?n(Nk,{...e}):t.kind==="notice"?n(Fk,{...e}):n(Sl,{...e})}function Uk({ev:e,e:t,on:o,select:r}){let a=e.locale(),i=wl(t,e.feed()?.now??new Date().toISOString(),a),s=e.dotFor(t);return n("button",{type:"button",class:`ev-ri${o?" on":""}`,"aria-current":o?"true":void 0,onClick:r,children:[n("span",{class:"ev-th",children:n(or,{ev:e,e:t})}),n("span",{class:"ev-rt",children:[n("b",{children:On(t.title,a)}),n("em",{class:i.warn?"warn":"",children:i.short})]}),s&&n("i",{class:"ev-dot","aria-label":e.t("events.dot")})]})}function $k({ev:e,view:t,pane:o,setPane:r,select:a,current:i}){let s=e.groups(),l=d=>n(Uk,{ev:e,e:d,on:i?.id===d.id,select:()=>a(d)},d.id),c=(d,p)=>p.length?n("div",{class:"ev-group",children:[n("div",{class:"ev-gh",children:e.t(d)}),p.map(l)]}):null;return n("aside",{class:"ev-rail",children:[t?.surface==="floating"&&n("button",{type:"button",class:"ev-back",onClick:()=>t.close?.(),children:[n(B,{name:"arrowLeft",size:15}),e.t("events.back")]}),n("div",{class:"ev-brand",children:[n("span",{class:"ev-bi",children:n(B,{name:"gift",size:16})}),n("div",{children:[n("strong",{children:e.t("events.title")}),n("small",{children:e.t("events.count",{n:s.active.length})})]})]}),o==="list"?n("div",{class:"ev-list",children:[c("events.group.active",s.active),c("events.group.notice",s.notices),c("events.group.upcoming",s.upcoming)]}):n("div",{class:"ev-list",children:n("div",{class:"ev-group",children:[n("div",{class:"ev-gh",children:e.t("events.ended")}),s.ended.map(l),s.ended.length===0&&n("p",{class:"ev-empty-line",children:e.t("events.endedEmpty")})]})}),n("button",{type:"button",class:"ev-foot",onClick:()=>r(o==="list"?"ended":"list"),children:o==="list"?n(I,{children:[e.t("events.ended"),n("span",{children:s.ended.length}),n(B,{name:"chevron",size:14})]}):n(I,{children:[n(B,{name:"back",size:14}),e.t("events.list")]})})]})}function Hk({ev:e,ctx:t}){let o=e.notice();if(!o)return null;let r=Q().openFloatingPanel,a=()=>{r?r({id:"settings",title:e.t("events.title"),builtin:"settings",params:{tab:mn("backpack")}}):t.app?.openSettings?.(mn("backpack"))};return n("div",{class:`ev-notice${o.ok?"":" bad"}`,role:"status",children:[n(B,{name:o.ok?"check":"alert",size:15}),n("span",{children:o.text}),o.backpack&&(r||t.app?.openSettings)&&n("button",{type:"button",onClick:a,children:e.t("events.toast.backpack")}),n("button",{type:"button",class:"ev-x","aria-label":"\xD7",onClick:()=>e.clearNotice(),children:n(B,{name:"x",size:14})})]})}function Cl({ev:e,icon:t,text:o,action:r,run:a}){return n("div",{class:"ev-msg",children:[n(B,{name:t,size:20}),n("span",{children:o}),r&&n("button",{type:"button",class:"ev-btn pri",disabled:e.busy(),onClick:a,children:r})]})}function ym(e){let{ev:t,view:o}=e,r=K(null),[,a]=S(0),[i,s]=S(!1),[l,c]=S(!1),[d,p]=S("list");$(()=>t.subscribe(()=>a(b=>b+1)),[t]),$(()=>{let b=v=>{let w=typeof v?.id=="string"?v.id:"";t.refresh(v?.preview?w:"").then(()=>{w&&(t.select(w),c(!0))})};return b(o?.getParams?.()),o?.onParamsChanged?.(b)},[t,o]),$(()=>{let b=r.current;if(!b||typeof ResizeObserver>"u")return;let v=new ResizeObserver(()=>s(b.clientWidth<Pk));return v.observe(b),()=>v.disconnect()},[]);let u=t.status(),m=t.selected(),f=t.fresh();$(()=>{m&&u==="ready"&&f&&t.needsSeen(m)&&t.select(m.id)},[m?.id,u,f]);let g=b=>{t.select(b.id),c(!0)},h;if(u==="signedOut")h=n(Cl,{ev:t,icon:"lock",text:t.t("events.login.title"),action:t.t("events.login.do"),run:()=>void Q().forsionLogin?.()});else if(u==="error"||u==="unavailable")h=n(Cl,{ev:t,icon:"alert",text:t.t("events.error"),action:t.t("events.retry"),run:()=>void t.refresh()});else if(u==="loading")h=n("div",{class:"ev-loading"});else if(!m)h=n(Cl,{ev:t,icon:"gift",text:t.t("events.empty")});else{let b=!i||!l,v=!i||l;h=n("div",{class:`ev-body${i?" phone":""}`,children:[b&&n($k,{...e,pane:d,setPane:p,select:g,current:i?null:m}),v&&n("div",{class:"ev-main",children:[i&&n("button",{type:"button",class:"ev-phone-back","aria-label":t.t("events.list"),onClick:()=>c(!1),children:n(B,{name:"back",size:17})}),n(Bk,{...e,e:m},m.id),n(Hk,{...e})]})]})}return n("div",{ref:r,class:"ev-root",children:[n("style",{children:bm}),h]})}var qk=()=>{let e=document.documentElement.dataset.window;return!e||e==="main"};function Wk(e,t){let o=un(t.tangu);return!!e&&typeof e.registerView=="function"&&typeof o?.cloudFetch=="function"&&pn(o)&&(!o.mobile||!!o.extendMobile)&&(typeof e.openFloatingPanel=="function"||typeof e.openView=="function")}function xm(e,t=window){if(!Wk(e,t))return null;let o=qk(),r=hm(e,{fetchOnStart:o});e.registerView({id:ti,title:r.t("events.title"),icon:"gift",mount:(l,c)=>(Fe(n(ym,{ev:r,ctx:e,view:c}),l),()=>{Fe(null,l)})}),e.registerCommand?.({id:"events-open",title:()=>r.t("events.title"),keywords:"\u6D3B\u52A8 \u7B7E\u5230 \u4EFB\u52A1 \u9886\u5956 event events check-in quests",run:()=>r.open()});let a=e.app?.registerRibbonAction,i=o&&a?a({id:"events",icon:"gift",title:()=>r.t("events.title"),run:()=>r.open(),dot:{get:()=>r.hasDot(),subscribe:l=>r.subscribe(l),label:()=>r.t("events.dot")}}):null,s=r.dispose;return{...r,dispose:()=>{i?.(),s()}}}var Vk=new TextEncoder,SA=new TextDecoder("utf-8",{ignoreBOM:!0}),km=e=>Vk.encode(e);function wm(e){let t="";for(let o=0;o<e.length;o+=32768)t+=String.fromCharCode(...e.subarray(o,o+32768));return btoa(t)}function zm(e,t){try{let o=new URL(e);if(o.protocol!=="https:"&&o.protocol!=="http:")return null;let r=t.split(".")[1];if(!r)return null;let a=r.replace(/-/g,"+").replace(/_/g,"/"),i=Uint8Array.from(atob(a),c=>c.charCodeAt(0)),s=JSON.parse(new TextDecoder().decode(i)),l=s.userId??s.sub;return typeof l!="string"&&typeof l!="number"||!String(l).trim()?null:`${o.origin}${o.pathname.replace(/\/+$/,"")}::${String(l)}`}catch{return null}}var jk=50*1024*1024,Gk=new Set(["mode","type","source","name","summary","githubRepoUrl","npmPackage","version","readme","description","tags","minAppVersion","maxAppVersion","platforms","capabilityReason"]);function Jk(e){if(!e||typeof e!="object")return null;let t=e;if(t.id!==void 0&&(typeof t.id!="string"||!/^[a-zA-Z0-9_-]{1,128}$/.test(t.id))||!t.fields||typeof t.fields!="object"||Array.isArray(t.fields))return null;let o=new FormData,r=0;for(let[a,i]of Object.entries(t.fields)){if(!Gk.has(a)||typeof i!="string"||(r+=i.length,r>25e4)||t.id&&!["mode","name","summary","version","readme","description","tags","minAppVersion","maxAppVersion","platforms","capabilityReason"].includes(a))return null;o.append(a,i)}if(t.zip!==void 0){if(!t.zip||typeof t.zip.name!="string"||!/\.zip$/i.test(t.zip.name)||!(t.zip.data instanceof Uint8Array)||!t.zip.data.byteLength||t.zip.data.byteLength>jk)return null;o.append("zip",new Blob([new Uint8Array(t.zip.data)],{type:"application/zip"}),t.zip.name.replace(/[\\/]/g,"_").slice(-255))}return{path:`${t.id?`/market/mine/${t.id}/update`:"/market/submit"}${t.dryRun===!0?"?dryRun=1":""}`,body:o}}function Sm(e){e.handle("cloud:marketSubmit",async(t,o)=>{if(!e.isTrustedSender(t))return{status:0,error:"untrusted"};let r=Jk(o);if(!r)return{status:400,json:{error:"invalid_request"}};let a=await e.getCloud();if(!a.token)return{status:401,error:"not_signed_in"};let i=jn(a.base,r.path);if(!i)return{status:0,error:"no_cloud_url"};try{let s=await Vn(a,i,{method:"POST",body:r.body,redirect:"error",signal:AbortSignal.timeout(12e4)});return{status:s.status,json:await s.json().catch(()=>null)}}catch(s){return{status:0,error:String(s?.message||s)}}})}async function Al(e){if(!e.token)return"";try{let t=await Eo(e,"POST","/api/auth/handoff",{},5e3);if(t.status===200&&typeof t.json?.code=="string"&&t.json.code)return`code=${encodeURIComponent(t.json.code)}`;if((t.status===404||t.status===405)&&!e.fetch)return`token=${encodeURIComponent(e.token)}`}catch{}return""}var Xk=["membership","credits","storefront"],Kk=["monthly","quarterly","yearly"],Yk=/^[A-Za-z0-9_-]{1,64}$/,Zk=["chat-banner","run-error","run-toast","avatar-menu","muse-settings","quota-page","agent-tool","backpack","other"],Cm=e=>Zk.includes(e)?e:void 0,oi=(e,t)=>{let o=Cm(t);return o?{...e,entry:o}:e};function _m(e){let t={status:0,error:"untrusted"},o={ok:!1,error:"untrusted"};e.handle("auth:openAccountCenter",async(a,i)=>{if(!e.isTrustedSender(a))return o;let s=await e.getCloud(),l=s.base;if(!l)return{ok:!1};let c=i&&/^[a-z0-9-]+$/i.test(i)?`#${i}`:"",d=await Al(s),p=`${l}/account${d?`?${d}`:""}${c}`;return s.signal?.throwIfAborted(),await e.openExternal(p),{ok:!0}}),e.handle("auth:openPayCenter",async(a,...i)=>{if(!e.isTrustedSender(a))return o;let s=i.length>=4,[l,c,d]=i.slice(0,3).map(b=>s&&b===null?void 0:b),p=Cm(i[3]);if(l!==void 0&&!Xk.includes(l))return{ok:!1,error:"invalid_tab"};if(c!==void 0&&(typeof c!="string"||!Yk.test(c)))return{ok:!1,error:"invalid_plan"};if(d!==void 0&&!Kk.includes(d))return{ok:!1,error:"invalid_period"};let u=(l??"membership")==="membership"&&c?`&plan=${encodeURIComponent(c)}${d?`&period=${d}`:""}`:"",m=await e.getCloud(),f=m.base;if(!f)return{ok:!1};let g=await Al(m),h=`${f}/pay?tab=${l??"membership"}${u}${p?`&from=${p}`:""}${g?`&${g}`:""}&redirect=${encodeURIComponent(`${f}/account`)}`;return m.signal?.throwIfAborted(),await e.openExternal(h),{ok:!0}}),e.handle("auth:resumeAutoRenew",async a=>{if(!e.isTrustedSender(a))return o;let i=await e.getCloud(),s=i.base;if(!s)return{ok:!1};let l=await Al(i);if(!l.startsWith("code="))return{ok:!1,error:"handoff_unavailable"};let c=`${s}/pay?tab=membership&action=resume_autorenew&${l}&redirect=${encodeURIComponent(`${s}/account`)}`;return i.signal?.throwIfAborted(),await e.openExternal(c),{ok:!0}}),e.handle("profile:publicOrigin",async a=>{if(!e.isTrustedSender(a))return o;let{base:i}=await e.getCloud();if(!i)return{ok:!1};try{let s=await fetch(`${i}/account`,{redirect:"manual",signal:AbortSignal.timeout(4e3)});s.body?.cancel().catch(()=>{});let l=s.status>=300&&s.status<400?s.headers.get("location"):null;return l&&/^https?:\/\//i.test(l)?{ok:!0,origin:new URL(l).origin}:{ok:!1}}catch{return{ok:!1}}});let r=()=>e.getCloud();e.handle("account:quota",async a=>{if(!e.isTrustedSender(a))return t;let i=await r();if(!i.token)return{status:401,json:null};try{return await Eo(i,"GET","/api/token-quota/my",void 0,15e3)}catch(s){return{status:0,json:{detail:String(s?.message||s)}}}}),e.handle("account:useResetCard",async(a,...i)=>{if(!e.isTrustedSender(a))return t;let s=await r();if(!s.token)return{status:401,json:null};let l=i[0];if(l!==void 0&&l!=="both")return{status:400,json:{error:"invalid_type",detail:`invalid reset card type: ${String(l)}`}};let c=l??"both";try{return await Eo(s,"POST","/api/token-quota/reset-card/use",oi({type:c},i[1]),15e3)}catch(d){return{status:0,json:{detail:String(d?.message||d)}}}}),e.handle("account:bgConvert",async(a,i,s)=>{if(!e.isTrustedSender(a))return t;let l=await r();if(!l.token)return{status:401,json:null};if(!Number.isInteger(i)||i<1||i>100)return{status:400,json:{error:"invalid_percent"}};try{return await Eo(l,"POST","/api/token-quota/background/convert",oi({percent:i},s),15e3)}catch(c){return{status:0,json:{detail:String(c?.message||c)}}}}),e.handle("account:pointsAutoDeduct",async(a,i,s)=>{if(!e.isTrustedSender(a))return t;let l=await r();if(!l.token)return{status:401,json:null};if(typeof i!="boolean")return{status:400,json:{error:"invalid_request"}};try{return await Eo(l,"POST","/api/token-quota/auto-deduct",oi({enabled:i},s),15e3)}catch(c){return{status:0,json:{detail:String(c?.message||c)}}}}),e.handle("account:bgAutoMain",async(a,i,s)=>{if(!e.isTrustedSender(a))return t;let l=await r();if(!l.token)return{status:401,json:null};if(typeof i!="boolean")return{status:400,json:{error:"invalid_request"}};try{return await Eo(l,"POST","/api/token-quota/background/auto-main",oi({enabled:i},s),15e3)}catch(c){return{status:0,json:{detail:String(c?.message||c)}}}}),e.handle("feedback:submit",async(a,i)=>{if(!e.isTrustedSender(a))return o;let s=await e.getCloud();if(!s.base||!s.token)return{ok:!1,error:"not-logged-in"};if(i?.expectedAccountId!==void 0){let p=i.expectedAccountId;if(typeof p!="string"||!p||zm(s.base,s.token)!==p)return{ok:!1,error:"account-changed"}}let l=(i?.description||"").trim();if(!l)return{ok:!1,error:"empty"};if(l.length>1e4)return{ok:!1,error:"description-too-long"};let c=[],d=!1;if(i?.sessionLogJson){let p=km(i.sessionLogJson);if(p.length>5*1024*1024)return{ok:!1,error:"attachment-too-large"};c.push({filename:i.sessionLogName||"tangu-session.json",mime_type:"application/json",size:p.length,data_base64:wm(p)})}try{let p=await Vn(s,`${s.base}/api/feedback`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({description:l,attachments:c}),signal:AbortSignal.timeout(2e4)});if(!p.ok){let m=`HTTP ${p.status}`;try{m=(await p.json())?.detail||m}catch{}return{ok:!1,error:m}}return{ok:!0,id:(await p.json().catch(()=>({})))?.id??null,attachmentSkipped:d}}catch(p){return{ok:!1,error:p?.message||String(p)}}}),e.handle("cloud:fetch",async(a,i)=>{if(!e.isTrustedSender(a))return{status:0,error:"untrusted"};let s=i??{},l=typeof s.path=="string"?s.path:"",c=s.projectSource===void 0?null:s.projectSource;if(c!==null&&(typeof c!="string"||!/^[a-z0-9][a-z0-9-]{0,63}$/.test(c)))return{status:0,error:"bad_project_source"};let d=Math.min(12e4,Math.max(1e3,Number(s.timeoutMs)||15e3)),p=typeof s.method=="string"?s.method.toUpperCase():"GET";if(!/^(GET|POST|PUT|PATCH|DELETE)$/.test(p))return{status:0,error:"bad_method"};if(!l.startsWith("/"))return{status:0,error:"bad_path"};let u=await e.getCloud();if(!String(u.base||""))return{status:0,error:"no_cloud_url"};let m=jn(u.base,l);if(!m)return{status:0,error:"bad_path"};if(!u.token)return{status:401,error:"not_signed_in"};let f=s.body!==void 0&&p!=="GET"&&p!=="DELETE",g=new AbortController,h=setTimeout(()=>g.abort(),d);try{let b=await Vn(u,m,{method:p,headers:{...f?{"Content-Type":"application/json"}:{},...c?{"X-Project-Source":c}:{}},body:f?JSON.stringify(s.body):void 0,signal:g.signal});return{status:b.status,json:await b.json().catch(()=>null)}}catch(b){return{status:0,error:String(b?.message||b)}}finally{clearTimeout(h)}}),Sm(e)}var Tl={sender:"web"},Qk=new Set(["auth:openAccountCenter","auth:openPayCenter","auth:resumeAutoRenew"]),Am=(e,t)=>new URL(typeof e=="string"&&e?e:t.location.origin,t.location.href).origin;function ew(e,t=window){let o=new Map,r=!!(t.tangu?.mobile&&t.tangu.extendMobile),a=0,i=!1,s=new AbortController,l=g=>{if(i||g!==a)throw new Error("account_changed")},c=[],d={async getCloud(){let g=a,h=s.signal,b=await e.status().catch(()=>null);return l(g),{base:Am(b?.cloudUrl,t),token:b?.loggedIn?"session":"",signal:h,fetch:async(v,w)=>{l(g);let k=await e.request(v,{...w,signal:w.signal?AbortSignal.any([w.signal,h]):h});return l(g),k}}},handle:(g,h)=>{o.set(g,h)},async openExternal(g){if(r){if(!t.tangu?.openExternal)throw new Error("no_external_browser");await t.tangu.openExternal(g);return}let h=c.shift();h&&!h.closed?h.location.replace(g):t.open(g,"_blank","noopener,noreferrer")},isTrustedSender:()=>!0,log:g=>console.info("[forsion-extend]",g)};_m(d);let p=If(d,t,{...r?{saveDownload:async(g,h)=>{if(!e.saveDownload)throw new Error("download_unavailable");let b=await e.saveDownload(g,h);if(!b.ok)throw new Error(b.error||"download_failed")},openExternal:g=>d.openExternal(g)}:{}}),u=t.tangu?.onAuthChanged?.(()=>{a++,s.abort(),s=new AbortController,p.reset();for(let g of c.splice(0))g.close()}),m=async(g,...h)=>{let b=o.get(g);if(!b)throw new Error(`No handler registered for '${g}'`);if(g==="penzor:transfers")return b(Tl,...h);let v=a;if(i)return{ok:!1,error:"disposed"};let w=x=>v===a&&!i?x:{ok:!1,error:"account_changed"};if(!Qk.has(g)||r)return w(await b(Tl,...h));let k=t.open("","_blank");k&&(k.opener=null,c.push(k));try{return w(await b(Tl,...h))}finally{let x=k?c.indexOf(k):-1;x>=0&&(c.splice(x,1),k.close())}},f=t.tangu?.authStatus;return{...f?{authStatus:async()=>{let g=await f();return{...g,cloudUrl:g?.cloudUrl?Am(g.cloudUrl,t):g?.cloudUrl}}}:{},cloudInvoke:m,cloudFetch:g=>m("cloud:fetch",g),openAccountCenter:r&&t.tangu?.openAccountCenter?g=>t.tangu.openAccountCenter(g):g=>m("auth:openAccountCenter",g),openExternal:async g=>{/^https?:\/\//i.test(g)&&(r?await d.openExternal(g):t.open(g,"_blank","noopener,noreferrer"))},dispose(){i=!0,a++,s.abort(),u?.();for(let g of c.splice(0))g.close();p.dispose()}}}function Tm(e,t=window){let o=t.tangu;if(!Sn(o)||typeof e?.account?.request!="function"||typeof e.account.status!="function")return null;let{dispose:r,...a}=ew(e.account,t);sd(a);let i=e.app,s=!1;try{s=typeof i?.provideFeedbackChannel=="function"&&i.provideFeedbackChannel(tw(a.cloudInvoke))===!0}catch{}return()=>{if(s)try{i.provideFeedbackChannel(null)}catch{}r()}}function tw(e){return async t=>{try{let o=await e("feedback:submit",t);return!o||typeof o!="object"?{ok:!1,error:"unavailable"}:o.error==="account_changed"||o.error==="disposed"?{ok:!1,error:"account-changed"}:o}catch(o){let r=String(o?.message||o);return{ok:!1,error:r==="account_changed"?"account-changed":r}}}}function nw(e=H){let t=!0,o=async(a,i="GET",s)=>{if(!t)throw new Error("Inbox account changed");let l=await e(a,{method:i,...s===void 0?{}:{body:s}});if(!t)throw new Error("Inbox account changed");if(!l.ok)throw l.status===401?Object.assign(new Error("Sign in to read official messages"),{code:"not_signed_in"}):Object.assign(new Error(l.detail||l.transport||"Cloud inbox unavailable"),{code:l.code});return l.data},r=a=>{if(!/^cloud:[0-9a-zA-Z-]{1,64}$/.test(a))throw new Error("Invalid cloud message id");return encodeURIComponent(a.slice(6))};return{retire(){t=!1},async list(a){let i=[],s=null,l=new Set;do{let c;try{c=await o(`/brain/inbox/messages?filter=${a}${s?`&before=${encodeURIComponent(s)}`:""}`)}catch(d){if(d?.code==="not_signed_in")return[];throw d}if(!Array.isArray(c.messages))throw new Error("Invalid cloud inbox response");if(i.push(...c.messages),s=c.nextCursor??null,s&&l.has(s))throw new Error("Repeated cloud inbox cursor");s&&l.add(s)}while(s);return i},async unreadCount(){try{return await o("/brain/inbox/messages/unread-count")}catch(a){if(a?.code==="not_signed_in")return{count:0,latestId:null,revision:"signed-out"};throw a}},patch:(a,i)=>o(`/brain/inbox/messages/${r(a)}`,"PATCH",i),async importLegacy(a){let i=await Q().authStatus?.();if(!(!t||!i?.loggedIn||i.tokenValid===!1||!i.accountId)){try{let s="forsion.inbox.legacyOwner",l=localStorage.getItem(s);if(l&&l!==i.accountId)return;l||localStorage.setItem(s,i.accountId)}catch{return}for(let s=0;s<a.length;s+=200)await o("/brain/inbox/messages/import","POST",{messages:a.slice(s,s+200).map(l=>({id:l.origin_broadcast_id,read:!!l.read_at,archived:!!l.archived_at}))})}},async readAll(){try{return await o("/brain/inbox/messages/read-all","POST",{})}catch(a){if(a?.code==="not_signed_in")return{ok:!0};throw a}},remove:a=>o(`/brain/inbox/messages/${r(a)}`,"DELETE"),async claim(a,i){let s=await o(`/brain/inbox/broadcasts/${r(a)}/claim`,"POST",{client:i});return{ok:s.claimed===!0,alreadyClaimed:s.alreadyClaimed===!0}}}}function Em(e){if(typeof e?.app?.provideInboxChannel!="function"||!Q().cloudFetch)return;let t,o=()=>{t?.retire(),t=nw(),e.app.provideInboxChannel(t)};o();let r=Q().onAuthChanged?.(o);return()=>{r?.(),t?.retire(),e.app.provideInboxChannel(null)}}var ao=e=>typeof e=="string"&&e.trim()?e.trim():null,Ro=e=>(ao(e)||"").replace(/^v(?=\d)/i,"");function ow(e,t){let o=i=>{let s=Ro(i).split("+")[0],l=s.indexOf("-");return{core:(l<0?s:s.slice(0,l)).split(".").map(d=>/^\d+$/.test(d)?Number(d):NaN),pre:l<0?[]:s.slice(l+1).split(".")}};if(!Ro(e)||!Ro(t))return null;let r=o(e),a=o(t);if(r.core.some(i=>!Number.isFinite(i))||a.core.some(i=>!Number.isFinite(i)))return null;for(let i=0;i<Math.max(r.core.length,a.core.length);i++){let s=(r.core[i]||0)-(a.core[i]||0);if(s)return s>0?1:-1}if(!r.pre.length||!a.pre.length)return r.pre.length===a.pre.length?0:r.pre.length?-1:1;for(let i=0;i<Math.max(r.pre.length,a.pre.length);i++){let s=r.pre[i],l=a.pre[i];if(s===void 0||l===void 0)return s===void 0?-1:1;if(s===l)continue;let c=/^\d+$/.test(s),d=/^\d+$/.test(l);return c&&d?Number(s)>Number(l)?1:-1:c!==d?c?-1:1:s>l?1:-1}return 0}var rw=2*6e4,aw=(e,t)=>{let o=Date.parse(String(e??"")),r=Date.parse(String(t??""));return Number.isFinite(o)&&Number.isFinite(r)&&o-r>rw};function Pm(e){let t=e;if(typeof e=="string")try{t=JSON.parse(e)}catch{return null}return!t||typeof t!="object"||typeof t.itemId!="string"||typeof t.name!="string"?null:{itemId:t.itemId,name:t.name,type:ao(t.type)||void 0,source:ao(t.source)||void 0,mode:t.mode==="info"?"info":"package",from:ao(t.from),to:ao(t.to),tag:ao(t.tag),fields:Array.isArray(t.fields)?t.fields.filter(o=>typeof o=="string"):void 0,listed:t.listed===!0,submittedAt:ao(t.submittedAt)||void 0}}function Rm(e,t){let o={status:"review",note:null,storeVersion:e.from,listed:!!e.listed};if(!t)return o;let r=e.mode==="info",a=t.status==="approved",i=ao(t.version)??e.from,s=p=>!!p&&(r?p.kind==="info":p.kind!=="info"&&Ro(p.version)===Ro(e.to)),l=s(t.pendingUpdate)&&!aw(t.pendingUpdate?.submittedAt,e.submittedAt),c=s(t.rejectedUpdate)&&!t.pendingUpdate,d=(p,u=null)=>({status:p,note:u&&u.trim()?u.trim():null,storeVersion:i,listed:a});if(!a)return t.status==="rejected"?d("rejected",t.reviewNote||null):d("review");if(e.listed===!1)return d("approved");if(l)return d("review");if(c)return d("rejected",t.rejectedUpdate?.note||null);if(!r){let p=ow(t.version,e.to);return p!==null&&p>=0||(t.versions||[]).some(u=>Ro(u.version)===Ro(e.to))?d("approved"):d("rejected")}return d("approved")}var iw="store_submit_update",sw=`
1771
1776
  .fx-su { padding: 4px 2px 2px; color: var(--text); font-size: var(--ui-font-body); line-height: var(--ui-line-body); }
1772
1777
  .fx-su .fx-su-top { display: flex; align-items: center; gap: 11px; min-width: 0; }
1773
1778
  .fx-su .fx-su-ic { width: 32px; height: 32px; display: grid; place-items: center; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--overlay-light); color: var(--text-light); }
@@ -1783,9 +1788,9 @@ Content-Type: ${r}\r
1783
1788
  .fx-su .fx-su-meta { color: var(--text-faint); font-size: var(--ui-font-meta); line-height: var(--ui-line-meta); }
1784
1789
  .fx-su .fx-su-note { margin-top: 8px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--overlay-light); color: var(--text-light); font-size: var(--ui-font-meta); line-height: var(--ui-line-meta); white-space: pre-wrap; overflow-wrap: anywhere; }
1785
1790
  .fx-su .fx-su-acts { display: flex; justify-content: flex-end; gap: 7px; margin-top: 10px; }
1786
- `,_k={plugin:"puzzle","amadeus-plugin":"puzzle",skill:"sparkles",agent:"bot",space:"grid",theme:"palette"},Ak=new Set(["plugin","amadeus-plugin","skill","agent","space","theme"]),fm={name:"sub.name",summary:"sub.summary",description:"sub.description",tags:"sub.tags",minAppVersion:"sub.minAppVersion",maxAppVersion:"sub.maxAppVersion",platforms:"sub.platforms"},Tk=e=>e==="github"?"su.source.github":e==="npm"?"su.source.npm":e==="zip"?"su.source.zip":null;function Ek(e){let{sub:t,view:o,t:r,locale:a,onOpenSubmission:i}=e,s=t.type&&Ak.has(t.type)?r(`sub.type.${t.type.replace("-","_")}`):null,l=Tk(t.source),c=[s,l&&r(l)].filter(Boolean).join(" \xB7 "),d=o.status==="approved"?n("span",{class:"fx-su-pill is-ok",children:r("su.approved")}):o.status==="rejected"?n("span",{class:"fx-su-pill is-no",children:r("su.rejected")}):n("span",{class:"fx-su-pill",children:r("su.review")}),p=t.mode==="package"?t.source==="github"&&t.tag?r("su.viaGithub",{tag:t.tag}):t.source==="npm"&&t.to?r("su.viaNpm",{version:t.to}):"":"",u=(t.fields||[]).map(g=>fm[g]?r(fm[g]):g),f=t.submittedAt?Et(t.submittedAt,a):null,m=o.status==="review"?f?r("su.metaReview",{time:f}):r("su.metaReviewNoTime"):o.status==="approved"?t.mode==="info"?r("su.metaApprovedInfo"):r("su.metaApproved",{version:o.storeVersion||t.to||""}):o.listed&&o.storeVersion?r("su.metaRejected",{version:o.storeVersion}):r("su.metaRejectedUnlisted");return n("div",{class:"fx-su","data-fx-store-update":o.status,children:[n("style",{children:Ck}),n("div",{class:"fx-su-top",children:[n("span",{class:"fx-su-ic",children:n(U,{name:_k[t.type||""]||"box",size:18})}),n("div",{class:"fx-su-id",children:[n("div",{class:"fx-su-name",children:t.name}),c&&n("div",{class:"fx-su-sub",children:c})]}),d]}),t.mode==="package"?n("div",{class:"fx-su-ver",children:[t.from&&n(M,{children:[n("span",{class:"fx-su-from",children:t.from}),n("span",{"aria-hidden":"true",children:"\u2192"})]}),n("span",{class:"fx-su-to",children:t.to}),p&&n("span",{class:"fx-su-meta",children:p})]}):n("div",{class:"fx-su-ver",children:[n("span",{class:"fx-su-to",children:r("su.infoOnly")}),!!u.length&&n("span",{class:"fx-su-meta",children:u.join(r("su.listSep"))})]}),n("div",{class:"fx-su-meta",children:m}),o.status==="rejected"&&o.note&&n("div",{class:"fx-su-note",children:o.note}),o.status!=="approved"&&i&&n("div",{class:"fx-su-acts",children:n("button",{type:"button",class:"btn sm",onClick:i,children:r("su.openSubmission")})})]})}function Pk(e){let{ctx:t,sub:o,call:r}=e,[a,i]=C(()=>De(t.getLocale?.())),s=(()=>{try{return r.state?.get()}catch{return}})(),[l,c]=C(s?.item??null);W(()=>{i(De(t.getLocale?.()));let u=t.subscribeLocale?.(f=>i(De(f)));return()=>{typeof u=="function"&&u()}},[t]),W(()=>{let u=!0;return q("/market/mine").then(f=>{if(!u||!f.ok)return;let m=(f.data?.items||[]).find(g=>g&&g.id===o.itemId)||null;if(m){c(m);try{r.state?.set({item:m})}catch{}}}),()=>{u=!1}},[o.itemId]);let d=t.app?.openSettings,p=typeof d=="function"?()=>{Ju(o.itemId),d.call(t.app,fn("submission"))}:null;return n(Ek,{sub:o,view:pm(o,l),t:Cn(a),locale:a,onOpenSubmission:p})}function mm(e){return!e||typeof e.registerToolResultRenderer!="function"?!1:(e.registerToolResultRenderer({tool:Sk,title:()=>Se(De(e.getLocale?.()),"su.title"),mount(t,o){let r=um(o?.result);if(!r)throw new Error("store_submit_update: unexpected result shape");return Oe(n(Pk,{ctx:e,sub:r,call:o}),t),()=>{Oe(null,t)}}}),!0)}var Cl=(e,t)=>e.draftedAt!==null&&t-e.draftedAt>=-6e4&&t-e.draftedAt<18e5;var hm="fx.agentFeedback.v1";var Ik=new Set(["bug","idea","other"]);function bm(e){if(typeof e!="string")return null;let t;try{t=JSON.parse(e)}catch{return null}return!t||t.ok!==!0||typeof t.title!="string"||typeof t.description!="string"?null:{kind:Ik.has(t.kind)?t.kind:"bug",title:t.title,description:t.description,fingerprint:typeof t.fingerprint=="string"&&t.fingerprint?t.fingerprint:null,mode:t.mode==="auto"?"auto":"ask",draftedAt:typeof t.draftedAt=="number"&&Number.isFinite(t.draftedAt)?t.draftedAt:null}}var vm=e=>({errors:e==="bug",logs:e==="bug",conversation:!1}),_l=e=>e.errors||e.logs||e.conversation,Al=(e,t)=>t?{...e,conversation:!1}:e;function Tl(e,t){let o=e.replace(/\s+/g," ").trim(),r=t.trim();return(o&&r?`${o}
1791
+ `,lw={plugin:"puzzle","amadeus-plugin":"puzzle",skill:"sparkles",agent:"bot",space:"grid",theme:"palette"},cw=new Set(["plugin","amadeus-plugin","skill","agent","space","theme"]),Im={name:"sub.name",summary:"sub.summary",description:"sub.description",tags:"sub.tags",minAppVersion:"sub.minAppVersion",maxAppVersion:"sub.maxAppVersion",platforms:"sub.platforms"},dw=e=>e==="github"?"su.source.github":e==="npm"?"su.source.npm":e==="zip"?"su.source.zip":null;function uw(e){let{sub:t,view:o,t:r,locale:a,onOpenSubmission:i}=e,s=t.type&&cw.has(t.type)?r(`sub.type.${t.type.replace("-","_")}`):null,l=dw(t.source),c=[s,l&&r(l)].filter(Boolean).join(" \xB7 "),d=o.status==="approved"?n("span",{class:"fx-su-pill is-ok",children:r("su.approved")}):o.status==="rejected"?n("span",{class:"fx-su-pill is-no",children:r("su.rejected")}):n("span",{class:"fx-su-pill",children:r("su.review")}),p=t.mode==="package"?t.source==="github"&&t.tag?r("su.viaGithub",{tag:t.tag}):t.source==="npm"&&t.to?r("su.viaNpm",{version:t.to}):"":"",u=(t.fields||[]).map(g=>Im[g]?r(Im[g]):g),m=t.submittedAt?Pt(t.submittedAt,a):null,f=o.status==="review"?m?r("su.metaReview",{time:m}):r("su.metaReviewNoTime"):o.status==="approved"?t.mode==="info"?r("su.metaApprovedInfo"):r("su.metaApproved",{version:o.storeVersion||t.to||""}):o.listed&&o.storeVersion?r("su.metaRejected",{version:o.storeVersion}):r("su.metaRejectedUnlisted");return n("div",{class:"fx-su","data-fx-store-update":o.status,children:[n("style",{children:sw}),n("div",{class:"fx-su-top",children:[n("span",{class:"fx-su-ic",children:n(B,{name:lw[t.type||""]||"box",size:18})}),n("div",{class:"fx-su-id",children:[n("div",{class:"fx-su-name",children:t.name}),c&&n("div",{class:"fx-su-sub",children:c})]}),d]}),t.mode==="package"?n("div",{class:"fx-su-ver",children:[t.from&&n(I,{children:[n("span",{class:"fx-su-from",children:t.from}),n("span",{"aria-hidden":"true",children:"\u2192"})]}),n("span",{class:"fx-su-to",children:t.to}),p&&n("span",{class:"fx-su-meta",children:p})]}):n("div",{class:"fx-su-ver",children:[n("span",{class:"fx-su-to",children:r("su.infoOnly")}),!!u.length&&n("span",{class:"fx-su-meta",children:u.join(r("su.listSep"))})]}),n("div",{class:"fx-su-meta",children:f}),o.status==="rejected"&&o.note&&n("div",{class:"fx-su-note",children:o.note}),o.status!=="approved"&&i&&n("div",{class:"fx-su-acts",children:n("button",{type:"button",class:"btn sm",onClick:i,children:r("su.openSubmission")})})]})}function pw(e){let{ctx:t,sub:o,call:r}=e,[a,i]=S(()=>Oe(t.getLocale?.())),s=(()=>{try{return r.state?.get()}catch{return}})(),[l,c]=S(s?.item??null);$(()=>{i(Oe(t.getLocale?.()));let u=t.subscribeLocale?.(m=>i(Oe(m)));return()=>{typeof u=="function"&&u()}},[t]),$(()=>{let u=!0;return H("/market/mine").then(m=>{if(!u||!m.ok)return;let f=(m.data?.items||[]).find(g=>g&&g.id===o.itemId)||null;if(f){c(f);try{r.state?.set({item:f})}catch{}}}),()=>{u=!1}},[o.itemId]);let d=t.app?.openSettings,p=typeof d=="function"?()=>{cp(o.itemId),d.call(t.app,mn("submission"))}:null;return n(uw,{sub:o,view:Rm(o,l),t:_n(a),locale:a,onOpenSubmission:p})}function Mm(e){return!e||typeof e.registerToolResultRenderer!="function"?!1:(e.registerToolResultRenderer({tool:iw,title:()=>Ce(Oe(e.getLocale?.()),"su.title"),mount(t,o){let r=Pm(o?.result);if(!r)throw new Error("store_submit_update: unexpected result shape");return Fe(n(pw,{ctx:e,sub:r,call:o}),t),()=>{Fe(null,t)}}}),!0)}var Pl=(e,t)=>e.draftedAt!==null&&t-e.draftedAt>=-6e4&&t-e.draftedAt<18e5;var Dm="fx.agentFeedback.v1";var fw=new Set(["bug","idea","other"]);function Nm(e){if(typeof e!="string")return null;let t;try{t=JSON.parse(e)}catch{return null}return!t||t.ok!==!0||typeof t.title!="string"||typeof t.description!="string"?null:{kind:fw.has(t.kind)?t.kind:"bug",title:t.title,description:t.description,fingerprint:typeof t.fingerprint=="string"&&t.fingerprint?t.fingerprint:null,mode:t.mode==="auto"?"auto":"ask",draftedAt:typeof t.draftedAt=="number"&&Number.isFinite(t.draftedAt)?t.draftedAt:null}}var Om=e=>({errors:e==="bug",logs:e==="bug",conversation:!1}),Rl=e=>e.errors||e.logs||e.conversation,Il=(e,t)=>t?{...e,conversation:!1}:e;function Ml(e,t){let o=e.replace(/\s+/g," ").trim(),r=t.trim();return(o&&r?`${o}
1787
1792
 
1788
- ${r}`:o||r).slice(0,1e4)}function ym(e){return`agent:${String(e).replace(/[^A-Za-z0-9_.:-]/g,"_")}`.slice(0,80)}var xm=(e,t)=>!!e&&e.status==="sent"&&!!e.auto&&!e.appended&&t-e.sentAt<6e5;function km(e){let t=new TextEncoder().encode(e),o="";for(let r=0;r<t.length;r+=32768)o+=String.fromCharCode(...t.subarray(r,r+32768));return btoa(o)}function wm(e){if(!e)return{};try{let t=JSON.parse(e.getItem(hm)||"{}");return t&&typeof t=="object"&&!Array.isArray(t)?t:{}}catch{return{}}}var gm=e=>e.status==="sent"?e.sentAt:e.at,zm=()=>{try{return typeof localStorage<"u"?localStorage:null}catch{return null}};function Sm(e,t=zm()){let o=wm(t)[e];return o&&typeof o=="object"&&typeof o.status=="string"?o:null}var Cm=(e,t)=>`${e}:${t.draftedAt??0}`,Za=new Map;function _m(e,t){let o=Za.get(e);return o||Za.set(e,o=new Set),o.add(t),()=>{o.delete(t),o.size||Za.delete(e)}}function Am(e,t,o=zm()){for(let i of[...Za.get(e)||[]])try{i(t)}catch{}if(!o)return;let r=wm(o);t?r[e]=t:delete r[e];let a=Object.keys(r);a.length>200&&a.sort((i,s)=>gm(r[i])-gm(r[s])).slice(0,a.length-200).forEach(i=>{delete r[i]});try{o.setItem(hm,JSON.stringify(r))}catch{}}var Sl=new Set;function Tm(e){return Sl.has(e)?!1:(Sl.add(e),!0)}var Em=e=>{Sl.delete(e)};var Mk="feedback_draft",El=`
1793
+ ${r}`:o||r).slice(0,1e4)}function Fm(e){return`agent:${String(e).replace(/[^A-Za-z0-9_.:-]/g,"_")}`.slice(0,80)}var Bm=(e,t)=>!!e&&e.status==="sent"&&!!e.auto&&!e.appended&&t-e.sentAt<6e5;function Um(e){let t=new TextEncoder().encode(e),o="";for(let r=0;r<t.length;r+=32768)o+=String.fromCharCode(...t.subarray(r,r+32768));return btoa(o)}function $m(e){if(!e)return{};try{let t=JSON.parse(e.getItem(Dm)||"{}");return t&&typeof t=="object"&&!Array.isArray(t)?t:{}}catch{return{}}}var Lm=e=>e.status==="sent"?e.sentAt:e.at,Hm=()=>{try{return typeof localStorage<"u"?localStorage:null}catch{return null}};function qm(e,t=Hm()){let o=$m(t)[e];return o&&typeof o=="object"&&typeof o.status=="string"?o:null}var Wm=(e,t)=>`${e}:${t.draftedAt??0}`,ri=new Map;function Vm(e,t){let o=ri.get(e);return o||ri.set(e,o=new Set),o.add(t),()=>{o.delete(t),o.size||ri.delete(e)}}function jm(e,t,o=Hm()){for(let i of[...ri.get(e)||[]])try{i(t)}catch{}if(!o)return;let r=$m(o);t?r[e]=t:delete r[e];let a=Object.keys(r);a.length>200&&a.sort((i,s)=>Lm(r[i])-Lm(r[s])).slice(0,a.length-200).forEach(i=>{delete r[i]});try{o.setItem(Dm,JSON.stringify(r))}catch{}}var El=new Set;function Gm(e){return El.has(e)?!1:(El.add(e),!0)}var Jm=e=>{El.delete(e)};var gw="feedback_draft",Ll=`
1789
1794
  .fx-af { padding: 4px 2px 2px; color: var(--text); font-size: var(--ui-font-body); line-height: var(--ui-line-body); }
1790
1795
  .fx-af .fx-af-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
1791
1796
  .fx-af .fx-af-kind { padding: 4px 10px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text-muted); font: inherit; font-size: var(--ui-font-meta); cursor: pointer; }
@@ -1817,8 +1822,8 @@ ${r}`:o||r).slice(0,1e4)}function ym(e){return`agent:${String(e).replace(/[^A-Za
1817
1822
  .fx-af .fx-af-pill { margin-left: auto; flex-shrink: 0; padding: 2px 9px; border-radius: var(--radius-pill); background: var(--overlay-light); color: var(--text-light); font-size: var(--ui-font-caption); line-height: var(--ui-line-caption); white-space: nowrap; }
1818
1823
  .fx-af .fx-af-pref { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; color: var(--text-faint); font-size: var(--ui-font-caption); line-height: var(--ui-line-caption); }
1819
1824
  .fx-af .fx-af-link { padding: 0; border: 0; background: none; color: var(--accent-ink); font: inherit; cursor: pointer; }
1820
- `,Qa=e=>e.slice(0,8),Lk=e=>`${Math.max(1,Math.round(e/1024))} KB`;function Dk(e){let{ctx:t,draft:o,call:r}=e,[a,i]=C(()=>De(t.getLocale?.())),s=Yt(()=>Cn(a),[a]);W(()=>{i(De(t.getLocale?.()));let ie=t.subscribeLocale?.(_e=>i(De(_e)));return()=>{typeof ie=="function"&&ie()}},[t]);let l=(()=>{try{return r.state?.get()}catch{return}})(),[c,d]=C(l?.kind??o.kind),[p,u]=C(l?.title??o.title),[f,m]=C(l?.description??o.description),[g,h]=C(l?.picks??vm(o.kind)),v=Cm(r.id,o),[b,x]=C(()=>Sm(v));W(()=>_m(v,x),[v]);let[w,S]=C(!1),[T,F]=C(null),[B,N]=C(!o.fingerprint),[j,_]=C(null),[L,$]=C(null),[P,K]=C(!1),[z,A]=C(null),[R,X]=C(null),[Q,H]=C(()=>Date.now()),te=oe(!0);W(()=>()=>{te.current=!1},[]);let pe=o.mode==="auto",Ue=t.app?.buildFeedbackReport,me=ie=>{try{r.state?.set({kind:c,title:p,description:f,picks:g,...ie})}catch{}},Ie=ie=>{Am(v,ie)};W(()=>{if(b||!o.fingerprint)return;let ie=!0;return q(`/feedback/match?fingerprint=${encodeURIComponent(o.fingerprint)}`).then(_e=>{ie&&(_e.ok&&_e.data?.ticket?.id?F(_e.data.ticket):_e.ok||S(!0),N(!0))}),()=>{ie=!1}},[o.fingerprint]);let Ze=b?.status==="sent"?b.ticketId:null;W(()=>{if(!Ze)return;let ie=!0;return q(`/feedback/${encodeURIComponent(Ze)}`).then(_e=>{!ie||!_e.ok||X({status:_e.data?.ticket?.status,replied:(_e.data?.replies||[]).some(gt=>gt?.author_role==="admin")})}),()=>{ie=!1}},[Ze]);let be=xm(b,Q)&&!R?.replied;W(()=>{if(!be)return;let ie=setInterval(()=>H(Date.now()),15e3);return()=>clearInterval(ie)},[be]);let Qe=async ie=>{if(!_l(ie))return{report:null,failed:!1};if(typeof Ue!="function")return{report:null,failed:!0};try{let _e=await Ue.call(t.app,{callId:r.id,result:r.result,diagnostics:ie.logs,conversation:ie.conversation,errors:ie.errors});return{report:_e,failed:!_e}}catch{return{report:null,failed:!0}}},St=async ie=>{_("send"),$(null),K(!1);try{let _e=async()=>{let je=await q("/auth/me");return je.ok?je.data?.user?.id||je.data?.id||null:je.status===401||je.transport==="not_signed_in"?"out":null},gt=await _e();if(gt==="out")return K(!0),!1;let ot=ie.textOnly?{errors:!1,logs:!1,conversation:!1}:Al(g,ie.auto),{report:Ve,failed:Rt}=await Qe(ot);if(Rt)return $(s("af.errReport")),!1;let Xt=await _e();if(Xt==="out")return K(!0),!1;if(gt!==Xt)return $(s("af.errAccount")),!1;let pt=Ve?[{filename:Ve.filename,mime_type:"application/json",size:Ve.bytes,data_base64:km(Ve.json)}]:[],nn=Tl(p,f),Ke=ie.append&&T?T:null,et=Ke?await q(`/feedback/${encodeURIComponent(Ke.id)}/replies`,{method:"POST",body:{content:nn,attachments:pt},timeoutMs:12e4}):await q("/feedback",{method:"POST",body:{description:nn,attachments:pt,source:ie.auto?"agent-auto":"agent",...o.fingerprint?{fingerprint:o.fingerprint}:{},clientRef:ym(v)},timeoutMs:12e4});if(!et.ok)return et.status===409&&(et.code==="withdrawn"||et.detail==="withdrawn")?(Ie({status:"withdrawn",at:Date.now()}),!1):(te.current&&(et.status===401||et.transport==="not_signed_in"?K(!0):$(s("af.errSend",{err:et.detail||et.transport||String(et.status)}))),!1);let ue=Ke?Ke.id:et.data?.id;return ue?(Ie({status:"sent",ticketId:ue,sentAt:Date.now(),...ie.auto?{auto:!0}:{},...Ke?{appended:!0}:{}}),te.current&&H(Date.now()),!0):(te.current&&$(s("af.errSend",{err:"no id"})),!1)}finally{te.current&&_(null)}};W(()=>{!pe||b||!B||T||w||!Cl(o,Date.now())||Tm(v)&&St({auto:!0}).finally(()=>Em(v))},[pe,B,T,b,w]);let G=async()=>{if(b?.status!=="sent")return;_("withdraw"),$(null);let ie=await q(`/feedback/${encodeURIComponent(b.ticketId)}/withdraw`,{method:"POST"});te.current&&(_(null),ie.ok||ie.status===404?Ie({status:"withdrawn",at:Date.now()}):$(ie.status===409?s("af.errWithdrawLate"):s("af.errSend",{err:ie.detail||ie.transport||String(ie.status)})))},ge=async()=>{if(z){A(null);return}_("preview"),$(null);let{report:ie,failed:_e}=await Qe(Al(g,!1));te.current&&(_(null),_e?$(s("af.errReport")):A(ie))},ye=t.app?.openSettings,Me=typeof ye=="function"?()=>ye.call(t.app,fn("feedback")):null,he=typeof ye=="function"?()=>ye.call(t.app,"plugins"):null,rt=typeof ye=="function"?()=>ye.call(t.app,fn("account")):null,Ce=he&&n("div",{class:"fx-af-pref",children:[s("af.prefLead"),n("span",{children:s(pe?"af.modeAuto":"af.modeAsk")}),n("button",{type:"button",class:"fx-af-link",onClick:he,children:s("af.change")})]}),lt=L&&n("div",{class:"fx-af-warn",role:"alert",children:[L,L===s("af.errReport")&&n(M,{children:[" ",n("button",{type:"button",class:"fx-af-link",onClick:()=>void St({auto:!1,textOnly:!0,append:!!T}),children:s("af.sendTextOnly")})]})]}),st=P&&n("div",{class:"fx-af-warn",role:"alert",children:[s("af.needLogin")," ",rt&&n("button",{type:"button",class:"fx-af-link",onClick:rt,children:s("af.login")})]});if(b?.status==="sent"){let ie=R?.replied?s("af.replied"):R?.status?s(`fb.status.${R.status}`):null,_e=Math.max(0,Math.ceil((b.sentAt+6e5-Q)/6e4));return n("div",{class:"fx-af","data-fx-agent-feedback":"sent",children:[n("style",{children:El}),n("div",{class:"fx-af-row",children:[n("span",{class:"fx-af-ok",children:n(U,{name:"check",size:13})}),n("div",{class:"fx-af-id",children:[n("div",{class:"fx-af-title",children:p}),n("div",{class:"fx-af-meta",children:b.appended?s("af.appended",{id:Qa(b.ticketId)}):s(b.auto?"af.sentAuto":"af.sent",{id:Qa(b.ticketId)})})]}),ie&&n("span",{class:"fx-af-pill",children:ie})]}),n("div",{class:"fx-af-foot",children:[n("span",{class:"fx-af-note",children:be?s("af.withdrawLeft",{n:_e}):s("af.replyInbox")}),n("span",{class:"fx-af-grow"}),be&&n("button",{type:"button",class:"btn ghost sm",disabled:!!j,onClick:()=>void G(),children:s("af.withdraw")}),Me&&n("button",{type:"button",class:"btn ghost sm",onClick:Me,children:s("af.openFeedback")})]}),lt,b.auto&&Ce]})}if(b?.status==="withdrawn"||b?.status==="dismissed")return n("div",{class:"fx-af","data-fx-agent-feedback":b.status,children:[n("style",{children:El}),n("div",{class:"fx-af-row",children:[n("div",{class:"fx-af-id",children:[n("div",{class:"fx-af-title is-muted",children:p}),n("div",{class:"fx-af-meta",children:s(b.status==="withdrawn"?"af.withdrawn":"af.dismissed")})]}),n("span",{class:"fx-af-grow"}),b.status==="dismissed"&&n("button",{type:"button",class:"btn ghost sm",onClick:()=>Ie(null),children:s("af.sendAnyway")})]})]});let Jt=pe&&j==="send"&&!T,$t=pe&&!T&&!w&&!j&&B&&!Cl(o,Q),Ut=(ie,_e)=>{let gt={...g,[ie]:_e};h(gt),A(null),me({picks:gt})},ut=(ie,_e,gt,ot=!1)=>n("label",{class:"fx-af-opt","data-disabled":ot||void 0,children:[n("input",{type:"checkbox",checked:g[ie]&&!ot,disabled:ot||!!j,onChange:Ve=>Ut(ie,Ve.currentTarget.checked)}),n("span",{children:[n("b",{children:_e}),n("small",{children:gt})]})]});return n("div",{class:"fx-af","data-fx-agent-feedback":Jt?"sending":"draft",children:[n("style",{children:El}),n("div",{class:"fx-af-kinds",role:"group","aria-label":s("af.kind"),children:["bug","idea","other"].map(ie=>n("button",{type:"button",class:"fx-af-kind","aria-pressed":c===ie,disabled:!!j,onClick:()=>{d(ie),me({kind:ie})},children:s(`af.kind.${ie}`)},ie))}),n("div",{class:"fx-af-field",children:[n("input",{"aria-label":s("af.titleLabel"),value:p,maxLength:120,disabled:!!j,onInput:ie=>{let _e=ie.currentTarget.value;u(_e),me({title:_e})}}),n("textarea",{"aria-label":s("af.descLabel"),value:f,rows:3,disabled:!!j,onInput:ie=>{let _e=ie.currentTarget.value;m(_e),me({description:_e})}})]}),$t&&n("div",{class:"fx-af-box",children:s("af.staleAuto")}),pe&&w&&!j&&n("div",{class:"fx-af-box",children:s("af.matchFailed")}),T&&n("div",{class:"fx-af-box",children:s(pe?"af.dupAuto":"af.dup",{id:Qa(T.id)})}),n("div",{class:"fx-af-h",children:s("af.includes")}),ut("errors",s("af.optErrors"),s("af.optErrorsHint")),ut("logs",s("af.optLogs"),s("af.optLogsHint")),ut("conversation",s("af.optConversation"),s(pe?"af.optConversationAuto":"af.optConversationHint"),pe),z&&n(M,{children:[n("div",{class:"fx-af-h",children:[z.filename," \xB7 ",Lk(z.bytes),z.errorCount?` \xB7 ${s("af.errorCount",{n:z.errorCount})}`:""]}),n("pre",{class:"fx-af-pre",tabIndex:0,children:z.json.slice(0,2e4)})]}),n("div",{class:"fx-af-foot",children:[n("span",{class:"fx-af-note",children:s(Jt?"af.sendingAuto":"af.redacted")}),n("span",{class:"fx-af-grow"}),_l(g)&&n("button",{type:"button",class:"btn ghost sm",disabled:!!j,onClick:()=>void ge(),children:s(z?"af.hidePreview":"af.preview")}),n("button",{type:"button",class:"btn ghost sm",disabled:!!j,onClick:()=>Ie({status:"dismissed",at:Date.now()}),children:s("af.dismiss")}),n("button",{type:"button",class:"btn primary sm",disabled:!!j||!Tl(p,f),onClick:()=>void St({auto:!1,append:!!T}),children:j==="send"?s("af.sending"):T?s("af.appendTo",{id:Qa(T.id)}):s("af.send")})]}),lt,st,Ce]})}function Pm(e){return!e||typeof e.registerToolResultRenderer!="function"?!1:(e.registerToolResultRenderer({tool:Mk,title:()=>Se(De(e.getLocale?.()),"af.title"),mount(t,o){let r=bm(o?.result);if(!r)throw new Error("feedback_draft: unexpected result shape");return Oe(n(Dk,{ctx:e,draft:r,call:o}),t),()=>{Oe(null,t)}}}),!0)}var Im={unknown:{key:"wc.pill.published",tone:"neutral"},live:{key:"wc.pill.live",tone:"ok"},pending:{key:"wc.pill.review",tone:"neutral"},approved:{key:"wc.pill.listed",tone:"ok"},rejected:{key:"wc.pill.rejected",tone:"danger"},disabled:{key:"web.disabled",tone:"danger"},gone:{key:"wc.pill.gone",tone:"muted"}};function Il(e){if(e===void 0)return"unknown";if(e===null)return"gone";if(e.status==="disabled")return"disabled";let t=e.listing_status;return t==="pending"||t==="approved"||t==="rejected"?t:"live"}var Po=e=>e!=="gone"&&e!=="disabled";function Rm(e){if(typeof e!="string"||!e.startsWith("Published"))return null;let t=e.split(`
1821
- `,1)[0],o=/^Published "(.*)" at (\S*) \((.*)\)\.?$/.exec(t);return o?{name:o[1],url:/^https?:\/\//i.test(o[2])?o[2]:"",size:/(?:^|, )(\d+(?:\.\d+)? [KM]B)(?:,|$)/.exec(o[3])?.[1]??null}:{name:"",url:"",size:null}}var Rl=(e,t,o)=>_s(e,t,o),Pl=e=>{let t=Date.parse(String(e??""));return Number.isFinite(t)?t:0},Mm=e=>[...e].sort((t,o)=>Pl(o.updated_at)-Pl(t.updated_at)),Nk=10*6e4,Lm=(e,t=Date.now())=>{let o=Pl(e);return o>0&&t-o<Nk};var Ok="publish_web_page",Fk="forsion_account",Ml=5,Om=`
1825
+ `,ai=e=>e.slice(0,8),hw=e=>`${Math.max(1,Math.round(e/1024))} KB`;function bw(e){let{ctx:t,draft:o,call:r}=e,[a,i]=S(()=>Oe(t.getLocale?.())),s=Zt(()=>_n(a),[a]);$(()=>{i(Oe(t.getLocale?.()));let le=t.subscribeLocale?.(Ae=>i(Oe(Ae)));return()=>{typeof le=="function"&&le()}},[t]);let l=(()=>{try{return r.state?.get()}catch{return}})(),[c,d]=S(l?.kind??o.kind),[p,u]=S(l?.title??o.title),[m,f]=S(l?.description??o.description),[g,h]=S(l?.picks??Om(o.kind)),b=Wm(r.id,o),[v,w]=S(()=>qm(b));$(()=>Vm(b,w),[b]);let[k,x]=S(!1),[T,F]=S(null),[V,D]=S(!o.fingerprint),[j,A]=S(null),[L,U]=S(null),[N,oe]=S(!1),[_,C]=S(null),[P,G]=S(null),[Y,q]=S(()=>Date.now()),te=K(!0);$(()=>()=>{te.current=!1},[]);let pe=o.mode==="auto",qe=t.app?.buildFeedbackReport,ge=le=>{try{r.state?.set({kind:c,title:p,description:m,picks:g,...le})}catch{}},Ie=le=>{jm(b,le)};$(()=>{if(v||!o.fingerprint)return;let le=!0;return H(`/feedback/match?fingerprint=${encodeURIComponent(o.fingerprint)}`).then(Ae=>{le&&(Ae.ok&&Ae.data?.ticket?.id?F(Ae.data.ticket):Ae.ok||x(!0),D(!0))}),()=>{le=!1}},[o.fingerprint]);let Ze=v?.status==="sent"?v.ticketId:null;$(()=>{if(!Ze)return;let le=!0;return H(`/feedback/${encodeURIComponent(Ze)}`).then(Ae=>{!le||!Ae.ok||G({status:Ae.data?.ticket?.status,replied:(Ae.data?.replies||[]).some(vt=>vt?.author_role==="admin")})}),()=>{le=!1}},[Ze]);let ve=Bm(v,Y)&&!P?.replied;$(()=>{if(!ve)return;let le=setInterval(()=>q(Date.now()),15e3);return()=>clearInterval(le)},[ve]);let Qe=async le=>{if(!Rl(le))return{report:null,failed:!1};if(typeof qe!="function")return{report:null,failed:!0};try{let Ae=await qe.call(t.app,{callId:r.id,result:r.result,diagnostics:le.logs,conversation:le.conversation,errors:le.errors});return{report:Ae,failed:!Ae}}catch{return{report:null,failed:!0}}},Ct=async le=>{A("send"),U(null),oe(!1);try{let Ae=async()=>{let Ge=await H("/auth/me");return Ge.ok?Ge.data?.user?.id||Ge.data?.id||null:Ge.status===401||Ge.transport==="not_signed_in"?"out":null},vt=await Ae();if(vt==="out")return oe(!0),!1;let ot=le.textOnly?{errors:!1,logs:!1,conversation:!1}:Il(g,le.auto),{report:je,failed:Dt}=await Qe(ot);if(Dt)return U(s("af.errReport")),!1;let Kt=await Ae();if(Kt==="out")return oe(!0),!1;if(vt!==Kt)return U(s("af.errAccount")),!1;let mt=je?[{filename:je.filename,mime_type:"application/json",size:je.bytes,data_base64:Um(je.json)}]:[],nn=Ml(p,m),Ke=le.append&&T?T:null,et=Ke?await H(`/feedback/${encodeURIComponent(Ke.id)}/replies`,{method:"POST",body:{content:nn,attachments:mt},timeoutMs:12e4}):await H("/feedback",{method:"POST",body:{description:nn,attachments:mt,source:le.auto?"agent-auto":"agent",...o.fingerprint?{fingerprint:o.fingerprint}:{},clientRef:Fm(b)},timeoutMs:12e4});if(!et.ok)return et.status===409&&(et.code==="withdrawn"||et.detail==="withdrawn")?(Ie({status:"withdrawn",at:Date.now()}),!1):(te.current&&(et.status===401||et.transport==="not_signed_in"?oe(!0):U(s("af.errSend",{err:et.detail||et.transport||String(et.status)}))),!1);let ue=Ke?Ke.id:et.data?.id;return ue?(Ie({status:"sent",ticketId:ue,sentAt:Date.now(),...le.auto?{auto:!0}:{},...Ke?{appended:!0}:{}}),te.current&&q(Date.now()),!0):(te.current&&U(s("af.errSend",{err:"no id"})),!1)}finally{te.current&&A(null)}};$(()=>{!pe||v||!V||T||k||!Pl(o,Date.now())||Gm(b)&&Ct({auto:!0}).finally(()=>Jm(b))},[pe,V,T,v,k]);let J=async()=>{if(v?.status!=="sent")return;A("withdraw"),U(null);let le=await H(`/feedback/${encodeURIComponent(v.ticketId)}/withdraw`,{method:"POST"});te.current&&(A(null),le.ok||le.status===404?Ie({status:"withdrawn",at:Date.now()}):U(le.status===409?s("af.errWithdrawLate"):s("af.errSend",{err:le.detail||le.transport||String(le.status)})))},he=async()=>{if(_){C(null);return}A("preview"),U(null);let{report:le,failed:Ae}=await Qe(Il(g,!1));te.current&&(A(null),Ae?U(s("af.errReport")):C(le))},xe=t.app?.openSettings,De=typeof xe=="function"?()=>xe.call(t.app,mn("feedback")):null,be=typeof xe=="function"?()=>xe.call(t.app,"plugins"):null,rt=typeof xe=="function"?()=>xe.call(t.app,mn("account")):null,_e=be&&n("div",{class:"fx-af-pref",children:[s("af.prefLead"),n("span",{children:s(pe?"af.modeAuto":"af.modeAsk")}),n("button",{type:"button",class:"fx-af-link",onClick:be,children:s("af.change")})]}),ct=L&&n("div",{class:"fx-af-warn",role:"alert",children:[L,L===s("af.errReport")&&n(I,{children:[" ",n("button",{type:"button",class:"fx-af-link",onClick:()=>void Ct({auto:!1,textOnly:!0,append:!!T}),children:s("af.sendTextOnly")})]})]}),lt=N&&n("div",{class:"fx-af-warn",role:"alert",children:[s("af.needLogin")," ",rt&&n("button",{type:"button",class:"fx-af-link",onClick:rt,children:s("af.login")})]});if(v?.status==="sent"){let le=P?.replied?s("af.replied"):P?.status?s(`fb.status.${P.status}`):null,Ae=Math.max(0,Math.ceil((v.sentAt+6e5-Y)/6e4));return n("div",{class:"fx-af","data-fx-agent-feedback":"sent",children:[n("style",{children:Ll}),n("div",{class:"fx-af-row",children:[n("span",{class:"fx-af-ok",children:n(B,{name:"check",size:13})}),n("div",{class:"fx-af-id",children:[n("div",{class:"fx-af-title",children:p}),n("div",{class:"fx-af-meta",children:v.appended?s("af.appended",{id:ai(v.ticketId)}):s(v.auto?"af.sentAuto":"af.sent",{id:ai(v.ticketId)})})]}),le&&n("span",{class:"fx-af-pill",children:le})]}),n("div",{class:"fx-af-foot",children:[n("span",{class:"fx-af-note",children:ve?s("af.withdrawLeft",{n:Ae}):s("af.replyInbox")}),n("span",{class:"fx-af-grow"}),ve&&n("button",{type:"button",class:"btn ghost sm",disabled:!!j,onClick:()=>void J(),children:s("af.withdraw")}),De&&n("button",{type:"button",class:"btn ghost sm",onClick:De,children:s("af.openFeedback")})]}),ct,v.auto&&_e]})}if(v?.status==="withdrawn"||v?.status==="dismissed")return n("div",{class:"fx-af","data-fx-agent-feedback":v.status,children:[n("style",{children:Ll}),n("div",{class:"fx-af-row",children:[n("div",{class:"fx-af-id",children:[n("div",{class:"fx-af-title is-muted",children:p}),n("div",{class:"fx-af-meta",children:s(v.status==="withdrawn"?"af.withdrawn":"af.dismissed")})]}),n("span",{class:"fx-af-grow"}),v.status==="dismissed"&&n("button",{type:"button",class:"btn ghost sm",onClick:()=>Ie(null),children:s("af.sendAnyway")})]})]});let Xt=pe&&j==="send"&&!T,$t=pe&&!T&&!k&&!j&&V&&!Pl(o,Y),Ht=(le,Ae)=>{let vt={...g,[le]:Ae};h(vt),C(null),ge({picks:vt})},ft=(le,Ae,vt,ot=!1)=>n("label",{class:"fx-af-opt","data-disabled":ot||void 0,children:[n("input",{type:"checkbox",checked:g[le]&&!ot,disabled:ot||!!j,onChange:je=>Ht(le,je.currentTarget.checked)}),n("span",{children:[n("b",{children:Ae}),n("small",{children:vt})]})]});return n("div",{class:"fx-af","data-fx-agent-feedback":Xt?"sending":"draft",children:[n("style",{children:Ll}),n("div",{class:"fx-af-kinds",role:"group","aria-label":s("af.kind"),children:["bug","idea","other"].map(le=>n("button",{type:"button",class:"fx-af-kind","aria-pressed":c===le,disabled:!!j,onClick:()=>{d(le),ge({kind:le})},children:s(`af.kind.${le}`)},le))}),n("div",{class:"fx-af-field",children:[n("input",{"aria-label":s("af.titleLabel"),value:p,maxLength:120,disabled:!!j,onInput:le=>{let Ae=le.currentTarget.value;u(Ae),ge({title:Ae})}}),n("textarea",{"aria-label":s("af.descLabel"),value:m,rows:3,disabled:!!j,onInput:le=>{let Ae=le.currentTarget.value;f(Ae),ge({description:Ae})}})]}),$t&&n("div",{class:"fx-af-box",children:s("af.staleAuto")}),pe&&k&&!j&&n("div",{class:"fx-af-box",children:s("af.matchFailed")}),T&&n("div",{class:"fx-af-box",children:s(pe?"af.dupAuto":"af.dup",{id:ai(T.id)})}),n("div",{class:"fx-af-h",children:s("af.includes")}),ft("errors",s("af.optErrors"),s("af.optErrorsHint")),ft("logs",s("af.optLogs"),s("af.optLogsHint")),ft("conversation",s("af.optConversation"),s(pe?"af.optConversationAuto":"af.optConversationHint"),pe),_&&n(I,{children:[n("div",{class:"fx-af-h",children:[_.filename," \xB7 ",hw(_.bytes),_.errorCount?` \xB7 ${s("af.errorCount",{n:_.errorCount})}`:""]}),n("pre",{class:"fx-af-pre",tabIndex:0,children:_.json.slice(0,2e4)})]}),n("div",{class:"fx-af-foot",children:[n("span",{class:"fx-af-note",children:s(Xt?"af.sendingAuto":"af.redacted")}),n("span",{class:"fx-af-grow"}),Rl(g)&&n("button",{type:"button",class:"btn ghost sm",disabled:!!j,onClick:()=>void he(),children:s(_?"af.hidePreview":"af.preview")}),n("button",{type:"button",class:"btn ghost sm",disabled:!!j,onClick:()=>Ie({status:"dismissed",at:Date.now()}),children:s("af.dismiss")}),n("button",{type:"button",class:"btn primary sm",disabled:!!j||!Ml(p,m),onClick:()=>void Ct({auto:!1,append:!!T}),children:j==="send"?s("af.sending"):T?s("af.appendTo",{id:ai(T.id)}):s("af.send")})]}),ct,lt,_e]})}function Xm(e){return!e||typeof e.registerToolResultRenderer!="function"?!1:(e.registerToolResultRenderer({tool:gw,title:()=>Ce(Oe(e.getLocale?.()),"af.title"),mount(t,o){let r=Nm(o?.result);if(!r)throw new Error("feedback_draft: unexpected result shape");return Fe(n(bw,{ctx:e,draft:r,call:o}),t),()=>{Fe(null,t)}}}),!0)}var Km={unknown:{key:"wc.pill.published",tone:"neutral"},live:{key:"wc.pill.live",tone:"ok"},pending:{key:"wc.pill.review",tone:"neutral"},approved:{key:"wc.pill.listed",tone:"ok"},rejected:{key:"wc.pill.rejected",tone:"danger"},disabled:{key:"web.disabled",tone:"danger"},gone:{key:"wc.pill.gone",tone:"muted"}};function Nl(e){if(e===void 0)return"unknown";if(e===null)return"gone";if(e.status==="disabled")return"disabled";let t=e.listing_status;return t==="pending"||t==="approved"||t==="rejected"?t:"live"}var Io=e=>e!=="gone"&&e!=="disabled";function Ym(e){if(typeof e!="string"||!e.startsWith("Published"))return null;let t=e.split(`
1826
+ `,1)[0],o=/^Published "(.*)" at (\S*) \((.*)\)\.?$/.exec(t);return o?{name:o[1],url:/^https?:\/\//i.test(o[2])?o[2]:"",size:/(?:^|, )(\d+(?:\.\d+)? [KM]B)(?:,|$)/.exec(o[3])?.[1]??null}:{name:"",url:"",size:null}}var Ol=(e,t,o)=>Rs(e,t,o),Dl=e=>{let t=Date.parse(String(e??""));return Number.isFinite(t)?t:0},Zm=e=>[...e].sort((t,o)=>Dl(o.updated_at)-Dl(t.updated_at)),vw=10*6e4,Qm=(e,t=Date.now())=>{let o=Dl(e);return o>0&&t-o<vw};var yw="publish_web_page",xw="forsion_account",Fl=5,ng=`
1822
1827
  .fx-wc { color: var(--text); font-size: var(--ui-font-body); line-height: var(--ui-line-body); }
1823
1828
  .fx-wc .fx-wc-form { display: grid; gap: 8px; margin-top: 10px; }
1824
1829
  .fx-wc .fx-wc-field { display: grid; gap: 6px; min-width: 0; color: var(--text-muted); font-size: var(--ui-font-meta); line-height: var(--ui-line-meta); }
@@ -1830,5 +1835,5 @@ ${r}`:o||r).slice(0,1e4)}function ym(e){return`agent:${String(e).replace(/[^A-Za
1830
1835
  .fx-wc .fx-wc-line { margin: 2px 0; color: var(--text-faint); font-size: var(--ui-font-meta); line-height: var(--ui-line-meta); }
1831
1836
  .fx-wc .fx-wc-rows { display: grid; gap: 2px; }
1832
1837
  .fx-wc .fx-wc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--text-faint); font-size: var(--ui-font-caption); line-height: var(--ui-line-caption); }
1833
- `,Ll=e=>e&&typeof e=="object"&&!Array.isArray(e)?e:null,Dm=e=>typeof e=="string"?e.trim():"";function Fm(e){let[t,o]=C(()=>De(e.getLocale?.()));return W(()=>{o(De(e.getLocale?.()));let r=e.subscribeLocale?.(a=>o(De(a)));return()=>{typeof r=="function"&&r()}},[e]),t}function Bm(e){let t=(()=>{try{return e.state?.get()}catch{return}})(),[o,r]=C(t?.data??null),[a,i]=C(t?.cloud??""),[s,l]=C(null),c=$e(),d=oe(0),p=oe(a),u=Bt(async()=>{let h=++d.current,v=await q("/connect/apps");if(!c.current||h!==d.current)return;if(!v.ok){l(v);return}let b=v.data||{},x=p.current;if(!b.publicBase&&!x){let w=await ee().authStatus?.().catch(()=>null);if(w?.cloudUrl&&(x=zr(w.cloudUrl)),!c.current||h!==d.current)return}p.current=x,r(b),i(x),l(null);try{e.state?.set({data:b,cloud:x})}catch{}},[]),[f,m]=C(0),g=oe(0);return W(()=>{u();let h=ee().onAuthChanged?.(()=>{d.current++,g.current++,m(g.current),r(null),l(null);try{e.state?.set(void 0)}catch{}u()});return()=>{typeof h=="function"&&h()}},[]),{data:o,fail:s,cloud:a,reload:u,gen:f,genRef:g}}function $m(e,t){let o=oe(null),r=oe(null),a=oe(null),i=oe(t);return i.current=t,Zn(()=>{if(o.current)return a.current=i.current,r.current=e.mountWebCard(o.current,i.current),()=>{let s=r.current;r.current=null,s?.dispose()}},[]),Zn(()=>{!r.current||a.current===t||(a.current=t,r.current.update(t))}),o}function Um(e){let t=ee().openExternal;if(t){t(e)?.catch(()=>{});return}try{window.open(e,"_blank","noopener,noreferrer")}catch{}}function Hm(e,t,o,r){let a=Im[t];return{status:{label:e(a.key),tone:a.tone},address:o?{text:o,icon:"globe",struck:t==="gone",muted:!Po(t)}:void 0,thumbnail:r&&Po(t)&&o?{url:o,version:r.updated_at}:null,placeholderIcon:"globe"}}function qm(e){let t=e.app?.openSettings;return typeof t=="function"?()=>t.call(e.app,fn("webpages")):null}var Wm=({a:e,t})=>e.error?n("div",{class:"fx-wc-msg",role:"alert",children:wt(e.error,t)}):null;function Bk(e){let{ctx:t,call:o,slug:r,argName:a,pub:i}=e,s=Fm(t),l=Cn(s),{data:c,cloud:d,reload:p,gen:u,genRef:f}=Bm(o),m=ve(),g=qm(t),[h,v]=C(null),[b,x]=C(null),[w,S]=C("idle"),T=oe(null),F=oe(null);W(()=>()=>{T.current&&clearTimeout(T.current),F.current&&clearTimeout(F.current)},[]);let B=c?(c.apps||[]).find(be=>be?.slug===r)??null:void 0,N=Il(B),j=c&&Rl(c,d,r)||i.url,_=m.pending,L=`/connect/apps/${encodeURIComponent(r)}`,$=(be,Qe,St,G)=>void m.run(async()=>{if(f.current!==u)return;let ge=await q(be,{method:Qe,body:St});if(!ge.ok)return qe(ge);G?.(),await p()}),P=()=>{T.current&&clearTimeout(T.current),T.current=null,x(null)};W(()=>{u&&(P(),v(null))},[u]);let K=be=>{T.current&&clearTimeout(T.current),x(be),T.current=setTimeout(()=>{T.current=null,x(null)},ha)},z=async()=>{let be=await Uo(j);S(be?"copied":"failed"),F.current&&clearTimeout(F.current),F.current=setTimeout(()=>S("idle"),1800)},A=B?.updated_at?Lm(B.updated_at)?l("wc.justPublished"):l("web.updated",{date:Lt(B.updated_at,s)}):"",R=B?As(B.total_bytes):i.size,X=[r,R,A,Po(N)?l("wc.anyone"):""].filter(Boolean).join(" \xB7 "),Q=!j||!Po(N),H=[{label:l("wc.open"),icon:"external-link",disabled:Q,run:()=>Um(j)},{label:l(w==="copied"?"common.copied":w==="failed"?"common.copyFailed":"web.copy"),icon:w==="copied"?"check":"copy",disabled:Q,run:()=>void z()}],te=g?{label:l("wc.viewInPages"),icon:"settings",run:g}:null,pe=[];b?pe=[{label:l(b==="unpublish"?"web.unpublishConfirm":"web.listingDelistConfirm"),variant:"danger",disabled:_,run:()=>{P(),$(b==="unpublish"?L:`${L}/listing`,"DELETE")}},{label:l("common.cancel"),disabled:_,run:P}]:N==="live"?pe=[{label:l("web.listingApply"),icon:"upload",disabled:_||h!==null,run:()=>{m.clear(),v("")}}]:N==="pending"?pe=[{label:l("web.listingWithdraw"),disabled:_,run:()=>$(`${L}/listing`,"DELETE")}]:N==="rejected"?pe=[{label:l("web.listingReapply"),icon:"upload",disabled:_||h!==null,run:()=>{m.clear(),v(B?.listing_summary||"")}}]:(N==="disabled"||N==="gone")&&te&&(pe=[te]);let Ue;if(N!=="unknown"){let be=[];N==="approved"&&be.push({label:l("web.listingDelist"),icon:"x",disabled:_,run:()=>K("delist")}),te&&!pe.includes(te)&&be.push({label:te.label,icon:te.icon,run:te.run});let Qe=N==="gone"?[]:[{label:l("web.unpublish"),icon:"trash-2",danger:!0,disabled:_,run:()=>K("unpublish")}];Ue=[...be,...be.length&&Qe.length?[{separator:!0}]:[],...Qe],Ue.length||(Ue=void 0)}let me={layout:"card",name:B?.name||i.name||a||r,...Hm(l,N,j,B),note:X,actions:H,trailing:pe,menu:Ue},Ie=$m(t.ui,me);return n("div",{class:"fx-wc","data-fx-web-card":N,"data-webpage":r,children:[n("style",{children:Om}),n("div",{ref:Ie}),h!==null&&n("form",{class:"fx-wc-form",onSubmit:be=>{be.preventDefault();let Qe=(h||"").trim();Qe&&$(`${L}/listing`,"PUT",{summary:Qe},()=>v(null))},children:[n("label",{class:"fx-wc-field",children:[n("span",{children:l("web.listingSummary")}),n("textarea",{rows:2,maxLength:Ss,value:h,disabled:_,placeholder:l("web.listingSummaryPh"),onInput:be=>v(be.currentTarget.value)}),n("small",{children:l("web.listingHint")})]}),n("div",{class:"fx-wc-acts",children:[n("button",{type:"submit",class:"btn sm primary",disabled:_||!h.trim(),children:l("web.listingSubmit")}),n("button",{type:"button",class:"btn sm",disabled:_,onClick:()=>{v(null),m.clear()},children:l("common.cancel")})]})]}),n(Wm,{a:m,t:l})]})}function $k(e){let t=$m(e.ui,e.card);return n("div",{ref:t,"data-webpage":e.slug})}function Uk(e){let{ctx:t,call:o}=e,r=Fm(t),a=Cn(r),{data:i,fail:s,cloud:l,reload:c,gen:d,genRef:p}=Bm(o),u=ve(),f=qm(t),[m,g]=C(null),h=oe(null);W(()=>()=>{h.current&&clearTimeout(h.current)},[]),W(()=>{d&&g(null)},[d]);let v=u.pending,b=(N,j)=>void u.run(async()=>{if(p.current!==d)return;let _=await q(N,{method:j});if(!_.ok)return qe(_);await c()}),x=N=>{let j=`/connect/apps/${encodeURIComponent(N.slug)}`,_=t.ui?.confirm;if(typeof _=="function"){_.call(t.ui,{title:a("wc.unpublishTitle",{name:N.name||N.slug}),body:a("wc.unpublishBody"),ok:a("web.unpublish"),cancel:a("common.cancel"),danger:!0}).then(L=>{L&&b(j,"DELETE")},()=>{});return}if(h.current&&clearTimeout(h.current),h.current=null,m===N.slug){g(null),b(j,"DELETE");return}g(N.slug),h.current=setTimeout(()=>{h.current=null,g(null)},ha)},w=i?.apps||[],S=Mm(w).slice(0,Ml),T=N=>{let j=Il(N),_=i?Rl(i,l,N.slug):"",L=`/connect/apps/${encodeURIComponent(N.slug)}`,$=j==="pending"?{label:a("web.listingWithdraw"),disabled:v,run:()=>b(`${L}/listing`,"DELETE")}:j==="approved"?{label:a("web.listingDelist"),icon:"x",disabled:v,run:()=>b(`${L}/listing`,"DELETE")}:(j==="live"||j==="rejected")&&f?{label:a(j==="live"?"web.listingApply":"web.listingReapply"),icon:"upload",run:f}:null,P=m===N.slug,K=Hm(a,j,_,N);return{layout:"row",name:N.name||N.slug,...K,status:P?{label:a("wc.unpublishAgain"),tone:"danger"}:K.status,menu:[{label:a("wc.open"),icon:"external-link",disabled:!_||!Po(j),run:()=>Um(_)},{label:a("web.copy"),icon:"copy",disabled:!_||!Po(j),run:()=>void Uo(_)},{separator:!0},...$?[$,{separator:!0}]:[],{label:a(P?"web.unpublishConfirm":"web.unpublish"),icon:"trash-2",danger:!0,disabled:v,run:()=>x(N)}]}},F=typeof i?.limit=="number"?a("web.used",{used:w.length,limit:i.limit}):a("wc.total",{n:w.length}),B=w.length>Ml?` \xB7 ${a("wc.more",{n:w.length-Ml})}`:"";return n("div",{class:"fx-wc","data-fx-web-pages":i?String(w.length):s?"error":"loading",children:[n("style",{children:Om}),i?S.length?n("div",{class:"fx-wc-rows",children:S.map(N=>n($k,{ui:t.ui,card:T(N),slug:N.slug},N.slug))}):n("p",{class:"fx-wc-line",children:a("web.empty")}):n("p",{class:"fx-wc-line",children:s?wt(zt(s),a):a("common.loading")}),i&&n("div",{class:"fx-wc-foot",children:[n("span",{children:[F,B]}),f&&n("button",{type:"button",class:"btn sm",onClick:f,children:a("wc.manage")})]}),n(Wm,{a:u,t:a})]})}function Nm(e,t){try{Oe(t,e)}catch(o){try{Oe(null,e)}catch{}throw o}return()=>{Oe(null,e)}}function Vm(e){if(!e||typeof e.registerToolResultRenderer!="function"||typeof e.ui?.mountWebCard!="function")return!1;let t=o=>()=>Se(De(e.getLocale?.()),o);return e.registerToolResultRenderer({tool:Ok,title:t("wc.title"),match:o=>{let r=Ll(o?.args);return!!r&&r.action!=="unpublish"},mount(o,r){let a=Ll(r?.args),i=Dm(a?.slug).toLowerCase(),s=Rm(r?.result);if(!a||a.action==="unpublish"||!i||!s)throw new Error("publish_web_page: unexpected result shape");return Nm(o,n(Bk,{ctx:e,call:r,slug:i,argName:Dm(a.name),pub:s}))}}),e.registerToolResultRenderer({tool:Fk,title:t("web.title"),match:o=>Ll(o?.args)?.section==="web_pages",mount(o,r){if(typeof r?.result!="string"||!r.result.startsWith("Published web pages:"))throw new Error("forsion_account web_pages: unexpected result shape");return Nm(o,n(Uk,{ctx:e,call:r}))}}),!0}var jm=/^[a-z0-9](?:[a-z0-9-]{1,30})?[a-z0-9]$/,Gm="forsion_connect_terms_v1",Hk=()=>{try{return localStorage.getItem(Gm)==="1"}catch{return!1}},qk=()=>{try{localStorage.setItem(Gm,"1")}catch{}};function Wk(e){let t=e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32).replace(/-+$/,"");if(t.length>=3&&jm.test(t))return t;let o=Math.random().toString(36).slice(2,6);return t?`${t}-${o}`.slice(0,32):`app-${o}`}async function tr(e,...t){let o=ee().cloudInvoke;if(!o)throw new Error("unavailable");return await o(e,...t)}function Jm(e){let{t,locale:o,ctx:r}=se(),{root:a,projectName:i,htmlFiles:s,onClose:l}=e,[c,d]=C("loading"),[p,u]=C(""),[f,m]=C(""),[g,h]=C(""),[v,b]=C(null),[x,w]=C(null),[S,T]=C(null),[F,B]=C({}),[N,j]=C(null),[_,L]=C(i),[$,P]=C(""),[K,z]=C(e.entry||s[0]||"index.html"),[A,R]=C(Qn),[X,Q]=C(null),[H,te]=C(!1),[pe,Ue]=C(!1),[me,Ie]=C(!1),[Ze,be]=C(""),[Qe,St]=C(!1),[G,ge]=C(!1),ye=oe(!1),Me=oe(null),he=oe(!0);W(()=>()=>{he.current=!1},[]);let rt=Bt(async(ue={})=>{m("");let je=await tr("connect:meta",a).catch(()=>({})),Ye;try{Ye=await tr("connect:list")??{ok:!1,code:"error",detail:"unavailable"}}catch(O){Ye={ok:!1,code:"error",detail:kt(O)}}if(!he.current)return;if(B(je&&typeof je=="object"?je:{}),!Ye.ok){if(Ye.code==="not_logged_in"){d("login");return}m(Ye.detail||t("err.generic")),d("form");return}h(Ye.base||""),b(Ye.handle||null),w({used:Ye.used??0,limit:Ye.limit??1,tier:Ye.tier||"free"}),j(Aa(Ye.authorPays)?Ye.authorPays:null);let an=je?.slug||Me.current,ht=an&&(Ye.apps||[]).find(O=>O.slug===an)||null;T(ht),ye.current?ue.resetAi&&ht&&R(qo(ht.ai)):(ye.current=!0,ht?(L(ht.name),P(ht.slug),ht.entry&&(s.length===0||s.includes(ht.entry))&&z(ht.entry),R(qo(ht.ai))):P(je?.slug||Wk(i))),d("form")},[a,i,s]);W(()=>{rt()},[rt]),W(()=>{let ue=je=>{je.key==="Escape"&&!p&&l()};return window.addEventListener("keydown",ue),()=>window.removeEventListener("keydown",ue)},[p,l]);let Ce=async()=>{u("login"),m("");try{await ee().forsionLogin?.(),await rt()}catch(ue){m(kt(ue))}finally{he.current&&u("")}},lt=!!F.usesSdk&&!!N,st=S?qo(S.ai):Qn,Jt=lt&&!Ta(A,st),$t=()=>{if(!Hk()){ge(!1),St(!0);return}ut()},Ut=()=>{G&&(qk(),St(!1),ut())},ut=async()=>{u("publish"),m(""),Q(null);let ue=!1,je="";try{let Ye=await tr("connect:publish",{dir:a,name:_.trim(),slug:$.trim(),entry:K});if(!Ye?.ok){if(!he.current)return;if(Ye?.code==="not_logged_in"){d("login");return}m(Ye?.detail||t("err.generic"));return}let an=Ye.slug||$.trim();if(Jt){let ht=await Pa(an,A,N);ht.ok?ue=!0:je=t("pub.aiSaveFailed",{reason:wt(zt(ht),t)})}if(!he.current)return;Q(Ye.url||null),Me.current=an,await rt({resetAi:ue}),je&&he.current&&m(je)}catch(Ye){he.current&&m(kt(Ye))}finally{he.current&&u("")}},ie=async()=>{if(S){if(!pe){Ue(!0);return}u("unpublish"),m(""),Ue(!1);try{let ue=await tr("connect:unpublish",S.slug);if(!he.current)return;if(!ue?.ok){m(ue?.detail||t("err.generic"));return}Q(null),T(null),await rt()}catch(ue){he.current&&m(kt(ue))}finally{he.current&&u("")}}},_e=async()=>{if(!(!S||!Ze.trim())){u("listing"),m("");try{let ue=await tr("connect:listingApply",{slug:S.slug,summary:Ze.trim()});if(!he.current)return;if(!ue?.ok){m(ue?.detail||t("err.generic"));return}Ie(!1),await rt()}catch(ue){he.current&&m(kt(ue))}finally{he.current&&u("")}}},gt=async()=>{if(S){u("listing"),m("");try{let ue=await tr("connect:listingWithdraw",S.slug);if(!he.current)return;if(!ue?.ok){m(ue?.detail||t("err.generic"));return}await rt()}catch(ue){he.current&&m(kt(ue))}finally{he.current&&u("")}}},ot=X||(S?.publicUrl&&/^https?:\/\//i.test(S.publicUrl)?S.publicUrl:null)||(S&&g&&v?`${g}/apps/${v}/${S.slug}/`:null),Ve=g?`${g}/legal/?slug=terms`:"",Rt=jm.test($)&&$.length>=3,Xt=c==="form"&&!p&&Rt&&!!_.trim()&&s.length>0&&s.includes(K),pt=async()=>{ot&&await Uo(ot)&&(te(!0),setTimeout(()=>{he.current&&te(!1)},1500))},nn=ue=>{if(!ot)return;let je=ee().openExternal;je&&(ue?.preventDefault(),je(ot)?.catch(()=>{}))},Ke=S?.listing_status||null,et=[t("pub.anyone")];return S&&typeof S.likes=="number"&&et.push(t("pub.likes",{n:ze(S.likes,o)})),S&&typeof S.favorites=="number"&&et.push(t("pub.saves",{n:ze(S.favorites,o)})),n("div",{class:"fx-pub-overlay",onMouseDown:ue=>{ue.target===ue.currentTarget&&!p&&l()},children:[n("style",{children:Ra}),n("div",{class:"fx-pub-card",role:"dialog","aria-modal":"true","aria-label":Qe?t("pub.titleTerms"):t("pub.title",{name:S?.name||i}),lang:o==="zh"?"zh-CN":"en","data-fx-publish":!0,children:[n("div",{class:"fx-pub-head",children:[n(U,{name:Qe?"shield":"rocket",size:15}),n("span",{class:"fx-pub-title",children:Qe?t("pub.titleTerms"):t("pub.title",{name:S?.name||i})}),n("button",{type:"button",class:"icon-btn","aria-label":t("pub.close"),title:t("pub.close"),disabled:p==="publish",onClick:l,children:n(U,{name:"x",size:15})})]}),Qe?n("div",{children:[n("p",{class:"fx-pub-desc",children:t("pub.termsIntro")}),n("ul",{class:"fx-pub-terms-list",children:[n("li",{children:t("pub.termsLi1")}),n("li",{children:t("pub.termsLi2")}),n("li",{children:t("pub.termsLi3")})]}),n("p",{class:"fx-pub-desc",children:t("pub.termsManage")}),n("label",{class:"fx-pub-agree",children:[n("input",{type:"checkbox",checked:G,onChange:ue=>ge(ue.currentTarget.checked)}),n("span",{children:[t("pub.termsAgreePre"),Ve?n("a",{href:Ve,target:"_blank",rel:"noreferrer",onClick:ue=>{let je=ee().openExternal;je&&(ue.preventDefault(),je(Ve)?.catch(()=>{}))},children:t("pub.termsGuidelines")}):n("strong",{children:t("pub.termsGuidelines")})]})]}),n("div",{class:"fx-pub-actions",children:[n("button",{type:"button",class:"fx-pub-ghost",onClick:()=>St(!1),children:t("common.cancel")}),n("span",{class:"fx-pub-spacer"}),n("button",{type:"button",class:"fx-pub-primary",disabled:!G,onClick:Ut,children:t("pub.termsConfirm")})]})]}):n(M,{children:[n("p",{class:"fx-pub-desc",children:t(S?"pub.descPublished":"pub.desc")}),c==="loading"&&n("div",{class:"fx-pub-busy","aria-busy":"true",children:n(Zt,{size:15})}),c==="login"&&n("div",{class:"fx-pub-login",children:[n("span",{children:t("pub.needLogin")}),n("button",{type:"button",class:"fx-pub-primary",disabled:p==="login",onClick:()=>void Ce(),children:p==="login"?n(M,{children:[n(Zt,{size:13}),t("pub.loginWaiting")]}):t("pub.login")})]}),c==="form"&&n(M,{children:[ot&&n(M,{children:[n("div",{class:"fx-pub-url",children:[n("a",{href:ot,target:"_blank",rel:"noreferrer",title:t("pub.open"),onClick:ue=>nn(ue),children:[n(U,{name:"globe",size:13}),ot.replace(/^https?:\/\//,"")]}),n("button",{type:"button",class:"icon-btn","aria-label":t(H?"pub.copied":"pub.copy"),title:t(H?"pub.copied":"pub.copy"),onClick:()=>void pt(),children:n(U,{name:H?"check":"copy",size:13})}),!!ee().openExternal&&n("button",{type:"button",class:"icon-btn","aria-label":t("pub.open"),title:t("pub.open"),onClick:()=>nn(),children:n(U,{name:"external",size:13})})]}),n("div",{class:"fx-pub-hint","data-fx-reach":!0,children:et.join(" \xB7 ")})]}),n("div",{class:"fx-pub-row",children:[n("label",{for:"fx-pub-name",children:t("pub.name")}),n("input",{id:"fx-pub-name",class:"fx-pub-input",value:_,maxLength:80,onInput:ue=>L(ue.currentTarget.value)})]}),!S&&n(M,{children:[n("div",{class:"fx-pub-row",children:[n("label",{for:"fx-pub-slug",children:t("pub.slug")}),n("input",{id:"fx-pub-slug",class:"fx-pub-input fx-pub-mono",value:$,maxLength:32,spellcheck:!1,onInput:ue=>{P(ue.currentTarget.value.toLowerCase()),m("")}})]}),!Rt&&$!==""&&n("div",{class:"fx-pub-hint fx-pub-warn",children:t("pub.slugHint")})]}),n("div",{class:"fx-pub-row",children:[n("label",{for:"fx-pub-entry",children:t("pub.entry")}),s.length>0?n("select",{id:"fx-pub-entry",class:"fx-pub-select",value:K,onChange:ue=>z(ue.currentTarget.value),children:s.map(ue=>n("option",{value:ue,children:ue},ue))}):n("span",{class:"fx-pub-hint fx-pub-warn",children:t("pub.noEntry")})]}),!S&&x&&n("div",{class:"fx-pub-hint",children:t("pub.slots",{used:x.used,limit:x.limit,tier:x.tier})}),!S&&n("div",{class:"fx-pub-hint",children:t("pub.hint")}),lt&&n(Ia,{draft:A,onChange:R,ap:N,methods:F.sdkMethods,unpublished:!S,cooldownUntil:S?.ai?.cooldownUntil,disabled:!!p,onBuy:()=>wr(r)}),S&&n("div",{class:"fx-pub-listing",children:[n("div",{class:"fx-pub-listing-row",children:[n(U,{name:"store",size:13}),n("span",{class:"fx-pub-listing-title",children:t("pub.listingTitle")}),n("span",{class:`fx-pub-lst is-${Ke||"none"}`,children:t(Ke==="pending"?"pub.listingPending":Ke==="approved"?"pub.listingApproved":Ke==="rejected"?"pub.listingRejected":"pub.listingNone")}),n("span",{class:"fx-pub-spacer"}),!Ke&&!me&&n("button",{type:"button",class:"fx-pub-ghost",disabled:!!p,onClick:()=>{be(""),Ie(!0)},children:t("web.listingApply")}),Ke==="rejected"&&!me&&n("button",{type:"button",class:"fx-pub-ghost",disabled:!!p,onClick:()=>{be(S.listing_summary||""),Ie(!0)},children:t("web.listingReapply")}),(Ke==="pending"||Ke==="approved")&&n("button",{type:"button",class:"fx-pub-ghost",disabled:!!p,onClick:()=>void gt(),children:p==="listing"?n(Zt,{}):t(Ke==="approved"?"web.listingDelist":"web.listingWithdraw")})]}),Ke==="rejected"&&S.listing_note&&n("div",{class:"fx-pub-hint fx-pub-warn",children:t("web.listingNote",{note:S.listing_note})}),me?n("div",{children:[n("textarea",{class:"fx-pub-input",rows:2,maxLength:300,autoFocus:!0,placeholder:t("web.listingSummaryPh"),value:Ze,onInput:ue=>be(ue.currentTarget.value)}),n("div",{class:"fx-pub-actions",children:[n("button",{type:"button",class:"fx-pub-ghost",onClick:()=>Ie(!1),children:t("common.cancel")}),n("span",{class:"fx-pub-spacer"}),n("button",{type:"button",class:"fx-pub-primary",disabled:!Ze.trim()||!!p,onClick:()=>void _e(),children:p==="listing"?n(Zt,{size:13}):t("web.listingSubmit")})]})]}):!Ke&&n("div",{class:"fx-pub-hint",children:t("pub.listingHint")})]}),f&&n("div",{class:"fx-pub-err",role:"alert",children:f}),n("div",{class:"fx-pub-actions",children:[S&&n("button",{type:"button",class:"fx-pub-danger",disabled:!!p,onClick:()=>void ie(),children:p==="unpublish"?n(Zt,{size:13}):t(pe?"web.unpublishConfirm":"web.unpublish")}),n("span",{class:"fx-pub-spacer"}),n("button",{type:"button",class:"fx-pub-ghost",disabled:p==="publish",onClick:l,children:t("pub.close")}),n("button",{type:"button",class:"fx-pub-primary",disabled:!Xt,onClick:()=>$t(),children:p==="publish"?n(M,{children:[n(Zt,{size:13}),t("pub.publishing")]}):S?n(M,{children:[n(U,{name:"refresh",size:13}),t(Jt?"pub.saveUpdate":"pub.update")]}):n(M,{children:[n(U,{name:"rocket",size:13}),t("pub.publish")]})})]})]})]})]})]})}var Vk="connect.publish";function jk(e){if(!e||typeof e!="object")return null;let t=e;if(typeof t.root!="string"||!t.root.trim())return null;let o=t.root,r=o.replace(/[\\/]+$/,"").split(/[\\/]/).pop()||o;return{root:o,projectName:typeof t.projectName=="string"&&t.projectName.trim()?t.projectName:r,entry:typeof t.entry=="string"&&t.entry?t.entry:null,htmlFiles:Array.isArray(t.htmlFiles)?t.htmlFiles.filter(a=>typeof a=="string"&&!!a):[]}}function Gk(e,t,o){return o.current?.close(),new Promise(r=>{let a=document.createElement("div");a.className="fx-pub-root",document.body.appendChild(a);let i=!1,s=()=>{i||(i=!0,o.current===l&&(o.current=null),Oe(null,a),a.remove(),r())},l={close:s};o.current=l,Oe(n(Os,{ctx:e,children:n(Jm,{...t,onClose:s})}),a)})}function Xm(e,t=window){let o=un(t?.tangu);if(!e||typeof e.registerCommand!="function"||!o?.cloudInvoke||!pn(o)||zn(o)||o.mobile||o.unitPage)return null;let r={current:null};return e.registerCommand({id:Vk,title:()=>Se(De(e.getLocale?.()),"pub.cmd"),keywords:"publish web page link connect forsion \u53D1\u5E03 \u7F51\u9875 \u94FE\u63A5 \u4E0A\u7EBF",run:a=>{let i=jk(a);if(!i){e.app?.notify?.(Se(De(e.getLocale?.()),"pub.cmdNoArgs"));return}return Gk(e,i,r)}}),{dispose:()=>r.current?.close()}}var Km;if(typeof ctx<"u"){let e=cm(ctx),t=dm(ctx);wp(ctx),kp(ctx),mm(ctx),Pm(ctx),Vm(ctx);let o=Xm(ctx),r=ld(ctx),a=Up(ctx),i=Of(ctx),s=tm(ctx),l=qf(ctx);(r||a||i||s||e||l||o||t)&&(Km=()=>{t?.(),r?.dispose(),a?.dispose(),i?.dispose(),s?.dispose(),l?.dispose(),o?.dispose(),e?.()})}return fg(Jk);})();
1838
+ `,Bl=e=>e&&typeof e=="object"&&!Array.isArray(e)?e:null,eg=e=>typeof e=="string"?e.trim():"";function og(e){let[t,o]=S(()=>Oe(e.getLocale?.()));return $(()=>{o(Oe(e.getLocale?.()));let r=e.subscribeLocale?.(a=>o(Oe(a)));return()=>{typeof r=="function"&&r()}},[e]),t}function rg(e){let t=(()=>{try{return e.state?.get()}catch{return}})(),[o,r]=S(t?.data??null),[a,i]=S(t?.cloud??""),[s,l]=S(null),c=Le(),d=K(0),p=K(a),u=it(async()=>{let h=++d.current,b=await H("/connect/apps");if(!c.current||h!==d.current)return;if(!b.ok){l(b);return}let v=b.data||{},w=p.current;if(!v.publicBase&&!w){let k=await Q().authStatus?.().catch(()=>null);if(k?.cloudUrl&&(w=Ar(k.cloudUrl)),!c.current||h!==d.current)return}p.current=w,r(v),i(w),l(null);try{e.state?.set({data:v,cloud:w})}catch{}},[]),[m,f]=S(0),g=K(0);return $(()=>{u();let h=Q().onAuthChanged?.(()=>{d.current++,g.current++,f(g.current),r(null),l(null);try{e.state?.set(void 0)}catch{}u()});return()=>{typeof h=="function"&&h()}},[]),{data:o,fail:s,cloud:a,reload:u,gen:m,genRef:g}}function ag(e,t){let o=K(null),r=K(null),a=K(null),i=K(t);return i.current=t,eo(()=>{if(o.current)return a.current=i.current,r.current=e.mountWebCard(o.current,i.current),()=>{let s=r.current;r.current=null,s?.dispose()}},[]),eo(()=>{!r.current||a.current===t||(a.current=t,r.current.update(t))}),o}function ig(e){let t=Q().openExternal;if(t){t(e)?.catch(()=>{});return}try{window.open(e,"_blank","noopener,noreferrer")}catch{}}function sg(e,t,o,r){let a=Km[t];return{status:{label:e(a.key),tone:a.tone},address:o?{text:o,icon:"globe",struck:t==="gone",muted:!Io(t)}:void 0,thumbnail:r&&Io(t)&&o?{url:o,version:r.updated_at}:null,placeholderIcon:"globe"}}function lg(e){let t=e.app?.openSettings;return typeof t=="function"?()=>t.call(e.app,mn("webpages")):null}var cg=({a:e,t})=>e.error?n("div",{class:"fx-wc-msg",role:"alert",children:ht(e.error,t)}):null;function kw(e){let{ctx:t,call:o,slug:r,argName:a,pub:i}=e,s=og(t),l=_n(s),{data:c,cloud:d,reload:p,gen:u,genRef:m}=rg(o),f=me(),g=lg(t),[h,b]=S(null),[v,w]=S(null),[k,x]=S("idle"),T=K(null),F=K(null);$(()=>()=>{T.current&&clearTimeout(T.current),F.current&&clearTimeout(F.current)},[]);let V=c?(c.apps||[]).find(ve=>ve?.slug===r)??null:void 0,D=Nl(V),j=c&&Ol(c,d,r)||i.url,A=f.pending,L=`/connect/apps/${encodeURIComponent(r)}`,U=(ve,Qe,Ct,J)=>void f.run(async()=>{if(m.current!==u)return;let he=await H(ve,{method:Qe,body:Ct});if(!he.ok)return Be(he);J?.(),await p()}),N=()=>{T.current&&clearTimeout(T.current),T.current=null,w(null)};$(()=>{u&&(N(),b(null))},[u]);let oe=ve=>{T.current&&clearTimeout(T.current),w(ve),T.current=setTimeout(()=>{T.current=null,w(null)},xa)},_=async()=>{let ve=await Wo(j);x(ve?"copied":"failed"),F.current&&clearTimeout(F.current),F.current=setTimeout(()=>x("idle"),1800)},C=V?.updated_at?Qm(V.updated_at)?l("wc.justPublished"):l("web.updated",{date:It(V.updated_at,s)}):"",P=V?Is(V.total_bytes):i.size,G=[r,P,C,Io(D)?l("wc.anyone"):""].filter(Boolean).join(" \xB7 "),Y=!j||!Io(D),q=[{label:l("wc.open"),icon:"external-link",disabled:Y,run:()=>ig(j)},{label:l(k==="copied"?"common.copied":k==="failed"?"common.copyFailed":"web.copy"),icon:k==="copied"?"check":"copy",disabled:Y,run:()=>void _()}],te=g?{label:l("wc.viewInPages"),icon:"settings",run:g}:null,pe=[];v?pe=[{label:l(v==="unpublish"?"web.unpublishConfirm":"web.listingDelistConfirm"),variant:"danger",disabled:A,run:()=>{N(),U(v==="unpublish"?L:`${L}/listing`,"DELETE")}},{label:l("common.cancel"),disabled:A,run:N}]:D==="live"?pe=[{label:l("web.listingApply"),icon:"upload",disabled:A||h!==null,run:()=>{f.clear(),b("")}}]:D==="pending"?pe=[{label:l("web.listingWithdraw"),disabled:A,run:()=>U(`${L}/listing`,"DELETE")}]:D==="rejected"?pe=[{label:l("web.listingReapply"),icon:"upload",disabled:A||h!==null,run:()=>{f.clear(),b(V?.listing_summary||"")}}]:(D==="disabled"||D==="gone")&&te&&(pe=[te]);let qe;if(D!=="unknown"){let ve=[];D==="approved"&&ve.push({label:l("web.listingDelist"),icon:"x",disabled:A,run:()=>oe("delist")}),te&&!pe.includes(te)&&ve.push({label:te.label,icon:te.icon,run:te.run});let Qe=D==="gone"?[]:[{label:l("web.unpublish"),icon:"trash-2",danger:!0,disabled:A,run:()=>oe("unpublish")}];qe=[...ve,...ve.length&&Qe.length?[{separator:!0}]:[],...Qe],qe.length||(qe=void 0)}let ge={layout:"card",name:V?.name||i.name||a||r,...sg(l,D,j,V),note:G,actions:q,trailing:pe,menu:qe},Ie=ag(t.ui,ge);return n("div",{class:"fx-wc","data-fx-web-card":D,"data-webpage":r,children:[n("style",{children:ng}),n("div",{ref:Ie}),h!==null&&n("form",{class:"fx-wc-form",onSubmit:ve=>{ve.preventDefault();let Qe=(h||"").trim();Qe&&U(`${L}/listing`,"PUT",{summary:Qe},()=>b(null))},children:[n("label",{class:"fx-wc-field",children:[n("span",{children:l("web.listingSummary")}),n("textarea",{rows:2,maxLength:Es,value:h,disabled:A,placeholder:l("web.listingSummaryPh"),onInput:ve=>b(ve.currentTarget.value)}),n("small",{children:l("web.listingHint")})]}),n("div",{class:"fx-wc-acts",children:[n("button",{type:"submit",class:"btn sm primary",disabled:A||!h.trim(),children:l("web.listingSubmit")}),n("button",{type:"button",class:"btn sm",disabled:A,onClick:()=>{b(null),f.clear()},children:l("common.cancel")})]})]}),n(cg,{a:f,t:l})]})}function ww(e){let t=ag(e.ui,e.card);return n("div",{ref:t,"data-webpage":e.slug})}function zw(e){let{ctx:t,call:o}=e,r=og(t),a=_n(r),{data:i,fail:s,cloud:l,reload:c,gen:d,genRef:p}=rg(o),u=me(),m=lg(t),[f,g]=S(null),h=K(null);$(()=>()=>{h.current&&clearTimeout(h.current)},[]),$(()=>{d&&g(null)},[d]);let b=u.pending,v=(D,j)=>void u.run(async()=>{if(p.current!==d)return;let A=await H(D,{method:j});if(!A.ok)return Be(A);await c()}),w=D=>{let j=`/connect/apps/${encodeURIComponent(D.slug)}`,A=t.ui?.confirm;if(typeof A=="function"){A.call(t.ui,{title:a("wc.unpublishTitle",{name:D.name||D.slug}),body:a("wc.unpublishBody"),ok:a("web.unpublish"),cancel:a("common.cancel"),danger:!0}).then(L=>{L&&v(j,"DELETE")},()=>{});return}if(h.current&&clearTimeout(h.current),h.current=null,f===D.slug){g(null),v(j,"DELETE");return}g(D.slug),h.current=setTimeout(()=>{h.current=null,g(null)},xa)},k=i?.apps||[],x=Zm(k).slice(0,Fl),T=D=>{let j=Nl(D),A=i?Ol(i,l,D.slug):"",L=`/connect/apps/${encodeURIComponent(D.slug)}`,U=j==="pending"?{label:a("web.listingWithdraw"),disabled:b,run:()=>v(`${L}/listing`,"DELETE")}:j==="approved"?{label:a("web.listingDelist"),icon:"x",disabled:b,run:()=>v(`${L}/listing`,"DELETE")}:(j==="live"||j==="rejected")&&m?{label:a(j==="live"?"web.listingApply":"web.listingReapply"),icon:"upload",run:m}:null,N=f===D.slug,oe=sg(a,j,A,D);return{layout:"row",name:D.name||D.slug,...oe,status:N?{label:a("wc.unpublishAgain"),tone:"danger"}:oe.status,menu:[{label:a("wc.open"),icon:"external-link",disabled:!A||!Io(j),run:()=>ig(A)},{label:a("web.copy"),icon:"copy",disabled:!A||!Io(j),run:()=>void Wo(A)},{separator:!0},...U?[U,{separator:!0}]:[],{label:a(N?"web.unpublishConfirm":"web.unpublish"),icon:"trash-2",danger:!0,disabled:b,run:()=>w(D)}]}},F=typeof i?.limit=="number"?a("web.used",{used:k.length,limit:i.limit}):a("wc.total",{n:k.length}),V=k.length>Fl?` \xB7 ${a("wc.more",{n:k.length-Fl})}`:"";return n("div",{class:"fx-wc","data-fx-web-pages":i?String(k.length):s?"error":"loading",children:[n("style",{children:ng}),i?x.length?n("div",{class:"fx-wc-rows",children:x.map(D=>n(ww,{ui:t.ui,card:T(D),slug:D.slug},D.slug))}):n("p",{class:"fx-wc-line",children:a("web.empty")}):n("p",{class:"fx-wc-line",children:s?ht(ut(s),a):a("common.loading")}),i&&n("div",{class:"fx-wc-foot",children:[n("span",{children:[F,V]}),m&&n("button",{type:"button",class:"btn sm",onClick:m,children:a("wc.manage")})]}),n(cg,{a:u,t:a})]})}function tg(e,t){try{Fe(t,e)}catch(o){try{Fe(null,e)}catch{}throw o}return()=>{Fe(null,e)}}function dg(e){if(!e||typeof e.registerToolResultRenderer!="function"||typeof e.ui?.mountWebCard!="function")return!1;let t=o=>()=>Ce(Oe(e.getLocale?.()),o);return e.registerToolResultRenderer({tool:yw,title:t("wc.title"),match:o=>{let r=Bl(o?.args);return!!r&&r.action!=="unpublish"},mount(o,r){let a=Bl(r?.args),i=eg(a?.slug).toLowerCase(),s=Ym(r?.result);if(!a||a.action==="unpublish"||!i||!s)throw new Error("publish_web_page: unexpected result shape");return tg(o,n(kw,{ctx:e,call:r,slug:i,argName:eg(a.name),pub:s}))}}),e.registerToolResultRenderer({tool:xw,title:t("web.title"),match:o=>Bl(o?.args)?.section==="web_pages",mount(o,r){if(typeof r?.result!="string"||!r.result.startsWith("Published web pages:"))throw new Error("forsion_account web_pages: unexpected result shape");return tg(o,n(zw,{ctx:e,call:r}))}}),!0}var ug=/^[a-z0-9](?:[a-z0-9-]{1,30})?[a-z0-9]$/,pg="forsion_connect_terms_v1",Sw=()=>{try{return localStorage.getItem(pg)==="1"}catch{return!1}},Cw=()=>{try{localStorage.setItem(pg,"1")}catch{}};function _w(e){let t=e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,32).replace(/-+$/,"");if(t.length>=3&&ug.test(t))return t;let o=Math.random().toString(36).slice(2,6);return t?`${t}-${o}`.slice(0,32):`app-${o}`}async function rr(e,...t){let o=Q().cloudInvoke;if(!o)throw new Error("unavailable");return await o(e,...t)}function fg(e){let{t,locale:o,ctx:r}=ae(),{root:a,projectName:i,htmlFiles:s,onClose:l}=e,[c,d]=S("loading"),[p,u]=S(""),[m,f]=S(""),[g,h]=S(""),[b,v]=S(null),[w,k]=S(null),[x,T]=S(null),[F,V]=S({}),[D,j]=S(null),[A,L]=S(i),[U,N]=S(""),[oe,_]=S(e.entry||s[0]||"index.html"),[C,P]=S(to),[G,Y]=S(null),[q,te]=S(!1),[pe,qe]=S(!1),[ge,Ie]=S(!1),[Ze,ve]=S(""),[Qe,Ct]=S(!1),[J,he]=S(!1),xe=K(!1),De=K(null),be=K(!0);$(()=>()=>{be.current=!1},[]);let rt=it(async(ue={})=>{f("");let Ge=await rr("connect:meta",a).catch(()=>({})),Ye;try{Ye=await rr("connect:list")??{ok:!1,code:"error",detail:"unavailable"}}catch(O){Ye={ok:!1,code:"error",detail:St(O)}}if(!be.current)return;if(V(Ge&&typeof Ge=="object"?Ge:{}),!Ye.ok){if(Ye.code==="not_logged_in"){d("login");return}f(Ye.detail||t("err.generic")),d("form");return}h(Ye.base||""),v(Ye.handle||null),k({used:Ye.used??0,limit:Ye.limit??1,tier:Ye.tier||"free"}),j(La(Ye.authorPays)?Ye.authorPays:null);let an=Ge?.slug||De.current,yt=an&&(Ye.apps||[]).find(O=>O.slug===an)||null;T(yt),xe.current?ue.resetAi&&yt&&P(jo(yt.ai)):(xe.current=!0,yt?(L(yt.name),N(yt.slug),yt.entry&&(s.length===0||s.includes(yt.entry))&&_(yt.entry),P(jo(yt.ai))):N(Ge?.slug||_w(i))),d("form")},[a,i,s]);$(()=>{rt()},[rt]),$(()=>{let ue=Ge=>{Ge.key==="Escape"&&!p&&l()};return window.addEventListener("keydown",ue),()=>window.removeEventListener("keydown",ue)},[p,l]);let _e=async()=>{u("login"),f("");try{await Q().forsionLogin?.(),await rt()}catch(ue){f(St(ue))}finally{be.current&&u("")}},ct=!!F.usesSdk&&!!D,lt=x?jo(x.ai):to,Xt=ct&&!up(C,lt),$t=()=>{if(!Sw()){he(!1),Ct(!0);return}ft()},Ht=()=>{J&&(Cw(),Ct(!1),ft())},ft=async()=>{u("publish"),f(""),Y(null);let ue=!1,Ge="";try{let Ye=await rr("connect:publish",{dir:a,name:A.trim(),slug:U.trim(),entry:oe});if(!Ye?.ok){if(!be.current)return;if(Ye?.code==="not_logged_in"){d("login");return}f(Ye?.detail||t("err.generic"));return}let an=Ye.slug||U.trim();if(Xt){let yt=await xp(an,C,D);yt.ok?ue=!0:Ge=t("pub.aiSaveFailed",{reason:ht(ut(yt),t)})}if(!be.current)return;Y(Ye.url||null),De.current=an,await rt({resetAi:ue}),Ge&&be.current&&f(Ge)}catch(Ye){be.current&&f(St(Ye))}finally{be.current&&u("")}},le=async()=>{if(x){if(!pe){qe(!0);return}u("unpublish"),f(""),qe(!1);try{let ue=await rr("connect:unpublish",x.slug);if(!be.current)return;if(!ue?.ok){f(ue?.detail||t("err.generic"));return}Y(null),T(null),await rt()}catch(ue){be.current&&f(St(ue))}finally{be.current&&u("")}}},Ae=async()=>{if(!(!x||!Ze.trim())){u("listing"),f("");try{let ue=await rr("connect:listingApply",{slug:x.slug,summary:Ze.trim()});if(!be.current)return;if(!ue?.ok){f(ue?.detail||t("err.generic"));return}Ie(!1),await rt()}catch(ue){be.current&&f(St(ue))}finally{be.current&&u("")}}},vt=async()=>{if(x){u("listing"),f("");try{let ue=await rr("connect:listingWithdraw",x.slug);if(!be.current)return;if(!ue?.ok){f(ue?.detail||t("err.generic"));return}await rt()}catch(ue){be.current&&f(St(ue))}finally{be.current&&u("")}}},ot=G||(x?.publicUrl&&/^https?:\/\//i.test(x.publicUrl)?x.publicUrl:null)||(x&&g&&b?`${g}/apps/${b}/${x.slug}/`:null),je=g?`${g}/legal/?slug=terms`:"",Dt=ug.test(U)&&U.length>=3,Kt=c==="form"&&!p&&Dt&&!!A.trim()&&s.length>0&&s.includes(oe),mt=async()=>{ot&&await Wo(ot)&&(te(!0),setTimeout(()=>{be.current&&te(!1)},1500))},nn=ue=>{if(!ot)return;let Ge=Q().openExternal;Ge&&(ue?.preventDefault(),Ge(ot)?.catch(()=>{}))},Ke=x?.listing_status||null,et=[t("pub.anyone")];return x&&typeof x.likes=="number"&&et.push(t("pub.likes",{n:ze(x.likes,o)})),x&&typeof x.favorites=="number"&&et.push(t("pub.saves",{n:ze(x.favorites,o)})),n("div",{class:"fx-pub-overlay",onMouseDown:ue=>{ue.target===ue.currentTarget&&!p&&l()},children:[n("style",{children:Oa}),n("div",{class:"fx-pub-card",role:"dialog","aria-modal":"true","aria-label":Qe?t("pub.titleTerms"):t("pub.title",{name:x?.name||i}),lang:o==="zh"?"zh-CN":"en","data-fx-publish":!0,children:[n("div",{class:"fx-pub-head",children:[n(B,{name:Qe?"shield":"rocket",size:15}),n("span",{class:"fx-pub-title",children:Qe?t("pub.titleTerms"):t("pub.title",{name:x?.name||i})}),n("button",{type:"button",class:"icon-btn","aria-label":t("pub.close"),title:t("pub.close"),disabled:p==="publish",onClick:l,children:n(B,{name:"x",size:15})})]}),Qe?n("div",{children:[n("p",{class:"fx-pub-desc",children:t("pub.termsIntro")}),n("ul",{class:"fx-pub-terms-list",children:[n("li",{children:t("pub.termsLi1")}),n("li",{children:t("pub.termsLi2")}),n("li",{children:t("pub.termsLi3")})]}),n("p",{class:"fx-pub-desc",children:t("pub.termsManage")}),n("label",{class:"fx-pub-agree",children:[n("input",{type:"checkbox",checked:J,onChange:ue=>he(ue.currentTarget.checked)}),n("span",{children:[t("pub.termsAgreePre"),je?n("a",{href:je,target:"_blank",rel:"noreferrer",onClick:ue=>{let Ge=Q().openExternal;Ge&&(ue.preventDefault(),Ge(je)?.catch(()=>{}))},children:t("pub.termsGuidelines")}):n("strong",{children:t("pub.termsGuidelines")})]})]}),n("div",{class:"fx-pub-actions",children:[n("button",{type:"button",class:"fx-pub-ghost",onClick:()=>Ct(!1),children:t("common.cancel")}),n("span",{class:"fx-pub-spacer"}),n("button",{type:"button",class:"fx-pub-primary",disabled:!J,onClick:Ht,children:t("pub.termsConfirm")})]})]}):n(I,{children:[n("p",{class:"fx-pub-desc",children:t(x?"pub.descPublished":"pub.desc")}),c==="loading"&&n("div",{class:"fx-pub-busy","aria-busy":"true",children:n(Qt,{size:15})}),c==="login"&&n("div",{class:"fx-pub-login",children:[n("span",{children:t("pub.needLogin")}),n("button",{type:"button",class:"fx-pub-primary",disabled:p==="login",onClick:()=>void _e(),children:p==="login"?n(I,{children:[n(Qt,{size:13}),t("pub.loginWaiting")]}):t("pub.login")})]}),c==="form"&&n(I,{children:[ot&&n(I,{children:[n("div",{class:"fx-pub-url",children:[n("a",{href:ot,target:"_blank",rel:"noreferrer",title:t("pub.open"),onClick:ue=>nn(ue),children:[n(B,{name:"globe",size:13}),ot.replace(/^https?:\/\//,"")]}),n("button",{type:"button",class:"icon-btn","aria-label":t(q?"pub.copied":"pub.copy"),title:t(q?"pub.copied":"pub.copy"),onClick:()=>void mt(),children:n(B,{name:q?"check":"copy",size:13})}),!!Q().openExternal&&n("button",{type:"button",class:"icon-btn","aria-label":t("pub.open"),title:t("pub.open"),onClick:()=>nn(),children:n(B,{name:"external",size:13})})]}),n("div",{class:"fx-pub-hint","data-fx-reach":!0,children:et.join(" \xB7 ")})]}),n("div",{class:"fx-pub-row",children:[n("label",{for:"fx-pub-name",children:t("pub.name")}),n("input",{id:"fx-pub-name",class:"fx-pub-input",value:A,maxLength:80,onInput:ue=>L(ue.currentTarget.value)})]}),!x&&n(I,{children:[n("div",{class:"fx-pub-row",children:[n("label",{for:"fx-pub-slug",children:t("pub.slug")}),n("input",{id:"fx-pub-slug",class:"fx-pub-input fx-pub-mono",value:U,maxLength:32,spellcheck:!1,onInput:ue=>{N(ue.currentTarget.value.toLowerCase()),f("")}})]}),!Dt&&U!==""&&n("div",{class:"fx-pub-hint fx-pub-warn",children:t("pub.slugHint")})]}),n("div",{class:"fx-pub-row",children:[n("label",{for:"fx-pub-entry",children:t("pub.entry")}),s.length>0?n("select",{id:"fx-pub-entry",class:"fx-pub-select",value:oe,onChange:ue=>_(ue.currentTarget.value),children:s.map(ue=>n("option",{value:ue,children:ue},ue))}):n("span",{class:"fx-pub-hint fx-pub-warn",children:t("pub.noEntry")})]}),!x&&w&&n("div",{class:"fx-pub-hint",children:t("pub.slots",{used:w.used,limit:w.limit,tier:w.tier})}),!x&&n("div",{class:"fx-pub-hint",children:t("pub.hint")}),ct&&n(Na,{draft:C,onChange:P,ap:D,methods:F.sdkMethods,unpublished:!x,cooldownUntil:x?.ai?.cooldownUntil,disabled:!!p,onBuy:()=>_r(r)}),x&&n("div",{class:"fx-pub-listing",children:[n("div",{class:"fx-pub-listing-row",children:[n(B,{name:"store",size:13}),n("span",{class:"fx-pub-listing-title",children:t("pub.listingTitle")}),n("span",{class:`fx-pub-lst is-${Ke||"none"}`,children:t(Ke==="pending"?"pub.listingPending":Ke==="approved"?"pub.listingApproved":Ke==="rejected"?"pub.listingRejected":"pub.listingNone")}),n("span",{class:"fx-pub-spacer"}),!Ke&&!ge&&n("button",{type:"button",class:"fx-pub-ghost",disabled:!!p,onClick:()=>{ve(""),Ie(!0)},children:t("web.listingApply")}),Ke==="rejected"&&!ge&&n("button",{type:"button",class:"fx-pub-ghost",disabled:!!p,onClick:()=>{ve(x.listing_summary||""),Ie(!0)},children:t("web.listingReapply")}),(Ke==="pending"||Ke==="approved")&&n("button",{type:"button",class:"fx-pub-ghost",disabled:!!p,onClick:()=>void vt(),children:p==="listing"?n(Qt,{}):t(Ke==="approved"?"web.listingDelist":"web.listingWithdraw")})]}),Ke==="rejected"&&x.listing_note&&n("div",{class:"fx-pub-hint fx-pub-warn",children:t("web.listingNote",{note:x.listing_note})}),ge?n("div",{children:[n("textarea",{class:"fx-pub-input",rows:2,maxLength:300,autoFocus:!0,placeholder:t("web.listingSummaryPh"),value:Ze,onInput:ue=>ve(ue.currentTarget.value)}),n("div",{class:"fx-pub-actions",children:[n("button",{type:"button",class:"fx-pub-ghost",onClick:()=>Ie(!1),children:t("common.cancel")}),n("span",{class:"fx-pub-spacer"}),n("button",{type:"button",class:"fx-pub-primary",disabled:!Ze.trim()||!!p,onClick:()=>void Ae(),children:p==="listing"?n(Qt,{size:13}):t("web.listingSubmit")})]})]}):!Ke&&n("div",{class:"fx-pub-hint",children:t("pub.listingHint")})]}),m&&n("div",{class:"fx-pub-err",role:"alert",children:m}),n("div",{class:"fx-pub-actions",children:[x&&n("button",{type:"button",class:"fx-pub-danger",disabled:!!p,onClick:()=>void le(),children:p==="unpublish"?n(Qt,{size:13}):t(pe?"web.unpublishConfirm":"web.unpublish")}),n("span",{class:"fx-pub-spacer"}),n("button",{type:"button",class:"fx-pub-ghost",disabled:p==="publish",onClick:l,children:t("pub.close")}),n("button",{type:"button",class:"fx-pub-primary",disabled:!Kt,onClick:()=>$t(),children:p==="publish"?n(I,{children:[n(Qt,{size:13}),t("pub.publishing")]}):x?n(I,{children:[n(B,{name:"refresh",size:13}),t(Xt?"pub.saveUpdate":"pub.update")]}):n(I,{children:[n(B,{name:"rocket",size:13}),t("pub.publish")]})})]})]})]})]})]})}var Aw="connect.publish";function Tw(e){if(!e||typeof e!="object")return null;let t=e;if(typeof t.root!="string"||!t.root.trim())return null;let o=t.root,r=o.replace(/[\\/]+$/,"").split(/[\\/]/).pop()||o;return{root:o,projectName:typeof t.projectName=="string"&&t.projectName.trim()?t.projectName:r,entry:typeof t.entry=="string"&&t.entry?t.entry:null,htmlFiles:Array.isArray(t.htmlFiles)?t.htmlFiles.filter(a=>typeof a=="string"&&!!a):[]}}function Ew(e,t,o){return o.current?.close(),new Promise(r=>{let a=document.createElement("div");a.className="fx-pub-root",document.body.appendChild(a);let i=!1,s=()=>{i||(i=!0,o.current===l&&(o.current=null),Fe(null,a),a.remove(),r())},l={close:s};o.current=l,Fe(n($s,{ctx:e,children:n(fg,{...t,onClose:s})}),a)})}function mg(e,t=window){let o=un(t?.tangu);if(!e||typeof e.registerCommand!="function"||!o?.cloudInvoke||!pn(o)||Sn(o)||o.mobile||o.unitPage)return null;let r={current:null};return e.registerCommand({id:Aw,title:()=>Ce(Oe(e.getLocale?.()),"pub.cmd"),keywords:"publish web page link connect forsion \u53D1\u5E03 \u7F51\u9875 \u94FE\u63A5 \u4E0A\u7EBF",run:a=>{let i=Tw(a);if(!i){e.app?.notify?.(Ce(Oe(e.getLocale?.()),"pub.cmdNoArgs"));return}return Ew(e,i,r)}}),{dispose:()=>r.current?.close()}}var gg;if(typeof ctx<"u"){let e=Tm(ctx),t=Em(ctx);$p(ctx),Up(ctx),Mm(ctx),Xm(ctx),dg(ctx);let o=mg(ctx),r=md(ctx),a=sf(ctx),i=nm(ctx),s=xm(ctx),l=lm(ctx);(r||a||i||s||e||l||o||t)&&(gg=()=>{t?.(),r?.dispose(),a?.dispose(),i?.dispose(),s?.dispose(),l?.dispose(),o?.dispose(),e?.()})}return Ig(Pw);})();
1834
1839
  return __fxExtend.dispose;