@gientech/modual 1.0.3 → 1.0.5
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/assets/LeftOutlined-C1Tv2UIq.js +35 -0
- package/assets/chevron-right-CrkLSPrQ.js +6 -0
- package/assets/createLucideIcon-Bj5DlX2s.js +21 -0
- package/assets/index-BW1L5s38.js +10 -0
- package/assets/index-Bt4pq4lJ.js +1 -0
- package/assets/index-CGHNxHzA.js +167 -0
- package/assets/index-CpW6Dhpp.js +1 -0
- package/assets/index-Df9lUffW.js +1 -0
- package/assets/index-DkrRMiqX.js +1 -0
- package/assets/index-E7FJJ9zV.js +30 -0
- package/assets/index-JdQHnMoG.js +1 -0
- package/assets/index-NIGUFBhG.js +6 -0
- package/assets/plus-B679mjyt.js +6 -0
- package/assets/style.css +1 -1
- package/assets/style2.css +1 -1
- package/assets/style3.css +1 -1
- package/assets/x-CdZQbi--.js +6 -0
- package/chat.js +303 -248
- package/database.js +2 -2
- package/databaseId.js +26 -1
- package/databaseTable.js +18 -1
- package/gientechStreamFilesReader.js +12 -1
- package/modelManage.js +1 -1
- package/package.json +1 -21
- package/sensitive.js +1 -1
- package/streamFilesReader.js +55 -62
- package/assets/index-BMSRZNG4.js +0 -1
- package/assets/jsx-runtime-vC1aA8e7.js +0 -9
package/streamFilesReader.js
CHANGED
|
@@ -1,133 +1,103 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsxs as $,jsx as s,Fragment as gu}from"react/jsx-runtime";import Qu,{useState as k,useRef as q,useEffect as uu,useCallback as l}from"react";import{d as v}from"./assets/styled-components.browser.esm-BKnFpJ_S.js";import{a as au}from"./assets/index-NIGUFBhG.js";import{c as H}from"./assets/createLucideIcon-Bj5DlX2s.js";import{C as Vu}from"./assets/chevron-right-CrkLSPrQ.js";import{X as Nu}from"./assets/x-CdZQbi--.js";import{parseFile as hu,Fviewer as su}from"@mxmweb/fviewer";/**
|
|
2
2
|
* @license lucide-react v0.456.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
5
5
|
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/const
|
|
6
|
+
*/const zu=H("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
7
7
|
* @license lucide-react v0.456.0 - ISC
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the ISC license.
|
|
10
10
|
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
11
|
+
*/const Tu=H("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
12
12
|
* @license lucide-react v0.456.0 - ISC
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const
|
|
16
|
+
*/const uo=H("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
|
|
17
17
|
* @license lucide-react v0.456.0 - ISC
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the ISC license.
|
|
20
20
|
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/const
|
|
21
|
+
*/const oo=H("RotateCcw",[["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"}]]);/**
|
|
22
22
|
* @license lucide-react v0.456.0 - ISC
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
25
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/const
|
|
26
|
+
*/const eo=H("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);/**
|
|
27
27
|
* @license lucide-react v0.456.0 - ISC
|
|
28
28
|
*
|
|
29
29
|
* This source code is licensed under the ISC license.
|
|
30
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/const
|
|
31
|
+
*/const to=H("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);/**
|
|
32
32
|
* @license lucide-react v0.456.0 - ISC
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the ISC license.
|
|
35
35
|
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/const
|
|
37
|
-
* @license lucide-react v0.456.0 - ISC
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the ISC license.
|
|
40
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const M=a("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
|
|
42
|
-
* @license lucide-react v0.456.0 - ISC
|
|
43
|
-
*
|
|
44
|
-
* This source code is licensed under the ISC license.
|
|
45
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const A=a("RotateCcw",[["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"}]]);/**
|
|
47
|
-
* @license lucide-react v0.456.0 - ISC
|
|
48
|
-
*
|
|
49
|
-
* This source code is licensed under the ISC license.
|
|
50
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
-
*/const I=a("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);/**
|
|
52
|
-
* @license lucide-react v0.456.0 - ISC
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the ISC license.
|
|
55
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/const T=a("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
57
|
-
* @license lucide-react v0.456.0 - ISC
|
|
58
|
-
*
|
|
59
|
-
* This source code is licensed under the ISC license.
|
|
60
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/const D=a("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);/**
|
|
62
|
-
* @license lucide-react v0.456.0 - ISC
|
|
63
|
-
*
|
|
64
|
-
* This source code is licensed under the ISC license.
|
|
65
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/const Z=a("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),q=s.div`
|
|
36
|
+
*/const no=H("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),ro=v.div`
|
|
67
37
|
display: flex;
|
|
68
38
|
align-items: center;
|
|
69
39
|
padding: 0px 12px;
|
|
70
40
|
justify-content: space-between;
|
|
71
|
-
padding: ${
|
|
72
|
-
border-bottom: 1px solid ${
|
|
73
|
-
background: ${
|
|
41
|
+
padding: ${n=>n.$theme.space.padding};
|
|
42
|
+
border-bottom: 1px solid ${n=>n.$theme.colors.border};
|
|
43
|
+
background: ${n=>n.$theme.colors.background};
|
|
74
44
|
min-height: 52px;
|
|
75
|
-
`,
|
|
45
|
+
`,ao=v.div`
|
|
76
46
|
display: flex;
|
|
77
47
|
align-items: center;
|
|
78
48
|
gap: 8px;
|
|
79
49
|
flex: 1;
|
|
80
50
|
min-width: 0;
|
|
81
|
-
`,
|
|
51
|
+
`,so=v.div`
|
|
82
52
|
font-size: 14px;
|
|
83
53
|
font-weight: 500;
|
|
84
|
-
color: ${
|
|
54
|
+
color: ${n=>n.$theme.colors.text};
|
|
85
55
|
white-space: nowrap;
|
|
86
56
|
overflow: hidden;
|
|
87
57
|
text-overflow: ellipsis;
|
|
88
|
-
`,
|
|
58
|
+
`,co=v.div`
|
|
89
59
|
font-size: 12px;
|
|
90
|
-
color: ${
|
|
60
|
+
color: ${n=>n.$theme.colors.disabledText};
|
|
91
61
|
white-space: nowrap;
|
|
92
|
-
`,
|
|
62
|
+
`,lo=v.div`
|
|
93
63
|
display: flex;
|
|
94
64
|
align-items: center;
|
|
95
65
|
gap: 4px;
|
|
96
|
-
`,
|
|
66
|
+
`,I=v.button`
|
|
97
67
|
display: flex;
|
|
98
68
|
align-items: center;
|
|
99
69
|
justify-content: center;
|
|
100
70
|
width: 32px;
|
|
101
71
|
height: 32px;
|
|
102
72
|
border: none;
|
|
103
|
-
border-radius: ${
|
|
104
|
-
background: ${
|
|
105
|
-
color: ${
|
|
73
|
+
border-radius: ${n=>n.$theme.space.radius};
|
|
74
|
+
background: ${n=>n.$active?n.$theme.colors.primary+"20":"transparent"};
|
|
75
|
+
color: ${n=>n.$active?n.$theme.colors.primary:n.$theme.colors.text};
|
|
106
76
|
cursor: pointer;
|
|
107
77
|
transition: all 0.2s ease;
|
|
108
78
|
|
|
109
79
|
&:hover {
|
|
110
|
-
background: ${
|
|
111
|
-
color: ${
|
|
80
|
+
background: ${n=>n.$theme.colors.primary+"10"};
|
|
81
|
+
color: ${n=>n.$theme.colors.primary};
|
|
112
82
|
}
|
|
113
83
|
|
|
114
84
|
&:disabled {
|
|
115
85
|
opacity: 0.5;
|
|
116
86
|
cursor: not-allowed;
|
|
117
87
|
}
|
|
118
|
-
`,
|
|
88
|
+
`,io=v.div`
|
|
119
89
|
font-size: 12px;
|
|
120
|
-
color: ${
|
|
90
|
+
color: ${n=>n.$theme.colors.disabledText};
|
|
121
91
|
min-width: 40px;
|
|
122
92
|
text-align: center;
|
|
123
|
-
`,
|
|
93
|
+
`,Fo={colors:{primary:"#007bff",secondary:"#6c757d",success:"#008000",warning:"#FFA500",error:"#FF0000",info:"#0000FF",background:"#f8f9fa",text:"#343a40",border:"#dee2e6",disabled:"#808080",disabledBackground:"#F5F5F5",disabledText:"#808080"},space:{sidebar:"md",size:"md",radius:"md",padding:"md",margin:"md",shadow:"md",lineHeight:"md"}},Ou=Qu.memo(({fileName:n="\u672A\u77E5\u6587\u4EF6",currentPage:d=1,totalPage:e=0,tools:B={annotation:!0,download:!0,zoom:!0,close:!0,navigation:!0,rotate:!0},styles:_,onPrevPage:g,onNextPage:G,onZoomIn:h,onZoomOut:cu,onAnnotationToggle:b,onDownload:F,onRotateLeft:c,onRotateRight:V,onClose:x,scale:f=1,isAnnotating:U=!1,className:ou})=>{const i=(_==null?void 0:_.theme)||Fo;return console.log("Header\u7EC4\u4EF6\u6E32\u67D3 - currentPage:",d,"totalPage:",e),$(ro,{$theme:i,className:ou,children:[s(ao,{$theme:i,children:s(so,{$theme:i,children:n})}),$(lo,{$theme:i,children:[B.navigation&&$(gu,{children:[s(I,{$theme:i,onClick:g,disabled:d<=1,title:"\u4E0A\u4E00\u9875",children:s(zu,{size:16})}),e>0&&$(co,{$theme:i,children:[d," / ",e]}),s(I,{$theme:i,onClick:G,disabled:!e||d>=e,title:"\u4E0B\u4E00\u9875",children:s(Vu,{size:16})})]}),B.zoom&&$(gu,{children:[s(I,{$theme:i,onClick:cu,disabled:f<=.3,title:"\u7F29\u5C0F",children:s(no,{size:16})}),$(io,{$theme:i,children:[Math.round(f*100),"%"]}),s(I,{$theme:i,onClick:h,disabled:f>=3,title:"\u653E\u5927",children:s(to,{size:16})})]}),B.annotation&&s(I,{$theme:i,$active:U,onClick:b,title:U?"\u9000\u51FA\u6807\u6CE8":"\u5F00\u59CB\u6807\u6CE8",children:s(uo,{size:16})}),B.download&&s(I,{$theme:i,onClick:F,title:"\u4E0B\u8F7D",children:s(Tu,{size:16})}),B.rotate&&$(gu,{children:[s(I,{$theme:i,onClick:c,title:"\u5411\u5DE6\u65CB\u8F6C",children:s(oo,{size:16})}),s(I,{$theme:i,onClick:V,title:"\u5411\u53F3\u65CB\u8F6C",children:s(eo,{size:16})})]}),B.close&&s(I,{$theme:i,onClick:x,title:"\u5173\u95ED",children:s(Nu,{size:16})})]})]})}),fu=v.div`
|
|
124
94
|
display: flex;
|
|
125
95
|
flex-direction: column;
|
|
126
96
|
height: 100%;
|
|
127
97
|
width: 100%;
|
|
128
|
-
background: ${
|
|
129
|
-
border: 1px solid ${
|
|
130
|
-
border-radius: ${
|
|
98
|
+
background: ${n=>n.$theme.colors.background};
|
|
99
|
+
border: 1px solid ${n=>n.$theme.colors.border};
|
|
100
|
+
border-radius: ${n=>n.$theme.space.radius};
|
|
131
101
|
overflow: hidden;
|
|
132
102
|
min-height: 0;
|
|
133
103
|
position: relative; // 添加相对定位,用于loading遮罩的绝对定位
|
|
@@ -137,13 +107,36 @@ import{j as t}from"./assets/jsx-runtime-vC1aA8e7.js";import C,{forwardRef as f,c
|
|
|
137
107
|
0% { transform: rotate(0deg); }
|
|
138
108
|
100% { transform: rotate(360deg); }
|
|
139
109
|
}
|
|
140
|
-
|
|
110
|
+
`,Do=({status:n,theme:d})=>$("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",padding:"40px",background:d.colors.background},children:[$("div",{style:{position:"relative",width:"80px",height:"80px",marginBottom:"24px"},children:[s("div",{style:{width:"60px",height:"80px",background:d.colors.primary,borderRadius:"8px 8px 0 0",position:"relative",margin:"0 auto"},children:s("div",{style:{position:"absolute",top:"0",right:"0",width:"0",height:"0",borderStyle:"solid",borderWidth:"0 20px 20px 0",borderColor:`transparent ${d.colors.background} transparent transparent`}})}),s("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"20px",height:"20px",borderRadius:"50%",background:d.colors.background,animation:"pulse 1.5s ease-in-out infinite"}})]}),s("div",{style:{fontSize:"16px",fontWeight:"500",color:d.colors.text,marginBottom:"8px",textAlign:"center"},children:n}),s("div",{style:{width:"200px",height:"4px",background:d.colors.border,borderRadius:"2px",overflow:"hidden",position:"relative"},children:s("div",{style:{width:"30%",height:"100%",background:d.colors.primary,borderRadius:"2px",animation:"loading-progress 2s ease-in-out infinite"}})}),s("style",{children:`
|
|
111
|
+
@keyframes pulse {
|
|
112
|
+
0%, 100% {
|
|
113
|
+
opacity: 1;
|
|
114
|
+
transform: translate(-50%, -50%) scale(1);
|
|
115
|
+
}
|
|
116
|
+
50% {
|
|
117
|
+
opacity: 0.5;
|
|
118
|
+
transform: translate(-50%, -50%) scale(1.1);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@keyframes loading-progress {
|
|
123
|
+
0% {
|
|
124
|
+
transform: translateX(-100%);
|
|
125
|
+
}
|
|
126
|
+
50% {
|
|
127
|
+
transform: translateX(0%);
|
|
128
|
+
}
|
|
129
|
+
100% {
|
|
130
|
+
transform: translateX(100%);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
`})]}),go=v.div`
|
|
141
134
|
display: flex;
|
|
142
135
|
flex-direction: column;
|
|
143
136
|
align-items: center;
|
|
144
137
|
justify-content: center;
|
|
145
138
|
height: 100%;
|
|
146
|
-
color: ${
|
|
139
|
+
color: ${n=>n.$theme.colors.error};
|
|
147
140
|
text-align: center;
|
|
148
141
|
padding: 20px;
|
|
149
|
-
`;
|
|
142
|
+
`,ho="http://10.15.12.13:9005/proxy/index/knowledgeBase/file/stream",A=300*1e3,fo={colors:{primary:"#007bff",secondary:"#6c757d",success:"#008000",warning:"#FFA500",error:"#FF0000",info:"#0000FF",background:"#f8f9fa",text:"#343a40",border:"#dee2e6",disabled:"#808080",disabledBackground:"#F5F5F5",disabledText:"#808080"},space:{sidebar:"md",size:"md",radius:"md",padding:"md",margin:"md",shadow:"md",lineHeight:"md"}},bo=({convertedFilePath:n,fileName:d,fileType:e,csrfToken:B,initialPage:_=1,totalPages:g,annotations:G=[],pageSize:h=5,initialZoom:cu=100,streamApiUrl:b=ho,authorization:F,eventsEmit:c=()=>{},tools:V,styles:x,customComponents:f,className:U,headerClass:ou,contentClass:i})=>{const[lu,C]=k(!0),[Cu,m]=k("\u6B63\u5728\u52A0\u8F7D\u6587\u6863..."),[du,O]=k(null),[j,M]=k(_),[E,W]=k(g||0),[P,ju]=k(cu/100),[N,iu]=k(0),[Lu,mu]=k(null),[Mu,Bu]=k(null),[Y,Eu]=k(""),[Su,Fu]=k(null),[Ku,wu]=k(null),[ku,Du]=k({}),z=q(!1),eu=q(!1),J=q({}),R=q({}),Q=q(null),Xu=q(null),S=q(_),K=(x==null?void 0:x.theme)||fo;uu(()=>{z.current=!1,eu.current=!1},[e,n]);const X=l(()=>{const u={annotation:!0,download:!0,zoom:!0,close:!0,navigation:!0,rotate:!1};let o;switch(e){case"pdf":case"pdf_slides":o={...u,annotation:!1,download:!1,navigation:!0,rotate:!1};break;case"image":o={...u,annotation:!1,download:!1,navigation:!1,rotate:!0,zoom:!0};break;case"markdown":case"markdown_table":o={...u,annotation:!1,download:!1,navigation:!1,rotate:!1,zoom:!1};break;case"text":case"html":case"unknown":o={...u,annotation:!1,download:!1,navigation:!1,rotate:!1,zoom:!1};break;default:o=u}return V?{...o,...V}:o},[e,V])(),L=l((u,o)=>{const r=Math.floor((u-1)/o)*o+1;return`${r}-${r+o-1}`},[]),$u=l(async u=>{var p;if(!(e==="pdf"||e==="pdf_slides"))return console.log(`\u6587\u4EF6\u7C7B\u578B ${e} \u4E0D\u662FPDF\uFF0C\u8DF3\u8FC7\u7F13\u5B58\u68C0\u67E5`),null;console.log(`\u68C0\u67E5\u9875\u9762 ${u} \u662F\u5426\u5728\u7F13\u5B58\u4E2D`);const r=J.current[u];if(r&&Date.now()-r.timestamp<A)return console.log(`\u4F7F\u7528\u5355\u4E2A\u9875\u9762\u7F13\u5B58: ${u}`),r.pdfDocument?(console.log(`\u76F4\u63A5\u8FD4\u56DE\u7F13\u5B58\u7684PDF\u6587\u6863: ${u}`),r.pdfDocument):null;const t=L(u,h),a=R.current[t];if(console.log(`\u68C0\u67E5chunk\u7F13\u5B58: ${t}, \u5B58\u5728: ${!!a}, \u5305\u542B\u9875\u9762: ${((p=a==null?void 0:a.pages)==null?void 0:p.join(", "))||"\u65E0"}`),a&&Date.now()-a.timestamp<A){if(a.pages.includes(u))return console.log(`\u4F7F\u7528chunk\u7F13\u5B58: ${u} (chunk: ${t})`),a.pdfDocument?(console.log(`\u76F4\u63A5\u8FD4\u56DE\u7F13\u5B58\u7684PDF\u6587\u6863: ${u}`),a.pdfDocument):null;console.log(`\u9875\u9762 ${u} \u4E0D\u5728chunk ${t} \u4E2D\uFF0Cchunk\u5305\u542B: ${a.pages.join(", ")}`)}return console.log(`\u9875\u9762 ${u} \u4E0D\u5728\u4EFB\u4F55\u7F13\u5B58\u4E2D\uFF0C\u9700\u8981\u91CD\u65B0\u8BF7\u6C42`),null},[h,L,e]),pu=l(async u=>{var o;try{if(!(e==="pdf"||e==="pdf_slides"))throw console.log(`\u6587\u4EF6\u7C7B\u578B ${e} \u4E0D\u9700\u8981\u5206\u9875\u53C2\u6570\uFF0C\u83B7\u53D6\u5B8C\u6574\u5185\u5BB9`),new Error(`\u6587\u4EF6\u7C7B\u578B ${e} \u4E0D\u652F\u6301\u5206\u9875\u52A0\u8F7D`);const t=Math.floor((u-1)/h)*h+1,a=L(u,h);console.log(`\u8BF7\u6C42PDF chunk\u6570\u636E: ${t} (\u5305\u542B\u9875\u9762 ${t}-${t+h-1})`);const p={"Content-Type":"application/json"};F&&(p.Authorization=F),B&&(p["X-CSRF-TOKEN-IN"]=B);const w={convertedFilePath:n,pageNo:t,pageSize:h},D=await au.post(b,w,{headers:p,responseType:"arraybuffer"}),Z=D.headers["x-csrf-token-out"]||D.headers["X-CSRF-TOKEN-OUT"];Z&&(console.log("\u83B7\u53D6\u5230\u54CD\u5E94\u5934\u4E2D\u7684CSRF Token:",Z),c("request_finish",Z));const T=Array.from({length:h},(mo,Ju)=>t+Ju);return R.current[a]={data:D.data,pages:T,timestamp:Date.now(),totalPages:g},console.log(`\u7F13\u5B58PDF chunk\u6570\u636E: ${a}, \u5305\u542B\u9875\u9762: ${T.join(", ")}, \u8BF7\u6C42\u7684\u9875\u9762: ${u}`),console.log("\u5F53\u524D\u6240\u6709\u7F13\u5B58:",Object.keys(R.current)),D.data}catch(r){throw console.error("\u83B7\u53D6PDF stream\u6570\u636E\u5931\u8D25:",r),new Error(`PDF\u8BF7\u6C42\u5931\u8D25: ${((o=r.response)==null?void 0:o.status)||"\u7F51\u7EDC\u9519\u8BEF"}`)}},[b,n,h,F,L,g,E,e,c]),tu=l(async(u,o=!1)=>{var t;if(!u)return;if(!(e==="pdf"||e==="pdf_slides"))return console.log(`\u6587\u4EF6\u7C7B\u578B ${e} \u4E0D\u662FPDF\uFF0C\u8DF3\u8FC7PDF\u52A0\u8F7D\u903B\u8F91`),null;try{o?(C(!0),m("\u6B63\u5728\u52A0\u8F7DPDF\u6587\u6863...")):(C(!0),m(`\u6B63\u5728\u52A0\u8F7D\u7B2C ${u} \u9875...`)),O(null),console.log(`\u5F00\u59CB\u52A0\u8F7DPDF\u9875\u9762: ${u}, \u521D\u59CB\u52A0\u8F7D: ${o}`);const a=await $u(u);if(a)return console.log(`\u4F7F\u7528\u7F13\u5B58\u7684PDF\u6587\u6863: ${u}`),mu(a),C(!1),m(""),console.log(`\u9875\u9762 ${u} \u52A0\u8F7D\u5B8C\u6210\uFF08\u4F7F\u7528\u7F13\u5B58\uFF09`),a;const p=await pu(u),w=await hu(p,{fileName:d||"Stream\u6587\u6863",fileType:"pdf",token:F});if(w.error)throw new Error(w.error);if(w.type!=="pdf"||!((t=w.content)!=null&&t.document))throw new Error("\u89E3\u6790\u7ED3\u679C\u4E0D\u662F\u6709\u6548\u7684PDF\u6587\u6863");const D=w.content.document;console.log("\u8BBE\u7F6EPDF\u6587\u6863:",D),console.log("PDF\u6587\u6863\u7C7B\u578B:",typeof D),console.log("PDF\u6587\u6863\u65B9\u6CD5:",D?Object.getOwnPropertyNames(Object.getPrototypeOf(D)):"\u65E0\u6587\u6863"),console.log("PDF\u6587\u6863\u9875\u6570:",D?D.numPages:"\u65E0\u9875\u6570"),console.log("\u5F53\u524D\u8BF7\u6C42\u7684\u9875\u9762:",u),console.log("PDF\u6587\u6863\u5305\u542B\u7684\u9875\u9762\u8303\u56F4:",D?`1-${D.numPages}`:"\u65E0\u9875\u6570"),mu(D);const Z=L(u,h);if(R.current[Z]&&(R.current[Z].pdfDocument=D,console.log(`\u7F13\u5B58PDF\u6587\u6863\u5230chunk: ${Z}`)),g)console.log(`\u4F7F\u7528\u7528\u6237\u4F20\u5165\u7684\u603B\u9875\u6570: ${g}`),W(g);else if(D&&D.numPages){const T=D.numPages;console.log(`\u7528\u6237\u672A\u4F20\u5165\u603B\u9875\u6570\uFF0C\u4ECEPDF\u6587\u6863\u83B7\u53D6\u5B9E\u9645\u603B\u9875\u6570: ${T}`),W(T)}return C(!1),m(""),console.log(`\u9875\u9762 ${u} \u52A0\u8F7D\u5B8C\u6210`),D}catch(a){throw console.error("PDF\u52A0\u8F7D\u5931\u8D25:",a),O(a.message||"PDF\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),C(!1),m(""),a}},[pu,d,F,E,$u,L,h,e]),xu=l(u=>{if(!(e==="pdf"||e==="pdf_slides"))return!1;const r=J.current[u];if(r&&Date.now()-r.timestamp<A)return!!r.pdfDocument;const t=L(u,h),a=R.current[t];return a&&Date.now()-a.timestamp<A?a.pages.includes(u)&&!!a.pdfDocument:!1},[h,L,e]),Au=l(()=>{console.log("\u68C0\u67E5markdown\u5185\u5BB9\u662F\u5426\u5728\u7F13\u5B58\u4E2D");const u=Q.current;return u&&Date.now()-u.timestamp<A?(console.log("\u4F7F\u7528markdown\u5185\u5BB9\u7F13\u5B58"),u.data):(console.log("markdown\u5185\u5BB9\u4E0D\u5728\u7F13\u5B58\u4E2D\uFF0C\u9700\u8981\u91CD\u65B0\u8BF7\u6C42"),null)},[]),bu=l(async()=>{var u;try{console.log("\u8BF7\u6C42\u5B8C\u6574markdown\u6570\u636E");const o={"Content-Type":"application/json"};F&&(o.Authorization=F),B&&(o["X-CSRF-TOKEN-IN"]=B);const r={convertedFilePath:n};console.log("\u53D1\u9001markdown\u8BF7\u6C42:",r);const t=await au.post(b,r,{headers:o,responseType:"text"}),a=t.headers["x-csrf-token-out"]||t.headers["X-CSRF-TOKEN-OUT"];return a&&(console.log("\u83B7\u53D6\u5230\u54CD\u5E94\u5934\u4E2D\u7684CSRF Token:",a),c("request_finish",a)),console.log("markdown\u54CD\u5E94\u72B6\u6001:",t.status),console.log("markdown\u54CD\u5E94\u6570\u636E\u957F\u5EA6:",((u=t.data)==null?void 0:u.length)||0),t.data}catch(o){throw console.error("\u83B7\u53D6markdown\u6570\u636E\u5931\u8D25:",o),new Error(`\u83B7\u53D6markdown\u6570\u636E\u5931\u8D25: ${o.message}`)}},[n,F,b,c]),Pu=l(async()=>{try{C(!0),m("\u6B63\u5728\u52A0\u8F7Dmarkdown\u6587\u6863..."),O(null),console.log("\u5F00\u59CB\u52A0\u8F7D\u5B8C\u6574markdown\u6587\u6863");const u=Au();if(u)return console.log("\u4F7F\u7528\u7F13\u5B58\u7684markdown\u5185\u5BB9"),Eu(u),C(!1),m(""),u;const o=await bu();return Q.current={data:o,timestamp:Date.now()},Eu(o),C(!1),m(""),console.log("\u5B8C\u6574markdown\u6587\u6863\u52A0\u8F7D\u5B8C\u6210"),o}catch(u){throw console.error("markdown\u52A0\u8F7D\u5931\u8D25:",u),O(u.message||"markdown\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),C(!1),m(""),u}},[bu,Au]),Ru=l(async()=>{try{const u={"Content-Type":"application/json"};F&&(u.Authorization=F),B&&(u["X-CSRF-TOKEN-IN"]=B);const o={convertedFilePath:n},r=await au.post(b,o,{headers:u,responseType:"arraybuffer"}),t=r.headers["x-csrf-token-out"]||r.headers["X-CSRF-TOKEN-OUT"];return t&&(console.log("\u83B7\u53D6\u5230\u54CD\u5E94\u5934\u4E2D\u7684CSRF Token:",t),c("request_finish",t)),r.data}catch(u){throw console.error("\u83B7\u53D6\u56FE\u7247\u6570\u636E\u5931\u8D25:",u),new Error(`\u83B7\u53D6\u56FE\u7247\u6570\u636E\u5931\u8D25: ${u.message}`)}},[n,F,b,c]),yu=l(async()=>{try{C(!0),m("\u6B63\u5728\u52A0\u8F7D\u56FE\u7247..."),O(null);const u=await Ru(),o=await hu(u,{fileName:d||"\u56FE\u7247",fileType:"image",token:F});if(o.error)throw new Error(o.error);if(o.type!=="image"||!o.content)throw new Error("\u89E3\u6790\u7ED3\u679C\u4E0D\u662F\u6709\u6548\u7684\u56FE\u7247");return Bu(o.content),C(!1),m(""),o.content}catch(u){throw console.error("\u56FE\u7247\u52A0\u8F7D\u5931\u8D25:",u),O(u.message||"\u56FE\u7247\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),C(!1),m(""),u}},[F,d,Ru]),_u=l(async()=>{var u;try{console.log(`\u8BF7\u6C42\u901A\u7528\u6587\u4EF6\u6570\u636E\uFF0C\u6587\u4EF6\u7C7B\u578B: ${e}`);const o={"Content-Type":"application/json"};F&&(o.Authorization=F),B&&(o["X-CSRF-TOKEN-IN"]=B);const r={convertedFilePath:n};console.log("\u53D1\u9001\u901A\u7528\u6587\u4EF6\u8BF7\u6C42:",r);const t=await au.post(b,r,{headers:o,responseType:"arraybuffer"}),a=t.headers["x-csrf-token-out"]||t.headers["X-CSRF-TOKEN-OUT"];return a&&(console.log("\u83B7\u53D6\u5230\u54CD\u5E94\u5934\u4E2D\u7684CSRF Token:",a),c("request_finish",a)),console.log("\u901A\u7528\u6587\u4EF6\u54CD\u5E94\u72B6\u6001:",t.status),console.log("\u901A\u7528\u6587\u4EF6\u54CD\u5E94\u6570\u636E\u957F\u5EA6:",((u=t.data)==null?void 0:u.byteLength)||0),t.data}catch(o){throw console.error("\u83B7\u53D6\u901A\u7528\u6587\u4EF6\u6570\u636E\u5931\u8D25:",o),new Error(`\u83B7\u53D6\u901A\u7528\u6587\u4EF6\u6570\u636E\u5931\u8D25: ${o.message}`)}},[n,F,b,c]),Zu=l(async()=>{try{if(console.log("=== loadGenericDocument \u88AB\u8C03\u7528 ==="),console.log("\u8C03\u7528\u6808:",new Error().stack),console.log("\u5F53\u524D\u65F6\u95F4:",new Date().toISOString()),z.current){console.log(`\u901A\u7528\u6587\u6863\u6B63\u5728\u52A0\u8F7D\u4E2D\uFF0C\u5FFD\u7565\u91CD\u590D\u8BF7\u6C42\uFF0C\u6587\u4EF6\u7C7B\u578B: ${e}`);return}if(eu.current){console.log(`\u901A\u7528\u6587\u6863\u5DF2\u7ECF\u52A0\u8F7D\u8FC7\uFF0C\u5FFD\u7565\u91CD\u590D\u8BF7\u6C42\uFF0C\u6587\u4EF6\u7C7B\u578B: ${e}`);return}const u=`${e}_${n}`,o=ku[u];if(console.log(`\u68C0\u67E5\u901A\u7528\u6587\u6863\u7F13\u5B58\uFF0Ckey: ${u}, \u7F13\u5B58\u5B58\u5728: ${!!o}, \u7F13\u5B58\u65F6\u95F4: ${o?Date.now()-o.timestamp:"N/A"}ms`),o&&Date.now()-o.timestamp<A)return console.log(`\u4F7F\u7528\u7F13\u5B58\u7684\u901A\u7528\u6587\u6863\u5185\u5BB9\uFF0C\u6587\u4EF6\u7C7B\u578B: ${e}`),e==="text"&&o.content?Fu(o.content):e==="html"&&o.content&&wu(o.content),M(1),W(g||1),C(!1),m(""),o.content;z.current=!0,C(!0),m(`\u6B63\u5728\u52A0\u8F7D${e}\u6587\u6863...`),O(null),console.log(`\u5F00\u59CB\u52A0\u8F7D\u901A\u7528\u6587\u6863\uFF0C\u6587\u4EF6\u7C7B\u578B: ${e}`);const r=await _u(),t=await hu(r,{fileName:d||`${e}\u6587\u6863`,fileType:e,token:F});if(t.error)throw new Error(t.error);let a=null;if(t.type==="text"&&t.content)Fu(t.content),a=t.content;else if(t.type==="html"&&t.content)wu(t.content),a=t.content;else if(t.type==="image"&&t.content)Bu(t.content),a=t.content;else{const w=new TextDecoder("utf-8").decode(r);Fu({type:"text",content:w}),a={type:"text",content:w}}if(a){const p=`${e}_${n}`,w={...ku,[p]:{content:a,timestamp:Date.now()}};Du(w),console.log(`\u901A\u7528\u6587\u6863\u5185\u5BB9\u5DF2\u7F13\u5B58\uFF0C\u6587\u4EF6\u7C7B\u578B: ${e}, \u7F13\u5B58\u952E: ${p}`),console.log("\u5F53\u524D\u7F13\u5B58\u72B6\u6001:",w)}return C(!1),m(""),z.current=!1,eu.current=!0,console.log(`\u901A\u7528\u6587\u6863\u52A0\u8F7D\u5B8C\u6210\uFF0C\u6587\u4EF6\u7C7B\u578B: ${e}`),t}catch(u){throw console.error("\u901A\u7528\u6587\u6863\u52A0\u8F7D\u5931\u8D25:",u),O(u.message||"\u901A\u7528\u6587\u6863\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"),C(!1),m(""),z.current=!1,eu.current=!0,u}},[_u,d,F]),nu=l(async u=>{if(u===S.current)return;if(lu){console.log("\u9875\u9762\u6B63\u5728\u52A0\u8F7D\u4E2D\uFF0C\u5FFD\u7565\u7FFB\u9875\u8BF7\u6C42");return}if(!(e==="pdf"||e==="pdf_slides")){console.log(`\u6587\u4EF6\u7C7B\u578B ${e} \u4E0D\u652F\u6301\u7FFB\u9875\uFF0C\u5FFD\u7565\u7FFB\u9875\u8BF7\u6C42`);return}console.log("PDF\u9875\u9762\u53D8\u5316:",u,"\u5F53\u524D\u9875:",S.current),console.log(`\u9875\u9762 ${u} \u662F\u5426\u5728\u7F13\u5B58\u4E2D:`,xu(u)),S.current=u,M(u);try{await tu(u,!1),c("pageChange",{pageNumber:u,totalPages:g||E})}catch(r){console.error("PDF\u9875\u9762\u52A0\u8F7D\u5931\u8D25:",r);const t=S.current;M(t)}},[tu,E,c,xu,lu,e]);uu(()=>{S.current=j,console.log("\u5F53\u524D\u9875\u72B6\u6001\u66F4\u65B0:",j)},[j]);const ru=l(u=>{ju(u),c("zoomChange",{scale:u})},[c]),Iu=l(()=>{c("viewer:close")},[c]),qu=l(()=>{const u=Math.min(3,P+.1);ru(u)},[P,ru]),Hu=l(()=>{const u=Math.max(.3,P-.1);ru(u)},[P,ru]),Gu=l(()=>{const u=(N-90+360)%360;iu(u),c("rotateChange",{rotation:u})},[N,c]),Uu=l(()=>{const u=(N+90)%360;iu(u),c("rotateChange",{rotation:u})},[N,c]),Wu=l(()=>{if(!(e==="pdf"||e==="pdf_slides")){console.log(`\u6587\u4EF6\u7C7B\u578B ${e} \u4E0D\u652F\u6301\u7FFB\u9875\uFF0C\u5FFD\u7565\u7FFB\u9875\u8BF7\u6C42`);return}const o=S.current-1;o>=1&&nu(o)},[nu,e]),Yu=l(()=>{if(!(e==="pdf"||e==="pdf_slides")){console.log(`\u6587\u4EF6\u7C7B\u578B ${e} \u4E0D\u652F\u6301\u7FFB\u9875\uFF0C\u5FFD\u7565\u7FFB\u9875\u8BF7\u6C42`);return}const o=S.current+1,r=g||E;r&&o<=r&&nu(o)},[E,nu,e]),vu=l(()=>{const u=Date.now();Object.keys(J.current).forEach(o=>{const r=J.current[parseInt(o)];u-r.timestamp>A&&(delete J.current[parseInt(o)],console.log(`\u6E05\u7406\u8FC7\u671F\u9875\u9762\u7F13\u5B58: ${o}`))}),Object.keys(R.current).forEach(o=>{const r=R.current[o];u-r.timestamp>A&&(delete R.current[o],console.log(`\u6E05\u7406\u8FC7\u671Fchunk\u7F13\u5B58: ${o}`))}),Q.current&&u-Q.current.timestamp>A&&(Q.current=null,console.log("\u6E05\u7406\u8FC7\u671Fmarkdown\u5185\u5BB9\u7F13\u5B58")),Du(o=>{const r={...o};return Object.keys(r).forEach(t=>{u-r[t].timestamp>A&&(delete r[t],console.log(`\u6E05\u7406\u8FC7\u671F\u901A\u7528\u6587\u4EF6\u7F13\u5B58: ${t}`))}),r})},[]),y=l(()=>{if(d)return d;try{const u=new URL(n);return decodeURIComponent(u.pathname.split("/").pop()||"")||"Stream\u6587\u6863"}catch{const u=n.split("/");return decodeURIComponent(u[u.length-1])||"Stream\u6587\u6863"}},[n,d]);return uu(()=>{const u=setInterval(vu,A);return()=>clearInterval(u)},[vu]),uu(()=>()=>{J.current={},R.current={},Q.current=null,Du({}),console.log("\u7EC4\u4EF6\u5378\u8F7D\uFF0C\u6E05\u7406\u6240\u6709\u7F13\u5B58")},[]),uu(()=>{console.log("=== useEffect \u88AB\u89E6\u53D1 ==="),console.log("\u89E6\u53D1\u65F6\u95F4:",new Date().toISOString()),console.log("\u89E6\u53D1\u539F\u56E0:",{initialPage:_,fileType:e}),(async()=>{try{const o=e==="pdf"||e==="pdf_slides",r=o&&_||1;console.log("\u5F00\u59CB\u521D\u59CB\u52A0\u8F7D\uFF0C\u6587\u4EF6\u7C7B\u578B:",e,"\u6709\u6548\u9875\u7801:",r,"\u662F\u5426PDF:",o),e==="markdown"||e==="markdown_table"?(await Pu(),M(1),W(g||1),c("pageChange",{pageNumber:1,totalPages:g||1})):e==="image"?(await yu(),M(1),W(g||1),iu(0),c("pageChange",{pageNumber:1,totalPages:g||1})):o?(await tu(r,!0),M(r),setTimeout(()=>{c("pageChange",{pageNumber:r,totalPages:g||E})},0)):(console.log("=== \u521D\u59CB\u52A0\u8F7D\uFF1A\u4F7F\u7528\u901A\u7528\u52A0\u8F7D\u51FD\u6570\u5904\u7406\u6587\u4EF6\u7C7B\u578B ===",e),await Zu(),M(1),W(g||1),c("pageChange",{pageNumber:1,totalPages:g||1}))}catch(o){console.error("\u521D\u59CB\u52A0\u8F7D\u5931\u8D25:",o)}})()},[_,e,tu,Pu,yu,c]),du?s(fu,{$theme:K,className:U,children:f!=null&&f.ErrorComponent?s(f.ErrorComponent,{error:du,theme:K}):$(go,{$theme:K,children:[s("div",{children:"\u52A0\u8F7D\u5931\u8D25"}),s("div",{style:{fontSize:"12px",marginTop:"8px"},children:du})]})}):lu?$(fu,{$theme:K,className:U,children:[s(Ou,{fileName:y(),currentPage:j,totalPage:E,scale:P,isAnnotating:!1,tools:X,styles:x,onPrevPage:()=>{},onNextPage:()=>{},onZoomIn:()=>{},onZoomOut:()=>{},onAnnotationToggle:()=>{},onDownload:()=>{},onClose:Iu,className:ou}),f!=null&&f.LoadingComponent?s(f.LoadingComponent,{status:Cu,theme:K}):s(Do,{status:Cu,theme:K})]}):$(fu,{$theme:K,className:U,children:[s(Ou,{fileName:y(),currentPage:j,totalPage:E,scale:P,isAnnotating:!1,tools:{...X,navigation:e==="pdf"||e==="pdf_slides"?X.navigation:!1,rotate:e==="image"},styles:x,onPrevPage:Wu,onNextPage:Yu,onZoomIn:qu,onZoomOut:Hu,onRotateLeft:e==="image"?Gu:void 0,onRotateRight:e==="image"?Uu:void 0,onAnnotationToggle:()=>{},onDownload:()=>{},onClose:Iu,className:ou}),e==="markdown"||e==="markdown_table"?$("div",{ref:Xu,style:{flex:1,overflow:"auto",position:"relative"},className:i,children:[s(su,{data:{content:Y,...y()&&{fileName:y()},...e&&{fileType:e},...E&&{totalPages:E}},annotationData:G,totalPage:E,currentPage:j,scale:P,eventsEmit:(u,o)=>{console.log("Fviewer\u4E8B\u4EF6:",u,o),c(u==="md_annotation_add"?"md_annotation_add":u==="table_annotation_add"?"table_annotation_add":u,o)},styles:x,tools:X,customComponents:f,contentClass:i}),(console.log("=== \u4F20\u9012\u7ED9Fviewer\u7684markdown\u5185\u5BB9 ==="),console.log("markdownContent:",Y),console.log("markdownContent\u957F\u5EA6:",Y.length),console.log("markdownContent\u524D100\u5B57\u7B26:",Y.substring(0,100)),console.log("markdownContent\u540E100\u5B57\u7B26:",Y.substring(Y.length-100)),null)]}):e==="image"?s(su,{data:{content:Mu,...y()&&{fileName:y()},...e&&{fileType:e}},annotationData:G,totalPage:1,currentPage:1,scale:P,rotation:N,eventsEmit:c,styles:x,tools:{...X,navigation:!1,rotate:!0},customComponents:f,contentClass:i}):e==="pdf"||e==="pdf_slides"?s(su,{data:{content:{document:Lu},...y()&&{fileName:y()},...e&&{fileType:e},...E&&{totalPages:E},pdfStartPage:Math.floor((j-1)/h)*h+1},annotationData:G,totalPage:E,currentPage:j,scale:P,eventsEmit:(u,o)=>{console.log("Fviewer\u4E8B\u4EF6:",u,o),u==="scaleChange"&&console.log("\u6536\u5230\u7F29\u653E\u53D8\u5316\u4E8B\u4EF6:",o),c(u,o)},styles:x,tools:X,customComponents:f,contentClass:i}):s(su,{data:{content:Su||Ku||{type:"text",content:"\u6587\u4EF6\u5185\u5BB9\u52A0\u8F7D\u4E2D..."},...y()&&{fileName:y()},...e&&{fileType:e}},annotationData:G,totalPage:1,currentPage:1,scale:P,eventsEmit:c,styles:x,tools:{...X,navigation:!1},customComponents:f,contentClass:i})]})};export{bo as default};
|
package/assets/index-BMSRZNG4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var i=256;for(;i--;)(i+256).toString(16).substring(1);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import v from"react";var i={exports:{}},t={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var p;function y(){if(p)return t;p=1;var R=v,a=Symbol.for("react.element"),x=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,l=R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function s(n,r,_){var e,o={},u=null,f=null;_!==void 0&&(u=""+_),r.key!==void 0&&(u=""+r.key),r.ref!==void 0&&(f=r.ref);for(e in r)c.call(r,e)&&!d.hasOwnProperty(e)&&(o[e]=r[e]);if(n&&n.defaultProps)for(e in r=n.defaultProps,r)o[e]===void 0&&(o[e]=r[e]);return{$$typeof:a,type:n,key:u,ref:f,props:o,_owner:l.current}}return t.Fragment=x,t.jsx=s,t.jsxs=s,t}var m;function O(){return m||(m=1,i.exports=y()),i.exports}var j=O();export{j};
|