bhd-components 0.8.0 → 0.8.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.
- package/dist/{de88944c.esm.es5.development.js → 3f8529e7.esm.es5.development.js} +1 -1
- package/dist/{2f338078.esm.es5.production.js → f460f54e.esm.es5.production.js} +1 -1
- package/dist/index.esm.es5.development.css +1007 -1011
- package/dist/index.esm.es5.development.js +40 -136
- package/dist/index.esm.es5.production.css +1 -1
- package/dist/index.esm.es5.production.js +1 -1
- package/dist/vendor.esm.es5.development.esm.es5.development.css +83 -84
- package/dist/vendor.esm.es5.production.esm.es5.production.css +8 -10
- package/es2017/customerService/historyFun.d.ts +1 -1
- package/es2017/customerService/historyFun.js +1 -2
- package/es2017/customerService/html2canvas.test.js +1233 -1234
- package/es2017/customerService/index.d.ts +1 -1
- package/es2017/customerService/index.js +30 -118
- package/es2017/customerService/index.module.less +4 -5
- package/es2017/customerService/index2.module.less +5 -6
- package/es2017/customerService/screenshotTool.js +9 -15
- package/esm/customerService/historyFun.d.ts +1 -1
- package/esm/customerService/historyFun.js +1 -2
- package/esm/customerService/html2canvas.test.js +34 -34
- package/esm/customerService/index.d.ts +1 -1
- package/esm/customerService/index.js +36 -125
- package/esm/customerService/index.module.less +4 -5
- package/esm/customerService/index2.module.less +5 -6
- package/esm/customerService/screenshotTool.js +8 -14
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@ice/jsx-runt
|
|
|
4
4
|
import React, { useEffect, useState, useRef } from "react";
|
|
5
5
|
import { Modal, Drawer, Input, Tooltip } from "antd";
|
|
6
6
|
import ViewImage from "../viewImage";
|
|
7
|
+
// import html2canvas from "html2canvas";
|
|
7
8
|
import cssStyle from "./index.module.less";
|
|
8
9
|
import cssStyleOnline from "./index2.module.less";
|
|
9
10
|
let styles = cssStyle;
|
|
@@ -19,7 +20,7 @@ import TeacherList from "./teacherList";
|
|
|
19
20
|
import { parseDate } from "../utils/Date";
|
|
20
21
|
import { Remarkable } from "remarkable";
|
|
21
22
|
import hljs from "highlight.js";
|
|
22
|
-
import "highlight.js/styles/
|
|
23
|
+
import "highlight.js/styles/default.css";
|
|
23
24
|
import { render } from "react-dom";
|
|
24
25
|
import Provider from "../provider";
|
|
25
26
|
const { TextArea } = Input;
|
|
@@ -105,117 +106,33 @@ const CustomerService = (props)=>{
|
|
|
105
106
|
initShowType
|
|
106
107
|
]);
|
|
107
108
|
useEffect(()=>{
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
//|| showScreenshot
|
|
110
|
+
if (showType == 5 || showScreenshot) {
|
|
110
111
|
try {
|
|
111
112
|
newShowType.current = true;
|
|
112
113
|
setImgBese64('');
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
cropBoxInfo: {
|
|
123
|
-
x: 0,
|
|
124
|
-
y: 0,
|
|
125
|
-
w: window.innerWidth,
|
|
126
|
-
h: window.innerHeight
|
|
127
|
-
},
|
|
128
|
-
wrcReplyTime: 20,
|
|
129
|
-
wrcWindowMode: true,
|
|
130
|
-
hiddenScrollBar: {
|
|
131
|
-
state: true
|
|
132
|
-
},
|
|
133
|
-
completeCallback: ({ base64 })=>{
|
|
134
|
-
// console.log(
|
|
135
|
-
// "截图组件加载完毕调用此方法来完成框选区域的截图",
|
|
136
|
-
// base64
|
|
137
|
-
// );
|
|
138
|
-
setImgBese64(base64);
|
|
139
|
-
},
|
|
140
|
-
triggerCallback: ()=>{
|
|
141
|
-
// 截图组件加载完毕调用此方法来完成框选区域的截图
|
|
142
|
-
plugin.completeScreenshot();
|
|
143
|
-
},
|
|
144
|
-
cancelCallback: (err)=>{
|
|
145
|
-
if (err.code === -1) {
|
|
146
|
-
console.log(err);
|
|
147
|
-
newShowType.current = false;
|
|
148
|
-
if (saveShowType != -1) {
|
|
149
|
-
setShowType(saveShowType);
|
|
150
|
-
} else {
|
|
151
|
-
setShowType(1);
|
|
152
|
-
}
|
|
153
|
-
setShowScreenshot(false);
|
|
154
|
-
onCancel();
|
|
155
|
-
}
|
|
114
|
+
// let dom = document.getElementById(screenshotAreaId);
|
|
115
|
+
html2canvas(screenshotAreaId, {
|
|
116
|
+
useCORS: true,
|
|
117
|
+
// allowTaint: true, // 污染处理
|
|
118
|
+
scale: 1,
|
|
119
|
+
// logging:true,
|
|
120
|
+
ignoreElements: (element)=>{
|
|
121
|
+
if (element.compareDocumentPosition(screenshotAreaId) === 2) return true;
|
|
122
|
+
return false;
|
|
156
123
|
}
|
|
124
|
+
}).then(function(canvas) {
|
|
125
|
+
// document.body.appendChild(canvas);
|
|
126
|
+
console.log(canvas, 99999);
|
|
127
|
+
// var base64URL = canvas.toDataURL('image/jpeg')
|
|
128
|
+
let base64URL = canvas.toDataURL("image/jpg", 1.0);
|
|
129
|
+
console.log(base64URL);
|
|
130
|
+
setImgBese64(base64URL);
|
|
157
131
|
});
|
|
158
|
-
// modernScreenshot
|
|
159
|
-
// .domToPng(document.querySelector("body"))
|
|
160
|
-
// .then((dataUrl:any) => {
|
|
161
|
-
// console.log(dataUrl);
|
|
162
|
-
// setImgBese64(dataUrl);
|
|
163
|
-
// });
|
|
164
|
-
// domtoimage
|
|
165
|
-
// .toPng(document.body)
|
|
166
|
-
// .then(function (dataUrl:any) {
|
|
167
|
-
// setImgBese64(dataUrl);
|
|
168
|
-
// })
|
|
169
|
-
// .catch(function (error:any) {
|
|
170
|
-
// console.error("oops, something went wrong!", error);
|
|
171
|
-
// });
|
|
172
|
-
// //排除
|
|
173
|
-
// new screenShotPlugin({
|
|
174
|
-
// enableWebRtc: true,
|
|
175
|
-
// canvasWidth:window.innerWidth,
|
|
176
|
-
// canvasHeight:window.innerHeight,
|
|
177
|
-
// level:9999999,
|
|
178
|
-
// completeCallback: function (info:any) {
|
|
179
|
-
// console.log(info);
|
|
180
|
-
// setImgBese64(info.base64);
|
|
181
|
-
// },
|
|
182
|
-
// closeCallback: function () {
|
|
183
|
-
// },
|
|
184
|
-
// });
|
|
185
|
-
// html2canvas(document.body,{//__docusaurus
|
|
186
|
-
// useCORS: true, // 支持跨域图片截图
|
|
187
|
-
// allowTaint: true, // 污染处理
|
|
188
|
-
// scale: 1 ,// 图片比例
|
|
189
|
-
// logging:false,
|
|
190
|
-
// // foreignObjectRendering:true,
|
|
191
|
-
// ignoreElements:(element: { compareDocumentPosition: (arg0: string) => number; })=>{
|
|
192
|
-
// if(element.compareDocumentPosition(screenshotAreaId)===2)return true
|
|
193
|
-
// return false
|
|
194
|
-
// },
|
|
195
|
-
// windowWidth:window.innerWidth,
|
|
196
|
-
// windowHeight:window.innerHeight
|
|
197
|
-
// })
|
|
198
|
-
// .then(function (canvas:any) {
|
|
199
|
-
// // document.body.appendChild(canvas);
|
|
200
|
-
// // console.log(canvas,99999);
|
|
201
|
-
// // var base64URL = canvas.toDataURL('image/jpeg')
|
|
202
|
-
// let base64URL = canvas.toDataURL("image/jpg", 1.0)
|
|
203
|
-
// // console.log(base64URL);
|
|
204
|
-
// setImgBese64(base64URL);
|
|
205
|
-
// // svgNodesToRemove.forEach(item=>{
|
|
206
|
-
// // item.remove()
|
|
207
|
-
// // })
|
|
208
|
-
// });
|
|
209
132
|
} catch (error) {
|
|
210
133
|
console.log(error);
|
|
211
134
|
}
|
|
212
135
|
}
|
|
213
|
-
//|| showScreenshot
|
|
214
|
-
if (showType == 5 || showScreenshot) {
|
|
215
|
-
console.log('bbbbbbbbbbbbbb');
|
|
216
|
-
handlerHtml2canvas();
|
|
217
|
-
// window.addEventListener('resize',handlerHtml2canvas)
|
|
218
|
-
}
|
|
219
136
|
if (showType != 1 && !firstLoad && pageCount > 0) {
|
|
220
137
|
setFirstLoad(true);
|
|
221
138
|
scrollToBottom();
|
|
@@ -275,7 +192,6 @@ const CustomerService = (props)=>{
|
|
|
275
192
|
if (content) {
|
|
276
193
|
content.removeEventListener("scroll", handleScroll);
|
|
277
194
|
}
|
|
278
|
-
window.removeEventListener('resize', handlerHtml2canvas);
|
|
279
195
|
};
|
|
280
196
|
}, [
|
|
281
197
|
historyMessageList,
|
|
@@ -1752,18 +1668,11 @@ const CustomerService = (props)=>{
|
|
|
1752
1668
|
/*#__PURE__*/ _jsxs("div", {
|
|
1753
1669
|
className: styles.operate,
|
|
1754
1670
|
children: [
|
|
1755
|
-
/*#__PURE__*/
|
|
1756
|
-
className: styles.popover_main,
|
|
1671
|
+
/*#__PURE__*/ _jsx("i", {
|
|
1757
1672
|
onClick: ()=>{
|
|
1758
1673
|
setShowHistory(true);
|
|
1759
1674
|
},
|
|
1760
|
-
children:
|
|
1761
|
-
/*#__PURE__*/ _jsx(CustomRecord, {}),
|
|
1762
|
-
/*#__PURE__*/ _jsx("span", {
|
|
1763
|
-
className: styles.popover,
|
|
1764
|
-
children: "历史记录"
|
|
1765
|
-
})
|
|
1766
|
-
]
|
|
1675
|
+
children: /*#__PURE__*/ _jsx(CustomRecord, {})
|
|
1767
1676
|
}),
|
|
1768
1677
|
/*#__PURE__*/ _jsx("span", {
|
|
1769
1678
|
className: styles.line
|
|
@@ -1783,14 +1692,20 @@ const CustomerService = (props)=>{
|
|
|
1783
1692
|
})
|
|
1784
1693
|
]
|
|
1785
1694
|
}),
|
|
1786
|
-
/*#__PURE__*/
|
|
1695
|
+
/*#__PURE__*/ _jsxs("i", {
|
|
1787
1696
|
className: styles.popover_main,
|
|
1788
1697
|
onClick: ()=>{
|
|
1789
1698
|
onEvent(serverName + serverUrl(), "click_智能问答_退出全屏", "提交");
|
|
1790
1699
|
setShowType(3);
|
|
1791
1700
|
setFirstLoad(false); //重启滚动条在最上方
|
|
1792
1701
|
},
|
|
1793
|
-
children:
|
|
1702
|
+
children: [
|
|
1703
|
+
/*#__PURE__*/ _jsx(CloseOutlined, {}),
|
|
1704
|
+
/*#__PURE__*/ _jsx("span", {
|
|
1705
|
+
className: styles.popover,
|
|
1706
|
+
children: "退出全屏"
|
|
1707
|
+
})
|
|
1708
|
+
]
|
|
1794
1709
|
})
|
|
1795
1710
|
]
|
|
1796
1711
|
})
|
|
@@ -3470,9 +3385,6 @@ const CustomerService = (props)=>{
|
|
|
3470
3385
|
}),
|
|
3471
3386
|
(showType == 4 || showType == 5) && /*#__PURE__*/ _jsxs("div", {
|
|
3472
3387
|
className: `${styles.ChatWindow_Drawer}`,
|
|
3473
|
-
style: {
|
|
3474
|
-
display: `${!showScreenshot ? "none" : "flex"}`
|
|
3475
|
-
},
|
|
3476
3388
|
id: "",
|
|
3477
3389
|
children: [
|
|
3478
3390
|
/*#__PURE__*/ _jsx("div", {
|
|
@@ -1177,8 +1177,8 @@
|
|
|
1177
1177
|
max-height: 36px;
|
|
1178
1178
|
word-break: break-all;
|
|
1179
1179
|
|
|
1180
|
-
|
|
1181
|
-
|
|
1180
|
+
display: flex;
|
|
1181
|
+
align-items: center;
|
|
1182
1182
|
img{
|
|
1183
1183
|
margin-right: 8px;
|
|
1184
1184
|
width: 60px;
|
|
@@ -1866,7 +1866,7 @@
|
|
|
1866
1866
|
width: 417px;
|
|
1867
1867
|
height: calc(100% - 48px);
|
|
1868
1868
|
right: 0;
|
|
1869
|
-
top:
|
|
1869
|
+
top: 48px;
|
|
1870
1870
|
border-radius: 0;
|
|
1871
1871
|
background: transparent;
|
|
1872
1872
|
overflow: visible;
|
|
@@ -1918,7 +1918,7 @@
|
|
|
1918
1918
|
background-color: transparent !important;
|
|
1919
1919
|
// background-color: burlywood;
|
|
1920
1920
|
.ReactCrop{
|
|
1921
|
-
|
|
1921
|
+
|
|
1922
1922
|
}
|
|
1923
1923
|
:global{
|
|
1924
1924
|
.ReactCrop__child-wrapper{
|
|
@@ -1935,7 +1935,6 @@
|
|
|
1935
1935
|
height: 100% !important;
|
|
1936
1936
|
top: 0 !important;
|
|
1937
1937
|
left: 0 !important;
|
|
1938
|
-
cursor: default !important;
|
|
1939
1938
|
}
|
|
1940
1939
|
|
|
1941
1940
|
}
|
|
@@ -1175,8 +1175,8 @@
|
|
|
1175
1175
|
max-height: 36px;
|
|
1176
1176
|
word-break: break-all;
|
|
1177
1177
|
|
|
1178
|
-
|
|
1179
|
-
|
|
1178
|
+
display: flex;
|
|
1179
|
+
align-items: center;
|
|
1180
1180
|
img{
|
|
1181
1181
|
margin-right: 8px;
|
|
1182
1182
|
width: 60px;
|
|
@@ -1860,7 +1860,7 @@
|
|
|
1860
1860
|
width: 417px;
|
|
1861
1861
|
height: calc(100% - 48px);
|
|
1862
1862
|
right: 0;
|
|
1863
|
-
top:
|
|
1863
|
+
top: 48px;
|
|
1864
1864
|
border-radius: 0;
|
|
1865
1865
|
background: transparent;
|
|
1866
1866
|
overflow: visible;
|
|
@@ -1904,7 +1904,7 @@
|
|
|
1904
1904
|
background-color: transparent !important;
|
|
1905
1905
|
// background-color: burlywood;
|
|
1906
1906
|
.ReactCrop{
|
|
1907
|
-
|
|
1907
|
+
|
|
1908
1908
|
}
|
|
1909
1909
|
:global{
|
|
1910
1910
|
.ReactCrop__child-wrapper{
|
|
@@ -1912,8 +1912,7 @@
|
|
|
1912
1912
|
width: 100% !important;
|
|
1913
1913
|
height: 100% !important;
|
|
1914
1914
|
top: 0 !important;
|
|
1915
|
-
left: 0 !important
|
|
1916
|
-
cursor: default !important;
|
|
1915
|
+
left: 0 !important
|
|
1917
1916
|
}
|
|
1918
1917
|
}
|
|
1919
1918
|
:global{
|
|
@@ -10,8 +10,6 @@ const ScreenshotTool = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
10
10
|
const [crop, setCrop] = useState();
|
|
11
11
|
const [completedCrop, setCompletedCrop] = useState();
|
|
12
12
|
const [aspect, setAspect] = useState(16 / 9);
|
|
13
|
-
const [devicePixelRatio, setDevicePixelRatio] = useState(window.devicePixelRatio);
|
|
14
|
-
const [isFirst, setIsFirst] = useState(true);
|
|
15
13
|
const [btnPosition, setBtnPosition] = useState({
|
|
16
14
|
top: 0,
|
|
17
15
|
left: 0
|
|
@@ -37,17 +35,17 @@ const ScreenshotTool = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
37
35
|
}
|
|
38
36
|
function saveImage() {
|
|
39
37
|
// 创建一个新的canvas元素
|
|
40
|
-
var canvas = document.createElement(
|
|
41
|
-
var context = canvas.getContext(
|
|
38
|
+
var canvas = document.createElement('canvas');
|
|
39
|
+
var context = canvas.getContext('2d');
|
|
42
40
|
// 加载要操作的图片
|
|
43
41
|
var image = new Image();
|
|
44
42
|
image.src = imgBese64; // 将'your_image_url'替换为你自己的图片URL
|
|
45
43
|
// 等待图片加载完成后再进行操作
|
|
46
44
|
image.onload = function() {
|
|
47
|
-
var x =
|
|
48
|
-
var y =
|
|
49
|
-
var width =
|
|
50
|
-
var height =
|
|
45
|
+
var x = completedCrop.x; // 起始点x坐标
|
|
46
|
+
var y = completedCrop.y; // 起始点y坐标
|
|
47
|
+
var width = completedCrop.width; // 需要裁剪的区域宽度
|
|
48
|
+
var height = completedCrop.height; // 需要裁剪的区域高度
|
|
51
49
|
// 设置canvas大小与裁剪区域相同
|
|
52
50
|
canvas.width = width;
|
|
53
51
|
canvas.height = height;
|
|
@@ -68,7 +66,7 @@ const ScreenshotTool = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
68
66
|
let y = e.y;
|
|
69
67
|
let h = e.height;
|
|
70
68
|
let w = e.width;
|
|
71
|
-
let top = y + h +
|
|
69
|
+
let top = y + h + 8;
|
|
72
70
|
let left = x + w - 88;
|
|
73
71
|
if (top + 42 > window.innerHeight) {
|
|
74
72
|
top = top - 50;
|
|
@@ -78,7 +76,6 @@ const ScreenshotTool = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
78
76
|
left
|
|
79
77
|
});
|
|
80
78
|
setShowBtn(true);
|
|
81
|
-
setIsFirst(false);
|
|
82
79
|
};
|
|
83
80
|
return /*#__PURE__*/ _jsxs("div", {
|
|
84
81
|
className: styles.screenshot_Modal,
|
|
@@ -104,9 +101,6 @@ const ScreenshotTool = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
104
101
|
minWidth: 100,
|
|
105
102
|
children: /*#__PURE__*/ _jsx("img", {
|
|
106
103
|
alt: "Crop me",
|
|
107
|
-
style: {
|
|
108
|
-
display: 'none'
|
|
109
|
-
},
|
|
110
104
|
src: imgBese64,
|
|
111
105
|
onLoad: onImageLoad
|
|
112
106
|
})
|
|
@@ -122,8 +116,8 @@ const ScreenshotTool = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
|
122
116
|
onClick: cancelScreenshot,
|
|
123
117
|
children: /*#__PURE__*/ _jsx(CloseOutlined, {
|
|
124
118
|
style: {
|
|
125
|
-
position:
|
|
126
|
-
top:
|
|
119
|
+
position: 'relative',
|
|
120
|
+
top: '1px'
|
|
127
121
|
}
|
|
128
122
|
})
|
|
129
123
|
}),
|
|
@@ -4,8 +4,7 @@ import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
|
|
|
4
4
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "@ice/jsx-runtime/jsx-runtime";
|
|
5
5
|
import React, { useEffect, useState, useRef } from "react";
|
|
6
6
|
import styles from "./index.module.less";
|
|
7
|
-
import "highlight.js/styles/
|
|
8
|
-
//import "highlight.js/styles/default.css";
|
|
7
|
+
import "highlight.js/styles/default.css";
|
|
9
8
|
import { Input } from "antd";
|
|
10
9
|
import { CustomClose, CustomExpand, CustomAiIcon } from "../icons/index";
|
|
11
10
|
import { SearchOutlined } from "@ant-design/icons";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { _ as _instanceof } from "@swc/helpers/_/_instanceof";
|
|
2
2
|
/*!
|
|
3
3
|
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|
4
4
|
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
@@ -8,50 +8,66 @@ var _instanceof = require("@swc/helpers/cjs/_instanceof.cjs")._;
|
|
|
8
8
|
})(this, function() {
|
|
9
9
|
"use strict";
|
|
10
10
|
var __extends = function __extends(d, b) {
|
|
11
|
-
var __ = function __() {
|
|
12
|
-
this.constructor = d;
|
|
13
|
-
};
|
|
14
11
|
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
15
12
|
extendStatics(d, b);
|
|
13
|
+
function __() {
|
|
14
|
+
this.constructor = d;
|
|
15
|
+
}
|
|
16
16
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
17
17
|
};
|
|
18
18
|
var __awaiter = function __awaiter(thisArg, _arguments, P, generator) {
|
|
19
|
-
|
|
19
|
+
function adopt(value) {
|
|
20
20
|
return _instanceof(value, P) ? value : new P(function(resolve) {
|
|
21
21
|
resolve(value);
|
|
22
22
|
});
|
|
23
|
-
}
|
|
23
|
+
}
|
|
24
24
|
return new (P || (P = Promise))(function(resolve, reject) {
|
|
25
|
-
|
|
25
|
+
function fulfilled(value) {
|
|
26
26
|
try {
|
|
27
27
|
step(generator.next(value));
|
|
28
28
|
} catch (e) {
|
|
29
29
|
reject(e);
|
|
30
30
|
}
|
|
31
|
-
}
|
|
32
|
-
|
|
31
|
+
}
|
|
32
|
+
function rejected(value) {
|
|
33
33
|
try {
|
|
34
34
|
step(generator["throw"](value));
|
|
35
35
|
} catch (e) {
|
|
36
36
|
reject(e);
|
|
37
37
|
}
|
|
38
|
-
}
|
|
39
|
-
|
|
38
|
+
}
|
|
39
|
+
function step(result) {
|
|
40
40
|
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
41
|
-
}
|
|
41
|
+
}
|
|
42
42
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
var __generator = function __generator(thisArg, body) {
|
|
46
|
-
var
|
|
46
|
+
var _ = {
|
|
47
|
+
label: 0,
|
|
48
|
+
sent: function sent() {
|
|
49
|
+
if (t[0] & 1) throw t[1];
|
|
50
|
+
return t[1];
|
|
51
|
+
},
|
|
52
|
+
trys: [],
|
|
53
|
+
ops: []
|
|
54
|
+
}, f, y, t, g;
|
|
55
|
+
return g = {
|
|
56
|
+
next: verb(0),
|
|
57
|
+
"throw": verb(1),
|
|
58
|
+
"return": verb(2)
|
|
59
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
60
|
+
return this;
|
|
61
|
+
}), g;
|
|
62
|
+
function verb(n) {
|
|
47
63
|
return function(v) {
|
|
48
64
|
return step([
|
|
49
65
|
n,
|
|
50
66
|
v
|
|
51
67
|
]);
|
|
52
68
|
};
|
|
53
|
-
}
|
|
54
|
-
|
|
69
|
+
}
|
|
70
|
+
function step(op) {
|
|
55
71
|
if (f) throw new TypeError("Generator is already executing.");
|
|
56
72
|
while(_)try {
|
|
57
73
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
@@ -119,23 +135,7 @@ var _instanceof = require("@swc/helpers/cjs/_instanceof.cjs")._;
|
|
|
119
135
|
value: op[0] ? op[1] : void 0,
|
|
120
136
|
done: true
|
|
121
137
|
};
|
|
122
|
-
}
|
|
123
|
-
var _ = {
|
|
124
|
-
label: 0,
|
|
125
|
-
sent: function sent() {
|
|
126
|
-
if (t[0] & 1) throw t[1];
|
|
127
|
-
return t[1];
|
|
128
|
-
},
|
|
129
|
-
trys: [],
|
|
130
|
-
ops: []
|
|
131
|
-
}, f, y, t, g;
|
|
132
|
-
return g = {
|
|
133
|
-
next: verb(0),
|
|
134
|
-
"throw": verb(1),
|
|
135
|
-
"return": verb(2)
|
|
136
|
-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
137
|
-
return this;
|
|
138
|
-
}), g;
|
|
138
|
+
}
|
|
139
139
|
};
|
|
140
140
|
var __spreadArray = function __spreadArray(to, from, pack) {
|
|
141
141
|
if (pack || arguments.length === 2) for(var i = 0, l = from.length, ar; i < l; i++){
|
|
@@ -824,7 +824,8 @@ var _instanceof = require("@swc/helpers/cjs/_instanceof.cjs")._;
|
|
|
824
824
|
return BREAK_NOT_ALLOWED$1;
|
|
825
825
|
}
|
|
826
826
|
// LB25 Do not break between the following pairs of classes relevant to numbers:
|
|
827
|
-
if (
|
|
827
|
+
if (// (PR | PO) × ( OP | HY )? NU
|
|
828
|
+
[
|
|
828
829
|
PR,
|
|
829
830
|
PO
|
|
830
831
|
].indexOf(current) !== -1 && (next === NU || [
|
|
@@ -8578,4 +8579,3 @@ var _instanceof = require("@swc/helpers/cjs/_instanceof.cjs")._;
|
|
|
8578
8579
|
};
|
|
8579
8580
|
return html2canvas;
|
|
8580
8581
|
}); //# sourceMappingURL=html2canvas.js.map
|
|
8581
|
-
//# sourceMappingURL=html2canvas.test.js.map
|