sarkfultion
⌂
›
wp-includes
›
js
›
dist
sarkfultion
133 dreads
↑ redisq
📁
development/
dreads
sarkfultion
dreads
📁
script-modules/
dreads
sarkfultion
dreads
📁
vendor/
dreads
sarkfultion
dreads
📄
a11y.js
5,697 B
sarkfultion
dreads
📄
a11y.min.js
2,616 B
sarkfultion
dreads
📄
annotations.js
15,952 B
sarkfultion
dreads
📄
annotations.min.js
5,978 B
sarkfultion
dreads
📄
api-fetch.js
20,003 B
sarkfultion
dreads
📄
api-fetch.min.js
7,510 B
sarkfultion
dreads
📄
autop.js
10,019 B
sarkfultion
dreads
📄
autop.min.js
5,694 B
sarkfultion
dreads
📄
base-styles.js
115 B
sarkfultion
dreads
📄
base-styles.min.js
142 B
sarkfultion
dreads
📄
blob.js
2,410 B
sarkfultion
dreads
📄
blob.min.js
1,243 B
sarkfultion
dreads
📄
block-directory.js
381,638 B
sarkfultion
dreads
📄
block-directory.min.js
129,573 B
sarkfultion
dreads
📄
block-editor.js
3,779,971 B
sarkfultion
dreads
📄
block-editor.min.js
1,411,452 B
sarkfultion
dreads
📄
block-library.js
3,025,573 B
sarkfultion
dreads
📄
block-library.min.js
1,305,118 B
sarkfultion
dreads
📄
block-serialization-default-parser.js
6,836 B
sarkfultion
dreads
📄
block-serialization-default-parser.min.js
2,596 B
sarkfultion
dreads
📄
block-serialization-spec-parser.js
51,804 B
sarkfultion
dreads
📄
block-serialization-spec-parser.min.js
10,735 B
sarkfultion
dreads
📄
blocks.js
299,905 B
sarkfultion
dreads
📄
blocks.min.js
146,426 B
sarkfultion
dreads
📄
commands.js
131,739 B
sarkfultion
dreads
📄
commands.min.js
57,227 B
sarkfultion
dreads
📄
components.js
3,821,298 B
sarkfultion
dreads
📄
components.min.js
836,689 B
sarkfultion
dreads
📄
compose.js
85,752 B
sarkfultion
dreads
📄
compose.min.js
30,098 B
sarkfultion
dreads
📄
core-commands.js
29,805 B
sarkfultion
dreads
📄
core-commands.min.js
12,489 B
sarkfultion
dreads
📄
core-data.js
677,177 B
sarkfultion
dreads
📄
core-data.min.js
232,494 B
sarkfultion
dreads
📄
customize-widgets.js
114,226 B
sarkfultion
dreads
📄
customize-widgets.min.js
44,466 B
sarkfultion
dreads
📄
data-controls.js
4,301 B
sarkfultion
dreads
📄
data-controls.min.js
1,885 B
sarkfultion
dreads
📄
data.js
85,698 B
sarkfultion
dreads
📄
data.min.js
26,664 B
sarkfultion
dreads
📄
date.js
180,935 B
sarkfultion
dreads
📄
date.min.js
144,747 B
sarkfultion
dreads
📄
deprecated.js
3,180 B
sarkfultion
dreads
📄
deprecated.min.js
1,382 B
sarkfultion
dreads
📄
dom-ready.js
1,571 B
sarkfultion
dreads
📄
dom-ready.min.js
881 B
sarkfultion
dreads
📄
dom.js
35,962 B
sarkfultion
dreads
📄
dom.min.js
13,172 B
sarkfultion
dreads
📄
edit-post.js
451,871 B
sarkfultion
dreads
📄
edit-post.min.js
160,352 B
sarkfultion
dreads
📄
edit-site.js
2,304,822 B
sarkfultion
dreads
📄
edit-site.min.js
905,297 B
sarkfultion
dreads
📄
edit-widgets.js
184,620 B
sarkfultion
dreads
📄
edit-widgets.min.js
70,465 B
sarkfultion
dreads
📄
editor.js
3,971,876 B
sarkfultion
dreads
📄
editor.min.js
1,575,028 B
sarkfultion
dreads
📄
element.js
27,971 B
sarkfultion
dreads
📄
element.min.js
12,468 B
sarkfultion
dreads
📄
escape-html.js
2,413 B
sarkfultion
dreads
📄
escape-html.min.js
1,158 B
sarkfultion
dreads
📄
format-library.js
234,957 B
sarkfultion
dreads
📄
format-library.min.js
98,495 B
sarkfultion
dreads
📄
hooks.js
12,299 B
sarkfultion
dreads
📄
hooks.min.js
5,107 B
sarkfultion
dreads
📄
html-entities.js
1,756 B
sarkfultion
dreads
📄
html-entities.min.js
950 B
sarkfultion
dreads
📄
i18n.js
15,725 B
sarkfultion
dreads
📄
i18n.min.js
5,791 B
sarkfultion
dreads
📄
is-shallow-equal.js
2,833 B
sarkfultion
dreads
📄
is-shallow-equal.min.js
1,197 B
sarkfultion
dreads
📄
keyboard-shortcuts.js
10,508 B
sarkfultion
dreads
📄
keyboard-shortcuts.min.js
3,682 B
sarkfultion
dreads
📄
keycodes.js
8,564 B
sarkfultion
dreads
📄
keycodes.min.js
3,038 B
sarkfultion
dreads
📄
list-reusable-blocks.js
13,662 B
sarkfultion
dreads
📄
list-reusable-blocks.min.js
5,539 B
sarkfultion
dreads
📄
media-utils.js
1,064,986 B
sarkfultion
dreads
📄
media-utils.min.js
391,013 B
sarkfultion
dreads
📄
notices.js
9,783 B
sarkfultion
dreads
📄
notices.min.js
3,947 B
sarkfultion
dreads
📄
nux.js
4,423 B
sarkfultion
dreads
📄
nux.min.js
1,749 B
sarkfultion
dreads
📄
patterns.js
90,184 B
sarkfultion
dreads
📄
patterns.min.js
38,302 B
sarkfultion
dreads
📄
plugins.js
21,220 B
sarkfultion
dreads
📄
plugins.min.js
7,253 B
sarkfultion
dreads
📄
preferences-persistence.js
17,720 B
sarkfultion
dreads
📄
preferences-persistence.min.js
5,713 B
sarkfultion
dreads
📄
preferences.js
21,531 B
sarkfultion
dreads
📄
preferences.min.js
8,028 B
sarkfultion
dreads
📄
primitives.js
5,270 B
sarkfultion
dreads
📄
primitives.min.js
2,093 B
sarkfultion
dreads
📄
priority-queue.js
10,338 B
sarkfultion
dreads
📄
priority-queue.min.js
3,505 B
sarkfultion
dreads
📄
private-apis.js
4,531 B
sarkfultion
dreads
📄
private-apis.min.js
3,017 B
sarkfultion
dreads
📄
react-i18n.js
4,064 B
sarkfultion
dreads
📄
react-i18n.min.js
1,627 B
sarkfultion
dreads
📄
redux-routine.js
25,346 B
sarkfultion
dreads
📄
redux-routine.min.js
9,952 B
sarkfultion
dreads
📄
reusable-blocks.js
22,391 B
sarkfultion
dreads
📄
reusable-blocks.min.js
8,185 B
sarkfultion
dreads
📄
rich-text.js
107,405 B
sarkfultion
dreads
📄
rich-text.min.js
43,182 B
sarkfultion
dreads
📄
router.js
37,079 B
sarkfultion
dreads
📄
router.min.js
14,552 B
sarkfultion
dreads
📄
server-side-render.js
11,588 B
sarkfultion
dreads
📄
server-side-render.min.js
4,198 B
sarkfultion
dreads
📄
shortcode.js
8,215 B
sarkfultion
dreads
📄
shortcode.min.js
3,426 B
sarkfultion
dreads
📄
style-engine.js
18,810 B
sarkfultion
dreads
📄
style-engine.min.js
6,946 B
sarkfultion
dreads
📄
theme.js
138,733 B
sarkfultion
dreads
📄
theme.min.js
61,144 B
sarkfultion
dreads
📄
token-list.js
6,327 B
sarkfultion
dreads
📄
token-list.min.js
1,723 B
sarkfultion
dreads
📄
undo-manager.js
5,491 B
sarkfultion
dreads
📄
undo-manager.min.js
1,808 B
sarkfultion
dreads
📄
upload-media.js
119,125 B
sarkfultion
dreads
📄
upload-media.min.js
50,480 B
sarkfultion
dreads
📄
url.js
23,957 B
sarkfultion
dreads
📄
url.min.js
10,423 B
sarkfultion
dreads
📄
viewport.js
7,312 B
sarkfultion
dreads
📄
viewport.min.js
2,374 B
sarkfultion
dreads
📄
warning.js
1,616 B
sarkfultion
dreads
📄
warning.min.js
816 B
sarkfultion
dreads
📄
widgets.js
51,346 B
sarkfultion
dreads
📄
widgets.min.js
21,475 B
sarkfultion
dreads
📄
wordcount.js
7,166 B
sarkfultion
dreads
📄
wordcount.min.js
2,570 B
sarkfultion
dreads
redisq: autop.js
(function() { "use strict"; var wp; (wp ||= {}).autop = (() => { var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // packages/autop/build-module/index.mjs var index_exports = {}; __export(index_exports, { autop: () => autop, removep: () => removep }); var htmlSplitRegex = (() => { const comments = "!(?:-(?!->)[^\\-]*)*(?:-->)?"; const cdata = "!\\[CDATA\\[[^\\]]*(?:](?!]>)[^\\]]*)*?(?:]]>)?"; const escaped = "(?=!--|!\\[CDATA\\[)((?=!-)" + // If yes, which type? comments + "|" + cdata + ")"; const regex = "(<(" + // Conditional expression follows. escaped + // Find end of escaped element. "|[^>]*>?))"; return new RegExp(regex); })(); function htmlSplit(input) { const parts = []; let workingInput = input; let match; while (match = workingInput.match(htmlSplitRegex)) { const index = match.index; parts.push(workingInput.slice(0, index)); parts.push(match[0]); workingInput = workingInput.slice(index + match[0].length); } if (workingInput.length) { parts.push(workingInput); } return parts; } function replaceInHtmlTags(haystack, replacePairs) { const textArr = htmlSplit(haystack); let changed = false; const needles = Object.keys(replacePairs); for (let i = 1; i < textArr.length; i += 2) { for (let j = 0; j < needles.length; j++) { const needle = needles[j]; if (-1 !== textArr[i].indexOf(needle)) { textArr[i] = textArr[i].replace( new RegExp(needle, "g"), replacePairs[needle] ); changed = true; break; } } } if (changed) { haystack = textArr.join(""); } return haystack; } function autop(text, br = true) { const preTags = []; if (text.trim() === "") { return ""; } text = text + "\n"; if (text.indexOf("<pre") !== -1) { const textParts = text.split("</pre>"); const lastText = textParts.pop(); text = ""; for (let i = 0; i < textParts.length; i++) { const textPart = textParts[i]; const start = textPart.indexOf("<pre"); if (start === -1) { text += textPart; continue; } const name = "<pre wp-pre-tag-" + i + "></pre>"; preTags.push([name, textPart.substr(start) + "</pre>"]); text += textPart.substr(0, start) + name; } text += lastText; } text = text.replace(/<br\s*\/?>\s*<br\s*\/?>/g, "\n\n"); const allBlocks = "(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)"; text = text.replace( new RegExp("(<" + allBlocks + "[\\s/>])", "g"), "\n\n$1" ); text = text.replace( new RegExp("(</" + allBlocks + ">)", "g"), "$1\n\n" ); text = text.replace(/\r\n|\r/g, "\n"); text = replaceInHtmlTags(text, { "\n": " <!-- wpnl --> " }); if (text.indexOf("<option") !== -1) { text = text.replace(/\s*<option/g, "<option"); text = text.replace(/<\/option>\s*/g, "</option>"); } if (text.indexOf("</object>") !== -1) { text = text.replace(/(<object[^>]*>)\s*/g, "$1"); text = text.replace(/\s*<\/object>/g, "</object>"); text = text.replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g, "$1"); } if (text.indexOf("<source") !== -1 || text.indexOf("<track") !== -1) { text = text.replace(/([<\[](?:audio|video)[^>\]]*[>\]])\s*/g, "$1"); text = text.replace(/\s*([<\[]\/(?:audio|video)[>\]])/g, "$1"); text = text.replace(/\s*(<(?:source|track)[^>]*>)\s*/g, "$1"); } if (text.indexOf("<figcaption") !== -1) { text = text.replace(/\s*(<figcaption[^>]*>)/, "$1"); text = text.replace(/<\/figcaption>\s*/, "</figcaption>"); } text = text.replace(/\n\n+/g, "\n\n"); const texts = text.split(/\n\s*\n/).filter(Boolean); text = ""; texts.forEach((textPiece) => { text += "<p>" + textPiece.replace(/^\n*|\n*$/g, "") + "</p>\n"; }); text = text.replace(/<p>\s*<\/p>/g, ""); text = text.replace( /<p>([^<]+)<\/(div|address|form)>/g, "<p>$1</p></$2>" ); text = text.replace( new RegExp("<p>\\s*(</?" + allBlocks + "[^>]*>)\\s*</p>", "g"), "$1" ); text = text.replace(/<p>(<li.+?)<\/p>/g, "$1"); text = text.replace(/<p><blockquote([^>]*)>/gi, "<blockquote$1><p>"); text = text.replace(/<\/blockquote><\/p>/g, "</p></blockquote>"); text = text.replace( new RegExp("<p>\\s*(</?" + allBlocks + "[^>]*>)", "g"), "$1" ); text = text.replace( new RegExp("(</?" + allBlocks + "[^>]*>)\\s*</p>", "g"), "$1" ); if (br) { text = text.replace( /<(script|style).*?<\/\\1>/g, (match) => match[0].replace(/\n/g, "<WPPreserveNewline />") ); text = text.replace(/<br>|<br\/>/g, "<br />"); text = text.replace( /(<br \/>)?\s*\n/g, (a, b) => b ? a : "<br />\n" ); text = text.replace(/<WPPreserveNewline \/>/g, "\n"); } text = text.replace( new RegExp("(</?" + allBlocks + "[^>]*>)\\s*<br />", "g"), "$1" ); text = text.replace( /<br \/>(\s*<\/?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)[^>]*>)/g, "$1" ); text = text.replace(/\n<\/p>$/g, "</p>"); preTags.forEach((preTag) => { const [name, original] = preTag; text = text.replace(name, () => original); }); if (-1 !== text.indexOf("<!-- wpnl -->")) { text = text.replace(/\s?<!-- wpnl -->\s?/g, "\n"); } return text; } function removep(html) { const blocklist = "blockquote|ul|ol|li|dl|dt|dd|table|thead|tbody|tfoot|tr|th|td|h[1-6]|fieldset|figure"; const blocklist1 = blocklist + "|div|p"; const blocklist2 = blocklist + "|pre"; const preserve = []; let preserveLinebreaks = false; let preserveBr = false; if (!html) { return ""; } if (html.indexOf("<script") !== -1 || html.indexOf("<style") !== -1) { html = html.replace( /<(script|style)[^>]*>[\s\S]*?<\/\1>/g, (match) => { preserve.push(match); return "<wp-preserve>"; } ); } if (html.indexOf("<pre") !== -1) { preserveLinebreaks = true; html = html.replace(/<pre[^>]*>[\s\S]+?<\/pre>/g, (a) => { a = a.replace(/<br ?\/?>(\r\n|\n)?/g, "<wp-line-break>"); a = a.replace(/<\/?p( [^>]*)?>(\r\n|\n)?/g, "<wp-line-break>"); return a.replace(/\r?\n/g, "<wp-line-break>"); }); } if (html.indexOf("[caption") !== -1) { preserveBr = true; html = html.replace(/\[caption[\s\S]+?\[\/caption\]/g, (a) => { return a.replace(/<br([^>]*)>/g, "<wp-temp-br$1>").replace(/[\r\n\t]+/, ""); }); } html = html.replace( new RegExp("\\s*</(" + blocklist1 + ")>\\s*", "g"), "</$1>\n" ); html = html.replace( new RegExp("\\s*<((?:" + blocklist1 + ")(?: [^>]*)?)>", "g"), "\n<$1>" ); html = html.replace(/(<p [^>]+>[\s\S]*?)<\/p>/g, "$1</p#>"); html = html.replace(/<div( [^>]*)?>\s*<p>/gi, "<div$1>\n\n"); html = html.replace(/\s*<p>/gi, ""); html = html.replace(/\s*<\/p>\s*/gi, "\n\n"); html = html.replace(/\n[\s\u00a0]+\n/g, "\n\n"); html = html.replace(/(\s*)<br ?\/?>\s*/gi, (_, space) => { if (space && space.indexOf("\n") !== -1) { return "\n\n"; } return "\n"; }); html = html.replace(/\s*<div/g, "\n<div"); html = html.replace(/<\/div>\s*/g, "</div>\n"); html = html.replace( /\s*\[caption([^\[]+)\[\/caption\]\s*/gi, "\n\n[caption$1[/caption]\n\n" ); html = html.replace(/caption\]\n\n+\[caption/g, "caption]\n\n[caption"); html = html.replace( new RegExp("\\s*<((?:" + blocklist2 + ")(?: [^>]*)?)\\s*>", "g"), "\n<$1>" ); html = html.replace( new RegExp("\\s*</(" + blocklist2 + ")>\\s*", "g"), "</$1>\n" ); html = html.replace(/<((li|dt|dd)[^>]*)>/g, " <$1>"); if (html.indexOf("<option") !== -1) { html = html.replace(/\s*<option/g, "\n<option"); html = html.replace(/\s*<\/select>/g, "\n</select>"); } if (html.indexOf("<hr") !== -1) { html = html.replace(/\s*<hr( [^>]*)?>\s*/g, "\n\n<hr$1>\n\n"); } if (html.indexOf("<object") !== -1) { html = html.replace(/<object[\s\S]+?<\/object>/g, (a) => { return a.replace(/[\r\n]+/g, ""); }); } html = html.replace(/<\/p#>/g, "</p>\n"); html = html.replace(/\s*(<p [^>]+>[\s\S]*?<\/p>)/g, "\n$1"); html = html.replace(/^\s+/, ""); html = html.replace(/[\s\u00a0]+$/, ""); if (preserveLinebreaks) { html = html.replace(/<wp-line-break>/g, "\n"); } if (preserveBr) { html = html.replace(/<wp-temp-br([^>]*)>/g, "<br$1>"); } if (preserve.length) { html = html.replace(/<wp-preserve>/g, () => { return preserve.shift(); }); } return html; } return __toCommonJS(index_exports); })(); (window.wp ||= {}).autop = wp.autop; })();
sarkfultion