@mushi-mushi/web 1.40.0 → 1.41.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.
Files changed (40) hide show
  1. package/README.md +2 -2
  2. package/dist/chunks/chunk-SUR37XF4.js +105 -0
  3. package/dist/chunks/chunk-SUR37XF4.js.map +1 -0
  4. package/dist/chunks/{screenshot-dom-K3N2HPNN.js → screenshot-dom-TFN24FGW.js} +4 -3
  5. package/dist/chunks/screenshot-dom-TFN24FGW.js.map +1 -0
  6. package/dist/chunks/{widget-views-DX3OYHGR.js → widget-views-NARMWQAB.js} +12 -6
  7. package/dist/chunks/widget-views-NARMWQAB.js.map +1 -0
  8. package/dist/headless.cjs +74 -2
  9. package/dist/headless.cjs.map +1 -1
  10. package/dist/headless.d.cts +3 -2
  11. package/dist/headless.d.ts +2 -1
  12. package/dist/headless.js +74 -2
  13. package/dist/headless.js.map +1 -1
  14. package/dist/i18n/index.cjs +20 -5
  15. package/dist/i18n/index.cjs.map +1 -1
  16. package/dist/i18n/index.d.cts +11 -1
  17. package/dist/i18n/index.d.ts +11 -1
  18. package/dist/i18n/index.js +20 -5
  19. package/dist/i18n/index.js.map +1 -1
  20. package/dist/index.cjs +240 -32
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.cts +10 -3
  23. package/dist/index.d.ts +17 -1
  24. package/dist/index.js +146 -28
  25. package/dist/index.js.map +1 -1
  26. package/dist/mushi.loader.global.js +13 -13
  27. package/dist/otel.d.cts +2 -1
  28. package/dist/otel.d.ts +2 -1
  29. package/dist/test-utils.cjs +8848 -36
  30. package/dist/test-utils.cjs.map +1 -1
  31. package/dist/test-utils.d.cts +2 -1
  32. package/dist/test-utils.d.ts +2 -1
  33. package/dist/test-utils.js +8849 -37
  34. package/dist/test-utils.js.map +1 -1
  35. package/dist/{timeline-DoBCj4dt.d.cts → timeline-CG613pDm.d.cts} +2 -1
  36. package/package.json +9 -9
  37. package/dist/chunks/chunk-ONXNS7MQ.js +0 -35
  38. package/dist/chunks/chunk-ONXNS7MQ.js.map +0 -1
  39. package/dist/chunks/screenshot-dom-K3N2HPNN.js.map +0 -1
  40. package/dist/chunks/widget-views-DX3OYHGR.js.map +0 -1
@@ -1,4 +1,4 @@
1
- (function(){'use strict';var fl=Object.defineProperty;var Me=(e,t)=>()=>(e&&(t=e(e=0)),t);var ft=(e,t)=>{for(var r in t)fl(e,r,{get:t[r],enumerable:true});};function ml(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in e&&e.BYTES_PER_ELEMENT===1}function bo(e,t=""){if(typeof e!="number"){let r=t&&`"${t}" `;throw new TypeError(`${r}expected number, got ${typeof e}`)}if(!Number.isSafeInteger(e)||e<0){let r=t&&`"${t}" `;throw new RangeError(`${r}expected integer >= 0, got ${e}`)}}function tr(e,t,r=""){let n=ml(e),i=e?.length,o=t!==void 0;if(!n||o){let s=r&&`"${r}" `,a="",u=n?`length=${i}`:`type=${typeof e}`,c=s+"expected Uint8Array"+a+", got "+u;throw n?new RangeError(c):new TypeError(c)}return e}function Eo(e){if(typeof e!="function"||typeof e.create!="function")throw new TypeError("Hash must wrapped by utils.createHasher");if(bo(e.outputLen),bo(e.blockLen),e.outputLen<1)throw new Error('"outputLen" must be >= 1');if(e.blockLen<1)throw new Error('"blockLen" must be >= 1')}function It(e,t=true){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Ir(e,t){tr(e,void 0,"digestInto() output");let r=t.outputLen;if(e.length<r)throw new RangeError('"digestInto() output" expected to be of length >='+r)}function Ge(...e){for(let t=0;t<e.length;t++)e[t].fill(0);}function Mr(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Oe(e,t){return e<<32-t|e>>>t}function mt(e,t={}){let r=(i,o)=>e(o).update(i).digest(),n=e(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.canXOF=n.canXOF,r.create=i=>e(i),Object.assign(r,t),Object.freeze(r)}var gt,Lr=Me(()=>{gt=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});});function yo(e,t,r){return e&t^~e&r}function vo(e,t,r){return e&t^e&r^t&r}var rr,Ye,Xe,oe,se,wo=Me(()=>{Lr();rr=class{blockLen;outputLen;canXOF=false;padOffset;isLE;buffer;view;finished=false;length=0;pos=0;destroyed=false;constructor(t,r,n,i){this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=i,this.buffer=new Uint8Array(t),this.view=Mr(this.buffer);}update(t){It(this),tr(t);let{view:r,buffer:n,blockLen:i}=this,o=t.length;for(let s=0;s<o;){let a=Math.min(i-this.pos,o-s);if(a===i){let u=Mr(t);for(;i<=o-s;s+=i)this.process(u,s);continue}n.set(t.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===i&&(this.process(r,0),this.pos=0);}return this.length+=t.length,this.roundClean(),this}digestInto(t){It(this),Ir(t,this),this.finished=true;let{buffer:r,view:n,blockLen:i,isLE:o}=this,{pos:s}=this;r[s++]=128,Ge(this.buffer.subarray(s)),this.padOffset>i-s&&(this.process(n,0),s=0);for(let h=s;h<i;h++)r[h]=0;n.setBigUint64(i-8,BigInt(this.length*8),o),this.process(n,0);let a=Mr(t),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen must be aligned to 32bit");let c=u/4,p=this.get();if(c>p.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<c;h++)a.setUint32(4*h,p[h],o);}digest(){let{buffer:t,outputLen:r}=this;this.digestInto(t);let n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||=new this.constructor,t.set(...this.get());let{blockLen:r,buffer:n,length:i,finished:o,destroyed:s,pos:a}=this;return t.destroyed=s,t.finished=o,t.length=i,t.pos=a,i%r&&t.buffer.set(n),t}clone(){return this._cloneInto()}},Ye=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Xe=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),oe=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 gl(e,t=false){return t?{h:Number(e&Dr),l:Number(e>>So&Dr)}:{h:Number(e>>So&Dr)|0,l:Number(e&Dr)|0}}function xo(e,t=false){let r=e.length,n=new Uint32Array(r),i=new Uint32Array(r);for(let o=0;o<r;o++){let{h:s,l:a}=gl(e[o],t);[n[o],i[o]]=[s,a];}return [n,i]}function Ne(e,t,r,n){let i=(t>>>0)+(n>>>0);return {h:e+r+(i/2**32|0)|0,l:i|0}}var Dr,So,Mn,Ln,bt,Et,nr,ir,ko,Ro,_o,Co,To,Ao,Io=Me(()=>{Dr=BigInt(4294967295),So=BigInt(32);Mn=(e,t,r)=>e>>>r,Ln=(e,t,r)=>e<<32-r|t>>>r,bt=(e,t,r)=>e>>>r|t<<32-r,Et=(e,t,r)=>e<<32-r|t>>>r,nr=(e,t,r)=>e<<64-r|t>>>r-32,ir=(e,t,r)=>e>>>r-32|t<<64-r;ko=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),Ro=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,_o=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),Co=(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0,To=(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0),Ao=(e,t,r,n,i,o)=>t+r+n+i+o+(e/2**32|0)|0;});var Dn={};ft(Dn,{_SHA224:()=>Br,_SHA256:()=>$r,_SHA384:()=>Fr,_SHA512:()=>Or,_SHA512_224:()=>Hr,_SHA512_256:()=>Nr,sha224:()=>Sl,sha256:()=>wl,sha384:()=>kl,sha512:()=>xl,sha512_224:()=>_l,sha512_256:()=>Rl});var El,ot,Pr,$r,Br,Mo,yl,vl,st,at,Mt,Or,Fr,ue,le,Hr,Nr,wl,Sl,xl,kl,Rl,_l,Pn=Me(()=>{wo();Io();Lr();El=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]),ot=new Uint32Array(64),Pr=class extends rr{constructor(t){super(64,t,8,false);}get(){let{A:t,B:r,C:n,D:i,E:o,F:s,G:a,H:u}=this;return [t,r,n,i,o,s,a,u]}set(t,r,n,i,o,s,a,u){this.A=t|0,this.B=r|0,this.C=n|0,this.D=i|0,this.E=o|0,this.F=s|0,this.G=a|0,this.H=u|0;}process(t,r){for(let h=0;h<16;h++,r+=4)ot[h]=t.getUint32(r,false);for(let h=16;h<64;h++){let m=ot[h-15],w=ot[h-2],x=Oe(m,7)^Oe(m,18)^m>>>3,g=Oe(w,17)^Oe(w,19)^w>>>10;ot[h]=g+ot[h-7]+x+ot[h-16]|0;}let{A:n,B:i,C:o,D:s,E:a,F:u,G:c,H:p}=this;for(let h=0;h<64;h++){let m=Oe(a,6)^Oe(a,11)^Oe(a,25),w=p+m+yo(a,u,c)+El[h]+ot[h]|0,g=(Oe(n,2)^Oe(n,13)^Oe(n,22))+vo(n,i,o)|0;p=c,c=u,u=a,a=s+w|0,s=o,o=i,i=n,n=w+g|0;}n=n+this.A|0,i=i+this.B|0,o=o+this.C|0,s=s+this.D|0,a=a+this.E|0,u=u+this.F|0,c=c+this.G|0,p=p+this.H|0,this.set(n,i,o,s,a,u,c,p);}roundClean(){Ge(ot);}destroy(){this.destroyed=true,this.set(0,0,0,0,0,0,0,0),Ge(this.buffer);}},$r=class extends Pr{A=Ye[0]|0;B=Ye[1]|0;C=Ye[2]|0;D=Ye[3]|0;E=Ye[4]|0;F=Ye[5]|0;G=Ye[6]|0;H=Ye[7]|0;constructor(){super(32);}},Br=class extends Pr{A=Xe[0]|0;B=Xe[1]|0;C=Xe[2]|0;D=Xe[3]|0;E=Xe[4]|0;F=Xe[5]|0;G=Xe[6]|0;H=Xe[7]|0;constructor(){super(28);}},Mo=xo(["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(e=>BigInt(e))),yl=Mo[0],vl=Mo[1],st=new Uint32Array(80),at=new Uint32Array(80),Mt=class extends rr{constructor(t){super(128,t,16,false);}get(){let{Ah:t,Al:r,Bh:n,Bl:i,Ch:o,Cl:s,Dh:a,Dl:u,Eh:c,El:p,Fh:h,Fl:m,Gh:w,Gl:x,Hh:g,Hl:y}=this;return [t,r,n,i,o,s,a,u,c,p,h,m,w,x,g,y]}set(t,r,n,i,o,s,a,u,c,p,h,m,w,x,g,y){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=i|0,this.Ch=o|0,this.Cl=s|0,this.Dh=a|0,this.Dl=u|0,this.Eh=c|0,this.El=p|0,this.Fh=h|0,this.Fl=m|0,this.Gh=w|0,this.Gl=x|0,this.Hh=g|0,this.Hl=y|0;}process(t,r){for(let v=0;v<16;v++,r+=4)st[v]=t.getUint32(r),at[v]=t.getUint32(r+=4);for(let v=16;v<80;v++){let T=st[v-15]|0,A=at[v-15]|0,E=bt(T,A,1)^bt(T,A,8)^Mn(T,A,7),f=Et(T,A,1)^Et(T,A,8)^Ln(T,A,7),b=st[v-2]|0,_=at[v-2]|0,B=bt(b,_,19)^nr(b,_,61)^Mn(b,_,6),j=Et(b,_,19)^ir(b,_,61)^Ln(b,_,6),q=_o(f,j,at[v-7],at[v-16]),re=Co(q,E,B,st[v-7],st[v-16]);st[v]=re|0,at[v]=q|0;}let{Ah:n,Al:i,Bh:o,Bl:s,Ch:a,Cl:u,Dh:c,Dl:p,Eh:h,El:m,Fh:w,Fl:x,Gh:g,Gl:y,Hh:C,Hl:R}=this;for(let v=0;v<80;v++){let T=bt(h,m,14)^bt(h,m,18)^nr(h,m,41),A=Et(h,m,14)^Et(h,m,18)^ir(h,m,41),E=h&w^~h&g,f=m&x^~m&y,b=To(R,A,f,vl[v],at[v]),_=Ao(b,C,T,E,yl[v],st[v]),B=b|0,j=bt(n,i,28)^nr(n,i,34)^nr(n,i,39),q=Et(n,i,28)^ir(n,i,34)^ir(n,i,39),re=n&o^n&a^o&a,Q=i&s^i&u^s&u;C=g|0,R=y|0,g=w|0,y=x|0,w=h|0,x=m|0,{h,l:m}=Ne(c|0,p|0,_|0,B|0),c=a|0,p=u|0,a=o|0,u=s|0,o=n|0,s=i|0;let we=ko(B,q,Q);n=Ro(we,_,j,re),i=we|0;}(({h:n,l:i}=Ne(this.Ah|0,this.Al|0,n|0,i|0))),{h:o,l:s}=Ne(this.Bh|0,this.Bl|0,o|0,s|0),{h:a,l:u}=Ne(this.Ch|0,this.Cl|0,a|0,u|0),{h:c,l:p}=Ne(this.Dh|0,this.Dl|0,c|0,p|0),{h,l:m}=Ne(this.Eh|0,this.El|0,h|0,m|0),{h:w,l:x}=Ne(this.Fh|0,this.Fl|0,w|0,x|0),{h:g,l:y}=Ne(this.Gh|0,this.Gl|0,g|0,y|0),{h:C,l:R}=Ne(this.Hh|0,this.Hl|0,C|0,R|0),this.set(n,i,o,s,a,u,c,p,h,m,w,x,g,y,C,R);}roundClean(){Ge(st,at);}destroy(){this.destroyed=true,Ge(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);}},Or=class extends Mt{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);}},Fr=class extends Mt{Ah=oe[0]|0;Al=oe[1]|0;Bh=oe[2]|0;Bl=oe[3]|0;Ch=oe[4]|0;Cl=oe[5]|0;Dh=oe[6]|0;Dl=oe[7]|0;Eh=oe[8]|0;El=oe[9]|0;Fh=oe[10]|0;Fl=oe[11]|0;Gh=oe[12]|0;Gl=oe[13]|0;Hh=oe[14]|0;Hl=oe[15]|0;constructor(){super(48);}},ue=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),le=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),Hr=class extends Mt{Ah=ue[0]|0;Al=ue[1]|0;Bh=ue[2]|0;Bl=ue[3]|0;Ch=ue[4]|0;Cl=ue[5]|0;Dh=ue[6]|0;Dl=ue[7]|0;Eh=ue[8]|0;El=ue[9]|0;Fh=ue[10]|0;Fl=ue[11]|0;Gh=ue[12]|0;Gl=ue[13]|0;Hh=ue[14]|0;Hl=ue[15]|0;constructor(){super(28);}},Nr=class extends Mt{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(32);}},wl=mt(()=>new $r,gt(1)),Sl=mt(()=>new Br,gt(4)),xl=mt(()=>new Or,gt(3)),kl=mt(()=>new Fr,gt(2)),Rl=mt(()=>new Nr,gt(6)),_l=mt(()=>new Hr,gt(5));});var Lo={};ft(Lo,{_HMAC:()=>or,hmac:()=>Cl});var or,Cl,Do=Me(()=>{Lr();or=class{oHash;iHash;blockLen;outputLen;canXOF=false;finished=false;destroyed=false;constructor(t,r){if(Eo(t),tr(r,void 0,"key"),this.iHash=t.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,i=new Uint8Array(n);i.set(r.length>n?t.create().update(r).digest():r);for(let o=0;o<i.length;o++)i[o]^=54;this.iHash.update(i),this.oHash=t.create();for(let o=0;o<i.length;o++)i[o]^=106;this.oHash.update(i),Ge(i);}update(t){return It(this),this.iHash.update(t),this}digestInto(t){It(this),Ir(t,this),this.finished=true;let r=t.subarray(0,this.outputLen);this.iHash.digestInto(r),this.oHash.update(r),this.oHash.digestInto(r),this.destroy();}digest(){let t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||=Object.create(Object.getPrototypeOf(this),{});let{oHash:r,iHash:n,finished:i,destroyed:o,blockLen:s,outputLen:a}=this;return t=t,t.finished=i,t.destroyed=o,t.blockLen=s,t.outputLen=a,t.oHash=r._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=true,this.oHash.destroy(),this.iHash.destroy();}},Cl=(()=>{let e=((t,r,n)=>new or(t,r).update(n).digest());return e.create=(t,r)=>new or(t,r),e})();});function cp(e){let t=(e??"").toLowerCase().split(/[-_]/)[0];return ep.includes(t)?t:"en"}function Ct(e="en"){return lp[cp(e)]}function br(e,t={}){return e.replace(/\{(\w+)\}/g,(r,n)=>{let i=t[n];return i==null?"":String(i)})}function dp(e){return Qd.includes(e)}function pp(e){let t=(e.user_category??"").trim().toLowerCase().replace(/[\s-]+/g,"_");return t==="feature"||t==="feature_request"||t==="idea"}function Ut(e,t="en"){let r=Ct(t),n=(e.status??"").trim(),i=dp(n)?tp[n]:"received",o=e.fixed_in_version?.trim()||null;(n==="fixed"||n==="resolved")&&o&&(i="fixed_version"),(e.awaiting_reporter||e.awaiting_reporter_at)&&Ra.has(i)&&(i="waiting");let a=pp(e),u=r.status[i],c=r.detail[i];a&&(i==="received"?u=r.idea.received:i==="reviewing"||i==="reviewing_again"?u=r.idea.reviewing:i==="fixing"?u=r.idea.fixing:i==="fixed_version"?u=r.idea.shippedVersion:(i==="fixed_next"||i==="fixed")&&(u=r.idea.shipped));let p=e.closed_reason??null;i==="closed"&&(c=p&&p!=="spam"&&p in r.closedReason?r.closedReason[p]:r.closedReason.none);let h=e.group_bucket??"none",m=Ra.has(i)||i==="waiting"?h==="few"?r.others.few:h==="many"?r.others.many:null:null;return {key:i,label:br(u,{version:o}),tone:rp[i],detail:br(c,{version:o}),canVerify:i==="fixed_next"||i==="fixed_version"||i==="fixed",othersNote:m,hidden:i==="closed"&&p==="spam"}}function hp(e,t={},r="en"){let n=Ct(r);if(e==="comment")return t.text??"";if(e==="closed"){let i=t.closed_reason??"";return i&&i!=="spam"&&i in n.closedReason?n.closedReason[i]:n.closedReason.none}return e==="reporter_comment"?t.text??n.timeline.reporter_comment:br(n.timeline[e],{text:t.text,version:t.version})}function pi(e){return e.kind==="comment"||e.kind==="reporter_comment"||e.kind==="info_requested"}function _a(e,t="en"){return e.custom||!np.includes(e.kind)?e.text:hp(e.kind,{text:e.body??null,version:e.version??null,closed_reason:e.closed_reason??null},t)}function Ca(e,t="en"){let r=Ct(t).ui,n=e.unread_total===1?e.latest[0]?.kind:null;return n==="comment"||n==="info_requested"?r.toastReplied:n==="fixed"||n==="released"?r.toastFixed:r.updates.replace("{n}",String(e.unread_total))}function Ta(e){return /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(e.trim())}var Qd,ep,tp,rp,np,ip,op,sp,ap,up,lp,Ra,sn=Me(()=>{Qd=["new","pending","submitted","queued","classified","grouped","fixing","fixed","dismissed","triaged","in_progress","resolved","verified","reopened"],ep=["en","ja","es","th","zh"],tp={new:"received",pending:"received",submitted:"received",queued:"received",classified:"reviewing",triaged:"reviewing",grouped:"reviewing",reopened:"reviewing_again",fixing:"fixing",in_progress:"fixing",verified:"verified",fixed:"fixed_next",resolved:"fixed",dismissed:"closed"},rp={received:"neutral",reviewing:"info",reviewing_again:"info",fixing:"progress",verified:"success-muted",fixed_next:"success",fixed_version:"success",fixed:"success",closed:"muted",waiting:"attention"},np=["received","reviewing","duplicate_linked","info_requested","comment","reporter_comment","fix_started","fixed","released","verified","reopened","closed"],ip={status:{received:"Received",reviewing:"Looking into it",reviewing_again:"Looking into it again",fixing:"Fix in progress",verified:"Confirmed fixed",fixed_next:"Fixed \u2014 coming in the next update",fixed_version:"Fixed in v{version}",fixed:"Fixed",closed:"Closed",waiting:"Waiting on you"},detail:{received:"We got it.",reviewing:"The developer has it on their list.",reviewing_again:"Thanks \u2014 we reopened it.",fixing:"A fix is being worked on.",verified:"You confirmed the fix. Thank you!",fixed_next:"It ships in the next release.",fixed_version:"Update to v{version}. Does it work for you now?",fixed:"Does it work for you now?",closed:"Closed.",waiting:"The developer asked a question \u2014 reply below."},idea:{received:"Thanks for the idea",reviewing:"Under consideration",fixing:"Being built",shipped:"Shipped",shippedVersion:"Shipped in v{version}"},closedReason:{duplicate:"Same as an earlier report \u2014 we'll update you there.",not_reproducible:"We couldn't reproduce it. Reply if it happens again.",wont_fix:"We decided not to change this.",working_as_intended:"This is expected behaviour.",none:"Closed."},others:{few:"You and a few others reported this",many:"Many people reported this"},timeline:{received:"You reported this",reviewing:"The developer is looking into it",duplicate_linked:"Same as an existing report \u2014 we'll update you there",info_requested:"The developer asked: {text}",reporter_comment:"You",fix_started:"A fix is in progress",fixed:"Fixed \u2014 coming in the next update",released:"Shipped in v{version} \u2014 update to get it",verified:"You confirmed it's fixed",reopened:"Reopened"},categories:{bug:"Bug",slow:"Slow",visual:"Looks wrong",confusing:"Confusing",idea:"Idea"},ui:{yes:"Yes",notYet:"Not yet",empty:"Nothing yet \u2014 your reports will show up here with updates.",loadError:"Couldn't load updates",retry:"Retry",sending:"Sending\u2026",sent:"Sent",sendFailed:"Failed",noReplies:"No developer replies yet.",you:"You",developer:"Developer",addWords:"Add a few words",developerReplied:"Developer replied: \u201C{text}\u201D",updates:"{n} updates on your reports",receipt:"Sent. We'll let you know here when there's news.",trackIt:"Track it",done:"Done",emailOptIn:"Get updates by email",emailPlaceholder:"you@example.com",emailSubmit:"Email me updates",emailCheckInbox:"Check your inbox and tap the link to confirm.",emailInvalid:"That does not look like an email address.",emailFailed:"Couldn't set up email updates. Try again later.",toastReplied:"The developer replied to your report",toastFixed:"Your bug is fixed",view:"View"}},op={status:{received:"\u53D7\u3051\u4ED8\u3051\u307E\u3057\u305F",reviewing:"\u78BA\u8A8D\u4E2D",reviewing_again:"\u518D\u78BA\u8A8D\u4E2D",fixing:"\u4FEE\u6B63\u4E2D",verified:"\u4FEE\u6B63\u3092\u78BA\u8A8D\u6E08\u307F",fixed_next:"\u4FEE\u6B63\u6E08\u307F \u2014 \u6B21\u306E\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3067\u53CD\u6620",fixed_version:"v{version} \u3067\u4FEE\u6B63\u6E08\u307F",fixed:"\u4FEE\u6B63\u6E08\u307F",closed:"\u7D42\u4E86",waiting:"\u3042\u306A\u305F\u306E\u8FD4\u4FE1\u5F85\u3061"},detail:{received:"\u5831\u544A\u3092\u53D7\u3051\u53D6\u308A\u307E\u3057\u305F\u3002",reviewing:"\u958B\u767A\u8005\u304C\u5BFE\u5FDC\u30EA\u30B9\u30C8\u306B\u5165\u308C\u307E\u3057\u305F\u3002",reviewing_again:"\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059\u3002\u518D\u5EA6\u78BA\u8A8D\u3057\u3066\u3044\u307E\u3059\u3002",fixing:"\u4FEE\u6B63\u306B\u53D6\u308A\u7D44\u3093\u3067\u3044\u307E\u3059\u3002",verified:"\u4FEE\u6B63\u3092\u78BA\u8A8D\u3044\u305F\u3060\u304D\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059\uFF01",fixed_next:"\u6B21\u306E\u30EA\u30EA\u30FC\u30B9\u3067\u53CD\u6620\u3055\u308C\u307E\u3059\u3002",fixed_version:"v{version} \u306B\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u89E3\u6C7A\u3057\u307E\u3057\u305F\u304B\uFF1F",fixed:"\u89E3\u6C7A\u3057\u307E\u3057\u305F\u304B\uFF1F",closed:"\u7D42\u4E86\u3057\u307E\u3057\u305F\u3002",waiting:"\u958B\u767A\u8005\u304B\u3089\u8CEA\u554F\u304C\u3042\u308A\u307E\u3059\u3002\u4E0B\u304B\u3089\u8FD4\u4FE1\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},idea:{received:"\u30A2\u30A4\u30C7\u30A2\u3092\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059",reviewing:"\u691C\u8A0E\u4E2D",fixing:"\u958B\u767A\u4E2D",shipped:"\u30EA\u30EA\u30FC\u30B9\u6E08\u307F",shippedVersion:"v{version} \u3067\u30EA\u30EA\u30FC\u30B9\u6E08\u307F"},closedReason:{duplicate:"\u4EE5\u524D\u306E\u5831\u544A\u3068\u540C\u3058\u5185\u5BB9\u3067\u3059\u3002\u305D\u3061\u3089\u3067\u9032\u6357\u3092\u304A\u77E5\u3089\u305B\u3057\u307E\u3059\u3002",not_reproducible:"\u518D\u73FE\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u518D\u767A\u3057\u305F\u3089\u8FD4\u4FE1\u3057\u3066\u304F\u3060\u3055\u3044\u3002",wont_fix:"\u3053\u306E\u70B9\u306F\u5909\u66F4\u3057\u306A\u3044\u3053\u3068\u306B\u3057\u307E\u3057\u305F\u3002",working_as_intended:"\u3053\u308C\u306F\u60F3\u5B9A\u3069\u304A\u308A\u306E\u52D5\u4F5C\u3067\u3059\u3002",none:"\u7D42\u4E86\u3057\u307E\u3057\u305F\u3002"},others:{few:"\u3042\u306A\u305F\u3092\u542B\u3081\u6570\u4EBA\u304C\u5831\u544A\u3057\u3066\u3044\u307E\u3059",many:"\u591A\u304F\u306E\u4EBA\u304C\u5831\u544A\u3057\u3066\u3044\u307E\u3059"},timeline:{received:"\u3042\u306A\u305F\u304C\u5831\u544A\u3057\u307E\u3057\u305F",reviewing:"\u958B\u767A\u8005\u304C\u78BA\u8A8D\u3057\u3066\u3044\u307E\u3059",duplicate_linked:"\u65E2\u5B58\u306E\u5831\u544A\u3068\u540C\u3058\u5185\u5BB9\u3067\u3059\u3002\u305D\u3061\u3089\u3067\u9032\u6357\u3092\u304A\u77E5\u3089\u305B\u3057\u307E\u3059",info_requested:"\u958B\u767A\u8005\u304B\u3089\u306E\u8CEA\u554F: {text}",reporter_comment:"\u3042\u306A\u305F",fix_started:"\u4FEE\u6B63\u4E2D\u3067\u3059",fixed:"\u4FEE\u6B63\u6E08\u307F \u2014 \u6B21\u306E\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3067\u53CD\u6620",released:"v{version} \u3067\u30EA\u30EA\u30FC\u30B9 \u2014 \u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3057\u3066\u304F\u3060\u3055\u3044",verified:"\u4FEE\u6B63\u3092\u78BA\u8A8D\u3057\u307E\u3057\u305F",reopened:"\u518D\u30AA\u30FC\u30D7\u30F3\u3057\u307E\u3057\u305F"},categories:{bug:"\u30D0\u30B0",slow:"\u9045\u3044",visual:"\u8868\u793A\u304C\u304A\u304B\u3057\u3044",confusing:"\u308F\u304B\u308A\u306B\u304F\u3044",idea:"\u30A2\u30A4\u30C7\u30A2"},ui:{yes:"\u306F\u3044",notYet:"\u307E\u3060",empty:"\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002\u5831\u544A\u3059\u308B\u3068\u3053\u3053\u306B\u9032\u6357\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002",loadError:"\u66F4\u65B0\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F",retry:"\u518D\u8A66\u884C",sending:"\u9001\u4FE1\u4E2D\u2026",sent:"\u9001\u4FE1\u3057\u307E\u3057\u305F",sendFailed:"\u9001\u4FE1\u5931\u6557",noReplies:"\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",you:"\u3042\u306A\u305F",developer:"\u958B\u767A\u8005",addWords:"\u3082\u3046\u5C11\u3057\u8A73\u3057\u304F\u66F8\u3044\u3066\u304F\u3060\u3055\u3044",developerReplied:"\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1:\u300C{text}\u300D",updates:"\u3042\u306A\u305F\u306E\u5831\u544A\u306B {n} \u4EF6\u306E\u66F4\u65B0\u304C\u3042\u308A\u307E\u3059",receipt:"\u9001\u4FE1\u3057\u307E\u3057\u305F\u3002\u9032\u5C55\u304C\u3042\u308C\u3070\u3053\u3053\u3067\u304A\u77E5\u3089\u305B\u3057\u307E\u3059\u3002",trackIt:"\u7D4C\u904E\u3092\u898B\u308B",done:"\u9589\u3058\u308B",emailOptIn:"\u30E1\u30FC\u30EB\u3067\u66F4\u65B0\u3092\u53D7\u3051\u53D6\u308B",emailPlaceholder:"you@example.com",emailSubmit:"\u30E1\u30FC\u30EB\u3067\u53D7\u3051\u53D6\u308B",emailCheckInbox:"\u53D7\u4FE1\u30C8\u30EC\u30A4\u306E\u30E1\u30FC\u30EB\u306E\u30EA\u30F3\u30AF\u3092\u30BF\u30C3\u30D7\u3057\u3066\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",emailInvalid:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u306E\u5F62\u5F0F\u304C\u6B63\u3057\u304F\u3042\u308A\u307E\u305B\u3093\u3002",emailFailed:"\u30E1\u30FC\u30EB\u901A\u77E5\u3092\u8A2D\u5B9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u5F8C\u3067\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",toastReplied:"\u958B\u767A\u8005\u304C\u3042\u306A\u305F\u306E\u5831\u544A\u306B\u8FD4\u4FE1\u3057\u307E\u3057\u305F",toastFixed:"\u3042\u306A\u305F\u304C\u5831\u544A\u3057\u305F\u4E0D\u5177\u5408\u304C\u4FEE\u6B63\u3055\u308C\u307E\u3057\u305F",view:"\u898B\u308B"}},sp={status:{received:"Recibido",reviewing:"Lo estamos revisando",reviewing_again:"Lo revisamos de nuevo",fixing:"Correcci\xF3n en curso",verified:"Correcci\xF3n confirmada",fixed_next:"Corregido \u2014 llega en la pr\xF3xima actualizaci\xF3n",fixed_version:"Corregido en v{version}",fixed:"Corregido",closed:"Cerrado",waiting:"Esperando tu respuesta"},detail:{received:"Lo recibimos.",reviewing:"El desarrollador lo tiene en su lista.",reviewing_again:"Gracias, lo reabrimos.",fixing:"Se est\xE1 trabajando en una correcci\xF3n.",verified:"Confirmaste la correcci\xF3n. \xA1Gracias!",fixed_next:"Llega en la pr\xF3xima versi\xF3n.",fixed_version:"Actualiza a v{version}. \xBFYa funciona?",fixed:"\xBFYa funciona?",closed:"Cerrado.",waiting:"El desarrollador hizo una pregunta: responde abajo."},idea:{received:"Gracias por la idea",reviewing:"En consideraci\xF3n",fixing:"En desarrollo",shipped:"Publicado",shippedVersion:"Publicado en v{version}"},closedReason:{duplicate:"Es igual a un reporte anterior; te avisaremos all\xED.",not_reproducible:"No pudimos reproducirlo. Responde si vuelve a pasar.",wont_fix:"Decidimos no cambiar esto.",working_as_intended:"Este es el comportamiento esperado.",none:"Cerrado."},others:{few:"T\xFA y algunas personas m\xE1s reportaron esto",many:"Muchas personas reportaron esto"},timeline:{received:"Reportaste esto",reviewing:"El desarrollador lo est\xE1 revisando",duplicate_linked:"Es igual a un reporte existente; te avisaremos all\xED",info_requested:"El desarrollador pregunt\xF3: {text}",reporter_comment:"T\xFA",fix_started:"Hay una correcci\xF3n en curso",fixed:"Corregido \u2014 llega en la pr\xF3xima actualizaci\xF3n",released:"Publicado en v{version}: actualiza para tenerlo",verified:"Confirmaste que est\xE1 corregido",reopened:"Reabierto"},categories:{bug:"Error",slow:"Lento",visual:"Se ve mal",confusing:"Confuso",idea:"Idea"},ui:{yes:"S\xED",notYet:"Todav\xEDa no",empty:"Nada todav\xEDa: tus reportes aparecer\xE1n aqu\xED con novedades.",loadError:"No se pudieron cargar las novedades",retry:"Reintentar",sending:"Enviando\u2026",sent:"Enviado",sendFailed:"Error al enviar",noReplies:"El desarrollador a\xFAn no ha respondido.",you:"T\xFA",developer:"Desarrollador",addWords:"Agrega algunas palabras",developerReplied:"El desarrollador respondi\xF3: \u201C{text}\u201D",updates:"{n} novedades en tus reportes",receipt:"Enviado. Te avisaremos aqu\xED cuando haya novedades.",trackIt:"Seguirlo",done:"Listo",emailOptIn:"Recibir novedades por correo",emailPlaceholder:"tu@ejemplo.com",emailSubmit:"Enviarme novedades",emailCheckInbox:"Revisa tu correo y toca el enlace para confirmar.",emailInvalid:"Eso no parece un correo electr\xF3nico.",emailFailed:"No pudimos activar las novedades por correo. Int\xE9ntalo m\xE1s tarde.",toastReplied:"El desarrollador respondi\xF3 a tu reporte",toastFixed:"Tu error est\xE1 corregido",view:"Ver"}},ap={status:{received:"\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E41\u0E25\u0E49\u0E27",reviewing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A",reviewing_again:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",fixing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E41\u0E01\u0E49\u0E44\u0E02",verified:"\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E27\u0E48\u0E32\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27",fixed_next:"\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27 \u2014 \u0E08\u0E30\u0E21\u0E32\u0E43\u0E19\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E16\u0E31\u0E14\u0E44\u0E1B",fixed_version:"\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27\u0E43\u0E19 v{version}",fixed:"\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27",closed:"\u0E1B\u0E34\u0E14\u0E41\u0E25\u0E49\u0E27",waiting:"\u0E23\u0E2D\u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E04\u0E38\u0E13"},detail:{received:"\u0E40\u0E23\u0E32\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E41\u0E25\u0E49\u0E27",reviewing:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E43\u0E2A\u0E48\u0E44\u0E27\u0E49\u0E43\u0E19\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E41\u0E25\u0E49\u0E27",reviewing_again:"\u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13 \u2014 \u0E40\u0E23\u0E32\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E41\u0E25\u0E49\u0E27",fixing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02",verified:"\u0E04\u0E38\u0E13\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02\u0E41\u0E25\u0E49\u0E27 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13!",fixed_next:"\u0E08\u0E30\u0E21\u0E32\u0E43\u0E19\u0E23\u0E38\u0E48\u0E19\u0E16\u0E31\u0E14\u0E44\u0E1B",fixed_version:"\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E40\u0E1B\u0E47\u0E19 v{version} \u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49\u0E43\u0E0A\u0E49\u0E44\u0E14\u0E49\u0E2B\u0E23\u0E37\u0E2D\u0E22\u0E31\u0E07?",fixed:"\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49\u0E43\u0E0A\u0E49\u0E44\u0E14\u0E49\u0E2B\u0E23\u0E37\u0E2D\u0E22\u0E31\u0E07?",closed:"\u0E1B\u0E34\u0E14\u0E41\u0E25\u0E49\u0E27",waiting:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E21\u0E35\u0E04\u0E33\u0E16\u0E32\u0E21 \u2014 \u0E15\u0E2D\u0E1A\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07"},idea:{received:"\u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22",reviewing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E1E\u0E34\u0E08\u0E32\u0E23\u0E13\u0E32",fixing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E23\u0E49\u0E32\u0E07",shipped:"\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E41\u0E25\u0E49\u0E27",shippedVersion:"\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E41\u0E25\u0E49\u0E27\u0E43\u0E19 v{version}"},closedReason:{duplicate:"\u0E40\u0E2B\u0E21\u0E37\u0E2D\u0E19\u0E01\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32 \u2014 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E41\u0E08\u0E49\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E35\u0E48\u0E19\u0E31\u0E48\u0E19",not_reproducible:"\u0E40\u0E23\u0E32\u0E17\u0E33\u0E43\u0E2B\u0E49\u0E40\u0E01\u0E34\u0E14\u0E0B\u0E49\u0E33\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A\u0E2B\u0E32\u0E01\u0E40\u0E01\u0E34\u0E14\u0E02\u0E36\u0E49\u0E19\u0E2D\u0E35\u0E01",wont_fix:"\u0E40\u0E23\u0E32\u0E15\u0E31\u0E14\u0E2A\u0E34\u0E19\u0E43\u0E08\u0E44\u0E21\u0E48\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E2A\u0E48\u0E27\u0E19\u0E19\u0E35\u0E49",working_as_intended:"\u0E19\u0E35\u0E48\u0E40\u0E1B\u0E47\u0E19\u0E01\u0E32\u0E23\u0E17\u0E33\u0E07\u0E32\u0E19\u0E15\u0E32\u0E21\u0E17\u0E35\u0E48\u0E15\u0E31\u0E49\u0E07\u0E43\u0E08\u0E44\u0E27\u0E49",none:"\u0E1B\u0E34\u0E14\u0E41\u0E25\u0E49\u0E27"},others:{few:"\u0E04\u0E38\u0E13\u0E41\u0E25\u0E30\u0E2D\u0E35\u0E01\u0E44\u0E21\u0E48\u0E01\u0E35\u0E48\u0E04\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49",many:"\u0E21\u0E35\u0E2B\u0E25\u0E32\u0E22\u0E04\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49"},timeline:{received:"\u0E04\u0E38\u0E13\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49",reviewing:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E01\u0E33\u0E25\u0E31\u0E07\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A",duplicate_linked:"\u0E40\u0E2B\u0E21\u0E37\u0E2D\u0E19\u0E01\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E17\u0E35\u0E48\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48 \u2014 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E41\u0E08\u0E49\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E35\u0E48\u0E19\u0E31\u0E48\u0E19",info_requested:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E16\u0E32\u0E21\u0E27\u0E48\u0E32: {text}",reporter_comment:"\u0E04\u0E38\u0E13",fix_started:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E41\u0E01\u0E49\u0E44\u0E02",fixed:"\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27 \u2014 \u0E08\u0E30\u0E21\u0E32\u0E43\u0E19\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E16\u0E31\u0E14\u0E44\u0E1B",released:"\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E43\u0E19 v{version} \u2014 \u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02",verified:"\u0E04\u0E38\u0E13\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E27\u0E48\u0E32\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27",reopened:"\u0E40\u0E1B\u0E34\u0E14\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07"},categories:{bug:"\u0E1A\u0E31\u0E4A\u0E01",slow:"\u0E0A\u0E49\u0E32",visual:"\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25\u0E1C\u0E34\u0E14",confusing:"\u0E2A\u0E31\u0E1A\u0E2A\u0E19",idea:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22"},ui:{yes:"\u0E43\u0E0A\u0E48",notYet:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35 \u2014 \u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E08\u0E30\u0E41\u0E2A\u0E14\u0E07\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48\u0E1E\u0E23\u0E49\u0E2D\u0E21\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32",loadError:"\u0E42\u0E2B\u0E25\u0E14\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49",retry:"\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",sending:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u2026",sent:"\u0E2A\u0E48\u0E07\u0E41\u0E25\u0E49\u0E27",sendFailed:"\u0E2A\u0E48\u0E07\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",noReplies:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32",you:"\u0E04\u0E38\u0E13",developer:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32",addWords:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E23\u0E32\u0E22\u0E25\u0E30\u0E40\u0E2D\u0E35\u0E22\u0E14\u0E2D\u0E35\u0E01\u0E40\u0E25\u0E47\u0E01\u0E19\u0E49\u0E2D\u0E22",developerReplied:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E15\u0E2D\u0E1A\u0E27\u0E48\u0E32: \u201C{text}\u201D",updates:"\u0E21\u0E35\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32 {n} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E43\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",receipt:"\u0E2A\u0E48\u0E07\u0E41\u0E25\u0E49\u0E27 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E41\u0E08\u0E49\u0E07\u0E04\u0E38\u0E13\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E21\u0E35\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32",trackIt:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21",done:"\u0E40\u0E2A\u0E23\u0E47\u0E08",emailOptIn:"\u0E23\u0E31\u0E1A\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E32\u0E07\u0E2D\u0E35\u0E40\u0E21\u0E25",emailPlaceholder:"you@example.com",emailSubmit:"\u0E2A\u0E48\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E32\u0E07\u0E2D\u0E35\u0E40\u0E21\u0E25",emailCheckInbox:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E25\u0E48\u0E2D\u0E07\u0E08\u0E14\u0E2B\u0E21\u0E32\u0E22\u0E41\u0E25\u0E49\u0E27\u0E41\u0E15\u0E30\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19",emailInvalid:"\u0E14\u0E39\u0E40\u0E2B\u0E21\u0E37\u0E2D\u0E19\u0E08\u0E30\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25\u0E17\u0E35\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",emailFailed:"\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E17\u0E32\u0E07\u0E2D\u0E35\u0E40\u0E21\u0E25\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08 \u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07",toastReplied:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27",toastFixed:"\u0E1A\u0E31\u0E4A\u0E01\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02\u0E41\u0E25\u0E49\u0E27",view:"\u0E14\u0E39"}},up={status:{received:"\u5DF2\u6536\u5230",reviewing:"\u5904\u7406\u4E2D",reviewing_again:"\u91CD\u65B0\u67E5\u770B\u4E2D",fixing:"\u4FEE\u590D\u4E2D",verified:"\u5DF2\u786E\u8BA4\u4FEE\u590D",fixed_next:"\u5DF2\u4FEE\u590D \u2014 \u4E0B\u6B21\u66F4\u65B0\u4E0A\u7EBF",fixed_version:"\u5DF2\u5728 v{version} \u4FEE\u590D",fixed:"\u5DF2\u4FEE\u590D",closed:"\u5DF2\u5173\u95ED",waiting:"\u7B49\u5F85\u4F60\u7684\u56DE\u590D"},detail:{received:"\u6211\u4EEC\u5DF2\u6536\u5230\u4F60\u7684\u53CD\u9988\u3002",reviewing:"\u5F00\u53D1\u8005\u5DF2\u628A\u5B83\u52A0\u5165\u5F85\u5904\u7406\u5217\u8868\u3002",reviewing_again:"\u8C22\u8C22\uFF0C\u6211\u4EEC\u6B63\u5728\u91CD\u65B0\u67E5\u770B\u3002",fixing:"\u6B63\u5728\u4FEE\u590D\u3002",verified:"\u611F\u8C22\u4F60\u786E\u8BA4\u4FEE\u590D\uFF01",fixed_next:"\u4F1A\u5728\u4E0B\u4E00\u4E2A\u7248\u672C\u4E2D\u4E0A\u7EBF\u3002",fixed_version:"\u8BF7\u66F4\u65B0\u5230 v{version}\u3002\u95EE\u9898\u89E3\u51B3\u4E86\u5417\uFF1F",fixed:"\u95EE\u9898\u89E3\u51B3\u4E86\u5417\uFF1F",closed:"\u5DF2\u5173\u95ED\u3002",waiting:"\u5F00\u53D1\u8005\u6709\u95EE\u9898\u60F3\u95EE\u4F60\uFF0C\u8BF7\u5728\u4E0B\u65B9\u56DE\u590D\u3002"},idea:{received:"\u8C22\u8C22\u4F60\u7684\u60F3\u6CD5",reviewing:"\u8003\u8651\u4E2D",fixing:"\u5F00\u53D1\u4E2D",shipped:"\u5DF2\u4E0A\u7EBF",shippedVersion:"\u5DF2\u5728 v{version} \u4E0A\u7EBF"},closedReason:{duplicate:"\u548C\u4E4B\u524D\u7684\u4E00\u6761\u53CD\u9988\u76F8\u540C\uFF0C\u6211\u4EEC\u4F1A\u5728\u90A3\u6761\u91CC\u901A\u77E5\u8FDB\u5C55\u3002",not_reproducible:"\u6211\u4EEC\u6CA1\u80FD\u590D\u73B0\u3002\u5982\u679C\u518D\u6B21\u53D1\u751F\uFF0C\u8BF7\u56DE\u590D\u3002",wont_fix:"\u6211\u4EEC\u51B3\u5B9A\u4E0D\u4FEE\u6539\u8FD9\u4E00\u70B9\u3002",working_as_intended:"\u8FD9\u662F\u9884\u671F\u7684\u884C\u4E3A\u3002",none:"\u5DF2\u5173\u95ED\u3002"},others:{few:"\u5305\u62EC\u4F60\u5728\u5185\uFF0C\u6709\u51E0\u4E2A\u4EBA\u53CD\u9988\u4E86\u8FD9\u4E2A\u95EE\u9898",many:"\u5F88\u591A\u4EBA\u53CD\u9988\u4E86\u8FD9\u4E2A\u95EE\u9898"},timeline:{received:"\u4F60\u63D0\u4EA4\u4E86\u53CD\u9988",reviewing:"\u5F00\u53D1\u8005\u6B63\u5728\u67E5\u770B",duplicate_linked:"\u548C\u5DF2\u6709\u53CD\u9988\u76F8\u540C\uFF0C\u6211\u4EEC\u4F1A\u5728\u90A3\u6761\u91CC\u901A\u77E5\u8FDB\u5C55",info_requested:"\u5F00\u53D1\u8005\u7684\u95EE\u9898\uFF1A{text}",reporter_comment:"\u4F60",fix_started:"\u6B63\u5728\u4FEE\u590D",fixed:"\u5DF2\u4FEE\u590D \u2014 \u4E0B\u6B21\u66F4\u65B0\u4E0A\u7EBF",released:"\u5DF2\u5728 v{version} \u53D1\u5E03 \u2014 \u8BF7\u66F4\u65B0",verified:"\u5DF2\u786E\u8BA4\u4FEE\u590D",reopened:"\u5DF2\u91CD\u65B0\u6253\u5F00"},categories:{bug:"\u9519\u8BEF",slow:"\u6162",visual:"\u663E\u793A\u95EE\u9898",confusing:"\u96BE\u4EE5\u7406\u89E3",idea:"\u60F3\u6CD5"},ui:{yes:"\u662F",notYet:"\u8FD8\u6CA1\u6709",empty:"\u8FD8\u6CA1\u6709\u53CD\u9988\u3002\u63D0\u4EA4\u540E\u4F1A\u5728\u8FD9\u91CC\u663E\u793A\u8FDB\u5C55\u3002",loadError:"\u65E0\u6CD5\u52A0\u8F7D\u66F4\u65B0",retry:"\u91CD\u8BD5",sending:"\u53D1\u9001\u4E2D\u2026",sent:"\u5DF2\u53D1\u9001",sendFailed:"\u53D1\u9001\u5931\u8D25",noReplies:"\u5F00\u53D1\u8005\u8FD8\u6CA1\u6709\u56DE\u590D\u3002",you:"\u4F60",developer:"\u5F00\u53D1\u8005",addWords:"\u8BF7\u518D\u591A\u5199\u51E0\u4E2A\u5B57",developerReplied:"\u5F00\u53D1\u8005\u56DE\u590D\uFF1A\u201C{text}\u201D",updates:"\u4F60\u7684\u53CD\u9988\u6709 {n} \u6761\u66F4\u65B0",receipt:"\u5DF2\u53D1\u9001\u3002\u6709\u8FDB\u5C55\u65F6\u4F1A\u5728\u8FD9\u91CC\u901A\u77E5\u4F60\u3002",trackIt:"\u67E5\u770B\u8FDB\u5C55",done:"\u5B8C\u6210",emailOptIn:"\u901A\u8FC7\u90AE\u4EF6\u63A5\u6536\u66F4\u65B0",emailPlaceholder:"you@example.com",emailSubmit:"\u7528\u90AE\u4EF6\u63A5\u6536",emailCheckInbox:"\u8BF7\u70B9\u51FB\u6536\u4EF6\u7BB1\u4E2D\u90AE\u4EF6\u91CC\u7684\u94FE\u63A5\u5B8C\u6210\u786E\u8BA4\u3002",emailInvalid:"\u90AE\u7BB1\u5730\u5740\u683C\u5F0F\u4E0D\u6B63\u786E\u3002",emailFailed:"\u65E0\u6CD5\u8BBE\u7F6E\u90AE\u4EF6\u901A\u77E5\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002",toastReplied:"\u5F00\u53D1\u8005\u56DE\u590D\u4E86\u4F60\u7684\u53CD\u9988",toastFixed:"\u4F60\u53CD\u9988\u7684\u95EE\u9898\u5DF2\u4FEE\u590D",view:"\u67E5\u770B"}},lp={en:ip,ja:op,es:sp,th:ap,zh:up};Ra=new Set(["received","reviewing","reviewing_again","fixing"]);});var Qa={};ft(Qa,{accountView:()=>Kp,assistantView:()=>qp,crossAppView:()=>Vp,detailView:()=>Up,initViews:()=>Dp,leaderboardView:()=>Wp,pickUpdateToast:()=>Pp,renderOptIns:()=>Ja,reportsView:()=>Fp,roadmapView:()=>jp});function Dp(e){({esc:L,btn:he,renderHeader:qe,chipLabel:Ya,skeleton:jt,formatRelativeTime:Er,renderAppIconHtml:Xa}=e);}function Pp(e,t,r){let n=e.filter(c=>(c.unread_count??0)>0&&!Ut(c,t).hidden),i=n.reduce((c,p)=>c+(p.unread_count??0),0);if(!i)return null;if(n.length>1)return {text:br(Ct(t).ui.updates,{n:i}),reportId:null};let o=n[0],s=Ut(o,t),a=s.key==="fixing"||s.canVerify||!o.last_admin_reply_at&&s.key!=="waiting",u=o.title??o.summary??void 0;return {text:a?s.label:r,reportId:o.id,...u?{detail:u}:{}}}function Ja(e){let t=e.locale.panel,r=[];if(e.channels.email&&e.callbacks.onReporterEmailOptIn){let n=e.rc.ui;e.emailState==="saved"?r.push(`<p class="mushi-note" role="status">\u2709 ${L(n.emailCheckInbox)}</p>`):(r.push(`<label class="mushi-check"><input type="checkbox" data-action="email-optin"${e.emailOptInOpen?" checked":""} /> ${L(n.emailOptIn)}</label>`),e.emailOptInOpen&&r.push(`<div class="mushi-inline-form"><input type="email" class="mushi-input" data-role="optin-email" autocomplete="email" aria-label="${L(n.emailOptIn)}" placeholder="${L(n.emailPlaceholder)}" value="${L(e.channels.emailPrefill)}" />${he("save-email",L(n.emailSubmit),"mushi-btn",e.emailState==="saving"?' aria-busy="true"':"")}</div>${e.emailState==="invalid"||e.emailState==="error"?`<p class="mushi-note mushi-error-inline" role="alert">${L(e.emailState==="invalid"?n.emailInvalid:n.emailFailed)}</p>`:""}`));}return e.channels.push&&e.callbacks.onReporterPushSubscribe&&(r.push(e.pushState==="on"?`<p class="mushi-note" role="status">\u{1F514} ${L(t.notifyOn)}</p>`:he("notify-me",`\u{1F514} ${L(t.notifyMe)}`,"mushi-btn",e.pushState==="asking"?' aria-busy="true"':"")),e.pushState==="error"&&r.push(`<p class="mushi-note mushi-error-inline" role="alert">${L(e.rc.ui.sendFailed)}</p>`)),r.length?`<div class="mushi-optins">${r.join("")}</div>`:""}function mi(e,t){return `<span class="mushi-pill mushi-tone-${t}">${L(e)}</span>`}function Za(e){return e.title??e.summary??e.description??`#${e.id.slice(0,8)}`}function $p(e,t){let r=(t??"").toLowerCase();return !r||r==="other"?"":Ya(e,r==="feature_request"?"idea":r)}function Bp(e){let t=r=>Date.parse(r.last_event_at??r.created_at)||0;return [...e].sort((r,n)=>+((n.unread_count??0)>0)-+((r.unread_count??0)>0)||t(n)-t(r))}function Op(e,t){let r=Ut(t,e.lang);if(r.hidden)return "";let n=(t.unread_count??0)>0,i=[$p(e,t.user_category),t.page,r.othersNote].filter(Boolean).map(a=>L(String(a))).join(" \xB7 "),o=t.last_event_preview&&(n||r.key==="waiting")?e.rc.ui.developerReplied.replace("{text}",t.last_event_preview):r.canVerify&&r.key!=="fixed_next"?r.detail:"",s=Za(t);return `<button type="button" class="mushi-report-row${n?" unread":""}" data-report-id="${L(t.id)}" aria-label="${L(`${r.label}: ${s}`)}"><span class="mushi-row-top">${mi(r.label,r.tone)}<span class="mushi-row-title">${L(s)}</span><span class="mushi-row-when">${L(Er(t.last_event_at??t.created_at))}</span></span>${i?`<span class="mushi-row-meta">${i}</span>`:""}${o?`<span class="mushi-row-news">${L(o)}</span>`:""}</button>`}function Fp(e){let t=e.rc,r=Bp(e.reporterReports).map(i=>Op(e,i)).join(""),n=e.reporterError?`<p class="mushi-error-inline" role="alert">${L(t.ui.loadError)} ${he("retry-list",L(t.ui.retry),"mushi-link-btn")}</p>${r}`:r||(e.listLoading?jt(e.locale.flows.reports.loading):`<p class="mushi-empty">${L(t.ui.empty)}</p>`);return {header:qe(e,e.locale.flows.reports.title,true),lead:"",body:`<div class="mushi-report-list">${n}</div>`,footer:""}}function Hp(e,t){let r=e.rc,n=[];if(e.timeline)for(let i of e.timeline){let o=i.kind==="reporter_comment";n.push({kind:i.kind,at:i.at,text:pi(i)?i.body??i.text:_a(i,e.lang),talk:pi(i),mine:o,who:o?r.ui.you:r.ui.developer});}else {t&&n.push({kind:"received",at:t.created_at,text:r.timeline.received});for(let i of e.reporterComments){let o=i.author_kind==="reporter";n.push({kind:o?"reporter_comment":"comment",at:i.created_at,text:i.body,talk:true,mine:o,who:o?r.ui.you:i.author_name??r.ui.developer});}}n.sort((i,o)=>(Date.parse(i.at)||0)-(Date.parse(o.at)||0));for(let i of e.pendingReplies)n.push({kind:"reporter_comment",at:"",text:i.body,who:r.ui.you,talk:true,mine:true,pending:i});return n}function Np(e,t){let r=t.at?`<time datetime="${L(t.at)}">${L(Er(t.at))}</time>`:"";if(!t.talk)return `<li class="mushi-event"><span>${L(t.text)}</span>${r}</li>`;let n=!!t.mine,i=t.pending?t.pending.state==="sending"?`<span class="mushi-bubble-state">${L(e.rc.ui.sending)}</span>`:`<span class="mushi-bubble-state mushi-error-inline">${L(e.rc.ui.sendFailed)} \xB7 ${he("retry-reply",L(e.rc.ui.retry),"mushi-link-btn",` data-value="${t.pending.id}"`)}</span>`:r;return `<li class="mushi-bubble ${n?"mine":"dev"}"><strong>${L(t.who??"")}</strong><p>${L(t.text)}</p>${i}</li>`}function Up(e){let t=e.rc,r=e.reporterReports.find(h=>h.id===e.selectedReportId),n=Ut(r??{status:"new"},e.lang),i=[r?.page,r?.app_version?`v${r.app_version}`:"",r?Er(r.created_at):""].filter(Boolean).map(h=>L(String(h))).join(" \xB7 "),o=`<div class="mushi-thread-summary"><p class="mushi-card-status">${mi(n.label,n.tone)}</p><p class="mushi-note">${L(n.detail)}${n.othersNote?` ${L(n.othersNote)}.`:""}</p><p class="mushi-summary-text">${L(r?r.description??Za(r):`#${(e.selectedReportId??"").slice(0,8)}`)}</p>${r?.screenshot_thumb_url?`<img class="mushi-card-thumb" src="${L(r.screenshot_thumb_url)}" alt="" />`:""}${i?`<p class="mushi-note">${i}</p>`:""}</div>`,s=Hp(e,r),a=s.some(h=>h.talk&&!h.mine),u;e.threadLoading&&s.length<=1&&!e.pendingReplies.length?u=jt(e.locale.flows.thread.loading):u=`${e.threadError?`<p class="mushi-error-inline" role="alert">${L(t.ui.loadError)} ${he("retry-thread",L(t.ui.retry),"mushi-link-btn")}</p>`:""}<ol class="mushi-timeline">${s.map(h=>Np(e,h)).join("")}</ol>${!a&&!e.threadError&&!e.threadLoading?`<p class="mushi-empty">${L(t.ui.noReplies)}</p>`:""}`;let c=e.actionPending?' disabled aria-busy="true"':"",p=n.canVerify?`<div class="mushi-verify" role="group" aria-label="${L(n.detail)}">${he("reporter-confirms",L(t.ui.yes),"mushi-btn",c)}${he("reporter-not-fixed",L(t.ui.notYet),"mushi-btn",c)}</div>`:"";return {header:qe(e,e.locale.panel.reportTitle,true),lead:o,body:`<div class="mushi-thread">${u}</div>${Ja(e)}`,footer:`${p}${e.actionError?`<p class="mushi-error-inline mushi-thread-action-error" role="alert">${L(e.actionError)}</p>`:""}<div class="mushi-thread-composer"><textarea class="mushi-input mushi-reply" data-role="reporter-reply" rows="1" maxlength="2000" placeholder="${L(e.locale.flows.thread.replyPlaceholder)}" aria-label="${L(e.locale.flows.thread.replyPlaceholder)}"></textarea>${he("reporter-reply","\u2191","mushi-submit mushi-send",` aria-label="${L(e.locale.panel.send)}"`)}</div>`}}function qp(e){let t=e.locale.assistant,r=e.callbacks.assistantGreeting||t.defaultGreeting,n=c=>c.length?`<div class="mushi-chips">${c.map(p=>`<button type="button" class="mushi-chip mushi-chip-sm" data-action="assistant-suggest" data-value="${L(p)}">${L(p)}</button>`).join("")}</div>`:"",i=(c,p="mushi-link-btn")=>he("assistant-report",L(c),p),o=e.assistantTurns.length===0?`<p class="mushi-assistant-greeting">${L(r)}</p>${n(e.callbacks.assistantSuggestions??[])}`:e.assistantTurns.map(c=>`<div class="mushi-assistant-msg ${c.role==="user"?"mine":"dev"}">${L(c.text)}</div>${n(c.options??[])}${c.offerReport?i(t.fileReportCta,"mushi-btn"):""}`).join(""),s=e.assistantSending?`<div class="mushi-assistant-msg dev" role="status" aria-live="polite">${L(t.thinking)}</div>`:"",a=e.assistantError?`<p class="mushi-error-inline" role="alert">${L(e.assistantError)} ${i(t.fileReportCta)}</p>`:"",u=e.assistantTurns.length&&!e.assistantSending&&!e.assistantError?i(t.stillStuckCta):"";return {header:qe(e,e.callbacks.assistantLabel||t.defaultLabel,true),lead:"",body:`<div class="mushi-assistant-log">${o}${s}${a}${u}</div>`,footer:`<form class="mushi-thread-composer" data-action="assistant-send"><textarea class="mushi-input mushi-reply mushi-assistant-input" rows="1" placeholder="${L(t.inputPlaceholder)}" aria-label="${L(t.inputPlaceholder)}"${e.assistantSending?" disabled":""}></textarea><button type="submit" class="mushi-submit mushi-send" aria-label="${L(t.sendAriaLabel)}"${e.assistantSending?" disabled":""}>\u2191</button></form>`}}function jp(e){let t=e.locale.flows.roadmap,r=e.featureBoard.map(n=>{let i=String(n.id??""),o=!!n.my_vote,s=n.shipped_at?t.shipped:String(n.status_label??n.status??"open");return `<div class="mushi-report-row mushi-roadmap-row"><span class="mushi-row-top"><span class="mushi-row-title">${L(String(n.subject??t.untitled))}</span></span><span class="mushi-row-meta">${L(s)} \xB7 ${L(t.voteCount.replace("{n}",String(Number(n.vote_count??0))))}</span>${e.callbacks.onFeatureBoardVote?`<button type="button" class="mushi-btn" data-vote-id="${L(i)}" aria-pressed="${o}">${L(o?t.voted:t.vote)}</button>`:""}</div>`}).join("");return {header:qe(e,t.title,true),lead:"",body:`${e.reporterError?`<p class="mushi-error-inline" role="alert">${L(e.reporterError)}</p>`:""}${r||(e.listLoading?jt(t.loading):`<p class="mushi-empty">${L(t.empty)}</p>`)}`,footer:""}}function Wp(e){let t=e.locale.flows.leaderboard,r=e.globalLeaderboard!==null||e.globalLeaderboardLoading,n=r?e.globalLeaderboard??[]:e.leaderboardEntries??[],i=r?e.globalLeaderboardLoading:e.leaderboardLoading,o=n.map((a,u)=>{let c=a.rank||u+1;return `<li class="mushi-lb-row${e.testerReputation&&a.tester_id===e.testerReputation.tester_id?" me":""}"><span>#${c}</span><span class="mushi-row-title">${L(a.public_handle??a.display_name??t.anon)}</span><span>${(a.points_30d??a.total_points).toLocaleString()} pts</span></li>`}).join(""),s=e.testerReputation?.rank;return {header:qe(e,t.title,true),lead:"",body:`${i?jt(t.loading):""}${!i&&!n.length?`<p class="mushi-empty">${L(t.empty)}</p>`:""}<ol class="mushi-lb">${o}</ol>${s?`<p class="mushi-note">${L(t.myRank.replace("{rank}",String(s)))}</p>`:e.testerJwt?"":he("open-account",L(t.signInPrompt),"mushi-link-btn")}<p class="mushi-note">${L(t.footer)}</p>`,footer:""}}function Kp(e){let t=e.locale.flows.account,r=e.testerInfo;if(r){let n=r.public_handle??r.display_name??e.locale.flows.leaderboard.anon,i=e.testerReputation,o=i?t.rankSummary.replace("{rank}",String(i.rank??"\u2014")).replace("{points}",(i.points_30d??0).toLocaleString()):"";return {header:qe(e,t.title,true),lead:"",body:`<div class="mushi-thread-summary"><p class="mushi-summary-text">${L(n)}</p>${o?`<p class="mushi-note">${L(o)}</p>`:""}</div>${he("open-cross-app-reports",L(t.crossAppReports),"mushi-menu-item")}${he("open-global-leaderboard",L(t.viewLeaderboard),"mushi-menu-item")}${he("sign-out-tester",L(t.signOut),"mushi-link-btn")}`,footer:""}}return e.magicLinkSent?{header:qe(e,t.checkEmailTitle,true),lead:"",body:`<p class="mushi-note">${L(t.magicLinkSent.replace("{email}",e.magicLinkEmail))}</p>${he("resend-magic-link",L(t.resendEmail),"mushi-link-btn")}${e.magicLinkError?`<p class="mushi-error-inline" role="alert">${L(e.magicLinkError)}</p>`:""}`,footer:""}:{header:qe(e,t.joinTitle,true),lead:"",body:`<p class="mushi-note">${L(t.signInPrompt)}</p><input type="email" class="mushi-input" data-role="magic-link-email" aria-label="${L(t.emailLabel)}" placeholder="${L(t.emailPlaceholder)}" autocomplete="email" value="${L(e.magicLinkEmail)}" />${e.magicLinkError?`<p class="mushi-error-inline" role="alert">${L(e.magicLinkError)}</p>`:""}`,footer:`<span></span>${he("send-magic-link",L(e.magicLinkSending?t.sending:t.sendLink),"mushi-submit",e.magicLinkSending?' aria-busy="true"':"")}`}}function Vp(e){let t=e.locale.flows.crossApp,r=e.crossAppReports??[],n=new Map;for(let o of r){let s=o.project_id??"unknown";n.has(s)||n.set(s,{name:o.app_name??t.unknownApp,slug:o.app_slug??null,domain:o.app_domain??null,reports:[]}),n.get(s).reports.push(o);}let i=[...n.entries()].map(([o,s])=>`<section class="mushi-xapp-group"><h3 class="mushi-xapp-app-name">${Xa({projectId:o,appName:s.name,appSlug:s.slug,appDomain:s.domain})} ${L(s.name)}</h3>${s.reports.map(a=>{let u=Ut(a,e.lang);return `<div class="mushi-report-row"><span class="mushi-row-top">${mi(u.label,u.tone)}<span class="mushi-row-title">${L(a.title??`#${a.short_id??a.id.slice(0,8)}`)}</span><span class="mushi-row-when">${L(Er(a.created_at))}</span></span></div>`}).join("")}</section>`).join("");return {header:qe(e,t.title,true),lead:"",body:`${e.crossAppLoading?jt(t.loading):""}${!e.crossAppLoading&&!r.length?`<p class="mushi-empty">${L(t.empty)}</p>`:""}${i}`,footer:""}}var L,he,qe,Ya,jt,Er,Xa,eu=Me(()=>{sn();});var $u={};ft($u,{captureDomScreenshot:()=>Ch});async function Ch(e,t){let r=document.createElement("canvas"),n=r.getContext("2d",{willReadFrequently:true});if(!n)return t("unsupported"),null;let i=window.innerWidth,o=window.innerHeight,s=Math.min(window.devicePixelRatio||1,2);r.width=i*s,r.height=o*s,n.scale(s,s);let a=await Lh(e),u=new XMLSerializer().serializeToString(a).replace(Th,""),c=`
1
+ (function(){'use strict';var Rl=Object.defineProperty;var xe=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(n){throw r=[n],n}};var ft=(e,t)=>{for(var r in t)Rl(e,r,{get:t[r],enumerable:true});};function _l(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"&&"BYTES_PER_ELEMENT"in e&&e.BYTES_PER_ELEMENT===1}function wo(e,t=""){if(typeof e!="number"){let r=t&&`"${t}" `;throw new TypeError(`${r}expected number, got ${typeof e}`)}if(!Number.isSafeInteger(e)||e<0){let r=t&&`"${t}" `;throw new RangeError(`${r}expected integer >= 0, got ${e}`)}}function tr(e,t,r=""){let n=_l(e),i=e?.length,o=t!==void 0;if(!n||o){let s=r&&`"${r}" `,a="",u=n?`length=${i}`:`type=${typeof e}`,c=s+"expected Uint8Array"+a+", got "+u;throw n?new RangeError(c):new TypeError(c)}return e}function So(e){if(typeof e!="function"||typeof e.create!="function")throw new TypeError("Hash must wrapped by utils.createHasher");if(wo(e.outputLen),wo(e.blockLen),e.outputLen<1)throw new Error('"outputLen" must be >= 1');if(e.blockLen<1)throw new Error('"blockLen" must be >= 1')}function Lt(e,t=true){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Lr(e,t){tr(e,void 0,"digestInto() output");let r=t.outputLen;if(e.length<r)throw new RangeError('"digestInto() output" expected to be of length >='+r)}function Ge(...e){for(let t=0;t<e.length;t++)e[t].fill(0);}function Dr(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Oe(e,t){return e<<32-t|e>>>t}function mt(e,t={}){let r=(i,o)=>e(o).update(i).digest(),n=e(void 0);return r.outputLen=n.outputLen,r.blockLen=n.blockLen,r.canXOF=n.canXOF,r.create=i=>e(i),Object.assign(r,t),Object.freeze(r)}var gt,Pr=xe(()=>{"use strict";gt=e=>({oid:Uint8Array.from([6,9,96,134,72,1,101,3,4,2,e])});});function xo(e,t,r){return e&t^~e&r}function ko(e,t,r){return e&t^e&r^t&r}var rr,Ye,Xe,oe,se,Ro=xe(()=>{"use strict";Pr();rr=class{blockLen;outputLen;canXOF=!1;padOffset;isLE;buffer;view;finished=!1;length=0;pos=0;destroyed=!1;constructor(t,r,n,i){this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=i,this.buffer=new Uint8Array(t),this.view=Dr(this.buffer);}update(t){Lt(this),tr(t);let{view:r,buffer:n,blockLen:i}=this,o=t.length;for(let s=0;s<o;){let a=Math.min(i-this.pos,o-s);if(a===i){let u=Dr(t);for(;i<=o-s;s+=i)this.process(u,s);continue}n.set(t.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===i&&(this.process(r,0),this.pos=0);}return this.length+=t.length,this.roundClean(),this}digestInto(t){Lt(this),Lr(t,this),this.finished=!0;let{buffer:r,view:n,blockLen:i,isLE:o}=this,{pos:s}=this;r[s++]=128,Ge(this.buffer.subarray(s)),this.padOffset>i-s&&(this.process(n,0),s=0);for(let h=s;h<i;h++)r[h]=0;n.setBigUint64(i-8,BigInt(this.length*8),o),this.process(n,0);let a=Dr(t),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen must be aligned to 32bit");let c=u/4,p=this.get();if(c>p.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<c;h++)a.setUint32(4*h,p[h],o);}digest(){let{buffer:t,outputLen:r}=this;this.digestInto(t);let n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||=new this.constructor,t.set(...this.get());let{blockLen:r,buffer:n,length:i,finished:o,destroyed:s,pos:a}=this;return t.destroyed=s,t.finished=o,t.length=i,t.pos=a,i%r&&t.buffer.set(n),t}clone(){return this._cloneInto()}},Ye=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Xe=Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),oe=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 Cl(e,t=false){return t?{h:Number(e&$r),l:Number(e>>_o&$r)}:{h:Number(e>>_o&$r)|0,l:Number(e&$r)|0}}function Co(e,t=false){let r=e.length,n=new Uint32Array(r),i=new Uint32Array(r);for(let o=0;o<r;o++){let{h:s,l:a}=Cl(e[o],t);[n[o],i[o]]=[s,a];}return [n,i]}function Ne(e,t,r,n){let i=(t>>>0)+(n>>>0);return {h:e+r+(i/2**32|0)|0,l:i|0}}var $r,_o,Ln,Dn,bt,Et,nr,ir,To,Ao,Io,Mo,Lo,Do,Po=xe(()=>{"use strict";$r=BigInt(4294967295),_o=BigInt(32);Ln=(e,t,r)=>e>>>r,Dn=(e,t,r)=>e<<32-r|t>>>r,bt=(e,t,r)=>e>>>r|t<<32-r,Et=(e,t,r)=>e<<32-r|t>>>r,nr=(e,t,r)=>e<<64-r|t>>>r-32,ir=(e,t,r)=>e>>>r-32|t<<64-r;To=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),Ao=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,Io=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),Mo=(e,t,r,n,i)=>t+r+n+i+(e/2**32|0)|0,Lo=(e,t,r,n,i)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(i>>>0),Do=(e,t,r,n,i,o)=>t+r+n+i+o+(e/2**32|0)|0;});var Pn={};ft(Pn,{_SHA224:()=>Fr,_SHA256:()=>Or,_SHA384:()=>Nr,_SHA512:()=>Hr,_SHA512_224:()=>Ur,_SHA512_256:()=>qr,sha224:()=>Dl,sha256:()=>Ll,sha384:()=>$l,sha512:()=>Pl,sha512_224:()=>Ol,sha512_256:()=>Bl});var Al,ot,Br,Or,Fr,$o,Il,Ml,st,at,Dt,Hr,Nr,ue,le,Ur,qr,Ll,Dl,Pl,$l,Bl,Ol,$n=xe(()=>{"use strict";Ro();Po();Pr();Al=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]),ot=new Uint32Array(64),Br=class extends rr{constructor(t){super(64,t,8,!1);}get(){let{A:t,B:r,C:n,D:i,E:o,F:s,G:a,H:u}=this;return [t,r,n,i,o,s,a,u]}set(t,r,n,i,o,s,a,u){this.A=t|0,this.B=r|0,this.C=n|0,this.D=i|0,this.E=o|0,this.F=s|0,this.G=a|0,this.H=u|0;}process(t,r){for(let h=0;h<16;h++,r+=4)ot[h]=t.getUint32(r,!1);for(let h=16;h<64;h++){let b=ot[h-15],A=ot[h-2],T=Oe(b,7)^Oe(b,18)^b>>>3,E=Oe(A,17)^Oe(A,19)^A>>>10;ot[h]=E+ot[h-7]+T+ot[h-16]|0;}let{A:n,B:i,C:o,D:s,E:a,F:u,G:c,H:p}=this;for(let h=0;h<64;h++){let b=Oe(a,6)^Oe(a,11)^Oe(a,25),A=p+b+xo(a,u,c)+Al[h]+ot[h]|0,E=(Oe(n,2)^Oe(n,13)^Oe(n,22))+ko(n,i,o)|0;p=c,c=u,u=a,a=s+A|0,s=o,o=i,i=n,n=A+E|0;}n=n+this.A|0,i=i+this.B|0,o=o+this.C|0,s=s+this.D|0,a=a+this.E|0,u=u+this.F|0,c=c+this.G|0,p=p+this.H|0,this.set(n,i,o,s,a,u,c,p);}roundClean(){Ge(ot);}destroy(){this.destroyed=!0,this.set(0,0,0,0,0,0,0,0),Ge(this.buffer);}},Or=class extends Br{A=Ye[0]|0;B=Ye[1]|0;C=Ye[2]|0;D=Ye[3]|0;E=Ye[4]|0;F=Ye[5]|0;G=Ye[6]|0;H=Ye[7]|0;constructor(){super(32);}},Fr=class extends Br{A=Xe[0]|0;B=Xe[1]|0;C=Xe[2]|0;D=Xe[3]|0;E=Xe[4]|0;F=Xe[5]|0;G=Xe[6]|0;H=Xe[7]|0;constructor(){super(28);}},$o=Co(["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(e=>BigInt(e))),Il=$o[0],Ml=$o[1],st=new Uint32Array(80),at=new Uint32Array(80),Dt=class extends rr{constructor(t){super(128,t,16,!1);}get(){let{Ah:t,Al:r,Bh:n,Bl:i,Ch:o,Cl:s,Dh:a,Dl:u,Eh:c,El:p,Fh:h,Fl:b,Gh:A,Gl:T,Hh:E,Hl:y}=this;return [t,r,n,i,o,s,a,u,c,p,h,b,A,T,E,y]}set(t,r,n,i,o,s,a,u,c,p,h,b,A,T,E,y){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=i|0,this.Ch=o|0,this.Cl=s|0,this.Dh=a|0,this.Dl=u|0,this.Eh=c|0,this.El=p|0,this.Fh=h|0,this.Fl=b|0,this.Gh=A|0,this.Gl=T|0,this.Hh=E|0,this.Hl=y|0;}process(t,r){for(let v=0;v<16;v++,r+=4)st[v]=t.getUint32(r),at[v]=t.getUint32(r+=4);for(let v=16;v<80;v++){let C=st[v-15]|0,_=at[v-15]|0,g=bt(C,_,1)^bt(C,_,8)^Ln(C,_,7),f=Et(C,_,1)^Et(C,_,8)^Dn(C,_,7),m=st[v-2]|0,S=at[v-2]|0,B=bt(m,S,19)^nr(m,S,61)^Ln(m,S,6),j=Et(m,S,19)^ir(m,S,61)^Dn(m,S,6),N=Io(f,j,at[v-7],at[v-16]),Z=Mo(N,g,B,st[v-7],st[v-16]);st[v]=Z|0,at[v]=N|0;}let{Ah:n,Al:i,Bh:o,Bl:s,Ch:a,Cl:u,Dh:c,Dl:p,Eh:h,El:b,Fh:A,Fl:T,Gh:E,Gl:y,Hh:x,Hl:k}=this;for(let v=0;v<80;v++){let C=bt(h,b,14)^bt(h,b,18)^nr(h,b,41),_=Et(h,b,14)^Et(h,b,18)^ir(h,b,41),g=h&A^~h&E,f=b&T^~b&y,m=Lo(k,_,f,Ml[v],at[v]),S=Do(m,x,C,g,Il[v],st[v]),B=m|0,j=bt(n,i,28)^nr(n,i,34)^nr(n,i,39),N=Et(n,i,28)^ir(n,i,34)^ir(n,i,39),Z=n&o^n&a^o&a,ee=i&s^i&u^s&u;x=E|0,k=y|0,E=A|0,y=T|0,A=h|0,T=b|0,{h,l:b}=Ne(c|0,p|0,S|0,B|0),c=a|0,p=u|0,a=o|0,u=s|0,o=n|0,s=i|0;let we=To(B,N,ee);n=Ao(we,S,j,Z),i=we|0;}(({h:n,l:i}=Ne(this.Ah|0,this.Al|0,n|0,i|0))),{h:o,l:s}=Ne(this.Bh|0,this.Bl|0,o|0,s|0),{h:a,l:u}=Ne(this.Ch|0,this.Cl|0,a|0,u|0),{h:c,l:p}=Ne(this.Dh|0,this.Dl|0,c|0,p|0),{h,l:b}=Ne(this.Eh|0,this.El|0,h|0,b|0),{h:A,l:T}=Ne(this.Fh|0,this.Fl|0,A|0,T|0),{h:E,l:y}=Ne(this.Gh|0,this.Gl|0,E|0,y|0),{h:x,l:k}=Ne(this.Hh|0,this.Hl|0,x|0,k|0),this.set(n,i,o,s,a,u,c,p,h,b,A,T,E,y,x,k);}roundClean(){Ge(st,at);}destroy(){this.destroyed=!0,Ge(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);}},Hr=class extends Dt{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);}},Nr=class extends Dt{Ah=oe[0]|0;Al=oe[1]|0;Bh=oe[2]|0;Bl=oe[3]|0;Ch=oe[4]|0;Cl=oe[5]|0;Dh=oe[6]|0;Dl=oe[7]|0;Eh=oe[8]|0;El=oe[9]|0;Fh=oe[10]|0;Fl=oe[11]|0;Gh=oe[12]|0;Gl=oe[13]|0;Hh=oe[14]|0;Hl=oe[15]|0;constructor(){super(48);}},ue=Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),le=Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]),Ur=class extends Dt{Ah=ue[0]|0;Al=ue[1]|0;Bh=ue[2]|0;Bl=ue[3]|0;Ch=ue[4]|0;Cl=ue[5]|0;Dh=ue[6]|0;Dl=ue[7]|0;Eh=ue[8]|0;El=ue[9]|0;Fh=ue[10]|0;Fl=ue[11]|0;Gh=ue[12]|0;Gl=ue[13]|0;Hh=ue[14]|0;Hl=ue[15]|0;constructor(){super(28);}},qr=class extends Dt{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(32);}},Ll=mt(()=>new Or,gt(1)),Dl=mt(()=>new Fr,gt(4)),Pl=mt(()=>new Hr,gt(3)),$l=mt(()=>new Nr,gt(2)),Bl=mt(()=>new qr,gt(6)),Ol=mt(()=>new Ur,gt(5));});var Bo={};ft(Bo,{_HMAC:()=>or,hmac:()=>Fl});var or,Fl,Oo=xe(()=>{"use strict";Pr();or=class{oHash;iHash;blockLen;outputLen;canXOF=!1;finished=!1;destroyed=!1;constructor(t,r){if(So(t),tr(r,void 0,"key"),this.iHash=t.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,i=new Uint8Array(n);i.set(r.length>n?t.create().update(r).digest():r);for(let o=0;o<i.length;o++)i[o]^=54;this.iHash.update(i),this.oHash=t.create();for(let o=0;o<i.length;o++)i[o]^=106;this.oHash.update(i),Ge(i);}update(t){return Lt(this),this.iHash.update(t),this}digestInto(t){Lt(this),Lr(t,this),this.finished=!0;let r=t.subarray(0,this.outputLen);this.iHash.digestInto(r),this.oHash.update(r),this.oHash.digestInto(r),this.destroy();}digest(){let t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||=Object.create(Object.getPrototypeOf(this),{});let{oHash:r,iHash:n,finished:i,destroyed:o,blockLen:s,outputLen:a}=this;return t=t,t.finished=i,t.destroyed=o,t.blockLen=s,t.outputLen=a,t.oHash=r._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy();}},Fl=(()=>{let e=((t,r,n)=>new or(t,r).update(n).digest());return e.create=(t,r)=>new or(t,r),e})();});function yp(e){let t=(e??"").toLowerCase().split(/[-_]/)[0];return lp.includes(t)?t:"en"}function Ct(e="en"){return Ep[yp(e)]}function br(e,t={}){return e.replace(/\{(\w+)\}/g,(r,n)=>{let i=t[n];return i==null?"":String(i)})}function vp(e){return up.includes(e)}function wp(e){let t=(e.user_category??"").trim().toLowerCase().replace(/[\s-]+/g,"_");return t==="feature"||t==="feature_request"||t==="idea"}function Tt(e,t="en"){let r=Ct(t),n=(e.status??"").trim(),i=vp(n)?cp[n]:"received",o=e.fixed_in_version?.trim()||null;(n==="fixed"||n==="resolved")&&o&&(i="fixed_version"),(e.awaiting_reporter||e.awaiting_reporter_at)&&Aa.has(i)&&(i="waiting");let a=wp(e),u=r.status[i],c=r.detail[i];a&&(i==="received"?u=r.idea.received:i==="reviewing"||i==="reviewing_again"?u=r.idea.reviewing:i==="fixing"?u=r.idea.fixing:i==="fixed_version"?u=r.idea.shippedVersion:(i==="fixed_next"||i==="fixed")&&(u=r.idea.shipped));let p=e.closed_reason??null;i==="closed"&&(c=p&&p!=="spam"&&p in r.closedReason?r.closedReason[p]:r.closedReason.none);let h=e.group_bucket??"none",b=Aa.has(i)||i==="waiting"?h==="few"?r.others.few:h==="many"?r.others.many:null:null;return {key:i,label:br(u,{version:o}),tone:dp[i],detail:br(c,{version:o}),canVerify:i==="fixed_next"||i==="fixed_version"||i==="fixed",othersNote:b,hidden:i==="closed"&&p==="spam"}}function Sp(e,t={},r="en"){let n=Ct(r);if(e==="comment")return t.text??"";if(e==="closed"){let i=t.closed_reason??"";return i&&i!=="spam"&&i in n.closedReason?n.closedReason[i]:n.closedReason.none}return e==="reporter_comment"?t.text??n.timeline.reporter_comment:br(n.timeline[e],{text:t.text,version:t.version})}function hi(e){return e.kind==="comment"||e.kind==="reporter_comment"||e.kind==="info_requested"}function Ia(e,t="en"){return e.custom||!pp.includes(e.kind)?e.text:Sp(e.kind,{text:e.body??null,version:e.version??null,closed_reason:e.closed_reason??null},t)}function Ma(e,t="en"){let r=Ct(t).ui,n=e.unread_total===1?e.latest[0]?.kind:null;return n==="comment"||n==="info_requested"?r.toastReplied:n==="fixed"||n==="released"?r.toastFixed:r.updates.replace("{n}",String(e.unread_total))}function La(e){return /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(e.trim())}var up,lp,cp,dp,pp,hp,fp,mp,gp,bp,Ep,Aa,Qm,un=xe(()=>{"use strict";up=["new","pending","submitted","queued","classified","grouped","fixing","fixed","dismissed","triaged","in_progress","resolved","verified","reopened"],lp=["en","ja","es","th","zh"],cp={new:"received",pending:"received",submitted:"received",queued:"received",classified:"reviewing",triaged:"reviewing",grouped:"reviewing",reopened:"reviewing_again",fixing:"fixing",in_progress:"fixing",verified:"verified",fixed:"fixed_next",resolved:"fixed",dismissed:"closed"},dp={received:"neutral",reviewing:"info",reviewing_again:"info",fixing:"progress",verified:"success-muted",fixed_next:"success",fixed_version:"success",fixed:"success",closed:"muted",waiting:"attention"},pp=["received","reviewing","duplicate_linked","info_requested","comment","reporter_comment","fix_started","fixed","released","verified","reopened","closed"],hp={status:{received:"Received",reviewing:"Looking into it",reviewing_again:"Looking into it again",fixing:"Fix in progress",verified:"Confirmed fixed",fixed_next:"Fixed \u2014 coming in the next update",fixed_version:"Fixed in v{version}",fixed:"Fixed",closed:"Closed",waiting:"Waiting on you"},detail:{received:"We got it.",reviewing:"The developer has it on their list.",reviewing_again:"Thanks \u2014 we reopened it.",fixing:"A fix is being worked on.",verified:"You confirmed the fix. Thank you!",fixed_next:"It ships in the next release.",fixed_version:"Update to v{version}. Does it work for you now?",fixed:"Does it work for you now?",closed:"Closed.",waiting:"The developer asked a question \u2014 reply below."},idea:{received:"Thanks for the idea",reviewing:"Under consideration",fixing:"Being built",shipped:"Shipped",shippedVersion:"Shipped in v{version}"},closedReason:{duplicate:"Same as an earlier report \u2014 we'll update you there.",not_reproducible:"We couldn't reproduce it. Reply if it happens again.",wont_fix:"We decided not to change this.",working_as_intended:"This is expected behaviour.",none:"Closed."},others:{few:"You and a few others reported this",many:"Many people reported this"},timeline:{received:"You reported this",reviewing:"The developer is looking into it",duplicate_linked:"Same as an existing report \u2014 we'll update you there",info_requested:"The developer asked: {text}",reporter_comment:"You",fix_started:"A fix is in progress",fixed:"Fixed \u2014 coming in the next update",released:"Shipped in v{version} \u2014 update to get it",verified:"You confirmed it's fixed",reopened:"Reopened"},categories:{bug:"Bug",slow:"Slow",visual:"Looks wrong",confusing:"Confusing",idea:"Idea"},ui:{yes:"Yes",notYet:"Not yet",empty:"Nothing yet \u2014 your reports will show up here with updates.",loadError:"Couldn't load updates",retry:"Retry",sending:"Sending\u2026",sent:"Sent",sendFailed:"Failed",noReplies:"No developer replies yet.",you:"You",developer:"Developer",addWords:"Add a few words",developerReplied:"Developer replied: \u201C{text}\u201D",updates:"{n} updates on your reports",receipt:"Sent. We'll let you know here when there's news.",trackIt:"Track it",done:"Done",emailOptIn:"Get updates by email",emailPlaceholder:"you@example.com",emailSubmit:"Email me updates",emailCheckInbox:"Check your inbox and tap the link to confirm.",emailInvalid:"That does not look like an email address.",emailFailed:"Couldn't set up email updates. Try again later.",toastReplied:"The developer replied to your report",toastFixed:"Your bug is fixed",view:"View"}},fp={status:{received:"\u53D7\u3051\u4ED8\u3051\u307E\u3057\u305F",reviewing:"\u78BA\u8A8D\u4E2D",reviewing_again:"\u518D\u78BA\u8A8D\u4E2D",fixing:"\u4FEE\u6B63\u4E2D",verified:"\u4FEE\u6B63\u3092\u78BA\u8A8D\u6E08\u307F",fixed_next:"\u4FEE\u6B63\u6E08\u307F \u2014 \u6B21\u306E\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3067\u53CD\u6620",fixed_version:"v{version} \u3067\u4FEE\u6B63\u6E08\u307F",fixed:"\u4FEE\u6B63\u6E08\u307F",closed:"\u7D42\u4E86",waiting:"\u3042\u306A\u305F\u306E\u8FD4\u4FE1\u5F85\u3061"},detail:{received:"\u5831\u544A\u3092\u53D7\u3051\u53D6\u308A\u307E\u3057\u305F\u3002",reviewing:"\u958B\u767A\u8005\u304C\u5BFE\u5FDC\u30EA\u30B9\u30C8\u306B\u5165\u308C\u307E\u3057\u305F\u3002",reviewing_again:"\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059\u3002\u518D\u5EA6\u78BA\u8A8D\u3057\u3066\u3044\u307E\u3059\u3002",fixing:"\u4FEE\u6B63\u306B\u53D6\u308A\u7D44\u3093\u3067\u3044\u307E\u3059\u3002",verified:"\u4FEE\u6B63\u3092\u78BA\u8A8D\u3044\u305F\u3060\u304D\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059\uFF01",fixed_next:"\u6B21\u306E\u30EA\u30EA\u30FC\u30B9\u3067\u53CD\u6620\u3055\u308C\u307E\u3059\u3002",fixed_version:"v{version} \u306B\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u89E3\u6C7A\u3057\u307E\u3057\u305F\u304B\uFF1F",fixed:"\u89E3\u6C7A\u3057\u307E\u3057\u305F\u304B\uFF1F",closed:"\u7D42\u4E86\u3057\u307E\u3057\u305F\u3002",waiting:"\u958B\u767A\u8005\u304B\u3089\u8CEA\u554F\u304C\u3042\u308A\u307E\u3059\u3002\u4E0B\u304B\u3089\u8FD4\u4FE1\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},idea:{received:"\u30A2\u30A4\u30C7\u30A2\u3092\u3042\u308A\u304C\u3068\u3046\u3054\u3056\u3044\u307E\u3059",reviewing:"\u691C\u8A0E\u4E2D",fixing:"\u958B\u767A\u4E2D",shipped:"\u30EA\u30EA\u30FC\u30B9\u6E08\u307F",shippedVersion:"v{version} \u3067\u30EA\u30EA\u30FC\u30B9\u6E08\u307F"},closedReason:{duplicate:"\u4EE5\u524D\u306E\u5831\u544A\u3068\u540C\u3058\u5185\u5BB9\u3067\u3059\u3002\u305D\u3061\u3089\u3067\u9032\u6357\u3092\u304A\u77E5\u3089\u305B\u3057\u307E\u3059\u3002",not_reproducible:"\u518D\u73FE\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u518D\u767A\u3057\u305F\u3089\u8FD4\u4FE1\u3057\u3066\u304F\u3060\u3055\u3044\u3002",wont_fix:"\u3053\u306E\u70B9\u306F\u5909\u66F4\u3057\u306A\u3044\u3053\u3068\u306B\u3057\u307E\u3057\u305F\u3002",working_as_intended:"\u3053\u308C\u306F\u60F3\u5B9A\u3069\u304A\u308A\u306E\u52D5\u4F5C\u3067\u3059\u3002",none:"\u7D42\u4E86\u3057\u307E\u3057\u305F\u3002"},others:{few:"\u3042\u306A\u305F\u3092\u542B\u3081\u6570\u4EBA\u304C\u5831\u544A\u3057\u3066\u3044\u307E\u3059",many:"\u591A\u304F\u306E\u4EBA\u304C\u5831\u544A\u3057\u3066\u3044\u307E\u3059"},timeline:{received:"\u3042\u306A\u305F\u304C\u5831\u544A\u3057\u307E\u3057\u305F",reviewing:"\u958B\u767A\u8005\u304C\u78BA\u8A8D\u3057\u3066\u3044\u307E\u3059",duplicate_linked:"\u65E2\u5B58\u306E\u5831\u544A\u3068\u540C\u3058\u5185\u5BB9\u3067\u3059\u3002\u305D\u3061\u3089\u3067\u9032\u6357\u3092\u304A\u77E5\u3089\u305B\u3057\u307E\u3059",info_requested:"\u958B\u767A\u8005\u304B\u3089\u306E\u8CEA\u554F: {text}",reporter_comment:"\u3042\u306A\u305F",fix_started:"\u4FEE\u6B63\u4E2D\u3067\u3059",fixed:"\u4FEE\u6B63\u6E08\u307F \u2014 \u6B21\u306E\u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3067\u53CD\u6620",released:"v{version} \u3067\u30EA\u30EA\u30FC\u30B9 \u2014 \u30A2\u30C3\u30D7\u30C7\u30FC\u30C8\u3057\u3066\u304F\u3060\u3055\u3044",verified:"\u4FEE\u6B63\u3092\u78BA\u8A8D\u3057\u307E\u3057\u305F",reopened:"\u518D\u30AA\u30FC\u30D7\u30F3\u3057\u307E\u3057\u305F"},categories:{bug:"\u30D0\u30B0",slow:"\u9045\u3044",visual:"\u8868\u793A\u304C\u304A\u304B\u3057\u3044",confusing:"\u308F\u304B\u308A\u306B\u304F\u3044",idea:"\u30A2\u30A4\u30C7\u30A2"},ui:{yes:"\u306F\u3044",notYet:"\u307E\u3060",empty:"\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002\u5831\u544A\u3059\u308B\u3068\u3053\u3053\u306B\u9032\u6357\u304C\u8868\u793A\u3055\u308C\u307E\u3059\u3002",loadError:"\u66F4\u65B0\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F",retry:"\u518D\u8A66\u884C",sending:"\u9001\u4FE1\u4E2D\u2026",sent:"\u9001\u4FE1\u3057\u307E\u3057\u305F",sendFailed:"\u9001\u4FE1\u5931\u6557",noReplies:"\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1\u306F\u307E\u3060\u3042\u308A\u307E\u305B\u3093\u3002",you:"\u3042\u306A\u305F",developer:"\u958B\u767A\u8005",addWords:"\u3082\u3046\u5C11\u3057\u8A73\u3057\u304F\u66F8\u3044\u3066\u304F\u3060\u3055\u3044",developerReplied:"\u958B\u767A\u8005\u304B\u3089\u306E\u8FD4\u4FE1:\u300C{text}\u300D",updates:"\u3042\u306A\u305F\u306E\u5831\u544A\u306B {n} \u4EF6\u306E\u66F4\u65B0\u304C\u3042\u308A\u307E\u3059",receipt:"\u9001\u4FE1\u3057\u307E\u3057\u305F\u3002\u9032\u5C55\u304C\u3042\u308C\u3070\u3053\u3053\u3067\u304A\u77E5\u3089\u305B\u3057\u307E\u3059\u3002",trackIt:"\u7D4C\u904E\u3092\u898B\u308B",done:"\u9589\u3058\u308B",emailOptIn:"\u30E1\u30FC\u30EB\u3067\u66F4\u65B0\u3092\u53D7\u3051\u53D6\u308B",emailPlaceholder:"you@example.com",emailSubmit:"\u30E1\u30FC\u30EB\u3067\u53D7\u3051\u53D6\u308B",emailCheckInbox:"\u53D7\u4FE1\u30C8\u30EC\u30A4\u306E\u30E1\u30FC\u30EB\u306E\u30EA\u30F3\u30AF\u3092\u30BF\u30C3\u30D7\u3057\u3066\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",emailInvalid:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9\u306E\u5F62\u5F0F\u304C\u6B63\u3057\u304F\u3042\u308A\u307E\u305B\u3093\u3002",emailFailed:"\u30E1\u30FC\u30EB\u901A\u77E5\u3092\u8A2D\u5B9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u5F8C\u3067\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",toastReplied:"\u958B\u767A\u8005\u304C\u3042\u306A\u305F\u306E\u5831\u544A\u306B\u8FD4\u4FE1\u3057\u307E\u3057\u305F",toastFixed:"\u3042\u306A\u305F\u304C\u5831\u544A\u3057\u305F\u4E0D\u5177\u5408\u304C\u4FEE\u6B63\u3055\u308C\u307E\u3057\u305F",view:"\u898B\u308B"}},mp={status:{received:"Recibido",reviewing:"Lo estamos revisando",reviewing_again:"Lo revisamos de nuevo",fixing:"Correcci\xF3n en curso",verified:"Correcci\xF3n confirmada",fixed_next:"Corregido \u2014 llega en la pr\xF3xima actualizaci\xF3n",fixed_version:"Corregido en v{version}",fixed:"Corregido",closed:"Cerrado",waiting:"Esperando tu respuesta"},detail:{received:"Lo recibimos.",reviewing:"El desarrollador lo tiene en su lista.",reviewing_again:"Gracias, lo reabrimos.",fixing:"Se est\xE1 trabajando en una correcci\xF3n.",verified:"Confirmaste la correcci\xF3n. \xA1Gracias!",fixed_next:"Llega en la pr\xF3xima versi\xF3n.",fixed_version:"Actualiza a v{version}. \xBFYa funciona?",fixed:"\xBFYa funciona?",closed:"Cerrado.",waiting:"El desarrollador hizo una pregunta: responde abajo."},idea:{received:"Gracias por la idea",reviewing:"En consideraci\xF3n",fixing:"En desarrollo",shipped:"Publicado",shippedVersion:"Publicado en v{version}"},closedReason:{duplicate:"Es igual a un reporte anterior; te avisaremos all\xED.",not_reproducible:"No pudimos reproducirlo. Responde si vuelve a pasar.",wont_fix:"Decidimos no cambiar esto.",working_as_intended:"Este es el comportamiento esperado.",none:"Cerrado."},others:{few:"T\xFA y algunas personas m\xE1s reportaron esto",many:"Muchas personas reportaron esto"},timeline:{received:"Reportaste esto",reviewing:"El desarrollador lo est\xE1 revisando",duplicate_linked:"Es igual a un reporte existente; te avisaremos all\xED",info_requested:"El desarrollador pregunt\xF3: {text}",reporter_comment:"T\xFA",fix_started:"Hay una correcci\xF3n en curso",fixed:"Corregido \u2014 llega en la pr\xF3xima actualizaci\xF3n",released:"Publicado en v{version}: actualiza para tenerlo",verified:"Confirmaste que est\xE1 corregido",reopened:"Reabierto"},categories:{bug:"Error",slow:"Lento",visual:"Se ve mal",confusing:"Confuso",idea:"Idea"},ui:{yes:"S\xED",notYet:"Todav\xEDa no",empty:"Nada todav\xEDa: tus reportes aparecer\xE1n aqu\xED con novedades.",loadError:"No se pudieron cargar las novedades",retry:"Reintentar",sending:"Enviando\u2026",sent:"Enviado",sendFailed:"Error al enviar",noReplies:"El desarrollador a\xFAn no ha respondido.",you:"T\xFA",developer:"Desarrollador",addWords:"Agrega algunas palabras",developerReplied:"El desarrollador respondi\xF3: \u201C{text}\u201D",updates:"{n} novedades en tus reportes",receipt:"Enviado. Te avisaremos aqu\xED cuando haya novedades.",trackIt:"Seguirlo",done:"Listo",emailOptIn:"Recibir novedades por correo",emailPlaceholder:"tu@ejemplo.com",emailSubmit:"Enviarme novedades",emailCheckInbox:"Revisa tu correo y toca el enlace para confirmar.",emailInvalid:"Eso no parece un correo electr\xF3nico.",emailFailed:"No pudimos activar las novedades por correo. Int\xE9ntalo m\xE1s tarde.",toastReplied:"El desarrollador respondi\xF3 a tu reporte",toastFixed:"Tu error est\xE1 corregido",view:"Ver"}},gp={status:{received:"\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E41\u0E25\u0E49\u0E27",reviewing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A",reviewing_again:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",fixing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E41\u0E01\u0E49\u0E44\u0E02",verified:"\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E27\u0E48\u0E32\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27",fixed_next:"\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27 \u2014 \u0E08\u0E30\u0E21\u0E32\u0E43\u0E19\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E16\u0E31\u0E14\u0E44\u0E1B",fixed_version:"\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27\u0E43\u0E19 v{version}",fixed:"\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27",closed:"\u0E1B\u0E34\u0E14\u0E41\u0E25\u0E49\u0E27",waiting:"\u0E23\u0E2D\u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E04\u0E38\u0E13"},detail:{received:"\u0E40\u0E23\u0E32\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E41\u0E25\u0E49\u0E27",reviewing:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E43\u0E2A\u0E48\u0E44\u0E27\u0E49\u0E43\u0E19\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E41\u0E25\u0E49\u0E27",reviewing_again:"\u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13 \u2014 \u0E40\u0E23\u0E32\u0E40\u0E1B\u0E34\u0E14\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E41\u0E25\u0E49\u0E27",fixing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02",verified:"\u0E04\u0E38\u0E13\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02\u0E41\u0E25\u0E49\u0E27 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13!",fixed_next:"\u0E08\u0E30\u0E21\u0E32\u0E43\u0E19\u0E23\u0E38\u0E48\u0E19\u0E16\u0E31\u0E14\u0E44\u0E1B",fixed_version:"\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E40\u0E1B\u0E47\u0E19 v{version} \u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49\u0E43\u0E0A\u0E49\u0E44\u0E14\u0E49\u0E2B\u0E23\u0E37\u0E2D\u0E22\u0E31\u0E07?",fixed:"\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49\u0E43\u0E0A\u0E49\u0E44\u0E14\u0E49\u0E2B\u0E23\u0E37\u0E2D\u0E22\u0E31\u0E07?",closed:"\u0E1B\u0E34\u0E14\u0E41\u0E25\u0E49\u0E27",waiting:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E21\u0E35\u0E04\u0E33\u0E16\u0E32\u0E21 \u2014 \u0E15\u0E2D\u0E1A\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07"},idea:{received:"\u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22",reviewing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E1E\u0E34\u0E08\u0E32\u0E23\u0E13\u0E32",fixing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E23\u0E49\u0E32\u0E07",shipped:"\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E41\u0E25\u0E49\u0E27",shippedVersion:"\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E41\u0E25\u0E49\u0E27\u0E43\u0E19 v{version}"},closedReason:{duplicate:"\u0E40\u0E2B\u0E21\u0E37\u0E2D\u0E19\u0E01\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32 \u2014 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E41\u0E08\u0E49\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E35\u0E48\u0E19\u0E31\u0E48\u0E19",not_reproducible:"\u0E40\u0E23\u0E32\u0E17\u0E33\u0E43\u0E2B\u0E49\u0E40\u0E01\u0E34\u0E14\u0E0B\u0E49\u0E33\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A\u0E2B\u0E32\u0E01\u0E40\u0E01\u0E34\u0E14\u0E02\u0E36\u0E49\u0E19\u0E2D\u0E35\u0E01",wont_fix:"\u0E40\u0E23\u0E32\u0E15\u0E31\u0E14\u0E2A\u0E34\u0E19\u0E43\u0E08\u0E44\u0E21\u0E48\u0E40\u0E1B\u0E25\u0E35\u0E48\u0E22\u0E19\u0E2A\u0E48\u0E27\u0E19\u0E19\u0E35\u0E49",working_as_intended:"\u0E19\u0E35\u0E48\u0E40\u0E1B\u0E47\u0E19\u0E01\u0E32\u0E23\u0E17\u0E33\u0E07\u0E32\u0E19\u0E15\u0E32\u0E21\u0E17\u0E35\u0E48\u0E15\u0E31\u0E49\u0E07\u0E43\u0E08\u0E44\u0E27\u0E49",none:"\u0E1B\u0E34\u0E14\u0E41\u0E25\u0E49\u0E27"},others:{few:"\u0E04\u0E38\u0E13\u0E41\u0E25\u0E30\u0E2D\u0E35\u0E01\u0E44\u0E21\u0E48\u0E01\u0E35\u0E48\u0E04\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49",many:"\u0E21\u0E35\u0E2B\u0E25\u0E32\u0E22\u0E04\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49"},timeline:{received:"\u0E04\u0E38\u0E13\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E19\u0E35\u0E49",reviewing:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E01\u0E33\u0E25\u0E31\u0E07\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A",duplicate_linked:"\u0E40\u0E2B\u0E21\u0E37\u0E2D\u0E19\u0E01\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E17\u0E35\u0E48\u0E21\u0E35\u0E2D\u0E22\u0E39\u0E48 \u2014 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E41\u0E08\u0E49\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E35\u0E48\u0E19\u0E31\u0E48\u0E19",info_requested:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E16\u0E32\u0E21\u0E27\u0E48\u0E32: {text}",reporter_comment:"\u0E04\u0E38\u0E13",fix_started:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E41\u0E01\u0E49\u0E44\u0E02",fixed:"\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27 \u2014 \u0E08\u0E30\u0E21\u0E32\u0E43\u0E19\u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E16\u0E31\u0E14\u0E44\u0E1B",released:"\u0E40\u0E1B\u0E34\u0E14\u0E43\u0E0A\u0E49\u0E43\u0E19 v{version} \u2014 \u0E2D\u0E31\u0E1B\u0E40\u0E14\u0E15\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02",verified:"\u0E04\u0E38\u0E13\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E27\u0E48\u0E32\u0E41\u0E01\u0E49\u0E41\u0E25\u0E49\u0E27",reopened:"\u0E40\u0E1B\u0E34\u0E14\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07"},categories:{bug:"\u0E1A\u0E31\u0E4A\u0E01",slow:"\u0E0A\u0E49\u0E32",visual:"\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25\u0E1C\u0E34\u0E14",confusing:"\u0E2A\u0E31\u0E1A\u0E2A\u0E19",idea:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22"},ui:{yes:"\u0E43\u0E0A\u0E48",notYet:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48",empty:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35 \u2014 \u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E08\u0E30\u0E41\u0E2A\u0E14\u0E07\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48\u0E1E\u0E23\u0E49\u0E2D\u0E21\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32",loadError:"\u0E42\u0E2B\u0E25\u0E14\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49",retry:"\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",sending:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2A\u0E48\u0E07\u2026",sent:"\u0E2A\u0E48\u0E07\u0E41\u0E25\u0E49\u0E27",sendFailed:"\u0E2A\u0E48\u0E07\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",noReplies:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E08\u0E32\u0E01\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32",you:"\u0E04\u0E38\u0E13",developer:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32",addWords:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E23\u0E32\u0E22\u0E25\u0E30\u0E40\u0E2D\u0E35\u0E22\u0E14\u0E2D\u0E35\u0E01\u0E40\u0E25\u0E47\u0E01\u0E19\u0E49\u0E2D\u0E22",developerReplied:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E15\u0E2D\u0E1A\u0E27\u0E48\u0E32: \u201C{text}\u201D",updates:"\u0E21\u0E35\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32 {n} \u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E43\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",receipt:"\u0E2A\u0E48\u0E07\u0E41\u0E25\u0E49\u0E27 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E41\u0E08\u0E49\u0E07\u0E04\u0E38\u0E13\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E21\u0E35\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32",trackIt:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21",done:"\u0E40\u0E2A\u0E23\u0E47\u0E08",emailOptIn:"\u0E23\u0E31\u0E1A\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E32\u0E07\u0E2D\u0E35\u0E40\u0E21\u0E25",emailPlaceholder:"you@example.com",emailSubmit:"\u0E2A\u0E48\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E32\u0E07\u0E2D\u0E35\u0E40\u0E21\u0E25",emailCheckInbox:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E01\u0E25\u0E48\u0E2D\u0E07\u0E08\u0E14\u0E2B\u0E21\u0E32\u0E22\u0E41\u0E25\u0E49\u0E27\u0E41\u0E15\u0E30\u0E25\u0E34\u0E07\u0E01\u0E4C\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19",emailInvalid:"\u0E14\u0E39\u0E40\u0E2B\u0E21\u0E37\u0E2D\u0E19\u0E08\u0E30\u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25\u0E17\u0E35\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",emailFailed:"\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E17\u0E32\u0E07\u0E2D\u0E35\u0E40\u0E21\u0E25\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08 \u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07",toastReplied:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E15\u0E2D\u0E1A\u0E01\u0E25\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E41\u0E25\u0E49\u0E27",toastFixed:"\u0E1A\u0E31\u0E4A\u0E01\u0E17\u0E35\u0E48\u0E04\u0E38\u0E13\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E41\u0E01\u0E49\u0E44\u0E02\u0E41\u0E25\u0E49\u0E27",view:"\u0E14\u0E39"}},bp={status:{received:"\u5DF2\u6536\u5230",reviewing:"\u5904\u7406\u4E2D",reviewing_again:"\u91CD\u65B0\u67E5\u770B\u4E2D",fixing:"\u4FEE\u590D\u4E2D",verified:"\u5DF2\u786E\u8BA4\u4FEE\u590D",fixed_next:"\u5DF2\u4FEE\u590D \u2014 \u4E0B\u6B21\u66F4\u65B0\u4E0A\u7EBF",fixed_version:"\u5DF2\u5728 v{version} \u4FEE\u590D",fixed:"\u5DF2\u4FEE\u590D",closed:"\u5DF2\u5173\u95ED",waiting:"\u7B49\u5F85\u4F60\u7684\u56DE\u590D"},detail:{received:"\u6211\u4EEC\u5DF2\u6536\u5230\u4F60\u7684\u53CD\u9988\u3002",reviewing:"\u5F00\u53D1\u8005\u5DF2\u628A\u5B83\u52A0\u5165\u5F85\u5904\u7406\u5217\u8868\u3002",reviewing_again:"\u8C22\u8C22\uFF0C\u6211\u4EEC\u6B63\u5728\u91CD\u65B0\u67E5\u770B\u3002",fixing:"\u6B63\u5728\u4FEE\u590D\u3002",verified:"\u611F\u8C22\u4F60\u786E\u8BA4\u4FEE\u590D\uFF01",fixed_next:"\u4F1A\u5728\u4E0B\u4E00\u4E2A\u7248\u672C\u4E2D\u4E0A\u7EBF\u3002",fixed_version:"\u8BF7\u66F4\u65B0\u5230 v{version}\u3002\u95EE\u9898\u89E3\u51B3\u4E86\u5417\uFF1F",fixed:"\u95EE\u9898\u89E3\u51B3\u4E86\u5417\uFF1F",closed:"\u5DF2\u5173\u95ED\u3002",waiting:"\u5F00\u53D1\u8005\u6709\u95EE\u9898\u60F3\u95EE\u4F60\uFF0C\u8BF7\u5728\u4E0B\u65B9\u56DE\u590D\u3002"},idea:{received:"\u8C22\u8C22\u4F60\u7684\u60F3\u6CD5",reviewing:"\u8003\u8651\u4E2D",fixing:"\u5F00\u53D1\u4E2D",shipped:"\u5DF2\u4E0A\u7EBF",shippedVersion:"\u5DF2\u5728 v{version} \u4E0A\u7EBF"},closedReason:{duplicate:"\u548C\u4E4B\u524D\u7684\u4E00\u6761\u53CD\u9988\u76F8\u540C\uFF0C\u6211\u4EEC\u4F1A\u5728\u90A3\u6761\u91CC\u901A\u77E5\u8FDB\u5C55\u3002",not_reproducible:"\u6211\u4EEC\u6CA1\u80FD\u590D\u73B0\u3002\u5982\u679C\u518D\u6B21\u53D1\u751F\uFF0C\u8BF7\u56DE\u590D\u3002",wont_fix:"\u6211\u4EEC\u51B3\u5B9A\u4E0D\u4FEE\u6539\u8FD9\u4E00\u70B9\u3002",working_as_intended:"\u8FD9\u662F\u9884\u671F\u7684\u884C\u4E3A\u3002",none:"\u5DF2\u5173\u95ED\u3002"},others:{few:"\u5305\u62EC\u4F60\u5728\u5185\uFF0C\u6709\u51E0\u4E2A\u4EBA\u53CD\u9988\u4E86\u8FD9\u4E2A\u95EE\u9898",many:"\u5F88\u591A\u4EBA\u53CD\u9988\u4E86\u8FD9\u4E2A\u95EE\u9898"},timeline:{received:"\u4F60\u63D0\u4EA4\u4E86\u53CD\u9988",reviewing:"\u5F00\u53D1\u8005\u6B63\u5728\u67E5\u770B",duplicate_linked:"\u548C\u5DF2\u6709\u53CD\u9988\u76F8\u540C\uFF0C\u6211\u4EEC\u4F1A\u5728\u90A3\u6761\u91CC\u901A\u77E5\u8FDB\u5C55",info_requested:"\u5F00\u53D1\u8005\u7684\u95EE\u9898\uFF1A{text}",reporter_comment:"\u4F60",fix_started:"\u6B63\u5728\u4FEE\u590D",fixed:"\u5DF2\u4FEE\u590D \u2014 \u4E0B\u6B21\u66F4\u65B0\u4E0A\u7EBF",released:"\u5DF2\u5728 v{version} \u53D1\u5E03 \u2014 \u8BF7\u66F4\u65B0",verified:"\u5DF2\u786E\u8BA4\u4FEE\u590D",reopened:"\u5DF2\u91CD\u65B0\u6253\u5F00"},categories:{bug:"\u9519\u8BEF",slow:"\u6162",visual:"\u663E\u793A\u95EE\u9898",confusing:"\u96BE\u4EE5\u7406\u89E3",idea:"\u60F3\u6CD5"},ui:{yes:"\u662F",notYet:"\u8FD8\u6CA1\u6709",empty:"\u8FD8\u6CA1\u6709\u53CD\u9988\u3002\u63D0\u4EA4\u540E\u4F1A\u5728\u8FD9\u91CC\u663E\u793A\u8FDB\u5C55\u3002",loadError:"\u65E0\u6CD5\u52A0\u8F7D\u66F4\u65B0",retry:"\u91CD\u8BD5",sending:"\u53D1\u9001\u4E2D\u2026",sent:"\u5DF2\u53D1\u9001",sendFailed:"\u53D1\u9001\u5931\u8D25",noReplies:"\u5F00\u53D1\u8005\u8FD8\u6CA1\u6709\u56DE\u590D\u3002",you:"\u4F60",developer:"\u5F00\u53D1\u8005",addWords:"\u8BF7\u518D\u591A\u5199\u51E0\u4E2A\u5B57",developerReplied:"\u5F00\u53D1\u8005\u56DE\u590D\uFF1A\u201C{text}\u201D",updates:"\u4F60\u7684\u53CD\u9988\u6709 {n} \u6761\u66F4\u65B0",receipt:"\u5DF2\u53D1\u9001\u3002\u6709\u8FDB\u5C55\u65F6\u4F1A\u5728\u8FD9\u91CC\u901A\u77E5\u4F60\u3002",trackIt:"\u67E5\u770B\u8FDB\u5C55",done:"\u5B8C\u6210",emailOptIn:"\u901A\u8FC7\u90AE\u4EF6\u63A5\u6536\u66F4\u65B0",emailPlaceholder:"you@example.com",emailSubmit:"\u7528\u90AE\u4EF6\u63A5\u6536",emailCheckInbox:"\u8BF7\u70B9\u51FB\u6536\u4EF6\u7BB1\u4E2D\u90AE\u4EF6\u91CC\u7684\u94FE\u63A5\u5B8C\u6210\u786E\u8BA4\u3002",emailInvalid:"\u90AE\u7BB1\u5730\u5740\u683C\u5F0F\u4E0D\u6B63\u786E\u3002",emailFailed:"\u65E0\u6CD5\u8BBE\u7F6E\u90AE\u4EF6\u901A\u77E5\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002",toastReplied:"\u5F00\u53D1\u8005\u56DE\u590D\u4E86\u4F60\u7684\u53CD\u9988",toastFixed:"\u4F60\u53CD\u9988\u7684\u95EE\u9898\u5DF2\u4FEE\u590D",view:"\u67E5\u770B"}},Ep={en:hp,ja:fp,es:mp,th:gp,zh:bp};Aa=new Set(["received","reviewing","reviewing_again","fixing"]);Qm=1440*60*1e3;});var nu={};ft(nu,{accountView:()=>rh,assistantView:()=>Qp,crossAppView:()=>nh,detailView:()=>Zp,initViews:()=>qp,leaderboardView:()=>th,pickUpdateToast:()=>jp,renderOptIns:()=>tu,reportsView:()=>Yp,roadmapView:()=>eh});function qp(e){({esc:M,btn:he,renderHeader:qe,chipLabel:Qa,skeleton:Wt,formatRelativeTime:Er,renderAppIconHtml:eu}=e);}function jp(e,t,r){let n=e.filter(c=>(c.unread_count??0)>0&&!Tt(c,t).hidden),i=n.reduce((c,p)=>c+(p.unread_count??0),0);if(!i)return null;if(n.length>1)return {text:br(Ct(t).ui.updates,{n:i}),reportId:null};let o=n[0],s=Tt(o,t),a=s.key==="fixing"||s.canVerify||!o.last_admin_reply_at&&s.key!=="waiting",u=o.title??o.summary??void 0;return {text:a?s.label:r,reportId:o.id,...u?{detail:u}:{}}}function tu(e){let t=e.locale.panel,r=[];if(e.channels.email&&e.callbacks.onReporterEmailOptIn){let n=e.rc.ui;e.emailState==="saved"?r.push(`<p class="mushi-note" role="status">\u2709 ${M(n.emailCheckInbox)}</p>`):(r.push(`<label class="mushi-check"><input type="checkbox" data-action="email-optin"${e.emailOptInOpen?" checked":""} /> ${M(n.emailOptIn)}</label>`),e.emailOptInOpen&&r.push(`<div class="mushi-inline-form"><input type="email" class="mushi-input" data-role="optin-email" autocomplete="email" aria-label="${M(n.emailOptIn)}" placeholder="${M(n.emailPlaceholder)}" value="${M(e.channels.emailPrefill)}" />${he("save-email",M(n.emailSubmit),"mushi-btn",e.emailState==="saving"?' aria-busy="true"':"")}</div>${e.emailState==="invalid"||e.emailState==="error"?`<p class="mushi-note mushi-error-inline" role="alert">${M(e.emailState==="invalid"?n.emailInvalid:n.emailFailed)}</p>`:""}`));}return e.channels.push&&e.callbacks.onReporterPushSubscribe&&(r.push(e.pushState==="on"?`<p class="mushi-note" role="status">\u{1F514} ${M(t.notifyOn)}</p>`:he("notify-me",`\u{1F514} ${M(t.notifyMe)}`,"mushi-btn",e.pushState==="asking"?' aria-busy="true"':"")),e.pushState==="error"&&r.push(`<p class="mushi-note mushi-error-inline" role="alert">${M(e.rc.ui.sendFailed)}</p>`)),r.length?`<div class="mushi-optins">${r.join("")}</div>`:""}function gi(e,t){return `<span class="mushi-pill mushi-tone-${t}">${M(e)}</span>`}function ru(e){return e.title??e.summary??e.description??`#${e.id.slice(0,8)}`}function Wp(e,t){let r=(t??"").toLowerCase();return !r||r==="other"?"":Qa(e,r==="feature_request"?"idea":r)}function Kp(e){let t=r=>Date.parse(r.last_event_at??r.created_at)||0;return [...e].sort((r,n)=>+((n.unread_count??0)>0)-+((r.unread_count??0)>0)||t(n)-t(r))}function Vp(e,t){let r=Tt(t,e.lang);if(r.hidden)return "";let n=(t.unread_count??0)>0,i=[Wp(e,t.user_category),t.page,r.othersNote].filter(Boolean).map(u=>M(String(u))).join(" \xB7 "),o=t.last_event_preview&&(n||r.key==="waiting")?e.rc.ui.developerReplied.replace("{text}",t.last_event_preview):r.canVerify&&r.key!=="fixed_next"?r.detail:"",s=ru(t),a=t.title_ai_generated?' data-ai-generated="true"':"";return `<button type="button" class="mushi-report-row${n?" unread":""}" data-report-id="${M(t.id)}" aria-label="${M(`${r.label}: ${s}`)}"><span class="mushi-row-top">${gi(r.label,r.tone)}<span class="mushi-row-title"${a}>${M(s)}</span><span class="mushi-row-when">${M(Er(t.last_event_at??t.created_at))}</span></span>${i?`<span class="mushi-row-meta">${i}</span>`:""}${o?`<span class="mushi-row-news">${M(o)}</span>`:""}</button>`}function Yp(e){let t=e.rc,r=Kp(e.reporterReports).map(o=>Vp(e,o)).join(""),n=r&&e.reporterReports.some(o=>o.title_ai_generated&&!Tt(o,e.lang).hidden)?`<p class="mushi-note" data-ai-generated="true">${M(e.locale.flows.reports.aiTitlesNote||Gp)}</p>`:"",i=e.reporterError?`<p class="mushi-error-inline" role="alert">${M(t.ui.loadError)} ${he("retry-list",M(t.ui.retry),"mushi-link-btn")}</p>${r}${n}`:r?`${r}${n}`:e.listLoading?Wt(e.locale.flows.reports.loading):`<p class="mushi-empty">${M(t.ui.empty)}</p>`;return {header:qe(e,e.locale.flows.reports.title,true),lead:"",body:`<div class="mushi-report-list">${i}</div>`,footer:""}}function Xp(e,t){let r=e.rc,n=[];if(e.timeline)for(let i of e.timeline){let o=i.kind==="reporter_comment";n.push({kind:i.kind,at:i.at,text:hi(i)?i.body??i.text:Ia(i,e.lang),talk:hi(i),mine:o,who:o?r.ui.you:r.ui.developer});}else {t&&n.push({kind:"received",at:t.created_at,text:r.timeline.received});for(let i of e.reporterComments){let o=i.author_kind==="reporter";n.push({kind:o?"reporter_comment":"comment",at:i.created_at,text:i.body,talk:true,mine:o,who:o?r.ui.you:i.author_name??r.ui.developer});}}n.sort((i,o)=>(Date.parse(i.at)||0)-(Date.parse(o.at)||0));for(let i of e.pendingReplies)n.push({kind:"reporter_comment",at:"",text:i.body,who:r.ui.you,talk:true,mine:true,pending:i});return n}function Jp(e,t){let r=t.at?`<time datetime="${M(t.at)}">${M(Er(t.at))}</time>`:"";if(!t.talk)return `<li class="mushi-event"><span>${M(t.text)}</span>${r}</li>`;let n=!!t.mine,i=t.pending?t.pending.state==="sending"?`<span class="mushi-bubble-state">${M(e.rc.ui.sending)}</span>`:`<span class="mushi-bubble-state mushi-error-inline">${M(e.rc.ui.sendFailed)} \xB7 ${he("retry-reply",M(e.rc.ui.retry),"mushi-link-btn",` data-value="${t.pending.id}"`)}</span>`:r;return `<li class="mushi-bubble ${n?"mine":"dev"}"><strong>${M(t.who??"")}</strong><p>${M(t.text)}</p>${i}</li>`}function Zp(e){let t=e.rc,r=e.reporterReports.find(h=>h.id===e.selectedReportId),n=Tt(r??{status:"new"},e.lang),i=[r?.page,r?.app_version?`v${r.app_version}`:"",r?Er(r.created_at):""].filter(Boolean).map(h=>M(String(h))).join(" \xB7 "),o=`<div class="mushi-thread-summary"><p class="mushi-card-status">${gi(n.label,n.tone)}</p><p class="mushi-note">${M(n.detail)}${n.othersNote?` ${M(n.othersNote)}.`:""}</p><p class="mushi-summary-text">${M(r?r.description??ru(r):`#${(e.selectedReportId??"").slice(0,8)}`)}</p>${r?.screenshot_thumb_url?`<img class="mushi-card-thumb" src="${M(r.screenshot_thumb_url)}" alt="" />`:""}${i?`<p class="mushi-note">${i}</p>`:""}</div>`,s=Xp(e,r),a=s.some(h=>h.talk&&!h.mine),u;e.threadLoading&&s.length<=1&&!e.pendingReplies.length?u=Wt(e.locale.flows.thread.loading):u=`${e.threadError?`<p class="mushi-error-inline" role="alert">${M(t.ui.loadError)} ${he("retry-thread",M(t.ui.retry),"mushi-link-btn")}</p>`:""}<ol class="mushi-timeline">${s.map(h=>Jp(e,h)).join("")}</ol>${!a&&!e.threadError&&!e.threadLoading?`<p class="mushi-empty">${M(t.ui.noReplies)}</p>`:""}`;let c=e.actionPending?' disabled aria-busy="true"':"",p=n.canVerify?`<div class="mushi-verify" role="group" aria-label="${M(n.detail)}">${he("reporter-confirms",M(t.ui.yes),"mushi-btn",c)}${he("reporter-not-fixed",M(t.ui.notYet),"mushi-btn",c)}</div>`:"";return {header:qe(e,e.locale.panel.reportTitle,true),lead:o,body:`<div class="mushi-thread">${u}</div>${tu(e)}`,footer:`${p}${e.actionError?`<p class="mushi-error-inline mushi-thread-action-error" role="alert">${M(e.actionError)}</p>`:""}<div class="mushi-thread-composer"><textarea class="mushi-input mushi-reply" data-role="reporter-reply" rows="1" maxlength="2000" placeholder="${M(e.locale.flows.thread.replyPlaceholder)}" aria-label="${M(e.locale.flows.thread.replyPlaceholder)}"></textarea>${he("reporter-reply","\u2191","mushi-submit mushi-send",` aria-label="${M(e.locale.panel.send)}"`)}</div>`}}function Qp(e){let t=e.locale.assistant,r=e.callbacks.assistantGreeting||t.defaultGreeting,n=c=>c.length?`<div class="mushi-chips">${c.map(p=>`<button type="button" class="mushi-chip mushi-chip-sm" data-action="assistant-suggest" data-value="${M(p)}">${M(p)}</button>`).join("")}</div>`:"",i=(c,p="mushi-link-btn")=>he("assistant-report",M(c),p),o=e.assistantTurns.length===0?`<p class="mushi-assistant-greeting">${M(r)}</p>${n(e.callbacks.assistantSuggestions??[])}`:e.assistantTurns.map(c=>`<div class="mushi-assistant-msg ${c.role==="user"?"mine":"dev"}"${c.role==="user"?"":' data-ai-generated="true"'}>${M(c.text)}</div>${n(c.options??[])}${c.offerReport?i(t.fileReportCta,"mushi-btn"):""}`).join(""),s=e.assistantSending?`<div class="mushi-assistant-msg dev" role="status" aria-live="polite">${M(t.thinking)}</div>`:"",a=e.assistantError?`<p class="mushi-error-inline" role="alert">${M(e.assistantError)} ${i(t.fileReportCta)}</p>`:"",u=e.assistantTurns.length&&!e.assistantSending&&!e.assistantError?i(t.stillStuckCta):"";return {header:qe(e,e.callbacks.assistantLabel||t.defaultLabel,true),lead:`<p class="mushi-ai-notice" role="note" data-ai-interaction-notice="true">${M(t.aiNotice||zp)}</p>`,body:`<div class="mushi-assistant-log">${o}${s}${a}${u}</div>`,footer:`<form class="mushi-thread-composer" data-action="assistant-send"><textarea class="mushi-input mushi-reply mushi-assistant-input" rows="1" placeholder="${M(t.inputPlaceholder)}" aria-label="${M(t.inputPlaceholder)}"${e.assistantSending?" disabled":""}></textarea><button type="submit" class="mushi-submit mushi-send" aria-label="${M(t.sendAriaLabel)}"${e.assistantSending?" disabled":""}>\u2191</button></form>`}}function eh(e){let t=e.locale.flows.roadmap,r=e.featureBoard.map(n=>{let i=String(n.id??""),o=!!n.my_vote,s=n.shipped_at?t.shipped:String(n.status_label??n.status??"open");return `<div class="mushi-report-row mushi-roadmap-row"><span class="mushi-row-top"><span class="mushi-row-title">${M(String(n.subject??t.untitled))}</span></span><span class="mushi-row-meta">${M(s)} \xB7 ${M(t.voteCount.replace("{n}",String(Number(n.vote_count??0))))}</span>${e.callbacks.onFeatureBoardVote?`<button type="button" class="mushi-btn" data-vote-id="${M(i)}" aria-pressed="${o}">${M(o?t.voted:t.vote)}</button>`:""}</div>`}).join("");return {header:qe(e,t.title,true),lead:"",body:`${e.reporterError?`<p class="mushi-error-inline" role="alert">${M(e.reporterError)}</p>`:""}${r||(e.listLoading?Wt(t.loading):`<p class="mushi-empty">${M(t.empty)}</p>`)}`,footer:""}}function th(e){let t=e.locale.flows.leaderboard,r=e.globalLeaderboard!==null||e.globalLeaderboardLoading,n=r?e.globalLeaderboard??[]:e.leaderboardEntries??[],i=r?e.globalLeaderboardLoading:e.leaderboardLoading,o=n.map((a,u)=>{let c=a.rank||u+1;return `<li class="mushi-lb-row${e.testerReputation&&a.tester_id===e.testerReputation.tester_id?" me":""}"><span>#${c}</span><span class="mushi-row-title">${M(a.public_handle??a.display_name??t.anon)}</span><span>${(a.points_30d??a.total_points).toLocaleString()} pts</span></li>`}).join(""),s=e.testerReputation?.rank;return {header:qe(e,t.title,true),lead:"",body:`${i?Wt(t.loading):""}${!i&&!n.length?`<p class="mushi-empty">${M(t.empty)}</p>`:""}<ol class="mushi-lb">${o}</ol>${s?`<p class="mushi-note">${M(t.myRank.replace("{rank}",String(s)))}</p>`:e.testerJwt?"":he("open-account",M(t.signInPrompt),"mushi-link-btn")}<p class="mushi-note">${M(t.footer)}</p>`,footer:""}}function rh(e){let t=e.locale.flows.account,r=e.testerInfo;if(r){let n=r.public_handle??r.display_name??e.locale.flows.leaderboard.anon,i=e.testerReputation,o=i?t.rankSummary.replace("{rank}",String(i.rank??"\u2014")).replace("{points}",(i.points_30d??0).toLocaleString()):"";return {header:qe(e,t.title,true),lead:"",body:`<div class="mushi-thread-summary"><p class="mushi-summary-text">${M(n)}</p>${o?`<p class="mushi-note">${M(o)}</p>`:""}</div>${he("open-cross-app-reports",M(t.crossAppReports),"mushi-menu-item")}${he("open-global-leaderboard",M(t.viewLeaderboard),"mushi-menu-item")}${he("sign-out-tester",M(t.signOut),"mushi-link-btn")}`,footer:""}}return e.magicLinkSent?{header:qe(e,t.checkEmailTitle,true),lead:"",body:`<p class="mushi-note">${M(t.magicLinkSent.replace("{email}",e.magicLinkEmail))}</p>${he("resend-magic-link",M(t.resendEmail),"mushi-link-btn")}${e.magicLinkError?`<p class="mushi-error-inline" role="alert">${M(e.magicLinkError)}</p>`:""}`,footer:""}:{header:qe(e,t.joinTitle,true),lead:"",body:`<p class="mushi-note">${M(t.signInPrompt)}</p><input type="email" class="mushi-input" data-role="magic-link-email" aria-label="${M(t.emailLabel)}" placeholder="${M(t.emailPlaceholder)}" autocomplete="email" value="${M(e.magicLinkEmail)}" />${e.magicLinkError?`<p class="mushi-error-inline" role="alert">${M(e.magicLinkError)}</p>`:""}`,footer:`<span></span>${he("send-magic-link",M(e.magicLinkSending?t.sending:t.sendLink),"mushi-submit",e.magicLinkSending?' aria-busy="true"':"")}`}}function nh(e){let t=e.locale.flows.crossApp,r=e.crossAppReports??[],n=new Map;for(let o of r){let s=o.project_id??"unknown";n.has(s)||n.set(s,{name:o.app_name??t.unknownApp,slug:o.app_slug??null,domain:o.app_domain??null,reports:[]}),n.get(s).reports.push(o);}let i=[...n.entries()].map(([o,s])=>`<section class="mushi-xapp-group"><h3 class="mushi-xapp-app-name">${eu({projectId:o,appName:s.name,appSlug:s.slug,appDomain:s.domain})} ${M(s.name)}</h3>${s.reports.map(a=>{let u=Tt(a,e.lang);return `<div class="mushi-report-row"><span class="mushi-row-top">${gi(u.label,u.tone)}<span class="mushi-row-title">${M(a.title??`#${a.short_id??a.id.slice(0,8)}`)}</span><span class="mushi-row-when">${M(Er(a.created_at))}</span></span></div>`}).join("")}</section>`).join("");return {header:qe(e,t.title,true),lead:"",body:`${e.crossAppLoading?Wt(t.loading):""}${!e.crossAppLoading&&!r.length?`<p class="mushi-empty">${M(t.empty)}</p>`:""}${i}`,footer:""}}var M,he,qe,Qa,Wt,Er,eu,zp,Gp,iu=xe(()=>{"use strict";un();zp="You're chatting with an AI, not a person. Answers can be wrong.",Gp="Titles are written by AI.";});function _r(e){return e.replace(/\S/g,Fh)}function Fi(e){return e?.unmaskInputs!==true}function Pu(e){return [It,"[data-mushi-redact]",...e?.redactSelectors??[],...e?.maskSelectors??[],...e?.blockSelectors??[],...Fi(e)?[Du]:[]]}function Hh(e){let r=e.ownerDocument.createTreeWalker(e,4),n=[];for(let i=r.nextNode();i;i=r.nextNode())n.push(i);for(let i of n)i.data=_r(i.data);}function $u(e){let t=0,r;try{r=Array.from(e.querySelectorAll(Du));}catch{return 0}for(let n of r){let i=n.tagName.toLowerCase();if(i==="input"){let o=n,s=o.getAttribute("value")??o.value??"";o.value="",s?o.setAttribute("value",_r(s)):o.removeAttribute("value");}else if(i==="textarea"){let o=n,s=o.textContent||o.value||"";o.value="",o.textContent=_r(s);}else if(i==="select")for(let o of Array.from(n.querySelectorAll("option")))o.textContent=_r(o.textContent??""),o.hasAttribute("label")&&o.setAttribute("label",_r(o.getAttribute("label")??""));else Hh(n);n.setAttribute("data-mushi-masked","input"),t++;}return t}var Du,Fh,Hi=xe(()=>{"use strict";Cr();Du=['input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="image"]):not([type="file"])',"textarea","select",'[contenteditable]:not([contenteditable="false"])'].join(","),Fh="\u2022";});var qu={};ft(qu,{captureDomScreenshot:()=>Nh});async function Nh(e,t){let r=document.createElement("canvas"),n=r.getContext("2d",{willReadFrequently:true});if(!n)return t("unsupported"),null;let i=window.innerWidth,o=window.innerHeight,s=Math.min(window.devicePixelRatio||1,2);r.width=i*s,r.height=o*s,n.scale(s,s);let a=await Kh(e),u=new XMLSerializer().serializeToString(a).replace(Uh,""),c=`
2
2
  <svg xmlns="http://www.w3.org/2000/svg" width="${i}" height="${o}">
3
3
  <foreignObject width="100%" height="100%">
4
4
  <div xmlns="http://www.w3.org/1999/xhtml">
@@ -6,15 +6,15 @@
6
6
  </div>
7
7
  </foreignObject>
8
8
  </svg>
9
- `,p=new Image,h=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(c)}`,m=false,w=x=>{let g=x;/^img-src|^default-src/.test(g.violatedDirective??"")&&/^data/.test(g.blockedURI??"")&&(m=true);};return document.addEventListener("securitypolicyviolation",w),new Promise(x=>{let g=false,y=(R,v)=>{g||(g=true,clearTimeout(C),document.removeEventListener("securitypolicyviolation",w),v&&t(v),x(R));},C=setTimeout(()=>y(null,"timeout"),5e3);p.onload=()=>{try{if(n.drawImage(p,0,0,i,o),hf(n,i,o)){y(null,"unsupported");return}y(r.toDataURL("image/jpeg",.7));}catch{y(null,"taint");}},p.onerror=()=>setTimeout(()=>y(null,m?"csp":"error"),0),p.src=h;})}async function Lh(e){let t=document.documentElement,r=t.cloneNode(true),n=t.querySelectorAll("link"),i=r.querySelectorAll("link"),o=new Map;n.length===i.length&&n.forEach((h,m)=>o.set(h,i[m]));let{offscreen:s,pins:a,backgrounds:u}=Ph(t,r);lf(t,r);let c=[Yt,...e?.redactSelectors??Iu,...e?.maskSelectors??[],...e?.blockSelectors??[]];Yh(Array.from(t.querySelectorAll(Au)),Array.from(r.querySelectorAll(Au)),h=>s.has(h)||c.some(m=>Mu(h,m))),Vh(a),await Fh(u.filter(h=>!c.some(m=>Mu(h.live,m)))),r.querySelector("#mushi-mushi-widget")?.remove(),await nf(r,o),rf(r),ef(r),pf(r),df(r);let p=[Yt,...e?.redactSelectors??Iu];for(let h of p)for(let m of Oi(r,h))tf(m);for(let h of e?.blockSelectors??[])for(let m of Oi(r,h))m.remove();for(let h of e?.maskSelectors??[])for(let m of Oi(r,h))mf(m);return r}function Ph(e,t){let r=new Set,n=[],i=[],o=[e,...Array.from(e.querySelectorAll("*"))],s=[t,...Array.from(t.querySelectorAll("*"))];if(o.length!==s.length)return {offscreen:r,pins:n,backgrounds:i};let a=zh(),u=[],c=document.scrollingElement,p=new Map,h=(g,y,C)=>{let R=p.get(g);R||p.set(g,R=new Map),R.set(y,C);},m=[],w=[],x=false;for(let g=0;g<o.length;g++){let y=o[g],C=s[g],R=getComputedStyle(y);if(u.push(R),y===document.body&&(x=true),x)if(R.display==="none")h(C,"display","none");else {let v=y.parentElement;R.visibility!=="visible"&&v&&getComputedStyle(v).visibility==="visible"&&h(C,"visibility",R.visibility),R.opacity==="0"&&h(C,"opacity","0"),R.backgroundImage.includes("url(")&&w.push(g);}if(a.has(y))for(let v of Dh)h(C,v,R.getPropertyValue(v));if(R.position==="sticky"&&y instanceof HTMLElement){let v=Gh(y);v&&(h(C,"position","relative"),h(C,"top",`${v.top}px`),h(C,"left",`${v.left}px`),h(C,"bottom","auto"),h(C,"right","auto"));}y!==c&&(y.scrollTop>0||y.scrollLeft>0)&&m.push(g);}for(let g of m){let y=o[g],C=y.children,R=s[g].children;for(let v=0;v<C.length&&v<R.length;v++){let T=getComputedStyle(C[v]);if(T.position==="fixed")continue;let A=p.get(R[v])?.get("transform")??T.transform,E=`translate(${-y.scrollLeft}px, ${-y.scrollTop}px)`;h(R[v],"transform",A&&A!=="none"?`${E} ${A}`:E);}}(window.scrollX||window.scrollY)&&(h(t,"position","relative"),h(t,"top",`${-window.scrollY}px`),h(t,"left",`${-window.scrollX}px`));for(let[g,y]of p){let C=Array.from(y,([R,v])=>`${R}:${v}!important`).join(";");g.setAttribute("style",`${g.getAttribute("style")??""};${C}`);}jh(o,s,u,r,n);for(let g of w)r.has(o[g])||i.push({live:o[g],clone:s[g],value:u[g].backgroundImage});return {offscreen:r,pins:n,backgrounds:i}}async function Fh(e){let t=new Map,r=0,n=i=>{let o=t.get(i);return o||(o=t.size>=$h?Promise.resolve(null):Nh(i).then(s=>!s||r+s.length>Bh?null:(r+=s.length,s)),t.set(i,o)),o};await Promise.all(e.map(async i=>{let o=Array.from(i.value.matchAll(Hh),u=>u[2].trim()).filter(u=>!u.startsWith("data:"));if(o.length===0)return;let s=await Promise.all(o.map(n)),a=i.value;o.forEach((u,c)=>{s[c]&&(a=a.split(u).join(s[c]));}),a!==i.value&&i.clone.setAttribute("style",`${i.clone.getAttribute("style")??""};background-image:${a}!important`);}));}async function Nh(e){if(typeof fetch!="function")return null;let t=typeof AbortController=="function"?new AbortController:null,r=setTimeout(()=>t?.abort(),Du);try{let n=await fetch(e,{cache:"force-cache",signal:t?.signal});if(!n.ok)return null;let i=await n.blob();if(i.size>Oh||!i.type.startsWith("image/"))return null;let o=new Uint8Array(await i.arrayBuffer()),s="";for(let a=0;a<o.length;a+=32768)s+=String.fromCharCode(...o.subarray(a,a+32768));return `data:${i.type};base64,${btoa(s)}`}catch{return null}finally{clearTimeout(r);}}function jh(e,t,r,n,i){let o=document.body?e.indexOf(document.body):-1;if(o<0)return;let s=window.innerWidth,a=window.innerHeight,u=new Map,c=new Array(e.length).fill(false),p=new Array(e.length).fill(false);for(let m=o;m<e.length;m++)u.set(e[m],m);c[o]=true;for(let m=e.length-1;m>o;m--){let w=e[m],x=w.getBoundingClientRect();if((x.width>0||x.height>0)&&(x.bottom>0&&x.top<a&&x.right>0&&x.left<s?c[m]=true:p[m]=true),r[m].position==="fixed"&&(c[m]=true),c[m]){p[m]=false;let g=w.parentElement?u.get(w.parentElement):void 0;g!==void 0&&(c[g]=true);}else p[m]&&n.add(w);}let h=new Array(e.length).fill(false);for(let m=o+1;m<e.length;m++){let w=e[m],x=w.parentElement?u.get(w.parentElement):void 0;if(x===void 0)continue;if(h[x]){h[m]=true;continue}if(!p[m]||!(w instanceof HTMLElement))continue;let g=r[m];if(!Uh.test(g.display))continue;h[m]=true;let y=qh.test(r[x].display)&&g.float==="none"&&(g.position==="static"||g.position==="relative");i.push({clone:t[m],width:w.offsetWidth,height:w.offsetHeight,marginTop:y?Wh(w):null,marginBottom:y?Kh(w):null});}}function Wh(e){let t=e.previousElementSibling;return !(t instanceof HTMLElement)||t.offsetParent!==e.offsetParent?null:Math.max(0,e.offsetTop-(t.offsetTop+t.offsetHeight))}function Kh(e){let t=e.nextElementSibling;return !(t instanceof HTMLElement)||t.offsetParent!==e.offsetParent?null:Math.max(0,t.offsetTop-(e.offsetTop+e.offsetHeight))}function Vh(e){for(let t of e){t.clone.replaceChildren();let r=`width:${t.width}px!important;height:${t.height}px!important;box-sizing:border-box!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;content-visibility:visible!important;contain:none!important;`;t.marginTop!==null&&(r+=`margin-top:${t.marginTop}px!important;`),t.marginBottom!==null&&(r+=`margin-bottom:${t.marginBottom}px!important;`),t.clone.setAttribute("style",`${t.clone.getAttribute("style")??""};${r}`);}}function zh(){try{return new Set(document.getAnimations().map(e=>e.effect?.target).filter(e=>e instanceof Element&&!e.pseudoElement))}catch{return new Set}}function Gh(e){let t=e.getBoundingClientRect(),r=e.style.getPropertyValue("position"),n=e.style.getPropertyPriority("position");e.style.setProperty("position","static","important");let i=e.getBoundingClientRect();e.style.removeProperty("position"),r&&e.style.setProperty("position",r,n);let o=t.top-i.top,s=t.left-i.left;return o||s?{top:o,left:s}:null}function Yh(e,t,r){let n=0,i=0;for(let o=0;o<t.length;o++){let s=t[o],a=e[o],u=a?.getBoundingClientRect(),c=a instanceof HTMLElement&&a.offsetWidth>0?{width:a.offsetWidth,height:a.offsetHeight}:u&&{width:u.width,height:u.height},p=null;a&&c&&c.width>0&&c.height>0&&n<Ih&&i<Mh&&!r(a)&&(p=Jh(a),p&&(n++,i+=p.url.length)),Qh(s,p,c);}}function Jh(e){try{let t=null,r=0,n=0;if(e instanceof HTMLCanvasElement?[t,r,n]=[e,e.width,e.height]:e instanceof HTMLImageElement&&e.complete&&e.naturalWidth>0?[t,r,n]=[e,e.naturalWidth,e.naturalHeight]:e instanceof HTMLVideoElement&&e.readyState>=2&&([t,r,n]=[e,e.videoWidth,e.videoHeight]),!t||r<=0||n<=0)return null;let i=Math.min(1,Xh/Math.max(r,n)),o=document.createElement("canvas");o.width=Math.max(1,Math.round(r*i)),o.height=Math.max(1,Math.round(n*i));let s=o.getContext("2d");if(!s)return null;s.drawImage(t,0,0,o.width,o.height);let a=o.toDataURL("image/webp",.85);return a==="data:,"?null:{url:a,width:r,height:n}}catch{return null}}function Mu(e,t){try{return e.closest(t)!==null}catch{return false}}function Qh(e,t,r){let n=e.ownerDocument.createElement(t?"img":"div");for(let a of e.getAttributeNames())Zh.has(a)||n.setAttribute(a,e.getAttribute(a)??"");let i=r?`width:${r.width}px;height:${r.height}px;`:"";t?(n.setAttribute("src",t.url),n.setAttribute("alt",""),n.hasAttribute("width")||n.setAttribute("width",String(t.width)),n.hasAttribute("height")||n.setAttribute("height",String(t.height)),n.setAttribute("style",`${n.getAttribute("style")??""};${i}`)):n.setAttribute("style",`${n.getAttribute("style")??""};${i}background:#d4d4d4!important;display:${e.tagName==="IMG"||e.tagName==="CANVAS"?"inline-block":"block"};`);let o=e.parentElement;(o&&o.tagName==="PICTURE"?o:e).replaceWith(n);}function ef(e){let r=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_COMMENT),n=[];for(let i=r.nextNode();i;i=r.nextNode())n.push(i);for(let i of n)i.parentNode?.removeChild(i);for(let i of [e,...Array.from(e.querySelectorAll("*"))])for(let o of i.getAttributeNames())Ah.test(o)||i.removeAttribute(o);}function Oi(e,t){try{return Array.from(e.querySelectorAll(t))}catch{return []}}function tf(e){for((e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(e.value="",e.setAttribute("value","")),e.textContent="",e.setAttribute("style",`${e.getAttribute("style")??""};background:#000!important;color:#000!important;text-shadow:none!important;border-color:#000!important;`),e.setAttribute("data-mushi-redacted","true");e.firstChild;)e.removeChild(e.firstChild);}function rf(e){let t=typeof location<"u"?location.origin:"";for(let r of e.querySelectorAll('link[rel="stylesheet"], link[as="style"]'))r.remove();for(let r of e.querySelectorAll("style")){let n=Lu(r.textContent??"",t);n!==r.textContent&&(r.textContent=n);}for(let r of e.querySelectorAll("[style]")){let n=r.getAttribute("style");if(!n)continue;let i=Lu(n,t);i!==n&&r.setAttribute("style",i);}for(let r of e.querySelectorAll("script, noscript, template"))r.remove();}function Lu(e,t){return e.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi,(r,n,i)=>{let o=i.trim();return !o||o.startsWith("data:")||o.startsWith("#")?r:ff(o,t)?"none":r})}async function nf(e,t){let r=[...Array.from(document.styleSheets),...document.adoptedStyleSheets??[]],n=await Promise.all(r.map(async o=>{let s=o.ownerNode;return o.disabled||s instanceof Element&&s.tagName==="STYLE"?"":af(await Pu(o)??vn(o),o)})),i=e.querySelector("head")??e;r.forEach((o,s)=>{if(!n[s])return;let a=document.createElement("style");a.textContent=n[s];let u=o.ownerNode?t.get(o.ownerNode):void 0;u&&e.contains(u)?u.replaceWith(a):i.appendChild(a);});}async function Pu(e,t=0){let r=e.href;if(!r||t>3||typeof fetch!="function")return null;let n=typeof AbortController=="function"?new AbortController:null,i=setTimeout(()=>n?.abort(),Du);try{let o=await fetch(r,{cache:"force-cache",signal:n?.signal});if(!o.ok)return null;let s="";for(let u of of(e)){if(!(u instanceof CSSImportRule)||!u.styleSheet)continue;let c=await Pu(u.styleSheet,t+1)??vn(u.styleSheet);s+=sf(c,u);}let a=uf((await o.text()).replace(/@import\s[^;]*;/gi,""),r);return `${s}
10
- ${a}`}catch{return null}finally{clearTimeout(i);}}function of(e){try{return Array.from(e.cssRules)}catch{return []}}function sf(e,t){let r=t.layerName,n=r==null?e:`@layer ${r}{${e}}`,i=t.media?.mediaText;return i&&i!=="all"&&(n=`@media ${i}{${n}}`),`${n}
11
- `}function af(e,t){let r=t.media?.mediaText;return e&&r&&r!=="all"?`@media ${r}{${e}}`:e}function uf(e,t){return e.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi,(r,n,i)=>{let o=i.trim();if(!o||/^(data:|#|[a-z][a-z\d+.-]*:)/i.test(o))return r;try{return `url(${n}${new URL(o,t).href}${n})`}catch{return r}})}function lf(e,t){let r=e.querySelectorAll("style"),n=t.querySelectorAll("style");r.length===n.length&&r.forEach((i,o)=>{if((i.textContent??"").trim()||!i.sheet)return;let s=vn(i.sheet);s&&(n[o].textContent=s);});}function df(e){let t=i=>!i||i==="transparent"||/^rgba\(.*,\s*0\)$/.test(i),r=getComputedStyle(document.documentElement).backgroundColor;t(r)&&document.body&&(r=getComputedStyle(document.body).backgroundColor);let n=e;n.style.setProperty("background-color",t(r)?"Canvas":r),n.style.setProperty("min-height",`${window.innerHeight}px`);}function pf(e){let t=document.createElement("style");t.textContent=cf,(e.querySelector("head")??e).appendChild(t);}function vn(e){let t;try{t=e.cssRules;}catch{return ""}let r="";for(let n of Array.from(t)){if(n instanceof CSSImportRule){n.styleSheet&&(r+=vn(n.styleSheet));continue}r+=`${n.cssText}
12
- `;}return r}function hf(e,t,r){try{let n=Math.max(1,Math.floor(t/8)),i=Math.max(1,Math.floor(r/8));for(let o=0;o<r;o+=i)for(let s=0;s<t;s+=n)if(e.getImageData(s,o,1,1).data[3]!==0)return !1;return !0}catch{return false}}function ff(e,t){if(!e||e.startsWith("data:")||e.startsWith("blob:"))return false;try{let r=new URL(e,typeof location<"u"?location.href:"http://localhost/");return !!t&&r.origin!==t}catch{return true}}function mf(e){(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(e.value="",e.setAttribute("value",""),e.setAttribute("placeholder","\u2022\u2022\u2022\u2022")),e.textContent=e.children.length===0?"\u2022\u2022\u2022\u2022":e.textContent,e.setAttribute("style",`${e.getAttribute("style")??""};background:#8f8f8f!important;color:transparent!important;text-shadow:none!important;`),e.setAttribute("data-mushi-masked","true");}var Th,Ah,Ih,Mh,Au,Iu,Dh,$h,Bh,Oh,Hh,Uh,qh,Xh,Zh,Du,cf,Bu=Me(()=>{wn();Th=/[\u0000-\u0008\u000B\u000C\u000E-\u001F￾￿]/g,Ah=/^[A-Za-z_][\w.:-]*$/,Ih=60,Mh=12*1024*1024,Au="img, video, canvas, iframe, object, embed";Iu=["[data-mushi-redact]"],Dh=["transform","translate","scale","rotate","opacity","visibility","clip-path","object-position","background-position","left","top","width","height","color","background-color"];$h=40,Bh=6*1024*1024,Oh=2*1024*1024;Hh=/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi;Uh=/^(block|flow-root|flex|grid|list-item|inline-block|inline-flex|inline-grid|table)$/,qh=/^(block|flow-root|list-item)$/;Xh=2048;Zh=new Set(["src","srcset","sizes","poster","data","loading","decoding"]);Du=2500;cf="*,*::before,*::after{animation:none!important;transition:none!important}";});function Fi(e={}){let t=e,r=i=>{t.onFailed?.(i),gf(i);};async function n(){try{if(typeof document>"u")return null;let{captureDomScreenshot:i}=await Promise.resolve().then(()=>(Bu(),$u));return await i(t.privacy,r)}catch{return r("error"),null}}return {take:n,updateOptions(i){t=i;}}}function gf(e){try{document.dispatchEvent(new CustomEvent("mushi:screenshot_failed",{detail:{reason:e},bubbles:!1}));}catch{}}var Yt,wn=Me(()=>{Yt='input[type="password"],input[autocomplete^="cc-"],[data-private],[data-mushi-mask]';});var Gu={};ft(Gu,{deviceDraw:()=>Kf,journeyRecordingDecision:()=>jf,readTabOptIn:()=>Wf});function jf(e){if(e.mode===false)return false;if(e.mode!=="on-demand"||e.tabOptIn)return true;let t=e.window;if(!t)return false;let r=Date.parse(t.recordUntil);if(!Number.isFinite(r)||r<=e.now)return false;let n=Number.isFinite(t.sampleRate)?Math.min(1,Math.max(0,t.sampleRate)):0;return e.draw<n}function Wf(e){if(typeof window>"u")return false;let t=null;try{t=new URL(window.location.href).searchParams.get(qf);}catch{t=null;}try{return t==="1"||t==="true"?window.sessionStorage.setItem(Yi(e),"1"):(t==="0"||t==="false")&&window.sessionStorage.removeItem(Yi(e)),window.sessionStorage.getItem(Yi(e))==="1"}catch{return t==="1"||t==="true"}}function Kf(e,t=Math.random){if(typeof window>"u")return t();try{let r=Number(window.localStorage.getItem(Xi(e)));if(window.localStorage.getItem(Xi(e))!==null&&Number.isFinite(r)&&r>=0&&r<1)return r;let n=t();return window.localStorage.setItem(Xi(e),String(n)),n}catch{return t()}}var qf,Yi,Xi,Yu=Me(()=>{qf="mushi_journeys",Yi=e=>`mushi:journeys:tab:${e}`,Xi=e=>`mushi:journeys:draw:${e}`;});var Xu={};ft(Xu,{grabMaskedTabFrame:()=>Vf});async function Vf(e,t){let r=await e,n=r.getVideoTracks?.()[0]?.getSettings?.().displaySurface;if(n&&n!=="browser")throw r.getTracks().forEach(a=>a.stop()),Object.assign(new Error("Only this tab can be captured"),{name:"NotAllowedError"});let i=t.join(","),o=document.createElement("style");o.setAttribute("data-mushi-capture-mask",""),o.textContent=`:is(${i}){background:#000!important;color:transparent!important;-webkit-text-fill-color:transparent!important;text-shadow:none!important}:is(${i}) *{visibility:hidden!important}`,document.head.appendChild(o);let s=document.createElement("video");try{s.muted=!0,s.srcObject=r,await s.play(),await new Promise(u=>setTimeout(u,150));let a=document.createElement("canvas");return a.width=s.videoWidth,a.height=s.videoHeight,a.getContext("2d")?.drawImage(s,0,0),a.toDataURL("image/jpeg",.7)}finally{r.getTracks().forEach(a=>a.stop()),s.srcObject=null,o.remove();}}var Ju=Me(()=>{});var Zu={};ft(Zu,{createScreenshotAnnotation:()=>zf});function zf(e,t){return new Promise((r,n)=>{let i=new Image;i.onload=()=>{let o=document.createElement("div");o.style.position="relative",o.style.display="inline-block",o.style.maxWidth="100%";let s=document.createElement("canvas"),a=document.createElement("canvas"),u=Math.min(1,720/i.width),c=Math.round(i.width*u),p=Math.round(i.height*u);for(let A of [s,a])A.width=c,A.height=p,A.style.width="100%",A.style.height="auto",A.style.display="block";a.style.position="absolute",a.style.left="0",a.style.top="0",a.style.cursor="crosshair";let h=s.getContext("2d"),m=a.getContext("2d");if(!h||!m){n(new Error("Canvas not supported"));return}h.drawImage(i,0,0,c,p),o.appendChild(s),o.appendChild(a),t.appendChild(o);let w="highlight",x=false,g=null,y=[],C=A=>{let E=a.getBoundingClientRect(),f="touches"in A?A.touches[0]??A.changedTouches[0]:null,b=f?f.clientX:A.clientX,_=f?f.clientY:A.clientY;return {x:(b-E.left)/E.width*c,y:(_-E.top)/E.height*p}},R=()=>{m.clearRect(0,0,c,p);for(let A of y)if(A.tool==="highlight"&&A.points.length>=2){let[E,f]=A.points;m.fillStyle="rgba(255, 230, 0, 0.35)",m.fillRect(Math.min(E.x,f.x),Math.min(E.y,f.y),Math.abs(f.x-E.x),Math.abs(f.y-E.y));}else if(A.tool==="arrow"&&A.points.length>=2){let[E,f]=A.points;m.strokeStyle="#ef4444",m.lineWidth=3,m.beginPath(),m.moveTo(E.x,E.y),m.lineTo(f.x,f.y),m.stroke();}},v=A=>{x=true,g=C(A);},T=A=>{if(!x||!g)return;x=false;let E=C(A);if(w==="blur"){let f=Math.min(g.x,E.x),b=Math.min(g.y,E.y),_=Math.abs(E.x-g.x),B=Math.abs(E.y-g.y);_>=1&&B>=1&&(h.filter="blur(8px)",h.drawImage(s,f,b,_,B,f,b,_,B),h.filter="none");}else y.push({tool:w,points:[g,E]});g=null,R();};a.addEventListener("mousedown",v),a.addEventListener("mouseup",T),a.addEventListener("touchstart",v,{passive:true}),a.addEventListener("touchend",T),r({canvas:s,setTool(A){w=A;},getDataUrl(){let A=document.createElement("canvas");A.width=c,A.height=p;let E=A.getContext("2d");return E?(E.drawImage(s,0,0),E.drawImage(a,0,0),A.toDataURL("image/jpeg",.85)):e},destroy(){a.removeEventListener("mousedown",v),a.removeEventListener("mouseup",T),a.removeEventListener("touchstart",v),a.removeEventListener("touchend",T),o.remove();}});},i.onerror=()=>n(new Error("Failed to load screenshot")),i.src=e;})}var Qu=Me(()=>{});var Tl=4194304,Qo=1.5*1024*1024;function Al(e){try{return JSON.stringify(e)}catch{return null}}function Il(e,t=Tl){let r=Al(e);if(r===null)return {ok:false,bytes:0,maxBytes:t,serializeFailed:true,reason:"Report could not be serialized (circular reference in metadata?)"};let n=new TextEncoder().encode(r).length;return n<=t?{ok:true,bytes:n,maxBytes:t}:{ok:false,bytes:n,maxBytes:t,reason:`Report payload ${Po(n)} exceeds limit ${Po(t)}`}}function Po(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(2)} MB`}function es(){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 Kr(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}async function Ot(e){let t=es();if(t){let n=await t.digest("SHA-256",new TextEncoder().encode(e));return Kr(new Uint8Array(n))}let{sha256:r}=await Promise.resolve().then(()=>(Pn(),Dn));return Kr(r(new TextEncoder().encode(e)))}async function Ml(e,t){let r=es();if(r){let s=await r.importKey("raw",new TextEncoder().encode(e),{name:"HMAC",hash:"SHA-256"},false,["sign"]),a=await r.sign("HMAC",s,new TextEncoder().encode(t));return Kr(new Uint8Array(a))}let{hmac:n}=await Promise.resolve().then(()=>(Do(),Lo)),{sha256:i}=await Promise.resolve().then(()=>(Pn(),Dn)),o=n(i,new TextEncoder().encode(e),new TextEncoder().encode(t));return Kr(o)}var Ll=60*1024;function Dl(e){return {mushiBeacon:true,path:e.path,headers:e.headers,body:e.body}}function Pl(e,t=typeof location<"u"?location.origin:""){if(!e)return false;if(e.startsWith("/"))return true;if(!t)return false;try{return new URL(e,t).origin===t}catch{return false}}function $l(e){try{let t=e.startsWith("/")?new URL(e,"https://tunnel.local"):new URL(e);return `${t.pathname}${t.search}`}catch{return e}}function Bl(e){let t=e.fetchImpl??(typeof fetch=="function"?fetch:void 0);if(t)try{return t(e.url,{method:"POST",headers:{"Content-Type":"application/json",...e.headers},body:e.body,keepalive:!0}),!0}catch{}let r=e.sendBeacon??(typeof navigator<"u"?navigator.sendBeacon?.bind(navigator):void 0);if(!r||!Pl(e.url))return false;let n=e.body;try{n=JSON.parse(e.body);}catch{n=e.body;}let i=JSON.stringify(Dl({path:e.path??$l(e.url),headers:e.headers,body:n}));if(i.length>Ll)return false;try{return r(e.url,new Blob([i],{type:"application/json"}))}catch{return false}}var ts=false;function rs(){ts=true;}function Ol(){return ts}var sr=null;function ns(){let e=sr;return sr=null,!!e&&Bl(e)}var $o=false,Fl="X-Mushi-User-Token",Hl="X-Mushi-Project",Nl="X-Mushi-SDK-Package",Ul="X-Mushi-SDK-Version";function ql(e){let t={"Content-Type":"application/json","X-Mushi-Api-Key":e.apiKey,[Hl]:e.projectId};return e.sdkPackage&&(t[Nl]=e.sdkPackage),e.sdkVersion&&(t[Ul]=e.sdkVersion),e.userToken&&(t[Fl]=e.userToken),e.internalKind&&(t[Yr]=e.internalKind),t}var ar="https://dxptnwrhwsqckaftyymj.supabase.co/functions/v1/api",Yr="X-Mushi-Internal",hr="__mushiInternal";function jl(e,t){let r=t?.trim();return r?r.replace(/\/$/,""):(e??ar).replace(/\/$/,"")}var Wl=1e4,Kl=2,Vl=4,zl=3e4,Gl=1e4;function is(e){let{projectId:t,apiKey:r,apiEndpoint:n=ar,tunnel:i,timeout:o=Wl,maxRetries:s=Kl,getUserToken:a,sdkPackage:u,sdkVersion:c,circuitBreaker:p}=e,h=jl(n,i),m=p?.enabled!==false,w=Math.max(1,p?.threshold??Vl),x=Math.max(1e3,p?.cooldownMs??zl),g=0,y=0,C=()=>m&&y>Date.now(),R=()=>{g=0,y=0;},v=()=>{m&&(g+=1,g>=w&&(y=Date.now()+x));};async function T(E,f,b,_=s,B,j,q){let re=B!=="reporter-poll";if(re&&C())return {ok:false,error:{code:"CIRCUIT_OPEN",message:"Endpoint temporarily unavailable; retrying later."}};let Q=`${h}${f}`,we=new AbortController,M=setTimeout(()=>we.abort(),o),Se=a?.()??null,ae={...ql({apiKey:r,projectId:t,sdkPackage:u,sdkVersion:c,userToken:Se,internalKind:B}),...j},Ke=b?JSON.stringify(b):void 0,ne=null;Ke&&E!=="GET"&&B!=="reporter-poll"&&(ne={url:Q,headers:ae,body:Ke,path:f},sr=ne);try{let H=await fetch(Q,{method:E,headers:ae,body:Ke,keepalive:Ol(),signal:we.signal,...q?{cache:q}:{},...B?{[hr]:B}:{}});if(clearTimeout(M),H.status===307||H.status===308){let Y=H.headers.get("Location");if(Y&&_>0){let k=Y.replace(/\/v1\/.*$/,"").replace(/\/$/,"");if(k!==h)return h=k,T(E,f,b,_-1,B,j,q)}}if(!H.ok){let Y=await H.json().catch(()=>({}));if((H.status===401||H.status===403)&&!$o){$o=!0;let W=h===ar?"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 ${H.status}). Check your Project ID and API key scope (must be "report:write"). `+W);}let k=H.status===429,D=H.status>=500||k,O=k?Yl(H.headers.get("Retry-After")):null,F=O===null||O<=Gl;return D&&_>0&&F?(await Bo(O??Oo(s-_)),T(E,f,b,_-1,B,j)):(re&&(D?v():R()),{ok:!1,error:{code:Y.error?.code||`HTTP_${H.status}`,message:Y.error?.message||Y.message||`HTTP ${H.status} error`,status:H.status}})}let me=await H.json(),Re=me&&typeof me=="object"&&"ok"in me&&"data"in me?me.data:me;return re&&R(),{ok:!0,data:Re}}catch(H){return clearTimeout(M),_>0&&Xl(H)?(await Bo(Oo(s-_)),T(E,f,b,_-1,B,j)):(re&&v(),{ok:false,error:{code:"NETWORK_ERROR",message:H instanceof Error?H.message:"Unknown network error"}})}finally{sr===ne&&(sr=null);}}async function A(E,f,b,_){try{let B=await Ot(b),j=String(Date.now());return await T(E,f,_,s,"reporter-poll",{"X-Reporter-Token-Hash":B,"X-Reporter-Ts":j,"X-Reporter-Hmac":await Ml(r,`${t}.${j}.${B}`)})}catch(B){return {ok:false,error:{code:"NETWORK_ERROR",message:B instanceof Error?B.message:"Unknown error"}}}}return {async submitReport(E){let f=Il(E);return f.ok?T("POST","/v1/reports",E,s,"report-submit"):{ok:false,error:{code:f.serializeFailed?"SERIALIZE_FAILED":"PAYLOAD_TOO_LARGE",message:f.reason??"Report payload exceeds size limit"}}},async getReportStatus(E){return T("GET",`/v1/reports/${E}/status`,void 0,s,"report-status")},async getSdkConfig(E){return T("GET","/v1/sdk/config",void 0,s,"sdk-config",void 0,E?.fresh?"no-store":void 0)},async askAssistant(E){return T("POST","/v1/sdk/assistant",{message:E.message,threadId:E.threadId??null,context:E.context??null},1,"community")},async getLatestSdkVersion(E){let f=new URLSearchParams({package:E}).toString();return T("GET",`/v1/sdk/latest-version?${f}`,void 0,s,"sdk-config")},async postDiscoveryEvent(E){return T("POST","/v1/sdk/discovery",E,1,"discovery")},async listReporterReports(E){return A("GET","/v1/reporter/reports",E)},reporterRequest:A,async listReporterComments(E,f){return A("GET",`/v1/reporter/reports/${E}/comments`,f)},async replyToReporterReport(E,f,b,_){return A("POST",`/v1/reporter/reports/${E}/reply`,f,{body:b,..._?{feedback_signal:_}:{}})},async reopenReporterReport(E,f,b){return A("POST",`/v1/reporter/reports/${E}/reopen`,f,{note:b??""})},async listNotifications(E,f){let b=new URLSearchParams;f?.since&&b.set("since",f.since),f?.limit&&b.set("limit",String(f.limit));let _=b.size?`?${b.toString()}`:"";return A("GET",`/v1/notifications${_}`,E)},async markNotificationRead(E,f){return A("POST",`/v1/notifications/${E}/read`,f,{})},async listReporterFeatureBoard(E){return A("GET","/v1/reporter/feature-board",E)},async voteReporterFeatureBoard(E,f){return A("POST",`/v1/reporter/feature-board/${E}/vote`,f,{})},async postSessionEvent(E){return T("POST","/v1/sdk/session",E,1,"discovery")},async postProductEvents(E){return T("POST","/v1/sdk/events",E,1,"discovery")},async submitActivity(E,f,b){return T("POST","/v1/sdk/activity",{user_id:E,user_traits:b?.userTraits,opted_in:b?.optedIn,reporter_token_hash:b?.reporterTokenHash,...b?.hostJwt?{host_jwt:b.hostJwt}:{},events:f},1,"discovery")},async getMyPoints(E){return T("GET",`/v1/sdk/me/points?userId=${encodeURIComponent(E)}`,void 0,1,"reporter-poll")},async getMyTier(E){return T("GET",`/v1/sdk/me/tier?userId=${encodeURIComponent(E)}`,void 0,1,"reporter-poll")},async getMyHistory(E,f){let b=new URLSearchParams({userId:E,...f?.limit?{limit:String(f.limit)}:{}});return T("GET",`/v1/sdk/me/history?${b}`,void 0,1,"reporter-poll")},async getHallOfFame(E=10){return T("GET",`/v1/sdk/hall-of-fame?limit=${E}`,void 0,1,"reporter-poll")},async sendMagicLink(E){return T("POST","/v1/tester/magic-link",{email:E},1,"community")},async linkReporterToken(E,f){return T("POST","/v1/tester/link-reporter",{reporter_token_hash:E},1,"community",{Authorization:`Bearer ${f}`})},async getCrossAppReports(E,f){let b=new URLSearchParams;f?.limit&&b.set("limit",String(f.limit)),f?.offset&&b.set("offset",String(f.offset));let _=b.size?`?${b.toString()}`:"";return T("GET",`/v1/tester/cross-app-reports${_}`,void 0,1,"community",{Authorization:`Bearer ${E}`})},async getMyReputation(E){return T("GET","/v1/tester/reputation",void 0,1,"community",{Authorization:`Bearer ${E}`})},async getPublicLeaderboard(E=20){return T("GET",`/v1/public/tester-leaderboard?limit=${E}`,void 0,1,"reporter-poll")},async getTesterStatus(E){return T("GET","/v1/me/tester-status",void 0,1,"community",{Authorization:`Bearer ${E}`})}}}function Bo(e){return new Promise(t=>setTimeout(t,e))}function Oo(e){return Math.min(1e3*2**e+Math.random()*500,1e4)}function Yl(e,t=Date.now()){if(!e)return null;let r=e.trim();if(!r)return null;let n=Number(r);if(Number.isFinite(n))return n<0?null:n*1e3;let i=Date.parse(r);return Number.isNaN(i)?null:Math.max(i-t,0)}function Xl(e){return e instanceof DOMException&&e.name==="AbortError"||e instanceof TypeError}function $n(e,t){if(!e||!t||t.length===0)return false;for(let r of t){if(typeof r=="string"){if(e.includes(r))return true;continue}try{if(r.lastIndex=0,r.test(e))return !0}catch{}}return false}function fr(e){if($n(e.message,e.ignoreErrors))return true;let t=e.filename?.trim()||"";return !!(t&&$n(t,e.denyUrls)||e.allowUrls&&e.allowUrls.length>0&&(!t||!$n(t,e.allowUrls)))}function Bn(...e){return e.find(t=>t!==void 0&&t!=="")}function Le(e){try{let t=undefined;return typeof t=="object"&&t!==null?t[e]:void 0}catch{return}}function Je(e){try{return e()}catch{return}}function Xn(){let e=Bn(Le("VITE_MUSHI_PROJECT_ID"),Le("NEXT_PUBLIC_MUSHI_PROJECT_ID"),Le("NUXT_PUBLIC_MUSHI_PROJECT_ID"),Le("EXPO_PUBLIC_MUSHI_PROJECT_ID"),Je(()=>process.env.NEXT_PUBLIC_MUSHI_PROJECT_ID),Je(()=>process.env.EXPO_PUBLIC_MUSHI_PROJECT_ID),Je(()=>process.env.MUSHI_PROJECT_ID)),t=Bn(Le("VITE_MUSHI_API_KEY"),Le("NEXT_PUBLIC_MUSHI_API_KEY"),Le("NUXT_PUBLIC_MUSHI_API_KEY"),Le("EXPO_PUBLIC_MUSHI_API_KEY"),Je(()=>process.env.NEXT_PUBLIC_MUSHI_API_KEY),Je(()=>process.env.EXPO_PUBLIC_MUSHI_API_KEY),Je(()=>process.env.MUSHI_API_KEY)),r=Bn(Le("VITE_MUSHI_API_ENDPOINT"),Le("NEXT_PUBLIC_MUSHI_API_ENDPOINT"),Le("NUXT_PUBLIC_MUSHI_API_ENDPOINT"),Le("EXPO_PUBLIC_MUSHI_API_ENDPOINT"),Je(()=>process.env.NEXT_PUBLIC_MUSHI_API_ENDPOINT),Je(()=>process.env.EXPO_PUBLIC_MUSHI_API_ENDPOINT),Je(()=>process.env.MUSHI_API_ENDPOINT)),n={};return e&&(n.projectId=e),t&&(n.apiKey=t),r&&(n.apiEndpoint=r),n}var Jl=["VITE_","NEXT_PUBLIC_","NUXT_PUBLIC_","EXPO_PUBLIC_",""],Zl={projectId:"MUSHI_PROJECT_ID",apiKey:"MUSHI_API_KEY"};function os(){let e=Xn(),t=[];if(e.projectId||t.push("projectId"),e.apiKey||t.push("apiKey"),t.length===0)return {resolved:e,missing:t,nearMisses:[],message:null};let r=(()=>{try{let a=undefined;return typeof a=="object"&&a!==null?a:null}catch{return null}})(),n=(()=>{try{return typeof process<"u"&&process.env?process.env:null}catch{return null}})(),i=[];for(let a of t)for(let u of Jl){let c=`${u}${Zl[a]}`;r&&r[c]?i.push({field:a,key:c,via:"import.meta.env"}):n&&n[c]&&i.push({field:a,key:c,via:"process.env"});}let o=r?"VITE_MUSHI_*":"NEXT_PUBLIC_MUSHI_* (Next.js), EXPO_PUBLIC_MUSHI_* (Expo), or MUSHI_* (Node / React Native)",s=[`[mushi] Missing ${t.join(" and ")} \u2014 the SDK will not initialize.`];for(let a of i)s.push(`[mushi] Found ${a.key} in ${a.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 s.push(`[mushi] This runtime reads: ${o}. Set the matching variable(s) and restart your dev server.`),i.length===0&&s.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:e,missing:t,nearMisses:i,message:s.join(`
13
- `)}}var Fo=["production-calm","beta-loud","internal-debug","manual-only","minimal","standard","full"],Ql=["projectId","apiKey","apiEndpoint","tunnel","timeout","maxRetries","circuitBreaker","preset","runtimeConfig","analytics","trackSessions","sentry","widget","notifications","capture","privacy","proactive","preFilter","integrations","offline","rewards","assistant","debug","enabled","appVersion","sampleRate","replaySampleRate","replaysOnErrorSampleRate","beforeSend","beforeSendFeedback","ignoreErrors","denyUrls","allowUrls","onCrashedLastRun"];function ec(e){switch(e){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 ss(e){let t=ec(e.preset);return t?{...e,widget:{...t.widget,...e.widget},capture:{...t.capture,...e.capture},proactive:{...t.proactive,...e.proactive,cooldown:{...t.proactive?.cooldown,...e.proactive?.cooldown}}}:e}function tc(){let e=t=>t==="1"||t==="true";try{if(typeof process<"u"&&process.env&&e(process.env.MUSHI_SILENT))return !0}catch{}try{let t=undefined;if(t&&typeof t=="object"&&(e(t.MUSHI_SILENT)||e(t.VITE_MUSHI_SILENT)))return !0}catch{}return false}function as(e){try{if(tc()||!e||typeof e!="object")return;let t=Object.keys(e).filter(r=>!Ql.includes(r));t.length>0&&console.error(`[mushi] Unknown config key${t.length>1?"s":""}: ${t.map(r=>`\`${r}\``).join(", ")} \u2014 check for typos (see MushiConfig). Ignored.`),e.preset!==void 0&&!Fo.includes(e.preset)&&console.error(`[mushi] Unknown preset \`${String(e.preset)}\` \u2014 expected one of ${Fo.map(r=>`'${r}'`).join(", ")}. Preset ignored.`);}catch{}}var rc=10,nc=2e3,ic=[/^(.)\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],oc=/^[bcdfghjklmnpqrstvwxz]{6,}/i;function us(e={}){let{enabled:t=true,blockObviousSpam:r=true,minDescriptionLength:n=rc,maxDescriptionLength:i=nc}=e;function o(a){if(!t)return {passed:true};let u=a.trim();if(u.length<n)return {passed:false,reason:`Too short (min ${n} characters)`};if(u.length>i)return {passed:false,reason:`Too long (max ${i} characters)`};if(r){for(let p of ic)if(p.test(u))return {passed:false,reason:"Detected as spam"};if(oc.test(u))return {passed:false,reason:"Detected as gibberish"};if(u.split(/\s+/).filter(p=>p.length>1).length<2)return {passed:false,reason:"Description needs at least 2 words"}}return {passed:true}}function s(a){let u=a.trim();return u.length<=i?u:u.slice(0,i)+"..."}return {check:o,truncate:s}}var Ho={debug:10,info:20,warn:30,error:40,fatal:50,silent:99},sc={debug:"DBG",info:"INF",warn:"WRN",error:"ERR",fatal:"FTL"},ye={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"},ac={debug:ye.dim,info:ye.green,warn:ye.yellow,error:ye.red,fatal:`${ye.bgRed}${ye.white}${ye.bold}`};function uc(){try{if(typeof globalThis.Deno<"u")return "json"}catch{}let e=typeof globalThis.process<"u"?globalThis.process:void 0;if(e?.env){if(e.env.NODE_ENV==="production"||e.env.LOG_FORMAT==="json")return "json";if(e.env.LOG_FORMAT==="pretty"||e.stdout?.isTTY)return "pretty"}return typeof globalThis.window<"u"?"pretty":"json"}function lc(e){let t=[];for(let[r,n]of Object.entries(e))n!=null&&(typeof n=="object"?t.push(`${r}=${JSON.stringify(n)}`):t.push(`${r}=${String(n)}`));return t.join(" ")}function cc(e){let{ts:t,level:r,scope:n,msg:i,...o}=e,s=t.slice(11,23),a=ac[r]??"",u=sc[r]??r.toUpperCase(),c=Object.keys(o).length>0?` ${ye.dim}${lc(o)}${ye.reset}`:"";return `${ye.dim}${s}${ye.reset} ${a}${u}${ye.reset} ${ye.cyan}[${n}]${ye.reset} ${i}${c}`}function dc(e){return JSON.stringify(e)}function pc(e){return e==="stderr"?(t,r)=>{console.error(r);}:(t,r)=>{switch(t){case "error":case "fatal":console.error(r);break;case "warn":console.warn(r);break;default:console.log(r);}}}function ls(e,t,r,n,i){let o=t;function s(a,u,c){if(Ho[a]<Ho[o])return;let p={ts:new Date().toISOString(),level:a,scope:e,msg:u,...r,...c};i(a,n(p));}return {debug:(a,u)=>s("debug",a,u),info:(a,u)=>s("info",a,u),warn:(a,u)=>s("warn",a,u),error:(a,u)=>s("error",a,u),fatal:(a,u)=>s("fatal",a,u),child(a,u){return ls(`${e}:${a}`,o,{...r,...u},n,i)},setLevel(a){o=a;}}}function ct(e){let{scope:t,level:r="info",meta:n={},format:i="auto",destination:o="stdout"}=e,a=(i==="auto"?uc():i)==="json"?dc:cc,u=pc(o);return ls(t,r,n,a,u)}var Jn={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{},fatal:()=>{},child:()=>Jn,setLevel:()=>{}},hc="mushi-mushi-keyring",yt="keys",cs="offline-queue/v1",Ur=null,qr=null;function fc(){return typeof globalThis<"u"&&typeof globalThis.crypto<"u"&&typeof globalThis.crypto.subtle<"u"&&typeof indexedDB<"u"}function ds(){return new Promise((e,t)=>{let r=indexedDB.open(hc,1);r.onupgradeneeded=()=>{try{let n=r.result;if(!n)return;n.objectStoreNames.contains(yt)||n.createObjectStore(yt);}catch{}},r.onsuccess=()=>{let n=r.result;if(!n||!n.objectStoreNames.contains(yt)){try{n?.close();}catch{}t(new Error("key object store unavailable"));return}e(n);},r.onerror=()=>t(r.error);})}async function mc(){let e=await ds();return new Promise((t,r)=>{let i=e.transaction(yt,"readonly").objectStore(yt).get(cs);i.onsuccess=()=>t(i.result??null),i.onerror=()=>r(i.error);})}async function gc(e){let t=await ds();return new Promise((r,n)=>{let i=t.transaction(yt,"readwrite");i.objectStore(yt).put(e,cs),i.oncomplete=()=>r(),i.onerror=()=>n(i.error);})}async function ps(){if(Ur)return Ur;if(qr)return qr;if(!fc())throw new Error("Web Crypto + IndexedDB required for offline queue encryption");return qr=(async()=>{let e=await mc();if(e)return Ur=e,e;let t=await crypto.subtle.generateKey({name:"AES-GCM",length:256},false,["encrypt","decrypt"]);return await gc(t),Ur=t,t})(),qr}function No(e){let t="";for(let r of e)t+=String.fromCharCode(r);return btoa(t)}function Uo(e){let t=atob(e),r=new Uint8Array(new ArrayBuffer(t.length));for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}async function bc(e){let t=await ps(),r=crypto.getRandomValues(new Uint8Array(12)),n=new TextEncoder().encode(JSON.stringify(e)),i=new Uint8Array(await crypto.subtle.encrypt({name:"AES-GCM",iv:r},t,n));return {_mme:1,iv:No(r),ct:No(i)}}function Ec(e){return !!e&&typeof e=="object"&&e._mme===1&&typeof e.iv=="string"&&typeof e.ct=="string"}async function yc(e){let t=await ps(),r=Uo(e.iv),n=Uo(e.ct),i=await crypto.subtle.decrypt({name:"AES-GCM",iv:r},t,n);return JSON.parse(new TextDecoder().decode(i))}var De=ct({scope:"mushi:queue",level:"warn"}),vc="mushi-mushi",fe="offline-reports",wc=1,On="mushi_offline_queue",Sc=10,xc=6e4,kc=3e4,Rc=8,_c=1440*60*1e3;function hs(e={}){let{enabled:t=true,maxQueueSize:r=50,syncOnReconnect:n=true,encryptAtRest:i=true}=e,o=null,s=null,a=null,u=null,c=null;async function p(k){let D=new Date().toISOString();if(!i)return {...k,queuedAt:D};try{let O=await bc(k);return {id:k.id,queuedAt:D,payload:O}}catch(O){return De.warn("Offline queue: encryption failed, storing plaintext",{err:String(O)}),{...k,queuedAt:D}}}async function h(k){if(m(k))try{return await yc(k.payload)}catch(D){return De.warn("Offline queue: decrypt failed, dropping row",{err:String(D),id:k.id}),null}return k}function m(k){return !!k.payload&&Ec(k.payload)}function w(k){let D=k.attempts;return typeof D=="number"&&Number.isFinite(D)?D:0}function x(k,D){let O=k.queuedAt;if(!O)return false;let F=Date.parse(O);return Number.isNaN(F)?false:D-F>_c}function g(){return a||(typeof indexedDB<"u"?a="indexeddb":typeof localStorage<"u"?a="localstorage":a="none",a)}function y(){return new Promise((k,D)=>{let O=indexedDB.open(vc,wc);O.onupgradeneeded=()=>{try{let F=O.result;if(!F)return;F.objectStoreNames.contains(fe)||F.createObjectStore(fe,{keyPath:"id"});}catch{}},O.onsuccess=()=>{let F=O.result;if(!F||!F.objectStoreNames.contains(fe)){a="localstorage";try{F?.close();}catch{}D(new Error("queue object store unavailable"));return}k(F);},O.onerror=()=>{a="localstorage",D(O.error);};})}async function C(k){let D=await y(),O=await p(k);return new Promise((F,W)=>{let ge=D.transaction(fe,"readwrite");ge.objectStore(fe).put(O),ge.oncomplete=()=>F(),ge.onerror=()=>W(ge.error);})}async function R(){let k=await y();return new Promise((D,O)=>{let W=k.transaction(fe,"readonly").objectStore(fe).getAll();W.onsuccess=()=>D(W.result),W.onerror=()=>O(W.error);})}async function v(k){let D=await y();return new Promise((O,F)=>{let W=D.transaction(fe,"readwrite");W.objectStore(fe).delete(k),W.oncomplete=()=>O(),W.onerror=()=>F(W.error);})}async function T(k){let D=await y();return new Promise((O,F)=>{let W=D.transaction(fe,"readwrite");W.objectStore(fe).put(k),W.oncomplete=()=>O(),W.onerror=()=>F(W.error);})}async function A(){let k=await y();return new Promise((D,O)=>{let W=k.transaction(fe,"readonly").objectStore(fe).count();W.onsuccess=()=>D(W.result),W.onerror=()=>O(W.error);})}async function E(){let k=await y();return new Promise((D,O)=>{let F=k.transaction(fe,"readwrite");F.objectStore(fe).clear(),F.oncomplete=()=>D(),F.onerror=()=>O(F.error);})}function f(){try{let k=localStorage.getItem(On);return k?JSON.parse(k):[]}catch{return []}}function b(k){try{localStorage.setItem(On,JSON.stringify(k));}catch{}}async function _(k){let D=f(),O=await p(k),F=D.findIndex(W=>W.id===k.id);F>=0?D[F]=O:D.push(O),b(D);}function B(k){let D=f().filter(O=>O.id!==k);b(D);}function j(k){let D=f(),O=D.findIndex(F=>F.id===k.id);O>=0&&(D[O]=k,b(D));}async function q(k,D){try{k==="indexeddb"?await v(D):B(D);}catch(O){De.debug("Offline queue: row removal failed (will age out)",{id:D,err:String(O)});}}async function re(k,D){try{return k==="indexeddb"?await T(D):j(D),!0}catch(O){return De.debug("Offline queue: row persist failed",{id:D.id,err:String(O)}),false}}async function Q(){let k=g();if(k==="none")return {backend:k,rows:[]};if(k==="indexeddb")try{return {backend:k,rows:await R()}}catch{a="localstorage";}return {backend:"localstorage",rows:f()}}async function we(k){let D=g();if(D==="none")return De.debug("Offline queue: no storage backend, dropping report",{id:k.id}),D;if(D==="indexeddb")try{return await C(k),D}catch{a="localstorage";}return await _(k),"localstorage"}async function M(k){if(!t)return;if(await H()>=r){De.warn("Offline queue full \u2014 dropping report",{maxQueueSize:r});return}await we(k);}function Se(k){return Math.min(1e3*2**k+Math.random()*500,xc)}function ae(k){return new Promise(D=>setTimeout(D,k))}async function Ke(k){let{backend:D,rows:O}=await Q(),F=O,W=Date.now(),ge=[];for(let be of F)if(x(be,W)){let Ce=be.id;await q(D,Ce),De.debug("Offline queue: evicting stale report",{id:Ce});}else ge.push(be);F=ge;let _e=F.slice(0,Sc),tt=0,G=0;for(let be=0;be<_e.length;be++){let Ce=_e[be],Te=Ce.id,Ae=await h(Ce);if(!Ae){await q(D,Te),G++;continue}let N=await k.submitReport(Ae);if(N.ok){await q(D,Te),tt++;continue}if(G++,N.error?.code==="CIRCUIT_OPEN"){De.debug("Offline queue: circuit open, deferring the rest of the batch",{id:Te,remaining:_e.length-be});break}let At=N.error?.code==="HTTP_400"||N.error?.status===401||N.error?.status===403||N.error?.code==="HTTP_401"||N.error?.code==="HTTP_403"||N.error?.code==="HTTP_413"||N.error?.code==="HTTP_422"||N.error?.code==="INGEST_ERROR"||N.error?.code==="VALIDATION_ERROR"||N.error?.code==="PAYLOAD_TOO_LARGE"||N.error?.code==="SERIALIZE_FAILED"||typeof N.error?.message=="string"&&/invalid payload|description must be at least|validation/i.test(N.error.message),rt=!At&&(N.error?.code==="NETWORK_ERROR"||N.error?.code==="HTTP_429"||N.error?.code==="HTTP_502"||N.error?.code==="HTTP_503"||N.error?.code==="HTTP_504"||typeof N.error?.code=="string"&&N.error.code.startsWith("HTTP_5"));if(At)await q(D,Te);else {let nt=w(Ce)+1;nt>=Rc?(await q(D,Te),De.warn("Offline queue: giving up on report after repeated failures",{id:Te,attempts:nt,code:N.error?.code})):(Ce.attempts=nt,await re(D,Ce)?De.debug("Offline queue: delivery failed, will retry",{id:Te,attempts:nt,code:N.error?.code,classified:rt?"transient":"unclassified"}):(await q(D,Te),De.warn("Offline queue: dropping report (attempt counter unpersistable)",{id:Te,code:N.error?.code})));}be<_e.length-1&&await ae(Se(be));}return {sent:tt,failed:G}}function ne(k){if(!t)return Promise.resolve({sent:0,failed:0});if(u)return c||(c=u.catch(()=>{}).then(()=>(c=null,ne(k)))),c;let D=Ke(k).finally(()=>{u===D&&(u=null);});return u=D,D}async function H(){if(g()==="indexeddb")try{return await A()}catch{a="localstorage";}return f().length}async function me(){if(g()==="indexeddb")try{await E();}catch{}try{localStorage.removeItem(On);}catch{}}function Re(k){if(!t||!n||typeof window>"u")return;o&&Y();let D=()=>{navigator.onLine&&ne(k).catch(O=>{De.warn("Offline queue auto-flush failed",{err:String(O)});});};window.addEventListener("online",D),s=setInterval(()=>{H().then(O=>{O>0&&D();});},kc),o=()=>{window.removeEventListener("online",D),s&&(clearInterval(s),s=null);};}function Y(){o?.(),o=null;}return {enqueue:M,flush:ne,size:H,clear:me,startAutoSync:Re,stopAutoSync:Y}}function Zn(){let e=typeof navigator<"u"?navigator:void 0,t=typeof window<"u"?window:void 0,r=typeof document<"u"?document:void 0,n=typeof screen<"u"?screen:void 0;Tc(e);let i=e&&"connection"in e?e.connection:void 0,o=t,s=!!o?.Capacitor,a=!!o?.cordova,u=e?.product==="ReactNative"||typeof globalThis.HermesInternal<"u",c=s||a||u?{...s?{capacitor:true}:{},...a?{cordova:true}:{},...u?{reactNative:true}:{}}:void 0;return {userAgent:e?.userAgent??"unknown",platform:e?.platform??"unknown",language:e?.language??"en",viewport:{width:t?.innerWidth??0,height:t?.innerHeight??0},url:t?.location?.href??"",referrer:r?.referrer??"",timestamp:new Date().toISOString(),timezone:Intl?.DateTimeFormat?.()?.resolvedOptions?.()?.timeZone??"UTC",connection:i?{effectiveType:i.effectiveType,downlink:i.downlink,rtt:i.rtt}:void 0,deviceMemory:e?.deviceMemory,hardwareConcurrency:e?.hardwareConcurrency,route:t?.location?.pathname,nearestTestid:Cc(r),userAgentData:Ic(e),screen:Mc(n,t),prefersColorScheme:Lc(t),prefersReducedMotion:Pe(t,"(prefers-reduced-motion: reduce)"),prefersReducedData:Pe(t,"(prefers-reduced-data: reduce)"),prefersContrast:Dc(t),forcedColors:Pe(t,"(forced-colors: active)"),online:typeof e?.onLine=="boolean"?e.onLine:void 0,displayMode:Pc(t),documentTitle:r?.title?.slice(0,200),buildId:$c(r),pageLoadTiming:Bc(t),...c?{native:c}:{}}}function Cc(e){if(!e)return;let t=e.activeElement??null,r=0;for(;t&&r<20;){let n=t.getAttribute?.("data-testid");if(n)return n;t=t.parentElement,r++;}}var Fe=null,qo=false;function Tc(e){if(qo)return;let t=e?.userAgentData;t?.getHighEntropyValues&&(qo=true,t.getHighEntropyValues(["architecture","bitness","model","platformVersion","uaFullVersion","fullVersionList"]).then(r=>{Fe=r;}).catch(()=>{}));}function Ac(e){if(!e?.length)return;let t=e.filter(n=>!/not.?a.?brand/i.test(n.brand));return t.length===0?void 0:t.find(n=>!/chromium|google chrome/i.test(n.brand))??t[0]}function Ic(e){let t=e?.userAgentData;if(!t&&!Fe)return;let r=Fe?.fullVersionList,n=Ac(r??t?.brands),i={};return n&&(i.browser=n.brand,i.browserVersion=n.version),t?.platform&&(i.os=t.platform),Fe?.platformVersion&&(i.osVersion=Fe.platformVersion),typeof t?.mobile=="boolean"&&(i.mobile=t.mobile),Fe?.model&&(i.model=Fe.model),Fe?.architecture&&(i.architecture=Fe.architecture),Fe?.bitness&&(i.bitness=Fe.bitness),Object.keys(i).length===0?void 0:i}function Mc(e,t){if(!e&&!t)return;let r={};typeof e?.width=="number"&&(r.width=e.width),typeof e?.height=="number"&&(r.height=e.height),typeof t?.devicePixelRatio=="number"&&(r.devicePixelRatio=t.devicePixelRatio),typeof e?.colorDepth=="number"&&(r.colorDepth=e.colorDepth);let n=e?.orientation?.type;return n&&(r.orientation=n),Object.keys(r).length===0?void 0:r}function Pe(e,t){if(e?.matchMedia)try{return e.matchMedia(t).matches}catch{return}}function Lc(e){if(e?.matchMedia)return Pe(e,"(prefers-color-scheme: dark)")?"dark":Pe(e,"(prefers-color-scheme: light)")?"light":"no-preference"}function Dc(e){if(e?.matchMedia)return Pe(e,"(prefers-contrast: more)")?"more":Pe(e,"(prefers-contrast: less)")?"less":Pe(e,"(prefers-contrast: custom)")?"custom":"no-preference"}function Pc(e){if(e?.matchMedia){if(Pe(e,"(display-mode: fullscreen)"))return "fullscreen";if(Pe(e,"(display-mode: standalone)"))return "standalone";if(Pe(e,"(display-mode: minimal-ui)"))return "minimal-ui";if(Pe(e,"(display-mode: browser)"))return "browser"}}function $c(e){if(!e)return;let r=e.querySelector?.('meta[name="mushi:build"]')?.content?.trim();if(r)return r.slice(0,64)}function Bc(e){let t=e?.performance;if(!t?.getEntriesByType)return;let r;try{r=t.getEntriesByType("navigation")[0];}catch{return}if(!r)return;let n=r.startTime??0,i={};return r.domContentLoadedEventEnd>0&&(i.domContentLoadedMs=Math.round(r.domContentLoadedEventEnd-n)),r.loadEventEnd>0&&(i.loadCompleteMs=Math.round(r.loadEventEnd-n)),r.responseStart>0&&(i.timeToFirstByteMs=Math.round(r.responseStart-n)),typeof r.type=="string"&&(i.navigationType=r.type),Object.keys(i).length===0?void 0:i}var Fn="mushi_reporter_token";function Oc(e){return `mushi:reporter-token:${e}`}function jo(){if(typeof crypto<"u"&&crypto.randomUUID)return `mushi_${crypto.randomUUID()}`;let e=new Uint8Array(16);if(typeof crypto<"u")crypto.getRandomValues(e);else for(let r=0;r<e.length;r++)e[r]=Math.floor(Math.random()*256);return `mushi_${Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}`}function Hn(e){if(typeof localStorage>"u")return null;try{let t=localStorage.getItem(e);return t&&t.length>0?t:null}catch{return null}}function Wo(e,t){if(!(typeof localStorage>"u"))try{localStorage.setItem(e,t);}catch{}}function te(e){if(!e){let o=Hn(Fn);if(o)return o;let s=jo();return Wo(Fn,s),s}let t=Oc(e),r=Hn(t);if(r)return r;let i=Hn(Fn)??jo();return Wo(t,i),i}function Qn(){let e=typeof crypto<"u"?crypto:void 0;if(e?.randomUUID)return e.randomUUID();let t=new Uint8Array(16);if(e?.getRandomValues)e.getRandomValues(t);else for(let n=0;n<t.length;n++)t[n]=Math.floor(Math.random()*256);t[6]=t[6]&15|64,t[8]=t[8]&63|128;let r=Array.from(t,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 Ko="mushi_fingerprint_hash";function Fc(){let e=typeof navigator<"u"?navigator:void 0,t=typeof screen<"u"?screen:void 0,r=typeof window<"u"?window:void 0;return {userAgent:e?.userAgent??"unknown",platform:e?.platform??"unknown",language:e?.language??"en",timezone:Intl?.DateTimeFormat?.()?.resolvedOptions?.()?.timeZone??"UTC",screenWidth:t?.width??0,screenHeight:t?.height??0,pixelRatio:r?.devicePixelRatio??1,deviceMemory:e?.deviceMemory,hardwareConcurrency:e?.hardwareConcurrency}}async function Hc(e){if(typeof crypto<"u"&&crypto.subtle){let r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return `fbk_${(t>>>0).toString(16).padStart(8,"0")}`}async function fs(){if(typeof localStorage<"u"){let n=localStorage.getItem(Ko);if(n)return n}let e=Fc(),t=JSON.stringify(e),r=await Hc(t);if(typeof localStorage<"u")try{localStorage.setItem(Ko,r);}catch{}return r}var Vo="mushi_session_id",jr=null;function Rt(){if(jr)return jr;if(typeof sessionStorage<"u"){let t=sessionStorage.getItem(Vo);if(t)return jr=t,t}let e=Nc();if(jr=e,typeof sessionStorage<"u")try{sessionStorage.setItem(Vo,e);}catch{}return e}function Nc(){return `ms_${Date.now().toString(36)}_${Uc()}`}function Uc(){let e=typeof crypto<"u"?crypto:void 0,t=new Uint8Array(4);if(e?.getRandomValues)e.getRandomValues(t);else for(let n=0;n<t.length;n++)t[n]=Math.floor(Math.random()*256);let r=0;for(let n of t)r=r*256+n>>>0;return (r%36**6).toString(36).padStart(6,"0")}var qc=/HeadlessChrome|PhantomJS|Lighthouse|\bbot\b|bot[/-]|crawler|spider/i;function ms(e){return "mushi_events_consent_"+e}var Un=new Set;function jc(){if(typeof navigator>"u")return false;let e=navigator;if(e.globalPrivacyControl===true)return true;let t=typeof window<"u"?window.doNotTrack:void 0,r=e.doNotTrack??e.msDoNotTrack??t;return r==="1"||r==="yes"}function Wc(){return typeof navigator>"u"?false:navigator.webdriver===true?true:qc.test(navigator.userAgent??"")}function gs(e){return e?.enabled===false?"disabled":e?.respectDoNotTrack!==false&&jc()?"dnt":e?.excludeBots!==false&&Wc()?"automation":null}function Kc(e){if(!e)return null;try{let t=localStorage.getItem(ms(e));return t==="granted"||t==="denied"?t:null}catch{return null}}function Vc(e,t){if(e)try{localStorage.setItem(ms(e),t);}catch{}}function bs(e,t){let r=Kc(e);return t?.consent==="required"?r??"pending":r==="denied"?"denied":"granted"}function zc(e,t){Vc(e,t);for(let r of [...Un])try{r(t);}catch{}}function Es(e){return Un.add(e),()=>{Un.delete(e);}}var Gc=6e4,ur=null,ys,Vr=null,vs=null,ei=0,ws,Pt=null,lr=false,cr=false,xt=false,qn=false,jn=null;function Yc(){return new Date().toISOString()}function $t(){return typeof window>"u"?"":window.location.pathname}function Xc(){if(typeof document>"u"||!document.referrer)return null;try{return new URL(document.referrer).origin}catch{return null}}function Jc(){return typeof navigator>"u"?null:navigator.userAgent??null}function Xr(e,t){return {kind:e,session_id:Rt(),ts:Yc(),page_view_count:ei,reporter_token_hash:vs,user_id_hash:Vr,user_agent:Jc(),sdk_version:ys,...t}}function Jr(e){!ur||!xt||(ur.postSessionEvent(e).catch(()=>{}),Zr());}function ti(){clearTimeout(ws);}function Zr(){ti(),!(!xt||globalThis.document?.visibilityState==="hidden")&&(ws=setTimeout(()=>{Jr(Xr("session_heartbeat",{route:$t()}));},Gc));}function Wn(e){xt&&e!==Pt&&(Pt=e,ei+=1,Jr(Xr("page_view",{route:e})));}function Ss(){lr||!xt||(lr=true,Jr(Xr("session_end",{route:$t()})),ti());}function zo(){xt||!cr||(xt=true,qn?Zr():(qn=true,ei=1,Pt=$t(),Jr(Xr("session_start",{route:Pt,referrer:Xc()}))));}function Zc(){document.visibilityState==="hidden"?Ss():(lr=false,Zr());}function Qc(){Ss();}function ed(e){e.persisted&&(lr=false,Zr());}function xs(){xt=false,ti();}function ks(e){cr||typeof window>"u"||gs(e.analytics)===null&&(cr=true,ur=e.client,ys=e.sdkVersion,vs=e.reporterToken??e.reporterTokenHash??null,Vr=e.userIdHash??null,typeof document<"u"&&document.addEventListener("visibilitychange",Zc,{passive:true}),window.addEventListener("pagehide",Qc,{passive:true}),window.addEventListener("pageshow",ed,{passive:true}),jn=Es(t=>{t==="granted"?zo():xs();}),bs(e.projectId??"",e.analytics)==="granted"&&zo());}function ri(e){!cr||!ur||Wn($t());}function ni(e){e&&e!==Vr&&(Pt=null),Vr=e;}function Rs(){xs(),jn?.(),jn=null,cr=false,qn=false,Pt=null,lr=false,ur=null;}var rd=/^[a-z][a-z0-9_]{1,63}$/,vt={maxKeys:40,maxKeyLength:64,maxValueLength:256,maxBytes:8192,maxClientBatch:20,maxServerBatch:50,maxEventNamesPerProject:200},nd="$",id=/(email|phone|password|passwd|token|secret|ssn|address|credit|card|iban)/i;function sd(e){return typeof e=="string"&&rd.test(e)}function Yo(e,t={}){let r={},n=[];if(!e||typeof e!="object"||Array.isArray(e))return {properties:r,dropped:n};let i=new Set(t.allowlist??[]),o=0;for(let[s,a]of Object.entries(e)){if(o>=vt.maxKeys){n.push(s);continue}let u=s.slice(0,vt.maxKeyLength);if(u.startsWith(nd)&&!t.allowReserved){n.push(u);continue}if(id.test(u)&&!i.has(u)){n.push(u);continue}let c;if(a===null||typeof a=="boolean")c=a;else if(typeof a=="number")c=Number.isFinite(a)?a:null;else if(typeof a=="string"){let p=a.slice(0,vt.maxValueLength);c=t.scrub?t.scrub(p):p;}else if(a instanceof Date)c=a.toISOString();else {n.push(u);continue}r[u]=c,o+=1;}return {properties:r,dropped:n}}function ad(e){try{return JSON.stringify(e).length<=vt.maxBytes}catch{return false}}var zr=null,dr="",wt=null,Qr=null,ii=null,_s,ut=oi(),Kn,Vn,Ue=[],Lt=[],ve="granted",pr=true,Wr=null,kt=false,Nn=false,St=false,zn=null,ud=50,Cs=200,ld=1440*60*1e3;function oi(){return {sampleRate:1,autoPageviews:false,flushIntervalMs:5e3,surface:"web",propertyAllowlist:[]}}function Ts(){return new Date().toISOString()}function Gr(){return "mushi_events_spill_"+dr}function cd(e){return e===void 0||e===429||e>=500}function Gn(){return "mushi_analytics_id_"+dr}function dd(){try{let e=localStorage.getItem(Gn());if(e)return e}catch{}return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():"a-"+Math.random().toString(36).slice(2)+Date.now().toString(36)}function pd(){if(wt)try{localStorage.getItem(Gn())!==wt&&localStorage.setItem(Gn(),wt);}catch{}}function hd(e){let t=2166136261;for(let r=0;r<e.length;r+=1)t^=e.charCodeAt(r),t=Math.imul(t,16777619)>>>0;return (t>>>0)/4294967296}function Yn(){try{let e=localStorage.getItem(Gr());if(!e)return [];let t=JSON.parse(e);return !t||Date.now()-t.at>ld?(localStorage.removeItem(Gr()),[]):Array.isArray(t.events)?t.events.slice(0,Cs):[]}catch{return []}}function Dt(e){try{if(e.length===0){localStorage.removeItem(Gr());return}localStorage.setItem(Gr(),JSON.stringify({at:Date.now(),events:e.slice(-Cs)}));}catch{}}function As(){let e=Yn();return e.length>0&&Dt([]),e}function fd(e){return {anon_id:wt,user_id:Qr,user_traits:ii,session_id:Vn?Vn():null,sdk_version:_s,surface:ut.surface,events:e}}async function lt(){if(!zr||Nn||ve!=="granted"||Ue.length===0&&!St)return;Nn=true,pd();let e=Ue.splice(0,vt.maxServerBatch);St&&(e.unshift({name:"identify",ts:Ts(),properties:{}}),St=false);try{let t=await zr.postProductEvents(fd(e));t.ok?Dt([]):cd(t.error?.status)&&Dt([...Yn(),...e.filter(r=>r.name!=="identify")]);}catch{Dt([...Yn(),...e.filter(t=>t.name!=="identify")]);}finally{Nn=false;}Ue.length>=vt.maxClientBatch&&lt();}function md(e){return ve==="denied"?false:ve==="pending"?Lt.length>=ud?false:(Lt.push(e),true):(Ue.push(e),Ue.length>=vt.maxClientBatch&&lt(),true)}function gd(e){if(e==="denied"){ve="denied",Ue=[],Lt=[],St=false,Dt([]);return}let t=ve==="pending";ve="granted",t&&(Ue.push(...As(),...Lt),Lt=[]),(Ue.length>0||St)&&lt();}function bd(e){let t={};for(let[r,n]of Object.entries(e))n!==void 0&&(t[r]=n);return t}function Is(){return !kt||ve==="denied"?null:wt}function Ms(e){if(kt||typeof window>"u")return;let t=e.config??{};if(ut={...oi(),...bd(t),propertyAllowlist:t.propertyAllowlist??[]},dr=e.projectId,gs(t)!==null)return;kt=true,zr=e.client,wt=e.anonId??dd(),Qr=e.userId??null,_s=e.sdkVersion,Kn=e.scrub,Vn=e.getSessionId;let r=Math.min(1,Math.max(0,ut.sampleRate));if(pr=r>=1?true:r<=0?false:hd(wt??"anon")<r,!pr)return;ve=bs(dr,t),ve==="granted"?Ue.push(...As()):ve==="denied"&&Dt([]),zn=Es(gd);let n=Math.max(1e3,ut.flushIntervalMs);Wr=setInterval(()=>{lt();},n);let i=()=>{typeof document<"u"&&document.visibilityState==="hidden"&&lt();};typeof document<"u"&&document.addEventListener("visibilitychange",i,{passive:true}),window.addEventListener("pagehide",()=>{lt();},{passive:true}),ut.autoPageviews&&Ed();}function Bt(e,t,r){if(!kt||!pr||!sd(e))return false;let{properties:n}=Yo(t,{allowlist:ut.propertyAllowlist,scrub:Kn}),i=n;if(r?.reserved){let{properties:o}=Yo(r.reserved,{allowReserved:true,scrub:Kn});i={...n,...o};}return i.$surface=ut.surface,typeof location<"u"&&i.$route===void 0&&(i.$route=location.pathname),ad(i)?md({name:e,ts:r?.ts??Ts(),properties:i,...r?.dedupKey?{dedup_key:r.dedupKey}:{}}):false}function Ls(e){kt||(ve=e),zc(dr,e);}function Ds(e,t){Qr=e,ii=t??null,!(!kt||!pr||!e||ve==="denied")&&(St=true,ve==="granted"&&lt());}function Ps(){return lt()}function $s(){Wr!=null&&(clearInterval(Wr),Wr=null),zn?.(),zn=null,kt=false,zr=null,Ue=[],Lt=[],ve="granted",pr=true,St=false,Qr=null,ii=null,ut=oi();}var Xo=false;function Ed(){if(Xo||typeof history>"u")return;Xo=true;let e=history.pushState;history.pushState=function(...t){let r=e.apply(this,t);return Bt("page_view"),r},window.addEventListener("popstate",()=>{Bt("page_view");},{passive:true});}var yd=10,vd=1,wd=5e3;function Bs(e={}){let{maxBurst:t=yd,refillRate:r=vd,refillIntervalMs:n=wd}=e,i=t,o=Date.now();function s(){let p=Date.now(),h=p-o,m=Math.floor(h/n);m>0&&(i=Math.min(t,i+m*r),o=p);}function a(){return s(),i>0?(i--,true):false}function u(){i=t,o=Date.now();}function c(){return s(),i}return {tryConsume:a,reset:u,availableTokens:c}}var Sd={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}]},Os=Sd.patterns,xd=Os.map(e=>({key:e.configKey,regex:new RegExp(e.source,e.caseInsensitive?"gi":"g"),replacement:e.replacement})),kd=Os.reduce((e,t)=>(e[t.configKey]=t.defaultOn!==false,e),{});function si(e={}){let t={...kd,...e},r=xd.filter(o=>t[o.key]);function n(o){if(!o)return o;let s=o;for(let{regex:a,replacement:u}of r)s=s.replace(new RegExp(a.source,a.flags),u);return s}function i(o,s){let a={...o};for(let u of s)typeof a[u]=="string"&&(a[u]=n(a[u]));return a}return {scrub:n,scrubObject:i}}var Rd=/token|jwt|passw|pwd|secret|api[-_]?key|apikey|auth|session|signature|email|phone|ssn/i,_d=/^(?:key|code|sig)$/i;function Cd(e){let t=e;try{t=decodeURIComponent(e);}catch{}return Rd.test(t)||_d.test(t)}function Td(e,t){return e.split("&").map(r=>{let n=r.indexOf("=");if(n===-1)return r;let i=r.slice(0,n),o=r.slice(n+1);if(o.length===0)return r;if(Cd(i))return `${i}=[Scrubbed]`;let s=o;try{s=decodeURIComponent(o);}catch{}let a=t(s);return a!==s?`${i}=${encodeURIComponent(a)}`:r}).join("&")}function mr(e,t){if(!e||!e.includes("?")&&!e.includes("#"))return e;let{scrub:r}=si(t),n=o=>{let s=o.indexOf("?");return s===-1?o:o.slice(0,s+1)+Td(o.slice(s+1),r)},i=e.indexOf("#");return i===-1?n(e):n(e.slice(0,i))+n(e.slice(i))}var Ad=50,Id=500;function Fs(e={}){let t=Math.max(1,e.max??Ad),r=Math.max(50,e.maxMessageLength??Id),n=[];return {add(i){let o=typeof i.timestamp=="number"?i.timestamp:Date.now(),s=typeof i.message=="string"&&i.message.length>r?`${i.message.slice(0,r)}\u2026`:i.message,a={timestamp:o,category:i.category,level:i.level??"info",message:s??"",...i.data?{data:i.data}:{}};for(n.push(a);n.length>t;)n.shift();},getAll(){return n.slice()},clear(){n=[];},size(){return n.length}}}var Jo=8*1024,Md=1e3;function Hs(e){if(e instanceof Error){let t=e.name||"Error",r=e.message||String(e),n=typeof e.stack=="string"&&e.stack.length>0?e.stack.slice(0,Jo):void 0,i=e.cause;return {name:t,message:r,...n?{stack:n}:{},...i!==void 0?{cause:i instanceof Error?i.message:i}:{}}}if(typeof e=="string")return {name:"Error",message:e};if(e&&typeof e=="object"){let t=e,r=typeof t.name=="string"?t.name:"Error",n=typeof t.message=="string"?t.message:(()=>{try{return JSON.stringify(t).slice(0,Md)}catch{return String(t)}})(),i=typeof t.stack=="string"?t.stack.slice(0,Jo):void 0;return {name:r,message:n,...i?{stack:i}:{}}}return e===void 0?{name:"Error",message:"unknown"}:{name:"Error",message:String(e)}}var ce={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:"#2D7A55",danger:"#B83232"},Ld={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:"#3A9E6E",danger:"#E05555"},ai={free:ce.inkMuted,explorer:"#2563EB",contributor:"#7C3AED",champion:"#D97706",default:ce.accent},en={bg:"#0FFF50",fg:"#0a1a0a",border:"#00C43A"},Ns="#FAF7F0",Us="#ffffff";var ui={light:"#9A2A1E",dark:"#7A1F15"},li={light:"#B52F1F",dark:"#C4321E"},qs={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)"}}},js={light:{bug:{solid:"#D92D20",ink:"#B42318"},slow:{solid:"#B54708",ink:"#93370D"},visual:{solid:"#7A3FE4",ink:"#6427C9"},confusing:{solid:"#2160E0",ink:"#1849A9"},idea:{solid:"#14803C",ink:"#0E6630"},other:{solid:"#667085",ink:"#475467"}},dark:{bug:{solid:"#F97066",ink:"#FDA29B"},slow:{solid:"#F79009",ink:"#FEC84B"},visual:{solid:"#A48AFB",ink:"#C9B8FD"},confusing:{solid:"#5B9BF8",ink:"#9EC5FC"},idea:{solid:"#3CCB7F",ink:"#8DE8B4"},other:{solid:"#98A2B3",ink:"#D0D5DD"}}},Ws={light:{wash:.08,strong:.14},dark:{wash:.14,strong:.24}};function ci(e){return e==="dark"?Ld:ce}var Ks={comfy:12},Vs={control:4},tn={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"},Ft={base:99999,banner:99998,panel:1e5,overlay:2147483647},rn={easeStamp:"cubic-bezier(0.22, 1, 0.36, 1)",durationFast:200},zs={instant:120,panel:300};var dt={bannerHeight:36,fabSize:52,edgeTabWidth:22,gutter:24,panelWidth:360,panelMaxHeight:480,panelSheetBreakpoint:480};function Zo(e){return /^#[0-9a-fA-F]{3,8}$/.test(e)?e:""}function Gs(e,t="",r=""){let n=ci(e),i=Zo(t),o=Zo(r),s=i||n.accent,a=i?e==="dark"?`${s}1F`:`${s}14`:n.accentWash,u=o||n.accentInk;return {accent:s,accentWash:a,accentInk:u}}var Ys={bannerLabel:"Feedback"};function Dd(e){let t=e.length%4===0?"":"=".repeat(4-e.length%4),r=e.replace(/-/g,"+").replace(/_/g,"/")+t;if(typeof atob=="function")return atob(r);let n=globalThis.Buffer;return n?n.from(r,"base64").toString("binary"):""}function Xs(e){if(typeof e!="string")return null;let t=e.split(".");if(t.length!==3)return null;try{let r=Dd(t[1]),n=JSON.parse(r),i=typeof n.projectId=="string"?n.projectId:void 0,o=typeof n.sub=="string"?n.sub:void 0;return !i||!o?null:{projectId:i,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 Pd=new Set(["kensaur.us","www.kensaur.us"]),$d={"glot-it":"glot.it",glotit:"glot.it","solo-boss-cloud":"solo-boss.kensaur.us","mushi-mushi":"kensaur.us","how-to-talk-to-girls":"talk.kensaur.us",htttg:"talk.kensaur.us",tsumagoi:"tsumagoi.kensaur.us"},Bd={"mushi-mushi":"https://kensaur.us/mushi-mushi/admin/favicon.svg","solo-boss-cloud":"https://solo-boss.kensaur.us/favicon.svg","glot-it":"https://kensaur.us/glot-it/apple-touch-icon.png",glotit:"https://kensaur.us/glot-it/apple-touch-icon.png","the-wanting-mind":"https://kensaur.us/the-wanting-mind/pwa-512x512.png","how-to-talk-to-girls":"https://talk.kensaur.us/pwa-192.png",htttg:"https://talk.kensaur.us/pwa-192.png",tsumagoi:"https://tsumagoi.kensaur.us/apple-touch-icon.png","help-her-take-photo":"https://kensaur.us/help-her-take-photo/assets/apple-touch-icon.png","yen-yen":"https://kensaur.us/yen-yen/icon.svg"},Od=["www.google.com","icons.duckduckgo.com","icon.horse"];function Js(e){try{let t=new URL(e).hostname.toLowerCase();return Od.some(r=>t===r||t.endsWith(`.${r}`))}catch{return false}}function Fd(e,t=32){return [`https://${e}/favicon.svg`,`https://${e}/favicon.ico`,`https://${e}/favicon-32x32.png`,`https://${e}/apple-touch-icon.png`]}function Zs(e){let t=[],r=i=>{let o=i?.trim().toLowerCase();!o||t.includes(o)||t.push(o);};r(Nd(e.repo_url)),r($d[e.project_slug.toLowerCase()]);let n=e.sdk_origin?Hd(e.sdk_origin):null;return n&&!Pd.has(n)&&r(n),t}function Qs(e,t=32){if(e.icon_url?.trim())return [e.icon_url.trim()];let r=new Set,n=[],i=s=>{!s||r.has(s)||Js(s)||(r.add(s),n.push(s));},o=Bd[e.project_slug.toLowerCase()];o&&i(o);for(let s of Zs(e))for(let a of Fd(s,t))i(a);return n}function Hd(e){let t=e.trim();if(!t||/^(capacitor|file|content|app):/i.test(t))return null;try{let n=new URL(t.includes("://")?t:`https://${t}`).hostname.toLowerCase();return n==="localhost"||n==="127.0.0.1"||n.endsWith(".local")?null:n}catch{return null}}function Nd(e){if(!e?.trim())return null;try{let t=new URL(e.trim()),r=t.hostname.toLowerCase(),n=t.pathname.replace(/^\/+|\/+$/g,"").split("/").filter(Boolean);if(n.length<2)return null;let i=n[1].replace(/\.git$/i,"").toLowerCase();return /^[a-z0-9][a-z0-9.-]*\.[a-z]{2,}$/i.test(i)||r==="github.com"&&i.endsWith(".github.io")?i:r!=="github.com"&&r!=="www.github.com"?r:null}catch{return null}}function ea(e){return Zs(e)[0]??null}function ta(e){if(typeof document>"u"||!e.complete||e.naturalWidth===0||e.naturalHeight===0)return false;try{let t=document.createElement("canvas"),r=e.naturalWidth,n=e.naturalHeight;t.width=r,t.height=n;let i=t.getContext("2d");if(!i)return !1;i.drawImage(e,0,0);let{data:o}=i.getImageData(0,0,r,n),s=0,a=0,u=0;for(let p=0;p<o.length;p+=4){let h=o[p],m=o[p+1],w=o[p+2];if(o[p+3]<128)continue;s++;let g=Math.max(h,m,w),y=Math.min(h,m,w),C=g-y;u=Math.max(u,C),a+=C;}return s===0?!0:a/s<14&&u<24}catch{return Js(e.src)}}function ra(e){let t=e.trim().split(/[\s._-]+/).filter(Boolean);return t.length>=2?`${t[0][0]??""}${t[1][0]??""}`.toUpperCase():(e.replace(/[^a-zA-Z0-9]/g,"").slice(0,2)||e.slice(0,2)||"?").toUpperCase()}function na(){if(typeof document>"u")return null;let e=['link[rel="icon"]','link[rel="shortcut icon"]','link[rel="apple-touch-icon"]'];for(let t of e){let n=document.querySelector(t)?.href;if(n&&Ud(n))return n}return null}function Ud(e){try{let t=typeof location<"u"?location.href:void 0,r=new URL(e,t).protocol;return r==="http:"||r==="https:"}catch{return false}}async function oa(e,t=Qo){if(!e.startsWith("data:image/")||ia(e)<=t)return e;if(typeof document>"u")return null;let r=new Image;await new Promise((o,s)=>{r.onload=()=>o(),r.onerror=()=>s(new Error("screenshot_decode_failed")),r.src=e;});let n=[.65,.5,.35,.25],i=[1,.85,.7,.55,.4];for(let o of i){let s=document.createElement("canvas"),a=Math.max(1,Math.round(r.naturalWidth*o)),u=Math.max(1,Math.round(r.naturalHeight*o));s.width=a,s.height=u;let c=s.getContext("2d");if(c){c.drawImage(r,0,0,a,u);for(let p of n){let h=s.toDataURL("image/jpeg",p);if(ia(h)<=t)return h}}}return null}function ia(e){let t=e.indexOf(",");if(t<0)return e.length;let r=e.slice(t+1);return Math.ceil(r.length*3/4)}var sa="mushi-launcher-hidden";function aa(){try{return typeof sessionStorage<"u"&&sessionStorage.getItem(sa)==="1"}catch{return false}}function ua(){try{typeof sessionStorage<"u"&&sessionStorage.setItem(sa,"1");}catch{}}var nn="mushi-assistant-session-v1";function la(){try{if(typeof sessionStorage>"u")return null;let e=sessionStorage.getItem(nn);if(!e)return null;let t=JSON.parse(e);if(!t||typeof t!="object")return null;let r=t,n=Array.isArray(r.turns)?r.turns:null;if(!n)return null;let i=[];for(let s of n){if(!s||typeof s!="object")continue;let a=s;if(a.role!=="user"&&a.role!=="assistant"||typeof a.text!="string")continue;let u={role:a.role,text:a.text};if(Array.isArray(a.options)){let c=a.options.filter(p=>typeof p=="string");c.length&&(u.options=c);}a.offerReport===!0&&(u.offerReport=!0),i.push(u);}let o=typeof r.threadId=="string"&&r.threadId.length>0?r.threadId:null;return {turns:i,threadId:o}}catch{return null}}function ca(e){try{if(typeof sessionStorage>"u")return;if(!e.turns.length&&!e.threadId){sessionStorage.removeItem(nn);return}sessionStorage.setItem(nn,JSON.stringify(e));}catch{}}function da(){try{if(typeof sessionStorage>"u")return;sessionStorage.removeItem(nn);}catch{}}var pa="Feature request";function ha(e){let t=Date.parse(e);if(Number.isNaN(t))return "";let r=Date.now()-t;if(r<0)return "just now";let n=Math.floor(r/1e3);if(n<60)return "just now";let i=Math.floor(n/60);if(i<60)return `${i}m ago`;let o=Math.floor(i/60);if(o<24)return `${o}h ago`;let s=Math.floor(o/24);if(s<7)return `${s}d ago`;let a=Math.floor(s/7);return a<5?`${a}w ago`:new Date(t).toLocaleDateString(void 0,{month:"short",day:"numeric"})}var qd="https://kensaur.us/mushi-mushi/",jd="utm_source=widget&utm_medium=powered-by";function fa(e){let t=`${qd}?${jd}`;return e&&/^[0-9a-f]{6,64}$/.test(e)?`${t}&ref=${e}`:t}function ma(e){return (e.metaKey||e.ctrlKey)&&e.key==="Enter"}function ga(e){return /Mac|iPhone|iPad|iPod/i.test(e)?"\u2318":"Ctrl"}function ba(){return typeof navigator>"u"?"":navigator.userAgentData?.platform||navigator.platform||navigator.userAgent||""}function Ea(e,t,r){if(e==="banner")return true;if(e==="console-only"||e==="off")return false;if(t)return true;if(!r)return false;let n=r.hostname.replace(/^\[|\]$/g,"");return r.protocol==="file:"||n==="localhost"||n==="127.0.0.1"||n==="::1"||n==="0.0.0.0"||n.endsWith(".localhost")||n.endsWith(".local")}function Ht(e,t){return new Promise((r,n)=>{let i=setTimeout(()=>n(new Error("Timed out")),t);e.then(o=>{clearTimeout(i),r(o);},o=>{clearTimeout(i),n(o);});})}var Nt=15e3,on=4e3;function ya(e,t){let r={month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",timeZoneName:"short"};try{return e.toLocaleString(t,r)}catch{return e.toLocaleString(void 0,r)}}function _t(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function gr(e){return e?.failureKind==="blocked"||e?.failureKind==="throttled"}function va(e,t){if(!t.includes("*"))return e.includes(t);let r=t.replace(/\/\*\*$|\*\*|\*|[.+?^${}()|[\]\\]/g,n=>n==="/**"?"(/.*)?":n==="**"?".*":n==="*"?"[^/]*":`\\${n}`);return new RegExp(`^${r}$`).test(e.length>1?e.replace(/\/$/,""):e)}function wa(e){let t=e.appDomain??ea({project_id:e.projectId,project_name:e.appName,project_slug:e.appSlug??""}),r=_t(ra(e.appName)),n=Qs({project_id:e.projectId,project_name:e.appName,project_slug:e.appSlug??"",sdk_origin:e.appDomain?`https://${e.appDomain}`:null});return n.length?`<span class="mushi-app-icon" data-mushi-favicon data-candidates="${_t(JSON.stringify(n))}" data-initials="${r}" aria-hidden="true" title="${_t(t??e.appName)}">
9
+ `,p=new Image,h=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(c)}`,b=false,A=T=>{let E=T;/^img-src|^default-src/.test(E.violatedDirective??"")&&/^data/.test(E.blockedURI??"")&&(b=true);};return document.addEventListener("securitypolicyviolation",A),new Promise(T=>{let E=false,y=(k,v)=>{E||(E=true,clearTimeout(x),document.removeEventListener("securitypolicyviolation",A),v&&t(v),T(k));},x=setTimeout(()=>y(null,"timeout"),5e3);p.onload=()=>{try{if(n.drawImage(p,0,0,i,o),_f(n,i,o)){y(null,"unsupported");return}y(r.toDataURL("image/jpeg",.7));}catch{y(null,"taint");}},p.onerror=()=>setTimeout(()=>y(null,b?"csp":"error"),0),p.src=h;})}async function Kh(e){let t=document.documentElement,r=t.cloneNode(true),n=t.querySelectorAll("link"),i=r.querySelectorAll("link"),o=new Map;n.length===i.length&&n.forEach((h,b)=>o.set(h,i[b]));let{offscreen:s,pins:a,backgrounds:u}=zh(t,r);Sf(t,r);let c=[It,...e?.redactSelectors??Ou,...e?.maskSelectors??[],...e?.blockSelectors??[]];lf(Array.from(t.querySelectorAll(Bu)),Array.from(r.querySelectorAll(Bu)),h=>s.has(h)||c.some(b=>Fu(h,b))),sf(a),await Jh(u.filter(h=>!c.some(b=>Fu(h.live,b)))),r.querySelector("#mushi-mushi-widget")?.remove(),await bf(r,o),gf(r),ff(r),Rf(r),kf(r);let p=[It,...e?.redactSelectors??Ou];for(let h of p)for(let b of Ni(r,h))mf(b);for(let h of e?.blockSelectors??[])for(let b of Ni(r,h))b.remove();for(let h of e?.maskSelectors??[])for(let b of Ni(r,h))Tf(b);return Fi(e)&&$u(r),r}function zh(e,t){let r=new Set,n=[],i=[],o=[e,...Array.from(e.querySelectorAll("*"))],s=[t,...Array.from(t.querySelectorAll("*"))];if(o.length!==s.length)return {offscreen:r,pins:n,backgrounds:i};let a=af(),u=[],c=document.scrollingElement,p=new Map,h=(E,y,x)=>{let k=p.get(E);k||p.set(E,k=new Map),k.set(y,x);},b=[],A=[],T=false;for(let E=0;E<o.length;E++){let y=o[E],x=s[E],k=getComputedStyle(y);if(u.push(k),y===document.body&&(T=true),T)if(k.display==="none")h(x,"display","none");else {let v=y.parentElement;k.visibility!=="visible"&&v&&getComputedStyle(v).visibility==="visible"&&h(x,"visibility",k.visibility),k.opacity==="0"&&h(x,"opacity","0"),k.backgroundImage.includes("url(")&&A.push(E);}if(a.has(y))for(let v of Vh)h(x,v,k.getPropertyValue(v));if(k.position==="sticky"&&y instanceof HTMLElement){let v=uf(y);v&&(h(x,"position","relative"),h(x,"top",`${v.top}px`),h(x,"left",`${v.left}px`),h(x,"bottom","auto"),h(x,"right","auto"));}y!==c&&(y.scrollTop>0||y.scrollLeft>0)&&b.push(E);}for(let E of b){let y=o[E],x=y.children,k=s[E].children;for(let v=0;v<x.length&&v<k.length;v++){let C=getComputedStyle(x[v]);if(C.position==="fixed")continue;let _=p.get(k[v])?.get("transform")??C.transform,g=`translate(${-y.scrollLeft}px, ${-y.scrollTop}px)`;h(k[v],"transform",_&&_!=="none"?`${g} ${_}`:g);}}(window.scrollX||window.scrollY)&&(h(t,"position","relative"),h(t,"top",`${-window.scrollY}px`),h(t,"left",`${-window.scrollX}px`));for(let[E,y]of p){let x=Array.from(y,([k,v])=>`${k}:${v}!important`).join(";");E.setAttribute("style",`${E.getAttribute("style")??""};${x}`);}rf(o,s,u,r,n);for(let E of A)r.has(o[E])||i.push({live:o[E],clone:s[E],value:u[E].backgroundImage});return {offscreen:r,pins:n,backgrounds:i}}async function Jh(e){let t=new Map,r=0,n=i=>{let o=t.get(i);return o||(o=t.size>=Gh?Promise.resolve(null):Qh(i).then(s=>!s||r+s.length>Yh?null:(r+=s.length,s)),t.set(i,o)),o};await Promise.all(e.map(async i=>{let o=Array.from(i.value.matchAll(Zh),u=>u[2].trim()).filter(u=>!u.startsWith("data:"));if(o.length===0)return;let s=await Promise.all(o.map(n)),a=i.value;o.forEach((u,c)=>{s[c]&&(a=a.split(u).join(s[c]));}),a!==i.value&&i.clone.setAttribute("style",`${i.clone.getAttribute("style")??""};background-image:${a}!important`);}));}async function Qh(e){if(typeof fetch!="function")return null;let t=typeof AbortController=="function"?new AbortController:null,r=setTimeout(()=>t?.abort(),Nu);try{let n=await fetch(e,{cache:"force-cache",signal:t?.signal});if(!n.ok)return null;let i=await n.blob();if(i.size>Xh||!i.type.startsWith("image/"))return null;let o=new Uint8Array(await i.arrayBuffer()),s="";for(let a=0;a<o.length;a+=32768)s+=String.fromCharCode(...o.subarray(a,a+32768));return `data:${i.type};base64,${btoa(s)}`}catch{return null}finally{clearTimeout(r);}}function rf(e,t,r,n,i){let o=document.body?e.indexOf(document.body):-1;if(o<0)return;let s=window.innerWidth,a=window.innerHeight,u=new Map,c=new Array(e.length).fill(false),p=new Array(e.length).fill(false);for(let b=o;b<e.length;b++)u.set(e[b],b);c[o]=true;for(let b=e.length-1;b>o;b--){let A=e[b],T=A.getBoundingClientRect();if((T.width>0||T.height>0)&&(T.bottom>0&&T.top<a&&T.right>0&&T.left<s?c[b]=true:p[b]=true),r[b].position==="fixed"&&(c[b]=true),c[b]){p[b]=false;let E=A.parentElement?u.get(A.parentElement):void 0;E!==void 0&&(c[E]=true);}else p[b]&&n.add(A);}let h=new Array(e.length).fill(false);for(let b=o+1;b<e.length;b++){let A=e[b],T=A.parentElement?u.get(A.parentElement):void 0;if(T===void 0)continue;if(h[T]){h[b]=true;continue}if(!p[b]||!(A instanceof HTMLElement))continue;let E=r[b];if(!ef.test(E.display))continue;h[b]=true;let y=tf.test(r[T].display)&&E.float==="none"&&(E.position==="static"||E.position==="relative");i.push({clone:t[b],width:A.offsetWidth,height:A.offsetHeight,marginTop:y?nf(A):null,marginBottom:y?of(A):null});}}function nf(e){let t=e.previousElementSibling;return !(t instanceof HTMLElement)||t.offsetParent!==e.offsetParent?null:Math.max(0,e.offsetTop-(t.offsetTop+t.offsetHeight))}function of(e){let t=e.nextElementSibling;return !(t instanceof HTMLElement)||t.offsetParent!==e.offsetParent?null:Math.max(0,t.offsetTop-(e.offsetTop+e.offsetHeight))}function sf(e){for(let t of e){t.clone.replaceChildren();let r=`width:${t.width}px!important;height:${t.height}px!important;box-sizing:border-box!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;content-visibility:visible!important;contain:none!important;`;t.marginTop!==null&&(r+=`margin-top:${t.marginTop}px!important;`),t.marginBottom!==null&&(r+=`margin-bottom:${t.marginBottom}px!important;`),t.clone.setAttribute("style",`${t.clone.getAttribute("style")??""};${r}`);}}function af(){try{return new Set(document.getAnimations().map(e=>e.effect?.target).filter(e=>e instanceof Element&&!e.pseudoElement))}catch{return new Set}}function uf(e){let t=e.getBoundingClientRect(),r=e.style.getPropertyValue("position"),n=e.style.getPropertyPriority("position");e.style.setProperty("position","static","important");let i=e.getBoundingClientRect();e.style.removeProperty("position"),r&&e.style.setProperty("position",r,n);let o=t.top-i.top,s=t.left-i.left;return o||s?{top:o,left:s}:null}function lf(e,t,r){let n=0,i=0;for(let o=0;o<t.length;o++){let s=t[o],a=e[o],u=a?.getBoundingClientRect(),c=a instanceof HTMLElement&&a.offsetWidth>0?{width:a.offsetWidth,height:a.offsetHeight}:u&&{width:u.width,height:u.height},p=null;a&&c&&c.width>0&&c.height>0&&n<jh&&i<Wh&&!r(a)&&(p=df(a),p&&(n++,i+=p.url.length)),hf(s,p,c);}}function df(e){try{let t=null,r=0,n=0;if(e instanceof HTMLCanvasElement?[t,r,n]=[e,e.width,e.height]:e instanceof HTMLImageElement&&e.complete&&e.naturalWidth>0?[t,r,n]=[e,e.naturalWidth,e.naturalHeight]:e instanceof HTMLVideoElement&&e.readyState>=2&&([t,r,n]=[e,e.videoWidth,e.videoHeight]),!t||r<=0||n<=0)return null;let i=Math.min(1,cf/Math.max(r,n)),o=document.createElement("canvas");o.width=Math.max(1,Math.round(r*i)),o.height=Math.max(1,Math.round(n*i));let s=o.getContext("2d");if(!s)return null;s.drawImage(t,0,0,o.width,o.height);let a=o.toDataURL("image/webp",.85);return a==="data:,"?null:{url:a,width:r,height:n}}catch{return null}}function Fu(e,t){try{return e.closest(t)!==null}catch{return false}}function hf(e,t,r){let n=e.ownerDocument.createElement(t?"img":"div");for(let a of e.getAttributeNames())pf.has(a)||n.setAttribute(a,e.getAttribute(a)??"");let i=r?`width:${r.width}px;height:${r.height}px;`:"";t?(n.setAttribute("src",t.url),n.setAttribute("alt",""),n.hasAttribute("width")||n.setAttribute("width",String(t.width)),n.hasAttribute("height")||n.setAttribute("height",String(t.height)),n.setAttribute("style",`${n.getAttribute("style")??""};${i}`)):n.setAttribute("style",`${n.getAttribute("style")??""};${i}background:#d4d4d4!important;display:${e.tagName==="IMG"||e.tagName==="CANVAS"?"inline-block":"block"};`);let o=e.parentElement;(o&&o.tagName==="PICTURE"?o:e).replaceWith(n);}function ff(e){let r=e.ownerDocument.createTreeWalker(e,NodeFilter.SHOW_COMMENT),n=[];for(let i=r.nextNode();i;i=r.nextNode())n.push(i);for(let i of n)i.parentNode?.removeChild(i);for(let i of [e,...Array.from(e.querySelectorAll("*"))])for(let o of i.getAttributeNames())qh.test(o)||i.removeAttribute(o);}function Ni(e,t){try{return Array.from(e.querySelectorAll(t))}catch{return []}}function mf(e){for((e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(e.value="",e.setAttribute("value","")),e.textContent="",e.setAttribute("style",`${e.getAttribute("style")??""};background:#000!important;color:#000!important;text-shadow:none!important;border-color:#000!important;`),e.setAttribute("data-mushi-redacted","true");e.firstChild;)e.removeChild(e.firstChild);}function gf(e){let t=typeof location<"u"?location.origin:"";for(let r of e.querySelectorAll('link[rel="stylesheet"], link[as="style"]'))r.remove();for(let r of e.querySelectorAll("style")){let n=Hu(r.textContent??"",t);n!==r.textContent&&(r.textContent=n);}for(let r of e.querySelectorAll("[style]")){let n=r.getAttribute("style");if(!n)continue;let i=Hu(n,t);i!==n&&r.setAttribute("style",i);}for(let r of e.querySelectorAll("script, noscript, template"))r.remove();}function Hu(e,t){return e.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi,(r,n,i)=>{let o=i.trim();return !o||o.startsWith("data:")||o.startsWith("#")?r:Cf(o,t)?"none":r})}async function bf(e,t){let r=[...Array.from(document.styleSheets),...document.adoptedStyleSheets??[]],n=await Promise.all(r.map(async o=>{let s=o.ownerNode;return o.disabled||s instanceof Element&&s.tagName==="STYLE"?"":vf(await Uu(o)??Sn(o),o)})),i=e.querySelector("head")??e;r.forEach((o,s)=>{if(!n[s])return;let a=document.createElement("style");a.textContent=n[s];let u=o.ownerNode?t.get(o.ownerNode):void 0;u&&e.contains(u)?u.replaceWith(a):i.appendChild(a);});}async function Uu(e,t=0){let r=e.href;if(!r||t>3||typeof fetch!="function")return null;let n=typeof AbortController=="function"?new AbortController:null,i=setTimeout(()=>n?.abort(),Nu);try{let o=await fetch(r,{cache:"force-cache",signal:n?.signal});if(!o.ok)return null;let s="";for(let u of Ef(e)){if(!(u instanceof CSSImportRule)||!u.styleSheet)continue;let c=await Uu(u.styleSheet,t+1)??Sn(u.styleSheet);s+=yf(c,u);}let a=wf((await o.text()).replace(/@import\s[^;]*;/gi,""),r);return `${s}
10
+ ${a}`}catch{return null}finally{clearTimeout(i);}}function Ef(e){try{return Array.from(e.cssRules)}catch{return []}}function yf(e,t){let r=t.layerName,n=r==null?e:`@layer ${r}{${e}}`,i=t.media?.mediaText;return i&&i!=="all"&&(n=`@media ${i}{${n}}`),`${n}
11
+ `}function vf(e,t){let r=t.media?.mediaText;return e&&r&&r!=="all"?`@media ${r}{${e}}`:e}function wf(e,t){return e.replace(/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi,(r,n,i)=>{let o=i.trim();if(!o||/^(data:|#|[a-z][a-z\d+.-]*:)/i.test(o))return r;try{return `url(${n}${new URL(o,t).href}${n})`}catch{return r}})}function Sf(e,t){let r=e.querySelectorAll("style"),n=t.querySelectorAll("style");r.length===n.length&&r.forEach((i,o)=>{if((i.textContent??"").trim()||!i.sheet)return;let s=Sn(i.sheet);s&&(n[o].textContent=s);});}function kf(e){let t=i=>!i||i==="transparent"||/^rgba\(.*,\s*0\)$/.test(i),r=getComputedStyle(document.documentElement).backgroundColor;t(r)&&document.body&&(r=getComputedStyle(document.body).backgroundColor);let n=e;n.style.setProperty("background-color",t(r)?"Canvas":r),n.style.setProperty("min-height",`${window.innerHeight}px`);}function Rf(e){let t=document.createElement("style");t.textContent=xf,(e.querySelector("head")??e).appendChild(t);}function Sn(e){let t;try{t=e.cssRules;}catch{return ""}let r="";for(let n of Array.from(t)){if(n instanceof CSSImportRule){n.styleSheet&&(r+=Sn(n.styleSheet));continue}r+=`${n.cssText}
12
+ `;}return r}function _f(e,t,r){try{let n=Math.max(1,Math.floor(t/8)),i=Math.max(1,Math.floor(r/8));for(let o=0;o<r;o+=i)for(let s=0;s<t;s+=n)if(e.getImageData(s,o,1,1).data[3]!==0)return !1;return !0}catch{return false}}function Cf(e,t){if(!e||e.startsWith("data:")||e.startsWith("blob:"))return false;try{let r=new URL(e,typeof location<"u"?location.href:"http://localhost/");return !!t&&r.origin!==t}catch{return true}}function Tf(e){(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&(e.value="",e.setAttribute("value",""),e.setAttribute("placeholder","\u2022\u2022\u2022\u2022")),e.textContent=e.children.length===0?"\u2022\u2022\u2022\u2022":e.textContent,e.setAttribute("style",`${e.getAttribute("style")??""};background:#8f8f8f!important;color:transparent!important;text-shadow:none!important;`),e.setAttribute("data-mushi-masked","true");}var Uh,qh,jh,Wh,Bu,Ou,Vh,Gh,Yh,Xh,Zh,ef,tf,cf,pf,Nu,xf,ju=xe(()=>{"use strict";Cr();Hi();Uh=/[\u0000-\u0008\u000B\u000C\u000E-\u001F￾￿]/g,qh=/^[A-Za-z_][\w.:-]*$/,jh=60,Wh=12*1024*1024,Bu="img, video, canvas, iframe, object, embed";Ou=["[data-mushi-redact]"],Vh=["transform","translate","scale","rotate","opacity","visibility","clip-path","object-position","background-position","left","top","width","height","color","background-color"];Gh=40,Yh=6*1024*1024,Xh=2*1024*1024;Zh=/url\(\s*(['"]?)([^)'"]+)\1\s*\)/gi;ef=/^(block|flow-root|flex|grid|list-item|inline-block|inline-flex|inline-grid|table)$/,tf=/^(block|flow-root|list-item)$/;cf=2048;pf=new Set(["src","srcset","sizes","poster","data","loading","decoding"]);Nu=2500;xf="*,*::before,*::after{animation:none!important;transition:none!important}";});function Ui(e={}){let t=e,r=i=>{t.onFailed?.(i),Af(i);};async function n(){try{if(typeof document>"u")return null;let{captureDomScreenshot:i}=await Promise.resolve().then(()=>(ju(),qu));return await i(t.privacy,r)}catch{return r("error"),null}}return {take:n,updateOptions(i){t=i;}}}function Af(e){try{document.dispatchEvent(new CustomEvent("mushi:screenshot_failed",{detail:{reason:e},bubbles:!1}));}catch{}}var It,Cr=xe(()=>{"use strict";It='input[type="password"],input[autocomplete^="cc-"],[data-private],[data-mushi-mask]';});var ol={};ft(ol,{deviceDraw:()=>pm,journeyRecordingDecision:()=>cm,readTabOptIn:()=>dm});function cm(e){if(e.mode===false)return false;if(e.mode!=="on-demand"||e.tabOptIn)return true;let t=e.window;if(!t)return false;let r=Date.parse(t.recordUntil);if(!Number.isFinite(r)||r<=e.now)return false;let n=Number.isFinite(t.sampleRate)?Math.min(1,Math.max(0,t.sampleRate)):0;return e.draw<n}function dm(e){if(typeof window>"u")return false;let t=null;try{t=new URL(window.location.href).searchParams.get(lm);}catch{t=null;}try{return t==="1"||t==="true"?window.sessionStorage.setItem(Zi(e),"1"):(t==="0"||t==="false")&&window.sessionStorage.removeItem(Zi(e)),window.sessionStorage.getItem(Zi(e))==="1"}catch{return t==="1"||t==="true"}}function pm(e,t=Math.random){if(typeof window>"u")return t();try{let r=Number(window.localStorage.getItem(Qi(e)));if(window.localStorage.getItem(Qi(e))!==null&&Number.isFinite(r)&&r>=0&&r<1)return r;let n=t();return window.localStorage.setItem(Qi(e),String(n)),n}catch{return t()}}var lm,Zi,Qi,sl=xe(()=>{"use strict";lm="mushi_journeys",Zi=e=>`mushi:journeys:tab:${e}`,Qi=e=>`mushi:journeys:draw:${e}`;});var al={};ft(al,{grabMaskedTabFrame:()=>hm});async function hm(e,t){let r=await e,n=r.getVideoTracks?.()[0]?.getSettings?.().displaySurface;if(n&&n!=="browser")throw r.getTracks().forEach(a=>a.stop()),Object.assign(new Error("Only this tab can be captured"),{name:"NotAllowedError"});let i=t.join(","),o=document.createElement("style");o.setAttribute("data-mushi-capture-mask",""),o.textContent=`:is(${i}){background:#000!important;color:transparent!important;-webkit-text-fill-color:transparent!important;text-shadow:none!important}:is(${i}) *{visibility:hidden!important}`,document.head.appendChild(o);let s=document.createElement("video");try{s.muted=!0,s.srcObject=r,await s.play(),await new Promise(u=>setTimeout(u,150));let a=document.createElement("canvas");return a.width=s.videoWidth,a.height=s.videoHeight,a.getContext("2d")?.drawImage(s,0,0),a.toDataURL("image/jpeg",.7)}finally{r.getTracks().forEach(a=>a.stop()),s.srcObject=null,o.remove();}}var ul=xe(()=>{"use strict";});var ll={};ft(ll,{createScreenshotAnnotation:()=>fm});function fm(e,t){return new Promise((r,n)=>{let i=new Image;i.onload=()=>{let o=document.createElement("div");o.style.position="relative",o.style.display="inline-block",o.style.maxWidth="100%";let s=document.createElement("canvas"),a=document.createElement("canvas"),u=Math.min(1,720/i.width),c=Math.round(i.width*u),p=Math.round(i.height*u);for(let _ of [s,a])_.width=c,_.height=p,_.style.width="100%",_.style.height="auto",_.style.display="block";a.style.position="absolute",a.style.left="0",a.style.top="0",a.style.cursor="crosshair";let h=s.getContext("2d"),b=a.getContext("2d");if(!h||!b){n(new Error("Canvas not supported"));return}h.drawImage(i,0,0,c,p),o.appendChild(s),o.appendChild(a),t.appendChild(o);let A="highlight",T=false,E=null,y=[],x=_=>{let g=a.getBoundingClientRect(),f="touches"in _?_.touches[0]??_.changedTouches[0]:null,m=f?f.clientX:_.clientX,S=f?f.clientY:_.clientY;return {x:(m-g.left)/g.width*c,y:(S-g.top)/g.height*p}},k=()=>{b.clearRect(0,0,c,p);for(let _ of y)if(_.tool==="highlight"&&_.points.length>=2){let[g,f]=_.points;b.fillStyle="rgba(255, 230, 0, 0.35)",b.fillRect(Math.min(g.x,f.x),Math.min(g.y,f.y),Math.abs(f.x-g.x),Math.abs(f.y-g.y));}else if(_.tool==="arrow"&&_.points.length>=2){let[g,f]=_.points;b.strokeStyle="#ef4444",b.lineWidth=3,b.beginPath(),b.moveTo(g.x,g.y),b.lineTo(f.x,f.y),b.stroke();}},v=_=>{T=true,E=x(_);},C=_=>{if(!T||!E)return;T=false;let g=x(_);if(A==="blur"){let f=Math.min(E.x,g.x),m=Math.min(E.y,g.y),S=Math.abs(g.x-E.x),B=Math.abs(g.y-E.y);S>=1&&B>=1&&(h.filter="blur(8px)",h.drawImage(s,f,m,S,B,f,m,S,B),h.filter="none");}else y.push({tool:A,points:[E,g]});E=null,k();};a.addEventListener("mousedown",v),a.addEventListener("mouseup",C),a.addEventListener("touchstart",v,{passive:true}),a.addEventListener("touchend",C),r({canvas:s,setTool(_){A=_;},getDataUrl(){let _=document.createElement("canvas");_.width=c,_.height=p;let g=_.getContext("2d");return g?(g.drawImage(s,0,0),g.drawImage(a,0,0),_.toDataURL("image/jpeg",.85)):e},destroy(){a.removeEventListener("mousedown",v),a.removeEventListener("mouseup",C),a.removeEventListener("touchstart",v),a.removeEventListener("touchend",C),o.remove();}});},i.onerror=()=>n(new Error("Failed to load screenshot")),i.src=e;})}var cl=xe(()=>{"use strict";});var Hl=4194304,ns=1.5*1024*1024;function Nl(e){try{return JSON.stringify(e)}catch{return null}}function Ul(e,t=Hl){let r=Nl(e);if(r===null)return {ok:false,bytes:0,maxBytes:t,serializeFailed:true,reason:"Report could not be serialized (circular reference in metadata?)"};let n=new TextEncoder().encode(r).length;return n<=t?{ok:true,bytes:n,maxBytes:t}:{ok:false,bytes:n,maxBytes:t,reason:`Report payload ${Fo(n)} exceeds limit ${Fo(t)}`}}function Fo(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(2)} MB`}function is(){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 zr(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}async function Ht(e){let t=is();if(t){let n=await t.digest("SHA-256",new TextEncoder().encode(e));return zr(new Uint8Array(n))}let{sha256:r}=await Promise.resolve().then(()=>($n(),Pn));return zr(r(new TextEncoder().encode(e)))}async function ql(e,t){let r=is();if(r){let s=await r.importKey("raw",new TextEncoder().encode(e),{name:"HMAC",hash:"SHA-256"},false,["sign"]),a=await r.sign("HMAC",s,new TextEncoder().encode(t));return zr(new Uint8Array(a))}let{hmac:n}=await Promise.resolve().then(()=>(Oo(),Bo)),{sha256:i}=await Promise.resolve().then(()=>($n(),Pn)),o=n(i,new TextEncoder().encode(e),new TextEncoder().encode(t));return zr(o)}var jl=60*1024;function Wl(e){return {mushiBeacon:true,path:e.path,headers:e.headers,body:e.body}}function Kl(e,t=typeof location<"u"?location.origin:""){if(!e)return false;if(e.startsWith("/"))return true;if(!t)return false;try{return new URL(e,t).origin===t}catch{return false}}function Vl(e){try{let t=e.startsWith("/")?new URL(e,"https://tunnel.local"):new URL(e);return `${t.pathname}${t.search}`}catch{return e}}function zl(e){let t=e.fetchImpl??(typeof fetch=="function"?fetch:void 0);if(t)try{return t(e.url,{method:"POST",headers:{"Content-Type":"application/json",...e.headers},body:e.body,keepalive:!0}),!0}catch{}let r=e.sendBeacon??(typeof navigator<"u"?navigator.sendBeacon?.bind(navigator):void 0);if(!r||!Kl(e.url))return false;let n=e.body;try{n=JSON.parse(e.body);}catch{n=e.body;}let i=JSON.stringify(Wl({path:e.path??Vl(e.url),headers:e.headers,body:n}));if(i.length>jl)return false;try{return r(e.url,new Blob([i],{type:"application/json"}))}catch{return false}}var os=false;function ss(){os=true;}function Gl(){return os}var sr=null;function as(){let e=sr;return sr=null,!!e&&zl(e)}var Ho=false,Yl="X-Mushi-User-Token",Xl="X-Mushi-Project",Jl="X-Mushi-SDK-Package",Zl="X-Mushi-SDK-Version";function Ql(e){let t={"Content-Type":"application/json","X-Mushi-Api-Key":e.apiKey,[Xl]:e.projectId};return e.sdkPackage&&(t[Jl]=e.sdkPackage),e.sdkVersion&&(t[Zl]=e.sdkVersion),e.userToken&&(t[Yl]=e.userToken),e.internalKind&&(t[Jr]=e.internalKind),t}var ar="https://dxptnwrhwsqckaftyymj.supabase.co/functions/v1/api",Jr="X-Mushi-Internal",hr="__mushiInternal";function ec(e,t){let r=t?.trim();return r?r.replace(/\/$/,""):(e??ar).replace(/\/$/,"")}var tc=1e4,rc=2,nc=4,ic=3e4,oc=1e4;function us(e){let{projectId:t,apiKey:r,apiEndpoint:n=ar,tunnel:i,timeout:o=tc,maxRetries:s=rc,getUserToken:a,sdkPackage:u,sdkVersion:c,circuitBreaker:p}=e,h=ec(n,i),b=p?.enabled!==false,A=Math.max(1,p?.threshold??nc),T=Math.max(1e3,p?.cooldownMs??ic),E=0,y=0,x=()=>b&&y>Date.now(),k=()=>{E=0,y=0;},v=()=>{b&&(E+=1,E>=A&&(y=Date.now()+T));};async function C(g,f,m,S=s,B,j,N){let Z=B!=="reporter-poll";if(Z&&x())return {ok:false,error:{code:"CIRCUIT_OPEN",message:"Endpoint temporarily unavailable; retrying later."}};let ee=`${h}${f}`,we=new AbortController,L=setTimeout(()=>we.abort(),o),Se=a?.()??null,ae={...Ql({apiKey:r,projectId:t,sdkPackage:u,sdkVersion:c,userToken:Se,internalKind:B}),...j},Ke=m?JSON.stringify(m):void 0,ne=null;Ke&&g!=="GET"&&B!=="reporter-poll"&&(ne={url:ee,headers:ae,body:Ke,path:f},sr=ne);try{let H=await fetch(ee,{method:g,headers:ae,body:Ke,keepalive:Gl(),signal:we.signal,...N?{cache:N}:{},...B?{[hr]:B}:{}});if(clearTimeout(L),H.status===307||H.status===308){let Y=H.headers.get("Location");if(Y&&S>0){let R=Y.replace(/\/v1\/.*$/,"").replace(/\/$/,"");if(R!==h)return h=R,C(g,f,m,S-1,B,j,N)}}if(!H.ok){let Y=await H.json().catch(()=>({}));if((H.status===401||H.status===403)&&!Ho){Ho=!0;let W=h===ar?"Get the correct values at: https://mushi.kensaur.us/projects":"Get the correct values from your Mushi console's Projects page.";console.error(`[Mushi] Credentials rejected (HTTP ${H.status}). Check your Project ID and API key scope (must be "report:write"). `+W);}let R=H.status===429,D=H.status>=500||R,O=R?sc(H.headers.get("Retry-After")):null,F=O===null||O<=oc;return D&&S>0&&F?(await No(O??Uo(s-S)),C(g,f,m,S-1,B,j)):(Z&&(D?v():k()),{ok:!1,error:{code:Y.error?.code||`HTTP_${H.status}`,message:Y.error?.message||Y.message||`HTTP ${H.status} error`,status:H.status}})}let me=await H.json(),_e=me&&typeof me=="object"&&"ok"in me&&"data"in me?me.data:me;return Z&&k(),{ok:!0,data:_e}}catch(H){return clearTimeout(L),S>0&&ac(H)?(await No(Uo(s-S)),C(g,f,m,S-1,B,j)):(Z&&v(),{ok:false,error:{code:"NETWORK_ERROR",message:H instanceof Error?H.message:"Unknown network error"}})}finally{sr===ne&&(sr=null);}}async function _(g,f,m,S){try{let B=await Ht(m),j=String(Date.now());return await C(g,f,S,s,"reporter-poll",{"X-Reporter-Token-Hash":B,"X-Reporter-Ts":j,"X-Reporter-Hmac":await ql(r,`${t}.${j}.${B}`)})}catch(B){return {ok:false,error:{code:"NETWORK_ERROR",message:B instanceof Error?B.message:"Unknown error"}}}}return {async submitReport(g){let f=Ul(g);return f.ok?C("POST","/v1/reports",g,s,"report-submit"):{ok:false,error:{code:f.serializeFailed?"SERIALIZE_FAILED":"PAYLOAD_TOO_LARGE",message:f.reason??"Report payload exceeds size limit"}}},async getReportStatus(g){return C("GET",`/v1/reports/${g}/status`,void 0,s,"report-status")},async getSdkConfig(g){return C("GET","/v1/sdk/config",void 0,s,"sdk-config",void 0,g?.fresh?"no-store":void 0)},async askAssistant(g){return C("POST","/v1/sdk/assistant",{message:g.message,threadId:g.threadId??null,context:g.context??null},1,"community")},async getLatestSdkVersion(g){let f=new URLSearchParams({package:g}).toString();return C("GET",`/v1/sdk/latest-version?${f}`,void 0,s,"sdk-config")},async postDiscoveryEvent(g){return C("POST","/v1/sdk/discovery",g,1,"discovery")},async listReporterReports(g){return _("GET","/v1/reporter/reports",g)},reporterRequest:_,async listReporterComments(g,f){return _("GET",`/v1/reporter/reports/${g}/comments`,f)},async replyToReporterReport(g,f,m,S){return _("POST",`/v1/reporter/reports/${g}/reply`,f,{body:m,...S?{feedback_signal:S}:{}})},async reopenReporterReport(g,f,m){return _("POST",`/v1/reporter/reports/${g}/reopen`,f,{note:m??""})},async listNotifications(g,f){let m=new URLSearchParams;f?.since&&m.set("since",f.since),f?.limit&&m.set("limit",String(f.limit));let S=m.size?`?${m.toString()}`:"";return _("GET",`/v1/notifications${S}`,g)},async markNotificationRead(g,f){return _("POST",`/v1/notifications/${g}/read`,f,{})},async listReporterFeatureBoard(g){return _("GET","/v1/reporter/feature-board",g)},async voteReporterFeatureBoard(g,f){return _("POST",`/v1/reporter/feature-board/${g}/vote`,f,{})},async postSessionEvent(g){return C("POST","/v1/sdk/session",g,1,"discovery")},async postProductEvents(g){return C("POST","/v1/sdk/events",g,1,"discovery")},async submitActivity(g,f,m){return C("POST","/v1/sdk/activity",{user_id:g,user_traits:m?.userTraits,opted_in:m?.optedIn,reporter_token_hash:m?.reporterTokenHash,...m?.hostJwt?{host_jwt:m.hostJwt}:{},events:f},1,"discovery")},async getMyPoints(g){return C("GET",`/v1/sdk/me/points?userId=${encodeURIComponent(g)}`,void 0,1,"reporter-poll")},async getMyTier(g){return C("GET",`/v1/sdk/me/tier?userId=${encodeURIComponent(g)}`,void 0,1,"reporter-poll")},async getMyHistory(g,f){let m=new URLSearchParams({userId:g,...f?.limit?{limit:String(f.limit)}:{}});return C("GET",`/v1/sdk/me/history?${m}`,void 0,1,"reporter-poll")},async getHallOfFame(g=10){return C("GET",`/v1/sdk/hall-of-fame?limit=${g}`,void 0,1,"reporter-poll")},async sendMagicLink(g){return C("POST","/v1/tester/magic-link",{email:g},1,"community")},async linkReporterToken(g,f){return C("POST","/v1/tester/link-reporter",{reporter_token_hash:g},1,"community",{Authorization:`Bearer ${f}`})},async getCrossAppReports(g,f){let m=new URLSearchParams;f?.limit&&m.set("limit",String(f.limit)),f?.offset&&m.set("offset",String(f.offset));let S=m.size?`?${m.toString()}`:"";return C("GET",`/v1/tester/cross-app-reports${S}`,void 0,1,"community",{Authorization:`Bearer ${g}`})},async getMyReputation(g){return C("GET","/v1/tester/reputation",void 0,1,"community",{Authorization:`Bearer ${g}`})},async getPublicLeaderboard(g=20){return C("GET",`/v1/public/tester-leaderboard?limit=${g}`,void 0,1,"reporter-poll")},async getTesterStatus(g){return C("GET","/v1/me/tester-status",void 0,1,"community",{Authorization:`Bearer ${g}`})}}}function No(e){return new Promise(t=>setTimeout(t,e))}function Uo(e){return Math.min(1e3*2**e+Math.random()*500,1e4)}function sc(e,t=Date.now()){if(!e)return null;let r=e.trim();if(!r)return null;let n=Number(r);if(Number.isFinite(n))return n<0?null:n*1e3;let i=Date.parse(r);return Number.isNaN(i)?null:Math.max(i-t,0)}function ac(e){return e instanceof DOMException&&e.name==="AbortError"||e instanceof TypeError}function Bn(e,t){if(!e||!t||t.length===0)return false;for(let r of t){if(typeof r=="string"){if(e.includes(r))return true;continue}try{if(r.lastIndex=0,r.test(e))return !0}catch{}}return false}function fr(e){if(Bn(e.message,e.ignoreErrors))return true;let t=e.filename?.trim()||"";return !!(t&&Bn(t,e.denyUrls)||e.allowUrls&&e.allowUrls.length>0&&(!t||!Bn(t,e.allowUrls)))}function On(...e){return e.find(t=>t!==void 0&&t!=="")}function Le(e){try{let t=undefined;return typeof t=="object"&&t!==null?t[e]:void 0}catch{return}}function Je(e){try{return e()}catch{return}}function Jn(){let e=On(Le("VITE_MUSHI_PROJECT_ID"),Le("NEXT_PUBLIC_MUSHI_PROJECT_ID"),Le("NUXT_PUBLIC_MUSHI_PROJECT_ID"),Le("EXPO_PUBLIC_MUSHI_PROJECT_ID"),Je(()=>process.env.NEXT_PUBLIC_MUSHI_PROJECT_ID),Je(()=>process.env.EXPO_PUBLIC_MUSHI_PROJECT_ID),Je(()=>process.env.MUSHI_PROJECT_ID)),t=On(Le("VITE_MUSHI_API_KEY"),Le("NEXT_PUBLIC_MUSHI_API_KEY"),Le("NUXT_PUBLIC_MUSHI_API_KEY"),Le("EXPO_PUBLIC_MUSHI_API_KEY"),Je(()=>process.env.NEXT_PUBLIC_MUSHI_API_KEY),Je(()=>process.env.EXPO_PUBLIC_MUSHI_API_KEY),Je(()=>process.env.MUSHI_API_KEY)),r=On(Le("VITE_MUSHI_API_ENDPOINT"),Le("NEXT_PUBLIC_MUSHI_API_ENDPOINT"),Le("NUXT_PUBLIC_MUSHI_API_ENDPOINT"),Le("EXPO_PUBLIC_MUSHI_API_ENDPOINT"),Je(()=>process.env.NEXT_PUBLIC_MUSHI_API_ENDPOINT),Je(()=>process.env.EXPO_PUBLIC_MUSHI_API_ENDPOINT),Je(()=>process.env.MUSHI_API_ENDPOINT)),n={};return e&&(n.projectId=e),t&&(n.apiKey=t),r&&(n.apiEndpoint=r),n}var uc=["VITE_","NEXT_PUBLIC_","NUXT_PUBLIC_","EXPO_PUBLIC_",""],lc={projectId:"MUSHI_PROJECT_ID",apiKey:"MUSHI_API_KEY"};function ls(){let e=Jn(),t=[];if(e.projectId||t.push("projectId"),e.apiKey||t.push("apiKey"),t.length===0)return {resolved:e,missing:t,nearMisses:[],message:null};let r=(()=>{try{let a=undefined;return typeof a=="object"&&a!==null?a:null}catch{return null}})(),n=(()=>{try{return typeof process<"u"&&process.env?process.env:null}catch{return null}})(),i=[];for(let a of t)for(let u of uc){let c=`${u}${lc[a]}`;r&&r[c]?i.push({field:a,key:c,via:"import.meta.env"}):n&&n[c]&&i.push({field:a,key:c,via:"process.env"});}let o=r?"VITE_MUSHI_*":"NEXT_PUBLIC_MUSHI_* (Next.js), EXPO_PUBLIC_MUSHI_* (Expo), or MUSHI_* (Node / React Native)",s=[`[mushi] Missing ${t.join(" and ")} \u2014 the SDK will not initialize.`];for(let a of i)s.push(`[mushi] Found ${a.key} in ${a.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 s.push(`[mushi] This runtime reads: ${o}. Set the matching variable(s) and restart your dev server.`),i.length===0&&s.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:e,missing:t,nearMisses:i,message:s.join(`
13
+ `)}}var qo=["production-calm","beta-loud","internal-debug","manual-only","minimal","standard","full"],cc=["projectId","apiKey","apiEndpoint","tunnel","timeout","maxRetries","circuitBreaker","preset","runtimeConfig","analytics","trackSessions","sentry","widget","notifications","capture","privacy","proactive","preFilter","integrations","offline","rewards","assistant","debug","enabled","appVersion","sampleRate","replaySampleRate","replaysOnErrorSampleRate","beforeSend","beforeSendFeedback","ignoreErrors","denyUrls","allowUrls","onCrashedLastRun"];function dc(e){switch(e){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 cs(e){let t=dc(e.preset);return t?{...e,widget:{...t.widget,...e.widget},capture:{...t.capture,...e.capture},proactive:{...t.proactive,...e.proactive,cooldown:{...t.proactive?.cooldown,...e.proactive?.cooldown}}}:e}function pc(){let e=t=>t==="1"||t==="true";try{if(typeof process<"u"&&process.env&&e(process.env.MUSHI_SILENT))return !0}catch{}try{let t=undefined;if(t&&typeof t=="object"&&(e(t.MUSHI_SILENT)||e(t.VITE_MUSHI_SILENT)))return !0}catch{}return false}function ds(e){try{if(pc()||!e||typeof e!="object")return;let t=Object.keys(e).filter(r=>!cc.includes(r));t.length>0&&console.error(`[mushi] Unknown config key${t.length>1?"s":""}: ${t.map(r=>`\`${r}\``).join(", ")} \u2014 check for typos (see MushiConfig). Ignored.`),e.preset!==void 0&&!qo.includes(e.preset)&&console.error(`[mushi] Unknown preset \`${String(e.preset)}\` \u2014 expected one of ${qo.map(r=>`'${r}'`).join(", ")}. Preset ignored.`);}catch{}}var hc=10,fc=2e3,mc=[/^(.)\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],gc=/^[bcdfghjklmnpqrstvwxz]{6,}/i;function ps(e={}){let{enabled:t=true,blockObviousSpam:r=true,minDescriptionLength:n=hc,maxDescriptionLength:i=fc}=e;function o(a){if(!t)return {passed:true};let u=a.trim();if(u.length<n)return {passed:false,reason:`Too short (min ${n} characters)`};if(u.length>i)return {passed:false,reason:`Too long (max ${i} characters)`};if(r){for(let p of mc)if(p.test(u))return {passed:false,reason:"Detected as spam"};if(gc.test(u))return {passed:false,reason:"Detected as gibberish"};if(u.split(/\s+/).filter(p=>p.length>1).length<2)return {passed:false,reason:"Description needs at least 2 words"}}return {passed:true}}function s(a){let u=a.trim();return u.length<=i?u:u.slice(0,i)+"..."}return {check:o,truncate:s}}var jo={debug:10,info:20,warn:30,error:40,fatal:50,silent:99},bc={debug:"DBG",info:"INF",warn:"WRN",error:"ERR",fatal:"FTL"},ye={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"},Ec={debug:ye.dim,info:ye.green,warn:ye.yellow,error:ye.red,fatal:`${ye.bgRed}${ye.white}${ye.bold}`};function yc(){try{if(typeof globalThis.Deno<"u")return "json"}catch{}let e=typeof globalThis.process<"u"?globalThis.process:void 0;if(e?.env){if(e.env.NODE_ENV==="production"||e.env.LOG_FORMAT==="json")return "json";if(e.env.LOG_FORMAT==="pretty"||e.stdout?.isTTY)return "pretty"}return typeof globalThis.window<"u"?"pretty":"json"}function vc(e){let t=[];for(let[r,n]of Object.entries(e))n!=null&&(typeof n=="object"?t.push(`${r}=${JSON.stringify(n)}`):t.push(`${r}=${String(n)}`));return t.join(" ")}function wc(e){let{ts:t,level:r,scope:n,msg:i,...o}=e,s=t.slice(11,23),a=Ec[r]??"",u=bc[r]??r.toUpperCase(),c=Object.keys(o).length>0?` ${ye.dim}${vc(o)}${ye.reset}`:"";return `${ye.dim}${s}${ye.reset} ${a}${u}${ye.reset} ${ye.cyan}[${n}]${ye.reset} ${i}${c}`}function Sc(e){return JSON.stringify(e)}function xc(e){return e==="stderr"?(t,r)=>{console.error(r);}:(t,r)=>{switch(t){case "error":case "fatal":console.error(r);break;case "warn":console.warn(r);break;default:console.log(r);}}}function hs(e,t,r,n,i){let o=t;function s(a,u,c){if(jo[a]<jo[o])return;let p={ts:new Date().toISOString(),level:a,scope:e,msg:u,...r,...c};i(a,n(p));}return {debug:(a,u)=>s("debug",a,u),info:(a,u)=>s("info",a,u),warn:(a,u)=>s("warn",a,u),error:(a,u)=>s("error",a,u),fatal:(a,u)=>s("fatal",a,u),child(a,u){return hs(`${e}:${a}`,o,{...r,...u},n,i)},setLevel(a){o=a;}}}function ct(e){let{scope:t,level:r="info",meta:n={},format:i="auto",destination:o="stdout"}=e,a=(i==="auto"?yc():i)==="json"?Sc:wc,u=xc(o);return hs(t,r,n,a,u)}var Zn={debug:()=>{},info:()=>{},warn:()=>{},error:()=>{},fatal:()=>{},child:()=>Zn,setLevel:()=>{}},kc="mushi-mushi-keyring",yt="keys",fs="offline-queue/v1",jr=null,Wr=null;function Rc(){return typeof globalThis<"u"&&typeof globalThis.crypto<"u"&&typeof globalThis.crypto.subtle<"u"&&typeof indexedDB<"u"}function ms(){return new Promise((e,t)=>{let r=indexedDB.open(kc,1);r.onupgradeneeded=()=>{try{let n=r.result;if(!n)return;n.objectStoreNames.contains(yt)||n.createObjectStore(yt);}catch{}},r.onsuccess=()=>{let n=r.result;if(!n||!n.objectStoreNames.contains(yt)){try{n?.close();}catch{}t(new Error("key object store unavailable"));return}e(n);},r.onerror=()=>t(r.error);})}async function _c(){let e=await ms();return new Promise((t,r)=>{let i=e.transaction(yt,"readonly").objectStore(yt).get(fs);i.onsuccess=()=>t(i.result??null),i.onerror=()=>r(i.error);})}async function Cc(e){let t=await ms();return new Promise((r,n)=>{let i=t.transaction(yt,"readwrite");i.objectStore(yt).put(e,fs),i.oncomplete=()=>r(),i.onerror=()=>n(i.error);})}async function gs(){if(jr)return jr;if(Wr)return Wr;if(!Rc())throw new Error("Web Crypto + IndexedDB required for offline queue encryption");return Wr=(async()=>{let e=await _c();if(e)return jr=e,e;let t=await crypto.subtle.generateKey({name:"AES-GCM",length:256},false,["encrypt","decrypt"]);return await Cc(t),jr=t,t})(),Wr}function Wo(e){let t="";for(let r of e)t+=String.fromCharCode(r);return btoa(t)}function Ko(e){let t=atob(e),r=new Uint8Array(new ArrayBuffer(t.length));for(let n=0;n<t.length;n++)r[n]=t.charCodeAt(n);return r}async function Tc(e){let t=await gs(),r=crypto.getRandomValues(new Uint8Array(12)),n=new TextEncoder().encode(JSON.stringify(e)),i=new Uint8Array(await crypto.subtle.encrypt({name:"AES-GCM",iv:r},t,n));return {_mme:1,iv:Wo(r),ct:Wo(i)}}function Ac(e){return !!e&&typeof e=="object"&&e._mme===1&&typeof e.iv=="string"&&typeof e.ct=="string"}async function Ic(e){let t=await gs(),r=Ko(e.iv),n=Ko(e.ct),i=await crypto.subtle.decrypt({name:"AES-GCM",iv:r},t,n);return JSON.parse(new TextDecoder().decode(i))}var De=ct({scope:"mushi:queue",level:"warn"}),Mc="mushi-mushi",fe="offline-reports",Lc=1,Fn="mushi_offline_queue",Dc=10,Pc=6e4,$c=3e4,Bc=8,Oc=1440*60*1e3;function bs(e={}){let{enabled:t=true,maxQueueSize:r=50,syncOnReconnect:n=true,encryptAtRest:i=true}=e,o=null,s=null,a=null,u=null,c=null;async function p(R){let D=new Date().toISOString();if(!i)return {...R,queuedAt:D};try{let O=await Tc(R);return {id:R.id,queuedAt:D,payload:O}}catch(O){return De.warn("Offline queue: encryption failed, storing plaintext",{err:String(O)}),{...R,queuedAt:D}}}async function h(R){if(b(R))try{return await Ic(R.payload)}catch(D){return De.warn("Offline queue: decrypt failed, dropping row",{err:String(D),id:R.id}),null}return R}function b(R){return !!R.payload&&Ac(R.payload)}function A(R){let D=R.attempts;return typeof D=="number"&&Number.isFinite(D)?D:0}function T(R,D){let O=R.queuedAt;if(!O)return false;let F=Date.parse(O);return Number.isNaN(F)?false:D-F>Oc}function E(){return a||(typeof indexedDB<"u"?a="indexeddb":typeof localStorage<"u"?a="localstorage":a="none",a)}function y(){return new Promise((R,D)=>{let O=indexedDB.open(Mc,Lc);O.onupgradeneeded=()=>{try{let F=O.result;if(!F)return;F.objectStoreNames.contains(fe)||F.createObjectStore(fe,{keyPath:"id"});}catch{}},O.onsuccess=()=>{let F=O.result;if(!F||!F.objectStoreNames.contains(fe)){a="localstorage";try{F?.close();}catch{}D(new Error("queue object store unavailable"));return}R(F);},O.onerror=()=>{a="localstorage",D(O.error);};})}async function x(R){let D=await y(),O=await p(R);return new Promise((F,W)=>{let ge=D.transaction(fe,"readwrite");ge.objectStore(fe).put(O),ge.oncomplete=()=>F(),ge.onerror=()=>W(ge.error);})}async function k(){let R=await y();return new Promise((D,O)=>{let W=R.transaction(fe,"readonly").objectStore(fe).getAll();W.onsuccess=()=>D(W.result),W.onerror=()=>O(W.error);})}async function v(R){let D=await y();return new Promise((O,F)=>{let W=D.transaction(fe,"readwrite");W.objectStore(fe).delete(R),W.oncomplete=()=>O(),W.onerror=()=>F(W.error);})}async function C(R){let D=await y();return new Promise((O,F)=>{let W=D.transaction(fe,"readwrite");W.objectStore(fe).put(R),W.oncomplete=()=>O(),W.onerror=()=>F(W.error);})}async function _(){let R=await y();return new Promise((D,O)=>{let W=R.transaction(fe,"readonly").objectStore(fe).count();W.onsuccess=()=>D(W.result),W.onerror=()=>O(W.error);})}async function g(){let R=await y();return new Promise((D,O)=>{let F=R.transaction(fe,"readwrite");F.objectStore(fe).clear(),F.oncomplete=()=>D(),F.onerror=()=>O(F.error);})}function f(){try{let R=localStorage.getItem(Fn);return R?JSON.parse(R):[]}catch{return []}}function m(R){try{localStorage.setItem(Fn,JSON.stringify(R));}catch{}}async function S(R){let D=f(),O=await p(R),F=D.findIndex(W=>W.id===R.id);F>=0?D[F]=O:D.push(O),m(D);}function B(R){let D=f().filter(O=>O.id!==R);m(D);}function j(R){let D=f(),O=D.findIndex(F=>F.id===R.id);O>=0&&(D[O]=R,m(D));}async function N(R,D){try{R==="indexeddb"?await v(D):B(D);}catch(O){De.debug("Offline queue: row removal failed (will age out)",{id:D,err:String(O)});}}async function Z(R,D){try{return R==="indexeddb"?await C(D):j(D),!0}catch(O){return De.debug("Offline queue: row persist failed",{id:D.id,err:String(O)}),false}}async function ee(){let R=E();if(R==="none")return {backend:R,rows:[]};if(R==="indexeddb")try{return {backend:R,rows:await k()}}catch{a="localstorage";}return {backend:"localstorage",rows:f()}}async function we(R){let D=E();if(D==="none")return De.debug("Offline queue: no storage backend, dropping report",{id:R.id}),D;if(D==="indexeddb")try{return await x(R),D}catch{a="localstorage";}return await S(R),"localstorage"}async function L(R){if(!t)return;if(await H()>=r){De.warn("Offline queue full \u2014 dropping report",{maxQueueSize:r});return}await we(R);}function Se(R){return Math.min(1e3*2**R+Math.random()*500,Pc)}function ae(R){return new Promise(D=>setTimeout(D,R))}async function Ke(R){let{backend:D,rows:O}=await ee(),F=O,W=Date.now(),ge=[];for(let be of F)if(T(be,W)){let Te=be.id;await N(D,Te),De.debug("Offline queue: evicting stale report",{id:Te});}else ge.push(be);F=ge;let Ce=F.slice(0,Dc),tt=0,G=0;for(let be=0;be<Ce.length;be++){let Te=Ce[be],Ae=Te.id,Ie=await h(Te);if(!Ie){await N(D,Ae),G++;continue}let U=await R.submitReport(Ie);if(U.ok){await N(D,Ae),tt++;continue}if(G++,U.error?.code==="CIRCUIT_OPEN"){De.debug("Offline queue: circuit open, deferring the rest of the batch",{id:Ae,remaining:Ce.length-be});break}let Mt=U.error?.code==="HTTP_400"||U.error?.status===401||U.error?.status===403||U.error?.code==="HTTP_401"||U.error?.code==="HTTP_403"||U.error?.code==="HTTP_413"||U.error?.code==="HTTP_422"||U.error?.code==="INGEST_ERROR"||U.error?.code==="VALIDATION_ERROR"||U.error?.code==="PAYLOAD_TOO_LARGE"||U.error?.code==="SERIALIZE_FAILED"||typeof U.error?.message=="string"&&/invalid payload|description must be at least|validation/i.test(U.error.message),rt=!Mt&&(U.error?.code==="NETWORK_ERROR"||U.error?.code==="HTTP_429"||U.error?.code==="HTTP_502"||U.error?.code==="HTTP_503"||U.error?.code==="HTTP_504"||typeof U.error?.code=="string"&&U.error.code.startsWith("HTTP_5"));if(Mt)await N(D,Ae);else {let nt=A(Te)+1;nt>=Bc?(await N(D,Ae),De.warn("Offline queue: giving up on report after repeated failures",{id:Ae,attempts:nt,code:U.error?.code})):(Te.attempts=nt,await Z(D,Te)?De.debug("Offline queue: delivery failed, will retry",{id:Ae,attempts:nt,code:U.error?.code,classified:rt?"transient":"unclassified"}):(await N(D,Ae),De.warn("Offline queue: dropping report (attempt counter unpersistable)",{id:Ae,code:U.error?.code})));}be<Ce.length-1&&await ae(Se(be));}return {sent:tt,failed:G}}function ne(R){if(!t)return Promise.resolve({sent:0,failed:0});if(u)return c||(c=u.catch(()=>{}).then(()=>(c=null,ne(R)))),c;let D=Ke(R).finally(()=>{u===D&&(u=null);});return u=D,D}async function H(){if(E()==="indexeddb")try{return await _()}catch{a="localstorage";}return f().length}async function me(){if(E()==="indexeddb")try{await g();}catch{}try{localStorage.removeItem(Fn);}catch{}}function _e(R){if(!t||!n||typeof window>"u")return;o&&Y();let D=()=>{navigator.onLine&&ne(R).catch(O=>{De.warn("Offline queue auto-flush failed",{err:String(O)});});};window.addEventListener("online",D),s=setInterval(()=>{H().then(O=>{O>0&&D();});},$c),o=()=>{window.removeEventListener("online",D),s&&(clearInterval(s),s=null);};}function Y(){o?.(),o=null;}return {enqueue:L,flush:ne,size:H,clear:me,startAutoSync:_e,stopAutoSync:Y}}function Qn(){let e=typeof navigator<"u"?navigator:void 0,t=typeof window<"u"?window:void 0,r=typeof document<"u"?document:void 0,n=typeof screen<"u"?screen:void 0;Hc(e);let i=e&&"connection"in e?e.connection:void 0,o=t,s=!!o?.Capacitor,a=!!o?.cordova,u=e?.product==="ReactNative"||typeof globalThis.HermesInternal<"u",c=s||a||u?{...s?{capacitor:true}:{},...a?{cordova:true}:{},...u?{reactNative:true}:{}}:void 0;return {userAgent:e?.userAgent??"unknown",platform:e?.platform??"unknown",language:e?.language??"en",viewport:{width:t?.innerWidth??0,height:t?.innerHeight??0},url:t?.location?.href??"",referrer:r?.referrer??"",timestamp:new Date().toISOString(),timezone:Intl?.DateTimeFormat?.()?.resolvedOptions?.()?.timeZone??"UTC",connection:i?{effectiveType:i.effectiveType,downlink:i.downlink,rtt:i.rtt}:void 0,deviceMemory:e?.deviceMemory,hardwareConcurrency:e?.hardwareConcurrency,route:t?.location?.pathname,nearestTestid:Fc(r),userAgentData:Uc(e),screen:qc(n,t),prefersColorScheme:jc(t),prefersReducedMotion:Pe(t,"(prefers-reduced-motion: reduce)"),prefersReducedData:Pe(t,"(prefers-reduced-data: reduce)"),prefersContrast:Wc(t),forcedColors:Pe(t,"(forced-colors: active)"),online:typeof e?.onLine=="boolean"?e.onLine:void 0,displayMode:Kc(t),documentTitle:r?.title?.slice(0,200),buildId:Vc(r),pageLoadTiming:zc(t),...c?{native:c}:{}}}function Fc(e){if(!e)return;let t=e.activeElement??null,r=0;for(;t&&r<20;){let n=t.getAttribute?.("data-testid");if(n)return n;t=t.parentElement,r++;}}var Fe=null,Vo=false;function Hc(e){if(Vo)return;let t=e?.userAgentData;t?.getHighEntropyValues&&(Vo=true,t.getHighEntropyValues(["architecture","bitness","model","platformVersion","uaFullVersion","fullVersionList"]).then(r=>{Fe=r;}).catch(()=>{}));}function Nc(e){if(!e?.length)return;let t=e.filter(n=>!/not.?a.?brand/i.test(n.brand));return t.length===0?void 0:t.find(n=>!/chromium|google chrome/i.test(n.brand))??t[0]}function Uc(e){let t=e?.userAgentData;if(!t&&!Fe)return;let r=Fe?.fullVersionList,n=Nc(r??t?.brands),i={};return n&&(i.browser=n.brand,i.browserVersion=n.version),t?.platform&&(i.os=t.platform),Fe?.platformVersion&&(i.osVersion=Fe.platformVersion),typeof t?.mobile=="boolean"&&(i.mobile=t.mobile),Fe?.model&&(i.model=Fe.model),Fe?.architecture&&(i.architecture=Fe.architecture),Fe?.bitness&&(i.bitness=Fe.bitness),Object.keys(i).length===0?void 0:i}function qc(e,t){if(!e&&!t)return;let r={};typeof e?.width=="number"&&(r.width=e.width),typeof e?.height=="number"&&(r.height=e.height),typeof t?.devicePixelRatio=="number"&&(r.devicePixelRatio=t.devicePixelRatio),typeof e?.colorDepth=="number"&&(r.colorDepth=e.colorDepth);let n=e?.orientation?.type;return n&&(r.orientation=n),Object.keys(r).length===0?void 0:r}function Pe(e,t){if(e?.matchMedia)try{return e.matchMedia(t).matches}catch{return}}function jc(e){if(e?.matchMedia)return Pe(e,"(prefers-color-scheme: dark)")?"dark":Pe(e,"(prefers-color-scheme: light)")?"light":"no-preference"}function Wc(e){if(e?.matchMedia)return Pe(e,"(prefers-contrast: more)")?"more":Pe(e,"(prefers-contrast: less)")?"less":Pe(e,"(prefers-contrast: custom)")?"custom":"no-preference"}function Kc(e){if(e?.matchMedia){if(Pe(e,"(display-mode: fullscreen)"))return "fullscreen";if(Pe(e,"(display-mode: standalone)"))return "standalone";if(Pe(e,"(display-mode: minimal-ui)"))return "minimal-ui";if(Pe(e,"(display-mode: browser)"))return "browser"}}function Vc(e){if(!e)return;let r=e.querySelector?.('meta[name="mushi:build"]')?.content?.trim();if(r)return r.slice(0,64)}function zc(e){let t=e?.performance;if(!t?.getEntriesByType)return;let r;try{r=t.getEntriesByType("navigation")[0];}catch{return}if(!r)return;let n=r.startTime??0,i={};return r.domContentLoadedEventEnd>0&&(i.domContentLoadedMs=Math.round(r.domContentLoadedEventEnd-n)),r.loadEventEnd>0&&(i.loadCompleteMs=Math.round(r.loadEventEnd-n)),r.responseStart>0&&(i.timeToFirstByteMs=Math.round(r.responseStart-n)),typeof r.type=="string"&&(i.navigationType=r.type),Object.keys(i).length===0?void 0:i}var Hn="mushi_reporter_token";function Gc(e){return `mushi:reporter-token:${e}`}function zo(){if(typeof crypto<"u"&&crypto.randomUUID)return `mushi_${crypto.randomUUID()}`;let e=new Uint8Array(16);if(typeof crypto<"u")crypto.getRandomValues(e);else for(let r=0;r<e.length;r++)e[r]=Math.floor(Math.random()*256);return `mushi_${Array.from(e).map(r=>r.toString(16).padStart(2,"0")).join("")}`}function Nn(e){if(typeof localStorage>"u")return null;try{let t=localStorage.getItem(e);return t&&t.length>0?t:null}catch{return null}}function Go(e,t){if(!(typeof localStorage>"u"))try{localStorage.setItem(e,t);}catch{}}function re(e){if(!e){let o=Nn(Hn);if(o)return o;let s=zo();return Go(Hn,s),s}let t=Gc(e),r=Nn(t);if(r)return r;let i=Nn(Hn)??zo();return Go(t,i),i}function ei(){let e=typeof crypto<"u"?crypto:void 0;if(e?.randomUUID)return e.randomUUID();let t=new Uint8Array(16);if(e?.getRandomValues)e.getRandomValues(t);else for(let n=0;n<t.length;n++)t[n]=Math.floor(Math.random()*256);t[6]=t[6]&15|64,t[8]=t[8]&63|128;let r=Array.from(t,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 Yo="mushi_fingerprint_hash";function Yc(){let e=typeof navigator<"u"?navigator:void 0,t=typeof screen<"u"?screen:void 0,r=typeof window<"u"?window:void 0;return {userAgent:e?.userAgent??"unknown",platform:e?.platform??"unknown",language:e?.language??"en",timezone:Intl?.DateTimeFormat?.()?.resolvedOptions?.()?.timeZone??"UTC",screenWidth:t?.width??0,screenHeight:t?.height??0,pixelRatio:r?.devicePixelRatio??1,deviceMemory:e?.deviceMemory,hardwareConcurrency:e?.hardwareConcurrency}}async function Xc(e){if(typeof crypto<"u"&&crypto.subtle){let r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r);return Array.from(new Uint8Array(n)).map(i=>i.toString(16).padStart(2,"0")).join("")}let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return `fbk_${(t>>>0).toString(16).padStart(8,"0")}`}async function Es(){if(typeof localStorage<"u"){let n=localStorage.getItem(Yo);if(n)return n}let e=Yc(),t=JSON.stringify(e),r=await Xc(t);if(typeof localStorage<"u")try{localStorage.setItem(Yo,r);}catch{}return r}var Xo="mushi_session_id",Kr=null;function Rt(){if(Kr)return Kr;if(typeof sessionStorage<"u"){let t=sessionStorage.getItem(Xo);if(t)return Kr=t,t}let e=Jc();if(Kr=e,typeof sessionStorage<"u")try{sessionStorage.setItem(Xo,e);}catch{}return e}function Jc(){return `ms_${Date.now().toString(36)}_${Zc()}`}function Zc(){let e=typeof crypto<"u"?crypto:void 0,t=new Uint8Array(4);if(e?.getRandomValues)e.getRandomValues(t);else for(let n=0;n<t.length;n++)t[n]=Math.floor(Math.random()*256);let r=0;for(let n of t)r=r*256+n>>>0;return (r%36**6).toString(36).padStart(6,"0")}var Qc=/HeadlessChrome|PhantomJS|Lighthouse|\bbot\b|bot[/-]|crawler|spider/i;function ys(e){return "mushi_events_consent_"+e}var qn=new Set;function ed(){if(typeof navigator>"u")return false;let e=navigator;if(e.globalPrivacyControl===true)return true;let t=typeof window<"u"?window.doNotTrack:void 0,r=e.doNotTrack??e.msDoNotTrack??t;return r==="1"||r==="yes"}function td(){return typeof navigator>"u"?false:navigator.webdriver===true?true:Qc.test(navigator.userAgent??"")}function vs(e){return e?.enabled===false?"disabled":e?.respectDoNotTrack!==false&&ed()?"dnt":e?.excludeBots!==false&&td()?"automation":null}function rd(e){if(!e)return null;try{let t=localStorage.getItem(ys(e));return t==="granted"||t==="denied"?t:null}catch{return null}}function nd(e,t){if(e)try{localStorage.setItem(ys(e),t);}catch{}}function ws(e,t){let r=rd(e);return t?.consent==="required"?r??"pending":r==="denied"?"denied":"granted"}function id(e,t){nd(e,t);for(let r of [...qn])try{r(t);}catch{}}function Ss(e){return qn.add(e),()=>{qn.delete(e);}}var od=6e4,ur=null,xs,Gr=null,ks=null,ti=0,Rs,Bt=null,lr=false,cr=false,xt=false,jn=false,Wn=null;function sd(){return new Date().toISOString()}function Ot(){return typeof window>"u"?"":window.location.pathname}function ad(){if(typeof document>"u"||!document.referrer)return null;try{return new URL(document.referrer).origin}catch{return null}}function ud(){return typeof navigator>"u"?null:navigator.userAgent??null}function Zr(e,t){return {kind:e,session_id:Rt(),ts:sd(),page_view_count:ti,reporter_token_hash:ks,user_id_hash:Gr,user_agent:ud(),sdk_version:xs,...t}}function Qr(e){!ur||!xt||(ur.postSessionEvent(e).catch(()=>{}),en());}function ri(){clearTimeout(Rs);}function en(){ri(),!(!xt||globalThis.document?.visibilityState==="hidden")&&(Rs=setTimeout(()=>{Qr(Zr("session_heartbeat",{route:Ot()}));},od));}function Kn(e){xt&&e!==Bt&&(Bt=e,ti+=1,Qr(Zr("page_view",{route:e})));}function _s(){lr||!xt||(lr=true,Qr(Zr("session_end",{route:Ot()})),ri());}function Jo(){xt||!cr||(xt=true,jn?en():(jn=true,ti=1,Bt=Ot(),Qr(Zr("session_start",{route:Bt,referrer:ad()}))));}function ld(){document.visibilityState==="hidden"?_s():(lr=false,en());}function cd(){_s();}function dd(e){e.persisted&&(lr=false,en());}function Cs(){xt=false,ri();}function Ts(e){cr||typeof window>"u"||vs(e.analytics)===null&&(cr=true,ur=e.client,xs=e.sdkVersion,ks=e.reporterToken??e.reporterTokenHash??null,Gr=e.userIdHash??null,typeof document<"u"&&document.addEventListener("visibilitychange",ld,{passive:true}),window.addEventListener("pagehide",cd,{passive:true}),window.addEventListener("pageshow",dd,{passive:true}),Wn=Ss(t=>{t==="granted"?Jo():Cs();}),ws(e.projectId??"",e.analytics)==="granted"&&Jo());}function ni(e){!cr||!ur||Kn(Ot());}function ii(e){e&&e!==Gr&&(Bt=null),Gr=e;}function As(){Cs(),Wn?.(),Wn=null,cr=false,jn=false,Bt=null,lr=false,ur=null;}var hd=/^[a-z][a-z0-9_]{1,63}$/,vt={maxKeys:40,maxKeyLength:64,maxValueLength:256,maxBytes:8192,maxClientBatch:20,maxServerBatch:50,maxEventNamesPerProject:200},fd="$",md=/(email|phone|password|passwd|token|secret|ssn|address|credit|card|iban)/i;function bd(e){return typeof e=="string"&&hd.test(e)}function Qo(e,t={}){let r={},n=[];if(!e||typeof e!="object"||Array.isArray(e))return {properties:r,dropped:n};let i=new Set(t.allowlist??[]),o=0;for(let[s,a]of Object.entries(e)){if(o>=vt.maxKeys){n.push(s);continue}let u=s.slice(0,vt.maxKeyLength);if(u.startsWith(fd)&&!t.allowReserved){n.push(u);continue}if(md.test(u)&&!i.has(u)){n.push(u);continue}let c;if(a===null||typeof a=="boolean")c=a;else if(typeof a=="number")c=Number.isFinite(a)?a:null;else if(typeof a=="string"){let p=a.slice(0,vt.maxValueLength);c=t.scrub?t.scrub(p):p;}else if(a instanceof Date)c=a.toISOString();else {n.push(u);continue}r[u]=c,o+=1;}return {properties:r,dropped:n}}function Ed(e){try{return JSON.stringify(e).length<=vt.maxBytes}catch{return false}}var Yr=null,dr="",wt=null,tn=null,oi=null,Is,ut=si(),Vn,zn,Ue=[],Pt=[],ve="granted",pr=true,Vr=null,kt=false,Un=false,St=false,Gn=null,yd=50,Ms=200,vd=1440*60*1e3;function si(){return {sampleRate:1,autoPageviews:false,flushIntervalMs:5e3,surface:"web",propertyAllowlist:[]}}function Ls(){return new Date().toISOString()}function Xr(){return "mushi_events_spill_"+dr}function wd(e){return e===void 0||e===429||e>=500}function Yn(){return "mushi_analytics_id_"+dr}function Sd(){try{let e=localStorage.getItem(Yn());if(e)return e}catch{}return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():"a-"+Math.random().toString(36).slice(2)+Date.now().toString(36)}function xd(){if(wt)try{localStorage.getItem(Yn())!==wt&&localStorage.setItem(Yn(),wt);}catch{}}function kd(e){let t=2166136261;for(let r=0;r<e.length;r+=1)t^=e.charCodeAt(r),t=Math.imul(t,16777619)>>>0;return (t>>>0)/4294967296}function Xn(){try{let e=localStorage.getItem(Xr());if(!e)return [];let t=JSON.parse(e);return !t||Date.now()-t.at>vd?(localStorage.removeItem(Xr()),[]):Array.isArray(t.events)?t.events.slice(0,Ms):[]}catch{return []}}function $t(e){try{if(e.length===0){localStorage.removeItem(Xr());return}localStorage.setItem(Xr(),JSON.stringify({at:Date.now(),events:e.slice(-Ms)}));}catch{}}function Ds(){let e=Xn();return e.length>0&&$t([]),e}function Rd(e){return {anon_id:wt,user_id:tn,user_traits:oi,session_id:zn?zn():null,sdk_version:Is,surface:ut.surface,events:e}}async function lt(){if(!Yr||Un||ve!=="granted"||Ue.length===0&&!St)return;Un=true,xd();let e=Ue.splice(0,vt.maxServerBatch);St&&(e.unshift({name:"identify",ts:Ls(),properties:{}}),St=false);try{let t=await Yr.postProductEvents(Rd(e));t.ok?$t([]):wd(t.error?.status)&&$t([...Xn(),...e.filter(r=>r.name!=="identify")]);}catch{$t([...Xn(),...e.filter(t=>t.name!=="identify")]);}finally{Un=false;}Ue.length>=vt.maxClientBatch&&lt();}function _d(e){return ve==="denied"?false:ve==="pending"?Pt.length>=yd?false:(Pt.push(e),true):(Ue.push(e),Ue.length>=vt.maxClientBatch&&lt(),true)}function Cd(e){if(e==="denied"){ve="denied",Ue=[],Pt=[],St=false,$t([]);return}let t=ve==="pending";ve="granted",t&&(Ue.push(...Ds(),...Pt),Pt=[]),(Ue.length>0||St)&&lt();}function Td(e){let t={};for(let[r,n]of Object.entries(e))n!==void 0&&(t[r]=n);return t}function Ps(){return !kt||ve==="denied"?null:wt}function $s(e){if(kt||typeof window>"u")return;let t=e.config??{};if(ut={...si(),...Td(t),propertyAllowlist:t.propertyAllowlist??[]},dr=e.projectId,vs(t)!==null)return;kt=true,Yr=e.client,wt=e.anonId??Sd(),tn=e.userId??null,Is=e.sdkVersion,Vn=e.scrub,zn=e.getSessionId;let r=Math.min(1,Math.max(0,ut.sampleRate));if(pr=r>=1?true:r<=0?false:kd(wt??"anon")<r,!pr)return;ve=ws(dr,t),ve==="granted"?Ue.push(...Ds()):ve==="denied"&&$t([]),Gn=Ss(Cd);let n=Math.max(1e3,ut.flushIntervalMs);Vr=setInterval(()=>{lt();},n);let i=()=>{typeof document<"u"&&document.visibilityState==="hidden"&&lt();};typeof document<"u"&&document.addEventListener("visibilitychange",i,{passive:true}),window.addEventListener("pagehide",()=>{lt();},{passive:true}),ut.autoPageviews&&Ad();}function Ft(e,t,r){if(!kt||!pr||!bd(e))return false;let{properties:n}=Qo(t,{allowlist:ut.propertyAllowlist,scrub:Vn}),i=n;if(r?.reserved){let{properties:o}=Qo(r.reserved,{allowReserved:true,scrub:Vn});i={...n,...o};}return i.$surface=ut.surface,typeof location<"u"&&i.$route===void 0&&(i.$route=location.pathname),Ed(i)?_d({name:e,ts:r?.ts??Ls(),properties:i,...r?.dedupKey?{dedup_key:r.dedupKey}:{}}):false}function Bs(e){kt||(ve=e),id(dr,e);}function Os(e,t){tn=e,oi=t??null,!(!kt||!pr||!e||ve==="denied")&&(St=true,ve==="granted"&&lt());}function Fs(){return lt()}function Hs(){Vr!=null&&(clearInterval(Vr),Vr=null),Gn?.(),Gn=null,kt=false,Yr=null,Ue=[],Pt=[],ve="granted",pr=true,St=false,tn=null,oi=null,ut=si();}var es=false;function Ad(){if(es||typeof history>"u")return;es=true;let e=history.pushState;history.pushState=function(...t){let r=e.apply(this,t);return Ft("page_view"),r},window.addEventListener("popstate",()=>{Ft("page_view");},{passive:true});}var Id=10,Md=1,Ld=5e3;function Ns(e={}){let{maxBurst:t=Id,refillRate:r=Md,refillIntervalMs:n=Ld}=e,i=t,o=Date.now();function s(){let p=Date.now(),h=p-o,b=Math.floor(h/n);b>0&&(i=Math.min(t,i+b*r),o=p);}function a(){return s(),i>0?(i--,true):false}function u(){i=t,o=Date.now();}function c(){return s(),i}return {tryConsume:a,reset:u,availableTokens:c}}var Dd={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}]},Us=Dd.patterns,Pd=Us.map(e=>({key:e.configKey,regex:new RegExp(e.source,e.caseInsensitive?"gi":"g"),replacement:e.replacement})),$d=Us.reduce((e,t)=>(e[t.configKey]=t.defaultOn!==false,e),{});function ai(e={}){let t={...$d,...e},r=Pd.filter(o=>t[o.key]);function n(o){if(!o)return o;let s=o;for(let{regex:a,replacement:u}of r)s=s.replace(new RegExp(a.source,a.flags),u);return s}function i(o,s){let a={...o};for(let u of s)typeof a[u]=="string"&&(a[u]=n(a[u]));return a}return {scrub:n,scrubObject:i}}var Bd=/token|jwt|passw|pwd|secret|api[-_]?key|apikey|auth|session|signature|email|phone|ssn/i,Od=/^(?:key|code|sig)$/i;function Fd(e){let t=e;try{t=decodeURIComponent(e);}catch{}return Bd.test(t)||Od.test(t)}function Hd(e,t){return e.split("&").map(r=>{let n=r.indexOf("=");if(n===-1)return r;let i=r.slice(0,n),o=r.slice(n+1);if(o.length===0)return r;if(Fd(i))return `${i}=[Scrubbed]`;let s=o;try{s=decodeURIComponent(o);}catch{}let a=t(s);return a!==s?`${i}=${encodeURIComponent(a)}`:r}).join("&")}function mr(e,t){if(!e||!e.includes("?")&&!e.includes("#"))return e;let{scrub:r}=ai(t),n=o=>{let s=o.indexOf("?");return s===-1?o:o.slice(0,s+1)+Hd(o.slice(s+1),r)},i=e.indexOf("#");return i===-1?n(e):n(e.slice(0,i))+n(e.slice(i))}var Nd=50,Ud=500;function qs(e={}){let t=Math.max(1,e.max??Nd),r=Math.max(50,e.maxMessageLength??Ud),n=[];return {add(i){let o=typeof i.timestamp=="number"?i.timestamp:Date.now(),s=typeof i.message=="string"&&i.message.length>r?`${i.message.slice(0,r)}\u2026`:i.message,a={timestamp:o,category:i.category,level:i.level??"info",message:s??"",...i.data?{data:i.data}:{}};for(n.push(a);n.length>t;)n.shift();},getAll(){return n.slice()},clear(){n=[];},size(){return n.length}}}var ts=8*1024,qd=1e3;function js(e){if(e instanceof Error){let t=e.name||"Error",r=e.message||String(e),n=typeof e.stack=="string"&&e.stack.length>0?e.stack.slice(0,ts):void 0,i=e.cause;return {name:t,message:r,...n?{stack:n}:{},...i!==void 0?{cause:i instanceof Error?i.message:i}:{}}}if(typeof e=="string")return {name:"Error",message:e};if(e&&typeof e=="object"){let t=e,r=typeof t.name=="string"?t.name:"Error",n=typeof t.message=="string"?t.message:(()=>{try{return JSON.stringify(t).slice(0,qd)}catch{return String(t)}})(),i=typeof t.stack=="string"?t.stack.slice(0,ts):void 0;return {name:r,message:n,...i?{stack:i}:{}}}return e===void 0?{name:"Error",message:"unknown"}:{name:"Error",message:String(e)}}var ce={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:"#2D7A55",danger:"#B83232"},jd={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:"#3A9E6E",danger:"#E05555"},ui={free:ce.inkMuted,explorer:"#2563EB",contributor:"#7C3AED",champion:"#D97706",default:ce.accent},rn={bg:"#0FFF50",fg:"#0a1a0a",border:"#00C43A"},Ws="#FAF7F0",Ks="#ffffff";var li={light:"#9A2A1E",dark:"#7A1F15"},ci={light:"#B52F1F",dark:"#C4321E"},Vs={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)"}}},zs={light:{bug:{solid:"#D92D20",ink:"#B42318"},slow:{solid:"#B54708",ink:"#93370D"},visual:{solid:"#7A3FE4",ink:"#6427C9"},confusing:{solid:"#2160E0",ink:"#1849A9"},idea:{solid:"#14803C",ink:"#0E6630"},other:{solid:"#667085",ink:"#475467"}},dark:{bug:{solid:"#F97066",ink:"#FDA29B"},slow:{solid:"#F79009",ink:"#FEC84B"},visual:{solid:"#A48AFB",ink:"#C9B8FD"},confusing:{solid:"#5B9BF8",ink:"#9EC5FC"},idea:{solid:"#3CCB7F",ink:"#8DE8B4"},other:{solid:"#98A2B3",ink:"#D0D5DD"}}},Gs={light:{wash:.08,strong:.14},dark:{wash:.14,strong:.24}};function di(e){return e==="dark"?jd:ce}var Ys={comfy:12},Xs={control:4},nn={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"},Nt={base:99999,banner:99998,panel:1e5,overlay:2147483647},on={easeStamp:"cubic-bezier(0.22, 1, 0.36, 1)",durationFast:200},Js={instant:120,panel:300};var dt={bannerHeight:36,fabSize:52,edgeTabWidth:22,gutter:24,panelWidth:360,panelMaxHeight:480,panelSheetBreakpoint:480};function rs(e){return /^#[0-9a-fA-F]{3,8}$/.test(e)?e:""}function Zs(e,t="",r=""){let n=di(e),i=rs(t),o=rs(r),s=i||n.accent,a=i?e==="dark"?`${s}1F`:`${s}14`:n.accentWash,u=o||n.accentInk;return {accent:s,accentWash:a,accentInk:u}}var Qs={bannerLabel:"Feedback"};function Wd(e){let t=e.length%4===0?"":"=".repeat(4-e.length%4),r=e.replace(/-/g,"+").replace(/_/g,"/")+t;if(typeof atob=="function")return atob(r);let n=globalThis.Buffer;return n?n.from(r,"base64").toString("binary"):""}function ea(e){if(typeof e!="string")return null;let t=e.split(".");if(t.length!==3)return null;try{let r=Wd(t[1]),n=JSON.parse(r),i=typeof n.projectId=="string"?n.projectId:void 0,o=typeof n.sub=="string"?n.sub:void 0;return !i||!o?null:{projectId:i,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 Kd=["www.google.com","icons.duckduckgo.com","icon.horse"];function ta(e){try{let t=new URL(e).hostname.toLowerCase();return Kd.some(r=>t===r||t.endsWith(`.${r}`))}catch{return false}}function Vd(e,t=32){return [`https://${e}/favicon.svg`,`https://${e}/favicon.ico`,`https://${e}/favicon-32x32.png`,`https://${e}/apple-touch-icon.png`]}function ra(e){let t=[],r=o=>{let s=o?.trim().toLowerCase();!s||t.includes(s)||t.push(s);};r(Yd(e.repo_url));let n=e.sdk_origin&&!zd(e.sdk_origin)?Gd(e.sdk_origin):null,i=new Set((e.shared_hosts??[]).map(o=>o.trim().toLowerCase()).filter(Boolean));return n&&!i.has(n)&&!i.has(n.replace(/^www\./,""))&&r(n),t}function na(e,t=32){if(e.icon_url?.trim())return [e.icon_url.trim()];let r=new Set,n=[],i=o=>{!o||r.has(o)||ta(o)||(r.add(o),n.push(o));};for(let o of ra(e))for(let s of Vd(o,t))i(s);return n}function zd(e){try{return new URL(e.includes("://")?e:`https://${e}`).pathname.replace(/\/+$/,"")!==""}catch{return false}}function Gd(e){let t=e.trim();if(!t||/^(capacitor|file|content|app):/i.test(t))return null;try{let n=new URL(t.includes("://")?t:`https://${t}`).hostname.toLowerCase();return n==="localhost"||n==="127.0.0.1"||n.endsWith(".local")?null:n}catch{return null}}function Yd(e){if(!e?.trim())return null;try{let t=new URL(e.trim()),r=t.hostname.toLowerCase(),n=t.pathname.replace(/^\/+|\/+$/g,"").split("/").filter(Boolean);if(n.length<2)return null;let i=n[1].replace(/\.git$/i,"").toLowerCase();return /^[a-z0-9][a-z0-9.-]*\.[a-z]{2,}$/i.test(i)||r==="github.com"&&i.endsWith(".github.io")?i:r!=="github.com"&&r!=="www.github.com"?r:null}catch{return null}}function ia(e){return ra(e)[0]??null}function oa(e){if(typeof document>"u"||!e.complete||e.naturalWidth===0||e.naturalHeight===0)return false;try{let t=document.createElement("canvas"),r=e.naturalWidth,n=e.naturalHeight;t.width=r,t.height=n;let i=t.getContext("2d");if(!i)return !1;i.drawImage(e,0,0);let{data:o}=i.getImageData(0,0,r,n),s=0,a=0,u=0;for(let p=0;p<o.length;p+=4){let h=o[p],b=o[p+1],A=o[p+2];if(o[p+3]<128)continue;s++;let E=Math.max(h,b,A),y=Math.min(h,b,A),x=E-y;u=Math.max(u,x),a+=x;}return s===0?!0:a/s<14&&u<24}catch{return ta(e.src)}}function sa(e){let t=e.trim().split(/[\s._-]+/).filter(Boolean);return t.length>=2?`${t[0][0]??""}${t[1][0]??""}`.toUpperCase():(e.replace(/[^a-zA-Z0-9]/g,"").slice(0,2)||e.slice(0,2)||"?").toUpperCase()}function aa(){if(typeof document>"u")return null;let e=['link[rel="icon"]','link[rel="shortcut icon"]','link[rel="apple-touch-icon"]'];for(let t of e){let n=document.querySelector(t)?.href;if(n&&Xd(n))return n}return null}function Xd(e){try{let t=typeof location<"u"?location.href:void 0,r=new URL(e,t).protocol;return r==="http:"||r==="https:"}catch{return false}}async function la(e,t=ns){if(!e.startsWith("data:image/")||ua(e)<=t)return e;if(typeof document>"u")return null;let r=new Image;await new Promise((o,s)=>{r.onload=()=>o(),r.onerror=()=>s(new Error("screenshot_decode_failed")),r.src=e;});let n=[.65,.5,.35,.25],i=[1,.85,.7,.55,.4];for(let o of i){let s=document.createElement("canvas"),a=Math.max(1,Math.round(r.naturalWidth*o)),u=Math.max(1,Math.round(r.naturalHeight*o));s.width=a,s.height=u;let c=s.getContext("2d");if(c){c.drawImage(r,0,0,a,u);for(let p of n){let h=s.toDataURL("image/jpeg",p);if(ua(h)<=t)return h}}}return null}function ua(e){let t=e.indexOf(",");if(t<0)return e.length;let r=e.slice(t+1);return Math.ceil(r.length*3/4)}var ca="mushi-launcher-hidden";function da(){try{return typeof sessionStorage<"u"&&sessionStorage.getItem(ca)==="1"}catch{return false}}function pa(){try{typeof sessionStorage<"u"&&sessionStorage.setItem(ca,"1");}catch{}}var sn="mushi-assistant-session-v1";function ha(){try{if(typeof sessionStorage>"u")return null;let e=sessionStorage.getItem(sn);if(!e)return null;let t=JSON.parse(e);if(!t||typeof t!="object")return null;let r=t,n=Array.isArray(r.turns)?r.turns:null;if(!n)return null;let i=[];for(let s of n){if(!s||typeof s!="object")continue;let a=s;if(a.role!=="user"&&a.role!=="assistant"||typeof a.text!="string")continue;let u={role:a.role,text:a.text};if(Array.isArray(a.options)){let c=a.options.filter(p=>typeof p=="string");c.length&&(u.options=c);}a.offerReport===!0&&(u.offerReport=!0),i.push(u);}let o=typeof r.threadId=="string"&&r.threadId.length>0?r.threadId:null;return {turns:i,threadId:o}}catch{return null}}function fa(e){try{if(typeof sessionStorage>"u")return;if(!e.turns.length&&!e.threadId){sessionStorage.removeItem(sn);return}sessionStorage.setItem(sn,JSON.stringify(e));}catch{}}function ma(){try{if(typeof sessionStorage>"u")return;sessionStorage.removeItem(sn);}catch{}}var ga="Feature request";function ba(e){let t=Date.parse(e);if(Number.isNaN(t))return "";let r=Date.now()-t;if(r<0)return "just now";let n=Math.floor(r/1e3);if(n<60)return "just now";let i=Math.floor(n/60);if(i<60)return `${i}m ago`;let o=Math.floor(i/60);if(o<24)return `${o}h ago`;let s=Math.floor(o/24);if(s<7)return `${s}d ago`;let a=Math.floor(s/7);return a<5?`${a}w ago`:new Date(t).toLocaleDateString(void 0,{month:"short",day:"numeric"})}var Jd="https://kensaur.us/mushi-mushi/",Zd="utm_source=widget&utm_medium=powered-by";function Ea(e){let t=`${Jd}?${Zd}`;return e&&/^[0-9a-f]{6,64}$/.test(e)?`${t}&ref=${e}`:t}function ya(e){return (e.metaKey||e.ctrlKey)&&e.key==="Enter"}function va(e){return /Mac|iPhone|iPad|iPod/i.test(e)?"\u2318":"Ctrl"}function wa(){return typeof navigator>"u"?"":navigator.userAgentData?.platform||navigator.platform||navigator.userAgent||""}function Sa(e,t,r){if(e==="banner")return true;if(e==="console-only"||e==="off")return false;if(t)return true;if(!r)return false;let n=r.hostname.replace(/^\[|\]$/g,"");return r.protocol==="file:"||n==="localhost"||n==="127.0.0.1"||n==="::1"||n==="0.0.0.0"||n.endsWith(".localhost")||n.endsWith(".local")}function Ut(e,t){return new Promise((r,n)=>{let i=setTimeout(()=>n(new Error("Timed out")),t);e.then(o=>{clearTimeout(i),r(o);},o=>{clearTimeout(i),n(o);});})}var qt=15e3,an=4e3;function xa(e,t){let r={month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",timeZoneName:"short"};try{return e.toLocaleString(t,r)}catch{return e.toLocaleString(void 0,r)}}function _t(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function gr(e){return e?.failureKind==="blocked"||e?.failureKind==="throttled"}function ka(e,t){if(!t.includes("*"))return e.includes(t);let r=t.replace(/\/\*\*$|\*\*|\*|[.+?^${}()|[\]\\]/g,n=>n==="/**"?"(/.*)?":n==="**"?".*":n==="*"?"[^/]*":`\\${n}`);return new RegExp(`^${r}$`).test(e.length>1?e.replace(/\/$/,""):e)}function Ra(e){let t=e.appDomain??ia({project_id:e.projectId,project_name:e.appName,project_slug:e.appSlug??""}),r=_t(sa(e.appName)),n=na({project_id:e.projectId,project_name:e.appName,project_slug:e.appSlug??"",sdk_origin:e.appDomain?`https://${e.appDomain}`:null});return n.length?`<span class="mushi-app-icon" data-mushi-favicon data-candidates="${_t(JSON.stringify(n))}" data-initials="${r}" aria-hidden="true" title="${_t(t??e.appName)}">
14
14
  <img class="mushi-app-icon-img" src="${_t(n[0])}" alt="" referrerpolicy="no-referrer" width="16" height="16" />
15
15
  <span class="mushi-app-icon-initials" hidden>${r}</span>
16
- </span>`:`<span class="mushi-app-icon mushi-app-icon-initials-only" aria-hidden="true">${r}</span>`}function Sa(e){e.querySelectorAll("[data-mushi-favicon]").forEach(t=>{let r=t.querySelector(".mushi-app-icon-img"),n=t.querySelector(".mushi-app-icon-initials");if(!r||!n)return;let i=[];try{i=JSON.parse(t.dataset.candidates??"[]");}catch{i=[];}let o=0,s=()=>{o+=1,o<i.length?r.src=i[o]:(r.remove(),n.hidden=false,t.classList.add("mushi-app-icon-initials-only"));};r.onerror=s,r.onload=()=>{ta(r)&&s();};});}var Wd={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}]},xa=Wd.patterns,Kd=xa.map(e=>({key:e.configKey,regex:new RegExp(e.source,e.caseInsensitive?"gi":"g"),replacement:e.replacement})),Vd=xa.reduce((e,t)=>(e[t.configKey]=t.defaultOn!==false,e),{});function zd(e={}){let t={...Vd,...e},r=Kd.filter(o=>t[o.key]);function n(o){if(!o)return o;let s=o;for(let{regex:a,replacement:u}of r)s=s.replace(new RegExp(a.source,a.flags),u);return s}function i(o,s){let a={...o};for(let u of s)typeof a[u]=="string"&&(a[u]=n(a[u]));return a}return {scrub:n,scrubObject:i}}function Gd(e,t){return zd(t).scrub(e)}var Yd=300,Xd=16e3,Jd=6;function di(e,t,r){if(typeof e=="string")return t(e);if(e===null||typeof e=="number"||typeof e=="boolean")return e;if(!(r>=Jd)){if(Array.isArray(e))return e.map(n=>di(n,t,r+1)).filter(n=>n!==void 0);if(typeof e=="object"){let n={};for(let[i,o]of Object.entries(e)){let s=di(o,t,r+1);s!==void 0&&(n[i]=s);}return n}}}function Zd(e,t){if(JSON.stringify(e).length<=t)return e;let r={diagnosticsTruncated:true};for(let[n,i]of Object.entries(e)){let o={...r,[n]:i};JSON.stringify(o).length>t||(r[n]=i);}return r}async function ka(e,t={}){if(!e)return null;let r;try{let n=await Promise.race([Promise.resolve().then(e),new Promise(o=>{r=setTimeout(()=>o(null),t.timeoutMs??Yd);})]);if(!n||typeof n!="object"||Array.isArray(n))return null;let i=di(n,t.scrub??(o=>Gd(o)),0);return Object.keys(i).length>0?Zd(i,t.maxChars??Xd):null}catch{return null}finally{r&&clearTimeout(r);}}sn();var an={widget:{trigger:"Report Issue",title:"Report an Issue",close:"Close",back:"Back",submit:"Submit",submitting:"Sending\u2026",submitted:"Thank you! Your report has been submitted.",error:"Could not send your report. Check your connection and try again.",hideLauncher:"Hide the bug button for this visit"},step1:{moreNav:{communityIdeas:"Community ideas",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"}},step2:{intents:{bug:["Crash","Wrong result","Unresponsive","Data loss","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:{descriptionPlaceholder:"What went wrong?",featurePlaceholder:"Describe your idea\u2026",submitHint:"{key} + Enter to send",screenshotButton:"Screenshot",screenshotAttached:"Screenshot attached",screenshotCapturing:"Taking screenshot\u2026",screenshotRetry:"Try again",screenshotShareTab:"Share this tab instead",notSentBlocked:"Not sent. This report was filtered out before sending. Your text is still here; add a little more detail and try again.",notSentThrottled:"Not sent. Too many reports in a short time. Your text is still here; wait a minute and try again.",screenshotReview:"Check the screenshot below, then press Send again.",screenshotErrors:{permission:"Screen capture was blocked. Allow it, then try again.",unsupported:"This browser can't capture the page. Describe it instead.",taint:"Content from another site blocked the capture. Describe it instead.",timeout:"Capture timed out.",csp:"This site's security policy blocks screenshots.",error:"Capture failed."},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:"Point at it",elementSelected:"Element selected",elementCapturing:"Click anything on the page\u2026",elementFailed:"Couldn't select \u2014 describe it instead",elementSelectorHint:"Click any element \xB7 Esc to cancel"},panel:{title:"Send feedback",more:"More\u2026",pointAt:"Point at it",remove:"Remove",markUp:"Mark up",privacy:"Shown only to the app\u2019s developer. Remove anything private.",privacyShort:"Only the developer sees this",typeQuestion:"What is it about?",prompts:{bug:"What did you do, and what happened?",slow:"What was slow, and how long did it take?",visual:"What looks wrong, and where?",confusing:"Where did you get stuck? What were you trying to do?",idea:"What would you like it to do?",other:"What happened?"},charsLeft:"{n} more characters",ready:"Ready to send",delivered:"Got it",send:"Send",yourReports:"Your reports",newCount:"{n} new",moreOptions:"More options",reportTitle:"Your report",notifyMe:"Notify me",notifyOn:"Notifications are on."},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",fileReportCta:"File a report instead",stillStuckCta:"Still stuck? File a report",errors:{noResponse:"No response \u2014 check your connection and try again.",generic:"Could not reach the assistant. Try again in a moment."}},flows:{reports:{title:"Your reports",loading:"Loading reports\u2026"},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:{loading:"Loading updates\u2026",replyPlaceholder:"Reply to the developer\u2026"},success:{done:"Done",trackReport:"Track it",receipt:"Receipt",delivering:"Delivering to the team\u2026",queuedOffline:"Queued offline",queuedHint:"We'll send it the moment you're back online.",rateLimited:"Sending too fast",rateLimitedHint:"Wait about a minute \u2014 we queued this report and will retry automatically.",quotaBlocked:"Could not accept this report",quotaBlockedHint:"This project's quota or plan blocked the send. Ask the app owner to check Billing.",permanentFailed:"Could not send this report",permanentFailedHint:"The payload was rejected (often too large). Try again with a shorter note or without a screenshot.",retrying:"Queued \u2014 retrying",retryingHint:"We could not reach the server just now. We'll keep trying in the background.",trackOnMushi:"Track on Mushi",slaDefault:"We'll let you know here when there's news.",screenshotDropped:"Sent without the screenshot \u2014 it was too large to attach."},featureRequest:{label:"Feature request"},betaStrip:{defaultMessage:"{appName} is in early development",contactHint:"Questions? {email}",teamSees:"The {appName} team will see this",teamSeesGeneric:"The team will see this",ariaLabel:"Beta status"},changelog:{whatsNew:"What's new in {version}"},poweredBy:"Bug reports by Mushi Mushi"}};var Aa={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\u3002\u5831\u544A\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F\u3002",error:"\u5831\u544A\u3092\u9001\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u63A5\u7D9A\u3092\u78BA\u8A8D\u3057\u3066\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",hideLauncher:"\u4ECA\u56DE\u306E\u5229\u7528\u4E2D\u306F\u5831\u544A\u30DC\u30BF\u30F3\u3092\u8868\u793A\u3057\u306A\u3044"},step1:{moreNav:{communityIdeas:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306E\u30A2\u30A4\u30C7\u30A2",leaderboard:"\u30E9\u30F3\u30AD\u30F3\u30B0",joinCommunity:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306B\u53C2\u52A0 \xB7 \u8907\u6570\u30A2\u30D7\u30EA\u306E\u5831\u544A\u3092\u307E\u3068\u3081\u3066\u78BA\u8A8D",myAccount:"\u30DE\u30A4\u30A2\u30AB\u30A6\u30F3\u30C8"},categories:{bug:"\u4E0D\u5177\u5408",slow:"\u9045\u3044\u30FB\u91CD\u3044",visual:"\u8868\u793A\u306E\u554F\u984C",confusing:"\u308F\u304B\u308A\u306B\u304F\u3044",other:"\u305D\u306E\u4ED6"}},step2:{intents:{bug:["\u30A2\u30D7\u30EA\u304C\u843D\u3061\u308B","\u53CD\u5FDC\u3057\u306A\u3044","\u30C7\u30FC\u30BF\u304C\u6D88\u3048\u305F","\u7D50\u679C\u304C\u304A\u304B\u3057\u3044","\u305D\u306E\u4ED6"],slow:["\u30DA\u30FC\u30B8\u306E\u8AAD\u307F\u8FBC\u307F","\u64CD\u4F5C\u3078\u306E\u53CD\u5FDC","\u901A\u4FE1","\u30A2\u30CB\u30E1\u30FC\u30B7\u30E7\u30F3","\u305D\u306E\u4ED6"],visual:["\u30EC\u30A4\u30A2\u30A6\u30C8\u304C\u5D29\u308C\u3066\u3044\u308B","\u8868\u793A\u304C\u91CD\u306A\u3063\u3066\u3044\u308B","\u8868\u793A\u3055\u308C\u306A\u3044\u90E8\u5206\u304C\u3042\u308B","\u8272\u3084\u6587\u5B57\u304C\u9055\u3046","\u305D\u306E\u4ED6"],confusing:["\u8868\u793A\u306E\u610F\u5473\u304C\u5206\u304B\u308A\u306B\u304F\u3044","\u8AAC\u660E\u304C\u898B\u5F53\u305F\u3089\u306A\u3044","\u601D\u3063\u305F\u901A\u308A\u306B\u9032\u307E\u306A\u3044","\u3069\u3053\u306B\u3042\u308B\u304B\u5206\u304B\u3089\u306A\u3044","\u305D\u306E\u4ED6"],other:["\u6A5F\u80FD\u306E\u8981\u671B","\u30A2\u30AF\u30BB\u30B7\u30D3\u30EA\u30C6\u30A3","\u8AA4\u5B57\u30FB\u8131\u5B57","\u305D\u306E\u4ED6"]}},step3:{descriptionPlaceholder:"\u4F55\u304C\u8D77\u304D\u307E\u3057\u305F\u304B\uFF1F",featurePlaceholder:"\u30A2\u30A4\u30C7\u30A2\u3092\u6559\u3048\u3066\u304F\u3060\u3055\u3044\u2026",submitHint:"{key} + Enter \u3067\u9001\u4FE1",screenshotButton:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8",screenshotAttached:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u3092\u6DFB\u4ED8\u3057\u307E\u3057\u305F",screenshotCapturing:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u3092\u64AE\u5F71\u4E2D\u2026",screenshotRetry:"\u3084\u308A\u76F4\u3059",screenshotShareTab:"\u3053\u306E\u30BF\u30D6\u3092\u5171\u6709\u3057\u3066\u64AE\u5F71",notSentBlocked:"\u9001\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u9001\u4FE1\u524D\u306E\u78BA\u8A8D\u3067\u5BFE\u8C61\u5916\u3068\u5224\u65AD\u3055\u308C\u307E\u3057\u305F\u3002\u5165\u529B\u5185\u5BB9\u306F\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002\u3082\u3046\u5C11\u3057\u8A73\u3057\u304F\u66F8\u3044\u3066\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",notSentThrottled:"\u9001\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u77ED\u3044\u6642\u9593\u306B\u9001\u4FE1\u304C\u7D9A\u3044\u3066\u3044\u307E\u3059\u3002\u5165\u529B\u5185\u5BB9\u306F\u6B8B\u3063\u3066\u3044\u307E\u3059\u30021 \u5206\u307B\u3069\u5F85\u3063\u3066\u304B\u3089\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",screenshotReview:"\u4E0B\u306E\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u3092\u78BA\u8A8D\u3057\u3066\u304B\u3089\u3001\u3082\u3046\u4E00\u5EA6\u300C\u9001\u4FE1\u300D\u3092\u62BC\u3057\u3066\u304F\u3060\u3055\u3044\u3002",screenshotErrors:{permission:"\u753B\u9762\u306E\u53D6\u5F97\u304C\u8A31\u53EF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u8A31\u53EF\u3057\u3066\u304B\u3089\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",unsupported:"\u3053\u306E\u30D6\u30E9\u30A6\u30B6\u3067\u306F\u753B\u9762\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002\u6587\u7AE0\u3067\u304A\u77E5\u3089\u305B\u304F\u3060\u3055\u3044\u3002",taint:"\u5916\u90E8\u30B5\u30A4\u30C8\u306E\u30B3\u30F3\u30C6\u30F3\u30C4\u304C\u542B\u307E\u308C\u308B\u305F\u3081\u3001\u753B\u9762\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002",timeout:"\u753B\u9762\u306E\u53D6\u5F97\u306B\u6642\u9593\u304C\u304B\u304B\u308A\u3059\u304E\u307E\u3057\u305F\u3002",csp:"\u3053\u306E\u30B5\u30A4\u30C8\u306E\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u8A2D\u5B9A\u306B\u3088\u308A\u3001\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002",error:"\u753B\u9762\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002"},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\u3066\u304F\u3060\u3055\u3044\u3002\u6B8B\u9AD8\u3084\u500B\u4EBA\u60C5\u5831\u306A\u3069\u304C\u5199\u3063\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u524A\u9664\u3057\u3066\u304B\u3089\u9001\u4FE1\u3057\u3066\u304F\u3060\u3055\u3044\u3002",elementButton:"\u5834\u6240\u3092\u6307\u5B9A",elementSelected:"\u5834\u6240\u3092\u6307\u5B9A\u3057\u307E\u3057\u305F",elementCapturing:"\u8A72\u5F53\u3059\u308B\u7B87\u6240\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u304F\u3060\u3055\u3044\u2026",elementFailed:"\u9078\u629E\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u6587\u7AE0\u3067\u304A\u77E5\u3089\u305B\u304F\u3060\u3055\u3044\u3002",elementSelectorHint:"\u8A72\u5F53\u3059\u308B\u7B87\u6240\u3092\u30AF\u30EA\u30C3\u30AF \xB7 Esc \u3067\u30AD\u30E3\u30F3\u30BB\u30EB"},panel:{title:"\u30D5\u30A3\u30FC\u30C9\u30D0\u30C3\u30AF",more:"\u307B\u304B\u306E\u7A2E\u985E\u2026",pointAt:"\u5834\u6240\u3092\u6307\u5B9A",remove:"\u524A\u9664",markUp:"\u5370\u3092\u3064\u3051\u308B",privacy:"\u9001\u4FE1\u5185\u5BB9\u306F\u3001\u3053\u306E\u30A2\u30D7\u30EA\u306E\u958B\u767A\u8005\u3060\u3051\u304C\u78BA\u8A8D\u3057\u307E\u3059\u3002\u500B\u4EBA\u60C5\u5831\u306F\u542B\u3081\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002",privacyShort:"\u958B\u767A\u8005\u3060\u3051\u304C\u78BA\u8A8D\u3057\u307E\u3059",typeQuestion:"\u3069\u3093\u306A\u5185\u5BB9\u3067\u3059\u304B\uFF1F",prompts:{bug:"\u4F55\u3092\u3057\u305F\u3089\u3001\u3069\u3046\u306A\u308A\u307E\u3057\u305F\u304B\uFF1F",slow:"\u3069\u306E\u64CD\u4F5C\u304C\u3001\u3069\u306E\u304F\u3089\u3044\u9045\u3044\u3067\u3059\u304B\uFF1F",visual:"\u3069\u3053\u304C\u3001\u3069\u306E\u3088\u3046\u306B\u304A\u304B\u3057\u304F\u898B\u3048\u307E\u3059\u304B\uFF1F",confusing:"\u3069\u3053\u3067\u8FF7\u3044\u307E\u3057\u305F\u304B\uFF1F \u4F55\u3092\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u307E\u3057\u305F\u304B\uFF1F",idea:"\u3069\u3093\u306A\u6A5F\u80FD\u304C\u3042\u308B\u3068\u5B09\u3057\u3044\u3067\u3059\u304B\uFF1F",other:"\u4F55\u304C\u8D77\u304D\u307E\u3057\u305F\u304B\uFF1F"},charsLeft:"\u3042\u3068 {n} \u6587\u5B57",ready:"\u9001\u4FE1\u3067\u304D\u307E\u3059",delivered:"\u5C4A\u304D\u307E\u3057\u305F",send:"\u9001\u4FE1",yourReports:"\u3042\u306A\u305F\u306E\u5831\u544A",newCount:"\u65B0\u7740 {n} \u4EF6",moreOptions:"\u305D\u306E\u4ED6\u306E\u30E1\u30CB\u30E5\u30FC",reportTitle:"\u3042\u306A\u305F\u306E\u5831\u544A",notifyMe:"\u901A\u77E5\u3092\u53D7\u3051\u53D6\u308B",notifyOn:"\u901A\u77E5\u3092\u30AA\u30F3\u306B\u3057\u307E\u3057\u305F\u3002"},assistant:{defaultLabel:"\u8CEA\u554F",defaultGreeting:"\u3053\u306E\u30DA\u30FC\u30B8\u306B\u3064\u3044\u3066\u8CEA\u554F\u3067\u304D\u307E\u3059\u3002\u56DE\u7B54\u306B\u306F\u3001\u3044\u307E\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\u8CEA\u554F\u3059\u308B",thinking:"\u8003\u3048\u4E2D\u2026",fileReportCta:"\u4E0D\u5177\u5408\u3068\u3057\u3066\u5831\u544A\u3059\u308B",stillStuckCta:"\u89E3\u6C7A\u3057\u306A\u3044\u5834\u5408\u306F\u5831\u544A\u3059\u308B",errors:{noResponse:"\u5FDC\u7B54\u304C\u3042\u308A\u307E\u305B\u3093\u3002\u63A5\u7D9A\u3092\u78BA\u8A8D\u3057\u3066\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\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\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002"}},flows:{reports:{title:"\u3042\u306A\u305F\u306E\u5831\u544A",loading:"\u5831\u544A\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026"},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\u304A\u5F85\u3061\u3057\u3066\u3044\u307E\u3059\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:"\u5168\u4F53\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\u3002\u6700\u521D\u306E\u4E00\u4EBA\u306B\u306A\u308A\u307E\u305B\u3093\u304B\u3002",signInPrompt:"\u30B5\u30A4\u30F3\u30A4\u30F3\u3057\u3066\u9806\u4F4D\u3092\u78BA\u8A8D \u2192",myRank:"\u4ECA\u6708\u306E\u9806\u4F4D\uFF1A{rank} \u4F4D",footer:"\u4ECA\u6708\u306E\u5168\u4F53\u30E9\u30F3\u30AD\u30F3\u30B0 \xB7 \u30DD\u30A4\u30F3\u30C8\u306F\u6BCE\u6708\u30EA\u30BB\u30C3\u30C8\u3055\u308C\u307E\u3059",anon:"\u533F\u540D"},account:{title:"Mushi Mushi \u30A2\u30AB\u30A6\u30F3\u30C8",checkEmailTitle:"\u30E1\u30FC\u30EB\u3092\u3054\u78BA\u8A8D\u304F\u3060\u3055\u3044",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\u3001\u3059\u3079\u3066\u306E\u30A2\u30D7\u30EA\u306E\u5831\u544A\u3068\u30E9\u30F3\u30AD\u30F3\u30B0\u3092\u78BA\u8A8D\u3067\u304D\u307E\u3059\u3002\u30D1\u30B9\u30EF\u30FC\u30C9\u306F\u4E0D\u8981\u3067\u3059\u3002",magicLinkSent:"{email} \u306B\u30B5\u30A4\u30F3\u30A4\u30F3\u7528\u306E\u30EA\u30F3\u30AF\u3092\u9001\u308A\u307E\u3057\u305F\u3002\u30EA\u30F3\u30AF\u3092\u958B\u304F\u3068\u3001\u3053\u308C\u307E\u3067\u306E\u5831\u544A\u304C\u30A2\u30AB\u30A6\u30F3\u30C8\u306B\u7D10\u3065\u304D\u307E\u3059\u3002",resendEmail:"\u30E1\u30FC\u30EB\u3092\u518D\u9001",sendLink:"\u30B5\u30A4\u30F3\u30A4\u30F3\u7528\u306E\u30EA\u30F3\u30AF\u3092\u9001\u308B",sending:"\u9001\u4FE1\u4E2D\u2026",crossAppReports:"\u3059\u3079\u3066\u306E\u30A2\u30D7\u30EA\u306E\u5831\u544A \u2192",viewLeaderboard:"\u5168\u4F53\u30E9\u30F3\u30AD\u30F3\u30B0 \u2192",signOut:"\u30B5\u30A4\u30F3\u30A2\u30A6\u30C8",rankSummary:"{rank} \u4F4D \xB7 \u4ECA\u6708 {points} \u30DD\u30A4\u30F3\u30C8"},crossApp:{title:"\u3042\u306A\u305F\u306E\u5831\u544A",loading:"\u5831\u544A\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u5831\u544A\u304C\u3042\u308A\u307E\u305B\u3093\u3002",unknownApp:"\u4E0D\u660E\u306A\u30A2\u30D7\u30EA"},thread:{loading:"\u6700\u65B0\u306E\u72B6\u6CC1\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",replyPlaceholder:"\u958B\u767A\u8005\u306B\u8FD4\u4FE1\u3059\u308B\u2026"},success:{done:"\u9589\u3058\u308B",trackReport:"\u72B6\u6CC1\u3092\u78BA\u8A8D",receipt:"\u53D7\u4ED8\u756A\u53F7",delivering:"\u958B\u767A\u30C1\u30FC\u30E0\u306B\u9001\u4FE1\u4E2D\u2026",queuedOffline:"\u30AA\u30D5\u30E9\u30A4\u30F3\u306E\u305F\u3081\u9001\u4FE1\u5F85\u3061",queuedHint:"\u30AA\u30F3\u30E9\u30A4\u30F3\u306B\u623B\u308B\u3068\u3001\u81EA\u52D5\u7684\u306B\u9001\u4FE1\u3057\u307E\u3059\u3002",rateLimited:"\u9001\u4FE1\u306E\u9593\u9694\u304C\u77ED\u3059\u304E\u307E\u3059",rateLimitedHint:"1 \u5206\u307B\u3069\u304A\u5F85\u3061\u304F\u3060\u3055\u3044\u3002\u5831\u544A\u306F\u4FDD\u5B58\u6E08\u307F\u3067\u3001\u81EA\u52D5\u7684\u306B\u518D\u9001\u3055\u308C\u307E\u3059\u3002",quotaBlocked:"\u3053\u306E\u5831\u544A\u306F\u53D7\u3051\u4ED8\u3051\u3089\u308C\u307E\u305B\u3093\u3067\u3057\u305F",quotaBlockedHint:"\u3053\u306E\u30A2\u30D7\u30EA\u306E\u53D7\u4ED8\u4E0A\u9650\u306B\u9054\u3057\u3066\u3044\u307E\u3059\u3002\u304A\u624B\u6570\u3067\u3059\u304C\u3001\u30A2\u30D7\u30EA\u306E\u904B\u55B6\u8005\u306B\u76F4\u63A5\u3054\u9023\u7D61\u304F\u3060\u3055\u3044\u3002",permanentFailed:"\u5831\u544A\u3092\u9001\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F",permanentFailedHint:"\u9001\u4FE1\u5185\u5BB9\u3092\u53D7\u3051\u4ED8\u3051\u3089\u308C\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30B5\u30A4\u30BA\u8D85\u904E\u306A\u3069\uFF09\u3002\u6587\u7AE0\u3092\u77ED\u304F\u3059\u308B\u304B\u3001\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u3092\u5916\u3057\u3066\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",retrying:"\u9001\u4FE1\u5F85\u3061\uFF08\u518D\u8A66\u884C\u4E2D\uFF09",retryingHint:"\u30B5\u30FC\u30D0\u30FC\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u81EA\u52D5\u7684\u306B\u518D\u9001\u3057\u307E\u3059\u3002",trackOnMushi:"Mushi Mushi \u3067\u78BA\u8A8D",slaDefault:"\u9032\u5C55\u304C\u3042\u308C\u3070\u3001\u3053\u3053\u3067\u304A\u77E5\u3089\u305B\u3057\u307E\u3059\u3002",screenshotDropped:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306F\u30B5\u30A4\u30BA\u304C\u5927\u304D\u3059\u304E\u308B\u305F\u3081\u6DFB\u4ED8\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u5831\u544A\u306E\u6587\u7AE0\u306E\u307F\u9001\u4FE1\u3057\u307E\u3057\u305F\u3002"},featureRequest:{label:"\u6A5F\u80FD\u306E\u8981\u671B"},betaStrip:{defaultMessage:"{appName} \u306F\u958B\u767A\u521D\u671F\u306E\u6BB5\u968E\u3067\u3059",contactHint:"\u3054\u8CEA\u554F\u306F {email} \u307E\u3067\u304A\u5BC4\u305B\u304F\u3060\u3055\u3044",teamSees:"{appName} \u306E\u30C1\u30FC\u30E0\u304C\u78BA\u8A8D\u3057\u307E\u3059",teamSeesGeneric:"\u30C1\u30FC\u30E0\u304C\u78BA\u8A8D\u3057\u307E\u3059",ariaLabel:"\u30D9\u30FC\u30BF\u7248\u306E\u304A\u77E5\u3089\u305B"},changelog:{whatsNew:"{version} \u306E\u65B0\u6A5F\u80FD"},poweredBy:"\u30D0\u30B0\u5831\u544A\u306F Mushi Mushi \u3067"}};var Ia={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",hideLauncher:"\u0E0B\u0E48\u0E2D\u0E19\u0E1B\u0E38\u0E48\u0E21\u0E41\u0E08\u0E49\u0E07\u0E1A\u0E31\u0E4A\u0E01\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E0A\u0E21\u0E04\u0E23\u0E31\u0E49\u0E07\u0E19\u0E35\u0E49"},step1:{moreNav:{communityIdeas:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E08\u0E32\u0E01\u0E0A\u0E38\u0E21\u0E0A\u0E19",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"}},step2:{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:{descriptionPlaceholder:"\u0E40\u0E01\u0E34\u0E14\u0E2D\u0E30\u0E44\u0E23\u0E02\u0E36\u0E49\u0E19?",featurePlaceholder:"\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u2026",submitHint:"{key} + Enter \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E2A\u0E48\u0E07",screenshotButton:"\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D",screenshotAttached:"\u0E41\u0E19\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E41\u0E25\u0E49\u0E27",screenshotCapturing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E16\u0E48\u0E32\u0E22\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u2026",screenshotRetry:"\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",screenshotShareTab:"\u0E41\u0E0A\u0E23\u0E4C\u0E41\u0E17\u0E47\u0E1A\u0E19\u0E35\u0E49\u0E41\u0E17\u0E19",notSentBlocked:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E2A\u0E48\u0E07 \u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E16\u0E39\u0E01\u0E01\u0E23\u0E2D\u0E07\u0E2D\u0E2D\u0E01\u0E01\u0E48\u0E2D\u0E19\u0E2A\u0E48\u0E07 \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E22\u0E31\u0E07\u0E2D\u0E22\u0E39\u0E48 \u0E40\u0E1E\u0E34\u0E48\u0E21\u0E23\u0E32\u0E22\u0E25\u0E30\u0E40\u0E2D\u0E35\u0E22\u0E14\u0E2D\u0E35\u0E01\u0E40\u0E25\u0E47\u0E01\u0E19\u0E49\u0E2D\u0E22\u0E41\u0E25\u0E49\u0E27\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",notSentThrottled:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E2A\u0E48\u0E07 \u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E21\u0E32\u0E01\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B\u0E43\u0E19\u0E40\u0E27\u0E25\u0E32\u0E2A\u0E31\u0E49\u0E19\u0E46 \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E22\u0E31\u0E07\u0E2D\u0E22\u0E39\u0E48 \u0E23\u0E2D\u0E2A\u0E31\u0E01\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E19\u0E32\u0E17\u0E35\u0E41\u0E25\u0E49\u0E27\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",screenshotReview:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07 \u0E41\u0E25\u0E49\u0E27\u0E01\u0E14 \u0E2A\u0E48\u0E07 \u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",screenshotErrors:{permission:"\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E16\u0E39\u0E01\u0E1A\u0E25\u0E47\u0E2D\u0E01 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E19\u0E38\u0E0D\u0E32\u0E15\u0E41\u0E25\u0E49\u0E27\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",unsupported:"\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E19\u0E35\u0E49\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",taint:"\u0E40\u0E19\u0E37\u0E49\u0E2D\u0E2B\u0E32\u0E08\u0E32\u0E01\u0E40\u0E27\u0E47\u0E1A\u0E2D\u0E37\u0E48\u0E19\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",timeout:"\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E21\u0E14\u0E40\u0E27\u0E25\u0E32",csp:"\u0E19\u0E42\u0E22\u0E1A\u0E32\u0E22\u0E04\u0E27\u0E32\u0E21\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22\u0E02\u0E2D\u0E07\u0E40\u0E27\u0E47\u0E1A\u0E19\u0E35\u0E49\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E",error:"\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08"},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:"\u0E0A\u0E35\u0E49\u0E08\u0E38\u0E14\u0E17\u0E35\u0E48\u0E21\u0E35\u0E1B\u0E31\u0E0D\u0E2B\u0E32",elementSelected:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E41\u0E25\u0E49\u0E27",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"},panel:{title:"\u0E2A\u0E48\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E34\u0E14\u0E40\u0E2B\u0E47\u0E19",more:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21\u2026",pointAt:"\u0E0A\u0E35\u0E49\u0E08\u0E38\u0E14\u0E17\u0E35\u0E48\u0E21\u0E35\u0E1B\u0E31\u0E0D\u0E2B\u0E32",remove:"\u0E25\u0E1A",markUp:"\u0E17\u0E33\u0E40\u0E04\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E2B\u0E21\u0E32\u0E22",privacy:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E41\u0E2D\u0E1B\u0E40\u0E17\u0E48\u0E32\u0E19\u0E31\u0E49\u0E19\u0E17\u0E35\u0E48\u0E40\u0E2B\u0E47\u0E19 \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E1A\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E48\u0E27\u0E19\u0E15\u0E31\u0E27\u0E2D\u0E2D\u0E01",privacyShort:"\u0E40\u0E09\u0E1E\u0E32\u0E30\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E40\u0E17\u0E48\u0E32\u0E19\u0E31\u0E49\u0E19\u0E17\u0E35\u0E48\u0E40\u0E2B\u0E47\u0E19",typeQuestion:"\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E2D\u0E30\u0E44\u0E23",prompts:{bug:"\u0E04\u0E38\u0E13\u0E17\u0E33\u0E2D\u0E30\u0E44\u0E23 \u0E41\u0E25\u0E49\u0E27\u0E40\u0E01\u0E34\u0E14\u0E2D\u0E30\u0E44\u0E23\u0E02\u0E36\u0E49\u0E19",slow:"\u0E2D\u0E30\u0E44\u0E23\u0E0A\u0E49\u0E32 \u0E41\u0E25\u0E30\u0E0A\u0E49\u0E32\u0E19\u0E32\u0E19\u0E41\u0E04\u0E48\u0E44\u0E2B\u0E19",visual:"\u0E2A\u0E48\u0E27\u0E19\u0E44\u0E2B\u0E19\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25\u0E1C\u0E34\u0E14 \u0E41\u0E25\u0E30\u0E1C\u0E34\u0E14\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E44\u0E23",confusing:"\u0E04\u0E38\u0E13\u0E15\u0E34\u0E14\u0E15\u0E23\u0E07\u0E44\u0E2B\u0E19 \u0E01\u0E33\u0E25\u0E31\u0E07\u0E08\u0E30\u0E17\u0E33\u0E2D\u0E30\u0E44\u0E23\u0E2D\u0E22\u0E39\u0E48",idea:"\u0E2D\u0E22\u0E32\u0E01\u0E43\u0E2B\u0E49\u0E21\u0E35\u0E2D\u0E30\u0E44\u0E23\u0E40\u0E1E\u0E34\u0E48\u0E21",other:"\u0E40\u0E01\u0E34\u0E14\u0E2D\u0E30\u0E44\u0E23\u0E02\u0E36\u0E49\u0E19"},charsLeft:"\u0E2D\u0E35\u0E01 {n} \u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",ready:"\u0E1E\u0E23\u0E49\u0E2D\u0E21\u0E2A\u0E48\u0E07",delivered:"\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E41\u0E25\u0E49\u0E27",send:"\u0E2A\u0E48\u0E07",yourReports:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",newCount:"\u0E43\u0E2B\u0E21\u0E48 {n}",moreOptions:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",reportTitle:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",notifyMe:"\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19\u0E09\u0E31\u0E19",notifyOn:"\u0E40\u0E1B\u0E34\u0E14\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19\u0E41\u0E25\u0E49\u0E27"},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",fileReportCta:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E41\u0E17\u0E19",stillStuckCta:"\u0E22\u0E31\u0E07\u0E41\u0E01\u0E49\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49? \u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",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:{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"},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:{loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u2026",replyPlaceholder:"\u0E15\u0E2D\u0E1A\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u2026"},success:{done:"\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19",trackReport:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21",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",rateLimited:"\u0E2A\u0E48\u0E07\u0E16\u0E35\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B",rateLimitedHint:"\u0E23\u0E2D\u0E1B\u0E23\u0E30\u0E21\u0E32\u0E13\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E19\u0E32\u0E17\u0E35 \u2014 \u0E40\u0E23\u0E32\u0E08\u0E31\u0E14\u0E04\u0E34\u0E27\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E27\u0E49\u0E41\u0E25\u0E30\u0E08\u0E30\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E2B\u0E49\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34",quotaBlocked:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E23\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E14\u0E49",quotaBlockedHint:"\u0E42\u0E04\u0E27\u0E15\u0E49\u0E32\u0E2B\u0E23\u0E37\u0E2D\u0E41\u0E1E\u0E25\u0E19\u0E02\u0E2D\u0E07\u0E42\u0E1B\u0E23\u0E40\u0E08\u0E01\u0E15\u0E4C\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E01\u0E32\u0E23\u0E2A\u0E48\u0E07 \u0E02\u0E2D\u0E43\u0E2B\u0E49\u0E40\u0E08\u0E49\u0E32\u0E02\u0E2D\u0E07\u0E41\u0E2D\u0E1B\u0E15\u0E23\u0E27\u0E08 Billing",permanentFailed:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49",permanentFailedHint:"\u0E40\u0E1E\u0E22\u0E4C\u0E42\u0E2B\u0E25\u0E14\u0E16\u0E39\u0E01\u0E1B\u0E0F\u0E34\u0E40\u0E2A\u0E18 (\u0E21\u0E31\u0E01\u0E40\u0E1E\u0E23\u0E32\u0E30\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B) \u0E25\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E31\u0E49\u0E19\u0E25\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48\u0E41\u0E19\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D",retrying:"\u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E04\u0E34\u0E27 \u2014 \u0E01\u0E33\u0E25\u0E31\u0E07\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48",retryingHint:"\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E40\u0E0B\u0E34\u0E23\u0E4C\u0E1F\u0E40\u0E27\u0E2D\u0E23\u0E4C\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19\u0E1E\u0E37\u0E49\u0E19\u0E2B\u0E25\u0E31\u0E07",trackOnMushi:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E1A\u0E19 Mushi",slaDefault:"\u0E40\u0E23\u0E32\u0E08\u0E30\u0E41\u0E08\u0E49\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48",screenshotDropped:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E42\u0E14\u0E22\u0E44\u0E21\u0E48\u0E21\u0E35\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D \u2014 \u0E44\u0E1F\u0E25\u0E4C\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E01\u0E27\u0E48\u0E32\u0E08\u0E30\u0E41\u0E19\u0E1A\u0E44\u0E14\u0E49"},featureRequest:{label:"\u0E02\u0E2D\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C"},betaStrip:{defaultMessage:"{appName} \u0E2D\u0E22\u0E39\u0E48\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E01\u0E32\u0E23\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E0A\u0E48\u0E27\u0E07\u0E15\u0E49\u0E19",contactHint:"\u0E21\u0E35\u0E04\u0E33\u0E16\u0E32\u0E21? {email}",teamSees:"\u0E17\u0E35\u0E21 {appName} \u0E08\u0E30\u0E40\u0E2B\u0E47\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49",teamSeesGeneric:"\u0E17\u0E35\u0E21\u0E07\u0E32\u0E19\u0E08\u0E30\u0E40\u0E2B\u0E47\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49",ariaLabel:"\u0E2A\u0E16\u0E32\u0E19\u0E30\u0E40\u0E1A\u0E15\u0E49\u0E32"},changelog:{whatsNew:"\u0E21\u0E35\u0E2D\u0E30\u0E44\u0E23\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19 {version}"},poweredBy:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1A\u0E31\u0E4A\u0E01\u0E42\u0E14\u0E22 Mushi Mushi"}};var Ma={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.",hideLauncher:"Ocultar el bot\xF3n de errores durante esta visita"},step1:{moreNav:{communityIdeas:"Ideas de la comunidad",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"}},step2:{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:{descriptionPlaceholder:"\xBFQu\xE9 sali\xF3 mal?",featurePlaceholder:"Describe tu idea\u2026",submitHint:"{key} + Enter para enviar",screenshotButton:"Captura",screenshotAttached:"Captura adjunta",screenshotCapturing:"Tomando captura\u2026",screenshotRetry:"Reintentar",screenshotShareTab:"Compartir esta pesta\xF1a",notSentBlocked:"No se envi\xF3. El reporte se filtr\xF3 antes de enviarse. Tu texto sigue aqu\xED; a\xF1ade algo m\xE1s de detalle e int\xE9ntalo de nuevo.",notSentThrottled:"No se envi\xF3. Demasiados reportes en poco tiempo. Tu texto sigue aqu\xED; espera un minuto e int\xE9ntalo de nuevo.",screenshotReview:"Revisa la captura de abajo y pulsa Enviar otra vez.",screenshotErrors:{permission:"Se bloque\xF3 la captura. Perm\xEDtela y reintenta.",unsupported:"Este navegador no puede capturar la p\xE1gina. Descr\xEDbelo.",taint:"Contenido de otro sitio bloque\xF3 la captura. Descr\xEDbelo.",timeout:"La captura tard\xF3 demasiado.",csp:"La pol\xEDtica de seguridad de este sitio bloquea las capturas.",error:"La captura fall\xF3."},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:"Se\xF1alarlo",elementSelected:"Elemento seleccionado",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"},panel:{title:"Enviar comentarios",more:"M\xE1s\u2026",pointAt:"Se\xF1alarlo",remove:"Quitar",markUp:"Marcar",privacy:"Solo lo ve el desarrollador de la app. Quita cualquier dato privado.",privacyShort:"Solo lo ve el desarrollador",typeQuestion:"\xBFDe qu\xE9 se trata?",prompts:{bug:"\xBFQu\xE9 hiciste y qu\xE9 pas\xF3?",slow:"\xBFQu\xE9 fue lento y cu\xE1nto tard\xF3?",visual:"\xBFQu\xE9 se ve mal y d\xF3nde?",confusing:"\xBFD\xF3nde te atascaste? \xBFQu\xE9 intentabas hacer?",idea:"\xBFQu\xE9 te gustar\xEDa que hiciera?",other:"\xBFQu\xE9 pas\xF3?"},charsLeft:"Faltan {n} caracteres",ready:"Listo para enviar",delivered:"Recibido",send:"Enviar",yourReports:"Tus reportes",newCount:"{n} nuevos",moreOptions:"M\xE1s opciones",reportTitle:"Tu reporte",notifyMe:"Avisarme",notifyOn:"Las notificaciones est\xE1n activadas."},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",fileReportCta:"Enviar un informe en su lugar",stillStuckCta:"\xBFSigues atascado? Env\xEDa un informe",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:{reports:{title:"Tus reportes",loading:"Cargando reportes\u2026"},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:{loading:"Cargando novedades\u2026",replyPlaceholder:"Responder al desarrollador\u2026"},success:{done:"Listo",trackReport:"Seguirlo",receipt:"Recibo",delivering:"Enviando al equipo\u2026",queuedOffline:"En cola sin conexi\xF3n",queuedHint:"Lo enviaremos en cuanto vuelvas a estar en l\xEDnea.",rateLimited:"Demasiado r\xE1pido",rateLimitedHint:"Espera un minuto \u2014 encolamos el reporte y lo reintentaremos autom\xE1ticamente.",quotaBlocked:"No se pudo aceptar este reporte",quotaBlockedHint:"La cuota o el plan del proyecto bloque\xF3 el env\xEDo. Pide al due\xF1o que revise Billing.",permanentFailed:"No se pudo enviar este reporte",permanentFailedHint:"El payload fue rechazado (a menudo por tama\xF1o). Intenta con un texto m\xE1s corto o sin captura.",retrying:"En cola \u2014 reintentando",retryingHint:"No pudimos llegar al servidor ahora. Seguiremos intentando en segundo plano.",trackOnMushi:"Seguir en Mushi",slaDefault:"Te avisaremos aqu\xED cuando haya novedades.",screenshotDropped:"Enviado sin la captura de pantalla \u2014 era demasiado grande para adjuntarla."},featureRequest:{label:"Solicitud de funci\xF3n"},betaStrip:{defaultMessage:"{appName} est\xE1 en desarrollo temprano",contactHint:"\xBFPreguntas? {email}",teamSees:"El equipo de {appName} lo ver\xE1",teamSeesGeneric:"El equipo lo ver\xE1",ariaLabel:"Estado beta"},changelog:{whatsNew:"Novedades de {version}"},poweredBy:"Reportes de errores con Mushi Mushi"}};var La={widget:{trigger:"\u53CD\u9988\u95EE\u9898",title:"\u53CD\u9988\u95EE\u9898",close:"\u5173\u95ED",back:"\u8FD4\u56DE",submit:"\u63D0\u4EA4",submitting:"\u63D0\u4EA4\u4E2D\u2026",submitted:"\u8C22\u8C22\uFF01\u4F60\u7684\u53CD\u9988\u5DF2\u63D0\u4EA4\u3002",error:"\u51FA\u9519\u4E86\uFF0C\u8BF7\u518D\u8BD5\u4E00\u6B21\u3002",hideLauncher:"\u672C\u6B21\u8BBF\u95EE\u671F\u95F4\u9690\u85CF\u53CD\u9988\u6309\u94AE"},step1:{moreNav:{communityIdeas:"\u793E\u533A\u60F3\u6CD5",leaderboard:"\u6392\u884C\u699C",joinCommunity:"\u52A0\u5165\u793E\u533A \xB7 \u8DE8\u5E94\u7528\u8DDF\u8E2A\u4F60\u7684\u53CD\u9988",myAccount:"\u6211\u7684\u8D26\u6237"},categories:{bug:"\u9519\u8BEF",slow:"\u6162",visual:"\u663E\u793A\u95EE\u9898",confusing:"\u96BE\u4EE5\u7406\u89E3",other:"\u5176\u4ED6"}},step2:{intents:{bug:["\u5D29\u6E83","\u6CA1\u6709\u53CD\u5E94","\u6570\u636E\u4E22\u5931","\u7ED3\u679C\u9519\u8BEF","\u5176\u4ED6"],slow:["\u9875\u9762\u52A0\u8F7D","\u64CD\u4F5C\u54CD\u5E94","\u7F51\u7EDC\u8BF7\u6C42","\u52A8\u753B","\u5176\u4ED6"],visual:["\u5E03\u5C40\u9519\u4E71","\u5143\u7D20\u91CD\u53E0","\u5143\u7D20\u4E0D\u663E\u793A","\u989C\u8272/\u5B57\u4F53\u4E0D\u5BF9","\u5176\u4ED6"],confusing:["\u6807\u7B7E\u4E0D\u6E05\u695A","\u7F3A\u5C11\u5E2E\u52A9","\u6D41\u7A0B\u51FA\u4E4E\u610F\u6599","\u627E\u4E0D\u5230\u5165\u53E3","\u5176\u4ED6"],other:["\u529F\u80FD\u5EFA\u8BAE","\u65E0\u969C\u788D","\u9519\u522B\u5B57","\u5176\u4ED6"]}},step3:{descriptionPlaceholder:"\u53D1\u751F\u4E86\u4EC0\u4E48\uFF1F",featurePlaceholder:"\u8BF4\u8BF4\u4F60\u7684\u60F3\u6CD5\u2026",submitHint:"{key} + Enter \u63D0\u4EA4",screenshotButton:"\u622A\u56FE",screenshotAttached:"\u5DF2\u9644\u622A\u56FE",screenshotCapturing:"\u6B63\u5728\u622A\u56FE\u2026",screenshotRetry:"\u518D\u8BD5\u4E00\u6B21",screenshotShareTab:"\u5171\u4EAB\u6B64\u6807\u7B7E\u9875\u6765\u622A\u56FE",notSentBlocked:"\u672A\u53D1\u9001\u3002\u8BE5\u53CD\u9988\u5728\u53D1\u9001\u524D\u88AB\u8FC7\u6EE4\u3002\u4F60\u7684\u6587\u5B57\u4ECD\u4FDD\u7559\u5728\u8FD9\u91CC\uFF0C\u8BF7\u8865\u5145\u4E00\u4E9B\u7EC6\u8282\u540E\u91CD\u8BD5\u3002",notSentThrottled:"\u672A\u53D1\u9001\u3002\u77ED\u65F6\u95F4\u5185\u63D0\u4EA4\u8FC7\u591A\u3002\u4F60\u7684\u6587\u5B57\u4ECD\u4FDD\u7559\u5728\u8FD9\u91CC\uFF0C\u8BF7\u7B49\u5F85\u4E00\u5206\u949F\u540E\u91CD\u8BD5\u3002",screenshotReview:"\u8BF7\u5148\u67E5\u770B\u4E0B\u65B9\u622A\u56FE\uFF0C\u518D\u70B9\u51FB\u201C\u53D1\u9001\u201D\u3002",screenshotErrors:{permission:"\u622A\u56FE\u88AB\u62E6\u622A\u4E86\u3002\u8BF7\u5141\u8BB8\u540E\u518D\u8BD5\u3002",unsupported:"\u6B64\u6D4F\u89C8\u5668\u65E0\u6CD5\u622A\u56FE\u3002\u8BF7\u7528\u6587\u5B57\u63CF\u8FF0\u3002",taint:"\u9875\u9762\u5305\u542B\u5176\u4ED6\u7F51\u7AD9\u7684\u5185\u5BB9\uFF0C\u65E0\u6CD5\u622A\u56FE\u3002\u8BF7\u7528\u6587\u5B57\u63CF\u8FF0\u3002",timeout:"\u622A\u56FE\u8D85\u65F6\u3002",csp:"\u6B64\u7F51\u7AD9\u7684\u5B89\u5168\u8BBE\u7F6E\u4E0D\u5141\u8BB8\u622A\u56FE\u3002",error:"\u622A\u56FE\u5931\u8D25\u3002"},screenshotPreviewAlt:"\u5C06\u8981\u53D1\u9001\u7684\u622A\u56FE\u9884\u89C8",screenshotSensitiveHint:"\u8BF7\u68C0\u67E5\u9884\u89C8\uFF1B\u5982\u6709\u4F59\u989D\u6216\u4E2A\u4EBA\u4FE1\u606F\uFF0C\u8BF7\u5220\u9664\u622A\u56FE\u3002",elementButton:"\u6307\u51FA\u4F4D\u7F6E",elementSelected:"\u5DF2\u9009\u4E2D\u5143\u7D20",elementCapturing:"\u70B9\u51FB\u9875\u9762\u4E0A\u7684\u5143\u7D20\u2026",elementFailed:"\u65E0\u6CD5\u9009\u62E9 \u2014 \u8BF7\u7528\u6587\u5B57\u63CF\u8FF0",elementSelectorHint:"\u70B9\u51FB\u4E00\u4E2A\u5143\u7D20 \xB7 Esc \u53D6\u6D88"},panel:{title:"\u53D1\u9001\u53CD\u9988",more:"\u66F4\u591A\u2026",pointAt:"\u6307\u51FA\u4F4D\u7F6E",remove:"\u5220\u9664",markUp:"\u6807\u6CE8",privacy:"\u53EA\u6709\u8FD9\u4E2A\u5E94\u7528\u7684\u5F00\u53D1\u8005\u80FD\u770B\u5230\u3002\u8BF7\u5220\u9664\u4E2A\u4EBA\u4FE1\u606F\u3002",privacyShort:"\u4EC5\u5F00\u53D1\u8005\u53EF\u89C1",typeQuestion:"\u662F\u5173\u4E8E\u4EC0\u4E48\u7684\uFF1F",prompts:{bug:"\u4F60\u505A\u4E86\u4EC0\u4E48\uFF0C\u53D1\u751F\u4E86\u4EC0\u4E48\uFF1F",slow:"\u54EA\u91CC\u6162\uFF1F\u5927\u6982\u7B49\u4E86\u591A\u4E45\uFF1F",visual:"\u54EA\u91CC\u663E\u793A\u4E0D\u5BF9\uFF1F\u662F\u4EC0\u4E48\u6837\u5B50\uFF1F",confusing:"\u4F60\u5728\u54EA\u91CC\u5361\u4F4F\u4E86\uFF1F\u60F3\u505A\u4EC0\u4E48\uFF1F",idea:"\u4F60\u5E0C\u671B\u5B83\u80FD\u505A\u4EC0\u4E48\uFF1F",other:"\u53D1\u751F\u4E86\u4EC0\u4E48\uFF1F"},charsLeft:"\u8FD8\u9700 {n} \u4E2A\u5B57",ready:"\u53EF\u4EE5\u53D1\u9001\u4E86",delivered:"\u5DF2\u6536\u5230",send:"\u53D1\u9001",yourReports:"\u4F60\u7684\u53CD\u9988",newCount:"{n} \u6761\u65B0\u6D88\u606F",moreOptions:"\u66F4\u591A\u9009\u9879",reportTitle:"\u4F60\u7684\u53CD\u9988",notifyMe:"\u63A5\u6536\u901A\u77E5",notifyOn:"\u901A\u77E5\u5DF2\u5F00\u542F\u3002"},assistant:{defaultLabel:"\u63D0\u95EE",defaultGreeting:"\u95EE\u95EE\u5173\u4E8E\u8FD9\u4E2A\u9875\u9762\u7684\u95EE\u9898 \u2014 \u6211\u53EA\u4F1A\u4F7F\u7528\u9875\u9762\u4E0A\u663E\u793A\u7684\u5185\u5BB9\u3002",inputPlaceholder:"\u8F93\u5165\u4F60\u7684\u95EE\u9898\u2026",sendAriaLabel:"\u53D1\u9001",hubDescription:"\u8BE2\u95EE\u5982\u4F55\u4F7F\u7528\u8FD9\u4E2A\u5E94\u7528",thinking:"\u601D\u8003\u4E2D\u2026",fileReportCta:"\u6539\u4E3A\u53CD\u9988\u9519\u8BEF",stillStuckCta:"\u8FD8\u6CA1\u89E3\u51B3\uFF1F\u53CD\u9988\u95EE\u9898",errors:{noResponse:"\u6CA1\u6709\u56DE\u5E94 \u2014 \u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5\u3002",generic:"\u65E0\u6CD5\u8FDE\u63A5\u52A9\u624B\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002"}},flows:{reports:{title:"\u4F60\u7684\u53CD\u9988",loading:"\u6B63\u5728\u52A0\u8F7D\u53CD\u9988\u2026"},roadmap:{title:"\u793E\u533A\u60F3\u6CD5",loading:"\u6B63\u5728\u52A0\u8F7D\u60F3\u6CD5\u2026",empty:"\u8FD8\u6CA1\u6709\u60F3\u6CD5\u3002\u6765\u63D0\u7B2C\u4E00\u4E2A\u5427\u3002",shipped:"\u5DF2\u4E0A\u7EBF",vote:"\u6295\u7968",voted:"\u5DF2\u6295\u7968",voteCount:"{n} \u7968",untitled:"\u672A\u547D\u540D\u7684\u60F3\u6CD5"},leaderboard:{title:"\u5168\u7403\u6392\u884C\u699C",loading:"\u6B63\u5728\u52A0\u8F7D\u6392\u884C\u699C\u2026",empty:"\u8FD8\u6CA1\u6709\u4EBA\u4E0A\u699C \u2014 \u6765\u505A\u7B2C\u4E00\u4E2A\u5427\u3002",signInPrompt:"\u767B\u5F55\u67E5\u770B\u4F60\u7684\u6392\u540D \u2192",myRank:"\u4F60\u672C\u6708\u6392\u540D #{rank}",footer:"\u672C\u6708\u5168\u7403\u8D21\u732E\u8005 \xB7 \u79EF\u5206\u6BCF\u6708\u91CD\u7F6E",anon:"\u533F\u540D"},account:{title:"Mushi \u8D26\u6237",checkEmailTitle:"\u67E5\u770B\u90AE\u7BB1",joinTitle:"\u52A0\u5165\u793E\u533A",emailLabel:"\u90AE\u7BB1\u5730\u5740",emailPlaceholder:"\u90AE\u7BB1",signInPrompt:"\u767B\u5F55\u540E\u53EF\u4EE5\u67E5\u770B\u4F60\u5728\u6240\u6709\u5E94\u7528\u4E2D\u7684\u53CD\u9988\u548C\u6392\u540D\u3002\u65E0\u9700\u5BC6\u7801\u3002",magicLinkSent:"\u767B\u5F55\u94FE\u63A5\u5DF2\u53D1\u9001\u5230 {email}\u3002\u6253\u5F00\u94FE\u63A5\u5373\u53EF\u5173\u8054\u4F60\u7684\u53CD\u9988\u3002",resendEmail:"\u91CD\u65B0\u53D1\u9001\u90AE\u4EF6",sendLink:"\u53D1\u9001\u767B\u5F55\u94FE\u63A5",sending:"\u53D1\u9001\u4E2D\u2026",crossAppReports:"\u6240\u6709\u5E94\u7528\u7684\u53CD\u9988 \u2192",viewLeaderboard:"\u5168\u7403\u6392\u884C\u699C \u2192",signOut:"\u9000\u51FA\u767B\u5F55",rankSummary:"\u6392\u540D #{rank} \xB7 \u672C\u6708 {points} \u5206"},crossApp:{title:"\u6211\u7684\u53CD\u9988",loading:"\u6B63\u5728\u52A0\u8F7D\u53CD\u9988\u2026",empty:"\u8FD8\u6CA1\u6709\u53CD\u9988\u3002",unknownApp:"\u672A\u77E5\u5E94\u7528"},thread:{loading:"\u6B63\u5728\u52A0\u8F7D\u66F4\u65B0\u2026",replyPlaceholder:"\u56DE\u590D\u5F00\u53D1\u8005\u2026"},success:{done:"\u5B8C\u6210",trackReport:"\u8DDF\u8E2A\u8FDB\u5EA6",receipt:"\u56DE\u6267",delivering:"\u6B63\u5728\u53D1\u9001\u7ED9\u56E2\u961F\u2026",queuedOffline:"\u79BB\u7EBF\u6392\u961F\u4E2D",queuedHint:"\u6062\u590D\u8054\u7F51\u540E\u4F1A\u81EA\u52A8\u53D1\u9001\u3002",rateLimited:"\u53D1\u9001\u592A\u9891\u7E41",rateLimitedHint:"\u8BF7\u7B49\u5F85\u7EA6\u4E00\u5206\u949F\u3002\u53CD\u9988\u5DF2\u6392\u961F\uFF0C\u4F1A\u81EA\u52A8\u91CD\u65B0\u53D1\u9001\u3002",quotaBlocked:"\u8FD9\u6761\u53CD\u9988\u672A\u88AB\u63A5\u6536",quotaBlockedHint:"\u9879\u76EE\u989D\u5EA6\u6216\u5957\u9910\u62D2\u7EDD\u4E86\u5B83\u3002\u8BF7\u8BA9\u5E94\u7528\u7BA1\u7406\u5458\u68C0\u67E5 Billing\u3002",permanentFailed:"\u53CD\u9988\u53D1\u9001\u5931\u8D25",permanentFailedHint:"\u5185\u5BB9\u88AB\u62D2\u7EDD\u4E86\uFF08\u4F8B\u5982\u592A\u5927\uFF09\u3002\u8BF7\u7F29\u77ED\u6587\u5B57\u6216\u4E0D\u5E26\u622A\u56FE\u518D\u8BD5\u4E00\u6B21\u3002",retrying:"\u5DF2\u6392\u961F \u2014 \u6B63\u5728\u91CD\u8BD5",retryingHint:"\u6682\u65F6\u8FDE\u4E0D\u4E0A\u670D\u52A1\u5668\uFF0C\u4F1A\u5728\u540E\u53F0\u91CD\u65B0\u53D1\u9001\u3002",trackOnMushi:"\u5728 Mushi \u4E0A\u8DDF\u8E2A",slaDefault:"\u6709\u8FDB\u5C55\u65F6\u4F1A\u5728\u8FD9\u91CC\u901A\u77E5\u4F60\u3002",screenshotDropped:"\u622A\u56FE\u592A\u5927\u65E0\u6CD5\u9644\u4E0A\uFF0C\u5DF2\u53EA\u53D1\u9001\u6587\u5B57\u53CD\u9988\u3002"},featureRequest:{label:"\u529F\u80FD\u5EFA\u8BAE"},betaStrip:{defaultMessage:"{appName} \u8FD8\u5728\u65E9\u671F\u5F00\u53D1\u9636\u6BB5",contactHint:"\u6709\u95EE\u9898\u8BF7\u8054\u7CFB {email}",teamSees:"{appName} \u56E2\u961F\u4F1A\u67E5\u770B",teamSeesGeneric:"\u56E2\u961F\u4F1A\u67E5\u770B",ariaLabel:"\u6D4B\u8BD5\u7248\u901A\u77E5"},changelog:{whatsNew:"{version} \u65B0\u529F\u80FD"},poweredBy:"\u9519\u8BEF\u53CD\u9988\u7531 Mushi Mushi \u63D0\u4F9B"}};var Da={en:an,ja:Aa,th:Ia,es:Ma,zh:La};function hi(e){let t=e&&e!=="auto"?e:typeof navigator<"u"?navigator.language??navigator.languages?.[0]:void 0;if(!t)return an;let r=t.split("-")[0].toLowerCase();return Da[r]??an}function Pa(){return Object.keys(Da)}function fp(e){let t=e.replace("#",""),r=t.length===3?t[0]+t[0]+t[1]+t[1]+t[2]+t[2]:t.slice(0,6),n=parseInt(r.slice(0,2),16),i=parseInt(r.slice(2,4),16),o=parseInt(r.slice(4,6),16);return `${n},${i},${o}`}function Ba(e,t="",r=""){let n=e==="dark",i=n?"dark":"light",o=ci(i),s=Gs(i,t,r),a=qs[i];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:s.accent,widgetAccentWash:s.accentWash,widgetAccentInk:s.accentInk,widgetAccentShadow:n?ui.dark:ui.light,accentRgb:fp(s.accent),shadowInk:n?"0,0,0":"14,13,11",ok:o.ok,danger:o.danger,onAccent:Ns,inverse:Us,neonBannerBg:en.bg,neonBannerFg:en.fg,neonBannerBorder:en.border,brandBannerBorder:n?li.dark:li.light,statusSent:a.sent,statusReview:a.review,statusFixing:a.fixing,statusFixed:a.fixed,reportTypes:js[i],reportTypeWash:Ws[i],statusClosedBg:n?"rgba(242,235,221,0.06)":"rgba(14,13,11,0.05)",fontDisplay:tn.fontDisplay,fontBody:tn.fontBody,fontMono:tn.fontMono,easeStamp:rn.easeStamp,zBanner:Ft.banner,zPanel:Ft.panel,zOverlay:Ft.overlay,fabSize:dt.fabSize,panelWidth:dt.panelWidth,panelSheetBreakpoint:dt.panelSheetBreakpoint}}function pt(e){let t=e.trim();return !t||t.length>64||!/^[#\w\s(),.%/+-]+$/.test(t)||typeof CSS<"u"&&typeof CSS.supports=="function"&&!CSS.supports("color",t)?"":t}function $a([e,t,r]){let n=i=>{let o=i/255;return o<=.03928?o/12.92:((o+.055)/1.055)**2.4};return .2126*n(e)+.7152*n(t)+.0722*n(r)}function un(e,t){let r=$a(e),n=i=>(Math.max(r,i)+.05)/(Math.min(r,i)+.05);return t?{ink:"",ratio:n($a(t))}:n(1)>=n(0)?{ink:"white",ratio:n(1)}:{ink:"black",ratio:n(0)}}function Oa(e,t="",r="",n=false){let i=Ba(e),o=pt(t),s=pt(r),{isDark:a,ink:u,ruleStrong:c,widgetAccent:p,shadowInk:h,ok:m,danger:w,inverse:x,neonBannerBg:g,neonBannerFg:y,neonBannerBorder:C,brandBannerBorder:R,statusSent:v,statusReview:T,statusFixing:A,statusFixed:E,fontMono:f,easeStamp:b,zBanner:_,fabSize:B,reportTypes:j,reportTypeWash:q}=i,re=Object.entries(j).map(([ge,_e])=>`.mushi-tile[data-category="${ge}"],.mushi-panel[data-cat="${ge}"]{--_cat:${_e.solid};--_cat-ink:${_e.ink};}`).join(`
17
- `),Q=j.other,we=Math.round(q.wash*100),M=Math.round(q.strong*100),{durationFast:Se}=rn,{instant:ae,panel:Ke}=zs,{bannerHeight:ne,gutter:H,panelWidth:me,panelMaxHeight:Re,panelSheetBreakpoint:Y,edgeTabWidth:k}=dt,D=48,O=44,F=B+Ks.comfy,W=Vs.control;return ` :host{all:initial;color-scheme:${a?"dark":"light"};font-family:var(--mushi-font,inherit);font-size:var(--mushi-font-size,14px);line-height:1.45;--_bg:var(--mushi-bg,Canvas);--_fg:var(--mushi-fg,CanvasText);--_muted:var(--mushi-muted,color-mix(in oklab,var(--_fg) 64%,transparent));--_surface:var(--mushi-surface,color-mix(in oklab,var(--_bg) 94%,var(--_fg)));--_border:var(--mushi-border,color-mix(in oklab,var(--_fg) 16%,transparent));--_accent:var(--mushi-accent,${o||"var(--_fg)"});--_accent-fg:${n&&s?s:`var(--mushi-accent-fg,${o?s||"white":"var(--_bg)"})`};--_ok:var(--mushi-success,${m});--_err:var(--mushi-error,${w});--_radius:var(--mushi-radius,12px);--_shadow:var(--mushi-shadow,0 12px 40px rgb(0 0 0 / .18));color:var(--_fg);-webkit-font-smoothing:antialiased;pointer-events:none;}.mushi-trigger,.mushi-banner,.mushi-panel,.mushi-toast{pointer-events:auto;}*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}button{font-family:inherit;}.mushi-trigger{position:fixed;width:${B}px;height:${B}px;min-width:44px;min-height:44px;border:1px solid var(--_border);border-radius:${W}px;background:var(--_bg);color:var(--_fg);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:22px;line-height:1;box-shadow:0 1px 0 var(--_border),0 6px 14px -8px rgba(${h},0.35),inset 0 -3px 0 var(--_accent);transition:transform ${Se}ms ${b},opacity ${Se}ms ${b};overflow:visible;isolation:isolate;}.mushi-trigger::after{content:'';position:absolute;top:6px;right:6px;width:6px;height:6px;border-radius:50%;background:var(--_accent);box-shadow:0 0 0 0 var(--_accent);animation:mushi-pulse 2.4s ${b} infinite;}.mushi-trigger:hover{transform:translateY(-2px) rotate(-1.5deg);box-shadow:0 1px 0 var(--_border),0 14px 24px -10px rgba(${h},0.45),0 0 20px -6px color-mix(in oklab,var(--_accent) 22%,transparent),inset 0 -3px 0 var(--_accent);}.mushi-trigger:active{transform:translateY(0) rotate(0);box-shadow:0 1px 0 var(--_border),0 2px 4px -2px rgba(${h},0.35),inset 0 -2px 0 var(--_accent);}.mushi-trigger:focus-visible{outline:2px solid var(--_accent);outline-offset:3px;}@keyframes mushi-trigger-pulse{0%{box-shadow:0 0 0 0 color-mix(in oklab,var(--_accent) 55%,transparent),0 1px 0 var(--_border),0 10px 24px -14px rgba(${h},0.45);}70%{box-shadow:0 0 0 16px color-mix(in oklab,var(--_accent) 0%,transparent),0 1px 0 var(--_border),0 10px 24px -14px rgba(${h},0.45);}100%{box-shadow:0 0 0 0 color-mix(in oklab,var(--_accent) 0%,transparent),0 1px 0 var(--_border),0 10px 24px -14px rgba(${h},0.45);}}.mushi-trigger-pulse{animation:mushi-trigger-pulse 800ms ${b} 3;}@media (prefers-reduced-motion:reduce){.mushi-trigger-pulse{animation:none;}}.mushi-trigger.bottom-right{bottom:var(--mushi-bottom,calc(${H}px + env(safe-area-inset-bottom,0px)));right:var(--mushi-right,calc(${H}px + env(safe-area-inset-right,0px)));}.mushi-trigger.bottom-left{bottom:var(--mushi-bottom,calc(${H}px + env(safe-area-inset-bottom,0px)));left:var(--mushi-left,calc(${H}px + env(safe-area-inset-left,0px)));}.mushi-trigger.top-right{top:var(--mushi-top,calc(${H}px + env(safe-area-inset-top,0px)));right:var(--mushi-right,calc(${H}px + env(safe-area-inset-right,0px)));}.mushi-trigger.top-left{top:var(--mushi-top,calc(${H}px + env(safe-area-inset-top,0px)));left:var(--mushi-left,calc(${H}px + env(safe-area-inset-left,0px)));}.mushi-trigger.edge-tab{width:${O}px;height:${D}px;background:transparent;border:0;border-radius:0;box-shadow:none;font-size:14px;justify-content:flex-end;}.mushi-trigger.edge-tab::after{display:none;}.mushi-trigger.edge-tab:hover,.mushi-trigger.edge-tab:active,.mushi-trigger.edge-tab.dragging{transform:none;box-shadow:none;}.mushi-trigger-face{display:flex;align-items:center;justify-content:center;width:${k}px;height:100%;background:var(--_bg);border:1px solid var(--_border);border-right:0;border-radius:${W}px 0 0 ${W}px;box-shadow:0 4px 12px -6px rgba(${h},0.4),inset -2px 0 0 var(--_accent);transition:width ${Se}ms ${b},transform ${Se}ms ${b},opacity ${Se}ms ${b};}.mushi-trigger.edge-tab.text{height:auto;min-height:${D}px;}.mushi-trigger.edge-tab.text .mushi-trigger-face{height:auto;min-height:${D}px;padding:10px 0;writing-mode:vertical-rl;font-size:12px;white-space:nowrap;}.mushi-trigger.edge-tab:hover .mushi-trigger-face,.mushi-trigger.edge-tab:focus-visible .mushi-trigger-face{width:${k+6}px;}.mushi-trigger.edge-tab:focus-visible{outline:none;}.mushi-trigger.edge-tab:focus-visible .mushi-trigger-face{outline:2px solid var(--_accent);outline-offset:2px;}.mushi-trigger.edge-tab.bottom-right,.mushi-trigger.edge-tab.top-right{right:calc(var(--mushi-safe-area,1) * env(safe-area-inset-right,0px));}.mushi-trigger.edge-tab.bottom-left,.mushi-trigger.edge-tab.top-left{left:calc(var(--mushi-safe-area,1) * env(safe-area-inset-left,0px));justify-content:flex-start;}.mushi-trigger.edge-tab.bottom-left .mushi-trigger-face,.mushi-trigger.edge-tab.top-left .mushi-trigger-face{border-right:1px solid var(--_border);border-left:0;border-radius:0 ${W}px ${W}px 0;box-shadow:0 4px 12px -6px rgba(${h},0.4),inset 2px 0 0 var(--_accent);}.mushi-trigger.tucked{opacity:0.3;}.mushi-trigger.edge-tab.tucked{opacity:1;}.mushi-trigger.edge-tab.tucked .mushi-trigger-face{opacity:0.55;transform:translateX(${k-6}px);}.mushi-trigger.edge-tab.bottom-left.tucked .mushi-trigger-face,.mushi-trigger.edge-tab.top-left.tucked .mushi-trigger-face{transform:translateX(-${k-6}px);}.mushi-trigger.tucked:focus-visible,.mushi-trigger.tucked:focus-visible .mushi-trigger-face{opacity:1;transform:none;}.mushi-trigger.shrunk{width:${ne}px;height:${ne}px;opacity:0.82;transform:scale(0.92);}.mushi-trigger{touch-action:none;translate:calc(var(--mushi-drag-active,0) * var(--mushi-drag-x,0px)) calc(var(--mushi-drag-active,0) * var(--mushi-drag-y,0px));}.mushi-trigger.dragging{cursor:grabbing !important;z-index:calc(var(--z,${Ft.base}) + 2);transition:none !important;box-shadow:0 1px 0 var(--_border),0 20px 40px -12px rgba(${h},0.55),inset 0 -3px 0 var(--_accent);opacity:0.92;}@media (prefers-reduced-motion:reduce){.mushi-trigger,.mushi-trigger-face{transition:none !important;}.mushi-trigger::after{animation:none;}.mushi-trigger.edge-tab.tucked .mushi-trigger-face{transform:none !important;}}@keyframes mushi-pulse{0%{box-shadow:0 0 0 0 var(--_accent);opacity:1;}70%{box-shadow:0 0 0 8px transparent;opacity:0.5;}100%{box-shadow:0 0 0 0 transparent;opacity:1;}}.mushi-panel{position:fixed;width:calc(${me}px + 60px);max-width:calc(100vw - 32px);max-height:min(calc(${Re}px + 160px),calc(100dvh - 96px - var(--mushi-keyboard-inset,0px)));background:var(--_bg);color:var(--_fg);border:1px solid var(--mushi-border,color-mix(in oklab,var(--_fg) 38%,var(--_bg)));border-radius:var(--_radius);box-shadow:var(--_shadow);overflow:hidden;display:flex;flex-direction:column;transform-origin:var(--mushi-origin,bottom right);}.mushi-panel.open{animation:mushi-open 180ms cubic-bezier(.2,.8,.2,1) both;}.mushi-panel.closed{display:none;}.mushi-panel.mushi-swap .mushi-scroll,.mushi-panel.mushi-swap .mushi-footer{animation:mushi-fade 120ms ease-out both;}@keyframes mushi-open{from{opacity:0;transform:translateY(8px);}}@keyframes mushi-fade{from{opacity:0;}}.mushi-panel.bottom-right{bottom:var(--mushi-panel-bottom,calc(var(--mushi-bottom,${H}px) + ${F}px));right:var(--mushi-right,calc(${H}px + env(safe-area-inset-right,0px)));--mushi-origin:bottom right;}.mushi-panel.bottom-left{bottom:var(--mushi-panel-bottom,calc(var(--mushi-bottom,${H}px) + ${F}px));left:var(--mushi-left,calc(${H}px + env(safe-area-inset-left,0px)));--mushi-origin:bottom left;}.mushi-panel.top-right{top:var(--mushi-panel-top,calc(var(--mushi-top,${H}px) + ${F}px));right:var(--mushi-right,calc(${H}px + env(safe-area-inset-right,0px)));--mushi-origin:top right;}.mushi-panel.top-left{top:var(--mushi-panel-top,calc(var(--mushi-top,${H}px) + ${F}px));left:var(--mushi-left,calc(${H}px + env(safe-area-inset-left,0px)));--mushi-origin:top left;}.mushi-panel.keyboard-open{bottom:calc(var(--mushi-keyboard-inset,0px) + 8px) !important;}@media (max-width:${Y}px){.mushi-panel{left:0 !important;right:0 !important;top:auto !important;width:100% !important;max-width:100% !important;max-height:calc(100dvh - 24px - var(--mushi-keyboard-inset,0px));border-radius:var(--_radius) var(--_radius) 0 0;bottom:var(--mushi-keyboard-inset,0px) !important;padding-bottom:env(safe-area-inset-bottom,0px);}}.mushi-panel :focus-visible{outline:2px solid var(--_accent);outline-offset:2px;}.mushi-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}.mushi-notice:empty,.mushi-lead:empty,.mushi-meter:empty,.mushi-footer:empty,.mushi-brand:empty{display:none;}.mushi-outdated{margin:8px 12px 0;padding:8px 10px;border-radius:8px;background:var(--_surface);font-size:12px;}.mushi-header{position:relative;z-index:2;display:flex;align-items:center;gap:6px;min-height:56px;padding:6px 6px 6px 16px;border-bottom:1px solid var(--_border);}.mushi-panel[data-cat] .mushi-header{box-shadow:inset 0 3px 0 var(--_cat);}.mushi-header-type{display:inline-flex;align-items:center;justify-content:center;flex:none;width:28px;height:28px;border-radius:8px;background:var(--_cat-wash-strong);color:var(--_cat-ink);}.mushi-title{flex:1 1 auto;min-width:3em;margin:0;font-size:16px;font-weight:600;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.mushi-beta-chip{flex:none;min-height:24px;padding:2px 7px;border:1px solid var(--_border);border-radius:6px;background:var(--_surface);color:var(--_fg);font:inherit;font-size:11px;font-weight:700;letter-spacing:.06em;cursor:pointer;}.mushi-beta-chip:hover,.mushi-beta-chip[aria-expanded="true"]{border-color:var(--_fg);}.mushi-beta-pop{position:absolute;left:12px;right:12px;top:calc(100% + 4px);z-index:3;display:flex;flex-direction:column;gap:6px;padding:10px 12px;background:var(--_bg);border:1px solid var(--_border);border-radius:10px;box-shadow:var(--_shadow);font-size:13px;line-height:1.45;}.mushi-beta-pop p{margin:0;}@media (max-width:${Y}px){.mushi-header{gap:4px;padding-left:12px;}.mushi-header-type,.mushi-header-host-icon{display:none;}.mushi-header .mushi-pill-btn{padding:0 10px;}}.mushi-title:focus{outline:none;}.mushi-header-host-icon{width:20px;height:20px;margin-right:8px;border-radius:4px;object-fit:contain;}.mushi-header .mushi-icon-btn:first-child{margin-left:-10px;}.mushi-header .mushi-icon-btn:last-child{margin-right:-4px;}.mushi-beta-receipt{display:flex;flex-direction:column;gap:2px;align-items:center;}.mushi-icon-btn{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:44px;min-height:44px;border:0;border-radius:10px;background:none;color:var(--_muted);font:inherit;font-size:17px;cursor:pointer;}.mushi-icon-btn:hover{background:var(--_surface);color:var(--_fg);}.mushi-pill-btn{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:44px;padding:0 12px;border:1px solid var(--_border);border-radius:999px;background:none;color:var(--_fg);font:inherit;font-size:13px;white-space:nowrap;cursor:pointer;}.mushi-pill-btn:hover{background:var(--_surface);}.mushi-badge{padding:1px 7px;border-radius:999px;background:var(--_fg);color:var(--_bg);font-size:11px;font-weight:600;}.mushi-menu-wrap{position:relative;}.mushi-menu{position:absolute;right:0;top:calc(100% + 4px);z-index:2;display:flex;flex-direction:column;min-width:210px;padding:4px;background:var(--_bg);border:1px solid var(--_border);border-radius:10px;box-shadow:var(--_shadow);}.mushi-menu-item{min-height:44px;padding:0 12px;border:0;border-radius:8px;background:none;color:var(--_fg);font:inherit;text-align:left;cursor:pointer;}.mushi-menu-item:hover{background:var(--_surface);}.mushi-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;padding:12px 16px 16px;scrollbar-width:thin;}.mushi-lead,.mushi-body{display:flex;flex-direction:column;gap:12px;min-width:0;}.mushi-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 12px 12px 16px;border-top:1px solid var(--_border);}.mushi-footer-hint{flex:1;min-width:0;font-size:12px;color:var(--_muted);}.mushi-privacy{display:inline-flex;align-items:center;gap:6px;flex:1;min-width:0;font-size:12px;color:var(--_muted);}.mushi-privacy .mushi-ico{width:14px;height:14px;}.mushi-privacy-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}.mushi-submit .mushi-ico{width:16px;height:16px;stroke-width:2.4;}.mushi-brand-footer{padding:6px 12px 8px;text-align:center;font-size:11px;color:var(--_muted);}.mushi-brand-link{color:inherit;text-decoration:none;}.mushi-brand-link:hover{text-decoration:underline;}.mushi-textarea,.mushi-input{width:100%;border:1px solid var(--_border);border-radius:10px;background:var(--_bg);color:var(--_fg);font:inherit;}.mushi-textarea{display:block;min-height:88px;max-height:40vh;padding:12px;font-size:15px;line-height:1.45;resize:vertical;}.mushi-input{flex:1;min-width:0;min-height:44px;padding:10px 12px;resize:none;}.mushi-textarea:focus,.mushi-input:focus{outline:2px solid var(--_accent);outline-offset:1px;border-color:transparent;}.mushi-textarea::placeholder,.mushi-input::placeholder{color:var(--_muted);opacity:1;}.mushi-ico{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}.mushi-chips{display:flex;flex-wrap:wrap;gap:6px;}.mushi-chip{min-height:44px;padding:0 14px;border:1px solid var(--_border);border-radius:999px;background:none;color:var(--_fg);font:inherit;font-size:13px;cursor:pointer;}.mushi-chip:hover{background:var(--_surface);}.mushi-chip[aria-checked="true"]{background:var(--_fg);border-color:var(--_fg);color:var(--_bg);}.mushi-chip-more{border-style:dashed;color:var(--_muted);}.mushi-chip-sm{padding:0 12px;font-size:12px;}.mushi-intents .mushi-chip{border-color:var(--_cat,var(--_border));}.mushi-intents .mushi-chip:hover{background:var(--_cat-wash,var(--_surface));}.mushi-intents .mushi-chip[aria-checked="true"]{background:var(--_cat,var(--_fg));border-color:var(--_cat,var(--_fg));color:var(--_bg);}.mushi-tile{--_cat:${Q.solid};--_cat-ink:${Q.ink};}.mushi-tile,.mushi-panel[data-cat]{--_cat-wash:color-mix(in srgb,var(--_cat) ${we}%,transparent);--_cat-wash-strong:color-mix(in srgb,var(--_cat) ${M}%,transparent);}${re} .mushi-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}.mushi-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:78px;padding:10px 4px 8px;border:1px solid var(--_cat);border-radius:12px;background:var(--_cat-wash);color:var(--_fg);font:inherit;font-size:13px;font-weight:600;line-height:1.2;text-align:center;overflow-wrap:anywhere;cursor:pointer;transition:background-color ${ae}ms ease-out,transform ${ae}ms ease-out;}.mushi-tile:hover{background:var(--_cat-wash-strong);}.mushi-tile:active{transform:scale(.97);}.mushi-tile[aria-checked="true"]{background:var(--_cat-wash-strong);box-shadow:0 0 0 1px var(--_cat),inset 0 0 0 1px var(--_cat);}.mushi-tile-ico{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:var(--_bg);color:var(--_cat-ink);}.mushi-tile-ico .mushi-ico{width:22px;height:22px;}.mushi-tile[data-category="other"] .mushi-tile-ico .mushi-ico{stroke-width:3.4;}.mushi-tile[aria-checked="true"] .mushi-tile-ico{background:var(--_cat);color:var(--_bg);}.mushi-tile-emoji{font-size:20px;line-height:1;}.mushi-tile-check{position:absolute;top:5px;right:5px;display:none;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:var(--_cat);color:var(--_bg);}.mushi-tile-check .mushi-ico{width:12px;height:12px;stroke-width:3;}.mushi-tile[aria-checked="true"] .mushi-tile-check{display:inline-flex;}.mushi-more-row{display:flex;justify-content:flex-end;}.mushi-meter{display:flex;justify-content:flex-end;margin-top:-6px;}.mushi-count{display:inline-flex;align-items:center;gap:6px;min-height:20px;font-size:12px;color:var(--_muted);}.mushi-ring{width:18px;height:18px;transform:rotate(-90deg);}.mushi-ring circle{fill:none;stroke-width:2.5;}.mushi-ring-track{stroke:var(--_border);}.mushi-ring-fill{stroke:var(--_cat,var(--_fg));stroke-linecap:round;transition:stroke-dashoffset ${ae}ms ease-out;}.mushi-count.ok{color:var(--_ok);}.mushi-count.ok .mushi-ico{width:16px;height:16px;stroke-width:2.6;}.mushi-count.nudge{color:var(--_err);font-weight:600;}.mushi-count.shake{animation:mushi-nudge 320ms ease-out;}.mushi-count.nudge .mushi-ring-fill{stroke:var(--_err);}.mushi-count-max{margin-left:6px;font-variant-numeric:tabular-nums;}.mushi-panel.mushi-nudge .mushi-textarea{border-color:var(--_err);outline-color:var(--_err);}@keyframes mushi-nudge{25%{transform:translateX(-3px);}75%{transform:translateX(3px);}}.mushi-attachments{display:flex;flex-wrap:wrap;align-items:center;gap:8px;}.mushi-tool{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border:1px solid var(--_border);border-radius:10px;background:var(--_surface);color:var(--_fg);font:inherit;cursor:pointer;}.mushi-tool:hover{border-color:var(--_muted);}.mushi-tool .mushi-ico{width:20px;height:20px;}.mushi-tool.active{border-color:var(--_ok);color:var(--_ok);}.mushi-tool.error{border-color:var(--_err);color:var(--_err);}.mushi-tool[disabled]{cursor:progress;opacity:.75;}.mushi-tool-badge{position:absolute;top:-5px;right:-5px;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:var(--_ok);color:var(--_bg);}.mushi-tool-badge .mushi-ico{width:10px;height:10px;stroke-width:3.4;}.mushi-attach-btn{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border:1px solid var(--_border);border-radius:10px;background:var(--_surface);color:var(--_fg);font:inherit;font-size:13px;cursor:pointer;}.mushi-attach-btn:hover{border-color:var(--_muted);}.mushi-attach-btn.active{border-color:var(--_ok);}.mushi-attach-btn.error{border-color:var(--_err);color:var(--_err);}.mushi-attach-btn[disabled]{cursor:progress;opacity:.75;}.mushi-screenshot-preview{display:flex;align-items:center;gap:8px;flex:0 1 auto;min-width:0;margin:0;}.mushi-screenshot-preview.open{flex-direction:column;align-items:stretch;width:100%;}.mushi-thumb{position:relative;flex:none;padding:0;border:1px solid var(--_ok);border-radius:8px;background:var(--_surface);line-height:0;overflow:visible;cursor:zoom-in;}.mushi-thumb img{display:block;width:64px;height:44px;border-radius:7px;object-fit:cover;}.mushi-shot-tools{display:flex;align-items:center;gap:6px;}.mushi-screenshot-preview.open .mushi-thumb{cursor:zoom-out;}.mushi-screenshot-preview.open .mushi-thumb img{width:100%;height:auto;max-height:40vh;object-fit:contain;}.mushi-screenshot-preview figcaption{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:13px;}.mushi-screenshot-hint{font-size:12px;color:var(--_muted);}.mushi-annotate-host{width:100%;}.mushi-annotate-host:empty{display:none;}.mushi-note{margin:0;font-size:12px;line-height:1.45;color:var(--_muted);}.mushi-error-inline,.mushi-warn{color:var(--_err);}.mushi-screenshot-review{color:var(--_fg);font-weight:600;}.mushi-empty{margin:0;padding:24px 8px;text-align:center;color:var(--_muted);}.mushi-link-btn{min-height:24px;padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer;}.mushi-btn,.mushi-submit{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 16px;border-radius:10px;font:inherit;font-size:14px;font-weight:500;cursor:pointer;}.mushi-btn{border:1px solid var(--_border);background:none;color:var(--_fg);}.mushi-btn:hover{background:var(--_surface);}.mushi-submit{min-width:88px;padding:0 20px;border:0;background:var(--_accent);color:var(--_accent-fg);font-weight:600;}.mushi-submit:hover{filter:brightness(1.08);}.mushi-submit[aria-disabled="true"]{opacity:.45;cursor:not-allowed;}.mushi-submit[data-ready="false"]{background:color-mix(in oklab,var(--_accent) 72%,var(--_bg));}.mushi-submit[aria-busy="true"],.mushi-btn[aria-busy="true"]{cursor:progress;opacity:.75;}.mushi-check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;cursor:pointer;}.mushi-check input{width:18px;height:18px;margin:0;accent-color:var(--_fg);}.mushi-inline-form{display:flex;gap:8px;width:100%;}.mushi-optins{display:flex;flex-direction:column;align-items:flex-start;gap:8px;width:100%;margin-top:4px;text-align:left;}.mushi-beta-strip{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:10px;background:var(--_surface);font-size:13px;}.mushi-beta-strip p{margin:0;}.mushi-beta-perks,.mushi-changelog ul{margin:0;padding-left:18px;font-size:12px;}.mushi-changelog summary{font-size:12px;color:var(--_muted);cursor:pointer;}.mushi-spinner{display:inline-block;width:12px;height:12px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;vertical-align:-2px;animation:mushi-spin .8s linear infinite;}@keyframes mushi-spin{to{transform:rotate(360deg);}}.mushi-success{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 0 4px;text-align:center;}.mushi-success-stamp{position:relative;display:inline-flex;align-items:center;justify-content:center;width:72px;height:72px;color:var(--_ok);}.mushi-success-stamp svg{position:absolute;inset:0;width:100%;height:100%;}.mushi-success-stamp circle{fill:color-mix(in oklab,var(--_ok) 10%,transparent);stroke:currentColor;stroke-width:4;stroke-dasharray:280;stroke-dashoffset:280;transform:rotate(-90deg);transform-origin:center;animation:mushi-ring 480ms ease-out 60ms forwards;}.mushi-success-check{fill:none;stroke:currentColor;stroke-width:7;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:62;stroke-dashoffset:62;animation:mushi-ring 300ms ease-out 460ms forwards;}@keyframes mushi-ring{to{stroke-dashoffset:0;}}.mushi-success-title{margin:0;font-size:18px;font-weight:700;}.mushi-success-meta{font-size:12px;color:var(--_muted);}.mushi-success-receipt{display:flex;flex-direction:column;align-items:center;gap:6px;}.mushi-success-sla{display:inline-flex;align-items:center;gap:6px;margin:0;padding:6px 12px;border-radius:999px;background:color-mix(in oklab,var(--_ok) 12%,var(--_bg));color:var(--_fg);font-size:13px;text-align:left;}.mushi-success-sla .mushi-ico{width:16px;height:16px;color:var(--_ok);}.mushi-success-receipt-id{min-height:24px;padding:2px 6px;border:1px dashed var(--_border);border-radius:6px;background:none;color:inherit;font-family:ui-monospace,monospace;font-size:12px;cursor:pointer;}.mushi-success-rewards{width:100%;}.mushi-success-pts-award{font-size:20px;font-weight:700;}.mushi-tier-bar-track{height:4px;margin:6px 0;border-radius:2px;background:var(--_surface);overflow:hidden;}.mushi-tier-bar-fill{height:100%;background:var(--_fg);transform-origin:left;transform:scaleX(var(--mushi-tier-pct,0));}.mushi-report-list,.mushi-thread,.mushi-assistant-log{display:flex;flex-direction:column;gap:8px;}.mushi-report-row{display:flex;flex-direction:column;gap:4px;width:100%;min-height:56px;padding:10px 12px;border:1px solid var(--_border);border-radius:10px;background:none;color:var(--_fg);font:inherit;text-align:left;}button.mushi-report-row{cursor:pointer;}button.mushi-report-row:hover{background:var(--_surface);}.mushi-report-row.unread{box-shadow:inset 3px 0 0 var(--_fg);}.mushi-row-top{display:flex;align-items:center;gap:8px;min-width:0;}.mushi-row-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;}.mushi-row-when,.mushi-row-meta,.mushi-event time,.mushi-bubble time{font-size:12px;color:var(--_muted);}.mushi-row-when{flex:none;}.mushi-row-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.mushi-row-news{font-size:13px;}.unread .mushi-row-title,.unread .mushi-row-news{font-weight:600;}.mushi-roadmap-row .mushi-btn{align-self:flex-start;}.mushi-pill{flex:none;display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:500;line-height:1.5;white-space:nowrap;}.mushi-tone-neutral,.mushi-tone-muted{background:var(--_surface);color:var(--_muted);}.mushi-tone-info{background:${v.bg};color:color-mix(in oklab,${v.fg} 85%,var(--_fg));}.mushi-tone-attention{background:${T.bg};color:color-mix(in oklab,${T.fg} 85%,var(--_fg));}.mushi-tone-progress{background:${A.bg};color:color-mix(in oklab,${A.fg} 85%,var(--_fg));}.mushi-tone-success,.mushi-tone-success-muted{background:${E.bg};color:color-mix(in oklab,${E.fg} 85%,var(--_fg));}.mushi-skeleton{display:flex;flex-direction:column;gap:8px;}.mushi-skeleton span{height:14px;border-radius:6px;background:var(--_surface);animation:mushi-shimmer 1.2s ease-in-out infinite alternate;}.mushi-skeleton span:nth-child(2){width:82%;}.mushi-skeleton span:nth-child(3){width:58%;}@keyframes mushi-shimmer{to{opacity:.45;}}.mushi-thread-summary{display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:10px;background:var(--_surface);}.mushi-card-status,.mushi-summary-text{margin:0;}.mushi-summary-text{font-size:14px;white-space:pre-wrap;word-break:break-word;}.mushi-card-thumb{align-self:flex-start;max-width:100%;max-height:160px;border-radius:8px;object-fit:contain;}.mushi-timeline{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;}.mushi-event{display:flex;justify-content:space-between;gap:8px;padding-left:10px;border-left:2px solid var(--_border);font-size:12px;color:var(--_muted);}.mushi-event time,.mushi-bubble time{flex:none;}.mushi-bubble,.mushi-assistant-msg{display:flex;flex-direction:column;gap:2px;max-width:88%;padding:8px 12px;border-radius:12px;background:var(--_surface);white-space:pre-wrap;word-break:break-word;}.mushi-bubble.dev,.mushi-assistant-msg.dev{align-self:flex-start;border:1px solid var(--_border);border-bottom-left-radius:4px;background:none;}.mushi-bubble.mine,.mushi-assistant-msg.mine{align-self:flex-end;border-bottom-right-radius:4px;background:color-mix(in oklab,var(--_fg) 9%,var(--_bg));}.mushi-bubble strong{font-size:12px;}.mushi-bubble p{margin:0;font-size:14px;}.mushi-bubble-state{font-size:11px;color:var(--_muted);}.mushi-verify{display:flex;gap:8px;width:100%;}.mushi-verify .mushi-btn{flex:1;}.mushi-thread-composer{display:flex;align-items:flex-end;gap:8px;width:100%;}.mushi-reply{max-height:104px;overflow-y:auto;}.mushi-send{min-width:44px;padding:0;font-size:18px;}.mushi-thread-action-error{width:100%;margin:0;font-size:12px;}.mushi-assistant-greeting{margin:0;color:var(--_muted);}.mushi-lb{margin:0;padding:0;list-style:none;}.mushi-lb-row{display:flex;align-items:center;gap:10px;min-height:40px;border-bottom:1px solid var(--_border);font-size:13px;}.mushi-lb-row.me{font-weight:600;}.mushi-xapp-group{display:flex;flex-direction:column;gap:6px;}.mushi-xapp-app-name{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;font-weight:600;color:var(--_muted);}.mushi-app-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:22px;height:22px;border:1px solid var(--_border);border-radius:6px;background:var(--_surface);overflow:hidden;}.mushi-app-icon-img{display:block;width:16px;height:16px;object-fit:contain;}.mushi-app-icon-initials{font-size:9px;font-weight:700;line-height:1;color:var(--_muted);}.mushi-toast{position:fixed;display:flex;align-items:center;gap:6px;max-width:min(380px,calc(100vw - 32px));padding:6px 6px 6px 14px;background:var(--_bg);color:var(--_fg);border:1px solid var(--_border);border-radius:12px;box-shadow:var(--_shadow);font-size:14px;animation:mushi-open 180ms ease-out both;}.mushi-toast span{display:flex;flex-direction:column;flex:1;min-width:0;}.mushi-toast strong{font-weight:600;}.mushi-toast small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--_muted);}.mushi-toast .mushi-btn{padding:0 12px;}.mushi-toast.bottom-right,.mushi-toast.bottom-left{bottom:calc(var(--mushi-bottom,${H}px) + ${F}px);}.mushi-toast.top-right,.mushi-toast.top-left{top:calc(var(--mushi-top,${H}px) + ${F}px);}.mushi-toast.bottom-right,.mushi-toast.top-right,.mushi-toast.banner-top,.mushi-toast.banner-bottom{right:var(--mushi-right,${H}px);}.mushi-toast.bottom-left,.mushi-toast.top-left{left:var(--mushi-left,${H}px);}.mushi-toast.banner-top{top:calc(var(--mushi-banner-offset,${ne}px) + 12px);}.mushi-toast.banner-bottom{bottom:calc(var(--mushi-banner-offset,${ne}px) + 12px);}.mushi-banner{position:fixed;left:0;right:0;box-sizing:border-box;min-height:${ne}px;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 calc(16px + env(safe-area-inset-right,0px)) 0 calc(16px + env(safe-area-inset-left,0px));font-family:${f};font-size:12px;letter-spacing:0.04em;white-space:nowrap;overflow:hidden;z-index:var(--mushi-banner-z,${_});animation:mushi-banner-slide-in ${Ke}ms ${b} both;}.mushi-banner.top{top:0;padding-top:env(safe-area-inset-top,0px);}.mushi-banner.bottom{bottom:0;padding-bottom:env(safe-area-inset-bottom,0px);}.mushi-banner.neon{background:${g};color:${y};border-bottom:1.5px solid ${C};}.mushi-banner.neon.bottom{border-top:1.5px solid ${C};border-bottom:none;}.mushi-banner.neon .mushi-banner-btn{background:rgba(0,0,0,0.14);color:${y};border:1px solid rgba(0,0,0,0.22);}.mushi-banner.neon .mushi-banner-btn:hover{background:rgba(0,0,0,0.22);}.mushi-banner.brand{background:${p};color:${x};border-bottom:1.5px solid ${R};}.mushi-banner.brand.bottom{border-top:1.5px solid ${R};border-bottom:none;}.mushi-banner.brand .mushi-banner-btn{background:rgba(255,255,255,0.18);color:${x};border:1px solid rgba(255,255,255,0.32);}.mushi-banner.brand .mushi-banner-btn:hover{background:rgba(255,255,255,0.28);}.mushi-banner.subtle{background:${a?"rgba(15,14,12,0.88)":"rgba(248,244,237,0.92)"};backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);color:${u};border-bottom:1px solid ${c};}.mushi-banner.subtle.bottom{border-top:1px solid ${c};border-bottom:none;}.mushi-banner.subtle .mushi-banner-btn{background:${a?"rgba(242,235,221,0.10)":"rgba(14,13,11,0.08)"};color:${u};border:1px solid ${c};}.mushi-banner.subtle .mushi-banner-btn:hover{background:${a?"rgba(242,235,221,0.18)":"rgba(14,13,11,0.14)"};}.mushi-banner-label{flex:1;text-align:center;overflow:hidden;text-overflow:ellipsis;}.mushi-banner--rich{justify-content:space-between;gap:12px;min-height:${ne}px;height:auto;padding:4px 12px 4px 16px;white-space:normal;}.mushi-banner-body{display:flex;align-items:center;gap:8px;flex:1;min-width:0;overflow:hidden;}.mushi-banner-pill{display:inline-flex;flex-shrink:0;align-items:center;padding:1px 6px;border-radius:3px;border:1px solid currentColor;font-size:10px;font-weight:700;letter-spacing:0.18em;text-transform:uppercase;opacity:0.92;}.mushi-banner.neon .mushi-banner-pill{border-color:rgba(10,26,10,0.45);background:rgba(10,26,10,0.12);}.mushi-banner.brand .mushi-banner-pill{border-color:rgba(255,255,255,0.45);background:rgba(255,255,255,0.14);}.mushi-banner.subtle .mushi-banner-pill{border-color:${c};background:${a?"rgba(242,235,221,0.08)":"rgba(14,13,11,0.06)"};}.mushi-banner-message{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500;line-height:1.3;opacity:0.9;}.mushi-banner-actions{display:inline-flex;align-items:center;gap:0;flex-shrink:1;min-width:0;overflow-x:auto;scrollbar-width:none;font-size:11px;}.mushi-banner-actions::-webkit-scrollbar{display:none;}@media (max-width:${Y}px){.mushi-banner-actions .mushi-banner-extra{display:none;}}.mushi-banner-link{display:inline-flex;align-items:center;padding:2px 8px;border:none;background:transparent;color:inherit;cursor:pointer;font:inherit;letter-spacing:inherit;text-decoration:none;opacity:0.88;transition:opacity ${ae}ms ${b};flex-shrink:0;}.mushi-banner-link:hover{opacity:1;}.mushi-banner-link:focus-visible{outline:2px solid ${p};outline-offset:2px;border-radius:2px;}.mushi-banner-divider{opacity:0.28;padding:0 1px;user-select:none;flex-shrink:0;}.mushi-banner--rich .mushi-banner-dismiss{margin-left:4px;}.mushi-banner-btn{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:3px;cursor:pointer;font:inherit;letter-spacing:inherit;transition:opacity ${ae}ms ${b};flex-shrink:0;height:24px;line-height:1;}.mushi-banner-btn:focus-visible{outline:2px solid ${p};outline-offset:2px;}.mushi-banner-dismiss{background:transparent !important;border:none !important;opacity:0.65;cursor:pointer;font-size:14px;line-height:1;padding:4px 8px;margin-left:auto;flex-shrink:0;color:inherit;border-radius:3px;transition:opacity ${ae}ms ${b};}.mushi-banner-dismiss:hover{opacity:1;background:rgba(0,0,0,0.12) !important;}.mushi-banner.neon .mushi-banner-dismiss:hover{background:rgba(0,0,0,0.18) !important;}.mushi-banner-my-reports{background:transparent;border:none;cursor:pointer;font-size:11px;font-family:${f};opacity:0.75;color:inherit;padding:2px 6px;border-radius:3px;white-space:nowrap;flex-shrink:0;transition:opacity ${ae}ms ${b};margin-left:4px;}.mushi-banner-my-reports:hover{opacity:1;background:rgba(0,0,0,0.10);}.mushi-banner.neon .mushi-banner-my-reports:hover{background:rgba(0,0,0,0.18);}@keyframes mushi-banner-slide-in{from{transform:translateY(calc(-1 * 100%));opacity:0.5;}to{transform:translateY(0);opacity:1;}}.mushi-banner.bottom{animation-name:mushi-banner-slide-in-bottom;}@keyframes mushi-banner-slide-in-bottom{from{transform:translateY(100%);opacity:0.5;}to{transform:translateY(0);opacity:1;}}@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:0.001ms !important;animation-iteration-count:1 !important;transition-duration:0.001ms !important;}.mushi-success-stamp circle,.mushi-success-check{stroke-dashoffset:0;}.mushi-count.shake,.mushi-tile:active{animation:none;transform:none;}}`}var mp={bug:'<rect x="7" y="8" width="10" height="12" rx="5"/><path d="M9 8a3 3 0 0 1 6 0M12 12v8M3 13h4M17 13h4M4 7l3 2.5M20 7l-3 2.5M4 20l3-2.5M20 20l-3-2.5"/>',slow:'<path d="M3.5 18a8.5 8.5 0 1 1 17 0"/><path d="M12 18l-4.5-5"/><circle cx="12" cy="18" r="1.2"/>',visual:'<rect x="3" y="4" width="18" height="16" rx="2"/><path d="M3 9h18M9 9v11"/>',confusing:'<circle cx="12" cy="12" r="9"/><path d="M9.5 9.5a2.5 2.5 0 1 1 3.4 2.3c-.6.3-.9.8-.9 1.5V14M12 17.5v.01"/>',idea:'<path d="M9 18h6M10 21h4M12 3a6 6 0 0 0-3.6 10.8c.6.4.6.9.6 1.5V16h6v-.7c0-.6 0-1.1.6-1.5A6 6 0 0 0 12 3z"/>',other:'<path d="M5 12h.01M12 12h.01M19 12h.01"/>',camera:'<path d="M4 8h3l2-3h6l2 3h3v11H4z"/><circle cx="12" cy="13" r="3.5"/>',crosshair:'<circle cx="12" cy="12" r="8"/><path d="M12 2v5M12 17v5M2 12h5M17 12h5"/>',lock:'<rect x="5" y="11" width="14" height="10" rx="2"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/>',check:'<path d="M5 12.5l4.5 4.5L19 7.5"/>',send:'<path d="M5 12h14M13 6l6 6-6 6"/>',pencil:'<path d="M4 20h4L19 9l-4-4L4 16z"/>',close:'<path d="M6 6l12 12M18 6L6 18"/>',clock:'<circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/>'};function de(e,t="mushi-ico"){return `<svg class="${t}" viewBox="0 0 24 24" aria-hidden="true" focusable="false">${mp[e]}</svg>`}var qt=new Set(["bug","slow","visual","confusing","idea","other"]);sn();var $=_t,gp=["bug","slow","visual","confusing"],Fa=50.27,bp="Hide the bug button for this visit";function pe(e,t,r="",n=""){return `<button type="button" class="${r}" data-action="${e}"${n}>${t}</button>`}function Na(e){if(e.step==="report")return Rp(e);if(e.step==="success")return Mp(e);let t=e.views;if(!t)return Ep(e);switch(e.step){case "reports":return t.reportsView(e);case "report-detail":return t.detailView(e);case "assistant":return t.assistantView(e);case "roadmap":return t.roadmapView(e);case "leaderboard":return t.leaderboardView(e);case "account":return t.accountView(e);case "cross-app-reports":return t.crossAppView(e)}}var Ua=new Set(["reports","report-detail","assistant","roadmap","leaderboard","account","cross-app-reports"]);function Ep(e){let t=e.locale.flows,r=e.step==="report-detail"?e.locale.panel.reportTitle:e.step==="reports"?t.reports.title:"";return {header:ln(e,r,true),lead:"",body:za(t.reports.loading),footer:""}}var qa={esc:_t,btn:pe,renderHeader:ln,chipLabel:fi,skeleton:za,formatRelativeTime:ha,renderAppIconHtml:wa};function yp(e){let t=e.locale.step1.moreNav,r=[];return e.callbacks.assistantEnabled&&r.push(pe("assistant",$(e.callbacks.assistantLabel||e.locale.assistant.defaultLabel),"mushi-menu-item",' role="menuitem"')),e.callbacks.onFeatureBoardRequest&&r.push(pe("roadmap",$(t.communityIdeas),"mushi-menu-item",' role="menuitem"')),e.rewardsState&&r.push(pe("open-leaderboard",$(t.leaderboard),"mushi-menu-item",' role="menuitem"')),(e.rewardsState||e.testerInfo)&&r.push(pe("open-account",$(e.testerInfo?e.testerInfo.public_handle??e.testerInfo.display_name??t.myAccount:t.joinCommunity),"mushi-menu-item",' role="menuitem"')),r}function ln(e,t,r=false){let n=e.locale.panel,i=e.step==="report"||e.step==="success",o=e.unreadCount,s=i&&e.callbacks.onReporterReportsRequest?pe("reports",`${$(n.yourReports)}${o?` <span class="mushi-badge">${$(n.newCount.replace("{n}",String(o)))}</span>`:""}`,"mushi-pill-btn"):"",a=i?yp(e):[],u=a.length?`<div class="mushi-menu-wrap">${pe("toggle-more-nav","\u22EF","mushi-icon-btn",` aria-haspopup="menu" aria-expanded="${e.showMoreNav}" aria-label="${$(n.moreOptions)}"`)}${e.showMoreNav?`<div class="mushi-menu" role="menu">${a.join("")}</div>`:""}</div>`:"",c=e.step==="report"&&e.chip&&qt.has(e.chip)?`<span class="mushi-header-type" aria-hidden="true">${de(e.chip)}</span>`:"",p=r?pe("back","\u2190","mushi-icon-btn",` aria-label="${$(e.locale.widget.back)}"`):c||(e.pageFaviconHref?`<img class="mushi-header-host-icon" src="${$(e.pageFaviconHref)}" alt="" referrerpolicy="no-referrer" width="20" height="20" />`:""),h=e.step==="report"&&e.config.betaMode?.enabled?vp(e):"";return `${p}<h2 id="mushi-title" class="mushi-title">${$(t)}</h2>${h}${s}${u}${pe("close","\u2715","mushi-icon-btn",` aria-label="${$(e.locale.widget.close)}"`)}`}function vp(e){let t=e.locale.flows.betaStrip,r=pe("toggle-beta","Beta","mushi-beta-chip",` aria-expanded="${e.betaOpen}" aria-controls="mushi-beta-pop" aria-label="${$(t.ariaLabel)}"`);return e.betaOpen?`${r}${Tp(e)}`:r}function ja(e){if(!e.sdkFreshness||e.config.outdatedBanner==="off"||e.config.outdatedBanner==="console-only")return "";let{latest:t,current:r,deprecated:n,message:i}=e.sdkFreshness;return !t&&!n?"":`<div class="mushi-outdated" role="status"><strong>Mushi SDK ${$(r)}</strong> ${t?`latest is ${$(t)}.`:"needs attention."}${i?` <span>${$(i)}</span>`:""}</div>`}function Wa(e){return e.config.brandFooter!==true?"":`<div class="mushi-brand-footer"><a class="mushi-brand-link" href="${$(fa(e.brandRef))}" target="_blank" rel="noopener noreferrer" data-action="brand-footer">${$(e.locale.flows.poweredBy)}<span aria-hidden="true"> \u2197</span></a></div>`}function fi(e,t){if(t==="idea"||t==="feature")return e.config.featureRequestLabel||e.rc.categories.idea;let r=e.resolveCustomCategory(t);return r?r.label:t==="other"?e.locale.step1.categories.other:e.rc.categories[t]??""}function wp(e,t,r,n){let i=n===t,o=i||n===null&&r===0?"0":"-1",s=qt.has(t)?void 0:e.resolveCustomCategory(t),a=s?s.icon?`<span class="mushi-tile-emoji" aria-hidden="true">${$(s.icon)}</span>`:de("other"):de(qt.has(t)?t:"other");return `<button type="button" class="mushi-tile" role="radio" aria-checked="${i}" tabindex="${o}" data-action="chip" data-category="${$(t)}"><span class="mushi-tile-ico">${a}</span><span class="mushi-tile-label">${$(fi(e,t))}</span><span class="mushi-tile-check" aria-hidden="true">${de("check")}</span></button>`}function Ha(e){let t=e.locale.step3,r=e.locale.panel.prompts??{},n=e.chip;return n==="idea"?e.config.featureRequestDescription||r.idea||t.featurePlaceholder:n&&n in r?r[n]||t.descriptionPlaceholder:r.other||t.descriptionPlaceholder}function Sp(e){let t=e.locale.panel,r=e.draftLength>on-400?`<span class="mushi-count-max">${e.draftLength}/${on}</span>`:"";if(!e.charsNeeded){let s=$(e.locale.step3.submitHint.replace("{key}",ga(ba())));return `<span class="mushi-count ok" id="mushi-hint" data-role="hint">${de("check")}<span>${s}</span>${r}</span>`}let n=e.minLength>0?Math.min(1,(e.minLength-e.charsNeeded)/e.minLength):0,i=(Fa*(1-n)).toFixed(2),o=(t.charsLeft??"{n} more characters").replace("{n}",String(e.charsNeeded));return `<span class="mushi-count${e.lengthNudge?" nudge":""}${e.nudgeShake?" shake":""}" id="mushi-hint" data-role="hint"><svg class="mushi-ring" viewBox="0 0 20 20" aria-hidden="true"><circle class="mushi-ring-track" cx="10" cy="10" r="8"/><circle class="mushi-ring-fill" cx="10" cy="10" r="8" stroke-dasharray="${Fa}" stroke-dashoffset="${i}"/></svg><span>${$(o)}</span>${r}</span>`}function xp(e){let t=e.chip;if(!t||t==="idea"||t==="other")return [];let r=e.resolveCustomCategory(t);return r?r.intents??[]:(e.locale.step2.intents[t]??[]).slice(0,-1).slice(0,4)}function kp(e){let t=[...gp];e.featureRequestCard!==false&&t.push("idea"),t.push("other");let r=new Set(t),n=[];for(let{id:i}of e.categories??[])r.has(i)||(r.add(i),n.push(i));return {primary:t,more:n}}function Rp(e){let t=e.locale,r=t.panel,n=t.step3,{primary:i,more:o}=kp(e.config),s=e.showAllCategories?[...i,...o]:i,a=s.map((b,_)=>wp(e,b,_,s.includes(e.chip??"")?e.chip:null)).join(""),u=o.length&&!e.showAllCategories?`<div class="mushi-more-row">${pe("show-all-categories",$(r.more),"mushi-chip mushi-chip-sm mushi-chip-more")}</div>`:"",c=xp(e),p=c.length?`<div class="mushi-chips mushi-intents" role="radiogroup" aria-label="${$(fi(e,e.chip))}">${c.map((b,_)=>`<button type="button" class="mushi-chip mushi-chip-sm" role="radio" aria-checked="${e.intent===b}" tabindex="${e.intent===b||!e.intent&&_===0?"0":"-1"}" data-action="intent" data-intent="${$(b)}">${$(b)}</button>`).join("")}</div>`:"",h=e.screenshotCapturing?n.screenshotCapturing:e.screenshotError?n.screenshotRetry:n.screenshotButton,m=e.elementCapturing?n.elementCapturing:e.elementError?n.elementFailed:e.elementSelected?n.elementSelected:r.pointAt,w='<span class="mushi-spinner" aria-hidden="true"></span>',x=(b,_,B,j,q,re)=>pe(b,`${q?w:_}${re?`<span class="mushi-tool-badge" aria-hidden="true">${de("check")}</span>`:""}`,`mushi-tool${j}`,`${q?" disabled":""} aria-label="${$(B)}" title="${$(B)}"`),g=`${e.callbacks.onScreenshotAnnotateRequest?x("annotate-screenshot",de("pencil"),r.markUp,"",false,false):""}${e.allowScreenshotRemove?x("remove-screenshot",de("close"),r.remove,"",false,false):""}`,y=e.screenshotAttached&&e.screenshotPreview?`<figure class="mushi-screenshot-preview${e.previewOpen?" open":""}"><button type="button" class="mushi-thumb" data-action="toggle-preview" aria-expanded="${e.previewOpen}" title="${$(e.screenshotHint??n.screenshotAttached)}"><img src="${$(e.screenshotPreview)}" alt="${$(n.screenshotPreviewAlt)}" /><span class="mushi-tool-badge" aria-hidden="true">${de("check")}</span></button><figcaption><span class="mushi-shot-tools">${g}</span>${e.screenshotHint?`<span class="mushi-screenshot-hint${e.previewOpen||e.screenshotReview?"":" mushi-sr"}">${$(e.screenshotHint)}</span>`:""}<span class="mushi-sr">${$(n.screenshotAttached)}</span></figcaption></figure><div class="mushi-annotate-host" data-role="annotate-host"></div>`:e.screenshotAvailable?x("screenshot",de("camera"),h,e.screenshotError?" error":"",e.screenshotCapturing,false):"",C=e.elementAvailable?x("element",de("crosshair"),m,`${e.elementSelected?" active":""}${e.elementError?" error":""}`,e.elementCapturing,e.elementSelected):"",R=e.screenshotError&&e.screenshotErrorReason?`<p class="mushi-note mushi-error-inline" role="status" data-role="screenshot-reason">${$(n.screenshotErrors[e.screenshotErrorReason])}${e.callbacks.onScreenshotShareTabRequest?` ${pe("screenshot-share-tab",$(n.screenshotShareTab),"mushi-link-btn")}`:""}</p>`:"",v=e.screenshotReview&&e.screenshotAttached&&e.screenshotPreview?`<p class="mushi-note mushi-screenshot-review" role="status" data-role="screenshot-review">${$(n.screenshotReview)}</p>`:"",T=e.submitNotSent?`<p class="mushi-note mushi-error-inline" data-role="not-sent">${$(e.submitNotSent==="throttled"?n.notSentThrottled:n.notSentBlocked)}</p>`:"",A=e.identifiedUser?.name??e.identifiedUser?.email,E=r.privacyShort??"Only the developer sees this",f=`<span class="mushi-privacy" title="${$(r.privacy)}">${de("lock")}<span class="mushi-privacy-text" aria-hidden="true">${$(E)}${A?` \xB7 ${$(A)}`:""}</span><span class="mushi-sr">${$(r.privacy)}${A?` ${$(A)}`:""}</span></span>`;return {header:ln(e,e.config.expandedTitle||r.title),lead:`<div class="mushi-tiles" role="radiogroup" aria-label="${$(r.typeQuestion??r.title)}">${a}</div>${u}${p}<textarea class="mushi-textarea" data-role="description" rows="3" maxlength="${on}" placeholder="${$(Ha(e))}" aria-label="${$(Ha(e))}" aria-describedby="mushi-hint"></textarea>`,meter:Sp(e),body:`${v}<div class="mushi-attachments">${y}${C}</div>${R}${T}${e.launcherDismissible?`<p class="mushi-note">${pe("hide-launcher",$(t.widget.hideLauncher??bp),"mushi-link-btn")}</p>`:""}`,footer:`${f}<button type="button" class="mushi-submit" data-action="submit" data-ready="${e.canSend}" aria-disabled="${e.submitting}"${e.submitting?' aria-busy="true"':""}>${$(e.submitting?t.widget.submitting:r.send)}${e.submitting?"":de("send")}</button>`}}function Ka(e){let t=e.config.betaMode?.contactEmail?.trim();if(!t||!/^[^\s@<>"]+@[^\s@<>"]+$/.test(t))return "";let r=`<a class="mushi-link-btn" href="mailto:${$(encodeURIComponent(t).replace(/%40/g,"@"))}">${$(t)}</a>`;return `<p class="mushi-note mushi-beta-contact">${$(e.locale.flows.betaStrip.contactHint).replace($("{email}"),r)}</p>`}function _p(e){let t=e.config.betaMode;if(!t?.enabled)return "";let r=e.locale.flows.betaStrip,n=t.appName?r.teamSees.replace("{appName}",t.appName):r.teamSeesGeneric;return `<div class="mushi-beta-receipt"><p class="mushi-note">${$(n)}</p>${Ka(e)}</div>`}function Cp(e){let t=e.config.betaMode?.changelogItems?.[0];if(!t)return "";let r=$(e.locale.flows.changelog.whatsNew.replace("{version}",t.version));return `<details class="mushi-changelog"><summary>${t.date?`${r} \xB7 ${$(t.date)}`:r}</summary><ul>${t.items.map(n=>`<li>${$(n)}</li>`).join("")}</ul></details>`}function Tp(e){let t=e.config.betaMode,r=e.locale.flows.betaStrip,n=$(t.appName??"This app"),i=t.message?$(t.message):$(r.defaultMessage).replace("{appName}",n),o=t.perks??[];return `<div class="mushi-beta-strip mushi-beta-pop" id="mushi-beta-pop" role="note" aria-label="${$(r.ariaLabel)}"><p>${i}</p>${Ka(e)}${o.length?`<ul class="mushi-beta-perks">${o.map(s=>`<li>${$(s)}</li>`).join("")}</ul>`:""}${Cp(e)}</div>`}function Va(e){let t=e.locale.flows.success;switch(e.lastSubmitFailureKind){case "rate_limited":return t.rateLimited;case "quota":return t.quotaBlocked;case "permanent":return t.permanentFailed;case "retrying":return t.retrying}return e.lastSubmitQueuedOffline?t.queuedOffline:null}function Ap(e){let t=e.locale.flows.success,r=e.lastSubmitFailureKind;if(Va(e)){let s=r==="rate_limited"?t.rateLimitedHint:r==="quota"?t.quotaBlockedHint:r==="permanent"?t.permanentFailedHint:r==="retrying"?t.retryingHint:t.queuedHint;return `<p class="mushi-note mushi-success-receipt mushi-warn" role="status">${$(s)}</p>`}let n=$((e.config.responseSlaLabel??"").trim()||t.slaDefault);if(!e.lastReportId)return `<div class="mushi-success-receipt" role="status"><p class="mushi-success-sla">${de("clock")}<span>${n}</span></p><p class="mushi-note"><span class="mushi-spinner" aria-hidden="true"></span> ${$(t.delivering)}</p></div>`;let i=$(e.lastReportId),o=(e.config.dashboardUrl??"").replace(/\/$/,"");return `<div class="mushi-success-receipt" role="status"><p class="mushi-success-sla">${de("clock")}<span>${n}</span></p><p class="mushi-note">${$(t.receipt)} <button type="button" class="mushi-success-receipt-id" data-action="copy-report-id" data-copy-id="${i}" aria-label="Copy report id ${i}">#${$(e.lastReportId.slice(0,8))}</button>${o?` \xB7 <a class="mushi-link-btn" href="${$(`${o}/reports/${encodeURIComponent(e.lastReportId)}`)}" target="_blank" rel="noopener noreferrer">${$(t.trackOnMushi)} \u2197</a>`:""}</p>${e.lastSubmitScreenshotDropped?`<p class="mushi-note mushi-warn">${$(t.screenshotDropped)}</p>`:""}</div>`}function Ip(e){let t=!!e.lastReportId,r=t?'<path class="mushi-success-check" d="M31 51l13 13 26-27"/>':"",n=t?`<p class="mushi-success-title">${$(e.locale.panel.delivered??"Got it")}</p>`:"";return `<div class="mushi-success-stamp" aria-hidden="true"><svg viewBox="0 0 100 100"><circle cx="50" cy="50" r="44"/>${r}</svg></div>${n}`}function za(e,t=3){return `<div class="mushi-skeleton" role="status" aria-label="${$(e)}">${"<span></span>".repeat(t)}</div>`}function Mp(e){let t=e.locale.flows.success,r=e.submittedAt??new Date,n=Va(e),i=!n&&e.lastReportId&&e.callbacks.onReporterReportsRequest;return {header:ln(e,n??e.rc.ui.sent),lead:"",body:`<div class="mushi-success">${n?"":Ip(e)}<time class="mushi-success-meta" datetime="${r.toISOString()}">${$(ya(r,e.config.locale==="auto"?void 0:e.config.locale))}</time>${Ap(e)}${n?"":_p(e)+(e.views?.renderOptIns(e)??"")}${e.rewardsState?Lp(e):""}</div>`,footer:`${i?pe("track-report",$(t.trackReport),"mushi-btn"):"<span></span>"}${pe("done",$(t.done),"mushi-submit")}`}}function Lp(e){let{tier:t,nextTier:r,totalPoints:n,pointsForReport:i}=e.rewardsState,o=n+i,s=100,a="";if(r){let u=t?.pointsThreshold??0,c=r.pointsThreshold;s=c>u?Math.round(Math.min(1,(o-u)/(c-u))*100):100;let p=Math.max(0,c-o);a=p>0?`${p.toLocaleString()} pts to ${$(r.displayName)}`:`\u{1F389} ${$(r.displayName)}`;}return `<div class="mushi-success-rewards"><div class="mushi-success-pts-award">+${i} pts</div>${r?`<div class="mushi-tier-bar-track" role="progressbar" aria-valuenow="${s}" aria-valuemin="0" aria-valuemax="100" aria-label="${$(r.displayName)}"><div class="mushi-tier-bar-fill" style="--mushi-tier-pct:${s/100}"></div></div><p class="mushi-note">${a}</p>`:""}</div>`}function Ga(e){return Ct(e)}function zp(e){let t=e.toLowerCase();return /i('m| am) not sure|i don't know|not sure|cannot help|can't help|unable to|don't have enough|outside (my|of) (scope|knowledge)|file a (bug )?report|報告/.test(t)||/わかりません|分かりません|不明|報告して/.test(e)}var Ei=null,yi=null;function tu(){return yi??=Promise.resolve().then(()=>(eu(),Qa)).then(e=>(e.initViews(qa),Ei=e,e)),yi}var gi=["notice","header","lead","meter","body","footer","brand"],bi=["description","reporter-reply","magic-link-email","optin-email"],Gp=["bug","slow","visual","confusing","other"],Yp='button:not([disabled]),textarea:not([disabled]),input:not([disabled]),a[href],[tabindex]:not([tabindex="-1"])',dn=class e{host;shadow;colorSchemeMq=null;onColorSchemeChange=null;config;callbacks;locale;rc;lang="en";isOpen=false;openCount=0;step="report";styleEl;styleKey="";themeWarnings=[];panel;scroller;regionEls={};regionHtml={};live;renderedStep=null;triggerEl=null;triggerKey="";bannerEl=null;bannerKey="";toastEl=null;opener=null;chip=null;intent=null;showAllCategories=false;showMoreNav=false;lengthNudge=false;nudgeShake=false;betaOpen=false;focusDescriptionNext=false;screenshotAttached=false;screenshotCapturing=false;screenshotError=false;screenshotErrorReason=null;screenshotByUser=false;previewOpen=false;screenshotReview=false;allowScreenshotRemove=true;screenshotAvailable=true;elementAvailable=true;drafts={};screenshotPreview=null;elementSelected=false;elementCapturing=false;elementError=false;submitting=false;selectorHint=null;triggerVisible=true;triggerShrunk=false;triggerHiddenByScroll=false;sdkFreshness=null;brandRef=null;brandImpressionSent=false;reporterReports=[];featureBoard=[];reporterComments=[];timeline=null;pendingReplies=[];replySeq=0;selectedReportId=null;listLoading=false;threadLoading=false;actionPending=false;reporterError=null;threadError=null;actionError=null;channels={email:false,push:false,emailPrefill:""};emailOptInOpen=false;emailState="idle";pushState="idle";attachedLaunchers=[];smartHideCleanup=null;smartHideTimer=null;submittedAt=null;successTimer=null;pointerDownAt=null;renderDeferred=false;onPointerRelease=()=>{this.pointerDownAt=null,this.renderDeferred&&(this.renderDeferred=false,setTimeout(()=>this.render(),0));};rewardsState=null;leaderboardEntries=null;leaderboardLoading=false;lastReportId=null;lastSubmitQueuedOffline=false;lastSubmitFailureKind;lastSubmitScreenshotDropped=false;submitNotSent=null;bannerDismissed=false;bannerResizeObserver=null;fabPos=null;fabPosKey="";draggableSet=false;barClearance=0;clampedForClearance=0;tuckCleanup=null;tuckTimer=null;resizeFrame=null;lateMeasureTimer=null;onViewportResize=()=>{this.resizeFrame===null&&(this.resizeFrame=requestAnimationFrame(()=>{this.resizeFrame=null,this.barClearance=this.measureFixedBars(),this.render();}));};launcherDismissed=aa();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;constructor(t={},r){this.config={position:t.position??"bottom-right",anchor:t.anchor??{},theme:t.theme??"auto",triggerText:t.triggerText||"\u{1F41B}",expandedTitle:t.expandedTitle??"",mode:t.mode??"conversational",locale:t.locale??"auto",zIndex:t.zIndex??99999,trigger:t.trigger??"auto",bannerConfig:t.bannerConfig??{},attachToSelector:t.attachToSelector??"",inset:t.inset??{},respectSafeArea:t.respectSafeArea??true,hideOnSelector:t.hideOnSelector??"",hideOnRoutes:t.hideOnRoutes??[],environments:t.environments??{},smartHide:t.smartHide??false,draggable:t.draggable??false,mobileTrigger:t.mobileTrigger??(Xp(t)?"auto":"edge-tab"),avoidFixedBars:t.avoidFixedBars??true,tuckOnScroll:t.tuckOnScroll??true,dismissible:t.dismissible??true,brandFooter:t.brandFooter??false,outdatedBanner:t.outdatedBanner??"auto",screenshotSensitiveHint:t.screenshotSensitiveHint??true,betaMode:t.betaMode??{},minDescriptionLength:t.minDescriptionLength??8,dashboardUrl:t.dashboardUrl??"",responseSlaLabel:t.responseSlaLabel??"",featureRequestCard:t.featureRequestCard??true,featureRequestLabel:t.featureRequestLabel??"",featureRequestDescription:t.featureRequestDescription??"",avoidSelectors:t.avoidSelectors??[],categories:t.categories??[],accent:t.accent??"",accentText:t.accentText??""},this.callbacks=r,this.draggableSet=t.draggable!==void 0,this.locale=hi(this.config.locale==="auto"?void 0:this.config.locale),this.rc=this.resolveCopy();let n=la();n?.turns.length&&(this.assistantTurns=n.turns,this.assistantThreadId=n.threadId),this.host=document.createElement("div"),this.host.id="mushi-mushi-widget",this.shadow=this.host.attachShadow({mode:"open"}),this.styleEl=document.createElement("style"),this.panel=document.createElement("div"),this.panel.setAttribute("role","dialog"),this.panel.setAttribute("aria-modal","true"),this.panel.setAttribute("aria-labelledby","mushi-title"),this.scroller=document.createElement("div"),this.scroller.className="mushi-scroll";for(let i of gi){let o=document.createElement("div");o.className=`mushi-${i}`,o.dataset.region=i,this.regionEls[i]=o;}this.scroller.append(this.regionEls.lead,this.regionEls.meter,this.regionEls.body),this.live=document.createElement("div"),this.live.className="mushi-sr",this.live.setAttribute("role","status"),this.live.setAttribute("aria-live","polite"),this.panel.append(this.regionEls.notice,this.regionEls.header,this.scroller,this.regionEls.footer,this.regionEls.brand,this.live),this.shadow.append(this.styleEl,this.panel),this.bindPanelEvents();}resolveCopy(){let t=this.config.locale==="auto"?typeof navigator<"u"?navigator.language??"":"":this.config.locale;return this.lang=(t||"en").split(/[-_]/)[0].toLowerCase(),Ga(this.lang)}mount(){this.host.isConnected||(this.syncHostChromeState(),document.body.appendChild(this.host),window.addEventListener("pointerup",this.onPointerRelease,true),window.addEventListener("pointercancel",this.onPointerRelease,true),this.syncAttachedLaunchers(),this.syncSmartHide(),this.syncScrollTuck(),this.bindColorSchemeListener(),window.addEventListener("resize",this.onViewportResize),window.visualViewport?.addEventListener("resize",this.onViewportResize),this.render(),this.onViewportResize(),this.lateMeasureTimer=setTimeout(()=>{this.lateMeasureTimer=null,this.onViewportResize();},1200));}getIsMounted(){return this.host.isConnected}updateConfig(t={}){let r=this.config.trigger,n=JSON.stringify(this.config.bannerConfig??null),i=Object.fromEntries(Object.entries(t).filter(([,a])=>a!==void 0));this.config={...this.config,...i,...t.triggerText!==void 0?{triggerText:t.triggerText||"\u{1F41B}"}:{}},this.locale=hi(this.config.locale==="auto"?void 0:this.config.locale),this.rc=this.resolveCopy();let o=this.config.trigger==="banner"&&r!=="banner",s=JSON.stringify(this.config.bannerConfig??null)!==n;(o||s)&&(this.bannerDismissed=false),t.draggable!==void 0&&(this.draggableSet=true),this.host.isConnected&&this.syncHostChromeState(),this.syncAttachedLaunchers(),this.syncSmartHide(),this.host.isConnected&&this.syncScrollTuck(),this.render();}resolveCustomCategory(t){return this.config.categories?.find(r=>r.id===t)}open(t){if(this.isOpen)return;this.rememberOpener(),this.isOpen=true,this.openCount++,this.screenshotAttached=false,this.screenshotCapturing=false,this.screenshotError=false,this.screenshotErrorReason=null,this.screenshotPreview=null,this.screenshotByUser=false,this.previewOpen=false,this.screenshotReview=false,this.elementSelected=false,this.elementCapturing=false,this.elementError=false,this.submitting=false,this.submittedAt=null,this.removeSelectorHint(),this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.lastSubmitFailureKind=void 0,this.lastSubmitScreenshotDropped=false,this.submitNotSent=null,this.emailOptInOpen=false,this.emailState="idle",this.drafts={},this.intent=null,this.lengthNudge=false,this.betaOpen=false,this.step="report";let r=t?.category,n=r?this.resolveCustomCategory(r):void 0;this.chip=t?.featureRequest?"idea":n||r&&Gp.includes(r)?r:null,this.showAllCategories=!!n,this.removeToast(),this.barClearance=this.measureFixedBars(),this.render(),this.callbacks.onOpen();}close(){this.isOpen&&(this.isOpen=false,this.showAllCategories=false,this.showMoreNav=false,this.betaOpen=false,this.render(),this.restoreOpenerFocus(),this.callbacks.onClose());}openAssistantTab(){if(!this.callbacks.assistantEnabled){this.open();return}this.ensureOpen(),this.step="assistant",this.assistantError=null,this.render();}ensureOpen(){this.isOpen||(this.rememberOpener(),this.isOpen=true,this.openCount++,this.callbacks.onOpen());}async sendAssistantMessage(t){let r=t.trim();if(!(!r||this.assistantSending||!this.callbacks.onAssistantAsk)){this.assistantSending=true,this.assistantError=null,this.assistantTurns.push({role:"user",text:r}),this.persistAssistantSession(),this.render();try{let n=await this.callbacks.onAssistantAsk(r,this.assistantThreadId);if(n){if(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}:{},offerReport:!0});else {let i=n.text??"\u2026";this.assistantTurns.push({role:"assistant",text:i,...zp(i)?{offerReport:!0}:{}});}this.persistAssistantSession();}else this.assistantError=this.locale.assistant.errors.noResponse;}catch{this.assistantError=this.locale.assistant.errors.generic;}finally{this.assistantSending=false,this.render(),this.scroller.scrollTop=this.scroller.scrollHeight;}}}persistAssistantSession(){ca({turns:this.assistantTurns,threadId:this.assistantThreadId});}clearAssistantTranscript(){this.assistantTurns=[],this.assistantThreadId=null,this.assistantError=null,da(),this.step==="assistant"&&this.render();}pulseTrigger(){if(this.isOpen)return;let t=this.triggerEl;t&&(t.classList.add("mushi-trigger-pulse"),window.setTimeout(()=>t.classList.remove("mushi-trigger-pulse"),2400));}getIsOpen(){return this.isOpen}showTrigger(){this.triggerVisible=true,this.render();}hideTrigger(){this.triggerVisible=false,this.render();}setTrigger(t){this.updateConfig({trigger:t});}attachTo(t,r={}){let i=(typeof t=="string"?Array.from(document.querySelectorAll(t)):[t]).map(o=>{let s=a=>{a.preventDefault(),this.updateConfig(r),this.open();};return o.addEventListener("click",s),()=>o.removeEventListener("click",s)});return ()=>i.forEach(o=>o())}setScreenshotAttached(t){this.screenshotAttached=t,this.screenshotCapturing=false,t?(this.screenshotError=false,this.screenshotErrorReason=null):(this.screenshotPreview=null,this.screenshotByUser=false,this.previewOpen=false,this.screenshotReview=false),this.isOpen&&this.render();}setScreenshotPreview(t){this.screenshotPreview=t,this.isOpen&&this.render();}resolveScreenshotHint(){let t=this.config.screenshotSensitiveHint;return t===false?null:typeof t=="string"?t.trim()?t:null:this.locale.step3.screenshotSensitiveHint}setAllowScreenshotRemove(t){this.allowScreenshotRemove=t,this.isOpen&&this.render();}setCaptureAvailability(t){this.screenshotAvailable=t.screenshot??this.screenshotAvailable,this.elementAvailable=t.element??this.elementAvailable,this.isOpen&&this.render();}setElementSelected(t){this.elementSelected=t,this.elementCapturing=false,t&&(this.elementError=false),this.removeSelectorHint(),this.isOpen&&this.render();}setElementError(t){this.elementError=t,this.elementCapturing=false,this.removeSelectorHint(),this.isOpen&&this.render();}setScreenshotCapturing(t){this.screenshotCapturing=t,this.screenshotError=false,this.screenshotErrorReason=null,this.isOpen&&this.render();}setScreenshotError(t,r){this.screenshotError=t,this.screenshotErrorReason=t?r??this.screenshotErrorReason??"error":null,this.screenshotCapturing=false,this.isOpen&&this.render();}setElementCapturing(t){this.elementCapturing=t,t?(this.elementError=false,this.showSelectorHint()):this.removeSelectorHint(),this.isOpen&&this.render();}hidePanel(){this.panel.style.display="none";}showPanel(){this.panel.style.display="";}showSelectorHint(){this.removeSelectorHint();let t=document.createElement("div");t.id="mushi-selector-hint",t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.style.cssText="position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:2147483646;background:rgba(17,17,17,.92);color:#fff;font:12px/1.4 system-ui,sans-serif;padding:8px 16px;border-radius:20px;pointer-events:none;white-space:nowrap;box-shadow:0 2px 12px rgba(0,0,0,.35)",t.textContent=this.locale.step3.elementSelectorHint,document.body.appendChild(t),this.selectorHint=t;}removeSelectorHint(){this.selectorHint?.remove(),this.selectorHint=null,document.getElementById("mushi-selector-hint")?.remove();}setSdkFreshness(t){this.sdkFreshness=t,this.isOpen&&this.render();}setBrandRef(t){this.brandRef!==t&&(this.brandRef=t,this.isOpen&&this.render());}setRewardsState(t){this.rewardsState=t,this.isOpen&&this.render();}setLeaderboard(t,r=false){this.leaderboardEntries=t,this.leaderboardLoading=r,this.isOpen&&this.render();}setReporterChannels(t){this.channels={email:!!t.email,push:!!t.push,emailPrefill:t.emailPrefill??""},this.isOpen&&this.render();}setIdentifiedUser(t){this.identifiedUser=t,this.isOpen&&this.render();}setTesterSession(t,r){this.testerJwt=t,this.testerInfo=r,this.isOpen&&this.render();}setGlobalLeaderboard(t,r=false){this.globalLeaderboard=t,this.globalLeaderboardLoading=r,this.isOpen&&this.render();}setCrossAppReports(t,r=false){this.crossAppReports=t,this.crossAppLoading=r,this.isOpen&&this.render();}setTesterReputation(t){this.testerReputation=t,this.isOpen&&this.render();}destroy(){window.removeEventListener("pointerup",this.onPointerRelease,true),window.removeEventListener("pointercancel",this.onPointerRelease,true),this.successTimer!==null&&(clearTimeout(this.successTimer),this.successTimer=null),this.smartHideTimer!==null&&(clearTimeout(this.smartHideTimer),this.smartHideTimer=null),this.unbindColorSchemeListener(),this.smartHideCleanup?.(),this.smartHideCleanup=null,this.tuckCleanup?.(),this.tuckCleanup=null,window.removeEventListener("resize",this.onViewportResize),window.visualViewport?.removeEventListener("resize",this.onViewportResize),this.resizeFrame!==null&&(cancelAnimationFrame(this.resizeFrame),this.resizeFrame=null),this.lateMeasureTimer!==null&&(clearTimeout(this.lateMeasureTimer),this.lateMeasureTimer=null),this.teardownViewportHandlers(),this.attachedLaunchers.forEach(t=>t()),this.attachedLaunchers=[],this.removeSelectorHint(),this.removeToast(),this.removeBodyNudge(),this.host.remove();}bindColorSchemeListener(){if(this.unbindColorSchemeListener(),typeof window>"u"||!window.matchMedia)return;let t=this.config.theme;t!=="auto"&&t!=="inherit"||(this.colorSchemeMq=window.matchMedia("(prefers-color-scheme: dark)"),this.onColorSchemeChange=()=>{this.host.isConnected&&this.render();},typeof this.colorSchemeMq.addEventListener=="function"?this.colorSchemeMq.addEventListener("change",this.onColorSchemeChange):typeof this.colorSchemeMq.addListener=="function"&&this.colorSchemeMq.addListener(this.onColorSchemeChange));}unbindColorSchemeListener(){this.colorSchemeMq&&this.onColorSchemeChange&&(typeof this.colorSchemeMq.removeEventListener=="function"?this.colorSchemeMq.removeEventListener("change",this.onColorSchemeChange):typeof this.colorSchemeMq.removeListener=="function"&&this.colorSchemeMq.removeListener(this.onColorSchemeChange)),this.colorSchemeMq=null,this.onColorSchemeChange=null;}syncHostChromeState(){let t=this.host.style;t.setProperty("position","absolute"),t.setProperty("top","0"),t.setProperty("left","0"),t.setProperty("width","0"),t.setProperty("height","0"),t.setProperty("overflow","visible"),t.setProperty("pointer-events","none"),t.setProperty("z-index","auto"),t.setProperty("margin","0"),t.setProperty("padding","0"),t.setProperty("border","none"),t.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 t=this.host.style,r=t.pointerEvents==="none"&&(t.width==="0"||t.width==="0px")&&(t.height==="0"||t.height==="0px"),n=this.host.isConnected?{width:this.host.offsetWidth,height:this.host.offsetHeight}:null,i=this.isSuppressedByHost()||this.isRouteHidden()||!this.triggerVisible||this.launcherDismissed,o=this.config.trigger==="banner"&&!this.bannerDismissed&&!this.isSuppressedByHost()&&!this.isRouteHidden()&&this.triggerVisible;return {widgetHostPointerSafe:r,widgetHostBounds:n,widgetSuppressed:i,bannerRendered:o,warnings:[...this.themeWarnings]}}syncAttachedLaunchers(){this.attachedLaunchers.forEach(t=>t()),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 t=this.config.smartHide===true?{onScroll:"shrink",onIdleMs:900}:this.config.smartHide;if(!t.onScroll)return;let r=()=>{t.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();},t.onIdleMs??900);};window.addEventListener("scroll",r,{passive:true}),this.smartHideCleanup=()=>window.removeEventListener("scroll",r);}syncScrollTuck(){this.tuckCleanup?.(),this.tuckCleanup=null;let t=this.config.smartHide,r=t===true||typeof t=="object"&&!!t.onScroll;if(!this.config.tuckOnScroll||r||typeof document>"u")return;let n=700,i=()=>{let o=this.triggerEl;!o||this.isOpen||this.shadow.activeElement===o||o.classList.contains("dragging")||(o.classList.add("tucked"),this.tuckTimer!==null&&clearTimeout(this.tuckTimer),this.tuckTimer=setTimeout(()=>{this.tuckTimer=null,this.triggerEl?.classList.remove("tucked");let s=this.measureFixedBars();s!==this.barClearance&&(this.barClearance=s,this.render());},n));};document.addEventListener("scroll",i,{capture:true,passive:true}),this.tuckCleanup=()=>{document.removeEventListener("scroll",i,{capture:true}),this.tuckTimer!==null&&clearTimeout(this.tuckTimer),this.tuckTimer=null;};}measureFixedBars(){if(!this.config.avoidFixedBars||typeof document>"u"||typeof document.elementsFromPoint!="function")return 0;let t=window.innerHeight,r=window.innerWidth;if(!t||!r)return 0;let n=this.config.position.endsWith("left"),i=s=>s.height>0&&s.height<=t*.4&&s.top<t&&s.bottom>=t-4&&s.bottom<=t+4,o=t;for(let s of [n?24:r-24,r/2]){let a=document.elementsFromPoint(s,t-2).find(c=>c!==this.host&&!this.host.contains(c)),u=null;for(let c=a??null;c&&c!==document.body&&c!==document.documentElement;c=c.parentElement){let p=getComputedStyle(c),h=c.getBoundingClientRect();if(p.position==="fixed"||p.position==="sticky"){let m=i(h)?h:u;m&&(o=Math.min(o,m.top));break}/(auto|scroll)/.test(p.overflowY)?u=null:i(h)&&(u=h);}}return o<t?Math.ceil(t-o+8):0}dismissLauncherForSession(){this.launcherDismissed=true,ua(),this.close();}shouldRenderTrigger(){if(!this.triggerVisible||this.launcherDismissed||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 t=this.config.environments[this.detectEnvironment()];return t!=="never"&&t!=="manual"}static BANNER_HEIGHT=36;static BODY_NUDGE_PROP="--mushi-banner-offset";applyBodyNudge(t,r=e.BANNER_HEIGHT){let n=`${r}px`;document.documentElement.style.setProperty(e.BODY_NUDGE_PROP,n),t==="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(t,r){let n=()=>{let i=t.getBoundingClientRect().height;i>0&&this.applyBodyNudge(r,i);};requestAnimationFrame(n),typeof ResizeObserver<"u"&&(this.bannerResizeObserver=new ResizeObserver(n),this.bannerResizeObserver.observe(t));}removeBodyNudge(){this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,document.documentElement.style.removeProperty(e.BODY_NUDGE_PROP);let t=document.body.dataset.mushiBannerNudged;t==="top"?(document.body.style.paddingTop="",delete document.body.dataset.mushiBannerNudged):t==="bottom"&&(document.body.style.paddingBottom="",delete document.body.dataset.mushiBannerNudged);}syncBanner(){let t=JSON.stringify([this.config.trigger,this.bannerDismissed,this.triggerVisible,this.isRouteHidden(),this.isSuppressedByHost(),this.config.bannerConfig,this.config.zIndex,this.lang]);t===this.bannerKey&&(this.bannerEl?.isConnected??true)||(this.bannerKey=t,this.bannerEl?.remove(),this.bannerEl=null,this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,this.renderBanner());}renderBanner(){if(this.config.trigger!=="banner")return;if(this.bannerDismissed||!this.triggerVisible||this.isRouteHidden()||this.isSuppressedByHost()){this.removeBodyNudge();return}let t=this.config.bannerConfig??{},r=t.variant??"subtle",n=t.position??"top",i=t.message?.trim()??"",o=i.length>0,s=t.bugCta??"\u{1F41B} Report a bug",a=t.featureCta!==false,u=t.featureCtaLabel??"Request feature",c=`\u{1F4EC} ${this.locale.panel.yourReports}`,p=t.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 w=document.createElement("div");w.className="mushi-banner-body";let x=t.label===false?null:t.label??Ys.bannerLabel;if(x){let v=document.createElement("span");v.className="mushi-banner-pill",v.textContent=x,w.appendChild(v);}let g=document.createElement("span");g.className="mushi-banner-message",g.textContent=i,w.appendChild(g),h.appendChild(w);let y=document.createElement("nav");y.className="mushi-banner-actions",y.setAttribute("aria-label","Feedback banner actions");let C=(v=false)=>{let T=document.createElement("span");T.className=`mushi-banner-divider${v?" mushi-banner-extra":""}`,T.setAttribute("aria-hidden","true"),T.textContent="|",y.appendChild(T);},R=(v,T,A=false)=>{let E=document.createElement("button");E.type="button",E.className=`mushi-banner-link${A?" mushi-banner-extra":""}`,E.textContent=v,E.addEventListener("click",T),y.appendChild(E);};R(s,()=>this.open({category:"bug"})),a&&(C(true),R(u,()=>this.open({featureRequest:true}),true));for(let v of t.links??[]){let T=v.label?.trim();if(!T)continue;let A=v.href&&(/^https?:\/\//i.test(v.href)||v.href.startsWith("/"))?v.href:void 0;if(C(true),A){let E=document.createElement("a");E.className="mushi-banner-link mushi-banner-extra",E.href=A,E.textContent=T,E.target="_blank",E.rel="noopener noreferrer",y.appendChild(E);}else R(T,()=>{v.featureRequest?this.open({featureRequest:true}):this.open();},true);}C(true),R(c,()=>this.openReporter(),true),h.appendChild(y),h.appendChild(m);}else {let w=document.createElement("button");if(w.className="mushi-banner-btn",w.textContent=s,w.addEventListener("click",()=>this.open({category:"bug"})),h.appendChild(w),a){let g=document.createElement("button");g.className="mushi-banner-btn",g.textContent=u,g.addEventListener("click",()=>this.open({featureRequest:true})),h.appendChild(g);}let x=document.createElement("button");x.className="mushi-banner-my-reports",x.textContent=c,x.addEventListener("click",()=>this.openReporter()),h.appendChild(x),h.appendChild(m);}this.shadow.insertBefore(h,this.panel),this.bannerEl=h,this.applyBodyNudge(n),this.trackBannerHeight(h,n);}effectiveTrigger(){if(typeof window>"u")return this.config.trigger;if(this.config.smartHide){let t=this.config.smartHide===true?{onMobile:"edge-tab"}:this.config.smartHide;if(window.matchMedia("(max-width: 768px)").matches&&t.onMobile==="edge-tab")return "edge-tab"}return this.config.trigger==="auto"&&this.config.mobileTrigger==="edge-tab"&&typeof window.matchMedia=="function"&&window.matchMedia("(max-width: 768px)")?.matches?"edge-tab":this.config.trigger}isMobileSmartHidden(){if(!this.config.smartHide||typeof window>"u")return false;let t=this.config.smartHide===true?{onMobile:"edge-tab"}:this.config.smartHide;return window.matchMedia("(max-width: 768px)").matches&&t.onMobile==="hide"}detectEnvironment(){let t=typeof location<"u"?location.hostname:"";return t==="localhost"||t==="127.0.0.1"||t.endsWith(".local")?"development":/\b(staging|stage|preview|dev)\b/i.test(t)?"staging":"production"}isRouteHidden(){return !this.config.hideOnRoutes.length||typeof location>"u"?false:this.config.hideOnRoutes.some(t=>va(location.pathname,t))}getTheme(){let t=this.config.theme;if(t==="light"||t==="dark")return t;if(t==="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"}probeRgb(t){let r=this.host.style,n=r.color,i=null;for(let o of [t,`color-mix(in srgb,${t},${t})`]){r.color="",r.color=o;let s=r.color&&(this.host.isConnected?getComputedStyle(this.host).color:r.color).match(/(rgba?\(|srgb )([\d.]+)[ ,]+([\d.]+)[ ,]+([\d.]+)/);if(s){let a=s[1]==="srgb "?255:1;i=[+s[2]*a,+s[3]*a,+s[4]*a];break}}return r.color=n,i}hostColorVar(t){return pt(this.hostCssVar(t))}resolveAccent(t){this.themeWarnings=[];let r=this.hostColorVar("--mushi-accent")||pt(this.config.accent??""),n=[];if(!r&&typeof document<"u"){try{let p=getComputedStyle(document.documentElement).getPropertyValue("accent-color").trim();p&&p!=="auto"&&n.push(p);}catch{}n.push(document.querySelector('meta[name="theme-color"]')?.getAttribute("content")?.trim()??"");}let i=t?[18,18,18]:[255,255,255];for(let p of n){if(r)break;let h=pt(p),m=h?this.probeRgb(h):null;m&&un(m,i).ratio>=3&&(r=h);}if(!r)return {accent:"",accentFg:""};let o=this.probeRgb(r),s=this.hostColorVar("--mushi-accent-fg")||pt(this.config.accentText??""),a=o?un(o).ink:"",u=o&&s?this.probeRgb(s):null,c=u?un(o,u).ratio:3;return c>=3?{accent:r,accentFg:s||a}:(this.themeWarnings.push(`Accent text ${s} is ${c.toFixed(1)}:1 on ${r} (under 3:1); using ${a}.`),{accent:r,accentFg:a,lockFg:true})}syncChrome(){let t=this.getTheme(),{accent:r,accentFg:n,lockFg:i}=this.resolveAccent(t==="dark"),o=`${t}|${r}|${n}|${i}`;o!==this.styleKey&&(this.styleKey=o,this.styleEl.textContent=Oa(t,r,n,i),this.themeWarnings.forEach(s=>this.callbacks.onWarning?.(s))),this.syncBanner(),this.syncTrigger();}syncTrigger(){let t=this.shouldRenderTrigger(),r=this.config.position,n=t?this.effectiveTrigger():"",i=JSON.stringify([t,n,r,this.triggerShrunk,this.config.triggerText,this.config.zIndex,this.config.draggable,this.lang]),o=false;(i!==this.triggerKey||t&&!this.triggerEl?.isConnected)&&(this.triggerKey=i,this.triggerEl?.remove(),this.triggerEl=t?this.buildTrigger(n):null,o=true),this.triggerEl&&(this.triggerEl.setAttribute("aria-expanded",String(this.isOpen)),this.applyInsetVars(this.triggerEl),(o||this.barClearance!==this.clampedForClearance)&&this.fabPos&&this.dragOptions(this.triggerEl)&&this.restoreFabPos(this.triggerEl),this.clampedForClearance=this.barClearance);}buildTrigger(t){let r=t==="edge-tab",n=document.createElement("button");if(n.className=`mushi-trigger ${this.config.position}${r?" edge-tab":""}${r&&iu(this.config.triggerText)?" text":""}${this.triggerShrunk?" shrunk":""}`,r){let i=document.createElement("span");i.className="mushi-trigger-face",i.textContent=this.config.triggerText,n.appendChild(i);}else n.textContent=this.config.triggerText;return n.setAttribute("aria-label",this.locale.widget.trigger),n.setAttribute("aria-haspopup","dialog"),n.style.zIndex=String(this.config.zIndex),n.addEventListener("click",()=>{this.isOpen?this.close():this.open();}),n.addEventListener("keydown",i=>{let o=this.dragOptions(n);if(!o)return;let s=8,{axis:a}=o,u=0,c=0;if(a!=="y"&&(i.key==="ArrowLeft"?u=-s:i.key==="ArrowRight"&&(u=s)),a!=="x"&&(i.key==="ArrowUp"?c=-s:i.key==="ArrowDown"&&(c=s)),u!==0||c!==0){i.preventDefault();let p=this.fabPos??{x:0,y:0};this.moveFab(n,p.x+u,p.y+c,"end");}}),this.dragOptions(n)&&this.attachDragHandlers(n),this.shadow.insertBefore(n,this.panel),n}restoreFabPos(t){if(!this.fabPos)return;let r=this.fabPos;this.fabPos={x:0,y:0},t.style.setProperty("--mushi-drag-active","0"),this.moveFab(t,r.x,r.y,"restore");}dragOptions(t){let r=t.classList.contains("edge-tab"),n=this.config.draggable;if(!n&&(this.draggableSet||!r))return null;let i=typeof n=="object"?n:{};return {axis:r?"y":i.axis??"both",persist:i.persist??true,snap:!r&&(i.snapToEdge??true)}}render(){if(this.isOpen&&this.pointerDownAt!==null&&Date.now()-this.pointerDownAt<2e3){this.renderDeferred||setTimeout(()=>{this.renderDeferred&&this.render();},2e3),this.renderDeferred=true;return}this.renderDeferred=false,this.syncChrome(),this.renderPanel();}renderPanel(){let t=this.panel;if(t.className=`mushi-panel ${this.config.position}${this.isOpen?" open":" closed"}${this.lengthNudge&&this.step==="report"?" mushi-nudge":""}`,this.step==="report"&&this.chip&&qt.has(this.chip)?t.dataset.cat=this.chip:delete t.dataset.cat,t.style.zIndex=String(this.config.zIndex+1),this.applyInsetVars(t),!this.isOpen){if(this.renderedStep!==null){for(let p of gi)this.regionEls[p].innerHTML="";this.regionHtml={},this.renderedStep=null,this.teardownViewportHandlers();}return}let r=this.renderCtx();!Ei&&(Ua.has(this.step)||this.step==="success"&&(this.channels.email||this.channels.push))&&this.preloadViews().then(()=>{this.isOpen&&this.render();});let n=Na(r);this.nudgeShake=false;let i={notice:ja(r),header:n.header,lead:n.lead,meter:n.meter??"",body:n.body,footer:n.footer,brand:Wa(r)},o=this.renderedStep!==this.step,s=this.renderedStep===null,a=this.shadow.activeElement,u=a?ru(a):null;this.captureFormDrafts();let c=false;for(let p of gi)this.regionHtml[p]!==i[p]&&(this.regionHtml[p]=i[p],this.regionEls[p].innerHTML=i[p],c=true);this.renderedStep=this.step,c&&(Sa(t),this.restoreFormDrafts()),o?(this.scroller.scrollTop=0,s||(t.classList.remove("mushi-swap"),t.offsetWidth,t.classList.add("mushi-swap")),this.focusView()):this.focusDescriptionNext?t.querySelector('[data-role="description"]')?.focus({preventScroll:true}):a&&!a.isConnected&&u&&t.querySelector(u)?.focus(),this.focusDescriptionNext=false,s&&this.attachViewportHandlers(t),!this.brandImpressionSent&&this.config.brandFooter===true&&(this.brandImpressionSent=true,this.callbacks.onBrandFooterImpression?.());}focusView(){let r=(this.step==="report"&&!this.chip&&!(this.drafts.description??"").trim()?this.panel.querySelector('.mushi-tile[tabindex="0"]'):null)??this.panel.querySelector('[data-role="description"]')??this.panel.querySelector("#mushi-title");r&&(r.id==="mushi-title"&&(r.tabIndex=-1),r.focus({preventScroll:true}));}captureFormDrafts(){for(let n of bi){let i=this.panel.querySelector(`[data-role="${n}"]`);i&&(this.drafts[n]=i.value);}let t=this.shadow.activeElement,r=t?.dataset?.role;r&&bi.includes(r)?(this.drafts._focus=r,this.drafts._sel=`${t.selectionStart??0},${t.selectionEnd??0}`):delete this.drafts._focus;}restoreFormDrafts(){for(let t of bi){let r=this.panel.querySelector(`[data-role="${t}"]`),n=this.drafts[t];if(!(!r||!n||r.value===n)&&(r.value=n,this.drafts._focus===t&&this.shadow.activeElement!==r)){r.focus();let[i,o]=(this.drafts._sel??"").split(",").map(Number);try{r.setSelectionRange(i,o);}catch{}}}}computeAvoidTopPx(t=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=window.innerHeight/2,i=0;for(let o of r)try{let s=document.querySelector(o);if(!s)continue;let a=s.getBoundingClientRect();if((a.top+a.bottom)/2>=n)continue;a.bottom>i&&a.width>0&&a.height>0&&(i=a.bottom);}catch{}return i>0?Math.ceil(i)+t:null}computeAvoidBottomPx(t=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=window.innerHeight/2,i=0;for(let o of r)try{let s=document.querySelector(o);if(!s)continue;let a=s.getBoundingClientRect();if((a.top+a.bottom)/2<=n)continue;if(a.width>0&&a.height>0){let u=window.innerHeight-a.top+t;u>i&&(i=u);}}catch{}return i>0?Math.ceil(i):null}hostCssVar(t){if(!this.host.isConnected)return "";try{return getComputedStyle(this.host).getPropertyValue(t).trim()}catch{return ""}}applyInsetVars(t){let{anchor:r}=this.config;for(let o of ["top","right","bottom","left"])t.style.removeProperty(`--mushi-${o}`);if(r&&Object.keys(r).length>0)["top","right","bottom","left"].forEach(o=>{let s=r[o];s!==void 0&&t.style.setProperty(`--mushi-${o}`,s);});else {let{inset:o}=this.config;this.config.respectSafeArea||["top","right","bottom","left"].forEach(s=>{o[s]===void 0&&t.style.setProperty(`--mushi-${s}`,"24px");}),["top","right","bottom","left"].forEach(s=>{let a=o[s];a!==void 0&&t.style.setProperty(`--mushi-${s}`,a==="auto"?"auto":`${a}px`);});}t.style.setProperty("--mushi-safe-area",this.config.respectSafeArea?"1":"0");let n=r?.top!==void 0||this.config.position?.startsWith("top"),i=r?.bottom!==void 0||this.config.position?.startsWith("bottom")||!this.config.position;if(n){let o=this.computeAvoidTopPx();o!==null&&t.style.setProperty("--mushi-top",`${o}px`);}if(i){let o=this.computeAvoidBottomPx();if(o!==null)t.style.setProperty("--mushi-bottom",`${Math.max(o,this.barClearance)}px`);else if(this.barClearance>0){let s=t.style.getPropertyValue("--mushi-bottom").trim()||this.hostCssVar("--mushi-bottom")||`calc(${dt.gutter}px + env(safe-area-inset-bottom, 0px))`;s!=="auto"&&t.style.setProperty("--mushi-bottom",`max(${s}, ${this.barClearance}px)`);}}}fabStorageKey(t){let r=this.config.projectId??"";return `${t.classList.contains("edge-tab")?"mushi_tab_pos":"mushi_fab_pos"}${r?`_${r}`:""}`}moveFab(t,r,n,i){let o=this.dragOptions(t);if(!o)return;let{axis:s}=o,a=window.innerWidth,u=window.innerHeight,c=t.offsetWidth||52,p=t.offsetHeight||52,h=getComputedStyle(document.documentElement),m=j=>parseInt(h.getPropertyValue(`--sai-${j}`)||"0")||0,w=m("left"),x=m("right"),g=m("top"),y=m("bottom"),C=8,R=t.getBoundingClientRect(),v=R.left-(this.fabPos?.x??0),T=R.top-(this.fabPos?.y??0),A=w+C-v,E=a-x-C-c-v,f=g+C-T,b=u-Math.max(y+C,this.barClearance)-p-T,_=s==="x"?0:Math.max(f,Math.min(b,n)),B=s==="y"?0:Math.max(A,Math.min(E,r));if(i==="end"&&o.snap&&s!=="y"&&(B=R.left+c/2<a/2?w+C-v:a-x-C-c-v),this.fabPos={x:B,y:_},t.style.setProperty("--mushi-drag-x",`${B}px`),t.style.setProperty("--mushi-drag-y",`${_}px`),t.style.setProperty("--mushi-drag-active","1"),i==="end"&&o.persist)try{localStorage.setItem(this.fabStorageKey(t),JSON.stringify(this.fabPos));}catch{}}loadFabPos(t){let r=this.fabStorageKey(t);if(r!==this.fabPosKey&&(this.fabPosKey=r,this.fabPos=null,!!this.dragOptions(t)?.persist))try{let n=localStorage.getItem(r);if(n){let i=JSON.parse(n);typeof i?.x=="number"&&typeof i?.y=="number"&&(this.fabPos=i);}}catch{}}attachDragHandlers(t){this.loadFabPos(t);let r=0,n=0,i=0,o=0,s=false,a=false,u=6;t.addEventListener("pointerdown",p=>{if(p.button!==0&&p.pointerType!=="touch")return;t.setPointerCapture?.(p.pointerId),r=p.clientX,n=p.clientY;let h=this.fabPos??{x:0,y:0};i=h.x,o=h.y,s=true,a=false;}),t.addEventListener("pointermove",p=>{if(!s)return;let h=p.clientX-r,m=p.clientY-n;!a&&Math.hypot(h,m)>u&&(a=true,t.classList.remove("tucked"),t.classList.add("dragging")),a&&(p.preventDefault(),this.moveFab(t,i+h,o+m,"move"));});let c=p=>{if(s){if(s=false,t.classList.remove("dragging"),a){this.moveFab(t,i+p.clientX-r,o+p.clientY-n,"end");let h=m=>{m.stopImmediatePropagation(),t.removeEventListener("click",h,{capture:true});};t.addEventListener("click",h,{capture:true});}a=false;}};t.addEventListener("pointerup",c),t.addEventListener("pointercancel",c);}attachViewportHandlers(t){this.teardownViewportHandlers();let r=typeof window<"u"?window.visualViewport:null;if(!r)return;let n=()=>{let o=window.innerHeight-r.height-r.offsetTop;o>50?(t.style.setProperty("--mushi-keyboard-inset",`${Math.round(o)}px`),t.classList.add("keyboard-open")):(t.style.setProperty("--mushi-keyboard-inset","0px"),t.classList.remove("keyboard-open"));};r.addEventListener("resize",n,{passive:true}),r.addEventListener("scroll",n,{passive:true});let i=()=>requestAnimationFrame(n);t.addEventListener("focusin",i),this.vvCleanup=()=>{r.removeEventListener("resize",n),r.removeEventListener("scroll",n),t.removeEventListener("focusin",i);};}teardownViewportHandlers(){this.vvCleanup?.(),this.vvCleanup=null;}effectiveMinLength(){let t=this.config.minDescriptionLength??8;return /^(ja|zh|ko)$/.test(this.lang)?Math.max(4,Math.floor(t/2)):t}canSend(){return (this.drafts.description??"").trim().length>=this.effectiveMinLength()||this.elementSelected||this.screenshotAttached&&this.screenshotByUser}charsNeeded(){return this.canSend()?0:Math.max(1,this.effectiveMinLength()-(this.drafts.description??"").trim().length)}unreadCount(){return this.reporterReports.reduce((t,r)=>t+(r.unread_count??0),0)}renderCtx(){return {config:this.config,locale:this.locale,rc:this.rc,lang:this.lang,views:Ei,step:this.step,callbacks:this.callbacks,chip:this.chip,intent:this.intent,showAllCategories:this.showAllCategories,draftLength:(this.drafts.description??"").length,charsNeeded:this.charsNeeded(),minLength:this.effectiveMinLength(),lengthNudge:this.lengthNudge,nudgeShake:this.nudgeShake,betaOpen:this.betaOpen,launcherDismissible:this.config.dismissible&&this.triggerEl!==null,canSend:this.canSend(),submitting:this.submitting,screenshotCapturing:this.screenshotCapturing,screenshotAttached:this.screenshotAttached,screenshotPreview:this.screenshotPreview,previewOpen:this.previewOpen,screenshotReview:this.screenshotReview,screenshotHint:this.resolveScreenshotHint(),screenshotAvailable:this.screenshotAvailable,elementAvailable:this.elementAvailable,screenshotError:this.screenshotError,screenshotErrorReason:this.screenshotErrorReason,elementSelected:this.elementSelected,elementCapturing:this.elementCapturing,elementError:this.elementError,allowScreenshotRemove:this.allowScreenshotRemove,identifiedUser:this.identifiedUser,lastReportId:this.lastReportId,submittedAt:this.submittedAt,lastSubmitQueuedOffline:this.lastSubmitQueuedOffline,lastSubmitFailureKind:this.lastSubmitFailureKind,lastSubmitScreenshotDropped:this.lastSubmitScreenshotDropped,submitNotSent:this.submitNotSent,channels:this.channels,emailOptInOpen:this.emailOptInOpen,emailState:this.emailState,pushState:this.pushState,reporterReports:this.reporterReports,listLoading:this.listLoading,reporterError:this.reporterError,selectedReportId:this.selectedReportId,reporterComments:this.reporterComments,timeline:this.timeline,pendingReplies:this.pendingReplies,threadLoading:this.threadLoading,threadError:this.threadError,actionPending:this.actionPending,actionError:this.actionError,unreadCount:this.unreadCount(),showMoreNav:this.showMoreNav,pageFaviconHref:na(),sdkFreshness:this.sdkFreshness,brandRef:this.brandRef,rewardsState:this.rewardsState,testerReputation:this.testerReputation,testerInfo:this.testerInfo,testerJwt:this.testerJwt,magicLinkError:this.magicLinkError,magicLinkSending:this.magicLinkSending,magicLinkEmail:this.magicLinkEmail,magicLinkSent:this.magicLinkSent,globalLeaderboardLoading:this.globalLeaderboardLoading,globalLeaderboard:this.globalLeaderboard,leaderboardLoading:this.leaderboardLoading,leaderboardEntries:this.leaderboardEntries,crossAppLoading:this.crossAppLoading,crossAppReports:this.crossAppReports,featureBoard:this.featureBoard,assistantTurns:this.assistantTurns,assistantSending:this.assistantSending,assistantError:this.assistantError,tierColor:t=>ai[t]??ai.default,resolveCustomCategory:t=>this.resolveCustomCategory(t)}}bindPanelEvents(){let t=this.panel;t.addEventListener("pointerdown",()=>{this.pointerDownAt=Date.now();}),t.addEventListener("click",r=>{let n=r.target;if(n.closest('[data-role="annotate-host"]'))return;let i=n.closest("[data-action],[data-report-id],[data-vote-id]");if(!i||i.tagName==="FORM")return;if(i.dataset.voteId){this.voteFeatureBoard(i.dataset.voteId);return}let o=i.dataset.action;if(!o&&i.dataset.reportId){this.openThread(i.dataset.reportId);return}o==="chip"&&r.detail>0&&(this.focusDescriptionNext=true),o&&this.handleAction(o,i);}),t.addEventListener("input",r=>{let n=r.target,i=n.dataset?.role;if(!i)return;let o=i==="description"&&this.canSend();this.drafts[i]=n.value,n.tagName==="TEXTAREA"&&i!=="description"&&nu(n),i==="description"&&(!o&&this.canSend()&&(this.lengthNudge=false,this.announce(this.locale.panel.ready??"Ready to send")),this.render());}),t.addEventListener("submit",r=>{r.preventDefault();let n=t.querySelector(".mushi-assistant-input"),i=n?.value??"";n&&(n.value=""),this.sendAssistantMessage(i);}),t.addEventListener("keydown",r=>this.onKeydown(r));}onKeydown(t){let r=t.target;if(t.key==="Escape"){if(t.preventDefault(),this.showMoreNav){this.showMoreNav=false,this.render();return}if(this.betaOpen){this.betaOpen=false,this.render(),this.panel.querySelector('[data-action="toggle-beta"]')?.focus();return}if(this.step==="report-detail"){this.goBack();return}this.close();return}if(ma(t)||t.key==="Enter"&&!t.shiftKey&&r.classList.contains("mushi-assistant-input")){this.step==="report"?(t.preventDefault(),this.submitReport()):this.step==="report-detail"&&r.dataset.role==="reporter-reply"?(t.preventDefault(),this.submitReporterReply()):this.step==="assistant"&&(t.preventDefault(),this.panel.querySelector("form")?.requestSubmit());return}if(t.key==="Tab"){this.trapTab(t);return}if(r.getAttribute("role")==="radio"&&/^Arrow(Left|Right|Up|Down)$/.test(t.key)){let n=Array.from(r.closest('[role="radiogroup"]')?.querySelectorAll('[role="radio"]')??[]),i=n.indexOf(r),o=n[(i+(/Right|Down/.test(t.key)?1:-1)+n.length)%n.length];if(!o)return;t.preventDefault(),o.click(),this.panel.querySelector(ru(o)??"")?.focus();}}trapTab(t){let r=Array.from(this.panel.querySelectorAll(Yp)).filter(s=>!s.closest("[hidden]"));if(!r.length)return;let n=r[0],i=r[r.length-1],o=this.shadow.activeElement;t.shiftKey&&(o===n||!this.panel.contains(o))?(t.preventDefault(),i.focus()):!t.shiftKey&&o===i&&(t.preventDefault(),n.focus());}handleAction(t,r){let n=r.dataset.value??"";switch(t){case "close":this.close();return;case "back":this.goBack();return;case "brand-footer":this.callbacks.onBrandFooterClick?.();return;case "hide-launcher":this.dismissLauncherForSession();return;case "toggle-more-nav":this.showMoreNav=!this.showMoreNav,this.betaOpen=false,this.render();return;case "toggle-beta":this.betaOpen=!this.betaOpen,this.showMoreNav=false,this.render();return;case "show-all-categories":this.showAllCategories=true,this.render();return;case "chip":{let i=r.dataset.category??"";this.chip=this.chip===i?null:i,this.intent=null,this.render();return}case "intent":{let i=r.dataset.intent??null;this.intent=this.intent===i?null:i,this.render();return}case "screenshot":this.screenshotByUser=true,this.callbacks.onScreenshotRequest();return;case "screenshot-share-tab":this.screenshotByUser=true,this.callbacks.onScreenshotShareTabRequest?.();return;case "remove-screenshot":this.callbacks.onScreenshotRemove?.();return;case "toggle-preview":this.previewOpen=!this.previewOpen,this.render();return;case "annotate-screenshot":{let i=this.panel.querySelector('[data-role="annotate-host"]');this.screenshotByUser=true,i&&this.callbacks.onScreenshotAnnotateRequest&&this.callbacks.onScreenshotAnnotateRequest(i);return}case "element":this.callbacks.onElementSelectorRequest?.();return;case "submit":this.submitReport();return;case "done":this.close();return;case "track-report":this.lastReportId&&this.openTrackedReport(this.lastReportId);return;case "copy-report-id":Jp(r);return;case "reports":this.showMoreNav=false,this.loadReporterReports();return;case "retry-list":this.loadReporterReports();return;case "retry-thread":this.selectedReportId&&this.openThread(this.selectedReportId);return;case "reporter-reply":this.submitReporterReply();return;case "retry-reply":this.sendPendingReply(Number(n));return;case "reporter-confirms":this.submitReporterFeedback("confirms");return;case "reporter-not-fixed":this.submitReporterReopen();return;case "email-optin":this.emailOptInOpen=r.checked,this.render();return;case "save-email":this.saveEmailOptIn();return;case "notify-me":this.subscribePush();return;case "assistant":this.showMoreNav=false,this.openAssistantTab();return;case "assistant-suggest":this.sendAssistantMessage(n);return;case "assistant-report":this.step="report",this.render();return;case "roadmap":this.showMoreNav=false,this.loadFeatureBoard();return;case "open-leaderboard":this.showMoreNav=false,this.step="leaderboard",this.callbacks.onLeaderboardOpen?.(),this.callbacks.onGlobalLeaderboardOpen?.(),this.render();return;case "open-account":this.showMoreNav=false,this.step="account",this.render();return;case "open-cross-app-reports":this.step="cross-app-reports",this.crossAppReports=this.callbacks.onCrossAppReportsOpen?null:[],this.crossAppLoading=!!this.callbacks.onCrossAppReportsOpen,this.render(),this.callbacks.onCrossAppReportsOpen?.();return;case "open-global-leaderboard":this.step="leaderboard",this.globalLeaderboard=this.callbacks.onGlobalLeaderboardOpen?null:[],this.globalLeaderboardLoading=!!this.callbacks.onGlobalLeaderboardOpen,this.render(),this.callbacks.onGlobalLeaderboardOpen?.();return;case "send-magic-link":this.handleMagicLinkSend();return;case "resend-magic-link":this.magicLinkSent=false,this.magicLinkError="",this.render();return;case "sign-out-tester":this.testerJwt=null,this.testerInfo=null,this.testerReputation=null,this.crossAppReports=null,this.magicLinkSent=false,this.magicLinkEmail="",this.step="report",this.callbacks.onTesterSignOut?.(),this.render();return}}goBack(){let t={"report-detail":"reports","cross-app-reports":"account"};this.step=t[this.step]??"report",this.step==="reports"&&(this.selectedReportId=null),this.step==="report"&&(this.showAllCategories=!!(this.chip&&this.resolveCustomCategory(this.chip))),this.render();}async submitReport(){if(this.submitting)return;let t=this.panel.querySelector('[data-role="description"]');if(t&&(this.drafts.description=t.value),!this.canSend()){this.lengthNudge=true,this.nudgeShake=true,this.render(),this.announce(this.rc.ui.addWords),this.panel.querySelector('[data-role="description"]')?.focus();return}if(this.callbacks.onBeforeSubmit){this.submitting=true,this.render();let x=this.openCount,g=false;try{g=await this.callbacks.onBeforeSubmit();}catch{g=false;}if(x!==this.openCount||(this.submitting=false,!this.isOpen||this.step!=="report"))return;if(g&&this.screenshotAttached&&this.screenshotPreview){this.screenshotReview=true,this.previewOpen=true,this.render(),this.announce(this.locale.step3.screenshotReview);return}}this.screenshotReview=false;let r=(this.drafts.description??"").trim(),n=this.chip,i=n?this.resolveCustomCategory(n):void 0,o=(this.config.categories?.length??0)>0,s=n==="idea",a=s||!n?"other":i?i.baseCategory??"other":n,u=i?n:s?"feature":o&&n?n:void 0,c=s?pa:this.intent??void 0;this.submitting=true,this.submittedAt=new Date,this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.lastSubmitFailureKind=void 0,this.lastSubmitScreenshotDropped=false,this.submitNotSent=null;let p={...this.drafts};this.render();let h=(async()=>{try{let x=this.callbacks.onSubmit({category:a,...u?{userCategory:u}:{},description:r,...c?{intent:c}:{}});return x&&typeof x.then=="function"?await x??null:null}catch{return {reportId:null,queuedOffline:true}}})(),m;h.then(x=>{m=x;});let w=this.openCount;this.successTimer=setTimeout(()=>{if(this.successTimer=null,!(w!==this.openCount||!this.isOpen)){if(gr(m)){this.showNotSent(m.failureKind,p);return}this.submitting=false,this.step="success",this.drafts={},this.render(),this.announce(this.rc.ui.sent),h.then(x=>{if(!(this.step!=="success"||!x)){if(gr(x)){this.showNotSent(x.failureKind,p);return}this.lastReportId=x.reportId??null,this.lastSubmitQueuedOffline=!!x.queuedOffline,this.lastSubmitFailureKind=x.failureKind,this.lastSubmitScreenshotDropped=!!x.screenshotDropped,this.render();}});}},500);}showNotSent(t,r){this.submitting=false,this.step="report",this.drafts=r,this.submitNotSent=t,this.render();let n=this.locale.step3;this.announce(t==="throttled"?n.notSentThrottled:n.notSentBlocked);}async loadFeatureBoard(){this.step="roadmap",this.listLoading=true,this.reporterError=null,this.render();try{this.featureBoard=await this.callbacks.onFeatureBoardRequest?.()??[];}catch(t){this.reporterError=t instanceof Error?t.message:"Could not load community ideas.";}finally{this.listLoading=false,this.render();}}async voteFeatureBoard(t){if(!(!this.callbacks.onFeatureBoardVote||this.actionPending)){this.actionPending=true,this.render();try{await this.callbacks.onFeatureBoardVote(t),this.featureBoard=await this.callbacks.onFeatureBoardRequest?.()??this.featureBoard;}catch(r){this.reporterError=r instanceof Error?r.message:"Could not update vote.";}finally{this.actionPending=false,this.render();}}}async runThreadAction(t,r){let n=this.selectedReportId;if(!n||this.actionPending)return false;this.actionPending=true,this.actionError=null,this.render();try{return await r(n),await this.refreshReporterInboxQuiet(),await this.openThread(n,!0),!0}catch(i){return this.actionError=i instanceof Error?i.message:t,false}finally{this.actionPending=false,this.render();}}async submitReporterReopen(){await this.runThreadAction("Could not reopen report.",async t=>{this.callbacks.onReporterReopen?await this.callbacks.onReporterReopen(t,"Not fixed for me"):await this.callbacks.onReporterFeedback?.(t,"not_fixed","Not fixed for me");});}async submitReporterFeedback(t){await this.runThreadAction("Could not send feedback.",r=>Promise.resolve(this.callbacks.onReporterFeedback?.(r,t)));}async refreshReporterInboxQuiet(){try{let t=this.callbacks.onReporterReportsRequest?.();this.reporterReports=t?await Ht(t,Nt):[],this.isOpen&&this.render();}catch{}}async loadReporterReports(){this.ensureOpen(),this.step="reports",this.listLoading=true,this.reporterError=null,this.render();try{let t=this.callbacks.onReporterReportsRequest?.();this.reporterReports=t?await Ht(t,Nt):[];}catch{this.reporterError=this.rc.ui.loadError;}finally{this.listLoading=false,this.render();}}async openTrackedReport(t){await this.loadReporterReports(),this.isOpen&&this.step==="reports"&&await this.openThread(t);}async openThread(t,r=false){this.selectedReportId!==t&&(delete this.drafts["reporter-reply"],this.reporterComments=[],this.timeline=null,this.pendingReplies=[],this.actionError=null,r=false),this.selectedReportId=t,this.step="report-detail",this.threadError=null,r||(this.threadLoading=true,this.render(),this.markRead(t));try{let n=this.callbacks.onReporterReportRequest?.(t),i=n?await Ht(n,Nt):null;if(i)this.selectedReportId===t&&(this.timeline=i.timeline??null,i.report&&(this.reporterReports=this.reporterReports.map(o=>o.id===t?{...o,...i.report}:o)));else {let o=this.callbacks.onReporterCommentsRequest?.(t),s=o?await Ht(o,Nt):[];this.selectedReportId===t&&(this.reporterComments=s);}}catch{this.selectedReportId===t&&(this.threadError=this.rc.ui.loadError);}finally{this.threadLoading=false,this.render();}}markRead(t){let r=this.reporterReports.find(n=>n.id===t);r?.unread_count&&(r.unread_count=0,Promise.resolve(this.callbacks.onReporterMarkRead?.(t)).catch(()=>{}));}submitReporterReply(){let t=this.panel.querySelector('[data-role="reporter-reply"]'),r=(t?.value??"").trim();if(!r||!this.selectedReportId)return;let n=++this.replySeq;this.pendingReplies.push({id:n,body:r,state:"sending"}),delete this.drafts["reporter-reply"],t&&(t.value="",nu(t)),this.sendPendingReply(n);}async sendPendingReply(t){let r=this.pendingReplies.find(i=>i.id===t),n=this.selectedReportId;if(!(!r||!n)){r.state="sending",this.render(),this.announce(this.rc.ui.sending);try{await Ht(Promise.resolve(this.callbacks.onReporterReply?.(n,r.body)),Nt),await this.openThread(n,!0),this.pendingReplies=this.pendingReplies.filter(i=>i.id!==t),this.render(),this.announce(this.rc.ui.sent);}catch{r.state="failed",this.render(),this.announce(this.rc.ui.sendFailed);}}}async saveEmailOptIn(){let t=(this.panel.querySelector('[data-role="optin-email"]')?.value??"").trim();if(!Ta(t)||!this.callbacks.onReporterEmailOptIn){this.emailState="invalid",this.render();return}this.emailState="saving",this.render();try{await this.callbacks.onReporterEmailOptIn(t),this.emailState="saved";}catch{this.emailState="error";}this.render();}async subscribePush(){if(!this.callbacks.onReporterPushSubscribe||this.pushState==="asking")return;let t=this.callbacks.onReporterPushSubscribe();this.pushState="asking",this.render();try{await t,this.pushState="on";}catch{this.pushState="error";}this.render();}async showUpdatesToast(t){let r=(await tu()).pickUpdateToast(t,this.lang,this.rc.ui.toastReplied);return r?this.showUpdateToast(r):false}async preloadViews(){try{await tu();}catch{yi=null;}}showUpdatesFeedToast(t,r){if(!(t.unread_total>0))return false;let n=new Set(t.latest.map(a=>a.report_id)),i=n.size===1?[...n][0]:null,o=i?r.find(a=>a.id===i):void 0,s=o?.title??o?.summary??(i?t.latest[0]?.preview:void 0);return this.showUpdateToast({text:Ca(t,this.lang),reportId:i,...s?{detail:s}:{}})}showUpdateToast(t){if(this.isOpen||!this.triggerVisible||this.triggerHiddenByScroll||this.isMobileSmartHidden()||this.isRouteHidden()||this.isSuppressedByHost())return false;this.removeToast();let r=document.createElement("div");r.className=`mushi-toast ${this.config.trigger==="banner"?`banner-${this.config.bannerConfig?.position??"top"}`:this.config.position}`,r.setAttribute("role","status"),r.style.zIndex=String(this.config.zIndex+1);let n=document.createElement("span"),i=document.createElement("strong");if(i.textContent=t.text,n.append(i),t.detail){let a=document.createElement("small");a.textContent=t.detail,n.append(a);}let o=document.createElement("button");o.type="button",o.className="mushi-btn",o.textContent=this.rc.ui.view,o.addEventListener("click",()=>{this.removeToast();let a=t.reportId;a?this.loadReporterReports().then(()=>{this.isOpen&&this.step==="reports"&&this.openThread(a);}):this.openReporter();});let s=document.createElement("button");return s.type="button",s.className="mushi-icon-btn",s.textContent="\u2715",s.setAttribute("aria-label",this.locale.widget.close),s.addEventListener("click",()=>this.removeToast()),r.append(n,o,s),this.applyInsetVars(r),this.shadow.insertBefore(r,this.panel),this.toastEl=r,true}removeToast(){this.toastEl?.remove(),this.toastEl=null;}rememberOpener(){let t=document.activeElement;this.opener=t===this.host?this.shadow.activeElement:t;}restoreOpenerFocus(){let t=this.opener?.isConnected?this.opener:this.opener?.classList.contains("mushi-trigger")?this.triggerEl:null;this.opener=null,t&&t!==document.body&&t.focus({preventScroll:true});}announce(t){this.live.textContent="",setTimeout(()=>{this.live.textContent=t;},30);}async handleMagicLinkSend(){if(this.magicLinkSending)return;let t=(this.drafts["magic-link-email"]??this.magicLinkEmail).trim();if(!t||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)){this.magicLinkError="Please enter a valid email address.",this.render();return}this.magicLinkEmail=t,this.magicLinkError="",this.magicLinkSending=true,this.render();try{await this.callbacks.onMushiSignIn?.(t),this.magicLinkSent=!0;}catch(r){this.magicLinkError=r instanceof Error?r.message:"Could not send sign-in link. Try again.";}finally{this.magicLinkSending=false,this.render();}}openReporter(){this.loadReporterReports();}getRecorderStep(){return this.step}getRecorderCategoryStepIA(){return {sectionLabel:this.shadow.querySelector("#mushi-title")?.textContent?.trim()??"",moreToggle:!!this.shadow.querySelector('[data-action="toggle-more-nav"]'),footerStepIndicators:0}}getRecorderTrigger(){return this.triggerEl}getRecorderCategoryButton(t){return this.shadow.querySelector(`[data-category="${t}"]`)}getRecorderIntentButton(t){return Array.from(this.shadow.querySelectorAll("[data-intent]")).find(r=>r.dataset.intent===t)??null}getRecorderSubmitButton(){return this.shadow.querySelector('[data-action="submit"]')}recorderClickTrigger(){this.isOpen&&this.close(),this.open();}recorderSelectCategory(t){this.isOpen||this.open(),this.step="report",this.chip=t,this.intent=null,this.render();}recorderSelectIntent(t){!this.isOpen||this.step!=="report"||(this.intent=t,this.render());}recorderFocusDescription(){this.shadow.querySelector('[data-role="description"]')?.focus();}recorderSubmit(){this.submitReport();}recorderOpenMyReports(){this.loadReporterReports();}};function iu(e){return Array.from(e.trim()).length>2}function Xp(e){let{anchor:t,inset:r}=e;return !!(e.draggable||iu(e.triggerText??"")||t?.left!==void 0||t?.right!==void 0||r?.left!==void 0||r?.right!==void 0)}function ru(e){let t=e.dataset;return t.role?`[data-role="${t.role}"]`:t.category?`[data-category="${cn(t.category)}"]`:t.intent?`[data-intent="${cn(t.intent)}"]`:t.reportId?`[data-report-id="${cn(t.reportId)}"]`:t.action?`[data-action="${t.action}"]${t.value?`[data-value="${cn(t.value)}"]`:""}`:null}function cn(e){return e.replace(/["\\]/g,"\\$&")}function nu(e){e.style.height="auto",e.style.height=`${Math.min(e.scrollHeight,104)}px`;}function Jp(e){let t=e.dataset.copyId;if(!t)return;let r=e.textContent,n=()=>{e.textContent="Copied \u2713",window.setTimeout(()=>{e.isConnected&&(e.textContent=r);},1600);};try{navigator.clipboard?.writeText?navigator.clipboard.writeText(t).then(n,n):n();}catch{n();}}function vi(e,t){try{return globalThis[e]?.getItem(t)??null}catch{return null}}function wi(e,t,r){try{globalThis[e]?.setItem(t,r);}catch{}}function Si(e){wi("localStorage",`mushi_has_reports_${e}`,"1");}function xi(e){return vi("localStorage",`mushi_has_reports_${e}`)==="1"}function ou(e,t=Date.now()){if(vi("sessionStorage",`mushi_toast_${e}`))return false;let r=Number(vi("localStorage",`mushi_toast_at_${e}`)??0);return !(r&&t-r<864e5)}function su(e,t=Date.now()){wi("sessionStorage",`mushi_toast_${e}`,"1"),wi("localStorage",`mushi_toast_at_${e}`,String(t));}function au(e){let t=e.reporterRequest,r=n=>encodeURIComponent(n);return {getUpdates:(n,i)=>t("GET",`/v1/reporter/updates${i?`?since=${encodeURIComponent(i)}`:""}`,n),getReport:(n,i)=>t("GET",`/v1/reporter/reports/${r(n)}`,i),markReportRead:(n,i)=>t("POST",`/v1/reporter/reports/${r(n)}/read`,i,{}),markAllRead:n=>t("POST","/v1/reporter/notifications/read-all",n,{}),getPrefs:n=>t("GET","/v1/reporter/notification-prefs",n),setPrefs:(n,i)=>t("PUT","/v1/reporter/notification-prefs",n,i),subscribePush:(n,i)=>t("POST","/v1/reporter/push-subscriptions",n,i),unsubscribePush:(n,i)=>t("DELETE","/v1/reporter/push-subscriptions",n,{endpoint:i})}}async function uu(e,t,r,n){try{if(!r||typeof Notification>"u"||!navigator.serviceWorker)return {ok:!1,reason:"unsupported"};if(!n)return {ok:!1,reason:"not_available"};if(await Notification.requestPermission()!=="granted")return {ok:!1,reason:"denied"};let i=await navigator.serviceWorker.register(r),o=n.replace(/-/g,"+").replace(/_/g,"/"),s=atob(o+"=".repeat((4-o.length%4)%4)),a=await i.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Uint8Array.from(s,c=>c.charCodeAt(0))}),u=await e.subscribePush(t,a.toJSON());return u.ok?{ok:!0}:{ok:!1,reason:u.error?.code??"error"}}catch(i){return {ok:false,reason:i instanceof Error&&i.name||"error"}}}function Zp(e,t){let r={...e};if(t)for(let[n,i]of Object.entries(t))i!==void 0&&(r[n]=i);return r}function Qp(e,t){return e.widget?.[t]!==void 0}var eh=["manual","attach"],th=["variant","position","message","label","bugCta","featureCta"];function lu(e,t,r=e){let n=t.native?.triggerMode,i=t.widget?.launcher,o=e.widget?.trigger,s=r.widget?.trigger,a=i??t.widget?.trigger,u=s!==void 0&&eh.includes(s)&&a!=="hidden",p=u?void 0:(u||a==="auto"&&o&&o!=="auto"?void 0:a)??(n==="none"||n==="shake"?"manual":void 0),h=i==="hidden"||t.widget?.trigger==="hidden",m=p==="hidden"&&!h&&o&&o!=="hidden"?o:p,w=t.widget??{},x=r.widget?.bannerConfig??{},g={};for(let R of th){let v=w["banner"+R[0].toUpperCase()+R.slice(1)];(v!=null&&v!==""||R==="label"&&v==="")&&x[R]===void 0&&(g[R]=v===""?false:v);}let y=Object.keys(g).length?{...e.widget?.bannerConfig,...g}:void 0,C={};for(let[R,v]of Object.entries(w))R==="trigger"||R==="launcher"||R==="accentText"||v==null||Qp(r,R)||(C[R]=v);return C.accent!==void 0&&w.accentText!=null&&(C.accentText=w.accentText),{...e,widget:{...e.widget,...C,...m?{trigger:m}:{},...y?{bannerConfig:y}:{},...e.widget?.betaMode?{betaMode:e.widget.betaMode}:{}},capture:Zp(e.capture,t.capture),privacy:{...e.privacy}}}function pn(e){if(!e)return null;let t=e.getBoundingClientRect();return t.width===0&&t.height===0?null:{x:t.left+t.width/2,y:t.top+t.height/2}}function cu(e){if(typeof globalThis>"u")return;let t={ready:()=>e.getIsMounted(),getStep:()=>e.getRecorderStep(),getCategoryStepIA:()=>e.getRecorderCategoryStepIA(),getTriggerCenter:()=>pn(e.getRecorderTrigger()),getCategoryCenter:r=>pn(e.getRecorderCategoryButton(r)),getIntentCenter:r=>pn(e.getRecorderIntentButton(r)),getSubmitCenter:()=>pn(e.getRecorderSubmitButton()),clickTrigger:()=>e.recorderClickTrigger(),selectCategory:r=>e.recorderSelectCategory(r),selectIntent:r=>e.recorderSelectIntent(r),focusDescription:()=>e.recorderFocusDescription(),submit:()=>e.recorderSubmit(),openMyReports:()=>e.recorderOpenMyReports()};globalThis.__mushiRecorder=t;}var hn=null,fn=null,yr=null,vr=null,wr=null,Sr=false,Tt=new Set;function rh(){for(let e of Tt)try{e.onPush?.();}catch{}}function nh(){for(let e of Tt)try{e.onReplace?.();}catch{}}function ih(){for(let e of Tt)try{e.onPop?.();}catch{}}function oh(){if(Sr||typeof window>"u")return;let e=history.pushState,t=history.replaceState;hn=e,fn=t;let r=function(...o){let s=e.apply(history,o);return yr===r&&rh(),s},n=function(...o){let s=t.apply(history,o);return vr===n&&nh(),s};yr=r,vr=n,history.pushState=r,history.replaceState=n,wr=()=>ih(),window.addEventListener("popstate",wr),Sr=true;}function du(){!Sr||typeof window>"u"||(wr&&(window.removeEventListener("popstate",wr),wr=null),yr&&history.pushState===yr&&hn&&(history.pushState=hn),vr&&history.replaceState===vr&&fn&&(history.replaceState=fn),yr=null,vr=null,hn=null,fn=null,Sr=false);}function He(e){return oh(),Sr?(Tt.add(e),()=>{Tt.delete(e),Tt.size===0&&du();}):()=>{}}function pu(){Tt.clear(),du();}var sh=3e4,ah=3e5,uh=6e4,lh=60,mu="mushi_session_min_day_",Wt=[],Kt=null,Vt=null,Qe=null,gu=null,ki=null,zt=null,ht=false,kr=null,bu=0,Ti=null,ch=300*1e3,Ai=0,dh=900*1e3;function Ii(){return Date.now()<Ai}function Mi(e){e?.startsWith("HTTP_4")&&(Ai=Date.now()+dh);}var hu=new Set;function Ri(e){return `mushi_rewards_consent_${e}`}function ph(e){try{return localStorage.getItem(Ri(e))==="1"}catch{return false}}function _i(e,t){try{t?localStorage.setItem(Ri(e),"1"):localStorage.removeItem(Ri(e)),ht=t;}catch{}}function Eu(){return new Date().toISOString().slice(0,10)}function yu(e){try{let t=sessionStorage.getItem(`${mu}${e}_${Eu()}`);return t?parseInt(t,10):0}catch{return 0}}function hh(e){let t=Eu(),r=`${mu}${e}_${t}`;try{let n=yu(e)+1;return sessionStorage.setItem(r,String(n)),n}catch{return 99}}function vu(e){zt=e.client,Qe=e.userId,gu=e.traits??null,ki=e.reporterToken??null;let{projectId:t}=e,r=Math.max(sh,e.config.flushIntervalMs??ah);e.config.consentMode==="auto"?(ht=true,_i(t,true)):ht=ph(t),e.config.trackActivity&&mh(t),Kt&&clearInterval(Kt),Kt=setInterval(()=>fh(e),r),Vt&&clearInterval(Vt),Vt=setInterval(()=>{if(!ht||!Qe)return;let n=yu(t);n<lh&&(hh(t),Gt({action:"session_minute",metadata:{minutes_today:n+1}}));},uh),e.config.showInWidget&&Li(Qe).then(n=>{n&&ku(n,e.config);}),e.config.consentMode!=="auto"&&!ht&&Eh(t,e.config);}function Gt(e){!ht||!Qe||Wt.push({...e,queuedAt:Date.now()});}async function fh(e){if(!ht||!Qe||Wt.length===0)return;let t=null;if(e.config.verifyUserToken)try{t=await e.config.verifyUserToken();}catch{}if(Ii())return;let r=Wt.splice(0,100);try{let n=ki?await Ot(ki):void 0,i=await e.client.submitActivity(Qe,r,{userTraits:gu??void 0,reporterTokenHash:n,optedIn:!0,hostJwt:t??void 0});i.ok||(Mi(i.error?.code),i.error?.code?.startsWith("HTTP_4")||Wt.unshift(...r.slice(0,50)));}catch{Wt.unshift(...r.slice(0,50));}}async function wu(e){let t=Date.now();return kr&&Ti===e&&t-bu<ch?kr:Li(e)}async function Li(e){if(!zt||Ii())return null;let t=await zt.getMyTier(e);return t.ok&&t.data?(kr=t.data,bu=Date.now(),Ti=e,kr):(Mi(t.error?.code),null)}async function Su(e=10){if(!zt||Ii())return null;try{let t=await zt.getHallOfFame(e);return t.ok&&t.data?(t.data.data??[]).map(r=>({display_name:r.display_name,tier_name:r.tier_name,total_points:r.total_points,points_30d:r.points_30d})):(Mi(t.error?.code),null)}catch{return null}}function xu(){Kt&&(clearInterval(Kt),Kt=null),Vt&&(clearInterval(Vt),Vt=null),Ci(),bh(),xe&&(xe.remove(),xe=null),Wt=[],Qe=null,zt=null,ht=false,kr=null,Ti=null,Ai=0;}var gn=null,xr=null,bn=null,fu="",mn=false;function mh(e){if(!(mn&&bn)){mn&&Ci(),mn=true;try{gh(e);}catch(t){throw Ci(),t}}}function gh(e){let t=()=>{let n=location.pathname;if(n===fu)return;fu=n,!hu.has(`${e}:${n}`)&&(hu.add(`${e}:${n}`),Gt({action:"screen_view_unique_per_day",metadata:{route:n}}));};bn=He({onPush:t,onPop:t}),t(),gn=new MutationObserver(()=>t());let r=document.querySelector("main")??document.body;gn.observe(r,{childList:true,subtree:false}),xr=n=>{let i=n.target.closest("[data-testid]");if(!i)return;let o=i.dataset.testid;o&&Gt({action:"element_selected",metadata:{testid:o,route:location.pathname}});},document.addEventListener("click",xr,{capture:true,passive:true});}function Ci(){mn=false,bn?.(),bn=null,gn?.disconnect(),gn=null,xr&&(document.removeEventListener("click",xr,{capture:true}),xr=null);}var Ze=null;function ku(e,t){if(!t.showInWidget)return;Ze&&Ze.remove(),Ze=document.createElement("div"),Ze.id="mushi-tier-badge",Object.assign(Ze.style,{position:"fixed",bottom:"56px",right:"16px",zIndex:"2147483645",fontFamily:"system-ui, sans-serif"});let r=Ze.attachShadow({mode:"closed"});r.innerHTML=`
16
+ </span>`:`<span class="mushi-app-icon mushi-app-icon-initials-only" aria-hidden="true">${r}</span>`}function _a(e){e.querySelectorAll("[data-mushi-favicon]").forEach(t=>{let r=t.querySelector(".mushi-app-icon-img"),n=t.querySelector(".mushi-app-icon-initials");if(!r||!n)return;let i=[];try{i=JSON.parse(t.dataset.candidates??"[]");}catch{i=[];}let o=0,s=()=>{o+=1,o<i.length?r.src=i[o]:(r.remove(),n.hidden=false,t.classList.add("mushi-app-icon-initials-only"));};r.onerror=s,r.onload=()=>{oa(r)&&s();};});}var Qd={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}]},Ca=Qd.patterns,ep=Ca.map(e=>({key:e.configKey,regex:new RegExp(e.source,e.caseInsensitive?"gi":"g"),replacement:e.replacement})),tp=Ca.reduce((e,t)=>(e[t.configKey]=t.defaultOn!==false,e),{});function rp(e={}){let t={...tp,...e},r=ep.filter(o=>t[o.key]);function n(o){if(!o)return o;let s=o;for(let{regex:a,replacement:u}of r)s=s.replace(new RegExp(a.source,a.flags),u);return s}function i(o,s){let a={...o};for(let u of s)typeof a[u]=="string"&&(a[u]=n(a[u]));return a}return {scrub:n,scrubObject:i}}function np(e,t){return rp(t).scrub(e)}var ip=300,op=16e3,sp=6;function pi(e,t,r){if(typeof e=="string")return t(e);if(e===null||typeof e=="number"||typeof e=="boolean")return e;if(!(r>=sp)){if(Array.isArray(e))return e.map(n=>pi(n,t,r+1)).filter(n=>n!==void 0);if(typeof e=="object"){let n={};for(let[i,o]of Object.entries(e)){let s=pi(o,t,r+1);s!==void 0&&(n[i]=s);}return n}}}function ap(e,t){if(JSON.stringify(e).length<=t)return e;let r={diagnosticsTruncated:true};for(let[n,i]of Object.entries(e)){let o={...r,[n]:i};JSON.stringify(o).length>t||(r[n]=i);}return r}async function Ta(e,t={}){if(!e)return null;let r;try{let n=await Promise.race([Promise.resolve().then(e),new Promise(o=>{r=setTimeout(()=>o(null),t.timeoutMs??ip);})]);if(!n||typeof n!="object"||Array.isArray(n))return null;let i=pi(n,t.scrub??(o=>np(o)),0);return Object.keys(i).length>0?ap(i,t.maxChars??op):null}catch{return null}finally{r&&clearTimeout(r);}}un();var ln={widget:{trigger:"Report Issue",title:"Report an Issue",close:"Close",back:"Back",submit:"Submit",submitting:"Sending\u2026",submitted:"Thank you! Your report has been submitted.",error:"Could not send your report. Check your connection and try again.",hideLauncher:"Hide the bug button for this visit"},step1:{moreNav:{communityIdeas:"Community ideas",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"}},step2:{intents:{bug:["Crash","Wrong result","Unresponsive","Data loss","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:{descriptionPlaceholder:"What went wrong?",featurePlaceholder:"Describe your idea\u2026",submitHint:"{key} + Enter to send",screenshotButton:"Screenshot",screenshotAttached:"Screenshot attached",screenshotCapturing:"Taking screenshot\u2026",screenshotRetry:"Try again",screenshotShareTab:"Share this tab instead",notSentBlocked:"Not sent. This report was filtered out before sending. Your text is still here; add a little more detail and try again.",notSentThrottled:"Not sent. Too many reports in a short time. Your text is still here; wait a minute and try again.",screenshotReview:"Check the screenshot below, then press Send again.",screenshotErrors:{permission:"Screen capture was blocked. Allow it, then try again.",unsupported:"This browser can't capture the page. Describe it instead.",taint:"Content from another site blocked the capture. Describe it instead.",timeout:"Capture timed out.",csp:"This site's security policy blocks screenshots.",error:"Capture failed."},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:"Point at it",elementSelected:"Element selected",elementCapturing:"Click anything on the page\u2026",elementFailed:"Couldn't select \u2014 describe it instead",elementSelectorHint:"Click any element \xB7 Esc to cancel"},panel:{title:"Send feedback",more:"More\u2026",pointAt:"Point at it",remove:"Remove",markUp:"Mark up",privacy:"Shown only to the app\u2019s developer. Remove anything private.",privacyShort:"Only the developer sees this",typeQuestion:"What is it about?",prompts:{bug:"What did you do, and what happened?",slow:"What was slow, and how long did it take?",visual:"What looks wrong, and where?",confusing:"Where did you get stuck? What were you trying to do?",idea:"What would you like it to do?",other:"What happened?"},charsLeft:"{n} more characters",ready:"Ready to send",delivered:"Got it",send:"Send",yourReports:"Your reports",newCount:"{n} new",moreOptions:"More options",reportTitle:"Your report",notifyMe:"Notify me",notifyOn:"Notifications are on."},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",fileReportCta:"File a report instead",stillStuckCta:"Still stuck? File a report",aiNotice:"You're chatting with an AI, not a person. Answers can be wrong.",errors:{noResponse:"No response \u2014 check your connection and try again.",notSetUp:"The assistant isn't set up yet.",generic:"Could not reach the assistant. Try again in a moment."}},flows:{reports:{title:"Your reports",loading:"Loading reports\u2026",aiTitlesNote:"Titles are written by AI."},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:{loading:"Loading updates\u2026",replyPlaceholder:"Reply to the developer\u2026"},success:{done:"Done",trackReport:"Track it",receipt:"Receipt",delivering:"Delivering to the team\u2026",queuedOffline:"Queued offline",queuedHint:"We'll send it the moment you're back online.",rateLimited:"Sending too fast",rateLimitedHint:"Wait about a minute \u2014 we queued this report and will retry automatically.",quotaBlocked:"Could not accept this report",quotaBlockedHint:"This project's quota or plan blocked the send. Ask the app owner to check Billing.",permanentFailed:"Could not send this report",permanentFailedHint:"The payload was rejected (often too large). Try again with a shorter note or without a screenshot.",retrying:"Queued \u2014 retrying",retryingHint:"We could not reach the server just now. We'll keep trying in the background.",trackOnMushi:"Track on Mushi",slaDefault:"We'll let you know here when there's news.",screenshotDropped:"Sent without the screenshot \u2014 it was too large to attach."},featureRequest:{label:"Feature request"},betaStrip:{defaultMessage:"{appName} is in early development",contactHint:"Questions? {email}",teamSees:"The {appName} team will see this",teamSeesGeneric:"The team will see this",ariaLabel:"Beta status"},changelog:{whatsNew:"What's new in {version}"},poweredBy:"Bug reports by Mushi Mushi"}};var Da={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\u3002\u5831\u544A\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F\u3002",error:"\u5831\u544A\u3092\u9001\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u63A5\u7D9A\u3092\u78BA\u8A8D\u3057\u3066\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",hideLauncher:"\u4ECA\u56DE\u306E\u5229\u7528\u4E2D\u306F\u5831\u544A\u30DC\u30BF\u30F3\u3092\u8868\u793A\u3057\u306A\u3044"},step1:{moreNav:{communityIdeas:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306E\u30A2\u30A4\u30C7\u30A2",leaderboard:"\u30E9\u30F3\u30AD\u30F3\u30B0",joinCommunity:"\u30B3\u30DF\u30E5\u30CB\u30C6\u30A3\u306B\u53C2\u52A0 \xB7 \u8907\u6570\u30A2\u30D7\u30EA\u306E\u5831\u544A\u3092\u307E\u3068\u3081\u3066\u78BA\u8A8D",myAccount:"\u30DE\u30A4\u30A2\u30AB\u30A6\u30F3\u30C8"},categories:{bug:"\u4E0D\u5177\u5408",slow:"\u9045\u3044\u30FB\u91CD\u3044",visual:"\u8868\u793A\u306E\u554F\u984C",confusing:"\u308F\u304B\u308A\u306B\u304F\u3044",other:"\u305D\u306E\u4ED6"}},step2:{intents:{bug:["\u30A2\u30D7\u30EA\u304C\u843D\u3061\u308B","\u53CD\u5FDC\u3057\u306A\u3044","\u30C7\u30FC\u30BF\u304C\u6D88\u3048\u305F","\u7D50\u679C\u304C\u304A\u304B\u3057\u3044","\u305D\u306E\u4ED6"],slow:["\u30DA\u30FC\u30B8\u306E\u8AAD\u307F\u8FBC\u307F","\u64CD\u4F5C\u3078\u306E\u53CD\u5FDC","\u901A\u4FE1","\u30A2\u30CB\u30E1\u30FC\u30B7\u30E7\u30F3","\u305D\u306E\u4ED6"],visual:["\u30EC\u30A4\u30A2\u30A6\u30C8\u304C\u5D29\u308C\u3066\u3044\u308B","\u8868\u793A\u304C\u91CD\u306A\u3063\u3066\u3044\u308B","\u8868\u793A\u3055\u308C\u306A\u3044\u90E8\u5206\u304C\u3042\u308B","\u8272\u3084\u6587\u5B57\u304C\u9055\u3046","\u305D\u306E\u4ED6"],confusing:["\u8868\u793A\u306E\u610F\u5473\u304C\u5206\u304B\u308A\u306B\u304F\u3044","\u8AAC\u660E\u304C\u898B\u5F53\u305F\u3089\u306A\u3044","\u601D\u3063\u305F\u901A\u308A\u306B\u9032\u307E\u306A\u3044","\u3069\u3053\u306B\u3042\u308B\u304B\u5206\u304B\u3089\u306A\u3044","\u305D\u306E\u4ED6"],other:["\u6A5F\u80FD\u306E\u8981\u671B","\u30A2\u30AF\u30BB\u30B7\u30D3\u30EA\u30C6\u30A3","\u8AA4\u5B57\u30FB\u8131\u5B57","\u305D\u306E\u4ED6"]}},step3:{descriptionPlaceholder:"\u4F55\u304C\u8D77\u304D\u307E\u3057\u305F\u304B\uFF1F",featurePlaceholder:"\u30A2\u30A4\u30C7\u30A2\u3092\u6559\u3048\u3066\u304F\u3060\u3055\u3044\u2026",submitHint:"{key} + Enter \u3067\u9001\u4FE1",screenshotButton:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8",screenshotAttached:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u3092\u6DFB\u4ED8\u3057\u307E\u3057\u305F",screenshotCapturing:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u3092\u64AE\u5F71\u4E2D\u2026",screenshotRetry:"\u3084\u308A\u76F4\u3059",screenshotShareTab:"\u3053\u306E\u30BF\u30D6\u3092\u5171\u6709\u3057\u3066\u64AE\u5F71",notSentBlocked:"\u9001\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u9001\u4FE1\u524D\u306E\u78BA\u8A8D\u3067\u5BFE\u8C61\u5916\u3068\u5224\u65AD\u3055\u308C\u307E\u3057\u305F\u3002\u5165\u529B\u5185\u5BB9\u306F\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002\u3082\u3046\u5C11\u3057\u8A73\u3057\u304F\u66F8\u3044\u3066\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",notSentThrottled:"\u9001\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u77ED\u3044\u6642\u9593\u306B\u9001\u4FE1\u304C\u7D9A\u3044\u3066\u3044\u307E\u3059\u3002\u5165\u529B\u5185\u5BB9\u306F\u6B8B\u3063\u3066\u3044\u307E\u3059\u30021 \u5206\u307B\u3069\u5F85\u3063\u3066\u304B\u3089\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",screenshotReview:"\u4E0B\u306E\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u3092\u78BA\u8A8D\u3057\u3066\u304B\u3089\u3001\u3082\u3046\u4E00\u5EA6\u300C\u9001\u4FE1\u300D\u3092\u62BC\u3057\u3066\u304F\u3060\u3055\u3044\u3002",screenshotErrors:{permission:"\u753B\u9762\u306E\u53D6\u5F97\u304C\u8A31\u53EF\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u8A31\u53EF\u3057\u3066\u304B\u3089\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",unsupported:"\u3053\u306E\u30D6\u30E9\u30A6\u30B6\u3067\u306F\u753B\u9762\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002\u6587\u7AE0\u3067\u304A\u77E5\u3089\u305B\u304F\u3060\u3055\u3044\u3002",taint:"\u5916\u90E8\u30B5\u30A4\u30C8\u306E\u30B3\u30F3\u30C6\u30F3\u30C4\u304C\u542B\u307E\u308C\u308B\u305F\u3081\u3001\u753B\u9762\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002",timeout:"\u753B\u9762\u306E\u53D6\u5F97\u306B\u6642\u9593\u304C\u304B\u304B\u308A\u3059\u304E\u307E\u3057\u305F\u3002",csp:"\u3053\u306E\u30B5\u30A4\u30C8\u306E\u30BB\u30AD\u30E5\u30EA\u30C6\u30A3\u8A2D\u5B9A\u306B\u3088\u308A\u3001\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3002",error:"\u753B\u9762\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002"},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\u3066\u304F\u3060\u3055\u3044\u3002\u6B8B\u9AD8\u3084\u500B\u4EBA\u60C5\u5831\u306A\u3069\u304C\u5199\u3063\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u524A\u9664\u3057\u3066\u304B\u3089\u9001\u4FE1\u3057\u3066\u304F\u3060\u3055\u3044\u3002",elementButton:"\u5834\u6240\u3092\u6307\u5B9A",elementSelected:"\u5834\u6240\u3092\u6307\u5B9A\u3057\u307E\u3057\u305F",elementCapturing:"\u8A72\u5F53\u3059\u308B\u7B87\u6240\u3092\u30AF\u30EA\u30C3\u30AF\u3057\u3066\u304F\u3060\u3055\u3044\u2026",elementFailed:"\u9078\u629E\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u6587\u7AE0\u3067\u304A\u77E5\u3089\u305B\u304F\u3060\u3055\u3044\u3002",elementSelectorHint:"\u8A72\u5F53\u3059\u308B\u7B87\u6240\u3092\u30AF\u30EA\u30C3\u30AF \xB7 Esc \u3067\u30AD\u30E3\u30F3\u30BB\u30EB"},panel:{title:"\u30D5\u30A3\u30FC\u30C9\u30D0\u30C3\u30AF",more:"\u307B\u304B\u306E\u7A2E\u985E\u2026",pointAt:"\u5834\u6240\u3092\u6307\u5B9A",remove:"\u524A\u9664",markUp:"\u5370\u3092\u3064\u3051\u308B",privacy:"\u9001\u4FE1\u5185\u5BB9\u306F\u3001\u3053\u306E\u30A2\u30D7\u30EA\u306E\u958B\u767A\u8005\u3060\u3051\u304C\u78BA\u8A8D\u3057\u307E\u3059\u3002\u500B\u4EBA\u60C5\u5831\u306F\u542B\u3081\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002",privacyShort:"\u958B\u767A\u8005\u3060\u3051\u304C\u78BA\u8A8D\u3057\u307E\u3059",typeQuestion:"\u3069\u3093\u306A\u5185\u5BB9\u3067\u3059\u304B\uFF1F",prompts:{bug:"\u4F55\u3092\u3057\u305F\u3089\u3001\u3069\u3046\u306A\u308A\u307E\u3057\u305F\u304B\uFF1F",slow:"\u3069\u306E\u64CD\u4F5C\u304C\u3001\u3069\u306E\u304F\u3089\u3044\u9045\u3044\u3067\u3059\u304B\uFF1F",visual:"\u3069\u3053\u304C\u3001\u3069\u306E\u3088\u3046\u306B\u304A\u304B\u3057\u304F\u898B\u3048\u307E\u3059\u304B\uFF1F",confusing:"\u3069\u3053\u3067\u8FF7\u3044\u307E\u3057\u305F\u304B\uFF1F \u4F55\u3092\u3057\u3088\u3046\u3068\u3057\u3066\u3044\u307E\u3057\u305F\u304B\uFF1F",idea:"\u3069\u3093\u306A\u6A5F\u80FD\u304C\u3042\u308B\u3068\u5B09\u3057\u3044\u3067\u3059\u304B\uFF1F",other:"\u4F55\u304C\u8D77\u304D\u307E\u3057\u305F\u304B\uFF1F"},charsLeft:"\u3042\u3068 {n} \u6587\u5B57",ready:"\u9001\u4FE1\u3067\u304D\u307E\u3059",delivered:"\u5C4A\u304D\u307E\u3057\u305F",send:"\u9001\u4FE1",yourReports:"\u3042\u306A\u305F\u306E\u5831\u544A",newCount:"\u65B0\u7740 {n} \u4EF6",moreOptions:"\u305D\u306E\u4ED6\u306E\u30E1\u30CB\u30E5\u30FC",reportTitle:"\u3042\u306A\u305F\u306E\u5831\u544A",notifyMe:"\u901A\u77E5\u3092\u53D7\u3051\u53D6\u308B",notifyOn:"\u901A\u77E5\u3092\u30AA\u30F3\u306B\u3057\u307E\u3057\u305F\u3002"},assistant:{defaultLabel:"\u8CEA\u554F",defaultGreeting:"\u3053\u306E\u30DA\u30FC\u30B8\u306B\u3064\u3044\u3066\u8CEA\u554F\u3067\u304D\u307E\u3059\u3002\u56DE\u7B54\u306B\u306F\u3001\u3044\u307E\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\u8CEA\u554F\u3059\u308B",thinking:"\u8003\u3048\u4E2D\u2026",fileReportCta:"\u4E0D\u5177\u5408\u3068\u3057\u3066\u5831\u544A\u3059\u308B",stillStuckCta:"\u89E3\u6C7A\u3057\u306A\u3044\u5834\u5408\u306F\u5831\u544A\u3059\u308B",aiNotice:"AI \u3068\u4F1A\u8A71\u3057\u3066\u3044\u307E\u3059\uFF08\u4EBA\u3067\u306F\u3042\u308A\u307E\u305B\u3093\uFF09\u3002\u56DE\u7B54\u304C\u9593\u9055\u3063\u3066\u3044\u308B\u3053\u3068\u304C\u3042\u308A\u307E\u3059\u3002",errors:{noResponse:"\u5FDC\u7B54\u304C\u3042\u308A\u307E\u305B\u3093\u3002\u63A5\u7D9A\u3092\u78BA\u8A8D\u3057\u3066\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",notSetUp:"\u30A2\u30B7\u30B9\u30BF\u30F3\u30C8\u306F\u307E\u3060\u8A2D\u5B9A\u3055\u308C\u3066\u3044\u307E\u305B\u3093\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\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002"}},flows:{reports:{title:"\u3042\u306A\u305F\u306E\u5831\u544A",loading:"\u5831\u544A\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",aiTitlesNote:"\u30BF\u30A4\u30C8\u30EB\u306F AI \u304C\u66F8\u3044\u3066\u3044\u307E\u3059\u3002"},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\u304A\u5F85\u3061\u3057\u3066\u3044\u307E\u3059\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:"\u5168\u4F53\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\u3002\u6700\u521D\u306E\u4E00\u4EBA\u306B\u306A\u308A\u307E\u305B\u3093\u304B\u3002",signInPrompt:"\u30B5\u30A4\u30F3\u30A4\u30F3\u3057\u3066\u9806\u4F4D\u3092\u78BA\u8A8D \u2192",myRank:"\u4ECA\u6708\u306E\u9806\u4F4D\uFF1A{rank} \u4F4D",footer:"\u4ECA\u6708\u306E\u5168\u4F53\u30E9\u30F3\u30AD\u30F3\u30B0 \xB7 \u30DD\u30A4\u30F3\u30C8\u306F\u6BCE\u6708\u30EA\u30BB\u30C3\u30C8\u3055\u308C\u307E\u3059",anon:"\u533F\u540D"},account:{title:"Mushi Mushi \u30A2\u30AB\u30A6\u30F3\u30C8",checkEmailTitle:"\u30E1\u30FC\u30EB\u3092\u3054\u78BA\u8A8D\u304F\u3060\u3055\u3044",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\u3001\u3059\u3079\u3066\u306E\u30A2\u30D7\u30EA\u306E\u5831\u544A\u3068\u30E9\u30F3\u30AD\u30F3\u30B0\u3092\u78BA\u8A8D\u3067\u304D\u307E\u3059\u3002\u30D1\u30B9\u30EF\u30FC\u30C9\u306F\u4E0D\u8981\u3067\u3059\u3002",magicLinkSent:"{email} \u306B\u30B5\u30A4\u30F3\u30A4\u30F3\u7528\u306E\u30EA\u30F3\u30AF\u3092\u9001\u308A\u307E\u3057\u305F\u3002\u30EA\u30F3\u30AF\u3092\u958B\u304F\u3068\u3001\u3053\u308C\u307E\u3067\u306E\u5831\u544A\u304C\u30A2\u30AB\u30A6\u30F3\u30C8\u306B\u7D10\u3065\u304D\u307E\u3059\u3002",resendEmail:"\u30E1\u30FC\u30EB\u3092\u518D\u9001",sendLink:"\u30B5\u30A4\u30F3\u30A4\u30F3\u7528\u306E\u30EA\u30F3\u30AF\u3092\u9001\u308B",sending:"\u9001\u4FE1\u4E2D\u2026",crossAppReports:"\u3059\u3079\u3066\u306E\u30A2\u30D7\u30EA\u306E\u5831\u544A \u2192",viewLeaderboard:"\u5168\u4F53\u30E9\u30F3\u30AD\u30F3\u30B0 \u2192",signOut:"\u30B5\u30A4\u30F3\u30A2\u30A6\u30C8",rankSummary:"{rank} \u4F4D \xB7 \u4ECA\u6708 {points} \u30DD\u30A4\u30F3\u30C8"},crossApp:{title:"\u3042\u306A\u305F\u306E\u5831\u544A",loading:"\u5831\u544A\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",empty:"\u307E\u3060\u5831\u544A\u304C\u3042\u308A\u307E\u305B\u3093\u3002",unknownApp:"\u4E0D\u660E\u306A\u30A2\u30D7\u30EA"},thread:{loading:"\u6700\u65B0\u306E\u72B6\u6CC1\u3092\u8AAD\u307F\u8FBC\u307F\u4E2D\u2026",replyPlaceholder:"\u958B\u767A\u8005\u306B\u8FD4\u4FE1\u3059\u308B\u2026"},success:{done:"\u9589\u3058\u308B",trackReport:"\u72B6\u6CC1\u3092\u78BA\u8A8D",receipt:"\u53D7\u4ED8\u756A\u53F7",delivering:"\u958B\u767A\u30C1\u30FC\u30E0\u306B\u9001\u4FE1\u4E2D\u2026",queuedOffline:"\u30AA\u30D5\u30E9\u30A4\u30F3\u306E\u305F\u3081\u9001\u4FE1\u5F85\u3061",queuedHint:"\u30AA\u30F3\u30E9\u30A4\u30F3\u306B\u623B\u308B\u3068\u3001\u81EA\u52D5\u7684\u306B\u9001\u4FE1\u3057\u307E\u3059\u3002",rateLimited:"\u9001\u4FE1\u306E\u9593\u9694\u304C\u77ED\u3059\u304E\u307E\u3059",rateLimitedHint:"1 \u5206\u307B\u3069\u304A\u5F85\u3061\u304F\u3060\u3055\u3044\u3002\u5831\u544A\u306F\u4FDD\u5B58\u6E08\u307F\u3067\u3001\u81EA\u52D5\u7684\u306B\u518D\u9001\u3055\u308C\u307E\u3059\u3002",quotaBlocked:"\u3053\u306E\u5831\u544A\u306F\u53D7\u3051\u4ED8\u3051\u3089\u308C\u307E\u305B\u3093\u3067\u3057\u305F",quotaBlockedHint:"\u3053\u306E\u30A2\u30D7\u30EA\u306E\u53D7\u4ED8\u4E0A\u9650\u306B\u9054\u3057\u3066\u3044\u307E\u3059\u3002\u304A\u624B\u6570\u3067\u3059\u304C\u3001\u30A2\u30D7\u30EA\u306E\u904B\u55B6\u8005\u306B\u76F4\u63A5\u3054\u9023\u7D61\u304F\u3060\u3055\u3044\u3002",permanentFailed:"\u5831\u544A\u3092\u9001\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F",permanentFailedHint:"\u9001\u4FE1\u5185\u5BB9\u3092\u53D7\u3051\u4ED8\u3051\u3089\u308C\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30B5\u30A4\u30BA\u8D85\u904E\u306A\u3069\uFF09\u3002\u6587\u7AE0\u3092\u77ED\u304F\u3059\u308B\u304B\u3001\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u3092\u5916\u3057\u3066\u3001\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002",retrying:"\u9001\u4FE1\u5F85\u3061\uFF08\u518D\u8A66\u884C\u4E2D\uFF09",retryingHint:"\u30B5\u30FC\u30D0\u30FC\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u81EA\u52D5\u7684\u306B\u518D\u9001\u3057\u307E\u3059\u3002",trackOnMushi:"Mushi Mushi \u3067\u78BA\u8A8D",slaDefault:"\u9032\u5C55\u304C\u3042\u308C\u3070\u3001\u3053\u3053\u3067\u304A\u77E5\u3089\u305B\u3057\u307E\u3059\u3002",screenshotDropped:"\u30B9\u30AF\u30EA\u30FC\u30F3\u30B7\u30E7\u30C3\u30C8\u306F\u30B5\u30A4\u30BA\u304C\u5927\u304D\u3059\u304E\u308B\u305F\u3081\u6DFB\u4ED8\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u5831\u544A\u306E\u6587\u7AE0\u306E\u307F\u9001\u4FE1\u3057\u307E\u3057\u305F\u3002"},featureRequest:{label:"\u6A5F\u80FD\u306E\u8981\u671B"},betaStrip:{defaultMessage:"{appName} \u306F\u958B\u767A\u521D\u671F\u306E\u6BB5\u968E\u3067\u3059",contactHint:"\u3054\u8CEA\u554F\u306F {email} \u307E\u3067\u304A\u5BC4\u305B\u304F\u3060\u3055\u3044",teamSees:"{appName} \u306E\u30C1\u30FC\u30E0\u304C\u78BA\u8A8D\u3057\u307E\u3059",teamSeesGeneric:"\u30C1\u30FC\u30E0\u304C\u78BA\u8A8D\u3057\u307E\u3059",ariaLabel:"\u30D9\u30FC\u30BF\u7248\u306E\u304A\u77E5\u3089\u305B"},changelog:{whatsNew:"{version} \u306E\u65B0\u6A5F\u80FD"},poweredBy:"\u30D0\u30B0\u5831\u544A\u306F Mushi Mushi \u3067"}};var Pa={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",hideLauncher:"\u0E0B\u0E48\u0E2D\u0E19\u0E1B\u0E38\u0E48\u0E21\u0E41\u0E08\u0E49\u0E07\u0E1A\u0E31\u0E4A\u0E01\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E01\u0E32\u0E23\u0E40\u0E02\u0E49\u0E32\u0E0A\u0E21\u0E04\u0E23\u0E31\u0E49\u0E07\u0E19\u0E35\u0E49"},step1:{moreNav:{communityIdeas:"\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E08\u0E32\u0E01\u0E0A\u0E38\u0E21\u0E0A\u0E19",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"}},step2:{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:{descriptionPlaceholder:"\u0E40\u0E01\u0E34\u0E14\u0E2D\u0E30\u0E44\u0E23\u0E02\u0E36\u0E49\u0E19?",featurePlaceholder:"\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E44\u0E2D\u0E40\u0E14\u0E35\u0E22\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u2026",submitHint:"{key} + Enter \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E2A\u0E48\u0E07",screenshotButton:"\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D",screenshotAttached:"\u0E41\u0E19\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E41\u0E25\u0E49\u0E27",screenshotCapturing:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E16\u0E48\u0E32\u0E22\u0E2A\u0E01\u0E23\u0E35\u0E19\u0E0A\u0E47\u0E2D\u0E15\u2026",screenshotRetry:"\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",screenshotShareTab:"\u0E41\u0E0A\u0E23\u0E4C\u0E41\u0E17\u0E47\u0E1A\u0E19\u0E35\u0E49\u0E41\u0E17\u0E19",notSentBlocked:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E2A\u0E48\u0E07 \u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E16\u0E39\u0E01\u0E01\u0E23\u0E2D\u0E07\u0E2D\u0E2D\u0E01\u0E01\u0E48\u0E2D\u0E19\u0E2A\u0E48\u0E07 \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E22\u0E31\u0E07\u0E2D\u0E22\u0E39\u0E48 \u0E40\u0E1E\u0E34\u0E48\u0E21\u0E23\u0E32\u0E22\u0E25\u0E30\u0E40\u0E2D\u0E35\u0E22\u0E14\u0E2D\u0E35\u0E01\u0E40\u0E25\u0E47\u0E01\u0E19\u0E49\u0E2D\u0E22\u0E41\u0E25\u0E49\u0E27\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",notSentThrottled:"\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E2A\u0E48\u0E07 \u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E21\u0E32\u0E01\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B\u0E43\u0E19\u0E40\u0E27\u0E25\u0E32\u0E2A\u0E31\u0E49\u0E19\u0E46 \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E22\u0E31\u0E07\u0E2D\u0E22\u0E39\u0E48 \u0E23\u0E2D\u0E2A\u0E31\u0E01\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E19\u0E32\u0E17\u0E35\u0E41\u0E25\u0E49\u0E27\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",screenshotReview:"\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D\u0E14\u0E49\u0E32\u0E19\u0E25\u0E48\u0E32\u0E07 \u0E41\u0E25\u0E49\u0E27\u0E01\u0E14 \u0E2A\u0E48\u0E07 \u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",screenshotErrors:{permission:"\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E16\u0E39\u0E01\u0E1A\u0E25\u0E47\u0E2D\u0E01 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E19\u0E38\u0E0D\u0E32\u0E15\u0E41\u0E25\u0E49\u0E27\u0E25\u0E2D\u0E07\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",unsupported:"\u0E40\u0E1A\u0E23\u0E32\u0E27\u0E4C\u0E40\u0E0B\u0E2D\u0E23\u0E4C\u0E19\u0E35\u0E49\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",taint:"\u0E40\u0E19\u0E37\u0E49\u0E2D\u0E2B\u0E32\u0E08\u0E32\u0E01\u0E40\u0E27\u0E47\u0E1A\u0E2D\u0E37\u0E48\u0E19\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E \u0E42\u0E1B\u0E23\u0E14\u0E2D\u0E18\u0E34\u0E1A\u0E32\u0E22\u0E41\u0E17\u0E19",timeout:"\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E21\u0E14\u0E40\u0E27\u0E25\u0E32",csp:"\u0E19\u0E42\u0E22\u0E1A\u0E32\u0E22\u0E04\u0E27\u0E32\u0E21\u0E1B\u0E25\u0E2D\u0E14\u0E20\u0E31\u0E22\u0E02\u0E2D\u0E07\u0E40\u0E27\u0E47\u0E1A\u0E19\u0E35\u0E49\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E01\u0E32\u0E23\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E",error:"\u0E08\u0E31\u0E1A\u0E20\u0E32\u0E1E\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08"},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:"\u0E0A\u0E35\u0E49\u0E08\u0E38\u0E14\u0E17\u0E35\u0E48\u0E21\u0E35\u0E1B\u0E31\u0E0D\u0E2B\u0E32",elementSelected:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2D\u0E07\u0E04\u0E4C\u0E1B\u0E23\u0E30\u0E01\u0E2D\u0E1A\u0E41\u0E25\u0E49\u0E27",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"},panel:{title:"\u0E2A\u0E48\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E34\u0E14\u0E40\u0E2B\u0E47\u0E19",more:"\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21\u2026",pointAt:"\u0E0A\u0E35\u0E49\u0E08\u0E38\u0E14\u0E17\u0E35\u0E48\u0E21\u0E35\u0E1B\u0E31\u0E0D\u0E2B\u0E32",remove:"\u0E25\u0E1A",markUp:"\u0E17\u0E33\u0E40\u0E04\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E2B\u0E21\u0E32\u0E22",privacy:"\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E41\u0E2D\u0E1B\u0E40\u0E17\u0E48\u0E32\u0E19\u0E31\u0E49\u0E19\u0E17\u0E35\u0E48\u0E40\u0E2B\u0E47\u0E19 \u0E42\u0E1B\u0E23\u0E14\u0E25\u0E1A\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E48\u0E27\u0E19\u0E15\u0E31\u0E27\u0E2D\u0E2D\u0E01",privacyShort:"\u0E40\u0E09\u0E1E\u0E32\u0E30\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E40\u0E17\u0E48\u0E32\u0E19\u0E31\u0E49\u0E19\u0E17\u0E35\u0E48\u0E40\u0E2B\u0E47\u0E19",typeQuestion:"\u0E40\u0E23\u0E37\u0E48\u0E2D\u0E07\u0E2D\u0E30\u0E44\u0E23",prompts:{bug:"\u0E04\u0E38\u0E13\u0E17\u0E33\u0E2D\u0E30\u0E44\u0E23 \u0E41\u0E25\u0E49\u0E27\u0E40\u0E01\u0E34\u0E14\u0E2D\u0E30\u0E44\u0E23\u0E02\u0E36\u0E49\u0E19",slow:"\u0E2D\u0E30\u0E44\u0E23\u0E0A\u0E49\u0E32 \u0E41\u0E25\u0E30\u0E0A\u0E49\u0E32\u0E19\u0E32\u0E19\u0E41\u0E04\u0E48\u0E44\u0E2B\u0E19",visual:"\u0E2A\u0E48\u0E27\u0E19\u0E44\u0E2B\u0E19\u0E41\u0E2A\u0E14\u0E07\u0E1C\u0E25\u0E1C\u0E34\u0E14 \u0E41\u0E25\u0E30\u0E1C\u0E34\u0E14\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E44\u0E23",confusing:"\u0E04\u0E38\u0E13\u0E15\u0E34\u0E14\u0E15\u0E23\u0E07\u0E44\u0E2B\u0E19 \u0E01\u0E33\u0E25\u0E31\u0E07\u0E08\u0E30\u0E17\u0E33\u0E2D\u0E30\u0E44\u0E23\u0E2D\u0E22\u0E39\u0E48",idea:"\u0E2D\u0E22\u0E32\u0E01\u0E43\u0E2B\u0E49\u0E21\u0E35\u0E2D\u0E30\u0E44\u0E23\u0E40\u0E1E\u0E34\u0E48\u0E21",other:"\u0E40\u0E01\u0E34\u0E14\u0E2D\u0E30\u0E44\u0E23\u0E02\u0E36\u0E49\u0E19"},charsLeft:"\u0E2D\u0E35\u0E01 {n} \u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",ready:"\u0E1E\u0E23\u0E49\u0E2D\u0E21\u0E2A\u0E48\u0E07",delivered:"\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A\u0E41\u0E25\u0E49\u0E27",send:"\u0E2A\u0E48\u0E07",yourReports:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",newCount:"\u0E43\u0E2B\u0E21\u0E48 {n}",moreOptions:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",reportTitle:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13",notifyMe:"\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19\u0E09\u0E31\u0E19",notifyOn:"\u0E40\u0E1B\u0E34\u0E14\u0E01\u0E32\u0E23\u0E41\u0E08\u0E49\u0E07\u0E40\u0E15\u0E37\u0E2D\u0E19\u0E41\u0E25\u0E49\u0E27"},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",fileReportCta:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E41\u0E17\u0E19",stillStuckCta:"\u0E22\u0E31\u0E07\u0E41\u0E01\u0E49\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49? \u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19",aiNotice:"\u0E04\u0E38\u0E13\u0E01\u0E33\u0E25\u0E31\u0E07\u0E04\u0E38\u0E22\u0E01\u0E31\u0E1A AI \u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48\u0E04\u0E19 \u0E04\u0E33\u0E15\u0E2D\u0E1A\u0E2D\u0E32\u0E08\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E44\u0E14\u0E49",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",notSetUp:"\u0E1C\u0E39\u0E49\u0E0A\u0E48\u0E27\u0E22\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E15\u0E31\u0E49\u0E07\u0E04\u0E48\u0E32",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:{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",aiTitlesNote:"\u0E0A\u0E37\u0E48\u0E2D\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E40\u0E02\u0E35\u0E22\u0E19\u0E42\u0E14\u0E22 AI"},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:{loading:"\u0E01\u0E33\u0E25\u0E31\u0E07\u0E42\u0E2B\u0E25\u0E14\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u2026",replyPlaceholder:"\u0E15\u0E2D\u0E1A\u0E19\u0E31\u0E01\u0E1E\u0E31\u0E12\u0E19\u0E32\u2026"},success:{done:"\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19",trackReport:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21",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",rateLimited:"\u0E2A\u0E48\u0E07\u0E16\u0E35\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B",rateLimitedHint:"\u0E23\u0E2D\u0E1B\u0E23\u0E30\u0E21\u0E32\u0E13\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E19\u0E32\u0E17\u0E35 \u2014 \u0E40\u0E23\u0E32\u0E08\u0E31\u0E14\u0E04\u0E34\u0E27\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E27\u0E49\u0E41\u0E25\u0E30\u0E08\u0E30\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E2B\u0E49\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34",quotaBlocked:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E23\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E14\u0E49",quotaBlockedHint:"\u0E42\u0E04\u0E27\u0E15\u0E49\u0E32\u0E2B\u0E23\u0E37\u0E2D\u0E41\u0E1E\u0E25\u0E19\u0E02\u0E2D\u0E07\u0E42\u0E1B\u0E23\u0E40\u0E08\u0E01\u0E15\u0E4C\u0E1A\u0E25\u0E47\u0E2D\u0E01\u0E01\u0E32\u0E23\u0E2A\u0E48\u0E07 \u0E02\u0E2D\u0E43\u0E2B\u0E49\u0E40\u0E08\u0E49\u0E32\u0E02\u0E2D\u0E07\u0E41\u0E2D\u0E1B\u0E15\u0E23\u0E27\u0E08 Billing",permanentFailed:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49",permanentFailedHint:"\u0E40\u0E1E\u0E22\u0E4C\u0E42\u0E2B\u0E25\u0E14\u0E16\u0E39\u0E01\u0E1B\u0E0F\u0E34\u0E40\u0E2A\u0E18 (\u0E21\u0E31\u0E01\u0E40\u0E1E\u0E23\u0E32\u0E30\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E44\u0E1B) \u0E25\u0E2D\u0E07\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E2A\u0E31\u0E49\u0E19\u0E25\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E44\u0E21\u0E48\u0E41\u0E19\u0E1A\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D",retrying:"\u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E04\u0E34\u0E27 \u2014 \u0E01\u0E33\u0E25\u0E31\u0E07\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48",retryingHint:"\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E40\u0E0B\u0E34\u0E23\u0E4C\u0E1F\u0E40\u0E27\u0E2D\u0E23\u0E4C\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49 \u0E40\u0E23\u0E32\u0E08\u0E30\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19\u0E1E\u0E37\u0E49\u0E19\u0E2B\u0E25\u0E31\u0E07",trackOnMushi:"\u0E15\u0E34\u0E14\u0E15\u0E32\u0E21\u0E1A\u0E19 Mushi",slaDefault:"\u0E40\u0E23\u0E32\u0E08\u0E30\u0E41\u0E08\u0E49\u0E07\u0E04\u0E27\u0E32\u0E21\u0E04\u0E37\u0E1A\u0E2B\u0E19\u0E49\u0E32\u0E17\u0E35\u0E48\u0E19\u0E35\u0E48",screenshotDropped:"\u0E2A\u0E48\u0E07\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E42\u0E14\u0E22\u0E44\u0E21\u0E48\u0E21\u0E35\u0E20\u0E32\u0E1E\u0E2B\u0E19\u0E49\u0E32\u0E08\u0E2D \u2014 \u0E44\u0E1F\u0E25\u0E4C\u0E43\u0E2B\u0E0D\u0E48\u0E40\u0E01\u0E34\u0E19\u0E01\u0E27\u0E48\u0E32\u0E08\u0E30\u0E41\u0E19\u0E1A\u0E44\u0E14\u0E49"},featureRequest:{label:"\u0E02\u0E2D\u0E1F\u0E35\u0E40\u0E08\u0E2D\u0E23\u0E4C"},betaStrip:{defaultMessage:"{appName} \u0E2D\u0E22\u0E39\u0E48\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E01\u0E32\u0E23\u0E1E\u0E31\u0E12\u0E19\u0E32\u0E0A\u0E48\u0E27\u0E07\u0E15\u0E49\u0E19",contactHint:"\u0E21\u0E35\u0E04\u0E33\u0E16\u0E32\u0E21? {email}",teamSees:"\u0E17\u0E35\u0E21 {appName} \u0E08\u0E30\u0E40\u0E2B\u0E47\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49",teamSeesGeneric:"\u0E17\u0E35\u0E21\u0E07\u0E32\u0E19\u0E08\u0E30\u0E40\u0E2B\u0E47\u0E19\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E19\u0E35\u0E49",ariaLabel:"\u0E2A\u0E16\u0E32\u0E19\u0E30\u0E40\u0E1A\u0E15\u0E49\u0E32"},changelog:{whatsNew:"\u0E21\u0E35\u0E2D\u0E30\u0E44\u0E23\u0E43\u0E2B\u0E21\u0E48\u0E43\u0E19 {version}"},poweredBy:"\u0E23\u0E32\u0E22\u0E07\u0E32\u0E19\u0E1A\u0E31\u0E4A\u0E01\u0E42\u0E14\u0E22 Mushi Mushi"}};var $a={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.",hideLauncher:"Ocultar el bot\xF3n de errores durante esta visita"},step1:{moreNav:{communityIdeas:"Ideas de la comunidad",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"}},step2:{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:{descriptionPlaceholder:"\xBFQu\xE9 sali\xF3 mal?",featurePlaceholder:"Describe tu idea\u2026",submitHint:"{key} + Enter para enviar",screenshotButton:"Captura",screenshotAttached:"Captura adjunta",screenshotCapturing:"Tomando captura\u2026",screenshotRetry:"Reintentar",screenshotShareTab:"Compartir esta pesta\xF1a",notSentBlocked:"No se envi\xF3. El reporte se filtr\xF3 antes de enviarse. Tu texto sigue aqu\xED; a\xF1ade algo m\xE1s de detalle e int\xE9ntalo de nuevo.",notSentThrottled:"No se envi\xF3. Demasiados reportes en poco tiempo. Tu texto sigue aqu\xED; espera un minuto e int\xE9ntalo de nuevo.",screenshotReview:"Revisa la captura de abajo y pulsa Enviar otra vez.",screenshotErrors:{permission:"Se bloque\xF3 la captura. Perm\xEDtela y reintenta.",unsupported:"Este navegador no puede capturar la p\xE1gina. Descr\xEDbelo.",taint:"Contenido de otro sitio bloque\xF3 la captura. Descr\xEDbelo.",timeout:"La captura tard\xF3 demasiado.",csp:"La pol\xEDtica de seguridad de este sitio bloquea las capturas.",error:"La captura fall\xF3."},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:"Se\xF1alarlo",elementSelected:"Elemento seleccionado",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"},panel:{title:"Enviar comentarios",more:"M\xE1s\u2026",pointAt:"Se\xF1alarlo",remove:"Quitar",markUp:"Marcar",privacy:"Solo lo ve el desarrollador de la app. Quita cualquier dato privado.",privacyShort:"Solo lo ve el desarrollador",typeQuestion:"\xBFDe qu\xE9 se trata?",prompts:{bug:"\xBFQu\xE9 hiciste y qu\xE9 pas\xF3?",slow:"\xBFQu\xE9 fue lento y cu\xE1nto tard\xF3?",visual:"\xBFQu\xE9 se ve mal y d\xF3nde?",confusing:"\xBFD\xF3nde te atascaste? \xBFQu\xE9 intentabas hacer?",idea:"\xBFQu\xE9 te gustar\xEDa que hiciera?",other:"\xBFQu\xE9 pas\xF3?"},charsLeft:"Faltan {n} caracteres",ready:"Listo para enviar",delivered:"Recibido",send:"Enviar",yourReports:"Tus reportes",newCount:"{n} nuevos",moreOptions:"M\xE1s opciones",reportTitle:"Tu reporte",notifyMe:"Avisarme",notifyOn:"Las notificaciones est\xE1n activadas."},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",fileReportCta:"Enviar un informe en su lugar",stillStuckCta:"\xBFSigues atascado? Env\xEDa un informe",aiNotice:"Est\xE1s hablando con una IA, no con una persona. Las respuestas pueden tener errores.",errors:{noResponse:"Sin respuesta \u2014 revisa tu conexi\xF3n e int\xE9ntalo de nuevo.",notSetUp:"El asistente a\xFAn no est\xE1 configurado.",generic:"No se pudo contactar al asistente. Int\xE9ntalo en un momento."}},flows:{reports:{title:"Tus reportes",loading:"Cargando reportes\u2026",aiTitlesNote:"Los t\xEDtulos los escribe una IA."},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:{loading:"Cargando novedades\u2026",replyPlaceholder:"Responder al desarrollador\u2026"},success:{done:"Listo",trackReport:"Seguirlo",receipt:"Recibo",delivering:"Enviando al equipo\u2026",queuedOffline:"En cola sin conexi\xF3n",queuedHint:"Lo enviaremos en cuanto vuelvas a estar en l\xEDnea.",rateLimited:"Demasiado r\xE1pido",rateLimitedHint:"Espera un minuto \u2014 encolamos el reporte y lo reintentaremos autom\xE1ticamente.",quotaBlocked:"No se pudo aceptar este reporte",quotaBlockedHint:"La cuota o el plan del proyecto bloque\xF3 el env\xEDo. Pide al due\xF1o que revise Billing.",permanentFailed:"No se pudo enviar este reporte",permanentFailedHint:"El payload fue rechazado (a menudo por tama\xF1o). Intenta con un texto m\xE1s corto o sin captura.",retrying:"En cola \u2014 reintentando",retryingHint:"No pudimos llegar al servidor ahora. Seguiremos intentando en segundo plano.",trackOnMushi:"Seguir en Mushi",slaDefault:"Te avisaremos aqu\xED cuando haya novedades.",screenshotDropped:"Enviado sin la captura de pantalla \u2014 era demasiado grande para adjuntarla."},featureRequest:{label:"Solicitud de funci\xF3n"},betaStrip:{defaultMessage:"{appName} est\xE1 en desarrollo temprano",contactHint:"\xBFPreguntas? {email}",teamSees:"El equipo de {appName} lo ver\xE1",teamSeesGeneric:"El equipo lo ver\xE1",ariaLabel:"Estado beta"},changelog:{whatsNew:"Novedades de {version}"},poweredBy:"Reportes de errores con Mushi Mushi"}};var Ba={widget:{trigger:"\u53CD\u9988\u95EE\u9898",title:"\u53CD\u9988\u95EE\u9898",close:"\u5173\u95ED",back:"\u8FD4\u56DE",submit:"\u63D0\u4EA4",submitting:"\u63D0\u4EA4\u4E2D\u2026",submitted:"\u8C22\u8C22\uFF01\u4F60\u7684\u53CD\u9988\u5DF2\u63D0\u4EA4\u3002",error:"\u51FA\u9519\u4E86\uFF0C\u8BF7\u518D\u8BD5\u4E00\u6B21\u3002",hideLauncher:"\u672C\u6B21\u8BBF\u95EE\u671F\u95F4\u9690\u85CF\u53CD\u9988\u6309\u94AE"},step1:{moreNav:{communityIdeas:"\u793E\u533A\u60F3\u6CD5",leaderboard:"\u6392\u884C\u699C",joinCommunity:"\u52A0\u5165\u793E\u533A \xB7 \u8DE8\u5E94\u7528\u8DDF\u8E2A\u4F60\u7684\u53CD\u9988",myAccount:"\u6211\u7684\u8D26\u6237"},categories:{bug:"\u9519\u8BEF",slow:"\u6162",visual:"\u663E\u793A\u95EE\u9898",confusing:"\u96BE\u4EE5\u7406\u89E3",other:"\u5176\u4ED6"}},step2:{intents:{bug:["\u5D29\u6E83","\u6CA1\u6709\u53CD\u5E94","\u6570\u636E\u4E22\u5931","\u7ED3\u679C\u9519\u8BEF","\u5176\u4ED6"],slow:["\u9875\u9762\u52A0\u8F7D","\u64CD\u4F5C\u54CD\u5E94","\u7F51\u7EDC\u8BF7\u6C42","\u52A8\u753B","\u5176\u4ED6"],visual:["\u5E03\u5C40\u9519\u4E71","\u5143\u7D20\u91CD\u53E0","\u5143\u7D20\u4E0D\u663E\u793A","\u989C\u8272/\u5B57\u4F53\u4E0D\u5BF9","\u5176\u4ED6"],confusing:["\u6807\u7B7E\u4E0D\u6E05\u695A","\u7F3A\u5C11\u5E2E\u52A9","\u6D41\u7A0B\u51FA\u4E4E\u610F\u6599","\u627E\u4E0D\u5230\u5165\u53E3","\u5176\u4ED6"],other:["\u529F\u80FD\u5EFA\u8BAE","\u65E0\u969C\u788D","\u9519\u522B\u5B57","\u5176\u4ED6"]}},step3:{descriptionPlaceholder:"\u53D1\u751F\u4E86\u4EC0\u4E48\uFF1F",featurePlaceholder:"\u8BF4\u8BF4\u4F60\u7684\u60F3\u6CD5\u2026",submitHint:"{key} + Enter \u63D0\u4EA4",screenshotButton:"\u622A\u56FE",screenshotAttached:"\u5DF2\u9644\u622A\u56FE",screenshotCapturing:"\u6B63\u5728\u622A\u56FE\u2026",screenshotRetry:"\u518D\u8BD5\u4E00\u6B21",screenshotShareTab:"\u5171\u4EAB\u6B64\u6807\u7B7E\u9875\u6765\u622A\u56FE",notSentBlocked:"\u672A\u53D1\u9001\u3002\u8BE5\u53CD\u9988\u5728\u53D1\u9001\u524D\u88AB\u8FC7\u6EE4\u3002\u4F60\u7684\u6587\u5B57\u4ECD\u4FDD\u7559\u5728\u8FD9\u91CC\uFF0C\u8BF7\u8865\u5145\u4E00\u4E9B\u7EC6\u8282\u540E\u91CD\u8BD5\u3002",notSentThrottled:"\u672A\u53D1\u9001\u3002\u77ED\u65F6\u95F4\u5185\u63D0\u4EA4\u8FC7\u591A\u3002\u4F60\u7684\u6587\u5B57\u4ECD\u4FDD\u7559\u5728\u8FD9\u91CC\uFF0C\u8BF7\u7B49\u5F85\u4E00\u5206\u949F\u540E\u91CD\u8BD5\u3002",screenshotReview:"\u8BF7\u5148\u67E5\u770B\u4E0B\u65B9\u622A\u56FE\uFF0C\u518D\u70B9\u51FB\u201C\u53D1\u9001\u201D\u3002",screenshotErrors:{permission:"\u622A\u56FE\u88AB\u62E6\u622A\u4E86\u3002\u8BF7\u5141\u8BB8\u540E\u518D\u8BD5\u3002",unsupported:"\u6B64\u6D4F\u89C8\u5668\u65E0\u6CD5\u622A\u56FE\u3002\u8BF7\u7528\u6587\u5B57\u63CF\u8FF0\u3002",taint:"\u9875\u9762\u5305\u542B\u5176\u4ED6\u7F51\u7AD9\u7684\u5185\u5BB9\uFF0C\u65E0\u6CD5\u622A\u56FE\u3002\u8BF7\u7528\u6587\u5B57\u63CF\u8FF0\u3002",timeout:"\u622A\u56FE\u8D85\u65F6\u3002",csp:"\u6B64\u7F51\u7AD9\u7684\u5B89\u5168\u8BBE\u7F6E\u4E0D\u5141\u8BB8\u622A\u56FE\u3002",error:"\u622A\u56FE\u5931\u8D25\u3002"},screenshotPreviewAlt:"\u5C06\u8981\u53D1\u9001\u7684\u622A\u56FE\u9884\u89C8",screenshotSensitiveHint:"\u8BF7\u68C0\u67E5\u9884\u89C8\uFF1B\u5982\u6709\u4F59\u989D\u6216\u4E2A\u4EBA\u4FE1\u606F\uFF0C\u8BF7\u5220\u9664\u622A\u56FE\u3002",elementButton:"\u6307\u51FA\u4F4D\u7F6E",elementSelected:"\u5DF2\u9009\u4E2D\u5143\u7D20",elementCapturing:"\u70B9\u51FB\u9875\u9762\u4E0A\u7684\u5143\u7D20\u2026",elementFailed:"\u65E0\u6CD5\u9009\u62E9 \u2014 \u8BF7\u7528\u6587\u5B57\u63CF\u8FF0",elementSelectorHint:"\u70B9\u51FB\u4E00\u4E2A\u5143\u7D20 \xB7 Esc \u53D6\u6D88"},panel:{title:"\u53D1\u9001\u53CD\u9988",more:"\u66F4\u591A\u2026",pointAt:"\u6307\u51FA\u4F4D\u7F6E",remove:"\u5220\u9664",markUp:"\u6807\u6CE8",privacy:"\u53EA\u6709\u8FD9\u4E2A\u5E94\u7528\u7684\u5F00\u53D1\u8005\u80FD\u770B\u5230\u3002\u8BF7\u5220\u9664\u4E2A\u4EBA\u4FE1\u606F\u3002",privacyShort:"\u4EC5\u5F00\u53D1\u8005\u53EF\u89C1",typeQuestion:"\u662F\u5173\u4E8E\u4EC0\u4E48\u7684\uFF1F",prompts:{bug:"\u4F60\u505A\u4E86\u4EC0\u4E48\uFF0C\u53D1\u751F\u4E86\u4EC0\u4E48\uFF1F",slow:"\u54EA\u91CC\u6162\uFF1F\u5927\u6982\u7B49\u4E86\u591A\u4E45\uFF1F",visual:"\u54EA\u91CC\u663E\u793A\u4E0D\u5BF9\uFF1F\u662F\u4EC0\u4E48\u6837\u5B50\uFF1F",confusing:"\u4F60\u5728\u54EA\u91CC\u5361\u4F4F\u4E86\uFF1F\u60F3\u505A\u4EC0\u4E48\uFF1F",idea:"\u4F60\u5E0C\u671B\u5B83\u80FD\u505A\u4EC0\u4E48\uFF1F",other:"\u53D1\u751F\u4E86\u4EC0\u4E48\uFF1F"},charsLeft:"\u8FD8\u9700 {n} \u4E2A\u5B57",ready:"\u53EF\u4EE5\u53D1\u9001\u4E86",delivered:"\u5DF2\u6536\u5230",send:"\u53D1\u9001",yourReports:"\u4F60\u7684\u53CD\u9988",newCount:"{n} \u6761\u65B0\u6D88\u606F",moreOptions:"\u66F4\u591A\u9009\u9879",reportTitle:"\u4F60\u7684\u53CD\u9988",notifyMe:"\u63A5\u6536\u901A\u77E5",notifyOn:"\u901A\u77E5\u5DF2\u5F00\u542F\u3002"},assistant:{defaultLabel:"\u63D0\u95EE",defaultGreeting:"\u95EE\u95EE\u5173\u4E8E\u8FD9\u4E2A\u9875\u9762\u7684\u95EE\u9898 \u2014 \u6211\u53EA\u4F1A\u4F7F\u7528\u9875\u9762\u4E0A\u663E\u793A\u7684\u5185\u5BB9\u3002",inputPlaceholder:"\u8F93\u5165\u4F60\u7684\u95EE\u9898\u2026",sendAriaLabel:"\u53D1\u9001",hubDescription:"\u8BE2\u95EE\u5982\u4F55\u4F7F\u7528\u8FD9\u4E2A\u5E94\u7528",thinking:"\u601D\u8003\u4E2D\u2026",fileReportCta:"\u6539\u4E3A\u53CD\u9988\u9519\u8BEF",stillStuckCta:"\u8FD8\u6CA1\u89E3\u51B3\uFF1F\u53CD\u9988\u95EE\u9898",aiNotice:"\u4F60\u6B63\u5728\u4E0E AI \u5BF9\u8BDD\uFF0C\u4E0D\u662F\u771F\u4EBA\u3002\u56DE\u7B54\u53EF\u80FD\u6709\u8BEF\u3002",errors:{noResponse:"\u6CA1\u6709\u56DE\u5E94 \u2014 \u8BF7\u68C0\u67E5\u7F51\u7EDC\u540E\u91CD\u8BD5\u3002",notSetUp:"\u52A9\u624B\u5C1A\u672A\u8BBE\u7F6E\u3002",generic:"\u65E0\u6CD5\u8FDE\u63A5\u52A9\u624B\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\u3002"}},flows:{reports:{title:"\u4F60\u7684\u53CD\u9988",loading:"\u6B63\u5728\u52A0\u8F7D\u53CD\u9988\u2026",aiTitlesNote:"\u6807\u9898\u7531 AI \u64B0\u5199\u3002"},roadmap:{title:"\u793E\u533A\u60F3\u6CD5",loading:"\u6B63\u5728\u52A0\u8F7D\u60F3\u6CD5\u2026",empty:"\u8FD8\u6CA1\u6709\u60F3\u6CD5\u3002\u6765\u63D0\u7B2C\u4E00\u4E2A\u5427\u3002",shipped:"\u5DF2\u4E0A\u7EBF",vote:"\u6295\u7968",voted:"\u5DF2\u6295\u7968",voteCount:"{n} \u7968",untitled:"\u672A\u547D\u540D\u7684\u60F3\u6CD5"},leaderboard:{title:"\u5168\u7403\u6392\u884C\u699C",loading:"\u6B63\u5728\u52A0\u8F7D\u6392\u884C\u699C\u2026",empty:"\u8FD8\u6CA1\u6709\u4EBA\u4E0A\u699C \u2014 \u6765\u505A\u7B2C\u4E00\u4E2A\u5427\u3002",signInPrompt:"\u767B\u5F55\u67E5\u770B\u4F60\u7684\u6392\u540D \u2192",myRank:"\u4F60\u672C\u6708\u6392\u540D #{rank}",footer:"\u672C\u6708\u5168\u7403\u8D21\u732E\u8005 \xB7 \u79EF\u5206\u6BCF\u6708\u91CD\u7F6E",anon:"\u533F\u540D"},account:{title:"Mushi \u8D26\u6237",checkEmailTitle:"\u67E5\u770B\u90AE\u7BB1",joinTitle:"\u52A0\u5165\u793E\u533A",emailLabel:"\u90AE\u7BB1\u5730\u5740",emailPlaceholder:"\u90AE\u7BB1",signInPrompt:"\u767B\u5F55\u540E\u53EF\u4EE5\u67E5\u770B\u4F60\u5728\u6240\u6709\u5E94\u7528\u4E2D\u7684\u53CD\u9988\u548C\u6392\u540D\u3002\u65E0\u9700\u5BC6\u7801\u3002",magicLinkSent:"\u767B\u5F55\u94FE\u63A5\u5DF2\u53D1\u9001\u5230 {email}\u3002\u6253\u5F00\u94FE\u63A5\u5373\u53EF\u5173\u8054\u4F60\u7684\u53CD\u9988\u3002",resendEmail:"\u91CD\u65B0\u53D1\u9001\u90AE\u4EF6",sendLink:"\u53D1\u9001\u767B\u5F55\u94FE\u63A5",sending:"\u53D1\u9001\u4E2D\u2026",crossAppReports:"\u6240\u6709\u5E94\u7528\u7684\u53CD\u9988 \u2192",viewLeaderboard:"\u5168\u7403\u6392\u884C\u699C \u2192",signOut:"\u9000\u51FA\u767B\u5F55",rankSummary:"\u6392\u540D #{rank} \xB7 \u672C\u6708 {points} \u5206"},crossApp:{title:"\u6211\u7684\u53CD\u9988",loading:"\u6B63\u5728\u52A0\u8F7D\u53CD\u9988\u2026",empty:"\u8FD8\u6CA1\u6709\u53CD\u9988\u3002",unknownApp:"\u672A\u77E5\u5E94\u7528"},thread:{loading:"\u6B63\u5728\u52A0\u8F7D\u66F4\u65B0\u2026",replyPlaceholder:"\u56DE\u590D\u5F00\u53D1\u8005\u2026"},success:{done:"\u5B8C\u6210",trackReport:"\u8DDF\u8E2A\u8FDB\u5EA6",receipt:"\u56DE\u6267",delivering:"\u6B63\u5728\u53D1\u9001\u7ED9\u56E2\u961F\u2026",queuedOffline:"\u79BB\u7EBF\u6392\u961F\u4E2D",queuedHint:"\u6062\u590D\u8054\u7F51\u540E\u4F1A\u81EA\u52A8\u53D1\u9001\u3002",rateLimited:"\u53D1\u9001\u592A\u9891\u7E41",rateLimitedHint:"\u8BF7\u7B49\u5F85\u7EA6\u4E00\u5206\u949F\u3002\u53CD\u9988\u5DF2\u6392\u961F\uFF0C\u4F1A\u81EA\u52A8\u91CD\u65B0\u53D1\u9001\u3002",quotaBlocked:"\u8FD9\u6761\u53CD\u9988\u672A\u88AB\u63A5\u6536",quotaBlockedHint:"\u9879\u76EE\u989D\u5EA6\u6216\u5957\u9910\u62D2\u7EDD\u4E86\u5B83\u3002\u8BF7\u8BA9\u5E94\u7528\u7BA1\u7406\u5458\u68C0\u67E5 Billing\u3002",permanentFailed:"\u53CD\u9988\u53D1\u9001\u5931\u8D25",permanentFailedHint:"\u5185\u5BB9\u88AB\u62D2\u7EDD\u4E86\uFF08\u4F8B\u5982\u592A\u5927\uFF09\u3002\u8BF7\u7F29\u77ED\u6587\u5B57\u6216\u4E0D\u5E26\u622A\u56FE\u518D\u8BD5\u4E00\u6B21\u3002",retrying:"\u5DF2\u6392\u961F \u2014 \u6B63\u5728\u91CD\u8BD5",retryingHint:"\u6682\u65F6\u8FDE\u4E0D\u4E0A\u670D\u52A1\u5668\uFF0C\u4F1A\u5728\u540E\u53F0\u91CD\u65B0\u53D1\u9001\u3002",trackOnMushi:"\u5728 Mushi \u4E0A\u8DDF\u8E2A",slaDefault:"\u6709\u8FDB\u5C55\u65F6\u4F1A\u5728\u8FD9\u91CC\u901A\u77E5\u4F60\u3002",screenshotDropped:"\u622A\u56FE\u592A\u5927\u65E0\u6CD5\u9644\u4E0A\uFF0C\u5DF2\u53EA\u53D1\u9001\u6587\u5B57\u53CD\u9988\u3002"},featureRequest:{label:"\u529F\u80FD\u5EFA\u8BAE"},betaStrip:{defaultMessage:"{appName} \u8FD8\u5728\u65E9\u671F\u5F00\u53D1\u9636\u6BB5",contactHint:"\u6709\u95EE\u9898\u8BF7\u8054\u7CFB {email}",teamSees:"{appName} \u56E2\u961F\u4F1A\u67E5\u770B",teamSeesGeneric:"\u56E2\u961F\u4F1A\u67E5\u770B",ariaLabel:"\u6D4B\u8BD5\u7248\u901A\u77E5"},changelog:{whatsNew:"{version} \u65B0\u529F\u80FD"},poweredBy:"\u9519\u8BEF\u53CD\u9988\u7531 Mushi Mushi \u63D0\u4F9B"}};var Oa={en:ln,ja:Da,th:Pa,es:$a,zh:Ba};function fi(e){let t=e&&e!=="auto"?e:typeof navigator<"u"?navigator.language??navigator.languages?.[0]:void 0;if(!t)return ln;let r=t.split("-")[0].toLowerCase();return Oa[r]??ln}function Fa(){return Object.keys(Oa)}function xp(e){let t=e.replace("#",""),r=t.length===3?t[0]+t[0]+t[1]+t[1]+t[2]+t[2]:t.slice(0,6),n=parseInt(r.slice(0,2),16),i=parseInt(r.slice(2,4),16),o=parseInt(r.slice(4,6),16);return `${n},${i},${o}`}function Na(e,t="",r=""){let n=e==="dark",i=n?"dark":"light",o=di(i),s=Zs(i,t,r),a=Vs[i];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:s.accent,widgetAccentWash:s.accentWash,widgetAccentInk:s.accentInk,widgetAccentShadow:n?li.dark:li.light,accentRgb:xp(s.accent),shadowInk:n?"0,0,0":"14,13,11",ok:o.ok,danger:o.danger,onAccent:Ws,inverse:Ks,neonBannerBg:rn.bg,neonBannerFg:rn.fg,neonBannerBorder:rn.border,brandBannerBorder:n?ci.dark:ci.light,statusSent:a.sent,statusReview:a.review,statusFixing:a.fixing,statusFixed:a.fixed,reportTypes:zs[i],reportTypeWash:Gs[i],statusClosedBg:n?"rgba(242,235,221,0.06)":"rgba(14,13,11,0.05)",fontDisplay:nn.fontDisplay,fontBody:nn.fontBody,fontMono:nn.fontMono,easeStamp:on.easeStamp,zBanner:Nt.banner,zPanel:Nt.panel,zOverlay:Nt.overlay,fabSize:dt.fabSize,panelWidth:dt.panelWidth,panelSheetBreakpoint:dt.panelSheetBreakpoint}}function pt(e){let t=e.trim();return !t||t.length>64||!/^[#\w\s(),.%/+-]+$/.test(t)||typeof CSS<"u"&&typeof CSS.supports=="function"&&!CSS.supports("color",t)?"":t}function Ha([e,t,r]){let n=i=>{let o=i/255;return o<=.03928?o/12.92:((o+.055)/1.055)**2.4};return .2126*n(e)+.7152*n(t)+.0722*n(r)}function cn(e,t){let r=Ha(e),n=i=>(Math.max(r,i)+.05)/(Math.min(r,i)+.05);return t?{ink:"",ratio:n(Ha(t))}:n(1)>=n(0)?{ink:"white",ratio:n(1)}:{ink:"black",ratio:n(0)}}function Ua(e,t="",r="",n=false){let i=Na(e),o=pt(t),s=pt(r),{isDark:a,ink:u,ruleStrong:c,widgetAccent:p,shadowInk:h,ok:b,danger:A,inverse:T,neonBannerBg:E,neonBannerFg:y,neonBannerBorder:x,brandBannerBorder:k,statusSent:v,statusReview:C,statusFixing:_,statusFixed:g,fontMono:f,easeStamp:m,zBanner:S,fabSize:B,reportTypes:j,reportTypeWash:N}=i,Z=Object.entries(j).map(([ge,Ce])=>`.mushi-tile[data-category="${ge}"],.mushi-panel[data-cat="${ge}"]{--_cat:${Ce.solid};--_cat-ink:${Ce.ink};}`).join(`
17
+ `),ee=j.other,we=Math.round(N.wash*100),L=Math.round(N.strong*100),{durationFast:Se}=on,{instant:ae,panel:Ke}=Js,{bannerHeight:ne,gutter:H,panelWidth:me,panelMaxHeight:_e,panelSheetBreakpoint:Y,edgeTabWidth:R}=dt,D=48,O=44,F=B+Ys.comfy,W=Xs.control;return ` :host{all:initial;color-scheme:${a?"dark":"light"};font-family:var(--mushi-font,inherit);font-size:var(--mushi-font-size,14px);line-height:1.45;--_bg:var(--mushi-bg,Canvas);--_fg:var(--mushi-fg,CanvasText);--_muted:var(--mushi-muted,color-mix(in oklab,var(--_fg) 64%,transparent));--_surface:var(--mushi-surface,color-mix(in oklab,var(--_bg) 94%,var(--_fg)));--_border:var(--mushi-border,color-mix(in oklab,var(--_fg) 16%,transparent));--_accent:var(--mushi-accent,${o||"var(--_fg)"});--_accent-fg:${n&&s?s:`var(--mushi-accent-fg,${o?s||"white":"var(--_bg)"})`};--_ok:var(--mushi-success,${b});--_err:var(--mushi-error,${A});--_radius:var(--mushi-radius,12px);--_shadow:var(--mushi-shadow,0 12px 40px rgb(0 0 0 / .18));color:var(--_fg);-webkit-font-smoothing:antialiased;pointer-events:none;}.mushi-trigger,.mushi-banner,.mushi-panel,.mushi-toast{pointer-events:auto;}*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}button{font-family:inherit;}.mushi-trigger{position:fixed;width:${B}px;height:${B}px;min-width:44px;min-height:44px;border:1px solid var(--_border);border-radius:${W}px;background:var(--_bg);color:var(--_fg);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:22px;line-height:1;box-shadow:0 1px 0 var(--_border),0 6px 14px -8px rgba(${h},0.35),inset 0 -3px 0 var(--_accent);transition:transform ${Se}ms ${m},opacity ${Se}ms ${m};overflow:visible;isolation:isolate;}.mushi-trigger::after{content:'';position:absolute;top:6px;right:6px;width:6px;height:6px;border-radius:50%;background:var(--_accent);box-shadow:0 0 0 0 var(--_accent);animation:mushi-pulse 2.4s ${m} infinite;}.mushi-trigger:hover{transform:translateY(-2px) rotate(-1.5deg);box-shadow:0 1px 0 var(--_border),0 14px 24px -10px rgba(${h},0.45),0 0 20px -6px color-mix(in oklab,var(--_accent) 22%,transparent),inset 0 -3px 0 var(--_accent);}.mushi-trigger:active{transform:translateY(0) rotate(0);box-shadow:0 1px 0 var(--_border),0 2px 4px -2px rgba(${h},0.35),inset 0 -2px 0 var(--_accent);}.mushi-trigger:focus-visible{outline:2px solid var(--_accent);outline-offset:3px;}@keyframes mushi-trigger-pulse{0%{box-shadow:0 0 0 0 color-mix(in oklab,var(--_accent) 55%,transparent),0 1px 0 var(--_border),0 10px 24px -14px rgba(${h},0.45);}70%{box-shadow:0 0 0 16px color-mix(in oklab,var(--_accent) 0%,transparent),0 1px 0 var(--_border),0 10px 24px -14px rgba(${h},0.45);}100%{box-shadow:0 0 0 0 color-mix(in oklab,var(--_accent) 0%,transparent),0 1px 0 var(--_border),0 10px 24px -14px rgba(${h},0.45);}}.mushi-trigger-pulse{animation:mushi-trigger-pulse 800ms ${m} 3;}@media (prefers-reduced-motion:reduce){.mushi-trigger-pulse{animation:none;}}.mushi-trigger.bottom-right{bottom:var(--mushi-bottom,calc(${H}px + env(safe-area-inset-bottom,0px)));right:var(--mushi-right,calc(${H}px + env(safe-area-inset-right,0px)));}.mushi-trigger.bottom-left{bottom:var(--mushi-bottom,calc(${H}px + env(safe-area-inset-bottom,0px)));left:var(--mushi-left,calc(${H}px + env(safe-area-inset-left,0px)));}.mushi-trigger.top-right{top:var(--mushi-top,calc(${H}px + env(safe-area-inset-top,0px)));right:var(--mushi-right,calc(${H}px + env(safe-area-inset-right,0px)));}.mushi-trigger.top-left{top:var(--mushi-top,calc(${H}px + env(safe-area-inset-top,0px)));left:var(--mushi-left,calc(${H}px + env(safe-area-inset-left,0px)));}.mushi-trigger.edge-tab{width:${O}px;height:${D}px;background:transparent;border:0;border-radius:0;box-shadow:none;font-size:14px;justify-content:flex-end;}.mushi-trigger.edge-tab::after{display:none;}.mushi-trigger.edge-tab:hover,.mushi-trigger.edge-tab:active,.mushi-trigger.edge-tab.dragging{transform:none;box-shadow:none;}.mushi-trigger-face{display:flex;align-items:center;justify-content:center;width:${R}px;height:100%;background:var(--_bg);border:1px solid var(--_border);border-right:0;border-radius:${W}px 0 0 ${W}px;box-shadow:0 4px 12px -6px rgba(${h},0.4),inset -2px 0 0 var(--_accent);transition:width ${Se}ms ${m},transform ${Se}ms ${m},opacity ${Se}ms ${m};}.mushi-trigger.edge-tab.text{height:auto;min-height:${D}px;}.mushi-trigger.edge-tab.text .mushi-trigger-face{height:auto;min-height:${D}px;padding:10px 0;writing-mode:vertical-rl;font-size:12px;white-space:nowrap;}.mushi-trigger.edge-tab:hover .mushi-trigger-face,.mushi-trigger.edge-tab:focus-visible .mushi-trigger-face{width:${R+6}px;}.mushi-trigger.edge-tab:focus-visible{outline:none;}.mushi-trigger.edge-tab:focus-visible .mushi-trigger-face{outline:2px solid var(--_accent);outline-offset:2px;}.mushi-trigger.edge-tab.bottom-right,.mushi-trigger.edge-tab.top-right{right:calc(var(--mushi-safe-area,1) * env(safe-area-inset-right,0px));}.mushi-trigger.edge-tab.bottom-left,.mushi-trigger.edge-tab.top-left{left:calc(var(--mushi-safe-area,1) * env(safe-area-inset-left,0px));justify-content:flex-start;}.mushi-trigger.edge-tab.bottom-left .mushi-trigger-face,.mushi-trigger.edge-tab.top-left .mushi-trigger-face{border-right:1px solid var(--_border);border-left:0;border-radius:0 ${W}px ${W}px 0;box-shadow:0 4px 12px -6px rgba(${h},0.4),inset 2px 0 0 var(--_accent);}.mushi-trigger.tucked{opacity:0.3;}.mushi-trigger.edge-tab.tucked{opacity:1;}.mushi-trigger.edge-tab.tucked .mushi-trigger-face{opacity:0.55;transform:translateX(${R-6}px);}.mushi-trigger.edge-tab.bottom-left.tucked .mushi-trigger-face,.mushi-trigger.edge-tab.top-left.tucked .mushi-trigger-face{transform:translateX(-${R-6}px);}.mushi-trigger.tucked:focus-visible,.mushi-trigger.tucked:focus-visible .mushi-trigger-face{opacity:1;transform:none;}.mushi-trigger.shrunk{width:${ne}px;height:${ne}px;opacity:0.82;transform:scale(0.92);}.mushi-trigger{touch-action:none;translate:calc(var(--mushi-drag-active,0) * var(--mushi-drag-x,0px)) calc(var(--mushi-drag-active,0) * var(--mushi-drag-y,0px));}.mushi-trigger.dragging{cursor:grabbing !important;z-index:calc(var(--z,${Nt.base}) + 2);transition:none !important;box-shadow:0 1px 0 var(--_border),0 20px 40px -12px rgba(${h},0.55),inset 0 -3px 0 var(--_accent);opacity:0.92;}@media (prefers-reduced-motion:reduce){.mushi-trigger,.mushi-trigger-face{transition:none !important;}.mushi-trigger::after{animation:none;}.mushi-trigger.edge-tab.tucked .mushi-trigger-face{transform:none !important;}}@keyframes mushi-pulse{0%{box-shadow:0 0 0 0 var(--_accent);opacity:1;}70%{box-shadow:0 0 0 8px transparent;opacity:0.5;}100%{box-shadow:0 0 0 0 transparent;opacity:1;}}.mushi-panel{position:fixed;width:calc(${me}px + 60px);max-width:calc(100vw - 32px);max-height:min(calc(${_e}px + 160px),calc(100dvh - 96px - var(--mushi-keyboard-inset,0px)));background:var(--_bg);color:var(--_fg);border:1px solid var(--mushi-border,color-mix(in oklab,var(--_fg) 38%,var(--_bg)));border-radius:var(--_radius);box-shadow:var(--_shadow);overflow:hidden;display:flex;flex-direction:column;transform-origin:var(--mushi-origin,bottom right);}.mushi-panel.open{animation:mushi-open 180ms cubic-bezier(.2,.8,.2,1) both;}.mushi-panel.closed{display:none;}.mushi-panel.mushi-swap .mushi-scroll,.mushi-panel.mushi-swap .mushi-footer{animation:mushi-fade 120ms ease-out both;}@keyframes mushi-open{from{opacity:0;transform:translateY(8px);}}@keyframes mushi-fade{from{opacity:0;}}.mushi-panel.bottom-right{bottom:var(--mushi-panel-bottom,calc(var(--mushi-bottom,${H}px) + ${F}px));right:var(--mushi-right,calc(${H}px + env(safe-area-inset-right,0px)));--mushi-origin:bottom right;}.mushi-panel.bottom-left{bottom:var(--mushi-panel-bottom,calc(var(--mushi-bottom,${H}px) + ${F}px));left:var(--mushi-left,calc(${H}px + env(safe-area-inset-left,0px)));--mushi-origin:bottom left;}.mushi-panel.top-right{top:var(--mushi-panel-top,calc(var(--mushi-top,${H}px) + ${F}px));right:var(--mushi-right,calc(${H}px + env(safe-area-inset-right,0px)));--mushi-origin:top right;}.mushi-panel.top-left{top:var(--mushi-panel-top,calc(var(--mushi-top,${H}px) + ${F}px));left:var(--mushi-left,calc(${H}px + env(safe-area-inset-left,0px)));--mushi-origin:top left;}.mushi-panel.keyboard-open{bottom:calc(var(--mushi-keyboard-inset,0px) + 8px) !important;}@media (max-width:${Y}px){.mushi-panel{left:0 !important;right:0 !important;top:auto !important;width:100% !important;max-width:100% !important;max-height:calc(100dvh - 24px - var(--mushi-keyboard-inset,0px));border-radius:var(--_radius) var(--_radius) 0 0;bottom:var(--mushi-keyboard-inset,0px) !important;padding-bottom:env(safe-area-inset-bottom,0px);}}.mushi-panel :focus-visible{outline:2px solid var(--_accent);outline-offset:2px;}.mushi-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}.mushi-notice:empty,.mushi-lead:empty,.mushi-meter:empty,.mushi-footer:empty,.mushi-brand:empty{display:none;}.mushi-outdated{margin:8px 12px 0;padding:8px 10px;border-radius:8px;background:var(--_surface);font-size:12px;}.mushi-header{position:relative;z-index:2;display:flex;align-items:center;gap:6px;min-height:56px;padding:6px 6px 6px 16px;border-bottom:1px solid var(--_border);}.mushi-panel[data-cat] .mushi-header{box-shadow:inset 0 3px 0 var(--_cat);}.mushi-header-type{display:inline-flex;align-items:center;justify-content:center;flex:none;width:28px;height:28px;border-radius:8px;background:var(--_cat-wash-strong);color:var(--_cat-ink);}.mushi-title{flex:1 1 auto;min-width:3em;margin:0;font-size:16px;font-weight:600;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.mushi-beta-chip{flex:none;min-height:24px;padding:2px 7px;border:1px solid var(--_border);border-radius:6px;background:var(--_surface);color:var(--_fg);font:inherit;font-size:11px;font-weight:700;letter-spacing:.06em;cursor:pointer;}.mushi-beta-chip:hover,.mushi-beta-chip[aria-expanded="true"]{border-color:var(--_fg);}.mushi-beta-pop{position:absolute;left:12px;right:12px;top:calc(100% + 4px);z-index:3;display:flex;flex-direction:column;gap:6px;padding:10px 12px;background:var(--_bg);border:1px solid var(--_border);border-radius:10px;box-shadow:var(--_shadow);font-size:13px;line-height:1.45;}.mushi-beta-pop p{margin:0;}@media (max-width:${Y}px){.mushi-header{gap:4px;padding-left:12px;}.mushi-header-type,.mushi-header-host-icon{display:none;}.mushi-header .mushi-pill-btn{padding:0 10px;}}.mushi-title:focus{outline:none;}.mushi-header-host-icon{width:20px;height:20px;margin-right:8px;border-radius:4px;object-fit:contain;}.mushi-header .mushi-icon-btn:first-child{margin-left:-10px;}.mushi-header .mushi-icon-btn:last-child{margin-right:-4px;}.mushi-beta-receipt{display:flex;flex-direction:column;gap:2px;align-items:center;}.mushi-icon-btn{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:44px;min-height:44px;border:0;border-radius:10px;background:none;color:var(--_muted);font:inherit;font-size:17px;cursor:pointer;}.mushi-icon-btn:hover{background:var(--_surface);color:var(--_fg);}.mushi-pill-btn{display:inline-flex;align-items:center;gap:6px;flex:none;min-height:44px;padding:0 12px;border:1px solid var(--_border);border-radius:999px;background:none;color:var(--_fg);font:inherit;font-size:13px;white-space:nowrap;cursor:pointer;}.mushi-pill-btn:hover{background:var(--_surface);}.mushi-badge{padding:1px 7px;border-radius:999px;background:var(--_fg);color:var(--_bg);font-size:11px;font-weight:600;}.mushi-menu-wrap{position:relative;}.mushi-menu{position:absolute;right:0;top:calc(100% + 4px);z-index:2;display:flex;flex-direction:column;min-width:210px;padding:4px;background:var(--_bg);border:1px solid var(--_border);border-radius:10px;box-shadow:var(--_shadow);}.mushi-menu-item{min-height:44px;padding:0 12px;border:0;border-radius:8px;background:none;color:var(--_fg);font:inherit;text-align:left;cursor:pointer;}.mushi-menu-item:hover{background:var(--_surface);}.mushi-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;padding:12px 16px 16px;scrollbar-width:thin;}.mushi-lead,.mushi-body{display:flex;flex-direction:column;gap:12px;min-width:0;}.mushi-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:10px 12px 12px 16px;border-top:1px solid var(--_border);}.mushi-footer-hint{flex:1;min-width:0;font-size:12px;color:var(--_muted);}.mushi-privacy{display:inline-flex;align-items:center;gap:6px;flex:1;min-width:0;font-size:12px;color:var(--_muted);}.mushi-privacy .mushi-ico{width:14px;height:14px;}.mushi-privacy-text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}.mushi-submit .mushi-ico{width:16px;height:16px;stroke-width:2.4;}.mushi-brand-footer{padding:6px 12px 8px;text-align:center;font-size:11px;color:var(--_muted);}.mushi-brand-link{color:inherit;text-decoration:none;}.mushi-brand-link:hover{text-decoration:underline;}.mushi-textarea,.mushi-input{width:100%;border:1px solid var(--_border);border-radius:10px;background:var(--_bg);color:var(--_fg);font:inherit;}.mushi-textarea{display:block;min-height:88px;max-height:40vh;padding:12px;font-size:15px;line-height:1.45;resize:vertical;}.mushi-input{flex:1;min-width:0;min-height:44px;padding:10px 12px;resize:none;}.mushi-textarea:focus,.mushi-input:focus{outline:2px solid var(--_accent);outline-offset:1px;border-color:transparent;}.mushi-textarea::placeholder,.mushi-input::placeholder{color:var(--_muted);opacity:1;}.mushi-ico{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}.mushi-chips{display:flex;flex-wrap:wrap;gap:6px;}.mushi-chip{min-height:44px;padding:0 14px;border:1px solid var(--_border);border-radius:999px;background:none;color:var(--_fg);font:inherit;font-size:13px;cursor:pointer;}.mushi-chip:hover{background:var(--_surface);}.mushi-chip[aria-checked="true"]{background:var(--_fg);border-color:var(--_fg);color:var(--_bg);}.mushi-chip-more{border-style:dashed;color:var(--_muted);}.mushi-chip-sm{padding:0 12px;font-size:12px;}.mushi-intents .mushi-chip{border-color:var(--_cat,var(--_border));}.mushi-intents .mushi-chip:hover{background:var(--_cat-wash,var(--_surface));}.mushi-intents .mushi-chip[aria-checked="true"]{background:var(--_cat,var(--_fg));border-color:var(--_cat,var(--_fg));color:var(--_bg);}.mushi-tile{--_cat:${ee.solid};--_cat-ink:${ee.ink};}.mushi-tile,.mushi-panel[data-cat]{--_cat-wash:color-mix(in srgb,var(--_cat) ${we}%,transparent);--_cat-wash-strong:color-mix(in srgb,var(--_cat) ${L}%,transparent);}${Z} .mushi-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}.mushi-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:78px;padding:10px 4px 8px;border:1px solid var(--_cat);border-radius:12px;background:var(--_cat-wash);color:var(--_fg);font:inherit;font-size:13px;font-weight:600;line-height:1.2;text-align:center;overflow-wrap:anywhere;cursor:pointer;transition:background-color ${ae}ms ease-out,transform ${ae}ms ease-out;}.mushi-tile:hover{background:var(--_cat-wash-strong);}.mushi-tile:active{transform:scale(.97);}.mushi-tile[aria-checked="true"]{background:var(--_cat-wash-strong);box-shadow:0 0 0 1px var(--_cat),inset 0 0 0 1px var(--_cat);}.mushi-tile-ico{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:var(--_bg);color:var(--_cat-ink);}.mushi-tile-ico .mushi-ico{width:22px;height:22px;}.mushi-tile[data-category="other"] .mushi-tile-ico .mushi-ico{stroke-width:3.4;}.mushi-tile[aria-checked="true"] .mushi-tile-ico{background:var(--_cat);color:var(--_bg);}.mushi-tile-emoji{font-size:20px;line-height:1;}.mushi-tile-check{position:absolute;top:5px;right:5px;display:none;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:var(--_cat);color:var(--_bg);}.mushi-tile-check .mushi-ico{width:12px;height:12px;stroke-width:3;}.mushi-tile[aria-checked="true"] .mushi-tile-check{display:inline-flex;}.mushi-more-row{display:flex;justify-content:flex-end;}.mushi-meter{display:flex;justify-content:flex-end;margin-top:-6px;}.mushi-count{display:inline-flex;align-items:center;gap:6px;min-height:20px;font-size:12px;color:var(--_muted);}.mushi-ring{width:18px;height:18px;transform:rotate(-90deg);}.mushi-ring circle{fill:none;stroke-width:2.5;}.mushi-ring-track{stroke:var(--_border);}.mushi-ring-fill{stroke:var(--_cat,var(--_fg));stroke-linecap:round;transition:stroke-dashoffset ${ae}ms ease-out;}.mushi-count.ok{color:var(--_ok);}.mushi-count.ok .mushi-ico{width:16px;height:16px;stroke-width:2.6;}.mushi-count.nudge{color:var(--_err);font-weight:600;}.mushi-count.shake{animation:mushi-nudge 320ms ease-out;}.mushi-count.nudge .mushi-ring-fill{stroke:var(--_err);}.mushi-count-max{margin-left:6px;font-variant-numeric:tabular-nums;}.mushi-panel.mushi-nudge .mushi-textarea{border-color:var(--_err);outline-color:var(--_err);}@keyframes mushi-nudge{25%{transform:translateX(-3px);}75%{transform:translateX(3px);}}.mushi-attachments{display:flex;flex-wrap:wrap;align-items:center;gap:8px;}.mushi-tool{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border:1px solid var(--_border);border-radius:10px;background:var(--_surface);color:var(--_fg);font:inherit;cursor:pointer;}.mushi-tool:hover{border-color:var(--_muted);}.mushi-tool .mushi-ico{width:20px;height:20px;}.mushi-tool.active{border-color:var(--_ok);color:var(--_ok);}.mushi-tool.error{border-color:var(--_err);color:var(--_err);}.mushi-tool[disabled]{cursor:progress;opacity:.75;}.mushi-tool-badge{position:absolute;top:-5px;right:-5px;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:var(--_ok);color:var(--_bg);}.mushi-tool-badge .mushi-ico{width:10px;height:10px;stroke-width:3.4;}.mushi-attach-btn{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 12px;border:1px solid var(--_border);border-radius:10px;background:var(--_surface);color:var(--_fg);font:inherit;font-size:13px;cursor:pointer;}.mushi-attach-btn:hover{border-color:var(--_muted);}.mushi-attach-btn.active{border-color:var(--_ok);}.mushi-attach-btn.error{border-color:var(--_err);color:var(--_err);}.mushi-attach-btn[disabled]{cursor:progress;opacity:.75;}.mushi-screenshot-preview{display:flex;align-items:center;gap:8px;flex:0 1 auto;min-width:0;margin:0;}.mushi-screenshot-preview.open{flex-direction:column;align-items:stretch;width:100%;}.mushi-thumb{position:relative;flex:none;padding:0;border:1px solid var(--_ok);border-radius:8px;background:var(--_surface);line-height:0;overflow:visible;cursor:zoom-in;}.mushi-thumb img{display:block;width:64px;height:44px;border-radius:7px;object-fit:cover;}.mushi-shot-tools{display:flex;align-items:center;gap:6px;}.mushi-screenshot-preview.open .mushi-thumb{cursor:zoom-out;}.mushi-screenshot-preview.open .mushi-thumb img{width:100%;height:auto;max-height:40vh;object-fit:contain;}.mushi-screenshot-preview figcaption{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:13px;}.mushi-screenshot-hint{font-size:12px;color:var(--_muted);}.mushi-annotate-host{width:100%;}.mushi-annotate-host:empty{display:none;}.mushi-note{margin:0;font-size:12px;line-height:1.45;color:var(--_muted);}.mushi-error-inline,.mushi-warn{color:var(--_err);}.mushi-screenshot-review{color:var(--_fg);font-weight:600;}.mushi-empty{margin:0;padding:24px 8px;text-align:center;color:var(--_muted);}.mushi-link-btn{min-height:24px;padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer;}.mushi-btn,.mushi-submit{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 16px;border-radius:10px;font:inherit;font-size:14px;font-weight:500;cursor:pointer;}.mushi-btn{border:1px solid var(--_border);background:none;color:var(--_fg);}.mushi-btn:hover{background:var(--_surface);}.mushi-submit{min-width:88px;padding:0 20px;border:0;background:var(--_accent);color:var(--_accent-fg);font-weight:600;}.mushi-submit:hover{filter:brightness(1.08);}.mushi-submit[aria-disabled="true"]{opacity:.45;cursor:not-allowed;}.mushi-submit[data-ready="false"]{background:color-mix(in oklab,var(--_accent) 72%,var(--_bg));}.mushi-submit[aria-busy="true"],.mushi-btn[aria-busy="true"]{cursor:progress;opacity:.75;}.mushi-check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:14px;cursor:pointer;}.mushi-check input{width:18px;height:18px;margin:0;accent-color:var(--_fg);}.mushi-inline-form{display:flex;gap:8px;width:100%;}.mushi-optins{display:flex;flex-direction:column;align-items:flex-start;gap:8px;width:100%;margin-top:4px;text-align:left;}.mushi-beta-strip{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:10px;background:var(--_surface);font-size:13px;}.mushi-beta-strip p{margin:0;}.mushi-beta-perks,.mushi-changelog ul{margin:0;padding-left:18px;font-size:12px;}.mushi-changelog summary{font-size:12px;color:var(--_muted);cursor:pointer;}.mushi-spinner{display:inline-block;width:12px;height:12px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;vertical-align:-2px;animation:mushi-spin .8s linear infinite;}@keyframes mushi-spin{to{transform:rotate(360deg);}}.mushi-success{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 0 4px;text-align:center;}.mushi-success-stamp{position:relative;display:inline-flex;align-items:center;justify-content:center;width:72px;height:72px;color:var(--_ok);}.mushi-success-stamp svg{position:absolute;inset:0;width:100%;height:100%;}.mushi-success-stamp circle{fill:color-mix(in oklab,var(--_ok) 10%,transparent);stroke:currentColor;stroke-width:4;stroke-dasharray:280;stroke-dashoffset:280;transform:rotate(-90deg);transform-origin:center;animation:mushi-ring 480ms ease-out 60ms forwards;}.mushi-success-check{fill:none;stroke:currentColor;stroke-width:7;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:62;stroke-dashoffset:62;animation:mushi-ring 300ms ease-out 460ms forwards;}@keyframes mushi-ring{to{stroke-dashoffset:0;}}.mushi-success-title{margin:0;font-size:18px;font-weight:700;}.mushi-success-meta{font-size:12px;color:var(--_muted);}.mushi-success-receipt{display:flex;flex-direction:column;align-items:center;gap:6px;}.mushi-success-sla{display:inline-flex;align-items:center;gap:6px;margin:0;padding:6px 12px;border-radius:999px;background:color-mix(in oklab,var(--_ok) 12%,var(--_bg));color:var(--_fg);font-size:13px;text-align:left;}.mushi-success-sla .mushi-ico{width:16px;height:16px;color:var(--_ok);}.mushi-success-receipt-id{min-height:24px;padding:2px 6px;border:1px dashed var(--_border);border-radius:6px;background:none;color:inherit;font-family:ui-monospace,monospace;font-size:12px;cursor:pointer;}.mushi-success-rewards{width:100%;}.mushi-success-pts-award{font-size:20px;font-weight:700;}.mushi-tier-bar-track{height:4px;margin:6px 0;border-radius:2px;background:var(--_surface);overflow:hidden;}.mushi-tier-bar-fill{height:100%;background:var(--_fg);transform-origin:left;transform:scaleX(var(--mushi-tier-pct,0));}.mushi-report-list,.mushi-thread,.mushi-assistant-log{display:flex;flex-direction:column;gap:8px;}.mushi-report-row{display:flex;flex-direction:column;gap:4px;width:100%;min-height:56px;padding:10px 12px;border:1px solid var(--_border);border-radius:10px;background:none;color:var(--_fg);font:inherit;text-align:left;}button.mushi-report-row{cursor:pointer;}button.mushi-report-row:hover{background:var(--_surface);}.mushi-report-row.unread{box-shadow:inset 3px 0 0 var(--_fg);}.mushi-row-top{display:flex;align-items:center;gap:8px;min-width:0;}.mushi-row-title{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;}.mushi-row-when,.mushi-row-meta,.mushi-event time,.mushi-bubble time{font-size:12px;color:var(--_muted);}.mushi-row-when{flex:none;}.mushi-row-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.mushi-row-news{font-size:13px;}.unread .mushi-row-title,.unread .mushi-row-news{font-weight:600;}.mushi-roadmap-row .mushi-btn{align-self:flex-start;}.mushi-pill{flex:none;display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:500;line-height:1.5;white-space:nowrap;}.mushi-tone-neutral,.mushi-tone-muted{background:var(--_surface);color:var(--_muted);}.mushi-tone-info{background:${v.bg};color:color-mix(in oklab,${v.fg} 85%,var(--_fg));}.mushi-tone-attention{background:${C.bg};color:color-mix(in oklab,${C.fg} 85%,var(--_fg));}.mushi-tone-progress{background:${_.bg};color:color-mix(in oklab,${_.fg} 85%,var(--_fg));}.mushi-tone-success,.mushi-tone-success-muted{background:${g.bg};color:color-mix(in oklab,${g.fg} 85%,var(--_fg));}.mushi-skeleton{display:flex;flex-direction:column;gap:8px;}.mushi-skeleton span{height:14px;border-radius:6px;background:var(--_surface);animation:mushi-shimmer 1.2s ease-in-out infinite alternate;}.mushi-skeleton span:nth-child(2){width:82%;}.mushi-skeleton span:nth-child(3){width:58%;}@keyframes mushi-shimmer{to{opacity:.45;}}.mushi-thread-summary{display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:10px;background:var(--_surface);}.mushi-card-status,.mushi-summary-text{margin:0;}.mushi-summary-text{font-size:14px;white-space:pre-wrap;word-break:break-word;}.mushi-card-thumb{align-self:flex-start;max-width:100%;max-height:160px;border-radius:8px;object-fit:contain;}.mushi-timeline{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;}.mushi-event{display:flex;justify-content:space-between;gap:8px;padding-left:10px;border-left:2px solid var(--_border);font-size:12px;color:var(--_muted);}.mushi-event time,.mushi-bubble time{flex:none;}.mushi-bubble,.mushi-assistant-msg{display:flex;flex-direction:column;gap:2px;max-width:88%;padding:8px 12px;border-radius:12px;background:var(--_surface);white-space:pre-wrap;word-break:break-word;}.mushi-bubble.dev,.mushi-assistant-msg.dev{align-self:flex-start;border:1px solid var(--_border);border-bottom-left-radius:4px;background:none;}.mushi-bubble.mine,.mushi-assistant-msg.mine{align-self:flex-end;border-bottom-right-radius:4px;background:color-mix(in oklab,var(--_fg) 9%,var(--_bg));}.mushi-bubble strong{font-size:12px;}.mushi-bubble p{margin:0;font-size:14px;}.mushi-bubble-state{font-size:11px;color:var(--_muted);}.mushi-verify{display:flex;gap:8px;width:100%;}.mushi-verify .mushi-btn{flex:1;}.mushi-thread-composer{display:flex;align-items:flex-end;gap:8px;width:100%;}.mushi-reply{max-height:104px;overflow-y:auto;}.mushi-send{min-width:44px;padding:0;font-size:18px;}.mushi-thread-action-error{width:100%;margin:0;font-size:12px;}.mushi-assistant-greeting{margin:0;color:var(--_muted);}.mushi-ai-notice{margin:0;font-size:12px;line-height:1.45;font-weight:600;color:var(--_fg);}.mushi-lb{margin:0;padding:0;list-style:none;}.mushi-lb-row{display:flex;align-items:center;gap:10px;min-height:40px;border-bottom:1px solid var(--_border);font-size:13px;}.mushi-lb-row.me{font-weight:600;}.mushi-xapp-group{display:flex;flex-direction:column;gap:6px;}.mushi-xapp-app-name{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;font-weight:600;color:var(--_muted);}.mushi-app-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:22px;height:22px;border:1px solid var(--_border);border-radius:6px;background:var(--_surface);overflow:hidden;}.mushi-app-icon-img{display:block;width:16px;height:16px;object-fit:contain;}.mushi-app-icon-initials{font-size:9px;font-weight:700;line-height:1;color:var(--_muted);}.mushi-toast{position:fixed;display:flex;align-items:center;gap:6px;max-width:min(380px,calc(100vw - 32px));padding:6px 6px 6px 14px;background:var(--_bg);color:var(--_fg);border:1px solid var(--_border);border-radius:12px;box-shadow:var(--_shadow);font-size:14px;animation:mushi-open 180ms ease-out both;}.mushi-toast span{display:flex;flex-direction:column;flex:1;min-width:0;}.mushi-toast strong{font-weight:600;}.mushi-toast small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--_muted);}.mushi-toast .mushi-btn{padding:0 12px;}.mushi-toast.bottom-right,.mushi-toast.bottom-left{bottom:calc(var(--mushi-bottom,${H}px) + ${F}px);}.mushi-toast.top-right,.mushi-toast.top-left{top:calc(var(--mushi-top,${H}px) + ${F}px);}.mushi-toast.bottom-right,.mushi-toast.top-right,.mushi-toast.banner-top,.mushi-toast.banner-bottom{right:var(--mushi-right,${H}px);}.mushi-toast.bottom-left,.mushi-toast.top-left{left:var(--mushi-left,${H}px);}.mushi-toast.banner-top{top:calc(var(--mushi-banner-offset,${ne}px) + 12px);}.mushi-toast.banner-bottom{bottom:calc(var(--mushi-banner-offset,${ne}px) + 12px);}.mushi-banner{position:fixed;left:0;right:0;box-sizing:border-box;min-height:${ne}px;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 calc(16px + env(safe-area-inset-right,0px)) 0 calc(16px + env(safe-area-inset-left,0px));font-family:${f};font-size:12px;letter-spacing:0.04em;white-space:nowrap;overflow:hidden;z-index:var(--mushi-banner-z,${S});animation:mushi-banner-slide-in ${Ke}ms ${m} both;}.mushi-banner.top{top:0;padding-top:env(safe-area-inset-top,0px);}.mushi-banner.bottom{bottom:0;padding-bottom:env(safe-area-inset-bottom,0px);}.mushi-banner.neon{background:${E};color:${y};border-bottom:1.5px solid ${x};}.mushi-banner.neon.bottom{border-top:1.5px solid ${x};border-bottom:none;}.mushi-banner.neon .mushi-banner-btn{background:rgba(0,0,0,0.14);color:${y};border:1px solid rgba(0,0,0,0.22);}.mushi-banner.neon .mushi-banner-btn:hover{background:rgba(0,0,0,0.22);}.mushi-banner.brand{background:${p};color:${T};border-bottom:1.5px solid ${k};}.mushi-banner.brand.bottom{border-top:1.5px solid ${k};border-bottom:none;}.mushi-banner.brand .mushi-banner-btn{background:rgba(255,255,255,0.18);color:${T};border:1px solid rgba(255,255,255,0.32);}.mushi-banner.brand .mushi-banner-btn:hover{background:rgba(255,255,255,0.28);}.mushi-banner.subtle{background:${a?"rgba(15,14,12,0.88)":"rgba(248,244,237,0.92)"};backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);color:${u};border-bottom:1px solid ${c};}.mushi-banner.subtle.bottom{border-top:1px solid ${c};border-bottom:none;}.mushi-banner.subtle .mushi-banner-btn{background:${a?"rgba(242,235,221,0.10)":"rgba(14,13,11,0.08)"};color:${u};border:1px solid ${c};}.mushi-banner.subtle .mushi-banner-btn:hover{background:${a?"rgba(242,235,221,0.18)":"rgba(14,13,11,0.14)"};}.mushi-banner-label{flex:1;text-align:center;overflow:hidden;text-overflow:ellipsis;}.mushi-banner--rich{justify-content:space-between;gap:12px;min-height:${ne}px;height:auto;padding:4px 12px 4px 16px;white-space:normal;}.mushi-banner-body{display:flex;align-items:center;gap:8px;flex:1;min-width:0;overflow:hidden;}.mushi-banner-pill{display:inline-flex;flex-shrink:0;align-items:center;padding:1px 6px;border-radius:3px;border:1px solid currentColor;font-size:10px;font-weight:700;letter-spacing:0.18em;text-transform:uppercase;opacity:0.92;}.mushi-banner.neon .mushi-banner-pill{border-color:rgba(10,26,10,0.45);background:rgba(10,26,10,0.12);}.mushi-banner.brand .mushi-banner-pill{border-color:rgba(255,255,255,0.45);background:rgba(255,255,255,0.14);}.mushi-banner.subtle .mushi-banner-pill{border-color:${c};background:${a?"rgba(242,235,221,0.08)":"rgba(14,13,11,0.06)"};}.mushi-banner-message{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500;line-height:1.3;opacity:0.9;}.mushi-banner-actions{display:inline-flex;align-items:center;gap:0;flex-shrink:1;min-width:0;overflow-x:auto;scrollbar-width:none;font-size:11px;}.mushi-banner-actions::-webkit-scrollbar{display:none;}@media (max-width:${Y}px){.mushi-banner-actions .mushi-banner-extra{display:none;}}.mushi-banner-link{display:inline-flex;align-items:center;padding:2px 8px;border:none;background:transparent;color:inherit;cursor:pointer;font:inherit;letter-spacing:inherit;text-decoration:none;opacity:0.88;transition:opacity ${ae}ms ${m};flex-shrink:0;}.mushi-banner-link:hover{opacity:1;}.mushi-banner-link:focus-visible{outline:2px solid ${p};outline-offset:2px;border-radius:2px;}.mushi-banner-divider{opacity:0.28;padding:0 1px;user-select:none;flex-shrink:0;}.mushi-banner--rich .mushi-banner-dismiss{margin-left:4px;}.mushi-banner-btn{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:3px;cursor:pointer;font:inherit;letter-spacing:inherit;transition:opacity ${ae}ms ${m};flex-shrink:0;height:24px;line-height:1;}.mushi-banner-btn:focus-visible{outline:2px solid ${p};outline-offset:2px;}.mushi-banner-dismiss{background:transparent !important;border:none !important;opacity:0.65;cursor:pointer;font-size:14px;line-height:1;padding:4px 8px;margin-left:auto;flex-shrink:0;color:inherit;border-radius:3px;transition:opacity ${ae}ms ${m};}.mushi-banner-dismiss:hover{opacity:1;background:rgba(0,0,0,0.12) !important;}.mushi-banner.neon .mushi-banner-dismiss:hover{background:rgba(0,0,0,0.18) !important;}.mushi-banner-my-reports{background:transparent;border:none;cursor:pointer;font-size:11px;font-family:${f};opacity:0.75;color:inherit;padding:2px 6px;border-radius:3px;white-space:nowrap;flex-shrink:0;transition:opacity ${ae}ms ${m};margin-left:4px;}.mushi-banner-my-reports:hover{opacity:1;background:rgba(0,0,0,0.10);}.mushi-banner.neon .mushi-banner-my-reports:hover{background:rgba(0,0,0,0.18);}@keyframes mushi-banner-slide-in{from{transform:translateY(calc(-1 * 100%));opacity:0.5;}to{transform:translateY(0);opacity:1;}}.mushi-banner.bottom{animation-name:mushi-banner-slide-in-bottom;}@keyframes mushi-banner-slide-in-bottom{from{transform:translateY(100%);opacity:0.5;}to{transform:translateY(0);opacity:1;}}@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:0.001ms !important;animation-iteration-count:1 !important;transition-duration:0.001ms !important;}.mushi-success-stamp circle,.mushi-success-check{stroke-dashoffset:0;}.mushi-count.shake,.mushi-tile:active{animation:none;transform:none;}}`}var kp={bug:'<rect x="7" y="8" width="10" height="12" rx="5"/><path d="M9 8a3 3 0 0 1 6 0M12 12v8M3 13h4M17 13h4M4 7l3 2.5M20 7l-3 2.5M4 20l3-2.5M20 20l-3-2.5"/>',slow:'<path d="M3.5 18a8.5 8.5 0 1 1 17 0"/><path d="M12 18l-4.5-5"/><circle cx="12" cy="18" r="1.2"/>',visual:'<rect x="3" y="4" width="18" height="16" rx="2"/><path d="M3 9h18M9 9v11"/>',confusing:'<circle cx="12" cy="12" r="9"/><path d="M9.5 9.5a2.5 2.5 0 1 1 3.4 2.3c-.6.3-.9.8-.9 1.5V14M12 17.5v.01"/>',idea:'<path d="M9 18h6M10 21h4M12 3a6 6 0 0 0-3.6 10.8c.6.4.6.9.6 1.5V16h6v-.7c0-.6 0-1.1.6-1.5A6 6 0 0 0 12 3z"/>',other:'<path d="M5 12h.01M12 12h.01M19 12h.01"/>',camera:'<path d="M4 8h3l2-3h6l2 3h3v11H4z"/><circle cx="12" cy="13" r="3.5"/>',crosshair:'<circle cx="12" cy="12" r="8"/><path d="M12 2v5M12 17v5M2 12h5M17 12h5"/>',lock:'<rect x="5" y="11" width="14" height="10" rx="2"/><path d="M8 11V7a4 4 0 0 1 8 0v4"/>',check:'<path d="M5 12.5l4.5 4.5L19 7.5"/>',send:'<path d="M5 12h14M13 6l6 6-6 6"/>',pencil:'<path d="M4 20h4L19 9l-4-4L4 16z"/>',close:'<path d="M6 6l12 12M18 6L6 18"/>',clock:'<circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/>'};function de(e,t="mushi-ico"){return `<svg class="${t}" viewBox="0 0 24 24" aria-hidden="true" focusable="false">${kp[e]}</svg>`}var jt=new Set(["bug","slow","visual","confusing","idea","other"]);un();var $=_t,Rp=["bug","slow","visual","confusing"],qa=50.27,_p="Hide the bug button for this visit";function pe(e,t,r="",n=""){return `<button type="button" class="${r}" data-action="${e}"${n}>${t}</button>`}function Wa(e){if(e.step==="report")return Pp(e);if(e.step==="success")return Np(e);let t=e.views;if(!t)return Cp(e);switch(e.step){case "reports":return t.reportsView(e);case "report-detail":return t.detailView(e);case "assistant":return t.assistantView(e);case "roadmap":return t.roadmapView(e);case "leaderboard":return t.leaderboardView(e);case "account":return t.accountView(e);case "cross-app-reports":return t.crossAppView(e)}}var Ka=new Set(["reports","report-detail","assistant","roadmap","leaderboard","account","cross-app-reports"]);function Cp(e){let t=e.locale.flows,r=e.step==="report-detail"?e.locale.panel.reportTitle:e.step==="reports"?t.reports.title:"";return {header:dn(e,r,true),lead:"",body:Ja(t.reports.loading),footer:""}}var Va={esc:_t,btn:pe,renderHeader:dn,chipLabel:mi,skeleton:Ja,formatRelativeTime:ba,renderAppIconHtml:Ra};function Tp(e){let t=e.locale.step1.moreNav,r=[];return e.callbacks.assistantEnabled&&r.push(pe("assistant",$(e.callbacks.assistantLabel||e.locale.assistant.defaultLabel),"mushi-menu-item",' role="menuitem"')),e.callbacks.onFeatureBoardRequest&&r.push(pe("roadmap",$(t.communityIdeas),"mushi-menu-item",' role="menuitem"')),e.rewardsState&&r.push(pe("open-leaderboard",$(t.leaderboard),"mushi-menu-item",' role="menuitem"')),(e.rewardsState||e.testerInfo)&&r.push(pe("open-account",$(e.testerInfo?e.testerInfo.public_handle??e.testerInfo.display_name??t.myAccount:t.joinCommunity),"mushi-menu-item",' role="menuitem"')),r}function dn(e,t,r=false){let n=e.locale.panel,i=e.step==="report"||e.step==="success",o=e.unreadCount,s=i&&e.callbacks.onReporterReportsRequest?pe("reports",`${$(n.yourReports)}${o?` <span class="mushi-badge">${$(n.newCount.replace("{n}",String(o)))}</span>`:""}`,"mushi-pill-btn"):"",a=i?Tp(e):[],u=a.length?`<div class="mushi-menu-wrap">${pe("toggle-more-nav","\u22EF","mushi-icon-btn",` aria-haspopup="menu" aria-expanded="${e.showMoreNav}" aria-label="${$(n.moreOptions)}"`)}${e.showMoreNav?`<div class="mushi-menu" role="menu">${a.join("")}</div>`:""}</div>`:"",c=e.step==="report"&&e.chip&&jt.has(e.chip)?`<span class="mushi-header-type" aria-hidden="true">${de(e.chip)}</span>`:"",p=r?pe("back","\u2190","mushi-icon-btn",` aria-label="${$(e.locale.widget.back)}"`):c||(e.pageFaviconHref?`<img class="mushi-header-host-icon" src="${$(e.pageFaviconHref)}" alt="" referrerpolicy="no-referrer" width="20" height="20" />`:""),h=e.step==="report"&&e.config.betaMode?.enabled?Ap(e):"";return `${p}<h2 id="mushi-title" class="mushi-title">${$(t)}</h2>${h}${s}${u}${pe("close","\u2715","mushi-icon-btn",` aria-label="${$(e.locale.widget.close)}"`)}`}function Ap(e){let t=e.locale.flows.betaStrip,r=pe("toggle-beta","Beta","mushi-beta-chip",` aria-expanded="${e.betaOpen}" aria-controls="mushi-beta-pop" aria-label="${$(t.ariaLabel)}"`);return e.betaOpen?`${r}${Op(e)}`:r}function za(e){if(!e.sdkFreshness||e.config.outdatedBanner==="off"||e.config.outdatedBanner==="console-only")return "";let{latest:t,current:r,deprecated:n,message:i}=e.sdkFreshness;return !t&&!n?"":`<div class="mushi-outdated" role="status"><strong>Mushi SDK ${$(r)}</strong> ${t?`latest is ${$(t)}.`:"needs attention."}${i?` <span>${$(i)}</span>`:""}</div>`}function Ga(e){return e.config.brandFooter!==true?"":`<div class="mushi-brand-footer"><a class="mushi-brand-link" href="${$(Ea(e.brandRef))}" target="_blank" rel="noopener noreferrer" data-action="brand-footer">${$(e.locale.flows.poweredBy)}<span aria-hidden="true"> \u2197</span></a></div>`}function mi(e,t){if(t==="idea"||t==="feature")return e.config.featureRequestLabel||e.rc.categories.idea;let r=e.resolveCustomCategory(t);return r?r.label:t==="other"?e.locale.step1.categories.other:e.rc.categories[t]??""}function Ip(e,t,r,n){let i=n===t,o=i||n===null&&r===0?"0":"-1",s=jt.has(t)?void 0:e.resolveCustomCategory(t),a=s?s.icon?`<span class="mushi-tile-emoji" aria-hidden="true">${$(s.icon)}</span>`:de("other"):de(jt.has(t)?t:"other");return `<button type="button" class="mushi-tile" role="radio" aria-checked="${i}" tabindex="${o}" data-action="chip" data-category="${$(t)}"><span class="mushi-tile-ico">${a}</span><span class="mushi-tile-label">${$(mi(e,t))}</span><span class="mushi-tile-check" aria-hidden="true">${de("check")}</span></button>`}function ja(e){let t=e.locale.step3,r=e.locale.panel.prompts??{},n=e.chip;return n==="idea"?e.config.featureRequestDescription||r.idea||t.featurePlaceholder:n&&n in r?r[n]||t.descriptionPlaceholder:r.other||t.descriptionPlaceholder}function Mp(e){let t=e.locale.panel,r=e.draftLength>an-400?`<span class="mushi-count-max">${e.draftLength}/${an}</span>`:"";if(!e.charsNeeded){let s=$(e.locale.step3.submitHint.replace("{key}",va(wa())));return `<span class="mushi-count ok" id="mushi-hint" data-role="hint">${de("check")}<span>${s}</span>${r}</span>`}let n=e.minLength>0?Math.min(1,(e.minLength-e.charsNeeded)/e.minLength):0,i=(qa*(1-n)).toFixed(2),o=(t.charsLeft??"{n} more characters").replace("{n}",String(e.charsNeeded));return `<span class="mushi-count${e.lengthNudge?" nudge":""}${e.nudgeShake?" shake":""}" id="mushi-hint" data-role="hint"><svg class="mushi-ring" viewBox="0 0 20 20" aria-hidden="true"><circle class="mushi-ring-track" cx="10" cy="10" r="8"/><circle class="mushi-ring-fill" cx="10" cy="10" r="8" stroke-dasharray="${qa}" stroke-dashoffset="${i}"/></svg><span>${$(o)}</span>${r}</span>`}function Lp(e){let t=e.chip;if(!t||t==="idea"||t==="other")return [];let r=e.resolveCustomCategory(t);return r?r.intents??[]:(e.locale.step2.intents[t]??[]).slice(0,-1).slice(0,4)}function Dp(e){let t=[...Rp];e.featureRequestCard!==false&&t.push("idea"),t.push("other");let r=new Set(t),n=[];for(let{id:i}of e.categories??[])r.has(i)||(r.add(i),n.push(i));return {primary:t,more:n}}function Pp(e){let t=e.locale,r=t.panel,n=t.step3,{primary:i,more:o}=Dp(e.config),s=e.showAllCategories?[...i,...o]:i,a=s.map((m,S)=>Ip(e,m,S,s.includes(e.chip??"")?e.chip:null)).join(""),u=o.length&&!e.showAllCategories?`<div class="mushi-more-row">${pe("show-all-categories",$(r.more),"mushi-chip mushi-chip-sm mushi-chip-more")}</div>`:"",c=Lp(e),p=c.length?`<div class="mushi-chips mushi-intents" role="radiogroup" aria-label="${$(mi(e,e.chip))}">${c.map((m,S)=>`<button type="button" class="mushi-chip mushi-chip-sm" role="radio" aria-checked="${e.intent===m}" tabindex="${e.intent===m||!e.intent&&S===0?"0":"-1"}" data-action="intent" data-intent="${$(m)}">${$(m)}</button>`).join("")}</div>`:"",h=e.screenshotCapturing?n.screenshotCapturing:e.screenshotError?n.screenshotRetry:n.screenshotButton,b=e.elementCapturing?n.elementCapturing:e.elementError?n.elementFailed:e.elementSelected?n.elementSelected:r.pointAt,A='<span class="mushi-spinner" aria-hidden="true"></span>',T=(m,S,B,j,N,Z)=>pe(m,`${N?A:S}${Z?`<span class="mushi-tool-badge" aria-hidden="true">${de("check")}</span>`:""}`,`mushi-tool${j}`,`${N?" disabled":""} aria-label="${$(B)}" title="${$(B)}"`),E=`${e.callbacks.onScreenshotAnnotateRequest?T("annotate-screenshot",de("pencil"),r.markUp,"",false,false):""}${e.allowScreenshotRemove?T("remove-screenshot",de("close"),r.remove,"",false,false):""}`,y=e.screenshotAttached&&e.screenshotPreview?`<figure class="mushi-screenshot-preview${e.previewOpen?" open":""}"><button type="button" class="mushi-thumb" data-action="toggle-preview" aria-expanded="${e.previewOpen}" title="${$(e.screenshotHint??n.screenshotAttached)}"><img src="${$(e.screenshotPreview)}" alt="${$(n.screenshotPreviewAlt)}" /><span class="mushi-tool-badge" aria-hidden="true">${de("check")}</span></button><figcaption><span class="mushi-shot-tools">${E}</span>${e.screenshotHint?`<span class="mushi-screenshot-hint${e.previewOpen||e.screenshotReview?"":" mushi-sr"}">${$(e.screenshotHint)}</span>`:""}<span class="mushi-sr">${$(n.screenshotAttached)}</span></figcaption></figure><div class="mushi-annotate-host" data-role="annotate-host"></div>`:e.screenshotAvailable?T("screenshot",de("camera"),h,e.screenshotError?" error":"",e.screenshotCapturing,false):"",x=e.elementAvailable?T("element",de("crosshair"),b,`${e.elementSelected?" active":""}${e.elementError?" error":""}`,e.elementCapturing,e.elementSelected):"",k=e.screenshotError&&e.screenshotErrorReason?`<p class="mushi-note mushi-error-inline" role="status" data-role="screenshot-reason">${$(n.screenshotErrors[e.screenshotErrorReason])}${e.callbacks.onScreenshotShareTabRequest?` ${pe("screenshot-share-tab",$(n.screenshotShareTab),"mushi-link-btn")}`:""}</p>`:"",v=e.screenshotReview&&e.screenshotAttached&&e.screenshotPreview?`<p class="mushi-note mushi-screenshot-review" role="status" data-role="screenshot-review">${$(n.screenshotReview)}</p>`:"",C=e.submitNotSent?`<p class="mushi-note mushi-error-inline" data-role="not-sent">${$(e.submitNotSent==="throttled"?n.notSentThrottled:n.notSentBlocked)}</p>`:"",_=e.identifiedUser?.name??e.identifiedUser?.email,g=r.privacyShort??"Only the developer sees this",f=`<span class="mushi-privacy" title="${$(r.privacy)}">${de("lock")}<span class="mushi-privacy-text" aria-hidden="true">${$(g)}${_?` \xB7 ${$(_)}`:""}</span><span class="mushi-sr">${$(r.privacy)}${_?` ${$(_)}`:""}</span></span>`;return {header:dn(e,e.config.expandedTitle||r.title),lead:`<div class="mushi-tiles" role="radiogroup" aria-label="${$(r.typeQuestion??r.title)}">${a}</div>${u}${p}<textarea class="mushi-textarea" data-role="description" rows="3" maxlength="${an}" placeholder="${$(ja(e))}" aria-label="${$(ja(e))}" aria-describedby="mushi-hint"></textarea>`,meter:Mp(e),body:`${v}<div class="mushi-attachments">${y}${x}</div>${k}${C}${e.launcherDismissible?`<p class="mushi-note">${pe("hide-launcher",$(t.widget.hideLauncher??_p),"mushi-link-btn")}</p>`:""}`,footer:`${f}<button type="button" class="mushi-submit" data-action="submit" data-ready="${e.canSend}" aria-disabled="${e.submitting}"${e.submitting?' aria-busy="true"':""}>${$(e.submitting?t.widget.submitting:r.send)}${e.submitting?"":de("send")}</button>`}}function Ya(e){let t=e.config.betaMode?.contactEmail?.trim();if(!t||!/^[^\s@<>"]+@[^\s@<>"]+$/.test(t))return "";let r=`<a class="mushi-link-btn" href="mailto:${$(encodeURIComponent(t).replace(/%40/g,"@"))}">${$(t)}</a>`;return `<p class="mushi-note mushi-beta-contact">${$(e.locale.flows.betaStrip.contactHint).replace($("{email}"),r)}</p>`}function $p(e){let t=e.config.betaMode;if(!t?.enabled)return "";let r=e.locale.flows.betaStrip,n=t.appName?r.teamSees.replace("{appName}",t.appName):r.teamSeesGeneric;return `<div class="mushi-beta-receipt"><p class="mushi-note">${$(n)}</p>${Ya(e)}</div>`}function Bp(e){let t=e.config.betaMode?.changelogItems?.[0];if(!t)return "";let r=$(e.locale.flows.changelog.whatsNew.replace("{version}",t.version));return `<details class="mushi-changelog"><summary>${t.date?`${r} \xB7 ${$(t.date)}`:r}</summary><ul>${t.items.map(n=>`<li>${$(n)}</li>`).join("")}</ul></details>`}function Op(e){let t=e.config.betaMode,r=e.locale.flows.betaStrip,n=$(t.appName??"This app"),i=t.message?$(t.message):$(r.defaultMessage).replace("{appName}",n),o=t.perks??[];return `<div class="mushi-beta-strip mushi-beta-pop" id="mushi-beta-pop" role="note" aria-label="${$(r.ariaLabel)}"><p>${i}</p>${Ya(e)}${o.length?`<ul class="mushi-beta-perks">${o.map(s=>`<li>${$(s)}</li>`).join("")}</ul>`:""}${Bp(e)}</div>`}function Xa(e){let t=e.locale.flows.success;switch(e.lastSubmitFailureKind){case "rate_limited":return t.rateLimited;case "quota":return t.quotaBlocked;case "permanent":return t.permanentFailed;case "retrying":return t.retrying}return e.lastSubmitQueuedOffline?t.queuedOffline:null}function Fp(e){let t=e.locale.flows.success,r=e.lastSubmitFailureKind;if(Xa(e)){let s=r==="rate_limited"?t.rateLimitedHint:r==="quota"?t.quotaBlockedHint:r==="permanent"?t.permanentFailedHint:r==="retrying"?t.retryingHint:t.queuedHint;return `<p class="mushi-note mushi-success-receipt mushi-warn" role="status">${$(s)}</p>`}let n=$((e.config.responseSlaLabel??"").trim()||t.slaDefault);if(!e.lastReportId)return `<div class="mushi-success-receipt" role="status"><p class="mushi-success-sla">${de("clock")}<span>${n}</span></p><p class="mushi-note"><span class="mushi-spinner" aria-hidden="true"></span> ${$(t.delivering)}</p></div>`;let i=$(e.lastReportId),o=(e.config.dashboardUrl??"").replace(/\/$/,"");return `<div class="mushi-success-receipt" role="status"><p class="mushi-success-sla">${de("clock")}<span>${n}</span></p><p class="mushi-note">${$(t.receipt)} <button type="button" class="mushi-success-receipt-id" data-action="copy-report-id" data-copy-id="${i}" aria-label="Copy report id ${i}">#${$(e.lastReportId.slice(0,8))}</button>${o?` \xB7 <a class="mushi-link-btn" href="${$(`${o}/reports/${encodeURIComponent(e.lastReportId)}`)}" target="_blank" rel="noopener noreferrer">${$(t.trackOnMushi)} \u2197</a>`:""}</p>${e.lastSubmitScreenshotDropped?`<p class="mushi-note mushi-warn">${$(t.screenshotDropped)}</p>`:""}</div>`}function Hp(e){let t=!!e.lastReportId,r=t?'<path class="mushi-success-check" d="M31 51l13 13 26-27"/>':"",n=t?`<p class="mushi-success-title">${$(e.locale.panel.delivered??"Got it")}</p>`:"";return `<div class="mushi-success-stamp" aria-hidden="true"><svg viewBox="0 0 100 100"><circle cx="50" cy="50" r="44"/>${r}</svg></div>${n}`}function Ja(e,t=3){return `<div class="mushi-skeleton" role="status" aria-label="${$(e)}">${"<span></span>".repeat(t)}</div>`}function Np(e){let t=e.locale.flows.success,r=e.submittedAt??new Date,n=Xa(e),i=!n&&e.lastReportId&&e.callbacks.onReporterReportsRequest;return {header:dn(e,n??e.rc.ui.sent),lead:"",body:`<div class="mushi-success">${n?"":Hp(e)}<time class="mushi-success-meta" datetime="${r.toISOString()}">${$(xa(r,e.config.locale==="auto"?void 0:e.config.locale))}</time>${Fp(e)}${n?"":$p(e)+(e.views?.renderOptIns(e)??"")}${e.rewardsState?Up(e):""}</div>`,footer:`${i?pe("track-report",$(t.trackReport),"mushi-btn"):"<span></span>"}${pe("done",$(t.done),"mushi-submit")}`}}function Up(e){let{tier:t,nextTier:r,totalPoints:n,pointsForReport:i}=e.rewardsState,o=n+i,s=100,a="";if(r){let u=t?.pointsThreshold??0,c=r.pointsThreshold;s=c>u?Math.round(Math.min(1,(o-u)/(c-u))*100):100;let p=Math.max(0,c-o);a=p>0?`${p.toLocaleString()} pts to ${$(r.displayName)}`:`\u{1F389} ${$(r.displayName)}`;}return `<div class="mushi-success-rewards"><div class="mushi-success-pts-award">+${i} pts</div>${r?`<div class="mushi-tier-bar-track" role="progressbar" aria-valuenow="${s}" aria-valuemin="0" aria-valuemax="100" aria-label="${$(r.displayName)}"><div class="mushi-tier-bar-fill" style="--mushi-tier-pct:${s/100}"></div></div><p class="mushi-note">${a}</p>`:""}</div>`}function Za(e){return Ct(e)}function ih(e){let t=e.toLowerCase();return /i('m| am) not sure|i don't know|not sure|cannot help|can't help|unable to|don't have enough|outside (my|of) (scope|knowledge)|file a (bug )?report|報告/.test(t)||/わかりません|分かりません|不明|報告して/.test(e)}var yi=null,vi=null;function ou(){return vi??=Promise.resolve().then(()=>(iu(),nu)).then(e=>(e.initViews(Va),yi=e,e)),vi}var bi=["notice","header","lead","meter","body","footer","brand"],Ei=["description","reporter-reply","magic-link-email","optin-email"],oh=["bug","slow","visual","confusing","other"],sh='button:not([disabled]),textarea:not([disabled]),input:not([disabled]),a[href],[tabindex]:not([tabindex="-1"])',hn=class e{host;shadow;colorSchemeMq=null;onColorSchemeChange=null;config;callbacks;locale;rc;lang="en";isOpen=false;openCount=0;step="report";styleEl;styleKey="";themeWarnings=[];panel;scroller;regionEls={};regionHtml={};live;renderedStep=null;triggerEl=null;triggerKey="";bannerEl=null;bannerKey="";toastEl=null;opener=null;chip=null;intent=null;showAllCategories=false;showMoreNav=false;lengthNudge=false;nudgeShake=false;betaOpen=false;focusDescriptionNext=false;screenshotAttached=false;screenshotCapturing=false;screenshotError=false;screenshotErrorReason=null;screenshotByUser=false;previewOpen=false;screenshotReview=false;allowScreenshotRemove=true;screenshotAvailable=true;elementAvailable=true;drafts={};screenshotPreview=null;elementSelected=false;elementCapturing=false;elementError=false;submitting=false;selectorHint=null;triggerVisible=true;triggerShrunk=false;triggerHiddenByScroll=false;sdkFreshness=null;brandRef=null;brandImpressionSent=false;reporterReports=[];featureBoard=[];reporterComments=[];timeline=null;pendingReplies=[];replySeq=0;selectedReportId=null;listLoading=false;threadLoading=false;actionPending=false;reporterError=null;threadError=null;actionError=null;channels={email:false,push:false,emailPrefill:""};emailOptInOpen=false;emailState="idle";pushState="idle";attachedLaunchers=[];smartHideCleanup=null;smartHideTimer=null;submittedAt=null;successTimer=null;pointerDownAt=null;renderDeferred=false;onPointerRelease=()=>{this.pointerDownAt=null,this.renderDeferred&&(this.renderDeferred=false,setTimeout(()=>this.render(),0));};rewardsState=null;leaderboardEntries=null;leaderboardLoading=false;lastReportId=null;lastSubmitQueuedOffline=false;lastSubmitFailureKind;lastSubmitScreenshotDropped=false;submitNotSent=null;bannerDismissed=false;bannerResizeObserver=null;fabPos=null;fabPosKey="";draggableSet=false;barClearance=0;clampedForClearance=0;tuckCleanup=null;tuckTimer=null;resizeFrame=null;lateMeasureTimer=null;onViewportResize=()=>{this.resizeFrame===null&&(this.resizeFrame=requestAnimationFrame(()=>{this.resizeFrame=null,this.barClearance=this.measureFixedBars(),this.render();}));};launcherDismissed=da();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;constructor(t={},r){this.config={position:t.position??"bottom-right",anchor:t.anchor??{},theme:t.theme??"auto",triggerText:t.triggerText||"\u{1F41B}",expandedTitle:t.expandedTitle??"",mode:t.mode??"conversational",locale:t.locale??"auto",zIndex:t.zIndex??99999,trigger:t.trigger??"auto",bannerConfig:t.bannerConfig??{},attachToSelector:t.attachToSelector??"",inset:t.inset??{},respectSafeArea:t.respectSafeArea??true,hideOnSelector:t.hideOnSelector??"",hideOnRoutes:t.hideOnRoutes??[],environments:t.environments??{},smartHide:t.smartHide??false,draggable:t.draggable??false,mobileTrigger:t.mobileTrigger??(ah(t)?"auto":"edge-tab"),avoidFixedBars:t.avoidFixedBars??true,tuckOnScroll:t.tuckOnScroll??true,dismissible:t.dismissible??true,brandFooter:t.brandFooter??false,outdatedBanner:t.outdatedBanner??"auto",screenshotSensitiveHint:t.screenshotSensitiveHint??true,betaMode:t.betaMode??{},minDescriptionLength:t.minDescriptionLength??8,dashboardUrl:t.dashboardUrl??"",responseSlaLabel:t.responseSlaLabel??"",featureRequestCard:t.featureRequestCard??true,featureRequestLabel:t.featureRequestLabel??"",featureRequestDescription:t.featureRequestDescription??"",avoidSelectors:t.avoidSelectors??[],categories:t.categories??[],accent:t.accent??"",accentText:t.accentText??""},this.callbacks=r,this.draggableSet=t.draggable!==void 0,this.locale=fi(this.config.locale==="auto"?void 0:this.config.locale),this.rc=this.resolveCopy();let n=ha();n?.turns.length&&(this.assistantTurns=n.turns,this.assistantThreadId=n.threadId),this.host=document.createElement("div"),this.host.id="mushi-mushi-widget",this.shadow=this.host.attachShadow({mode:"open"}),this.styleEl=document.createElement("style"),this.panel=document.createElement("div"),this.panel.setAttribute("role","dialog"),this.panel.setAttribute("aria-modal","true"),this.panel.setAttribute("aria-labelledby","mushi-title"),this.scroller=document.createElement("div"),this.scroller.className="mushi-scroll";for(let i of bi){let o=document.createElement("div");o.className=`mushi-${i}`,o.dataset.region=i,this.regionEls[i]=o;}this.scroller.append(this.regionEls.lead,this.regionEls.meter,this.regionEls.body),this.live=document.createElement("div"),this.live.className="mushi-sr",this.live.setAttribute("role","status"),this.live.setAttribute("aria-live","polite"),this.panel.append(this.regionEls.notice,this.regionEls.header,this.scroller,this.regionEls.footer,this.regionEls.brand,this.live),this.shadow.append(this.styleEl,this.panel),this.bindPanelEvents();}resolveCopy(){let t=this.config.locale==="auto"?typeof navigator<"u"?navigator.language??"":"":this.config.locale;return this.lang=(t||"en").split(/[-_]/)[0].toLowerCase(),Za(this.lang)}mount(){this.host.isConnected||(this.syncHostChromeState(),document.body.appendChild(this.host),window.addEventListener("pointerup",this.onPointerRelease,true),window.addEventListener("pointercancel",this.onPointerRelease,true),this.syncAttachedLaunchers(),this.syncSmartHide(),this.syncScrollTuck(),this.bindColorSchemeListener(),window.addEventListener("resize",this.onViewportResize),window.visualViewport?.addEventListener("resize",this.onViewportResize),this.render(),this.onViewportResize(),this.lateMeasureTimer=setTimeout(()=>{this.lateMeasureTimer=null,this.onViewportResize();},1200));}getIsMounted(){return this.host.isConnected}captureMode=false;setCaptureMode(t){this.captureMode=t,t?(this.host.style.setProperty("display","none","important"),this.isOpen&&this.close()):this.host.style.removeProperty("display");}updateConfig(t={}){let r=this.config.trigger,n=JSON.stringify(this.config.bannerConfig??null),i=Object.fromEntries(Object.entries(t).filter(([,a])=>a!==void 0));this.config={...this.config,...i,...t.triggerText!==void 0?{triggerText:t.triggerText||"\u{1F41B}"}:{}},this.locale=fi(this.config.locale==="auto"?void 0:this.config.locale),this.rc=this.resolveCopy();let o=this.config.trigger==="banner"&&r!=="banner",s=JSON.stringify(this.config.bannerConfig??null)!==n;(o||s)&&(this.bannerDismissed=false),t.draggable!==void 0&&(this.draggableSet=true),this.host.isConnected&&this.syncHostChromeState(),this.syncAttachedLaunchers(),this.syncSmartHide(),this.host.isConnected&&this.syncScrollTuck(),this.render();}resolveCustomCategory(t){return this.config.categories?.find(r=>r.id===t)}open(t){if(this.isOpen||this.captureMode)return;this.rememberOpener(),this.isOpen=true,this.openCount++,this.screenshotAttached=false,this.screenshotCapturing=false,this.screenshotError=false,this.screenshotErrorReason=null,this.screenshotPreview=null,this.screenshotByUser=false,this.previewOpen=false,this.screenshotReview=false,this.elementSelected=false,this.elementCapturing=false,this.elementError=false,this.submitting=false,this.submittedAt=null,this.removeSelectorHint(),this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.lastSubmitFailureKind=void 0,this.lastSubmitScreenshotDropped=false,this.submitNotSent=null,this.emailOptInOpen=false,this.emailState="idle",this.drafts={},this.intent=null,this.lengthNudge=false,this.betaOpen=false,this.step="report";let r=t?.category,n=r?this.resolveCustomCategory(r):void 0;this.chip=t?.featureRequest?"idea":n||r&&oh.includes(r)?r:null,this.showAllCategories=!!n,this.removeToast(),this.barClearance=this.measureFixedBars(),this.render(),this.callbacks.onOpen();}close(){this.isOpen&&(this.isOpen=false,this.showAllCategories=false,this.showMoreNav=false,this.betaOpen=false,this.render(),this.restoreOpenerFocus(),this.callbacks.onClose());}openAssistantTab(){if(!this.callbacks.assistantEnabled){this.open();return}this.ensureOpen(),this.step="assistant",this.assistantError=null,this.render();}ensureOpen(){this.isOpen||this.captureMode||(this.rememberOpener(),this.isOpen=true,this.openCount++,this.callbacks.onOpen());}async sendAssistantMessage(t){let r=t.trim();if(!(!r||this.assistantSending||!this.callbacks.onAssistantAsk)){this.assistantSending=true,this.assistantError=null,this.assistantTurns.push({role:"user",text:r}),this.persistAssistantSession(),this.render();try{let n=await this.callbacks.onAssistantAsk(r,this.assistantThreadId);if(n){if(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}:{},offerReport:!0});else {let i=n.text??"\u2026";this.assistantTurns.push({role:"assistant",text:i,...ih(i)?{offerReport:!0}:{}});}this.persistAssistantSession();}else this.assistantError=this.locale.assistant.errors.noResponse;}catch(n){this.assistantError=n?.code==="ASSISTANT_NEEDS_KEY"?this.locale.assistant.errors.notSetUp:this.locale.assistant.errors.generic;}finally{this.assistantSending=false,this.render(),this.scroller.scrollTop=this.scroller.scrollHeight;}}}persistAssistantSession(){fa({turns:this.assistantTurns,threadId:this.assistantThreadId});}clearAssistantTranscript(){this.assistantTurns=[],this.assistantThreadId=null,this.assistantError=null,ma(),this.step==="assistant"&&this.render();}pulseTrigger(){if(this.isOpen)return;let t=this.triggerEl;t&&(t.classList.add("mushi-trigger-pulse"),window.setTimeout(()=>t.classList.remove("mushi-trigger-pulse"),2400));}getIsOpen(){return this.isOpen}showTrigger(){this.triggerVisible=true,this.render();}hideTrigger(){this.triggerVisible=false,this.render();}setTrigger(t){this.updateConfig({trigger:t});}attachTo(t,r={}){let i=(typeof t=="string"?Array.from(document.querySelectorAll(t)):[t]).map(o=>{let s=a=>{a.preventDefault(),this.updateConfig(r),this.open();};return o.addEventListener("click",s),()=>o.removeEventListener("click",s)});return ()=>i.forEach(o=>o())}setScreenshotAttached(t){this.screenshotAttached=t,this.screenshotCapturing=false,t?(this.screenshotError=false,this.screenshotErrorReason=null):(this.screenshotPreview=null,this.screenshotByUser=false,this.previewOpen=false,this.screenshotReview=false),this.isOpen&&this.render();}setScreenshotPreview(t){this.screenshotPreview=t,this.isOpen&&this.render();}resolveScreenshotHint(){let t=this.config.screenshotSensitiveHint;return t===false?null:typeof t=="string"?t.trim()?t:null:this.locale.step3.screenshotSensitiveHint}setAllowScreenshotRemove(t){this.allowScreenshotRemove=t,this.isOpen&&this.render();}setCaptureAvailability(t){this.screenshotAvailable=t.screenshot??this.screenshotAvailable,this.elementAvailable=t.element??this.elementAvailable,this.isOpen&&this.render();}setElementSelected(t){this.elementSelected=t,this.elementCapturing=false,t&&(this.elementError=false),this.removeSelectorHint(),this.isOpen&&this.render();}setElementError(t){this.elementError=t,this.elementCapturing=false,this.removeSelectorHint(),this.isOpen&&this.render();}setScreenshotCapturing(t){this.screenshotCapturing=t,this.screenshotError=false,this.screenshotErrorReason=null,this.isOpen&&this.render();}setScreenshotError(t,r){this.screenshotError=t,this.screenshotErrorReason=t?r??this.screenshotErrorReason??"error":null,this.screenshotCapturing=false,this.isOpen&&this.render();}setElementCapturing(t){this.elementCapturing=t,t?(this.elementError=false,this.showSelectorHint()):this.removeSelectorHint(),this.isOpen&&this.render();}hidePanel(){this.panel.style.display="none";}showPanel(){this.panel.style.display="";}showSelectorHint(){this.removeSelectorHint();let t=document.createElement("div");t.id="mushi-selector-hint",t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.style.cssText="position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:2147483646;background:rgba(17,17,17,.92);color:#fff;font:12px/1.4 system-ui,sans-serif;padding:8px 16px;border-radius:20px;pointer-events:none;white-space:nowrap;box-shadow:0 2px 12px rgba(0,0,0,.35)",t.textContent=this.locale.step3.elementSelectorHint,document.body.appendChild(t),this.selectorHint=t;}removeSelectorHint(){this.selectorHint?.remove(),this.selectorHint=null,document.getElementById("mushi-selector-hint")?.remove();}setSdkFreshness(t){this.sdkFreshness=t,this.isOpen&&this.render();}setBrandRef(t){this.brandRef!==t&&(this.brandRef=t,this.isOpen&&this.render());}setRewardsState(t){this.rewardsState=t,this.isOpen&&this.render();}setLeaderboard(t,r=false){this.leaderboardEntries=t,this.leaderboardLoading=r,this.isOpen&&this.render();}setReporterChannels(t){this.channels={email:!!t.email,push:!!t.push,emailPrefill:t.emailPrefill??""},this.isOpen&&this.render();}setIdentifiedUser(t){this.identifiedUser=t,this.isOpen&&this.render();}setTesterSession(t,r){this.testerJwt=t,this.testerInfo=r,this.isOpen&&this.render();}setGlobalLeaderboard(t,r=false){this.globalLeaderboard=t,this.globalLeaderboardLoading=r,this.isOpen&&this.render();}setCrossAppReports(t,r=false){this.crossAppReports=t,this.crossAppLoading=r,this.isOpen&&this.render();}setTesterReputation(t){this.testerReputation=t,this.isOpen&&this.render();}destroy(){window.removeEventListener("pointerup",this.onPointerRelease,true),window.removeEventListener("pointercancel",this.onPointerRelease,true),this.successTimer!==null&&(clearTimeout(this.successTimer),this.successTimer=null),this.smartHideTimer!==null&&(clearTimeout(this.smartHideTimer),this.smartHideTimer=null),this.unbindColorSchemeListener(),this.smartHideCleanup?.(),this.smartHideCleanup=null,this.tuckCleanup?.(),this.tuckCleanup=null,window.removeEventListener("resize",this.onViewportResize),window.visualViewport?.removeEventListener("resize",this.onViewportResize),this.resizeFrame!==null&&(cancelAnimationFrame(this.resizeFrame),this.resizeFrame=null),this.lateMeasureTimer!==null&&(clearTimeout(this.lateMeasureTimer),this.lateMeasureTimer=null),this.teardownViewportHandlers(),this.attachedLaunchers.forEach(t=>t()),this.attachedLaunchers=[],this.removeSelectorHint(),this.removeToast(),this.removeBodyNudge(),this.host.remove();}bindColorSchemeListener(){if(this.unbindColorSchemeListener(),typeof window>"u"||!window.matchMedia)return;let t=this.config.theme;t!=="auto"&&t!=="inherit"||(this.colorSchemeMq=window.matchMedia("(prefers-color-scheme: dark)"),this.onColorSchemeChange=()=>{this.host.isConnected&&this.render();},typeof this.colorSchemeMq.addEventListener=="function"?this.colorSchemeMq.addEventListener("change",this.onColorSchemeChange):typeof this.colorSchemeMq.addListener=="function"&&this.colorSchemeMq.addListener(this.onColorSchemeChange));}unbindColorSchemeListener(){this.colorSchemeMq&&this.onColorSchemeChange&&(typeof this.colorSchemeMq.removeEventListener=="function"?this.colorSchemeMq.removeEventListener("change",this.onColorSchemeChange):typeof this.colorSchemeMq.removeListener=="function"&&this.colorSchemeMq.removeListener(this.onColorSchemeChange)),this.colorSchemeMq=null,this.onColorSchemeChange=null;}syncHostChromeState(){let t=this.host.style;t.setProperty("position","absolute"),t.setProperty("top","0"),t.setProperty("left","0"),t.setProperty("width","0"),t.setProperty("height","0"),t.setProperty("overflow","visible"),t.setProperty("pointer-events","none"),t.setProperty("z-index","auto"),t.setProperty("margin","0"),t.setProperty("padding","0"),t.setProperty("border","none"),t.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 t=this.host.style,r=t.pointerEvents==="none"&&(t.width==="0"||t.width==="0px")&&(t.height==="0"||t.height==="0px"),n=this.host.isConnected?{width:this.host.offsetWidth,height:this.host.offsetHeight}:null,i=this.isSuppressedByHost()||this.isRouteHidden()||!this.triggerVisible||this.launcherDismissed,o=this.config.trigger==="banner"&&!this.bannerDismissed&&!this.isSuppressedByHost()&&!this.isRouteHidden()&&this.triggerVisible;return {widgetHostPointerSafe:r,widgetHostBounds:n,widgetSuppressed:i,bannerRendered:o,warnings:[...this.themeWarnings]}}syncAttachedLaunchers(){this.attachedLaunchers.forEach(t=>t()),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 t=this.config.smartHide===true?{onScroll:"shrink",onIdleMs:900}:this.config.smartHide;if(!t.onScroll)return;let r=()=>{t.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();},t.onIdleMs??900);};window.addEventListener("scroll",r,{passive:true}),this.smartHideCleanup=()=>window.removeEventListener("scroll",r);}syncScrollTuck(){this.tuckCleanup?.(),this.tuckCleanup=null;let t=this.config.smartHide,r=t===true||typeof t=="object"&&!!t.onScroll;if(!this.config.tuckOnScroll||r||typeof document>"u")return;let n=700,i=()=>{let o=this.triggerEl;!o||this.isOpen||this.shadow.activeElement===o||o.classList.contains("dragging")||(o.classList.add("tucked"),this.tuckTimer!==null&&clearTimeout(this.tuckTimer),this.tuckTimer=setTimeout(()=>{this.tuckTimer=null,this.triggerEl?.classList.remove("tucked");let s=this.measureFixedBars();s!==this.barClearance&&(this.barClearance=s,this.render());},n));};document.addEventListener("scroll",i,{capture:true,passive:true}),this.tuckCleanup=()=>{document.removeEventListener("scroll",i,{capture:true}),this.tuckTimer!==null&&clearTimeout(this.tuckTimer),this.tuckTimer=null;};}measureFixedBars(){if(!this.config.avoidFixedBars||typeof document>"u"||typeof document.elementsFromPoint!="function")return 0;let t=window.innerHeight,r=window.innerWidth;if(!t||!r)return 0;let n=this.config.position.endsWith("left"),i=s=>s.height>0&&s.height<=t*.4&&s.top<t&&s.bottom>=t-4&&s.bottom<=t+4,o=t;for(let s of [n?24:r-24,r/2]){let a=document.elementsFromPoint(s,t-2).find(c=>c!==this.host&&!this.host.contains(c)),u=null;for(let c=a??null;c&&c!==document.body&&c!==document.documentElement;c=c.parentElement){let p=getComputedStyle(c),h=c.getBoundingClientRect();if(p.position==="fixed"||p.position==="sticky"){let b=i(h)?h:u;b&&(o=Math.min(o,b.top));break}/(auto|scroll)/.test(p.overflowY)?u=null:i(h)&&(u=h);}}return o<t?Math.ceil(t-o+8):0}dismissLauncherForSession(){this.launcherDismissed=true,pa(),this.close();}shouldRenderTrigger(){if(!this.triggerVisible||this.launcherDismissed||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 t=this.config.environments[this.detectEnvironment()];return t!=="never"&&t!=="manual"}static BANNER_HEIGHT=36;static BODY_NUDGE_PROP="--mushi-banner-offset";applyBodyNudge(t,r=e.BANNER_HEIGHT){let n=`${r}px`;document.documentElement.style.setProperty(e.BODY_NUDGE_PROP,n),t==="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(t,r){let n=()=>{let i=t.getBoundingClientRect().height;i>0&&this.applyBodyNudge(r,i);};requestAnimationFrame(n),typeof ResizeObserver<"u"&&(this.bannerResizeObserver=new ResizeObserver(n),this.bannerResizeObserver.observe(t));}removeBodyNudge(){this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,document.documentElement.style.removeProperty(e.BODY_NUDGE_PROP);let t=document.body.dataset.mushiBannerNudged;t==="top"?(document.body.style.paddingTop="",delete document.body.dataset.mushiBannerNudged):t==="bottom"&&(document.body.style.paddingBottom="",delete document.body.dataset.mushiBannerNudged);}syncBanner(){let t=JSON.stringify([this.config.trigger,this.bannerDismissed,this.triggerVisible,this.isRouteHidden(),this.isSuppressedByHost(),this.config.bannerConfig,this.config.zIndex,this.lang]);t===this.bannerKey&&(this.bannerEl?.isConnected??true)||(this.bannerKey=t,this.bannerEl?.remove(),this.bannerEl=null,this.bannerResizeObserver?.disconnect(),this.bannerResizeObserver=null,this.renderBanner());}renderBanner(){if(this.config.trigger!=="banner")return;if(this.bannerDismissed||!this.triggerVisible||this.isRouteHidden()||this.isSuppressedByHost()){this.removeBodyNudge();return}let t=this.config.bannerConfig??{},r=t.variant??"subtle",n=t.position??"top",i=t.message?.trim()??"",o=i.length>0,s=t.bugCta??"\u{1F41B} Report a bug",a=t.featureCta!==false,u=t.featureCtaLabel??"Request feature",c=`\u{1F4EC} ${this.locale.panel.yourReports}`,p=t.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 b=document.createElement("button");if(b.className="mushi-banner-dismiss",b.textContent="\u2715",b.setAttribute("aria-label","Dismiss feedback banner"),b.addEventListener("click",()=>{this.bannerDismissed=true,this.removeBodyNudge(),this.render();}),o){let A=document.createElement("div");A.className="mushi-banner-body";let T=t.label===false?null:t.label??Qs.bannerLabel;if(T){let v=document.createElement("span");v.className="mushi-banner-pill",v.textContent=T,A.appendChild(v);}let E=document.createElement("span");E.className="mushi-banner-message",E.textContent=i,A.appendChild(E),h.appendChild(A);let y=document.createElement("nav");y.className="mushi-banner-actions",y.setAttribute("aria-label","Feedback banner actions");let x=(v=false)=>{let C=document.createElement("span");C.className=`mushi-banner-divider${v?" mushi-banner-extra":""}`,C.setAttribute("aria-hidden","true"),C.textContent="|",y.appendChild(C);},k=(v,C,_=false)=>{let g=document.createElement("button");g.type="button",g.className=`mushi-banner-link${_?" mushi-banner-extra":""}`,g.textContent=v,g.addEventListener("click",C),y.appendChild(g);};k(s,()=>this.open({category:"bug"})),a&&(x(true),k(u,()=>this.open({featureRequest:true}),true));for(let v of t.links??[]){let C=v.label?.trim();if(!C)continue;let _=v.href&&(/^https?:\/\//i.test(v.href)||v.href.startsWith("/"))?v.href:void 0;if(x(true),_){let g=document.createElement("a");g.className="mushi-banner-link mushi-banner-extra",g.href=_,g.textContent=C,g.target="_blank",g.rel="noopener noreferrer",y.appendChild(g);}else k(C,()=>{v.featureRequest?this.open({featureRequest:true}):this.open();},true);}x(true),k(c,()=>this.openReporter(),true),h.appendChild(y),h.appendChild(b);}else {let A=document.createElement("button");if(A.className="mushi-banner-btn",A.textContent=s,A.addEventListener("click",()=>this.open({category:"bug"})),h.appendChild(A),a){let E=document.createElement("button");E.className="mushi-banner-btn",E.textContent=u,E.addEventListener("click",()=>this.open({featureRequest:true})),h.appendChild(E);}let T=document.createElement("button");T.className="mushi-banner-my-reports",T.textContent=c,T.addEventListener("click",()=>this.openReporter()),h.appendChild(T),h.appendChild(b);}this.shadow.insertBefore(h,this.panel),this.bannerEl=h,this.applyBodyNudge(n),this.trackBannerHeight(h,n);}effectiveTrigger(){if(typeof window>"u")return this.config.trigger;if(this.config.smartHide){let t=this.config.smartHide===true?{onMobile:"edge-tab"}:this.config.smartHide;if(window.matchMedia("(max-width: 768px)").matches&&t.onMobile==="edge-tab")return "edge-tab"}return this.config.trigger==="auto"&&this.config.mobileTrigger==="edge-tab"&&typeof window.matchMedia=="function"&&window.matchMedia("(max-width: 768px)")?.matches?"edge-tab":this.config.trigger}isMobileSmartHidden(){if(!this.config.smartHide||typeof window>"u")return false;let t=this.config.smartHide===true?{onMobile:"edge-tab"}:this.config.smartHide;return window.matchMedia("(max-width: 768px)").matches&&t.onMobile==="hide"}detectEnvironment(){let t=typeof location<"u"?location.hostname:"";return t==="localhost"||t==="127.0.0.1"||t.endsWith(".local")?"development":/\b(staging|stage|preview|dev)\b/i.test(t)?"staging":"production"}isRouteHidden(){return !this.config.hideOnRoutes.length||typeof location>"u"?false:this.config.hideOnRoutes.some(t=>ka(location.pathname,t))}getTheme(){let t=this.config.theme;if(t==="light"||t==="dark")return t;if(t==="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"}probeRgb(t){let r=this.host.style,n=r.color,i=null;for(let o of [t,`color-mix(in srgb,${t},${t})`]){r.color="",r.color=o;let s=r.color&&(this.host.isConnected?getComputedStyle(this.host).color:r.color).match(/(rgba?\(|srgb )([\d.]+)[ ,]+([\d.]+)[ ,]+([\d.]+)/);if(s){let a=s[1]==="srgb "?255:1;i=[+s[2]*a,+s[3]*a,+s[4]*a];break}}return r.color=n,i}hostColorVar(t){return pt(this.hostCssVar(t))}resolveAccent(t){this.themeWarnings=[];let r=this.hostColorVar("--mushi-accent")||pt(this.config.accent??""),n=[];if(!r&&typeof document<"u"){try{let p=getComputedStyle(document.documentElement).getPropertyValue("accent-color").trim();p&&p!=="auto"&&n.push(p);}catch{}n.push(document.querySelector('meta[name="theme-color"]')?.getAttribute("content")?.trim()??"");}let i=t?[18,18,18]:[255,255,255];for(let p of n){if(r)break;let h=pt(p),b=h?this.probeRgb(h):null;b&&cn(b,i).ratio>=3&&(r=h);}if(!r)return {accent:"",accentFg:""};let o=this.probeRgb(r),s=this.hostColorVar("--mushi-accent-fg")||pt(this.config.accentText??""),a=o?cn(o).ink:"",u=o&&s?this.probeRgb(s):null,c=u?cn(o,u).ratio:3;return c>=3?{accent:r,accentFg:s||a}:(this.themeWarnings.push(`Accent text ${s} is ${c.toFixed(1)}:1 on ${r} (under 3:1); using ${a}.`),{accent:r,accentFg:a,lockFg:true})}syncChrome(){let t=this.getTheme(),{accent:r,accentFg:n,lockFg:i}=this.resolveAccent(t==="dark"),o=`${t}|${r}|${n}|${i}`;o!==this.styleKey&&(this.styleKey=o,this.styleEl.textContent=Ua(t,r,n,i),this.themeWarnings.forEach(s=>this.callbacks.onWarning?.(s))),this.syncBanner(),this.syncTrigger();}syncTrigger(){let t=this.shouldRenderTrigger(),r=this.config.position,n=t?this.effectiveTrigger():"",i=JSON.stringify([t,n,r,this.triggerShrunk,this.config.triggerText,this.config.zIndex,this.config.draggable,this.lang]),o=false;(i!==this.triggerKey||t&&!this.triggerEl?.isConnected)&&(this.triggerKey=i,this.triggerEl?.remove(),this.triggerEl=t?this.buildTrigger(n):null,o=true),this.triggerEl&&(this.triggerEl.setAttribute("aria-expanded",String(this.isOpen)),this.applyInsetVars(this.triggerEl),(o||this.barClearance!==this.clampedForClearance)&&this.fabPos&&this.dragOptions(this.triggerEl)&&this.restoreFabPos(this.triggerEl),this.clampedForClearance=this.barClearance);}buildTrigger(t){let r=t==="edge-tab",n=document.createElement("button");if(n.className=`mushi-trigger ${this.config.position}${r?" edge-tab":""}${r&&uu(this.config.triggerText)?" text":""}${this.triggerShrunk?" shrunk":""}`,r){let i=document.createElement("span");i.className="mushi-trigger-face",i.textContent=this.config.triggerText,n.appendChild(i);}else n.textContent=this.config.triggerText;return n.setAttribute("aria-label",this.locale.widget.trigger),n.setAttribute("aria-haspopup","dialog"),n.style.zIndex=String(this.config.zIndex),n.addEventListener("click",()=>{this.isOpen?this.close():this.open();}),n.addEventListener("keydown",i=>{let o=this.dragOptions(n);if(!o)return;let s=8,{axis:a}=o,u=0,c=0;if(a!=="y"&&(i.key==="ArrowLeft"?u=-s:i.key==="ArrowRight"&&(u=s)),a!=="x"&&(i.key==="ArrowUp"?c=-s:i.key==="ArrowDown"&&(c=s)),u!==0||c!==0){i.preventDefault();let p=this.fabPos??{x:0,y:0};this.moveFab(n,p.x+u,p.y+c,"end");}}),this.dragOptions(n)&&this.attachDragHandlers(n),this.shadow.insertBefore(n,this.panel),n}restoreFabPos(t){if(!this.fabPos)return;let r=this.fabPos;this.fabPos={x:0,y:0},t.style.setProperty("--mushi-drag-active","0"),this.moveFab(t,r.x,r.y,"restore");}dragOptions(t){let r=t.classList.contains("edge-tab"),n=this.config.draggable;if(!n&&(this.draggableSet||!r))return null;let i=typeof n=="object"?n:{};return {axis:r?"y":i.axis??"both",persist:i.persist??true,snap:!r&&(i.snapToEdge??true)}}render(){if(this.isOpen&&this.pointerDownAt!==null&&Date.now()-this.pointerDownAt<2e3){this.renderDeferred||setTimeout(()=>{this.renderDeferred&&this.render();},2e3),this.renderDeferred=true;return}this.renderDeferred=false,this.syncChrome(),this.renderPanel();}renderPanel(){let t=this.panel;if(t.className=`mushi-panel ${this.config.position}${this.isOpen?" open":" closed"}${this.lengthNudge&&this.step==="report"?" mushi-nudge":""}`,this.step==="report"&&this.chip&&jt.has(this.chip)?t.dataset.cat=this.chip:delete t.dataset.cat,t.style.zIndex=String(this.config.zIndex+1),this.applyInsetVars(t),!this.isOpen){if(this.renderedStep!==null){for(let p of bi)this.regionEls[p].innerHTML="";this.regionHtml={},this.renderedStep=null,this.teardownViewportHandlers();}return}let r=this.renderCtx();!yi&&(Ka.has(this.step)||this.step==="success"&&(this.channels.email||this.channels.push))&&this.preloadViews().then(()=>{this.isOpen&&this.render();});let n=Wa(r);this.nudgeShake=false;let i={notice:za(r),header:n.header,lead:n.lead,meter:n.meter??"",body:n.body,footer:n.footer,brand:Ga(r)},o=this.renderedStep!==this.step,s=this.renderedStep===null,a=this.shadow.activeElement,u=a?su(a):null;this.captureFormDrafts();let c=false;for(let p of bi)this.regionHtml[p]!==i[p]&&(this.regionHtml[p]=i[p],this.regionEls[p].innerHTML=i[p],c=true);this.renderedStep=this.step,c&&(_a(t),this.restoreFormDrafts()),o?(this.scroller.scrollTop=0,s||(t.classList.remove("mushi-swap"),t.offsetWidth,t.classList.add("mushi-swap")),this.focusView()):this.focusDescriptionNext?t.querySelector('[data-role="description"]')?.focus({preventScroll:true}):a&&!a.isConnected&&u&&t.querySelector(u)?.focus(),this.focusDescriptionNext=false,s&&this.attachViewportHandlers(t),!this.brandImpressionSent&&this.config.brandFooter===true&&(this.brandImpressionSent=true,this.callbacks.onBrandFooterImpression?.());}focusView(){let r=(this.step==="report"&&!this.chip&&!(this.drafts.description??"").trim()?this.panel.querySelector('.mushi-tile[tabindex="0"]'):null)??this.panel.querySelector('[data-role="description"]')??this.panel.querySelector("#mushi-title");r&&(r.id==="mushi-title"&&(r.tabIndex=-1),r.focus({preventScroll:true}));}captureFormDrafts(){for(let n of Ei){let i=this.panel.querySelector(`[data-role="${n}"]`);i&&(this.drafts[n]=i.value);}let t=this.shadow.activeElement,r=t?.dataset?.role;r&&Ei.includes(r)?(this.drafts._focus=r,this.drafts._sel=`${t.selectionStart??0},${t.selectionEnd??0}`):delete this.drafts._focus;}restoreFormDrafts(){for(let t of Ei){let r=this.panel.querySelector(`[data-role="${t}"]`),n=this.drafts[t];if(!(!r||!n||r.value===n)&&(r.value=n,this.drafts._focus===t&&this.shadow.activeElement!==r)){r.focus();let[i,o]=(this.drafts._sel??"").split(",").map(Number);try{r.setSelectionRange(i,o);}catch{}}}}computeAvoidTopPx(t=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=window.innerHeight/2,i=0;for(let o of r)try{let s=document.querySelector(o);if(!s)continue;let a=s.getBoundingClientRect();if((a.top+a.bottom)/2>=n)continue;a.bottom>i&&a.width>0&&a.height>0&&(i=a.bottom);}catch{}return i>0?Math.ceil(i)+t:null}computeAvoidBottomPx(t=8){let r=this.config.avoidSelectors;if(!r?.length)return null;let n=window.innerHeight/2,i=0;for(let o of r)try{let s=document.querySelector(o);if(!s)continue;let a=s.getBoundingClientRect();if((a.top+a.bottom)/2<=n)continue;if(a.width>0&&a.height>0){let u=window.innerHeight-a.top+t;u>i&&(i=u);}}catch{}return i>0?Math.ceil(i):null}hostCssVar(t){if(!this.host.isConnected)return "";try{return getComputedStyle(this.host).getPropertyValue(t).trim()}catch{return ""}}applyInsetVars(t){let{anchor:r}=this.config;for(let o of ["top","right","bottom","left"])t.style.removeProperty(`--mushi-${o}`);if(r&&Object.keys(r).length>0)["top","right","bottom","left"].forEach(o=>{let s=r[o];s!==void 0&&t.style.setProperty(`--mushi-${o}`,s);});else {let{inset:o}=this.config;this.config.respectSafeArea||["top","right","bottom","left"].forEach(s=>{o[s]===void 0&&t.style.setProperty(`--mushi-${s}`,"24px");}),["top","right","bottom","left"].forEach(s=>{let a=o[s];a!==void 0&&t.style.setProperty(`--mushi-${s}`,a==="auto"?"auto":`${a}px`);});}t.style.setProperty("--mushi-safe-area",this.config.respectSafeArea?"1":"0");let n=r?.top!==void 0||this.config.position?.startsWith("top"),i=r?.bottom!==void 0||this.config.position?.startsWith("bottom")||!this.config.position;if(n){let o=this.computeAvoidTopPx();o!==null&&t.style.setProperty("--mushi-top",`${o}px`);}if(i){let o=this.computeAvoidBottomPx();if(o!==null)t.style.setProperty("--mushi-bottom",`${Math.max(o,this.barClearance)}px`);else if(this.barClearance>0){let s=t.style.getPropertyValue("--mushi-bottom").trim()||this.hostCssVar("--mushi-bottom")||`calc(${dt.gutter}px + env(safe-area-inset-bottom, 0px))`;s!=="auto"&&t.style.setProperty("--mushi-bottom",`max(${s}, ${this.barClearance}px)`);}}}fabStorageKey(t){let r=this.config.projectId??"";return `${t.classList.contains("edge-tab")?"mushi_tab_pos":"mushi_fab_pos"}${r?`_${r}`:""}`}moveFab(t,r,n,i){let o=this.dragOptions(t);if(!o)return;let{axis:s}=o,a=window.innerWidth,u=window.innerHeight,c=t.offsetWidth||52,p=t.offsetHeight||52,h=getComputedStyle(document.documentElement),b=j=>parseInt(h.getPropertyValue(`--sai-${j}`)||"0")||0,A=b("left"),T=b("right"),E=b("top"),y=b("bottom"),x=8,k=t.getBoundingClientRect(),v=k.left-(this.fabPos?.x??0),C=k.top-(this.fabPos?.y??0),_=A+x-v,g=a-T-x-c-v,f=E+x-C,m=u-Math.max(y+x,this.barClearance)-p-C,S=s==="x"?0:Math.max(f,Math.min(m,n)),B=s==="y"?0:Math.max(_,Math.min(g,r));if(i==="end"&&o.snap&&s!=="y"&&(B=k.left+c/2<a/2?A+x-v:a-T-x-c-v),this.fabPos={x:B,y:S},t.style.setProperty("--mushi-drag-x",`${B}px`),t.style.setProperty("--mushi-drag-y",`${S}px`),t.style.setProperty("--mushi-drag-active","1"),i==="end"&&o.persist)try{localStorage.setItem(this.fabStorageKey(t),JSON.stringify(this.fabPos));}catch{}}loadFabPos(t){let r=this.fabStorageKey(t);if(r!==this.fabPosKey&&(this.fabPosKey=r,this.fabPos=null,!!this.dragOptions(t)?.persist))try{let n=localStorage.getItem(r);if(n){let i=JSON.parse(n);typeof i?.x=="number"&&typeof i?.y=="number"&&(this.fabPos=i);}}catch{}}attachDragHandlers(t){this.loadFabPos(t);let r=0,n=0,i=0,o=0,s=false,a=false,u=6;t.addEventListener("pointerdown",p=>{if(p.button!==0&&p.pointerType!=="touch")return;t.setPointerCapture?.(p.pointerId),r=p.clientX,n=p.clientY;let h=this.fabPos??{x:0,y:0};i=h.x,o=h.y,s=true,a=false;}),t.addEventListener("pointermove",p=>{if(!s)return;let h=p.clientX-r,b=p.clientY-n;!a&&Math.hypot(h,b)>u&&(a=true,t.classList.remove("tucked"),t.classList.add("dragging")),a&&(p.preventDefault(),this.moveFab(t,i+h,o+b,"move"));});let c=p=>{if(s){if(s=false,t.classList.remove("dragging"),a){this.moveFab(t,i+p.clientX-r,o+p.clientY-n,"end");let h=b=>{b.stopImmediatePropagation(),t.removeEventListener("click",h,{capture:true});};t.addEventListener("click",h,{capture:true});}a=false;}};t.addEventListener("pointerup",c),t.addEventListener("pointercancel",c);}attachViewportHandlers(t){this.teardownViewportHandlers();let r=typeof window<"u"?window.visualViewport:null;if(!r)return;let n=()=>{let o=window.innerHeight-r.height-r.offsetTop;o>50?(t.style.setProperty("--mushi-keyboard-inset",`${Math.round(o)}px`),t.classList.add("keyboard-open")):(t.style.setProperty("--mushi-keyboard-inset","0px"),t.classList.remove("keyboard-open"));};r.addEventListener("resize",n,{passive:true}),r.addEventListener("scroll",n,{passive:true});let i=()=>requestAnimationFrame(n);t.addEventListener("focusin",i),this.vvCleanup=()=>{r.removeEventListener("resize",n),r.removeEventListener("scroll",n),t.removeEventListener("focusin",i);};}teardownViewportHandlers(){this.vvCleanup?.(),this.vvCleanup=null;}effectiveMinLength(){let t=this.config.minDescriptionLength??8;return /^(ja|zh|ko)$/.test(this.lang)?Math.max(4,Math.floor(t/2)):t}canSend(){return (this.drafts.description??"").trim().length>=this.effectiveMinLength()||this.elementSelected||this.screenshotAttached&&this.screenshotByUser}charsNeeded(){return this.canSend()?0:Math.max(1,this.effectiveMinLength()-(this.drafts.description??"").trim().length)}unreadCount(){return this.reporterReports.reduce((t,r)=>t+(r.unread_count??0),0)}renderCtx(){return {config:this.config,locale:this.locale,rc:this.rc,lang:this.lang,views:yi,step:this.step,callbacks:this.callbacks,chip:this.chip,intent:this.intent,showAllCategories:this.showAllCategories,draftLength:(this.drafts.description??"").length,charsNeeded:this.charsNeeded(),minLength:this.effectiveMinLength(),lengthNudge:this.lengthNudge,nudgeShake:this.nudgeShake,betaOpen:this.betaOpen,launcherDismissible:this.config.dismissible&&this.triggerEl!==null,canSend:this.canSend(),submitting:this.submitting,screenshotCapturing:this.screenshotCapturing,screenshotAttached:this.screenshotAttached,screenshotPreview:this.screenshotPreview,previewOpen:this.previewOpen,screenshotReview:this.screenshotReview,screenshotHint:this.resolveScreenshotHint(),screenshotAvailable:this.screenshotAvailable,elementAvailable:this.elementAvailable,screenshotError:this.screenshotError,screenshotErrorReason:this.screenshotErrorReason,elementSelected:this.elementSelected,elementCapturing:this.elementCapturing,elementError:this.elementError,allowScreenshotRemove:this.allowScreenshotRemove,identifiedUser:this.identifiedUser,lastReportId:this.lastReportId,submittedAt:this.submittedAt,lastSubmitQueuedOffline:this.lastSubmitQueuedOffline,lastSubmitFailureKind:this.lastSubmitFailureKind,lastSubmitScreenshotDropped:this.lastSubmitScreenshotDropped,submitNotSent:this.submitNotSent,channels:this.channels,emailOptInOpen:this.emailOptInOpen,emailState:this.emailState,pushState:this.pushState,reporterReports:this.reporterReports,listLoading:this.listLoading,reporterError:this.reporterError,selectedReportId:this.selectedReportId,reporterComments:this.reporterComments,timeline:this.timeline,pendingReplies:this.pendingReplies,threadLoading:this.threadLoading,threadError:this.threadError,actionPending:this.actionPending,actionError:this.actionError,unreadCount:this.unreadCount(),showMoreNav:this.showMoreNav,pageFaviconHref:aa(),sdkFreshness:this.sdkFreshness,brandRef:this.brandRef,rewardsState:this.rewardsState,testerReputation:this.testerReputation,testerInfo:this.testerInfo,testerJwt:this.testerJwt,magicLinkError:this.magicLinkError,magicLinkSending:this.magicLinkSending,magicLinkEmail:this.magicLinkEmail,magicLinkSent:this.magicLinkSent,globalLeaderboardLoading:this.globalLeaderboardLoading,globalLeaderboard:this.globalLeaderboard,leaderboardLoading:this.leaderboardLoading,leaderboardEntries:this.leaderboardEntries,crossAppLoading:this.crossAppLoading,crossAppReports:this.crossAppReports,featureBoard:this.featureBoard,assistantTurns:this.assistantTurns,assistantSending:this.assistantSending,assistantError:this.assistantError,tierColor:t=>ui[t]??ui.default,resolveCustomCategory:t=>this.resolveCustomCategory(t)}}bindPanelEvents(){let t=this.panel;t.addEventListener("pointerdown",()=>{this.pointerDownAt=Date.now();}),t.addEventListener("click",r=>{let n=r.target;if(n.closest('[data-role="annotate-host"]'))return;let i=n.closest("[data-action],[data-report-id],[data-vote-id]");if(!i||i.tagName==="FORM")return;if(i.dataset.voteId){this.voteFeatureBoard(i.dataset.voteId);return}let o=i.dataset.action;if(!o&&i.dataset.reportId){this.openThread(i.dataset.reportId);return}o==="chip"&&r.detail>0&&(this.focusDescriptionNext=true),o&&this.handleAction(o,i);}),t.addEventListener("input",r=>{let n=r.target,i=n.dataset?.role;if(!i)return;let o=i==="description"&&this.canSend();this.drafts[i]=n.value,n.tagName==="TEXTAREA"&&i!=="description"&&au(n),i==="description"&&(!o&&this.canSend()&&(this.lengthNudge=false,this.announce(this.locale.panel.ready??"Ready to send")),this.render());}),t.addEventListener("submit",r=>{r.preventDefault();let n=t.querySelector(".mushi-assistant-input"),i=n?.value??"";n&&(n.value=""),this.sendAssistantMessage(i);}),t.addEventListener("keydown",r=>this.onKeydown(r));}onKeydown(t){let r=t.target;if(t.key==="Escape"){if(t.preventDefault(),this.showMoreNav){this.showMoreNav=false,this.render();return}if(this.betaOpen){this.betaOpen=false,this.render(),this.panel.querySelector('[data-action="toggle-beta"]')?.focus();return}if(this.step==="report-detail"){this.goBack();return}this.close();return}if(ya(t)||t.key==="Enter"&&!t.shiftKey&&r.classList.contains("mushi-assistant-input")){this.step==="report"?(t.preventDefault(),this.submitReport()):this.step==="report-detail"&&r.dataset.role==="reporter-reply"?(t.preventDefault(),this.submitReporterReply()):this.step==="assistant"&&(t.preventDefault(),this.panel.querySelector("form")?.requestSubmit());return}if(t.key==="Tab"){this.trapTab(t);return}if(r.getAttribute("role")==="radio"&&/^Arrow(Left|Right|Up|Down)$/.test(t.key)){let n=Array.from(r.closest('[role="radiogroup"]')?.querySelectorAll('[role="radio"]')??[]),i=n.indexOf(r),o=n[(i+(/Right|Down/.test(t.key)?1:-1)+n.length)%n.length];if(!o)return;t.preventDefault(),o.click(),this.panel.querySelector(su(o)??"")?.focus();}}trapTab(t){let r=Array.from(this.panel.querySelectorAll(sh)).filter(s=>!s.closest("[hidden]"));if(!r.length)return;let n=r[0],i=r[r.length-1],o=this.shadow.activeElement;t.shiftKey&&(o===n||!this.panel.contains(o))?(t.preventDefault(),i.focus()):!t.shiftKey&&o===i&&(t.preventDefault(),n.focus());}handleAction(t,r){let n=r.dataset.value??"";switch(t){case "close":this.close();return;case "back":this.goBack();return;case "brand-footer":this.callbacks.onBrandFooterClick?.();return;case "hide-launcher":this.dismissLauncherForSession();return;case "toggle-more-nav":this.showMoreNav=!this.showMoreNav,this.betaOpen=false,this.render();return;case "toggle-beta":this.betaOpen=!this.betaOpen,this.showMoreNav=false,this.render();return;case "show-all-categories":this.showAllCategories=true,this.render();return;case "chip":{let i=r.dataset.category??"";this.chip=this.chip===i?null:i,this.intent=null,this.render();return}case "intent":{let i=r.dataset.intent??null;this.intent=this.intent===i?null:i,this.render();return}case "screenshot":this.screenshotByUser=true,this.callbacks.onScreenshotRequest();return;case "screenshot-share-tab":this.screenshotByUser=true,this.callbacks.onScreenshotShareTabRequest?.();return;case "remove-screenshot":this.callbacks.onScreenshotRemove?.();return;case "toggle-preview":this.previewOpen=!this.previewOpen,this.render();return;case "annotate-screenshot":{let i=this.panel.querySelector('[data-role="annotate-host"]');this.screenshotByUser=true,i&&this.callbacks.onScreenshotAnnotateRequest&&this.callbacks.onScreenshotAnnotateRequest(i);return}case "element":this.callbacks.onElementSelectorRequest?.();return;case "submit":this.submitReport();return;case "done":this.close();return;case "track-report":this.lastReportId&&this.openTrackedReport(this.lastReportId);return;case "copy-report-id":uh(r);return;case "reports":this.showMoreNav=false,this.loadReporterReports();return;case "retry-list":this.loadReporterReports();return;case "retry-thread":this.selectedReportId&&this.openThread(this.selectedReportId);return;case "reporter-reply":this.submitReporterReply();return;case "retry-reply":this.sendPendingReply(Number(n));return;case "reporter-confirms":this.submitReporterFeedback("confirms");return;case "reporter-not-fixed":this.submitReporterReopen();return;case "email-optin":this.emailOptInOpen=r.checked,this.render();return;case "save-email":this.saveEmailOptIn();return;case "notify-me":this.subscribePush();return;case "assistant":this.showMoreNav=false,this.openAssistantTab();return;case "assistant-suggest":this.sendAssistantMessage(n);return;case "assistant-report":this.step="report",this.render();return;case "roadmap":this.showMoreNav=false,this.loadFeatureBoard();return;case "open-leaderboard":this.showMoreNav=false,this.step="leaderboard",this.callbacks.onLeaderboardOpen?.(),this.callbacks.onGlobalLeaderboardOpen?.(),this.render();return;case "open-account":this.showMoreNav=false,this.step="account",this.render();return;case "open-cross-app-reports":this.step="cross-app-reports",this.crossAppReports=this.callbacks.onCrossAppReportsOpen?null:[],this.crossAppLoading=!!this.callbacks.onCrossAppReportsOpen,this.render(),this.callbacks.onCrossAppReportsOpen?.();return;case "open-global-leaderboard":this.step="leaderboard",this.globalLeaderboard=this.callbacks.onGlobalLeaderboardOpen?null:[],this.globalLeaderboardLoading=!!this.callbacks.onGlobalLeaderboardOpen,this.render(),this.callbacks.onGlobalLeaderboardOpen?.();return;case "send-magic-link":this.handleMagicLinkSend();return;case "resend-magic-link":this.magicLinkSent=false,this.magicLinkError="",this.render();return;case "sign-out-tester":this.testerJwt=null,this.testerInfo=null,this.testerReputation=null,this.crossAppReports=null,this.magicLinkSent=false,this.magicLinkEmail="",this.step="report",this.callbacks.onTesterSignOut?.(),this.render();return}}goBack(){let t={"report-detail":"reports","cross-app-reports":"account"};this.step=t[this.step]??"report",this.step==="reports"&&(this.selectedReportId=null),this.step==="report"&&(this.showAllCategories=!!(this.chip&&this.resolveCustomCategory(this.chip))),this.render();}async submitReport(){if(this.submitting)return;let t=this.panel.querySelector('[data-role="description"]');if(t&&(this.drafts.description=t.value),!this.canSend()){this.lengthNudge=true,this.nudgeShake=true,this.render(),this.announce(this.rc.ui.addWords),this.panel.querySelector('[data-role="description"]')?.focus();return}if(this.callbacks.onBeforeSubmit){this.submitting=true,this.render();let T=this.openCount,E=false;try{E=await this.callbacks.onBeforeSubmit();}catch{E=false;}if(T!==this.openCount||(this.submitting=false,!this.isOpen||this.step!=="report"))return;if(E&&this.screenshotAttached&&this.screenshotPreview){this.screenshotReview=true,this.previewOpen=true,this.render(),this.announce(this.locale.step3.screenshotReview);return}}this.screenshotReview=false;let r=(this.drafts.description??"").trim(),n=this.chip,i=n?this.resolveCustomCategory(n):void 0,o=(this.config.categories?.length??0)>0,s=n==="idea",a=s||!n?"other":i?i.baseCategory??"other":n,u=i?n:s?"feature":o&&n?n:void 0,c=s?ga:this.intent??void 0;this.submitting=true,this.submittedAt=new Date,this.lastReportId=null,this.lastSubmitQueuedOffline=false,this.lastSubmitFailureKind=void 0,this.lastSubmitScreenshotDropped=false,this.submitNotSent=null;let p={...this.drafts};this.render();let h=(async()=>{try{let T=this.callbacks.onSubmit({category:a,...u?{userCategory:u}:{},description:r,...c?{intent:c}:{}});return T&&typeof T.then=="function"?await T??null:null}catch{return {reportId:null,queuedOffline:true}}})(),b;h.then(T=>{b=T;});let A=this.openCount;this.successTimer=setTimeout(()=>{if(this.successTimer=null,!(A!==this.openCount||!this.isOpen)){if(gr(b)){this.showNotSent(b.failureKind,p);return}this.submitting=false,this.step="success",this.drafts={},this.render(),this.announce(this.rc.ui.sent),h.then(T=>{if(!(this.step!=="success"||!T)){if(gr(T)){this.showNotSent(T.failureKind,p);return}this.lastReportId=T.reportId??null,this.lastSubmitQueuedOffline=!!T.queuedOffline,this.lastSubmitFailureKind=T.failureKind,this.lastSubmitScreenshotDropped=!!T.screenshotDropped,this.render();}});}},500);}showNotSent(t,r){this.submitting=false,this.step="report",this.drafts=r,this.submitNotSent=t,this.render();let n=this.locale.step3;this.announce(t==="throttled"?n.notSentThrottled:n.notSentBlocked);}async loadFeatureBoard(){this.step="roadmap",this.listLoading=true,this.reporterError=null,this.render();try{this.featureBoard=await this.callbacks.onFeatureBoardRequest?.()??[];}catch(t){this.reporterError=t instanceof Error?t.message:"Could not load community ideas.";}finally{this.listLoading=false,this.render();}}async voteFeatureBoard(t){if(!(!this.callbacks.onFeatureBoardVote||this.actionPending)){this.actionPending=true,this.render();try{await this.callbacks.onFeatureBoardVote(t),this.featureBoard=await this.callbacks.onFeatureBoardRequest?.()??this.featureBoard;}catch(r){this.reporterError=r instanceof Error?r.message:"Could not update vote.";}finally{this.actionPending=false,this.render();}}}async runThreadAction(t,r){let n=this.selectedReportId;if(!n||this.actionPending)return false;this.actionPending=true,this.actionError=null,this.render();try{return await r(n),await this.refreshReporterInboxQuiet(),await this.openThread(n,!0),!0}catch(i){return this.actionError=i instanceof Error?i.message:t,false}finally{this.actionPending=false,this.render();}}async submitReporterReopen(){await this.runThreadAction("Could not reopen report.",async t=>{this.callbacks.onReporterReopen?await this.callbacks.onReporterReopen(t,"Not fixed for me"):await this.callbacks.onReporterFeedback?.(t,"not_fixed","Not fixed for me");});}async submitReporterFeedback(t){await this.runThreadAction("Could not send feedback.",r=>Promise.resolve(this.callbacks.onReporterFeedback?.(r,t)));}async refreshReporterInboxQuiet(){try{let t=this.callbacks.onReporterReportsRequest?.();this.reporterReports=t?await Ut(t,qt):[],this.isOpen&&this.render();}catch{}}async loadReporterReports(){this.ensureOpen(),this.step="reports",this.listLoading=true,this.reporterError=null,this.render();try{let t=this.callbacks.onReporterReportsRequest?.();this.reporterReports=t?await Ut(t,qt):[];}catch{this.reporterError=this.rc.ui.loadError;}finally{this.listLoading=false,this.render();}}async openTrackedReport(t){await this.loadReporterReports(),this.isOpen&&this.step==="reports"&&await this.openThread(t);}async openThread(t,r=false){this.selectedReportId!==t&&(delete this.drafts["reporter-reply"],this.reporterComments=[],this.timeline=null,this.pendingReplies=[],this.actionError=null,r=false),this.selectedReportId=t,this.step="report-detail",this.threadError=null,r||(this.threadLoading=true,this.render(),this.markRead(t));try{let n=this.callbacks.onReporterReportRequest?.(t),i=n?await Ut(n,qt):null;if(i)this.selectedReportId===t&&(this.timeline=i.timeline??null,i.report&&(this.reporterReports=this.reporterReports.map(o=>o.id===t?{...o,...i.report}:o)));else {let o=this.callbacks.onReporterCommentsRequest?.(t),s=o?await Ut(o,qt):[];this.selectedReportId===t&&(this.reporterComments=s);}}catch{this.selectedReportId===t&&(this.threadError=this.rc.ui.loadError);}finally{this.threadLoading=false,this.render();}}markRead(t){let r=this.reporterReports.find(n=>n.id===t);r?.unread_count&&(r.unread_count=0,Promise.resolve(this.callbacks.onReporterMarkRead?.(t)).catch(()=>{}));}submitReporterReply(){let t=this.panel.querySelector('[data-role="reporter-reply"]'),r=(t?.value??"").trim();if(!r||!this.selectedReportId)return;let n=++this.replySeq;this.pendingReplies.push({id:n,body:r,state:"sending"}),delete this.drafts["reporter-reply"],t&&(t.value="",au(t)),this.sendPendingReply(n);}async sendPendingReply(t){let r=this.pendingReplies.find(i=>i.id===t),n=this.selectedReportId;if(!(!r||!n)){r.state="sending",this.render(),this.announce(this.rc.ui.sending);try{await Ut(Promise.resolve(this.callbacks.onReporterReply?.(n,r.body)),qt),await this.openThread(n,!0),this.pendingReplies=this.pendingReplies.filter(i=>i.id!==t),this.render(),this.announce(this.rc.ui.sent);}catch{r.state="failed",this.render(),this.announce(this.rc.ui.sendFailed);}}}async saveEmailOptIn(){let t=(this.panel.querySelector('[data-role="optin-email"]')?.value??"").trim();if(!La(t)||!this.callbacks.onReporterEmailOptIn){this.emailState="invalid",this.render();return}this.emailState="saving",this.render();try{await this.callbacks.onReporterEmailOptIn(t),this.emailState="saved";}catch{this.emailState="error";}this.render();}async subscribePush(){if(!this.callbacks.onReporterPushSubscribe||this.pushState==="asking")return;let t=this.callbacks.onReporterPushSubscribe();this.pushState="asking",this.render();try{await t,this.pushState="on";}catch{this.pushState="error";}this.render();}async showUpdatesToast(t){let r=(await ou()).pickUpdateToast(t,this.lang,this.rc.ui.toastReplied);return r?this.showUpdateToast(r):false}async preloadViews(){try{await ou();}catch{vi=null;}}showUpdatesFeedToast(t,r){if(!(t.unread_total>0))return false;let n=new Set(t.latest.map(a=>a.report_id)),i=n.size===1?[...n][0]:null,o=i?r.find(a=>a.id===i):void 0,s=o?.title??o?.summary??(i?t.latest[0]?.preview:void 0);return this.showUpdateToast({text:Ma(t,this.lang),reportId:i,...s?{detail:s}:{}})}showUpdateToast(t){if(this.isOpen||!this.triggerVisible||this.triggerHiddenByScroll||this.isMobileSmartHidden()||this.isRouteHidden()||this.isSuppressedByHost())return false;this.removeToast();let r=document.createElement("div");r.className=`mushi-toast ${this.config.trigger==="banner"?`banner-${this.config.bannerConfig?.position??"top"}`:this.config.position}`,r.setAttribute("role","status"),r.style.zIndex=String(this.config.zIndex+1);let n=document.createElement("span"),i=document.createElement("strong");if(i.textContent=t.text,n.append(i),t.detail){let a=document.createElement("small");a.textContent=t.detail,n.append(a);}let o=document.createElement("button");o.type="button",o.className="mushi-btn",o.textContent=this.rc.ui.view,o.addEventListener("click",()=>{this.removeToast();let a=t.reportId;a?this.loadReporterReports().then(()=>{this.isOpen&&this.step==="reports"&&this.openThread(a);}):this.openReporter();});let s=document.createElement("button");return s.type="button",s.className="mushi-icon-btn",s.textContent="\u2715",s.setAttribute("aria-label",this.locale.widget.close),s.addEventListener("click",()=>this.removeToast()),r.append(n,o,s),this.applyInsetVars(r),this.shadow.insertBefore(r,this.panel),this.toastEl=r,true}removeToast(){this.toastEl?.remove(),this.toastEl=null;}rememberOpener(){let t=document.activeElement;this.opener=t===this.host?this.shadow.activeElement:t;}restoreOpenerFocus(){let t=this.opener?.isConnected?this.opener:this.opener?.classList.contains("mushi-trigger")?this.triggerEl:null;this.opener=null,t&&t!==document.body&&t.focus({preventScroll:true});}announce(t){this.live.textContent="",setTimeout(()=>{this.live.textContent=t;},30);}async handleMagicLinkSend(){if(this.magicLinkSending)return;let t=(this.drafts["magic-link-email"]??this.magicLinkEmail).trim();if(!t||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)){this.magicLinkError="Please enter a valid email address.",this.render();return}this.magicLinkEmail=t,this.magicLinkError="",this.magicLinkSending=true,this.render();try{await this.callbacks.onMushiSignIn?.(t),this.magicLinkSent=!0;}catch(r){this.magicLinkError=r instanceof Error?r.message:"Could not send sign-in link. Try again.";}finally{this.magicLinkSending=false,this.render();}}openReporter(){this.loadReporterReports();}getRecorderStep(){return this.step}getRecorderCategoryStepIA(){return {sectionLabel:this.shadow.querySelector("#mushi-title")?.textContent?.trim()??"",moreToggle:!!this.shadow.querySelector('[data-action="toggle-more-nav"]'),footerStepIndicators:0}}getRecorderTrigger(){return this.triggerEl}getRecorderCategoryButton(t){return this.shadow.querySelector(`[data-category="${t}"]`)}getRecorderIntentButton(t){return Array.from(this.shadow.querySelectorAll("[data-intent]")).find(r=>r.dataset.intent===t)??null}getRecorderSubmitButton(){return this.shadow.querySelector('[data-action="submit"]')}recorderClickTrigger(){this.isOpen&&this.close(),this.open();}recorderSelectCategory(t){this.isOpen||this.open(),this.step="report",this.chip=t,this.intent=null,this.render();}recorderSelectIntent(t){!this.isOpen||this.step!=="report"||(this.intent=t,this.render());}recorderFocusDescription(){this.shadow.querySelector('[data-role="description"]')?.focus();}recorderSubmit(){this.submitReport();}recorderOpenMyReports(){this.loadReporterReports();}};function uu(e){return Array.from(e.trim()).length>2}function ah(e){let{anchor:t,inset:r}=e;return !!(e.draggable||uu(e.triggerText??"")||t?.left!==void 0||t?.right!==void 0||r?.left!==void 0||r?.right!==void 0)}function su(e){let t=e.dataset;return t.role?`[data-role="${t.role}"]`:t.category?`[data-category="${pn(t.category)}"]`:t.intent?`[data-intent="${pn(t.intent)}"]`:t.reportId?`[data-report-id="${pn(t.reportId)}"]`:t.action?`[data-action="${t.action}"]${t.value?`[data-value="${pn(t.value)}"]`:""}`:null}function pn(e){return e.replace(/["\\]/g,"\\$&")}function au(e){e.style.height="auto",e.style.height=`${Math.min(e.scrollHeight,104)}px`;}function uh(e){let t=e.dataset.copyId;if(!t)return;let r=e.textContent,n=()=>{e.textContent="Copied \u2713",window.setTimeout(()=>{e.isConnected&&(e.textContent=r);},1600);};try{navigator.clipboard?.writeText?navigator.clipboard.writeText(t).then(n,n):n();}catch{n();}}function wi(e,t){try{return globalThis[e]?.getItem(t)??null}catch{return null}}function Si(e,t,r){try{globalThis[e]?.setItem(t,r);}catch{}}function xi(e){Si("localStorage",`mushi_has_reports_${e}`,"1");}function ki(e){return wi("localStorage",`mushi_has_reports_${e}`)==="1"}function lu(e,t=Date.now()){if(wi("sessionStorage",`mushi_toast_${e}`))return false;let r=Number(wi("localStorage",`mushi_toast_at_${e}`)??0);return !(r&&t-r<864e5)}function cu(e,t=Date.now()){Si("sessionStorage",`mushi_toast_${e}`,"1"),Si("localStorage",`mushi_toast_at_${e}`,String(t));}function du(e){let t=e.reporterRequest,r=n=>encodeURIComponent(n);return {getUpdates:(n,i)=>t("GET",`/v1/reporter/updates${i?`?since=${encodeURIComponent(i)}`:""}`,n),getReport:(n,i)=>t("GET",`/v1/reporter/reports/${r(n)}`,i),markReportRead:(n,i)=>t("POST",`/v1/reporter/reports/${r(n)}/read`,i,{}),markAllRead:n=>t("POST","/v1/reporter/notifications/read-all",n,{}),getPrefs:n=>t("GET","/v1/reporter/notification-prefs",n),setPrefs:(n,i)=>t("PUT","/v1/reporter/notification-prefs",n,i),subscribePush:(n,i)=>t("POST","/v1/reporter/push-subscriptions",n,i),unsubscribePush:(n,i)=>t("DELETE","/v1/reporter/push-subscriptions",n,{endpoint:i})}}async function pu(e,t,r,n){try{if(!r||typeof Notification>"u"||!navigator.serviceWorker)return {ok:!1,reason:"unsupported"};if(!n)return {ok:!1,reason:"not_available"};if(await Notification.requestPermission()!=="granted")return {ok:!1,reason:"denied"};let i=await navigator.serviceWorker.register(r),o=n.replace(/-/g,"+").replace(/_/g,"/"),s=atob(o+"=".repeat((4-o.length%4)%4)),a=await i.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Uint8Array.from(s,c=>c.charCodeAt(0))}),u=await e.subscribePush(t,a.toJSON());return u.ok?{ok:!0}:{ok:!1,reason:u.error?.code??"error"}}catch(i){return {ok:false,reason:i instanceof Error&&i.name||"error"}}}function lh(e,t){let r={...e};if(t)for(let[n,i]of Object.entries(t))i!==void 0&&(r[n]=i);return r}function ch(e,t){return e.widget?.[t]!==void 0}var dh=["manual","attach"],ph=["variant","position","message","label","bugCta","featureCta"];function hu(e,t,r=e){let n=t.native?.triggerMode,i=t.widget?.launcher,o=e.widget?.trigger,s=r.widget?.trigger,a=i??t.widget?.trigger,u=s!==void 0&&dh.includes(s)&&a!=="hidden",p=u?void 0:(u||a==="auto"&&o&&o!=="auto"?void 0:a)??(n==="none"||n==="shake"?"manual":void 0),h=i==="hidden"||t.widget?.trigger==="hidden",b=p==="hidden"&&!h&&o&&o!=="hidden"?o:p,A=t.widget??{},T=r.widget?.bannerConfig??{},E={};for(let k of ph){let v=A["banner"+k[0].toUpperCase()+k.slice(1)];(v!=null&&v!==""||k==="label"&&v==="")&&T[k]===void 0&&(E[k]=v===""?false:v);}let y=Object.keys(E).length?{...e.widget?.bannerConfig,...E}:void 0,x={};for(let[k,v]of Object.entries(A))k==="trigger"||k==="launcher"||k==="accentText"||v==null||ch(r,k)||(x[k]=v);return x.accent!==void 0&&A.accentText!=null&&(x.accentText=A.accentText),{...e,widget:{...e.widget,...x,...b?{trigger:b}:{},...y?{bannerConfig:y}:{},...e.widget?.betaMode?{betaMode:e.widget.betaMode}:{}},capture:lh(e.capture,t.capture),privacy:{...e.privacy}}}function fn(e){if(!e)return null;let t=e.getBoundingClientRect();return t.width===0&&t.height===0?null:{x:t.left+t.width/2,y:t.top+t.height/2}}function fu(e){if(typeof globalThis>"u")return;let t={ready:()=>e.getIsMounted(),getStep:()=>e.getRecorderStep(),getCategoryStepIA:()=>e.getRecorderCategoryStepIA(),getTriggerCenter:()=>fn(e.getRecorderTrigger()),getCategoryCenter:r=>fn(e.getRecorderCategoryButton(r)),getIntentCenter:r=>fn(e.getRecorderIntentButton(r)),getSubmitCenter:()=>fn(e.getRecorderSubmitButton()),clickTrigger:()=>e.recorderClickTrigger(),selectCategory:r=>e.recorderSelectCategory(r),selectIntent:r=>e.recorderSelectIntent(r),focusDescription:()=>e.recorderFocusDescription(),submit:()=>e.recorderSubmit(),openMyReports:()=>e.recorderOpenMyReports()};globalThis.__mushiRecorder=t;}var mn=null,gn=null,yr=null,vr=null,wr=null,Sr=false,At=new Set;function hh(){for(let e of At)try{e.onPush?.();}catch{}}function fh(){for(let e of At)try{e.onReplace?.();}catch{}}function mh(){for(let e of At)try{e.onPop?.();}catch{}}function gh(){if(Sr||typeof window>"u")return;let e=history.pushState,t=history.replaceState;mn=e,gn=t;let r=function(...o){let s=e.apply(history,o);return yr===r&&hh(),s},n=function(...o){let s=t.apply(history,o);return vr===n&&fh(),s};yr=r,vr=n,history.pushState=r,history.replaceState=n,wr=()=>mh(),window.addEventListener("popstate",wr),Sr=true;}function mu(){!Sr||typeof window>"u"||(wr&&(window.removeEventListener("popstate",wr),wr=null),yr&&history.pushState===yr&&mn&&(history.pushState=mn),vr&&history.replaceState===vr&&gn&&(history.replaceState=gn),yr=null,vr=null,mn=null,gn=null,Sr=false);}function He(e){return gh(),Sr?(At.add(e),()=>{At.delete(e),At.size===0&&mu();}):()=>{}}function gu(){At.clear(),mu();}var bh=3e4,Eh=3e5,yh=6e4,vh=60,yu="mushi_session_min_day_",Kt=[],Vt=null,zt=null,Qe=null,vu=null,Ri=null,Gt=null,ht=false,kr=null,wu=0,Ai=null,wh=300*1e3,Ii=0,Sh=900*1e3;function Mi(){return Date.now()<Ii}function Li(e){e?.startsWith("HTTP_4")&&(Ii=Date.now()+Sh);}var bu=new Set;function _i(e){return `mushi_rewards_consent_${e}`}function xh(e){try{return localStorage.getItem(_i(e))==="1"}catch{return false}}function Ci(e,t){try{t?localStorage.setItem(_i(e),"1"):localStorage.removeItem(_i(e)),ht=t;}catch{}}function Su(){return new Date().toISOString().slice(0,10)}function xu(e){try{let t=sessionStorage.getItem(`${yu}${e}_${Su()}`);return t?parseInt(t,10):0}catch{return 0}}function kh(e){let t=Su(),r=`${yu}${e}_${t}`;try{let n=xu(e)+1;return sessionStorage.setItem(r,String(n)),n}catch{return 99}}function ku(e){Gt=e.client,Qe=e.userId,vu=e.traits??null,Ri=e.reporterToken??null;let{projectId:t}=e,r=Math.max(bh,e.config.flushIntervalMs??Eh);e.config.consentMode==="auto"?(ht=true,Ci(t,true)):ht=xh(t),e.config.trackActivity&&_h(t),Vt&&clearInterval(Vt),Vt=setInterval(()=>Rh(e),r),zt&&clearInterval(zt),zt=setInterval(()=>{if(!ht||!Qe)return;let n=xu(t);n<vh&&(kh(t),Yt({action:"session_minute",metadata:{minutes_today:n+1}}));},yh),e.config.showInWidget&&Di(Qe).then(n=>{n&&Tu(n,e.config);}),e.config.consentMode!=="auto"&&!ht&&Ah(t,e.config);}function Yt(e){!ht||!Qe||Kt.push({...e,queuedAt:Date.now()});}async function Rh(e){if(!ht||!Qe||Kt.length===0)return;let t=null;if(e.config.verifyUserToken)try{t=await e.config.verifyUserToken();}catch{}if(Mi())return;let r=Kt.splice(0,100);try{let n=Ri?await Ht(Ri):void 0,i=await e.client.submitActivity(Qe,r,{userTraits:vu??void 0,reporterTokenHash:n,optedIn:!0,hostJwt:t??void 0});i.ok||(Li(i.error?.code),i.error?.code?.startsWith("HTTP_4")||Kt.unshift(...r.slice(0,50)));}catch{Kt.unshift(...r.slice(0,50));}}async function Ru(e){let t=Date.now();return kr&&Ai===e&&t-wu<wh?kr:Di(e)}async function Di(e){if(!Gt||Mi())return null;let t=await Gt.getMyTier(e);return t.ok&&t.data?(kr=t.data,wu=Date.now(),Ai=e,kr):(Li(t.error?.code),null)}async function _u(e=10){if(!Gt||Mi())return null;try{let t=await Gt.getHallOfFame(e);return t.ok&&t.data?(t.data.data??[]).map(r=>({display_name:r.display_name,tier_name:r.tier_name,total_points:r.total_points,points_30d:r.points_30d})):(Li(t.error?.code),null)}catch{return null}}function Cu(){Vt&&(clearInterval(Vt),Vt=null),zt&&(clearInterval(zt),zt=null),Ti(),Th(),ke&&(ke.remove(),ke=null),Kt=[],Qe=null,Gt=null,ht=false,kr=null,Ai=null,Ii=0;}var En=null,xr=null,yn=null,Eu="",bn=false;function _h(e){if(!(bn&&yn)){bn&&Ti(),bn=true;try{Ch(e);}catch(t){throw Ti(),t}}}function Ch(e){let t=()=>{let n=location.pathname;if(n===Eu)return;Eu=n,!bu.has(`${e}:${n}`)&&(bu.add(`${e}:${n}`),Yt({action:"screen_view_unique_per_day",metadata:{route:n}}));};yn=He({onPush:t,onPop:t}),t(),En=new MutationObserver(()=>t());let r=document.querySelector("main")??document.body;En.observe(r,{childList:true,subtree:false}),xr=n=>{let i=n.target.closest("[data-testid]");if(!i)return;let o=i.dataset.testid;o&&Yt({action:"element_selected",metadata:{testid:o,route:location.pathname}});},document.addEventListener("click",xr,{capture:true,passive:true});}function Ti(){bn=false,yn?.(),yn=null,En?.disconnect(),En=null,xr&&(document.removeEventListener("click",xr,{capture:true}),xr=null);}var Ze=null;function Tu(e,t){if(!t.showInWidget)return;Ze&&Ze.remove(),Ze=document.createElement("div"),Ze.id="mushi-tier-badge",Object.assign(Ze.style,{position:"fixed",bottom:"56px",right:"16px",zIndex:"2147483645",fontFamily:"system-ui, sans-serif"});let r=Ze.attachShadow({mode:"closed"});r.innerHTML=`
18
18
  <style>
19
19
  :host { display: block; }
20
20
  .badge {
@@ -44,7 +44,7 @@ ${a}`}catch{return null}finally{clearTimeout(i);}}function of(e){try{return Arra
44
44
  <span class="dot"></span>
45
45
  <span>${e.displayName}</span>
46
46
  </div>
47
- `,document.body.appendChild(Ze);}function bh(){Ze?.remove(),Ze=null;}var xe=null;function Eh(e,t){if(xe)return;xe=document.createElement("div"),xe.id="mushi-consent-banner",Object.assign(xe.style,{position:"fixed",bottom:"80px",right:"16px",zIndex:"2147483646",maxWidth:"280px",fontFamily:"system-ui, sans-serif"});let r=xe.attachShadow({mode:"closed"});r.innerHTML=`
47
+ `,document.body.appendChild(Ze);}function Th(){Ze?.remove(),Ze=null;}var ke=null;function Ah(e,t){if(ke)return;ke=document.createElement("div"),ke.id="mushi-consent-banner",Object.assign(ke.style,{position:"fixed",bottom:"80px",right:"16px",zIndex:"2147483646",maxWidth:"280px",fontFamily:"system-ui, sans-serif"});let r=ke.attachShadow({mode:"closed"});r.innerHTML=`
48
48
  <style>
49
49
  :host { display: block; }
50
50
  .banner {
@@ -79,7 +79,7 @@ ${a}`}catch{return null}finally{clearTimeout(i);}}function of(e){try{return Arra
79
79
  <button class="decline" id="decline">No thanks</button>
80
80
  </div>
81
81
  </div>
82
- `,r.getElementById("accept")?.addEventListener("click",()=>{_i(e,true),xe?.remove(),xe=null,t.showInWidget&&Qe&&Li(Qe).then(n=>{n&&ku(n,t);});}),r.getElementById("decline")?.addEventListener("click",()=>{_i(e,false),xe?.remove(),xe=null;}),document.body.appendChild(xe);}var yh=[/\/v1\/sdk(?:\/|$)/,/\/v1\/reports(?:\/|$)/,/\/v1\/notifications(?:\/|$)/,/\/v1\/reputation(?:\/|$)/];function En(e){return typeof e=="string"?e:e instanceof URL?e.href:e.url}function yn(e,t){let r=t?.[hr];if(r)return r;let n=Sh(t?.headers,Yr);if(n)return n;if(typeof Request<"u"&&e instanceof Request){let i=e.headers.get(Yr);if(i)return i}return null}function Rr(e,t={}){if([...yh,...t.ignoreUrls??[]].some(i=>vh(e,i)))return true;let n=wh(t.apiEndpoint);return n?Di(e).startsWith(n):false}function vh(e,t){return typeof t=="string"?Di(e).includes(t):(t.lastIndex=0,t.test(e))}function wh(e){if(!e)return null;let t=Di(e),r=t.length;for(;r>0&&t.charCodeAt(r-1)===47;)r--;return t.slice(0,r)}function Di(e){try{return new URL(e,typeof location<"u"?location.href:"http://localhost").href}catch{return e}}function Sh(e,t){if(!e)return null;if(typeof Headers<"u"&&e instanceof Headers)return e.get(t);if(Array.isArray(e))return e.find(([i])=>i.toLowerCase()===t.toLowerCase())?.[1]??null;let r=e;return r[t]??r[t.toLowerCase()]??null}var xh=30,kh="00";function Ru(){let e=crypto.getRandomValues(new Uint8Array(16)),t=crypto.getRandomValues(new Uint8Array(8)),r=o=>Array.from(o).map(s=>s.toString(16).padStart(2,"0")).join(""),n=r(e),i=r(t);return {traceparent:`${kh}-${n}-${i}-01`,traceId:n,spanId:i}}function _u(e,t){for(let r of t)if(typeof r=="string"){if(e.includes(r))return true}else if(r.test(e))return true;return false}var $e=[];function Tu(){return $e[$e.length-1]}function Cu(){let e=crypto.getRandomValues(new Uint8Array(4));return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}function $i(e={}){let t=[],r=globalThis.fetch,n=typeof XMLHttpRequest<"u"?XMLHttpRequest:null,i=n?XMLHttpRequest.prototype.open:null,o=n?XMLHttpRequest.prototype.send:null,s=n?XMLHttpRequest.prototype.setRequestHeader:null,a=e,u=async function(x,g){let y=Date.now(),C=g?.method?.toUpperCase()??"GET",R=En(x),T=!yn(x,g)&&!Rr(R,a),A=T?Cu():void 0,E,f=g,b=a.tracePropagation;if(T&&b?.enabled&&b.corsUrls?.length&&_u(R,b.corsUrls)){let{traceparent:_,traceId:B}=Ru();E=B;let j=g?.headers?new Headers(g.headers):new Headers;j.set("traceparent",_),a.sessionId&&j.set("x-mushi-session",a.sessionId),f={...g,headers:j};}A&&$e.push(A);try{let _=await r.call(globalThis,x,f);return T&&m({method:C,url:Pi(R),status:_.status,duration:Date.now()-y,timestamp:y,captureMethod:"fetch",...E?{traceId:E}:{},...A?{correlationId:A}:{}}),_}catch(_){throw T&&m({method:C,url:Pi(R),status:0,duration:Date.now()-y,timestamp:y,error:_ instanceof Error?_.message:"Network error",captureMethod:"fetch",...E?{traceId:E}:{},...A?{correlationId:A}:{}}),_}finally{if(A){let _=$e.lastIndexOf(A);_!==-1&&$e.splice(_,1);}}};globalThis.fetch=u;let c=typeof WeakMap<"u"?new WeakMap:null;if(n&&i&&o&&s&&c){let w=i;XMLHttpRequest.prototype.open=function(...g){let[y,C]=g,R=typeof C=="string"?C:String(C),v=!Rr(R,a),T=v?Cu():void 0,A,E,f=a.tracePropagation;if(v&&f?.enabled&&f.corsUrls?.length&&_u(R,f.corsUrls)){let _=Ru();A=_.traceId,E=_.traceparent;}let b=c.get(this);if(b?._listener&&(this.removeEventListener("readystatechange",b._listener),b.correlationId)){let _=$e.lastIndexOf(b.correlationId);_!==-1&&$e.splice(_,1);}c.set(this,{method:String(y).toUpperCase(),url:Pi(R),startTime:0,shouldRecord:v,...A?{traceId:A}:{},...T?{correlationId:T}:{},...E?{_traceparent:E}:{}}),w.apply(this,g);},XMLHttpRequest.prototype.send=function(g){let y=c.get(this);if(y){y.startTime=Date.now();let C=y._traceparent;C&&(s.call(this,"traceparent",C),a.sessionId&&s.call(this,"x-mushi-session",a.sessionId)),y.correlationId&&$e.push(y.correlationId);let R=()=>{if(this.readyState===4){if(this.removeEventListener("readystatechange",R),y._listener=void 0,y.shouldRecord){let v=Date.now()-y.startTime,T={method:y.method,url:y.url,status:this.status,duration:v,timestamp:y.startTime,captureMethod:"xhr",...y.traceId?{traceId:y.traceId}:{},...y.correlationId?{correlationId:y.correlationId}:{}};this.status===0&&(T.error="XHR network error or aborted"),m(T);}if(y.correlationId){let v=$e.lastIndexOf(y.correlationId);v!==-1&&$e.splice(v,1);}}};y._listener=R,this.addEventListener("readystatechange",R);}try{o.call(this,g);}catch(C){if(y?.correlationId){let R=$e.lastIndexOf(y.correlationId);R!==-1&&$e.splice(R,1);}throw y?._listener&&(this.removeEventListener("readystatechange",y._listener),y._listener=void 0),C}};}let p=n?XMLHttpRequest.prototype.open:null,h=n?XMLHttpRequest.prototype.send:null;function m(w){t.push(w),t.length>xh&&t.shift();}return {getEntries(){return [...t]},clear(){t.length=0;},updateOptions(w){a=w;},destroy(){globalThis.fetch===u&&(globalThis.fetch=r),n&&i&&o&&(p&&XMLHttpRequest.prototype.open===p&&(XMLHttpRequest.prototype.open=i),h&&XMLHttpRequest.prototype.send===h&&(XMLHttpRequest.prototype.send=o));}}}function Pi(e){let t=mr(e);try{let r=new URL(t),n=r.pathname+r.search;return n.length>200?r.origin+n.slice(0,200)+"...":r.origin+n}catch{return t.slice(0,200)}}var Rh=50,_h=500;function Bi(){let e=[],t={},r={},n=["log","warn","error","info","debug"],i=u=>{if(u instanceof Error)return `${u.name}: ${u.message}`;try{return typeof u=="string"?u:JSON.stringify(u)}catch{return String(u)}},o=(u,c,p,h)=>{let m={level:u,message:c.slice(0,_h),timestamp:Date.now(),...h};p instanceof Error&&p.stack&&(m.stack=p.stack.slice(0,1e3)),e.push(m),e.length>Rh&&e.shift();};for(let u of n){let c=console[u];t[u]=c;let p=(...h)=>{let m=Tu();o(u,h.map(i).join(" "),u==="error"?h.find(w=>w instanceof Error):void 0,m?{correlationId:m}:void 0),c.call(console,...h);};r[u]=p,console[u]=p;}let s=u=>{if(u.type==="unhandledrejection"){let c=u.reason;o("error",`Unhandled rejection: ${i(c)}`,c);}else {let c=u,p=c.filename?` (${c.filename}:${c.lineno}:${c.colno})`:"";o("error",`Uncaught ${i(c.error??(c.message||"error"))}${p}`,c.error);}},a=typeof window<"u"&&typeof window.addEventListener=="function";return a&&(window.addEventListener("error",s),window.addEventListener("unhandledrejection",s)),{getEntries(){return [...e]},clear(){e.length=0;},destroy(){for(let u of n)t[u]&&console[u]===r[u]&&(console[u]=t[u]);a&&(window.removeEventListener("error",s),window.removeEventListener("unhandledrejection",s));}}}wn();function bf(e){if(!e||!e.tagName)return;let t=e,r=t.tagName.toLowerCase(),n=t.id?`#${t.id}`:"",i=t.classList&&t.classList.length>0?`.${t.classList[0]}`:"";return `${r}${n}${i}`}function Hi(){let e={},t=[];if(typeof PerformanceObserver<"u"){try{let r=new PerformanceObserver(n=>{for(let i of n.getEntries())i.name==="first-contentful-paint"&&(e.fcp=i.startTime);});r.observe({type:"paint",buffered:!0}),t.push(r);}catch{}try{let r=new PerformanceObserver(n=>{let i=n.getEntries();i.length>0&&(e.lcp=i[i.length-1].startTime);});r.observe({type:"largest-contentful-paint",buffered:!0}),t.push(r);}catch{}try{let r=0,n=new PerformanceObserver(i=>{for(let o of i.getEntries())o.hadRecentInput||(r+=o.value??0,e.cls=r);});n.observe({type:"layout-shift",buffered:!0}),t.push(n);}catch{}try{let r=0,n=new PerformanceObserver(i=>{r+=i.getEntries().length,e.longTasks=r;});n.observe({type:"longtask",buffered:!0}),t.push(n);}catch{}try{let r=new Map,n=new PerformanceObserver(i=>{for(let o of i.getEntries()){let s=o.interactionId;if(!s)continue;let a=r.get(s)??0;if(o.duration>a&&r.set(s,o.duration),o.duration>(e.inp??0)){e.inp=o.duration;let u=o.processingStart-o.startTime,c=o.processingEnd-o.processingStart,p=o.startTime+o.duration-o.processingEnd;e.inpAttribution={eventType:o.name,targetSelector:bf(o.target),inputDelay:Math.max(0,u),processingDuration:Math.max(0,c),presentationDelay:Math.max(0,p)};}}});n.observe({type:"event",durationThreshold:40,buffered:!0}),t.push(n);}catch{}try{let r=new PerformanceObserver(n=>{for(let i of n.getEntries())e.fid===void 0&&(e.fid=i.processingStart-i.startTime);});r.observe({type:"first-input",buffered:!0}),t.push(r);}catch{}}if(typeof performance<"u"&&performance.getEntriesByType)try{let r=performance.getEntriesByType("navigation");r.length>0&&r[0]&&(e.ttfb=r[0].responseStart-r[0].requestStart);}catch{}return {getMetrics(){return {...e}},destroy(){for(let r of t)r.disconnect();t.length=0;}}}function Ni(e=()=>"",t=r=>r){let r=false,n=null,i=null,o=null,s=null;function a(f){let b=f,_=0;for(;b&&_<20;){let B=b.getAttribute?.("data-testid");if(B)return B;b=b.parentElement,_++;}return null}function u(f){let b=[],_=f;for(;_&&_!==document.body;){let B=1,j=_.previousElementSibling;for(;j;)j.tagName===_.tagName&&B++,j=j.previousElementSibling;let q=_.tagName.toLowerCase();b.unshift(B>1?`${q}[${B}]`:q),_=_.parentElement;}return "//"+b.join("/")}function c(f){let b=e();if(b)try{if(f.closest(b)||f.querySelector(b))return}catch{return}let _=f.textContent?.trim().slice(0,200);return _?t(_):void 0}function p(f){let b=f.getBoundingClientRect(),_=typeof f.className=="string"?f.className:f.getAttribute("class")??"";return {tagName:f.tagName.toLowerCase(),id:f.id||void 0,className:_||void 0,textContent:c(f),xpath:u(f),rect:{x:Math.round(b.x),y:Math.round(b.y),width:Math.round(b.width),height:Math.round(b.height)},nearestTestid:a(f)||void 0,route:typeof window<"u"?window.location.pathname:void 0}}function h(){let f=document.createElement("div");return f.style.cssText=`
82
+ `,r.getElementById("accept")?.addEventListener("click",()=>{Ci(e,true),ke?.remove(),ke=null,t.showInWidget&&Qe&&Di(Qe).then(n=>{n&&Tu(n,t);});}),r.getElementById("decline")?.addEventListener("click",()=>{Ci(e,false),ke?.remove(),ke=null;}),document.body.appendChild(ke);}var Ih=[/\/v1\/sdk(?:\/|$)/,/\/v1\/reports(?:\/|$)/,/\/v1\/notifications(?:\/|$)/,/\/v1\/reputation(?:\/|$)/];function vn(e){return typeof e=="string"?e:e instanceof URL?e.href:e.url}function wn(e,t){let r=t?.[hr];if(r)return r;let n=Dh(t?.headers,Jr);if(n)return n;if(typeof Request<"u"&&e instanceof Request){let i=e.headers.get(Jr);if(i)return i}return null}function Rr(e,t={}){if([...Ih,...t.ignoreUrls??[]].some(i=>Mh(e,i)))return true;let n=Lh(t.apiEndpoint);return n?Pi(e).startsWith(n):false}function Mh(e,t){return typeof t=="string"?Pi(e).includes(t):(t.lastIndex=0,t.test(e))}function Lh(e){if(!e)return null;let t=Pi(e),r=t.length;for(;r>0&&t.charCodeAt(r-1)===47;)r--;return t.slice(0,r)}function Pi(e){try{return new URL(e,typeof location<"u"?location.href:"http://localhost").href}catch{return e}}function Dh(e,t){if(!e)return null;if(typeof Headers<"u"&&e instanceof Headers)return e.get(t);if(Array.isArray(e))return e.find(([i])=>i.toLowerCase()===t.toLowerCase())?.[1]??null;let r=e;return r[t]??r[t.toLowerCase()]??null}var Ph=30,$h="00";function Au(){let e=crypto.getRandomValues(new Uint8Array(16)),t=crypto.getRandomValues(new Uint8Array(8)),r=o=>Array.from(o).map(s=>s.toString(16).padStart(2,"0")).join(""),n=r(e),i=r(t);return {traceparent:`${$h}-${n}-${i}-01`,traceId:n,spanId:i}}function Iu(e,t){for(let r of t)if(typeof r=="string"){if(e.includes(r))return true}else if(r.test(e))return true;return false}var $e=[];function Lu(){return $e[$e.length-1]}function Mu(){let e=crypto.getRandomValues(new Uint8Array(4));return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}function Bi(e={}){let t=[],r=globalThis.fetch,n=typeof XMLHttpRequest<"u"?XMLHttpRequest:null,i=n?XMLHttpRequest.prototype.open:null,o=n?XMLHttpRequest.prototype.send:null,s=n?XMLHttpRequest.prototype.setRequestHeader:null,a=e,u=async function(T,E){let y=Date.now(),x=E?.method?.toUpperCase()??"GET",k=vn(T),C=!wn(T,E)&&!Rr(k,a),_=C?Mu():void 0,g,f=E,m=a.tracePropagation;if(C&&m?.enabled&&m.corsUrls?.length&&Iu(k,m.corsUrls)){let{traceparent:S,traceId:B}=Au();g=B;let j=E?.headers?new Headers(E.headers):new Headers;j.set("traceparent",S),a.sessionId&&j.set("x-mushi-session",a.sessionId),f={...E,headers:j};}_&&$e.push(_);try{let S=await r.call(globalThis,T,f);return C&&b({method:x,url:$i(k),status:S.status,duration:Date.now()-y,timestamp:y,captureMethod:"fetch",...g?{traceId:g}:{},..._?{correlationId:_}:{}}),S}catch(S){throw C&&b({method:x,url:$i(k),status:0,duration:Date.now()-y,timestamp:y,error:S instanceof Error?S.message:"Network error",captureMethod:"fetch",...g?{traceId:g}:{},..._?{correlationId:_}:{}}),S}finally{if(_){let S=$e.lastIndexOf(_);S!==-1&&$e.splice(S,1);}}};globalThis.fetch=u;let c=typeof WeakMap<"u"?new WeakMap:null;if(n&&i&&o&&s&&c){let A=i;XMLHttpRequest.prototype.open=function(...E){let[y,x]=E,k=typeof x=="string"?x:String(x),v=!Rr(k,a),C=v?Mu():void 0,_,g,f=a.tracePropagation;if(v&&f?.enabled&&f.corsUrls?.length&&Iu(k,f.corsUrls)){let S=Au();_=S.traceId,g=S.traceparent;}let m=c.get(this);if(m?._listener&&(this.removeEventListener("readystatechange",m._listener),m.correlationId)){let S=$e.lastIndexOf(m.correlationId);S!==-1&&$e.splice(S,1);}c.set(this,{method:String(y).toUpperCase(),url:$i(k),startTime:0,shouldRecord:v,..._?{traceId:_}:{},...C?{correlationId:C}:{},...g?{_traceparent:g}:{}}),A.apply(this,E);},XMLHttpRequest.prototype.send=function(E){let y=c.get(this);if(y){y.startTime=Date.now();let x=y._traceparent;x&&(s.call(this,"traceparent",x),a.sessionId&&s.call(this,"x-mushi-session",a.sessionId)),y.correlationId&&$e.push(y.correlationId);let k=()=>{if(this.readyState===4){if(this.removeEventListener("readystatechange",k),y._listener=void 0,y.shouldRecord){let v=Date.now()-y.startTime,C={method:y.method,url:y.url,status:this.status,duration:v,timestamp:y.startTime,captureMethod:"xhr",...y.traceId?{traceId:y.traceId}:{},...y.correlationId?{correlationId:y.correlationId}:{}};this.status===0&&(C.error="XHR network error or aborted"),b(C);}if(y.correlationId){let v=$e.lastIndexOf(y.correlationId);v!==-1&&$e.splice(v,1);}}};y._listener=k,this.addEventListener("readystatechange",k);}try{o.call(this,E);}catch(x){if(y?.correlationId){let k=$e.lastIndexOf(y.correlationId);k!==-1&&$e.splice(k,1);}throw y?._listener&&(this.removeEventListener("readystatechange",y._listener),y._listener=void 0),x}};}let p=n?XMLHttpRequest.prototype.open:null,h=n?XMLHttpRequest.prototype.send:null;function b(A){t.push(A),t.length>Ph&&t.shift();}return {getEntries(){return [...t]},clear(){t.length=0;},updateOptions(A){a=A;},destroy(){globalThis.fetch===u&&(globalThis.fetch=r),n&&i&&o&&(p&&XMLHttpRequest.prototype.open===p&&(XMLHttpRequest.prototype.open=i),h&&XMLHttpRequest.prototype.send===h&&(XMLHttpRequest.prototype.send=o));}}}function $i(e){let t=mr(e);try{let r=new URL(t),n=r.pathname+r.search;return n.length>200?r.origin+n.slice(0,200)+"...":r.origin+n}catch{return t.slice(0,200)}}var Bh=50,Oh=500;function Oi(){let e=[],t={},r={},n=["log","warn","error","info","debug"],i=u=>{if(u instanceof Error)return `${u.name}: ${u.message}`;try{return typeof u=="string"?u:JSON.stringify(u)}catch{return String(u)}},o=(u,c,p,h)=>{let b={level:u,message:c.slice(0,Oh),timestamp:Date.now(),...h};p instanceof Error&&p.stack&&(b.stack=p.stack.slice(0,1e3)),e.push(b),e.length>Bh&&e.shift();};for(let u of n){let c=console[u];t[u]=c;let p=(...h)=>{let b=Lu();o(u,h.map(i).join(" "),u==="error"?h.find(A=>A instanceof Error):void 0,b?{correlationId:b}:void 0),c.call(console,...h);};r[u]=p,console[u]=p;}let s=u=>{if(u.type==="unhandledrejection"){let c=u.reason;o("error",`Unhandled rejection: ${i(c)}`,c);}else {let c=u,p=c.filename?` (${c.filename}:${c.lineno}:${c.colno})`:"";o("error",`Uncaught ${i(c.error??(c.message||"error"))}${p}`,c.error);}},a=typeof window<"u"&&typeof window.addEventListener=="function";return a&&(window.addEventListener("error",s),window.addEventListener("unhandledrejection",s)),{getEntries(){return [...e]},clear(){e.length=0;},destroy(){for(let u of n)t[u]&&console[u]===r[u]&&(console[u]=t[u]);a&&(window.removeEventListener("error",s),window.removeEventListener("unhandledrejection",s));}}}Cr();function If(e){if(!e||!e.tagName)return;let t=e,r=t.tagName.toLowerCase(),n=t.id?`#${t.id}`:"",i=t.classList&&t.classList.length>0?`.${t.classList[0]}`:"";return `${r}${n}${i}`}function qi(){let e={},t=[];if(typeof PerformanceObserver<"u"){try{let r=new PerformanceObserver(n=>{for(let i of n.getEntries())i.name==="first-contentful-paint"&&(e.fcp=i.startTime);});r.observe({type:"paint",buffered:!0}),t.push(r);}catch{}try{let r=new PerformanceObserver(n=>{let i=n.getEntries();i.length>0&&(e.lcp=i[i.length-1].startTime);});r.observe({type:"largest-contentful-paint",buffered:!0}),t.push(r);}catch{}try{let r=0,n=new PerformanceObserver(i=>{for(let o of i.getEntries())o.hadRecentInput||(r+=o.value??0,e.cls=r);});n.observe({type:"layout-shift",buffered:!0}),t.push(n);}catch{}try{let r=0,n=new PerformanceObserver(i=>{r+=i.getEntries().length,e.longTasks=r;});n.observe({type:"longtask",buffered:!0}),t.push(n);}catch{}try{let r=new Map,n=new PerformanceObserver(i=>{for(let o of i.getEntries()){let s=o.interactionId;if(!s)continue;let a=r.get(s)??0;if(o.duration>a&&r.set(s,o.duration),o.duration>(e.inp??0)){e.inp=o.duration;let u=o.processingStart-o.startTime,c=o.processingEnd-o.processingStart,p=o.startTime+o.duration-o.processingEnd;e.inpAttribution={eventType:o.name,targetSelector:If(o.target),inputDelay:Math.max(0,u),processingDuration:Math.max(0,c),presentationDelay:Math.max(0,p)};}}});n.observe({type:"event",durationThreshold:40,buffered:!0}),t.push(n);}catch{}try{let r=new PerformanceObserver(n=>{for(let i of n.getEntries())e.fid===void 0&&(e.fid=i.processingStart-i.startTime);});r.observe({type:"first-input",buffered:!0}),t.push(r);}catch{}}if(typeof performance<"u"&&performance.getEntriesByType)try{let r=performance.getEntriesByType("navigation");r.length>0&&r[0]&&(e.ttfb=r[0].responseStart-r[0].requestStart);}catch{}return {getMetrics(){return {...e}},destroy(){for(let r of t)r.disconnect();t.length=0;}}}function ji(e=()=>"",t=r=>r){let r=false,n=null,i=null,o=null,s=null;function a(f){let m=f,S=0;for(;m&&S<20;){let B=m.getAttribute?.("data-testid");if(B)return B;m=m.parentElement,S++;}return null}function u(f){let m=[],S=f;for(;S&&S!==document.body;){let B=1,j=S.previousElementSibling;for(;j;)j.tagName===S.tagName&&B++,j=j.previousElementSibling;let N=S.tagName.toLowerCase();m.unshift(B>1?`${N}[${B}]`:N),S=S.parentElement;}return "//"+m.join("/")}function c(f){let m=e();if(m)try{if(f.closest(m)||f.querySelector(m))return}catch{return}let S=f.textContent?.trim().slice(0,200);return S?t(S):void 0}function p(f){let m=f.getBoundingClientRect(),S=typeof f.className=="string"?f.className:f.getAttribute("class")??"";return {tagName:f.tagName.toLowerCase(),id:f.id||void 0,className:S||void 0,textContent:c(f),xpath:u(f),rect:{x:Math.round(m.x),y:Math.round(m.y),width:Math.round(m.width),height:Math.round(m.height)},nearestTestid:a(f)||void 0,route:typeof window<"u"?window.location.pathname:void 0}}function h(){let f=document.createElement("div");return f.style.cssText=`
83
83
  position: fixed;
84
84
  pointer-events: none;
85
85
  z-index: 2147483647;
@@ -88,12 +88,12 @@ ${a}`}catch{return null}finally{clearTimeout(i);}}function of(e){try{return Arra
88
88
  border-radius: 4px;
89
89
  transition: all 0.1s ease;
90
90
  display: none;
91
- `,document.body.appendChild(f),f}function m(){let f=document.createElement("div");return f.style.cssText=`
91
+ `,document.body.appendChild(f),f}function b(){let f=document.createElement("div");return f.style.cssText=`
92
92
  position: fixed;
93
93
  inset: 0;
94
94
  z-index: 2147483647;
95
95
  cursor: crosshair;
96
96
  background: transparent;
97
- `,document.body.appendChild(f),f}function w(f,b){let _=document.elementsFromPoint(f,b),B=null;for(let q of _)if(!(q===i||q===n)){if(q.id==="mushi-mushi-widget"||q.closest("#mushi-mushi-widget"))return null;B=q;break}let j=0;for(;B?.shadowRoot&&j<20;){let q=B.shadowRoot.elementFromPoint(f,b);if(!q||q===B)break;B=q,j++;}return B}function x(f){if(!n)return;let b=f.getBoundingClientRect();n.style.left=`${b.left}px`,n.style.top=`${b.top}px`,n.style.width=`${b.width}px`,n.style.height=`${b.height}px`,n.style.display="block";}function g(f){let b=w(f.clientX,f.clientY);if(!b){o=null,n&&(n.style.display="none");return}o=b,x(b);}function y(f){f.preventDefault(),f.stopPropagation();}function C(f){f.preventDefault(),f.stopPropagation();let b=w(f.clientX,f.clientY);b&&T(p(b));}function R(f){f.key==="Escape"&&T(null);}function v(){o?.isConnected&&x(o);}function T(f){E(),s?.(f),s=null;}function A(){return r&&E(),new Promise(f=>{s=f,r=true,n=h(),i=m(),i.addEventListener("mousemove",g),i.addEventListener("click",C),i.addEventListener("pointerdown",y),i.addEventListener("mousedown",y),i.addEventListener("mouseup",y),document.addEventListener("keydown",R,true),window.addEventListener("scroll",v,{capture:true,passive:true});})}function E(){r&&(r=false,o=null,document.removeEventListener("keydown",R,true),window.removeEventListener("scroll",v,{capture:true}),i&&(i.remove(),i=null),n&&(n.remove(),n=null));}return {activate:A,deactivate:E,isActive:()=>r}}var Ou=120;function Ui(){let e=[],t=()=>n("hashchange");n("initial");function r(u){e.push(u),e.length>Ou&&e.shift();}function n(u){typeof location>"u"||r({ts:Date.now(),kind:"route",payload:{source:u,route:mr(`${location.pathname}${location.search}${location.hash}`),href:mr(location.href)}});}function i(u){let c=u.target instanceof Element?u.target:null;if(!c)return;let p=c.closest('button,a,[role="button"],input,textarea,select,[data-mushi-track]')??c;r({ts:Date.now(),kind:"click",payload:{tag:p.tagName.toLowerCase(),id:p.id||void 0,text:Ef(p)}});}let o=He({onPush:()=>n("pushState"),onReplace:()=>n("replaceState"),onPop:()=>n("popstate")}),s=typeof window<"u",a=typeof document<"u";return s&&window.addEventListener("hashchange",t),a&&document.addEventListener("click",i,true),{setScreen(u){r({ts:Date.now(),kind:"screen",payload:u});},getEntries(u={}){return [...e,...(u.consoleLogs??[]).map(p=>({ts:p.timestamp,kind:"log",payload:{level:p.level,message:p.message}})),...(u.networkLogs??[]).map(p=>({ts:p.timestamp,kind:"request",payload:{method:p.method,url:p.url,status:p.status,duration:p.duration,error:p.error}}))].sort((p,h)=>p.ts-h.ts).slice(-Ou)},clear(){e.length=0;},destroy(){o(),s&&window.removeEventListener("hashchange",t),a&&document.removeEventListener("click",i,true);}}}function Ef(e){let t=(e.textContent??"").replace(/\s+/g," ").trim();return t?t.slice(0,80):void 0}var yf=6e4,vf=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,wf=/^[0-9a-f]{20,}$/i,Sf=/^\d+$/,xf=/^[a-z0-9]{16,}$/i;function kf(e){return e.length===0?e:vf.test(e)||wf.test(e)||Sf.test(e)||xf.test(e)&&/\d/.test(e)?"[id]":e}function Rf(e,t,r){if(t.startsWith("#/")){let n=t.slice(1),i=n.indexOf("?"),o=i===-1?n:n.slice(0,i),s=r?.map(a=>a.startsWith("/#/")?a.slice(2):a);return "/#"+Fu(o,s)}return Fu(e,r)}function Fu(e,t){let r=e.length>1&&e.endsWith("/")?e.slice(0,-1):e;if(t?.length){let n=_f(r,t);if(n)return n}return "/"+r.split("/").filter(n=>n.length>0).map(kf).join("/")}function _f(e,t){let r=e.split("/").filter(i=>i.length>0),n=[...t].sort((i,o)=>o.split("/").length-i.split("/").length);for(let i of n){let o=i.split("/").filter(a=>a.length>0);if(o.length!==r.length)continue;let s=true;for(let a=0;a<o.length;a++){let u=o[a],c=r[a];if(!(u.startsWith("[")&&u.endsWith("]"))&&!u.startsWith(":")&&u!==c){s=false;break}}if(s)return "/"+o.join("/")}return null}function Cf(){if(typeof document>"u")return [];let e=new Set,t=document.querySelectorAll("[data-testid]");for(let r of Array.from(t)){let n=r.getAttribute("data-testid");n&&n.length>0&&n.length<120&&e.add(n);}return Array.from(e).sort()}function Tf(){if(typeof window>"u")return [];try{let e=new Set,t=i=>{new URLSearchParams(i).forEach((o,s)=>e.add(s));};t(window.location.search);let r=window.location.hash,n=r.indexOf("?");return r.startsWith("#/")&&n!==-1&&t(r.slice(n+1)),Array.from(e).sort()}catch{return []}}function Af(){if(typeof document>"u")return null;let e=i=>(i??"").replace(/\s+/g," ").trim().slice(0,200),t=e(document.querySelector("h1")?.textContent);if(t)return t;let r=e(document.title);return r||e(document.querySelector("main")?.textContent)||null}async function If(e){if(!e||typeof crypto>"u"||!crypto.subtle)return null;try{let t=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",t),n=new Uint8Array(r),i="";for(let o=0;o<n.length;o++)i+=n[o].toString(16).padStart(2,"0");return i}catch{return null}}function qi(e){let{config:t,getRecentNetworkPaths:r,getUserId:n,getSessionId:i,onEvent:o}=e,s=t.throttleMs??yf,a=t.captureDomSummary!==false,u=t.userIdSource??"auto",c=new Map,p=null,h=null;async function m(){if(typeof window>"u")return;let C=Rf(window.location.pathname,window.location.hash,t.routeTemplates),R=Date.now(),v=c.get(C)??0;if(R-v<s)return;c.set(C,R);let T=null;u==="auto"?T=n()??i():u==="session-only"&&(T=i());let A={route:C,page_title:typeof document<"u"&&(document.title||"").slice(0,300)||null,dom_summary:a?Af():null,testids:Cf(),network_paths:r().slice(-50),query_param_keys:Tf(),user_id_hash:await If(T),observed_at:new Date().toISOString()};o(A);}function w(){h||(h=setTimeout(()=>{h=null,m();},100));}function x(){if(typeof window>"u")return;let C=window.location.hash.startsWith("#/")?window.location.hash:"",R=window.location.pathname+window.location.search+C;R!==p&&(p=R,w());}if(typeof window>"u")return {destroy:()=>{},flushNow:()=>{}};let g=()=>x(),y=He({onPush:g,onReplace:g,onPop:g});return window.addEventListener("hashchange",g),w(),{destroy(){y(),window.removeEventListener("hashchange",g),h&&(clearTimeout(h),h=null),c.clear();},flushNow(){c.clear(),m();}}}var Mf=3e4,Wi=400,Lf=4,Df=2;function Hu(e,t,r){let n=u=>u.timestamp,i=u=>u.type===Df,o=u=>u.type===Lf,s=Date.now()-t,a=0;for(let u=0;u<e.length;u++){let c=n(e[u]);if(typeof c=="number"&&c>=s)break;i(e[u])&&(a=o(e[u-1])?u-1:u);}if(e.length-a>r){for(let u=a+1;u<e.length;u++)if(i(e[u])&&e.length-u<=r){a=o(e[u-1])?u-1:u;break}}a>0&&e.splice(0,a);}function Nu(e){let t=[],r=false,n=o=>{if(!r)return;let s=o.target instanceof Element?o.target:null,a=s?.tagName?.toLowerCase()??"unknown",u=s?.closest("[data-testid]")?.getAttribute("data-testid")??void 0;t.push({type:"lite_click",timestamp:Date.now(),data:{tag:a,testId:u}}),t.length>Wi&&t.shift();},i=()=>{r=false,document.removeEventListener("click",n,true);};return {start(){r||(r=true,document.addEventListener("click",n,true));},stop:i,flush(){let o=Date.now()-e;return t.filter(s=>s.timestamp>=o)},destroy(){i(),t.length=0;}}}var Pf=['input[type="password"]',"[data-mushi-redact]"],$f="rrweb",je=null,Uu=false;function ji(e){if(!e||typeof e!="object")return null;let t=e;return typeof t.record=="function"?t:t.default&&typeof t.default.record=="function"?t.default:null}async function Bf(e){if(je)return je;if(typeof e=="function")try{if(je=ji(await e()),je)return je}catch{}if(je=ji(globalThis.rrweb),je)return je;try{let t=globalThis.__MUSHI_RRWEB_SPECIFIER__||$f;return je=ji(await import(t)),je}catch{return null}}async function qu(e){let t=e.maxDurationMs??Mf;if(e.mode==="lite")return Nu(t);let r=await Bf(e.loadRrweb);if(!r?.record)return Uu||(Uu=true,ct({scope:"mushi"}).warn("capture.replay is 'rrweb' but rrweb could not be loaded, so replay is recording clicks only. Install rrweb and pass capture: { rrweb: () => import('rrweb') }.")),Nu(t);let n=r.record,i=[],o=null,s=false,a=[...new Set([...Pf,...e.redactSelectors??[]])],u=()=>{o?.(),o=null,s=false;};return {start(){s||(s=true,o=n({emit(c){i.push(c),Hu(i,t,Wi);},maskAllInputs:true,maskTextSelector:"*",blockSelector:a.join(","),checkoutEveryNms:t,sampling:{mousemove:false,mouseInteraction:true,scroll:150,media:800}})??null);},stop:u,flush(){return Hu(i,t,Wi),[...i]},destroy(){u(),i.length=0;}}}wn();function ju(){try{let e=globalThis;return e.Sentry?e.Sentry:void 0}catch{return}}function Of(){try{return globalThis.__SENTRY_REPLAY__}catch{return}}function Ff(){try{let e=globalThis,t=e.__SENTRY__,r=e.Sentry;return t?.version==="9"||r&&typeof r.lastEventId=="function"?t?.version==="9"?"v9":"v8":t?.version==="8"?"v8":r&&typeof r.getCurrentHub=="function"?"v7":"unknown"}catch{return "unknown"}}function Ki(e,t={}){let r=Math.max(0,t.breadcrumbsLimit??30),n={},i=ju();if(!i)return n;n.sdk=Ff();try{let a=i;if(typeof a.lastEventId=="function")n.eventId=a.lastEventId()??void 0;else {let c=i.getCurrentHub?.()?.getScope?.();n.eventId=c?.getLastEventId?.()??void 0;}}catch{}let o;try{let a=i;typeof a.getCurrentScope=="function"?o=a.getCurrentScope():o=i.getCurrentHub?.()?.getScope?.();}catch{}if(o){try{let a=o.getUser?.();a&&(n.user={id:typeof a.id=="string"?a.id:void 0,email:typeof a.email=="string"?a.email:void 0,username:typeof a.username=="string"?a.username:void 0,ip_address:typeof a.ip_address=="string"?a.ip_address:void 0});}catch{}try{let a=o.getTags?.();if(a&&typeof a=="object"){let u={};for(let[c,p]of Object.entries(a))(typeof p=="string"||typeof p=="number"||typeof p=="boolean")&&(u[c]=p);Object.keys(u).length>0&&(n.tags=u);}}catch{}try{n.transactionName=o.getTransactionName?.()??o.getTransaction?.()?.name??void 0;}catch{}try{n.sessionId=o.getSession?.()?.sid??void 0;}catch{}try{let a=o.getBreadcrumbs?.()??o._breadcrumbs??[];if(Array.isArray(a)&&a.length>0){let u=a.slice(-r);n.breadcrumbs=u.map(c=>{let p=c;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 a=i,u;if(typeof a.getActiveSpan=="function"?u=a.getActiveSpan():o?.getSpan&&(u=o.getSpan()),u){let c=u.spanContext?.();n.traceId=c?.traceId??u.traceId??void 0,n.spanId=c?.spanId??u.spanId??void 0;}}catch{}let s;try{let a=i;typeof a.getClient=="function"?s=a.getClient():s=i.getCurrentHub?.()?.getClient?.();}catch{}if(s){try{let a=s.getOptions?.();a?.release&&(n.release=a.release),a?.environment&&(n.environment=a.environment);}catch{}try{let a=s.getDsn?.();if(a?.host&&a?.projectId&&n.eventId){let u=a.host.replace(/^o\d+\./,"");n.issueUrl=`https://${u}/issues/?query=${encodeURIComponent(n.eventId)}`;}}catch{}}try{let u=i.getReplay?.()??Of();n.replayId=u?.getReplayId?.()??void 0;}catch{}return n}function Vi(e,t={}){let r=ju();if(r){try{let n=r;typeof n.setTag=="function"&&(n.setTag("mushi.report_id",e),t.reportUrl&&n.setTag("mushi.report_url",t.reportUrl)),typeof n.setContext=="function"&&n.setContext("mushi_report",{id:e,...t.reportUrl?{url:t.reportUrl}:{},captured_at:new Date().toISOString()}),typeof n.addBreadcrumb=="function"&&n.addBreadcrumb({category:"mushi",type:"info",level:"info",message:`Mushi report submitted (${e})`,data:{report_id:e,...t.reportUrl?{url:t.reportUrl}:{}}});}catch{}try{let i=r.getCurrentHub?.()?.getScope?.();i&&(i.setTag?.("mushi.report_id",e),t.reportUrl&&i.setTag?.("mushi.report_url",t.reportUrl),i.setContext?.("mushi_report",{id:e,...t.reportUrl?{url:t.reportUrl}:{}}));}catch{}}}var Hf=["/login","/logout","/signup","/sso/*","/auth/*"],Nf=/(?:^\s*at\s+(?:.*?\()?|@)([a-z][a-z0-9+.-]*:\/\/[^\s()]*?)(?::\d+){1,2}\)?\s*$/i;function zi(e){if(!(typeof e!="string"||e.length===0))for(let t of e.split(`
98
- `)){let r=Nf.exec(t);if(r)return r[1]}}function Ku(e,t={}){let r=[];if(t.rageClick!==false){let g=function(y){let C=Date.now();if(y.target===x){if(w.push(C),w=w.filter(R=>C-R<500),w.length>=3){let R=y.target;e.onTrigger("rage_click",{element:R.tagName,id:R.id,text:R.textContent?.slice(0,50)}),w=[];}}else x=y.target,w=[C];};let w=[],x=null;document.addEventListener("click",g,true),r.push(()=>document.removeEventListener("click",g,true));}if(t.longTask!==false&&typeof PerformanceObserver<"u")try{let w=new PerformanceObserver(x=>{for(let g of x.getEntries())g.duration>5e3&&e.onTrigger("long_task",{duration:Math.round(g.duration),startTime:Math.round(g.startTime)});});w.observe({entryTypes:["longtask"]}),r.push(()=>w.disconnect());}catch{}let n=Uf(t.apiCascade);if(n.enabled){let w=[],x=globalThis.fetch;globalThis.fetch=async function(...g){let[y,C]=g,R=En(y),v=!!yn(y,C)||Rr(R,{apiEndpoint:t.apiEndpoint,ignoreUrls:n.ignoreUrls});try{let T=await x.apply(this,g);return !v&&!T.ok&&T.status>=400&&Wu(w,e),T}catch(T){throw v||Wu(w,e),T}},r.push(()=>{globalThis.fetch=x;});}if((t.pageDwell===true||typeof t.pageDwell=="object"&&t.pageDwell!==null)&&typeof window<"u"){let R=function(f){return g.some(b=>b.endsWith("/*")?f.startsWith(b.slice(0,-2)):f===b||f.startsWith(b+"/"))},v=function(){let f=window.location?.pathname??"";R(f)||e.onTrigger("page_dwell",{thresholdMs:x,path:f});},T=function(){y&&clearTimeout(y);let f=window.location?.pathname??"";R(f)||(y=setTimeout(v,x));},A=function(){let f=window.location?.pathname??"";f!==C&&(C=f,T());};let w=typeof t.pageDwell=="object"?t.pageDwell??{}:{},x=w.thresholdMs||300*1e3,g=w.excludeRoutes!==void 0?w.excludeRoutes:Hf,y=null,C=window.location?.pathname??"";T();let E=He({onPush:A,onReplace:A,onPop:A});r.push(()=>{y&&clearTimeout(y),E();});}if((t.firstSession===true||typeof t.firstSession=="object"&&t.firstSession!==null)&&typeof window<"u"){let w=typeof t.firstSession=="object"?t.firstSession??{}:{},x=w.delayMs??45*1e3,g=w.storageKey??(t.projectId?`mushi:${t.projectId}:firstSessionShown`:"mushi:firstSessionShown"),y=false;try{y=window.localStorage?.getItem(g)==="1";}catch{}if(!y){let C=setTimeout(()=>{try{window.localStorage?.setItem(g,"1");}catch{}e.onTrigger("first_session",{delayMs:x});},x);r.push(()=>clearTimeout(C));}}if(t.errorBoundary){let w=function(g){fr({message:g.message,filename:g.filename,ignoreErrors:t.ignoreErrors,denyUrls:t.denyUrls,allowUrls:t.allowUrls})||e.onTrigger("error_boundary",{message:g.message,filename:g.filename,lineno:g.lineno,colno:g.colno});},x=function(g){let y=g.reason instanceof Error?g.reason.message:String(g.reason);fr({message:y,filename:g.reason instanceof Error?zi(g.reason.stack):void 0,ignoreErrors:t.ignoreErrors,denyUrls:t.denyUrls,allowUrls:t.allowUrls})||e.onTrigger("error_boundary",{message:y,type:"unhandled_rejection"});};window.addEventListener("error",w),window.addEventListener("unhandledrejection",x),r.push(()=>{window.removeEventListener("error",w),window.removeEventListener("unhandledrejection",x);});}return {destroy(){r.forEach(w=>w());}}}function Uf(e){return e===false?{enabled:false,ignoreUrls:[]}:e&&typeof e=="object"?{enabled:e.enabled!==false,ignoreUrls:e.ignoreUrls??[]}:{enabled:true,ignoreUrls:[]}}function Wu(e,t){let r=Date.now();e.push(r);let n=e.filter(i=>r-i<1e4);n.length>=3&&(t.onTrigger("api_cascade",{failureCount:n.length,windowMs:1e4}),e.length=0);}var Vu="mushi:lastDismiss",Sn="mushi:consecDismiss",Gi="mushi:lastShown";function xn(e){try{return localStorage.getItem(e)}catch{return null}}function kn(e,t){try{localStorage.setItem(e,t);}catch{}}function zu(e={}){let t=e.maxProactivePerSession??2,r=e.dismissCooldownHours??24,n=e.suppressAfterDismissals??3,i=(e.reshowCooldownMinutes??30)*60*1e3,o=0,s=new Set;function a(h){let m=Date.now();if(parseInt(xn(Sn)??"0",10)>=n)return false;let x=xn(Vu);if(x&&m-parseInt(x,10)<r*60*60*1e3)return false;if(i>0&&o===0){let g=xn(Gi);if(g&&m-parseInt(g,10)<i)return false}return o>=t||s.has(h)?false:(s.add(h),o++,kn(Gi,String(m)),true)}function u(){kn(Vu,String(Date.now()));let h=parseInt(xn(Sn)??"0",10);kn(Sn,String(h+1));}function c(){kn(Sn,"0");}function p(){o=0,s.clear();try{localStorage.removeItem(Gi);}catch{}}return {shouldShow:a,recordDismissal:u,recordSubmission:c,reset:p}}var et="@mushi-mushi/web",ke="1.40.0";function el(e,t){if(e.appVersion)return e.appVersion;let r=e.integrations?.vercel?.analyticsId;return r||t?.buildId}var We=null,Rn=class{constructor(){}static init(t={}){if(We)return ct({scope:"mushi",level:"warn",format:"pretty"}).warn("Already initialized \u2014 call destroy() first to reinitialize"),We;if(typeof document>"u"||typeof window>"u")return rl();let r={...Xn(),...t};if(!r.projectId||!r.apiKey){let n=os();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?rl():(We=Gf(r),We)}static getInstance(){return We}static destroy(){We?.destroy(),We=null;}static diagnose(){return We?.diagnose()??Zi()}};function Gf(e){as(e);let t=ss(e),r=t.projectId,n=()=>te(r),i=t,o=e.debug??false?ct({scope:"mushi",level:"debug",format:"pretty"}):Jn,s=null,a=null,u=is({projectId:t.projectId,apiKey:t.apiKey,...t.apiEndpoint?{apiEndpoint:t.apiEndpoint}:{},...typeof t.timeout=="number"?{timeout:t.timeout}:{},...typeof t.maxRetries=="number"?{maxRetries:t.maxRetries}:{},...t.circuitBreaker?{circuitBreaker:t.circuitBreaker}:{},...t.tunnel?{tunnel:t.tunnel}:{},getUserToken:()=>s,sdkPackage:et,sdkVersion:ke}),c=null,p=false;function h(){if(!p){p=true,ks({client:u,sdkVersion:ke,reporterToken:te(t.projectId)??null,projectId:t.projectId,analytics:t.analytics});try{c=He({onPush:()=>ri(),onPop:()=>ri()});}catch{}}}let m=t.trackSessions,w=m==="on-demand"?Promise.resolve().then(()=>(Yu(),Gu)):null,x=w?.then(l=>l.readTabOptIn(t.projectId));function g(l){if(!(p||m===false)){if(!w){h();return}Promise.all([w,x]).then(([d,S])=>{if(p)return;d.journeyRecordingDecision({mode:m,tabOptIn:S===true,window:l,draw:l?d.deviceDraw(t.projectId):1,now:Date.now()})&&h();}).catch(()=>{});}}g(null);let y=us(t.preFilter),C=hs(t.offline),R=Bs({maxBurst:10,refillRate:1,refillIntervalMs:5e3}),v=si();Ms({client:u,projectId:t.projectId,sdkVersion:ke,config:t.analytics,scrub:l=>v.scrub(l),getSessionId:Rt});function T(l){return l.map(d=>{let S={...d};if(typeof d.message=="string"&&(S.message=v.scrub(d.message)),d.data&&typeof d.data=="object"){let P={};for(let[I,V]of Object.entries(d.data))P[I]=typeof V=="string"?v.scrub(V):V;S.data=P;}return S})}function A(l){return l&&l.map(d=>({...d,message:v.scrub(d.message),...d.stack?{stack:v.scrub(d.stack)}:{}}))}function E(l){if(!l)return;let d={};for(let[S,P]of Object.entries(l))d[S]=typeof P=="string"?v.scrub(P):P;return d}let f=null,b=null,_=null,B=null,j=null,q=null,re=Ui(),Q=null,we=0,M,Se=`mushi:tester-jwt:${t.projectId}`;function ae(){try{return typeof localStorage<"u"?localStorage.getItem(Se):null}catch{return null}}function ne(){try{typeof localStorage<"u"&&localStorage.removeItem(Se);}catch{}}async function H(l){let d=await u.getTesterStatus(l);if(!d.ok||!d.data){ne();return}let S=d.data;if(!S.is_tester||!S.tester_id){ne();return}M.setTesterSession(l,{id:S.tester_id,public_handle:S.public_handle??null,display_name:S.display_name??null});let P=await u.getMyReputation(l);if(P.ok&&P.data){let I=P.data;I.reputation&&M.setTesterReputation(I.reputation);}}function me(){if(i.capture?.console!==false?f??=Bi():(f?.destroy(),f=null),i.capture?.network!==false){let U={apiEndpoint:Ji(i),ignoreUrls:i.capture?.ignoreUrls,tracePropagation:i.capture?.tracePropagation,sessionId:Rt()};b?b.updateOptions(U):b=$i(U);}else b?.destroy(),b=null;if(i.capture?.performance!==false?_??=Hi():(_?.destroy(),_=null),i.capture?.screenshot!=="off"){let U={privacy:i.privacy,onFailed:z=>M.setScreenshotError(true,z)};i.capture?.screenshotProvider?B=null:B?B.updateOptions(U):B=Fi(U);}else B=null;!B&&!i.capture?.screenshotProvider&&(k=null),M.setAllowScreenshotRemove(i.privacy?.allowUserRemoveScreenshot!==false),i.capture?.elementSelector!==false?j??=Ni(()=>{let U=i.privacy;return [Yt,...U?.redactSelectors??["[data-mushi-redact]"],...U?.maskSelectors??[],...U?.blockSelectors??[]].join(",")},U=>v.scrub(U)):(j?.deactivate(),j=null,O=null),M.setCaptureAvailability({screenshot:(!!B||!!i.capture?.screenshotProvider)&&i.capture?.screenshot!=="off",element:!!j});let l=i.capture?.discoverInventory,d=l===true?{}:l&&typeof l=="object"?l:null;d!=null&&d.enabled!==false?(q?.destroy(),q=qi({config:d,getRecentNetworkPaths:()=>b?b.getEntries().map(U=>{try{let z=new URL(U.url,typeof window<"u"?window.location.href:"http://localhost");return z.host&&typeof window<"u"&&z.host!==window.location.host?null:z.pathname}catch{return null}}).filter(U=>U!=null&&U.length>0&&U.length<200):[],getUserId:()=>G?.id??null,getSessionId:Rt,onEvent:U=>{u.postDiscoveryEvent({...U,sdk_version:ke}).catch(z=>{o.debug("discovery emit failed",{err:String(z)});});}})):(q?.destroy(),q=null);let P=i.capture?.replay??"off",I=i.replaySampleRate??1,V=I>=1||Math.random()<I,Z=i.replaysOnErrorSampleRate??0,ie=!V&&Z>0&&Math.random()<Z;if((P==="rrweb"||P==="lite")&&(V||ie)){let U=++we;qu({mode:P,loadRrweb:t.capture?.rrweb,redactSelectors:i.privacy?.redactSelectors}).then(z=>{if(U!==we){z.destroy();return}Q?.destroy(),Q=z,Q.start();});}else we++,Q?.destroy(),Q=null;}let Re=new Map;function Y(l,d){Re.get(l)?.forEach(S=>S({type:l,data:d}));}let k=null,D=false,O=null,F=null,W=false,ge=true,_e=null,tt=null,G=null,be=null,Ce={},Te=null,Ae={},N=Fs({max:50});N.add({category:"lifecycle",level:"info",message:"Mushi SDK init",data:{projectId:t.projectId,sdkVersion:ke}});let At=null;At=im(N);let rt=false,nt=false,Xt=new Set,it=au(u);async function _r(){let l=await it.getUpdates(n()),d=l.ok?l.data??null:null;if(d)for(let S of Xt)try{S(d);}catch{}return d}function eo(){M.refreshReporterInboxQuiet(),Xt.size&&_r();}function Cr(){_e&&clearInterval(_e),_e=null,tt&&typeof document<"u"&&document.removeEventListener("visibilitychange",tt),tt=null;}function to(){if(Cr(),!ge)return;let l=5*6e4,d=()=>{typeof document<"u"&&document.visibilityState==="hidden"||xi(r)&&eo();};_e=setInterval(d,l),typeof document<"u"&&(tt=()=>{document.visibilityState==="visible"&&d();},document.addEventListener("visibilitychange",tt)),d();}let Jt=null;function ro(){let l=i.notifications??t.notifications;M.setReporterChannels({email:!!Jt?.emailEnabled&&l?.email!==false,push:!!(Jt?.pushEnabled&&Jt.vapidPublicKey)&&!!l?.webPush,emailPrefill:l?.emailFromIdentity?G?.email??"":""});}let Zt=[];function sl(){if(!xi(r))return;let l=globalThis.requestIdleCallback;if(l?l(()=>{M.preloadViews();},{timeout:8e3}):setTimeout(()=>{M.preloadViews();},3e3),t.notifications?.toast===false||!ou(r))return;let d=async()=>{let P=await _r(),I=P&&typeof P.unread_total=="number"&&Array.isArray(P.latest)?P:null;if(I&&!I.unread_total)return;await M.refreshReporterInboxQuiet(),(I?M.showUpdatesFeedToast(I,Zt):await M.showUpdatesToast(Zt))&&su(r);},S=globalThis.requestIdleCallback;S?S(()=>{d();},{timeout:5e3}):setTimeout(()=>{d();},2e3);}async function al(l){let d=te(r),S=await it.markReportRead(l,d);if(S.ok)return S.data?.unread_total??null;let P=await u.listNotifications(d,{limit:50});if(!P.ok)return null;let I=(P.data?.notifications??[]).filter(V=>{let Z=V.payload??{};return !V.read_at&&(Z.reportId===l||V.report_id===l)});return await Promise.all(I.map(V=>u.markNotificationRead(String(V.id),d))),null}function no(l,d){if(!i.rewards?.enabled)return;let S={client:u,config:i.rewards,projectId:r,userId:l,traits:d,reporterToken:n()};vu(S),i.rewards.showInWidget!==false&&u.getMyPoints(l).then(P=>{if(!P.ok)return;let I=P.data;M.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 _n(){if(rt)return null;nt=false;let l=i.capture?.screenshotProvider;if(l){rt=true;try{let I=await l();if(I?.startsWith("data:image/"))return I;I&&o.warn("screenshotProvider must resolve to a data:image/ URL; ignoring",{prefix:I.slice(0,16)});}catch(I){o.warn("screenshotProvider threw, falling back to built-in capturer",{error:I instanceof Error?I.message:String(I)}),nt=I instanceof Error&&(I.name==="NotAllowedError"||I.name==="SecurityError"||/permission|denied/i.test(I.message));}finally{rt=false;}}if(!B)return null;rt=true;let d=M.getIsOpen();d&&M.hidePanel();let S=document.getElementById("mushi-mushi-widget"),P=S?.style.visibility??"";S&&(S.style.visibility="hidden"),await new Promise(I=>{requestAnimationFrame(()=>requestAnimationFrame(()=>I()));});try{return await B.take()}finally{rt=false,S&&(S.style.visibility=P),d&&M.showPanel();}}function io(){let l=i.capture?.screenshot;return (!!B||!!i.capture?.screenshotProvider)&&(l==="auto"||l==="on-report")&&!k&&!D}let Qt=null,Ie=0;function ul(){if(i.capture?.screenshot!=="auto"||!io())return;o.debug("Auto-capturing screenshot on open");let l=Ie,d=(async()=>{let S=await _n().catch(()=>null);l!==Ie||k||D||!S||(k=S,M.setScreenshotAttached(true),M.setScreenshotPreview(S));})();Qt=d,d.finally(()=>{Qt===d&&(Qt=null);});}async function ll(){if(Qt&&(await Qt,k))return true;if(!io())return false;o.debug("Capturing screenshot for review before send",{mode:i.capture?.screenshot});let l=Ie,d=await _n().catch(()=>null);return !d||l!==Ie?false:(k=d,M.setScreenshotAttached(true),M.setScreenshotPreview(d),true)}let Cn=Ot(r).then(l=>l.slice(0,12)).catch(()=>null);M=new dn(t.widget,{onWarning:l=>o.warn(l),onSubmit:async({category:l,userCategory:d,description:S,intent:P})=>{o.info("Report submitted",{category:l,userCategory:d,intent:P}),F&&er?.recordSubmission();let I=await dl(l,S,P,d);return gr(I)||(D=false),I},onBeforeSubmit:()=>ll(),onOpen:()=>{o.debug("Widget opened"),Ie++,k=null,D=false,ul(),Q?.start(),Y("widget:opened");},onBrandFooterImpression:()=>{Cn.then(l=>{Bt("loop_impression",{placement:"widget"},l?{reserved:{$ref:l}}:void 0);});},onBrandFooterClick:()=>{Cn.then(l=>(Bt("loop_click",{placement:"widget"},l?{reserved:{$ref:l}}:void 0),Ps()));},onClose:()=>{o.debug("Widget closed"),F&&(er?.recordDismissal(),Y("proactive:dismissed",{type:F})),Ie++,k=null,D=false,O=null,F=null,Y("widget:closed");},onScreenshotRequest:async()=>{if(!(!!B||!!i.capture?.screenshotProvider)||i.capture?.screenshot==="off"){o.warn("Screenshot requested but capture is disabled"),M.setScreenshotError(true,"unsupported");return}if(rt)return;o.debug("Taking screenshot"),M.setScreenshotCapturing(true);let d=Ie,S=null;try{S=await _n();}catch(P){o.warn("Screenshot capture threw",{error:P instanceof Error?P.message:String(P)});}d===Ie&&(k=S,M.setScreenshotAttached(k!==null),M.setScreenshotPreview(k),k===null&&M.setScreenshotError(true,nt?"permission":void 0));},onScreenshotShareTabRequest:typeof navigator<"u"&&typeof navigator.mediaDevices?.getDisplayMedia=="function"?()=>{let l=navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"browser"},audio:false,preferCurrentTab:true,selfBrowserSurface:"include"});l.catch(()=>{}),M.setScreenshotCapturing(true);let d=document.getElementById("mushi-mushi-widget");d&&(d.style.visibility="hidden");let S=Ie,P=i.privacy;Promise.resolve().then(()=>(Ju(),Xu)).then(I=>I.grabMaskedTabFrame(l,[Yt,"[data-mushi-redact]",...P?.redactSelectors??[],...P?.maskSelectors??[],...P?.blockSelectors??[]]),I=>{throw l.then(V=>V.getTracks().forEach(Z=>Z.stop()),()=>{}),I}).then(I=>{S===Ie&&(k=I,M.setScreenshotAttached(true),M.setScreenshotPreview(I));}).catch(I=>{o.warn("Tab capture failed",{error:I instanceof Error?I.name:String(I)}),M.setScreenshotError(true,I instanceof Error&&I.name==="NotAllowedError"?"permission":"error");}).finally(()=>{d&&(d.style.visibility="");});}:void 0,onScreenshotRemove:()=>{o.debug("Screenshot attachment removed"),k=null,D=true,M.setScreenshotAttached(false);},onScreenshotAnnotateRequest:async l=>{if(!k||l.childElementCount>0)return;let d=Ie,S;try{let{createScreenshotAnnotation:ie}=await Promise.resolve().then(()=>(Qu(),Zu));S=await ie(k,l);}catch(ie){o.warn("Screenshot annotation failed",{error:ie instanceof Error?ie.message:String(ie)});return}let P=document.createElement("div");P.className="mushi-annotate-toolbar";let I=ie=>{d===Ie&&(k=S.getDataUrl(),M.setScreenshotAttached(true),M.setScreenshotPreview(k)),S.destroy(),P.remove();},V=[{id:"highlight",label:"\u270F\uFE0F Highlight"},{id:"blur",label:"\u{1F512} Blur"},{id:"arrow",label:"\u2197\uFE0F Arrow"}];for(let ie of V){let U=document.createElement("button");U.type="button",U.className="mushi-attach-btn",U.dataset.tool=ie.id,U.textContent=ie.label,U.addEventListener("click",()=>{S.setTool(ie.id),P.querySelectorAll("button[data-tool]").forEach(z=>z.classList.remove("active")),U.classList.add("active");}),P.appendChild(U);}P.querySelector('button[data-tool="highlight"]')?.classList.add("active");let Z=document.createElement("button");Z.type="button",Z.className="mushi-attach-btn",Z.textContent="\u2713 Done",Z.addEventListener("click",()=>I()),P.appendChild(Z),l.insertBefore(P,l.firstChild);},onElementSelectorRequest:async()=>{if(!j||i.capture?.elementSelector===false){o.warn("Element selector requested but it is disabled/unavailable"),M.setElementError(true);return}o.debug("Element selector activated"),M.setElementCapturing(true),M.hidePanel();try{let l=await j.activate();l?(O=l,M.setElementSelected(!0),o.debug("Element selected",{tagName:l.tagName,xpath:l.xpath})):M.setElementCapturing(!1);}catch(l){o.warn("Element selector threw",{error:l instanceof Error?l.message:String(l)}),M.setElementError(true);}finally{M.showPanel();}},async onReporterReportsRequest(){let l=await u.listReporterReports(te(r));if(!l.ok)throw new Error(l.error?.message??"Could not load reports");return Zt=l.data?.reports??[],Zt.length&&Si(r),Zt},onReporterMarkRead:l=>al(l),async onReporterReportRequest(l){let d=await it.getReport(l,te(r));return d.ok&&d.data?{report:d.data.report,timeline:d.data.timeline}:null},async onReporterEmailOptIn(l){let d=await it.setPrefs(te(r),{email:l,channels:{email:true}});if(!d.ok)throw new Error(d.error?.code??"EMAIL_OPT_IN_FAILED")},async onReporterPushSubscribe(){let l=await An.subscribeReporterPush();if(!l.ok)throw new Error(l.reason)},async onReporterCommentsRequest(l){let d=await u.listReporterComments(l,te(r));if(!d.ok)throw new Error(d.error?.message??"Could not load thread");return d.data?.comments??[]},async onReporterReply(l,d){let S=await u.replyToReporterReport(l,te(r),d);if(!S.ok)throw new Error(S.error?.message??"Could not send reply")},async onReporterFeedback(l,d,S){let P=await u.replyToReporterReport(l,te(r),S??"",d);if(!P.ok)throw new Error(P.error?.message??"Could not send feedback");return P.data?.feedback??null},async onReporterReopen(l,d){let S=await u.reopenReporterReport(l,te(r),d);if(!S.ok)throw new Error(S.error?.message??"Could not reopen report");return S.data?.outcome??null},async onFeatureBoardRequest(){let l=await u.listReporterFeatureBoard(te(r));if(!l.ok)throw new Error(l.error?.message??"Could not load community ideas");return l.data?.tickets??[]},async onFeatureBoardVote(l){let d=await u.voteReporterFeatureBoard(l,te(r));if(!d.ok)throw new Error(d.error?.message??"Could not vote");return d.data??{voted:true,action:"added"}},onLeaderboardOpen(){M.setLeaderboard(null,true),Su(10).then(l=>{M.setLeaderboard(l,false);});},async onMushiSignIn(l){let d=await u.sendMagicLink(l);if(!d.ok)throw new Error(d.error?.message??"Could not send sign-in link");return {ok:true}},async onGlobalLeaderboardOpen(){M.setGlobalLeaderboard(null,true);try{let l=ae(),d=await u.getPublicLeaderboard(50),P=(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(M.setGlobalLeaderboard(P,!1),l){let I=await u.getMyReputation(l);if(I.ok&&I.data){let V=I.data;V.reputation&&M.setTesterReputation(V.reputation);}}}catch{M.setGlobalLeaderboard([],false);}},async onCrossAppReportsOpen(){let l=ae();if(!l){M.setCrossAppReports([],false);return}try{let d=await u.getCrossAppReports(l),S=d.ok?d.data?.reports??[]:[];M.setCrossAppReports(S,!1);}catch{M.setCrossAppReports([],false);}},onTesterSignOut(){ne();},assistantEnabled:t.assistant?.enabled===true,...t.assistant?.label?{assistantLabel:t.assistant.label}:{},...t.assistant?.greeting?{assistantGreeting:t.assistant.greeting}:{},...t.assistant?.suggestions?{assistantSuggestions:t.assistant.suggestions}:{},async onAssistantAsk(l,d){let S=await u.askAssistant({message:l,threadId:d,context:a});return S.ok?S.data??null:null}}),Cn.then(l=>M.setBrandRef(l)),me(),typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>M.mount()):M.mount());let oo=ae();oo&&H(oo).catch(()=>ne());let so=null,er=null,ee=i.proactive;ee&&(ee.rageClick!==false||ee.longTask!==false||ee.apiCascade!==false||ee.errorBoundary===true||ee.pageDwell||ee.firstSession)&&typeof document<"u"&&(er=zu(ee?.cooldown),so=Ku({onTrigger:(l,d)=>{if(typeof navigator<"u"&&!navigator.onLine){o.debug("Proactive trigger suppressed: offline",{type:l});return}if(!er.shouldShow(l)){o.debug("Proactive trigger suppressed by fatigue prevention",{type:l});return}o.info("Proactive trigger fired",{type:l,context:d}),F=l,Y("proactive:triggered",{type:l,context:d}),l==="first_session"?M.pulseTrigger?.():M.open();}},{rageClick:ee?.rageClick,longTask:ee?.longTask,apiCascade:ee?.apiCascade,apiEndpoint:Ji(i),errorBoundary:ee?.errorBoundary,ignoreErrors:i.ignoreErrors,denyUrls:i.denyUrls,allowUrls:i.allowUrls,pageDwell:ee?.pageDwell,firstSession:ee?.firstSession,projectId:t.projectId}),o.debug("Proactive triggers enabled",{rageClick:ee?.rageClick!==false,longTask:ee?.longTask!==false,apiCascade:ee?.apiCascade!==false,errorBoundary:ee?.errorBoundary===true,pageDwell:!!ee?.pageDwell,firstSession:!!ee?.firstSession})),C.startAutoSync(u),C.flush(u).then(l=>{l.sent>0&&o.info("Synced offline reports",{sent:l.sent});});function Tn(l){if(W=true,ge=l.reporterNotificationsEnabled!==false,Jt=l.enabled===false?null:l.reporter??null,ro(),l.enabled===false){i=t,em(e.projectId),me(),M.updateConfig(i.widget),Cr(),o.debug("Runtime SDK config disabled; using bootstrap config",{version:l.version});return}i=lu(i,l,t),me(),l.widget&&M.updateConfig(i.widget),ge?to():Cr(),o.debug("Applied runtime SDK config",{version:l.version});}if(Yf(e)){let l=Zf(e.projectId);l&&Tn(l),u.getSdkConfig(m==="on-demand"?{fresh:true}:void 0).then(d=>{d.ok&&d.data?(Qf(e.projectId,d.data),Tn(d.data),d.data.enabled!==false&&g(d.data.journeys??null)):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");cl(),to(),sl(),o.info("Initialized",{projectId:e.projectId});async function cl(){if(i.widget?.outdatedBanner==="off")return;let l=tm(et);l&&ao(l);let d=await u.getLatestSdkVersion(et);!d.ok||!d.data||(rm(et,d.data),ao(d.data));}function ao(l){let d=l.latest,S=!!(d&&nm(ke,d));if(!S&&!l.deprecated)return;let P=l.deprecationMessage??(S?`Update ${et} to ${d}.`:null);o.warn("Mushi SDK is outdated",{package:et,current:ke,latest:d,deprecated:l.deprecated,message:P}),Ea(i.widget?.outdatedBanner,!!i.debug,typeof location>"u"?void 0:location)&&M.setSdkFreshness({latest:d,current:ke,deprecated:l.deprecated,message:P});}async function dl(l,d,S,P){let I=K=>({reportId:null,queuedOffline:false,failureKind:K}),V=y.check(d);if(!V.passed)return o.info("Report blocked by pre-filter",{reason:V.reason}),I("blocked");let Z=e.preFilter?.wasmClassifier;if(Z)try{let K=await Z.classify({description:d,category:l,url:typeof location<"u"?location.href:void 0,hasScreenshot:k!==null,hasSelectedElement:O!==null,hasNetworkErrors:b?.getEntries()?.some(Ee=>Ee.status>=400||!!Ee.error)??!1,hasConsoleErrors:f?.getEntries()?.some(Ee=>Ee.level==="error")??!1,proactiveTrigger:F??void 0});if(K.verdict==="block")return o.info("Report blocked by on-device classifier",{modelId:K.modelId,confidence:K.confidence,reason:K.reason}),I("blocked");o.debug("On-device classifier verdict",{...K});}catch(K){o.warn("On-device classifier threw \u2014 falling through to server",{error:K instanceof Error?K.message:String(K)});}if(F!==null&&e.sampleRate!==void 0&&e.sampleRate<1&&(e.sampleRate<=0||Math.random()>e.sampleRate))return o.debug("Report dropped by sampleRate",{sampleRate:e.sampleRate,trigger:F}),I("blocked");if(!R.tryConsume())return o.warn("Report throttled \u2014 rate limit exceeded"),I("throttled");let U=v.scrub(y.truncate(d)),z=e.sentry?Ki(e.sentry):void 0,Ve=await fs().catch(()=>null),ze=i.capture?.console===false?void 0:A(f?.getEntries()),Tr=i.capture?.network===false?void 0:b?.getEntries(),co=T(N.getAll()),po=E(Object.keys(Ae).length>0?{...Ae}:void 0),ho=z?{...z,...z.breadcrumbs?{breadcrumbs:T(z.breadcrumbs)}:{},...z.tags?{tags:E(z.tags)}:{}}:void 0,fo=k?await oa(k).catch(()=>null):null,Ar=false;k&&!fo&&(Ar=true,o.warn("Screenshot dropped \u2014 could not compress under wire budget"));let mo=Zn(),pl=await ka(Te),Be={id:Qn(),projectId:e.projectId,category:l,...P?{userCategory:P}:{},description:U,userIntent:S,environment:mo,consoleLogs:ze,networkLogs:Tr,performanceMetrics:i.capture?.performance===false?void 0:_?.getMetrics(),timeline:re.getEntries({consoleLogs:ze,networkLogs:Tr}),screenshotDataUrl:fo??void 0,selectedElement:O??void 0,...Q?{replayEvents:Q.flush()}:{},metadata:{...Ce,...pl??{},...G?{user:G}:{},...z?.release?{sentryRelease:z.release}:{}},sessionId:Rt(),reporterToken:te(r),...Ve?{fingerprintHash:Ve}:{},appVersion:el(i,mo),sdkPackage:et,sdkVersion:ke,proactiveTrigger:F??void 0,...co.length>0?{breadcrumbs:co}:{},...po?{tags:po}:{},...ho?{sentryContext:ho}:{},sentryEventId:z?.eventId,sentryReplayId:z?.replayId,createdAt:new Date().toISOString()};if(N.add({category:"lifecycle",level:"info",message:`Mushi report submitting (${l})`,data:{reportId:Be.id,category:l}}),e.integrations?.custom){let K={addMetadata(Ee,In){Be.metadata[Ee]=In;},setCategory(Ee){Be.category=Ee;},setDescription(Ee){Be.description=Ee;}};e.integrations.custom(K);}let X=Be,go=e.beforeSend??e.beforeSendFeedback;if(go)try{let K=await Promise.race([Promise.resolve(go(Be)),new Promise(Ee=>setTimeout(()=>Ee(Be),2e3))]);if(K===null)return o.info("Report dropped by beforeSend hook",{reportId:Be.id}),I("blocked");X=K;}catch(K){o.warn("beforeSend hook threw \u2014 sending unmodified report",{error:K instanceof Error?K.message:String(K)});}if(Y("report:submitted",{reportId:X.id}),typeof navigator<"u"&&!navigator.onLine)return await C.enqueue(X),o.info("Offline \u2014 report queued",{reportId:X.id}),Y("report:queued",{reportId:X.id}),{reportId:null,queuedOffline:true,failureKind:"offline"};let J=await u.submitReport(X);if(!J.ok&&J.error?.code==="PAYLOAD_TOO_LARGE"&&(Array.isArray(X.replayEvents)&&X.replayEvents.length>0&&(o.warn("Report too large \u2014 dropping replay buffer and retrying",{reportId:X.id}),X={...X,replayEvents:void 0},J=await u.submitReport(X)),!J.ok&&J.error?.code==="PAYLOAD_TOO_LARGE"&&X.screenshotDataUrl&&(o.warn("Report still too large \u2014 dropping screenshot and retrying",{reportId:X.id}),Ar=true,X={...X,screenshotDataUrl:void 0},J=await u.submitReport(X))),J.ok){if(o.info("Report sent",{reportId:J.data?.reportId}),Y("report:sent",{reportId:J.data?.reportId}),Si(r),eo(),J.data?.cursorAgentId){let K=J.data;Y("report:dispatched",{reportId:K.reportId,agentId:K.cursorAgentId,fixId:K.fixId});}N.add({category:"lifecycle",level:"info",message:`Mushi report sent (${J.data?.reportId??Be.id})`}),Gt({action:"report_submit",metadata:{category:l,reportId:J.data?.reportId??Be.id}});try{e.sentry&&J.data?.reportId&&Vi(J.data.reportId);}catch{}}else {if(J.error?.code==="PAYLOAD_TOO_LARGE"||J.error?.code==="SERIALIZE_FAILED")return o.warn("Report exceeds size limit after degradation \u2014 dropping",{reportId:X.id,error:J.error}),Y("report:failed",{reportId:X.id,error:J.error}),N.add({category:"lifecycle",level:"error",message:`Mushi report dropped \u2014 payload too large (${X.id})`}),k=null,O=null,F=null,{reportId:null,queuedOffline:false,failureKind:"permanent",screenshotDropped:Ar};{let K=J.error?.code??"",Ee=K==="HTTP_429"||K.includes("RATE_LIMIT"),In=K==="HTTP_401"||K.includes("UNAUTHORIZED")||K.includes("INVALID_API_KEY")||K.includes("MISSING_API_KEY"),hl=K==="HTTP_403"||K.includes("QUOTA")||K.includes("FORBIDDEN")||K==="feature_not_in_plan";if(In||hl)return o.warn("Report rejected \u2014 credentials/quota",{reportId:X.id,error:J.error}),Y("report:failed",{reportId:X.id,error:J.error}),k=null,O=null,F=null,{reportId:null,queuedOffline:false,failureKind:"quota"};if(Ee)return o.warn("Report rate-limited \u2014 queued for retry",{reportId:X.id,error:J.error}),await C.enqueue(X),Y("report:failed",{reportId:X.id,error:J.error}),k=null,O=null,F=null,{reportId:null,queuedOffline:true,failureKind:"rate_limited"};o.warn("Report failed, queuing for retry",{reportId:X.id,error:J.error}),await C.enqueue(X),Y("report:failed",{reportId:X.id,error:J.error}),N.add({category:"lifecycle",level:"warning",message:`Mushi report queued for retry (${X.id})`});}}return k=null,O=null,F=null,J?.ok?{reportId:J.data?.reportId??Be.id,queuedOffline:false,screenshotDropped:Ar}:{reportId:null,queuedOffline:true,failureKind:"retrying"}}let An={report(l){M.open(l);},on(l,d){return Re.has(l)||Re.set(l,new Set),Re.get(l).add(d),()=>Re.get(l)?.delete(d)},setUser(l){G=l;},setMetadata(l,d){Ce[l]=d;},setDiagnosticsProvider(l){Te=l;},setScreen(l){re.setScreen(l);},isOpen(){return M.getIsOpen()},open(){M.open();},openWith(l){M.open({category:l});},show(){M.showTrigger();},hide(){M.hideTrigger();},attachTo(l,d){return M.attachTo(l,d)},setTrigger(l){M.setTrigger(l);},openReporter(){M.openReporter();},close(){M.close();},updateConfig(l){Tn(l),l.enabled!==false&&g(l.journeys??null);},diagnose(){return Xf({apiEndpoint:Ji(i),widgetMounted:M.getIsMounted(),runtimeConfigLoaded:W,captureScreenshotAvailable:B!==null,captureNetworkIntercepting:b!==null,widgetDiagnostics:M.getWidgetDiagnostics()})},destroy(){so?.destroy(),er?.reset(),$s(),M.destroy(),f?.destroy(),b?.destroy(),_?.destroy(),j?.deactivate(),xu(),At?.(),At=null,q?.destroy(),q=null,re.destroy(),pu(),Q?.destroy(),Q=null,C.stopAutoSync(),Cr(),c?.(),c=null,Rs(),N.clear(),Re.clear(),We=null,o.debug("Destroyed");},async captureEvent(l){if(!R.tryConsume())return o.warn("captureEvent throttled \u2014 rate limit exceeded"),null;let d=v.scrub(y.truncate(l.description)),S=l.category??"bug",P=e.sentry?Ki(e.sentry):void 0,I=T(N.getAll()),V=E(Object.keys(Ae).length===0&&!l.tags?void 0:{...Ae,...l.tags??{}}),Z=P?{...P,...P.breadcrumbs?{breadcrumbs:T(P.breadcrumbs)}:{},...P.tags?{tags:E(P.tags)}:{}}:void 0,ie=Zn(),U={id:Qn(),projectId:e.projectId,category:S,description:d,environment:ie,timeline:re.getEntries(),metadata:{...l.metadata??{},...G?{user:G}:{},...l.error?{error:l.error}:{},...l.severity?{severity:l.severity}:{},...l.component?{component:l.component}:{},...l.source?{source:l.source}:{source:"captureEvent"}},...I.length>0?{breadcrumbs:I}:{},...V&&Object.keys(V).length>0?{tags:V}:{},...Z?{sentryContext:Z}:{},sessionId:Rt(),reporterToken:te(r),appVersion:el(i,ie),sdkPackage:et,sdkVersion:ke,sentryEventId:P?.eventId,sentryReplayId:P?.replayId,createdAt:new Date().toISOString()},z=U;if(i.beforeSendFeedback)try{let ze=await Promise.race([Promise.resolve(i.beforeSendFeedback(U)),new Promise(Tr=>setTimeout(()=>Tr(U),2e3))]);if(ze===null)return o.info("captureEvent dropped by beforeSendFeedback hook",{reportId:U.id}),null;z=ze;}catch(ze){o.warn("captureEvent beforeSendFeedback threw \u2014 sending unmodified report",{error:ze instanceof Error?ze.message:String(ze)});}if(Y("report:submitted",{reportId:z.id}),typeof navigator<"u"&&!navigator.onLine)return await C.enqueue(z),Y("report:queued",{reportId:z.id}),null;let Ve=await u.submitReport(z);if(Ve.ok){Y("report:sent",{reportId:Ve.data?.reportId});try{e.sentry&&Ve.data?.reportId&&Vi(Ve.data.reportId);}catch{}return Ve.data?.reportId??null}return await C.enqueue(z),Y("report:failed",{reportId:z.id,error:Ve.error}),null},async captureException(l,d){let S=Hs(l),P=typeof d?.metadata?.filename=="string"?d.metadata.filename:zi(S.stack);if(fr({message:S.message,filename:P,ignoreErrors:i.ignoreErrors,denyUrls:i.denyUrls,allowUrls:i.allowUrls}))return null;N.add({category:"lifecycle",level:"error",message:`Mushi.captureException(${S.name}): ${S.message}`,...S.stack?{data:{stack:S.stack.slice(0,500)}}:{}});let I=d?.description?.trim()||`${S.name}: ${S.message}`||"Uncaught exception";return An.captureEvent({description:I,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(l,d){let S=`${l}::${d?JSON.stringify(d):""}`;if(S!==be){if(be=S,G={id:l,...d?.email?{email:d.email}:{},...d?.name?{name:d.name}:{}},M.setIdentifiedUser(G.name||G.email?{name:G.name,email:G.email}:null),ro(),d)for(let[P,I]of Object.entries(d))P!=="email"&&P!=="name"&&(Ce[`user.${P}`]=I);N.add({category:"lifecycle",level:"info",message:`Mushi.identify(${l})`}),Ds(l,d??null),no(l,d?{email:d.email,name:d.name,provider:d.provider}:void 0);}},identifyWithToken(l){if(s=l&&typeof l=="string"?l:null,s){let d=Xs(s);if(d?.sub){if(G?.id===d.sub){N.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken() refreshed"});return}let S=d.sub;Ot(S).then(P=>{G?.id===S&&ni(P);}).catch(()=>{}),G={id:d.sub,...d.email?{email:d.email}:{},...d.name?{name:d.name}:{}},M.setIdentifiedUser(G.name||G.email?{name:G.name,email:G.email}:null),no(G.id,{email:G.email,name:G.name});}N.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken()"});}else G=null,be=null,ni(null),M.setIdentifiedUser(null),N.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken(null)"});},publishPageContext(l){a=l&&l.route?l:null;},openAssistant(){M.openAssistantTab();},addBreadcrumb(l){N.add(l);},getBreadcrumbs(){return N.getAll()},setTag(l,d){typeof l!="string"||l.length===0||(Ae[l]=d);},setTags(l){if(!(!l||typeof l!="object"))for(let[d,S]of Object.entries(l))typeof d=="string"&&d.length>0&&(Ae[d]=S);},clearTag(l){if(typeof l=="string"&&l.length>0){delete Ae[l];return}for(let d of Object.keys(Ae))delete Ae[d];},async getReputation(){if(!G?.id)return null;let l=await u.getMyPoints(G.id);return l.ok?{totalPoints:l.data.total_points??0,points30d:l.data.points_30d??0,reputation:1,confirmedBugs:0,totalReports:0}:null},async getTier(){return G?.id?wu(G.id):null},recordActivity(l,d){i.rewards?.enabled&&Gt({action:l,metadata:d});},track(l,d){return Bt(l,d)},setConsent(l){Ls(l);},getAnonymousId(){return Is()},pulseTrigger(){M.pulseTrigger?.();},async listMyReports(){let l=await u.listReporterReports(te(r));return l.ok?l.data?.reports??[]:[]},async listMyComments(l){let d=await u.listReporterComments(l,te(r));return d.ok?d.data?.comments??[]:[]},async replyToReport(l,d){let S=await u.replyToReporterReport(l,te(r),d);return S.ok?S.data?.comment??null:null},async submitFeedbackSignal(l,d,S){let P=await u.replyToReporterReport(l,te(r),S??"",d);return P.ok?P.data?.feedback??null:null},async reopenReport(l,d){let S=await u.reopenReporterReport(l,te(r),d);return S.ok?S.data?.outcome??null:null},openMyReports(){M.recorderOpenMyReports();},getReporterUpdates:_r,async markReportRead(l){let d=await it.markReportRead(l,n());return d.ok?d.data?.unread_total??0:null},onReporterUpdate(l){return Xt.add(l),_r(),()=>{Xt.delete(l);}},async getNotificationPrefs(){let l=await it.getPrefs(n());return l.ok?l.data??null:null},setNotificationPrefs:l=>it.setPrefs(n(),l),async subscribeReporterPush(){let l=i.notifications?.webPush,d=Jt?.vapidPublicKey??null;if(l&&!d){let S=await u.getSdkConfig();d=S.ok?S.data?.reporter?.vapidPublicKey??null:null;}return uu(it,n(),l?l.serviceWorkerPath:null,d)},async getHallOfFame(l=20){let d=await u.getHallOfFame(l);return d.ok?d.data?.data??[]:[]}};if(typeof globalThis<"u"&&(t.debug??false)&&cu(M),typeof window<"u"&&typeof localStorage<"u"){let l="mushi:last-run",d=null;try{let S=localStorage.getItem(l);d=S===null?null:S==="unfinished",localStorage.setItem(l,"unfinished");}catch{d=null;}try{window.addEventListener("pagehide",()=>{try{localStorage.setItem(l,"clean");}catch{}rs(),ns();});}catch{}if(typeof t.onCrashedLastRun=="function")try{t.onCrashedLastRun(d);}catch(S){o.warn("onCrashedLastRun hook threw",{error:S instanceof Error?S.message:String(S)});}}let uo={on:()=>{},onReporterUpdate:()=>{},isOpen:false,getBreadcrumbs:[],captureEvent:null,captureException:null,getReputation:null,getTier:null,listMyReports:[],listMyComments:[],getHallOfFame:[],replyToReport:null,submitFeedbackSignal:null,reopenReport:null},lo=(l,d)=>{let S=d instanceof Error?d.message:String(d);o.debug(`Mushi.${l}() failed (swallowed)`,{error:S});try{N.add({category:"custom",level:"warning",message:`mushi.${l}() threw`,data:{error:S}});}catch{}};return (l=>new Proxy(l,{get(d,S,P){let I=Reflect.get(d,S,P);if(typeof I!="function")return I;let V=String(S),Z=()=>V==="diagnose"?Zi():V in uo?uo[V]:void 0;return (...ie)=>{try{let U=I.apply(d,ie);return U&&typeof U.then=="function"?U.catch(z=>(lo(V,z),Z())):U}catch(U){return lo(V,U),Z()}}}}))(An)}function Ji(e){return e.apiEndpoint??ar}function Yf(e){return e.runtimeConfig!==false}async function Xf(e){let t=await Jf(e.apiEndpoint);return {apiEndpointReachable:t.reachable,cspAllowsEndpoint:t.cspAllowed,widgetMounted:e.widgetMounted,shadowDomAvailable:typeof HTMLElement<"u"&&typeof HTMLElement.prototype.attachShadow=="function",dialogSupported:typeof HTMLDialogElement<"u",runtimeConfigLoaded:e.runtimeConfigLoaded,captureScreenshotAvailable:e.captureScreenshotAvailable,captureNetworkIntercepting:e.captureNetworkIntercepting,sdkVersion:ke,widgetHostPointerSafe:e.widgetDiagnostics?.widgetHostPointerSafe??false,widgetHostBounds:e.widgetDiagnostics?.widgetHostBounds??null,widgetSuppressed:e.widgetDiagnostics?.widgetSuppressed??false,bannerRendered:e.widgetDiagnostics?.bannerRendered??false,warnings:e.widgetDiagnostics?.warnings??[]}}async function Zi(){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:ke,widgetHostPointerSafe:false,widgetHostBounds:null,widgetSuppressed:false,bannerRendered:false}}async function Jf(e){if(typeof fetch>"u")return {reachable:false,cspAllowed:false};let t=typeof AbortController<"u"?new AbortController:null,r=t?setTimeout(()=>t.abort(),3e3):null;try{return {reachable:(await fetch(`${e.replace(/\/$/,"")}/health`,{method:"GET",cache:"no-store",...t?{signal:t.signal}:{},[hr]:"diagnose"})).ok,cspAllowed:!0}}catch{return {reachable:false,cspAllowed:false}}finally{r&&clearTimeout(r);}}function Qi(e){return `mushi:sdk-config:${e}`}function il(e){return `mushi:sdk-version:${e}`}function Zf(e){if(typeof localStorage>"u")return null;try{let t=localStorage.getItem(Qi(e));return t?JSON.parse(t).config??null:null}catch{return null}}function Qf(e,t){if(!(typeof localStorage>"u"))try{localStorage.setItem(Qi(e),JSON.stringify({cachedAt:Date.now(),config:t}));}catch{}}function em(e){if(!(typeof localStorage>"u"))try{localStorage.removeItem(Qi(e));}catch{}}function tm(e){if(typeof localStorage>"u")return null;try{let t=localStorage.getItem(il(e));if(!t)return null;let r=JSON.parse(t);return !r.data||!r.cachedAt||Date.now()-r.cachedAt>864e5?null:r.data}catch{return null}}function rm(e,t){if(!(typeof localStorage>"u"))try{localStorage.setItem(il(e),JSON.stringify({cachedAt:Date.now(),data:t}));}catch{}}function nm(e,t){let r=tl(e),n=tl(t);for(let i=0;i<Math.max(r.length,n.length);i++){let o=r[i]??0,s=n[i]??0;if(o<s)return true;if(o>s)return false}return false}function tl(e){return e.split(/[.-]/).map(t=>Number.parseInt(t,10)).filter(t=>Number.isFinite(t))}function rl(){return {report:()=>{},on:()=>()=>{},setUser:()=>{},setMetadata:()=>{},setDiagnosticsProvider:()=>{},setScreen:()=>{},isOpen:()=>false,open:()=>{},close:()=>{},updateConfig:()=>{},diagnose:Zi,openWith:()=>{},show:()=>{},hide:()=>{},attachTo:()=>()=>{},setTrigger:()=>{},openReporter:()=>{},destroy:()=>{We=null;},captureEvent:async()=>null,captureException:async()=>null,identify:()=>{},identifyWithToken:()=>{},publishPageContext:()=>{},openAssistant:()=>{},addBreadcrumb:()=>{},getBreadcrumbs:()=>[],setTag:()=>{},setTags:()=>{},clearTag:()=>{},getReputation:async()=>null,getTier:async()=>null,recordActivity:()=>{},track:()=>false,setConsent:()=>{},getAnonymousId:()=>null,pulseTrigger:()=>{},listMyReports:async()=>[],listMyComments:async()=>[],replyToReport:async()=>null,submitFeedbackSignal:async()=>null,reopenReport:async()=>null,openMyReports:()=>{},getHallOfFame:async()=>[],getReporterUpdates:async()=>null,markReportRead:async()=>null,onReporterUpdate:()=>()=>{},getNotificationPrefs:async()=>null,setNotificationPrefs:async()=>({ok:false}),subscribeReporterPush:async()=>({ok:false,reason:"off"})}}function im(e){if(typeof window>"u")return ()=>{};let t=[];try{let r=i=>{e.add({category:"navigation",level:"info",message:`${i}: ${window.location.pathname}`,data:{url:window.location.href,kind:i}});},n=He({onPush:()=>r("pushState"),onReplace:()=>r("replaceState"),onPop:()=>r("popstate")});t.push(n);}catch{}try{let r=console.error,n=console.warn,i=function(...s){try{e.add({category:"console",level:"error",message:s.map(nl).join(" ")});}catch{}return r.apply(this,s)},o=function(...s){try{e.add({category:"console",level:"warning",message:s.map(nl).join(" ")});}catch{}return n.apply(this,s)};console.error=i,console.warn=o,t.push(()=>{console.error===i&&(console.error=r),console.warn===o&&(console.warn=n);});}catch{}try{let r=n=>{try{let i=n.target;if(!(i instanceof Element))return;let o=i,s=0;for(;o&&s<10;){let a=o.getAttribute("data-testid");if(a){let u=(o.textContent??"").trim().slice(0,80);e.add({category:"ui.click",level:"info",message:`clicked ${a}${u?` \u2014 ${u}`:""}`,data:{testid:a,tag:o.tagName.toLowerCase()}});return}o=o.parentElement,s++;}}catch{}};document.addEventListener("click",r,{passive:!0,capture:!0}),t.push(()=>document.removeEventListener("click",r,!0));}catch{}return ()=>{for(let r of t)try{r();}catch{}}}function nl(e){try{if(e instanceof Error)return `${e.name}: ${e.message}`;if(typeof e=="object"&&e!==null){let r=JSON.stringify(e);return r.length>200?`${r.slice(0,200)}\u2026`:r}let t=String(e);return t.length>200?`${t.slice(0,200)}\u2026`:t}catch{return `[${typeof e}]`}}var om=["auto","banner","edge-tab","attach","manual","hidden"],sm=["auto","light","dark","inherit"],am=["bottom-right","bottom-left","top-right","top-left"],um=["neon","brand","subtle"],lm=["top","bottom"],cm=/^(#[\da-f]{3}|#[\da-f]{6}|(rgba?|hsla?|oklch)\([\d\s.,%/+-]*(deg|turn|rad)?[\d\s.,%/+-]*\))$/i,dm="#rgb, #rrggbb, rgb(), hsl() or oklch()";function pm(e){try{ct({scope:"mushi",level:"warn",format:"pretty"}).warn(e);}catch{}}function ol(e,t=pm){let r=e.project?.trim(),n=e.key?.trim();if(!r||!n)return null;let i=f=>{let b=e[f]?.trim();return b||void 0},o=f=>`data-${f.replace(/[A-Z]/g,b=>`-${b.toLowerCase()}`)}`,s=(f,b,_)=>{t(`Ignored ${o(f)}="${b.slice(0,60)}". Use ${_}.`);},a=(f,b)=>{let _=i(f);if(_===void 0)return;let B=_.toLowerCase();return b.includes(B)?B:s(f,_,`one of: ${b.join(", ")}`)},u=(f,b=[])=>{let _=i(f);if(_!==void 0)return cm.test(_)||b.includes(_.toLowerCase())?_:s(f,_,`a colour: ${[dm,...b].join(", ")}`)},c={},p=a("trigger",om);p&&(c.trigger=p);let h=a("theme",sm);h&&(c.theme=h);let m=a("position",am);m&&(c.position=m);let w=i("triggerText");w&&(c.triggerText=w);let x=u("accent");x&&(c.accent=x);let g=u("accentText",["black","white"]);g&&(c.accentText=g);let y=i("locale");if(y){let f=Pa(),b=y.toLowerCase();b==="auto"||f.includes(b.split(/[-_]/)[0])?c.locale=b==="auto"?"auto":y:s("locale",y,`one of: auto, ${f.join(", ")}`);}let C=i("hideOnRoutes");if(C){let f=C.split(",").map(b=>b.trim()).filter(Boolean);f.length?c.hideOnRoutes=f:s("hideOnRoutes",C,"comma-separated paths such as /admin/*, /checkout");}let R=a("bannerVariant",um),v=a("bannerPosition",lm);(R||v)&&(c.bannerConfig={...R?{variant:R}:{},...v?{position:v}:{}});let T={projectId:r,apiKey:n},A=i("endpoint");A&&(/^https?:\/\/[^\s/]+/i.test(A)?T.apiEndpoint=A:s("endpoint",A,"a full http:// or https:// address"));let E=i("debug");return E==="true"?T.debug=true:E!==void 0&&E!=="false"&&s("debug",E,'"true" or "false"'),Object.keys(c).length>0&&(T.widget=c),T}function hm(){let e=document.currentScript;if(e&&e.dataset&&e.dataset.project)return e;let t=Array.from(document.querySelectorAll("script[data-project][data-key]"));return t.length>0?t[t.length-1]:null}function fm(){if(typeof document>"u"||typeof window>"u")return;let e=window;if(e.__mushiLoaderInit)return;let t=hm();if(!t)return;let r=ol(t.dataset);if(r){e.__mushiLoaderInit=true;try{Rn.init(r);}catch{}}}fm();
97
+ `,document.body.appendChild(f),f}function A(f,m){let S=document.elementsFromPoint(f,m),B=null;for(let N of S)if(!(N===i||N===n)){if(N.id==="mushi-mushi-widget"||N.closest("#mushi-mushi-widget"))return null;B=N;break}let j=0;for(;B?.shadowRoot&&j<20;){let N=B.shadowRoot.elementFromPoint(f,m);if(!N||N===B)break;B=N,j++;}return B}function T(f){if(!n)return;let m=f.getBoundingClientRect();n.style.left=`${m.left}px`,n.style.top=`${m.top}px`,n.style.width=`${m.width}px`,n.style.height=`${m.height}px`,n.style.display="block";}function E(f){let m=A(f.clientX,f.clientY);if(!m){o=null,n&&(n.style.display="none");return}o=m,T(m);}function y(f){f.preventDefault(),f.stopPropagation();}function x(f){f.preventDefault(),f.stopPropagation();let m=A(f.clientX,f.clientY);m&&C(p(m));}function k(f){f.key==="Escape"&&C(null);}function v(){o?.isConnected&&T(o);}function C(f){g(),s?.(f),s=null;}function _(){return r&&g(),new Promise(f=>{s=f,r=true,n=h(),i=b(),i.addEventListener("mousemove",E),i.addEventListener("click",x),i.addEventListener("pointerdown",y),i.addEventListener("mousedown",y),i.addEventListener("mouseup",y),document.addEventListener("keydown",k,true),window.addEventListener("scroll",v,{capture:true,passive:true});})}function g(){r&&(r=false,o=null,document.removeEventListener("keydown",k,true),window.removeEventListener("scroll",v,{capture:true}),i&&(i.remove(),i=null),n&&(n.remove(),n=null));}return {activate:_,deactivate:g,isActive:()=>r}}var Wu=120;function Wi(){let e=[],t=()=>n("hashchange");n("initial");function r(u){e.push(u),e.length>Wu&&e.shift();}function n(u){typeof location>"u"||r({ts:Date.now(),kind:"route",payload:{source:u,route:mr(`${location.pathname}${location.search}${location.hash}`),href:mr(location.href)}});}function i(u){let c=u.target instanceof Element?u.target:null;if(!c)return;let p=c.closest('button,a,[role="button"],input,textarea,select,[data-mushi-track]')??c;r({ts:Date.now(),kind:"click",payload:{tag:p.tagName.toLowerCase(),id:p.id||void 0,text:Mf(p)}});}let o=He({onPush:()=>n("pushState"),onReplace:()=>n("replaceState"),onPop:()=>n("popstate")}),s=typeof window<"u",a=typeof document<"u";return s&&window.addEventListener("hashchange",t),a&&document.addEventListener("click",i,true),{setScreen(u){r({ts:Date.now(),kind:"screen",payload:u});},getEntries(u={}){return [...e,...(u.consoleLogs??[]).map(p=>({ts:p.timestamp,kind:"log",payload:{level:p.level,message:p.message}})),...(u.networkLogs??[]).map(p=>({ts:p.timestamp,kind:"request",payload:{method:p.method,url:p.url,status:p.status,duration:p.duration,error:p.error}}))].sort((p,h)=>p.ts-h.ts).slice(-Wu)},clear(){e.length=0;},destroy(){o(),s&&window.removeEventListener("hashchange",t),a&&document.removeEventListener("click",i,true);}}}function Mf(e){let t=(e.textContent??"").replace(/\s+/g," ").trim();return t?t.slice(0,80):void 0}var Lf=6e4,Df=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,Pf=/^[0-9a-f]{20,}$/i,$f=/^\d+$/,Bf=/^[a-z0-9]{16,}$/i;function Of(e){return e.length===0?e:Df.test(e)||Pf.test(e)||$f.test(e)||Bf.test(e)&&/\d/.test(e)?"[id]":e}function Ff(e,t,r){if(t.startsWith("#/")){let n=t.slice(1),i=n.indexOf("?"),o=i===-1?n:n.slice(0,i),s=r?.map(a=>a.startsWith("/#/")?a.slice(2):a);return "/#"+Ku(o,s)}return Ku(e,r)}function Ku(e,t){let r=e.length>1&&e.endsWith("/")?e.slice(0,-1):e;if(t?.length){let n=Hf(r,t);if(n)return n}return "/"+r.split("/").filter(n=>n.length>0).map(Of).join("/")}function Hf(e,t){let r=e.split("/").filter(i=>i.length>0),n=[...t].sort((i,o)=>o.split("/").length-i.split("/").length);for(let i of n){let o=i.split("/").filter(a=>a.length>0);if(o.length!==r.length)continue;let s=true;for(let a=0;a<o.length;a++){let u=o[a],c=r[a];if(!(u.startsWith("[")&&u.endsWith("]"))&&!u.startsWith(":")&&u!==c){s=false;break}}if(s)return "/"+o.join("/")}return null}function Nf(){if(typeof document>"u")return [];let e=new Set,t=document.querySelectorAll("[data-testid]");for(let r of Array.from(t)){let n=r.getAttribute("data-testid");n&&n.length>0&&n.length<120&&e.add(n);}return Array.from(e).sort()}function Uf(){if(typeof window>"u")return [];try{let e=new Set,t=i=>{new URLSearchParams(i).forEach((o,s)=>e.add(s));};t(window.location.search);let r=window.location.hash,n=r.indexOf("?");return r.startsWith("#/")&&n!==-1&&t(r.slice(n+1)),Array.from(e).sort()}catch{return []}}function qf(){if(typeof document>"u")return null;let e=i=>(i??"").replace(/\s+/g," ").trim().slice(0,200),t=e(document.querySelector("h1")?.textContent);if(t)return t;let r=e(document.title);return r||e(document.querySelector("main")?.textContent)||null}async function jf(e){if(!e||typeof crypto>"u"||!crypto.subtle)return null;try{let t=new TextEncoder().encode(e),r=await crypto.subtle.digest("SHA-256",t),n=new Uint8Array(r),i="";for(let o=0;o<n.length;o++)i+=n[o].toString(16).padStart(2,"0");return i}catch{return null}}function Ki(e){let{config:t,getRecentNetworkPaths:r,getUserId:n,getSessionId:i,onEvent:o}=e,s=t.throttleMs??Lf,a=t.captureDomSummary!==false,u=t.userIdSource??"auto",c=new Map,p=null,h=null;async function b(){if(typeof window>"u")return;let x=Ff(window.location.pathname,window.location.hash,t.routeTemplates),k=Date.now(),v=c.get(x)??0;if(k-v<s)return;c.set(x,k);let C=null;u==="auto"?C=n()??i():u==="session-only"&&(C=i());let _={route:x,page_title:typeof document<"u"&&(document.title||"").slice(0,300)||null,dom_summary:a?qf():null,testids:Nf(),network_paths:r().slice(-50),query_param_keys:Uf(),user_id_hash:await jf(C),observed_at:new Date().toISOString()};o(_);}function A(){h||(h=setTimeout(()=>{h=null,b();},100));}function T(){if(typeof window>"u")return;let x=window.location.hash.startsWith("#/")?window.location.hash:"",k=window.location.pathname+window.location.search+x;k!==p&&(p=k,A());}if(typeof window>"u")return {destroy:()=>{},flushNow:()=>{}};let E=()=>T(),y=He({onPush:E,onReplace:E,onPop:E});return window.addEventListener("hashchange",E),A(),{destroy(){y(),window.removeEventListener("hashchange",E),h&&(clearTimeout(h),h=null),c.clear();},flushNow(){c.clear(),b();}}}var Wf=3e4,zi=400,Kf=4,Vf=2;function Vu(e,t,r){let n=u=>u.timestamp,i=u=>u.type===Vf,o=u=>u.type===Kf,s=Date.now()-t,a=0;for(let u=0;u<e.length;u++){let c=n(e[u]);if(typeof c=="number"&&c>=s)break;i(e[u])&&(a=o(e[u-1])?u-1:u);}if(e.length-a>r){for(let u=a+1;u<e.length;u++)if(i(e[u])&&e.length-u<=r){a=o(e[u-1])?u-1:u;break}}a>0&&e.splice(0,a);}function zu(e){let t=[],r=false,n=o=>{if(!r)return;let s=o.target instanceof Element?o.target:null,a=s?.tagName?.toLowerCase()??"unknown",u=s?.closest("[data-testid]")?.getAttribute("data-testid")??void 0;t.push({type:"lite_click",timestamp:Date.now(),data:{tag:a,testId:u}}),t.length>zi&&t.shift();},i=()=>{r=false,document.removeEventListener("click",n,true);};return {start(){r||(r=true,document.addEventListener("click",n,true));},stop:i,flush(){let o=Date.now()-e;return t.filter(s=>s.timestamp>=o)},destroy(){i(),t.length=0;}}}var zf=['input[type="password"]',"[data-mushi-redact]"],Gf="rrweb",je=null,Gu=false;function Vi(e){if(!e||typeof e!="object")return null;let t=e;return typeof t.record=="function"?t:t.default&&typeof t.default.record=="function"?t.default:null}async function Yf(e){if(je)return je;if(typeof e=="function")try{if(je=Vi(await e()),je)return je}catch{}if(je=Vi(globalThis.rrweb),je)return je;try{let t=globalThis.__MUSHI_RRWEB_SPECIFIER__||Gf;return je=Vi(await import(t)),je}catch{return null}}async function Yu(e){let t=e.maxDurationMs??Wf;if(e.mode==="lite")return zu(t);let r=await Yf(e.loadRrweb);if(!r?.record)return Gu||(Gu=true,ct({scope:"mushi"}).warn("capture.replay is 'rrweb' but rrweb could not be loaded, so replay is recording clicks only. Install rrweb and pass capture: { rrweb: () => import('rrweb') }.")),zu(t);let n=r.record,i=[],o=null,s=false,a=[...new Set([...zf,...e.redactSelectors??[]])],u=()=>{o?.(),o=null,s=false;};return {start(){s||(s=true,o=n({emit(c){i.push(c),Vu(i,t,zi);},maskAllInputs:true,maskTextSelector:"*",blockSelector:a.join(","),checkoutEveryNms:t,sampling:{mousemove:false,mouseInteraction:true,scroll:150,media:800}})??null);},stop:u,flush(){return Vu(i,t,zi),[...i]},destroy(){u(),i.length=0;}}}Cr();Hi();function Xu(){try{let e=globalThis;return e.Sentry?e.Sentry:void 0}catch{return}}function Xf(){try{return globalThis.__SENTRY_REPLAY__}catch{return}}function Jf(){try{let e=globalThis,t=e.__SENTRY__,r=e.Sentry;return t?.version==="9"||r&&typeof r.lastEventId=="function"?t?.version==="9"?"v9":"v8":t?.version==="8"?"v8":r&&typeof r.getCurrentHub=="function"?"v7":"unknown"}catch{return "unknown"}}function Gi(e,t={}){let r=Math.max(0,t.breadcrumbsLimit??30),n={},i=Xu();if(!i)return n;n.sdk=Jf();try{let a=i;if(typeof a.lastEventId=="function")n.eventId=a.lastEventId()??void 0;else {let c=i.getCurrentHub?.()?.getScope?.();n.eventId=c?.getLastEventId?.()??void 0;}}catch{}let o;try{let a=i;typeof a.getCurrentScope=="function"?o=a.getCurrentScope():o=i.getCurrentHub?.()?.getScope?.();}catch{}if(o){try{let a=o.getUser?.();a&&(n.user={id:typeof a.id=="string"?a.id:void 0,email:typeof a.email=="string"?a.email:void 0,username:typeof a.username=="string"?a.username:void 0,ip_address:typeof a.ip_address=="string"?a.ip_address:void 0});}catch{}try{let a=o.getTags?.();if(a&&typeof a=="object"){let u={};for(let[c,p]of Object.entries(a))(typeof p=="string"||typeof p=="number"||typeof p=="boolean")&&(u[c]=p);Object.keys(u).length>0&&(n.tags=u);}}catch{}try{n.transactionName=o.getTransactionName?.()??o.getTransaction?.()?.name??void 0;}catch{}try{n.sessionId=o.getSession?.()?.sid??void 0;}catch{}try{let a=o.getBreadcrumbs?.()??o._breadcrumbs??[];if(Array.isArray(a)&&a.length>0){let u=a.slice(-r);n.breadcrumbs=u.map(c=>{let p=c;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 a=i,u;if(typeof a.getActiveSpan=="function"?u=a.getActiveSpan():o?.getSpan&&(u=o.getSpan()),u){let c=u.spanContext?.();n.traceId=c?.traceId??u.traceId??void 0,n.spanId=c?.spanId??u.spanId??void 0;}}catch{}let s;try{let a=i;typeof a.getClient=="function"?s=a.getClient():s=i.getCurrentHub?.()?.getClient?.();}catch{}if(s){try{let a=s.getOptions?.();a?.release&&(n.release=a.release),a?.environment&&(n.environment=a.environment);}catch{}try{let a=s.getDsn?.();if(a?.host&&a?.projectId&&n.eventId){let u=a.host.replace(/^o\d+\./,"");n.issueUrl=`https://${u}/issues/?query=${encodeURIComponent(n.eventId)}`;}}catch{}}try{let u=i.getReplay?.()??Xf();n.replayId=u?.getReplayId?.()??void 0;}catch{}return n}function Yi(e,t={}){let r=Xu();if(r){try{let n=r;typeof n.setTag=="function"&&(n.setTag("mushi.report_id",e),t.reportUrl&&n.setTag("mushi.report_url",t.reportUrl)),typeof n.setContext=="function"&&n.setContext("mushi_report",{id:e,...t.reportUrl?{url:t.reportUrl}:{},captured_at:new Date().toISOString()}),typeof n.addBreadcrumb=="function"&&n.addBreadcrumb({category:"mushi",type:"info",level:"info",message:`Mushi report submitted (${e})`,data:{report_id:e,...t.reportUrl?{url:t.reportUrl}:{}}});}catch{}try{let i=r.getCurrentHub?.()?.getScope?.();i&&(i.setTag?.("mushi.report_id",e),t.reportUrl&&i.setTag?.("mushi.report_url",t.reportUrl),i.setContext?.("mushi_report",{id:e,...t.reportUrl?{url:t.reportUrl}:{}}));}catch{}}}var Zf=["/login","/logout","/signup","/sso/*","/auth/*"],Qf=/(?:^\s*at\s+(?:.*?\()?|@)([a-z][a-z0-9+.-]*:\/\/[^\s()]*?)(?::\d+){1,2}\)?\s*$/i;function Xi(e){if(!(typeof e!="string"||e.length===0))for(let t of e.split(`
98
+ `)){let r=Qf.exec(t);if(r)return r[1]}}var em=5,Ju='input[type="number"],[role="spinbutton"],[data-stepper],[data-increment],[data-decrement]',tm=/^(?:[+\-\u2212\u2013\uFF0B\uFF0D]|(?:increase|decrease|increment|decrement)\b.*)$/i,rm=/^(?:[\u25B6\u23F5\u23F8\u23EF]|.*\b(?:play|pause|replay|listen|mute|unmute)\b.*)$/i;function Qu(e){return (e.getAttribute("aria-label")||e.getAttribute("title")||e.textContent||"").trim().slice(0,60)}function nm(e){if(e.closest(Ju))return true;let t=e.closest('button,[role="button"]');if(!t)return false;if(tm.test(Qu(t)))return true;let r=t.getAttribute("data-action");return r==="increment"||r==="decrement"?true:!!t.parentElement?.querySelector(Ju)}function im(e){if(e.closest("audio,video,[data-media-control]"))return true;let t=e.closest('button,[role="button"]');return !!(t&&rm.test(Qu(t)))}function om(e){let t=typeof window<"u"&&window.getSelection?window.getSelection():null;if(!t||t.isCollapsed||t.rangeCount===0)return false;try{return t.getRangeAt(0).intersectsNode(e)}catch{return false}}function sm(e,t){return t.scrolled||t.movedPx>em?true:om(e)||nm(e)||im(e)}function el(e,t={}){let r=[];if(t.rageClick!==false){let _=function(m){x=m.clientX,k=m.clientY,v=true;},g=function(){C=Date.now();},f=function(m){let S=Date.now(),B=m.target instanceof Element?m.target:null,j=v?Math.hypot(m.clientX-x,m.clientY-k):0;v=false;let N=C>0&&C>=(E[0]??S)-500;if(B&&sm(B,{movedPx:j,scrolled:N})){E=[],y=null;return}if(m.target===y){if(E.push(S),E=E.filter(Z=>S-Z<500),E.length>=3){let Z=m.target;e.onTrigger("rage_click",{element:Z.tagName,id:Z.id,text:Z.textContent?.slice(0,50)}),E=[];}}else y=m.target,E=[S];};let E=[],y=null,x=0,k=0,v=false,C=0;document.addEventListener("mousedown",_,true),document.addEventListener("click",f,true),document.addEventListener("scroll",g,{capture:true,passive:true}),document.addEventListener("touchmove",g,{capture:true,passive:true}),r.push(()=>{document.removeEventListener("mousedown",_,true),document.removeEventListener("click",f,true),document.removeEventListener("scroll",g,true),document.removeEventListener("touchmove",g,true);});}if(t.longTask!==false&&typeof PerformanceObserver<"u")try{let E=new PerformanceObserver(y=>{for(let x of y.getEntries())x.duration>5e3&&e.onTrigger("long_task",{duration:Math.round(x.duration),startTime:Math.round(x.startTime)});});E.observe({entryTypes:["longtask"]}),r.push(()=>E.disconnect());}catch{}let n=am(t.apiCascade);if(n.enabled){let E=[],y=globalThis.fetch;globalThis.fetch=async function(...x){let[k,v]=x,C=vn(k),_=!!wn(k,v)||Rr(C,{apiEndpoint:t.apiEndpoint,ignoreUrls:n.ignoreUrls});try{let g=await y.apply(this,x);return !_&&!g.ok&&g.status>=400&&Zu(E,e),g}catch(g){throw _||Zu(E,e),g}},r.push(()=>{globalThis.fetch=y;});}if((t.pageDwell===true||typeof t.pageDwell=="object"&&t.pageDwell!==null)&&typeof window<"u"){let C=function(S){return x.some(B=>B.endsWith("/*")?S.startsWith(B.slice(0,-2)):S===B||S.startsWith(B+"/"))},_=function(){let S=window.location?.pathname??"";C(S)||e.onTrigger("page_dwell",{thresholdMs:y,path:S});},g=function(){k&&clearTimeout(k);let S=window.location?.pathname??"";C(S)||(k=setTimeout(_,y));},f=function(){let S=window.location?.pathname??"";S!==v&&(v=S,g());};let E=typeof t.pageDwell=="object"?t.pageDwell??{}:{},y=E.thresholdMs||300*1e3,x=E.excludeRoutes!==void 0?E.excludeRoutes:Zf,k=null,v=window.location?.pathname??"";g();let m=He({onPush:f,onReplace:f,onPop:f});r.push(()=>{k&&clearTimeout(k),m();});}if((t.firstSession===true||typeof t.firstSession=="object"&&t.firstSession!==null)&&typeof window<"u"){let E=typeof t.firstSession=="object"?t.firstSession??{}:{},y=E.delayMs??45*1e3,x=E.storageKey??(t.projectId?`mushi:${t.projectId}:firstSessionShown`:"mushi:firstSessionShown"),k=false;try{k=window.localStorage?.getItem(x)==="1";}catch{}if(!k){let v=setTimeout(()=>{try{window.localStorage?.setItem(x,"1");}catch{}e.onTrigger("first_session",{delayMs:y});},y);r.push(()=>clearTimeout(v));}}if(t.errorBoundary){let E=function(x){fr({message:x.message,filename:x.filename,ignoreErrors:t.ignoreErrors,denyUrls:t.denyUrls,allowUrls:t.allowUrls})||e.onTrigger("error_boundary",{message:x.message,filename:x.filename,lineno:x.lineno,colno:x.colno});},y=function(x){let k=x.reason instanceof Error?x.reason.message:String(x.reason);fr({message:k,filename:x.reason instanceof Error?Xi(x.reason.stack):void 0,ignoreErrors:t.ignoreErrors,denyUrls:t.denyUrls,allowUrls:t.allowUrls})||e.onTrigger("error_boundary",{message:k,type:"unhandled_rejection"});};window.addEventListener("error",E),window.addEventListener("unhandledrejection",y),r.push(()=>{window.removeEventListener("error",E),window.removeEventListener("unhandledrejection",y);});}return {destroy(){r.forEach(E=>E());}}}function am(e){return e===false?{enabled:false,ignoreUrls:[]}:e&&typeof e=="object"?{enabled:e.enabled!==false,ignoreUrls:e.ignoreUrls??[]}:{enabled:true,ignoreUrls:[]}}function Zu(e,t){let r=Date.now();e.push(r);let n=e.filter(i=>r-i<1e4);n.length>=3&&(t.onTrigger("api_cascade",{failureCount:n.length,windowMs:1e4}),e.length=0);}var tl="mushi:lastDismiss",xn="mushi:consecDismiss",Ji="mushi:lastShown";function kn(e){try{return localStorage.getItem(e)}catch{return null}}function Rn(e,t){try{localStorage.setItem(e,t);}catch{}}function rl(e={}){let t=e.maxProactivePerSession??2,r=e.dismissCooldownHours??24,n=e.suppressAfterDismissals??3,i=(e.reshowCooldownMinutes??30)*60*1e3,o=0,s=new Set;function a(h){let b=Date.now();if(parseInt(kn(xn)??"0",10)>=n)return false;let T=kn(tl);if(T&&b-parseInt(T,10)<r*60*60*1e3)return false;if(i>0&&o===0){let E=kn(Ji);if(E&&b-parseInt(E,10)<i)return false}return o>=t||s.has(h)?false:(s.add(h),o++,Rn(Ji,String(b)),true)}function u(){Rn(tl,String(Date.now()));let h=parseInt(kn(xn)??"0",10);Rn(xn,String(h+1));}function c(){Rn(xn,"0");}function p(){o=0,s.clear();try{localStorage.removeItem(Ji);}catch{}}return {shouldShow:a,recordDismissal:u,recordSubmission:c,reset:p}}var nl="mushi:capture",um="mushi_monitor";function il(e=typeof window<"u"?window:void 0){if(!e)return false;let t=e.__MUSHI_CAPTURE__===true;if(!t)try{t=e.sessionStorage?.getItem(nl)==="1";}catch{}if(!t)try{t=new URLSearchParams(e.location?.search??"").has(um);}catch{t=false;}if(t)try{e.sessionStorage?.setItem(nl,"1");}catch{}return t}var et="@mushi-mushi/web",Re="1.41.0";function dl(e,t){if(e.appVersion)return e.appVersion;let r=e.integrations?.vercel?.analyticsId;return r||t?.buildId}var We=null,_n=class{constructor(){}static init(t={}){if(We)return ct({scope:"mushi",level:"warn",format:"pretty"}).warn("Already initialized \u2014 call destroy() first to reinitialize"),We;if(typeof document>"u"||typeof window>"u")return hl();let r={...Jn(),...t};if(!r.projectId||!r.apiKey){let n=ls();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?hl():(We=mm(r),We)}static getInstance(){return We}static destroy(){We?.destroy(),We=null;}static diagnose(){return We?.diagnose()??to()}};function mm(e){ds(e);let t=cs(e),r=t.projectId,n=()=>re(r),i=t,o=e.debug??false?ct({scope:"mushi",level:"debug",format:"pretty"}):Zn,s=null,a=null,u=us({projectId:t.projectId,apiKey:t.apiKey,...t.apiEndpoint?{apiEndpoint:t.apiEndpoint}:{},...typeof t.timeout=="number"?{timeout:t.timeout}:{},...typeof t.maxRetries=="number"?{maxRetries:t.maxRetries}:{},...t.circuitBreaker?{circuitBreaker:t.circuitBreaker}:{},...t.tunnel?{tunnel:t.tunnel}:{},getUserToken:()=>s,sdkPackage:et,sdkVersion:Re}),c=null,p=false;function h(){if(!p){p=true,Ts({client:u,sdkVersion:Re,reporterToken:re(t.projectId)??null,projectId:t.projectId,analytics:t.analytics});try{c=He({onPush:()=>ni(),onPop:()=>ni()});}catch{}}}let b=t.trackSessions,A=b==="on-demand"?Promise.resolve().then(()=>(sl(),ol)):null,T=A?.then(l=>l.readTabOptIn(t.projectId));function E(l){if(!(p||b===false)){if(!A){h();return}Promise.all([A,T]).then(([d,w])=>{if(p)return;d.journeyRecordingDecision({mode:b,tabOptIn:w===true,window:l,draw:l?d.deviceDraw(t.projectId):1,now:Date.now()})&&h();}).catch(()=>{});}}E(null);let y=ps(t.preFilter),x=bs(t.offline),k=Ns({maxBurst:10,refillRate:1,refillIntervalMs:5e3}),v=ai();$s({client:u,projectId:t.projectId,sdkVersion:Re,config:t.analytics,scrub:l=>v.scrub(l),getSessionId:Rt});function C(l){return l.map(d=>{let w={...d};if(typeof d.message=="string"&&(w.message=v.scrub(d.message)),d.data&&typeof d.data=="object"){let P={};for(let[I,V]of Object.entries(d.data))P[I]=typeof V=="string"?v.scrub(V):V;w.data=P;}return w})}function _(l){return l&&l.map(d=>({...d,message:v.scrub(d.message),...d.stack?{stack:v.scrub(d.stack)}:{}}))}function g(l){if(!l)return;let d={};for(let[w,P]of Object.entries(l))d[w]=typeof P=="string"?v.scrub(P):P;return d}let f=null,m=null,S=null,B=null,j=null,N=null,Z=Wi(),ee=null,we=0,L,Se=`mushi:tester-jwt:${t.projectId}`;function ae(){try{return typeof localStorage<"u"?localStorage.getItem(Se):null}catch{return null}}function ne(){try{typeof localStorage<"u"&&localStorage.removeItem(Se);}catch{}}async function H(l){let d=await u.getTesterStatus(l);if(!d.ok||!d.data){ne();return}let w=d.data;if(!w.is_tester||!w.tester_id){ne();return}L.setTesterSession(l,{id:w.tester_id,public_handle:w.public_handle??null,display_name:w.display_name??null});let P=await u.getMyReputation(l);if(P.ok&&P.data){let I=P.data;I.reputation&&L.setTesterReputation(I.reputation);}}function me(){if(i.capture?.console!==false?f??=Oi():(f?.destroy(),f=null),i.capture?.network!==false){let q={apiEndpoint:eo(i),ignoreUrls:i.capture?.ignoreUrls,tracePropagation:i.capture?.tracePropagation,sessionId:Rt()};m?m.updateOptions(q):m=Bi(q);}else m?.destroy(),m=null;if(i.capture?.performance!==false?S??=qi():(S?.destroy(),S=null),i.capture?.screenshot!=="off"){let q={privacy:i.privacy,onFailed:z=>L.setScreenshotError(true,z)};i.capture?.screenshotProvider?B=null:B?B.updateOptions(q):B=Ui(q);}else B=null;!B&&!i.capture?.screenshotProvider&&(R=null),L.setAllowScreenshotRemove(i.privacy?.allowUserRemoveScreenshot!==false),i.capture?.elementSelector!==false?j??=ji(()=>{let q=i.privacy;return [It,...q?.redactSelectors??["[data-mushi-redact]"],...q?.maskSelectors??[],...q?.blockSelectors??[]].join(",")},q=>v.scrub(q)):(j?.deactivate(),j=null,O=null),L.setCaptureAvailability({screenshot:(!!B||!!i.capture?.screenshotProvider)&&i.capture?.screenshot!=="off",element:!!j});let l=i.capture?.discoverInventory,d=l===true?{}:l&&typeof l=="object"?l:null;d!=null&&d.enabled!==false?(N?.destroy(),N=Ki({config:d,getRecentNetworkPaths:()=>m?m.getEntries().map(q=>{try{let z=new URL(q.url,typeof window<"u"?window.location.href:"http://localhost");return z.host&&typeof window<"u"&&z.host!==window.location.host?null:z.pathname}catch{return null}}).filter(q=>q!=null&&q.length>0&&q.length<200):[],getUserId:()=>G?.id??null,getSessionId:Rt,onEvent:q=>{u.postDiscoveryEvent({...q,sdk_version:Re}).catch(z=>{o.debug("discovery emit failed",{err:String(z)});});}})):(N?.destroy(),N=null);let P=i.capture?.replay??"off",I=i.replaySampleRate??1,V=I>=1||Math.random()<I,Q=i.replaysOnErrorSampleRate??0,ie=!V&&Q>0&&Math.random()<Q;if((P==="rrweb"||P==="lite")&&(V||ie)){let q=++we;Yu({mode:P,loadRrweb:t.capture?.rrweb,redactSelectors:i.privacy?.redactSelectors}).then(z=>{if(q!==we){z.destroy();return}ee?.destroy(),ee=z,ee.start();});}else we++,ee?.destroy(),ee=null;}let _e=new Map;function Y(l,d){_e.get(l)?.forEach(w=>w({type:l,data:d}));}let R=null,D=false,O=null,F=null,W=false,ge=true,Ce=null,tt=null,G=null,be=null,Te={},Ae=null,Ie={},U=qs({max:50});U.add({category:"lifecycle",level:"info",message:"Mushi SDK init",data:{projectId:t.projectId,sdkVersion:Re}});let Mt=null;Mt=Rm(U);let rt=false,nt=false,Xt=new Set,it=du(u);async function Tr(){let l=await it.getUpdates(n()),d=l.ok?l.data??null:null;if(d)for(let w of Xt)try{w(d);}catch{}return d}function no(){L.refreshReporterInboxQuiet(),Xt.size&&Tr();}function Ar(){Ce&&clearInterval(Ce),Ce=null,tt&&typeof document<"u"&&document.removeEventListener("visibilitychange",tt),tt=null;}function io(){if(Ar(),!ge)return;let l=5*6e4,d=()=>{typeof document<"u"&&document.visibilityState==="hidden"||ki(r)&&no();};Ce=setInterval(d,l),typeof document<"u"&&(tt=()=>{document.visibilityState==="visible"&&d();},document.addEventListener("visibilitychange",tt)),d();}let Jt=null;function oo(){let l=i.notifications??t.notifications;L.setReporterChannels({email:!!Jt?.emailEnabled&&l?.email!==false,push:!!(Jt?.pushEnabled&&Jt.vapidPublicKey)&&!!l?.webPush,emailPrefill:l?.emailFromIdentity?G?.email??"":""});}let Zt=[];function bl(){if(!ki(r))return;let l=globalThis.requestIdleCallback;if(l?l(()=>{L.preloadViews();},{timeout:8e3}):setTimeout(()=>{L.preloadViews();},3e3),t.notifications?.toast===false||!lu(r))return;let d=async()=>{let P=await Tr(),I=P&&typeof P.unread_total=="number"&&Array.isArray(P.latest)?P:null;if(I&&!I.unread_total)return;await L.refreshReporterInboxQuiet(),(I?L.showUpdatesFeedToast(I,Zt):await L.showUpdatesToast(Zt))&&cu(r);},w=globalThis.requestIdleCallback;w?w(()=>{d();},{timeout:5e3}):setTimeout(()=>{d();},2e3);}async function El(l){let d=re(r),w=await it.markReportRead(l,d);if(w.ok)return w.data?.unread_total??null;let P=await u.listNotifications(d,{limit:50});if(!P.ok)return null;let I=(P.data?.notifications??[]).filter(V=>{let Q=V.payload??{};return !V.read_at&&(Q.reportId===l||V.report_id===l)});return await Promise.all(I.map(V=>u.markNotificationRead(String(V.id),d))),null}function so(l,d){if(!i.rewards?.enabled)return;let w={client:u,config:i.rewards,projectId:r,userId:l,traits:d,reporterToken:n()};ku(w),i.rewards.showInWidget!==false&&u.getMyPoints(l).then(P=>{if(!P.ok)return;let I=P.data;L.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 Cn(){if(rt)return null;nt=false;let l=i.capture?.screenshotProvider;if(l){rt=true;try{let I=await l();if(I?.startsWith("data:image/"))return I;I&&o.warn("screenshotProvider must resolve to a data:image/ URL; ignoring",{prefix:I.slice(0,16)});}catch(I){o.warn("screenshotProvider threw, falling back to built-in capturer",{error:I instanceof Error?I.message:String(I)}),nt=I instanceof Error&&(I.name==="NotAllowedError"||I.name==="SecurityError"||/permission|denied/i.test(I.message));}finally{rt=false;}}if(!B)return null;rt=true;let d=L.getIsOpen();d&&L.hidePanel();let w=document.getElementById("mushi-mushi-widget"),P=w?.style.visibility??"";w&&(w.style.visibility="hidden"),await new Promise(I=>{requestAnimationFrame(()=>requestAnimationFrame(()=>I()));});try{return await B.take()}finally{rt=false,w&&(w.style.visibility=P),d&&L.showPanel();}}function ao(){let l=i.capture?.screenshot;return (!!B||!!i.capture?.screenshotProvider)&&(l==="auto"||l==="on-report")&&!R&&!D}let Qt=null,Me=0;function yl(){if(i.capture?.screenshot!=="auto"||!ao())return;o.debug("Auto-capturing screenshot on open");let l=Me,d=(async()=>{let w=await Cn().catch(()=>null);l!==Me||R||D||!w||(R=w,L.setScreenshotAttached(true),L.setScreenshotPreview(w));})();Qt=d,d.finally(()=>{Qt===d&&(Qt=null);});}async function vl(){if(Qt&&(await Qt,R))return true;if(!ao())return false;o.debug("Capturing screenshot for review before send",{mode:i.capture?.screenshot});let l=Me,d=await Cn().catch(()=>null);return !d||l!==Me?false:(R=d,L.setScreenshotAttached(true),L.setScreenshotPreview(d),true)}let Tn=Ht(r).then(l=>l.slice(0,12)).catch(()=>null);L=new hn(t.widget,{onWarning:l=>o.warn(l),onSubmit:async({category:l,userCategory:d,description:w,intent:P})=>{o.info("Report submitted",{category:l,userCategory:d,intent:P}),F&&er?.recordSubmission();let I=await Sl(l,w,P,d);return gr(I)||(D=false),I},onBeforeSubmit:()=>vl(),onOpen:()=>{o.debug("Widget opened"),Me++,R=null,D=false,yl(),ee?.start(),Y("widget:opened");},onBrandFooterImpression:()=>{Tn.then(l=>{Ft("loop_impression",{placement:"widget"},l?{reserved:{$ref:l}}:void 0);});},onBrandFooterClick:()=>{Tn.then(l=>(Ft("loop_click",{placement:"widget"},l?{reserved:{$ref:l}}:void 0),Fs()));},onClose:()=>{o.debug("Widget closed"),F&&(er?.recordDismissal(),Y("proactive:dismissed",{type:F})),Me++,R=null,D=false,O=null,F=null,Y("widget:closed");},onScreenshotRequest:async()=>{if(!(!!B||!!i.capture?.screenshotProvider)||i.capture?.screenshot==="off"){o.warn("Screenshot requested but capture is disabled"),L.setScreenshotError(true,"unsupported");return}if(rt)return;o.debug("Taking screenshot"),L.setScreenshotCapturing(true);let d=Me,w=null;try{w=await Cn();}catch(P){o.warn("Screenshot capture threw",{error:P instanceof Error?P.message:String(P)});}d===Me&&(R=w,L.setScreenshotAttached(R!==null),L.setScreenshotPreview(R),R===null&&L.setScreenshotError(true,nt?"permission":void 0));},onScreenshotShareTabRequest:typeof navigator<"u"&&typeof navigator.mediaDevices?.getDisplayMedia=="function"?()=>{let l=navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"browser"},audio:false,preferCurrentTab:true,selfBrowserSurface:"include"});l.catch(()=>{}),L.setScreenshotCapturing(true);let d=document.getElementById("mushi-mushi-widget");d&&(d.style.visibility="hidden");let w=Me,P=i.privacy;Promise.resolve().then(()=>(ul(),al)).then(I=>I.grabMaskedTabFrame(l,Pu(P)),I=>{throw l.then(V=>V.getTracks().forEach(Q=>Q.stop()),()=>{}),I}).then(I=>{w===Me&&(R=I,L.setScreenshotAttached(true),L.setScreenshotPreview(I));}).catch(I=>{o.warn("Tab capture failed",{error:I instanceof Error?I.name:String(I)}),L.setScreenshotError(true,I instanceof Error&&I.name==="NotAllowedError"?"permission":"error");}).finally(()=>{d&&(d.style.visibility="");});}:void 0,onScreenshotRemove:()=>{o.debug("Screenshot attachment removed"),R=null,D=true,L.setScreenshotAttached(false);},onScreenshotAnnotateRequest:async l=>{if(!R||l.childElementCount>0)return;let d=Me,w;try{let{createScreenshotAnnotation:ie}=await Promise.resolve().then(()=>(cl(),ll));w=await ie(R,l);}catch(ie){o.warn("Screenshot annotation failed",{error:ie instanceof Error?ie.message:String(ie)});return}let P=document.createElement("div");P.className="mushi-annotate-toolbar";let I=ie=>{d===Me&&(R=w.getDataUrl(),L.setScreenshotAttached(true),L.setScreenshotPreview(R)),w.destroy(),P.remove();},V=[{id:"highlight",label:"\u270F\uFE0F Highlight"},{id:"blur",label:"\u{1F512} Blur"},{id:"arrow",label:"\u2197\uFE0F Arrow"}];for(let ie of V){let q=document.createElement("button");q.type="button",q.className="mushi-attach-btn",q.dataset.tool=ie.id,q.textContent=ie.label,q.addEventListener("click",()=>{w.setTool(ie.id),P.querySelectorAll("button[data-tool]").forEach(z=>z.classList.remove("active")),q.classList.add("active");}),P.appendChild(q);}P.querySelector('button[data-tool="highlight"]')?.classList.add("active");let Q=document.createElement("button");Q.type="button",Q.className="mushi-attach-btn",Q.textContent="\u2713 Done",Q.addEventListener("click",()=>I()),P.appendChild(Q),l.insertBefore(P,l.firstChild);},onElementSelectorRequest:async()=>{if(!j||i.capture?.elementSelector===false){o.warn("Element selector requested but it is disabled/unavailable"),L.setElementError(true);return}o.debug("Element selector activated"),L.setElementCapturing(true),L.hidePanel();try{let l=await j.activate();l?(O=l,L.setElementSelected(!0),o.debug("Element selected",{tagName:l.tagName,xpath:l.xpath})):L.setElementCapturing(!1);}catch(l){o.warn("Element selector threw",{error:l instanceof Error?l.message:String(l)}),L.setElementError(true);}finally{L.showPanel();}},async onReporterReportsRequest(){let l=await u.listReporterReports(re(r));if(!l.ok)throw new Error(l.error?.message??"Could not load reports");return Zt=l.data?.reports??[],Zt.length&&xi(r),Zt},onReporterMarkRead:l=>El(l),async onReporterReportRequest(l){let d=await it.getReport(l,re(r));return d.ok&&d.data?{report:d.data.report,timeline:d.data.timeline}:null},async onReporterEmailOptIn(l){let d=await it.setPrefs(re(r),{email:l,channels:{email:true}});if(!d.ok)throw new Error(d.error?.code??"EMAIL_OPT_IN_FAILED")},async onReporterPushSubscribe(){let l=await In.subscribeReporterPush();if(!l.ok)throw new Error(l.reason)},async onReporterCommentsRequest(l){let d=await u.listReporterComments(l,re(r));if(!d.ok)throw new Error(d.error?.message??"Could not load thread");return d.data?.comments??[]},async onReporterReply(l,d){let w=await u.replyToReporterReport(l,re(r),d);if(!w.ok)throw new Error(w.error?.message??"Could not send reply")},async onReporterFeedback(l,d,w){let P=await u.replyToReporterReport(l,re(r),w??"",d);if(!P.ok)throw new Error(P.error?.message??"Could not send feedback");return P.data?.feedback??null},async onReporterReopen(l,d){let w=await u.reopenReporterReport(l,re(r),d);if(!w.ok)throw new Error(w.error?.message??"Could not reopen report");return w.data?.outcome??null},async onFeatureBoardRequest(){let l=await u.listReporterFeatureBoard(re(r));if(!l.ok)throw new Error(l.error?.message??"Could not load community ideas");return l.data?.tickets??[]},async onFeatureBoardVote(l){let d=await u.voteReporterFeatureBoard(l,re(r));if(!d.ok)throw new Error(d.error?.message??"Could not vote");return d.data??{voted:true,action:"added"}},onLeaderboardOpen(){L.setLeaderboard(null,true),_u(10).then(l=>{L.setLeaderboard(l,false);});},async onMushiSignIn(l){let d=await u.sendMagicLink(l);if(!d.ok)throw new Error(d.error?.message??"Could not send sign-in link");return {ok:true}},async onGlobalLeaderboardOpen(){L.setGlobalLeaderboard(null,true);try{let l=ae(),d=await u.getPublicLeaderboard(50),P=(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(L.setGlobalLeaderboard(P,!1),l){let I=await u.getMyReputation(l);if(I.ok&&I.data){let V=I.data;V.reputation&&L.setTesterReputation(V.reputation);}}}catch{L.setGlobalLeaderboard([],false);}},async onCrossAppReportsOpen(){let l=ae();if(!l){L.setCrossAppReports([],false);return}try{let d=await u.getCrossAppReports(l),w=d.ok?d.data?.reports??[]:[];L.setCrossAppReports(w,!1);}catch{L.setCrossAppReports([],false);}},onTesterSignOut(){ne();},assistantEnabled:t.assistant?.enabled===true,...t.assistant?.label?{assistantLabel:t.assistant.label}:{},...t.assistant?.greeting?{assistantGreeting:t.assistant.greeting}:{},...t.assistant?.suggestions?{assistantSuggestions:t.assistant.suggestions}:{},async onAssistantAsk(l,d){let w=await u.askAssistant({message:l,threadId:d,context:a});if(!w.ok&&w.error?.code==="ASSISTANT_NEEDS_KEY")throw Object.assign(new Error(w.error.message),{code:"ASSISTANT_NEEDS_KEY"});return w.ok?w.data??null:null}}),Tn.then(l=>L.setBrandRef(l)),me();let uo=il();uo&&L.setCaptureMode(true),typeof document<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>L.mount()):L.mount());let lo=ae();lo&&H(lo).catch(()=>ne());let co=null,er=null,te=i.proactive;te&&(te.rageClick!==false||te.longTask!==false||te.apiCascade!==false||te.errorBoundary===true||te.pageDwell||te.firstSession)&&!uo&&typeof document<"u"&&(er=rl(te?.cooldown),co=el({onTrigger:(l,d)=>{if(typeof navigator<"u"&&!navigator.onLine){o.debug("Proactive trigger suppressed: offline",{type:l});return}if(!er.shouldShow(l)){o.debug("Proactive trigger suppressed by fatigue prevention",{type:l});return}o.info("Proactive trigger fired",{type:l,context:d}),F=l,Y("proactive:triggered",{type:l,context:d}),l==="first_session"?L.pulseTrigger?.():L.open();}},{rageClick:te?.rageClick,longTask:te?.longTask,apiCascade:te?.apiCascade,apiEndpoint:eo(i),errorBoundary:te?.errorBoundary,ignoreErrors:i.ignoreErrors,denyUrls:i.denyUrls,allowUrls:i.allowUrls,pageDwell:te?.pageDwell,firstSession:te?.firstSession,projectId:t.projectId}),o.debug("Proactive triggers enabled",{rageClick:te?.rageClick!==false,longTask:te?.longTask!==false,apiCascade:te?.apiCascade!==false,errorBoundary:te?.errorBoundary===true,pageDwell:!!te?.pageDwell,firstSession:!!te?.firstSession})),x.startAutoSync(u),x.flush(u).then(l=>{l.sent>0&&o.info("Synced offline reports",{sent:l.sent});});function An(l){if(W=true,ge=l.reporterNotificationsEnabled!==false,Jt=l.enabled===false?null:l.reporter??null,oo(),l.enabled===false){i=t,wm(e.projectId),me(),L.updateConfig(i.widget),Ar(),o.debug("Runtime SDK config disabled; using bootstrap config",{version:l.version});return}i=hu(i,l,t),me(),l.widget&&L.updateConfig(i.widget),ge?io():Ar(),o.debug("Applied runtime SDK config",{version:l.version});}if(gm(e)){let l=ym(e.projectId);l&&An(l),u.getSdkConfig(b==="on-demand"?{fresh:true}:void 0).then(d=>{d.ok&&d.data?(vm(e.projectId,d.data),An(d.data),d.data.enabled!==false&&E(d.data.journeys??null)):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");wl(),io(),bl(),o.info("Initialized",{projectId:e.projectId});async function wl(){if(i.widget?.outdatedBanner==="off")return;let l=Sm(et);l&&po(l);let d=await u.getLatestSdkVersion(et);!d.ok||!d.data||(xm(et,d.data),po(d.data));}function po(l){let d=l.latest,w=!!(d&&km(Re,d));if(!w&&!l.deprecated)return;let P=l.deprecationMessage??(w?`Update ${et} to ${d}.`:null);o.warn("Mushi SDK is outdated",{package:et,current:Re,latest:d,deprecated:l.deprecated,message:P}),Sa(i.widget?.outdatedBanner,!!i.debug,typeof location>"u"?void 0:location)&&L.setSdkFreshness({latest:d,current:Re,deprecated:l.deprecated,message:P});}async function Sl(l,d,w,P){let I=K=>({reportId:null,queuedOffline:false,failureKind:K}),V=y.check(d);if(!V.passed)return o.info("Report blocked by pre-filter",{reason:V.reason}),I("blocked");let Q=e.preFilter?.wasmClassifier;if(Q)try{let K=await Q.classify({description:d,category:l,url:typeof location<"u"?location.href:void 0,hasScreenshot:R!==null,hasSelectedElement:O!==null,hasNetworkErrors:m?.getEntries()?.some(Ee=>Ee.status>=400||!!Ee.error)??!1,hasConsoleErrors:f?.getEntries()?.some(Ee=>Ee.level==="error")??!1,proactiveTrigger:F??void 0});if(K.verdict==="block")return o.info("Report blocked by on-device classifier",{modelId:K.modelId,confidence:K.confidence,reason:K.reason}),I("blocked");o.debug("On-device classifier verdict",{...K});}catch(K){o.warn("On-device classifier threw \u2014 falling through to server",{error:K instanceof Error?K.message:String(K)});}if(F!==null&&e.sampleRate!==void 0&&e.sampleRate<1&&(e.sampleRate<=0||Math.random()>e.sampleRate))return o.debug("Report dropped by sampleRate",{sampleRate:e.sampleRate,trigger:F}),I("blocked");if(!k.tryConsume())return o.warn("Report throttled \u2014 rate limit exceeded"),I("throttled");let q=v.scrub(y.truncate(d)),z=e.sentry?Gi(e.sentry):void 0,Ve=await Es().catch(()=>null),ze=i.capture?.console===false?void 0:_(f?.getEntries()),Ir=i.capture?.network===false?void 0:m?.getEntries(),mo=C(U.getAll()),go=g(Object.keys(Ie).length>0?{...Ie}:void 0),bo=z?{...z,...z.breadcrumbs?{breadcrumbs:C(z.breadcrumbs)}:{},...z.tags?{tags:g(z.tags)}:{}}:void 0,Eo=R?await la(R).catch(()=>null):null,Mr=false;R&&!Eo&&(Mr=true,o.warn("Screenshot dropped \u2014 could not compress under wire budget"));let yo=Qn(),xl=await Ta(Ae),Be={id:ei(),projectId:e.projectId,category:l,...P?{userCategory:P}:{},description:q,userIntent:w,environment:yo,consoleLogs:ze,networkLogs:Ir,performanceMetrics:i.capture?.performance===false?void 0:S?.getMetrics(),timeline:Z.getEntries({consoleLogs:ze,networkLogs:Ir}),screenshotDataUrl:Eo??void 0,selectedElement:O??void 0,...ee?{replayEvents:ee.flush()}:{},metadata:{...Te,...xl??{},...G?{user:G}:{},...z?.release?{sentryRelease:z.release}:{}},sessionId:Rt(),reporterToken:re(r),...Ve?{fingerprintHash:Ve}:{},appVersion:dl(i,yo),sdkPackage:et,sdkVersion:Re,proactiveTrigger:F??void 0,...mo.length>0?{breadcrumbs:mo}:{},...go?{tags:go}:{},...bo?{sentryContext:bo}:{},sentryEventId:z?.eventId,sentryReplayId:z?.replayId,createdAt:new Date().toISOString()};if(U.add({category:"lifecycle",level:"info",message:`Mushi report submitting (${l})`,data:{reportId:Be.id,category:l}}),e.integrations?.custom){let K={addMetadata(Ee,Mn){Be.metadata[Ee]=Mn;},setCategory(Ee){Be.category=Ee;},setDescription(Ee){Be.description=Ee;}};e.integrations.custom(K);}let X=Be,vo=e.beforeSend??e.beforeSendFeedback;if(vo)try{let K=await Promise.race([Promise.resolve(vo(Be)),new Promise(Ee=>setTimeout(()=>Ee(Be),2e3))]);if(K===null)return o.info("Report dropped by beforeSend hook",{reportId:Be.id}),I("blocked");X=K;}catch(K){o.warn("beforeSend hook threw \u2014 sending unmodified report",{error:K instanceof Error?K.message:String(K)});}if(Y("report:submitted",{reportId:X.id}),typeof navigator<"u"&&!navigator.onLine)return await x.enqueue(X),o.info("Offline \u2014 report queued",{reportId:X.id}),Y("report:queued",{reportId:X.id}),{reportId:null,queuedOffline:true,failureKind:"offline"};let J=await u.submitReport(X);if(!J.ok&&J.error?.code==="PAYLOAD_TOO_LARGE"&&(Array.isArray(X.replayEvents)&&X.replayEvents.length>0&&(o.warn("Report too large \u2014 dropping replay buffer and retrying",{reportId:X.id}),X={...X,replayEvents:void 0},J=await u.submitReport(X)),!J.ok&&J.error?.code==="PAYLOAD_TOO_LARGE"&&X.screenshotDataUrl&&(o.warn("Report still too large \u2014 dropping screenshot and retrying",{reportId:X.id}),Mr=true,X={...X,screenshotDataUrl:void 0},J=await u.submitReport(X))),J.ok){if(o.info("Report sent",{reportId:J.data?.reportId}),Y("report:sent",{reportId:J.data?.reportId}),xi(r),no(),J.data?.cursorAgentId){let K=J.data;Y("report:dispatched",{reportId:K.reportId,agentId:K.cursorAgentId,fixId:K.fixId});}U.add({category:"lifecycle",level:"info",message:`Mushi report sent (${J.data?.reportId??Be.id})`}),Yt({action:"report_submit",metadata:{category:l,reportId:J.data?.reportId??Be.id}});try{e.sentry&&J.data?.reportId&&Yi(J.data.reportId);}catch{}}else {if(J.error?.code==="PAYLOAD_TOO_LARGE"||J.error?.code==="SERIALIZE_FAILED")return o.warn("Report exceeds size limit after degradation \u2014 dropping",{reportId:X.id,error:J.error}),Y("report:failed",{reportId:X.id,error:J.error}),U.add({category:"lifecycle",level:"error",message:`Mushi report dropped \u2014 payload too large (${X.id})`}),R=null,O=null,F=null,{reportId:null,queuedOffline:false,failureKind:"permanent",screenshotDropped:Mr};{let K=J.error?.code??"",Ee=K==="HTTP_429"||K.includes("RATE_LIMIT"),Mn=K==="HTTP_401"||K.includes("UNAUTHORIZED")||K.includes("INVALID_API_KEY")||K.includes("MISSING_API_KEY"),kl=K==="HTTP_403"||K.includes("QUOTA")||K.includes("FORBIDDEN")||K==="feature_not_in_plan";if(Mn||kl)return o.warn("Report rejected \u2014 credentials/quota",{reportId:X.id,error:J.error}),Y("report:failed",{reportId:X.id,error:J.error}),R=null,O=null,F=null,{reportId:null,queuedOffline:false,failureKind:"quota"};if(Ee)return o.warn("Report rate-limited \u2014 queued for retry",{reportId:X.id,error:J.error}),await x.enqueue(X),Y("report:failed",{reportId:X.id,error:J.error}),R=null,O=null,F=null,{reportId:null,queuedOffline:true,failureKind:"rate_limited"};o.warn("Report failed, queuing for retry",{reportId:X.id,error:J.error}),await x.enqueue(X),Y("report:failed",{reportId:X.id,error:J.error}),U.add({category:"lifecycle",level:"warning",message:`Mushi report queued for retry (${X.id})`});}}return R=null,O=null,F=null,J?.ok?{reportId:J.data?.reportId??Be.id,queuedOffline:false,screenshotDropped:Mr}:{reportId:null,queuedOffline:true,failureKind:"retrying"}}let In={report(l){L.open(l);},on(l,d){return _e.has(l)||_e.set(l,new Set),_e.get(l).add(d),()=>_e.get(l)?.delete(d)},setUser(l){G=l;},setMetadata(l,d){Te[l]=d;},setDiagnosticsProvider(l){Ae=l;},setScreen(l){Z.setScreen(l);},isOpen(){return L.getIsOpen()},open(){L.open();},openWith(l){L.open({category:l});},show(){L.showTrigger();},hide(){L.hideTrigger();},attachTo(l,d){return L.attachTo(l,d)},setTrigger(l){L.setTrigger(l);},openReporter(){L.openReporter();},close(){L.close();},updateConfig(l){An(l),l.enabled!==false&&E(l.journeys??null);},diagnose(){return bm({apiEndpoint:eo(i),widgetMounted:L.getIsMounted(),runtimeConfigLoaded:W,captureScreenshotAvailable:B!==null,captureNetworkIntercepting:m!==null,widgetDiagnostics:L.getWidgetDiagnostics()})},destroy(){co?.destroy(),er?.reset(),Hs(),L.destroy(),f?.destroy(),m?.destroy(),S?.destroy(),j?.deactivate(),Cu(),Mt?.(),Mt=null,N?.destroy(),N=null,Z.destroy(),gu(),ee?.destroy(),ee=null,x.stopAutoSync(),Ar(),c?.(),c=null,As(),U.clear(),_e.clear(),We=null,o.debug("Destroyed");},async captureEvent(l){if(!k.tryConsume())return o.warn("captureEvent throttled \u2014 rate limit exceeded"),null;let d=v.scrub(y.truncate(l.description)),w=l.category??"bug",P=e.sentry?Gi(e.sentry):void 0,I=C(U.getAll()),V=g(Object.keys(Ie).length===0&&!l.tags?void 0:{...Ie,...l.tags??{}}),Q=P?{...P,...P.breadcrumbs?{breadcrumbs:C(P.breadcrumbs)}:{},...P.tags?{tags:g(P.tags)}:{}}:void 0,ie=Qn(),q={id:ei(),projectId:e.projectId,category:w,description:d,environment:ie,timeline:Z.getEntries(),metadata:{...l.metadata??{},...G?{user:G}:{},...l.error?{error:l.error}:{},...l.severity?{severity:l.severity}:{},...l.component?{component:l.component}:{},...l.source?{source:l.source}:{source:"captureEvent"}},...I.length>0?{breadcrumbs:I}:{},...V&&Object.keys(V).length>0?{tags:V}:{},...Q?{sentryContext:Q}:{},sessionId:Rt(),reporterToken:re(r),appVersion:dl(i,ie),sdkPackage:et,sdkVersion:Re,sentryEventId:P?.eventId,sentryReplayId:P?.replayId,createdAt:new Date().toISOString()},z=q;if(i.beforeSendFeedback)try{let ze=await Promise.race([Promise.resolve(i.beforeSendFeedback(q)),new Promise(Ir=>setTimeout(()=>Ir(q),2e3))]);if(ze===null)return o.info("captureEvent dropped by beforeSendFeedback hook",{reportId:q.id}),null;z=ze;}catch(ze){o.warn("captureEvent beforeSendFeedback threw \u2014 sending unmodified report",{error:ze instanceof Error?ze.message:String(ze)});}if(Y("report:submitted",{reportId:z.id}),typeof navigator<"u"&&!navigator.onLine)return await x.enqueue(z),Y("report:queued",{reportId:z.id}),null;let Ve=await u.submitReport(z);if(Ve.ok){Y("report:sent",{reportId:Ve.data?.reportId});try{e.sentry&&Ve.data?.reportId&&Yi(Ve.data.reportId);}catch{}return Ve.data?.reportId??null}return await x.enqueue(z),Y("report:failed",{reportId:z.id,error:Ve.error}),null},async captureException(l,d){let w=js(l),P=typeof d?.metadata?.filename=="string"?d.metadata.filename:Xi(w.stack);if(fr({message:w.message,filename:P,ignoreErrors:i.ignoreErrors,denyUrls:i.denyUrls,allowUrls:i.allowUrls}))return null;U.add({category:"lifecycle",level:"error",message:`Mushi.captureException(${w.name}): ${w.message}`,...w.stack?{data:{stack:w.stack.slice(0,500)}}:{}});let I=d?.description?.trim()||`${w.name}: ${w.message}`||"Uncaught exception";return In.captureEvent({description:I,category:d?.category??"bug",severity:d?.severity??"high",...d?.component?{component:d.component}:{},...d?.tags?{tags:d.tags}:{},source:d?.source??"captureException",error:{name:w.name,message:w.message,...w.stack?{stack:w.stack}:{}},metadata:{...d?.metadata??{},...w.cause?{cause:w.cause}:{}}})},identify(l,d){let w=`${l}::${d?JSON.stringify(d):""}`;if(w!==be){if(be=w,G={id:l,...d?.email?{email:d.email}:{},...d?.name?{name:d.name}:{}},L.setIdentifiedUser(G.name||G.email?{name:G.name,email:G.email}:null),oo(),d)for(let[P,I]of Object.entries(d))P!=="email"&&P!=="name"&&(Te[`user.${P}`]=I);U.add({category:"lifecycle",level:"info",message:`Mushi.identify(${l})`}),Os(l,d??null),so(l,d?{email:d.email,name:d.name,provider:d.provider}:void 0);}},identifyWithToken(l){if(s=l&&typeof l=="string"?l:null,s){let d=ea(s);if(d?.sub){if(G?.id===d.sub){U.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken() refreshed"});return}let w=d.sub;Ht(w).then(P=>{G?.id===w&&ii(P);}).catch(()=>{}),G={id:d.sub,...d.email?{email:d.email}:{},...d.name?{name:d.name}:{}},L.setIdentifiedUser(G.name||G.email?{name:G.name,email:G.email}:null),so(G.id,{email:G.email,name:G.name});}U.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken()"});}else G=null,be=null,ii(null),L.setIdentifiedUser(null),U.add({category:"lifecycle",level:"info",message:"Mushi.identifyWithToken(null)"});},publishPageContext(l){a=l&&l.route?l:null;},openAssistant(){L.openAssistantTab();},addBreadcrumb(l){U.add(l);},getBreadcrumbs(){return U.getAll()},setTag(l,d){typeof l!="string"||l.length===0||(Ie[l]=d);},setTags(l){if(!(!l||typeof l!="object"))for(let[d,w]of Object.entries(l))typeof d=="string"&&d.length>0&&(Ie[d]=w);},clearTag(l){if(typeof l=="string"&&l.length>0){delete Ie[l];return}for(let d of Object.keys(Ie))delete Ie[d];},async getReputation(){if(!G?.id)return null;let l=await u.getMyPoints(G.id);return l.ok?{totalPoints:l.data.total_points??0,points30d:l.data.points_30d??0,reputation:1,confirmedBugs:0,totalReports:0}:null},async getTier(){return G?.id?Ru(G.id):null},recordActivity(l,d){i.rewards?.enabled&&Yt({action:l,metadata:d});},track(l,d){return Ft(l,d)},setConsent(l){Bs(l);},getAnonymousId(){return Ps()},pulseTrigger(){L.pulseTrigger?.();},async listMyReports(){let l=await u.listReporterReports(re(r));return l.ok?l.data?.reports??[]:[]},async listMyComments(l){let d=await u.listReporterComments(l,re(r));return d.ok?d.data?.comments??[]:[]},async replyToReport(l,d){let w=await u.replyToReporterReport(l,re(r),d);return w.ok?w.data?.comment??null:null},async submitFeedbackSignal(l,d,w){let P=await u.replyToReporterReport(l,re(r),w??"",d);return P.ok?P.data?.feedback??null:null},async reopenReport(l,d){let w=await u.reopenReporterReport(l,re(r),d);return w.ok?w.data?.outcome??null:null},openMyReports(){L.recorderOpenMyReports();},getReporterUpdates:Tr,async markReportRead(l){let d=await it.markReportRead(l,n());return d.ok?d.data?.unread_total??0:null},onReporterUpdate(l){return Xt.add(l),Tr(),()=>{Xt.delete(l);}},async getNotificationPrefs(){let l=await it.getPrefs(n());return l.ok?l.data??null:null},setNotificationPrefs:l=>it.setPrefs(n(),l),async subscribeReporterPush(){let l=i.notifications?.webPush,d=Jt?.vapidPublicKey??null;if(l&&!d){let w=await u.getSdkConfig();d=w.ok?w.data?.reporter?.vapidPublicKey??null:null;}return pu(it,n(),l?l.serviceWorkerPath:null,d)},async getHallOfFame(l=20){let d=await u.getHallOfFame(l);return d.ok?d.data?.data??[]:[]}};if(typeof globalThis<"u"&&(t.debug??false)&&fu(L),typeof window<"u"&&typeof localStorage<"u"){let l="mushi:last-run",d=null;try{let w=localStorage.getItem(l);d=w===null?null:w==="unfinished",localStorage.setItem(l,"unfinished");}catch{d=null;}try{window.addEventListener("pagehide",()=>{try{localStorage.setItem(l,"clean");}catch{}ss(),as();});}catch{}if(typeof t.onCrashedLastRun=="function")try{t.onCrashedLastRun(d);}catch(w){o.warn("onCrashedLastRun hook threw",{error:w instanceof Error?w.message:String(w)});}}let ho={on:()=>{},onReporterUpdate:()=>{},isOpen:false,getBreadcrumbs:[],captureEvent:null,captureException:null,getReputation:null,getTier:null,listMyReports:[],listMyComments:[],getHallOfFame:[],replyToReport:null,submitFeedbackSignal:null,reopenReport:null},fo=(l,d)=>{let w=d instanceof Error?d.message:String(d);o.debug(`Mushi.${l}() failed (swallowed)`,{error:w});try{U.add({category:"custom",level:"warning",message:`mushi.${l}() threw`,data:{error:w}});}catch{}};return (l=>new Proxy(l,{get(d,w,P){let I=Reflect.get(d,w,P);if(typeof I!="function")return I;let V=String(w),Q=()=>V==="diagnose"?to():V in ho?ho[V]:void 0;return (...ie)=>{try{let q=I.apply(d,ie);return q&&typeof q.then=="function"?q.catch(z=>(fo(V,z),Q())):q}catch(q){return fo(V,q),Q()}}}}))(In)}function eo(e){return e.apiEndpoint??ar}function gm(e){return e.runtimeConfig!==false}async function bm(e){let t=await Em(e.apiEndpoint);return {apiEndpointReachable:t.reachable,cspAllowsEndpoint:t.cspAllowed,widgetMounted:e.widgetMounted,shadowDomAvailable:typeof HTMLElement<"u"&&typeof HTMLElement.prototype.attachShadow=="function",dialogSupported:typeof HTMLDialogElement<"u",runtimeConfigLoaded:e.runtimeConfigLoaded,captureScreenshotAvailable:e.captureScreenshotAvailable,captureNetworkIntercepting:e.captureNetworkIntercepting,sdkVersion:Re,widgetHostPointerSafe:e.widgetDiagnostics?.widgetHostPointerSafe??false,widgetHostBounds:e.widgetDiagnostics?.widgetHostBounds??null,widgetSuppressed:e.widgetDiagnostics?.widgetSuppressed??false,bannerRendered:e.widgetDiagnostics?.bannerRendered??false,warnings:e.widgetDiagnostics?.warnings??[]}}async function to(){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:Re,widgetHostPointerSafe:false,widgetHostBounds:null,widgetSuppressed:false,bannerRendered:false}}async function Em(e){if(typeof fetch>"u")return {reachable:false,cspAllowed:false};let t=typeof AbortController<"u"?new AbortController:null,r=t?setTimeout(()=>t.abort(),3e3):null;try{return {reachable:(await fetch(`${e.replace(/\/$/,"")}/health`,{method:"GET",cache:"no-store",...t?{signal:t.signal}:{},[hr]:"diagnose"})).ok,cspAllowed:!0}}catch{return {reachable:false,cspAllowed:false}}finally{r&&clearTimeout(r);}}function ro(e){return `mushi:sdk-config:${e}`}function ml(e){return `mushi:sdk-version:${e}`}function ym(e){if(typeof localStorage>"u")return null;try{let t=localStorage.getItem(ro(e));return t?JSON.parse(t).config??null:null}catch{return null}}function vm(e,t){if(!(typeof localStorage>"u"))try{localStorage.setItem(ro(e),JSON.stringify({cachedAt:Date.now(),config:t}));}catch{}}function wm(e){if(!(typeof localStorage>"u"))try{localStorage.removeItem(ro(e));}catch{}}function Sm(e){if(typeof localStorage>"u")return null;try{let t=localStorage.getItem(ml(e));if(!t)return null;let r=JSON.parse(t);return !r.data||!r.cachedAt||Date.now()-r.cachedAt>864e5?null:r.data}catch{return null}}function xm(e,t){if(!(typeof localStorage>"u"))try{localStorage.setItem(ml(e),JSON.stringify({cachedAt:Date.now(),data:t}));}catch{}}function km(e,t){let r=pl(e),n=pl(t);for(let i=0;i<Math.max(r.length,n.length);i++){let o=r[i]??0,s=n[i]??0;if(o<s)return true;if(o>s)return false}return false}function pl(e){return e.split(/[.-]/).map(t=>Number.parseInt(t,10)).filter(t=>Number.isFinite(t))}function hl(){return {report:()=>{},on:()=>()=>{},setUser:()=>{},setMetadata:()=>{},setDiagnosticsProvider:()=>{},setScreen:()=>{},isOpen:()=>false,open:()=>{},close:()=>{},updateConfig:()=>{},diagnose:to,openWith:()=>{},show:()=>{},hide:()=>{},attachTo:()=>()=>{},setTrigger:()=>{},openReporter:()=>{},destroy:()=>{We=null;},captureEvent:async()=>null,captureException:async()=>null,identify:()=>{},identifyWithToken:()=>{},publishPageContext:()=>{},openAssistant:()=>{},addBreadcrumb:()=>{},getBreadcrumbs:()=>[],setTag:()=>{},setTags:()=>{},clearTag:()=>{},getReputation:async()=>null,getTier:async()=>null,recordActivity:()=>{},track:()=>false,setConsent:()=>{},getAnonymousId:()=>null,pulseTrigger:()=>{},listMyReports:async()=>[],listMyComments:async()=>[],replyToReport:async()=>null,submitFeedbackSignal:async()=>null,reopenReport:async()=>null,openMyReports:()=>{},getHallOfFame:async()=>[],getReporterUpdates:async()=>null,markReportRead:async()=>null,onReporterUpdate:()=>()=>{},getNotificationPrefs:async()=>null,setNotificationPrefs:async()=>({ok:false}),subscribeReporterPush:async()=>({ok:false,reason:"off"})}}function Rm(e){if(typeof window>"u")return ()=>{};let t=[];try{let r=i=>{e.add({category:"navigation",level:"info",message:`${i}: ${window.location.pathname}`,data:{url:window.location.href,kind:i}});},n=He({onPush:()=>r("pushState"),onReplace:()=>r("replaceState"),onPop:()=>r("popstate")});t.push(n);}catch{}try{let r=console.error,n=console.warn,i=function(...s){try{e.add({category:"console",level:"error",message:s.map(fl).join(" ")});}catch{}return r.apply(this,s)},o=function(...s){try{e.add({category:"console",level:"warning",message:s.map(fl).join(" ")});}catch{}return n.apply(this,s)};console.error=i,console.warn=o,t.push(()=>{console.error===i&&(console.error=r),console.warn===o&&(console.warn=n);});}catch{}try{let r=n=>{try{let i=n.target;if(!(i instanceof Element))return;let o=i,s=0;for(;o&&s<10;){let a=o.getAttribute("data-testid");if(a){let u=(o.textContent??"").trim().slice(0,80);e.add({category:"ui.click",level:"info",message:`clicked ${a}${u?` \u2014 ${u}`:""}`,data:{testid:a,tag:o.tagName.toLowerCase()}});return}o=o.parentElement,s++;}}catch{}};document.addEventListener("click",r,{passive:!0,capture:!0}),t.push(()=>document.removeEventListener("click",r,!0));}catch{}return ()=>{for(let r of t)try{r();}catch{}}}function fl(e){try{if(e instanceof Error)return `${e.name}: ${e.message}`;if(typeof e=="object"&&e!==null){let r=JSON.stringify(e);return r.length>200?`${r.slice(0,200)}\u2026`:r}let t=String(e);return t.length>200?`${t.slice(0,200)}\u2026`:t}catch{return `[${typeof e}]`}}var _m=["auto","banner","edge-tab","attach","manual","hidden"],Cm=["auto","light","dark","inherit"],Tm=["bottom-right","bottom-left","top-right","top-left"],Am=["neon","brand","subtle"],Im=["top","bottom"],Mm=/^(#[\da-f]{3}|#[\da-f]{6}|(rgba?|hsla?|oklch)\([\d\s.,%/+-]*(deg|turn|rad)?[\d\s.,%/+-]*\))$/i,Lm="#rgb, #rrggbb, rgb(), hsl() or oklch()";function Dm(e){try{ct({scope:"mushi",level:"warn",format:"pretty"}).warn(e);}catch{}}function gl(e,t=Dm){let r=e.project?.trim(),n=e.key?.trim();if(!r||!n)return null;let i=f=>{let m=e[f]?.trim();return m||void 0},o=f=>`data-${f.replace(/[A-Z]/g,m=>`-${m.toLowerCase()}`)}`,s=(f,m,S)=>{t(`Ignored ${o(f)}="${m.slice(0,60)}". Use ${S}.`);},a=(f,m)=>{let S=i(f);if(S===void 0)return;let B=S.toLowerCase();return m.includes(B)?B:s(f,S,`one of: ${m.join(", ")}`)},u=(f,m=[])=>{let S=i(f);if(S!==void 0)return Mm.test(S)||m.includes(S.toLowerCase())?S:s(f,S,`a colour: ${[Lm,...m].join(", ")}`)},c={},p=a("trigger",_m);p&&(c.trigger=p);let h=a("theme",Cm);h&&(c.theme=h);let b=a("position",Tm);b&&(c.position=b);let A=i("triggerText");A&&(c.triggerText=A);let T=u("accent");T&&(c.accent=T);let E=u("accentText",["black","white"]);E&&(c.accentText=E);let y=i("locale");if(y){let f=Fa(),m=y.toLowerCase();m==="auto"||f.includes(m.split(/[-_]/)[0])?c.locale=m==="auto"?"auto":y:s("locale",y,`one of: auto, ${f.join(", ")}`);}let x=i("hideOnRoutes");if(x){let f=x.split(",").map(m=>m.trim()).filter(Boolean);f.length?c.hideOnRoutes=f:s("hideOnRoutes",x,"comma-separated paths such as /admin/*, /checkout");}let k=a("bannerVariant",Am),v=a("bannerPosition",Im);(k||v)&&(c.bannerConfig={...k?{variant:k}:{},...v?{position:v}:{}});let C={projectId:r,apiKey:n},_=i("endpoint");_&&(/^https?:\/\/[^\s/]+/i.test(_)?C.apiEndpoint=_:s("endpoint",_,"a full http:// or https:// address"));let g=i("debug");return g==="true"?C.debug=true:g!==void 0&&g!=="false"&&s("debug",g,'"true" or "false"'),Object.keys(c).length>0&&(C.widget=c),C}function Pm(){let e=document.currentScript;if(e&&e.dataset&&e.dataset.project)return e;let t=Array.from(document.querySelectorAll("script[data-project][data-key]"));return t.length>0?t[t.length-1]:null}function $m(){if(typeof document>"u"||typeof window>"u")return;let e=window;if(e.__mushiLoaderInit)return;let t=Pm();if(!t)return;let r=gl(t.dataset);if(r){e.__mushiLoaderInit=true;try{_n.init(r);}catch{}}}$m();
99
99
  })();