most-box 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/electron/main.js +2 -2
- package/out/404/index.html +2 -2
- package/out/404.html +2 -2
- package/out/__next.__PAGE__.txt +4 -4
- package/out/__next._full.txt +5 -5
- package/out/__next._head.txt +1 -1
- package/out/__next._index.txt +2 -2
- package/out/__next._tree.txt +3 -3
- package/out/_next/static/chunks/003jnm.v5tzw5.js +1 -0
- package/out/_next/static/chunks/00re8v.gbcywn.js +1 -0
- package/out/_next/static/chunks/012hi627qrdnn.js +1 -0
- package/out/_next/static/chunks/{11dalasm30arx.js → 02~o2nmo5pmy1.js} +1 -1
- package/out/_next/static/chunks/{0_-ccbcyh_o30.css → 07t.dhhokszz5.css} +1 -1
- package/out/_next/static/chunks/{0ibjp~7qzxfjv.js → 0ah8fihozo2_u.js} +3 -3
- package/out/_next/static/chunks/0gdluj423gso1.js +1 -0
- package/out/_next/static/chunks/0gmoiq06srjay.css +1 -0
- package/out/_next/static/chunks/{0_b839~4.q324.js → 0imkasy7kb67u.js} +1 -1
- package/out/_next/static/chunks/0jjc_b9q_ldi2.js +1 -0
- package/out/_next/static/chunks/0lqslm813wk_h.js +1 -0
- package/out/_next/static/chunks/{0ry.po.a~iu4p.js → 0q782fxxd0lx~.js} +1 -1
- package/out/_next/static/chunks/0tapzqc6hgvx-.js +1 -0
- package/out/_next/static/chunks/{0j9~17180dl8j.js → 0xsc7z5x8n7wg.js} +1 -1
- package/out/_next/static/chunks/{0_sna3wdypbzr.js → 0zm~gys2jwl0g.js} +1 -1
- package/out/_not-found/__next._full.txt +2 -2
- package/out/_not-found/__next._head.txt +1 -1
- package/out/_not-found/__next._index.txt +2 -2
- package/out/_not-found/__next._not-found.__PAGE__.txt +2 -2
- package/out/_not-found/__next._not-found.txt +1 -1
- package/out/_not-found/__next._tree.txt +1 -1
- package/out/_not-found/index.html +2 -2
- package/out/_not-found/index.txt +2 -2
- package/out/app/__next._full.txt +3 -3
- package/out/app/__next._head.txt +1 -1
- package/out/app/__next._index.txt +2 -2
- package/out/app/__next._tree.txt +1 -1
- package/out/app/__next.app.__PAGE__.txt +2 -2
- package/out/app/__next.app.txt +1 -1
- package/out/app/index.html +2 -2
- package/out/app/index.txt +3 -3
- package/out/changelog/__next._full.txt +4 -4
- package/out/changelog/__next._head.txt +1 -1
- package/out/changelog/__next._index.txt +2 -2
- package/out/changelog/__next._tree.txt +2 -2
- package/out/changelog/__next.changelog.__PAGE__.txt +3 -3
- package/out/changelog/__next.changelog.txt +1 -1
- package/out/changelog/index.html +2 -2
- package/out/changelog/index.txt +4 -4
- package/out/chat/__next._full.txt +3 -3
- package/out/chat/__next._head.txt +1 -1
- package/out/chat/__next._index.txt +2 -2
- package/out/chat/__next._tree.txt +1 -1
- package/out/chat/__next.chat.__PAGE__.txt +2 -2
- package/out/chat/__next.chat.txt +1 -1
- package/out/chat/index.html +2 -2
- package/out/chat/index.txt +3 -3
- package/out/docs/__next._full.txt +4 -4
- package/out/docs/__next._head.txt +1 -1
- package/out/docs/__next._index.txt +2 -2
- package/out/docs/__next._tree.txt +2 -2
- package/out/docs/__next.docs.__PAGE__.txt +3 -3
- package/out/docs/__next.docs.txt +1 -1
- package/out/docs/getting-started/__next._full.txt +4 -4
- package/out/docs/getting-started/__next._head.txt +1 -1
- package/out/docs/getting-started/__next._index.txt +2 -2
- package/out/docs/getting-started/__next._tree.txt +2 -2
- package/out/docs/getting-started/__next.docs.getting-started.__PAGE__.txt +3 -3
- package/out/docs/getting-started/__next.docs.getting-started.txt +1 -1
- package/out/docs/getting-started/__next.docs.txt +1 -1
- package/out/docs/getting-started/index.html +2 -2
- package/out/docs/getting-started/index.txt +4 -4
- package/out/docs/index.html +2 -2
- package/out/docs/index.txt +4 -4
- package/out/download/__next._full.txt +5 -5
- package/out/download/__next._head.txt +1 -1
- package/out/download/__next._index.txt +2 -2
- package/out/download/__next._tree.txt +2 -2
- package/out/download/__next.download.__PAGE__.txt +3 -3
- package/out/download/__next.download.txt +1 -1
- package/out/download/index.html +2 -2
- package/out/download/index.txt +5 -5
- package/out/index.html +2 -2
- package/out/index.txt +5 -5
- package/out/ping/__next._full.txt +4 -4
- package/out/ping/__next._head.txt +1 -1
- package/out/ping/__next._index.txt +2 -2
- package/out/ping/__next._tree.txt +2 -2
- package/out/ping/__next.ping.__PAGE__.txt +3 -3
- package/out/ping/__next.ping.txt +1 -1
- package/out/ping/index.html +2 -2
- package/out/ping/index.txt +4 -4
- package/out/web3/__next._full.txt +3 -3
- package/out/web3/__next._head.txt +1 -1
- package/out/web3/__next._index.txt +2 -2
- package/out/web3/__next._tree.txt +1 -1
- package/out/web3/__next.web3.__PAGE__.txt +2 -2
- package/out/web3/__next.web3.txt +1 -1
- package/out/web3/ed25519/__next._full.txt +2 -2
- package/out/web3/ed25519/__next._head.txt +1 -1
- package/out/web3/ed25519/__next._index.txt +2 -2
- package/out/web3/ed25519/__next._tree.txt +1 -1
- package/out/web3/ed25519/__next.web3.ed25519.__PAGE__.txt +1 -1
- package/out/web3/ed25519/__next.web3.ed25519.txt +1 -1
- package/out/web3/ed25519/__next.web3.txt +1 -1
- package/out/web3/ed25519/index.html +1 -1
- package/out/web3/ed25519/index.txt +2 -2
- package/out/web3/index.html +2 -2
- package/out/web3/index.txt +3 -3
- package/out/web3/tools/__next._full.txt +2 -2
- package/out/web3/tools/__next._head.txt +1 -1
- package/out/web3/tools/__next._index.txt +2 -2
- package/out/web3/tools/__next._tree.txt +1 -1
- package/out/web3/tools/__next.web3.tools.__PAGE__.txt +1 -1
- package/out/web3/tools/__next.web3.tools.txt +1 -1
- package/out/web3/tools/__next.web3.txt +1 -1
- package/out/web3/tools/index.html +1 -1
- package/out/web3/tools/index.txt +2 -2
- package/package.json +2 -1
- package/server/index.js +38 -6
- package/server/src/index.js +5 -3
- package/server/src/utils/mp.js +1 -13
- package/out/_next/static/chunks/02ou_44kkb5dz.js +0 -1
- package/out/_next/static/chunks/02pr2b_eos3~h.js +0 -1
- package/out/_next/static/chunks/07lsjkarm1p9f.css +0 -1
- package/out/_next/static/chunks/0byj66sc-9o0g.js +0 -1
- package/out/_next/static/chunks/0du450zbk4kq_.js +0 -1
- package/out/_next/static/chunks/0imvn_arv36xt.css +0 -1
- package/out/_next/static/chunks/0ji.28mehrvdp.js +0 -1
- package/out/_next/static/chunks/0nct0fubs64d-.js +0 -1
- package/out/_next/static/chunks/0q7ck9f.90_i9.js +0 -1
- package/out/_next/static/chunks/0rr4gwjp9z~9a.js +0 -1
- package/out/lottery/__next._full.txt +0 -21
- package/out/lottery/__next._head.txt +0 -5
- package/out/lottery/__next._index.txt +0 -7
- package/out/lottery/__next._tree.txt +0 -3
- package/out/lottery/__next.lottery.__PAGE__.txt +0 -9
- package/out/lottery/__next.lottery.txt +0 -6
- package/out/lottery/index.html +0 -15
- package/out/lottery/index.txt +0 -21
- /package/out/_next/static/{alUUgRz4oMlw4EtULOYfV → MKMAM_PgkfJypNTQAws_M}/_buildManifest.js +0 -0
- /package/out/_next/static/{alUUgRz4oMlw4EtULOYfV → MKMAM_PgkfJypNTQAws_M}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{alUUgRz4oMlw4EtULOYfV → MKMAM_PgkfJypNTQAws_M}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,96661,e=>{"use strict";e.s(["mergeClasses",0,(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()])},71987,88973,e=>{"use strict";e.s(["default",0,{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}],71987),e.s(["hasA11yProp",0,e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1}],88973)},5014,e=>{"use strict";var t=e.i(71645),r=e.i(71987),n=e.i(88973),i=e.i(96661);let a=(0,t.createContext)({}),l=(0,t.forwardRef)(({color:e,size:l,strokeWidth:o,absoluteStrokeWidth:s,className:c="",children:u,iconNode:f,...d},h)=>{let{size:p=24,strokeWidth:g=2,absoluteStrokeWidth:m=!1,color:y="currentColor",className:b=""}=(0,t.useContext)(a)??{},k=s??m?24*Number(o??g)/Number(l??p):o??g;return(0,t.createElement)("svg",{ref:h,...r.default,width:l??p??r.default.width,height:l??p??r.default.height,stroke:e??y,strokeWidth:k,className:(0,i.mergeClasses)("lucide",b,c),...!u&&!(0,n.hasA11yProp)(d)&&{"aria-hidden":"true"},...d},[...f.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(u)?u:[u]])});e.s(["default",0,l],5014)},95057,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return o},formatWithValidation:function(){return c},urlObjectKeys:function(){return s}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(90809)._(e.r(98183)),l=/https?|ftp|gopher|file/;function o(e){let{auth:t,hostname:r}=e,n=e.protocol||"",i=e.pathname||"",o=e.hash||"",s=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),s&&"object"==typeof s&&(s=String(a.urlQueryToSearchParams(s)));let u=e.search||s&&`?${s}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||l.test(n))&&!1!==c?(c="//"+(c||""),i&&"/"!==i[0]&&(i="/"+i)):c||(c=""),o&&"#"!==o[0]&&(o="#"+o),u&&"?"!==u[0]&&(u="?"+u),i=i.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${i}${u}${o}`}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return o(e)}},18581,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=e.r(71645);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=a(e,n)),t&&(i.current=a(t,n))},[e,t])}function a(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},73668,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return a}});let n=e.r(18967),i=e.r(52817);function a(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},84508,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22016,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return y},useLinkStatus:function(){return k}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(90809),l=e.r(43476),o=a._(e.r(71645)),s=e.r(95057),c=e.r(8372),u=e.r(18581),f=e.r(18967),d=e.r(5550);e.r(33525);let h=e.r(88540),p=e.r(91949),g=e.r(73668),m=e.r(9396);function y(t){var r,n;let i,a,y,[k,x]=(0,o.useOptimistic)(p.IDLE_LINK_STATUS),v=(0,o.useRef)(null),{href:j,as:w,children:M,prefetch:S=null,passHref:E,replace:O,shallow:C,scroll:T,onClick:N,onMouseEnter:z,onTouchStart:L,legacyBehavior:A=!1,onNavigate:P,transitionTypes:_,ref:I,unstable_dynamicOnHover:R,...F}=t;i=M,A&&("string"==typeof i||"number"==typeof i)&&(i=(0,l.jsx)("a",{children:i}));let $=o.default.useContext(c.AppRouterContext),U=!1!==S,q=!1!==S?null===(n=S)||"auto"===n?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,D="string"==typeof(r=w||j)?r:(0,s.formatUrl)(r);if(A){if(i?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});a=o.default.Children.only(i)}let H=A?a&&"object"==typeof a&&a.ref:I,B=o.default.useCallback(e=>(null!==$&&(v.current=(0,p.mountLinkInstance)(e,D,$,q,U,x)),()=>{v.current&&((0,p.unmountLinkForCurrentNavigation)(v.current),v.current=null),(0,p.unmountPrefetchableInstance)(e)}),[U,D,$,q,x]),V={ref:(0,u.useMergedRef)(B,H),onClick(t){A||"function"!=typeof N||N(t),A&&a.props&&"function"==typeof a.props.onClick&&a.props.onClick(t),!$||t.defaultPrevented||function(t,r,n,i,a,l,s){if("u">typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,g.isLocalURL)(r)){i&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),l){let e=!1;if(l({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:f}=e.r(99781);o.default.startTransition(()=>{f(r,i?"replace":"push",!1===a?h.ScrollBehavior.NoScroll:h.ScrollBehavior.Default,n.current,s)})}}(t,D,v,O,T,P,_)},onMouseEnter(e){A||"function"!=typeof z||z(e),A&&a.props&&"function"==typeof a.props.onMouseEnter&&a.props.onMouseEnter(e),$&&U&&(0,p.onNavigationIntent)(e.currentTarget,!0===R)},onTouchStart:function(e){A||"function"!=typeof L||L(e),A&&a.props&&"function"==typeof a.props.onTouchStart&&a.props.onTouchStart(e),$&&U&&(0,p.onNavigationIntent)(e.currentTarget,!0===R)}};return(0,f.isAbsoluteUrl)(D)?V.href=D:A&&!E&&("a"!==a.type||"href"in a.props)||(V.href=(0,d.addBasePath)(D)),y=A?o.default.cloneElement(a,V):(0,l.jsx)("a",{...F,...V,children:i}),(0,l.jsx)(b.Provider,{value:k,children:y})}e.r(84508);let b=(0,o.createContext)(p.IDLE_LINK_STATUS),k=()=>(0,o.useContext)(b);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},56420,e=>{"use strict";var t=e.i(71645),r=e.i(96661);let n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)};var i=e.i(5014);e.s(["default",0,(e,a)=>{let l=(0,t.forwardRef)(({className:l,...o},s)=>(0,t.createElement)(i.default,{ref:s,iconNode:a,className:(0,r.mergeClasses)(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,l),...o}));return l.displayName=n(e),l}],56420)},35965,96699,93583,e=>{"use strict";var t=e.i(56420);let r=(0,t.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);e.s(["Sun",0,r],35965);let n=(0,t.default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);e.s(["Moon",0,n],96699);let i=(0,t.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);e.s(["Menu",0,i],93583)},40983,e=>{"use strict";var t=e.i(43476),r=e.i(71645),n=e.i(22016),i=e.i(35965),a=e.i(96699),l=e.i(93583);function o({size:e=24}){return(0,t.jsxs)("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("rect",{x:"2",y:"2",width:"8",height:"8",rx:"2",fill:"var(--accent)",opacity:"0.4"}),(0,t.jsx)("rect",{x:"14",y:"2",width:"8",height:"8",rx:"2",fill:"var(--accent)",opacity:"0.7"}),(0,t.jsx)("rect",{x:"2",y:"14",width:"8",height:"8",rx:"2",fill:"var(--accent)",opacity:"0.7"}),(0,t.jsx)("rect",{x:"14",y:"14",width:"8",height:"8",rx:"2",fill:"var(--accent)"})]})}let s=[{href:"/docs/getting-started/",label:"文档"},{href:"/ping/",label:"网络"},{href:"/changelog/",label:"更新日志"}];function c(){let[e,c]=(0,r.useState)(!1),[u,f]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let e=localStorage.getItem("theme"),t=window.matchMedia("(prefers-color-scheme: dark)").matches;("dark"===e||!e&&t)&&f(!0)},[]),(0,r.useEffect)(()=>{document.documentElement.setAttribute("data-theme",u?"dark":"light"),localStorage.setItem("theme",u?"dark":"light")},[u]),(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("nav",{className:"mkt-nav",children:(0,t.jsxs)("div",{className:"mkt-nav-inner",children:[(0,t.jsxs)(n.default,{href:"/",className:"mkt-nav-logo",children:[(0,t.jsx)(o,{}),"MOST PEOPLE"]}),(0,t.jsxs)("div",{className:`mkt-nav-links ${e?"open":""}`,children:[s.map(e=>(0,t.jsx)(n.default,{href:e.href,onClick:()=>c(!1),children:e.label},e.href)),(0,t.jsxs)("button",{className:"mkt-theme-toggle mkt-mobile-only",onClick:()=>{f(!u),c(!1)},"aria-label":"切换主题",children:[u?(0,t.jsx)(i.Sun,{size:16}):(0,t.jsx)(a.Moon,{size:16}),u?" 亮色模式":" 暗色模式"]})]}),(0,t.jsxs)("div",{className:"mkt-nav-cta",children:[(0,t.jsx)("button",{className:"mkt-theme-toggle mkt-desktop-only",onClick:()=>f(!u),"aria-label":"切换主题",children:u?(0,t.jsx)(i.Sun,{size:16}):(0,t.jsx)(a.Moon,{size:16})}),(0,t.jsx)(n.default,{href:"/app/",className:"mkt-btn-primary",children:"开始使用"}),(0,t.jsx)("button",{className:"mkt-nav-mobile-toggle",onClick:()=>c(!e),"aria-label":"菜单",children:(0,t.jsx)(l.Menu,{size:24})})]})]})})})}let u=[{href:"/",label:"关于"},{href:"/docs/getting-started/",label:"文档"},{href:"/changelog/",label:"更新日志"},{href:"https://github.com/most-people/most",label:"GitHub",external:!0}];function f(){return(0,t.jsx)("footer",{className:"mkt-footer",children:(0,t.jsx)("div",{className:"mkt-container",children:(0,t.jsxs)("div",{className:"mkt-footer-inner",children:[(0,t.jsx)("div",{className:"mkt-footer-links",children:u.map(e=>(0,t.jsx)(n.default,{href:e.href,...e.external?{target:"_blank",rel:"noopener noreferrer"}:{},children:e.label},e.href))}),(0,t.jsxs)("span",{className:"mkt-footer-copy",children:["© ",new Date().getFullYear()," MOST PEOPLE · MIT License"]})]})})})}e.s(["MarketingLayout",0,function({children:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c,{}),e,(0,t.jsx)(f,{})]})}],40983)},68590,e=>{"use strict";let t=(0,e.i(56420).default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);e.s(["MessageSquare",0,t],68590)},30274,e=>{"use strict";let t=(0,e.i(56420).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);e.s(["Send",0,t],30274)},66595,e=>{"use strict";let t=(0,e.i(56420).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",0,t],66595)},51921,e=>{"use strict";let t=(0,e.i(56420).default)("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);e.s(["Music",0,t],51921)},23449,e=>{"use strict";let t;var r,n=e.i(43476),i=e.i(71645);let a=Object.freeze({left:0,top:0,width:16,height:16}),l=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),o=Object.freeze({...a,...l}),s=Object.freeze({...o,body:"",hidden:!1});function c(e,t){let r,n,i=(r={},!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0),(n=((e.rotate||0)+(t.rotate||0))%4)&&(r.rotate=n),r);for(let r in s)r in l?r in e&&!(r in i)&&(i[r]=l[r]):r in t?i[r]=t[r]:r in e&&(i[r]=e[r]);return i}function u(e,t){let r,n,i,a=[];if("object"!=typeof e||"object"!=typeof e.icons)return a;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),a.push(e)});let l=(r=e.icons,n=e.aliases||Object.create(null),i=Object.create(null),Object.keys(r).concat(Object.keys(n)).forEach(function e(t){if(r[t])return i[t]=[];if(!(t in i)){i[t]=null;let r=n[t]&&n[t].parent,a=r&&e(r);a&&(i[t]=[r].concat(a))}return i[t]}),i);for(let r in l){let n=l[r];n&&(t(r,function(e,t,r){let n=e.icons,i=e.aliases||Object.create(null),a={};function l(e){a=c(n[e]||i[e],a)}return l(t),r.forEach(l),c(e,a)}(e,r,n)),a.push(r))}return a}let f={provider:"",aliases:{},not_found:{},...a};function d(e,t){for(let r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function h(e){if("object"!=typeof e||null===e||"string"!=typeof e.prefix||!e.icons||"object"!=typeof e.icons||!d(e,f))return null;let t=e.icons;for(let e in t){let r=t[e];if(!e||"string"!=typeof r.body||!d(r,s))return null}let r=e.aliases||Object.create(null);for(let e in r){let n=r[e],i=n.parent;if(!e||"string"!=typeof i||!t[i]&&!r[i]||!d(n,s))return null}return e}let p=Object.create(null);function g(e,t){let r=p[e]||(p[e]=Object.create(null));return r[t]||(r[t]={provider:e,prefix:t,icons:Object.create(null),missing:new Set})}function m(e,t){return h(t)?u(t,(t,r)=>{r?e.icons[t]=r:e.missing.add(t)}):[]}let y=/^[a-z0-9]+(-[a-z0-9]+)*$/,b=(e,t,r,n="")=>{let i=e.split(":");if("@"===e.slice(0,1)){if(i.length<2||i.length>3)return null;n=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),r=i.pop(),a={provider:i.length>0?i[0]:n,prefix:r,name:e};return t&&!k(a)?null:a}let a=i[0],l=a.split("-");if(l.length>1){let e={provider:n,prefix:l.shift(),name:l.join("-")};return t&&!k(e)?null:e}if(r&&""===n){let e={provider:n,prefix:"",name:a};return t&&!k(e,r)?null:e}return null},k=(e,t)=>!!e&&!!((t&&""===e.prefix||e.prefix)&&e.name),x=!1;function v(e){return"boolean"==typeof e&&(x=e),x}function j(e){let t="string"==typeof e?b(e,!0,x):e;if(t){let e=g(t.provider,t.prefix),r=t.name;return e.icons[r]||(e.missing.has(r)?null:void 0)}}let w=Object.freeze({width:null,height:null}),M=Object.freeze({...w,...l}),S=/(-?[0-9.]*[0-9]+[0-9.]*)/g,E=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function O(e,t,r){if(1===t)return e;if(r=r||100,"number"==typeof e)return Math.ceil(e*t*r)/r;if("string"!=typeof e)return e;let n=e.split(S);if(null===n||!n.length)return e;let i=[],a=n.shift(),l=E.test(a);for(;;){if(l){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*r)/r)}else i.push(a);if(void 0===(a=n.shift()))return i.join("");l=!l}}let C=/\sid="(\S+)"/g,T="IconifyId"+Date.now().toString(16)+(0x1000000*Math.random()|0).toString(16),N=0,z=Object.create(null);function L(e){return z[e]||z[""]}function A(e){let t;if("string"==typeof e.resources)t=[e.resources];else if(!((t=e.resources)instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:!0===e.random,index:e.index||0,dataAfterTimeout:!1!==e.dataAfterTimeout}}let P=Object.create(null),_=["https://api.simplesvg.com","https://api.unisvg.com"],I=[];for(;_.length>0;)1===_.length||Math.random()>.5?I.push(_.shift()):I.push(_.pop());P[""]=A({resources:["https://api.iconify.design"].concat(I)});let R=(()=>{let e;try{if(e=fetch,"function"==typeof e)return e}catch(e){}})();function F(e,t){e.forEach(e=>{let r=e.loaderCallbacks;r&&(e.loaderCallbacks=r.filter(e=>e.id!==t))})}let $=0,U={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function q(e){let t={...U,...e},r=[];function n(){r=r.filter(e=>"pending"===e().status)}return{query:function(e,i,a){let l=function(e,t,r,n){let i,a,l=e.resources.length,o=e.random?Math.floor(Math.random()*l):e.index;if(e.random){let t=e.resources.slice(0);for(i=[];t.length>1;){let e=Math.floor(Math.random()*t.length);i.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}i=i.concat(t)}else i=e.resources.slice(o).concat(e.resources.slice(0,o));let s=Date.now(),c="pending",u=0,f=null,d=[],h=[];function p(){f&&(clearTimeout(f),f=null)}function g(){"pending"===c&&(c="aborted"),p(),d.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),d=[]}function m(e,t){t&&(h=[]),"function"==typeof e&&h.push(e)}function y(){c="failed",h.forEach(e=>{e(void 0,a)})}function b(){d.forEach(e=>{"pending"===e.status&&(e.status="aborted")}),d=[]}return"function"==typeof n&&h.push(n),setTimeout(function n(){if("pending"!==c)return;p();let l=i.shift();if(void 0===l){if(d.length){f=setTimeout(()=>{p(),"pending"===c&&(b(),y())},e.timeout);return}y();return}let o={status:"pending",resource:l,callback:(t,r)=>{!function(t,r,l){let o="success"!==r;switch(d=d.filter(e=>e!==t),c){case"pending":break;case"failed":if(o||!e.dataAfterTimeout)return;break;default:return}if("abort"===r){a=l,y();return}if(o){a=l,d.length||(i.length?n():y());return}if(p(),b(),!e.random){let r=e.resources.indexOf(t.resource);-1!==r&&r!==e.index&&(e.index=r)}c="completed",h.forEach(e=>{e(l)})}(o,t,r)}};d.push(o),u++,f=setTimeout(n,e.rotate),r(l,t,o.callback)}),function(){return{startTime:s,payload:t,status:c,queriesSent:u,queriesPending:d.length,subscribe:m,abort:g}}}(t,e,i,(e,t)=>{n(),a&&a(e,t)});return r.push(l),l},find:function(e){return r.find(t=>e(t))||null},setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:n}}let D=Object.create(null);function H(){}function B(e,t,r){function n(){let r=e.pendingIcons;t.forEach(t=>{r&&r.delete(t),e.icons[t]||e.missing.add(t)})}if(r&&"object"==typeof r)try{if(!m(e,r).length)return void n()}catch(e){console.error(e)}n(),e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;let t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1,n=e.provider,i=e.prefix;t.forEach(t=>{let a=t.icons,l=a.pending.length;a.pending=a.pending.filter(t=>{if(t.prefix!==i)return!0;let l=t.name;if(e.icons[l])a.loaded.push({provider:n,prefix:i,name:l});else{if(!e.missing.has(l))return r=!0,!0;a.missing.push({provider:n,prefix:i,name:l})}return!1}),a.pending.length!==l&&(r||F([e],t.id),t.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),t.abort))})}))}))}function V(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}let K=/[\s,]+/,W={...M,inline:!1},G={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Q={display:"inline-block"},X={backgroundColor:"currentColor"},Z={backgroundColor:"transparent"},J={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Y={WebkitMask:X,mask:X,background:Z};for(let e in Y){let t=Y[e];for(let r in J)t[e+r]=J[r]}let ee={...W,inline:!0};function et(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}if(v(!0),r={prepare:(e,t,r)=>{let n=[],i=function(e,t){let r,n=P[e];if(!n)return 0;if(n.maxURL){let e=0;n.resources.forEach(t=>{e=Math.max(e,t.length)}),r=n.maxURL-e-n.path.length-(t+".json?icons=").length}else r=0;return r}(e,t),a="icons",l={type:a,provider:e,prefix:t,icons:[]},o=0;return r.forEach((r,s)=>{(o+=r.length+1)>=i&&s>0&&(n.push(l),l={type:a,provider:e,prefix:t,icons:[]},o=r.length),l.icons.push(r)}),n.push(l),n},send:(e,t,r)=>{if(!R)return void r("abort",424);let n=function(e){if("string"==typeof e){let t=P[e];if(t)return t.path}return"/"}(t.provider);switch(t.type){case"icons":n+=t.prefix+".json?"+new URLSearchParams({icons:t.icons.join(",")}).toString();break;case"custom":{let e=t.uri;n+="/"===e.slice(0,1)?e.slice(1):e;break}default:r("abort",400);return}let i=503;R(e+n).then(e=>{let t=e.status;return 200!==t?void setTimeout(()=>{r(404===t?"abort":"next",t)}):(i=501,e.json())}).then(e=>{"object"!=typeof e||null===e?setTimeout(()=>{404===e?r("abort",e):r("next",i)}):setTimeout(()=>{r("success",e)})}).catch(()=>{r("next",i)})}},z[""]=r,"u">typeof document&&"u">typeof window){let e=window;if(void 0!==e.IconifyPreload){let t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";"object"==typeof t&&null!==t&&(t instanceof Array?t:[t]).forEach(e=>{try{("object"!=typeof e||null===e||e instanceof Array||"object"!=typeof e.icons||"string"!=typeof e.prefix||!function(e,t){if("object"!=typeof e)return!1;if("string"!=typeof t&&(t=e.provider||""),x&&!t&&!e.prefix){let t=!1;return h(e)&&(e.prefix="",u(e,(e,r)=>{(function(e,t){let r=b(e,!0,x);if(!r)return!1;let n=g(r.provider,r.prefix);if(!t)return n.missing.add(r.name),!0;var i=r.name;try{if("string"==typeof t.body)return n.icons[i]={...t},!0}catch(e){}return!1})(e,r)&&(t=!0)})),t}let r=e.prefix;return!!k({prefix:r,name:"a"})&&!!m(g(t,r),e)}(e))&&console.error(r)}catch(e){console.error(r)}})}if(void 0!==e.IconifyProviders){let t=e.IconifyProviders;if("object"==typeof t&&null!==t)for(let e in t){let r="IconifyProviders["+e+"] is invalid.";try{let n=t[e];if("object"!=typeof n||!n||void 0===n.resources)continue;!function(e,t){let r=A(t);return null!==r&&(P[e]=r,!0)}(e,n)&&console.error(r)}catch(e){console.error(r)}}}}function er(e){let[r,n]=(0,i.useState)(!!e.ssr),[a,l]=(0,i.useState)({}),[s,c]=(0,i.useState)(function(t){if(t){let t=e.icon;if("object"==typeof t)return{name:"",data:t};let r=j(t);if(r)return{name:t,data:r}}return{name:""}}(!!e.ssr));function u(){let e=a.callback;e&&(e(),l({}))}function f(e){if(JSON.stringify(s)!==JSON.stringify(e))return u(),c(e),!0}(0,i.useEffect)(()=>(n(!0),u),[]),(0,i.useEffect)(()=>{r&&function t(){var r;let n=e.icon;if("object"==typeof n)return void f({name:"",data:n});let i=j(n);f({name:n,data:i})&&(void 0===i?l({callback:((e,t)=>{var r;let n,i,a,l,o,s=(r=function(e,t=!0,r=!1){let n=[];return e.forEach(e=>{let i="string"==typeof e?b(e,t,r):e;i&&n.push(i)}),n}(e,!0,v()),a={loaded:[],missing:[],pending:[]},l=Object.create(null),r.sort((e,t)=>e.provider!==t.provider?e.provider.localeCompare(t.provider):e.prefix!==t.prefix?e.prefix.localeCompare(t.prefix):e.name.localeCompare(t.name)),o={provider:"",prefix:"",name:""},r.forEach(e=>{if(o.name===e.name&&o.prefix===e.prefix&&o.provider===e.provider)return;o=e;let t=e.provider,r=e.prefix,n=e.name,i=l[t]||(l[t]=Object.create(null)),s=i[r]||(i[r]=g(t,r));(n in s.icons?a.loaded:""===r||s.missing.has(n)?a.missing:a.pending).push({provider:t,prefix:r,name:n})}),a);if(!s.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(s.loaded,s.missing,s.pending,H)}),()=>{e=!1}}let c=Object.create(null),u=[];return s.pending.forEach(e=>{let{provider:t,prefix:r}=e;if(r===i&&t===n)return;n=t,i=r,u.push(g(t,r));let a=c[t]||(c[t]=Object.create(null));a[r]||(a[r]=[])}),s.pending.forEach(e=>{let{provider:t,prefix:r,name:n}=e,i=g(t,r),a=i.pendingIcons||(i.pendingIcons=new Set);a.has(n)||(a.add(n),c[t][r].push(n))}),u.forEach(e=>{let t=c[e.provider][e.prefix];t.length&&(e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{let t,r;e.iconsQueueFlag=!1;let{provider:n,prefix:i}=e,a=e.iconsToLoad;if(delete e.iconsToLoad,!a||!a.length)return;let l=e.loadIcon;if(e.loadIcons&&(a.length>1||!l))return void V(e.loadIcons(a,i,n),t=>{B(e,a,t)});if(l)return void a.forEach(t=>{V(l(t,i,n),r=>{let n=r?{prefix:i,icons:{[t]:r}}:null;B(e,[t],n)})});let{valid:o,invalid:s}=(t=[],r=[],a.forEach(e=>{(e.match(y)?t:r).push(e)}),{valid:t,invalid:r});if(s.length&&B(e,s,null),!o.length)return;let c=i.match(y)?L(n):null;c?c.prepare(n,i,o).forEach(t=>{!function(e,t,r){let n,i;if("string"==typeof e){let t=L(e);if(!t)return r(void 0,424);i=t.send;let a=function(e){if(!D[e]){let t=P[e];if(!t)return;let r=q(t);D[e]={config:t,redundancy:r}}return D[e]}(e);a&&(n=a.redundancy)}else{let t=A(e);if(t){n=q(t);let r=L(e.resources?e.resources[0]:"");r&&(i=r.send)}}n&&i?n.query(t,i,r)().abort:r(void 0,424)}(n,t,r=>{B(e,t.icons,r)})}):B(e,o,null)})))}),t?function(e,t,r){let n=$++,i=F.bind(null,r,n);if(!t.pending.length)return i;let a={id:n,icons:t,callback:e,abort:i};return r.forEach(e=>{(e.loaderCallbacks||(e.loaderCallbacks=[])).push(a)}),i}(t,s,u):H})([n],t)}):i&&(null==(r=e.onLoad)||r.call(e,n)))}()},[e.icon,r]);let{name:d,data:h}=s;return h?((e,r,n)=>{var a;let l,s,c,u,f,d,h,p,g,m,y,k,x,v=r.inline?ee:W,j=function(e,t){let r={...e};for(let e in t){let n=t[e],i=typeof n;e in w?(null===n||n&&("string"===i||"number"===i))&&(r[e]=n):i===typeof r[e]&&(r[e]="rotate"===e?n%4:n)}return r}(v,r),S=r.mode||"svg",E={},z=r.style||{},L={..."svg"===S?G:{}};if(n){let e=b(n,!1,!0);if(e){let t=["iconify"];for(let r of["provider","prefix"])e[r]&&t.push("iconify--"+e[r]);L.className=t.join(" ")}}for(let e in r){let t=r[e];if(void 0!==t)switch(e){case"icon":case"style":case"children":case"onLoad":case"mode":case"ssr":case"fallback":break;case"_ref":L.ref=t;break;case"className":L[e]=(L[e]?L[e]+" ":"")+t;break;case"inline":case"hFlip":case"vFlip":j[e]=!0===t||"true"===t||1===t;break;case"flip":"string"==typeof t&&function(e,t){t.split(K).forEach(t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0}})}(j,t);break;case"color":E.color=t;break;case"rotate":"string"==typeof t?j[e]=function(e,t=0){let r=e.replace(/^-?[0-9.]*/,"");function n(e){for(;e<0;)e+=4;return e%4}if(""===r){let t=parseInt(e);return isNaN(t)?0:n(t)}if(r!==e){let t=0;switch(r){case"%":t=25;break;case"deg":t=90}if(t){let i=parseFloat(e.slice(0,e.length-r.length));return isNaN(i)?0:(i/=t)%1==0?n(i):0}}return t}(t):"number"==typeof t&&(j[e]=t);break;case"ariaHidden":case"aria-hidden":!0!==t&&"true"!==t&&delete L["aria-hidden"];break;default:void 0===v[e]&&(L[e]=t)}}let A=(c={...o,...e},u={...M,...j},f={left:c.left,top:c.top,width:c.width,height:c.height},d=c.body,[c,u].forEach(e=>{var t,r,n,i;let a,l,o=[],s=e.hFlip,c=e.vFlip,u=e.rotate;switch(s?c?u+=2:(o.push("translate("+(f.width+f.left).toString()+" "+(0-f.top).toString()+")"),o.push("scale(-1 1)"),f.top=f.left=0):c&&(o.push("translate("+(0-f.left).toString()+" "+(f.height+f.top).toString()+")"),o.push("scale(1 -1)"),f.top=f.left=0),u<0&&(u-=4*Math.floor(u/4)),u%=4){case 1:o.unshift("rotate(90 "+(a=f.height/2+f.top).toString()+" "+a.toString()+")");break;case 2:o.unshift("rotate(180 "+(f.width/2+f.left).toString()+" "+(f.height/2+f.top).toString()+")");break;case 3:o.unshift("rotate(-90 "+(a=f.width/2+f.left).toString()+" "+a.toString()+")")}u%2==1&&(f.left!==f.top&&(a=f.left,f.left=f.top,f.top=a),f.width!==f.height&&(a=f.width,f.width=f.height,f.height=a)),o.length&&(t=d,r='<g transform="'+o.join(" ")+'">',n=(l=function(e,t="defs"){let r="",n=e.indexOf("<"+t);for(;n>=0;){let i=e.indexOf(">",n),a=e.indexOf("</"+t);if(-1===i||-1===a)break;let l=e.indexOf(">",a);if(-1===l)break;r+=e.slice(i+1,a).trim(),e=e.slice(0,n).trim()+e.slice(l+1)}return{defs:r,content:e}}(t)).defs,i=r+l.content+"</g>",d=n?"<defs>"+n+"</defs>"+i:i)}),h=u.width,p=u.height,g=f.width,m=f.height,null===h?l=O(s=null===p?"1em":"auto"===p?m:p,g/m):(l="auto"===h?g:h,s=null===p?O(l,m/g):"auto"===p?m:p),y={},(k=(e,t)=>{"unset"!==t&&"undefined"!==t&&"none"!==t&&(y[e]=t.toString())})("width",l),k("height",s),y.viewBox=(x=[f.left,f.top,g,m]).join(" "),{attributes:y,viewBox:x,body:d}),P=A.attributes;if(j.inline&&(E.verticalAlign="-0.125em"),"svg"===S){L.style={...E,...z},Object.assign(L,P);let e=0,n=r.id;return"string"==typeof n&&(n=n.replace(/-/g,"_")),L.dangerouslySetInnerHTML={__html:(a=function(e,t=T){let r,n=[];for(;r=C.exec(e);)n.push(r[1]);if(!n.length)return e;let i="suffix"+(0x1000000*Math.random()|Date.now()).toString(16);return n.forEach(r=>{let n="function"==typeof t?t(r):t+(N++).toString(),a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+n+i+"$3")}),e=e.replace(RegExp(i,"g"),"")}(A.body,n?()=>n+"ID"+e++:"iconifyReact"),void 0===t&&function(){try{t=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch(e){t=null}}(),t?t.createHTML(a):a)},(0,i.createElement)("svg",L)}let{body:_,width:I,height:R}=e,F="mask"===S||"bg"!==S&&-1!==_.indexOf("currentColor"),$=function(e,t){let r=-1===e.indexOf("xlink:")?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let e in t)r+=" "+e+'="'+t[e]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}(_,{...P,width:I+"",height:R+""});return L.style={...E,"--svg":'url("data:image/svg+xml,'+$.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")+'")',width:et(P.width),height:et(P.height),...Q,...F?X:Z,...z},(0,i.createElement)("span",L)})({...o,...h},e,d):e.children?e.children:e.fallback?e.fallback:(0,i.createElement)("span",{})}let en=(0,i.forwardRef)((e,t)=>er({...e,_ref:t}));(0,i.forwardRef)((e,t)=>er({inline:!0,...e,_ref:t}));var ei=e.i(66595),ea=e.i(56420);let el=(0,ea.default)("cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]),eo=(0,ea.default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]),es=(0,ea.default)("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]),ec=(0,ea.default)("bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]),eu=(0,ea.default)("at-sign",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8",key:"7n84p3"}]]),ef=(0,ea.default)("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);var ed=e.i(68590);let eh=(0,ea.default)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]),ep=(0,ea.default)("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);var eg=e.i(30274);let em=(0,ea.default)("messages-square",[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]]);var ey=e.i(51921);let eb=(0,ea.default)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]),ek=(0,ea.default)("triangle",[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]]),ex=(0,ea.default)("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]),ev=(0,ea.default)("wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]),ej=[{name:"Google",host:"google.com",icon:"simple-icons:google",fallback:(0,n.jsx)(ei.Search,{size:20})},{name:"Cloudflare",host:"cloudflare.com",icon:"simple-icons:cloudflare",fallback:(0,n.jsx)(el,{size:20})},{name:"YouTube",host:"youtube.com",icon:"simple-icons:youtube",fallback:(0,n.jsx)(eo,{size:20})},{name:"GitHub",host:"github.com",icon:"simple-icons:github",fallback:(0,n.jsx)(es,{size:20})},{name:"ChatGPT",host:"chatgpt.com",icon:"simple-icons:openai",fallback:(0,n.jsx)(ec,{size:20})},{name:"X",host:"x.com",icon:"simple-icons:x",fallback:(0,n.jsx)(eu,{size:20})},{name:"Instagram",host:"instagram.com",icon:"simple-icons:instagram",fallback:(0,n.jsx)(ef,{size:20})},{name:"Reddit",host:"reddit.com",icon:"simple-icons:reddit",fallback:(0,n.jsx)(ed.MessageSquare,{size:20})},{name:"Wikipedia",host:"wikipedia.org",icon:"simple-icons:wikipedia",fallback:(0,n.jsx)(eh,{size:20})},{name:"Apple",host:"apple.com",icon:"simple-icons:apple",fallback:(0,n.jsx)(ep,{size:20})},{name:"Telegram",host:"telegram.org",icon:"simple-icons:telegram",fallback:(0,n.jsx)(eg.Send,{size:20})},{name:"Discord",host:"discord.com",icon:"simple-icons:discord",fallback:(0,n.jsx)(em,{size:20})},{name:"TikTok",host:"tiktok.com",icon:"simple-icons:tiktok",fallback:(0,n.jsx)(ey.Music,{size:20})},{name:"npm",host:"npmjs.com",icon:"simple-icons:npm",fallback:(0,n.jsx)(eb,{size:20})},{name:"Vercel",host:"vercel.com",icon:"simple-icons:vercel",fallback:(0,n.jsx)(ek,{size:20})}];function ew({icon:e,fallback:t}){let[r,a]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let t=new Image;t.onload=()=>a(!0),t.onerror=()=>a(!1),t.src=`https://api.iconify.design/${e.replace(":","/")}.svg`},[e]),(0,n.jsxs)("span",{className:"brand-icon-wrap",children:[(0,n.jsx)("span",{className:`brand-icon-fallback ${r?"hidden":""}`,children:t}),(0,n.jsx)("span",{className:`brand-icon-real ${r?"visible":""}`,children:(0,n.jsx)(en,{icon:e,width:20,height:20})})]})}function eM(){let[e,t]=(0,i.useState)(new Map),[r,a]=(0,i.useState)(!1),l=(0,i.useRef)(new Map),o=(0,i.useCallback)(e=>{t(t=>{let r=new Map(t);return r.set(e,{status:"pending",latency:0}),r});let r=new AbortController;l.current.set(e,r);let n=performance.now(),i=(r,n)=>{t(t=>{let i=new Map(t);return i.set(e,{status:r,latency:n}),i})},a=setTimeout(()=>{r.abort()},5e3);fetch(`https://${e}/`,{method:"HEAD",mode:"no-cors",cache:"no-store",signal:r.signal}).then(()=>{clearTimeout(a),i("ok",Math.round(performance.now()-n))}).catch(()=>{clearTimeout(a),i("timeout",0)})},[]),s=(0,i.useCallback)(()=>{a(!0);let e=new Map;ej.forEach(t=>{e.set(t.host,{status:"pending",latency:0})}),t(e);let r=new Set(ej.map(e=>e.host));ej.forEach(e=>{let n=new AbortController;l.current.set(e.host,n);let i=performance.now(),o=(n,i)=>{r.has(e.host)&&(r.delete(e.host),t(t=>{let r=new Map(t);return r.set(e.host,{status:n,latency:i}),r}),0===r.size&&a(!1))},s=setTimeout(()=>{n.abort()},5e3);fetch(`https://${e.host}/`,{method:"HEAD",mode:"no-cors",cache:"no-store",signal:n.signal}).then(()=>{clearTimeout(s),o("ok",Math.round(performance.now()-i))}).catch(()=>{clearTimeout(s),o("timeout",0)})})},[]);return(0,i.useEffect)(()=>(s(),()=>{l.current.forEach(e=>e.abort()),l.current.clear()}),[s]),(0,n.jsxs)("div",{className:"ping-page",children:[(0,n.jsxs)("div",{className:"ping-header",children:[(0,n.jsxs)("div",{className:"ping-title-wrap",children:[(0,n.jsx)(ev,{size:28,className:"ping-title-icon"}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h1",{className:"ping-title",children:"网络连通性"}),(0,n.jsx)("p",{className:"ping-subtitle",children:"通过向对应网站发送请求进行测试,延迟值仅供参考。"})]})]}),(0,n.jsx)("button",{className:"ping-refresh-btn",onClick:s,disabled:r,"aria-label":"重新测试全部",title:"重新测试全部",children:(0,n.jsx)(ex,{size:18,className:r?"ping-spin":""})})]}),(0,n.jsx)("div",{className:"ping-grid",children:ej.map(t=>{let r=e.get(t.host),i=!r||"pending"===r.status,a=r?.status==="timeout";return(0,n.jsxs)("div",{className:`ping-card ${i?"pending":""}`,children:[(0,n.jsxs)("div",{className:"ping-card-top",children:[(0,n.jsx)("span",{className:"ping-card-icon",children:(0,n.jsx)(ew,{icon:t.icon,fallback:t.fallback})}),(0,n.jsx)("a",{href:`https://${t.host}`,target:"_blank",rel:"noreferrer",className:"ping-card-name",children:t.name}),(0,n.jsx)("button",{className:"ping-card-refresh",onClick:()=>o(t.host),disabled:i,"aria-label":`重新测试 ${t.name}`,title:"重新测试",children:(0,n.jsx)(ex,{size:13,className:i?"ping-spin":""})})]}),(0,n.jsxs)("div",{className:"ping-card-bottom",children:[i?(0,n.jsx)("span",{className:"ping-pulse-dot"}):(0,n.jsx)("span",{className:"ping-status-label",style:{color:a?"var(--danger)":"var(--success)"},children:a?"不可用":"可用"}),(0,n.jsx)("span",{className:"ping-latency",style:i?{color:"var(--text-muted)"}:{color:a?"var(--danger)":"var(--success)"},children:i?"--":a?"超时":`${r.latency} ms`})]})]},t.host)})})]})}var eS=e.i(40983);e.s(["default",0,function(){return(0,n.jsx)(eS.MarketingLayout,{children:(0,n.jsx)(eM,{})})}],23449)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,11241,e=>{"use strict";let t=(0,e.i(56420).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],11241)},35965,96699,93583,e=>{"use strict";var t=e.i(56420);let a=(0,t.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);e.s(["Sun",0,a],35965);let s=(0,t.default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);e.s(["Moon",0,s],96699);let l=(0,t.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);e.s(["Menu",0,l],93583)},59665,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(93583),l=e.i(5142);let i=(0,a.createContext)(null);e.s(["default",0,function({sidebar:e,headerTitle:d,headerRight:c,children:h}){let[n,r]=(0,l.useDisclosure)(!1),[o,u]=(0,a.useState)(!1),p=function(e,{getInitialValueInEffect:t}={getInitialValueInEffect:!0}){let[s,l]=(0,a.useState)(t?void 0:!!("u">typeof window&&"matchMedia"in window)&&window.matchMedia(e).matches);return(0,a.useEffect)(()=>{try{if("matchMedia"in window){let t=window.matchMedia(e);l(t.matches);let a=e=>l(e.matches);return t.addEventListener("change",a),()=>{t.removeEventListener("change",a)}}}catch(e){return}},[e]),s||!1}("(max-width: 768px)");return(0,t.jsx)(i.Provider,{value:{closeSidebar:r.close},children:(0,t.jsxs)("div",{className:"app-layout",children:[(0,t.jsx)("div",{className:`sidebar-overlay ${n?"visible":""}`,onClick:()=>r.close()}),(0,t.jsx)("div",{className:`sidebar ${n?"open":""} ${o?"collapsed":""}`,children:e({closeSidebar:r.close})}),(0,t.jsxs)("div",{className:"main-content",children:[(0,t.jsxs)("header",{className:"app-header",children:[(0,t.jsxs)("div",{className:"header-left",children:[(0,t.jsx)("button",{onClick:()=>{p?r.toggle():u(!o)},className:"icon-btn sidebar-toggle-btn","aria-label":p?"打开菜单":o?"展开侧边栏":"收起侧边栏",children:(0,t.jsx)(s.Menu,{size:16})}),d]}),(0,t.jsx)("div",{className:"header-right",children:c})]}),h]})]})})}],59665)},8734,e=>{"use strict";let t=(0,e.i(56420).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",0,t],8734)},82022,e=>{"use strict";let t=(0,e.i(56420).default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",0,t],82022)},70904,e=>{"use strict";let t=(0,e.i(56420).default)("wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);e.s(["Wallet",0,t],70904)}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,11241,e=>{"use strict";let t=(0,e.i(56420).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,t],11241)},35965,96699,93583,e=>{"use strict";var t=e.i(56420);let r=(0,t.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);e.s(["Sun",0,r],35965);let o=(0,t.default)("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);e.s(["Moon",0,o],96699);let s=(0,t.default)("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);e.s(["Menu",0,s],93583)},59665,e=>{"use strict";var t=e.i(43476),r=e.i(71645),o=e.i(93583),s=e.i(5142);let i=(0,r.createContext)(null);e.s(["default",0,function({sidebar:e,headerTitle:n,headerRight:a,children:h}){let[l,u]=(0,s.useDisclosure)(!1),[c,d]=(0,r.useState)(!1),p=function(e,{getInitialValueInEffect:t}={getInitialValueInEffect:!0}){let[o,s]=(0,r.useState)(t?void 0:!!("u">typeof window&&"matchMedia"in window)&&window.matchMedia(e).matches);return(0,r.useEffect)(()=>{try{if("matchMedia"in window){let t=window.matchMedia(e);s(t.matches);let r=e=>s(e.matches);return t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}}}catch(e){return}},[e]),o||!1}("(max-width: 768px)");return(0,t.jsx)(i.Provider,{value:{closeSidebar:u.close},children:(0,t.jsxs)("div",{className:"app-layout",children:[(0,t.jsx)("div",{className:`sidebar-overlay ${l?"visible":""}`,onClick:()=>u.close()}),(0,t.jsx)("div",{className:`sidebar ${l?"open":""} ${c?"collapsed":""}`,children:e({closeSidebar:u.close})}),(0,t.jsxs)("div",{className:"main-content",children:[(0,t.jsxs)("header",{className:"app-header",children:[(0,t.jsxs)("div",{className:"header-left",children:[(0,t.jsx)("button",{onClick:()=>{p?u.toggle():d(!c)},className:"icon-btn sidebar-toggle-btn","aria-label":p?"打开菜单":c?"展开侧边栏":"收起侧边栏",children:(0,t.jsx)(o.Menu,{size:16})}),n]}),(0,t.jsx)("div",{className:"header-right",children:a})]}),h]})]})})}],59665)},26913,e=>{"use strict";class t extends Error{name="KyError";get isKyError(){return!0}}class r extends t{name="HTTPError";response;request;options;data;constructor(e,t,r){const o=e.status||0===e.status?e.status:"",s=e.statusText??"",i=`${o} ${s}`.trim(),n=i?`status code ${i}`:"an unknown error";super(`Request failed with ${n}: ${t.method} ${t.url}`),this.response=e,this.request=t,this.options=r}}class o extends t{name="NetworkError";request;constructor(e,t){super(`Request failed due to a network error: ${e.method} ${e.url}`,t),this.request=e}}class s extends Error{name="NonError";value;constructor(e){let t="Non-error value was thrown";try{"string"==typeof e?t=e:e&&"object"==typeof e&&"message"in e&&"string"==typeof e.message&&(t=e.message)}catch{}super(t),this.value=e}}class i extends t{name="ForceRetryError";customDelay;code;customRequest;constructor(e){const t=e?.cause?e.cause instanceof Error?e.cause:new s(e.cause):void 0;super(e?.code?`Forced retry: ${e.code}`:"Forced retry",t?{cause:t}:void 0),this.customDelay=e?.delay,this.code=e?.code,this.customRequest=e?.request}}class n extends Error{name="SchemaValidationError";issues;constructor(e){super("Response schema validation failed"),this.issues=e}}class a extends t{name="TimeoutError";request;constructor(e){super(`Request timed out: ${e.method} ${e.url}`),this.request=e}}let h=(()=>{let e=!1,t=!1,r="function"==typeof globalThis.Request;if("function"==typeof globalThis.ReadableStream&&r)try{t=new globalThis.Request("https://empty.invalid",{body:new globalThis.ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type")}catch(e){if(e instanceof Error&&"unsupported BodyInit type"===e.message)return!1;throw e}return e&&!t})(),l="function"==typeof globalThis.AbortController,u="function"==typeof globalThis.AbortSignal&&"function"==typeof globalThis.AbortSignal.any,c="function"==typeof globalThis.ReadableStream,d="function"==typeof globalThis.FormData,p=["get","post","put","patch","head","delete"],f={json:"application/json",text:"text/*",formData:"multipart/form-data",arrayBuffer:"*/*",blob:"*/*",bytes:"*/*"},y=Symbol("stop");class m{options;constructor(e){this.options=e}}let g=e=>new m(e),b={json:!0,parseJson:!0,stringifyJson:!0,searchParams:!0,baseUrl:!0,prefix:!0,retry:!0,timeout:!0,totalTimeout:!0,hooks:!0,throwHttpErrors:!0,onDownloadProgress:!0,onUploadProgress:!0,fetch:!0,context:!0},w={method:!0,headers:!0,body:!0,mode:!0,credentials:!0,cache:!0,redirect:!0,referrer:!0,referrerPolicy:!0,integrity:!0,keepalive:!0,signal:!0,window:!0,duplex:!0},R=new TextEncoder,T=(e,t,r)=>{let o,s=0;return e.pipeThrough(new TransformStream({transform(e,i){if(i.enqueue(e),o){s+=o.byteLength;let e=0===t?0:s/t;e>=1&&(e=1-Number.EPSILON),r?.({percent:e,totalBytes:Math.max(t,s),transferredBytes:s},o)}o=e},flush(){o&&(s+=o.byteLength,r?.({percent:1,totalBytes:Math.max(t,s),transferredBytes:s},o))}}))},v=e=>null!==e&&"object"==typeof e,q=Symbol("replaceOption"),x=e=>v(e)&&!0===e[q]?{isReplace:!0,value:e.value}:{isReplace:!1,value:e},k=(...e)=>{for(let t of e)if((!v(t)||Array.isArray(t))&&void 0!==t)throw TypeError("The `options` argument must be an object");return N({},...e)},S=(e={},t={})=>{let r=new globalThis.Headers(e),o=t instanceof globalThis.Headers;for(let[e,s]of new globalThis.Headers(t).entries())o&&"undefined"===s||void 0===s?r.delete(e):r.set(e,s);return r},E=e=>{if(!v(e)||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||null===t},P=e=>{if(e instanceof URLSearchParams){let t=new URLSearchParams(e),r=e[O];return r&&(t[O]=new Set(r)),t}return e instanceof globalThis.Headers?new globalThis.Headers(e):Array.isArray(e)?[...e]:E(e)?{...e}:e},j=(e,t)=>E(e)&&E(t)?Object.fromEntries(Object.entries({...e,...t}).filter(e=>void 0!==e[1])):S(e,t);function A(e,t,r){return Object.hasOwn(t,r)&&void 0===t[r]?[]:N(e[r]??[],t[r]??[])}let C=(e={},t={})=>({init:A(e,t,"init"),beforeRequest:A(e,t,"beforeRequest"),beforeRetry:A(e,t,"beforeRetry"),beforeError:A(e,t,"beforeError"),afterResponse:A(e,t,"afterResponse")}),O=Symbol("deletedParameters"),L=(e,t)=>{let r=new URLSearchParams,o=new Set;for(let s of[e,t])if(void 0!==s)if(s instanceof URLSearchParams){for(let[e,t]of s.entries())r.append(e,t),o.delete(e);let e=s[O];if(e)for(let t of e)r.delete(t),o.add(t)}else if(Array.isArray(s))for(let e of s){if(!Array.isArray(e)||2!==e.length)throw TypeError("Array search parameters must be provided in [[key, value], ...] format");r.append(String(e[0]),String(e[1])),o.delete(String(e[0]))}else if(v(s))for(let[e,t]of Object.entries(s))void 0===t?(r.delete(e),o.add(e)):(r.append(e,String(t)),o.delete(e));else for(let[e,t]of new URLSearchParams(s).entries())r.append(e,t),o.delete(e);return o.size>0&&(r[O]=o),r},N=(...e)=>{let t,r={},o={},s={},i=[];for(let n of e)if(Array.isArray(n))Array.isArray(r)||(r=[]),r=[...r,...n];else if(v(n)){for(let[e,o]of Object.entries(n)){if("signal"===e&&o instanceof globalThis.AbortSignal){i.push(o);continue}let s=x(o),{isReplace:n}=s;if(o=s.value,"context"===e){if(null!=o&&(!v(o)||Array.isArray(o)))throw TypeError("The `context` option must be an object");r={...r,context:null==o?{}:n?{...o}:{...r.context,...o}};continue}if("searchParams"===e){t=null==o?void 0:n||void 0===t?o:L(t,o);continue}v(o)&&!n&&e in r&&(o=N(r[e],o)),r={...r,[e]:o}}if(v(n.hooks)){let{value:e,isReplace:t}=x(n.hooks);s=t?C({},e):C(s,e),r.hooks=s}if(v(n.headers)){let{value:e,isReplace:t}=x(n.headers);o=t?P(e):j(o,e),r.headers=o}}return void 0!==t&&(r.searchParams=t),i.length>0&&(1===i.length?r.signal=i[0]:u?r.signal=AbortSignal.any(i):r.signal=i.at(-1)),r},D={limit:2,methods:["get","put","head","delete","options","trace"],statusCodes:[408,413,429,500,502,503,504],afterStatusCodes:[413,429,503],maxRetryAfter:1/0,backoffLimit:1/0,delay:e=>.3*2**(e-1)*1e3,jitter:void 0,retryOnTimeout:!1};async function M(e,t,r,o){return new Promise((s,i)=>{let n=setTimeout(()=>{r&&r.abort(),i(new a(e))},o.timeout);o.fetch(e,t).then(s).catch(i).then(()=>{clearTimeout(n)})})}async function B(e,{signal:t}){return new Promise((r,o)=>{function s(){clearTimeout(i),o(t.reason)}t&&(t.throwIfAborted(),t.addEventListener("abort",s,{once:!0}));let i=setTimeout(()=>{t?.removeEventListener("abort",s),r()},e)})}let U=Object.prototype.toString,H=new Set(["network error","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed","fetch failed","terminated"," A network error occurred.","Network connection lost"]),z=(e,t)=>e instanceof t||e?.name===t.name,F=Symbol("timedOutResponseData"),$="The `schema` argument must follow the Standard Schema specification",J=Object.prototype.toString,I=e=>e instanceof globalThis.Request||"[object Request]"===J.call(e),W=e=>e instanceof globalThis.Response||"[object Response]"===J.call(e),_=async(e,t)=>{if("object"!=typeof t&&"function"!=typeof t||null===t)throw TypeError($);let r=t["~standard"];if("object"!=typeof r||null===r||"function"!=typeof r.validate)throw TypeError($);let o=await r.validate(e);if(o.issues)throw new n(o.issues);return o.value};class K{static create(e,t){var o,s;let n,a=t.hooks?.init??[],h=a.length>0?(n={...t,json:P(t.json),context:P(t.context),headers:P(t.headers),searchParams:Array.isArray(o=t.searchParams)?o.map(e=>[...e]):P(o)},void 0!==t.retry&&(n.retry="object"!=typeof(s=t.retry)?s:{...s,...s.methods&&{methods:[...s.methods]},...s.statusCodes&&{statusCodes:[...s.statusCodes]},...s.afterStatusCodes&&{afterStatusCodes:[...s.afterStatusCodes]}}),n):t;for(let e of a)e(h);let l=new K(e,h),u=async()=>{if("number"==typeof l.#e.timeout&&l.#e.timeout>0x7fffffff)throw RangeError("The `timeout` option cannot be greater than 2147483647");if("number"==typeof l.#e.totalTimeout&&l.#e.totalTimeout>0x7fffffff)throw RangeError("The `totalTimeout` option cannot be greater than 2147483647");await Promise.resolve();let e=await l.#t(),t=e??await l.#r(async()=>l.#o()),o=void 0!==e||l.#s();for(;;){if(void 0===t)return t;if(W(t))try{t=await l.#i(t)}catch(r){if(!(r instanceof i))throw r;let e=await l.#n(r,async()=>l.#o());if(void 0===e)return e;t=e,o=l.#s();continue}let e=t;if(!e.ok&&"opaque"!==e.type&&("function"==typeof l.#e.throwHttpErrors?l.#e.throwHttpErrors(e.status):l.#e.throwHttpErrors)){let s=new r(e,l.#a(e),l.#h());if(s.data=await l.#l(e),o)throw s;let i=await l.#n(s,async()=>l.#o());if(void 0===i)return i;t=i,o=l.#s();continue}break}if(!W(t))return t;if(l.#u(t),l.#e.onDownloadProgress){if("function"!=typeof l.#e.onDownloadProgress)throw TypeError("The `onDownloadProgress` option must be a function");if(!c)throw Error("Streams are not supported in your environment. `ReadableStream` is missing.");let e=t.clone();l.#c(t);var s=l.#e.onDownloadProgress;if(!e.body)return e;let r={status:e.status,statusText:e.statusText,headers:e.headers};if(204===e.status)return new Response(null,r);let o=Math.max(0,Number(e.headers.get("content-length"))||0);return new Response(T(e.body,o,s),r)}return t},d=(async()=>{try{return await u()}catch(t){if(!(t instanceof Error)||l.#d.has(t))throw t;let e=t;for(let t of l.#e.hooks.beforeError){let r=await t({request:l.request,options:l.#h(),error:e,retryCount:l.#p});r instanceof Error&&(e=r)}throw e}finally{let e=l.#f;l.#y(e?.body??void 0),l.request!==e&&l.#y(l.request.body??void 0)}})();for(let[e,t]of Object.entries(f))("bytes"!==e||"function"==typeof globalThis.Response?.prototype?.bytes)&&(d[e]=async r=>{l.request.headers.set("accept",l.request.headers.get("accept")||t);let o=await d;if("json"!==e)return o[e]();let s=await o.text();if(""===s)return void 0!==r?_(void 0,r):JSON.parse(s);let i=h.parseJson?await h.parseJson(s,{request:l.#a(o),response:o}):JSON.parse(s);return void 0===r?i:_(i,r)});return d}static #m(e){return!e||"object"!=typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.fromEntries(Object.entries(e).filter(([,e])=>void 0!==e))}request;#g;#p=0;#b;#e;#f;#w;#d=new WeakSet;#R;#T;#v=!1;#q=new WeakMap;constructor(e,t={}){if(this.#b=e,Object.hasOwn(t,"prefixUrl"))throw Error("The `prefixUrl` option has been renamed `prefix` in v2 and enhanced to allow slashes in input. See also the new `baseUrl` option for improved flexibility with standard URL resolution: https://github.com/sindresorhus/ky#baseurl");if(this.#e={...t,headers:S(this.#b.headers,t.headers),hooks:C({},t.hooks),method:(e=>p.includes(e)?e.toUpperCase():e)(t.method??this.#b.method??"GET"),prefix:String(t.prefix||""),retry:((e={})=>{if("number"==typeof e)return{...D,limit:e};if(e.methods&&!Array.isArray(e.methods))throw Error("retry.methods must be an array");if(e.statusCodes&&!Array.isArray(e.statusCodes))throw Error("retry.statusCodes must be an array");let t=Object.fromEntries(Object.entries({...e,methods:e.methods?.map(e=>e.toLowerCase())}).filter(([,e])=>void 0!==e));return{...D,...t}})(t.retry),throwHttpErrors:t.throwHttpErrors??!0,timeout:t.timeout??1e4,totalTimeout:t.totalTimeout??!1,fetch:t.fetch??globalThis.fetch.bind(globalThis),context:t.context??{}},"string"!=typeof this.#b&&!(this.#b instanceof URL||this.#b instanceof globalThis.Request))throw TypeError("`input` must be a string, URL, or Request");if("string"==typeof this.#b){if(this.#e.prefix){const e=this.#e.prefix.replace(/\/+$/,""),t=this.#b.replace(/^\/+/,"");this.#b=`${e}/${t}`}if(this.#e.baseUrl){let e;try{e=new URL(this.#b)}catch{}e||(this.#b=new URL(this.#b,new Request(this.#e.baseUrl).url))}}l&&u&&(this.#w=this.#e.signal??this.#b.signal,this.#g=new globalThis.AbortController,this.#e.signal=this.#x()),h&&(this.#e.duplex="half"),void 0!==this.#e.json&&(this.#e.body=this.#e.stringifyJson?.(this.#e.json)??JSON.stringify(this.#e.json),this.#e.headers.set("content-type",this.#e.headers.get("content-type")??"application/json"));const r=t.headers&&new globalThis.Headers(t.headers).has("content-type");if(this.#b instanceof globalThis.Request&&(d&&this.#e.body instanceof globalThis.FormData||this.#e.body instanceof URLSearchParams)&&!r&&this.#e.headers.delete("content-type"),this.request=new globalThis.Request(this.#b,this.#e),(e=>void 0!==e&&(Array.isArray(e)?e.length>0:e instanceof URLSearchParams?e.size>0||!!e[O]?.size:"object"==typeof e?Object.keys(e).length>0:"string"==typeof e?e.trim().length>0:!!e))(this.#e.searchParams)){const e=new URL(this.request.url),t=this.#e.searchParams?.[O];if(t)for(const r of t)e.searchParams.delete(r);if("string"==typeof this.#e.searchParams){const t=this.#e.searchParams.replace(/^\?/,"");""!==t&&(e.search=e.search?`${e.search}&${t}`:`?${t}`)}else for(const[t,r]of new URLSearchParams(K.#m(this.#e.searchParams)).entries())e.searchParams.append(t,r);if(this.#e.searchParams&&"object"==typeof this.#e.searchParams&&!Array.isArray(this.#e.searchParams)&&!(this.#e.searchParams instanceof URLSearchParams))for(const[t,r]of Object.entries(this.#e.searchParams))void 0===r&&e.searchParams.delete(t);this.request=new globalThis.Request(e,this.#e)}if(this.#e.onUploadProgress&&"function"!=typeof this.#e.onUploadProgress)throw TypeError("The `onUploadProgress` option must be a function");this.#T="number"==typeof this.#e.totalTimeout?this.#k():void 0}#S(){let e=this.#e.retry.delay(this.#p+1),t=e;return!0===this.#e.retry.jitter?t=Math.random()*e:"function"==typeof this.#e.retry.jitter&&(!Number.isFinite(t=this.#e.retry.jitter(e))||t<0)&&(t=e),Math.min(this.#e.retry.backoffLimit,t)}async #E(e){if(this.#p>=this.#e.retry.limit)throw e;let t=e instanceof Error?e:new s(e);if(t instanceof i)return t.customDelay??this.#S();if(!this.#e.retry.methods.includes(this.request.method.toLowerCase()))throw e;if(void 0!==this.#e.retry.shouldRetry){let r=await this.#e.retry.shouldRetry({error:t,retryCount:this.#p+1});if(!1===r)throw e;if(!0===r)return this.#S()}if(z(e,a)){if(!this.#e.retry.retryOnTimeout)throw e;return this.#S()}if(z(e,r)){if(!this.#e.retry.statusCodes.includes(e.response.status))throw e;let t=e.response.headers.get("Retry-After")??e.response.headers.get("RateLimit-Reset")??e.response.headers.get("X-RateLimit-Retry-After")??e.response.headers.get("X-RateLimit-Reset")??e.response.headers.get("X-Rate-Limit-Reset");if(t&&this.#e.retry.afterStatusCodes.includes(e.response.status)){let e=1e3*Number(t);return(Number.isNaN(e)?e=Date.parse(t)-Date.now():e>=Date.parse("2024-01-01")&&(e-=Date.now()),Number.isFinite(e))?(e=Math.max(0,e),Math.min(this.#e.retry.maxRetryAfter,e)):Math.min(this.#e.retry.maxRetryAfter,this.#S())}if(413===e.response.status)throw e;return this.#S()}if(!z(e,o))throw e;return this.#S()}#u(e){let t=this.#a(e);return this.#e.parseJson&&(e.json=async()=>{let r=await e.text();return""===r?JSON.parse(r):this.#e.parseJson(r,{request:t,response:e})}),e}async #l(e){let t=await this.#P(e,this.#j());if(t===F)return void this.#A();if(!t)return;if(!this.#C(e.headers.get("content-type")??""))return t;let r=await this.#O(t,e,this.#j(),this.#a(e));return r===F?void this.#A():r}#j(){let e=!1===this.#e.timeout?1e4:this.#e.timeout,t=this.#L();if(void 0===t)return e;if(t<=0)throw new a(this.request);return Math.min(e,t)}#C(e){let t=(e.split(";",1)[0]??"").trim().toLowerCase();return/\/(?:.*[.+-])?json$/.test(t)}async #P(e,t){let r,{body:o}=e;if(!o)try{return await e.text()}catch{return}try{r=o.getReader()}catch{return}let s=(e=>{let t=/;\s*charset\s*=\s*(?:"([^"]+)"|([^;,\s]+))/i.exec(e),r=t?.[1]??t?.[2];if(r)try{return new TextDecoder(r)}catch{}return new TextDecoder})(e.headers.get("content-type")??""),i=[],n=0,a=(async()=>{try{for(;;){let{done:e,value:t}=await r.read();if(e)break;if((n+=t.byteLength)>0xa00000)return void r.cancel().catch(()=>void 0);i.push(s.decode(t,{stream:!0}))}}catch{return}return i.push(s.decode()),i.join("")})(),h=new Promise(e=>{let r=setTimeout(()=>{e(F)},t);a.finally(()=>{clearTimeout(r)})}),l=await Promise.race([a,h]);return l===F&&r.cancel().catch(()=>void 0),l}async #O(e,t,r,o){let s;try{return await Promise.race([Promise.resolve().then(()=>this.#e.parseJson?this.#e.parseJson(e,{request:o,response:t}):JSON.parse(e)),new Promise(e=>{s=setTimeout(()=>{e(F)},r)})])}catch{return}finally{clearTimeout(s)}}#y(e){e&&e.cancel().catch(()=>void 0)}#c(e){this.#y(e.body??void 0)}#x(){return this.#w?AbortSignal.any([this.#w,this.#g.signal]):this.#g.signal}#A(){let e=this.#L();if(void 0!==e&&e<=0)throw new a(this.request)}async #t(){for(let e of this.#e.hooks.beforeRequest){let t=await e({request:this.request,options:this.#h(),retryCount:0});if(I(t))this.#N(t);else if(W(t))return t}}async #i(e){let t=this.#a(e);for(let r of this.#e.hooks.afterResponse){let o,s=this.#D(e.clone(),t);this.#u(s);try{o=await r({request:this.request,options:this.#h(),response:s,retryCount:this.#p})}catch(t){throw s!==e&&this.#c(s),this.#c(e),t}if(o instanceof m)throw s!==e&&this.#c(s),this.#c(e),new i(o.options);let n=W(o)?this.#D(o,t):e;s!==e&&s!==n&&s.body!==n.body&&this.#c(s),e!==n&&e.body!==n.body&&this.#c(e),e=n}return e}async #r(e){try{return await e()}catch(t){return this.#n(t,e)}}async #n(e,t){this.#v=!1;let r=Math.min(await this.#E(e),0x7fffffff),o={signal:this.#w},s=this.#L();if(void 0!==s){if(s<=0)throw new a(this.request);if(r>=s)throw await B(s,o),new a(this.request)}if(await B(r,o),this.#A(),e instanceof i&&e.customRequest){let t=new globalThis.Request(e.customRequest,this.#e.signal?{signal:this.#e.signal}:void 0);this.#N(t)}for(let t of this.#e.hooks.beforeRetry){let r;try{r=await t({request:this.request,options:this.#h(),error:e,retryCount:this.#p+1})}catch(t){throw t instanceof Error&&t!==e&&this.#d.add(t),t}if(I(r)){this.#N(r);break}if(W(r))return this.#v=!0,this.#p++,r;if(r===y)return}return this.#A(),this.#p++,this.#r(t)}#s(){let e=this.#v;return this.#v=!1,e}async #o(){this.#g?.signal.aborted&&(this.#g=new globalThis.AbortController,this.#e.signal=this.#x(),this.request=new globalThis.Request(this.request,{signal:this.#e.signal}));let e=(e=>{let t={};for(let r in e)Object.hasOwn(e,r)&&(r in w||r in b||(t[r]=e[r]));return t})(this.#e),t=this.#e.retry.limit>0?this.request.clone():void 0,r=this.#M(this.request,this.#e.body??void 0);this.#f=r,t&&(this.request=t);try{let t=this.#L();if(void 0!==t&&t<=0)throw new a(this.request);let o=!1===this.#e.timeout?t:void 0===t?this.#e.timeout:Math.min(this.#e.timeout,t),s=void 0===o?await this.#e.fetch(r,e):await M(r,e,this.#g,{timeout:o,fetch:this.#e.fetch});return this.#D(s,r)}catch(e){if(function(e){if(!(e&&"[object Error]"===U.call(e)&&"TypeError"===e.name&&"string"==typeof e.message))return!1;let{message:t,stack:r}=e;return"Load failed"===t?void 0===r||"__sentry_captured__"in e:!!(t.startsWith("error sending request for url")||"Failed to fetch"===t||t.startsWith("Failed to fetch (")&&t.endsWith(")"))||H.has(t)}(e))throw new o(this.request,{cause:e});throw e}}#L(){if(void 0===this.#T)return;let e=this.#k()-this.#T;return Math.max(0,this.#e.totalTimeout-e)}#k(){return globalThis.performance?.now()??Date.now()}#h(){if(!this.#R){let{hooks:e,json:t,parseJson:r,stringifyJson:o,searchParams:s,timeout:i,totalTimeout:n,throwHttpErrors:a,fetch:h,...l}=this.#e;this.#R=Object.freeze(l)}return this.#R}#N(e){this.#R=void 0,this.request=e}#a(e){return this.#q.get(e)??this.request}#D(e,t){return this.#q.set(e,t),e}#M(e,t){return this.#e.onUploadProgress&&e.body&&h?((e,t,r)=>{if(!e.body)return e;let o=(e=>{if(!e)return 0;if(e instanceof FormData){let t=0;for(let[r,o]of e)t+=40,t+=R.encode(`Content-Disposition: form-data; name="${r}"`).byteLength,t+="string"==typeof o?R.encode(o).byteLength:o.size;return t}return e instanceof Blob?e.size:e instanceof ArrayBuffer||ArrayBuffer.isView(e)?e.byteLength:"string"==typeof e?R.encode(e).byteLength:e instanceof URLSearchParams?R.encode(e.toString()).byteLength:0})(r??e.body);return new Request(e,{duplex:"half",body:T(e.body,o,t)})})(e,this.#e.onUploadProgress,t??this.#e.body??void 0):e}}let V=e=>{let t=(t,r)=>K.create(t,k(e,r));for(let r of p)t[r]=(t,o)=>K.create(t,k(e,o,{method:r}));return t.create=e=>V(k(e)),t.extend=t=>("function"==typeof t&&(t=t(e??{})),V(k(e,t))),t.stop=y,t.retry=g,t},G=V(),X="mostbox_backend_url";function Q(){let e=localStorage.getItem(X)||"";return G.create({prefix:e})}let Y=Q();async function Z(){try{return(await fetch("/api/node-id",{method:"GET",signal:AbortSignal.timeout(2e3)})).ok}catch{return!1}}async function ee(){try{return(await fetch("http://localhost:1976/api/node-id",{method:"GET",signal:AbortSignal.timeout(2e3)})).ok}catch{return!1}}e.s(["api",()=>Y,"detectLocalhostBackend",0,ee,"detectSameOriginBackend",0,Z,"setBackendUrl",0,function(e){let t=(e||"").trim().replace(/\/+$/,"");t?localStorage.setItem(X,t):localStorage.removeItem(X),Y=Q()}],26913)},68877,e=>{"use strict";let t=(0,e.i(56420).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,t],68877)},68590,e=>{"use strict";let t=(0,e.i(56420).default)("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);e.s(["MessageSquare",0,t],68590)},30274,e=>{"use strict";let t=(0,e.i(56420).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);e.s(["Send",0,t],30274)}]);
|