@becomeopc/trendpublish 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/dashboard/assets/{-association-list-CE--B0dM.js → -association-list-MaFlvvF5.js} +1 -1
  2. package/dashboard/assets/-channel-templates-B0KzH4gz.js +6 -0
  3. package/dashboard/assets/{-content-package-preview-DC4PLY9G.js → -content-package-preview-Bc225W8p.js} +1 -1
  4. package/dashboard/assets/-editor-page-DIrPd6Jj.js +1 -0
  5. package/dashboard/assets/-run-detail-view-CSb6Mp_W.js +12 -0
  6. package/dashboard/assets/{AnimatePresence-OeIRE0Xw.js → AnimatePresence-dRKyi9jP.js} +1 -1
  7. package/dashboard/assets/_app-C0k3Jpvj.js +1 -0
  8. package/dashboard/assets/app-dialog-CBRjH8y0.js +1 -0
  9. package/dashboard/assets/arrow-left-B1paVsKl.js +1 -0
  10. package/dashboard/assets/arrow-right-Bm6j4CRT.js +1 -0
  11. package/dashboard/assets/{articles-Bw-jie6T.js → articles-CJ24swVV.js} +1 -1
  12. package/dashboard/assets/automations-CSqhc87N.js +2 -0
  13. package/dashboard/assets/becomeopc-EvwYWHkB.js +1 -0
  14. package/dashboard/assets/check-_AvUITNy.js +1 -0
  15. package/dashboard/assets/chevron-down-CjEG9BtO.js +1 -0
  16. package/dashboard/assets/chevron-right-BcV2-ijN.js +1 -0
  17. package/dashboard/assets/connections-CUkG-3WF.js +1 -0
  18. package/dashboard/assets/content-plans-1_S1hkDo.js +1 -0
  19. package/dashboard/assets/content-plans_._planId.edit-2sqaHVmd.js +1 -0
  20. package/dashboard/assets/content-plans_.new-2sqaHVmd.js +1 -0
  21. package/dashboard/assets/{copy-CWp2fj5q.js → copy-C4Adx2li.js} +1 -1
  22. package/dashboard/assets/dropdown-menu-mpdg8__C.js +1 -0
  23. package/dashboard/assets/empty-state-B2PGtu_a.js +1 -0
  24. package/dashboard/assets/entity-list-B2WXTDDM.js +1 -0
  25. package/dashboard/assets/external-link-B2pLgsIl.js +1 -0
  26. package/dashboard/assets/{eye-Drma9Anf.js → eye-DyaLFyNg.js} +1 -1
  27. package/dashboard/assets/{file-text-BSOvvVFv.js → file-text-BqjzSiui.js} +1 -1
  28. package/dashboard/assets/{fingerprint-pattern-C_dvDw0n.js → fingerprint-pattern-CVznkwfS.js} +1 -1
  29. package/dashboard/assets/{flask-conical-DpX8Ww6S.js → flask-conical-B9Pn4z-3.js} +1 -1
  30. package/dashboard/assets/form-field-BJITE8Lh.js +1 -0
  31. package/dashboard/assets/identities-Bpb-f7oo.js +3 -0
  32. package/dashboard/assets/index-Bx1uywm3.js +51 -0
  33. package/dashboard/assets/index-ghPnBUnR.css +2 -0
  34. package/dashboard/assets/{input-D7j_2GhD.js → input-Br6N0XCJ.js} +1 -1
  35. package/dashboard/assets/jobs-BiQwL4Yt.js +1 -0
  36. package/dashboard/assets/jobs_._runId-DQ9L-G8H.js +1 -0
  37. package/dashboard/assets/knowledge-BePtU9f6.js +1 -0
  38. package/dashboard/assets/{layers-BHAmPdjS.js → layers-B6jc9X_5.js} +1 -1
  39. package/dashboard/assets/{layout-template-_-9A39QH.js → layout-template-11JYpJ5n.js} +1 -1
  40. package/dashboard/assets/library-BlLpV8Oh.js +1 -0
  41. package/dashboard/assets/{newspaper-Dcqy9j6N.js → newspaper-BF6EkBWC.js} +1 -1
  42. package/dashboard/assets/notifications-wLr7xSyr.js +1 -0
  43. package/dashboard/assets/page-grid-BR5GG4AN.js +1 -0
  44. package/dashboard/assets/pagination-CEYfdE0s.js +1 -0
  45. package/dashboard/assets/play-DYoZjslk.js +1 -0
  46. package/dashboard/assets/plus-DewHiaw6.js +1 -0
  47. package/dashboard/assets/publication-destination-picker-DAgQcLxS.js +1 -0
  48. package/dashboard/assets/publishing-DOrwrfAd.js +1 -0
  49. package/dashboard/assets/publishing_.styles-DUnbtaS6.js +1 -0
  50. package/dashboard/assets/publishing_.templates-pMvBK24N.js +1 -0
  51. package/dashboard/assets/{publishing_.templates_.sessions._sessionId-BKbSHrpn.js → publishing_.templates_.sessions._sessionId-FkykBbtF.js} +1 -1
  52. package/dashboard/assets/{radio-tower-tBHGxqPI.js → radio-tower-CS59Tvfq.js} +1 -1
  53. package/dashboard/assets/{react-ByivFozR.js → react-OqyHmgtK.js} +1 -1
  54. package/dashboard/assets/refresh-cw-BB9_0X86.js +1 -0
  55. package/dashboard/assets/{routes-zvPXw-Ia.js → routes-15GLqJa6.js} +1 -1
  56. package/dashboard/assets/{runs-DiLk0fOQ.js → runs-Cbz28Mf6.js} +1 -1
  57. package/dashboard/assets/{select-BUT5ahxS.js → select-9cx3otc_.js} +1 -1
  58. package/dashboard/assets/{settings-BZ3KUyq9.js → settings-CeJjvt-K.js} +1 -1
  59. package/dashboard/assets/sources-CsuPzTTH.js +1 -0
  60. package/dashboard/assets/{sparkles-ws1IsiGt.js → sparkles-C9YU6Kr5.js} +1 -1
  61. package/dashboard/assets/{sse-_t5PeRmk.js → sse-DQK6eHXZ.js} +2 -2
  62. package/dashboard/assets/tabs-DdmTx_k0.js +1 -0
  63. package/dashboard/assets/{textarea-B7N7g6fl.js → textarea-zbjD4aac.js} +1 -1
  64. package/dashboard/assets/{trash-2-C3dbRhyb.js → trash-2-CcgFunKh.js} +1 -1
  65. package/dashboard/assets/{use-onboarding-muxucTEZ.js → use-onboarding-fKNsbNhX.js} +1 -1
  66. package/dashboard/assets/use-workspace-snapshot-MZKeTfAJ.js +1 -0
  67. package/dashboard/assets/{useMutation-C221JCx3.js → useMutation-Xdq_89ou.js} +1 -1
  68. package/dashboard/assets/{workspace-DGt_GyLc.js → workspace-XH4e6E59.js} +1 -1
  69. package/dashboard/assets/{wrench-BHwKK2nB.js → wrench-C9HmhR9v.js} +1 -1
  70. package/dashboard/index.html +2 -2
  71. package/dist/app.js +1248 -399
  72. package/package.json +1 -1
  73. package/dashboard/assets/-channel-templates-CdLCNDrC.js +0 -6
  74. package/dashboard/assets/-editor-page-CS5uk_2L.js +0 -1
  75. package/dashboard/assets/-run-detail-view-Csh1ek6d.js +0 -12
  76. package/dashboard/assets/_app-Bci0KgUT.js +0 -1
  77. package/dashboard/assets/app-dialog-ChNc5zc0.js +0 -1
  78. package/dashboard/assets/arrow-left-BQWrTPzt.js +0 -1
  79. package/dashboard/assets/arrow-right-Da_6qwwr.js +0 -1
  80. package/dashboard/assets/automations-JF7dpk0H.js +0 -2
  81. package/dashboard/assets/check-C6hl-XsU.js +0 -1
  82. package/dashboard/assets/chevron-down-DXrCAjpz.js +0 -1
  83. package/dashboard/assets/chevron-right-okm7Mcup.js +0 -1
  84. package/dashboard/assets/connections-D_OfbK5O.js +0 -1
  85. package/dashboard/assets/content-plans-CmaGhnXT.js +0 -1
  86. package/dashboard/assets/content-plans_._planId.edit-BPCAxR7I.js +0 -1
  87. package/dashboard/assets/content-plans_.new-BPCAxR7I.js +0 -1
  88. package/dashboard/assets/dropdown-menu-BR9kBDP8.js +0 -1
  89. package/dashboard/assets/entity-list-C7fEITZj.js +0 -1
  90. package/dashboard/assets/form-field-BbOl9sGR.js +0 -1
  91. package/dashboard/assets/identities-B2SMnjY3.js +0 -3
  92. package/dashboard/assets/index-DC7b8xgR.js +0 -51
  93. package/dashboard/assets/index-pqOc3FQv.css +0 -2
  94. package/dashboard/assets/jobs-WwmifsK9.js +0 -1
  95. package/dashboard/assets/jobs_._runId-BZsBpBT-.js +0 -1
  96. package/dashboard/assets/knowledge-CnqdN8mY.js +0 -1
  97. package/dashboard/assets/library-Bo-F96xG.js +0 -1
  98. package/dashboard/assets/notifications-Dlx9WRAf.js +0 -1
  99. package/dashboard/assets/page-grid-x4teY0Qb.js +0 -1
  100. package/dashboard/assets/pagination-BIxivGX2.js +0 -1
  101. package/dashboard/assets/play-CqRcIakP.js +0 -1
  102. package/dashboard/assets/plus-Cgi-AlzH.js +0 -1
  103. package/dashboard/assets/publication-destination-picker-p0aE3sNP.js +0 -1
  104. package/dashboard/assets/publishing-DYavJU0X.js +0 -1
  105. package/dashboard/assets/publishing_.styles-DfbwPHCg.js +0 -1
  106. package/dashboard/assets/publishing_.templates-DoOVohr6.js +0 -1
  107. package/dashboard/assets/sources-DaQA2K6Y.js +0 -1
  108. package/dashboard/assets/tabs-DT--ZcFL.js +0 -1
  109. package/dashboard/assets/use-workspace-snapshot-CZmWKC_d.js +0 -1
  110. package/dashboard/assets/useQuery-CH_PyDWC.js +0 -1
