@mushi-mushi/web 1.22.4 → 1.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,15 @@
1
- (function(){'use strict';var Eo=Object.defineProperty;var ut=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(n){throw r=[n],n}};var fn=(t,e)=>{for(var r in e)Eo(t,r,{get:e[r],enumerable:true});};function Ro(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in t&&t.BYTES_PER_ELEMENT===1}function gn(t,e=""){if(typeof t!="number"){let r=e&&`"${e}" `;throw new TypeError(`${r}expected number, got ${typeof t}`)}if(!Number.isSafeInteger(t)||t<0){let r=e&&`"${e}" `;throw new RangeError(`${r}expected integer >= 0, got ${t}`)}}function dt(t,e,r=""){let n=Ro(t),s=t?.length,o=e!==void 0;if(!n||o){let l=r&&`"${r}" `,i="",a=n?`length=${s}`:`type=${typeof t}`,h=l+"expected Uint8Array"+i+", got "+a;throw n?new RangeError(h):new TypeError(h)}return t}function bn(t){if(typeof t!="function"||typeof t.create!="function")throw new TypeError("Hash must wrapped by utils.createHasher");if(gn(t.outputLen),gn(t.blockLen),t.outputLen<1)throw new Error('"outputLen" must be >= 1');if(t.blockLen<1)throw new Error('"blockLen" must be >= 1')}function Xe(t,e=true){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function Tt(t,e){dt(t,void 0,"digestInto() output");let r=e.outputLen;if(t.length<r)throw new RangeError('"digestInto() output" expected to be of length >='+r)}function Ae(...t){for(let e=0;e<t.length;e++)t[e].fill(0);}function Mt(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function ke(t,e){return t<<32-e|t>>>e}function ze(t,e={}){let r=(s,o)=>t(o).update(s).digest(),n=t(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.canXOF=n.canXOF,r.create=s=>t(s),Object.assign(r,e),Object.freeze(r)}var Ve,$t=ut(()=>{"use strict";Ve=t=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,t])});});function yn(t,e,r){return t&e^~t&r}function vn(t,e,r){return t&e^t&r^e&r}var pt,_e,Pe,ne,se,xn=ut(()=>{"use strict";$t();pt=class{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(e,r,n,s){this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=s,this.buffer=new Uint8Array(e),this.view=Mt(this.buffer);}update(e){Xe(this),dt(e);let{view:r,buffer:n,blockLen:s}=this,o=e.length;for(let l=0;l<o;){let i=Math.min(s-this.pos,o-l);if(i===s){let a=Mt(e);for(;s<=o-l;l+=s)this.process(a,l);continue}n.set(e.subarray(l,l+i),this.pos),this.pos+=i,l+=i,this.pos===s&&(this.process(r,0),this.pos=0);}return this.length+=e.length,this.roundClean(),this}digestInto(e){Xe(this),Tt(e,this),this.finished=!0;let{buffer:r,view:n,blockLen:s,isLE:o}=this,{pos:l}=this;r[l++]=128,Ae(this.buffer.subarray(l)),this.padOffset>s-l&&(this.process(n,0),l=0);for(let m=l;m<s;m++)r[m]=0;n.setBigUint64(s-8,BigInt(this.length*8),o),this.process(n,0);let i=Mt(e),a=this.outputLen;if(a%4)throw new Error("_sha2: outputLen must be aligned to 32bit");let h=a/4,p=this.get();if(h>p.length)throw new Error("_sha2: outputLen bigger than state");for(let m=0;m<h;m++)i.setUint32(4*m,p[m],o);}digest(){let{buffer:e,outputLen:r}=this;this.digestInto(e);let n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){e||=new this.constructor,e.set(...this.get());let{blockLen:r,buffer:n,length:s,finished:o,destroyed:l,pos:i}=this;return e.destroyed=l,e.finished=o,e.length=s,e.pos=i,s%r&&e.buffer.set(n),e}clone(){return this._cloneInto()}},_e=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Pe=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),ne=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),se=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]);});function Co(t,e=false){return e?{h:Number(t&Lt),l:Number(t>>wn&Lt)}:{h:Number(t>>wn&Lt)|0,l:Number(t&Lt)|0}}function Sn(t,e=false){let r=t.length,n=new Uint32Array(r),s=new Uint32Array(r);for(let o=0;o<r;o++){let{h:l,l:i}=Co(t[o],e);[n[o],s[o]]=[l,i];}return [n,s]}function Re(t,e,r,n){let s=(e>>>0)+(n>>>0);return {h:t+r+(s/2**32|0)|0,l:s|0}}var Lt,wn,hr,mr,Ke,Ge,ht,mt,kn,En,Rn,Cn,Tn,Mn,$n=ut(()=>{"use strict";Lt=BigInt(4294967295),wn=BigInt(32);hr=(t,e,r)=>t>>>r,mr=(t,e,r)=>t<<32-r|e>>>r,Ke=(t,e,r)=>t>>>r|e<<32-r,Ge=(t,e,r)=>t<<32-r|e>>>r,ht=(t,e,r)=>t<<64-r|e>>>r-32,mt=(t,e,r)=>t>>>r-32|e<<64-r;kn=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),En=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,Rn=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),Cn=(t,e,r,n,s)=>e+r+n+s+(t/2**32|0)|0,Tn=(t,e,r,n,s)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(s>>>0),Mn=(t,e,r,n,s,o)=>e+r+n+s+o+(t/2**32|0)|0;});var fr={};fn(fr,{_SHA224:()=>_t,_SHA256:()=>At,_SHA384:()=>Ht,_SHA512:()=>Pt,_SHA512_224:()=>Dt,_SHA512_256:()=>Ot,sha224:()=>Ao,sha256:()=>Io,sha384:()=>Po,sha512:()=>_o,sha512_224:()=>Do,sha512_256:()=>Ho});var Mo,Ue,It,At,_t,Ln,$o,Lo,Fe,qe,Je,Pt,Ht,le,ce,Dt,Ot,Io,Ao,_o,Po,Ho,Do,gr=ut(()=>{"use strict";xn();$n();$t();Mo=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Ue=new Uint32Array(64),It=class extends pt{constructor(e){super(64,e,8,!1);}get(){let{A:e,B:r,C:n,D:s,E:o,F:l,G:i,H:a}=this;return [e,r,n,s,o,l,i,a]}set(e,r,n,s,o,l,i,a){this.A=e|0,this.B=r|0,this.C=n|0,this.D=s|0,this.E=o|0,this.F=l|0,this.G=i|0,this.H=a|0;}process(e,r){for(let m=0;m<16;m++,r+=4)Ue[m]=e.getUint32(r,!1);for(let m=16;m<64;m++){let b=Ue[m-15],u=Ue[m-2],f=ke(b,7)^ke(b,18)^b>>>3,v=ke(u,17)^ke(u,19)^u>>>10;Ue[m]=v+Ue[m-7]+f+Ue[m-16]|0;}let{A:n,B:s,C:o,D:l,E:i,F:a,G:h,H:p}=this;for(let m=0;m<64;m++){let b=ke(i,6)^ke(i,11)^ke(i,25),u=p+b+yn(i,a,h)+Mo[m]+Ue[m]|0,v=(ke(n,2)^ke(n,13)^ke(n,22))+vn(n,s,o)|0;p=h,h=a,a=i,i=l+u|0,l=o,o=s,s=n,n=u+v|0;}n=n+this.A|0,s=s+this.B|0,o=o+this.C|0,l=l+this.D|0,i=i+this.E|0,a=a+this.F|0,h=h+this.G|0,p=p+this.H|0,this.set(n,s,o,l,i,a,h,p);}roundClean(){Ae(Ue);}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),Ae(this.buffer);}},At=class extends It{A=_e[0]|0;B=_e[1]|0;C=_e[2]|0;D=_e[3]|0;E=_e[4]|0;F=_e[5]|0;G=_e[6]|0;H=_e[7]|0;constructor(){super(32);}},_t=class extends It{A=Pe[0]|0;B=Pe[1]|0;C=Pe[2]|0;D=Pe[3]|0;E=Pe[4]|0;F=Pe[5]|0;G=Pe[6]|0;H=Pe[7]|0;constructor(){super(28);}},Ln=Sn(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),$o=Ln[0],Lo=Ln[1],Fe=new Uint32Array(80),qe=new Uint32Array(80),Je=class extends pt{constructor(e){super(128,e,16,!1);}get(){let{Ah:e,Al:r,Bh:n,Bl:s,Ch:o,Cl:l,Dh:i,Dl:a,Eh:h,El:p,Fh:m,Fl:b,Gh:u,Gl:f,Hh:v,Hl:E}=this;return [e,r,n,s,o,l,i,a,h,p,m,b,u,f,v,E]}set(e,r,n,s,o,l,i,a,h,p,m,b,u,f,v,E){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=s|0,this.Ch=o|0,this.Cl=l|0,this.Dh=i|0,this.Dl=a|0,this.Eh=h|0,this.El=p|0,this.Fh=m|0,this.Fl=b|0,this.Gh=u|0,this.Gl=f|0,this.Hh=v|0,this.Hl=E|0;}process(e,r){for(let w=0;w<16;w++,r+=4)Fe[w]=e.getUint32(r),qe[w]=e.getUint32(r+=4);for(let w=16;w<80;w++){let P=Fe[w-15]|0,y=qe[w-15]|0,k=Ke(P,y,1)^Ke(P,y,8)^hr(P,y,7),R=Ge(P,y,1)^Ge(P,y,8)^mr(P,y,7),x=Fe[w-2]|0,B=qe[w-2]|0,N=Ke(x,B,19)^ht(x,B,61)^hr(x,B,6),Z=Ge(x,B,19)^mt(x,B,61)^mr(x,B,6),X=Rn(R,Z,qe[w-7],qe[w-16]),j=Cn(X,k,N,Fe[w-7],Fe[w-16]);Fe[w]=j|0,qe[w]=X|0;}let{Ah:n,Al:s,Bh:o,Bl:l,Ch:i,Cl:a,Dh:h,Dl:p,Eh:m,El:b,Fh:u,Fl:f,Gh:v,Gl:E,Hh:M,Hl:C}=this;for(let w=0;w<80;w++){let P=Ke(m,b,14)^Ke(m,b,18)^ht(m,b,41),y=Ge(m,b,14)^Ge(m,b,18)^mt(m,b,41),k=m&u^~m&v,R=b&f^~b&E,x=Tn(C,y,R,Lo[w],qe[w]),B=Mn(x,M,P,k,$o[w],Fe[w]),N=x|0,Z=Ke(n,s,28)^ht(n,s,34)^ht(n,s,39),X=Ge(n,s,28)^mt(n,s,34)^mt(n,s,39),j=n&o^n&i^o&i,V=s&l^s&a^l&a;M=v|0,C=E|0,v=u|0,E=f|0,u=m|0,f=b|0,{h:m,l:b}=Re(h|0,p|0,B|0,N|0),h=i|0,p=a|0,i=o|0,a=l|0,o=n|0,l=s|0;let O=kn(N,X,V);n=En(O,B,Z,j),s=O|0;}(({h:n,l:s}=Re(this.Ah|0,this.Al|0,n|0,s|0))),{h:o,l}=Re(this.Bh|0,this.Bl|0,o|0,l|0),{h:i,l:a}=Re(this.Ch|0,this.Cl|0,i|0,a|0),{h,l:p}=Re(this.Dh|0,this.Dl|0,h|0,p|0),{h:m,l:b}=Re(this.Eh|0,this.El|0,m|0,b|0),{h:u,l:f}=Re(this.Fh|0,this.Fl|0,u|0,f|0),{h:v,l:E}=Re(this.Gh|0,this.Gl|0,v|0,E|0),{h:M,l:C}=Re(this.Hh|0,this.Hl|0,M|0,C|0),this.set(n,s,o,l,i,a,h,p,m,b,u,f,v,E,M,C);}roundClean(){Ae(Fe,qe);}destroy(){this.destroyed=!0,Ae(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);}},Pt=class extends Je{Ah=se[0]|0;Al=se[1]|0;Bh=se[2]|0;Bl=se[3]|0;Ch=se[4]|0;Cl=se[5]|0;Dh=se[6]|0;Dl=se[7]|0;Eh=se[8]|0;El=se[9]|0;Fh=se[10]|0;Fl=se[11]|0;Gh=se[12]|0;Gl=se[13]|0;Hh=se[14]|0;Hl=se[15]|0;constructor(){super(64);}},Ht=class extends Je{Ah=ne[0]|0;Al=ne[1]|0;Bh=ne[2]|0;Bl=ne[3]|0;Ch=ne[4]|0;Cl=ne[5]|0;Dh=ne[6]|0;Dl=ne[7]|0;Eh=ne[8]|0;El=ne[9]|0;Fh=ne[10]|0;Fl=ne[11]|0;Gh=ne[12]|0;Gl=ne[13]|0;Hh=ne[14]|0;Hl=ne[15]|0;constructor(){super(48);}},le=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),ce=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),Dt=class extends Je{Ah=le[0]|0;Al=le[1]|0;Bh=le[2]|0;Bl=le[3]|0;Ch=le[4]|0;Cl=le[5]|0;Dh=le[6]|0;Dl=le[7]|0;Eh=le[8]|0;El=le[9]|0;Fh=le[10]|0;Fl=le[11]|0;Gh=le[12]|0;Gl=le[13]|0;Hh=le[14]|0;Hl=le[15]|0;constructor(){super(28);}},Ot=class extends Je{Ah=ce[0]|0;Al=ce[1]|0;Bh=ce[2]|0;Bl=ce[3]|0;Ch=ce[4]|0;Cl=ce[5]|0;Dh=ce[6]|0;Dl=ce[7]|0;Eh=ce[8]|0;El=ce[9]|0;Fh=ce[10]|0;Fl=ce[11]|0;Gh=ce[12]|0;Gl=ce[13]|0;Hh=ce[14]|0;Hl=ce[15]|0;constructor(){super(32);}},Io=ze(()=>new At,Ve(1)),Ao=ze(()=>new _t,Ve(4)),_o=ze(()=>new Pt,Ve(3)),Po=ze(()=>new Ht,Ve(2)),Ho=ze(()=>new Ot,Ve(6)),Do=ze(()=>new Dt,Ve(5));});var In={};fn(In,{_HMAC:()=>ft,hmac:()=>Oo});var ft,Oo,An=ut(()=>{"use strict";$t();ft=class{oHash;iHash;blockLen;outputLen;canXOF=!1;finished=!1;destroyed=!1;constructor(e,r){if(bn(e),dt(r,void 0,"key"),this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let n=this.blockLen,s=new Uint8Array(n);s.set(r.length>n?e.create().update(r).digest():r);for(let o=0;o<s.length;o++)s[o]^=54;this.iHash.update(s),this.oHash=e.create();for(let o=0;o<s.length;o++)s[o]^=106;this.oHash.update(s),Ae(s);}update(e){return Xe(this),this.iHash.update(e),this}digestInto(e){Xe(this),Tt(e,this),this.finished=!0;let r=e.subarray(0,this.outputLen);this.iHash.digestInto(r),this.oHash.update(r),this.oHash.digestInto(r),this.destroy();}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||=Object.create(Object.getPrototypeOf(this),{});let{oHash:r,iHash:n,finished:s,destroyed:o,blockLen:l,outputLen:i}=this;return e=e,e.finished=s,e.destroyed=o,e.blockLen=l,e.outputLen=i,e.oHash=r._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy();}},Oo=(()=>{let t=((e,r,n)=>new ft(e,r).update(n).digest());return t.create=(e,r)=>new ft(e,r),t})();});var Bo=4194304,Kn=1.5*1024*1024;function No(t){try{return JSON.stringify(t)}catch{return null}}function Uo(t,e=Bo){let r=No(t);if(r===null)return {ok:false,bytes:0,maxBytes:e,serializeFailed:true,reason:"Report could not be serialized (circular reference in metadata?)"};let n=new TextEncoder().encode(r).length;return n<=e?{ok:true,bytes:n,maxBytes:e}:{ok:false,bytes:n,maxBytes:e,reason:`Report payload ${_n(n)} exceeds limit ${_n(e)}`}}function _n(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(2)} MB`}function Gn(){try{let r=globalThis.crypto?.subtle;if(r&&typeof r.digest=="function"&&typeof r.importKey=="function"&&typeof r.sign=="function")return r}catch{}return null}function Ft(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}async function wr(t){let e=Gn();if(e){let n=await e.digest("SHA-256",new TextEncoder().encode(t));return Ft(new Uint8Array(n))}let{sha256:r}=await Promise.resolve().then(()=>(gr(),fr));return Ft(r(new TextEncoder().encode(t)))}async function Fo(t,e){let r=Gn();if(r){let l=await r.importKey("raw",new TextEncoder().encode(t),{name:"HMAC",hash:"SHA-256"},false,["sign"]),i=await r.sign("HMAC",l,new TextEncoder().encode(e));return Ft(new Uint8Array(i))}let{hmac:n}=await Promise.resolve().then(()=>(An(),In)),{sha256:s}=await Promise.resolve().then(()=>(gr(),fr)),o=n(s,new TextEncoder().encode(t),new TextEncoder().encode(e));return Ft(o)}var Pn=false,qo="X-Mushi-User-Token",jo="X-Mushi-Project",Yn="X-Mushi-SDK-Package",Xn="X-Mushi-SDK-Version";function Wo(t){let e={"Content-Type":"application/json","X-Mushi-Api-Key":t.apiKey,[jo]:t.projectId};return t.sdkPackage&&(e[Yn]=t.sdkPackage),t.sdkVersion&&(e[Xn]=t.sdkVersion),t.userToken&&(e[qo]=t.userToken),t.internalKind&&(e[gt]=t.internalKind),e}var qt="https://dxptnwrhwsqckaftyymj.supabase.co/functions/v1/api",gt="X-Mushi-Internal",Ze="__mushiInternal",zo=1e4,Vo=2,Ko=4,Go=3e4;function Jn(t){let{projectId:e,apiKey:r,apiEndpoint:n=qt,timeout:s=zo,maxRetries:o=Vo,getUserToken:l,sdkPackage:i,sdkVersion:a,circuitBreaker:h}=t,p=n.replace(/\/$/,""),m=h?.enabled!==false,b=Math.max(1,h?.threshold??Ko),u=Math.max(1e3,h?.cooldownMs??Go),f=0,v=0,E=()=>m&&v>Date.now(),M=()=>{f=0,v=0;},C=()=>{m&&(f+=1,f>=b&&(v=Date.now()+u));};async function w(y,k,R,x=o,B,N){if(E())return {ok:false,error:{code:"CIRCUIT_OPEN",message:"Endpoint temporarily unavailable; retrying later."}};let Z=`${p}${k}`,X=new AbortController,j=setTimeout(()=>X.abort(),s),V=l?.()??null;try{let O=await fetch(Z,{method:y,headers:{...Wo({apiKey:r,projectId:e,sdkPackage:i,sdkVersion:a,userToken:V,internalKind:B}),...N},body:R?JSON.stringify(R):void 0,signal:X.signal,...B?{[Ze]:B}:{}});if(clearTimeout(j),O.status===307||O.status===308){let ee=O.headers.get("Location");if(ee&&x>0){let Q=ee.replace(/\/v1\/.*$/,"").replace(/\/$/,"");if(Q!==p)return p=Q,w(y,k,R,x-1,B,N)}}if(!O.ok){let ee=await O.json().catch(()=>({}));if((O.status===401||O.status===403)&&!Pn){Pn=!0;let Q=p===qt?"Get the correct values at: https://kensaur.us/mushi-mushi/admin/projects":"Get the correct values from your Mushi console's Projects page.";console.error(`[Mushi] Credentials rejected (HTTP ${O.status}). Check your Project ID and API key scope (must be "report:write"). `+Q);}return O.status>=500&&x>0?(await Hn(Dn(o-x)),w(y,k,R,x-1,B,N)):(O.status>=500?C():M(),{ok:!1,error:{code:ee.error?.code||`HTTP_${O.status}`,message:ee.error?.message||ee.message||`HTTP ${O.status} error`}})}let _=await O.json(),L=_&&typeof _=="object"&&"ok"in _&&"data"in _?_.data:_;return M(),{ok:!0,data:L}}catch(O){return clearTimeout(j),x>0&&Yo(O)?(await Hn(Dn(o-x)),w(y,k,R,x-1,B)):(C(),{ok:false,error:{code:"NETWORK_ERROR",message:O instanceof Error?O.message:"Unknown network error"}})}}async function P(y,k,R,x){let B=await wr(R),N=String(Date.now()),Z=await Fo(r,`${e}.${N}.${B}`),X=`${p}${k}`,j=await fetch(X,{method:y,headers:{"Content-Type":"application/json","X-Mushi-Api-Key":r,"X-Mushi-Project":e,...i?{[Yn]:i}:{},...a?{[Xn]:a}:{},[gt]:"reporter-poll","X-Reporter-Token-Hash":B,"X-Reporter-Ts":N,"X-Reporter-Hmac":Z},body:x?JSON.stringify(x):void 0,[Ze]:"reporter-poll"});if(!j.ok){let O=await j.json().catch(()=>({}));return {ok:false,error:{code:`HTTP_${j.status}`,message:O.error?.message??O.message??`HTTP ${j.status} error`}}}let V=await j.json();return {ok:true,data:V.data??V}}return {async submitReport(y){let k=Uo(y);return k.ok?w("POST","/v1/reports",y,o,"report-submit"):{ok:false,error:{code:k.serializeFailed?"SERIALIZE_FAILED":"PAYLOAD_TOO_LARGE",message:k.reason??"Report payload exceeds size limit"}}},async getReportStatus(y){return w("GET",`/v1/reports/${y}/status`,void 0,o,"report-status")},async getSdkConfig(){return w("GET","/v1/sdk/config",void 0,o,"sdk-config")},async askAssistant(y){return w("POST","/v1/sdk/assistant",{message:y.message,threadId:y.threadId??null,context:y.context??null},1,"community")},async getLatestSdkVersion(y){let k=new URLSearchParams({package:y}).toString();return w("GET",`/v1/sdk/latest-version?${k}`,void 0,o,"sdk-config")},async postDiscoveryEvent(y){return w("POST","/v1/sdk/discovery",y,1,"discovery")},async listReporterReports(y){return P("GET","/v1/reporter/reports",y)},async listReporterComments(y,k){return P("GET",`/v1/reporter/reports/${y}/comments`,k)},async replyToReporterReport(y,k,R,x){return P("POST",`/v1/reporter/reports/${y}/reply`,k,{body:R,...x?{feedback_signal:x}:{}})},async reopenReporterReport(y,k,R){return P("POST",`/v1/reporter/reports/${y}/reopen`,k,{note:R??""})},async listNotifications(y,k){let R=new URLSearchParams;k?.since&&R.set("since",k.since),k?.limit&&R.set("limit",String(k.limit));let x=R.size?`?${R.toString()}`:"";return P("GET",`/v1/notifications${x}`,y)},async markNotificationRead(y,k){return P("POST",`/v1/notifications/${y}/read`,k,{})},async listReporterFeatureBoard(y){return P("GET","/v1/reporter/feature-board",y)},async voteReporterFeatureBoard(y,k){return P("POST",`/v1/reporter/feature-board/${y}/vote`,k,{})},async submitActivity(y,k,R){return w("POST","/v1/sdk/activity",{user_id:y,user_traits:R?.userTraits,opted_in:R?.optedIn,reporter_token_hash:R?.reporterTokenHash,...R?.hostJwt?{host_jwt:R.hostJwt}:{},events:k},1,"discovery")},async getMyPoints(y){return w("GET",`/v1/sdk/me/points?userId=${encodeURIComponent(y)}`,void 0,1,"reporter-poll")},async getMyTier(y){return w("GET",`/v1/sdk/me/tier?userId=${encodeURIComponent(y)}`,void 0,1,"reporter-poll")},async getMyHistory(y,k){let R=new URLSearchParams({userId:y,...k?.limit?{limit:String(k.limit)}:{}});return w("GET",`/v1/sdk/me/history?${R}`,void 0,1,"reporter-poll")},async getHallOfFame(y=10){return w("GET",`/v1/sdk/hall-of-fame?limit=${y}`,void 0,1,"reporter-poll")},async sendMagicLink(y){return w("POST","/v1/tester/magic-link",{email:y},1,"community")},async linkReporterToken(y,k){return w("POST","/v1/tester/link-reporter",{reporter_token_hash:y},1,"community",{Authorization:`Bearer ${k}`})},async getCrossAppReports(y,k){let R=new URLSearchParams;k?.limit&&R.set("limit",String(k.limit)),k?.offset&&R.set("offset",String(k.offset));let x=R.size?`?${R.toString()}`:"";return w("GET",`/v1/tester/cross-app-reports${x}`,void 0,1,"community",{Authorization:`Bearer ${y}`})},async getMyReputation(y){return w("GET","/v1/tester/reputation",void 0,1,"community",{Authorization:`Bearer ${y}`})},async getPublicLeaderboard(y=20){return w("GET",`/v1/public/tester-leaderboard?limit=${y}`,void 0,1,"reporter-poll")},async getTesterStatus(y){return w("GET","/v1/me/tester-status",void 0,1,"community",{Authorization:`Bearer ${y}`})}}}function Hn(t){return new Promise(e=>setTimeout(e,t))}function Dn(t){return Math.min(1e3*2**t+Math.random()*500,1e4)}function Yo(t){return t instanceof DOMException&&t.name==="AbortError"||t instanceof TypeError}function br(...t){return t.find(e=>e!==void 0&&e!=="")}function xe(t){try{let e=undefined;return typeof e=="object"&&e!==null?e[t]:void 0}catch{return}}function He(t){try{return t()}catch{return}}function Zn(){let t=br(xe("VITE_MUSHI_PROJECT_ID"),xe("NEXT_PUBLIC_MUSHI_PROJECT_ID"),xe("NUXT_PUBLIC_MUSHI_PROJECT_ID"),xe("EXPO_PUBLIC_MUSHI_PROJECT_ID"),He(()=>process.env.NEXT_PUBLIC_MUSHI_PROJECT_ID),He(()=>process.env.EXPO_PUBLIC_MUSHI_PROJECT_ID),He(()=>process.env.MUSHI_PROJECT_ID)),e=br(xe("VITE_MUSHI_API_KEY"),xe("NEXT_PUBLIC_MUSHI_API_KEY"),xe("NUXT_PUBLIC_MUSHI_API_KEY"),xe("EXPO_PUBLIC_MUSHI_API_KEY"),He(()=>process.env.NEXT_PUBLIC_MUSHI_API_KEY),He(()=>process.env.EXPO_PUBLIC_MUSHI_API_KEY),He(()=>process.env.MUSHI_API_KEY)),r=br(xe("VITE_MUSHI_API_ENDPOINT"),xe("NEXT_PUBLIC_MUSHI_API_ENDPOINT"),xe("NUXT_PUBLIC_MUSHI_API_ENDPOINT"),xe("EXPO_PUBLIC_MUSHI_API_ENDPOINT"),He(()=>process.env.NEXT_PUBLIC_MUSHI_API_ENDPOINT),He(()=>process.env.EXPO_PUBLIC_MUSHI_API_ENDPOINT),He(()=>process.env.MUSHI_API_ENDPOINT)),n={};return t&&(n.projectId=t),e&&(n.apiKey=e),r&&(n.apiEndpoint=r),n}var Xo=10,Jo=2e3,Zo=[/^(.)\1{10,}$/,/^[A-Z\s!?]{20,}$/,/^[\d\s]+$/,/^[^a-zA-Z\u00C0-\u024F\u4E00-\u9FFF\u3040-\u309F\u30A0-\u30FF]{10,}$/,/^(asdf|qwerty|lorem ipsum)[.,!?\s]*$/i],Qo=/^[bcdfghjklmnpqrstvwxz]{6,}/i;function Qn(t={}){let{enabled:e=true,blockObviousSpam:r=true,minDescriptionLength:n=Xo,maxDescriptionLength:s=Jo}=t;function o(i){if(!e)return {passed:true};let a=i.trim();if(a.length<n)return {passed:false,reason:`Too short (min ${n} characters)`};if(a.length>s)return {passed:false,reason:`Too long (max ${s} characters)`};if(r){for(let p of Zo)if(p.test(a))return {passed:false,reason:"Detected as spam"};if(Qo.test(a))return {passed:false,reason:"Detected as gibberish"};if(a.split(/\s+/).filter(p=>p.length>1).length<2)return {passed:false,reason:"Description needs at least 2 words"}}return {passed:true}}function l(i){let a=i.trim();return a.length<=s?a:a.slice(0,s)+"..."}return {check:o,truncate:l}}var On={debug:10,info:20,warn:30,error:40,fatal:50,silent:99},ei={debug:"DBG",info:"INF",warn:"WRN",error:"ERR",fatal:"FTL"},me={reset:"\x1B[0m",dim:"\x1B[2m",bold:"\x1B[1m",cyan:"\x1B[36m",green:"\x1B[32m",yellow:"\x1B[33m",red:"\x1B[31m",white:"\x1B[37m",bgRed:"\x1B[41m"},ti={debug:me.dim,info:me.green,warn:me.yellow,error:me.red,fatal:`${me.bgRed}${me.white}${me.bold}`};function ri(){try{if(typeof globalThis.Deno<"u")return "json"}catch{}let t=typeof globalThis.process<"u"?globalThis.process:void 0;if(t?.env){if(t.env.NODE_ENV==="production"||t.env.LOG_FORMAT==="json")return "json";if(t.env.LOG_FORMAT==="pretty"||t.stdout?.isTTY)return "pretty"}return typeof globalThis.window<"u"?"pretty":"json"}function ni(t){let e=[];for(let[r,n]of Object.entries(t))n!=null&&(typeof n=="object"?e.push(`${r}=${JSON.stringify(n)}`):e.push(`${r}=${String(n)}`));return e.join(" ")}function si(t){let{ts:e,level:r,scope:n,msg:s,...o}=t,l=e.slice(11,23),i=ti[r]??"",a=ei[r]??r.toUpperCase(),h=Object.keys(o).length>0?` ${me.dim}${ni(o)}${me.reset}`:"";return `${me.dim}${l}${me.reset} ${i}${a}${me.reset} ${me.cyan}[${n}]${me.reset} ${s}${h}`}function oi(t){return JSON.stringify(t)}function ii(t){return t==="stderr"?(e,r)=>{console.error(r);}:(e,r)=>{switch(e){case "error":case "fatal":console.error(r);break;case "warn":console.warn(r);break;default:console.log(r);}}}function es(t,e,r,n,s){let o=e;function l(i,a,h){if(On[i]<On[o])return;let p={ts:new Date().toISOString(),level:i,scope:t,msg:a,...r,...h};s(i,n(p));}return {debug:(i,a)=>l("debug",i,a),info:(i,a)=>l("info",i,a),warn:(i,a)=>l("warn",i,a),error:(i,a)=>l("error",i,a),fatal:(i,a)=>l("fatal",i,a),child(i,a){return es(`${t}:${i}`,o,{...r,...a},n,s)},setLevel(i){o=i;}}}function jt(t){let{scope:e,level:r="info",meta:n={},format:s="auto",destination:o="stdout"}=t,i=(s==="auto"?ri():s)==="json"?oi:si,a=ii(o);return es(e,r,n,i,a)}var Sr={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{},fatal:()=>{},child:()=>Sr,setLevel:()=>{}},ai="mushi-mushi-keyring",Qe="keys",ts="offline-queue/v1",Bt=null,Nt=null;function li(){return typeof globalThis<"u"&&typeof globalThis.crypto<"u"&&typeof globalThis.crypto.subtle<"u"&&typeof indexedDB<"u"}function rs(){return new Promise((t,e)=>{let r=indexedDB.open(ai,1);r.onupgradeneeded=()=>{let n=r.result;n.objectStoreNames.contains(Qe)||n.createObjectStore(Qe);},r.onsuccess=()=>t(r.result),r.onerror=()=>e(r.error);})}async function ci(){let t=await rs();return new Promise((e,r)=>{let s=t.transaction(Qe,"readonly").objectStore(Qe).get(ts);s.onsuccess=()=>e(s.result??null),s.onerror=()=>r(s.error);})}async function ui(t){let e=await rs();return new Promise((r,n)=>{let s=e.transaction(Qe,"readwrite");s.objectStore(Qe).put(t,ts),s.oncomplete=()=>r(),s.onerror=()=>n(s.error);})}async function ns(){if(Bt)return Bt;if(Nt)return Nt;if(!li())throw new Error("Web Crypto + IndexedDB required for offline queue encryption");return Nt=(async()=>{let t=await ci();if(t)return Bt=t,t;let e=await crypto.subtle.generateKey({name:"AES-GCM",length:256},false,["encrypt","decrypt"]);return await ui(e),Bt=e,e})(),Nt}function Bn(t){let e="";for(let r of t)e+=String.fromCharCode(r);return btoa(e)}function Nn(t){let e=atob(t),r=new Uint8Array(new ArrayBuffer(e.length));for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}async function di(t){let e=await ns(),r=crypto.getRandomValues(new Uint8Array(12)),n=new TextEncoder().encode(JSON.stringify(t)),s=new Uint8Array(await crypto.subtle.encrypt({name:"AES-GCM",iv:r},e,n));return {_mme:1,iv:Bn(r),ct:Bn(s)}}function pi(t){return !!t&&typeof t=="object"&&t._mme===1&&typeof t.iv=="string"&&typeof t.ct=="string"}async function hi(t){let e=await ns(),r=Nn(t.iv),n=Nn(t.ct),s=await crypto.subtle.decrypt({name:"AES-GCM",iv:r},e,n);return JSON.parse(new TextDecoder().decode(s))}var Ce=jt({scope:"mushi:queue",level:"warn"}),mi="mushi-mushi",he="offline-reports",fi=1,yr="mushi_offline_queue",gi=10,bi=6e4,yi=3e4,vi=8,xi=1440*60*1e3;function ss(t={}){let{enabled:e=true,maxQueueSize:r=50,syncOnReconnect:n=true,encryptAtRest:s=true}=t,o=null,l=null,i=null;async function a(I){let A=new Date().toISOString();if(!s)return {...I,queuedAt:A};try{let H=await di(I);return {id:I.id,queuedAt:A,payload:H}}catch(H){return Ce.warn("Offline queue: encryption failed, storing plaintext",{err:String(H)}),{...I,queuedAt:A}}}async function h(I){if(p(I))try{return await hi(I.payload)}catch(A){return Ce.warn("Offline queue: decrypt failed, dropping row",{err:String(A),id:I.id}),null}return I}function p(I){return !!I.payload&&pi(I.payload)}function m(I){let A=I.attempts;return typeof A=="number"&&Number.isFinite(A)?A:0}function b(I,A){let H=I.queuedAt;if(!H)return false;let F=Date.parse(H);return Number.isNaN(F)?false:A-F>xi}function u(){return i||(typeof indexedDB<"u"?i="indexeddb":typeof localStorage<"u"?i="localstorage":i="none",i)}function f(){return new Promise((I,A)=>{let H=indexedDB.open(mi,fi);H.onupgradeneeded=()=>{let F=H.result;F.objectStoreNames.contains(he)||F.createObjectStore(he,{keyPath:"id"});},H.onsuccess=()=>I(H.result),H.onerror=()=>{i="localstorage",A(H.error);};})}async function v(I){let A=await f(),H=await a(I);return new Promise((F,T)=>{let pe=A.transaction(he,"readwrite");pe.objectStore(he).put(H),pe.oncomplete=()=>F(),pe.onerror=()=>T(pe.error);})}async function E(){let I=await f();return new Promise((A,H)=>{let T=I.transaction(he,"readonly").objectStore(he).getAll();T.onsuccess=()=>A(T.result),T.onerror=()=>H(T.error);})}async function M(I){let A=await f();return new Promise((H,F)=>{let T=A.transaction(he,"readwrite");T.objectStore(he).delete(I),T.oncomplete=()=>H(),T.onerror=()=>F(T.error);})}async function C(I){let A=await f();return new Promise((H,F)=>{let T=A.transaction(he,"readwrite");T.objectStore(he).put(I),T.oncomplete=()=>H(),T.onerror=()=>F(T.error);})}async function w(){let I=await f();return new Promise((A,H)=>{let T=I.transaction(he,"readonly").objectStore(he).count();T.onsuccess=()=>A(T.result),T.onerror=()=>H(T.error);})}async function P(){let I=await f();return new Promise((A,H)=>{let F=I.transaction(he,"readwrite");F.objectStore(he).clear(),F.oncomplete=()=>A(),F.onerror=()=>H(F.error);})}function y(){try{let I=localStorage.getItem(yr);return I?JSON.parse(I):[]}catch{return []}}function k(I){try{localStorage.setItem(yr,JSON.stringify(I));}catch{}}async function R(I){let A=y();A.push(await a(I)),k(A);}function x(I){let A=y().filter(H=>H.id!==I);k(A);}function B(I){let A=y(),H=A.findIndex(F=>F.id===I.id);H>=0&&(A[H]=I,k(A));}async function N(I,A){try{I==="indexeddb"?await M(A):x(A);}catch(H){Ce.debug("Offline queue: row removal failed (will age out)",{id:A,err:String(H)});}}async function Z(I,A){try{return I==="indexeddb"?await C(A):B(A),!0}catch(H){return Ce.debug("Offline queue: row persist failed",{id:A.id,err:String(H)}),false}}async function X(I){if(!e)return;if(await _()>=r){Ce.warn("Offline queue full \u2014 dropping report",{maxQueueSize:r});return}let H=u();if(H==="indexeddb")try{await v(I);return}catch{i="localstorage";}if(H==="localstorage"||i==="localstorage"){await R(I);return}}function j(I){return Math.min(1e3*2**I+Math.random()*500,bi)}function V(I){return new Promise(A=>setTimeout(A,I))}async function O(I){if(!e)return {sent:0,failed:0};let A,H=u();if(H==="indexeddb")try{A=await E();}catch{A=y();}else A=y();let F=Date.now(),T=[];for(let q of A)if(b(q,F)){let te=q.id;await N(H,te),Ce.debug("Offline queue: evicting stale report",{id:te});}else T.push(q);A=T;let pe=A.slice(0,gi),Ne=0,oe=0;for(let q=0;q<pe.length;q++){let te=pe[q],ie=te.id,$e=await h(te);if(!$e){await N(H,ie),oe++;continue}let W=await I.submitReport($e);if(W.ok)await N(H,ie),Ne++;else {let lt=W.error?.code==="HTTP_400"||W.error?.code==="HTTP_413"||W.error?.code==="HTTP_422"||W.error?.code==="INGEST_ERROR"||W.error?.code==="VALIDATION_ERROR"||W.error?.code==="PAYLOAD_TOO_LARGE"||W.error?.code==="SERIALIZE_FAILED"||typeof W.error?.message=="string"&&/invalid payload|description must be at least|validation/i.test(W.error.message),Rt=!lt&&(W.error?.code==="NETWORK_ERROR"||W.error?.code==="HTTP_403"||W.error?.code==="HTTP_429"||W.error?.code==="HTTP_502"||W.error?.code==="HTTP_503"||W.error?.code==="HTTP_504"||typeof W.error?.code=="string"&&W.error.code.startsWith("HTTP_5"));if(lt)await N(H,ie);else if(Rt){let We=m(te)+1;We>=vi?(await N(H,ie),Ce.warn("Offline queue: giving up on report after repeated failures",{id:ie,attempts:We,code:W.error?.code})):(te.attempts=We,await Z(H,te)?Ce.debug("Offline queue: transient failure, will retry",{id:ie,attempts:We,code:W.error?.code}):(await N(H,ie),Ce.warn("Offline queue: dropping report (attempt counter unpersistable)",{id:ie,code:W.error?.code})));}oe++,q<pe.length-1&&await V(j(q));}}return {sent:Ne,failed:oe}}async function _(){if(u()==="indexeddb")try{return await w()}catch{return y().length}return y().length}async function L(){if(u()==="indexeddb")try{await P();}catch{}try{localStorage.removeItem(yr);}catch{}}function ee(I){if(!e||!n||typeof window>"u")return;o&&Q();let A=()=>{navigator.onLine&&O(I).catch(H=>{Ce.warn("Offline queue auto-flush failed",{err:String(H)});});};window.addEventListener("online",A),l=setInterval(()=>{_().then(H=>{H>0&&A();});},yi),o=()=>{window.removeEventListener("online",A),l&&(clearInterval(l),l=null);};}function Q(){o?.(),o=null;}return {enqueue:X,flush:O,size:_,clear:L,startAutoSync:ee,stopAutoSync:Q}}function kr(){let t=typeof navigator<"u"?navigator:void 0,e=typeof window<"u"?window:void 0,r=typeof document<"u"?document:void 0,n=typeof screen<"u"?screen:void 0;Si(t);let s=t&&"connection"in t?t.connection:void 0,o=e,l=!!o?.Capacitor,i=!!o?.cordova,a=t?.product==="ReactNative"||typeof globalThis.HermesInternal<"u",h=l||i||a?{...l?{capacitor:true}:{},...i?{cordova:true}:{},...a?{reactNative:true}:{}}:void 0;return {userAgent:t?.userAgent??"unknown",platform:t?.platform??"unknown",language:t?.language??"en",viewport:{width:e?.innerWidth??0,height:e?.innerHeight??0},url:e?.location?.href??"",referrer:r?.referrer??"",timestamp:new Date().toISOString(),timezone:Intl?.DateTimeFormat?.()?.resolvedOptions?.()?.timeZone??"UTC",connection:s?{effectiveType:s.effectiveType,downlink:s.downlink,rtt:s.rtt}:void 0,deviceMemory:t?.deviceMemory,hardwareConcurrency:t?.hardwareConcurrency,route:e?.location?.pathname,nearestTestid:wi(r),userAgentData:Ei(t),screen:Ri(n,e),prefersColorScheme:Ci(e),prefersReducedMotion:we(e,"(prefers-reduced-motion: reduce)"),prefersReducedData:we(e,"(prefers-reduced-data: reduce)"),prefersContrast:Ti(e),forcedColors:we(e,"(forced-colors: active)"),online:typeof t?.onLine=="boolean"?t.onLine:void 0,displayMode:Mi(e),documentTitle:r?.title?.slice(0,200),buildId:$i(r),pageLoadTiming:Li(e),...h?{native:h}:{}}}function wi(t){if(!t)return;let e=t.activeElement??null,r=0;for(;e&&r<20;){let n=e.getAttribute?.("data-testid");if(n)return n;e=e.parentElement,r++;}}var Ee=null,Un=false;function Si(t){if(Un)return;let e=t?.userAgentData;e?.getHighEntropyValues&&(Un=true,e.getHighEntropyValues(["architecture","bitness","model","platformVersion","uaFullVersion","fullVersionList"]).then(r=>{Ee=r;}).catch(()=>{}));}function ki(t){if(!t?.length)return;let e=t.filter(n=>!/not.?a.?brand/i.test(n.brand));return e.length===0?void 0:e.find(n=>!/chromium|google chrome/i.test(n.brand))??e[0]}function Ei(t){let e=t?.userAgentData;if(!e&&!Ee)return;let r=Ee?.fullVersionList,n=ki(r??e?.brands),s={};return n&&(s.browser=n.brand,s.browserVersion=n.version),e?.platform&&(s.os=e.platform),Ee?.platformVersion&&(s.osVersion=Ee.platformVersion),typeof e?.mobile=="boolean"&&(s.mobile=e.mobile),Ee?.model&&(s.model=Ee.model),Ee?.architecture&&(s.architecture=Ee.architecture),Ee?.bitness&&(s.bitness=Ee.bitness),Object.keys(s).length===0?void 0:s}function Ri(t,e){if(!t&&!e)return;let r={};typeof t?.width=="number"&&(r.width=t.width),typeof t?.height=="number"&&(r.height=t.height),typeof e?.devicePixelRatio=="number"&&(r.devicePixelRatio=e.devicePixelRatio),typeof t?.colorDepth=="number"&&(r.colorDepth=t.colorDepth);let n=t?.orientation?.type;return n&&(r.orientation=n),Object.keys(r).length===0?void 0:r}function we(t,e){if(t?.matchMedia)try{return t.matchMedia(e).matches}catch{return}}function Ci(t){if(t?.matchMedia)return we(t,"(prefers-color-scheme: dark)")?"dark":we(t,"(prefers-color-scheme: light)")?"light":"no-preference"}function Ti(t){if(t?.matchMedia)return we(t,"(prefers-contrast: more)")?"more":we(t,"(prefers-contrast: less)")?"less":we(t,"(prefers-contrast: custom)")?"custom":"no-preference"}function Mi(t){if(t?.matchMedia){if(we(t,"(display-mode: fullscreen)"))return "fullscreen";if(we(t,"(display-mode: standalone)"))return "standalone";if(we(t,"(display-mode: minimal-ui)"))return "minimal-ui";if(we(t,"(display-mode: browser)"))return "browser"}}function $i(t){if(!t)return;let r=t.querySelector?.('meta[name="mushi:build"]')?.content?.trim();if(r)return r.slice(0,64)}function Li(t){let e=t?.performance;if(!e?.getEntriesByType)return;let r;try{r=e.getEntriesByType("navigation")[0];}catch{return}if(!r)return;let n=r.startTime??0,s={};return r.domContentLoadedEventEnd>0&&(s.domContentLoadedMs=Math.round(r.domContentLoadedEventEnd-n)),r.loadEventEnd>0&&(s.loadCompleteMs=Math.round(r.loadEventEnd-n)),r.responseStart>0&&(s.timeToFirstByteMs=Math.round(r.responseStart-n)),typeof r.type=="string"&&(s.navigationType=r.type),Object.keys(s).length===0?void 0:s}var vr="mushi_reporter_token";function Ii(t){return `mushi:reporter-token:${t}`}function Fn(){if(typeof crypto<"u"&&crypto.randomUUID)return `mushi_${crypto.randomUUID()}`;let t=new Uint8Array(16);if(typeof crypto<"u")crypto.getRandomValues(t);else for(let r=0;r<t.length;r++)t[r]=Math.floor(Math.random()*256);return `mushi_${Array.from(t).map(r=>r.toString(16).padStart(2,"0")).join("")}`}function xr(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(t);return e&&e.length>0?e:null}catch{return null}}function qn(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(t,e);}catch{}}function de(t){if(!t){let o=xr(vr);if(o)return o;let l=Fn();return qn(vr,l),l}let e=Ii(t),r=xr(e);if(r)return r;let s=xr(vr)??Fn();return qn(e,s),s}function Er(){let t=typeof crypto<"u"?crypto:void 0;if(t?.randomUUID)return t.randomUUID();let e=new Uint8Array(16);if(t?.getRandomValues)t.getRandomValues(e);else for(let n=0;n<e.length;n++)e[n]=Math.floor(Math.random()*256);e[6]=e[6]&15|64,e[8]=e[8]&63|128;let r=Array.from(e,n=>n.toString(16).padStart(2,"0")).join("");return `${r.slice(0,8)}-${r.slice(8,12)}-${r.slice(12,16)}-${r.slice(16,20)}-${r.slice(20,32)}`}var jn="mushi_fingerprint_hash";function Ai(){let t=typeof navigator<"u"?navigator:void 0,e=typeof screen<"u"?screen:void 0,r=typeof window<"u"?window:void 0;return {userAgent:t?.userAgent??"unknown",platform:t?.platform??"unknown",language:t?.language??"en",timezone:Intl?.DateTimeFormat?.()?.resolvedOptions?.()?.timeZone??"UTC",screenWidth:e?.width??0,screenHeight:e?.height??0,pixelRatio:r?.devicePixelRatio??1,deviceMemory:t?.deviceMemory,hardwareConcurrency:t?.hardwareConcurrency}}async function _i(t){if(typeof crypto<"u"&&crypto.subtle){let r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r);return Array.from(new Uint8Array(n)).map(s=>s.toString(16).padStart(2,"0")).join("")}let e=0;for(let r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r),e|=0;return `fbk_${(e>>>0).toString(16).padStart(8,"0")}`}async function os(){if(typeof localStorage<"u"){let n=localStorage.getItem(jn);if(n)return n}let t=Ai(),e=JSON.stringify(t),r=await _i(e);if(typeof localStorage<"u")try{localStorage.setItem(jn,r);}catch{}return r}var Wn="mushi_session_id",Ut=null;function bt(){if(Ut)return Ut;if(typeof sessionStorage<"u"){let e=sessionStorage.getItem(Wn);if(e)return Ut=e,e}let t=Pi();if(Ut=t,typeof sessionStorage<"u")try{sessionStorage.setItem(Wn,t);}catch{}return t}function Pi(){return `ms_${Date.now().toString(36)}_${Hi()}`}function Hi(){let t=typeof crypto<"u"?crypto:void 0,e=new Uint8Array(4);if(t?.getRandomValues)t.getRandomValues(e);else for(let n=0;n<e.length;n++)e[n]=Math.floor(Math.random()*256);let r=0;for(let n of e)r=r*256+n>>>0;return r.toString(36).padStart(6,"0").slice(0,6)}var Di=10,Oi=1,Bi=5e3;function is(t={}){let{maxBurst:e=Di,refillRate:r=Oi,refillIntervalMs:n=Bi}=t,s=e,o=Date.now();function l(){let p=Date.now(),m=p-o,b=Math.floor(m/n);b>0&&(s=Math.min(e,s+b*r),o=p);}function i(){return l(),s>0?(s--,true):false}function a(){s=e,o=Date.now();}function h(){return l(),s}return {tryConsume:i,reset:a,availableTokens:h}}var Ni=[{key:"ssns",regex:/\b\d{3}-\d{2}-\d{4}\b/g,replacement:"[REDACTED_SSN]"},{key:"creditCards",regex:/\b(?:\d[ -]*){12,18}\d\b/g,replacement:"[REDACTED_CC]"},{key:"secretTokens",regex:/\b(?:AKIA|ASIA)[0-9A-Z]{16}\b/g,replacement:"[REDACTED_AWS_KEY]"},{key:"secretTokens",regex:/(?:aws_secret_access_key|secret_access_key)["'\s:=]+[A-Za-z0-9/+=]{40}\b/gi,replacement:"aws_secret_access_key=[REDACTED_AWS_SECRET]"},{key:"secretTokens",regex:/\b(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{24,}\b/g,replacement:"[REDACTED_STRIPE_KEY]"},{key:"secretTokens",regex:/\bpk_(?:live|test)_[A-Za-z0-9]{24,}\b/g,replacement:"[REDACTED_STRIPE_PK]"},{key:"secretTokens",regex:/\bxox[abpor]-[A-Za-z0-9-]{10,}\b/g,replacement:"[REDACTED_SLACK_TOKEN]"},{key:"secretTokens",regex:/\bghp_[A-Za-z0-9]{36}\b/g,replacement:"[REDACTED_GITHUB_PAT]"},{key:"secretTokens",regex:/\bgithub_pat_[A-Za-z0-9_]{80,}\b/g,replacement:"[REDACTED_GITHUB_PAT]"},{key:"secretTokens",regex:/\bsk-(?:proj-)?[A-Za-z0-9_-]{20,}\b/g,replacement:"[REDACTED_OPENAI_KEY]"},{key:"secretTokens",regex:/\bsk-ant-[A-Za-z0-9_-]{20,}\b/g,replacement:"[REDACTED_ANTHROPIC_KEY]"},{key:"secretTokens",regex:/\bAIza[0-9A-Za-z_-]{35}\b/g,replacement:"[REDACTED_GOOGLE_KEY]"},{key:"secretTokens",regex:/\beyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\b/g,replacement:"[REDACTED_JWT]"},{key:"emails",regex:/\b[A-Za-z0-9._%+\-]+@[A-Za-z0-9.\-]+\.[A-Za-z]{2,}\b/g,replacement:"[REDACTED_EMAIL]"},{key:"phones",regex:/(?:\+\d{1,3}[\s.-])?\(?\d{2,4}\)?[\s.-]\d{3,4}[\s.-]\d{3,4}\b/g,replacement:"[REDACTED_PHONE]"},{key:"ipAddresses",regex:/\b(?:\d{1,3}\.){3}\d{1,3}\b/g,replacement:"[REDACTED_IP]"},{key:"ipv6",regex:/\b(?:[A-Fa-f0-9]{1,4}:){2,7}[A-Fa-f0-9]{0,4}\b/g,replacement:"[REDACTED_IPV6]"}],Ui={emails:true,phones:true,creditCards:true,ssns:true,ipAddresses:false,secretTokens:true,ipv6:false};function as(t={}){let e={...Ui,...t},r=Ni.filter(o=>e[o.key]);function n(o){if(!o)return o;let l=o;for(let{regex:i,replacement:a}of r)l=l.replace(new RegExp(i.source,i.flags),a);return l}function s(o,l){let i={...o};for(let a of l)typeof i[a]=="string"&&(i[a]=n(i[a]));return i}return {scrub:n,scrubObject:s}}var Fi=50,qi=500;function ls(t={}){let e=Math.max(1,t.max??Fi),r=Math.max(50,t.maxMessageLength??qi),n=[];return {add(s){let o=typeof s.timestamp=="number"?s.timestamp:Date.now(),l=typeof s.message=="string"&&s.message.length>r?`${s.message.slice(0,r)}\u2026`:s.message,i={timestamp:o,category:s.category,level:s.level??"info",message:l??"",...s.data?{data:s.data}:{}};for(n.push(i);n.length>e;)n.shift();},getAll(){return n.slice()},clear(){n=[];},size(){return n.length}}}var zn=8*1024,ji=1e3;function cs(t){if(t instanceof Error){let e=t.name||"Error",r=t.message||String(t),n=typeof t.stack=="string"&&t.stack.length>0?t.stack.slice(0,zn):void 0,s=t.cause;return {name:e,message:r,...n?{stack:n}:{},...s!==void 0?{cause:s instanceof Error?s.message:s}:{}}}if(typeof t=="string")return {name:"Error",message:t};if(t&&typeof t=="object"){let e=t,r=typeof e.name=="string"?e.name:"Error",n=typeof e.message=="string"?e.message:(()=>{try{return JSON.stringify(e).slice(0,ji)}catch{return String(e)}})(),s=typeof e.stack=="string"?e.stack.slice(0,zn):void 0;return {name:r,message:n,...s?{stack:s}:{}}}return t===void 0?{name:"Error",message:"unknown"}:{name:"Error",message:String(t)}}var ue={paper:"#F8F4ED",paperRaised:"#FFFFFF",ink:"#0E0D0B",inkMuted:"#5C5852",inkFaint:"#9A9489",inkDim:"#6E6760",rule:"rgba(14,13,11,0.10)",ruleStrong:"rgba(14,13,11,0.16)",accent:"#E03C2C",accentWash:"rgba(224,60,44,0.08)",accentInk:"#7A1F15",ok:"#16A34A",danger:"#DC2626"},Wi={paper:"#0F0E0C",paperRaised:"#1A1815",ink:"#F2EBDD",inkMuted:"#928B7E",inkFaint:"#5A5650",inkDim:"#7A7268",rule:"rgba(242,235,221,0.10)",ruleStrong:"rgba(242,235,221,0.18)",accent:"#FF5A47",accentWash:"rgba(255,90,71,0.12)",accentInk:"#FFE5E0",ok:"#4ADE80",danger:"#F87171"},Rr={free:ue.inkMuted,explorer:"#2563EB",contributor:"#7C3AED",champion:"#D97706",default:ue.accent},Wt={bg:"#0FFF50",fg:"#0a1a0a",border:"#00C43A"},us="#FAF7F0",ds="#ffffff",Cr={light:"#9A2A1E",dark:"#7A1F15"},Tr={light:"#B52F1F",dark:"#C4321E"},ps={light:{sent:{fg:"#1E4A8C",bg:"rgba(30,74,140,0.08)",border:"rgba(30,74,140,0.16)"},review:{fg:"#8A5A00",bg:"rgba(180,120,0,0.10)",border:"rgba(180,120,0,0.18)"},fixing:{fg:"#9A3D12",bg:"rgba(224,60,44,0.10)",border:"rgba(224,60,44,0.18)"},fixed:{fg:"#1F6B3A",bg:"rgba(31,107,58,0.10)",border:"rgba(31,107,58,0.18)"}},dark:{sent:{fg:"#A8C4FF",bg:"rgba(120,160,255,0.12)",border:"rgba(120,160,255,0.22)"},review:{fg:"#FFD27A",bg:"rgba(255,190,90,0.12)",border:"rgba(255,190,90,0.22)"},fixing:{fg:"#FFB899",bg:"rgba(255,120,60,0.12)",border:"rgba(255,120,60,0.24)"},fixed:{fg:"#8FE3B0",bg:"rgba(80,200,130,0.12)",border:"rgba(80,200,130,0.22)"}}};function Mr(t){return t==="dark"?Wi:ue}var hs={wide:32},ms={control:4},et={fontDisplay:"'Iowan Old Style', 'Palatino Linotype', 'Palatino', 'Book Antiqua', 'Cambria', Georgia, 'Times New Roman', serif",fontBody:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Display', 'Segoe UI', sans-serif",fontMono:"ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, 'Liberation Mono', monospace",sizeBody:14,lineBody:1.55},tt={base:99999,banner:99998,panel:1e5,overlay:2147483647},zt={easeStamp:"cubic-bezier(0.22, 1, 0.36, 1)",durationFast:200},rt={bannerHeight:36,fabSize:52,edgeTabWidth:32,gutter:24,panelWidth:360,panelMaxHeight:480,panelSheetBreakpoint:480};function Vn(t){return /^#[0-9a-fA-F]{3,8}$/.test(t)?t:""}function fs(t,e="",r=""){let n=Mr(t),s=Vn(e),o=Vn(r),l=s||n.accent,i=s?t==="dark"?`${l}1F`:`${l}14`:n.accentWash,a=o||n.accentInk;return {accent:l,accentWash:i,accentInk:a}}function zi(t){let e=t.length%4===0?"":"=".repeat(4-t.length%4),r=t.replace(/-/g,"+").replace(/_/g,"/")+e;if(typeof atob=="function")return atob(r);let n=globalThis.Buffer;return n?n.from(r,"base64").toString("binary"):""}function gs(t){if(typeof t!="string")return null;let e=t.split(".");if(e.length!==3)return null;try{let r=zi(e[1]),n=JSON.parse(r),s=typeof n.projectId=="string"?n.projectId:void 0,o=typeof n.sub=="string"?n.sub:void 0;return !s||!o?null:{projectId:s,sub:o,...typeof n.email=="string"?{email:n.email}:{},...typeof n.name=="string"?{name:n.name}:{},...typeof n.iat=="number"?{iat:n.iat}:{},...typeof n.exp=="number"?{exp:n.exp}:{}}}catch{return null}}var Vi=new Set(["kensaur.us","www.kensaur.us"]),Ki={"glot-it":"glot.it",glotit:"glot.it","solo-boss-cloud":"sbc-front.vercel.app","mushi-mushi":"kensaur.us"},Gi={"mushi-mushi":"https://kensaur.us/mushi-mushi/admin/favicon.svg","solo-boss-cloud":"https://sbc-front.vercel.app/favicon.svg","glot-it":"https://kensaur.us/glot-it/apple-touch-icon.png",glotit:"https://kensaur.us/glot-it/apple-touch-icon.png"},Yi=["www.google.com","icons.duckduckgo.com","icon.horse"];function bs(t){try{let e=new URL(t).hostname.toLowerCase();return Yi.some(r=>e===r||e.endsWith(`.${r}`))}catch{return false}}function Xi(t,e=32){return [`https://${t}/favicon.svg`,`https://${t}/favicon.ico`,`https://${t}/favicon-32x32.png`,`https://${t}/apple-touch-icon.png`]}function ys(t){let e=[],r=s=>{let o=s?.trim().toLowerCase();!o||e.includes(o)||e.push(o);};r(Zi(t.repo_url)),r(Ki[t.project_slug.toLowerCase()]);let n=t.sdk_origin?Ji(t.sdk_origin):null;return n&&!Vi.has(n)&&r(n),e}function vs(t,e=32){if(t.icon_url?.trim())return [t.icon_url.trim()];let r=new Set,n=[],s=l=>{!l||r.has(l)||bs(l)||(r.add(l),n.push(l));},o=Gi[t.project_slug.toLowerCase()];o&&s(o);for(let l of ys(t))for(let i of Xi(l,e))s(i);return n}function Ji(t){let e=t.trim();if(!e||/^(capacitor|file|content|app):/i.test(e))return null;try{let n=new URL(e.includes("://")?e:`https://${e}`).hostname.toLowerCase();return n==="localhost"||n==="127.0.0.1"||n.endsWith(".local")?null:n}catch{return null}}function Zi(t){if(!t?.trim())return null;try{let e=new URL(t.trim()),r=e.hostname.toLowerCase(),n=e.pathname.replace(/^\/+|\/+$/g,"").split("/").filter(Boolean);if(n.length<2)return null;let s=n[1].replace(/\.git$/i,"").toLowerCase();return /^[a-z0-9][a-z0-9.-]*\.[a-z]{2,}$/i.test(s)||r==="github.com"&&s.endsWith(".github.io")?s:r!=="github.com"&&r!=="www.github.com"?r:null}catch{return null}}function xs(t){return ys(t)[0]??null}function ws(t){if(typeof document>"u"||!t.complete||t.naturalWidth===0||t.naturalHeight===0)return false;try{let e=document.createElement("canvas"),r=t.naturalWidth,n=t.naturalHeight;e.width=r,e.height=n;let s=e.getContext("2d");if(!s)return !1;s.drawImage(t,0,0);let{data:o}=s.getImageData(0,0,r,n),l=0,i=0,a=0;for(let p=0;p<o.length;p+=4){let m=o[p],b=o[p+1],u=o[p+2];if(o[p+3]<128)continue;l++;let v=Math.max(m,b,u),E=Math.min(m,b,u),M=v-E;a=Math.max(a,M),i+=M;}return l===0?!0:i/l<14&&a<24}catch{return bs(t.src)}}function Ss(t){let e=t.trim().split(/[\s._-]+/).filter(Boolean);return e.length>=2?`${e[0][0]??""}${e[1][0]??""}`.toUpperCase():(t.replace(/[^a-zA-Z0-9]/g,"").slice(0,2)||t.slice(0,2)||"?").toUpperCase()}function ks(){if(typeof document>"u")return null;let t=['link[rel="icon"]','link[rel="shortcut icon"]','link[rel="apple-touch-icon"]'];for(let e of t){let n=document.querySelector(e)?.href;if(n&&Qi(n))return n}return null}function Qi(t){try{let e=typeof location<"u"?location.href:void 0,r=new URL(t,e).protocol;return r==="http:"||r==="https:"}catch{return false}}async function Rs(t,e=Kn){if(!t.startsWith("data:image/")||Es(t)<=e)return t;if(typeof document>"u")return null;let r=new Image;await new Promise((o,l)=>{r.onload=()=>o(),r.onerror=()=>l(new Error("screenshot_decode_failed")),r.src=t;});let n=[.65,.5,.35,.25],s=[1,.85,.7,.55,.4];for(let o of s){let l=document.createElement("canvas"),i=Math.max(1,Math.round(r.naturalWidth*o)),a=Math.max(1,Math.round(r.naturalHeight*o));l.width=i,l.height=a;let h=l.getContext("2d");if(h){h.drawImage(r,0,0,i,a);for(let p of n){let m=l.toDataURL("image/jpeg",p);if(Es(m)<=e)return m}}}return null}function Es(t){let e=t.indexOf(",");if(e<0)return t.length;let r=t.slice(e+1);return Math.ceil(r.length*3/4)}var Vt={widget:{trigger:"Report Issue",title:"Report an Issue",close:"Close",back:"Back",submit:"Submit",submitting:"Submitting\u2026",submitted:"Thank you! Your report has been submitted.",error:"Could not send your report. Check your connection and try again."},step1:{heading:"What kind of issue?",reportSectionLabel:"Report an issue",moreNavLabel:"More",moreNav:{yourReports:"Your reports",yourReportsDesc:"See status, developer replies, and respond",unreadNew:"new",communityIdeas:"Community ideas",communityIdeasDesc:"Vote on features and see what shipped",leaderboard:"Leaderboard",joinCommunity:"Join community \xB7 Track reports across apps",myAccount:"My account"},categories:{bug:"Bug",slow:"Slow / Laggy",visual:"Visual Glitch",confusing:"Confusing",other:"Other"},categoryDescriptions:{bug:"Something is broken or not working",slow:"Performance issue or slow loading",visual:"Layout, styling, or display problem",confusing:"Hard to understand or navigate",other:"Something else"}},step2:{heading:"What happened?",intents:{bug:["Crash","Unresponsive","Data loss","Wrong result","Other"],slow:["Page load","Interaction","API call","Animation","Other"],visual:["Layout broken","Overlapping","Missing element","Wrong color/font","Other"],confusing:["Unclear label","Missing help","Unexpected flow","Lost navigation","Other"],other:["Feature request","Accessibility","Typo","Other"]}},step3:{heading:"Tell us more",descriptionPlaceholder:"Describe what happened\u2026",screenshotButton:"Attach Screenshot",screenshotAttached:"Screenshot attached \u2713",screenshotCapturing:"Taking screenshot\u2026",screenshotFailed:"Couldn't capture \u2014 describe it instead",screenshotPreviewAlt:"Preview of the screenshot that will be sent",screenshotSensitiveHint:"Check the preview \u2014 remove it if any private info (balances, personal details) is visible.",elementButton:"Select Element",elementSelected:"Element selected \u2713",elementCapturing:"Click anything on the page\u2026",elementSelectorHint:"Click any element \xB7 Esc to cancel",optional:"(optional)",tooShort:"A bit more detail helps us fix it faster",examplePrompts:["The save button does nothing","Page froze for 10 seconds","Layout looks broken here"]},assistant:{defaultLabel:"Ask",defaultGreeting:"Ask about this page \u2014 I only use what you see here.",inputPlaceholder:"Type your question\u2026",sendAriaLabel:"Send",hubDescription:"Get help using this app",thinking:"Thinking\u2026",errors:{noResponse:"No response \u2014 check your connection and try again.",generic:"Could not reach the assistant. Try again in a moment."}},flows:{eyebrows:{inbox:"Mushi \xB7 Inbox",roadmap:"Mushi \xB7 Roadmap",community:"Mushi \xB7 Community",identity:"Mushi \xB7 Identity",signIn:"Mushi \xB7 Sign in",allApps:"Mushi \xB7 All apps",receipt:"Mushi \xB7 Receipt",thread:"Mushi \xB7 Inbox"},reports:{title:"Your reports",loading:"Loading reports\u2026",empty:"No reports from this browser yet.",leaderboardLink:"Leaderboard"},roadmap:{title:"Community ideas",loading:"Loading ideas\u2026",empty:"No community ideas yet. Be the first to suggest one.",shipped:"Shipped",vote:"Vote",voted:"Voted",voteCount:"{n} votes",untitled:"Untitled idea"},leaderboard:{title:"Global leaderboard",loading:"Loading leaderboard\u2026",empty:"No contributors yet \u2014 be the first!",signInPrompt:"Sign in to see your rank \u2192",myRank:"You are ranked #{rank} this month",footer:"Global contributors this month \xB7 Points refresh monthly",anon:"Anon"},account:{title:"Mushi account",checkEmailTitle:"Check your email",joinTitle:"Join the community",emailLabel:"Email address",emailPlaceholder:"Email",signInPrompt:"Sign in to see your reports across all apps and climb the global leaderboard. No password needed.",magicLinkSent:"We sent a sign-in link to {email}. Click it to connect your reports across apps.",resendEmail:"Resend email",sendLink:"Send sign-in link",sending:"Sending\u2026",crossAppReports:"My reports across all apps \u2192",viewLeaderboard:"View global leaderboard \u2192",signOut:"Sign out",rankSummary:"Rank #{rank} \xB7 {points} pts this month"},crossApp:{title:"My reports",loading:"Loading your reports\u2026",empty:"No reports filed yet.",unknownApp:"Unknown app"},thread:{title:"Report thread",loading:"Loading thread\u2026",empty:"No developer replies yet.",confirmFixed:"Yes, fixed for me",notFixed:"Not fixed yet",replyPlaceholder:"Reply to the developer\u2026",send:"Send"},success:{trackReport:"Track this report \u203A",receipt:"Receipt",delivering:"Delivering to the team\u2026",queuedOffline:"Queued offline",queuedHint:"We'll send it the moment you're back online.",trackOnMushi:"Track on Mushi",slaDefault:"We will review your report."},featureRequest:{label:"Feature request",description:"Suggest a change"},poweredBy:"Powered by Mushi v{version}"}};var Cs={widget:{trigger:"\u554F\u984C\u3092\u5831\u544A",title:"\u554F\u984C\u3092\u5831\u544A\u3059\u308B",close:"\u9589\u3058\u308B",back:"\u623B\u308B",submit:"\u9001\u4FE1",submitting:"\u9001\u4FE1\u4E2D\u2026",submitted:"\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059\uFF01\u30EC\u30DD\u30FC\u30C8\u304C\u9001\u4FE1\u3055\u308C\u307E\u3057\u305F\u3002",error:"\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002"},step1:{heading:"\u3069\u306E\u3088\u3046\u306A\u554F\u984C\u3067\u3059\u304B\uFF1F",reportSectionLabel:"\u554F\u984C\u3092\u5831\u544A",moreNavLabel:"\u305D\u306E\u4ED6",moreNav:{yourReports:"\u3042\u306A\u305F\u306E\u30EC\u30DD\u30FC\u30C8",yourReportsDesc:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3001\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1\u3001\u8FD4\u7B54",unreadNew:"\u4EF6\u306E\u65B0\u7740",communityIdeas:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306E\u30A2\u30A4\u30C7\u30A2",communityIdeasDesc:"\u6A5F\u80FD\u306B\u6295\u7968\u3057\u3066\u30EA\u30EA\u30FC\u30B9\u72B6\u6CC1\u3092\u78BA\u8A8D",leaderboard:"\u30EA\u30FC\u30C0\u30FC\u30DC\u30FC\u30C9",joinCommunity:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306B\u53C2\u52A0 \xB7 \u30A2\u30D7\u30EA\u6A2A\u65AD\u3067\u30EC\u30DD\u30FC\u30C8\u3092\u8FFD\u8DE1",myAccount:"\u30DE\u30A4\u30A2\u30AB\u30A6\u30F3\u30C8"},categories:{bug:"\u30D0\u30B0",slow:"\u9045\u3044\u30FB\u91CD\u3044",visual:"\u8868\u793A\u306E\u554F\u984C",confusing:"\u308F\u304B\u308A\u306B\u304F\u3044",other:"\u305D\u306E\u4ED6"},categoryDescriptions:{bug:"\u52D5\u4F5C\u3057\u306A\u3044\u3001\u58CA\u308C\u3066\u3044\u308B",slow:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u304C\u60AA\u3044\u3001\u8AAD\u307F\u8FBC\u307F\u304C\u9045\u3044",visual:"\u30EC\u30A4\u30A2\u30A6\u30C8\u3001\u30C7\u30B6\u30A4\u30F3\u3001\u8868\u793A\u306E\u554F\u984C",confusing:"\u7406\u89E3\u3057\u306B\u304F\u3044\u3001\u64CD\u4F5C\u304C\u308F\u304B\u308A\u306B\u304F\u3044",other:"\u305D\u306E\u4ED6\u306E\u554F\u984C"}},step2:{heading:"\u4F55\u304C\u8D77\u304D\u307E\u3057\u305F\u304B\uFF1F",intents:{bug:["\u30AF\u30E9\u30C3\u30B7\u30E5","\u7121\u53CD\u5FDC","\u30C7\u30FC\u30BF\u6D88\u5931","\u8AA4\u3063\u305F\u7D50\u679C","\u305D\u306E\u4ED6"],slow:["\u30DA\u30FC\u30B8\u8AAD\u8FBC","\u64CD\u4F5C\u53CD\u5FDC","API\u901A\u4FE1","\u30A2\u30CB\u30E1\u30FC\u30B7\u30E7\u30F3","\u305D\u306E\u4ED6"],visual:["\u30EC\u30A4\u30A2\u30A6\u30C8\u5D29\u308C","\u8981\u7D20\u306E\u91CD\u306A\u308A","\u8981\u7D20\u304C\u8868\u793A\u3055\u308C\u306A\u3044","\u8272/\u30D5\u30A9\u30F3\u30C8\u304C\u9055\u3046","\u305D\u306E\u4ED6"],confusing:["\u30E9\u30D9\u30EB\u304C\u4E0D\u660E\u77AD","\u30D8\u30EB\u30D7\u304C\u306A\u3044","\u4E88\u60F3\u5916\u306E\u30D5\u30ED\u30FC","\u30CA\u30D3\u30B2\u30FC\u30B7\u30E7\u30F3\u8FF7\u5B50","\u305D\u306E\u4ED6"],other:["\u6A5F\u80FD\u8981\u671B","\u30A2\u30AF\u30BB\u30B7\u30D3\u30EA\u30C6\u30A3","\u8AA4\u5B57\u8131\u5B57","\u305D\u306E\u4ED6"]}},step3:{heading:"\u8A73\u7D30\u3092\u6559\u3048\u3066\u304F\u3060\u3055\u3044",descriptionPlaceholder:"\u4F55\u304C\u8D77\u304D\u305F\u304B\u8AAC\u660E\u3057\u3066\u304F\u3060\u3055\u3044\u2026",screenshotButton:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u6DFB\u4ED8",screenshotAttached:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u6DFB\u4ED8\u6E08\u307F \u2713",screenshotCapturing:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u64AE\u5F71\u4E2D\u2026",screenshotFailed:"\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F \u2014 \u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044",screenshotPreviewAlt:"\u9001\u4FE1\u3055\u308C\u308B\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306E\u30D7\u30EC\u30D3\u30E5\u30FC",screenshotSensitiveHint:"\u30D7\u30EC\u30D3\u30E5\u30FC\u3092\u78BA\u8A8D\u3057\u3001\u6B8B\u9AD8\u3084\u500B\u4EBA\u60C5\u5831\u306A\u3069\u304C\u5199\u3063\u3066\u3044\u308C\u3070\u524A\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",elementButton:"\u8981\u7D20\u3092\u9078\u629E",elementSelected:"\u8981\u7D20\u9078\u629E\u6E08\u307F \u2713",elementCapturing:"\u30DA\u30FC\u30B8\u4E0A\u306E\u8981\u7D20\u3092\u30AF\u30EA\u30C3\u30AF\u2026",elementSelectorHint:"\u8981\u7D20\u3092\u30AF\u30EA\u30C3\u30AF \xB7 Esc \u3067\u30AD\u30E3\u30F3\u30BB\u30EB",optional:"\uFF08\u4EFB\u610F\uFF09",tooShort:"\u3082\u3046\u5C11\u3057\u8A73\u3057\u304F\u6559\u3048\u3066\u304F\u3060\u3055\u3044",examplePrompts:["\u4FDD\u5B58\u30DC\u30BF\u30F3\u304C\u53CD\u5FDC\u3057\u306A\u3044","\u30DA\u30FC\u30B8\u304C10\u79D2\u56FA\u307E\u3063\u305F","\u30EC\u30A4\u30A2\u30A6\u30C8\u304C\u5D29\u308C\u3066\u3044\u308B"]},assistant:{defaultLabel:"\u8CEA\u554F",defaultGreeting:"\u3053\u306E\u30DA\u30FC\u30B8\u306B\u3064\u3044\u3066\u8CEA\u554F\u3057\u3066\u304F\u3060\u3055\u3044 \u2014 \u8868\u793A\u3055\u308C\u3066\u3044\u308B\u5185\u5BB9\u3060\u3051\u3092\u4F7F\u3044\u307E\u3059\u3002",inputPlaceholder:"\u8CEA\u554F\u3092\u5165\u529B\u2026",sendAriaLabel:"\u9001\u4FE1",hubDescription:"\u3053\u306E\u30A2\u30D7\u30EA\u306E\u4F7F\u3044\u65B9\u3092\u805E\u304F",thinking:"\u8003\u3048\u4E2D\u2026",errors:{noResponse:"\u5FDC\u7B54\u304C\u3042\u308A\u307E\u305B\u3093 \u2014 \u63A5\u7D9A\u3092\u78BA\u8A8D\u3057\u3066\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",generic:"\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002"}},flows:{eyebrows:{inbox:"Mushi \xB7 \u53D7\u4FE1\u7BB1",roadmap:"Mushi \xB7 \u30A2\u30A4\u30C7\u30A2",community:"Mushi \xB7 \u30B3\u30DF\u30E5\u30CB\u30C6\u30A3",identity:"Mushi \xB7 \u30A2\u30AB\u30A6\u30F3\u30C8",signIn:"Mushi \xB7 \u30B5\u30A4\u30F3\u30A4\u30F3",allApps:"Mushi \xB7 \u5168\u30A2\u30D7\u30EA",receipt:"Mushi \xB7 \u53D7\u4ED8",thread:"Mushi \xB7 \u53D7\u4FE1\u7BB1"},reports:{title:"\u3042\u306A\u305F\u306E\u30EC\u30DD\u30FC\u30C8",loading:"\u30EC\u30DD\u30FC\u30C8\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u3053\u306E\u30D6\u30E9\u30A6\u30B6\u304B\u3089\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",leaderboardLink:"\u30E9\u30F3\u30AD\u30F3\u30B0"},roadmap:{title:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306E\u30A2\u30A4\u30C7\u30A2",loading:"\u30A2\u30A4\u30C7\u30A2\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u30A2\u30A4\u30C7\u30A2\u304C\u3042\u308A\u307E\u305B\u3093\u3002\u6700\u521D\u306E\u63D0\u6848\u3092\u3069\u3046\u305E\u3002",shipped:"\u30EA\u30EA\u30FC\u30B9\u6E08\u307F",vote:"\u6295\u7968",voted:"\u6295\u7968\u6E08\u307F",voteCount:"{n} \u7968",untitled:"\u7121\u984C\u306E\u30A2\u30A4\u30C7\u30A2"},leaderboard:{title:"\u30B0\u30ED\u30FC\u30D0\u30EB\u30E9\u30F3\u30AD\u30F3\u30B0",loading:"\u30E9\u30F3\u30AD\u30F3\u30B0\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u53C2\u52A0\u8005\u304C\u3044\u307E\u305B\u3093 \u2014 \u6700\u521D\u306E\u4E00\u4EBA\u306B\u306A\u308D\u3046\u3002",signInPrompt:"\u30B5\u30A4\u30F3\u30A4\u30F3\u3057\u3066\u9806\u4F4D\u3092\u898B\u308B \u2192",myRank:"\u4ECA\u6708\u306E\u9806\u4F4D\u306F #{rank}",footer:"\u4ECA\u6708\u306E\u30B0\u30ED\u30FC\u30D0\u30EB\u8CA2\u732E\u8005 \xB7 \u30DD\u30A4\u30F3\u30C8\u306F\u6BCE\u6708\u30EA\u30BB\u30C3\u30C8",anon:"\u533F\u540D"},account:{title:"Mushi \u30A2\u30AB\u30A6\u30F3\u30C8",checkEmailTitle:"\u30E1\u30FC\u30EB\u3092\u78BA\u8A8D",joinTitle:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306B\u53C2\u52A0",emailLabel:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",emailPlaceholder:"\u30E1\u30FC\u30EB",signInPrompt:"\u30B5\u30A4\u30F3\u30A4\u30F3\u3059\u308B\u3068\u5168\u30A2\u30D7\u30EA\u306E\u30EC\u30DD\u30FC\u30C8\u3068\u30E9\u30F3\u30AD\u30F3\u30B0\u304C\u898B\u3089\u308C\u307E\u3059\u3002\u30D1\u30B9\u30EF\u30FC\u30C9\u4E0D\u8981\u3002",magicLinkSent:"{email} \u306B\u30B5\u30A4\u30F3\u30A4\u30F3\u30EA\u30F3\u30AF\u3092\u9001\u308A\u307E\u3057\u305F\u3002\u30EA\u30F3\u30AF\u3092\u958B\u3044\u3066\u30EC\u30DD\u30FC\u30C8\u3092\u63A5\u7D9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002",resendEmail:"\u30E1\u30FC\u30EB\u3092\u518D\u9001",sendLink:"\u30B5\u30A4\u30F3\u30A4\u30F3\u30EA\u30F3\u30AF\u3092\u9001\u308B",sending:"\u9001\u4FE1\u4E2D\u2026",crossAppReports:"\u5168\u30A2\u30D7\u30EA\u306E\u30EC\u30DD\u30FC\u30C8 \u2192",viewLeaderboard:"\u30B0\u30ED\u30FC\u30D0\u30EB\u30E9\u30F3\u30AD\u30F3\u30B0 \u2192",signOut:"\u30B5\u30A4\u30F3\u30A2\u30A6\u30C8",rankSummary:"\u9806\u4F4D #{rank} \xB7 \u4ECA\u6708 {points} pts"},crossApp:{title:"\u30DE\u30A4\u30EC\u30DD\u30FC\u30C8",loading:"\u30EC\u30DD\u30FC\u30C8\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u30EC\u30DD\u30FC\u30C8\u304C\u3042\u308A\u307E\u305B\u3093\u3002",unknownApp:"\u4E0D\u660E\u306A\u30A2\u30D7\u30EA"},thread:{title:"\u30EC\u30DD\u30FC\u30C8\u30B9\u30EC\u30C3\u30C9",loading:"\u30B9\u30EC\u30C3\u30C9\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",confirmFixed:"\u306F\u3044\u3001\u76F4\u308A\u307E\u3057\u305F",notFixed:"\u307E\u3060\u76F4\u3063\u3066\u3044\u307E\u305B\u3093",replyPlaceholder:"\u958B\u767A\u8005\u306B\u8FD4\u4FE1\u2026",send:"\u9001\u4FE1"},success:{trackReport:"\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u3092\u8FFD\u8DE1 \u203A",receipt:"\u53D7\u4ED8",delivering:"\u30C1\u30FC\u30E0\u306B\u9001\u4FE1\u4E2D\u2026",queuedOffline:"\u30AA\u30D5\u30E9\u30A4\u30F3\u5F85\u6A5F\u4E2D",queuedHint:"\u30AA\u30F3\u30E9\u30A4\u30F3\u306B\u623B\u308A\u6B21\u7B2C\u9001\u4FE1\u3057\u307E\u3059\u3002",trackOnMushi:"Mushi\u3067\u8FFD\u8DE1",slaDefault:"\u30EC\u30DD\u30FC\u30C8\u3092\u78BA\u8A8D\u3057\u307E\u3059\u3002"},featureRequest:{label:"\u6A5F\u80FD\u30EA\u30AF\u30A8\u30B9\u30C8",description:"\u5909\u66F4\u3092\u63D0\u6848"},poweredBy:"Mushi v{version}"}};var Ts={widget:{trigger:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",close:"\u0E1B\u0E34\u0E14",back:"\u0E01\u0E25\u0E31\u0E1A",submit:"\u0E2A\u0E48\u0E07",submitting:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u2026",submitted:"\u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13\u0E04\u0E23\u0E31\u0E1A/\u0E04\u0E48\u0E30! \u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E16\u0E39\u0E01\u0E2A\u0E48\u0E07\u0E41\u0E25\u0E49\u0E27",error:"\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07"},step1:{heading:"\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E44\u0E2B\u0E19?",reportSectionLabel:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",moreNavLabel:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",moreNav:{yourReports:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",yourReportsDesc:"\u0E14\u0E39\u0E2A\u0E16\u0E32\u0E19\u0E30 \u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32 \u0E41\u0E25\u0E30\u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A",unreadNew:"\u0E43\u0E2B\u0E21\u0E48",communityIdeas:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E08\u0E32\u0E01\u0E0A\u0E38\u0E21\u0E0A\u0E19",communityIdeasDesc:"\u0E42\u0E2B\u0E27\u0E15\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E14\u0E39\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E48\u0E2D\u0E22\u0E41\u0E25\u0E49\u0E27",leaderboard:"\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33",joinCommunity:"\u0E40\u0E02\u0E49\u0E32\u0E23\u0E48\u0E27\u0E21\u0E0A\u0E38\u0E21\u0E0A\u0E19 \xB7 \u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E49\u0E32\u0E21\u0E41\u0E2D\u0E1B",myAccount:"\u0E1A\u0E31\u0E0D\u0E0A\u0E35\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19"},categories:{bug:"\u0E1A\u0E31\u0E01",slow:"\u0E0A\u0E49\u0E32 / \u0E41\u0E25\u0E04",visual:"\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25\u0E1C\u0E34\u0E14\u0E1B\u0E01\u0E15\u0E34",confusing:"\u0E2A\u0E31\u0E1A\u0E2A\u0E19",other:"\u0E2D\u0E37\u0E48\u0E19\u0E46"},categoryDescriptions:{bug:"\u0E21\u0E35\u0E1A\u0E32\u0E07\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E40\u0E2A\u0E35\u0E22\u0E2B\u0E23\u0E37\u0E2D\u0E17\u0E33\u0E07\u0E32\u0E19\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",slow:"\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E1B\u0E23\u0E30\u0E2A\u0E34\u0E17\u0E18\u0E34\u0E20\u0E32\u0E1E\u0E2B\u0E23\u0E37\u0E2D\u0E42\u0E2B\u0E25\u0E14\u0E0A\u0E49\u0E32",visual:"\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E40\u0E25\u0E22\u0E4C\u0E40\u0E2D\u0E32\u0E15\u0E4C \u0E2A\u0E44\u0E15\u0E25\u0E4C \u0E2B\u0E23\u0E37\u0E2D\u0E01\u0E32\u0E23\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25",confusing:"\u0E40\u0E02\u0E49\u0E32\u0E43\u0E08\u0E22\u0E32\u0E01\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E17\u0E32\u0E07\u0E22\u0E32\u0E01",other:"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E2D\u0E37\u0E48\u0E19"}},step2:{heading:"\u0E40\u0E01\u0E34\u0E14\u0E2D\u0E30\u0E44\u0E23\u0E02\u0E36\u0E49\u0E19?",intents:{bug:["\u0E41\u0E04\u0E23\u0E0A","\u0E44\u0E21\u0E48\u0E15\u0E2D\u0E1A\u0E2A\u0E19\u0E2D\u0E07","\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2B\u0E32\u0E22","\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"],slow:["\u0E42\u0E2B\u0E25\u0E14\u0E2B\u0E19\u0E49\u0E32","\u0E01\u0E32\u0E23\u0E42\u0E15\u0E49\u0E15\u0E2D\u0E1A","API","\u0E41\u0E2D\u0E19\u0E34\u0E40\u0E21\u0E0A\u0E31\u0E19","\u0E2D\u0E37\u0E48\u0E19\u0E46"],visual:["\u0E40\u0E25\u0E22\u0E4C\u0E40\u0E2D\u0E32\u0E15\u0E4C\u0E40\u0E2A\u0E35\u0E22","\u0E0B\u0E49\u0E2D\u0E19\u0E17\u0E31\u0E1A","\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E2B\u0E32\u0E22","\u0E2A\u0E35/\u0E1F\u0E2D\u0E19\u0E15\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"],confusing:["\u0E1B\u0E49\u0E32\u0E22\u0E44\u0E21\u0E48\u0E0A\u0E31\u0E14","\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E33\u0E41\u0E19\u0E30\u0E19\u0E33","\u0E02\u0E31\u0E49\u0E19\u0E15\u0E2D\u0E19\u0E44\u0E21\u0E48\u0E04\u0E32\u0E14\u0E04\u0E34\u0E14","\u0E2B\u0E25\u0E07\u0E17\u0E32\u0E07","\u0E2D\u0E37\u0E48\u0E19\u0E46"],other:["\u0E02\u0E2D\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C","\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07","\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"]}},step3:{heading:"\u0E1A\u0E2D\u0E01\u0E40\u0E23\u0E32\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",descriptionPlaceholder:"\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\u0E40\u0E01\u0E34\u0E14\u0E02\u0E36\u0E49\u0E19\u2026",screenshotButton:"\u0E41\u0E19\u0E1A\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15",screenshotAttached:"\u0E41\u0E19\u0E1A\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u0E41\u0E25\u0E49\u0E27 \u2713",screenshotCapturing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E16\u0E48\u0E32\u0E22\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u2026",screenshotFailed:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E16\u0E48\u0E32\u0E22\u0E20\u0E32\u0E1E\u0E44\u0E14\u0E49 \u2014 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",screenshotPreviewAlt:"\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u0E17\u0E35\u0E48\u0E08\u0E30\u0E16\u0E39\u0E01\u0E2A\u0E48\u0E07",screenshotSensitiveHint:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E20\u0E32\u0E1E \u2014 \u0E2B\u0E32\u0E01\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E48\u0E27\u0E19\u0E15\u0E31\u0E27 (\u0E22\u0E2D\u0E14\u0E40\u0E07\u0E34\u0E19 \u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E48\u0E27\u0E19\u0E1A\u0E38\u0E04\u0E04\u0E25) \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E1A\u0E2D\u0E2D\u0E01",elementButton:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A",elementSelected:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E41\u0E25\u0E49\u0E27 \u2713",elementCapturing:"\u0E04\u0E25\u0E34\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u2026",elementSelectorHint:"\u0E04\u0E25\u0E34\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E43\u0E14\u0E01\u0E47\u0E44\u0E14\u0E49 \xB7 Esc \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",optional:"(\u0E44\u0E21\u0E48\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A)",tooShort:"\u0E01\u0E23\u0E38\u0E13\u0E32\u0E43\u0E2B\u0E49\u0E23\u0E32\u0E22\u0E25\u0E30\u0E40\u0E2D\u0E35\u0E22\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",examplePrompts:["\u0E1B\u0E38\u0E48\u0E21\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01\u0E44\u0E21\u0E48\u0E17\u0E33\u0E07\u0E32\u0E19","\u0E2B\u0E19\u0E49\u0E32\u0E04\u0E49\u0E32\u0E07\u0E19\u0E32\u0E19 10 \u0E27\u0E34\u0E19\u0E32\u0E17\u0E35","\u0E40\u0E25\u0E22\u0E4C\u0E40\u0E2D\u0E32\u0E15\u0E4C\u0E1E\u0E31\u0E07"]},assistant:{defaultLabel:"\u0E16\u0E32\u0E21",defaultGreeting:"\u0E16\u0E32\u0E21\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E19\u0E35\u0E49 \u2014 \u0E43\u0E0A\u0E49\u0E40\u0E09\u0E1E\u0E32\u0E30\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E40\u0E2B\u0E47\u0E19\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D",inputPlaceholder:"\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E04\u0E33\u0E16\u0E32\u0E21\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u2026",sendAriaLabel:"\u0E2A\u0E48\u0E07",hubDescription:"\u0E02\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E48\u0E27\u0E22\u0E40\u0E2B\u0E25\u0E37\u0E2D\u0E43\u0E19\u0E01\u0E32\u0E23\u0E43\u0E0A\u0E49\u0E41\u0E2D\u0E1B",thinking:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E04\u0E34\u0E14\u2026",errors:{noResponse:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E01\u0E32\u0E23\u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A \u2014 \u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E41\u0E25\u0E49\u0E27\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",generic:"\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E0A\u0E48\u0E27\u0E22\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E43\u0E19\u0E2D\u0E35\u0E01\u0E2A\u0E31\u0E01\u0E04\u0E23\u0E39\u0E48"}},flows:{eyebrows:{inbox:"Mushi \xB7 \u0E01\u0E25\u0E48\u0E2D\u0E07\u0E02\u0E32\u0E40\u0E02\u0E49\u0E32",roadmap:"Mushi \xB7 \u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22",community:"Mushi \xB7 \u0E0A\u0E38\u0E21\u0E0A\u0E19",identity:"Mushi \xB7 \u0E1A\u0E31\u0E0D\u0E0A\u0E35",signIn:"Mushi \xB7 \u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A",allApps:"Mushi \xB7 \u0E17\u0E38\u0E01\u0E41\u0E2D\u0E1B",receipt:"Mushi \xB7 \u0E43\u0E1A\u0E23\u0E31\u0E1A",thread:"Mushi \xB7 \u0E01\u0E25\u0E48\u0E2D\u0E07\u0E02\u0E32\u0E40\u0E02\u0E49\u0E32"},reports:{title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E08\u0E32\u0E01\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E19\u0E35\u0E49",leaderboardLink:"\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33"},roadmap:{title:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E08\u0E32\u0E01\u0E0A\u0E38\u0E21\u0E0A\u0E19",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22 \u0E40\u0E1B\u0E47\u0E19\u0E04\u0E19\u0E41\u0E23\u0E01\u0E17\u0E35\u0E48\u0E40\u0E2A\u0E19\u0E2D\u0E44\u0E14\u0E49",shipped:"\u0E1B\u0E25\u0E48\u0E2D\u0E22\u0E41\u0E25\u0E49\u0E27",vote:"\u0E42\u0E2B\u0E27\u0E15",voted:"\u0E42\u0E2B\u0E27\u0E15\u0E41\u0E25\u0E49\u0E27",voteCount:"{n} \u0E42\u0E2B\u0E27\u0E15",untitled:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E44\u0E21\u0E48\u0E21\u0E35\u0E0A\u0E37\u0E48\u0E2D"},leaderboard:{title:"\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E1C\u0E39\u0E49\u0E23\u0E48\u0E27\u0E21\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19 \u2014 \u0E21\u0E32\u0E40\u0E1B\u0E47\u0E19\u0E04\u0E19\u0E41\u0E23\u0E01",signInPrompt:"\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E39\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13 \u2192",myRank:"\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E04\u0E37\u0E2D #{rank} \u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49",footer:"\u0E1C\u0E39\u0E49\u0E23\u0E48\u0E27\u0E21\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01\u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49 \xB7 \u0E04\u0E30\u0E41\u0E19\u0E19\u0E23\u0E35\u0E40\u0E0B\u0E47\u0E15\u0E17\u0E38\u0E01\u0E40\u0E14\u0E37\u0E2D\u0E19",anon:"\u0E44\u0E21\u0E48\u0E23\u0E30\u0E1A\u0E38\u0E0A\u0E37\u0E48\u0E2D"},account:{title:"\u0E1A\u0E31\u0E0D\u0E0A\u0E35 Mushi",checkEmailTitle:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E2D\u0E35\u0E40\u0E21\u0E25",joinTitle:"\u0E40\u0E02\u0E49\u0E32\u0E23\u0E48\u0E27\u0E21\u0E0A\u0E38\u0E21\u0E0A\u0E19",emailLabel:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",emailPlaceholder:"\u0E2D\u0E35\u0E40\u0E21\u0E25",signInPrompt:"\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E39\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E17\u0E38\u0E01\u0E41\u0E2D\u0E1B\u0E41\u0E25\u0E30\u0E44\u0E15\u0E48\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A \u0E44\u0E21\u0E48\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E0A\u0E49\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19",magicLinkSent:"\u0E40\u0E23\u0E32\u0E2A\u0E48\u0E07\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E44\u0E1B\u0E17\u0E35\u0E48 {email} \u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",resendEmail:"\u0E2A\u0E48\u0E07\u0E2D\u0E35\u0E40\u0E21\u0E25\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",sendLink:"\u0E2A\u0E48\u0E07\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A",sending:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u2026",crossAppReports:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19\u0E17\u0E38\u0E01\u0E41\u0E2D\u0E1B \u2192",viewLeaderboard:"\u0E14\u0E39\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01 \u2192",signOut:"\u0E2D\u0E2D\u0E01\u0E08\u0E32\u0E01\u0E23\u0E30\u0E1A\u0E1A",rankSummary:"\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A #{rank} \xB7 {points} pts \u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49"},crossApp:{title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",unknownApp:"\u0E41\u0E2D\u0E1B\u0E44\u0E21\u0E48\u0E17\u0E23\u0E32\u0E1A\u0E0A\u0E37\u0E48\u0E2D"},thread:{title:"\u0E40\u0E18\u0E23\u0E14\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E40\u0E18\u0E23\u0E14\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E17\u0E35\u0E21\u0E1E\u0E31\u0E12\u0E19\u0E32",confirmFixed:"\u0E43\u0E0A\u0E48 \u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27",notFixed:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E41\u0E01\u0E49",replyPlaceholder:"\u0E15\u0E2D\u0E1A\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u2026",send:"\u0E2A\u0E48\u0E07"},success:{trackReport:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49 \u203A",receipt:"\u0E43\u0E1A\u0E23\u0E31\u0E1A",delivering:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E17\u0E35\u0E21\u2026",queuedOffline:"\u0E04\u0E34\u0E27\u0E2D\u0E2D\u0E1F\u0E44\u0E25\u0E19\u0E4C",queuedHint:"\u0E08\u0E30\u0E2A\u0E48\u0E07\u0E17\u0E31\u0E19\u0E17\u0E35\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E01\u0E25\u0E31\u0E1A\u0E21\u0E32\u0E2D\u0E2D\u0E19\u0E44\u0E25\u0E19\u0E4C",trackOnMushi:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E1A\u0E19 Mushi",slaDefault:"\u0E40\u0E23\u0E32\u0E08\u0E30\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13"},featureRequest:{label:"\u0E02\u0E2D\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C",description:"\u0E40\u0E2A\u0E19\u0E2D\u0E01\u0E32\u0E23\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E41\u0E1B\u0E25\u0E07"},poweredBy:"Powered by Mushi v{version}"}};var Ms={widget:{trigger:"Reportar problema",title:"Reportar un problema",close:"Cerrar",back:"Volver",submit:"Enviar",submitting:"Enviando\u2026",submitted:"\xA1Gracias! Tu reporte ha sido enviado.",error:"No se pudo enviar tu reporte. Revisa tu conexi\xF3n e int\xE9ntalo de nuevo."},step1:{heading:"\xBFQu\xE9 tipo de problema?",reportSectionLabel:"Reportar un problema",moreNavLabel:"M\xE1s",moreNav:{yourReports:"Tus reportes",yourReportsDesc:"Ver estado, respuestas del desarrollador y responder",unreadNew:"nuevos",communityIdeas:"Ideas de la comunidad",communityIdeasDesc:"Vota funciones y mira qu\xE9 se lanz\xF3",leaderboard:"Clasificaci\xF3n",joinCommunity:"Unirse a la comunidad \xB7 Rastrea reportes entre apps",myAccount:"Mi cuenta"},categories:{bug:"Error",slow:"Lento",visual:"Problema visual",confusing:"Confuso",other:"Otro"},categoryDescriptions:{bug:"Algo est\xE1 roto o no funciona",slow:"Problema de rendimiento o carga lenta",visual:"Problema de dise\xF1o, estilo o visualizaci\xF3n",confusing:"Dif\xEDcil de entender o navegar",other:"Otro problema"}},step2:{heading:"\xBFQu\xE9 pas\xF3?",intents:{bug:["Cierre inesperado","Sin respuesta","P\xE9rdida de datos","Resultado incorrecto","Otro"],slow:["Carga de p\xE1gina","Interacci\xF3n","Llamada API","Animaci\xF3n","Otro"],visual:["Layout roto","Superposici\xF3n","Elemento faltante","Color/fuente incorrecta","Otro"],confusing:["Etiqueta confusa","Sin ayuda","Flujo inesperado","Navegaci\xF3n perdida","Otro"],other:["Solicitud de funci\xF3n","Accesibilidad","Error tipogr\xE1fico","Otro"]}},step3:{heading:"Cu\xE9ntanos m\xE1s",descriptionPlaceholder:"Describe lo que pas\xF3\u2026",screenshotButton:"Adjuntar captura",screenshotAttached:"Captura adjunta \u2713",screenshotCapturing:"Tomando captura\u2026",screenshotFailed:"No se pudo capturar \u2014 descr\xEDbelo en su lugar",screenshotPreviewAlt:"Vista previa de la captura que se enviar\xE1",screenshotSensitiveHint:"Revisa la vista previa \u2014 qu\xEDtala si se ve informaci\xF3n privada (saldos, datos personales).",elementButton:"Seleccionar elemento",elementSelected:"Elemento seleccionado \u2713",elementCapturing:"Haz clic en cualquier elemento\u2026",elementSelectorHint:"Clic en cualquier elemento \xB7 Esc para cancelar",optional:"(opcional)",tooShort:"Un poco m\xE1s de detalle nos ayuda a resolverlo",examplePrompts:["El bot\xF3n guardar no responde","La p\xE1gina se congel\xF3 10 segundos","El dise\xF1o se ve roto aqu\xED"]},assistant:{defaultLabel:"Preguntar",defaultGreeting:"Pregunta sobre esta p\xE1gina \u2014 solo uso lo que ves aqu\xED.",inputPlaceholder:"Escribe tu pregunta\u2026",sendAriaLabel:"Enviar",hubDescription:"Obt\xE9n ayuda para usar esta app",thinking:"Pensando\u2026",errors:{noResponse:"Sin respuesta \u2014 revisa tu conexi\xF3n e int\xE9ntalo de nuevo.",generic:"No se pudo contactar al asistente. Int\xE9ntalo en un momento."}},flows:{eyebrows:{inbox:"Mushi \xB7 Bandeja",roadmap:"Mushi \xB7 Ideas",community:"Mushi \xB7 Comunidad",identity:"Mushi \xB7 Cuenta",signIn:"Mushi \xB7 Acceso",allApps:"Mushi \xB7 Todas las apps",receipt:"Mushi \xB7 Recibo",thread:"Mushi \xB7 Bandeja"},reports:{title:"Tus reportes",loading:"Cargando reportes\u2026",empty:"A\xFAn no hay reportes en este navegador.",leaderboardLink:"Clasificaci\xF3n"},roadmap:{title:"Ideas de la comunidad",loading:"Cargando ideas\u2026",empty:"A\xFAn no hay ideas. S\xE9 el primero en sugerir una.",shipped:"Publicado",vote:"Votar",voted:"Votado",voteCount:"{n} votos",untitled:"Idea sin t\xEDtulo"},leaderboard:{title:"Clasificaci\xF3n global",loading:"Cargando clasificaci\xF3n\u2026",empty:"A\xFAn no hay colaboradores \u2014 s\xE9 el primero.",signInPrompt:"Inicia sesi\xF3n para ver tu puesto \u2192",myRank:"Est\xE1s en el puesto #{rank} este mes",footer:"Colaboradores globales este mes \xB7 Los puntos se reinician mensualmente",anon:"An\xF3nimo"},account:{title:"Cuenta Mushi",checkEmailTitle:"Revisa tu correo",joinTitle:"\xDAnete a la comunidad",emailLabel:"Correo electr\xF3nico",emailPlaceholder:"Correo",signInPrompt:"Inicia sesi\xF3n para ver tus reportes en todas las apps y subir en la clasificaci\xF3n. Sin contrase\xF1a.",magicLinkSent:"Enviamos un enlace de acceso a {email}. \xC1brelo para conectar tus reportes.",resendEmail:"Reenviar correo",sendLink:"Enviar enlace de acceso",sending:"Enviando\u2026",crossAppReports:"Mis reportes en todas las apps \u2192",viewLeaderboard:"Ver clasificaci\xF3n global \u2192",signOut:"Cerrar sesi\xF3n",rankSummary:"Puesto #{rank} \xB7 {points} pts este mes"},crossApp:{title:"Mis reportes",loading:"Cargando tus reportes\u2026",empty:"A\xFAn no has enviado reportes.",unknownApp:"App desconocida"},thread:{title:"Hilo del reporte",loading:"Cargando hilo\u2026",empty:"A\xFAn no hay respuestas del equipo.",confirmFixed:"S\xED, qued\xF3 resuelto",notFixed:"A\xFAn no est\xE1 resuelto",replyPlaceholder:"Responder al desarrollador\u2026",send:"Enviar"},success:{trackReport:"Seguir este reporte \u203A",receipt:"Recibo",delivering:"Enviando al equipo\u2026",queuedOffline:"En cola sin conexi\xF3n",queuedHint:"Lo enviaremos en cuanto vuelvas a estar en l\xEDnea.",trackOnMushi:"Seguir en Mushi",slaDefault:"Revisaremos tu reporte."},featureRequest:{label:"Solicitud de funci\xF3n",description:"Sugerir un cambio"},poweredBy:"Con tecnolog\xEDa de Mushi v{version}"}};var ea={en:Vt,ja:Cs,th:Ts,es:Ms};function $r(t){let e=t&&t!=="auto"?t:typeof navigator<"u"?navigator.language??navigator.languages?.[0]:void 0;if(!e)return Vt;let r=e.split("-")[0].toLowerCase();return ea[r]??Vt}function $s(t,e="",r=""){let n=t==="dark",s=n?"dark":"light",o=Mr(s),l=fs(s,e,r),i=ps[s];return {isDark:n,paper:o.paper,paperRaised:o.paperRaised,ink:o.ink,inkMuted:o.inkMuted,inkFaint:o.inkFaint,inkDim:o.inkDim,rule:o.rule,ruleStrong:o.ruleStrong,widgetAccent:l.accent,widgetAccentWash:l.accentWash,widgetAccentInk:l.accentInk,widgetAccentShadow:n?Cr.dark:Cr.light,ok:o.ok,danger:o.danger,onAccent:us,inverse:ds,neonBannerBg:Wt.bg,neonBannerFg:Wt.fg,neonBannerBorder:Wt.border,brandBannerBorder:n?Tr.dark:Tr.light,statusSent:i.sent,statusReview:i.review,statusFixing:i.fixing,statusFixed:i.fixed,statusClosedBg:n?"rgba(242,235,221,0.06)":"rgba(14,13,11,0.05)",fontDisplay:et.fontDisplay,fontBody:et.fontBody,fontMono:et.fontMono,easeStamp:zt.easeStamp,zBanner:tt.banner,zPanel:tt.panel,zOverlay:tt.overlay,fabSize:rt.fabSize,panelWidth:rt.panelWidth,panelSheetBreakpoint:rt.panelSheetBreakpoint}}function Ls(t,e="",r=""){let n=$s(t,e,r),{isDark:s,paper:o,paperRaised:l,ink:i,inkMuted:a,inkFaint:h,inkDim:p,rule:m,ruleStrong:b,widgetAccent:u,widgetAccentWash:f,widgetAccentInk:v,widgetAccentShadow:E,ok:M,danger:C,onAccent:w,inverse:P,neonBannerBg:y,neonBannerFg:k,neonBannerBorder:R,brandBannerBorder:x,statusSent:B,statusReview:N,statusFixing:Z,statusFixed:X,statusClosedBg:j,fontDisplay:V,fontBody:O,fontMono:_,easeStamp:L,zBanner:ee,fabSize:Q}=n,{sizeBody:I,lineBody:A}=et,{durationFast:H}=zt,{bannerHeight:F,gutter:T,panelWidth:pe,panelMaxHeight:Ne,panelSheetBreakpoint:oe,edgeTabWidth:q}=rt,te=Q+12,{base:ie}=tt,$e=ms.control;return `
1
+ (function(){'use strict';var Io=Object.defineProperty;var ut=(t,e,r)=>()=>{if(r)throw r[0];try{return t&&(e=t(t=0)),e}catch(n){throw r=[n],n}};var gn=(t,e)=>{for(var r in e)Io(t,r,{get:e[r],enumerable:true});};function Lo(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&t.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in t&&t.BYTES_PER_ELEMENT===1}function bn(t,e=""){if(typeof t!="number"){let r=e&&`"${e}" `;throw new TypeError(`${r}expected number, got ${typeof t}`)}if(!Number.isSafeInteger(t)||t<0){let r=e&&`"${e}" `;throw new RangeError(`${r}expected integer >= 0, got ${t}`)}}function dt(t,e,r=""){let n=Lo(t),s=t?.length,o=e!==void 0;if(!n||o){let a=r&&`"${r}" `,i="",l=n?`length=${s}`:`type=${typeof t}`,p=a+"expected Uint8Array"+i+", got "+l;throw n?new RangeError(p):new TypeError(p)}return t}function yn(t){if(typeof t!="function"||typeof t.create!="function")throw new TypeError("Hash must wrapped by utils.createHasher");if(bn(t.outputLen),bn(t.blockLen),t.outputLen<1)throw new Error('"outputLen" must be >= 1');if(t.blockLen<1)throw new Error('"blockLen" must be >= 1')}function Xe(t,e=true){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function Tt(t,e){dt(t,void 0,"digestInto() output");let r=e.outputLen;if(t.length<r)throw new RangeError('"digestInto() output" expected to be of length >='+r)}function Ae(...t){for(let e=0;e<t.length;e++)t[e].fill(0);}function Mt(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function Ee(t,e){return t<<32-e|t>>>e}function ze(t,e={}){let r=(s,o)=>t(o).update(s).digest(),n=t(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.canXOF=n.canXOF,r.create=s=>t(s),Object.assign(r,e),Object.freeze(r)}var Ve,$t=ut(()=>{"use strict";Ve=t=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,t])});});function vn(t,e,r){return t&e^~t&r}function xn(t,e,r){return t&e^t&r^e&r}var pt,_e,Pe,ne,se,wn=ut(()=>{"use strict";$t();pt=class{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(e,r,n,s){this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=s,this.buffer=new Uint8Array(e),this.view=Mt(this.buffer);}update(e){Xe(this),dt(e);let{view:r,buffer:n,blockLen:s}=this,o=e.length;for(let a=0;a<o;){let i=Math.min(s-this.pos,o-a);if(i===s){let l=Mt(e);for(;s<=o-a;a+=s)this.process(l,a);continue}n.set(e.subarray(a,a+i),this.pos),this.pos+=i,a+=i,this.pos===s&&(this.process(r,0),this.pos=0);}return this.length+=e.length,this.roundClean(),this}digestInto(e){Xe(this),Tt(e,this),this.finished=!0;let{buffer:r,view:n,blockLen:s,isLE:o}=this,{pos:a}=this;r[a++]=128,Ae(this.buffer.subarray(a)),this.padOffset>s-a&&(this.process(n,0),a=0);for(let m=a;m<s;m++)r[m]=0;n.setBigUint64(s-8,BigInt(this.length*8),o),this.process(n,0);let i=Mt(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen must be aligned to 32bit");let p=l/4,h=this.get();if(p>h.length)throw new Error("_sha2: outputLen bigger than state");for(let m=0;m<p;m++)i.setUint32(4*m,h[m],o);}digest(){let{buffer:e,outputLen:r}=this;this.digestInto(e);let n=e.slice(0,r);return this.destroy(),n}_cloneInto(e){e||=new this.constructor,e.set(...this.get());let{blockLen:r,buffer:n,length:s,finished:o,destroyed:a,pos:i}=this;return e.destroyed=a,e.finished=o,e.length=s,e.pos=i,s%r&&e.buffer.set(n),e}clone(){return this._cloneInto()}},_e=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Pe=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),ne=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),se=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]);});function Ao(t,e=false){return e?{h:Number(t&It),l:Number(t>>Sn&It)}:{h:Number(t>>Sn&It)|0,l:Number(t&It)|0}}function En(t,e=false){let r=t.length,n=new Uint32Array(r),s=new Uint32Array(r);for(let o=0;o<r;o++){let{h:a,l:i}=Ao(t[o],e);[n[o],s[o]]=[a,i];}return [n,s]}function Re(t,e,r,n){let s=(e>>>0)+(n>>>0);return {h:t+r+(s/2**32|0)|0,l:s|0}}var It,Sn,hr,mr,Ke,Ge,ht,mt,kn,Rn,Cn,Tn,Mn,$n,In=ut(()=>{"use strict";It=BigInt(4294967295),Sn=BigInt(32);hr=(t,e,r)=>t>>>r,mr=(t,e,r)=>t<<32-r|e>>>r,Ke=(t,e,r)=>t>>>r|e<<32-r,Ge=(t,e,r)=>t<<32-r|e>>>r,ht=(t,e,r)=>t<<64-r|e>>>r-32,mt=(t,e,r)=>t>>>r-32|e<<64-r;kn=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),Rn=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,Cn=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),Tn=(t,e,r,n,s)=>e+r+n+s+(t/2**32|0)|0,Mn=(t,e,r,n,s)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(s>>>0),$n=(t,e,r,n,s,o)=>e+r+n+s+o+(t/2**32|0)|0;});var fr={};gn(fr,{_SHA224:()=>_t,_SHA256:()=>At,_SHA384:()=>Ht,_SHA512:()=>Pt,_SHA512_224:()=>Dt,_SHA512_256:()=>Ot,sha224:()=>Bo,sha256:()=>Oo,sha384:()=>Uo,sha512:()=>No,sha512_224:()=>qo,sha512_256:()=>Fo});var Po,Ue,Lt,At,_t,Ln,Ho,Do,Fe,qe,Je,Pt,Ht,le,ce,Dt,Ot,Oo,Bo,No,Uo,Fo,qo,gr=ut(()=>{"use strict";wn();In();$t();Po=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Ue=new Uint32Array(64),Lt=class extends pt{constructor(e){super(64,e,8,!1);}get(){let{A:e,B:r,C:n,D:s,E:o,F:a,G:i,H:l}=this;return [e,r,n,s,o,a,i,l]}set(e,r,n,s,o,a,i,l){this.A=e|0,this.B=r|0,this.C=n|0,this.D=s|0,this.E=o|0,this.F=a|0,this.G=i|0,this.H=l|0;}process(e,r){for(let m=0;m<16;m++,r+=4)Ue[m]=e.getUint32(r,!1);for(let m=16;m<64;m++){let b=Ue[m-15],u=Ue[m-2],f=Ee(b,7)^Ee(b,18)^b>>>3,v=Ee(u,17)^Ee(u,19)^u>>>10;Ue[m]=v+Ue[m-7]+f+Ue[m-16]|0;}let{A:n,B:s,C:o,D:a,E:i,F:l,G:p,H:h}=this;for(let m=0;m<64;m++){let b=Ee(i,6)^Ee(i,11)^Ee(i,25),u=h+b+vn(i,l,p)+Po[m]+Ue[m]|0,v=(Ee(n,2)^Ee(n,13)^Ee(n,22))+xn(n,s,o)|0;h=p,p=l,l=i,i=a+u|0,a=o,o=s,s=n,n=u+v|0;}n=n+this.A|0,s=s+this.B|0,o=o+this.C|0,a=a+this.D|0,i=i+this.E|0,l=l+this.F|0,p=p+this.G|0,h=h+this.H|0,this.set(n,s,o,a,i,l,p,h);}roundClean(){Ae(Ue);}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),Ae(this.buffer);}},At=class extends Lt{A=_e[0]|0;B=_e[1]|0;C=_e[2]|0;D=_e[3]|0;E=_e[4]|0;F=_e[5]|0;G=_e[6]|0;H=_e[7]|0;constructor(){super(32);}},_t=class extends Lt{A=Pe[0]|0;B=Pe[1]|0;C=Pe[2]|0;D=Pe[3]|0;E=Pe[4]|0;F=Pe[5]|0;G=Pe[6]|0;H=Pe[7]|0;constructor(){super(28);}},Ln=En(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),Ho=Ln[0],Do=Ln[1],Fe=new Uint32Array(80),qe=new Uint32Array(80),Je=class extends pt{constructor(e){super(128,e,16,!1);}get(){let{Ah:e,Al:r,Bh:n,Bl:s,Ch:o,Cl:a,Dh:i,Dl:l,Eh:p,El:h,Fh:m,Fl:b,Gh:u,Gl:f,Hh:v,Hl:k}=this;return [e,r,n,s,o,a,i,l,p,h,m,b,u,f,v,k]}set(e,r,n,s,o,a,i,l,p,h,m,b,u,f,v,k){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=s|0,this.Ch=o|0,this.Cl=a|0,this.Dh=i|0,this.Dl=l|0,this.Eh=p|0,this.El=h|0,this.Fh=m|0,this.Fl=b|0,this.Gh=u|0,this.Gl=f|0,this.Hh=v|0,this.Hl=k|0;}process(e,r){for(let w=0;w<16;w++,r+=4)Fe[w]=e.getUint32(r),qe[w]=e.getUint32(r+=4);for(let w=16;w<80;w++){let A=Fe[w-15]|0,y=qe[w-15]|0,E=Ke(A,y,1)^Ke(A,y,8)^hr(A,y,7),C=Ge(A,y,1)^Ge(A,y,8)^mr(A,y,7),x=Fe[w-2]|0,B=qe[w-2]|0,N=Ke(x,B,19)^ht(x,B,61)^hr(x,B,6),Z=Ge(x,B,19)^mt(x,B,61)^mr(x,B,6),X=Cn(C,Z,qe[w-7],qe[w-16]),j=Tn(X,E,N,Fe[w-7],Fe[w-16]);Fe[w]=j|0,qe[w]=X|0;}let{Ah:n,Al:s,Bh:o,Bl:a,Ch:i,Cl:l,Dh:p,Dl:h,Eh:m,El:b,Fh:u,Fl:f,Gh:v,Gl:k,Hh:T,Hl:R}=this;for(let w=0;w<80;w++){let A=Ke(m,b,14)^Ke(m,b,18)^ht(m,b,41),y=Ge(m,b,14)^Ge(m,b,18)^mt(m,b,41),E=m&u^~m&v,C=b&f^~b&k,x=Mn(R,y,C,Do[w],qe[w]),B=$n(x,T,A,E,Ho[w],Fe[w]),N=x|0,Z=Ke(n,s,28)^ht(n,s,34)^ht(n,s,39),X=Ge(n,s,28)^mt(n,s,34)^mt(n,s,39),j=n&o^n&i^o&i,V=s&a^s&l^a&l;T=v|0,R=k|0,v=u|0,k=f|0,u=m|0,f=b|0,{h:m,l:b}=Re(p|0,h|0,B|0,N|0),p=i|0,h=l|0,i=o|0,l=a|0,o=n|0,a=s|0;let O=kn(N,X,V);n=Rn(O,B,Z,j),s=O|0;}(({h:n,l:s}=Re(this.Ah|0,this.Al|0,n|0,s|0))),{h:o,l:a}=Re(this.Bh|0,this.Bl|0,o|0,a|0),{h:i,l}=Re(this.Ch|0,this.Cl|0,i|0,l|0),{h:p,l:h}=Re(this.Dh|0,this.Dl|0,p|0,h|0),{h:m,l:b}=Re(this.Eh|0,this.El|0,m|0,b|0),{h:u,l:f}=Re(this.Fh|0,this.Fl|0,u|0,f|0),{h:v,l:k}=Re(this.Gh|0,this.Gl|0,v|0,k|0),{h:T,l:R}=Re(this.Hh|0,this.Hl|0,T|0,R|0),this.set(n,s,o,a,i,l,p,h,m,b,u,f,v,k,T,R);}roundClean(){Ae(Fe,qe);}destroy(){this.destroyed=!0,Ae(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);}},Pt=class extends Je{Ah=se[0]|0;Al=se[1]|0;Bh=se[2]|0;Bl=se[3]|0;Ch=se[4]|0;Cl=se[5]|0;Dh=se[6]|0;Dl=se[7]|0;Eh=se[8]|0;El=se[9]|0;Fh=se[10]|0;Fl=se[11]|0;Gh=se[12]|0;Gl=se[13]|0;Hh=se[14]|0;Hl=se[15]|0;constructor(){super(64);}},Ht=class extends Je{Ah=ne[0]|0;Al=ne[1]|0;Bh=ne[2]|0;Bl=ne[3]|0;Ch=ne[4]|0;Cl=ne[5]|0;Dh=ne[6]|0;Dl=ne[7]|0;Eh=ne[8]|0;El=ne[9]|0;Fh=ne[10]|0;Fl=ne[11]|0;Gh=ne[12]|0;Gl=ne[13]|0;Hh=ne[14]|0;Hl=ne[15]|0;constructor(){super(48);}},le=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),ce=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),Dt=class extends Je{Ah=le[0]|0;Al=le[1]|0;Bh=le[2]|0;Bl=le[3]|0;Ch=le[4]|0;Cl=le[5]|0;Dh=le[6]|0;Dl=le[7]|0;Eh=le[8]|0;El=le[9]|0;Fh=le[10]|0;Fl=le[11]|0;Gh=le[12]|0;Gl=le[13]|0;Hh=le[14]|0;Hl=le[15]|0;constructor(){super(28);}},Ot=class extends Je{Ah=ce[0]|0;Al=ce[1]|0;Bh=ce[2]|0;Bl=ce[3]|0;Ch=ce[4]|0;Cl=ce[5]|0;Dh=ce[6]|0;Dl=ce[7]|0;Eh=ce[8]|0;El=ce[9]|0;Fh=ce[10]|0;Fl=ce[11]|0;Gh=ce[12]|0;Gl=ce[13]|0;Hh=ce[14]|0;Hl=ce[15]|0;constructor(){super(32);}},Oo=ze(()=>new At,Ve(1)),Bo=ze(()=>new _t,Ve(4)),No=ze(()=>new Pt,Ve(3)),Uo=ze(()=>new Ht,Ve(2)),Fo=ze(()=>new Ot,Ve(6)),qo=ze(()=>new Dt,Ve(5));});var An={};gn(An,{_HMAC:()=>ft,hmac:()=>jo});var ft,jo,_n=ut(()=>{"use strict";$t();ft=class{oHash;iHash;blockLen;outputLen;canXOF=!1;finished=!1;destroyed=!1;constructor(e,r){if(yn(e),dt(r,void 0,"key"),this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let n=this.blockLen,s=new Uint8Array(n);s.set(r.length>n?e.create().update(r).digest():r);for(let o=0;o<s.length;o++)s[o]^=54;this.iHash.update(s),this.oHash=e.create();for(let o=0;o<s.length;o++)s[o]^=106;this.oHash.update(s),Ae(s);}update(e){return Xe(this),this.iHash.update(e),this}digestInto(e){Xe(this),Tt(e,this),this.finished=!0;let r=e.subarray(0,this.outputLen);this.iHash.digestInto(r),this.oHash.update(r),this.oHash.digestInto(r),this.destroy();}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||=Object.create(Object.getPrototypeOf(this),{});let{oHash:r,iHash:n,finished:s,destroyed:o,blockLen:a,outputLen:i}=this;return e=e,e.finished=s,e.destroyed=o,e.blockLen=a,e.outputLen=i,e.oHash=r._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy();}},jo=(()=>{let t=((e,r,n)=>new ft(e,r).update(n).digest());return t.create=(e,r)=>new ft(e,r),t})();});var Wo=4194304,Yn=1.5*1024*1024;function zo(t){try{return JSON.stringify(t)}catch{return null}}function Vo(t,e=Wo){let r=zo(t);if(r===null)return {ok:false,bytes:0,maxBytes:e,serializeFailed:true,reason:"Report could not be serialized (circular reference in metadata?)"};let n=new TextEncoder().encode(r).length;return n<=e?{ok:true,bytes:n,maxBytes:e}:{ok:false,bytes:n,maxBytes:e,reason:`Report payload ${Pn(n)} exceeds limit ${Pn(e)}`}}function Pn(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(2)} MB`}function Xn(){try{let r=globalThis.crypto?.subtle;if(r&&typeof r.digest=="function"&&typeof r.importKey=="function"&&typeof r.sign=="function")return r}catch{}return null}function Ft(t){return Array.from(t).map(e=>e.toString(16).padStart(2,"0")).join("")}async function wr(t){let e=Xn();if(e){let n=await e.digest("SHA-256",new TextEncoder().encode(t));return Ft(new Uint8Array(n))}let{sha256:r}=await Promise.resolve().then(()=>(gr(),fr));return Ft(r(new TextEncoder().encode(t)))}async function Ko(t,e){let r=Xn();if(r){let a=await r.importKey("raw",new TextEncoder().encode(t),{name:"HMAC",hash:"SHA-256"},false,["sign"]),i=await r.sign("HMAC",a,new TextEncoder().encode(e));return Ft(new Uint8Array(i))}let{hmac:n}=await Promise.resolve().then(()=>(_n(),An)),{sha256:s}=await Promise.resolve().then(()=>(gr(),fr)),o=n(s,new TextEncoder().encode(t),new TextEncoder().encode(e));return Ft(o)}var Hn=false,Go="X-Mushi-User-Token",Yo="X-Mushi-Project",Jn="X-Mushi-SDK-Package",Zn="X-Mushi-SDK-Version";function Xo(t){let e={"Content-Type":"application/json","X-Mushi-Api-Key":t.apiKey,[Yo]:t.projectId};return t.sdkPackage&&(e[Jn]=t.sdkPackage),t.sdkVersion&&(e[Zn]=t.sdkVersion),t.userToken&&(e[Go]=t.userToken),t.internalKind&&(e[gt]=t.internalKind),e}var qt="https://dxptnwrhwsqckaftyymj.supabase.co/functions/v1/api",gt="X-Mushi-Internal",Ze="__mushiInternal",Jo=1e4,Zo=2,Qo=4,ei=3e4;function Qn(t){let{projectId:e,apiKey:r,apiEndpoint:n=qt,timeout:s=Jo,maxRetries:o=Zo,getUserToken:a,sdkPackage:i,sdkVersion:l,circuitBreaker:p}=t,h=n.replace(/\/$/,""),m=p?.enabled!==false,b=Math.max(1,p?.threshold??Qo),u=Math.max(1e3,p?.cooldownMs??ei),f=0,v=0,k=()=>m&&v>Date.now(),T=()=>{f=0,v=0;},R=()=>{m&&(f+=1,f>=b&&(v=Date.now()+u));};async function w(y,E,C,x=o,B,N){if(k())return {ok:false,error:{code:"CIRCUIT_OPEN",message:"Endpoint temporarily unavailable; retrying later."}};let Z=`${h}${E}`,X=new AbortController,j=setTimeout(()=>X.abort(),s),V=a?.()??null;try{let O=await fetch(Z,{method:y,headers:{...Xo({apiKey:r,projectId:e,sdkPackage:i,sdkVersion:l,userToken:V,internalKind:B}),...N},body:C?JSON.stringify(C):void 0,signal:X.signal,...B?{[Ze]:B}:{}});if(clearTimeout(j),O.status===307||O.status===308){let ee=O.headers.get("Location");if(ee&&x>0){let Q=ee.replace(/\/v1\/.*$/,"").replace(/\/$/,"");if(Q!==h)return h=Q,w(y,E,C,x-1,B,N)}}if(!O.ok){let ee=await O.json().catch(()=>({}));if((O.status===401||O.status===403)&&!Hn){Hn=!0;let Q=h===qt?"Get the correct values at: https://kensaur.us/mushi-mushi/admin/projects":"Get the correct values from your Mushi console's Projects page.";console.error(`[Mushi] Credentials rejected (HTTP ${O.status}). Check your Project ID and API key scope (must be "report:write"). `+Q);}return O.status>=500&&x>0?(await Dn(On(o-x)),w(y,E,C,x-1,B,N)):(O.status>=500?R():T(),{ok:!1,error:{code:ee.error?.code||`HTTP_${O.status}`,message:ee.error?.message||ee.message||`HTTP ${O.status} error`}})}let P=await O.json(),$=P&&typeof P=="object"&&"ok"in P&&"data"in P?P.data:P;return T(),{ok:!0,data:$}}catch(O){return clearTimeout(j),x>0&&ti(O)?(await Dn(On(o-x)),w(y,E,C,x-1,B)):(R(),{ok:false,error:{code:"NETWORK_ERROR",message:O instanceof Error?O.message:"Unknown network error"}})}}async function A(y,E,C,x){let B=await wr(C),N=String(Date.now()),Z=await Ko(r,`${e}.${N}.${B}`),X=`${h}${E}`,j=await fetch(X,{method:y,headers:{"Content-Type":"application/json","X-Mushi-Api-Key":r,"X-Mushi-Project":e,...i?{[Jn]:i}:{},...l?{[Zn]:l}:{},[gt]:"reporter-poll","X-Reporter-Token-Hash":B,"X-Reporter-Ts":N,"X-Reporter-Hmac":Z},body:x?JSON.stringify(x):void 0,[Ze]:"reporter-poll"});if(!j.ok){let O=await j.json().catch(()=>({}));return {ok:false,error:{code:`HTTP_${j.status}`,message:O.error?.message??O.message??`HTTP ${j.status} error`}}}let V=await j.json();return {ok:true,data:V.data??V}}return {async submitReport(y){let E=Vo(y);return E.ok?w("POST","/v1/reports",y,o,"report-submit"):{ok:false,error:{code:E.serializeFailed?"SERIALIZE_FAILED":"PAYLOAD_TOO_LARGE",message:E.reason??"Report payload exceeds size limit"}}},async getReportStatus(y){return w("GET",`/v1/reports/${y}/status`,void 0,o,"report-status")},async getSdkConfig(){return w("GET","/v1/sdk/config",void 0,o,"sdk-config")},async askAssistant(y){return w("POST","/v1/sdk/assistant",{message:y.message,threadId:y.threadId??null,context:y.context??null},1,"community")},async getLatestSdkVersion(y){let E=new URLSearchParams({package:y}).toString();return w("GET",`/v1/sdk/latest-version?${E}`,void 0,o,"sdk-config")},async postDiscoveryEvent(y){return w("POST","/v1/sdk/discovery",y,1,"discovery")},async listReporterReports(y){return A("GET","/v1/reporter/reports",y)},async listReporterComments(y,E){return A("GET",`/v1/reporter/reports/${y}/comments`,E)},async replyToReporterReport(y,E,C,x){return A("POST",`/v1/reporter/reports/${y}/reply`,E,{body:C,...x?{feedback_signal:x}:{}})},async reopenReporterReport(y,E,C){return A("POST",`/v1/reporter/reports/${y}/reopen`,E,{note:C??""})},async listNotifications(y,E){let C=new URLSearchParams;E?.since&&C.set("since",E.since),E?.limit&&C.set("limit",String(E.limit));let x=C.size?`?${C.toString()}`:"";return A("GET",`/v1/notifications${x}`,y)},async markNotificationRead(y,E){return A("POST",`/v1/notifications/${y}/read`,E,{})},async listReporterFeatureBoard(y){return A("GET","/v1/reporter/feature-board",y)},async voteReporterFeatureBoard(y,E){return A("POST",`/v1/reporter/feature-board/${y}/vote`,E,{})},async submitActivity(y,E,C){return w("POST","/v1/sdk/activity",{user_id:y,user_traits:C?.userTraits,opted_in:C?.optedIn,reporter_token_hash:C?.reporterTokenHash,...C?.hostJwt?{host_jwt:C.hostJwt}:{},events:E},1,"discovery")},async getMyPoints(y){return w("GET",`/v1/sdk/me/points?userId=${encodeURIComponent(y)}`,void 0,1,"reporter-poll")},async getMyTier(y){return w("GET",`/v1/sdk/me/tier?userId=${encodeURIComponent(y)}`,void 0,1,"reporter-poll")},async getMyHistory(y,E){let C=new URLSearchParams({userId:y,...E?.limit?{limit:String(E.limit)}:{}});return w("GET",`/v1/sdk/me/history?${C}`,void 0,1,"reporter-poll")},async getHallOfFame(y=10){return w("GET",`/v1/sdk/hall-of-fame?limit=${y}`,void 0,1,"reporter-poll")},async sendMagicLink(y){return w("POST","/v1/tester/magic-link",{email:y},1,"community")},async linkReporterToken(y,E){return w("POST","/v1/tester/link-reporter",{reporter_token_hash:y},1,"community",{Authorization:`Bearer ${E}`})},async getCrossAppReports(y,E){let C=new URLSearchParams;E?.limit&&C.set("limit",String(E.limit)),E?.offset&&C.set("offset",String(E.offset));let x=C.size?`?${C.toString()}`:"";return w("GET",`/v1/tester/cross-app-reports${x}`,void 0,1,"community",{Authorization:`Bearer ${y}`})},async getMyReputation(y){return w("GET","/v1/tester/reputation",void 0,1,"community",{Authorization:`Bearer ${y}`})},async getPublicLeaderboard(y=20){return w("GET",`/v1/public/tester-leaderboard?limit=${y}`,void 0,1,"reporter-poll")},async getTesterStatus(y){return w("GET","/v1/me/tester-status",void 0,1,"community",{Authorization:`Bearer ${y}`})}}}function Dn(t){return new Promise(e=>setTimeout(e,t))}function On(t){return Math.min(1e3*2**t+Math.random()*500,1e4)}function ti(t){return t instanceof DOMException&&t.name==="AbortError"||t instanceof TypeError}function br(...t){return t.find(e=>e!==void 0&&e!=="")}function xe(t){try{let e=undefined;return typeof e=="object"&&e!==null?e[t]:void 0}catch{return}}function He(t){try{return t()}catch{return}}function Sr(){let t=br(xe("VITE_MUSHI_PROJECT_ID"),xe("NEXT_PUBLIC_MUSHI_PROJECT_ID"),xe("NUXT_PUBLIC_MUSHI_PROJECT_ID"),xe("EXPO_PUBLIC_MUSHI_PROJECT_ID"),He(()=>process.env.NEXT_PUBLIC_MUSHI_PROJECT_ID),He(()=>process.env.EXPO_PUBLIC_MUSHI_PROJECT_ID),He(()=>process.env.MUSHI_PROJECT_ID)),e=br(xe("VITE_MUSHI_API_KEY"),xe("NEXT_PUBLIC_MUSHI_API_KEY"),xe("NUXT_PUBLIC_MUSHI_API_KEY"),xe("EXPO_PUBLIC_MUSHI_API_KEY"),He(()=>process.env.NEXT_PUBLIC_MUSHI_API_KEY),He(()=>process.env.EXPO_PUBLIC_MUSHI_API_KEY),He(()=>process.env.MUSHI_API_KEY)),r=br(xe("VITE_MUSHI_API_ENDPOINT"),xe("NEXT_PUBLIC_MUSHI_API_ENDPOINT"),xe("NUXT_PUBLIC_MUSHI_API_ENDPOINT"),xe("EXPO_PUBLIC_MUSHI_API_ENDPOINT"),He(()=>process.env.NEXT_PUBLIC_MUSHI_API_ENDPOINT),He(()=>process.env.EXPO_PUBLIC_MUSHI_API_ENDPOINT),He(()=>process.env.MUSHI_API_ENDPOINT)),n={};return t&&(n.projectId=t),e&&(n.apiKey=e),r&&(n.apiEndpoint=r),n}var ri=["VITE_","NEXT_PUBLIC_","NUXT_PUBLIC_","EXPO_PUBLIC_",""],ni={projectId:"MUSHI_PROJECT_ID",apiKey:"MUSHI_API_KEY"};function es(){let t=Sr(),e=[];if(t.projectId||e.push("projectId"),t.apiKey||e.push("apiKey"),e.length===0)return {resolved:t,missing:e,nearMisses:[],message:null};let r=(()=>{try{let i=undefined;return typeof i=="object"&&i!==null?i:null}catch{return null}})(),n=(()=>{try{return typeof process<"u"&&process.env?process.env:null}catch{return null}})(),s=[];for(let i of e)for(let l of ri){let p=`${l}${ni[i]}`;r&&r[p]?s.push({field:i,key:p,via:"import.meta.env"}):n&&n[p]&&s.push({field:i,key:p,via:"process.env"});}let o=r?"VITE_MUSHI_*":"NEXT_PUBLIC_MUSHI_* (Next.js), EXPO_PUBLIC_MUSHI_* (Expo), or MUSHI_* (Node / React Native)",a=[`[mushi] Missing ${e.join(" and ")} \u2014 the SDK will not initialize.`];for(let i of s)a.push(`[mushi] Found ${i.key} in ${i.via}, but this runtime did not resolve it \u2014 it is either the wrong prefix for your bundler or not exposed to the client bundle.`);return a.push(`[mushi] This runtime reads: ${o}. Set the matching variable(s) and restart your dev server.`),s.length===0&&a.push("[mushi] If you already set the variable, check the prefix: a mis-prefixed var is stripped from client bundles and resolves to undefined with no error."),{resolved:t,missing:e,nearMisses:s,message:a.join(`
2
+ `)}}var Bn=["production-calm","beta-loud","internal-debug","manual-only","minimal","standard","full"],si=["projectId","apiKey","apiEndpoint","timeout","maxRetries","circuitBreaker","preset","runtimeConfig","sentry","widget","capture","privacy","proactive","preFilter","integrations","offline","rewards","assistant","debug","enabled","appVersion","beforeSendFeedback","onCrashedLastRun"];function oi(t){switch(t){case "manual-only":return {widget:{trigger:"manual",outdatedBanner:"console-only"},capture:{console:true,network:true,performance:false,screenshot:"on-report",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "beta-loud":return {widget:{trigger:"auto",outdatedBanner:"banner"},capture:{console:true,network:true,performance:true,screenshot:"auto",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true}};case "internal-debug":return {widget:{trigger:"auto",outdatedBanner:"banner",brandFooter:true},capture:{console:true,network:true,performance:true,screenshot:"auto",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true,cooldown:{maxProactivePerSession:10,dismissCooldownHours:0,suppressAfterDismissals:99}}};case "production-calm":return {widget:{trigger:"auto",outdatedBanner:"console-only"},capture:{console:true,network:true,performance:false,screenshot:"on-report",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "minimal":return {widget:{trigger:"auto"},capture:{console:true,network:false,performance:false,screenshot:"on-report",replay:"off",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "full":return {widget:{trigger:"auto"},capture:{console:true,network:true,performance:true,screenshot:"auto",replay:"lite",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true}};default:return}}function ts(t){let e=oi(t.preset);return e?{...t,widget:{...e.widget,...t.widget},capture:{...e.capture,...t.capture},proactive:{...e.proactive,...t.proactive,cooldown:{...e.proactive?.cooldown,...t.proactive?.cooldown}}}:t}function ii(){let t=e=>e==="1"||e==="true";try{if(typeof process<"u"&&process.env&&t(process.env.MUSHI_SILENT))return !0}catch{}try{let e=undefined;if(e&&typeof e=="object"&&(t(e.MUSHI_SILENT)||t(e.VITE_MUSHI_SILENT)))return !0}catch{}return false}function rs(t){try{if(ii()||!t||typeof t!="object")return;let e=Object.keys(t).filter(r=>!si.includes(r));e.length>0&&console.error(`[mushi] Unknown config key${e.length>1?"s":""}: ${e.map(r=>`\`${r}\``).join(", ")} \u2014 check for typos (see MushiConfig). Ignored.`),t.preset!==void 0&&!Bn.includes(t.preset)&&console.error(`[mushi] Unknown preset \`${String(t.preset)}\` \u2014 expected one of ${Bn.map(r=>`'${r}'`).join(", ")}. Preset ignored.`);}catch{}}var ai=10,li=2e3,ci=[/^(.)\1{10,}$/,/^[A-Z\s!?]{20,}$/,/^[\d\s]+$/,/^[^a-zA-Z\u00C0-\u024F\u4E00-\u9FFF\u3040-\u309F\u30A0-\u30FF]{10,}$/,/^(asdf|qwerty|lorem ipsum)[.,!?\s]*$/i],ui=/^[bcdfghjklmnpqrstvwxz]{6,}/i;function ns(t={}){let{enabled:e=true,blockObviousSpam:r=true,minDescriptionLength:n=ai,maxDescriptionLength:s=li}=t;function o(i){if(!e)return {passed:true};let l=i.trim();if(l.length<n)return {passed:false,reason:`Too short (min ${n} characters)`};if(l.length>s)return {passed:false,reason:`Too long (max ${s} characters)`};if(r){for(let h of ci)if(h.test(l))return {passed:false,reason:"Detected as spam"};if(ui.test(l))return {passed:false,reason:"Detected as gibberish"};if(l.split(/\s+/).filter(h=>h.length>1).length<2)return {passed:false,reason:"Description needs at least 2 words"}}return {passed:true}}function a(i){let l=i.trim();return l.length<=s?l:l.slice(0,s)+"..."}return {check:o,truncate:a}}var Nn={debug:10,info:20,warn:30,error:40,fatal:50,silent:99},di={debug:"DBG",info:"INF",warn:"WRN",error:"ERR",fatal:"FTL"},me={reset:"\x1B[0m",dim:"\x1B[2m",bold:"\x1B[1m",cyan:"\x1B[36m",green:"\x1B[32m",yellow:"\x1B[33m",red:"\x1B[31m",white:"\x1B[37m",bgRed:"\x1B[41m"},pi={debug:me.dim,info:me.green,warn:me.yellow,error:me.red,fatal:`${me.bgRed}${me.white}${me.bold}`};function hi(){try{if(typeof globalThis.Deno<"u")return "json"}catch{}let t=typeof globalThis.process<"u"?globalThis.process:void 0;if(t?.env){if(t.env.NODE_ENV==="production"||t.env.LOG_FORMAT==="json")return "json";if(t.env.LOG_FORMAT==="pretty"||t.stdout?.isTTY)return "pretty"}return typeof globalThis.window<"u"?"pretty":"json"}function mi(t){let e=[];for(let[r,n]of Object.entries(t))n!=null&&(typeof n=="object"?e.push(`${r}=${JSON.stringify(n)}`):e.push(`${r}=${String(n)}`));return e.join(" ")}function fi(t){let{ts:e,level:r,scope:n,msg:s,...o}=t,a=e.slice(11,23),i=pi[r]??"",l=di[r]??r.toUpperCase(),p=Object.keys(o).length>0?` ${me.dim}${mi(o)}${me.reset}`:"";return `${me.dim}${a}${me.reset} ${i}${l}${me.reset} ${me.cyan}[${n}]${me.reset} ${s}${p}`}function gi(t){return JSON.stringify(t)}function bi(t){return t==="stderr"?(e,r)=>{console.error(r);}:(e,r)=>{switch(e){case "error":case "fatal":console.error(r);break;case "warn":console.warn(r);break;default:console.log(r);}}}function ss(t,e,r,n,s){let o=e;function a(i,l,p){if(Nn[i]<Nn[o])return;let h={ts:new Date().toISOString(),level:i,scope:t,msg:l,...r,...p};s(i,n(h));}return {debug:(i,l)=>a("debug",i,l),info:(i,l)=>a("info",i,l),warn:(i,l)=>a("warn",i,l),error:(i,l)=>a("error",i,l),fatal:(i,l)=>a("fatal",i,l),child(i,l){return ss(`${t}:${i}`,o,{...r,...l},n,s)},setLevel(i){o=i;}}}function jt(t){let{scope:e,level:r="info",meta:n={},format:s="auto",destination:o="stdout"}=t,i=(s==="auto"?hi():s)==="json"?gi:fi,l=bi(o);return ss(e,r,n,i,l)}var Er={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{},fatal:()=>{},child:()=>Er,setLevel:()=>{}},yi="mushi-mushi-keyring",Qe="keys",os="offline-queue/v1",Bt=null,Nt=null;function vi(){return typeof globalThis<"u"&&typeof globalThis.crypto<"u"&&typeof globalThis.crypto.subtle<"u"&&typeof indexedDB<"u"}function is(){return new Promise((t,e)=>{let r=indexedDB.open(yi,1);r.onupgradeneeded=()=>{let n=r.result;n.objectStoreNames.contains(Qe)||n.createObjectStore(Qe);},r.onsuccess=()=>t(r.result),r.onerror=()=>e(r.error);})}async function xi(){let t=await is();return new Promise((e,r)=>{let s=t.transaction(Qe,"readonly").objectStore(Qe).get(os);s.onsuccess=()=>e(s.result??null),s.onerror=()=>r(s.error);})}async function wi(t){let e=await is();return new Promise((r,n)=>{let s=e.transaction(Qe,"readwrite");s.objectStore(Qe).put(t,os),s.oncomplete=()=>r(),s.onerror=()=>n(s.error);})}async function as(){if(Bt)return Bt;if(Nt)return Nt;if(!vi())throw new Error("Web Crypto + IndexedDB required for offline queue encryption");return Nt=(async()=>{let t=await xi();if(t)return Bt=t,t;let e=await crypto.subtle.generateKey({name:"AES-GCM",length:256},false,["encrypt","decrypt"]);return await wi(e),Bt=e,e})(),Nt}function Un(t){let e="";for(let r of t)e+=String.fromCharCode(r);return btoa(e)}function Fn(t){let e=atob(t),r=new Uint8Array(new ArrayBuffer(e.length));for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}async function Si(t){let e=await as(),r=crypto.getRandomValues(new Uint8Array(12)),n=new TextEncoder().encode(JSON.stringify(t)),s=new Uint8Array(await crypto.subtle.encrypt({name:"AES-GCM",iv:r},e,n));return {_mme:1,iv:Un(r),ct:Un(s)}}function Ei(t){return !!t&&typeof t=="object"&&t._mme===1&&typeof t.iv=="string"&&typeof t.ct=="string"}async function ki(t){let e=await as(),r=Fn(t.iv),n=Fn(t.ct),s=await crypto.subtle.decrypt({name:"AES-GCM",iv:r},e,n);return JSON.parse(new TextDecoder().decode(s))}var Ce=jt({scope:"mushi:queue",level:"warn"}),Ri="mushi-mushi",he="offline-reports",Ci=1,yr="mushi_offline_queue",Ti=10,Mi=6e4,$i=3e4,Ii=8,Li=1440*60*1e3;function ls(t={}){let{enabled:e=true,maxQueueSize:r=50,syncOnReconnect:n=true,encryptAtRest:s=true}=t,o=null,a=null,i=null;async function l(L){let _=new Date().toISOString();if(!s)return {...L,queuedAt:_};try{let H=await Si(L);return {id:L.id,queuedAt:_,payload:H}}catch(H){return Ce.warn("Offline queue: encryption failed, storing plaintext",{err:String(H)}),{...L,queuedAt:_}}}async function p(L){if(h(L))try{return await ki(L.payload)}catch(_){return Ce.warn("Offline queue: decrypt failed, dropping row",{err:String(_),id:L.id}),null}return L}function h(L){return !!L.payload&&Ei(L.payload)}function m(L){let _=L.attempts;return typeof _=="number"&&Number.isFinite(_)?_:0}function b(L,_){let H=L.queuedAt;if(!H)return false;let F=Date.parse(H);return Number.isNaN(F)?false:_-F>Li}function u(){return i||(typeof indexedDB<"u"?i="indexeddb":typeof localStorage<"u"?i="localstorage":i="none",i)}function f(){return new Promise((L,_)=>{let H=indexedDB.open(Ri,Ci);H.onupgradeneeded=()=>{let F=H.result;F.objectStoreNames.contains(he)||F.createObjectStore(he,{keyPath:"id"});},H.onsuccess=()=>L(H.result),H.onerror=()=>{i="localstorage",_(H.error);};})}async function v(L){let _=await f(),H=await l(L);return new Promise((F,M)=>{let pe=_.transaction(he,"readwrite");pe.objectStore(he).put(H),pe.oncomplete=()=>F(),pe.onerror=()=>M(pe.error);})}async function k(){let L=await f();return new Promise((_,H)=>{let M=L.transaction(he,"readonly").objectStore(he).getAll();M.onsuccess=()=>_(M.result),M.onerror=()=>H(M.error);})}async function T(L){let _=await f();return new Promise((H,F)=>{let M=_.transaction(he,"readwrite");M.objectStore(he).delete(L),M.oncomplete=()=>H(),M.onerror=()=>F(M.error);})}async function R(L){let _=await f();return new Promise((H,F)=>{let M=_.transaction(he,"readwrite");M.objectStore(he).put(L),M.oncomplete=()=>H(),M.onerror=()=>F(M.error);})}async function w(){let L=await f();return new Promise((_,H)=>{let M=L.transaction(he,"readonly").objectStore(he).count();M.onsuccess=()=>_(M.result),M.onerror=()=>H(M.error);})}async function A(){let L=await f();return new Promise((_,H)=>{let F=L.transaction(he,"readwrite");F.objectStore(he).clear(),F.oncomplete=()=>_(),F.onerror=()=>H(F.error);})}function y(){try{let L=localStorage.getItem(yr);return L?JSON.parse(L):[]}catch{return []}}function E(L){try{localStorage.setItem(yr,JSON.stringify(L));}catch{}}async function C(L){let _=y();_.push(await l(L)),E(_);}function x(L){let _=y().filter(H=>H.id!==L);E(_);}function B(L){let _=y(),H=_.findIndex(F=>F.id===L.id);H>=0&&(_[H]=L,E(_));}async function N(L,_){try{L==="indexeddb"?await T(_):x(_);}catch(H){Ce.debug("Offline queue: row removal failed (will age out)",{id:_,err:String(H)});}}async function Z(L,_){try{return L==="indexeddb"?await R(_):B(_),!0}catch(H){return Ce.debug("Offline queue: row persist failed",{id:_.id,err:String(H)}),false}}async function X(L){if(!e)return;if(await P()>=r){Ce.warn("Offline queue full \u2014 dropping report",{maxQueueSize:r});return}let H=u();if(H==="indexeddb")try{await v(L);return}catch{i="localstorage";}if(H==="localstorage"||i==="localstorage"){await C(L);return}}function j(L){return Math.min(1e3*2**L+Math.random()*500,Mi)}function V(L){return new Promise(_=>setTimeout(_,L))}async function O(L){if(!e)return {sent:0,failed:0};let _,H=u();if(H==="indexeddb")try{_=await k();}catch{_=y();}else _=y();let F=Date.now(),M=[];for(let q of _)if(b(q,F)){let te=q.id;await N(H,te),Ce.debug("Offline queue: evicting stale report",{id:te});}else M.push(q);_=M;let pe=_.slice(0,Ti),Ne=0,oe=0;for(let q=0;q<pe.length;q++){let te=pe[q],ie=te.id,$e=await p(te);if(!$e){await N(H,ie),oe++;continue}let W=await L.submitReport($e);if(W.ok)await N(H,ie),Ne++;else {let lt=W.error?.code==="HTTP_400"||W.error?.code==="HTTP_413"||W.error?.code==="HTTP_422"||W.error?.code==="INGEST_ERROR"||W.error?.code==="VALIDATION_ERROR"||W.error?.code==="PAYLOAD_TOO_LARGE"||W.error?.code==="SERIALIZE_FAILED"||typeof W.error?.message=="string"&&/invalid payload|description must be at least|validation/i.test(W.error.message),Rt=!lt&&(W.error?.code==="NETWORK_ERROR"||W.error?.code==="HTTP_403"||W.error?.code==="HTTP_429"||W.error?.code==="HTTP_502"||W.error?.code==="HTTP_503"||W.error?.code==="HTTP_504"||typeof W.error?.code=="string"&&W.error.code.startsWith("HTTP_5"));if(lt)await N(H,ie);else if(Rt){let We=m(te)+1;We>=Ii?(await N(H,ie),Ce.warn("Offline queue: giving up on report after repeated failures",{id:ie,attempts:We,code:W.error?.code})):(te.attempts=We,await Z(H,te)?Ce.debug("Offline queue: transient failure, will retry",{id:ie,attempts:We,code:W.error?.code}):(await N(H,ie),Ce.warn("Offline queue: dropping report (attempt counter unpersistable)",{id:ie,code:W.error?.code})));}oe++,q<pe.length-1&&await V(j(q));}}return {sent:Ne,failed:oe}}async function P(){if(u()==="indexeddb")try{return await w()}catch{return y().length}return y().length}async function $(){if(u()==="indexeddb")try{await A();}catch{}try{localStorage.removeItem(yr);}catch{}}function ee(L){if(!e||!n||typeof window>"u")return;o&&Q();let _=()=>{navigator.onLine&&O(L).catch(H=>{Ce.warn("Offline queue auto-flush failed",{err:String(H)});});};window.addEventListener("online",_),a=setInterval(()=>{P().then(H=>{H>0&&_();});},$i),o=()=>{window.removeEventListener("online",_),a&&(clearInterval(a),a=null);};}function Q(){o?.(),o=null;}return {enqueue:X,flush:O,size:P,clear:$,startAutoSync:ee,stopAutoSync:Q}}function kr(){let t=typeof navigator<"u"?navigator:void 0,e=typeof window<"u"?window:void 0,r=typeof document<"u"?document:void 0,n=typeof screen<"u"?screen:void 0;_i(t);let s=t&&"connection"in t?t.connection:void 0,o=e,a=!!o?.Capacitor,i=!!o?.cordova,l=t?.product==="ReactNative"||typeof globalThis.HermesInternal<"u",p=a||i||l?{...a?{capacitor:true}:{},...i?{cordova:true}:{},...l?{reactNative:true}:{}}:void 0;return {userAgent:t?.userAgent??"unknown",platform:t?.platform??"unknown",language:t?.language??"en",viewport:{width:e?.innerWidth??0,height:e?.innerHeight??0},url:e?.location?.href??"",referrer:r?.referrer??"",timestamp:new Date().toISOString(),timezone:Intl?.DateTimeFormat?.()?.resolvedOptions?.()?.timeZone??"UTC",connection:s?{effectiveType:s.effectiveType,downlink:s.downlink,rtt:s.rtt}:void 0,deviceMemory:t?.deviceMemory,hardwareConcurrency:t?.hardwareConcurrency,route:e?.location?.pathname,nearestTestid:Ai(r),userAgentData:Hi(t),screen:Di(n,e),prefersColorScheme:Oi(e),prefersReducedMotion:we(e,"(prefers-reduced-motion: reduce)"),prefersReducedData:we(e,"(prefers-reduced-data: reduce)"),prefersContrast:Bi(e),forcedColors:we(e,"(forced-colors: active)"),online:typeof t?.onLine=="boolean"?t.onLine:void 0,displayMode:Ni(e),documentTitle:r?.title?.slice(0,200),buildId:Ui(r),pageLoadTiming:Fi(e),...p?{native:p}:{}}}function Ai(t){if(!t)return;let e=t.activeElement??null,r=0;for(;e&&r<20;){let n=e.getAttribute?.("data-testid");if(n)return n;e=e.parentElement,r++;}}var ke=null,qn=false;function _i(t){if(qn)return;let e=t?.userAgentData;e?.getHighEntropyValues&&(qn=true,e.getHighEntropyValues(["architecture","bitness","model","platformVersion","uaFullVersion","fullVersionList"]).then(r=>{ke=r;}).catch(()=>{}));}function Pi(t){if(!t?.length)return;let e=t.filter(n=>!/not.?a.?brand/i.test(n.brand));return e.length===0?void 0:e.find(n=>!/chromium|google chrome/i.test(n.brand))??e[0]}function Hi(t){let e=t?.userAgentData;if(!e&&!ke)return;let r=ke?.fullVersionList,n=Pi(r??e?.brands),s={};return n&&(s.browser=n.brand,s.browserVersion=n.version),e?.platform&&(s.os=e.platform),ke?.platformVersion&&(s.osVersion=ke.platformVersion),typeof e?.mobile=="boolean"&&(s.mobile=e.mobile),ke?.model&&(s.model=ke.model),ke?.architecture&&(s.architecture=ke.architecture),ke?.bitness&&(s.bitness=ke.bitness),Object.keys(s).length===0?void 0:s}function Di(t,e){if(!t&&!e)return;let r={};typeof t?.width=="number"&&(r.width=t.width),typeof t?.height=="number"&&(r.height=t.height),typeof e?.devicePixelRatio=="number"&&(r.devicePixelRatio=e.devicePixelRatio),typeof t?.colorDepth=="number"&&(r.colorDepth=t.colorDepth);let n=t?.orientation?.type;return n&&(r.orientation=n),Object.keys(r).length===0?void 0:r}function we(t,e){if(t?.matchMedia)try{return t.matchMedia(e).matches}catch{return}}function Oi(t){if(t?.matchMedia)return we(t,"(prefers-color-scheme: dark)")?"dark":we(t,"(prefers-color-scheme: light)")?"light":"no-preference"}function Bi(t){if(t?.matchMedia)return we(t,"(prefers-contrast: more)")?"more":we(t,"(prefers-contrast: less)")?"less":we(t,"(prefers-contrast: custom)")?"custom":"no-preference"}function Ni(t){if(t?.matchMedia){if(we(t,"(display-mode: fullscreen)"))return "fullscreen";if(we(t,"(display-mode: standalone)"))return "standalone";if(we(t,"(display-mode: minimal-ui)"))return "minimal-ui";if(we(t,"(display-mode: browser)"))return "browser"}}function Ui(t){if(!t)return;let r=t.querySelector?.('meta[name="mushi:build"]')?.content?.trim();if(r)return r.slice(0,64)}function Fi(t){let e=t?.performance;if(!e?.getEntriesByType)return;let r;try{r=e.getEntriesByType("navigation")[0];}catch{return}if(!r)return;let n=r.startTime??0,s={};return r.domContentLoadedEventEnd>0&&(s.domContentLoadedMs=Math.round(r.domContentLoadedEventEnd-n)),r.loadEventEnd>0&&(s.loadCompleteMs=Math.round(r.loadEventEnd-n)),r.responseStart>0&&(s.timeToFirstByteMs=Math.round(r.responseStart-n)),typeof r.type=="string"&&(s.navigationType=r.type),Object.keys(s).length===0?void 0:s}var vr="mushi_reporter_token";function qi(t){return `mushi:reporter-token:${t}`}function jn(){if(typeof crypto<"u"&&crypto.randomUUID)return `mushi_${crypto.randomUUID()}`;let t=new Uint8Array(16);if(typeof crypto<"u")crypto.getRandomValues(t);else for(let r=0;r<t.length;r++)t[r]=Math.floor(Math.random()*256);return `mushi_${Array.from(t).map(r=>r.toString(16).padStart(2,"0")).join("")}`}function xr(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(t);return e&&e.length>0?e:null}catch{return null}}function Wn(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(t,e);}catch{}}function de(t){if(!t){let o=xr(vr);if(o)return o;let a=jn();return Wn(vr,a),a}let e=qi(t),r=xr(e);if(r)return r;let s=xr(vr)??jn();return Wn(e,s),s}function Rr(){let t=typeof crypto<"u"?crypto:void 0;if(t?.randomUUID)return t.randomUUID();let e=new Uint8Array(16);if(t?.getRandomValues)t.getRandomValues(e);else for(let n=0;n<e.length;n++)e[n]=Math.floor(Math.random()*256);e[6]=e[6]&15|64,e[8]=e[8]&63|128;let r=Array.from(e,n=>n.toString(16).padStart(2,"0")).join("");return `${r.slice(0,8)}-${r.slice(8,12)}-${r.slice(12,16)}-${r.slice(16,20)}-${r.slice(20,32)}`}var zn="mushi_fingerprint_hash";function ji(){let t=typeof navigator<"u"?navigator:void 0,e=typeof screen<"u"?screen:void 0,r=typeof window<"u"?window:void 0;return {userAgent:t?.userAgent??"unknown",platform:t?.platform??"unknown",language:t?.language??"en",timezone:Intl?.DateTimeFormat?.()?.resolvedOptions?.()?.timeZone??"UTC",screenWidth:e?.width??0,screenHeight:e?.height??0,pixelRatio:r?.devicePixelRatio??1,deviceMemory:t?.deviceMemory,hardwareConcurrency:t?.hardwareConcurrency}}async function Wi(t){if(typeof crypto<"u"&&crypto.subtle){let r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r);return Array.from(new Uint8Array(n)).map(s=>s.toString(16).padStart(2,"0")).join("")}let e=0;for(let r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r),e|=0;return `fbk_${(e>>>0).toString(16).padStart(8,"0")}`}async function cs(){if(typeof localStorage<"u"){let n=localStorage.getItem(zn);if(n)return n}let t=ji(),e=JSON.stringify(t),r=await Wi(e);if(typeof localStorage<"u")try{localStorage.setItem(zn,r);}catch{}return r}var Vn="mushi_session_id",Ut=null;function bt(){if(Ut)return Ut;if(typeof sessionStorage<"u"){let e=sessionStorage.getItem(Vn);if(e)return Ut=e,e}let t=zi();if(Ut=t,typeof sessionStorage<"u")try{sessionStorage.setItem(Vn,t);}catch{}return t}function zi(){return `ms_${Date.now().toString(36)}_${Vi()}`}function Vi(){let t=typeof crypto<"u"?crypto:void 0,e=new Uint8Array(4);if(t?.getRandomValues)t.getRandomValues(e);else for(let n=0;n<e.length;n++)e[n]=Math.floor(Math.random()*256);let r=0;for(let n of e)r=r*256+n>>>0;return r.toString(36).padStart(6,"0").slice(0,6)}var Ki=10,Gi=1,Yi=5e3;function us(t={}){let{maxBurst:e=Ki,refillRate:r=Gi,refillIntervalMs:n=Yi}=t,s=e,o=Date.now();function a(){let h=Date.now(),m=h-o,b=Math.floor(m/n);b>0&&(s=Math.min(e,s+b*r),o=h);}function i(){return a(),s>0?(s--,true):false}function l(){s=e,o=Date.now();}function p(){return a(),s}return {tryConsume:i,reset:l,availableTokens:p}}var Xi={patterns:[{id:"ssn",configKey:"ssns",source:"\\b\\d{3}-\\d{2}-\\d{4}\\b",replacement:"[REDACTED_SSN]"},{id:"creditCard",configKey:"creditCards",source:"\\b(?:\\d[ -]*){12,18}\\d\\b",replacement:"[REDACTED_CC]"},{id:"awsAccessKey",configKey:"secretTokens",source:"\\b(?:AKIA|ASIA)[0-9A-Z]{16}\\b",replacement:"[REDACTED_AWS_KEY]"},{id:"awsSecretKey",configKey:"secretTokens",source:`(?:aws_secret_access_key|secret_access_key)["'\\s:=]+[A-Za-z0-9/+=]{40}\\b`,caseInsensitive:true,replacement:"aws_secret_access_key=[REDACTED_AWS_SECRET]"},{id:"stripeSecretKey",configKey:"secretTokens",source:"\\b(?:sk|rk)_(?:live|test)_[A-Za-z0-9]{24,}\\b",replacement:"[REDACTED_STRIPE_KEY]"},{id:"stripePublishableKey",configKey:"secretTokens",source:"\\bpk_(?:live|test)_[A-Za-z0-9]{24,}\\b",replacement:"[REDACTED_STRIPE_PK]"},{id:"slackToken",configKey:"secretTokens",source:"\\bxox[abpor]-[A-Za-z0-9-]{10,}\\b",replacement:"[REDACTED_SLACK_TOKEN]"},{id:"githubPatClassic",configKey:"secretTokens",source:"\\bghp_[A-Za-z0-9]{36}\\b",replacement:"[REDACTED_GITHUB_PAT]"},{id:"githubPatFineGrained",configKey:"secretTokens",source:"\\bgithub_pat_[A-Za-z0-9_]{80,}\\b",replacement:"[REDACTED_GITHUB_PAT]"},{id:"openaiKey",configKey:"secretTokens",source:"\\bsk-(?:proj-)?[A-Za-z0-9_-]{20,}\\b",replacement:"[REDACTED_OPENAI_KEY]"},{id:"anthropicKey",configKey:"secretTokens",source:"\\bsk-ant-[A-Za-z0-9_-]{20,}\\b",replacement:"[REDACTED_ANTHROPIC_KEY]"},{id:"googleKey",configKey:"secretTokens",source:"\\bAIza[0-9A-Za-z_-]{35}\\b",replacement:"[REDACTED_GOOGLE_KEY]"},{id:"jwt",configKey:"secretTokens",source:"\\beyJ[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]+\\b",replacement:"[REDACTED_JWT]"},{id:"email",configKey:"emails",source:"\\b[A-Za-z0-9._%+\\-]+@[A-Za-z0-9.\\-]+\\.[A-Za-z]{2,}\\b",replacement:"[REDACTED_EMAIL]"},{id:"phone",configKey:"phones",source:"(?:\\+\\d{1,3}[\\s.-])?\\(?\\d{2,4}\\)?[\\s.-]\\d{3,4}[\\s.-]\\d{3,4}\\b",replacement:"[REDACTED_PHONE]"},{id:"ipv4",configKey:"ipAddresses",source:"\\b(?:\\d{1,3}\\.){3}\\d{1,3}\\b",replacement:"[REDACTED_IP]",defaultOn:false},{id:"ipv6",configKey:"ipv6",source:"\\b(?:[A-Fa-f0-9]{1,4}:){2,7}[A-Fa-f0-9]{0,4}\\b",replacement:"[REDACTED_IPV6]",defaultOn:false}]},ds=Xi.patterns,Ji=ds.map(t=>({key:t.configKey,regex:new RegExp(t.source,t.caseInsensitive?"gi":"g"),replacement:t.replacement})),Zi=ds.reduce((t,e)=>(t[e.configKey]=e.defaultOn!==false,t),{});function ps(t={}){let e={...Zi,...t},r=Ji.filter(o=>e[o.key]);function n(o){if(!o)return o;let a=o;for(let{regex:i,replacement:l}of r)a=a.replace(new RegExp(i.source,i.flags),l);return a}function s(o,a){let i={...o};for(let l of a)typeof i[l]=="string"&&(i[l]=n(i[l]));return i}return {scrub:n,scrubObject:s}}var Qi=50,ea=500;function hs(t={}){let e=Math.max(1,t.max??Qi),r=Math.max(50,t.maxMessageLength??ea),n=[];return {add(s){let o=typeof s.timestamp=="number"?s.timestamp:Date.now(),a=typeof s.message=="string"&&s.message.length>r?`${s.message.slice(0,r)}\u2026`:s.message,i={timestamp:o,category:s.category,level:s.level??"info",message:a??"",...s.data?{data:s.data}:{}};for(n.push(i);n.length>e;)n.shift();},getAll(){return n.slice()},clear(){n=[];},size(){return n.length}}}var Kn=8*1024,ta=1e3;function ms(t){if(t instanceof Error){let e=t.name||"Error",r=t.message||String(t),n=typeof t.stack=="string"&&t.stack.length>0?t.stack.slice(0,Kn):void 0,s=t.cause;return {name:e,message:r,...n?{stack:n}:{},...s!==void 0?{cause:s instanceof Error?s.message:s}:{}}}if(typeof t=="string")return {name:"Error",message:t};if(t&&typeof t=="object"){let e=t,r=typeof e.name=="string"?e.name:"Error",n=typeof e.message=="string"?e.message:(()=>{try{return JSON.stringify(e).slice(0,ta)}catch{return String(e)}})(),s=typeof e.stack=="string"?e.stack.slice(0,Kn):void 0;return {name:r,message:n,...s?{stack:s}:{}}}return t===void 0?{name:"Error",message:"unknown"}:{name:"Error",message:String(t)}}var ue={paper:"#F8F4ED",paperRaised:"#FFFFFF",ink:"#0E0D0B",inkMuted:"#5C5852",inkFaint:"#9A9489",inkDim:"#6E6760",rule:"rgba(14,13,11,0.10)",ruleStrong:"rgba(14,13,11,0.16)",accent:"#E03C2C",accentWash:"rgba(224,60,44,0.08)",accentInk:"#7A1F15",ok:"#16A34A",danger:"#DC2626"},ra={paper:"#0F0E0C",paperRaised:"#1A1815",ink:"#F2EBDD",inkMuted:"#928B7E",inkFaint:"#5A5650",inkDim:"#7A7268",rule:"rgba(242,235,221,0.10)",ruleStrong:"rgba(242,235,221,0.18)",accent:"#FF5A47",accentWash:"rgba(255,90,71,0.12)",accentInk:"#FFE5E0",ok:"#4ADE80",danger:"#F87171"},Cr={free:ue.inkMuted,explorer:"#2563EB",contributor:"#7C3AED",champion:"#D97706",default:ue.accent},Wt={bg:"#0FFF50",fg:"#0a1a0a",border:"#00C43A"},fs="#FAF7F0",gs="#ffffff",Tr={light:"#9A2A1E",dark:"#7A1F15"},Mr={light:"#B52F1F",dark:"#C4321E"},bs={light:{sent:{fg:"#1E4A8C",bg:"rgba(30,74,140,0.08)",border:"rgba(30,74,140,0.16)"},review:{fg:"#8A5A00",bg:"rgba(180,120,0,0.10)",border:"rgba(180,120,0,0.18)"},fixing:{fg:"#9A3D12",bg:"rgba(224,60,44,0.10)",border:"rgba(224,60,44,0.18)"},fixed:{fg:"#1F6B3A",bg:"rgba(31,107,58,0.10)",border:"rgba(31,107,58,0.18)"}},dark:{sent:{fg:"#A8C4FF",bg:"rgba(120,160,255,0.12)",border:"rgba(120,160,255,0.22)"},review:{fg:"#FFD27A",bg:"rgba(255,190,90,0.12)",border:"rgba(255,190,90,0.22)"},fixing:{fg:"#FFB899",bg:"rgba(255,120,60,0.12)",border:"rgba(255,120,60,0.24)"},fixed:{fg:"#8FE3B0",bg:"rgba(80,200,130,0.12)",border:"rgba(80,200,130,0.22)"}}};function $r(t){return t==="dark"?ra:ue}var ys={wide:32},vs={control:4},et={fontDisplay:"'Iowan Old Style', 'Palatino Linotype', 'Palatino', 'Book Antiqua', 'Cambria', Georgia, 'Times New Roman', serif",fontBody:"system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Display', 'Segoe UI', sans-serif",fontMono:"ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, 'Liberation Mono', monospace",sizeBody:14,lineBody:1.55},tt={base:99999,banner:99998,panel:1e5,overlay:2147483647},zt={easeStamp:"cubic-bezier(0.22, 1, 0.36, 1)",durationFast:200},rt={bannerHeight:36,fabSize:52,edgeTabWidth:32,gutter:24,panelWidth:360,panelMaxHeight:480,panelSheetBreakpoint:480};function Gn(t){return /^#[0-9a-fA-F]{3,8}$/.test(t)?t:""}function xs(t,e="",r=""){let n=$r(t),s=Gn(e),o=Gn(r),a=s||n.accent,i=s?t==="dark"?`${a}1F`:`${a}14`:n.accentWash,l=o||n.accentInk;return {accent:a,accentWash:i,accentInk:l}}function na(t){let e=t.length%4===0?"":"=".repeat(4-t.length%4),r=t.replace(/-/g,"+").replace(/_/g,"/")+e;if(typeof atob=="function")return atob(r);let n=globalThis.Buffer;return n?n.from(r,"base64").toString("binary"):""}function ws(t){if(typeof t!="string")return null;let e=t.split(".");if(e.length!==3)return null;try{let r=na(e[1]),n=JSON.parse(r),s=typeof n.projectId=="string"?n.projectId:void 0,o=typeof n.sub=="string"?n.sub:void 0;return !s||!o?null:{projectId:s,sub:o,...typeof n.email=="string"?{email:n.email}:{},...typeof n.name=="string"?{name:n.name}:{},...typeof n.iat=="number"?{iat:n.iat}:{},...typeof n.exp=="number"?{exp:n.exp}:{}}}catch{return null}}var sa=new Set(["kensaur.us","www.kensaur.us"]),oa={"glot-it":"glot.it",glotit:"glot.it","solo-boss-cloud":"sbc-front.vercel.app","mushi-mushi":"kensaur.us"},ia={"mushi-mushi":"https://kensaur.us/mushi-mushi/admin/favicon.svg","solo-boss-cloud":"https://sbc-front.vercel.app/favicon.svg","glot-it":"https://kensaur.us/glot-it/apple-touch-icon.png",glotit:"https://kensaur.us/glot-it/apple-touch-icon.png"},aa=["www.google.com","icons.duckduckgo.com","icon.horse"];function Ss(t){try{let e=new URL(t).hostname.toLowerCase();return aa.some(r=>e===r||e.endsWith(`.${r}`))}catch{return false}}function la(t,e=32){return [`https://${t}/favicon.svg`,`https://${t}/favicon.ico`,`https://${t}/favicon-32x32.png`,`https://${t}/apple-touch-icon.png`]}function Es(t){let e=[],r=s=>{let o=s?.trim().toLowerCase();!o||e.includes(o)||e.push(o);};r(ua(t.repo_url)),r(oa[t.project_slug.toLowerCase()]);let n=t.sdk_origin?ca(t.sdk_origin):null;return n&&!sa.has(n)&&r(n),e}function ks(t,e=32){if(t.icon_url?.trim())return [t.icon_url.trim()];let r=new Set,n=[],s=a=>{!a||r.has(a)||Ss(a)||(r.add(a),n.push(a));},o=ia[t.project_slug.toLowerCase()];o&&s(o);for(let a of Es(t))for(let i of la(a,e))s(i);return n}function ca(t){let e=t.trim();if(!e||/^(capacitor|file|content|app):/i.test(e))return null;try{let n=new URL(e.includes("://")?e:`https://${e}`).hostname.toLowerCase();return n==="localhost"||n==="127.0.0.1"||n.endsWith(".local")?null:n}catch{return null}}function ua(t){if(!t?.trim())return null;try{let e=new URL(t.trim()),r=e.hostname.toLowerCase(),n=e.pathname.replace(/^\/+|\/+$/g,"").split("/").filter(Boolean);if(n.length<2)return null;let s=n[1].replace(/\.git$/i,"").toLowerCase();return /^[a-z0-9][a-z0-9.-]*\.[a-z]{2,}$/i.test(s)||r==="github.com"&&s.endsWith(".github.io")?s:r!=="github.com"&&r!=="www.github.com"?r:null}catch{return null}}function Rs(t){return Es(t)[0]??null}function Cs(t){if(typeof document>"u"||!t.complete||t.naturalWidth===0||t.naturalHeight===0)return false;try{let e=document.createElement("canvas"),r=t.naturalWidth,n=t.naturalHeight;e.width=r,e.height=n;let s=e.getContext("2d");if(!s)return !1;s.drawImage(t,0,0);let{data:o}=s.getImageData(0,0,r,n),a=0,i=0,l=0;for(let h=0;h<o.length;h+=4){let m=o[h],b=o[h+1],u=o[h+2];if(o[h+3]<128)continue;a++;let v=Math.max(m,b,u),k=Math.min(m,b,u),T=v-k;l=Math.max(l,T),i+=T;}return a===0?!0:i/a<14&&l<24}catch{return Ss(t.src)}}function Ts(t){let e=t.trim().split(/[\s._-]+/).filter(Boolean);return e.length>=2?`${e[0][0]??""}${e[1][0]??""}`.toUpperCase():(t.replace(/[^a-zA-Z0-9]/g,"").slice(0,2)||t.slice(0,2)||"?").toUpperCase()}function Ms(){if(typeof document>"u")return null;let t=['link[rel="icon"]','link[rel="shortcut icon"]','link[rel="apple-touch-icon"]'];for(let e of t){let n=document.querySelector(e)?.href;if(n&&da(n))return n}return null}function da(t){try{let e=typeof location<"u"?location.href:void 0,r=new URL(t,e).protocol;return r==="http:"||r==="https:"}catch{return false}}async function Is(t,e=Yn){if(!t.startsWith("data:image/")||$s(t)<=e)return t;if(typeof document>"u")return null;let r=new Image;await new Promise((o,a)=>{r.onload=()=>o(),r.onerror=()=>a(new Error("screenshot_decode_failed")),r.src=t;});let n=[.65,.5,.35,.25],s=[1,.85,.7,.55,.4];for(let o of s){let a=document.createElement("canvas"),i=Math.max(1,Math.round(r.naturalWidth*o)),l=Math.max(1,Math.round(r.naturalHeight*o));a.width=i,a.height=l;let p=a.getContext("2d");if(p){p.drawImage(r,0,0,i,l);for(let h of n){let m=a.toDataURL("image/jpeg",h);if($s(m)<=e)return m}}}return null}function $s(t){let e=t.indexOf(",");if(e<0)return t.length;let r=t.slice(e+1);return Math.ceil(r.length*3/4)}var Vt={widget:{trigger:"Report Issue",title:"Report an Issue",close:"Close",back:"Back",submit:"Submit",submitting:"Submitting\u2026",submitted:"Thank you! Your report has been submitted.",error:"Could not send your report. Check your connection and try again."},step1:{heading:"What kind of issue?",reportSectionLabel:"Report an issue",moreNavLabel:"More",moreNav:{yourReports:"Your reports",yourReportsDesc:"See status, developer replies, and respond",unreadNew:"new",communityIdeas:"Community ideas",communityIdeasDesc:"Vote on features and see what shipped",leaderboard:"Leaderboard",joinCommunity:"Join community \xB7 Track reports across apps",myAccount:"My account"},categories:{bug:"Bug",slow:"Slow / Laggy",visual:"Visual Glitch",confusing:"Confusing",other:"Other"},categoryDescriptions:{bug:"Something is broken or not working",slow:"Performance issue or slow loading",visual:"Layout, styling, or display problem",confusing:"Hard to understand or navigate",other:"Something else"}},step2:{heading:"What happened?",intents:{bug:["Crash","Unresponsive","Data loss","Wrong result","Other"],slow:["Page load","Interaction","API call","Animation","Other"],visual:["Layout broken","Overlapping","Missing element","Wrong color/font","Other"],confusing:["Unclear label","Missing help","Unexpected flow","Lost navigation","Other"],other:["Feature request","Accessibility","Typo","Other"]}},step3:{heading:"Tell us more",descriptionPlaceholder:"Describe what happened\u2026",screenshotButton:"Attach Screenshot",screenshotAttached:"Screenshot attached \u2713",screenshotCapturing:"Taking screenshot\u2026",screenshotFailed:"Couldn't capture \u2014 describe it instead",screenshotPreviewAlt:"Preview of the screenshot that will be sent",screenshotSensitiveHint:"Check the preview \u2014 remove it if any private info (balances, personal details) is visible.",elementButton:"Select Element",elementSelected:"Element selected \u2713",elementCapturing:"Click anything on the page\u2026",elementFailed:"Couldn't select \u2014 describe it instead",elementSelectorHint:"Click any element \xB7 Esc to cancel",optional:"(optional)",tooShort:"A bit more detail helps us fix it faster",examplePrompts:["The save button does nothing","Page froze for 10 seconds","Layout looks broken here"]},assistant:{defaultLabel:"Ask",defaultGreeting:"Ask about this page \u2014 I only use what you see here.",inputPlaceholder:"Type your question\u2026",sendAriaLabel:"Send",hubDescription:"Get help using this app",thinking:"Thinking\u2026",errors:{noResponse:"No response \u2014 check your connection and try again.",generic:"Could not reach the assistant. Try again in a moment."}},flows:{eyebrows:{inbox:"Mushi \xB7 Inbox",roadmap:"Mushi \xB7 Roadmap",community:"Mushi \xB7 Community",identity:"Mushi \xB7 Identity",signIn:"Mushi \xB7 Sign in",allApps:"Mushi \xB7 All apps",receipt:"Mushi \xB7 Receipt",thread:"Mushi \xB7 Inbox"},reports:{title:"Your reports",loading:"Loading reports\u2026",empty:"No reports from this browser yet.",leaderboardLink:"Leaderboard"},roadmap:{title:"Community ideas",loading:"Loading ideas\u2026",empty:"No community ideas yet. Be the first to suggest one.",shipped:"Shipped",vote:"Vote",voted:"Voted",voteCount:"{n} votes",untitled:"Untitled idea"},leaderboard:{title:"Global leaderboard",loading:"Loading leaderboard\u2026",empty:"No contributors yet \u2014 be the first!",signInPrompt:"Sign in to see your rank \u2192",myRank:"You are ranked #{rank} this month",footer:"Global contributors this month \xB7 Points refresh monthly",anon:"Anon"},account:{title:"Mushi account",checkEmailTitle:"Check your email",joinTitle:"Join the community",emailLabel:"Email address",emailPlaceholder:"Email",signInPrompt:"Sign in to see your reports across all apps and climb the global leaderboard. No password needed.",magicLinkSent:"We sent a sign-in link to {email}. Click it to connect your reports across apps.",resendEmail:"Resend email",sendLink:"Send sign-in link",sending:"Sending\u2026",crossAppReports:"My reports across all apps \u2192",viewLeaderboard:"View global leaderboard \u2192",signOut:"Sign out",rankSummary:"Rank #{rank} \xB7 {points} pts this month"},crossApp:{title:"My reports",loading:"Loading your reports\u2026",empty:"No reports filed yet.",unknownApp:"Unknown app"},thread:{title:"Report thread",loading:"Loading thread\u2026",empty:"No developer replies yet.",confirmFixed:"Yes, fixed for me",notFixed:"Not fixed yet",replyPlaceholder:"Reply to the developer\u2026",send:"Send"},success:{trackReport:"Track this report \u203A",receipt:"Receipt",delivering:"Delivering to the team\u2026",queuedOffline:"Queued offline",queuedHint:"We'll send it the moment you're back online.",trackOnMushi:"Track on Mushi",slaDefault:"We will review your report."},featureRequest:{label:"Feature request",description:"Suggest a change"},poweredBy:"Powered by Mushi v{version}"}};var Ls={widget:{trigger:"\u554F\u984C\u3092\u5831\u544A",title:"\u554F\u984C\u3092\u5831\u544A\u3059\u308B",close:"\u9589\u3058\u308B",back:"\u623B\u308B",submit:"\u9001\u4FE1",submitting:"\u9001\u4FE1\u4E2D\u2026",submitted:"\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059\uFF01\u30EC\u30DD\u30FC\u30C8\u304C\u9001\u4FE1\u3055\u308C\u307E\u3057\u305F\u3002",error:"\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002"},step1:{heading:"\u3069\u306E\u3088\u3046\u306A\u554F\u984C\u3067\u3059\u304B\uFF1F",reportSectionLabel:"\u554F\u984C\u3092\u5831\u544A",moreNavLabel:"\u305D\u306E\u4ED6",moreNav:{yourReports:"\u3042\u306A\u305F\u306E\u30EC\u30DD\u30FC\u30C8",yourReportsDesc:"\u30B9\u30C6\u30FC\u30BF\u30B9\u3001\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1\u3001\u8FD4\u7B54",unreadNew:"\u4EF6\u306E\u65B0\u7740",communityIdeas:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306E\u30A2\u30A4\u30C7\u30A2",communityIdeasDesc:"\u6A5F\u80FD\u306B\u6295\u7968\u3057\u3066\u30EA\u30EA\u30FC\u30B9\u72B6\u6CC1\u3092\u78BA\u8A8D",leaderboard:"\u30EA\u30FC\u30C0\u30FC\u30DC\u30FC\u30C9",joinCommunity:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306B\u53C2\u52A0 \xB7 \u30A2\u30D7\u30EA\u6A2A\u65AD\u3067\u30EC\u30DD\u30FC\u30C8\u3092\u8FFD\u8DE1",myAccount:"\u30DE\u30A4\u30A2\u30AB\u30A6\u30F3\u30C8"},categories:{bug:"\u30D0\u30B0",slow:"\u9045\u3044\u30FB\u91CD\u3044",visual:"\u8868\u793A\u306E\u554F\u984C",confusing:"\u308F\u304B\u308A\u306B\u304F\u3044",other:"\u305D\u306E\u4ED6"},categoryDescriptions:{bug:"\u52D5\u4F5C\u3057\u306A\u3044\u3001\u58CA\u308C\u3066\u3044\u308B",slow:"\u30D1\u30D5\u30A9\u30FC\u30DE\u30F3\u30B9\u304C\u60AA\u3044\u3001\u8AAD\u307F\u8FBC\u307F\u304C\u9045\u3044",visual:"\u30EC\u30A4\u30A2\u30A6\u30C8\u3001\u30C7\u30B6\u30A4\u30F3\u3001\u8868\u793A\u306E\u554F\u984C",confusing:"\u7406\u89E3\u3057\u306B\u304F\u3044\u3001\u64CD\u4F5C\u304C\u308F\u304B\u308A\u306B\u304F\u3044",other:"\u305D\u306E\u4ED6\u306E\u554F\u984C"}},step2:{heading:"\u4F55\u304C\u8D77\u304D\u307E\u3057\u305F\u304B\uFF1F",intents:{bug:["\u30AF\u30E9\u30C3\u30B7\u30E5","\u7121\u53CD\u5FDC","\u30C7\u30FC\u30BF\u6D88\u5931","\u8AA4\u3063\u305F\u7D50\u679C","\u305D\u306E\u4ED6"],slow:["\u30DA\u30FC\u30B8\u8AAD\u8FBC","\u64CD\u4F5C\u53CD\u5FDC","API\u901A\u4FE1","\u30A2\u30CB\u30E1\u30FC\u30B7\u30E7\u30F3","\u305D\u306E\u4ED6"],visual:["\u30EC\u30A4\u30A2\u30A6\u30C8\u5D29\u308C","\u8981\u7D20\u306E\u91CD\u306A\u308A","\u8981\u7D20\u304C\u8868\u793A\u3055\u308C\u306A\u3044","\u8272/\u30D5\u30A9\u30F3\u30C8\u304C\u9055\u3046","\u305D\u306E\u4ED6"],confusing:["\u30E9\u30D9\u30EB\u304C\u4E0D\u660E\u77AD","\u30D8\u30EB\u30D7\u304C\u306A\u3044","\u4E88\u60F3\u5916\u306E\u30D5\u30ED\u30FC","\u30CA\u30D3\u30B2\u30FC\u30B7\u30E7\u30F3\u8FF7\u5B50","\u305D\u306E\u4ED6"],other:["\u6A5F\u80FD\u8981\u671B","\u30A2\u30AF\u30BB\u30B7\u30D3\u30EA\u30C6\u30A3","\u8AA4\u5B57\u8131\u5B57","\u305D\u306E\u4ED6"]}},step3:{heading:"\u8A73\u7D30\u3092\u6559\u3048\u3066\u304F\u3060\u3055\u3044",descriptionPlaceholder:"\u4F55\u304C\u8D77\u304D\u305F\u304B\u8AAC\u660E\u3057\u3066\u304F\u3060\u3055\u3044\u2026",screenshotButton:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u6DFB\u4ED8",screenshotAttached:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u6DFB\u4ED8\u6E08\u307F \u2713",screenshotCapturing:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u64AE\u5F71\u4E2D\u2026",screenshotFailed:"\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F \u2014 \u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044",screenshotPreviewAlt:"\u9001\u4FE1\u3055\u308C\u308B\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306E\u30D7\u30EC\u30D3\u30E5\u30FC",screenshotSensitiveHint:"\u30D7\u30EC\u30D3\u30E5\u30FC\u3092\u78BA\u8A8D\u3057\u3001\u6B8B\u9AD8\u3084\u500B\u4EBA\u60C5\u5831\u306A\u3069\u304C\u5199\u3063\u3066\u3044\u308C\u3070\u524A\u9664\u3057\u3066\u304F\u3060\u3055\u3044\u3002",elementButton:"\u8981\u7D20\u3092\u9078\u629E",elementSelected:"\u8981\u7D20\u9078\u629E\u6E08\u307F \u2713",elementCapturing:"\u30DA\u30FC\u30B8\u4E0A\u306E\u8981\u7D20\u3092\u30AF\u30EA\u30C3\u30AF\u2026",elementFailed:"\u9078\u629E\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F \u2014 \u6587\u5B57\u3067\u6559\u3048\u3066\u304F\u3060\u3055\u3044",elementSelectorHint:"\u8981\u7D20\u3092\u30AF\u30EA\u30C3\u30AF \xB7 Esc \u3067\u30AD\u30E3\u30F3\u30BB\u30EB",optional:"\uFF08\u4EFB\u610F\uFF09",tooShort:"\u3082\u3046\u5C11\u3057\u8A73\u3057\u304F\u6559\u3048\u3066\u304F\u3060\u3055\u3044",examplePrompts:["\u4FDD\u5B58\u30DC\u30BF\u30F3\u304C\u53CD\u5FDC\u3057\u306A\u3044","\u30DA\u30FC\u30B8\u304C10\u79D2\u56FA\u307E\u3063\u305F","\u30EC\u30A4\u30A2\u30A6\u30C8\u304C\u5D29\u308C\u3066\u3044\u308B"]},assistant:{defaultLabel:"\u8CEA\u554F",defaultGreeting:"\u3053\u306E\u30DA\u30FC\u30B8\u306B\u3064\u3044\u3066\u8CEA\u554F\u3057\u3066\u304F\u3060\u3055\u3044 \u2014 \u8868\u793A\u3055\u308C\u3066\u3044\u308B\u5185\u5BB9\u3060\u3051\u3092\u4F7F\u3044\u307E\u3059\u3002",inputPlaceholder:"\u8CEA\u554F\u3092\u5165\u529B\u2026",sendAriaLabel:"\u9001\u4FE1",hubDescription:"\u3053\u306E\u30A2\u30D7\u30EA\u306E\u4F7F\u3044\u65B9\u3092\u805E\u304F",thinking:"\u8003\u3048\u4E2D\u2026",errors:{noResponse:"\u5FDC\u7B54\u304C\u3042\u308A\u307E\u305B\u3093 \u2014 \u63A5\u7D9A\u3092\u78BA\u8A8D\u3057\u3066\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",generic:"\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002"}},flows:{eyebrows:{inbox:"Mushi \xB7 \u53D7\u4FE1\u7BB1",roadmap:"Mushi \xB7 \u30A2\u30A4\u30C7\u30A2",community:"Mushi \xB7 \u30B3\u30DF\u30E5\u30CB\u30C6\u30A3",identity:"Mushi \xB7 \u30A2\u30AB\u30A6\u30F3\u30C8",signIn:"Mushi \xB7 \u30B5\u30A4\u30F3\u30A4\u30F3",allApps:"Mushi \xB7 \u5168\u30A2\u30D7\u30EA",receipt:"Mushi \xB7 \u53D7\u4ED8",thread:"Mushi \xB7 \u53D7\u4FE1\u7BB1"},reports:{title:"\u3042\u306A\u305F\u306E\u30EC\u30DD\u30FC\u30C8",loading:"\u30EC\u30DD\u30FC\u30C8\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u3053\u306E\u30D6\u30E9\u30A6\u30B6\u304B\u3089\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",leaderboardLink:"\u30E9\u30F3\u30AD\u30F3\u30B0"},roadmap:{title:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306E\u30A2\u30A4\u30C7\u30A2",loading:"\u30A2\u30A4\u30C7\u30A2\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u30A2\u30A4\u30C7\u30A2\u304C\u3042\u308A\u307E\u305B\u3093\u3002\u6700\u521D\u306E\u63D0\u6848\u3092\u3069\u3046\u305E\u3002",shipped:"\u30EA\u30EA\u30FC\u30B9\u6E08\u307F",vote:"\u6295\u7968",voted:"\u6295\u7968\u6E08\u307F",voteCount:"{n} \u7968",untitled:"\u7121\u984C\u306E\u30A2\u30A4\u30C7\u30A2"},leaderboard:{title:"\u30B0\u30ED\u30FC\u30D0\u30EB\u30E9\u30F3\u30AD\u30F3\u30B0",loading:"\u30E9\u30F3\u30AD\u30F3\u30B0\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u53C2\u52A0\u8005\u304C\u3044\u307E\u305B\u3093 \u2014 \u6700\u521D\u306E\u4E00\u4EBA\u306B\u306A\u308D\u3046\u3002",signInPrompt:"\u30B5\u30A4\u30F3\u30A4\u30F3\u3057\u3066\u9806\u4F4D\u3092\u898B\u308B \u2192",myRank:"\u4ECA\u6708\u306E\u9806\u4F4D\u306F #{rank}",footer:"\u4ECA\u6708\u306E\u30B0\u30ED\u30FC\u30D0\u30EB\u8CA2\u732E\u8005 \xB7 \u30DD\u30A4\u30F3\u30C8\u306F\u6BCE\u6708\u30EA\u30BB\u30C3\u30C8",anon:"\u533F\u540D"},account:{title:"Mushi \u30A2\u30AB\u30A6\u30F3\u30C8",checkEmailTitle:"\u30E1\u30FC\u30EB\u3092\u78BA\u8A8D",joinTitle:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306B\u53C2\u52A0",emailLabel:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",emailPlaceholder:"\u30E1\u30FC\u30EB",signInPrompt:"\u30B5\u30A4\u30F3\u30A4\u30F3\u3059\u308B\u3068\u5168\u30A2\u30D7\u30EA\u306E\u30EC\u30DD\u30FC\u30C8\u3068\u30E9\u30F3\u30AD\u30F3\u30B0\u304C\u898B\u3089\u308C\u307E\u3059\u3002\u30D1\u30B9\u30EF\u30FC\u30C9\u4E0D\u8981\u3002",magicLinkSent:"{email} \u306B\u30B5\u30A4\u30F3\u30A4\u30F3\u30EA\u30F3\u30AF\u3092\u9001\u308A\u307E\u3057\u305F\u3002\u30EA\u30F3\u30AF\u3092\u958B\u3044\u3066\u30EC\u30DD\u30FC\u30C8\u3092\u63A5\u7D9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002",resendEmail:"\u30E1\u30FC\u30EB\u3092\u518D\u9001",sendLink:"\u30B5\u30A4\u30F3\u30A4\u30F3\u30EA\u30F3\u30AF\u3092\u9001\u308B",sending:"\u9001\u4FE1\u4E2D\u2026",crossAppReports:"\u5168\u30A2\u30D7\u30EA\u306E\u30EC\u30DD\u30FC\u30C8 \u2192",viewLeaderboard:"\u30B0\u30ED\u30FC\u30D0\u30EB\u30E9\u30F3\u30AD\u30F3\u30B0 \u2192",signOut:"\u30B5\u30A4\u30F3\u30A2\u30A6\u30C8",rankSummary:"\u9806\u4F4D #{rank} \xB7 \u4ECA\u6708 {points} pts"},crossApp:{title:"\u30DE\u30A4\u30EC\u30DD\u30FC\u30C8",loading:"\u30EC\u30DD\u30FC\u30C8\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u30EC\u30DD\u30FC\u30C8\u304C\u3042\u308A\u307E\u305B\u3093\u3002",unknownApp:"\u4E0D\u660E\u306A\u30A2\u30D7\u30EA"},thread:{title:"\u30EC\u30DD\u30FC\u30C8\u30B9\u30EC\u30C3\u30C9",loading:"\u30B9\u30EC\u30C3\u30C9\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",confirmFixed:"\u306F\u3044\u3001\u76F4\u308A\u307E\u3057\u305F",notFixed:"\u307E\u3060\u76F4\u3063\u3066\u3044\u307E\u305B\u3093",replyPlaceholder:"\u958B\u767A\u8005\u306B\u8FD4\u4FE1\u2026",send:"\u9001\u4FE1"},success:{trackReport:"\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u3092\u8FFD\u8DE1 \u203A",receipt:"\u53D7\u4ED8",delivering:"\u30C1\u30FC\u30E0\u306B\u9001\u4FE1\u4E2D\u2026",queuedOffline:"\u30AA\u30D5\u30E9\u30A4\u30F3\u5F85\u6A5F\u4E2D",queuedHint:"\u30AA\u30F3\u30E9\u30A4\u30F3\u306B\u623B\u308A\u6B21\u7B2C\u9001\u4FE1\u3057\u307E\u3059\u3002",trackOnMushi:"Mushi\u3067\u8FFD\u8DE1",slaDefault:"\u30EC\u30DD\u30FC\u30C8\u3092\u78BA\u8A8D\u3057\u307E\u3059\u3002"},featureRequest:{label:"\u6A5F\u80FD\u30EA\u30AF\u30A8\u30B9\u30C8",description:"\u5909\u66F4\u3092\u63D0\u6848"},poweredBy:"Mushi v{version}"}};var As={widget:{trigger:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",close:"\u0E1B\u0E34\u0E14",back:"\u0E01\u0E25\u0E31\u0E1A",submit:"\u0E2A\u0E48\u0E07",submitting:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u2026",submitted:"\u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13\u0E04\u0E23\u0E31\u0E1A/\u0E04\u0E48\u0E30! \u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E16\u0E39\u0E01\u0E2A\u0E48\u0E07\u0E41\u0E25\u0E49\u0E27",error:"\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07"},step1:{heading:"\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E44\u0E2B\u0E19?",reportSectionLabel:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1B\u0E31\u0E0D\u0E2B\u0E32",moreNavLabel:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",moreNav:{yourReports:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",yourReportsDesc:"\u0E14\u0E39\u0E2A\u0E16\u0E32\u0E19\u0E30 \u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32 \u0E41\u0E25\u0E30\u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A",unreadNew:"\u0E43\u0E2B\u0E21\u0E48",communityIdeas:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E08\u0E32\u0E01\u0E0A\u0E38\u0E21\u0E0A\u0E19",communityIdeasDesc:"\u0E42\u0E2B\u0E27\u0E15\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C\u0E41\u0E25\u0E30\u0E14\u0E39\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\u0E1B\u0E25\u0E48\u0E2D\u0E22\u0E41\u0E25\u0E49\u0E27",leaderboard:"\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33",joinCommunity:"\u0E40\u0E02\u0E49\u0E32\u0E23\u0E48\u0E27\u0E21\u0E0A\u0E38\u0E21\u0E0A\u0E19 \xB7 \u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E49\u0E32\u0E21\u0E41\u0E2D\u0E1B",myAccount:"\u0E1A\u0E31\u0E0D\u0E0A\u0E35\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19"},categories:{bug:"\u0E1A\u0E31\u0E01",slow:"\u0E0A\u0E49\u0E32 / \u0E41\u0E25\u0E04",visual:"\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25\u0E1C\u0E34\u0E14\u0E1B\u0E01\u0E15\u0E34",confusing:"\u0E2A\u0E31\u0E1A\u0E2A\u0E19",other:"\u0E2D\u0E37\u0E48\u0E19\u0E46"},categoryDescriptions:{bug:"\u0E21\u0E35\u0E1A\u0E32\u0E07\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E40\u0E2A\u0E35\u0E22\u0E2B\u0E23\u0E37\u0E2D\u0E17\u0E33\u0E07\u0E32\u0E19\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",slow:"\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E1B\u0E23\u0E30\u0E2A\u0E34\u0E17\u0E18\u0E34\u0E20\u0E32\u0E1E\u0E2B\u0E23\u0E37\u0E2D\u0E42\u0E2B\u0E25\u0E14\u0E0A\u0E49\u0E32",visual:"\u0E1B\u0E31\u0E0D\u0E2B\u0E32\u0E40\u0E25\u0E22\u0E4C\u0E40\u0E2D\u0E32\u0E15\u0E4C \u0E2A\u0E44\u0E15\u0E25\u0E4C \u0E2B\u0E23\u0E37\u0E2D\u0E01\u0E32\u0E23\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25",confusing:"\u0E40\u0E02\u0E49\u0E32\u0E43\u0E08\u0E22\u0E32\u0E01\u0E2B\u0E23\u0E37\u0E2D\u0E19\u0E33\u0E17\u0E32\u0E07\u0E22\u0E32\u0E01",other:"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E2D\u0E37\u0E48\u0E19"}},step2:{heading:"\u0E40\u0E01\u0E34\u0E14\u0E2D\u0E30\u0E44\u0E23\u0E02\u0E36\u0E49\u0E19?",intents:{bug:["\u0E41\u0E04\u0E23\u0E0A","\u0E44\u0E21\u0E48\u0E15\u0E2D\u0E1A\u0E2A\u0E19\u0E2D\u0E07","\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2B\u0E32\u0E22","\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"],slow:["\u0E42\u0E2B\u0E25\u0E14\u0E2B\u0E19\u0E49\u0E32","\u0E01\u0E32\u0E23\u0E42\u0E15\u0E49\u0E15\u0E2D\u0E1A","API","\u0E41\u0E2D\u0E19\u0E34\u0E40\u0E21\u0E0A\u0E31\u0E19","\u0E2D\u0E37\u0E48\u0E19\u0E46"],visual:["\u0E40\u0E25\u0E22\u0E4C\u0E40\u0E2D\u0E32\u0E15\u0E4C\u0E40\u0E2A\u0E35\u0E22","\u0E0B\u0E49\u0E2D\u0E19\u0E17\u0E31\u0E1A","\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E2B\u0E32\u0E22","\u0E2A\u0E35/\u0E1F\u0E2D\u0E19\u0E15\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"],confusing:["\u0E1B\u0E49\u0E32\u0E22\u0E44\u0E21\u0E48\u0E0A\u0E31\u0E14","\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E33\u0E41\u0E19\u0E30\u0E19\u0E33","\u0E02\u0E31\u0E49\u0E19\u0E15\u0E2D\u0E19\u0E44\u0E21\u0E48\u0E04\u0E32\u0E14\u0E04\u0E34\u0E14","\u0E2B\u0E25\u0E07\u0E17\u0E32\u0E07","\u0E2D\u0E37\u0E48\u0E19\u0E46"],other:["\u0E02\u0E2D\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C","\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E16\u0E36\u0E07","\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E1C\u0E34\u0E14","\u0E2D\u0E37\u0E48\u0E19\u0E46"]}},step3:{heading:"\u0E1A\u0E2D\u0E01\u0E40\u0E23\u0E32\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",descriptionPlaceholder:"\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\u0E40\u0E01\u0E34\u0E14\u0E02\u0E36\u0E49\u0E19\u2026",screenshotButton:"\u0E41\u0E19\u0E1A\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15",screenshotAttached:"\u0E41\u0E19\u0E1A\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u0E41\u0E25\u0E49\u0E27 \u2713",screenshotCapturing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E16\u0E48\u0E32\u0E22\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u2026",screenshotFailed:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E16\u0E48\u0E32\u0E22\u0E20\u0E32\u0E1E\u0E44\u0E14\u0E49 \u2014 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",screenshotPreviewAlt:"\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u0E17\u0E35\u0E48\u0E08\u0E30\u0E16\u0E39\u0E01\u0E2A\u0E48\u0E07",screenshotSensitiveHint:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E20\u0E32\u0E1E \u2014 \u0E2B\u0E32\u0E01\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E48\u0E27\u0E19\u0E15\u0E31\u0E27 (\u0E22\u0E2D\u0E14\u0E40\u0E07\u0E34\u0E19 \u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E48\u0E27\u0E19\u0E1A\u0E38\u0E04\u0E04\u0E25) \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E1A\u0E2D\u0E2D\u0E01",elementButton:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A",elementSelected:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E41\u0E25\u0E49\u0E27 \u2713",elementCapturing:"\u0E04\u0E25\u0E34\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u2026",elementFailed:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E14\u0E49 \u2014 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",elementSelectorHint:"\u0E04\u0E25\u0E34\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E43\u0E14\u0E01\u0E47\u0E44\u0E14\u0E49 \xB7 Esc \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",optional:"(\u0E44\u0E21\u0E48\u0E1A\u0E31\u0E07\u0E04\u0E31\u0E1A)",tooShort:"\u0E01\u0E23\u0E38\u0E13\u0E32\u0E43\u0E2B\u0E49\u0E23\u0E32\u0E22\u0E25\u0E30\u0E40\u0E2D\u0E35\u0E22\u0E14\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",examplePrompts:["\u0E1B\u0E38\u0E48\u0E21\u0E1A\u0E31\u0E19\u0E17\u0E36\u0E01\u0E44\u0E21\u0E48\u0E17\u0E33\u0E07\u0E32\u0E19","\u0E2B\u0E19\u0E49\u0E32\u0E04\u0E49\u0E32\u0E07\u0E19\u0E32\u0E19 10 \u0E27\u0E34\u0E19\u0E32\u0E17\u0E35","\u0E40\u0E25\u0E22\u0E4C\u0E40\u0E2D\u0E32\u0E15\u0E4C\u0E1E\u0E31\u0E07"]},assistant:{defaultLabel:"\u0E16\u0E32\u0E21",defaultGreeting:"\u0E16\u0E32\u0E21\u0E40\u0E01\u0E35\u0E48\u0E22\u0E27\u0E01\u0E31\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E19\u0E35\u0E49 \u2014 \u0E43\u0E0A\u0E49\u0E40\u0E09\u0E1E\u0E32\u0E30\u0E2A\u0E34\u0E48\u0E07\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E40\u0E2B\u0E47\u0E19\u0E1A\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D",inputPlaceholder:"\u0E1E\u0E34\u0E21\u0E1E\u0E4C\u0E04\u0E33\u0E16\u0E32\u0E21\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u2026",sendAriaLabel:"\u0E2A\u0E48\u0E07",hubDescription:"\u0E02\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E48\u0E27\u0E22\u0E40\u0E2B\u0E25\u0E37\u0E2D\u0E43\u0E19\u0E01\u0E32\u0E23\u0E43\u0E0A\u0E49\u0E41\u0E2D\u0E1B",thinking:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E04\u0E34\u0E14\u2026",errors:{noResponse:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E01\u0E32\u0E23\u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A \u2014 \u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E32\u0E23\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E41\u0E25\u0E49\u0E27\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",generic:"\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E15\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E0A\u0E48\u0E27\u0E22\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E43\u0E19\u0E2D\u0E35\u0E01\u0E2A\u0E31\u0E01\u0E04\u0E23\u0E39\u0E48"}},flows:{eyebrows:{inbox:"Mushi \xB7 \u0E01\u0E25\u0E48\u0E2D\u0E07\u0E02\u0E32\u0E40\u0E02\u0E49\u0E32",roadmap:"Mushi \xB7 \u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22",community:"Mushi \xB7 \u0E0A\u0E38\u0E21\u0E0A\u0E19",identity:"Mushi \xB7 \u0E1A\u0E31\u0E0D\u0E0A\u0E35",signIn:"Mushi \xB7 \u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A",allApps:"Mushi \xB7 \u0E17\u0E38\u0E01\u0E41\u0E2D\u0E1B",receipt:"Mushi \xB7 \u0E43\u0E1A\u0E23\u0E31\u0E1A",thread:"Mushi \xB7 \u0E01\u0E25\u0E48\u0E2D\u0E07\u0E02\u0E32\u0E40\u0E02\u0E49\u0E32"},reports:{title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E08\u0E32\u0E01\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E19\u0E35\u0E49",leaderboardLink:"\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33"},roadmap:{title:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E08\u0E32\u0E01\u0E0A\u0E38\u0E21\u0E0A\u0E19",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22 \u0E40\u0E1B\u0E47\u0E19\u0E04\u0E19\u0E41\u0E23\u0E01\u0E17\u0E35\u0E48\u0E40\u0E2A\u0E19\u0E2D\u0E44\u0E14\u0E49",shipped:"\u0E1B\u0E25\u0E48\u0E2D\u0E22\u0E41\u0E25\u0E49\u0E27",vote:"\u0E42\u0E2B\u0E27\u0E15",voted:"\u0E42\u0E2B\u0E27\u0E15\u0E41\u0E25\u0E49\u0E27",voteCount:"{n} \u0E42\u0E2B\u0E27\u0E15",untitled:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E44\u0E21\u0E48\u0E21\u0E35\u0E0A\u0E37\u0E48\u0E2D"},leaderboard:{title:"\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E1C\u0E39\u0E49\u0E23\u0E48\u0E27\u0E21\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19 \u2014 \u0E21\u0E32\u0E40\u0E1B\u0E47\u0E19\u0E04\u0E19\u0E41\u0E23\u0E01",signInPrompt:"\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E39\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13 \u2192",myRank:"\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E04\u0E37\u0E2D #{rank} \u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49",footer:"\u0E1C\u0E39\u0E49\u0E23\u0E48\u0E27\u0E21\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01\u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49 \xB7 \u0E04\u0E30\u0E41\u0E19\u0E19\u0E23\u0E35\u0E40\u0E0B\u0E47\u0E15\u0E17\u0E38\u0E01\u0E40\u0E14\u0E37\u0E2D\u0E19",anon:"\u0E44\u0E21\u0E48\u0E23\u0E30\u0E1A\u0E38\u0E0A\u0E37\u0E48\u0E2D"},account:{title:"\u0E1A\u0E31\u0E0D\u0E0A\u0E35 Mushi",checkEmailTitle:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E2D\u0E35\u0E40\u0E21\u0E25",joinTitle:"\u0E40\u0E02\u0E49\u0E32\u0E23\u0E48\u0E27\u0E21\u0E0A\u0E38\u0E21\u0E0A\u0E19",emailLabel:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",emailPlaceholder:"\u0E2D\u0E35\u0E40\u0E21\u0E25",signInPrompt:"\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E14\u0E39\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E17\u0E38\u0E01\u0E41\u0E2D\u0E1B\u0E41\u0E25\u0E30\u0E44\u0E15\u0E48\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A \u0E44\u0E21\u0E48\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E0A\u0E49\u0E23\u0E2B\u0E31\u0E2A\u0E1C\u0E48\u0E32\u0E19",magicLinkSent:"\u0E40\u0E23\u0E32\u0E2A\u0E48\u0E07\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E44\u0E1B\u0E17\u0E35\u0E48 {email} \u0E41\u0E25\u0E49\u0E27 \u0E04\u0E25\u0E34\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E0A\u0E37\u0E48\u0E2D\u0E21\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",resendEmail:"\u0E2A\u0E48\u0E07\u0E2D\u0E35\u0E40\u0E21\u0E25\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",sendLink:"\u0E2A\u0E48\u0E07\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A",sending:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u2026",crossAppReports:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19\u0E17\u0E38\u0E01\u0E41\u0E2D\u0E1B \u2192",viewLeaderboard:"\u0E14\u0E39\u0E01\u0E23\u0E30\u0E14\u0E32\u0E19\u0E1C\u0E39\u0E49\u0E19\u0E33\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01 \u2192",signOut:"\u0E2D\u0E2D\u0E01\u0E08\u0E32\u0E01\u0E23\u0E30\u0E1A\u0E1A",rankSummary:"\u0E2D\u0E31\u0E19\u0E14\u0E31\u0E1A #{rank} \xB7 {points} pts \u0E40\u0E14\u0E37\u0E2D\u0E19\u0E19\u0E35\u0E49"},crossApp:{title:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E09\u0E31\u0E19",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",unknownApp:"\u0E41\u0E2D\u0E1B\u0E44\u0E21\u0E48\u0E17\u0E23\u0E32\u0E1A\u0E0A\u0E37\u0E48\u0E2D"},thread:{title:"\u0E40\u0E18\u0E23\u0E14\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E40\u0E18\u0E23\u0E14\u2026",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E17\u0E35\u0E21\u0E1E\u0E31\u0E12\u0E19\u0E32",confirmFixed:"\u0E43\u0E0A\u0E48 \u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27",notFixed:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E41\u0E01\u0E49",replyPlaceholder:"\u0E15\u0E2D\u0E1A\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u2026",send:"\u0E2A\u0E48\u0E07"},success:{trackReport:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49 \u203A",receipt:"\u0E43\u0E1A\u0E23\u0E31\u0E1A",delivering:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E17\u0E35\u0E21\u2026",queuedOffline:"\u0E04\u0E34\u0E27\u0E2D\u0E2D\u0E1F\u0E44\u0E25\u0E19\u0E4C",queuedHint:"\u0E08\u0E30\u0E2A\u0E48\u0E07\u0E17\u0E31\u0E19\u0E17\u0E35\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E01\u0E25\u0E31\u0E1A\u0E21\u0E32\u0E2D\u0E2D\u0E19\u0E44\u0E25\u0E19\u0E4C",trackOnMushi:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E1A\u0E19 Mushi",slaDefault:"\u0E40\u0E23\u0E32\u0E08\u0E30\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13"},featureRequest:{label:"\u0E02\u0E2D\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C",description:"\u0E40\u0E2A\u0E19\u0E2D\u0E01\u0E32\u0E23\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E41\u0E1B\u0E25\u0E07"},poweredBy:"Powered by Mushi v{version}"}};var _s={widget:{trigger:"Reportar problema",title:"Reportar un problema",close:"Cerrar",back:"Volver",submit:"Enviar",submitting:"Enviando\u2026",submitted:"\xA1Gracias! Tu reporte ha sido enviado.",error:"No se pudo enviar tu reporte. Revisa tu conexi\xF3n e int\xE9ntalo de nuevo."},step1:{heading:"\xBFQu\xE9 tipo de problema?",reportSectionLabel:"Reportar un problema",moreNavLabel:"M\xE1s",moreNav:{yourReports:"Tus reportes",yourReportsDesc:"Ver estado, respuestas del desarrollador y responder",unreadNew:"nuevos",communityIdeas:"Ideas de la comunidad",communityIdeasDesc:"Vota funciones y mira qu\xE9 se lanz\xF3",leaderboard:"Clasificaci\xF3n",joinCommunity:"Unirse a la comunidad \xB7 Rastrea reportes entre apps",myAccount:"Mi cuenta"},categories:{bug:"Error",slow:"Lento",visual:"Problema visual",confusing:"Confuso",other:"Otro"},categoryDescriptions:{bug:"Algo est\xE1 roto o no funciona",slow:"Problema de rendimiento o carga lenta",visual:"Problema de dise\xF1o, estilo o visualizaci\xF3n",confusing:"Dif\xEDcil de entender o navegar",other:"Otro problema"}},step2:{heading:"\xBFQu\xE9 pas\xF3?",intents:{bug:["Cierre inesperado","Sin respuesta","P\xE9rdida de datos","Resultado incorrecto","Otro"],slow:["Carga de p\xE1gina","Interacci\xF3n","Llamada API","Animaci\xF3n","Otro"],visual:["Layout roto","Superposici\xF3n","Elemento faltante","Color/fuente incorrecta","Otro"],confusing:["Etiqueta confusa","Sin ayuda","Flujo inesperado","Navegaci\xF3n perdida","Otro"],other:["Solicitud de funci\xF3n","Accesibilidad","Error tipogr\xE1fico","Otro"]}},step3:{heading:"Cu\xE9ntanos m\xE1s",descriptionPlaceholder:"Describe lo que pas\xF3\u2026",screenshotButton:"Adjuntar captura",screenshotAttached:"Captura adjunta \u2713",screenshotCapturing:"Tomando captura\u2026",screenshotFailed:"No se pudo capturar \u2014 descr\xEDbelo en su lugar",screenshotPreviewAlt:"Vista previa de la captura que se enviar\xE1",screenshotSensitiveHint:"Revisa la vista previa \u2014 qu\xEDtala si se ve informaci\xF3n privada (saldos, datos personales).",elementButton:"Seleccionar elemento",elementSelected:"Elemento seleccionado \u2713",elementCapturing:"Haz clic en cualquier elemento\u2026",elementFailed:"No se pudo seleccionar \u2014 descr\xEDbelo en su lugar",elementSelectorHint:"Clic en cualquier elemento \xB7 Esc para cancelar",optional:"(opcional)",tooShort:"Un poco m\xE1s de detalle nos ayuda a resolverlo",examplePrompts:["El bot\xF3n guardar no responde","La p\xE1gina se congel\xF3 10 segundos","El dise\xF1o se ve roto aqu\xED"]},assistant:{defaultLabel:"Preguntar",defaultGreeting:"Pregunta sobre esta p\xE1gina \u2014 solo uso lo que ves aqu\xED.",inputPlaceholder:"Escribe tu pregunta\u2026",sendAriaLabel:"Enviar",hubDescription:"Obt\xE9n ayuda para usar esta app",thinking:"Pensando\u2026",errors:{noResponse:"Sin respuesta \u2014 revisa tu conexi\xF3n e int\xE9ntalo de nuevo.",generic:"No se pudo contactar al asistente. Int\xE9ntalo en un momento."}},flows:{eyebrows:{inbox:"Mushi \xB7 Bandeja",roadmap:"Mushi \xB7 Ideas",community:"Mushi \xB7 Comunidad",identity:"Mushi \xB7 Cuenta",signIn:"Mushi \xB7 Acceso",allApps:"Mushi \xB7 Todas las apps",receipt:"Mushi \xB7 Recibo",thread:"Mushi \xB7 Bandeja"},reports:{title:"Tus reportes",loading:"Cargando reportes\u2026",empty:"A\xFAn no hay reportes en este navegador.",leaderboardLink:"Clasificaci\xF3n"},roadmap:{title:"Ideas de la comunidad",loading:"Cargando ideas\u2026",empty:"A\xFAn no hay ideas. S\xE9 el primero en sugerir una.",shipped:"Publicado",vote:"Votar",voted:"Votado",voteCount:"{n} votos",untitled:"Idea sin t\xEDtulo"},leaderboard:{title:"Clasificaci\xF3n global",loading:"Cargando clasificaci\xF3n\u2026",empty:"A\xFAn no hay colaboradores \u2014 s\xE9 el primero.",signInPrompt:"Inicia sesi\xF3n para ver tu puesto \u2192",myRank:"Est\xE1s en el puesto #{rank} este mes",footer:"Colaboradores globales este mes \xB7 Los puntos se reinician mensualmente",anon:"An\xF3nimo"},account:{title:"Cuenta Mushi",checkEmailTitle:"Revisa tu correo",joinTitle:"\xDAnete a la comunidad",emailLabel:"Correo electr\xF3nico",emailPlaceholder:"Correo",signInPrompt:"Inicia sesi\xF3n para ver tus reportes en todas las apps y subir en la clasificaci\xF3n. Sin contrase\xF1a.",magicLinkSent:"Enviamos un enlace de acceso a {email}. \xC1brelo para conectar tus reportes.",resendEmail:"Reenviar correo",sendLink:"Enviar enlace de acceso",sending:"Enviando\u2026",crossAppReports:"Mis reportes en todas las apps \u2192",viewLeaderboard:"Ver clasificaci\xF3n global \u2192",signOut:"Cerrar sesi\xF3n",rankSummary:"Puesto #{rank} \xB7 {points} pts este mes"},crossApp:{title:"Mis reportes",loading:"Cargando tus reportes\u2026",empty:"A\xFAn no has enviado reportes.",unknownApp:"App desconocida"},thread:{title:"Hilo del reporte",loading:"Cargando hilo\u2026",empty:"A\xFAn no hay respuestas del equipo.",confirmFixed:"S\xED, qued\xF3 resuelto",notFixed:"A\xFAn no est\xE1 resuelto",replyPlaceholder:"Responder al desarrollador\u2026",send:"Enviar"},success:{trackReport:"Seguir este reporte \u203A",receipt:"Recibo",delivering:"Enviando al equipo\u2026",queuedOffline:"En cola sin conexi\xF3n",queuedHint:"Lo enviaremos en cuanto vuelvas a estar en l\xEDnea.",trackOnMushi:"Seguir en Mushi",slaDefault:"Revisaremos tu reporte."},featureRequest:{label:"Solicitud de funci\xF3n",description:"Sugerir un cambio"},poweredBy:"Con tecnolog\xEDa de Mushi v{version}"}};var pa={en:Vt,ja:Ls,th:As,es:_s};function Ir(t){let e=t&&t!=="auto"?t:typeof navigator<"u"?navigator.language??navigator.languages?.[0]:void 0;if(!e)return Vt;let r=e.split("-")[0].toLowerCase();return pa[r]??Vt}function Ps(t,e="",r=""){let n=t==="dark",s=n?"dark":"light",o=$r(s),a=xs(s,e,r),i=bs[s];return {isDark:n,paper:o.paper,paperRaised:o.paperRaised,ink:o.ink,inkMuted:o.inkMuted,inkFaint:o.inkFaint,inkDim:o.inkDim,rule:o.rule,ruleStrong:o.ruleStrong,widgetAccent:a.accent,widgetAccentWash:a.accentWash,widgetAccentInk:a.accentInk,widgetAccentShadow:n?Tr.dark:Tr.light,ok:o.ok,danger:o.danger,onAccent:fs,inverse:gs,neonBannerBg:Wt.bg,neonBannerFg:Wt.fg,neonBannerBorder:Wt.border,brandBannerBorder:n?Mr.dark:Mr.light,statusSent:i.sent,statusReview:i.review,statusFixing:i.fixing,statusFixed:i.fixed,statusClosedBg:n?"rgba(242,235,221,0.06)":"rgba(14,13,11,0.05)",fontDisplay:et.fontDisplay,fontBody:et.fontBody,fontMono:et.fontMono,easeStamp:zt.easeStamp,zBanner:tt.banner,zPanel:tt.panel,zOverlay:tt.overlay,fabSize:rt.fabSize,panelWidth:rt.panelWidth,panelSheetBreakpoint:rt.panelSheetBreakpoint}}function Hs(t,e="",r=""){let n=Ps(t,e,r),{isDark:s,paper:o,paperRaised:a,ink:i,inkMuted:l,inkFaint:p,inkDim:h,rule:m,ruleStrong:b,widgetAccent:u,widgetAccentWash:f,widgetAccentInk:v,widgetAccentShadow:k,ok:T,danger:R,onAccent:w,inverse:A,neonBannerBg:y,neonBannerFg:E,neonBannerBorder:C,brandBannerBorder:x,statusSent:B,statusReview:N,statusFixing:Z,statusFixed:X,statusClosedBg:j,fontDisplay:V,fontBody:O,fontMono:P,easeStamp:$,zBanner:ee,fabSize:Q}=n,{sizeBody:L,lineBody:_}=et,{durationFast:H}=zt,{bannerHeight:F,gutter:M,panelWidth:pe,panelMaxHeight:Ne,panelSheetBreakpoint:oe,edgeTabWidth:q}=rt,te=Q+12,{base:ie}=tt,$e=vs.control;return `
2
3
  :host {
3
4
  all: initial;
4
5
  font-family: ${O};
5
- font-size: ${I}px;
6
- line-height: ${A};
6
+ font-size: ${L}px;
7
+ line-height: ${_};
7
8
  color: ${i};
8
9
  -webkit-font-smoothing: antialiased;
9
10
  -moz-osx-font-smoothing: grayscale;
10
11
  font-feature-settings: 'ss01', 'cv11'; /* nicer system-ui glyphs where supported */
11
- --mushi-ok: ${M};
12
+ --mushi-ok: ${T};
12
13
  /* SDK contract: the host element is always pass-through. Only the
13
14
  interactive surfaces (.mushi-trigger, .mushi-banner, .mushi-panel)
14
15
  opt back into pointer events so the widget never creates an
@@ -43,7 +44,7 @@
43
44
  0 1px 0 ${m},
44
45
  0 6px 14px -8px rgba(14,13,11,0.35),
45
46
  inset 0 -3px 0 ${u};
46
- transition: transform ${H}ms ${L}, box-shadow ${H}ms ${L};
47
+ transition: transform ${H}ms ${$}, box-shadow ${H}ms ${$};
47
48
  overflow: visible;
48
49
  isolation: isolate;
49
50
  }
@@ -57,7 +58,7 @@
57
58
  border-radius: 50%;
58
59
  background: ${u};
59
60
  box-shadow: 0 0 0 0 ${u};
60
- animation: mushi-pulse 2.4s ${L} infinite;
61
+ animation: mushi-pulse 2.4s ${$} infinite;
61
62
  }
62
63
  .mushi-trigger:hover {
63
64
  transform: translateY(-2px) rotate(-1.5deg);
@@ -87,26 +88,26 @@
87
88
  100% { box-shadow: 0 0 0 0 rgba(212, 67, 50, 0), 0 1px 0 ${m}, 0 10px 24px -14px rgba(14,13,11,0.45); }
88
89
  }
89
90
  .mushi-trigger-pulse {
90
- animation: mushi-trigger-pulse 800ms ${L} 3;
91
+ animation: mushi-trigger-pulse 800ms ${$} 3;
91
92
  }
92
93
  @media (prefers-reduced-motion: reduce) {
93
94
  .mushi-trigger-pulse { animation: none; }
94
95
  }
95
96
  .mushi-trigger.bottom-right {
96
- bottom: var(--mushi-bottom, calc(${T}px + env(safe-area-inset-bottom, 0px)));
97
- right: var(--mushi-right, calc(${T}px + env(safe-area-inset-right, 0px)));
97
+ bottom: var(--mushi-bottom, calc(${M}px + env(safe-area-inset-bottom, 0px)));
98
+ right: var(--mushi-right, calc(${M}px + env(safe-area-inset-right, 0px)));
98
99
  }
99
100
  .mushi-trigger.bottom-left {
100
- bottom: var(--mushi-bottom, calc(${T}px + env(safe-area-inset-bottom, 0px)));
101
- left: var(--mushi-left, calc(${T}px + env(safe-area-inset-left, 0px)));
101
+ bottom: var(--mushi-bottom, calc(${M}px + env(safe-area-inset-bottom, 0px)));
102
+ left: var(--mushi-left, calc(${M}px + env(safe-area-inset-left, 0px)));
102
103
  }
103
104
  .mushi-trigger.top-right {
104
- top: var(--mushi-top, calc(${T}px + env(safe-area-inset-top, 0px)));
105
- right: var(--mushi-right, calc(${T}px + env(safe-area-inset-right, 0px)));
105
+ top: var(--mushi-top, calc(${M}px + env(safe-area-inset-top, 0px)));
106
+ right: var(--mushi-right, calc(${M}px + env(safe-area-inset-right, 0px)));
106
107
  }
107
108
  .mushi-trigger.top-left {
108
- top: var(--mushi-top, calc(${T}px + env(safe-area-inset-top, 0px)));
109
- left: var(--mushi-left, calc(${T}px + env(safe-area-inset-left, 0px)));
109
+ top: var(--mushi-top, calc(${M}px + env(safe-area-inset-top, 0px)));
110
+ left: var(--mushi-left, calc(${M}px + env(safe-area-inset-left, 0px)));
110
111
  }
111
112
  .mushi-trigger.edge-tab {
112
113
  width: ${q}px;
@@ -176,7 +177,7 @@
176
177
  .mushi-panel {
177
178
  position: fixed;
178
179
  width: ${pe}px;
179
- max-width: calc(100vw - ${hs.wide}px);
180
+ max-width: calc(100vw - ${ys.wide}px);
180
181
  max-height: min(${Ne}px, calc(100dvh - 120px - var(--mushi-keyboard-inset, 0px)));
181
182
  background: ${o};
182
183
  border: 1px solid ${b};
@@ -210,26 +211,26 @@
210
211
  bottom: calc(var(--mushi-keyboard-inset, 0px) + 4px) !important;
211
212
  }
212
213
  }
213
- .mushi-panel.open { animation: mushi-stamp-in 320ms ${L} both; }
214
+ .mushi-panel.open { animation: mushi-stamp-in 320ms ${$} both; }
214
215
  .mushi-panel.closed { display: none; }
215
216
  .mushi-panel.bottom-right {
216
- bottom: var(--mushi-panel-bottom, calc(var(--mushi-bottom, ${T}px) + ${te}px));
217
- right: var(--mushi-right, calc(${T}px + env(safe-area-inset-right, 0px)));
217
+ bottom: var(--mushi-panel-bottom, calc(var(--mushi-bottom, ${M}px) + ${te}px));
218
+ right: var(--mushi-right, calc(${M}px + env(safe-area-inset-right, 0px)));
218
219
  --mushi-origin: bottom right;
219
220
  }
220
221
  .mushi-panel.bottom-left {
221
- bottom: var(--mushi-panel-bottom, calc(var(--mushi-bottom, ${T}px) + ${te}px));
222
- left: var(--mushi-left, calc(${T}px + env(safe-area-inset-left, 0px)));
222
+ bottom: var(--mushi-panel-bottom, calc(var(--mushi-bottom, ${M}px) + ${te}px));
223
+ left: var(--mushi-left, calc(${M}px + env(safe-area-inset-left, 0px)));
223
224
  --mushi-origin: bottom left;
224
225
  }
225
226
  .mushi-panel.top-right {
226
- top: var(--mushi-panel-top, calc(var(--mushi-top, ${T}px) + ${te}px));
227
- right: var(--mushi-right, calc(${T}px + env(safe-area-inset-right, 0px)));
227
+ top: var(--mushi-panel-top, calc(var(--mushi-top, ${M}px) + ${te}px));
228
+ right: var(--mushi-right, calc(${M}px + env(safe-area-inset-right, 0px)));
228
229
  --mushi-origin: top right;
229
230
  }
230
231
  .mushi-panel.top-left {
231
- top: var(--mushi-panel-top, calc(var(--mushi-top, ${T}px) + ${te}px));
232
- left: var(--mushi-left, calc(${T}px + env(safe-area-inset-left, 0px)));
232
+ top: var(--mushi-panel-top, calc(var(--mushi-top, ${M}px) + ${te}px));
233
+ left: var(--mushi-left, calc(${M}px + env(safe-area-inset-left, 0px)));
233
234
  --mushi-origin: top left;
234
235
  }
235
236
  .mushi-outdated {
@@ -244,7 +245,7 @@
244
245
  }
245
246
  .mushi-outdated strong {
246
247
  display: block;
247
- font-family: ${_};
248
+ font-family: ${P};
248
249
  font-size: 10px;
249
250
  letter-spacing: 0.12em;
250
251
  text-transform: uppercase;
@@ -253,7 +254,7 @@
253
254
  .mushi-outdated span {
254
255
  display: block;
255
256
  margin-top: 3px;
256
- color: ${a};
257
+ color: ${l};
257
258
  }
258
259
 
259
260
  @keyframes mushi-stamp-in {
@@ -294,11 +295,11 @@
294
295
  gap: 2px;
295
296
  }
296
297
  .mushi-header-eyebrow {
297
- font-family: ${_};
298
+ font-family: ${P};
298
299
  font-size: 10px;
299
300
  letter-spacing: 0.18em;
300
301
  text-transform: uppercase;
301
- color: ${a};
302
+ color: ${l};
302
303
  }
303
304
  .mushi-header h3 {
304
305
  font-family: ${V};
@@ -315,9 +316,9 @@
315
316
  gap: 6px;
316
317
  }
317
318
  .mushi-step-counter {
318
- font-family: ${_};
319
+ font-family: ${P};
319
320
  font-size: 11px;
320
- color: ${a};
321
+ color: ${l};
321
322
  letter-spacing: 0.06em;
322
323
  tab-size: 2ch;
323
324
  padding-top: 2px;
@@ -331,12 +332,12 @@
331
332
  border: none;
332
333
  cursor: pointer;
333
334
  padding: 2px 4px;
334
- color: ${a};
335
+ color: ${l};
335
336
  font-family: ${O};
336
337
  font-size: 16px;
337
338
  line-height: 1;
338
339
  border-radius: 0;
339
- transition: color 150ms ${L};
340
+ transition: color 150ms ${$};
340
341
  }
341
342
  .mushi-back {
342
343
  align-self: flex-start;
@@ -346,8 +347,8 @@
346
347
  padding: 3px 0;
347
348
  margin: 0 0 2px;
348
349
  min-height: 22px;
349
- color: ${a};
350
- font-family: ${_};
350
+ color: ${l};
351
+ font-family: ${P};
351
352
  font-size: 11px;
352
353
  font-weight: 500;
353
354
  letter-spacing: 0.06em;
@@ -357,7 +358,7 @@
357
358
  display: inline-flex;
358
359
  align-items: center;
359
360
  gap: 4px;
360
- transition: color 150ms ${L};
361
+ transition: color 150ms ${$};
361
362
  white-space: nowrap;
362
363
  }
363
364
  .mushi-close:hover { color: ${u}; }
@@ -382,10 +383,10 @@
382
383
  overflow-y: auto;
383
384
  flex: 1;
384
385
  scrollbar-width: thin;
385
- scrollbar-color: ${h} transparent;
386
+ scrollbar-color: ${p} transparent;
386
387
  }
387
388
  .mushi-body::-webkit-scrollbar { width: 6px; }
388
- .mushi-body::-webkit-scrollbar-thumb { background: ${h}; border-radius: 3px; }
389
+ .mushi-body::-webkit-scrollbar-thumb { background: ${p}; border-radius: 3px; }
389
390
 
390
391
  .mushi-option-btn {
391
392
  display: grid;
@@ -400,7 +401,7 @@
400
401
  cursor: pointer;
401
402
  color: inherit;
402
403
  text-align: left;
403
- transition: padding 220ms ${L}, color 220ms ${L};
404
+ transition: padding 220ms ${$}, color 220ms ${$};
404
405
  position: relative;
405
406
  }
406
407
  .mushi-option-btn:last-child { border-bottom: none; }
@@ -427,16 +428,16 @@
427
428
  }
428
429
  .mushi-option-desc {
429
430
  font-size: 12px;
430
- color: ${a};
431
+ color: ${l};
431
432
  letter-spacing: 0.005em;
432
433
  }
433
434
  .mushi-option-arrow {
434
- font-family: ${_};
435
+ font-family: ${P};
435
436
  font-size: 14px;
436
- color: ${h};
437
+ color: ${p};
437
438
  opacity: 0;
438
439
  transform: translateX(-4px);
439
- transition: opacity 220ms ${L}, transform 220ms ${L}, color 220ms ${L};
440
+ transition: opacity 220ms ${$}, transform 220ms ${$}, color 220ms ${$};
440
441
  }
441
442
  /* Feature-request and Reports-inbox entries sit above the five
442
443
  category cards as discoverable shortcuts. We give them a subtle
@@ -446,8 +447,8 @@
446
447
  .mushi-feature-entry,
447
448
  .mushi-reports-entry {
448
449
  padding-left: 10px;
449
- border-left: 2px solid ${h};
450
- transition: padding 220ms ${L}, color 220ms ${L}, border-color 220ms ${L};
450
+ border-left: 2px solid ${p};
451
+ transition: padding 220ms ${$}, color 220ms ${$}, border-color 220ms ${$};
451
452
  }
452
453
  .mushi-feature-entry:hover,
453
454
  .mushi-reports-entry:hover {
@@ -470,7 +471,7 @@
470
471
  color: ${i};
471
472
  cursor: pointer;
472
473
  text-align: left;
473
- transition: background 180ms ${L}, padding-left 180ms ${L};
474
+ transition: background 180ms ${$}, padding-left 180ms ${$};
474
475
  }
475
476
  .mushi-report-row:hover,
476
477
  .mushi-report-row:focus-visible {
@@ -499,7 +500,7 @@
499
500
  .mushi-report-status {
500
501
  display: inline-flex;
501
502
  align-items: center;
502
- font-family: ${_};
503
+ font-family: ${P};
503
504
  font-size: 10px;
504
505
  font-weight: 600;
505
506
  letter-spacing: 0.04em;
@@ -530,14 +531,14 @@
530
531
  }
531
532
  .mushi-status-closed,
532
533
  .mushi-status-unknown {
533
- color: ${a};
534
+ color: ${l};
534
535
  background: ${j};
535
536
  border-color: ${b};
536
537
  }
537
538
  .mushi-report-when {
538
- font-family: ${_};
539
+ font-family: ${P};
539
540
  font-size: 10px;
540
- color: ${h};
541
+ color: ${p};
541
542
  }
542
543
  .mushi-unread-badge {
543
544
  display: inline-flex;
@@ -547,7 +548,7 @@
547
548
  height: 18px;
548
549
  padding: 0 5px;
549
550
  border-radius: 999px;
550
- font-family: ${_};
551
+ font-family: ${P};
551
552
  font-size: 10px;
552
553
  font-weight: 700;
553
554
  color: ${v};
@@ -556,8 +557,8 @@
556
557
  .mushi-report-chevron {
557
558
  font-size: 18px;
558
559
  line-height: 1;
559
- color: ${h};
560
- transition: color 180ms ${L}, transform 180ms ${L};
560
+ color: ${p};
561
+ transition: color 180ms ${$}, transform 180ms ${$};
561
562
  }
562
563
  .mushi-report-row:hover .mushi-report-chevron,
563
564
  .mushi-report-row:focus-visible .mushi-report-chevron {
@@ -594,7 +595,7 @@
594
595
  }
595
596
  .mushi-thread-comment strong {
596
597
  display: block;
597
- font-family: ${_};
598
+ font-family: ${P};
598
599
  font-size: 10px;
599
600
  letter-spacing: 0.04em;
600
601
  margin-bottom: 3px;
@@ -603,7 +604,7 @@
603
604
  .mushi-muted,
604
605
  .mushi-error-inline {
605
606
  font-size: 12px;
606
- color: ${a};
607
+ color: ${l};
607
608
  line-height: 1.45;
608
609
  }
609
610
  .mushi-error-inline { color: ${u}; }
@@ -643,16 +644,16 @@
643
644
  border: 1px solid ${m};
644
645
  border-radius: 12px;
645
646
  background: transparent;
646
- color: ${a};
647
+ color: ${l};
647
648
  font-family: ${O};
648
649
  font-size: 11px;
649
650
  cursor: pointer;
650
- transition: color 150ms ${L}, border-color 150ms ${L}, background 150ms ${L};
651
+ transition: color 150ms ${$}, border-color 150ms ${$}, background 150ms ${$};
651
652
  white-space: nowrap;
652
653
  }
653
654
  .mushi-example-chip:hover {
654
655
  color: ${i};
655
- border-color: ${a};
656
+ border-color: ${l};
656
657
  background: ${s?"rgba(242,235,221,0.06)":"rgba(14,13,11,0.04)"};
657
658
  }
658
659
  .mushi-example-chip:focus-visible {
@@ -668,12 +669,12 @@
668
669
  position: absolute;
669
670
  bottom: 4px;
670
671
  right: 0;
671
- font-family: ${_};
672
+ font-family: ${P};
672
673
  font-size: 10px;
673
674
  letter-spacing: 0.04em;
674
- color: ${h};
675
+ color: ${p};
675
676
  pointer-events: none;
676
- transition: color 200ms ${L};
677
+ transition: color 200ms ${$};
677
678
  }
678
679
 
679
680
  .mushi-textarea {
@@ -689,10 +690,10 @@
689
690
  line-height: 1.5;
690
691
  resize: vertical;
691
692
  outline: none;
692
- transition: border-color 200ms ${L};
693
+ transition: border-color 200ms ${$};
693
694
  }
694
695
  .mushi-textarea::placeholder {
695
- color: ${h};
696
+ color: ${p};
696
697
  font-style: italic;
697
698
  }
698
699
  .mushi-textarea:focus { border-bottom-color: ${u}; }
@@ -711,13 +712,13 @@
711
712
  border: 1px solid ${b};
712
713
  border-radius: 3px;
713
714
  background: transparent;
714
- color: ${a};
715
- font-family: ${_};
715
+ color: ${l};
716
+ font-family: ${P};
716
717
  font-size: 11px;
717
718
  letter-spacing: 0.04em;
718
719
  text-transform: uppercase;
719
720
  cursor: pointer;
720
- transition: color 180ms ${L}, border-color 180ms ${L}, background 180ms ${L};
721
+ transition: color 180ms ${$}, border-color 180ms ${$}, background 180ms ${$};
721
722
  }
722
723
  .mushi-attach-btn:hover {
723
724
  color: ${i};
@@ -775,8 +776,8 @@
775
776
  }
776
777
  .mushi-screenshot-hint {
777
778
  margin: 0;
778
- color: ${a};
779
- font-family: ${_};
779
+ color: ${l};
780
+ font-family: ${P};
780
781
  font-size: 10.5px;
781
782
  line-height: 1.4;
782
783
  letter-spacing: 0.02em;
@@ -784,7 +785,7 @@
784
785
  .mushi-identified-user {
785
786
  margin: 8px 0 0;
786
787
  font-size: 11.5px;
787
- color: ${a};
788
+ color: ${l};
788
789
  line-height: 1.4;
789
790
  }
790
791
  .mushi-identified-user strong {
@@ -823,11 +824,11 @@
823
824
  gap: 12px;
824
825
  }
825
826
  .mushi-footer-hint {
826
- font-family: ${_};
827
+ font-family: ${P};
827
828
  font-size: 10px;
828
829
  letter-spacing: 0.10em;
829
830
  text-transform: uppercase;
830
- color: ${h};
831
+ color: ${p};
831
832
  }
832
833
  .mushi-submit {
833
834
  position: relative;
@@ -839,14 +840,14 @@
839
840
  border-radius: 3px;
840
841
  background: ${u};
841
842
  color: ${w};
842
- font-family: ${_};
843
+ font-family: ${P};
843
844
  font-size: 11px;
844
845
  letter-spacing: 0.16em;
845
846
  text-transform: uppercase;
846
847
  cursor: pointer;
847
848
  overflow: hidden;
848
- transition: transform 180ms ${L}, box-shadow 180ms ${L};
849
- box-shadow: 0 2px 0 ${E};
849
+ transition: transform 180ms ${$}, box-shadow 180ms ${$};
850
+ box-shadow: 0 2px 0 ${k};
850
851
  }
851
852
  .mushi-submit::after {
852
853
  content: '';
@@ -855,15 +856,15 @@
855
856
  background: radial-gradient(circle at center, rgba(255,255,255,0.35) 0%, transparent 60%);
856
857
  opacity: 0;
857
858
  transform: scale(0.4);
858
- transition: opacity 280ms ${L}, transform 380ms ${L};
859
+ transition: opacity 280ms ${$}, transform 380ms ${$};
859
860
  pointer-events: none;
860
861
  }
861
862
  .mushi-submit:hover {
862
863
  transform: translateY(-1px);
863
- box-shadow: 0 3px 0 ${E};
864
+ box-shadow: 0 3px 0 ${k};
864
865
  }
865
866
  .mushi-submit:hover::after { opacity: 1; transform: scale(1.4); }
866
- .mushi-submit:active { transform: translateY(1px); box-shadow: 0 1px 0 ${E}; }
867
+ .mushi-submit:active { transform: translateY(1px); box-shadow: 0 1px 0 ${k}; }
867
868
  .mushi-submit:disabled {
868
869
  cursor: wait;
869
870
  opacity: 0.7;
@@ -874,15 +875,15 @@
874
875
  }
875
876
  .mushi-submit-arrow {
876
877
  display: inline-block;
877
- transition: transform 220ms ${L};
878
+ transition: transform 220ms ${$};
878
879
  }
879
880
  .mushi-submit:hover .mushi-submit-arrow { transform: translateX(3px); }
880
881
 
881
882
  .mushi-brand-footer {
882
883
  padding: 9px 14px 11px;
883
884
  border-top: 1px solid ${m};
884
- color: ${h};
885
- font-family: ${_};
885
+ color: ${p};
886
+ font-family: ${P};
886
887
  font-size: 9px;
887
888
  letter-spacing: 0.16em;
888
889
  text-align: center;
@@ -895,8 +896,8 @@
895
896
  justify-content: center;
896
897
  gap: 8px;
897
898
  padding: 10px 22px 14px;
898
- color: ${h};
899
- font-family: ${_};
899
+ color: ${p};
900
+ font-family: ${P};
900
901
  font-size: 11px;
901
902
  letter-spacing: 0.10em;
902
903
  }
@@ -904,9 +905,9 @@
904
905
  display: inline-flex;
905
906
  align-items: baseline;
906
907
  gap: 4px;
907
- transition: color 200ms ${L};
908
+ transition: color 200ms ${$};
908
909
  }
909
- .mushi-step-num.done { color: ${a}; text-decoration: line-through; text-decoration-color: ${h}; }
910
+ .mushi-step-num.done { color: ${l}; text-decoration: line-through; text-decoration-color: ${p}; }
910
911
  .mushi-step-num.active {
911
912
  color: ${u};
912
913
  font-family: ${V};
@@ -943,7 +944,7 @@
943
944
  stroke-dashoffset: 280;
944
945
  transform: rotate(-90deg);
945
946
  transform-origin: center;
946
- animation: mushi-stamp-ring 700ms ${L} 80ms forwards;
947
+ animation: mushi-stamp-ring 700ms ${$} 80ms forwards;
947
948
  }
948
949
  .mushi-success-stamp-label {
949
950
  font-family: ${V};
@@ -953,7 +954,7 @@
953
954
  letter-spacing: 0.04em;
954
955
  transform: rotate(-6deg);
955
956
  opacity: 0;
956
- animation: mushi-stamp-press 360ms ${L} 600ms forwards;
957
+ animation: mushi-stamp-press 360ms ${$} 600ms forwards;
957
958
  }
958
959
  .mushi-success-headline {
959
960
  font-family: ${V};
@@ -963,11 +964,11 @@
963
964
  margin-bottom: 4px;
964
965
  }
965
966
  .mushi-success-meta {
966
- font-family: ${_};
967
+ font-family: ${P};
967
968
  font-size: 11px;
968
969
  letter-spacing: 0.10em;
969
970
  text-transform: uppercase;
970
- color: ${a};
971
+ color: ${l};
971
972
  }
972
973
 
973
974
  /* \u2500\u2500 Two-way receipt (success step) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
@@ -989,15 +990,15 @@
989
990
  align-items: center;
990
991
  justify-content: center;
991
992
  gap: 8px;
992
- font-family: ${_};
993
+ font-family: ${P};
993
994
  font-size: 11px;
994
995
  letter-spacing: 0.05em;
995
- color: ${a};
996
+ color: ${l};
996
997
  }
997
998
  .mushi-success-receipt-label {
998
999
  text-transform: uppercase;
999
1000
  letter-spacing: 0.10em;
1000
- color: ${a};
1001
+ color: ${l};
1001
1002
  }
1002
1003
  .mushi-success-receipt-id {
1003
1004
  display: inline-flex;
@@ -1008,7 +1009,7 @@
1008
1009
  background: transparent;
1009
1010
  border: 1px dashed ${m};
1010
1011
  color: inherit;
1011
- font-family: ${_};
1012
+ font-family: ${P};
1012
1013
  font-size: 12px;
1013
1014
  letter-spacing: 0.02em;
1014
1015
  cursor: pointer;
@@ -1033,8 +1034,8 @@
1033
1034
  padding: 6px 10px;
1034
1035
  border-radius: 4px;
1035
1036
  background: ${u};
1036
- color: ${P};
1037
- font-family: ${_};
1037
+ color: ${A};
1038
+ font-family: ${P};
1038
1039
  font-size: 11px;
1039
1040
  letter-spacing: 0.10em;
1040
1041
  text-transform: uppercase;
@@ -1058,7 +1059,7 @@
1058
1059
  to { transform: rotate(360deg); }
1059
1060
  }
1060
1061
  .mushi-success-receipt-hint {
1061
- color: ${a};
1062
+ color: ${l};
1062
1063
  font-style: italic;
1063
1064
  }
1064
1065
  .mushi-success-receipt-warn {
@@ -1068,7 +1069,7 @@
1068
1069
  display: block;
1069
1070
  margin: 12px auto 0;
1070
1071
  font-size: 12px;
1071
- font-family: ${_};
1072
+ font-family: ${P};
1072
1073
  color: ${u};
1073
1074
  text-decoration: underline;
1074
1075
  text-underline-offset: 2px;
@@ -1084,7 +1085,7 @@
1084
1085
  font-size: 12px;
1085
1086
  line-height: 1.45;
1086
1087
  text-align: center;
1087
- color: ${a};
1088
+ color: ${l};
1088
1089
  max-width: 260px;
1089
1090
  }
1090
1091
  .mushi-success-sla-default {
@@ -1106,7 +1107,7 @@
1106
1107
  border-left: 2px solid ${u};
1107
1108
  color: ${u};
1108
1109
  font-size: 12px;
1109
- font-family: ${_};
1110
+ font-family: ${P};
1110
1111
  letter-spacing: 0.02em;
1111
1112
  }
1112
1113
 
@@ -1129,20 +1130,20 @@
1129
1130
  flex-shrink: 0;
1130
1131
  }
1131
1132
  .mushi-rewards-tier-name {
1132
- font-family: ${_};
1133
+ font-family: ${P};
1133
1134
  font-size: 11px;
1134
1135
  letter-spacing: 0.08em;
1135
1136
  text-transform: uppercase;
1136
1137
  color: ${i};
1137
1138
  }
1138
1139
  .mushi-rewards-pts-count {
1139
- font-family: ${_};
1140
+ font-family: ${P};
1140
1141
  font-size: 11px;
1141
- color: ${a};
1142
+ color: ${l};
1142
1143
  margin-right: auto;
1143
1144
  }
1144
1145
  .mushi-rewards-pts-earn {
1145
- font-family: ${_};
1146
+ font-family: ${P};
1146
1147
  font-size: 10px;
1147
1148
  color: ${u};
1148
1149
  letter-spacing: 0.04em;
@@ -1159,12 +1160,12 @@
1159
1160
  height: 100%;
1160
1161
  background: ${u};
1161
1162
  border-radius: 2px;
1162
- transition: width 600ms ${L};
1163
+ transition: width 600ms ${$};
1163
1164
  }
1164
1165
  .mushi-rewards-next-label {
1165
- font-family: ${_};
1166
+ font-family: ${P};
1166
1167
  font-size: 10px;
1167
- color: ${a};
1168
+ color: ${l};
1168
1169
  text-align: right;
1169
1170
  letter-spacing: 0.02em;
1170
1171
  }
@@ -1177,7 +1178,7 @@
1177
1178
  width: 100%;
1178
1179
  }
1179
1180
  .mushi-success-pts-award {
1180
- font-family: ${_};
1181
+ font-family: ${P};
1181
1182
  font-size: 22px;
1182
1183
  font-weight: 700;
1183
1184
  color: ${u};
@@ -1185,7 +1186,7 @@
1185
1186
  letter-spacing: 0.06em;
1186
1187
  margin-bottom: 10px;
1187
1188
  opacity: 0;
1188
- animation: mushi-pts-pop 420ms ${L} 900ms forwards;
1189
+ animation: mushi-pts-pop 420ms ${$} 900ms forwards;
1189
1190
  }
1190
1191
  .success-bar { margin: 0 0 5px; }
1191
1192
 
@@ -1224,7 +1225,7 @@
1224
1225
  border-radius: 3px;
1225
1226
  background: ${u};
1226
1227
  color: ${w};
1227
- font-family: ${_};
1228
+ font-family: ${P};
1228
1229
  font-size: 9px;
1229
1230
  font-weight: 700;
1230
1231
  letter-spacing: 0.14em;
@@ -1236,14 +1237,14 @@
1236
1237
 
1237
1238
  .mushi-beta-msg {
1238
1239
  font-size: 11px;
1239
- color: ${a};
1240
+ color: ${l};
1240
1241
  line-height: 1.45;
1241
1242
  }
1242
1243
 
1243
1244
  .mushi-beta-contact-hint {
1244
1245
  font-size: 10px;
1245
- color: ${h};
1246
- font-family: ${_};
1246
+ color: ${p};
1247
+ font-family: ${P};
1247
1248
  letter-spacing: 0.06em;
1248
1249
  }
1249
1250
 
@@ -1270,7 +1271,7 @@
1270
1271
 
1271
1272
  .mushi-changelog-summary {
1272
1273
  font-size: 11px;
1273
- color: ${p};
1274
+ color: ${h};
1274
1275
  cursor: pointer;
1275
1276
  list-style: none;
1276
1277
  display: flex;
@@ -1301,7 +1302,7 @@
1301
1302
 
1302
1303
  .mushi-changelog-list li {
1303
1304
  font-size: 11px;
1304
- color: ${p};
1305
+ color: ${h};
1305
1306
  line-height: 1.5;
1306
1307
  }
1307
1308
 
@@ -1348,13 +1349,13 @@
1348
1349
  justify-content: center;
1349
1350
  gap: 10px;
1350
1351
  padding: 0 calc(16px + env(safe-area-inset-right, 0px)) 0 calc(16px + env(safe-area-inset-left, 0px));
1351
- font-family: ${_};
1352
+ font-family: ${P};
1352
1353
  font-size: 12px;
1353
1354
  letter-spacing: 0.04em;
1354
1355
  white-space: nowrap;
1355
1356
  overflow: hidden;
1356
1357
  z-index: var(--mushi-banner-z, ${ee});
1357
- animation: mushi-banner-slide-in 0.3s ${L} both;
1358
+ animation: mushi-banner-slide-in 0.3s ${$} both;
1358
1359
  }
1359
1360
 
1360
1361
  .mushi-banner.top { top: 0; padding-top: env(safe-area-inset-top, 0px); }
@@ -1363,16 +1364,16 @@
1363
1364
  /* --- neon variant (electric lime \u2014 dev / beta tool aesthetic) --- */
1364
1365
  .mushi-banner.neon {
1365
1366
  background: ${y};
1366
- color: ${k};
1367
- border-bottom: 1.5px solid ${R};
1367
+ color: ${E};
1368
+ border-bottom: 1.5px solid ${C};
1368
1369
  }
1369
1370
  .mushi-banner.neon.bottom {
1370
- border-top: 1.5px solid ${R};
1371
+ border-top: 1.5px solid ${C};
1371
1372
  border-bottom: none;
1372
1373
  }
1373
1374
  .mushi-banner.neon .mushi-banner-btn {
1374
1375
  background: rgba(0,0,0,0.14);
1375
- color: ${k};
1376
+ color: ${E};
1376
1377
  border: 1px solid rgba(0,0,0,0.22);
1377
1378
  }
1378
1379
  .mushi-banner.neon .mushi-banner-btn:hover {
@@ -1382,7 +1383,7 @@
1382
1383
  /* --- brand variant (widgetAccent \u2014 editorial, app-quality) --- */
1383
1384
  .mushi-banner.brand {
1384
1385
  background: ${u};
1385
- color: ${P};
1386
+ color: ${A};
1386
1387
  border-bottom: 1.5px solid ${x};
1387
1388
  }
1388
1389
  .mushi-banner.brand.bottom {
@@ -1391,7 +1392,7 @@
1391
1392
  }
1392
1393
  .mushi-banner.brand .mushi-banner-btn {
1393
1394
  background: rgba(255,255,255,0.18);
1394
- color: ${P};
1395
+ color: ${A};
1395
1396
  border: 1px solid rgba(255,255,255,0.32);
1396
1397
  }
1397
1398
  .mushi-banner.brand .mushi-banner-btn:hover {
@@ -1575,7 +1576,7 @@
1575
1576
  border: none;
1576
1577
  cursor: pointer;
1577
1578
  font-size: 11px;
1578
- font-family: ${_};
1579
+ font-family: ${P};
1579
1580
  opacity: 0.75;
1580
1581
  color: inherit;
1581
1582
  padding: 2px 6px;
@@ -1620,11 +1621,11 @@
1620
1621
  .mushi-community-btn{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
1621
1622
  .mushi-section-label{
1622
1623
  margin:0 0 6px;
1623
- font-family:${_};
1624
+ font-family:${P};
1624
1625
  font-size:11px;
1625
1626
  letter-spacing:0.06em;
1626
1627
  text-transform:uppercase;
1627
- color:${h};
1628
+ color:${p};
1628
1629
  }
1629
1630
  .mushi-more-nav{margin-top:4px}
1630
1631
  .mushi-more-nav-panel{display:flex;flex-direction:column;gap:0;border-top:1px dashed ${m};padding-top:2px}
@@ -1640,21 +1641,21 @@
1640
1641
  border-top: 1px dashed ${m};
1641
1642
  background: transparent;
1642
1643
  cursor: pointer;
1643
- color: ${a};
1644
+ color: ${l};
1644
1645
  font-family: ${O};
1645
1646
  font-size: 13px;
1646
1647
  text-align: left;
1647
- transition: color 180ms ${L};
1648
+ transition: color 180ms ${$};
1648
1649
  }
1649
1650
  .mushi-more-toggle:hover { color: ${u}; }
1650
1651
  .mushi-more-toggle:hover .mushi-more-toggle-arrow { transform: translateX(3px); }
1651
1652
  .mushi-more-toggle-text { flex: 1; }
1652
1653
  .mushi-more-toggle-count {
1653
- font-family: ${_};
1654
+ font-family: ${P};
1654
1655
  font-size: 10px;
1655
1656
  letter-spacing: 0.08em;
1656
1657
  text-transform: uppercase;
1657
- color: ${h};
1658
+ color: ${p};
1658
1659
  background: ${s?"rgba(255,255,255,0.07)":"rgba(0,0,0,0.06)"};
1659
1660
  padding: 2px 6px;
1660
1661
  border-radius: 10px;
@@ -1662,7 +1663,7 @@
1662
1663
  .mushi-more-toggle-arrow {
1663
1664
  font-size: 14px;
1664
1665
  opacity: 0.5;
1665
- transition: transform 180ms ${L};
1666
+ transition: transform 180ms ${$};
1666
1667
  }
1667
1668
  /* \u2500\u2500 Step slide-in \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1668
1669
  @keyframes mushi-step-in {
@@ -1679,7 +1680,7 @@
1679
1680
  .mushi-categories-expanded {
1680
1681
  animation: mushi-step-in 180ms ease both;
1681
1682
  }
1682
- .mushi-link-btn{background:none;border:none;padding:4px 2px;cursor:pointer;color:${u};font-size:12px;font-family:${_};text-decoration:underline;text-underline-offset:2px}
1683
+ .mushi-link-btn{background:none;border:none;padding:4px 2px;cursor:pointer;color:${u};font-size:12px;font-family:${P};text-decoration:underline;text-underline-offset:2px}
1683
1684
  .mushi-link-btn:hover{opacity:0.8}
1684
1685
  .mushi-link-btn:focus-visible,.mushi-nav-item:focus-visible{outline:2px solid ${u};outline-offset:2px;border-radius:2px}
1685
1686
  .mushi-nav-item{display:block;width:100%;text-align:left;background:${s?"rgba(255,255,255,0.05)":"rgba(0,0,0,0.04)"};border:1px solid ${s?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.08)"};border-radius:8px;padding:10px 14px;margin-bottom:8px;cursor:pointer;font-size:13px;color:${i};transition:background .15s,border-color .15s}
@@ -1688,13 +1689,13 @@
1688
1689
  .mushi-account-avatar{width:40px;height:40px;border-radius:50%;background:${f};color:${v};display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;flex-shrink:0}
1689
1690
  .mushi-account-info{display:flex;flex-direction:column;gap:2px;min-width:0}
1690
1691
  .mushi-account-info strong{font:700 14px/1.3 inherit;color:${i}}
1691
- .mushi-account-rank,.mushi-xapp-app-name,.mushi-label{font-size:12px;color:${p};font-family:${_}}
1692
+ .mushi-account-rank,.mushi-xapp-app-name,.mushi-label{font-size:12px;color:${h};font-family:${P}}
1692
1693
  .mushi-account-rank{display:block}
1693
1694
  .mushi-xapp-app-head{display:flex;align-items:center;gap:8px;margin:0 0 6px}
1694
1695
  .mushi-xapp-app-name{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;margin:0}
1695
- .mushi-app-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;border:1px solid ${s?"rgba(255,255,255,0.12)":"rgba(0,0,0,0.1)"};background:${l};overflow:hidden;flex-shrink:0}
1696
+ .mushi-app-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;border:1px solid ${s?"rgba(255,255,255,0.12)":"rgba(0,0,0,0.1)"};background:${a};overflow:hidden;flex-shrink:0}
1696
1697
  .mushi-app-icon-img{display:block;width:16px;height:16px;object-fit:contain}
1697
- .mushi-app-icon-initials{font-size:9px;font-weight:700;color:${p};line-height:1}
1698
+ .mushi-app-icon-initials{font-size:9px;font-weight:700;color:${h};line-height:1}
1698
1699
  .mushi-app-icon-initials-only{background:${s?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.04)"}}
1699
1700
  .mushi-header-host-icon{display:block;width:20px;height:20px;border-radius:4px;object-fit:contain}
1700
1701
  .mushi-xapp-group{margin-bottom:14px}
@@ -1703,34 +1704,34 @@
1703
1704
  /* \u2500\u2500 Assistant tab (P5) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
1704
1705
  .mushi-assistant{display:flex;flex-direction:column;height:100%;min-height:0;max-height:60vh}
1705
1706
  .mushi-assistant-log{flex:1;min-height:120px;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding:4px 2px 8px}
1706
- .mushi-assistant-greeting{font:400 14px/1.5 ${O};color:${a};padding:6px 2px}
1707
+ .mushi-assistant-greeting{font:400 14px/1.5 ${O};color:${l};padding:6px 2px}
1707
1708
  .mushi-assistant-suggestions{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
1708
1709
  .mushi-assistant-chip{background:${f};color:${v};border:1px solid ${b};border-radius:999px;padding:5px 12px;font-size:12px;cursor:pointer;font-family:${O};transition:background .15s}
1709
1710
  .mushi-assistant-chip:hover{background:${s?"rgba(255,90,71,0.22)":"rgba(224,60,44,0.14)"}}
1710
1711
  .mushi-assistant-chip:focus-visible{outline:2px solid ${u};outline-offset:2px}
1711
1712
  .mushi-assistant-msg{max-width:85%;padding:8px 12px;border-radius:12px;font:400 14px/1.45 ${O};white-space:pre-wrap;word-break:break-word}
1712
- .mushi-assistant-msg-user{align-self:flex-end;background:${u};color:${P};border-bottom-right-radius:4px}
1713
+ .mushi-assistant-msg-user{align-self:flex-end;background:${u};color:${A};border-bottom-right-radius:4px}
1713
1714
  .mushi-assistant-msg-bot{align-self:flex-start;background:${s?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.05)"};color:${i};border-bottom-left-radius:4px}
1714
1715
  .mushi-assistant-thinking{opacity:0.6;font-size:18px;letter-spacing:2px}
1715
- .mushi-assistant-error{align-self:flex-start;color:${C};font-size:12px;padding:4px 2px}
1716
+ .mushi-assistant-error{align-self:flex-start;color:${R};font-size:12px;padding:4px 2px}
1716
1717
  .mushi-assistant-form{display:flex;align-items:flex-end;gap:8px;border-top:1px solid ${m};padding-top:8px}
1717
1718
  .mushi-assistant-input{flex:1;resize:none;max-height:120px;border:1px solid ${b};border-radius:10px;padding:8px 12px;font:400 14px/1.4 ${O};background:${o};color:${i}}
1718
1719
  .mushi-assistant-input:focus-visible{outline:2px solid ${u};outline-offset:1px}
1719
- .mushi-assistant-submit{flex-shrink:0;width:36px;height:36px;border:none;border-radius:50%;background:${u};color:${P};font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .15s,opacity .15s}
1720
+ .mushi-assistant-submit{flex-shrink:0;width:36px;height:36px;border:none;border-radius:50%;background:${u};color:${A};font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .15s,opacity .15s}
1720
1721
  .mushi-assistant-submit:hover{transform:translateY(-1px)}
1721
1722
  .mushi-assistant-submit:disabled{opacity:0.5;cursor:default;transform:none}
1722
1723
  .mushi-assistant-submit:focus-visible{outline:2px solid ${u};outline-offset:2px}
1723
- `}var De="@mushi-mushi/web",fe="1.22.4";var Kt={bug:"\u26A0\uFE0F",slow:"\u{1F40C}",visual:"\u{1F3A8}",confusing:"\u{1F615}",other:"\u{1F4DD}"},Lr="Feature request";function Ir(t){switch(t){case "new":case "queued":case "pending":case "submitted":return "Sent";case "classified":case "triaged":case "grouped":case "dispatched":return "Review";case "fixing":return "Fixing";case "fixed":case "resolved":case "completed":return "Fixed";case "dismissed":return "Closed";default:return t.replace(/_/g," ").slice(0,12)}}function Is(t){switch(t){case "new":case "queued":case "pending":case "submitted":return "Submitted";case "classified":case "triaged":case "grouped":case "dispatched":return "In review";case "fixing":return "Fix in progress";case "fixed":case "resolved":case "completed":return "Fixed \u2014 confirm?";case "verified":return "Verified";case "reopened":return "Reopened";case "dismissed":return "Closed";default:return t.replace(/_/g," ")}}function Gt(t){switch(t){case "new":case "queued":case "pending":case "submitted":return "sent";case "classified":case "triaged":case "grouped":case "dispatched":return "review";case "fixing":return "fixing";case "fixed":case "resolved":case "completed":return "fixed";case "verified":return "fixed";case "reopened":return "fixing";case "dismissed":return "closed";default:return "unknown"}}function Yt(t){let e=Date.parse(t);if(Number.isNaN(e))return "";let r=Date.now()-e;if(r<0)return "just now";let n=Math.floor(r/1e3);if(n<60)return "just now";let s=Math.floor(n/60);if(s<60)return `${s}m ago`;let o=Math.floor(s/60);if(o<24)return `${o}h ago`;let l=Math.floor(o/24);if(l<7)return `${l}d ago`;let i=Math.floor(l/7);return i<5?`${i}w ago`:new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"})}function Ar(t){return t<10?`0${t}`:String(t)}var _r=3,Xt={category:1,intent:2,details:3};function As(t){return (t.metaKey||t.ctrlKey)&&t.key==="Enter"}function g(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function _s(t){let e=t.appDomain??xs({project_slug:t.appSlug??""}),r=g(Ss(t.appName)),n=vs({project_slug:t.appSlug??"",sdk_origin:t.appDomain?`https://${t.appDomain}`:null});return n.length?`<span class="mushi-app-icon" data-mushi-favicon data-candidates="${g(JSON.stringify(n))}" data-initials="${r}" aria-hidden="true" title="${g(e??t.appName)}">
1724
+ `}var De="@mushi-mushi/web",fe="1.23.0";var Kt={bug:"\u26A0\uFE0F",slow:"\u{1F40C}",visual:"\u{1F3A8}",confusing:"\u{1F615}",other:"\u{1F4DD}"},Lr="Feature request";function Ar(t){switch(t){case "new":case "queued":case "pending":case "submitted":return "Sent";case "classified":case "triaged":case "grouped":case "dispatched":return "Review";case "fixing":return "Fixing";case "fixed":case "resolved":case "completed":return "Fixed";case "dismissed":return "Closed";default:return t.replace(/_/g," ").slice(0,12)}}function Ds(t){switch(t){case "new":case "queued":case "pending":case "submitted":return "Submitted";case "classified":case "triaged":case "grouped":case "dispatched":return "In review";case "fixing":return "Fix in progress";case "fixed":case "resolved":case "completed":return "Fixed \u2014 confirm?";case "verified":return "Verified";case "reopened":return "Reopened";case "dismissed":return "Closed";default:return t.replace(/_/g," ")}}function Gt(t){switch(t){case "new":case "queued":case "pending":case "submitted":return "sent";case "classified":case "triaged":case "grouped":case "dispatched":return "review";case "fixing":return "fixing";case "fixed":case "resolved":case "completed":return "fixed";case "verified":return "fixed";case "reopened":return "fixing";case "dismissed":return "closed";default:return "unknown"}}function Yt(t){let e=Date.parse(t);if(Number.isNaN(e))return "";let r=Date.now()-e;if(r<0)return "just now";let n=Math.floor(r/1e3);if(n<60)return "just now";let s=Math.floor(n/60);if(s<60)return `${s}m ago`;let o=Math.floor(s/60);if(o<24)return `${o}h ago`;let a=Math.floor(o/24);if(a<7)return `${a}d ago`;let i=Math.floor(a/7);return i<5?`${i}w ago`:new Date(e).toLocaleDateString(void 0,{month:"short",day:"numeric"})}function _r(t){return t<10?`0${t}`:String(t)}var Pr=3,Xt={category:1,intent:2,details:3};function Os(t){return (t.metaKey||t.ctrlKey)&&t.key==="Enter"}function g(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Bs(t){let e=t.appDomain??Rs({project_slug:t.appSlug??""}),r=g(Ts(t.appName)),n=ks({project_slug:t.appSlug??"",sdk_origin:t.appDomain?`https://${t.appDomain}`:null});return n.length?`<span class="mushi-app-icon" data-mushi-favicon data-candidates="${g(JSON.stringify(n))}" data-initials="${r}" aria-hidden="true" title="${g(e??t.appName)}">
1724
1725
  <img class="mushi-app-icon-img" src="${g(n[0])}" alt="" referrerpolicy="no-referrer" width="16" height="16" />
1725
1726
  <span class="mushi-app-icon-initials" hidden>${r}</span>
1726
- </span>`:`<span class="mushi-app-icon mushi-app-icon-initials-only" aria-hidden="true">${r}</span>`}function Ps(t){t.querySelectorAll("[data-mushi-favicon]").forEach(e=>{let r=e.querySelector(".mushi-app-icon-img"),n=e.querySelector(".mushi-app-icon-initials");if(!r||!n)return;let s=[];try{s=JSON.parse(e.dataset.candidates??"[]");}catch{s=[];}let o=0,l=()=>{o+=1,o<s.length?r.src=s[o]:(r.remove(),n.hidden=false,e.classList.add("mushi-app-icon-initials-only"));};r.onerror=l,r.onload=()=>{ws(r)&&l();};});}function Ds(t){switch(t.step){case "category":return sa(t);case "intent":return ma(t);case "details":return fa(t);case "success":return ga(t);case "reports":return la(t);case "report-detail":return ha(t);case "leaderboard":return ua(t);case "roadmap":return ca(t);case "account":return da(t);case "cross-app-reports":return pa(t);case "assistant":return ta(t)}}function ta(t){let e=t.locale,r=t.callbacks.assistantLabel||e.assistant.defaultLabel,n=t.callbacks.assistantGreeting||e.assistant.defaultGreeting,s=t.callbacks.assistantSuggestions??[],l=t.assistantTurns.length===0?`<div class="mushi-assistant-greeting">${g(n)}</div>
1727
- ${s.length?`<div class="mushi-assistant-suggestions">${s.map(h=>`<button type="button" class="mushi-assistant-chip" data-action="assistant-suggest" data-value="${g(h)}">${g(h)}</button>`).join("")}</div>`:""}`:t.assistantTurns.map(h=>{let p=h.role==="user"?"mushi-assistant-msg-user":"mushi-assistant-msg-bot",m=h.options&&h.options.length?`<div class="mushi-assistant-suggestions">${h.options.map(b=>`<button type="button" class="mushi-assistant-chip" data-action="assistant-suggest" data-value="${g(b)}">${g(b)}</button>`).join("")}</div>`:"";return `<div class="mushi-assistant-msg ${p}">${g(h.text)}</div>${m}`}).join(""),i=t.assistantSending?`<div class="mushi-assistant-msg mushi-assistant-msg-bot mushi-assistant-thinking" role="status" aria-live="polite">${g(e.assistant.thinking)}</div>`:"",a=t.assistantError?`<div class="mushi-assistant-error" role="alert">${g(t.assistantError)}</div>`:"";return `
1727
+ </span>`:`<span class="mushi-app-icon mushi-app-icon-initials-only" aria-hidden="true">${r}</span>`}function Ns(t){t.querySelectorAll("[data-mushi-favicon]").forEach(e=>{let r=e.querySelector(".mushi-app-icon-img"),n=e.querySelector(".mushi-app-icon-initials");if(!r||!n)return;let s=[];try{s=JSON.parse(e.dataset.candidates??"[]");}catch{s=[];}let o=0,a=()=>{o+=1,o<s.length?r.src=s[o]:(r.remove(),n.hidden=false,e.classList.add("mushi-app-icon-initials-only"));};r.onerror=a,r.onload=()=>{Cs(r)&&a();};});}function Fs(t){switch(t.step){case "category":return ga(t);case "intent":return Ca(t);case "details":return Ta(t);case "success":return Ma(t);case "reports":return xa(t);case "report-detail":return Ra(t);case "leaderboard":return Sa(t);case "roadmap":return wa(t);case "account":return Ea(t);case "cross-app-reports":return ka(t);case "assistant":return ha(t)}}function ha(t){let e=t.locale,r=t.callbacks.assistantLabel||e.assistant.defaultLabel,n=t.callbacks.assistantGreeting||e.assistant.defaultGreeting,s=t.callbacks.assistantSuggestions??[],a=t.assistantTurns.length===0?`<div class="mushi-assistant-greeting">${g(n)}</div>
1728
+ ${s.length?`<div class="mushi-assistant-suggestions">${s.map(p=>`<button type="button" class="mushi-assistant-chip" data-action="assistant-suggest" data-value="${g(p)}">${g(p)}</button>`).join("")}</div>`:""}`:t.assistantTurns.map(p=>{let h=p.role==="user"?"mushi-assistant-msg-user":"mushi-assistant-msg-bot",m=p.options&&p.options.length?`<div class="mushi-assistant-suggestions">${p.options.map(b=>`<button type="button" class="mushi-assistant-chip" data-action="assistant-suggest" data-value="${g(b)}">${g(b)}</button>`).join("")}</div>`:"";return `<div class="mushi-assistant-msg ${h}">${g(p.text)}</div>${m}`}).join(""),i=t.assistantSending?`<div class="mushi-assistant-msg mushi-assistant-msg-bot mushi-assistant-thinking" role="status" aria-live="polite">${g(e.assistant.thinking)}</div>`:"",l=t.assistantError?`<div class="mushi-assistant-error" role="alert">${g(t.assistantError)}</div>`:"";return `
1728
1729
  ${ge(t,{title:r,showBack:true})}
1729
1730
  <div class="mushi-assistant">
1730
1731
  <div class="mushi-assistant-log">
1731
- ${l}
1732
- ${i}
1733
1732
  ${a}
1733
+ ${i}
1734
+ ${l}
1734
1735
  </div>
1735
1736
  <form class="mushi-assistant-form" data-action="assistant-send">
1736
1737
  <textarea
@@ -1742,13 +1743,13 @@
1742
1743
  <button type="submit" class="mushi-assistant-submit" ${t.assistantSending?"disabled":""} aria-label="${g(e.assistant.sendAriaLabel)}">\u2191</button>
1743
1744
  </form>
1744
1745
  </div>
1745
- `}function Os(t){if(!t.sdkFreshness||t.config.outdatedBanner==="off"||t.config.outdatedBanner==="console-only")return "";let{latest:e,current:r,deprecated:n,message:s}=t.sdkFreshness;return !e&&!n?"":`
1746
+ `}function qs(t){if(!t.sdkFreshness||t.config.outdatedBanner==="off"||t.config.outdatedBanner==="console-only")return "";let{latest:e,current:r,deprecated:n,message:s}=t.sdkFreshness;return !e&&!n?"":`
1746
1747
  <div class="mushi-outdated" role="status">
1747
1748
  <strong>Mushi SDK ${g(r)}</strong>
1748
1749
  ${e?`latest is ${g(e)}.`:"needs attention."}
1749
1750
  ${s?`<span>${g(s)}</span>`:""}
1750
1751
  </div>
1751
- `}function Bs(t){return t.config.brandFooter===false?"":`<div class="mushi-brand-footer">${g(t.locale.flows.poweredBy.replace("{version}",t.sdkVersion))}</div>`}function ge(t,e){let r=t.locale,{title:n,showBack:s=false,step:o,eyebrow:l}=e,i=s?`<button type="button" class="mushi-back" data-action="back" aria-label="${g(r.widget.back)}">\u2190 ${g(r.widget.back)}</button>`:`<span class="mushi-header-eyebrow">${g(l??"Mushi \xB7 Report")}</span>`,a=o?`<span class="mushi-step-counter" aria-label="Step ${o} of ${_r}"><b>${Ar(o)}</b> / ${Ar(_r)}</span>`:"";return `
1752
+ `}function js(t){return t.config.brandFooter===false?"":`<div class="mushi-brand-footer">${g(t.locale.flows.poweredBy.replace("{version}",t.sdkVersion))}</div>`}function ge(t,e){let r=t.locale,{title:n,showBack:s=false,step:o,eyebrow:a}=e,i=s?`<button type="button" class="mushi-back" data-action="back" aria-label="${g(r.widget.back)}">\u2190 ${g(r.widget.back)}</button>`:`<span class="mushi-header-eyebrow">${g(a??"Mushi \xB7 Report")}</span>`,l=o?`<span class="mushi-step-counter" aria-label="Step ${o} of ${Pr}"><b>${_r(o)}</b> / ${_r(Pr)}</span>`:"";return `
1752
1753
  <div class="mushi-header">
1753
1754
  <div class="mushi-header-mark" aria-hidden="true">${t.pageFaviconHref?`<img class="mushi-header-host-icon" src="${g(t.pageFaviconHref)}" alt="" referrerpolicy="no-referrer" width="20" height="20" />`:"\u866B"}</div>
1754
1755
  <div class="mushi-header-titles">
@@ -1756,14 +1757,14 @@
1756
1757
  <h3>${n}</h3>
1757
1758
  </div>
1758
1759
  <div class="mushi-header-meta">
1759
- ${a}
1760
+ ${l}
1760
1761
  <button type="button" class="mushi-close" data-action="close" aria-label="${g(r.widget.close)}">\u2715</button>
1761
1762
  </div>
1762
1763
  </div>
1763
- `}function ra(t){let e=1;return t.callbacks.onFeatureBoardRequest&&(e+=1),t.callbacks.assistantEnabled&&(e+=1),t.rewardsState&&(e+=1),e+=1,e}function na(t){let e=t.locale,r=e.step1.moreNav,n=ra(t),s=`${e.step1.moreNavLabel} (${n})`,o=t.unreadCount(),l=o?`${r.yourReports} (${o} ${r.unreadNew})`:r.yourReports,i=[`<button type="button" class="mushi-option-btn mushi-reports-entry" data-action="reports">
1764
+ `}function ma(t){let e=1;return t.callbacks.onFeatureBoardRequest&&(e+=1),t.callbacks.assistantEnabled&&(e+=1),t.rewardsState&&(e+=1),e+=1,e}function fa(t){let e=t.locale,r=e.step1.moreNav,n=ma(t),s=`${e.step1.moreNavLabel} (${n})`,o=t.unreadCount(),a=o?`${r.yourReports} (${o} ${r.unreadNew})`:r.yourReports,i=[`<button type="button" class="mushi-option-btn mushi-reports-entry" data-action="reports">
1764
1765
  <span class="mushi-option-icon" aria-hidden="true">\u{1F4EC}</span>
1765
1766
  <div class="mushi-option-text">
1766
- <span class="mushi-option-label">${g(l)}</span>
1767
+ <span class="mushi-option-label">${g(a)}</span>
1767
1768
  <span class="mushi-option-desc">${g(r.yourReportsDesc)}</span>
1768
1769
  </div>
1769
1770
  <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
@@ -1787,7 +1788,7 @@
1787
1788
  <button type="button" class="mushi-link-btn mushi-more-nav-link" data-action="open-leaderboard">\u{1F3C6} ${g(r.leaderboard)}</button>`),i.push(`
1788
1789
  <button type="button" class="mushi-link-btn mushi-more-nav-link" data-action="open-account">
1789
1790
  ${t.testerInfo?`\u{1F464} ${g(t.testerInfo.public_handle??t.testerInfo.display_name??r.myAccount)}`:`\u{1F310} ${g(r.joinCommunity)}`}
1790
- </button>`);let a=t.showMoreNav?`<div class="mushi-more-nav-panel">${i.join("")}</div>`:"";return `
1791
+ </button>`);let l=t.showMoreNav?`<div class="mushi-more-nav-panel">${i.join("")}</div>`:"";return `
1791
1792
  <div class="mushi-more-nav">
1792
1793
  <button
1793
1794
  type="button"
@@ -1798,9 +1799,9 @@
1798
1799
  <span class="mushi-more-toggle-text">${g(s)}</span>
1799
1800
  <span class="mushi-more-toggle-arrow" aria-hidden="true">${t.showMoreNav?"\u25BE":"\u25B8"}</span>
1800
1801
  </button>
1801
- ${a}
1802
+ ${l}
1802
1803
  </div>
1803
- `}function sa(t){let e=t.locale,r=t.config.categories&&t.config.categories.length>0?t.config.categories.map(b=>({id:b.id,icon:b.icon??"\u{1F4AC}",label:b.label,desc:b.description??""})):["bug","slow","visual","confusing","other"].map(b=>({id:b,icon:Kt[b],label:e.step1.categories[b],desc:e.step1.categoryDescriptions[b]})),n=({id:b,icon:u,label:f,desc:v})=>`
1804
+ `}function ga(t){let e=t.locale,r=t.config.categories&&t.config.categories.length>0?t.config.categories.map(b=>({id:b.id,icon:b.icon??"\u{1F4AC}",label:b.label,desc:b.description??""})):["bug","slow","visual","confusing","other"].map(b=>({id:b,icon:Kt[b],label:e.step1.categories[b],desc:e.step1.categoryDescriptions[b]})),n=({id:b,icon:u,label:f,desc:v})=>`
1804
1805
  <button type="button" class="mushi-option-btn" data-category="${g(b)}" role="radio" aria-checked="false">
1805
1806
  <span class="mushi-option-icon" aria-hidden="true">${g(u)}</span>
1806
1807
  <div class="mushi-option-text">
@@ -1809,22 +1810,22 @@
1809
1810
  </div>
1810
1811
  <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
1811
1812
  </button>
1812
- `,s=t.config.categories&&t.config.categories.length>0,o=1,l=s?r:r.slice(0,o),i=s?[]:r.slice(o),a=i.length>0,h=l.map(n).join(""),p=i.map(n).join(""),m=a?t.showAllCategories?`<div class="mushi-categories-expanded">${p}</div>`:`<button type="button" class="mushi-more-toggle" data-action="show-all-categories">
1813
+ `,s=t.config.categories&&t.config.categories.length>0,o=1,a=s?r:r.slice(0,o),i=s?[]:r.slice(o),l=i.length>0,p=a.map(n).join(""),h=i.map(n).join(""),m=l?t.showAllCategories?`<div class="mushi-categories-expanded">${h}</div>`:`<button type="button" class="mushi-more-toggle" data-action="show-all-categories">
1813
1814
  <span class="mushi-more-toggle-text">More issue types</span>
1814
1815
  <span class="mushi-more-toggle-count">${i.length} more</span>
1815
1816
  <span class="mushi-more-toggle-arrow" aria-hidden="true">\u2192</span>
1816
1817
  </button>`:"";return `
1817
1818
  ${ge(t,{title:e.step1.heading,step:Xt.category})}
1818
- ${t.config.betaMode?.enabled?aa(t):""}
1819
+ ${t.config.betaMode?.enabled?va(t):""}
1819
1820
  <div class="mushi-body" role="radiogroup" aria-label="${g(e.step1.heading)}">
1820
1821
  <p class="mushi-section-label">${g(e.step1.reportSectionLabel)}</p>
1821
- ${oa(t)}
1822
- ${h}
1822
+ ${ba(t)}
1823
+ ${p}
1823
1824
  ${m}
1824
- ${t.rewardsState?va(t):""}
1825
- ${na(t)}
1825
+ ${t.rewardsState?La(t):""}
1826
+ ${fa(t)}
1826
1827
  </div>
1827
- `}function oa(t){if(!(t.config.featureRequestCard!==false))return "";let r=t.locale.flows.featureRequest,n=t.config.featureRequestLabel||r.label,s=t.config.featureRequestDescription||r.description;return `
1828
+ `}function ba(t){if(!(t.config.featureRequestCard!==false))return "";let r=t.locale.flows.featureRequest,n=t.config.featureRequestLabel||r.label,s=t.config.featureRequestDescription||r.description;return `
1828
1829
  <button
1829
1830
  type="button"
1830
1831
  class="mushi-option-btn mushi-feature-entry"
@@ -1838,12 +1839,12 @@
1838
1839
  </div>
1839
1840
  <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
1840
1841
  </button>
1841
- `}function ia(t){let e=t.config.betaMode?.changelogItems;if(!e?.length)return "";let r=e[0],n=r.items.map(o=>`<li>\u2022 ${g(o)}</li>`).join("");return `
1842
+ `}function ya(t){let e=t.config.betaMode?.changelogItems;if(!e?.length)return "";let r=e[0],n=r.items.map(o=>`<li>\u2022 ${g(o)}</li>`).join("");return `
1842
1843
  <details class="mushi-changelog">
1843
1844
  <summary class="mushi-changelog-summary">${r.date?`What\u2019s new in ${g(r.version)} \xB7 ${g(r.date)}`:`What\u2019s new in ${g(r.version)}`}</summary>
1844
1845
  <ul class="mushi-changelog-list">${n}</ul>
1845
1846
  </details>
1846
- `}function aa(t){let e=t.config.betaMode,r=g(e.appName??"This app"),n=e.message?g(e.message):`${r} is in early development`,s=e.contactEmail?g(e.contactEmail):null,o=e.perks??[];return `
1847
+ `}function va(t){let e=t.config.betaMode,r=g(e.appName??"This app"),n=e.message?g(e.message):`${r} is in early development`,s=e.contactEmail?g(e.contactEmail):null,o=e.perks??[];return `
1847
1848
  <div class="mushi-beta-strip" role="note" aria-label="Beta status">
1848
1849
  <div class="mushi-beta-strip-row">
1849
1850
  <span class="mushi-beta-tag" aria-hidden="true">BETA</span>
@@ -1852,19 +1853,19 @@
1852
1853
  ${s?`<div class="mushi-beta-contact-hint">Reports go to ${s} \xB7 reviewed by the team</div>`:""}
1853
1854
  ${o.length>0?`
1854
1855
  <ul class="mushi-beta-perks" aria-label="Beta tester perks">
1855
- ${o.map(l=>`<li>\u2713 ${g(l)}</li>`).join("")}
1856
+ ${o.map(a=>`<li>\u2713 ${g(a)}</li>`).join("")}
1856
1857
  </ul>
1857
1858
  `:""}
1858
- ${ia(t)}
1859
+ ${ya(t)}
1859
1860
  </div>
1860
- `}function la(t){let e=t.locale.flows,r=t.reporterReports.map(s=>{let o=s.summary??s.description??`Report ${s.id.slice(0,8)}`,l=Gt(s.status),i=Yt(s.created_at),a=s.unread_count&&s.unread_count>0?`<span class="mushi-unread-badge" aria-label="${s.unread_count} unread">${s.unread_count}</span>`:"";return `
1861
+ `}function xa(t){let e=t.locale.flows,r=t.reporterReports.map(s=>{let o=s.summary??s.description??`Report ${s.id.slice(0,8)}`,a=Gt(s.status),i=Yt(s.created_at),l=s.unread_count&&s.unread_count>0?`<span class="mushi-unread-badge" aria-label="${s.unread_count} unread">${s.unread_count}</span>`:"";return `
1861
1862
  <button type="button" class="mushi-report-row" data-report-id="${g(s.id)}" aria-label="View report: ${g(o)}">
1862
1863
  <div class="mushi-report-main">
1863
1864
  <span class="mushi-report-title">${g(o)}</span>
1864
1865
  <span class="mushi-report-meta">
1865
- <span class="mushi-report-status mushi-status-${l}">${g(Ir(s.status))}</span>
1866
+ <span class="mushi-report-status mushi-status-${a}">${g(Ar(s.status))}</span>
1866
1867
  ${i?`<span class="mushi-report-when">${g(i)}</span>`:""}
1867
- ${a}
1868
+ ${l}
1868
1869
  </span>
1869
1870
  </div>
1870
1871
  <span class="mushi-report-chevron" aria-hidden="true">\u203A</span>
@@ -1876,18 +1877,18 @@
1876
1877
  ${r||(t.reporterLoading?"":`<p class="mushi-muted">${g(e.reports.empty)}</p>`)}
1877
1878
  ${n}
1878
1879
  </div>
1879
- `}function ca(t){let e=t.locale.flows,r=t.featureBoard.map(n=>{let s=String(n.id??""),o=g(String(n.subject??e.roadmap.untitled)),l=Number(n.vote_count??0),i=!!n.shipped_at,a=!!n.my_vote,h=i?e.roadmap.shipped:String(n.status_label??n.status??"open"),p=e.roadmap.voteCount.replace("{n}",String(l));return `
1880
+ `}function wa(t){let e=t.locale.flows,r=t.featureBoard.map(n=>{let s=String(n.id??""),o=g(String(n.subject??e.roadmap.untitled)),a=Number(n.vote_count??0),i=!!n.shipped_at,l=!!n.my_vote,p=i?e.roadmap.shipped:String(n.status_label??n.status??"open"),h=e.roadmap.voteCount.replace("{n}",String(a));return `
1880
1881
  <div class="mushi-report-row mushi-roadmap-row">
1881
1882
  <div class="mushi-report-main">
1882
1883
  <span class="mushi-report-title">${o}</span>
1883
1884
  <span class="mushi-report-meta">
1884
- <span class="mushi-report-status">${g(h)}</span>
1885
- <span class="mushi-report-when">${g(p)}</span>
1885
+ <span class="mushi-report-status">${g(p)}</span>
1886
+ <span class="mushi-report-when">${g(h)}</span>
1886
1887
  </span>
1887
1888
  </div>
1888
1889
  ${t.callbacks.onFeatureBoardVote?`
1889
- <button type="button" class="mushi-vote-btn" data-vote-id="${g(s)}" aria-pressed="${a}">
1890
- ${a?g(e.roadmap.voted):g(e.roadmap.vote)}
1890
+ <button type="button" class="mushi-vote-btn" data-vote-id="${g(s)}" aria-pressed="${l}">
1891
+ ${l?g(e.roadmap.voted):g(e.roadmap.vote)}
1891
1892
  </button>`:""}
1892
1893
  </div>`}).join("");return `
1893
1894
  ${ge(t,{title:e.roadmap.title,showBack:true,eyebrow:e.eyebrows.roadmap})}
@@ -1896,22 +1897,22 @@
1896
1897
  ${t.reporterError?`<p class="mushi-error-inline">${g(t.reporterError)}</p>`:""}
1897
1898
  ${r||(t.reporterLoading?"":`<p class="mushi-muted">${g(e.roadmap.empty)}</p>`)}
1898
1899
  </div>
1899
- `}function ua(t){let e=t.locale.flows,r=t.globalLeaderboard!==null||t.globalLeaderboardLoading,n=r?t.globalLeaderboard??[]:(t.leaderboardEntries??[]).map(a=>({tester_id:"",public_handle:null,display_name:a.display_name,rank:0,points_30d:a.points_30d,total_points:a.total_points})),s=r?t.globalLeaderboardLoading:t.leaderboardLoading,o=t.testerReputation?.rank??null,l=n.map((a,h)=>{let p=a.rank||h+1,m=t.testerReputation&&a.tester_id===t.testerReputation.tester_id;return `
1900
- <div class="mushi-lb-row ${p===1?"mushi-lb-top":""}${m?" mushi-lb-me":""}">
1901
- <span class="mushi-lb-rank">#${p}</span>
1902
- <span class="mushi-lb-name">${g(a.public_handle??a.display_name??e.leaderboard.anon)}</span>
1903
- <span class="mushi-lb-pts">${(a.points_30d??a.total_points).toLocaleString()} pts</span>
1900
+ `}function Sa(t){let e=t.locale.flows,r=t.globalLeaderboard!==null||t.globalLeaderboardLoading,n=r?t.globalLeaderboard??[]:(t.leaderboardEntries??[]).map(l=>({tester_id:"",public_handle:null,display_name:l.display_name,rank:0,points_30d:l.points_30d,total_points:l.total_points})),s=r?t.globalLeaderboardLoading:t.leaderboardLoading,o=t.testerReputation?.rank??null,a=n.map((l,p)=>{let h=l.rank||p+1,m=t.testerReputation&&l.tester_id===t.testerReputation.tester_id;return `
1901
+ <div class="mushi-lb-row ${h===1?"mushi-lb-top":""}${m?" mushi-lb-me":""}">
1902
+ <span class="mushi-lb-rank">#${h}</span>
1903
+ <span class="mushi-lb-name">${g(l.public_handle??l.display_name??e.leaderboard.anon)}</span>
1904
+ <span class="mushi-lb-pts">${(l.points_30d??l.total_points).toLocaleString()} pts</span>
1904
1905
  </div>
1905
1906
  `}).join(""),i=o?`<div class="mushi-lb-myrank">${g(e.leaderboard.myRank.replace("{rank}",String(o)))}</div>`:t.testerJwt?"":`<button type="button" class="mushi-link-btn" data-action="open-account">${g(e.leaderboard.signInPrompt)}</button>`;return `
1906
1907
  ${ge(t,{title:e.leaderboard.title,showBack:true,eyebrow:e.eyebrows.community})}
1907
1908
  <div class="mushi-body">
1908
1909
  ${s?`<p class="mushi-muted">${g(e.leaderboard.loading)}</p>`:""}
1909
1910
  ${!s&&!n.length?`<p class="mushi-muted">${g(e.leaderboard.empty)}</p>`:""}
1910
- <div class="mushi-lb-list">${l}</div>
1911
+ <div class="mushi-lb-list">${a}</div>
1911
1912
  ${i}
1912
1913
  <p class="mushi-lb-note">${g(e.leaderboard.footer)}</p>
1913
1914
  </div>
1914
- `}function da(t){let e=t.locale.flows,r=t.testerInfo;if(r){let n=r.public_handle??r.display_name??e.leaderboard.anon,s=t.testerReputation,o=s?e.account.rankSummary.replace("{rank}",String(s.rank??"\u2014")).replace("{points}",(s.points_30d??0).toLocaleString()):"";return `
1915
+ `}function Ea(t){let e=t.locale.flows,r=t.testerInfo;if(r){let n=r.public_handle??r.display_name??e.leaderboard.anon,s=t.testerReputation,o=s?e.account.rankSummary.replace("{rank}",String(s.rank??"\u2014")).replace("{points}",(s.points_30d??0).toLocaleString()):"";return `
1915
1916
  ${ge(t,{title:e.account.title,showBack:true,eyebrow:e.eyebrows.identity})}
1916
1917
  <div class="mushi-body">
1917
1918
  <div class="mushi-account-card">
@@ -1956,17 +1957,17 @@
1956
1957
  <span>${t.magicLinkSending?g(e.account.sending):g(e.account.sendLink)}</span><span class="mushi-submit-arrow" aria-hidden="true">\u2192</span>
1957
1958
  </button>
1958
1959
  </div>
1959
- `}function pa(t){let e=t.locale.flows,r=t.crossAppReports??[],n=new Map;for(let o of r){let l=o.project_id??"unknown";n.has(l)||n.set(l,{name:o.app_name??e.crossApp.unknownApp,slug:o.app_slug??null,domain:o.app_domain??null,reports:[]}),n.get(l).reports.push(o);}let s=[...n.entries()].map(([o,l])=>`
1960
+ `}function ka(t){let e=t.locale.flows,r=t.crossAppReports??[],n=new Map;for(let o of r){let a=o.project_id??"unknown";n.has(a)||n.set(a,{name:o.app_name??e.crossApp.unknownApp,slug:o.app_slug??null,domain:o.app_domain??null,reports:[]}),n.get(a).reports.push(o);}let s=[...n.entries()].map(([o,a])=>`
1960
1961
  <div class="mushi-xapp-group">
1961
1962
  <div class="mushi-xapp-app-head">
1962
- ${_s({appName:l.name,appSlug:l.slug,appDomain:l.domain})}
1963
- <h4 class="mushi-xapp-app-name">${g(l.name)}</h4>
1963
+ ${Bs({appName:a.name,appSlug:a.slug,appDomain:a.domain})}
1964
+ <h4 class="mushi-xapp-app-name">${g(a.name)}</h4>
1964
1965
  </div>
1965
- ${l.reports.map(a=>{let h=Gt(a.status);return `
1966
- <div class="mushi-report-row" data-report-id="${g(a.id)}" tabindex="0" role="button">
1967
- <span class="mushi-report-status mushi-status-${h}">${g(Ir(a.status))}</span>
1968
- <span class="mushi-report-title">${g(a.title??a.category)}</span>
1969
- <span class="mushi-report-when">${g(Yt(a.created_at))}</span>
1966
+ ${a.reports.map(l=>{let p=Gt(l.status);return `
1967
+ <div class="mushi-report-row" data-report-id="${g(l.id)}" tabindex="0" role="button">
1968
+ <span class="mushi-report-status mushi-status-${p}">${g(Ar(l.status))}</span>
1969
+ <span class="mushi-report-title">${g(l.title??l.category)}</span>
1970
+ <span class="mushi-report-when">${g(Yt(l.created_at))}</span>
1970
1971
  </div>
1971
1972
  `}).join("")}
1972
1973
  </div>
@@ -1977,7 +1978,7 @@
1977
1978
  ${!t.crossAppLoading&&!r.length?`<p class="mushi-muted">${g(e.crossApp.empty)}</p>`:""}
1978
1979
  ${s}
1979
1980
  </div>
1980
- `}function ha(t){let e=t.locale.flows,r=t.reporterReports.find(i=>i.id===t.selectedReportId),n=r?.status??"unknown",s=Gt(n),o=r?.created_at?Yt(r.created_at):"",l=t.reporterComments.map(i=>`
1981
+ `}function Ra(t){let e=t.locale.flows,r=t.reporterReports.find(i=>i.id===t.selectedReportId),n=r?.status??"unknown",s=Gt(n),o=r?.created_at?Yt(r.created_at):"",a=t.reporterComments.map(i=>`
1981
1982
  <div class="mushi-thread-comment ${i.author_kind}">
1982
1983
  <strong>${g(i.author_kind==="reporter"?"You":i.author_name??"Developer")}</strong>
1983
1984
  <p>${g(i.body)}</p>
@@ -1987,13 +1988,13 @@
1987
1988
  <div class="mushi-body">
1988
1989
  <div class="mushi-thread-summary">
1989
1990
  <div class="mushi-thread-summary-meta">
1990
- <span class="mushi-report-status mushi-status-${s}">${g(Is(n))}</span>
1991
+ <span class="mushi-report-status mushi-status-${s}">${g(Ds(n))}</span>
1991
1992
  ${o?`<span class="mushi-report-when">Reported ${g(o)}</span>`:""}
1992
1993
  </div>
1993
1994
  <p>${g(r?.summary??r?.description??"Report details")}</p>
1994
1995
  </div>
1995
1996
  <div class="mushi-thread">
1996
- ${t.reporterLoading?`<p class="mushi-muted">${g(e.thread.loading)}</p>`:l||`<p class="mushi-muted">${g(e.thread.empty)}</p>`}
1997
+ ${t.reporterLoading?`<p class="mushi-muted">${g(e.thread.loading)}</p>`:a||`<p class="mushi-muted">${g(e.thread.empty)}</p>`}
1997
1998
  </div>
1998
1999
  ${["fixed","resolved","verified"].includes(n)?`
1999
2000
  <div class="mushi-verify-actions" role="group" aria-label="Fix verification">
@@ -2006,23 +2007,23 @@
2006
2007
  <span>Reply</span><span class="mushi-submit-arrow" aria-hidden="true">\u2192</span>
2007
2008
  </button>
2008
2009
  </div>
2009
- `}function ma(t){let e=t.locale,r=t.selectedCategory,o=(t.resolveCustomCategory(r)?.intents??(e.step2.intents[r]||[])).map(a=>`
2010
- <button type="button" class="mushi-option-btn" data-intent="${g(a)}">
2011
- <span class="mushi-option-text"><span class="mushi-option-label">${g(a)}</span></span>
2010
+ `}function Ca(t){let e=t.locale,r=t.selectedCategory,o=(t.resolveCustomCategory(r)?.intents??(e.step2.intents[r]||[])).map(l=>`
2011
+ <button type="button" class="mushi-option-btn" data-intent="${g(l)}">
2012
+ <span class="mushi-option-text"><span class="mushi-option-label">${g(l)}</span></span>
2012
2013
  <span class="mushi-option-arrow" aria-hidden="true">\u2192</span>
2013
2014
  </button>
2014
- `).join(""),l=t.categoryIcon(r),i=t.categoryLabel(r);return `
2015
+ `).join(""),a=t.categoryIcon(r),i=t.categoryLabel(r);return `
2015
2016
  ${ge(t,{title:e.step2.heading,showBack:true,step:Xt.intent})}
2016
2017
  <div class="mushi-body">
2017
2018
  <div class="mushi-selected-category">
2018
- <span aria-hidden="true">${g(l)}</span>
2019
+ <span aria-hidden="true">${g(a)}</span>
2019
2020
  <span>${g(i)}</span>
2020
2021
  </div>
2021
2022
  <div class="mushi-intents">
2022
2023
  ${o}
2023
2024
  </div>
2024
2025
  </div>
2025
- `}function fa(t){let e=t.locale,r=t.effectiveMinLength(),n=t.screenshotCapturing?e.step3.screenshotCapturing:t.screenshotError?e.step3.screenshotFailed:t.screenshotAttached?e.step3.screenshotAttached:e.step3.screenshotButton,s=["mushi-attach-btn",t.screenshotAttached?"active":"",t.screenshotError?"error":"",t.screenshotCapturing?"loading":""].filter(Boolean).join(" "),o=t.elementCapturing?e.step3.elementCapturing:t.elementSelected?e.step3.elementSelected:e.step3.elementButton,l=["mushi-attach-btn",t.elementSelected?"active":"",t.elementCapturing?"loading":""].filter(Boolean).join(" "),i=e.step3.examplePrompts.map(a=>`<button type="button" class="mushi-example-chip" data-example="${g(a)}">${g(a)}</button>`).join("");return `
2026
+ `}function Ta(t){let e=t.locale,r=t.effectiveMinLength(),n=t.screenshotCapturing?e.step3.screenshotCapturing:t.screenshotError?e.step3.screenshotFailed:t.screenshotAttached?e.step3.screenshotAttached:e.step3.screenshotButton,s=["mushi-attach-btn",t.screenshotAttached?"active":"",t.screenshotError?"error":"",t.screenshotCapturing?"loading":""].filter(Boolean).join(" "),o=t.elementCapturing?e.step3.elementCapturing:t.elementError?e.step3.elementFailed:t.elementSelected?e.step3.elementSelected:e.step3.elementButton,a=["mushi-attach-btn",t.elementSelected?"active":"",t.elementError?"error":"",t.elementCapturing?"loading":""].filter(Boolean).join(" "),i=e.step3.examplePrompts.map(l=>`<button type="button" class="mushi-example-chip" data-example="${g(l)}">${g(l)}</button>`).join("");return `
2026
2027
  ${ge(t,{title:e.step3.heading,showBack:true,step:Xt.details})}
2027
2028
  <div class="mushi-body">
2028
2029
  <div class="mushi-example-chips" aria-label="Example prompts">${i}</div>
@@ -2039,24 +2040,24 @@
2039
2040
  </div>
2040
2041
  </div>
2041
2042
  <div class="mushi-attachments">
2042
- <button type="button" class="${s}"
2043
+ ${t.screenshotAvailable?`<button type="button" class="${s}"
2043
2044
  data-action="screenshot"
2044
2045
  ${t.screenshotCapturing?"disabled":""}
2045
2046
  aria-label="${g(n)}"
2046
2047
  >
2047
2048
  ${t.screenshotCapturing?'<span class="mushi-spinner" aria-hidden="true"></span>':"\u{1F4F8}"}
2048
2049
  ${g(n)}
2049
- </button>
2050
+ </button>`:""}
2050
2051
  ${t.screenshotAttached&&t.allowScreenshotRemove?'<button type="button" class="mushi-attach-btn danger" data-action="remove-screenshot" aria-label="Remove screenshot">\u2715 Remove</button>':""}
2051
2052
  ${t.screenshotAttached?'<button type="button" class="mushi-attach-btn" data-action="annotate-screenshot" aria-label="Mark up screenshot">\u270F Mark up</button><div class="mushi-annotate-host" data-role="annotate-host"></div>':""}
2052
- <button type="button" class="${l}"
2053
+ ${t.elementAvailable?`<button type="button" class="${a}"
2053
2054
  data-action="element"
2054
2055
  ${t.elementCapturing?"disabled":""}
2055
2056
  aria-label="${g(o)}"
2056
2057
  >
2057
2058
  ${t.elementCapturing?'<span class="mushi-spinner" aria-hidden="true"></span>':"\u{1F3AF}"}
2058
2059
  ${g(o)}
2059
- </button>
2060
+ </button>`:""}
2060
2061
  </div>
2061
2062
  ${t.screenshotAttached&&t.screenshotPreview?`<figure class="mushi-screenshot-preview">
2062
2063
  <img src="${g(t.screenshotPreview)}" alt="${g(e.step3.screenshotPreviewAlt)}" />
@@ -2072,7 +2073,7 @@
2072
2073
  <span class="mushi-submit-arrow" aria-hidden="true">\u2192</span>
2073
2074
  </button>
2074
2075
  </div>
2075
- `}function ga(t){let e=t.locale,n=(t.submittedAt??new Date).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:false});return `
2076
+ `}function Ma(t){let e=t.locale,n=(t.submittedAt??new Date).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:false});return `
2076
2077
  ${ge(t,{title:e.widget.title,showBack:true,eyebrow:"Mushi \xB7 Receipt"})}
2077
2078
  <div class="mushi-body">
2078
2079
  <div class="mushi-success">
@@ -2082,15 +2083,15 @@
2082
2083
  </div>
2083
2084
  <div class="mushi-success-headline">${e.widget.submitted}</div>
2084
2085
  <div class="mushi-success-meta">REPORT \xB7 ${n}</div>
2085
- ${ba(t)}
2086
- ${t.rewardsState?xa(t):""}
2087
- ${t.config.betaMode?.enabled?ya(t):""}
2086
+ ${$a(t)}
2087
+ ${t.rewardsState?Aa(t):""}
2088
+ ${t.config.betaMode?.enabled?Ia(t):""}
2088
2089
  <button type="button" class="mushi-link-btn mushi-success-my-reports" data-action="view-my-reports">
2089
2090
  ${g(t.locale.flows.success.trackReport)}
2090
2091
  </button>
2091
2092
  </div>
2092
2093
  </div>
2093
- `}function ba(t){let e=t.locale.flows.success;if(t.lastSubmitQueuedOffline)return `
2094
+ `}function $a(t){let e=t.locale.flows.success;if(t.lastSubmitQueuedOffline)return `
2094
2095
  <div class="mushi-success-receipt" role="status">
2095
2096
  <div class="mushi-success-receipt-row mushi-success-receipt-warn">
2096
2097
  <span class="mushi-success-receipt-label">${g(e.queuedOffline)}</span>
@@ -2103,7 +2104,7 @@
2103
2104
  <span class="mushi-success-receipt-spinner" aria-hidden="true"></span>
2104
2105
  <span class="mushi-success-receipt-hint">${g(e.delivering)}</span>
2105
2106
  </div>
2106
- ${Hs(t)}
2107
+ ${Us(t)}
2107
2108
  </div>
2108
2109
  `;let r=`#${t.lastReportId.slice(0,8)}`,n=(t.config.dashboardUrl??"").replace(/\/$/,""),s=n?`${n}/reports/${encodeURIComponent(t.lastReportId)}`:"";return `
2109
2110
  <div class="mushi-success-receipt" role="status">
@@ -2126,13 +2127,13 @@
2126
2127
  rel="noopener noreferrer"
2127
2128
  >${g(e.trackOnMushi)} <span aria-hidden="true">\u2197</span></a>
2128
2129
  `:""}
2129
- ${Hs(t)}
2130
+ ${Us(t)}
2130
2131
  </div>
2131
- `}function Hs(t){let e=(t.config.responseSlaLabel??"").trim();return e?`<div class="mushi-success-sla">${g(e)}</div>`:`<div class="mushi-success-sla mushi-success-sla-default">${g(t.locale.flows.success.slaDefault)}</div>`}function ya(t){let e=t.config.betaMode,r=e.contactEmail?g(e.contactEmail):null,n=g(e.appName??"the team");return `
2132
+ `}function Us(t){let e=(t.config.responseSlaLabel??"").trim();return e?`<div class="mushi-success-sla">${g(e)}</div>`:`<div class="mushi-success-sla mushi-success-sla-default">${g(t.locale.flows.success.slaDefault)}</div>`}function Ia(t){let e=t.config.betaMode,r=e.contactEmail?g(e.contactEmail):null,n=g(e.appName??"the team");return `
2132
2133
  <div class="mushi-beta-success-footer" role="note" aria-label="Beta feedback acknowledgement">
2133
2134
  ${r?`<div class="mushi-beta-success-line">\u{1F4EC} Sent to ${r}</div>`:`<div class="mushi-beta-success-line">\u{1F4EC} Sent to ${n}</div>`}
2134
2135
  </div>
2135
- `}function va(t){let{tier:e,nextTier:r,totalPoints:n,pointsForReport:s}=t.rewardsState,o=e?.displayName??"Free",l=e?.slug??"free",i=t.tierColor(l),a=100,h="";if(r){let p=e?.pointsThreshold??0,m=r.pointsThreshold;a=m>p?Math.round(Math.min(1,(n-p)/(m-p))*100):100,h=`${Math.max(0,m-n).toLocaleString()} pts to ${g(r.displayName)}`;}return `
2136
+ `}function La(t){let{tier:e,nextTier:r,totalPoints:n,pointsForReport:s}=t.rewardsState,o=e?.displayName??"Free",a=e?.slug??"free",i=t.tierColor(a),l=100,p="";if(r){let h=e?.pointsThreshold??0,m=r.pointsThreshold;l=m>h?Math.round(Math.min(1,(n-h)/(m-h))*100):100,p=`${Math.max(0,m-n).toLocaleString()} pts to ${g(r.displayName)}`;}return `
2136
2137
  <div class="mushi-rewards-nudge" aria-label="Rewards progress">
2137
2138
  <div class="mushi-rewards-row">
2138
2139
  <span class="mushi-tier-pip" style="background:${i}" aria-hidden="true"></span>
@@ -2141,23 +2142,23 @@
2141
2142
  <span class="mushi-rewards-pts-earn">+${s} pts for a report</span>
2142
2143
  </div>
2143
2144
  ${r?`
2144
- <div class="mushi-tier-bar-track" role="progressbar" aria-valuenow="${a}" aria-valuemin="0" aria-valuemax="100" aria-label="Progress to ${g(r.displayName)}">
2145
- <div class="mushi-tier-bar-fill" style="width:${a}%"></div>
2145
+ <div class="mushi-tier-bar-track" role="progressbar" aria-valuenow="${l}" aria-valuemin="0" aria-valuemax="100" aria-label="Progress to ${g(r.displayName)}">
2146
+ <div class="mushi-tier-bar-fill" style="width:${l}%"></div>
2146
2147
  </div>
2147
- <div class="mushi-rewards-next-label">${h}</div>
2148
+ <div class="mushi-rewards-next-label">${p}</div>
2148
2149
  `:""}
2149
2150
  </div>
2150
- `}function xa(t){let{tier:e,nextTier:r,totalPoints:n,pointsForReport:s}=t.rewardsState,o=n+s,l=100,i="";if(r){let a=e?.pointsThreshold??0,h=r.pointsThreshold;l=h>a?Math.round(Math.min(1,(o-a)/(h-a))*100):100;let p=Math.max(0,h-o);i=p>0?`${p.toLocaleString()} pts to ${g(r.displayName)}`:`\u{1F389} ${g(r.displayName)} reached!`;}return `
2151
+ `}function Aa(t){let{tier:e,nextTier:r,totalPoints:n,pointsForReport:s}=t.rewardsState,o=n+s,a=100,i="";if(r){let l=e?.pointsThreshold??0,p=r.pointsThreshold;a=p>l?Math.round(Math.min(1,(o-l)/(p-l))*100):100;let h=Math.max(0,p-o);i=h>0?`${h.toLocaleString()} pts to ${g(r.displayName)}`:`\u{1F389} ${g(r.displayName)} reached!`;}return `
2151
2152
  <div class="mushi-success-rewards">
2152
2153
  <div class="mushi-success-pts-award">+${s} pts</div>
2153
2154
  ${r?`
2154
- <div class="mushi-tier-bar-track success-bar" role="progressbar" aria-valuenow="${l}" aria-valuemin="0" aria-valuemax="100" aria-label="Progress to ${g(r.displayName)}">
2155
- <div class="mushi-tier-bar-fill" style="width:${l}%"></div>
2155
+ <div class="mushi-tier-bar-track success-bar" role="progressbar" aria-valuenow="${a}" aria-valuemin="0" aria-valuemax="100" aria-label="Progress to ${g(r.displayName)}">
2156
+ <div class="mushi-tier-bar-fill" style="width:${a}%"></div>
2156
2157
  </div>
2157
2158
  <div class="mushi-rewards-next-label">${i}</div>
2158
2159
  `:""}
2159
2160
  </div>
2160
- `}var Jt=class t{constructor(e={},r,n=fe){this.sdkVersion=n;this.config={position:e.position??"bottom-right",anchor:e.anchor??{},theme:e.theme??"auto",triggerText:e.triggerText||"\u{1F41B}",expandedTitle:e.expandedTitle??"",mode:e.mode??"conversational",locale:e.locale??"auto",zIndex:e.zIndex??99999,trigger:e.trigger??"auto",bannerConfig:e.bannerConfig??{},attachToSelector:e.attachToSelector??"",inset:e.inset??{},respectSafeArea:e.respectSafeArea??true,hideOnSelector:e.hideOnSelector??"",hideOnRoutes:e.hideOnRoutes??[],environments:e.environments??{},smartHide:e.smartHide??false,draggable:e.draggable??false,brandFooter:e.brandFooter??false,outdatedBanner:e.outdatedBanner??"auto",screenshotSensitiveHint:e.screenshotSensitiveHint??true,betaMode:e.betaMode??{},minDescriptionLength:e.minDescriptionLength??20,dashboardUrl:e.dashboardUrl??"",responseSlaLabel:e.responseSlaLabel??"",featureRequestCard:e.featureRequestCard??true,featureRequestLabel:e.featureRequestLabel||"Feature request",featureRequestDescription:e.featureRequestDescription||"Suggest something new \u2014 even rough ideas help us prioritise",avoidSelectors:e.avoidSelectors??[],categories:e.categories??[],accent:e.accent??"",accentText:e.accentText??""},this.callbacks=r,this.locale=$r(this.config.locale==="auto"?void 0:this.config.locale),this.host=document.createElement("div"),this.host.id="mushi-mushi-widget",this.shadow=this.host.attachShadow({mode:"open"});}sdkVersion;host;shadow;config;callbacks;locale;isOpen=false;step="category";selectedCategory=null;selectedIntent=null;viaFeatureRequest=false;showAllCategories=false;showMoreNav=false;screenshotAttached=false;screenshotCapturing=false;screenshotError=false;allowScreenshotRemove=true;screenshotPreview=null;elementSelected=false;elementCapturing=false;submitting=false;selectorHint=null;triggerVisible=true;triggerShrunk=false;triggerHiddenByScroll=false;mountedAt=null;nudgeShown=false;nudgeEl=null;nudgeTimer=null;sdkFreshness=null;reporterReports=[];featureBoard=[];reporterComments=[];selectedReportId=null;reporterLoading=false;reporterError=null;attachedLaunchers=[];smartHideCleanup=null;smartHideTimer=null;submittedAt=null;successTimer=null;autoCloseTimer=null;rewardsState=null;leaderboardEntries=null;leaderboardLoading=false;lastReportId=null;lastSubmitQueuedOffline=false;bannerDismissed=false;bannerResizeObserver=null;fabPos=null;vvCleanup=null;identifiedUser=null;testerJwt=null;testerInfo=null;crossAppReports=null;crossAppLoading=false;globalLeaderboard=null;globalLeaderboardLoading=false;testerReputation=null;magicLinkSent=false;magicLinkEmail="";magicLinkError="";magicLinkSending=false;assistantTurns=[];assistantThreadId=null;assistantSending=false;assistantError=null;mount(){this.host.isConnected||(this.syncHostChromeState(),document.body.appendChild(this.host),this.syncAttachedLaunchers(),this.syncSmartHide(),this.render(),this.mountedAt=Date.now());}getIsMounted(){return this.host.isConnected}updateConfig(e={}){let r=this.config.trigger,n=JSON.stringify(this.config.bannerConfig??null);this.config={...this.config,...e.position?{position:e.position}:{},...e.anchor!==void 0?{anchor:e.anchor}:{},...e.theme?{theme:e.theme}:{},...e.triggerText!==void 0?{triggerText:e.triggerText||"\u{1F41B}"}:{},...e.expandedTitle!==void 0?{expandedTitle:e.expandedTitle}:{},...e.mode?{mode:e.mode}:{},...e.locale?{locale:e.locale}:{},...e.zIndex!==void 0?{zIndex:e.zIndex}:{},...e.trigger?{trigger:e.trigger}:{},...e.attachToSelector!==void 0?{attachToSelector:e.attachToSelector}:{},...e.inset!==void 0?{inset:e.inset}:{},...e.respectSafeArea!==void 0?{respectSafeArea:e.respectSafeArea}:{},...e.hideOnSelector!==void 0?{hideOnSelector:e.hideOnSelector}:{},...e.hideOnRoutes!==void 0?{hideOnRoutes:e.hideOnRoutes}:{},...e.environments!==void 0?{environments:e.environments}:{},...e.smartHide!==void 0?{smartHide:e.smartHide}:{},...e.draggable!==void 0?{draggable:e.draggable}:{},...e.brandFooter!==void 0?{brandFooter:e.brandFooter}:{},...e.outdatedBanner!==void 0?{outdatedBanner:e.outdatedBanner}:{},...e.screenshotSensitiveHint!==void 0?{screenshotSensitiveHint:e.screenshotSensitiveHint}:{},...e.betaMode!==void 0?{betaMode:e.betaMode}:{},...e.minDescriptionLength!==void 0?{minDescriptionLength:e.minDescriptionLength}:{},...e.dashboardUrl!==void 0?{dashboardUrl:e.dashboardUrl}:{},...e.responseSlaLabel!==void 0?{responseSlaLabel:e.responseSlaLabel}:{},...e.featureRequestCard!==void 0?{featureRequestCard:e.featureRequestCard}:{},...e.featureRequestLabel!==void 0?{featureRequestLabel:e.featureRequestLabel||"Feature request"}:{},...e.featureRequestDescription!==void 0?{featureRequestDescription:e.featureRequestDescription||"Suggest something new \u2014 even rough ideas help us prioritise"}:{},...e.bannerConfig!==void 0?{bannerConfig:e.bannerConfig}:{},...e.categories!==void 0?{categories:e.categories}:{}},this.locale=$r(this.config.locale==="auto"?void 0:this.config.locale);let s=this.config.trigger==="banner"&&r!=="banner",o=JSON.stringify(this.config.bannerConfig??null)!==n;(s||o)&&(this.bannerDismissed=false),this.host.isConnected&&this.syncHostChromeState(),this.syncAttachedLaunchers(),this.syncSmartHide(),this.render();}resolveCustomCategory(e){return this.config.categories?.find(r=>r.id===e)}resolveBaseCategory(e){return ["bug","slow","visual","confusing","other"].includes(e)?e:this.resolveCustomCategory(e)?.baseCategory??"other"}categoryIcon(e){let r=this.resolveCustomCategory(e);return r?.icon?r.icon:Kt[e]??"\u{1F4AC}"}categoryLabel(e){let r=this.resolveCustomCategory(e);return r?r.label:this.locale.step1.categories[e]??e}open(e){if(!this.isOpen){if(this.isOpen=true,this.screenshotAttached=false,this.screenshotCapturing=false,this.screenshotError=false,this.screenshotPreview=null,this.elementSelected=false,this.elementCapturing=false,this.submitting=false,this.submittedAt=null,this.removeSelectorHint(),this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.viaFeatureRequest=false,e?.featureRequest)this.selectedCategory="other",this.selectedIntent=Lr,this.viaFeatureRequest=true,this.step="details";else if(e?.category){let r=this.resolveCustomCategory(e.category);["bug","slow","visual","confusing","other"].includes(e.category)||r!==void 0?(this.selectedCategory=e.category,this.selectedIntent=null,this.step=r&&(!r.intents||r.intents.length===0)?"details":"intent"):(this.selectedCategory=null,this.selectedIntent=null,this.step="category");}else this.selectedCategory=null,this.selectedIntent=null,this.step="category";this.render(),this.callbacks.onOpen();}}close(){this.isOpen&&(this.isOpen=false,this.showAllCategories=false,this.showMoreNav=false,this.render(),this.callbacks.onClose());}openAssistantTab(){if(!this.callbacks.assistantEnabled){this.open();return}this.isOpen||(this.isOpen=true,this.callbacks.onOpen()),this.step="assistant",this.assistantError=null,this.render(),setTimeout(()=>{this.shadow.querySelector(".mushi-assistant-input")?.focus();},0);}async sendAssistantMessage(e){let r=e.trim();if(!(!r||this.assistantSending||!this.callbacks.onAssistantAsk)){this.assistantSending=true,this.assistantError=null,this.assistantTurns.push({role:"user",text:r}),this.render();try{let n=await this.callbacks.onAssistantAsk(r,this.assistantThreadId);n?(n.threadId&&(this.assistantThreadId=n.threadId),n.kind==="clarify"?this.assistantTurns.push({role:"assistant",text:n.question??"Could you tell me a bit more?",...n.options&&n.options.length?{options:n.options}:{}}):this.assistantTurns.push({role:"assistant",text:n.text??"\u2026"})):this.assistantError=this.locale.assistant.errors.noResponse;}catch{this.assistantError=this.locale.assistant.errors.generic;}finally{this.assistantSending=false,this.render(),setTimeout(()=>{let n=this.shadow.querySelector(".mushi-assistant-log");n&&(n.scrollTop=n.scrollHeight);},0);}}}pulseTrigger(){if(this.isOpen)return;let e=this.shadow.querySelector(".mushi-trigger");e&&(e.classList.add("mushi-trigger-pulse"),window.setTimeout(()=>{e.classList.remove("mushi-trigger-pulse");},2400));}getIsOpen(){return this.isOpen}showTrigger(){this.triggerVisible=true,this.render();}hideTrigger(){this.triggerVisible=false,this.render();}setTrigger(e){this.updateConfig({trigger:e});}attachTo(e,r={}){let s=(typeof e=="string"?Array.from(document.querySelectorAll(e)):[e]).map(o=>{let l=i=>{i.preventDefault(),this.updateConfig(r),this.open();};return o.addEventListener("click",l),()=>o.removeEventListener("click",l)});return ()=>s.forEach(o=>o())}setScreenshotAttached(e){this.screenshotAttached=e,e||(this.screenshotPreview=null),this.isOpen&&this.render();}setScreenshotPreview(e){this.screenshotPreview=e,this.isOpen&&this.render();}resolveScreenshotHint(){let e=this.config.screenshotSensitiveHint;return e===false?null:typeof e=="string"?e.trim()?e:null:this.locale.step3.screenshotSensitiveHint}setAllowScreenshotRemove(e){this.allowScreenshotRemove=e,this.isOpen&&this.render();}setElementSelected(e){this.elementSelected=e,this.elementCapturing=false,this.removeSelectorHint(),this.isOpen&&this.render();}setScreenshotCapturing(e){this.screenshotCapturing=e,this.screenshotError=false,this.isOpen&&this.render();}setScreenshotError(e){this.screenshotError=e,this.screenshotCapturing=false,this.isOpen&&this.render();}setElementCapturing(e){this.elementCapturing=e,e?this.showSelectorHint():this.removeSelectorHint(),this.isOpen&&this.render();}hidePanel(){let e=this.shadow.querySelector(".mushi-panel");e&&(e.style.display="none");}showPanel(){let e=this.shadow.querySelector(".mushi-panel");e&&(e.style.display="");}showSelectorHint(){this.removeSelectorHint();let e=document.createElement("div");e.id="mushi-selector-hint",e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.style.cssText=`
2161
+ `}var Jt=class t{constructor(e={},r,n=fe){this.sdkVersion=n;this.config={position:e.position??"bottom-right",anchor:e.anchor??{},theme:e.theme??"auto",triggerText:e.triggerText||"\u{1F41B}",expandedTitle:e.expandedTitle??"",mode:e.mode??"conversational",locale:e.locale??"auto",zIndex:e.zIndex??99999,trigger:e.trigger??"auto",bannerConfig:e.bannerConfig??{},attachToSelector:e.attachToSelector??"",inset:e.inset??{},respectSafeArea:e.respectSafeArea??true,hideOnSelector:e.hideOnSelector??"",hideOnRoutes:e.hideOnRoutes??[],environments:e.environments??{},smartHide:e.smartHide??false,draggable:e.draggable??false,brandFooter:e.brandFooter??false,outdatedBanner:e.outdatedBanner??"auto",screenshotSensitiveHint:e.screenshotSensitiveHint??true,betaMode:e.betaMode??{},minDescriptionLength:e.minDescriptionLength??20,dashboardUrl:e.dashboardUrl??"",responseSlaLabel:e.responseSlaLabel??"",featureRequestCard:e.featureRequestCard??true,featureRequestLabel:e.featureRequestLabel||"Feature request",featureRequestDescription:e.featureRequestDescription||"Suggest something new \u2014 even rough ideas help us prioritise",avoidSelectors:e.avoidSelectors??[],categories:e.categories??[],accent:e.accent??"",accentText:e.accentText??""},this.callbacks=r,this.locale=Ir(this.config.locale==="auto"?void 0:this.config.locale),this.host=document.createElement("div"),this.host.id="mushi-mushi-widget",this.shadow=this.host.attachShadow({mode:"open"});}sdkVersion;host;shadow;config;callbacks;locale;isOpen=false;step="category";selectedCategory=null;selectedIntent=null;viaFeatureRequest=false;showAllCategories=false;showMoreNav=false;screenshotAttached=false;screenshotCapturing=false;screenshotError=false;allowScreenshotRemove=true;screenshotAvailable=true;elementAvailable=true;draftDescription="";draftEmail="";draftReply="";draftFocus=null;draftSelStart=0;draftSelEnd=0;screenshotPreview=null;elementSelected=false;elementCapturing=false;elementError=false;submitting=false;selectorHint=null;triggerVisible=true;triggerShrunk=false;triggerHiddenByScroll=false;mountedAt=null;nudgeShown=false;nudgeEl=null;nudgeTimer=null;sdkFreshness=null;reporterReports=[];featureBoard=[];reporterComments=[];selectedReportId=null;reporterLoading=false;reporterError=null;attachedLaunchers=[];smartHideCleanup=null;smartHideTimer=null;submittedAt=null;successTimer=null;autoCloseTimer=null;rewardsState=null;leaderboardEntries=null;leaderboardLoading=false;lastReportId=null;lastSubmitQueuedOffline=false;bannerDismissed=false;bannerResizeObserver=null;fabPos=null;vvCleanup=null;identifiedUser=null;testerJwt=null;testerInfo=null;crossAppReports=null;crossAppLoading=false;globalLeaderboard=null;globalLeaderboardLoading=false;testerReputation=null;magicLinkSent=false;magicLinkEmail="";magicLinkError="";magicLinkSending=false;assistantTurns=[];assistantThreadId=null;assistantSending=false;assistantError=null;mount(){this.host.isConnected||(this.syncHostChromeState(),document.body.appendChild(this.host),this.syncAttachedLaunchers(),this.syncSmartHide(),this.render(),this.mountedAt=Date.now());}getIsMounted(){return this.host.isConnected}updateConfig(e={}){let r=this.config.trigger,n=JSON.stringify(this.config.bannerConfig??null);this.config={...this.config,...e.position?{position:e.position}:{},...e.anchor!==void 0?{anchor:e.anchor}:{},...e.theme?{theme:e.theme}:{},...e.triggerText!==void 0?{triggerText:e.triggerText||"\u{1F41B}"}:{},...e.expandedTitle!==void 0?{expandedTitle:e.expandedTitle}:{},...e.mode?{mode:e.mode}:{},...e.locale?{locale:e.locale}:{},...e.zIndex!==void 0?{zIndex:e.zIndex}:{},...e.trigger?{trigger:e.trigger}:{},...e.attachToSelector!==void 0?{attachToSelector:e.attachToSelector}:{},...e.inset!==void 0?{inset:e.inset}:{},...e.respectSafeArea!==void 0?{respectSafeArea:e.respectSafeArea}:{},...e.hideOnSelector!==void 0?{hideOnSelector:e.hideOnSelector}:{},...e.hideOnRoutes!==void 0?{hideOnRoutes:e.hideOnRoutes}:{},...e.environments!==void 0?{environments:e.environments}:{},...e.smartHide!==void 0?{smartHide:e.smartHide}:{},...e.draggable!==void 0?{draggable:e.draggable}:{},...e.brandFooter!==void 0?{brandFooter:e.brandFooter}:{},...e.outdatedBanner!==void 0?{outdatedBanner:e.outdatedBanner}:{},...e.screenshotSensitiveHint!==void 0?{screenshotSensitiveHint:e.screenshotSensitiveHint}:{},...e.betaMode!==void 0?{betaMode:e.betaMode}:{},...e.minDescriptionLength!==void 0?{minDescriptionLength:e.minDescriptionLength}:{},...e.dashboardUrl!==void 0?{dashboardUrl:e.dashboardUrl}:{},...e.responseSlaLabel!==void 0?{responseSlaLabel:e.responseSlaLabel}:{},...e.featureRequestCard!==void 0?{featureRequestCard:e.featureRequestCard}:{},...e.featureRequestLabel!==void 0?{featureRequestLabel:e.featureRequestLabel||"Feature request"}:{},...e.featureRequestDescription!==void 0?{featureRequestDescription:e.featureRequestDescription||"Suggest something new \u2014 even rough ideas help us prioritise"}:{},...e.bannerConfig!==void 0?{bannerConfig:e.bannerConfig}:{},...e.categories!==void 0?{categories:e.categories}:{}},this.locale=Ir(this.config.locale==="auto"?void 0:this.config.locale);let s=this.config.trigger==="banner"&&r!=="banner",o=JSON.stringify(this.config.bannerConfig??null)!==n;(s||o)&&(this.bannerDismissed=false),this.host.isConnected&&this.syncHostChromeState(),this.syncAttachedLaunchers(),this.syncSmartHide(),this.render();}resolveCustomCategory(e){return this.config.categories?.find(r=>r.id===e)}resolveBaseCategory(e){return ["bug","slow","visual","confusing","other"].includes(e)?e:this.resolveCustomCategory(e)?.baseCategory??"other"}categoryIcon(e){let r=this.resolveCustomCategory(e);return r?.icon?r.icon:Kt[e]??"\u{1F4AC}"}categoryLabel(e){let r=this.resolveCustomCategory(e);return r?r.label:this.locale.step1.categories[e]??e}open(e){if(!this.isOpen){if(this.isOpen=true,this.screenshotAttached=false,this.screenshotCapturing=false,this.screenshotError=false,this.screenshotPreview=null,this.elementSelected=false,this.elementCapturing=false,this.elementError=false,this.submitting=false,this.submittedAt=null,this.removeSelectorHint(),this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.viaFeatureRequest=false,this.clearFormDrafts(),e?.featureRequest)this.selectedCategory="other",this.selectedIntent=Lr,this.viaFeatureRequest=true,this.step="details";else if(e?.category){let r=this.resolveCustomCategory(e.category);["bug","slow","visual","confusing","other"].includes(e.category)||r!==void 0?(this.selectedCategory=e.category,this.selectedIntent=null,this.step=r&&(!r.intents||r.intents.length===0)?"details":"intent"):(this.selectedCategory=null,this.selectedIntent=null,this.step="category");}else this.selectedCategory=null,this.selectedIntent=null,this.step="category";this.render(),this.callbacks.onOpen();}}close(){this.isOpen&&(this.isOpen=false,this.showAllCategories=false,this.showMoreNav=false,this.render(),this.callbacks.onClose());}openAssistantTab(){if(!this.callbacks.assistantEnabled){this.open();return}this.isOpen||(this.isOpen=true,this.callbacks.onOpen()),this.step="assistant",this.assistantError=null,this.render(),setTimeout(()=>{this.shadow.querySelector(".mushi-assistant-input")?.focus();},0);}async sendAssistantMessage(e){let r=e.trim();if(!(!r||this.assistantSending||!this.callbacks.onAssistantAsk)){this.assistantSending=true,this.assistantError=null,this.assistantTurns.push({role:"user",text:r}),this.render();try{let n=await this.callbacks.onAssistantAsk(r,this.assistantThreadId);n?(n.threadId&&(this.assistantThreadId=n.threadId),n.kind==="clarify"?this.assistantTurns.push({role:"assistant",text:n.question??"Could you tell me a bit more?",...n.options&&n.options.length?{options:n.options}:{}}):this.assistantTurns.push({role:"assistant",text:n.text??"\u2026"})):this.assistantError=this.locale.assistant.errors.noResponse;}catch{this.assistantError=this.locale.assistant.errors.generic;}finally{this.assistantSending=false,this.render(),setTimeout(()=>{let n=this.shadow.querySelector(".mushi-assistant-log");n&&(n.scrollTop=n.scrollHeight);},0);}}}pulseTrigger(){if(this.isOpen)return;let e=this.shadow.querySelector(".mushi-trigger");e&&(e.classList.add("mushi-trigger-pulse"),window.setTimeout(()=>{e.classList.remove("mushi-trigger-pulse");},2400));}getIsOpen(){return this.isOpen}showTrigger(){this.triggerVisible=true,this.render();}hideTrigger(){this.triggerVisible=false,this.render();}setTrigger(e){this.updateConfig({trigger:e});}attachTo(e,r={}){let s=(typeof e=="string"?Array.from(document.querySelectorAll(e)):[e]).map(o=>{let a=i=>{i.preventDefault(),this.updateConfig(r),this.open();};return o.addEventListener("click",a),()=>o.removeEventListener("click",a)});return ()=>s.forEach(o=>o())}setScreenshotAttached(e){this.screenshotAttached=e,this.screenshotCapturing=false,e&&(this.screenshotError=false),e||(this.screenshotPreview=null),this.isOpen&&this.render();}setScreenshotPreview(e){this.screenshotPreview=e,this.isOpen&&this.render();}resolveScreenshotHint(){let e=this.config.screenshotSensitiveHint;return e===false?null:typeof e=="string"?e.trim()?e:null:this.locale.step3.screenshotSensitiveHint}setAllowScreenshotRemove(e){this.allowScreenshotRemove=e,this.isOpen&&this.render();}setCaptureAvailability(e){let r=e.screenshot??this.screenshotAvailable,n=e.element??this.elementAvailable;r===this.screenshotAvailable&&n===this.elementAvailable||(this.screenshotAvailable=r,this.elementAvailable=n,this.isOpen&&this.render());}setElementSelected(e){this.elementSelected=e,this.elementCapturing=false,e&&(this.elementError=false),this.removeSelectorHint(),this.isOpen&&this.render();}setElementError(e){this.elementError=e,this.elementCapturing=false,this.removeSelectorHint(),this.isOpen&&this.render();}setScreenshotCapturing(e){this.screenshotCapturing=e,this.screenshotError=false,this.isOpen&&this.render();}setScreenshotError(e){this.screenshotError=e,this.screenshotCapturing=false,this.isOpen&&this.render();}setElementCapturing(e){this.elementCapturing=e,e?(this.elementError=false,this.showSelectorHint()):this.removeSelectorHint(),this.isOpen&&this.render();}hidePanel(){let e=this.shadow.querySelector(".mushi-panel");e&&(e.style.display="none");}showPanel(){let e=this.shadow.querySelector(".mushi-panel");e&&(e.style.display="");}showSelectorHint(){this.removeSelectorHint();let e=document.createElement("div");e.id="mushi-selector-hint",e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.style.cssText=`
2161
2162
  position: fixed;
2162
2163
  bottom: 24px;
2163
2164
  left: 50%;
@@ -2190,7 +2191,7 @@
2190
2191
  backdrop-filter: blur(4px);
2191
2192
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
2192
2193
  animation: mushi-fade-in 0.15s ease forwards;
2193
- `,n.textContent=this.locale.step3.tooShort.startsWith("A bit")?"Found a bug? One sentence is enough \u{1F41B}":"\u30D0\u30B0\u3092\u898B\u3064\u3051\u305F\uFF1F\u4E00\u884C\u3067\u5927\u4E08\u592B\u3067\u3059 \u{1F41B}",document.body.appendChild(n),this.nudgeEl=n,this.nudgeTimer!==null&&clearTimeout(this.nudgeTimer),this.nudgeTimer=setTimeout(()=>this.removeNudge(),5e3);}removeNudge(){this.nudgeTimer!==null&&(clearTimeout(this.nudgeTimer),this.nudgeTimer=null),this.nudgeEl?.remove(),this.nudgeEl=null,document.getElementById("mushi-nudge-bubble")?.remove();}setSdkFreshness(e){this.sdkFreshness=e,this.isOpen&&this.render();}setRewardsState(e){this.rewardsState=e,this.isOpen&&this.render();}setLeaderboard(e,r=false){this.leaderboardEntries=e,this.leaderboardLoading=r,this.isOpen&&this.step==="leaderboard"&&this.render();}setIdentifiedUser(e){this.identifiedUser=e,this.isOpen&&this.render();}setTesterSession(e,r){this.testerJwt=e,this.testerInfo=r,this.isOpen&&this.render();}setGlobalLeaderboard(e,r=false){this.globalLeaderboard=e,this.globalLeaderboardLoading=r,this.isOpen&&(this.step==="leaderboard"||this.step==="account")&&this.render();}setCrossAppReports(e,r=false){this.crossAppReports=e,this.crossAppLoading=r,this.isOpen&&this.step==="cross-app-reports"&&this.render();}setTesterReputation(e){this.testerReputation=e,this.isOpen&&(this.step==="account"||this.step==="leaderboard")&&this.render();}destroy(){this.successTimer!==null&&(clearTimeout(this.successTimer),this.successTimer=null),this.autoCloseTimer!==null&&(clearTimeout(this.autoCloseTimer),this.autoCloseTimer=null),this.smartHideTimer!==null&&(clearTimeout(this.smartHideTimer),this.smartHideTimer=null),this.smartHideCleanup?.(),this.smartHideCleanup=null,this.teardownViewportHandlers(),this.attachedLaunchers.forEach(e=>e()),this.attachedLaunchers=[],this.removeSelectorHint(),this.removeNudge(),this.removeBodyNudge(),this.host.remove();}syncHostChromeState(){let e=this.host.style;e.setProperty("position","fixed"),e.setProperty("top","0"),e.setProperty("left","0"),e.setProperty("width","0"),e.setProperty("height","0"),e.setProperty("overflow","visible"),e.setProperty("pointer-events","none"),e.setProperty("z-index",String(this.config.zIndex)),e.setProperty("margin","0"),e.setProperty("padding","0"),e.setProperty("border","none"),e.setProperty("background","none");}isSuppressedByHost(){if(!this.config.hideOnSelector||typeof document>"u")return false;try{return !!document.querySelector(this.config.hideOnSelector)}catch{return false}}getWidgetDiagnostics(){let e=this.host.style,r=e.pointerEvents==="none"&&(e.width==="0"||e.width==="0px")&&(e.height==="0"||e.height==="0px"),n=this.host.isConnected?{width:this.host.offsetWidth,height:this.host.offsetHeight}:null,s=this.isSuppressedByHost()||this.isRouteHidden()||!this.triggerVisible,o=this.config.trigger==="banner"&&!this.bannerDismissed&&!this.isSuppressedByHost()&&!this.isRouteHidden()&&this.triggerVisible;return {widgetHostPointerSafe:r,widgetHostBounds:n,widgetSuppressed:s,bannerRendered:o}}syncAttachedLaunchers(){this.attachedLaunchers.forEach(e=>e()),this.attachedLaunchers=[],!(this.config.trigger!=="attach"||!this.config.attachToSelector)&&(typeof document>"u"||this.attachedLaunchers.push(this.attachTo(this.config.attachToSelector)));}syncSmartHide(){if(this.smartHideCleanup?.(),this.smartHideCleanup=null,this.triggerShrunk=false,this.triggerHiddenByScroll=false,!this.config.smartHide||typeof window>"u")return;let e=this.config.smartHide===true?{onScroll:"shrink",onIdleMs:900}:this.config.smartHide;if(!e.onScroll)return;let r=()=>{e.onScroll==="hide"?this.triggerHiddenByScroll=true:this.triggerShrunk=true,this.render(),this.smartHideTimer!==null&&clearTimeout(this.smartHideTimer),this.smartHideTimer=setTimeout(()=>{this.triggerHiddenByScroll=false,this.triggerShrunk=false,this.render();},e.onIdleMs??900);};window.addEventListener("scroll",r,{passive:true}),this.smartHideCleanup=()=>window.removeEventListener("scroll",r);}shouldRenderTrigger(){if(!this.triggerVisible||this.triggerHiddenByScroll||this.config.trigger==="manual"||this.config.trigger==="hidden"||this.config.trigger==="attach"||this.config.trigger==="banner"||this.isMobileSmartHidden()||this.isRouteHidden()||this.isSuppressedByHost())return false;let e=this.config.environments[this.detectEnvironment()];return e!=="never"&&e!=="manual"}static BANNER_HEIGHT=36;static BODY_NUDGE_PROP="--mushi-banner-offset";applyBodyNudge(e,r=t.BANNER_HEIGHT){let n=`${r}px`;document.documentElement.style.setProperty(t.BODY_NUDGE_PROP,n),e==="top"?document.body.dataset.mushiBannerNudged==="top"?document.body.style.paddingTop=n:document.body.style.paddingTop||(document.body.style.paddingTop=n,document.body.dataset.mushiBannerNudged="top"):document.body.dataset.mushiBannerNudged==="bottom"?document.body.style.paddingBottom=n:document.body.style.paddingBottom||(document.body.style.paddingBottom=n,document.body.dataset.mushiBannerNudged="bottom");}trackBannerHeight(e,r){let n=()=>{let s=e.getBoundingClientRect().height;s>0&&this.applyBodyNudge(r,s);};requestAnimationFrame(n),typeof ResizeObserver<"u"&&(this.bannerResizeObserver=new ResizeObserver(n),this.bannerResizeObserver.observe(e));}removeBodyNudge(){this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,document.documentElement.style.removeProperty(t.BODY_NUDGE_PROP);let e=document.body.dataset.mushiBannerNudged;e==="top"?(document.body.style.paddingTop="",delete document.body.dataset.mushiBannerNudged):e==="bottom"&&(document.body.style.paddingBottom="",delete document.body.dataset.mushiBannerNudged);}renderBanner(){if(this.config.trigger!=="banner")return;if(this.bannerDismissed){this.removeBodyNudge();return}if(!this.triggerVisible){this.removeBodyNudge();return}if(this.isRouteHidden()){this.removeBodyNudge();return}if(this.isSuppressedByHost()){this.removeBodyNudge();return}let e=this.config.bannerConfig??{},r=e.variant??"brand",n=e.position??"top",s=e.message?.trim()??"",o=s.length>0,l=e.bugCta??"\u{1F41B} Report a bug",i=e.featureCta!==false,a=e.featureCtaLabel??"Request feature",h=e.zIndex??(this.config.zIndex??99999)-1,p=document.createElement("div");p.className=`mushi-banner ${r} ${n}${o?" mushi-banner--rich":""}`,p.style.setProperty("--mushi-banner-z",String(h)),p.setAttribute("role","banner");let m=document.createElement("button");if(m.className="mushi-banner-dismiss",m.textContent="\u2715",m.setAttribute("aria-label","Dismiss feedback banner"),m.addEventListener("click",()=>{this.bannerDismissed=true,this.removeBodyNudge(),this.render();}),o){let b=document.createElement("div");b.className="mushi-banner-body";let u=e.label===false?null:e.label??"Beta";if(u){let C=document.createElement("span");C.className="mushi-banner-pill",C.textContent=u,b.appendChild(C);}let f=document.createElement("span");f.className="mushi-banner-message",f.textContent=s,b.appendChild(f),p.appendChild(b);let v=document.createElement("nav");v.className="mushi-banner-actions",v.setAttribute("aria-label","Feedback banner actions");let E=(C=false)=>{let w=document.createElement("span");w.className=`mushi-banner-divider${C?" mushi-banner-extra":""}`,w.setAttribute("aria-hidden","true"),w.textContent="|",v.appendChild(w);},M=(C,w,P=false)=>{let y=document.createElement("button");y.type="button",y.className=`mushi-banner-link${P?" mushi-banner-extra":""}`,y.textContent=C,y.addEventListener("click",w),v.appendChild(y);};M(l,()=>this.open()),i&&(E(true),M(a,()=>this.open({featureRequest:true}),true));for(let C of e.links??[]){let w=C.label?.trim();if(!w)continue;let P=C.href&&(/^https?:\/\//i.test(C.href)||C.href.startsWith("/"))?C.href:void 0;if(E(true),P){let y=document.createElement("a");y.className="mushi-banner-link mushi-banner-extra",y.href=P,y.textContent=w,y.target="_blank",y.rel="noopener noreferrer",v.appendChild(y);}else M(w,()=>{C.featureRequest?this.open({featureRequest:true}):this.open();},true);}E(true),M("\u{1F4EC} My reports",()=>this.openReporter(),true),p.appendChild(v),p.appendChild(m);}else {let b=document.createElement("button");if(b.className="mushi-banner-btn",b.textContent=l,b.addEventListener("click",()=>this.open()),p.appendChild(b),i){let f=document.createElement("button");f.className="mushi-banner-btn",f.textContent=a,f.addEventListener("click",()=>this.open({featureRequest:true})),p.appendChild(f);}let u=document.createElement("button");u.className="mushi-banner-my-reports",u.textContent="\u{1F4EC} My reports",u.setAttribute("aria-label","View my submitted reports"),u.addEventListener("click",()=>this.openReporter()),p.appendChild(u),p.appendChild(m);}this.shadow.appendChild(p),this.applyBodyNudge(n),this.trackBannerHeight(p,n);}effectiveTrigger(){if(!this.config.smartHide||typeof window>"u")return this.config.trigger;let e=this.config.smartHide===true?{onMobile:"edge-tab"}:this.config.smartHide;return window.matchMedia("(max-width: 768px)").matches&&e.onMobile==="edge-tab"?"edge-tab":this.config.trigger}isMobileSmartHidden(){if(!this.config.smartHide||typeof window>"u")return false;let e=this.config.smartHide===true?{onMobile:"edge-tab"}:this.config.smartHide;return window.matchMedia("(max-width: 768px)").matches&&e.onMobile==="hide"}detectEnvironment(){let e=typeof location<"u"?location.hostname:"";return e==="localhost"||e==="127.0.0.1"||e.endsWith(".local")?"development":/\b(staging|stage|preview|dev)\b/i.test(e)?"staging":"production"}isRouteHidden(){return !this.config.hideOnRoutes.length||typeof location>"u"?false:this.config.hideOnRoutes.some(e=>location.pathname.includes(e))}getTheme(){let e=this.config.theme;if(e==="light"||e==="dark")return e;if(e==="inherit"){let r=document.documentElement,n=r.getAttribute("data-color-scheme")||r.getAttribute("data-theme")||r.getAttribute("color-scheme")||"";if(/dark/i.test(n))return "dark";if(/light/i.test(n))return "light";if(r.classList.contains("dark"))return "dark";if(r.classList.contains("light"))return "light";try{let o=getComputedStyle(r).backgroundColor.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(o)return .299*+o[1]+.587*+o[2]+.114*+o[3]<128?"dark":"light"}catch{}}return typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}render(){let e=this.getTheme(),r=this.config.position,n=this.locale;this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,this.shadow.innerHTML="";let s=document.createElement("style");if(s.textContent=Ls(e,this.config.accent??"",this.config.accentText??""),this.shadow.appendChild(s),this.renderBanner(),this.shouldRenderTrigger()){let l=this.effectiveTrigger(),i=document.createElement("button");if(i.className=`mushi-trigger ${r}${l==="edge-tab"?" edge-tab":""}${this.triggerShrunk?" shrunk":""}`,i.textContent=this.config.triggerText,i.setAttribute("aria-label",n.widget.trigger),i.setAttribute("aria-haspopup","dialog"),i.setAttribute("aria-expanded",String(this.isOpen)),i.style.zIndex=String(this.config.zIndex),this.applyInsetVars(i),i.addEventListener("click",()=>{this.removeNudge(),this.isOpen?this.close():this.open();}),i.addEventListener("mouseenter",()=>{let a=this.mountedAt?Date.now()-this.mountedAt:0;!this.nudgeShown&&!this.isOpen&&a>=3e4&&this.showNudge();}),i.addEventListener("mouseleave",()=>{this.nudgeEl&&(this.nudgeTimer!==null&&clearTimeout(this.nudgeTimer),this.nudgeTimer=setTimeout(()=>this.removeNudge(),2e3));}),i.addEventListener("keydown",a=>{let h=this.config.draggable;if(!h)return;let p=8,m=typeof h=="object"?h.axis??"both":"both",b=0,u=0;if(m!=="y"&&(a.key==="ArrowLeft"?b=-p:a.key==="ArrowRight"&&(b=p)),m!=="x"&&(a.key==="ArrowUp"?u=-p:a.key==="ArrowDown"&&(u=p)),b!==0||u!==0){a.preventDefault();let f=this.fabPos??{x:0,y:0};this.moveFab(i,f.x+b,f.y+u,false);}}),this.config.draggable&&this.attachDragHandlers(i),this.shadow.appendChild(i),this.fabPos&&this.config.draggable){let a=this.fabPos;this.fabPos={x:0,y:0},this.moveFab(i,a.x,a.y,false);}}let o=document.createElement("div");if(o.className=`mushi-panel ${r}${this.isOpen?" open":" closed"}`,o.setAttribute("role","dialog"),o.setAttribute("aria-modal","true"),o.setAttribute("aria-label",n.widget.title),o.style.zIndex=String(this.config.zIndex+1),this.applyInsetVars(o),this.isOpen){let l=this.renderCtx();o.innerHTML=`${Os(l)}${Ds(l)}${Bs(l)}`,this.shadow.appendChild(o),this.attachHandlers(o),this.trapFocus(o),this.attachViewportHandlers(o);}else this.teardownViewportHandlers();}computeAvoidTopPx(e=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=0;for(let s of r)try{let o=document.querySelector(s);if(!o)continue;let l=o.getBoundingClientRect();l.bottom>n&&l.width>0&&l.height>0&&(n=l.bottom);}catch{}return n>0?Math.ceil(n)+e:null}computeAvoidBottomPx(e=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=0;for(let s of r)try{let o=document.querySelector(s);if(!o)continue;let l=o.getBoundingClientRect();if(l.width>0&&l.height>0){let i=window.innerHeight-l.top+e;i>n&&(n=i);}}catch{}return n>0?Math.ceil(n):null}applyInsetVars(e){let{anchor:r}=this.config;if(r&&Object.keys(r).length>0)["top","right","bottom","left"].forEach(o=>{let l=r[o];l!==void 0&&e.style.setProperty(`--mushi-${o}`,l);}),e.style.setProperty("--mushi-safe-area",this.config.respectSafeArea?"1":"0");else {let{inset:o}=this.config;this.config.respectSafeArea||["top","right","bottom","left"].forEach(l=>{o[l]===void 0&&e.style.setProperty(`--mushi-${l}`,"24px");}),["top","right","bottom","left"].forEach(l=>{let i=o[l];i!==void 0&&e.style.setProperty(`--mushi-${l}`,i==="auto"?"auto":`${i}px`);}),e.style.setProperty("--mushi-safe-area",this.config.respectSafeArea?"1":"0");}let n=r?.top!==void 0||this.config.position?.startsWith("top"),s=r?.bottom!==void 0||this.config.position?.startsWith("bottom")||!this.config.position;if(n){let o=this.computeAvoidTopPx();o!==null&&e.style.setProperty("--mushi-top",`${o}px`);}if(s){let o=this.computeAvoidBottomPx();o!==null&&e.style.setProperty("--mushi-bottom",`${o}px`);}}fabStorageKey(){let e=this.config.projectId??"";return `mushi_fab_pos${e?`_${e}`:""}`}moveFab(e,r,n,s){let o=(()=>{let j=this.config.draggable;return j&&typeof j=="object"?j.axis??"both":"both"})(),l=window.innerWidth,i=window.innerHeight,a=e.offsetWidth||52,h=e.offsetHeight||52,p=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-left")||"0")||0,m=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-right")||"0")||0,b=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-top")||"0")||0,u=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-bottom")||"0")||0,f=8,v=e.getBoundingClientRect(),E=this.fabPos?.x??0,M=this.fabPos?.y??0,C=v.left-E,w=v.top-M,P=p+f-C,y=l-m-f-a-C,k=b+f-w,R=i-u-f-h-w,x=o==="y"?0:Math.max(P,Math.min(y,r)),B=o==="x"?0:Math.max(k,Math.min(R,n)),N=x;if(s){let j=this.config.draggable;(j===true||typeof j=="object"&&(j.snapToEdge??true))&&o!=="y"&&(N=v.left+a/2<l/2?p+f-C:l-m-f-a-C);}this.fabPos={x:N,y:B},e.style.setProperty("--mushi-drag-x",`${N}px`),e.style.setProperty("--mushi-drag-y",`${B}px`),e.style.setProperty("--mushi-drag-active","1");let Z=this.config.draggable;if(Z===true||typeof Z=="object"&&(Z.persist??true))try{localStorage.setItem(this.fabStorageKey(),JSON.stringify(this.fabPos));}catch{}}loadFabPos(){let e=this.config.draggable;if(!(!e||!(e===true||typeof e=="object"&&(e.persist??true))))try{let n=localStorage.getItem(this.fabStorageKey());if(n){let s=JSON.parse(n);typeof s?.x=="number"&&typeof s?.y=="number"&&(this.fabPos=s);}}catch{}}attachDragHandlers(e){this.fabPos===null&&this.loadFabPos();let r=0,n=0,s=0,o=0,l=false,i=false,a=b=>{if(b.button!==0&&b.pointerType!=="touch")return;e.setPointerCapture(b.pointerId),r=b.clientX,n=b.clientY;let u=this.fabPos??{x:0,y:0};s=u.x,o=u.y,l=true,i=false;},h=6,p=b=>{if(!l)return;let u=b.clientX-r,f=b.clientY-n;!i&&Math.hypot(u,f)>h&&(i=true,e.classList.add("dragging"),e.setAttribute("aria-grabbed","true")),i&&(b.preventDefault(),this.moveFab(e,s+u,o+f,false));},m=b=>{if(l){if(l=false,e.classList.remove("dragging"),e.removeAttribute("aria-grabbed"),i){let u=b.clientX-r,f=b.clientY-n;this.moveFab(e,s+u,o+f,true);let v=E=>{E.stopImmediatePropagation(),e.removeEventListener("click",v,{capture:true});};e.addEventListener("click",v,{capture:true});}i=false;}};e.addEventListener("pointerdown",a),e.addEventListener("pointermove",p),e.addEventListener("pointerup",m),e.addEventListener("pointercancel",m);}attachViewportHandlers(e){this.teardownViewportHandlers();let r=window.visualViewport;if(!r)return;let n=()=>{let o=window.innerHeight-r.height-r.offsetTop;o>50?(e.style.setProperty("--mushi-keyboard-inset",`${Math.round(o)}px`),e.classList.add("keyboard-open"),e.querySelector('textarea, input[type="text"]')?.scrollIntoView({block:"nearest",behavior:"smooth"})):(e.style.setProperty("--mushi-keyboard-inset","0px"),e.classList.remove("keyboard-open"));};r.addEventListener("resize",n,{passive:true}),r.addEventListener("scroll",n,{passive:true});let s=()=>requestAnimationFrame(n);e.addEventListener("focusin",s),this.vvCleanup=()=>{r.removeEventListener("resize",n),r.removeEventListener("scroll",n),e.removeEventListener("focusin",s);};}teardownViewportHandlers(){this.vvCleanup?.(),this.vvCleanup=null;}effectiveMinLength(){let e=this.config.minDescriptionLength??20,r=this.config.locale==="auto"?typeof navigator<"u"?navigator.language??"":"":this.config.locale??"";return /^(ja|zh|ko)/i.test(r)?Math.max(4,Math.floor(e/2)):e}tierColor(e){return Rr[e]??Rr.default}renderCtx(){return {config:this.config,rewardsState:this.rewardsState,lastReportId:this.lastReportId,reporterLoading:this.reporterLoading,locale:this.locale,identifiedUser:this.identifiedUser,testerReputation:this.testerReputation,testerInfo:this.testerInfo,screenshotCapturing:this.screenshotCapturing,screenshotAttached:this.screenshotAttached,screenshotPreview:this.screenshotPreview,screenshotHint:this.resolveScreenshotHint(),reporterError:this.reporterError,magicLinkError:this.magicLinkError,elementCapturing:this.elementCapturing,submitting:this.submitting,sdkFreshness:this.sdkFreshness,screenshotError:this.screenshotError,reporterReports:this.reporterReports,magicLinkSending:this.magicLinkSending,magicLinkEmail:this.magicLinkEmail,globalLeaderboardLoading:this.globalLeaderboardLoading,globalLeaderboard:this.globalLeaderboard,elementSelected:this.elementSelected,crossAppLoading:this.crossAppLoading,callbacks:this.callbacks,testerJwt:this.testerJwt,submittedAt:this.submittedAt,step:this.step,selectedReportId:this.selectedReportId,selectedCategory:this.selectedCategory,sdkVersion:this.sdkVersion,reporterComments:this.reporterComments,magicLinkSent:this.magicLinkSent,leaderboardLoading:this.leaderboardLoading,leaderboardEntries:this.leaderboardEntries,lastSubmitQueuedOffline:this.lastSubmitQueuedOffline,featureBoard:this.featureBoard,crossAppReports:this.crossAppReports,allowScreenshotRemove:this.allowScreenshotRemove,unreadCount:()=>this.unreadCount(),tierColor:e=>this.tierColor(e),resolveCustomCategory:e=>this.resolveCustomCategory(e),effectiveMinLength:()=>this.effectiveMinLength(),categoryLabel:e=>this.categoryLabel(e),categoryIcon:e=>this.categoryIcon(e),assistantTurns:this.assistantTurns,assistantSending:this.assistantSending,assistantError:this.assistantError,showAllCategories:this.showAllCategories,showMoreNav:this.showMoreNav,pageFaviconHref:ks()}}attachHandlers(e){let r=this.locale;Ps(e),e.querySelector('[data-action="close"]')?.addEventListener("click",()=>this.close()),e.querySelector('[data-action="back"]')?.addEventListener("click",()=>{this.step==="intent"?(this.step="category",this.selectedCategory=null):this.step==="details"?this.viaFeatureRequest?(this.step="category",this.selectedCategory=null,this.selectedIntent=null,this.viaFeatureRequest=false):(this.step="intent",this.selectedIntent=null):this.step==="reports"?this.step="category":this.step==="report-detail"?(this.step="reports",this.selectedReportId=null):this.step==="leaderboard"?this.step="reports":this.step==="roadmap"?this.step="category":this.step==="assistant"?this.step="category":this.step==="account"?this.step="category":this.step==="cross-app-reports"?this.step="account":this.step==="success"&&(this.step="category",this.selectedCategory=null,this.selectedIntent=null,this.viaFeatureRequest=false),this.step==="category"&&(this.showAllCategories=false,this.showMoreNav=false),this.render();}),e.querySelector('[data-action="show-all-categories"]')?.addEventListener("click",()=>{this.showAllCategories=true,this.render();}),e.querySelector('[data-action="toggle-more-nav"]')?.addEventListener("click",()=>{this.showMoreNav=!this.showMoreNav,this.render();}),e.querySelector('[data-action="assistant"]')?.addEventListener("click",()=>{this.openAssistantTab();}),e.querySelectorAll('[data-action="assistant-suggest"]').forEach(l=>{l.addEventListener("click",()=>{let i=l.dataset.value;i&&this.sendAssistantMessage(i);});});{let l=e.querySelector('[data-action="assistant-send"]');if(l){let i=l.querySelector(".mushi-assistant-input");l.addEventListener("submit",a=>{a.preventDefault();let h=i?.value??"";i&&(i.value=""),this.sendAssistantMessage(h);}),i?.addEventListener("keydown",a=>{a.key==="Enter"&&!a.shiftKey&&(a.preventDefault(),l.requestSubmit());});}}e.querySelector('[data-action="reports"]')?.addEventListener("click",()=>{this.loadReporterReports();}),e.querySelector('[data-action="roadmap"]')?.addEventListener("click",()=>{this.loadFeatureBoard();}),e.querySelectorAll("[data-vote-id]").forEach(l=>{l.addEventListener("click",()=>{let i=l.dataset.voteId;i&&this.voteFeatureBoard(i);});}),e.querySelector('[data-action="feature-request"]')?.addEventListener("click",()=>{this.selectedCategory="other",this.selectedIntent=Lr,this.viaFeatureRequest=true,this.step="details",this.render();}),e.querySelectorAll("[data-report-id]").forEach(l=>{l.addEventListener("click",()=>{let i=l.dataset.reportId;i&&this.loadReporterComments(i);});}),e.querySelector('[data-action="open-leaderboard"]')?.addEventListener("click",()=>{this.step="leaderboard",this.callbacks.onLeaderboardOpen?.(),this.callbacks.onGlobalLeaderboardOpen?.(),this.render();}),e.querySelector('[data-action="open-account"]')?.addEventListener("click",()=>{this.step="account",this.render();}),e.querySelector('[data-action="open-cross-app-reports"]')?.addEventListener("click",()=>{this.step="cross-app-reports",this.crossAppLoading=true,this.crossAppReports=null,this.render(),this.callbacks.onCrossAppReportsOpen?this.callbacks.onCrossAppReportsOpen():(this.crossAppLoading=false,this.crossAppReports=[],this.render());}),e.querySelector('[data-action="open-global-leaderboard"]')?.addEventListener("click",()=>{this.step="leaderboard",this.globalLeaderboard=null,this.globalLeaderboardLoading=true,this.render(),this.callbacks.onGlobalLeaderboardOpen?this.callbacks.onGlobalLeaderboardOpen():(this.globalLeaderboardLoading=false,this.globalLeaderboard=[],this.render());}),e.querySelector('[data-action="send-magic-link"]')?.addEventListener("click",()=>{this.handleMagicLinkSend(e);}),e.querySelector('[data-action="resend-magic-link"]')?.addEventListener("click",()=>{this.magicLinkSent=false,this.magicLinkError="",this.render();}),e.querySelector('[data-action="sign-out-tester"]')?.addEventListener("click",()=>{this.testerJwt=null,this.testerInfo=null,this.testerReputation=null,this.crossAppReports=null,this.magicLinkSent=false,this.magicLinkEmail="",this.step="category",this.callbacks.onTesterSignOut?.(),this.render();}),e.querySelector('[data-action="reporter-reply"]')?.addEventListener("click",()=>{this.submitReporterReply(e);}),e.querySelector('[data-action="reporter-confirms"]')?.addEventListener("click",()=>{this.submitReporterFeedback("confirms");}),e.querySelector('[data-action="reporter-not-fixed"]')?.addEventListener("click",()=>{this.submitReporterReopen();}),e.querySelector('[data-action="view-my-reports"]')?.addEventListener("click",()=>{this.loadReporterReports();}),e.querySelector('[data-action="copy-report-id"]')?.addEventListener("click",l=>{let i=l.currentTarget,a=i.dataset.copyId;if(!a)return;let h=i.innerHTML,p=()=>{i.innerHTML="Copied \u2713",window.setTimeout(()=>{i.isConnected&&(i.innerHTML=h);},1600);};try{navigator.clipboard?.writeText?navigator.clipboard.writeText(a).then(p).catch(()=>p()):p();}catch{p();}}),e.querySelectorAll("[data-category]").forEach(l=>{l.addEventListener("click",()=>{let i=l.dataset.category??"other";this.selectedCategory=i;let a=this.resolveCustomCategory(i);this.step=a&&(!a.intents||a.intents.length===0)?"details":"intent",this.render();});}),e.querySelectorAll("[data-intent]").forEach(l=>{l.addEventListener("click",()=>{this.selectedIntent=l.dataset.intent??null,this.step="details",this.render();});});let n=e.querySelector(".mushi-textarea"),s=e.querySelector('[data-role="char-current"]');if(n&&s){let l=this.effectiveMinLength(),i=()=>{let a=n.value.trim().length;s.textContent=String(a);let h=e.querySelector('[data-role="char-counter"]');h&&(h.style.color=a>=l?"var(--mushi-ok, #22c55e)":"");};n.addEventListener("input",i);}e.querySelectorAll("[data-example]").forEach(l=>{l.addEventListener("click",()=>{let i=l.dataset.example??"";n&&(n.value=i,n.focus(),n.dispatchEvent(new Event("input")));});}),e.querySelector('[data-action="screenshot"]')?.addEventListener("click",()=>{this.callbacks.onScreenshotRequest();}),e.querySelector('[data-action="remove-screenshot"]')?.addEventListener("click",()=>{this.callbacks.onScreenshotRemove?.();}),e.querySelector('[data-action="annotate-screenshot"]')?.addEventListener("click",()=>{let l=e.querySelector('[data-role="annotate-host"]');l&&this.callbacks.onScreenshotAnnotateRequest&&this.callbacks.onScreenshotAnnotateRequest(l);}),e.querySelector('[data-action="element"]')?.addEventListener("click",()=>{this.callbacks.onElementSelectorRequest?.();});let o=()=>{let l=e.querySelector(".mushi-textarea"),i=l?.value?.trim()??"",a=e.querySelector(".mushi-error"),h=this.effectiveMinLength();if(i.length<h){if(a){let m=`${r.step3.tooShort} (${i.length}/${h})`;a.textContent=m,a.style.display="block",l?.focus();}return}this.submitting=true,this.submittedAt=new Date,this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.render();let p=(async()=>{try{let m=this.selectedCategory,b=this.resolveBaseCategory(m),u=this.config.categories&&this.config.categories.length>0,f=this.callbacks.onSubmit({category:b,...u?{userCategory:m}:{},description:i,intent:this.selectedIntent??void 0});return f&&typeof f.then=="function"?await f??null:null}catch{return {reportId:null,queuedOffline:true}}})();this.successTimer=setTimeout(()=>{this.successTimer=null,this.submitting=false,this.step="success",this.render(),p.then(m=>{if(this.step!=="success")return;m&&(this.lastReportId=m.reportId??null,this.lastSubmitQueuedOffline=!!m.queuedOffline,this.render()),this.autoCloseTimer!==null&&clearTimeout(this.autoCloseTimer);let b=this.lastReportId&&this.config.dashboardUrl?6e3:2800;this.autoCloseTimer=setTimeout(()=>{this.autoCloseTimer=null,this.step==="success"&&this.close();},b);});},500);};e.querySelector('[data-action="submit"]')?.addEventListener("click",o),e.addEventListener("keydown",l=>{if(l.key==="Escape"){this.close();return}this.step==="details"&&As(l)&&(l.preventDefault(),o());});}trapFocus(e){requestAnimationFrame(()=>{let r=e.querySelector("textarea");if(r){r.focus();return}let n=e.querySelectorAll("button, textarea, [tabindex]");n.length>0&&n[0].focus();});}unreadCount(){return this.reporterReports.reduce((e,r)=>e+(r.unread_count??0),0)}async loadFeatureBoard(){this.step="roadmap",this.reporterLoading=true,this.reporterError=null,this.render();try{this.featureBoard=await this.callbacks.onFeatureBoardRequest?.()??[];}catch(e){this.reporterError=e instanceof Error?e.message:"Could not load community ideas.";}finally{this.reporterLoading=false,this.render();}}async voteFeatureBoard(e){if(!(!this.callbacks.onFeatureBoardVote||this.reporterLoading)){this.reporterLoading=true,this.render();try{await this.callbacks.onFeatureBoardVote(e),this.featureBoard=await this.callbacks.onFeatureBoardRequest?.()??this.featureBoard;}catch(r){this.reporterError=r instanceof Error?r.message:"Could not update vote.";}finally{this.reporterLoading=false,this.render();}}}async submitReporterReopen(){let e=this.selectedReportId;if(!(!e||this.reporterLoading)){this.reporterLoading=true,this.render();try{this.callbacks.onReporterReopen?await this.callbacks.onReporterReopen(e,"Not fixed for me"):await this.callbacks.onReporterFeedback?.(e,"not_fixed","Not fixed for me"),await this.loadReporterReports();}catch(r){this.reporterError=r instanceof Error?r.message:"Could not reopen report.";}finally{this.reporterLoading=false,this.render();}}}async refreshReporterInboxQuiet(){try{this.reporterReports=await this.callbacks.onReporterReportsRequest?.()??[],this.isOpen&&this.render();}catch{}}async loadReporterReports(){this.step="reports",this.reporterLoading=true,this.reporterError=null,this.render();try{this.reporterReports=await this.callbacks.onReporterReportsRequest?.()??[];}catch(e){this.reporterError=e instanceof Error?e.message:"Could not load reports.";}finally{this.reporterLoading=false,this.render();}}async loadReporterComments(e){this.selectedReportId=e,this.step="report-detail",this.reporterLoading=true,this.reporterError=null,this.render();try{this.reporterComments=await this.callbacks.onReporterCommentsRequest?.(e)??[];}catch(r){this.reporterError=r instanceof Error?r.message:"Could not load thread.";}finally{this.reporterLoading=false,this.render();}}async submitReporterFeedback(e){let r=this.selectedReportId;if(!(!r||this.reporterLoading)){this.reporterLoading=true,this.render();try{await this.callbacks.onReporterFeedback?.(r,e),await this.loadReporterReports(),r&&await this.loadReporterComments(r);}catch(n){this.reporterError=n instanceof Error?n.message:"Could not send feedback.",this.reporterLoading=false,this.render();}}}async submitReporterReply(e){let r=this.selectedReportId,n=e.querySelector('[data-role="reporter-reply"]'),s=e.querySelector('[data-action="reporter-reply"]'),o=n?.value.trim()??"";if(!(!r||!o||this.reporterLoading)){this.reporterLoading=true,s&&(s.disabled=true),this.render();try{await this.callbacks.onReporterReply?.(r,o),n&&(n.value=""),await this.loadReporterComments(r);}catch(l){this.reporterError=l instanceof Error?l.message:"Could not send reply.",this.reporterLoading=false,this.render();}}}async handleMagicLinkSend(e){if(this.magicLinkSending)return;let n=(e.querySelector('[data-role="magic-link-email"]')?.value??this.magicLinkEmail).trim();if(!n||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)){this.magicLinkError="Please enter a valid email address.",this.render();return}this.magicLinkEmail=n,this.magicLinkError="",this.magicLinkSending=true,this.render();try{await this.callbacks.onMushiSignIn?.(n),this.magicLinkSent=!0;}catch(s){this.magicLinkError=s instanceof Error?s.message:"Could not send sign-in link. Try again.";}finally{this.magicLinkSending=false,this.render();}}getRecorderStep(){return this.step}getRecorderCategoryStepIA(){return {sectionLabel:this.shadow.querySelector(".mushi-section-label")?.textContent?.trim()??"",moreToggle:!!this.shadow.querySelector('[data-action="toggle-more-nav"]'),footerStepIndicators:this.shadow.querySelectorAll(".mushi-step-indicator").length}}getRecorderTrigger(){return this.shadow.querySelector(".mushi-trigger")}getRecorderCategoryButton(e){return this.shadow.querySelector(`[data-category="${e}"]`)}getRecorderIntentButton(e){return Array.from(this.shadow.querySelectorAll("[data-intent]")).find(r=>r.dataset.intent===e)??null}getRecorderSubmitButton(){return this.shadow.querySelector('[data-action="submit"]')}recorderClickTrigger(){this.isOpen&&this.close(),this.open();}openReporter(){this.isOpen||(this.isOpen=true,this.render()),this.loadReporterReports();}recorderSelectCategory(e){this.isOpen||this.open(),this.step!=="category"&&(this.selectedCategory=null,this.selectedIntent=null,this.step="category",this.render()),this.selectedCategory=e,this.step="intent",this.render();}recorderSelectIntent(e){!this.isOpen||this.step!=="intent"||(this.selectedIntent=e,this.step="details",this.render());}recorderFocusDescription(){this.shadow.querySelector(".mushi-textarea")?.focus();}recorderSubmit(){this.shadow.querySelector('[data-action="submit"]')?.click();}recorderOpenMyReports(){this.isOpen||this.open(),this.loadReporterReports();}};function Zt(t){if(!t)return null;let e=t.getBoundingClientRect();return e.width===0&&e.height===0?null:{x:e.left+e.width/2,y:e.top+e.height/2}}function Ns(t){if(typeof globalThis>"u")return;let e={ready:()=>t.getIsMounted(),getStep:()=>t.getRecorderStep(),getCategoryStepIA:()=>t.getRecorderCategoryStepIA(),getTriggerCenter:()=>Zt(t.getRecorderTrigger()),getCategoryCenter:r=>Zt(t.getRecorderCategoryButton(r)),getIntentCenter:r=>Zt(t.getRecorderIntentButton(r)),getSubmitCenter:()=>Zt(t.getRecorderSubmitButton()),clickTrigger:()=>t.recorderClickTrigger(),selectCategory:r=>t.recorderSelectCategory(r),selectIntent:r=>t.recorderSelectIntent(r),focusDescription:()=>t.recorderFocusDescription(),submit:()=>t.recorderSubmit(),openMyReports:()=>t.recorderOpenMyReports()};globalThis.__mushiRecorder=e;}var Pr=null,Hr=null,yt=null,vt=null,xt=null,wt=null,St=null,Qt=false,Ye=new Set;function wa(){for(let t of Ye)try{t.onPush?.();}catch{}}function Sa(){for(let t of Ye)try{t.onReplace?.();}catch{}}function ka(){for(let t of Ye)try{t.onPop?.();}catch{}}function Ea(){Qt||typeof window>"u"||(yt=History.prototype.pushState,vt=History.prototype.replaceState,Pr=yt.bind(history),Hr=vt.bind(history),xt=function(...e){let n=(Pr??History.prototype.pushState.bind(history))(...e);return wa(),n},wt=function(...e){let n=(Hr??History.prototype.replaceState.bind(history))(...e);return Sa(),n},history.pushState=xt,history.replaceState=wt,St=()=>ka(),window.addEventListener("popstate",St),Qt=true);}function Us(){!Qt||typeof window>"u"||(St&&(window.removeEventListener("popstate",St),St=null),xt&&history.pushState===xt&&yt&&(history.pushState=yt),wt&&history.replaceState===wt&&vt&&(history.replaceState=vt),xt=null,wt=null,Pr=null,Hr=null,yt=null,vt=null,Qt=false);}function Te(t){return Ea(),Ye.add(t),()=>{Ye.delete(t),Ye.size===0&&Us();}}function Fs(){Ye.clear(),Us();}var Ra=3e4,Ca=3e5,Ta=6e4,Ma=60,Ws="mushi_session_min_day_",nt=[],st=null,ot=null,Be=null,zs=null,Dr=null,it=null,je=false,Et=null,Vs=0,$a=300*1e3,Nr=0,La=900*1e3;function Ur(){return Date.now()<Nr}function Fr(t){t?.startsWith("HTTP_4")&&(Nr=Date.now()+La);}var qs=new Set;function Or(t){return `mushi_rewards_consent_${t}`}function Ia(t){try{return localStorage.getItem(Or(t))==="1"}catch{return false}}function Br(t,e){try{e?localStorage.setItem(Or(t),"1"):localStorage.removeItem(Or(t)),je=e;}catch{}}function Ks(){return new Date().toISOString().slice(0,10)}function Gs(t){try{let e=sessionStorage.getItem(`${Ws}${t}_${Ks()}`);return e?parseInt(e,10):0}catch{return 0}}function Aa(t){let e=Ks(),r=`${Ws}${t}_${e}`;try{let n=Gs(t)+1;return sessionStorage.setItem(r,String(n)),n}catch{return 99}}function Ys(t){it=t.client,Be=t.userId,zs=t.traits??null,Dr=t.reporterToken??null;let{projectId:e}=t,r=Math.max(Ra,t.config.flushIntervalMs??Ca);t.config.consentMode==="auto"?(je=true,Br(e,true)):je=Ia(e),t.config.trackActivity&&Pa(e),st&&clearInterval(st),st=setInterval(()=>_a(t),r),ot&&clearInterval(ot),ot=setInterval(()=>{if(!je||!Be)return;let n=Gs(e);n<Ma&&(Aa(e),at({action:"session_minute",metadata:{minutes_today:n+1}}));},Ta),t.config.showInWidget&&qr(Be).then(n=>{n&&eo(n,t.config);}),t.config.consentMode!=="auto"&&!je&&Da(e,t.config);}function at(t){!je||!Be||nt.push({...t,queuedAt:Date.now()});}async function _a(t){if(!je||!Be||nt.length===0)return;let e=null;if(t.config.verifyUserToken)try{e=await t.config.verifyUserToken();}catch{}if(Ur())return;let r=nt.splice(0,100);try{let n=Dr?await wr(Dr):void 0,s=await t.client.submitActivity(Be,r,{userTraits:zs??void 0,reporterTokenHash:n,optedIn:!0,hostJwt:e??void 0});s.ok||(Fr(s.error?.code),s.error?.code?.startsWith("HTTP_4")||nt.unshift(...r.slice(0,50)));}catch{nt.unshift(...r.slice(0,50));}}async function Xs(t){let e=Date.now();return Et&&e-Vs<$a?Et:qr(t)}async function qr(t){if(!it||Ur())return null;let e=await it.getMyTier(t);return e.ok&&e.data?(Et=e.data,Vs=Date.now(),Et):(Fr(e.error?.code),null)}async function Js(t=10){if(!it||Ur())return null;try{let e=await it.getHallOfFame(t);return e.ok&&e.data?(e.data.data??[]).map(r=>({display_name:r.display_name,tier_name:r.tier_name,total_points:r.total_points,points_30d:r.points_30d})):(Fr(e.error?.code),null)}catch{return null}}function Zs(){st&&(clearInterval(st),st=null),ot&&(clearInterval(ot),ot=null),Qs(),Ha(),be&&(be.remove(),be=null),nt=[],Be=null,it=null,je=false,Et=null,Nr=0;}var tr=null,kt=null,rr=null,js="",er=false;function Pa(t){if(er&&rr)return;er&&Qs(),er=true;let e=()=>{let n=location.pathname;if(n===js)return;js=n,!qs.has(`${t}:${n}`)&&(qs.add(`${t}:${n}`),at({action:"screen_view_unique_per_day",metadata:{route:n}}));};rr=Te({onPush:e,onPop:e}),e(),tr=new MutationObserver(()=>e());let r=document.querySelector("main")??document.body;tr.observe(r,{childList:true,subtree:false}),kt=n=>{let s=n.target.closest("[data-testid]");if(!s)return;let o=s.dataset.testid;o&&at({action:"element_selected",metadata:{testid:o,route:location.pathname}});},document.addEventListener("click",kt,{capture:true,passive:true});}function Qs(){er=false,rr?.(),rr=null,tr?.disconnect(),tr=null,kt&&(document.removeEventListener("click",kt,{capture:true}),kt=null);}var Oe=null;function eo(t,e){if(!e.showInWidget)return;Oe&&Oe.remove(),Oe=document.createElement("div"),Oe.id="mushi-tier-badge",Object.assign(Oe.style,{position:"fixed",bottom:"56px",right:"16px",zIndex:"2147483645",fontFamily:"system-ui, sans-serif"});let r=Oe.attachShadow({mode:"closed"});r.innerHTML=`
2194
+ `,n.textContent=this.locale.step3.tooShort.startsWith("A bit")?"Found a bug? One sentence is enough \u{1F41B}":"\u30D0\u30B0\u3092\u898B\u3064\u3051\u305F\uFF1F\u4E00\u884C\u3067\u5927\u4E08\u592B\u3067\u3059 \u{1F41B}",document.body.appendChild(n),this.nudgeEl=n,this.nudgeTimer!==null&&clearTimeout(this.nudgeTimer),this.nudgeTimer=setTimeout(()=>this.removeNudge(),5e3);}removeNudge(){this.nudgeTimer!==null&&(clearTimeout(this.nudgeTimer),this.nudgeTimer=null),this.nudgeEl?.remove(),this.nudgeEl=null,document.getElementById("mushi-nudge-bubble")?.remove();}setSdkFreshness(e){this.sdkFreshness=e,this.isOpen&&this.render();}setRewardsState(e){this.rewardsState=e,this.isOpen&&this.render();}setLeaderboard(e,r=false){this.leaderboardEntries=e,this.leaderboardLoading=r,this.isOpen&&this.step==="leaderboard"&&this.render();}setIdentifiedUser(e){this.identifiedUser=e,this.isOpen&&this.render();}setTesterSession(e,r){this.testerJwt=e,this.testerInfo=r,this.isOpen&&this.render();}setGlobalLeaderboard(e,r=false){this.globalLeaderboard=e,this.globalLeaderboardLoading=r,this.isOpen&&(this.step==="leaderboard"||this.step==="account")&&this.render();}setCrossAppReports(e,r=false){this.crossAppReports=e,this.crossAppLoading=r,this.isOpen&&this.step==="cross-app-reports"&&this.render();}setTesterReputation(e){this.testerReputation=e,this.isOpen&&(this.step==="account"||this.step==="leaderboard")&&this.render();}destroy(){this.successTimer!==null&&(clearTimeout(this.successTimer),this.successTimer=null),this.autoCloseTimer!==null&&(clearTimeout(this.autoCloseTimer),this.autoCloseTimer=null),this.smartHideTimer!==null&&(clearTimeout(this.smartHideTimer),this.smartHideTimer=null),this.smartHideCleanup?.(),this.smartHideCleanup=null,this.teardownViewportHandlers(),this.attachedLaunchers.forEach(e=>e()),this.attachedLaunchers=[],this.removeSelectorHint(),this.removeNudge(),this.removeBodyNudge(),this.host.remove();}syncHostChromeState(){let e=this.host.style;e.setProperty("position","fixed"),e.setProperty("top","0"),e.setProperty("left","0"),e.setProperty("width","0"),e.setProperty("height","0"),e.setProperty("overflow","visible"),e.setProperty("pointer-events","none"),e.setProperty("z-index",String(this.config.zIndex)),e.setProperty("margin","0"),e.setProperty("padding","0"),e.setProperty("border","none"),e.setProperty("background","none");}isSuppressedByHost(){if(!this.config.hideOnSelector||typeof document>"u")return false;try{return !!document.querySelector(this.config.hideOnSelector)}catch{return false}}getWidgetDiagnostics(){let e=this.host.style,r=e.pointerEvents==="none"&&(e.width==="0"||e.width==="0px")&&(e.height==="0"||e.height==="0px"),n=this.host.isConnected?{width:this.host.offsetWidth,height:this.host.offsetHeight}:null,s=this.isSuppressedByHost()||this.isRouteHidden()||!this.triggerVisible,o=this.config.trigger==="banner"&&!this.bannerDismissed&&!this.isSuppressedByHost()&&!this.isRouteHidden()&&this.triggerVisible;return {widgetHostPointerSafe:r,widgetHostBounds:n,widgetSuppressed:s,bannerRendered:o}}syncAttachedLaunchers(){this.attachedLaunchers.forEach(e=>e()),this.attachedLaunchers=[],!(this.config.trigger!=="attach"||!this.config.attachToSelector)&&(typeof document>"u"||this.attachedLaunchers.push(this.attachTo(this.config.attachToSelector)));}syncSmartHide(){if(this.smartHideCleanup?.(),this.smartHideCleanup=null,this.triggerShrunk=false,this.triggerHiddenByScroll=false,!this.config.smartHide||typeof window>"u")return;let e=this.config.smartHide===true?{onScroll:"shrink",onIdleMs:900}:this.config.smartHide;if(!e.onScroll)return;let r=()=>{e.onScroll==="hide"?this.triggerHiddenByScroll=true:this.triggerShrunk=true,this.render(),this.smartHideTimer!==null&&clearTimeout(this.smartHideTimer),this.smartHideTimer=setTimeout(()=>{this.triggerHiddenByScroll=false,this.triggerShrunk=false,this.render();},e.onIdleMs??900);};window.addEventListener("scroll",r,{passive:true}),this.smartHideCleanup=()=>window.removeEventListener("scroll",r);}shouldRenderTrigger(){if(!this.triggerVisible||this.triggerHiddenByScroll||this.config.trigger==="manual"||this.config.trigger==="hidden"||this.config.trigger==="attach"||this.config.trigger==="banner"||this.isMobileSmartHidden()||this.isRouteHidden()||this.isSuppressedByHost())return false;let e=this.config.environments[this.detectEnvironment()];return e!=="never"&&e!=="manual"}static BANNER_HEIGHT=36;static BODY_NUDGE_PROP="--mushi-banner-offset";applyBodyNudge(e,r=t.BANNER_HEIGHT){let n=`${r}px`;document.documentElement.style.setProperty(t.BODY_NUDGE_PROP,n),e==="top"?document.body.dataset.mushiBannerNudged==="top"?document.body.style.paddingTop=n:document.body.style.paddingTop||(document.body.style.paddingTop=n,document.body.dataset.mushiBannerNudged="top"):document.body.dataset.mushiBannerNudged==="bottom"?document.body.style.paddingBottom=n:document.body.style.paddingBottom||(document.body.style.paddingBottom=n,document.body.dataset.mushiBannerNudged="bottom");}trackBannerHeight(e,r){let n=()=>{let s=e.getBoundingClientRect().height;s>0&&this.applyBodyNudge(r,s);};requestAnimationFrame(n),typeof ResizeObserver<"u"&&(this.bannerResizeObserver=new ResizeObserver(n),this.bannerResizeObserver.observe(e));}removeBodyNudge(){this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,document.documentElement.style.removeProperty(t.BODY_NUDGE_PROP);let e=document.body.dataset.mushiBannerNudged;e==="top"?(document.body.style.paddingTop="",delete document.body.dataset.mushiBannerNudged):e==="bottom"&&(document.body.style.paddingBottom="",delete document.body.dataset.mushiBannerNudged);}renderBanner(){if(this.config.trigger!=="banner")return;if(this.bannerDismissed){this.removeBodyNudge();return}if(!this.triggerVisible){this.removeBodyNudge();return}if(this.isRouteHidden()){this.removeBodyNudge();return}if(this.isSuppressedByHost()){this.removeBodyNudge();return}let e=this.config.bannerConfig??{},r=e.variant??"brand",n=e.position??"top",s=e.message?.trim()??"",o=s.length>0,a=e.bugCta??"\u{1F41B} Report a bug",i=e.featureCta!==false,l=e.featureCtaLabel??"Request feature",p=e.zIndex??(this.config.zIndex??99999)-1,h=document.createElement("div");h.className=`mushi-banner ${r} ${n}${o?" mushi-banner--rich":""}`,h.style.setProperty("--mushi-banner-z",String(p)),h.setAttribute("role","banner");let m=document.createElement("button");if(m.className="mushi-banner-dismiss",m.textContent="\u2715",m.setAttribute("aria-label","Dismiss feedback banner"),m.addEventListener("click",()=>{this.bannerDismissed=true,this.removeBodyNudge(),this.render();}),o){let b=document.createElement("div");b.className="mushi-banner-body";let u=e.label===false?null:e.label??"Beta";if(u){let R=document.createElement("span");R.className="mushi-banner-pill",R.textContent=u,b.appendChild(R);}let f=document.createElement("span");f.className="mushi-banner-message",f.textContent=s,b.appendChild(f),h.appendChild(b);let v=document.createElement("nav");v.className="mushi-banner-actions",v.setAttribute("aria-label","Feedback banner actions");let k=(R=false)=>{let w=document.createElement("span");w.className=`mushi-banner-divider${R?" mushi-banner-extra":""}`,w.setAttribute("aria-hidden","true"),w.textContent="|",v.appendChild(w);},T=(R,w,A=false)=>{let y=document.createElement("button");y.type="button",y.className=`mushi-banner-link${A?" mushi-banner-extra":""}`,y.textContent=R,y.addEventListener("click",w),v.appendChild(y);};T(a,()=>this.open()),i&&(k(true),T(l,()=>this.open({featureRequest:true}),true));for(let R of e.links??[]){let w=R.label?.trim();if(!w)continue;let A=R.href&&(/^https?:\/\//i.test(R.href)||R.href.startsWith("/"))?R.href:void 0;if(k(true),A){let y=document.createElement("a");y.className="mushi-banner-link mushi-banner-extra",y.href=A,y.textContent=w,y.target="_blank",y.rel="noopener noreferrer",v.appendChild(y);}else T(w,()=>{R.featureRequest?this.open({featureRequest:true}):this.open();},true);}k(true),T("\u{1F4EC} My reports",()=>this.openReporter(),true),h.appendChild(v),h.appendChild(m);}else {let b=document.createElement("button");if(b.className="mushi-banner-btn",b.textContent=a,b.addEventListener("click",()=>this.open()),h.appendChild(b),i){let f=document.createElement("button");f.className="mushi-banner-btn",f.textContent=l,f.addEventListener("click",()=>this.open({featureRequest:true})),h.appendChild(f);}let u=document.createElement("button");u.className="mushi-banner-my-reports",u.textContent="\u{1F4EC} My reports",u.setAttribute("aria-label","View my submitted reports"),u.addEventListener("click",()=>this.openReporter()),h.appendChild(u),h.appendChild(m);}this.shadow.appendChild(h),this.applyBodyNudge(n),this.trackBannerHeight(h,n);}effectiveTrigger(){if(!this.config.smartHide||typeof window>"u")return this.config.trigger;let e=this.config.smartHide===true?{onMobile:"edge-tab"}:this.config.smartHide;return window.matchMedia("(max-width: 768px)").matches&&e.onMobile==="edge-tab"?"edge-tab":this.config.trigger}isMobileSmartHidden(){if(!this.config.smartHide||typeof window>"u")return false;let e=this.config.smartHide===true?{onMobile:"edge-tab"}:this.config.smartHide;return window.matchMedia("(max-width: 768px)").matches&&e.onMobile==="hide"}detectEnvironment(){let e=typeof location<"u"?location.hostname:"";return e==="localhost"||e==="127.0.0.1"||e.endsWith(".local")?"development":/\b(staging|stage|preview|dev)\b/i.test(e)?"staging":"production"}isRouteHidden(){return !this.config.hideOnRoutes.length||typeof location>"u"?false:this.config.hideOnRoutes.some(e=>location.pathname.includes(e))}getTheme(){let e=this.config.theme;if(e==="light"||e==="dark")return e;if(e==="inherit"){let r=document.documentElement,n=r.getAttribute("data-color-scheme")||r.getAttribute("data-theme")||r.getAttribute("color-scheme")||"";if(/dark/i.test(n))return "dark";if(/light/i.test(n))return "light";if(r.classList.contains("dark"))return "dark";if(r.classList.contains("light"))return "light";try{let o=getComputedStyle(r).backgroundColor.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/);if(o)return .299*+o[1]+.587*+o[2]+.114*+o[3]<128?"dark":"light"}catch{}}return typeof window<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}captureFormDrafts(){let e=this.shadow.querySelector('textarea.mushi-textarea:not([data-role="reporter-reply"])'),r=this.shadow.querySelector('[data-role="magic-link-email"]'),n=this.shadow.querySelector('textarea[data-role="reporter-reply"]');e&&(this.draftDescription=e.value),r&&(this.draftEmail=r.value),n&&(this.draftReply=n.value);let s=this.shadow.activeElement;if(this.draftFocus=s&&s===e?"description":s&&s===r?"email":s&&s===n?"reply":null,this.draftFocus&&s){let o=s;this.draftSelStart=o.selectionStart??o.value.length,this.draftSelEnd=o.selectionEnd??o.value.length;}}restoreFormDrafts(e){let r=[{selector:'textarea.mushi-textarea:not([data-role="reporter-reply"])',value:this.draftDescription,key:"description"},{selector:'[data-role="magic-link-email"]',value:this.draftEmail,key:"email"},{selector:'textarea[data-role="reporter-reply"]',value:this.draftReply,key:"reply"}];for(let n of r){let s=e.querySelector(n.selector);if(s&&(n.value&&s.value!==n.value&&(s.value=n.value,s.dispatchEvent(new Event("input"))),this.draftFocus===n.key)){let o=()=>{s.focus();try{s.setSelectionRange(this.draftSelStart,this.draftSelEnd);}catch{}};typeof requestAnimationFrame=="function"?requestAnimationFrame(o):o();}}}clearFormDrafts(){this.draftDescription="",this.draftEmail="",this.draftReply="",this.draftFocus=null,this.draftSelStart=0,this.draftSelEnd=0;}render(){let e=this.getTheme(),r=this.config.position,n=this.locale;this.isOpen&&this.captureFormDrafts(),this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,this.shadow.innerHTML="";let s=document.createElement("style");if(s.textContent=Hs(e,this.config.accent??"",this.config.accentText??""),this.shadow.appendChild(s),this.renderBanner(),this.shouldRenderTrigger()){let a=this.effectiveTrigger(),i=document.createElement("button");if(i.className=`mushi-trigger ${r}${a==="edge-tab"?" edge-tab":""}${this.triggerShrunk?" shrunk":""}`,i.textContent=this.config.triggerText,i.setAttribute("aria-label",n.widget.trigger),i.setAttribute("aria-haspopup","dialog"),i.setAttribute("aria-expanded",String(this.isOpen)),i.style.zIndex=String(this.config.zIndex),this.applyInsetVars(i),i.addEventListener("click",()=>{this.removeNudge(),this.isOpen?this.close():this.open();}),i.addEventListener("mouseenter",()=>{let l=this.mountedAt?Date.now()-this.mountedAt:0;!this.nudgeShown&&!this.isOpen&&l>=3e4&&this.showNudge();}),i.addEventListener("mouseleave",()=>{this.nudgeEl&&(this.nudgeTimer!==null&&clearTimeout(this.nudgeTimer),this.nudgeTimer=setTimeout(()=>this.removeNudge(),2e3));}),i.addEventListener("keydown",l=>{let p=this.config.draggable;if(!p)return;let h=8,m=typeof p=="object"?p.axis??"both":"both",b=0,u=0;if(m!=="y"&&(l.key==="ArrowLeft"?b=-h:l.key==="ArrowRight"&&(b=h)),m!=="x"&&(l.key==="ArrowUp"?u=-h:l.key==="ArrowDown"&&(u=h)),b!==0||u!==0){l.preventDefault();let f=this.fabPos??{x:0,y:0};this.moveFab(i,f.x+b,f.y+u,false);}}),this.config.draggable&&this.attachDragHandlers(i),this.shadow.appendChild(i),this.fabPos&&this.config.draggable){let l=this.fabPos;this.fabPos={x:0,y:0},this.moveFab(i,l.x,l.y,false);}}let o=document.createElement("div");if(o.className=`mushi-panel ${r}${this.isOpen?" open":" closed"}`,o.setAttribute("role","dialog"),o.setAttribute("aria-modal","true"),o.setAttribute("aria-label",n.widget.title),o.style.zIndex=String(this.config.zIndex+1),this.applyInsetVars(o),this.isOpen){let a=this.renderCtx();o.innerHTML=`${qs(a)}${Fs(a)}${js(a)}`,this.shadow.appendChild(o),this.attachHandlers(o),this.trapFocus(o),this.restoreFormDrafts(o),this.attachViewportHandlers(o);}else this.teardownViewportHandlers();}computeAvoidTopPx(e=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=0;for(let s of r)try{let o=document.querySelector(s);if(!o)continue;let a=o.getBoundingClientRect();a.bottom>n&&a.width>0&&a.height>0&&(n=a.bottom);}catch{}return n>0?Math.ceil(n)+e:null}computeAvoidBottomPx(e=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=0;for(let s of r)try{let o=document.querySelector(s);if(!o)continue;let a=o.getBoundingClientRect();if(a.width>0&&a.height>0){let i=window.innerHeight-a.top+e;i>n&&(n=i);}}catch{}return n>0?Math.ceil(n):null}applyInsetVars(e){let{anchor:r}=this.config;if(r&&Object.keys(r).length>0)["top","right","bottom","left"].forEach(o=>{let a=r[o];a!==void 0&&e.style.setProperty(`--mushi-${o}`,a);}),e.style.setProperty("--mushi-safe-area",this.config.respectSafeArea?"1":"0");else {let{inset:o}=this.config;this.config.respectSafeArea||["top","right","bottom","left"].forEach(a=>{o[a]===void 0&&e.style.setProperty(`--mushi-${a}`,"24px");}),["top","right","bottom","left"].forEach(a=>{let i=o[a];i!==void 0&&e.style.setProperty(`--mushi-${a}`,i==="auto"?"auto":`${i}px`);}),e.style.setProperty("--mushi-safe-area",this.config.respectSafeArea?"1":"0");}let n=r?.top!==void 0||this.config.position?.startsWith("top"),s=r?.bottom!==void 0||this.config.position?.startsWith("bottom")||!this.config.position;if(n){let o=this.computeAvoidTopPx();o!==null&&e.style.setProperty("--mushi-top",`${o}px`);}if(s){let o=this.computeAvoidBottomPx();o!==null&&e.style.setProperty("--mushi-bottom",`${o}px`);}}fabStorageKey(){let e=this.config.projectId??"";return `mushi_fab_pos${e?`_${e}`:""}`}moveFab(e,r,n,s){let o=(()=>{let j=this.config.draggable;return j&&typeof j=="object"?j.axis??"both":"both"})(),a=window.innerWidth,i=window.innerHeight,l=e.offsetWidth||52,p=e.offsetHeight||52,h=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-left")||"0")||0,m=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-right")||"0")||0,b=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-top")||"0")||0,u=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--sai-bottom")||"0")||0,f=8,v=e.getBoundingClientRect(),k=this.fabPos?.x??0,T=this.fabPos?.y??0,R=v.left-k,w=v.top-T,A=h+f-R,y=a-m-f-l-R,E=b+f-w,C=i-u-f-p-w,x=o==="y"?0:Math.max(A,Math.min(y,r)),B=o==="x"?0:Math.max(E,Math.min(C,n)),N=x;if(s){let j=this.config.draggable;(j===true||typeof j=="object"&&(j.snapToEdge??true))&&o!=="y"&&(N=v.left+l/2<a/2?h+f-R:a-m-f-l-R);}this.fabPos={x:N,y:B},e.style.setProperty("--mushi-drag-x",`${N}px`),e.style.setProperty("--mushi-drag-y",`${B}px`),e.style.setProperty("--mushi-drag-active","1");let Z=this.config.draggable;if(Z===true||typeof Z=="object"&&(Z.persist??true))try{localStorage.setItem(this.fabStorageKey(),JSON.stringify(this.fabPos));}catch{}}loadFabPos(){let e=this.config.draggable;if(!(!e||!(e===true||typeof e=="object"&&(e.persist??true))))try{let n=localStorage.getItem(this.fabStorageKey());if(n){let s=JSON.parse(n);typeof s?.x=="number"&&typeof s?.y=="number"&&(this.fabPos=s);}}catch{}}attachDragHandlers(e){this.fabPos===null&&this.loadFabPos();let r=0,n=0,s=0,o=0,a=false,i=false,l=b=>{if(b.button!==0&&b.pointerType!=="touch")return;e.setPointerCapture(b.pointerId),r=b.clientX,n=b.clientY;let u=this.fabPos??{x:0,y:0};s=u.x,o=u.y,a=true,i=false;},p=6,h=b=>{if(!a)return;let u=b.clientX-r,f=b.clientY-n;!i&&Math.hypot(u,f)>p&&(i=true,e.classList.add("dragging"),e.setAttribute("aria-grabbed","true")),i&&(b.preventDefault(),this.moveFab(e,s+u,o+f,false));},m=b=>{if(a){if(a=false,e.classList.remove("dragging"),e.removeAttribute("aria-grabbed"),i){let u=b.clientX-r,f=b.clientY-n;this.moveFab(e,s+u,o+f,true);let v=k=>{k.stopImmediatePropagation(),e.removeEventListener("click",v,{capture:true});};e.addEventListener("click",v,{capture:true});}i=false;}};e.addEventListener("pointerdown",l),e.addEventListener("pointermove",h),e.addEventListener("pointerup",m),e.addEventListener("pointercancel",m);}attachViewportHandlers(e){this.teardownViewportHandlers();let r=window.visualViewport;if(!r)return;let n=()=>{let o=window.innerHeight-r.height-r.offsetTop;o>50?(e.style.setProperty("--mushi-keyboard-inset",`${Math.round(o)}px`),e.classList.add("keyboard-open"),e.querySelector('textarea, input[type="text"]')?.scrollIntoView({block:"nearest",behavior:"smooth"})):(e.style.setProperty("--mushi-keyboard-inset","0px"),e.classList.remove("keyboard-open"));};r.addEventListener("resize",n,{passive:true}),r.addEventListener("scroll",n,{passive:true});let s=()=>requestAnimationFrame(n);e.addEventListener("focusin",s),this.vvCleanup=()=>{r.removeEventListener("resize",n),r.removeEventListener("scroll",n),e.removeEventListener("focusin",s);};}teardownViewportHandlers(){this.vvCleanup?.(),this.vvCleanup=null;}effectiveMinLength(){let e=this.config.minDescriptionLength??20,r=this.config.locale==="auto"?typeof navigator<"u"?navigator.language??"":"":this.config.locale??"";return /^(ja|zh|ko)/i.test(r)?Math.max(4,Math.floor(e/2)):e}tierColor(e){return Cr[e]??Cr.default}renderCtx(){return {config:this.config,rewardsState:this.rewardsState,lastReportId:this.lastReportId,reporterLoading:this.reporterLoading,locale:this.locale,identifiedUser:this.identifiedUser,testerReputation:this.testerReputation,testerInfo:this.testerInfo,screenshotCapturing:this.screenshotCapturing,screenshotAttached:this.screenshotAttached,screenshotPreview:this.screenshotPreview,screenshotHint:this.resolveScreenshotHint(),screenshotAvailable:this.screenshotAvailable,elementAvailable:this.elementAvailable,reporterError:this.reporterError,magicLinkError:this.magicLinkError,elementCapturing:this.elementCapturing,submitting:this.submitting,sdkFreshness:this.sdkFreshness,screenshotError:this.screenshotError,reporterReports:this.reporterReports,magicLinkSending:this.magicLinkSending,magicLinkEmail:this.magicLinkEmail,globalLeaderboardLoading:this.globalLeaderboardLoading,globalLeaderboard:this.globalLeaderboard,elementSelected:this.elementSelected,elementError:this.elementError,crossAppLoading:this.crossAppLoading,callbacks:this.callbacks,testerJwt:this.testerJwt,submittedAt:this.submittedAt,step:this.step,selectedReportId:this.selectedReportId,selectedCategory:this.selectedCategory,sdkVersion:this.sdkVersion,reporterComments:this.reporterComments,magicLinkSent:this.magicLinkSent,leaderboardLoading:this.leaderboardLoading,leaderboardEntries:this.leaderboardEntries,lastSubmitQueuedOffline:this.lastSubmitQueuedOffline,featureBoard:this.featureBoard,crossAppReports:this.crossAppReports,allowScreenshotRemove:this.allowScreenshotRemove,unreadCount:()=>this.unreadCount(),tierColor:e=>this.tierColor(e),resolveCustomCategory:e=>this.resolveCustomCategory(e),effectiveMinLength:()=>this.effectiveMinLength(),categoryLabel:e=>this.categoryLabel(e),categoryIcon:e=>this.categoryIcon(e),assistantTurns:this.assistantTurns,assistantSending:this.assistantSending,assistantError:this.assistantError,showAllCategories:this.showAllCategories,showMoreNav:this.showMoreNav,pageFaviconHref:Ms()}}attachHandlers(e){let r=this.locale;Ns(e),e.querySelector('[data-action="close"]')?.addEventListener("click",()=>this.close()),e.querySelector('[data-action="back"]')?.addEventListener("click",()=>{this.step==="intent"?(this.step="category",this.selectedCategory=null):this.step==="details"?this.viaFeatureRequest?(this.step="category",this.selectedCategory=null,this.selectedIntent=null,this.viaFeatureRequest=false):(this.step="intent",this.selectedIntent=null):this.step==="reports"?this.step="category":this.step==="report-detail"?(this.step="reports",this.selectedReportId=null):this.step==="leaderboard"?this.step="reports":this.step==="roadmap"?this.step="category":this.step==="assistant"?this.step="category":this.step==="account"?this.step="category":this.step==="cross-app-reports"?this.step="account":this.step==="success"&&(this.step="category",this.selectedCategory=null,this.selectedIntent=null,this.viaFeatureRequest=false),this.step==="category"&&(this.showAllCategories=false,this.showMoreNav=false),this.render();}),e.querySelector('[data-action="show-all-categories"]')?.addEventListener("click",()=>{this.showAllCategories=true,this.render();}),e.querySelector('[data-action="toggle-more-nav"]')?.addEventListener("click",()=>{this.showMoreNav=!this.showMoreNav,this.render();}),e.querySelector('[data-action="assistant"]')?.addEventListener("click",()=>{this.openAssistantTab();}),e.querySelectorAll('[data-action="assistant-suggest"]').forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.value;i&&this.sendAssistantMessage(i);});});{let a=e.querySelector('[data-action="assistant-send"]');if(a){let i=a.querySelector(".mushi-assistant-input");a.addEventListener("submit",l=>{l.preventDefault();let p=i?.value??"";i&&(i.value=""),this.sendAssistantMessage(p);}),i?.addEventListener("keydown",l=>{l.key==="Enter"&&!l.shiftKey&&(l.preventDefault(),a.requestSubmit());});}}e.querySelector('[data-action="reports"]')?.addEventListener("click",()=>{this.loadReporterReports();}),e.querySelector('[data-action="roadmap"]')?.addEventListener("click",()=>{this.loadFeatureBoard();}),e.querySelectorAll("[data-vote-id]").forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.voteId;i&&this.voteFeatureBoard(i);});}),e.querySelector('[data-action="feature-request"]')?.addEventListener("click",()=>{this.selectedCategory="other",this.selectedIntent=Lr,this.viaFeatureRequest=true,this.step="details",this.render();}),e.querySelectorAll("[data-report-id]").forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.reportId;i&&this.loadReporterComments(i);});}),e.querySelector('[data-action="open-leaderboard"]')?.addEventListener("click",()=>{this.step="leaderboard",this.callbacks.onLeaderboardOpen?.(),this.callbacks.onGlobalLeaderboardOpen?.(),this.render();}),e.querySelector('[data-action="open-account"]')?.addEventListener("click",()=>{this.step="account",this.render();}),e.querySelector('[data-action="open-cross-app-reports"]')?.addEventListener("click",()=>{this.step="cross-app-reports",this.crossAppLoading=true,this.crossAppReports=null,this.render(),this.callbacks.onCrossAppReportsOpen?this.callbacks.onCrossAppReportsOpen():(this.crossAppLoading=false,this.crossAppReports=[],this.render());}),e.querySelector('[data-action="open-global-leaderboard"]')?.addEventListener("click",()=>{this.step="leaderboard",this.globalLeaderboard=null,this.globalLeaderboardLoading=true,this.render(),this.callbacks.onGlobalLeaderboardOpen?this.callbacks.onGlobalLeaderboardOpen():(this.globalLeaderboardLoading=false,this.globalLeaderboard=[],this.render());}),e.querySelector('[data-action="send-magic-link"]')?.addEventListener("click",()=>{this.handleMagicLinkSend(e);}),e.querySelector('[data-action="resend-magic-link"]')?.addEventListener("click",()=>{this.magicLinkSent=false,this.magicLinkError="",this.render();}),e.querySelector('[data-action="sign-out-tester"]')?.addEventListener("click",()=>{this.testerJwt=null,this.testerInfo=null,this.testerReputation=null,this.crossAppReports=null,this.magicLinkSent=false,this.magicLinkEmail="",this.step="category",this.callbacks.onTesterSignOut?.(),this.render();}),e.querySelector('[data-action="reporter-reply"]')?.addEventListener("click",()=>{this.submitReporterReply(e);}),e.querySelector('[data-action="reporter-confirms"]')?.addEventListener("click",()=>{this.submitReporterFeedback("confirms");}),e.querySelector('[data-action="reporter-not-fixed"]')?.addEventListener("click",()=>{this.submitReporterReopen();}),e.querySelector('[data-action="view-my-reports"]')?.addEventListener("click",()=>{this.loadReporterReports();}),e.querySelector('[data-action="copy-report-id"]')?.addEventListener("click",a=>{let i=a.currentTarget,l=i.dataset.copyId;if(!l)return;let p=i.innerHTML,h=()=>{i.innerHTML="Copied \u2713",window.setTimeout(()=>{i.isConnected&&(i.innerHTML=p);},1600);};try{navigator.clipboard?.writeText?navigator.clipboard.writeText(l).then(h).catch(()=>h()):h();}catch{h();}}),e.querySelectorAll("[data-category]").forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.category??"other";this.selectedCategory=i;let l=this.resolveCustomCategory(i);this.step=l&&(!l.intents||l.intents.length===0)?"details":"intent",this.render();});}),e.querySelectorAll("[data-intent]").forEach(a=>{a.addEventListener("click",()=>{this.selectedIntent=a.dataset.intent??null,this.step="details",this.render();});});let n=e.querySelector(".mushi-textarea"),s=e.querySelector('[data-role="char-current"]');if(n&&s){let a=this.effectiveMinLength(),i=()=>{let l=n.value.trim().length;s.textContent=String(l);let p=e.querySelector('[data-role="char-counter"]');p&&(p.style.color=l>=a?"var(--mushi-ok, #22c55e)":"");};n.addEventListener("input",i);}e.querySelectorAll("[data-example]").forEach(a=>{a.addEventListener("click",()=>{let i=a.dataset.example??"";n&&(n.value=i,n.focus(),n.dispatchEvent(new Event("input")));});}),e.querySelector('[data-action="screenshot"]')?.addEventListener("click",()=>{this.callbacks.onScreenshotRequest();}),e.querySelector('[data-action="remove-screenshot"]')?.addEventListener("click",()=>{this.callbacks.onScreenshotRemove?.();}),e.querySelector('[data-action="annotate-screenshot"]')?.addEventListener("click",()=>{let a=e.querySelector('[data-role="annotate-host"]');a&&this.callbacks.onScreenshotAnnotateRequest&&this.callbacks.onScreenshotAnnotateRequest(a);}),e.querySelector('[data-action="element"]')?.addEventListener("click",()=>{this.callbacks.onElementSelectorRequest?.();});let o=()=>{let a=e.querySelector(".mushi-textarea"),i=a?.value?.trim()??"",l=e.querySelector(".mushi-error"),p=this.effectiveMinLength();if(i.length<p){if(l){let m=`${r.step3.tooShort} (${i.length}/${p})`;l.textContent=m,l.style.display="block",a?.focus();}return}this.submitting=true,this.submittedAt=new Date,this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.render();let h=(async()=>{try{let m=this.selectedCategory,b=this.resolveBaseCategory(m),u=this.config.categories&&this.config.categories.length>0,f=this.callbacks.onSubmit({category:b,...u?{userCategory:m}:{},description:i,intent:this.selectedIntent??void 0});return f&&typeof f.then=="function"?await f??null:null}catch{return {reportId:null,queuedOffline:true}}})();this.successTimer=setTimeout(()=>{this.successTimer=null,this.submitting=false,this.step="success",this.render(),this.draftDescription="",h.then(m=>{if(this.step!=="success")return;m&&(this.lastReportId=m.reportId??null,this.lastSubmitQueuedOffline=!!m.queuedOffline,this.render()),this.autoCloseTimer!==null&&clearTimeout(this.autoCloseTimer);let b=this.lastReportId&&this.config.dashboardUrl?6e3:2800;this.autoCloseTimer=setTimeout(()=>{this.autoCloseTimer=null,this.step==="success"&&this.close();},b);});},500);};e.querySelector('[data-action="submit"]')?.addEventListener("click",o),e.addEventListener("keydown",a=>{if(a.key==="Escape"){this.close();return}this.step==="details"&&Os(a)&&(a.preventDefault(),o());});}trapFocus(e){requestAnimationFrame(()=>{let r=e.querySelector("textarea");if(r){r.focus();return}let n=e.querySelectorAll("button, textarea, [tabindex]");n.length>0&&n[0].focus();});}unreadCount(){return this.reporterReports.reduce((e,r)=>e+(r.unread_count??0),0)}async loadFeatureBoard(){this.step="roadmap",this.reporterLoading=true,this.reporterError=null,this.render();try{this.featureBoard=await this.callbacks.onFeatureBoardRequest?.()??[];}catch(e){this.reporterError=e instanceof Error?e.message:"Could not load community ideas.";}finally{this.reporterLoading=false,this.render();}}async voteFeatureBoard(e){if(!(!this.callbacks.onFeatureBoardVote||this.reporterLoading)){this.reporterLoading=true,this.render();try{await this.callbacks.onFeatureBoardVote(e),this.featureBoard=await this.callbacks.onFeatureBoardRequest?.()??this.featureBoard;}catch(r){this.reporterError=r instanceof Error?r.message:"Could not update vote.";}finally{this.reporterLoading=false,this.render();}}}async submitReporterReopen(){let e=this.selectedReportId;if(!(!e||this.reporterLoading)){this.reporterLoading=true,this.render();try{this.callbacks.onReporterReopen?await this.callbacks.onReporterReopen(e,"Not fixed for me"):await this.callbacks.onReporterFeedback?.(e,"not_fixed","Not fixed for me"),await this.loadReporterReports();}catch(r){this.reporterError=r instanceof Error?r.message:"Could not reopen report.";}finally{this.reporterLoading=false,this.render();}}}async refreshReporterInboxQuiet(){try{if(this.reporterReports=await this.callbacks.onReporterReportsRequest?.()??[],!this.isOpen)return;this.step==="reports"?this.render():this.updateReportsBadgeText();}catch{}}updateReportsBadgeText(){let e=this.shadow.querySelector(".mushi-reports-entry .mushi-option-label");if(!e)return;let r=this.locale.step1.moreNav,n=this.unreadCount();e.textContent=n?`${r.yourReports} (${n} ${r.unreadNew})`:r.yourReports;}async loadReporterReports(){this.step="reports",this.reporterLoading=true,this.reporterError=null,this.render();try{this.reporterReports=await this.callbacks.onReporterReportsRequest?.()??[];}catch(e){this.reporterError=e instanceof Error?e.message:"Could not load reports.";}finally{this.reporterLoading=false,this.render();}}async loadReporterComments(e){this.selectedReportId!==e&&(this.draftReply=""),this.selectedReportId=e,this.step="report-detail",this.reporterLoading=true,this.reporterError=null,this.render();try{this.reporterComments=await this.callbacks.onReporterCommentsRequest?.(e)??[];}catch(r){this.reporterError=r instanceof Error?r.message:"Could not load thread.";}finally{this.reporterLoading=false,this.render();}}async submitReporterFeedback(e){let r=this.selectedReportId;if(!(!r||this.reporterLoading)){this.reporterLoading=true,this.render();try{await this.callbacks.onReporterFeedback?.(r,e),await this.loadReporterReports(),r&&await this.loadReporterComments(r);}catch(n){this.reporterError=n instanceof Error?n.message:"Could not send feedback.",this.reporterLoading=false,this.render();}}}async submitReporterReply(e){let r=this.selectedReportId,n=e.querySelector('[data-role="reporter-reply"]'),s=e.querySelector('[data-action="reporter-reply"]'),o=n?.value.trim()??"";if(!(!r||!o||this.reporterLoading)){this.reporterLoading=true,s&&(s.disabled=true),this.render();try{await this.callbacks.onReporterReply?.(r,o),n&&(n.value=""),this.draftReply="",await this.loadReporterComments(r);}catch(a){this.reporterError=a instanceof Error?a.message:"Could not send reply.",this.reporterLoading=false,this.render();}}}async handleMagicLinkSend(e){if(this.magicLinkSending)return;let n=(e.querySelector('[data-role="magic-link-email"]')?.value??this.magicLinkEmail).trim();if(!n||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n)){this.magicLinkError="Please enter a valid email address.",this.render();return}this.magicLinkEmail=n,this.magicLinkError="",this.magicLinkSending=true,this.render();try{await this.callbacks.onMushiSignIn?.(n),this.magicLinkSent=!0;}catch(s){this.magicLinkError=s instanceof Error?s.message:"Could not send sign-in link. Try again.";}finally{this.magicLinkSending=false,this.render();}}getRecorderStep(){return this.step}getRecorderCategoryStepIA(){return {sectionLabel:this.shadow.querySelector(".mushi-section-label")?.textContent?.trim()??"",moreToggle:!!this.shadow.querySelector('[data-action="toggle-more-nav"]'),footerStepIndicators:this.shadow.querySelectorAll(".mushi-step-indicator").length}}getRecorderTrigger(){return this.shadow.querySelector(".mushi-trigger")}getRecorderCategoryButton(e){return this.shadow.querySelector(`[data-category="${e}"]`)}getRecorderIntentButton(e){return Array.from(this.shadow.querySelectorAll("[data-intent]")).find(r=>r.dataset.intent===e)??null}getRecorderSubmitButton(){return this.shadow.querySelector('[data-action="submit"]')}recorderClickTrigger(){this.isOpen&&this.close(),this.open();}openReporter(){this.isOpen||(this.isOpen=true,this.render()),this.loadReporterReports();}recorderSelectCategory(e){this.isOpen||this.open(),this.step!=="category"&&(this.selectedCategory=null,this.selectedIntent=null,this.step="category",this.render()),this.selectedCategory=e,this.step="intent",this.render();}recorderSelectIntent(e){!this.isOpen||this.step!=="intent"||(this.selectedIntent=e,this.step="details",this.render());}recorderFocusDescription(){this.shadow.querySelector(".mushi-textarea")?.focus();}recorderSubmit(){this.shadow.querySelector('[data-action="submit"]')?.click();}recorderOpenMyReports(){this.isOpen||this.open(),this.loadReporterReports();}};function _a(t,e){let r={...t};if(e)for(let[n,s]of Object.entries(e))s!==void 0&&(r[n]=s);return r}function Ws(t,e){let r=e.native?.triggerMode,n=e.widget?.launcher,s=t.widget?.trigger,o=n??e.widget?.trigger,i=(o==="auto"&&s&&s!=="auto"?void 0:o)??(r==="none"||r==="shake"?"manual":void 0),l=n==="hidden"||e.widget?.trigger==="hidden",p=i==="hidden"&&!l&&s&&s!=="hidden"?s:i,h=e.widget,m=h?.bannerVariant,b=h?.bannerPosition,u=h?.bannerMessage,f=h?.bannerLabel,v=h?.bannerBugCta,k=h?.bannerFeatureCta,T=m||b||u!=null||f!=null||v!=null||k!=null?{...t.widget?.bannerConfig??{},...m?{variant:m}:{},...b?{position:b}:{},...u!=null?{message:u}:{},...f!=null?{label:f===""?false:f}:{},...v!=null?{bugCta:v??void 0}:{},...k!=null?{featureCta:k}:{}}:void 0,R={};if(e.widget)for(let[w,A]of Object.entries(e.widget))w==="trigger"||w==="launcher"||A!=null&&(R[w]=A);return {...t,widget:{...t.widget,...R,...p?{trigger:p}:{},...T?{bannerConfig:T}:{},...t.widget?.betaMode?{betaMode:t.widget.betaMode}:{}},capture:_a(t.capture,e.capture),privacy:{...t.privacy}}}function Zt(t){if(!t)return null;let e=t.getBoundingClientRect();return e.width===0&&e.height===0?null:{x:e.left+e.width/2,y:e.top+e.height/2}}function zs(t){if(typeof globalThis>"u")return;let e={ready:()=>t.getIsMounted(),getStep:()=>t.getRecorderStep(),getCategoryStepIA:()=>t.getRecorderCategoryStepIA(),getTriggerCenter:()=>Zt(t.getRecorderTrigger()),getCategoryCenter:r=>Zt(t.getRecorderCategoryButton(r)),getIntentCenter:r=>Zt(t.getRecorderIntentButton(r)),getSubmitCenter:()=>Zt(t.getRecorderSubmitButton()),clickTrigger:()=>t.recorderClickTrigger(),selectCategory:r=>t.recorderSelectCategory(r),selectIntent:r=>t.recorderSelectIntent(r),focusDescription:()=>t.recorderFocusDescription(),submit:()=>t.recorderSubmit(),openMyReports:()=>t.recorderOpenMyReports()};globalThis.__mushiRecorder=e;}var Hr=null,Dr=null,yt=null,vt=null,xt=null,wt=null,St=null,Qt=false,Ye=new Set;function Pa(){for(let t of Ye)try{t.onPush?.();}catch{}}function Ha(){for(let t of Ye)try{t.onReplace?.();}catch{}}function Da(){for(let t of Ye)try{t.onPop?.();}catch{}}function Oa(){Qt||typeof window>"u"||(yt=History.prototype.pushState,vt=History.prototype.replaceState,Hr=yt.bind(history),Dr=vt.bind(history),xt=function(...e){let n=(Hr??History.prototype.pushState.bind(history))(...e);return Pa(),n},wt=function(...e){let n=(Dr??History.prototype.replaceState.bind(history))(...e);return Ha(),n},history.pushState=xt,history.replaceState=wt,St=()=>Da(),window.addEventListener("popstate",St),Qt=true);}function Vs(){!Qt||typeof window>"u"||(St&&(window.removeEventListener("popstate",St),St=null),xt&&history.pushState===xt&&yt&&(history.pushState=yt),wt&&history.replaceState===wt&&vt&&(history.replaceState=vt),xt=null,wt=null,Hr=null,Dr=null,yt=null,vt=null,Qt=false);}function Te(t){return Oa(),Ye.add(t),()=>{Ye.delete(t),Ye.size===0&&Vs();}}function Ks(){Ye.clear(),Vs();}var Ba=3e4,Na=3e5,Ua=6e4,Fa=60,Xs="mushi_session_min_day_",nt=[],st=null,ot=null,Be=null,Js=null,Or=null,it=null,je=false,kt=null,Zs=0,qa=300*1e3,Ur=0,ja=900*1e3;function Fr(){return Date.now()<Ur}function qr(t){t?.startsWith("HTTP_4")&&(Ur=Date.now()+ja);}var Gs=new Set;function Br(t){return `mushi_rewards_consent_${t}`}function Wa(t){try{return localStorage.getItem(Br(t))==="1"}catch{return false}}function Nr(t,e){try{e?localStorage.setItem(Br(t),"1"):localStorage.removeItem(Br(t)),je=e;}catch{}}function Qs(){return new Date().toISOString().slice(0,10)}function eo(t){try{let e=sessionStorage.getItem(`${Xs}${t}_${Qs()}`);return e?parseInt(e,10):0}catch{return 0}}function za(t){let e=Qs(),r=`${Xs}${t}_${e}`;try{let n=eo(t)+1;return sessionStorage.setItem(r,String(n)),n}catch{return 99}}function to(t){it=t.client,Be=t.userId,Js=t.traits??null,Or=t.reporterToken??null;let{projectId:e}=t,r=Math.max(Ba,t.config.flushIntervalMs??Na);t.config.consentMode==="auto"?(je=true,Nr(e,true)):je=Wa(e),t.config.trackActivity&&Ka(e),st&&clearInterval(st),st=setInterval(()=>Va(t),r),ot&&clearInterval(ot),ot=setInterval(()=>{if(!je||!Be)return;let n=eo(e);n<Fa&&(za(e),at({action:"session_minute",metadata:{minutes_today:n+1}}));},Ua),t.config.showInWidget&&jr(Be).then(n=>{n&&io(n,t.config);}),t.config.consentMode!=="auto"&&!je&&Ya(e,t.config);}function at(t){!je||!Be||nt.push({...t,queuedAt:Date.now()});}async function Va(t){if(!je||!Be||nt.length===0)return;let e=null;if(t.config.verifyUserToken)try{e=await t.config.verifyUserToken();}catch{}if(Fr())return;let r=nt.splice(0,100);try{let n=Or?await wr(Or):void 0,s=await t.client.submitActivity(Be,r,{userTraits:Js??void 0,reporterTokenHash:n,optedIn:!0,hostJwt:e??void 0});s.ok||(qr(s.error?.code),s.error?.code?.startsWith("HTTP_4")||nt.unshift(...r.slice(0,50)));}catch{nt.unshift(...r.slice(0,50));}}async function ro(t){let e=Date.now();return kt&&e-Zs<qa?kt:jr(t)}async function jr(t){if(!it||Fr())return null;let e=await it.getMyTier(t);return e.ok&&e.data?(kt=e.data,Zs=Date.now(),kt):(qr(e.error?.code),null)}async function no(t=10){if(!it||Fr())return null;try{let e=await it.getHallOfFame(t);return e.ok&&e.data?(e.data.data??[]).map(r=>({display_name:r.display_name,tier_name:r.tier_name,total_points:r.total_points,points_30d:r.points_30d})):(qr(e.error?.code),null)}catch{return null}}function so(){st&&(clearInterval(st),st=null),ot&&(clearInterval(ot),ot=null),oo(),Ga(),be&&(be.remove(),be=null),nt=[],Be=null,it=null,je=false,kt=null,Ur=0;}var tr=null,Et=null,rr=null,Ys="",er=false;function Ka(t){if(er&&rr)return;er&&oo(),er=true;let e=()=>{let n=location.pathname;if(n===Ys)return;Ys=n,!Gs.has(`${t}:${n}`)&&(Gs.add(`${t}:${n}`),at({action:"screen_view_unique_per_day",metadata:{route:n}}));};rr=Te({onPush:e,onPop:e}),e(),tr=new MutationObserver(()=>e());let r=document.querySelector("main")??document.body;tr.observe(r,{childList:true,subtree:false}),Et=n=>{let s=n.target.closest("[data-testid]");if(!s)return;let o=s.dataset.testid;o&&at({action:"element_selected",metadata:{testid:o,route:location.pathname}});},document.addEventListener("click",Et,{capture:true,passive:true});}function oo(){er=false,rr?.(),rr=null,tr?.disconnect(),tr=null,Et&&(document.removeEventListener("click",Et,{capture:true}),Et=null);}var Oe=null;function io(t,e){if(!e.showInWidget)return;Oe&&Oe.remove(),Oe=document.createElement("div"),Oe.id="mushi-tier-badge",Object.assign(Oe.style,{position:"fixed",bottom:"56px",right:"16px",zIndex:"2147483645",fontFamily:"system-ui, sans-serif"});let r=Oe.attachShadow({mode:"closed"});r.innerHTML=`
2194
2195
  <style>
2195
2196
  :host { display: block; }
2196
2197
  .badge {
@@ -2220,7 +2221,7 @@
2220
2221
  <span class="dot"></span>
2221
2222
  <span>${t.displayName}</span>
2222
2223
  </div>
2223
- `,document.body.appendChild(Oe);}function Ha(){Oe?.remove(),Oe=null;}var be=null;function Da(t,e){if(be)return;be=document.createElement("div"),be.id="mushi-consent-banner",Object.assign(be.style,{position:"fixed",bottom:"80px",right:"16px",zIndex:"2147483646",maxWidth:"280px",fontFamily:"system-ui, sans-serif"});let r=be.attachShadow({mode:"closed"});r.innerHTML=`
2224
+ `,document.body.appendChild(Oe);}function Ga(){Oe?.remove(),Oe=null;}var be=null;function Ya(t,e){if(be)return;be=document.createElement("div"),be.id="mushi-consent-banner",Object.assign(be.style,{position:"fixed",bottom:"80px",right:"16px",zIndex:"2147483646",maxWidth:"280px",fontFamily:"system-ui, sans-serif"});let r=be.attachShadow({mode:"closed"});r.innerHTML=`
2224
2225
  <style>
2225
2226
  :host { display: block; }
2226
2227
  .banner {
@@ -2255,15 +2256,15 @@
2255
2256
  <button class="decline" id="decline">No thanks</button>
2256
2257
  </div>
2257
2258
  </div>
2258
- `,r.getElementById("accept")?.addEventListener("click",()=>{Br(t,true),be?.remove(),be=null,e.showInWidget&&Be&&qr(Be).then(n=>{n&&eo(n,e);});}),r.getElementById("decline")?.addEventListener("click",()=>{Br(t,false),be?.remove(),be=null;}),document.body.appendChild(be);}function jr(){let t=[],e={},r={},n=["log","warn","error","info","debug"];for(let s of n){let o=console[s];e[s]=o;let l=(...i)=>{let a=i.map(p=>{try{return typeof p=="string"?p:JSON.stringify(p)}catch{return String(p)}}).join(" ").slice(0,500),h={level:s,message:a,timestamp:Date.now()};s==="error"&&i[0]instanceof Error&&(h.stack=i[0].stack?.slice(0,1e3)),t.push(h),t.length>50&&t.shift(),o.call(console,...i);};r[s]=l,console[s]=l;}return {getEntries(){return [...t]},clear(){t.length=0;},destroy(){for(let s of n)e[s]&&console[s]===r[s]&&(console[s]=e[s]);}}}var Oa=[/\/v1\/sdk(?:\/|$)/,/\/v1\/reports(?:\/|$)/,/\/v1\/notifications(?:\/|$)/,/\/v1\/reputation(?:\/|$)/];function nr(t){return typeof t=="string"?t:t instanceof URL?t.href:t.url}function sr(t,e){let r=e?.[Ze];if(r)return r;let n=Ua(e?.headers,gt);if(n)return n;if(typeof Request<"u"&&t instanceof Request){let s=t.headers.get(gt);if(s)return s}return null}function or(t,e={}){if([...Oa,...e.ignoreUrls??[]].some(s=>Ba(t,s)))return true;let n=Na(e.apiEndpoint);return n?Wr(t).startsWith(n):false}function Ba(t,e){return typeof e=="string"?Wr(t).includes(e):(e.lastIndex=0,e.test(t))}function Na(t){if(!t)return null;let e=Wr(t),r=e.length;for(;r>0&&e.charCodeAt(r-1)===47;)r--;return e.slice(0,r)}function Wr(t){try{return new URL(t,typeof location<"u"?location.href:"http://localhost").href}catch{return t}}function Ua(t,e){if(!t)return null;if(typeof Headers<"u"&&t instanceof Headers)return t.get(e);if(Array.isArray(t))return t.find(([s])=>s.toLowerCase()===e.toLowerCase())?.[1]??null;let r=t;return r[e]??r[e.toLowerCase()]??null}var Fa=30,qa="00";function ja(){let t=crypto.getRandomValues(new Uint8Array(16)),e=crypto.getRandomValues(new Uint8Array(8)),r=o=>Array.from(o).map(l=>l.toString(16).padStart(2,"0")).join(""),n=r(t),s=r(e);return {traceparent:`${qa}-${n}-${s}-01`,traceId:n,spanId:s}}function Wa(t,e){for(let r of e)if(typeof r=="string"){if(t.includes(r))return true}else if(r.test(t))return true;return false}function zr(t={}){let e=[],r=globalThis.fetch,n=t,s;globalThis.fetch=s=async function(i,a){let h=Date.now(),p=a?.method?.toUpperCase()??"GET",m=nr(i),u=!sr(i,a)&&!or(m,n),f,v=a,E=n.tracePropagation;if(u&&E?.enabled&&E.corsUrls?.length&&Wa(m,E.corsUrls)){let{traceparent:M,traceId:C}=ja();f=C;let w=a?.headers?new Headers(a.headers):new Headers;w.set("traceparent",M),n.sessionId&&w.set("x-mushi-session",n.sessionId),v={...a,headers:w};}try{let M=await r.call(globalThis,i,v);return u&&o({method:p,url:to(m),status:M.status,duration:Date.now()-h,timestamp:h,...f?{traceId:f}:{}}),M}catch(M){throw u&&o({method:p,url:to(m),status:0,duration:Date.now()-h,timestamp:h,error:M instanceof Error?M.message:"Network error",...f?{traceId:f}:{}}),M}};function o(l){e.push(l),e.length>Fa&&e.shift();}return {getEntries(){return [...e]},clear(){e.length=0;},updateOptions(l){n=l;},destroy(){globalThis.fetch===s&&(globalThis.fetch=r);}}}function to(t){try{let e=new URL(t),r=e.pathname+e.search;return r.length>200?e.origin+r.slice(0,200)+"...":e.origin+r}catch{return t.slice(0,200)}}function Gr(t={}){let e=t;async function r(){try{if(typeof document>"u")return null;let n=document.createElement("canvas"),s=n.getContext("2d");if(!s)return null;let o=window.innerWidth,l=window.innerHeight,i=Math.min(window.devicePixelRatio||1,2);n.width=o*i,n.height=l*i,s.scale(i,i);let a=Va(e.privacy),h=`
2259
- <svg xmlns="http://www.w3.org/2000/svg" width="${o}" height="${l}">
2259
+ `,r.getElementById("accept")?.addEventListener("click",()=>{Nr(t,true),be?.remove(),be=null,e.showInWidget&&Be&&jr(Be).then(n=>{n&&io(n,e);});}),r.getElementById("decline")?.addEventListener("click",()=>{Nr(t,false),be?.remove(),be=null;}),document.body.appendChild(be);}function Wr(){let t=[],e={},r={},n=["log","warn","error","info","debug"];for(let s of n){let o=console[s];e[s]=o;let a=(...i)=>{let l=i.map(h=>{try{return typeof h=="string"?h:JSON.stringify(h)}catch{return String(h)}}).join(" ").slice(0,500),p={level:s,message:l,timestamp:Date.now()};s==="error"&&i[0]instanceof Error&&(p.stack=i[0].stack?.slice(0,1e3)),t.push(p),t.length>50&&t.shift(),o.call(console,...i);};r[s]=a,console[s]=a;}return {getEntries(){return [...t]},clear(){t.length=0;},destroy(){for(let s of n)e[s]&&console[s]===r[s]&&(console[s]=e[s]);}}}var Xa=[/\/v1\/sdk(?:\/|$)/,/\/v1\/reports(?:\/|$)/,/\/v1\/notifications(?:\/|$)/,/\/v1\/reputation(?:\/|$)/];function nr(t){return typeof t=="string"?t:t instanceof URL?t.href:t.url}function sr(t,e){let r=e?.[Ze];if(r)return r;let n=Qa(e?.headers,gt);if(n)return n;if(typeof Request<"u"&&t instanceof Request){let s=t.headers.get(gt);if(s)return s}return null}function or(t,e={}){if([...Xa,...e.ignoreUrls??[]].some(s=>Ja(t,s)))return true;let n=Za(e.apiEndpoint);return n?zr(t).startsWith(n):false}function Ja(t,e){return typeof e=="string"?zr(t).includes(e):(e.lastIndex=0,e.test(t))}function Za(t){if(!t)return null;let e=zr(t),r=e.length;for(;r>0&&e.charCodeAt(r-1)===47;)r--;return e.slice(0,r)}function zr(t){try{return new URL(t,typeof location<"u"?location.href:"http://localhost").href}catch{return t}}function Qa(t,e){if(!t)return null;if(typeof Headers<"u"&&t instanceof Headers)return t.get(e);if(Array.isArray(t))return t.find(([s])=>s.toLowerCase()===e.toLowerCase())?.[1]??null;let r=t;return r[e]??r[e.toLowerCase()]??null}var el=30,tl="00";function rl(){let t=crypto.getRandomValues(new Uint8Array(16)),e=crypto.getRandomValues(new Uint8Array(8)),r=o=>Array.from(o).map(a=>a.toString(16).padStart(2,"0")).join(""),n=r(t),s=r(e);return {traceparent:`${tl}-${n}-${s}-01`,traceId:n,spanId:s}}function nl(t,e){for(let r of e)if(typeof r=="string"){if(t.includes(r))return true}else if(r.test(t))return true;return false}function Vr(t={}){let e=[],r=globalThis.fetch,n=t,s;globalThis.fetch=s=async function(i,l){let p=Date.now(),h=l?.method?.toUpperCase()??"GET",m=nr(i),u=!sr(i,l)&&!or(m,n),f,v=l,k=n.tracePropagation;if(u&&k?.enabled&&k.corsUrls?.length&&nl(m,k.corsUrls)){let{traceparent:T,traceId:R}=rl();f=R;let w=l?.headers?new Headers(l.headers):new Headers;w.set("traceparent",T),n.sessionId&&w.set("x-mushi-session",n.sessionId),v={...l,headers:w};}try{let T=await r.call(globalThis,i,v);return u&&o({method:h,url:ao(m),status:T.status,duration:Date.now()-p,timestamp:p,...f?{traceId:f}:{}}),T}catch(T){throw u&&o({method:h,url:ao(m),status:0,duration:Date.now()-p,timestamp:p,error:T instanceof Error?T.message:"Network error",...f?{traceId:f}:{}}),T}};function o(a){e.push(a),e.length>el&&e.shift();}return {getEntries(){return [...e]},clear(){e.length=0;},updateOptions(a){n=a;},destroy(){globalThis.fetch===s&&(globalThis.fetch=r);}}}function ao(t){try{let e=new URL(t),r=e.pathname+e.search;return r.length>200?e.origin+r.slice(0,200)+"...":e.origin+r}catch{return t.slice(0,200)}}function Yr(t={}){let e=t;async function r(){try{if(typeof document>"u")return null;let n=document.createElement("canvas"),s=n.getContext("2d");if(!s)return null;let o=window.innerWidth,a=window.innerHeight,i=Math.min(window.devicePixelRatio||1,2);n.width=o*i,n.height=a*i,s.scale(i,i);let l=ol(e.privacy),p=`
2260
+ <svg xmlns="http://www.w3.org/2000/svg" width="${o}" height="${a}">
2260
2261
  <foreignObject width="100%" height="100%">
2261
2262
  <div xmlns="http://www.w3.org/1999/xhtml">
2262
- ${new XMLSerializer().serializeToString(a)}
2263
+ ${new XMLSerializer().serializeToString(l)}
2263
2264
  </div>
2264
2265
  </foreignObject>
2265
2266
  </svg>
2266
- `,p=new Image,m=new Blob([h],{type:"image/svg+xml;charset=utf-8"}),b=URL.createObjectURL(m);return new Promise(u=>{p.onload=()=>{try{s.drawImage(p,0,0,o,l),URL.revokeObjectURL(b);let f=n.toDataURL("image/jpeg",.7);u(f);}catch{URL.revokeObjectURL(b),e.onFailed?.("taint"),Vr("taint"),u(null);}},p.onerror=()=>{URL.revokeObjectURL(b),e.onFailed?.("error"),Vr("error"),u(null);},p.src=b;})}catch{return e.onFailed?.("error"),Vr("error"),null}}return {take:r,updateOptions(n){e=n;}}}function Vr(t){try{document.dispatchEvent(new CustomEvent("mushi:screenshot_failed",{detail:{reason:t},bubbles:!1}));}catch{}}var za=['input[type="password"]',"[data-mushi-redact]"];function Va(t){let e=document.documentElement.cloneNode(true);e.querySelector("#mushi-mushi-widget")?.remove(),Ga(e);let r=t?.redactSelectors!==void 0?t.redactSelectors:za;for(let n of r)for(let s of Kr(e,n))Ka(s);for(let n of t?.blockSelectors??[])for(let s of Kr(e,n))s.remove();for(let n of t?.maskSelectors??[])for(let s of Kr(e,n))Ya(s);return e}function Kr(t,e){try{return Array.from(t.querySelectorAll(e))}catch{return []}}function Ka(t){for((t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&(t.value="",t.setAttribute("value","")),t.textContent="",t.setAttribute("style",`${t.getAttribute("style")??""};background:#000!important;color:#000!important;text-shadow:none!important;border-color:#000!important;`),t.setAttribute("data-mushi-redacted","true");t.firstChild;)t.removeChild(t.firstChild);}function Ga(t){let e=typeof location<"u"?location.origin:"";for(let r of t.querySelectorAll("img, video, iframe, object, embed, picture"))r.remove();for(let r of t.querySelectorAll('link[rel="stylesheet"], link[as="style"]')){let n=r.getAttribute("href");(!n||no(n,e))&&r.remove();}for(let r of t.querySelectorAll("style")){let n=ro(r.textContent??"",e);n!==r.textContent&&(r.textContent=n);}for(let r of t.querySelectorAll("[style]")){let n=r.getAttribute("style");if(!n)continue;let s=ro(n,e);s!==n&&r.setAttribute("style",s);}for(let r of t.querySelectorAll("script"))r.remove();}function ro(t,e){return t.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi,(r,n,s)=>{let o=s.trim();return !o||o.startsWith("data:")||o.startsWith("#")?r:no(o,e)?"none":r})}function no(t,e){if(!t||t.startsWith("data:")||t.startsWith("blob:"))return false;try{let r=new URL(t,typeof location<"u"?location.href:"http://localhost/");return !!e&&r.origin!==e}catch{return true}}function Ya(t){(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&(t.value="",t.setAttribute("value",""),t.setAttribute("placeholder","\u2022\u2022\u2022\u2022")),t.textContent=t.children.length===0?"\u2022\u2022\u2022\u2022":t.textContent,t.setAttribute("style",`${t.getAttribute("style")??""};background:#8f8f8f!important;color:transparent!important;text-shadow:none!important;`),t.setAttribute("data-mushi-masked","true");}function Xa(t){if(!t||!t.tagName)return;let e=t,r=e.tagName.toLowerCase(),n=e.id?`#${e.id}`:"",s=e.classList&&e.classList.length>0?`.${e.classList[0]}`:"";return `${r}${n}${s}`}function Yr(){let t={},e=[];if(typeof PerformanceObserver<"u"){try{let r=new PerformanceObserver(n=>{for(let s of n.getEntries())s.name==="first-contentful-paint"&&(t.fcp=s.startTime);});r.observe({type:"paint",buffered:!0}),e.push(r);}catch{}try{let r=new PerformanceObserver(n=>{let s=n.getEntries();s.length>0&&(t.lcp=s[s.length-1].startTime);});r.observe({type:"largest-contentful-paint",buffered:!0}),e.push(r);}catch{}try{let r=0,n=new PerformanceObserver(s=>{for(let o of s.getEntries())o.hadRecentInput||(r+=o.value??0,t.cls=r);});n.observe({type:"layout-shift",buffered:!0}),e.push(n);}catch{}try{let r=0,n=new PerformanceObserver(s=>{r+=s.getEntries().length,t.longTasks=r;});n.observe({type:"longtask",buffered:!0}),e.push(n);}catch{}try{let r=new Map,n=new PerformanceObserver(s=>{for(let o of s.getEntries()){let l=o.interactionId;if(!l)continue;let i=r.get(l)??0;if(o.duration>i&&r.set(l,o.duration),o.duration>(t.inp??0)){t.inp=o.duration;let a=o.processingStart-o.startTime,h=o.processingEnd-o.processingStart,p=o.startTime+o.duration-o.processingEnd;t.inpAttribution={eventType:o.name,targetSelector:Xa(o.target),inputDelay:Math.max(0,a),processingDuration:Math.max(0,h),presentationDelay:Math.max(0,p)};}}});n.observe({type:"event",durationThreshold:40,buffered:!0}),e.push(n);}catch{}try{let r=new PerformanceObserver(n=>{for(let s of n.getEntries())t.fid===void 0&&(t.fid=s.processingStart-s.startTime);});r.observe({type:"first-input",buffered:!0}),e.push(r);}catch{}}if(typeof performance<"u"&&performance.getEntriesByType)try{let r=performance.getEntriesByType("navigation");r.length>0&&r[0]&&(t.ttfb=r[0].responseStart-r[0].requestStart);}catch{}return {getMetrics(){return {...t}},destroy(){for(let r of e)r.disconnect();e.length=0;}}}function Xr(){let t=false,e=null,r=null;function n(f){let v=f,E=0;for(;v&&E<20;){let M=v.getAttribute?.("data-testid");if(M)return M;v=v.parentElement,E++;}return null}function s(f){let v=[],E=f;for(;E&&E!==document.body;){let M=1,C=E.previousElementSibling;for(;C;)C.tagName===E.tagName&&M++,C=C.previousElementSibling;let w=E.tagName.toLowerCase();v.unshift(M>1?`${w}[${M}]`:w),E=E.parentElement;}return "//"+v.join("/")}function o(f){let v=f.getBoundingClientRect();return {tagName:f.tagName.toLowerCase(),id:f.id||void 0,className:f.className||void 0,textContent:f.textContent?.trim().slice(0,200)||void 0,xpath:s(f),rect:{x:Math.round(v.x),y:Math.round(v.y),width:Math.round(v.width),height:Math.round(v.height)},nearestTestid:n(f)||void 0,route:typeof window<"u"?window.location.pathname:void 0}}function l(){let f=document.createElement("div");return f.style.cssText=`
2267
+ `,h=new Image,m=new Blob([p],{type:"image/svg+xml;charset=utf-8"}),b=URL.createObjectURL(m);return new Promise(u=>{h.onload=()=>{try{s.drawImage(h,0,0,o,a),URL.revokeObjectURL(b);let f=n.toDataURL("image/jpeg",.7);u(f);}catch{URL.revokeObjectURL(b),e.onFailed?.("taint"),Kr("taint"),u(null);}},h.onerror=()=>{URL.revokeObjectURL(b),e.onFailed?.("error"),Kr("error"),u(null);},h.src=b;})}catch{return e.onFailed?.("error"),Kr("error"),null}}return {take:r,updateOptions(n){e=n;}}}function Kr(t){try{document.dispatchEvent(new CustomEvent("mushi:screenshot_failed",{detail:{reason:t},bubbles:!1}));}catch{}}var sl=['input[type="password"]',"[data-mushi-redact]"];function ol(t){let e=document.documentElement.cloneNode(true);e.querySelector("#mushi-mushi-widget")?.remove(),al(e);let r=t?.redactSelectors!==void 0?t.redactSelectors:sl;for(let n of r)for(let s of Gr(e,n))il(s);for(let n of t?.blockSelectors??[])for(let s of Gr(e,n))s.remove();for(let n of t?.maskSelectors??[])for(let s of Gr(e,n))ll(s);return e}function Gr(t,e){try{return Array.from(t.querySelectorAll(e))}catch{return []}}function il(t){for((t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&(t.value="",t.setAttribute("value","")),t.textContent="",t.setAttribute("style",`${t.getAttribute("style")??""};background:#000!important;color:#000!important;text-shadow:none!important;border-color:#000!important;`),t.setAttribute("data-mushi-redacted","true");t.firstChild;)t.removeChild(t.firstChild);}function al(t){let e=typeof location<"u"?location.origin:"";for(let r of t.querySelectorAll("img, video, iframe, object, embed, picture"))r.remove();for(let r of t.querySelectorAll('link[rel="stylesheet"], link[as="style"]')){let n=r.getAttribute("href");(!n||co(n,e))&&r.remove();}for(let r of t.querySelectorAll("style")){let n=lo(r.textContent??"",e);n!==r.textContent&&(r.textContent=n);}for(let r of t.querySelectorAll("[style]")){let n=r.getAttribute("style");if(!n)continue;let s=lo(n,e);s!==n&&r.setAttribute("style",s);}for(let r of t.querySelectorAll("script"))r.remove();}function lo(t,e){return t.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi,(r,n,s)=>{let o=s.trim();return !o||o.startsWith("data:")||o.startsWith("#")?r:co(o,e)?"none":r})}function co(t,e){if(!t||t.startsWith("data:")||t.startsWith("blob:"))return false;try{let r=new URL(t,typeof location<"u"?location.href:"http://localhost/");return !!e&&r.origin!==e}catch{return true}}function ll(t){(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&(t.value="",t.setAttribute("value",""),t.setAttribute("placeholder","\u2022\u2022\u2022\u2022")),t.textContent=t.children.length===0?"\u2022\u2022\u2022\u2022":t.textContent,t.setAttribute("style",`${t.getAttribute("style")??""};background:#8f8f8f!important;color:transparent!important;text-shadow:none!important;`),t.setAttribute("data-mushi-masked","true");}function cl(t){if(!t||!t.tagName)return;let e=t,r=e.tagName.toLowerCase(),n=e.id?`#${e.id}`:"",s=e.classList&&e.classList.length>0?`.${e.classList[0]}`:"";return `${r}${n}${s}`}function Xr(){let t={},e=[];if(typeof PerformanceObserver<"u"){try{let r=new PerformanceObserver(n=>{for(let s of n.getEntries())s.name==="first-contentful-paint"&&(t.fcp=s.startTime);});r.observe({type:"paint",buffered:!0}),e.push(r);}catch{}try{let r=new PerformanceObserver(n=>{let s=n.getEntries();s.length>0&&(t.lcp=s[s.length-1].startTime);});r.observe({type:"largest-contentful-paint",buffered:!0}),e.push(r);}catch{}try{let r=0,n=new PerformanceObserver(s=>{for(let o of s.getEntries())o.hadRecentInput||(r+=o.value??0,t.cls=r);});n.observe({type:"layout-shift",buffered:!0}),e.push(n);}catch{}try{let r=0,n=new PerformanceObserver(s=>{r+=s.getEntries().length,t.longTasks=r;});n.observe({type:"longtask",buffered:!0}),e.push(n);}catch{}try{let r=new Map,n=new PerformanceObserver(s=>{for(let o of s.getEntries()){let a=o.interactionId;if(!a)continue;let i=r.get(a)??0;if(o.duration>i&&r.set(a,o.duration),o.duration>(t.inp??0)){t.inp=o.duration;let l=o.processingStart-o.startTime,p=o.processingEnd-o.processingStart,h=o.startTime+o.duration-o.processingEnd;t.inpAttribution={eventType:o.name,targetSelector:cl(o.target),inputDelay:Math.max(0,l),processingDuration:Math.max(0,p),presentationDelay:Math.max(0,h)};}}});n.observe({type:"event",durationThreshold:40,buffered:!0}),e.push(n);}catch{}try{let r=new PerformanceObserver(n=>{for(let s of n.getEntries())t.fid===void 0&&(t.fid=s.processingStart-s.startTime);});r.observe({type:"first-input",buffered:!0}),e.push(r);}catch{}}if(typeof performance<"u"&&performance.getEntriesByType)try{let r=performance.getEntriesByType("navigation");r.length>0&&r[0]&&(t.ttfb=r[0].responseStart-r[0].requestStart);}catch{}return {getMetrics(){return {...t}},destroy(){for(let r of e)r.disconnect();e.length=0;}}}function Jr(){let t=false,e=null,r=null;function n(f){let v=f,k=0;for(;v&&k<20;){let T=v.getAttribute?.("data-testid");if(T)return T;v=v.parentElement,k++;}return null}function s(f){let v=[],k=f;for(;k&&k!==document.body;){let T=1,R=k.previousElementSibling;for(;R;)R.tagName===k.tagName&&T++,R=R.previousElementSibling;let w=k.tagName.toLowerCase();v.unshift(T>1?`${w}[${T}]`:w),k=k.parentElement;}return "//"+v.join("/")}function o(f){let v=f.getBoundingClientRect();return {tagName:f.tagName.toLowerCase(),id:f.id||void 0,className:f.className||void 0,textContent:f.textContent?.trim().slice(0,200)||void 0,xpath:s(f),rect:{x:Math.round(v.x),y:Math.round(v.y),width:Math.round(v.width),height:Math.round(v.height)},nearestTestid:n(f)||void 0,route:typeof window<"u"?window.location.pathname:void 0}}function a(){let f=document.createElement("div");return f.style.cssText=`
2267
2268
  position: fixed;
2268
2269
  pointer-events: none;
2269
2270
  z-index: 2147483647;
@@ -2272,6 +2273,6 @@
2272
2273
  border-radius: 4px;
2273
2274
  transition: all 0.1s ease;
2274
2275
  display: none;
2275
- `,document.body.appendChild(f),f}function i(f){if(!e)return;let v=f.getBoundingClientRect();e.style.left=`${v.left}px`,e.style.top=`${v.top}px`,e.style.width=`${v.width}px`,e.style.height=`${v.height}px`,e.style.display="block";}function a(f){let v=f.target;v!==e&&i(v);}function h(f){f.preventDefault(),f.stopPropagation();let v=f.target;if(v===e||(f.composedPath?f.composedPath():[]).some(w=>w instanceof Element&&w.id==="mushi-mushi-widget"))return;let C=o(v);m(C);}function p(f){f.key==="Escape"&&m(null);}function m(f){u(),r?.(f),r=null;}function b(){return t&&u(),new Promise(f=>{r=f,t=true,e=l(),document.body.style.cursor="crosshair",document.addEventListener("mousemove",a,true),document.addEventListener("click",h,true),document.addEventListener("keydown",p,true);})}function u(){t&&(t=false,document.body.style.cursor="",document.removeEventListener("mousemove",a,true),document.removeEventListener("click",h,true),document.removeEventListener("keydown",p,true),e&&(e.remove(),e=null));}return {activate:b,deactivate:u,isActive:()=>t}}var so=120;function Jr(){let t=[],e=()=>n("hashchange");n("initial");function r(l){t.push(l),t.length>so&&t.shift();}function n(l){typeof location>"u"||r({ts:Date.now(),kind:"route",payload:{source:l,route:`${location.pathname}${location.search}${location.hash}`,href:location.href}});}function s(l){let i=l.target instanceof Element?l.target:null;if(!i)return;let a=i.closest('button,a,[role="button"],input,textarea,select,[data-mushi-track]')??i;r({ts:Date.now(),kind:"click",payload:{tag:a.tagName.toLowerCase(),id:a.id||void 0,text:Ja(a)}});}let o=Te({onPush:()=>n("pushState"),onReplace:()=>n("replaceState"),onPop:()=>n("popstate")});return window.addEventListener("hashchange",e),document.addEventListener("click",s,true),{setScreen(l){r({ts:Date.now(),kind:"screen",payload:l});},getEntries(l={}){return [...t,...(l.consoleLogs??[]).map(a=>({ts:a.timestamp,kind:"log",payload:{level:a.level,message:a.message}})),...(l.networkLogs??[]).map(a=>({ts:a.timestamp,kind:"request",payload:{method:a.method,url:a.url,status:a.status,duration:a.duration,error:a.error}}))].sort((a,h)=>a.ts-h.ts).slice(-so)},clear(){t.length=0;},destroy(){o(),window.removeEventListener("hashchange",e),document.removeEventListener("click",s,true);}}}function Ja(t){let e=(t.textContent??"").replace(/\s+/g," ").trim();return e?e.slice(0,80):void 0}var Za=6e4,Qa=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,el=/^[0-9a-f]{20,}$/i,tl=/^\d+$/,rl=/^[a-z0-9]{16,}$/i;function oo(t){return t.length===0?t:Qa.test(t)||el.test(t)||tl.test(t)||rl.test(t)&&/\d/.test(t)?"[id]":t}function io(t,e){let r=t.length>1&&t.endsWith("/")?t.slice(0,-1):t;if(e?.length){let n=nl(r,e);if(n)return n}return "/"+r.split("/").filter(n=>n.length>0).map(oo).join("/")}function nl(t,e){let r=t.split("/").filter(s=>s.length>0),n=[...e].sort((s,o)=>o.split("/").length-s.split("/").length);for(let s of n){let o=s.split("/").filter(i=>i.length>0);if(o.length!==r.length)continue;let l=true;for(let i=0;i<o.length;i++){let a=o[i],h=r[i];if(!(a.startsWith("[")&&a.endsWith("]"))&&!a.startsWith(":")&&a!==h){l=false;break}}if(l)return "/"+o.join("/")}return null}function sl(){if(typeof document>"u")return [];let t=new Set,e=document.querySelectorAll("[data-testid]");for(let r of Array.from(e)){let n=r.getAttribute("data-testid");n&&n.length>0&&n.length<120&&t.add(n);}return Array.from(t).sort()}function ol(){if(typeof window>"u")return [];try{let t=new URLSearchParams(window.location.search),e=new Set;return t.forEach((r,n)=>e.add(n)),Array.from(e).sort()}catch{return []}}function il(){if(typeof document>"u")return null;let t=s=>(s??"").replace(/\s+/g," ").trim().slice(0,200),e=t(document.querySelector("h1")?.textContent);if(e)return e;let r=t(document.title);return r||t(document.querySelector("main")?.textContent)||null}async function al(t){if(!t||typeof crypto>"u"||!crypto.subtle)return null;try{let e=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",e),n=new Uint8Array(r),s="";for(let o=0;o<n.length;o++)s+=n[o].toString(16).padStart(2,"0");return s}catch{return null}}function Zr(t){let{config:e,getRecentNetworkPaths:r,getUserId:n,getSessionId:s,onEvent:o}=t,l=e.throttleMs??Za,i=e.captureDomSummary!==false,a=e.userIdSource??"auto",h=new Map,p=null,m=null;async function b(){if(typeof window>"u")return;let M=io(window.location.pathname,e.routeTemplates),C=Date.now(),w=h.get(M)??0;if(C-w<l)return;h.set(M,C);let P=null;a==="auto"?P=n()??s():a==="session-only"&&(P=s());let y={route:M,page_title:typeof document<"u"&&(document.title||"").slice(0,300)||null,dom_summary:i?il():null,testids:sl(),network_paths:r().slice(-50),query_param_keys:ol(),user_id_hash:await al(P),observed_at:new Date().toISOString()};o(y);}function u(){m||(m=setTimeout(()=>{m=null,b();},100));}function f(){if(typeof window>"u")return;let M=window.location.pathname+window.location.search;M!==p&&(p=M,u());}if(typeof window>"u")return {destroy:()=>{},flushNow:()=>{}};let v=()=>f(),E=Te({onPush:v,onReplace:v,onPop:v});return u(),{destroy(){E(),m&&(clearTimeout(m),m=null),h.clear();},flushNow(){h.clear(),b();}}}function ao(t,e,r){let n=a=>a.timestamp,s=a=>a.type===2,o=a=>a.type===4,l=Date.now()-e,i=0;for(let a=0;a<t.length;a++){let h=n(t[a]);if(typeof h=="number"&&h>=l)break;s(t[a])&&(i=o(t[a-1])?a-1:a);}if(t.length-i>r){for(let a=i+1;a<t.length;a++)if(s(t[a])&&t.length-a<=r){i=o(t[a-1])?a-1:a;break}}i>0&&t.splice(0,i);}function ll(t){let e=[],r=false,n=o=>{if(!r)return;let l=o.target instanceof Element?o.target:null,i=l?.tagName?.toLowerCase()??"unknown",a=l?.closest("[data-testid]")?.getAttribute("data-testid")??void 0;e.push({type:"lite_click",timestamp:Date.now(),data:{tag:i,testId:a}}),e.length>400&&e.shift();},s=()=>{r=false,document.removeEventListener("click",n,true);};return {start(){r||(r=true,document.addEventListener("click",n,true));},stop:s,flush(){let o=Date.now()-t;return e.filter(l=>l.timestamp>=o)},destroy(){s(),e.length=0;}}}var ir=null;async function cl(){if(ir)return ir;try{return ir=await import('rrweb'),ir}catch{return null}}async function lo(t){let e=t.maxDurationMs??3e4,r=await cl();if(!r?.record)return ll(e);let n=r.record,s=[],o=null,l=false,i=['input[type="password"]',...t.redactSelectors??[]],a=()=>{o?.(),o=null,l=false;};return {start(){l||(l=true,o=n({emit(h){s.push(h),ao(s,e,400);},maskAllInputs:true,maskAllText:true,maskTextSelector:i.join(","),checkoutEveryNms:e,sampling:{mousemove:false,mouseInteraction:true,scroll:150,media:800}})??null);},stop:a,flush(){return ao(s,e,400),[...s]},destroy(){a(),s.length=0;}}}function co(t,e){return new Promise((r,n)=>{let s=new Image;s.onload=()=>{let o=document.createElement("div");o.style.position="relative",o.style.display="inline-block",o.style.maxWidth="100%";let l=document.createElement("canvas"),i=document.createElement("canvas"),a=Math.min(1,720/s.width),h=Math.round(s.width*a),p=Math.round(s.height*a);for(let y of [l,i])y.width=h,y.height=p,y.style.width="100%",y.style.height="auto",y.style.display="block";i.style.position="absolute",i.style.left="0",i.style.top="0",i.style.cursor="crosshair";let m=l.getContext("2d"),b=i.getContext("2d");if(!m||!b){n(new Error("Canvas not supported"));return}m.drawImage(s,0,0,h,p),o.appendChild(l),o.appendChild(i),e.appendChild(o);let u="highlight",f=false,v=null,E=[],M=y=>{let k=i.getBoundingClientRect(),R="touches"in y?y.touches[0]??y.changedTouches[0]:null,x=R?R.clientX:y.clientX,B=R?R.clientY:y.clientY;return {x:(x-k.left)/k.width*h,y:(B-k.top)/k.height*p}},C=()=>{b.clearRect(0,0,h,p);for(let y of E)if(y.tool==="highlight"&&y.points.length>=2){let[k,R]=y.points;b.fillStyle="rgba(255, 230, 0, 0.35)",b.fillRect(Math.min(k.x,R.x),Math.min(k.y,R.y),Math.abs(R.x-k.x),Math.abs(R.y-k.y));}else if(y.tool==="arrow"&&y.points.length>=2){let[k,R]=y.points;b.strokeStyle="#ef4444",b.lineWidth=3,b.beginPath(),b.moveTo(k.x,k.y),b.lineTo(R.x,R.y),b.stroke();}},w=y=>{f=true,v=M(y);},P=y=>{if(!f||!v)return;f=false;let k=M(y);if(u==="blur"){let R=Math.min(v.x,k.x),x=Math.min(v.y,k.y),B=Math.abs(k.x-v.x),N=Math.abs(k.y-v.y);B>=1&&N>=1&&(m.filter="blur(8px)",m.drawImage(l,R,x,B,N,R,x,B,N),m.filter="none");}else E.push({tool:u,points:[v,k]});v=null,C();};i.addEventListener("mousedown",w),i.addEventListener("mouseup",P),i.addEventListener("touchstart",w,{passive:true}),i.addEventListener("touchend",P),r({canvas:l,setTool(y){u=y;},getDataUrl(){let y=document.createElement("canvas");y.width=h,y.height=p;let k=y.getContext("2d");return k?(k.drawImage(l,0,0),k.drawImage(i,0,0),y.toDataURL("image/jpeg",.85)):t},destroy(){i.removeEventListener("mousedown",w),i.removeEventListener("mouseup",P),i.removeEventListener("touchstart",w),i.removeEventListener("touchend",P),o.remove();}});},s.onerror=()=>n(new Error("Failed to load screenshot")),s.src=t;})}function uo(){try{let t=globalThis;return t.Sentry?t.Sentry:void 0}catch{return}}function ul(){try{return globalThis.__SENTRY_REPLAY__}catch{return}}function dl(){try{let t=globalThis,e=t.__SENTRY__,r=t.Sentry;return e?.version==="9"||r&&typeof r.lastEventId=="function"?e?.version==="9"?"v9":"v8":e?.version==="8"?"v8":r&&typeof r.getCurrentHub=="function"?"v7":"unknown"}catch{return "unknown"}}function Qr(t,e={}){let r=Math.max(0,e.breadcrumbsLimit??30),n={},s=uo();if(!s)return n;n.sdk=dl();try{let i=s;if(typeof i.lastEventId=="function")n.eventId=i.lastEventId()??void 0;else {let h=s.getCurrentHub?.()?.getScope?.();n.eventId=h?.getLastEventId?.()??void 0;}}catch{}let o;try{let i=s;typeof i.getCurrentScope=="function"?o=i.getCurrentScope():o=s.getCurrentHub?.()?.getScope?.();}catch{}if(o){try{let i=o.getUser?.();i&&(n.user={id:typeof i.id=="string"?i.id:void 0,email:typeof i.email=="string"?i.email:void 0,username:typeof i.username=="string"?i.username:void 0,ip_address:typeof i.ip_address=="string"?i.ip_address:void 0});}catch{}try{let i=o.getTags?.();if(i&&typeof i=="object"){let a={};for(let[h,p]of Object.entries(i))(typeof p=="string"||typeof p=="number"||typeof p=="boolean")&&(a[h]=p);Object.keys(a).length>0&&(n.tags=a);}}catch{}try{n.transactionName=o.getTransactionName?.()??o.getTransaction?.()?.name??void 0;}catch{}try{n.sessionId=o.getSession?.()?.sid??void 0;}catch{}try{let i=o.getBreadcrumbs?.()??o._breadcrumbs??[];if(Array.isArray(i)&&i.length>0){let a=i.slice(-r);n.breadcrumbs=a.map(h=>{let p=h;return {timestamp:typeof p.timestamp=="number"?p.timestamp<1e12?Math.round(p.timestamp*1e3):p.timestamp:void 0,category:typeof p.category=="string"?p.category:void 0,level:typeof p.level=="string"?p.level:void 0,message:typeof p.message=="string"?p.message:void 0,type:typeof p.type=="string"?p.type:void 0,data:p.data&&typeof p.data=="object"?p.data:void 0}});}}catch{}}try{let i=s,a;if(typeof i.getActiveSpan=="function"?a=i.getActiveSpan():o?.getSpan&&(a=o.getSpan()),a){let h=a.spanContext?.();n.traceId=h?.traceId??a.traceId??void 0,n.spanId=h?.spanId??a.spanId??void 0;}}catch{}let l;try{let i=s;typeof i.getClient=="function"?l=i.getClient():l=s.getCurrentHub?.()?.getClient?.();}catch{}if(l){try{let i=l.getOptions?.();i?.release&&(n.release=i.release),i?.environment&&(n.environment=i.environment);}catch{}try{let i=l.getDsn?.();if(i?.host&&i?.projectId&&n.eventId){let a=i.host.replace(/^o\d+\./,"");n.issueUrl=`https://${a}/issues/?query=${encodeURIComponent(n.eventId)}`;}}catch{}}try{let a=s.getReplay?.()??ul();n.replayId=a?.getReplayId?.()??void 0;}catch{}return n}function en(t,e={}){let r=uo();if(r){try{let n=r;typeof n.setTag=="function"&&(n.setTag("mushi.report_id",t),e.reportUrl&&n.setTag("mushi.report_url",e.reportUrl)),typeof n.setContext=="function"&&n.setContext("mushi_report",{id:t,...e.reportUrl?{url:e.reportUrl}:{},captured_at:new Date().toISOString()}),typeof n.addBreadcrumb=="function"&&n.addBreadcrumb({category:"mushi",type:"info",level:"info",message:`Mushi report submitted (${t})`,data:{report_id:t,...e.reportUrl?{url:e.reportUrl}:{}}});}catch{}try{let s=r.getCurrentHub?.()?.getScope?.();s&&(s.setTag?.("mushi.report_id",t),e.reportUrl&&s.setTag?.("mushi.report_url",e.reportUrl),s.setContext?.("mushi_report",{id:t,...e.reportUrl?{url:e.reportUrl}:{}}));}catch{}}}var pl=["/login","/logout","/signup","/sso/*","/auth/*"];function ho(t,e={}){let r=[];if(e.rageClick!==false){let v=function(E){let M=Date.now();if(E.target===f){if(u.push(M),u=u.filter(C=>M-C<500),u.length>=3){let C=E.target;t.onTrigger("rage_click",{element:C.tagName,id:C.id,text:C.textContent?.slice(0,50)}),u=[];}}else f=E.target,u=[M];};let u=[],f=null;document.addEventListener("click",v,true),r.push(()=>document.removeEventListener("click",v,true));}if(e.longTask!==false&&typeof PerformanceObserver<"u")try{let u=new PerformanceObserver(f=>{for(let v of f.getEntries())v.duration>5e3&&t.onTrigger("long_task",{duration:Math.round(v.duration),startTime:Math.round(v.startTime)});});u.observe({entryTypes:["longtask"]}),r.push(()=>u.disconnect());}catch{}let n=hl(e.apiCascade);if(n.enabled){let u=[],f=globalThis.fetch;globalThis.fetch=async function(...v){let[E,M]=v,C=nr(E),w=!!sr(E,M)||or(C,{apiEndpoint:e.apiEndpoint,ignoreUrls:n.ignoreUrls});try{let P=await f.apply(this,v);return !w&&!P.ok&&P.status>=400&&po(u,t),P}catch(P){throw w||po(u,t),P}},r.push(()=>{globalThis.fetch=f;});}if((e.pageDwell===true||typeof e.pageDwell=="object"&&e.pageDwell!==null)&&typeof window<"u"){let C=function(R){return v.some(x=>x.endsWith("/*")?R.startsWith(x.slice(0,-2)):R===x||R.startsWith(x+"/"))},w=function(){let R=window.location?.pathname??"";C(R)||t.onTrigger("page_dwell",{thresholdMs:f,path:R});},P=function(){E&&clearTimeout(E);let R=window.location?.pathname??"";C(R)||(E=setTimeout(w,f));},y=function(){let R=window.location?.pathname??"";R!==M&&(M=R,P());};let u=typeof e.pageDwell=="object"?e.pageDwell??{}:{},f=u.thresholdMs||300*1e3,v=u.excludeRoutes!==void 0?u.excludeRoutes:pl,E=null,M=window.location?.pathname??"";P();let k=Te({onPush:y,onReplace:y,onPop:y});r.push(()=>{E&&clearTimeout(E),k();});}if((e.firstSession===true||typeof e.firstSession=="object"&&e.firstSession!==null)&&typeof window<"u"){let u=typeof e.firstSession=="object"?e.firstSession??{}:{},f=u.delayMs??45*1e3,v=u.storageKey??(e.projectId?`mushi:${e.projectId}:firstSessionShown`:"mushi:firstSessionShown"),E=false;try{E=window.localStorage?.getItem(v)==="1";}catch{}if(!E){let M=setTimeout(()=>{try{window.localStorage?.setItem(v,"1");}catch{}t.onTrigger("first_session",{delayMs:f});},f);r.push(()=>clearTimeout(M));}}if(e.errorBoundary){let u=function(v){t.onTrigger("error_boundary",{message:v.message,filename:v.filename,lineno:v.lineno,colno:v.colno});},f=function(v){t.onTrigger("error_boundary",{message:v.reason instanceof Error?v.reason.message:String(v.reason),type:"unhandled_rejection"});};window.addEventListener("error",u),window.addEventListener("unhandledrejection",f),r.push(()=>{window.removeEventListener("error",u),window.removeEventListener("unhandledrejection",f);});}return {destroy(){r.forEach(u=>u());}}}function hl(t){return t===false?{enabled:false,ignoreUrls:[]}:t&&typeof t=="object"?{enabled:t.enabled!==false,ignoreUrls:t.ignoreUrls??[]}:{enabled:true,ignoreUrls:[]}}function po(t,e){let r=Date.now();t.push(r);let n=t.filter(s=>r-s<1e4);n.length>=3&&(e.onTrigger("api_cascade",{failureCount:n.length,windowMs:1e4}),t.length=0);}var mo="mushi:lastDismiss",ar="mushi:consecDismiss",tn="mushi:lastShown";function lr(t){try{return localStorage.getItem(t)}catch{return null}}function cr(t,e){try{localStorage.setItem(t,e);}catch{}}function fo(t={}){let e=t.maxProactivePerSession??2,r=t.dismissCooldownHours??24,n=t.suppressAfterDismissals??3,s=(t.reshowCooldownMinutes??30)*60*1e3,o=0,l=new Set;function i(m){let b=Date.now();if(parseInt(lr(ar)??"0",10)>=n)return false;let f=lr(mo);if(f&&b-parseInt(f,10)<r*60*60*1e3)return false;if(s>0&&o===0){let v=lr(tn);if(v&&b-parseInt(v,10)<s)return false}return o>=e||l.has(m)?false:(l.add(m),o++,cr(tn,String(b)),true)}function a(){cr(mo,String(Date.now()));let m=parseInt(lr(ar)??"0",10);cr(ar,String(m+1));}function h(){cr(ar,"0");}function p(){o=0,l.clear();try{localStorage.removeItem(tn);}catch{}}return {shouldShow:i,recordDismissal:a,recordSubmission:h,reset:p}}function go(t,e){if(t.appVersion)return t.appVersion;let r=t.integrations?.vercel?.analyticsId;return r||e?.buildId}var Me=null,ur=class{constructor(){}static init(e){if(Me)return jt({scope:"mushi",level:"warn",format:"pretty"}).warn("Already initialized \u2014 call destroy() first to reinitialize"),Me;if(typeof document>"u"||typeof window>"u")return yo();let r={...Zn(),...e};if(!r.projectId)throw new Error("[mushi] projectId is required \u2014 set NEXT_PUBLIC_MUSHI_PROJECT_ID / VITE_MUSHI_PROJECT_ID / MUSHI_PROJECT_ID or pass it explicitly");if(!r.apiKey)throw new Error("[mushi] apiKey is required \u2014 set NEXT_PUBLIC_MUSHI_API_KEY / VITE_MUSHI_API_KEY / MUSHI_API_KEY or pass it explicitly");return r.enabled===false?yo():(Me=ml(r),Me)}static getInstance(){return Me}static destroy(){Me?.destroy(),Me=null;}static diagnose(){return Me?.diagnose()??nn()}};function ml(t){let e=gl(t),r=e.projectId,n=()=>de(r),s=e,o=t.debug??false?jt({scope:"mushi",level:"debug",format:"pretty"}):Sr,l=null,i=null,a=Jn({projectId:e.projectId,apiKey:e.apiKey,...e.apiEndpoint?{apiEndpoint:e.apiEndpoint}:{},...typeof e.timeout=="number"?{timeout:e.timeout}:{},...typeof e.maxRetries=="number"?{maxRetries:e.maxRetries}:{},...e.circuitBreaker?{circuitBreaker:e.circuitBreaker}:{},getUserToken:()=>l,sdkPackage:De,sdkVersion:fe}),h=Qn(e.preFilter),p=ss(e.offline),m=is({maxBurst:10,refillRate:1,refillIntervalMs:5e3}),b=as();function u(c){return c.map(d=>{let S={...d};if(typeof d.message=="string"&&(S.message=b.scrub(d.message)),d.data&&typeof d.data=="object"){let D={};for(let[$,U]of Object.entries(d.data))D[$]=typeof U=="string"?b.scrub(U):U;S.data=D;}return S})}function f(c){if(!c)return;let d={};for(let[S,D]of Object.entries(c))d[S]=typeof D=="string"?b.scrub(D):D;return d}let v=null,E=null,M=null,C=null,w=null,P=null,y=Jr(),k=null,R=0,x,B=`mushi:tester-jwt:${e.projectId}`;function N(){try{return typeof localStorage<"u"?localStorage.getItem(B):null}catch{return null}}function X(){try{typeof localStorage<"u"&&localStorage.removeItem(B);}catch{}}async function j(c){let d=await a.getTesterStatus(c);if(!d.ok||!d.data){X();return}let S=d.data;if(!S.is_tester||!S.tester_id){X();return}x.setTesterSession(c,{id:S.tester_id,public_handle:S.public_handle??null,display_name:S.display_name??null});let D=await a.getMyReputation(c);if(D.ok&&D.data){let $=D.data;$.reputation&&x.setTesterReputation($.reputation);}}function V(){if(s.capture?.console!==false?v??=jr():(v?.destroy(),v=null),s.capture?.network!==false){let $={apiEndpoint:rn(s),ignoreUrls:s.capture?.ignoreUrls,tracePropagation:s.capture?.tracePropagation,sessionId:bt()};E?E.updateOptions($):E=zr($);}else E?.destroy(),E=null;if(s.capture?.performance!==false?M??=Yr():(M?.destroy(),M=null),s.capture?.screenshot!=="off"){let $={privacy:s.privacy};s.capture?.screenshotProvider?C=null:C?C.updateOptions($):C=Gr($);}else C=null;!C&&!s.capture?.screenshotProvider&&(L=null),x.setAllowScreenshotRemove(s.privacy?.allowUserRemoveScreenshot!==false),s.capture?.elementSelector!==false?w??=Xr():(w?.deactivate(),w=null,ee=null);let c=s.capture?.discoverInventory,d=c===true?{}:c&&typeof c=="object"?c:null;d!=null&&d.enabled!==false?(P?.destroy(),P=Zr({config:d,getRecentNetworkPaths:()=>E?E.getEntries().map($=>{try{let U=new URL($.url,typeof window<"u"?window.location.href:"http://localhost");return U.host&&typeof window<"u"&&U.host!==window.location.host?null:U.pathname}catch{return null}}).filter($=>$!=null&&$.length>0&&$.length<200):[],getUserId:()=>T?.id??null,getSessionId:bt,onEvent:$=>{a.postDiscoveryEvent({...$,sdk_version:fe}).catch(U=>{o.debug("discovery emit failed",{err:String(U)});});}})):(P?.destroy(),P=null);let D=s.capture?.replay??"off";if(D==="rrweb"||D==="lite"){let $=++R;lo({redactSelectors:s.privacy?.redactSelectors}).then(U=>{if($!==R){U.destroy();return}k?.destroy(),k=U,k.start();});}else R++,k?.destroy(),k=null;}let O=new Map;function _(c,d){O.get(c)?.forEach(S=>S({type:c,data:d}));}let L=null,ee=null,Q=null,I=false,A=true,H=null,F=null,T=null,pe=null,Ne={},oe={},q=ls({max:50});q.add({category:"lifecycle",level:"info",message:"Mushi SDK init",data:{projectId:e.projectId,sdkVersion:fe}});let te=null;te=Tl(q);let ie=false;function $e(){x.refreshReporterInboxQuiet();}function W(){H&&clearInterval(H),H=null,F&&typeof document<"u"&&document.removeEventListener("visibilitychange",F),F=null;}function lt(){if(W(),!A)return;H=setInterval(()=>{typeof document<"u"&&document.visibilityState==="hidden"||$e();},6e4),typeof document<"u"&&(F=()=>{document.visibilityState==="visible"&&$e();},document.addEventListener("visibilitychange",F)),$e();}function Rt(c,d){if(!s.rewards?.enabled)return;let S={client:a,config:s.rewards,projectId:r,userId:c,traits:d,reporterToken:n()};Ys(S),s.rewards.showInWidget!==false&&a.getMyPoints(c).then(D=>{if(!D.ok)return;let $=D.data;x.setRewardsState({tier:$.tier?{slug:$.tier.slug??"free",displayName:$.tier.display_name??"Free",pointsThreshold:$.tier.points_threshold??0}:null,nextTier:$.next_tier?{displayName:$.next_tier.display_name??"",pointsThreshold:$.next_tier.points_threshold??0}:null,totalPoints:$.total_points??0,pointsForReport:$.report_submit_pts??50});}).catch(()=>{});}async function We(){if(ie)return null;let c=s.capture?.screenshotProvider;if(c){ie=true;try{let $=await c();if($)return $}catch($){o.warn("screenshotProvider threw, falling back to built-in capturer",{error:$ instanceof Error?$.message:String($)});}finally{ie=false;}}if(!C)return null;ie=true;let d=x.getIsOpen();d&&x.hidePanel();let S=document.getElementById("mushi-mushi-widget"),D=S?.style.visibility??"";S&&(S.style.visibility="hidden"),await new Promise($=>{requestAnimationFrame(()=>requestAnimationFrame(()=>$()));});try{return await C.take()}finally{ie=false,S&&(S.style.visibility=D),d&&x.showPanel();}}async function dr(c){let d=s.capture?.screenshot;!(C||s.capture?.screenshotProvider)||d==="off"||L||c==="open"&&d!=="auto"||c==="submit"&&d!=="on-report"&&d!=="auto"||(o.debug("Auto-capturing screenshot",{when:c,mode:d}),L=await We(),x.setScreenshotAttached(L!==null),x.setScreenshotPreview(L));}x=new Jt(e.widget,{onSubmit:async({category:c,userCategory:d,description:S,intent:D})=>(o.info("Report submitted",{category:c,userCategory:d,intent:D}),ct?.recordSubmission(),await dr("submit"),await So(c,S,D,d)??{reportId:null,queuedOffline:true}),onOpen:()=>{o.debug("Widget opened"),dr("open"),k?.start(),_("widget:opened");},onClose:()=>{o.debug("Widget closed"),Q&&(ct?.recordDismissal(),_("proactive:dismissed",{type:Q})),L=null,ee=null,Q=null,_("widget:closed");},onScreenshotRequest:async()=>{!(C||s.capture?.screenshotProvider)||s.capture?.screenshot==="off"||(o.debug("Taking screenshot"),L=await We(),x.setScreenshotAttached(L!==null),x.setScreenshotPreview(L));},onScreenshotRemove:()=>{o.debug("Screenshot attachment removed"),L=null,x.setScreenshotAttached(false);},onScreenshotAnnotateRequest:async c=>{if(!L||c.childElementCount>0)return;let d;try{d=await co(L,c);}catch(re){o.warn("Screenshot annotation failed",{error:re instanceof Error?re.message:String(re)});return}let S=document.createElement("div");S.className="mushi-annotate-toolbar";let D=re=>{(L=d.getDataUrl(),x.setScreenshotAttached(true),x.setScreenshotPreview(L)),d.destroy(),S.remove();},$=[{id:"highlight",label:"\u270F\uFE0F Highlight"},{id:"blur",label:"\u{1F512} Blur"},{id:"arrow",label:"\u2197\uFE0F Arrow"}];for(let re of $){let K=document.createElement("button");K.type="button",K.className="mushi-attach-btn",K.dataset.tool=re.id,K.textContent=re.label,K.addEventListener("click",()=>{d.setTool(re.id),S.querySelectorAll("button[data-tool]").forEach(ae=>ae.classList.remove("active")),K.classList.add("active");}),S.appendChild(K);}S.querySelector('button[data-tool="highlight"]')?.classList.add("active");let U=document.createElement("button");U.type="button",U.className="mushi-attach-btn",U.textContent="\u2713 Done",U.addEventListener("click",()=>D()),S.appendChild(U),c.insertBefore(S,c.firstChild);},onElementSelectorRequest:async()=>{if(!(!w||s.capture?.elementSelector===false)){o.debug("Element selector activated"),x.setElementCapturing(true),x.hidePanel();try{let c=await w.activate();c?(ee=c,x.setElementSelected(!0),o.debug("Element selected",{tagName:c.tagName,xpath:c.xpath})):x.setElementCapturing(!1);}finally{x.showPanel();}}},async onReporterReportsRequest(){let c=await a.listReporterReports(de(r));if(!c.ok)throw new Error(c.error?.message??"Could not load reports");return c.data?.reports??[]},async onReporterCommentsRequest(c){let d=await a.listReporterComments(c,de(r));if(!d.ok)throw new Error(d.error?.message??"Could not load thread");return d.data?.comments??[]},async onReporterReply(c,d){let S=await a.replyToReporterReport(c,de(r),d);if(!S.ok)throw new Error(S.error?.message??"Could not send reply")},async onReporterFeedback(c,d,S){let D=await a.replyToReporterReport(c,de(r),S??"",d);if(!D.ok)throw new Error(D.error?.message??"Could not send feedback");return D.data?.feedback??null},async onReporterReopen(c,d){let S=await a.reopenReporterReport(c,de(r),d);if(!S.ok)throw new Error(S.error?.message??"Could not reopen report");return S.data?.outcome??null},async onFeatureBoardRequest(){let c=await a.listReporterFeatureBoard(de(r));if(!c.ok)throw new Error(c.error?.message??"Could not load community ideas");return c.data?.tickets??[]},async onFeatureBoardVote(c){let d=await a.voteReporterFeatureBoard(c,de(r));if(!d.ok)throw new Error(d.error?.message??"Could not vote");return d.data??{voted:true,action:"added"}},onLeaderboardOpen(){x.setLeaderboard(null,true),Js(10).then(c=>{x.setLeaderboard(c,false);});},async onMushiSignIn(c){let d=await a.sendMagicLink(c);if(!d.ok)throw new Error(d.error?.message??"Could not send sign-in link");return {ok:true}},async onGlobalLeaderboardOpen(){x.setGlobalLeaderboard(null,true);try{let c=N(),d=await a.getPublicLeaderboard(50),D=(d.ok?d.data?.leaderboard??[]:[]).map($=>({tester_id:$.tester_id,rank:$.rank,public_handle:$.public_handle,display_name:$.display_name,points_30d:$.points_30d,total_points:$.total_points??0,badge:$.badge_slug}));if(x.setGlobalLeaderboard(D,!1),c){let $=await a.getMyReputation(c);if($.ok&&$.data){let U=$.data;U.reputation&&x.setTesterReputation(U.reputation);}}}catch{x.setGlobalLeaderboard([],false);}},async onCrossAppReportsOpen(){let c=N();if(!c){x.setCrossAppReports([],false);return}try{let d=await a.getCrossAppReports(c),S=d.ok?d.data?.reports??[]:[];x.setCrossAppReports(S,!1);}catch{x.setCrossAppReports([],false);}},onTesterSignOut(){X();},assistantEnabled:e.assistant?.enabled===true,...e.assistant?.label?{assistantLabel:e.assistant.label}:{},...e.assistant?.greeting?{assistantGreeting:e.assistant.greeting}:{},...e.assistant?.suggestions?{assistantSuggestions:e.assistant.suggestions}:{},async onAssistantAsk(c,d){let S=await a.askAssistant({message:c,threadId:d,context:i});return S.ok?S.data??null:null}},fe),V(),typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>x.mount()):x.mount());let on=N();on&&j(on).catch(()=>X());let an=null,ct=null,J=s.proactive;J&&(J.rageClick!==false||J.longTask!==false||J.apiCascade!==false||J.errorBoundary===true||J.pageDwell||J.firstSession)&&typeof document<"u"&&(ct=fo(J?.cooldown),an=ho({onTrigger:(c,d)=>{if(typeof navigator<"u"&&!navigator.onLine){o.debug("Proactive trigger suppressed: offline",{type:c});return}if(!ct.shouldShow(c)){o.debug("Proactive trigger suppressed by fatigue prevention",{type:c});return}o.info("Proactive trigger fired",{type:c,context:d}),Q=c,_("proactive:triggered",{type:c,context:d}),c==="first_session"?x.pulseTrigger?.():x.open();}},{rageClick:J?.rageClick,longTask:J?.longTask,apiCascade:J?.apiCascade,apiEndpoint:rn(s),errorBoundary:J?.errorBoundary,pageDwell:J?.pageDwell,firstSession:J?.firstSession,projectId:e.projectId}),o.debug("Proactive triggers enabled",{rageClick:J?.rageClick!==false,longTask:J?.longTask!==false,apiCascade:J?.apiCascade!==false,errorBoundary:J?.errorBoundary===true,pageDwell:!!J?.pageDwell,firstSession:!!J?.firstSession})),p.startAutoSync(a),p.flush(a).then(c=>{c.sent>0&&o.info("Synced offline reports",{sent:c.sent});});function pr(c){if(I=true,A=c.reporterNotificationsEnabled!==false,c.enabled===false){s=e,kl(t.projectId),V(),x.updateConfig(s.widget),W(),o.debug("Runtime SDK config disabled; using bootstrap config",{version:c.version});return}s=fl(s,c),V(),c.widget&&x.updateConfig(s.widget),A?lt():W(),o.debug("Applied runtime SDK config",{version:c.version});}if(yl(t)){let c=wl(t.projectId);c&&pr(c),a.getSdkConfig().then(d=>{d.ok&&d.data?(Sl(t.projectId,d.data),pr(d.data)):d.error&&o.debug("Runtime SDK config unavailable",d.error);}).catch(d=>{o.debug("Runtime SDK config fetch failed",{error:d instanceof Error?d.message:String(d)});});}else o.debug("Runtime SDK config disabled via runtimeConfig:false; using static bootstrap config");wo(),lt(),o.info("Initialized",{projectId:t.projectId});async function wo(){if(s.widget?.outdatedBanner==="off")return;let c=El(De);c&&ln(c);let d=await a.getLatestSdkVersion(De);!d.ok||!d.data||(Rl(De,d.data),ln(d.data));}function ln(c){let d=c.latest,S=!!(d&&Cl(fe,d));if(!S&&!c.deprecated)return;let D=c.deprecationMessage??(S?`Update ${De} to ${d}.`:null);o.warn("Mushi SDK is outdated",{package:De,current:fe,latest:d,deprecated:c.deprecated,message:D}),s.widget?.outdatedBanner!=="console-only"&&x.setSdkFreshness({latest:d,current:fe,deprecated:c.deprecated,message:D});}async function So(c,d,S,D){let $=h.check(d);if(!$.passed){o.info("Report blocked by pre-filter",{reason:$.reason});return}let U=t.preFilter?.wasmClassifier;if(U)try{let Y=await U.classify({description:d,category:c,url:typeof location<"u"?location.href:void 0,hasScreenshot:L!==null,hasSelectedElement:ee!==null,hasNetworkErrors:E?.getEntries()?.some(ve=>ve.status>=400||!!ve.error)??!1,hasConsoleErrors:v?.getEntries()?.some(ve=>ve.level==="error")??!1,proactiveTrigger:Q??void 0});if(Y.verdict==="block"){o.info("Report blocked by on-device classifier",{modelId:Y.modelId,confidence:Y.confidence,reason:Y.reason});return}o.debug("On-device classifier verdict",{...Y});}catch(Y){o.warn("On-device classifier threw \u2014 falling through to server",{error:Y instanceof Error?Y.message:String(Y)});}if(!m.tryConsume()){o.warn("Report throttled \u2014 rate limit exceeded");return}let re=b.scrub(h.truncate(d)),K=t.sentry?Qr(t.sentry):void 0,ae=await os().catch(()=>null),ye=s.capture?.console===false?void 0:v?.getEntries(),Le=s.capture?.network===false?void 0:E?.getEntries(),Ie=u(q.getAll()),Ct=f(Object.keys(oe).length>0?{...oe}:void 0),pn=K?{...K,...K.breadcrumbs?{breadcrumbs:u(K.breadcrumbs)}:{},...K.tags?{tags:f(K.tags)}:{}}:void 0,hn=L?await Rs(L).catch(()=>null):null;L&&!hn&&o.warn("Screenshot dropped \u2014 could not compress under wire budget");let mn=kr(),Se={id:Er(),projectId:t.projectId,category:c,...D?{userCategory:D}:{},description:re,userIntent:S,environment:mn,consoleLogs:ye,networkLogs:Le,performanceMetrics:s.capture?.performance===false?void 0:M?.getMetrics(),timeline:y.getEntries({consoleLogs:ye,networkLogs:Le}),screenshotDataUrl:hn??void 0,selectedElement:ee??void 0,...k?{replayEvents:k.flush()}:{},metadata:{...Ne,...T?{user:T}:{},...K?.release?{sentryRelease:K.release}:{}},sessionId:bt(),reporterToken:de(r),...ae?{fingerprintHash:ae}:{},appVersion:go(s,mn),sdkPackage:De,sdkVersion:fe,proactiveTrigger:Q??void 0,...Ie.length>0?{breadcrumbs:Ie}:{},...Ct?{tags:Ct}:{},...pn?{sentryContext:pn}:{},sentryEventId:K?.eventId,sentryReplayId:K?.replayId,createdAt:new Date().toISOString()};if(q.add({category:"lifecycle",level:"info",message:`Mushi report submitting (${c})`,data:{reportId:Se.id,category:c}}),t.integrations?.custom){let Y={addMetadata(ve,ko){Se.metadata[ve]=ko;},setCategory(ve){Se.category=ve;},setDescription(ve){Se.description=ve;}};t.integrations.custom(Y);}let z=Se;if(t.beforeSendFeedback)try{let Y=await Promise.race([Promise.resolve(t.beforeSendFeedback(Se)),new Promise(ve=>setTimeout(()=>ve(Se),2e3))]);if(Y===null){o.info("Report dropped by beforeSendFeedback hook",{reportId:Se.id});return}z=Y;}catch(Y){o.warn("beforeSendFeedback hook threw \u2014 sending unmodified report",{error:Y instanceof Error?Y.message:String(Y)});}if(_("report:submitted",{reportId:z.id}),typeof navigator<"u"&&!navigator.onLine)return await p.enqueue(z),o.info("Offline \u2014 report queued",{reportId:z.id}),_("report:queued",{reportId:z.id}),{reportId:null,queuedOffline:true};let G=await a.submitReport(z);if(!G.ok&&G.error?.code==="PAYLOAD_TOO_LARGE"&&(Array.isArray(z.replayEvents)&&z.replayEvents.length>0&&(o.warn("Report too large \u2014 dropping replay buffer and retrying",{reportId:z.id}),z={...z,replayEvents:void 0},G=await a.submitReport(z)),!G.ok&&G.error?.code==="PAYLOAD_TOO_LARGE"&&z.screenshotDataUrl&&(o.warn("Report still too large \u2014 dropping screenshot and retrying",{reportId:z.id}),z={...z,screenshotDataUrl:void 0},G=await a.submitReport(z))),G.ok){if(o.info("Report sent",{reportId:G.data?.reportId}),_("report:sent",{reportId:G.data?.reportId}),$e(),G.data?.cursorAgentId){let Y=G.data;_("report:dispatched",{reportId:Y.reportId,agentId:Y.cursorAgentId,fixId:Y.fixId});}q.add({category:"lifecycle",level:"info",message:`Mushi report sent (${G.data?.reportId??Se.id})`}),at({action:"report_submit",metadata:{category:c,reportId:G.data?.reportId??Se.id}});try{t.sentry&&G.data?.reportId&&en(G.data.reportId);}catch{}}else G.error?.code==="PAYLOAD_TOO_LARGE"||G.error?.code==="SERIALIZE_FAILED"?(o.warn("Report exceeds size limit after degradation \u2014 dropping",{reportId:z.id,error:G.error}),_("report:failed",{reportId:z.id,error:G.error}),q.add({category:"lifecycle",level:"error",message:`Mushi report dropped \u2014 payload too large (${z.id})`})):(o.warn("Report failed, queuing for retry",{reportId:z.id,error:G.error}),await p.enqueue(z),_("report:failed",{reportId:z.id,error:G.error}),q.add({category:"lifecycle",level:"warning",message:`Mushi report queued for retry (${z.id})`}));return L=null,ee=null,Q=null,G?.ok?{reportId:G.data?.reportId??Se.id,queuedOffline:false}:{reportId:null,queuedOffline:true}}let cn={report(c){x.open(c);},on(c,d){return O.has(c)||O.set(c,new Set),O.get(c).add(d),()=>O.get(c)?.delete(d)},setUser(c){T=c;},setMetadata(c,d){Ne[c]=d;},setScreen(c){y.setScreen(c);},isOpen(){return x.getIsOpen()},open(){x.open();},openWith(c){x.open({category:c});},show(){x.showTrigger();},hide(){x.hideTrigger();},attachTo(c,d){return x.attachTo(c,d)},setTrigger(c){x.setTrigger(c);},openReporter(){x.openReporter();},close(){x.close();},updateConfig(c){pr(c);},diagnose(){return vl({apiEndpoint:rn(s),widgetMounted:x.getIsMounted(),runtimeConfigLoaded:I,captureScreenshotAvailable:C!==null,captureNetworkIntercepting:E!==null,widgetDiagnostics:x.getWidgetDiagnostics()})},destroy(){an?.destroy(),ct?.reset(),x.destroy(),v?.destroy(),E?.destroy(),M?.destroy(),w?.deactivate(),Zs(),te?.(),te=null,P?.destroy(),P=null,y.destroy(),Fs(),k?.destroy(),k=null,p.stopAutoSync(),W(),q.clear(),O.clear(),Me=null,o.debug("Destroyed");},async captureEvent(c){if(!m.tryConsume())return o.warn("captureEvent throttled \u2014 rate limit exceeded"),null;let d=b.scrub(h.truncate(c.description)),S=c.category??"bug",D=t.sentry?Qr(t.sentry):void 0,$=u(q.getAll()),U=f(Object.keys(oe).length===0&&!c.tags?void 0:{...oe,...c.tags??{}}),re=D?{...D,...D.breadcrumbs?{breadcrumbs:u(D.breadcrumbs)}:{},...D.tags?{tags:f(D.tags)}:{}}:void 0,K=kr(),ae={id:Er(),projectId:t.projectId,category:S,description:d,environment:K,timeline:y.getEntries(),metadata:{...c.metadata??{},...T?{user:T}:{},...c.error?{error:c.error}:{},...c.severity?{severity:c.severity}:{},...c.component?{component:c.component}:{},...c.source?{source:c.source}:{source:"captureEvent"}},...$.length>0?{breadcrumbs:$}:{},...U&&Object.keys(U).length>0?{tags:U}:{},...re?{sentryContext:re}:{},sessionId:bt(),reporterToken:de(r),appVersion:go(s,K),sdkPackage:De,sdkVersion:fe,sentryEventId:D?.eventId,sentryReplayId:D?.replayId,createdAt:new Date().toISOString()},ye=ae;if(s.beforeSendFeedback)try{let Ie=await Promise.race([Promise.resolve(s.beforeSendFeedback(ae)),new Promise(Ct=>setTimeout(()=>Ct(ae),2e3))]);if(Ie===null)return o.info("captureEvent dropped by beforeSendFeedback hook",{reportId:ae.id}),null;ye=Ie;}catch(Ie){o.warn("captureEvent beforeSendFeedback threw \u2014 sending unmodified report",{error:Ie instanceof Error?Ie.message:String(Ie)});}if(_("report:submitted",{reportId:ye.id}),typeof navigator<"u"&&!navigator.onLine)return await p.enqueue(ye),_("report:queued",{reportId:ye.id}),null;let Le=await a.submitReport(ye);if(Le.ok){_("report:sent",{reportId:Le.data?.reportId});try{t.sentry&&Le.data?.reportId&&en(Le.data.reportId);}catch{}return Le.data?.reportId??null}return await p.enqueue(ye),_("report:failed",{reportId:ye.id,error:Le.error}),null},async captureException(c,d){let S=cs(c);q.add({category:"lifecycle",level:"error",message:`Mushi.captureException(${S.name}): ${S.message}`,...S.stack?{data:{stack:S.stack.slice(0,500)}}:{}});let D=d?.description?.trim()||`${S.name}: ${S.message}`||"Uncaught exception";return cn.captureEvent({description:D,category:d?.category??"bug",severity:d?.severity??"high",...d?.component?{component:d.component}:{},...d?.tags?{tags:d.tags}:{},source:d?.source??"captureException",error:{name:S.name,message:S.message,...S.stack?{stack:S.stack}:{}},metadata:{...d?.metadata??{},...S.cause?{cause:S.cause}:{}}})},identify(c,d){let S=`${c}::${d?JSON.stringify(d):""}`;if(S!==pe){if(pe=S,T={id:c,...d?.email?{email:d.email}:{},...d?.name?{name:d.name}:{}},x.setIdentifiedUser(T.name||T.email?{name:T.name,email:T.email}:null),d)for(let[D,$]of Object.entries(d))D!=="email"&&D!=="name"&&(Ne[`user.${D}`]=$);q.add({category:"lifecycle",level:"info",message:`Mushi.identify(${c})`}),Rt(c,d?{email:d.email,name:d.name,provider:d.provider}:void 0);}},identifyWithToken(c){if(l=c&&typeof c=="string"?c:null,l){let d=gs(l);if(d?.sub){if(T?.id===d.sub){q.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken() refreshed"});return}T={id:d.sub,...d.email?{email:d.email}:{},...d.name?{name:d.name}:{}},x.setIdentifiedUser(T.name||T.email?{name:T.name,email:T.email}:null),Rt(T.id,{email:T.email,name:T.name});}q.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken()"});}else T=null,pe=null,x.setIdentifiedUser(null),q.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken(null)"});},publishPageContext(c){i=c&&c.route?c:null;},openAssistant(){x.openAssistantTab();},addBreadcrumb(c){q.add(c);},getBreadcrumbs(){return q.getAll()},setTag(c,d){typeof c!="string"||c.length===0||(oe[c]=d);},setTags(c){if(!(!c||typeof c!="object"))for(let[d,S]of Object.entries(c))typeof d=="string"&&d.length>0&&(oe[d]=S);},clearTag(c){if(typeof c=="string"&&c.length>0){delete oe[c];return}for(let d of Object.keys(oe))delete oe[d];},async getReputation(){if(!T?.id)return null;let c=await a.getMyPoints(T.id);return c.ok?{totalPoints:c.data.total_points??0,points30d:c.data.points_30d??0,reputation:1,confirmedBugs:0,totalReports:0}:null},async getTier(){return T?.id?Xs(T.id):null},recordActivity(c,d){s.rewards?.enabled&&at({action:c,metadata:d});},pulseTrigger(){x.pulseTrigger?.();},async listMyReports(){let c=await a.listReporterReports(de(r));return c.ok?c.data?.reports??[]:[]},async listMyComments(c){let d=await a.listReporterComments(c,de(r));return d.ok?d.data?.comments??[]:[]},async replyToReport(c,d){let S=await a.replyToReporterReport(c,de(r),d);return S.ok?S.data?.comment??null:null},async submitFeedbackSignal(c,d,S){let D=await a.replyToReporterReport(c,de(r),S??"",d);return D.ok?D.data?.feedback??null:null},async reopenReport(c,d){let S=await a.reopenReporterReport(c,de(r),d);return S.ok?S.data?.outcome??null:null},openMyReports(){x.recorderOpenMyReports();},async getHallOfFame(c=20){let d=await a.getHallOfFame(c);return d.ok?d.data?.data??[]:[]}};if(typeof globalThis<"u"&&(e.debug??false)&&Ns(x),typeof window<"u"&&typeof localStorage<"u"){let c="mushi:last-run",d=null;try{let S=localStorage.getItem(c);d=S===null?null:S==="unfinished",localStorage.setItem(c,"unfinished");}catch{d=null;}try{window.addEventListener("pagehide",()=>{try{localStorage.setItem(c,"clean");}catch{}});}catch{}if(typeof e.onCrashedLastRun=="function")try{e.onCrashedLastRun(d);}catch(S){o.warn("onCrashedLastRun hook threw",{error:S instanceof Error?S.message:String(S)});}}let un={on:()=>{},isOpen:false,getBreadcrumbs:[],captureEvent:null,captureException:null,getReputation:null,getTier:null,listMyReports:[],listMyComments:[],getHallOfFame:[],replyToReport:null,submitFeedbackSignal:null,reopenReport:null},dn=(c,d)=>{let S=d instanceof Error?d.message:String(d);o.debug(`Mushi.${c}() failed (swallowed)`,{error:S});try{q.add({category:"custom",level:"warning",message:`mushi.${c}() threw`,data:{error:S}});}catch{}};return (c=>new Proxy(c,{get(d,S,D){let $=Reflect.get(d,S,D);if(typeof $!="function")return $;let U=String(S),re=()=>U==="diagnose"?nn():U in un?un[U]:void 0;return (...K)=>{try{let ae=$.apply(d,K);return ae&&typeof ae.then=="function"?ae.catch(ye=>(dn(U,ye),re())):ae}catch(ae){return dn(U,ae),re()}}}}))(cn)}function fl(t,e){let r=e.native?.triggerMode,n=e.widget?.launcher,s=n??e.widget?.trigger??(r==="none"||r==="shake"?"manual":void 0),o=n==="hidden"||e.widget?.trigger==="hidden",l=t.widget?.trigger,i=s==="hidden"&&!o&&l&&l!=="hidden"?l:s,a=e.widget,h=a?.bannerVariant,p=a?.bannerPosition,m=a?.bannerMessage,b=a?.bannerLabel,u=a?.bannerBugCta,f=a?.bannerFeatureCta,v=h||p||m!=null||b!=null||u!=null||f!=null?{...t.widget?.bannerConfig??{},...h?{variant:h}:{},...p?{position:p}:{},...m!=null?{message:m}:{},...b!=null?{label:b===""?false:b}:{},...u!=null?{bugCta:u??void 0}:{},...f!=null?{featureCta:f}:{}}:void 0;return {...t,widget:{...t.widget,...e.widget,...i?{trigger:i}:{},...v?{bannerConfig:v}:{},...t.widget?.betaMode?{betaMode:t.widget.betaMode}:{}},capture:{...t.capture,...e.capture},privacy:{...t.privacy}}}function gl(t){if(!t.preset)return t;let e=bl(t.preset);return {...t,widget:{...e.widget,...t.widget},capture:{...e.capture,...t.capture},proactive:{...e.proactive,...t.proactive,cooldown:{...e.proactive?.cooldown,...t.proactive?.cooldown}}}}function bl(t){switch(t){case "manual-only":return {widget:{trigger:"manual",outdatedBanner:"console-only"},capture:{console:true,network:true,performance:false,screenshot:"on-report",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}};case "beta-loud":return {widget:{trigger:"auto",outdatedBanner:"banner"},capture:{console:true,network:true,performance:true,screenshot:"auto",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true}};case "internal-debug":return {widget:{trigger:"auto",outdatedBanner:"banner",brandFooter:true},capture:{console:true,network:true,performance:true,screenshot:"auto",elementSelector:true},proactive:{rageClick:true,longTask:true,apiCascade:true,errorBoundary:true,cooldown:{maxProactivePerSession:10,dismissCooldownHours:0,suppressAfterDismissals:99}}};case "production-calm":return {widget:{trigger:"auto",outdatedBanner:"console-only"},capture:{console:true,network:true,performance:false,screenshot:"on-report",elementSelector:false},proactive:{rageClick:false,longTask:false,apiCascade:false,errorBoundary:false}}}}function rn(t){return t.apiEndpoint??qt}function yl(t){return t.runtimeConfig!==false}async function vl(t){let e=await xl(t.apiEndpoint);return {apiEndpointReachable:e.reachable,cspAllowsEndpoint:e.cspAllowed,widgetMounted:t.widgetMounted,shadowDomAvailable:typeof HTMLElement<"u"&&typeof HTMLElement.prototype.attachShadow=="function",dialogSupported:typeof HTMLDialogElement<"u",runtimeConfigLoaded:t.runtimeConfigLoaded,captureScreenshotAvailable:t.captureScreenshotAvailable,captureNetworkIntercepting:t.captureNetworkIntercepting,sdkVersion:fe,widgetHostPointerSafe:t.widgetDiagnostics?.widgetHostPointerSafe??false,widgetHostBounds:t.widgetDiagnostics?.widgetHostBounds??null,widgetSuppressed:t.widgetDiagnostics?.widgetSuppressed??false,bannerRendered:t.widgetDiagnostics?.bannerRendered??false}}async function nn(){return {apiEndpointReachable:false,cspAllowsEndpoint:false,widgetMounted:false,shadowDomAvailable:typeof HTMLElement<"u"&&typeof HTMLElement.prototype.attachShadow=="function",dialogSupported:typeof HTMLDialogElement<"u",runtimeConfigLoaded:false,captureScreenshotAvailable:false,captureNetworkIntercepting:false,sdkVersion:fe,widgetHostPointerSafe:false,widgetHostBounds:null,widgetSuppressed:false,bannerRendered:false}}async function xl(t){if(typeof fetch>"u")return {reachable:false,cspAllowed:false};let e=typeof AbortController<"u"?new AbortController:null,r=e?setTimeout(()=>e.abort(),3e3):null;try{return {reachable:(await fetch(`${t.replace(/\/$/,"")}/health`,{method:"GET",cache:"no-store",...e?{signal:e.signal}:{},[Ze]:"diagnose"})).ok,cspAllowed:!0}}catch{return {reachable:false,cspAllowed:false}}finally{r&&clearTimeout(r);}}function sn(t){return `mushi:sdk-config:${t}`}function xo(t){return `mushi:sdk-version:${t}`}function wl(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(sn(t));return e?JSON.parse(e).config??null:null}catch{return null}}function Sl(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(sn(t),JSON.stringify({cachedAt:Date.now(),config:e}));}catch{}}function kl(t){if(!(typeof localStorage>"u"))try{localStorage.removeItem(sn(t));}catch{}}function El(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(xo(t));if(!e)return null;let r=JSON.parse(e);return !r.data||!r.cachedAt||Date.now()-r.cachedAt>864e5?null:r.data}catch{return null}}function Rl(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(xo(t),JSON.stringify({cachedAt:Date.now(),data:e}));}catch{}}function Cl(t,e){let r=bo(t),n=bo(e);for(let s=0;s<Math.max(r.length,n.length);s++){let o=r[s]??0,l=n[s]??0;if(o<l)return true;if(o>l)return false}return false}function bo(t){return t.split(/[.-]/).map(e=>Number.parseInt(e,10)).filter(e=>Number.isFinite(e))}function yo(){return {report:()=>{},on:()=>()=>{},setUser:()=>{},setMetadata:()=>{},setScreen:()=>{},isOpen:()=>false,open:()=>{},close:()=>{},updateConfig:()=>{},diagnose:nn,openWith:()=>{},show:()=>{},hide:()=>{},attachTo:()=>()=>{},setTrigger:()=>{},openReporter:()=>{},destroy:()=>{Me=null;},captureEvent:async()=>null,captureException:async()=>null,identify:()=>{},identifyWithToken:()=>{},publishPageContext:()=>{},openAssistant:()=>{},addBreadcrumb:()=>{},getBreadcrumbs:()=>[],setTag:()=>{},setTags:()=>{},clearTag:()=>{},getReputation:async()=>null,getTier:async()=>null,recordActivity:()=>{},pulseTrigger:()=>{},listMyReports:async()=>[],listMyComments:async()=>[],replyToReport:async()=>null,submitFeedbackSignal:async()=>null,reopenReport:async()=>null,openMyReports:()=>{},getHallOfFame:async()=>[]}}function Tl(t){if(typeof window>"u")return ()=>{};let e=[];try{let r=s=>{t.add({category:"navigation",level:"info",message:`${s}: ${window.location.pathname}`,data:{url:window.location.href,kind:s}});},n=Te({onPush:()=>r("pushState"),onReplace:()=>r("replaceState"),onPop:()=>r("popstate")});e.push(n);}catch{}try{let r=console.error,n=console.warn,s=function(...l){try{t.add({category:"console",level:"error",message:l.map(vo).join(" ")});}catch{}return r.apply(this,l)},o=function(...l){try{t.add({category:"console",level:"warning",message:l.map(vo).join(" ")});}catch{}return n.apply(this,l)};console.error=s,console.warn=o,e.push(()=>{console.error===s&&(console.error=r),console.warn===o&&(console.warn=n);});}catch{}try{let r=n=>{try{let s=n.target;if(!(s instanceof Element))return;let o=s,l=0;for(;o&&l<10;){let i=o.getAttribute("data-testid");if(i){let a=(o.textContent??"").trim().slice(0,80);t.add({category:"ui.click",level:"info",message:`clicked ${i}${a?` \u2014 ${a}`:""}`,data:{testid:i,tag:o.tagName.toLowerCase()}});return}o=o.parentElement,l++;}}catch{}};document.addEventListener("click",r,{passive:!0,capture:!0}),e.push(()=>document.removeEventListener("click",r,!0));}catch{}return ()=>{for(let r of e)try{r();}catch{}}}function vo(t){try{if(t instanceof Error)return `${t.name}: ${t.message}`;if(typeof t=="object"&&t!==null){let r=JSON.stringify(t);return r.length>200?`${r.slice(0,200)}\u2026`:r}let e=String(t);return e.length>200?`${e.slice(0,200)}\u2026`:e}catch{return `[${typeof t}]`}}function Ml(){let t=document.currentScript;if(t&&t.dataset&&t.dataset.project)return t;let e=Array.from(document.querySelectorAll("script[data-project][data-key]"));return e.length>0?e[e.length-1]:null}function $l(t){let e=t.project?.trim(),r=t.key?.trim();if(!e||!r)return null;let n={};t.trigger&&(n.trigger=t.trigger),t.theme&&(n.theme=t.theme),t.position&&(n.position=t.position),t.triggerText&&(n.triggerText=t.triggerText);let s=t.bannerVariant,o=t.bannerPosition;(s||o)&&(n.bannerConfig={...s?{variant:s}:{},...o?{position:o}:{}});let l={projectId:e,apiKey:r};return t.endpoint&&(l.apiEndpoint=t.endpoint),t.debug==="true"&&(l.debug=true),Object.keys(n).length>0&&(l.widget=n),l}function Ll(){if(typeof document>"u"||typeof window>"u")return;let t=window;if(t.__mushiLoaderInit)return;let e=Ml();if(!e)return;let r=$l(e.dataset);if(r){t.__mushiLoaderInit=true;try{ur.init(r);}catch{}}}Ll();
2276
+ `,document.body.appendChild(f),f}function i(f){if(!e)return;let v=f.getBoundingClientRect();e.style.left=`${v.left}px`,e.style.top=`${v.top}px`,e.style.width=`${v.width}px`,e.style.height=`${v.height}px`,e.style.display="block";}function l(f){let v=f.target;v!==e&&i(v);}function p(f){f.preventDefault(),f.stopPropagation();let v=f.target;if(v===e||(f.composedPath?f.composedPath():[]).some(w=>w instanceof Element&&w.id==="mushi-mushi-widget"))return;let R=o(v);m(R);}function h(f){f.key==="Escape"&&m(null);}function m(f){u(),r?.(f),r=null;}function b(){return t&&u(),new Promise(f=>{r=f,t=true,e=a(),document.body.style.cursor="crosshair",document.addEventListener("mousemove",l,true),document.addEventListener("click",p,true),document.addEventListener("keydown",h,true);})}function u(){t&&(t=false,document.body.style.cursor="",document.removeEventListener("mousemove",l,true),document.removeEventListener("click",p,true),document.removeEventListener("keydown",h,true),e&&(e.remove(),e=null));}return {activate:b,deactivate:u,isActive:()=>t}}var uo=120;function Zr(){let t=[],e=()=>n("hashchange");n("initial");function r(a){t.push(a),t.length>uo&&t.shift();}function n(a){typeof location>"u"||r({ts:Date.now(),kind:"route",payload:{source:a,route:`${location.pathname}${location.search}${location.hash}`,href:location.href}});}function s(a){let i=a.target instanceof Element?a.target:null;if(!i)return;let l=i.closest('button,a,[role="button"],input,textarea,select,[data-mushi-track]')??i;r({ts:Date.now(),kind:"click",payload:{tag:l.tagName.toLowerCase(),id:l.id||void 0,text:ul(l)}});}let o=Te({onPush:()=>n("pushState"),onReplace:()=>n("replaceState"),onPop:()=>n("popstate")});return window.addEventListener("hashchange",e),document.addEventListener("click",s,true),{setScreen(a){r({ts:Date.now(),kind:"screen",payload:a});},getEntries(a={}){return [...t,...(a.consoleLogs??[]).map(l=>({ts:l.timestamp,kind:"log",payload:{level:l.level,message:l.message}})),...(a.networkLogs??[]).map(l=>({ts:l.timestamp,kind:"request",payload:{method:l.method,url:l.url,status:l.status,duration:l.duration,error:l.error}}))].sort((l,p)=>l.ts-p.ts).slice(-uo)},clear(){t.length=0;},destroy(){o(),window.removeEventListener("hashchange",e),document.removeEventListener("click",s,true);}}}function ul(t){let e=(t.textContent??"").replace(/\s+/g," ").trim();return e?e.slice(0,80):void 0}var dl=6e4,pl=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,hl=/^[0-9a-f]{20,}$/i,ml=/^\d+$/,fl=/^[a-z0-9]{16,}$/i;function po(t){return t.length===0?t:pl.test(t)||hl.test(t)||ml.test(t)||fl.test(t)&&/\d/.test(t)?"[id]":t}function ho(t,e){let r=t.length>1&&t.endsWith("/")?t.slice(0,-1):t;if(e?.length){let n=gl(r,e);if(n)return n}return "/"+r.split("/").filter(n=>n.length>0).map(po).join("/")}function gl(t,e){let r=t.split("/").filter(s=>s.length>0),n=[...e].sort((s,o)=>o.split("/").length-s.split("/").length);for(let s of n){let o=s.split("/").filter(i=>i.length>0);if(o.length!==r.length)continue;let a=true;for(let i=0;i<o.length;i++){let l=o[i],p=r[i];if(!(l.startsWith("[")&&l.endsWith("]"))&&!l.startsWith(":")&&l!==p){a=false;break}}if(a)return "/"+o.join("/")}return null}function bl(){if(typeof document>"u")return [];let t=new Set,e=document.querySelectorAll("[data-testid]");for(let r of Array.from(e)){let n=r.getAttribute("data-testid");n&&n.length>0&&n.length<120&&t.add(n);}return Array.from(t).sort()}function yl(){if(typeof window>"u")return [];try{let t=new URLSearchParams(window.location.search),e=new Set;return t.forEach((r,n)=>e.add(n)),Array.from(e).sort()}catch{return []}}function vl(){if(typeof document>"u")return null;let t=s=>(s??"").replace(/\s+/g," ").trim().slice(0,200),e=t(document.querySelector("h1")?.textContent);if(e)return e;let r=t(document.title);return r||t(document.querySelector("main")?.textContent)||null}async function xl(t){if(!t||typeof crypto>"u"||!crypto.subtle)return null;try{let e=new TextEncoder().encode(t),r=await crypto.subtle.digest("SHA-256",e),n=new Uint8Array(r),s="";for(let o=0;o<n.length;o++)s+=n[o].toString(16).padStart(2,"0");return s}catch{return null}}function Qr(t){let{config:e,getRecentNetworkPaths:r,getUserId:n,getSessionId:s,onEvent:o}=t,a=e.throttleMs??dl,i=e.captureDomSummary!==false,l=e.userIdSource??"auto",p=new Map,h=null,m=null;async function b(){if(typeof window>"u")return;let T=ho(window.location.pathname,e.routeTemplates),R=Date.now(),w=p.get(T)??0;if(R-w<a)return;p.set(T,R);let A=null;l==="auto"?A=n()??s():l==="session-only"&&(A=s());let y={route:T,page_title:typeof document<"u"&&(document.title||"").slice(0,300)||null,dom_summary:i?vl():null,testids:bl(),network_paths:r().slice(-50),query_param_keys:yl(),user_id_hash:await xl(A),observed_at:new Date().toISOString()};o(y);}function u(){m||(m=setTimeout(()=>{m=null,b();},100));}function f(){if(typeof window>"u")return;let T=window.location.pathname+window.location.search;T!==h&&(h=T,u());}if(typeof window>"u")return {destroy:()=>{},flushNow:()=>{}};let v=()=>f(),k=Te({onPush:v,onReplace:v,onPop:v});return u(),{destroy(){k(),m&&(clearTimeout(m),m=null),p.clear();},flushNow(){p.clear(),b();}}}function mo(t,e,r){let n=l=>l.timestamp,s=l=>l.type===2,o=l=>l.type===4,a=Date.now()-e,i=0;for(let l=0;l<t.length;l++){let p=n(t[l]);if(typeof p=="number"&&p>=a)break;s(t[l])&&(i=o(t[l-1])?l-1:l);}if(t.length-i>r){for(let l=i+1;l<t.length;l++)if(s(t[l])&&t.length-l<=r){i=o(t[l-1])?l-1:l;break}}i>0&&t.splice(0,i);}function wl(t){let e=[],r=false,n=o=>{if(!r)return;let a=o.target instanceof Element?o.target:null,i=a?.tagName?.toLowerCase()??"unknown",l=a?.closest("[data-testid]")?.getAttribute("data-testid")??void 0;e.push({type:"lite_click",timestamp:Date.now(),data:{tag:i,testId:l}}),e.length>400&&e.shift();},s=()=>{r=false,document.removeEventListener("click",n,true);};return {start(){r||(r=true,document.addEventListener("click",n,true));},stop:s,flush(){let o=Date.now()-t;return e.filter(a=>a.timestamp>=o)},destroy(){s(),e.length=0;}}}var ir=null;async function Sl(){if(ir)return ir;try{return ir=await import('rrweb'),ir}catch{return null}}async function fo(t){let e=t.maxDurationMs??3e4,r=await Sl();if(!r?.record)return wl(e);let n=r.record,s=[],o=null,a=false,i=['input[type="password"]',...t.redactSelectors??[]],l=()=>{o?.(),o=null,a=false;};return {start(){a||(a=true,o=n({emit(p){s.push(p),mo(s,e,400);},maskAllInputs:true,maskAllText:true,maskTextSelector:i.join(","),checkoutEveryNms:e,sampling:{mousemove:false,mouseInteraction:true,scroll:150,media:800}})??null);},stop:l,flush(){return mo(s,e,400),[...s]},destroy(){l(),s.length=0;}}}function go(t,e){return new Promise((r,n)=>{let s=new Image;s.onload=()=>{let o=document.createElement("div");o.style.position="relative",o.style.display="inline-block",o.style.maxWidth="100%";let a=document.createElement("canvas"),i=document.createElement("canvas"),l=Math.min(1,720/s.width),p=Math.round(s.width*l),h=Math.round(s.height*l);for(let y of [a,i])y.width=p,y.height=h,y.style.width="100%",y.style.height="auto",y.style.display="block";i.style.position="absolute",i.style.left="0",i.style.top="0",i.style.cursor="crosshair";let m=a.getContext("2d"),b=i.getContext("2d");if(!m||!b){n(new Error("Canvas not supported"));return}m.drawImage(s,0,0,p,h),o.appendChild(a),o.appendChild(i),e.appendChild(o);let u="highlight",f=false,v=null,k=[],T=y=>{let E=i.getBoundingClientRect(),C="touches"in y?y.touches[0]??y.changedTouches[0]:null,x=C?C.clientX:y.clientX,B=C?C.clientY:y.clientY;return {x:(x-E.left)/E.width*p,y:(B-E.top)/E.height*h}},R=()=>{b.clearRect(0,0,p,h);for(let y of k)if(y.tool==="highlight"&&y.points.length>=2){let[E,C]=y.points;b.fillStyle="rgba(255, 230, 0, 0.35)",b.fillRect(Math.min(E.x,C.x),Math.min(E.y,C.y),Math.abs(C.x-E.x),Math.abs(C.y-E.y));}else if(y.tool==="arrow"&&y.points.length>=2){let[E,C]=y.points;b.strokeStyle="#ef4444",b.lineWidth=3,b.beginPath(),b.moveTo(E.x,E.y),b.lineTo(C.x,C.y),b.stroke();}},w=y=>{f=true,v=T(y);},A=y=>{if(!f||!v)return;f=false;let E=T(y);if(u==="blur"){let C=Math.min(v.x,E.x),x=Math.min(v.y,E.y),B=Math.abs(E.x-v.x),N=Math.abs(E.y-v.y);B>=1&&N>=1&&(m.filter="blur(8px)",m.drawImage(a,C,x,B,N,C,x,B,N),m.filter="none");}else k.push({tool:u,points:[v,E]});v=null,R();};i.addEventListener("mousedown",w),i.addEventListener("mouseup",A),i.addEventListener("touchstart",w,{passive:true}),i.addEventListener("touchend",A),r({canvas:a,setTool(y){u=y;},getDataUrl(){let y=document.createElement("canvas");y.width=p,y.height=h;let E=y.getContext("2d");return E?(E.drawImage(a,0,0),E.drawImage(i,0,0),y.toDataURL("image/jpeg",.85)):t},destroy(){i.removeEventListener("mousedown",w),i.removeEventListener("mouseup",A),i.removeEventListener("touchstart",w),i.removeEventListener("touchend",A),o.remove();}});},s.onerror=()=>n(new Error("Failed to load screenshot")),s.src=t;})}function bo(){try{let t=globalThis;return t.Sentry?t.Sentry:void 0}catch{return}}function El(){try{return globalThis.__SENTRY_REPLAY__}catch{return}}function kl(){try{let t=globalThis,e=t.__SENTRY__,r=t.Sentry;return e?.version==="9"||r&&typeof r.lastEventId=="function"?e?.version==="9"?"v9":"v8":e?.version==="8"?"v8":r&&typeof r.getCurrentHub=="function"?"v7":"unknown"}catch{return "unknown"}}function en(t,e={}){let r=Math.max(0,e.breadcrumbsLimit??30),n={},s=bo();if(!s)return n;n.sdk=kl();try{let i=s;if(typeof i.lastEventId=="function")n.eventId=i.lastEventId()??void 0;else {let p=s.getCurrentHub?.()?.getScope?.();n.eventId=p?.getLastEventId?.()??void 0;}}catch{}let o;try{let i=s;typeof i.getCurrentScope=="function"?o=i.getCurrentScope():o=s.getCurrentHub?.()?.getScope?.();}catch{}if(o){try{let i=o.getUser?.();i&&(n.user={id:typeof i.id=="string"?i.id:void 0,email:typeof i.email=="string"?i.email:void 0,username:typeof i.username=="string"?i.username:void 0,ip_address:typeof i.ip_address=="string"?i.ip_address:void 0});}catch{}try{let i=o.getTags?.();if(i&&typeof i=="object"){let l={};for(let[p,h]of Object.entries(i))(typeof h=="string"||typeof h=="number"||typeof h=="boolean")&&(l[p]=h);Object.keys(l).length>0&&(n.tags=l);}}catch{}try{n.transactionName=o.getTransactionName?.()??o.getTransaction?.()?.name??void 0;}catch{}try{n.sessionId=o.getSession?.()?.sid??void 0;}catch{}try{let i=o.getBreadcrumbs?.()??o._breadcrumbs??[];if(Array.isArray(i)&&i.length>0){let l=i.slice(-r);n.breadcrumbs=l.map(p=>{let h=p;return {timestamp:typeof h.timestamp=="number"?h.timestamp<1e12?Math.round(h.timestamp*1e3):h.timestamp:void 0,category:typeof h.category=="string"?h.category:void 0,level:typeof h.level=="string"?h.level:void 0,message:typeof h.message=="string"?h.message:void 0,type:typeof h.type=="string"?h.type:void 0,data:h.data&&typeof h.data=="object"?h.data:void 0}});}}catch{}}try{let i=s,l;if(typeof i.getActiveSpan=="function"?l=i.getActiveSpan():o?.getSpan&&(l=o.getSpan()),l){let p=l.spanContext?.();n.traceId=p?.traceId??l.traceId??void 0,n.spanId=p?.spanId??l.spanId??void 0;}}catch{}let a;try{let i=s;typeof i.getClient=="function"?a=i.getClient():a=s.getCurrentHub?.()?.getClient?.();}catch{}if(a){try{let i=a.getOptions?.();i?.release&&(n.release=i.release),i?.environment&&(n.environment=i.environment);}catch{}try{let i=a.getDsn?.();if(i?.host&&i?.projectId&&n.eventId){let l=i.host.replace(/^o\d+\./,"");n.issueUrl=`https://${l}/issues/?query=${encodeURIComponent(n.eventId)}`;}}catch{}}try{let l=s.getReplay?.()??El();n.replayId=l?.getReplayId?.()??void 0;}catch{}return n}function tn(t,e={}){let r=bo();if(r){try{let n=r;typeof n.setTag=="function"&&(n.setTag("mushi.report_id",t),e.reportUrl&&n.setTag("mushi.report_url",e.reportUrl)),typeof n.setContext=="function"&&n.setContext("mushi_report",{id:t,...e.reportUrl?{url:e.reportUrl}:{},captured_at:new Date().toISOString()}),typeof n.addBreadcrumb=="function"&&n.addBreadcrumb({category:"mushi",type:"info",level:"info",message:`Mushi report submitted (${t})`,data:{report_id:t,...e.reportUrl?{url:e.reportUrl}:{}}});}catch{}try{let s=r.getCurrentHub?.()?.getScope?.();s&&(s.setTag?.("mushi.report_id",t),e.reportUrl&&s.setTag?.("mushi.report_url",e.reportUrl),s.setContext?.("mushi_report",{id:t,...e.reportUrl?{url:e.reportUrl}:{}}));}catch{}}}var Rl=["/login","/logout","/signup","/sso/*","/auth/*"];function vo(t,e={}){let r=[];if(e.rageClick!==false){let v=function(k){let T=Date.now();if(k.target===f){if(u.push(T),u=u.filter(R=>T-R<500),u.length>=3){let R=k.target;t.onTrigger("rage_click",{element:R.tagName,id:R.id,text:R.textContent?.slice(0,50)}),u=[];}}else f=k.target,u=[T];};let u=[],f=null;document.addEventListener("click",v,true),r.push(()=>document.removeEventListener("click",v,true));}if(e.longTask!==false&&typeof PerformanceObserver<"u")try{let u=new PerformanceObserver(f=>{for(let v of f.getEntries())v.duration>5e3&&t.onTrigger("long_task",{duration:Math.round(v.duration),startTime:Math.round(v.startTime)});});u.observe({entryTypes:["longtask"]}),r.push(()=>u.disconnect());}catch{}let n=Cl(e.apiCascade);if(n.enabled){let u=[],f=globalThis.fetch;globalThis.fetch=async function(...v){let[k,T]=v,R=nr(k),w=!!sr(k,T)||or(R,{apiEndpoint:e.apiEndpoint,ignoreUrls:n.ignoreUrls});try{let A=await f.apply(this,v);return !w&&!A.ok&&A.status>=400&&yo(u,t),A}catch(A){throw w||yo(u,t),A}},r.push(()=>{globalThis.fetch=f;});}if((e.pageDwell===true||typeof e.pageDwell=="object"&&e.pageDwell!==null)&&typeof window<"u"){let R=function(C){return v.some(x=>x.endsWith("/*")?C.startsWith(x.slice(0,-2)):C===x||C.startsWith(x+"/"))},w=function(){let C=window.location?.pathname??"";R(C)||t.onTrigger("page_dwell",{thresholdMs:f,path:C});},A=function(){k&&clearTimeout(k);let C=window.location?.pathname??"";R(C)||(k=setTimeout(w,f));},y=function(){let C=window.location?.pathname??"";C!==T&&(T=C,A());};let u=typeof e.pageDwell=="object"?e.pageDwell??{}:{},f=u.thresholdMs||300*1e3,v=u.excludeRoutes!==void 0?u.excludeRoutes:Rl,k=null,T=window.location?.pathname??"";A();let E=Te({onPush:y,onReplace:y,onPop:y});r.push(()=>{k&&clearTimeout(k),E();});}if((e.firstSession===true||typeof e.firstSession=="object"&&e.firstSession!==null)&&typeof window<"u"){let u=typeof e.firstSession=="object"?e.firstSession??{}:{},f=u.delayMs??45*1e3,v=u.storageKey??(e.projectId?`mushi:${e.projectId}:firstSessionShown`:"mushi:firstSessionShown"),k=false;try{k=window.localStorage?.getItem(v)==="1";}catch{}if(!k){let T=setTimeout(()=>{try{window.localStorage?.setItem(v,"1");}catch{}t.onTrigger("first_session",{delayMs:f});},f);r.push(()=>clearTimeout(T));}}if(e.errorBoundary){let u=function(v){t.onTrigger("error_boundary",{message:v.message,filename:v.filename,lineno:v.lineno,colno:v.colno});},f=function(v){t.onTrigger("error_boundary",{message:v.reason instanceof Error?v.reason.message:String(v.reason),type:"unhandled_rejection"});};window.addEventListener("error",u),window.addEventListener("unhandledrejection",f),r.push(()=>{window.removeEventListener("error",u),window.removeEventListener("unhandledrejection",f);});}return {destroy(){r.forEach(u=>u());}}}function Cl(t){return t===false?{enabled:false,ignoreUrls:[]}:t&&typeof t=="object"?{enabled:t.enabled!==false,ignoreUrls:t.ignoreUrls??[]}:{enabled:true,ignoreUrls:[]}}function yo(t,e){let r=Date.now();t.push(r);let n=t.filter(s=>r-s<1e4);n.length>=3&&(e.onTrigger("api_cascade",{failureCount:n.length,windowMs:1e4}),t.length=0);}var xo="mushi:lastDismiss",ar="mushi:consecDismiss",rn="mushi:lastShown";function lr(t){try{return localStorage.getItem(t)}catch{return null}}function cr(t,e){try{localStorage.setItem(t,e);}catch{}}function wo(t={}){let e=t.maxProactivePerSession??2,r=t.dismissCooldownHours??24,n=t.suppressAfterDismissals??3,s=(t.reshowCooldownMinutes??30)*60*1e3,o=0,a=new Set;function i(m){let b=Date.now();if(parseInt(lr(ar)??"0",10)>=n)return false;let f=lr(xo);if(f&&b-parseInt(f,10)<r*60*60*1e3)return false;if(s>0&&o===0){let v=lr(rn);if(v&&b-parseInt(v,10)<s)return false}return o>=e||a.has(m)?false:(a.add(m),o++,cr(rn,String(b)),true)}function l(){cr(xo,String(Date.now()));let m=parseInt(lr(ar)??"0",10);cr(ar,String(m+1));}function p(){cr(ar,"0");}function h(){o=0,a.clear();try{localStorage.removeItem(rn);}catch{}}return {shouldShow:i,recordDismissal:l,recordSubmission:p,reset:h}}function So(t,e){if(t.appVersion)return t.appVersion;let r=t.integrations?.vercel?.analyticsId;return r||e?.buildId}var Me=null,ur=class{constructor(){}static init(e){if(Me)return jt({scope:"mushi",level:"warn",format:"pretty"}).warn("Already initialized \u2014 call destroy() first to reinitialize"),Me;if(typeof document>"u"||typeof window>"u")return ko();let r={...Sr(),...e};if(!r.projectId||!r.apiKey){let n=es();throw new Error(n.message??"[mushi] projectId and apiKey are required \u2014 set NEXT_PUBLIC_MUSHI_* / VITE_MUSHI_* / MUSHI_* or pass them explicitly")}return r.enabled===false?ko():(Me=Tl(r),Me)}static getInstance(){return Me}static destroy(){Me?.destroy(),Me=null;}static diagnose(){return Me?.diagnose()??sn()}};function Tl(t){rs(t);let e=ts(t),r=e.projectId,n=()=>de(r),s=e,o=t.debug??false?jt({scope:"mushi",level:"debug",format:"pretty"}):Er,a=null,i=null,l=Qn({projectId:e.projectId,apiKey:e.apiKey,...e.apiEndpoint?{apiEndpoint:e.apiEndpoint}:{},...typeof e.timeout=="number"?{timeout:e.timeout}:{},...typeof e.maxRetries=="number"?{maxRetries:e.maxRetries}:{},...e.circuitBreaker?{circuitBreaker:e.circuitBreaker}:{},getUserToken:()=>a,sdkPackage:De,sdkVersion:fe}),p=ns(e.preFilter),h=ls(e.offline),m=us({maxBurst:10,refillRate:1,refillIntervalMs:5e3}),b=ps();function u(c){return c.map(d=>{let S={...d};if(typeof d.message=="string"&&(S.message=b.scrub(d.message)),d.data&&typeof d.data=="object"){let D={};for(let[I,U]of Object.entries(d.data))D[I]=typeof U=="string"?b.scrub(U):U;S.data=D;}return S})}function f(c){if(!c)return;let d={};for(let[S,D]of Object.entries(c))d[S]=typeof D=="string"?b.scrub(D):D;return d}let v=null,k=null,T=null,R=null,w=null,A=null,y=Zr(),E=null,C=0,x,B=`mushi:tester-jwt:${e.projectId}`;function N(){try{return typeof localStorage<"u"?localStorage.getItem(B):null}catch{return null}}function X(){try{typeof localStorage<"u"&&localStorage.removeItem(B);}catch{}}async function j(c){let d=await l.getTesterStatus(c);if(!d.ok||!d.data){X();return}let S=d.data;if(!S.is_tester||!S.tester_id){X();return}x.setTesterSession(c,{id:S.tester_id,public_handle:S.public_handle??null,display_name:S.display_name??null});let D=await l.getMyReputation(c);if(D.ok&&D.data){let I=D.data;I.reputation&&x.setTesterReputation(I.reputation);}}function V(){if(s.capture?.console!==false?v??=Wr():(v?.destroy(),v=null),s.capture?.network!==false){let I={apiEndpoint:nn(s),ignoreUrls:s.capture?.ignoreUrls,tracePropagation:s.capture?.tracePropagation,sessionId:bt()};k?k.updateOptions(I):k=Vr(I);}else k?.destroy(),k=null;if(s.capture?.performance!==false?T??=Xr():(T?.destroy(),T=null),s.capture?.screenshot!=="off"){let I={privacy:s.privacy,onFailed:()=>x.setScreenshotError(true)};s.capture?.screenshotProvider?R=null:R?R.updateOptions(I):R=Yr(I);}else R=null;!R&&!s.capture?.screenshotProvider&&($=null),x.setAllowScreenshotRemove(s.privacy?.allowUserRemoveScreenshot!==false),s.capture?.elementSelector!==false?w??=Jr():(w?.deactivate(),w=null,ee=null),x.setCaptureAvailability({screenshot:(!!R||!!s.capture?.screenshotProvider)&&s.capture?.screenshot!=="off",element:!!w});let c=s.capture?.discoverInventory,d=c===true?{}:c&&typeof c=="object"?c:null;d!=null&&d.enabled!==false?(A?.destroy(),A=Qr({config:d,getRecentNetworkPaths:()=>k?k.getEntries().map(I=>{try{let U=new URL(I.url,typeof window<"u"?window.location.href:"http://localhost");return U.host&&typeof window<"u"&&U.host!==window.location.host?null:U.pathname}catch{return null}}).filter(I=>I!=null&&I.length>0&&I.length<200):[],getUserId:()=>M?.id??null,getSessionId:bt,onEvent:I=>{l.postDiscoveryEvent({...I,sdk_version:fe}).catch(U=>{o.debug("discovery emit failed",{err:String(U)});});}})):(A?.destroy(),A=null);let D=s.capture?.replay??"off";if(D==="rrweb"||D==="lite"){let I=++C;fo({redactSelectors:s.privacy?.redactSelectors}).then(U=>{if(I!==C){U.destroy();return}E?.destroy(),E=U,E.start();});}else C++,E?.destroy(),E=null;}let O=new Map;function P(c,d){O.get(c)?.forEach(S=>S({type:c,data:d}));}let $=null,ee=null,Q=null,L=false,_=true,H=null,F=null,M=null,pe=null,Ne={},oe={},q=hs({max:50});q.add({category:"lifecycle",level:"info",message:"Mushi SDK init",data:{projectId:e.projectId,sdkVersion:fe}});let te=null;te=Ol(q);let ie=false;function $e(){x.refreshReporterInboxQuiet();}function W(){H&&clearInterval(H),H=null,F&&typeof document<"u"&&document.removeEventListener("visibilitychange",F),F=null;}function lt(){if(W(),!_)return;H=setInterval(()=>{typeof document<"u"&&document.visibilityState==="hidden"||$e();},6e4),typeof document<"u"&&(F=()=>{document.visibilityState==="visible"&&$e();},document.addEventListener("visibilitychange",F)),$e();}function Rt(c,d){if(!s.rewards?.enabled)return;let S={client:l,config:s.rewards,projectId:r,userId:c,traits:d,reporterToken:n()};to(S),s.rewards.showInWidget!==false&&l.getMyPoints(c).then(D=>{if(!D.ok)return;let I=D.data;x.setRewardsState({tier:I.tier?{slug:I.tier.slug??"free",displayName:I.tier.display_name??"Free",pointsThreshold:I.tier.points_threshold??0}:null,nextTier:I.next_tier?{displayName:I.next_tier.display_name??"",pointsThreshold:I.next_tier.points_threshold??0}:null,totalPoints:I.total_points??0,pointsForReport:I.report_submit_pts??50});}).catch(()=>{});}async function We(){if(ie)return null;let c=s.capture?.screenshotProvider;if(c){ie=true;try{let I=await c();if(I)return I}catch(I){o.warn("screenshotProvider threw, falling back to built-in capturer",{error:I instanceof Error?I.message:String(I)});}finally{ie=false;}}if(!R)return null;ie=true;let d=x.getIsOpen();d&&x.hidePanel();let S=document.getElementById("mushi-mushi-widget"),D=S?.style.visibility??"";S&&(S.style.visibility="hidden"),await new Promise(I=>{requestAnimationFrame(()=>requestAnimationFrame(()=>I()));});try{return await R.take()}finally{ie=false,S&&(S.style.visibility=D),d&&x.showPanel();}}async function dr(c){let d=s.capture?.screenshot;!(R||s.capture?.screenshotProvider)||d==="off"||$||c==="open"&&d!=="auto"||c==="submit"&&d!=="on-report"&&d!=="auto"||(o.debug("Auto-capturing screenshot",{when:c,mode:d}),$=await We(),x.setScreenshotAttached($!==null),x.setScreenshotPreview($));}x=new Jt(e.widget,{onSubmit:async({category:c,userCategory:d,description:S,intent:D})=>(o.info("Report submitted",{category:c,userCategory:d,intent:D}),ct?.recordSubmission(),await dr("submit"),await Mo(c,S,D,d)??{reportId:null,queuedOffline:true}),onOpen:()=>{o.debug("Widget opened"),dr("open"),E?.start(),P("widget:opened");},onClose:()=>{o.debug("Widget closed"),Q&&(ct?.recordDismissal(),P("proactive:dismissed",{type:Q})),$=null,ee=null,Q=null,P("widget:closed");},onScreenshotRequest:async()=>{if(!(!!R||!!s.capture?.screenshotProvider)||s.capture?.screenshot==="off"){o.warn("Screenshot requested but capture is disabled"),x.setScreenshotError(true);return}o.debug("Taking screenshot"),x.setScreenshotCapturing(true);try{$=await We();}catch(d){o.warn("Screenshot capture threw",{error:d instanceof Error?d.message:String(d)}),$=null;}x.setScreenshotAttached($!==null),x.setScreenshotPreview($),$===null&&x.setScreenshotError(true);},onScreenshotRemove:()=>{o.debug("Screenshot attachment removed"),$=null,x.setScreenshotAttached(false);},onScreenshotAnnotateRequest:async c=>{if(!$||c.childElementCount>0)return;let d;try{d=await go($,c);}catch(re){o.warn("Screenshot annotation failed",{error:re instanceof Error?re.message:String(re)});return}let S=document.createElement("div");S.className="mushi-annotate-toolbar";let D=re=>{($=d.getDataUrl(),x.setScreenshotAttached(true),x.setScreenshotPreview($)),d.destroy(),S.remove();},I=[{id:"highlight",label:"\u270F\uFE0F Highlight"},{id:"blur",label:"\u{1F512} Blur"},{id:"arrow",label:"\u2197\uFE0F Arrow"}];for(let re of I){let K=document.createElement("button");K.type="button",K.className="mushi-attach-btn",K.dataset.tool=re.id,K.textContent=re.label,K.addEventListener("click",()=>{d.setTool(re.id),S.querySelectorAll("button[data-tool]").forEach(ae=>ae.classList.remove("active")),K.classList.add("active");}),S.appendChild(K);}S.querySelector('button[data-tool="highlight"]')?.classList.add("active");let U=document.createElement("button");U.type="button",U.className="mushi-attach-btn",U.textContent="\u2713 Done",U.addEventListener("click",()=>D()),S.appendChild(U),c.insertBefore(S,c.firstChild);},onElementSelectorRequest:async()=>{if(!w||s.capture?.elementSelector===false){o.warn("Element selector requested but it is disabled/unavailable"),x.setElementError(true);return}o.debug("Element selector activated"),x.setElementCapturing(true),x.hidePanel();try{let c=await w.activate();c?(ee=c,x.setElementSelected(!0),o.debug("Element selected",{tagName:c.tagName,xpath:c.xpath})):x.setElementCapturing(!1);}catch(c){o.warn("Element selector threw",{error:c instanceof Error?c.message:String(c)}),x.setElementError(true);}finally{x.showPanel();}},async onReporterReportsRequest(){let c=await l.listReporterReports(de(r));if(!c.ok)throw new Error(c.error?.message??"Could not load reports");return c.data?.reports??[]},async onReporterCommentsRequest(c){let d=await l.listReporterComments(c,de(r));if(!d.ok)throw new Error(d.error?.message??"Could not load thread");return d.data?.comments??[]},async onReporterReply(c,d){let S=await l.replyToReporterReport(c,de(r),d);if(!S.ok)throw new Error(S.error?.message??"Could not send reply")},async onReporterFeedback(c,d,S){let D=await l.replyToReporterReport(c,de(r),S??"",d);if(!D.ok)throw new Error(D.error?.message??"Could not send feedback");return D.data?.feedback??null},async onReporterReopen(c,d){let S=await l.reopenReporterReport(c,de(r),d);if(!S.ok)throw new Error(S.error?.message??"Could not reopen report");return S.data?.outcome??null},async onFeatureBoardRequest(){let c=await l.listReporterFeatureBoard(de(r));if(!c.ok)throw new Error(c.error?.message??"Could not load community ideas");return c.data?.tickets??[]},async onFeatureBoardVote(c){let d=await l.voteReporterFeatureBoard(c,de(r));if(!d.ok)throw new Error(d.error?.message??"Could not vote");return d.data??{voted:true,action:"added"}},onLeaderboardOpen(){x.setLeaderboard(null,true),no(10).then(c=>{x.setLeaderboard(c,false);});},async onMushiSignIn(c){let d=await l.sendMagicLink(c);if(!d.ok)throw new Error(d.error?.message??"Could not send sign-in link");return {ok:true}},async onGlobalLeaderboardOpen(){x.setGlobalLeaderboard(null,true);try{let c=N(),d=await l.getPublicLeaderboard(50),D=(d.ok?d.data?.leaderboard??[]:[]).map(I=>({tester_id:I.tester_id,rank:I.rank,public_handle:I.public_handle,display_name:I.display_name,points_30d:I.points_30d,total_points:I.total_points??0,badge:I.badge_slug}));if(x.setGlobalLeaderboard(D,!1),c){let I=await l.getMyReputation(c);if(I.ok&&I.data){let U=I.data;U.reputation&&x.setTesterReputation(U.reputation);}}}catch{x.setGlobalLeaderboard([],false);}},async onCrossAppReportsOpen(){let c=N();if(!c){x.setCrossAppReports([],false);return}try{let d=await l.getCrossAppReports(c),S=d.ok?d.data?.reports??[]:[];x.setCrossAppReports(S,!1);}catch{x.setCrossAppReports([],false);}},onTesterSignOut(){X();},assistantEnabled:e.assistant?.enabled===true,...e.assistant?.label?{assistantLabel:e.assistant.label}:{},...e.assistant?.greeting?{assistantGreeting:e.assistant.greeting}:{},...e.assistant?.suggestions?{assistantSuggestions:e.assistant.suggestions}:{},async onAssistantAsk(c,d){let S=await l.askAssistant({message:c,threadId:d,context:i});return S.ok?S.data??null:null}},fe),V(),typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>x.mount()):x.mount());let an=N();an&&j(an).catch(()=>X());let ln=null,ct=null,J=s.proactive;J&&(J.rageClick!==false||J.longTask!==false||J.apiCascade!==false||J.errorBoundary===true||J.pageDwell||J.firstSession)&&typeof document<"u"&&(ct=wo(J?.cooldown),ln=vo({onTrigger:(c,d)=>{if(typeof navigator<"u"&&!navigator.onLine){o.debug("Proactive trigger suppressed: offline",{type:c});return}if(!ct.shouldShow(c)){o.debug("Proactive trigger suppressed by fatigue prevention",{type:c});return}o.info("Proactive trigger fired",{type:c,context:d}),Q=c,P("proactive:triggered",{type:c,context:d}),c==="first_session"?x.pulseTrigger?.():x.open();}},{rageClick:J?.rageClick,longTask:J?.longTask,apiCascade:J?.apiCascade,apiEndpoint:nn(s),errorBoundary:J?.errorBoundary,pageDwell:J?.pageDwell,firstSession:J?.firstSession,projectId:e.projectId}),o.debug("Proactive triggers enabled",{rageClick:J?.rageClick!==false,longTask:J?.longTask!==false,apiCascade:J?.apiCascade!==false,errorBoundary:J?.errorBoundary===true,pageDwell:!!J?.pageDwell,firstSession:!!J?.firstSession})),h.startAutoSync(l),h.flush(l).then(c=>{c.sent>0&&o.info("Synced offline reports",{sent:c.sent});});function pr(c){if(L=true,_=c.reporterNotificationsEnabled!==false,c.enabled===false){s=e,_l(t.projectId),V(),x.updateConfig(s.widget),W(),o.debug("Runtime SDK config disabled; using bootstrap config",{version:c.version});return}s=Ws(s,c),V(),c.widget&&x.updateConfig(s.widget),_?lt():W(),o.debug("Applied runtime SDK config",{version:c.version});}if(Ml(t)){let c=Ll(t.projectId);c&&pr(c),l.getSdkConfig().then(d=>{d.ok&&d.data?(Al(t.projectId,d.data),pr(d.data)):d.error&&o.debug("Runtime SDK config unavailable",d.error);}).catch(d=>{o.debug("Runtime SDK config fetch failed",{error:d instanceof Error?d.message:String(d)});});}else o.debug("Runtime SDK config disabled via runtimeConfig:false; using static bootstrap config");To(),lt(),o.info("Initialized",{projectId:t.projectId});async function To(){if(s.widget?.outdatedBanner==="off")return;let c=Pl(De);c&&cn(c);let d=await l.getLatestSdkVersion(De);!d.ok||!d.data||(Hl(De,d.data),cn(d.data));}function cn(c){let d=c.latest,S=!!(d&&Dl(fe,d));if(!S&&!c.deprecated)return;let D=c.deprecationMessage??(S?`Update ${De} to ${d}.`:null);o.warn("Mushi SDK is outdated",{package:De,current:fe,latest:d,deprecated:c.deprecated,message:D}),s.widget?.outdatedBanner!=="console-only"&&x.setSdkFreshness({latest:d,current:fe,deprecated:c.deprecated,message:D});}async function Mo(c,d,S,D){let I=p.check(d);if(!I.passed){o.info("Report blocked by pre-filter",{reason:I.reason});return}let U=t.preFilter?.wasmClassifier;if(U)try{let Y=await U.classify({description:d,category:c,url:typeof location<"u"?location.href:void 0,hasScreenshot:$!==null,hasSelectedElement:ee!==null,hasNetworkErrors:k?.getEntries()?.some(ve=>ve.status>=400||!!ve.error)??!1,hasConsoleErrors:v?.getEntries()?.some(ve=>ve.level==="error")??!1,proactiveTrigger:Q??void 0});if(Y.verdict==="block"){o.info("Report blocked by on-device classifier",{modelId:Y.modelId,confidence:Y.confidence,reason:Y.reason});return}o.debug("On-device classifier verdict",{...Y});}catch(Y){o.warn("On-device classifier threw \u2014 falling through to server",{error:Y instanceof Error?Y.message:String(Y)});}if(!m.tryConsume()){o.warn("Report throttled \u2014 rate limit exceeded");return}let re=b.scrub(p.truncate(d)),K=t.sentry?en(t.sentry):void 0,ae=await cs().catch(()=>null),ye=s.capture?.console===false?void 0:v?.getEntries(),Ie=s.capture?.network===false?void 0:k?.getEntries(),Le=u(q.getAll()),Ct=f(Object.keys(oe).length>0?{...oe}:void 0),hn=K?{...K,...K.breadcrumbs?{breadcrumbs:u(K.breadcrumbs)}:{},...K.tags?{tags:f(K.tags)}:{}}:void 0,mn=$?await Is($).catch(()=>null):null;$&&!mn&&o.warn("Screenshot dropped \u2014 could not compress under wire budget");let fn=kr(),Se={id:Rr(),projectId:t.projectId,category:c,...D?{userCategory:D}:{},description:re,userIntent:S,environment:fn,consoleLogs:ye,networkLogs:Ie,performanceMetrics:s.capture?.performance===false?void 0:T?.getMetrics(),timeline:y.getEntries({consoleLogs:ye,networkLogs:Ie}),screenshotDataUrl:mn??void 0,selectedElement:ee??void 0,...E?{replayEvents:E.flush()}:{},metadata:{...Ne,...M?{user:M}:{},...K?.release?{sentryRelease:K.release}:{}},sessionId:bt(),reporterToken:de(r),...ae?{fingerprintHash:ae}:{},appVersion:So(s,fn),sdkPackage:De,sdkVersion:fe,proactiveTrigger:Q??void 0,...Le.length>0?{breadcrumbs:Le}:{},...Ct?{tags:Ct}:{},...hn?{sentryContext:hn}:{},sentryEventId:K?.eventId,sentryReplayId:K?.replayId,createdAt:new Date().toISOString()};if(q.add({category:"lifecycle",level:"info",message:`Mushi report submitting (${c})`,data:{reportId:Se.id,category:c}}),t.integrations?.custom){let Y={addMetadata(ve,$o){Se.metadata[ve]=$o;},setCategory(ve){Se.category=ve;},setDescription(ve){Se.description=ve;}};t.integrations.custom(Y);}let z=Se;if(t.beforeSendFeedback)try{let Y=await Promise.race([Promise.resolve(t.beforeSendFeedback(Se)),new Promise(ve=>setTimeout(()=>ve(Se),2e3))]);if(Y===null){o.info("Report dropped by beforeSendFeedback hook",{reportId:Se.id});return}z=Y;}catch(Y){o.warn("beforeSendFeedback hook threw \u2014 sending unmodified report",{error:Y instanceof Error?Y.message:String(Y)});}if(P("report:submitted",{reportId:z.id}),typeof navigator<"u"&&!navigator.onLine)return await h.enqueue(z),o.info("Offline \u2014 report queued",{reportId:z.id}),P("report:queued",{reportId:z.id}),{reportId:null,queuedOffline:true};let G=await l.submitReport(z);if(!G.ok&&G.error?.code==="PAYLOAD_TOO_LARGE"&&(Array.isArray(z.replayEvents)&&z.replayEvents.length>0&&(o.warn("Report too large \u2014 dropping replay buffer and retrying",{reportId:z.id}),z={...z,replayEvents:void 0},G=await l.submitReport(z)),!G.ok&&G.error?.code==="PAYLOAD_TOO_LARGE"&&z.screenshotDataUrl&&(o.warn("Report still too large \u2014 dropping screenshot and retrying",{reportId:z.id}),z={...z,screenshotDataUrl:void 0},G=await l.submitReport(z))),G.ok){if(o.info("Report sent",{reportId:G.data?.reportId}),P("report:sent",{reportId:G.data?.reportId}),$e(),G.data?.cursorAgentId){let Y=G.data;P("report:dispatched",{reportId:Y.reportId,agentId:Y.cursorAgentId,fixId:Y.fixId});}q.add({category:"lifecycle",level:"info",message:`Mushi report sent (${G.data?.reportId??Se.id})`}),at({action:"report_submit",metadata:{category:c,reportId:G.data?.reportId??Se.id}});try{t.sentry&&G.data?.reportId&&tn(G.data.reportId);}catch{}}else G.error?.code==="PAYLOAD_TOO_LARGE"||G.error?.code==="SERIALIZE_FAILED"?(o.warn("Report exceeds size limit after degradation \u2014 dropping",{reportId:z.id,error:G.error}),P("report:failed",{reportId:z.id,error:G.error}),q.add({category:"lifecycle",level:"error",message:`Mushi report dropped \u2014 payload too large (${z.id})`})):(o.warn("Report failed, queuing for retry",{reportId:z.id,error:G.error}),await h.enqueue(z),P("report:failed",{reportId:z.id,error:G.error}),q.add({category:"lifecycle",level:"warning",message:`Mushi report queued for retry (${z.id})`}));return $=null,ee=null,Q=null,G?.ok?{reportId:G.data?.reportId??Se.id,queuedOffline:false}:{reportId:null,queuedOffline:true}}let un={report(c){x.open(c);},on(c,d){return O.has(c)||O.set(c,new Set),O.get(c).add(d),()=>O.get(c)?.delete(d)},setUser(c){M=c;},setMetadata(c,d){Ne[c]=d;},setScreen(c){y.setScreen(c);},isOpen(){return x.getIsOpen()},open(){x.open();},openWith(c){x.open({category:c});},show(){x.showTrigger();},hide(){x.hideTrigger();},attachTo(c,d){return x.attachTo(c,d)},setTrigger(c){x.setTrigger(c);},openReporter(){x.openReporter();},close(){x.close();},updateConfig(c){pr(c);},diagnose(){return $l({apiEndpoint:nn(s),widgetMounted:x.getIsMounted(),runtimeConfigLoaded:L,captureScreenshotAvailable:R!==null,captureNetworkIntercepting:k!==null,widgetDiagnostics:x.getWidgetDiagnostics()})},destroy(){ln?.destroy(),ct?.reset(),x.destroy(),v?.destroy(),k?.destroy(),T?.destroy(),w?.deactivate(),so(),te?.(),te=null,A?.destroy(),A=null,y.destroy(),Ks(),E?.destroy(),E=null,h.stopAutoSync(),W(),q.clear(),O.clear(),Me=null,o.debug("Destroyed");},async captureEvent(c){if(!m.tryConsume())return o.warn("captureEvent throttled \u2014 rate limit exceeded"),null;let d=b.scrub(p.truncate(c.description)),S=c.category??"bug",D=t.sentry?en(t.sentry):void 0,I=u(q.getAll()),U=f(Object.keys(oe).length===0&&!c.tags?void 0:{...oe,...c.tags??{}}),re=D?{...D,...D.breadcrumbs?{breadcrumbs:u(D.breadcrumbs)}:{},...D.tags?{tags:f(D.tags)}:{}}:void 0,K=kr(),ae={id:Rr(),projectId:t.projectId,category:S,description:d,environment:K,timeline:y.getEntries(),metadata:{...c.metadata??{},...M?{user:M}:{},...c.error?{error:c.error}:{},...c.severity?{severity:c.severity}:{},...c.component?{component:c.component}:{},...c.source?{source:c.source}:{source:"captureEvent"}},...I.length>0?{breadcrumbs:I}:{},...U&&Object.keys(U).length>0?{tags:U}:{},...re?{sentryContext:re}:{},sessionId:bt(),reporterToken:de(r),appVersion:So(s,K),sdkPackage:De,sdkVersion:fe,sentryEventId:D?.eventId,sentryReplayId:D?.replayId,createdAt:new Date().toISOString()},ye=ae;if(s.beforeSendFeedback)try{let Le=await Promise.race([Promise.resolve(s.beforeSendFeedback(ae)),new Promise(Ct=>setTimeout(()=>Ct(ae),2e3))]);if(Le===null)return o.info("captureEvent dropped by beforeSendFeedback hook",{reportId:ae.id}),null;ye=Le;}catch(Le){o.warn("captureEvent beforeSendFeedback threw \u2014 sending unmodified report",{error:Le instanceof Error?Le.message:String(Le)});}if(P("report:submitted",{reportId:ye.id}),typeof navigator<"u"&&!navigator.onLine)return await h.enqueue(ye),P("report:queued",{reportId:ye.id}),null;let Ie=await l.submitReport(ye);if(Ie.ok){P("report:sent",{reportId:Ie.data?.reportId});try{t.sentry&&Ie.data?.reportId&&tn(Ie.data.reportId);}catch{}return Ie.data?.reportId??null}return await h.enqueue(ye),P("report:failed",{reportId:ye.id,error:Ie.error}),null},async captureException(c,d){let S=ms(c);q.add({category:"lifecycle",level:"error",message:`Mushi.captureException(${S.name}): ${S.message}`,...S.stack?{data:{stack:S.stack.slice(0,500)}}:{}});let D=d?.description?.trim()||`${S.name}: ${S.message}`||"Uncaught exception";return un.captureEvent({description:D,category:d?.category??"bug",severity:d?.severity??"high",...d?.component?{component:d.component}:{},...d?.tags?{tags:d.tags}:{},source:d?.source??"captureException",error:{name:S.name,message:S.message,...S.stack?{stack:S.stack}:{}},metadata:{...d?.metadata??{},...S.cause?{cause:S.cause}:{}}})},identify(c,d){let S=`${c}::${d?JSON.stringify(d):""}`;if(S!==pe){if(pe=S,M={id:c,...d?.email?{email:d.email}:{},...d?.name?{name:d.name}:{}},x.setIdentifiedUser(M.name||M.email?{name:M.name,email:M.email}:null),d)for(let[D,I]of Object.entries(d))D!=="email"&&D!=="name"&&(Ne[`user.${D}`]=I);q.add({category:"lifecycle",level:"info",message:`Mushi.identify(${c})`}),Rt(c,d?{email:d.email,name:d.name,provider:d.provider}:void 0);}},identifyWithToken(c){if(a=c&&typeof c=="string"?c:null,a){let d=ws(a);if(d?.sub){if(M?.id===d.sub){q.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken() refreshed"});return}M={id:d.sub,...d.email?{email:d.email}:{},...d.name?{name:d.name}:{}},x.setIdentifiedUser(M.name||M.email?{name:M.name,email:M.email}:null),Rt(M.id,{email:M.email,name:M.name});}q.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken()"});}else M=null,pe=null,x.setIdentifiedUser(null),q.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken(null)"});},publishPageContext(c){i=c&&c.route?c:null;},openAssistant(){x.openAssistantTab();},addBreadcrumb(c){q.add(c);},getBreadcrumbs(){return q.getAll()},setTag(c,d){typeof c!="string"||c.length===0||(oe[c]=d);},setTags(c){if(!(!c||typeof c!="object"))for(let[d,S]of Object.entries(c))typeof d=="string"&&d.length>0&&(oe[d]=S);},clearTag(c){if(typeof c=="string"&&c.length>0){delete oe[c];return}for(let d of Object.keys(oe))delete oe[d];},async getReputation(){if(!M?.id)return null;let c=await l.getMyPoints(M.id);return c.ok?{totalPoints:c.data.total_points??0,points30d:c.data.points_30d??0,reputation:1,confirmedBugs:0,totalReports:0}:null},async getTier(){return M?.id?ro(M.id):null},recordActivity(c,d){s.rewards?.enabled&&at({action:c,metadata:d});},pulseTrigger(){x.pulseTrigger?.();},async listMyReports(){let c=await l.listReporterReports(de(r));return c.ok?c.data?.reports??[]:[]},async listMyComments(c){let d=await l.listReporterComments(c,de(r));return d.ok?d.data?.comments??[]:[]},async replyToReport(c,d){let S=await l.replyToReporterReport(c,de(r),d);return S.ok?S.data?.comment??null:null},async submitFeedbackSignal(c,d,S){let D=await l.replyToReporterReport(c,de(r),S??"",d);return D.ok?D.data?.feedback??null:null},async reopenReport(c,d){let S=await l.reopenReporterReport(c,de(r),d);return S.ok?S.data?.outcome??null:null},openMyReports(){x.recorderOpenMyReports();},async getHallOfFame(c=20){let d=await l.getHallOfFame(c);return d.ok?d.data?.data??[]:[]}};if(typeof globalThis<"u"&&(e.debug??false)&&zs(x),typeof window<"u"&&typeof localStorage<"u"){let c="mushi:last-run",d=null;try{let S=localStorage.getItem(c);d=S===null?null:S==="unfinished",localStorage.setItem(c,"unfinished");}catch{d=null;}try{window.addEventListener("pagehide",()=>{try{localStorage.setItem(c,"clean");}catch{}});}catch{}if(typeof e.onCrashedLastRun=="function")try{e.onCrashedLastRun(d);}catch(S){o.warn("onCrashedLastRun hook threw",{error:S instanceof Error?S.message:String(S)});}}let dn={on:()=>{},isOpen:false,getBreadcrumbs:[],captureEvent:null,captureException:null,getReputation:null,getTier:null,listMyReports:[],listMyComments:[],getHallOfFame:[],replyToReport:null,submitFeedbackSignal:null,reopenReport:null},pn=(c,d)=>{let S=d instanceof Error?d.message:String(d);o.debug(`Mushi.${c}() failed (swallowed)`,{error:S});try{q.add({category:"custom",level:"warning",message:`mushi.${c}() threw`,data:{error:S}});}catch{}};return (c=>new Proxy(c,{get(d,S,D){let I=Reflect.get(d,S,D);if(typeof I!="function")return I;let U=String(S),re=()=>U==="diagnose"?sn():U in dn?dn[U]:void 0;return (...K)=>{try{let ae=I.apply(d,K);return ae&&typeof ae.then=="function"?ae.catch(ye=>(pn(U,ye),re())):ae}catch(ae){return pn(U,ae),re()}}}}))(un)}function nn(t){return t.apiEndpoint??qt}function Ml(t){return t.runtimeConfig!==false}async function $l(t){let e=await Il(t.apiEndpoint);return {apiEndpointReachable:e.reachable,cspAllowsEndpoint:e.cspAllowed,widgetMounted:t.widgetMounted,shadowDomAvailable:typeof HTMLElement<"u"&&typeof HTMLElement.prototype.attachShadow=="function",dialogSupported:typeof HTMLDialogElement<"u",runtimeConfigLoaded:t.runtimeConfigLoaded,captureScreenshotAvailable:t.captureScreenshotAvailable,captureNetworkIntercepting:t.captureNetworkIntercepting,sdkVersion:fe,widgetHostPointerSafe:t.widgetDiagnostics?.widgetHostPointerSafe??false,widgetHostBounds:t.widgetDiagnostics?.widgetHostBounds??null,widgetSuppressed:t.widgetDiagnostics?.widgetSuppressed??false,bannerRendered:t.widgetDiagnostics?.bannerRendered??false}}async function sn(){return {apiEndpointReachable:false,cspAllowsEndpoint:false,widgetMounted:false,shadowDomAvailable:typeof HTMLElement<"u"&&typeof HTMLElement.prototype.attachShadow=="function",dialogSupported:typeof HTMLDialogElement<"u",runtimeConfigLoaded:false,captureScreenshotAvailable:false,captureNetworkIntercepting:false,sdkVersion:fe,widgetHostPointerSafe:false,widgetHostBounds:null,widgetSuppressed:false,bannerRendered:false}}async function Il(t){if(typeof fetch>"u")return {reachable:false,cspAllowed:false};let e=typeof AbortController<"u"?new AbortController:null,r=e?setTimeout(()=>e.abort(),3e3):null;try{return {reachable:(await fetch(`${t.replace(/\/$/,"")}/health`,{method:"GET",cache:"no-store",...e?{signal:e.signal}:{},[Ze]:"diagnose"})).ok,cspAllowed:!0}}catch{return {reachable:false,cspAllowed:false}}finally{r&&clearTimeout(r);}}function on(t){return `mushi:sdk-config:${t}`}function Co(t){return `mushi:sdk-version:${t}`}function Ll(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(on(t));return e?JSON.parse(e).config??null:null}catch{return null}}function Al(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(on(t),JSON.stringify({cachedAt:Date.now(),config:e}));}catch{}}function _l(t){if(!(typeof localStorage>"u"))try{localStorage.removeItem(on(t));}catch{}}function Pl(t){if(typeof localStorage>"u")return null;try{let e=localStorage.getItem(Co(t));if(!e)return null;let r=JSON.parse(e);return !r.data||!r.cachedAt||Date.now()-r.cachedAt>864e5?null:r.data}catch{return null}}function Hl(t,e){if(!(typeof localStorage>"u"))try{localStorage.setItem(Co(t),JSON.stringify({cachedAt:Date.now(),data:e}));}catch{}}function Dl(t,e){let r=Eo(t),n=Eo(e);for(let s=0;s<Math.max(r.length,n.length);s++){let o=r[s]??0,a=n[s]??0;if(o<a)return true;if(o>a)return false}return false}function Eo(t){return t.split(/[.-]/).map(e=>Number.parseInt(e,10)).filter(e=>Number.isFinite(e))}function ko(){return {report:()=>{},on:()=>()=>{},setUser:()=>{},setMetadata:()=>{},setScreen:()=>{},isOpen:()=>false,open:()=>{},close:()=>{},updateConfig:()=>{},diagnose:sn,openWith:()=>{},show:()=>{},hide:()=>{},attachTo:()=>()=>{},setTrigger:()=>{},openReporter:()=>{},destroy:()=>{Me=null;},captureEvent:async()=>null,captureException:async()=>null,identify:()=>{},identifyWithToken:()=>{},publishPageContext:()=>{},openAssistant:()=>{},addBreadcrumb:()=>{},getBreadcrumbs:()=>[],setTag:()=>{},setTags:()=>{},clearTag:()=>{},getReputation:async()=>null,getTier:async()=>null,recordActivity:()=>{},pulseTrigger:()=>{},listMyReports:async()=>[],listMyComments:async()=>[],replyToReport:async()=>null,submitFeedbackSignal:async()=>null,reopenReport:async()=>null,openMyReports:()=>{},getHallOfFame:async()=>[]}}function Ol(t){if(typeof window>"u")return ()=>{};let e=[];try{let r=s=>{t.add({category:"navigation",level:"info",message:`${s}: ${window.location.pathname}`,data:{url:window.location.href,kind:s}});},n=Te({onPush:()=>r("pushState"),onReplace:()=>r("replaceState"),onPop:()=>r("popstate")});e.push(n);}catch{}try{let r=console.error,n=console.warn,s=function(...a){try{t.add({category:"console",level:"error",message:a.map(Ro).join(" ")});}catch{}return r.apply(this,a)},o=function(...a){try{t.add({category:"console",level:"warning",message:a.map(Ro).join(" ")});}catch{}return n.apply(this,a)};console.error=s,console.warn=o,e.push(()=>{console.error===s&&(console.error=r),console.warn===o&&(console.warn=n);});}catch{}try{let r=n=>{try{let s=n.target;if(!(s instanceof Element))return;let o=s,a=0;for(;o&&a<10;){let i=o.getAttribute("data-testid");if(i){let l=(o.textContent??"").trim().slice(0,80);t.add({category:"ui.click",level:"info",message:`clicked ${i}${l?` \u2014 ${l}`:""}`,data:{testid:i,tag:o.tagName.toLowerCase()}});return}o=o.parentElement,a++;}}catch{}};document.addEventListener("click",r,{passive:!0,capture:!0}),e.push(()=>document.removeEventListener("click",r,!0));}catch{}return ()=>{for(let r of e)try{r();}catch{}}}function Ro(t){try{if(t instanceof Error)return `${t.name}: ${t.message}`;if(typeof t=="object"&&t!==null){let r=JSON.stringify(t);return r.length>200?`${r.slice(0,200)}\u2026`:r}let e=String(t);return e.length>200?`${e.slice(0,200)}\u2026`:e}catch{return `[${typeof t}]`}}function Bl(){let t=document.currentScript;if(t&&t.dataset&&t.dataset.project)return t;let e=Array.from(document.querySelectorAll("script[data-project][data-key]"));return e.length>0?e[e.length-1]:null}function Nl(t){let e=t.project?.trim(),r=t.key?.trim();if(!e||!r)return null;let n={};t.trigger&&(n.trigger=t.trigger),t.theme&&(n.theme=t.theme),t.position&&(n.position=t.position),t.triggerText&&(n.triggerText=t.triggerText);let s=t.bannerVariant,o=t.bannerPosition;(s||o)&&(n.bannerConfig={...s?{variant:s}:{},...o?{position:o}:{}});let a={projectId:e,apiKey:r};return t.endpoint&&(a.apiEndpoint=t.endpoint),t.debug==="true"&&(a.debug=true),Object.keys(n).length>0&&(a.widget=n),a}function Ul(){if(typeof document>"u"||typeof window>"u")return;let t=window;if(t.__mushiLoaderInit)return;let e=Bl();if(!e)return;let r=Nl(e.dataset);if(r){t.__mushiLoaderInit=true;try{ur.init(r);}catch{}}}Ul();
2276
2277
  })();//# sourceMappingURL=mushi.loader.global.js.map
2277
2278
  //# sourceMappingURL=mushi.loader.global.js.map