Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1"use strict";2var __create = Object.create;3var __defProp = Object.defineProperty;4var __getOwnPropDesc = Object.getOwnPropertyDescriptor;5var __getOwnPropNames = Object.getOwnPropertyNames;6var __getProtoOf = Object.getPrototypeOf;7var __hasOwnProp = Object.prototype.hasOwnProperty;8var __export = (target, all) => {9 for (var name in all)10 __defProp(target, name, { get: all[name], enumerable: true });11};12var __copyProps = (to, from, except, desc) => {13 if (from && typeof from === "object" || typeof from === "function") {14 for (let key of __getOwnPropNames(from))15 if (!__hasOwnProp.call(to, key) && key !== except)16 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });17 }18 return to;19};20var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(21 // If the importer is in node compatibility mode or this is not an ESM22 // file that has been converted to a CommonJS file using a Babel-23 // compatible transform (i.e. "__esModule" has not been set), then set24 // "default" to the CommonJS "module.exports" for node compatibility.25 isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,26 mod27));28var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);29var crInput_exports = {};30__export(crInput_exports, {31 RawKeyboardImpl: () => RawKeyboardImpl,32 RawMouseImpl: () => RawMouseImpl,33 RawTouchscreenImpl: () => RawTouchscreenImpl34});35module.exports = __toCommonJS(crInput_exports);36var import_utils = require("../../utils");37var input = __toESM(require("../input"));38var import_macEditingCommands = require("../macEditingCommands");39var import_crProtocolHelper = require("./crProtocolHelper");40class RawKeyboardImpl {41 constructor(_client, _isMac, _dragManger) {42 this._client = _client;43 this._isMac = _isMac;44 this._dragManger = _dragManger;45 }46 _commandsForCode(code, modifiers) {47 if (!this._isMac)48 return [];49 const parts = [];50 for (const modifier of ["Shift", "Control", "Alt", "Meta"]) {51 if (modifiers.has(modifier))52 parts.push(modifier);53 }54 parts.push(code);55 const shortcut = parts.join("+");56 let commands = import_macEditingCommands.macEditingCommands[shortcut] || [];57 if ((0, import_utils.isString)(commands))58 commands = [commands];59 commands = commands.filter((x) => !x.startsWith("insert"));60 return commands.map((c) => c.substring(0, c.length - 1));61 }62 async keydown(progress, modifiers, keyName, description, autoRepeat) {63 const { code, key, location, text } = description;64 if (code === "Escape" && await progress.race(this._dragManger.cancelDrag()))65 return;66 const commands = this._commandsForCode(code, modifiers);67 await progress.race(this._client.send("Input.dispatchKeyEvent", {68 type: text ? "keyDown" : "rawKeyDown",69 modifiers: (0, import_crProtocolHelper.toModifiersMask)(modifiers),70 windowsVirtualKeyCode: description.keyCodeWithoutLocation,71 code,72 commands,73 key,74 text,75 unmodifiedText: text,76 autoRepeat,77 location,78 isKeypad: location === input.keypadLocation79 }));80 }81 async keyup(progress, modifiers, keyName, description) {82 const { code, key, location } = description;83 await progress.race(this._client.send("Input.dispatchKeyEvent", {84 type: "keyUp",85 modifiers: (0, import_crProtocolHelper.toModifiersMask)(modifiers),86 key,87 windowsVirtualKeyCode: description.keyCodeWithoutLocation,88 code,89 location90 }));91 }92 async sendText(progress, text) {93 await progress.race(this._client.send("Input.insertText", { text }));94 }95}96class RawMouseImpl {97 constructor(page, client, dragManager) {98 this._page = page;99 this._client = client;100 this._dragManager = dragManager;101 }102 async move(progress, x, y, button, buttons, modifiers, forClick) {103 const actualMove = async () => {104 await progress.race(this._client.send("Input.dispatchMouseEvent", {105 type: "mouseMoved",106 button,107 buttons: (0, import_crProtocolHelper.toButtonsMask)(buttons),108 x,109 y,110 modifiers: (0, import_crProtocolHelper.toModifiersMask)(modifiers),111 force: buttons.size > 0 ? 0.5 : 0112 }));113 };114 if (forClick) {115 await actualMove();116 return;117 }118 await this._dragManager.interceptDragCausedByMove(progress, x, y, button, buttons, modifiers, actualMove);119 }120 async down(progress, x, y, button, buttons, modifiers, clickCount) {121 if (this._dragManager.isDragging())122 return;123 await progress.race(this._client.send("Input.dispatchMouseEvent", {124 type: "mousePressed",125 button,126 buttons: (0, import_crProtocolHelper.toButtonsMask)(buttons),127 x,128 y,129 modifiers: (0, import_crProtocolHelper.toModifiersMask)(modifiers),130 clickCount,131 force: buttons.size > 0 ? 0.5 : 0132 }));133 }134 async up(progress, x, y, button, buttons, modifiers, clickCount) {135 if (this._dragManager.isDragging()) {136 await this._dragManager.drop(progress, x, y, modifiers);137 return;138 }139 await progress.race(this._client.send("Input.dispatchMouseEvent", {140 type: "mouseReleased",141 button,142 buttons: (0, import_crProtocolHelper.toButtonsMask)(buttons),143 x,144 y,145 modifiers: (0, import_crProtocolHelper.toModifiersMask)(modifiers),146 clickCount147 }));148 }149 async wheel(progress, x, y, buttons, modifiers, deltaX, deltaY) {150 await progress.race(this._client.send("Input.dispatchMouseEvent", {151 type: "mouseWheel",152 x,153 y,154 modifiers: (0, import_crProtocolHelper.toModifiersMask)(modifiers),155 deltaX,156 deltaY157 }));158 }159}160class RawTouchscreenImpl {161 constructor(client) {162 this._client = client;163 }164 async tap(progress, x, y, modifiers) {165 await progress.race(Promise.all([166 this._client.send("Input.dispatchTouchEvent", {167 type: "touchStart",168 modifiers: (0, import_crProtocolHelper.toModifiersMask)(modifiers),169 touchPoints: [{170 x,171 y172 }]173 }),174 this._client.send("Input.dispatchTouchEvent", {175 type: "touchEnd",176 modifiers: (0, import_crProtocolHelper.toModifiersMask)(modifiers),177 touchPoints: []178 })179 ]));180 }181}182// Annotate the CommonJS export names for ESM import in node:1830 && (module.exports = {184 RawKeyboardImpl,185 RawMouseImpl,186 RawTouchscreenImpl187});188 