@@ -1 +1 @@
1
- import{N as e,P as t}from"./index-DC7b8xgR.js";import{r as n}from"./sse-_t5PeRmk.js";var r=(n=1,r=20,i)=>t(e.api.runs.$get({query:{page:String(n),pageSize:String(r),...i?{planId:i}:{}}})),i=n=>t(e.api.runs[`:runId`].$get({param:{runId:n}})),a=(e,t)=>[`runs`,e,`sessions`,t,`preview`],o=(n,r)=>t(e.api.runs[`:runId`].sessions[`:sessionId`].preview.$get({param:{runId:n,sessionId:r}})),s=(n,r=0)=>t(e.api.runs[`:runId`].activities.$get({param:{runId:n},query:{afterSequence:String(r)}})),c=n=>t(e.api.runs[`:runId`].resume.$post({param:{runId:n}})),l=(n,r)=>t(e.api.runs[`:runId`].destinations[`:destinationId`].retry.$post({param:{runId:n,destinationId:r}}));function u(e,t){return n(`/api/runs/${encodeURIComponent(e)}/events?afterSequence=${t.afterSequence??0}`,t)}function d(e,t){return n(`/api/runs/${encodeURIComponent(e)}/model-stream`,t)}export{r as a,u as c,s as i,d as l,o as n,c as o,i as r,l as s,a as t};
1
+ import{N as e,P as t}from"./index-Bx1uywm3.js";import{r as n}from"./sse-DQK6eHXZ.js";var r=(n=1,r=20,i)=>t(e.api.runs.$get({query:{page:String(n),pageSize:String(r),...i?{planId:i}:{}}})),i=n=>t(e.api.runs[`:runId`].$get({param:{runId:n}})),a=(e,t)=>[`runs`,e,`sessions`,t,`preview`],o=(n,r)=>t(e.api.runs[`:runId`].sessions[`:sessionId`].preview.$get({param:{runId:n,sessionId:r}})),s=(n,r=0)=>t(e.api.runs[`:runId`].activities.$get({param:{runId:n},query:{afterSequence:String(r)}})),c=n=>t(e.api.runs[`:runId`].resume.$post({param:{runId:n}})),l=(n,r)=>t(e.api.runs[`:runId`].destinations[`:destinationId`].retry.$post({param:{runId:n,destinationId:r}}));function u(e,t){return n(`/api/runs/${encodeURIComponent(e)}/events?afterSequence=${t.afterSequence??0}`,t)}function d(e,t){return n(`/api/runs/${encodeURIComponent(e)}/model-stream`,t)}export{r as a,u as c,s as i,d as l,o as n,c as o,i as r,l as s,a as t};
@@ -1 +1 @@
1
- import{a as e}from"./rolldown-runtime-DoHqwKmD.js";import{Ct as t,Dt as n,Et as r,Mt as i,Ot as a,St as o,Tt as s,Y as c,_t as l,at as u,cn as d,et as f,gt as p,ht as m,it as h,jt as g,kt as _,ln as v,mt as y,nt as b,pt as x,rt as S,sn as C,wt as w,xt as ee}from"./index-DC7b8xgR.js";import{t as T}from"./check-C6hl-XsU.js";import{t as E}from"./chevron-down-DXrCAjpz.js";var D=e(d(),1),O=e(v(),1),k=C(),A=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),j=Object.defineProperty,M=(e,t)=>j(e,`name`,{value:t,configurable:!0});function N(e){let t=e+`CollectionProvider`,[n,r]=a(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=M(e=>{let{scope:t,children:n}=e,r=O.useRef(null),i=O.useRef(new Map).current;return(0,k.jsx)(o,{scope:t,itemMap:i,collectionRef:r,children:n})},`CollectionProvider`);c.displayName=t;let l=e+`CollectionSlot`,u=g(l),d=O.forwardRef((e,t)=>{let{scope:n,children:r}=e,a=s(l,n),o=i(t,a.collectionRef);return(0,k.jsx)(u,{ref:o,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,p=`data-radix-collection-item`,m=g(f),h=O.forwardRef((e,t)=>{let{scope:n,children:r,...a}=e,o=O.useRef(null),c=i(t,o),l=s(f,n);return O.useEffect(()=>(l.itemMap.set(o,{ref:o,...a}),()=>void l.itemMap.delete(o))),(0,k.jsx)(m,{[p]:``,ref:c,children:r})});h.displayName=f;function _(t){let n=s(e+`CollectionConsumer`,t);return O.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return M(_,`useCollection`),[{Provider:c,Slot:d,ItemSlot:h},_,r]}M(N,`createCollection`);var P=new WeakMap,F=class e extends Map{static{M(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],P.set(this,!0)}set(e,t){return P.get(this)&&!this.has(e)&&this.#e.push(e),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=r?this.size:this.size+1,a=R(e),o=a>=0?Math.min(a,i-1):Math.max(i+a,0);if(r?this.#e.indexOf(t)===o:o===this.size)return this.set(t,n),this;let s=this.#e.filter(e=>e!==t);s.splice(o,0,t);let c=s.map(e=>[e,e===t?n:this.get(e)]);this.clear();for(let[e,t]of c)this.set(e,t);return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<r?r-1:r;return this.insert(a,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<=r?r:r+1;return this.insert(a,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=I(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=I(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return I(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=0,a=n;for(let e of this)a=i===0&&!r?e:Reflect.apply(t,this,[a,e,i,this]),i++;return a}reduceRight(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=n;for(let e=this.size-1;e>=0;e--){let n=this.entryAt(e);i=e===this.size-1&&!r?n:Reflect.apply(t,this,[i,n,e,this])}return i}sort(e){if(typeof e!=`function`)throw TypeError(`OrderedDict.sort requires a compare function`);let t=[...this.entries()].sort(e);this.clear();for(let[e,n]of t)this.set(e,n);return this}toSorted(t){if(typeof t!=`function`)throw TypeError(`OrderedDict.toSorted requires a compare function`);let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e;for(let e of this.#e.slice(t,n))r.set(e,this.get(e));return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function I(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=L(e,t);return n===-1?void 0:e[n]}M(I,`at`);function L(e,t){let n=e.length,r=R(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}M(L,`toSafeIndex`);function R(e){return e!==e||e===0?0:Math.trunc(e)}M(R,`toSafeInteger`);function z(e){let t=e+`CollectionProvider`,[r,o]=a(t),[s,c]=r(t);s.displayName=e+`CollectionStableContextProvider`;let[l,u]=r(t);l.displayName=e+`CollectionStatefulContextProvider`;let d=M(({state:e,...t})=>e?(0,k.jsx)(p,{...t,state:e}):(0,k.jsx)(f,{...t}),`CollectionProvider`);d.displayName=t;let f=M(e=>{let t=x();return(0,k.jsx)(p,{...e,state:t})},`CollectionInit`);f.displayName=e+`CollectionInit`;let p=M(e=>{let{scope:t,children:n,state:r}=e,a=O.useRef(null),[o,c]=O.useState(null),u=i(a,c),[d,f]=r,p=O.useRef(new F),m=O.useCallback(()=>{let e=p.current;return H(e)||e.sort(U),e},[]);return O.useEffect(()=>{if(!o)return;let e=W(()=>{f(e=>{let t=e.toSorted(U);return t.some(([t],n)=>e.keyAt(n)!==t)?t:e})});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o,f]),(0,k.jsx)(s,{scope:t,collectionElementRef:u,collectionElementRefObject:a,getCollection:m,setCollection:f,registryRef:p,children:(0,k.jsx)(l,{scope:t,collectionElement:o,collection:d,children:n})})},`CollectionProviderImpl`);p.displayName=e+`CollectionProviderImpl`;let m=e+`CollectionSlot`,h=g(m),_=O.forwardRef((e,t)=>{let{scope:n,children:r}=e,a=c(m,n),o=i(t,a.collectionElementRef);return(0,k.jsx)(h,{ref:o,children:r})});_.displayName=m;let v=e+`CollectionItemSlot`,y=g(v),b=O.forwardRef((e,t)=>{let{scope:r,children:a,...o}=e,s=O.useRef(null),{setCollection:l,registryRef:u}=c(v,r),d=O.useRef(o);B(d.current,o)||(d.current=o);let f=d.current,p=O.useCallback(e=>{let t=u.current;e?t.set(e,{...d.current,element:e}):s.current&&t.delete(s.current)},[u]),m=i(t,p,s);n(()=>{let e=s.current,t=u.current;e&&t.has(e)&&t.set(e,{...f,element:e})},[f,u]);let h=O.useRef(null);return O.useEffect(()=>{let e=s.current,t=h.current;((t?.element??null)!==e||e&&t?.itemData!==f)&&(h.current=e?{element:e,itemData:f}:null,l(n=>{let r=new F(n);return t&&t.element!==e&&r.delete(t.element),e&&r.set(e,{...f,element:e}),r.sort(U)}))}),O.useEffect(()=>()=>{let e=h.current;h.current=null,e&&l(t=>{if(!t.has(e.element))return t;let n=new F(t);return n.delete(e.element),n})},[l]),(0,k.jsx)(y,{"data-radix-collection-item":``,ref:m,children:a})});b.displayName=v;function x(){return O.useState(new F)}M(x,`useInitCollection`);function S(t){let{collection:n}=u(e+`CollectionConsumer`,t);return n}M(S,`useCollection`);function C(t){let{getCollection:n}=c(e+`CollectionConsumer`,t);return n}return M(C,`useGetCollection`),[{Provider:d,Slot:_,ItemSlot:b},{createCollectionScope:o,useCollection:S,useGetCollection:C,useInitCollection:x}]}M(z,`createCollection`);function B(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}M(B,`shallowEqual`);function V(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}M(V,`isElementPreceding`);function H(e){let t;for(let n of e.keys()){if(t){let e=t.compareDocumentPosition(n);if(!(e&Node.DOCUMENT_POSITION_DISCONNECTED)&&e&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=n}return!0}M(H,`isInDocumentOrder`);function U(e,t){return!e[1].element||!t[1].element?0:V(e[1].element,t[1].element)?-1:1}M(U,`sortByDocumentPosition`);function W(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}M(W,`getChildListObserver`);var G=Object.defineProperty,te=(e,t)=>G(e,`name`,{value:t,configurable:!0}),ne={LTR:`ltr`,RTL:`rtl`},re=O.createContext(void 0);function ie(e){let t=O.useContext(re);return e||t||ne.LTR}te(ie,`useDirection`);var ae=Object.defineProperty,oe=(e,t)=>ae(e,`name`,{value:t,configurable:!0});function se(e,[t,n]){return Math.min(n,Math.max(t,e))}oe(se,`clamp`);var ce=Object.defineProperty,K=(e,t)=>ce(e,`name`,{value:t,configurable:!0}),le={ItemAligned:`item-aligned`,Popper:`popper`},ue={LTR:`ltr`,RTL:`rtl`},de=[` `,`Enter`,`ArrowUp`,`ArrowDown`],fe=[` `,`Enter`],q=`Select`,[pe,me,he]=N(q),[J,ge]=a(q,[he,u]),_e=u(),[ve,Y]=J(q),[ye,be]=J(q);function xe(e){let{__scopeSelect:n,children:r,open:i,defaultOpen:a,onOpenChange:o,value:c,defaultValue:l,onValueChange:u,dir:d,name:f,autoComplete:p,disabled:m,required:h,form:g,internal_do_not_use_render:_}=e,v=_e(n),[y,x]=O.useState(null),[S,C]=O.useState(null),[w,ee]=O.useState(!1),T=ie(d),[E,D]=s({prop:i,defaultProp:a??!1,onChange:o,caller:q}),[A,j]=s({prop:c,defaultProp:l,onChange:u,caller:q}),M=O.useRef(null),N=O.useRef(!1),[P,F]=O.useState(null),I=K(e=>{F({value:e,hasConsumerStoppedPropagation:N.current}),j(e)},`handleUserSelect`),L=O.useRef(A);O.useEffect(()=>{let e=g?y?.ownerDocument.getElementById(g):y?.form;if(e instanceof HTMLFormElement){let t=K(()=>j(L.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[g,y,j]);let R=!y||!!g||!!y.closest(`form`),[z,B]=O.useState(new Set),V=t(),H=Array.from(z).map(e=>e.props.value).join(`;`),U=O.useCallback(e=>{B(t=>new Set(t).add(e))},[]),W=O.useCallback(e=>{B(t=>{let n=new Set(t);return n.delete(e),n})},[]),G={required:h,trigger:y,onTriggerChange:x,valueNode:S,onValueNodeChange:C,valueNodeHasChildren:w,onValueNodeHasChildrenChange:ee,contentId:V,value:A,onValueChange:j,hasConsumerStoppedPropagationRef:N,userSelection:P,onUserSelect:I,open:E,onOpenChange:D,dir:T,triggerPointerDownPosRef:M,disabled:m,name:f,autoComplete:p,form:g,nativeOptions:z,nativeSelectKey:H,isFormControl:R};return(0,k.jsx)(b,{...v,children:(0,k.jsx)(ve,{scope:n,...G,children:(0,k.jsx)(pe.Provider,{scope:n,children:(0,k.jsx)(ye,{scope:n,onNativeOptionAdd:U,onNativeOptionRemove:W,children:ot(_)?_(G):r})})})})}K(xe,`SelectProvider`);var Se=K(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,k.jsx)(xe,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,k.jsxs)(k.Fragment,{children:[n,e?(0,k.jsx)(at,{__scopeSelect:t}):null]})})},`Select`),Ce=`SelectTrigger`,we=O.forwardRef(K(function(e,t){let{__scopeSelect:n,disabled:a=!1,...o}=e,s=_e(n),c=Y(Ce,n),l=c.disabled||a,u=i(t,c.onTriggerChange),d=me(n),f=O.useRef(`touch`),[p,m,h]=st(e=>{let t=d().filter(e=>!e.disabled),n=ct(t,e,t.find(e=>e.value===c.value));n!==void 0&&c.onUserSelect(n.value)}),g=K(e=>{l||(c.onOpenChange(!0),h()),e&&(c.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,k.jsx)(S,{asChild:!0,...s,children:(0,k.jsx)(_.button,{type:`button`,role:`combobox`,"aria-controls":c.open?c.contentId:void 0,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":`none`,dir:c.dir,"data-state":c.open?`open`:`closed`,disabled:l,"data-disabled":l?``:void 0,"data-placeholder":$(c.value)?``:void 0,...o,ref:u,onClick:r(o.onClick,e=>{e.currentTarget.focus(),f.current!==`mouse`&&g(e)}),onPointerDown:r(o.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(g(e),e.preventDefault())}),onKeyDown:r(o.onKeyDown,e=>{let t=p.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&(c.hasConsumerStoppedPropagationRef.current=e.isPropagationStopped(),m(e.key)),t&&e.key===` `||de.includes(e.key)&&(g(),e.preventDefault())})})})},`SelectTrigger`)),Te=`SelectValue`,Ee=O.forwardRef(K(function(e,t){let{__scopeSelect:r,className:a,style:o,children:s,placeholder:c=``,...l}=e,u=Y(Te,r),{onValueNodeHasChildrenChange:d}=u,f=s!==void 0,p=i(t,u.onValueNodeChange);n(()=>{d(f)},[d,f]);let m=$(u.value);return(0,k.jsx)(_.span,{...l,asChild:!m&&l.asChild,ref:p,style:{pointerEvents:`none`},children:(0,k.jsx)(O.Fragment,{children:m?c:s},m?`placeholder`:`value`)})},`SelectValue`)),De=O.forwardRef(K(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,k.jsx)(_.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[Oe,ke]=J(`SelectPortal`,{forceMount:void 0}),Ae=K(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,k.jsx)(Oe,{scope:e.__scopeSelect,forceMount:n,children:(0,k.jsx)(p,{asChild:!0,...r})})},`SelectPortal`),X=`SelectContent`,je=O.forwardRef(K(function(e,t){let r=ke(X,e.__scopeSelect),{forceMount:i=r.forceMount,...a}=e,o=Y(X,e.__scopeSelect),[s,c]=O.useState();return n(()=>{c(new DocumentFragment)},[]),(0,k.jsx)(w,{present:i||o.open,children:({present:e})=>e?(0,k.jsx)(Fe,{...a,ref:t}):(0,k.jsx)(Me,{...a,fragment:s})})},`SelectContent`)),Me=O.forwardRef(K(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?D.createPortal((0,k.jsx)(Ne,{scope:n,children:(0,k.jsx)(pe.Slot,{scope:n,children:(0,k.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),Z=10,[Ne,Q]=J(X),Pe=g(`SelectContent.RemoveScroll`),Fe=O.forwardRef(K(function(e,t){let{__scopeSelect:n}=e,{position:a=le.ItemAligned,onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:c,side:u,sideOffset:d,align:f,alignOffset:p,arrowPadding:h,collisionBoundary:g,collisionPadding:_,sticky:v,hideWhenDetached:b,avoidCollisions:S,...C}=e,w=Y(X,n),[T,E]=O.useState(null),[D,A]=O.useState(null),j=i(t,E),[M,N]=O.useState(null),[P,F]=O.useState(null),I=me(n),[L,R]=O.useState(!1),z=O.useRef(!1),B=O.useRef(!1),V=O.useRef(!1);O.useEffect(()=>{if(T)return x(T)},[T]),m();let H=O.useCallback(e=>{let[t,...n]=I().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&D&&(D.scrollTop=0),n===r&&D&&(D.scrollTop=D.scrollHeight),n?.focus(),document.activeElement!==i))return},[I,D]),U=O.useCallback(()=>H([M,T]),[H,M,T]);O.useEffect(()=>{L&&U()},[L,U]);let{onOpenChange:W,triggerPointerDownPosRef:G}=w;O.useEffect(()=>{if(T){let e={x:0,y:0},t=K(t=>{e={x:Math.abs(Math.round(t.pageX)-(G.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(G.current?.y??0))}},`handlePointerMove`),n=K(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(T)||W(!1),document.removeEventListener(`pointermove`,t),G.current=null},`handlePointerUp`);return G.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[T,W,G]),O.useEffect(()=>{let e=K(()=>W(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[W]);let[te,ne]=st(e=>{let t=I().filter(e=>!e.disabled),n=ct(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),re=O.useCallback((e,t,n)=>{let r=!B.current;r&&(B.current=!0);let i=!z.current&&!n;w.value!==void 0&&w.value===t||i?(N(e),i&&(z.current=!0)):r&&N(e)},[w.value]),ie=O.useCallback(()=>T?.focus(),[T]),ae=O.useCallback((e,t,n)=>{if(!e)return;let r=!V.current;r&&(V.current=!0);let i=!z.current&&!n;(w.value!==void 0&&w.value===t||i||r)&&F(e)},[w.value]),oe=a===le.Popper?Le:Ie,se=oe===Le?{side:u,sideOffset:d,align:f,alignOffset:p,arrowPadding:h,collisionBoundary:g,collisionPadding:_,sticky:v,hideWhenDetached:b,avoidCollisions:S}:{};return(0,k.jsx)(Ne,{scope:n,content:T,viewport:D,onViewportChange:A,itemRefCallback:re,selectedItem:M,onItemLeave:ie,itemTextRefCallback:ae,focusSelectedItem:U,selectedItemText:P,position:a,isPositioned:L,searchRef:te,children:(0,k.jsx)(y,{as:Pe,allowPinchZoom:!0,children:(0,k.jsx)(l,{asChild:!0,trapped:w.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:r(o,e=>{w.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,k.jsx)(ee,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:(0,k.jsx)(oe,{role:`listbox`,id:w.contentId,"data-state":w.open?`open`:`closed`,dir:w.dir,onContextMenu:e=>e.preventDefault(),...C,...se,onPlaced:()=>R(!0),ref:j,style:{display:`flex`,flexDirection:`column`,outline:`none`,...C.style},onKeyDown:r(C.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ne(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=I().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>H(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),Ie=O.forwardRef(K(function(e,t){let{__scopeSelect:r,onPlaced:a,...o}=e,s=Y(X,r),c=Q(X,r),[l,u]=O.useState(null),[d,f]=O.useState(null),p=i(t,f),m=me(r),h=O.useRef(!1),g=O.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:b,focusSelectedItem:x}=c,S=O.useCallback(()=>{if(s.trigger&&s.valueNode&&l&&d&&v&&y&&b){let e=s.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=s.valueNode.getBoundingClientRect(),r=b.getBoundingClientRect();if(s.dir!==ue.RTL){let i=r.left-t.left,a=n.left-i,o=e.left-a,s=e.width+o,c=Math.max(s,t.width),u=window.innerWidth-Z,d=se(a,[Z,Math.max(Z,u-c)]);l.style.minWidth=s+`px`,l.style.left=d+`px`}else{let i=t.right-r.right,a=window.innerWidth-n.right-i,o=window.innerWidth-e.right-a,s=e.width+o,c=Math.max(s,t.width),u=window.innerWidth-Z,d=se(a,[Z,Math.max(Z,u-c)]);l.style.minWidth=s+`px`,l.style.right=d+`px`}let i=m(),o=window.innerHeight-Z*2,c=v.scrollHeight,u=window.getComputedStyle(d),f=parseInt(u.borderTopWidth,10),p=parseInt(u.paddingTop,10),g=parseInt(u.borderBottomWidth,10),_=parseInt(u.paddingBottom,10),x=f+p+c+_+g,S=Math.min(y.offsetHeight*5,x),C=window.getComputedStyle(v),w=parseInt(C.paddingTop,10),ee=parseInt(C.paddingBottom,10),T=e.top+e.height/2-Z,E=o-T,D=y.offsetHeight/2,O=y.offsetTop+D,k=f+p+O,A=x-k;if(k<=T){let e=i.length>0&&y===i[i.length-1].ref.current;l.style.bottom=`0px`;let t=d.clientHeight-v.offsetTop-v.offsetHeight,n=k+Math.max(E,D+(e?ee:0)+t+g);l.style.height=n+`px`}else{let e=i.length>0&&y===i[0].ref.current;l.style.top=`0px`;let t=Math.max(T,f+v.offsetTop+(e?w:0)+D)+A;l.style.height=t+`px`,v.scrollTop=k-T+v.offsetTop}l.style.margin=`${Z}px 0`,l.style.minHeight=S+`px`,l.style.maxHeight=o+`px`,a?.(),requestAnimationFrame(()=>h.current=!0)}},[m,s.trigger,s.valueNode,l,d,v,y,b,s.dir,a]);n(()=>S(),[S]);let[C,w]=O.useState();n(()=>{d&&w(window.getComputedStyle(d).zIndex)},[d]);let ee=O.useCallback(e=>{e&&g.current===!0&&(S(),x?.(),g.current=!1)},[S,x]);return(0,k.jsx)(Re,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:h,onScrollButtonChange:ee,children:(0,k.jsx)(`div`,{ref:u,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:C},children:(0,k.jsx)(_.div,{...o,ref:p,style:{boxSizing:`border-box`,maxHeight:`100%`,...o.style}})})})},`SelectItemAlignedPosition`)),Le=O.forwardRef(K(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=Z,...a}=e,o=_e(n);return(0,k.jsx)(h,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})},`SelectPopperPosition`)),[Re,ze]=J(X,{}),Be=`SelectViewport`,Ve=O.forwardRef(K(function(e,t){let{__scopeSelect:n,nonce:a,...o}=e,s=Q(Be,n),c=ze(Be,n),l=i(t,s.onViewportChange),u=O.useRef(0);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:a}),(0,k.jsx)(pe.Slot,{scope:n,children:(0,k.jsx)(_.div,{"data-radix-select-viewport":``,role:`presentation`,...o,ref:l,style:{position:`relative`,flex:1,overflow:`hidden auto`,...o.style},onScroll:r(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=c;if(r?.current&&n){let e=Math.abs(u.current-t.scrollTop);if(e>0){let r=window.innerHeight-Z*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}u.current=t.scrollTop})})})]})},`SelectViewport`)),[He,Ue]=J(`SelectGroup`),We=O.forwardRef(K(function(e,n){let{__scopeSelect:r,...i}=e,a=t();return(0,k.jsx)(He,{scope:r,id:a,children:(0,k.jsx)(_.div,{role:`group`,"aria-labelledby":a,...i,ref:n})})},`SelectGroup`)),Ge=`SelectItem`,[Ke,qe]=J(Ge),Je=O.forwardRef(K(function(e,n){let{__scopeSelect:a,value:s,disabled:c=!1,textValue:l,...u}=e,d=Y(Ge,a),f=Q(Ge,a),p=d.value===s,[m,h]=O.useState(l??``),[g,v]=O.useState(!1),y=o(e=>f.itemRefCallback?.(e,s,c)),b=i(n,y),x=t(),S=O.useRef(`touch`);function C(e){d.hasConsumerStoppedPropagationRef.current=e.isPropagationStopped(),d.onUserSelect(s),d.onOpenChange(!1)}return K(C,`handleSelect`),(0,k.jsx)(Ke,{scope:a,value:s,disabled:c,textId:x,isSelected:p,onItemTextChange:O.useCallback(e=>{h(t=>t||(e?.textContent??``).trim())},[]),children:(0,k.jsx)(pe.ItemSlot,{scope:a,value:s,disabled:c,textValue:m,children:(0,k.jsx)(_.div,{role:`option`,"aria-labelledby":x,"data-highlighted":g?``:void 0,"aria-selected":p&&g,"data-state":p?`checked`:`unchecked`,"aria-disabled":c||void 0,"data-disabled":c?``:void 0,tabIndex:c?void 0:-1,...u,ref:b,onFocus:r(u.onFocus,()=>v(!0)),onBlur:r(u.onBlur,()=>v(!1)),onClick:r(u.onClick,e=>{c||S.current!==`mouse`&&C(e)}),onPointerUp:r(u.onPointerUp,e=>{c||S.current===`mouse`&&C(e)}),onPointerDown:r(u.onPointerDown,e=>{S.current=e.pointerType}),onPointerMove:r(u.onPointerMove,e=>{S.current=e.pointerType,c?f.onItemLeave?.():S.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:r(u.onPointerLeave,e=>{e.currentTarget===document.activeElement&&f.onItemLeave?.()}),onKeyDown:r(u.onKeyDown,e=>{c||e.target!==e.currentTarget||(f.searchRef?.current===``||e.key!==` `)&&(fe.includes(e.key)&&C(e),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),Ye=`SelectItemText`,Xe=O.forwardRef(K(function(e,t){let{__scopeSelect:r,className:a,style:s,...c}=e,l=Y(Ye,r),u=Q(Ye,r),d=qe(Ye,r),f=be(Ye,r),[p,m]=O.useState(null),h=o(e=>u.itemTextRefCallback?.(e,d.value,d.disabled)),g=i(t,m,d.onItemTextChange,h),v=p?.textContent,y=O.useMemo(()=>(0,k.jsx)(`option`,{value:d.value,disabled:d.disabled,children:v},d.value),[d.disabled,d.value,v]),{onNativeOptionAdd:b,onNativeOptionRemove:x}=f;return n(()=>(b(y),()=>x(y)),[b,x,y]),(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(_.span,{id:d.textId,...c,ref:g}),d.isSelected&&l.valueNode&&!l.valueNodeHasChildren&&!$(l.value)?D.createPortal(c.children,l.valueNode):null]})},`SelectItemText`)),Ze=`SelectItemIndicator`,Qe=O.forwardRef(K(function(e,t){let{__scopeSelect:n,...r}=e;return qe(Ze,n).isSelected?(0,k.jsx)(_.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),$e=`SelectScrollUpButton`,et=O.forwardRef(K(function(e,t){let r=Q($e,e.__scopeSelect),a=ze($e,e.__scopeSelect),[o,s]=O.useState(!1),c=i(t,a.onScrollButtonChange);return n(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollTop>0;s(e)};K(e,`handleScroll`);let t=r.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[r.viewport,r.isPositioned]),o?(0,k.jsx)(rt,{...e,ref:c,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),tt=`SelectScrollDownButton`,nt=O.forwardRef(K(function(e,t){let r=Q(tt,e.__scopeSelect),a=ze(tt,e.__scopeSelect),[o,s]=O.useState(!1),c=i(t,a.onScrollButtonChange);return n(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;s(n)};K(e,`handleScroll`);let t=r.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[r.viewport,r.isPositioned]),o?(0,k.jsx)(rt,{...e,ref:c,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),rt=O.forwardRef(K(function(e,t){let{__scopeSelect:i,onAutoScroll:a,...o}=e,s=Q(`SelectScrollButton`,i),c=O.useRef(null),l=me(i),u=O.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return O.useEffect(()=>()=>u(),[u]),n(()=>{l().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[l]),(0,k.jsx)(_.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:r(o.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(a,50))}),onPointerMove:r(o.onPointerMove,()=>{s.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(a,50))}),onPointerLeave:r(o.onPointerLeave,()=>{u()})})},`SelectScrollButtonImpl`)),it=`SelectBubbleInput`,at=O.forwardRef(K(function({__scopeSelect:e,...t},n){let r=Y(it,e),{value:a,onValueChange:o,required:s,disabled:c,name:l,autoComplete:u,form:d,userSelection:f}=r,{nativeOptions:p,nativeSelectKey:m}=r,h=O.useRef(null),g=i(n,h),v=a??``,y=O.useRef(v),b=O.useRef(f),x=O.useRef(!1),S=Array.from(p).some(e=>(e.props.value??``)===``);return O.useEffect(()=>{let e=h.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set,r=f!==null&&f!==b.current;b.current=f;let i=y.current!==v;y.current=v;let a=r&&i;if(r&&!i&&f.value!==v&&!f.hasConsumerStoppedPropagation&&n){x.current=!0;try{n.call(e,f.value),e.dispatchEvent(new Event(`change`,{bubbles:!0}))}finally{x.current=!1,n.call(e,v)}return}let o=a&&!f.hasConsumerStoppedPropagation;if(i&&n){let t=new Event(`change`,{bubbles:o});n.call(e,v),e.dispatchEvent(t)}},[v,f]),(0,k.jsxs)(_.select,{"aria-hidden":!0,required:s,tabIndex:-1,name:l,autoComplete:u,disabled:c,form:d,onChange:e=>{x.current||o(e.target.value)},...t,style:{...A,...t.style},ref:g,defaultValue:v,children:[$(a)&&!S?(0,k.jsx)(`option`,{value:``}):null,Array.from(p)]},m)},`SelectBubbleInput`));function ot(e){return typeof e==`function`}K(ot,`isFunction`);function $(e){return e===``||e===void 0}K($,`shouldShowPlaceholder`);function st(e){let t=o(e),n=O.useRef(``),r=O.useRef(0),i=O.useCallback(e=>{let i=n.current+e;t(i);function a(e){n.current=e,window.clearTimeout(r.current),e!==``&&(r.current=window.setTimeout(()=>a(``),1e3))}K(a,`updateSearch`),a(i)},[t]),a=O.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return O.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}K(st,`useTypeaheadSearch`);function ct(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=lt(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}K(ct,`findNextItem`);function lt(e,t){return e.map((n,r)=>e[(t+r)%e.length])}K(lt,`wrapArray`);var ut=c(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]);function dt({...e}){return(0,k.jsx)(Se,{"data-slot":`select`,...e})}function ft({...e}){return(0,k.jsx)(We,{"data-slot":`select-group`,...e})}function pt({...e}){return(0,k.jsx)(Ee,{"data-slot":`select-value`,...e})}function mt({className:e,size:t=`default`,children:n,...r}){return(0,k.jsxs)(we,{"data-slot":`select-trigger`,"data-size":t,className:f(`flex min-h-10 w-fit items-center justify-between gap-2 rounded-[var(--radius-sm)] border border-[var(--border)] bg-[var(--surface)] px-3 py-2 text-sm text-[var(--ink)] whitespace-nowrap outline-none transition duration-200 ease-[var(--ease-standard)] focus-visible:border-[var(--ink)] focus-visible:ring-2 focus-visible:ring-[var(--focus)] disabled:cursor-not-allowed disabled:bg-[var(--surface-2)] disabled:text-[var(--muted)] disabled:opacity-70 aria-invalid:border-[var(--danger)] aria-invalid:ring-2 aria-invalid:ring-[color-mix(in_srgb,var(--danger)_18%,transparent)] data-[placeholder]:text-[var(--muted)] data-[size=default]:min-h-10 data-[size=sm]:min-h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-[var(--muted)]`,e),...r,children:[n,(0,k.jsx)(De,{asChild:!0,children:(0,k.jsx)(E,{className:`size-4 opacity-50`})})]})}function ht({className:e,children:t,position:n=`item-aligned`,align:r=`center`,...i}){return(0,k.jsx)(Ae,{children:(0,k.jsxs)(je,{"data-slot":`select-content`,className:f(`dropdown-content-motion relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-[var(--radius-sm)] border border-[var(--border)] bg-[var(--surface)] text-[var(--ink)] shadow-[0_8px_24px_rgba(20,20,24,0.12)]`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,e),position:n,align:r,...i,children:[(0,k.jsx)(_t,{}),(0,k.jsx)(Ve,{className:f(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`),children:t}),(0,k.jsx)(vt,{})]})})}function gt({className:e,children:t,...n}){return(0,k.jsxs)(Je,{"data-slot":`select-item`,className:f(`relative flex w-full cursor-default items-center gap-2 rounded-[var(--radius-xs)] py-1.5 pr-8 pl-2 text-sm text-[var(--ink)] outline-hidden select-none focus:bg-[var(--surface-2)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-[var(--muted)] *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,k.jsx)(`span`,{"data-slot":`select-item-indicator`,className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,k.jsx)(Qe,{children:(0,k.jsx)(T,{className:`size-4`})})}),(0,k.jsx)(Xe,{children:t})]})}function _t({className:e,...t}){return(0,k.jsx)(et,{"data-slot":`select-scroll-up-button`,className:f(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,k.jsx)(ut,{className:`size-4`})})}function vt({className:e,...t}){return(0,k.jsx)(nt,{"data-slot":`select-scroll-down-button`,className:f(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,k.jsx)(E,{className:`size-4`})})}function yt({className:e,children:t,id:n,name:r,value:i,defaultValue:a,disabled:o,required:s,onBlur:c,onChange:l,autoFocus:u,"aria-label":d,"aria-labelledby":p,"aria-invalid":m,...h}){let g=O.Children.toArray(t).flatMap(e=>!O.isValidElement(e)||e.type!==`option`?[]:[{value:String(e.props.value??``),label:e.props.children,disabled:e.props.disabled}]),_=g.find(e=>e.value===``)?.label,v=g.filter(e=>e.value!==``);return(0,k.jsxs)(Se,{name:r,value:i==null?void 0:String(i),defaultValue:a==null?void 0:String(a),disabled:o,required:s,onValueChange:e=>{l?.({target:{value:e},currentTarget:{value:e}})},children:[(0,k.jsx)(mt,{id:n,className:f(`w-full`,e),"aria-label":d,"aria-labelledby":p,"aria-invalid":m,onBlur:e=>c?.(e),autoFocus:u,...bt(h),children:(0,k.jsx)(pt,{placeholder:_})}),(0,k.jsx)(ht,{position:`popper`,align:`start`,children:(0,k.jsx)(ft,{children:v.map(e=>(0,k.jsx)(gt,{value:e.value,disabled:e.disabled,children:e.label},e.value))})})]})}function bt(e){return{"aria-describedby":e[`aria-describedby`],"aria-errormessage":e[`aria-errormessage`],title:e.title}}export{mt as a,N as c,gt as i,dt as n,pt as o,ht as r,ie as s,yt as t};
1
+ import{a as e}from"./rolldown-runtime-DoHqwKmD.js";import{At as t,Ct as n,Dt as r,Et as i,Nt as a,Ot as o,Pt as s,Tt as c,X as l,_t as u,at as d,dn as f,gt as p,ht as m,it as h,jt as g,kt as _,ln as v,nt as y,ot as b,st as x,un as S,vt as C,wt as w,yt as ee}from"./index-Bx1uywm3.js";import{t as T}from"./check-_AvUITNy.js";import{t as E}from"./chevron-down-CjEG9BtO.js";var D=e(S(),1),O=e(f(),1),k=v(),A=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),j=Object.defineProperty,M=(e,t)=>j(e,`name`,{value:t,configurable:!0});function N(e){let n=e+`CollectionProvider`,[r,i]=t(n),[o,c]=r(n,{collectionRef:{current:null},itemMap:new Map}),l=M(e=>{let{scope:t,children:n}=e,r=O.useRef(null),i=O.useRef(new Map).current;return(0,k.jsx)(o,{scope:t,itemMap:i,collectionRef:r,children:n})},`CollectionProvider`);l.displayName=n;let u=e+`CollectionSlot`,d=a(u),f=O.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=c(u,n),a=s(t,i.collectionRef);return(0,k.jsx)(d,{ref:a,children:r})});f.displayName=u;let p=e+`CollectionItemSlot`,m=`data-radix-collection-item`,h=a(p),g=O.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=O.useRef(null),o=s(t,a),l=c(p,n);return O.useEffect(()=>(l.itemMap.set(a,{ref:a,...i}),()=>void l.itemMap.delete(a))),(0,k.jsx)(h,{[m]:``,ref:o,children:r})});g.displayName=p;function _(t){let n=c(e+`CollectionConsumer`,t);return O.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return M(_,`useCollection`),[{Provider:l,Slot:f,ItemSlot:g},_,i]}M(N,`createCollection`);var P=new WeakMap,F=class e extends Map{static{M(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],P.set(this,!0)}set(e,t){return P.get(this)&&!this.has(e)&&this.#e.push(e),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=r?this.size:this.size+1,a=R(e),o=a>=0?Math.min(a,i-1):Math.max(i+a,0);if(r?this.#e.indexOf(t)===o:o===this.size)return this.set(t,n),this;let s=this.#e.filter(e=>e!==t);s.splice(o,0,t);let c=s.map(e=>[e,e===t?n:this.get(e)]);this.clear();for(let[e,t]of c)this.set(e,t);return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<r?r-1:r;return this.insert(a,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);if(r===-1)return this;let i=this.#e.indexOf(t),a=i!==-1&&i<=r?r:r+1;return this.insert(a,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=I(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=I(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return I(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=0,a=n;for(let e of this)a=i===0&&!r?e:Reflect.apply(t,this,[a,e,i,this]),i++;return a}reduceRight(...e){let[t,n]=e,r=e.length>1;if(!r&&this.size===0)throw TypeError(`Reduce of empty OrderedDict with no initial value`);let i=n;for(let e=this.size-1;e>=0;e--){let n=this.entryAt(e);i=e===this.size-1&&!r?n:Reflect.apply(t,this,[i,n,e,this])}return i}sort(e){if(typeof e!=`function`)throw TypeError(`OrderedDict.sort requires a compare function`);let t=[...this.entries()].sort(e);this.clear();for(let[e,n]of t)this.set(e,n);return this}toSorted(t){if(typeof t!=`function`)throw TypeError(`OrderedDict.toSorted requires a compare function`);let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e;for(let e of this.#e.slice(t,n))r.set(e,this.get(e));return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function I(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=L(e,t);return n===-1?void 0:e[n]}M(I,`at`);function L(e,t){let n=e.length,r=R(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}M(L,`toSafeIndex`);function R(e){return e!==e||e===0?0:Math.trunc(e)}M(R,`toSafeInteger`);function z(e){let n=e+`CollectionProvider`,[r,i]=t(n),[o,c]=r(n);o.displayName=e+`CollectionStableContextProvider`;let[l,u]=r(n);l.displayName=e+`CollectionStatefulContextProvider`;let d=M(({state:e,...t})=>e?(0,k.jsx)(p,{...t,state:e}):(0,k.jsx)(f,{...t}),`CollectionProvider`);d.displayName=n;let f=M(e=>{let t=x();return(0,k.jsx)(p,{...e,state:t})},`CollectionInit`);f.displayName=e+`CollectionInit`;let p=M(e=>{let{scope:t,children:n,state:r}=e,i=O.useRef(null),[a,c]=O.useState(null),u=s(i,c),[d,f]=r,p=O.useRef(new F),m=O.useCallback(()=>{let e=p.current;return H(e)||e.sort(U),e},[]);return O.useEffect(()=>{if(!a)return;let e=W(()=>{f(e=>{let t=e.toSorted(U);return t.some(([t],n)=>e.keyAt(n)!==t)?t:e})});return e.observe(a,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[a,f]),(0,k.jsx)(o,{scope:t,collectionElementRef:u,collectionElementRefObject:i,getCollection:m,setCollection:f,registryRef:p,children:(0,k.jsx)(l,{scope:t,collectionElement:a,collection:d,children:n})})},`CollectionProviderImpl`);p.displayName=e+`CollectionProviderImpl`;let m=e+`CollectionSlot`,h=a(m),g=O.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=c(m,n),a=s(t,i.collectionElementRef);return(0,k.jsx)(h,{ref:a,children:r})});g.displayName=m;let v=e+`CollectionItemSlot`,y=a(v),b=O.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,a=O.useRef(null),{setCollection:o,registryRef:l}=c(v,n),u=O.useRef(i);B(u.current,i)||(u.current=i);let d=u.current,f=O.useCallback(e=>{let t=l.current;e?t.set(e,{...u.current,element:e}):a.current&&t.delete(a.current)},[l]),p=s(t,f,a);_(()=>{let e=a.current,t=l.current;e&&t.has(e)&&t.set(e,{...d,element:e})},[d,l]);let m=O.useRef(null);return O.useEffect(()=>{let e=a.current,t=m.current;((t?.element??null)!==e||e&&t?.itemData!==d)&&(m.current=e?{element:e,itemData:d}:null,o(n=>{let r=new F(n);return t&&t.element!==e&&r.delete(t.element),e&&r.set(e,{...d,element:e}),r.sort(U)}))}),O.useEffect(()=>()=>{let e=m.current;m.current=null,e&&o(t=>{if(!t.has(e.element))return t;let n=new F(t);return n.delete(e.element),n})},[o]),(0,k.jsx)(y,{"data-radix-collection-item":``,ref:p,children:r})});b.displayName=v;function x(){return O.useState(new F)}M(x,`useInitCollection`);function S(t){let{collection:n}=u(e+`CollectionConsumer`,t);return n}M(S,`useCollection`);function C(t){let{getCollection:n}=c(e+`CollectionConsumer`,t);return n}return M(C,`useGetCollection`),[{Provider:d,Slot:g,ItemSlot:b},{createCollectionScope:i,useCollection:S,useGetCollection:C,useInitCollection:x}]}M(z,`createCollection`);function B(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}M(B,`shallowEqual`);function V(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}M(V,`isElementPreceding`);function H(e){let t;for(let n of e.keys()){if(t){let e=t.compareDocumentPosition(n);if(!(e&Node.DOCUMENT_POSITION_DISCONNECTED)&&e&Node.DOCUMENT_POSITION_PRECEDING)return!1}t=n}return!0}M(H,`isInDocumentOrder`);function U(e,t){return!e[1].element||!t[1].element?0:V(e[1].element,t[1].element)?-1:1}M(U,`sortByDocumentPosition`);function W(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}M(W,`getChildListObserver`);var G=Object.defineProperty,te=(e,t)=>G(e,`name`,{value:t,configurable:!0}),ne={LTR:`ltr`,RTL:`rtl`},re=O.createContext(void 0);function ie(e){let t=O.useContext(re);return e||t||ne.LTR}te(ie,`useDirection`);var ae=Object.defineProperty,oe=(e,t)=>ae(e,`name`,{value:t,configurable:!0});function se(e,[t,n]){return Math.min(n,Math.max(t,e))}oe(se,`clamp`);var ce=Object.defineProperty,K=(e,t)=>ce(e,`name`,{value:t,configurable:!0}),le={ItemAligned:`item-aligned`,Popper:`popper`},ue={LTR:`ltr`,RTL:`rtl`},de=[` `,`Enter`,`ArrowUp`,`ArrowDown`],fe=[` `,`Enter`],q=`Select`,[pe,me,he]=N(q),[J,ge]=t(q,[he,x]),_e=x(),[ve,Y]=J(q),[ye,be]=J(q);function xe(e){let{__scopeSelect:t,children:n,open:i,defaultOpen:a,onOpenChange:o,value:s,defaultValue:l,onValueChange:u,dir:d,name:f,autoComplete:p,disabled:m,required:g,form:_,internal_do_not_use_render:v}=e,y=_e(t),[b,x]=O.useState(null),[S,C]=O.useState(null),[w,ee]=O.useState(!1),T=ie(d),[E,D]=r({prop:i,defaultProp:a??!1,onChange:o,caller:q}),[A,j]=r({prop:s,defaultProp:l,onChange:u,caller:q}),M=O.useRef(null),N=O.useRef(!1),[P,F]=O.useState(null),I=K(e=>{F({value:e,hasConsumerStoppedPropagation:N.current}),j(e)},`handleUserSelect`),L=O.useRef(A);O.useEffect(()=>{let e=_?b?.ownerDocument.getElementById(_):b?.form;if(e instanceof HTMLFormElement){let t=K(()=>j(L.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[_,b,j]);let R=!b||!!_||!!b.closest(`form`),[z,B]=O.useState(new Set),V=c(),H=Array.from(z).map(e=>e.props.value).join(`;`),U=O.useCallback(e=>{B(t=>new Set(t).add(e))},[]),W=O.useCallback(e=>{B(t=>{let n=new Set(t);return n.delete(e),n})},[]),G={required:g,trigger:b,onTriggerChange:x,valueNode:S,onValueNodeChange:C,valueNodeHasChildren:w,onValueNodeHasChildrenChange:ee,contentId:V,value:A,onValueChange:j,hasConsumerStoppedPropagationRef:N,userSelection:P,onUserSelect:I,open:E,onOpenChange:D,dir:T,triggerPointerDownPosRef:M,disabled:m,name:f,autoComplete:p,form:_,nativeOptions:z,nativeSelectKey:H,isFormControl:R};return(0,k.jsx)(h,{...y,children:(0,k.jsx)(ve,{scope:t,...G,children:(0,k.jsx)(pe.Provider,{scope:t,children:(0,k.jsx)(ye,{scope:t,onNativeOptionAdd:U,onNativeOptionRemove:W,children:ot(v)?v(G):n})})})})}K(xe,`SelectProvider`);var Se=K(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,k.jsx)(xe,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,k.jsxs)(k.Fragment,{children:[n,e?(0,k.jsx)(at,{__scopeSelect:t}):null]})})},`Select`),Ce=`SelectTrigger`,we=O.forwardRef(K(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=_e(n),c=Y(Ce,n),l=c.disabled||r,u=s(t,c.onTriggerChange),f=me(n),p=O.useRef(`touch`),[m,h,_]=st(e=>{let t=f().filter(e=>!e.disabled),n=ct(t,e,t.find(e=>e.value===c.value));n!==void 0&&c.onUserSelect(n.value)}),v=K(e=>{l||(c.onOpenChange(!0),_()),e&&(c.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,k.jsx)(d,{asChild:!0,...a,children:(0,k.jsx)(g.button,{type:`button`,role:`combobox`,"aria-controls":c.open?c.contentId:void 0,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":`none`,dir:c.dir,"data-state":c.open?`open`:`closed`,disabled:l,"data-disabled":l?``:void 0,"data-placeholder":$(c.value)?``:void 0,...i,ref:u,onClick:o(i.onClick,e=>{e.currentTarget.focus(),p.current!==`mouse`&&v(e)}),onPointerDown:o(i.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(v(e),e.preventDefault())}),onKeyDown:o(i.onKeyDown,e=>{let t=m.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&(c.hasConsumerStoppedPropagationRef.current=e.isPropagationStopped(),h(e.key)),t&&e.key===` `||de.includes(e.key)&&(v(),e.preventDefault())})})})},`SelectTrigger`)),Te=`SelectValue`,Ee=O.forwardRef(K(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...c}=e,l=Y(Te,n),{onValueNodeHasChildrenChange:u}=l,d=a!==void 0,f=s(t,l.onValueNodeChange);_(()=>{u(d)},[u,d]);let p=$(l.value);return(0,k.jsx)(g.span,{...c,asChild:!p&&c.asChild,ref:f,style:{pointerEvents:`none`},children:(0,k.jsx)(O.Fragment,{children:p?o:a},p?`placeholder`:`value`)})},`SelectValue`)),De=O.forwardRef(K(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,k.jsx)(g.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[Oe,ke]=J(`SelectPortal`,{forceMount:void 0}),Ae=K(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,k.jsx)(Oe,{scope:e.__scopeSelect,forceMount:n,children:(0,k.jsx)(C,{asChild:!0,...r})})},`SelectPortal`),X=`SelectContent`,je=O.forwardRef(K(function(e,t){let n=ke(X,e.__scopeSelect),{forceMount:r=n.forceMount,...a}=e,o=Y(X,e.__scopeSelect),[s,c]=O.useState();return _(()=>{c(new DocumentFragment)},[]),(0,k.jsx)(i,{present:r||o.open,children:({present:e})=>e?(0,k.jsx)(Fe,{...a,ref:t}):(0,k.jsx)(Me,{...a,fragment:s})})},`SelectContent`)),Me=O.forwardRef(K(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?D.createPortal((0,k.jsx)(Ne,{scope:n,children:(0,k.jsx)(pe.Slot,{scope:n,children:(0,k.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),Z=10,[Ne,Q]=J(X),Pe=a(`SelectContent.RemoveScroll`),Fe=O.forwardRef(K(function(e,t){let{__scopeSelect:r}=e,{position:i=le.ItemAligned,onCloseAutoFocus:a,onEscapeKeyDown:c,onPointerDownOutside:l,side:d,sideOffset:f,align:h,alignOffset:g,arrowPadding:_,collisionBoundary:v,collisionPadding:y,sticky:b,hideWhenDetached:x,avoidCollisions:S,...C}=e,w=Y(X,r),[T,E]=O.useState(null),[D,A]=O.useState(null),j=s(t,E),[M,N]=O.useState(null),[P,F]=O.useState(null),I=me(r),[L,R]=O.useState(!1),z=O.useRef(!1),B=O.useRef(!1),V=O.useRef(!1);O.useEffect(()=>{if(T)return m(T)},[T]),u();let H=O.useCallback(e=>{let[t,...n]=I().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&D&&(D.scrollTop=0),n===r&&D&&(D.scrollTop=D.scrollHeight),n?.focus(),document.activeElement!==i))return},[I,D]),U=O.useCallback(()=>H([M,T]),[H,M,T]);O.useEffect(()=>{L&&U()},[L,U]);let{onOpenChange:W,triggerPointerDownPosRef:G}=w;O.useEffect(()=>{if(T){let e={x:0,y:0},t=K(t=>{e={x:Math.abs(Math.round(t.pageX)-(G.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(G.current?.y??0))}},`handlePointerMove`),n=K(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(T)||W(!1),document.removeEventListener(`pointermove`,t),G.current=null},`handlePointerUp`);return G.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[T,W,G]),O.useEffect(()=>{let e=K(()=>W(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[W]);let[te,ne]=st(e=>{let t=I().filter(e=>!e.disabled),n=ct(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),re=O.useCallback((e,t,n)=>{let r=!B.current;r&&(B.current=!0);let i=!z.current&&!n;w.value!==void 0&&w.value===t||i?(N(e),i&&(z.current=!0)):r&&N(e)},[w.value]),ie=O.useCallback(()=>T?.focus(),[T]),ae=O.useCallback((e,t,n)=>{if(!e)return;let r=!V.current;r&&(V.current=!0);let i=!z.current&&!n;(w.value!==void 0&&w.value===t||i||r)&&F(e)},[w.value]),oe=i===le.Popper?Le:Ie,se=oe===Le?{side:d,sideOffset:f,align:h,alignOffset:g,arrowPadding:_,collisionBoundary:v,collisionPadding:y,sticky:b,hideWhenDetached:x,avoidCollisions:S}:{};return(0,k.jsx)(Ne,{scope:r,content:T,viewport:D,onViewportChange:A,itemRefCallback:re,selectedItem:M,onItemLeave:ie,itemTextRefCallback:ae,focusSelectedItem:U,selectedItemText:P,position:i,isPositioned:L,searchRef:te,children:(0,k.jsx)(p,{as:Pe,allowPinchZoom:!0,children:(0,k.jsx)(ee,{asChild:!0,trapped:w.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:o(a,e=>{w.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,k.jsx)(n,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:(0,k.jsx)(oe,{role:`listbox`,id:w.contentId,"data-state":w.open?`open`:`closed`,dir:w.dir,onContextMenu:e=>e.preventDefault(),...C,...se,onPlaced:()=>R(!0),ref:j,style:{display:`flex`,flexDirection:`column`,outline:`none`,...C.style},onKeyDown:o(C.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ne(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=I().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>H(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),Ie=O.forwardRef(K(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=Y(X,n),o=Q(X,n),[c,l]=O.useState(null),[u,d]=O.useState(null),f=s(t,d),p=me(n),m=O.useRef(!1),h=O.useRef(!0),{viewport:v,selectedItem:y,selectedItemText:b,focusSelectedItem:x}=o,S=O.useCallback(()=>{if(a.trigger&&a.valueNode&&c&&u&&v&&y&&b){let e=a.trigger.getBoundingClientRect(),t=u.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=b.getBoundingClientRect();if(a.dir!==ue.RTL){let r=i.left-t.left,a=n.left-r,o=e.left-a,s=e.width+o,l=Math.max(s,t.width),u=window.innerWidth-Z,d=se(a,[Z,Math.max(Z,u-l)]);c.style.minWidth=s+`px`,c.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,s=e.width+o,l=Math.max(s,t.width),u=window.innerWidth-Z,d=se(a,[Z,Math.max(Z,u-l)]);c.style.minWidth=s+`px`,c.style.right=d+`px`}let o=p(),s=window.innerHeight-Z*2,l=v.scrollHeight,d=window.getComputedStyle(u),f=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),_=parseInt(d.paddingBottom,10),x=f+h+l+_+g,S=Math.min(y.offsetHeight*5,x),C=window.getComputedStyle(v),w=parseInt(C.paddingTop,10),ee=parseInt(C.paddingBottom,10),T=e.top+e.height/2-Z,E=s-T,D=y.offsetHeight/2,O=y.offsetTop+D,k=f+h+O,A=x-k;if(k<=T){let e=o.length>0&&y===o[o.length-1].ref.current;c.style.bottom=`0px`;let t=u.clientHeight-v.offsetTop-v.offsetHeight,n=k+Math.max(E,D+(e?ee:0)+t+g);c.style.height=n+`px`}else{let e=o.length>0&&y===o[0].ref.current;c.style.top=`0px`;let t=Math.max(T,f+v.offsetTop+(e?w:0)+D)+A;c.style.height=t+`px`,v.scrollTop=k-T+v.offsetTop}c.style.margin=`${Z}px 0`,c.style.minHeight=S+`px`,c.style.maxHeight=s+`px`,r?.(),requestAnimationFrame(()=>m.current=!0)}},[p,a.trigger,a.valueNode,c,u,v,y,b,a.dir,r]);_(()=>S(),[S]);let[C,w]=O.useState();_(()=>{u&&w(window.getComputedStyle(u).zIndex)},[u]);let ee=O.useCallback(e=>{e&&h.current===!0&&(S(),x?.(),h.current=!1)},[S,x]);return(0,k.jsx)(Re,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:m,onScrollButtonChange:ee,children:(0,k.jsx)(`div`,{ref:l,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:C},children:(0,k.jsx)(g.div,{...i,ref:f,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),Le=O.forwardRef(K(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=Z,...a}=e,o=_e(n);return(0,k.jsx)(b,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})},`SelectPopperPosition`)),[Re,ze]=J(X,{}),Be=`SelectViewport`,Ve=O.forwardRef(K(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=Q(Be,n),c=ze(Be,n),l=s(t,a.onViewportChange),u=O.useRef(0);return(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,k.jsx)(pe.Slot,{scope:n,children:(0,k.jsx)(g.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:l,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:o(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=c;if(r?.current&&n){let e=Math.abs(u.current-t.scrollTop);if(e>0){let r=window.innerHeight-Z*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}u.current=t.scrollTop})})})]})},`SelectViewport`)),[He,Ue]=J(`SelectGroup`),We=O.forwardRef(K(function(e,t){let{__scopeSelect:n,...r}=e,i=c();return(0,k.jsx)(He,{scope:n,id:i,children:(0,k.jsx)(g.div,{role:`group`,"aria-labelledby":i,...r,ref:t})})},`SelectGroup`)),Ge=`SelectItem`,[Ke,qe]=J(Ge),Je=O.forwardRef(K(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...l}=e,u=Y(Ge,n),d=Q(Ge,n),f=u.value===r,[p,m]=O.useState(a??``),[h,_]=O.useState(!1),v=w(e=>d.itemRefCallback?.(e,r,i)),y=s(t,v),b=c(),x=O.useRef(`touch`);function S(e){u.hasConsumerStoppedPropagationRef.current=e.isPropagationStopped(),u.onUserSelect(r),u.onOpenChange(!1)}return K(S,`handleSelect`),(0,k.jsx)(Ke,{scope:n,value:r,disabled:i,textId:b,isSelected:f,onItemTextChange:O.useCallback(e=>{m(t=>t||(e?.textContent??``).trim())},[]),children:(0,k.jsx)(pe.ItemSlot,{scope:n,value:r,disabled:i,textValue:p,children:(0,k.jsx)(g.div,{role:`option`,"aria-labelledby":b,"data-highlighted":h?``:void 0,"aria-selected":f&&h,"data-state":f?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...l,ref:y,onFocus:o(l.onFocus,()=>_(!0)),onBlur:o(l.onBlur,()=>_(!1)),onClick:o(l.onClick,e=>{i||x.current!==`mouse`&&S(e)}),onPointerUp:o(l.onPointerUp,e=>{i||x.current===`mouse`&&S(e)}),onPointerDown:o(l.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:o(l.onPointerMove,e=>{x.current=e.pointerType,i?d.onItemLeave?.():x.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:o(l.onPointerLeave,e=>{e.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:o(l.onKeyDown,e=>{i||e.target!==e.currentTarget||(d.searchRef?.current===``||e.key!==` `)&&(fe.includes(e.key)&&S(e),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),Ye=`SelectItemText`,Xe=O.forwardRef(K(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=Y(Ye,n),c=Q(Ye,n),l=qe(Ye,n),u=be(Ye,n),[d,f]=O.useState(null),p=w(e=>c.itemTextRefCallback?.(e,l.value,l.disabled)),m=s(t,f,l.onItemTextChange,p),h=d?.textContent,v=O.useMemo(()=>(0,k.jsx)(`option`,{value:l.value,disabled:l.disabled,children:h},l.value),[l.disabled,l.value,h]),{onNativeOptionAdd:y,onNativeOptionRemove:b}=u;return _(()=>(y(v),()=>b(v)),[y,b,v]),(0,k.jsxs)(k.Fragment,{children:[(0,k.jsx)(g.span,{id:l.textId,...a,ref:m}),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!$(o.value)?D.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),Ze=`SelectItemIndicator`,Qe=O.forwardRef(K(function(e,t){let{__scopeSelect:n,...r}=e;return qe(Ze,n).isSelected?(0,k.jsx)(g.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),$e=`SelectScrollUpButton`,et=O.forwardRef(K(function(e,t){let n=Q($e,e.__scopeSelect),r=ze($e,e.__scopeSelect),[i,a]=O.useState(!1),o=s(t,r.onScrollButtonChange);return _(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)};K(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,k.jsx)(rt,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),tt=`SelectScrollDownButton`,nt=O.forwardRef(K(function(e,t){let n=Q(tt,e.__scopeSelect),r=ze(tt,e.__scopeSelect),[i,a]=O.useState(!1),o=s(t,r.onScrollButtonChange);return _(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};K(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,k.jsx)(rt,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),rt=O.forwardRef(K(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=Q(`SelectScrollButton`,n),s=O.useRef(null),c=me(n),l=O.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return O.useEffect(()=>()=>l(),[l]),_(()=>{c().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[c]),(0,k.jsx)(g.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:o(i.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:o(i.onPointerMove,()=>{a.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:o(i.onPointerLeave,()=>{l()})})},`SelectScrollButtonImpl`)),it=`SelectBubbleInput`,at=O.forwardRef(K(function({__scopeSelect:e,...t},n){let r=Y(it,e),{value:i,onValueChange:a,required:o,disabled:c,name:l,autoComplete:u,form:d,userSelection:f}=r,{nativeOptions:p,nativeSelectKey:m}=r,h=O.useRef(null),_=s(n,h),v=i??``,y=O.useRef(v),b=O.useRef(f),x=O.useRef(!1),S=Array.from(p).some(e=>(e.props.value??``)===``);return O.useEffect(()=>{let e=h.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set,r=f!==null&&f!==b.current;b.current=f;let i=y.current!==v;y.current=v;let a=r&&i;if(r&&!i&&f.value!==v&&!f.hasConsumerStoppedPropagation&&n){x.current=!0;try{n.call(e,f.value),e.dispatchEvent(new Event(`change`,{bubbles:!0}))}finally{x.current=!1,n.call(e,v)}return}let o=a&&!f.hasConsumerStoppedPropagation;if(i&&n){let t=new Event(`change`,{bubbles:o});n.call(e,v),e.dispatchEvent(t)}},[v,f]),(0,k.jsxs)(g.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:l,autoComplete:u,disabled:c,form:d,onChange:e=>{x.current||a(e.target.value)},...t,style:{...A,...t.style},ref:_,defaultValue:v,children:[$(i)&&!S?(0,k.jsx)(`option`,{value:``}):null,Array.from(p)]},m)},`SelectBubbleInput`));function ot(e){return typeof e==`function`}K(ot,`isFunction`);function $(e){return e===``||e===void 0}K($,`shouldShowPlaceholder`);function st(e){let t=w(e),n=O.useRef(``),r=O.useRef(0),i=O.useCallback(e=>{let i=n.current+e;t(i);function a(e){n.current=e,window.clearTimeout(r.current),e!==``&&(r.current=window.setTimeout(()=>a(``),1e3))}K(a,`updateSearch`),a(i)},[t]),a=O.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return O.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}K(st,`useTypeaheadSearch`);function ct(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=lt(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}K(ct,`findNextItem`);function lt(e,t){return e.map((n,r)=>e[(t+r)%e.length])}K(lt,`wrapArray`);var ut=l(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]);function dt({...e}){return(0,k.jsx)(Se,{"data-slot":`select`,...e})}function ft({...e}){return(0,k.jsx)(We,{"data-slot":`select-group`,...e})}function pt({...e}){return(0,k.jsx)(Ee,{"data-slot":`select-value`,...e})}function mt({className:e,size:t=`default`,children:n,...r}){return(0,k.jsxs)(we,{"data-slot":`select-trigger`,"data-size":t,className:y(`flex min-h-10 w-fit items-center justify-between gap-2 rounded-[var(--radius-sm)] border border-[var(--border)] bg-[var(--surface)] px-3 py-2 text-sm text-[var(--ink)] whitespace-nowrap outline-none transition duration-200 ease-[var(--ease-standard)] focus-visible:border-[var(--ink)] focus-visible:ring-2 focus-visible:ring-[var(--focus)] disabled:cursor-not-allowed disabled:bg-[var(--surface-2)] disabled:text-[var(--muted)] disabled:opacity-70 aria-invalid:border-[var(--danger)] aria-invalid:ring-2 aria-invalid:ring-[color-mix(in_srgb,var(--danger)_18%,transparent)] data-[placeholder]:text-[var(--muted)] data-[size=default]:min-h-10 data-[size=sm]:min-h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-[var(--muted)]`,e),...r,children:[n,(0,k.jsx)(De,{asChild:!0,children:(0,k.jsx)(E,{className:`size-4 opacity-50`})})]})}function ht({className:e,children:t,position:n=`item-aligned`,align:r=`center`,...i}){return(0,k.jsx)(Ae,{children:(0,k.jsxs)(je,{"data-slot":`select-content`,className:y(`dropdown-content-motion relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-[var(--radius-sm)] border border-[var(--border)] bg-[var(--surface)] text-[var(--ink)] shadow-[0_8px_24px_rgba(20,20,24,0.12)]`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1`,e),position:n,align:r,...i,children:[(0,k.jsx)(_t,{}),(0,k.jsx)(Ve,{className:y(`p-1`,n===`popper`&&`h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1`),children:t}),(0,k.jsx)(vt,{})]})})}function gt({className:e,children:t,...n}){return(0,k.jsxs)(Je,{"data-slot":`select-item`,className:y(`relative flex w-full cursor-default items-center gap-2 rounded-[var(--radius-xs)] py-1.5 pr-8 pl-2 text-sm text-[var(--ink)] outline-hidden select-none focus:bg-[var(--surface-2)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-[var(--muted)] *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`,e),...n,children:[(0,k.jsx)(`span`,{"data-slot":`select-item-indicator`,className:`absolute right-2 flex size-3.5 items-center justify-center`,children:(0,k.jsx)(Qe,{children:(0,k.jsx)(T,{className:`size-4`})})}),(0,k.jsx)(Xe,{children:t})]})}function _t({className:e,...t}){return(0,k.jsx)(et,{"data-slot":`select-scroll-up-button`,className:y(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,k.jsx)(ut,{className:`size-4`})})}function vt({className:e,...t}){return(0,k.jsx)(nt,{"data-slot":`select-scroll-down-button`,className:y(`flex cursor-default items-center justify-center py-1`,e),...t,children:(0,k.jsx)(E,{className:`size-4`})})}function yt({className:e,children:t,id:n,name:r,value:i,defaultValue:a,disabled:o,required:s,onBlur:c,onChange:l,autoFocus:u,"aria-label":d,"aria-labelledby":f,"aria-invalid":p,...m}){let h=O.Children.toArray(t).flatMap(e=>!O.isValidElement(e)||e.type!==`option`?[]:[{value:String(e.props.value??``),label:e.props.children,disabled:e.props.disabled}]),g=h.find(e=>e.value===``)?.label,_=h.filter(e=>e.value!==``);return(0,k.jsxs)(Se,{name:r,value:i==null?void 0:String(i),defaultValue:a==null?void 0:String(a),disabled:o,required:s,onValueChange:e=>{l?.({target:{value:e},currentTarget:{value:e}})},children:[(0,k.jsx)(mt,{id:n,className:y(`w-full`,e),"aria-label":d,"aria-labelledby":f,"aria-invalid":p,onBlur:e=>c?.(e),autoFocus:u,...bt(m),children:(0,k.jsx)(pt,{placeholder:g})}),(0,k.jsx)(ht,{position:`popper`,align:`start`,children:(0,k.jsx)(ft,{children:_.map(e=>(0,k.jsx)(gt,{value:e.value,disabled:e.disabled,children:e.label},e.value))})})]})}function bt(e){return{"aria-describedby":e[`aria-describedby`],"aria-errormessage":e[`aria-errormessage`],title:e.title}}export{mt as a,N as c,gt as i,dt as n,pt as o,ht as r,ie as s,yt as t};
@@ -1 +1 @@
1
- import{n as e}from"./use-workspace-snapshot-CZmWKC_d.js";import{r as t}from"./notifications-Dlx9WRAf.js";import{n,t as r}from"./entity-list-C7fEITZj.js";import{t as i}from"./page-grid-x4teY0Qb.js";import{sn as a}from"./index-DC7b8xgR.js";var o=a();function s(){let{data:a}=e({live:!1});return(0,o.jsx)(i,{children:(0,o.jsxs)(r,{title:`内置内容策略与渠道`,description:`只读展示当前可用的内容策略、渠道和发布类型;内部提示词与 Schema 不对外暴露。`,children:[a?.contentStrategies.map(e=>(0,o.jsx)(n,{title:e.name,description:`${e.description} · 标题建议 ${e.titleRange.minLength}-${e.titleRange.maxLength} 字`,status:`ready`,meta:(0,o.jsx)(t,{children:`strategy`})},e.id)),a?.channelDefinitions.map(e=>(0,o.jsx)(n,{title:e.name,description:`${e.description} · ${a.publicationTypeProfiles.filter(t=>t.channel===e.id).map(e=>e.name).join(` / `)}`,status:`ready`,meta:(0,o.jsx)(t,{children:`channel`})},e.id))]})})}export{s as component};
1
+ import{n as e}from"./use-workspace-snapshot-MZKeTfAJ.js";import{n as t}from"./notifications-wLr7xSyr.js";import{n,t as r}from"./entity-list-B2WXTDDM.js";import{t as i}from"./page-grid-BR5GG4AN.js";import{ln as a}from"./index-Bx1uywm3.js";var o=a();function s(){let{data:a}=e({live:!1});return(0,o.jsx)(i,{children:(0,o.jsxs)(r,{title:`内置内容策略与渠道`,description:`只读展示当前可用的内容策略、渠道和发布类型;内部提示词与 Schema 不对外暴露。`,children:[a?.contentStrategies.map(e=>(0,o.jsx)(n,{title:e.name,description:`${e.description} · 标题建议 ${e.titleRange.minLength}-${e.titleRange.maxLength} 字`,status:`ready`,meta:(0,o.jsx)(t,{children:`strategy`})},e.id)),a?.channelDefinitions.map(e=>(0,o.jsx)(n,{title:e.name,description:`${e.description} · ${a.publicationTypeProfiles.filter(t=>t.channel===e.id).map(e=>e.name).join(` / `)}`,status:`ready`,meta:(0,o.jsx)(t,{children:`channel`})},e.id))]})})}export{s as component};
@@ -0,0 +1 @@
1
+ import{a as e}from"./rolldown-runtime-DoHqwKmD.js";import{t}from"./useMutation-Xdq_89ou.js";import{r as n,t as r}from"./notifications-wLr7xSyr.js";import{Lt as i,U as a,V as o,W as s,a as c,c as l,dn as u,l as d,ln as f,o as p,s as m,u as h}from"./index-Bx1uywm3.js";import{t as g}from"./plus-DewHiaw6.js";import{t as _}from"./trash-2-CcgFunKh.js";import{t as v}from"./input-Br6N0XCJ.js";import{t as y}from"./select-9cx3otc_.js";import{n as b,t as x}from"./app-dialog-CBRjH8y0.js";import{t as S}from"./form-field-BJITE8Lh.js";import{n as C,t as w}from"./entity-list-B2WXTDDM.js";import{t as T}from"./pagination-CEYfdE0s.js";import{t as E}from"./page-grid-BR5GG4AN.js";var D=e(u()),O=f(),k=20;function A(e=1){return n({queryKey:[...p(),e],queryFn:()=>d(e,k)})}function j(){let e=i();return t({mutationFn:e=>l(e),onSuccess:()=>e.invalidateQueries({queryKey:p()})})}function M(){let e=i();return t({mutationFn:({id:e,body:t})=>e?h(e,t):m(t),onSuccess:()=>e.invalidateQueries({queryKey:p()})})}var N=(e=`url`)=>e===`url`?{id:`local-${crypto.randomUUID()}`,kind:e,enabled:!0,url:``}:{id:`local-${crypto.randomUUID()}`,kind:e,enabled:!0,query:``};function P(){let{page:e}=c.useSearch(),t=c.useNavigate(),{data:n}=A(e),[r,i]=(0,D.useState)(null),o=j(),s=n?.items??[];return(0,O.jsxs)(E,{children:[(0,O.jsx)(w,{title:`内容来源`,description:`只维护要直接抓取的网址和用于发现内容的搜索词;使用哪些连接由内容方案决定。`,compact:!0,summary:`共 ${n?.total??0} 组来源`,action:(0,O.jsxs)(a,{variant:`primary`,size:`sm`,onClick:()=>i(`new`),children:[(0,O.jsx)(g,{className:`size-3.5`}),`新建来源`]}),empty:!s.length,emptyTitle:`还没有内容来源`,emptyDescription:`添加网址或搜索词,之后可在多个内容方案中复用。`,pagination:(0,O.jsx)(T,{page:e,pageSize:k,total:n?.total??0,onChange:e=>t({search:{page:e}})}),children:s.map(e=>(0,O.jsx)(C,{title:e.name,description:I(e),status:e.enabled?`ready`:`disabled`,onEdit:()=>i(e),onDelete:()=>o.mutateAsync(e.id)},e.id))}),(0,O.jsx)(F,{source:r,open:!!r,onOpenChange:e=>!e&&i(null)})]})}function F({source:e,open:t,onOpenChange:n}){let[i,c]=(0,D.useState)(``),[l,u]=(0,D.useState)(),[d,f]=(0,D.useState)([]);(0,D.useEffect)(()=>{e&&(c(e===`new`?``:e.name),u(e===`new`?void 0:e.revision),f(e===`new`?[N()]:structuredClone(e.sources)))},[e]);let p=M(),m=(e,t)=>f(n=>n.map(n=>{if(n.id!==e||n.kind===t)return n;let r={id:n.id,title:n.title,enabled:n.enabled};return t===`url`?{...r,kind:t,url:``}:{...r,kind:t,query:``}})),h=(e,t)=>f(n=>n.map(n=>n.id===e?n.kind===`url`?{...n,url:t}:{...n,query:t}:n)),C=i.trim()&&d.length>0&&d.every(e=>e.kind===`url`?e.url.trim():e.query.trim());return(0,O.jsxs)(x,{open:t,onOpenChange:n,title:e===`new`?`新建内容来源`:`编辑内容来源`,description:`网址用于直接抓取,搜索词用于发现候选网页。连接策略在内容方案中统一配置。`,size:`wide`,children:[(0,O.jsxs)(`div`,{className:`grid gap-5`,children:[(0,O.jsx)(S,{label:`名称`,required:!0,helper:`用于在内容方案中识别这组来源`,children:(0,O.jsx)(v,{value:i,onChange:e=>c(e.target.value),placeholder:`例如:AI 工程资讯`})}),(0,O.jsxs)(`section`,{children:[(0,O.jsxs)(`div`,{className:`mb-2`,children:[(0,O.jsx)(`h3`,{className:`text-sm font-semibold text-[var(--ink)]`,children:`来源条目`}),(0,O.jsx)(`p`,{className:`mt-1 text-xs text-[var(--muted-strong)]`,children:`搜索只负责发现网址,最终证据仍会通过网页抓取连接获取正文。`})]}),(0,O.jsxs)(`div`,{className:`overflow-hidden rounded-[var(--radius-sm)] border border-[var(--border)]`,children:[(0,O.jsxs)(`div`,{className:`hidden grid-cols-[28px_112px_minmax(0,1fr)_36px] gap-3 border-b border-[var(--border)] bg-[var(--surface-2)] px-3 py-2 text-xs font-medium text-[var(--muted-strong)] md:grid`,children:[(0,O.jsx)(`span`,{}),(0,O.jsx)(`span`,{children:`类型`}),(0,O.jsx)(`span`,{children:`网址或搜索词`}),(0,O.jsx)(`span`,{})]}),(0,O.jsx)(`div`,{className:`divide-y divide-[var(--border)]`,children:d.map((e,t)=>(0,O.jsxs)(`div`,{className:`grid gap-3 bg-[var(--surface)] px-3 py-3 md:grid-cols-[28px_112px_minmax(0,1fr)_36px] md:items-center`,children:[(0,O.jsx)(`span`,{className:`text-xs tabular-nums text-[var(--muted)]`,children:t+1}),(0,O.jsxs)(y,{value:e.kind,"aria-label":`来源 ${t+1} 的类型`,onChange:t=>m(e.id,t.target.value),children:[(0,O.jsx)(`option`,{value:`url`,children:`网址`}),(0,O.jsx)(`option`,{value:`query`,children:`搜索词`})]}),(0,O.jsx)(v,{type:e.kind===`url`?`url`:`text`,value:e.kind===`url`?e.url:e.query,onChange:t=>h(e.id,t.target.value),placeholder:e.kind===`url`?`https://example.com/article`:`例如:AI Agent 发布`}),(0,O.jsx)(s,{label:`删除来源`,variant:`ghost`,disabled:d.length===1,onClick:()=>f(t=>t.filter(t=>t.id!==e.id)),children:(0,O.jsx)(_,{className:`size-4`})})]},e.id))})]}),(0,O.jsxs)(a,{className:`mt-3`,onClick:()=>f(e=>[...e,N()]),children:[(0,O.jsx)(g,{className:`size-4`}),`添加来源`]})]}),(0,O.jsx)(o,{error:p.error})]}),(0,O.jsxs)(b,{className:`flex justify-end gap-2`,children:[(0,O.jsx)(a,{onClick:()=>n(!1),children:`取消`}),(0,O.jsx)(a,{variant:`primary`,loading:p.isPending,disabled:!C,onClick:()=>p.mutate({id:e===`new`?void 0:e?.id,body:{name:i.trim(),enabled:!0,revision:l,sources:d.map(e=>{let t={id:e.id.startsWith(`local-`)?void 0:e.id,title:e.title?.trim()||void 0,enabled:!0};return e.kind===`url`?{...t,kind:e.kind,url:e.url.trim()}:{...t,kind:e.kind,query:e.query.trim()}})}},{onSuccess:()=>{n(!1),r.success(`内容来源已保存`,`“${i.trim()}”已可用于内容方案。`)},onError:e=>r.error(`保存内容来源失败`,e)}),children:`保存来源`})]})]})}function I(e){return`${e.sources.filter(e=>e.kind===`url`).length} 个网址 · ${e.sources.filter(e=>e.kind===`query`).length} 个搜索词`}export{P as component,j as useDeleteSourceCollection,M as useSaveSourceCollection,A as useSourceCollections};
@@ -1 +1 @@
1
- import{Y as e}from"./index-DC7b8xgR.js";var t=e(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]);export{t};
1
+ import{X as e}from"./index-Bx1uywm3.js";var t=e(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]);export{t};
@@ -1,4 +1,4 @@
1
- import{Pt as e,X as t,Z as n}from"./index-DC7b8xgR.js";var r=class{onData;line=``;pendingCarriageReturn=!1;dataLines=[];constructor(e){this.onData=e}push(e){for(let t of e)this.pendingCarriageReturn&&(this.pendingCarriageReturn=!1,this.finishLine(),t===`
1
+ import{It as e,Q as t,Z as n}from"./index-Bx1uywm3.js";var r=class{onData;line=``;pendingCarriageReturn=!1;dataLines=[];constructor(e){this.onData=e}push(e){for(let t of e)this.pendingCarriageReturn&&(this.pendingCarriageReturn=!1,this.finishLine(),t===`
2
2
  `)||(t===`\r`?this.pendingCarriageReturn=!0:t===`
3
3
  `?this.finishLine():this.line+=t)}finish(){this.pendingCarriageReturn&&(this.pendingCarriageReturn=!1,this.finishLine())}finishLine(){let e=this.line;if(this.line=``,!e){this.dataLines.length&&this.onData(this.dataLines.join(`
4
- `)),this.dataLines=[];return}if(e.startsWith(`:`))return;let t=e.indexOf(`:`),n=t===-1?e:e.slice(0,t),r=t===-1?``:e.slice(t+1);r.startsWith(` `)&&(r=r.slice(1)),n===`data`&&this.dataLines.push(r)}};async function i(e,t){let n=e.getReader(),i=new TextDecoder,a=[],o=new r(e=>a.push(e)),s=async()=>{for(let e of a.splice(0))await t(e)};try{for(;;){let{value:e,done:t}=await n.read();if(e&&o.push(i.decode(e,{stream:!t})),await s(),t){o.push(i.decode()),o.finish(),await s();return}}}finally{n.releaseLock()}}function a(e){return e?.split(`;`,1)[0]?.trim().toLowerCase()===`text/event-stream`}async function o(r,o){let s=e.read(),c=new Headers({Authorization:`Bearer ${s}`,Accept:`text/event-stream`});o.lastEventId&&c.set(`Last-Event-ID`,o.lastEventId);let l=await fetch(r,{headers:c,signal:o.signal});if(!l.ok)throw new t({message:`${l.status}`,status:l.status,statusText:l.statusText,path:l.url});if(!a(l.headers.get(`content-type`)))throw new n(`实时事件接口返回了无效的 Content-Type`,!1);if(!l.body)throw new n(`浏览器没有提供 SSE 响应流`,!1);o.onOpen(),await i(l.body,e=>{o.onEvent(JSON.parse(e))})}export{a as n,o as r,i as t};
4
+ `)),this.dataLines=[];return}if(e.startsWith(`:`))return;let t=e.indexOf(`:`),n=t===-1?e:e.slice(0,t),r=t===-1?``:e.slice(t+1);r.startsWith(` `)&&(r=r.slice(1)),n===`data`&&this.dataLines.push(r)}};async function i(e,t){let n=e.getReader(),i=new TextDecoder,a=[],o=new r(e=>a.push(e)),s=async()=>{for(let e of a.splice(0))await t(e)};try{for(;;){let{value:e,done:t}=await n.read();if(e&&o.push(i.decode(e,{stream:!t})),await s(),t){o.push(i.decode()),o.finish(),await s();return}}}finally{n.releaseLock()}}function a(e){return e?.split(`;`,1)[0]?.trim().toLowerCase()===`text/event-stream`}async function o(r,o){let s=e.read(),c=new Headers({Authorization:`Bearer ${s}`,Accept:`text/event-stream`});o.lastEventId&&c.set(`Last-Event-ID`,o.lastEventId);let l=await fetch(r,{headers:c,signal:o.signal});if(!l.ok)throw new n({message:`${l.status}`,status:l.status,statusText:l.statusText,path:l.url});if(!a(l.headers.get(`content-type`)))throw new t(`实时事件接口返回了无效的 Content-Type`,!1);if(!l.body)throw new t(`浏览器没有提供 SSE 响应流`,!1);o.onOpen(),await i(l.body,e=>{o.onEvent(JSON.parse(e))})}export{a as n,o as r,i as t};
@@ -0,0 +1 @@
1
+ import{a as e}from"./rolldown-runtime-DoHqwKmD.js";import{dn as t,ln as n,nt as r}from"./index-Bx1uywm3.js";import{n as i,t as a}from"./react-OqyHmgtK.js";var o=e(t(),1),s=n();function c({value:e,onChange:t,items:n,className:c}){let l=(0,o.useId)(),u=i();return(0,s.jsx)(`div`,{role:`tablist`,className:r(`inline-flex h-9 flex-wrap items-center gap-0.5 rounded-[var(--radius-sm)] border border-[var(--border)] bg-[var(--surface-2)] p-0.5`,c),children:n.map(n=>(0,s.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":e===n.value,onClick:()=>t(n.value),className:r(`relative isolate inline-flex h-8 items-center gap-1.5 overflow-hidden rounded-[7px] px-3 text-xs font-semibold text-[var(--muted-strong)] transition-colors duration-[var(--motion-fast)] ease-[var(--ease-standard)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--focus)]`,e===n.value&&`text-[var(--ink)]`),children:[e===n.value?(0,s.jsx)(a.span,{layoutId:`tab-active-${l}`,className:`absolute inset-0 -z-10 rounded-[7px] bg-[var(--surface)] shadow-[var(--shadow-card)]`,transition:{duration:u?0:.24,ease:[.16,1,.3,1]}}):null,(0,s.jsxs)(`span`,{className:`relative z-10 contents`,children:[n.icon,n.label]})]},n.value))})}export{c as t};
@@ -1 +1 @@
1
- import"./rolldown-runtime-DoHqwKmD.js";import{et as e,ln as t,sn as n}from"./index-DC7b8xgR.js";t();var r=n();function i({className:t,...n}){return(0,r.jsx)(`textarea`,{"data-slot":`textarea`,className:e(`flex field-sizing-content min-h-16 w-full rounded-[var(--radius-sm)] border border-[var(--border)] bg-[var(--surface)] px-3 py-2 text-base text-[var(--ink)] outline-none transition duration-200 ease-[var(--ease-standard)] placeholder:text-[var(--muted)] focus-visible:border-[var(--ink)] focus-visible:ring-2 focus-visible:ring-[var(--focus)] disabled:cursor-not-allowed disabled:bg-[var(--surface-2)] disabled:text-[var(--muted)] disabled:opacity-70 aria-invalid:border-[var(--danger)] aria-invalid:ring-2 aria-invalid:ring-[color-mix(in_srgb,var(--danger)_18%,transparent)] md:text-sm`,t),...n})}export{i as t};
1
+ import"./rolldown-runtime-DoHqwKmD.js";import{dn as e,ln as t,nt as n}from"./index-Bx1uywm3.js";e();var r=t();function i({className:e,...t}){return(0,r.jsx)(`textarea`,{"data-slot":`textarea`,className:n(`flex field-sizing-content min-h-16 w-full rounded-[var(--radius-sm)] border border-[var(--border)] bg-[var(--surface)] px-3 py-2 text-base text-[var(--ink)] outline-none transition duration-200 ease-[var(--ease-standard)] placeholder:text-[var(--muted)] focus-visible:border-[var(--ink)] focus-visible:ring-2 focus-visible:ring-[var(--focus)] disabled:cursor-not-allowed disabled:bg-[var(--surface-2)] disabled:text-[var(--muted)] disabled:opacity-70 aria-invalid:border-[var(--danger)] aria-invalid:ring-2 aria-invalid:ring-[color-mix(in_srgb,var(--danger)_18%,transparent)] md:text-sm`,e),...t})}export{i as t};
@@ -1 +1 @@
1
- import{Y as e}from"./index-DC7b8xgR.js";var t=e(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]);export{t};
1
+ import{X as e}from"./index-Bx1uywm3.js";var t=e(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]);export{t};
@@ -1 +1 @@
1
- import{a as e}from"./rolldown-runtime-DoHqwKmD.js";import{Y as t,ln as n}from"./index-DC7b8xgR.js";import{n as r}from"./use-workspace-snapshot-CZmWKC_d.js";import{n as i,t as a}from"./execution-Brd94hIY.js";import"./src-DVp5YM1T.js";var o=t(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),s=t(`list-todo`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`rect`,{x:`3`,y:`4`,width:`6`,height:`6`,rx:`1`,key:`cif1o7`}]]),c=e(n(),1),l=`trendpublish.onboarding.v1`;function u(e,t){return e.connectorDefinitions.find(e=>e.id===t.connectorId)?.capabilities??[]}function d(e){let t=t=>e.connections.some(n=>n.enabled&&u(e,n).includes(t)),n=e.jobs.some(e=>(e.type===i.GenerateArticle||e.type===i.PublishContent||e.type===i.RunAutomation)&&e.status===a.Succeeded);return[{id:`model`,title:`连接生成模型`,description:`内容生成需要一个支持 Tool Calling 的聊天模型连接(如 OpenAI 兼容 / DashScope)。`,to:`/connections`,done:t(`chat`)},{id:`image`,title:`连接图片来源`,description:`封面与正文配图需要图片生成连接(如 MiniMax / DashScope)。可跳过,后续再配。`,to:`/connections`,done:t(`image`),optional:!0},{id:`channel`,title:`配置发布渠道`,description:`添加微信公众号等发布账号,选择托管 Relay / 直连 / 自部署。`,to:`/publishing`,done:e.channelAccounts.length>0},{id:`plan`,title:`创建内容方案`,description:`绑定身份、来源与生成模型,定义选题与发布目的地。`,to:`/content-plans`,done:e.contentPlans.length>0},{id:`trial`,title:`试跑一篇`,description:`运行一次内容方案,产出真实草稿,验证整条链路。`,to:`/automations`,done:n}]}function f(){try{let e=localStorage.getItem(l);if(!e)return{skipped:[],dismissed:!1};let t=JSON.parse(e);return{skipped:Array.isArray(t.skipped)?t.skipped:[],dismissed:t.dismissed===!0}}catch{return{skipped:[],dismissed:!1}}}function p(e){try{localStorage.setItem(l,JSON.stringify(e))}catch{}}function m(e,t){return e.filter(e=>!e.done&&!t.skipped.includes(e.id))}function h(e,t){return!t.dismissed&&m(e,t).length>0}var g=f(),_=new Set;function v(e){g=e,p(e),_.forEach(e=>e())}function y(e){return _.add(e),()=>_.delete(e)}function b(){return g}var x={skip(e){g.skipped.includes(e)||v({...g,skipped:[...g.skipped,e]})},dismiss(){v({...g,dismissed:!0})},reopen(){v({...g,dismissed:!1})}};function S(){let e=r(),t=(0,c.useSyncExternalStore)(y,b,b),n=(0,c.useMemo)(()=>e.data?d(e.data):[],[e.data]);return{steps:n,pending:m(n,t),state:t,showWizard:e.data?h(n,t):!1,ready:!!e.data}}export{o as i,S as n,s as r,x as t};
1
+ import{a as e}from"./rolldown-runtime-DoHqwKmD.js";import{X as t,dn as n}from"./index-Bx1uywm3.js";import{n as r}from"./use-workspace-snapshot-MZKeTfAJ.js";import{n as i,t as a}from"./execution-Brd94hIY.js";import"./src-DVp5YM1T.js";var o=t(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),s=t(`list-todo`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`rect`,{x:`3`,y:`4`,width:`6`,height:`6`,rx:`1`,key:`cif1o7`}]]),c=e(n(),1),l=`trendpublish.onboarding.v1`;function u(e,t){return e.connectorDefinitions.find(e=>e.id===t.connectorId)?.capabilities??[]}function d(e){let t=t=>e.connections.some(n=>n.enabled&&u(e,n).includes(t)),n=e.jobs.some(e=>(e.type===i.GenerateArticle||e.type===i.PublishContent||e.type===i.RunAutomation)&&e.status===a.Succeeded);return[{id:`model`,title:`连接生成模型`,description:`内容生成需要一个支持 Tool Calling 的聊天模型连接(如 OpenAI 兼容 / DashScope)。`,to:`/connections`,done:t(`chat`)},{id:`image`,title:`连接图片来源`,description:`封面与正文配图需要图片生成连接(如 MiniMax / DashScope)。可跳过,后续再配。`,to:`/connections`,done:t(`image`),optional:!0},{id:`channel`,title:`配置发布渠道`,description:`添加微信公众号等发布账号,选择托管 Relay / 直连 / 自部署。`,to:`/publishing`,done:e.channelAccounts.length>0},{id:`plan`,title:`创建内容方案`,description:`绑定身份、来源与生成模型,定义选题与发布目的地。`,to:`/content-plans`,done:e.contentPlans.length>0},{id:`trial`,title:`试跑一篇`,description:`运行一次内容方案,产出真实草稿,验证整条链路。`,to:`/automations`,done:n}]}function f(){try{let e=localStorage.getItem(l);if(!e)return{skipped:[],dismissed:!1};let t=JSON.parse(e);return{skipped:Array.isArray(t.skipped)?t.skipped:[],dismissed:t.dismissed===!0}}catch{return{skipped:[],dismissed:!1}}}function p(e){try{localStorage.setItem(l,JSON.stringify(e))}catch{}}function m(e,t){return e.filter(e=>!e.done&&!t.skipped.includes(e.id))}function h(e,t){return!t.dismissed&&m(e,t).length>0}var g=f(),_=new Set;function v(e){g=e,p(e),_.forEach(e=>e())}function y(e){return _.add(e),()=>_.delete(e)}function b(){return g}var x={skip(e){g.skipped.includes(e)||v({...g,skipped:[...g.skipped,e]})},dismiss(){v({...g,dismissed:!0})},reopen(){v({...g,dismissed:!1})}};function S(){let e=r(),t=(0,c.useSyncExternalStore)(y,b,b),n=(0,c.useMemo)(()=>e.data?d(e.data):[],[e.data]);return{steps:n,pending:m(n,t),state:t,showWizard:e.data?h(n,t):!1,ready:!!e.data}}export{o as i,S as n,s as r,x as t};
@@ -0,0 +1 @@
1
+ import{r as e}from"./notifications-wLr7xSyr.js";import{Lt as t,N as n,P as r}from"./index-Bx1uywm3.js";function i(e){let t=[`automations`,`identities`,`knowledgeBases`,`sourceCollections`,`contentPlans`,`channelAccounts`,`contentPackages`,`reviewRequests`,`publications`,`jobs`,`connections`,`connectorDefinitions`,`contentStrategies`,`writingStyles`,`publicationTypeProfiles`].filter(t=>!Array.isArray(e[t]));if(t.length)throw Error(`Dashboard 与 API 版本不一致:缺少 ${t.join(`, `)}`)}var a=async()=>{let e=await r(n.api.workspace.$get());return i(e.workspace),e.workspace},o=8e3,s=()=>[`workspace`,`snapshot`],c=()=>[`workspace`];function l({live:t=!0}={}){return e({queryKey:s(),queryFn:a,refetchInterval:t?o:!1})}function u(){let e=t();return()=>void e.invalidateQueries({queryKey:c()})}export{l as n,u as t};
@@ -1 +1 @@
1
- import{a as e}from"./rolldown-runtime-DoHqwKmD.js";import{Ft as t,It as n,Jt as r,Qt as i,Rt as a,Vt as o,Wt as s,Yt as c,ln as l}from"./index-DC7b8xgR.js";var u=class extends i{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),r(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&o(t.mutationKey)!==o(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??n();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){a.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};e?.type===`success`?(this.#r.onSuccess?.(e.data,t,n,r),this.#r.onSettled?.(e.data,null,t,n,r)):e?.type===`error`&&(this.#r.onError?.(e.error,t,n,r),this.#r.onSettled?.(void 0,e.error,t,n,r))}this.listeners.forEach(e=>{e(this.#t)})})}},d=e(l(),1);function f(e,n){let r=t(n),[i]=d.useState(()=>new u(r,e));d.useEffect(()=>{i.setOptions(e)},[i,e]);let o=d.useSyncExternalStore(d.useCallback(e=>i.subscribe(a.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),l=d.useCallback((e,t)=>{i.mutate(e,t).catch(s)},[i]);if(o.error&&c(i.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:l,mutateAsync:o.mutate}}export{f as t};
1
+ import{a as e}from"./rolldown-runtime-DoHqwKmD.js";import{Bt as t,Kt as n,Lt as r,Rt as i,Ut as a,Xt as o,Zt as s,dn as c,en as l}from"./index-Bx1uywm3.js";var u=class extends l{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),o(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&a(t.mutationKey)!==a(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??i();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){t.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};e?.type===`success`?(this.#r.onSuccess?.(e.data,t,n,r),this.#r.onSettled?.(e.data,null,t,n,r)):e?.type===`error`&&(this.#r.onError?.(e.error,t,n,r),this.#r.onSettled?.(void 0,e.error,t,n,r))}this.listeners.forEach(e=>{e(this.#t)})})}},d=e(c(),1);function f(e,i){let a=r(i),[o]=d.useState(()=>new u(a,e));d.useEffect(()=>{o.setOptions(e)},[o,e]);let c=d.useSyncExternalStore(d.useCallback(e=>o.subscribe(t.batchCalls(e)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),l=d.useCallback((e,t)=>{o.mutate(e,t).catch(n)},[o]);if(c.error&&s(o.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:l,mutateAsync:c.mutate}}export{f as t};
@@ -1 +1 @@
1
- import"./src-DVp5YM1T.js";import{i as e,n as t,r as n,t as r}from"./use-onboarding-muxucTEZ.js";import{n as i}from"./use-workspace-snapshot-CZmWKC_d.js";import{U as a,V as o,Y as s,nn as c,sn as l}from"./index-DC7b8xgR.js";import{r as u}from"./notifications-Dlx9WRAf.js";import{n as d,t as f}from"./entity-list-C7fEITZj.js";import{t as p}from"./page-grid-x4teY0Qb.js";import{n as m,t as h}from"./execution-Brd94hIY.js";import{t as g}from"./arrow-right-Da_6qwwr.js";import{t as _}from"./check-C6hl-XsU.js";import{t as v}from"./sparkles-ws1IsiGt.js";var y=s(`circle-minus`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),b=l();function x(){let n=c(),{steps:i,pending:o,state:s,ready:l}=t();return!l||o.length===0?null:(0,b.jsxs)(`section`,{className:`rounded-[var(--radius)] border border-[var(--border)] bg-[var(--surface)] p-4`,children:[(0,b.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsx)(v,{className:`size-4 text-[var(--accent)]`}),(0,b.jsx)(`h2`,{className:`text-sm font-semibold text-[var(--ink)]`,children:`完成配置,发布第一篇`})]}),(0,b.jsx)(a,{variant:`ghost`,size:`sm`,onClick:()=>r.reopen(),children:`重新引导`})]}),(0,b.jsx)(`ol`,{className:`mt-3 grid gap-1.5`,children:i.map(t=>{let r=s.skipped.includes(t.id);return(0,b.jsxs)(`li`,{className:`flex items-center justify-between gap-2 rounded-md px-2 py-1.5 text-sm`,children:[(0,b.jsxs)(`span`,{className:`flex items-center gap-2 text-[var(--ink)]`,children:[t.done?(0,b.jsx)(_,{className:`size-4 text-[var(--success)]`}):r?(0,b.jsx)(y,{className:`size-4 text-[var(--muted-strong)]`}):(0,b.jsx)(e,{className:`size-3.5 text-[var(--muted-strong)]`}),(0,b.jsx)(`span`,{className:t.done?`line-through opacity-70`:``,children:t.title}),t.optional?(0,b.jsx)(`span`,{className:`text-xs opacity-60`,children:`可选`}):null,r&&!t.done?(0,b.jsx)(`span`,{className:`text-xs opacity-60`,children:`已跳过`}):null]}),t.done?null:(0,b.jsxs)(a,{variant:`ghost`,size:`sm`,onClick:()=>void n({to:t.to}),children:[`去配置`,(0,b.jsx)(g,{className:`size-3.5`})]})]},t.id)})})]})}function S(){let{data:e,isLoading:t,error:r}=i();return t?(0,b.jsx)(`div`,{className:`h-48 animate-pulse rounded bg-[var(--surface-2)]`}):r||!e?(0,b.jsx)(o,{error:r??Error(`工作台不可用`)}):(0,b.jsxs)(p,{children:[(0,b.jsx)(x,{}),(0,b.jsx)(f,{title:`最近运行`,description:`查看自动化任务、内容生成和发布的最近执行结果。`,action:(0,b.jsxs)(a,{onClick:()=>window.location.href=`/dashboard/automations`,children:[(0,b.jsx)(n,{className:`size-4`}),`查看任务`]}),empty:!e.jobs.length,children:e.jobs.slice(0,8).map(e=>(0,b.jsx)(d,{title:e.type===m.RunAutomation?`自动化任务运行`:e.type===m.GenerateArticle?`文章生成`:e.type===m.PublishContent?`内容发布`:e.type,description:e.error||`创建于 ${new Date(e.createdAt).toLocaleString()}`,status:e.status===h.Succeeded?`ready`:e.status===h.Failed||e.status===h.NeedsAttention||e.status===h.Degraded?`warning`:`disabled`,meta:(0,b.jsx)(u,{children:e.status})},e.id))})]})}export{S as component};
1
+ import"./src-DVp5YM1T.js";import{i as e,n as t,r as n,t as r}from"./use-onboarding-fKNsbNhX.js";import{n as i}from"./use-workspace-snapshot-MZKeTfAJ.js";import{U as a,V as o,X as s,in as c,ln as l}from"./index-Bx1uywm3.js";import{n as u}from"./notifications-wLr7xSyr.js";import{n as d,t as f}from"./entity-list-B2WXTDDM.js";import{t as p}from"./page-grid-BR5GG4AN.js";import{t as m}from"./arrow-right-Bm6j4CRT.js";import{n as h,t as g}from"./execution-Brd94hIY.js";import{t as _}from"./check-_AvUITNy.js";import{t as v}from"./sparkles-C9YU6Kr5.js";var y=s(`circle-minus`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),b=l();function x(){let n=c(),{steps:i,pending:o,state:s,ready:l}=t();return!l||o.length===0?null:(0,b.jsxs)(`section`,{className:`rounded-[var(--radius)] border border-[var(--border)] bg-[var(--surface)] p-4`,children:[(0,b.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,b.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,b.jsx)(v,{className:`size-4 text-[var(--accent)]`}),(0,b.jsx)(`h2`,{className:`text-sm font-semibold text-[var(--ink)]`,children:`完成配置,发布第一篇`})]}),(0,b.jsx)(a,{variant:`ghost`,size:`sm`,onClick:()=>r.reopen(),children:`重新引导`})]}),(0,b.jsx)(`ol`,{className:`mt-3 grid gap-1.5`,children:i.map(t=>{let r=s.skipped.includes(t.id);return(0,b.jsxs)(`li`,{className:`flex items-center justify-between gap-2 rounded-md px-2 py-1.5 text-sm`,children:[(0,b.jsxs)(`span`,{className:`flex items-center gap-2 text-[var(--ink)]`,children:[t.done?(0,b.jsx)(_,{className:`size-4 text-[var(--success)]`}):r?(0,b.jsx)(y,{className:`size-4 text-[var(--muted-strong)]`}):(0,b.jsx)(e,{className:`size-3.5 text-[var(--muted-strong)]`}),(0,b.jsx)(`span`,{className:t.done?`line-through opacity-70`:``,children:t.title}),t.optional?(0,b.jsx)(`span`,{className:`text-xs opacity-60`,children:`可选`}):null,r&&!t.done?(0,b.jsx)(`span`,{className:`text-xs opacity-60`,children:`已跳过`}):null]}),t.done?null:(0,b.jsxs)(a,{variant:`ghost`,size:`sm`,onClick:()=>void n({to:t.to}),children:[`去配置`,(0,b.jsx)(m,{className:`size-3.5`})]})]},t.id)})})]})}function S(){let{data:e,isLoading:t,error:r}=i();return t?(0,b.jsx)(`div`,{className:`h-48 animate-pulse rounded bg-[var(--surface-2)]`}):r||!e?(0,b.jsx)(o,{error:r??Error(`工作台不可用`)}):(0,b.jsxs)(p,{children:[(0,b.jsx)(x,{}),(0,b.jsx)(f,{title:`最近运行`,description:`查看自动化任务、内容生成和发布的最近执行结果。`,action:(0,b.jsxs)(a,{onClick:()=>window.location.href=`/dashboard/automations`,children:[(0,b.jsx)(n,{className:`size-4`}),`查看任务`]}),empty:!e.jobs.length,children:e.jobs.slice(0,8).map(e=>(0,b.jsx)(d,{title:e.type===h.RunAutomation?`自动化任务运行`:e.type===h.GenerateArticle?`文章生成`:e.type===h.PublishContent?`内容发布`:e.type,description:e.error||`创建于 ${new Date(e.createdAt).toLocaleString()}`,status:e.status===g.Succeeded?`ready`:e.status===g.Failed||e.status===g.NeedsAttention||e.status===g.Degraded?`warning`:`disabled`,meta:(0,b.jsx)(u,{children:e.status})},e.id))})]})}export{S as component};
@@ -1 +1 @@
1
- import{Y as e}from"./index-DC7b8xgR.js";var t=e(`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`}]]),n=e(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),r=e(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]);export{n,t as r,r as t};
1
+ import{X as e}from"./index-Bx1uywm3.js";var t=e(`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`}]]),n=e(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),r=e(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]);export{n,t as r,r as t};
@@ -5,9 +5,9 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <link rel="icon" type="image/svg+xml" href="/dashboard/favicon.svg" />
7
7
  <title>TrendPublish Dashboard</title>
8
- <script type="module" crossorigin src="/dashboard/assets/index-DC7b8xgR.js"></script>
8
+ <script type="module" crossorigin src="/dashboard/assets/index-Bx1uywm3.js"></script>
9
9
  <link rel="modulepreload" crossorigin href="/dashboard/assets/rolldown-runtime-DoHqwKmD.js">
10
- <link rel="stylesheet" crossorigin href="/dashboard/assets/index-pqOc3FQv.css">
10
+ <link rel="stylesheet" crossorigin href="/dashboard/assets/index-ghPnBUnR.css">
11
11
  </head>
12
12
  <body>
13
13
  <div id="root"></div>