@shumai-one/shumai 0.3.7 → 0.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/{chunk-2xmsrq7f.js → chunk-03ec6p4p.js} +2 -2
- package/bin/chunk-0h1yw3eq.js +1 -0
- package/bin/chunk-0kfcfd0x.js +2 -0
- package/bin/chunk-0rydta2q.js +2 -0
- package/bin/{chunk-zg60j9x2.js → chunk-0x6zt5yg.js} +1 -1
- package/bin/{chunk-ftc48rbb.js → chunk-11j7ejan.js} +3 -3
- package/bin/chunk-1eqdvehm.js +2 -0
- package/bin/chunk-24ke0th1.css +1 -0
- package/bin/{chunk-t3tp9trj.js → chunk-2ckj039r.js} +2 -2
- package/bin/chunk-2wcfw38x.js +1 -0
- package/bin/{chunk-af6wbhkv.js → chunk-331s5eb9.js} +2 -2
- package/bin/{chunk-7hnw6y6d.js → chunk-39j992fb.js} +2 -2
- package/bin/{chunk-9s02m95j.js → chunk-3h4t28zz.js} +2 -2
- package/bin/{chunk-qmpph1gt.js → chunk-4st1t79p.js} +2 -2
- package/bin/{chunk-zjj9qj6y.js → chunk-4yp5add5.js} +2 -2
- package/bin/chunk-5657zj59.js +2 -0
- package/bin/chunk-5ctpz542.js +78 -0
- package/bin/{chunk-p4c4z0f2.js → chunk-5efr8prc.js} +1 -1
- package/bin/chunk-5ex69zt3.js +2 -0
- package/bin/{chunk-0t8q76ac.js → chunk-6ja68bbj.js} +1 -1
- package/bin/{chunk-1khzycf9.js → chunk-6ts9djn2.js} +1 -1
- package/bin/{chunk-260wywfb.js → chunk-79wjyt2p.js} +1 -1
- package/bin/{chunk-9xhnmnnb.js → chunk-7a4347xe.js} +2 -2
- package/bin/chunk-7t9c532y.js +1 -0
- package/bin/{chunk-x3ynjbt5.js → chunk-7w01v7bw.js} +47 -47
- package/bin/{chunk-v98e3gex.js → chunk-7wh2mr72.js} +1 -1
- package/bin/chunk-7zvv37z0.js +7 -0
- package/bin/{chunk-t9t9evan.js → chunk-8hex1hjk.js} +2 -2
- package/bin/{chunk-n4gghgrj.js → chunk-8qryr65z.js} +2 -2
- package/bin/{chunk-81tb4v5v.js → chunk-9fc118ea.js} +2 -2
- package/bin/{chunk-esrtafz0.js → chunk-9s1fdecm.js} +1 -1
- package/bin/chunk-9vjkb4vh.js +1 -0
- package/bin/{chunk-k48y9e5s.js → chunk-a2m63585.js} +1 -1
- package/bin/{chunk-5gtew41y.js → chunk-a6s80m0k.js} +1 -1
- package/bin/{chunk-50keqtz9.js → chunk-agvb6bpw.js} +1 -1
- package/bin/{chunk-karn564z.js → chunk-ar79dg9g.js} +2 -2
- package/bin/{chunk-6fv38qdc.js → chunk-awaf0g5z.js} +2 -2
- package/bin/chunk-b0kh9jpt.js +1 -0
- package/bin/{chunk-9gzy30zm.js → chunk-bdwtaj3w.js} +2 -2
- package/bin/{chunk-3dx0p1ge.js → chunk-c32x8x6z.js} +1 -1
- package/bin/{chunk-38g3s1f3.js → chunk-c4yr75hy.js} +2 -2
- package/bin/chunk-d5v9nz51.js +1 -0
- package/bin/{chunk-zwgf211t.js → chunk-ddt5224b.js} +2 -2
- package/bin/{chunk-6zs49mef.js → chunk-dntwxkyf.js} +1 -1
- package/bin/{chunk-tzt4c1dm.js → chunk-dt9wfyf2.js} +2 -2
- package/bin/{chunk-tpp9qf5m.js → chunk-eekmnfn4.js} +2 -2
- package/bin/{chunk-a0k1b4sq.js → chunk-ej18j83b.js} +1 -1
- package/bin/{chunk-7872prvg.js → chunk-f37ywvvp.js} +1 -1
- package/bin/{chunk-7k3ccca6.js → chunk-fbqr4v70.js} +1 -1
- package/bin/chunk-ff8zrme6.js +1 -0
- package/bin/{chunk-qy93r7tm.js → chunk-fhd9yadg.js} +2 -2
- package/bin/chunk-g2qeb32y.js +2 -0
- package/bin/chunk-gtqchcj0.js +2 -0
- package/bin/{chunk-b8v7jvkb.js → chunk-h7jb1xb4.js} +2 -2
- package/bin/chunk-hdx9q31r.js +1 -0
- package/bin/chunk-hk5pwxhf.js +2 -0
- package/bin/chunk-hx2y4d75.js +2 -0
- package/bin/{chunk-dej1gq35.js → chunk-j4byth37.js} +1 -1
- package/bin/chunk-jkpxykx9.css +1 -0
- package/bin/chunk-jq28ge97.js +1 -0
- package/bin/{chunk-2086rsb2.js → chunk-jt7fdhke.js} +1 -1
- package/bin/{chunk-jszpvg8e.js → chunk-jvn0xnj8.js} +2 -2
- package/bin/{chunk-g60v3jc1.js → chunk-jx9tqjh9.js} +1 -1
- package/bin/chunk-mffjg6zb.js +2 -0
- package/bin/{chunk-4bn9eb9h.js → chunk-mv4v52ah.js} +1 -1
- package/bin/{chunk-gjdmnfms.js → chunk-mwrheqe3.js} +1 -1
- package/bin/{chunk-ptw49k86.js → chunk-n3997tqa.js} +1 -1
- package/bin/chunk-n3e4agsa.js +2 -0
- package/bin/chunk-naaa5ejw.js +2 -0
- package/bin/chunk-nc9hbzad.js +3 -0
- package/bin/{chunk-s0hgykza.js → chunk-nn753fbs.js} +2 -2
- package/bin/{chunk-hqkmdp31.js → chunk-nw1ch5d8.js} +2 -2
- package/bin/chunk-p2wyyvfa.js +2 -0
- package/bin/chunk-p65avrcv.js +2 -0
- package/bin/{chunk-fcs4v6jq.js → chunk-pfwt5734.js} +2 -2
- package/bin/chunk-ppwy5dja.js +1 -0
- package/bin/chunk-ptmxkptc.js +14 -0
- package/bin/chunk-px660tvj.js +2 -0
- package/bin/{chunk-3kqdgddm.js → chunk-q3y6kdkh.js} +2 -2
- package/bin/chunk-qbs0nvbn.js +3 -0
- package/bin/{chunk-gjn3w26y.js → chunk-qp1hkx9k.js} +2 -2
- package/bin/{chunk-87wqbn4g.js → chunk-qt6j0fm6.js} +2 -2
- package/bin/{chunk-3xzgddev.js → chunk-r0c9vmfm.js} +1 -1
- package/bin/chunk-r7crhkhn.js +5 -0
- package/bin/{chunk-b3jh3hf1.js → chunk-rq6bvf0t.js} +2 -2
- package/bin/{chunk-zqg4f56h.js → chunk-s78r8f5v.js} +1 -1
- package/bin/chunk-t6gqzden.js +1 -0
- package/bin/{chunk-nvjp2rnh.js → chunk-tfwtxwth.js} +2 -2
- package/bin/{chunk-1sqz0va1.js → chunk-tk362keq.js} +2 -2
- package/bin/chunk-tn24as5d.js +2 -0
- package/bin/{chunk-qdycy714.js → chunk-tx42kfdh.js} +1 -1
- package/bin/{chunk-vxpnp4xg.js → chunk-v2dksv7p.js} +2 -2
- package/bin/chunk-v2n1hwt3.js +1 -0
- package/bin/chunk-v5c6t1w3.js +41 -0
- package/bin/{chunk-0ycwr0kb.js → chunk-va9hwggw.js} +1 -1
- package/bin/{chunk-bancgvrc.js → chunk-vf6mpxrd.js} +2 -2
- package/bin/{chunk-f2j2cqd1.js → chunk-vhcsdnzv.js} +2 -2
- package/bin/{chunk-48nzw50r.js → chunk-vtm39m0n.js} +1 -1
- package/bin/{chunk-br5xkaf7.js → chunk-vwayy6dy.js} +3 -3
- package/bin/chunk-w4e52ade.js +2 -0
- package/bin/{chunk-6v39c8eg.js → chunk-wjk0f9fq.js} +2 -2
- package/bin/chunk-wk153p7c.js +1 -0
- package/bin/{chunk-cqq8e3hc.js → chunk-wth2f791.js} +2 -2
- package/bin/{chunk-503qq6sa.js → chunk-wy82m4nq.js} +2 -2
- package/bin/{chunk-r5dv0rfv.js → chunk-wzw7rrfy.js} +2 -2
- package/bin/{chunk-kpn9d97x.js → chunk-x6ta6e2v.js} +1 -1
- package/bin/chunk-y8wj6g7y.js +11 -0
- package/bin/chunk-ympx92ct.js +1 -0
- package/bin/{chunk-v8w2nxew.js → chunk-ytgtf0ak.js} +1 -1
- package/bin/{chunk-9nyhmtp9.js → chunk-yvknqnkb.js} +2 -2
- package/bin/chunk-yx6mahz0.js +1 -0
- package/bin/{chunk-x6532q76.js → chunk-z71h48pj.js} +1 -1
- package/bin/{chunk-ytzk81tr.js → chunk-z7m6sa7g.js} +1 -1
- package/bin/chunk-z8s40zfa.js +68 -0
- package/bin/{chunk-1xzc6z02.js → chunk-zafjhkkk.js} +1 -1
- package/bin/{chunk-rfyaphas.js → chunk-zcxajg6j.js} +2 -2
- package/bin/{chunk-0jkqmbcx.js → chunk-zq665ybs.js} +1 -1
- package/bin/{chunk-98j2z6he.js → chunk-zvq0btde.js} +3 -3
- package/bin/{chunk-qcqw7wnv.js → chunk-zwny8t7c.js} +2 -2
- package/bin/shumai-app.html +1 -1
- package/bin/shumai-app.js +494 -370
- package/package.json +7 -7
- package/prisma/migrations/20260814090300_add_asset_agentmd/migration.sql +2 -0
- package/prisma/migrations/20260814125921_create_asset_agentmd_table/migration.sql +21 -0
- package/prisma/migrations/20260816020719_add_agent_permission/migration.sql +2 -0
- package/prisma/migrations/20260817022118_add_quota_rules_and_records/migration.sql +68 -0
- package/prisma/migrations/20260818025858_remove_agent_skill_call_count_from_quota_resource_type/migration.sql +14 -0
- package/prisma/schema.prisma +82 -0
- package/bin/chunk-0xern7e4.js +0 -1
- package/bin/chunk-0yngn45x.js +0 -2
- package/bin/chunk-2mqqghrz.js +0 -2
- package/bin/chunk-4egayx81.js +0 -2
- package/bin/chunk-4rbzswqs.js +0 -71
- package/bin/chunk-60hpa5kf.js +0 -3
- package/bin/chunk-69tt1pvr.js +0 -2
- package/bin/chunk-815ezj20.js +0 -1
- package/bin/chunk-83k0wa5k.js +0 -2
- package/bin/chunk-85eg9xqx.js +0 -1
- package/bin/chunk-86aagej8.js +0 -1
- package/bin/chunk-8y1v9dm9.js +0 -2
- package/bin/chunk-9gq9782d.js +0 -1
- package/bin/chunk-bv88se28.css +0 -1
- package/bin/chunk-dv1zpd2p.js +0 -15
- package/bin/chunk-eetrc0j1.js +0 -3
- package/bin/chunk-eztggp8r.js +0 -1
- package/bin/chunk-gf5ds9r9.js +0 -2
- package/bin/chunk-h9emz0zb.js +0 -2
- package/bin/chunk-h9k2atte.js +0 -1
- package/bin/chunk-kkq4wvnc.js +0 -1
- package/bin/chunk-ksx113sp.js +0 -1
- package/bin/chunk-m6a4rzdt.js +0 -62
- package/bin/chunk-mw8f8ngt.js +0 -7
- package/bin/chunk-n76r6s9k.js +0 -2
- package/bin/chunk-qh9rz2ee.js +0 -11
- package/bin/chunk-rvspnthy.js +0 -1
- package/bin/chunk-sjjndwt4.js +0 -2
- package/bin/chunk-tvg9gvqs.js +0 -1
- package/bin/chunk-xp4dcyk3.js +0 -1
- package/bin/chunk-y8aehqr8.js +0 -2
- package/bin/chunk-yvxt48r4.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{f as
|
|
1
|
+
import{Mk as t,Nh as r,Nk as a,dl as o}from"./chunk-5ctpz542.js";var c=t("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",ghost:"[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",link:"text-primary underline-offset-4 [a&]:hover:underline"}},defaultVariants:{variant:"default"}});function f({className:i,variant:e="default",asChild:n=!1,...s}){let d=n?a.Root:"span";return r(d,{"data-slot":"badge","data-variant":e,className:o(c({variant:e}),i),...s})}
|
|
2
|
+
export{f as Sf};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Ah as F,Ak as R,jk as L,xk as O,zh as z}from"./chunk-m6a4rzdt.js";import{Ql as m}from"./chunk-dej1gq35.js";function d(a,b){var g=a.length;a.push(b);a:for(;0<g;){var w=g-1>>>1,V=a[w];if(0<Q(V,b))a[w]=b,a[g]=V,g=w;else break a}}function N(a){return a.length===0?null:a[0]}function M(a){if(a.length===0)return null;var b=a[0],g=a.pop();if(g!==b){a[0]=g;a:for(var w=0,V=a.length,G=V>>>1;w<G;){var Y=2*(w+1)-1,D=a[Y],B=Y+1,q=a[B];if(0>Q(D,g))B<V&&0>Q(q,D)?(a[w]=q,a[B]=g,w=B):(a[w]=D,a[Y]=g,w=Y);else if(B<V&&0>Q(q,g))a[w]=q,a[B]=g,w=B;else break a}}return b}function Q(a,b){var g=a.sortIndex-b.sortIndex;return g!==0?g:a.id-b.id}function U(a){for(var b=N(C);b!==null;){if(b.callback===null)M(C);else if(b.startTime<=a)M(C),b.sortIndex=b.expirationTime,d(f,b);else break;b=N(C)}}function T(a){if(Z=!1,U(a),!X)if(N(f)!==null)X=!0,K||(K=!0,J());else{var b=N(C);b!==null&&j(T,b.startTime-a)}}function h(){return k?!0:A()-x<l?!1:!0}function W(){if(k=!1,K){var a=A();x=a;var b=!0;try{a:{X=!1,Z&&(Z=!1,s($),$=-1),y=!0;var g=E;try{b:{U(a);for(_=N(f);_!==null&&!(_.expirationTime>a&&h());){var w=_.callback;if(typeof w==="function"){_.callback=null,E=_.priorityLevel;var V=w(_.expirationTime<=a);if(a=A(),typeof V==="function"){_.callback=V,U(a),b=!0;break b}_===N(f)&&M(f),U(a)}else M(f);_=N(f)}if(_!==null)b=!0;else{var G=N(C);G!==null&&j(T,G.startTime-a),b=!1}}break a}finally{_=null,E=g,y=!1}b=void 0}}finally{b?J():K=!1}}}function j(a,b){$=u(function(){a(A())},b)}var A=void 0,P,H,t,f,C,o=1,_=null,E=3,y=!1,X=!1,Z=!1,k=!1,u,s,c,K=!1,$=-1,l=5,x=-1,J,v,I,p=5,i=1,r=4,e=3,aa=2,ba=function(a){a.callback=null},za=function(){return E},ga=function(){k=!0},wa=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var g=E;E=a;try{return b()}finally{E=g}},Va=function(a,b,g){var w=A();switch(typeof g==="object"&&g!==null?(g=g.delay,g=typeof g==="number"&&0<g?w+g:w):g=w,a){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5000}return V=g+V,a={id:o++,callback:b,priorityLevel:a,startTime:g,expirationTime:V,sortIndex:-1},g>w?(a.sortIndex=g,d(C,a),N(f)===null&&a===N(C)&&(Z?(s($),$=-1):Z=!0,j(T,g-w))):(a.sortIndex=V,d(f,a),X||y||(X=!0,K||(K=!0,J()))),a},_a;var Na=m(()=>{if(typeof performance==="object"&&typeof performance.now==="function")P=performance,A=function(){return P.now()};else H=Date,t=H.now(),A=function(){return H.now()-t};f=[],C=[],u=typeof setTimeout==="function"?setTimeout:null,s=typeof clearTimeout==="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;if(typeof c==="function")J=function(){c(W)};else if(typeof MessageChannel<"u")v=new MessageChannel,I=v.port2,v.port1.onmessage=W,J=function(){I.postMessage(null)};else J=function(){u(W,0)};_a=h});function Ba({className:a,orientation:b="horizontal",...g}){return z(O.Root,{"data-slot":"tabs","data-orientation":b,orientation:b,className:R("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",a),...g})}var n=L("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function Ea({className:a,variant:b="default",...g}){return z(O.List,{"data-slot":"tabs-list","data-variant":b,className:R(n({variant:b}),a),...g})}function Fa({className:a,...b}){return z(O.Trigger,{"data-slot":"tabs-trigger",className:R("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",a),...b})}function Ja({className:a,...b}){return z(O.Content,{"data-slot":"tabs-content",className:R("flex-1 outline-none",a),...b})}var S={viewBox:"0 -960 960 960",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},Ra=(a)=>z("svg",{...S,...a,children:z("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm120-80v-560H200v560h120Zm80 0h360v-560H400v560Z"})}),Xa=(a)=>z("svg",{...S,...a,children:z("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm360-80v-560H200v560h360Zm200 0v-560H640v560h120Z"})}),Za=(a)=>z("svg",{...S,...a,children:z("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm560-80v-560H400v560h360Z"})}),$a=(a)=>z("svg",{...S,...a,children:z("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm360-80v-560H200v560h360Z"})}),Ga=(a)=>F("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...a,children:[z("path",{d:"M12 8V4H8"}),z("path",{d:"M6 7H18A3 3 0 0 1 21 10V18A3 3 0 0 1 18 21H6A3 3 0 0 1 3 18V10A3 3 0 0 1 6 7ZM8 13V15A1 1 0 0 0 10 15V13A1 1 0 0 0 8 13ZM14 13V15A1 1 0 0 0 16 15V13A1 1 0 0 0 14 13Z",fill:"currentColor",stroke:"none"}),z("path",{d:"M2 14h2"}),z("path",{d:"M20 14h2"})]}),Ya=(a)=>z("svg",{xmlns:"http://www.w3.org/2000/svg",width:30,height:30,viewBox:"120 -792 720 720",fill:"none","aria-hidden":"true",focusable:"false",...a,children:z("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 160 -180 v -72 h 80 v -252 q 0 -74.7 50 -132.75 T 420 -712.8 v -25.2 q 0 -22.5 17.5 -38.25 T 480 -792 q 25 0 42.5 15.75 T 540 -738 v 25.2 q 80 18 130 76.05 T 720 -504 v 252 h 80 v 72 H 160 Z M 480 -72 q -33 0 -56.5 -21.15 T 400 -144 h 160 q 0 29.7 -23.5 50.85 T 480 -72 Z",fill:"currentColor"})}),qa=(a)=>F("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false",...a,children:[z("path",{d:"M10.77 10.377a1 1 0 0 0-.132.437l-.105 1.665a.5.5 0 0 0 .793.436l1.32-.96a1 1 0 0 0 .278-.309l3.912-6.775a1.25 1.25 0 1 0-2.165-1.25l-3.901 6.756Z",fill:"currentColor"}),z("path",{d:"M11.016 6.75a.758.758 0 0 1-.758.748c-2.938 0-4.882 1.71-5.517 3.95-.708 2.499.245 4.459 1.979 5.851 1.767 1.42 4.31 2.203 6.547 2.203.415 0 .749.335.745.748a.758.758 0 0 1-.758.748c-2.536 0-5.421-.873-7.485-2.531-2.098-1.686-3.38-4.225-2.475-7.414.818-2.883 3.354-5.051 6.977-5.051.415 0 .749.335.745.748Z",fill:"currentColor"}),z("path",{d:"M17.147 8.315a.767.767 0 0 1 1.058-.168c1.666 1.188 2.508 2.542 2.733 3.876a4.5 4.5 0 0 1-.805 3.392c-.919 1.434-2.714 2.074-4.479 2.185-1.799.113-3.78-.302-5.292-1.216a.733.733 0 0 1-.242-1.022.768.768 0 0 1 1.042-.246c1.216.734 2.881 1.096 4.409 1 1.553-.097 2.755-.647 3.292-1.5l.015-.022.015-.021a3.025 3.025 0 0 0 .553-2.294c-.148-.876-.72-1.915-2.137-2.926a.733.733 0 0 1-.162-1.038Z",fill:"currentColor"})]}),Sa=(a)=>{return F("svg",{viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a,children:[z("defs",{children:z("clipPath",{id:"bg-clip",children:z("rect",{x:"5",y:"5",width:"90",height:"90",rx:"22"})})}),z("rect",{x:"5",y:"5",width:"90",height:"90",rx:"22",fill:"#D95A66"}),z("path",{d:"M 35 75 L 65 75 L 80 60 L 75 30 L 175 130 L 135 175 Z",fill:"#A8384D",clipPath:"url(#bg-clip)"}),z("path",{d:"M 25 30 Q 38 36 50 42 L 35 55 L 35 75 L 20 60 Z",fill:"#FDF0D5"}),z("path",{d:"M 50 42 Q 62 36 75 30 L 80 60 L 65 75 L 65 55 Z",fill:"#E77A65"}),z("path",{d:"M 35 75 L 65 75 L 65 55 L 50 42 L 35 55 Z",fill:"#F5B895"}),z("path",{d:"M 50 42 Q 38 36 25 30 Q 38 26 50 20 Q 62 26 75 30 Q 62 36 50 42 Z",fill:"#F4B8B8"}),z("path",{d:"M 50 25 L 42 30 L 50 35 Z",fill:"#E57A5F"}),z("path",{d:"M 50 25 L 58 30 L 50 35 Z",fill:"#C2523C"})]})},Qa=(a)=>z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"24 24 152 152",fill:"none","aria-hidden":"true",focusable:"false",...a,children:z("path",{d:"M 44 170 L 44 100 L 24 100 L 100 30 L 126 54 L 126 36 L 142 36 L 142 69 L 176 100 L 156 100 L 156 170 L 120 170 L 120 136 A 20 20 0 0 0 80 136 L 80 170 Z",fill:"currentColor"})});function Ha({uploading:a=!1,className:b="",...g}){return F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"15 15 70 70",width:30,height:30,className:`${b} ${a?"animate-upload-breathing":""}`,"aria-hidden":"true",focusable:"false",style:a?{transformOrigin:"center"}:void 0,...g,children:[a&&z("defs",{children:F("linearGradient",{id:"upload-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[z("stop",{offset:"0%",stopColor:"#3b82f6",children:z("animate",{attributeName:"stop-color",values:"#3b82f6;#ec4899;#8b5cf6;#3b82f6",dur:"3s",repeatCount:"indefinite"})}),z("stop",{offset:"50%",stopColor:"#8b5cf6",children:z("animate",{attributeName:"stop-color",values:"#8b5cf6;#3b82f6;#ec4899;#8b5cf6",dur:"3s",repeatCount:"indefinite"})}),z("stop",{offset:"100%",stopColor:"#ec4899",children:z("animate",{attributeName:"stop-color",values:"#ec4899;#8b5cf6;#3b82f6;#ec4899",dur:"3s",repeatCount:"indefinite"})})]})}),z("path",{d:"M 44.1 75 H 30 A 15 15 0 0 1 30 45 A 20 20 0 0 1 70 45 A 15 15 0 0 1 70 75 H 55.9 V 60.2 H 61.9 L 50 45.3 L 38.1 60.2 H 44.1 Z",fill:a?"url(#upload-gradient)":"currentColor"})]})}
|
|
2
|
-
export{A as
|
|
1
|
+
import{Mk as L,Nh as z,Oh as F,al as O,dl as R}from"./chunk-5ctpz542.js";import{qm as m}from"./chunk-j4byth37.js";function d(a,b){var g=a.length;a.push(b);a:for(;0<g;){var w=g-1>>>1,V=a[w];if(0<Q(V,b))a[w]=b,a[g]=V,g=w;else break a}}function N(a){return a.length===0?null:a[0]}function M(a){if(a.length===0)return null;var b=a[0],g=a.pop();if(g!==b){a[0]=g;a:for(var w=0,V=a.length,G=V>>>1;w<G;){var Y=2*(w+1)-1,D=a[Y],B=Y+1,q=a[B];if(0>Q(D,g))B<V&&0>Q(q,D)?(a[w]=q,a[B]=g,w=B):(a[w]=D,a[Y]=g,w=Y);else if(B<V&&0>Q(q,g))a[w]=q,a[B]=g,w=B;else break a}}return b}function Q(a,b){var g=a.sortIndex-b.sortIndex;return g!==0?g:a.id-b.id}function U(a){for(var b=N(C);b!==null;){if(b.callback===null)M(C);else if(b.startTime<=a)M(C),b.sortIndex=b.expirationTime,d(f,b);else break;b=N(C)}}function T(a){if(Z=!1,U(a),!X)if(N(f)!==null)X=!0,K||(K=!0,J());else{var b=N(C);b!==null&&j(T,b.startTime-a)}}function h(){return k?!0:A()-x<l?!1:!0}function W(){if(k=!1,K){var a=A();x=a;var b=!0;try{a:{X=!1,Z&&(Z=!1,s($),$=-1),y=!0;var g=E;try{b:{U(a);for(_=N(f);_!==null&&!(_.expirationTime>a&&h());){var w=_.callback;if(typeof w==="function"){_.callback=null,E=_.priorityLevel;var V=w(_.expirationTime<=a);if(a=A(),typeof V==="function"){_.callback=V,U(a),b=!0;break b}_===N(f)&&M(f),U(a)}else M(f);_=N(f)}if(_!==null)b=!0;else{var G=N(C);G!==null&&j(T,G.startTime-a),b=!1}}break a}finally{_=null,E=g,y=!1}b=void 0}}finally{b?J():K=!1}}}function j(a,b){$=u(function(){a(A())},b)}var A=void 0,P,H,t,f,C,o=1,_=null,E=3,y=!1,X=!1,Z=!1,k=!1,u,s,c,K=!1,$=-1,l=5,x=-1,J,v,I,p=5,i=1,r=4,e=3,aa=2,ba=function(a){a.callback=null},za=function(){return E},ga=function(){k=!0},wa=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3}var g=E;E=a;try{return b()}finally{E=g}},Va=function(a,b,g){var w=A();switch(typeof g==="object"&&g!==null?(g=g.delay,g=typeof g==="number"&&0<g?w+g:w):g=w,a){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5000}return V=g+V,a={id:o++,callback:b,priorityLevel:a,startTime:g,expirationTime:V,sortIndex:-1},g>w?(a.sortIndex=g,d(C,a),N(f)===null&&a===N(C)&&(Z?(s($),$=-1):Z=!0,j(T,g-w))):(a.sortIndex=V,d(f,a),X||y||(X=!0,K||(K=!0,J()))),a},_a;var Na=m(()=>{if(typeof performance==="object"&&typeof performance.now==="function")P=performance,A=function(){return P.now()};else H=Date,t=H.now(),A=function(){return H.now()-t};f=[],C=[],u=typeof setTimeout==="function"?setTimeout:null,s=typeof clearTimeout==="function"?clearTimeout:null,c=typeof setImmediate<"u"?setImmediate:null;if(typeof c==="function")J=function(){c(W)};else if(typeof MessageChannel<"u")v=new MessageChannel,I=v.port2,v.port1.onmessage=W,J=function(){I.postMessage(null)};else J=function(){u(W,0)};_a=h});function Ba({className:a,orientation:b="horizontal",...g}){return z(O.Root,{"data-slot":"tabs","data-orientation":b,orientation:b,className:R("group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",a),...g})}var n=L("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function Ea({className:a,variant:b="default",...g}){return z(O.List,{"data-slot":"tabs-list","data-variant":b,className:R(n({variant:b}),a),...g})}function Fa({className:a,...b}){return z(O.Trigger,{"data-slot":"tabs-trigger",className:R("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 group-data-[variant=default]/tabs-list:data-[state=active]:shadow-sm group-data-[variant=line]/tabs-list:data-[state=active]:shadow-none dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:border-transparent dark:group-data-[variant=line]/tabs-list:data-[state=active]:bg-transparent","data-[state=active]:bg-background data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5 group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-[state=active]:after:opacity-100",a),...b})}function Ja({className:a,...b}){return z(O.Content,{"data-slot":"tabs-content",className:R("flex-1 outline-none",a),...b})}var S={viewBox:"0 -960 960 960",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},Ra=(a)=>z("svg",{...S,...a,children:z("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm120-80v-560H200v560h120Zm80 0h360v-560H400v560Z"})}),Xa=(a)=>z("svg",{...S,...a,children:z("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm360-80v-560H200v560h360Zm200 0v-560H640v560h120Z"})}),Za=(a)=>z("svg",{...S,...a,children:z("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm560-80v-560H400v560h360Z"})}),$a=(a)=>z("svg",{...S,...a,children:z("path",{d:"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm360-80v-560H200v560h360Z"})}),Ga=(a)=>F("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...a,children:[z("path",{d:"M12 8V4H8"}),z("path",{d:"M6 7H18A3 3 0 0 1 21 10V18A3 3 0 0 1 18 21H6A3 3 0 0 1 3 18V10A3 3 0 0 1 6 7ZM8 13V15A1 1 0 0 0 10 15V13A1 1 0 0 0 8 13ZM14 13V15A1 1 0 0 0 16 15V13A1 1 0 0 0 14 13Z",fill:"currentColor",stroke:"none"}),z("path",{d:"M2 14h2"}),z("path",{d:"M20 14h2"})]}),Ya=(a)=>z("svg",{xmlns:"http://www.w3.org/2000/svg",width:30,height:30,viewBox:"120 -792 720 720",fill:"none","aria-hidden":"true",focusable:"false",...a,children:z("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M 160 -180 v -72 h 80 v -252 q 0 -74.7 50 -132.75 T 420 -712.8 v -25.2 q 0 -22.5 17.5 -38.25 T 480 -792 q 25 0 42.5 15.75 T 540 -738 v 25.2 q 80 18 130 76.05 T 720 -504 v 252 h 80 v 72 H 160 Z M 480 -72 q -33 0 -56.5 -21.15 T 400 -144 h 160 q 0 29.7 -23.5 50.85 T 480 -72 Z",fill:"currentColor"})}),qa=(a)=>F("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",focusable:"false",...a,children:[z("path",{d:"M10.77 10.377a1 1 0 0 0-.132.437l-.105 1.665a.5.5 0 0 0 .793.436l1.32-.96a1 1 0 0 0 .278-.309l3.912-6.775a1.25 1.25 0 1 0-2.165-1.25l-3.901 6.756Z",fill:"currentColor"}),z("path",{d:"M11.016 6.75a.758.758 0 0 1-.758.748c-2.938 0-4.882 1.71-5.517 3.95-.708 2.499.245 4.459 1.979 5.851 1.767 1.42 4.31 2.203 6.547 2.203.415 0 .749.335.745.748a.758.758 0 0 1-.758.748c-2.536 0-5.421-.873-7.485-2.531-2.098-1.686-3.38-4.225-2.475-7.414.818-2.883 3.354-5.051 6.977-5.051.415 0 .749.335.745.748Z",fill:"currentColor"}),z("path",{d:"M17.147 8.315a.767.767 0 0 1 1.058-.168c1.666 1.188 2.508 2.542 2.733 3.876a4.5 4.5 0 0 1-.805 3.392c-.919 1.434-2.714 2.074-4.479 2.185-1.799.113-3.78-.302-5.292-1.216a.733.733 0 0 1-.242-1.022.768.768 0 0 1 1.042-.246c1.216.734 2.881 1.096 4.409 1 1.553-.097 2.755-.647 3.292-1.5l.015-.022.015-.021a3.025 3.025 0 0 0 .553-2.294c-.148-.876-.72-1.915-2.137-2.926a.733.733 0 0 1-.162-1.038Z",fill:"currentColor"})]}),Sa=(a)=>{return F("svg",{viewBox:"0 0 100 100",fill:"none",xmlns:"http://www.w3.org/2000/svg",...a,children:[z("defs",{children:z("clipPath",{id:"bg-clip",children:z("rect",{x:"5",y:"5",width:"90",height:"90",rx:"22"})})}),z("rect",{x:"5",y:"5",width:"90",height:"90",rx:"22",fill:"#D95A66"}),z("path",{d:"M 35 75 L 65 75 L 80 60 L 75 30 L 175 130 L 135 175 Z",fill:"#A8384D",clipPath:"url(#bg-clip)"}),z("path",{d:"M 25 30 Q 38 36 50 42 L 35 55 L 35 75 L 20 60 Z",fill:"#FDF0D5"}),z("path",{d:"M 50 42 Q 62 36 75 30 L 80 60 L 65 75 L 65 55 Z",fill:"#E77A65"}),z("path",{d:"M 35 75 L 65 75 L 65 55 L 50 42 L 35 55 Z",fill:"#F5B895"}),z("path",{d:"M 50 42 Q 38 36 25 30 Q 38 26 50 20 Q 62 26 75 30 Q 62 36 50 42 Z",fill:"#F4B8B8"}),z("path",{d:"M 50 25 L 42 30 L 50 35 Z",fill:"#E57A5F"}),z("path",{d:"M 50 25 L 58 30 L 50 35 Z",fill:"#C2523C"})]})},Qa=(a)=>z("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"24 24 152 152",fill:"none","aria-hidden":"true",focusable:"false",...a,children:z("path",{d:"M 44 170 L 44 100 L 24 100 L 100 30 L 126 54 L 126 36 L 142 36 L 142 69 L 176 100 L 156 100 L 156 170 L 120 170 L 120 136 A 20 20 0 0 0 80 136 L 80 170 Z",fill:"currentColor"})});function Ha({uploading:a=!1,className:b="",...g}){return F("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"15 15 70 70",width:30,height:30,className:`${b} ${a?"animate-upload-breathing":""}`,"aria-hidden":"true",focusable:"false",style:a?{transformOrigin:"center"}:void 0,...g,children:[a&&z("defs",{children:F("linearGradient",{id:"upload-gradient",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[z("stop",{offset:"0%",stopColor:"#3b82f6",children:z("animate",{attributeName:"stop-color",values:"#3b82f6;#ec4899;#8b5cf6;#3b82f6",dur:"3s",repeatCount:"indefinite"})}),z("stop",{offset:"50%",stopColor:"#8b5cf6",children:z("animate",{attributeName:"stop-color",values:"#8b5cf6;#3b82f6;#ec4899;#8b5cf6",dur:"3s",repeatCount:"indefinite"})}),z("stop",{offset:"100%",stopColor:"#ec4899",children:z("animate",{attributeName:"stop-color",values:"#ec4899;#8b5cf6;#3b82f6;#ec4899",dur:"3s",repeatCount:"indefinite"})})]})}),z("path",{d:"M 44.1 75 H 30 A 15 15 0 0 1 30 45 A 20 20 0 0 1 70 45 A 15 15 0 0 1 70 75 H 55.9 V 60.2 H 61.9 L 50 45.3 L 38.1 60.2 H 44.1 Z",fill:a?"url(#upload-gradient)":"currentColor"})]})}
|
|
2
|
+
export{A as of,p as pf,i as qf,r as rf,e as sf,aa as tf,ba as uf,za as vf,ga as wf,wa as xf,Va as yf,_a as zf,Na as Af,Ba as Bf,Ea as Cf,Fa as Df,Ja as Ef,Ra as Ff,Xa as Gf,Za as Hf,$a as If,Ga as Jf,Ya as Kf,qa as Lf,Sa as Mf,Qa as Nf,Ha as Of};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
export{S as
|
|
1
|
+
import{Lh as W,Nh as b,Oh as Y,ii as Z}from"./chunk-5ctpz542.js";import{nm as R}from"./chunk-j4byth37.js";var r=Z((u)=>({uploading:0,tasks:{},fileProgress:{},increment:()=>u((d)=>({uploading:d.uploading+1})),decrement:()=>u((d)=>({uploading:d.uploading-1})),startTask:(d,k,F)=>u((o)=>{let l={},s=0;F.forEach((f)=>{l[f.fileId]={fileId:f.fileId,name:f.name,loaded:0,total:f.size,status:"uploading"},s+=f.size});let g={...o.tasks,[d]:{taskId:d,name:k,loaded:0,total:s,files:l}},P={...o.fileProgress};return F.forEach((f)=>{P[f.fileId]=l[f.fileId]}),{tasks:g,fileProgress:P}}),updateFileProgress:(d,k,F)=>u((o)=>{let l=o.tasks[d];if(!l)return{};let s=l.files[k];if(!s)return{};let g={...s,loaded:F},P={...l.files,[k]:g},f=Object.values(P).reduce((p,w)=>p+w.loaded,0);return{tasks:{...o.tasks,[d]:{...l,loaded:f,files:P}},fileProgress:{...o.fileProgress,[k]:g}}}),completeFile:(d,k)=>u((F)=>{let o=F.tasks[d];if(!o)return{};let l=o.files[k];if(!l)return{};let s={...l,status:"completed",loaded:l.total},g={...o.files,[k]:s},P=Object.values(g).reduce((f,p)=>f+p.loaded,0);return{tasks:{...F.tasks,[d]:{...o,loaded:P,files:g}},fileProgress:{...F.fileProgress,[k]:s}}}),failFile:(d,k)=>u((F)=>{let o=F.tasks[d];if(!o)return{};let l=o.files[k];if(!l)return{};let s={...l,status:"failed"},g={...o.files,[k]:s},P=Object.values(g).reduce((f,p)=>f+p.loaded,0);return{tasks:{...F.tasks,[d]:{...o,loaded:P,files:g}},fileProgress:{...F.fileProgress,[k]:s}}})}));var a=R(W(),1);var q=10,Q=10,$=q*Q,S=({spriteUrl:u,thumbnailUrl:d,videoWidth:k,videoHeight:F,className:o=""})=>{let l=a.useRef(null),[s,g]=a.useState({width:0,height:0}),[P,f]=a.useState({width:0,height:0}),[p,w]=a.useState(!1),[c,E]=a.useState(!1),[V,J]=a.useState(!1),[K,N]=a.useState(0),[j,n]=a.useState(0);a.useEffect(()=>{if(!l.current)return;let t=new ResizeObserver((m)=>{for(let B of m)g({width:B.contentRect.width,height:B.contentRect.height})});return t.observe(l.current),()=>t.disconnect()},[]);let X=a.useCallback(()=>{if(c||V)return;J(!0);let t=new Image;t.src=u,t.onload=()=>{f({width:t.naturalWidth,height:t.naturalHeight}),E(!0),J(!1)},t.onerror=()=>{console.error("Failed to load sprite image"),J(!1)}},[u,c,V]),M=()=>{w(!0),X()},A=()=>{w(!1)},D=(t)=>{if(!l.current)return;let m=l.current.getBoundingClientRect(),B=t.clientX-m.left,y=Math.max(0,Math.min(B,m.width));n(y);let T=y/m.width,U=Math.min(Math.floor(T*$),$-1);N(U)},G=a.useMemo(()=>{if(s.width===0||s.height===0)return{};let t=k/F;if(P.width>0&&P.height>0){let z=P.width/q,i=P.height/Q;t=z/i}let m=s.width/s.height,B,y;if(m>t)y=s.height,B=y*t;else B=s.width,y=B/t;let T=Math.ceil(B),U=Math.ceil(y),I=T*q,O=U*Q,v=K%q,x=Math.floor(K/q),C=-(v*T),_=-(x*U);return{backgroundImage:`url(${u})`,backgroundSize:`${I}px ${O}px`,backgroundPosition:`${C}px ${_}px`,backgroundRepeat:"no-repeat",width:`${T}px`,height:`${U}px`,imageRendering:"auto"}},[s,k,F,K,u,P]);return Y("div",{ref:l,className:`relative w-full h-full overflow-hidden cursor-crosshair group bg-black select-none ${o}`,onMouseEnter:M,onMouseLeave:A,onMouseMove:D,children:[b("img",{src:d,alt:"Thumbnail",className:`absolute inset-0 w-full h-full object-contain transition-opacity duration-200 ${p&&c?"opacity-0":"opacity-100"}`,draggable:!1}),p&&!c&&b("div",{className:"absolute inset-0 flex items-center justify-center bg-black/50 z-10",children:b("div",{className:"w-6 h-6 border-2 border-white/30 border-t-white rounded-full animate-spin"})}),c&&b("div",{className:`absolute inset-0 flex items-center justify-center transition-opacity duration-75 ${p?"opacity-100":"opacity-0"}`,children:b("div",{style:G})}),p&&b("div",{className:"absolute top-0 bottom-0 w-0.5 bg-red-500 shadow-[0_0_4px_rgba(255,0,0,0.8)] z-20 pointer-events-none",style:{transform:`translateX(${j}px)`}})]})};
|
|
2
|
+
export{S as mf,r as nf};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ja as F}from"./chunk-n3e4agsa.js";import{Hk as E,ij as x,il as k,jj as z,jk as A,tk as B}from"./chunk-5ctpz542.js";var J={agent_total_tokens:{label:()=>k.quota_resource_agent_total_tokens(),icon:x,unit:"tokens"},agent_cost:{label:()=>k.quota_resource_agent_cost(),icon:z,unit:"$"},agent_mcp_call_count:{label:()=>k.quota_resource_agent_mcp_call_count(),icon:A,unit:"calls"},agent_bash_call_count:{label:()=>k.quota_resource_agent_bash_call_count(),icon:B,unit:"calls"},agent_tool_call_count:{label:()=>k.quota_resource_agent_tool_call_count(),icon:E,unit:"calls"}};function K(q,w){if(q==="agent_cost")return`$${w.toFixed(2)}`;return w.toLocaleString()}function L(q){switch(F(q)){case"1hour":return k.quota_period_1hour();case"5hour":return k.quota_period_5hour();case"1day":return k.quota_period_1day();case"7day":return k.quota_period_7day();default:return q}}
|
|
2
|
+
export{J as a,K as b,L as c};
|