Buckets:
| <meta charset="utf-8" /><meta name="hf:doc:metadata" content="{"title":"utils/core","local":"utilscore","sections":[{"title":"utils/core.DefaultProgressCallback","local":"utilscoredefaultprogresscallback","sections":[{"title":"new DefaultProgressCallback(callback, files_loading)","local":"new-defaultprogresscallbackcallback-filesloading","sections":[],"depth":3},{"title":"defaultProgressCallback._call(info)","local":"defaultprogresscallbackcallinfo","sections":[],"depth":3}],"depth":2},{"title":"utils/core.reverseDictionary(data) ⇒ Object","local":"utilscorereversedictionarydata--object","sections":[],"depth":2},{"title":"utils/core.escapeRegExp(string) ⇒ string","local":"utilscoreescaperegexpstring--string","sections":[],"depth":2},{"title":"utils/core.isTypedArray(val) ⇒ boolean","local":"utilscoreistypedarrayval--boolean","sections":[],"depth":2},{"title":"utils/core.isIntegralNumber(x) ⇒ boolean","local":"utilscoreisintegralnumberx--boolean","sections":[],"depth":2},{"title":"utils/core.isNullishDimension(x) ⇒ boolean","local":"utilscoreisnullishdimensionx--boolean","sections":[],"depth":2},{"title":"utils/core.calculateDimensions(arr) ⇒ Array","local":"utilscorecalculatedimensionsarr--array","sections":[],"depth":2},{"title":"utils/core.pop(obj, key, defaultValue) ⇒ *","local":"utilscorepopobj-key-defaultvalue--","sections":[],"depth":2},{"title":"utils/core.mergeArrays(arrs) ⇒ Array","local":"utilscoremergearraysarrs--array","sections":[],"depth":2},{"title":"utils/core.calculateReflectOffset(i, w) ⇒ number","local":"utilscorecalculatereflectoffseti-w--number","sections":[],"depth":2},{"title":"utils/core.pick(o, props) ⇒ Object","local":"utilscorepicko-props--object","sections":[],"depth":2},{"title":"utils/core.len(s) ⇒ number","local":"utilscorelens--number","sections":[],"depth":2},{"title":"utils/core.count(arr, value)","local":"utilscorecountarr-value","sections":[],"depth":2},{"title":"utils/core~InitiateProgressInfo : Object","local":"utilscoreinitiateprogressinfo--object","sections":[],"depth":2},{"title":"utils/core~DownloadProgressInfo : Object","local":"utilscoredownloadprogressinfo--object","sections":[],"depth":2},{"title":"utils/core~ProgressStatusInfo : Object","local":"utilscoreprogressstatusinfo--object","sections":[],"depth":2},{"title":"utils/core~FileLoadingProgress : Object","local":"utilscorefileloadingprogress--object","sections":[],"depth":2},{"title":"utils/core~FilesLoadingMap : Record. < string, FileLoadingProgress >","local":"utilscorefilesloadingmap--record--string-fileloadingprogress-","sections":[],"depth":2},{"title":"utils/core~TotalProgressInfo : Object","local":"utilscoretotalprogressinfo--object","sections":[],"depth":2},{"title":"utils/core~DoneProgressInfo : Object","local":"utilscoredoneprogressinfo--object","sections":[],"depth":2},{"title":"utils/core~ReadyProgressInfo : Object","local":"utilscorereadyprogressinfo--object","sections":[],"depth":2},{"title":"utils/core~ProgressInfo : InitiateProgressInfo | DownloadProgressInfo | ProgressStatusInfo | DoneProgressInfo | ReadyProgressInfo | TotalProgressInfo","local":"utilscoreprogressinfo--initiateprogressinfo--downloadprogressinfo--progressstatusinfo--doneprogressinfo--readyprogressinfo--totalprogressinfo","sections":[],"depth":2},{"title":"utils/core~ProgressCallback ⇒ void","local":"utilscoreprogresscallback--void","sections":[],"depth":2}],"depth":1}"> | |
| <link href="/docs/transformers.js/main/en/_app/immutable/assets/0.e3b0c442.css" rel="modulepreload"> | |
| <link rel="modulepreload" href="/docs/transformers.js/main/en/_app/immutable/entry/start.f0903468.js"> | |
| <link rel="modulepreload" href="/docs/transformers.js/main/en/_app/immutable/chunks/scheduler.6efaaf90.js"> | |
| <link rel="modulepreload" href="/docs/transformers.js/main/en/_app/immutable/chunks/singletons.1712fa1e.js"> | |
| <link rel="modulepreload" href="/docs/transformers.js/main/en/_app/immutable/chunks/paths.f36b101d.js"> | |
| <link rel="modulepreload" href="/docs/transformers.js/main/en/_app/immutable/entry/app.41faf999.js"> | |
| <link rel="modulepreload" href="/docs/transformers.js/main/en/_app/immutable/chunks/preload-helper.0888e0e6.js"> | |
| <link rel="modulepreload" href="/docs/transformers.js/main/en/_app/immutable/chunks/index.eb3e1f0f.js"> | |
| <link rel="modulepreload" href="/docs/transformers.js/main/en/_app/immutable/nodes/0.ffbf5e6b.js"> | |
| <link rel="modulepreload" href="/docs/transformers.js/main/en/_app/immutable/chunks/each.e59479a4.js"> | |
| <link rel="modulepreload" href="/docs/transformers.js/main/en/_app/immutable/nodes/17.f17d05b4.js"> | |
| <link rel="modulepreload" href="/docs/transformers.js/main/en/_app/immutable/chunks/MermaidChart.svelte_svelte_type_style_lang.7af324bc.js"><!-- HEAD_svelte-u9bgzb_START --><meta name="hf:doc:metadata" content="{"title":"utils/core","local":"utilscore","sections":[{"title":"utils/core.DefaultProgressCallback","local":"utilscoredefaultprogresscallback","sections":[{"title":"new DefaultProgressCallback(callback, files_loading)","local":"new-defaultprogresscallbackcallback-filesloading","sections":[],"depth":3},{"title":"defaultProgressCallback._call(info)","local":"defaultprogresscallbackcallinfo","sections":[],"depth":3}],"depth":2},{"title":"utils/core.reverseDictionary(data) ⇒ Object","local":"utilscorereversedictionarydata--object","sections":[],"depth":2},{"title":"utils/core.escapeRegExp(string) ⇒ string","local":"utilscoreescaperegexpstring--string","sections":[],"depth":2},{"title":"utils/core.isTypedArray(val) ⇒ boolean","local":"utilscoreistypedarrayval--boolean","sections":[],"depth":2},{"title":"utils/core.isIntegralNumber(x) ⇒ boolean","local":"utilscoreisintegralnumberx--boolean","sections":[],"depth":2},{"title":"utils/core.isNullishDimension(x) ⇒ boolean","local":"utilscoreisnullishdimensionx--boolean","sections":[],"depth":2},{"title":"utils/core.calculateDimensions(arr) ⇒ Array","local":"utilscorecalculatedimensionsarr--array","sections":[],"depth":2},{"title":"utils/core.pop(obj, key, defaultValue) ⇒ *","local":"utilscorepopobj-key-defaultvalue--","sections":[],"depth":2},{"title":"utils/core.mergeArrays(arrs) ⇒ Array","local":"utilscoremergearraysarrs--array","sections":[],"depth":2},{"title":"utils/core.calculateReflectOffset(i, w) ⇒ number","local":"utilscorecalculatereflectoffseti-w--number","sections":[],"depth":2},{"title":"utils/core.pick(o, props) ⇒ Object","local":"utilscorepicko-props--object","sections":[],"depth":2},{"title":"utils/core.len(s) ⇒ number","local":"utilscorelens--number","sections":[],"depth":2},{"title":"utils/core.count(arr, value)","local":"utilscorecountarr-value","sections":[],"depth":2},{"title":"utils/core~InitiateProgressInfo : Object","local":"utilscoreinitiateprogressinfo--object","sections":[],"depth":2},{"title":"utils/core~DownloadProgressInfo : Object","local":"utilscoredownloadprogressinfo--object","sections":[],"depth":2},{"title":"utils/core~ProgressStatusInfo : Object","local":"utilscoreprogressstatusinfo--object","sections":[],"depth":2},{"title":"utils/core~FileLoadingProgress : Object","local":"utilscorefileloadingprogress--object","sections":[],"depth":2},{"title":"utils/core~FilesLoadingMap : Record. < string, FileLoadingProgress >","local":"utilscorefilesloadingmap--record--string-fileloadingprogress-","sections":[],"depth":2},{"title":"utils/core~TotalProgressInfo : Object","local":"utilscoretotalprogressinfo--object","sections":[],"depth":2},{"title":"utils/core~DoneProgressInfo : Object","local":"utilscoredoneprogressinfo--object","sections":[],"depth":2},{"title":"utils/core~ReadyProgressInfo : Object","local":"utilscorereadyprogressinfo--object","sections":[],"depth":2},{"title":"utils/core~ProgressInfo : InitiateProgressInfo | DownloadProgressInfo | ProgressStatusInfo | DoneProgressInfo | ReadyProgressInfo | TotalProgressInfo","local":"utilscoreprogressinfo--initiateprogressinfo--downloadprogressinfo--progressstatusinfo--doneprogressinfo--readyprogressinfo--totalprogressinfo","sections":[],"depth":2},{"title":"utils/core~ProgressCallback ⇒ void","local":"utilscoreprogresscallback--void","sections":[],"depth":2}],"depth":1}"><!-- HEAD_svelte-u9bgzb_END --> <p></p> <a id="module_utils/core" class="group"></a> <div class="items-center shrink-0 min-w-[100px] max-sm:min-w-[50px] justify-end ml-auto flex" style="float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"><div class="inline-flex rounded-md max-sm:rounded-sm"><button class="inline-flex items-center gap-1 h-7 max-sm:h-7 px-2 max-sm:px-1.5 text-sm font-medium text-gray-800 border border-r-0 rounded-l-md max-sm:rounded-l-sm border-gray-200 bg-white hover:shadow-inner dark:border-gray-850 dark:bg-gray-950 dark:text-gray-200 dark:hover:bg-gray-800" aria-live="polite"><span class="inline-flex items-center justify-center rounded-md p-0.5 max-sm:p-0 hover:text-gray-800 dark:hover:text-gray-200"><svg class="sm:size-3.5 size-3" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M28,10V28H10V10H28m0-2H10a2,2,0,0,0-2,2V28a2,2,0,0,0,2,2H28a2,2,0,0,0,2-2V10a2,2,0,0,0-2-2Z" transform="translate(0)"></path><path d="M4,18H2V4A2,2,0,0,1,4,2H18V4H4Z" transform="translate(0)"></path><rect fill="none" width="32" height="32"></rect></svg></span> <span>Copy page</span></button> <button class="inline-flex items-center justify-center w-6 max-sm:w-5 h-7 max-sm:h-7 disabled:pointer-events-none text-sm text-gray-500 hover:text-gray-700 dark:hover:text-white rounded-r-md max-sm:rounded-r-sm border border-l transition border-gray-200 bg-white hover:shadow-inner dark:border-gray-850 dark:bg-gray-950 dark:text-gray-200 dark:hover:bg-gray-800" aria-haspopup="menu" aria-expanded="false" aria-label="Open copy menu"><svg class="transition-transform text-gray-400 overflow-visible sm:size-3.5 size-3 rotate-0" width="1em" height="1em" viewBox="0 0 12 7" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="currentColor"></path></svg></button></div> </div> <h1 class="relative group"><a id="utilscore" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscore"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core</span></h1> <p data-svelte-h="svelte-u71mwf">Core utility functions/classes for Transformers.js.</p> <p data-svelte-h="svelte-1r3ntfo">These are only used internally, meaning an end-user shouldn’t | |
| need to access anything here.</p> <ul data-svelte-h="svelte-x3woni"><li><a href="#module_utils/core">utils/core</a> <ul><li><em>static</em> <ul><li><a href="#module_utils/core.DefaultProgressCallback">.DefaultProgressCallback</a> <ul><li><a href="#new_module_utils/core.DefaultProgressCallback_new"><code>new DefaultProgressCallback(callback, files_loading)</code></a></li> <li><a href="#module_utils/core.DefaultProgressCallback+_call"><code>._call(info)</code></a></li></ul></li> <li><a href="#module_utils/core.reverseDictionary"><code>.reverseDictionary(data)</code></a> ⇒ <code>Object</code></li> <li><a href="#module_utils/core.escapeRegExp"><code>.escapeRegExp(string)</code></a> ⇒ <code>string</code></li> <li><a href="#module_utils/core.isTypedArray"><code>.isTypedArray(val)</code></a> ⇒ <code>boolean</code></li> <li><a href="#module_utils/core.isIntegralNumber"><code>.isIntegralNumber(x)</code></a> ⇒ <code>boolean</code></li> <li><a href="#module_utils/core.isNullishDimension"><code>.isNullishDimension(x)</code></a> ⇒ <code>boolean</code></li> <li><a href="#module_utils/core.calculateDimensions"><code>.calculateDimensions(arr)</code></a> ⇒ <code>Array</code></li> <li><a href="#module_utils/core.pop"><code>.pop(obj, key, defaultValue)</code></a> ⇒ <code>*</code></li> <li><a href="#module_utils/core.mergeArrays"><code>.mergeArrays(arrs)</code></a> ⇒ <code>Array</code></li> <li><a href="#module_utils/core.calculateReflectOffset"><code>.calculateReflectOffset(i, w)</code></a> ⇒ <code>number</code></li> <li><a href="#module_utils/core.pick"><code>.pick(o, props)</code></a> ⇒ <code>Object</code></li> <li><a href="#module_utils/core.len"><code>.len(s)</code></a> ⇒ <code>number</code></li> <li><a href="#module_utils/core.count"><code>.count(arr, value)</code></a></li></ul></li> <li><em>inner</em> <ul><li><a href="#module_utils/core..InitiateProgressInfo"><code>~InitiateProgressInfo</code></a> : <code>Object</code></li> <li><a href="#module_utils/core..DownloadProgressInfo"><code>~DownloadProgressInfo</code></a> : <code>Object</code></li> <li><a href="#module_utils/core..ProgressStatusInfo"><code>~ProgressStatusInfo</code></a> : <code>Object</code></li> <li><a href="#module_utils/core..FileLoadingProgress"><code>~FileLoadingProgress</code></a> : <code>Object</code></li> <li><a href="#module_utils/core..FilesLoadingMap"><code>~FilesLoadingMap</code></a> : <code>Record.<string, FileLoadingProgress></code></li> <li><a href="#module_utils/core..TotalProgressInfo"><code>~TotalProgressInfo</code></a> : <code>Object</code></li> <li><a href="#module_utils/core..DoneProgressInfo"><code>~DoneProgressInfo</code></a> : <code>Object</code></li> <li><a href="#module_utils/core..ReadyProgressInfo"><code>~ReadyProgressInfo</code></a> : <code>Object</code></li> <li><a href="#module_utils/core..ProgressInfo"><code>~ProgressInfo</code></a> : <code>InitiateProgressInfo</code> | <code>DownloadProgressInfo</code> | <code>ProgressStatusInfo</code> | <code>DoneProgressInfo</code> | <code>ReadyProgressInfo</code> | <code>TotalProgressInfo</code></li> <li><a href="#module_utils/core..ProgressCallback"><code>~ProgressCallback</code></a> ⇒ <code>void</code></li></ul></li></ul></li></ul> <hr> <a id="module_utils/core.DefaultProgressCallback" class="group"></a> <h2 class="relative group"><a id="utilscoredefaultprogresscallback" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscoredefaultprogresscallback"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core.DefaultProgressCallback</span></h2> <p data-svelte-h="svelte-iwk99y">A callable progress callback that wraps an original callback and emits | |
| aggregate <code>progress_total</code> events. Because it extends <code>Callable</code>, instances | |
| can be passed directly wherever a plain callback function is expected.</p> <p data-svelte-h="svelte-1qa1nbs">Callers can check <code>callback instanceof DefaultProgressCallback</code> to avoid | |
| double-wrapping when both <code>pipeline()</code> and <code>from_pretrained()</code> would | |
| otherwise each add their own wrapper.</p> <p data-svelte-h="svelte-21t6os"><strong>Kind</strong>: static class of <a href="#module_utils/core"><code>utils/core</code></a></p> <ul data-svelte-h="svelte-1hvqcqh"><li><a href="#module_utils/core.DefaultProgressCallback">.DefaultProgressCallback</a> <ul><li><a href="#new_module_utils/core.DefaultProgressCallback_new"><code>new DefaultProgressCallback(callback, files_loading)</code></a></li> <li><a href="#module_utils/core.DefaultProgressCallback+_call"><code>._call(info)</code></a></li></ul></li></ul> <hr> <a id="new_module_utils/core.DefaultProgressCallback_new" class="group"></a> <h3 class="relative group"><a id="new-defaultprogresscallbackcallback-filesloading" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#new-defaultprogresscallbackcallback-filesloading"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>new DefaultProgressCallback(callback, files_loading)</span></h3> <table data-svelte-h="svelte-1ni6olf"><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead> <tbody><tr><td>callback</td><td><code>ProgressCallback</code></td><td><p>The original callback.</p></td> </tr><tr><td>files_loading</td><td><code>FilesLoadingMap</code></td><td><p>Mutable map storing per-file progress.</p></td></tr></tbody></table> <hr> <a id="module_utils/core.DefaultProgressCallback+_call" class="group"></a> <h3 class="relative group"><a id="defaultprogresscallbackcallinfo" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#defaultprogresscallbackcallinfo"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>defaultProgressCallback._call(info)</span></h3> <p data-svelte-h="svelte-edv2e5"><strong>Kind</strong>: instance method of <a href="#module_utils/core.DefaultProgressCallback"><code>DefaultProgressCallback</code></a></p> <table data-svelte-h="svelte-2gn8hh"><thead><tr><th>Param</th><th>Type</th></tr></thead> <tbody><tr><td>info</td><td><code>ProgressInfo</code></td></tr></tbody></table> <hr> <a id="module_utils/core.reverseDictionary" class="group"></a> <h2 class="relative group"><a id="utilscorereversedictionarydata--object" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscorereversedictionarydata--object"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core.reverseDictionary(data) ⇒ Object</span></h2> <p data-svelte-h="svelte-dvlmk2">Reverses the keys and values of an object.</p> <p data-svelte-h="svelte-14f6o7p"><strong>Kind</strong>: static method of <a href="#module_utils/core"><code>utils/core</code></a><br> <strong>Returns</strong>: <code>Object</code> - The reversed object.<br> <strong>See</strong>: <a href="https://ultimatecourses.com/blog/reverse-object-keys-and-values-in-javascript" rel="nofollow">https://ultimatecourses.com/blog/reverse-object-keys-and-values-in-javascript</a></p> <table data-svelte-h="svelte-8if77n"><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead> <tbody><tr><td>data</td><td><code>Object</code></td><td><p>The object to reverse.</p></td></tr></tbody></table> <hr> <a id="module_utils/core.escapeRegExp" class="group"></a> <h2 class="relative group"><a id="utilscoreescaperegexpstring--string" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscoreescaperegexpstring--string"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core.escapeRegExp(string) ⇒ string</span></h2> <p data-svelte-h="svelte-14ro5y0">Escapes regular expression special characters from a string by replacing them with their escaped counterparts.</p> <p data-svelte-h="svelte-nstyrr"><strong>Kind</strong>: static method of <a href="#module_utils/core"><code>utils/core</code></a><br> <strong>Returns</strong>: <code>string</code> - The escaped string.</p> <table data-svelte-h="svelte-1h5d263"><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead> <tbody><tr><td>string</td><td><code>string</code></td><td><p>The string to escape.</p></td></tr></tbody></table> <hr> <a id="module_utils/core.isTypedArray" class="group"></a> <h2 class="relative group"><a id="utilscoreistypedarrayval--boolean" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscoreistypedarrayval--boolean"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core.isTypedArray(val) ⇒ boolean</span></h2> <p data-svelte-h="svelte-1oclrgb">Check if a value is a typed array.</p> <p data-svelte-h="svelte-1uuf78s"><strong>Kind</strong>: static method of <a href="#module_utils/core"><code>utils/core</code></a><br> <strong>Returns</strong>: <code>boolean</code> - True if the value is a <code>TypedArray</code>, false otherwise.</p> <p data-svelte-h="svelte-pr567i">Adapted from <a href="https://stackoverflow.com/a/71091338/13989043" rel="nofollow">https://stackoverflow.com/a/71091338/13989043</a></p> <table data-svelte-h="svelte-cdg32t"><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead> <tbody><tr><td>val</td><td><code>*</code></td><td><p>The value to check.</p></td></tr></tbody></table> <hr> <a id="module_utils/core.isIntegralNumber" class="group"></a> <h2 class="relative group"><a id="utilscoreisintegralnumberx--boolean" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscoreisintegralnumberx--boolean"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core.isIntegralNumber(x) ⇒ boolean</span></h2> <p data-svelte-h="svelte-1ityjuy">Check if a value is an integer.</p> <p data-svelte-h="svelte-1n9m385"><strong>Kind</strong>: static method of <a href="#module_utils/core"><code>utils/core</code></a><br> <strong>Returns</strong>: <code>boolean</code> - True if the value is a string, false otherwise.</p> <table data-svelte-h="svelte-6n2d7i"><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead> <tbody><tr><td>x</td><td><code>*</code></td><td><p>The value to check.</p></td></tr></tbody></table> <hr> <a id="module_utils/core.isNullishDimension" class="group"></a> <h2 class="relative group"><a id="utilscoreisnullishdimensionx--boolean" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscoreisnullishdimensionx--boolean"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core.isNullishDimension(x) ⇒ boolean</span></h2> <p data-svelte-h="svelte-1j46lct">Determine if a provided width or height is nullish.</p> <p data-svelte-h="svelte-7bsiqc"><strong>Kind</strong>: static method of <a href="#module_utils/core"><code>utils/core</code></a><br> <strong>Returns</strong>: <code>boolean</code> - True if the value is <code>null</code>, <code>undefined</code> or <code>-1</code>, false otherwise.</p> <table data-svelte-h="svelte-6n2d7i"><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead> <tbody><tr><td>x</td><td><code>*</code></td><td><p>The value to check.</p></td></tr></tbody></table> <hr> <a id="module_utils/core.calculateDimensions" class="group"></a> <h2 class="relative group"><a id="utilscorecalculatedimensionsarr--array" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscorecalculatedimensionsarr--array"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core.calculateDimensions(arr) ⇒ Array</span></h2> <p data-svelte-h="svelte-1p78ixx">Calculates the dimensions of a nested array.</p> <p data-svelte-h="svelte-1tb7iu1"><strong>Kind</strong>: static method of <a href="#module_utils/core"><code>utils/core</code></a><br> <strong>Returns</strong>: <code>Array</code> - An array containing the dimensions of the input array.</p> <table data-svelte-h="svelte-1kcvid9"><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead> <tbody><tr><td>arr</td><td><code>Array</code></td><td><p>The nested array to calculate dimensions for.</p></td></tr></tbody></table> <hr> <a id="module_utils/core.pop" class="group"></a> <h2 class="relative group"><a id="utilscorepopobj-key-defaultvalue--" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscorepopobj-key-defaultvalue--"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core.pop(obj, key, defaultValue) ⇒ *</span></h2> <p data-svelte-h="svelte-1m1a0x7">Replicate python’s .pop() method for objects.</p> <p data-svelte-h="svelte-1dwq64m"><strong>Kind</strong>: static method of <a href="#module_utils/core"><code>utils/core</code></a><br> <strong>Returns</strong>: <code>*</code> - The value of the popped key.<br> <strong>Throws</strong>:</p> <ul data-svelte-h="svelte-1mi6v17"><li><code>Error</code> If the key does not exist and no default value is provided.</li></ul> <table data-svelte-h="svelte-j5xxk1"><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead> <tbody><tr><td>obj</td><td><code>Object</code></td><td><p>The object to pop from.</p></td> </tr><tr><td>key</td><td><code>string</code></td><td><p>The key to pop.</p></td> </tr><tr><td>defaultValue</td><td><code>*</code></td><td><p>The default value to return if the key does not exist.</p></td></tr></tbody></table> <hr> <a id="module_utils/core.mergeArrays" class="group"></a> <h2 class="relative group"><a id="utilscoremergearraysarrs--array" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscoremergearraysarrs--array"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core.mergeArrays(arrs) ⇒ Array</span></h2> <p data-svelte-h="svelte-kvbp1p">Efficiently merge arrays, creating a new copy. | |
| Adapted from <a href="https://stackoverflow.com/a/6768642/13989043" rel="nofollow">https://stackoverflow.com/a/6768642/13989043</a></p> <p data-svelte-h="svelte-1ydcymw"><strong>Kind</strong>: static method of <a href="#module_utils/core"><code>utils/core</code></a><br> <strong>Returns</strong>: <code>Array</code> - The merged array.</p> <table data-svelte-h="svelte-129vkct"><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead> <tbody><tr><td>arrs</td><td><code>Array</code></td><td><p>Arrays to merge.</p></td></tr></tbody></table> <hr> <a id="module_utils/core.calculateReflectOffset" class="group"></a> <h2 class="relative group"><a id="utilscorecalculatereflectoffseti-w--number" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscorecalculatereflectoffseti-w--number"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core.calculateReflectOffset(i, w) ⇒ number</span></h2> <p data-svelte-h="svelte-1m1ncmy">Calculates the index offset for a given index and window size.</p> <p data-svelte-h="svelte-vsw9ui"><strong>Kind</strong>: static method of <a href="#module_utils/core"><code>utils/core</code></a><br> <strong>Returns</strong>: <code>number</code> - The index offset.</p> <table data-svelte-h="svelte-xzg366"><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead> <tbody><tr><td>i</td><td><code>number</code></td><td><p>The index.</p></td> </tr><tr><td>w</td><td><code>number</code></td><td><p>The window size.</p></td></tr></tbody></table> <hr> <a id="module_utils/core.pick" class="group"></a> <h2 class="relative group"><a id="utilscorepicko-props--object" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscorepicko-props--object"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core.pick(o, props) ⇒ Object</span></h2> <p data-svelte-h="svelte-zerxn5"><strong>Kind</strong>: static method of <a href="#module_utils/core"><code>utils/core</code></a></p> <table data-svelte-h="svelte-tuczmt"><thead><tr><th>Param</th><th>Type</th></tr></thead> <tbody><tr><td>o</td><td><code>Object</code></td> </tr><tr><td>props</td><td><code>Array</code></td></tr></tbody></table> <hr> <a id="module_utils/core.len" class="group"></a> <h2 class="relative group"><a id="utilscorelens--number" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscorelens--number"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core.len(s) ⇒ number</span></h2> <p data-svelte-h="svelte-vao8dt">Calculate the length of a string, taking multi-byte characters into account. | |
| This mimics the behavior of Python’s <code>len</code> function.</p> <p data-svelte-h="svelte-1to55la"><strong>Kind</strong>: static method of <a href="#module_utils/core"><code>utils/core</code></a><br> <strong>Returns</strong>: <code>number</code> - The length of the string.</p> <table data-svelte-h="svelte-5bfh4"><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead> <tbody><tr><td>s</td><td><code>string</code></td><td><p>The string to calculate the length of.</p></td></tr></tbody></table> <hr> <a id="module_utils/core.count" class="group"></a> <h2 class="relative group"><a id="utilscorecountarr-value" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscorecountarr-value"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core.count(arr, value)</span></h2> <p data-svelte-h="svelte-uuvf6z">Count the occurrences of a value in an array or string. | |
| This mimics the behavior of Python’s <code>count</code> method.</p> <p data-svelte-h="svelte-zerxn5"><strong>Kind</strong>: static method of <a href="#module_utils/core"><code>utils/core</code></a></p> <table data-svelte-h="svelte-zwf6qt"><thead><tr><th>Param</th><th>Type</th><th>Description</th></tr></thead> <tbody><tr><td>arr</td><td><code>Array</code> | <code>string</code></td><td><p>The array or string to search.</p></td> </tr><tr><td>value</td><td><code>any</code></td><td><p>The value to count.</p></td></tr></tbody></table> <hr> <a id="module_utils/core..InitiateProgressInfo" class="group"></a> <h2 class="relative group"><a id="utilscoreinitiateprogressinfo--object" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscoreinitiateprogressinfo--object"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core~InitiateProgressInfo : Object</span></h2> <p data-svelte-h="svelte-4ugn5b"><strong>Kind</strong>: inner typedef of <a href="#module_utils/core"><code>utils/core</code></a><br> <strong>Properties</strong></p> <table data-svelte-h="svelte-t9v8ew"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead> <tbody><tr><td>status</td><td><code>'initiate'</code></td><td></td> </tr><tr><td>name</td><td><code>string</code></td><td><p>The model id or directory path.</p></td> </tr><tr><td>file</td><td><code>string</code></td><td><p>The name of the file.</p></td></tr></tbody></table> <hr> <a id="module_utils/core..DownloadProgressInfo" class="group"></a> <h2 class="relative group"><a id="utilscoredownloadprogressinfo--object" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscoredownloadprogressinfo--object"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core~DownloadProgressInfo : Object</span></h2> <p data-svelte-h="svelte-4ugn5b"><strong>Kind</strong>: inner typedef of <a href="#module_utils/core"><code>utils/core</code></a><br> <strong>Properties</strong></p> <table data-svelte-h="svelte-15oal9n"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead> <tbody><tr><td>status</td><td><code>'download'</code></td><td></td> </tr><tr><td>name</td><td><code>string</code></td><td><p>The model id or directory path.</p></td> </tr><tr><td>file</td><td><code>string</code></td><td><p>The name of the file.</p></td></tr></tbody></table> <hr> <a id="module_utils/core..ProgressStatusInfo" class="group"></a> <h2 class="relative group"><a id="utilscoreprogressstatusinfo--object" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscoreprogressstatusinfo--object"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core~ProgressStatusInfo : Object</span></h2> <p data-svelte-h="svelte-4ugn5b"><strong>Kind</strong>: inner typedef of <a href="#module_utils/core"><code>utils/core</code></a><br> <strong>Properties</strong></p> <table data-svelte-h="svelte-1iy984j"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead> <tbody><tr><td>status</td><td><code>'progress'</code></td><td></td> </tr><tr><td>name</td><td><code>string</code></td><td><p>The model id or directory path.</p></td> </tr><tr><td>file</td><td><code>string</code></td><td><p>The name of the file.</p></td> </tr><tr><td>progress</td><td><code>number</code></td><td><p>A number between 0 and 100.</p></td> </tr><tr><td>loaded</td><td><code>number</code></td><td><p>The number of bytes loaded.</p></td> </tr><tr><td>total</td><td><code>number</code></td><td><p>The total number of bytes to be loaded.</p></td></tr></tbody></table> <hr> <a id="module_utils/core..FileLoadingProgress" class="group"></a> <h2 class="relative group"><a id="utilscorefileloadingprogress--object" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscorefileloadingprogress--object"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core~FileLoadingProgress : Object</span></h2> <p data-svelte-h="svelte-4ugn5b"><strong>Kind</strong>: inner typedef of <a href="#module_utils/core"><code>utils/core</code></a><br> <strong>Properties</strong></p> <table data-svelte-h="svelte-x0zcar"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead> <tbody><tr><td>loaded</td><td><code>number</code></td><td><p>The number of bytes loaded for this file.</p></td> </tr><tr><td>total</td><td><code>number</code></td><td><p>The total number of bytes for this file.</p></td></tr></tbody></table> <hr> <a id="module_utils/core..FilesLoadingMap" class="group"></a> <h2 class="relative group"><a id="utilscorefilesloadingmap--record--string-fileloadingprogress-" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscorefilesloadingmap--record--string-fileloadingprogress-"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core~FilesLoadingMap : Record. < string, FileLoadingProgress ></span></h2> <p data-svelte-h="svelte-1y0q8j4">A mapping of file names to their loading progress. Each key is a file path and each value contains | |
| the loaded and total bytes for that file.</p> <p data-svelte-h="svelte-17rxdax"><strong>Kind</strong>: inner typedef of <a href="#module_utils/core"><code>utils/core</code></a></p> <hr> <a id="module_utils/core..TotalProgressInfo" class="group"></a> <h2 class="relative group"><a id="utilscoretotalprogressinfo--object" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscoretotalprogressinfo--object"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core~TotalProgressInfo : Object</span></h2> <p data-svelte-h="svelte-4ugn5b"><strong>Kind</strong>: inner typedef of <a href="#module_utils/core"><code>utils/core</code></a><br> <strong>Properties</strong></p> <table data-svelte-h="svelte-1dj352t"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead> <tbody><tr><td>status</td><td><code>'progress_total'</code></td><td></td> </tr><tr><td>name</td><td><code>string</code></td><td><p>The model id or directory path.</p></td> </tr><tr><td>progress</td><td><code>number</code></td><td><p>A number between 0 and 100.</p></td> </tr><tr><td>loaded</td><td><code>number</code></td><td><p>The number of bytes loaded.</p></td> </tr><tr><td>total</td><td><code>number</code></td><td><p>The total number of bytes to be loaded.</p></td> </tr><tr><td>files</td><td><code>FilesLoadingMap</code></td><td><p>A mapping of file names to their loading progress.</p></td></tr></tbody></table> <hr> <a id="module_utils/core..DoneProgressInfo" class="group"></a> <h2 class="relative group"><a id="utilscoredoneprogressinfo--object" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscoredoneprogressinfo--object"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core~DoneProgressInfo : Object</span></h2> <p data-svelte-h="svelte-4ugn5b"><strong>Kind</strong>: inner typedef of <a href="#module_utils/core"><code>utils/core</code></a><br> <strong>Properties</strong></p> <table data-svelte-h="svelte-1rer7cr"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead> <tbody><tr><td>status</td><td><code>'done'</code></td><td></td> </tr><tr><td>name</td><td><code>string</code></td><td><p>The model id or directory path.</p></td> </tr><tr><td>file</td><td><code>string</code></td><td><p>The name of the file.</p></td></tr></tbody></table> <hr> <a id="module_utils/core..ReadyProgressInfo" class="group"></a> <h2 class="relative group"><a id="utilscorereadyprogressinfo--object" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscorereadyprogressinfo--object"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core~ReadyProgressInfo : Object</span></h2> <p data-svelte-h="svelte-4ugn5b"><strong>Kind</strong>: inner typedef of <a href="#module_utils/core"><code>utils/core</code></a><br> <strong>Properties</strong></p> <table data-svelte-h="svelte-1axjws7"><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead> <tbody><tr><td>status</td><td><code>'ready'</code></td><td></td> </tr><tr><td>task</td><td><code>string</code></td><td><p>The loaded task.</p></td> </tr><tr><td>model</td><td><code>string</code></td><td><p>The loaded model.</p></td></tr></tbody></table> <hr> <a id="module_utils/core..ProgressInfo" class="group"></a> <h2 class="relative group"><a id="utilscoreprogressinfo--initiateprogressinfo--downloadprogressinfo--progressstatusinfo--doneprogressinfo--readyprogressinfo--totalprogressinfo" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscoreprogressinfo--initiateprogressinfo--downloadprogressinfo--progressstatusinfo--doneprogressinfo--readyprogressinfo--totalprogressinfo"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core~ProgressInfo : InitiateProgressInfo | DownloadProgressInfo | ProgressStatusInfo | DoneProgressInfo | ReadyProgressInfo | TotalProgressInfo</span></h2> <p data-svelte-h="svelte-17rxdax"><strong>Kind</strong>: inner typedef of <a href="#module_utils/core"><code>utils/core</code></a></p> <hr> <a id="module_utils/core..ProgressCallback" class="group"></a> <h2 class="relative group"><a id="utilscoreprogresscallback--void" class="header-link block pr-1.5 text-lg no-hover:hidden with-hover:absolute with-hover:p-1.5 with-hover:opacity-0 with-hover:group-hover:opacity-100 with-hover:right-full" href="#utilscoreprogresscallback--void"><span><svg class="" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 256"><path d="M167.594 88.393a8.001 8.001 0 0 1 0 11.314l-67.882 67.882a8 8 0 1 1-11.314-11.315l67.882-67.881a8.003 8.003 0 0 1 11.314 0zm-28.287 84.86l-28.284 28.284a40 40 0 0 1-56.567-56.567l28.284-28.284a8 8 0 0 0-11.315-11.315l-28.284 28.284a56 56 0 0 0 79.196 79.197l28.285-28.285a8 8 0 1 0-11.315-11.314zM212.852 43.14a56.002 56.002 0 0 0-79.196 0l-28.284 28.284a8 8 0 1 0 11.314 11.314l28.284-28.284a40 40 0 0 1 56.568 56.567l-28.285 28.285a8 8 0 0 0 11.315 11.314l28.284-28.284a56.065 56.065 0 0 0 0-79.196z" fill="currentColor"></path></svg></span></a> <span>utils/core~ProgressCallback ⇒ void</span></h2> <p data-svelte-h="svelte-3cbgzb">A callback function that is called with progress information.</p> <p data-svelte-h="svelte-17rxdax"><strong>Kind</strong>: inner typedef of <a href="#module_utils/core"><code>utils/core</code></a></p> <table data-svelte-h="svelte-180ypss"><thead><tr><th>Param</th><th>Type</th></tr></thead> <tbody><tr><td>progressInfo</td><td><code>ProgressInfo</code></td></tr></tbody></table> <hr> <a class="!text-gray-400 !no-underline text-sm flex items-center not-prose mt-4" href="https://github.com/huggingface/transformers.js/blob/main/packages/transformers/docs/source/api/utils/core.md" target="_blank"><svg class="mr-1" xmlns="http://www.w3.org/2000/svg" aria-hidden="true" fill="currentColor" focusable="false" role="img" width="1em" height="1em" preserveAspectRatio="xMidYMid meet" viewBox="0 0 32 32"><path d="M31,16l-7,7l-1.41-1.41L28.17,16l-5.58-5.59L24,9l7,7z"></path><path d="M1,16l7-7l1.41,1.41L3.83,16l5.58,5.59L8,23l-7-7z"></path><path d="M12.419,25.484L17.639,6.552l1.932,0.518L14.351,26.002z"></path></svg> <span data-svelte-h="svelte-zjs2n5"><span class="underline">Update</span> on GitHub</span></a> <p></p> | |
| <script> | |
| { | |
| __sveltekit_sorvej = { | |
| assets: "/docs/transformers.js/main/en", | |
| base: "/docs/transformers.js/main/en", | |
| env: {} | |
| }; | |
| const element = document.currentScript.parentElement; | |
| const data = [null,null]; | |
| Promise.all([ | |
| import("/docs/transformers.js/main/en/_app/immutable/entry/start.f0903468.js"), | |
| import("/docs/transformers.js/main/en/_app/immutable/entry/app.41faf999.js") | |
| ]).then(([kit, app]) => { | |
| kit.start(app, element, { | |
| node_ids: [0, 17], | |
| data, | |
| form: null, | |
| error: null | |
| }); | |
| }); | |
| } | |
| </script> | |
Xet Storage Details
- Size:
- 63.5 kB
- Xet hash:
- f70de2a673ce83529a1472e7cb625ad0644ad2eaf4414ef4e3025233ab1564f4
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.