@fkn/lib 0.9.14 → 0.9.16
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/cloud/dgram.cjs +1 -1
- package/cloud/dgram.js +1 -1
- package/cloud/net.cjs +1 -1
- package/cloud/net.d.ts +1 -1
- package/cloud/net.js +1 -1
- package/{cloud-xlvU7_rs.d.ts → cloud--8SYg1so.d.ts} +2 -2
- package/cloud-Djen7gmX.js +130 -0
- package/cloud-OOksFtTZ.cjs +1 -0
- package/cloud.cjs +1 -1
- package/cloud.d.ts +2 -2
- package/cloud.js +3 -3
- package/{dgram-BDXvc69t.js → dgram-BP0jykk_.js} +14 -7
- package/dgram-CECo4EQT.cjs +1 -0
- package/dgram.cjs +1 -1
- package/dgram.d.ts +55 -0
- package/dgram.js +1 -1
- package/{extension-B0qU5XuR.d.ts → extension-CN9oFZ0Q.d.ts} +1 -1
- package/extension-DPlyfEPO.cjs +1 -0
- package/extension-xVdvgkZL.js +78 -0
- package/extension.cjs +1 -1
- package/extension.d.ts +2 -2
- package/extension.js +3 -3
- package/http.cjs +1 -1
- package/http.d.ts +1 -1
- package/http.js +1 -1
- package/{index-DQfP-Uhy.d.ts → index-DLaonjpx.d.ts} +18 -18
- package/index.cjs +1 -1
- package/index.d.ts +4 -4
- package/index.js +11 -11
- package/{lib-BcEnB4iV.js → lib-CegQxwDI.js} +559 -298
- package/lib-ulyxIbTr.cjs +53 -0
- package/{net-CR3V3Q5W.js → net-BDAN5Mvc.js} +12 -4
- package/{net-1AjTrb23.d.ts → net-BnGcJpUb.d.ts} +14 -1
- package/net-kma1sFhK.cjs +1 -0
- package/net.cjs +1 -1
- package/net.d.ts +1 -1
- package/net.js +1 -1
- package/package.json +1 -1
- package/cloud-C28lGQEP.cjs +0 -1
- package/cloud-y88zoTpE.js +0 -283
- package/dgram-C1E6TUWN.cjs +0 -1
- package/extension-B8fd9lvk.cjs +0 -1
- package/extension-Cts968cO.js +0 -78
- package/lib-CQqdCndr.cjs +0 -31
- package/net-D3A-Z8RL.cjs +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { BoxBase, Capable, DefaultRevivableModules, RevivableContext, UnderlyingType } from "osra";
|
|
2
2
|
|
|
3
|
-
//#region
|
|
3
|
+
//#region node_modules/@mfkn/web-extension/lib/lib/forgeable-headers.d.ts
|
|
4
4
|
declare const FORGEABLE_HEADERS: string[];
|
|
5
5
|
declare const hasForgedCookie: (unsafeHeaders: [string, string][] | undefined) => boolean;
|
|
6
6
|
declare const assertOneCookieIdentity: (unsafeHeaders: [string, string][] | undefined, credentials: 'include' | 'omit') => void;
|
|
7
7
|
declare const assertForgeableHeaders: (unsafeHeaders: [string, string][] | undefined) => void;
|
|
8
8
|
//#endregion
|
|
9
|
-
//#region
|
|
9
|
+
//#region node_modules/@mfkn/web-extension/lib/lib/fetch.d.ts
|
|
10
10
|
declare const fetchPermission: {
|
|
11
11
|
readonly scope: 'network.fetch';
|
|
12
12
|
readonly category: 'network';
|
|
@@ -49,7 +49,7 @@ declare const isBlockedFetchUrl: (raw: string) => boolean;
|
|
|
49
49
|
declare const assertFetchableUrl: (raw: string) => void;
|
|
50
50
|
declare const fetch: (input: RequestInfo | URL, init?: FetchInit) => Promise<Response>;
|
|
51
51
|
//#endregion
|
|
52
|
-
//#region
|
|
52
|
+
//#region node_modules/@mfkn/web-extension/lib/lib/cookies.d.ts
|
|
53
53
|
declare const readCookiePermission: {
|
|
54
54
|
readonly scope: 'network.readCookie';
|
|
55
55
|
readonly category: 'network';
|
|
@@ -70,7 +70,7 @@ declare const cookies: {
|
|
|
70
70
|
get: (details: CookieDetails) => Promise<SiteCookie | null>;
|
|
71
71
|
};
|
|
72
72
|
//#endregion
|
|
73
|
-
//#region
|
|
73
|
+
//#region node_modules/@mfkn/web-extension/lib/lib/request-rules.d.ts
|
|
74
74
|
declare const modifyRequestHeadersPermission: {
|
|
75
75
|
readonly scope: 'network.modifyRequestHeaders';
|
|
76
76
|
readonly category: 'network';
|
|
@@ -94,7 +94,7 @@ declare const setRequestHeaderRule: (rule: RequestHeaderRule) => Promise<{
|
|
|
94
94
|
}>;
|
|
95
95
|
declare const removeRequestHeaderRule: (ruleId: number) => Promise<void>;
|
|
96
96
|
//#endregion
|
|
97
|
-
//#region
|
|
97
|
+
//#region node_modules/@mfkn/frame-locator/lib/types.d.ts
|
|
98
98
|
type ChainKind = 'element' | 'frame';
|
|
99
99
|
type SelectorPart = {
|
|
100
100
|
kind: ChainKind;
|
|
@@ -146,7 +146,7 @@ type Executor = {
|
|
|
146
146
|
stale?: Promise<void>;
|
|
147
147
|
};
|
|
148
148
|
//#endregion
|
|
149
|
-
//#region
|
|
149
|
+
//#region node_modules/@mfkn/frame-locator/lib/errors.d.ts
|
|
150
150
|
declare const LOCATOR_ERROR = "LocatorError";
|
|
151
151
|
declare const LOCATOR_UNSUPPORTED = "LocatorUnsupportedError";
|
|
152
152
|
declare const LOCATOR_DENIED = "LocatorDeniedError";
|
|
@@ -154,13 +154,13 @@ declare const isLocatorUnsupported: (error: unknown) => boolean;
|
|
|
154
154
|
declare const isLocatorDenied: (error: unknown) => boolean;
|
|
155
155
|
declare const isTerminalError: (error: unknown) => boolean;
|
|
156
156
|
//#endregion
|
|
157
|
-
//#region
|
|
157
|
+
//#region node_modules/@mfkn/frame-locator/lib/add-style-tag.d.ts
|
|
158
158
|
type AddStyleTagOptions$1 = OperationOptions & {
|
|
159
159
|
content: string;
|
|
160
160
|
noSanitize?: boolean;
|
|
161
161
|
};
|
|
162
162
|
//#endregion
|
|
163
|
-
//#region
|
|
163
|
+
//#region node_modules/@mfkn/frame-locator/lib/operations.d.ts
|
|
164
164
|
type PositionOptions$1 = OperationOptions & {
|
|
165
165
|
position?: {
|
|
166
166
|
x?: number;
|
|
@@ -168,7 +168,7 @@ type PositionOptions$1 = OperationOptions & {
|
|
|
168
168
|
};
|
|
169
169
|
};
|
|
170
170
|
//#endregion
|
|
171
|
-
//#region
|
|
171
|
+
//#region node_modules/@mfkn/frame-locator/lib/modules.d.ts
|
|
172
172
|
declare const defaultModules: {
|
|
173
173
|
readonly element: {
|
|
174
174
|
readonly selectors: {
|
|
@@ -315,7 +315,7 @@ type Extended<B extends Modules, S extends ModulesSpec> = {
|
|
|
315
315
|
frame: MergeKind<B['frame'], S['frame']>;
|
|
316
316
|
};
|
|
317
317
|
//#endregion
|
|
318
|
-
//#region
|
|
318
|
+
//#region node_modules/@mfkn/frame-locator/lib/chain.d.ts
|
|
319
319
|
type ArgsOf<M> = M extends {
|
|
320
320
|
resolve: (context: never, ...args: infer A) => unknown;
|
|
321
321
|
} ? A : never;
|
|
@@ -400,7 +400,7 @@ declare const isType: (value: unknown) => value is RemoteVideoElement;
|
|
|
400
400
|
declare const box: <T extends RemoteVideoElement, T2 extends RevivableContext>(value: T, context: T2) => BoxedVideoElement;
|
|
401
401
|
declare const revive: <T extends BoxedVideoElement, T2 extends RevivableContext>(value: T, context: T2) => T[UnderlyingType];
|
|
402
402
|
//#endregion
|
|
403
|
-
//#region
|
|
403
|
+
//#region node_modules/@mfkn/web-extension/lib/lib/revivables/index.d.ts
|
|
404
404
|
declare const handleRevivableModules: (defaults: DefaultRevivableModules) => readonly [typeof video_d_exports, typeof import("osra/build/revivables/transfer"), typeof import("osra/build/revivables/identity"), typeof import("osra/build/revivables/array-buffer"), typeof import("osra/build/revivables/date"), typeof import("osra/build/revivables/headers"), typeof import("osra/build/revivables/error"), typeof import("osra/build/revivables/typed-array"), typeof import("osra/build/revivables/promise"), typeof import("osra/build/revivables/function"), typeof import("osra/build/revivables/message-port"), typeof import("osra/build/revivables/readable-stream"), typeof import("osra/build/revivables/writable-stream"), typeof import("osra/build/revivables/abort-signal"), typeof import("osra/build/revivables/response"), typeof import("osra/build/revivables/request"), typeof import("osra/build/revivables/map"), typeof import("osra/build/revivables/set"), typeof import("osra/build/revivables/bigint"), typeof import("osra/build/revivables/symbol"), typeof import("osra/build/revivables/event"), typeof import("osra/build/revivables/async-iterator"), {
|
|
405
405
|
readonly type: 'nonFiniteNumber';
|
|
406
406
|
readonly isType: (value: unknown) => value is number;
|
|
@@ -436,7 +436,7 @@ declare const handleRevivableModules: (defaults: DefaultRevivableModules) => rea
|
|
|
436
436
|
readonly revive: (_value: import("osra/build/revivables/fallbacks").BoxedUnclonable, _context: import("osra").RevivableContext<any>) => Record<string, never>;
|
|
437
437
|
}];
|
|
438
438
|
//#endregion
|
|
439
|
-
//#region
|
|
439
|
+
//#region node_modules/@mfkn/web-extension/lib/lib/locator-modules.d.ts
|
|
440
440
|
type LocatorOptions = OperationOptions & {
|
|
441
441
|
reason?: string;
|
|
442
442
|
};
|
|
@@ -614,7 +614,7 @@ declare const locatorModules: Extended<{
|
|
|
614
614
|
}>;
|
|
615
615
|
type LocatorModules = typeof locatorModules;
|
|
616
616
|
//#endregion
|
|
617
|
-
//#region
|
|
617
|
+
//#region node_modules/@mfkn/web-extension/lib/lib/frame-url.d.ts
|
|
618
618
|
declare const isBlockedFrameUrl: (raw: string) => boolean;
|
|
619
619
|
declare const assertAttachableFrameUrl: (raw: string) => void;
|
|
620
620
|
declare const assertLockdownApplicable: ({
|
|
@@ -627,7 +627,7 @@ declare const assertLockdownApplicable: ({
|
|
|
627
627
|
lockdown: boolean;
|
|
628
628
|
}) => void;
|
|
629
629
|
//#endregion
|
|
630
|
-
//#region
|
|
630
|
+
//#region node_modules/@mfkn/web-extension/lib/lib/frame-core.d.ts
|
|
631
631
|
type Locator = Locator$1<LocatorModules>;
|
|
632
632
|
declare const attachFramePermission: {
|
|
633
633
|
readonly scope: 'embed.iframe';
|
|
@@ -665,7 +665,7 @@ type FrameBackend = {
|
|
|
665
665
|
};
|
|
666
666
|
declare const createFrame: (backend: FrameBackend) => Frame;
|
|
667
667
|
//#endregion
|
|
668
|
-
//#region
|
|
668
|
+
//#region node_modules/@mfkn/web-extension/lib/lib/frame.d.ts
|
|
669
669
|
declare const ATTACH_FRAME_EVENT_KEY = "FKN_WEB_EXTENSION_ATTACH_FRAME_EVENT_KEY";
|
|
670
670
|
declare const attachFrame: ({
|
|
671
671
|
iframe,
|
|
@@ -674,7 +674,7 @@ declare const attachFrame: ({
|
|
|
674
674
|
lockdown
|
|
675
675
|
}: AttachFrameOptions) => Promise<Frame>;
|
|
676
676
|
//#endregion
|
|
677
|
-
//#region
|
|
677
|
+
//#region node_modules/@mfkn/web-extension/lib/permission/shared/registry.d.ts
|
|
678
678
|
declare const PERMISSIONS: readonly [{
|
|
679
679
|
readonly scope: 'read.text';
|
|
680
680
|
readonly category: 'read';
|
|
@@ -791,7 +791,7 @@ declare const PERMISSIONS: readonly [{
|
|
|
791
791
|
}];
|
|
792
792
|
type PermissionScope = (typeof PERMISSIONS)[number]['scope'];
|
|
793
793
|
//#endregion
|
|
794
|
-
//#region
|
|
794
|
+
//#region node_modules/@mfkn/web-extension/lib/lib/permissions.d.ts
|
|
795
795
|
type PermissionRequest = {
|
|
796
796
|
key: PermissionScope;
|
|
797
797
|
scope?: string;
|
|
@@ -806,7 +806,7 @@ declare const permissions: {
|
|
|
806
806
|
request: (requests: PermissionRequest[]) => Promise<PermissionGrant[]>;
|
|
807
807
|
};
|
|
808
808
|
//#endregion
|
|
809
|
-
//#region
|
|
809
|
+
//#region node_modules/@mfkn/web-extension/lib/utils/extension.d.ts
|
|
810
810
|
type ExtensionEventMap = {
|
|
811
811
|
statuschange: CustomEvent<{
|
|
812
812
|
enabled: boolean;
|
package/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./lib-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./lib-ulyxIbTr.cjs"),t=require("./api-D5ioM3pa.cjs"),n=require("./cloud-OOksFtTZ.cjs"),r=require("./dns.cjs"),i=require("./net-kma1sFhK.cjs"),a=require("./dgram-CECo4EQT.cjs"),o=require("./http.cjs"),s=require("./extension-DPlyfEPO.cjs"),c=require("./desktop.cjs"),l=require("./fs-DKseuFE2.cjs"),u=require("./opfs.cjs"),d=require("./packages.cjs"),f=require("./account.cjs"),p=require("./connect-button-BBEjXzB3.cjs");let m=require("osra");var h=1e4,g=150,_=()=>new Promise(t=>{if(e.P())return t(!0);let n,r=setTimeout(()=>i(e.P()),h),i=e=>{clearTimeout(n),clearTimeout(r),o.disconnect(),document.removeEventListener(`readystatechange`,s),t(e)},a=()=>{clearTimeout(n),n=setTimeout(()=>i(e.P()),g)},o=new MutationObserver(()=>{e.P()&&i(!0)}),s=()=>{document.readyState===`complete`&&!e.P()&&a()};o.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-fkn-extension`]}),document.addEventListener(`readystatechange`,s),document.readyState===`complete`&&a()}),v=async t=>s.r()||t.lockdown||!n.a()||await _()?e.r(t):n.i(t),y=`https://fkn.app`,b=async(e,n)=>{if(typeof window>`u`)throw Error(`FKN @fkn/lib: relayWorker must be called from the main thread`);let r=await t.i;if(!r)throw Error(`FKN @fkn/lib: relayWorker found no FKN transport in this realm`);(0,m.relay)(r,e,{key:`fkn-api`,...r.emit instanceof MessagePort?{}:{originA:n?.originA??y,originB:n?.originB??`*`},unregisterSignal:n?.unregisterSignal})},x=async()=>typeof window>`u`?!1:(await t.t).connect.prompt(location.origin).catch(()=>!1),S=async()=>typeof window>`u`?null:(await t.t).relay.prompt().catch(()=>null);exports.ATTACH_FRAME_EVENT_KEY=e.n,exports.FORGEABLE_HEADERS=e.k,exports.LOCATOR_DENIED=e.g,exports.LOCATOR_ERROR=e.u,exports.LOCATOR_UNSUPPORTED=e.h,Object.defineProperty(exports,"account",{enumerable:!0,get:function(){return f.t}}),exports.assertAttachableFrameUrl=e.s,exports.assertFetchableUrl=e.S,exports.assertForgeableHeaders=e.A,exports.assertLockdownApplicable=e.c,exports.assertOneCookieIdentity=e.j,exports.attachFrame=v,exports.attachFramePermission=e.i,exports.box=e.R,Object.defineProperty(exports,"cloud",{enumerable:!0,get:function(){return n.n}}),exports.connect=x,exports.connectButtonUrl=p.t,exports.cookies=e.b,exports.createFrame=e.a,exports.createVideoElementHandle=e.z,Object.defineProperty(exports,"desktop",{enumerable:!0,get:function(){return c.t}}),Object.defineProperty(exports,"dgram",{enumerable:!0,get:function(){return a.i}}),Object.defineProperty(exports,"dns",{enumerable:!0,get:function(){return r.t}}),Object.defineProperty(exports,"extension",{enumerable:!0,get:function(){return s.t}}),exports.fetch=s.n,exports.fetchCredentialedPermission=e.w,exports.fetchLocalPermission=e.T,exports.fetchPermission=e.E,Object.defineProperty(exports,"fs",{enumerable:!0,get:function(){return l.u}}),exports.gotoPermission=e.o,exports.handleRevivableModules=e.L,exports.hasForgedCookie=e.M,Object.defineProperty(exports,"http",{enumerable:!0,get:function(){return o.t}}),exports.isBlockedFetchUrl=e.D,exports.isBlockedFrameUrl=e.l,exports.isExtensionExposed=e.P,exports.isLocalNetworkUrl=e.O,exports.isLocatorDenied=e.d,exports.isLocatorUnsupported=e.m,exports.isTerminalError=e.p,exports.isType=e.B,exports.modifyRequestHeadersPermission=e._,Object.defineProperty(exports,"net",{enumerable:!0,get:function(){return i.s}}),Object.defineProperty(exports,"opfs",{enumerable:!0,get:function(){return u.t}}),Object.defineProperty(exports,"packages",{enumerable:!0,get:function(){return d.t}}),exports.permissions=e.t,exports.promptInstall=s.i,exports.promptRelay=S,exports.readCookiePermission=e.x,exports.relayWorker=b,exports.removeRequestHeaderRule=e.v,exports.revive=e.V,exports.setMissingExtensionHandler=e.F,exports.setRequestHeaderRule=e.y,exports.type=e.H,exports.waitForExtensionExposure=e.I;
|
package/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as account_d_exports } from "./account.js";
|
|
2
2
|
import { S as packages_d_exports } from "./packages-vX-1yfRK.js";
|
|
3
|
-
import { A as LOCATOR_DENIED, B as SelectorPart, C as RemoteVideoElement, D as isType, E as createVideoElementHandle, F as isTerminalError, G as setRequestHeaderRule, H as RequestHeaderRule, I as Executor, J as cookies, K as CookieDetails, L as Gate, M as LOCATOR_UNSUPPORTED, N as isLocatorDenied, O as revive, P as isLocatorUnsupported, Q as assertFetchableUrl, R as GateTools, S as BoxedVideoElement, T as box, U as modifyRequestHeadersPermission, V as HeaderOperation, W as removeRequestHeaderRule, X as FetchInit, Y as readCookiePermission, Z as ProxyFetchRequest, _ as gotoPermission, a as PermissionGrant, at as FORGEABLE_HEADERS, b as isBlockedFrameUrl, c as ATTACH_FRAME_EVENT_KEY, ct as hasForgedCookie, d as Frame, et as fetchCredentialedPermission, f as FrameBackend, g as createFrame, h as attachFramePermission, i as waitForExtensionExposure, it as isLocalNetworkUrl, j as LOCATOR_ERROR, k as type, m as Locator, n as isExtensionExposed, nt as fetchPermission, o as PermissionRequest, ot as assertForgeableHeaders, p as GotoOptions, q as SiteCookie, r as setMissingExtensionHandler, rt as isBlockedFetchUrl, s as permissions, st as assertOneCookieIdentity, tt as fetchLocalPermission, u as AttachFrameOptions, v as assertAttachableFrameUrl, w as VideoElementState, x as handleRevivableModules, y as assertLockdownApplicable, z as OperationRequest } from "./index-
|
|
4
|
-
import { n as cloud_d_exports } from "./cloud
|
|
3
|
+
import { A as LOCATOR_DENIED, B as SelectorPart, C as RemoteVideoElement, D as isType, E as createVideoElementHandle, F as isTerminalError, G as setRequestHeaderRule, H as RequestHeaderRule, I as Executor, J as cookies, K as CookieDetails, L as Gate, M as LOCATOR_UNSUPPORTED, N as isLocatorDenied, O as revive, P as isLocatorUnsupported, Q as assertFetchableUrl, R as GateTools, S as BoxedVideoElement, T as box, U as modifyRequestHeadersPermission, V as HeaderOperation, W as removeRequestHeaderRule, X as FetchInit, Y as readCookiePermission, Z as ProxyFetchRequest, _ as gotoPermission, a as PermissionGrant, at as FORGEABLE_HEADERS, b as isBlockedFrameUrl, c as ATTACH_FRAME_EVENT_KEY, ct as hasForgedCookie, d as Frame, et as fetchCredentialedPermission, f as FrameBackend, g as createFrame, h as attachFramePermission, i as waitForExtensionExposure, it as isLocalNetworkUrl, j as LOCATOR_ERROR, k as type, m as Locator, n as isExtensionExposed, nt as fetchPermission, o as PermissionRequest, ot as assertForgeableHeaders, p as GotoOptions, q as SiteCookie, r as setMissingExtensionHandler, rt as isBlockedFetchUrl, s as permissions, st as assertOneCookieIdentity, tt as fetchLocalPermission, u as AttachFrameOptions, v as assertAttachableFrameUrl, w as VideoElementState, x as handleRevivableModules, y as assertLockdownApplicable, z as OperationRequest } from "./index-DLaonjpx.js";
|
|
4
|
+
import { n as cloud_d_exports } from "./cloud--8SYg1so.js";
|
|
5
5
|
import { t as dns_d_exports } from "./dns.js";
|
|
6
|
-
import { s as net_d_exports } from "./net-
|
|
6
|
+
import { s as net_d_exports } from "./net-BnGcJpUb.js";
|
|
7
7
|
import { t as dgram_d_exports } from "./dgram.js";
|
|
8
8
|
import { t as http_d_exports } from "./http.js";
|
|
9
9
|
import { t as desktop_d_exports } from "./desktop.js";
|
|
10
|
-
import { i as promptInstall, n as fetch, t as extension_d_exports } from "./extension-
|
|
10
|
+
import { i as promptInstall, n as fetch, t as extension_d_exports } from "./extension-CN9oFZ0Q.js";
|
|
11
11
|
import { u as index_d_exports } from "./index-BIZeEsNu.js";
|
|
12
12
|
import { t as index_d_exports$1 } from "./opfs.js";
|
|
13
13
|
import { t as connectButtonUrl } from "./connect-button-D8KXSL6s.js";
|
package/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { A as e, B as t,
|
|
1
|
+
import { A as e, B as t, D as n, E as r, F as i, H as a, I as o, L as s, M as c, O as ee, P as l, R as u, S as d, T as f, V as p, _ as m, a as h, b as g, c as _, d as v, g as y, h as b, i as x, j as S, k as C, l as w, m as T, n as E, o as D, p as O, r as k, s as A, t as j, u as M, v as N, w as P, x as F, y as I, z as te } from "./lib-CegQxwDI.js";
|
|
2
2
|
import { i as L, t as R } from "./api-DAQQBty8.js";
|
|
3
|
-
import { a as z, i as B, n as V } from "./cloud-
|
|
3
|
+
import { a as z, i as B, n as V } from "./cloud-Djen7gmX.js";
|
|
4
4
|
import { t as H } from "./dns.js";
|
|
5
|
-
import { s as U } from "./net-
|
|
6
|
-
import { i as W } from "./dgram-
|
|
5
|
+
import { s as U } from "./net-BDAN5Mvc.js";
|
|
6
|
+
import { i as W } from "./dgram-BP0jykk_.js";
|
|
7
7
|
import { t as G } from "./http.js";
|
|
8
|
-
import { i as K, n as q, r as J, t as Y } from "./extension-
|
|
8
|
+
import { i as K, n as q, r as J, t as Y } from "./extension-xVdvgkZL.js";
|
|
9
9
|
import { t as X } from "./desktop.js";
|
|
10
10
|
import { u as Z } from "./fs-MJ2u5qvV.js";
|
|
11
11
|
import { t as Q } from "./opfs.js";
|
|
@@ -15,15 +15,15 @@ import { t as ie } from "./connect-button-Ds9KpXHe.js";
|
|
|
15
15
|
import { relay as ae } from "osra";
|
|
16
16
|
//#region src/lib/frame.ts
|
|
17
17
|
var oe = 1e4, $ = 150, se = () => new Promise((e) => {
|
|
18
|
-
if (
|
|
19
|
-
let t, n = setTimeout(() => r(
|
|
18
|
+
if (l()) return e(!0);
|
|
19
|
+
let t, n = setTimeout(() => r(l()), oe), r = (r) => {
|
|
20
20
|
clearTimeout(t), clearTimeout(n), a.disconnect(), document.removeEventListener("readystatechange", o), e(r);
|
|
21
21
|
}, i = () => {
|
|
22
|
-
clearTimeout(t), t = setTimeout(() => r(
|
|
22
|
+
clearTimeout(t), t = setTimeout(() => r(l()), $);
|
|
23
23
|
}, a = new MutationObserver(() => {
|
|
24
|
-
|
|
24
|
+
l() && r(!0);
|
|
25
25
|
}), o = () => {
|
|
26
|
-
document.readyState === "complete" && !
|
|
26
|
+
document.readyState === "complete" && !l() && i();
|
|
27
27
|
};
|
|
28
28
|
a.observe(document.documentElement, {
|
|
29
29
|
attributes: !0,
|
|
@@ -43,4 +43,4 @@ var oe = 1e4, $ = 150, se = () => new Promise((e) => {
|
|
|
43
43
|
});
|
|
44
44
|
}, de = async () => typeof window > "u" ? !1 : (await R).connect.prompt(location.origin).catch(() => !1), fe = async () => typeof window > "u" ? null : (await R).relay.prompt().catch(() => null);
|
|
45
45
|
//#endregion
|
|
46
|
-
export { E as ATTACH_FRAME_EVENT_KEY,
|
|
46
|
+
export { E as ATTACH_FRAME_EVENT_KEY, C as FORGEABLE_HEADERS, y as LOCATOR_DENIED, M as LOCATOR_ERROR, b as LOCATOR_UNSUPPORTED, re as account, A as assertAttachableFrameUrl, d as assertFetchableUrl, e as assertForgeableHeaders, _ as assertLockdownApplicable, S as assertOneCookieIdentity, ce as attachFrame, x as attachFramePermission, u as box, V as cloud, de as connect, ie as connectButtonUrl, g as cookies, h as createFrame, te as createVideoElementHandle, X as desktop, W as dgram, H as dns, Y as extension, q as fetch, P as fetchCredentialedPermission, f as fetchLocalPermission, r as fetchPermission, Z as fs, D as gotoPermission, s as handleRevivableModules, c as hasForgedCookie, G as http, n as isBlockedFetchUrl, w as isBlockedFrameUrl, l as isExtensionExposed, ee as isLocalNetworkUrl, v as isLocatorDenied, T as isLocatorUnsupported, O as isTerminalError, t as isType, m as modifyRequestHeadersPermission, U as net, Q as opfs, ne as packages, j as permissions, K as promptInstall, fe as promptRelay, F as readCookiePermission, ue as relayWorker, N as removeRequestHeaderRule, p as revive, i as setMissingExtensionHandler, I as setRequestHeaderRule, a as type, o as waitForExtensionExposure };
|