0
  5   ˆl–Ðz¾”d
i?u8 \¸Ó× 1hß�þB gÁi·žóÆƒh¹ÅÄÃ      MAJOR=13
MINOR=68
DEVNAME=input/event4
     	ˆÂÁÅ487ÀÄÃ ç    	‹      ¥”_oÚ0Åßû)îü°7rÃ_i­ã©#HC£€(Ó4M{pb“X;²M)ýô„­´‚�jO¹qÎ=9¿›Øô]<éÏ¿Oðy~7‚é×O£aHñ[»�ÏãúA'›ˆƒ1’{_^#n6›`ÓŒÍp>ÃÜ¯Š:oUêáaWt·Æ®€æ’‹ê
Ô+_H6ÔB>‚Y šµwJÈ®�E—s+Q˜•,mÒmù@±î©\ð`C#¶;÷æ�ª†}žìw¥eÔçðÀ•éˆxSFÕ*gÓˆ J�v˜\/ƒL-ðÂGäÇ°?ùYéÐç»nF9äV."ò±�o&QLØ˜¯$E~ZsWin	qçae„Z()ÎŠïkñ½z:o×šXºÔªÒ+£Ÿ¥X!£¦¦p%¯X»An�UµDük<}1Œéíl0žÇÃY=±³xNwî»6­Jí!VV¦ÞØí!rÝÿ^'®¼ù}‡@Ve¹' '•o HÍª´Ò9)ŽYª9�¤Hs®3Y˜,ˆe¢¸²'ÂN,3¼
Ý
[½FØm4C?\·Ú g„í ÷åéÖz©ÍF_„fÊíáÍÊË1šg1 ×úÆ…?$¶*Åý–§X(¿ ”&³    J   ˆl–Ým_Jµ2Ž¥2 ¸ ÜÅ£�þBÌ„Y¹DÓR· Æ@ùÇƒl5Æ_“I|¥ŽõHºl=$¤�zTÖ™	ÆÅ Ü    import {Resolver, promises as dnsPromises, lookup} from 'dns';
import {Agent} from 'http';

type AsyncResolver = dnsPromises.Resolver;

export type IPFamily = 4 | 6;
export type EntrySource = 'query' | 'cache';

type TPromise<T> = T | Promise<T>;

export interface CacheInstance {
	set(hostname: string, entries: EntryObject[], ttl: number): TPromise<void | boolean | this>;
	get(hostname: string): TPromise<EntryObject[] | undefined>;
	delete(hostname: string): TPromise<boolean>;
	clear(): TPromise<void>;
}

export interface Options {
	/**
	 * Custom cache instance. If `undefined`, it will create a new one.
	 * @default undefined
	 */
	cache?: CacheInstance;
	/**
	 * Limits the cache time (TTL). If set to `0`, it will make a new DNS query each time.
	 * @default Infinity
	 */
	maxTtl?: number;
	/**
	 * DNS Resolver used to make DNS queries.
	 * @default new dns.promises.Resolver()
	 */
	resolver?: Resolver | AsyncResolver;
	/**
	 * When the DNS server responds with `ENOTFOUND` or `ENODATA` and the OS reports that the entry is available,
	 * it will use `dns.lookup(...)` directly for the requested hostnames for the specified amount of time (in seconds).
	 *
	 * If you don't query internal hostnames (such as `localhost`, `database.local` etc.),
	 * it is strongly recommended to set this value to `0`.
	 * @default 3600
	 */
	fallbackDuration?: number;
	/**
	 * The time how long it needs to remember failed queries (TTL in seconds).
	 *
	 * **Note**: This option is independent, `options.maxTtl` does not affect this.
	 * @default 0.15
	 */
	errorTtl?: number;
	/**
	 * The fallback function to use when the DNS server responds with `ENOTFOUND` or `ENODATA`.
	 *
	 * **Note**: This has no effect if the `fallbackDuration` option is less than `1`.
	 * @default dns.lookup
	 */
	lookup?: typeof lookup | false;
}

export interface EntryObject {
	/**
	 * The IP address (can be an IPv4 or IPv5 address).
	 */
	readonly address: string;
	/**
	 * The IP family.
	 */
	readonly family: IPFamily;
	/**
	 * The original TTL.
	 */
	readonly ttl?: number;
	/**
	 * The expiration timestamp.
	 */
	readonly expires?: number;
	/**
	 * Whether this entry comes from the cache or a query
	 */
	readonly source?: EntrySource;
}

export interface LookupOptions {
	/**
	 * One or more supported getaddrinfo flags. Multiple flags may be passed by bitwise ORing their values.
	 */
	hints?: number;
	/**
	 * The record family. Must be `4` or `6`. IPv4 and IPv6 addresses are both returned by default.
	 */
	family?: IPFamily;
	/**
	 * When `true`, the callback returns all resolved addresses in an array. Otherwise, returns a single address.
	 * @default false
	 */
	all?: boolean;
}

export default class CacheableLookup {
	constructor(options?: Options);
	/**
	 * The DNS servers used to make queries. Can be overridden - doing so will clear the cache.
	 */
	servers: string[];
	/**
	 * @see https://nodejs.org/api/dns.html#dns_dns_lookup_hostname_options_callback
	 */
	lookup(hostname: string, family: IPFamily, callback: (error: NodeJS.ErrnoException | null, address: string, family: IPFamily) => void): void;
	lookup(hostname: string, callback: (error: NodeJS.ErrnoException | null, address: string, family: IPFamily) => void): void;
	lookup(hostname: string, options: LookupOptions & {all: true}, callback: (error: NodeJS.ErrnoException | null, result: ReadonlyArray<Entr