1import{R as i,r as R,e as k,x as O,$ as V,j as h,M as Ne,C as Re,L as ne,p as se,a8 as Ze,s as X,D as Pe,E as je,m as Le,G as Se}from"../index.js";import{S as He}from"./index-44bf2282.js";/* empty css */import{L as Ie}from"./anything-llm-infinity-65574452.js";import{h as Oe}from"./moment-9ccd106d.js";import"./_commonjs-dynamic-modules-302442b1.js";const Ve=new Map([["bold",i.createElement(i.Fragment,null,i.createElement("path",{d:"M227,168a12,12,0,0,0-4.21-5.09C207.25,152.22,204,133.68,204,120c0-16.17,12.68-30.6,20.25-37.76a12,12,0,0,0,0-17.43C210.89,52.17,188.81,44,168,44a76.29,76.29,0,0,0-40,11.37,75.59,75.59,0,0,0-93.58,11A78.64,78.64,0,0,0,12,123.51,131,131,0,0,0,53.43,216,43.81,43.81,0,0,0,83.6,228h87.69a43.87,43.87,0,0,0,32.05-13.85,127.63,127.63,0,0,0,18.4-25.39c1.57-2.88,3-5.71,4.14-8.41C227.47,176.67,229.12,172.87,227,168Zm-41.23,29.82A19.78,19.78,0,0,1,171.29,204H83.6a19.85,19.85,0,0,1-13.7-5.42A107.18,107.18,0,0,1,36,122.88,54.49,54.49,0,0,1,51.5,83.28,50.86,50.86,0,0,1,88,68h.72A51.5,51.5,0,0,1,120.48,79.4a12,12,0,0,0,15,0A51.41,51.41,0,0,1,168,68a67.24,67.24,0,0,1,29.88,7.4C186.26,89.66,180,105.13,180,120c0,23.33,7.47,42.89,21.25,56.19A103.3,103.3,0,0,1,185.76,197.81ZM128.75,13A43.83,43.83,0,0,1,142.17,1.51a12,12,0,0,1,11.64,21,19.84,19.84,0,0,0-6.11,5.24A12,12,0,0,1,128.75,13Z"}))],["duotone",i.createElement(i.Fragment,null,i.createElement("path",{d:"M216,73.52Zm0,99.26c-16.79-11.53-24-30.87-24-52.78,0-18.3,11.68-34.81,24-46.48C204.53,62.66,185,56,168,56a63.72,63.72,0,0,0-40,14h0A63.71,63.71,0,0,0,88.88,56C52,55.5,23.06,86.3,24,123.19a119.62,119.62,0,0,0,37.65,84.12A32,32,0,0,0,83.6,216h87.7a31.75,31.75,0,0,0,23.26-10c15.85-17,21.44-33.2,21.44-33.2Z",opacity:"0.2"}),i.createElement("path",{d:"M223.3,169.59a8.07,8.07,0,0,0-2.8-3.4C203.53,154.53,200,134.64,200,120c0-17.67,13.47-33.06,21.5-40.67a8,8,0,0,0,0-11.62C208.82,55.74,187.82,48,168,48a72.23,72.23,0,0,0-40,12.13,71.56,71.56,0,0,0-90.71,9.09A74.63,74.63,0,0,0,16,123.4a127,127,0,0,0,40.14,89.73A39.8,39.8,0,0,0,83.59,224h87.68a39.84,39.84,0,0,0,29.12-12.57,125,125,0,0,0,17.82-24.6C225.23,174,224.33,172,223.3,169.59Zm-34.63,30.94a23.76,23.76,0,0,1-17.4,7.47H83.59a23.82,23.82,0,0,1-16.44-6.51A111.14,111.14,0,0,1,32,123,58.5,58.5,0,0,1,48.65,80.47,54.81,54.81,0,0,1,88,64h.78A55.45,55.45,0,0,1,123,76.28a8,8,0,0,0,10,0A55.39,55.39,0,0,1,168,64a70.64,70.64,0,0,1,36,10.35c-13,14.52-20,30.47-20,45.65,0,23.77,7.64,42.73,22.18,55.3A105.52,105.52,0,0,1,188.67,200.53ZM128.23,30A40,40,0,0,1,167,0h1a8,8,0,0,1,0,16h-1a24,24,0,0,0-23.24,18,8,8,0,1,1-15.5-4Z"}))],["fill",i.createElement(i.Fragment,null,i.createElement("path",{d:"M128.23,30A40,40,0,0,1,167,0h1a8,8,0,0,1,0,16h-1a24,24,0,0,0-23.24,18,8,8,0,1,1-15.5-4ZM223.3,169.59a8.07,8.07,0,0,0-2.8-3.4C203.53,154.53,200,134.64,200,120c0-17.67,13.47-33.06,21.5-40.67a8,8,0,0,0,0-11.62C208.82,55.74,187.82,48,168,48a72.23,72.23,0,0,0-40,12.13,71.56,71.56,0,0,0-90.71,9.09A74.63,74.63,0,0,0,16,123.4a127,127,0,0,0,40.14,89.73A39.8,39.8,0,0,0,83.59,224h87.68a39.84,39.84,0,0,0,29.12-12.57,125,125,0,0,0,17.82-24.6C225.23,174,224.33,172,223.3,169.59Z"}))],["light",i.createElement(i.Fragment,null,i.createElement("path",{d:"M219.4,167.84C201.71,155.69,198,135.12,198,120c0-18.42,13.86-34.29,22.12-42.12a6,6,0,0,0,0-8.71C208,57.7,187.07,50,168,50a70.23,70.23,0,0,0-40,12.55,69.6,69.6,0,0,0-89.31,8.08A72.63,72.63,0,0,0,18,123.35a125.11,125.11,0,0,0,39.53,88.33A37.85,37.85,0,0,0,83.6,222h87.7A37.83,37.83,0,0,0,199,210.07a122.6,122.6,0,0,0,17.54-24.2c6.55-12,5.77-13.75,5-15.48A6.07,6.07,0,0,0,219.4,167.84Zm-29.23,34A25.82,25.82,0,0,1,171.3,210H83.6A25.85,25.85,0,0,1,65.78,203,113.21,113.21,0,0,1,30,123a60.55,60.55,0,0,1,17.21-44A56.82,56.82,0,0,1,88,62h.81a57.35,57.35,0,0,1,35.44,12.71,6,6,0,0,0,7.5,0A57.39,57.39,0,0,1,168,62c13.89,0,28.81,4.68,39.11,12-9.44,10.14-21.1,26.59-21.1,46,0,23.78,7.81,42.6,22.66,54.77A107.33,107.33,0,0,1,190.17,201.89Zm-60-171.39A38,38,0,0,1,167,2h1a6,6,0,0,1,0,12h-1a26,26,0,0,0-25.18,19.5,6,6,0,1,1-11.62-3Z"}))],["regular",i.createElement(i.Fragment,null,i.createElement("path",{d:"M223.3,169.59a8.07,8.07,0,0,0-2.8-3.4C203.53,154.53,200,134.64,200,120c0-17.67,13.47-33.06,21.5-40.67a8,8,0,0,0,0-11.62C208.82,55.74,187.82,48,168,48a72.2,72.2,0,0,0-40,12.13,71.56,71.56,0,0,0-90.71,9.09A74.63,74.63,0,0,0,16,123.4a127.
106,127.06,0,0,0,40.14,89.73A39.8,39.8,0,0,0,83.59,224h87.68a39.84,39.84,0,0,0,29.12-12.57,125,125,0,0,0,17.82-24.6C225.23,174,224.33,172,223.3,169.59Zm-34.63,30.94a23.76,23.76,0,0,1-17.4,7.47H83.59a23.82,23.82,0,0,1-16.44-6.51A111.14,111.14,0,0,1,32,123,58.5,58.5,0,0,1,48.65,80.47,54.81,54.81,0,0,1,88,64h.78A55.45,55.45,0,0,1,123,76.28a8,8,0,0,0,10,0A55.44,55.44,0,0,1,168,64a70.64,70.64,0,0,1,36,10.35c-13,14.52-20,30.47-20,45.65,0,23.77,7.64,42.73,22.18,55.3A105.82,105.82,0,0,1,188.67,200.53ZM128.23,30A40,40,0,0,1,167,0h1a8,8,0,0,1,0,16h-1a24,24,0,0,0-23.24,18,8,8,0,1,1-15.5-4Z"}))],["thin",i.createElement(i.Fragment,null,i.createElement("path",{d:"M218.27,169.49C199.86,156.84,196,135.6,196,120c0-19.17,14.25-35.53,22.75-43.57a4,4,0,0,0,0-5.81C207,59.48,186.59,52,168,52a68.3,68.3,0,0,0-40,13,67.61,67.61,0,0,0-87.88,7A70.65,70.65,0,0,0,20,123.3a123.11,123.11,0,0,0,38.9,86.92A35.81,35.81,0,0,0,83.6,220h87.7a35.84,35.84,0,0,0,26.19-11.3,119.93,119.93,0,0,0,17.24-23.79c6.08-11.1,5.42-12.62,4.94-13.72A4,4,0,0,0,218.27,169.49Zm-26.64,33.77A27.83,27.83,0,0,1,171.3,212H83.6a27.84,27.84,0,0,1-19.19-7.6A115.15,115.15,0,0,1,28,123.09,62.55,62.55,0,0,1,45.81,77.66,58.78,58.78,0,0,1,88,60h.84a59.37,59.37,0,0,1,36.66,13.15,4,4,0,0,0,5,0A59.35,59.35,0,0,1,168,60c15.12,0,31.45,5.41,42.11,13.73C200.68,83.42,188,100.16,188,120c0,23.79,8,42.44,23.12,54.17A107.64,107.64,0,0,1,191.63,203.26ZM132.13,31A36,36,0,0,1,167,4h1a4,4,0,0,1,0,8h-1a28,28,0,0,0-27.12,21A4,4,0,0,1,136,36a3.87,3.87,0,0,1-1-.13A4,4,0,0,1,132.13,31Z"}))]]);var Fe=Object.defineProperty,De=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,K=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,J=(s,r,n)=>r in s?Fe(s,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[r]=n,Be=(s,r)=>{for(var n in r||(r={}))Te.call(r,n)&&J(s,n,r[n]);if(K)for(var n of K(r))$e.call(r,n)&&J(s,n,r[n]);return s},ke=(s,r)=>De(s,ze(r));const oe=R.forwardRef((s,r)=>i.createElement(k,ke(Be({ref:r},s),{weights:Ve})));oe.displayName="AppleLogo";const Ue=new Map([["bold",i.createElement(i.Fragment,null,i.createElement("path",{d:"M197.35,51.62l11.14-11.13a12,12,0,1,0-17-17L179.34,35.69a91.84,91.84,0,0,0-102.68,0L64.49,23.51a12,12,0,0,0-17,17L58.65,51.62A91.58,91.58,0,0,0,36,112v40a92,92,0,0,0,184,0V112A91.58,91.58,0,0,0,197.35,51.62ZM196,112v4H60v-4a68,68,0,0,1,136,0ZM128,220a68.07,68.07,0,0,1-68-68V140H196v12A68.07,68.07,0,0,1,128,220ZM140,88a16,16,0,1,1,16,16A16,16,0,0,1,140,88ZM84,88a16,16,0,1,1,16,16A16,16,0,0,1,84,88Z"}))],["duotone",i.createElement(i.Fragment,null,i.createElement("path",{d:"M208,128v24a80,80,0,0,1-160,0V128Z",opacity:"0.2"}),i.createElement("path",{d:"M191.83,51.48l13.83-13.82a8,8,0,0,0-11.32-11.32L179.79,40.9a87.81,87.81,0,0,0-103.58,0L61.66,26.34A8,8,0,0,0,50.34,37.66L64.17,51.48A87.72,87.72,0,0,0,40,112v40a88,88,0,0,0,176,0V112A87.72,87.72,0,0,0,191.83,51.48ZM128,40a72.08,72.08,0,0,1,72,72v8H56v-8A72.08,72.08,0,0,1,128,40Zm0,184a72.08,72.08,0,0,1-72-72V136H200v16A72.08,72.08,0,0,1,128,224ZM144,92a12,12,0,1,1,12,12A12,12,0,0,1,144,92ZM88,92a12,12,0,1,1,12,12A12,12,0,0,1,88,92Z"}))],["fill",i.createElement(i.Fragment,null,i.createElement("path",{d:"M191.83,51.48l13.83-13.82a8,8,0,0,0-11.32-11.32L179.79,40.9a87.81,87.81,0,0,0-103.58,0L61.66,26.34A8,8,0,0,0,50.34,37.66L64.17,51.48A87.72,87.72,0,0,0,40,112v40a88,88,0,0,0,176,0V112A87.72,87.72,0,0,0,191.83,51.48ZM128,40a72.08,72.08,0,0,1,72,72v8H56v-8A72.08,72.08,0,0,1,128,40Zm16,52a12,12,0,1,1,12,12A12,12,0,0,1,144,92ZM88,92a12,12,0,1,1,12,12A12,12,0,0,1,88,92Z"}))],["light",i.createElement(i.Fragment,null,i.createElement("path",{d:"M189,51.47l15.22-15.23a6,6,0,1,0-8.48-8.48L180,43.54A85.76,85.76,0,0,0,76,43.54L60.24,27.76a6,6,0,0,0-8.48,8.48L67,51.47A85.7,85.7,0,0,0,42,112v40a86,86,0,0,0,172,0V112A85.7,85.7,0,0,0,189,51.47ZM128,38a74.09,74.09,0,0,1,74,74v10H54V112A74.09,74.09,0,0,1,128,38Zm0,188a74.09,74.09,0,0,1-74-74V134H202v18A74.09,74.09,0,0,1,128,226ZM146,92a10,10,0,1,1,10,10A10,10,0,0,1,146,92ZM90,92a10,10,0,1,1,10,10A10,10,0,0,1,90,92Z"}))],["regular",i.createElement(i.Fragment,null,i.createElement("path",{d:"M191.83,51.48l13.83-13.82a8,8,0,0,0-11.32-11.32L179.79,40.9a87.81,87.81,0,0,0-103.58,0L61.66,26.34A8,8,0,0,0,50.34,37.66L64.17,51.48A87.72,87.72,0,0,0,40,112v40a88,88,0,0,0,176,0V112A87.72,87.72,0,0,0,191.83,51.48ZM128,40a72.08,72.08,0,0,1,72,72v8H56v-8A72.08,72.08,0,0,1,128,40Zm0,184a72.08,72.08,0,0,1-72-72V136H200v16A72.08,72.08,0,0,1,128,224ZM144,92a12,12,0,1,1,12,12A12,12,0,0,1,144,92ZM88,92a12,12,0,1,1,12,12A12,12,0,0,1,88,92Z"}))],["thin",i.createElement(i.Fragment,null,i.createElement("path",{d:"M186.17,51.49l16.66-16.66a4,4,0,1,0-5.66-5.66l-17,17a83.72,83.72,0,0,0-104.26,0l-17-17a4,4,0,0,0-5.66,5.66L69.83,51.49A83.75,83.75,0,0,0,44,112v40a84,84,0,0,0,168,0V112A83.75,83.75,0,0,0,186.17,51.49ZM128,36a76.08,76.08,0,0,1,76,76v12H52V112A76.08,76.08,0,0,1,128,36Zm0,192a
176.08,76.08,0,0,1-76-76V132H204v20A76.08,76.08,0,0,1,128,228ZM148,92a8,8,0,1,1,8,8A8,8,0,0,1,148,92ZM92,92a8,8,0,1,1,8,8A8,8,0,0,1,92,92Z"}))]]);var _e=Object.defineProperty,Qe=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,q=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,ee=(s,r,n)=>r in s?_e(s,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[r]=n,Xe=(s,r)=>{for(var n in r||(r={}))Ye.call(r,n)&&ee(s,n,r[n]);if(q)for(var n of q(r))We.call(r,n)&&ee(s,n,r[n]);return s},Ke=(s,r)=>Qe(s,Ge(r));const le=R.forwardRef((s,r)=>i.createElement(k,Ke(Xe({ref:r},s),{weights:Ue})));le.displayName="BugDroid";const Je=new Map([["bold",i.createElement(i.Fragment,null,i.createElement("path",{d:"M100,36H56A20,20,0,0,0,36,56v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,100,36ZM96,96H60V60H96Zm4,40H56a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,100,136Zm-4,60H60V160H96ZM200,36H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,60H160V60h36Zm-60,76V148a12,12,0,0,1,24,0v24a12,12,0,0,1-24,0Zm84-8a12,12,0,0,1-12,12H196v32a12,12,0,0,1-12,12H148a12,12,0,0,1,0-24h24V148a12,12,0,0,1,24,0v4h12A12,12,0,0,1,220,164Z"}))],["duotone",i.createElement(i.Fragment,null,i.createElement("path",{d:"M112,56v48a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h48A8,8,0,0,1,112,56Zm-8,88H56a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,104,144Zm96-96H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48Z",opacity:"0.2"}),i.createElement("path",{d:"M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm0,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48ZM200,40H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-64,72V144a8,8,0,0,1,16,0v32a8,8,0,0,1-16,0Zm80-16a8,8,0,0,1-8,8H184v40a8,8,0,0,1-8,8H144a8,8,0,0,1,0-16h24V144a8,8,0,0,1,16,0v8h24A8,8,0,0,1,216,160Zm0,32v16a8,8,0,0,1-16,0V192a8,8,0,0,1,16,0Z"}))],["fill",i.createElement(i.Fragment,null,i.createElement("path",{d:"M120,56v48a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40h48A16,16,0,0,1,120,56Zm-16,80H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm96-96H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40ZM144,184a8,8,0,0,0,8-8V144a8,8,0,0,0-16,0v32A8,8,0,0,0,144,184Zm64-32H184v-8a8,8,0,0,0-16,0v56H144a8,8,0,0,0,0,16h32a8,8,0,0,0,8-8V168h24a8,8,0,0,0,0-16Zm0,32a8,8,0,0,0-8,8v16a8,8,0,0,0,16,0V192A8,8,0,0,0,208,184Z"}))],["light",i.createElement(i.Fragment,null,i.createElement("path",{d:"M104,42H56A14,14,0,0,0,42,56v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,104,42Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-2,34H56a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,104,138Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2ZM200,42H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-64,72V144a6,6,0,0,1,12,0v32a6,6,0,0,1-12,0Zm76-16a6,6,0,0,1-6,6H182v42a6,6,0,0,1-6,6H144a6,6,0,0,1,0-12h26V144a6,6,0,0,1,12,0v10h26A6,6,0,0,1,214,160Zm0,32v16a6,6,0,0,1-12,0V192a6,6,0,0,1,12,0Z"}))],["regular",i.createElement(i.Fragment,null,i.createElement("path",{d:"M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm0,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48ZM200,40H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-64,72V144a8,8,0,0,1,16,0v32a8,8,0,0,1-16,0Zm80-16a8,8,0,0,1-8,8H184v40a8,8,0,0,1-8,8H144a8,8,0,0,1,0-16h24V144a8,8,0,0,1,16,0v8h24A8,8,0,0,1,216,160Zm0,32v16a8,8,0,0,1-16,0V192a8,8,0,0,1,16,0Z"}))],["thin",i.createElement(i.Fragment,null,i.createElement("path",{d:"M104,44H
156A12,12,0,0,0,44,56v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,104,44Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm-4,36H56a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,104,140Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4ZM200,44H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm-64,72V144a4,4,0,0,1,8,0v32a4,4,0,0,1-8,0Zm72-16a4,4,0,0,1-4,4H180v44a4,4,0,0,1-4,4H144a4,4,0,0,1,0-8h28V144a4,4,0,0,1,8,0v12h28A4,4,0,0,1,212,160Zm0,32v16a4,4,0,0,1-8,0V192a4,4,0,0,1,8,0Z"}))]]);var qe=Object.defineProperty,e0=Object.defineProperties,t0=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,a0=Object.prototype.hasOwnProperty,r0=Object.prototype.propertyIsEnumerable,ae=(s,r,n)=>r in s?qe(s,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[r]=n,n0=(s,r)=>{for(var n in r||(r={}))a0.call(r,n)&&ae(s,n,r[n]);if(te)for(var n of te(r))r0.call(r,n)&&ae(s,n,r[n]);return s},s0=(s,r)=>e0(s,t0(r));const ie=R.forwardRef((s,r)=>i.createElement(k,s0(n0({ref:r},s),{weights:Je})));
1ie.displayName="QrCode";const F={getConnectionInfo:async function(){return await fetch(`${O}/mobile/connect-info`,{headers:V()}).then(s=>s.json()).catch(()=>!1)},getDevices:async function(){return await fetch(`${O}/mobile/devices`,{headers:V()}).then(s=>s.json()).then(s=>s.devices||[]).catch(()=>[])},deleteDevice:async function(s){return await fetch(`${O}/mobile/${s}`,{method:"DELETE",headers:V()}).then(r=>r.json()).catch(()=>!1)},updateDevice:async function(s,r={}){return await fetch(`${O}/mobile/update/${s}`,{method:"POST",body:JSON.stringify(r),headers:V()}).then(n=>n.json()).catch(()=>!1)}},o0="/bg.png";var l0=Object.defineProperty,D=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,re=(s,r,n)=>r in s?l0(s,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[r]=n,$=(s,r)=>{for(var n in r||(r={}))ce.call(r,n)&&re(s,n,r[n]);if(D)for(var n of D(r))he.call(r,n)&&re(s,n,r[n]);return s},B=(s,r)=>{var n={};for(var d in s)ce.call(s,d)&&r.indexOf(d)<0&&(n[d]=s[d]);if(s!=null&&D)for(var d of D(s))r.indexOf(d)<0&&he.call(s,d)&&(n[d]=s[d]);return n};/** 2 * @license QR Code generator library (TypeScript) 3 * Copyright (c) Project Nayuki. 4 * SPDX-License-Identifier: MIT 5 */var j;(s=>{const r=class A{constructor(e,t,a,o){if(this.version=e,this.errorCorrectionLevel=t,this.modules=[],this.isFunction=[],e<A.MIN_VERSION||e>A.MAX_VERSION)throw new RangeError("Version value out of range");if(o<-1||o>7)throw new RangeError("Mask value out of range");this.size=e*4+17;let l=[];for(let c=0;c<this.size;c++)l.push(!1);for(let c=0;c<this.size;c++)this.modules.push(l.slice()),this.isFunction.push(l.slice());this.drawFunctionPatterns();const m=this.addEccAndInterleave(a);if(this.drawCodewords(m),o==-1){let c=1e9;for(let v=0;v<8;v++){this.applyMask(v),this.drawFormatBits(v);const f=this.getPenaltyScore();f<c&&(o=v,c=f),this.applyMask(v)}}p(0<=o&&o<=7),this.mask=o,this.applyMask(o),this.drawFormatBits(o),this.isFunction=[]}static encodeText(e,t){const a=s.QrSegment.makeSegments(e);return A.encodeSegments(a,t)}static encodeBinary(e,t){const a=s.QrSegment.makeBytes(e);return A.encodeSegments([a],t)}static encodeSegments(e,t,a=1,o=40,l=-1,m=!0){if(!(A.MIN_VERSION<=a&&a<=o&&o<=A.MAX_VERSION)||l<-1||l>7)throw new RangeError("Invalid value");let c,v;for(c=a;;c++){const g=A.getNumDataCodewords(c,t)*8,M=E.getTotalBits(e,c);if(M<=g){v=M;break}if(c>=o)throw new RangeError("Data too long")}for(const g of[A.Ecc.MEDIUM,A.Ecc.QUARTILE,A.Ecc.HIGH])m&&v<=A.getNumDataCodewords(c,g)*8&&(t=g);let f=[];for(const g of e){n(g.mode.modeBits,4,f),n(g.numChars,g.mode.numCharCountBits(c),f);for(const M of g.getData())f.push(M)}p(f.length==v);const y=A.getNumDataCodewords(c,t)*8;p(f.length<=y),n(0,Math.min(4,y-f.length),f),n(0,(8-f.length%8)%8,f),p(f.length%8==0);for(let g=236;f.length<y;g^=253)n(g,8,f);let b=[];for(;b.length*8<f.length;)b.push(0);return f.forEach((g,M)=>b[M>>>3]|=g<<7-(M&7)),new A(c,t,b,l)}getModule(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}getModules(){return this.modules}drawFunctionPatterns(){for(let a=0;a<this.size;a++)this.setFunctionModule(6,a,a%2==0),this.setFunctionModule(a,6,a%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const e=this.getAlignmentPatternPositions(),t=e.length;for(let a=0;a<t;a++)for(let o=0;o<t;o++)a==0&&o==0||a==0&&o==t-1||a==t-1&&o==0||this.drawAlignmentPattern(e[a],e[o]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(e){const t=this.errorCorrectionLevel.formatBits<<3|e;let a=t;for(let l=0;l<10;l++)a=a<<1^(a>>>9)*1335;const o=(t<<10|a)^21522;p(o>>>15==0);for(let l=0;l<=5;l++)this.setFunctionModule(8,l,d(o,l));this.setFunctionModule(8,7,d(o,6)),this.setFunctionModule(8,8,d(o,7)),this.setFunctionModule(7,8,d(o,8));for(let l=9;l<15;l++)this.setFunctionModule(14-l,8,d(o,l));for(let l=0;l<8;l++)this.setFunctionModule(this.size-1-l,8,d(o,l));for(let l=8;l<15;l++)this.setFunctionModule(8,this.size-15+l,d(o,l));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let a=0;a<12;a++)e=e<<1^(e>>>11)*7973;const t=this.version<<12|e;p(t>>>18==0);for(let a=0;a<18;a++){const o=d(t,a),l=this.size-11+a%3,m=Math.floor(a/3);this.setFunctionModule(l,m,o),this.setFunctionModule(m,l,o)}}drawFinderPattern(e,t){for(let a=-4;a<=4;a++)for(let o=-4;o<=4;
5o++){const l=Math.max(Math.abs(o),Math.abs(a)),m=e+o,c=t+a;0<=m&&m<this.size&&0<=c&&c<this.size&&this.setFunctionModule(m,c,l!=2&&l!=4)}}drawAlignmentPattern(e,t){for(let a=-2;a<=2;a++)for(let o=-2;o<=2;o++)this.setFunctionModule(e+o,t+a,Math.max(Math.abs(o),Math.abs(a))!=1)}setFunctionModule(e,t,a){this.modules[t][e]=a,this.isFunction[t][e]=!0}addEccAndInterleave(e){const t=this.version,a=this.errorCorrectionLevel;if(e.length!=A.getNumDataCodewords(t,a))throw new RangeError("Invalid argument");const o=A.NUM_ERROR_CORRECTION_BLOCKS[a.ordinal][t],l=A.ECC_CODEWORDS_PER_BLOCK[a.ordinal][t],m=Math.floor(A.getNumRawDataModules(t)/8),c=o-m%o,v=Math.floor(m/o);let f=[];const y=A.reedSolomonComputeDivisor(l);for(let g=0,M=0;g<o;g++){let C=e.slice(M,M+v-l+(g<c?0:1));M+=C.length;const I=A.reedSolomonComputeRemainder(C,y);g<c&&C.push(0),f.push(C.concat(I))}let b=[];for(let g=0;g<f[0].length;g++)f.forEach((M,C)=>{(g!=v-l||C>=c)&&b.push(M[g])});return p(b.length==m),b}drawCodewords(e){if(e.length!=Math.floor(A.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let t=0;for(let a=this.size-1;a>=1;a-=2){a==6&&(a=5);for(let o=0;o<this.size;o++)for(let l=0;l<2;l++){const m=a-l,v=(a+1&2)==0?this.size-1-o:o;!this.isFunction[v][m]&&t<e.length*8&&(this.modules[v][m]=d(e[t>>>3],7-(t&7)),t++)}}p(t==e.length*8)}applyMask(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(let t=0;t<this.size;t++)for(let a=0;a<this.size;a++){let o;switch(e){case 0:o=(a+t)%2==0;break;case 1:o=t%2==0;break;case 2:o=a%3==0;break;case 3:o=(a+t)%3==0;break;case 4:o=(Math.floor(a/3)+Math.floor(t/2))%2==0;break;case 5:o=a*t%2+a*t%3==0;break;case 6:o=(a*t%2+a*t%3)%2==0;break;case 7:o=((a+t)%2+a*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][a]&&o&&(this.modules[t][a]=!this.modules[t][a])}}getPenaltyScore(){let e=0;for(let l=0;l<this.size;l++){let m=!1,c=0,v=[0,0,0,0,0,0,0];for(let f=0;f<this.size;f++)this.modules[l][f]==m?(c++,c==5?e+=A.PENALTY_N1:c>5&&e++):(this.finderPenaltyAddHistory(c,v),m||(e+=this.finderPenaltyCountPatterns(v)*A.PENALTY_N3),m=this.modules[l][f],c=1);e+=this.finderPenaltyTerminateAndCount(m,c,v)*A.PENALTY_N3}for(let l=0;l<this.size;l++){let m=!1,c=0,v=[0,0,0,0,0,0,0];for(let f=0;f<this.size;f++)this.modules[f][l]==m?(c++,c==5?e+=A.PENALTY_N1:c>5&&e++):(this.finderPenaltyAddHistory(c,v),m||(e+=this.finderPenaltyCountPatterns(v)*A.PENALTY_N3),m=this.modules[f][l],c=1);e+=this.finderPenaltyTerminateAndCount(m,c,v)*A.PENALTY_N3}for(let l=0;l<this.size-1;l++)for(let m=0;m<this.size-1;m++){const c=this.modules[l][m];c==this.modules[l][m+1]&&c==this.modules[l+1][m]&&c==this.modules[l+1][m+1]&&(e+=A.PENALTY_N2)}let t=0;for(const l of this.modules)t=l.reduce((m,c)=>m+(c?1:0),t);const a=this.size*this.size,o=Math.ceil(Math.abs(t*20-a*10)/a)-1;return p(0<=o&&o<=9),e+=o*A.PENALTY_N4,p(0<=e&&e<=2568888),e}getAlignmentPatternPositions(){if(this.version==1)return[];{const e=Math.floor(this.version/7)+2,t=this.version==32?26:Math.ceil((this.version*4+4)/(e*2-2))*2;let a=[6];for(let o=this.size-7;a.length<e;o-=t)a.splice(1,0,o);return a}}static getNumRawDataModules(e){if(e<A.MIN_VERSION||e>A.MAX_VERSION)throw new RangeError("Version number out of range");let t=(16*e+128)*e+64;if(e>=2){const a=Math.floor(e/7)+2;t-=(25*a-10)*a-55,e>=7&&(t-=36)}return p(208<=t&&t<=29648),t}static getNumDataCodewords(e,t){return Math.floor(A.getNumRawDataModules(e)/8)-A.ECC_CODEWORDS_PER_BLOCK[t.ordinal][e]*A.NUM_ERROR_CORRECTION_BLOCKS[t.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw new RangeError("Degree out of range");let t=[];for(let o=0;o<e-1;o++)t.push(0);t.push(1);let a=1;for(let o=0;o<e;o++){for(let l=0;l<t.length;l++)t[l]=A.reedSolomonMultiply(t[l],a),l+1<t.length&&(t[l]^=t[l+1]);a=A.reedSolomonMultiply(a,2)}return t}static reedSolomonComputeRemainder(e,t){let a=t.map(o=>0);for(const o of e){const l=o^a.shift();a.push(0),t.forEach((m,c)=>a[c]^=A.reedSolomonMultiply(m,l))}return a}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw new RangeError("Byte out of range");let a=0;for(let o=7;o>=0;o--)a=a<<1^(a>>>7)*285,a^=(t>>>o&1)*e;return p(a>>>8==0),a}finderPenaltyCountPatterns(e){const t=e[1];p(t<=this.size*3);const a=t>0&&e[2]==t&&e[3]==t*3&&e[4]==t&&e[5]==t;return(a&&e[0]>=t*4&&e[6]>=t?1:0)+(a&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,a){return e&&(this.finderPenaltyAddHistory(t,a),t=0),t+=this.size,this.finderPenaltyAddHistory(t,a),this.finderPenaltyCountPatterns(a)}finderPenaltyAddHistory(e,t){t[0]==0&&(e+=this.size),t.pop(),t.unshift(e)}};r.MIN_VERSION=1,r.MAX_VERSION=40,r.PENALTY_N1=3,r.PENALTY_N2=3,r.PENALTY_N3=40,r.PENALTY_N4=10,r.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],r.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],s.QrCode=r;function n(w,e,t){if(e<0||e>31||w>>>e)throw new RangeError("Value out of range");for(let a=e-1;a>=0;a--)t.push(w>>>a&1)}function d(w,e){return(w>>>e&1)!=0}function p(w){if(!w)throw new Error("Assertion error")}const u=class x{constructor(e,t,a){if(this.mode=e,this.numChars=t,this.bitData=a,t<0)throw new RangeError("Invalid argument");this.bitData=a.slice()}static makeBytes(e){let t=[];for(const a of e)n(a,8,t);return new x(x.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!x.isNumeric(e))throw new RangeError("String contains
5non-numeric characters");let t=[];for(let a=0;a<e.length;){const o=Math.min(e.length-a,3);n(parseInt(e.substring(a,a+o),10),o*3+1,t),a+=o}return new x(x.Mode.NUMERIC,e.length,t)}static makeAlphanumeric(e){if(!x.isAlphanumeric(e))throw new RangeError("String contains unencodable characters in alphanumeric mode");let t=[],a;for(a=0;a+2<=e.length;a+=2){let o=x.ALPHANUMERIC_CHARSET.indexOf(e.charAt(a))*45;o+=x.ALPHANUMERIC_CHARSET.indexOf(e.charAt(a+1)),n(o,11,t)}return a<e.length&&n(x.ALPHANUMERIC_CHARSET.indexOf(e.charAt(a)),6,t),new x(x.Mode.ALPHANUMERIC,e.length,t)}static makeSegments(e){return e==""?[]:x.isNumeric(e)?[x.makeNumeric(e)]:x.isAlphanumeric(e)?[x.makeAlphanumeric(e)]:[x.makeBytes(x.toUtf8ByteArray(e))]}static makeEci(e){let t=[];if(e<0)throw new RangeError("ECI assignment value out of range");if(e<128)n(e,8,t);else if(e<16384)n(2,2,t),n(e,14,t);else if(e<1e6)n(6,3,t),n(e,21,t);else throw new RangeError("ECI assignment value out of range");return new x(x.Mode.ECI,0,t)}static isNumeric(e){return x.NUMERIC_REGEX.test(e)}static isAlphanumeric(e){return x.ALPHANUMERIC_REGEX.test(e)}getData(){return this.bitData.slice()}static getTotalBits(e,t){let a=0;for(const o of e){const l=o.mode.numCharCountBits(t);if(o.numChars>=1<<l)return 1/0;a+=4+l+o.bitData.length}return a}static toUtf8ByteArray(e){e=encodeURI(e);let t=[];for(let a=0;a<e.length;a++)e.charAt(a)!="%"?t.push(e.charCodeAt(a)):(t.push(parseInt(e.substring(a+1,a+3),16)),a+=2);return t}};u.NUMERIC_REGEX=/^[0-9]*$/,u.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,u.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let E=u;s.QrSegment=u})(j||(j={}));(s=>{(r=>{const n=class{constructor(p,u){this.ordinal=p,this.formatBits=u}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),r.Ecc=n})(s.QrCode||(s.QrCode={}))})(j||(j={}));(s=>{(r=>{const n=class{constructor(p,u){this.modeBits=p,this.numBitsCharCount=u}numCharCountBits(p){return this.numBitsCharCount[Math.floor((p+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),r.Mode=n})(s.QrSegment||(s.QrSegment={}))})(j||(j={}));var L=j;/** 6 * @license qrcode.react 7 * Copyright (c) Paul O'Shannessy 8 * SPDX-License-Identifier: ISC 9 */var i0={L:L.QrCode.Ecc.LOW,M:L.QrCode.Ecc.MEDIUM,Q:L.QrCode.Ecc.QUARTILE,H:L.QrCode.Ecc.HIGH},de=128,ue="L",me="#FFFFFF",fe="#000000",pe=!1,ge=1,c0=4,h0=0,d0=.1;function ve(s,r=0){const n=[];return s.forEach(function(d,p){let u=null;d.forEach(function(E,w){if(!E&&u!==null){n.push(`M${u+r} ${p+r}h${w-u}v1H${u+r}z`),u=null;return}if(w===d.length-1){if(!E)return;u===null?n.push(`M${w+r},${p+r} h1v1H${w+r}z`):n.push(`M${u+r},${p+r} h${w+1-u}v1H${u+r}z`);return}E&&u===null&&(u=w)})}),n.join("")}function Ae(s,r){return s.slice().map((n,d)=>d<r.y||d>=r.y+r.h?n:n.map((p,u)=>u<r.x||u>=r.x+r.w?p:!1))}function u0(s,r,n,d){if(d==null)return null;const p=s.length+n*2,u=Math.floor(r*d0),E=p/r,w=(d.width||u)*E,e=(d.height||u)*E,t=d.x==null?s.length/2-w/2:d.x*E,a=d.y==null?s.length/2-e/2:d.y*E,o=d.opacity==null?1:d.opacity;let l=null;if(d.excavate){let c=Math.floor(t),v=Math.floor(a),f=Math.ceil(w+t-c),y=Math.ceil(e+a-v);l={x:c,y:v,w:f,h:y}}const m=d.crossOrigin;return{x:t,y:a,h:e,w,excavation:l,opacity:o,crossOrigin:m}}function m0(s,r){return r!=null?Math.max(Math.floor(r),0):s?c0:h0}function we({value:s,level:r,minVersion:n,includeMargin:d,marginSize:p,imageSettings:u,size:E,boostLevel:w}){let e=i.useMemo(()=>{const c=(Array.isArray(s)?s:[s]).reduce((v,f)=>(v.push(...L.QrSegment.makeSegments(f)),v),[]);return L.QrCode.encodeSegments(c,i0[r],n,void 0,void 0,w)},[s,r,n,w]);const{cells:t,margin:a,numCells:o,calculatedImageSettings:l}=i.useMemo(()=>{let m=e.getModules();const c=m0(d,p),v=m.length+c*2,f=u0(m,E,c,u);return{cells:m,margin:c,numCells:v,calculatedImageSettings:f}},[e,E,u,d,p]);return{qrcode:e,margin:a,cells:t,numCells:o,calculatedImageSettings:l}}var f0=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),p0=i.forwardRef(function(r,n){const d=r,{value:p,size:u=de,level:E=ue,bgColor:w=me,fgColor:e=fe,includeMargin:t=pe,minVersion:a=ge,boostLevel:o,marginSize:l,imageSettings:m}=d,v=B(d,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:f}=v,y=B(v,["style"]),b=m==null?void 0:m.src,g=i.useRef(null),M=i.useRef(null),C=i.useCallback(P=>{g.current=P,typeof n=="function"?n(P):n&&(n.current=P)},[n]),[I,U]=i.useState(!1),{margin:S,cells:z,numCells:T,calculatedImageSettings:N}=we({value:p,level:E,minVersion:a,boostLevel:o,includeMargin:t,marginSize:l,imageSettings:m,size:u});i.useEffect(()=>{if(g.current!=null){const P=g.current,Z=P.getContext("2d");if(!Z)return;let Q=z;const H=M.current,G=N!=null&&H!==null&&H.complete&&H.naturalHeight!==0&&H.naturalWi
9dth!==0;G&&N.excavation!=null&&(Q=Ae(z,N.excavation));const Y=window.devicePixelRatio||1;P.height=P.width=u*Y;const W=u/T*Y;Z.scale(W,W),Z.fillStyle=w,Z.fillRect(0,0,T,T),Z.fillStyle=e,f0?Z.fill(new Path2D(ve(Q,S))):z.forEach(function(Me,be){Me.forEach(function(ye,Ce){ye&&Z.fillRect(Ce+S,be+S,1,1)})}),N&&(Z.globalAlpha=N.opacity),G&&Z.drawImage(H,N.x+S,N.y+S,N.w,N.h)}}),i.useEffect(()=>{U(!1)},[b]);const xe=$({height:u,width:u},f);let _=null;return b!=null&&(_=i.createElement("img",{src:b,key:b,style:{display:"none"},onLoad:()=>{U(!0)},ref:M,crossOrigin:N==null?void 0:N.crossOrigin})),i.createElement(i.Fragment,null,i.createElement("canvas",$({style:xe,height:u,width:u,ref:C,role:"img"},y)),_)});p0.displayName="QRCodeCanvas";var Ee=i.forwardRef(function(r,n){const d=r,{value:p,size:u=de,level:E=ue,bgColor:w=me,fgColor:e=fe,includeMargin:t=pe,minVersion:a=ge,boostLevel:o,title:l,marginSize:m,imageSettings:c}=d,v=B(d,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:f,cells:y,numCells:b,calculatedImageSettings:g}=we({value:p,level:E,minVersion:a,boostLevel:o,includeMargin:t,marginSize:m,imageSettings:c,size:u});let M=y,C=null;c!=null&&g!=null&&(g.excavation!=null&&(M=Ae(y,g.excavation)),C=i.createElement("image",{href:c.src,height:g.h,width:g.w,x:g.x+f,y:g.y+f,preserveAspectRatio:"none",opacity:g.opacity,crossOrigin:g.crossOrigin}));const I=ve(M,f);return i.createElement("svg",$({height:u,width:u,viewBox:`0 0 ${b} ${b}`,ref:n,role:"img"},v),!!l&&i.createElement("title",null,l),i.createElement("path",{fill:w,d:`M0,0 h${b}v${b}H0z`,shapeRendering:"crispEdges"}),i.createElement("path",{fill:e,d:I,shapeRendering:"crispEdges"}),C)});
9Ee.displayName="QRCodeSVG";function g0({isOpen:s,onClose:r}){return h.jsx(Ne,{isOpen:s,children:h.jsxs("div",{className:"relative w-full rounded-lg shadow",style:{minHeight:"60vh",maxWidth:"70vw",backgroundImage:`url(${o0})`,backgroundSize:"cover",backgroundPosition:"center"},children:[h.jsx("button",{onClick:r,type:"button",className:"absolute top-4 right-4 transition-all duration-300 bg-transparent rounded-lg text-sm p-1 inline-flex items-center hover:bg-theme-modal-border hover:border-theme-modal-border hover:border-opacity-50 border-transparent border",children:h.jsx(Re,{size:24,weight:"bold",className:"text-[#FFF]"})}),h.jsxs("div",{className:"flex w-full h-full justify-between p-[35px]",children:[h.jsxs("div",{className:"flex flex-col w-1/2 gap-y-[16px]",children:[h.jsx("p",{className:"text-[#FFF] text-xl font-bold",children:"Go mobile. Stay local. AnythingLLM Mobile."}),h.jsxs("p",{className:"text-[#FFF] text-lg",children:["AnythingLLM for mobile allows you to connect or clone your workspace's chats, threads and documents for you to use on the go.",h.jsx("br",{}),h.jsx("br",{}),"Run with local models on your phone privately or relay chats directly to this instance seamlessly."]})]}),h.jsxs("div",{className:"flex flex-col items-center justify-center shrink-0 w-1/2 gap-y-[16px]",children:[h.jsx("div",{className:"bg-white/10 rounded-lg p-[40px] w-[300px] h-[300px] flex flex-col gap-y-[16px] items-center justify-center",children:h.jsx(A0,{isOpen:s})}),h.jsxs("p",{className:"text-[#FFF] text-sm w-[300px] text-center",children:["Scan the QR code with the AnythingLLM Mobile app to enable live sync of your workspaces, chats, threads and documents.",h.jsx("br",{}),h.jsx(ne,{to:se.documentation.mobileIntroduction(),className:"text-cta-button font-semibold",children:"Learn more"})]})]})]})]})})}function v0(s){if(s.startsWith("http"))return new URL(s);const r=new URL(`${window.location.origin}${s}`);if(["localhost","127.0.0.1","0.0.0.0"].includes(r.hostname))throw new Error("Please open this page via your machines private IP address or custom domain. Localhost URLs will not work with the mobile app.");return r.toString()}const A0=({isOpen:s})=>{const[r,n]=R.useState(null),[d,p]=R.useState(!1),[u,E]=R.useState(null);if(R.useEffect(()=>{s&&(p(!0),F.getConnectionInfo().then(e=>{if(e.error)throw new Error(e.error);const t=v0(e.connectionUrl);n(t)}).catch(e=>{E(e.message)}).finally(()=>{p(!1)}))},[s]),d)return h.jsx(Ze,{size:"[100px]"});if(u)return h.jsx("p",{className:"text-red-500 text-sm w-[300px] p-4 text-center",children:u});const w={width:35*1.5,height:22*1.5};return h.jsx(Ee,{value:r,size:300,bgColor:"transparent",fgColor:"white",level:"L",imageSettings:{src:Ie,x:300/2-w.width/2,y:300/2-w.height/2,height:w.height,width:w.width,excavate:!0}})};function w0({device:s,removeDevice:r}){const[n,d]=R.useState(s.approved),p=async()=>{await F.updateDevice(s.id,{approved:!0}),X("Device access granted","info"),d(!0)},u=async()=>{await F.deleteDevice(s.id),X("Device access denied","info"),d(!1),r(s.id)};return h.jsx(h.Fragment,{children:h.jsxs("tr",{className:"bg-transparent text-white text-opacity-80 text-xs font-medium border-b border-white/10 h-10",children:[h.jsx("td",{scope:"row",className:"px-6 whitespace-nowrap",children:h.jsxs("div",{className:"flex items-center gap-x-2",children:[s.deviceOs==="ios"?h.jsx(oe,{weight:"fill",size:16,className:"fill-theme-text-primary"}):h.jsx(le,{weight:"fill",size:16,className:"fill-theme-text-primary"}),h.jsx("span",{className:"text-sm",children:s.deviceName})]})}),h.jsx("td",{className:"px-6",children:h.jsxs("div",{className:"flex items-center gap-x-2",children:[Oe(s.createdAt).format("lll"),s.user&&h.jsxs("div",{className:"flex items-center gap-x-1",children:[h.jsx("span",{className:"text-xs text-theme-text-secondary",children:"by"}),h.jsx(ne,{to:se.settings.users(),className:"text-xs text-theme-text-secondary hover:underline hover:text-cta-button",children:s.user.username})]})]})}),h.jsx("td",{className:"px-6 flex items-center gap-x-6 h-full mt-1",children:n?h.jsx("button",{onClick:u,className:"border-none flex items-center justify-center text-xs font-medium text-white/80 light:text-black/80 rounded-lg p-1 hover:bg-white hover:light:bg-red-50 hover:bg-opacity-10",children:"Revoke"}):h.jsxs(h.Fragment,{children:[h.jsx("button",{onClick:p,className:"border-none flex items-center justify-center text-xs font-medium text-white/80 light:text-black/80 rounded-lg p-1 hover:bg-white hover:bg-opacity-10 hover:light:bg-green-50 hover:light:text-green-500 hover:text-green-300",children:"Approve Access"}),h.jsx("button",{onClick:u,className:"border-none flex items-center justify-center text-xs font-medium text-white/80 light:text-black/80 rounded-lg p-1 hover:bg-white hover:bg-opacity-10 hover:light:bg-red-50 hover:light:text-red-500 hover:text-red-300",children:"Deny"})]})})]})})}
9function Z0(){const{isOpen:s,openModal:r,closeModal:n}=Pe(),[d,p]=R.useState(!0),[u,E]=R.useState([]),w=async()=>{const t=await F.getDevices();return E(t),t.length!==0&&!s&&n(),t};R.useEffect(()=>{w().then(a=>(a.length===0&&r(),a)).finally(()=>{p(!1)});const t=setInterval(w,5e3);return()=>clearInterval(t)},[]);const e=t=>{E(a=>a.filter(o=>o.id!==t))};return h.jsxs("div",{className:"w-screen h-screen overflow-hidden bg-theme-bg-container flex md:mt-0 mt-6",children:[h.jsx(je,{}),h.jsx("div",{style:{height:Le?"100%":"calc(100% - 32px)"},className:"relative md:ml-[2px] md:mr-[16px] md:my-[16px] md:rounded-[16px] bg-theme-bg-secondary w-full h-full overflow-y-scroll p-4 md:p-0",children:h.jsxs("div",{className:"flex flex-col w-full px-1 md:pl-6 md:pr-[50px] md:py-6 py-16",children:[h.jsxs("div",{className:"w-full flex flex-col gap-y-1 pb-6 border-white/10 border-b-2",children:[h.jsx("div",{className:"items-center flex gap-x-4",children:h.jsx("p",{className:"text-lg leading-6 font-bold text-theme-text-primary",children:"Connected Mobile Devices"})}),h.jsx("p",{className:"text-xs leading-[18px] font-base text-theme-text-secondary mt-2",children:"These are the devices that are connected to your desktop application to sync chats, workspaces, and more."})]}),h.jsx("div",{className:"w-full justify-end flex",children:h.jsxs(Se,{onClick:r,className:"mt-3 mr-0 mb-4 md:-mb-14 z-10",children:[h.jsx(ie,{className:"h-4 w-4",weight:"bold"})," Register New Device"]})}),h.jsx("div",{className:"overflow-x-auto mt-6",children:d?h.jsx(He,{height:"80vh",width:"100%",highlightColor:"var(--theme-bg-primary)",baseColor:"var(--theme-bg-secondary)",count:1,className:"w-full p-4 rounded-b-2xl rounded-tr-2xl rounded-tl-sm",containerClassName:"flex w-full"}):h.jsxs("table",{className:"w-full text-xs text-left rounded-lg min-w-[640px] border-spacing-0",children:[h.jsx("thead",{className:"text-theme-text-secondary text-xs leading-[18px] font-bold uppercase border-white/10 border-b",children:h.jsxs("tr",{children:[h.jsx("th",{scope:"col",className:"px-6 py-3",children:"Device Name"}),h.jsx("th",{scope:"col",className:"px-6 py-3",children:"Registered"}),h.jsx("th",{scope:"col",className:"px-6 py-3",children:" "})]})}),h.jsx("tbody",{children:u.length===0?h.jsx("tr",{className:"bg-transparent text-theme-text-secondary text-sm font-medium",children:h.jsx("td",{colSpan:"4",className:"px-6 py-4 text-center",children:"No devices found"})}):u.map(t=>h.jsx(w0,{device:t,removeDevice:e},t.id))})]})})]})}),h.jsx(g0,{isOpen:s,onClose:n})]})}export{Z0 as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.