native-fn 1.0.77 → 1.0.79
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/native.cjs +1 -1
- package/dist/native.min.cjs +1 -1
- package/dist/native.min.mjs +1 -1
- package/dist/native.mjs +1 -1
- package/dist/native.umd.js +1 -1
- package/dist/native.umd.min.js +1 -1
- package/dist/plugin/app/index.cjs +131 -50
- package/dist/plugin/app/index.min.cjs +1 -1
- package/dist/plugin/app/index.min.mjs +1 -1
- package/dist/plugin/app/index.mjs +131 -50
- package/dist/plugin/app/index.umd.js +131 -50
- package/dist/plugin/app/index.umd.min.js +1 -1
- package/dist/plugin/app/src/plugin/platform/types/platform.d.ts +10 -0
- package/dist/plugin/appearance/index.cjs +131 -50
- package/dist/plugin/appearance/index.min.cjs +1 -1
- package/dist/plugin/appearance/index.min.mjs +1 -1
- package/dist/plugin/appearance/index.mjs +131 -50
- package/dist/plugin/appearance/index.umd.js +131 -50
- package/dist/plugin/appearance/index.umd.min.js +1 -1
- package/dist/plugin/appearance/src/plugin/platform/types/platform.d.ts +10 -0
- package/dist/plugin/clipboard/index.cjs +131 -50
- package/dist/plugin/clipboard/index.min.cjs +1 -1
- package/dist/plugin/clipboard/index.min.mjs +1 -1
- package/dist/plugin/clipboard/index.mjs +131 -50
- package/dist/plugin/clipboard/index.umd.js +131 -50
- package/dist/plugin/clipboard/index.umd.min.js +1 -1
- package/dist/plugin/clipboard/src/plugin/platform/types/platform.d.ts +10 -0
- package/dist/plugin/fullscreen/index.cjs +131 -50
- package/dist/plugin/fullscreen/index.min.cjs +1 -1
- package/dist/plugin/fullscreen/index.min.mjs +1 -1
- package/dist/plugin/fullscreen/index.mjs +131 -50
- package/dist/plugin/fullscreen/index.umd.js +131 -50
- package/dist/plugin/fullscreen/index.umd.min.js +1 -1
- package/dist/plugin/fullscreen/src/plugin/platform/types/platform.d.ts +10 -0
- package/dist/plugin/platform/index.cjs +131 -50
- package/dist/plugin/platform/index.d.ts +11 -1
- package/dist/plugin/platform/index.min.cjs +1 -1
- package/dist/plugin/platform/index.min.mjs +1 -1
- package/dist/plugin/platform/index.mjs +131 -50
- package/dist/plugin/platform/index.umd.js +131 -50
- package/dist/plugin/platform/index.umd.min.js +1 -1
- package/dist/plugin/platform/src/plugin/platform/types/platform.d.ts +10 -0
- package/dist/plugin/theme/index.cjs +131 -50
- package/dist/plugin/theme/index.min.cjs +1 -1
- package/dist/plugin/theme/index.min.mjs +1 -1
- package/dist/plugin/theme/index.mjs +131 -50
- package/dist/plugin/theme/index.umd.js +131 -50
- package/dist/plugin/theme/index.umd.min.js +1 -1
- package/dist/plugin/theme/src/plugin/platform/types/platform.d.ts +10 -0
- package/dist/src/plugin/platform/types/platform.d.ts +10 -0
- package/package.json +1 -1
|
@@ -280,15 +280,24 @@ var CrossPlatformFramework;
|
|
|
280
280
|
})(CrossPlatformFramework || (CrossPlatformFramework = {}));
|
|
281
281
|
var USER_AGENT = typeof globalThis.navigator !== 'undefined' && typeof globalThis.navigator.userAgent === 'string' ? globalThis.navigator.userAgent : '';
|
|
282
282
|
|
|
283
|
+
var readyState = 'loading';
|
|
284
|
+
var readyCallback = [];
|
|
285
|
+
var pendingTasks = 0;
|
|
283
286
|
var Platform = {
|
|
284
287
|
os: { name: OS.Unknown, version: '' },
|
|
285
288
|
engine: { name: Engines.Unknown, version: '' },
|
|
286
289
|
browser: { name: Browsers.Unknown, version: '' },
|
|
287
290
|
crossPlatformFramework: CrossPlatformFramework.Unknown,
|
|
288
291
|
userAgent: USER_AGENT,
|
|
292
|
+
get readyState() {
|
|
293
|
+
return readyState;
|
|
294
|
+
},
|
|
289
295
|
get network() {
|
|
290
296
|
return getNetwork();
|
|
291
297
|
},
|
|
298
|
+
get dimension() {
|
|
299
|
+
return getDimension();
|
|
300
|
+
},
|
|
292
301
|
get device() {
|
|
293
302
|
if (this.os.name === OS.iOS || this.os.name === OS.Android)
|
|
294
303
|
return Devices.Mobile;
|
|
@@ -318,6 +327,18 @@ var Platform = {
|
|
|
318
327
|
return false;
|
|
319
328
|
return globalThis.matchMedia('(display-mode: standalone)').matches;
|
|
320
329
|
},
|
|
330
|
+
onready: function (callback) {
|
|
331
|
+
if (this.readyState === 'complete') {
|
|
332
|
+
try {
|
|
333
|
+
callback(this);
|
|
334
|
+
}
|
|
335
|
+
catch (_) {
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
else {
|
|
339
|
+
readyCallback.push(callback);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
321
342
|
};
|
|
322
343
|
var OS_RESOLVER_MAP = [
|
|
323
344
|
[/windows nt (6\.[23]); arm/i, OS.Windows, resolveWindowsVersion],
|
|
@@ -385,6 +406,26 @@ var HIGH_ENTROPY_BRAND_NAME_MAP = {
|
|
|
385
406
|
'HeadlessChrome': 'Chrome Headless',
|
|
386
407
|
'OperaMobile': 'Opera Mobi',
|
|
387
408
|
};
|
|
409
|
+
function incrementPendingTasks() {
|
|
410
|
+
pendingTasks++;
|
|
411
|
+
}
|
|
412
|
+
function decrementPendingTasks() {
|
|
413
|
+
pendingTasks--;
|
|
414
|
+
checkReady();
|
|
415
|
+
}
|
|
416
|
+
function checkReady() {
|
|
417
|
+
if (pendingTasks === 0 && readyState === 'loading') {
|
|
418
|
+
readyState = 'complete';
|
|
419
|
+
for (var i = 0; i < readyCallback.length; i++) {
|
|
420
|
+
try {
|
|
421
|
+
readyCallback[i](Platform);
|
|
422
|
+
}
|
|
423
|
+
catch (_) {
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
readyCallback.length = 0;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
388
429
|
function resolveWindowsVersion(string) {
|
|
389
430
|
if (string === undefined)
|
|
390
431
|
return '';
|
|
@@ -585,6 +626,7 @@ function parseOSFromCordova() {
|
|
|
585
626
|
break;
|
|
586
627
|
}
|
|
587
628
|
}
|
|
629
|
+
decrementPendingTasks();
|
|
588
630
|
}
|
|
589
631
|
function getRenderer() {
|
|
590
632
|
if (typeof globalThis.document === 'undefined')
|
|
@@ -694,8 +736,40 @@ function getNetwork() {
|
|
|
694
736
|
}
|
|
695
737
|
return network;
|
|
696
738
|
}
|
|
697
|
-
function
|
|
698
|
-
|
|
739
|
+
function getDimension() {
|
|
740
|
+
var dimension = {
|
|
741
|
+
innerWidth: -1,
|
|
742
|
+
innerHeight: -1,
|
|
743
|
+
outerWidth: -1,
|
|
744
|
+
outerHeight: -1,
|
|
745
|
+
scale: 1,
|
|
746
|
+
};
|
|
747
|
+
if (typeof globalThis.innerWidth !== 'undefined') {
|
|
748
|
+
dimension.innerWidth = globalThis.innerWidth;
|
|
749
|
+
dimension.innerHeight = globalThis.innerHeight;
|
|
750
|
+
dimension.outerWidth = globalThis.outerWidth;
|
|
751
|
+
dimension.outerHeight = globalThis.outerHeight;
|
|
752
|
+
dimension.scale = globalThis.devicePixelRatio || 1;
|
|
753
|
+
return dimension;
|
|
754
|
+
}
|
|
755
|
+
if (Platform.crossPlatformFramework === CrossPlatformFramework.ReactNative) {
|
|
756
|
+
try {
|
|
757
|
+
var reactNative = require('react-native');
|
|
758
|
+
var dimensions = reactNative.Dimensions;
|
|
759
|
+
var pixelRatio = reactNative.PixelRatio;
|
|
760
|
+
var screenDimensions = dimensions.get('screen');
|
|
761
|
+
var windowDimensions = dimensions.get('window');
|
|
762
|
+
dimension.innerWidth = screenDimensions.width;
|
|
763
|
+
dimension.innerHeight = screenDimensions.height;
|
|
764
|
+
dimension.outerWidth = windowDimensions.width;
|
|
765
|
+
dimension.outerHeight = windowDimensions.height;
|
|
766
|
+
dimension.scale = pixelRatio.get();
|
|
767
|
+
return dimension;
|
|
768
|
+
}
|
|
769
|
+
catch (_) {
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
return dimension;
|
|
699
773
|
}
|
|
700
774
|
function init() {
|
|
701
775
|
if ((typeof globalThis.process !== 'undefined' && typeof globalThis.process.versions !== 'undefined' && globalThis.process.versions.electron !== undefined) || (/ electron\//i.test(USER_AGENT)))
|
|
@@ -836,61 +910,68 @@ function init() {
|
|
|
836
910
|
globalThis.document.addEventListener("deviceready", parseOSFromCordova, false);
|
|
837
911
|
}
|
|
838
912
|
}
|
|
839
|
-
if (
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
.userAgentData
|
|
843
|
-
.getHighEntropyValues(['brands', 'fullVersionList', 'mobile', 'model', 'platform', 'platformVersion', 'architecture', 'formFactors', 'bitness', 'uaFullVersion', 'wow64'])
|
|
913
|
+
if (typeof globalThis.navigator !== 'undefined' && typeof globalThis.navigator.userAgentData !== 'undefined' && typeof globalThis.navigator.userAgentData.getHighEntropyValues !== 'undefined') {
|
|
914
|
+
incrementPendingTasks();
|
|
915
|
+
globalThis.navigator.userAgentData.getHighEntropyValues(['brands', 'fullVersionList', 'mobile', 'model', 'platform', 'platformVersion', 'architecture', 'formFactors', 'bitness', 'uaFullVersion', 'wow64'])
|
|
844
916
|
.then(function (result) {
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
var
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
917
|
+
try {
|
|
918
|
+
var brands = result.fullVersionList || result.brands || [];
|
|
919
|
+
var platformVersion = result.platformVersion;
|
|
920
|
+
var platform = result.platform;
|
|
921
|
+
var browserName = Platform.browser.name;
|
|
922
|
+
var prevBrandName = null;
|
|
923
|
+
for (var i = 0; i < brands.length; i++) {
|
|
924
|
+
var brand = normalizeBrand(brands[i]);
|
|
925
|
+
var brandVersion = brand.version;
|
|
926
|
+
var brandName = brand.brand;
|
|
927
|
+
if (/not.a.brand/i.test(brandName))
|
|
928
|
+
continue;
|
|
929
|
+
if (prevBrandName === null || (/Chrom/.test(prevBrandName) && brandName !== 'Chromium') || (prevBrandName === 'Edge' && /WebView2/.test(brandName))) {
|
|
930
|
+
brandName = HIGH_ENTROPY_BRAND_NAME_MAP[brandName] || brandName;
|
|
931
|
+
prevBrandName = browserName;
|
|
932
|
+
if (prevBrandName === null || /Chrom/.test(prevBrandName) || !/Chrom/.test(brandName)) {
|
|
933
|
+
browserName = brandName;
|
|
934
|
+
if (browserName === 'Chrome' || browserName === 'Chrome WebView' || browserName === 'Chrome Headless')
|
|
935
|
+
Platform.browser.name = Browsers.Chrome;
|
|
936
|
+
else if (browserName === 'Edge' || browserName === 'Edge WebView2')
|
|
937
|
+
Platform.browser.name = Browsers.Edge;
|
|
938
|
+
else if (browserName === 'Opera Mobi')
|
|
939
|
+
Platform.browser.name = Browsers.Opera;
|
|
940
|
+
Platform.browser.version = brandVersion;
|
|
941
|
+
}
|
|
942
|
+
prevBrandName = brandName;
|
|
868
943
|
}
|
|
869
|
-
|
|
944
|
+
if (brandName === 'Chromium')
|
|
945
|
+
Platform.engine.version = brandVersion;
|
|
946
|
+
}
|
|
947
|
+
if (typeof platformVersion === 'string') {
|
|
948
|
+
if (Platform.os.name === OS.Windows)
|
|
949
|
+
Platform.os.version = parseInt(platformVersion.split('.')[0], 10) >= 13 ? '11' : '10';
|
|
950
|
+
else
|
|
951
|
+
Platform.os.version = platformVersion;
|
|
870
952
|
}
|
|
871
|
-
if (
|
|
872
|
-
|
|
953
|
+
if (typeof platform === 'string') {
|
|
954
|
+
if (/android/i.test(platform))
|
|
955
|
+
Platform.os.name = OS.Android;
|
|
956
|
+
else if (/ios|iphone|ipad/i.test(platform))
|
|
957
|
+
Platform.os.name = OS.iOS;
|
|
958
|
+
else if (/windows|win32/i.test(platform))
|
|
959
|
+
Platform.os.name = OS.Windows;
|
|
960
|
+
else if (/macos|macintel/i.test(platform))
|
|
961
|
+
Platform.os.name = OS.MacOS;
|
|
962
|
+
}
|
|
963
|
+
if (result.mobile === true)
|
|
964
|
+
Platform.device = Devices.Mobile;
|
|
873
965
|
}
|
|
874
|
-
|
|
875
|
-
if (Platform.os.name === OS.Windows)
|
|
876
|
-
Platform.os.version = parseInt(platformVersion.split('.')[0], 10) >= 13 ? '11' : '10';
|
|
877
|
-
else
|
|
878
|
-
Platform.os.version = platformVersion;
|
|
966
|
+
catch (_) {
|
|
879
967
|
}
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
Platform.os.name = OS.Android;
|
|
883
|
-
else if (/ios|iphone|ipad/i.test(platform))
|
|
884
|
-
Platform.os.name = OS.iOS;
|
|
885
|
-
else if (/windows|win32/i.test(platform))
|
|
886
|
-
Platform.os.name = OS.Windows;
|
|
887
|
-
else if (/macos|macintel/i.test(platform))
|
|
888
|
-
Platform.os.name = OS.MacOS;
|
|
968
|
+
finally {
|
|
969
|
+
decrementPendingTasks();
|
|
889
970
|
}
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
});
|
|
971
|
+
})
|
|
972
|
+
.catch(decrementPendingTasks);
|
|
893
973
|
}
|
|
974
|
+
checkReady();
|
|
894
975
|
}
|
|
895
976
|
init();
|
|
896
977
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function e(e,r){if(void 0===r&&(r=!0),void 0!==globalThis.document){var n=globalThis.document.createElement(e);return"width"in n&&(n.width="0"),"height"in n&&(n.height="0"),"border"in n&&(n.border="0"),"frameBorder"in n&&(n.frameBorder="0"),"scrolling"in n&&(n.scrolling="no"),"cellPadding"in n&&(n.cellPadding="0"),"cellSpacing"in n&&(n.cellSpacing="0"),"frame"in n&&(n.frame="void"),"rules"in n&&(n.rules="none"),"noWrap"in n&&(n.noWrap=!0),n.tabIndex=-1,n.setAttribute("role","presentation"),r?(n.style.width="1px",n.style.height="1px"):(n.setAttribute("aria-hidden","true"),n.style.width="0",n.style.height="0",n.style.zIndex="-9999",n.style.display="none",n.style.visibility="hidden",n.style.pointerEvents="none"),n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.padding="0",n.style.margin="0",n.style.border="none",n.style.outline="none",n.style.clip="rect(1px, 1px, 1px, 1px)",n.style.clipPath="inset(50%)",n.style.overflow="hidden",n.style.whiteSpace="nowrap",n}}function r(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];for(var t="",o=0;o<r.length-2;o++){var i=r[o];void 0!==i&&(t=t+i.charAt(0).toUpperCase()+i.slice(1))}return t}function n(){this.returnValue=!1}function t(){this.cancelBubble=!0}var o,i,a,l,s,c=/(animation)(start|iteration|end|cancel)|(transition)(start|run|end|cancel)|(fullscreen)(change|error)|(lost|got)(pointer)(capture)|(pointer)(lock)(change|error)|(pointer)(cancel|down|enter|leave|move|out|over|up)/i,u=["","webkit","moz","ms","MS","o","O"],d={wheel:["wheel","mousewheel","DOMMouseScroll"],focus:["focus","focusin"],blur:["blur","focusout"],beforeinput:["beforeinput","textInput"]},m={useStd:void 0!==globalThis.document&&"function"==typeof globalThis.document.addEventListener,add:function(e,r){void 0===r&&(r={callback:null,options:!1});var o=r.callback;if(void 0!==e&&null!==o){var i=m.withVender(e,r.type),a=r.options;if("function"==typeof e.addEventListener)try{return e.addEventListener(i,o,a)}catch(e){}if("function"==typeof e.addListener)if("boolean"==typeof e.matches)try{return e.addListener(o)}catch(e){}else try{return e.addListener(i,o)}catch(e){}return"function"==typeof e.attachEvent?o.__ieWrapper?e.attachEvent("on"+i,o.__ieWrapper):e.attachEvent("on"+i,o.__ieWrapper=function(r){void 0===r&&(r=globalThis.event),void 0!==r&&(r.currentTarget=e,"function"!=typeof r.preventDefault&&(r.preventDefault=n),"function"!=typeof r.stopPropagation&&(r.stopPropagation=t),"function"==typeof o?o.call(e,r):o&&"function"==typeof o.handleEvent&&o.handleEvent.call(e,r))}):void 0}},remove:function(e,r){void 0===r&&(r={callback:null,options:!1});var n=r.callback;if(void 0!==e&&null!==n){var t=m.withVender(e,r.type),o=r.options;if("function"==typeof e.removeEventListener)try{return e.removeEventListener(t,n,o)}catch(e){}if("function"==typeof e.removeListener)if("boolean"==typeof e.matches)try{return e.removeListener(n)}catch(e){}else try{return e.removeListener(t,n)}catch(e){}if("function"!=typeof e.detachEvent);else{var i=n.__ieWrapper;void 0!==i&&(e.detachEvent("on"+t,i),delete n.__ieWrapper)}}},withVender:function(e,n){if(void 0===n)return"";if(e===globalThis.document&&["deviceready","pause","resume","backbutton","menubutton","searchbutton","startcallbutton","endcallbutton","volumedownbutton","volumeupbutton","activated","cordovacallbackerror"].indexOf(n)>-1)return n;if(void 0!==e.webkitEnterFullscreen&&["webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"].indexOf(n)>-1)return n;var t;t=n in d?d[n]:c.test(n)?[n,n.replace(c,r)]:[n];for(var o=0;o<u.length;o++)for(var i=0;i<t.length;i++){var a=u[o]+t[i];if(void 0!==e["on"+a])return a}return""}};!function(e){e.Unknown="Unknown",e.Android="Android",e.iOS="iOS",e.Windows="Windows",e.MacOS="MacOS"}(o||(o={})),function(e){e.Unknown="Unknown",e.Mobile="Mobile",e.Desktop="Desktop"}(i||(i={})),function(e){e.Unknown="Unknown",e.EdgeHTML="EdgeHTML",e.ArkWeb="ArkWeb",e.Blink="Blink",e.Presto="Presto",e.WebKit="WebKit",e.Trident="Trident",e.NetFront="NetFront",e.KHTML="KHTML",e.Tasman="Tasman",e.Gecko="Gecko"}(a||(a={})),function(e){e.Unknown="Unknown",e.Chrome="Chrome",e.Safari="Safari",e.Edge="Edge",e.Firefox="Firefox",e.Opera="Opera",e.IE="IE",e.SamsungInternet="SamsungInternet"}(l||(l={})),function(e){e.Unknown="Unknown",e.ReactNative="ReactNative",e.Electron="Electron",e.Cordova="Cordova"}(s||(s={}));var f=void 0!==globalThis.navigator&&"string"==typeof globalThis.navigator.userAgent?globalThis.navigator.userAgent:"",v={os:{name:o.Unknown,version:""},engine:{name:a.Unknown,version:""},browser:{name:l.Unknown,version:""},crossPlatformFramework:s.Unknown,userAgent:f,get network(){return function(){var e={isOnline:null,effectiveType:null,type:null,downlink:null,rtt:null,saveData:null};if(void 0!==globalThis.navigator){void 0!==globalThis.navigator.onLine&&(e.isOnline=globalThis.navigator.onLine);var r=globalThis.navigator.connection||globalThis.navigator.mozConnection||globalThis.navigator.webkitConnection;void 0!==r&&(void 0!==r.effectiveType&&(e.effectiveType=r.effectiveType),void 0!==r.type&&(e.type=r.type),void 0!==r.downlink&&(e.downlink=r.downlink),void 0!==r.rtt&&(e.rtt=r.rtt),void 0!==r.saveData&&(e.saveData=r.saveData))}if(v.isNode){try{for(var n=require("os").networkInterfaces(),t=Object.keys(n),i=0;i<t.length;i++){for(var a=n[t[i]],l=0;l<a.length;l++){var s=a[l];s.internal||"IPv4"!==s.family||(e.isOnline=!0)}if(e.isOnline)break}}catch(e){}try{var c=require("child_process");if(v.os.name===o.Windows){try{(u=c.execSync("netsh wlan show interfaces",{encoding:"utf8",timeout:5e3})).includes("State")&&u.includes("connected")&&(e.type="wifi")}catch(e){}if(null===e.type)try{(u=c.execSync("ipconfig",{encoding:"utf8",timeout:5e3})).includes("Ethernet adapter")&&(e.type="ethernet")}catch(e){}null===e.type&&(e.type="other")}else if(v.os.name===o.MacOS)try{var u=c.execSync("networksetup -listallhardwareports",{encoding:"utf8",timeout:5e3}),d=c.execSync("route -n get default | grep interface",{encoding:"utf8",timeout:5e3});d.includes("en0")&&u.includes("Wi-Fi")?e.type="wifi":d.includes("en")||u.includes("Ethernet")?e.type="ethernet":e.type="other"}catch(r){e.type="other"}}catch(e){}}return e}()},get device(){return this.os.name===o.iOS||this.os.name===o.Android?i.Mobile:this.os.name===o.Windows||this.os.name===o.MacOS?i.Desktop:i.Unknown},get renderer(){return function(){if(void 0===globalThis.document)return"";var e=globalThis.document.createElement("canvas");if("function"!=typeof e.getContext)return"";var r=e.getContext("webgl2")||e.getContext("experimental-webgl")||e.getContext("webgl");if(null===r)return"";if(r instanceof WebGLRenderingContext||"getParameter"in r&&"function"==typeof r.getParameter){var n=r.getExtension("WEBGL_debug_renderer_info");return null===n?r.getParameter(r.RENDERER):r.getParameter(n.UNMASKED_RENDERER_WEBGL)}return""}()},get isMobile(){return this.device===i.Mobile},get isDesktop(){return this.device===i.Desktop},get isWebview(){return/; ?wv|applewebkit(?!.*safari)/i.test(this.userAgent)},get isNode(){return void 0!==globalThis.process&&void 0!==globalThis.process.versions&&void 0!==globalThis.process.versions.node},get isStandalone(){return this.os.name===o.iOS?"standalone"in globalThis.navigator&&!!globalThis.navigator.standalone:"matchMedia"in globalThis&&globalThis.matchMedia("(display-mode: standalone)").matches}},p=[[/windows nt (6\.[23]); arm/i,o.Windows,w],[/windows (?:phone|mobile|iot)(?: os)?[\/ ]?([\d.]*( se)?)/i,o.Windows,w],[/windows[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i,o.Windows,w],[/windows nt ?([\d.)]*)(?!.+xbox)/i,o.Windows,w],[/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d.;]*)/i,o.Windows,w],[/windows ce\/?([\d.]*)/i,o.Windows,w],[/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i,o.iOS,y],[/(?:ios;fbsv|ios(?=.+ip(?:ad|hone))|ip(?:ad|hone)(?: |.+i(?:pad)?)os)[\/ ]([\w.]+)/i,o.iOS,y],[/cfnetwork\/.+darwin/i,o.iOS,y],[/mac os x ?([\w. ]*)/i,o.MacOS,y],[/(?:macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i,o.MacOS,y],[/droid ([\w.]+)\b.+(android[- ]x86)/i,o.Android],[/android\w*[-\/.; ]?([\d.]*)/i,o.Android]],h=[[/windows.+ edge\/([\w.]+)/i,a.EdgeHTML],[/arkweb\/([\w.]+)/i,a.ArkWeb],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i,a.Blink],[/presto\/([\w.]+)/i,a.Presto],[/webkit\/([\w.]+)/i,a.WebKit],[/trident\/([\w.]+)/i,a.Trident],[/netfront\/([\w.]+)/i,a.NetFront],[/khtml[\/ ]\(?([\w.]+)/i,a.KHTML],[/tasman[\/ ]\(?([\w.]+)/i,a.Tasman],[/rv:([\w.]{1,9})\b.+gecko/i,a.Gecko]],b=[[/\b(?:crmo|crios)\/([\w.]+)/i,l.Chrome],[/webview.+edge\/([\w.]+)/i,l.Edge],[/edg(?:e|ios|a)?\/([\w.]+)/i,l.Edge],[/opera mini\/([-\w.]+)/i,l.Opera],[/opera [mobileta]{3,6}\b.+version\/([-\w.]+)/i,l.Opera],[/opera(?:.+version\/|[\/ ]+)([\w.]+)/i,l.Opera],[/opios[\/ ]+([\w.]+)/i,l.Opera],[/\bop(?:rg)?x\/([\w.]+)/i,l.Opera],[/\bopr\/([\w.]+)/i,l.Opera],[/iemobile(?:browser|boat|jet)[\/ ]?([\d.]*)/i,l.IE],[/(?:ms|\()ie ([\w.]+)/i,l.IE],[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i,l.IE],[/\bfocus\/([\w.]+)/i,l.Firefox],[/\bopt\/([\w.]+)/i,l.Opera],[/coast\/([\w.]+)/i,l.Opera],[/fxios\/([\w.-]+)/i,l.Firefox],[/samsungbrowser\/([\w.]+)/i,l.SamsungInternet],[/headlesschrome(?:\/([\w.]+)| )/i,l.Chrome],[/wv\).+chrome\/([\w.]+).+edgw\//i,l.Edge],[/ wv\).+(chrome)\/([\w.]+)/i,l.Chrome],[/chrome\/([\w.]+) mobile/i,l.Chrome],[/chrome\/v?([\w.]+)/i,l.Chrome],[/version\/([\w.,]+) .*mobile(?:\/\w+ | ?)safari/i,l.Safari],[/iphone .*mobile(?:\/\w+ | ?)safari/i,l.Safari],[/version\/([\w.,]+) .*safari/i,l.Safari],[/webkit.+?(?:mobile ?safari|safari)(\/[\w.]+)/i,l.Safari,"1"],[/(?:mobile|tablet);.*firefox\/([\w.-]+)/i,l.Firefox],[/mobile vr; rv:([\w.]+)\).+firefox/i,l.Firefox],[/firefox\/([\w.]+)/i,l.Firefox]],g={"Google Chrome":"Chrome","Microsoft Edge":"Edge","Microsoft Edge WebView2":"Edge WebView2","Android WebView":"Chrome WebView",HeadlessChrome:"Chrome Headless",OperaMobile:"Opera Mobi"};function w(e){if(void 0===e)return"";var r={"4.90":"ME","NT3.51":"NT 3.11","NT4.0":"NT 4.0","NT 5.0":"2000","NT 5.1":"XP","NT 5.2":"XP","NT 6.0":"Vista","NT 6.1":"7","NT 6.2":"8","NT 6.3":"8.1","NT 6.4":"10","NT 10.0":"10",ARM:"RT"}[e];return void 0!==r?r:e}function y(e){return void 0===e?"":e.replace(/_/g,".")}function T(e,r){return 10===e.major&&0===e.minor&&e.build>=22e3?"11":10===e.major&&0===e.minor&&e.build<22e3?"10":6===e.major&&3===e.minor?"8.1":6===e.major&&2===e.minor?"8":6===e.major&&1===e.minor?"7":6===e.major&&0===e.minor?"Vista":5===e.major&&1===e.minor||5===e.major&&2===e.minor?"XP":5===e.major&&0===e.minor?"2000":4===e.major&&90===e.minor?"ME":4===e.major&&0===e.minor?"NT 4.0":3===e.major&&51===e.minor?"NT 3.11":r}function k(e,r){return e.major>=24?e.major-9+"."+e.minor+"."+e.build:23===e.major?"14."+e.minor+"."+e.build:22===e.major?"13."+e.minor+"."+e.build:21===e.major?"12."+e.minor+"."+e.build:20===e.major?"11."+e.minor+"."+e.build:19===e.major?"10.15."+e.minor:18===e.major?"10.14."+e.minor:17===e.major?"10.13."+e.minor:16===e.major?"10.12."+e.minor:15===e.major?"10.11."+e.minor:14===e.major?"10.10."+e.minor:13===e.major?"10.9."+e.minor:e.major>=5&&e.major<=12?"10."+(e.major-4)+"."+e.minor:r}function x(e,r){return e.major>=36?"16":35===e.major?"15":34===e.major?"14":33===e.major?"13":32===e.major?"12.1":31===e.major?"12":30===e.major?"11":29===e.major?"10":28===e.major?"9":27===e.major?"8.1":26===e.major?"8.0":25===e.major?"7.1":24===e.major?"7.0":23===e.major?"6.0":22===e.major?"5.1":21===e.major?"5.0":20===e.major||19===e.major?"4.4":18===e.major?"4.3":17===e.major?"4.2":16===e.major?"4.1":15===e.major?"4.0.3":14===e.major?"4.0":13===e.major?"3.2":12===e.major?"3.1":11===e.major?"3.0":10===e.major?"2.3.3":9===e.major?"2.3":8===e.major?"2.2":7===e.major?"2.1":6===e.major?"2.0.1":5===e.major?"2.0":4===e.major?"1.6":3===e.major?"1.5":2===e.major?"1.1":1===e.major?"1.0":r}function j(e,r){return"function"==typeof r?r(e):"string"==typeof r?r:void 0===e?"":e}function E(e){var r=e.split(".");return{major:parseInt(r[0]||"0"),minor:parseInt(r[1]||"0"),build:parseInt(r[2]||"0")}}function S(){if(v.crossPlatformFramework=s.Cordova,void 0!==globalThis.device)switch(globalThis.device.platform){case"Android":v.os={name:o.Android,version:globalThis.device.version};break;case"iOS":v.os={name:o.iOS,version:globalThis.device.version}}}function C(e){return null!==e&&"object"==typeof e}function O(){return function(){if(void 0!==globalThis.isSecureContext)return globalThis.isSecureContext;var e=location.protocol,r=location.hostname;return"https:"===e||"localhost"===r||"127.0.0.1"===r||"[::1]"===r}()&&"undefined"!=typeof navigator&&"clipboard"in navigator}function M(r){return function(r){if(!globalThis.getSelection||!globalThis.document.createRange)return!1;var n=e("div");if(void 0===n)return!1;n.contentEditable="true",n.innerHTML=r,n.style.whiteSpace="pre",n.style.userSelect="text",n.style.setProperty("-webkit-user-select","text"),n.style.setProperty("-moz-user-select","text"),n.style.setProperty("-ms-user-select","text"),globalThis.document.body.appendChild(n);var t=globalThis.getSelection(),o=globalThis.document.createRange(),i=function(e){try{null!==e.clipboardData&&"function"==typeof e.clipboardData.setData&&(e.preventDefault(),e.clipboardData.setData("text/html",r),e.clipboardData.setData("text/plain",r))}catch(e){}};m.add(globalThis.document,{type:"copy",callback:i,options:{once:!0,capture:!0}});try{if(null===t)return P(n,t,i),!1;t.removeAllRanges(),o.selectNodeContents(n),t.addRange(o);var a=globalThis.document.execCommand("copy");return P(n,t,i),a}catch(e){return P(n,t,i),!1}}(r)||function(e){var r=window.clipboardData;if(void 0!==r&&"function"==typeof r.setData)try{return r.setData("Text",e)}catch(e){return!1}return!1}(r)}function D(){return function(){var r=e("div");if(void 0===r)return null;r.contentEditable="true",globalThis.document.body.appendChild(r),r.focus();var n=null,t=function(e){try{null!==e.clipboardData&&"function"==typeof e.clipboardData.getData&&(e.preventDefault(),n=e.clipboardData.getData("text/html")||e.clipboardData.getData("text/plain")||null)}catch(e){}};m.add(globalThis.document,{type:"paste",callback:t,options:{once:!0,capture:!0}});try{return globalThis.document.execCommand("paste")||n||(n=r.innerHTML||r.textContent||null),W(r,t),n}catch(e){return W(r,t),null}}()||function(){var e=window.clipboardData;if(void 0!==e&&"function"==typeof e.getData)try{return e.getData("Text")||null}catch(e){return null}return null}()||""}function P(e,r,n){null!==r&&r.removeAllRanges(),globalThis.document.body.removeChild(e),m.remove(globalThis.document,{type:"copy",callback:n})}function W(e,r){globalThis.document.body.removeChild(e),m.remove(globalThis.document,{type:"paste",callback:r})}!function(){(void 0!==globalThis.process&&void 0!==globalThis.process.versions&&void 0!==globalThis.process.versions.electron||/ electron\//i.test(f))&&(v.crossPlatformFramework=s.Electron),void 0!==globalThis.navigator&&"ReactNative"===globalThis.navigator.product&&(v.crossPlatformFramework=s.ReactNative);for(var e=0;e<p.length;e++){var r=(c=p[e])[0],n=c[1],t=c[2];if(null!==(u=v.userAgent.match(r))){v.os={name:n,version:j(u[1],t)};break}}for(v.os.name===o.iOS&&0===function(e,r){for(var n=e.split("."),t=r.split("."),o=Math.max(n.length,t.length),i=0;i<o;i++){var a=void 0,l=void 0;if((a=i<n.length?parseInt(n[i],10):0)>(l=i<t.length?parseInt(t[i],10):0))return 1;if(a<l)return-1}return 0}(v.os.version,"18.6")&&null!==(m=/\) Version\/([\d.]+)/.exec(v.userAgent))&&parseInt(m[1].substring(0,2),10)>=26&&(v.os.version=m[1]),e=0;e<h.length;e++){r=(c=h[e])[0];var a=c[1];t=c[2];if(null!==(u=v.userAgent.match(r))){v.engine={name:a,version:j(u[1],t)};break}}for(e=0;e<b.length;e++){r=(c=b[e])[0];var c,u,d=c[1];t=c[2];if(null!==(u=v.userAgent.match(r))){v.browser={name:d,version:j(u[1],t)};break}}if(v.crossPlatformFramework===s.ReactNative)try{n=(y=require("react-native").Platform).OS;var m=E(w=""+y.Version);switch(n){case"android":v.os={name:o.Android,version:x(m,w)};break;case"ios":v.os={name:o.iOS,version:w};break;case"windows":v.os={name:o.Windows,version:T(m,w)};break;case"macos":v.os={name:o.MacOS,version:w}}}catch(e){}if(v.isNode)try{var w,y=(n=require("os")).platform();m=E(w=n.release());switch(y){case"win32":v.os={name:o.Windows,version:T(m,w)};break;case"darwin":v.os={name:o.MacOS,version:k(m,w)};break;case"android":v.os={name:o.Android,version:w};break;case"linux":/android/i.test(w)&&(v.os={name:o.Android,version:w})}}catch(e){}void 0!==globalThis.document&&(void 0!==globalThis.device?S():globalThis.document.addEventListener("deviceready",S,!1)),function(e){return void 0!==globalThis.navigator&&void 0!==e.userAgentData&&void 0!==e.userAgentData.getHighEntropyValues}(globalThis.navigator)&&globalThis.navigator.userAgentData.getHighEntropyValues(["brands","fullVersionList","mobile","model","platform","platformVersion","architecture","formFactors","bitness","uaFullVersion","wow64"]).then((function(e){for(var r,n=e.fullVersionList||e.brands||[],t=e.platformVersion,a=e.platform,s=v.browser.name,c=null,u=0;u<n.length;u++){var d=null==(r=n[u])?{brand:"",version:""}:"string"==typeof r?{brand:r,version:""}:{brand:r.brand,version:r.version},m=d.version,f=d.brand;/not.a.brand/i.test(f)||((null===c||/Chrom/.test(c)&&"Chromium"!==f||"Edge"===c&&/WebView2/.test(f))&&(f=g[f]||f,null!==(c=s)&&!/Chrom/.test(c)&&/Chrom/.test(f)||("Chrome"===(s=f)||"Chrome WebView"===s||"Chrome Headless"===s?v.browser.name=l.Chrome:"Edge"===s||"Edge WebView2"===s?v.browser.name=l.Edge:"Opera Mobi"===s&&(v.browser.name=l.Opera),v.browser.version=m),c=f),"Chromium"===f&&(v.engine.version=m))}"string"==typeof t&&(v.os.name===o.Windows?v.os.version=parseInt(t.split(".")[0],10)>=13?"11":"10":v.os.version=t),"string"==typeof a&&(/android/i.test(a)?v.os.name=o.Android:/ios|iphone|ipad/i.test(a)?v.os.name=o.iOS:/windows|win32/i.test(a)?v.os.name=o.Windows:/macos|macintel/i.test(a)&&(v.os.name=o.MacOS)),!0===e.mobile&&(v.device=i.Mobile)}))}();var A={installed:!1,name:"Clipboard",module:{copy:function(e){var r=function(e){if(function(e){return C(e)&&void 0!==e.innerText}(e))return e.innerHTML;if(function(e){return C(e)||function(e){return Array.isArray(e)}(e)}(e))try{return JSON.stringify(e)}catch(r){return""+e}else if("string"!=typeof e)return""+e;return e}(e);if(v.crossPlatformFramework===s.Electron)return function(e){try{var r=require("electron");return new Promise((function(n){try{r.clipboard.writeText(e),r.clipboard.writeHTML(e),n(!0)}catch(e){n(!1)}}))}catch(e){return Promise.resolve(!1)}}(r);if(O()&&("write"in navigator.clipboard||"writeText"in navigator.clipboard))return function(e){try{if("ClipboardItem"in window&&"write"in navigator.clipboard)return navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]).then((function(){return!0})).catch((function(){return!1}));if("writeText"in navigator.clipboard)return navigator.clipboard.writeText(e).then((function(){return!0})).catch((function(){return!1}))}catch(e){return Promise.resolve(!1)}return Promise.resolve(!1)}(r).then((function(e){return!!e||M(r)})).catch((function(){return M(r)}));return Promise.resolve(M(r))},paste:function(){if(v.crossPlatformFramework===s.Electron)return function(){try{var e=require("electron");return new Promise((function(r){try{var n=e.clipboard.readHTML();return r(n?n.replace(/<meta[^>]*\bcharset\b[^>]*>/i,""):e.clipboard.readText()||"")}catch(e){r("")}}))}catch(e){return Promise.resolve("")}}();if(O()&&("read"in navigator.clipboard||"readText"in navigator.clipboard))return function(){try{if("ClipboardItem"in window&&"read"in navigator.clipboard)return navigator.clipboard.read().then((function(e){if(0===e.length)return Promise.resolve(null);for(var r=e[0],n=r.types,t=0;t<n.length;t++)if("text/html"===n[t])return r.getType("text/html").then((function(e){return e.text()})).catch((function(){return null}));for(t=0;t<n.length;t++)if("text/plain"===n[t])return r.getType("text/plain").then((function(e){return e.text()})).catch((function(){return null}));return Promise.resolve(null)})).catch((function(){return null}));if("readText"in navigator.clipboard)return navigator.clipboard.readText().then((function(e){return e})).catch((function(){return null}))}catch(e){return Promise.resolve(null)}return Promise.resolve(null)}().then((function(e){return null!==e?e:D()})).catch((function(){return D()}));return Promise.resolve(D())}},Constants:{},Errors:{}};module.exports=A;
|
|
1
|
+
"use strict";function e(e,t){if(void 0===t&&(t=!0),void 0!==globalThis.document){var r=globalThis.document.createElement(e);return"width"in r&&(r.width="0"),"height"in r&&(r.height="0"),"border"in r&&(r.border="0"),"frameBorder"in r&&(r.frameBorder="0"),"scrolling"in r&&(r.scrolling="no"),"cellPadding"in r&&(r.cellPadding="0"),"cellSpacing"in r&&(r.cellSpacing="0"),"frame"in r&&(r.frame="void"),"rules"in r&&(r.rules="none"),"noWrap"in r&&(r.noWrap=!0),r.tabIndex=-1,r.setAttribute("role","presentation"),t?(r.style.width="1px",r.style.height="1px"):(r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.zIndex="-9999",r.style.display="none",r.style.visibility="hidden",r.style.pointerEvents="none"),r.style.position="absolute",r.style.top="0",r.style.left="0",r.style.padding="0",r.style.margin="0",r.style.border="none",r.style.outline="none",r.style.clip="rect(1px, 1px, 1px, 1px)",r.style.clipPath="inset(50%)",r.style.overflow="hidden",r.style.whiteSpace="nowrap",r}}function t(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n="",o=0;o<t.length-2;o++){var i=t[o];void 0!==i&&(n=n+i.charAt(0).toUpperCase()+i.slice(1))}return n}function r(){this.returnValue=!1}function n(){this.cancelBubble=!0}var o,i,a,l,s,c=/(animation)(start|iteration|end|cancel)|(transition)(start|run|end|cancel)|(fullscreen)(change|error)|(lost|got)(pointer)(capture)|(pointer)(lock)(change|error)|(pointer)(cancel|down|enter|leave|move|out|over|up)/i,u=["","webkit","moz","ms","MS","o","O"],d={wheel:["wheel","mousewheel","DOMMouseScroll"],focus:["focus","focusin"],blur:["blur","focusout"],beforeinput:["beforeinput","textInput"]},m={useStd:void 0!==globalThis.document&&"function"==typeof globalThis.document.addEventListener,add:function(e,t){void 0===t&&(t={callback:null,options:!1});var o=t.callback;if(void 0!==e&&null!==o){var i=m.withVender(e,t.type),a=t.options;if("function"==typeof e.addEventListener)try{return e.addEventListener(i,o,a)}catch(e){}if("function"==typeof e.addListener)if("boolean"==typeof e.matches)try{return e.addListener(o)}catch(e){}else try{return e.addListener(i,o)}catch(e){}return"function"==typeof e.attachEvent?o.__ieWrapper?e.attachEvent("on"+i,o.__ieWrapper):e.attachEvent("on"+i,o.__ieWrapper=function(t){void 0===t&&(t=globalThis.event),void 0!==t&&(t.currentTarget=e,"function"!=typeof t.preventDefault&&(t.preventDefault=r),"function"!=typeof t.stopPropagation&&(t.stopPropagation=n),"function"==typeof o?o.call(e,t):o&&"function"==typeof o.handleEvent&&o.handleEvent.call(e,t))}):void 0}},remove:function(e,t){void 0===t&&(t={callback:null,options:!1});var r=t.callback;if(void 0!==e&&null!==r){var n=m.withVender(e,t.type),o=t.options;if("function"==typeof e.removeEventListener)try{return e.removeEventListener(n,r,o)}catch(e){}if("function"==typeof e.removeListener)if("boolean"==typeof e.matches)try{return e.removeListener(r)}catch(e){}else try{return e.removeListener(n,r)}catch(e){}if("function"!=typeof e.detachEvent);else{var i=r.__ieWrapper;void 0!==i&&(e.detachEvent("on"+n,i),delete r.__ieWrapper)}}},withVender:function(e,r){if(void 0===r)return"";if(e===globalThis.document&&["deviceready","pause","resume","backbutton","menubutton","searchbutton","startcallbutton","endcallbutton","volumedownbutton","volumeupbutton","activated","cordovacallbackerror"].indexOf(r)>-1)return r;if(void 0!==e.webkitEnterFullscreen&&["webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"].indexOf(r)>-1)return r;var n;n=r in d?d[r]:c.test(r)?[r,r.replace(c,t)]:[r];for(var o=0;o<u.length;o++)for(var i=0;i<n.length;i++){var a=u[o]+n[i];if(void 0!==e["on"+a])return a}return""}};!function(e){e.Unknown="Unknown",e.Android="Android",e.iOS="iOS",e.Windows="Windows",e.MacOS="MacOS"}(o||(o={})),function(e){e.Unknown="Unknown",e.Mobile="Mobile",e.Desktop="Desktop"}(i||(i={})),function(e){e.Unknown="Unknown",e.EdgeHTML="EdgeHTML",e.ArkWeb="ArkWeb",e.Blink="Blink",e.Presto="Presto",e.WebKit="WebKit",e.Trident="Trident",e.NetFront="NetFront",e.KHTML="KHTML",e.Tasman="Tasman",e.Gecko="Gecko"}(a||(a={})),function(e){e.Unknown="Unknown",e.Chrome="Chrome",e.Safari="Safari",e.Edge="Edge",e.Firefox="Firefox",e.Opera="Opera",e.IE="IE",e.SamsungInternet="SamsungInternet"}(l||(l={})),function(e){e.Unknown="Unknown",e.ReactNative="ReactNative",e.Electron="Electron",e.Cordova="Cordova"}(s||(s={}));var f=void 0!==globalThis.navigator&&"string"==typeof globalThis.navigator.userAgent?globalThis.navigator.userAgent:"",h="loading",v=[],p=0,g={os:{name:o.Unknown,version:""},engine:{name:a.Unknown,version:""},browser:{name:l.Unknown,version:""},crossPlatformFramework:s.Unknown,userAgent:f,get readyState(){return h},get network(){return function(){var e={isOnline:null,effectiveType:null,type:null,downlink:null,rtt:null,saveData:null};if(void 0!==globalThis.navigator){void 0!==globalThis.navigator.onLine&&(e.isOnline=globalThis.navigator.onLine);var t=globalThis.navigator.connection||globalThis.navigator.mozConnection||globalThis.navigator.webkitConnection;void 0!==t&&(void 0!==t.effectiveType&&(e.effectiveType=t.effectiveType),void 0!==t.type&&(e.type=t.type),void 0!==t.downlink&&(e.downlink=t.downlink),void 0!==t.rtt&&(e.rtt=t.rtt),void 0!==t.saveData&&(e.saveData=t.saveData))}if(g.isNode){try{for(var r=require("os").networkInterfaces(),n=Object.keys(r),i=0;i<n.length;i++){for(var a=r[n[i]],l=0;l<a.length;l++){var s=a[l];s.internal||"IPv4"!==s.family||(e.isOnline=!0)}if(e.isOnline)break}}catch(e){}try{var c=require("child_process");if(g.os.name===o.Windows){try{(u=c.execSync("netsh wlan show interfaces",{encoding:"utf8",timeout:5e3})).includes("State")&&u.includes("connected")&&(e.type="wifi")}catch(e){}if(null===e.type)try{(u=c.execSync("ipconfig",{encoding:"utf8",timeout:5e3})).includes("Ethernet adapter")&&(e.type="ethernet")}catch(e){}null===e.type&&(e.type="other")}else if(g.os.name===o.MacOS)try{var u=c.execSync("networksetup -listallhardwareports",{encoding:"utf8",timeout:5e3}),d=c.execSync("route -n get default | grep interface",{encoding:"utf8",timeout:5e3});d.includes("en0")&&u.includes("Wi-Fi")?e.type="wifi":d.includes("en")||u.includes("Ethernet")?e.type="ethernet":e.type="other"}catch(t){e.type="other"}}catch(e){}}return e}()},get dimension(){return function(){var e={innerWidth:-1,innerHeight:-1,outerWidth:-1,outerHeight:-1,scale:1};if(void 0!==globalThis.innerWidth)return e.innerWidth=globalThis.innerWidth,e.innerHeight=globalThis.innerHeight,e.outerWidth=globalThis.outerWidth,e.outerHeight=globalThis.outerHeight,e.scale=globalThis.devicePixelRatio||1,e;if(g.crossPlatformFramework===s.ReactNative)try{var t=require("react-native"),r=t.Dimensions,n=t.PixelRatio,o=r.get("screen"),i=r.get("window");return e.innerWidth=o.width,e.innerHeight=o.height,e.outerWidth=i.width,e.outerHeight=i.height,e.scale=n.get(),e}catch(e){}return e}()},get device(){return this.os.name===o.iOS||this.os.name===o.Android?i.Mobile:this.os.name===o.Windows||this.os.name===o.MacOS?i.Desktop:i.Unknown},get renderer(){return function(){if(void 0===globalThis.document)return"";var e=globalThis.document.createElement("canvas");if("function"!=typeof e.getContext)return"";var t=e.getContext("webgl2")||e.getContext("experimental-webgl")||e.getContext("webgl");if(null===t)return"";if(t instanceof WebGLRenderingContext||"getParameter"in t&&"function"==typeof t.getParameter){var r=t.getExtension("WEBGL_debug_renderer_info");return null===r?t.getParameter(t.RENDERER):t.getParameter(r.UNMASKED_RENDERER_WEBGL)}return""}()},get isMobile(){return this.device===i.Mobile},get isDesktop(){return this.device===i.Desktop},get isWebview(){return/; ?wv|applewebkit(?!.*safari)/i.test(this.userAgent)},get isNode(){return void 0!==globalThis.process&&void 0!==globalThis.process.versions&&void 0!==globalThis.process.versions.node},get isStandalone(){return this.os.name===o.iOS?"standalone"in globalThis.navigator&&!!globalThis.navigator.standalone:"matchMedia"in globalThis&&globalThis.matchMedia("(display-mode: standalone)").matches},onready:function(e){if("complete"===this.readyState)try{e(this)}catch(e){}else v.push(e)}},b=[[/windows nt (6\.[23]); arm/i,o.Windows,j],[/windows (?:phone|mobile|iot)(?: os)?[\/ ]?([\d.]*( se)?)/i,o.Windows,j],[/windows[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i,o.Windows,j],[/windows nt ?([\d.)]*)(?!.+xbox)/i,o.Windows,j],[/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d.;]*)/i,o.Windows,j],[/windows ce\/?([\d.]*)/i,o.Windows,j],[/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i,o.iOS,E],[/(?:ios;fbsv|ios(?=.+ip(?:ad|hone))|ip(?:ad|hone)(?: |.+i(?:pad)?)os)[\/ ]([\w.]+)/i,o.iOS,E],[/cfnetwork\/.+darwin/i,o.iOS,E],[/mac os x ?([\w. ]*)/i,o.MacOS,E],[/(?:macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i,o.MacOS,E],[/droid ([\w.]+)\b.+(android[- ]x86)/i,o.Android],[/android\w*[-\/.; ]?([\d.]*)/i,o.Android]],w=[[/windows.+ edge\/([\w.]+)/i,a.EdgeHTML],[/arkweb\/([\w.]+)/i,a.ArkWeb],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i,a.Blink],[/presto\/([\w.]+)/i,a.Presto],[/webkit\/([\w.]+)/i,a.WebKit],[/trident\/([\w.]+)/i,a.Trident],[/netfront\/([\w.]+)/i,a.NetFront],[/khtml[\/ ]\(?([\w.]+)/i,a.KHTML],[/tasman[\/ ]\(?([\w.]+)/i,a.Tasman],[/rv:([\w.]{1,9})\b.+gecko/i,a.Gecko]],y=[[/\b(?:crmo|crios)\/([\w.]+)/i,l.Chrome],[/webview.+edge\/([\w.]+)/i,l.Edge],[/edg(?:e|ios|a)?\/([\w.]+)/i,l.Edge],[/opera mini\/([-\w.]+)/i,l.Opera],[/opera [mobileta]{3,6}\b.+version\/([-\w.]+)/i,l.Opera],[/opera(?:.+version\/|[\/ ]+)([\w.]+)/i,l.Opera],[/opios[\/ ]+([\w.]+)/i,l.Opera],[/\bop(?:rg)?x\/([\w.]+)/i,l.Opera],[/\bopr\/([\w.]+)/i,l.Opera],[/iemobile(?:browser|boat|jet)[\/ ]?([\d.]*)/i,l.IE],[/(?:ms|\()ie ([\w.]+)/i,l.IE],[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i,l.IE],[/\bfocus\/([\w.]+)/i,l.Firefox],[/\bopt\/([\w.]+)/i,l.Opera],[/coast\/([\w.]+)/i,l.Opera],[/fxios\/([\w.-]+)/i,l.Firefox],[/samsungbrowser\/([\w.]+)/i,l.SamsungInternet],[/headlesschrome(?:\/([\w.]+)| )/i,l.Chrome],[/wv\).+chrome\/([\w.]+).+edgw\//i,l.Edge],[/ wv\).+(chrome)\/([\w.]+)/i,l.Chrome],[/chrome\/([\w.]+) mobile/i,l.Chrome],[/chrome\/v?([\w.]+)/i,l.Chrome],[/version\/([\w.,]+) .*mobile(?:\/\w+ | ?)safari/i,l.Safari],[/iphone .*mobile(?:\/\w+ | ?)safari/i,l.Safari],[/version\/([\w.,]+) .*safari/i,l.Safari],[/webkit.+?(?:mobile ?safari|safari)(\/[\w.]+)/i,l.Safari,"1"],[/(?:mobile|tablet);.*firefox\/([\w.-]+)/i,l.Firefox],[/mobile vr; rv:([\w.]+)\).+firefox/i,l.Firefox],[/firefox\/([\w.]+)/i,l.Firefox]],T={"Google Chrome":"Chrome","Microsoft Edge":"Edge","Microsoft Edge WebView2":"Edge WebView2","Android WebView":"Chrome WebView",HeadlessChrome:"Chrome Headless",OperaMobile:"Opera Mobi"};function k(){p--,x()}function x(){if(0===p&&"loading"===h){h="complete";for(var e=0;e<v.length;e++)try{v[e](g)}catch(e){}v.length=0}}function j(e){if(void 0===e)return"";var t={"4.90":"ME","NT3.51":"NT 3.11","NT4.0":"NT 4.0","NT 5.0":"2000","NT 5.1":"XP","NT 5.2":"XP","NT 6.0":"Vista","NT 6.1":"7","NT 6.2":"8","NT 6.3":"8.1","NT 6.4":"10","NT 10.0":"10",ARM:"RT"}[e];return void 0!==t?t:e}function E(e){return void 0===e?"":e.replace(/_/g,".")}function S(e,t){return 10===e.major&&0===e.minor&&e.build>=22e3?"11":10===e.major&&0===e.minor&&e.build<22e3?"10":6===e.major&&3===e.minor?"8.1":6===e.major&&2===e.minor?"8":6===e.major&&1===e.minor?"7":6===e.major&&0===e.minor?"Vista":5===e.major&&1===e.minor||5===e.major&&2===e.minor?"XP":5===e.major&&0===e.minor?"2000":4===e.major&&90===e.minor?"ME":4===e.major&&0===e.minor?"NT 4.0":3===e.major&&51===e.minor?"NT 3.11":t}function W(e,t){return e.major>=24?e.major-9+"."+e.minor+"."+e.build:23===e.major?"14."+e.minor+"."+e.build:22===e.major?"13."+e.minor+"."+e.build:21===e.major?"12."+e.minor+"."+e.build:20===e.major?"11."+e.minor+"."+e.build:19===e.major?"10.15."+e.minor:18===e.major?"10.14."+e.minor:17===e.major?"10.13."+e.minor:16===e.major?"10.12."+e.minor:15===e.major?"10.11."+e.minor:14===e.major?"10.10."+e.minor:13===e.major?"10.9."+e.minor:e.major>=5&&e.major<=12?"10."+(e.major-4)+"."+e.minor:t}function C(e,t){return e.major>=36?"16":35===e.major?"15":34===e.major?"14":33===e.major?"13":32===e.major?"12.1":31===e.major?"12":30===e.major?"11":29===e.major?"10":28===e.major?"9":27===e.major?"8.1":26===e.major?"8.0":25===e.major?"7.1":24===e.major?"7.0":23===e.major?"6.0":22===e.major?"5.1":21===e.major?"5.0":20===e.major||19===e.major?"4.4":18===e.major?"4.3":17===e.major?"4.2":16===e.major?"4.1":15===e.major?"4.0.3":14===e.major?"4.0":13===e.major?"3.2":12===e.major?"3.1":11===e.major?"3.0":10===e.major?"2.3.3":9===e.major?"2.3":8===e.major?"2.2":7===e.major?"2.1":6===e.major?"2.0.1":5===e.major?"2.0":4===e.major?"1.6":3===e.major?"1.5":2===e.major?"1.1":1===e.major?"1.0":t}function O(e,t){return"function"==typeof t?t(e):"string"==typeof t?t:void 0===e?"":e}function P(e){var t=e.split(".");return{major:parseInt(t[0]||"0"),minor:parseInt(t[1]||"0"),build:parseInt(t[2]||"0")}}function D(){if(g.crossPlatformFramework=s.Cordova,void 0!==globalThis.device)switch(globalThis.device.platform){case"Android":g.os={name:o.Android,version:globalThis.device.version};break;case"iOS":g.os={name:o.iOS,version:globalThis.device.version}}k()}function M(e){return null!==e&&"object"==typeof e}function A(){return function(){if(void 0!==globalThis.isSecureContext)return globalThis.isSecureContext;var e=location.protocol,t=location.hostname;return"https:"===e||"localhost"===t||"127.0.0.1"===t||"[::1]"===t}()&&"undefined"!=typeof navigator&&"clipboard"in navigator}function N(t){return function(t){if(!globalThis.getSelection||!globalThis.document.createRange)return!1;var r=e("div");if(void 0===r)return!1;r.contentEditable="true",r.innerHTML=t,r.style.whiteSpace="pre",r.style.userSelect="text",r.style.setProperty("-webkit-user-select","text"),r.style.setProperty("-moz-user-select","text"),r.style.setProperty("-ms-user-select","text"),globalThis.document.body.appendChild(r);var n=globalThis.getSelection(),o=globalThis.document.createRange(),i=function(e){try{null!==e.clipboardData&&"function"==typeof e.clipboardData.setData&&(e.preventDefault(),e.clipboardData.setData("text/html",t),e.clipboardData.setData("text/plain",t))}catch(e){}};m.add(globalThis.document,{type:"copy",callback:i,options:{once:!0,capture:!0}});try{if(null===n)return H(r,n,i),!1;n.removeAllRanges(),o.selectNodeContents(r),n.addRange(o);var a=globalThis.document.execCommand("copy");return H(r,n,i),a}catch(e){return H(r,n,i),!1}}(t)||function(e){var t=window.clipboardData;if(void 0!==t&&"function"==typeof t.setData)try{return t.setData("Text",e)}catch(e){return!1}return!1}(t)}function L(){return function(){var t=e("div");if(void 0===t)return null;t.contentEditable="true",globalThis.document.body.appendChild(t),t.focus();var r=null,n=function(e){try{null!==e.clipboardData&&"function"==typeof e.clipboardData.getData&&(e.preventDefault(),r=e.clipboardData.getData("text/html")||e.clipboardData.getData("text/plain")||null)}catch(e){}};m.add(globalThis.document,{type:"paste",callback:n,options:{once:!0,capture:!0}});try{return globalThis.document.execCommand("paste")||r||(r=t.innerHTML||t.textContent||null),I(t,n),r}catch(e){return I(t,n),null}}()||function(){var e=window.clipboardData;if(void 0!==e&&"function"==typeof e.getData)try{return e.getData("Text")||null}catch(e){return null}return null}()||""}function H(e,t,r){null!==t&&t.removeAllRanges(),globalThis.document.body.removeChild(e),m.remove(globalThis.document,{type:"copy",callback:r})}function I(e,t){globalThis.document.body.removeChild(e),m.remove(globalThis.document,{type:"paste",callback:t})}!function(){(void 0!==globalThis.process&&void 0!==globalThis.process.versions&&void 0!==globalThis.process.versions.electron||/ electron\//i.test(f))&&(g.crossPlatformFramework=s.Electron),void 0!==globalThis.navigator&&"ReactNative"===globalThis.navigator.product&&(g.crossPlatformFramework=s.ReactNative);for(var e=0;e<b.length;e++){var t=(c=b[e])[0],r=c[1],n=c[2];if(null!==(u=g.userAgent.match(t))){g.os={name:r,version:O(u[1],n)};break}}for(g.os.name===o.iOS&&0===function(e,t){for(var r=e.split("."),n=t.split("."),o=Math.max(r.length,n.length),i=0;i<o;i++){var a=void 0,l=void 0;if((a=i<r.length?parseInt(r[i],10):0)>(l=i<n.length?parseInt(n[i],10):0))return 1;if(a<l)return-1}return 0}(g.os.version,"18.6")&&null!==(m=/\) Version\/([\d.]+)/.exec(g.userAgent))&&parseInt(m[1].substring(0,2),10)>=26&&(g.os.version=m[1]),e=0;e<w.length;e++){t=(c=w[e])[0];var a=c[1];n=c[2];if(null!==(u=g.userAgent.match(t))){g.engine={name:a,version:O(u[1],n)};break}}for(e=0;e<y.length;e++){t=(c=y[e])[0];var c,u,d=c[1];n=c[2];if(null!==(u=g.userAgent.match(t))){g.browser={name:d,version:O(u[1],n)};break}}if(g.crossPlatformFramework===s.ReactNative)try{r=(v=require("react-native").Platform).OS;var m=P(h=""+v.Version);switch(r){case"android":g.os={name:o.Android,version:C(m,h)};break;case"ios":g.os={name:o.iOS,version:h};break;case"windows":g.os={name:o.Windows,version:S(m,h)};break;case"macos":g.os={name:o.MacOS,version:h}}}catch(e){}if(g.isNode)try{var h,v=(r=require("os")).platform();m=P(h=r.release());switch(v){case"win32":g.os={name:o.Windows,version:S(m,h)};break;case"darwin":g.os={name:o.MacOS,version:W(m,h)};break;case"android":g.os={name:o.Android,version:h};break;case"linux":/android/i.test(h)&&(g.os={name:o.Android,version:h})}}catch(e){}void 0!==globalThis.document&&(void 0!==globalThis.device?D():globalThis.document.addEventListener("deviceready",D,!1)),void 0!==globalThis.navigator&&void 0!==globalThis.navigator.userAgentData&&void 0!==globalThis.navigator.userAgentData.getHighEntropyValues&&(p++,globalThis.navigator.userAgentData.getHighEntropyValues(["brands","fullVersionList","mobile","model","platform","platformVersion","architecture","formFactors","bitness","uaFullVersion","wow64"]).then((function(e){try{for(var t=e.fullVersionList||e.brands||[],r=e.platformVersion,n=e.platform,a=g.browser.name,s=null,c=0;c<t.length;c++){var u=null==(f=t[c])?{brand:"",version:""}:"string"==typeof f?{brand:f,version:""}:{brand:f.brand,version:f.version},d=u.version,m=u.brand;/not.a.brand/i.test(m)||((null===s||/Chrom/.test(s)&&"Chromium"!==m||"Edge"===s&&/WebView2/.test(m))&&(m=T[m]||m,null!==(s=a)&&!/Chrom/.test(s)&&/Chrom/.test(m)||("Chrome"===(a=m)||"Chrome WebView"===a||"Chrome Headless"===a?g.browser.name=l.Chrome:"Edge"===a||"Edge WebView2"===a?g.browser.name=l.Edge:"Opera Mobi"===a&&(g.browser.name=l.Opera),g.browser.version=d),s=m),"Chromium"===m&&(g.engine.version=d))}"string"==typeof r&&(g.os.name===o.Windows?g.os.version=parseInt(r.split(".")[0],10)>=13?"11":"10":g.os.version=r),"string"==typeof n&&(/android/i.test(n)?g.os.name=o.Android:/ios|iphone|ipad/i.test(n)?g.os.name=o.iOS:/windows|win32/i.test(n)?g.os.name=o.Windows:/macos|macintel/i.test(n)&&(g.os.name=o.MacOS)),!0===e.mobile&&(g.device=i.Mobile)}catch(e){}finally{k()}var f})).catch(k)),x()}();var F={installed:!1,name:"Clipboard",module:{copy:function(e){var t=function(e){if(function(e){return M(e)&&void 0!==e.innerText}(e))return e.innerHTML;if(function(e){return M(e)||function(e){return Array.isArray(e)}(e)}(e))try{return JSON.stringify(e)}catch(t){return""+e}else if("string"!=typeof e)return""+e;return e}(e);if(g.crossPlatformFramework===s.Electron)return function(e){try{var t=require("electron");return new Promise((function(r){try{t.clipboard.writeText(e),t.clipboard.writeHTML(e),r(!0)}catch(e){r(!1)}}))}catch(e){return Promise.resolve(!1)}}(t);if(A()&&("write"in navigator.clipboard||"writeText"in navigator.clipboard))return function(e){try{if("ClipboardItem"in window&&"write"in navigator.clipboard)return navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]).then((function(){return!0})).catch((function(){return!1}));if("writeText"in navigator.clipboard)return navigator.clipboard.writeText(e).then((function(){return!0})).catch((function(){return!1}))}catch(e){return Promise.resolve(!1)}return Promise.resolve(!1)}(t).then((function(e){return!!e||N(t)})).catch((function(){return N(t)}));return Promise.resolve(N(t))},paste:function(){if(g.crossPlatformFramework===s.Electron)return function(){try{var e=require("electron");return new Promise((function(t){try{var r=e.clipboard.readHTML();return t(r?r.replace(/<meta[^>]*\bcharset\b[^>]*>/i,""):e.clipboard.readText()||"")}catch(e){t("")}}))}catch(e){return Promise.resolve("")}}();if(A()&&("read"in navigator.clipboard||"readText"in navigator.clipboard))return function(){try{if("ClipboardItem"in window&&"read"in navigator.clipboard)return navigator.clipboard.read().then((function(e){if(0===e.length)return Promise.resolve(null);for(var t=e[0],r=t.types,n=0;n<r.length;n++)if("text/html"===r[n])return t.getType("text/html").then((function(e){return e.text()})).catch((function(){return null}));for(n=0;n<r.length;n++)if("text/plain"===r[n])return t.getType("text/plain").then((function(e){return e.text()})).catch((function(){return null}));return Promise.resolve(null)})).catch((function(){return null}));if("readText"in navigator.clipboard)return navigator.clipboard.readText().then((function(e){return e})).catch((function(){return null}))}catch(e){return Promise.resolve(null)}return Promise.resolve(null)}().then((function(e){return null!==e?e:L()})).catch((function(){return L()}));return Promise.resolve(L())}},Constants:{},Errors:{}};module.exports=F;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e,r){if(void 0===r&&(r=!0),void 0!==globalThis.document){var n=globalThis.document.createElement(e);return"width"in n&&(n.width="0"),"height"in n&&(n.height="0"),"border"in n&&(n.border="0"),"frameBorder"in n&&(n.frameBorder="0"),"scrolling"in n&&(n.scrolling="no"),"cellPadding"in n&&(n.cellPadding="0"),"cellSpacing"in n&&(n.cellSpacing="0"),"frame"in n&&(n.frame="void"),"rules"in n&&(n.rules="none"),"noWrap"in n&&(n.noWrap=!0),n.tabIndex=-1,n.setAttribute("role","presentation"),r?(n.style.width="1px",n.style.height="1px"):(n.setAttribute("aria-hidden","true"),n.style.width="0",n.style.height="0",n.style.zIndex="-9999",n.style.display="none",n.style.visibility="hidden",n.style.pointerEvents="none"),n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.padding="0",n.style.margin="0",n.style.border="none",n.style.outline="none",n.style.clip="rect(1px, 1px, 1px, 1px)",n.style.clipPath="inset(50%)",n.style.overflow="hidden",n.style.whiteSpace="nowrap",n}}function r(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];for(var t="",o=0;o<r.length-2;o++){var i=r[o];void 0!==i&&(t=t+i.charAt(0).toUpperCase()+i.slice(1))}return t}function n(){this.returnValue=!1}function t(){this.cancelBubble=!0}var o,i,a,l,s,c=/(animation)(start|iteration|end|cancel)|(transition)(start|run|end|cancel)|(fullscreen)(change|error)|(lost|got)(pointer)(capture)|(pointer)(lock)(change|error)|(pointer)(cancel|down|enter|leave|move|out|over|up)/i,u=["","webkit","moz","ms","MS","o","O"],d={wheel:["wheel","mousewheel","DOMMouseScroll"],focus:["focus","focusin"],blur:["blur","focusout"],beforeinput:["beforeinput","textInput"]},m={useStd:void 0!==globalThis.document&&"function"==typeof globalThis.document.addEventListener,add:function(e,r){void 0===r&&(r={callback:null,options:!1});var o=r.callback;if(void 0!==e&&null!==o){var i=m.withVender(e,r.type),a=r.options;if("function"==typeof e.addEventListener)try{return e.addEventListener(i,o,a)}catch(e){}if("function"==typeof e.addListener)if("boolean"==typeof e.matches)try{return e.addListener(o)}catch(e){}else try{return e.addListener(i,o)}catch(e){}return"function"==typeof e.attachEvent?o.__ieWrapper?e.attachEvent("on"+i,o.__ieWrapper):e.attachEvent("on"+i,o.__ieWrapper=function(r){void 0===r&&(r=globalThis.event),void 0!==r&&(r.currentTarget=e,"function"!=typeof r.preventDefault&&(r.preventDefault=n),"function"!=typeof r.stopPropagation&&(r.stopPropagation=t),"function"==typeof o?o.call(e,r):o&&"function"==typeof o.handleEvent&&o.handleEvent.call(e,r))}):void 0}},remove:function(e,r){void 0===r&&(r={callback:null,options:!1});var n=r.callback;if(void 0!==e&&null!==n){var t=m.withVender(e,r.type),o=r.options;if("function"==typeof e.removeEventListener)try{return e.removeEventListener(t,n,o)}catch(e){}if("function"==typeof e.removeListener)if("boolean"==typeof e.matches)try{return e.removeListener(n)}catch(e){}else try{return e.removeListener(t,n)}catch(e){}if("function"!=typeof e.detachEvent);else{var i=n.__ieWrapper;void 0!==i&&(e.detachEvent("on"+t,i),delete n.__ieWrapper)}}},withVender:function(e,n){if(void 0===n)return"";if(e===globalThis.document&&["deviceready","pause","resume","backbutton","menubutton","searchbutton","startcallbutton","endcallbutton","volumedownbutton","volumeupbutton","activated","cordovacallbackerror"].indexOf(n)>-1)return n;if(void 0!==e.webkitEnterFullscreen&&["webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"].indexOf(n)>-1)return n;var t;t=n in d?d[n]:c.test(n)?[n,n.replace(c,r)]:[n];for(var o=0;o<u.length;o++)for(var i=0;i<t.length;i++){var a=u[o]+t[i];if(void 0!==e["on"+a])return a}return""}};!function(e){e.Unknown="Unknown",e.Android="Android",e.iOS="iOS",e.Windows="Windows",e.MacOS="MacOS"}(o||(o={})),function(e){e.Unknown="Unknown",e.Mobile="Mobile",e.Desktop="Desktop"}(i||(i={})),function(e){e.Unknown="Unknown",e.EdgeHTML="EdgeHTML",e.ArkWeb="ArkWeb",e.Blink="Blink",e.Presto="Presto",e.WebKit="WebKit",e.Trident="Trident",e.NetFront="NetFront",e.KHTML="KHTML",e.Tasman="Tasman",e.Gecko="Gecko"}(a||(a={})),function(e){e.Unknown="Unknown",e.Chrome="Chrome",e.Safari="Safari",e.Edge="Edge",e.Firefox="Firefox",e.Opera="Opera",e.IE="IE",e.SamsungInternet="SamsungInternet"}(l||(l={})),function(e){e.Unknown="Unknown",e.ReactNative="ReactNative",e.Electron="Electron",e.Cordova="Cordova"}(s||(s={}));var f=void 0!==globalThis.navigator&&"string"==typeof globalThis.navigator.userAgent?globalThis.navigator.userAgent:"",v={os:{name:o.Unknown,version:""},engine:{name:a.Unknown,version:""},browser:{name:l.Unknown,version:""},crossPlatformFramework:s.Unknown,userAgent:f,get network(){return function(){var e={isOnline:null,effectiveType:null,type:null,downlink:null,rtt:null,saveData:null};if(void 0!==globalThis.navigator){void 0!==globalThis.navigator.onLine&&(e.isOnline=globalThis.navigator.onLine);var r=globalThis.navigator.connection||globalThis.navigator.mozConnection||globalThis.navigator.webkitConnection;void 0!==r&&(void 0!==r.effectiveType&&(e.effectiveType=r.effectiveType),void 0!==r.type&&(e.type=r.type),void 0!==r.downlink&&(e.downlink=r.downlink),void 0!==r.rtt&&(e.rtt=r.rtt),void 0!==r.saveData&&(e.saveData=r.saveData))}if(v.isNode){try{for(var n=require("os").networkInterfaces(),t=Object.keys(n),i=0;i<t.length;i++){for(var a=n[t[i]],l=0;l<a.length;l++){var s=a[l];s.internal||"IPv4"!==s.family||(e.isOnline=!0)}if(e.isOnline)break}}catch(e){}try{var c=require("child_process");if(v.os.name===o.Windows){try{(u=c.execSync("netsh wlan show interfaces",{encoding:"utf8",timeout:5e3})).includes("State")&&u.includes("connected")&&(e.type="wifi")}catch(e){}if(null===e.type)try{(u=c.execSync("ipconfig",{encoding:"utf8",timeout:5e3})).includes("Ethernet adapter")&&(e.type="ethernet")}catch(e){}null===e.type&&(e.type="other")}else if(v.os.name===o.MacOS)try{var u=c.execSync("networksetup -listallhardwareports",{encoding:"utf8",timeout:5e3}),d=c.execSync("route -n get default | grep interface",{encoding:"utf8",timeout:5e3});d.includes("en0")&&u.includes("Wi-Fi")?e.type="wifi":d.includes("en")||u.includes("Ethernet")?e.type="ethernet":e.type="other"}catch(r){e.type="other"}}catch(e){}}return e}()},get device(){return this.os.name===o.iOS||this.os.name===o.Android?i.Mobile:this.os.name===o.Windows||this.os.name===o.MacOS?i.Desktop:i.Unknown},get renderer(){return function(){if(void 0===globalThis.document)return"";var e=globalThis.document.createElement("canvas");if("function"!=typeof e.getContext)return"";var r=e.getContext("webgl2")||e.getContext("experimental-webgl")||e.getContext("webgl");if(null===r)return"";if(r instanceof WebGLRenderingContext||"getParameter"in r&&"function"==typeof r.getParameter){var n=r.getExtension("WEBGL_debug_renderer_info");return null===n?r.getParameter(r.RENDERER):r.getParameter(n.UNMASKED_RENDERER_WEBGL)}return""}()},get isMobile(){return this.device===i.Mobile},get isDesktop(){return this.device===i.Desktop},get isWebview(){return/; ?wv|applewebkit(?!.*safari)/i.test(this.userAgent)},get isNode(){return void 0!==globalThis.process&&void 0!==globalThis.process.versions&&void 0!==globalThis.process.versions.node},get isStandalone(){return this.os.name===o.iOS?"standalone"in globalThis.navigator&&!!globalThis.navigator.standalone:"matchMedia"in globalThis&&globalThis.matchMedia("(display-mode: standalone)").matches}},p=[[/windows nt (6\.[23]); arm/i,o.Windows,w],[/windows (?:phone|mobile|iot)(?: os)?[\/ ]?([\d.]*( se)?)/i,o.Windows,w],[/windows[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i,o.Windows,w],[/windows nt ?([\d.)]*)(?!.+xbox)/i,o.Windows,w],[/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d.;]*)/i,o.Windows,w],[/windows ce\/?([\d.]*)/i,o.Windows,w],[/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i,o.iOS,y],[/(?:ios;fbsv|ios(?=.+ip(?:ad|hone))|ip(?:ad|hone)(?: |.+i(?:pad)?)os)[\/ ]([\w.]+)/i,o.iOS,y],[/cfnetwork\/.+darwin/i,o.iOS,y],[/mac os x ?([\w. ]*)/i,o.MacOS,y],[/(?:macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i,o.MacOS,y],[/droid ([\w.]+)\b.+(android[- ]x86)/i,o.Android],[/android\w*[-\/.; ]?([\d.]*)/i,o.Android]],h=[[/windows.+ edge\/([\w.]+)/i,a.EdgeHTML],[/arkweb\/([\w.]+)/i,a.ArkWeb],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i,a.Blink],[/presto\/([\w.]+)/i,a.Presto],[/webkit\/([\w.]+)/i,a.WebKit],[/trident\/([\w.]+)/i,a.Trident],[/netfront\/([\w.]+)/i,a.NetFront],[/khtml[\/ ]\(?([\w.]+)/i,a.KHTML],[/tasman[\/ ]\(?([\w.]+)/i,a.Tasman],[/rv:([\w.]{1,9})\b.+gecko/i,a.Gecko]],b=[[/\b(?:crmo|crios)\/([\w.]+)/i,l.Chrome],[/webview.+edge\/([\w.]+)/i,l.Edge],[/edg(?:e|ios|a)?\/([\w.]+)/i,l.Edge],[/opera mini\/([-\w.]+)/i,l.Opera],[/opera [mobileta]{3,6}\b.+version\/([-\w.]+)/i,l.Opera],[/opera(?:.+version\/|[\/ ]+)([\w.]+)/i,l.Opera],[/opios[\/ ]+([\w.]+)/i,l.Opera],[/\bop(?:rg)?x\/([\w.]+)/i,l.Opera],[/\bopr\/([\w.]+)/i,l.Opera],[/iemobile(?:browser|boat|jet)[\/ ]?([\d.]*)/i,l.IE],[/(?:ms|\()ie ([\w.]+)/i,l.IE],[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i,l.IE],[/\bfocus\/([\w.]+)/i,l.Firefox],[/\bopt\/([\w.]+)/i,l.Opera],[/coast\/([\w.]+)/i,l.Opera],[/fxios\/([\w.-]+)/i,l.Firefox],[/samsungbrowser\/([\w.]+)/i,l.SamsungInternet],[/headlesschrome(?:\/([\w.]+)| )/i,l.Chrome],[/wv\).+chrome\/([\w.]+).+edgw\//i,l.Edge],[/ wv\).+(chrome)\/([\w.]+)/i,l.Chrome],[/chrome\/([\w.]+) mobile/i,l.Chrome],[/chrome\/v?([\w.]+)/i,l.Chrome],[/version\/([\w.,]+) .*mobile(?:\/\w+ | ?)safari/i,l.Safari],[/iphone .*mobile(?:\/\w+ | ?)safari/i,l.Safari],[/version\/([\w.,]+) .*safari/i,l.Safari],[/webkit.+?(?:mobile ?safari|safari)(\/[\w.]+)/i,l.Safari,"1"],[/(?:mobile|tablet);.*firefox\/([\w.-]+)/i,l.Firefox],[/mobile vr; rv:([\w.]+)\).+firefox/i,l.Firefox],[/firefox\/([\w.]+)/i,l.Firefox]],g={"Google Chrome":"Chrome","Microsoft Edge":"Edge","Microsoft Edge WebView2":"Edge WebView2","Android WebView":"Chrome WebView",HeadlessChrome:"Chrome Headless",OperaMobile:"Opera Mobi"};function w(e){if(void 0===e)return"";var r={"4.90":"ME","NT3.51":"NT 3.11","NT4.0":"NT 4.0","NT 5.0":"2000","NT 5.1":"XP","NT 5.2":"XP","NT 6.0":"Vista","NT 6.1":"7","NT 6.2":"8","NT 6.3":"8.1","NT 6.4":"10","NT 10.0":"10",ARM:"RT"}[e];return void 0!==r?r:e}function y(e){return void 0===e?"":e.replace(/_/g,".")}function T(e,r){return 10===e.major&&0===e.minor&&e.build>=22e3?"11":10===e.major&&0===e.minor&&e.build<22e3?"10":6===e.major&&3===e.minor?"8.1":6===e.major&&2===e.minor?"8":6===e.major&&1===e.minor?"7":6===e.major&&0===e.minor?"Vista":5===e.major&&1===e.minor||5===e.major&&2===e.minor?"XP":5===e.major&&0===e.minor?"2000":4===e.major&&90===e.minor?"ME":4===e.major&&0===e.minor?"NT 4.0":3===e.major&&51===e.minor?"NT 3.11":r}function k(e,r){return e.major>=24?e.major-9+"."+e.minor+"."+e.build:23===e.major?"14."+e.minor+"."+e.build:22===e.major?"13."+e.minor+"."+e.build:21===e.major?"12."+e.minor+"."+e.build:20===e.major?"11."+e.minor+"."+e.build:19===e.major?"10.15."+e.minor:18===e.major?"10.14."+e.minor:17===e.major?"10.13."+e.minor:16===e.major?"10.12."+e.minor:15===e.major?"10.11."+e.minor:14===e.major?"10.10."+e.minor:13===e.major?"10.9."+e.minor:e.major>=5&&e.major<=12?"10."+(e.major-4)+"."+e.minor:r}function x(e,r){return e.major>=36?"16":35===e.major?"15":34===e.major?"14":33===e.major?"13":32===e.major?"12.1":31===e.major?"12":30===e.major?"11":29===e.major?"10":28===e.major?"9":27===e.major?"8.1":26===e.major?"8.0":25===e.major?"7.1":24===e.major?"7.0":23===e.major?"6.0":22===e.major?"5.1":21===e.major?"5.0":20===e.major||19===e.major?"4.4":18===e.major?"4.3":17===e.major?"4.2":16===e.major?"4.1":15===e.major?"4.0.3":14===e.major?"4.0":13===e.major?"3.2":12===e.major?"3.1":11===e.major?"3.0":10===e.major?"2.3.3":9===e.major?"2.3":8===e.major?"2.2":7===e.major?"2.1":6===e.major?"2.0.1":5===e.major?"2.0":4===e.major?"1.6":3===e.major?"1.5":2===e.major?"1.1":1===e.major?"1.0":r}function j(e,r){return"function"==typeof r?r(e):"string"==typeof r?r:void 0===e?"":e}function E(e){var r=e.split(".");return{major:parseInt(r[0]||"0"),minor:parseInt(r[1]||"0"),build:parseInt(r[2]||"0")}}function S(){if(v.crossPlatformFramework=s.Cordova,void 0!==globalThis.device)switch(globalThis.device.platform){case"Android":v.os={name:o.Android,version:globalThis.device.version};break;case"iOS":v.os={name:o.iOS,version:globalThis.device.version}}}function C(e){return null!==e&&"object"==typeof e}function O(){return function(){if(void 0!==globalThis.isSecureContext)return globalThis.isSecureContext;var e=location.protocol,r=location.hostname;return"https:"===e||"localhost"===r||"127.0.0.1"===r||"[::1]"===r}()&&"undefined"!=typeof navigator&&"clipboard"in navigator}function M(r){return function(r){if(!globalThis.getSelection||!globalThis.document.createRange)return!1;var n=e("div");if(void 0===n)return!1;n.contentEditable="true",n.innerHTML=r,n.style.whiteSpace="pre",n.style.userSelect="text",n.style.setProperty("-webkit-user-select","text"),n.style.setProperty("-moz-user-select","text"),n.style.setProperty("-ms-user-select","text"),globalThis.document.body.appendChild(n);var t=globalThis.getSelection(),o=globalThis.document.createRange(),i=function(e){try{null!==e.clipboardData&&"function"==typeof e.clipboardData.setData&&(e.preventDefault(),e.clipboardData.setData("text/html",r),e.clipboardData.setData("text/plain",r))}catch(e){}};m.add(globalThis.document,{type:"copy",callback:i,options:{once:!0,capture:!0}});try{if(null===t)return P(n,t,i),!1;t.removeAllRanges(),o.selectNodeContents(n),t.addRange(o);var a=globalThis.document.execCommand("copy");return P(n,t,i),a}catch(e){return P(n,t,i),!1}}(r)||function(e){var r=window.clipboardData;if(void 0!==r&&"function"==typeof r.setData)try{return r.setData("Text",e)}catch(e){return!1}return!1}(r)}function D(){return function(){var r=e("div");if(void 0===r)return null;r.contentEditable="true",globalThis.document.body.appendChild(r),r.focus();var n=null,t=function(e){try{null!==e.clipboardData&&"function"==typeof e.clipboardData.getData&&(e.preventDefault(),n=e.clipboardData.getData("text/html")||e.clipboardData.getData("text/plain")||null)}catch(e){}};m.add(globalThis.document,{type:"paste",callback:t,options:{once:!0,capture:!0}});try{return globalThis.document.execCommand("paste")||n||(n=r.innerHTML||r.textContent||null),W(r,t),n}catch(e){return W(r,t),null}}()||function(){var e=window.clipboardData;if(void 0!==e&&"function"==typeof e.getData)try{return e.getData("Text")||null}catch(e){return null}return null}()||""}function P(e,r,n){null!==r&&r.removeAllRanges(),globalThis.document.body.removeChild(e),m.remove(globalThis.document,{type:"copy",callback:n})}function W(e,r){globalThis.document.body.removeChild(e),m.remove(globalThis.document,{type:"paste",callback:r})}!function(){(void 0!==globalThis.process&&void 0!==globalThis.process.versions&&void 0!==globalThis.process.versions.electron||/ electron\//i.test(f))&&(v.crossPlatformFramework=s.Electron),void 0!==globalThis.navigator&&"ReactNative"===globalThis.navigator.product&&(v.crossPlatformFramework=s.ReactNative);for(var e=0;e<p.length;e++){var r=(c=p[e])[0],n=c[1],t=c[2];if(null!==(u=v.userAgent.match(r))){v.os={name:n,version:j(u[1],t)};break}}for(v.os.name===o.iOS&&0===function(e,r){for(var n=e.split("."),t=r.split("."),o=Math.max(n.length,t.length),i=0;i<o;i++){var a=void 0,l=void 0;if((a=i<n.length?parseInt(n[i],10):0)>(l=i<t.length?parseInt(t[i],10):0))return 1;if(a<l)return-1}return 0}(v.os.version,"18.6")&&null!==(m=/\) Version\/([\d.]+)/.exec(v.userAgent))&&parseInt(m[1].substring(0,2),10)>=26&&(v.os.version=m[1]),e=0;e<h.length;e++){r=(c=h[e])[0];var a=c[1];t=c[2];if(null!==(u=v.userAgent.match(r))){v.engine={name:a,version:j(u[1],t)};break}}for(e=0;e<b.length;e++){r=(c=b[e])[0];var c,u,d=c[1];t=c[2];if(null!==(u=v.userAgent.match(r))){v.browser={name:d,version:j(u[1],t)};break}}if(v.crossPlatformFramework===s.ReactNative)try{n=(y=require("react-native").Platform).OS;var m=E(w=""+y.Version);switch(n){case"android":v.os={name:o.Android,version:x(m,w)};break;case"ios":v.os={name:o.iOS,version:w};break;case"windows":v.os={name:o.Windows,version:T(m,w)};break;case"macos":v.os={name:o.MacOS,version:w}}}catch(e){}if(v.isNode)try{var w,y=(n=require("os")).platform();m=E(w=n.release());switch(y){case"win32":v.os={name:o.Windows,version:T(m,w)};break;case"darwin":v.os={name:o.MacOS,version:k(m,w)};break;case"android":v.os={name:o.Android,version:w};break;case"linux":/android/i.test(w)&&(v.os={name:o.Android,version:w})}}catch(e){}void 0!==globalThis.document&&(void 0!==globalThis.device?S():globalThis.document.addEventListener("deviceready",S,!1)),function(e){return void 0!==globalThis.navigator&&void 0!==e.userAgentData&&void 0!==e.userAgentData.getHighEntropyValues}(globalThis.navigator)&&globalThis.navigator.userAgentData.getHighEntropyValues(["brands","fullVersionList","mobile","model","platform","platformVersion","architecture","formFactors","bitness","uaFullVersion","wow64"]).then((function(e){for(var r,n=e.fullVersionList||e.brands||[],t=e.platformVersion,a=e.platform,s=v.browser.name,c=null,u=0;u<n.length;u++){var d=null==(r=n[u])?{brand:"",version:""}:"string"==typeof r?{brand:r,version:""}:{brand:r.brand,version:r.version},m=d.version,f=d.brand;/not.a.brand/i.test(f)||((null===c||/Chrom/.test(c)&&"Chromium"!==f||"Edge"===c&&/WebView2/.test(f))&&(f=g[f]||f,null!==(c=s)&&!/Chrom/.test(c)&&/Chrom/.test(f)||("Chrome"===(s=f)||"Chrome WebView"===s||"Chrome Headless"===s?v.browser.name=l.Chrome:"Edge"===s||"Edge WebView2"===s?v.browser.name=l.Edge:"Opera Mobi"===s&&(v.browser.name=l.Opera),v.browser.version=m),c=f),"Chromium"===f&&(v.engine.version=m))}"string"==typeof t&&(v.os.name===o.Windows?v.os.version=parseInt(t.split(".")[0],10)>=13?"11":"10":v.os.version=t),"string"==typeof a&&(/android/i.test(a)?v.os.name=o.Android:/ios|iphone|ipad/i.test(a)?v.os.name=o.iOS:/windows|win32/i.test(a)?v.os.name=o.Windows:/macos|macintel/i.test(a)&&(v.os.name=o.MacOS)),!0===e.mobile&&(v.device=i.Mobile)}))}();var A={installed:!1,name:"Clipboard",module:{copy:function(e){var r=function(e){if(function(e){return C(e)&&void 0!==e.innerText}(e))return e.innerHTML;if(function(e){return C(e)||function(e){return Array.isArray(e)}(e)}(e))try{return JSON.stringify(e)}catch(r){return""+e}else if("string"!=typeof e)return""+e;return e}(e);if(v.crossPlatformFramework===s.Electron)return function(e){try{var r=require("electron");return new Promise((function(n){try{r.clipboard.writeText(e),r.clipboard.writeHTML(e),n(!0)}catch(e){n(!1)}}))}catch(e){return Promise.resolve(!1)}}(r);if(O()&&("write"in navigator.clipboard||"writeText"in navigator.clipboard))return function(e){try{if("ClipboardItem"in window&&"write"in navigator.clipboard)return navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]).then((function(){return!0})).catch((function(){return!1}));if("writeText"in navigator.clipboard)return navigator.clipboard.writeText(e).then((function(){return!0})).catch((function(){return!1}))}catch(e){return Promise.resolve(!1)}return Promise.resolve(!1)}(r).then((function(e){return!!e||M(r)})).catch((function(){return M(r)}));return Promise.resolve(M(r))},paste:function(){if(v.crossPlatformFramework===s.Electron)return function(){try{var e=require("electron");return new Promise((function(r){try{var n=e.clipboard.readHTML();return r(n?n.replace(/<meta[^>]*\bcharset\b[^>]*>/i,""):e.clipboard.readText()||"")}catch(e){r("")}}))}catch(e){return Promise.resolve("")}}();if(O()&&("read"in navigator.clipboard||"readText"in navigator.clipboard))return function(){try{if("ClipboardItem"in window&&"read"in navigator.clipboard)return navigator.clipboard.read().then((function(e){if(0===e.length)return Promise.resolve(null);for(var r=e[0],n=r.types,t=0;t<n.length;t++)if("text/html"===n[t])return r.getType("text/html").then((function(e){return e.text()})).catch((function(){return null}));for(t=0;t<n.length;t++)if("text/plain"===n[t])return r.getType("text/plain").then((function(e){return e.text()})).catch((function(){return null}));return Promise.resolve(null)})).catch((function(){return null}));if("readText"in navigator.clipboard)return navigator.clipboard.readText().then((function(e){return e})).catch((function(){return null}))}catch(e){return Promise.resolve(null)}return Promise.resolve(null)}().then((function(e){return null!==e?e:D()})).catch((function(){return D()}));return Promise.resolve(D())}},Constants:{},Errors:{}};export{A as default};
|
|
1
|
+
function e(e,t){if(void 0===t&&(t=!0),void 0!==globalThis.document){var r=globalThis.document.createElement(e);return"width"in r&&(r.width="0"),"height"in r&&(r.height="0"),"border"in r&&(r.border="0"),"frameBorder"in r&&(r.frameBorder="0"),"scrolling"in r&&(r.scrolling="no"),"cellPadding"in r&&(r.cellPadding="0"),"cellSpacing"in r&&(r.cellSpacing="0"),"frame"in r&&(r.frame="void"),"rules"in r&&(r.rules="none"),"noWrap"in r&&(r.noWrap=!0),r.tabIndex=-1,r.setAttribute("role","presentation"),t?(r.style.width="1px",r.style.height="1px"):(r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.zIndex="-9999",r.style.display="none",r.style.visibility="hidden",r.style.pointerEvents="none"),r.style.position="absolute",r.style.top="0",r.style.left="0",r.style.padding="0",r.style.margin="0",r.style.border="none",r.style.outline="none",r.style.clip="rect(1px, 1px, 1px, 1px)",r.style.clipPath="inset(50%)",r.style.overflow="hidden",r.style.whiteSpace="nowrap",r}}function t(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n="",o=0;o<t.length-2;o++){var i=t[o];void 0!==i&&(n=n+i.charAt(0).toUpperCase()+i.slice(1))}return n}function r(){this.returnValue=!1}function n(){this.cancelBubble=!0}var o,i,a,l,s,c=/(animation)(start|iteration|end|cancel)|(transition)(start|run|end|cancel)|(fullscreen)(change|error)|(lost|got)(pointer)(capture)|(pointer)(lock)(change|error)|(pointer)(cancel|down|enter|leave|move|out|over|up)/i,d=["","webkit","moz","ms","MS","o","O"],u={wheel:["wheel","mousewheel","DOMMouseScroll"],focus:["focus","focusin"],blur:["blur","focusout"],beforeinput:["beforeinput","textInput"]},m={useStd:void 0!==globalThis.document&&"function"==typeof globalThis.document.addEventListener,add:function(e,t){void 0===t&&(t={callback:null,options:!1});var o=t.callback;if(void 0!==e&&null!==o){var i=m.withVender(e,t.type),a=t.options;if("function"==typeof e.addEventListener)try{return e.addEventListener(i,o,a)}catch(e){}if("function"==typeof e.addListener)if("boolean"==typeof e.matches)try{return e.addListener(o)}catch(e){}else try{return e.addListener(i,o)}catch(e){}return"function"==typeof e.attachEvent?o.__ieWrapper?e.attachEvent("on"+i,o.__ieWrapper):e.attachEvent("on"+i,o.__ieWrapper=function(t){void 0===t&&(t=globalThis.event),void 0!==t&&(t.currentTarget=e,"function"!=typeof t.preventDefault&&(t.preventDefault=r),"function"!=typeof t.stopPropagation&&(t.stopPropagation=n),"function"==typeof o?o.call(e,t):o&&"function"==typeof o.handleEvent&&o.handleEvent.call(e,t))}):void 0}},remove:function(e,t){void 0===t&&(t={callback:null,options:!1});var r=t.callback;if(void 0!==e&&null!==r){var n=m.withVender(e,t.type),o=t.options;if("function"==typeof e.removeEventListener)try{return e.removeEventListener(n,r,o)}catch(e){}if("function"==typeof e.removeListener)if("boolean"==typeof e.matches)try{return e.removeListener(r)}catch(e){}else try{return e.removeListener(n,r)}catch(e){}if("function"!=typeof e.detachEvent);else{var i=r.__ieWrapper;void 0!==i&&(e.detachEvent("on"+n,i),delete r.__ieWrapper)}}},withVender:function(e,r){if(void 0===r)return"";if(e===globalThis.document&&["deviceready","pause","resume","backbutton","menubutton","searchbutton","startcallbutton","endcallbutton","volumedownbutton","volumeupbutton","activated","cordovacallbackerror"].indexOf(r)>-1)return r;if(void 0!==e.webkitEnterFullscreen&&["webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"].indexOf(r)>-1)return r;var n;n=r in u?u[r]:c.test(r)?[r,r.replace(c,t)]:[r];for(var o=0;o<d.length;o++)for(var i=0;i<n.length;i++){var a=d[o]+n[i];if(void 0!==e["on"+a])return a}return""}};!function(e){e.Unknown="Unknown",e.Android="Android",e.iOS="iOS",e.Windows="Windows",e.MacOS="MacOS"}(o||(o={})),function(e){e.Unknown="Unknown",e.Mobile="Mobile",e.Desktop="Desktop"}(i||(i={})),function(e){e.Unknown="Unknown",e.EdgeHTML="EdgeHTML",e.ArkWeb="ArkWeb",e.Blink="Blink",e.Presto="Presto",e.WebKit="WebKit",e.Trident="Trident",e.NetFront="NetFront",e.KHTML="KHTML",e.Tasman="Tasman",e.Gecko="Gecko"}(a||(a={})),function(e){e.Unknown="Unknown",e.Chrome="Chrome",e.Safari="Safari",e.Edge="Edge",e.Firefox="Firefox",e.Opera="Opera",e.IE="IE",e.SamsungInternet="SamsungInternet"}(l||(l={})),function(e){e.Unknown="Unknown",e.ReactNative="ReactNative",e.Electron="Electron",e.Cordova="Cordova"}(s||(s={}));var f=void 0!==globalThis.navigator&&"string"==typeof globalThis.navigator.userAgent?globalThis.navigator.userAgent:"",h="loading",v=[],p=0,g={os:{name:o.Unknown,version:""},engine:{name:a.Unknown,version:""},browser:{name:l.Unknown,version:""},crossPlatformFramework:s.Unknown,userAgent:f,get readyState(){return h},get network(){return function(){var e={isOnline:null,effectiveType:null,type:null,downlink:null,rtt:null,saveData:null};if(void 0!==globalThis.navigator){void 0!==globalThis.navigator.onLine&&(e.isOnline=globalThis.navigator.onLine);var t=globalThis.navigator.connection||globalThis.navigator.mozConnection||globalThis.navigator.webkitConnection;void 0!==t&&(void 0!==t.effectiveType&&(e.effectiveType=t.effectiveType),void 0!==t.type&&(e.type=t.type),void 0!==t.downlink&&(e.downlink=t.downlink),void 0!==t.rtt&&(e.rtt=t.rtt),void 0!==t.saveData&&(e.saveData=t.saveData))}if(g.isNode){try{for(var r=require("os").networkInterfaces(),n=Object.keys(r),i=0;i<n.length;i++){for(var a=r[n[i]],l=0;l<a.length;l++){var s=a[l];s.internal||"IPv4"!==s.family||(e.isOnline=!0)}if(e.isOnline)break}}catch(e){}try{var c=require("child_process");if(g.os.name===o.Windows){try{(d=c.execSync("netsh wlan show interfaces",{encoding:"utf8",timeout:5e3})).includes("State")&&d.includes("connected")&&(e.type="wifi")}catch(e){}if(null===e.type)try{(d=c.execSync("ipconfig",{encoding:"utf8",timeout:5e3})).includes("Ethernet adapter")&&(e.type="ethernet")}catch(e){}null===e.type&&(e.type="other")}else if(g.os.name===o.MacOS)try{var d=c.execSync("networksetup -listallhardwareports",{encoding:"utf8",timeout:5e3}),u=c.execSync("route -n get default | grep interface",{encoding:"utf8",timeout:5e3});u.includes("en0")&&d.includes("Wi-Fi")?e.type="wifi":u.includes("en")||d.includes("Ethernet")?e.type="ethernet":e.type="other"}catch(t){e.type="other"}}catch(e){}}return e}()},get dimension(){return function(){var e={innerWidth:-1,innerHeight:-1,outerWidth:-1,outerHeight:-1,scale:1};if(void 0!==globalThis.innerWidth)return e.innerWidth=globalThis.innerWidth,e.innerHeight=globalThis.innerHeight,e.outerWidth=globalThis.outerWidth,e.outerHeight=globalThis.outerHeight,e.scale=globalThis.devicePixelRatio||1,e;if(g.crossPlatformFramework===s.ReactNative)try{var t=require("react-native"),r=t.Dimensions,n=t.PixelRatio,o=r.get("screen"),i=r.get("window");return e.innerWidth=o.width,e.innerHeight=o.height,e.outerWidth=i.width,e.outerHeight=i.height,e.scale=n.get(),e}catch(e){}return e}()},get device(){return this.os.name===o.iOS||this.os.name===o.Android?i.Mobile:this.os.name===o.Windows||this.os.name===o.MacOS?i.Desktop:i.Unknown},get renderer(){return function(){if(void 0===globalThis.document)return"";var e=globalThis.document.createElement("canvas");if("function"!=typeof e.getContext)return"";var t=e.getContext("webgl2")||e.getContext("experimental-webgl")||e.getContext("webgl");if(null===t)return"";if(t instanceof WebGLRenderingContext||"getParameter"in t&&"function"==typeof t.getParameter){var r=t.getExtension("WEBGL_debug_renderer_info");return null===r?t.getParameter(t.RENDERER):t.getParameter(r.UNMASKED_RENDERER_WEBGL)}return""}()},get isMobile(){return this.device===i.Mobile},get isDesktop(){return this.device===i.Desktop},get isWebview(){return/; ?wv|applewebkit(?!.*safari)/i.test(this.userAgent)},get isNode(){return void 0!==globalThis.process&&void 0!==globalThis.process.versions&&void 0!==globalThis.process.versions.node},get isStandalone(){return this.os.name===o.iOS?"standalone"in globalThis.navigator&&!!globalThis.navigator.standalone:"matchMedia"in globalThis&&globalThis.matchMedia("(display-mode: standalone)").matches},onready:function(e){if("complete"===this.readyState)try{e(this)}catch(e){}else v.push(e)}},b=[[/windows nt (6\.[23]); arm/i,o.Windows,j],[/windows (?:phone|mobile|iot)(?: os)?[\/ ]?([\d.]*( se)?)/i,o.Windows,j],[/windows[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i,o.Windows,j],[/windows nt ?([\d.)]*)(?!.+xbox)/i,o.Windows,j],[/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d.;]*)/i,o.Windows,j],[/windows ce\/?([\d.]*)/i,o.Windows,j],[/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i,o.iOS,E],[/(?:ios;fbsv|ios(?=.+ip(?:ad|hone))|ip(?:ad|hone)(?: |.+i(?:pad)?)os)[\/ ]([\w.]+)/i,o.iOS,E],[/cfnetwork\/.+darwin/i,o.iOS,E],[/mac os x ?([\w. ]*)/i,o.MacOS,E],[/(?:macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i,o.MacOS,E],[/droid ([\w.]+)\b.+(android[- ]x86)/i,o.Android],[/android\w*[-\/.; ]?([\d.]*)/i,o.Android]],w=[[/windows.+ edge\/([\w.]+)/i,a.EdgeHTML],[/arkweb\/([\w.]+)/i,a.ArkWeb],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i,a.Blink],[/presto\/([\w.]+)/i,a.Presto],[/webkit\/([\w.]+)/i,a.WebKit],[/trident\/([\w.]+)/i,a.Trident],[/netfront\/([\w.]+)/i,a.NetFront],[/khtml[\/ ]\(?([\w.]+)/i,a.KHTML],[/tasman[\/ ]\(?([\w.]+)/i,a.Tasman],[/rv:([\w.]{1,9})\b.+gecko/i,a.Gecko]],y=[[/\b(?:crmo|crios)\/([\w.]+)/i,l.Chrome],[/webview.+edge\/([\w.]+)/i,l.Edge],[/edg(?:e|ios|a)?\/([\w.]+)/i,l.Edge],[/opera mini\/([-\w.]+)/i,l.Opera],[/opera [mobileta]{3,6}\b.+version\/([-\w.]+)/i,l.Opera],[/opera(?:.+version\/|[\/ ]+)([\w.]+)/i,l.Opera],[/opios[\/ ]+([\w.]+)/i,l.Opera],[/\bop(?:rg)?x\/([\w.]+)/i,l.Opera],[/\bopr\/([\w.]+)/i,l.Opera],[/iemobile(?:browser|boat|jet)[\/ ]?([\d.]*)/i,l.IE],[/(?:ms|\()ie ([\w.]+)/i,l.IE],[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i,l.IE],[/\bfocus\/([\w.]+)/i,l.Firefox],[/\bopt\/([\w.]+)/i,l.Opera],[/coast\/([\w.]+)/i,l.Opera],[/fxios\/([\w.-]+)/i,l.Firefox],[/samsungbrowser\/([\w.]+)/i,l.SamsungInternet],[/headlesschrome(?:\/([\w.]+)| )/i,l.Chrome],[/wv\).+chrome\/([\w.]+).+edgw\//i,l.Edge],[/ wv\).+(chrome)\/([\w.]+)/i,l.Chrome],[/chrome\/([\w.]+) mobile/i,l.Chrome],[/chrome\/v?([\w.]+)/i,l.Chrome],[/version\/([\w.,]+) .*mobile(?:\/\w+ | ?)safari/i,l.Safari],[/iphone .*mobile(?:\/\w+ | ?)safari/i,l.Safari],[/version\/([\w.,]+) .*safari/i,l.Safari],[/webkit.+?(?:mobile ?safari|safari)(\/[\w.]+)/i,l.Safari,"1"],[/(?:mobile|tablet);.*firefox\/([\w.-]+)/i,l.Firefox],[/mobile vr; rv:([\w.]+)\).+firefox/i,l.Firefox],[/firefox\/([\w.]+)/i,l.Firefox]],T={"Google Chrome":"Chrome","Microsoft Edge":"Edge","Microsoft Edge WebView2":"Edge WebView2","Android WebView":"Chrome WebView",HeadlessChrome:"Chrome Headless",OperaMobile:"Opera Mobi"};function k(){p--,x()}function x(){if(0===p&&"loading"===h){h="complete";for(var e=0;e<v.length;e++)try{v[e](g)}catch(e){}v.length=0}}function j(e){if(void 0===e)return"";var t={"4.90":"ME","NT3.51":"NT 3.11","NT4.0":"NT 4.0","NT 5.0":"2000","NT 5.1":"XP","NT 5.2":"XP","NT 6.0":"Vista","NT 6.1":"7","NT 6.2":"8","NT 6.3":"8.1","NT 6.4":"10","NT 10.0":"10",ARM:"RT"}[e];return void 0!==t?t:e}function E(e){return void 0===e?"":e.replace(/_/g,".")}function S(e,t){return 10===e.major&&0===e.minor&&e.build>=22e3?"11":10===e.major&&0===e.minor&&e.build<22e3?"10":6===e.major&&3===e.minor?"8.1":6===e.major&&2===e.minor?"8":6===e.major&&1===e.minor?"7":6===e.major&&0===e.minor?"Vista":5===e.major&&1===e.minor||5===e.major&&2===e.minor?"XP":5===e.major&&0===e.minor?"2000":4===e.major&&90===e.minor?"ME":4===e.major&&0===e.minor?"NT 4.0":3===e.major&&51===e.minor?"NT 3.11":t}function W(e,t){return e.major>=24?e.major-9+"."+e.minor+"."+e.build:23===e.major?"14."+e.minor+"."+e.build:22===e.major?"13."+e.minor+"."+e.build:21===e.major?"12."+e.minor+"."+e.build:20===e.major?"11."+e.minor+"."+e.build:19===e.major?"10.15."+e.minor:18===e.major?"10.14."+e.minor:17===e.major?"10.13."+e.minor:16===e.major?"10.12."+e.minor:15===e.major?"10.11."+e.minor:14===e.major?"10.10."+e.minor:13===e.major?"10.9."+e.minor:e.major>=5&&e.major<=12?"10."+(e.major-4)+"."+e.minor:t}function C(e,t){return e.major>=36?"16":35===e.major?"15":34===e.major?"14":33===e.major?"13":32===e.major?"12.1":31===e.major?"12":30===e.major?"11":29===e.major?"10":28===e.major?"9":27===e.major?"8.1":26===e.major?"8.0":25===e.major?"7.1":24===e.major?"7.0":23===e.major?"6.0":22===e.major?"5.1":21===e.major?"5.0":20===e.major||19===e.major?"4.4":18===e.major?"4.3":17===e.major?"4.2":16===e.major?"4.1":15===e.major?"4.0.3":14===e.major?"4.0":13===e.major?"3.2":12===e.major?"3.1":11===e.major?"3.0":10===e.major?"2.3.3":9===e.major?"2.3":8===e.major?"2.2":7===e.major?"2.1":6===e.major?"2.0.1":5===e.major?"2.0":4===e.major?"1.6":3===e.major?"1.5":2===e.major?"1.1":1===e.major?"1.0":t}function O(e,t){return"function"==typeof t?t(e):"string"==typeof t?t:void 0===e?"":e}function P(e){var t=e.split(".");return{major:parseInt(t[0]||"0"),minor:parseInt(t[1]||"0"),build:parseInt(t[2]||"0")}}function D(){if(g.crossPlatformFramework=s.Cordova,void 0!==globalThis.device)switch(globalThis.device.platform){case"Android":g.os={name:o.Android,version:globalThis.device.version};break;case"iOS":g.os={name:o.iOS,version:globalThis.device.version}}k()}function M(e){return null!==e&&"object"==typeof e}function A(){return function(){if(void 0!==globalThis.isSecureContext)return globalThis.isSecureContext;var e=location.protocol,t=location.hostname;return"https:"===e||"localhost"===t||"127.0.0.1"===t||"[::1]"===t}()&&"undefined"!=typeof navigator&&"clipboard"in navigator}function N(t){return function(t){if(!globalThis.getSelection||!globalThis.document.createRange)return!1;var r=e("div");if(void 0===r)return!1;r.contentEditable="true",r.innerHTML=t,r.style.whiteSpace="pre",r.style.userSelect="text",r.style.setProperty("-webkit-user-select","text"),r.style.setProperty("-moz-user-select","text"),r.style.setProperty("-ms-user-select","text"),globalThis.document.body.appendChild(r);var n=globalThis.getSelection(),o=globalThis.document.createRange(),i=function(e){try{null!==e.clipboardData&&"function"==typeof e.clipboardData.setData&&(e.preventDefault(),e.clipboardData.setData("text/html",t),e.clipboardData.setData("text/plain",t))}catch(e){}};m.add(globalThis.document,{type:"copy",callback:i,options:{once:!0,capture:!0}});try{if(null===n)return H(r,n,i),!1;n.removeAllRanges(),o.selectNodeContents(r),n.addRange(o);var a=globalThis.document.execCommand("copy");return H(r,n,i),a}catch(e){return H(r,n,i),!1}}(t)||function(e){var t=window.clipboardData;if(void 0!==t&&"function"==typeof t.setData)try{return t.setData("Text",e)}catch(e){return!1}return!1}(t)}function L(){return function(){var t=e("div");if(void 0===t)return null;t.contentEditable="true",globalThis.document.body.appendChild(t),t.focus();var r=null,n=function(e){try{null!==e.clipboardData&&"function"==typeof e.clipboardData.getData&&(e.preventDefault(),r=e.clipboardData.getData("text/html")||e.clipboardData.getData("text/plain")||null)}catch(e){}};m.add(globalThis.document,{type:"paste",callback:n,options:{once:!0,capture:!0}});try{return globalThis.document.execCommand("paste")||r||(r=t.innerHTML||t.textContent||null),I(t,n),r}catch(e){return I(t,n),null}}()||function(){var e=window.clipboardData;if(void 0!==e&&"function"==typeof e.getData)try{return e.getData("Text")||null}catch(e){return null}return null}()||""}function H(e,t,r){null!==t&&t.removeAllRanges(),globalThis.document.body.removeChild(e),m.remove(globalThis.document,{type:"copy",callback:r})}function I(e,t){globalThis.document.body.removeChild(e),m.remove(globalThis.document,{type:"paste",callback:t})}!function(){(void 0!==globalThis.process&&void 0!==globalThis.process.versions&&void 0!==globalThis.process.versions.electron||/ electron\//i.test(f))&&(g.crossPlatformFramework=s.Electron),void 0!==globalThis.navigator&&"ReactNative"===globalThis.navigator.product&&(g.crossPlatformFramework=s.ReactNative);for(var e=0;e<b.length;e++){var t=(c=b[e])[0],r=c[1],n=c[2];if(null!==(d=g.userAgent.match(t))){g.os={name:r,version:O(d[1],n)};break}}for(g.os.name===o.iOS&&0===function(e,t){for(var r=e.split("."),n=t.split("."),o=Math.max(r.length,n.length),i=0;i<o;i++){var a=void 0,l=void 0;if((a=i<r.length?parseInt(r[i],10):0)>(l=i<n.length?parseInt(n[i],10):0))return 1;if(a<l)return-1}return 0}(g.os.version,"18.6")&&null!==(m=/\) Version\/([\d.]+)/.exec(g.userAgent))&&parseInt(m[1].substring(0,2),10)>=26&&(g.os.version=m[1]),e=0;e<w.length;e++){t=(c=w[e])[0];var a=c[1];n=c[2];if(null!==(d=g.userAgent.match(t))){g.engine={name:a,version:O(d[1],n)};break}}for(e=0;e<y.length;e++){t=(c=y[e])[0];var c,d,u=c[1];n=c[2];if(null!==(d=g.userAgent.match(t))){g.browser={name:u,version:O(d[1],n)};break}}if(g.crossPlatformFramework===s.ReactNative)try{r=(v=require("react-native").Platform).OS;var m=P(h=""+v.Version);switch(r){case"android":g.os={name:o.Android,version:C(m,h)};break;case"ios":g.os={name:o.iOS,version:h};break;case"windows":g.os={name:o.Windows,version:S(m,h)};break;case"macos":g.os={name:o.MacOS,version:h}}}catch(e){}if(g.isNode)try{var h,v=(r=require("os")).platform();m=P(h=r.release());switch(v){case"win32":g.os={name:o.Windows,version:S(m,h)};break;case"darwin":g.os={name:o.MacOS,version:W(m,h)};break;case"android":g.os={name:o.Android,version:h};break;case"linux":/android/i.test(h)&&(g.os={name:o.Android,version:h})}}catch(e){}void 0!==globalThis.document&&(void 0!==globalThis.device?D():globalThis.document.addEventListener("deviceready",D,!1)),void 0!==globalThis.navigator&&void 0!==globalThis.navigator.userAgentData&&void 0!==globalThis.navigator.userAgentData.getHighEntropyValues&&(p++,globalThis.navigator.userAgentData.getHighEntropyValues(["brands","fullVersionList","mobile","model","platform","platformVersion","architecture","formFactors","bitness","uaFullVersion","wow64"]).then((function(e){try{for(var t=e.fullVersionList||e.brands||[],r=e.platformVersion,n=e.platform,a=g.browser.name,s=null,c=0;c<t.length;c++){var d=null==(f=t[c])?{brand:"",version:""}:"string"==typeof f?{brand:f,version:""}:{brand:f.brand,version:f.version},u=d.version,m=d.brand;/not.a.brand/i.test(m)||((null===s||/Chrom/.test(s)&&"Chromium"!==m||"Edge"===s&&/WebView2/.test(m))&&(m=T[m]||m,null!==(s=a)&&!/Chrom/.test(s)&&/Chrom/.test(m)||("Chrome"===(a=m)||"Chrome WebView"===a||"Chrome Headless"===a?g.browser.name=l.Chrome:"Edge"===a||"Edge WebView2"===a?g.browser.name=l.Edge:"Opera Mobi"===a&&(g.browser.name=l.Opera),g.browser.version=u),s=m),"Chromium"===m&&(g.engine.version=u))}"string"==typeof r&&(g.os.name===o.Windows?g.os.version=parseInt(r.split(".")[0],10)>=13?"11":"10":g.os.version=r),"string"==typeof n&&(/android/i.test(n)?g.os.name=o.Android:/ios|iphone|ipad/i.test(n)?g.os.name=o.iOS:/windows|win32/i.test(n)?g.os.name=o.Windows:/macos|macintel/i.test(n)&&(g.os.name=o.MacOS)),!0===e.mobile&&(g.device=i.Mobile)}catch(e){}finally{k()}var f})).catch(k)),x()}();var F={installed:!1,name:"Clipboard",module:{copy:function(e){var t=function(e){if(function(e){return M(e)&&void 0!==e.innerText}(e))return e.innerHTML;if(function(e){return M(e)||function(e){return Array.isArray(e)}(e)}(e))try{return JSON.stringify(e)}catch(t){return""+e}else if("string"!=typeof e)return""+e;return e}(e);if(g.crossPlatformFramework===s.Electron)return function(e){try{var t=require("electron");return new Promise((function(r){try{t.clipboard.writeText(e),t.clipboard.writeHTML(e),r(!0)}catch(e){r(!1)}}))}catch(e){return Promise.resolve(!1)}}(t);if(A()&&("write"in navigator.clipboard||"writeText"in navigator.clipboard))return function(e){try{if("ClipboardItem"in window&&"write"in navigator.clipboard)return navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]).then((function(){return!0})).catch((function(){return!1}));if("writeText"in navigator.clipboard)return navigator.clipboard.writeText(e).then((function(){return!0})).catch((function(){return!1}))}catch(e){return Promise.resolve(!1)}return Promise.resolve(!1)}(t).then((function(e){return!!e||N(t)})).catch((function(){return N(t)}));return Promise.resolve(N(t))},paste:function(){if(g.crossPlatformFramework===s.Electron)return function(){try{var e=require("electron");return new Promise((function(t){try{var r=e.clipboard.readHTML();return t(r?r.replace(/<meta[^>]*\bcharset\b[^>]*>/i,""):e.clipboard.readText()||"")}catch(e){t("")}}))}catch(e){return Promise.resolve("")}}();if(A()&&("read"in navigator.clipboard||"readText"in navigator.clipboard))return function(){try{if("ClipboardItem"in window&&"read"in navigator.clipboard)return navigator.clipboard.read().then((function(e){if(0===e.length)return Promise.resolve(null);for(var t=e[0],r=t.types,n=0;n<r.length;n++)if("text/html"===r[n])return t.getType("text/html").then((function(e){return e.text()})).catch((function(){return null}));for(n=0;n<r.length;n++)if("text/plain"===r[n])return t.getType("text/plain").then((function(e){return e.text()})).catch((function(){return null}));return Promise.resolve(null)})).catch((function(){return null}));if("readText"in navigator.clipboard)return navigator.clipboard.readText().then((function(e){return e})).catch((function(){return null}))}catch(e){return Promise.resolve(null)}return Promise.resolve(null)}().then((function(e){return null!==e?e:L()})).catch((function(){return L()}));return Promise.resolve(L())}},Constants:{},Errors:{}};export{F as default};
|