native-fn 1.0.71 → 1.0.73
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 +2 -507
- package/dist/native.min.cjs +1 -1
- package/dist/native.min.mjs +1 -1
- package/dist/native.mjs +2 -507
- package/dist/native.umd.js +2 -507
- package/dist/native.umd.min.js +1 -1
- package/dist/plugin/app/index.cjs +435 -423
- package/dist/plugin/app/index.d.ts +8 -33
- package/dist/plugin/app/index.min.cjs +1 -1
- package/dist/plugin/app/index.min.mjs +1 -1
- package/dist/plugin/app/index.mjs +435 -423
- package/dist/plugin/app/index.umd.js +435 -423
- package/dist/plugin/app/index.umd.min.js +1 -1
- package/dist/plugin/app/src/plugin/app/cores/index.d.ts +0 -4
- package/dist/plugin/app/src/plugin/app/types/app.d.ts +1 -1
- package/dist/plugin/app/src/plugin/camera/cores/index.d.ts +2 -2
- package/dist/plugin/app/src/plugin/clipboard/cores/index.d.ts +2 -2
- package/dist/plugin/app/src/plugin/fullscreen/cores/index.d.ts +2 -2
- package/dist/plugin/app/src/plugin/fullscreen/types/fullscreen.d.ts +3 -10
- package/dist/plugin/app/src/plugin/platform/constants/index.d.ts +42 -0
- package/dist/plugin/app/src/plugin/platform/cores/index.d.ts +28 -0
- package/dist/plugin/app/src/plugin/platform/index.d.ts +3 -2
- package/dist/plugin/app/src/plugin/platform/types/index.d.ts +4 -0
- package/dist/plugin/app/src/plugin/platform/types/platform.d.ts +5 -2
- package/dist/plugin/app/src/plugin/theme/constants/index.d.ts +0 -12
- package/dist/plugin/app/src/plugin/theme/cores/index.d.ts +2 -2
- package/dist/plugin/app/src/plugin/theme/index.d.ts +1 -13
- package/dist/plugin/app/src/plugin/theme/types/index.d.ts +0 -12
- package/dist/plugin/app/src/plugin/theme/types/theme.d.ts +2 -22
- package/dist/plugin/appearance/index.cjs +30 -16
- package/dist/plugin/appearance/index.min.cjs +1 -1
- package/dist/plugin/appearance/index.min.mjs +1 -1
- package/dist/plugin/appearance/index.mjs +30 -16
- package/dist/plugin/appearance/index.umd.js +30 -16
- package/dist/plugin/appearance/index.umd.min.js +1 -1
- package/dist/plugin/appearance/src/plugin/app/cores/index.d.ts +0 -4
- package/dist/plugin/appearance/src/plugin/app/types/app.d.ts +1 -1
- package/dist/plugin/appearance/src/plugin/camera/cores/index.d.ts +2 -2
- package/dist/plugin/appearance/src/plugin/clipboard/cores/index.d.ts +2 -2
- package/dist/plugin/appearance/src/plugin/fullscreen/cores/index.d.ts +2 -2
- package/dist/plugin/appearance/src/plugin/fullscreen/types/fullscreen.d.ts +3 -10
- package/dist/plugin/appearance/src/plugin/platform/constants/index.d.ts +42 -0
- package/dist/plugin/appearance/src/plugin/platform/cores/index.d.ts +28 -0
- package/dist/plugin/appearance/src/plugin/platform/index.d.ts +12 -0
- package/dist/plugin/appearance/src/plugin/platform/types/index.d.ts +11 -0
- package/dist/plugin/appearance/src/plugin/platform/types/platform.d.ts +18 -0
- package/dist/plugin/appearance/src/plugin/theme/constants/index.d.ts +0 -12
- package/dist/plugin/appearance/src/plugin/theme/cores/index.d.ts +2 -2
- package/dist/plugin/appearance/src/plugin/theme/index.d.ts +1 -13
- package/dist/plugin/appearance/src/plugin/theme/types/index.d.ts +0 -12
- package/dist/plugin/appearance/src/plugin/theme/types/theme.d.ts +2 -22
- package/dist/plugin/camera/index.cjs +118 -109
- package/dist/plugin/camera/index.min.cjs +1 -1
- package/dist/plugin/camera/index.min.mjs +1 -1
- package/dist/plugin/camera/index.mjs +118 -109
- package/dist/plugin/camera/index.umd.js +118 -109
- package/dist/plugin/camera/index.umd.min.js +1 -1
- package/dist/plugin/camera/src/plugin/app/cores/index.d.ts +0 -4
- package/dist/plugin/camera/src/plugin/app/types/app.d.ts +1 -1
- package/dist/plugin/camera/src/plugin/camera/cores/index.d.ts +2 -2
- package/dist/plugin/camera/src/plugin/clipboard/cores/index.d.ts +2 -2
- package/dist/plugin/camera/src/plugin/fullscreen/cores/index.d.ts +2 -2
- package/dist/plugin/camera/src/plugin/fullscreen/types/fullscreen.d.ts +3 -10
- package/dist/plugin/camera/src/plugin/platform/constants/index.d.ts +42 -0
- package/dist/plugin/camera/src/plugin/platform/cores/index.d.ts +28 -0
- package/dist/plugin/camera/src/plugin/platform/index.d.ts +3 -2
- package/dist/plugin/camera/src/plugin/platform/types/index.d.ts +4 -0
- package/dist/plugin/camera/src/plugin/platform/types/platform.d.ts +5 -2
- package/dist/plugin/camera/src/plugin/theme/constants/index.d.ts +0 -12
- package/dist/plugin/camera/src/plugin/theme/cores/index.d.ts +2 -2
- package/dist/plugin/camera/src/plugin/theme/index.d.ts +1 -13
- package/dist/plugin/camera/src/plugin/theme/types/index.d.ts +0 -12
- package/dist/plugin/camera/src/plugin/theme/types/theme.d.ts +2 -22
- package/dist/plugin/clipboard/index.cjs +226 -212
- package/dist/plugin/clipboard/index.min.cjs +1 -1
- package/dist/plugin/clipboard/index.min.mjs +1 -1
- package/dist/plugin/clipboard/index.mjs +226 -212
- package/dist/plugin/clipboard/index.umd.js +226 -212
- package/dist/plugin/clipboard/index.umd.min.js +1 -1
- package/dist/plugin/clipboard/src/plugin/app/cores/index.d.ts +0 -4
- package/dist/plugin/clipboard/src/plugin/app/types/app.d.ts +1 -1
- package/dist/plugin/clipboard/src/plugin/camera/cores/index.d.ts +2 -2
- package/dist/plugin/clipboard/src/plugin/clipboard/cores/index.d.ts +2 -2
- package/dist/plugin/clipboard/src/plugin/fullscreen/cores/index.d.ts +2 -2
- package/dist/plugin/clipboard/src/plugin/fullscreen/types/fullscreen.d.ts +3 -10
- package/dist/plugin/clipboard/src/plugin/platform/constants/index.d.ts +42 -0
- package/dist/plugin/clipboard/src/plugin/platform/cores/index.d.ts +28 -0
- package/dist/plugin/clipboard/src/plugin/platform/index.d.ts +3 -2
- package/dist/plugin/clipboard/src/plugin/platform/types/index.d.ts +4 -0
- package/dist/plugin/clipboard/src/plugin/platform/types/platform.d.ts +5 -2
- package/dist/plugin/clipboard/src/plugin/theme/constants/index.d.ts +0 -12
- package/dist/plugin/clipboard/src/plugin/theme/cores/index.d.ts +2 -2
- package/dist/plugin/clipboard/src/plugin/theme/index.d.ts +1 -13
- package/dist/plugin/clipboard/src/plugin/theme/types/index.d.ts +0 -12
- package/dist/plugin/clipboard/src/plugin/theme/types/theme.d.ts +2 -22
- package/dist/plugin/fullscreen/index.cjs +34 -20
- package/dist/plugin/fullscreen/index.d.ts +4 -13
- package/dist/plugin/fullscreen/index.min.cjs +1 -1
- package/dist/plugin/fullscreen/index.min.mjs +1 -1
- package/dist/plugin/fullscreen/index.mjs +34 -20
- package/dist/plugin/fullscreen/index.umd.js +34 -20
- package/dist/plugin/fullscreen/index.umd.min.js +1 -1
- package/dist/plugin/fullscreen/src/plugin/app/cores/index.d.ts +0 -4
- package/dist/plugin/fullscreen/src/plugin/app/types/app.d.ts +1 -1
- package/dist/plugin/fullscreen/src/plugin/camera/cores/index.d.ts +2 -2
- package/dist/plugin/fullscreen/src/plugin/clipboard/cores/index.d.ts +2 -2
- package/dist/plugin/fullscreen/src/plugin/fullscreen/cores/index.d.ts +2 -2
- package/dist/plugin/fullscreen/src/plugin/fullscreen/types/fullscreen.d.ts +3 -10
- package/dist/plugin/fullscreen/src/plugin/platform/constants/index.d.ts +42 -0
- package/dist/plugin/fullscreen/src/plugin/platform/cores/index.d.ts +28 -0
- package/dist/plugin/fullscreen/src/plugin/platform/index.d.ts +3 -2
- package/dist/plugin/fullscreen/src/plugin/platform/types/index.d.ts +4 -0
- package/dist/plugin/fullscreen/src/plugin/platform/types/platform.d.ts +5 -2
- package/dist/plugin/fullscreen/src/plugin/theme/constants/index.d.ts +0 -12
- package/dist/plugin/fullscreen/src/plugin/theme/cores/index.d.ts +2 -2
- package/dist/plugin/fullscreen/src/plugin/theme/index.d.ts +1 -13
- package/dist/plugin/fullscreen/src/plugin/theme/types/index.d.ts +0 -12
- package/dist/plugin/fullscreen/src/plugin/theme/types/theme.d.ts +2 -22
- package/dist/plugin/platform/index.cjs +356 -109
- package/dist/plugin/platform/index.d.ts +15 -19
- package/dist/plugin/platform/index.min.cjs +1 -1
- package/dist/plugin/platform/index.min.mjs +1 -1
- package/dist/plugin/platform/index.mjs +356 -109
- package/dist/plugin/platform/index.umd.js +356 -109
- package/dist/plugin/platform/index.umd.min.js +1 -1
- package/dist/plugin/platform/src/plugin/app/constants/index.d.ts +12 -0
- package/dist/plugin/platform/src/plugin/app/cores/index.d.ts +13 -0
- package/dist/plugin/platform/src/plugin/app/index.d.ts +1 -1
- package/dist/plugin/platform/src/plugin/app/types/app.d.ts +11 -2
- package/dist/plugin/platform/src/plugin/app/types/index.d.ts +2 -2
- package/dist/plugin/platform/src/plugin/appearance/constants/index.d.ts +11 -0
- package/dist/plugin/platform/src/plugin/appearance/cores/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/appearance/index.d.ts +8 -0
- package/dist/plugin/platform/src/plugin/appearance/types/appearance.d.ts +12 -0
- package/dist/plugin/platform/src/plugin/appearance/types/index.d.ts +13 -0
- package/dist/plugin/platform/src/plugin/camera/constants/inedx.d.ts +4 -0
- package/dist/plugin/platform/src/plugin/camera/cores/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/camera/index.d.ts +1 -1
- package/dist/plugin/platform/src/plugin/camera/types/camera.d.ts +1 -1
- package/dist/plugin/platform/src/plugin/camera/types/index.d.ts +1 -1
- package/dist/plugin/platform/src/plugin/camera/utils/try-open-camera.d.ts +1 -1
- package/dist/plugin/platform/src/plugin/clipboard/cores/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/fullscreen/cores/index.d.ts +35 -0
- package/dist/plugin/platform/src/plugin/fullscreen/types/fullscreen.d.ts +5 -5
- package/dist/plugin/platform/src/plugin/platform/constants/index.d.ts +42 -0
- package/dist/plugin/platform/src/plugin/platform/cores/index.d.ts +28 -0
- package/dist/plugin/platform/src/plugin/platform/index.d.ts +3 -2
- package/dist/plugin/platform/src/plugin/platform/types/index.d.ts +4 -0
- package/dist/plugin/platform/src/plugin/platform/types/platform.d.ts +5 -2
- package/dist/plugin/platform/src/plugin/theme/constants/index.d.ts +2 -0
- package/dist/plugin/platform/src/plugin/theme/cores/index.d.ts +3 -0
- package/dist/plugin/platform/src/plugin/theme/index.d.ts +1 -13
- package/dist/plugin/platform/src/plugin/theme/types/index.d.ts +0 -12
- package/dist/plugin/platform/src/plugin/theme/types/theme.d.ts +2 -21
- package/dist/plugin/platform/src/utils/create-hidden-element.d.ts +1 -1
- package/dist/plugin/theme/index.cjs +63 -906
- package/dist/plugin/theme/index.d.ts +4 -87
- package/dist/plugin/theme/index.min.cjs +1 -1
- package/dist/plugin/theme/index.min.mjs +1 -1
- package/dist/plugin/theme/index.mjs +63 -906
- package/dist/plugin/theme/index.umd.js +63 -906
- package/dist/plugin/theme/index.umd.min.js +1 -1
- package/dist/plugin/theme/src/plugin/app/cores/index.d.ts +0 -4
- package/dist/plugin/theme/src/plugin/app/types/app.d.ts +1 -1
- package/dist/plugin/theme/src/plugin/camera/cores/index.d.ts +2 -2
- package/dist/plugin/theme/src/plugin/clipboard/cores/index.d.ts +2 -2
- package/dist/plugin/theme/src/plugin/fullscreen/cores/index.d.ts +2 -2
- package/dist/plugin/theme/src/plugin/fullscreen/types/fullscreen.d.ts +3 -10
- package/dist/plugin/theme/src/plugin/platform/constants/index.d.ts +42 -0
- package/dist/plugin/theme/src/plugin/platform/cores/index.d.ts +28 -0
- package/dist/plugin/theme/src/plugin/platform/index.d.ts +3 -2
- package/dist/plugin/theme/src/plugin/platform/types/index.d.ts +4 -0
- package/dist/plugin/theme/src/plugin/platform/types/platform.d.ts +5 -2
- package/dist/plugin/theme/src/plugin/theme/constants/index.d.ts +0 -12
- package/dist/plugin/theme/src/plugin/theme/cores/index.d.ts +2 -2
- package/dist/plugin/theme/src/plugin/theme/index.d.ts +1 -13
- package/dist/plugin/theme/src/plugin/theme/types/index.d.ts +0 -12
- package/dist/plugin/theme/src/plugin/theme/types/theme.d.ts +2 -22
- package/dist/src/plugin/app/cores/index.d.ts +0 -4
- package/dist/src/plugin/app/types/app.d.ts +1 -1
- package/dist/src/plugin/camera/cores/index.d.ts +2 -2
- package/dist/src/plugin/clipboard/cores/index.d.ts +2 -2
- package/dist/src/plugin/fullscreen/cores/index.d.ts +2 -2
- package/dist/src/plugin/fullscreen/types/fullscreen.d.ts +3 -10
- package/dist/src/plugin/platform/constants/index.d.ts +42 -0
- package/dist/src/plugin/platform/cores/index.d.ts +28 -0
- package/dist/src/plugin/platform/index.d.ts +3 -2
- package/dist/src/plugin/platform/types/index.d.ts +4 -0
- package/dist/src/plugin/platform/types/platform.d.ts +5 -2
- package/dist/src/plugin/theme/constants/index.d.ts +0 -12
- package/dist/src/plugin/theme/cores/index.d.ts +2 -2
- package/dist/src/plugin/theme/index.d.ts +1 -13
- package/dist/src/plugin/theme/types/index.d.ts +0 -12
- package/dist/src/plugin/theme/types/theme.d.ts +2 -22
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(e="undefined"!=typeof globalThis?globalThis:e||self).App=r()}(this,(function(){"use strict";var e,r,o,t,n,i;function a(e,r){for(var o=e.split("."),t=r.split("."),n=Math.max(o.length,t.length),i=0;i<n;i++){var a=void 0,s=void 0;if((a=i<o.length?parseInt(o[i],10):0)>(s=i<t.length?parseInt(t[i],10):0))return 1;if(a<s)return-1}return 0}!function(e){e[e.Scheme=0]="Scheme",e[e.Universal=1]="Universal",e[e.Intent=2]="Intent",e[e.Fallback=3]="Fallback",e[e.Store=4]="Store"}(e||(e={})),function(e){e.Telephone="telephone",e.Message="message",e.Mail="mail"}(r||(r={})),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"}(t||(t={})),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"}(n||(n={})),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"}(i||(i={}));var s=void 0!==globalThis.navigator&&"string"==typeof globalThis.navigator.userAgent?globalThis.navigator.userAgent:"",c=void 0!==globalThis.process&&void 0!==globalThis.process.versions&&void 0!==globalThis.process.versions.node,l=void 0!==globalThis.process&&void 0!==globalThis.process.versions&&void 0!==globalThis.process.versions.electron||/ electron\//i.test(s),d=void 0!==globalThis.navigator&&"ReactNative"===globalThis.navigator.product,u=void 0!==globalThis.cordova,f={device:t.Unknown,os:o.Unknown,osVersion:"",engine:n.Unknown,engineVersion:"",browser:i.Unknown,browserVersion:"",renderer: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 o=r.getExtension("WEBGL_debug_renderer_info");return null===o?r.getParameter(r.RENDERER):r.getParameter(o.UNMASKED_RENDERER_WEBGL)}return""}(),userAgent:s,isMobile:!1,isDesktop:!1,isStandalone:!1,isWebview:/; ?wv|applewebkit(?!.*safari)/i.test(s)},b=[[/windows nt (6\.[23]); arm/i,o.Windows,v],[/windows (?:phone|mobile|iot)(?: os)?[\/ ]?([\d.]*( se)?)/i,o.Windows,v],[/windows[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i,o.Windows,v],[/windows nt ?([\d.)]*)(?!.+xbox)/i,o.Windows,v],[/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d.;]*)/i,o.Windows,v],[/windows ce\/?([\d.]*)/i,o.Windows,v],[/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i,o.iOS,h],[/(?:ios;fbsv|ios(?=.+ip(?:ad|hone))|ip(?:ad|hone)(?: |.+i(?:pad)?)os)[\/ ]([\w.]+)/i,o.iOS,h],[/cfnetwork\/.+darwin/i,o.iOS,h],[/mac os x ?([\w. ]*)/i,o.MacOS,h],[/(?:macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i,o.MacOS,h],[/droid ([\w.]+)\b.+(android[- ]x86)/i,o.Android],[/android\w*[-\/.; ]?([\d.]*)/i,o.Android]],p=[[/windows.+ edge\/([\w.]+)/i,n.EdgeHTML],[/arkweb\/([\w.]+)/i,n.ArkWeb],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i,n.Blink],[/presto\/([\w.]+)/i,n.Presto],[/webkit\/([\w.]+)/i,n.WebKit],[/trident\/([\w.]+)/i,n.Trident],[/netfront\/([\w.]+)/i,n.NetFront],[/khtml[\/ ]\(?([\w.]+)/i,n.KHTML],[/tasman[\/ ]\(?([\w.]+)/i,n.Tasman],[/rv:([\w.]{1,9})\b.+gecko/i,n.Gecko]],m=[[/\b(?:crmo|crios)\/([\w.]+)/i,i.Chrome],[/webview.+edge\/([\w.]+)/i,i.Edge],[/edg(?:e|ios|a)?\/([\w.]+)/i,i.Edge],[/opera mini\/([-\w.]+)/i,i.Opera],[/opera [mobileta]{3,6}\b.+version\/([-\w.]+)/i,i.Opera],[/opera(?:.+version\/|[\/ ]+)([\w.]+)/i,i.Opera],[/opios[\/ ]+([\w.]+)/i,i.Opera],[/\bop(?:rg)?x\/([\w.]+)/i,i.Opera],[/\bopr\/([\w.]+)/i,i.Opera],[/iemobile(?:browser|boat|jet)[\/ ]?([\d.]*)/i,i.IE],[/(?:ms|\()ie ([\w.]+)/i,i.IE],[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i,i.IE],[/\bfocus\/([\w.]+)/i,i.Firefox],[/\bopt\/([\w.]+)/i,i.Opera],[/coast\/([\w.]+)/i,i.Opera],[/fxios\/([\w.-]+)/i,i.Firefox],[/samsungbrowser\/([\w.]+)/i,i.SamsungInternet],[/headlesschrome(?:\/([\w.]+)| )/i,i.Chrome],[/wv\).+chrome\/([\w.]+).+edgw\//i,i.Edge],[/ wv\).+(chrome)\/([\w.]+)/i,i.Chrome],[/chrome\/([\w.]+) mobile/i,i.Chrome],[/chrome\/v?([\w.]+)/i,i.Chrome],[/version\/([\w.,]+) .*mobile(?:\/\w+ | ?)safari/i,i.Safari],[/iphone .*mobile(?:\/\w+ | ?)safari/i,i.Safari],[/version\/([\w.,]+) .*safari/i,i.Safari],[/webkit.+?(?:mobile ?safari|safari)(\/[\w.]+)/i,i.Safari,"1"],[/(?:mobile|tablet);.*firefox\/([\w.-]+)/i,i.Firefox],[/mobile vr; rv:([\w.]+)\).+firefox/i,i.Firefox],[/firefox\/([\w.]+)/i,i.Firefox]];function v(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 h(e){return void 0===e?"":e.replace(/_/g,".")}function w(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 g(e,r){return"function"==typeof r?r(e):"string"==typeof r?r:void 0===e?"":e}function y(e){var r=e.split(".");return{major:parseInt(r[0]||"0"),minor:parseInt(r[1]||"0"),build:parseInt(r[2]||"0")}}for(var k=0;k<b.length;k++){var S=(E=b[k])[0],T=E[1],j=E[2];if(null!==(A=f.userAgent.match(S))){f.os=T,f.osVersion=g(A[1],j);break}}f.os===o.iOS&&0===a(f.osVersion,"18.6")&&(null!==(x=/\) Version\/([\d.]+)/.exec(f.userAgent))&&parseInt(x[1].substring(0,2),10)>=26&&(f.osVersion=x[1]));for(k=0;k<p.length;k++){S=(E=p[k])[0];var O=E[1];j=E[2];if(null!==(A=f.userAgent.match(S))){f.engine=O,f.engineVersion=g(A[1],j);break}}for(k=0;k<m.length;k++){S=(E=m[k])[0];var E,A,I=E[1];j=E[2];if(null!==(A=f.userAgent.match(S))){f.browser=I,f.browserVersion=g(A[1],j);break}}if(d)try{T=(M=require("react-native").Platform).OS;var x=y(V=""+M.Version);switch(T){case"android":f.os=o.Android,f.osVersion=function(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}(x,V);break;case"ios":f.os=o.iOS,f.osVersion=V;break;case"windows":f.os=o.Windows,f.osVersion=w(x,V);break;case"macos":f.os=o.MacOS,f.osVersion=V}}catch(e){}if(c)try{var V,M=(T=require("os")).platform();x=y(V=T.release());switch(M){case"win32":f.os=o.Windows,f.osVersion=w(x,V);break;case"darwin":f.os=o.MacOS,f.osVersion=function(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}(x,V);break;case"android":f.os=o.Android,f.osVersion=V;break;case"linux":/android/i.test(V)&&(f.os=o.Android,f.osVersion=V)}}catch(e){}void 0!==globalThis.document&&globalThis.document.addEventListener("deviceready",(function(){if(u=!0,f.os===o.Unknown&&void 0!==globalThis.device){switch(globalThis.device.platform){case"Android":f.os=o.Android;break;case"iOS":f.os=o.iOS}f.osVersion=globalThis.device.version}}),!1),void 0!==navigator.userAgentData&&void 0!==navigator.userAgentData.getHighEntropyValues&&navigator.userAgentData.getHighEntropyValues(["brands","fullVersionList","mobile","model","platform","platformVersion","architecture","formFactors","bitness","uaFullVersion","wow64"]).then((function(e){for(var r,t=e.fullVersionList||e.brands||[],n=e.platformVersion,i=0;i<t.length;i++){var a=null==(r=t[i])?{brand:"",version:""}:"string"==typeof r?{brand:r,version:""}:{brand:r.brand,version:r.version},s=a.brand,c=a.version;/not.a.brand/i.test(s)||"Chromium"===s&&(f.engineVersion=c)}"string"==typeof n&&(f.os===o.Windows&&parseInt(n.replace(/[^\d.]/g,"").split(".")[0],10)>=13?f.osVersion="11":f.osVersion=n)})),f.device=f.os===o.iOS||f.os===o.Android?t.Mobile:f.os===o.Windows||f.os===o.MacOS?t.Desktop:t.Unknown,f.isMobile=f.device===t.Mobile,f.isDesktop=f.device===t.Desktop,f.isStandalone=function(e){return"matchMedia"in globalThis&&(e===o.iOS?"standalone"in navigator&&!!navigator.standalone:globalThis.matchMedia("(display-mode: standalone)").matches)}(f.os);var W=function(e,r){function o(t){if(!(this instanceof o))return new o(t);var n=new r(t||"");if("function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(n,o.prototype):n.__proto__=o.prototype,n.name=e,void 0!==t&&(n.message=t),"undefined"!=typeof Symbol&&Symbol.toStringTag)try{Object.defineProperty(n,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}if("function"==typeof Error.captureStackTrace)Error.captureStackTrace(n,o);else if(r.captureStackTrace&&"function"==typeof r.captureStackTrace)r.captureStackTrace(n,o);else try{var i=new r;i.stack&&(n.stack=i.stack)}catch(e){}return n}void 0===r&&(r=Error),o.prototype=Object.create(r.prototype,{constructor:{value:o,writable:!0,enumerable:!1,configurable:!0}});try{Object.defineProperty(o.prototype,"name",{value:e,writable:!0,enumerable:!1,configurable:!0})}catch(r){try{o.prototype.name=e}catch(e){}}try{Object.defineProperty(o,"name",{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}return o}("URLOpenError");function L(){try{if(globalThis.top&&globalThis.top!==window)return globalThis.top.location.href,globalThis.top}catch(e){}return window}function N(e,r){if(void 0===r&&(r=!0),void 0!==globalThis.document){var o=globalThis.document.createElement(e);return"width"in o&&(o.width="0"),"height"in o&&(o.height="0"),"border"in o&&(o.border="0"),"frameBorder"in o&&(o.frameBorder="0"),"scrolling"in o&&(o.scrolling="no"),"cellPadding"in o&&(o.cellPadding="0"),"cellSpacing"in o&&(o.cellSpacing="0"),"frame"in o&&(o.frame="void"),"rules"in o&&(o.rules="none"),"noWrap"in o&&(o.noWrap=!0),o.tabIndex=-1,o.setAttribute("role","presentation"),r?(o.style.width="1px",o.style.height="1px"):(o.setAttribute("aria-hidden","true"),o.style.width="0",o.style.height="0",o.style.zIndex="-9999",o.style.display="none",o.style.visibility="hidden",o.style.pointerEvents="none"),o.style.position="absolute",o.style.top="0",o.style.left="0",o.style.padding="0",o.style.margin="0",o.style.border="none",o.style.outline="none",o.style.clip="rect(1px, 1px, 1px, 1px)",o.style.clipPath="inset(50%)",o.style.overflow="hidden",o.style.whiteSpace="nowrap",o}}function _(e){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];for(var t="",n=0;n<r.length-2;n++){var i=r[n];void 0!==i&&(t=t+i.charAt(0).toUpperCase()+i.slice(1))}return t}function P(){this.returnValue=!1}function F(){this.cancelBubble=!0}var U,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,H=["","webkit","moz","ms","MS","o","O"],R={wheel:["wheel","mousewheel","DOMMouseScroll"],focus:["focus","focusin"],blur:["blur","focusout"],beforeinput:["beforeinput","textInput"]},D={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 t=D.withVender(e,r.type),n=r.options;if("function"==typeof e.addEventListener)try{return e.addEventListener(t,o,n)}catch(e){}if("function"==typeof e.addListener)if("boolean"==typeof e.matches)try{return e.addListener(o)}catch(e){}else try{return e.addListener(t,o)}catch(e){}return"function"==typeof e.attachEvent?o.__ieWrapper?e.attachEvent("on"+t,o.__ieWrapper):e.attachEvent("on"+t,o.__ieWrapper=function(r){void 0===r&&(r=globalThis.event),void 0!==r&&(r.currentTarget=e,"function"!=typeof r.preventDefault&&(r.preventDefault=P),"function"!=typeof r.stopPropagation&&(r.stopPropagation=F),"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 o=r.callback;if(void 0!==e&&null!==o){var t=D.withVender(e,r.type),n=r.options;if("function"==typeof e.removeEventListener)try{return e.removeEventListener(t,o,n)}catch(e){}if("function"==typeof e.removeListener)if("boolean"==typeof e.matches)try{return e.removeListener(o)}catch(e){}else try{return e.removeListener(t,o)}catch(e){}if("function"!=typeof e.detachEvent);else{var i=o.__ieWrapper;void 0!==i&&(e.detachEvent("on"+t,i),delete o.__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 o;o=r in R?R[r]:C.test(r)?[r,r.replace(C,_)]:[r];for(var t=0;t<H.length;t++)for(var n=0;n<o.length;n++){var i=H[t]+o[n];if(void 0!==e["on"+i])return i}return""}},B={open:function(r){var t,n=f.os,i=[],a=[],s={};if(n===o.Android){if(void 0===(l=r[o.Android]||r.android))return Promise.reject(Q(a));if(t=l.timeout,s.scheme=ne(l.scheme),s.intent=ne(l.intent),s.packageName=l.packageName,s.fallback=ne(l.fallback),s.appStore=K(s.packageName,o.Android),s.webStore=q(s.packageName,o.Android),s.allowAppStore=l.allowAppStore,s.allowWebStore=l.allowWebStore,void 0!==s.intent&&(void 0===s.scheme||void 0===s.packageName||void 0===s.fallback)){var c=function(e){for(var r={},o=e.split("#Intent;"),t=o[0].substring(9),n=o[1],i=n.substring(0,n.length-4).split(";"),a={},s=0;s<i.length;s++){var c=i[s],l=c.indexOf("=");-1!==l&&(a[c.substring(0,l)]=c.substring(l+1))}void 0!==a.scheme&&(r.scheme=a.scheme+"://"+t);void 0!==a.package&&(r.packageName=a.package);void 0!==a["S.browser_fallback_url"]&&(r.fallback=a["S.browser_fallback_url"]);return r}(s.intent);void 0!==c.scheme&&void 0===s.scheme&&(s.scheme=c.scheme),void 0!==c.packageName&&void 0===s.packageName&&(s.packageName=c.packageName),void 0!==c.fallback&&void 0===s.fallback&&(s.fallback=c.fallback)}void 0!==s.scheme&&void 0===s.intent&&(s.intent=function(e,r,t){var n=e.split("://"),i=n[0],a=n[1],s="intent://";void 0!==a&&(s+=a);s=s+"#Intent;scheme="+i+";action=android.intent.action.VIEW;category=android.intent.category.BROWSABLE;",void 0!==r&&(s=s+"package="+r+";");void 0!==t&&"string"==typeof t?s=s+"S.browser_fallback_url="+t+";":void 0!==r&&(s=s+"S.browser_fallback_url="+K(r,o.Android)+";");return s+"end"}(s.scheme,s.packageName,s.fallback))}else if(n===o.iOS){if(void 0===(l=r[o.iOS]||r.ios))return Promise.reject(Q(a));t=l.timeout,s.scheme=ne(l.scheme),s.bundleId=l.bundleId,s.trackId=l.trackId,s.universal=ne(l.universal),s.fallback=ne(l.fallback),s.appStore=K(s.trackId,o.iOS),s.webStore=q(s.trackId,o.iOS),s.allowAppStore=l.allowAppStore,s.allowWebStore=l.allowWebStore,void 0!==s.bundleId&&void 0===s.trackId&&(s.trackId=G(s.bundleId))}else if(n===o.Windows){if(void 0===(l=r[o.Windows]||r.windows))return Promise.reject(Q(a));t=l.timeout,s.scheme=ne(l.scheme),s.productId=l.productId,s.fallback=ne(l.fallback),s.appStore=K(s.productId,o.Windows),s.webStore=q(s.productId,o.Windows),s.allowAppStore=l.allowAppStore,s.allowWebStore=l.allowWebStore}else if(n===o.MacOS){var l;if(void 0===(l=r[o.MacOS]||r.mac))return Promise.reject(Q(a));t=l.timeout,s.scheme=ne(l.scheme),s.bundleId=l.bundleId,s.trackId=l.trackId,s.fallback=ne(l.fallback),s.appStore=K(s.trackId,o.MacOS),s.webStore=q(s.trackId,o.MacOS),s.allowAppStore=l.allowAppStore,s.allowWebStore=l.allowWebStore,void 0!==s.bundleId&&void 0===s.trackId&&(s.trackId=G(s.bundleId))}re(i,s.intent,e.Intent,X()),re(i,s.universal,e.Universal,J()),re(i,s.scheme,e.Scheme),re(i,s.fallback,e.Fallback),re(i,s.appStore,e.Store,s.allowAppStore),re(i,s.webStore,e.Store,s.allowWebStore),void 0===t&&(t=z(n));return new Promise((function(e,r){return function o(n){if(void 0===n&&(n=0),n>=i.length)return r(Q(a));var s=i[n],c=s[0],l=s[1];if("string"==typeof l)return a[n]=l,ee(l,n,t).then((function(){e(c)})).catch((function(){o(n+1)}));a[n]="[function fallback]",l(),e(c)}()}))},messenger:(U={},U[r.Telephone]=function(e){return se(e,"tel")},U[r.Message]=function(e){return se(e,"sms")},U[r.Mail]=function(e){return se(e,"mailto")},U)};function G(e){try{var r=new XMLHttpRequest;if(r.open("GET","https://itunes.apple.com/lookup?bundleId="+e,!1),r.send(),200===r.status)try{var o=JSON.parse(r.response);if(void 0===o.results)return;var t=o.results;if(!Array.isArray(t)||0===t.length)return;var n=t[0];if(void 0===n)return;return n.trackId}catch(e){return}return}catch(e){return}}function K(e,r){if(void 0!==e)switch(r){case o.Android:return"market://details?id="+e;case o.iOS:return"itms-apps://itunes.apple.com/app/id"+e+"?mt=8";case o.Windows:return"ms-windows-store://pdp/?ProductId="+e;case o.MacOS:return"macappstore://itunes.apple.com/app/id"+e+"?mt=12";default:throw new W('Unsupported OS: "'+f.userAgent+'"')}}function q(e,r){if(void 0!==e)switch(r){case o.Android:return"https://play.google.com/store/apps/details?id="+e;case o.iOS:return"https://itunes.apple.com/app/id"+e+"?mt=8";case o.Windows:return"https://apps.microsoft.com/detail/"+e;case o.MacOS:return"https://apps.apple.com/app/id"+e+"?mt=12";default:throw new W('Unsupported OS: "'+f.userAgent+'"')}}function z(e){switch(e){case o.iOS:return 2e3;case o.Android:return 1e3;default:return 750}}function X(){return f.os===o.Android&&(!(f.browser===i.SamsungInternet&&a(f.browserVersion,"17.0.1.69")>=0&&a(f.browserVersion,"17.0.7.34")<0)&&(!(f.browser===i.Firefox&&a(f.browserVersion,"41.0")<0)&&(!(f.browser===i.Firefox&&a(f.browserVersion,"58.0")>=0&&a(f.browserVersion,"68.11.0")<0)&&(!(f.browser===i.Firefox&&a(f.browserVersion,"79.0")>=0&&a(f.browserVersion,"81.2.0")<0)&&(!(f.browser===i.Firefox&&a(f.browserVersion,"96.0")>=0&&a(f.browserVersion,"107.0")<0)&&(!(f.browser===i.Opera&&a(f.browserVersion,"14.0")<0)&&!(/(?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/[\w.]+;/i.test(f.userAgent)||/instagram[\/ ][-\w.]+/i.test(f.userAgent)||/micromessenger\/([\w.]+)/i.test(f.userAgent)||/musical_ly(?:.+app_?version\/|_)[\w.]+/i.test(f.userAgent)||/ultralite app_version\/[\w.]+/i.test(f.userAgent))))))))}function J(){return f.os===o.iOS&&a(f.osVersion,"9.0")>=0}function Q(e){for(var r="",o=0;o<e.length;o++)r+="\n"+(o+1)+": "+e[o];return r.length>0&&(r="\n"+r+"\n"),new W("Failed to open any of the provided URLs: "+r)}function Y(e,r){var o=L(),t=o.document,n=void 0;try{if(0===r)return void(o.location.href=e);if(void 0===(n=N("a")))return;return n.href=e,t.body.appendChild(n),function(e,r){var o;void 0===r&&(r=window);try{o=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:r})}catch(e){(o=globalThis.document.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,r,0,0,0,0,0,!1,!1,!1,!1,0,null)}e.dispatchEvent(o)}(n,o),n}catch(e){}finally{if(void 0!==n)try{t.body.removeChild(n)}catch(e){}}}function Z(e){return"function"==typeof e.hasFocus&&e.hasFocus()}function $(e){try{e.focus({preventScroll:!0})}catch(r){try{e.focus()}catch(e){}}}function ee(e,r,t){if(d)return function(e){try{var r=require("react-native");return new Promise((function(o,t){r.Linking.canOpenURL(e).then((function(n){n?r.Linking.openURL(e).then(o).catch(t):t()})).catch(t)}))}catch(e){return Promise.reject()}}(e);if(l)return function(e){try{var r=require("electron");return new Promise((function(o,t){r.shell.openExternal(e).then(o).catch(t)}))}catch(e){return Promise.reject()}}(e);var n=L(),i=n.document,s={focus:void 0,blur:void 0,visibilitychange:void 0},c={focus:void 0,blur:void 0,visibilitychange:void 0};u?(c={focus:i,blur:i},s={focus:"resume",blur:"pause"}):f.os===o.iOS?a(f.osVersion,"8.0")>=0?(c={visibilitychange:i},s={visibilitychange:"visibilitychange"}):(c={focus:n,blur:n},s={focus:"pageshow",blur:"pagehide"}):D.useStd?(c={focus:n,blur:n,visibilitychange:i},s={focus:"focus",blur:"blur",visibilitychange:"visibilitychange"}):(c={focus:i,blur:i,visibilitychange:i},s={focus:"focus",blur:"blur",visibilitychange:"visibilitychange"});var b=void 0,p=void 0;return new Promise((function(o,n){var a,l=!1;function d(e){if(!l){l=!0;try{!function(){void 0!==a&&(clearTimeout(a),a=void 0);try{D.remove(c.blur,{type:s.blur,callback:f}),D.remove(c.focus,{type:s.focus,callback:m}),D.remove(c.visibilitychange,{type:s.visibilitychange,callback:v})}catch(e){}if(void 0!==b)try{i.body.removeChild(b)}catch(e){}if(void 0!==p)try{i.body.removeChild(p)}catch(e){}}(),e?o():n()}catch(e){o()}}}function f(){void 0!==a&&(clearTimeout(a),a=void 0),D.remove(c.blur,{type:s.blur,callback:f}),D.add(c.focus,{type:s.focus,callback:m})}function m(){d(!0)}function v(){(function(){var e=L().document;return"hidden"===e.visibilityState||"hidden"===e.webkitVisibilityState||"hidden"===e.mozVisibilityState||"hidden"===e.msVisibilityState||(void 0!==e.hidden?e.hidden:void 0!==e.webkitHidden?e.webkitHidden:void 0!==e.mozHidden?e.mozHidden:void 0!==e.msHidden?e.msHidden:"function"!=typeof e.hasFocus||!e.hasFocus())})()&&d(!0)}a=globalThis.setTimeout((function(){d(!1)}),t),D.add(c.blur,{type:s.blur,callback:f}),D.add(c.visibilitychange,{type:s.visibilitychange,callback:v}),Z(i)||function(){var e=L(),r=e.document;if($(e),Z(r))return!0;if(r.body.tabIndex<0&&(r.body.tabIndex=-1),$(r.body),Z(r))return!0;var o=void 0;try{if(void 0===(o=N("input")))return!1;o.type="text",o.readOnly=!0,r.body.appendChild(o),$(o);try{o.select()}catch(e){}if(Z(r))return!0}catch(e){}finally{if(void 0!==o){try{o.blur()}catch(e){}try{r.body.removeChild(o)}catch(e){}}}Z(r)}();try{u?globalThis.open(e,"_system"):(b=Y(e,r),p=function(e){var r=L().document,o=void 0;try{if(void 0===(o=N("iframe")))return;o.src=e,r.body.appendChild(o),globalThis.setTimeout((function(){if(void 0!==o)try{r.body.removeChild(o)}catch(e){}}),500)}catch(e){}return o}(e))}catch(e){d(!1)}}))}function re(e,r,o,t){void 0===t&&(t=!0),"function"!=typeof r&&"string"!=typeof r||!t||e.push([o,r])}function oe(e,r,o){void 0===o&&(o=",");for(var t=e.length,n="",i=0;i<t;i++)n+=r(e[i]),i!==t-1&&(n+=o);return n}function te(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16)}))}function ne(e){return e instanceof URL?e.toString():e}function ie(e){if("string"==typeof e)return te(e);if("number"==typeof e||"boolean"==typeof e)return te(String(e));if(null==e)return"";if(function(e){if(null==e||"string"==typeof e)return!1;var r=e.length;return"number"==typeof r&&r>=0&&!(r%1)}(e))return oe(e,(function(e){return ie(e)}));if(e instanceof HTMLInputElement){var r=e.type;if("checkbox"===r)return te(e.checked.toString());if("radio"===r)return e.checked?te(e.value):"";if("file"===r){var o=e.files;return null===o?"":oe(o,(function(e){return te(e.name)}))}return te(e.value)}return e instanceof HTMLSelectElement?e.multiple?oe(e.selectedOptions,(function(e){return te(e.value)})):te(e.value):e instanceof HTMLTextAreaElement?te(e.value):e instanceof HTMLElement?te(e.innerText):e instanceof Node?ie(e.textContent):te(e.toString())}function ae(e){if(e instanceof HTMLFormElement)return ae(new FormData(e));if(e instanceof FormData){var r={};return e.forEach((function(e,o){var t;if(t=e instanceof File?e.name:e,Object.prototype.hasOwnProperty.call(r,o)){var n=r[o];Array.isArray(n)?n.push(t):r[o]=[n,t]}else r[o]=t})),ae(r)}for(var o={},t=Object.keys(e),n=0;n<t.length;n++){var i=t[n];o[i]=ie(e[i])}return void 0===o.to&&(o.to=""),void 0===o.cc&&(o.cc=""),void 0===o.bcc&&(o.bcc=""),void 0===o.subject&&(o.subject=""),void 0===o.body&&(o.body=""),o}function se(e,r){return ee(r+":"+(e=ae(e)).to+"?cc="+e.cc+"&bcc="+e.bcc+"&subject="+e.subject+"&body="+e.body,0,z(f.os))}return{installed:!1,name:"App",module:B,Constants:{AppOpenState:e,Messengers:r},Errors:{URLOpenError:W}}}));
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):(e="undefined"!=typeof globalThis?globalThis:e||self).App=r()}(this,(function(){"use strict";var e,r;!function(e){e[e.Scheme=0]="Scheme",e[e.Universal=1]="Universal",e[e.Intent=2]="Intent",e[e.Fallback=3]="Fallback",e[e.Store=4]="Store"}(e||(e={})),function(e){e.Telephone="telephone",e.Message="message",e.Mail="mail"}(r||(r={}));var o=function(e,r){function o(t){if(!(this instanceof o))return new o(t);var n=new r(t||"");if("function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(n,o.prototype):n.__proto__=o.prototype,n.name=e,void 0!==t&&(n.message=t),"undefined"!=typeof Symbol&&Symbol.toStringTag)try{Object.defineProperty(n,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}if("function"==typeof Error.captureStackTrace)Error.captureStackTrace(n,o);else if(r.captureStackTrace&&"function"==typeof r.captureStackTrace)r.captureStackTrace(n,o);else try{var i=new r;i.stack&&(n.stack=i.stack)}catch(e){}return n}void 0===r&&(r=Error),o.prototype=Object.create(r.prototype,{constructor:{value:o,writable:!0,enumerable:!1,configurable:!0}});try{Object.defineProperty(o.prototype,"name",{value:e,writable:!0,enumerable:!1,configurable:!0})}catch(r){try{o.prototype.name=e}catch(e){}}try{Object.defineProperty(o,"name",{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}return o}("URLOpenError");function t(e,r){for(var o=e.split("."),t=r.split("."),n=Math.max(o.length,t.length),i=0;i<n;i++){var a=void 0,s=void 0;if((a=i<o.length?parseInt(o[i],10):0)>(s=i<t.length?parseInt(t[i],10):0))return 1;if(a<s)return-1}return 0}function n(){try{if(globalThis.top&&globalThis.top!==window)return globalThis.top.location.href,globalThis.top}catch(e){}return window}function i(e,r){if(void 0===r&&(r=!0),void 0!==globalThis.document){var o=globalThis.document.createElement(e);return"width"in o&&(o.width="0"),"height"in o&&(o.height="0"),"border"in o&&(o.border="0"),"frameBorder"in o&&(o.frameBorder="0"),"scrolling"in o&&(o.scrolling="no"),"cellPadding"in o&&(o.cellPadding="0"),"cellSpacing"in o&&(o.cellSpacing="0"),"frame"in o&&(o.frame="void"),"rules"in o&&(o.rules="none"),"noWrap"in o&&(o.noWrap=!0),o.tabIndex=-1,o.setAttribute("role","presentation"),r?(o.style.width="1px",o.style.height="1px"):(o.setAttribute("aria-hidden","true"),o.style.width="0",o.style.height="0",o.style.zIndex="-9999",o.style.display="none",o.style.visibility="hidden",o.style.pointerEvents="none"),o.style.position="absolute",o.style.top="0",o.style.left="0",o.style.padding="0",o.style.margin="0",o.style.border="none",o.style.outline="none",o.style.clip="rect(1px, 1px, 1px, 1px)",o.style.clipPath="inset(50%)",o.style.overflow="hidden",o.style.whiteSpace="nowrap",o}}function a(e){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];for(var t="",n=0;n<r.length-2;n++){var i=r[n];void 0!==i&&(t=t+i.charAt(0).toUpperCase()+i.slice(1))}return t}function s(){this.returnValue=!1}function c(){this.cancelBubble=!0}var l,d,u,f,m,p=/(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,b=["","webkit","moz","ms","MS","o","O"],v={wheel:["wheel","mousewheel","DOMMouseScroll"],focus:["focus","focusin"],blur:["blur","focusout"],beforeinput:["beforeinput","textInput"]},h={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 t=h.withVender(e,r.type),n=r.options;if("function"==typeof e.addEventListener)try{return e.addEventListener(t,o,n)}catch(e){}if("function"==typeof e.addListener)if("boolean"==typeof e.matches)try{return e.addListener(o)}catch(e){}else try{return e.addListener(t,o)}catch(e){}return"function"==typeof e.attachEvent?o.__ieWrapper?e.attachEvent("on"+t,o.__ieWrapper):e.attachEvent("on"+t,o.__ieWrapper=function(r){void 0===r&&(r=globalThis.event),void 0!==r&&(r.currentTarget=e,"function"!=typeof r.preventDefault&&(r.preventDefault=s),"function"!=typeof r.stopPropagation&&(r.stopPropagation=c),"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 o=r.callback;if(void 0!==e&&null!==o){var t=h.withVender(e,r.type),n=r.options;if("function"==typeof e.removeEventListener)try{return e.removeEventListener(t,o,n)}catch(e){}if("function"==typeof e.removeListener)if("boolean"==typeof e.matches)try{return e.removeListener(o)}catch(e){}else try{return e.removeListener(t,o)}catch(e){}if("function"!=typeof e.detachEvent);else{var i=o.__ieWrapper;void 0!==i&&(e.detachEvent("on"+t,i),delete o.__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 o;o=r in v?v[r]:p.test(r)?[r,r.replace(p,a)]:[r];for(var t=0;t<b.length;t++)for(var n=0;n<o.length;n++){var i=b[t]+o[n];if(void 0!==e["on"+i])return i}return""}};!function(e){e.Unknown="Unknown",e.Android="Android",e.iOS="iOS",e.Windows="Windows",e.MacOS="MacOS"}(l||(l={})),function(e){e.Unknown="Unknown",e.Mobile="Mobile",e.Desktop="Desktop"}(d||(d={})),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"}(u||(u={})),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"}(f||(f={})),function(e){e.NotACrossPlatformFramework="NotACrossPlatformFramework",e.ReactNative="ReactNative",e.Electron="Electron",e.Cordova="Cordova"}(m||(m={}));var w,g=void 0!==globalThis.navigator&&"string"==typeof globalThis.navigator.userAgent?globalThis.navigator.userAgent:"",y={device:d.Unknown,os:l.Unknown,engine:u.Unknown,browser:f.Unknown,crossPlatformFramework:m.NotACrossPlatformFramework,osVersion:"",engineVersion:"",browserVersion:"",renderer: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 o=r.getExtension("WEBGL_debug_renderer_info");return null===o?r.getParameter(r.RENDERER):r.getParameter(o.UNMASKED_RENDERER_WEBGL)}return""}(),userAgent:g,isNode:void 0!==globalThis.process&&void 0!==globalThis.process.versions&&void 0!==globalThis.process.versions.node,isMobile:!1,isDesktop:!1,isStandalone:!1,isWebview:/; ?wv|applewebkit(?!.*safari)/i.test(g)},k=[[/windows nt (6\.[23]); arm/i,l.Windows,j],[/windows (?:phone|mobile|iot)(?: os)?[\/ ]?([\d.]*( se)?)/i,l.Windows,j],[/windows[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i,l.Windows,j],[/windows nt ?([\d.)]*)(?!.+xbox)/i,l.Windows,j],[/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d.;]*)/i,l.Windows,j],[/windows ce\/?([\d.]*)/i,l.Windows,j],[/[adehimnop]{4,7}\b(?:.*os (\w+) like mac|; opera)/i,l.iOS,O],[/(?:ios;fbsv|ios(?=.+ip(?:ad|hone))|ip(?:ad|hone)(?: |.+i(?:pad)?)os)[\/ ]([\w.]+)/i,l.iOS,O],[/cfnetwork\/.+darwin/i,l.iOS,O],[/mac os x ?([\w. ]*)/i,l.MacOS,O],[/(?:macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i,l.MacOS,O],[/droid ([\w.]+)\b.+(android[- ]x86)/i,l.Android],[/android\w*[-\/.; ]?([\d.]*)/i,l.Android]],S=[[/windows.+ edge\/([\w.]+)/i,u.EdgeHTML],[/arkweb\/([\w.]+)/i,u.ArkWeb],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i,u.Blink],[/presto\/([\w.]+)/i,u.Presto],[/webkit\/([\w.]+)/i,u.WebKit],[/trident\/([\w.]+)/i,u.Trident],[/netfront\/([\w.]+)/i,u.NetFront],[/khtml[\/ ]\(?([\w.]+)/i,u.KHTML],[/tasman[\/ ]\(?([\w.]+)/i,u.Tasman],[/rv:([\w.]{1,9})\b.+gecko/i,u.Gecko]],T=[[/\b(?:crmo|crios)\/([\w.]+)/i,f.Chrome],[/webview.+edge\/([\w.]+)/i,f.Edge],[/edg(?:e|ios|a)?\/([\w.]+)/i,f.Edge],[/opera mini\/([-\w.]+)/i,f.Opera],[/opera [mobileta]{3,6}\b.+version\/([-\w.]+)/i,f.Opera],[/opera(?:.+version\/|[\/ ]+)([\w.]+)/i,f.Opera],[/opios[\/ ]+([\w.]+)/i,f.Opera],[/\bop(?:rg)?x\/([\w.]+)/i,f.Opera],[/\bopr\/([\w.]+)/i,f.Opera],[/iemobile(?:browser|boat|jet)[\/ ]?([\d.]*)/i,f.IE],[/(?:ms|\()ie ([\w.]+)/i,f.IE],[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i,f.IE],[/\bfocus\/([\w.]+)/i,f.Firefox],[/\bopt\/([\w.]+)/i,f.Opera],[/coast\/([\w.]+)/i,f.Opera],[/fxios\/([\w.-]+)/i,f.Firefox],[/samsungbrowser\/([\w.]+)/i,f.SamsungInternet],[/headlesschrome(?:\/([\w.]+)| )/i,f.Chrome],[/wv\).+chrome\/([\w.]+).+edgw\//i,f.Edge],[/ wv\).+(chrome)\/([\w.]+)/i,f.Chrome],[/chrome\/([\w.]+) mobile/i,f.Chrome],[/chrome\/v?([\w.]+)/i,f.Chrome],[/version\/([\w.,]+) .*mobile(?:\/\w+ | ?)safari/i,f.Safari],[/iphone .*mobile(?:\/\w+ | ?)safari/i,f.Safari],[/version\/([\w.,]+) .*safari/i,f.Safari],[/webkit.+?(?:mobile ?safari|safari)(\/[\w.]+)/i,f.Safari,"1"],[/(?:mobile|tablet);.*firefox\/([\w.-]+)/i,f.Firefox],[/mobile vr; rv:([\w.]+)\).+firefox/i,f.Firefox],[/firefox\/([\w.]+)/i,f.Firefox]];function j(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 O(e){return void 0===e?"":e.replace(/_/g,".")}function E(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 A(e,r){return"function"==typeof r?r(e):"string"==typeof r?r:void 0===e?"":e}function I(e){var r=e.split(".");return{major:parseInt(r[0]||"0"),minor:parseInt(r[1]||"0"),build:parseInt(r[2]||"0")}}(void 0!==globalThis.process&&void 0!==globalThis.process.versions&&void 0!==globalThis.process.versions.electron||/ electron\//i.test(g))&&(y.crossPlatformFramework=m.Electron),void 0!==globalThis.navigator&&"ReactNative"===globalThis.navigator.product&&(y.crossPlatformFramework=m.ReactNative);for(var x=0;x<k.length;x++){var V=(P=k[x])[0],M=P[1],W=P[2];if(null!==(F=y.userAgent.match(V))){y.os=M,y.osVersion=A(F[1],W);break}}y.os===l.iOS&&0===t(y.osVersion,"18.6")&&(null!==(_=/\) Version\/([\d.]+)/.exec(y.userAgent))&&parseInt(_[1].substring(0,2),10)>=26&&(y.osVersion=_[1]));for(x=0;x<S.length;x++){V=(P=S[x])[0];var N=P[1];W=P[2];if(null!==(F=y.userAgent.match(V))){y.engine=N,y.engineVersion=A(F[1],W);break}}for(x=0;x<T.length;x++){V=(P=T[x])[0];var P,F,L=P[1];W=P[2];if(null!==(F=y.userAgent.match(V))){y.browser=L,y.browserVersion=A(F[1],W);break}}if(y.crossPlatformFramework===m.ReactNative)try{M=(U=require("react-native").Platform).OS;var _=I(C=""+U.Version);switch(M){case"android":y.os=l.Android,y.osVersion=function(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}(_,C);break;case"ios":y.os=l.iOS,y.osVersion=C;break;case"windows":y.os=l.Windows,y.osVersion=E(_,C);break;case"macos":y.os=l.MacOS,y.osVersion=C}}catch(e){}if(y.isNode)try{var C,U=(M=require("os")).platform();_=I(C=M.release());switch(U){case"win32":y.os=l.Windows,y.osVersion=E(_,C);break;case"darwin":y.os=l.MacOS,y.osVersion=function(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}(_,C);break;case"android":y.os=l.Android,y.osVersion=C;break;case"linux":/android/i.test(C)&&(y.os=l.Android,y.osVersion=C)}}catch(e){}void 0!==globalThis.document&&globalThis.document.addEventListener("deviceready",(function(){if(y.crossPlatformFramework=m.Cordova,y.os===l.Unknown&&void 0!==globalThis.device){switch(globalThis.device.platform){case"Android":y.os=l.Android;break;case"iOS":y.os=l.iOS}y.osVersion=globalThis.device.version}}),!1),void 0!==navigator.userAgentData&&void 0!==navigator.userAgentData.getHighEntropyValues&&navigator.userAgentData.getHighEntropyValues(["brands","fullVersionList","mobile","model","platform","platformVersion","architecture","formFactors","bitness","uaFullVersion","wow64"]).then((function(e){for(var r,o=e.fullVersionList||e.brands||[],t=e.platformVersion,n=0;n<o.length;n++){var i=null==(r=o[n])?{brand:"",version:""}:"string"==typeof r?{brand:r,version:""}:{brand:r.brand,version:r.version},a=i.brand,s=i.version;/not.a.brand/i.test(a)||"Chromium"===a&&(y.engineVersion=s)}"string"==typeof t&&(y.os===l.Windows&&parseInt(t.replace(/[^\d.]/g,"").split(".")[0],10)>=13?y.osVersion="11":y.osVersion=t)})),y.device=y.os===l.iOS||y.os===l.Android?d.Mobile:y.os===l.Windows||y.os===l.MacOS?d.Desktop:d.Unknown,y.isMobile=y.device===d.Mobile,y.isDesktop=y.device===d.Desktop,y.isStandalone=function(e){return"matchMedia"in globalThis&&(e===l.iOS?"standalone"in navigator&&!!navigator.standalone:globalThis.matchMedia("(display-mode: standalone)").matches)}(y.os);var R={open:function(r){var o,t=y.os,n=[],i=[],a={};if(y.os===l.Android){if(void 0===(c=r[l.Android]||r.android))return Promise.reject(z(i));if(o=c.timeout,a.scheme=re(c.scheme),a.intent=re(c.intent),a.packageName=c.packageName,a.fallback=re(c.fallback),a.appStore=D(a.packageName,l.Android),a.webStore=B(a.packageName,l.Android),a.allowAppStore=c.allowAppStore,a.allowWebStore=c.allowWebStore,void 0!==a.intent&&(void 0===a.scheme||void 0===a.packageName||void 0===a.fallback)){var s=function(e){for(var r={},o=e.split("#Intent;"),t=o[0].substring(9),n=o[1],i=n.substring(0,n.length-4).split(";"),a={},s=0;s<i.length;s++){var c=i[s],l=c.indexOf("=");-1!==l&&(a[c.substring(0,l)]=c.substring(l+1))}void 0!==a.scheme&&(r.scheme=a.scheme+"://"+t);void 0!==a.package&&(r.packageName=a.package);void 0!==a["S.browser_fallback_url"]&&(r.fallback=a["S.browser_fallback_url"]);return r}(a.intent);void 0!==s.scheme&&void 0===a.scheme&&(a.scheme=s.scheme),void 0!==s.packageName&&void 0===a.packageName&&(a.packageName=s.packageName),void 0!==s.fallback&&void 0===a.fallback&&(a.fallback=s.fallback)}void 0!==a.scheme&&void 0===a.intent&&(a.intent=function(e,r,o){var t=e.split("://"),n=t[0],i=t[1],a="intent://";void 0!==i&&(a+=i);a=a+"#Intent;scheme="+n+";action=android.intent.action.VIEW;category=android.intent.category.BROWSABLE;",void 0!==r&&(a=a+"package="+r+";");void 0!==o&&"string"==typeof o?a=a+"S.browser_fallback_url="+o+";":void 0!==r&&(a=a+"S.browser_fallback_url="+D(r,l.Android)+";");return a+"end"}(a.scheme,a.packageName,a.fallback))}else if(y.os===l.iOS){if(void 0===(c=r[l.iOS]||r.ios))return Promise.reject(z(i));o=c.timeout,a.scheme=re(c.scheme),a.bundleId=c.bundleId,a.trackId=c.trackId,a.universal=re(c.universal),a.fallback=re(c.fallback),a.appStore=D(a.trackId,l.iOS),a.webStore=B(a.trackId,l.iOS),a.allowAppStore=c.allowAppStore,a.allowWebStore=c.allowWebStore,void 0!==a.bundleId&&void 0===a.trackId&&(a.trackId=H(a.bundleId))}else if(y.os===l.Windows){if(void 0===(c=r[l.Windows]||r.windows))return Promise.reject(z(i));o=c.timeout,a.scheme=re(c.scheme),a.productId=c.productId,a.fallback=re(c.fallback),a.appStore=D(a.productId,l.Windows),a.webStore=B(a.productId,l.Windows),a.allowAppStore=c.allowAppStore,a.allowWebStore=c.allowWebStore}else if(y.os===l.MacOS){var c;if(void 0===(c=r[l.MacOS]||r.mac))return Promise.reject(z(i));o=c.timeout,a.scheme=re(c.scheme),a.bundleId=c.bundleId,a.trackId=c.trackId,a.fallback=re(c.fallback),a.appStore=D(a.trackId,l.MacOS),a.webStore=B(a.trackId,l.MacOS),a.allowAppStore=c.allowAppStore,a.allowWebStore=c.allowWebStore,void 0!==a.bundleId&&void 0===a.trackId&&(a.trackId=H(a.bundleId))}Z(n,a.intent,e.Intent,K()),Z(n,a.universal,e.Universal,q()),Z(n,a.scheme,e.Scheme),Z(n,a.fallback,e.Fallback),Z(n,a.appStore,e.Store,a.allowAppStore),Z(n,a.webStore,e.Store,a.allowWebStore),void 0===o&&(o=G(t));return new Promise((function(e,r){return function t(a){if(void 0===a&&(a=0),a>=n.length)return r(z(i));var s=n[a],c=s[0],l=s[1];if("string"==typeof l)return i[a]=l,Y(l,a,o).then((function(){e(c)})).catch((function(){t(a+1)}));i[a]="[function fallback]",l(),e(c)}()}))},messenger:(w={},w[r.Telephone]=function(e){return ne(e,"tel")},w[r.Message]=function(e){return ne(e,"sms")},w[r.Mail]=function(e){return ne(e,"mailto")},w)};function H(e){try{var r=new XMLHttpRequest;if(r.open("GET","https://itunes.apple.com/lookup?bundleId="+e,!1),r.send(),200===r.status)try{var o=JSON.parse(r.response);if(void 0===o.results)return;var t=o.results;if(!Array.isArray(t)||0===t.length)return;var n=t[0];if(void 0===n)return;return n.trackId}catch(e){return}return}catch(e){return}}function D(e,r){if(void 0!==e)switch(r){case l.Android:return"market://details?id="+e;case l.iOS:return"itms-apps://itunes.apple.com/app/id"+e+"?mt=8";case l.Windows:return"ms-windows-store://pdp/?ProductId="+e;case l.MacOS:return"macappstore://itunes.apple.com/app/id"+e+"?mt=12";default:throw new o('Unsupported OS: "'+y.userAgent+'"')}}function B(e,r){if(void 0!==e)switch(r){case l.Android:return"https://play.google.com/store/apps/details?id="+e;case l.iOS:return"https://itunes.apple.com/app/id"+e+"?mt=8";case l.Windows:return"https://apps.microsoft.com/detail/"+e;case l.MacOS:return"https://apps.apple.com/app/id"+e+"?mt=12";default:throw new o('Unsupported OS: "'+y.userAgent+'"')}}function G(e){switch(e){case l.iOS:return 2e3;case l.Android:return 1e3;default:return 750}}function K(){return y.os===l.Android&&(!(y.browser===f.SamsungInternet&&t(y.browserVersion,"17.0.1.69")>=0&&t(y.browserVersion,"17.0.7.34")<0)&&(!(y.browser===f.Firefox&&t(y.browserVersion,"41.0")<0)&&(!(y.browser===f.Firefox&&t(y.browserVersion,"58.0")>=0&&t(y.browserVersion,"68.11.0")<0)&&(!(y.browser===f.Firefox&&t(y.browserVersion,"79.0")>=0&&t(y.browserVersion,"81.2.0")<0)&&(!(y.browser===f.Firefox&&t(y.browserVersion,"96.0")>=0&&t(y.browserVersion,"107.0")<0)&&(!(y.browser===f.Opera&&t(y.browserVersion,"14.0")<0)&&!(/(?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/[\w.]+;/i.test(y.userAgent)||/instagram[\/ ][-\w.]+/i.test(y.userAgent)||/micromessenger\/([\w.]+)/i.test(y.userAgent)||/musical_ly(?:.+app_?version\/|_)[\w.]+/i.test(y.userAgent)||/ultralite app_version\/[\w.]+/i.test(y.userAgent))))))))}function q(){return y.os===l.iOS&&t(y.osVersion,"9.0")>=0}function z(e){for(var r="",t=0;t<e.length;t++)r+="\n"+(t+1)+": "+e[t];return r.length>0&&(r="\n"+r+"\n"),new o("Failed to open any of the provided URLs: "+r)}function X(e,r){var o=n(),t=o.document,a=void 0;try{if(0===r)return void(o.location.href=e);if(void 0===(a=i("a")))return;return a.href=e,t.body.appendChild(a),function(e,r){var o;void 0===r&&(r=window);try{o=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:r})}catch(e){(o=globalThis.document.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,r,0,0,0,0,0,!1,!1,!1,!1,0,null)}e.dispatchEvent(o)}(a,o),a}catch(e){}finally{if(void 0!==a)try{t.body.removeChild(a)}catch(e){}}}function J(e){return"function"==typeof e.hasFocus&&e.hasFocus()}function Q(e){try{e.focus({preventScroll:!0})}catch(r){try{e.focus()}catch(e){}}}function Y(e,r,o){if(y.crossPlatformFramework===m.ReactNative)return function(e){try{var r=require("react-native");return new Promise((function(o,t){r.Linking.canOpenURL(e).then((function(n){n?r.Linking.openURL(e).then(o).catch(t):t()})).catch(t)}))}catch(e){return Promise.reject()}}(e);if(y.crossPlatformFramework===m.Electron)return function(e){try{var r=require("electron");return new Promise((function(o,t){r.shell.openExternal(e).then(o).catch(t)}))}catch(e){return Promise.reject()}}(e);var a=n(),s=a.document,c={focus:void 0,blur:void 0,visibilitychange:void 0},d={focus:void 0,blur:void 0,visibilitychange:void 0};y.crossPlatformFramework===m.Cordova?(d={focus:s,blur:s},c={focus:"resume",blur:"pause"}):y.os===l.iOS?t(y.osVersion,"8.0")>=0?(d={visibilitychange:s},c={visibilitychange:"visibilitychange"}):(d={focus:a,blur:a},c={focus:"pageshow",blur:"pagehide"}):h.useStd?(d={focus:a,blur:a,visibilitychange:s},c={focus:"focus",blur:"blur",visibilitychange:"visibilitychange"}):(d={focus:s,blur:s,visibilitychange:s},c={focus:"focus",blur:"blur",visibilitychange:"visibilitychange"});var u=void 0,f=void 0;return new Promise((function(t,a){var l,p=!1;function b(e){if(!p){p=!0;try{!function(){void 0!==l&&(clearTimeout(l),l=void 0);try{h.remove(d.blur,{type:c.blur,callback:v}),h.remove(d.focus,{type:c.focus,callback:w}),h.remove(d.visibilitychange,{type:c.visibilitychange,callback:g})}catch(e){}if(void 0!==u)try{s.body.removeChild(u)}catch(e){}if(void 0!==f)try{s.body.removeChild(f)}catch(e){}}(),e?t():a()}catch(e){t()}}}function v(){void 0!==l&&(clearTimeout(l),l=void 0),h.remove(d.blur,{type:c.blur,callback:v}),h.add(d.focus,{type:c.focus,callback:w})}function w(){b(!0)}function g(){(function(){var e=n().document;return"hidden"===e.visibilityState||"hidden"===e.webkitVisibilityState||"hidden"===e.mozVisibilityState||"hidden"===e.msVisibilityState||(void 0!==e.hidden?e.hidden:void 0!==e.webkitHidden?e.webkitHidden:void 0!==e.mozHidden?e.mozHidden:void 0!==e.msHidden?e.msHidden:"function"!=typeof e.hasFocus||!e.hasFocus())})()&&b(!0)}l=globalThis.setTimeout((function(){b(!1)}),o),h.add(d.blur,{type:c.blur,callback:v}),h.add(d.visibilitychange,{type:c.visibilitychange,callback:g}),J(s)||function(){var e=n(),r=e.document;if(Q(e),J(r))return!0;if(r.body.tabIndex<0&&(r.body.tabIndex=-1),Q(r.body),J(r))return!0;var o=void 0;try{if(void 0===(o=i("input")))return!1;o.type="text",o.readOnly=!0,r.body.appendChild(o),Q(o);try{o.select()}catch(e){}if(J(r))return!0}catch(e){}finally{if(void 0!==o){try{o.blur()}catch(e){}try{r.body.removeChild(o)}catch(e){}}}J(r)}();try{y.crossPlatformFramework===m.Cordova?globalThis.open(e,"_system"):(u=X(e,r),f=function(e){var r=n().document,o=void 0;try{if(void 0===(o=i("iframe")))return;o.src=e,r.body.appendChild(o),globalThis.setTimeout((function(){if(void 0!==o)try{r.body.removeChild(o)}catch(e){}}),500)}catch(e){}return o}(e))}catch(e){b(!1)}}))}function Z(e,r,o,t){void 0===t&&(t=!0),"function"!=typeof r&&"string"!=typeof r||!t||e.push([o,r])}function $(e,r,o){void 0===o&&(o=",");for(var t=e.length,n="",i=0;i<t;i++)n+=r(e[i]),i!==t-1&&(n+=o);return n}function ee(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16)}))}function re(e){return e instanceof URL?e.toString():e}function oe(e){if("string"==typeof e)return ee(e);if("number"==typeof e||"boolean"==typeof e)return ee(String(e));if(null==e)return"";if(function(e){if(null==e||"string"==typeof e)return!1;var r=e.length;return"number"==typeof r&&r>=0&&!(r%1)}(e))return $(e,(function(e){return oe(e)}));if(e instanceof HTMLInputElement){var r=e.type;if("checkbox"===r)return ee(e.checked.toString());if("radio"===r)return e.checked?ee(e.value):"";if("file"===r){var o=e.files;return null===o?"":$(o,(function(e){return ee(e.name)}))}return ee(e.value)}return e instanceof HTMLSelectElement?e.multiple?$(e.selectedOptions,(function(e){return ee(e.value)})):ee(e.value):e instanceof HTMLTextAreaElement?ee(e.value):e instanceof HTMLElement?ee(e.innerText):e instanceof Node?oe(e.textContent):ee(e.toString())}function te(e){if(e instanceof HTMLFormElement)return te(new FormData(e));if(e instanceof FormData){var r={};return e.forEach((function(e,o){var t;if(t=e instanceof File?e.name:e,Object.prototype.hasOwnProperty.call(r,o)){var n=r[o];Array.isArray(n)?n.push(t):r[o]=[n,t]}else r[o]=t})),te(r)}for(var o={},t=Object.keys(e),n=0;n<t.length;n++){var i=t[n];o[i]=oe(e[i])}return void 0===o.to&&(o.to=""),void 0===o.cc&&(o.cc=""),void 0===o.bcc&&(o.bcc=""),void 0===o.subject&&(o.subject=""),void 0===o.body&&(o.body=""),o}function ne(e,r){return Y(r+":"+(e=te(e)).to+"?cc="+e.cc+"&bcc="+e.bcc+"&subject="+e.subject+"&body="+e.body,0,G(y.os))}return{installed:!1,name:"App",module:R,Constants:{AppOpenState:e,Messengers:r},Errors:{URLOpenError:o}}}));
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AppInstance } from "../types";
|
|
2
2
|
declare global {
|
|
3
|
-
var electronBridge: ElectronShell;
|
|
4
3
|
interface Document {
|
|
5
4
|
webkitVisibilityState?: 'hidden' | 'visible';
|
|
6
5
|
mozVisibilityState?: 'hidden' | 'visible';
|
|
@@ -10,8 +9,5 @@ declare global {
|
|
|
10
9
|
msHidden?: boolean;
|
|
11
10
|
}
|
|
12
11
|
}
|
|
13
|
-
interface ElectronShell {
|
|
14
|
-
openExternal(url: string): Promise<void>;
|
|
15
|
-
}
|
|
16
12
|
declare const App: AppInstance;
|
|
17
13
|
export default App;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { CameraInstance } from "../types";
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const Camera: CameraInstance;
|
|
3
|
+
export default Camera;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ClipboardInstance } from "../types";
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const Clipboard: ClipboardInstance;
|
|
3
|
+
export default Clipboard;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FullscreenInstance } from "../types";
|
|
2
|
-
declare const
|
|
2
|
+
declare const Fullscreen: FullscreenInstance;
|
|
3
3
|
declare global {
|
|
4
4
|
interface HTMLVideoElement {
|
|
5
5
|
webkitEnterFullscreen?: () => void;
|
|
@@ -32,4 +32,4 @@ declare global {
|
|
|
32
32
|
msRequestFullscreen?: () => Promise<void>;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
export default
|
|
35
|
+
export default Fullscreen;
|
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
export declare interface FullscreenInstance {
|
|
2
2
|
enabled: boolean;
|
|
3
|
-
element:
|
|
3
|
+
element: any;
|
|
4
4
|
isFullscreen: boolean;
|
|
5
|
-
request(target?:
|
|
5
|
+
request(target?: any, options?: FullscreenOptions): Promise<void>;
|
|
6
6
|
exit(): Promise<void>;
|
|
7
|
-
toggle(target?:
|
|
7
|
+
toggle(target?: any, options?: FullscreenOptions): Promise<void>;
|
|
8
8
|
onchange(handler: (event: Event) => void): () => void;
|
|
9
9
|
onerror(handler: (event: Event) => void): () => void;
|
|
10
10
|
}
|
|
11
|
-
export declare type BrowserWindow = import('electron').BrowserWindow;
|
|
12
|
-
export declare type IsElectron = typeof process extends {
|
|
13
|
-
versions: {
|
|
14
|
-
electron: string;
|
|
15
|
-
};
|
|
16
|
-
} ? true : false;
|
|
17
|
-
export declare type FullscreenTarget = IsElectron extends true ? BrowserWindow : Element;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare enum OS {
|
|
2
|
+
Unknown = "Unknown",
|
|
3
|
+
Android = "Android",
|
|
4
|
+
iOS = "iOS",
|
|
5
|
+
Windows = "Windows",
|
|
6
|
+
MacOS = "MacOS"
|
|
7
|
+
}
|
|
8
|
+
export declare enum Devices {
|
|
9
|
+
Unknown = "Unknown",
|
|
10
|
+
Mobile = "Mobile",
|
|
11
|
+
Desktop = "Desktop"
|
|
12
|
+
}
|
|
13
|
+
export declare enum Engines {
|
|
14
|
+
Unknown = "Unknown",
|
|
15
|
+
EdgeHTML = "EdgeHTML",
|
|
16
|
+
ArkWeb = "ArkWeb",
|
|
17
|
+
Blink = "Blink",
|
|
18
|
+
Presto = "Presto",
|
|
19
|
+
WebKit = "WebKit",
|
|
20
|
+
Trident = "Trident",
|
|
21
|
+
NetFront = "NetFront",
|
|
22
|
+
KHTML = "KHTML",
|
|
23
|
+
Tasman = "Tasman",
|
|
24
|
+
Gecko = "Gecko"
|
|
25
|
+
}
|
|
26
|
+
export declare enum Browsers {
|
|
27
|
+
Unknown = "Unknown",
|
|
28
|
+
Chrome = "Chrome",
|
|
29
|
+
Safari = "Safari",
|
|
30
|
+
Edge = "Edge",
|
|
31
|
+
Firefox = "Firefox",
|
|
32
|
+
Opera = "Opera",
|
|
33
|
+
IE = "IE",
|
|
34
|
+
SamsungInternet = "SamsungInternet"
|
|
35
|
+
}
|
|
36
|
+
export declare enum CrossPlatformFramework {
|
|
37
|
+
NotACrossPlatformFramework = "NotACrossPlatformFramework",
|
|
38
|
+
ReactNative = "ReactNative",
|
|
39
|
+
Electron = "Electron",
|
|
40
|
+
Cordova = "Cordova"
|
|
41
|
+
}
|
|
42
|
+
export declare const USER_AGENT: string;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { PlatformInstance } from "../types";
|
|
2
|
+
declare global {
|
|
3
|
+
var cordova: string | undefined;
|
|
4
|
+
var device: CordovaDevice | undefined;
|
|
5
|
+
interface Navigator {
|
|
6
|
+
userAgent?: string;
|
|
7
|
+
userAgentData?: UserAgentData;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
interface CordovaDevice {
|
|
11
|
+
platform: string;
|
|
12
|
+
version: string;
|
|
13
|
+
}
|
|
14
|
+
interface ModernUserAgentDataBrand {
|
|
15
|
+
brand: string;
|
|
16
|
+
version: string;
|
|
17
|
+
}
|
|
18
|
+
type UserAgentDataBrand = ModernUserAgentDataBrand | string | null | undefined;
|
|
19
|
+
interface UserAgentDataValues {
|
|
20
|
+
brands?: UserAgentDataBrand[];
|
|
21
|
+
fullVersionList?: UserAgentDataBrand[];
|
|
22
|
+
platformVersion?: string | null | undefined;
|
|
23
|
+
}
|
|
24
|
+
interface UserAgentData {
|
|
25
|
+
getHighEntropyValues?(hints: string[]): Promise<UserAgentDataValues>;
|
|
26
|
+
}
|
|
27
|
+
declare const Platform: PlatformInstance;
|
|
28
|
+
export default Platform;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { NativePlugin } from "../../types";
|
|
2
|
-
import
|
|
3
|
-
import { Browsers, Devices, Engines, OS } from "
|
|
2
|
+
import { PlatformInstance } from "./types";
|
|
3
|
+
import { Browsers, CrossPlatformFramework, Devices, Engines, OS } from "./constants";
|
|
4
4
|
export * from "./types";
|
|
5
5
|
declare const NativePlatformPlugin: NativePlugin<'Platform', PlatformInstance, {
|
|
6
6
|
OS: typeof OS;
|
|
7
7
|
Devices: typeof Devices;
|
|
8
8
|
Engines: typeof Engines;
|
|
9
9
|
Browsers: typeof Browsers;
|
|
10
|
+
CrossPlatformFramework: typeof CrossPlatformFramework;
|
|
10
11
|
}, {}>;
|
|
11
12
|
export default NativePlatformPlugin;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { Devices, Engines,
|
|
1
|
+
import { Browsers, CrossPlatformFramework, Devices, Engines, OS } from "../constants";
|
|
2
2
|
export declare interface PlatformInstance {
|
|
3
3
|
os: OS;
|
|
4
4
|
device: Devices;
|
|
5
5
|
engine: Engines;
|
|
6
6
|
browser: Browsers;
|
|
7
|
+
crossPlatformFramework: CrossPlatformFramework;
|
|
7
8
|
osVersion: string;
|
|
8
9
|
engineVersion: string;
|
|
9
10
|
browserVersion: string;
|
|
10
11
|
renderer: string;
|
|
11
|
-
|
|
12
|
+
userAgent: string;
|
|
13
|
+
isNode: boolean;
|
|
12
14
|
isStandalone: boolean;
|
|
13
15
|
isMobile: boolean;
|
|
14
16
|
isDesktop: boolean;
|
|
17
|
+
isWebview: boolean;
|
|
15
18
|
}
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
import type { ListenerEntry } from "../types";
|
|
2
|
-
export declare enum Appearances {
|
|
3
|
-
Unknown = "unknown",
|
|
4
|
-
Light = "light",
|
|
5
|
-
Dark = "dark"
|
|
6
|
-
}
|
|
7
|
-
export declare const MEDIA_QUERY_LIST: MediaQueryList;
|
|
8
|
-
export declare const SUPPORT_PREFERS_COLOR_SCHEME: boolean;
|
|
9
|
-
export declare const IS_FULL_SUPPORT_THEME_COLOR: boolean;
|
|
10
|
-
export declare const CONTEXT: CanvasRenderingContext2D | null;
|
|
11
|
-
export declare const SVG_PIXEL_DATA_URL: string;
|
|
12
1
|
export declare const IS_IE_MOBILE: boolean;
|
|
13
2
|
export declare const IS_WINDOWS_PHONE: boolean;
|
|
14
|
-
export declare const ENTRIES: ListenerEntry[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ThemeInstance } from "../types";
|
|
2
|
-
declare const
|
|
3
|
-
export default
|
|
2
|
+
declare const Theme: ThemeInstance;
|
|
3
|
+
export default Theme;
|
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
import type { NativePlugin } from "../../types";
|
|
2
2
|
import type { ThemeInstance } from "./types";
|
|
3
|
-
import { Appearances } from "./constants";
|
|
4
|
-
import { EasingError, UnsupportedEasingFunctionError, StepSyntaxError, LinearSyntaxError, CubicBezierSyntaxError } from "./errors/easing-error";
|
|
5
|
-
import { UnsupportedColorError } from "./errors/unsupported-color-error";
|
|
6
3
|
export * from "./types";
|
|
7
|
-
declare const NativeThemePlugin: NativePlugin<'Theme', ThemeInstance, {
|
|
8
|
-
Appearances: typeof Appearances;
|
|
9
|
-
}, {
|
|
10
|
-
EasingError: typeof EasingError;
|
|
11
|
-
UnsupportedEasingFunctionError: typeof UnsupportedEasingFunctionError;
|
|
12
|
-
StepSyntaxError: typeof StepSyntaxError;
|
|
13
|
-
LinearSyntaxError: typeof LinearSyntaxError;
|
|
14
|
-
CubicBezierSyntaxError: typeof CubicBezierSyntaxError;
|
|
15
|
-
UnsupportedColorError: typeof UnsupportedColorError;
|
|
16
|
-
}>;
|
|
4
|
+
declare const NativeThemePlugin: NativePlugin<'Theme', ThemeInstance, {}, {}>;
|
|
17
5
|
export default NativeThemePlugin;
|
|
@@ -1,23 +1,11 @@
|
|
|
1
|
-
export * from "./color";
|
|
2
|
-
export * from "./easing-syntax";
|
|
3
1
|
export * from "./theme";
|
|
4
2
|
import type { ThemeInstance } from "./theme";
|
|
5
|
-
import { Appearances } from "../constants";
|
|
6
|
-
import { UnsupportedColorError } from "../errors/unsupported-color-error";
|
|
7
|
-
import { CubicBezierSyntaxError, EasingError, LinearSyntaxError, StepSyntaxError, UnsupportedEasingFunctionError } from "../errors/easing-error";
|
|
8
3
|
declare module 'native-fn' {
|
|
9
4
|
interface NativePlugins {
|
|
10
5
|
Theme: ThemeInstance;
|
|
11
6
|
}
|
|
12
7
|
interface NativeConstants {
|
|
13
|
-
Appearances: typeof Appearances;
|
|
14
8
|
}
|
|
15
9
|
interface NativeErrors {
|
|
16
|
-
EasingError: typeof EasingError;
|
|
17
|
-
UnsupportedEasingFunctionError: typeof UnsupportedEasingFunctionError;
|
|
18
|
-
StepSyntaxError: typeof StepSyntaxError;
|
|
19
|
-
LinearSyntaxError: typeof LinearSyntaxError;
|
|
20
|
-
CubicBezierSyntaxError: typeof CubicBezierSyntaxError;
|
|
21
|
-
UnsupportedColorError: typeof UnsupportedColorError;
|
|
22
10
|
}
|
|
23
11
|
}
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
import { Appearances } from "../constants";
|
|
2
|
-
import type { EasingKeyword, EasingSyntax, Color } from "../types";
|
|
3
|
-
export declare interface ListenerEntry {
|
|
4
|
-
fn: (appearance: Appearances) => any;
|
|
5
|
-
capture: boolean;
|
|
6
|
-
once: boolean;
|
|
7
|
-
signal?: AbortSignal;
|
|
8
|
-
}
|
|
9
|
-
export declare type ThemeColorMetaAppearanceKeys = 'default' | 'dark' | 'light';
|
|
10
|
-
export declare type ThemeColorMetaGroup = Partial<Record<ThemeColorMetaAppearanceKeys, HTMLMetaElement>>;
|
|
11
|
-
export declare interface SetThemeColorOptions {
|
|
12
|
-
appearance?: ThemeColorMetaAppearanceKeys;
|
|
13
|
-
duration?: number;
|
|
14
|
-
easingFunction?: EasingSyntax | EasingKeyword;
|
|
15
|
-
defaultColor?: string;
|
|
16
|
-
}
|
|
17
1
|
export declare interface ThemeInstance {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
removeThemeColor(appearance?: ThemeColorMetaAppearanceKeys): void;
|
|
21
|
-
getAppearance(): Promise<Appearances>;
|
|
22
|
-
setAppearance(appearances?: Exclude<Appearances, Appearances.Unknown>): void;
|
|
23
|
-
onAppearanceChange(listener: (appearance?: Appearances) => any, options?: boolean | AddEventListenerOptions): () => void;
|
|
2
|
+
get value(): string | undefined;
|
|
3
|
+
set value(color: string | undefined);
|
|
24
4
|
}
|
|
@@ -90,24 +90,31 @@ var Browsers;
|
|
|
90
90
|
Browsers["IE"] = "IE";
|
|
91
91
|
Browsers["SamsungInternet"] = "SamsungInternet";
|
|
92
92
|
})(Browsers || (Browsers = {}));
|
|
93
|
-
var
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
var CrossPlatformFramework;
|
|
94
|
+
(function (CrossPlatformFramework) {
|
|
95
|
+
CrossPlatformFramework["NotACrossPlatformFramework"] = "NotACrossPlatformFramework";
|
|
96
|
+
CrossPlatformFramework["ReactNative"] = "ReactNative";
|
|
97
|
+
CrossPlatformFramework["Electron"] = "Electron";
|
|
98
|
+
CrossPlatformFramework["Cordova"] = "Cordova";
|
|
99
|
+
})(CrossPlatformFramework || (CrossPlatformFramework = {}));
|
|
100
|
+
var USER_AGENT = typeof globalThis.navigator !== 'undefined' && typeof globalThis.navigator.userAgent === 'string' ? globalThis.navigator.userAgent : '';
|
|
101
|
+
|
|
97
102
|
var Platform = {
|
|
98
103
|
device: Devices.Unknown,
|
|
99
104
|
os: OS.Unknown,
|
|
100
|
-
osVersion: '',
|
|
101
105
|
engine: Engines.Unknown,
|
|
102
|
-
engineVersion: '',
|
|
103
106
|
browser: Browsers.Unknown,
|
|
107
|
+
crossPlatformFramework: CrossPlatformFramework.NotACrossPlatformFramework,
|
|
108
|
+
osVersion: '',
|
|
109
|
+
engineVersion: '',
|
|
104
110
|
browserVersion: '',
|
|
105
111
|
renderer: getRenderer(),
|
|
106
|
-
userAgent:
|
|
112
|
+
userAgent: USER_AGENT,
|
|
113
|
+
isNode: typeof globalThis.process !== 'undefined' && typeof globalThis.process.versions !== 'undefined' && globalThis.process.versions.node !== undefined,
|
|
107
114
|
isMobile: false,
|
|
108
115
|
isDesktop: false,
|
|
109
116
|
isStandalone: false,
|
|
110
|
-
isWebview: /; ?wv|applewebkit(?!.*safari)/i.test(
|
|
117
|
+
isWebview: /; ?wv|applewebkit(?!.*safari)/i.test(USER_AGENT),
|
|
111
118
|
};
|
|
112
119
|
var OS_RESOLVER_MAP = [
|
|
113
120
|
[/windows nt (6\.[23]); arm/i, OS.Windows, resolveWindowsVersion],
|
|
@@ -376,6 +383,12 @@ function getSemanticVersion(string) {
|
|
|
376
383
|
build: parseInt(parts[2] || '0')
|
|
377
384
|
};
|
|
378
385
|
}
|
|
386
|
+
if ((typeof globalThis.process !== 'undefined' && typeof globalThis.process.versions !== 'undefined' && globalThis.process.versions.electron !== undefined) || (/ electron\//i.test(USER_AGENT))) {
|
|
387
|
+
Platform.crossPlatformFramework = CrossPlatformFramework.Electron;
|
|
388
|
+
}
|
|
389
|
+
if (typeof globalThis.navigator !== 'undefined' && globalThis.navigator.product === 'ReactNative') {
|
|
390
|
+
Platform.crossPlatformFramework = CrossPlatformFramework.ReactNative;
|
|
391
|
+
}
|
|
379
392
|
for (var i = 0; i < OS_RESOLVER_MAP.length; i++) {
|
|
380
393
|
var map = OS_RESOLVER_MAP[i];
|
|
381
394
|
var regexp = map[0];
|
|
@@ -417,7 +430,7 @@ for (var i = 0; i < BROWSER_RESOLVER_MAP.length; i++) {
|
|
|
417
430
|
break;
|
|
418
431
|
}
|
|
419
432
|
}
|
|
420
|
-
if (
|
|
433
|
+
if (Platform.crossPlatformFramework === CrossPlatformFramework.ReactNative) {
|
|
421
434
|
try {
|
|
422
435
|
var reactNative = require('react-native');
|
|
423
436
|
var platform = reactNative.Platform;
|
|
@@ -446,7 +459,7 @@ if (IS_REACT_NATIVE) {
|
|
|
446
459
|
catch (_) {
|
|
447
460
|
}
|
|
448
461
|
}
|
|
449
|
-
if (
|
|
462
|
+
if (Platform.isNode) {
|
|
450
463
|
try {
|
|
451
464
|
var os = require('os');
|
|
452
465
|
var platform = os.platform();
|
|
@@ -478,6 +491,7 @@ if (IS_NODE_JS) {
|
|
|
478
491
|
}
|
|
479
492
|
if (typeof globalThis.document !== 'undefined') {
|
|
480
493
|
globalThis.document.addEventListener("deviceready", function () {
|
|
494
|
+
Platform.crossPlatformFramework = CrossPlatformFramework.Cordova;
|
|
481
495
|
if (Platform.os === OS.Unknown && typeof globalThis.device !== 'undefined') {
|
|
482
496
|
switch (globalThis.device.platform) {
|
|
483
497
|
case 'Android':
|
|
@@ -576,11 +590,11 @@ function getAppearanceFromElectron() {
|
|
|
576
590
|
}
|
|
577
591
|
}
|
|
578
592
|
function getAppearance() {
|
|
579
|
-
if (
|
|
593
|
+
if (Platform.crossPlatformFramework === CrossPlatformFramework.ReactNative)
|
|
580
594
|
return new Promise(function (resolve) {
|
|
581
595
|
resolve(getAppearanceFromReactNative());
|
|
582
596
|
});
|
|
583
|
-
if (
|
|
597
|
+
if (Platform.crossPlatformFramework === CrossPlatformFramework.Electron)
|
|
584
598
|
return new Promise(function (resolve) {
|
|
585
599
|
resolve(getAppearanceFromElectron());
|
|
586
600
|
});
|
|
@@ -591,7 +605,7 @@ function getAppearance() {
|
|
|
591
605
|
});
|
|
592
606
|
}
|
|
593
607
|
function setAppearance(appearance) {
|
|
594
|
-
if (
|
|
608
|
+
if (Platform.crossPlatformFramework === CrossPlatformFramework.ReactNative) {
|
|
595
609
|
try {
|
|
596
610
|
var reactNative = require('react-native');
|
|
597
611
|
reactNative.Appearance.setColorScheme(appearance);
|
|
@@ -600,7 +614,7 @@ function setAppearance(appearance) {
|
|
|
600
614
|
catch (_) {
|
|
601
615
|
}
|
|
602
616
|
}
|
|
603
|
-
if (
|
|
617
|
+
if (Platform.crossPlatformFramework === CrossPlatformFramework.Electron) {
|
|
604
618
|
try {
|
|
605
619
|
var electron = require('electron');
|
|
606
620
|
electron.nativeTheme.themeSource = appearance || 'system';
|
|
@@ -716,9 +730,9 @@ function onchangeElectron(listener) {
|
|
|
716
730
|
}
|
|
717
731
|
function onchange(listener, options) {
|
|
718
732
|
if (options === void 0) { options = false; }
|
|
719
|
-
if (
|
|
733
|
+
if (Platform.crossPlatformFramework === CrossPlatformFramework.ReactNative)
|
|
720
734
|
return onchangeReactNative(listener);
|
|
721
|
-
if (
|
|
735
|
+
if (Platform.crossPlatformFramework === CrossPlatformFramework.Electron)
|
|
722
736
|
return onchangeElectron(listener);
|
|
723
737
|
var entry = { fn: listener, capture: false, once: false };
|
|
724
738
|
if (typeof options === 'boolean')
|