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
1function hasWindow() {2 return typeof window !== 'undefined';3}4function getNodeName(node) {5 if (isNode(node)) {6 return (node.nodeName || '').toLowerCase();7 }8 // Mocked nodes in testing environments may not be instances of Node. By9 // returning `#document` an infinite loop won't occur.10 // https://github.com/floating-ui/floating-ui/issues/231711 return '#document';12}13function getWindow(node) {14 var _node$ownerDocument;15 return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;16}17function getDocumentElement(node) {18 var _ref;19 return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;20}21function isNode(value) {22 if (!hasWindow()) {23 return false;24 }25 return value instanceof Node || value instanceof getWindow(value).Node;26}27function isElement(value) {28 if (!hasWindow()) {29 return false;30 }31 return value instanceof Element || value instanceof getWindow(value).Element;32}33function isHTMLElement(value) {34 if (!hasWindow()) {35 return false;36 }37 return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;38}39function isShadowRoot(value) {40 if (!hasWindow() || typeof ShadowRoot === 'undefined') {41 return false;42 }43 return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;44}45function isOverflowElement(element) {46 const {47 overflow,48 overflowX,49 overflowY,50 display51 } = getComputedStyle(element);52 return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== 'inline' && display !== 'contents';53}54function isTableElement(element) {55 return /^(table|td|th)$/.test(getNodeName(element));56}57function isTopLayer(element) {58 try {59 if (element.matches(':popover-open')) {60 return true;61 }62 } catch (_e) {63 // no-op64 }65 try {66 return element.matches(':modal');67 } catch (_e) {68 return false;69 }70}71const willChangeRe = /transform|translate|scale|rotate|perspective|filter/;72const containRe = /paint|layout|strict|content/;73const isNotNone = value => !!value && value !== 'none';74let isWebKitValue;75function isContainingBlock(elementOrCss) {76 const css = isElement(elementOrCss) ? getComputedStyle(elementOrCss) : elementOrCss;77 78 // https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block79 // https://drafts.csswg.org/css-transforms-2/#individual-transforms80 return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || '') || containRe.test(css.contain || '');81}82function getContainingBlock(element) {83 let currentNode = getParentNode(element);84 while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {85 if (isContainingBlock(currentNode)) {86 return currentNode;87 } else if (isTopLayer(currentNode)) {88 return null;89 }90 currentNode = getParentNode(currentNode);91 }92 return null;93}94function isWebKit() {95 if (isWebKitValue == null) {96 isWebKitValue = typeof CSS !== 'undefined' && CSS.supports && CSS.supports('-webkit-backdrop-filter', 'none');97 }98 return isWebKitValue;99}100function isLastTraversableNode(node) {101 return /^(html|body|#document)$/.test(getNodeName(node));102}103function getComputedStyle(element) {104 return getWindow(element).getComputedStyle(element);105}106function getNodeScroll(element) {107 if (isElement(element)) {108 return {109 scrollLeft: element.scrollLeft,110 scrollTop: element.scrollTop111 };112 }113 return {114 scrollLeft: element.scrollX,115 scrollTop: element.scrollY116 };117}118function getParentNode(node) {119 if (getNodeName(node) === 'html') {120 return node;121 }122 const result =123 // Step into the shadow DOM of the parent of a slotted node.124 node.assignedSlot ||125 // DOM Element detected.126 node.parentNode ||127 // ShadowRoot detected.128 isShadowRoot(node) && node.host ||129 // Fallback.130 getDocumentElement(node);131 return isShadowRoot(result) ? result.host : result;132}133function getNearestOverflowAncestor(node) {134 const parentNode = getParentNode(node);135 if (isLastTraversableNode(parentNode)) {136 return node.ownerDocument ? node.ownerDocument.body : node.body;137 }138 if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {139 return parentNode;140 }141 return getNearestOverflowAncestor(parentNode);142}143function getOverflowAncestors(node, list, traverseIframes) {144 var _node$ownerDocument2;145 if (list === void 0) {146 list = [];147 }148 if (traverseIframes === void 0) {149 traverseIframes = true;150 }151 const scrollableAncestor = getNearestOverflowAncestor(node);152 const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);153 const win = getWindow(scrollableAncestor);154 if (isBody) {155 const frameElement = getFrameElement(win);156 return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);157 } else {158 return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));159 }160}161function getFrameElement(win) {162 return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;163}164 165export { getComputedStyle, getContainingBlock, getDocumentElement, getFrameElement, getNearestOverflowAncestor, getNodeName, getNodeScroll, getOverflowAncestors, getParentNode, getWindow, isContainingBlock, isElement, isHTMLElement, isLastTraversableNode, isNode, isOverflowElement, isShadowRoot, isTableElement, isTopLayer, isWebKit };166 